diff --git a/packages/bootstrap/assets/v3dist/0.6bb1072332e6da640a81.js b/packages/bootstrap/assets/v3dist/0.d09ea121447c172cb7bf.js similarity index 80% rename from packages/bootstrap/assets/v3dist/0.6bb1072332e6da640a81.js rename to packages/bootstrap/assets/v3dist/0.d09ea121447c172cb7bf.js index 4ae1410432f..97cf771386b 100644 --- a/packages/bootstrap/assets/v3dist/0.6bb1072332e6da640a81.js +++ b/packages/bootstrap/assets/v3dist/0.d09ea121447c172cb7bf.js @@ -1,15 +1,15 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[0],Array(797).concat([function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if(!("string"==typeof e||e instanceof String)){var t=r(e);throw null===e?t="null":"object"===t&&(t=e.constructor.name),new TypeError("Expected a string but received a ".concat(t))}},e.exports=t.default,e.exports.default=t.default},,,function(e,t,n){var r=n(76),o=n(1478),i=n(490),a=Math.max,l=Math.min;e.exports=function(e,t,n){var u,s,c,f,d,p,h=0,v=!1,g=!1,y=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function m(t){var n=u,r=s;return u=s=void 0,h=t,f=e.apply(r,n)}function b(e){return h=e,d=setTimeout(w,t),v?m(e):f}function x(e){var n=e-p;return void 0===p||n>=t||n<0||g&&e-h>=c}function w(){var e=o();if(x(e))return _(e);d=setTimeout(w,function(e){var n=t-(e-p);return g?l(n,c-(e-h)):n}(e))}function _(e){return d=void 0,y&&u?m(e):(u=s=void 0,f)}function C(){var e=o(),n=x(e);if(u=arguments,s=this,p=e,n){if(void 0===d)return b(p);if(g)return clearTimeout(d),d=setTimeout(w,t),m(p)}return void 0===d&&(d=setTimeout(w,t)),f}return t=i(t)||0,r(n)&&(v=!!n.leading,c=(g="maxWait"in n)?a(i(n.maxWait)||0,t):c,y="trailing"in n?!!n.trailing:y),C.cancel=function(){void 0!==d&&clearTimeout(d),h=0,u=p=s=d=void 0},C.flush=function(){return void 0===d?f:_(o())},C}},,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ReactCSS=t.loop=t.handleActive=t.handleHover=t.hover=void 0;var r=s(n(2856)),o=s(n(2857)),i=s(n(2858)),a=s(n(2859)),l=s(n(2860)),u=s(n(2861));function s(e){return e&&e.__esModule?e:{default:e}}t.hover=a.default,t.handleHover=a.default,t.handleActive=l.default,t.loop=u.default;var c=t.ReactCSS=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),a=1;a=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var g={"aria-current":s.default.string,"aria-details":s.default.any,"aria-disabled":s.default.any,"aria-hidden":s.default.any,"aria-invalid":s.default.any,"aria-keyshortcuts":s.default.any,"aria-label":s.default.any,"aria-roledescription":s.default.any,"aria-autocomplete":s.default.any,"aria-checked":s.default.any,"aria-expanded":s.default.any,"aria-haspopup":s.default.any,"aria-level":s.default.any,"aria-modal":s.default.any,"aria-multiline":s.default.any,"aria-multiselectable":s.default.any,"aria-orientation":s.default.any,"aria-placeholder":s.default.any,"aria-pressed":s.default.any,"aria-readonly":s.default.any,"aria-required":s.default.any,"aria-selected":s.default.any,"aria-sort":s.default.any,"aria-valuemax":s.default.any,"aria-valuemin":s.default.any,"aria-valuenow":s.default.any,"aria-valuetext":s.default.any,"aria-atomic":s.default.any,"aria-busy":s.default.any,"aria-live":s.default.any,"aria-relevant":s.default.any,"aria-dropeffect":s.default.any,"aria-grabbed":s.default.any,"aria-activedescendant":s.default.any,"aria-colcount":s.default.any,"aria-colindex":s.default.any,"aria-colspan":s.default.any,"aria-controls":s.default.any,"aria-describedby":s.default.any,"aria-errormessage":s.default.any,"aria-flowto":s.default.any,"aria-labelledby":s.default.any,"aria-owns":s.default.any,"aria-posinset":s.default.any,"aria-rowcount":s.default.any,"aria-rowindex":s.default.any,"aria-rowspan":s.default.any,"aria-setsize":s.default.any,alignmentBaseline:s.default.string,angle:s.default.number,baselineShift:s.default.string,clip:s.default.string,clipPath:s.default.string,clipRule:s.default.string,color:s.default.string,colorInterpolation:s.default.string,colorInterpolationFilters:s.default.string,colorProfile:s.default.string,colorRendering:s.default.string,cursor:s.default.string,direction:s.default.oneOf(["ltr","rtl","inherit"]),display:s.default.string,dominantBaseline:s.default.string,enableBackground:s.default.string,fill:s.default.string,fillOpacity:s.default.oneOfType([s.default.string,s.default.number]),fillRule:s.default.oneOf(["nonzero","evenodd","inherit"]),filter:s.default.string,floodColor:s.default.string,floodOpacity:s.default.oneOfType([s.default.string,s.default.number]),font:s.default.string,fontFamily:s.default.string,fontSize:s.default.oneOfType([s.default.number,s.default.string]),fontSizeAdjust:s.default.oneOfType([s.default.number,s.default.string]),fontStretch:s.default.oneOf(["normal","wider","narrower","ultra-condensed","extra-condensed","condensed","semi-condensed","semi-expanded","expanded","extra-expanded","ultra-expanded","inherit"]),fontStyle:s.default.oneOf(["normal","italic","oblique","inherit"]),fontVariant:s.default.oneOf(["normal","small-caps","inherit"]),fontWeight:s.default.oneOf(["normal","bold","bolder","lighter",100,200,300,400,500,600,700,800,900,"inherit"]),glyphOrientationHorizontal:s.default.string,glyphOrientationVertical:s.default.string,imageRendering:s.default.oneOf(["auto","optimizeSpeed","optimizeQuality","inherit"]),kerning:s.default.oneOfType([s.default.number,s.default.string]),letterSpacing:s.default.oneOfType([s.default.number,s.default.string]),lightingColor:s.default.string,lineHeight:s.default.oneOfType([s.default.number,s.default.string]),markerEnd:s.default.string,markerMid:s.default.string,markerStart:s.default.string,mask:s.default.string,opacity:s.default.oneOfType([s.default.number,s.default.string]),overflow:s.default.oneOf(["visible","hidden","scroll","auto","inherit"]),pointerEvents:s.default.oneOf(["visiblePainted","visibleFill","visibleStroke","visible","painted","fill","stroke","all","none","inherit"]),shapeRendering:s.default.oneOf(["auto","optimizeSpeed","crispEdges","geometricPrecision","inherit"]),stopColor:s.default.string,stopOpacity:s.default.oneOfType([s.default.number,s.default.string]),stroke:s.default.oneOfType([s.default.number,s.default.string]),strokeDasharray:s.default.string,strokeDashoffset:s.default.oneOfType([s.default.number,s.default.string]),strokeLinecap:s.default.oneOf(["butt","round","square","inherit"]),strokeLinejoin:s.default.oneOf(["miter","round","bevel","inherit"]),strokeMiterlimit:s.default.oneOfType([s.default.number,s.default.string]),strokeOpacity:s.default.oneOfType([s.default.number,s.default.string]),strokeWidth:s.default.oneOfType([s.default.number,s.default.string]),textAnchor:s.default.oneOf(["start","middle","end","inherit"]),textDecoration:s.default.oneOf(["none","underline","overline","line-through","blink","inherit"]),textRendering:s.default.oneOf(["auto","optimizeSpeed","optimizeLegibility","geometricPrecision","inherit"]),unicodeBidi:s.default.oneOf(["normal","embed","bidi-override","inherit"]),visibility:s.default.oneOf(["visible","hidden","collapse","inherit"]),wordSpacing:s.default.oneOfType([s.default.number,s.default.string]),writingMode:s.default.oneOf(["lr-tb","rl-tb","tb-rl","lr","rl","tb","inherit"]),transform:s.default.string,role:s.default.string,focusable:s.default.string,tabIndex:s.default.string,style:s.default.object,width:s.default.number,height:s.default.number,dx:s.default.number,dy:s.default.number,x:s.default.number,y:s.default.number,r:s.default.number,radius:s.default.oneOfType([s.default.number,s.default.array])};t.PRESENTATION_ATTRIBUTES=g;var y={onClick:s.default.func,onMouseDown:s.default.func,onMouseUp:s.default.func,onMouseOver:s.default.func,onMouseMove:s.default.func,onMouseOut:s.default.func,onMouseEnter:s.default.func,onMouseLeave:s.default.func,onTouchEnd:s.default.func,onTouchMove:s.default.func,onTouchStart:s.default.func,onTouchCancel:s.default.func};t.EVENT_ATTRIBUTES=y;var m={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart"};t.SCALE_TYPES=["auto","linear","pow","sqrt","log","identity","time","band","point","ordinal","quantile","quantize","utc","sequential","threshold"];t.LEGEND_TYPES=["plainline","line","square","rect","circle","cross","diamond","star","triangle","wye","none"];t.TOOLTIP_TYPES=["none"];var b=function(e){return"string"==typeof e?e:e?e.displayName||e.name||"Component":""};t.getDisplayName=b;var x=function(e,t){var n=[],r=[];return r=(0,l.default)(t)?t.map((function(e){return b(e)})):[b(t)],u.default.Children.forEach(e,(function(e){var t=e&&e.type&&(e.type.displayName||e.type.name);-1!==r.indexOf(t)&&n.push(e)})),n};t.findAllByType=x;t.findChildByType=function(e,t){var n=x(e,t);return n&&n[0]};t.withoutType=function(e,t){var n,r=[];return n=(0,l.default)(t)?t.map((function(e){return b(e)})):[b(t)],u.default.Children.forEach(e,(function(e){e&&e.type&&e.type.displayName&&-1!==n.indexOf(e.type.displayName)||r.push(e)})),r};t.getPresentationAttributes=function(e){if(!e||(0,a.default)(e))return null;var t=u.default.isValidElement(e)?e.props:e;if(!(0,i.default)(t))return null;var n=null;for(var r in t)({}).hasOwnProperty.call(t,r)&&g[r]&&(n||(n={}),n[r]=t[r]);return n};var w=function(e,t){return function(n){return e(t,n),null}};t.filterEventAttributes=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!e||(0,a.default)(e))return null;var r=u.default.isValidElement(e)?e.props:e;if(!(0,i.default)(r))return null;var o=null;for(var l in r)({}).hasOwnProperty.call(r,l)&&y[l]&&(o||(o={}),o[l]=t||(n?w(r[l],r):r[l]));return o};var _=function(e,t,n){return function(r){return e(t,n,r),null}};t.filterEventsOfChild=function(e,t,n){if(!(0,i.default)(e))return null;var r=null;for(var o in e)({}).hasOwnProperty.call(e,o)&&y[o]&&(0,a.default)(e[o])&&(r||(r={}),r[o]=_(e[o],t,n));return r};t.validateWidthHeight=function(e){if(!e||!e.props)return!1;var t=e.props,n=t.width,r=t.height;return!(!(0,c.isNumber)(n)||n<=0||!(0,c.isNumber)(r)||r<=0)};t.isSsr=function(){return!("undefined"!=typeof window&&window.document&&window.document.createElement&&window.setTimeout)};var C=["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColormatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-url","foreignObject","g","glyph","glyphRef","hkern","image","line","lineGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","svg","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"];t.filterSvgElements=function(e){var t=[];return u.default.Children.forEach(e,(function(e){e&&e.type&&(0,o.default)(e.type)&&C.indexOf(e.type)>=0&&t.push(e)})),t};var O=function(e,t){if((0,r.default)(e)&&(0,r.default)(t))return!0;if(!(0,r.default)(e)&&!(0,r.default)(t)){var n=e.props||{},o=n.children,i=v(n,["children"]),a=t.props||{},l=a.children,u=v(a,["children"]);return o&&l?(0,f.shallowEqual)(i,u)&&E(o,l):!o&&!l&&(0,f.shallowEqual)(i,u)}return!1};t.isSingleChildEqual=O;var E=function e(t,n){if(t===n)return!0;if(u.Children.count(t)!==u.Children.count(n))return!1;var r=u.Children.count(t);if(0===r)return!0;if(1===r)return O((0,l.default)(t)?t[0]:t,(0,l.default)(n)?n[0]:n);for(var o=0;o=0}(e))n.push(e);else if(e&&t[b(e.type)]){var a=b(e.type),u=t[a],s=u.handler,c=u.once;if(c&&!r[a]||!c){var f=s(e,a,i);(0,l.default)(f)?n=[n].concat(h(f)):n.push(f),r[a]=!0}}})),n};t.getReactEventByType=function(e){var t=e&&e.type;return t&&m[t]?m[t]:null};t.parseChildIndex=function(e,t){var n=-1;return u.Children.forEach(t,(function(t,r){t===e&&(n=r)})),n}},,function(e,t,n){"use strict";var r,o,i,a=n(1452),l=n(33),u=n(25),s=n(35),c=n(54),f=n(53),d=n(202),p=n(148),h=n(102),v=n(67),g=n(114),y=n(107),m=n(260),b=n(204),x=n(40),w=n(212),_=n(101),C=_.enforce,O=_.get,E=u.Int8Array,M=E&&E.prototype,S=u.Uint8ClampedArray,A=S&&S.prototype,k=E&&m(E),j=M&&m(M),T=Object.prototype,P=u.TypeError,L=x("toStringTag"),z=w("TYPED_ARRAY_TAG"),N=a&&!!b&&"Opera"!==d(u.opera),D=!1,I={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},R={BigInt64Array:8,BigUint64Array:8},H=function(e){var t=m(e);if(c(t)){var n=O(t);return n&&f(n,"TypedArrayConstructor")?n.TypedArrayConstructor:H(t)}},B=function(e){if(!c(e))return!1;var t=d(e);return f(I,t)||f(R,t)};for(r in I)(i=(o=u[r])&&o.prototype)?C(i).TypedArrayConstructor=o:N=!1;for(r in R)(i=(o=u[r])&&o.prototype)&&(C(i).TypedArrayConstructor=o);if((!N||!s(k)||k===Function.prototype)&&(k=function(){throw new P("Incorrect invocation")},N))for(r in I)u[r]&&b(u[r],k);if((!N||!j||j===T)&&(j=k.prototype,N))for(r in I)u[r]&&b(u[r].prototype,j);if(N&&m(A)!==j&&b(A,j),l&&!f(j,L))for(r in D=!0,g(j,L,{configurable:!0,get:function(){return c(this)?this[z]:void 0}}),I)u[r]&&h(u[r],z,r);e.exports={NATIVE_ARRAY_BUFFER_VIEWS:N,TYPED_ARRAY_TAG:D&&z,aTypedArray:function(e){if(B(e))return e;throw new P("Target is not a typed array")},aTypedArrayConstructor:function(e){if(s(e)&&(!b||y(k,e)))return e;throw new P(p(e)+" is not a typed array constructor")},exportTypedArrayMethod:function(e,t,n,r){if(l){if(n)for(var o in I){var i=u[o];if(i&&f(i.prototype,e))try{delete i.prototype[e]}catch(n){try{i.prototype[e]=t}catch(e){}}}j[e]&&!n||v(j,e,n?t:N&&M[e]||t,r)}},exportTypedArrayStaticMethod:function(e,t,n){var r,o;if(l){if(b){if(n)for(r in I)if((o=u[r])&&f(o,e))try{delete o[e]}catch(e){}if(k[e]&&!n)return;try{return v(k,e,n?t:N&&k[e]||t)}catch(e){}}for(r in I)!(o=u[r])||o[e]&&!n||v(o,e,t)}},getTypedArrayConstructor:H,isView:function(e){if(!c(e))return!1;var t=d(e);return"DataView"===t||f(I,t)||f(R,t)},isTypedArray:B,TypedArray:k,TypedArrayPrototype:j}},,,,,,function(e,t,n){"use strict";var r=Object.prototype.hasOwnProperty;function o(e,t){return r.call(e,t)}function i(e){return!(e>=55296&&e<=57343)&&(!(e>=64976&&e<=65007)&&(65535!=(65535&e)&&65534!=(65535&e)&&(!(e>=0&&e<=8)&&(11!==e&&(!(e>=14&&e<=31)&&(!(e>=127&&e<=159)&&!(e>1114111)))))))}function a(e){if(e>65535){var t=55296+((e-=65536)>>10),n=56320+(1023&e);return String.fromCharCode(t,n)}return String.fromCharCode(e)}var l=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,u=new RegExp(l.source+"|"+/&([a-z#][a-z0-9]{1,31});/gi.source,"gi"),s=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i,c=n(1568);var f=/[&<>"]/,d=/[&<>"]/g,p={"&":"&","<":"<",">":">",'"':"""};function h(e){return p[e]}var v=/[.?*+^$[\]\\(){}|-]/g;var g=n(1311);t.lib={},t.lib.mdurl=n(1569),t.lib.ucmicro=n(2397),t.assign=function(e){var t=Array.prototype.slice.call(arguments,1);return t.forEach((function(t){if(t){if("object"!=typeof t)throw new TypeError(t+"must be object");Object.keys(t).forEach((function(n){e[n]=t[n]}))}})),e},t.isString=function(e){return"[object String]"===function(e){return Object.prototype.toString.call(e)}(e)},t.has=o,t.unescapeMd=function(e){return e.indexOf("\\")<0?e:e.replace(l,"$1")},t.unescapeAll=function(e){return e.indexOf("\\")<0&&e.indexOf("&")<0?e:e.replace(u,(function(e,t,n){return t||function(e,t){var n=0;return o(c,t)?c[t]:35===t.charCodeAt(0)&&s.test(t)&&i(n="x"===t[1].toLowerCase()?parseInt(t.slice(2),16):parseInt(t.slice(1),10))?a(n):e}(e,n)}))},t.isValidEntityCode=i,t.fromCodePoint=a,t.escapeHtml=function(e){return f.test(e)?e.replace(d,h):e},t.arrayReplaceAt=function(e,t,n){return[].concat(e.slice(0,t),n,e.slice(t+1))},t.isSpace=function(e){switch(e){case 9:case 32:return!0}return!1},t.isWhiteSpace=function(e){if(e>=8192&&e<=8202)return!0;switch(e){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1},t.isMdAsciiPunct=function(e){switch(e){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}},t.isPunctChar=function(e){return g.test(e)},t.escapeRE=function(e){return e.replace(v,"\\$&")},t.normalizeReference=function(e){return e.trim().replace(/\s+/g," ").toUpperCase()}},function(e,t,n){"use strict";var r=n(8),o=n(214).trim;r({target:"String",proto:!0,forced:n(529)("trim")},{trim:function(){return o(this)}})},function(e,t,n){"use strict";var r=n(941);t.a=function(e){return null==e?"":Object(r.a)(e)}},function(e,t,n){var r=n(948),o=n(1088),i=n(1514),a=n(1518),l=n(1521),u=function(e,t,n){var s,c,f,d,p=e&u.F,h=e&u.G,v=e&u.S,g=e&u.P,y=e&u.B,m=h?r:v?r[t]||(r[t]={}):(r[t]||{}).prototype,b=h?o:o[t]||(o[t]={}),x=b.prototype||(b.prototype={});for(s in h&&(n=t),n)f=((c=!p&&m&&void 0!==m[s])?m:n)[s],d=y&&c?l(f,r):g&&"function"==typeof f?l(Function.call,f):f,m&&a(m,s,f,e&u.U),b[s]!=f&&i(b,s,d),g&&x[s]!=f&&(x[s]=f)};r.core=o,u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,e.exports=u},,,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getLinearRegression=t.findEntryInArray=t.interpolateNumber=t.hasDuplicate=t.getAnyElementOfObject=t.getPercentValue=t.uniqueId=t.isNumOrStr=t.isNumber=t.isPercent=t.mathSign=void 0;var r=u(n(26)),o=u(n(60)),i=u(n(925)),a=u(n(459)),l=u(n(195));function u(e){return e&&e.__esModule?e:{default:e}}t.mathSign=function(e){return 0===e?0:e>0?1:-1};var s=function(e){return(0,l.default)(e)&&e.indexOf("%")===e.length-1};t.isPercent=s;var c=function(e){return(0,a.default)(e)&&!(0,i.default)(e)};t.isNumber=c;t.isNumOrStr=function(e){return c(e)||(0,l.default)(e)};var f=0;t.uniqueId=function(e){var t=++f;return"".concat(e||"").concat(t)};t.getPercentValue=function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!c(e)&&!(0,l.default)(e))return r;if(s(e)){var a=e.indexOf("%");n=t*parseFloat(e.slice(0,a))/100}else n=+e;return(0,i.default)(n)&&(n=r),o&&n>t&&(n=t),n};t.getAnyElementOfObject=function(e){if(!e)return null;var t=Object.keys(e);return t&&t.length?e[t[0]]:null};t.hasDuplicate=function(e){if(!(0,o.default)(e))return!1;for(var t=e.length,n={},r=0;r=a)return e;switch(e){case"%s":return String(t[r++]);case"%d":return Number(t[r++]);case"%j":try{return JSON.stringify(t[r++])}catch(e){return"[Circular]"}break;default:return e}})),u=t[r];r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var s={className:o.default.string,children:o.default.oneOfType([o.default.arrayOf(o.default.node),o.default.node])};function c(e){var t=e.children,n=e.className,o=u(e,["children","className"]),a=(0,i.default)("recharts-layer",n);return r.default.createElement("g",l({className:a},o),t)}c.propTypes=s;var f=c;t.default=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=h(n(857)),o=h(n(194)),i=h(n(861)),a=function(e){if(e&&e.__esModule)return e;var t=p();if(t&&t.has(e))return t.get(e);var n={};if(null!=e){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}}n.default=e,t&&t.set(e,n);return n}(n(0)),l=h(n(1)),u=n(990),s=h(n(3)),c=h(n(2147)),f=n(809),d=n(826);function p(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return p=function(){return e},e}function h(e){return e&&e.__esModule?e:{default:e}}function v(e){return(v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function y(e){for(var t=1;tc[t]+o?Math.max(f,c[t]):Math.max(p,c[t])},n}var n,l,f;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&C(e,t)}(t,e),n=t,(l=[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"updateBBox",value:function(){var e=this.state,t=e.boxWidth,n=e.boxHeight;if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var r=this.wrapperNode.getBoundingClientRect();(Math.abs(r.width-t)>1||Math.abs(r.height-n)>1)&&this.setState({boxWidth:r.width,boxHeight:r.height})}else-1===t&&-1===n||this.setState({boxWidth:-1,boxHeight:-1})}},{key:"render",value:function(){var e,t,n,l=this,f=this.props,p=f.payload,h=f.isAnimationActive,v=f.animationDuration,g=f.animationEasing,b=f.filterNull,x=function(e,t){return!0===e?(0,i.default)(t,E):(0,o.default)(e)?(0,i.default)(t,e):t}(f.paylodUniqBy,b&&p&&p.length?p.filter((function(e){return!(0,r.default)(e.value)})):p),w=x&&x.length,_=this.props,C=_.content,M=_.viewBox,S=_.coordinate,A=_.position,k=_.active,j=y({pointerEvents:"none",visibility:k&&w?"visible":"hidden",position:"absolute",top:0},_.wrapperStyle);if(A&&(0,d.isNumber)(A.x)&&(0,d.isNumber)(A.y))t=A.x,n=A.y;else{var T=this.state,P=T.boxWidth,L=T.boxHeight;P>0&&L>0&&S?(t=this.getTranslate({key:"x",tooltipDimension:P,viewBoxDimension:M.width}),n=this.getTranslate({key:"y",tooltipDimension:L,viewBoxDimension:M.height})):j.visibility="hidden"}j=y({},(0,u.translateStyle)({transform:this.props.useTranslate3d?"translate3d(".concat(t,"px, ").concat(n,"px, 0)"):"translate(".concat(t,"px, ").concat(n,"px)")}),{},j),h&&k&&(j=y({},(0,u.translateStyle)({transition:"transform ".concat(v,"ms ").concat(g)}),{},j));var z=(0,s.default)(O,(m(e={},"".concat(O,"-right"),(0,d.isNumber)(t)&&S&&(0,d.isNumber)(S.x)&&t>=S.x),m(e,"".concat(O,"-left"),(0,d.isNumber)(t)&&S&&(0,d.isNumber)(S.x)&&t=S.y),m(e,"".concat(O,"-top"),(0,d.isNumber)(n)&&S&&(0,d.isNumber)(S.y)&&n0?(0,r.default)(n.updateDimensionsImmediate,e.debounce):n.updateDimensionsImmediate,n}var n,i,c;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&g(e,t)}(t,e),n=t,(i=[{key:"componentDidMount",value:function(){this.mounted=!0;var e=this.getContainerSize();e&&this.setState(e)}},{key:"componentWillUnmount",value:function(){this.mounted=!1}},{key:"getContainerSize",value:function(){return this.container?{containerWidth:this.container.clientWidth,containerHeight:this.container.clientHeight}:null}},{key:"renderChart",value:function(){var e=this.state,t=e.containerWidth,n=e.containerHeight;if(t<0||n<0)return null;var r=this.props,i=r.aspect,a=r.width,l=r.height,c=r.minWidth,f=r.minHeight,d=r.maxHeight,p=r.children;(0,s.warn)((0,u.isPercent)(a)||(0,u.isPercent)(l),"The width(%s) and height(%s) are both fixed numbers,\n maybe you don't need to use a ResponsiveContainer.",a,l),(0,s.warn)(!i||i>0,"The aspect(%s) must be greater than zero.",i);var h=(0,u.isPercent)(a)?t:a,v=(0,u.isPercent)(l)?n:l;return i&&i>0&&(h?v=h/i:v&&(h=v*i),d&&v>d&&(v=d)),(0,s.warn)(h>0||v>0,"The width(%s) and height(%s) of chart should be greater than 0,\n please check the style of container, or the props width(%s) and height(%s),\n or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the\n height and width.",h,v,a,l,c,f,i),o.default.cloneElement(p,{width:h,height:v})}},{key:"render",value:function(){var e=this,t=this.props,n=t.minWidth,r=t.minHeight,i=t.width,u=t.height,s=t.maxHeight,c=t.id,f=t.className,d={width:i,height:u,minWidth:n,minHeight:r,maxHeight:s};return o.default.createElement("div",{id:c,className:(0,a.default)("recharts-responsive-container",f),style:d,ref:function(t){e.container=t}},this.renderChart(),o.default.createElement(l.default,{handleWidth:!0,handleHeight:!0,onResize:this.handleResize}))}}])&&p(n.prototype,i),c&&p(n,c),t}(o.Component);y.displayName="ResponsiveContainer",y.propTypes={aspect:i.default.number,width:i.default.oneOfType([i.default.string,i.default.number]),height:i.default.oneOfType([i.default.string,i.default.number]),minHeight:i.default.oneOfType([i.default.string,i.default.number]),minWidth:i.default.oneOfType([i.default.string,i.default.number]),maxHeight:i.default.oneOfType([i.default.string,i.default.number]),children:i.default.node.isRequired,debounce:i.default.number,id:i.default.oneOfType([i.default.string,i.default.number]),className:i.default.oneOfType([i.default.string,i.default.number])},y.defaultProps={width:"100%",height:"100%",debounce:0};var m=y;t.default=m},,,,function(e,t,n){"use strict";t.a=function(e){return e}},function(e,t,n){"use strict";var r=n(918),o=n(1056);t.a=function(e){return null!=e&&Object(o.a)(e.length)&&!Object(r.a)(e)}},function(e,t,n){"use strict";var r=n(876),o=n(838);t.a=function(e){return Object(o.a)(e)&&Object(r.a)(e)}},,function(e,t,n){"use strict";var r=n(1664),o=n(840),i=n(1118);var a=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t},l=Object.prototype.hasOwnProperty;var u=function(e){if(!Object(o.a)(e))return a(e);var t=Object(i.a)(e),n=[];for(var r in e)("constructor"!=r||!t&&l.call(e,r))&&n.push(r);return n},s=n(876);t.a=function(e){return Object(s.a)(e)?Object(r.a)(e,!0):u(e)}},,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;for(var n in t)void 0===e[n]&&(e[n]=t[n]);return e},e.exports=t.default,e.exports.default=t.default},,,,,function(e,t,n){"use strict";var r=n(896),o=n(876),i=n(956),a=n(840);t.a=function(e,t,n){if(!Object(a.a)(n))return!1;var l=typeof t;return!!("number"==l?Object(o.a)(n)&&Object(i.a)(t,n.length):"string"==l&&t in n)&&Object(r.a)(n[t],e)}},,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=s(n(1723)),o=s(n(3159)),i=s(n(3160)),a=s(n(3161)),l=s(n(3162)),u=s(n(3163));function s(e){return e&&e.__esModule?e:{default:e}}t.default={required:r.default,whitespace:o.default,type:i.default,range:a.default,enum:l.default,pattern:u.default}},,function(e,t,n){"use strict";var r=n(835),o=n(920).Graph;function i(e,t,n,o){var i;do{i=r.uniqueId(o)}while(e.hasNode(i));return n.dummy=t,e.setNode(i,n),i}function a(e){return r.max(r.map(e.nodes(),(function(t){var n=e.node(t).rank;if(!r.isUndefined(n))return n})))}e.exports={addDummyNode:i,simplify:function(e){var t=(new o).setGraph(e.graph());return r.forEach(e.nodes(),(function(n){t.setNode(n,e.node(n))})),r.forEach(e.edges(),(function(n){var r=t.edge(n.v,n.w)||{weight:0,minlen:1},o=e.edge(n);t.setEdge(n.v,n.w,{weight:r.weight+o.weight,minlen:Math.max(r.minlen,o.minlen)})})),t},asNonCompoundGraph:function(e){var t=new o({multigraph:e.isMultigraph()}).setGraph(e.graph());return r.forEach(e.nodes(),(function(n){e.children(n).length||t.setNode(n,e.node(n))})),r.forEach(e.edges(),(function(n){t.setEdge(n,e.edge(n))})),t},successorWeights:function(e){var t=r.map(e.nodes(),(function(t){var n={};return r.forEach(e.outEdges(t),(function(t){n[t.w]=(n[t.w]||0)+e.edge(t).weight})),n}));return r.zipObject(e.nodes(),t)},predecessorWeights:function(e){var t=r.map(e.nodes(),(function(t){var n={};return r.forEach(e.inEdges(t),(function(t){n[t.v]=(n[t.v]||0)+e.edge(t).weight})),n}));return r.zipObject(e.nodes(),t)},intersectRect:function(e,t){var n,r,o=e.x,i=e.y,a=t.x-o,l=t.y-i,u=e.width/2,s=e.height/2;if(!a&&!l)throw new Error("Not possible to find intersection inside of the rectangle");Math.abs(l)*u>Math.abs(a)*s?(l<0&&(s=-s),n=s*a/l,r=s):(a<0&&(u=-u),n=u,r=u*l/a);return{x:o+n,y:i+r}},buildLayerMatrix:function(e){var t=r.map(r.range(a(e)+1),(function(){return[]}));return r.forEach(e.nodes(),(function(n){var o=e.node(n),i=o.rank;r.isUndefined(i)||(t[i][o.order]=n)})),t},normalizeRanks:function(e){var t=r.min(r.map(e.nodes(),(function(t){return e.node(t).rank})));r.forEach(e.nodes(),(function(n){var o=e.node(n);r.has(o,"rank")&&(o.rank-=t)}))},removeEmptyRanks:function(e){var t=r.min(r.map(e.nodes(),(function(t){return e.node(t).rank}))),n=[];r.forEach(e.nodes(),(function(r){var o=e.node(r).rank-t;n[o]||(n[o]=[]),n[o].push(r)}));var o=0,i=e.graph().nodeRankFactor;r.forEach(n,(function(t,n){r.isUndefined(t)&&n%i!=0?--o:o&&r.forEach(t,(function(t){e.node(t).rank+=o}))}))},addBorderNode:function(e,t,n,r){var o={width:0,height:0};arguments.length>=4&&(o.rank=n,o.order=r);return i(e,"border",o,t)},maxRank:a,partition:function(e,t){var n={lhs:[],rhs:[]};return r.forEach(e,(function(e){t(e)?n.lhs.push(e):n.rhs.push(e)})),n},time:function(e,t){var n=r.now();try{return t()}finally{console.log(e+" time: "+(r.now()-n)+"ms")}},notime:function(e,t){return t()}}},function(e,t,n){"use strict";n.r(t),n.d(t,"create",(function(){return i})),n.d(t,"creator",(function(){return r.a})),n.d(t,"local",(function(){return l})),n.d(t,"matcher",(function(){return s.a})),n.d(t,"mouse",(function(){return c.a})),n.d(t,"namespace",(function(){return f.a})),n.d(t,"namespaces",(function(){return d.a})),n.d(t,"clientPoint",(function(){return p.a})),n.d(t,"select",(function(){return o.a})),n.d(t,"selectAll",(function(){return v})),n.d(t,"selection",(function(){return h.b})),n.d(t,"selector",(function(){return g.a})),n.d(t,"selectorAll",(function(){return y.a})),n.d(t,"style",(function(){return m.b})),n.d(t,"touch",(function(){return b.a})),n.d(t,"touches",(function(){return w})),n.d(t,"window",(function(){return _.a})),n.d(t,"event",(function(){return C.c})),n.d(t,"customEvent",(function(){return C.a}));var r=n(1140),o=n(1439),i=function(e){return Object(o.a)(Object(r.a)(e).call(document.documentElement))},a=0;function l(){return new u}function u(){this._="@"+(++a).toString(36)}u.prototype=l.prototype={constructor:u,get:function(e){for(var t=this._;!(t in e);)if(!(e=e.parentNode))return;return e[t]},set:function(e,t){return e[this._]=t},remove:function(e){return this._ in e&&delete e[this._]},toString:function(){return this._}};var s=n(1435),c=n(1889),f=n(1239),d=n(1240),p=n(1142),h=n(1257),v=function(e){return"string"==typeof e?new h.a([document.querySelectorAll(e)],[document.documentElement]):new h.a([null==e?[]:e],h.c)},g=n(1241),y=n(1436),m=n(1437),b=n(1890),x=n(1438),w=function(e,t){null==t&&(t=Object(x.a)().touches);for(var n=0,r=t?t.length:0,o=new Array(r);n0||!(0,r.default)(u,o)||!(0,r.default)(s,i))?this.renderAreaWithAnimation(e,t):this.renderAreaStatically(o,i,e,t)}},{key:"render",value:function(){var e=this.props,t=e.hide,n=e.dot,r=e.points,o=e.className,i=e.top,a=e.left,l=e.xAxis,s=e.yAxis,f=e.width,p=e.height,h=e.isAnimationActive,v=e.id;if(t||!r||!r.length)return null;var m=this.state.isAnimationFinished,b=1===r.length,x=(0,d.default)("recharts-area",o),w=l&&l.allowDataOverflow||s&&s.allowDataOverflow,_=(0,u.default)(v)?this.id:v;return c.default.createElement(g.default,{className:x},w?c.default.createElement("defs",null,c.default.createElement("clipPath",{id:"clipPath-".concat(_)},c.default.createElement("rect",{x:a,y:i,width:f,height:parseInt(p,10)}))):null,b?null:this.renderArea(w,_),(n||b)&&this.renderDots(w,_),(!h||m)&&y.default.renderCallByParent(this.props,r))}}])&&k(n.prototype,l),f&&k(n,f),t}(c.PureComponent);L.displayName="Area",L.propTypes=M({},m.PRESENTATION_ATTRIBUTES,{},m.EVENT_ATTRIBUTES,{className:f.default.string,dataKey:f.default.oneOfType([f.default.string,f.default.number,f.default.func]).isRequired,type:f.default.oneOfType([f.default.oneOf(["basis","basisClosed","basisOpen","linear","linearClosed","natural","monotoneX","monotoneY","monotone","step","stepBefore","stepAfter"]),f.default.func]),unit:f.default.oneOfType([f.default.string,f.default.number]),name:f.default.oneOfType([f.default.string,f.default.number]),yAxisId:f.default.oneOfType([f.default.string,f.default.number]),xAxisId:f.default.oneOfType([f.default.string,f.default.number]),yAxis:f.default.object,xAxis:f.default.object,stackId:f.default.oneOfType([f.default.number,f.default.string]),legendType:f.default.oneOf(m.LEGEND_TYPES),tooltipType:f.default.oneOf(m.TOOLTIP_TYPES),connectNulls:f.default.bool,activeDot:f.default.oneOfType([f.default.object,f.default.element,f.default.func,f.default.bool]),dot:f.default.oneOfType([f.default.func,f.default.element,f.default.object,f.default.bool]),label:f.default.oneOfType([f.default.func,f.default.element,f.default.object,f.default.bool]),hide:f.default.bool,layout:f.default.oneOf(["horizontal","vertical"]),baseLine:f.default.oneOfType([f.default.number,f.default.array]),isRange:f.default.bool,points:f.default.arrayOf(f.default.shape({x:f.default.number,y:f.default.number,value:f.default.oneOfType([f.default.number,f.default.array])})),onAnimationStart:f.default.func,onAnimationEnd:f.default.func,animationId:f.default.number,isAnimationActive:f.default.bool,animationBegin:f.default.number,animationDuration:f.default.number,animationEasing:f.default.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),id:f.default.string}),L.defaultProps={stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!(0,m.isSsr)(),animationBegin:0,animationDuration:1500,animationEasing:"ease"},L.getBaseValue=function(e,t,n){var r=e.layout,o=e.baseValue;if((0,b.isNumber)(o))return o;var i="horizontal"===r?n:t,a=i.scale.domain();if("number"===i.type){var l=Math.max(a[0],a[1]),u=Math.min(a[0],a[1]);return"dataMin"===o?u:"dataMax"===o||l<0?l:Math.max(Math.min(a[0],a[1]),0)}return"dataMin"===o?a[0]:"dataMax"===o?a[1]:a[0]},L.getComposedData=function(e){var t,n=e.props,r=e.xAxis,o=e.yAxis,i=e.xAxisTicks,a=e.yAxisTicks,c=e.bandSize,f=e.dataKey,d=e.stackedData,p=e.dataStartIndex,h=e.displayedData,v=e.offset,g=n.layout,y=d&&d.length,m=L.getBaseValue(n,r,o),b=!1,w=h.map((function(e,t){var n;return y?n=d[p+t]:(n=(0,x.getValueByDataKey)(e,f),(0,s.default)(n)?b=!0:n=[m,n]),"horizontal"===g?{x:(0,x.getCateCoordinateOfLine)({axis:r,ticks:i,bandSize:c,entry:e,index:t}),y:(0,u.default)(n[1])?null:o.scale(n[1]),value:n,payload:e}:{x:(0,u.default)(n[1])?null:r.scale(n[1]),y:(0,x.getCateCoordinateOfLine)({axis:o,ticks:a,bandSize:c,entry:e,index:t}),value:n,payload:e}}));return t=y||b?w.map((function(e){return"horizontal"===g?{x:e.x,y:(0,u.default)((0,l.default)(e,"value[0]"))?null:o.scale((0,l.default)(e,"value[0]"))}:{x:(0,u.default)((0,l.default)(e,"value[0]"))?null:r.scale((0,l.default)(e,"value[0]")),y:e.y}})):"horizontal"===g?o.scale(m):r.scale(m),M({points:w,baseLine:t,layout:g,isRange:b},v)},L.renderDotItem=function(e,t){return c.default.isValidElement(e)?c.default.cloneElement(e,t):(0,a.default)(e)?e(t):c.default.createElement(v.default,O({},t,{className:"recharts-area-dot"}))};var z=L;t.default=z},,function(e,t,n){var r=n(265),o=n(146),i=n(476),a=n(108),l=n(215),u=n(122),s=Object.prototype.hasOwnProperty,c=i((function(e,t){if(l(t)||a(t))o(t,u(t),e);else for(var n in t)s.call(t,n)&&r(e,n,t[n])}));e.exports=c},,function(e,t,n){"use strict";t.a=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}},function(e,t,n){"use strict";t.a=function(e){return function(t){return e(t)}}},function(e,t,n){"use strict";t.a=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n1){if(r&&"angleAxis"===r.axisType&&Math.abs(Math.abs(r.range[1]-r.range[0])-360)<=1e-6)for(var a=r.range,l=0;l0?n[l-1].coordinate:n[i-1].coordinate,s=n[l].coordinate,c=l>=i-1?n[0].coordinate:n[l+1].coordinate,f=void 0;if((0,y.mathSign)(s-u)!==(0,y.mathSign)(c-s)){var d=[];if((0,y.mathSign)(c-s)===(0,y.mathSign)(a[1]-a[0])){f=c;var p=s+a[1]-a[0];d[0]=Math.min(p,(p+u)/2),d[1]=Math.max(p,(p+u)/2)}else{f=u;var h=c+a[1]-a[0];d[0]=Math.min(s,(h+s)/2),d[1]=Math.max(s,(h+s)/2)}var v=[Math.min(s,(f+s)/2),Math.max(s,(f+s)/2)];if(e>v[0]&&e<=v[1]||e>=d[0]&&e<=d[1]){o=n[l].index;break}}else{var g=Math.min(u,c),m=Math.max(u,c);if(e>(g+s)/2&&e<=(m+s)/2){o=n[l].index;break}}}else for(var b=0;b0&&b(t[b].coordinate+t[b-1].coordinate)/2&&e<=(t[b].coordinate+t[b+1].coordinate)/2||b===i-1&&e>(t[b].coordinate+t[b-1].coordinate)/2){o=t[b].index;break}}else o=0;return o};var k=function(e){var t,n=e.type.displayName,r=e.props,o=r.stroke,i=r.fill;switch(n){case"Line":t=o;break;case"Area":case"Radar":t=o&&"none"!==o?o:i;break;default:t=i}return t};t.getMainColorOfGraphicItem=k;var j=function(e){var t,n=e.children,r=e.formatedGraphicalItems,o=e.legendWidth,i=e.legendContent,a=(0,x.findChildByType)(n,b.default);return a?(t=a.props&&a.props.payload?a.props&&a.props.payload:"children"===i?(r||[]).reduce((function(e,t){var n=t.item,r=t.props,o=r.sectors||r.data||[];return e.concat(o.map((function(e){return{type:a.props.iconType||n.props.legendType,value:e.name,color:e.fill,payload:e}})))}),[]):(r||[]).map((function(e){var t=e.item,n=t.props,r=n.dataKey,o=n.name,i=n.legendType;return{inactive:n.hide,dataKey:r,type:a.props.iconType||i||"square",color:k(t),value:o||r,payload:t.props}})),E({},a.props,{},b.default.getWithHeight(a,o),{payload:t,item:a})):null};t.getLegendProps=j;t.getBarSizeList=function(e){var t=e.barSize,n=e.stackGroups,r=void 0===n?{}:n;if(!r)return{};for(var o={},i=Object.keys(r),a=0,l=i.length;a=0}));if(g&&g.length){var y=g[0].props.barSize,m=g[0].props[v];o[m]||(o[m]=[]),o[m].push({item:g[0],stackList:g.slice(1),barSize:(0,p.default)(y)?t:y})}}return o};t.getBarPosition=function(e){var t=e.barGap,n=e.barCategoryGap,r=e.bandSize,o=e.sizeList,i=void 0===o?[]:o,a=e.maxBarSize,l=i.length;if(l<1)return null;var u,s=(0,y.getPercentValue)(t,r,0,!0);if(i[0].barSize===+i[0].barSize){var c=!1,f=r/l,d=i.reduce((function(e,t){return e+t.barSize||0}),0);(d+=(l-1)*s)>=r&&(d-=(l-1)*s,s=0),d>=r&&f>0&&(c=!0,d=l*(f*=.9));var p={offset:((r-d)/2>>0)-s,size:0};u=i.reduce((function(e,t){var n=[].concat(C(e),[{item:t.item,position:{offset:p.offset+p.size+s,size:c?f:t.barSize}}]);return p=n[n.length-1].position,t.stackList&&t.stackList.length&&t.stackList.forEach((function(e){n.push({item:e,position:p})})),n}),[])}else{var h=(0,y.getPercentValue)(n,r,0,!0);r-2*h-(l-1)*s<=0&&(s=0);var v=(r-2*h-(l-1)*s)/l;v>1&&(v>>=0);var g=a===+a?Math.min(v,a):v;u=i.reduce((function(e,t,n){var r=[].concat(C(e),[{item:t.item,position:{offset:h+(v+s)*n+(v-g)/2,size:g}}]);return t.stackList&&t.stackList.length&&t.stackList.forEach((function(e){r.push({item:e,position:r[r.length-1].position})})),r}),[])}return u};t.appendOffsetOfLegend=function(e,t,n,r){var o=n.children,i=n.width,a=n.height,l=n.margin,u=i-(l.left||0)-(l.right||0),s=a-(l.top||0)-(l.bottom||0),c=j({children:o,items:t,legendWidth:u,legendHeight:s}),f=e;if(c){var d=r||{},p=c.align,h=c.verticalAlign,v=c.layout;("vertical"===v||"horizontal"===v&&"center"===h)&&(0,y.isNumber)(e[p])&&(f=E({},e,M({},p,f[p]+(d.width||0)))),("horizontal"===v||"vertical"===v&&"center"===p)&&(0,y.isNumber)(e[h])&&(f=E({},e,M({},h,f[h]+(d.height||0))))}return f};var T=function(e,t,n,r){var o=t.props.children,i=(0,x.findAllByType)(o,m.default).filter((function(e){var t=e.props.direction;return!(!(0,p.default)(t)&&!(0,p.default)(r))||r.indexOf(t)>=0}));if(i&&i.length){var a=i.map((function(e){return e.props.dataKey}));return e.reduce((function(e,t){var r=S(t,n,0),o=(0,l.default)(r)?[(0,s.default)(r),(0,u.default)(r)]:[r,r],i=a.reduce((function(e,n){var r=S(t,n,0),i=o[0]-Math.abs((0,l.default)(r)?r[0]:r),a=o[1]+Math.abs((0,l.default)(r)?r[1]:r);return[Math.min(i,e[0]),Math.max(a,e[1])]}),[1/0,-1/0]);return[Math.min(i[0],e[0]),Math.max(i[1],e[1])]}),[1/0,-1/0])}return null};t.getDomainOfErrorBars=T;t.parseErrorBarsOfAxis=function(e,t,n,r){var o=t.map((function(t){return T(e,t,n,r)})).filter((function(e){return!(0,p.default)(e)}));return o&&o.length?o.reduce((function(e,t){return[Math.min(e[0],t[0]),Math.max(e[1],t[1])]}),[1/0,-1/0]):null};t.getDomainOfItemsWithSameAxis=function(e,t,n,r){var o=t.map((function(t){var o=t.props.dataKey;return"number"===n&&o&&T(e,t,o)||A(e,o,n,r)}));if("number"===n)return o.reduce((function(e,t){return[Math.min(e[0],t[0]),Math.max(e[1],t[1])]}),[1/0,-1/0]);var i={};return o.reduce((function(e,t){for(var n=0,r=t.length;n=0||t.indexOf("AreaChart")>=0)?{scale:v.scalePoint(),realScaleType:"point"}:"category"===r?{scale:v.scaleBand(),realScaleType:"band"}:{scale:v.scaleLinear(),realScaleType:"linear"};if((0,a.default)(n)){var l="scale".concat(n.slice(0,1).toUpperCase()).concat(n.slice(1));return{scale:(v[l]||v.scalePoint)(),realScaleType:v[l]?l:"point"}}return(0,f.default)(n)?{scale:n}:{scale:v.scalePoint(),realScaleType:"point"}};t.checkDomainOfScale=function(e){var t=e.domain();if(t&&!(t.length<=2)){var n=t.length,r=e.range(),o=Math.min(r[0],r[1])-1e-4,i=Math.max(r[0],r[1])+1e-4,a=e(t[0]),l=e(t[n-1]);(ai||li)&&e.domain([t[0],t[n-1]])}};t.findPositionOfBar=function(e,t){if(!e)return null;for(var n=0,r=e.length;nr)&&(o[1]=r),o[0]>r&&(o[0]=r),o[1]=0?(e[l][n][0]=o,e[l][n][1]=o+u,o=e[l][n][1]):(e[l][n][0]=a,e[l][n][1]=a+u,a=e[l][n][1])}};t.offsetSign=P;var L={sign:P,expand:g.stackOffsetExpand,none:g.stackOffsetNone,silhouette:g.stackOffsetSilhouette,wiggle:g.stackOffsetWiggle},z=function(e,t,n){var r=t.map((function(e){return e.props.dataKey}));return(0,g.stack)().keys(r).value((function(e,t){return+S(e,t,0)})).order(g.stackOrderNone).offset(L[n])(e)};t.getStackedData=z;t.getStackGroupsByAxisId=function(e,t,n,r,o,i){if(!e)return null;var a=(i?t.reverse():t).reduce((function(e,t){var o=t.props,i=o.stackId;if(o.hide)return e;var a=t.props[n],l=e[a]||{hasStack:!1,stackGroups:{}};if((0,y.isNumOrStr)(i)){var u=l.stackGroups[i]||{numericAxisId:n,cateAxisId:r,items:[]};u.items.push(t),l.hasStack=!0,l.stackGroups[i]=u}else l.stackGroups[(0,y.uniqueId)("_stackId_")]={numericAxisId:n,cateAxisId:r,items:[t]};return E({},e,M({},a,l))}),{});return Object.keys(a).reduce((function(t,i){var l=a[i];return l.hasStack&&(l.stackGroups=Object.keys(l.stackGroups).reduce((function(t,i){var a=l.stackGroups[i];return E({},t,M({},i,{numericAxisId:n,cateAxisId:r,items:a.items,stackedData:z(e,a.items,o)}))}),{})),E({},t,M({},i,l))}),{})};var N=function(e,t){return"number"===t?[(0,s.default)(e),(0,u.default)(e)]:e};t.calculateDomainOfTicks=N;t.getTicksOfScale=function(e,t){var n=t.realScaleType,r=t.type,o=t.tickCount,i=t.originalDomain,a=t.allowDecimals,l=n||t.scale;if("auto"!==l&&"linear"!==l)return null;if(o&&"number"===r&&i&&("auto"===i[0]||"auto"===i[1])){var u=e.domain(),s=(0,h.getNiceTickValues)(u,o,a);return e.domain(N(s,r)),{niceTicks:s}}if(o&&"number"===r){var c=e.domain();return{niceTicks:(0,h.getTickValuesFixedDomain)(c,o,a)}}return null};t.getCateCoordinateOfLine=function(e){var t=e.axis,n=e.ticks,r=e.bandSize,o=e.entry,i=e.index,a=e.dataKey;if("category"===t.type){if(!t.allowDuplicatedCategory&&t.dataKey&&!(0,p.default)(o[t.dataKey])){var l=(0,y.findEntryInArray)(n,"value",o[t.dataKey]);if(l)return l.coordinate+r/2}return n[i]?n[i].coordinate+r/2:null}var u=S(o,(0,p.default)(a)?t.dataKey:a);return(0,p.default)(u)?null:t.scale(u)};t.getCateCoordinateOfBar=function(e){var t=e.axis,n=e.ticks,r=e.offset,o=e.bandSize,i=e.entry,a=e.index;if("category"===t.type)return n[a]?n[a].coordinate+r:null;var l=S(i,t.dataKey,t.domain[a]);return(0,p.default)(l)?null:t.scale(l)-o/2+r};t.getBaseValueOfBar=function(e){var t=e.numericAxis,n=t.scale.domain();if("number"===t.type){var r=Math.min(n[0],n[1]),o=Math.max(n[0],n[1]);return r<=0&&o>=0?0:o<0?o:r}return n[0]};t.getStackedDataOfItem=function(e,t){var n=e.props.stackId;if((0,y.isNumOrStr)(n)){var r=t[n];if(r&&r.items.length){for(var o=-1,i=0,a=r.items.length;i=0?r.stackedData[o]:null}}return null};t.getDomainOfStackGroups=function(e,t,n){return Object.keys(e).reduce((function(r,o){var i=e[o].stackedData.reduce((function(e,r){var o=r.slice(t,n+1).reduce((function(e,t){return[(0,s.default)(t.concat([e[0]]).filter(y.isNumber)),(0,u.default)(t.concat([e[1]]).filter(y.isNumber))]}),[1/0,-1/0]);return[Math.min(e[0],o[0]),Math.max(e[1],o[1])]}),[1/0,-1/0]);return[Math.min(i[0],r[0]),Math.max(i[1],r[1])]}),[1/0,-1/0]).map((function(e){return e===1/0||e===-1/0?0:e}))};var D=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/;t.MIN_VALUE_REG=D;var I=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/;t.MAX_VALUE_REG=I;t.parseSpecifiedDomain=function(e,t,n){if(!(0,l.default)(e))return t;var r=[];if((0,y.isNumber)(e[0]))r[0]=n?e[0]:Math.min(e[0],t[0]);else if(D.test(e[0])){var o=+D.exec(e[0])[1];r[0]=t[0]-o}else(0,f.default)(e[0])?r[0]=e[0](t[0]):r[0]=t[0];if((0,y.isNumber)(e[1]))r[1]=n?e[1]:Math.max(e[1],t[1]);else if(I.test(e[1])){var i=+I.exec(e[1])[1];r[1]=t[1]+i}else(0,f.default)(e[1])?r[1]=e[1](t[1]):r[1]=t[1];return r};t.getBandSizeOfAxis=function(e,t){if(e&&e.scale&&e.scale.bandwidth)return e.scale.bandwidth();if(e&&t&&t.length>=2){for(var n=(0,o.default)(t,(function(e){return e.coordinate})),r=1/0,i=1,a=n.length;i2&&void 0!==arguments[2]?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(e-(n.left||0)-(n.right||0)),Math.abs(t-(n.top||0)-(n.bottom||0)))/2};t.getMaxRadius=p;t.formatAxisMap=function(e,t,n,r,l){var f=e.width,d=e.height,h=e.startAngle,v=e.endAngle,g=(0,i.getPercentValue)(e.cx,f,f/2),y=(0,i.getPercentValue)(e.cy,d,d/2),m=p(f,d,n),b=(0,i.getPercentValue)(e.innerRadius,m,0),x=(0,i.getPercentValue)(e.outerRadius,m,.8*m);return Object.keys(t).reduce((function(e,n){var i,f=t[n],d=f.domain,p=f.reversed;if((0,o.default)(f.range))"angleAxis"===r?i=[h,v]:"radiusAxis"===r&&(i=[b,x]),p&&(i=[i[1],i[0]]);else{var m=c(i=f.range,2);h=m[0],v=m[1]}var w=(0,a.parseScale)(f,l),_=w.realScaleType,C=w.scale;C.domain(d).range(i),(0,a.checkDomainOfScale)(C);var O=(0,a.getTicksOfScale)(C,u({},f,{realScaleType:_})),E=u({},f,{},O,{range:i,radius:x,realScaleType:_,scale:C,cx:g,cy:y,innerRadius:b,outerRadius:x,startAngle:h,endAngle:v});return u({},e,s({},n,E))}),{})};var h=function(e,t){var n=e.x,r=e.y,o=t.x,i=t.y;return Math.sqrt(Math.pow(n-o,2)+Math.pow(r-i,2))};t.distanceBetweenPoints=h;var v=function(e,t){var n=e.x,r=e.y,o=t.cx,i=t.cy,a=h({x:n,y:r},{x:o,y:i});if(a<=0)return{radius:a};var l=(n-o)/a,u=Math.acos(l);return r>i&&(u=2*Math.PI-u),{radius:a,angle:d(u),angleInRadian:u}};t.getAngleOfPoint=v;var g=function(e){var t=e.startAngle,n=e.endAngle,r=Math.floor(t/360),o=Math.floor(n/360),i=Math.min(r,o);return{startAngle:t-360*i,endAngle:n-360*i}};t.formatAngleOfSector=g;var y=function(e,t){var n=t.startAngle,r=t.endAngle,o=Math.floor(n/360),i=Math.floor(r/360);return e+360*Math.min(o,i)};t.inRangeOfSector=function(e,t){var n=e.x,r=e.y,o=v({x:n,y:r},t),i=o.radius,a=o.angle,l=t.innerRadius,s=t.outerRadius;if(is)return!1;if(0===i)return!0;var c,f=g(t),d=f.startAngle,p=f.endAngle,h=a;if(d<=p){for(;h>p;)h-=360;for(;h=d&&h<=p}else{for(;h>d;)h-=360;for(;h=p&&h<=d}return c?u({},t,{radius:i,angle:y(h,t)}):null}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=f(n(194)),o=f(n(861)),i=function(e){if(e&&e.__esModule)return e;var t=c();if(t&&t.has(e))return t.get(e);var n={};if(null!=e){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}}n.default=e,t&&t.set(e,n);return n}(n(0)),a=f(n(1)),l=f(n(2146)),u=n(826),s=n(809);function c(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return c=function(){return e},e}function f(e){return e&&e.__esModule?e:{default:e}}function d(e){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function h(e){for(var t=1;t=0&&n>=0?{width:t,height:n}:null}},{key:"getDefaultPosition",value:function(e){var t,n,r=this.props,o=r.layout,i=r.align,a=r.verticalAlign,l=r.margin,u=r.chartWidth,s=r.chartHeight;return e&&(void 0!==e.left&&null!==e.left||void 0!==e.right&&null!==e.right)||(t="center"===i&&"vertical"===o?{left:((u||0)-(this.getBBox()||{width:0}).width)/2}:"right"===i?{right:l&&l.right||0}:{left:l&&l.left||0}),e&&(void 0!==e.top&&null!==e.top||void 0!==e.bottom&&null!==e.bottom)||(n="middle"===a?{top:((s||0)-(this.getBBox()||{height:0}).height)/2}:"bottom"===a?{bottom:l&&l.bottom||0}:{top:l&&l.top||0}),h({},t,{},n)}},{key:"updateBBox",value:function(){var e=this.state,t=e.boxWidth,n=e.boxHeight,r=this.props.onBBoxUpdate;if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var o=this.wrapperNode.getBoundingClientRect();(Math.abs(o.width-t)>1||Math.abs(o.height-n)>1)&&this.setState({boxWidth:o.width,boxHeight:o.height},(function(){r&&r(o)}))}else-1===t&&-1===n||this.setState({boxWidth:-1,boxHeight:-1},(function(){r&&r(null)}))}},{key:"render",value:function(){var e=this,t=this.props,n=t.content,o=t.width,a=t.height,u=t.wrapperStyle,s=t.paylodUniqBy,c=t.payload,f=h({position:"absolute",width:o||"auto",height:a||"auto"},this.getDefaultPosition(u),{},u);return i.default.createElement("div",{className:"recharts-legend-wrapper",style:f,ref:function(t){e.wrapperNode=t}},function(e,t){return i.default.isValidElement(e)?i.default.cloneElement(e,t):(0,r.default)(e)?e(t):i.default.createElement(l.default,t)}(n,h({},this.props,{payload:_(s,c)})))}}])&&y(n.prototype,o),a&&y(n,a),t}(i.PureComponent);O.displayName="Legend",O.propTypes={content:a.default.oneOfType([a.default.element,a.default.func]),wrapperStyle:a.default.object,chartWidth:a.default.number,chartHeight:a.default.number,width:a.default.number,height:a.default.number,iconSize:a.default.number,iconType:a.default.oneOf(C),layout:a.default.oneOf(["horizontal","vertical"]),align:a.default.oneOf(["center","left","right"]),verticalAlign:a.default.oneOf(["top","bottom","middle"]),margin:a.default.shape({top:a.default.number,left:a.default.number,bottom:a.default.number,right:a.default.number}),payload:a.default.arrayOf(a.default.shape({value:a.default.any,id:a.default.any,type:a.default.oneOf(s.LEGEND_TYPES)})),paylodUniqBy:a.default.oneOfType([a.default.func,a.default.bool]),formatter:a.default.func,onMouseEnter:a.default.func,onMouseLeave:a.default.func,onClick:a.default.func,onBBoxUpdate:a.default.func},O.defaultProps={iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"};var E=O;t.default=E},function(e,t,n){var r=n(119),o=n(2171);e.exports=function(e,t){var n=[];if(!e||!e.length)return n;var i=-1,a=[],l=e.length;for(t=r(t,3);++i=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function h(e){for(var t=1;t-1&&e%1==0&&e1&&void 0!==arguments[1]?arguments[1]:0,n=-1,r=function r(o){n<0&&(n=o),o-n>t?(e(o),n=-1):c()(r)};c()(r)}function d(e){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function p(e){return function(e){if(Array.isArray(e))return e}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function h(){var e=function(){return null},t=!1;return{stop:function(){t=!0},start:function(n){t=!1,function n(r){if(!t){if(Array.isArray(r)){if(!r.length)return;var o=p(r),i=o[0],a=o.slice(1);return"number"==typeof i?void f(n.bind(null,a),i):(n(i),void f(n.bind(null,a)))}"object"===d(r)&&e(r),"function"==typeof r&&r()}}(n)},subscribe:function(t){return e=t,function(){e=function(){return null}}}}}var v=n(494),g=n.n(v);function y(e){for(var t=1;t=0&&e<=1}));var c=j(r,i),f=j(o,a),d=T(r,i),p=function(e){return e>1?1:e<0?0:e},h=function(e){for(var t=e>1?1:e,n=t,r=0;r<8;++r){var o=c(n)-t,i=d(n);if(Math.abs(o-t)<1e-4||i<1e-4)return f(n);n=p(n-o/i)}return f(n)};return h.isStepper=!1,h},L=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.stiff,n=void 0===t?100:t,r=e.damping,o=void 0===r?8:r,i=e.dt,a=void 0===i?17:i,l=function(e,t,r){var i=r+(-(e-t)*n-r*o)*a/1e3,l=r*a/1e3+e;return Math.abs(l-t)<1e-4&&Math.abs(i)<1e-4?[t,0]:[l,i]};return l.isStepper=!0,l.dt=a,l},z=n(1029),N=n.n(z);function D(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Z(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t0?n[o-1]:r,d=s||Object.keys(u);if("function"==typeof l||"spring"===l)return Z(e).concat([t.runJSAnimation.bind(t,{from:f.style,to:u,duration:i,easing:l}),i]);var p=E(d,i,l),h=W({},f.style,u,{transition:p});return Z(e).concat([h,i,c]).filter(_)}),[a,Math.max(u,r)])),[e.onAnimationEnd]))}},{key:"runAnimation",value:function(e){this.manager||(this.manager=h());var t=e.begin,n=e.duration,r=e.attributeName,o=e.to,i=e.easing,a=e.onAnimationStart,l=e.onAnimationEnd,u=e.steps,s=e.children,c=this.manager;if(this.unSubscribe=c.subscribe(this.handleStyleChange),"function"!=typeof i&&"function"!=typeof s&&"spring"!==i)if(u.length>1)this.runStepAnimation(e);else{var f=r?K({},r,o):o,d=E(Object.keys(f),n,i);c.start([a,t,W({},f,{transition:d}),n,l])}else this.runJSAnimation(e)}},{key:"handleStyleChange",value:function(e){this.changeStyle(e)}},{key:"changeStyle",value:function(e){this.mounted&&this.setState({style:e})}},{key:"render",value:function(){var e=this.props,t=e.children,n=(e.begin,e.duration,e.attributeName,e.easing,e.isActive),r=(e.steps,e.from,e.to,e.canBegin,e.onAnimationEnd,e.shouldReAnimate,e.onAnimationReStart,U(e,["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"])),o=i.Children.count(t),l=O(this.state.style);if("function"==typeof t)return t(l);if(!n||0===o)return t;var u=function(e){var t=e.props,n=t.style,o=void 0===n?{}:n,a=t.className;return Object(i.cloneElement)(e,W({},r,{style:W({},o,l),className:a}))};return 1===o?u(i.Children.only(t)):a.a.createElement("div",null,i.Children.map(t,(function(e){return u(e)})))}}])&&G(n.prototype,r),l&&G(n,l),t}(i.PureComponent);Q.displayName="Animate",Q.propTypes={from:u.a.oneOfType([u.a.object,u.a.string]),to:u.a.oneOfType([u.a.object,u.a.string]),attributeName:u.a.string,duration:u.a.number,begin:u.a.number,easing:u.a.oneOfType([u.a.string,u.a.func]),steps:u.a.arrayOf(u.a.shape({duration:u.a.number.isRequired,style:u.a.object.isRequired,easing:u.a.oneOfType([u.a.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),u.a.func]),properties:u.a.arrayOf("string"),onAnimationEnd:u.a.func})),children:u.a.oneOfType([u.a.node,u.a.func]),isActive:u.a.bool,canBegin:u.a.bool,onAnimationEnd:u.a.func,shouldReAnimate:u.a.bool,onAnimationStart:u.a.func,onAnimationReStart:u.a.func},Q.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};var ee=Q,te=n(1499),ne=n(459),re=n.n(ne);function oe(e){return(oe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ie(){return(ie=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function le(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ue(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function se(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{},t=e.steps,n=e.duration;return t&&t.length?t.reduce((function(e,t){return e+(re()(t.duration)&&t.duration>0?t.duration:0)}),0):re()(n)?n:0},he=function(e){function t(){var e,n;ue(this,t);for(var r=arguments.length,o=new Array(r),i=0;i=0?1:-1;"insideStart"===l?(r=b+O*c,o=w):"insideEnd"===l?(r=x-O*c,o=!w):"end"===l&&(r=x+O*c,o=w),o=C<=0?o:!o;var E=(0,d.polarToCartesian)(h,v,_,r),M=(0,d.polarToCartesian)(h,v,_,r+359*(o?1:-1)),S="M".concat(E.x,",").concat(E.y,"\n A").concat(_,",").concat(_,",0,1,").concat(o?0:1,",\n ").concat(M.x,",").concat(M.y),A=(0,i.default)(e.id)?(0,f.uniqueId)("recharts-radial-line-"):e.id;return a.default.createElement("text",g({},n,{dominantBaseline:"central",className:(0,u.default)("recharts-radial-bar-label",p)}),a.default.createElement("defs",null,a.default.createElement("path",{id:A,d:S})),a.default.createElement("textPath",{xlinkHref:"#".concat(A)},t))};function C(e){var t,n=e.viewBox,l=e.position,p=e.value,h=e.children,v=e.content,y=e.className,m=void 0===y?"":y;if(!n||(0,i.default)(p)&&(0,i.default)(h)&&!(0,a.isValidElement)(v)&&!(0,o.default)(v))return null;if((0,a.isValidElement)(v))return(0,a.cloneElement)(v,e);if((0,o.default)(v)){if(t=v(e),(0,a.isValidElement)(t))return t}else t=function(e){var t=e.value,n=e.formatter,r=(0,i.default)(e.children)?t:e.children;return(0,o.default)(n)?n(r):r}(e);var b=function(e){return(0,f.isNumber)(e.cx)}(n),x=(0,c.getPresentationAttributes)(e),w=(0,c.filterEventAttributes)(e);if(b&&("insideStart"===l||"insideEnd"===l||"end"===l))return _(e,t,x);var C=b?function(e){var t=e.viewBox,n=e.offset,r=e.position,o=t.cx,i=t.cy,a=t.innerRadius,l=t.outerRadius,u=(t.startAngle+t.endAngle)/2;if("outside"===r){var s=(0,d.polarToCartesian)(o,i,l+n,u),c=s.x;return{x:c,y:s.y,textAnchor:c>=o?"start":"end",verticalAnchor:"middle"}}if("center"===r)return{x:o,y:i,textAnchor:"middle",verticalAnchor:"middle"};if("centerTop"===r)return{x:o,y:i,textAnchor:"middle",verticalAnchor:"start"};if("centerBottom"===r)return{x:o,y:i,textAnchor:"middle",verticalAnchor:"end"};var f=(a+l)/2,p=(0,d.polarToCartesian)(o,i,f,u);return{x:p.x,y:p.y,textAnchor:"middle",verticalAnchor:"middle"}}(e):function(e){var t=e.viewBox,n=e.offset,o=e.position,i=t.x,a=t.y,l=t.width,u=t.height,s=u>=0?1:-1;return"top"===o?{x:i+l/2,y:a-s*n,textAnchor:"middle",verticalAnchor:s>0?"end":"start"}:"bottom"===o?{x:i+l/2,y:a+u+s*n,textAnchor:"middle",verticalAnchor:"start"}:"left"===o?{x:i-n,y:a+u/2,textAnchor:"end",verticalAnchor:"middle"}:"right"===o?{x:i+l+n,y:a+u/2,textAnchor:"start",verticalAnchor:"middle"}:"insideLeft"===o?{x:i+n,y:a+u/2,textAnchor:"start",verticalAnchor:"middle"}:"insideRight"===o?{x:i+l-n,y:a+u/2,textAnchor:"end",verticalAnchor:"middle"}:"insideTop"===o?{x:i+l/2,y:a+s*n,textAnchor:"middle",verticalAnchor:"start"}:"insideBottom"===o?{x:i+l/2,y:a+u-s*n,textAnchor:"middle",verticalAnchor:"end"}:"insideTopLeft"===o?{x:i+n,y:a+s*n,textAnchor:"start",verticalAnchor:"start"}:"insideTopRight"===o?{x:i+l-n,y:a+s*n,textAnchor:"end",verticalAnchor:"start"}:"insideBottomLeft"===o?{x:i+n,y:a+u-s*n,textAnchor:"start",verticalAnchor:"end"}:"insideBottomRight"===o?{x:i+l-n,y:a+u-s*n,textAnchor:"end",verticalAnchor:"end"}:(0,r.default)(o)&&((0,f.isNumber)(o.x)||(0,f.isPercent)(o.x))&&((0,f.isNumber)(o.y)||(0,f.isPercent)(o.y))?{x:i+(0,f.getPercentValue)(o.x,l),y:a+(0,f.getPercentValue)(o.y,u),textAnchor:"end",verticalAnchor:"end"}:{x:i+l/2,y:a+u/2,textAnchor:"middle",verticalAnchor:"middle"}}(e);return a.default.createElement(s.default,g({className:(0,u.default)("recharts-label",m)},x,C,w),t)}C.displayName="Label",C.defaultProps={offset:5},C.propTypes=w;var O=function(e){var t=e.cx,n=e.cy,r=e.angle,o=e.startAngle,i=e.endAngle,a=e.r,l=e.radius,u=e.innerRadius,s=e.outerRadius,c=e.x,d=e.y,p=e.top,h=e.left,v=e.width,g=e.height,y=e.clockWise;if((0,f.isNumber)(v)&&(0,f.isNumber)(g)){if((0,f.isNumber)(c)&&(0,f.isNumber)(d))return{x:c,y:d,width:v,height:g};if((0,f.isNumber)(p)&&(0,f.isNumber)(h))return{x:p,y:h,width:v,height:g}}return(0,f.isNumber)(c)&&(0,f.isNumber)(d)?{x:c,y:d,width:0,height:0}:(0,f.isNumber)(t)&&(0,f.isNumber)(n)?{cx:t,cy:n,startAngle:o||r||0,endAngle:i||r||0,innerRadius:u||0,outerRadius:s||l||a||0,clockWise:y}:e.viewBox?e.viewBox:{}},E=function(e,t){return e?!0===e?a.default.createElement(C,{key:"label-implicit",viewBox:t}):(0,f.isNumOrStr)(e)?a.default.createElement(C,{key:"label-implicit",viewBox:t,value:e}):(0,a.isValidElement)(e)?e.type===C?(0,a.cloneElement)(e,{key:"label-implicit",viewBox:t}):a.default.createElement(C,{key:"label-implicit",content:e,viewBox:t}):(0,o.default)(e)?a.default.createElement(C,{key:"label-implicit",content:e,viewBox:t}):(0,r.default)(e)?a.default.createElement(C,g({viewBox:t},e,{key:"label-implicit"})):null:null};C.parseViewBox=O,C.renderCallByParent=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!e||!e.children&&n&&!e.label)return null;var r=e.children,o=O(e),i=(0,c.findAllByType)(r,C).map((function(e,n){return(0,a.cloneElement)(e,{viewBox:t||o,key:"label-".concat(n)})}));if(!n)return i;var l=E(e.label,t||o);return[l].concat(v(i))};var M=C;t.default=M},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(809);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(){return null}a.propTypes=function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var _={id:s.default.string,data:s.default.arrayOf(s.default.object),valueAccessor:s.default.func,clockWise:s.default.bool,dataKey:s.default.oneOfType([s.default.string,s.default.number,s.default.func])},C={valueAccessor:function(e){return(0,l.default)(e.value)?(0,a.default)(e.value):e.value}};function O(e){var t=e.data,n=e.valueAccessor,r=e.dataKey,o=e.clockWise,a=e.id,l=w(e,["data","valueAccessor","dataKey","clockWise","id"]);return t&&t.length?u.default.createElement(f.default,{className:"recharts-label-list"},t.map((function(e,t){var s=(0,i.default)(r)?n(e,t):(0,p.getValueByDataKey)(e&&e.payload,r),f=(0,i.default)(a)?{}:{id:"".concat(a,"-").concat(t)};return u.default.createElement(c.default,y({},(0,d.getPresentationAttributes)(e),l,f,{index:t,value:s,viewBox:c.default.parseViewBox((0,i.default)(o)?e:b({},e,{clockWise:o})),key:"label-".concat(t)}))}))):null}O.propTypes=_,O.displayName="LabelList";var E=function(e,t){return e?!0===e?u.default.createElement(O,{key:"labelList-implicit",data:t}):u.default.isValidElement(e)||(0,o.default)(e)?u.default.createElement(O,{key:"labelList-implicit",data:t,content:e}):(0,r.default)(e)?u.default.createElement(O,y({data:t},e,{key:"labelList-implicit"})):null:null};O.renderCallByParent=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!e||!e.children&&n&&!e.label)return null;var r=e.children,o=(0,d.findAllByType)(r,O).map((function(e,n){return(0,u.cloneElement)(e,{data:t,key:"labelList-".concat(n)})}));if(!n)return o;var i=E(e.label,t);return[i].concat(g(o))},O.defaultProps=C;var M=O;t.default=M},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=d(n(857)),o=function(e){if(e&&e.__esModule)return e;var t=f();if(t&&t.has(e))return t.get(e);var n={};if(null!=e){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}}n.default=e,t&&t.set(e,n);return n}(n(0)),i=d(n(1)),a=d(n(2133)),l=d(n(3)),u=n(826),s=n(809),c=n(1274);function f(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return f=function(){return e},e}function d(e){return e&&e.__esModule?e:{default:e}}function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function v(e){return(v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function g(){return(g=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function m(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{},n=t.bandAware,r=t.position;if(void 0!==e){if(r)switch(r){case"start":return this.scale(e);case"middle":var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(e)+o;case"end":var i=this.bandwidth?this.bandwidth():0;return this.scale(e)+i;default:return this.scale(e)}if(n){var a=this.bandwidth?this.bandwidth()/2:0;return this.scale(e)+a}return this.scale(e)}}},{key:"isInRange",value:function(e){var t=this.range(),n=t[0],r=t[t.length-1];return n<=r?e>=n&&e<=r:e>=r&&e<=n}},{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}}]),e}();t.ScaleHelper=h,h.EPS=1e-4;var v=function(){function e(t){l(this,e),this.scales=(0,o.default)(t,h.create),Object.assign(this,this.scales)}return s(e,null,[{key:"create",value:function(e){return new this(e)}}]),s(e,[{key:"apply",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.bandAware,r=this.scales;return(0,o.default)(e,(function(e,t){return r[t].apply(e,{bandAware:n})}))}},{key:"isInRange",value:function(e){var t=this.scales;return(0,r.default)(e,(function(e,n){return t[n].isInRange(e)}))}}]),e}();t.LabeledScaleHelper=v},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=x(n(857)),o=x(n(806)),i=x(n(194)),a=x(n(60)),l=function(e){if(e&&e.__esModule)return e;var t=b();if(t&&t.has(e))return t.get(e);var n={};if(null!=e){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}}n.default=e,t&&t.set(e,n);return n}(n(0)),u=x(n(1)),s=x(n(3)),c=x(n(990)),f=x(n(1276)),d=x(n(868)),p=x(n(1157)),h=x(n(998)),v=x(n(1030)),g=n(826),y=n(809),m=n(911);function b(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return b=function(){return e},e}function x(e){return e&&e.__esModule?e:{default:e}}function w(e){return(w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function C(){return(C=Object.assign||function(e){for(var t=1;t0&&Math.abs(h)0&&Math.abs(p)t?"start":e0?(0,o.default)(e,"paddingAngle",0):0;if(n){var u=(0,w.interpolateNumber)(n.endAngle-n.startAngle,e.endAngle-e.startAngle),s=k({},e,{startAngle:a+l,endAngle:a+u(r)+l});i.push(s),a=s.endAngle}else{var c=e.endAngle,d=e.startAngle,p=(0,w.interpolateNumber)(0,c-d)(r),h=k({},e,{startAngle:a+l,endAngle:a+p+l});i.push(h),a=h.endAngle}})),u.default.createElement(d.default,null,e.renderSectorsStatically(i))}))}},{key:"renderSectors",value:function(){var e=this.props,t=e.sectors,n=e.isAnimationActive,o=this.state.prevSectors;return!(n&&t&&t.length)||o&&(0,r.default)(o,t)?this.renderSectorsStatically(t):this.renderSectorsWithAnimation()}},{key:"render",value:function(){var e=this.props,t=e.hide,n=e.sectors,o=e.className,i=e.label,a=e.cx,l=e.cy,s=e.innerRadius,c=e.outerRadius,p=e.isAnimationActive,h=e.prevSectors;if(t||!n||!n.length||!(0,w.isNumber)(a)||!(0,w.isNumber)(l)||!(0,w.isNumber)(s)||!(0,w.isNumber)(c))return null;var v=(0,f.default)("recharts-pie",o);return u.default.createElement(d.default,{className:v},this.renderSectors(),i&&this.renderLabels(n),g.default.renderCallByParent(this.props,null,!1),(!p||h&&(0,r.default)(h,n))&&y.default.renderCallByParent(this.props,n,!1))}}])&&P(n.prototype,s),m&&P(n,m),t}(u.PureComponent);D.displayName="Pie",D.propTypes=k({},b.PRESENTATION_ATTRIBUTES,{},b.EVENT_ATTRIBUTES,{className:s.default.string,animationId:s.default.number,cx:s.default.oneOfType([s.default.number,s.default.string]),cy:s.default.oneOfType([s.default.number,s.default.string]),startAngle:s.default.number,endAngle:s.default.number,paddingAngle:s.default.number,innerRadius:s.default.oneOfType([s.default.number,s.default.string]),outerRadius:s.default.oneOfType([s.default.number,s.default.string]),cornerRadius:s.default.oneOfType([s.default.number,s.default.string]),dataKey:s.default.oneOfType([s.default.string,s.default.number,s.default.func]).isRequired,nameKey:s.default.oneOfType([s.default.string,s.default.number,s.default.func]),valueKey:s.default.oneOfType([s.default.string,s.default.number,s.default.func]),data:s.default.arrayOf(s.default.object),blendStroke:s.default.bool,minAngle:s.default.number,legendType:s.default.oneOf(b.LEGEND_TYPES),tooltipType:s.default.oneOf(b.TOOLTIP_TYPES),maxRadius:s.default.number,sectors:s.default.arrayOf(s.default.object),hide:s.default.bool,labelLine:s.default.oneOfType([s.default.object,s.default.func,s.default.element,s.default.bool]),label:s.default.oneOfType([s.default.shape({offsetRadius:s.default.number}),s.default.func,s.default.element,s.default.bool]),activeShape:s.default.oneOfType([s.default.object,s.default.func,s.default.element]),activeIndex:s.default.oneOfType([s.default.number,s.default.arrayOf(s.default.number)]),onAnimationStart:s.default.func,onAnimationEnd:s.default.func,isAnimationActive:s.default.bool,animationBegin:s.default.number,animationDuration:s.default.number,animationEasing:s.default.oneOf(["ease","ease-in","ease-out","ease-in-out","spring","linear"]),id:s.default.string}),D.defaultProps={stroke:"#fff",fill:"#808080",legendType:"rect",cx:"50%",cy:"50%",startAngle:0,endAngle:360,innerRadius:0,outerRadius:"80%",paddingAngle:0,labelLine:!0,hide:!1,minAngle:0,isAnimationActive:!(0,b.isSsr)(),animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",blendStroke:!1},D.parseDeltaAngle=function(e){var t=e.startAngle,n=e.endAngle;return(0,w.mathSign)(n-t)*Math.min(Math.abs(n-t),360)},D.getRealPieData=function(e){var t=e.props,n=t.data,r=t.children,o=(0,b.getPresentationAttributes)(e.props),i=(0,b.findAllByType)(r,m.default);return n&&n.length?n.map((function(e,t){return k({payload:e},o,{},e,{},i&&i[t]&&i[t].props)})):i&&i.length?i.map((function(e){return k({},o,{},e.props)})):[]},D.parseCoordinateOfPie=function(e,t){var n=t.top,r=t.left,o=t.width,i=t.height,a=(0,x.getMaxRadius)(o,i);return{cx:r+(0,w.getPercentValue)(e.props.cx,o,o/2),cy:n+(0,w.getPercentValue)(e.props.cy,i,i/2),innerRadius:(0,w.getPercentValue)(e.props.innerRadius,a,0),outerRadius:(0,w.getPercentValue)(e.props.outerRadius,a,.8*a),maxRadius:e.props.maxRadius||Math.sqrt(o*o+i*i)/2}},D.getComposedData=function(e){var t=e.item,n=e.offset,r=e.onItemMouseLeave,o=e.onItemMouseEnter,i=D.getRealPieData(t);if(!i||!i.length)return[];var a=t.props,u=a.cornerRadius,s=a.startAngle,c=a.endAngle,f=a.paddingAngle,d=a.dataKey,p=a.nameKey,h=a.valueKey,v=a.tooltipType,g=Math.abs(t.props.minAngle),y=D.parseCoordinateOfPie(t,n),m=i.length,b=D.parseDeltaAngle({startAngle:s,endAngle:c}),O=Math.abs(b),E=O-m*g-(O>=360?m:m-1)*f,M=d;(0,l.default)(d)&&(0,l.default)(h)?((0,C.warn)(!1,'Use "dataKey" to specify the value of pie,\n the props "valueKey" will be deprecated in 1.1.0'),M="value"):(0,l.default)(d)&&((0,C.warn)(!1,'Use "dataKey" to specify the value of pie,\n the props "valueKey" will be deprecated in 1.1.0'),M=h);var S,A,j=i.reduce((function(e,t){var n=(0,_.getValueByDataKey)(t,M,0);return e+((0,w.isNumber)(n)?n:0)}),0);j>0&&(S=i.map((function(e,t){var n,r=(0,_.getValueByDataKey)(e,M,0),o=(0,_.getValueByDataKey)(e,p,t),i=((0,w.isNumber)(r)?r:0)/j,a=(n=t?A.endAngle+(0,w.mathSign)(b)*f:s)+(0,w.mathSign)(b)*(g+i*E),l=(n+a)/2,c=(y.innerRadius+y.outerRadius)/2,d=[{name:o,value:r,payload:e,dataKey:M,type:v}],h=(0,x.polarToCartesian)(y.cx,y.cy,c,l);return A=k({percent:i,cornerRadius:u,name:o,tooltipPayload:d,midAngle:l,middleRadius:c,tooltipPosition:h},e,{},y,{value:(0,_.getValueByDataKey)(e,M),startAngle:n,endAngle:a,payload:e,paddingAngle:(0,w.mathSign)(b)*f})})));return k({},y,{sectors:S,data:i,onMouseLeave:r,onMouseEnter:o})};var I=D;t.default=I},function(e,t,n){"use strict";var r=n(8),o=n(1493),i=n(77),a=n(99),l=n(112),u=n(259);r({target:"Array",proto:!0},{flat:function(){var e=arguments.length?arguments[0]:void 0,t=i(this),n=a(t),r=u(t,0);return r.length=o(r,t,t,n,0,void 0===e?1:l(e)),r}})},function(e,t,n){"use strict";n(205)("flat")},,function(e,t,n){var r=n(100).isFinite;e.exports=function(e){return"number"==typeof e&&r(e)}},,,,,,function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.default=e.exports,e.exports.__esModule=!0},,,,,,,,,function(e,t,n){"use strict";var r=n(808),o=n(887);t.a=function(e){return Object(r.a)((function(t,n){var r=-1,i=n.length,a=i>1?n[i-1]:void 0,l=i>2?n[2]:void 0;for(a=e.length>3&&"function"==typeof a?(i--,a):void 0,l&&Object(o.a)(n[0],n[1],l)&&(a=i<3?void 0:a,i=1),t=Object(t);++r-1&&e%1==0&&e<=9007199254740991}},function(e,t,n){"use strict";(function(e){var r=n(1656),o="object"==typeof exports&&exports&&!exports.nodeType&&exports,i=o&&"object"==typeof e&&e&&!e.nodeType&&e,a=i&&i.exports===o&&r.a.process,l=function(){try{var e=i&&i.require&&i.require("util").types;return e||a&&a.binding&&a.binding("util")}catch(e){}}();t.a=l}).call(this,n(1351)(e))},function(e,t,n){"use strict";var r=n(840),o=Object.create,i=function(){function e(){}return function(t){if(!Object(r.a)(t))return{};if(o)return o(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();t.a=i},,,,,function(e,t,n){"use strict";var r=n(843);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(1105)),i=r(n(1172)),a=r(n(0)),l=r(n(1)),u=r(n(3)),s={children:l.default.node,className:l.default.string,componentCls:l.default.string,as:l.default.string},c=function(e){var t=e.children,n=e.as,r=void 0===n?"div":n,l=e.componentCls,s=e.className,c=(0,i.default)(e,["children","as","componentCls","className"]);return a.default.createElement(r,(0,o.default)({className:(0,u.default)(l,s)},c),t)};c.propTypes=s;var f=c;t.default=f},function(e,t,n){"use strict";var r=n(1002),o=n(843);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(1105)),a=o(n(1003)),l=o(n(1004)),u=o(n(1005)),s=o(n(1006)),c=o(n(1007)),f=r(n(0));function d(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,c.default)(e);if(t){var o=(0,c.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,s.default)(this,n)}}var p=function(e){return function(t){return function(n){(0,u.default)(o,n);var r=d(o);function o(){return(0,a.default)(this,o),r.apply(this,arguments)}return(0,l.default)(o,[{key:"render",value:function(){return f.default.createElement(t,(0,i.default)({},e,this.props))}}]),o}(f.Component)}};t.default=p},,function(e,t,n){"use strict";var r=n(8),o=n(19),i=n(350).f;r({target:"Object",stat:!0,forced:o((function(){return!Object.getOwnPropertyNames(1)}))},{getOwnPropertyNames:i})},function(e,t,n){"use strict";var r=n(1017);e.exports=function(e){if(!r(e))throw new TypeError("Cannot use null or undefined");return e}},,,,,,,,,,,,function(e,t,n){"use strict";var r=n(8),o=n(21),i=n(80),a=n(112),l=n(46),u=o("".slice),s=Math.max,c=Math.min;r({target:"String",proto:!0,forced:!"".substr||"b"!=="ab".substr(-1)},{substr:function(e,t){var n,r,o=l(i(this)),f=o.length,d=a(e);return d===1/0&&(d=0),d<0&&(d=s(f+d,0)),(n=void 0===t?f:a(t))<=0||n===1/0||d>=(r=c(d+n,f))?"":u(o,d,r)}})},,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=d(n(60)),o=d(n(194)),i=function(e){if(e&&e.__esModule)return e;var t=f();if(t&&t.has(e))return t.get(e);var n={};if(null!=e){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}}n.default=e,t&&t.set(e,n);return n}(n(0)),a=d(n(1)),l=n(1256),u=d(n(3)),s=n(809),c=n(826);function f(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return f=function(){return e},e}function d(e){return e&&e.__esModule?e:{default:e}}function p(e){return(p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function h(){return(h=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function D(){return(D=Object.assign||function(e){for(var t=1;t0&&n.handleMouseMove(e.changedTouches[0])},n.handleTouchStart=function(e){null!=e.changedTouches&&e.changedTouches.length>0&&n.handleMouseDown(e.changedTouches[0])},n.handleTouchEnd=function(e){null!=e.changedTouches&&e.changedTouches.length>0&&n.handleMouseUp(e.changedTouches[0])},n.verticalCoordinatesGenerator=function(e){var t=e.xAxis,n=e.width,r=e.height,o=e.offset;return(0,S.getCoordinatesOfGrid)(C.default.getTicks(H({},C.default.defaultProps,{},t,{ticks:(0,S.getTicksOfAxis)(t,!0),viewBox:{x:0,y:0,width:n,height:r}})),o.left,o.left+o.width)},n.horizontalCoordinatesGenerator=function(e){var t=e.yAxis,n=e.width,r=e.height,o=e.offset;return(0,S.getCoordinatesOfGrid)(C.default.getTicks(H({},C.default.defaultProps,{},t,{ticks:(0,S.getTicksOfAxis)(t,!0),viewBox:{x:0,y:0,width:n,height:r}})),o.top,o.top+o.height)},n.axesTicksGenerator=function(e){return(0,S.getTicksOfAxis)(e,!0)},n.tooltipTicksGenerator=function(e){var t=(0,M.getAnyElementOfObject)(e),n=(0,S.getTicksOfAxis)(t,!1,!0);return{tooltipTicks:n,orderedTooltipTicks:(0,i.default)(n,(function(e){return e.coordinate})),tooltipAxis:t,tooltipAxisBandSize:(0,S.getBandSizeOfAxis)(t)}},n.renderCursor=function(e){var r=n.state,o=r.isTooltipActive,i=r.activeCoordinate,a=r.activePayload,l=r.offset;if(!(e&&e.props.cursor&&o&&i))return null;var u,s=n.props.layout,f=y.default;if("ScatterChart"===t)u=i,f=m.default;else if("BarChart"===t)u=n.getCursorRectangle(),f=w.default;else if("radial"===s){var d=n.getCursorPoints(),p=d.cx,h=d.cy,v=d.radius;u={cx:p,cy:h,startAngle:d.startAngle,endAngle:d.endAngle,innerRadius:v,outerRadius:v},f=b.default}else u={points:n.getCursorPoints()},f=y.default;var g=e.key||"_recharts-cursor",x=H({stroke:"#ccc",pointerEvents:"none"},l,{},u,{},(0,_.getPresentationAttributes)(e.props.cursor),{payload:a,key:g,className:"recharts-tooltip-cursor"});return(0,c.isValidElement)(e.props.cursor)?(0,c.cloneElement)(e.props.cursor,x):(0,c.createElement)(f,x)},n.renderPolarAxis=function(e,t,r){var o=e.type.axisType,i=n.state["".concat(o,"Map")][e.props["".concat(o,"Id")]];return(0,c.cloneElement)(e,H({},i,{className:o,key:e.key||"".concat(t,"-").concat(r),ticks:(0,S.getTicksOfAxis)(i,!0)}))},n.renderXAxis=function(e,t,r){var o=n.state.xAxisMap[e.props.xAxisId];return n.renderAxis(o,e,t,r)},n.renderYAxis=function(e,t,r){var o=n.state.yAxisMap[e.props.yAxisId];return n.renderAxis(o,e,t,r)},n.renderGrid=function(e){var t=n.state,i=t.xAxisMap,a=t.yAxisMap,l=t.offset,u=n.props,s=u.width,f=u.height,d=(0,M.getAnyElementOfObject)(i),p=(0,o.default)(a,(function(e){return(0,r.default)(e.domain,Number.isFinite)}))||(0,M.getAnyElementOfObject)(a),h=e.props||{};return(0,c.cloneElement)(e,{key:e.key||"grid",x:(0,M.isNumber)(h.x)?h.x:l.left,y:(0,M.isNumber)(h.y)?h.y:l.top,width:(0,M.isNumber)(h.width)?h.width:l.width,height:(0,M.isNumber)(h.height)?h.height:l.height,xAxis:d,yAxis:p,offset:l,chartWidth:s,chartHeight:f,verticalCoordinatesGenerator:h.verticalCoordinatesGenerator||n.verticalCoordinatesGenerator,horizontalCoordinatesGenerator:h.horizontalCoordinatesGenerator||n.horizontalCoordinatesGenerator})},n.renderPolarGrid=function(e){var t=n.state,r=t.radiusAxisMap,o=t.angleAxisMap,i=(0,M.getAnyElementOfObject)(r),a=(0,M.getAnyElementOfObject)(o),l=a.cx,u=a.cy,s=a.innerRadius,f=a.outerRadius;return(0,c.cloneElement)(e,{polarAngles:(0,S.getTicksOfAxis)(a,!0).map((function(e){return e.coordinate})),polarRadius:(0,S.getTicksOfAxis)(i,!0).map((function(e){return e.coordinate})),cx:l,cy:u,innerRadius:s,outerRadius:f,key:e.key||"polar-grid"})},n.renderBrush=function(e){var t=n.props,r=t.margin,o=t.data,i=n.state,a=i.offset,l=i.dataStartIndex,u=i.dataEndIndex,s=i.updateId;return(0,c.cloneElement)(e,{key:e.key||"_recharts-brush",onChange:(0,S.combineEventHandlers)(n.handleBrushChange,null,e.props.onChange),data:o,x:(0,M.isNumber)(e.props.x)?e.props.x:a.left,y:(0,M.isNumber)(e.props.y)?e.props.y:a.top+a.height+a.brushBottom-(r.bottom||0),width:(0,M.isNumber)(e.props.width)?e.props.width:a.width,startIndex:l,endIndex:u,updateId:"brush-".concat(s)})},n.renderReferenceElement=function(e,t,r){if(!e)return null;var o=$(n).clipPathId,i=n.state,a=i.xAxisMap,l=i.yAxisMap,u=i.offset,s=e.props,f=s.xAxisId,d=s.yAxisId;return(0,c.cloneElement)(e,{key:e.key||"".concat(t,"-").concat(r),xAxis:a[f],yAxis:l[d],viewBox:{x:u.left,y:u.top,width:u.width,height:u.height},clipPathId:o})},n.renderGraphicChild=function(e,t,r){var o=n.filterFormatItem(e,t,r);if(!o)return null;var i=(0,c.cloneElement)(e,o.props),a=n.state,l=a.isTooltipActive,u=a.tooltipAxis,f=a.activeTooltipIndex,d=a.activeLabel,p=n.props.children,h=(0,_.findChildByType)(p,v.default),g=o.props,y=g.points,m=g.isRange,b=g.baseLine,x=o.item.props,w=x.activeDot;if(!x.hide&&l&&h&&w&&f>=0){var C,O;if(u.dataKey&&!u.allowDuplicatedCategory){var E="function"==typeof u.dataKey?function(e){return u.dataKey(e.payload)}:"payload.".concat(u.dataKey);C=(0,M.findEntryInArray)(y,E,d),O=m&&b&&(0,M.findEntryInArray)(b,E,d)}else C=y[f],O=m&&b&&b[f];if(!(0,s.default)(C))return[i].concat(I(n.renderActivePoints({item:o,activePoint:C,basePoint:O,childIndex:f,isRange:m})))}return m?[i,null,null]:[i,null]},n.renderCustomized=function(e){return(0,c.cloneElement)(e,H({},n.props,{},n.state))};var l=n.constructor.createDefaultState(e);return n.state=H({},l,{updateId:0},n.updateStateOfAxisMapsOffsetAndStackGroups(H({props:e},l,{updateId:0}))),n.uniqueChartId=(0,s.default)(e.id)?(0,M.uniqueId)("recharts"):e.id,n.clipPathId="".concat(n.uniqueChartId,"-clip"),e.throttleDelay&&(n.triggeredAfterMouseMove=(0,u.default)(n.triggeredAfterMouseMove,e.throttleDelay)),n}var P,q,Y;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&U(e,t)}(f,e),P=f,Y=[{key:"getAxisNameByLayout",value:function(e){return"horizontal"===e?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:"vertical"===e?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:"centric"===e?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}}},{key:"renderActiveDot",value:function(e,t){var n;return n=(0,c.isValidElement)(e)?(0,c.cloneElement)(e,t):(0,a.default)(e)?e(t):c.default.createElement(x.default,t),c.default.createElement(h.default,{className:"recharts-active-dot",key:t.key},n)}}],(q=[{key:"componentDidMount",value:function(){(0,s.default)(this.props.syncId)||this.addListener()}},{key:"componentWillReceiveProps",value:function(e){var t=this,n=this.props,r=n.data,o=n.children,i=n.width,a=n.height,l=n.layout,u=n.stackOffset,c=n.margin,f=this.state.updateId;if(e.data===r&&e.width===i&&e.height===a&&e.layout===l&&e.stackOffset===u&&(0,j.shallowEqual)(e.margin,c)){if(!(0,_.isChildrenEqual)(e.children,o)){var d=(0,s.default)(e.data)?f+1:f;this.setState((function(n){return H({updateId:d},t.updateStateOfAxisMapsOffsetAndStackGroups(H({props:e},n,{updateId:d})))}))}}else{var p=this.constructor.createDefaultState(e);this.setState(H({},p,{updateId:f+1},this.updateStateOfAxisMapsOffsetAndStackGroups(H({props:e},p,{updateId:f+1}))))}(0,s.default)(this.props.syncId)&&!(0,s.default)(e.syncId)&&this.addListener(),!(0,s.default)(this.props.syncId)&&(0,s.default)(e.syncId)&&this.removeListener()}},{key:"componentWillUnmount",value:function(){(0,s.default)(this.props.syncId)||this.removeListener(),"function"==typeof this.triggeredAfterMouseMove.cancel&&this.triggeredAfterMouseMove.cancel()}},{key:"getAxisMap",value:function(e,t){var n=t.axisType,r=void 0===n?"xAxis":n,o=t.AxisComp,i=t.graphicalItems,a=t.stackGroups,l=t.dataStartIndex,u=t.dataEndIndex,s=e.children,c="".concat(r,"Id"),f=(0,_.findAllByType)(s,o),d={};return f&&f.length?d=this.getAxisMapByAxes(e,{axes:f,graphicalItems:i,axisType:r,axisIdKey:c,stackGroups:a,dataStartIndex:l,dataEndIndex:u}):i&&i.length&&(d=this.getAxisMapByItems(e,{Axis:o,graphicalItems:i,axisType:r,axisIdKey:c,stackGroups:a,dataStartIndex:l,dataEndIndex:u})),d}},{key:"getAxisMapByAxes",value:function(e,t){var n=this,r=t.axes,o=t.graphicalItems,i=t.axisType,a=t.axisIdKey,u=t.stackGroups,c=t.dataStartIndex,f=t.dataEndIndex,d=e.layout,p=e.children,h=e.stackOffset,v=(0,S.isCategorialAxis)(d,i);return r.reduce((function(t,r){var g=r.props,y=g.type,m=g.dataKey,b=g.allowDataOverflow,x=g.allowDuplicatedCategory,w=g.scale,_=g.ticks,C=r.props[a],O=n.constructor.getDisplayedData(e,{graphicalItems:o.filter((function(e){return e.props[a]===C})),dataStartIndex:c,dataEndIndex:f}),E=O.length;if(!t[C]){var k,j,T;if(m){if(k=(0,S.getDomainOfDataByKey)(O,m,y),"category"===y&&v){var P=(0,M.hasDuplicate)(k);x&&P?(j=k,k=(0,l.default)(0,E)):x||(k=(0,S.parseDomainOfCategoryAxis)(r.props.domain,k,r).reduce((function(e,t){return e.indexOf(t)>=0?e:[].concat(I(e),[t])}),[]))}else if("category"===y)k=x?k.filter((function(e){return""!==e&&!(0,s.default)(e)})):(0,S.parseDomainOfCategoryAxis)(r.props.domain,k,r).reduce((function(e,t){return e.indexOf(t)>=0||""===t||(0,s.default)(t)?e:[].concat(I(e),[t])}),[]);else if("number"===y){var L=(0,S.parseErrorBarsOfAxis)(O,o.filter((function(e){return e.props[a]===C&&!e.props.hide})),m,i);L&&(k=L)}!v||"number"!==y&&"auto"===w||(T=(0,S.getDomainOfDataByKey)(O,m,"category"))}else k=v?(0,l.default)(0,E):u&&u[C]&&u[C].hasStack&&"number"===y?"expand"===h?[0,1]:(0,S.getDomainOfStackGroups)(u[C].stackGroups,c,f):(0,S.getDomainOfItemsWithSameAxis)(O,o.filter((function(e){return e.props[a]===C&&!e.props.hide})),y,!0);return"number"===y&&(k=(0,A.detectReferenceElementsDomain)(p,k,C,i,_),r.props.domain&&(k=(0,S.parseSpecifiedDomain)(r.props.domain,k,b))),H({},t,B({},C,H({},r.props,{axisType:i,domain:k,categoricalDomain:T,duplicateDomain:j,originalDomain:r.props.domain,isCategorial:v,layout:d})))}return t}),{})}},{key:"getAxisMapByItems",value:function(e,t){var n=t.graphicalItems,r=t.Axis,o=t.axisType,i=t.axisIdKey,a=t.stackGroups,u=t.dataStartIndex,s=t.dataEndIndex,c=e.layout,f=e.children,d=this.constructor.getDisplayedData(e,{graphicalItems:n,dataStartIndex:u,dataEndIndex:s}),p=d.length,h=(0,S.isCategorialAxis)(c,o),v=-1;return n.reduce((function(e,t){var g,y=t.props[i];return e[y]?e:(v++,h?g=(0,l.default)(0,p):a&&a[y]&&a[y].hasStack?(g=(0,S.getDomainOfStackGroups)(a[y].stackGroups,u,s),g=(0,A.detectReferenceElementsDomain)(f,g,y,o)):(g=(0,S.parseSpecifiedDomain)(r.defaultProps.domain,(0,S.getDomainOfItemsWithSameAxis)(d,n.filter((function(e){return e.props[i]===y&&!e.props.hide})),"number"),r.defaultProps.allowDataOverflow),g=(0,A.detectReferenceElementsDomain)(f,g,y,o)),H({},e,B({},y,H({axisType:o},r.defaultProps,{hide:!0,orientation:Z[o]&&Z[o][v%2],domain:g,originalDomain:r.defaultProps.domain,isCategorial:h,layout:c}))))}),{})}},{key:"getActiveCoordinate",value:function(e,t,n){var r=this.props.layout,o=e.find((function(e){return e&&e.index===t}));if(o){if("horizontal"===r)return{x:o.coordinate,y:n.y};if("vertical"===r)return{x:n.x,y:o.coordinate};if("centric"===r){var i=o.coordinate,a=n.radius;return H({},n,{},(0,k.polarToCartesian)(n.cx,n.cy,a,i),{angle:i,radius:a})}var l=o.coordinate,u=n.angle;return H({},n,{},(0,k.polarToCartesian)(n.cx,n.cy,l,u),{angle:u,radius:l})}return W}},{key:"getMouseInfo",value:function(e){if(!this.container)return null;var t=(0,E.getOffset)(this.container),n=(0,E.calculateChartCoordinate)(e,t),r=this.inRange(n.chartX,n.chartY);if(!r)return null;var o=this.state,i=o.xAxisMap,a=o.yAxisMap;if("axis"!==L&&i&&a){var l=(0,M.getAnyElementOfObject)(i).scale,u=(0,M.getAnyElementOfObject)(a).scale;return H({},n,{xValue:l&&l.invert?l.invert(n.chartX):null,yValue:u&&u.invert?u.invert(n.chartY):null})}var s=this.state,c=s.orderedTooltipTicks,f=s.tooltipAxis,d=s.tooltipTicks,p=this.calculateTooltipPos(r),h=(0,S.calculateActiveTickIndex)(p,c,d,f);if(h>=0&&d){var v=d[h]&&d[h].value;return H({},n,{activeTooltipIndex:h,activeLabel:v,activePayload:this.getTooltipContent(h,v),activeCoordinate:this.getActiveCoordinate(c,h,r)})}return null}},{key:"getTooltipContent",value:function(e,t){var n=this.state,r=n.graphicalItems,o=n.tooltipAxis,i=this.constructor.getDisplayedData(this.props,this.state);return e<0||!r||!r.length||e>=i.length?null:r.reduce((function(n,r){if(r.props.hide)return n;var a,l=r.props,u=l.dataKey,s=l.name,c=l.unit,f=l.formatter,d=l.data,p=l.tooltipType;return(a=o.dataKey&&!o.allowDuplicatedCategory?(0,M.findEntryInArray)(d||i,o.dataKey,t):d&&d[e]||i[e])?[].concat(I(n),[H({},(0,_.getPresentationAttributes)(r),{dataKey:u,unit:c,formatter:f,name:s||u,color:(0,S.getMainColorOfGraphicItem)(r),value:(0,S.getValueByDataKey)(a,u),type:p,payload:a})]):n}),[])}},{key:"getFormatItems",value:function(e,t){var n=this,r=t.graphicalItems,o=t.stackGroups,i=t.offset,a=t.updateId,l=t.dataStartIndex,u=t.dataEndIndex,c=e.barSize,f=e.layout,d=e.barGap,p=e.barCategoryGap,h=e.maxBarSize,v=this.constructor.getAxisNameByLayout(f),g=v.numericAxisName,y=v.cateAxisName,m=this.constructor.hasBar(r),b=m&&(0,S.getBarSizeList)({barSize:c,stackGroups:o}),x=[];return r.forEach((function(r,c){var v,w=n.constructor.getDisplayedData(e,{dataStartIndex:l,dataEndIndex:u},r),C=r.props,O=C.dataKey,E=C.maxBarSize,M=r.props["".concat(g,"Id")],A=r.props["".concat(y,"Id")],k=R.reduce((function(e,n){var o,i=t["".concat(n.axisType,"Map")],a=r.props["".concat(n.axisType,"Id")],l=i&&i[a];return H({},e,(B(o={},n.axisType,l),B(o,"".concat(n.axisType,"Ticks"),(0,S.getTicksOfAxis)(l)),o))}),{}),j=k[y],T=k["".concat(y,"Ticks")],P=o&&o[M]&&o[M].hasStack&&(0,S.getStackedDataOfItem)(r,o[M].stackGroups),L=(0,S.getBandSizeOfAxis)(j,T),z=(0,s.default)(E)?h:E,N=m&&(0,S.getBarPosition)({barGap:d,barCategoryGap:p,bandSize:L,sizeList:b[A],maxBarSize:z}),D=r&&r.type&&r.type.getComposedData;D&&x.push({props:H({},D(H({},k,{displayedData:w,props:e,dataKey:O,item:r,bandSize:L,barPosition:N,offset:i,stackedData:P,layout:f,dataStartIndex:l,dataEndIndex:u,onItemMouseLeave:(0,S.combineEventHandlers)(n.handleItemMouseLeave,null,r.props.onMouseLeave),onItemMouseEnter:(0,S.combineEventHandlers)(n.handleItemMouseEnter,null,r.props.onMouseEnter)})),(v={key:r.key||"item-".concat(c)},B(v,g,k[g]),B(v,y,k[y]),B(v,"animationId",a),v)),childIndex:(0,_.parseChildIndex)(r,e.children),item:r})})),x}},{key:"getCursorRectangle",value:function(){var e=this.props.layout,t=this.state,n=t.activeCoordinate,r=t.offset,o=t.tooltipAxisBandSize,i=o/2;return{stroke:"none",fill:"#ccc",x:"horizontal"===e?n.x-i:r.left+.5,y:"horizontal"===e?r.top+.5:n.y-i,width:"horizontal"===e?o:r.width-1,height:"horizontal"===e?r.height-1:o}}},{key:"getCursorPoints",value:function(){var e,t,n,r,o=this.props.layout,i=this.state,a=i.activeCoordinate,l=i.offset;if("horizontal"===o)n=e=a.x,t=l.top,r=l.top+l.height;else if("vertical"===o)r=t=a.y,e=l.left,n=l.left+l.width;else if(!(0,s.default)(a.cx)||!(0,s.default)(a.cy)){if("centric"!==o){var u=a.cx,c=a.cy,f=a.radius,d=a.startAngle,p=a.endAngle;return{points:[(0,k.polarToCartesian)(u,c,f,d),(0,k.polarToCartesian)(u,c,f,p)],cx:u,cy:c,radius:f,startAngle:d,endAngle:p}}var h=a.cx,v=a.cy,g=a.innerRadius,y=a.outerRadius,m=a.angle,b=(0,k.polarToCartesian)(h,v,g,m),x=(0,k.polarToCartesian)(h,v,y,m);e=b.x,t=b.y,n=x.x,r=x.y}return[{x:e,y:t},{x:n,y:r}]}},{key:"calculateTooltipPos",value:function(e){var t=this.props.layout;return"horizontal"===t?e.x:"vertical"===t?e.y:"centric"===t?e.angle:e.radius}},{key:"inRange",value:function(e,t){var n=this.props.layout;if("horizontal"===n||"vertical"===n){var r=this.state.offset;return e>=r.left&&e<=r.left+r.width&&t>=r.top&&t<=r.top+r.height?{x:e,y:t}:null}var o=this.state,i=o.angleAxisMap,a=o.radiusAxisMap;if(i&&a){var l=(0,M.getAnyElementOfObject)(i);return(0,k.inRangeOfSector)({x:e,y:t},l)}return null}},{key:"parseEventsOfWrapper",value:function(){var e=this.props.children,t=(0,_.findChildByType)(e,v.default)&&"axis"===L?{onMouseEnter:this.handleMouseEnter,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd}:{};return H({},(0,_.filterEventAttributes)(this.props,this.handleOuterEvent),{},t)}},{key:"updateStateOfAxisMapsOffsetAndStackGroups",value:function(e){var r=this,o=e.props,i=e.dataStartIndex,a=e.dataEndIndex,l=e.updateId;if(!(0,_.validateWidthHeight)({props:o}))return null;var u=o.children,s=o.layout,c=o.stackOffset,f=o.data,d=o.reverseStackOrder,p=this.constructor.getAxisNameByLayout(s),h=p.numericAxisName,v=p.cateAxisName,g=(0,_.findAllByType)(u,n),y=(0,S.getStackGroupsByAxisId)(f,g,"".concat(h,"Id"),"".concat(v,"Id"),c,d),m=R.reduce((function(e,t){return H({},e,B({},"".concat(t.axisType,"Map"),r.getAxisMap(o,H({},t,{graphicalItems:g,stackGroups:t.axisType===h&&y,dataStartIndex:i,dataEndIndex:a}))))}),{}),b=this.calculateOffset(H({},m,{props:o,graphicalItems:g}));Object.keys(m).forEach((function(e){m[e]=G(o,m[e],b,e.replace("Map",""),t)}));var x=m["".concat(v,"Map")],w=this.tooltipTicksGenerator(x),C=this.getFormatItems(o,H({},m,{dataStartIndex:i,dataEndIndex:a,updateId:l,graphicalItems:g,stackGroups:y,offset:b}));return H({formatedGraphicalItems:C,graphicalItems:g,offset:b,stackGroups:y},w,{},m)}},{key:"addListener",value:function(){T.eventCenter.on(T.SYNC_EVENT,this.handleReceiveSyncEvent),T.eventCenter.setMaxListeners&&T.eventCenter._maxListeners&&T.eventCenter.setMaxListeners(T.eventCenter._maxListeners+1)}},{key:"removeListener",value:function(){T.eventCenter.removeListener(T.SYNC_EVENT,this.handleReceiveSyncEvent),T.eventCenter.setMaxListeners&&T.eventCenter._maxListeners&&T.eventCenter.setMaxListeners(T.eventCenter._maxListeners-1)}},{key:"calculateOffset",value:function(e){var t=e.props,n=e.graphicalItems,r=e.xAxisMap,o=void 0===r?{}:r,i=e.yAxisMap,a=void 0===i?{}:i,l=t.width,u=t.height,s=t.children,c=t.margin||{},f=(0,_.findChildByType)(s,O.default),d=(0,_.findChildByType)(s,g.default),p=Object.keys(a).reduce((function(e,t){var n=a[t],r=n.orientation;return n.mirror||n.hide?e:H({},e,B({},r,e[r]+n.width))}),{left:c.left||0,right:c.right||0}),h=Object.keys(o).reduce((function(e,t){var n=o[t],r=n.orientation;return n.mirror||n.hide?e:H({},e,B({},r,e[r]+n.height))}),{top:c.top||0,bottom:c.bottom||0}),v=H({},h,{},p),y=v.bottom;if(f&&(v.bottom+=f.props.height||O.default.defaultProps.height),d&&this.legendInstance){var m=this.legendInstance.getBBox();v=(0,S.appendOffsetOfLegend)(v,n,t,m)}return H({brushBottom:y},v,{width:l-v.left-v.right,height:u-v.top-v.bottom})}},{key:"triggerSyncEvent",value:function(e){var t=this.props.syncId;(0,s.default)(t)||T.eventCenter.emit(T.SYNC_EVENT,t,this.uniqueChartId,e)}},{key:"filterFormatItem",value:function(e,t,n){for(var r=this.state.formatedGraphicalItems,o=0,i=r.length;o=0}))},X.getDisplayedData=function(e,t,n){var r=t.graphicalItems,o=t.dataStartIndex,i=t.dataEndIndex,a=(r||[]).reduce((function(e,t){var n=t.props.data;return n&&n.length?[].concat(I(e),I(n)):e}),[]);if(a&&a.length>0)return a;if(n&&n.props&&n.props.data&&n.props.data.length>0)return n.props.data;var l=e.data;return l&&l.length&&(0,M.isNumber)(o)&&(0,M.isNumber)(i)?l.slice(o,i+1):[]},X};t.default=K},function(e,t,n){var r=n(2150)();e.exports=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.warn=void 0;t.warn=function(e,t,n,r,o,i,a,l){}},,,function(e,t){var n=e.exports={version:"2.6.11"};"number"==typeof __e&&(__e=n)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=s(n(1)),o=s(n(1083)),i=s(n(1290)),a=s(n(1291)),l=n(926),u=s(n(1036));function s(e){return e&&e.__esModule?e:{default:e}}var c=(0,o.default)({chartName:"PieChart",GraphicalChild:u.default,eventType:"item",legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:i.default},{axisType:"radiusAxis",AxisComp:a.default}],formatAxisMap:l.formatAxisMap,defaultProps:{layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"},propTypes:{layout:r.default.oneOf(["centric"]),startAngle:r.default.number,endAngle:r.default.number,cx:r.default.oneOfType([r.default.number,r.default.string]),cy:r.default.oneOfType([r.default.number,r.default.string]),innerRadius:r.default.oneOfType([r.default.number,r.default.string]),outerRadius:r.default.oneOfType([r.default.number,r.default.string])}});t.default=c},,,function(e,t,n){"use strict";var r=n(8),o=n(39),i=n(21),a=n(80),l=n(35),u=n(103),s=n(343),c=n(46),f=n(126),d=n(351),p=n(508),h=n(40),v=n(79),g=h("replace"),y=TypeError,m=i("".indexOf),b=i("".replace),x=i("".slice),w=Math.max;r({target:"String",proto:!0},{replaceAll:function(e,t){var n,r,i,h,_,C,O,E,M,S=a(this),A=0,k=0,j="";if(!u(e)){if((n=s(e))&&(r=c(a(d(e))),!~m(r,"g")))throw new y("`.replaceAll` does not allow non-global regexes");if(i=f(e,g))return o(i,e,S,t);if(v&&n)return b(c(S),e,t)}for(h=c(S),_=c(e),(C=l(t))||(t=c(t)),O=_.length,E=w(1,O),A=m(h,_);-1!==A;)M=C?c(t(_,A,h)):p(_,h,A,[],void 0,t),j+=x(h,k,A)+M,k=A+O,A=A+E>h.length?-1:m(h,_,A+E);return k=t||n<0||g&&e-h>=c}function w(){var e=Object(o.a)();if(x(e))return _(e);d=setTimeout(w,function(e){var n=t-(e-p);return g?l(n,c-(e-h)):n}(e))}function _(e){return d=void 0,y&&u?m(e):(u=s=void 0,f)}function C(){var e=Object(o.a)(),n=x(e);if(u=arguments,s=this,p=e,n){if(void 0===d)return b(p);if(g)return clearTimeout(d),d=setTimeout(w,t),m(p)}return void 0===d&&(d=setTimeout(w,t)),f}return t=Object(i.a)(t)||0,Object(r.a)(n)&&(v=!!n.leading,c=(g="maxWait"in n)?a(Object(i.a)(n.maxWait)||0,t):c,y="trailing"in n?!!n.trailing:y),C.cancel=function(){void 0!==d&&clearTimeout(d),h=0,u=p=s=d=void 0},C.flush=function(){return void 0===d?f:_(Object(o.a)())},C}},function(e,t,n){"use strict";var r=n(1011);t.a=function(e,t,n){var o=null==e?void 0:Object(r.a)(e,t);return void 0===o?n:o}},function(e,t,n){"use strict";t.a=function(){return[]}},,,function(e,t,n){var r,o,i;o=[t],void 0===(i="function"==typeof(r=function(e){"use strict";var t,n=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e};!function(e){e[e.EOS=0]="EOS",e[e.Text=1]="Text",e[e.Incomplete=2]="Incomplete",e[e.ESC=3]="ESC",e[e.Unknown=4]="Unknown",e[e.SGR=5]="SGR",e[e.OSCURL=6]="OSCURL"}(t||(t={}));var r=function(){function e(){this.VERSION="5.0.0",this.setup_palettes(),this._use_classes=!1,this.bold=!1,this.fg=this.bg=null,this._buffer="",this._url_whitelist={http:1,https:1}}return Object.defineProperty(e.prototype,"use_classes",{get:function(){return this._use_classes},set:function(e){this._use_classes=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"url_whitelist",{get:function(){return this._url_whitelist},set:function(e){this._url_whitelist=e},enumerable:!1,configurable:!0}),e.prototype.setup_palettes=function(){var e=this;this.ansi_colors=[[{rgb:[0,0,0],class_name:"ansi-black"},{rgb:[187,0,0],class_name:"ansi-red"},{rgb:[0,187,0],class_name:"ansi-green"},{rgb:[187,187,0],class_name:"ansi-yellow"},{rgb:[0,0,187],class_name:"ansi-blue"},{rgb:[187,0,187],class_name:"ansi-magenta"},{rgb:[0,187,187],class_name:"ansi-cyan"},{rgb:[255,255,255],class_name:"ansi-white"}],[{rgb:[85,85,85],class_name:"ansi-bright-black"},{rgb:[255,85,85],class_name:"ansi-bright-red"},{rgb:[0,255,0],class_name:"ansi-bright-green"},{rgb:[255,255,85],class_name:"ansi-bright-yellow"},{rgb:[85,85,255],class_name:"ansi-bright-blue"},{rgb:[255,85,255],class_name:"ansi-bright-magenta"},{rgb:[85,255,255],class_name:"ansi-bright-cyan"},{rgb:[255,255,255],class_name:"ansi-bright-white"}]],this.palette_256=[],this.ansi_colors.forEach((function(t){t.forEach((function(t){e.palette_256.push(t)}))}));for(var t=[0,95,135,175,215,255],n=0;n<6;++n)for(var r=0;r<6;++r)for(var o=0;o<6;++o){var i={rgb:[t[n],t[r],t[o]],class_name:"truecolor"};this.palette_256.push(i)}for(var a=8,l=0;l<24;++l,a+=10){var u={rgb:[a,a,a],class_name:"truecolor"};this.palette_256.push(u)}},e.prototype.escape_txt_for_html=function(e){return e.replace(/[&<>"']/gm,(function(e){return"&"===e?"&":"<"===e?"<":">"===e?">":'"'===e?""":"'"===e?"'":void 0}))},e.prototype.append_buffer=function(e){var t=this._buffer+e;this._buffer=t},e.prototype.get_next_packet=function(){var e={kind:t.EOS,text:"",url:""},r=this._buffer.length;if(0==r)return e;var i=this._buffer.indexOf("");if(-1==i)return e.kind=t.Text,e.text=this._buffer,this._buffer="",e;if(i>0)return e.kind=t.Text,e.text=this._buffer.slice(0,i),this._buffer=this._buffer.slice(i),e;if(0==i){if(1==r)return e.kind=t.Incomplete,e;var a=this._buffer.charAt(1);if("["!=a&&"]"!=a)return e.kind=t.ESC,e.text=this._buffer.slice(0,1),this._buffer=this._buffer.slice(1),e;if("["==a){if(this._csi_regex||(this._csi_regex=o(n(["\n ^ # beginning of line\n #\n # First attempt\n (?: # legal sequence\n [ # CSI\n ([<-?]?) # private-mode char\n ([d;]*) # any digits or semicolons\n ([ -/]? # an intermediate modifier\n [@-~]) # the command\n )\n | # alternate (second attempt)\n (?: # illegal sequence\n [ # CSI\n [ -~]* # anything legal\n ([\0-:]) # anything illegal\n )\n "],["\n ^ # beginning of line\n #\n # First attempt\n (?: # legal sequence\n \\x1b\\[ # CSI\n ([\\x3c-\\x3f]?) # private-mode char\n ([\\d;]*) # any digits or semicolons\n ([\\x20-\\x2f]? # an intermediate modifier\n [\\x40-\\x7e]) # the command\n )\n | # alternate (second attempt)\n (?: # illegal sequence\n \\x1b\\[ # CSI\n [\\x20-\\x7e]* # anything legal\n ([\\x00-\\x1f:]) # anything illegal\n )\n "]))),null===(s=this._buffer.match(this._csi_regex)))return e.kind=t.Incomplete,e;if(s[4])return e.kind=t.ESC,e.text=this._buffer.slice(0,1),this._buffer=this._buffer.slice(1),e;""!=s[1]||"m"!=s[3]?e.kind=t.Unknown:e.kind=t.SGR,e.text=s[2];var l=s[0].length;return this._buffer=this._buffer.slice(l),e}if("]"==a){if(r<4)return e.kind=t.Incomplete,e;if("8"!=this._buffer.charAt(2)||";"!=this._buffer.charAt(3))return e.kind=t.ESC,e.text=this._buffer.slice(0,1),this._buffer=this._buffer.slice(1),e;this._osc_st||(this._osc_st=function(e){for(var t=[],n=1;n0;){var n=t.shift(),r=parseInt(n,10);if(isNaN(r)||0===r)this.fg=this.bg=null,this.bold=!1;else if(1===r)this.bold=!0;else if(22===r)this.bold=!1;else if(39===r)this.fg=null;else if(49===r)this.bg=null;else if(r>=30&&r<38)this.fg=this.ansi_colors[0][r-30];else if(r>=40&&r<48)this.bg=this.ansi_colors[0][r-40];else if(r>=90&&r<98)this.fg=this.ansi_colors[1][r-90];else if(r>=100&&r<108)this.bg=this.ansi_colors[1][r-100];else if((38===r||48===r)&&t.length>0){var o=38===r,i=t.shift();if("5"===i&&t.length>0){var a=parseInt(t.shift(),10);a>=0&&a<=255&&(o?this.fg=this.palette_256[a]:this.bg=this.palette_256[a])}if("2"===i&&t.length>2){var l=parseInt(t.shift(),10),u=parseInt(t.shift(),10),s=parseInt(t.shift(),10);if(l>=0&&l<=255&&u>=0&&u<=255&&s>=0&&s<=255){var c={rgb:[l,u,s],class_name:"truecolor"};o?this.fg=c:this.bg=c}}}}},e.prototype.transform_to_html=function(e){var t=e.text;if(0===t.length)return t;if(t=this.escape_txt_for_html(t),!e.bold&&null===e.fg&&null===e.bg)return t;var n=[],r=[],o=e.fg,i=e.bg;e.bold&&n.push("font-weight:bold"),this._use_classes?(o&&("truecolor"!==o.class_name?r.push(o.class_name+"-fg"):n.push("color:rgb("+o.rgb.join(",")+")")),i&&("truecolor"!==i.class_name?r.push(i.class_name+"-bg"):n.push("background-color:rgb("+i.rgb.join(",")+")"))):(o&&n.push("color:rgb("+o.rgb.join(",")+")"),i&&n.push("background-color:rgb("+i.rgb+")"));var a="",l="";return r.length&&(a=' class="'+r.join(" ")+'"'),n.length&&(l=' style="'+n.join(";")+'"'),""+t+""},e.prototype.process_hyperlink=function(e){var t=e.url.split(":");return t.length<1?"":this._url_whitelist[t[0]]?''+this.escape_txt_for_html(e.text)+"":""},e}();function o(e){for(var t=[],n=1;n=0&&(t=e.slice(n+1),e=e.slice(0,n)),{type:e,name:t}}))}function u(e){return function(){var t=this.__on;if(t){for(var n,r=0,o=-1,i=t.length;r1?arguments[1]:void 0),t}})},function(e,t,n){"use strict";n(205)("flatMap")},function(e,t,n){var r=n(1156),o=n(1497),i=n(203);e.exports=function(e){return e&&e.length?r(e,i,o):void 0}},function(e,t,n){var r=n(163);e.exports=function(e,t,n){for(var o=-1,i=e.length;++o=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(e,t){for(var n=0;n180),",").concat(+(i>s),",\n ").concat(f.x,",").concat(f.y,"\n ");if(r>0){var p=(0,l.polarToCartesian)(t,n,r,i),h=(0,l.polarToCartesian)(t,n,r,s);d+="L ".concat(h.x,",").concat(h.y,"\n A ").concat(r,",").concat(r,",0,\n ").concat(+(Math.abs(a)>180),",").concat(+(i<=s),",\n ").concat(p.x,",").concat(p.y," Z")}else d+="L ".concat(t,",").concat(n," Z");return d},_=function(e){function t(){return v(this,t),y(this,m(t).apply(this,arguments))}var n,o,l;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&b(e,t)}(t,e),n=t,(o=[{key:"render",value:function(){var e=this.props,t=e.cx,n=e.cy,o=e.innerRadius,l=e.outerRadius,s=e.cornerRadius,c=e.forceCornerRadius,f=e.cornerIsExternal,d=e.startAngle,p=e.endAngle,v=e.className;if(l0&&Math.abs(d-p)<360?function(e){var t=e.cx,n=e.cy,r=e.innerRadius,o=e.outerRadius,i=e.cornerRadius,a=e.forceCornerRadius,l=e.cornerIsExternal,s=e.startAngle,c=e.endAngle,f=(0,u.mathSign)(c-s),d=x({cx:t,cy:n,radius:o,angle:s,sign:f,cornerRadius:i,cornerIsExternal:l}),p=d.circleTangency,h=d.lineTangency,v=d.theta,g=x({cx:t,cy:n,radius:o,angle:c,sign:-f,cornerRadius:i,cornerIsExternal:l}),y=g.circleTangency,m=g.lineTangency,b=g.theta,_=Math.abs(s-c)-v-b;if(_<0)return a?"M ".concat(h.x,",").concat(h.y,"\n a").concat(i,",").concat(i,",0,0,1,").concat(2*i,",0\n a").concat(i,",").concat(i,",0,0,1,").concat(2*-i,",0\n "):w({cx:t,cy:n,innerRadius:r,outerRadius:o,startAngle:s,endAngle:c});var C="M ".concat(h.x,",").concat(h.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(f<0),",").concat(p.x,",").concat(p.y,"\n A").concat(o,",").concat(o,",0,").concat(+(_>180),",").concat(+(f<0),",").concat(y.x,",").concat(y.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(f<0),",").concat(m.x,",").concat(m.y,"\n ");if(r>0){var O=x({cx:t,cy:n,radius:r,angle:s,sign:f,isExternal:!0,cornerRadius:i,cornerIsExternal:l}),E=O.circleTangency,M=O.lineTangency,S=O.theta,A=x({cx:t,cy:n,radius:r,angle:c,sign:-f,isExternal:!0,cornerRadius:i,cornerIsExternal:l}),k=A.circleTangency,j=A.lineTangency,T=A.theta,P=Math.abs(s-c)-S-T;if(P<0)return"".concat(C,"L").concat(t,",").concat(n,"Z");C+="L".concat(j.x,",").concat(j.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(f<0),",").concat(k.x,",").concat(k.y,"\n A").concat(r,",").concat(r,",0,").concat(+(P>180),",").concat(+(f>0),",").concat(E.x,",").concat(E.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(f<0),",").concat(M.x,",").concat(M.y,"Z")}else C+="L".concat(t,",").concat(n,"Z");return C}({cx:t,cy:n,innerRadius:o,outerRadius:l,cornerRadius:Math.min(b,m/2),forceCornerRadius:c,cornerIsExternal:f,startAngle:d,endAngle:p}):w({cx:t,cy:n,innerRadius:o,outerRadius:l,startAngle:d,endAngle:p}),r.default.createElement("path",h({},(0,a.getPresentationAttributes)(this.props),(0,a.filterEventAttributes)(this.props),{className:y,d:g}))}}])&&g(n.prototype,o),l&&g(n,l),t}(r.PureComponent);_.displayName="Sector",_.propTypes=function(e){for(var t=1;t0?r:n)(e)}},,,function(e,t,n){var r=n(274),o=n(330),i=n(337),a=n(60);e.exports=function(){var e=arguments.length;if(!e)return[];for(var t=Array(e-1),n=arguments[0],l=e;l--;)t[l-1]=arguments[l];return r(a(n)?i(n):[n],o(t,1))}},function(e,t,n){var r=n(2292),o=n(331),i=n(119),a=n(2293),l=n(60);e.exports=function(e,t,n){var u=l(e)?r:a,s=arguments.length<3;return u(e,i(t,4),n,s,o)}},,,,function(e,t,n){var r=n(2460);e.exports=function(e,t){if(null==e)return{};var n,o,i=r(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i},e.exports.default=e.exports,e.exports.__esModule=!0},,function(e,t,n){var r; +(window.webpackJsonp=window.webpackJsonp||[]).push([[0],Array(797).concat([function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if(!("string"==typeof e||e instanceof String)){var t=r(e);throw null===e?t="null":"object"===t&&(t=e.constructor.name),new TypeError("Expected a string but received a ".concat(t))}},e.exports=t.default,e.exports.default=t.default},,,function(e,t,n){var r=n(76),o=n(1478),i=n(490),a=Math.max,l=Math.min;e.exports=function(e,t,n){var u,s,c,f,d,p,h=0,v=!1,g=!1,y=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function m(t){var n=u,r=s;return u=s=void 0,h=t,f=e.apply(r,n)}function b(e){return h=e,d=setTimeout(w,t),v?m(e):f}function x(e){var n=e-p;return void 0===p||n>=t||n<0||g&&e-h>=c}function w(){var e=o();if(x(e))return _(e);d=setTimeout(w,function(e){var n=t-(e-p);return g?l(n,c-(e-h)):n}(e))}function _(e){return d=void 0,y&&u?m(e):(u=s=void 0,f)}function C(){var e=o(),n=x(e);if(u=arguments,s=this,p=e,n){if(void 0===d)return b(p);if(g)return clearTimeout(d),d=setTimeout(w,t),m(p)}return void 0===d&&(d=setTimeout(w,t)),f}return t=i(t)||0,r(n)&&(v=!!n.leading,c=(g="maxWait"in n)?a(i(n.maxWait)||0,t):c,y="trailing"in n?!!n.trailing:y),C.cancel=function(){void 0!==d&&clearTimeout(d),h=0,u=p=s=d=void 0},C.flush=function(){return void 0===d?f:_(o())},C}},,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ReactCSS=t.loop=t.handleActive=t.handleHover=t.hover=void 0;var r=s(n(2856)),o=s(n(2857)),i=s(n(2858)),a=s(n(2859)),l=s(n(2860)),u=s(n(2861));function s(e){return e&&e.__esModule?e:{default:e}}t.hover=a.default,t.handleHover=a.default,t.handleActive=l.default,t.loop=u.default;var c=t.ReactCSS=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),a=1;a=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var g={"aria-current":s.default.string,"aria-details":s.default.any,"aria-disabled":s.default.any,"aria-hidden":s.default.any,"aria-invalid":s.default.any,"aria-keyshortcuts":s.default.any,"aria-label":s.default.any,"aria-roledescription":s.default.any,"aria-autocomplete":s.default.any,"aria-checked":s.default.any,"aria-expanded":s.default.any,"aria-haspopup":s.default.any,"aria-level":s.default.any,"aria-modal":s.default.any,"aria-multiline":s.default.any,"aria-multiselectable":s.default.any,"aria-orientation":s.default.any,"aria-placeholder":s.default.any,"aria-pressed":s.default.any,"aria-readonly":s.default.any,"aria-required":s.default.any,"aria-selected":s.default.any,"aria-sort":s.default.any,"aria-valuemax":s.default.any,"aria-valuemin":s.default.any,"aria-valuenow":s.default.any,"aria-valuetext":s.default.any,"aria-atomic":s.default.any,"aria-busy":s.default.any,"aria-live":s.default.any,"aria-relevant":s.default.any,"aria-dropeffect":s.default.any,"aria-grabbed":s.default.any,"aria-activedescendant":s.default.any,"aria-colcount":s.default.any,"aria-colindex":s.default.any,"aria-colspan":s.default.any,"aria-controls":s.default.any,"aria-describedby":s.default.any,"aria-errormessage":s.default.any,"aria-flowto":s.default.any,"aria-labelledby":s.default.any,"aria-owns":s.default.any,"aria-posinset":s.default.any,"aria-rowcount":s.default.any,"aria-rowindex":s.default.any,"aria-rowspan":s.default.any,"aria-setsize":s.default.any,alignmentBaseline:s.default.string,angle:s.default.number,baselineShift:s.default.string,clip:s.default.string,clipPath:s.default.string,clipRule:s.default.string,color:s.default.string,colorInterpolation:s.default.string,colorInterpolationFilters:s.default.string,colorProfile:s.default.string,colorRendering:s.default.string,cursor:s.default.string,direction:s.default.oneOf(["ltr","rtl","inherit"]),display:s.default.string,dominantBaseline:s.default.string,enableBackground:s.default.string,fill:s.default.string,fillOpacity:s.default.oneOfType([s.default.string,s.default.number]),fillRule:s.default.oneOf(["nonzero","evenodd","inherit"]),filter:s.default.string,floodColor:s.default.string,floodOpacity:s.default.oneOfType([s.default.string,s.default.number]),font:s.default.string,fontFamily:s.default.string,fontSize:s.default.oneOfType([s.default.number,s.default.string]),fontSizeAdjust:s.default.oneOfType([s.default.number,s.default.string]),fontStretch:s.default.oneOf(["normal","wider","narrower","ultra-condensed","extra-condensed","condensed","semi-condensed","semi-expanded","expanded","extra-expanded","ultra-expanded","inherit"]),fontStyle:s.default.oneOf(["normal","italic","oblique","inherit"]),fontVariant:s.default.oneOf(["normal","small-caps","inherit"]),fontWeight:s.default.oneOf(["normal","bold","bolder","lighter",100,200,300,400,500,600,700,800,900,"inherit"]),glyphOrientationHorizontal:s.default.string,glyphOrientationVertical:s.default.string,imageRendering:s.default.oneOf(["auto","optimizeSpeed","optimizeQuality","inherit"]),kerning:s.default.oneOfType([s.default.number,s.default.string]),letterSpacing:s.default.oneOfType([s.default.number,s.default.string]),lightingColor:s.default.string,lineHeight:s.default.oneOfType([s.default.number,s.default.string]),markerEnd:s.default.string,markerMid:s.default.string,markerStart:s.default.string,mask:s.default.string,opacity:s.default.oneOfType([s.default.number,s.default.string]),overflow:s.default.oneOf(["visible","hidden","scroll","auto","inherit"]),pointerEvents:s.default.oneOf(["visiblePainted","visibleFill","visibleStroke","visible","painted","fill","stroke","all","none","inherit"]),shapeRendering:s.default.oneOf(["auto","optimizeSpeed","crispEdges","geometricPrecision","inherit"]),stopColor:s.default.string,stopOpacity:s.default.oneOfType([s.default.number,s.default.string]),stroke:s.default.oneOfType([s.default.number,s.default.string]),strokeDasharray:s.default.string,strokeDashoffset:s.default.oneOfType([s.default.number,s.default.string]),strokeLinecap:s.default.oneOf(["butt","round","square","inherit"]),strokeLinejoin:s.default.oneOf(["miter","round","bevel","inherit"]),strokeMiterlimit:s.default.oneOfType([s.default.number,s.default.string]),strokeOpacity:s.default.oneOfType([s.default.number,s.default.string]),strokeWidth:s.default.oneOfType([s.default.number,s.default.string]),textAnchor:s.default.oneOf(["start","middle","end","inherit"]),textDecoration:s.default.oneOf(["none","underline","overline","line-through","blink","inherit"]),textRendering:s.default.oneOf(["auto","optimizeSpeed","optimizeLegibility","geometricPrecision","inherit"]),unicodeBidi:s.default.oneOf(["normal","embed","bidi-override","inherit"]),visibility:s.default.oneOf(["visible","hidden","collapse","inherit"]),wordSpacing:s.default.oneOfType([s.default.number,s.default.string]),writingMode:s.default.oneOf(["lr-tb","rl-tb","tb-rl","lr","rl","tb","inherit"]),transform:s.default.string,role:s.default.string,focusable:s.default.string,tabIndex:s.default.string,style:s.default.object,width:s.default.number,height:s.default.number,dx:s.default.number,dy:s.default.number,x:s.default.number,y:s.default.number,r:s.default.number,radius:s.default.oneOfType([s.default.number,s.default.array])};t.PRESENTATION_ATTRIBUTES=g;var y={onClick:s.default.func,onMouseDown:s.default.func,onMouseUp:s.default.func,onMouseOver:s.default.func,onMouseMove:s.default.func,onMouseOut:s.default.func,onMouseEnter:s.default.func,onMouseLeave:s.default.func,onTouchEnd:s.default.func,onTouchMove:s.default.func,onTouchStart:s.default.func,onTouchCancel:s.default.func};t.EVENT_ATTRIBUTES=y;var m={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart"};t.SCALE_TYPES=["auto","linear","pow","sqrt","log","identity","time","band","point","ordinal","quantile","quantize","utc","sequential","threshold"];t.LEGEND_TYPES=["plainline","line","square","rect","circle","cross","diamond","star","triangle","wye","none"];t.TOOLTIP_TYPES=["none"];var b=function(e){return"string"==typeof e?e:e?e.displayName||e.name||"Component":""};t.getDisplayName=b;var x=function(e,t){var n=[],r=[];return r=(0,l.default)(t)?t.map((function(e){return b(e)})):[b(t)],u.default.Children.forEach(e,(function(e){var t=e&&e.type&&(e.type.displayName||e.type.name);-1!==r.indexOf(t)&&n.push(e)})),n};t.findAllByType=x;t.findChildByType=function(e,t){var n=x(e,t);return n&&n[0]};t.withoutType=function(e,t){var n,r=[];return n=(0,l.default)(t)?t.map((function(e){return b(e)})):[b(t)],u.default.Children.forEach(e,(function(e){e&&e.type&&e.type.displayName&&-1!==n.indexOf(e.type.displayName)||r.push(e)})),r};t.getPresentationAttributes=function(e){if(!e||(0,a.default)(e))return null;var t=u.default.isValidElement(e)?e.props:e;if(!(0,i.default)(t))return null;var n=null;for(var r in t)({}).hasOwnProperty.call(t,r)&&g[r]&&(n||(n={}),n[r]=t[r]);return n};var w=function(e,t){return function(n){return e(t,n),null}};t.filterEventAttributes=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!e||(0,a.default)(e))return null;var r=u.default.isValidElement(e)?e.props:e;if(!(0,i.default)(r))return null;var o=null;for(var l in r)({}).hasOwnProperty.call(r,l)&&y[l]&&(o||(o={}),o[l]=t||(n?w(r[l],r):r[l]));return o};var _=function(e,t,n){return function(r){return e(t,n,r),null}};t.filterEventsOfChild=function(e,t,n){if(!(0,i.default)(e))return null;var r=null;for(var o in e)({}).hasOwnProperty.call(e,o)&&y[o]&&(0,a.default)(e[o])&&(r||(r={}),r[o]=_(e[o],t,n));return r};t.validateWidthHeight=function(e){if(!e||!e.props)return!1;var t=e.props,n=t.width,r=t.height;return!(!(0,c.isNumber)(n)||n<=0||!(0,c.isNumber)(r)||r<=0)};t.isSsr=function(){return!("undefined"!=typeof window&&window.document&&window.document.createElement&&window.setTimeout)};var C=["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColormatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-url","foreignObject","g","glyph","glyphRef","hkern","image","line","lineGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","svg","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"];t.filterSvgElements=function(e){var t=[];return u.default.Children.forEach(e,(function(e){e&&e.type&&(0,o.default)(e.type)&&C.indexOf(e.type)>=0&&t.push(e)})),t};var O=function(e,t){if((0,r.default)(e)&&(0,r.default)(t))return!0;if(!(0,r.default)(e)&&!(0,r.default)(t)){var n=e.props||{},o=n.children,i=v(n,["children"]),a=t.props||{},l=a.children,u=v(a,["children"]);return o&&l?(0,f.shallowEqual)(i,u)&&E(o,l):!o&&!l&&(0,f.shallowEqual)(i,u)}return!1};t.isSingleChildEqual=O;var E=function e(t,n){if(t===n)return!0;if(u.Children.count(t)!==u.Children.count(n))return!1;var r=u.Children.count(t);if(0===r)return!0;if(1===r)return O((0,l.default)(t)?t[0]:t,(0,l.default)(n)?n[0]:n);for(var o=0;o=0}(e))n.push(e);else if(e&&t[b(e.type)]){var a=b(e.type),u=t[a],s=u.handler,c=u.once;if(c&&!r[a]||!c){var f=s(e,a,i);(0,l.default)(f)?n=[n].concat(h(f)):n.push(f),r[a]=!0}}})),n};t.getReactEventByType=function(e){var t=e&&e.type;return t&&m[t]?m[t]:null};t.parseChildIndex=function(e,t){var n=-1;return u.Children.forEach(t,(function(t,r){t===e&&(n=r)})),n}},,function(e,t,n){"use strict";var r,o,i,a=n(1452),l=n(33),u=n(25),s=n(35),c=n(54),f=n(53),d=n(202),p=n(148),h=n(102),v=n(67),g=n(114),y=n(107),m=n(260),b=n(204),x=n(40),w=n(212),_=n(101),C=_.enforce,O=_.get,E=u.Int8Array,M=E&&E.prototype,S=u.Uint8ClampedArray,A=S&&S.prototype,k=E&&m(E),j=M&&m(M),T=Object.prototype,P=u.TypeError,L=x("toStringTag"),z=w("TYPED_ARRAY_TAG"),N=a&&!!b&&"Opera"!==d(u.opera),D=!1,I={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},R={BigInt64Array:8,BigUint64Array:8},H=function(e){var t=m(e);if(c(t)){var n=O(t);return n&&f(n,"TypedArrayConstructor")?n.TypedArrayConstructor:H(t)}},B=function(e){if(!c(e))return!1;var t=d(e);return f(I,t)||f(R,t)};for(r in I)(i=(o=u[r])&&o.prototype)?C(i).TypedArrayConstructor=o:N=!1;for(r in R)(i=(o=u[r])&&o.prototype)&&(C(i).TypedArrayConstructor=o);if((!N||!s(k)||k===Function.prototype)&&(k=function(){throw new P("Incorrect invocation")},N))for(r in I)u[r]&&b(u[r],k);if((!N||!j||j===T)&&(j=k.prototype,N))for(r in I)u[r]&&b(u[r].prototype,j);if(N&&m(A)!==j&&b(A,j),l&&!f(j,L))for(r in D=!0,g(j,L,{configurable:!0,get:function(){return c(this)?this[z]:void 0}}),I)u[r]&&h(u[r],z,r);e.exports={NATIVE_ARRAY_BUFFER_VIEWS:N,TYPED_ARRAY_TAG:D&&z,aTypedArray:function(e){if(B(e))return e;throw new P("Target is not a typed array")},aTypedArrayConstructor:function(e){if(s(e)&&(!b||y(k,e)))return e;throw new P(p(e)+" is not a typed array constructor")},exportTypedArrayMethod:function(e,t,n,r){if(l){if(n)for(var o in I){var i=u[o];if(i&&f(i.prototype,e))try{delete i.prototype[e]}catch(n){try{i.prototype[e]=t}catch(e){}}}j[e]&&!n||v(j,e,n?t:N&&M[e]||t,r)}},exportTypedArrayStaticMethod:function(e,t,n){var r,o;if(l){if(b){if(n)for(r in I)if((o=u[r])&&f(o,e))try{delete o[e]}catch(e){}if(k[e]&&!n)return;try{return v(k,e,n?t:N&&k[e]||t)}catch(e){}}for(r in I)!(o=u[r])||o[e]&&!n||v(o,e,t)}},getTypedArrayConstructor:H,isView:function(e){if(!c(e))return!1;var t=d(e);return"DataView"===t||f(I,t)||f(R,t)},isTypedArray:B,TypedArray:k,TypedArrayPrototype:j}},,,,,,function(e,t,n){"use strict";var r=Object.prototype.hasOwnProperty;function o(e,t){return r.call(e,t)}function i(e){return!(e>=55296&&e<=57343)&&(!(e>=64976&&e<=65007)&&(65535!=(65535&e)&&65534!=(65535&e)&&(!(e>=0&&e<=8)&&(11!==e&&(!(e>=14&&e<=31)&&(!(e>=127&&e<=159)&&!(e>1114111)))))))}function a(e){if(e>65535){var t=55296+((e-=65536)>>10),n=56320+(1023&e);return String.fromCharCode(t,n)}return String.fromCharCode(e)}var l=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,u=new RegExp(l.source+"|"+/&([a-z#][a-z0-9]{1,31});/gi.source,"gi"),s=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i,c=n(1568);var f=/[&<>"]/,d=/[&<>"]/g,p={"&":"&","<":"<",">":">",'"':"""};function h(e){return p[e]}var v=/[.?*+^$[\]\\(){}|-]/g;var g=n(1311);t.lib={},t.lib.mdurl=n(1569),t.lib.ucmicro=n(2397),t.assign=function(e){var t=Array.prototype.slice.call(arguments,1);return t.forEach((function(t){if(t){if("object"!=typeof t)throw new TypeError(t+"must be object");Object.keys(t).forEach((function(n){e[n]=t[n]}))}})),e},t.isString=function(e){return"[object String]"===function(e){return Object.prototype.toString.call(e)}(e)},t.has=o,t.unescapeMd=function(e){return e.indexOf("\\")<0?e:e.replace(l,"$1")},t.unescapeAll=function(e){return e.indexOf("\\")<0&&e.indexOf("&")<0?e:e.replace(u,(function(e,t,n){return t||function(e,t){var n=0;return o(c,t)?c[t]:35===t.charCodeAt(0)&&s.test(t)&&i(n="x"===t[1].toLowerCase()?parseInt(t.slice(2),16):parseInt(t.slice(1),10))?a(n):e}(e,n)}))},t.isValidEntityCode=i,t.fromCodePoint=a,t.escapeHtml=function(e){return f.test(e)?e.replace(d,h):e},t.arrayReplaceAt=function(e,t,n){return[].concat(e.slice(0,t),n,e.slice(t+1))},t.isSpace=function(e){switch(e){case 9:case 32:return!0}return!1},t.isWhiteSpace=function(e){if(e>=8192&&e<=8202)return!0;switch(e){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1},t.isMdAsciiPunct=function(e){switch(e){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}},t.isPunctChar=function(e){return g.test(e)},t.escapeRE=function(e){return e.replace(v,"\\$&")},t.normalizeReference=function(e){return e.trim().replace(/\s+/g," ").toUpperCase()}},function(e,t,n){"use strict";var r=n(8),o=n(214).trim;r({target:"String",proto:!0,forced:n(529)("trim")},{trim:function(){return o(this)}})},function(e,t,n){"use strict";var r=n(941);t.a=function(e){return null==e?"":Object(r.a)(e)}},function(e,t,n){var r=n(948),o=n(1088),i=n(1514),a=n(1518),l=n(1521),u=function(e,t,n){var s,c,f,d,p=e&u.F,h=e&u.G,v=e&u.S,g=e&u.P,y=e&u.B,m=h?r:v?r[t]||(r[t]={}):(r[t]||{}).prototype,b=h?o:o[t]||(o[t]={}),x=b.prototype||(b.prototype={});for(s in h&&(n=t),n)f=((c=!p&&m&&void 0!==m[s])?m:n)[s],d=y&&c?l(f,r):g&&"function"==typeof f?l(Function.call,f):f,m&&a(m,s,f,e&u.U),b[s]!=f&&i(b,s,d),g&&x[s]!=f&&(x[s]=f)};r.core=o,u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,e.exports=u},,,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getLinearRegression=t.findEntryInArray=t.interpolateNumber=t.hasDuplicate=t.getAnyElementOfObject=t.getPercentValue=t.uniqueId=t.isNumOrStr=t.isNumber=t.isPercent=t.mathSign=void 0;var r=u(n(26)),o=u(n(60)),i=u(n(925)),a=u(n(459)),l=u(n(195));function u(e){return e&&e.__esModule?e:{default:e}}t.mathSign=function(e){return 0===e?0:e>0?1:-1};var s=function(e){return(0,l.default)(e)&&e.indexOf("%")===e.length-1};t.isPercent=s;var c=function(e){return(0,a.default)(e)&&!(0,i.default)(e)};t.isNumber=c;t.isNumOrStr=function(e){return c(e)||(0,l.default)(e)};var f=0;t.uniqueId=function(e){var t=++f;return"".concat(e||"").concat(t)};t.getPercentValue=function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!c(e)&&!(0,l.default)(e))return r;if(s(e)){var a=e.indexOf("%");n=t*parseFloat(e.slice(0,a))/100}else n=+e;return(0,i.default)(n)&&(n=r),o&&n>t&&(n=t),n};t.getAnyElementOfObject=function(e){if(!e)return null;var t=Object.keys(e);return t&&t.length?e[t[0]]:null};t.hasDuplicate=function(e){if(!(0,o.default)(e))return!1;for(var t=e.length,n={},r=0;r=a)return e;switch(e){case"%s":return String(t[r++]);case"%d":return Number(t[r++]);case"%j":try{return JSON.stringify(t[r++])}catch(e){return"[Circular]"}break;default:return e}})),u=t[r];r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var s={className:o.default.string,children:o.default.oneOfType([o.default.arrayOf(o.default.node),o.default.node])};function c(e){var t=e.children,n=e.className,o=u(e,["children","className"]),a=(0,i.default)("recharts-layer",n);return r.default.createElement("g",l({className:a},o),t)}c.propTypes=s;var f=c;t.default=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=h(n(857)),o=h(n(194)),i=h(n(861)),a=function(e){if(e&&e.__esModule)return e;var t=p();if(t&&t.has(e))return t.get(e);var n={};if(null!=e){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}}n.default=e,t&&t.set(e,n);return n}(n(0)),l=h(n(1)),u=n(990),s=h(n(3)),c=h(n(2147)),f=n(809),d=n(826);function p(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return p=function(){return e},e}function h(e){return e&&e.__esModule?e:{default:e}}function v(e){return(v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function y(e){for(var t=1;tc[t]+o?Math.max(f,c[t]):Math.max(p,c[t])},n}var n,l,f;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&C(e,t)}(t,e),n=t,(l=[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"updateBBox",value:function(){var e=this.state,t=e.boxWidth,n=e.boxHeight;if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var r=this.wrapperNode.getBoundingClientRect();(Math.abs(r.width-t)>1||Math.abs(r.height-n)>1)&&this.setState({boxWidth:r.width,boxHeight:r.height})}else-1===t&&-1===n||this.setState({boxWidth:-1,boxHeight:-1})}},{key:"render",value:function(){var e,t,n,l=this,f=this.props,p=f.payload,h=f.isAnimationActive,v=f.animationDuration,g=f.animationEasing,b=f.filterNull,x=function(e,t){return!0===e?(0,i.default)(t,E):(0,o.default)(e)?(0,i.default)(t,e):t}(f.paylodUniqBy,b&&p&&p.length?p.filter((function(e){return!(0,r.default)(e.value)})):p),w=x&&x.length,_=this.props,C=_.content,M=_.viewBox,S=_.coordinate,A=_.position,k=_.active,j=y({pointerEvents:"none",visibility:k&&w?"visible":"hidden",position:"absolute",top:0},_.wrapperStyle);if(A&&(0,d.isNumber)(A.x)&&(0,d.isNumber)(A.y))t=A.x,n=A.y;else{var T=this.state,P=T.boxWidth,L=T.boxHeight;P>0&&L>0&&S?(t=this.getTranslate({key:"x",tooltipDimension:P,viewBoxDimension:M.width}),n=this.getTranslate({key:"y",tooltipDimension:L,viewBoxDimension:M.height})):j.visibility="hidden"}j=y({},(0,u.translateStyle)({transform:this.props.useTranslate3d?"translate3d(".concat(t,"px, ").concat(n,"px, 0)"):"translate(".concat(t,"px, ").concat(n,"px)")}),{},j),h&&k&&(j=y({},(0,u.translateStyle)({transition:"transform ".concat(v,"ms ").concat(g)}),{},j));var z=(0,s.default)(O,(m(e={},"".concat(O,"-right"),(0,d.isNumber)(t)&&S&&(0,d.isNumber)(S.x)&&t>=S.x),m(e,"".concat(O,"-left"),(0,d.isNumber)(t)&&S&&(0,d.isNumber)(S.x)&&t=S.y),m(e,"".concat(O,"-top"),(0,d.isNumber)(n)&&S&&(0,d.isNumber)(S.y)&&n0?(0,r.default)(n.updateDimensionsImmediate,e.debounce):n.updateDimensionsImmediate,n}var n,i,c;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&g(e,t)}(t,e),n=t,(i=[{key:"componentDidMount",value:function(){this.mounted=!0;var e=this.getContainerSize();e&&this.setState(e)}},{key:"componentWillUnmount",value:function(){this.mounted=!1}},{key:"getContainerSize",value:function(){return this.container?{containerWidth:this.container.clientWidth,containerHeight:this.container.clientHeight}:null}},{key:"renderChart",value:function(){var e=this.state,t=e.containerWidth,n=e.containerHeight;if(t<0||n<0)return null;var r=this.props,i=r.aspect,a=r.width,l=r.height,c=r.minWidth,f=r.minHeight,d=r.maxHeight,p=r.children;(0,s.warn)((0,u.isPercent)(a)||(0,u.isPercent)(l),"The width(%s) and height(%s) are both fixed numbers,\n maybe you don't need to use a ResponsiveContainer.",a,l),(0,s.warn)(!i||i>0,"The aspect(%s) must be greater than zero.",i);var h=(0,u.isPercent)(a)?t:a,v=(0,u.isPercent)(l)?n:l;return i&&i>0&&(h?v=h/i:v&&(h=v*i),d&&v>d&&(v=d)),(0,s.warn)(h>0||v>0,"The width(%s) and height(%s) of chart should be greater than 0,\n please check the style of container, or the props width(%s) and height(%s),\n or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the\n height and width.",h,v,a,l,c,f,i),o.default.cloneElement(p,{width:h,height:v})}},{key:"render",value:function(){var e=this,t=this.props,n=t.minWidth,r=t.minHeight,i=t.width,u=t.height,s=t.maxHeight,c=t.id,f=t.className,d={width:i,height:u,minWidth:n,minHeight:r,maxHeight:s};return o.default.createElement("div",{id:c,className:(0,a.default)("recharts-responsive-container",f),style:d,ref:function(t){e.container=t}},this.renderChart(),o.default.createElement(l.default,{handleWidth:!0,handleHeight:!0,onResize:this.handleResize}))}}])&&p(n.prototype,i),c&&p(n,c),t}(o.Component);y.displayName="ResponsiveContainer",y.propTypes={aspect:i.default.number,width:i.default.oneOfType([i.default.string,i.default.number]),height:i.default.oneOfType([i.default.string,i.default.number]),minHeight:i.default.oneOfType([i.default.string,i.default.number]),minWidth:i.default.oneOfType([i.default.string,i.default.number]),maxHeight:i.default.oneOfType([i.default.string,i.default.number]),children:i.default.node.isRequired,debounce:i.default.number,id:i.default.oneOfType([i.default.string,i.default.number]),className:i.default.oneOfType([i.default.string,i.default.number])},y.defaultProps={width:"100%",height:"100%",debounce:0};var m=y;t.default=m},,,,function(e,t,n){"use strict";t.a=function(e){return e}},function(e,t,n){"use strict";var r=n(918),o=n(1056);t.a=function(e){return null!=e&&Object(o.a)(e.length)&&!Object(r.a)(e)}},function(e,t,n){"use strict";var r=n(876),o=n(838);t.a=function(e){return Object(o.a)(e)&&Object(r.a)(e)}},,function(e,t,n){"use strict";var r=n(1664),o=n(840),i=n(1118);var a=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t},l=Object.prototype.hasOwnProperty;var u=function(e){if(!Object(o.a)(e))return a(e);var t=Object(i.a)(e),n=[];for(var r in e)("constructor"!=r||!t&&l.call(e,r))&&n.push(r);return n},s=n(876);t.a=function(e){return Object(s.a)(e)?Object(r.a)(e,!0):u(e)}},,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;for(var n in t)void 0===e[n]&&(e[n]=t[n]);return e},e.exports=t.default,e.exports.default=t.default},,,,,function(e,t,n){"use strict";var r=n(896),o=n(876),i=n(956),a=n(840);t.a=function(e,t,n){if(!Object(a.a)(n))return!1;var l=typeof t;return!!("number"==l?Object(o.a)(n)&&Object(i.a)(t,n.length):"string"==l&&t in n)&&Object(r.a)(n[t],e)}},,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=s(n(1723)),o=s(n(3159)),i=s(n(3160)),a=s(n(3161)),l=s(n(3162)),u=s(n(3163));function s(e){return e&&e.__esModule?e:{default:e}}t.default={required:r.default,whitespace:o.default,type:i.default,range:a.default,enum:l.default,pattern:u.default}},,function(e,t,n){"use strict";var r=n(835),o=n(920).Graph;function i(e,t,n,o){var i;do{i=r.uniqueId(o)}while(e.hasNode(i));return n.dummy=t,e.setNode(i,n),i}function a(e){return r.max(r.map(e.nodes(),(function(t){var n=e.node(t).rank;if(!r.isUndefined(n))return n})))}e.exports={addDummyNode:i,simplify:function(e){var t=(new o).setGraph(e.graph());return r.forEach(e.nodes(),(function(n){t.setNode(n,e.node(n))})),r.forEach(e.edges(),(function(n){var r=t.edge(n.v,n.w)||{weight:0,minlen:1},o=e.edge(n);t.setEdge(n.v,n.w,{weight:r.weight+o.weight,minlen:Math.max(r.minlen,o.minlen)})})),t},asNonCompoundGraph:function(e){var t=new o({multigraph:e.isMultigraph()}).setGraph(e.graph());return r.forEach(e.nodes(),(function(n){e.children(n).length||t.setNode(n,e.node(n))})),r.forEach(e.edges(),(function(n){t.setEdge(n,e.edge(n))})),t},successorWeights:function(e){var t=r.map(e.nodes(),(function(t){var n={};return r.forEach(e.outEdges(t),(function(t){n[t.w]=(n[t.w]||0)+e.edge(t).weight})),n}));return r.zipObject(e.nodes(),t)},predecessorWeights:function(e){var t=r.map(e.nodes(),(function(t){var n={};return r.forEach(e.inEdges(t),(function(t){n[t.v]=(n[t.v]||0)+e.edge(t).weight})),n}));return r.zipObject(e.nodes(),t)},intersectRect:function(e,t){var n,r,o=e.x,i=e.y,a=t.x-o,l=t.y-i,u=e.width/2,s=e.height/2;if(!a&&!l)throw new Error("Not possible to find intersection inside of the rectangle");Math.abs(l)*u>Math.abs(a)*s?(l<0&&(s=-s),n=s*a/l,r=s):(a<0&&(u=-u),n=u,r=u*l/a);return{x:o+n,y:i+r}},buildLayerMatrix:function(e){var t=r.map(r.range(a(e)+1),(function(){return[]}));return r.forEach(e.nodes(),(function(n){var o=e.node(n),i=o.rank;r.isUndefined(i)||(t[i][o.order]=n)})),t},normalizeRanks:function(e){var t=r.min(r.map(e.nodes(),(function(t){return e.node(t).rank})));r.forEach(e.nodes(),(function(n){var o=e.node(n);r.has(o,"rank")&&(o.rank-=t)}))},removeEmptyRanks:function(e){var t=r.min(r.map(e.nodes(),(function(t){return e.node(t).rank}))),n=[];r.forEach(e.nodes(),(function(r){var o=e.node(r).rank-t;n[o]||(n[o]=[]),n[o].push(r)}));var o=0,i=e.graph().nodeRankFactor;r.forEach(n,(function(t,n){r.isUndefined(t)&&n%i!=0?--o:o&&r.forEach(t,(function(t){e.node(t).rank+=o}))}))},addBorderNode:function(e,t,n,r){var o={width:0,height:0};arguments.length>=4&&(o.rank=n,o.order=r);return i(e,"border",o,t)},maxRank:a,partition:function(e,t){var n={lhs:[],rhs:[]};return r.forEach(e,(function(e){t(e)?n.lhs.push(e):n.rhs.push(e)})),n},time:function(e,t){var n=r.now();try{return t()}finally{console.log(e+" time: "+(r.now()-n)+"ms")}},notime:function(e,t){return t()}}},function(e,t,n){"use strict";n.r(t),n.d(t,"create",(function(){return i})),n.d(t,"creator",(function(){return r.a})),n.d(t,"local",(function(){return l})),n.d(t,"matcher",(function(){return s.a})),n.d(t,"mouse",(function(){return c.a})),n.d(t,"namespace",(function(){return f.a})),n.d(t,"namespaces",(function(){return d.a})),n.d(t,"clientPoint",(function(){return p.a})),n.d(t,"select",(function(){return o.a})),n.d(t,"selectAll",(function(){return v})),n.d(t,"selection",(function(){return h.b})),n.d(t,"selector",(function(){return g.a})),n.d(t,"selectorAll",(function(){return y.a})),n.d(t,"style",(function(){return m.b})),n.d(t,"touch",(function(){return b.a})),n.d(t,"touches",(function(){return w})),n.d(t,"window",(function(){return _.a})),n.d(t,"event",(function(){return C.c})),n.d(t,"customEvent",(function(){return C.a}));var r=n(1140),o=n(1439),i=function(e){return Object(o.a)(Object(r.a)(e).call(document.documentElement))},a=0;function l(){return new u}function u(){this._="@"+(++a).toString(36)}u.prototype=l.prototype={constructor:u,get:function(e){for(var t=this._;!(t in e);)if(!(e=e.parentNode))return;return e[t]},set:function(e,t){return e[this._]=t},remove:function(e){return this._ in e&&delete e[this._]},toString:function(){return this._}};var s=n(1435),c=n(1889),f=n(1239),d=n(1240),p=n(1142),h=n(1257),v=function(e){return"string"==typeof e?new h.a([document.querySelectorAll(e)],[document.documentElement]):new h.a([null==e?[]:e],h.c)},g=n(1241),y=n(1436),m=n(1437),b=n(1890),x=n(1438),w=function(e,t){null==t&&(t=Object(x.a)().touches);for(var n=0,r=t?t.length:0,o=new Array(r);n0||!(0,r.default)(u,o)||!(0,r.default)(s,i))?this.renderAreaWithAnimation(e,t):this.renderAreaStatically(o,i,e,t)}},{key:"render",value:function(){var e=this.props,t=e.hide,n=e.dot,r=e.points,o=e.className,i=e.top,a=e.left,l=e.xAxis,s=e.yAxis,f=e.width,p=e.height,h=e.isAnimationActive,v=e.id;if(t||!r||!r.length)return null;var m=this.state.isAnimationFinished,b=1===r.length,x=(0,d.default)("recharts-area",o),w=l&&l.allowDataOverflow||s&&s.allowDataOverflow,_=(0,u.default)(v)?this.id:v;return c.default.createElement(g.default,{className:x},w?c.default.createElement("defs",null,c.default.createElement("clipPath",{id:"clipPath-".concat(_)},c.default.createElement("rect",{x:a,y:i,width:f,height:parseInt(p,10)}))):null,b?null:this.renderArea(w,_),(n||b)&&this.renderDots(w,_),(!h||m)&&y.default.renderCallByParent(this.props,r))}}])&&k(n.prototype,l),f&&k(n,f),t}(c.PureComponent);L.displayName="Area",L.propTypes=M({},m.PRESENTATION_ATTRIBUTES,{},m.EVENT_ATTRIBUTES,{className:f.default.string,dataKey:f.default.oneOfType([f.default.string,f.default.number,f.default.func]).isRequired,type:f.default.oneOfType([f.default.oneOf(["basis","basisClosed","basisOpen","linear","linearClosed","natural","monotoneX","monotoneY","monotone","step","stepBefore","stepAfter"]),f.default.func]),unit:f.default.oneOfType([f.default.string,f.default.number]),name:f.default.oneOfType([f.default.string,f.default.number]),yAxisId:f.default.oneOfType([f.default.string,f.default.number]),xAxisId:f.default.oneOfType([f.default.string,f.default.number]),yAxis:f.default.object,xAxis:f.default.object,stackId:f.default.oneOfType([f.default.number,f.default.string]),legendType:f.default.oneOf(m.LEGEND_TYPES),tooltipType:f.default.oneOf(m.TOOLTIP_TYPES),connectNulls:f.default.bool,activeDot:f.default.oneOfType([f.default.object,f.default.element,f.default.func,f.default.bool]),dot:f.default.oneOfType([f.default.func,f.default.element,f.default.object,f.default.bool]),label:f.default.oneOfType([f.default.func,f.default.element,f.default.object,f.default.bool]),hide:f.default.bool,layout:f.default.oneOf(["horizontal","vertical"]),baseLine:f.default.oneOfType([f.default.number,f.default.array]),isRange:f.default.bool,points:f.default.arrayOf(f.default.shape({x:f.default.number,y:f.default.number,value:f.default.oneOfType([f.default.number,f.default.array])})),onAnimationStart:f.default.func,onAnimationEnd:f.default.func,animationId:f.default.number,isAnimationActive:f.default.bool,animationBegin:f.default.number,animationDuration:f.default.number,animationEasing:f.default.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),id:f.default.string}),L.defaultProps={stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!(0,m.isSsr)(),animationBegin:0,animationDuration:1500,animationEasing:"ease"},L.getBaseValue=function(e,t,n){var r=e.layout,o=e.baseValue;if((0,b.isNumber)(o))return o;var i="horizontal"===r?n:t,a=i.scale.domain();if("number"===i.type){var l=Math.max(a[0],a[1]),u=Math.min(a[0],a[1]);return"dataMin"===o?u:"dataMax"===o||l<0?l:Math.max(Math.min(a[0],a[1]),0)}return"dataMin"===o?a[0]:"dataMax"===o?a[1]:a[0]},L.getComposedData=function(e){var t,n=e.props,r=e.xAxis,o=e.yAxis,i=e.xAxisTicks,a=e.yAxisTicks,c=e.bandSize,f=e.dataKey,d=e.stackedData,p=e.dataStartIndex,h=e.displayedData,v=e.offset,g=n.layout,y=d&&d.length,m=L.getBaseValue(n,r,o),b=!1,w=h.map((function(e,t){var n;return y?n=d[p+t]:(n=(0,x.getValueByDataKey)(e,f),(0,s.default)(n)?b=!0:n=[m,n]),"horizontal"===g?{x:(0,x.getCateCoordinateOfLine)({axis:r,ticks:i,bandSize:c,entry:e,index:t}),y:(0,u.default)(n[1])?null:o.scale(n[1]),value:n,payload:e}:{x:(0,u.default)(n[1])?null:r.scale(n[1]),y:(0,x.getCateCoordinateOfLine)({axis:o,ticks:a,bandSize:c,entry:e,index:t}),value:n,payload:e}}));return t=y||b?w.map((function(e){return"horizontal"===g?{x:e.x,y:(0,u.default)((0,l.default)(e,"value[0]"))?null:o.scale((0,l.default)(e,"value[0]"))}:{x:(0,u.default)((0,l.default)(e,"value[0]"))?null:r.scale((0,l.default)(e,"value[0]")),y:e.y}})):"horizontal"===g?o.scale(m):r.scale(m),M({points:w,baseLine:t,layout:g,isRange:b},v)},L.renderDotItem=function(e,t){return c.default.isValidElement(e)?c.default.cloneElement(e,t):(0,a.default)(e)?e(t):c.default.createElement(v.default,O({},t,{className:"recharts-area-dot"}))};var z=L;t.default=z},,function(e,t,n){var r=n(265),o=n(146),i=n(476),a=n(108),l=n(215),u=n(122),s=Object.prototype.hasOwnProperty,c=i((function(e,t){if(l(t)||a(t))o(t,u(t),e);else for(var n in t)s.call(t,n)&&r(e,n,t[n])}));e.exports=c},,function(e,t,n){"use strict";t.a=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}},function(e,t,n){"use strict";t.a=function(e){return function(t){return e(t)}}},function(e,t,n){"use strict";t.a=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n1){if(r&&"angleAxis"===r.axisType&&Math.abs(Math.abs(r.range[1]-r.range[0])-360)<=1e-6)for(var a=r.range,l=0;l0?n[l-1].coordinate:n[i-1].coordinate,s=n[l].coordinate,c=l>=i-1?n[0].coordinate:n[l+1].coordinate,f=void 0;if((0,y.mathSign)(s-u)!==(0,y.mathSign)(c-s)){var d=[];if((0,y.mathSign)(c-s)===(0,y.mathSign)(a[1]-a[0])){f=c;var p=s+a[1]-a[0];d[0]=Math.min(p,(p+u)/2),d[1]=Math.max(p,(p+u)/2)}else{f=u;var h=c+a[1]-a[0];d[0]=Math.min(s,(h+s)/2),d[1]=Math.max(s,(h+s)/2)}var v=[Math.min(s,(f+s)/2),Math.max(s,(f+s)/2)];if(e>v[0]&&e<=v[1]||e>=d[0]&&e<=d[1]){o=n[l].index;break}}else{var g=Math.min(u,c),m=Math.max(u,c);if(e>(g+s)/2&&e<=(m+s)/2){o=n[l].index;break}}}else for(var b=0;b0&&b(t[b].coordinate+t[b-1].coordinate)/2&&e<=(t[b].coordinate+t[b+1].coordinate)/2||b===i-1&&e>(t[b].coordinate+t[b-1].coordinate)/2){o=t[b].index;break}}else o=0;return o};var k=function(e){var t,n=e.type.displayName,r=e.props,o=r.stroke,i=r.fill;switch(n){case"Line":t=o;break;case"Area":case"Radar":t=o&&"none"!==o?o:i;break;default:t=i}return t};t.getMainColorOfGraphicItem=k;var j=function(e){var t,n=e.children,r=e.formatedGraphicalItems,o=e.legendWidth,i=e.legendContent,a=(0,x.findChildByType)(n,b.default);return a?(t=a.props&&a.props.payload?a.props&&a.props.payload:"children"===i?(r||[]).reduce((function(e,t){var n=t.item,r=t.props,o=r.sectors||r.data||[];return e.concat(o.map((function(e){return{type:a.props.iconType||n.props.legendType,value:e.name,color:e.fill,payload:e}})))}),[]):(r||[]).map((function(e){var t=e.item,n=t.props,r=n.dataKey,o=n.name,i=n.legendType;return{inactive:n.hide,dataKey:r,type:a.props.iconType||i||"square",color:k(t),value:o||r,payload:t.props}})),E({},a.props,{},b.default.getWithHeight(a,o),{payload:t,item:a})):null};t.getLegendProps=j;t.getBarSizeList=function(e){var t=e.barSize,n=e.stackGroups,r=void 0===n?{}:n;if(!r)return{};for(var o={},i=Object.keys(r),a=0,l=i.length;a=0}));if(g&&g.length){var y=g[0].props.barSize,m=g[0].props[v];o[m]||(o[m]=[]),o[m].push({item:g[0],stackList:g.slice(1),barSize:(0,p.default)(y)?t:y})}}return o};t.getBarPosition=function(e){var t=e.barGap,n=e.barCategoryGap,r=e.bandSize,o=e.sizeList,i=void 0===o?[]:o,a=e.maxBarSize,l=i.length;if(l<1)return null;var u,s=(0,y.getPercentValue)(t,r,0,!0);if(i[0].barSize===+i[0].barSize){var c=!1,f=r/l,d=i.reduce((function(e,t){return e+t.barSize||0}),0);(d+=(l-1)*s)>=r&&(d-=(l-1)*s,s=0),d>=r&&f>0&&(c=!0,d=l*(f*=.9));var p={offset:((r-d)/2>>0)-s,size:0};u=i.reduce((function(e,t){var n=[].concat(C(e),[{item:t.item,position:{offset:p.offset+p.size+s,size:c?f:t.barSize}}]);return p=n[n.length-1].position,t.stackList&&t.stackList.length&&t.stackList.forEach((function(e){n.push({item:e,position:p})})),n}),[])}else{var h=(0,y.getPercentValue)(n,r,0,!0);r-2*h-(l-1)*s<=0&&(s=0);var v=(r-2*h-(l-1)*s)/l;v>1&&(v>>=0);var g=a===+a?Math.min(v,a):v;u=i.reduce((function(e,t,n){var r=[].concat(C(e),[{item:t.item,position:{offset:h+(v+s)*n+(v-g)/2,size:g}}]);return t.stackList&&t.stackList.length&&t.stackList.forEach((function(e){r.push({item:e,position:r[r.length-1].position})})),r}),[])}return u};t.appendOffsetOfLegend=function(e,t,n,r){var o=n.children,i=n.width,a=n.height,l=n.margin,u=i-(l.left||0)-(l.right||0),s=a-(l.top||0)-(l.bottom||0),c=j({children:o,items:t,legendWidth:u,legendHeight:s}),f=e;if(c){var d=r||{},p=c.align,h=c.verticalAlign,v=c.layout;("vertical"===v||"horizontal"===v&&"center"===h)&&(0,y.isNumber)(e[p])&&(f=E({},e,M({},p,f[p]+(d.width||0)))),("horizontal"===v||"vertical"===v&&"center"===p)&&(0,y.isNumber)(e[h])&&(f=E({},e,M({},h,f[h]+(d.height||0))))}return f};var T=function(e,t,n,r){var o=t.props.children,i=(0,x.findAllByType)(o,m.default).filter((function(e){var t=e.props.direction;return!(!(0,p.default)(t)&&!(0,p.default)(r))||r.indexOf(t)>=0}));if(i&&i.length){var a=i.map((function(e){return e.props.dataKey}));return e.reduce((function(e,t){var r=S(t,n,0),o=(0,l.default)(r)?[(0,s.default)(r),(0,u.default)(r)]:[r,r],i=a.reduce((function(e,n){var r=S(t,n,0),i=o[0]-Math.abs((0,l.default)(r)?r[0]:r),a=o[1]+Math.abs((0,l.default)(r)?r[1]:r);return[Math.min(i,e[0]),Math.max(a,e[1])]}),[1/0,-1/0]);return[Math.min(i[0],e[0]),Math.max(i[1],e[1])]}),[1/0,-1/0])}return null};t.getDomainOfErrorBars=T;t.parseErrorBarsOfAxis=function(e,t,n,r){var o=t.map((function(t){return T(e,t,n,r)})).filter((function(e){return!(0,p.default)(e)}));return o&&o.length?o.reduce((function(e,t){return[Math.min(e[0],t[0]),Math.max(e[1],t[1])]}),[1/0,-1/0]):null};t.getDomainOfItemsWithSameAxis=function(e,t,n,r){var o=t.map((function(t){var o=t.props.dataKey;return"number"===n&&o&&T(e,t,o)||A(e,o,n,r)}));if("number"===n)return o.reduce((function(e,t){return[Math.min(e[0],t[0]),Math.max(e[1],t[1])]}),[1/0,-1/0]);var i={};return o.reduce((function(e,t){for(var n=0,r=t.length;n=0||t.indexOf("AreaChart")>=0)?{scale:v.scalePoint(),realScaleType:"point"}:"category"===r?{scale:v.scaleBand(),realScaleType:"band"}:{scale:v.scaleLinear(),realScaleType:"linear"};if((0,a.default)(n)){var l="scale".concat(n.slice(0,1).toUpperCase()).concat(n.slice(1));return{scale:(v[l]||v.scalePoint)(),realScaleType:v[l]?l:"point"}}return(0,f.default)(n)?{scale:n}:{scale:v.scalePoint(),realScaleType:"point"}};t.checkDomainOfScale=function(e){var t=e.domain();if(t&&!(t.length<=2)){var n=t.length,r=e.range(),o=Math.min(r[0],r[1])-1e-4,i=Math.max(r[0],r[1])+1e-4,a=e(t[0]),l=e(t[n-1]);(ai||li)&&e.domain([t[0],t[n-1]])}};t.findPositionOfBar=function(e,t){if(!e)return null;for(var n=0,r=e.length;nr)&&(o[1]=r),o[0]>r&&(o[0]=r),o[1]=0?(e[l][n][0]=o,e[l][n][1]=o+u,o=e[l][n][1]):(e[l][n][0]=a,e[l][n][1]=a+u,a=e[l][n][1])}};t.offsetSign=P;var L={sign:P,expand:g.stackOffsetExpand,none:g.stackOffsetNone,silhouette:g.stackOffsetSilhouette,wiggle:g.stackOffsetWiggle},z=function(e,t,n){var r=t.map((function(e){return e.props.dataKey}));return(0,g.stack)().keys(r).value((function(e,t){return+S(e,t,0)})).order(g.stackOrderNone).offset(L[n])(e)};t.getStackedData=z;t.getStackGroupsByAxisId=function(e,t,n,r,o,i){if(!e)return null;var a=(i?t.reverse():t).reduce((function(e,t){var o=t.props,i=o.stackId;if(o.hide)return e;var a=t.props[n],l=e[a]||{hasStack:!1,stackGroups:{}};if((0,y.isNumOrStr)(i)){var u=l.stackGroups[i]||{numericAxisId:n,cateAxisId:r,items:[]};u.items.push(t),l.hasStack=!0,l.stackGroups[i]=u}else l.stackGroups[(0,y.uniqueId)("_stackId_")]={numericAxisId:n,cateAxisId:r,items:[t]};return E({},e,M({},a,l))}),{});return Object.keys(a).reduce((function(t,i){var l=a[i];return l.hasStack&&(l.stackGroups=Object.keys(l.stackGroups).reduce((function(t,i){var a=l.stackGroups[i];return E({},t,M({},i,{numericAxisId:n,cateAxisId:r,items:a.items,stackedData:z(e,a.items,o)}))}),{})),E({},t,M({},i,l))}),{})};var N=function(e,t){return"number"===t?[(0,s.default)(e),(0,u.default)(e)]:e};t.calculateDomainOfTicks=N;t.getTicksOfScale=function(e,t){var n=t.realScaleType,r=t.type,o=t.tickCount,i=t.originalDomain,a=t.allowDecimals,l=n||t.scale;if("auto"!==l&&"linear"!==l)return null;if(o&&"number"===r&&i&&("auto"===i[0]||"auto"===i[1])){var u=e.domain(),s=(0,h.getNiceTickValues)(u,o,a);return e.domain(N(s,r)),{niceTicks:s}}if(o&&"number"===r){var c=e.domain();return{niceTicks:(0,h.getTickValuesFixedDomain)(c,o,a)}}return null};t.getCateCoordinateOfLine=function(e){var t=e.axis,n=e.ticks,r=e.bandSize,o=e.entry,i=e.index,a=e.dataKey;if("category"===t.type){if(!t.allowDuplicatedCategory&&t.dataKey&&!(0,p.default)(o[t.dataKey])){var l=(0,y.findEntryInArray)(n,"value",o[t.dataKey]);if(l)return l.coordinate+r/2}return n[i]?n[i].coordinate+r/2:null}var u=S(o,(0,p.default)(a)?t.dataKey:a);return(0,p.default)(u)?null:t.scale(u)};t.getCateCoordinateOfBar=function(e){var t=e.axis,n=e.ticks,r=e.offset,o=e.bandSize,i=e.entry,a=e.index;if("category"===t.type)return n[a]?n[a].coordinate+r:null;var l=S(i,t.dataKey,t.domain[a]);return(0,p.default)(l)?null:t.scale(l)-o/2+r};t.getBaseValueOfBar=function(e){var t=e.numericAxis,n=t.scale.domain();if("number"===t.type){var r=Math.min(n[0],n[1]),o=Math.max(n[0],n[1]);return r<=0&&o>=0?0:o<0?o:r}return n[0]};t.getStackedDataOfItem=function(e,t){var n=e.props.stackId;if((0,y.isNumOrStr)(n)){var r=t[n];if(r&&r.items.length){for(var o=-1,i=0,a=r.items.length;i=0?r.stackedData[o]:null}}return null};t.getDomainOfStackGroups=function(e,t,n){return Object.keys(e).reduce((function(r,o){var i=e[o].stackedData.reduce((function(e,r){var o=r.slice(t,n+1).reduce((function(e,t){return[(0,s.default)(t.concat([e[0]]).filter(y.isNumber)),(0,u.default)(t.concat([e[1]]).filter(y.isNumber))]}),[1/0,-1/0]);return[Math.min(e[0],o[0]),Math.max(e[1],o[1])]}),[1/0,-1/0]);return[Math.min(i[0],r[0]),Math.max(i[1],r[1])]}),[1/0,-1/0]).map((function(e){return e===1/0||e===-1/0?0:e}))};var D=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/;t.MIN_VALUE_REG=D;var I=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/;t.MAX_VALUE_REG=I;t.parseSpecifiedDomain=function(e,t,n){if(!(0,l.default)(e))return t;var r=[];if((0,y.isNumber)(e[0]))r[0]=n?e[0]:Math.min(e[0],t[0]);else if(D.test(e[0])){var o=+D.exec(e[0])[1];r[0]=t[0]-o}else(0,f.default)(e[0])?r[0]=e[0](t[0]):r[0]=t[0];if((0,y.isNumber)(e[1]))r[1]=n?e[1]:Math.max(e[1],t[1]);else if(I.test(e[1])){var i=+I.exec(e[1])[1];r[1]=t[1]+i}else(0,f.default)(e[1])?r[1]=e[1](t[1]):r[1]=t[1];return r};t.getBandSizeOfAxis=function(e,t){if(e&&e.scale&&e.scale.bandwidth)return e.scale.bandwidth();if(e&&t&&t.length>=2){for(var n=(0,o.default)(t,(function(e){return e.coordinate})),r=1/0,i=1,a=n.length;i2&&void 0!==arguments[2]?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(e-(n.left||0)-(n.right||0)),Math.abs(t-(n.top||0)-(n.bottom||0)))/2};t.getMaxRadius=p;t.formatAxisMap=function(e,t,n,r,l){var f=e.width,d=e.height,h=e.startAngle,v=e.endAngle,g=(0,i.getPercentValue)(e.cx,f,f/2),y=(0,i.getPercentValue)(e.cy,d,d/2),m=p(f,d,n),b=(0,i.getPercentValue)(e.innerRadius,m,0),x=(0,i.getPercentValue)(e.outerRadius,m,.8*m);return Object.keys(t).reduce((function(e,n){var i,f=t[n],d=f.domain,p=f.reversed;if((0,o.default)(f.range))"angleAxis"===r?i=[h,v]:"radiusAxis"===r&&(i=[b,x]),p&&(i=[i[1],i[0]]);else{var m=c(i=f.range,2);h=m[0],v=m[1]}var w=(0,a.parseScale)(f,l),_=w.realScaleType,C=w.scale;C.domain(d).range(i),(0,a.checkDomainOfScale)(C);var O=(0,a.getTicksOfScale)(C,u({},f,{realScaleType:_})),E=u({},f,{},O,{range:i,radius:x,realScaleType:_,scale:C,cx:g,cy:y,innerRadius:b,outerRadius:x,startAngle:h,endAngle:v});return u({},e,s({},n,E))}),{})};var h=function(e,t){var n=e.x,r=e.y,o=t.x,i=t.y;return Math.sqrt(Math.pow(n-o,2)+Math.pow(r-i,2))};t.distanceBetweenPoints=h;var v=function(e,t){var n=e.x,r=e.y,o=t.cx,i=t.cy,a=h({x:n,y:r},{x:o,y:i});if(a<=0)return{radius:a};var l=(n-o)/a,u=Math.acos(l);return r>i&&(u=2*Math.PI-u),{radius:a,angle:d(u),angleInRadian:u}};t.getAngleOfPoint=v;var g=function(e){var t=e.startAngle,n=e.endAngle,r=Math.floor(t/360),o=Math.floor(n/360),i=Math.min(r,o);return{startAngle:t-360*i,endAngle:n-360*i}};t.formatAngleOfSector=g;var y=function(e,t){var n=t.startAngle,r=t.endAngle,o=Math.floor(n/360),i=Math.floor(r/360);return e+360*Math.min(o,i)};t.inRangeOfSector=function(e,t){var n=e.x,r=e.y,o=v({x:n,y:r},t),i=o.radius,a=o.angle,l=t.innerRadius,s=t.outerRadius;if(is)return!1;if(0===i)return!0;var c,f=g(t),d=f.startAngle,p=f.endAngle,h=a;if(d<=p){for(;h>p;)h-=360;for(;h=d&&h<=p}else{for(;h>d;)h-=360;for(;h=p&&h<=d}return c?u({},t,{radius:i,angle:y(h,t)}):null}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=f(n(194)),o=f(n(861)),i=function(e){if(e&&e.__esModule)return e;var t=c();if(t&&t.has(e))return t.get(e);var n={};if(null!=e){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}}n.default=e,t&&t.set(e,n);return n}(n(0)),a=f(n(1)),l=f(n(2146)),u=n(826),s=n(809);function c(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return c=function(){return e},e}function f(e){return e&&e.__esModule?e:{default:e}}function d(e){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function h(e){for(var t=1;t=0&&n>=0?{width:t,height:n}:null}},{key:"getDefaultPosition",value:function(e){var t,n,r=this.props,o=r.layout,i=r.align,a=r.verticalAlign,l=r.margin,u=r.chartWidth,s=r.chartHeight;return e&&(void 0!==e.left&&null!==e.left||void 0!==e.right&&null!==e.right)||(t="center"===i&&"vertical"===o?{left:((u||0)-(this.getBBox()||{width:0}).width)/2}:"right"===i?{right:l&&l.right||0}:{left:l&&l.left||0}),e&&(void 0!==e.top&&null!==e.top||void 0!==e.bottom&&null!==e.bottom)||(n="middle"===a?{top:((s||0)-(this.getBBox()||{height:0}).height)/2}:"bottom"===a?{bottom:l&&l.bottom||0}:{top:l&&l.top||0}),h({},t,{},n)}},{key:"updateBBox",value:function(){var e=this.state,t=e.boxWidth,n=e.boxHeight,r=this.props.onBBoxUpdate;if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var o=this.wrapperNode.getBoundingClientRect();(Math.abs(o.width-t)>1||Math.abs(o.height-n)>1)&&this.setState({boxWidth:o.width,boxHeight:o.height},(function(){r&&r(o)}))}else-1===t&&-1===n||this.setState({boxWidth:-1,boxHeight:-1},(function(){r&&r(null)}))}},{key:"render",value:function(){var e=this,t=this.props,n=t.content,o=t.width,a=t.height,u=t.wrapperStyle,s=t.paylodUniqBy,c=t.payload,f=h({position:"absolute",width:o||"auto",height:a||"auto"},this.getDefaultPosition(u),{},u);return i.default.createElement("div",{className:"recharts-legend-wrapper",style:f,ref:function(t){e.wrapperNode=t}},function(e,t){return i.default.isValidElement(e)?i.default.cloneElement(e,t):(0,r.default)(e)?e(t):i.default.createElement(l.default,t)}(n,h({},this.props,{payload:_(s,c)})))}}])&&y(n.prototype,o),a&&y(n,a),t}(i.PureComponent);O.displayName="Legend",O.propTypes={content:a.default.oneOfType([a.default.element,a.default.func]),wrapperStyle:a.default.object,chartWidth:a.default.number,chartHeight:a.default.number,width:a.default.number,height:a.default.number,iconSize:a.default.number,iconType:a.default.oneOf(C),layout:a.default.oneOf(["horizontal","vertical"]),align:a.default.oneOf(["center","left","right"]),verticalAlign:a.default.oneOf(["top","bottom","middle"]),margin:a.default.shape({top:a.default.number,left:a.default.number,bottom:a.default.number,right:a.default.number}),payload:a.default.arrayOf(a.default.shape({value:a.default.any,id:a.default.any,type:a.default.oneOf(s.LEGEND_TYPES)})),paylodUniqBy:a.default.oneOfType([a.default.func,a.default.bool]),formatter:a.default.func,onMouseEnter:a.default.func,onMouseLeave:a.default.func,onClick:a.default.func,onBBoxUpdate:a.default.func},O.defaultProps={iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"};var E=O;t.default=E},function(e,t,n){var r=n(119),o=n(2171);e.exports=function(e,t){var n=[];if(!e||!e.length)return n;var i=-1,a=[],l=e.length;for(t=r(t,3);++i=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function h(e){for(var t=1;t-1&&e%1==0&&e1&&void 0!==arguments[1]?arguments[1]:0,n=-1,r=function r(o){n<0&&(n=o),o-n>t?(e(o),n=-1):c()(r)};c()(r)}function d(e){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function p(e){return function(e){if(Array.isArray(e))return e}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function h(){var e=function(){return null},t=!1;return{stop:function(){t=!0},start:function(n){t=!1,function n(r){if(!t){if(Array.isArray(r)){if(!r.length)return;var o=p(r),i=o[0],a=o.slice(1);return"number"==typeof i?void f(n.bind(null,a),i):(n(i),void f(n.bind(null,a)))}"object"===d(r)&&e(r),"function"==typeof r&&r()}}(n)},subscribe:function(t){return e=t,function(){e=function(){return null}}}}}var v=n(494),g=n.n(v);function y(e){for(var t=1;t=0&&e<=1}));var c=j(r,i),f=j(o,a),d=T(r,i),p=function(e){return e>1?1:e<0?0:e},h=function(e){for(var t=e>1?1:e,n=t,r=0;r<8;++r){var o=c(n)-t,i=d(n);if(Math.abs(o-t)<1e-4||i<1e-4)return f(n);n=p(n-o/i)}return f(n)};return h.isStepper=!1,h},L=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.stiff,n=void 0===t?100:t,r=e.damping,o=void 0===r?8:r,i=e.dt,a=void 0===i?17:i,l=function(e,t,r){var i=r+(-(e-t)*n-r*o)*a/1e3,l=r*a/1e3+e;return Math.abs(l-t)<1e-4&&Math.abs(i)<1e-4?[t,0]:[l,i]};return l.isStepper=!0,l.dt=a,l},z=n(1029),N=n.n(z);function D(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Z(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t0?n[o-1]:r,d=s||Object.keys(u);if("function"==typeof l||"spring"===l)return Z(e).concat([t.runJSAnimation.bind(t,{from:f.style,to:u,duration:i,easing:l}),i]);var p=E(d,i,l),h=W({},f.style,u,{transition:p});return Z(e).concat([h,i,c]).filter(_)}),[a,Math.max(u,r)])),[e.onAnimationEnd]))}},{key:"runAnimation",value:function(e){this.manager||(this.manager=h());var t=e.begin,n=e.duration,r=e.attributeName,o=e.to,i=e.easing,a=e.onAnimationStart,l=e.onAnimationEnd,u=e.steps,s=e.children,c=this.manager;if(this.unSubscribe=c.subscribe(this.handleStyleChange),"function"!=typeof i&&"function"!=typeof s&&"spring"!==i)if(u.length>1)this.runStepAnimation(e);else{var f=r?K({},r,o):o,d=E(Object.keys(f),n,i);c.start([a,t,W({},f,{transition:d}),n,l])}else this.runJSAnimation(e)}},{key:"handleStyleChange",value:function(e){this.changeStyle(e)}},{key:"changeStyle",value:function(e){this.mounted&&this.setState({style:e})}},{key:"render",value:function(){var e=this.props,t=e.children,n=(e.begin,e.duration,e.attributeName,e.easing,e.isActive),r=(e.steps,e.from,e.to,e.canBegin,e.onAnimationEnd,e.shouldReAnimate,e.onAnimationReStart,U(e,["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"])),o=i.Children.count(t),l=O(this.state.style);if("function"==typeof t)return t(l);if(!n||0===o)return t;var u=function(e){var t=e.props,n=t.style,o=void 0===n?{}:n,a=t.className;return Object(i.cloneElement)(e,W({},r,{style:W({},o,l),className:a}))};return 1===o?u(i.Children.only(t)):a.a.createElement("div",null,i.Children.map(t,(function(e){return u(e)})))}}])&&G(n.prototype,r),l&&G(n,l),t}(i.PureComponent);Q.displayName="Animate",Q.propTypes={from:u.a.oneOfType([u.a.object,u.a.string]),to:u.a.oneOfType([u.a.object,u.a.string]),attributeName:u.a.string,duration:u.a.number,begin:u.a.number,easing:u.a.oneOfType([u.a.string,u.a.func]),steps:u.a.arrayOf(u.a.shape({duration:u.a.number.isRequired,style:u.a.object.isRequired,easing:u.a.oneOfType([u.a.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),u.a.func]),properties:u.a.arrayOf("string"),onAnimationEnd:u.a.func})),children:u.a.oneOfType([u.a.node,u.a.func]),isActive:u.a.bool,canBegin:u.a.bool,onAnimationEnd:u.a.func,shouldReAnimate:u.a.bool,onAnimationStart:u.a.func,onAnimationReStart:u.a.func},Q.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};var ee=Q,te=n(1499),ne=n(459),re=n.n(ne);function oe(e){return(oe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ie(){return(ie=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function le(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ue(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function se(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{},t=e.steps,n=e.duration;return t&&t.length?t.reduce((function(e,t){return e+(re()(t.duration)&&t.duration>0?t.duration:0)}),0):re()(n)?n:0},he=function(e){function t(){var e,n;ue(this,t);for(var r=arguments.length,o=new Array(r),i=0;i=0?1:-1;"insideStart"===l?(r=b+O*c,o=w):"insideEnd"===l?(r=x-O*c,o=!w):"end"===l&&(r=x+O*c,o=w),o=C<=0?o:!o;var E=(0,d.polarToCartesian)(h,v,_,r),M=(0,d.polarToCartesian)(h,v,_,r+359*(o?1:-1)),S="M".concat(E.x,",").concat(E.y,"\n A").concat(_,",").concat(_,",0,1,").concat(o?0:1,",\n ").concat(M.x,",").concat(M.y),A=(0,i.default)(e.id)?(0,f.uniqueId)("recharts-radial-line-"):e.id;return a.default.createElement("text",g({},n,{dominantBaseline:"central",className:(0,u.default)("recharts-radial-bar-label",p)}),a.default.createElement("defs",null,a.default.createElement("path",{id:A,d:S})),a.default.createElement("textPath",{xlinkHref:"#".concat(A)},t))};function C(e){var t,n=e.viewBox,l=e.position,p=e.value,h=e.children,v=e.content,y=e.className,m=void 0===y?"":y;if(!n||(0,i.default)(p)&&(0,i.default)(h)&&!(0,a.isValidElement)(v)&&!(0,o.default)(v))return null;if((0,a.isValidElement)(v))return(0,a.cloneElement)(v,e);if((0,o.default)(v)){if(t=v(e),(0,a.isValidElement)(t))return t}else t=function(e){var t=e.value,n=e.formatter,r=(0,i.default)(e.children)?t:e.children;return(0,o.default)(n)?n(r):r}(e);var b=function(e){return(0,f.isNumber)(e.cx)}(n),x=(0,c.getPresentationAttributes)(e),w=(0,c.filterEventAttributes)(e);if(b&&("insideStart"===l||"insideEnd"===l||"end"===l))return _(e,t,x);var C=b?function(e){var t=e.viewBox,n=e.offset,r=e.position,o=t.cx,i=t.cy,a=t.innerRadius,l=t.outerRadius,u=(t.startAngle+t.endAngle)/2;if("outside"===r){var s=(0,d.polarToCartesian)(o,i,l+n,u),c=s.x;return{x:c,y:s.y,textAnchor:c>=o?"start":"end",verticalAnchor:"middle"}}if("center"===r)return{x:o,y:i,textAnchor:"middle",verticalAnchor:"middle"};if("centerTop"===r)return{x:o,y:i,textAnchor:"middle",verticalAnchor:"start"};if("centerBottom"===r)return{x:o,y:i,textAnchor:"middle",verticalAnchor:"end"};var f=(a+l)/2,p=(0,d.polarToCartesian)(o,i,f,u);return{x:p.x,y:p.y,textAnchor:"middle",verticalAnchor:"middle"}}(e):function(e){var t=e.viewBox,n=e.offset,o=e.position,i=t.x,a=t.y,l=t.width,u=t.height,s=u>=0?1:-1;return"top"===o?{x:i+l/2,y:a-s*n,textAnchor:"middle",verticalAnchor:s>0?"end":"start"}:"bottom"===o?{x:i+l/2,y:a+u+s*n,textAnchor:"middle",verticalAnchor:"start"}:"left"===o?{x:i-n,y:a+u/2,textAnchor:"end",verticalAnchor:"middle"}:"right"===o?{x:i+l+n,y:a+u/2,textAnchor:"start",verticalAnchor:"middle"}:"insideLeft"===o?{x:i+n,y:a+u/2,textAnchor:"start",verticalAnchor:"middle"}:"insideRight"===o?{x:i+l-n,y:a+u/2,textAnchor:"end",verticalAnchor:"middle"}:"insideTop"===o?{x:i+l/2,y:a+s*n,textAnchor:"middle",verticalAnchor:"start"}:"insideBottom"===o?{x:i+l/2,y:a+u-s*n,textAnchor:"middle",verticalAnchor:"end"}:"insideTopLeft"===o?{x:i+n,y:a+s*n,textAnchor:"start",verticalAnchor:"start"}:"insideTopRight"===o?{x:i+l-n,y:a+s*n,textAnchor:"end",verticalAnchor:"start"}:"insideBottomLeft"===o?{x:i+n,y:a+u-s*n,textAnchor:"start",verticalAnchor:"end"}:"insideBottomRight"===o?{x:i+l-n,y:a+u-s*n,textAnchor:"end",verticalAnchor:"end"}:(0,r.default)(o)&&((0,f.isNumber)(o.x)||(0,f.isPercent)(o.x))&&((0,f.isNumber)(o.y)||(0,f.isPercent)(o.y))?{x:i+(0,f.getPercentValue)(o.x,l),y:a+(0,f.getPercentValue)(o.y,u),textAnchor:"end",verticalAnchor:"end"}:{x:i+l/2,y:a+u/2,textAnchor:"middle",verticalAnchor:"middle"}}(e);return a.default.createElement(s.default,g({className:(0,u.default)("recharts-label",m)},x,C,w),t)}C.displayName="Label",C.defaultProps={offset:5},C.propTypes=w;var O=function(e){var t=e.cx,n=e.cy,r=e.angle,o=e.startAngle,i=e.endAngle,a=e.r,l=e.radius,u=e.innerRadius,s=e.outerRadius,c=e.x,d=e.y,p=e.top,h=e.left,v=e.width,g=e.height,y=e.clockWise;if((0,f.isNumber)(v)&&(0,f.isNumber)(g)){if((0,f.isNumber)(c)&&(0,f.isNumber)(d))return{x:c,y:d,width:v,height:g};if((0,f.isNumber)(p)&&(0,f.isNumber)(h))return{x:p,y:h,width:v,height:g}}return(0,f.isNumber)(c)&&(0,f.isNumber)(d)?{x:c,y:d,width:0,height:0}:(0,f.isNumber)(t)&&(0,f.isNumber)(n)?{cx:t,cy:n,startAngle:o||r||0,endAngle:i||r||0,innerRadius:u||0,outerRadius:s||l||a||0,clockWise:y}:e.viewBox?e.viewBox:{}},E=function(e,t){return e?!0===e?a.default.createElement(C,{key:"label-implicit",viewBox:t}):(0,f.isNumOrStr)(e)?a.default.createElement(C,{key:"label-implicit",viewBox:t,value:e}):(0,a.isValidElement)(e)?e.type===C?(0,a.cloneElement)(e,{key:"label-implicit",viewBox:t}):a.default.createElement(C,{key:"label-implicit",content:e,viewBox:t}):(0,o.default)(e)?a.default.createElement(C,{key:"label-implicit",content:e,viewBox:t}):(0,r.default)(e)?a.default.createElement(C,g({viewBox:t},e,{key:"label-implicit"})):null:null};C.parseViewBox=O,C.renderCallByParent=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!e||!e.children&&n&&!e.label)return null;var r=e.children,o=O(e),i=(0,c.findAllByType)(r,C).map((function(e,n){return(0,a.cloneElement)(e,{viewBox:t||o,key:"label-".concat(n)})}));if(!n)return i;var l=E(e.label,t||o);return[l].concat(v(i))};var M=C;t.default=M},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(809);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(){return null}a.propTypes=function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var _={id:s.default.string,data:s.default.arrayOf(s.default.object),valueAccessor:s.default.func,clockWise:s.default.bool,dataKey:s.default.oneOfType([s.default.string,s.default.number,s.default.func])},C={valueAccessor:function(e){return(0,l.default)(e.value)?(0,a.default)(e.value):e.value}};function O(e){var t=e.data,n=e.valueAccessor,r=e.dataKey,o=e.clockWise,a=e.id,l=w(e,["data","valueAccessor","dataKey","clockWise","id"]);return t&&t.length?u.default.createElement(f.default,{className:"recharts-label-list"},t.map((function(e,t){var s=(0,i.default)(r)?n(e,t):(0,p.getValueByDataKey)(e&&e.payload,r),f=(0,i.default)(a)?{}:{id:"".concat(a,"-").concat(t)};return u.default.createElement(c.default,y({},(0,d.getPresentationAttributes)(e),l,f,{index:t,value:s,viewBox:c.default.parseViewBox((0,i.default)(o)?e:b({},e,{clockWise:o})),key:"label-".concat(t)}))}))):null}O.propTypes=_,O.displayName="LabelList";var E=function(e,t){return e?!0===e?u.default.createElement(O,{key:"labelList-implicit",data:t}):u.default.isValidElement(e)||(0,o.default)(e)?u.default.createElement(O,{key:"labelList-implicit",data:t,content:e}):(0,r.default)(e)?u.default.createElement(O,y({data:t},e,{key:"labelList-implicit"})):null:null};O.renderCallByParent=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!e||!e.children&&n&&!e.label)return null;var r=e.children,o=(0,d.findAllByType)(r,O).map((function(e,n){return(0,u.cloneElement)(e,{data:t,key:"labelList-".concat(n)})}));if(!n)return o;var i=E(e.label,t);return[i].concat(g(o))},O.defaultProps=C;var M=O;t.default=M},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=d(n(857)),o=function(e){if(e&&e.__esModule)return e;var t=f();if(t&&t.has(e))return t.get(e);var n={};if(null!=e){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}}n.default=e,t&&t.set(e,n);return n}(n(0)),i=d(n(1)),a=d(n(2133)),l=d(n(3)),u=n(826),s=n(809),c=n(1274);function f(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return f=function(){return e},e}function d(e){return e&&e.__esModule?e:{default:e}}function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function v(e){return(v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function g(){return(g=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function m(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{},n=t.bandAware,r=t.position;if(void 0!==e){if(r)switch(r){case"start":return this.scale(e);case"middle":var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(e)+o;case"end":var i=this.bandwidth?this.bandwidth():0;return this.scale(e)+i;default:return this.scale(e)}if(n){var a=this.bandwidth?this.bandwidth()/2:0;return this.scale(e)+a}return this.scale(e)}}},{key:"isInRange",value:function(e){var t=this.range(),n=t[0],r=t[t.length-1];return n<=r?e>=n&&e<=r:e>=r&&e<=n}},{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}}]),e}();t.ScaleHelper=h,h.EPS=1e-4;var v=function(){function e(t){l(this,e),this.scales=(0,o.default)(t,h.create),Object.assign(this,this.scales)}return s(e,null,[{key:"create",value:function(e){return new this(e)}}]),s(e,[{key:"apply",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.bandAware,r=this.scales;return(0,o.default)(e,(function(e,t){return r[t].apply(e,{bandAware:n})}))}},{key:"isInRange",value:function(e){var t=this.scales;return(0,r.default)(e,(function(e,n){return t[n].isInRange(e)}))}}]),e}();t.LabeledScaleHelper=v},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=x(n(857)),o=x(n(806)),i=x(n(194)),a=x(n(60)),l=function(e){if(e&&e.__esModule)return e;var t=b();if(t&&t.has(e))return t.get(e);var n={};if(null!=e){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}}n.default=e,t&&t.set(e,n);return n}(n(0)),u=x(n(1)),s=x(n(3)),c=x(n(990)),f=x(n(1276)),d=x(n(868)),p=x(n(1157)),h=x(n(998)),v=x(n(1030)),g=n(826),y=n(809),m=n(911);function b(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return b=function(){return e},e}function x(e){return e&&e.__esModule?e:{default:e}}function w(e){return(w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function C(){return(C=Object.assign||function(e){for(var t=1;t0&&Math.abs(h)0&&Math.abs(p)t?"start":e0?(0,o.default)(e,"paddingAngle",0):0;if(n){var u=(0,w.interpolateNumber)(n.endAngle-n.startAngle,e.endAngle-e.startAngle),s=k({},e,{startAngle:a+l,endAngle:a+u(r)+l});i.push(s),a=s.endAngle}else{var c=e.endAngle,d=e.startAngle,p=(0,w.interpolateNumber)(0,c-d)(r),h=k({},e,{startAngle:a+l,endAngle:a+p+l});i.push(h),a=h.endAngle}})),u.default.createElement(d.default,null,e.renderSectorsStatically(i))}))}},{key:"renderSectors",value:function(){var e=this.props,t=e.sectors,n=e.isAnimationActive,o=this.state.prevSectors;return!(n&&t&&t.length)||o&&(0,r.default)(o,t)?this.renderSectorsStatically(t):this.renderSectorsWithAnimation()}},{key:"render",value:function(){var e=this.props,t=e.hide,n=e.sectors,o=e.className,i=e.label,a=e.cx,l=e.cy,s=e.innerRadius,c=e.outerRadius,p=e.isAnimationActive,h=e.prevSectors;if(t||!n||!n.length||!(0,w.isNumber)(a)||!(0,w.isNumber)(l)||!(0,w.isNumber)(s)||!(0,w.isNumber)(c))return null;var v=(0,f.default)("recharts-pie",o);return u.default.createElement(d.default,{className:v},this.renderSectors(),i&&this.renderLabels(n),g.default.renderCallByParent(this.props,null,!1),(!p||h&&(0,r.default)(h,n))&&y.default.renderCallByParent(this.props,n,!1))}}])&&P(n.prototype,s),m&&P(n,m),t}(u.PureComponent);D.displayName="Pie",D.propTypes=k({},b.PRESENTATION_ATTRIBUTES,{},b.EVENT_ATTRIBUTES,{className:s.default.string,animationId:s.default.number,cx:s.default.oneOfType([s.default.number,s.default.string]),cy:s.default.oneOfType([s.default.number,s.default.string]),startAngle:s.default.number,endAngle:s.default.number,paddingAngle:s.default.number,innerRadius:s.default.oneOfType([s.default.number,s.default.string]),outerRadius:s.default.oneOfType([s.default.number,s.default.string]),cornerRadius:s.default.oneOfType([s.default.number,s.default.string]),dataKey:s.default.oneOfType([s.default.string,s.default.number,s.default.func]).isRequired,nameKey:s.default.oneOfType([s.default.string,s.default.number,s.default.func]),valueKey:s.default.oneOfType([s.default.string,s.default.number,s.default.func]),data:s.default.arrayOf(s.default.object),blendStroke:s.default.bool,minAngle:s.default.number,legendType:s.default.oneOf(b.LEGEND_TYPES),tooltipType:s.default.oneOf(b.TOOLTIP_TYPES),maxRadius:s.default.number,sectors:s.default.arrayOf(s.default.object),hide:s.default.bool,labelLine:s.default.oneOfType([s.default.object,s.default.func,s.default.element,s.default.bool]),label:s.default.oneOfType([s.default.shape({offsetRadius:s.default.number}),s.default.func,s.default.element,s.default.bool]),activeShape:s.default.oneOfType([s.default.object,s.default.func,s.default.element]),activeIndex:s.default.oneOfType([s.default.number,s.default.arrayOf(s.default.number)]),onAnimationStart:s.default.func,onAnimationEnd:s.default.func,isAnimationActive:s.default.bool,animationBegin:s.default.number,animationDuration:s.default.number,animationEasing:s.default.oneOf(["ease","ease-in","ease-out","ease-in-out","spring","linear"]),id:s.default.string}),D.defaultProps={stroke:"#fff",fill:"#808080",legendType:"rect",cx:"50%",cy:"50%",startAngle:0,endAngle:360,innerRadius:0,outerRadius:"80%",paddingAngle:0,labelLine:!0,hide:!1,minAngle:0,isAnimationActive:!(0,b.isSsr)(),animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",blendStroke:!1},D.parseDeltaAngle=function(e){var t=e.startAngle,n=e.endAngle;return(0,w.mathSign)(n-t)*Math.min(Math.abs(n-t),360)},D.getRealPieData=function(e){var t=e.props,n=t.data,r=t.children,o=(0,b.getPresentationAttributes)(e.props),i=(0,b.findAllByType)(r,m.default);return n&&n.length?n.map((function(e,t){return k({payload:e},o,{},e,{},i&&i[t]&&i[t].props)})):i&&i.length?i.map((function(e){return k({},o,{},e.props)})):[]},D.parseCoordinateOfPie=function(e,t){var n=t.top,r=t.left,o=t.width,i=t.height,a=(0,x.getMaxRadius)(o,i);return{cx:r+(0,w.getPercentValue)(e.props.cx,o,o/2),cy:n+(0,w.getPercentValue)(e.props.cy,i,i/2),innerRadius:(0,w.getPercentValue)(e.props.innerRadius,a,0),outerRadius:(0,w.getPercentValue)(e.props.outerRadius,a,.8*a),maxRadius:e.props.maxRadius||Math.sqrt(o*o+i*i)/2}},D.getComposedData=function(e){var t=e.item,n=e.offset,r=e.onItemMouseLeave,o=e.onItemMouseEnter,i=D.getRealPieData(t);if(!i||!i.length)return[];var a=t.props,u=a.cornerRadius,s=a.startAngle,c=a.endAngle,f=a.paddingAngle,d=a.dataKey,p=a.nameKey,h=a.valueKey,v=a.tooltipType,g=Math.abs(t.props.minAngle),y=D.parseCoordinateOfPie(t,n),m=i.length,b=D.parseDeltaAngle({startAngle:s,endAngle:c}),O=Math.abs(b),E=O-m*g-(O>=360?m:m-1)*f,M=d;(0,l.default)(d)&&(0,l.default)(h)?((0,C.warn)(!1,'Use "dataKey" to specify the value of pie,\n the props "valueKey" will be deprecated in 1.1.0'),M="value"):(0,l.default)(d)&&((0,C.warn)(!1,'Use "dataKey" to specify the value of pie,\n the props "valueKey" will be deprecated in 1.1.0'),M=h);var S,A,j=i.reduce((function(e,t){var n=(0,_.getValueByDataKey)(t,M,0);return e+((0,w.isNumber)(n)?n:0)}),0);j>0&&(S=i.map((function(e,t){var n,r=(0,_.getValueByDataKey)(e,M,0),o=(0,_.getValueByDataKey)(e,p,t),i=((0,w.isNumber)(r)?r:0)/j,a=(n=t?A.endAngle+(0,w.mathSign)(b)*f:s)+(0,w.mathSign)(b)*(g+i*E),l=(n+a)/2,c=(y.innerRadius+y.outerRadius)/2,d=[{name:o,value:r,payload:e,dataKey:M,type:v}],h=(0,x.polarToCartesian)(y.cx,y.cy,c,l);return A=k({percent:i,cornerRadius:u,name:o,tooltipPayload:d,midAngle:l,middleRadius:c,tooltipPosition:h},e,{},y,{value:(0,_.getValueByDataKey)(e,M),startAngle:n,endAngle:a,payload:e,paddingAngle:(0,w.mathSign)(b)*f})})));return k({},y,{sectors:S,data:i,onMouseLeave:r,onMouseEnter:o})};var I=D;t.default=I},function(e,t,n){"use strict";var r=n(8),o=n(1493),i=n(77),a=n(99),l=n(112),u=n(259);r({target:"Array",proto:!0},{flat:function(){var e=arguments.length?arguments[0]:void 0,t=i(this),n=a(t),r=u(t,0);return r.length=o(r,t,t,n,0,void 0===e?1:l(e)),r}})},function(e,t,n){"use strict";n(205)("flat")},,function(e,t,n){var r=n(100).isFinite;e.exports=function(e){return"number"==typeof e&&r(e)}},,,,,,function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.default=e.exports,e.exports.__esModule=!0},,,,,,,,,function(e,t,n){"use strict";var r=n(808),o=n(887);t.a=function(e){return Object(r.a)((function(t,n){var r=-1,i=n.length,a=i>1?n[i-1]:void 0,l=i>2?n[2]:void 0;for(a=e.length>3&&"function"==typeof a?(i--,a):void 0,l&&Object(o.a)(n[0],n[1],l)&&(a=i<3?void 0:a,i=1),t=Object(t);++r-1&&e%1==0&&e<=9007199254740991}},function(e,t,n){"use strict";(function(e){var r=n(1656),o="object"==typeof exports&&exports&&!exports.nodeType&&exports,i=o&&"object"==typeof e&&e&&!e.nodeType&&e,a=i&&i.exports===o&&r.a.process,l=function(){try{var e=i&&i.require&&i.require("util").types;return e||a&&a.binding&&a.binding("util")}catch(e){}}();t.a=l}).call(this,n(1351)(e))},function(e,t,n){"use strict";var r=n(840),o=Object.create,i=function(){function e(){}return function(t){if(!Object(r.a)(t))return{};if(o)return o(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();t.a=i},,,,,function(e,t,n){"use strict";var r=n(843);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(1105)),i=r(n(1172)),a=r(n(0)),l=r(n(1)),u=r(n(3)),s={children:l.default.node,className:l.default.string,componentCls:l.default.string,as:l.default.string},c=function(e){var t=e.children,n=e.as,r=void 0===n?"div":n,l=e.componentCls,s=e.className,c=(0,i.default)(e,["children","as","componentCls","className"]);return a.default.createElement(r,(0,o.default)({className:(0,u.default)(l,s)},c),t)};c.propTypes=s;var f=c;t.default=f},function(e,t,n){"use strict";var r=n(1002),o=n(843);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(1105)),a=o(n(1003)),l=o(n(1004)),u=o(n(1005)),s=o(n(1006)),c=o(n(1007)),f=r(n(0));function d(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,c.default)(e);if(t){var o=(0,c.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,s.default)(this,n)}}var p=function(e){return function(t){return function(n){(0,u.default)(o,n);var r=d(o);function o(){return(0,a.default)(this,o),r.apply(this,arguments)}return(0,l.default)(o,[{key:"render",value:function(){return f.default.createElement(t,(0,i.default)({},e,this.props))}}]),o}(f.Component)}};t.default=p},,function(e,t,n){"use strict";var r=n(8),o=n(19),i=n(350).f;r({target:"Object",stat:!0,forced:o((function(){return!Object.getOwnPropertyNames(1)}))},{getOwnPropertyNames:i})},function(e,t,n){"use strict";var r=n(1017);e.exports=function(e){if(!r(e))throw new TypeError("Cannot use null or undefined");return e}},,,,,,,,,,,,function(e,t,n){"use strict";var r=n(8),o=n(21),i=n(80),a=n(112),l=n(46),u=o("".slice),s=Math.max,c=Math.min;r({target:"String",proto:!0,forced:!"".substr||"b"!=="ab".substr(-1)},{substr:function(e,t){var n,r,o=l(i(this)),f=o.length,d=a(e);return d===1/0&&(d=0),d<0&&(d=s(f+d,0)),(n=void 0===t?f:a(t))<=0||n===1/0||d>=(r=c(d+n,f))?"":u(o,d,r)}})},,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=d(n(60)),o=d(n(194)),i=function(e){if(e&&e.__esModule)return e;var t=f();if(t&&t.has(e))return t.get(e);var n={};if(null!=e){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}}n.default=e,t&&t.set(e,n);return n}(n(0)),a=d(n(1)),l=n(1256),u=d(n(3)),s=n(809),c=n(826);function f(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return f=function(){return e},e}function d(e){return e&&e.__esModule?e:{default:e}}function p(e){return(p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function h(){return(h=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function D(){return(D=Object.assign||function(e){for(var t=1;t0&&n.handleMouseMove(e.changedTouches[0])},n.handleTouchStart=function(e){null!=e.changedTouches&&e.changedTouches.length>0&&n.handleMouseDown(e.changedTouches[0])},n.handleTouchEnd=function(e){null!=e.changedTouches&&e.changedTouches.length>0&&n.handleMouseUp(e.changedTouches[0])},n.verticalCoordinatesGenerator=function(e){var t=e.xAxis,n=e.width,r=e.height,o=e.offset;return(0,S.getCoordinatesOfGrid)(C.default.getTicks(H({},C.default.defaultProps,{},t,{ticks:(0,S.getTicksOfAxis)(t,!0),viewBox:{x:0,y:0,width:n,height:r}})),o.left,o.left+o.width)},n.horizontalCoordinatesGenerator=function(e){var t=e.yAxis,n=e.width,r=e.height,o=e.offset;return(0,S.getCoordinatesOfGrid)(C.default.getTicks(H({},C.default.defaultProps,{},t,{ticks:(0,S.getTicksOfAxis)(t,!0),viewBox:{x:0,y:0,width:n,height:r}})),o.top,o.top+o.height)},n.axesTicksGenerator=function(e){return(0,S.getTicksOfAxis)(e,!0)},n.tooltipTicksGenerator=function(e){var t=(0,M.getAnyElementOfObject)(e),n=(0,S.getTicksOfAxis)(t,!1,!0);return{tooltipTicks:n,orderedTooltipTicks:(0,i.default)(n,(function(e){return e.coordinate})),tooltipAxis:t,tooltipAxisBandSize:(0,S.getBandSizeOfAxis)(t)}},n.renderCursor=function(e){var r=n.state,o=r.isTooltipActive,i=r.activeCoordinate,a=r.activePayload,l=r.offset;if(!(e&&e.props.cursor&&o&&i))return null;var u,s=n.props.layout,f=y.default;if("ScatterChart"===t)u=i,f=m.default;else if("BarChart"===t)u=n.getCursorRectangle(),f=w.default;else if("radial"===s){var d=n.getCursorPoints(),p=d.cx,h=d.cy,v=d.radius;u={cx:p,cy:h,startAngle:d.startAngle,endAngle:d.endAngle,innerRadius:v,outerRadius:v},f=b.default}else u={points:n.getCursorPoints()},f=y.default;var g=e.key||"_recharts-cursor",x=H({stroke:"#ccc",pointerEvents:"none"},l,{},u,{},(0,_.getPresentationAttributes)(e.props.cursor),{payload:a,key:g,className:"recharts-tooltip-cursor"});return(0,c.isValidElement)(e.props.cursor)?(0,c.cloneElement)(e.props.cursor,x):(0,c.createElement)(f,x)},n.renderPolarAxis=function(e,t,r){var o=e.type.axisType,i=n.state["".concat(o,"Map")][e.props["".concat(o,"Id")]];return(0,c.cloneElement)(e,H({},i,{className:o,key:e.key||"".concat(t,"-").concat(r),ticks:(0,S.getTicksOfAxis)(i,!0)}))},n.renderXAxis=function(e,t,r){var o=n.state.xAxisMap[e.props.xAxisId];return n.renderAxis(o,e,t,r)},n.renderYAxis=function(e,t,r){var o=n.state.yAxisMap[e.props.yAxisId];return n.renderAxis(o,e,t,r)},n.renderGrid=function(e){var t=n.state,i=t.xAxisMap,a=t.yAxisMap,l=t.offset,u=n.props,s=u.width,f=u.height,d=(0,M.getAnyElementOfObject)(i),p=(0,o.default)(a,(function(e){return(0,r.default)(e.domain,Number.isFinite)}))||(0,M.getAnyElementOfObject)(a),h=e.props||{};return(0,c.cloneElement)(e,{key:e.key||"grid",x:(0,M.isNumber)(h.x)?h.x:l.left,y:(0,M.isNumber)(h.y)?h.y:l.top,width:(0,M.isNumber)(h.width)?h.width:l.width,height:(0,M.isNumber)(h.height)?h.height:l.height,xAxis:d,yAxis:p,offset:l,chartWidth:s,chartHeight:f,verticalCoordinatesGenerator:h.verticalCoordinatesGenerator||n.verticalCoordinatesGenerator,horizontalCoordinatesGenerator:h.horizontalCoordinatesGenerator||n.horizontalCoordinatesGenerator})},n.renderPolarGrid=function(e){var t=n.state,r=t.radiusAxisMap,o=t.angleAxisMap,i=(0,M.getAnyElementOfObject)(r),a=(0,M.getAnyElementOfObject)(o),l=a.cx,u=a.cy,s=a.innerRadius,f=a.outerRadius;return(0,c.cloneElement)(e,{polarAngles:(0,S.getTicksOfAxis)(a,!0).map((function(e){return e.coordinate})),polarRadius:(0,S.getTicksOfAxis)(i,!0).map((function(e){return e.coordinate})),cx:l,cy:u,innerRadius:s,outerRadius:f,key:e.key||"polar-grid"})},n.renderBrush=function(e){var t=n.props,r=t.margin,o=t.data,i=n.state,a=i.offset,l=i.dataStartIndex,u=i.dataEndIndex,s=i.updateId;return(0,c.cloneElement)(e,{key:e.key||"_recharts-brush",onChange:(0,S.combineEventHandlers)(n.handleBrushChange,null,e.props.onChange),data:o,x:(0,M.isNumber)(e.props.x)?e.props.x:a.left,y:(0,M.isNumber)(e.props.y)?e.props.y:a.top+a.height+a.brushBottom-(r.bottom||0),width:(0,M.isNumber)(e.props.width)?e.props.width:a.width,startIndex:l,endIndex:u,updateId:"brush-".concat(s)})},n.renderReferenceElement=function(e,t,r){if(!e)return null;var o=$(n).clipPathId,i=n.state,a=i.xAxisMap,l=i.yAxisMap,u=i.offset,s=e.props,f=s.xAxisId,d=s.yAxisId;return(0,c.cloneElement)(e,{key:e.key||"".concat(t,"-").concat(r),xAxis:a[f],yAxis:l[d],viewBox:{x:u.left,y:u.top,width:u.width,height:u.height},clipPathId:o})},n.renderGraphicChild=function(e,t,r){var o=n.filterFormatItem(e,t,r);if(!o)return null;var i=(0,c.cloneElement)(e,o.props),a=n.state,l=a.isTooltipActive,u=a.tooltipAxis,f=a.activeTooltipIndex,d=a.activeLabel,p=n.props.children,h=(0,_.findChildByType)(p,v.default),g=o.props,y=g.points,m=g.isRange,b=g.baseLine,x=o.item.props,w=x.activeDot;if(!x.hide&&l&&h&&w&&f>=0){var C,O;if(u.dataKey&&!u.allowDuplicatedCategory){var E="function"==typeof u.dataKey?function(e){return u.dataKey(e.payload)}:"payload.".concat(u.dataKey);C=(0,M.findEntryInArray)(y,E,d),O=m&&b&&(0,M.findEntryInArray)(b,E,d)}else C=y[f],O=m&&b&&b[f];if(!(0,s.default)(C))return[i].concat(I(n.renderActivePoints({item:o,activePoint:C,basePoint:O,childIndex:f,isRange:m})))}return m?[i,null,null]:[i,null]},n.renderCustomized=function(e){return(0,c.cloneElement)(e,H({},n.props,{},n.state))};var l=n.constructor.createDefaultState(e);return n.state=H({},l,{updateId:0},n.updateStateOfAxisMapsOffsetAndStackGroups(H({props:e},l,{updateId:0}))),n.uniqueChartId=(0,s.default)(e.id)?(0,M.uniqueId)("recharts"):e.id,n.clipPathId="".concat(n.uniqueChartId,"-clip"),e.throttleDelay&&(n.triggeredAfterMouseMove=(0,u.default)(n.triggeredAfterMouseMove,e.throttleDelay)),n}var P,q,Y;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&U(e,t)}(f,e),P=f,Y=[{key:"getAxisNameByLayout",value:function(e){return"horizontal"===e?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:"vertical"===e?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:"centric"===e?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}}},{key:"renderActiveDot",value:function(e,t){var n;return n=(0,c.isValidElement)(e)?(0,c.cloneElement)(e,t):(0,a.default)(e)?e(t):c.default.createElement(x.default,t),c.default.createElement(h.default,{className:"recharts-active-dot",key:t.key},n)}}],(q=[{key:"componentDidMount",value:function(){(0,s.default)(this.props.syncId)||this.addListener()}},{key:"componentWillReceiveProps",value:function(e){var t=this,n=this.props,r=n.data,o=n.children,i=n.width,a=n.height,l=n.layout,u=n.stackOffset,c=n.margin,f=this.state.updateId;if(e.data===r&&e.width===i&&e.height===a&&e.layout===l&&e.stackOffset===u&&(0,j.shallowEqual)(e.margin,c)){if(!(0,_.isChildrenEqual)(e.children,o)){var d=(0,s.default)(e.data)?f+1:f;this.setState((function(n){return H({updateId:d},t.updateStateOfAxisMapsOffsetAndStackGroups(H({props:e},n,{updateId:d})))}))}}else{var p=this.constructor.createDefaultState(e);this.setState(H({},p,{updateId:f+1},this.updateStateOfAxisMapsOffsetAndStackGroups(H({props:e},p,{updateId:f+1}))))}(0,s.default)(this.props.syncId)&&!(0,s.default)(e.syncId)&&this.addListener(),!(0,s.default)(this.props.syncId)&&(0,s.default)(e.syncId)&&this.removeListener()}},{key:"componentWillUnmount",value:function(){(0,s.default)(this.props.syncId)||this.removeListener(),"function"==typeof this.triggeredAfterMouseMove.cancel&&this.triggeredAfterMouseMove.cancel()}},{key:"getAxisMap",value:function(e,t){var n=t.axisType,r=void 0===n?"xAxis":n,o=t.AxisComp,i=t.graphicalItems,a=t.stackGroups,l=t.dataStartIndex,u=t.dataEndIndex,s=e.children,c="".concat(r,"Id"),f=(0,_.findAllByType)(s,o),d={};return f&&f.length?d=this.getAxisMapByAxes(e,{axes:f,graphicalItems:i,axisType:r,axisIdKey:c,stackGroups:a,dataStartIndex:l,dataEndIndex:u}):i&&i.length&&(d=this.getAxisMapByItems(e,{Axis:o,graphicalItems:i,axisType:r,axisIdKey:c,stackGroups:a,dataStartIndex:l,dataEndIndex:u})),d}},{key:"getAxisMapByAxes",value:function(e,t){var n=this,r=t.axes,o=t.graphicalItems,i=t.axisType,a=t.axisIdKey,u=t.stackGroups,c=t.dataStartIndex,f=t.dataEndIndex,d=e.layout,p=e.children,h=e.stackOffset,v=(0,S.isCategorialAxis)(d,i);return r.reduce((function(t,r){var g=r.props,y=g.type,m=g.dataKey,b=g.allowDataOverflow,x=g.allowDuplicatedCategory,w=g.scale,_=g.ticks,C=r.props[a],O=n.constructor.getDisplayedData(e,{graphicalItems:o.filter((function(e){return e.props[a]===C})),dataStartIndex:c,dataEndIndex:f}),E=O.length;if(!t[C]){var k,j,T;if(m){if(k=(0,S.getDomainOfDataByKey)(O,m,y),"category"===y&&v){var P=(0,M.hasDuplicate)(k);x&&P?(j=k,k=(0,l.default)(0,E)):x||(k=(0,S.parseDomainOfCategoryAxis)(r.props.domain,k,r).reduce((function(e,t){return e.indexOf(t)>=0?e:[].concat(I(e),[t])}),[]))}else if("category"===y)k=x?k.filter((function(e){return""!==e&&!(0,s.default)(e)})):(0,S.parseDomainOfCategoryAxis)(r.props.domain,k,r).reduce((function(e,t){return e.indexOf(t)>=0||""===t||(0,s.default)(t)?e:[].concat(I(e),[t])}),[]);else if("number"===y){var L=(0,S.parseErrorBarsOfAxis)(O,o.filter((function(e){return e.props[a]===C&&!e.props.hide})),m,i);L&&(k=L)}!v||"number"!==y&&"auto"===w||(T=(0,S.getDomainOfDataByKey)(O,m,"category"))}else k=v?(0,l.default)(0,E):u&&u[C]&&u[C].hasStack&&"number"===y?"expand"===h?[0,1]:(0,S.getDomainOfStackGroups)(u[C].stackGroups,c,f):(0,S.getDomainOfItemsWithSameAxis)(O,o.filter((function(e){return e.props[a]===C&&!e.props.hide})),y,!0);return"number"===y&&(k=(0,A.detectReferenceElementsDomain)(p,k,C,i,_),r.props.domain&&(k=(0,S.parseSpecifiedDomain)(r.props.domain,k,b))),H({},t,B({},C,H({},r.props,{axisType:i,domain:k,categoricalDomain:T,duplicateDomain:j,originalDomain:r.props.domain,isCategorial:v,layout:d})))}return t}),{})}},{key:"getAxisMapByItems",value:function(e,t){var n=t.graphicalItems,r=t.Axis,o=t.axisType,i=t.axisIdKey,a=t.stackGroups,u=t.dataStartIndex,s=t.dataEndIndex,c=e.layout,f=e.children,d=this.constructor.getDisplayedData(e,{graphicalItems:n,dataStartIndex:u,dataEndIndex:s}),p=d.length,h=(0,S.isCategorialAxis)(c,o),v=-1;return n.reduce((function(e,t){var g,y=t.props[i];return e[y]?e:(v++,h?g=(0,l.default)(0,p):a&&a[y]&&a[y].hasStack?(g=(0,S.getDomainOfStackGroups)(a[y].stackGroups,u,s),g=(0,A.detectReferenceElementsDomain)(f,g,y,o)):(g=(0,S.parseSpecifiedDomain)(r.defaultProps.domain,(0,S.getDomainOfItemsWithSameAxis)(d,n.filter((function(e){return e.props[i]===y&&!e.props.hide})),"number"),r.defaultProps.allowDataOverflow),g=(0,A.detectReferenceElementsDomain)(f,g,y,o)),H({},e,B({},y,H({axisType:o},r.defaultProps,{hide:!0,orientation:Z[o]&&Z[o][v%2],domain:g,originalDomain:r.defaultProps.domain,isCategorial:h,layout:c}))))}),{})}},{key:"getActiveCoordinate",value:function(e,t,n){var r=this.props.layout,o=e.find((function(e){return e&&e.index===t}));if(o){if("horizontal"===r)return{x:o.coordinate,y:n.y};if("vertical"===r)return{x:n.x,y:o.coordinate};if("centric"===r){var i=o.coordinate,a=n.radius;return H({},n,{},(0,k.polarToCartesian)(n.cx,n.cy,a,i),{angle:i,radius:a})}var l=o.coordinate,u=n.angle;return H({},n,{},(0,k.polarToCartesian)(n.cx,n.cy,l,u),{angle:u,radius:l})}return W}},{key:"getMouseInfo",value:function(e){if(!this.container)return null;var t=(0,E.getOffset)(this.container),n=(0,E.calculateChartCoordinate)(e,t),r=this.inRange(n.chartX,n.chartY);if(!r)return null;var o=this.state,i=o.xAxisMap,a=o.yAxisMap;if("axis"!==L&&i&&a){var l=(0,M.getAnyElementOfObject)(i).scale,u=(0,M.getAnyElementOfObject)(a).scale;return H({},n,{xValue:l&&l.invert?l.invert(n.chartX):null,yValue:u&&u.invert?u.invert(n.chartY):null})}var s=this.state,c=s.orderedTooltipTicks,f=s.tooltipAxis,d=s.tooltipTicks,p=this.calculateTooltipPos(r),h=(0,S.calculateActiveTickIndex)(p,c,d,f);if(h>=0&&d){var v=d[h]&&d[h].value;return H({},n,{activeTooltipIndex:h,activeLabel:v,activePayload:this.getTooltipContent(h,v),activeCoordinate:this.getActiveCoordinate(c,h,r)})}return null}},{key:"getTooltipContent",value:function(e,t){var n=this.state,r=n.graphicalItems,o=n.tooltipAxis,i=this.constructor.getDisplayedData(this.props,this.state);return e<0||!r||!r.length||e>=i.length?null:r.reduce((function(n,r){if(r.props.hide)return n;var a,l=r.props,u=l.dataKey,s=l.name,c=l.unit,f=l.formatter,d=l.data,p=l.tooltipType;return(a=o.dataKey&&!o.allowDuplicatedCategory?(0,M.findEntryInArray)(d||i,o.dataKey,t):d&&d[e]||i[e])?[].concat(I(n),[H({},(0,_.getPresentationAttributes)(r),{dataKey:u,unit:c,formatter:f,name:s||u,color:(0,S.getMainColorOfGraphicItem)(r),value:(0,S.getValueByDataKey)(a,u),type:p,payload:a})]):n}),[])}},{key:"getFormatItems",value:function(e,t){var n=this,r=t.graphicalItems,o=t.stackGroups,i=t.offset,a=t.updateId,l=t.dataStartIndex,u=t.dataEndIndex,c=e.barSize,f=e.layout,d=e.barGap,p=e.barCategoryGap,h=e.maxBarSize,v=this.constructor.getAxisNameByLayout(f),g=v.numericAxisName,y=v.cateAxisName,m=this.constructor.hasBar(r),b=m&&(0,S.getBarSizeList)({barSize:c,stackGroups:o}),x=[];return r.forEach((function(r,c){var v,w=n.constructor.getDisplayedData(e,{dataStartIndex:l,dataEndIndex:u},r),C=r.props,O=C.dataKey,E=C.maxBarSize,M=r.props["".concat(g,"Id")],A=r.props["".concat(y,"Id")],k=R.reduce((function(e,n){var o,i=t["".concat(n.axisType,"Map")],a=r.props["".concat(n.axisType,"Id")],l=i&&i[a];return H({},e,(B(o={},n.axisType,l),B(o,"".concat(n.axisType,"Ticks"),(0,S.getTicksOfAxis)(l)),o))}),{}),j=k[y],T=k["".concat(y,"Ticks")],P=o&&o[M]&&o[M].hasStack&&(0,S.getStackedDataOfItem)(r,o[M].stackGroups),L=(0,S.getBandSizeOfAxis)(j,T),z=(0,s.default)(E)?h:E,N=m&&(0,S.getBarPosition)({barGap:d,barCategoryGap:p,bandSize:L,sizeList:b[A],maxBarSize:z}),D=r&&r.type&&r.type.getComposedData;D&&x.push({props:H({},D(H({},k,{displayedData:w,props:e,dataKey:O,item:r,bandSize:L,barPosition:N,offset:i,stackedData:P,layout:f,dataStartIndex:l,dataEndIndex:u,onItemMouseLeave:(0,S.combineEventHandlers)(n.handleItemMouseLeave,null,r.props.onMouseLeave),onItemMouseEnter:(0,S.combineEventHandlers)(n.handleItemMouseEnter,null,r.props.onMouseEnter)})),(v={key:r.key||"item-".concat(c)},B(v,g,k[g]),B(v,y,k[y]),B(v,"animationId",a),v)),childIndex:(0,_.parseChildIndex)(r,e.children),item:r})})),x}},{key:"getCursorRectangle",value:function(){var e=this.props.layout,t=this.state,n=t.activeCoordinate,r=t.offset,o=t.tooltipAxisBandSize,i=o/2;return{stroke:"none",fill:"#ccc",x:"horizontal"===e?n.x-i:r.left+.5,y:"horizontal"===e?r.top+.5:n.y-i,width:"horizontal"===e?o:r.width-1,height:"horizontal"===e?r.height-1:o}}},{key:"getCursorPoints",value:function(){var e,t,n,r,o=this.props.layout,i=this.state,a=i.activeCoordinate,l=i.offset;if("horizontal"===o)n=e=a.x,t=l.top,r=l.top+l.height;else if("vertical"===o)r=t=a.y,e=l.left,n=l.left+l.width;else if(!(0,s.default)(a.cx)||!(0,s.default)(a.cy)){if("centric"!==o){var u=a.cx,c=a.cy,f=a.radius,d=a.startAngle,p=a.endAngle;return{points:[(0,k.polarToCartesian)(u,c,f,d),(0,k.polarToCartesian)(u,c,f,p)],cx:u,cy:c,radius:f,startAngle:d,endAngle:p}}var h=a.cx,v=a.cy,g=a.innerRadius,y=a.outerRadius,m=a.angle,b=(0,k.polarToCartesian)(h,v,g,m),x=(0,k.polarToCartesian)(h,v,y,m);e=b.x,t=b.y,n=x.x,r=x.y}return[{x:e,y:t},{x:n,y:r}]}},{key:"calculateTooltipPos",value:function(e){var t=this.props.layout;return"horizontal"===t?e.x:"vertical"===t?e.y:"centric"===t?e.angle:e.radius}},{key:"inRange",value:function(e,t){var n=this.props.layout;if("horizontal"===n||"vertical"===n){var r=this.state.offset;return e>=r.left&&e<=r.left+r.width&&t>=r.top&&t<=r.top+r.height?{x:e,y:t}:null}var o=this.state,i=o.angleAxisMap,a=o.radiusAxisMap;if(i&&a){var l=(0,M.getAnyElementOfObject)(i);return(0,k.inRangeOfSector)({x:e,y:t},l)}return null}},{key:"parseEventsOfWrapper",value:function(){var e=this.props.children,t=(0,_.findChildByType)(e,v.default)&&"axis"===L?{onMouseEnter:this.handleMouseEnter,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd}:{};return H({},(0,_.filterEventAttributes)(this.props,this.handleOuterEvent),{},t)}},{key:"updateStateOfAxisMapsOffsetAndStackGroups",value:function(e){var r=this,o=e.props,i=e.dataStartIndex,a=e.dataEndIndex,l=e.updateId;if(!(0,_.validateWidthHeight)({props:o}))return null;var u=o.children,s=o.layout,c=o.stackOffset,f=o.data,d=o.reverseStackOrder,p=this.constructor.getAxisNameByLayout(s),h=p.numericAxisName,v=p.cateAxisName,g=(0,_.findAllByType)(u,n),y=(0,S.getStackGroupsByAxisId)(f,g,"".concat(h,"Id"),"".concat(v,"Id"),c,d),m=R.reduce((function(e,t){return H({},e,B({},"".concat(t.axisType,"Map"),r.getAxisMap(o,H({},t,{graphicalItems:g,stackGroups:t.axisType===h&&y,dataStartIndex:i,dataEndIndex:a}))))}),{}),b=this.calculateOffset(H({},m,{props:o,graphicalItems:g}));Object.keys(m).forEach((function(e){m[e]=G(o,m[e],b,e.replace("Map",""),t)}));var x=m["".concat(v,"Map")],w=this.tooltipTicksGenerator(x),C=this.getFormatItems(o,H({},m,{dataStartIndex:i,dataEndIndex:a,updateId:l,graphicalItems:g,stackGroups:y,offset:b}));return H({formatedGraphicalItems:C,graphicalItems:g,offset:b,stackGroups:y},w,{},m)}},{key:"addListener",value:function(){T.eventCenter.on(T.SYNC_EVENT,this.handleReceiveSyncEvent),T.eventCenter.setMaxListeners&&T.eventCenter._maxListeners&&T.eventCenter.setMaxListeners(T.eventCenter._maxListeners+1)}},{key:"removeListener",value:function(){T.eventCenter.removeListener(T.SYNC_EVENT,this.handleReceiveSyncEvent),T.eventCenter.setMaxListeners&&T.eventCenter._maxListeners&&T.eventCenter.setMaxListeners(T.eventCenter._maxListeners-1)}},{key:"calculateOffset",value:function(e){var t=e.props,n=e.graphicalItems,r=e.xAxisMap,o=void 0===r?{}:r,i=e.yAxisMap,a=void 0===i?{}:i,l=t.width,u=t.height,s=t.children,c=t.margin||{},f=(0,_.findChildByType)(s,O.default),d=(0,_.findChildByType)(s,g.default),p=Object.keys(a).reduce((function(e,t){var n=a[t],r=n.orientation;return n.mirror||n.hide?e:H({},e,B({},r,e[r]+n.width))}),{left:c.left||0,right:c.right||0}),h=Object.keys(o).reduce((function(e,t){var n=o[t],r=n.orientation;return n.mirror||n.hide?e:H({},e,B({},r,e[r]+n.height))}),{top:c.top||0,bottom:c.bottom||0}),v=H({},h,{},p),y=v.bottom;if(f&&(v.bottom+=f.props.height||O.default.defaultProps.height),d&&this.legendInstance){var m=this.legendInstance.getBBox();v=(0,S.appendOffsetOfLegend)(v,n,t,m)}return H({brushBottom:y},v,{width:l-v.left-v.right,height:u-v.top-v.bottom})}},{key:"triggerSyncEvent",value:function(e){var t=this.props.syncId;(0,s.default)(t)||T.eventCenter.emit(T.SYNC_EVENT,t,this.uniqueChartId,e)}},{key:"filterFormatItem",value:function(e,t,n){for(var r=this.state.formatedGraphicalItems,o=0,i=r.length;o=0}))},X.getDisplayedData=function(e,t,n){var r=t.graphicalItems,o=t.dataStartIndex,i=t.dataEndIndex,a=(r||[]).reduce((function(e,t){var n=t.props.data;return n&&n.length?[].concat(I(e),I(n)):e}),[]);if(a&&a.length>0)return a;if(n&&n.props&&n.props.data&&n.props.data.length>0)return n.props.data;var l=e.data;return l&&l.length&&(0,M.isNumber)(o)&&(0,M.isNumber)(i)?l.slice(o,i+1):[]},X};t.default=K},function(e,t,n){var r=n(2150)();e.exports=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.warn=void 0;t.warn=function(e,t,n,r,o,i,a,l){}},,,function(e,t){var n=e.exports={version:"2.6.11"};"number"==typeof __e&&(__e=n)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=s(n(1)),o=s(n(1083)),i=s(n(1290)),a=s(n(1291)),l=n(926),u=s(n(1036));function s(e){return e&&e.__esModule?e:{default:e}}var c=(0,o.default)({chartName:"PieChart",GraphicalChild:u.default,eventType:"item",legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:i.default},{axisType:"radiusAxis",AxisComp:a.default}],formatAxisMap:l.formatAxisMap,defaultProps:{layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"},propTypes:{layout:r.default.oneOf(["centric"]),startAngle:r.default.number,endAngle:r.default.number,cx:r.default.oneOfType([r.default.number,r.default.string]),cy:r.default.oneOfType([r.default.number,r.default.string]),innerRadius:r.default.oneOfType([r.default.number,r.default.string]),outerRadius:r.default.oneOfType([r.default.number,r.default.string])}});t.default=c},,,function(e,t,n){"use strict";var r=n(8),o=n(39),i=n(21),a=n(80),l=n(35),u=n(103),s=n(343),c=n(46),f=n(126),d=n(351),p=n(508),h=n(40),v=n(79),g=h("replace"),y=TypeError,m=i("".indexOf),b=i("".replace),x=i("".slice),w=Math.max;r({target:"String",proto:!0},{replaceAll:function(e,t){var n,r,i,h,_,C,O,E,M,S=a(this),A=0,k=0,j="";if(!u(e)){if((n=s(e))&&(r=c(a(d(e))),!~m(r,"g")))throw new y("`.replaceAll` does not allow non-global regexes");if(i=f(e,g))return o(i,e,S,t);if(v&&n)return b(c(S),e,t)}for(h=c(S),_=c(e),(C=l(t))||(t=c(t)),O=_.length,E=w(1,O),A=m(h,_);-1!==A;)M=C?c(t(_,A,h)):p(_,h,A,[],void 0,t),j+=x(h,k,A)+M,k=A+O,A=A+E>h.length?-1:m(h,_,A+E);return k=t||n<0||g&&e-h>=c}function w(){var e=Object(o.a)();if(x(e))return _(e);d=setTimeout(w,function(e){var n=t-(e-p);return g?l(n,c-(e-h)):n}(e))}function _(e){return d=void 0,y&&u?m(e):(u=s=void 0,f)}function C(){var e=Object(o.a)(),n=x(e);if(u=arguments,s=this,p=e,n){if(void 0===d)return b(p);if(g)return clearTimeout(d),d=setTimeout(w,t),m(p)}return void 0===d&&(d=setTimeout(w,t)),f}return t=Object(i.a)(t)||0,Object(r.a)(n)&&(v=!!n.leading,c=(g="maxWait"in n)?a(Object(i.a)(n.maxWait)||0,t):c,y="trailing"in n?!!n.trailing:y),C.cancel=function(){void 0!==d&&clearTimeout(d),h=0,u=p=s=d=void 0},C.flush=function(){return void 0===d?f:_(Object(o.a)())},C}},function(e,t,n){"use strict";var r=n(1011);t.a=function(e,t,n){var o=null==e?void 0:Object(r.a)(e,t);return void 0===o?n:o}},function(e,t,n){"use strict";t.a=function(){return[]}},,,function(e,t,n){var r,o,i;o=[t],void 0===(i="function"==typeof(r=function(e){"use strict";var t,n=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e};!function(e){e[e.EOS=0]="EOS",e[e.Text=1]="Text",e[e.Incomplete=2]="Incomplete",e[e.ESC=3]="ESC",e[e.Unknown=4]="Unknown",e[e.SGR=5]="SGR",e[e.OSCURL=6]="OSCURL"}(t||(t={}));var r=function(){function e(){this.VERSION="5.0.0",this.setup_palettes(),this._use_classes=!1,this.bold=!1,this.fg=this.bg=null,this._buffer="",this._url_whitelist={http:1,https:1}}return Object.defineProperty(e.prototype,"use_classes",{get:function(){return this._use_classes},set:function(e){this._use_classes=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"url_whitelist",{get:function(){return this._url_whitelist},set:function(e){this._url_whitelist=e},enumerable:!1,configurable:!0}),e.prototype.setup_palettes=function(){var e=this;this.ansi_colors=[[{rgb:[0,0,0],class_name:"ansi-black"},{rgb:[187,0,0],class_name:"ansi-red"},{rgb:[0,187,0],class_name:"ansi-green"},{rgb:[187,187,0],class_name:"ansi-yellow"},{rgb:[0,0,187],class_name:"ansi-blue"},{rgb:[187,0,187],class_name:"ansi-magenta"},{rgb:[0,187,187],class_name:"ansi-cyan"},{rgb:[255,255,255],class_name:"ansi-white"}],[{rgb:[85,85,85],class_name:"ansi-bright-black"},{rgb:[255,85,85],class_name:"ansi-bright-red"},{rgb:[0,255,0],class_name:"ansi-bright-green"},{rgb:[255,255,85],class_name:"ansi-bright-yellow"},{rgb:[85,85,255],class_name:"ansi-bright-blue"},{rgb:[255,85,255],class_name:"ansi-bright-magenta"},{rgb:[85,255,255],class_name:"ansi-bright-cyan"},{rgb:[255,255,255],class_name:"ansi-bright-white"}]],this.palette_256=[],this.ansi_colors.forEach((function(t){t.forEach((function(t){e.palette_256.push(t)}))}));for(var t=[0,95,135,175,215,255],n=0;n<6;++n)for(var r=0;r<6;++r)for(var o=0;o<6;++o){var i={rgb:[t[n],t[r],t[o]],class_name:"truecolor"};this.palette_256.push(i)}for(var a=8,l=0;l<24;++l,a+=10){var u={rgb:[a,a,a],class_name:"truecolor"};this.palette_256.push(u)}},e.prototype.escape_txt_for_html=function(e){return e.replace(/[&<>"']/gm,(function(e){return"&"===e?"&":"<"===e?"<":">"===e?">":'"'===e?""":"'"===e?"'":void 0}))},e.prototype.append_buffer=function(e){var t=this._buffer+e;this._buffer=t},e.prototype.get_next_packet=function(){var e={kind:t.EOS,text:"",url:""},r=this._buffer.length;if(0==r)return e;var i=this._buffer.indexOf("");if(-1==i)return e.kind=t.Text,e.text=this._buffer,this._buffer="",e;if(i>0)return e.kind=t.Text,e.text=this._buffer.slice(0,i),this._buffer=this._buffer.slice(i),e;if(0==i){if(1==r)return e.kind=t.Incomplete,e;var a=this._buffer.charAt(1);if("["!=a&&"]"!=a)return e.kind=t.ESC,e.text=this._buffer.slice(0,1),this._buffer=this._buffer.slice(1),e;if("["==a){if(this._csi_regex||(this._csi_regex=o(n(["\n ^ # beginning of line\n #\n # First attempt\n (?: # legal sequence\n [ # CSI\n ([<-?]?) # private-mode char\n ([d;]*) # any digits or semicolons\n ([ -/]? # an intermediate modifier\n [@-~]) # the command\n )\n | # alternate (second attempt)\n (?: # illegal sequence\n [ # CSI\n [ -~]* # anything legal\n ([\0-:]) # anything illegal\n )\n "],["\n ^ # beginning of line\n #\n # First attempt\n (?: # legal sequence\n \\x1b\\[ # CSI\n ([\\x3c-\\x3f]?) # private-mode char\n ([\\d;]*) # any digits or semicolons\n ([\\x20-\\x2f]? # an intermediate modifier\n [\\x40-\\x7e]) # the command\n )\n | # alternate (second attempt)\n (?: # illegal sequence\n \\x1b\\[ # CSI\n [\\x20-\\x7e]* # anything legal\n ([\\x00-\\x1f:]) # anything illegal\n )\n "]))),null===(s=this._buffer.match(this._csi_regex)))return e.kind=t.Incomplete,e;if(s[4])return e.kind=t.ESC,e.text=this._buffer.slice(0,1),this._buffer=this._buffer.slice(1),e;""!=s[1]||"m"!=s[3]?e.kind=t.Unknown:e.kind=t.SGR,e.text=s[2];var l=s[0].length;return this._buffer=this._buffer.slice(l),e}if("]"==a){if(r<4)return e.kind=t.Incomplete,e;if("8"!=this._buffer.charAt(2)||";"!=this._buffer.charAt(3))return e.kind=t.ESC,e.text=this._buffer.slice(0,1),this._buffer=this._buffer.slice(1),e;this._osc_st||(this._osc_st=function(e){for(var t=[],n=1;n0;){var n=t.shift(),r=parseInt(n,10);if(isNaN(r)||0===r)this.fg=this.bg=null,this.bold=!1;else if(1===r)this.bold=!0;else if(22===r)this.bold=!1;else if(39===r)this.fg=null;else if(49===r)this.bg=null;else if(r>=30&&r<38)this.fg=this.ansi_colors[0][r-30];else if(r>=40&&r<48)this.bg=this.ansi_colors[0][r-40];else if(r>=90&&r<98)this.fg=this.ansi_colors[1][r-90];else if(r>=100&&r<108)this.bg=this.ansi_colors[1][r-100];else if((38===r||48===r)&&t.length>0){var o=38===r,i=t.shift();if("5"===i&&t.length>0){var a=parseInt(t.shift(),10);a>=0&&a<=255&&(o?this.fg=this.palette_256[a]:this.bg=this.palette_256[a])}if("2"===i&&t.length>2){var l=parseInt(t.shift(),10),u=parseInt(t.shift(),10),s=parseInt(t.shift(),10);if(l>=0&&l<=255&&u>=0&&u<=255&&s>=0&&s<=255){var c={rgb:[l,u,s],class_name:"truecolor"};o?this.fg=c:this.bg=c}}}}},e.prototype.transform_to_html=function(e){var t=e.text;if(0===t.length)return t;if(t=this.escape_txt_for_html(t),!e.bold&&null===e.fg&&null===e.bg)return t;var n=[],r=[],o=e.fg,i=e.bg;e.bold&&n.push("font-weight:bold"),this._use_classes?(o&&("truecolor"!==o.class_name?r.push(o.class_name+"-fg"):n.push("color:rgb("+o.rgb.join(",")+")")),i&&("truecolor"!==i.class_name?r.push(i.class_name+"-bg"):n.push("background-color:rgb("+i.rgb.join(",")+")"))):(o&&n.push("color:rgb("+o.rgb.join(",")+")"),i&&n.push("background-color:rgb("+i.rgb+")"));var a="",l="";return r.length&&(a=' class="'+r.join(" ")+'"'),n.length&&(l=' style="'+n.join(";")+'"'),""+t+""},e.prototype.process_hyperlink=function(e){var t=e.url.split(":");return t.length<1?"":this._url_whitelist[t[0]]?''+this.escape_txt_for_html(e.text)+"":""},e}();function o(e){for(var t=[],n=1;n=0&&(t=e.slice(n+1),e=e.slice(0,n)),{type:e,name:t}}))}function u(e){return function(){var t=this.__on;if(t){for(var n,r=0,o=-1,i=t.length;r1?arguments[1]:void 0),t}})},function(e,t,n){"use strict";n(205)("flatMap")},function(e,t,n){var r=n(1156),o=n(1497),i=n(203);e.exports=function(e){return e&&e.length?r(e,i,o):void 0}},function(e,t,n){var r=n(163);e.exports=function(e,t,n){for(var o=-1,i=e.length;++o=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(e,t){for(var n=0;n180),",").concat(+(i>s),",\n ").concat(f.x,",").concat(f.y,"\n ");if(r>0){var p=(0,l.polarToCartesian)(t,n,r,i),h=(0,l.polarToCartesian)(t,n,r,s);d+="L ".concat(h.x,",").concat(h.y,"\n A ").concat(r,",").concat(r,",0,\n ").concat(+(Math.abs(a)>180),",").concat(+(i<=s),",\n ").concat(p.x,",").concat(p.y," Z")}else d+="L ".concat(t,",").concat(n," Z");return d},_=function(e){function t(){return v(this,t),y(this,m(t).apply(this,arguments))}var n,o,l;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&b(e,t)}(t,e),n=t,(o=[{key:"render",value:function(){var e=this.props,t=e.cx,n=e.cy,o=e.innerRadius,l=e.outerRadius,s=e.cornerRadius,c=e.forceCornerRadius,f=e.cornerIsExternal,d=e.startAngle,p=e.endAngle,v=e.className;if(l0&&Math.abs(d-p)<360?function(e){var t=e.cx,n=e.cy,r=e.innerRadius,o=e.outerRadius,i=e.cornerRadius,a=e.forceCornerRadius,l=e.cornerIsExternal,s=e.startAngle,c=e.endAngle,f=(0,u.mathSign)(c-s),d=x({cx:t,cy:n,radius:o,angle:s,sign:f,cornerRadius:i,cornerIsExternal:l}),p=d.circleTangency,h=d.lineTangency,v=d.theta,g=x({cx:t,cy:n,radius:o,angle:c,sign:-f,cornerRadius:i,cornerIsExternal:l}),y=g.circleTangency,m=g.lineTangency,b=g.theta,_=Math.abs(s-c)-v-b;if(_<0)return a?"M ".concat(h.x,",").concat(h.y,"\n a").concat(i,",").concat(i,",0,0,1,").concat(2*i,",0\n a").concat(i,",").concat(i,",0,0,1,").concat(2*-i,",0\n "):w({cx:t,cy:n,innerRadius:r,outerRadius:o,startAngle:s,endAngle:c});var C="M ".concat(h.x,",").concat(h.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(f<0),",").concat(p.x,",").concat(p.y,"\n A").concat(o,",").concat(o,",0,").concat(+(_>180),",").concat(+(f<0),",").concat(y.x,",").concat(y.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(f<0),",").concat(m.x,",").concat(m.y,"\n ");if(r>0){var O=x({cx:t,cy:n,radius:r,angle:s,sign:f,isExternal:!0,cornerRadius:i,cornerIsExternal:l}),E=O.circleTangency,M=O.lineTangency,S=O.theta,A=x({cx:t,cy:n,radius:r,angle:c,sign:-f,isExternal:!0,cornerRadius:i,cornerIsExternal:l}),k=A.circleTangency,j=A.lineTangency,T=A.theta,P=Math.abs(s-c)-S-T;if(P<0)return"".concat(C,"L").concat(t,",").concat(n,"Z");C+="L".concat(j.x,",").concat(j.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(f<0),",").concat(k.x,",").concat(k.y,"\n A").concat(r,",").concat(r,",0,").concat(+(P>180),",").concat(+(f>0),",").concat(E.x,",").concat(E.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(f<0),",").concat(M.x,",").concat(M.y,"Z")}else C+="L".concat(t,",").concat(n,"Z");return C}({cx:t,cy:n,innerRadius:o,outerRadius:l,cornerRadius:Math.min(b,m/2),forceCornerRadius:c,cornerIsExternal:f,startAngle:d,endAngle:p}):w({cx:t,cy:n,innerRadius:o,outerRadius:l,startAngle:d,endAngle:p}),r.default.createElement("path",h({},(0,a.getPresentationAttributes)(this.props),(0,a.filterEventAttributes)(this.props),{className:y,d:g}))}}])&&g(n.prototype,o),l&&g(n,l),t}(r.PureComponent);_.displayName="Sector",_.propTypes=function(e){for(var t=1;t0?r:n)(e)}},,,function(e,t,n){var r=n(274),o=n(330),i=n(337),a=n(60);e.exports=function(){var e=arguments.length;if(!e)return[];for(var t=Array(e-1),n=arguments[0],l=e;l--;)t[l-1]=arguments[l];return r(a(n)?i(n):[n],o(t,1))}},function(e,t,n){var r=n(2292),o=n(331),i=n(119),a=n(2293),l=n(60);e.exports=function(e,t,n){var u=l(e)?r:a,s=arguments.length<3;return u(e,i(t,4),n,s,o)}},,,,function(e,t,n){var r=n(2460);e.exports=function(e,t){if(null==e)return{};var n,o,i=r(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i},e.exports.default=e.exports,e.exports.__esModule=!0},,function(e,t,n){var r; /*! Copyright (c) 2018 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames -*/!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e=[],t=0;t1&&void 0!==arguments[1]?arguments[1]:"";if((0,o.default)(t),!(n=String(n)))return e(t,4)||e(t,6);if("4"===n)return l.test(t);if("6"===n)return s.test(t);return!1};var r,o=(r=n(797))&&r.__esModule?r:{default:r};var i="(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])",a="(".concat(i,"[.]){3}").concat(i),l=new RegExp("^".concat(a,"$")),u="(?:[0-9a-fA-F]{1,4})",s=new RegExp("^("+"(?:".concat(u,":){7}(?:").concat(u,"|:)|")+"(?:".concat(u,":){6}(?:").concat(a,"|:").concat(u,"|:)|")+"(?:".concat(u,":){5}(?::").concat(a,"|(:").concat(u,"){1,2}|:)|")+"(?:".concat(u,":){4}(?:(:").concat(u,"){0,1}:").concat(a,"|(:").concat(u,"){1,3}|:)|")+"(?:".concat(u,":){3}(?:(:").concat(u,"){0,2}:").concat(a,"|(:").concat(u,"){1,4}|:)|")+"(?:".concat(u,":){2}(?:(:").concat(u,"){0,3}:").concat(a,"|(:").concat(u,"){1,5}|:)|")+"(?:".concat(u,":){1}(?:(:").concat(u,"){0,4}:").concat(a,"|(:").concat(u,"){1,6}|:)|")+"(?::((?::".concat(u,"){0,5}:").concat(a,"|(?::").concat(u,"){1,7}|:))")+")(%[0-9a-zA-Z-.:]{1,})?$");e.exports=t.default,e.exports.default=t.default},,,,,,,,function(e,t,n){"use strict";var r=n(1663),o=Object(r.a)(Object.getPrototypeOf,Object);t.a=o},function(e,t,n){"use strict";var r=n(937),o=n(879);t.a=function(e){return Object(r.a)(e,Object(o.a)(e))}},function(e,t,n){"use strict";var r=n(1119),o=n(840);t.a=function(e,t,n){var i=!0,a=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return Object(o.a)(n)&&(i="leading"in n?!!n.leading:i,a="trailing"in n?!!n.trailing:a),Object(r.a)(e,t,{leading:i,maxWait:t,trailing:a})}},function(e,t,n){"use strict";var r=n(860);t.a=function(){return r.a.Date.now()}},function(e,t,n){"use strict";var r=n(1466);function o(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(o.Cache||r.a),n}o.Cache=r.a,t.a=o},function(e,t,n){"use strict";t.a=function(e,t){return e.has(t)}},function(e,t,n){"use strict";t.a=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}},function(e,t,n){"use strict";t.a=function(e){return void 0===e}},,,,,,function(e,t,n){var r=n(478),o=n(331),i=n(1348),a=n(60);e.exports=function(e,t){return(a(e)?r:o)(e,i(t))}},,,function(e,t,n){"use strict";var r=n(8),o=n(510);r({target:"Number",stat:!0,forced:Number.parseInt!==o},{parseInt:o})},function(e,t,n){"use strict";var r=n(843);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(3329)).default;t.default=o},function(e,t,n){"use strict";e.exports=n(3459)("forEach")},function(e,t,n){"use strict";e.exports=n(3482)()?globalThis:n(3483)},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";var r=n(1240);t.a=function(e){var t=e+="",n=t.indexOf(":");return n>=0&&"xmlns"!==(t=e.slice(0,n))&&(e=e.slice(n+1)),r.a.hasOwnProperty(t)?{space:r.a[t],local:e}:e}},function(e,t,n){"use strict";n.d(t,"b",(function(){return r}));var r="http://www.w3.org/1999/xhtml";t.a={svg:"http://www.w3.org/2000/svg",xhtml:r,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"}},function(e,t,n){"use strict";function r(){}t.a=function(e){return null==e?r:function(){return this.querySelector(e)}}},function(e,t,n){"use strict";t.a=function(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}},function(e,t,n){"use strict";var r=n(835);e.exports={longestPath:function(e){var t={};r.forEach(e.sources(),(function n(o){var i=e.node(o);if(r.has(t,o))return i.rank;t[o]=!0;var a=r.min(r.map(e.outEdges(o),(function(t){return n(t.w)-e.edge(t).minlen})));return a!==Number.POSITIVE_INFINITY&&null!=a||(a=0),i.rank=a}))},slack:function(e,t){return e.node(t.w).rank-e.node(t.v).rank-e.edge(t).minlen}}},function(e,t,n){"use strict";n(4785)},,function(e,t,n){"use strict";var r=n(811),o=n(261),i=r.aTypedArrayConstructor,a=r.getTypedArrayConstructor;e.exports=function(e){return i(o(e,a(e)))}},function(e,t,n){var r=n(473),o=n(76);e.exports=function(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=r(e.prototype),i=e.apply(n,t);return o(i)?i:n}}},function(e,t){e.exports=function(e,t){for(var n=-1,r=e.length,o=0,i=[];++n1e-6)if(Math.abs(f*u-s*c)>1e-6&&i){var p=n-a,h=o-l,v=u*u+s*s,g=p*p+h*h,y=Math.sqrt(v),m=Math.sqrt(d),b=i*Math.tan((r-Math.acos((v+d-g)/(2*y*m)))/2),x=b/m,w=b/y;Math.abs(x-1)>1e-6&&(this._+="L"+(e+x*c)+","+(t+x*f)),this._+="A"+i+","+i+",0,0,"+ +(f*p>c*h)+","+(this._x1=e+w*u)+","+(this._y1=t+w*s)}else this._+="L"+(this._x1=e)+","+(this._y1=t);else;},arc:function(e,t,n,a,l,u){e=+e,t=+t,u=!!u;var s=(n=+n)*Math.cos(a),c=n*Math.sin(a),f=e+s,d=t+c,p=1^u,h=u?a-l:l-a;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+f+","+d:(Math.abs(this._x1-f)>1e-6||Math.abs(this._y1-d)>1e-6)&&(this._+="L"+f+","+d),n&&(h<0&&(h=h%o+o),h>i?this._+="A"+n+","+n+",0,1,"+p+","+(e-s)+","+(t-c)+"A"+n+","+n+",0,1,"+p+","+(this._x1=f)+","+(this._y1=d):h>1e-6&&(this._+="A"+n+","+n+",0,"+ +(h>=r)+","+p+","+(this._x1=e+n*Math.cos(l))+","+(this._y1=t+n*Math.sin(l))))},rect:function(e,t,n,r){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}};var u=l,s=function(e){return function(){return e}},c=Math.abs,f=Math.atan2,d=Math.cos,p=Math.max,h=Math.min,v=Math.sin,g=Math.sqrt,y=Math.PI,m=y/2,b=2*y;function x(e){return e>1?0:e<-1?y:Math.acos(e)}function w(e){return e>=1?m:e<=-1?-m:Math.asin(e)}function _(e){return e.innerRadius}function C(e){return e.outerRadius}function O(e){return e.startAngle}function E(e){return e.endAngle}function M(e){return e&&e.padAngle}function S(e,t,n,r,o,i,a,l){var u=n-e,s=r-t,c=a-o,f=l-i,d=f*u-c*s;if(!(d*d<1e-12))return[e+(d=(c*(t-i)-f*(e-o))/d)*u,t+d*s]}function A(e,t,n,r,o,i,a){var l=e-n,u=t-r,s=(a?i:-i)/g(l*l+u*u),c=s*u,f=-s*l,d=e+c,h=t+f,v=n+c,y=r+f,m=(d+v)/2,b=(h+y)/2,x=v-d,w=y-h,_=x*x+w*w,C=o-i,O=d*y-v*h,E=(w<0?-1:1)*g(p(0,C*C*_-O*O)),M=(O*w-x*E)/_,S=(-O*x-w*E)/_,A=(O*w+x*E)/_,k=(-O*x+w*E)/_,j=M-m,T=S-b,P=A-m,L=k-b;return j*j+T*T>P*P+L*L&&(M=A,S=k),{cx:M,cy:S,x01:-c,y01:-f,x11:M*(o/C-1),y11:S*(o/C-1)}}var k=function(){var e=_,t=C,n=s(0),r=null,o=O,i=E,a=M,l=null;function p(){var s,p,_=+e.apply(this,arguments),C=+t.apply(this,arguments),O=o.apply(this,arguments)-m,E=i.apply(this,arguments)-m,M=c(E-O),k=E>O;if(l||(l=s=u()),C<_&&(p=C,C=_,_=p),C>1e-12)if(M>b-1e-12)l.moveTo(C*d(O),C*v(O)),l.arc(0,0,C,O,E,!k),_>1e-12&&(l.moveTo(_*d(E),_*v(E)),l.arc(0,0,_,E,O,k));else{var j,T,P=O,L=E,z=O,N=E,D=M,I=M,R=a.apply(this,arguments)/2,H=R>1e-12&&(r?+r.apply(this,arguments):g(_*_+C*C)),B=h(c(C-_)/2,+n.apply(this,arguments)),F=B,V=B;if(H>1e-12){var $=w(H/_*v(R)),U=w(H/C*v(R));(D-=2*$)>1e-12?(z+=$*=k?1:-1,N-=$):(D=0,z=N=(O+E)/2),(I-=2*U)>1e-12?(P+=U*=k?1:-1,L-=U):(I=0,P=L=(O+E)/2)}var Z=C*d(P),W=C*v(P),K=_*d(N),G=_*v(N);if(B>1e-12){var q,Y=C*d(L),X=C*v(L),J=_*d(z),Q=_*v(z);if(M1e-12?V>1e-12?(j=A(J,Q,Z,W,C,V,k),T=A(Y,X,K,G,C,V,k),l.moveTo(j.cx+j.x01,j.cy+j.y01),V1e-12&&D>1e-12?F>1e-12?(j=A(K,G,Y,X,_,-F,k),T=A(Z,W,J,Q,_,-F,k),l.lineTo(j.cx+j.x01,j.cy+j.y01),F=f;--d)l.point(y[d],m[d]);l.lineEnd(),l.areaEnd()}g&&(y[c]=+e(p,c,s),m[c]=+n(p,c,s),l.point(t?+t(p,c,s):y[c],r?+r(p,c,s):m[c]))}if(h)return l=null,h+""||null}function f(){return z().defined(o).curve(a).context(i)}return c.x=function(n){return arguments.length?(e="function"==typeof n?n:s(+n),t=null,c):e},c.x0=function(t){return arguments.length?(e="function"==typeof t?t:s(+t),c):e},c.x1=function(e){return arguments.length?(t=null==e?null:"function"==typeof e?e:s(+e),c):t},c.y=function(e){return arguments.length?(n="function"==typeof e?e:s(+e),r=null,c):n},c.y0=function(e){return arguments.length?(n="function"==typeof e?e:s(+e),c):n},c.y1=function(e){return arguments.length?(r=null==e?null:"function"==typeof e?e:s(+e),c):r},c.lineX0=c.lineY0=function(){return f().x(e).y(n)},c.lineY1=function(){return f().x(e).y(r)},c.lineX1=function(){return f().x(t).y(n)},c.defined=function(e){return arguments.length?(o="function"==typeof e?e:s(!!e),c):o},c.curve=function(e){return arguments.length?(a=e,null!=i&&(l=a(i)),c):a},c.context=function(e){return arguments.length?(null==e?i=l=null:l=a(i=e),c):i},c},D=function(e,t){return te?1:t>=e?0:NaN},I=function(e){return e},R=function(){var e=I,t=D,n=null,r=s(0),o=s(b),i=s(0);function a(a){var l,u,s,c,f,d=a.length,p=0,h=new Array(d),v=new Array(d),g=+r.apply(this,arguments),y=Math.min(b,Math.max(-b,o.apply(this,arguments)-g)),m=Math.min(Math.abs(y)/d,i.apply(this,arguments)),x=m*(y<0?-1:1);for(l=0;l0&&(p+=f);for(null!=t?h.sort((function(e,n){return t(v[e],v[n])})):null!=n&&h.sort((function(e,t){return n(a[e],a[t])})),l=0,s=p?(y-d*x)/p:0;l0?f*s:0)+x,v[u]={data:a[u],index:l,value:f,startAngle:g,endAngle:c,padAngle:m};return v}return a.value=function(t){return arguments.length?(e="function"==typeof t?t:s(+t),a):e},a.sortValues=function(e){return arguments.length?(t=e,n=null,a):t},a.sort=function(e){return arguments.length?(n=e,t=null,a):n},a.startAngle=function(e){return arguments.length?(r="function"==typeof e?e:s(+e),a):r},a.endAngle=function(e){return arguments.length?(o="function"==typeof e?e:s(+e),a):o},a.padAngle=function(e){return arguments.length?(i="function"==typeof e?e:s(+e),a):i},a},H=F(T);function B(e){this._curve=e}function F(e){function t(t){return new B(e(t))}return t._curve=e,t}function V(e){var t=e.curve;return e.angle=e.x,delete e.x,e.radius=e.y,delete e.y,e.curve=function(e){return arguments.length?t(F(e)):t()._curve},e}B.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(e,t){this._curve.point(t*Math.sin(e),t*-Math.cos(e))}};var $=function(){return V(z().curve(H))},U=function(){var e=N().curve(H),t=e.curve,n=e.lineX0,r=e.lineX1,o=e.lineY0,i=e.lineY1;return e.angle=e.x,delete e.x,e.startAngle=e.x0,delete e.x0,e.endAngle=e.x1,delete e.x1,e.radius=e.y,delete e.y,e.innerRadius=e.y0,delete e.y0,e.outerRadius=e.y1,delete e.y1,e.lineStartAngle=function(){return V(n())},delete e.lineX0,e.lineEndAngle=function(){return V(r())},delete e.lineX1,e.lineInnerRadius=function(){return V(o())},delete e.lineY0,e.lineOuterRadius=function(){return V(i())},delete e.lineY1,e.curve=function(e){return arguments.length?t(F(e)):t()._curve},e},Z=function(e,t){return[(t=+t)*Math.cos(e-=Math.PI/2),t*Math.sin(e)]},W=Array.prototype.slice;function K(e){return e.source}function G(e){return e.target}function q(e){var t=K,n=G,r=P,o=L,i=null;function a(){var a,l=W.call(arguments),s=t.apply(this,l),c=n.apply(this,l);if(i||(i=a=u()),e(i,+r.apply(this,(l[0]=s,l)),+o.apply(this,l),+r.apply(this,(l[0]=c,l)),+o.apply(this,l)),a)return i=null,a+""||null}return a.source=function(e){return arguments.length?(t=e,a):t},a.target=function(e){return arguments.length?(n=e,a):n},a.x=function(e){return arguments.length?(r="function"==typeof e?e:s(+e),a):r},a.y=function(e){return arguments.length?(o="function"==typeof e?e:s(+e),a):o},a.context=function(e){return arguments.length?(i=null==e?null:e,a):i},a}function Y(e,t,n,r,o){e.moveTo(t,n),e.bezierCurveTo(t=(t+r)/2,n,t,o,r,o)}function X(e,t,n,r,o){e.moveTo(t,n),e.bezierCurveTo(t,n=(n+o)/2,r,n,r,o)}function J(e,t,n,r,o){var i=Z(t,n),a=Z(t,n=(n+o)/2),l=Z(r,n),u=Z(r,o);e.moveTo(i[0],i[1]),e.bezierCurveTo(a[0],a[1],l[0],l[1],u[0],u[1])}function Q(){return q(Y)}function ee(){return q(X)}function te(){var e=q(J);return e.angle=e.x,delete e.x,e.radius=e.y,delete e.y,e}var ne={draw:function(e,t){var n=Math.sqrt(t/y);e.moveTo(n,0),e.arc(0,0,n,0,b)}},re={draw:function(e,t){var n=Math.sqrt(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}},oe=Math.sqrt(1/3),ie=2*oe,ae={draw:function(e,t){var n=Math.sqrt(t/ie),r=n*oe;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},le=Math.sin(y/10)/Math.sin(7*y/10),ue=Math.sin(b/10)*le,se=-Math.cos(b/10)*le,ce={draw:function(e,t){var n=Math.sqrt(.8908130915292852*t),r=ue*n,o=se*n;e.moveTo(0,-n),e.lineTo(r,o);for(var i=1;i<5;++i){var a=b*i/5,l=Math.cos(a),u=Math.sin(a);e.lineTo(u*n,-l*n),e.lineTo(l*r-u*o,u*r+l*o)}e.closePath()}},fe={draw:function(e,t){var n=Math.sqrt(t),r=-n/2;e.rect(r,r,n,n)}},de=Math.sqrt(3),pe={draw:function(e,t){var n=-Math.sqrt(t/(3*de));e.moveTo(0,2*n),e.lineTo(-de*n,-n),e.lineTo(de*n,-n),e.closePath()}},he=Math.sqrt(3)/2,ve=1/Math.sqrt(12),ge=3*(ve/2+1),ye={draw:function(e,t){var n=Math.sqrt(t/ge),r=n/2,o=n*ve,i=r,a=n*ve+n,l=-i,u=a;e.moveTo(r,o),e.lineTo(i,a),e.lineTo(l,u),e.lineTo(-.5*r-he*o,he*r+-.5*o),e.lineTo(-.5*i-he*a,he*i+-.5*a),e.lineTo(-.5*l-he*u,he*l+-.5*u),e.lineTo(-.5*r+he*o,-.5*o-he*r),e.lineTo(-.5*i+he*a,-.5*a-he*i),e.lineTo(-.5*l+he*u,-.5*u-he*l),e.closePath()}},me=[ne,re,ae,fe,ce,pe,ye],be=function(){var e=s(ne),t=s(64),n=null;function r(){var r;if(n||(n=r=u()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),r)return n=null,r+""||null}return r.type=function(t){return arguments.length?(e="function"==typeof t?t:s(t),r):e},r.size=function(e){return arguments.length?(t="function"==typeof e?e:s(+e),r):t},r.context=function(e){return arguments.length?(n=null==e?null:e,r):n},r},xe=function(){};function we(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function _e(e){this._context=e}_e.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:we(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:we(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};var Ce=function(e){return new _e(e)};function Oe(e){this._context=e}Oe.prototype={areaStart:xe,areaEnd:xe,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:we(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};var Ee=function(e){return new Oe(e)};function Me(e){this._context=e}Me.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:we(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};var Se=function(e){return new Me(e)};function Ae(e,t){this._basis=new _e(e),this._beta=t}Ae.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,n=e.length-1;if(n>0)for(var r,o=e[0],i=t[0],a=e[n]-o,l=t[n]-i,u=-1;++u<=n;)r=u/n,this._basis.point(this._beta*e[u]+(1-this._beta)*(o+r*a),this._beta*t[u]+(1-this._beta)*(i+r*l));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};var ke=function e(t){function n(e){return 1===t?new _e(e):new Ae(e,t)}return n.beta=function(t){return e(+t)},n}(.85);function je(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function Te(e,t){this._context=e,this._k=(1-t)/6}Te.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:je(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:je(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var Pe=function e(t){function n(e){return new Te(e,t)}return n.tension=function(t){return e(+t)},n}(0);function Le(e,t){this._context=e,this._k=(1-t)/6}Le.prototype={areaStart:xe,areaEnd:xe,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:je(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var ze=function e(t){function n(e){return new Le(e,t)}return n.tension=function(t){return e(+t)},n}(0);function Ne(e,t){this._context=e,this._k=(1-t)/6}Ne.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:je(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var De=function e(t){function n(e){return new Ne(e,t)}return n.tension=function(t){return e(+t)},n}(0);function Ie(e,t,n){var r=e._x1,o=e._y1,i=e._x2,a=e._y2;if(e._l01_a>1e-12){var l=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,u=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*l-e._x0*e._l12_2a+e._x2*e._l01_2a)/u,o=(o*l-e._y0*e._l12_2a+e._y2*e._l01_2a)/u}if(e._l23_a>1e-12){var s=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,c=3*e._l23_a*(e._l23_a+e._l12_a);i=(i*s+e._x1*e._l23_2a-t*e._l12_2a)/c,a=(a*s+e._y1*e._l23_2a-n*e._l12_2a)/c}e._context.bezierCurveTo(r,o,i,a,e._x2,e._y2)}function Re(e,t){this._context=e,this._alpha=t}Re.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:Ie(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var He=function e(t){function n(e){return t?new Re(e,t):new Te(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function Be(e,t){this._context=e,this._alpha=t}Be.prototype={areaStart:xe,areaEnd:xe,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:Ie(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var Fe=function e(t){function n(e){return t?new Be(e,t):new Le(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function Ve(e,t){this._context=e,this._alpha=t}Ve.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Ie(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var $e=function e(t){function n(e){return t?new Ve(e,t):new Ne(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function Ue(e){this._context=e}Ue.prototype={areaStart:xe,areaEnd:xe,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};var Ze=function(e){return new Ue(e)};function We(e){return e<0?-1:1}function Ke(e,t,n){var r=e._x1-e._x0,o=t-e._x1,i=(e._y1-e._y0)/(r||o<0&&-0),a=(n-e._y1)/(o||r<0&&-0),l=(i*o+a*r)/(r+o);return(We(i)+We(a))*Math.min(Math.abs(i),Math.abs(a),.5*Math.abs(l))||0}function Ge(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function qe(e,t,n){var r=e._x0,o=e._y0,i=e._x1,a=e._y1,l=(i-r)/3;e._context.bezierCurveTo(r+l,o+l*t,i-l,a-l*n,i,a)}function Ye(e){this._context=e}function Xe(e){this._context=new Je(e)}function Je(e){this._context=e}function Qe(e){return new Ye(e)}function et(e){return new Xe(e)}function tt(e){this._context=e}function nt(e){var t,n,r=e.length-1,o=new Array(r),i=new Array(r),a=new Array(r);for(o[0]=0,i[0]=2,a[0]=e[0]+2*e[1],t=1;t=0;--t)o[t]=(a[t]-o[t+1])/i[t];for(i[r-1]=(e[r]+o[r-1])/2,t=0;t=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}}this._x=e,this._y=t}};var it=function(e){return new ot(e,.5)};function at(e){return new ot(e,0)}function lt(e){return new ot(e,1)}var ut=function(e,t){if((o=e.length)>1)for(var n,r,o,i=1,a=e[t[0]],l=a.length;i=0;)n[t]=t;return n};function ct(e,t){return e[t]}var ft=function(){var e=s([]),t=st,n=ut,r=ct;function o(o){var i,a,l=e.apply(this,arguments),u=o.length,s=l.length,c=new Array(s);for(i=0;i0){for(var n,r,o,i=0,a=e[0].length;i0)for(var n,r,o,i,a,l,u=0,s=e[t[0]].length;u0?(r[0]=i,r[1]=i+=o):o<0?(r[1]=a,r[0]=a+=o):(r[0]=0,r[1]=o)},ht=function(e,t){if((n=e.length)>0){for(var n,r=0,o=e[t[0]],i=o.length;r0&&(r=(n=e[t[0]]).length)>0){for(var n,r,o,i=0,a=1;ai&&(i=t,r=n);return r}var mt=function(e){var t=e.map(bt);return st(e).sort((function(e,n){return t[e]-t[n]}))};function bt(e){for(var t,n=0,r=-1,o=e.length;++rt?1:e>=t?0:NaN}var f=n(1239);function d(e){return function(){this.removeAttribute(e)}}function p(e){return function(){this.removeAttributeNS(e.space,e.local)}}function h(e,t){return function(){this.setAttribute(e,t)}}function v(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function g(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttribute(e):this.setAttribute(e,n)}}function y(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}var m=n(1437);function b(e){return function(){delete this[e]}}function x(e,t){return function(){this[e]=t}}function w(e,t){return function(){var n=t.apply(this,arguments);null==n?delete this[e]:this[e]=n}}function _(e){return e.trim().split(/^|\s+/)}function C(e){return e.classList||new O(e)}function O(e){this._node=e,this._names=_(e.getAttribute("class")||"")}function E(e,t){for(var n=C(e),r=-1,o=t.length;++r=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function j(){this.textContent=""}function T(e){return function(){this.textContent=e}}function P(e){return function(){var t=e.apply(this,arguments);this.textContent=null==t?"":t}}function L(){this.innerHTML=""}function z(e){return function(){this.innerHTML=e}}function N(e){return function(){var t=e.apply(this,arguments);this.innerHTML=null==t?"":t}}function D(){this.nextSibling&&this.parentNode.appendChild(this)}function I(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}var R=n(1140);function H(){return null}function B(){var e=this.parentNode;e&&e.removeChild(this)}function F(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function V(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}var $=n(1141),U=n(1242);function Z(e,t,n){var r=Object(U.a)(e),o=r.CustomEvent;"function"==typeof o?o=new o(t,n):(o=r.document.createEvent("Event"),n?(o.initEvent(t,n.bubbles,n.cancelable),o.detail=n.detail):o.initEvent(t,!1,!1)),e.dispatchEvent(o)}function W(e,t){return function(){return Z(this,e,t)}}function K(e,t){return function(){return Z(this,e,t.apply(this,arguments))}}var G=[null];function q(e,t){this._groups=e,this._parents=t}function Y(){return new q([[document.documentElement]],G)}q.prototype=Y.prototype={constructor:q,select:function(e){"function"!=typeof e&&(e=Object(r.a)(e));for(var t=this._groups,n=t.length,o=new Array(n),i=0;i=C&&(C=_+1);!(w=b[C])&&++C=0;)(r=o[i])&&(a&&4^r.compareDocumentPosition(a)&&a.parentNode.insertBefore(r,a),a=r);return this},sort:function(e){function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}e||(e=c);for(var n=this._groups,r=n.length,o=new Array(r),i=0;i1?this.each((null==t?b:"function"==typeof t?w:x)(e,t)):this.node()[e]},classed:function(e,t){var n=_(e+"");if(arguments.length<2){for(var r=C(this.node()),o=-1,i=n.length;++o1&&void 0!==arguments[1]?arguments[1]:{},r=[];return i.a.Children.forEach(t,(function(t){(null!=t||n.keepEmpty)&&(Array.isArray(t)?r=r.concat(e(t)):Object(a.isFragment)(t)&&t.props?r=r.concat(e(t.props.children,n)):r.push(t))})),r}(n)).map((function(n,i){var a=(null==n?void 0:n.key)||"".concat("rc-observer-key","-").concat(i);return o.createElement(D,r({},e,{key:a,ref:0===i?t:void 0}),n)}))}var R=o.forwardRef(I);R.Collection=function(e){var t=e.children,n=e.onBatchResize,r=o.useRef(0),i=o.useRef([]),a=o.useContext(z),l=o.useCallback((function(e,t,o){r.current+=1;var l=r.current;i.current.push({size:e,element:t,data:o}),Promise.resolve().then((function(){l===r.current&&(null==n||n(i.current),i.current=[])})),null==a||a(e,t,o)}),[n,a]);return o.createElement(z.Provider,{value:l},t)};t.a=R},function(e,t,n){"use strict";var r=function(){this.__data__=[],this.size=0},o=n(896);var i=function(e,t){for(var n=e.length;n--;)if(Object(o.a)(e[n][0],t))return n;return-1},a=Array.prototype.splice;var l=function(e){var t=this.__data__,n=i(t,e);return!(n<0)&&(n==t.length-1?t.pop():a.call(t,n,1),--this.size,!0)};var u=function(e){var t=this.__data__,n=i(t,e);return n<0?void 0:t[n][1]};var s=function(e){return i(this.__data__,e)>-1};var c=function(e,t){var n=this.__data__,r=i(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};function f(e){var t=-1,n=null==e?0:e.length;for(this.clear();++tc))return!1;var d=u.get(e),p=u.get(t);if(d&&p)return d==t&&p==e;var h=-1,v=!0,g=2&n?new o.a:void 0;for(u.set(e,t),u.set(t,e);++h0?e.charCodeAt(i-1):null,p=p&&y(a,l)}else{for(i=0;ir&&" "!==e[d+1],d=i);else if(!g(a))return 5;l=i>0?e.charCodeAt(i-1):null,p=p&&y(a,l)}c=c||f&&i-d-1>r&&" "!==e[d+1]}return s||c?n>9&&m(e)?5:c?4:3:p&&!o(e)?1:2}function x(e,t,n,r){e.dump=function(){if(0===t.length)return"''";if(!e.noCompatMode&&-1!==c.indexOf(t))return"'"+t+"'";var i=e.indent*Math.max(1,n),a=-1===e.lineWidth?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-i),l=r||e.flowLevel>-1&&n>=e.flowLevel;switch(b(t,l,e.indent,a,(function(t){return function(e,t){var n,r;for(n=0,r=e.implicitTypes.length;n"+w(t,e.indent)+_(p(function(e,t){for(var n,r,o,i=/(\n+)([^\n]*)/g,a=(o=-1!==(o=e.indexOf("\n"))?o:e.length,i.lastIndex=o,C(e.slice(0,o),t)),l="\n"===e[0]||" "===e[0];r=i.exec(e);){var u=r[1],s=r[2];n=" "===s[0],a+=u+(l||n||""===s?"":"\n")+C(s,t),l=n}return a}(t,a),i));case 5:return'"'+function(e){for(var t,n,r,o="",i=0;i=55296&&t<=56319&&(n=e.charCodeAt(i+1))>=56320&&n<=57343?(o+=f(1024*(t-55296)+n-56320+65536),i++):(r=s[t],o+=!r&&g(t)?e[i]:r||f(t));return o}(t)+'"';default:throw new o("impossible error: invalid scalar style")}}()}function w(e,t){var n=m(e)?String(t):"",r="\n"===e[e.length-1];return n+(!r||"\n"!==e[e.length-2]&&"\n"!==e?r?"":"-":"+")+"\n"}function _(e){return"\n"===e[e.length-1]?e.slice(0,-1):e}function C(e,t){if(""===e||" "===e[0])return e;for(var n,r,o=/ [^ ]/g,i=0,a=0,l=0,u="";n=o.exec(e);)(l=n.index)-i>t&&(r=a>i?a:l,u+="\n"+e.slice(i,r),i=r+1),a=l;return u+="\n",e.length-i>t&&a>i?u+=e.slice(i,a)+"\n"+e.slice(a+1):u+=e.slice(i),u.slice(1)}function O(e,t,n){var r,i,a,s,c,f;for(a=0,s=(i=n?e.explicitTypes:e.implicitTypes).length;a tag resolver accepts not "'+f+'" style');r=c.represent[f](t,f)}e.dump=r}return!0}return!1}function E(e,t,n,r,i,a){e.tag=null,e.dump=n,O(e,n,!1)||O(e,n,!0);var u=l.call(e.dump);r&&(r=e.flowLevel<0||e.flowLevel>t);var s,c,f="[object Object]"===u||"[object Array]"===u;if(f&&(c=-1!==(s=e.duplicates.indexOf(n))),(null!==e.tag&&"?"!==e.tag||c||2!==e.indent&&t>0)&&(i=!1),c&&e.usedDuplicates[s])e.dump="*ref_"+s;else{if(f&&c&&!e.usedDuplicates[s]&&(e.usedDuplicates[s]=!0),"[object Object]"===u)r&&0!==Object.keys(e.dump).length?(function(e,t,n,r){var i,a,l,u,s,c,f="",d=e.tag,p=Object.keys(n);if(!0===e.sortKeys)p.sort();else if("function"==typeof e.sortKeys)p.sort(e.sortKeys);else if(e.sortKeys)throw new o("sortKeys must be a boolean or a function");for(i=0,a=p.length;i1024)&&(e.dump&&10===e.dump.charCodeAt(0)?c+="?":c+="? "),c+=e.dump,s&&(c+=h(e,t)),E(e,t+1,u,!0,s)&&(e.dump&&10===e.dump.charCodeAt(0)?c+=":":c+=": ",f+=c+=e.dump));e.tag=d,e.dump=f||"{}"}(e,t,e.dump,i),c&&(e.dump="&ref_"+s+e.dump)):(function(e,t,n){var r,o,i,a,l,u="",s=e.tag,c=Object.keys(n);for(r=0,o=c.length;r1024&&(l+="? "),l+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),E(e,t,a,!1,!1)&&(u+=l+=e.dump));e.tag=s,e.dump="{"+u+"}"}(e,t,e.dump),c&&(e.dump="&ref_"+s+" "+e.dump));else if("[object Array]"===u){var d=e.noArrayIndent&&t>0?t-1:t;r&&0!==e.dump.length?(function(e,t,n,r){var o,i,a="",l=e.tag;for(o=0,i=n.length;o "+e.dump)}return!0}function M(e,t){var n,r,o=[],i=[];for(function e(t,n,r){var o,i,a;if(null!==t&&"object"==typeof t)if(-1!==(i=n.indexOf(t)))-1===r.indexOf(i)&&r.push(i);else if(n.push(t),Array.isArray(t))for(i=0,a=t.length;i>10),56320+(e-65536&1023))}for(var _=new Array(256),C=new Array(256),O=0;O<256;O++)_[O]=x(O)?1:0,C[O]=x(O);function E(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||l,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.documents=[]}function M(e,t){return new o(t,new i(e.filename,e.input,e.position,e.line,e.position-e.lineStart))}function S(e,t){throw M(e,t)}function A(e,t){e.onWarning&&e.onWarning.call(null,M(e,t))}var k={YAML:function(e,t,n){var r,o,i;null!==e.version&&S(e,"duplication of %YAML directive"),1!==n.length&&S(e,"YAML directive accepts exactly one argument"),null===(r=/^([0-9]+)\.([0-9]+)$/.exec(n[0]))&&S(e,"ill-formed argument of the YAML directive"),o=parseInt(r[1],10),i=parseInt(r[2],10),1!==o&&S(e,"unacceptable YAML version of the document"),e.version=n[0],e.checkLineBreaks=i<2,1!==i&&2!==i&&A(e,"unsupported YAML version of the document")},TAG:function(e,t,n){var r,o;2!==n.length&&S(e,"TAG directive accepts exactly two arguments"),r=n[0],o=n[1],d.test(r)||S(e,"ill-formed tag handle (first argument) of the TAG directive"),u.call(e.tagMap,r)&&S(e,'there is a previously declared suffix for "'+r+'" tag handle'),p.test(o)||S(e,"ill-formed tag prefix (second argument) of the TAG directive"),e.tagMap[r]=o}};function j(e,t,n,r){var o,i,a,l;if(t1&&(e.result+=r.repeat("\n",t-1))}function I(e,t){var n,r,o=e.tag,i=e.anchor,a=[],l=!1;for(null!==e.anchor&&(e.anchorMap[e.anchor]=a),r=e.input.charCodeAt(e.position);0!==r&&45===r&&y(e.input.charCodeAt(e.position+1));)if(l=!0,e.position++,z(e,!0,-1)&&e.lineIndent<=t)a.push(null),r=e.input.charCodeAt(e.position);else if(n=e.line,B(e,t,3,!1,!0),a.push(e.result),z(e,!0,-1),r=e.input.charCodeAt(e.position),(e.line===n||e.lineIndent>t)&&0!==r)S(e,"bad indentation of a sequence entry");else if(e.lineIndentt?x=1:e.lineIndent===t?x=0:e.lineIndentt?x=1:e.lineIndent===t?x=0:e.lineIndentt)&&(B(e,t,4,!0,o)&&(v?p=e.result:h=e.result),v||(P(e,c,f,d,p,h,i,a),d=p=h=null),z(e,!0,-1),l=e.input.charCodeAt(e.position)),e.lineIndent>t&&0!==l)S(e,"bad indentation of a mapping entry");else if(e.lineIndent=0))break;0===i?S(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):c?S(e,"repeat of an indentation width identifier"):(f=t+i-1,c=!0)}if(g(a)){do{a=e.input.charCodeAt(++e.position)}while(g(a));if(35===a)do{a=e.input.charCodeAt(++e.position)}while(!v(a)&&0!==a)}for(;0!==a;){for(L(e),e.lineIndent=0,a=e.input.charCodeAt(e.position);(!c||e.lineIndentf&&(f=e.lineIndent),v(a))d++;else{if(e.lineIndent0){for(o=a,i=0;o>0;o--)(a=b(l=e.input.charCodeAt(++e.position)))>=0?i=(i<<4)+a:S(e,"expected hexadecimal character");e.result+=w(i),e.position++}else S(e,"unknown escape sequence");n=r=e.position}else v(l)?(j(e,n,r,!0),D(e,z(e,!1,t)),n=r=e.position):e.position===e.lineStart&&N(e)?S(e,"unexpected end of the document within a double quoted scalar"):(e.position++,r=e.position)}S(e,"unexpected end of the stream within a double quoted scalar")}(e,p)?E=!0:function(e){var t,n,r;if(42!==(r=e.input.charCodeAt(e.position)))return!1;for(r=e.input.charCodeAt(++e.position),t=e.position;0!==r&&!y(r)&&!m(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&S(e,"name of an alias node must contain at least one character"),n=e.input.slice(t,e.position),e.anchorMap.hasOwnProperty(n)||S(e,'unidentified alias "'+n+'"'),e.result=e.anchorMap[n],z(e,!0,-1),!0}(e)?(E=!0,null===e.tag&&null===e.anchor||S(e,"alias node should not have any properties")):function(e,t,n){var r,o,i,a,l,u,s,c,f=e.kind,d=e.result;if(y(c=e.input.charCodeAt(e.position))||m(c)||35===c||38===c||42===c||33===c||124===c||62===c||39===c||34===c||37===c||64===c||96===c)return!1;if((63===c||45===c)&&(y(r=e.input.charCodeAt(e.position+1))||n&&m(r)))return!1;for(e.kind="scalar",e.result="",o=i=e.position,a=!1;0!==c;){if(58===c){if(y(r=e.input.charCodeAt(e.position+1))||n&&m(r))break}else if(35===c){if(y(e.input.charCodeAt(e.position-1)))break}else{if(e.position===e.lineStart&&N(e)||n&&m(c))break;if(v(c)){if(l=e.line,u=e.lineStart,s=e.lineIndent,z(e,!1,-1),e.lineIndent>=t){a=!0,c=e.input.charCodeAt(e.position);continue}e.position=i,e.line=l,e.lineStart=u,e.lineIndent=s;break}}a&&(j(e,o,i,!1),D(e,e.line-l),o=i=e.position,a=!1),g(c)||(i=e.position+1),c=e.input.charCodeAt(++e.position)}return j(e,o,i,!1),!!e.result||(e.kind=f,e.result=d,!1)}(e,p,1===n)&&(E=!0,null===e.tag&&(e.tag="?")),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):0===x&&(E=s&&I(e,h))),null!==e.tag&&"!"!==e.tag)if("?"===e.tag){for(null!==e.result&&"scalar"!==e.kind&&S(e,'unacceptable node kind for ! tag; it should be "scalar", not "'+e.kind+'"'),c=0,f=e.implicitTypes.length;c tag; it should be "'+d.kind+'", not "'+e.kind+'"'),d.resolve(e.result)?(e.result=d.construct(e.result),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):S(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")):S(e,"unknown tag !<"+e.tag+">");return null!==e.listener&&e.listener("close",e),null!==e.tag||null!==e.anchor||E}function F(e){var t,n,r,o,i=e.position,a=!1;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap={},e.anchorMap={};0!==(o=e.input.charCodeAt(e.position))&&(z(e,!0,-1),o=e.input.charCodeAt(e.position),!(e.lineIndent>0||37!==o));){for(a=!0,o=e.input.charCodeAt(++e.position),t=e.position;0!==o&&!y(o);)o=e.input.charCodeAt(++e.position);for(r=[],(n=e.input.slice(t,e.position)).length<1&&S(e,"directive name must not be less than one character in length");0!==o;){for(;g(o);)o=e.input.charCodeAt(++e.position);if(35===o){do{o=e.input.charCodeAt(++e.position)}while(0!==o&&!v(o));break}if(v(o))break;for(t=e.position;0!==o&&!y(o);)o=e.input.charCodeAt(++e.position);r.push(e.input.slice(t,e.position))}0!==o&&L(e),u.call(k,n)?k[n](e,n,r):A(e,'unknown document directive "'+n+'"')}z(e,!0,-1),0===e.lineIndent&&45===e.input.charCodeAt(e.position)&&45===e.input.charCodeAt(e.position+1)&&45===e.input.charCodeAt(e.position+2)?(e.position+=3,z(e,!0,-1)):a&&S(e,"directives end mark is expected"),B(e,e.lineIndent-1,4,!1,!0),z(e,!0,-1),e.checkLineBreaks&&c.test(e.input.slice(i,e.position))&&A(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&N(e)?46===e.input.charCodeAt(e.position)&&(e.position+=3,z(e,!0,-1)):e.position0&&-1==="\0\r\n…\u2028\u2029".indexOf(this.buffer.charAt(o-1));)if(o-=1,this.position-o>t/2-1){n=" ... ",o+=5;break}for(i="",a=this.position;at/2-1){i=" ... ",a-=5;break}return l=this.buffer.slice(o,a),r.repeat(" ",e)+n+l+i+"\n"+r.repeat(" ",e+this.position-o+n.length)+"^"},o.prototype.toString=function(e){var t,n="";return this.name&&(n+='in "'+this.name+'" '),n+="at line "+(this.line+1)+", column "+(this.column+1),e||(t=this.getSnippet())&&(n+=":\n"+t),n},t.exports=o},{"./common":2}],7:[function(e,t,n){"use strict";var r=e("./common"),o=e("./exception"),i=e("./type");function a(e,t,n){var r=[];return e.include.forEach((function(e){n=a(e,t,n)})),e[t].forEach((function(e){n.forEach((function(t,n){t.tag===e.tag&&t.kind===e.kind&&r.push(n)})),n.push(e)})),n.filter((function(e,t){return-1===r.indexOf(t)}))}function l(e){this.include=e.include||[],this.implicit=e.implicit||[],this.explicit=e.explicit||[],this.implicit.forEach((function(e){if(e.loadKind&&"scalar"!==e.loadKind)throw new o("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")})),this.compiledImplicit=a(this,"implicit",[]),this.compiledExplicit=a(this,"explicit",[]),this.compiledTypeMap=function(){var e,t,n={scalar:{},sequence:{},mapping:{},fallback:{}};function r(e){n[e.kind][e.tag]=n.fallback[e.tag]=e}for(e=0,t=arguments.length;e64)){if(t<0)return!1;r+=6}return r%8==0},construct:function(e){var t,n,o=e.replace(/[\r\n=]/g,""),a=o.length,l=i,u=0,s=[];for(t=0;t>16&255),s.push(u>>8&255),s.push(255&u)),u=u<<6|l.indexOf(o.charAt(t));return 0==(n=a%4*6)?(s.push(u>>16&255),s.push(u>>8&255),s.push(255&u)):18===n?(s.push(u>>10&255),s.push(u>>2&255)):12===n&&s.push(u>>4&255),r?r.from?r.from(s):new r(s):s},predicate:function(e){return r&&r.isBuffer(e)},represent:function(e){var t,n,r="",o=0,a=e.length,l=i;for(t=0;t>18&63],r+=l[o>>12&63],r+=l[o>>6&63],r+=l[63&o]),o=(o<<8)+e[t];return 0==(n=a%3)?(r+=l[o>>18&63],r+=l[o>>12&63],r+=l[o>>6&63],r+=l[63&o]):2===n?(r+=l[o>>10&63],r+=l[o>>4&63],r+=l[o<<2&63],r+=l[64]):1===n&&(r+=l[o>>2&63],r+=l[o<<4&63],r+=l[64],r+=l[64]),r}})},{"../type":13}],15:[function(e,t,n){"use strict";var r=e("../type");t.exports=new r("tag:yaml.org,2002:bool",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t=e.length;return 4===t&&("true"===e||"True"===e||"TRUE"===e)||5===t&&("false"===e||"False"===e||"FALSE"===e)},construct:function(e){return"true"===e||"True"===e||"TRUE"===e},predicate:function(e){return"[object Boolean]"===Object.prototype.toString.call(e)},represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"})},{"../type":13}],16:[function(e,t,n){"use strict";var r=e("../common"),o=e("../type"),i=new RegExp("^(?:[-+]?(?:0|[1-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),a=/^[-+]?[0-9]+e/;t.exports=new o("tag:yaml.org,2002:float",{kind:"scalar",resolve:function(e){return null!==e&&!(!i.test(e)||"_"===e[e.length-1])},construct:function(e){var t,n,r,o;return n="-"===(t=e.replace(/_/g,"").toLowerCase())[0]?-1:1,o=[],"+-".indexOf(t[0])>=0&&(t=t.slice(1)),".inf"===t?1===n?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:".nan"===t?NaN:t.indexOf(":")>=0?(t.split(":").forEach((function(e){o.unshift(parseFloat(e,10))})),t=0,r=1,o.forEach((function(e){t+=e*r,r*=60})),n*t):n*parseFloat(t,10)},predicate:function(e){return"[object Number]"===Object.prototype.toString.call(e)&&(e%1!=0||r.isNegativeZero(e))},represent:function(e,t){var n;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(r.isNegativeZero(e))return"-0.0";return n=e.toString(10),a.test(n)?n.replace("e",".e"):n},defaultStyle:"lowercase"})},{"../common":2,"../type":13}],17:[function(e,t,n){"use strict";var r=e("../common"),o=e("../type");function i(e){return 48<=e&&e<=55}function a(e){return 48<=e&&e<=57}t.exports=new o("tag:yaml.org,2002:int",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t,n,r=e.length,o=0,l=!1;if(!r)return!1;if("-"!==(t=e[o])&&"+"!==t||(t=e[++o]),"0"===t){if(o+1===r)return!0;if("b"===(t=e[++o])){for(o++;o=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0"+e.toString(8):"-0"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})},{"../common":2,"../type":13}],18:[function(e,t,n){"use strict";var r;try{r=e("esprima")}catch(e){"undefined"!=typeof window&&(r=window.esprima)}var o=e("../../type");t.exports=new o("tag:yaml.org,2002:js/function",{kind:"scalar",resolve:function(e){if(null===e)return!1;try{var t="("+e+")",n=r.parse(t,{range:!0});return"Program"===n.type&&1===n.body.length&&"ExpressionStatement"===n.body[0].type&&("ArrowFunctionExpression"===n.body[0].expression.type||"FunctionExpression"===n.body[0].expression.type)}catch(e){return!1}},construct:function(e){var t,n="("+e+")",o=r.parse(n,{range:!0}),i=[];if("Program"!==o.type||1!==o.body.length||"ExpressionStatement"!==o.body[0].type||"ArrowFunctionExpression"!==o.body[0].expression.type&&"FunctionExpression"!==o.body[0].expression.type)throw new Error("Failed to resolve function");return o.body[0].expression.params.forEach((function(e){i.push(e.name)})),t=o.body[0].expression.body.range,"BlockStatement"===o.body[0].expression.body.type?new Function(i,n.slice(t[0]+1,t[1]-1)):new Function(i,"return "+n.slice(t[0],t[1]))},predicate:function(e){return"[object Function]"===Object.prototype.toString.call(e)},represent:function(e){return e.toString()}})},{"../../type":13}],19:[function(e,t,n){"use strict";var r=e("../../type");t.exports=new r("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:function(e){if(null===e)return!1;if(0===e.length)return!1;var t=e,n=/\/([gim]*)$/.exec(e),r="";if("/"===t[0]){if(n&&(r=n[1]),r.length>3)return!1;if("/"!==t[t.length-r.length-1])return!1}return!0},construct:function(e){var t=e,n=/\/([gim]*)$/.exec(e),r="";return"/"===t[0]&&(n&&(r=n[1]),t=t.slice(1,t.length-r.length-1)),new RegExp(t,r)},predicate:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},represent:function(e){var t="/"+e.source+"/";return e.global&&(t+="g"),e.multiline&&(t+="m"),e.ignoreCase&&(t+="i"),t}})},{"../../type":13}],20:[function(e,t,n){"use strict";var r=e("../../type");t.exports=new r("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:function(){return!0},construct:function(){},predicate:function(e){return void 0===e},represent:function(){return""}})},{"../../type":13}],21:[function(e,t,n){"use strict";var r=e("../type");t.exports=new r("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return null!==e?e:{}}})},{"../type":13}],22:[function(e,t,n){"use strict";var r=e("../type");t.exports=new r("tag:yaml.org,2002:merge",{kind:"scalar",resolve:function(e){return"<<"===e||null===e}})},{"../type":13}],23:[function(e,t,n){"use strict";var r=e("../type");t.exports=new r("tag:yaml.org,2002:null",{kind:"scalar",resolve:function(e){if(null===e)return!0;var t=e.length;return 1===t&&"~"===e||4===t&&("null"===e||"Null"===e||"NULL"===e)},construct:function(){return null},predicate:function(e){return null===e},represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"}},defaultStyle:"lowercase"})},{"../type":13}],24:[function(e,t,n){"use strict";var r=e("../type"),o=Object.prototype.hasOwnProperty,i=Object.prototype.toString;t.exports=new r("tag:yaml.org,2002:omap",{kind:"sequence",resolve:function(e){if(null===e)return!0;var t,n,r,a,l,u=[],s=e;for(t=0,n=s.length;t=0&&o===+o?"".concat(o,"px"):o),";");var r,o,i}),"")};t.getStyleString=f;t.getStringSize=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null==e||(0,r.isSsr)())return{width:0,height:0};var n="".concat(e),o=f(t),a="".concat(n,"-").concat(o);if(u.widthCache[a])return u.widthCache[a];try{var l=document.getElementById("recharts_measurement_span");l||((l=document.createElement("span")).setAttribute("id","recharts_measurement_span"),document.body.appendChild(l));var c=i({},s,{},t);Object.keys(c).map((function(e){return l.style[e]=c[e],e})),l.textContent=n;var d=l.getBoundingClientRect(),p={width:d.width,height:d.height};return u.widthCache[a]=p,++u.cacheCount>2e3&&(u.cacheCount=0,u.widthCache={}),p}catch(e){return{width:0,height:0}}};t.getOffset=function(e){var t=e.ownerDocument.documentElement,n={top:0,left:0};return void 0!==e.getBoundingClientRect&&(n=e.getBoundingClientRect()),{top:n.top+window.pageYOffset-t.clientTop,left:n.left+window.pageXOffset-t.clientLeft}};t.calculateChartCoordinate=function(e,t){return{chartX:Math.round(e.pageX-t.left),chartY:Math.round(e.pageY-t.top)}}},function(e,t,n){"use strict";t.a=function(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e){if(e&&e.__esModule)return e;var t=s();if(t&&t.has(e))return t.get(e);var n={};if(null!=e){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}}n.default=e,t&&t.set(e,n);return n}(n(0)),o=u(n(1)),i=u(n(3)),a=u(n(990)),l=n(809);function u(e){return e&&e.__esModule?e:{default:e}}function s(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d(e){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function p(){return(p=Object.assign||function(e){for(var t=1;t=0?1:-1,u=n>=0?1:-1,s=r>=0&&n>=0||r<0&&n<0?1:0;if(a>0&&o instanceof Array){for(var c=[],f=0;f<4;f++)c[f]=o[f]>a?a:o[f];i="M".concat(e,",").concat(t+l*c[0]),c[0]>0&&(i+="A ".concat(c[0],",").concat(c[0],",0,0,").concat(s,",").concat(e+u*c[0],",").concat(t)),i+="L ".concat(e+n-u*c[1],",").concat(t),c[1]>0&&(i+="A ".concat(c[1],",").concat(c[1],",0,0,").concat(s,",\n ").concat(e+n,",").concat(t+l*c[1])),i+="L ".concat(e+n,",").concat(t+r-l*c[2]),c[2]>0&&(i+="A ".concat(c[2],",").concat(c[2],",0,0,").concat(s,",\n ").concat(e+n-u*c[2],",").concat(t+r)),i+="L ".concat(e+u*c[3],",").concat(t+r),c[3]>0&&(i+="A ".concat(c[3],",").concat(c[3],",0,0,").concat(s,",\n ").concat(e,",").concat(t+r-l*c[3])),i+="Z"}else if(a>0&&o===+o&&o>0){var d=Math.min(a,o);i="M ".concat(e,",").concat(t+l*d,"\n A ").concat(d,",").concat(d,",0,0,").concat(s,",").concat(e+u*d,",").concat(t,"\n L ").concat(e+n-u*d,",").concat(t,"\n A ").concat(d,",").concat(d,",0,0,").concat(s,",").concat(e+n,",").concat(t+l*d,"\n L ").concat(e+n,",").concat(t+r-l*d,"\n A ").concat(d,",").concat(d,",0,0,").concat(s,",").concat(e+n-u*d,",").concat(t+r,"\n L ").concat(e+u*d,",").concat(t+r,"\n A ").concat(d,",").concat(d,",0,0,").concat(s,",").concat(e,",").concat(t+r-l*d," Z")}else i="M ".concat(e,",").concat(t," h ").concat(n," v ").concat(r," h ").concat(-n," Z");return i},x=function(e){function t(){var e,n;h(this,t);for(var r=arguments.length,o=new Array(r),i=0;i0,from:{width:u,height:s,x:n,y:o},to:{width:u,height:s,x:n,y:o},duration:g,animationEasing:v,isActive:x},(function(t){var n=t.width,o=t.height,i=t.x,u=t.y;return r.default.createElement(a.default,{canBegin:d>0,from:"0px ".concat(-1===d?1:d,"px"),to:"".concat(d,"px 0px"),attributeName:"strokeDasharray",begin:y,duration:g,isActive:m,easing:v},r.default.createElement("path",p({},(0,l.getPresentationAttributes)(e.props),(0,l.filterEventAttributes)(e.props),{className:w,d:b(i,u,n,o,c),ref:function(t){e.node=t}})))})):r.default.createElement("path",p({},(0,l.getPresentationAttributes)(this.props),(0,l.filterEventAttributes)(this.props),{className:w,d:b(n,o,u,s,c)}))}}])&&v(n.prototype,o),u&&v(n,u),t}(r.PureComponent);x.displayName="Rectangle",x.propTypes=function(e){for(var t=1;t1?arguments[1]:void 0,n),u=a>2?arguments[2]:void 0,s=void 0===u?n:o(u,n);s>l;)t[l++]=e;return t}},function(e,t,n){"use strict";n(2183),n(2205);if(!Object.setPrototypeOf&&!{}.__proto__){var r=Object.getPrototypeOf;Object.getPrototypeOf=function(e){return e.__proto__?e.__proto__:r.call(Object,e)}}},function(e,t,n){var r=n(1162),o=n(1515),i=n(1281),a=Object.defineProperty;t.f=n(1035)?Object.defineProperty:function(e,t,n){if(r(e),t=i(t,!0),r(n),o)try{return a(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){var r=n(1034);e.exports=function(e,t){if(!r(e))return e;var n,o;if(t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;if("function"==typeof(n=e.valueOf)&&!r(o=n.call(e)))return o;if(!t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},function(e,t){e.exports=Math.sign||function(e){return 0==(e=+e)||e!=e?e:e<0?-1:1}},function(e,t){var n=Math.expm1;e.exports=!n||n(10)>22025.465794806718||n(10)<22025.465794806718||-2e-17!=n(-2e-17)?function(e){return 0==(e=+e)?e:e>-1e-6&&e<1e-6?e+e*e/2:Math.exp(e)-1}:n},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){var r=n(2210),o=n(1286);e.exports=function(e){return r(o(e))}},function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t,n){var r=n(820),o=n(1286),i=n(968),a=n(1289),l="["+a+"]",u=RegExp("^"+l+l+"*"),s=RegExp(l+l+"*$"),c=function(e,t,n){var o={},l=i((function(){return!!a[e]()||"​…"!="​…"[e]()})),u=o[e]=l?t(f):a[e];n&&(o[n]=u),r(r.P+r.F*l,"String",o)},f=c.trim=function(e,t){return e=String(o(e)),1&t&&(e=e.replace(u,"")),2&t&&(e=e.replace(s,"")),e};e.exports=c},function(e,t){e.exports="\t\n\v\f\r   ᠎              \u2028\u2029\ufeff"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=p(n(194)),o=function(e){if(e&&e.__esModule)return e;var t=d();if(t&&t.has(e))return t.get(e);var n={};if(null!=e){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}}n.default=e,t&&t.set(e,n);return n}(n(0)),i=p(n(1)),a=p(n(868)),l=n(809),u=p(n(946)),s=p(n(1528)),c=p(n(1031)),f=n(926);function d(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return d=function(){return e},e}function p(e){return e&&e.__esModule?e:{default:e}}function h(e){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function v(){return(v=Object.assign||function(e){for(var t=1;t1e-5?"outer"===t?"start":"end":n<-1e-5?"outer"===t?"end":"start":"middle"}},{key:"renderAxisLine",value:function(){var e=this.props,t=e.cx,n=e.cy,r=e.radius,i=e.axisLine,a=e.axisLineType,c=y({},(0,l.getPresentationAttributes)(this.props),{fill:"none"},(0,l.getPresentationAttributes)(i));if("circle"===a)return o.default.createElement(u.default,v({className:"recharts-polar-angle-axis-line"},c,{cx:t,cy:n,r:r}));var d=this.props.ticks.map((function(e){return(0,f.polarToCartesian)(t,n,r,e.coordinate)}));return o.default.createElement(s.default,v({className:"recharts-polar-angle-axis-line"},c,{points:d}))}},{key:"renderTicks",value:function(){var e=this,t=this.props,n=t.ticks,r=t.tick,i=t.tickLine,u=t.tickFormatter,s=t.stroke,c=(0,l.getPresentationAttributes)(this.props),f=(0,l.getPresentationAttributes)(r),d=y({},c,{fill:"none"},(0,l.getPresentationAttributes)(i)),p=n.map((function(t,n){var p=e.getTickLineCoord(t),h=y({textAnchor:e.getTickTextAnchor(t)},c,{stroke:"none",fill:s},f,{index:n,payload:t,x:p.x2,y:p.y2});return o.default.createElement(a.default,v({className:"recharts-polar-angle-axis-tick",key:"tick-".concat(n)},(0,l.filterEventsOfChild)(e.props,t,n)),i&&o.default.createElement("line",v({className:"recharts-polar-angle-axis-tick-line"},d,p)),r&&e.constructor.renderTickItem(r,h,u?u(t.value):t.value))}));return o.default.createElement(a.default,{className:"recharts-polar-angle-axis-ticks"},p)}},{key:"render",value:function(){var e=this.props,t=e.ticks,n=e.radius,r=e.axisLine;return n<=0||!t||!t.length?null:o.default.createElement(a.default,{className:"recharts-polar-angle-axis"},r&&this.renderAxisLine(),this.renderTicks())}}])&&x(n.prototype,i),d&&x(n,d),t}(o.PureComponent);E.displayName="PolarAngleAxis",E.axisType="angleAxis",E.propTypes=y({},l.PRESENTATION_ATTRIBUTES,{},l.EVENT_ATTRIBUTES,{type:i.default.oneOf(["number","category"]),angleAxisId:i.default.oneOfType([i.default.string,i.default.number]),dataKey:i.default.oneOfType([i.default.number,i.default.string,i.default.func]),cx:i.default.number,cy:i.default.number,radius:i.default.oneOfType([i.default.number,i.default.string]),hide:i.default.bool,scale:i.default.oneOfType([i.default.oneOf(l.SCALE_TYPES),i.default.func]),axisLine:i.default.oneOfType([i.default.bool,i.default.object]),axisLineType:i.default.oneOf(["polygon","circle"]),tickLine:i.default.oneOfType([i.default.bool,i.default.object]),tick:i.default.oneOfType([i.default.bool,i.default.func,i.default.object,i.default.element]),ticks:i.default.arrayOf(i.default.shape({value:i.default.any,coordinate:i.default.number})),stroke:i.default.string,orientation:i.default.oneOf(["inner","outer"]),tickFormatter:i.default.func,allowDuplicatedCategory:i.default.bool}),E.defaultProps={type:"category",angleAxisId:0,scale:"auto",cx:0,cy:0,domain:[0,"auto"],orientation:"outer",axisLine:!0,tickLine:!0,tick:!0,hide:!1,allowDuplicatedCategory:!0};var M=E;t.default=M},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=h(n(194)),o=h(n(1292)),i=h(n(1529)),a=function(e){if(e&&e.__esModule)return e;var t=p();if(t&&t.has(e))return t.get(e);var n={};if(null!=e){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}}n.default=e,t&&t.set(e,n);return n}(n(0)),l=h(n(1)),u=h(n(1031)),s=h(n(997)),c=h(n(868)),f=n(809),d=n(926);function p(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return p=function(){return e},e}function h(e){return e&&e.__esModule?e:{default:e}}function v(e){return(v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function g(){return(g=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function w(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _(e,t){for(var n=0;n=0&&(n=this.attrs[t][1]),n},r.prototype.attrJoin=function(e,t){var n=this.attrIndex(e);n<0?this.attrPush([e,t]):this.attrs[n][1]=this.attrs[n][1]+" "+t},e.exports=r},,,,,,function(e,t,n){var r; +*/!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e=[],t=0;t1&&void 0!==arguments[1]?arguments[1]:"";if((0,o.default)(t),!(n=String(n)))return e(t,4)||e(t,6);if("4"===n)return l.test(t);if("6"===n)return s.test(t);return!1};var r,o=(r=n(797))&&r.__esModule?r:{default:r};var i="(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])",a="(".concat(i,"[.]){3}").concat(i),l=new RegExp("^".concat(a,"$")),u="(?:[0-9a-fA-F]{1,4})",s=new RegExp("^("+"(?:".concat(u,":){7}(?:").concat(u,"|:)|")+"(?:".concat(u,":){6}(?:").concat(a,"|:").concat(u,"|:)|")+"(?:".concat(u,":){5}(?::").concat(a,"|(:").concat(u,"){1,2}|:)|")+"(?:".concat(u,":){4}(?:(:").concat(u,"){0,1}:").concat(a,"|(:").concat(u,"){1,3}|:)|")+"(?:".concat(u,":){3}(?:(:").concat(u,"){0,2}:").concat(a,"|(:").concat(u,"){1,4}|:)|")+"(?:".concat(u,":){2}(?:(:").concat(u,"){0,3}:").concat(a,"|(:").concat(u,"){1,5}|:)|")+"(?:".concat(u,":){1}(?:(:").concat(u,"){0,4}:").concat(a,"|(:").concat(u,"){1,6}|:)|")+"(?::((?::".concat(u,"){0,5}:").concat(a,"|(?::").concat(u,"){1,7}|:))")+")(%[0-9a-zA-Z-.:]{1,})?$");e.exports=t.default,e.exports.default=t.default},,,,,,,,function(e,t,n){"use strict";var r=n(1663),o=Object(r.a)(Object.getPrototypeOf,Object);t.a=o},function(e,t,n){"use strict";var r=n(937),o=n(879);t.a=function(e){return Object(r.a)(e,Object(o.a)(e))}},function(e,t,n){"use strict";var r=n(1119),o=n(840);t.a=function(e,t,n){var i=!0,a=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return Object(o.a)(n)&&(i="leading"in n?!!n.leading:i,a="trailing"in n?!!n.trailing:a),Object(r.a)(e,t,{leading:i,maxWait:t,trailing:a})}},function(e,t,n){"use strict";var r=n(860);t.a=function(){return r.a.Date.now()}},function(e,t,n){"use strict";var r=n(1466);function o(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(o.Cache||r.a),n}o.Cache=r.a,t.a=o},function(e,t,n){"use strict";t.a=function(e,t){return e.has(t)}},function(e,t,n){"use strict";t.a=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}},function(e,t,n){"use strict";t.a=function(e){return void 0===e}},,,,,,function(e,t,n){var r=n(478),o=n(331),i=n(1348),a=n(60);e.exports=function(e,t){return(a(e)?r:o)(e,i(t))}},,,function(e,t,n){"use strict";var r=n(8),o=n(510);r({target:"Number",stat:!0,forced:Number.parseInt!==o},{parseInt:o})},function(e,t,n){"use strict";var r=n(843);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(3329)).default;t.default=o},function(e,t,n){"use strict";e.exports=n(3459)("forEach")},function(e,t,n){"use strict";e.exports=n(3482)()?globalThis:n(3483)},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";var r=n(1240);t.a=function(e){var t=e+="",n=t.indexOf(":");return n>=0&&"xmlns"!==(t=e.slice(0,n))&&(e=e.slice(n+1)),r.a.hasOwnProperty(t)?{space:r.a[t],local:e}:e}},function(e,t,n){"use strict";n.d(t,"b",(function(){return r}));var r="http://www.w3.org/1999/xhtml";t.a={svg:"http://www.w3.org/2000/svg",xhtml:r,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"}},function(e,t,n){"use strict";function r(){}t.a=function(e){return null==e?r:function(){return this.querySelector(e)}}},function(e,t,n){"use strict";t.a=function(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}},function(e,t,n){"use strict";var r=n(835);e.exports={longestPath:function(e){var t={};r.forEach(e.sources(),(function n(o){var i=e.node(o);if(r.has(t,o))return i.rank;t[o]=!0;var a=r.min(r.map(e.outEdges(o),(function(t){return n(t.w)-e.edge(t).minlen})));return a!==Number.POSITIVE_INFINITY&&null!=a||(a=0),i.rank=a}))},slack:function(e,t){return e.node(t.w).rank-e.node(t.v).rank-e.edge(t).minlen}}},function(e,t,n){"use strict";n(4786)},,function(e,t,n){"use strict";var r=n(811),o=n(261),i=r.aTypedArrayConstructor,a=r.getTypedArrayConstructor;e.exports=function(e){return i(o(e,a(e)))}},function(e,t,n){var r=n(473),o=n(76);e.exports=function(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=r(e.prototype),i=e.apply(n,t);return o(i)?i:n}}},function(e,t){e.exports=function(e,t){for(var n=-1,r=e.length,o=0,i=[];++n1e-6)if(Math.abs(f*u-s*c)>1e-6&&i){var p=n-a,h=o-l,v=u*u+s*s,g=p*p+h*h,y=Math.sqrt(v),m=Math.sqrt(d),b=i*Math.tan((r-Math.acos((v+d-g)/(2*y*m)))/2),x=b/m,w=b/y;Math.abs(x-1)>1e-6&&(this._+="L"+(e+x*c)+","+(t+x*f)),this._+="A"+i+","+i+",0,0,"+ +(f*p>c*h)+","+(this._x1=e+w*u)+","+(this._y1=t+w*s)}else this._+="L"+(this._x1=e)+","+(this._y1=t);else;},arc:function(e,t,n,a,l,u){e=+e,t=+t,u=!!u;var s=(n=+n)*Math.cos(a),c=n*Math.sin(a),f=e+s,d=t+c,p=1^u,h=u?a-l:l-a;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+f+","+d:(Math.abs(this._x1-f)>1e-6||Math.abs(this._y1-d)>1e-6)&&(this._+="L"+f+","+d),n&&(h<0&&(h=h%o+o),h>i?this._+="A"+n+","+n+",0,1,"+p+","+(e-s)+","+(t-c)+"A"+n+","+n+",0,1,"+p+","+(this._x1=f)+","+(this._y1=d):h>1e-6&&(this._+="A"+n+","+n+",0,"+ +(h>=r)+","+p+","+(this._x1=e+n*Math.cos(l))+","+(this._y1=t+n*Math.sin(l))))},rect:function(e,t,n,r){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}};var u=l,s=function(e){return function(){return e}},c=Math.abs,f=Math.atan2,d=Math.cos,p=Math.max,h=Math.min,v=Math.sin,g=Math.sqrt,y=Math.PI,m=y/2,b=2*y;function x(e){return e>1?0:e<-1?y:Math.acos(e)}function w(e){return e>=1?m:e<=-1?-m:Math.asin(e)}function _(e){return e.innerRadius}function C(e){return e.outerRadius}function O(e){return e.startAngle}function E(e){return e.endAngle}function M(e){return e&&e.padAngle}function S(e,t,n,r,o,i,a,l){var u=n-e,s=r-t,c=a-o,f=l-i,d=f*u-c*s;if(!(d*d<1e-12))return[e+(d=(c*(t-i)-f*(e-o))/d)*u,t+d*s]}function A(e,t,n,r,o,i,a){var l=e-n,u=t-r,s=(a?i:-i)/g(l*l+u*u),c=s*u,f=-s*l,d=e+c,h=t+f,v=n+c,y=r+f,m=(d+v)/2,b=(h+y)/2,x=v-d,w=y-h,_=x*x+w*w,C=o-i,O=d*y-v*h,E=(w<0?-1:1)*g(p(0,C*C*_-O*O)),M=(O*w-x*E)/_,S=(-O*x-w*E)/_,A=(O*w+x*E)/_,k=(-O*x+w*E)/_,j=M-m,T=S-b,P=A-m,L=k-b;return j*j+T*T>P*P+L*L&&(M=A,S=k),{cx:M,cy:S,x01:-c,y01:-f,x11:M*(o/C-1),y11:S*(o/C-1)}}var k=function(){var e=_,t=C,n=s(0),r=null,o=O,i=E,a=M,l=null;function p(){var s,p,_=+e.apply(this,arguments),C=+t.apply(this,arguments),O=o.apply(this,arguments)-m,E=i.apply(this,arguments)-m,M=c(E-O),k=E>O;if(l||(l=s=u()),C<_&&(p=C,C=_,_=p),C>1e-12)if(M>b-1e-12)l.moveTo(C*d(O),C*v(O)),l.arc(0,0,C,O,E,!k),_>1e-12&&(l.moveTo(_*d(E),_*v(E)),l.arc(0,0,_,E,O,k));else{var j,T,P=O,L=E,z=O,N=E,D=M,I=M,R=a.apply(this,arguments)/2,H=R>1e-12&&(r?+r.apply(this,arguments):g(_*_+C*C)),B=h(c(C-_)/2,+n.apply(this,arguments)),F=B,V=B;if(H>1e-12){var $=w(H/_*v(R)),U=w(H/C*v(R));(D-=2*$)>1e-12?(z+=$*=k?1:-1,N-=$):(D=0,z=N=(O+E)/2),(I-=2*U)>1e-12?(P+=U*=k?1:-1,L-=U):(I=0,P=L=(O+E)/2)}var Z=C*d(P),W=C*v(P),K=_*d(N),G=_*v(N);if(B>1e-12){var q,Y=C*d(L),X=C*v(L),J=_*d(z),Q=_*v(z);if(M1e-12?V>1e-12?(j=A(J,Q,Z,W,C,V,k),T=A(Y,X,K,G,C,V,k),l.moveTo(j.cx+j.x01,j.cy+j.y01),V1e-12&&D>1e-12?F>1e-12?(j=A(K,G,Y,X,_,-F,k),T=A(Z,W,J,Q,_,-F,k),l.lineTo(j.cx+j.x01,j.cy+j.y01),F=f;--d)l.point(y[d],m[d]);l.lineEnd(),l.areaEnd()}g&&(y[c]=+e(p,c,s),m[c]=+n(p,c,s),l.point(t?+t(p,c,s):y[c],r?+r(p,c,s):m[c]))}if(h)return l=null,h+""||null}function f(){return z().defined(o).curve(a).context(i)}return c.x=function(n){return arguments.length?(e="function"==typeof n?n:s(+n),t=null,c):e},c.x0=function(t){return arguments.length?(e="function"==typeof t?t:s(+t),c):e},c.x1=function(e){return arguments.length?(t=null==e?null:"function"==typeof e?e:s(+e),c):t},c.y=function(e){return arguments.length?(n="function"==typeof e?e:s(+e),r=null,c):n},c.y0=function(e){return arguments.length?(n="function"==typeof e?e:s(+e),c):n},c.y1=function(e){return arguments.length?(r=null==e?null:"function"==typeof e?e:s(+e),c):r},c.lineX0=c.lineY0=function(){return f().x(e).y(n)},c.lineY1=function(){return f().x(e).y(r)},c.lineX1=function(){return f().x(t).y(n)},c.defined=function(e){return arguments.length?(o="function"==typeof e?e:s(!!e),c):o},c.curve=function(e){return arguments.length?(a=e,null!=i&&(l=a(i)),c):a},c.context=function(e){return arguments.length?(null==e?i=l=null:l=a(i=e),c):i},c},D=function(e,t){return te?1:t>=e?0:NaN},I=function(e){return e},R=function(){var e=I,t=D,n=null,r=s(0),o=s(b),i=s(0);function a(a){var l,u,s,c,f,d=a.length,p=0,h=new Array(d),v=new Array(d),g=+r.apply(this,arguments),y=Math.min(b,Math.max(-b,o.apply(this,arguments)-g)),m=Math.min(Math.abs(y)/d,i.apply(this,arguments)),x=m*(y<0?-1:1);for(l=0;l0&&(p+=f);for(null!=t?h.sort((function(e,n){return t(v[e],v[n])})):null!=n&&h.sort((function(e,t){return n(a[e],a[t])})),l=0,s=p?(y-d*x)/p:0;l0?f*s:0)+x,v[u]={data:a[u],index:l,value:f,startAngle:g,endAngle:c,padAngle:m};return v}return a.value=function(t){return arguments.length?(e="function"==typeof t?t:s(+t),a):e},a.sortValues=function(e){return arguments.length?(t=e,n=null,a):t},a.sort=function(e){return arguments.length?(n=e,t=null,a):n},a.startAngle=function(e){return arguments.length?(r="function"==typeof e?e:s(+e),a):r},a.endAngle=function(e){return arguments.length?(o="function"==typeof e?e:s(+e),a):o},a.padAngle=function(e){return arguments.length?(i="function"==typeof e?e:s(+e),a):i},a},H=F(T);function B(e){this._curve=e}function F(e){function t(t){return new B(e(t))}return t._curve=e,t}function V(e){var t=e.curve;return e.angle=e.x,delete e.x,e.radius=e.y,delete e.y,e.curve=function(e){return arguments.length?t(F(e)):t()._curve},e}B.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(e,t){this._curve.point(t*Math.sin(e),t*-Math.cos(e))}};var $=function(){return V(z().curve(H))},U=function(){var e=N().curve(H),t=e.curve,n=e.lineX0,r=e.lineX1,o=e.lineY0,i=e.lineY1;return e.angle=e.x,delete e.x,e.startAngle=e.x0,delete e.x0,e.endAngle=e.x1,delete e.x1,e.radius=e.y,delete e.y,e.innerRadius=e.y0,delete e.y0,e.outerRadius=e.y1,delete e.y1,e.lineStartAngle=function(){return V(n())},delete e.lineX0,e.lineEndAngle=function(){return V(r())},delete e.lineX1,e.lineInnerRadius=function(){return V(o())},delete e.lineY0,e.lineOuterRadius=function(){return V(i())},delete e.lineY1,e.curve=function(e){return arguments.length?t(F(e)):t()._curve},e},Z=function(e,t){return[(t=+t)*Math.cos(e-=Math.PI/2),t*Math.sin(e)]},W=Array.prototype.slice;function K(e){return e.source}function G(e){return e.target}function q(e){var t=K,n=G,r=P,o=L,i=null;function a(){var a,l=W.call(arguments),s=t.apply(this,l),c=n.apply(this,l);if(i||(i=a=u()),e(i,+r.apply(this,(l[0]=s,l)),+o.apply(this,l),+r.apply(this,(l[0]=c,l)),+o.apply(this,l)),a)return i=null,a+""||null}return a.source=function(e){return arguments.length?(t=e,a):t},a.target=function(e){return arguments.length?(n=e,a):n},a.x=function(e){return arguments.length?(r="function"==typeof e?e:s(+e),a):r},a.y=function(e){return arguments.length?(o="function"==typeof e?e:s(+e),a):o},a.context=function(e){return arguments.length?(i=null==e?null:e,a):i},a}function Y(e,t,n,r,o){e.moveTo(t,n),e.bezierCurveTo(t=(t+r)/2,n,t,o,r,o)}function X(e,t,n,r,o){e.moveTo(t,n),e.bezierCurveTo(t,n=(n+o)/2,r,n,r,o)}function J(e,t,n,r,o){var i=Z(t,n),a=Z(t,n=(n+o)/2),l=Z(r,n),u=Z(r,o);e.moveTo(i[0],i[1]),e.bezierCurveTo(a[0],a[1],l[0],l[1],u[0],u[1])}function Q(){return q(Y)}function ee(){return q(X)}function te(){var e=q(J);return e.angle=e.x,delete e.x,e.radius=e.y,delete e.y,e}var ne={draw:function(e,t){var n=Math.sqrt(t/y);e.moveTo(n,0),e.arc(0,0,n,0,b)}},re={draw:function(e,t){var n=Math.sqrt(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}},oe=Math.sqrt(1/3),ie=2*oe,ae={draw:function(e,t){var n=Math.sqrt(t/ie),r=n*oe;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},le=Math.sin(y/10)/Math.sin(7*y/10),ue=Math.sin(b/10)*le,se=-Math.cos(b/10)*le,ce={draw:function(e,t){var n=Math.sqrt(.8908130915292852*t),r=ue*n,o=se*n;e.moveTo(0,-n),e.lineTo(r,o);for(var i=1;i<5;++i){var a=b*i/5,l=Math.cos(a),u=Math.sin(a);e.lineTo(u*n,-l*n),e.lineTo(l*r-u*o,u*r+l*o)}e.closePath()}},fe={draw:function(e,t){var n=Math.sqrt(t),r=-n/2;e.rect(r,r,n,n)}},de=Math.sqrt(3),pe={draw:function(e,t){var n=-Math.sqrt(t/(3*de));e.moveTo(0,2*n),e.lineTo(-de*n,-n),e.lineTo(de*n,-n),e.closePath()}},he=Math.sqrt(3)/2,ve=1/Math.sqrt(12),ge=3*(ve/2+1),ye={draw:function(e,t){var n=Math.sqrt(t/ge),r=n/2,o=n*ve,i=r,a=n*ve+n,l=-i,u=a;e.moveTo(r,o),e.lineTo(i,a),e.lineTo(l,u),e.lineTo(-.5*r-he*o,he*r+-.5*o),e.lineTo(-.5*i-he*a,he*i+-.5*a),e.lineTo(-.5*l-he*u,he*l+-.5*u),e.lineTo(-.5*r+he*o,-.5*o-he*r),e.lineTo(-.5*i+he*a,-.5*a-he*i),e.lineTo(-.5*l+he*u,-.5*u-he*l),e.closePath()}},me=[ne,re,ae,fe,ce,pe,ye],be=function(){var e=s(ne),t=s(64),n=null;function r(){var r;if(n||(n=r=u()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),r)return n=null,r+""||null}return r.type=function(t){return arguments.length?(e="function"==typeof t?t:s(t),r):e},r.size=function(e){return arguments.length?(t="function"==typeof e?e:s(+e),r):t},r.context=function(e){return arguments.length?(n=null==e?null:e,r):n},r},xe=function(){};function we(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function _e(e){this._context=e}_e.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:we(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:we(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};var Ce=function(e){return new _e(e)};function Oe(e){this._context=e}Oe.prototype={areaStart:xe,areaEnd:xe,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:we(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};var Ee=function(e){return new Oe(e)};function Me(e){this._context=e}Me.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:we(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};var Se=function(e){return new Me(e)};function Ae(e,t){this._basis=new _e(e),this._beta=t}Ae.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,n=e.length-1;if(n>0)for(var r,o=e[0],i=t[0],a=e[n]-o,l=t[n]-i,u=-1;++u<=n;)r=u/n,this._basis.point(this._beta*e[u]+(1-this._beta)*(o+r*a),this._beta*t[u]+(1-this._beta)*(i+r*l));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};var ke=function e(t){function n(e){return 1===t?new _e(e):new Ae(e,t)}return n.beta=function(t){return e(+t)},n}(.85);function je(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function Te(e,t){this._context=e,this._k=(1-t)/6}Te.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:je(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:je(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var Pe=function e(t){function n(e){return new Te(e,t)}return n.tension=function(t){return e(+t)},n}(0);function Le(e,t){this._context=e,this._k=(1-t)/6}Le.prototype={areaStart:xe,areaEnd:xe,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:je(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var ze=function e(t){function n(e){return new Le(e,t)}return n.tension=function(t){return e(+t)},n}(0);function Ne(e,t){this._context=e,this._k=(1-t)/6}Ne.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:je(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var De=function e(t){function n(e){return new Ne(e,t)}return n.tension=function(t){return e(+t)},n}(0);function Ie(e,t,n){var r=e._x1,o=e._y1,i=e._x2,a=e._y2;if(e._l01_a>1e-12){var l=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,u=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*l-e._x0*e._l12_2a+e._x2*e._l01_2a)/u,o=(o*l-e._y0*e._l12_2a+e._y2*e._l01_2a)/u}if(e._l23_a>1e-12){var s=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,c=3*e._l23_a*(e._l23_a+e._l12_a);i=(i*s+e._x1*e._l23_2a-t*e._l12_2a)/c,a=(a*s+e._y1*e._l23_2a-n*e._l12_2a)/c}e._context.bezierCurveTo(r,o,i,a,e._x2,e._y2)}function Re(e,t){this._context=e,this._alpha=t}Re.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:Ie(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var He=function e(t){function n(e){return t?new Re(e,t):new Te(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function Be(e,t){this._context=e,this._alpha=t}Be.prototype={areaStart:xe,areaEnd:xe,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:Ie(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var Fe=function e(t){function n(e){return t?new Be(e,t):new Le(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function Ve(e,t){this._context=e,this._alpha=t}Ve.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Ie(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var $e=function e(t){function n(e){return t?new Ve(e,t):new Ne(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function Ue(e){this._context=e}Ue.prototype={areaStart:xe,areaEnd:xe,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};var Ze=function(e){return new Ue(e)};function We(e){return e<0?-1:1}function Ke(e,t,n){var r=e._x1-e._x0,o=t-e._x1,i=(e._y1-e._y0)/(r||o<0&&-0),a=(n-e._y1)/(o||r<0&&-0),l=(i*o+a*r)/(r+o);return(We(i)+We(a))*Math.min(Math.abs(i),Math.abs(a),.5*Math.abs(l))||0}function Ge(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function qe(e,t,n){var r=e._x0,o=e._y0,i=e._x1,a=e._y1,l=(i-r)/3;e._context.bezierCurveTo(r+l,o+l*t,i-l,a-l*n,i,a)}function Ye(e){this._context=e}function Xe(e){this._context=new Je(e)}function Je(e){this._context=e}function Qe(e){return new Ye(e)}function et(e){return new Xe(e)}function tt(e){this._context=e}function nt(e){var t,n,r=e.length-1,o=new Array(r),i=new Array(r),a=new Array(r);for(o[0]=0,i[0]=2,a[0]=e[0]+2*e[1],t=1;t=0;--t)o[t]=(a[t]-o[t+1])/i[t];for(i[r-1]=(e[r]+o[r-1])/2,t=0;t=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}}this._x=e,this._y=t}};var it=function(e){return new ot(e,.5)};function at(e){return new ot(e,0)}function lt(e){return new ot(e,1)}var ut=function(e,t){if((o=e.length)>1)for(var n,r,o,i=1,a=e[t[0]],l=a.length;i=0;)n[t]=t;return n};function ct(e,t){return e[t]}var ft=function(){var e=s([]),t=st,n=ut,r=ct;function o(o){var i,a,l=e.apply(this,arguments),u=o.length,s=l.length,c=new Array(s);for(i=0;i0){for(var n,r,o,i=0,a=e[0].length;i0)for(var n,r,o,i,a,l,u=0,s=e[t[0]].length;u0?(r[0]=i,r[1]=i+=o):o<0?(r[1]=a,r[0]=a+=o):(r[0]=0,r[1]=o)},ht=function(e,t){if((n=e.length)>0){for(var n,r=0,o=e[t[0]],i=o.length;r0&&(r=(n=e[t[0]]).length)>0){for(var n,r,o,i=0,a=1;ai&&(i=t,r=n);return r}var mt=function(e){var t=e.map(bt);return st(e).sort((function(e,n){return t[e]-t[n]}))};function bt(e){for(var t,n=0,r=-1,o=e.length;++rt?1:e>=t?0:NaN}var f=n(1239);function d(e){return function(){this.removeAttribute(e)}}function p(e){return function(){this.removeAttributeNS(e.space,e.local)}}function h(e,t){return function(){this.setAttribute(e,t)}}function v(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function g(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttribute(e):this.setAttribute(e,n)}}function y(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}var m=n(1437);function b(e){return function(){delete this[e]}}function x(e,t){return function(){this[e]=t}}function w(e,t){return function(){var n=t.apply(this,arguments);null==n?delete this[e]:this[e]=n}}function _(e){return e.trim().split(/^|\s+/)}function C(e){return e.classList||new O(e)}function O(e){this._node=e,this._names=_(e.getAttribute("class")||"")}function E(e,t){for(var n=C(e),r=-1,o=t.length;++r=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function j(){this.textContent=""}function T(e){return function(){this.textContent=e}}function P(e){return function(){var t=e.apply(this,arguments);this.textContent=null==t?"":t}}function L(){this.innerHTML=""}function z(e){return function(){this.innerHTML=e}}function N(e){return function(){var t=e.apply(this,arguments);this.innerHTML=null==t?"":t}}function D(){this.nextSibling&&this.parentNode.appendChild(this)}function I(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}var R=n(1140);function H(){return null}function B(){var e=this.parentNode;e&&e.removeChild(this)}function F(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function V(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}var $=n(1141),U=n(1242);function Z(e,t,n){var r=Object(U.a)(e),o=r.CustomEvent;"function"==typeof o?o=new o(t,n):(o=r.document.createEvent("Event"),n?(o.initEvent(t,n.bubbles,n.cancelable),o.detail=n.detail):o.initEvent(t,!1,!1)),e.dispatchEvent(o)}function W(e,t){return function(){return Z(this,e,t)}}function K(e,t){return function(){return Z(this,e,t.apply(this,arguments))}}var G=[null];function q(e,t){this._groups=e,this._parents=t}function Y(){return new q([[document.documentElement]],G)}q.prototype=Y.prototype={constructor:q,select:function(e){"function"!=typeof e&&(e=Object(r.a)(e));for(var t=this._groups,n=t.length,o=new Array(n),i=0;i=C&&(C=_+1);!(w=b[C])&&++C=0;)(r=o[i])&&(a&&4^r.compareDocumentPosition(a)&&a.parentNode.insertBefore(r,a),a=r);return this},sort:function(e){function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}e||(e=c);for(var n=this._groups,r=n.length,o=new Array(r),i=0;i1?this.each((null==t?b:"function"==typeof t?w:x)(e,t)):this.node()[e]},classed:function(e,t){var n=_(e+"");if(arguments.length<2){for(var r=C(this.node()),o=-1,i=n.length;++o1&&void 0!==arguments[1]?arguments[1]:{},r=[];return i.a.Children.forEach(t,(function(t){(null!=t||n.keepEmpty)&&(Array.isArray(t)?r=r.concat(e(t)):Object(a.isFragment)(t)&&t.props?r=r.concat(e(t.props.children,n)):r.push(t))})),r}(n)).map((function(n,i){var a=(null==n?void 0:n.key)||"".concat("rc-observer-key","-").concat(i);return o.createElement(D,r({},e,{key:a,ref:0===i?t:void 0}),n)}))}var R=o.forwardRef(I);R.Collection=function(e){var t=e.children,n=e.onBatchResize,r=o.useRef(0),i=o.useRef([]),a=o.useContext(z),l=o.useCallback((function(e,t,o){r.current+=1;var l=r.current;i.current.push({size:e,element:t,data:o}),Promise.resolve().then((function(){l===r.current&&(null==n||n(i.current),i.current=[])})),null==a||a(e,t,o)}),[n,a]);return o.createElement(z.Provider,{value:l},t)};t.a=R},function(e,t,n){"use strict";var r=function(){this.__data__=[],this.size=0},o=n(896);var i=function(e,t){for(var n=e.length;n--;)if(Object(o.a)(e[n][0],t))return n;return-1},a=Array.prototype.splice;var l=function(e){var t=this.__data__,n=i(t,e);return!(n<0)&&(n==t.length-1?t.pop():a.call(t,n,1),--this.size,!0)};var u=function(e){var t=this.__data__,n=i(t,e);return n<0?void 0:t[n][1]};var s=function(e){return i(this.__data__,e)>-1};var c=function(e,t){var n=this.__data__,r=i(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};function f(e){var t=-1,n=null==e?0:e.length;for(this.clear();++tc))return!1;var d=u.get(e),p=u.get(t);if(d&&p)return d==t&&p==e;var h=-1,v=!0,g=2&n?new o.a:void 0;for(u.set(e,t),u.set(t,e);++h0?e.charCodeAt(i-1):null,p=p&&y(a,l)}else{for(i=0;ir&&" "!==e[d+1],d=i);else if(!g(a))return 5;l=i>0?e.charCodeAt(i-1):null,p=p&&y(a,l)}c=c||f&&i-d-1>r&&" "!==e[d+1]}return s||c?n>9&&m(e)?5:c?4:3:p&&!o(e)?1:2}function x(e,t,n,r){e.dump=function(){if(0===t.length)return"''";if(!e.noCompatMode&&-1!==c.indexOf(t))return"'"+t+"'";var i=e.indent*Math.max(1,n),a=-1===e.lineWidth?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-i),l=r||e.flowLevel>-1&&n>=e.flowLevel;switch(b(t,l,e.indent,a,(function(t){return function(e,t){var n,r;for(n=0,r=e.implicitTypes.length;n"+w(t,e.indent)+_(p(function(e,t){for(var n,r,o,i=/(\n+)([^\n]*)/g,a=(o=-1!==(o=e.indexOf("\n"))?o:e.length,i.lastIndex=o,C(e.slice(0,o),t)),l="\n"===e[0]||" "===e[0];r=i.exec(e);){var u=r[1],s=r[2];n=" "===s[0],a+=u+(l||n||""===s?"":"\n")+C(s,t),l=n}return a}(t,a),i));case 5:return'"'+function(e){for(var t,n,r,o="",i=0;i=55296&&t<=56319&&(n=e.charCodeAt(i+1))>=56320&&n<=57343?(o+=f(1024*(t-55296)+n-56320+65536),i++):(r=s[t],o+=!r&&g(t)?e[i]:r||f(t));return o}(t)+'"';default:throw new o("impossible error: invalid scalar style")}}()}function w(e,t){var n=m(e)?String(t):"",r="\n"===e[e.length-1];return n+(!r||"\n"!==e[e.length-2]&&"\n"!==e?r?"":"-":"+")+"\n"}function _(e){return"\n"===e[e.length-1]?e.slice(0,-1):e}function C(e,t){if(""===e||" "===e[0])return e;for(var n,r,o=/ [^ ]/g,i=0,a=0,l=0,u="";n=o.exec(e);)(l=n.index)-i>t&&(r=a>i?a:l,u+="\n"+e.slice(i,r),i=r+1),a=l;return u+="\n",e.length-i>t&&a>i?u+=e.slice(i,a)+"\n"+e.slice(a+1):u+=e.slice(i),u.slice(1)}function O(e,t,n){var r,i,a,s,c,f;for(a=0,s=(i=n?e.explicitTypes:e.implicitTypes).length;a tag resolver accepts not "'+f+'" style');r=c.represent[f](t,f)}e.dump=r}return!0}return!1}function E(e,t,n,r,i,a){e.tag=null,e.dump=n,O(e,n,!1)||O(e,n,!0);var u=l.call(e.dump);r&&(r=e.flowLevel<0||e.flowLevel>t);var s,c,f="[object Object]"===u||"[object Array]"===u;if(f&&(c=-1!==(s=e.duplicates.indexOf(n))),(null!==e.tag&&"?"!==e.tag||c||2!==e.indent&&t>0)&&(i=!1),c&&e.usedDuplicates[s])e.dump="*ref_"+s;else{if(f&&c&&!e.usedDuplicates[s]&&(e.usedDuplicates[s]=!0),"[object Object]"===u)r&&0!==Object.keys(e.dump).length?(function(e,t,n,r){var i,a,l,u,s,c,f="",d=e.tag,p=Object.keys(n);if(!0===e.sortKeys)p.sort();else if("function"==typeof e.sortKeys)p.sort(e.sortKeys);else if(e.sortKeys)throw new o("sortKeys must be a boolean or a function");for(i=0,a=p.length;i1024)&&(e.dump&&10===e.dump.charCodeAt(0)?c+="?":c+="? "),c+=e.dump,s&&(c+=h(e,t)),E(e,t+1,u,!0,s)&&(e.dump&&10===e.dump.charCodeAt(0)?c+=":":c+=": ",f+=c+=e.dump));e.tag=d,e.dump=f||"{}"}(e,t,e.dump,i),c&&(e.dump="&ref_"+s+e.dump)):(function(e,t,n){var r,o,i,a,l,u="",s=e.tag,c=Object.keys(n);for(r=0,o=c.length;r1024&&(l+="? "),l+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),E(e,t,a,!1,!1)&&(u+=l+=e.dump));e.tag=s,e.dump="{"+u+"}"}(e,t,e.dump),c&&(e.dump="&ref_"+s+" "+e.dump));else if("[object Array]"===u){var d=e.noArrayIndent&&t>0?t-1:t;r&&0!==e.dump.length?(function(e,t,n,r){var o,i,a="",l=e.tag;for(o=0,i=n.length;o "+e.dump)}return!0}function M(e,t){var n,r,o=[],i=[];for(function e(t,n,r){var o,i,a;if(null!==t&&"object"==typeof t)if(-1!==(i=n.indexOf(t)))-1===r.indexOf(i)&&r.push(i);else if(n.push(t),Array.isArray(t))for(i=0,a=t.length;i>10),56320+(e-65536&1023))}for(var _=new Array(256),C=new Array(256),O=0;O<256;O++)_[O]=x(O)?1:0,C[O]=x(O);function E(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||l,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.documents=[]}function M(e,t){return new o(t,new i(e.filename,e.input,e.position,e.line,e.position-e.lineStart))}function S(e,t){throw M(e,t)}function A(e,t){e.onWarning&&e.onWarning.call(null,M(e,t))}var k={YAML:function(e,t,n){var r,o,i;null!==e.version&&S(e,"duplication of %YAML directive"),1!==n.length&&S(e,"YAML directive accepts exactly one argument"),null===(r=/^([0-9]+)\.([0-9]+)$/.exec(n[0]))&&S(e,"ill-formed argument of the YAML directive"),o=parseInt(r[1],10),i=parseInt(r[2],10),1!==o&&S(e,"unacceptable YAML version of the document"),e.version=n[0],e.checkLineBreaks=i<2,1!==i&&2!==i&&A(e,"unsupported YAML version of the document")},TAG:function(e,t,n){var r,o;2!==n.length&&S(e,"TAG directive accepts exactly two arguments"),r=n[0],o=n[1],d.test(r)||S(e,"ill-formed tag handle (first argument) of the TAG directive"),u.call(e.tagMap,r)&&S(e,'there is a previously declared suffix for "'+r+'" tag handle'),p.test(o)||S(e,"ill-formed tag prefix (second argument) of the TAG directive"),e.tagMap[r]=o}};function j(e,t,n,r){var o,i,a,l;if(t1&&(e.result+=r.repeat("\n",t-1))}function I(e,t){var n,r,o=e.tag,i=e.anchor,a=[],l=!1;for(null!==e.anchor&&(e.anchorMap[e.anchor]=a),r=e.input.charCodeAt(e.position);0!==r&&45===r&&y(e.input.charCodeAt(e.position+1));)if(l=!0,e.position++,z(e,!0,-1)&&e.lineIndent<=t)a.push(null),r=e.input.charCodeAt(e.position);else if(n=e.line,B(e,t,3,!1,!0),a.push(e.result),z(e,!0,-1),r=e.input.charCodeAt(e.position),(e.line===n||e.lineIndent>t)&&0!==r)S(e,"bad indentation of a sequence entry");else if(e.lineIndentt?x=1:e.lineIndent===t?x=0:e.lineIndentt?x=1:e.lineIndent===t?x=0:e.lineIndentt)&&(B(e,t,4,!0,o)&&(v?p=e.result:h=e.result),v||(P(e,c,f,d,p,h,i,a),d=p=h=null),z(e,!0,-1),l=e.input.charCodeAt(e.position)),e.lineIndent>t&&0!==l)S(e,"bad indentation of a mapping entry");else if(e.lineIndent=0))break;0===i?S(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):c?S(e,"repeat of an indentation width identifier"):(f=t+i-1,c=!0)}if(g(a)){do{a=e.input.charCodeAt(++e.position)}while(g(a));if(35===a)do{a=e.input.charCodeAt(++e.position)}while(!v(a)&&0!==a)}for(;0!==a;){for(L(e),e.lineIndent=0,a=e.input.charCodeAt(e.position);(!c||e.lineIndentf&&(f=e.lineIndent),v(a))d++;else{if(e.lineIndent0){for(o=a,i=0;o>0;o--)(a=b(l=e.input.charCodeAt(++e.position)))>=0?i=(i<<4)+a:S(e,"expected hexadecimal character");e.result+=w(i),e.position++}else S(e,"unknown escape sequence");n=r=e.position}else v(l)?(j(e,n,r,!0),D(e,z(e,!1,t)),n=r=e.position):e.position===e.lineStart&&N(e)?S(e,"unexpected end of the document within a double quoted scalar"):(e.position++,r=e.position)}S(e,"unexpected end of the stream within a double quoted scalar")}(e,p)?E=!0:function(e){var t,n,r;if(42!==(r=e.input.charCodeAt(e.position)))return!1;for(r=e.input.charCodeAt(++e.position),t=e.position;0!==r&&!y(r)&&!m(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&S(e,"name of an alias node must contain at least one character"),n=e.input.slice(t,e.position),e.anchorMap.hasOwnProperty(n)||S(e,'unidentified alias "'+n+'"'),e.result=e.anchorMap[n],z(e,!0,-1),!0}(e)?(E=!0,null===e.tag&&null===e.anchor||S(e,"alias node should not have any properties")):function(e,t,n){var r,o,i,a,l,u,s,c,f=e.kind,d=e.result;if(y(c=e.input.charCodeAt(e.position))||m(c)||35===c||38===c||42===c||33===c||124===c||62===c||39===c||34===c||37===c||64===c||96===c)return!1;if((63===c||45===c)&&(y(r=e.input.charCodeAt(e.position+1))||n&&m(r)))return!1;for(e.kind="scalar",e.result="",o=i=e.position,a=!1;0!==c;){if(58===c){if(y(r=e.input.charCodeAt(e.position+1))||n&&m(r))break}else if(35===c){if(y(e.input.charCodeAt(e.position-1)))break}else{if(e.position===e.lineStart&&N(e)||n&&m(c))break;if(v(c)){if(l=e.line,u=e.lineStart,s=e.lineIndent,z(e,!1,-1),e.lineIndent>=t){a=!0,c=e.input.charCodeAt(e.position);continue}e.position=i,e.line=l,e.lineStart=u,e.lineIndent=s;break}}a&&(j(e,o,i,!1),D(e,e.line-l),o=i=e.position,a=!1),g(c)||(i=e.position+1),c=e.input.charCodeAt(++e.position)}return j(e,o,i,!1),!!e.result||(e.kind=f,e.result=d,!1)}(e,p,1===n)&&(E=!0,null===e.tag&&(e.tag="?")),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):0===x&&(E=s&&I(e,h))),null!==e.tag&&"!"!==e.tag)if("?"===e.tag){for(null!==e.result&&"scalar"!==e.kind&&S(e,'unacceptable node kind for ! tag; it should be "scalar", not "'+e.kind+'"'),c=0,f=e.implicitTypes.length;c tag; it should be "'+d.kind+'", not "'+e.kind+'"'),d.resolve(e.result)?(e.result=d.construct(e.result),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):S(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")):S(e,"unknown tag !<"+e.tag+">");return null!==e.listener&&e.listener("close",e),null!==e.tag||null!==e.anchor||E}function F(e){var t,n,r,o,i=e.position,a=!1;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap={},e.anchorMap={};0!==(o=e.input.charCodeAt(e.position))&&(z(e,!0,-1),o=e.input.charCodeAt(e.position),!(e.lineIndent>0||37!==o));){for(a=!0,o=e.input.charCodeAt(++e.position),t=e.position;0!==o&&!y(o);)o=e.input.charCodeAt(++e.position);for(r=[],(n=e.input.slice(t,e.position)).length<1&&S(e,"directive name must not be less than one character in length");0!==o;){for(;g(o);)o=e.input.charCodeAt(++e.position);if(35===o){do{o=e.input.charCodeAt(++e.position)}while(0!==o&&!v(o));break}if(v(o))break;for(t=e.position;0!==o&&!y(o);)o=e.input.charCodeAt(++e.position);r.push(e.input.slice(t,e.position))}0!==o&&L(e),u.call(k,n)?k[n](e,n,r):A(e,'unknown document directive "'+n+'"')}z(e,!0,-1),0===e.lineIndent&&45===e.input.charCodeAt(e.position)&&45===e.input.charCodeAt(e.position+1)&&45===e.input.charCodeAt(e.position+2)?(e.position+=3,z(e,!0,-1)):a&&S(e,"directives end mark is expected"),B(e,e.lineIndent-1,4,!1,!0),z(e,!0,-1),e.checkLineBreaks&&c.test(e.input.slice(i,e.position))&&A(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&N(e)?46===e.input.charCodeAt(e.position)&&(e.position+=3,z(e,!0,-1)):e.position0&&-1==="\0\r\n…\u2028\u2029".indexOf(this.buffer.charAt(o-1));)if(o-=1,this.position-o>t/2-1){n=" ... ",o+=5;break}for(i="",a=this.position;at/2-1){i=" ... ",a-=5;break}return l=this.buffer.slice(o,a),r.repeat(" ",e)+n+l+i+"\n"+r.repeat(" ",e+this.position-o+n.length)+"^"},o.prototype.toString=function(e){var t,n="";return this.name&&(n+='in "'+this.name+'" '),n+="at line "+(this.line+1)+", column "+(this.column+1),e||(t=this.getSnippet())&&(n+=":\n"+t),n},t.exports=o},{"./common":2}],7:[function(e,t,n){"use strict";var r=e("./common"),o=e("./exception"),i=e("./type");function a(e,t,n){var r=[];return e.include.forEach((function(e){n=a(e,t,n)})),e[t].forEach((function(e){n.forEach((function(t,n){t.tag===e.tag&&t.kind===e.kind&&r.push(n)})),n.push(e)})),n.filter((function(e,t){return-1===r.indexOf(t)}))}function l(e){this.include=e.include||[],this.implicit=e.implicit||[],this.explicit=e.explicit||[],this.implicit.forEach((function(e){if(e.loadKind&&"scalar"!==e.loadKind)throw new o("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")})),this.compiledImplicit=a(this,"implicit",[]),this.compiledExplicit=a(this,"explicit",[]),this.compiledTypeMap=function(){var e,t,n={scalar:{},sequence:{},mapping:{},fallback:{}};function r(e){n[e.kind][e.tag]=n.fallback[e.tag]=e}for(e=0,t=arguments.length;e64)){if(t<0)return!1;r+=6}return r%8==0},construct:function(e){var t,n,o=e.replace(/[\r\n=]/g,""),a=o.length,l=i,u=0,s=[];for(t=0;t>16&255),s.push(u>>8&255),s.push(255&u)),u=u<<6|l.indexOf(o.charAt(t));return 0==(n=a%4*6)?(s.push(u>>16&255),s.push(u>>8&255),s.push(255&u)):18===n?(s.push(u>>10&255),s.push(u>>2&255)):12===n&&s.push(u>>4&255),r?r.from?r.from(s):new r(s):s},predicate:function(e){return r&&r.isBuffer(e)},represent:function(e){var t,n,r="",o=0,a=e.length,l=i;for(t=0;t>18&63],r+=l[o>>12&63],r+=l[o>>6&63],r+=l[63&o]),o=(o<<8)+e[t];return 0==(n=a%3)?(r+=l[o>>18&63],r+=l[o>>12&63],r+=l[o>>6&63],r+=l[63&o]):2===n?(r+=l[o>>10&63],r+=l[o>>4&63],r+=l[o<<2&63],r+=l[64]):1===n&&(r+=l[o>>2&63],r+=l[o<<4&63],r+=l[64],r+=l[64]),r}})},{"../type":13}],15:[function(e,t,n){"use strict";var r=e("../type");t.exports=new r("tag:yaml.org,2002:bool",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t=e.length;return 4===t&&("true"===e||"True"===e||"TRUE"===e)||5===t&&("false"===e||"False"===e||"FALSE"===e)},construct:function(e){return"true"===e||"True"===e||"TRUE"===e},predicate:function(e){return"[object Boolean]"===Object.prototype.toString.call(e)},represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"})},{"../type":13}],16:[function(e,t,n){"use strict";var r=e("../common"),o=e("../type"),i=new RegExp("^(?:[-+]?(?:0|[1-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),a=/^[-+]?[0-9]+e/;t.exports=new o("tag:yaml.org,2002:float",{kind:"scalar",resolve:function(e){return null!==e&&!(!i.test(e)||"_"===e[e.length-1])},construct:function(e){var t,n,r,o;return n="-"===(t=e.replace(/_/g,"").toLowerCase())[0]?-1:1,o=[],"+-".indexOf(t[0])>=0&&(t=t.slice(1)),".inf"===t?1===n?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:".nan"===t?NaN:t.indexOf(":")>=0?(t.split(":").forEach((function(e){o.unshift(parseFloat(e,10))})),t=0,r=1,o.forEach((function(e){t+=e*r,r*=60})),n*t):n*parseFloat(t,10)},predicate:function(e){return"[object Number]"===Object.prototype.toString.call(e)&&(e%1!=0||r.isNegativeZero(e))},represent:function(e,t){var n;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(r.isNegativeZero(e))return"-0.0";return n=e.toString(10),a.test(n)?n.replace("e",".e"):n},defaultStyle:"lowercase"})},{"../common":2,"../type":13}],17:[function(e,t,n){"use strict";var r=e("../common"),o=e("../type");function i(e){return 48<=e&&e<=55}function a(e){return 48<=e&&e<=57}t.exports=new o("tag:yaml.org,2002:int",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t,n,r=e.length,o=0,l=!1;if(!r)return!1;if("-"!==(t=e[o])&&"+"!==t||(t=e[++o]),"0"===t){if(o+1===r)return!0;if("b"===(t=e[++o])){for(o++;o=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0"+e.toString(8):"-0"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})},{"../common":2,"../type":13}],18:[function(e,t,n){"use strict";var r;try{r=e("esprima")}catch(e){"undefined"!=typeof window&&(r=window.esprima)}var o=e("../../type");t.exports=new o("tag:yaml.org,2002:js/function",{kind:"scalar",resolve:function(e){if(null===e)return!1;try{var t="("+e+")",n=r.parse(t,{range:!0});return"Program"===n.type&&1===n.body.length&&"ExpressionStatement"===n.body[0].type&&("ArrowFunctionExpression"===n.body[0].expression.type||"FunctionExpression"===n.body[0].expression.type)}catch(e){return!1}},construct:function(e){var t,n="("+e+")",o=r.parse(n,{range:!0}),i=[];if("Program"!==o.type||1!==o.body.length||"ExpressionStatement"!==o.body[0].type||"ArrowFunctionExpression"!==o.body[0].expression.type&&"FunctionExpression"!==o.body[0].expression.type)throw new Error("Failed to resolve function");return o.body[0].expression.params.forEach((function(e){i.push(e.name)})),t=o.body[0].expression.body.range,"BlockStatement"===o.body[0].expression.body.type?new Function(i,n.slice(t[0]+1,t[1]-1)):new Function(i,"return "+n.slice(t[0],t[1]))},predicate:function(e){return"[object Function]"===Object.prototype.toString.call(e)},represent:function(e){return e.toString()}})},{"../../type":13}],19:[function(e,t,n){"use strict";var r=e("../../type");t.exports=new r("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:function(e){if(null===e)return!1;if(0===e.length)return!1;var t=e,n=/\/([gim]*)$/.exec(e),r="";if("/"===t[0]){if(n&&(r=n[1]),r.length>3)return!1;if("/"!==t[t.length-r.length-1])return!1}return!0},construct:function(e){var t=e,n=/\/([gim]*)$/.exec(e),r="";return"/"===t[0]&&(n&&(r=n[1]),t=t.slice(1,t.length-r.length-1)),new RegExp(t,r)},predicate:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},represent:function(e){var t="/"+e.source+"/";return e.global&&(t+="g"),e.multiline&&(t+="m"),e.ignoreCase&&(t+="i"),t}})},{"../../type":13}],20:[function(e,t,n){"use strict";var r=e("../../type");t.exports=new r("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:function(){return!0},construct:function(){},predicate:function(e){return void 0===e},represent:function(){return""}})},{"../../type":13}],21:[function(e,t,n){"use strict";var r=e("../type");t.exports=new r("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return null!==e?e:{}}})},{"../type":13}],22:[function(e,t,n){"use strict";var r=e("../type");t.exports=new r("tag:yaml.org,2002:merge",{kind:"scalar",resolve:function(e){return"<<"===e||null===e}})},{"../type":13}],23:[function(e,t,n){"use strict";var r=e("../type");t.exports=new r("tag:yaml.org,2002:null",{kind:"scalar",resolve:function(e){if(null===e)return!0;var t=e.length;return 1===t&&"~"===e||4===t&&("null"===e||"Null"===e||"NULL"===e)},construct:function(){return null},predicate:function(e){return null===e},represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"}},defaultStyle:"lowercase"})},{"../type":13}],24:[function(e,t,n){"use strict";var r=e("../type"),o=Object.prototype.hasOwnProperty,i=Object.prototype.toString;t.exports=new r("tag:yaml.org,2002:omap",{kind:"sequence",resolve:function(e){if(null===e)return!0;var t,n,r,a,l,u=[],s=e;for(t=0,n=s.length;t=0&&o===+o?"".concat(o,"px"):o),";");var r,o,i}),"")};t.getStyleString=f;t.getStringSize=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null==e||(0,r.isSsr)())return{width:0,height:0};var n="".concat(e),o=f(t),a="".concat(n,"-").concat(o);if(u.widthCache[a])return u.widthCache[a];try{var l=document.getElementById("recharts_measurement_span");l||((l=document.createElement("span")).setAttribute("id","recharts_measurement_span"),document.body.appendChild(l));var c=i({},s,{},t);Object.keys(c).map((function(e){return l.style[e]=c[e],e})),l.textContent=n;var d=l.getBoundingClientRect(),p={width:d.width,height:d.height};return u.widthCache[a]=p,++u.cacheCount>2e3&&(u.cacheCount=0,u.widthCache={}),p}catch(e){return{width:0,height:0}}};t.getOffset=function(e){var t=e.ownerDocument.documentElement,n={top:0,left:0};return void 0!==e.getBoundingClientRect&&(n=e.getBoundingClientRect()),{top:n.top+window.pageYOffset-t.clientTop,left:n.left+window.pageXOffset-t.clientLeft}};t.calculateChartCoordinate=function(e,t){return{chartX:Math.round(e.pageX-t.left),chartY:Math.round(e.pageY-t.top)}}},function(e,t,n){"use strict";t.a=function(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e){if(e&&e.__esModule)return e;var t=s();if(t&&t.has(e))return t.get(e);var n={};if(null!=e){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}}n.default=e,t&&t.set(e,n);return n}(n(0)),o=u(n(1)),i=u(n(3)),a=u(n(990)),l=n(809);function u(e){return e&&e.__esModule?e:{default:e}}function s(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d(e){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function p(){return(p=Object.assign||function(e){for(var t=1;t=0?1:-1,u=n>=0?1:-1,s=r>=0&&n>=0||r<0&&n<0?1:0;if(a>0&&o instanceof Array){for(var c=[],f=0;f<4;f++)c[f]=o[f]>a?a:o[f];i="M".concat(e,",").concat(t+l*c[0]),c[0]>0&&(i+="A ".concat(c[0],",").concat(c[0],",0,0,").concat(s,",").concat(e+u*c[0],",").concat(t)),i+="L ".concat(e+n-u*c[1],",").concat(t),c[1]>0&&(i+="A ".concat(c[1],",").concat(c[1],",0,0,").concat(s,",\n ").concat(e+n,",").concat(t+l*c[1])),i+="L ".concat(e+n,",").concat(t+r-l*c[2]),c[2]>0&&(i+="A ".concat(c[2],",").concat(c[2],",0,0,").concat(s,",\n ").concat(e+n-u*c[2],",").concat(t+r)),i+="L ".concat(e+u*c[3],",").concat(t+r),c[3]>0&&(i+="A ".concat(c[3],",").concat(c[3],",0,0,").concat(s,",\n ").concat(e,",").concat(t+r-l*c[3])),i+="Z"}else if(a>0&&o===+o&&o>0){var d=Math.min(a,o);i="M ".concat(e,",").concat(t+l*d,"\n A ").concat(d,",").concat(d,",0,0,").concat(s,",").concat(e+u*d,",").concat(t,"\n L ").concat(e+n-u*d,",").concat(t,"\n A ").concat(d,",").concat(d,",0,0,").concat(s,",").concat(e+n,",").concat(t+l*d,"\n L ").concat(e+n,",").concat(t+r-l*d,"\n A ").concat(d,",").concat(d,",0,0,").concat(s,",").concat(e+n-u*d,",").concat(t+r,"\n L ").concat(e+u*d,",").concat(t+r,"\n A ").concat(d,",").concat(d,",0,0,").concat(s,",").concat(e,",").concat(t+r-l*d," Z")}else i="M ".concat(e,",").concat(t," h ").concat(n," v ").concat(r," h ").concat(-n," Z");return i},x=function(e){function t(){var e,n;h(this,t);for(var r=arguments.length,o=new Array(r),i=0;i0,from:{width:u,height:s,x:n,y:o},to:{width:u,height:s,x:n,y:o},duration:g,animationEasing:v,isActive:x},(function(t){var n=t.width,o=t.height,i=t.x,u=t.y;return r.default.createElement(a.default,{canBegin:d>0,from:"0px ".concat(-1===d?1:d,"px"),to:"".concat(d,"px 0px"),attributeName:"strokeDasharray",begin:y,duration:g,isActive:m,easing:v},r.default.createElement("path",p({},(0,l.getPresentationAttributes)(e.props),(0,l.filterEventAttributes)(e.props),{className:w,d:b(i,u,n,o,c),ref:function(t){e.node=t}})))})):r.default.createElement("path",p({},(0,l.getPresentationAttributes)(this.props),(0,l.filterEventAttributes)(this.props),{className:w,d:b(n,o,u,s,c)}))}}])&&v(n.prototype,o),u&&v(n,u),t}(r.PureComponent);x.displayName="Rectangle",x.propTypes=function(e){for(var t=1;t1?arguments[1]:void 0,n),u=a>2?arguments[2]:void 0,s=void 0===u?n:o(u,n);s>l;)t[l++]=e;return t}},function(e,t,n){"use strict";n(2183),n(2205);if(!Object.setPrototypeOf&&!{}.__proto__){var r=Object.getPrototypeOf;Object.getPrototypeOf=function(e){return e.__proto__?e.__proto__:r.call(Object,e)}}},function(e,t,n){var r=n(1162),o=n(1515),i=n(1281),a=Object.defineProperty;t.f=n(1035)?Object.defineProperty:function(e,t,n){if(r(e),t=i(t,!0),r(n),o)try{return a(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){var r=n(1034);e.exports=function(e,t){if(!r(e))return e;var n,o;if(t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;if("function"==typeof(n=e.valueOf)&&!r(o=n.call(e)))return o;if(!t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},function(e,t){e.exports=Math.sign||function(e){return 0==(e=+e)||e!=e?e:e<0?-1:1}},function(e,t){var n=Math.expm1;e.exports=!n||n(10)>22025.465794806718||n(10)<22025.465794806718||-2e-17!=n(-2e-17)?function(e){return 0==(e=+e)?e:e>-1e-6&&e<1e-6?e+e*e/2:Math.exp(e)-1}:n},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){var r=n(2210),o=n(1286);e.exports=function(e){return r(o(e))}},function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t,n){var r=n(820),o=n(1286),i=n(968),a=n(1289),l="["+a+"]",u=RegExp("^"+l+l+"*"),s=RegExp(l+l+"*$"),c=function(e,t,n){var o={},l=i((function(){return!!a[e]()||"​…"!="​…"[e]()})),u=o[e]=l?t(f):a[e];n&&(o[n]=u),r(r.P+r.F*l,"String",o)},f=c.trim=function(e,t){return e=String(o(e)),1&t&&(e=e.replace(u,"")),2&t&&(e=e.replace(s,"")),e};e.exports=c},function(e,t){e.exports="\t\n\v\f\r   ᠎              \u2028\u2029\ufeff"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=p(n(194)),o=function(e){if(e&&e.__esModule)return e;var t=d();if(t&&t.has(e))return t.get(e);var n={};if(null!=e){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}}n.default=e,t&&t.set(e,n);return n}(n(0)),i=p(n(1)),a=p(n(868)),l=n(809),u=p(n(946)),s=p(n(1528)),c=p(n(1031)),f=n(926);function d(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return d=function(){return e},e}function p(e){return e&&e.__esModule?e:{default:e}}function h(e){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function v(){return(v=Object.assign||function(e){for(var t=1;t1e-5?"outer"===t?"start":"end":n<-1e-5?"outer"===t?"end":"start":"middle"}},{key:"renderAxisLine",value:function(){var e=this.props,t=e.cx,n=e.cy,r=e.radius,i=e.axisLine,a=e.axisLineType,c=y({},(0,l.getPresentationAttributes)(this.props),{fill:"none"},(0,l.getPresentationAttributes)(i));if("circle"===a)return o.default.createElement(u.default,v({className:"recharts-polar-angle-axis-line"},c,{cx:t,cy:n,r:r}));var d=this.props.ticks.map((function(e){return(0,f.polarToCartesian)(t,n,r,e.coordinate)}));return o.default.createElement(s.default,v({className:"recharts-polar-angle-axis-line"},c,{points:d}))}},{key:"renderTicks",value:function(){var e=this,t=this.props,n=t.ticks,r=t.tick,i=t.tickLine,u=t.tickFormatter,s=t.stroke,c=(0,l.getPresentationAttributes)(this.props),f=(0,l.getPresentationAttributes)(r),d=y({},c,{fill:"none"},(0,l.getPresentationAttributes)(i)),p=n.map((function(t,n){var p=e.getTickLineCoord(t),h=y({textAnchor:e.getTickTextAnchor(t)},c,{stroke:"none",fill:s},f,{index:n,payload:t,x:p.x2,y:p.y2});return o.default.createElement(a.default,v({className:"recharts-polar-angle-axis-tick",key:"tick-".concat(n)},(0,l.filterEventsOfChild)(e.props,t,n)),i&&o.default.createElement("line",v({className:"recharts-polar-angle-axis-tick-line"},d,p)),r&&e.constructor.renderTickItem(r,h,u?u(t.value):t.value))}));return o.default.createElement(a.default,{className:"recharts-polar-angle-axis-ticks"},p)}},{key:"render",value:function(){var e=this.props,t=e.ticks,n=e.radius,r=e.axisLine;return n<=0||!t||!t.length?null:o.default.createElement(a.default,{className:"recharts-polar-angle-axis"},r&&this.renderAxisLine(),this.renderTicks())}}])&&x(n.prototype,i),d&&x(n,d),t}(o.PureComponent);E.displayName="PolarAngleAxis",E.axisType="angleAxis",E.propTypes=y({},l.PRESENTATION_ATTRIBUTES,{},l.EVENT_ATTRIBUTES,{type:i.default.oneOf(["number","category"]),angleAxisId:i.default.oneOfType([i.default.string,i.default.number]),dataKey:i.default.oneOfType([i.default.number,i.default.string,i.default.func]),cx:i.default.number,cy:i.default.number,radius:i.default.oneOfType([i.default.number,i.default.string]),hide:i.default.bool,scale:i.default.oneOfType([i.default.oneOf(l.SCALE_TYPES),i.default.func]),axisLine:i.default.oneOfType([i.default.bool,i.default.object]),axisLineType:i.default.oneOf(["polygon","circle"]),tickLine:i.default.oneOfType([i.default.bool,i.default.object]),tick:i.default.oneOfType([i.default.bool,i.default.func,i.default.object,i.default.element]),ticks:i.default.arrayOf(i.default.shape({value:i.default.any,coordinate:i.default.number})),stroke:i.default.string,orientation:i.default.oneOf(["inner","outer"]),tickFormatter:i.default.func,allowDuplicatedCategory:i.default.bool}),E.defaultProps={type:"category",angleAxisId:0,scale:"auto",cx:0,cy:0,domain:[0,"auto"],orientation:"outer",axisLine:!0,tickLine:!0,tick:!0,hide:!1,allowDuplicatedCategory:!0};var M=E;t.default=M},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=h(n(194)),o=h(n(1292)),i=h(n(1529)),a=function(e){if(e&&e.__esModule)return e;var t=p();if(t&&t.has(e))return t.get(e);var n={};if(null!=e){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}}n.default=e,t&&t.set(e,n);return n}(n(0)),l=h(n(1)),u=h(n(1031)),s=h(n(997)),c=h(n(868)),f=n(809),d=n(926);function p(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return p=function(){return e},e}function h(e){return e&&e.__esModule?e:{default:e}}function v(e){return(v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function g(){return(g=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function w(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _(e,t){for(var n=0;n=0&&(n=this.attrs[t][1]),n},r.prototype.attrJoin=function(e,t){var n=this.attrIndex(e);n<0?this.attrPush([e,t]):this.attrs[n][1]=this.attrs[n][1]+" "+t},e.exports=r},,,,,,function(e,t,n){var r; /*! Copyright (c) 2017 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames -*/!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e=[],t=0;t63&&!t.ignore_max_length)&&(!!/^[a-z_\u00a1-\uffff0-9-]+$/i.test(e)&&(!/[\uff01-\uff5e]/.test(e)&&(!/^-|-$/.test(e)&&!(!t.allow_underscores&&/_/.test(e)))))}))};var r=i(n(797)),o=i(n(882));function i(e){return e&&e.__esModule?e:{default:e}}var a={require_tld:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_numeric_tld:!1,allow_wildcard:!1,ignore_max_length:!1};e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,o.default)(e);var n=(t=t||{}).hasOwnProperty("allow_leading_zeroes")&&!t.allow_leading_zeroes?i:a,r=!t.hasOwnProperty("min")||e>=t.min,l=!t.hasOwnProperty("max")||e<=t.max,u=!t.hasOwnProperty("lt")||et.gt;return n.test(e)&&r&&l&&u&&s};var r,o=(r=n(797))&&r.__esModule?r:{default:r};var i=/^(?:[-+]?(?:0|[1-9][0-9]*))$/,a=/^[-+]?[0-9]+$/;e.exports=t.default,e.exports.default=t.default},,,,,,,,,,,,,,,,function(e,t,n){var r=n(526),o=n(60);e.exports=function(e,t,n,i){return null==e?[]:(o(t)||(t=null==t?[]:[t]),o(n=i?void 0:n)||(n=null==n?[]:[n]),r(e,t,n))}},,,,function(e,t,n){var r=n(203);e.exports=function(e){return"function"==typeof e?e:r}},function(e,t,n){"use strict";var r=n(1659),o=Object(r.a)();t.a=o},function(e,t,n){"use strict";var r=n(1027),o=n(860),i=Object(r.a)(o.a,"Map");t.a=i},function(e,t){e.exports=function(e){if(!e.webpackPolyfill){var t=Object.create(e);t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),Object.defineProperty(t,"exports",{enumerable:!0}),t.webpackPolyfill=1}return t}},function(e,t,n){"use strict";var r=n(1662);t.a=function(e){var t=new e.constructor(e.byteLength);return new r.a(t).set(new r.a(e)),t}},function(e,t,n){"use strict";t.a=function(e,t){for(var n=-1,r=Array(e);++n1&&(a.normalizer=n(3494)(t)):a.normalizer=!1===t?n(3495)():1===t?n(3499)():n(3500)(t)),a.async&&n(3501),a.promise&&n(3504),a.dispose&&n(3510),a.maxAge&&n(3511),a.max&&n(3514),a.refCounter&&n(3516),i(e,a)}},function(e,t,n){"use strict";e.exports=n(3478)()?Array.from:n(3479)},function(e,t,n){"use strict";var r=n(3496),o=n(1018),i=n(1067),a=Array.prototype.indexOf,l=Object.prototype.hasOwnProperty,u=Math.abs,s=Math.floor;e.exports=function(e){var t,n,c,f;if(!r(e))return a.apply(this,arguments);for(n=o(i(this).length),c=arguments[1],t=c=isNaN(c)?0:c>=0?s(c):o(this.length)-s(u(c));t"string"==typeof e?e.replace(r(),""):e;e.exports=o,e.exports.default=o},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";var r=n(8),o=n(25),i=n(78),a=n(21),l=n(39),u=n(19),s=n(46),c=n(328),f=n(4507).c2i,d=/[^\d+/a-z]/i,p=/[\t\n\f\r ]+/g,h=/[=]{1,2}$/,v=i("atob"),g=String.fromCharCode,y=a("".charAt),m=a("".replace),b=a(d.exec),x=!!v&&!u((function(){return"hi"!==v("aGk=")})),w=x&&u((function(){return""!==v(" ")})),_=x&&!u((function(){v("a")})),C=x&&!u((function(){v()})),O=x&&1!==v.length;r({global:!0,bind:!0,enumerable:!0,forced:!x||w||_||C||O},{atob:function(e){if(c(arguments.length,1),x&&!w&&!_)return l(v,o,e);var t,n,r,a=m(s(e),p,""),u="",C=0,O=0;if(a.length%4==0&&(a=m(a,h,"")),(t=a.length)%4==1||b(d,a))throw new(i("DOMException"))("The string is not correctly encoded","InvalidCharacterError");for(;C>(-2*O&6)));return u}})},function(e,t,n){"use strict";var r=n(8),o=n(1886),i=n(78),a=n(19),l=n(115),u=n(142),s=n(70).f,c=n(67),f=n(114),d=n(53),p=n(254),h=n(50),v=n(509),g=n(341),y=n(1887),m=n(487),b=n(101),x=n(33),w=n(79),_=i("Error"),C=i("DOMException")||function(){try{(new(i("MessageChannel")||o("worker_threads").MessageChannel)).port1.postMessage(new WeakMap)}catch(e){if("DATA_CLONE_ERR"===e.name&&25===e.code)return e.constructor}}(),O=C&&C.prototype,E=_.prototype,M=b.set,S=b.getterFor("DOMException"),A="stack"in new _("DOMException"),k=function(e){return d(y,e)&&y[e].m?y[e].c:0},j=function(){p(this,T);var e=arguments.length,t=g(e<1?void 0:arguments[0]),n=g(e<2?void 0:arguments[1],"Error"),r=k(n);if(M(this,{type:"DOMException",name:n,message:t,code:r}),x||(this.name=n,this.message=t,this.code=r),A){var o=new _(t);o.name="DOMException",s(this,"stack",u(1,m(o.stack,1)))}},T=j.prototype=l(E),P=function(e){return{enumerable:!0,configurable:!0,get:e}},L=function(e){return P((function(){return S(this)[e]}))};x&&(f(T,"code",L("code")),f(T,"message",L("message")),f(T,"name",L("name"))),s(T,"constructor",u(1,j));var z=a((function(){return!(new C instanceof _)})),N=z||a((function(){return E.toString!==v||"2: 1"!==String(new C(1,2))})),D=z||a((function(){return 25!==new C(1,"DataCloneError").code})),I=z||25!==C.DATA_CLONE_ERR||25!==O.DATA_CLONE_ERR,R=w?N||D||I:z;r({global:!0,constructor:!0,forced:R},{DOMException:R?j:C});var H=i("DOMException"),B=H.prototype;for(var F in N&&(w||C===H)&&c(B,"toString",v),D&&x&&C===H&&f(B,"code",P((function(){return k(h(this).name)}))),y)if(d(y,F)){var V=y[F],$=V.s,U=u(6,V.c);d(H,$)||s(H,$,U),d(B,$)||s(B,$,U)}},function(e,t,n){"use strict";var r=n(8),o=n(25),i=n(78),a=n(142),l=n(70).f,u=n(53),s=n(254),c=n(206),f=n(341),d=n(1887),p=n(487),h=n(33),v=n(79),g=i("Error"),y=i("DOMException"),m=function(){s(this,b);var e=arguments.length,t=f(e<1?void 0:arguments[0]),n=f(e<2?void 0:arguments[1],"Error"),r=new y(t,n),o=new g(t);return o.name="DOMException",l(r,"stack",a(1,p(o.stack,1))),c(r,this,m),r},b=m.prototype=y.prototype,x="stack"in new g("DOMException"),w="stack"in new y(1,2),_=y&&h&&Object.getOwnPropertyDescriptor(o,"DOMException"),C=!(!_||_.writable&&_.configurable),O=x&&!C&&!w;r({global:!0,constructor:!0,forced:v||O},{DOMException:O?m:y});var E=i("DOMException"),M=E.prototype;if(M.constructor!==E)for(var S in v||l(M,"constructor",a(1,E)),d)if(u(d,S)){var A=d[S],k=A.s;u(E,k)||l(E,k,a(6,A.c))}},function(e,t,n){"use strict";var r=n(78);n(123)(r("DOMException"),"DOMException")},,,function(e,t,n){"use strict";t.a=function(e){return function(){return this.matches(e)}}},function(e,t,n){"use strict";function r(){return[]}t.a=function(e){return null==e?r:function(){return this.querySelectorAll(e)}}},function(e,t,n){"use strict";n.d(t,"b",(function(){return l}));var r=n(1242);function o(e){return function(){this.style.removeProperty(e)}}function i(e,t,n){return function(){this.style.setProperty(e,t,n)}}function a(e,t,n){return function(){var r=t.apply(this,arguments);null==r?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function l(e,t){return e.style.getPropertyValue(t)||Object(r.a)(e).getComputedStyle(e,null).getPropertyValue(t)}t.a=function(e,t,n){return arguments.length>1?this.each((null==t?o:"function"==typeof t?a:i)(e,t,null==n?"":n)):l(this.node(),e)}},function(e,t,n){"use strict";var r=n(1141);t.a=function(){for(var e,t=r.c;e=t.sourceEvent;)t=e;return t}},function(e,t,n){"use strict";var r=n(1257);t.a=function(e){return"string"==typeof e?new r.a([[document.querySelector(e)]],[document.documentElement]):new r.a([[e]],r.c)}},function(e,t,n){"use strict";var r=n(908);e.exports=o;function o(e){this._isDirected=!r.has(e,"directed")||e.directed,this._isMultigraph=!!r.has(e,"multigraph")&&e.multigraph,this._isCompound=!!r.has(e,"compound")&&e.compound,this._label=void 0,this._defaultNodeLabelFn=r.constant(void 0),this._defaultEdgeLabelFn=r.constant(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children["\0"]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}function i(e,t){e[t]?e[t]++:e[t]=1}function a(e,t){--e[t]||delete e[t]}function l(e,t,n,o){var i=""+t,a=""+n;if(!e&&i>a){var l=i;i=a,a=l}return i+""+a+""+(r.isUndefined(o)?"\0":o)}function u(e,t,n,r){var o=""+t,i=""+n;if(!e&&o>i){var a=o;o=i,i=a}var l={v:o,w:i};return r&&(l.name=r),l}function s(e,t){return l(e,t.v,t.w,t.name)}o.prototype._nodeCount=0,o.prototype._edgeCount=0,o.prototype.isDirected=function(){return this._isDirected},o.prototype.isMultigraph=function(){return this._isMultigraph},o.prototype.isCompound=function(){return this._isCompound},o.prototype.setGraph=function(e){return this._label=e,this},o.prototype.graph=function(){return this._label},o.prototype.setDefaultNodeLabel=function(e){return r.isFunction(e)||(e=r.constant(e)),this._defaultNodeLabelFn=e,this},o.prototype.nodeCount=function(){return this._nodeCount},o.prototype.nodes=function(){return r.keys(this._nodes)},o.prototype.sources=function(){var e=this;return r.filter(this.nodes(),(function(t){return r.isEmpty(e._in[t])}))},o.prototype.sinks=function(){var e=this;return r.filter(this.nodes(),(function(t){return r.isEmpty(e._out[t])}))},o.prototype.setNodes=function(e,t){var n=arguments,o=this;return r.each(e,(function(e){n.length>1?o.setNode(e,t):o.setNode(e)})),this},o.prototype.setNode=function(e,t){return r.has(this._nodes,e)?(arguments.length>1&&(this._nodes[e]=t),this):(this._nodes[e]=arguments.length>1?t:this._defaultNodeLabelFn(e),this._isCompound&&(this._parent[e]="\0",this._children[e]={},this._children["\0"][e]=!0),this._in[e]={},this._preds[e]={},this._out[e]={},this._sucs[e]={},++this._nodeCount,this)},o.prototype.node=function(e){return this._nodes[e]},o.prototype.hasNode=function(e){return r.has(this._nodes,e)},o.prototype.removeNode=function(e){var t=this;if(r.has(this._nodes,e)){var n=function(e){t.removeEdge(t._edgeObjs[e])};delete this._nodes[e],this._isCompound&&(this._removeFromParentsChildList(e),delete this._parent[e],r.each(this.children(e),(function(e){t.setParent(e)})),delete this._children[e]),r.each(r.keys(this._in[e]),n),delete this._in[e],delete this._preds[e],r.each(r.keys(this._out[e]),n),delete this._out[e],delete this._sucs[e],--this._nodeCount}return this},o.prototype.setParent=function(e,t){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(r.isUndefined(t))t="\0";else{for(var n=t+="";!r.isUndefined(n);n=this.parent(n))if(n===e)throw new Error("Setting "+t+" as parent of "+e+" would create a cycle");this.setNode(t)}return this.setNode(e),this._removeFromParentsChildList(e),this._parent[e]=t,this._children[t][e]=!0,this},o.prototype._removeFromParentsChildList=function(e){delete this._children[this._parent[e]][e]},o.prototype.parent=function(e){if(this._isCompound){var t=this._parent[e];if("\0"!==t)return t}},o.prototype.children=function(e){if(r.isUndefined(e)&&(e="\0"),this._isCompound){var t=this._children[e];if(t)return r.keys(t)}else{if("\0"===e)return this.nodes();if(this.hasNode(e))return[]}},o.prototype.predecessors=function(e){var t=this._preds[e];if(t)return r.keys(t)},o.prototype.successors=function(e){var t=this._sucs[e];if(t)return r.keys(t)},o.prototype.neighbors=function(e){var t=this.predecessors(e);if(t)return r.union(t,this.successors(e))},o.prototype.isLeaf=function(e){return 0===(this.isDirected()?this.successors(e):this.neighbors(e)).length},o.prototype.filterNodes=function(e){var t=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});t.setGraph(this.graph());var n=this;r.each(this._nodes,(function(n,r){e(r)&&t.setNode(r,n)})),r.each(this._edgeObjs,(function(e){t.hasNode(e.v)&&t.hasNode(e.w)&&t.setEdge(e,n.edge(e))}));var o={};return this._isCompound&&r.each(t.nodes(),(function(e){t.setParent(e,function e(r){var i=n.parent(r);return void 0===i||t.hasNode(i)?(o[r]=i,i):i in o?o[i]:e(i)}(e))})),t},o.prototype.setDefaultEdgeLabel=function(e){return r.isFunction(e)||(e=r.constant(e)),this._defaultEdgeLabelFn=e,this},o.prototype.edgeCount=function(){return this._edgeCount},o.prototype.edges=function(){return r.values(this._edgeObjs)},o.prototype.setPath=function(e,t){var n=this,o=arguments;return r.reduce(e,(function(e,r){return o.length>1?n.setEdge(e,r,t):n.setEdge(e,r),r})),this},o.prototype.setEdge=function(){var e,t,n,o,a=!1,s=arguments[0];"object"==typeof s&&null!==s&&"v"in s?(e=s.v,t=s.w,n=s.name,2===arguments.length&&(o=arguments[1],a=!0)):(e=s,t=arguments[1],n=arguments[3],arguments.length>2&&(o=arguments[2],a=!0)),e=""+e,t=""+t,r.isUndefined(n)||(n=""+n);var c=l(this._isDirected,e,t,n);if(r.has(this._edgeLabels,c))return a&&(this._edgeLabels[c]=o),this;if(!r.isUndefined(n)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(e),this.setNode(t),this._edgeLabels[c]=a?o:this._defaultEdgeLabelFn(e,t,n);var f=u(this._isDirected,e,t,n);return e=f.v,t=f.w,Object.freeze(f),this._edgeObjs[c]=f,i(this._preds[t],e),i(this._sucs[e],t),this._in[t][c]=f,this._out[e][c]=f,this._edgeCount++,this},o.prototype.edge=function(e,t,n){var r=1===arguments.length?s(this._isDirected,arguments[0]):l(this._isDirected,e,t,n);return this._edgeLabels[r]},o.prototype.hasEdge=function(e,t,n){var o=1===arguments.length?s(this._isDirected,arguments[0]):l(this._isDirected,e,t,n);return r.has(this._edgeLabels,o)},o.prototype.removeEdge=function(e,t,n){var r=1===arguments.length?s(this._isDirected,arguments[0]):l(this._isDirected,e,t,n),o=this._edgeObjs[r];return o&&(e=o.v,t=o.w,delete this._edgeLabels[r],delete this._edgeObjs[r],a(this._preds[t],e),a(this._sucs[e],t),delete this._in[t][r],delete this._out[e][r],this._edgeCount--),this},o.prototype.inEdges=function(e,t){var n=this._in[e];if(n){var o=r.values(n);return t?r.filter(o,(function(e){return e.v===t})):o}},o.prototype.outEdges=function(e,t){var n=this._out[e];if(n){var o=r.values(n);return t?r.filter(o,(function(e){return e.w===t})):o}},o.prototype.nodeEdges=function(e,t){var n=this.inEdges(e,t);if(n)return n.concat(this.outEdges(e,t))}},,,,,,,,,,,function(e,t,n){"use strict";var r=n(25),o=n(21),i=n(33),a=n(1452),l=n(167),u=n(102),s=n(114),c=n(491),f=n(19),d=n(254),p=n(112),h=n(140),v=n(1453),g=n(4789),y=n(4792),m=n(260),b=n(204),x=n(1278),w=n(124),_=n(206),C=n(268),O=n(123),E=n(101),M=l.PROPER,S=l.CONFIGURABLE,A=E.getterFor("ArrayBuffer"),k=E.getterFor("DataView"),j=E.set,T=r.ArrayBuffer,P=T,L=P&&P.prototype,z=r.DataView,N=z&&z.prototype,D=Object.prototype,I=r.Array,R=r.RangeError,H=o(x),B=o([].reverse),F=y.pack,V=y.unpack,$=function(e){return[255&e]},U=function(e){return[255&e,e>>8&255]},Z=function(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]},W=function(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]},K=function(e){return F(g(e),23,4)},G=function(e){return F(e,52,8)},q=function(e,t,n){s(e.prototype,t,{configurable:!0,get:function(){return n(this)[t]}})},Y=function(e,t,n,r){var o=k(e),i=v(n),a=!!r;if(i+t>o.byteLength)throw new R("Wrong index");var l=o.bytes,u=i+o.byteOffset,s=w(l,u,u+t);return a?s:B(s)},X=function(e,t,n,r,o,i){var a=k(e),l=v(n),u=r(+o),s=!!i;if(l+t>a.byteLength)throw new R("Wrong index");for(var c=a.bytes,f=l+a.byteOffset,d=0;d>24)},setUint8:function(e,t){ee(this,e,t<<24>>24)}},{unsafe:!0})}else L=(P=function(e){d(this,L);var t=v(e);j(this,{type:"ArrayBuffer",bytes:H(I(t),0),byteLength:t}),i||(this.byteLength=t,this.detached=!1)}).prototype,N=(z=function(e,t,n){d(this,N),d(e,L);var r=A(e),o=r.byteLength,a=p(t);if(a<0||a>o)throw new R("Wrong offset");if(a+(n=void 0===n?o-a:h(n))>o)throw new R("Wrong length");j(this,{type:"DataView",buffer:e,byteLength:n,byteOffset:a,bytes:r.bytes}),i||(this.buffer=e,this.byteLength=n,this.byteOffset=a)}).prototype,i&&(q(P,"byteLength",A),q(z,"buffer",k),q(z,"byteLength",k),q(z,"byteOffset",k)),c(N,{getInt8:function(e){return Y(this,1,e)[0]<<24>>24},getUint8:function(e){return Y(this,1,e)[0]},getInt16:function(e){var t=Y(this,2,e,arguments.length>1&&arguments[1]);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=Y(this,2,e,arguments.length>1&&arguments[1]);return t[1]<<8|t[0]},getInt32:function(e){return W(Y(this,4,e,arguments.length>1&&arguments[1]))},getUint32:function(e){return W(Y(this,4,e,arguments.length>1&&arguments[1]))>>>0},getFloat32:function(e){return V(Y(this,4,e,arguments.length>1&&arguments[1]),23)},getFloat64:function(e){return V(Y(this,8,e,arguments.length>1&&arguments[1]),52)},setInt8:function(e,t){X(this,1,e,$,t)},setUint8:function(e,t){X(this,1,e,$,t)},setInt16:function(e,t){X(this,2,e,U,t,arguments.length>2&&arguments[2])},setUint16:function(e,t){X(this,2,e,U,t,arguments.length>2&&arguments[2])},setInt32:function(e,t){X(this,4,e,Z,t,arguments.length>2&&arguments[2])},setUint32:function(e,t){X(this,4,e,Z,t,arguments.length>2&&arguments[2])},setFloat32:function(e,t){X(this,4,e,K,t,arguments.length>2&&arguments[2])},setFloat64:function(e,t){X(this,8,e,G,t,arguments.length>2&&arguments[2])}});O(P,"ArrayBuffer"),O(z,"DataView"),e.exports={ArrayBuffer:P,DataView:z}},function(e,t,n){"use strict";e.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},function(e,t,n){"use strict";var r=n(112),o=n(140),i=RangeError;e.exports=function(e){if(void 0===e)return 0;var t=r(e),n=o(t);if(t!==n)throw new i("Wrong length or index");return n}},function(e,t,n){"use strict";var r=n(267),o=TypeError;e.exports=function(e){var t=r(e,"number");if("number"==typeof t)throw new o("Can't convert number to bigint");return BigInt(t)}},function(e,t,n){"use strict";var r=n(99);e.exports=function(e,t,n){for(var o=0,i=arguments.length>2?n:r(t),a=new e(i);i>o;)a[o]=t[o++];return a}},function(e,t,n){var r=n(473),o=n(1457);function i(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}i.prototype=r(o.prototype),i.prototype.constructor=i,e.exports=i},function(e,t){e.exports=function(){}},function(e,t){e.exports=function(e){return e.placeholder}},,,,,,,,function(e,t,n){"use strict";var r=n(1027),o=Object(r.a)(Object,"create");var i=function(){this.__data__=o?o(null):{},this.size=0};var a=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},l=Object.prototype.hasOwnProperty;var u=function(e){var t=this.__data__;if(o){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return l.call(t,e)?t[e]:void 0},s=Object.prototype.hasOwnProperty;var c=function(e){var t=this.__data__;return o?void 0!==t[e]:s.call(t,e)};var f=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=o&&void 0===t?"__lodash_hash_undefined__":t,this};function d(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t63&&!t.ignore_max_length)&&(!!/^[a-z_\u00a1-\uffff0-9-]+$/i.test(e)&&(!/[\uff01-\uff5e]/.test(e)&&(!/^-|-$/.test(e)&&!(!t.allow_underscores&&/_/.test(e)))))}))};var r=i(n(797)),o=i(n(882));function i(e){return e&&e.__esModule?e:{default:e}}var a={require_tld:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_numeric_tld:!1,allow_wildcard:!1,ignore_max_length:!1};e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,o.default)(e);var n=(t=t||{}).hasOwnProperty("allow_leading_zeroes")&&!t.allow_leading_zeroes?i:a,r=!t.hasOwnProperty("min")||e>=t.min,l=!t.hasOwnProperty("max")||e<=t.max,u=!t.hasOwnProperty("lt")||et.gt;return n.test(e)&&r&&l&&u&&s};var r,o=(r=n(797))&&r.__esModule?r:{default:r};var i=/^(?:[-+]?(?:0|[1-9][0-9]*))$/,a=/^[-+]?[0-9]+$/;e.exports=t.default,e.exports.default=t.default},,,,,,,,,,,,,,,,function(e,t,n){var r=n(526),o=n(60);e.exports=function(e,t,n,i){return null==e?[]:(o(t)||(t=null==t?[]:[t]),o(n=i?void 0:n)||(n=null==n?[]:[n]),r(e,t,n))}},,,,function(e,t,n){var r=n(203);e.exports=function(e){return"function"==typeof e?e:r}},function(e,t,n){"use strict";var r=n(1659),o=Object(r.a)();t.a=o},function(e,t,n){"use strict";var r=n(1027),o=n(860),i=Object(r.a)(o.a,"Map");t.a=i},function(e,t){e.exports=function(e){if(!e.webpackPolyfill){var t=Object.create(e);t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),Object.defineProperty(t,"exports",{enumerable:!0}),t.webpackPolyfill=1}return t}},function(e,t,n){"use strict";var r=n(1662);t.a=function(e){var t=new e.constructor(e.byteLength);return new r.a(t).set(new r.a(e)),t}},function(e,t,n){"use strict";t.a=function(e,t){for(var n=-1,r=Array(e);++n1&&(a.normalizer=n(3494)(t)):a.normalizer=!1===t?n(3495)():1===t?n(3499)():n(3500)(t)),a.async&&n(3501),a.promise&&n(3504),a.dispose&&n(3510),a.maxAge&&n(3511),a.max&&n(3514),a.refCounter&&n(3516),i(e,a)}},function(e,t,n){"use strict";e.exports=n(3478)()?Array.from:n(3479)},function(e,t,n){"use strict";var r=n(3496),o=n(1018),i=n(1067),a=Array.prototype.indexOf,l=Object.prototype.hasOwnProperty,u=Math.abs,s=Math.floor;e.exports=function(e){var t,n,c,f;if(!r(e))return a.apply(this,arguments);for(n=o(i(this).length),c=arguments[1],t=c=isNaN(c)?0:c>=0?s(c):o(this.length)-s(u(c));t"string"==typeof e?e.replace(r(),""):e;e.exports=o,e.exports.default=o},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";var r=n(8),o=n(25),i=n(78),a=n(21),l=n(39),u=n(19),s=n(46),c=n(328),f=n(4508).c2i,d=/[^\d+/a-z]/i,p=/[\t\n\f\r ]+/g,h=/[=]{1,2}$/,v=i("atob"),g=String.fromCharCode,y=a("".charAt),m=a("".replace),b=a(d.exec),x=!!v&&!u((function(){return"hi"!==v("aGk=")})),w=x&&u((function(){return""!==v(" ")})),_=x&&!u((function(){v("a")})),C=x&&!u((function(){v()})),O=x&&1!==v.length;r({global:!0,bind:!0,enumerable:!0,forced:!x||w||_||C||O},{atob:function(e){if(c(arguments.length,1),x&&!w&&!_)return l(v,o,e);var t,n,r,a=m(s(e),p,""),u="",C=0,O=0;if(a.length%4==0&&(a=m(a,h,"")),(t=a.length)%4==1||b(d,a))throw new(i("DOMException"))("The string is not correctly encoded","InvalidCharacterError");for(;C>(-2*O&6)));return u}})},function(e,t,n){"use strict";var r=n(8),o=n(1886),i=n(78),a=n(19),l=n(115),u=n(142),s=n(70).f,c=n(67),f=n(114),d=n(53),p=n(254),h=n(50),v=n(509),g=n(341),y=n(1887),m=n(487),b=n(101),x=n(33),w=n(79),_=i("Error"),C=i("DOMException")||function(){try{(new(i("MessageChannel")||o("worker_threads").MessageChannel)).port1.postMessage(new WeakMap)}catch(e){if("DATA_CLONE_ERR"===e.name&&25===e.code)return e.constructor}}(),O=C&&C.prototype,E=_.prototype,M=b.set,S=b.getterFor("DOMException"),A="stack"in new _("DOMException"),k=function(e){return d(y,e)&&y[e].m?y[e].c:0},j=function(){p(this,T);var e=arguments.length,t=g(e<1?void 0:arguments[0]),n=g(e<2?void 0:arguments[1],"Error"),r=k(n);if(M(this,{type:"DOMException",name:n,message:t,code:r}),x||(this.name=n,this.message=t,this.code=r),A){var o=new _(t);o.name="DOMException",s(this,"stack",u(1,m(o.stack,1)))}},T=j.prototype=l(E),P=function(e){return{enumerable:!0,configurable:!0,get:e}},L=function(e){return P((function(){return S(this)[e]}))};x&&(f(T,"code",L("code")),f(T,"message",L("message")),f(T,"name",L("name"))),s(T,"constructor",u(1,j));var z=a((function(){return!(new C instanceof _)})),N=z||a((function(){return E.toString!==v||"2: 1"!==String(new C(1,2))})),D=z||a((function(){return 25!==new C(1,"DataCloneError").code})),I=z||25!==C.DATA_CLONE_ERR||25!==O.DATA_CLONE_ERR,R=w?N||D||I:z;r({global:!0,constructor:!0,forced:R},{DOMException:R?j:C});var H=i("DOMException"),B=H.prototype;for(var F in N&&(w||C===H)&&c(B,"toString",v),D&&x&&C===H&&f(B,"code",P((function(){return k(h(this).name)}))),y)if(d(y,F)){var V=y[F],$=V.s,U=u(6,V.c);d(H,$)||s(H,$,U),d(B,$)||s(B,$,U)}},function(e,t,n){"use strict";var r=n(8),o=n(25),i=n(78),a=n(142),l=n(70).f,u=n(53),s=n(254),c=n(206),f=n(341),d=n(1887),p=n(487),h=n(33),v=n(79),g=i("Error"),y=i("DOMException"),m=function(){s(this,b);var e=arguments.length,t=f(e<1?void 0:arguments[0]),n=f(e<2?void 0:arguments[1],"Error"),r=new y(t,n),o=new g(t);return o.name="DOMException",l(r,"stack",a(1,p(o.stack,1))),c(r,this,m),r},b=m.prototype=y.prototype,x="stack"in new g("DOMException"),w="stack"in new y(1,2),_=y&&h&&Object.getOwnPropertyDescriptor(o,"DOMException"),C=!(!_||_.writable&&_.configurable),O=x&&!C&&!w;r({global:!0,constructor:!0,forced:v||O},{DOMException:O?m:y});var E=i("DOMException"),M=E.prototype;if(M.constructor!==E)for(var S in v||l(M,"constructor",a(1,E)),d)if(u(d,S)){var A=d[S],k=A.s;u(E,k)||l(E,k,a(6,A.c))}},function(e,t,n){"use strict";var r=n(78);n(123)(r("DOMException"),"DOMException")},,,function(e,t,n){"use strict";t.a=function(e){return function(){return this.matches(e)}}},function(e,t,n){"use strict";function r(){return[]}t.a=function(e){return null==e?r:function(){return this.querySelectorAll(e)}}},function(e,t,n){"use strict";n.d(t,"b",(function(){return l}));var r=n(1242);function o(e){return function(){this.style.removeProperty(e)}}function i(e,t,n){return function(){this.style.setProperty(e,t,n)}}function a(e,t,n){return function(){var r=t.apply(this,arguments);null==r?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function l(e,t){return e.style.getPropertyValue(t)||Object(r.a)(e).getComputedStyle(e,null).getPropertyValue(t)}t.a=function(e,t,n){return arguments.length>1?this.each((null==t?o:"function"==typeof t?a:i)(e,t,null==n?"":n)):l(this.node(),e)}},function(e,t,n){"use strict";var r=n(1141);t.a=function(){for(var e,t=r.c;e=t.sourceEvent;)t=e;return t}},function(e,t,n){"use strict";var r=n(1257);t.a=function(e){return"string"==typeof e?new r.a([[document.querySelector(e)]],[document.documentElement]):new r.a([[e]],r.c)}},function(e,t,n){"use strict";var r=n(908);e.exports=o;function o(e){this._isDirected=!r.has(e,"directed")||e.directed,this._isMultigraph=!!r.has(e,"multigraph")&&e.multigraph,this._isCompound=!!r.has(e,"compound")&&e.compound,this._label=void 0,this._defaultNodeLabelFn=r.constant(void 0),this._defaultEdgeLabelFn=r.constant(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children["\0"]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}function i(e,t){e[t]?e[t]++:e[t]=1}function a(e,t){--e[t]||delete e[t]}function l(e,t,n,o){var i=""+t,a=""+n;if(!e&&i>a){var l=i;i=a,a=l}return i+""+a+""+(r.isUndefined(o)?"\0":o)}function u(e,t,n,r){var o=""+t,i=""+n;if(!e&&o>i){var a=o;o=i,i=a}var l={v:o,w:i};return r&&(l.name=r),l}function s(e,t){return l(e,t.v,t.w,t.name)}o.prototype._nodeCount=0,o.prototype._edgeCount=0,o.prototype.isDirected=function(){return this._isDirected},o.prototype.isMultigraph=function(){return this._isMultigraph},o.prototype.isCompound=function(){return this._isCompound},o.prototype.setGraph=function(e){return this._label=e,this},o.prototype.graph=function(){return this._label},o.prototype.setDefaultNodeLabel=function(e){return r.isFunction(e)||(e=r.constant(e)),this._defaultNodeLabelFn=e,this},o.prototype.nodeCount=function(){return this._nodeCount},o.prototype.nodes=function(){return r.keys(this._nodes)},o.prototype.sources=function(){var e=this;return r.filter(this.nodes(),(function(t){return r.isEmpty(e._in[t])}))},o.prototype.sinks=function(){var e=this;return r.filter(this.nodes(),(function(t){return r.isEmpty(e._out[t])}))},o.prototype.setNodes=function(e,t){var n=arguments,o=this;return r.each(e,(function(e){n.length>1?o.setNode(e,t):o.setNode(e)})),this},o.prototype.setNode=function(e,t){return r.has(this._nodes,e)?(arguments.length>1&&(this._nodes[e]=t),this):(this._nodes[e]=arguments.length>1?t:this._defaultNodeLabelFn(e),this._isCompound&&(this._parent[e]="\0",this._children[e]={},this._children["\0"][e]=!0),this._in[e]={},this._preds[e]={},this._out[e]={},this._sucs[e]={},++this._nodeCount,this)},o.prototype.node=function(e){return this._nodes[e]},o.prototype.hasNode=function(e){return r.has(this._nodes,e)},o.prototype.removeNode=function(e){var t=this;if(r.has(this._nodes,e)){var n=function(e){t.removeEdge(t._edgeObjs[e])};delete this._nodes[e],this._isCompound&&(this._removeFromParentsChildList(e),delete this._parent[e],r.each(this.children(e),(function(e){t.setParent(e)})),delete this._children[e]),r.each(r.keys(this._in[e]),n),delete this._in[e],delete this._preds[e],r.each(r.keys(this._out[e]),n),delete this._out[e],delete this._sucs[e],--this._nodeCount}return this},o.prototype.setParent=function(e,t){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(r.isUndefined(t))t="\0";else{for(var n=t+="";!r.isUndefined(n);n=this.parent(n))if(n===e)throw new Error("Setting "+t+" as parent of "+e+" would create a cycle");this.setNode(t)}return this.setNode(e),this._removeFromParentsChildList(e),this._parent[e]=t,this._children[t][e]=!0,this},o.prototype._removeFromParentsChildList=function(e){delete this._children[this._parent[e]][e]},o.prototype.parent=function(e){if(this._isCompound){var t=this._parent[e];if("\0"!==t)return t}},o.prototype.children=function(e){if(r.isUndefined(e)&&(e="\0"),this._isCompound){var t=this._children[e];if(t)return r.keys(t)}else{if("\0"===e)return this.nodes();if(this.hasNode(e))return[]}},o.prototype.predecessors=function(e){var t=this._preds[e];if(t)return r.keys(t)},o.prototype.successors=function(e){var t=this._sucs[e];if(t)return r.keys(t)},o.prototype.neighbors=function(e){var t=this.predecessors(e);if(t)return r.union(t,this.successors(e))},o.prototype.isLeaf=function(e){return 0===(this.isDirected()?this.successors(e):this.neighbors(e)).length},o.prototype.filterNodes=function(e){var t=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});t.setGraph(this.graph());var n=this;r.each(this._nodes,(function(n,r){e(r)&&t.setNode(r,n)})),r.each(this._edgeObjs,(function(e){t.hasNode(e.v)&&t.hasNode(e.w)&&t.setEdge(e,n.edge(e))}));var o={};return this._isCompound&&r.each(t.nodes(),(function(e){t.setParent(e,function e(r){var i=n.parent(r);return void 0===i||t.hasNode(i)?(o[r]=i,i):i in o?o[i]:e(i)}(e))})),t},o.prototype.setDefaultEdgeLabel=function(e){return r.isFunction(e)||(e=r.constant(e)),this._defaultEdgeLabelFn=e,this},o.prototype.edgeCount=function(){return this._edgeCount},o.prototype.edges=function(){return r.values(this._edgeObjs)},o.prototype.setPath=function(e,t){var n=this,o=arguments;return r.reduce(e,(function(e,r){return o.length>1?n.setEdge(e,r,t):n.setEdge(e,r),r})),this},o.prototype.setEdge=function(){var e,t,n,o,a=!1,s=arguments[0];"object"==typeof s&&null!==s&&"v"in s?(e=s.v,t=s.w,n=s.name,2===arguments.length&&(o=arguments[1],a=!0)):(e=s,t=arguments[1],n=arguments[3],arguments.length>2&&(o=arguments[2],a=!0)),e=""+e,t=""+t,r.isUndefined(n)||(n=""+n);var c=l(this._isDirected,e,t,n);if(r.has(this._edgeLabels,c))return a&&(this._edgeLabels[c]=o),this;if(!r.isUndefined(n)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(e),this.setNode(t),this._edgeLabels[c]=a?o:this._defaultEdgeLabelFn(e,t,n);var f=u(this._isDirected,e,t,n);return e=f.v,t=f.w,Object.freeze(f),this._edgeObjs[c]=f,i(this._preds[t],e),i(this._sucs[e],t),this._in[t][c]=f,this._out[e][c]=f,this._edgeCount++,this},o.prototype.edge=function(e,t,n){var r=1===arguments.length?s(this._isDirected,arguments[0]):l(this._isDirected,e,t,n);return this._edgeLabels[r]},o.prototype.hasEdge=function(e,t,n){var o=1===arguments.length?s(this._isDirected,arguments[0]):l(this._isDirected,e,t,n);return r.has(this._edgeLabels,o)},o.prototype.removeEdge=function(e,t,n){var r=1===arguments.length?s(this._isDirected,arguments[0]):l(this._isDirected,e,t,n),o=this._edgeObjs[r];return o&&(e=o.v,t=o.w,delete this._edgeLabels[r],delete this._edgeObjs[r],a(this._preds[t],e),a(this._sucs[e],t),delete this._in[t][r],delete this._out[e][r],this._edgeCount--),this},o.prototype.inEdges=function(e,t){var n=this._in[e];if(n){var o=r.values(n);return t?r.filter(o,(function(e){return e.v===t})):o}},o.prototype.outEdges=function(e,t){var n=this._out[e];if(n){var o=r.values(n);return t?r.filter(o,(function(e){return e.w===t})):o}},o.prototype.nodeEdges=function(e,t){var n=this.inEdges(e,t);if(n)return n.concat(this.outEdges(e,t))}},,,,,,,,,,,function(e,t,n){"use strict";var r=n(25),o=n(21),i=n(33),a=n(1452),l=n(167),u=n(102),s=n(114),c=n(491),f=n(19),d=n(254),p=n(112),h=n(140),v=n(1453),g=n(4790),y=n(4793),m=n(260),b=n(204),x=n(1278),w=n(124),_=n(206),C=n(268),O=n(123),E=n(101),M=l.PROPER,S=l.CONFIGURABLE,A=E.getterFor("ArrayBuffer"),k=E.getterFor("DataView"),j=E.set,T=r.ArrayBuffer,P=T,L=P&&P.prototype,z=r.DataView,N=z&&z.prototype,D=Object.prototype,I=r.Array,R=r.RangeError,H=o(x),B=o([].reverse),F=y.pack,V=y.unpack,$=function(e){return[255&e]},U=function(e){return[255&e,e>>8&255]},Z=function(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]},W=function(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]},K=function(e){return F(g(e),23,4)},G=function(e){return F(e,52,8)},q=function(e,t,n){s(e.prototype,t,{configurable:!0,get:function(){return n(this)[t]}})},Y=function(e,t,n,r){var o=k(e),i=v(n),a=!!r;if(i+t>o.byteLength)throw new R("Wrong index");var l=o.bytes,u=i+o.byteOffset,s=w(l,u,u+t);return a?s:B(s)},X=function(e,t,n,r,o,i){var a=k(e),l=v(n),u=r(+o),s=!!i;if(l+t>a.byteLength)throw new R("Wrong index");for(var c=a.bytes,f=l+a.byteOffset,d=0;d>24)},setUint8:function(e,t){ee(this,e,t<<24>>24)}},{unsafe:!0})}else L=(P=function(e){d(this,L);var t=v(e);j(this,{type:"ArrayBuffer",bytes:H(I(t),0),byteLength:t}),i||(this.byteLength=t,this.detached=!1)}).prototype,N=(z=function(e,t,n){d(this,N),d(e,L);var r=A(e),o=r.byteLength,a=p(t);if(a<0||a>o)throw new R("Wrong offset");if(a+(n=void 0===n?o-a:h(n))>o)throw new R("Wrong length");j(this,{type:"DataView",buffer:e,byteLength:n,byteOffset:a,bytes:r.bytes}),i||(this.buffer=e,this.byteLength=n,this.byteOffset=a)}).prototype,i&&(q(P,"byteLength",A),q(z,"buffer",k),q(z,"byteLength",k),q(z,"byteOffset",k)),c(N,{getInt8:function(e){return Y(this,1,e)[0]<<24>>24},getUint8:function(e){return Y(this,1,e)[0]},getInt16:function(e){var t=Y(this,2,e,arguments.length>1&&arguments[1]);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=Y(this,2,e,arguments.length>1&&arguments[1]);return t[1]<<8|t[0]},getInt32:function(e){return W(Y(this,4,e,arguments.length>1&&arguments[1]))},getUint32:function(e){return W(Y(this,4,e,arguments.length>1&&arguments[1]))>>>0},getFloat32:function(e){return V(Y(this,4,e,arguments.length>1&&arguments[1]),23)},getFloat64:function(e){return V(Y(this,8,e,arguments.length>1&&arguments[1]),52)},setInt8:function(e,t){X(this,1,e,$,t)},setUint8:function(e,t){X(this,1,e,$,t)},setInt16:function(e,t){X(this,2,e,U,t,arguments.length>2&&arguments[2])},setUint16:function(e,t){X(this,2,e,U,t,arguments.length>2&&arguments[2])},setInt32:function(e,t){X(this,4,e,Z,t,arguments.length>2&&arguments[2])},setUint32:function(e,t){X(this,4,e,Z,t,arguments.length>2&&arguments[2])},setFloat32:function(e,t){X(this,4,e,K,t,arguments.length>2&&arguments[2])},setFloat64:function(e,t){X(this,8,e,G,t,arguments.length>2&&arguments[2])}});O(P,"ArrayBuffer"),O(z,"DataView"),e.exports={ArrayBuffer:P,DataView:z}},function(e,t,n){"use strict";e.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},function(e,t,n){"use strict";var r=n(112),o=n(140),i=RangeError;e.exports=function(e){if(void 0===e)return 0;var t=r(e),n=o(t);if(t!==n)throw new i("Wrong length or index");return n}},function(e,t,n){"use strict";var r=n(267),o=TypeError;e.exports=function(e){var t=r(e,"number");if("number"==typeof t)throw new o("Can't convert number to bigint");return BigInt(t)}},function(e,t,n){"use strict";var r=n(99);e.exports=function(e,t,n){for(var o=0,i=arguments.length>2?n:r(t),a=new e(i);i>o;)a[o]=t[o++];return a}},function(e,t,n){var r=n(473),o=n(1457);function i(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}i.prototype=r(o.prototype),i.prototype.constructor=i,e.exports=i},function(e,t){e.exports=function(){}},function(e,t){e.exports=function(e){return e.placeholder}},,,,,,,,function(e,t,n){"use strict";var r=n(1027),o=Object(r.a)(Object,"create");var i=function(){this.__data__=o?o(null):{},this.size=0};var a=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},l=Object.prototype.hasOwnProperty;var u=function(e){var t=this.__data__;if(o){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return l.call(t,e)?t[e]:void 0},s=Object.prototype.hasOwnProperty;var c=function(e){var t=this.__data__;return o?void 0!==t[e]:s.call(t,e)};var f=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=o&&void 0===t?"__lodash_hash_undefined__":t,this};function d(e){var t=-1,n=null==e?0:e.length;for(this.clear();++te.length?n:e})),s.value=e.join(f)}else s.value=e.join(n.slice(l,l+s.count));l+=s.count,s.added||(u+=s.count)}}var d=t[a-1];return a>1&&"string"==typeof d.value&&(d.added||d.removed)&&e.equals("",d.value)&&(t[a-2].value+=d.value,t.pop()),t}function r(e){return{newPos:e.newPos,components:e.components.slice(0)}}t.prototype={diff:function(e,t){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=o.callback;"function"==typeof o&&(i=o,o={}),this.options=o;var a=this;function l(e){return i?(setTimeout((function(){i(void 0,e)}),0),!0):e}e=this.castInput(e),t=this.castInput(t),e=this.removeEmpty(this.tokenize(e));var u=(t=this.removeEmpty(this.tokenize(t))).length,s=e.length,c=1,f=u+s,d=[{newPos:-1,components:[]}],p=this.extractCommon(d[0],t,e,0);if(d[0].newPos+1>=u&&p+1>=s)return l([{value:this.join(t),count:t.length}]);function h(){for(var o=-1*c;o<=c;o+=2){var i=void 0,f=d[o-1],p=d[o+1],h=(p?p.newPos:0)-o;f&&(d[o-1]=void 0);var v=f&&f.newPos+1=u&&h+1>=s)return l(n(a,i.components,t,e,a.useLongestToken));d[o]=i}else d[o]=void 0}c++}if(i)!function e(){setTimeout((function(){if(c>f)return i();h()||e()}),0)}();else for(;c<=f;){var v=h();if(v)return v}},pushComponent:function(e,t,n){var r=e[e.length-1];r&&r.added===t&&r.removed===n?e[e.length-1]={count:r.count+1,added:t,removed:n}:e.push({count:1,added:t,removed:n})},extractCommon:function(e,t,n,r){for(var o=t.length,i=n.length,a=e.newPos,l=a-r,u=0;a+11&&void 0!==arguments[1]?arguments[1]:{},n=e.split(/\r\n|[\n\v\f\r\x85]/),r=e.match(/\r\n|[\n\v\f\r\x85]/g)||[],o=[],i=0;function a(){var e={};for(o.push(e);i2&&void 0!==arguments[2]?arguments[2]:{};if("string"==typeof t&&(t=b(t)),Array.isArray(t)){if(t.length>1)throw new Error("applyPatch only works with a single input.");t=t[0]}var r,o,i=e.split(/\r\n|[\n\v\f\r\x85]/),a=e.match(/\r\n|[\n\v\f\r\x85]/g)||[],l=t.hunks,u=n.compareLine||function(e,t,n,r){return t===r},s=0,c=n.fuzzFactor||0,f=0,d=0;function p(e,t){for(var n=0;n0?r[0]:" ",a=r.length>0?r.substr(1):r;if(" "===o||"-"===o){if(!u(t+1,i[t],o,a)&&++s>c)return!1;t++}}return!0}for(var h=0;h0?S[0]:" ",k=S.length>0?S.substr(1):S,j=O.linedelimiters[M];if(" "===A)E++;else if("-"===A)i.splice(E,1),a.splice(E,1);else if("+"===A)i.splice(E,0,k),a.splice(E,0,j),E++;else if("\\"===A){var T=O.lines[M-1]?O.lines[M-1][0]:null;"+"===T?r=!0:"-"===T&&(o=!0)}}}if(r)for(;!i[i.length-1];)i.pop(),a.pop();else o&&(i.push(""),a.push("\n"));for(var P=0;P0?u(c.lines.slice(-a.context)):[],f-=p.length,d-=p.length)}(i=p).push.apply(i,h(o.map((function(e){return(t.added?"+":"-")+e})))),t.added?g+=o.length:v+=o.length}else{if(f)if(o.length<=2*a.context&&e=l.length-2&&o.length<=a.context){var w=/\n$/.test(n),_=/\n$/.test(r),C=0==o.length&&p.length>x.oldLines;!w&&C&&p.splice(x.oldLines,0,"\\ No newline at end of file"),(w||C)&&_||p.push("\\ No newline at end of file")}s.push(x),f=0,d=0,p=[]}v+=o.length,g+=o.length}},m=0;me.length)return!1;for(var n=0;n"):r.removed&&t.push(""),t.push((o=r.value,void 0,o.replace(/&/g,"&").replace(//g,">").replace(/"/g,"""))),r.added?t.push(""):r.removed&&t.push("")}var o;return t.join("")},e.canonicalize=y,Object.defineProperty(e,"__esModule",{value:!0})}(t)},function(e,t,n){var r=n(3899);r.Template=n(3900).Template,r.template=r.Template,e.exports=r},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t){var n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(n){var r=new Uint8Array(16);e.exports=function(){return n(r),r}}else{var o=new Array(16);e.exports=function(){for(var e,t=0;t<16;t++)0==(3&t)&&(e=4294967296*Math.random()),o[t]=e>>>((3&t)<<3)&255;return o}}},function(e,t){for(var n=[],r=0;r<256;++r)n[r]=(r+256).toString(16).substr(1);e.exports=function(e,t){var r=t||0,o=n;return[o[e[r++]],o[e[r++]],o[e[r++]],o[e[r++]],"-",o[e[r++]],o[e[r++]],"-",o[e[r++]],o[e[r++]],"-",o[e[r++]],o[e[r++]],"-",o[e[r++]],o[e[r++]],o[e[r++]],o[e[r++]],o[e[r++]],o[e[r++]]].join("")}},,,,,,,,,,,,,,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=m(n(806)),o=m(n(194)),i=function(e){if(e&&e.__esModule)return e;var t=y();if(t&&t.has(e))return t.get(e);var n={};if(null!=e){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}}n.default=e,t&&t.set(e,n);return n}(n(0)),a=m(n(1)),l=m(n(990)),u=m(n(3)),s=n(826),c=n(809),f=n(926),d=n(911),p=m(n(1528)),h=m(n(946)),v=m(n(868)),g=m(n(1030));function y(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return y=function(){return e},e}function m(e){return e&&e.__esModule?e:{default:e}}function b(e){return(b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function x(){return(x=Object.assign||function(e){for(var t=1;t0&&(i=u.removeMin(),(a=l[i]).distance!==Number.POSITIVE_INFINITY);)r(i).forEach(s);return l}(e,String(t),n||i,r||function(t){return e.outEdges(t)})};var i=r.constant(1)},function(e,t,n){var r=n(908);function o(){this._arr=[],this._keyIndices={}}e.exports=o,o.prototype.size=function(){return this._arr.length},o.prototype.keys=function(){return this._arr.map((function(e){return e.key}))},o.prototype.has=function(e){return r.has(this._keyIndices,e)},o.prototype.priority=function(e){var t=this._keyIndices[e];if(void 0!==t)return this._arr[t].priority},o.prototype.min=function(){if(0===this.size())throw new Error("Queue underflow");return this._arr[0].key},o.prototype.add=function(e,t){var n=this._keyIndices;if(e=String(e),!r.has(n,e)){var o=this._arr,i=o.length;return n[e]=i,o.push({key:e,priority:t}),this._decrease(i),!0}return!1},o.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var e=this._arr.pop();return delete this._keyIndices[e.key],this._heapify(0),e.key},o.prototype.decrease=function(e,t){var n=this._keyIndices[e];if(t>this._arr[n].priority)throw new Error("New priority is greater than current priority. Key: "+e+" Old: "+this._arr[n].priority+" New: "+t);this._arr[n].priority=t,this._decrease(n)},o.prototype._heapify=function(e){var t=this._arr,n=2*e,r=n+1,o=e;n>1].priority=t.length)return e.target=void 0,A(void 0,!0);var r=t[n];switch(e.kind){case"keys":return A(r.key,!1);case"values":return A(r.value,!1)}return A([r.key,r.value],!1)}),!0),se=function(e){this.entries=[],this.url=null,void 0!==e&&(_(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===Z(e,0)?J(e,1):e:C(e)))};se.prototype={type:"URLSearchParams",bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,n,r,o,i,l,u,s=this.entries,c=S(e);if(c)for(n=(t=M(e,c)).next;!(r=a(n,t)).done;){if(i=(o=M(w(r.value))).next,(l=a(i,o)).done||(u=a(i,o)).done||!a(i,o).done)throw new V("Expected sequence with length 2");K(s,{key:C(l.value),value:C(u.value)})}else for(var f in e)m(e,f)&&K(s,{key:f,value:C(e[f])})},parseQuery:function(e){if(e)for(var t,n,r=this.entries,o=X(e,"&"),i=0;i0?arguments[0]:void 0,t=L(this,new se(e));u||(this.size=t.entries.length)},fe=ce.prototype;if(d(fe,{append:function(e,t){var n=z(this);k(arguments.length,2),K(n.entries,{key:C(e),value:C(t)}),u||this.length++,n.updateURL()},delete:function(e){for(var t=z(this),n=k(arguments.length,1),r=t.entries,o=C(e),i=n<2?void 0:arguments[1],a=void 0===i?i:C(i),l=0;lt.key?1:-1})),e.updateURL()},forEach:function(e){for(var t,n=z(this).entries,r=b(e,arguments.length>1?arguments[1]:void 0),o=0;o1?he(arguments[1]):{})}}),y(I)){var ve=function(e){return g(this,H),new I(e,arguments.length>1?he(arguments[1]):{})};H.constructor=ve,ve.prototype=H,r({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:ve})}}e.exports={URLSearchParams:ce,getState:z}},function(e,t,n){"use strict";var r=n(8),o=n(39);r({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return o(URL.prototype.toString,this)}})},function(e,t,n){"use strict";n(1920)},function(e,t,n){"use strict";var r=n(67),o=n(21),i=n(46),a=n(328),l=URLSearchParams,u=l.prototype,s=o(u.append),c=o(u.delete),f=o(u.forEach),d=o([].push),p=new l("a=1&a=2&b=3");p.delete("a",1),p.delete("b",void 0),p+""!="a=2"&&r(u,"delete",(function(e){var t=arguments.length,n=t<2?void 0:arguments[1];if(t&&void 0===n)return c(this,e);var r=[];f(this,(function(e,t){d(r,{key:t,value:e})})),a(t,1);for(var o,l=i(e),u=i(n),p=0,h=0,v=!1,g=r.length;p2?arguments[2]:void 0)}))},function(e,t,n){"use strict";var r=n(811),o=n(113).every,i=r.aTypedArray;(0,r.exportTypedArrayMethod)("every",(function(e){return o(i(this),e,arguments.length>1?arguments[1]:void 0)}))},function(e,t,n){"use strict";var r=n(811),o=n(1278),i=n(1454),a=n(202),l=n(39),u=n(21),s=n(19),c=r.aTypedArray,f=r.exportTypedArrayMethod,d=u("".slice);f("fill",(function(e){var t=arguments.length;c(this);var n="Big"===d(a(this),0,3)?i(e):+e;return l(o,this,n,t>1?arguments[1]:void 0,t>2?arguments[2]:void 0)}),s((function(){var e=0;return new Int8Array(2).fill({valueOf:function(){return e++}}),1!==e})))},function(e,t,n){"use strict";var r=n(811),o=n(113).filter,i=n(4799),a=r.aTypedArray;(0,r.exportTypedArrayMethod)("filter",(function(e){var t=o(a(this),e,arguments.length>1?arguments[1]:void 0);return i(this,t)}))},function(e,t,n){"use strict";var r=n(811),o=n(113).find,i=r.aTypedArray;(0,r.exportTypedArrayMethod)("find",(function(e){return o(i(this),e,arguments.length>1?arguments[1]:void 0)}))},function(e,t,n){"use strict";var r=n(811),o=n(113).findIndex,i=r.aTypedArray;(0,r.exportTypedArrayMethod)("findIndex",(function(e){return o(i(this),e,arguments.length>1?arguments[1]:void 0)}))},function(e,t,n){"use strict";var r=n(811),o=n(113).forEach,i=r.aTypedArray;(0,r.exportTypedArrayMethod)("forEach",(function(e){o(i(this),e,arguments.length>1?arguments[1]:void 0)}))},function(e,t,n){"use strict";var r=n(811),o=n(258).includes,i=r.aTypedArray;(0,r.exportTypedArrayMethod)("includes",(function(e){return o(i(this),e,arguments.length>1?arguments[1]:void 0)}))},function(e,t,n){"use strict";var r=n(811),o=n(258).indexOf,i=r.aTypedArray;(0,r.exportTypedArrayMethod)("indexOf",(function(e){return o(i(this),e,arguments.length>1?arguments[1]:void 0)}))},function(e,t,n){"use strict";var r=n(25),o=n(19),i=n(21),a=n(811),l=n(29),u=n(40)("iterator"),s=r.Uint8Array,c=i(l.values),f=i(l.keys),d=i(l.entries),p=a.aTypedArray,h=a.exportTypedArrayMethod,v=s&&s.prototype,g=!o((function(){v[u].call([1])})),y=!!v&&v.values&&v[u]===v.values&&"values"===v.values.name,m=function(){return c(p(this))};h("entries",(function(){return d(p(this))}),g),h("keys",(function(){return f(p(this))}),g),h("values",m,g||!y,{name:"values"}),h(u,m,g||!y,{name:"values"})},function(e,t,n){"use strict";var r=n(811),o=n(21),i=r.aTypedArray,a=r.exportTypedArrayMethod,l=o([].join);a("join",(function(e){return l(i(this),e)}))},function(e,t,n){"use strict";var r=n(811),o=n(144),i=n(1623),a=r.aTypedArray;(0,r.exportTypedArrayMethod)("lastIndexOf",(function(e){var t=arguments.length;return o(i,a(this),t>1?[e,arguments[1]]:[e])}))},function(e,t,n){"use strict";var r=n(811),o=n(113).map,i=n(1246),a=r.aTypedArray;(0,r.exportTypedArrayMethod)("map",(function(e){return o(a(this),e,arguments.length>1?arguments[1]:void 0,(function(e,t){return new(i(e))(t)}))}))},function(e,t,n){"use strict";var r=n(811),o=n(485).left,i=r.aTypedArray;(0,r.exportTypedArrayMethod)("reduce",(function(e){var t=arguments.length;return o(i(this),e,t,t>1?arguments[1]:void 0)}))},function(e,t,n){"use strict";var r=n(811),o=n(485).right,i=r.aTypedArray;(0,r.exportTypedArrayMethod)("reduceRight",(function(e){var t=arguments.length;return o(i(this),e,t,t>1?arguments[1]:void 0)}))},function(e,t,n){"use strict";var r=n(811),o=r.aTypedArray,i=r.exportTypedArrayMethod,a=Math.floor;i("reverse",(function(){for(var e,t=o(this).length,n=a(t/2),r=0;r1?arguments[1]:void 0,1),n=u(e);if(g)return o(p,this,n,t);var r=this.length,i=a(n),s=0;if(i+t>r)throw new c("Wrong length");for(;si;)s[i]=n[i++];return s}),i((function(){new Int8Array(1).slice()})))},function(e,t,n){"use strict";var r=n(811),o=n(113).some,i=r.aTypedArray;(0,r.exportTypedArrayMethod)("some",(function(e){return o(i(this),e,arguments.length>1?arguments[1]:void 0)}))},function(e,t,n){"use strict";var r=n(25),o=n(209),i=n(19),a=n(89),l=n(486),u=n(811),s=n(503),c=n(504),f=n(145),d=n(505),p=u.aTypedArray,h=u.exportTypedArrayMethod,v=r.Uint16Array,g=v&&o(v.prototype.sort),y=!(!g||i((function(){g(new v(2),null)}))&&i((function(){g(new v(2),{})}))),m=!!g&&!i((function(){if(f)return f<74;if(s)return s<67;if(c)return!0;if(d)return d<602;var e,t,n=new v(516),r=Array(516);for(e=0;e<516;e++)t=e%4,n[e]=515-e,r[e]=e-2*t+3;for(g(n,(function(e,t){return(e/4|0)-(t/4|0)})),e=0;e<516;e++)if(n[e]!==r[e])return!0}));h("sort",(function(e){return void 0!==e&&a(e),m?g(this,e):l(p(this),function(e){return function(t,n){return void 0!==e?+e(t,n)||0:n!=n?-1:t!=t?1:0===t&&0===n?1/t>0&&1/n<0?1:-1:t>n}}(e))}),!m||y)},function(e,t,n){"use strict";var r=n(811),o=n(140),i=n(256),a=n(1246),l=r.aTypedArray;(0,r.exportTypedArrayMethod)("subarray",(function(e,t){var n=l(this),r=n.length,u=i(e,r);return new(a(n))(n.buffer,n.byteOffset+u*n.BYTES_PER_ELEMENT,o((void 0===t?r:i(t,r))-u))}))},function(e,t,n){"use strict";var r=n(25),o=n(144),i=n(811),a=n(19),l=n(124),u=r.Int8Array,s=i.aTypedArray,c=i.exportTypedArrayMethod,f=[].toLocaleString,d=!!u&&a((function(){f.call(new u(1))}));c("toLocaleString",(function(){return o(f,d?l(s(this)):s(this),l(arguments))}),a((function(){return[1,2].toLocaleString()!==new u([1,2]).toLocaleString()}))||!a((function(){u.prototype.toLocaleString.call([1,2])})))},function(e,t,n){"use strict";var r=n(811).exportTypedArrayMethod,o=n(19),i=n(25),a=n(21),l=i.Uint8Array,u=l&&l.prototype||{},s=[].toString,c=a([].join);o((function(){s.call({})}))&&(s=function(){return c(this)});var f=u.toString!==s;r("toString",s,f)},function(e,t,n){"use strict";var r=n(21),o=n(1957),i=r(ArrayBuffer.prototype.slice);e.exports=function(e){if(0!==o(e))return!1;try{return i(e,0,0),!1}catch(e){return!0}}},function(e,t,n){"use strict";var r=n(338),o=n(91),i=TypeError;e.exports=r(ArrayBuffer.prototype,"byteLength","get")||function(e){if("ArrayBuffer"!==o(e))throw new i("ArrayBuffer expected");return e.byteLength}},function(e,t,n){"use strict";var r=n(25),o=n(21),i=n(338),a=n(1453),l=n(1956),u=n(1957),s=n(4804),c=n(1959),f=r.structuredClone,d=r.ArrayBuffer,p=r.DataView,h=r.TypeError,v=Math.min,g=d.prototype,y=p.prototype,m=o(g.slice),b=i(g,"resizable","get"),x=i(g,"maxByteLength","get"),w=o(y.getInt8),_=o(y.setInt8);e.exports=(c||s)&&function(e,t,n){var r,o=u(e),i=void 0===t?o:a(t),g=!b||!b(e);if(l(e))throw new h("ArrayBuffer is detached");if(c&&(e=f(e,{transfer:[e]}),o===i&&(n||g)))return e;if(o>=i&&(!n||g))r=m(e,0,i);else{var y=n&&!g&&x?{maxByteLength:x(e)}:void 0;r=new d(i,y);for(var C=new p(e),O=new p(r),E=v(i,o),M=0;M92||u&&i>94||a&&i>97)return!1;var e=new ArrayBuffer(8),t=s(e,{transfer:[e]});return 0!==e.byteLength||8!==t.byteLength}))},function(e,t,n){"use strict";var r=n(141),o=n(165),i=n(77),a=n(99),l=function(e){var t=1===e;return function(n,l,u){for(var s,c=i(n),f=o(c),d=a(f),p=r(l,u);d-- >0;)if(p(s=f[d],d,c))switch(e){case 0:return s;case 1:return d}return t?-1:void 0}};e.exports={findLast:l(0),findLastIndex:l(1)}},,function(e,t,n){var r=n(203),o=n(1963),i=o?function(e,t){return o.set(e,t),e}:r;e.exports=i},function(e,t,n){var r=n(516),o=r&&new r;e.exports=o},function(e,t,n){var r=n(1965),o=n(1966),i=n(4840),a=n(1247),l=n(1967),u=n(1458),s=n(4849),c=n(1248),f=n(100);e.exports=function e(t,n,d,p,h,v,g,y,m,b){var x=128&n,w=1&n,_=2&n,C=24&n,O=512&n,E=_?void 0:a(t);return function M(){for(var S=arguments.length,A=Array(S),k=S;k--;)A[k]=arguments[k];if(C)var j=u(M),T=i(A,j);if(p&&(A=r(A,p,h,C)),v&&(A=o(A,v,g,C)),S-=T,C&&S1&&A.reverse(),x&&ml))return!1;var s=i.get(e);if(s&&i.get(t))return s==t;var c=-1,f=!0,d=2&n?new ae:void 0;for(i.set(e,t),i.set(t,e);++c-1},oe.prototype.set=function(e,t){var n=this.__data__,r=se(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},ie.prototype.clear=function(){this.size=0,this.__data__={hash:new re,map:new(Z||oe),string:new re}},ie.prototype.delete=function(e){var t=ye(this,e).delete(e);return this.size-=t?1:0,t},ie.prototype.get=function(e){return ye(this,e).get(e)},ie.prototype.has=function(e){return ye(this,e).has(e)},ie.prototype.set=function(e,t){var n=ye(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},ae.prototype.add=ae.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},ae.prototype.has=function(e){return this.__data__.has(e)},le.prototype.clear=function(){this.__data__=new oe,this.size=0},le.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},le.prototype.get=function(e){return this.__data__.get(e)},le.prototype.has=function(e){return this.__data__.has(e)},le.prototype.set=function(e,t){var n=this.__data__;if(n instanceof oe){var r=n.__data__;if(!Z||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new ie(r)}return n.set(e,t),this.size=n.size,this};var be=F?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n-1&&e%1==0&&e-1&&e%1==0&&e<=9007199254740991}function ke(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function je(e){return null!=e&&"object"==typeof e}var Te=m?function(e){return function(t){return e(t)}}(m):function(e){return je(e)&&Ae(e.length)&&!!s[ce(e)]};function Pe(e){return null!=(t=e)&&Ae(t.length)&&!Se(t)?ue(e):he(e);var t}n.exports=function(e,t){return de(e,t)}}).call(this,n(69),n(138)(e))},,,,,,,,,,,function(e,t,n){"use strict";n.r(t),n.d(t,"add",(function(){return l})),n.d(t,"after",(function(){return f})),n.d(t,"ary",(function(){return we})),n.d(t,"assign",(function(){return ke})),n.d(t,"assignIn",(function(){return Te})),n.d(t,"assignInWith",(function(){return Pe})),n.d(t,"assignWith",(function(){return Le})),n.d(t,"at",(function(){return Ze})),n.d(t,"attempt",(function(){return Ye})),n.d(t,"before",(function(){return Xe})),n.d(t,"bind",(function(){return Qe})),n.d(t,"bindAll",(function(){return nt})),n.d(t,"bindKey",(function(){return ot})),n.d(t,"camelCase",(function(){return tn})),n.d(t,"capitalize",(function(){return Et})),n.d(t,"castArray",(function(){return nn})),n.d(t,"ceil",(function(){return ln})),n.d(t,"chain",(function(){return un})),n.d(t,"chunk",(function(){return dn})),n.d(t,"clamp",(function(){return hn})),n.d(t,"clone",(function(){return Jn})),n.d(t,"cloneDeep",(function(){return Qn})),n.d(t,"cloneDeepWith",(function(){return er})),n.d(t,"cloneWith",(function(){return tr})),n.d(t,"commit",(function(){return nr})),n.d(t,"compact",(function(){return rr})),n.d(t,"concat",(function(){return or})),n.d(t,"cond",(function(){return lr})),n.d(t,"conforms",(function(){return cr})),n.d(t,"conformsTo",(function(){return fr})),n.d(t,"constant",(function(){return dr.a})),n.d(t,"countBy",(function(){return mr})),n.d(t,"create",(function(){return br})),n.d(t,"curry",(function(){return wr})),n.d(t,"curryRight",(function(){return Cr})),n.d(t,"debounce",(function(){return Or.a})),n.d(t,"deburr",(function(){return Tt})),n.d(t,"defaultTo",(function(){return Er})),n.d(t,"defaults",(function(){return kr})),n.d(t,"defaultsDeep",(function(){return Lr})),n.d(t,"defer",(function(){return Nr})),n.d(t,"delay",(function(){return Dr})),n.d(t,"difference",(function(){return Vr})),n.d(t,"differenceBy",(function(){return Ur})),n.d(t,"differenceWith",(function(){return Zr})),n.d(t,"divide",(function(){return Wr})),n.d(t,"drop",(function(){return Kr})),n.d(t,"dropRight",(function(){return Gr})),n.d(t,"dropRightWhile",(function(){return Yr})),n.d(t,"dropWhile",(function(){return Xr})),n.d(t,"each",(function(){return Jr.a})),n.d(t,"eachRight",(function(){return ao})),n.d(t,"endsWith",(function(){return lo})),n.d(t,"entries",(function(){return po})),n.d(t,"entriesIn",(function(){return ho})),n.d(t,"eq",(function(){return Mr.a})),n.d(t,"escape",(function(){return mo})),n.d(t,"escapeRegExp",(function(){return wo})),n.d(t,"every",(function(){return Oo})),n.d(t,"extend",(function(){return Te})),n.d(t,"extendWith",(function(){return Pe})),n.d(t,"fill",(function(){return So})),n.d(t,"filter",(function(){return jo})),n.d(t,"find",(function(){return zo})),n.d(t,"findIndex",(function(){return Lo})),n.d(t,"findKey",(function(){return Io})),n.d(t,"findLast",(function(){return Fo})),n.d(t,"findLastIndex",(function(){return Bo})),n.d(t,"findLastKey",(function(){return Vo})),n.d(t,"first",(function(){return $o})),n.d(t,"flatMap",(function(){return Zo})),n.d(t,"flatMapDeep",(function(){return Wo})),n.d(t,"flatMapDepth",(function(){return Ko})),n.d(t,"flatten",(function(){return Ve})),n.d(t,"flattenDeep",(function(){return Go})),n.d(t,"flattenDepth",(function(){return qo})),n.d(t,"flip",(function(){return Yo})),n.d(t,"floor",(function(){return Xo})),n.d(t,"flow",(function(){return Qo})),n.d(t,"flowRight",(function(){return ei})),n.d(t,"forEach",(function(){return Jr.a})),n.d(t,"forEachRight",(function(){return ao})),n.d(t,"forIn",(function(){return ni})),n.d(t,"forInRight",(function(){return ri})),n.d(t,"forOwn",(function(){return oi})),n.d(t,"forOwnRight",(function(){return ii})),n.d(t,"fromPairs",(function(){return ai})),n.d(t,"functions",(function(){return si})),n.d(t,"functionsIn",(function(){return ci})),n.d(t,"get",(function(){return ze.a})),n.d(t,"groupBy",(function(){return di})),n.d(t,"gt",(function(){return vi})),n.d(t,"gte",(function(){return gi})),n.d(t,"has",(function(){return xi})),n.d(t,"hasIn",(function(){return wi.a})),n.d(t,"head",(function(){return $o})),n.d(t,"identity",(function(){return d.a})),n.d(t,"inRange",(function(){return Ei})),n.d(t,"includes",(function(){return ji})),n.d(t,"indexOf",(function(){return Pi})),n.d(t,"initial",(function(){return Li})),n.d(t,"intersection",(function(){return Ii})),n.d(t,"intersectionBy",(function(){return Ri})),n.d(t,"intersectionWith",(function(){return Hi})),n.d(t,"invert",(function(){return $i})),n.d(t,"invertBy",(function(){return Ki})),n.d(t,"invoke",(function(){return Ji})),n.d(t,"invokeMap",(function(){return Qi})),n.d(t,"isArguments",(function(){return Re.a})),n.d(t,"isArray",(function(){return I.a})),n.d(t,"isArrayBuffer",(function(){return na})),n.d(t,"isArrayLike",(function(){return Ee.a})),n.d(t,"isArrayLikeObject",(function(){return Fr.a})),n.d(t,"isBoolean",(function(){return ra})),n.d(t,"isBuffer",(function(){return Fn.a})),n.d(t,"isDate",(function(){return aa})),n.d(t,"isElement",(function(){return la})),n.d(t,"isEmpty",(function(){return fa})),n.d(t,"isEqual",(function(){return pa})),n.d(t,"isEqualWith",(function(){return ha})),n.d(t,"isError",(function(){return qe})),n.d(t,"isFinite",(function(){return ga})),n.d(t,"isFunction",(function(){return li.a})),n.d(t,"isInteger",(function(){return ya})),n.d(t,"isLength",(function(){return ma.a})),n.d(t,"isMap",(function(){return Wn})),n.d(t,"isMatch",(function(){return wa})),n.d(t,"isMatchWith",(function(){return _a})),n.d(t,"isNaN",(function(){return Oa})),n.d(t,"isNative",(function(){return ka})),n.d(t,"isNil",(function(){return ja})),n.d(t,"isNull",(function(){return Ta})),n.d(t,"isNumber",(function(){return Ca})),n.d(t,"isObject",(function(){return y.a})),n.d(t,"isObjectLike",(function(){return R.a})),n.d(t,"isPlainObject",(function(){return Ge.a})),n.d(t,"isRegExp",(function(){return za})),n.d(t,"isSafeInteger",(function(){return Na})),n.d(t,"isSet",(function(){return qn})),n.d(t,"isString",(function(){return Mi})),n.d(t,"isSymbol",(function(){return r.a})),n.d(t,"isTypedArray",(function(){return sa.a})),n.d(t,"isUndefined",(function(){return Da.a})),n.d(t,"isWeakMap",(function(){return Ia})),n.d(t,"isWeakSet",(function(){return Ra})),n.d(t,"iteratee",(function(){return Ha})),n.d(t,"join",(function(){return Fa})),n.d(t,"kebabCase",(function(){return Va})),n.d(t,"keyBy",(function(){return $a})),n.d(t,"keys",(function(){return Se.a})),n.d(t,"keysIn",(function(){return je.a})),n.d(t,"last",(function(){return $r})),n.d(t,"lastIndexOf",(function(){return Ka})),n.d(t,"lodash",(function(){return $})),n.d(t,"lowerCase",(function(){return Ga})),n.d(t,"lowerFirst",(function(){return qa})),n.d(t,"lt",(function(){return Xa})),n.d(t,"lte",(function(){return Ja})),n.d(t,"map",(function(){return Uo.a})),n.d(t,"mapKeys",(function(){return Qa})),n.d(t,"mapValues",(function(){return el})),n.d(t,"matches",(function(){return nl})),n.d(t,"matchesProperty",(function(){return ol})),n.d(t,"max",(function(){return al})),n.d(t,"maxBy",(function(){return ll})),n.d(t,"mean",(function(){return cl})),n.d(t,"meanBy",(function(){return fl})),n.d(t,"memoize",(function(){return dl.a})),n.d(t,"merge",(function(){return pl.a})),n.d(t,"mergeWith",(function(){return Pr})),n.d(t,"method",(function(){return hl})),n.d(t,"methodOf",(function(){return vl})),n.d(t,"min",(function(){return gl})),n.d(t,"minBy",(function(){return yl})),n.d(t,"mixin",(function(){return ml})),n.d(t,"multiply",(function(){return bl})),n.d(t,"negate",(function(){return xl})),n.d(t,"next",(function(){return El})),n.d(t,"noop",(function(){return j})),n.d(t,"now",(function(){return Ml.a})),n.d(t,"nth",(function(){return Al})),n.d(t,"nthArg",(function(){return kl})),n.d(t,"omit",(function(){return Pl})),n.d(t,"omitBy",(function(){return Dl})),n.d(t,"once",(function(){return Il})),n.d(t,"orderBy",(function(){return $l})),n.d(t,"over",(function(){return Zl})),n.d(t,"overArgs",(function(){return Gl})),n.d(t,"overEvery",(function(){return ql})),n.d(t,"overSome",(function(){return Xl})),n.d(t,"pad",(function(){return yu})),n.d(t,"padEnd",(function(){return mu})),n.d(t,"padStart",(function(){return bu})),n.d(t,"parseInt",(function(){return _u})),n.d(t,"partial",(function(){return Ou})),n.d(t,"partialRight",(function(){return Mu})),n.d(t,"partition",(function(){return Su})),n.d(t,"pick",(function(){return ku})),n.d(t,"pickBy",(function(){return Nl})),n.d(t,"plant",(function(){return ju})),n.d(t,"property",(function(){return Tu.a})),n.d(t,"propertyOf",(function(){return Pu})),n.d(t,"pull",(function(){return Iu})),n.d(t,"pullAll",(function(){return Du})),n.d(t,"pullAllBy",(function(){return Ru})),n.d(t,"pullAllWith",(function(){return Hu})),n.d(t,"pullAt",(function(){return Vu})),n.d(t,"random",(function(){return qu})),n.d(t,"range",(function(){return es})),n.d(t,"rangeRight",(function(){return ts})),n.d(t,"rearg",(function(){return ns})),n.d(t,"reduce",(function(){return os})),n.d(t,"reduceRight",(function(){return as})),n.d(t,"reject",(function(){return ls})),n.d(t,"remove",(function(){return us})),n.d(t,"repeat",(function(){return ss})),n.d(t,"replace",(function(){return cs})),n.d(t,"rest",(function(){return fs})),n.d(t,"result",(function(){return ds})),n.d(t,"reverse",(function(){return hs})),n.d(t,"round",(function(){return vs})),n.d(t,"sample",(function(){return ms})),n.d(t,"sampleSize",(function(){return _s})),n.d(t,"set",(function(){return Cs})),n.d(t,"setWith",(function(){return Os})),n.d(t,"shuffle",(function(){return Ss})),n.d(t,"size",(function(){return As})),n.d(t,"slice",(function(){return ks})),n.d(t,"snakeCase",(function(){return js})),n.d(t,"some",(function(){return Ps})),n.d(t,"sortBy",(function(){return Ls})),n.d(t,"sortedIndex",(function(){return Rs})),n.d(t,"sortedIndexBy",(function(){return Hs})),n.d(t,"sortedIndexOf",(function(){return Bs})),n.d(t,"sortedLastIndex",(function(){return Fs})),n.d(t,"sortedLastIndexBy",(function(){return Vs})),n.d(t,"sortedLastIndexOf",(function(){return $s})),n.d(t,"sortedUniq",(function(){return Zs})),n.d(t,"sortedUniqBy",(function(){return Ws})),n.d(t,"split",(function(){return Ks})),n.d(t,"spread",(function(){return qs})),n.d(t,"startCase",(function(){return Ys})),n.d(t,"startsWith",(function(){return Xs})),n.d(t,"stubArray",(function(){return _n.a})),n.d(t,"stubFalse",(function(){return Sa.a})),n.d(t,"stubObject",(function(){return Js})),n.d(t,"stubString",(function(){return Qs})),n.d(t,"stubTrue",(function(){return ec})),n.d(t,"subtract",(function(){return tc})),n.d(t,"sum",(function(){return nc})),n.d(t,"sumBy",(function(){return rc})),n.d(t,"tail",(function(){return oc})),n.d(t,"take",(function(){return ic})),n.d(t,"takeRight",(function(){return ac})),n.d(t,"takeRightWhile",(function(){return lc})),n.d(t,"takeWhile",(function(){return uc})),n.d(t,"tap",(function(){return sc})),n.d(t,"template",(function(){return Ec})),n.d(t,"templateSettings",(function(){return gc})),n.d(t,"throttle",(function(){return Mc.a})),n.d(t,"thru",(function(){return Sc})),n.d(t,"times",(function(){return jc})),n.d(t,"toArray",(function(){return Ol})),n.d(t,"toFinite",(function(){return s})),n.d(t,"toInteger",(function(){return c})),n.d(t,"toIterator",(function(){return Tc})),n.d(t,"toJSON",(function(){return Lc})),n.d(t,"toLength",(function(){return Eo})),n.d(t,"toLower",(function(){return zc})),n.d(t,"toNumber",(function(){return u.a})),n.d(t,"toPairs",(function(){return po})),n.d(t,"toPairsIn",(function(){return ho})),n.d(t,"toPath",(function(){return Dc})),n.d(t,"toPlainObject",(function(){return Ic.a})),n.d(t,"toSafeInteger",(function(){return Rc})),n.d(t,"toString",(function(){return it.a})),n.d(t,"toUpper",(function(){return Hc})),n.d(t,"transform",(function(){return Bc})),n.d(t,"trim",(function(){return Uc})),n.d(t,"trimEnd",(function(){return Wc})),n.d(t,"trimStart",(function(){return Gc})),n.d(t,"truncate",(function(){return Yc})),n.d(t,"unary",(function(){return Xc})),n.d(t,"unescape",(function(){return tf})),n.d(t,"union",(function(){return af})),n.d(t,"unionBy",(function(){return lf})),n.d(t,"unionWith",(function(){return uf})),n.d(t,"uniq",(function(){return sf})),n.d(t,"uniqBy",(function(){return cf})),n.d(t,"uniqWith",(function(){return ff})),n.d(t,"uniqueId",(function(){return pf})),n.d(t,"unset",(function(){return hf})),n.d(t,"unzip",(function(){return gf})),n.d(t,"unzipWith",(function(){return yf})),n.d(t,"update",(function(){return bf})),n.d(t,"updateWith",(function(){return xf})),n.d(t,"upperCase",(function(){return wf})),n.d(t,"upperFirst",(function(){return Ot})),n.d(t,"value",(function(){return Lc})),n.d(t,"valueOf",(function(){return Lc})),n.d(t,"values",(function(){return Ai})),n.d(t,"valuesIn",(function(){return _f})),n.d(t,"without",(function(){return Cf})),n.d(t,"words",(function(){return Jt})),n.d(t,"wrap",(function(){return Of})),n.d(t,"wrapperAt",(function(){return Ef})),n.d(t,"wrapperChain",(function(){return Mf})),n.d(t,"wrapperCommit",(function(){return nr})),n.d(t,"wrapperLodash",(function(){return $})),n.d(t,"wrapperNext",(function(){return El})),n.d(t,"wrapperPlant",(function(){return ju})),n.d(t,"wrapperReverse",(function(){return Sf})),n.d(t,"wrapperToIterator",(function(){return Tc})),n.d(t,"wrapperValue",(function(){return Lc})),n.d(t,"xor",(function(){return kf})),n.d(t,"xorBy",(function(){return jf})),n.d(t,"xorWith",(function(){return Tf})),n.d(t,"zip",(function(){return Pf})),n.d(t,"zipObject",(function(){return zf})),n.d(t,"zipObjectDeep",(function(){return Nf})),n.d(t,"zipWith",(function(){return Df})),n.d(t,"default",(function(){return sd}));var r=n(897);var o=function(e){return"number"==typeof e?e:Object(r.a)(e)?NaN:+e},i=n(941);var a=function(e,t){return function(n,r){var a;if(void 0===n&&void 0===r)return t;if(void 0!==n&&(a=n),void 0!==r){if(void 0===a)return r;"string"==typeof n||"string"==typeof r?(n=Object(i.a)(n),r=Object(i.a)(r)):(n=o(n),r=o(r)),a=e(n,r)}return a}},l=a((function(e,t){return e+t}),0),u=n(938);var s=function(e){return e?(e=Object(u.a)(e))===1/0||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0};var c=function(e){var t=s(e),n=t%1;return t==t?n?t-n:t:0};var f=function(e,t){if("function"!=typeof t)throw new TypeError("Expected a function");return e=c(e),function(){if(--e<1)return t.apply(this,arguments)}},d=n(875),p=n(1675),h=p.a&&new p.a,v=h?function(e,t){return h.set(e,t),e}:d.a,g=n(1058),y=n(840);var m=function(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=Object(g.a)(e.prototype),r=e.apply(n,t);return Object(y.a)(r)?r:n}},b=n(860);var x=function(e,t,n){var r=1&t,o=m(e);return function t(){var i=this&&this!==b.a&&this instanceof t?o:e;return i.apply(r?n:this,arguments)}},w=n(904),_=Math.max;var C=function(e,t,n,r){for(var o=-1,i=e.length,a=n.length,l=-1,u=t.length,s=_(i-a,0),c=Array(u+s),f=!r;++l1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(Y,"{\n/* [wrapped with "+t+"] */\n")},J=n(1469),Q=n(1010);var ee=function(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i-1},ie=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]];var ae=function(e,t){return Object(Q.a)(ie,(function(n){var r="_."+n[0];t&n[1]&&!oe(e,r)&&e.push(r)})),e.sort()};var le=function(e,t,n){var r=t+"";return Object(J.a)(e,X(r,ae(q(r),n)))};var ue=function(e,t,n,r,o,i,a,l,u,s){var c=8&t;t|=c?32:64,4&(t&=~(c?64:32))||(t&=-4);var f=[e,t,o,c?i:void 0,c?a:void 0,c?void 0:i,c?void 0:a,l,u,s],d=n.apply(void 0,f);return U(e)&&W(d,f),d.placeholder=r,le(d,e,t)};var se=function(e){return e.placeholder},ce=n(956),fe=Math.min;var de=function(e,t){for(var n=e.length,r=fe(t.length,n),o=Object(H.a)(e);r--;){var i=t[r];e[r]=Object(ce.a)(i,n)?o[i]:void 0}return e};var pe=function(e,t){for(var n=-1,r=e.length,o=0,i=[];++n1&&w.reverse(),f&&s0&&r(u)?n>1?e(u,n-1,r,o,i):Object(De.a)(i,u):o||(i[i.length]=u)}return i};var Ve=function(e){return(null==e?0:e.length)?Fe(e,1):[]},$e=n(1658);var Ue=function(e){return Object(J.a)(Object($e.a)(e,void 0,Ve),e+"")},Ze=Ue(Ne),We=n(808),Ke=n(893),Ge=n(1009);var qe=function(e){if(!Object(R.a)(e))return!1;var t=Object(Ke.a)(e);return"[object Error]"==t||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!Object(Ge.a)(e)},Ye=Object(We.a)((function(e,t){try{return Object(w.a)(e,void 0,t)}catch(e){return qe(e)?e:new Error(e)}}));var Xe=function(e,t){var n;if("function"!=typeof t)throw new TypeError("Expected a function");return e=c(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=void 0),n}},Je=Object(We.a)((function(e,t,n){var r=1;if(n.length){var o=pe(n,se(Je));r|=32}return xe(e,r,t,n,o)}));Je.placeholder={};var Qe=Je,et=n(957),tt=n(940),nt=Ue((function(e,t){return Object(Q.a)(t,(function(t){t=Object(tt.a)(t),Object(et.a)(e,t,Qe(e[t],e))})),e})),rt=Object(We.a)((function(e,t,n){var r=3;if(n.length){var o=pe(n,se(rt));r|=32}return xe(t,r,e,n,o)}));rt.placeholder={};var ot=rt,it=n(819);var at=function(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(o);++r=r?e:at(e,t,n)},ut=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");var st=function(e){return ut.test(e)};var ct=function(e){return e.split("")},ft="[\\ud800-\\udfff]",dt="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",pt="\\ud83c[\\udffb-\\udfff]",ht="[^\\ud800-\\udfff]",vt="(?:\\ud83c[\\udde6-\\uddff]){2}",gt="[\\ud800-\\udbff][\\udc00-\\udfff]",yt="(?:"+dt+"|"+pt+")"+"?",mt="[\\ufe0e\\ufe0f]?"+yt+("(?:\\u200d(?:"+[ht,vt,gt].join("|")+")[\\ufe0e\\ufe0f]?"+yt+")*"),bt="(?:"+[ht+dt+"?",dt,vt,gt,ft].join("|")+")",xt=RegExp(pt+"(?="+pt+")|"+bt+mt,"g");var wt=function(e){return e.match(xt)||[]};var _t=function(e){return st(e)?wt(e):ct(e)};var Ct=function(e){return function(t){t=Object(it.a)(t);var n=st(t)?_t(t):void 0,r=n?n[0]:t.charAt(0),o=n?lt(n,1).join(""):t.slice(1);return r[e]()+o}},Ot=Ct("toUpperCase");var Et=function(e){return Ot(Object(it.a)(e).toLowerCase())};var Mt=function(e,t,n,r){var o=-1,i=null==e?0:e.length;for(r&&i&&(n=e[++o]);++o=t?e:t)),e};var hn=function(e,t,n){return void 0===n&&(n=t,t=void 0),void 0!==n&&(n=(n=Object(u.a)(n))==n?n:0),void 0!==t&&(t=(t=Object(u.a)(t))==t?t:0),pn(Object(u.a)(e),t,n)},vn=n(1260);var gn=function(e,t){return e&&Object(Ce.a)(t,Object(Se.a)(t),e)};var yn=function(e,t){return e&&Object(Ce.a)(t,Object(je.a)(t),e)},mn=n(1660),bn=n(1358);var xn=function(e,t){return Object(Ce.a)(e,Object(bn.a)(e),t)},wn=n(1185),_n=n(1121),Cn=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)Object(De.a)(t,Object(bn.a)(e)),e=Object(wn.a)(e);return t}:_n.a;var On=function(e,t){return Object(Ce.a)(e,Cn(e),t)},En=n(1676),Mn=n(1677);var Sn=function(e){return Object(Mn.a)(e,je.a,Cn)},An=n(965),kn=Object.prototype.hasOwnProperty;var jn=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&kn.call(e,"index")&&(n.index=e.index,n.input=e.input),n},Tn=n(1352);var Pn=function(e,t){var n=t?Object(Tn.a)(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)},Ln=/\w*$/;var zn=function(e){var t=new e.constructor(e.source,Ln.exec(e));return t.lastIndex=e.lastIndex,t},Nn=Ie.a?Ie.a.prototype:void 0,Dn=Nn?Nn.valueOf:void 0;var In=function(e){return Dn?Object(Dn.call(e)):{}},Rn=n(1661);var Hn=function(e,t,n){var r=e.constructor;switch(t){case"[object ArrayBuffer]":return Object(Tn.a)(e);case"[object Boolean]":case"[object Date]":return new r(+e);case"[object DataView]":return Pn(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return Object(Rn.a)(e,n);case"[object Map]":return new r;case"[object Number]":case"[object String]":return new r(e);case"[object RegExp]":return zn(e);case"[object Set]":return new r;case"[object Symbol]":return In(e)}},Bn=n(1665),Fn=n(958);var Vn=function(e){return Object(R.a)(e)&&"[object Map]"==Object(An.a)(e)},$n=n(905),Un=n(1057),Zn=Un.a&&Un.a.isMap,Wn=Zn?Object($n.a)(Zn):Vn;var Kn=function(e){return Object(R.a)(e)&&"[object Set]"==Object(An.a)(e)},Gn=Un.a&&Un.a.isSet,qn=Gn?Object($n.a)(Gn):Kn,Yn={};Yn["[object Arguments]"]=Yn["[object Array]"]=Yn["[object ArrayBuffer]"]=Yn["[object DataView]"]=Yn["[object Boolean]"]=Yn["[object Date]"]=Yn["[object Float32Array]"]=Yn["[object Float64Array]"]=Yn["[object Int8Array]"]=Yn["[object Int16Array]"]=Yn["[object Int32Array]"]=Yn["[object Map]"]=Yn["[object Number]"]=Yn["[object Object]"]=Yn["[object RegExp]"]=Yn["[object Set]"]=Yn["[object String]"]=Yn["[object Symbol]"]=Yn["[object Uint8Array]"]=Yn["[object Uint8ClampedArray]"]=Yn["[object Uint16Array]"]=Yn["[object Uint32Array]"]=!0,Yn["[object Error]"]=Yn["[object Function]"]=Yn["[object WeakMap]"]=!1;var Xn=function e(t,n,r,o,i,a){var l,u=1&n,s=2&n,c=4&n;if(r&&(l=i?r(t,o,i,a):r(t)),void 0!==l)return l;if(!Object(y.a)(t))return t;var f=Object(I.a)(t);if(f){if(l=jn(t),!u)return Object(H.a)(t,l)}else{var d=Object(An.a)(t),p="[object Function]"==d||"[object GeneratorFunction]"==d;if(Object(Fn.a)(t))return Object(mn.a)(t,u);if("[object Object]"==d||"[object Arguments]"==d||p&&!i){if(l=s||p?{}:Object(Bn.a)(t),!u)return s?On(t,yn(l,t)):xn(t,gn(l,t))}else{if(!Yn[d])return i?t:{};l=Hn(t,d,u)}}a||(a=new vn.a);var h=a.get(t);if(h)return h;a.set(t,l),qn(t)?t.forEach((function(o){l.add(e(o,n,r,o,t,a))})):Wn(t)&&t.forEach((function(o,i){l.set(i,e(o,n,r,i,t,a))}));var v=c?s?Sn:En.a:s?je.a:Se.a,g=f?void 0:v(t);return Object(Q.a)(g||t,(function(o,i){g&&(o=t[i=o]),Object(_e.a)(l,i,e(o,n,r,i,t,a))})),l};var Jn=function(e){return Xn(e,4)};var Qn=function(e){return Xn(e,5)};var er=function(e,t){return Xn(e,5,t="function"==typeof t?t:void 0)};var tr=function(e,t){return Xn(e,4,t="function"==typeof t?t:void 0)};var nr=function(){return new D(this.value(),this.__chain__)};var rr=function(e){for(var t=-1,n=null==e?0:e.length,r=0,o=[];++t2?t[2]:void 0;for(o&&Object(sn.a)(t[0],t[1],o)&&(r=1);++n=200&&(i=Hr.a,a=!1,t=new Ir.a(t));e:for(;++o=0&&e.slice(n,o)==t};var uo=function(e,t){return Object(ir.a)(t,(function(t){return[t,e[t]]}))},so=n(1357);var co=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n};var fo=function(e){return function(t){var n=Object(An.a)(t);return"[object Map]"==n?Object(so.a)(t):"[object Set]"==n?co(t):uo(t,e(t))}},po=fo(Se.a),ho=fo(je.a),vo=St({"&":"&","<":"<",">":">",'"':""","'":"'"}),go=/[&<>"']/g,yo=RegExp(go.source);var mo=function(e){return(e=Object(it.a)(e))&&yo.test(e)?e.replace(go,vo):e},bo=/[\\^$.*+?()[\]{}|]/g,xo=RegExp(bo.source);var wo=function(e){return(e=Object(it.a)(e))&&xo.test(e)?e.replace(bo,"\\$&"):e};var _o=function(e,t){for(var n=-1,r=null==e?0:e.length;++no?0:o+n),(r=void 0===r||r>o?o:c(r))<0&&(r+=o),r=n>r?0:Eo(r);n-1?o[i?t[a]:a]:void 0}},Po=Math.max;var Lo=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:c(n);return o<0&&(o=Po(r+o,0)),ee(e,Object(ar.a)(t,3),o)},zo=To(Lo);var No=function(e,t,n){var r;return n(e,(function(e,n,o){if(t(e,n,o))return r=n,!1})),r},Do=n(978);var Io=function(e,t){return No(e,Object(ar.a)(t,3),Do.a)},Ro=Math.max,Ho=Math.min;var Bo=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r-1;return void 0!==n&&(o=c(n),o=n<0?Ro(r+o,0):Ho(o,r-1)),ee(e,Object(ar.a)(t,3),o,!0)},Fo=To(Bo);var Vo=function(e,t){return No(e,Object(ar.a)(t,3),no)};var $o=function(e){return e&&e.length?e[0]:void 0},Uo=n(898);var Zo=function(e,t){return Fe(Object(Uo.a)(e,t),1)};var Wo=function(e,t){return Fe(Object(Uo.a)(e,t),1/0)};var Ko=function(e,t,n){return n=void 0===n?1:c(n),Fe(Object(Uo.a)(e,t),n)};var Go=function(e){return(null==e?0:e.length)?Fe(e,1/0):[]};var qo=function(e,t){return(null==e?0:e.length)?(t=void 0===t?1:c(t),Fe(e,t)):[]};var Yo=function(e){return xe(e,512)},Xo=an("floor");var Jo=function(e){return Ue((function(t){var n=t.length,r=n,o=D.prototype.thru;for(e&&t.reverse();r--;){var i=t[r];if("function"!=typeof i)throw new TypeError("Expected a function");if(o&&!a&&"wrapper"==z(i))var a=new D([],!0)}for(r=a?r:n;++rt};var hi=function(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=Object(u.a)(t),n=Object(u.a)(n)),e(t,n)}},vi=hi(pi),gi=hi((function(e,t){return e>=t})),yi=Object.prototype.hasOwnProperty;var mi=function(e,t){return null!=e&&yi.call(e,t)},bi=n(1673);var xi=function(e,t){return null!=e&&Object(bi.a)(e,t,mi)},wi=n(1147),_i=Math.max,Ci=Math.min;var Oi=function(e,t,n){return e>=Ci(t,n)&&e<_i(t,n)};var Ei=function(e,t,n){return t=s(t),void 0===n?(n=t,t=0):n=s(n),e=Object(u.a)(e),Oi(e,t,n)};var Mi=function(e){return"string"==typeof e||!Object(I.a)(e)&&Object(R.a)(e)&&"[object String]"==Object(Ke.a)(e)};var Si=function(e,t){return Object(ir.a)(t,(function(t){return e[t]}))};var Ai=function(e){return null==e?[]:Si(e,Object(Se.a)(e))},ki=Math.max;var ji=function(e,t,n,r){e=Object(Ee.a)(e)?e:Ai(e),n=n&&!r?c(n):0;var o=e.length;return n<0&&(n=ki(o+n,0)),Mi(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&re(e,t,n)>-1},Ti=Math.max;var Pi=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:c(n);return o<0&&(o=Ti(r+o,0)),re(e,t,o)};var Li=function(e){return(null==e?0:e.length)?at(e,0,-1):[]},zi=Math.min;var Ni=function(e,t,n){for(var r=n?Rr:oe,o=e[0].length,i=e.length,a=i,l=Array(i),u=1/0,s=[];a--;){var c=e[a];a&&t&&(c=Object(ir.a)(c,Object($n.a)(t))),u=zi(c.length,u),l[a]=!n&&(t||o>=120&&c.length>=120)?new Ir.a(a&&c):void 0}c=e[0];var f=-1,d=l[0];e:for(;++f=-9007199254740991&&e<=9007199254740991},Da=n(1192);var Ia=function(e){return Object(R.a)(e)&&"[object WeakMap]"==Object(An.a)(e)};var Ra=function(e){return Object(R.a)(e)&&"[object WeakSet]"==Object(Ke.a)(e)};var Ha=function(e){return Object(ar.a)("function"==typeof e?e:Xn(e,1))},Ba=Array.prototype.join;var Fa=function(e,t){return null==e?"":Ba.call(e,t)},Va=en((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),$a=gr((function(e,t,n){Object(et.a)(e,n,t)}));var Ua=function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r},Za=Math.max,Wa=Math.min;var Ka=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r;return void 0!==n&&(o=(o=c(n))<0?Za(r+o,0):Wa(o,r-1)),t==t?Ua(e,t,o):ee(e,te,o,!0)},Ga=en((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),qa=Ct("toLowerCase");var Ya=function(e,t){return e=this.__values__.length;return{done:e,value:e?void 0:this.__values__[this.__index__++]}},Ml=n(1188);var Sl=function(e,t){var n=e.length;if(n)return t+=t<0?n:0,Object(ce.a)(t,n)?e[t]:void 0};var Al=function(e,t){return e&&e.length?Sl(e,c(t)):void 0};var kl=function(e){return e=c(e),Object(We.a)((function(t){return Sl(t,e)}))};var jl=function(e,t){return t=Object(Gi.a)(t,e),null==(e=Yi(e,t))||delete e[Object(tt.a)($r(t))]};var Tl=function(e){return Object(Ge.a)(e)?void 0:e},Pl=Ue((function(e,t){var n={};if(null==e)return n;var r=!1;t=Object(ir.a)(t,(function(t){return t=Object(Gi.a)(t,e),r||(r=t.length>1),t})),Object(Ce.a)(e,Sn(e),n),r&&(n=Xn(n,7,Tl));for(var o=t.length;o--;)jl(n,t[o]);return n}));var Ll=function(e,t,n,r){if(!Object(y.a)(e))return e;for(var o=-1,i=(t=Object(Gi.a)(t,e)).length,a=i-1,l=e;null!=l&&++ot||a&&l&&s&&!u&&!c||o&&l&&s||!n&&s||!i)return 1;if(!o&&!a&&!c&&e=l?u:u*("desc"==n[r]?-1:1)}return e.index-t.index};var Vl=function(e,t,n){t=t.length?Object(ir.a)(t,(function(e){return Object(I.a)(e)?function(t){return Object(qi.a)(t,1===e.length?e[0]:e)}:e})):[d.a];var r=-1;t=Object(ir.a)(t,Object($n.a)(ar.a));var o=Object(Rl.a)(e,(function(e,n,o){return{criteria:Object(ir.a)(t,(function(t){return t(e)})),index:++r,value:e}}));return Hl(o,(function(e,t){return Fl(e,t,n)}))};var $l=function(e,t,n,r){return null==e?[]:(Object(I.a)(t)||(t=null==t?[]:[t]),n=r?void 0:n,Object(I.a)(n)||(n=null==n?[]:[n]),Vl(e,t,n))};var Ul=function(e){return Ue((function(t){return t=Object(ir.a)(t,Object($n.a)(ar.a)),Object(We.a)((function(n){var r=this;return e(t,(function(e){return Object(w.a)(e,r,n)}))}))}))},Zl=Ul(ir.a),Wl=We.a,Kl=Math.min,Gl=Wl((function(e,t){var n=(t=1==t.length&&Object(I.a)(t[0])?Object(ir.a)(t[0],Object($n.a)(ar.a)):Object(ir.a)(Fe(t,1),Object($n.a)(ar.a))).length;return Object(We.a)((function(r){for(var o=-1,i=Kl(r.length,n);++o9007199254740991)return n;do{t%2&&(n+=e),(t=Jl(t/2))&&(e+=e)}while(t);return n},eu=n(1361),tu=Object(eu.a)("length"),nu="[\\ud800-\\udfff]",ru="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",ou="[^\\ud800-\\udfff]",iu="(?:\\ud83c[\\udde6-\\uddff]){2}",au="[\\ud800-\\udbff][\\udc00-\\udfff]",lu="(?:"+ru+"|\\ud83c[\\udffb-\\udfff])"+"?",uu="[\\ufe0e\\ufe0f]?"+lu+("(?:\\u200d(?:"+[ou,iu,au].join("|")+")[\\ufe0e\\ufe0f]?"+lu+")*"),su="(?:"+[ou+ru+"?",ru,iu,au,nu].join("|")+")",cu=RegExp("\\ud83c[\\udffb-\\udfff](?=\\ud83c[\\udffb-\\udfff])|"+su+uu,"g");var fu=function(e){for(var t=cu.lastIndex=0;cu.test(e);)++t;return t};var du=function(e){return st(e)?fu(e):tu(e)},pu=Math.ceil;var hu=function(e,t){var n=(t=void 0===t?" ":Object(i.a)(t)).length;if(n<2)return n?Ql(t,e):t;var r=Ql(t,pu(e/du(t)));return st(t)?lt(_t(r),0,e).join(""):r.slice(0,e)},vu=Math.ceil,gu=Math.floor;var yu=function(e,t,n){e=Object(it.a)(e);var r=(t=c(t))?du(e):0;if(!t||r>=t)return e;var o=(t-r)/2;return hu(gu(o),n)+e+hu(vu(o),n)};var mu=function(e,t,n){e=Object(it.a)(e);var r=(t=c(t))?du(e):0;return t&&r-1;)l!==e&&zu.call(l,u,1),zu.call(e,u,1);return e};var Du=function(e,t){return e&&e.length&&t&&t.length?Nu(e,t):e},Iu=Object(We.a)(Du);var Ru=function(e,t,n){return e&&e.length&&t&&t.length?Nu(e,t,Object(ar.a)(n,2)):e};var Hu=function(e,t,n){return e&&e.length&&t&&t.length?Nu(e,t,void 0,n):e},Bu=Array.prototype.splice;var Fu=function(e,t){for(var n=e?t.length:0,r=n-1;n--;){var o=t[n];if(n==r||o!==i){var i=o;Object(ce.a)(o)?Bu.call(e,o,1):jl(e,o)}}return e},Vu=Ue((function(e,t){var n=null==e?0:e.length,r=Ne(e,t);return Fu(e,Object(ir.a)(t,(function(e){return Object(ce.a)(e,n)?+e:e})).sort(Bl)),r})),$u=Math.floor,Uu=Math.random;var Zu=function(e,t){return e+$u(Uu()*(t-e+1))},Wu=parseFloat,Ku=Math.min,Gu=Math.random;var qu=function(e,t,n){if(n&&"boolean"!=typeof n&&Object(sn.a)(e,t,n)&&(t=n=void 0),void 0===n&&("boolean"==typeof t?(n=t,t=void 0):"boolean"==typeof e&&(n=e,e=void 0)),void 0===e&&void 0===t?(e=0,t=1):(e=s(e),void 0===t?(t=e,e=0):t=s(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var o=Gu();return Ku(e+o*(t-e+Wu("1e-"+((o+"").length-1))),t)}return Zu(e,t)},Yu=Math.ceil,Xu=Math.max;var Ju=function(e,t,n,r){for(var o=-1,i=Xu(Yu((t-e)/(n||1)),0),a=Array(i);i--;)a[r?i:++o]=e,e+=n;return a};var Qu=function(e){return function(t,n,r){return r&&"number"!=typeof r&&Object(sn.a)(t,n,r)&&(n=r=void 0),t=s(t),void 0===n?(n=t,t=0):n=s(n),r=void 0===r?t1&&Object(sn.a)(e,t[0],t[1])?t=[]:n>2&&Object(sn.a)(t[0],t[1],t[2])&&(t=[t[0]]),Vl(e,Fe(t,1),[])})),zs=Math.floor,Ns=Math.min;var Ds=function(e,t,n,o){var i=0,a=null==e?0:e.length;if(0===a)return 0;for(var l=(t=n(t))!=t,u=null===t,s=Object(r.a)(t),c=void 0===t;i>>1,l=e[a];null!==l&&!Object(r.a)(l)&&(n?l<=t:l>>0)?(e=Object(it.a)(e))&&("string"==typeof t||null!=t&&!za(t))&&!(t=Object(i.a)(t))&&st(e)?lt(_t(e),0,n):e.split(t,n):[]},Gs=Math.max;var qs=function(e,t){if("function"!=typeof e)throw new TypeError("Expected a function");return t=null==t?0:Gs(c(t),0),Object(We.a)((function(n){var r=n[t],o=lt(n,0,t);return r&&Object(De.a)(o,r),Object(w.a)(e,this,o)}))},Ys=en((function(e,t,n){return e+(n?" ":"")+Ot(t)}));var Xs=function(e,t,n){return e=Object(it.a)(e),n=null==n?0:pn(c(n),0,e.length),t=Object(i.a)(t),e.slice(n,n+t.length)==t};var Js=function(){return{}};var Qs=function(){return""};var ec=function(){return!0},tc=a((function(e,t){return e-t}),0);var nc=function(e){return e&&e.length?ul(e,d.a):0};var rc=function(e,t){return e&&e.length?ul(e,Object(ar.a)(t,2)):0};var oc=function(e){var t=null==e?0:e.length;return t?at(e,1,t):[]};var ic=function(e,t,n){return e&&e.length?(t=n||void 0===t?1:c(t),at(e,0,t<0?0:t)):[]};var ac=function(e,t,n){var r=null==e?0:e.length;return r?(t=n||void 0===t?1:c(t),at(e,(t=r-t)<0?0:t,r)):[]};var lc=function(e,t){return e&&e.length?qr(e,Object(ar.a)(t,3),!1,!0):[]};var uc=function(e,t){return e&&e.length?qr(e,Object(ar.a)(t,3)):[]};var sc=function(e,t){return t(e),e},cc=Object.prototype,fc=cc.hasOwnProperty;var dc=function(e,t,n,r){return void 0===e||Object(Mr.a)(e,cc[n])&&!fc.call(r,n)?t:e},pc={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"};var hc=function(e){return"\\"+pc[e]},vc=/<%=([\s\S]+?)%>/g,gc={escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:vc,variable:"",imports:{_:{escape:mo}}},yc=/\b__p \+= '';/g,mc=/\b(__p \+=) '' \+/g,bc=/(__e\(.*?\)|\b__t\)) \+\n'';/g,xc=/[()=,{}\[\]\/\s]/,wc=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,_c=/($^)/,Cc=/['\n\r\u2028\u2029\\]/g,Oc=Object.prototype.hasOwnProperty;var Ec=function(e,t,n){var r=gc.imports._.templateSettings||gc;n&&Object(sn.a)(e,t,n)&&(t=void 0),e=Object(it.a)(e),t=Pe({},t,r,dc);var o,i,a=Pe({},t.imports,r.imports,dc),l=Object(Se.a)(a),u=Si(a,l),s=0,c=t.interpolate||_c,f="__p += '",d=RegExp((t.escape||_c).source+"|"+c.source+"|"+(c===vc?wc:_c).source+"|"+(t.evaluate||_c).source+"|$","g"),p=Oc.call(t,"sourceURL")?"//# sourceURL="+(t.sourceURL+"").replace(/\s/g," ")+"\n":"";e.replace(d,(function(t,n,r,a,l,u){return r||(r=a),f+=e.slice(s,u).replace(Cc,hc),n&&(o=!0,f+="' +\n__e("+n+") +\n'"),l&&(i=!0,f+="';\n"+l+";\n__p += '"),r&&(f+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),s=u+t.length,t})),f+="';\n";var h=Oc.call(t,"variable")&&t.variable;if(h){if(xc.test(h))throw new Error("Invalid `variable` option passed into `_.template`")}else f="with (obj) {\n"+f+"\n}\n";f=(i?f.replace(yc,""):f).replace(mc,"$1").replace(bc,"$1;"),f="function("+(h||"obj")+") {\n"+(h?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(i?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+f+"return __p\n}";var v=Ye((function(){return Function(l,p+"return "+f).apply(void 0,u)}));if(v.source=f,qe(v))throw v;return v},Mc=n(1187);var Sc=function(e,t){return t(e)},Ac=n(1353),kc=Math.min;var jc=function(e,t){if((e=c(e))<1||e>9007199254740991)return[];var n=4294967295,r=kc(e,4294967295);t=Object(io.a)(t),e-=4294967295;for(var o=Object(Ac.a)(r,t);++n-1;);return n};var $c=function(e,t){for(var n=-1,r=e.length;++n-1;);return n};var Uc=function(e,t,n){if((e=Object(it.a)(e))&&(n||void 0===t))return Object(Fc.a)(e);if(!e||!(t=Object(i.a)(t)))return e;var r=_t(e),o=_t(t),a=$c(r,o),l=Vc(r,o)+1;return lt(r,a,l).join("")},Zc=n(1667);var Wc=function(e,t,n){if((e=Object(it.a)(e))&&(n||void 0===t))return e.slice(0,Object(Zc.a)(e)+1);if(!e||!(t=Object(i.a)(t)))return e;var r=_t(e),o=Vc(r,_t(t))+1;return lt(r,0,o).join("")},Kc=/^\s+/;var Gc=function(e,t,n){if((e=Object(it.a)(e))&&(n||void 0===t))return e.replace(Kc,"");if(!e||!(t=Object(i.a)(t)))return e;var r=_t(e),o=$c(r,_t(t));return lt(r,o).join("")},qc=/\w*$/;var Yc=function(e,t){var n=30,r="...";if(Object(y.a)(t)){var o="separator"in t?t.separator:o;n="length"in t?c(t.length):n,r="omission"in t?Object(i.a)(t.omission):r}var a=(e=Object(it.a)(e)).length;if(st(e)){var l=_t(e);a=l.length}if(n>=a)return e;var u=n-du(r);if(u<1)return r;var s=l?lt(l,0,u).join(""):e.slice(0,u);if(void 0===o)return s+r;if(l&&(u+=s.length-u),za(o)){if(e.slice(u).search(o)){var f,d=s;for(o.global||(o=RegExp(o.source,Object(it.a)(qc.exec(o))+"g")),o.lastIndex=0;f=o.exec(d);)var p=f.index;s=s.slice(0,void 0===p?u:p)}}else if(e.indexOf(Object(i.a)(o),u)!=u){var h=s.lastIndexOf(o);h>-1&&(s=s.slice(0,h))}return s+r};var Xc=function(e){return we(e,1)},Jc=St({"&":"&","<":"<",">":">",""":'"',"'":"'"}),Qc=/&(?:amp|lt|gt|quot|#39);/g,ef=RegExp(Qc.source);var tf=function(e){return(e=Object(it.a)(e))&&ef.test(e)?e.replace(Qc,Jc):e},nf=n(1674),rf=nf.a&&1/Object(_l.a)(new nf.a([,-0]))[1]==1/0?function(e){return new nf.a(e)}:j;var of=function(e,t,n){var r=-1,o=oe,i=e.length,a=!0,l=[],u=l;if(n)a=!1,o=Rr;else if(i>=200){var s=t?null:rf(e);if(s)return Object(_l.a)(s);a=!1,o=Hr.a,u=new Ir.a}else u=t?[]:l;e:for(;++r1||this.__actions__.length)&&r instanceof k&&Object(ce.a)(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:Sc,args:[o],thisArg:void 0}),new D(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(void 0),e}))):this.thru(o)}));var Mf=function(){return un(this)};var Sf=function(){var e=this.__wrapped__;if(e instanceof k){var t=e;return this.__actions__.length&&(t=new k(this)),(t=t.reverse()).__actions__.push({func:Sc,args:[hs],thisArg:void 0}),new D(t,this.__chain__)}return this.thru(hs)};var Af=function(e,t,n){var r=e.length;if(r<2)return r?of(e[0]):[];for(var o=-1,i=Array(r);++o1?e[t-1]:void 0;return n="function"==typeof n?(e.pop(),n):void 0,yf(e,n)})),If={chunk:dn,compact:rr,concat:or,difference:Vr,differenceBy:Ur,differenceWith:Zr,drop:Kr,dropRight:Gr,dropRightWhile:Yr,dropWhile:Xr,fill:So,findIndex:Lo,findLastIndex:Bo,first:$o,flatten:Ve,flattenDeep:Go,flattenDepth:qo,fromPairs:ai,head:$o,indexOf:Pi,initial:Li,intersection:Ii,intersectionBy:Ri,intersectionWith:Hi,join:Fa,last:$r,lastIndexOf:Ka,nth:Al,pull:Iu,pullAll:Du,pullAllBy:Ru,pullAllWith:Hu,pullAt:Vu,remove:us,reverse:hs,slice:ks,sortedIndex:Rs,sortedIndexBy:Hs,sortedIndexOf:Bs,sortedLastIndex:Fs,sortedLastIndexBy:Vs,sortedLastIndexOf:$s,sortedUniq:Zs,sortedUniqBy:Ws,tail:oc,take:ic,takeRight:ac,takeRightWhile:lc,takeWhile:uc,union:af,unionBy:lf,unionWith:uf,uniq:sf,uniqBy:cf,uniqWith:ff,unzip:gf,unzipWith:yf,without:Cf,xor:kf,xorBy:jf,xorWith:Tf,zip:Pf,zipObject:zf,zipObjectDeep:Nf,zipWith:Df},Rf={countBy:mr,each:Jr.a,eachRight:ao,every:Oo,filter:jo,find:zo,findLast:Fo,flatMap:Zo,flatMapDeep:Wo,flatMapDepth:Ko,forEach:Jr.a,forEachRight:ao,groupBy:di,includes:ji,invokeMap:Qi,keyBy:$a,map:Uo.a,orderBy:$l,partition:Su,reduce:os,reduceRight:as,reject:ls,sample:ms,sampleSize:_s,shuffle:Ss,size:As,some:Ps,sortBy:Ls},Hf={now:Ml.a},Bf={after:f,ary:we,before:Xe,bind:Qe,bindKey:ot,curry:wr,curryRight:Cr,debounce:Or.a,defer:Nr,delay:Dr,flip:Yo,memoize:dl.a,negate:xl,once:Il,overArgs:Gl,partial:Ou,partialRight:Mu,rearg:ns,rest:fs,spread:qs,throttle:Mc.a,unary:Xc,wrap:Of},Ff={castArray:nn,clone:Jn,cloneDeep:Qn,cloneDeepWith:er,cloneWith:tr,conformsTo:fr,eq:Mr.a,gt:vi,gte:gi,isArguments:Re.a,isArray:I.a,isArrayBuffer:na,isArrayLike:Ee.a,isArrayLikeObject:Fr.a,isBoolean:ra,isBuffer:Fn.a,isDate:aa,isElement:la,isEmpty:fa,isEqual:pa,isEqualWith:ha,isError:qe,isFinite:ga,isFunction:li.a,isInteger:ya,isLength:ma.a,isMap:Wn,isMatch:wa,isMatchWith:_a,isNaN:Oa,isNative:ka,isNil:ja,isNull:Ta,isNumber:Ca,isObject:y.a,isObjectLike:R.a,isPlainObject:Ge.a,isRegExp:za,isSafeInteger:Na,isSet:qn,isString:Mi,isSymbol:r.a,isTypedArray:sa.a,isUndefined:Da.a,isWeakMap:Ia,isWeakSet:Ra,lt:Xa,lte:Ja,toArray:Ol,toFinite:s,toInteger:c,toLength:Eo,toNumber:u.a,toPlainObject:Ic.a,toSafeInteger:Rc,toString:it.a},Vf={add:l,ceil:ln,divide:Wr,floor:Xo,max:al,maxBy:ll,mean:cl,meanBy:fl,min:gl,minBy:yl,multiply:bl,round:vs,subtract:tc,sum:nc,sumBy:rc},$f={clamp:hn,inRange:Ei,random:qu},Uf={assign:ke,assignIn:Te,assignInWith:Pe,assignWith:Le,at:Ze,create:br,defaults:kr,defaultsDeep:Lr,entries:po,entriesIn:ho,extend:Te,extendWith:Pe,findKey:Io,findLastKey:Vo,forIn:ni,forInRight:ri,forOwn:oi,forOwnRight:ii,functions:si,functionsIn:ci,get:ze.a,has:xi,hasIn:wi.a,invert:$i,invertBy:Ki,invoke:Ji,keys:Se.a,keysIn:je.a,mapKeys:Qa,mapValues:el,merge:pl.a,mergeWith:Pr,omit:Pl,omitBy:Dl,pick:ku,pickBy:Nl,result:ds,set:Cs,setWith:Os,toPairs:po,toPairsIn:ho,transform:Bc,unset:hf,update:bf,updateWith:xf,values:Ai,valuesIn:_f},Zf={at:Ef,chain:un,commit:nr,lodash:$,next:El,plant:ju,reverse:Sf,tap:sc,thru:Sc,toIterator:Tc,toJSON:Lc,value:Lc,valueOf:Lc,wrapperChain:Mf},Wf={camelCase:tn,capitalize:Et,deburr:Tt,endsWith:lo,escape:mo,escapeRegExp:wo,kebabCase:Va,lowerCase:Ga,lowerFirst:qa,pad:yu,padEnd:mu,padStart:bu,parseInt:_u,repeat:ss,replace:cs,snakeCase:js,split:Ks,startCase:Ys,startsWith:Xs,template:Ec,templateSettings:gc,toLower:zc,toUpper:Hc,trim:Uc,trimEnd:Wc,trimStart:Gc,truncate:Yc,unescape:tf,upperCase:wf,upperFirst:Ot,words:Jt},Kf={attempt:Ye,bindAll:nt,cond:lr,conforms:cr,constant:dr.a,defaultTo:Er,flow:Qo,flowRight:ei,identity:d.a,iteratee:Ha,matches:nl,matchesProperty:ol,method:hl,methodOf:vl,mixin:ml,noop:j,nthArg:kl,over:Zl,overEvery:ql,overSome:Xl,property:Tu.a,propertyOf:Pu,range:es,rangeRight:ts,stubArray:_n.a,stubFalse:Sa.a,stubObject:Js,stubString:Qs,stubTrue:ec,times:jc,toPath:Dc,uniqueId:pf};var Gf=function(){var e=new k(this.__wrapped__);return e.__actions__=Object(H.a)(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Object(H.a)(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Object(H.a)(this.__views__),e};var qf=function(){if(this.__filtered__){var e=new k(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Yf=Math.max,Xf=Math.min;var Jf=function(e,t,n){for(var r=-1,o=n.length;++re.length?n:e})),s.value=e.join(f)}else s.value=e.join(n.slice(l,l+s.count));l+=s.count,s.added||(u+=s.count)}}var d=t[a-1];return a>1&&"string"==typeof d.value&&(d.added||d.removed)&&e.equals("",d.value)&&(t[a-2].value+=d.value,t.pop()),t}function r(e){return{newPos:e.newPos,components:e.components.slice(0)}}t.prototype={diff:function(e,t){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=o.callback;"function"==typeof o&&(i=o,o={}),this.options=o;var a=this;function l(e){return i?(setTimeout((function(){i(void 0,e)}),0),!0):e}e=this.castInput(e),t=this.castInput(t),e=this.removeEmpty(this.tokenize(e));var u=(t=this.removeEmpty(this.tokenize(t))).length,s=e.length,c=1,f=u+s,d=[{newPos:-1,components:[]}],p=this.extractCommon(d[0],t,e,0);if(d[0].newPos+1>=u&&p+1>=s)return l([{value:this.join(t),count:t.length}]);function h(){for(var o=-1*c;o<=c;o+=2){var i=void 0,f=d[o-1],p=d[o+1],h=(p?p.newPos:0)-o;f&&(d[o-1]=void 0);var v=f&&f.newPos+1=u&&h+1>=s)return l(n(a,i.components,t,e,a.useLongestToken));d[o]=i}else d[o]=void 0}c++}if(i)!function e(){setTimeout((function(){if(c>f)return i();h()||e()}),0)}();else for(;c<=f;){var v=h();if(v)return v}},pushComponent:function(e,t,n){var r=e[e.length-1];r&&r.added===t&&r.removed===n?e[e.length-1]={count:r.count+1,added:t,removed:n}:e.push({count:1,added:t,removed:n})},extractCommon:function(e,t,n,r){for(var o=t.length,i=n.length,a=e.newPos,l=a-r,u=0;a+11&&void 0!==arguments[1]?arguments[1]:{},n=e.split(/\r\n|[\n\v\f\r\x85]/),r=e.match(/\r\n|[\n\v\f\r\x85]/g)||[],o=[],i=0;function a(){var e={};for(o.push(e);i2&&void 0!==arguments[2]?arguments[2]:{};if("string"==typeof t&&(t=b(t)),Array.isArray(t)){if(t.length>1)throw new Error("applyPatch only works with a single input.");t=t[0]}var r,o,i=e.split(/\r\n|[\n\v\f\r\x85]/),a=e.match(/\r\n|[\n\v\f\r\x85]/g)||[],l=t.hunks,u=n.compareLine||function(e,t,n,r){return t===r},s=0,c=n.fuzzFactor||0,f=0,d=0;function p(e,t){for(var n=0;n0?r[0]:" ",a=r.length>0?r.substr(1):r;if(" "===o||"-"===o){if(!u(t+1,i[t],o,a)&&++s>c)return!1;t++}}return!0}for(var h=0;h0?S[0]:" ",k=S.length>0?S.substr(1):S,j=O.linedelimiters[M];if(" "===A)E++;else if("-"===A)i.splice(E,1),a.splice(E,1);else if("+"===A)i.splice(E,0,k),a.splice(E,0,j),E++;else if("\\"===A){var T=O.lines[M-1]?O.lines[M-1][0]:null;"+"===T?r=!0:"-"===T&&(o=!0)}}}if(r)for(;!i[i.length-1];)i.pop(),a.pop();else o&&(i.push(""),a.push("\n"));for(var P=0;P0?u(c.lines.slice(-a.context)):[],f-=p.length,d-=p.length)}(i=p).push.apply(i,h(o.map((function(e){return(t.added?"+":"-")+e})))),t.added?g+=o.length:v+=o.length}else{if(f)if(o.length<=2*a.context&&e=l.length-2&&o.length<=a.context){var w=/\n$/.test(n),_=/\n$/.test(r),C=0==o.length&&p.length>x.oldLines;!w&&C&&p.splice(x.oldLines,0,"\\ No newline at end of file"),(w||C)&&_||p.push("\\ No newline at end of file")}s.push(x),f=0,d=0,p=[]}v+=o.length,g+=o.length}},m=0;me.length)return!1;for(var n=0;n"):r.removed&&t.push(""),t.push((o=r.value,void 0,o.replace(/&/g,"&").replace(//g,">").replace(/"/g,"""))),r.added?t.push(""):r.removed&&t.push("")}var o;return t.join("")},e.canonicalize=y,Object.defineProperty(e,"__esModule",{value:!0})}(t)},function(e,t,n){var r=n(3900);r.Template=n(3901).Template,r.template=r.Template,e.exports=r},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t){var n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(n){var r=new Uint8Array(16);e.exports=function(){return n(r),r}}else{var o=new Array(16);e.exports=function(){for(var e,t=0;t<16;t++)0==(3&t)&&(e=4294967296*Math.random()),o[t]=e>>>((3&t)<<3)&255;return o}}},function(e,t){for(var n=[],r=0;r<256;++r)n[r]=(r+256).toString(16).substr(1);e.exports=function(e,t){var r=t||0,o=n;return[o[e[r++]],o[e[r++]],o[e[r++]],o[e[r++]],"-",o[e[r++]],o[e[r++]],"-",o[e[r++]],o[e[r++]],"-",o[e[r++]],o[e[r++]],"-",o[e[r++]],o[e[r++]],o[e[r++]],o[e[r++]],o[e[r++]],o[e[r++]]].join("")}},,,,,,,,,,,,,,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=m(n(806)),o=m(n(194)),i=function(e){if(e&&e.__esModule)return e;var t=y();if(t&&t.has(e))return t.get(e);var n={};if(null!=e){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}}n.default=e,t&&t.set(e,n);return n}(n(0)),a=m(n(1)),l=m(n(990)),u=m(n(3)),s=n(826),c=n(809),f=n(926),d=n(911),p=m(n(1528)),h=m(n(946)),v=m(n(868)),g=m(n(1030));function y(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return y=function(){return e},e}function m(e){return e&&e.__esModule?e:{default:e}}function b(e){return(b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function x(){return(x=Object.assign||function(e){for(var t=1;t0&&(i=u.removeMin(),(a=l[i]).distance!==Number.POSITIVE_INFINITY);)r(i).forEach(s);return l}(e,String(t),n||i,r||function(t){return e.outEdges(t)})};var i=r.constant(1)},function(e,t,n){var r=n(908);function o(){this._arr=[],this._keyIndices={}}e.exports=o,o.prototype.size=function(){return this._arr.length},o.prototype.keys=function(){return this._arr.map((function(e){return e.key}))},o.prototype.has=function(e){return r.has(this._keyIndices,e)},o.prototype.priority=function(e){var t=this._keyIndices[e];if(void 0!==t)return this._arr[t].priority},o.prototype.min=function(){if(0===this.size())throw new Error("Queue underflow");return this._arr[0].key},o.prototype.add=function(e,t){var n=this._keyIndices;if(e=String(e),!r.has(n,e)){var o=this._arr,i=o.length;return n[e]=i,o.push({key:e,priority:t}),this._decrease(i),!0}return!1},o.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var e=this._arr.pop();return delete this._keyIndices[e.key],this._heapify(0),e.key},o.prototype.decrease=function(e,t){var n=this._keyIndices[e];if(t>this._arr[n].priority)throw new Error("New priority is greater than current priority. Key: "+e+" Old: "+this._arr[n].priority+" New: "+t);this._arr[n].priority=t,this._decrease(n)},o.prototype._heapify=function(e){var t=this._arr,n=2*e,r=n+1,o=e;n>1].priority=t.length)return e.target=void 0,A(void 0,!0);var r=t[n];switch(e.kind){case"keys":return A(r.key,!1);case"values":return A(r.value,!1)}return A([r.key,r.value],!1)}),!0),se=function(e){this.entries=[],this.url=null,void 0!==e&&(_(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===Z(e,0)?J(e,1):e:C(e)))};se.prototype={type:"URLSearchParams",bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,n,r,o,i,l,u,s=this.entries,c=S(e);if(c)for(n=(t=M(e,c)).next;!(r=a(n,t)).done;){if(i=(o=M(w(r.value))).next,(l=a(i,o)).done||(u=a(i,o)).done||!a(i,o).done)throw new V("Expected sequence with length 2");K(s,{key:C(l.value),value:C(u.value)})}else for(var f in e)m(e,f)&&K(s,{key:f,value:C(e[f])})},parseQuery:function(e){if(e)for(var t,n,r=this.entries,o=X(e,"&"),i=0;i0?arguments[0]:void 0,t=L(this,new se(e));u||(this.size=t.entries.length)},fe=ce.prototype;if(d(fe,{append:function(e,t){var n=z(this);k(arguments.length,2),K(n.entries,{key:C(e),value:C(t)}),u||this.length++,n.updateURL()},delete:function(e){for(var t=z(this),n=k(arguments.length,1),r=t.entries,o=C(e),i=n<2?void 0:arguments[1],a=void 0===i?i:C(i),l=0;lt.key?1:-1})),e.updateURL()},forEach:function(e){for(var t,n=z(this).entries,r=b(e,arguments.length>1?arguments[1]:void 0),o=0;o1?he(arguments[1]):{})}}),y(I)){var ve=function(e){return g(this,H),new I(e,arguments.length>1?he(arguments[1]):{})};H.constructor=ve,ve.prototype=H,r({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:ve})}}e.exports={URLSearchParams:ce,getState:z}},function(e,t,n){"use strict";var r=n(8),o=n(39);r({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return o(URL.prototype.toString,this)}})},function(e,t,n){"use strict";n(1920)},function(e,t,n){"use strict";var r=n(67),o=n(21),i=n(46),a=n(328),l=URLSearchParams,u=l.prototype,s=o(u.append),c=o(u.delete),f=o(u.forEach),d=o([].push),p=new l("a=1&a=2&b=3");p.delete("a",1),p.delete("b",void 0),p+""!="a=2"&&r(u,"delete",(function(e){var t=arguments.length,n=t<2?void 0:arguments[1];if(t&&void 0===n)return c(this,e);var r=[];f(this,(function(e,t){d(r,{key:t,value:e})})),a(t,1);for(var o,l=i(e),u=i(n),p=0,h=0,v=!1,g=r.length;p2?arguments[2]:void 0)}))},function(e,t,n){"use strict";var r=n(811),o=n(113).every,i=r.aTypedArray;(0,r.exportTypedArrayMethod)("every",(function(e){return o(i(this),e,arguments.length>1?arguments[1]:void 0)}))},function(e,t,n){"use strict";var r=n(811),o=n(1278),i=n(1454),a=n(202),l=n(39),u=n(21),s=n(19),c=r.aTypedArray,f=r.exportTypedArrayMethod,d=u("".slice);f("fill",(function(e){var t=arguments.length;c(this);var n="Big"===d(a(this),0,3)?i(e):+e;return l(o,this,n,t>1?arguments[1]:void 0,t>2?arguments[2]:void 0)}),s((function(){var e=0;return new Int8Array(2).fill({valueOf:function(){return e++}}),1!==e})))},function(e,t,n){"use strict";var r=n(811),o=n(113).filter,i=n(4800),a=r.aTypedArray;(0,r.exportTypedArrayMethod)("filter",(function(e){var t=o(a(this),e,arguments.length>1?arguments[1]:void 0);return i(this,t)}))},function(e,t,n){"use strict";var r=n(811),o=n(113).find,i=r.aTypedArray;(0,r.exportTypedArrayMethod)("find",(function(e){return o(i(this),e,arguments.length>1?arguments[1]:void 0)}))},function(e,t,n){"use strict";var r=n(811),o=n(113).findIndex,i=r.aTypedArray;(0,r.exportTypedArrayMethod)("findIndex",(function(e){return o(i(this),e,arguments.length>1?arguments[1]:void 0)}))},function(e,t,n){"use strict";var r=n(811),o=n(113).forEach,i=r.aTypedArray;(0,r.exportTypedArrayMethod)("forEach",(function(e){o(i(this),e,arguments.length>1?arguments[1]:void 0)}))},function(e,t,n){"use strict";var r=n(811),o=n(258).includes,i=r.aTypedArray;(0,r.exportTypedArrayMethod)("includes",(function(e){return o(i(this),e,arguments.length>1?arguments[1]:void 0)}))},function(e,t,n){"use strict";var r=n(811),o=n(258).indexOf,i=r.aTypedArray;(0,r.exportTypedArrayMethod)("indexOf",(function(e){return o(i(this),e,arguments.length>1?arguments[1]:void 0)}))},function(e,t,n){"use strict";var r=n(25),o=n(19),i=n(21),a=n(811),l=n(29),u=n(40)("iterator"),s=r.Uint8Array,c=i(l.values),f=i(l.keys),d=i(l.entries),p=a.aTypedArray,h=a.exportTypedArrayMethod,v=s&&s.prototype,g=!o((function(){v[u].call([1])})),y=!!v&&v.values&&v[u]===v.values&&"values"===v.values.name,m=function(){return c(p(this))};h("entries",(function(){return d(p(this))}),g),h("keys",(function(){return f(p(this))}),g),h("values",m,g||!y,{name:"values"}),h(u,m,g||!y,{name:"values"})},function(e,t,n){"use strict";var r=n(811),o=n(21),i=r.aTypedArray,a=r.exportTypedArrayMethod,l=o([].join);a("join",(function(e){return l(i(this),e)}))},function(e,t,n){"use strict";var r=n(811),o=n(144),i=n(1623),a=r.aTypedArray;(0,r.exportTypedArrayMethod)("lastIndexOf",(function(e){var t=arguments.length;return o(i,a(this),t>1?[e,arguments[1]]:[e])}))},function(e,t,n){"use strict";var r=n(811),o=n(113).map,i=n(1246),a=r.aTypedArray;(0,r.exportTypedArrayMethod)("map",(function(e){return o(a(this),e,arguments.length>1?arguments[1]:void 0,(function(e,t){return new(i(e))(t)}))}))},function(e,t,n){"use strict";var r=n(811),o=n(485).left,i=r.aTypedArray;(0,r.exportTypedArrayMethod)("reduce",(function(e){var t=arguments.length;return o(i(this),e,t,t>1?arguments[1]:void 0)}))},function(e,t,n){"use strict";var r=n(811),o=n(485).right,i=r.aTypedArray;(0,r.exportTypedArrayMethod)("reduceRight",(function(e){var t=arguments.length;return o(i(this),e,t,t>1?arguments[1]:void 0)}))},function(e,t,n){"use strict";var r=n(811),o=r.aTypedArray,i=r.exportTypedArrayMethod,a=Math.floor;i("reverse",(function(){for(var e,t=o(this).length,n=a(t/2),r=0;r1?arguments[1]:void 0,1),n=u(e);if(g)return o(p,this,n,t);var r=this.length,i=a(n),s=0;if(i+t>r)throw new c("Wrong length");for(;si;)s[i]=n[i++];return s}),i((function(){new Int8Array(1).slice()})))},function(e,t,n){"use strict";var r=n(811),o=n(113).some,i=r.aTypedArray;(0,r.exportTypedArrayMethod)("some",(function(e){return o(i(this),e,arguments.length>1?arguments[1]:void 0)}))},function(e,t,n){"use strict";var r=n(25),o=n(209),i=n(19),a=n(89),l=n(486),u=n(811),s=n(503),c=n(504),f=n(145),d=n(505),p=u.aTypedArray,h=u.exportTypedArrayMethod,v=r.Uint16Array,g=v&&o(v.prototype.sort),y=!(!g||i((function(){g(new v(2),null)}))&&i((function(){g(new v(2),{})}))),m=!!g&&!i((function(){if(f)return f<74;if(s)return s<67;if(c)return!0;if(d)return d<602;var e,t,n=new v(516),r=Array(516);for(e=0;e<516;e++)t=e%4,n[e]=515-e,r[e]=e-2*t+3;for(g(n,(function(e,t){return(e/4|0)-(t/4|0)})),e=0;e<516;e++)if(n[e]!==r[e])return!0}));h("sort",(function(e){return void 0!==e&&a(e),m?g(this,e):l(p(this),function(e){return function(t,n){return void 0!==e?+e(t,n)||0:n!=n?-1:t!=t?1:0===t&&0===n?1/t>0&&1/n<0?1:-1:t>n}}(e))}),!m||y)},function(e,t,n){"use strict";var r=n(811),o=n(140),i=n(256),a=n(1246),l=r.aTypedArray;(0,r.exportTypedArrayMethod)("subarray",(function(e,t){var n=l(this),r=n.length,u=i(e,r);return new(a(n))(n.buffer,n.byteOffset+u*n.BYTES_PER_ELEMENT,o((void 0===t?r:i(t,r))-u))}))},function(e,t,n){"use strict";var r=n(25),o=n(144),i=n(811),a=n(19),l=n(124),u=r.Int8Array,s=i.aTypedArray,c=i.exportTypedArrayMethod,f=[].toLocaleString,d=!!u&&a((function(){f.call(new u(1))}));c("toLocaleString",(function(){return o(f,d?l(s(this)):s(this),l(arguments))}),a((function(){return[1,2].toLocaleString()!==new u([1,2]).toLocaleString()}))||!a((function(){u.prototype.toLocaleString.call([1,2])})))},function(e,t,n){"use strict";var r=n(811).exportTypedArrayMethod,o=n(19),i=n(25),a=n(21),l=i.Uint8Array,u=l&&l.prototype||{},s=[].toString,c=a([].join);o((function(){s.call({})}))&&(s=function(){return c(this)});var f=u.toString!==s;r("toString",s,f)},function(e,t,n){"use strict";var r=n(21),o=n(1957),i=r(ArrayBuffer.prototype.slice);e.exports=function(e){if(0!==o(e))return!1;try{return i(e,0,0),!1}catch(e){return!0}}},function(e,t,n){"use strict";var r=n(338),o=n(91),i=TypeError;e.exports=r(ArrayBuffer.prototype,"byteLength","get")||function(e){if("ArrayBuffer"!==o(e))throw new i("ArrayBuffer expected");return e.byteLength}},function(e,t,n){"use strict";var r=n(25),o=n(21),i=n(338),a=n(1453),l=n(1956),u=n(1957),s=n(4805),c=n(1959),f=r.structuredClone,d=r.ArrayBuffer,p=r.DataView,h=r.TypeError,v=Math.min,g=d.prototype,y=p.prototype,m=o(g.slice),b=i(g,"resizable","get"),x=i(g,"maxByteLength","get"),w=o(y.getInt8),_=o(y.setInt8);e.exports=(c||s)&&function(e,t,n){var r,o=u(e),i=void 0===t?o:a(t),g=!b||!b(e);if(l(e))throw new h("ArrayBuffer is detached");if(c&&(e=f(e,{transfer:[e]}),o===i&&(n||g)))return e;if(o>=i&&(!n||g))r=m(e,0,i);else{var y=n&&!g&&x?{maxByteLength:x(e)}:void 0;r=new d(i,y);for(var C=new p(e),O=new p(r),E=v(i,o),M=0;M92||u&&i>94||a&&i>97)return!1;var e=new ArrayBuffer(8),t=s(e,{transfer:[e]});return 0!==e.byteLength||8!==t.byteLength}))},function(e,t,n){"use strict";var r=n(141),o=n(165),i=n(77),a=n(99),l=function(e){var t=1===e;return function(n,l,u){for(var s,c=i(n),f=o(c),d=a(f),p=r(l,u);d-- >0;)if(p(s=f[d],d,c))switch(e){case 0:return s;case 1:return d}return t?-1:void 0}};e.exports={findLast:l(0),findLastIndex:l(1)}},,function(e,t,n){var r=n(203),o=n(1963),i=o?function(e,t){return o.set(e,t),e}:r;e.exports=i},function(e,t,n){var r=n(516),o=r&&new r;e.exports=o},function(e,t,n){var r=n(1965),o=n(1966),i=n(4841),a=n(1247),l=n(1967),u=n(1458),s=n(4850),c=n(1248),f=n(100);e.exports=function e(t,n,d,p,h,v,g,y,m,b){var x=128&n,w=1&n,_=2&n,C=24&n,O=512&n,E=_?void 0:a(t);return function M(){for(var S=arguments.length,A=Array(S),k=S;k--;)A[k]=arguments[k];if(C)var j=u(M),T=i(A,j);if(p&&(A=r(A,p,h,C)),v&&(A=o(A,v,g,C)),S-=T,C&&S1&&A.reverse(),x&&ml))return!1;var s=i.get(e);if(s&&i.get(t))return s==t;var c=-1,f=!0,d=2&n?new ae:void 0;for(i.set(e,t),i.set(t,e);++c-1},oe.prototype.set=function(e,t){var n=this.__data__,r=se(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},ie.prototype.clear=function(){this.size=0,this.__data__={hash:new re,map:new(Z||oe),string:new re}},ie.prototype.delete=function(e){var t=ye(this,e).delete(e);return this.size-=t?1:0,t},ie.prototype.get=function(e){return ye(this,e).get(e)},ie.prototype.has=function(e){return ye(this,e).has(e)},ie.prototype.set=function(e,t){var n=ye(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},ae.prototype.add=ae.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},ae.prototype.has=function(e){return this.__data__.has(e)},le.prototype.clear=function(){this.__data__=new oe,this.size=0},le.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},le.prototype.get=function(e){return this.__data__.get(e)},le.prototype.has=function(e){return this.__data__.has(e)},le.prototype.set=function(e,t){var n=this.__data__;if(n instanceof oe){var r=n.__data__;if(!Z||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new ie(r)}return n.set(e,t),this.size=n.size,this};var be=F?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n-1&&e%1==0&&e-1&&e%1==0&&e<=9007199254740991}function ke(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function je(e){return null!=e&&"object"==typeof e}var Te=m?function(e){return function(t){return e(t)}}(m):function(e){return je(e)&&Ae(e.length)&&!!s[ce(e)]};function Pe(e){return null!=(t=e)&&Ae(t.length)&&!Se(t)?ue(e):he(e);var t}n.exports=function(e,t){return de(e,t)}}).call(this,n(69),n(138)(e))},,,,,,,,,,,function(e,t,n){"use strict";n.r(t),n.d(t,"add",(function(){return l})),n.d(t,"after",(function(){return f})),n.d(t,"ary",(function(){return we})),n.d(t,"assign",(function(){return ke})),n.d(t,"assignIn",(function(){return Te})),n.d(t,"assignInWith",(function(){return Pe})),n.d(t,"assignWith",(function(){return Le})),n.d(t,"at",(function(){return Ze})),n.d(t,"attempt",(function(){return Ye})),n.d(t,"before",(function(){return Xe})),n.d(t,"bind",(function(){return Qe})),n.d(t,"bindAll",(function(){return nt})),n.d(t,"bindKey",(function(){return ot})),n.d(t,"camelCase",(function(){return tn})),n.d(t,"capitalize",(function(){return Et})),n.d(t,"castArray",(function(){return nn})),n.d(t,"ceil",(function(){return ln})),n.d(t,"chain",(function(){return un})),n.d(t,"chunk",(function(){return dn})),n.d(t,"clamp",(function(){return hn})),n.d(t,"clone",(function(){return Jn})),n.d(t,"cloneDeep",(function(){return Qn})),n.d(t,"cloneDeepWith",(function(){return er})),n.d(t,"cloneWith",(function(){return tr})),n.d(t,"commit",(function(){return nr})),n.d(t,"compact",(function(){return rr})),n.d(t,"concat",(function(){return or})),n.d(t,"cond",(function(){return lr})),n.d(t,"conforms",(function(){return cr})),n.d(t,"conformsTo",(function(){return fr})),n.d(t,"constant",(function(){return dr.a})),n.d(t,"countBy",(function(){return mr})),n.d(t,"create",(function(){return br})),n.d(t,"curry",(function(){return wr})),n.d(t,"curryRight",(function(){return Cr})),n.d(t,"debounce",(function(){return Or.a})),n.d(t,"deburr",(function(){return Tt})),n.d(t,"defaultTo",(function(){return Er})),n.d(t,"defaults",(function(){return kr})),n.d(t,"defaultsDeep",(function(){return Lr})),n.d(t,"defer",(function(){return Nr})),n.d(t,"delay",(function(){return Dr})),n.d(t,"difference",(function(){return Vr})),n.d(t,"differenceBy",(function(){return Ur})),n.d(t,"differenceWith",(function(){return Zr})),n.d(t,"divide",(function(){return Wr})),n.d(t,"drop",(function(){return Kr})),n.d(t,"dropRight",(function(){return Gr})),n.d(t,"dropRightWhile",(function(){return Yr})),n.d(t,"dropWhile",(function(){return Xr})),n.d(t,"each",(function(){return Jr.a})),n.d(t,"eachRight",(function(){return ao})),n.d(t,"endsWith",(function(){return lo})),n.d(t,"entries",(function(){return po})),n.d(t,"entriesIn",(function(){return ho})),n.d(t,"eq",(function(){return Mr.a})),n.d(t,"escape",(function(){return mo})),n.d(t,"escapeRegExp",(function(){return wo})),n.d(t,"every",(function(){return Oo})),n.d(t,"extend",(function(){return Te})),n.d(t,"extendWith",(function(){return Pe})),n.d(t,"fill",(function(){return So})),n.d(t,"filter",(function(){return jo})),n.d(t,"find",(function(){return zo})),n.d(t,"findIndex",(function(){return Lo})),n.d(t,"findKey",(function(){return Io})),n.d(t,"findLast",(function(){return Fo})),n.d(t,"findLastIndex",(function(){return Bo})),n.d(t,"findLastKey",(function(){return Vo})),n.d(t,"first",(function(){return $o})),n.d(t,"flatMap",(function(){return Zo})),n.d(t,"flatMapDeep",(function(){return Wo})),n.d(t,"flatMapDepth",(function(){return Ko})),n.d(t,"flatten",(function(){return Ve})),n.d(t,"flattenDeep",(function(){return Go})),n.d(t,"flattenDepth",(function(){return qo})),n.d(t,"flip",(function(){return Yo})),n.d(t,"floor",(function(){return Xo})),n.d(t,"flow",(function(){return Qo})),n.d(t,"flowRight",(function(){return ei})),n.d(t,"forEach",(function(){return Jr.a})),n.d(t,"forEachRight",(function(){return ao})),n.d(t,"forIn",(function(){return ni})),n.d(t,"forInRight",(function(){return ri})),n.d(t,"forOwn",(function(){return oi})),n.d(t,"forOwnRight",(function(){return ii})),n.d(t,"fromPairs",(function(){return ai})),n.d(t,"functions",(function(){return si})),n.d(t,"functionsIn",(function(){return ci})),n.d(t,"get",(function(){return ze.a})),n.d(t,"groupBy",(function(){return di})),n.d(t,"gt",(function(){return vi})),n.d(t,"gte",(function(){return gi})),n.d(t,"has",(function(){return xi})),n.d(t,"hasIn",(function(){return wi.a})),n.d(t,"head",(function(){return $o})),n.d(t,"identity",(function(){return d.a})),n.d(t,"inRange",(function(){return Ei})),n.d(t,"includes",(function(){return ji})),n.d(t,"indexOf",(function(){return Pi})),n.d(t,"initial",(function(){return Li})),n.d(t,"intersection",(function(){return Ii})),n.d(t,"intersectionBy",(function(){return Ri})),n.d(t,"intersectionWith",(function(){return Hi})),n.d(t,"invert",(function(){return $i})),n.d(t,"invertBy",(function(){return Ki})),n.d(t,"invoke",(function(){return Ji})),n.d(t,"invokeMap",(function(){return Qi})),n.d(t,"isArguments",(function(){return Re.a})),n.d(t,"isArray",(function(){return I.a})),n.d(t,"isArrayBuffer",(function(){return na})),n.d(t,"isArrayLike",(function(){return Ee.a})),n.d(t,"isArrayLikeObject",(function(){return Fr.a})),n.d(t,"isBoolean",(function(){return ra})),n.d(t,"isBuffer",(function(){return Fn.a})),n.d(t,"isDate",(function(){return aa})),n.d(t,"isElement",(function(){return la})),n.d(t,"isEmpty",(function(){return fa})),n.d(t,"isEqual",(function(){return pa})),n.d(t,"isEqualWith",(function(){return ha})),n.d(t,"isError",(function(){return qe})),n.d(t,"isFinite",(function(){return ga})),n.d(t,"isFunction",(function(){return li.a})),n.d(t,"isInteger",(function(){return ya})),n.d(t,"isLength",(function(){return ma.a})),n.d(t,"isMap",(function(){return Wn})),n.d(t,"isMatch",(function(){return wa})),n.d(t,"isMatchWith",(function(){return _a})),n.d(t,"isNaN",(function(){return Oa})),n.d(t,"isNative",(function(){return ka})),n.d(t,"isNil",(function(){return ja})),n.d(t,"isNull",(function(){return Ta})),n.d(t,"isNumber",(function(){return Ca})),n.d(t,"isObject",(function(){return y.a})),n.d(t,"isObjectLike",(function(){return R.a})),n.d(t,"isPlainObject",(function(){return Ge.a})),n.d(t,"isRegExp",(function(){return za})),n.d(t,"isSafeInteger",(function(){return Na})),n.d(t,"isSet",(function(){return qn})),n.d(t,"isString",(function(){return Mi})),n.d(t,"isSymbol",(function(){return r.a})),n.d(t,"isTypedArray",(function(){return sa.a})),n.d(t,"isUndefined",(function(){return Da.a})),n.d(t,"isWeakMap",(function(){return Ia})),n.d(t,"isWeakSet",(function(){return Ra})),n.d(t,"iteratee",(function(){return Ha})),n.d(t,"join",(function(){return Fa})),n.d(t,"kebabCase",(function(){return Va})),n.d(t,"keyBy",(function(){return $a})),n.d(t,"keys",(function(){return Se.a})),n.d(t,"keysIn",(function(){return je.a})),n.d(t,"last",(function(){return $r})),n.d(t,"lastIndexOf",(function(){return Ka})),n.d(t,"lodash",(function(){return $})),n.d(t,"lowerCase",(function(){return Ga})),n.d(t,"lowerFirst",(function(){return qa})),n.d(t,"lt",(function(){return Xa})),n.d(t,"lte",(function(){return Ja})),n.d(t,"map",(function(){return Uo.a})),n.d(t,"mapKeys",(function(){return Qa})),n.d(t,"mapValues",(function(){return el})),n.d(t,"matches",(function(){return nl})),n.d(t,"matchesProperty",(function(){return ol})),n.d(t,"max",(function(){return al})),n.d(t,"maxBy",(function(){return ll})),n.d(t,"mean",(function(){return cl})),n.d(t,"meanBy",(function(){return fl})),n.d(t,"memoize",(function(){return dl.a})),n.d(t,"merge",(function(){return pl.a})),n.d(t,"mergeWith",(function(){return Pr})),n.d(t,"method",(function(){return hl})),n.d(t,"methodOf",(function(){return vl})),n.d(t,"min",(function(){return gl})),n.d(t,"minBy",(function(){return yl})),n.d(t,"mixin",(function(){return ml})),n.d(t,"multiply",(function(){return bl})),n.d(t,"negate",(function(){return xl})),n.d(t,"next",(function(){return El})),n.d(t,"noop",(function(){return j})),n.d(t,"now",(function(){return Ml.a})),n.d(t,"nth",(function(){return Al})),n.d(t,"nthArg",(function(){return kl})),n.d(t,"omit",(function(){return Pl})),n.d(t,"omitBy",(function(){return Dl})),n.d(t,"once",(function(){return Il})),n.d(t,"orderBy",(function(){return $l})),n.d(t,"over",(function(){return Zl})),n.d(t,"overArgs",(function(){return Gl})),n.d(t,"overEvery",(function(){return ql})),n.d(t,"overSome",(function(){return Xl})),n.d(t,"pad",(function(){return yu})),n.d(t,"padEnd",(function(){return mu})),n.d(t,"padStart",(function(){return bu})),n.d(t,"parseInt",(function(){return _u})),n.d(t,"partial",(function(){return Ou})),n.d(t,"partialRight",(function(){return Mu})),n.d(t,"partition",(function(){return Su})),n.d(t,"pick",(function(){return ku})),n.d(t,"pickBy",(function(){return Nl})),n.d(t,"plant",(function(){return ju})),n.d(t,"property",(function(){return Tu.a})),n.d(t,"propertyOf",(function(){return Pu})),n.d(t,"pull",(function(){return Iu})),n.d(t,"pullAll",(function(){return Du})),n.d(t,"pullAllBy",(function(){return Ru})),n.d(t,"pullAllWith",(function(){return Hu})),n.d(t,"pullAt",(function(){return Vu})),n.d(t,"random",(function(){return qu})),n.d(t,"range",(function(){return es})),n.d(t,"rangeRight",(function(){return ts})),n.d(t,"rearg",(function(){return ns})),n.d(t,"reduce",(function(){return os})),n.d(t,"reduceRight",(function(){return as})),n.d(t,"reject",(function(){return ls})),n.d(t,"remove",(function(){return us})),n.d(t,"repeat",(function(){return ss})),n.d(t,"replace",(function(){return cs})),n.d(t,"rest",(function(){return fs})),n.d(t,"result",(function(){return ds})),n.d(t,"reverse",(function(){return hs})),n.d(t,"round",(function(){return vs})),n.d(t,"sample",(function(){return ms})),n.d(t,"sampleSize",(function(){return _s})),n.d(t,"set",(function(){return Cs})),n.d(t,"setWith",(function(){return Os})),n.d(t,"shuffle",(function(){return Ss})),n.d(t,"size",(function(){return As})),n.d(t,"slice",(function(){return ks})),n.d(t,"snakeCase",(function(){return js})),n.d(t,"some",(function(){return Ps})),n.d(t,"sortBy",(function(){return Ls})),n.d(t,"sortedIndex",(function(){return Rs})),n.d(t,"sortedIndexBy",(function(){return Hs})),n.d(t,"sortedIndexOf",(function(){return Bs})),n.d(t,"sortedLastIndex",(function(){return Fs})),n.d(t,"sortedLastIndexBy",(function(){return Vs})),n.d(t,"sortedLastIndexOf",(function(){return $s})),n.d(t,"sortedUniq",(function(){return Zs})),n.d(t,"sortedUniqBy",(function(){return Ws})),n.d(t,"split",(function(){return Ks})),n.d(t,"spread",(function(){return qs})),n.d(t,"startCase",(function(){return Ys})),n.d(t,"startsWith",(function(){return Xs})),n.d(t,"stubArray",(function(){return _n.a})),n.d(t,"stubFalse",(function(){return Sa.a})),n.d(t,"stubObject",(function(){return Js})),n.d(t,"stubString",(function(){return Qs})),n.d(t,"stubTrue",(function(){return ec})),n.d(t,"subtract",(function(){return tc})),n.d(t,"sum",(function(){return nc})),n.d(t,"sumBy",(function(){return rc})),n.d(t,"tail",(function(){return oc})),n.d(t,"take",(function(){return ic})),n.d(t,"takeRight",(function(){return ac})),n.d(t,"takeRightWhile",(function(){return lc})),n.d(t,"takeWhile",(function(){return uc})),n.d(t,"tap",(function(){return sc})),n.d(t,"template",(function(){return Ec})),n.d(t,"templateSettings",(function(){return gc})),n.d(t,"throttle",(function(){return Mc.a})),n.d(t,"thru",(function(){return Sc})),n.d(t,"times",(function(){return jc})),n.d(t,"toArray",(function(){return Ol})),n.d(t,"toFinite",(function(){return s})),n.d(t,"toInteger",(function(){return c})),n.d(t,"toIterator",(function(){return Tc})),n.d(t,"toJSON",(function(){return Lc})),n.d(t,"toLength",(function(){return Eo})),n.d(t,"toLower",(function(){return zc})),n.d(t,"toNumber",(function(){return u.a})),n.d(t,"toPairs",(function(){return po})),n.d(t,"toPairsIn",(function(){return ho})),n.d(t,"toPath",(function(){return Dc})),n.d(t,"toPlainObject",(function(){return Ic.a})),n.d(t,"toSafeInteger",(function(){return Rc})),n.d(t,"toString",(function(){return it.a})),n.d(t,"toUpper",(function(){return Hc})),n.d(t,"transform",(function(){return Bc})),n.d(t,"trim",(function(){return Uc})),n.d(t,"trimEnd",(function(){return Wc})),n.d(t,"trimStart",(function(){return Gc})),n.d(t,"truncate",(function(){return Yc})),n.d(t,"unary",(function(){return Xc})),n.d(t,"unescape",(function(){return tf})),n.d(t,"union",(function(){return af})),n.d(t,"unionBy",(function(){return lf})),n.d(t,"unionWith",(function(){return uf})),n.d(t,"uniq",(function(){return sf})),n.d(t,"uniqBy",(function(){return cf})),n.d(t,"uniqWith",(function(){return ff})),n.d(t,"uniqueId",(function(){return pf})),n.d(t,"unset",(function(){return hf})),n.d(t,"unzip",(function(){return gf})),n.d(t,"unzipWith",(function(){return yf})),n.d(t,"update",(function(){return bf})),n.d(t,"updateWith",(function(){return xf})),n.d(t,"upperCase",(function(){return wf})),n.d(t,"upperFirst",(function(){return Ot})),n.d(t,"value",(function(){return Lc})),n.d(t,"valueOf",(function(){return Lc})),n.d(t,"values",(function(){return Ai})),n.d(t,"valuesIn",(function(){return _f})),n.d(t,"without",(function(){return Cf})),n.d(t,"words",(function(){return Jt})),n.d(t,"wrap",(function(){return Of})),n.d(t,"wrapperAt",(function(){return Ef})),n.d(t,"wrapperChain",(function(){return Mf})),n.d(t,"wrapperCommit",(function(){return nr})),n.d(t,"wrapperLodash",(function(){return $})),n.d(t,"wrapperNext",(function(){return El})),n.d(t,"wrapperPlant",(function(){return ju})),n.d(t,"wrapperReverse",(function(){return Sf})),n.d(t,"wrapperToIterator",(function(){return Tc})),n.d(t,"wrapperValue",(function(){return Lc})),n.d(t,"xor",(function(){return kf})),n.d(t,"xorBy",(function(){return jf})),n.d(t,"xorWith",(function(){return Tf})),n.d(t,"zip",(function(){return Pf})),n.d(t,"zipObject",(function(){return zf})),n.d(t,"zipObjectDeep",(function(){return Nf})),n.d(t,"zipWith",(function(){return Df})),n.d(t,"default",(function(){return sd}));var r=n(897);var o=function(e){return"number"==typeof e?e:Object(r.a)(e)?NaN:+e},i=n(941);var a=function(e,t){return function(n,r){var a;if(void 0===n&&void 0===r)return t;if(void 0!==n&&(a=n),void 0!==r){if(void 0===a)return r;"string"==typeof n||"string"==typeof r?(n=Object(i.a)(n),r=Object(i.a)(r)):(n=o(n),r=o(r)),a=e(n,r)}return a}},l=a((function(e,t){return e+t}),0),u=n(938);var s=function(e){return e?(e=Object(u.a)(e))===1/0||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0};var c=function(e){var t=s(e),n=t%1;return t==t?n?t-n:t:0};var f=function(e,t){if("function"!=typeof t)throw new TypeError("Expected a function");return e=c(e),function(){if(--e<1)return t.apply(this,arguments)}},d=n(875),p=n(1675),h=p.a&&new p.a,v=h?function(e,t){return h.set(e,t),e}:d.a,g=n(1058),y=n(840);var m=function(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=Object(g.a)(e.prototype),r=e.apply(n,t);return Object(y.a)(r)?r:n}},b=n(860);var x=function(e,t,n){var r=1&t,o=m(e);return function t(){var i=this&&this!==b.a&&this instanceof t?o:e;return i.apply(r?n:this,arguments)}},w=n(904),_=Math.max;var C=function(e,t,n,r){for(var o=-1,i=e.length,a=n.length,l=-1,u=t.length,s=_(i-a,0),c=Array(u+s),f=!r;++l1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(Y,"{\n/* [wrapped with "+t+"] */\n")},J=n(1469),Q=n(1010);var ee=function(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i-1},ie=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]];var ae=function(e,t){return Object(Q.a)(ie,(function(n){var r="_."+n[0];t&n[1]&&!oe(e,r)&&e.push(r)})),e.sort()};var le=function(e,t,n){var r=t+"";return Object(J.a)(e,X(r,ae(q(r),n)))};var ue=function(e,t,n,r,o,i,a,l,u,s){var c=8&t;t|=c?32:64,4&(t&=~(c?64:32))||(t&=-4);var f=[e,t,o,c?i:void 0,c?a:void 0,c?void 0:i,c?void 0:a,l,u,s],d=n.apply(void 0,f);return U(e)&&W(d,f),d.placeholder=r,le(d,e,t)};var se=function(e){return e.placeholder},ce=n(956),fe=Math.min;var de=function(e,t){for(var n=e.length,r=fe(t.length,n),o=Object(H.a)(e);r--;){var i=t[r];e[r]=Object(ce.a)(i,n)?o[i]:void 0}return e};var pe=function(e,t){for(var n=-1,r=e.length,o=0,i=[];++n1&&w.reverse(),f&&s0&&r(u)?n>1?e(u,n-1,r,o,i):Object(De.a)(i,u):o||(i[i.length]=u)}return i};var Ve=function(e){return(null==e?0:e.length)?Fe(e,1):[]},$e=n(1658);var Ue=function(e){return Object(J.a)(Object($e.a)(e,void 0,Ve),e+"")},Ze=Ue(Ne),We=n(808),Ke=n(893),Ge=n(1009);var qe=function(e){if(!Object(R.a)(e))return!1;var t=Object(Ke.a)(e);return"[object Error]"==t||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!Object(Ge.a)(e)},Ye=Object(We.a)((function(e,t){try{return Object(w.a)(e,void 0,t)}catch(e){return qe(e)?e:new Error(e)}}));var Xe=function(e,t){var n;if("function"!=typeof t)throw new TypeError("Expected a function");return e=c(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=void 0),n}},Je=Object(We.a)((function(e,t,n){var r=1;if(n.length){var o=pe(n,se(Je));r|=32}return xe(e,r,t,n,o)}));Je.placeholder={};var Qe=Je,et=n(957),tt=n(940),nt=Ue((function(e,t){return Object(Q.a)(t,(function(t){t=Object(tt.a)(t),Object(et.a)(e,t,Qe(e[t],e))})),e})),rt=Object(We.a)((function(e,t,n){var r=3;if(n.length){var o=pe(n,se(rt));r|=32}return xe(t,r,e,n,o)}));rt.placeholder={};var ot=rt,it=n(819);var at=function(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(o);++r=r?e:at(e,t,n)},ut=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");var st=function(e){return ut.test(e)};var ct=function(e){return e.split("")},ft="[\\ud800-\\udfff]",dt="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",pt="\\ud83c[\\udffb-\\udfff]",ht="[^\\ud800-\\udfff]",vt="(?:\\ud83c[\\udde6-\\uddff]){2}",gt="[\\ud800-\\udbff][\\udc00-\\udfff]",yt="(?:"+dt+"|"+pt+")"+"?",mt="[\\ufe0e\\ufe0f]?"+yt+("(?:\\u200d(?:"+[ht,vt,gt].join("|")+")[\\ufe0e\\ufe0f]?"+yt+")*"),bt="(?:"+[ht+dt+"?",dt,vt,gt,ft].join("|")+")",xt=RegExp(pt+"(?="+pt+")|"+bt+mt,"g");var wt=function(e){return e.match(xt)||[]};var _t=function(e){return st(e)?wt(e):ct(e)};var Ct=function(e){return function(t){t=Object(it.a)(t);var n=st(t)?_t(t):void 0,r=n?n[0]:t.charAt(0),o=n?lt(n,1).join(""):t.slice(1);return r[e]()+o}},Ot=Ct("toUpperCase");var Et=function(e){return Ot(Object(it.a)(e).toLowerCase())};var Mt=function(e,t,n,r){var o=-1,i=null==e?0:e.length;for(r&&i&&(n=e[++o]);++o=t?e:t)),e};var hn=function(e,t,n){return void 0===n&&(n=t,t=void 0),void 0!==n&&(n=(n=Object(u.a)(n))==n?n:0),void 0!==t&&(t=(t=Object(u.a)(t))==t?t:0),pn(Object(u.a)(e),t,n)},vn=n(1260);var gn=function(e,t){return e&&Object(Ce.a)(t,Object(Se.a)(t),e)};var yn=function(e,t){return e&&Object(Ce.a)(t,Object(je.a)(t),e)},mn=n(1660),bn=n(1358);var xn=function(e,t){return Object(Ce.a)(e,Object(bn.a)(e),t)},wn=n(1185),_n=n(1121),Cn=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)Object(De.a)(t,Object(bn.a)(e)),e=Object(wn.a)(e);return t}:_n.a;var On=function(e,t){return Object(Ce.a)(e,Cn(e),t)},En=n(1676),Mn=n(1677);var Sn=function(e){return Object(Mn.a)(e,je.a,Cn)},An=n(965),kn=Object.prototype.hasOwnProperty;var jn=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&kn.call(e,"index")&&(n.index=e.index,n.input=e.input),n},Tn=n(1352);var Pn=function(e,t){var n=t?Object(Tn.a)(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)},Ln=/\w*$/;var zn=function(e){var t=new e.constructor(e.source,Ln.exec(e));return t.lastIndex=e.lastIndex,t},Nn=Ie.a?Ie.a.prototype:void 0,Dn=Nn?Nn.valueOf:void 0;var In=function(e){return Dn?Object(Dn.call(e)):{}},Rn=n(1661);var Hn=function(e,t,n){var r=e.constructor;switch(t){case"[object ArrayBuffer]":return Object(Tn.a)(e);case"[object Boolean]":case"[object Date]":return new r(+e);case"[object DataView]":return Pn(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return Object(Rn.a)(e,n);case"[object Map]":return new r;case"[object Number]":case"[object String]":return new r(e);case"[object RegExp]":return zn(e);case"[object Set]":return new r;case"[object Symbol]":return In(e)}},Bn=n(1665),Fn=n(958);var Vn=function(e){return Object(R.a)(e)&&"[object Map]"==Object(An.a)(e)},$n=n(905),Un=n(1057),Zn=Un.a&&Un.a.isMap,Wn=Zn?Object($n.a)(Zn):Vn;var Kn=function(e){return Object(R.a)(e)&&"[object Set]"==Object(An.a)(e)},Gn=Un.a&&Un.a.isSet,qn=Gn?Object($n.a)(Gn):Kn,Yn={};Yn["[object Arguments]"]=Yn["[object Array]"]=Yn["[object ArrayBuffer]"]=Yn["[object DataView]"]=Yn["[object Boolean]"]=Yn["[object Date]"]=Yn["[object Float32Array]"]=Yn["[object Float64Array]"]=Yn["[object Int8Array]"]=Yn["[object Int16Array]"]=Yn["[object Int32Array]"]=Yn["[object Map]"]=Yn["[object Number]"]=Yn["[object Object]"]=Yn["[object RegExp]"]=Yn["[object Set]"]=Yn["[object String]"]=Yn["[object Symbol]"]=Yn["[object Uint8Array]"]=Yn["[object Uint8ClampedArray]"]=Yn["[object Uint16Array]"]=Yn["[object Uint32Array]"]=!0,Yn["[object Error]"]=Yn["[object Function]"]=Yn["[object WeakMap]"]=!1;var Xn=function e(t,n,r,o,i,a){var l,u=1&n,s=2&n,c=4&n;if(r&&(l=i?r(t,o,i,a):r(t)),void 0!==l)return l;if(!Object(y.a)(t))return t;var f=Object(I.a)(t);if(f){if(l=jn(t),!u)return Object(H.a)(t,l)}else{var d=Object(An.a)(t),p="[object Function]"==d||"[object GeneratorFunction]"==d;if(Object(Fn.a)(t))return Object(mn.a)(t,u);if("[object Object]"==d||"[object Arguments]"==d||p&&!i){if(l=s||p?{}:Object(Bn.a)(t),!u)return s?On(t,yn(l,t)):xn(t,gn(l,t))}else{if(!Yn[d])return i?t:{};l=Hn(t,d,u)}}a||(a=new vn.a);var h=a.get(t);if(h)return h;a.set(t,l),qn(t)?t.forEach((function(o){l.add(e(o,n,r,o,t,a))})):Wn(t)&&t.forEach((function(o,i){l.set(i,e(o,n,r,i,t,a))}));var v=c?s?Sn:En.a:s?je.a:Se.a,g=f?void 0:v(t);return Object(Q.a)(g||t,(function(o,i){g&&(o=t[i=o]),Object(_e.a)(l,i,e(o,n,r,i,t,a))})),l};var Jn=function(e){return Xn(e,4)};var Qn=function(e){return Xn(e,5)};var er=function(e,t){return Xn(e,5,t="function"==typeof t?t:void 0)};var tr=function(e,t){return Xn(e,4,t="function"==typeof t?t:void 0)};var nr=function(){return new D(this.value(),this.__chain__)};var rr=function(e){for(var t=-1,n=null==e?0:e.length,r=0,o=[];++t2?t[2]:void 0;for(o&&Object(sn.a)(t[0],t[1],o)&&(r=1);++n=200&&(i=Hr.a,a=!1,t=new Ir.a(t));e:for(;++o=0&&e.slice(n,o)==t};var uo=function(e,t){return Object(ir.a)(t,(function(t){return[t,e[t]]}))},so=n(1357);var co=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n};var fo=function(e){return function(t){var n=Object(An.a)(t);return"[object Map]"==n?Object(so.a)(t):"[object Set]"==n?co(t):uo(t,e(t))}},po=fo(Se.a),ho=fo(je.a),vo=St({"&":"&","<":"<",">":">",'"':""","'":"'"}),go=/[&<>"']/g,yo=RegExp(go.source);var mo=function(e){return(e=Object(it.a)(e))&&yo.test(e)?e.replace(go,vo):e},bo=/[\\^$.*+?()[\]{}|]/g,xo=RegExp(bo.source);var wo=function(e){return(e=Object(it.a)(e))&&xo.test(e)?e.replace(bo,"\\$&"):e};var _o=function(e,t){for(var n=-1,r=null==e?0:e.length;++no?0:o+n),(r=void 0===r||r>o?o:c(r))<0&&(r+=o),r=n>r?0:Eo(r);n-1?o[i?t[a]:a]:void 0}},Po=Math.max;var Lo=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:c(n);return o<0&&(o=Po(r+o,0)),ee(e,Object(ar.a)(t,3),o)},zo=To(Lo);var No=function(e,t,n){var r;return n(e,(function(e,n,o){if(t(e,n,o))return r=n,!1})),r},Do=n(978);var Io=function(e,t){return No(e,Object(ar.a)(t,3),Do.a)},Ro=Math.max,Ho=Math.min;var Bo=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r-1;return void 0!==n&&(o=c(n),o=n<0?Ro(r+o,0):Ho(o,r-1)),ee(e,Object(ar.a)(t,3),o,!0)},Fo=To(Bo);var Vo=function(e,t){return No(e,Object(ar.a)(t,3),no)};var $o=function(e){return e&&e.length?e[0]:void 0},Uo=n(898);var Zo=function(e,t){return Fe(Object(Uo.a)(e,t),1)};var Wo=function(e,t){return Fe(Object(Uo.a)(e,t),1/0)};var Ko=function(e,t,n){return n=void 0===n?1:c(n),Fe(Object(Uo.a)(e,t),n)};var Go=function(e){return(null==e?0:e.length)?Fe(e,1/0):[]};var qo=function(e,t){return(null==e?0:e.length)?(t=void 0===t?1:c(t),Fe(e,t)):[]};var Yo=function(e){return xe(e,512)},Xo=an("floor");var Jo=function(e){return Ue((function(t){var n=t.length,r=n,o=D.prototype.thru;for(e&&t.reverse();r--;){var i=t[r];if("function"!=typeof i)throw new TypeError("Expected a function");if(o&&!a&&"wrapper"==z(i))var a=new D([],!0)}for(r=a?r:n;++rt};var hi=function(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=Object(u.a)(t),n=Object(u.a)(n)),e(t,n)}},vi=hi(pi),gi=hi((function(e,t){return e>=t})),yi=Object.prototype.hasOwnProperty;var mi=function(e,t){return null!=e&&yi.call(e,t)},bi=n(1673);var xi=function(e,t){return null!=e&&Object(bi.a)(e,t,mi)},wi=n(1147),_i=Math.max,Ci=Math.min;var Oi=function(e,t,n){return e>=Ci(t,n)&&e<_i(t,n)};var Ei=function(e,t,n){return t=s(t),void 0===n?(n=t,t=0):n=s(n),e=Object(u.a)(e),Oi(e,t,n)};var Mi=function(e){return"string"==typeof e||!Object(I.a)(e)&&Object(R.a)(e)&&"[object String]"==Object(Ke.a)(e)};var Si=function(e,t){return Object(ir.a)(t,(function(t){return e[t]}))};var Ai=function(e){return null==e?[]:Si(e,Object(Se.a)(e))},ki=Math.max;var ji=function(e,t,n,r){e=Object(Ee.a)(e)?e:Ai(e),n=n&&!r?c(n):0;var o=e.length;return n<0&&(n=ki(o+n,0)),Mi(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&re(e,t,n)>-1},Ti=Math.max;var Pi=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:c(n);return o<0&&(o=Ti(r+o,0)),re(e,t,o)};var Li=function(e){return(null==e?0:e.length)?at(e,0,-1):[]},zi=Math.min;var Ni=function(e,t,n){for(var r=n?Rr:oe,o=e[0].length,i=e.length,a=i,l=Array(i),u=1/0,s=[];a--;){var c=e[a];a&&t&&(c=Object(ir.a)(c,Object($n.a)(t))),u=zi(c.length,u),l[a]=!n&&(t||o>=120&&c.length>=120)?new Ir.a(a&&c):void 0}c=e[0];var f=-1,d=l[0];e:for(;++f=-9007199254740991&&e<=9007199254740991},Da=n(1192);var Ia=function(e){return Object(R.a)(e)&&"[object WeakMap]"==Object(An.a)(e)};var Ra=function(e){return Object(R.a)(e)&&"[object WeakSet]"==Object(Ke.a)(e)};var Ha=function(e){return Object(ar.a)("function"==typeof e?e:Xn(e,1))},Ba=Array.prototype.join;var Fa=function(e,t){return null==e?"":Ba.call(e,t)},Va=en((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),$a=gr((function(e,t,n){Object(et.a)(e,n,t)}));var Ua=function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r},Za=Math.max,Wa=Math.min;var Ka=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r;return void 0!==n&&(o=(o=c(n))<0?Za(r+o,0):Wa(o,r-1)),t==t?Ua(e,t,o):ee(e,te,o,!0)},Ga=en((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),qa=Ct("toLowerCase");var Ya=function(e,t){return e=this.__values__.length;return{done:e,value:e?void 0:this.__values__[this.__index__++]}},Ml=n(1188);var Sl=function(e,t){var n=e.length;if(n)return t+=t<0?n:0,Object(ce.a)(t,n)?e[t]:void 0};var Al=function(e,t){return e&&e.length?Sl(e,c(t)):void 0};var kl=function(e){return e=c(e),Object(We.a)((function(t){return Sl(t,e)}))};var jl=function(e,t){return t=Object(Gi.a)(t,e),null==(e=Yi(e,t))||delete e[Object(tt.a)($r(t))]};var Tl=function(e){return Object(Ge.a)(e)?void 0:e},Pl=Ue((function(e,t){var n={};if(null==e)return n;var r=!1;t=Object(ir.a)(t,(function(t){return t=Object(Gi.a)(t,e),r||(r=t.length>1),t})),Object(Ce.a)(e,Sn(e),n),r&&(n=Xn(n,7,Tl));for(var o=t.length;o--;)jl(n,t[o]);return n}));var Ll=function(e,t,n,r){if(!Object(y.a)(e))return e;for(var o=-1,i=(t=Object(Gi.a)(t,e)).length,a=i-1,l=e;null!=l&&++ot||a&&l&&s&&!u&&!c||o&&l&&s||!n&&s||!i)return 1;if(!o&&!a&&!c&&e=l?u:u*("desc"==n[r]?-1:1)}return e.index-t.index};var Vl=function(e,t,n){t=t.length?Object(ir.a)(t,(function(e){return Object(I.a)(e)?function(t){return Object(qi.a)(t,1===e.length?e[0]:e)}:e})):[d.a];var r=-1;t=Object(ir.a)(t,Object($n.a)(ar.a));var o=Object(Rl.a)(e,(function(e,n,o){return{criteria:Object(ir.a)(t,(function(t){return t(e)})),index:++r,value:e}}));return Hl(o,(function(e,t){return Fl(e,t,n)}))};var $l=function(e,t,n,r){return null==e?[]:(Object(I.a)(t)||(t=null==t?[]:[t]),n=r?void 0:n,Object(I.a)(n)||(n=null==n?[]:[n]),Vl(e,t,n))};var Ul=function(e){return Ue((function(t){return t=Object(ir.a)(t,Object($n.a)(ar.a)),Object(We.a)((function(n){var r=this;return e(t,(function(e){return Object(w.a)(e,r,n)}))}))}))},Zl=Ul(ir.a),Wl=We.a,Kl=Math.min,Gl=Wl((function(e,t){var n=(t=1==t.length&&Object(I.a)(t[0])?Object(ir.a)(t[0],Object($n.a)(ar.a)):Object(ir.a)(Fe(t,1),Object($n.a)(ar.a))).length;return Object(We.a)((function(r){for(var o=-1,i=Kl(r.length,n);++o9007199254740991)return n;do{t%2&&(n+=e),(t=Jl(t/2))&&(e+=e)}while(t);return n},eu=n(1361),tu=Object(eu.a)("length"),nu="[\\ud800-\\udfff]",ru="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",ou="[^\\ud800-\\udfff]",iu="(?:\\ud83c[\\udde6-\\uddff]){2}",au="[\\ud800-\\udbff][\\udc00-\\udfff]",lu="(?:"+ru+"|\\ud83c[\\udffb-\\udfff])"+"?",uu="[\\ufe0e\\ufe0f]?"+lu+("(?:\\u200d(?:"+[ou,iu,au].join("|")+")[\\ufe0e\\ufe0f]?"+lu+")*"),su="(?:"+[ou+ru+"?",ru,iu,au,nu].join("|")+")",cu=RegExp("\\ud83c[\\udffb-\\udfff](?=\\ud83c[\\udffb-\\udfff])|"+su+uu,"g");var fu=function(e){for(var t=cu.lastIndex=0;cu.test(e);)++t;return t};var du=function(e){return st(e)?fu(e):tu(e)},pu=Math.ceil;var hu=function(e,t){var n=(t=void 0===t?" ":Object(i.a)(t)).length;if(n<2)return n?Ql(t,e):t;var r=Ql(t,pu(e/du(t)));return st(t)?lt(_t(r),0,e).join(""):r.slice(0,e)},vu=Math.ceil,gu=Math.floor;var yu=function(e,t,n){e=Object(it.a)(e);var r=(t=c(t))?du(e):0;if(!t||r>=t)return e;var o=(t-r)/2;return hu(gu(o),n)+e+hu(vu(o),n)};var mu=function(e,t,n){e=Object(it.a)(e);var r=(t=c(t))?du(e):0;return t&&r-1;)l!==e&&zu.call(l,u,1),zu.call(e,u,1);return e};var Du=function(e,t){return e&&e.length&&t&&t.length?Nu(e,t):e},Iu=Object(We.a)(Du);var Ru=function(e,t,n){return e&&e.length&&t&&t.length?Nu(e,t,Object(ar.a)(n,2)):e};var Hu=function(e,t,n){return e&&e.length&&t&&t.length?Nu(e,t,void 0,n):e},Bu=Array.prototype.splice;var Fu=function(e,t){for(var n=e?t.length:0,r=n-1;n--;){var o=t[n];if(n==r||o!==i){var i=o;Object(ce.a)(o)?Bu.call(e,o,1):jl(e,o)}}return e},Vu=Ue((function(e,t){var n=null==e?0:e.length,r=Ne(e,t);return Fu(e,Object(ir.a)(t,(function(e){return Object(ce.a)(e,n)?+e:e})).sort(Bl)),r})),$u=Math.floor,Uu=Math.random;var Zu=function(e,t){return e+$u(Uu()*(t-e+1))},Wu=parseFloat,Ku=Math.min,Gu=Math.random;var qu=function(e,t,n){if(n&&"boolean"!=typeof n&&Object(sn.a)(e,t,n)&&(t=n=void 0),void 0===n&&("boolean"==typeof t?(n=t,t=void 0):"boolean"==typeof e&&(n=e,e=void 0)),void 0===e&&void 0===t?(e=0,t=1):(e=s(e),void 0===t?(t=e,e=0):t=s(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var o=Gu();return Ku(e+o*(t-e+Wu("1e-"+((o+"").length-1))),t)}return Zu(e,t)},Yu=Math.ceil,Xu=Math.max;var Ju=function(e,t,n,r){for(var o=-1,i=Xu(Yu((t-e)/(n||1)),0),a=Array(i);i--;)a[r?i:++o]=e,e+=n;return a};var Qu=function(e){return function(t,n,r){return r&&"number"!=typeof r&&Object(sn.a)(t,n,r)&&(n=r=void 0),t=s(t),void 0===n?(n=t,t=0):n=s(n),r=void 0===r?t1&&Object(sn.a)(e,t[0],t[1])?t=[]:n>2&&Object(sn.a)(t[0],t[1],t[2])&&(t=[t[0]]),Vl(e,Fe(t,1),[])})),zs=Math.floor,Ns=Math.min;var Ds=function(e,t,n,o){var i=0,a=null==e?0:e.length;if(0===a)return 0;for(var l=(t=n(t))!=t,u=null===t,s=Object(r.a)(t),c=void 0===t;i>>1,l=e[a];null!==l&&!Object(r.a)(l)&&(n?l<=t:l>>0)?(e=Object(it.a)(e))&&("string"==typeof t||null!=t&&!za(t))&&!(t=Object(i.a)(t))&&st(e)?lt(_t(e),0,n):e.split(t,n):[]},Gs=Math.max;var qs=function(e,t){if("function"!=typeof e)throw new TypeError("Expected a function");return t=null==t?0:Gs(c(t),0),Object(We.a)((function(n){var r=n[t],o=lt(n,0,t);return r&&Object(De.a)(o,r),Object(w.a)(e,this,o)}))},Ys=en((function(e,t,n){return e+(n?" ":"")+Ot(t)}));var Xs=function(e,t,n){return e=Object(it.a)(e),n=null==n?0:pn(c(n),0,e.length),t=Object(i.a)(t),e.slice(n,n+t.length)==t};var Js=function(){return{}};var Qs=function(){return""};var ec=function(){return!0},tc=a((function(e,t){return e-t}),0);var nc=function(e){return e&&e.length?ul(e,d.a):0};var rc=function(e,t){return e&&e.length?ul(e,Object(ar.a)(t,2)):0};var oc=function(e){var t=null==e?0:e.length;return t?at(e,1,t):[]};var ic=function(e,t,n){return e&&e.length?(t=n||void 0===t?1:c(t),at(e,0,t<0?0:t)):[]};var ac=function(e,t,n){var r=null==e?0:e.length;return r?(t=n||void 0===t?1:c(t),at(e,(t=r-t)<0?0:t,r)):[]};var lc=function(e,t){return e&&e.length?qr(e,Object(ar.a)(t,3),!1,!0):[]};var uc=function(e,t){return e&&e.length?qr(e,Object(ar.a)(t,3)):[]};var sc=function(e,t){return t(e),e},cc=Object.prototype,fc=cc.hasOwnProperty;var dc=function(e,t,n,r){return void 0===e||Object(Mr.a)(e,cc[n])&&!fc.call(r,n)?t:e},pc={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"};var hc=function(e){return"\\"+pc[e]},vc=/<%=([\s\S]+?)%>/g,gc={escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:vc,variable:"",imports:{_:{escape:mo}}},yc=/\b__p \+= '';/g,mc=/\b(__p \+=) '' \+/g,bc=/(__e\(.*?\)|\b__t\)) \+\n'';/g,xc=/[()=,{}\[\]\/\s]/,wc=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,_c=/($^)/,Cc=/['\n\r\u2028\u2029\\]/g,Oc=Object.prototype.hasOwnProperty;var Ec=function(e,t,n){var r=gc.imports._.templateSettings||gc;n&&Object(sn.a)(e,t,n)&&(t=void 0),e=Object(it.a)(e),t=Pe({},t,r,dc);var o,i,a=Pe({},t.imports,r.imports,dc),l=Object(Se.a)(a),u=Si(a,l),s=0,c=t.interpolate||_c,f="__p += '",d=RegExp((t.escape||_c).source+"|"+c.source+"|"+(c===vc?wc:_c).source+"|"+(t.evaluate||_c).source+"|$","g"),p=Oc.call(t,"sourceURL")?"//# sourceURL="+(t.sourceURL+"").replace(/\s/g," ")+"\n":"";e.replace(d,(function(t,n,r,a,l,u){return r||(r=a),f+=e.slice(s,u).replace(Cc,hc),n&&(o=!0,f+="' +\n__e("+n+") +\n'"),l&&(i=!0,f+="';\n"+l+";\n__p += '"),r&&(f+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),s=u+t.length,t})),f+="';\n";var h=Oc.call(t,"variable")&&t.variable;if(h){if(xc.test(h))throw new Error("Invalid `variable` option passed into `_.template`")}else f="with (obj) {\n"+f+"\n}\n";f=(i?f.replace(yc,""):f).replace(mc,"$1").replace(bc,"$1;"),f="function("+(h||"obj")+") {\n"+(h?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(i?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+f+"return __p\n}";var v=Ye((function(){return Function(l,p+"return "+f).apply(void 0,u)}));if(v.source=f,qe(v))throw v;return v},Mc=n(1187);var Sc=function(e,t){return t(e)},Ac=n(1353),kc=Math.min;var jc=function(e,t){if((e=c(e))<1||e>9007199254740991)return[];var n=4294967295,r=kc(e,4294967295);t=Object(io.a)(t),e-=4294967295;for(var o=Object(Ac.a)(r,t);++n-1;);return n};var $c=function(e,t){for(var n=-1,r=e.length;++n-1;);return n};var Uc=function(e,t,n){if((e=Object(it.a)(e))&&(n||void 0===t))return Object(Fc.a)(e);if(!e||!(t=Object(i.a)(t)))return e;var r=_t(e),o=_t(t),a=$c(r,o),l=Vc(r,o)+1;return lt(r,a,l).join("")},Zc=n(1667);var Wc=function(e,t,n){if((e=Object(it.a)(e))&&(n||void 0===t))return e.slice(0,Object(Zc.a)(e)+1);if(!e||!(t=Object(i.a)(t)))return e;var r=_t(e),o=Vc(r,_t(t))+1;return lt(r,0,o).join("")},Kc=/^\s+/;var Gc=function(e,t,n){if((e=Object(it.a)(e))&&(n||void 0===t))return e.replace(Kc,"");if(!e||!(t=Object(i.a)(t)))return e;var r=_t(e),o=$c(r,_t(t));return lt(r,o).join("")},qc=/\w*$/;var Yc=function(e,t){var n=30,r="...";if(Object(y.a)(t)){var o="separator"in t?t.separator:o;n="length"in t?c(t.length):n,r="omission"in t?Object(i.a)(t.omission):r}var a=(e=Object(it.a)(e)).length;if(st(e)){var l=_t(e);a=l.length}if(n>=a)return e;var u=n-du(r);if(u<1)return r;var s=l?lt(l,0,u).join(""):e.slice(0,u);if(void 0===o)return s+r;if(l&&(u+=s.length-u),za(o)){if(e.slice(u).search(o)){var f,d=s;for(o.global||(o=RegExp(o.source,Object(it.a)(qc.exec(o))+"g")),o.lastIndex=0;f=o.exec(d);)var p=f.index;s=s.slice(0,void 0===p?u:p)}}else if(e.indexOf(Object(i.a)(o),u)!=u){var h=s.lastIndexOf(o);h>-1&&(s=s.slice(0,h))}return s+r};var Xc=function(e){return we(e,1)},Jc=St({"&":"&","<":"<",">":">",""":'"',"'":"'"}),Qc=/&(?:amp|lt|gt|quot|#39);/g,ef=RegExp(Qc.source);var tf=function(e){return(e=Object(it.a)(e))&&ef.test(e)?e.replace(Qc,Jc):e},nf=n(1674),rf=nf.a&&1/Object(_l.a)(new nf.a([,-0]))[1]==1/0?function(e){return new nf.a(e)}:j;var of=function(e,t,n){var r=-1,o=oe,i=e.length,a=!0,l=[],u=l;if(n)a=!1,o=Rr;else if(i>=200){var s=t?null:rf(e);if(s)return Object(_l.a)(s);a=!1,o=Hr.a,u=new Ir.a}else u=t?[]:l;e:for(;++r1||this.__actions__.length)&&r instanceof k&&Object(ce.a)(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:Sc,args:[o],thisArg:void 0}),new D(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(void 0),e}))):this.thru(o)}));var Mf=function(){return un(this)};var Sf=function(){var e=this.__wrapped__;if(e instanceof k){var t=e;return this.__actions__.length&&(t=new k(this)),(t=t.reverse()).__actions__.push({func:Sc,args:[hs],thisArg:void 0}),new D(t,this.__chain__)}return this.thru(hs)};var Af=function(e,t,n){var r=e.length;if(r<2)return r?of(e[0]):[];for(var o=-1,i=Array(r);++o1?e[t-1]:void 0;return n="function"==typeof n?(e.pop(),n):void 0,yf(e,n)})),If={chunk:dn,compact:rr,concat:or,difference:Vr,differenceBy:Ur,differenceWith:Zr,drop:Kr,dropRight:Gr,dropRightWhile:Yr,dropWhile:Xr,fill:So,findIndex:Lo,findLastIndex:Bo,first:$o,flatten:Ve,flattenDeep:Go,flattenDepth:qo,fromPairs:ai,head:$o,indexOf:Pi,initial:Li,intersection:Ii,intersectionBy:Ri,intersectionWith:Hi,join:Fa,last:$r,lastIndexOf:Ka,nth:Al,pull:Iu,pullAll:Du,pullAllBy:Ru,pullAllWith:Hu,pullAt:Vu,remove:us,reverse:hs,slice:ks,sortedIndex:Rs,sortedIndexBy:Hs,sortedIndexOf:Bs,sortedLastIndex:Fs,sortedLastIndexBy:Vs,sortedLastIndexOf:$s,sortedUniq:Zs,sortedUniqBy:Ws,tail:oc,take:ic,takeRight:ac,takeRightWhile:lc,takeWhile:uc,union:af,unionBy:lf,unionWith:uf,uniq:sf,uniqBy:cf,uniqWith:ff,unzip:gf,unzipWith:yf,without:Cf,xor:kf,xorBy:jf,xorWith:Tf,zip:Pf,zipObject:zf,zipObjectDeep:Nf,zipWith:Df},Rf={countBy:mr,each:Jr.a,eachRight:ao,every:Oo,filter:jo,find:zo,findLast:Fo,flatMap:Zo,flatMapDeep:Wo,flatMapDepth:Ko,forEach:Jr.a,forEachRight:ao,groupBy:di,includes:ji,invokeMap:Qi,keyBy:$a,map:Uo.a,orderBy:$l,partition:Su,reduce:os,reduceRight:as,reject:ls,sample:ms,sampleSize:_s,shuffle:Ss,size:As,some:Ps,sortBy:Ls},Hf={now:Ml.a},Bf={after:f,ary:we,before:Xe,bind:Qe,bindKey:ot,curry:wr,curryRight:Cr,debounce:Or.a,defer:Nr,delay:Dr,flip:Yo,memoize:dl.a,negate:xl,once:Il,overArgs:Gl,partial:Ou,partialRight:Mu,rearg:ns,rest:fs,spread:qs,throttle:Mc.a,unary:Xc,wrap:Of},Ff={castArray:nn,clone:Jn,cloneDeep:Qn,cloneDeepWith:er,cloneWith:tr,conformsTo:fr,eq:Mr.a,gt:vi,gte:gi,isArguments:Re.a,isArray:I.a,isArrayBuffer:na,isArrayLike:Ee.a,isArrayLikeObject:Fr.a,isBoolean:ra,isBuffer:Fn.a,isDate:aa,isElement:la,isEmpty:fa,isEqual:pa,isEqualWith:ha,isError:qe,isFinite:ga,isFunction:li.a,isInteger:ya,isLength:ma.a,isMap:Wn,isMatch:wa,isMatchWith:_a,isNaN:Oa,isNative:ka,isNil:ja,isNull:Ta,isNumber:Ca,isObject:y.a,isObjectLike:R.a,isPlainObject:Ge.a,isRegExp:za,isSafeInteger:Na,isSet:qn,isString:Mi,isSymbol:r.a,isTypedArray:sa.a,isUndefined:Da.a,isWeakMap:Ia,isWeakSet:Ra,lt:Xa,lte:Ja,toArray:Ol,toFinite:s,toInteger:c,toLength:Eo,toNumber:u.a,toPlainObject:Ic.a,toSafeInteger:Rc,toString:it.a},Vf={add:l,ceil:ln,divide:Wr,floor:Xo,max:al,maxBy:ll,mean:cl,meanBy:fl,min:gl,minBy:yl,multiply:bl,round:vs,subtract:tc,sum:nc,sumBy:rc},$f={clamp:hn,inRange:Ei,random:qu},Uf={assign:ke,assignIn:Te,assignInWith:Pe,assignWith:Le,at:Ze,create:br,defaults:kr,defaultsDeep:Lr,entries:po,entriesIn:ho,extend:Te,extendWith:Pe,findKey:Io,findLastKey:Vo,forIn:ni,forInRight:ri,forOwn:oi,forOwnRight:ii,functions:si,functionsIn:ci,get:ze.a,has:xi,hasIn:wi.a,invert:$i,invertBy:Ki,invoke:Ji,keys:Se.a,keysIn:je.a,mapKeys:Qa,mapValues:el,merge:pl.a,mergeWith:Pr,omit:Pl,omitBy:Dl,pick:ku,pickBy:Nl,result:ds,set:Cs,setWith:Os,toPairs:po,toPairsIn:ho,transform:Bc,unset:hf,update:bf,updateWith:xf,values:Ai,valuesIn:_f},Zf={at:Ef,chain:un,commit:nr,lodash:$,next:El,plant:ju,reverse:Sf,tap:sc,thru:Sc,toIterator:Tc,toJSON:Lc,value:Lc,valueOf:Lc,wrapperChain:Mf},Wf={camelCase:tn,capitalize:Et,deburr:Tt,endsWith:lo,escape:mo,escapeRegExp:wo,kebabCase:Va,lowerCase:Ga,lowerFirst:qa,pad:yu,padEnd:mu,padStart:bu,parseInt:_u,repeat:ss,replace:cs,snakeCase:js,split:Ks,startCase:Ys,startsWith:Xs,template:Ec,templateSettings:gc,toLower:zc,toUpper:Hc,trim:Uc,trimEnd:Wc,trimStart:Gc,truncate:Yc,unescape:tf,upperCase:wf,upperFirst:Ot,words:Jt},Kf={attempt:Ye,bindAll:nt,cond:lr,conforms:cr,constant:dr.a,defaultTo:Er,flow:Qo,flowRight:ei,identity:d.a,iteratee:Ha,matches:nl,matchesProperty:ol,method:hl,methodOf:vl,mixin:ml,noop:j,nthArg:kl,over:Zl,overEvery:ql,overSome:Xl,property:Tu.a,propertyOf:Pu,range:es,rangeRight:ts,stubArray:_n.a,stubFalse:Sa.a,stubObject:Js,stubString:Qs,stubTrue:ec,times:jc,toPath:Dc,uniqueId:pf};var Gf=function(){var e=new k(this.__wrapped__);return e.__actions__=Object(H.a)(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Object(H.a)(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Object(H.a)(this.__views__),e};var qf=function(){if(this.__filtered__){var e=new k(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Yf=Math.max,Xf=Math.min;var Jf=function(e,t,n){for(var r=-1,o=n.length;++r @@ -77,7 +77,7 @@ OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * Released under MIT license * Based on Underscore.js 1.8.3 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - */},function(e,t,n){"use strict";n.r(t),n.d(t,"scaleBand",(function(){return T})),n.d(t,"scalePoint",(function(){return L})),n.d(t,"scaleIdentity",(function(){return be})),n.d(t,"scaleLinear",(function(){return me})),n.d(t,"scaleLog",(function(){return Ae})),n.d(t,"scaleSymlog",(function(){return Pe})),n.d(t,"scaleOrdinal",(function(){return j})),n.d(t,"scaleImplicit",(function(){return k})),n.d(t,"scalePow",(function(){return Ie})),n.d(t,"scaleSqrt",(function(){return Re})),n.d(t,"scaleQuantile",(function(){return He})),n.d(t,"scaleQuantize",(function(){return Be})),n.d(t,"scaleThreshold",(function(){return Fe})),n.d(t,"scaleTime",(function(){return Jn})),n.d(t,"scaleUtc",(function(){return ir})),n.d(t,"scaleSequential",(function(){return ur})),n.d(t,"scaleSequentialLog",(function(){return sr})),n.d(t,"scaleSequentialPow",(function(){return fr})),n.d(t,"scaleSequentialSqrt",(function(){return dr})),n.d(t,"scaleSequentialSymlog",(function(){return cr})),n.d(t,"scaleSequentialQuantile",(function(){return pr})),n.d(t,"scaleDiverging",(function(){return vr})),n.d(t,"scaleDivergingLog",(function(){return gr})),n.d(t,"scaleDivergingPow",(function(){return mr})),n.d(t,"scaleDivergingSqrt",(function(){return br})),n.d(t,"scaleDivergingSymlog",(function(){return yr})),n.d(t,"tickFormat",(function(){return ge}));var r=function(e,t){return et?1:e>=t?0:NaN},o=function(e){var t;return 1===e.length&&(t=e,e=function(e,n){return r(t(e),n)}),{left:function(t,n,r,o){for(null==r&&(r=0),null==o&&(o=t.length);r>>1;e(t[i],n)<0?r=i+1:o=i}return r},right:function(t,n,r,o){for(null==r&&(r=0),null==o&&(o=t.length);r>>1;e(t[i],n)>0?o=i:r=i+1}return r}}};var i=o(r),a=i.right,l=(i.left,a);var u=function(e){return null===e?NaN:+e},s=Array.prototype,c=(s.slice,s.map,function(e,t,n){e=+e,t=+t,n=(o=arguments.length)<2?(t=e,e=0,1):o<3?1:+n;for(var r=-1,o=0|Math.max(0,Math.ceil((t-e)/n)),i=new Array(o);++r0)return[e];if((r=t0)for(e=Math.ceil(e/a),t=Math.floor(t/a),i=new Array(o=Math.ceil(t-e+1));++l=0?(i>=f?10:i>=d?5:i>=p?2:1)*Math.pow(10,o):-Math.pow(10,-o)/(i>=f?10:i>=d?5:i>=p?2:1)}function g(e,t,n){var r=Math.abs(t-e)/Math.max(0,n),o=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),i=r/o;return i>=f?o*=10:i>=d?o*=5:i>=p&&(o*=2),t=1)return+n(e[r-1],r-1,e);var r,o=(r-1)*t,i=Math.floor(o),a=+n(e[i],i,e);return a+(+n(e[i+1],i+1,e)-a)*(o-i)}};function m(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}function b(e,t){switch(arguments.length){case 0:break;case 1:this.interpolator(e);break;default:this.interpolator(t).domain(e)}return this}function x(){}function w(e,t){var n=new x;if(e instanceof x)e.each((function(e,t){n.set(t,e)}));else if(Array.isArray(e)){var r,o=-1,i=e.length;if(null==t)for(;++or&&(t=n,n=r,r=t),function(e){return Math.max(n,Math.min(r,e))}}function X(e,t,n){var r=e[0],o=e[1],i=t[0],a=t[1];return o2?J:X,o=i=null,f}function f(t){return isNaN(t=+t)?n:(o||(o=r(a.map(e),l,u)))(e(s(t)))}return f.invert=function(n){return s(t((i||(i=r(l,a.map(e),B.a)))(n)))},f.domain=function(e){return arguments.length?(a=S.call(e,W),s===G||(s=Y(a)),c()):a.slice()},f.range=function(e){return arguments.length?(l=A.call(e),c()):l.slice()},f.rangeRound=function(e){return l=A.call(e),u=Z,c()},f.clamp=function(e){return arguments.length?(s=e?Y(a):G,f):s!==G},f.interpolate=function(e){return arguments.length?(u=e,c()):u},f.unknown=function(e){return arguments.length?(n=e,f):n},function(n,r){return e=n,t=r,c()}}function te(e,t){return ee()(e,t)}var ne=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function re(e){if(!(t=ne.exec(e)))throw new Error("invalid format: "+e);var t;return new oe({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function oe(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}re.prototype=oe.prototype,oe.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};function ie(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}var ae,le,ue,se,ce=function(e){return(e=ie(Math.abs(e)))?e[1]:NaN},fe=function(e,t){var n=ie(e,t);if(!n)return e+"";var r=n[0],o=n[1];return o<0?"0."+new Array(-o).join("0")+r:r.length>o+1?r.slice(0,o+1)+"."+r.slice(o+1):r+new Array(o-r.length+2).join("0")},de={"%":function(e,t){return(100*e).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:function(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)},e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},g:function(e,t){return e.toPrecision(t)},o:function(e){return Math.round(e).toString(8)},p:function(e,t){return fe(100*e,t)},r:fe,s:function(e,t){var n=ie(e,t);if(!n)return e+"";var r=n[0],o=n[1],i=o-(ae=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,a=r.length;return i===a?r:i>a?r+new Array(i-a+1).join("0"):i>0?r.slice(0,i)+"."+r.slice(i):"0."+new Array(1-i).join("0")+ie(e,Math.max(0,t+i-1))[0]},X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}},pe=function(e){return e},he=Array.prototype.map,ve=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];le=function(e){var t,n,r=void 0===e.grouping||void 0===e.thousands?pe:(t=he.call(e.grouping,Number),n=e.thousands+"",function(e,r){for(var o=e.length,i=[],a=0,l=t[0],u=0;o>0&&l>0&&(u+l+1>r&&(l=Math.max(1,r-u)),i.push(e.substring(o-=l,o+l)),!((u+=l+1)>r));)l=t[a=(a+1)%t.length];return i.reverse().join(n)}),o=void 0===e.currency?"":e.currency[0]+"",i=void 0===e.currency?"":e.currency[1]+"",a=void 0===e.decimal?".":e.decimal+"",l=void 0===e.numerals?pe:function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}(he.call(e.numerals,String)),u=void 0===e.percent?"%":e.percent+"",s=void 0===e.minus?"-":e.minus+"",c=void 0===e.nan?"NaN":e.nan+"";function f(e){var t=(e=re(e)).fill,n=e.align,f=e.sign,d=e.symbol,p=e.zero,h=e.width,v=e.comma,g=e.precision,y=e.trim,m=e.type;"n"===m?(v=!0,m="g"):de[m]||(void 0===g&&(g=12),y=!0,m="g"),(p||"0"===t&&"="===n)&&(p=!0,t="0",n="=");var b="$"===d?o:"#"===d&&/[boxX]/.test(m)?"0"+m.toLowerCase():"",x="$"===d?i:/[%p]/.test(m)?u:"",w=de[m],_=/[defgprs%]/.test(m);function C(e){var o,i,u,d=b,C=x;if("c"===m)C=w(e)+C,e="";else{var O=(e=+e)<0||1/e<0;if(e=isNaN(e)?c:w(Math.abs(e),g),y&&(e=function(e){e:for(var t,n=e.length,r=1,o=-1;r0&&(o=0)}return o>0?e.slice(0,o)+e.slice(t+1):e}(e)),O&&0==+e&&"+"!==f&&(O=!1),d=(O?"("===f?f:s:"-"===f||"("===f?"":f)+d,C=("s"===m?ve[8+ae/3]:"")+C+(O&&"("===f?")":""),_)for(o=-1,i=e.length;++o(u=e.charCodeAt(o))||u>57){C=(46===u?a+e.slice(o+1):e.slice(o))+C,e=e.slice(0,o);break}}v&&!p&&(e=r(e,1/0));var E=d.length+e.length+C.length,M=E>1)+d+e+C+M.slice(E);break;default:e=M+d+e+C}return l(e)}return g=void 0===g?6:/[gprs]/.test(m)?Math.max(1,Math.min(21,g)):Math.max(0,Math.min(20,g)),C.toString=function(){return e+""},C}return{format:f,formatPrefix:function(e,t){var n=f(((e=re(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor(ce(t)/3))),o=Math.pow(10,-r),i=ve[8+r/3];return function(e){return n(o*e)+i}}}}({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"}),ue=le.format,se=le.formatPrefix;var ge=function(e,t,n,r){var o,i=g(e,t,n);switch((r=re(null==r?",f":r)).type){case"s":var a=Math.max(Math.abs(e),Math.abs(t));return null!=r.precision||isNaN(o=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(ce(t)/3)))-ce(Math.abs(e)))}(i,a))||(r.precision=o),se(r,a);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(o=function(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,ce(t)-ce(e))+1}(i,Math.max(Math.abs(e),Math.abs(t))))||(r.precision=o-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(o=function(e){return Math.max(0,-ce(Math.abs(e)))}(i))||(r.precision=o-2*("%"===r.type))}return ue(r)};function ye(e){var t=e.domain;return e.ticks=function(e){var n=t();return h(n[0],n[n.length-1],null==e?10:e)},e.tickFormat=function(e,n){var r=t();return ge(r[0],r[r.length-1],null==e?10:e,n)},e.nice=function(n){null==n&&(n=10);var r,o=t(),i=0,a=o.length-1,l=o[i],u=o[a];return u0?r=v(l=Math.floor(l/r)*r,u=Math.ceil(u/r)*r,n):r<0&&(r=v(l=Math.ceil(l*r)/r,u=Math.floor(u*r)/r,n)),r>0?(o[i]=Math.floor(l/r)*r,o[a]=Math.ceil(u/r)*r,t(o)):r<0&&(o[i]=Math.ceil(l*r)/r,o[a]=Math.floor(u*r)/r,t(o)),e},e}function me(){var e=te(G,G);return e.copy=function(){return Q(e,me())},m.apply(e,arguments),ye(e)}function be(e){var t;function n(e){return isNaN(e=+e)?t:e}return n.invert=n,n.domain=n.range=function(t){return arguments.length?(e=S.call(t,W),n):e.slice()},n.unknown=function(e){return arguments.length?(t=e,n):t},n.copy=function(){return be(e).unknown(t)},e=arguments.length?S.call(e,W):[0,1],ye(n)}var xe=function(e,t){var n,r=0,o=(e=e.slice()).length-1,i=e[r],a=e[o];return a0){for(;du)break;g.push(f)}}else for(;d=1;--c)if(!((f=s*c)u)break;g.push(f)}}else g=h(d,p,Math.min(p-d,v)).map(n);return r?g.reverse():g},r.tickFormat=function(e,o){if(null==o&&(o=10===i?".0e":","),"function"!=typeof o&&(o=ue(o)),e===1/0)return o;null==e&&(e=10);var a=Math.max(1,i*e/r.ticks().length);return function(e){var r=e/n(Math.round(t(e)));return r*i0?o[r-1]:t[0],r=r?[o[r-1],n]:[o[a-1],o[a]]},a.unknown=function(t){return arguments.length?(e=t,a):a},a.thresholds=function(){return o.slice()},a.copy=function(){return Be().domain([t,n]).range(i).unknown(e)},m.apply(ye(a),arguments)}function Fe(){var e,t=[.5],n=[0,1],r=1;function o(o){return o<=o?n[l(t,o,0,r)]:e}return o.domain=function(e){return arguments.length?(t=A.call(e),r=Math.min(t.length,n.length-1),o):t.slice()},o.range=function(e){return arguments.length?(n=A.call(e),r=Math.min(t.length,n.length-1),o):n.slice()},o.invertExtent=function(e){var r=n.indexOf(e);return[t[r-1],t[r]]},o.unknown=function(t){return arguments.length?(e=t,o):e},o.copy=function(){return Fe().domain(t).range(n).unknown(e)},m.apply(o,arguments)}var Ve=new Date,$e=new Date;function Ue(e,t,n,r){function o(t){return e(t=0===arguments.length?new Date:new Date(+t)),t}return o.floor=function(t){return e(t=new Date(+t)),t},o.ceil=function(n){return e(n=new Date(n-1)),t(n,1),e(n),n},o.round=function(e){var t=o(e),n=o.ceil(e);return e-t0))return l;do{l.push(a=new Date(+n)),t(n,i),e(n)}while(a=t)for(;e(t),!n(t);)t.setTime(t-1)}),(function(e,r){if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););}))},n&&(o.count=function(t,r){return Ve.setTime(+t),$e.setTime(+r),e(Ve),e($e),Math.floor(n(Ve,$e))},o.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?o.filter(r?function(t){return r(t)%e==0}:function(t){return o.count(0,t)%e==0}):o:null}),o}var Ze=Ue((function(e){e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,t){e.setFullYear(e.getFullYear()+t)}),(function(e,t){return t.getFullYear()-e.getFullYear()}),(function(e){return e.getFullYear()}));Ze.every=function(e){return isFinite(e=Math.floor(e))&&e>0?Ue((function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,n){t.setFullYear(t.getFullYear()+n*e)})):null};var We=Ze,Ke=(Ze.range,Ue((function(e){e.setDate(1),e.setHours(0,0,0,0)}),(function(e,t){e.setMonth(e.getMonth()+t)}),(function(e,t){return t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear())}),(function(e){return e.getMonth()}))),Ge=Ke;Ke.range;function qe(e){return Ue((function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)}),(function(e,t){e.setDate(e.getDate()+7*t)}),(function(e,t){return(t-e-6e4*(t.getTimezoneOffset()-e.getTimezoneOffset()))/6048e5}))}var Ye=qe(0),Xe=qe(1),Je=qe(2),Qe=qe(3),et=qe(4),tt=qe(5),nt=qe(6),rt=(Ye.range,Xe.range,Je.range,Qe.range,et.range,tt.range,nt.range,Ue((function(e){e.setHours(0,0,0,0)}),(function(e,t){e.setDate(e.getDate()+t)}),(function(e,t){return(t-e-6e4*(t.getTimezoneOffset()-e.getTimezoneOffset()))/864e5}),(function(e){return e.getDate()-1}))),ot=rt,it=(rt.range,Ue((function(e){e.setTime(e-e.getMilliseconds()-1e3*e.getSeconds()-6e4*e.getMinutes())}),(function(e,t){e.setTime(+e+36e5*t)}),(function(e,t){return(t-e)/36e5}),(function(e){return e.getHours()}))),at=it,lt=(it.range,Ue((function(e){e.setTime(e-e.getMilliseconds()-1e3*e.getSeconds())}),(function(e,t){e.setTime(+e+6e4*t)}),(function(e,t){return(t-e)/6e4}),(function(e){return e.getMinutes()}))),ut=lt,st=(lt.range,Ue((function(e){e.setTime(e-e.getMilliseconds())}),(function(e,t){e.setTime(+e+1e3*t)}),(function(e,t){return(t-e)/1e3}),(function(e){return e.getUTCSeconds()}))),ct=st,ft=(st.range,Ue((function(){}),(function(e,t){e.setTime(+e+t)}),(function(e,t){return t-e})));ft.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?Ue((function(t){t.setTime(Math.floor(t/e)*e)}),(function(t,n){t.setTime(+t+n*e)}),(function(t,n){return(n-t)/e})):ft:null};var dt=ft;ft.range;function pt(e){return Ue((function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+7*t)}),(function(e,t){return(t-e)/6048e5}))}var ht=pt(0),vt=pt(1),gt=pt(2),yt=pt(3),mt=pt(4),bt=pt(5),xt=pt(6),wt=(ht.range,vt.range,gt.range,yt.range,mt.range,bt.range,xt.range,Ue((function(e){e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+t)}),(function(e,t){return(t-e)/864e5}),(function(e){return e.getUTCDate()-1}))),_t=wt,Ct=(wt.range,Ue((function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)}),(function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()}),(function(e){return e.getUTCFullYear()})));Ct.every=function(e){return isFinite(e=Math.floor(e))&&e>0?Ue((function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)})):null};var Ot=Ct;Ct.range;function Et(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function Mt(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function St(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}var At,kt,jt,Tt={"-":"",_:" ",0:"0"},Pt=/^\s*\d+/,Lt=/^%/,zt=/[\\^$*+?|[\]().{}]/g;function Nt(e,t,n){var r=e<0?"-":"",o=(r?-e:e)+"",i=o.length;return r+(i68?1900:2e3),n+r[0].length):-1}function Wt(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function Kt(e,t,n){var r=Pt.exec(t.slice(n,n+1));return r?(e.q=3*r[0]-3,n+r[0].length):-1}function Gt(e,t,n){var r=Pt.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function qt(e,t,n){var r=Pt.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function Yt(e,t,n){var r=Pt.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function Xt(e,t,n){var r=Pt.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function Jt(e,t,n){var r=Pt.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function Qt(e,t,n){var r=Pt.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function en(e,t,n){var r=Pt.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function tn(e,t,n){var r=Pt.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function nn(e,t,n){var r=Lt.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function rn(e,t,n){var r=Pt.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function on(e,t,n){var r=Pt.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function an(e,t){return Nt(e.getDate(),t,2)}function ln(e,t){return Nt(e.getHours(),t,2)}function un(e,t){return Nt(e.getHours()%12||12,t,2)}function sn(e,t){return Nt(1+ot.count(We(e),e),t,3)}function cn(e,t){return Nt(e.getMilliseconds(),t,3)}function fn(e,t){return cn(e,t)+"000"}function dn(e,t){return Nt(e.getMonth()+1,t,2)}function pn(e,t){return Nt(e.getMinutes(),t,2)}function hn(e,t){return Nt(e.getSeconds(),t,2)}function vn(e){var t=e.getDay();return 0===t?7:t}function gn(e,t){return Nt(Ye.count(We(e)-1,e),t,2)}function yn(e){var t=e.getDay();return t>=4||0===t?et(e):et.ceil(e)}function mn(e,t){return e=yn(e),Nt(et.count(We(e),e)+(4===We(e).getDay()),t,2)}function bn(e){return e.getDay()}function xn(e,t){return Nt(Xe.count(We(e)-1,e),t,2)}function wn(e,t){return Nt(e.getFullYear()%100,t,2)}function _n(e,t){return Nt((e=yn(e)).getFullYear()%100,t,2)}function Cn(e,t){return Nt(e.getFullYear()%1e4,t,4)}function On(e,t){var n=e.getDay();return Nt((e=n>=4||0===n?et(e):et.ceil(e)).getFullYear()%1e4,t,4)}function En(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Nt(t/60|0,"0",2)+Nt(t%60,"0",2)}function Mn(e,t){return Nt(e.getUTCDate(),t,2)}function Sn(e,t){return Nt(e.getUTCHours(),t,2)}function An(e,t){return Nt(e.getUTCHours()%12||12,t,2)}function kn(e,t){return Nt(1+_t.count(Ot(e),e),t,3)}function jn(e,t){return Nt(e.getUTCMilliseconds(),t,3)}function Tn(e,t){return jn(e,t)+"000"}function Pn(e,t){return Nt(e.getUTCMonth()+1,t,2)}function Ln(e,t){return Nt(e.getUTCMinutes(),t,2)}function zn(e,t){return Nt(e.getUTCSeconds(),t,2)}function Nn(e){var t=e.getUTCDay();return 0===t?7:t}function Dn(e,t){return Nt(ht.count(Ot(e)-1,e),t,2)}function In(e){var t=e.getUTCDay();return t>=4||0===t?mt(e):mt.ceil(e)}function Rn(e,t){return e=In(e),Nt(mt.count(Ot(e),e)+(4===Ot(e).getUTCDay()),t,2)}function Hn(e){return e.getUTCDay()}function Bn(e,t){return Nt(vt.count(Ot(e)-1,e),t,2)}function Fn(e,t){return Nt(e.getUTCFullYear()%100,t,2)}function Vn(e,t){return Nt((e=In(e)).getUTCFullYear()%100,t,2)}function $n(e,t){return Nt(e.getUTCFullYear()%1e4,t,4)}function Un(e,t){var n=e.getUTCDay();return Nt((e=n>=4||0===n?mt(e):mt.ceil(e)).getUTCFullYear()%1e4,t,4)}function Zn(){return"+0000"}function Wn(){return"%"}function Kn(e){return+e}function Gn(e){return Math.floor(+e/1e3)}!function(e){At=function(e){var t=e.dateTime,n=e.date,r=e.time,o=e.periods,i=e.days,a=e.shortDays,l=e.months,u=e.shortMonths,s=It(o),c=Rt(o),f=It(i),d=Rt(i),p=It(a),h=Rt(a),v=It(l),g=Rt(l),y=It(u),m=Rt(u),b={a:function(e){return a[e.getDay()]},A:function(e){return i[e.getDay()]},b:function(e){return u[e.getMonth()]},B:function(e){return l[e.getMonth()]},c:null,d:an,e:an,f:fn,g:_n,G:On,H:ln,I:un,j:sn,L:cn,m:dn,M:pn,p:function(e){return o[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:Kn,s:Gn,S:hn,u:vn,U:gn,V:mn,w:bn,W:xn,x:null,X:null,y:wn,Y:Cn,Z:En,"%":Wn},x={a:function(e){return a[e.getUTCDay()]},A:function(e){return i[e.getUTCDay()]},b:function(e){return u[e.getUTCMonth()]},B:function(e){return l[e.getUTCMonth()]},c:null,d:Mn,e:Mn,f:Tn,g:Vn,G:Un,H:Sn,I:An,j:kn,L:jn,m:Pn,M:Ln,p:function(e){return o[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:Kn,s:Gn,S:zn,u:Nn,U:Dn,V:Rn,w:Hn,W:Bn,x:null,X:null,y:Fn,Y:$n,Z:Zn,"%":Wn},w={a:function(e,t,n){var r=p.exec(t.slice(n));return r?(e.w=h[r[0].toLowerCase()],n+r[0].length):-1},A:function(e,t,n){var r=f.exec(t.slice(n));return r?(e.w=d[r[0].toLowerCase()],n+r[0].length):-1},b:function(e,t,n){var r=y.exec(t.slice(n));return r?(e.m=m[r[0].toLowerCase()],n+r[0].length):-1},B:function(e,t,n){var r=v.exec(t.slice(n));return r?(e.m=g[r[0].toLowerCase()],n+r[0].length):-1},c:function(e,n,r){return O(e,t,n,r)},d:qt,e:qt,f:tn,g:Zt,G:Ut,H:Xt,I:Xt,j:Yt,L:en,m:Gt,M:Jt,p:function(e,t,n){var r=s.exec(t.slice(n));return r?(e.p=c[r[0].toLowerCase()],n+r[0].length):-1},q:Kt,Q:rn,s:on,S:Qt,u:Bt,U:Ft,V:Vt,w:Ht,W:$t,x:function(e,t,r){return O(e,n,t,r)},X:function(e,t,n){return O(e,r,t,n)},y:Zt,Y:Ut,Z:Wt,"%":nn};function _(e,t){return function(n){var r,o,i,a=[],l=-1,u=0,s=e.length;for(n instanceof Date||(n=new Date(+n));++l53)return null;"w"in i||(i.w=1),"Z"in i?(o=(r=Mt(St(i.y,0,1))).getUTCDay(),r=o>4||0===o?vt.ceil(r):vt(r),r=_t.offset(r,7*(i.V-1)),i.y=r.getUTCFullYear(),i.m=r.getUTCMonth(),i.d=r.getUTCDate()+(i.w+6)%7):(o=(r=Et(St(i.y,0,1))).getDay(),r=o>4||0===o?Xe.ceil(r):Xe(r),r=ot.offset(r,7*(i.V-1)),i.y=r.getFullYear(),i.m=r.getMonth(),i.d=r.getDate()+(i.w+6)%7)}else("W"in i||"U"in i)&&("w"in i||(i.w="u"in i?i.u%7:"W"in i?1:0),o="Z"in i?Mt(St(i.y,0,1)).getUTCDay():Et(St(i.y,0,1)).getDay(),i.m=0,i.d="W"in i?(i.w+6)%7+7*i.W-(o+5)%7:i.w+7*i.U-(o+6)%7);return"Z"in i?(i.H+=i.Z/100|0,i.M+=i.Z%100,Mt(i)):Et(i)}}function O(e,t,n,r){for(var o,i,a=0,l=t.length,u=n.length;a=u)return-1;if(37===(o=t.charCodeAt(a++))){if(o=t.charAt(a++),!(i=w[o in Tt?t.charAt(a++):o])||(r=i(e,n,r))<0)return-1}else if(o!=n.charCodeAt(r++))return-1}return r}return b.x=_(n,b),b.X=_(r,b),b.c=_(t,b),x.x=_(n,x),x.X=_(r,x),x.c=_(t,x),{format:function(e){var t=_(e+="",b);return t.toString=function(){return e},t},parse:function(e){var t=C(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=_(e+="",x);return t.toString=function(){return e},t},utcParse:function(e){var t=C(e+="",!0);return t.toString=function(){return e},t}}}(e),kt=At.format,At.parse,jt=At.utcFormat,At.utcParse}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function qn(e){return new Date(e)}function Yn(e){return e instanceof Date?+e:+new Date(+e)}function Xn(e,t,n,r,i,a,l,u,s){var c=te(G,G),f=c.invert,d=c.domain,p=s(".%L"),h=s(":%S"),v=s("%I:%M"),y=s("%I %p"),m=s("%a %d"),b=s("%b %d"),x=s("%B"),w=s("%Y"),_=[[l,1,1e3],[l,5,5e3],[l,15,15e3],[l,30,3e4],[a,1,6e4],[a,5,3e5],[a,15,9e5],[a,30,18e5],[i,1,36e5],[i,3,108e5],[i,6,216e5],[i,12,432e5],[r,1,864e5],[r,2,1728e5],[n,1,6048e5],[t,1,2592e6],[t,3,7776e6],[e,1,31536e6]];function C(o){return(l(o)0&&0===(m-=1)&&f.show(t),n.props.shouldFocusAfterRender&&(n.props.shouldReturnFocusAfterClose?(s.returnFocus(),s.teardownScopedFocus()):s.popWithoutFocus()),n.props.onAfterClose&&n.props.onAfterClose(),h.default.deregister(n)},n.open=function(){n.beforeOpen(),n.state.afterOpen&&n.state.beforeClose?(clearTimeout(n.closeTimer),n.setState({beforeClose:!1})):(n.props.shouldFocusAfterRender&&(s.setupScopedFocus(n.node),s.markForFocusLater()),n.setState({isOpen:!0},(function(){n.setState({afterOpen:!0}),n.props.isOpen&&n.props.onAfterOpen&&n.props.onAfterOpen({overlayEl:n.overlay,contentEl:n.content})})))},n.close=function(){n.props.closeTimeoutMS>0?n.closeWithTimeout():n.closeWithoutTimeout()},n.focusContent=function(){return n.content&&!n.contentHasFocus()&&n.content.focus()},n.closeWithTimeout=function(){var e=Date.now()+n.props.closeTimeoutMS;n.setState({beforeClose:!0,closesAt:e},(function(){n.closeTimer=setTimeout(n.closeWithoutTimeout,n.state.closesAt-Date.now())}))},n.closeWithoutTimeout=function(){n.setState({beforeClose:!1,isOpen:!1,afterOpen:!1,closesAt:null},n.afterClose)},n.handleKeyDown=function(e){9===e.keyCode&&(0,c.default)(n.content,e),n.props.shouldCloseOnEsc&&27===e.keyCode&&(e.stopPropagation(),n.requestClose(e))},n.handleOverlayOnClick=function(e){null===n.shouldClose&&(n.shouldClose=!0),n.shouldClose&&n.props.shouldCloseOnOverlayClick&&(n.ownerHandlesClose()?n.requestClose(e):n.focusContent()),n.shouldClose=null},n.handleContentOnMouseUp=function(){n.shouldClose=!1},n.handleOverlayOnMouseDown=function(e){n.props.shouldCloseOnOverlayClick||e.target!=n.overlay||e.preventDefault()},n.handleContentOnClick=function(){n.shouldClose=!1},n.handleContentOnMouseDown=function(){n.shouldClose=!1},n.requestClose=function(e){return n.ownerHandlesClose()&&n.props.onRequestClose(e)},n.ownerHandlesClose=function(){return n.props.onRequestClose},n.shouldBeClosed=function(){return!n.state.isOpen&&!n.state.beforeClose},n.contentHasFocus=function(){return document.activeElement===n.content||n.content.contains(document.activeElement)},n.buildClassName=function(e,t){var r="object"===(void 0===t?"undefined":o(t))?t:{base:y[e],afterOpen:y[e]+"--after-open",beforeClose:y[e]+"--before-close"},i=r.base;return n.state.afterOpen&&(i=i+" "+r.afterOpen),n.state.beforeClose&&(i=i+" "+r.beforeClose),"string"==typeof t&&t?i+" "+t:i},n.attributesFromObject=function(e,t){return Object.keys(t).reduce((function(n,r){return n[e+"-"+r]=t[r],n}),{})},n.state={afterOpen:!1,beforeClose:!1},n.shouldClose=null,n.moveFromContentToOverlay=null,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"componentDidMount",value:function(){this.props.isOpen&&this.open()}},{key:"componentDidUpdate",value:function(e,t){this.props.isOpen&&!e.isOpen?this.open():!this.props.isOpen&&e.isOpen&&this.close(),this.props.shouldFocusAfterRender&&this.state.isOpen&&!t.isOpen&&this.focusContent()}},{key:"componentWillUnmount",value:function(){this.state.isOpen&&this.afterClose(),clearTimeout(this.closeTimer)}},{key:"beforeOpen",value:function(){var e=this.props,t=e.appElement,n=e.ariaHideApp,r=e.htmlOpenClassName,o=e.bodyOpenClassName;o&&d.add(document.body,o),r&&d.add(document.getElementsByTagName("html")[0],r),n&&(m+=1,f.hide(t)),h.default.register(this)}},{key:"render",value:function(){var e=this.props,t=e.id,n=e.className,o=e.overlayClassName,i=e.defaultStyles,a=n?{}:i.content,u=o?{}:i.overlay;return this.shouldBeClosed()?null:l.default.createElement("div",{ref:this.setOverlayRef,className:this.buildClassName("overlay",o),style:r({},u,this.props.style.overlay),onClick:this.handleOverlayOnClick,onMouseDown:this.handleOverlayOnMouseDown},l.default.createElement("div",r({id:t,ref:this.setContentRef,style:r({},a,this.props.style.content),className:this.buildClassName("content",n),tabIndex:"-1",onKeyDown:this.handleKeyDown,onMouseDown:this.handleContentOnMouseDown,onMouseUp:this.handleContentOnMouseUp,onClick:this.handleContentOnClick,role:this.props.role,"aria-label":this.props.contentLabel},this.attributesFromObject("aria",this.props.aria||{}),this.attributesFromObject("data",this.props.data||{}),{"data-testid":this.props.testId}),this.props.children))}}]),t}(a.Component);b.defaultProps={style:{overlay:{},content:{}},defaultStyles:{}},b.propTypes={isOpen:u.default.bool.isRequired,defaultStyles:u.default.shape({content:u.default.object,overlay:u.default.object}),style:u.default.shape({content:u.default.object,overlay:u.default.object}),className:u.default.oneOfType([u.default.string,u.default.object]),overlayClassName:u.default.oneOfType([u.default.string,u.default.object]),bodyOpenClassName:u.default.string,htmlOpenClassName:u.default.string,ariaHideApp:u.default.bool,appElement:u.default.instanceOf(p.default),onAfterOpen:u.default.func,onAfterClose:u.default.func,onRequestClose:u.default.func,closeTimeoutMS:u.default.number,shouldFocusAfterRender:u.default.bool,shouldCloseOnOverlayClick:u.default.bool,shouldReturnFocusAfterClose:u.default.bool,role:u.default.string,contentLabel:u.default.string,aria:u.default.object,data:u.default.object,children:u.default.node,shouldCloseOnEsc:u.default.bool,overlayRef:u.default.func,contentRef:u.default.func,id:u.default.string,testId:u.default.string},t.default=b,e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.handleBlur=s,t.handleFocus=c,t.markForFocusLater=function(){a.push(document.activeElement)},t.returnFocus=function(){var e=null;try{return void(0!==a.length&&(e=a.pop()).focus())}catch(t){console.warn(["You tried to return focus to",e,"but it is not in the DOM anymore"].join(" "))}},t.popWithoutFocus=function(){a.length>0&&a.pop()},t.setupScopedFocus=function(e){l=e,window.addEventListener?(window.addEventListener("blur",s,!1),document.addEventListener("focus",c,!0)):(window.attachEvent("onBlur",s),document.attachEvent("onFocus",c))},t.teardownScopedFocus=function(){l=null,window.addEventListener?(window.removeEventListener("blur",s),document.removeEventListener("focus",c)):(window.detachEvent("onBlur",s),document.detachEvent("onFocus",c))};var r,o=n(1474),i=(r=o)&&r.__esModule?r:{default:r};var a=[],l=null,u=!1;function s(){u=!0}function c(){if(u){if(u=!1,!l)return;setTimeout((function(){l.contains(document.activeElement)||((0,i.default)(l)[0]||l).focus()}),0)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=(0,i.default)(e);if(!n.length)return void t.preventDefault();var r=void 0,o=t.shiftKey,a=n[0],l=n[n.length-1];if(e===document.activeElement){if(!o)return;r=l}l!==document.activeElement||o||(r=a);a===document.activeElement&&o&&(r=l);if(r)return t.preventDefault(),void r.focus();var u=/(\bChrome\b|\bSafari\b)\//.exec(navigator.userAgent);if(null==u||"Chrome"==u[1]||null!=/\biPod\b|\biPad\b/g.exec(navigator.userAgent))return;var s=n.indexOf(document.activeElement);s>-1&&(s+=o?-1:1);if(void 0===(r=n[s]))return t.preventDefault(),void(r=o?l:a).focus();t.preventDefault(),r.focus()};var r,o=n(1474),i=(r=o)&&r.__esModule?r:{default:r};e.exports=t.default},function(e,t,n){"use strict";var r=function(){};e.exports=r},function(e,t,n){var r; + */},function(e,t,n){"use strict";n.r(t),n.d(t,"scaleBand",(function(){return T})),n.d(t,"scalePoint",(function(){return L})),n.d(t,"scaleIdentity",(function(){return be})),n.d(t,"scaleLinear",(function(){return me})),n.d(t,"scaleLog",(function(){return Ae})),n.d(t,"scaleSymlog",(function(){return Pe})),n.d(t,"scaleOrdinal",(function(){return j})),n.d(t,"scaleImplicit",(function(){return k})),n.d(t,"scalePow",(function(){return Ie})),n.d(t,"scaleSqrt",(function(){return Re})),n.d(t,"scaleQuantile",(function(){return He})),n.d(t,"scaleQuantize",(function(){return Be})),n.d(t,"scaleThreshold",(function(){return Fe})),n.d(t,"scaleTime",(function(){return Jn})),n.d(t,"scaleUtc",(function(){return ir})),n.d(t,"scaleSequential",(function(){return ur})),n.d(t,"scaleSequentialLog",(function(){return sr})),n.d(t,"scaleSequentialPow",(function(){return fr})),n.d(t,"scaleSequentialSqrt",(function(){return dr})),n.d(t,"scaleSequentialSymlog",(function(){return cr})),n.d(t,"scaleSequentialQuantile",(function(){return pr})),n.d(t,"scaleDiverging",(function(){return vr})),n.d(t,"scaleDivergingLog",(function(){return gr})),n.d(t,"scaleDivergingPow",(function(){return mr})),n.d(t,"scaleDivergingSqrt",(function(){return br})),n.d(t,"scaleDivergingSymlog",(function(){return yr})),n.d(t,"tickFormat",(function(){return ge}));var r=function(e,t){return et?1:e>=t?0:NaN},o=function(e){var t;return 1===e.length&&(t=e,e=function(e,n){return r(t(e),n)}),{left:function(t,n,r,o){for(null==r&&(r=0),null==o&&(o=t.length);r>>1;e(t[i],n)<0?r=i+1:o=i}return r},right:function(t,n,r,o){for(null==r&&(r=0),null==o&&(o=t.length);r>>1;e(t[i],n)>0?o=i:r=i+1}return r}}};var i=o(r),a=i.right,l=(i.left,a);var u=function(e){return null===e?NaN:+e},s=Array.prototype,c=(s.slice,s.map,function(e,t,n){e=+e,t=+t,n=(o=arguments.length)<2?(t=e,e=0,1):o<3?1:+n;for(var r=-1,o=0|Math.max(0,Math.ceil((t-e)/n)),i=new Array(o);++r0)return[e];if((r=t0)for(e=Math.ceil(e/a),t=Math.floor(t/a),i=new Array(o=Math.ceil(t-e+1));++l=0?(i>=f?10:i>=d?5:i>=p?2:1)*Math.pow(10,o):-Math.pow(10,-o)/(i>=f?10:i>=d?5:i>=p?2:1)}function g(e,t,n){var r=Math.abs(t-e)/Math.max(0,n),o=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),i=r/o;return i>=f?o*=10:i>=d?o*=5:i>=p&&(o*=2),t=1)return+n(e[r-1],r-1,e);var r,o=(r-1)*t,i=Math.floor(o),a=+n(e[i],i,e);return a+(+n(e[i+1],i+1,e)-a)*(o-i)}};function m(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}function b(e,t){switch(arguments.length){case 0:break;case 1:this.interpolator(e);break;default:this.interpolator(t).domain(e)}return this}function x(){}function w(e,t){var n=new x;if(e instanceof x)e.each((function(e,t){n.set(t,e)}));else if(Array.isArray(e)){var r,o=-1,i=e.length;if(null==t)for(;++or&&(t=n,n=r,r=t),function(e){return Math.max(n,Math.min(r,e))}}function X(e,t,n){var r=e[0],o=e[1],i=t[0],a=t[1];return o2?J:X,o=i=null,f}function f(t){return isNaN(t=+t)?n:(o||(o=r(a.map(e),l,u)))(e(s(t)))}return f.invert=function(n){return s(t((i||(i=r(l,a.map(e),B.a)))(n)))},f.domain=function(e){return arguments.length?(a=S.call(e,W),s===G||(s=Y(a)),c()):a.slice()},f.range=function(e){return arguments.length?(l=A.call(e),c()):l.slice()},f.rangeRound=function(e){return l=A.call(e),u=Z,c()},f.clamp=function(e){return arguments.length?(s=e?Y(a):G,f):s!==G},f.interpolate=function(e){return arguments.length?(u=e,c()):u},f.unknown=function(e){return arguments.length?(n=e,f):n},function(n,r){return e=n,t=r,c()}}function te(e,t){return ee()(e,t)}var ne=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function re(e){if(!(t=ne.exec(e)))throw new Error("invalid format: "+e);var t;return new oe({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function oe(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}re.prototype=oe.prototype,oe.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};function ie(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}var ae,le,ue,se,ce=function(e){return(e=ie(Math.abs(e)))?e[1]:NaN},fe=function(e,t){var n=ie(e,t);if(!n)return e+"";var r=n[0],o=n[1];return o<0?"0."+new Array(-o).join("0")+r:r.length>o+1?r.slice(0,o+1)+"."+r.slice(o+1):r+new Array(o-r.length+2).join("0")},de={"%":function(e,t){return(100*e).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:function(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)},e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},g:function(e,t){return e.toPrecision(t)},o:function(e){return Math.round(e).toString(8)},p:function(e,t){return fe(100*e,t)},r:fe,s:function(e,t){var n=ie(e,t);if(!n)return e+"";var r=n[0],o=n[1],i=o-(ae=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,a=r.length;return i===a?r:i>a?r+new Array(i-a+1).join("0"):i>0?r.slice(0,i)+"."+r.slice(i):"0."+new Array(1-i).join("0")+ie(e,Math.max(0,t+i-1))[0]},X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}},pe=function(e){return e},he=Array.prototype.map,ve=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];le=function(e){var t,n,r=void 0===e.grouping||void 0===e.thousands?pe:(t=he.call(e.grouping,Number),n=e.thousands+"",function(e,r){for(var o=e.length,i=[],a=0,l=t[0],u=0;o>0&&l>0&&(u+l+1>r&&(l=Math.max(1,r-u)),i.push(e.substring(o-=l,o+l)),!((u+=l+1)>r));)l=t[a=(a+1)%t.length];return i.reverse().join(n)}),o=void 0===e.currency?"":e.currency[0]+"",i=void 0===e.currency?"":e.currency[1]+"",a=void 0===e.decimal?".":e.decimal+"",l=void 0===e.numerals?pe:function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}(he.call(e.numerals,String)),u=void 0===e.percent?"%":e.percent+"",s=void 0===e.minus?"-":e.minus+"",c=void 0===e.nan?"NaN":e.nan+"";function f(e){var t=(e=re(e)).fill,n=e.align,f=e.sign,d=e.symbol,p=e.zero,h=e.width,v=e.comma,g=e.precision,y=e.trim,m=e.type;"n"===m?(v=!0,m="g"):de[m]||(void 0===g&&(g=12),y=!0,m="g"),(p||"0"===t&&"="===n)&&(p=!0,t="0",n="=");var b="$"===d?o:"#"===d&&/[boxX]/.test(m)?"0"+m.toLowerCase():"",x="$"===d?i:/[%p]/.test(m)?u:"",w=de[m],_=/[defgprs%]/.test(m);function C(e){var o,i,u,d=b,C=x;if("c"===m)C=w(e)+C,e="";else{var O=(e=+e)<0||1/e<0;if(e=isNaN(e)?c:w(Math.abs(e),g),y&&(e=function(e){e:for(var t,n=e.length,r=1,o=-1;r0&&(o=0)}return o>0?e.slice(0,o)+e.slice(t+1):e}(e)),O&&0==+e&&"+"!==f&&(O=!1),d=(O?"("===f?f:s:"-"===f||"("===f?"":f)+d,C=("s"===m?ve[8+ae/3]:"")+C+(O&&"("===f?")":""),_)for(o=-1,i=e.length;++o(u=e.charCodeAt(o))||u>57){C=(46===u?a+e.slice(o+1):e.slice(o))+C,e=e.slice(0,o);break}}v&&!p&&(e=r(e,1/0));var E=d.length+e.length+C.length,M=E>1)+d+e+C+M.slice(E);break;default:e=M+d+e+C}return l(e)}return g=void 0===g?6:/[gprs]/.test(m)?Math.max(1,Math.min(21,g)):Math.max(0,Math.min(20,g)),C.toString=function(){return e+""},C}return{format:f,formatPrefix:function(e,t){var n=f(((e=re(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor(ce(t)/3))),o=Math.pow(10,-r),i=ve[8+r/3];return function(e){return n(o*e)+i}}}}({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"}),ue=le.format,se=le.formatPrefix;var ge=function(e,t,n,r){var o,i=g(e,t,n);switch((r=re(null==r?",f":r)).type){case"s":var a=Math.max(Math.abs(e),Math.abs(t));return null!=r.precision||isNaN(o=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(ce(t)/3)))-ce(Math.abs(e)))}(i,a))||(r.precision=o),se(r,a);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(o=function(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,ce(t)-ce(e))+1}(i,Math.max(Math.abs(e),Math.abs(t))))||(r.precision=o-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(o=function(e){return Math.max(0,-ce(Math.abs(e)))}(i))||(r.precision=o-2*("%"===r.type))}return ue(r)};function ye(e){var t=e.domain;return e.ticks=function(e){var n=t();return h(n[0],n[n.length-1],null==e?10:e)},e.tickFormat=function(e,n){var r=t();return ge(r[0],r[r.length-1],null==e?10:e,n)},e.nice=function(n){null==n&&(n=10);var r,o=t(),i=0,a=o.length-1,l=o[i],u=o[a];return u0?r=v(l=Math.floor(l/r)*r,u=Math.ceil(u/r)*r,n):r<0&&(r=v(l=Math.ceil(l*r)/r,u=Math.floor(u*r)/r,n)),r>0?(o[i]=Math.floor(l/r)*r,o[a]=Math.ceil(u/r)*r,t(o)):r<0&&(o[i]=Math.ceil(l*r)/r,o[a]=Math.floor(u*r)/r,t(o)),e},e}function me(){var e=te(G,G);return e.copy=function(){return Q(e,me())},m.apply(e,arguments),ye(e)}function be(e){var t;function n(e){return isNaN(e=+e)?t:e}return n.invert=n,n.domain=n.range=function(t){return arguments.length?(e=S.call(t,W),n):e.slice()},n.unknown=function(e){return arguments.length?(t=e,n):t},n.copy=function(){return be(e).unknown(t)},e=arguments.length?S.call(e,W):[0,1],ye(n)}var xe=function(e,t){var n,r=0,o=(e=e.slice()).length-1,i=e[r],a=e[o];return a0){for(;du)break;g.push(f)}}else for(;d=1;--c)if(!((f=s*c)u)break;g.push(f)}}else g=h(d,p,Math.min(p-d,v)).map(n);return r?g.reverse():g},r.tickFormat=function(e,o){if(null==o&&(o=10===i?".0e":","),"function"!=typeof o&&(o=ue(o)),e===1/0)return o;null==e&&(e=10);var a=Math.max(1,i*e/r.ticks().length);return function(e){var r=e/n(Math.round(t(e)));return r*i0?o[r-1]:t[0],r=r?[o[r-1],n]:[o[a-1],o[a]]},a.unknown=function(t){return arguments.length?(e=t,a):a},a.thresholds=function(){return o.slice()},a.copy=function(){return Be().domain([t,n]).range(i).unknown(e)},m.apply(ye(a),arguments)}function Fe(){var e,t=[.5],n=[0,1],r=1;function o(o){return o<=o?n[l(t,o,0,r)]:e}return o.domain=function(e){return arguments.length?(t=A.call(e),r=Math.min(t.length,n.length-1),o):t.slice()},o.range=function(e){return arguments.length?(n=A.call(e),r=Math.min(t.length,n.length-1),o):n.slice()},o.invertExtent=function(e){var r=n.indexOf(e);return[t[r-1],t[r]]},o.unknown=function(t){return arguments.length?(e=t,o):e},o.copy=function(){return Fe().domain(t).range(n).unknown(e)},m.apply(o,arguments)}var Ve=new Date,$e=new Date;function Ue(e,t,n,r){function o(t){return e(t=0===arguments.length?new Date:new Date(+t)),t}return o.floor=function(t){return e(t=new Date(+t)),t},o.ceil=function(n){return e(n=new Date(n-1)),t(n,1),e(n),n},o.round=function(e){var t=o(e),n=o.ceil(e);return e-t0))return l;do{l.push(a=new Date(+n)),t(n,i),e(n)}while(a=t)for(;e(t),!n(t);)t.setTime(t-1)}),(function(e,r){if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););}))},n&&(o.count=function(t,r){return Ve.setTime(+t),$e.setTime(+r),e(Ve),e($e),Math.floor(n(Ve,$e))},o.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?o.filter(r?function(t){return r(t)%e==0}:function(t){return o.count(0,t)%e==0}):o:null}),o}var Ze=Ue((function(e){e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,t){e.setFullYear(e.getFullYear()+t)}),(function(e,t){return t.getFullYear()-e.getFullYear()}),(function(e){return e.getFullYear()}));Ze.every=function(e){return isFinite(e=Math.floor(e))&&e>0?Ue((function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,n){t.setFullYear(t.getFullYear()+n*e)})):null};var We=Ze,Ke=(Ze.range,Ue((function(e){e.setDate(1),e.setHours(0,0,0,0)}),(function(e,t){e.setMonth(e.getMonth()+t)}),(function(e,t){return t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear())}),(function(e){return e.getMonth()}))),Ge=Ke;Ke.range;function qe(e){return Ue((function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)}),(function(e,t){e.setDate(e.getDate()+7*t)}),(function(e,t){return(t-e-6e4*(t.getTimezoneOffset()-e.getTimezoneOffset()))/6048e5}))}var Ye=qe(0),Xe=qe(1),Je=qe(2),Qe=qe(3),et=qe(4),tt=qe(5),nt=qe(6),rt=(Ye.range,Xe.range,Je.range,Qe.range,et.range,tt.range,nt.range,Ue((function(e){e.setHours(0,0,0,0)}),(function(e,t){e.setDate(e.getDate()+t)}),(function(e,t){return(t-e-6e4*(t.getTimezoneOffset()-e.getTimezoneOffset()))/864e5}),(function(e){return e.getDate()-1}))),ot=rt,it=(rt.range,Ue((function(e){e.setTime(e-e.getMilliseconds()-1e3*e.getSeconds()-6e4*e.getMinutes())}),(function(e,t){e.setTime(+e+36e5*t)}),(function(e,t){return(t-e)/36e5}),(function(e){return e.getHours()}))),at=it,lt=(it.range,Ue((function(e){e.setTime(e-e.getMilliseconds()-1e3*e.getSeconds())}),(function(e,t){e.setTime(+e+6e4*t)}),(function(e,t){return(t-e)/6e4}),(function(e){return e.getMinutes()}))),ut=lt,st=(lt.range,Ue((function(e){e.setTime(e-e.getMilliseconds())}),(function(e,t){e.setTime(+e+1e3*t)}),(function(e,t){return(t-e)/1e3}),(function(e){return e.getUTCSeconds()}))),ct=st,ft=(st.range,Ue((function(){}),(function(e,t){e.setTime(+e+t)}),(function(e,t){return t-e})));ft.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?Ue((function(t){t.setTime(Math.floor(t/e)*e)}),(function(t,n){t.setTime(+t+n*e)}),(function(t,n){return(n-t)/e})):ft:null};var dt=ft;ft.range;function pt(e){return Ue((function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+7*t)}),(function(e,t){return(t-e)/6048e5}))}var ht=pt(0),vt=pt(1),gt=pt(2),yt=pt(3),mt=pt(4),bt=pt(5),xt=pt(6),wt=(ht.range,vt.range,gt.range,yt.range,mt.range,bt.range,xt.range,Ue((function(e){e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+t)}),(function(e,t){return(t-e)/864e5}),(function(e){return e.getUTCDate()-1}))),_t=wt,Ct=(wt.range,Ue((function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)}),(function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()}),(function(e){return e.getUTCFullYear()})));Ct.every=function(e){return isFinite(e=Math.floor(e))&&e>0?Ue((function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)})):null};var Ot=Ct;Ct.range;function Et(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function Mt(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function St(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}var At,kt,jt,Tt={"-":"",_:" ",0:"0"},Pt=/^\s*\d+/,Lt=/^%/,zt=/[\\^$*+?|[\]().{}]/g;function Nt(e,t,n){var r=e<0?"-":"",o=(r?-e:e)+"",i=o.length;return r+(i68?1900:2e3),n+r[0].length):-1}function Wt(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function Kt(e,t,n){var r=Pt.exec(t.slice(n,n+1));return r?(e.q=3*r[0]-3,n+r[0].length):-1}function Gt(e,t,n){var r=Pt.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function qt(e,t,n){var r=Pt.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function Yt(e,t,n){var r=Pt.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function Xt(e,t,n){var r=Pt.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function Jt(e,t,n){var r=Pt.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function Qt(e,t,n){var r=Pt.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function en(e,t,n){var r=Pt.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function tn(e,t,n){var r=Pt.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function nn(e,t,n){var r=Lt.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function rn(e,t,n){var r=Pt.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function on(e,t,n){var r=Pt.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function an(e,t){return Nt(e.getDate(),t,2)}function ln(e,t){return Nt(e.getHours(),t,2)}function un(e,t){return Nt(e.getHours()%12||12,t,2)}function sn(e,t){return Nt(1+ot.count(We(e),e),t,3)}function cn(e,t){return Nt(e.getMilliseconds(),t,3)}function fn(e,t){return cn(e,t)+"000"}function dn(e,t){return Nt(e.getMonth()+1,t,2)}function pn(e,t){return Nt(e.getMinutes(),t,2)}function hn(e,t){return Nt(e.getSeconds(),t,2)}function vn(e){var t=e.getDay();return 0===t?7:t}function gn(e,t){return Nt(Ye.count(We(e)-1,e),t,2)}function yn(e){var t=e.getDay();return t>=4||0===t?et(e):et.ceil(e)}function mn(e,t){return e=yn(e),Nt(et.count(We(e),e)+(4===We(e).getDay()),t,2)}function bn(e){return e.getDay()}function xn(e,t){return Nt(Xe.count(We(e)-1,e),t,2)}function wn(e,t){return Nt(e.getFullYear()%100,t,2)}function _n(e,t){return Nt((e=yn(e)).getFullYear()%100,t,2)}function Cn(e,t){return Nt(e.getFullYear()%1e4,t,4)}function On(e,t){var n=e.getDay();return Nt((e=n>=4||0===n?et(e):et.ceil(e)).getFullYear()%1e4,t,4)}function En(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Nt(t/60|0,"0",2)+Nt(t%60,"0",2)}function Mn(e,t){return Nt(e.getUTCDate(),t,2)}function Sn(e,t){return Nt(e.getUTCHours(),t,2)}function An(e,t){return Nt(e.getUTCHours()%12||12,t,2)}function kn(e,t){return Nt(1+_t.count(Ot(e),e),t,3)}function jn(e,t){return Nt(e.getUTCMilliseconds(),t,3)}function Tn(e,t){return jn(e,t)+"000"}function Pn(e,t){return Nt(e.getUTCMonth()+1,t,2)}function Ln(e,t){return Nt(e.getUTCMinutes(),t,2)}function zn(e,t){return Nt(e.getUTCSeconds(),t,2)}function Nn(e){var t=e.getUTCDay();return 0===t?7:t}function Dn(e,t){return Nt(ht.count(Ot(e)-1,e),t,2)}function In(e){var t=e.getUTCDay();return t>=4||0===t?mt(e):mt.ceil(e)}function Rn(e,t){return e=In(e),Nt(mt.count(Ot(e),e)+(4===Ot(e).getUTCDay()),t,2)}function Hn(e){return e.getUTCDay()}function Bn(e,t){return Nt(vt.count(Ot(e)-1,e),t,2)}function Fn(e,t){return Nt(e.getUTCFullYear()%100,t,2)}function Vn(e,t){return Nt((e=In(e)).getUTCFullYear()%100,t,2)}function $n(e,t){return Nt(e.getUTCFullYear()%1e4,t,4)}function Un(e,t){var n=e.getUTCDay();return Nt((e=n>=4||0===n?mt(e):mt.ceil(e)).getUTCFullYear()%1e4,t,4)}function Zn(){return"+0000"}function Wn(){return"%"}function Kn(e){return+e}function Gn(e){return Math.floor(+e/1e3)}!function(e){At=function(e){var t=e.dateTime,n=e.date,r=e.time,o=e.periods,i=e.days,a=e.shortDays,l=e.months,u=e.shortMonths,s=It(o),c=Rt(o),f=It(i),d=Rt(i),p=It(a),h=Rt(a),v=It(l),g=Rt(l),y=It(u),m=Rt(u),b={a:function(e){return a[e.getDay()]},A:function(e){return i[e.getDay()]},b:function(e){return u[e.getMonth()]},B:function(e){return l[e.getMonth()]},c:null,d:an,e:an,f:fn,g:_n,G:On,H:ln,I:un,j:sn,L:cn,m:dn,M:pn,p:function(e){return o[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:Kn,s:Gn,S:hn,u:vn,U:gn,V:mn,w:bn,W:xn,x:null,X:null,y:wn,Y:Cn,Z:En,"%":Wn},x={a:function(e){return a[e.getUTCDay()]},A:function(e){return i[e.getUTCDay()]},b:function(e){return u[e.getUTCMonth()]},B:function(e){return l[e.getUTCMonth()]},c:null,d:Mn,e:Mn,f:Tn,g:Vn,G:Un,H:Sn,I:An,j:kn,L:jn,m:Pn,M:Ln,p:function(e){return o[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:Kn,s:Gn,S:zn,u:Nn,U:Dn,V:Rn,w:Hn,W:Bn,x:null,X:null,y:Fn,Y:$n,Z:Zn,"%":Wn},w={a:function(e,t,n){var r=p.exec(t.slice(n));return r?(e.w=h[r[0].toLowerCase()],n+r[0].length):-1},A:function(e,t,n){var r=f.exec(t.slice(n));return r?(e.w=d[r[0].toLowerCase()],n+r[0].length):-1},b:function(e,t,n){var r=y.exec(t.slice(n));return r?(e.m=m[r[0].toLowerCase()],n+r[0].length):-1},B:function(e,t,n){var r=v.exec(t.slice(n));return r?(e.m=g[r[0].toLowerCase()],n+r[0].length):-1},c:function(e,n,r){return O(e,t,n,r)},d:qt,e:qt,f:tn,g:Zt,G:Ut,H:Xt,I:Xt,j:Yt,L:en,m:Gt,M:Jt,p:function(e,t,n){var r=s.exec(t.slice(n));return r?(e.p=c[r[0].toLowerCase()],n+r[0].length):-1},q:Kt,Q:rn,s:on,S:Qt,u:Bt,U:Ft,V:Vt,w:Ht,W:$t,x:function(e,t,r){return O(e,n,t,r)},X:function(e,t,n){return O(e,r,t,n)},y:Zt,Y:Ut,Z:Wt,"%":nn};function _(e,t){return function(n){var r,o,i,a=[],l=-1,u=0,s=e.length;for(n instanceof Date||(n=new Date(+n));++l53)return null;"w"in i||(i.w=1),"Z"in i?(o=(r=Mt(St(i.y,0,1))).getUTCDay(),r=o>4||0===o?vt.ceil(r):vt(r),r=_t.offset(r,7*(i.V-1)),i.y=r.getUTCFullYear(),i.m=r.getUTCMonth(),i.d=r.getUTCDate()+(i.w+6)%7):(o=(r=Et(St(i.y,0,1))).getDay(),r=o>4||0===o?Xe.ceil(r):Xe(r),r=ot.offset(r,7*(i.V-1)),i.y=r.getFullYear(),i.m=r.getMonth(),i.d=r.getDate()+(i.w+6)%7)}else("W"in i||"U"in i)&&("w"in i||(i.w="u"in i?i.u%7:"W"in i?1:0),o="Z"in i?Mt(St(i.y,0,1)).getUTCDay():Et(St(i.y,0,1)).getDay(),i.m=0,i.d="W"in i?(i.w+6)%7+7*i.W-(o+5)%7:i.w+7*i.U-(o+6)%7);return"Z"in i?(i.H+=i.Z/100|0,i.M+=i.Z%100,Mt(i)):Et(i)}}function O(e,t,n,r){for(var o,i,a=0,l=t.length,u=n.length;a=u)return-1;if(37===(o=t.charCodeAt(a++))){if(o=t.charAt(a++),!(i=w[o in Tt?t.charAt(a++):o])||(r=i(e,n,r))<0)return-1}else if(o!=n.charCodeAt(r++))return-1}return r}return b.x=_(n,b),b.X=_(r,b),b.c=_(t,b),x.x=_(n,x),x.X=_(r,x),x.c=_(t,x),{format:function(e){var t=_(e+="",b);return t.toString=function(){return e},t},parse:function(e){var t=C(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=_(e+="",x);return t.toString=function(){return e},t},utcParse:function(e){var t=C(e+="",!0);return t.toString=function(){return e},t}}}(e),kt=At.format,At.parse,jt=At.utcFormat,At.utcParse}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function qn(e){return new Date(e)}function Yn(e){return e instanceof Date?+e:+new Date(+e)}function Xn(e,t,n,r,i,a,l,u,s){var c=te(G,G),f=c.invert,d=c.domain,p=s(".%L"),h=s(":%S"),v=s("%I:%M"),y=s("%I %p"),m=s("%a %d"),b=s("%b %d"),x=s("%B"),w=s("%Y"),_=[[l,1,1e3],[l,5,5e3],[l,15,15e3],[l,30,3e4],[a,1,6e4],[a,5,3e5],[a,15,9e5],[a,30,18e5],[i,1,36e5],[i,3,108e5],[i,6,216e5],[i,12,432e5],[r,1,864e5],[r,2,1728e5],[n,1,6048e5],[t,1,2592e6],[t,3,7776e6],[e,1,31536e6]];function C(o){return(l(o)0&&0===(m-=1)&&f.show(t),n.props.shouldFocusAfterRender&&(n.props.shouldReturnFocusAfterClose?(s.returnFocus(),s.teardownScopedFocus()):s.popWithoutFocus()),n.props.onAfterClose&&n.props.onAfterClose(),h.default.deregister(n)},n.open=function(){n.beforeOpen(),n.state.afterOpen&&n.state.beforeClose?(clearTimeout(n.closeTimer),n.setState({beforeClose:!1})):(n.props.shouldFocusAfterRender&&(s.setupScopedFocus(n.node),s.markForFocusLater()),n.setState({isOpen:!0},(function(){n.setState({afterOpen:!0}),n.props.isOpen&&n.props.onAfterOpen&&n.props.onAfterOpen({overlayEl:n.overlay,contentEl:n.content})})))},n.close=function(){n.props.closeTimeoutMS>0?n.closeWithTimeout():n.closeWithoutTimeout()},n.focusContent=function(){return n.content&&!n.contentHasFocus()&&n.content.focus()},n.closeWithTimeout=function(){var e=Date.now()+n.props.closeTimeoutMS;n.setState({beforeClose:!0,closesAt:e},(function(){n.closeTimer=setTimeout(n.closeWithoutTimeout,n.state.closesAt-Date.now())}))},n.closeWithoutTimeout=function(){n.setState({beforeClose:!1,isOpen:!1,afterOpen:!1,closesAt:null},n.afterClose)},n.handleKeyDown=function(e){9===e.keyCode&&(0,c.default)(n.content,e),n.props.shouldCloseOnEsc&&27===e.keyCode&&(e.stopPropagation(),n.requestClose(e))},n.handleOverlayOnClick=function(e){null===n.shouldClose&&(n.shouldClose=!0),n.shouldClose&&n.props.shouldCloseOnOverlayClick&&(n.ownerHandlesClose()?n.requestClose(e):n.focusContent()),n.shouldClose=null},n.handleContentOnMouseUp=function(){n.shouldClose=!1},n.handleOverlayOnMouseDown=function(e){n.props.shouldCloseOnOverlayClick||e.target!=n.overlay||e.preventDefault()},n.handleContentOnClick=function(){n.shouldClose=!1},n.handleContentOnMouseDown=function(){n.shouldClose=!1},n.requestClose=function(e){return n.ownerHandlesClose()&&n.props.onRequestClose(e)},n.ownerHandlesClose=function(){return n.props.onRequestClose},n.shouldBeClosed=function(){return!n.state.isOpen&&!n.state.beforeClose},n.contentHasFocus=function(){return document.activeElement===n.content||n.content.contains(document.activeElement)},n.buildClassName=function(e,t){var r="object"===(void 0===t?"undefined":o(t))?t:{base:y[e],afterOpen:y[e]+"--after-open",beforeClose:y[e]+"--before-close"},i=r.base;return n.state.afterOpen&&(i=i+" "+r.afterOpen),n.state.beforeClose&&(i=i+" "+r.beforeClose),"string"==typeof t&&t?i+" "+t:i},n.attributesFromObject=function(e,t){return Object.keys(t).reduce((function(n,r){return n[e+"-"+r]=t[r],n}),{})},n.state={afterOpen:!1,beforeClose:!1},n.shouldClose=null,n.moveFromContentToOverlay=null,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"componentDidMount",value:function(){this.props.isOpen&&this.open()}},{key:"componentDidUpdate",value:function(e,t){this.props.isOpen&&!e.isOpen?this.open():!this.props.isOpen&&e.isOpen&&this.close(),this.props.shouldFocusAfterRender&&this.state.isOpen&&!t.isOpen&&this.focusContent()}},{key:"componentWillUnmount",value:function(){this.state.isOpen&&this.afterClose(),clearTimeout(this.closeTimer)}},{key:"beforeOpen",value:function(){var e=this.props,t=e.appElement,n=e.ariaHideApp,r=e.htmlOpenClassName,o=e.bodyOpenClassName;o&&d.add(document.body,o),r&&d.add(document.getElementsByTagName("html")[0],r),n&&(m+=1,f.hide(t)),h.default.register(this)}},{key:"render",value:function(){var e=this.props,t=e.id,n=e.className,o=e.overlayClassName,i=e.defaultStyles,a=n?{}:i.content,u=o?{}:i.overlay;return this.shouldBeClosed()?null:l.default.createElement("div",{ref:this.setOverlayRef,className:this.buildClassName("overlay",o),style:r({},u,this.props.style.overlay),onClick:this.handleOverlayOnClick,onMouseDown:this.handleOverlayOnMouseDown},l.default.createElement("div",r({id:t,ref:this.setContentRef,style:r({},a,this.props.style.content),className:this.buildClassName("content",n),tabIndex:"-1",onKeyDown:this.handleKeyDown,onMouseDown:this.handleContentOnMouseDown,onMouseUp:this.handleContentOnMouseUp,onClick:this.handleContentOnClick,role:this.props.role,"aria-label":this.props.contentLabel},this.attributesFromObject("aria",this.props.aria||{}),this.attributesFromObject("data",this.props.data||{}),{"data-testid":this.props.testId}),this.props.children))}}]),t}(a.Component);b.defaultProps={style:{overlay:{},content:{}},defaultStyles:{}},b.propTypes={isOpen:u.default.bool.isRequired,defaultStyles:u.default.shape({content:u.default.object,overlay:u.default.object}),style:u.default.shape({content:u.default.object,overlay:u.default.object}),className:u.default.oneOfType([u.default.string,u.default.object]),overlayClassName:u.default.oneOfType([u.default.string,u.default.object]),bodyOpenClassName:u.default.string,htmlOpenClassName:u.default.string,ariaHideApp:u.default.bool,appElement:u.default.instanceOf(p.default),onAfterOpen:u.default.func,onAfterClose:u.default.func,onRequestClose:u.default.func,closeTimeoutMS:u.default.number,shouldFocusAfterRender:u.default.bool,shouldCloseOnOverlayClick:u.default.bool,shouldReturnFocusAfterClose:u.default.bool,role:u.default.string,contentLabel:u.default.string,aria:u.default.object,data:u.default.object,children:u.default.node,shouldCloseOnEsc:u.default.bool,overlayRef:u.default.func,contentRef:u.default.func,id:u.default.string,testId:u.default.string},t.default=b,e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.handleBlur=s,t.handleFocus=c,t.markForFocusLater=function(){a.push(document.activeElement)},t.returnFocus=function(){var e=null;try{return void(0!==a.length&&(e=a.pop()).focus())}catch(t){console.warn(["You tried to return focus to",e,"but it is not in the DOM anymore"].join(" "))}},t.popWithoutFocus=function(){a.length>0&&a.pop()},t.setupScopedFocus=function(e){l=e,window.addEventListener?(window.addEventListener("blur",s,!1),document.addEventListener("focus",c,!0)):(window.attachEvent("onBlur",s),document.attachEvent("onFocus",c))},t.teardownScopedFocus=function(){l=null,window.addEventListener?(window.removeEventListener("blur",s),document.removeEventListener("focus",c)):(window.detachEvent("onBlur",s),document.detachEvent("onFocus",c))};var r,o=n(1474),i=(r=o)&&r.__esModule?r:{default:r};var a=[],l=null,u=!1;function s(){u=!0}function c(){if(u){if(u=!1,!l)return;setTimeout((function(){l.contains(document.activeElement)||((0,i.default)(l)[0]||l).focus()}),0)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=(0,i.default)(e);if(!n.length)return void t.preventDefault();var r=void 0,o=t.shiftKey,a=n[0],l=n[n.length-1];if(e===document.activeElement){if(!o)return;r=l}l!==document.activeElement||o||(r=a);a===document.activeElement&&o&&(r=l);if(r)return t.preventDefault(),void r.focus();var u=/(\bChrome\b|\bSafari\b)\//.exec(navigator.userAgent);if(null==u||"Chrome"==u[1]||null!=/\biPod\b|\biPad\b/g.exec(navigator.userAgent))return;var s=n.indexOf(document.activeElement);s>-1&&(s+=o?-1:1);if(void 0===(r=n[s]))return t.preventDefault(),void(r=o?l:a).focus();t.preventDefault(),r.focus()};var r,o=n(1474),i=(r=o)&&r.__esModule?r:{default:r};e.exports=t.default},function(e,t,n){"use strict";var r=function(){};e.exports=r},function(e,t,n){var r; /*! Copyright (c) 2015 Jed Watson. Based on code that is Copyright 2013-2015, Facebook, Inc. @@ -127,4 +127,4 @@ OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. object-assign (c) Sindre Sorhus @license MIT -*/var r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;function a(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,l,u=a(e),s=1;s"+e+"

"},a.link=function(e,t,n){return""+n+""},t.default=function(e){return"string"!=typeof e?"":o.default(e,{renderer:a})}},function(e,t,n){(function(t){!function(t){"use strict";var n={newline:/^\n+/,code:/^( {4}[^\n]+\n*)+/,fences:g,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/,nptable:g,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3})(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,html:"^ {0,3}(?:<(script|pre|style)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?\\?>\\n*|\\n*|\\n*|)[\\s\\S]*?(?:\\n{2,}|$)|<(?!script|pre|style)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$))",def:/^ {0,3}\[(label)\]: *\n? *]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,table:g,lheading:/^([^\n]+)\n {0,3}(=|-){2,} *(?:\n+|$)/,paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading| {0,3}>|<\/?(?:tag)(?: +|\n|\/?>)|<(?:script|pre|style|!--))[^\n]+)*)/,text:/^[^\n]+/};function r(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||w.defaults,this.rules=n.normal,this.options.pedantic?this.rules=n.pedantic:this.options.gfm&&(this.options.tables?this.rules=n.tables:this.rules=n.gfm)}n._label=/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,n._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,n.def=d(n.def).replace("label",n._label).replace("title",n._title).getRegex(),n.bullet=/(?:[*+-]|\d{1,9}\.)/,n.item=/^( *)(bull) ?[^\n]*(?:\n(?!\1bull ?)[^\n]*)*/,n.item=d(n.item,"gm").replace(/bull/g,n.bullet).getRegex(),n.list=d(n.list).replace(/bull/g,n.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+n.def.source+")").getRegex(),n._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",n._comment=//,n.html=d(n.html,"i").replace("comment",n._comment).replace("tag",n._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),n.paragraph=d(n.paragraph).replace("hr",n.hr).replace("heading",n.heading).replace("lheading",n.lheading).replace("tag",n._tag).getRegex(),n.blockquote=d(n.blockquote).replace("paragraph",n.paragraph).getRegex(),n.normal=y({},n),n.gfm=y({},n.normal,{fences:/^ {0,3}(`{3,}|~{3,})([^`\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?:\n+|$)|$)/,paragraph:/^/,heading:/^ *(#{1,6}) +([^\n]+?) *#* *(?:\n+|$)/}),n.gfm.paragraph=d(n.paragraph).replace("(?!","(?!"+n.gfm.fences.source.replace("\\1","\\2")+"|"+n.list.source.replace("\\1","\\3")+"|").getRegex(),n.tables=y({},n.gfm,{nptable:/^ *([^|\n ].*\|.*)\n *([-:]+ *\|[-| :]*)(?:\n((?:.*[^>\n ].*(?:\n|$))*)\n*|$)/,table:/^ *\|(.+)\n *\|?( *[-:]+[-| :]*)(?:\n((?: *[^>\n ].*(?:\n|$))*)\n*|$)/}),n.pedantic=y({},n.normal,{html:d("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",n._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/}),r.rules=n,r.lex=function(e,t){return new r(t).lex(e)},r.prototype.lex=function(e){return e=e.replace(/\r\n|\r/g,"\n").replace(/\t/g," ").replace(/\u00a0/g," ").replace(/\u2424/g,"\n"),this.token(e,!0)},r.prototype.token=function(e,t){var r,o,i,a,l,u,s,c,f,d,p,h,v,g,y,x;for(e=e.replace(/^ +$/gm,"");e;)if((i=this.rules.newline.exec(e))&&(e=e.substring(i[0].length),i[0].length>1&&this.tokens.push({type:"space"})),i=this.rules.code.exec(e)){var w=this.tokens[this.tokens.length-1];e=e.substring(i[0].length),w&&"paragraph"===w.type?w.text+="\n"+i[0].trimRight():(i=i[0].replace(/^ {4}/gm,""),this.tokens.push({type:"code",codeBlockStyle:"indented",text:this.options.pedantic?i:b(i,"\n")}))}else if(i=this.rules.fences.exec(e))e=e.substring(i[0].length),this.tokens.push({type:"code",lang:i[2]?i[2].trim():i[2],text:i[3]||""});else if(i=this.rules.heading.exec(e))e=e.substring(i[0].length),this.tokens.push({type:"heading",depth:i[1].length,text:i[2]});else if((i=this.rules.nptable.exec(e))&&(u={type:"table",header:m(i[1].replace(/^ *| *\| *$/g,"")),align:i[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:i[3]?i[3].replace(/\n$/,"").split("\n"):[]}).header.length===u.align.length){for(e=e.substring(i[0].length),p=0;p ?/gm,""),this.token(i,t),this.tokens.push({type:"blockquote_end"});else if(i=this.rules.list.exec(e)){for(e=e.substring(i[0].length),s={type:"list_start",ordered:g=(a=i[2]).length>1,start:g?+a:"",loose:!1},this.tokens.push(s),c=[],r=!1,v=(i=i[0].match(this.rules.item)).length,p=0;p1?1===l.length:l.length>1||this.options.smartLists&&l!==a)&&(e=i.slice(p+1).join("\n")+e,p=v-1)),o=r||/\n\n(?!\s*$)/.test(u),p!==v-1&&(r="\n"===u.charAt(u.length-1),o||(o=r)),o&&(s.loose=!0),x=void 0,(y=/^\[[ xX]\] /.test(u))&&(x=" "!==u[1],u=u.replace(/^\[[ xX]\] +/,"")),f={type:"list_item_start",task:y,checked:x,loose:o},c.push(f),this.tokens.push(f),this.token(u,!1),this.tokens.push({type:"list_item_end"});if(s.loose)for(v=c.length,p=0;p?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:g,tag:"^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^",link:/^!?\[(label)\]\(href(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(?!\s*\])((?:\\[\[\]]?|[^\[\]\\])+)\]/,nolink:/^!?\[(?!\s*\])((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\](?:\[\])?/,strong:/^__([^\s_])__(?!_)|^\*\*([^\s*])\*\*(?!\*)|^__([^\s][\s\S]*?[^\s])__(?!_)|^\*\*([^\s][\s\S]*?[^\s])\*\*(?!\*)/,em:/^_([^\s_])_(?!_)|^\*([^\s*<\[])\*(?!\*)|^_([^\s<][\s\S]*?[^\s_])_(?!_|[^\spunctuation])|^_([^\s_<][\s\S]*?[^\s])_(?!_|[^\spunctuation])|^\*([^\s<"][\s\S]*?[^\s\*])\*(?!\*|[^\spunctuation])|^\*([^\s*"<\[][\s\S]*?[^\s])\*(?!\*)/,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:g,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\?@\\[^_{|}~",o.em=d(o.em).replace(/punctuation/g,o._punctuation).getRegex(),o._escapes=/\\([!"#$%&'()*+,\-.\/:;<=>?@\[\]\\^_`{|}~])/g,o._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,o._email=/[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,o.autolink=d(o.autolink).replace("scheme",o._scheme).replace("email",o._email).getRegex(),o._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,o.tag=d(o.tag).replace("comment",n._comment).replace("attribute",o._attribute).getRegex(),o._label=/(?:\[[^\[\]]*\]|\\[\[\]]?|`[^`]*`|`(?!`)|[^\[\]\\`])*?/,o._href=/\s*(<(?:\\[<>]?|[^\s<>\\])*>|[^\s\x00-\x1f]*)/,o._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,o.link=d(o.link).replace("label",o._label).replace("href",o._href).replace("title",o._title).getRegex(),o.reflink=d(o.reflink).replace("label",o._label).getRegex(),o.normal=y({},o),o.pedantic=y({},o.normal,{strong:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,em:/^_(?=\S)([\s\S]*?\S)_(?!_)|^\*(?=\S)([\s\S]*?\S)\*(?!\*)/,link:d(/^!?\[(label)\]\((.*?)\)/).replace("label",o._label).getRegex(),reflink:d(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",o._label).getRegex()}),o.gfm=y({},o.normal,{escape:d(o.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^~+(?=\S)([\s\S]*?\S)~+/,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\/i.test(a[0])&&(this.inLink=!1),!this.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(a[0])?this.inRawBlock=!0:this.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(a[0])&&(this.inRawBlock=!1),e=e.substring(a[0].length),u+=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(a[0]):c(a[0]):a[0];else if(a=this.rules.link.exec(e)){var s=x(a[2],"()");if(s>-1){var f=a[0].length-(a[2].length-s)-(a[3]||"").length;a[2]=a[2].substring(0,s),a[0]=a[0].substring(0,f).trim(),a[3]=""}e=e.substring(a[0].length),this.inLink=!0,r=a[2],this.options.pedantic?(t=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(r))?(r=t[1],o=t[3]):o="":o=a[3]?a[3].slice(1,-1):"",r=r.trim().replace(/^<([\s\S]*)>$/,"$1"),u+=this.outputLink(a,{href:i.escapes(r),title:i.escapes(o)}),this.inLink=!1}else if((a=this.rules.reflink.exec(e))||(a=this.rules.nolink.exec(e))){if(e=e.substring(a[0].length),t=(a[2]||a[1]).replace(/\s+/g," "),!(t=this.links[t.toLowerCase()])||!t.href){u+=a[0].charAt(0),e=a[0].substring(1)+e;continue}this.inLink=!0,u+=this.outputLink(a,t),this.inLink=!1}else if(a=this.rules.strong.exec(e))e=e.substring(a[0].length),u+=this.renderer.strong(this.output(a[4]||a[3]||a[2]||a[1]));else if(a=this.rules.em.exec(e))e=e.substring(a[0].length),u+=this.renderer.em(this.output(a[6]||a[5]||a[4]||a[3]||a[2]||a[1]));else if(a=this.rules.code.exec(e))e=e.substring(a[0].length),u+=this.renderer.codespan(c(a[2].trim(),!0));else if(a=this.rules.br.exec(e))e=e.substring(a[0].length),u+=this.renderer.br();else if(a=this.rules.del.exec(e))e=e.substring(a[0].length),u+=this.renderer.del(this.output(a[1]));else if(a=this.rules.autolink.exec(e))e=e.substring(a[0].length),r="@"===a[2]?"mailto:"+(n=c(this.mangle(a[1]))):n=c(a[1]),u+=this.renderer.link(r,null,n);else if(this.inLink||!(a=this.rules.url.exec(e))){if(a=this.rules.text.exec(e))e=e.substring(a[0].length),this.inRawBlock?u+=this.renderer.text(a[0]):u+=this.renderer.text(c(this.smartypants(a[0])));else if(e)throw new Error("Infinite loop on byte: "+e.charCodeAt(0))}else{if("@"===a[2])r="mailto:"+(n=c(a[0]));else{do{l=a[0],a[0]=this.rules._backpedal.exec(a[0])[0]}while(l!==a[0]);n=c(a[0]),r="www."===a[1]?"http://"+n:n}e=e.substring(a[0].length),u+=this.renderer.link(r,null,n)}return u},i.escapes=function(e){return e?e.replace(i.rules._escapes,"$1"):e},i.prototype.outputLink=function(e,t){var n=t.href,r=t.title?c(t.title):null;return"!"!==e[0].charAt(0)?this.renderer.link(n,r,this.output(e[1])):this.renderer.image(n,r,c(e[1]))},i.prototype.smartypants=function(e){return this.options.smartypants?e.replace(/---/g,"—").replace(/--/g,"–").replace(/(^|[-\u2014\/(\[{"\s])'/g,"$1‘").replace(/'/g,"’").replace(/(^|[-\u2014\/(\[{\u2018\s])"/g,"$1“").replace(/"/g,"”").replace(/\.{3}/g,"…"):e},i.prototype.mangle=function(e){if(!this.options.mangle)return e;for(var t,n="",r=e.length,o=0;o.5&&(t="x"+t.toString(16)),n+="&#"+t+";";return n},a.prototype.code=function(e,t,n){var r=(t||"").match(/\S*/)[0];if(this.options.highlight){var o=this.options.highlight(e,r);null!=o&&o!==e&&(n=!0,e=o)}return r?'
'+(n?e:c(e,!0))+"
\n":"
"+(n?e:c(e,!0))+"
"},a.prototype.blockquote=function(e){return"
\n"+e+"
\n"},a.prototype.html=function(e){return e},a.prototype.heading=function(e,t,n,r){return this.options.headerIds?"'+e+"\n":""+e+"\n"},a.prototype.hr=function(){return this.options.xhtml?"
\n":"
\n"},a.prototype.list=function(e,t,n){var r=t?"ol":"ul";return"<"+r+(t&&1!==n?' start="'+n+'"':"")+">\n"+e+"\n"},a.prototype.listitem=function(e){return"
  • "+e+"
  • \n"},a.prototype.checkbox=function(e){return" "},a.prototype.paragraph=function(e){return"

    "+e+"

    \n"},a.prototype.table=function(e,t){return t&&(t=""+t+""),"\n\n"+e+"\n"+t+"
    \n"},a.prototype.tablerow=function(e){return"\n"+e+"\n"},a.prototype.tablecell=function(e,t){var n=t.header?"th":"td";return(t.align?"<"+n+' align="'+t.align+'">':"<"+n+">")+e+"\n"},a.prototype.strong=function(e){return""+e+""},a.prototype.em=function(e){return""+e+""},a.prototype.codespan=function(e){return""+e+""},a.prototype.br=function(){return this.options.xhtml?"
    ":"
    "},a.prototype.del=function(e){return""+e+""},a.prototype.link=function(e,t,n){if(null===(e=p(this.options.sanitize,this.options.baseUrl,e)))return n;var r='"+n+""},a.prototype.image=function(e,t,n){if(null===(e=p(this.options.sanitize,this.options.baseUrl,e)))return n;var r=''+n+'":">")},a.prototype.text=function(e){return e},l.prototype.strong=l.prototype.em=l.prototype.codespan=l.prototype.del=l.prototype.text=function(e){return e},l.prototype.link=l.prototype.image=function(e,t,n){return""+n},l.prototype.br=function(){return""},u.parse=function(e,t){return new u(t).parse(e)},u.prototype.parse=function(e){this.inline=new i(e.links,this.options),this.inlineText=new i(e.links,y({},this.options,{renderer:new l})),this.tokens=e.reverse();for(var t="";this.next();)t+=this.tok();return t},u.prototype.next=function(){return this.token=this.tokens.pop(),this.token},u.prototype.peek=function(){return this.tokens[this.tokens.length-1]||0},u.prototype.parseText=function(){for(var e=this.token.text;"text"===this.peek().type;)e+="\n"+this.next().text;return this.inline.output(e)},u.prototype.tok=function(){switch(this.token.type){case"space":return"";case"hr":return this.renderer.hr();case"heading":return this.renderer.heading(this.inline.output(this.token.text),this.token.depth,f(this.inlineText.output(this.token.text)),this.slugger);case"code":return this.renderer.code(this.token.text,this.token.lang,this.token.escaped);case"table":var e,t,n,r,o="",i="";for(n="",e=0;e?@[\]^`{|}~]/g,"").replace(/\s/g,"-");if(this.seen.hasOwnProperty(t)){var n=t;do{this.seen[n]++,t=n+"-"+this.seen[n]}while(this.seen.hasOwnProperty(t))}return this.seen[t]=0,t},c.escapeTest=/[&<>"']/,c.escapeReplace=/[&<>"']/g,c.replacements={"&":"&","<":"<",">":">",'"':""","'":"'"},c.escapeTestNoEncode=/[<>"']|&(?!#?\w+;)/,c.escapeReplaceNoEncode=/[<>"']|&(?!#?\w+;)/g;var h={},v=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function g(){}function y(e){for(var t,n,r=1;r=0&&"\\"===n[o];)r=!r;return r?"|":" |"})).split(/ \|/),r=0;if(n.length>t)n.splice(t);else for(;n.lengthAn error occurred:

    "+c(e.message+"",!0)+"
    ";throw e}}g.exec=g,w.options=w.setOptions=function(e){return y(w.defaults,e),w},w.getDefaults=function(){return{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:new a,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tables:!0,xhtml:!1}},w.defaults=w.getDefaults(),w.Parser=u,w.parser=u.parse,w.Renderer=a,w.TextRenderer=l,w.Lexer=r,w.lexer=r.lex,w.InlineLexer=i,w.inlineLexer=i.output,w.Slugger=s,w.parse=w,e.exports=w}(this||"undefined"!=typeof window&&window)}).call(this,n(10))},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";t.__esModule=!0;var r=n(12);r.registerLanguage("css",n(13)),r.registerLanguage("json",n(14)),r.registerLanguage("less",n(15)),r.registerLanguage("scss",n(16)),r.registerLanguage("javascript",n(17)),r.registerLanguage("typescript",n(18)),t.default=r},function(e,t,n){"object"==typeof window&&window||"object"==typeof self&&self,function(e){var t=[],n=Object.keys,r={},o={},i=/^(no-?highlight|plain|text)$/i,a=/\blang(?:uage)?-([\w-]+)\b/i,l=/((^(<[^>]+>|\t|)+|(?:\n)))/gm,u="",s={classPrefix:"hljs-",tabReplace:null,useBR:!1,languages:void 0};function c(e){return e.replace(/&/g,"&").replace(//g,">")}function f(e){return e.nodeName.toLowerCase()}function d(e,t){var n=e&&e.exec(t);return n&&0===n.index}function p(e){return i.test(e)}function h(e){var t,n={},r=Array.prototype.slice.call(arguments,1);for(t in e)n[t]=e[t];return r.forEach((function(e){for(t in e)n[t]=e[t]})),n}function v(e){var t=[];return function e(n,r){for(var o=n.firstChild;o;o=o.nextSibling)3===o.nodeType?r+=o.nodeValue.length:1===o.nodeType&&(t.push({event:"start",offset:r,node:o}),r=e(o,r),f(o).match(/br|hr|img|input/)||t.push({event:"stop",offset:r,node:o}));return r}(e,0),t}function g(e){function t(e){return e&&e.source||e}function r(n,r){return new RegExp(t(n),"m"+(e.case_insensitive?"i":"")+(r?"g":""))}!function o(i,a){if(!i.compiled){if(i.compiled=!0,i.keywords=i.keywords||i.beginKeywords,i.keywords){var l={},u=function(t,n){e.case_insensitive&&(n=n.toLowerCase()),n.split(" ").forEach((function(e){var n=e.split("|");l[n[0]]=[t,n[1]?Number(n[1]):1]}))};"string"==typeof i.keywords?u("keyword",i.keywords):n(i.keywords).forEach((function(e){u(e,i.keywords[e])})),i.keywords=l}i.lexemesRe=r(i.lexemes||/\w+/,!0),a&&(i.beginKeywords&&(i.begin="\\b("+i.beginKeywords.split(" ").join("|")+")\\b"),i.begin||(i.begin=/\B|\b/),i.beginRe=r(i.begin),i.endSameAsBegin&&(i.end=i.begin),i.end||i.endsWithParent||(i.end=/\B|\b/),i.end&&(i.endRe=r(i.end)),i.terminator_end=t(i.end)||"",i.endsWithParent&&a.terminator_end&&(i.terminator_end+=(i.end?"|":"")+a.terminator_end)),i.illegal&&(i.illegalRe=r(i.illegal)),null==i.relevance&&(i.relevance=1),i.contains||(i.contains=[]),i.contains=Array.prototype.concat.apply([],i.contains.map((function(e){return function(e){return e.variants&&!e.cached_variants&&(e.cached_variants=e.variants.map((function(t){return h(e,{variants:null},t)}))),e.cached_variants||e.endsWithParent&&[h(e)]||[e]}("self"===e?i:e)}))),i.contains.forEach((function(e){o(e,i)})),i.starts&&o(i.starts,a);var s=i.contains.map((function(e){return e.beginKeywords?"\\.?(?:"+e.begin+")\\.?":e.begin})).concat([i.terminator_end,i.illegal]).map(t).filter(Boolean);i.terminators=s.length?r(function(e,n){for(var r=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./,o=0,i="",a=0;a0&&(i+="|");u.length>0;){var s=r.exec(u);if(null==s){i+=u;break}i+=u.substring(0,s.index),u=u.substring(s.index+s[0].length),"\\"==s[0][0]&&s[1]?i+="\\"+String(Number(s[1])+l):(i+=s[0],"("==s[0]&&o++)}}return i}(s),!0):{exec:function(){return null}}}}(e)}function y(e,t,n,o){function i(e){return new RegExp(e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"),"m")}function a(e,t){var n=v.case_insensitive?t[0].toLowerCase():t[0];return e.keywords.hasOwnProperty(n)&&e.keywords[n]}function l(e,t,n,r){var o='')+t+(n?"":u):t}function f(){C+=null!=x.subLanguage?function(){var e="string"==typeof x.subLanguage;if(e&&!r[x.subLanguage])return c(O);var t=e?y(x.subLanguage,O,!0,w[x.subLanguage]):m(O,x.subLanguage.length?x.subLanguage:void 0);return x.relevance>0&&(E+=t.relevance),e&&(w[x.subLanguage]=t.top),l(t.language,t.value,!1,!0)}():function(){var e,t,n,r;if(!x.keywords)return c(O);for(r="",t=0,x.lexemesRe.lastIndex=0,n=x.lexemesRe.exec(O);n;)r+=c(O.substring(t,n.index)),(e=a(x,n))?(E+=e[1],r+=l(e[0],c(n[0]))):r+=c(n[0]),t=x.lexemesRe.lastIndex,n=x.lexemesRe.exec(O);return r+c(O.substr(t))}(),O=""}function p(e){C+=e.className?l(e.className,"",!0):"",x=Object.create(e,{parent:{value:x}})}function h(e,t){if(O+=e,null==t)return f(),0;var r=function(e,t){var n,r;for(n=0,r=t.contains.length;n")+'"');return O+=t,t.length||1}var v=_(e);if(!v)throw new Error('Unknown language: "'+e+'"');g(v);var b,x=o||v,w={},C="";for(b=x;b!==v;b=b.parent)b.className&&(C=l(b.className,"",!0)+C);var O="",E=0;try{for(var M,S,A=0;x.terminators.lastIndex=A,M=x.terminators.exec(t);)S=h(t.substring(A,M.index),M[0]),A=M.index+S;for(h(t.substr(A)),b=x;b.parent;b=b.parent)b.className&&(C+=u);return{relevance:E,value:C,language:e,top:x}}catch(e){if(e.message&&-1!==e.message.indexOf("Illegal"))return{relevance:0,value:c(t)};throw e}}function m(e,t){t=t||s.languages||n(r);var o={relevance:0,value:c(e)},i=o;return t.filter(_).filter(C).forEach((function(t){var n=y(t,e,!1);n.language=t,n.relevance>i.relevance&&(i=n),n.relevance>o.relevance&&(i=o,o=n)})),i.language&&(o.second_best=i),o}function b(e){return s.tabReplace||s.useBR?e.replace(l,(function(e,t){return s.useBR&&"\n"===e?"
    ":s.tabReplace?t.replace(/\t/g,s.tabReplace):""})):e}function x(e){var n,r,i,l,u,d=function(e){var t,n,r,o,i=e.className+" ";if(i+=e.parentNode?e.parentNode.className:"",n=a.exec(i))return _(n[1])?n[1]:"no-highlight";for(t=0,r=(i=i.split(/\s+/)).length;t/g,"\n"):n=e,u=n.textContent,i=d?y(d,u,!0):m(u),(r=v(n)).length&&((l=document.createElementNS("http://www.w3.org/1999/xhtml","div")).innerHTML=i.value,i.value=function(e,n,r){var o=0,i="",a=[];function l(){return e.length&&n.length?e[0].offset!==n[0].offset?e[0].offset"}function s(e){i+=""}function d(e){("start"===e.event?u:s)(e.node)}for(;e.length||n.length;){var p=l();if(i+=c(r.substring(o,p[0].offset)),o=p[0].offset,p===e){a.reverse().forEach(s);do{d(p.splice(0,1)[0]),p=l()}while(p===e&&p.length&&p[0].offset===o);a.reverse().forEach(u)}else"start"===p[0].event?a.push(p[0].node):a.pop(),d(p.splice(0,1)[0])}return i+c(r.substr(o))}(r,v(l),u)),i.value=b(i.value),e.innerHTML=i.value,e.className=function(e,t,n){var r=t?o[t]:n,i=[e.trim()];return e.match(/\bhljs\b/)||i.push("hljs"),-1===e.indexOf(r)&&i.push(r),i.join(" ").trim()}(e.className,d,i.language),e.result={language:i.language,re:i.relevance},i.second_best&&(e.second_best={language:i.second_best.language,re:i.second_best.relevance}))}function w(){if(!w.called){w.called=!0;var e=document.querySelectorAll("pre code");t.forEach.call(e,x)}}function _(e){return e=(e||"").toLowerCase(),r[e]||r[o[e]]}function C(e){var t=_(e);return t&&!t.disableAutodetect}e.highlight=y,e.highlightAuto=m,e.fixMarkup=b,e.highlightBlock=x,e.configure=function(e){s=h(s,e)},e.initHighlighting=w,e.initHighlightingOnLoad=function(){addEventListener("DOMContentLoaded",w,!1),addEventListener("load",w,!1)},e.registerLanguage=function(t,n){var i=r[t]=n(e);i.aliases&&i.aliases.forEach((function(e){o[e]=t}))},e.listLanguages=function(){return n(r)},e.getLanguage=_,e.autoDetection=C,e.inherit=h,e.IDENT_RE="[a-zA-Z]\\w*",e.UNDERSCORE_IDENT_RE="[a-zA-Z_]\\w*",e.NUMBER_RE="\\b\\d+(\\.\\d+)?",e.C_NUMBER_RE="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",e.BINARY_NUMBER_RE="\\b(0b[01]+)",e.RE_STARTERS_RE="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",e.BACKSLASH_ESCAPE={begin:"\\\\[\\s\\S]",relevance:0},e.APOS_STRING_MODE={className:"string",begin:"'",end:"'",illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},e.QUOTE_STRING_MODE={className:"string",begin:'"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},e.PHRASAL_WORDS_MODE={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},e.COMMENT=function(t,n,r){var o=e.inherit({className:"comment",begin:t,end:n,contains:[]},r||{});return o.contains.push(e.PHRASAL_WORDS_MODE),o.contains.push({className:"doctag",begin:"(?:TODO|FIXME|NOTE|BUG|XXX):",relevance:0}),o},e.C_LINE_COMMENT_MODE=e.COMMENT("//","$"),e.C_BLOCK_COMMENT_MODE=e.COMMENT("/\\*","\\*/"),e.HASH_COMMENT_MODE=e.COMMENT("#","$"),e.NUMBER_MODE={className:"number",begin:e.NUMBER_RE,relevance:0},e.C_NUMBER_MODE={className:"number",begin:e.C_NUMBER_RE,relevance:0},e.BINARY_NUMBER_MODE={className:"number",begin:e.BINARY_NUMBER_RE,relevance:0},e.CSS_NUMBER_MODE={className:"number",begin:e.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},e.REGEXP_MODE={className:"regexp",begin:/\//,end:/\/[gimuy]*/,illegal:/\n/,contains:[e.BACKSLASH_ESCAPE,{begin:/\[/,end:/\]/,relevance:0,contains:[e.BACKSLASH_ESCAPE]}]},e.TITLE_MODE={className:"title",begin:e.IDENT_RE,relevance:0},e.UNDERSCORE_TITLE_MODE={className:"title",begin:e.UNDERSCORE_IDENT_RE,relevance:0},e.METHOD_GUARD={begin:"\\.\\s*"+e.UNDERSCORE_IDENT_RE,relevance:0}}(t)},function(e,t){e.exports=function(e){var t={begin:/[A-Z\_\.\-]+\s*:/,returnBegin:!0,end:";",endsWithParent:!0,contains:[{className:"attribute",begin:/\S/,end:":",excludeEnd:!0,starts:{endsWithParent:!0,excludeEnd:!0,contains:[{begin:/[\w-]+\(/,returnBegin:!0,contains:[{className:"built_in",begin:/[\w-]+/},{begin:/\(/,end:/\)/,contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]}]},e.CSS_NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,e.C_BLOCK_COMMENT_MODE,{className:"number",begin:"#[0-9A-Fa-f]+"},{className:"meta",begin:"!important"}]}}]};return{case_insensitive:!0,illegal:/[=\/|'\$]/,contains:[e.C_BLOCK_COMMENT_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/},{className:"selector-class",begin:/\.[A-Za-z0-9_-]+/},{className:"selector-attr",begin:/\[/,end:/\]/,illegal:"$"},{className:"selector-pseudo",begin:/:(:)?[a-zA-Z0-9\_\-\+\(\)"'.]+/},{begin:"@(font-face|page)",lexemes:"[a-z-]+",keywords:"font-face page"},{begin:"@",end:"[{;]",illegal:/:/,contains:[{className:"keyword",begin:/\w+/},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"[a-zA-Z-][a-zA-Z0-9_-]*",relevance:0},{begin:"{",end:"}",illegal:/\S/,contains:[e.C_BLOCK_COMMENT_MODE,t]}]}}},function(e,t){e.exports=function(e){var t={literal:"true false null"},n=[e.QUOTE_STRING_MODE,e.C_NUMBER_MODE],r={end:",",endsWithParent:!0,excludeEnd:!0,contains:n,keywords:t},o={begin:"{",end:"}",contains:[{className:"attr",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE],illegal:"\\n"},e.inherit(r,{begin:/:/})],illegal:"\\S"},i={begin:"\\[",end:"\\]",contains:[e.inherit(r)],illegal:"\\S"};return n.splice(n.length,0,o,i),{contains:n,keywords:t,illegal:"\\S"}}},function(e,t){e.exports=function(e){var t="([\\w-]+|@{[\\w-]+})",n=[],r=[],o=function(e){return{className:"string",begin:"~?"+e+".*?"+e}},i=function(e,t,n){return{className:e,begin:t,relevance:n}},a={begin:"\\(",end:"\\)",contains:r,relevance:0};r.push(e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,o("'"),o('"'),e.CSS_NUMBER_MODE,{begin:"(url|data-uri)\\(",starts:{className:"string",end:"[\\)\\n]",excludeEnd:!0}},i("number","#[0-9A-Fa-f]+\\b"),a,i("variable","@@?[\\w-]+",10),i("variable","@{[\\w-]+}"),i("built_in","~?`[^`]*?`"),{className:"attribute",begin:"[\\w-]+\\s*:",end:":",returnBegin:!0,excludeEnd:!0},{className:"meta",begin:"!important"});var l=r.concat({begin:"{",end:"}",contains:n}),u={beginKeywords:"when",endsWithParent:!0,contains:[{beginKeywords:"and not"}].concat(r)},s={begin:t+"\\s*:",returnBegin:!0,end:"[;}]",relevance:0,contains:[{className:"attribute",begin:t,end:":",excludeEnd:!0,starts:{endsWithParent:!0,illegal:"[<=$]",relevance:0,contains:r}}]},c={className:"keyword",begin:"@(import|media|charset|font-face|(-[a-z]+-)?keyframes|supports|document|namespace|page|viewport|host)\\b",starts:{end:"[;{}]",returnEnd:!0,contains:r,relevance:0}},f={className:"variable",variants:[{begin:"@[\\w-]+\\s*:",relevance:15},{begin:"@[\\w-]+"}],starts:{end:"[;}]",returnEnd:!0,contains:l}},d={variants:[{begin:"[\\.#:&\\[>]",end:"[;{}]"},{begin:t,end:"{"}],returnBegin:!0,returnEnd:!0,illegal:"[<='$\"]",relevance:0,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,u,i("keyword","all\\b"),i("variable","@{[\\w-]+}"),i("selector-tag",t+"%?",0),i("selector-id","#"+t),i("selector-class","\\."+t,0),i("selector-tag","&",0),{className:"selector-attr",begin:"\\[",end:"\\]"},{className:"selector-pseudo",begin:/:(:)?[a-zA-Z0-9\_\-\+\(\)"'.]+/},{begin:"\\(",end:"\\)",contains:l},{begin:"!important"}]};return n.push(e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,c,f,s,d),{case_insensitive:!0,illegal:"[=>'/<($\"]",contains:n}}},function(e,t){e.exports=function(e){var t={className:"variable",begin:"(\\$[a-zA-Z-][a-zA-Z0-9_-]*)\\b"},n={className:"number",begin:"#[0-9A-Fa-f]+"};return e.CSS_NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,e.C_BLOCK_COMMENT_MODE,{case_insensitive:!0,illegal:"[=/|']",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"selector-id",begin:"\\#[A-Za-z0-9_-]+",relevance:0},{className:"selector-class",begin:"\\.[A-Za-z0-9_-]+",relevance:0},{className:"selector-attr",begin:"\\[",end:"\\]",illegal:"$"},{className:"selector-tag",begin:"\\b(a|abbr|acronym|address|area|article|aside|audio|b|base|big|blockquote|body|br|button|canvas|caption|cite|code|col|colgroup|command|datalist|dd|del|details|dfn|div|dl|dt|em|embed|fieldset|figcaption|figure|footer|form|frame|frameset|(h[1-6])|head|header|hgroup|hr|html|i|iframe|img|input|ins|kbd|keygen|label|legend|li|link|map|mark|meta|meter|nav|noframes|noscript|object|ol|optgroup|option|output|p|param|pre|progress|q|rp|rt|ruby|samp|script|section|select|small|span|strike|strong|style|sub|sup|table|tbody|td|textarea|tfoot|th|thead|time|title|tr|tt|ul|var|video)\\b",relevance:0},{begin:":(visited|valid|root|right|required|read-write|read-only|out-range|optional|only-of-type|only-child|nth-of-type|nth-last-of-type|nth-last-child|nth-child|not|link|left|last-of-type|last-child|lang|invalid|indeterminate|in-range|hover|focus|first-of-type|first-line|first-letter|first-child|first|enabled|empty|disabled|default|checked|before|after|active)"},{begin:"::(after|before|choices|first-letter|first-line|repeat-index|repeat-item|selection|value)"},t,{className:"attribute",begin:"\\b(z-index|word-wrap|word-spacing|word-break|width|widows|white-space|visibility|vertical-align|unicode-bidi|transition-timing-function|transition-property|transition-duration|transition-delay|transition|transform-style|transform-origin|transform|top|text-underline-position|text-transform|text-shadow|text-rendering|text-overflow|text-indent|text-decoration-style|text-decoration-line|text-decoration-color|text-decoration|text-align-last|text-align|tab-size|table-layout|right|resize|quotes|position|pointer-events|perspective-origin|perspective|page-break-inside|page-break-before|page-break-after|padding-top|padding-right|padding-left|padding-bottom|padding|overflow-y|overflow-x|overflow-wrap|overflow|outline-width|outline-style|outline-offset|outline-color|outline|orphans|order|opacity|object-position|object-fit|normal|none|nav-up|nav-right|nav-left|nav-index|nav-down|min-width|min-height|max-width|max-height|mask|marks|margin-top|margin-right|margin-left|margin-bottom|margin|list-style-type|list-style-position|list-style-image|list-style|line-height|letter-spacing|left|justify-content|initial|inherit|ime-mode|image-orientation|image-resolution|image-rendering|icon|hyphens|height|font-weight|font-variant-ligatures|font-variant|font-style|font-stretch|font-size-adjust|font-size|font-language-override|font-kerning|font-feature-settings|font-family|font|float|flex-wrap|flex-shrink|flex-grow|flex-flow|flex-direction|flex-basis|flex|filter|empty-cells|display|direction|cursor|counter-reset|counter-increment|content|column-width|column-span|column-rule-width|column-rule-style|column-rule-color|column-rule|column-gap|column-fill|column-count|columns|color|clip-path|clip|clear|caption-side|break-inside|break-before|break-after|box-sizing|box-shadow|box-decoration-break|bottom|border-width|border-top-width|border-top-style|border-top-right-radius|border-top-left-radius|border-top-color|border-top|border-style|border-spacing|border-right-width|border-right-style|border-right-color|border-right|border-radius|border-left-width|border-left-style|border-left-color|border-left|border-image-width|border-image-source|border-image-slice|border-image-repeat|border-image-outset|border-image|border-color|border-collapse|border-bottom-width|border-bottom-style|border-bottom-right-radius|border-bottom-left-radius|border-bottom-color|border-bottom|border|background-size|background-repeat|background-position|background-origin|background-image|background-color|background-clip|background-attachment|background-blend-mode|background|backface-visibility|auto|animation-timing-function|animation-play-state|animation-name|animation-iteration-count|animation-fill-mode|animation-duration|animation-direction|animation-delay|animation|align-self|align-items|align-content)\\b",illegal:"[^\\s]"},{begin:"\\b(whitespace|wait|w-resize|visible|vertical-text|vertical-ideographic|uppercase|upper-roman|upper-alpha|underline|transparent|top|thin|thick|text|text-top|text-bottom|tb-rl|table-header-group|table-footer-group|sw-resize|super|strict|static|square|solid|small-caps|separate|se-resize|scroll|s-resize|rtl|row-resize|ridge|right|repeat|repeat-y|repeat-x|relative|progress|pointer|overline|outside|outset|oblique|nowrap|not-allowed|normal|none|nw-resize|no-repeat|no-drop|newspaper|ne-resize|n-resize|move|middle|medium|ltr|lr-tb|lowercase|lower-roman|lower-alpha|loose|list-item|line|line-through|line-edge|lighter|left|keep-all|justify|italic|inter-word|inter-ideograph|inside|inset|inline|inline-block|inherit|inactive|ideograph-space|ideograph-parenthesis|ideograph-numeric|ideograph-alpha|horizontal|hidden|help|hand|groove|fixed|ellipsis|e-resize|double|dotted|distribute|distribute-space|distribute-letter|distribute-all-lines|disc|disabled|default|decimal|dashed|crosshair|collapse|col-resize|circle|char|center|capitalize|break-word|break-all|bottom|both|bolder|bold|block|bidi-override|below|baseline|auto|always|all-scroll|absolute|table|table-cell)\\b"},{begin:":",end:";",contains:[t,n,e.CSS_NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{className:"meta",begin:"!important"}]},{begin:"@",end:"[{;]",keywords:"mixin include extend for if else each while charset import debug media page content font-face namespace warn",contains:[t,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,n,e.CSS_NUMBER_MODE,{begin:"\\s[A-Za-z0-9_.-]+",relevance:0}]}]}}},function(e,t){e.exports=function(e){var t="[A-Za-z$_][0-9A-Za-z$_]*",n={keyword:"in of if for while finally var new function do return void else break catch instanceof with throw case default try this switch continue typeof delete let yield const export super debugger as async await static import from as",literal:"true false null undefined NaN Infinity",built_in:"eval isFinite isNaN parseFloat parseInt decodeURI decodeURIComponent encodeURI encodeURIComponent escape unescape Object Function Boolean Error EvalError InternalError RangeError ReferenceError StopIteration SyntaxError TypeError URIError Number Math Date String RegExp Array Float32Array Float64Array Int16Array Int32Array Int8Array Uint16Array Uint32Array Uint8Array Uint8ClampedArray ArrayBuffer DataView JSON Intl arguments require module console window document Symbol Set Map WeakSet WeakMap Proxy Reflect Promise"},r={className:"number",variants:[{begin:"\\b(0[bB][01]+)"},{begin:"\\b(0[oO][0-7]+)"},{begin:e.C_NUMBER_RE}],relevance:0},o={className:"subst",begin:"\\$\\{",end:"\\}",keywords:n,contains:[]},i={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,o]};o.contains=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,i,r,e.REGEXP_MODE];var a=o.contains.concat([e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]);return{aliases:["js","jsx"],keywords:n,contains:[{className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},{className:"meta",begin:/^#!/,end:/$/},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,i,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,r,{begin:/[{,]\s*/,relevance:0,contains:[{begin:t+"\\s*:",returnBegin:!0,relevance:0,contains:[{className:"attr",begin:t,relevance:0}]}]},{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.REGEXP_MODE,{className:"function",begin:"(\\(.*?\\)|"+t+")\\s*=>",returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:t},{begin:/\(\s*\)/},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:n,contains:a}]}]},{className:"",begin:/\s/,end:/\s*/,skip:!0},{begin://,subLanguage:"xml",contains:[{begin:/<[A-Za-z0-9\\._:-]+\s*\/>/,skip:!0},{begin:/<[A-Za-z0-9\\._:-]+/,end:/(\/[A-Za-z0-9\\._:-]+|[A-Za-z0-9\\._:-]+\/)>/,skip:!0,contains:[{begin:/<[A-Za-z0-9\\._:-]+\s*\/>/,skip:!0},"self"]}]}],relevance:0},{className:"function",beginKeywords:"function",end:/\{/,excludeEnd:!0,contains:[e.inherit(e.TITLE_MODE,{begin:t}),{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,contains:a}],illegal:/\[|%/},{begin:/\$[(.]/},e.METHOD_GUARD,{className:"class",beginKeywords:"class",end:/[{;=]/,excludeEnd:!0,illegal:/[:"\[\]]/,contains:[{beginKeywords:"extends"},e.UNDERSCORE_TITLE_MODE]},{beginKeywords:"constructor get set",end:/\{/,excludeEnd:!0}],illegal:/#(?!!)/}}},function(e,t){e.exports=function(e){var t={keyword:"in if for while finally var new function do return void else break catch instanceof with throw case default try this switch continue typeof delete let yield const class public private protected get set super static implements enum export import declare type namespace abstract as from extends async await",literal:"true false null undefined NaN Infinity",built_in:"eval isFinite isNaN parseFloat parseInt decodeURI decodeURIComponent encodeURI encodeURIComponent escape unescape Object Function Boolean Error EvalError InternalError RangeError ReferenceError StopIteration SyntaxError TypeError URIError Number Math Date String RegExp Array Float32Array Float64Array Int16Array Int32Array Int8Array Uint16Array Uint32Array Uint8Array Uint8ClampedArray ArrayBuffer DataView JSON Intl arguments require module console window document any number boolean string void Promise"},n={className:"meta",begin:"@[A-Za-z$_][0-9A-Za-z$_]*"},r={begin:"\\(",end:/\)/,keywords:t,contains:["self",e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,e.NUMBER_MODE]},o={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:t,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,n,r]};return{aliases:["ts"],keywords:t,contains:[{className:"meta",begin:/^\s*['"]use strict['"]/},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,{className:"subst",begin:"\\$\\{",end:"\\}"}]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"number",variants:[{begin:"\\b(0[bB][01]+)"},{begin:"\\b(0[oO][0-7]+)"},{begin:e.C_NUMBER_RE}],relevance:0},{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.REGEXP_MODE,{className:"function",begin:"(\\(.*?\\)|"+e.IDENT_RE+")\\s*=>",returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:e.IDENT_RE},{begin:/\(\s*\)/},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:t,contains:["self",e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]}]}]}],relevance:0},{className:"function",begin:"function",end:/[\{;]/,excludeEnd:!0,keywords:t,contains:["self",e.inherit(e.TITLE_MODE,{begin:"[A-Za-z$_][0-9A-Za-z$_]*"}),o],illegal:/%/,relevance:0},{beginKeywords:"constructor",end:/\{/,excludeEnd:!0,contains:["self",o]},{begin:/module\./,keywords:{built_in:"module"},relevance:0},{beginKeywords:"module",end:/\{/,excludeEnd:!0},{beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:"interface extends"},{begin:/\$[(.]/},{begin:"\\."+e.IDENT_RE,relevance:0},n,r]}}},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){e.addEventListener("keydown",(function(e){if(e.ctrlKey||e.metaKey||e.altKey||e.shiftKey){if((e.ctrlKey||e.metaKey)&&!e.altKey&&!e.shiftKey)switch(e.keyCode){case 90:e.preventDefault(),t("undo");break;case 89:e.preventDefault(),t("redo");break;case 83:e.preventDefault(),t("save")}}else switch(e.keyCode){case 9:e.preventDefault(),t("tab")}}))}},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};t.__esModule=!0;var a=i(n(0)),l=function(e){function t(t){var n=e.call(this,t)||this;return n.state={imgHidden:!0,imgList:[]},n}return o(t,e),t.prototype.onClick=function(e){this.props.onClick(e)},t.prototype.imgClick=function(){this.setState({imgHidden:!this.state.imgHidden})},t.prototype.imgMouseOver=function(){window.clearTimeout(this.timer),this.setState({imgHidden:!1})},t.prototype.imgMouseOut=function(){var e=this;this.timer=window.setTimeout((function(){e.setState({imgHidden:!0})}),150)},t.prototype.addImgUrl=function(){this.props.onClick("img")},t.prototype.addImgFile=function(e){var t=this.state.imgList,n=t.length;t.push(e.target.files[0]),this.setState({imgList:t}),this.props.addImg(e.target.files[0],n),e.target.value=""},t.prototype.render=function(){var e=this,t=this.props,n=t.toolbar,r=t.words,o=this.state.imgHidden;return a.createElement("ul",null,n.undo&&a.createElement("li",{onClick:function(){return e.onClick("undo")},title:r.undo+" (ctrl+z)"},a.createElement("i",{className:"foricon for-undo"})),n.redo&&a.createElement("li",{onClick:function(){return e.onClick("redo")},title:r.redo+" (ctrl+y)"},a.createElement("i",{className:"foricon for-redo"})),n.h1&&a.createElement("li",{onClick:function(){return e.onClick("h1")},title:r.h1},"H1"),n.h2&&a.createElement("li",{onClick:function(){return e.onClick("h2")},title:r.h2},"H2"),n.h3&&a.createElement("li",{onClick:function(){return e.onClick("h3")},title:r.h3},"H3"),n.h4&&a.createElement("li",{onClick:function(){return e.onClick("h4")},title:r.h4},"H4"),n.img&&a.createElement("li",{className:"for-toolbar-img",onMouseOver:function(){return e.imgMouseOver()},onMouseOut:function(){return e.imgMouseOut()}},a.createElement("i",{className:"foricon for-image"}),a.createElement("ul",{style:o?{display:"none"}:{}},a.createElement("li",{onClick:function(){return e.addImgUrl()}},r.addImgLink),a.createElement("li",null,r.addImg,a.createElement("input",{type:"file",accept:"image/gif,image/jpeg,image/jpg,image/png,image/svg",onChange:function(t){return e.addImgFile(t)}})))),n.link&&a.createElement("li",{onClick:function(){return e.onClick("link")},title:r.link},a.createElement("i",{className:"foricon for-link"})),n.code&&a.createElement("li",{onClick:function(){return e.onClick("code")},title:r.code},a.createElement("i",{className:"foricon for-code"})),n.save&&a.createElement("li",{onClick:function(){return e.onClick("save")},title:r.save+" (ctrl+s)"},a.createElement("i",{className:"foricon for-save"})))},t.defaultProps={onClick:function(){},toolbar:{},words:{}},t}(a.Component);t.default=l},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};t.__esModule=!0;var l=i(n(0)),u=a(n(3)),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.onClick=function(e){this.props.onClick(e)},t.prototype.render=function(){var e=this,t=this.props,n=t.preview,r=t.expand,o=t.subfield,i=t.toolbar,a=t.words,s=u.default({"for-active":n}),c=u.default({"for-active":r}),f=u.default({"for-active":o});return l.createElement("ul",null,i.expand&&l.createElement("li",{className:c,onClick:function(){return e.onClick("expand")},title:c?a.fullscreenOff:a.fullscreenOn},c?l.createElement("i",{className:"foricon for-contract"}):l.createElement("i",{className:"foricon for-expand"})),i.preview&&l.createElement("li",{className:s,onClick:function(){return e.onClick("preview")},title:a.preview},s?l.createElement("i",{className:"foricon for-eye-off"}):l.createElement("i",{className:"foricon for-eye"})),i.subfield&&l.createElement("li",{className:f,onClick:function(){return e.onClick("subfield")},title:f?a.singleColumn:a.doubleColumn},l.createElement("i",{className:"foricon for-subfield"})))},t.defaultProps={onClick:function(){},toolbars:{},words:{}},t}(l.Component);t.default=s},function(e,t,n){"use strict";t.__esModule=!0,t.insertText=function(e,t){var n=t.prefix,r=t.str,o=void 0===r?"":r,i=t.subfix,a=void 0===i?"":i,l=e.value;if(e.selectionStart||0===e.selectionStart){var u=e.selectionStart,s=e.selectionEnd,c=e.scrollTop;u===s?(e.value=l.substring(0,u)+n+o+a+l.substring(s,l.length),e.selectionStart=u+n.length,e.selectionEnd=s+n.length+o.length):(e.value=l.substring(0,u)+n+l.substring(u,s)+a+l.substring(s,l.length),e.selectionStart=u+n.length,e.selectionEnd=s+n.length),e.focus(),c>=0&&(e.scrollTop=c)}return e.value}},function(e,t,n){var r=n(24);"string"==typeof r&&(r=[[e.i,r,""]]),n(2)(r,{hmr:!0,transform:void 0,insertInto:void 0}),r.locals&&(e.exports=r.locals)},function(e,t,n){(e.exports=n(1)(!1)).push([e.i,"/* http://jmblog.github.com/color-themes-for-google-code-highlightjs */\n\n/* Tomorrow Comment */\n.hljs-comment,\n.hljs-quote {\n color: #8e908c;\n}\n\n/* Tomorrow Red */\n.hljs-variable,\n.hljs-template-variable,\n.hljs-tag,\n.hljs-name,\n.hljs-selector-id,\n.hljs-selector-class,\n.hljs-regexp,\n.hljs-deletion {\n color: #c82829;\n}\n\n/* Tomorrow Orange */\n.hljs-number,\n.hljs-built_in,\n.hljs-builtin-name,\n.hljs-literal,\n.hljs-type,\n.hljs-params,\n.hljs-meta,\n.hljs-link {\n color: #f5871f;\n}\n\n/* Tomorrow Yellow */\n.hljs-attribute {\n color: #eab700;\n}\n\n/* Tomorrow Green */\n.hljs-string,\n.hljs-symbol,\n.hljs-bullet,\n.hljs-addition {\n color: #718c00;\n}\n\n/* Tomorrow Blue */\n.hljs-title,\n.hljs-section {\n color: #4271ae;\n}\n\n/* Tomorrow Purple */\n.hljs-keyword,\n.hljs-selector-tag {\n color: #8959a8;\n}\n\n.hljs {\n display: block;\n overflow-x: auto;\n background: white;\n color: #4d4d4c;\n padding: 0.5em;\n}\n\n.hljs-emphasis {\n font-style: italic;\n}\n\n.hljs-strong {\n font-weight: bold;\n}\n",""])},function(e,t){e.exports=function(e){var t="undefined"!=typeof window&&window.location;if(!t)throw new Error("fixUrls requires window.location");if(!e||"string"!=typeof e)return e;var n=t.protocol+"//"+t.host,r=n+t.pathname.replace(/\/[^\/]*$/,"/");return e.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,(function(e,t){var o,i=t.trim().replace(/^"(.*)"$/,(function(e,t){return t})).replace(/^'(.*)'$/,(function(e,t){return t}));return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(i)?e:(o=0===i.indexOf("//")?i:0===i.indexOf("/")?n+i:r+i.replace(/^\.\//,""),"url("+JSON.stringify(o)+")")}))}},function(e,t,n){var r=n(27);"string"==typeof r&&(r=[[e.i,r,""]]),n(2)(r,{hmr:!0,transform:void 0,insertInto:void 0}),r.locals&&(e.exports=r.locals)},function(e,t,n){t=e.exports=n(1)(!1);var r=n(28),o=r(n(4)),i=r(n(4)+"#iefix"),a=r(n(29)),l=r(n(30)),u=r(n(31)+"#foricon");t.push([e.i,'@font-face {font-family: "foricon";\n src: url('+o+"); /* IE9 */\n src: url("+i+") format('embedded-opentype'), \n url('data:application/x-font-woff2;charset=utf-8;base64,d09GMgABAAAAAAiYAAsAAAAAEKwAAAhKAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHEIGVgCECgqTEI8pATYCJAM0CxwABCAFhGEHgQgb4Q2jopRu9sj+IsE2lvbwQSEYAzUIDVc+fN1ilSTZf3ZUbnJocJqIh//2+98+M3NF/0fUmunqJEIRD43EIpEgxN8JiYiHpKF4KJDe5VxtAY3K+PZI3iMqVJhLNy2nn24PFGj5yvD846b94P0JUAkJVZkYzCTMlO2FZE47N3oeTjm480jroXU6c2FiGrchXq82lhAo7AS5xIq3b779XN2Nd6hHnWV6+XfTs203xPQjYiERNSQ8ingVbYRMKpRCKQl4vjE1L2vqzkLL0a+QscB230ygt13EuH5++wC+IqJBm8d5ysFXUhRDWGidtebEIl4CR5ueqw4DL8qfj78m4ZNUWXTgjbtnCRz+YHeaqDcK5znXAIu7LIw3I+MoUMbiodZ9GyyWEZY+x3baTAtdfkhRwA/k5qvFqJOsqFb/8hqtTm8wErWIjUxYUVJ/IJViyYmU4IaU4Y5U4IFUwROphhdSA2+kFj5IHXyRevghDXBhvTKvqdNmYC/I49z8ThR4W05S+ZeFpy0ThYMzZAuBmbDIyGgsOiEhMSEjI6+mOkWmRx5dxoTjBoMeajQe0Y/n8JzFRWcdGwkBkpW8xLiENNZpaVQFTRwMJqOMkkSMjB3OC+Mlih4D5umdPFvbEF+8NaOqzlqwhTVVbbZqCrdkmmu3xWuLto7meWjyi4RakkizIIASXFaf0XWu86jObvjpsYenOyd9mpFeEu4mtfRMmz2lI1Vw7Uk3GpAQxCtC6OcBcAKKqOiSimu9xOQ6MAhqD1+33ZTlFSdcO24CEbuNGlYqrsnToAvHd2e3YDFeagAaIKVlTXY1YNM5NgBAEMjJ1+iZJLoohKdxJkaJ35SfZU5SUSrxCRbkRKHdZhJ5xg4HdNQvsTi6ynS4+niCqvREGzQg4PLpHL7Q4nRZz7Hqoq3j9d9zNuRxum6//2+93lVNWKmhlpRQtHpDo/pYoZpEpWKirGvoYFtChH6cx/GqjKocuu4054kzgZqwxUunh876yaH50kyBZBsOBd6Wwy1Xn6WuCuchUbOxcShOrKkqsJR2QerPtBFQsnZddm0TtuGcd57n6xIeQ2UeI66FdK4DwNdBzB+qTw9B6NtyddlwTtukgTQK9eB1VOFAECwdAzfPIiCvoqesKRAT6/j5e7xFvmGiCcMneA43EeRbDL8K5NW8wvGovzXFhDkMMm7lFv11nGWhQEpkp0XdKL88ngmvZoFznZiq8TMV46ddte2GqhKr61izpqrqbKYgz0sR7FLMdLkKf4ZDu7iD9iIzjBrMjGmN0jhbRNpGG7RvWxvfyA5tG9Ng2s0Ldmi/uVZrC9kibEfkwo6EBKFb127dEIRN3+f2z9xqa41mZJ3bjPTP6zWrtXZ61ffrpVu1HpI5qtq2MSbeJue72Tc/3y7b4XZol0tVcnOdTyemjS5pfU4xl98FlPJF4Hhg9nf51vyxs/YX/K36W3sxNHBkPjll8PiLwV+POsH06cCp6e1299YcHjkYi3brvH0HxQ6hqFf/DuprNehxZ2sQ3leMKRjowzBmn+L7dz2kmfAVpdbWv3s/n1DI+f170tkblmCe+SRsXqE1V7S3lKkQy+pQogcBRaezZLfvgkwYNWXecCuFGAyVmvmtliWkRqRmF3PM11Yb9NO05dQmJjdpYyvQGUxrVSqHP4RN5dQ0ba6+WjvfsTShlcG2NL77fG2VLpdSDbfOyx8/CunSLidTqwPBbT9yLgMwuLhB+kJd68z+9ilz5CGGXkcbjUEGczCqJzB9FGhxRhX8lfP2aNOpl4/uRNt9v9f/c+n5PzAi+Do1XTpgwC5k1ZomR+yeJZqgjBrmPHvpPLM+8UUXupI0gEkeEBqY7BqQfNn7Y1gTj10+8qUHvv33P1zb1T1c9MP3PXp17FXQs1OPnj5f6J+Lz/+FnPw67XFxx/7i3i77o0AhlWQLos9SV66OciUPBMlKiufT/6N7p7eWSnqRzj9Nnny5eUx7U7RRNkYZgSnKRFa0iQoaDSdlji95p/vwxeQwU2aHabvREabCDiOYc7sEewoR9Mny6/IX7Dr2RUaWP0FL7t/zkM+IxY40zWYIqqAl9x54iGekd0mJTIv0RpWKpajnwb2SBvS6BVSWIvAp9t6UDR2a8QeWlKr9NFh4M6iA5W9/IwHp2bvv4M08Op/0zC4Oz37406nThlFsXkD3bjoUdzLMF3/prOovDTsws+J0SJtOm6aj6ZhWoXwox5SXuYBJo9Hjup5Df5jTydvFWHoCt/IZylTWVES2pyXRYP0P2+anqkkAi7Alq1PUsDdJ1inWRg3YjRJ+yLlsfkph0CxBZG3VyMDxGQwifUX993Anz6TaH93m3dc++i9yxvc/eXZQsgjbwE1xK4loOMR//SzCCWVli1Knshi71OwgcfKEW5XQx+UsQFSw2td5xDoxzkmjWMYgwa0gwz2gwMO6yuCUrtY4r+sdcbL5YI2GJUpHK7FFF2avQIKvQYafQIGfdZX1/km9gv91vZvhXXCwP17CE42cMGGzFcuFamTipjCjetD6DtO+4npiLeKeUHd5GRsPRrX6C2xQtz+gm6cTIsmkVjU7792SsKoUa7UqUNAgI2qnw6HUHToQqobQNRriKDdNMDOr5DlBacgcEu5cur/ZHZTqVfh4CP0QStgTJN0EszhmbGBkBheskQx5DZ07c6kJirMklhLdr6sx51elQKpxjcK0elIMmgtkIGtR1ZoaxlNJKRucV9ShvQB60QdOkSJHiSrqaKKNLvoYYowpZuWWStDJa56ihSt0cdnyJrE1Jsrum+xw56NXhHaVN6Xd8Tn6L0tFmgvyhEfESkpPqKqvmw4AAA==') format('woff2'),\n url("+a+") format('woff'),\n url("+l+") format('truetype'), \n url("+u+') format(\'svg\'); /* iOS 4.1- */\n}\n\n.foricon {\n font-family: "foricon" !important;\n font-size: inherit;\n font-style: normal;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.for-code:before {\n content: "\\e620";\n}\n\n.for-image:before {\n content: "\\e621";\n}\n\n.for-eye:before {\n content: "\\e622";\n}\n\n.for-expand:before {\n content: "\\e623";\n}\n\n.for-redo:before {\n content: "\\e624";\n}\n\n.for-undo:before {\n content: "\\e625";\n}\n\n.for-quote:before {\n content: "\\e626";\n}\n\n.for-link:before {\n content: "\\e627";\n}\n\n.for-save:before {\n content: "\\e628";\n}\n\n.for-contract:before {\n content: "\\e629";\n}\n\n.for-eye-off:before {\n content: "\\e62a";\n}\n\n.for-subfield:before {\n content: "\\e62b";\n}\n\n',""])},function(e,t,n){"use strict";e.exports=function(e,t){return"string"!=typeof e?e:(/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),/["'() \t\n]/.test(e)||t?'"'+e.replace(/"/g,'\\"').replace(/\n/g,"\\n")+'"':e)}},function(e,t,n){e.exports=n.p+"static/fonts/iconfont.fe07082d.woff"},function(e,t,n){e.exports=n.p+"static/fonts/iconfont.a614fc0f.ttf"},function(e,t,n){e.exports=n.p+"static/fonts/iconfont.35e220a6.svg"},function(e,t,n){var r=n(33);"string"==typeof r&&(r=[[e.i,r,""]]),n(2)(r,{hmr:!0,transform:void 0,insertInto:void 0}),r.locals&&(e.exports=r.locals)},function(e,t,n){(e.exports=n(1)(!1)).push([e.i,".for-container {\n font-family: 'Source Sans Pro', 'Helvetica Neue', Arial, sans-serif;\n display: flex;\n flex-direction: column;\n height: 600px;\n border: 1px solid #ddd;\n border-radius: 8px;\n box-shadow: rgba(0, 0, 0, 0.1) 0px 0px 12px;\n background: #fff;\n font-size: 14px; }\n .for-container ul,\n .for-container ol,\n .for-container li {\n margin: 0;\n padding: 0; }\n .for-container.for-fullscreen {\n position: fixed;\n z-index: 99999;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n height: 100% !important; }\n .for-container > div:first-child {\n border-top-left-radius: 8px;\n border-top-right-radius: 8px; }\n .for-container .for-hidden {\n display: none; }\n .for-container .for-toolbar {\n font-family: 'Source Sans Pro', 'Helvetica Neue', Arial, sans-serif;\n display: flex;\n justify-content: space-between;\n padding: 0 6px;\n border-bottom: 1px solid #ddd;\n color: #555;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none; }\n .for-container .for-toolbar > ul {\n display: flex; }\n .for-container .for-toolbar > ul > li {\n display: flex;\n align-items: center;\n padding: 4px 6px;\n margin: 8px 4px;\n border-radius: 4px;\n line-height: normal; }\n .for-container .for-toolbar > ul > li.for-toolbar-img {\n position: relative; }\n .for-container .for-toolbar > ul > li.for-toolbar-img > ul {\n position: absolute;\n top: 100%;\n left: -50px;\n width: 140px;\n margin-top: 4px;\n background: #fff;\n border-radius: 4px;\n box-shadow: rgba(0, 0, 0, 0.1) 0 2px 8px 0;\n z-index: 99;\n line-height: 2.8;\n text-align: center; }\n .for-container .for-toolbar > ul > li.for-toolbar-img > ul li {\n position: relative; }\n .for-container .for-toolbar > ul > li.for-toolbar-img > ul li:hover {\n background: #e9e9e9; }\n .for-container .for-toolbar > ul > li.for-toolbar-img > ul li:first-child {\n border-radius: 4px 4px 0 0; }\n .for-container .for-toolbar > ul > li.for-toolbar-img > ul li:last-child {\n border-radius: 0 0 4px 4px; }\n .for-container .for-toolbar > ul > li.for-toolbar-img > ul li input {\n position: absolute;\n width: 100%;\n opacity: 0;\n left: 0;\n top: 0;\n bottom: 0;\n cursor: pointer; }\n .for-container .for-toolbar > ul > li.for-active {\n background: #ddd; }\n .for-container .for-toolbar > ul > li:hover {\n cursor: pointer;\n background: #e9e9e9; }\n .for-container .for-toolbar > ul > li i {\n font-size: 1.2em; }\n .for-container .for-editor {\n display: flex;\n justify-content: space-between;\n height: 100%;\n color: #2c3e50;\n border-radius: 0 0 8px 8px;\n overflow: hidden; }\n .for-container .for-editor .for-panel {\n height: 100%;\n flex: 0 0 100%;\n overflow: auto;\n transition: all 0.2s linear 0s; }\n .for-container .for-editor .for-panel.for-active {\n flex: 0 0 50%; }\n .for-container .for-editor .for-panel .for-preview {\n min-height: 100%;\n box-sizing: border-box;\n padding: 10px 14px;\n background: #fcfcfc; }\n .for-container .for-editor .for-editor-edit {\n line-height: 1.6;\n height: 100%; }\n .for-container .for-editor .for-editor-edit.for-edit-preview {\n width: 0;\n flex: 0 0 0; }\n .for-container .for-editor .for-editor-edit .for-editor-block {\n display: flex;\n min-height: 100%; }\n .for-container .for-editor .for-editor-edit .for-line-num {\n list-style: none;\n background: #eee;\n padding: 8px 0 120px;\n min-width: 30px;\n text-align: center; }\n .for-container .for-editor .for-editor-edit .for-line-num.hidden {\n display: none; }\n .for-container .for-editor .for-editor-edit .for-line-num li {\n list-style: none; }\n .for-container .for-editor .for-editor-edit .for-editor-content {\n flex: 1;\n position: relative;\n height: 100%;\n margin-left: 10px; }\n .for-container .for-editor .for-editor-edit .for-editor-content pre {\n padding: 8px 0;\n display: block;\n white-space: pre-wrap;\n word-wrap: break-word;\n visibility: hidden;\n margin: 0;\n font-family: inherit; }\n .for-container textarea {\n font-family: 'Consolas', 'Source Sans Pro', 'Helvetica Neue', Arial, sans-serif;\n box-sizing: border-box;\n position: absolute;\n top: 0;\n bottom: 0;\n padding: 8px 0;\n display: block;\n height: 100%;\n width: 100%;\n overflow: hidden;\n resize: none;\n border: none;\n outline: none;\n font-size: inherit;\n color: inherit;\n background: none;\n line-height: inherit; }\n .for-container .for-markdown-preview {\n line-height: 2; }\n .for-container .for-markdown-preview p,\n .for-container .for-markdown-preview blockquote,\n .for-container .for-markdown-preview ul,\n .for-container .for-markdown-preview ol,\n .for-container .for-markdown-preview dl,\n .for-container .for-markdown-preview pre {\n margin-top: 0;\n margin-bottom: 0.6em; }\n .for-container .for-markdown-preview h1,\n .for-container .for-markdown-preview h2 {\n border-bottom: 1px solid #e2e2e2; }\n .for-container .for-markdown-preview h1,\n .for-container .for-markdown-preview h2,\n .for-container .for-markdown-preview h3,\n .for-container .for-markdown-preview h4,\n .for-container .for-markdown-preview h5,\n .for-container .for-markdown-preview h6 {\n padding: 0;\n margin: 0 0 0.6em;\n font-weight: 600;\n text-indent: 0; }\n .for-container .for-markdown-preview h1:target,\n .for-container .for-markdown-preview h2:target,\n .for-container .for-markdown-preview h3:target,\n .for-container .for-markdown-preview h4:target,\n .for-container .for-markdown-preview h5:target,\n .for-container .for-markdown-preview h6:target {\n padding-top: 4.5rem; }\n .for-container .for-markdown-preview a {\n color: #0366d6;\n text-decoration: none; }\n .for-container .for-markdown-preview a:hover {\n text-decoration: underline; }\n .for-container .for-markdown-preview ul,\n .for-container .for-markdown-preview ol {\n padding: 0.2em 0.8em; }\n .for-container .for-markdown-preview ul > li,\n .for-container .for-markdown-preview ol > li {\n line-height: 2;\n padding-left: 0.2em;\n margin-left: 0.2em;\n list-style-type: disc; }\n .for-container .for-markdown-preview ul > li > p,\n .for-container .for-markdown-preview ol > li > p {\n text-indent: 0; }\n .for-container .for-markdown-preview ul > li > ul:last-child,\n .for-container .for-markdown-preview ol > li > ul:last-child {\n margin-bottom: 0; }\n .for-container .for-markdown-preview ul > li > ul li,\n .for-container .for-markdown-preview ol > li > ul li {\n list-style-type: circle; }\n .for-container .for-markdown-preview ul > li > ul li > ul li,\n .for-container .for-markdown-preview ol > li > ul li > ul li {\n list-style-type: square; }\n .for-container .for-markdown-preview > ul,\n .for-container .for-markdown-preview ol {\n padding: 0 20px; }\n .for-container .for-markdown-preview ol > li {\n list-style-type: decimal; }\n .for-container .for-markdown-preview blockquote {\n margin: 0;\n margin-bottom: 0.6em;\n padding: 0 1em;\n color: #6a737d;\n border-left: 0.25em solid #dfe2e5; }\n .for-container .for-markdown-preview blockquote p {\n text-indent: 0; }\n .for-container .for-markdown-preview blockquote p:first-child {\n margin-top: 0; }\n .for-container .for-markdown-preview blockquote p:last-child {\n margin-bottom: 0; }\n .for-container .for-markdown-preview pre {\n padding: 0.6em;\n overflow: auto;\n line-height: 1.6;\n background-color: #f0f0f0;\n border-radius: 3px; }\n .for-container .for-markdown-preview pre code {\n padding: 0;\n margin: 0;\n font-size: 100%;\n background: transparent; }\n .for-container .for-markdown-preview code {\n padding: 0.2em 0.4em;\n margin: 0;\n background-color: #f0f0f0;\n border-radius: 3px; }\n .for-container .for-markdown-preview hr {\n margin-bottom: 0.6em;\n height: 1px;\n background: #dadada;\n border: none; }\n .for-container .for-markdown-preview table {\n width: 100%;\n border: 1px solid #ddd;\n margin-bottom: 0.6em;\n border-collapse: collapse;\n text-align: left; }\n .for-container .for-markdown-preview table thead {\n background: #eee; }\n .for-container .for-markdown-preview table th,\n .for-container .for-markdown-preview table td {\n padding: 0.1em 0.4em;\n border: 1px solid #ddd; }\n .for-container .for-markdown-preview img {\n display: block;\n margin: 0 auto;\n max-width: 100%;\n margin-bottom: 0.6em; }\n",""])},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};t.__esModule=!0;var o=r(n(35)),i=r(n(36));t.CONFIG={language:{"zh-CN":o.default,en:i.default},langList:["zh-CN","en"],toolbar:{h1:!0,h2:!0,h3:!0,h4:!0,img:!0,link:!0,code:!0,preview:!0,expand:!0,undo:!0,redo:!0,save:!0,subfield:!0}}},function(e){e.exports=JSON.parse('{"placeholder":"开始编辑...","undo":"上一步","redo":"下一步","h1":"一级标题","h2":"二级标题","h3":"三级标题","h4":"四级标题","img":"添加图片链接","link":"链接","code":"代码块","save":"保存","preview":"预览","singleColumn":"单栏","doubleColumn":"双栏","fullscreenOn":"全屏编辑","fullscreenOff":"退出全屏","addImgLink":"添加图片链接","addImg":"上传图片"}')},function(e){e.exports=JSON.parse('{"placeholder":"Begin editing...","undo":"Undo","redo":"Redo","h1":"Header 1","h2":"Header 2","h3":"Header 3","h4":"Header 4","img":"Image Link","link":"Link","code":"Code","save":"Save","preview":"Preview","singleColumn":"Single Column","doubleColumn":"Double Columns","fullscreenOn":"FullScreen ON","fullscreenOff":"FullScreen OFF","addImgLink":"Add Image Link","addImg":"Upload Image"}')}])},,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,o.default)(e),parseInt(e,t||10)};var r,o=(r=n(797))&&r.__esModule?r:{default:r};e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,o.default)(e),t)return"1"===e||/^true$/i.test(e);return"0"!==e&&!/^false$/i.test(e)&&""!==e};var r,o=(r=n(797))&&r.__esModule?r:{default:r};e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,o.default)(e),e===t};var r,o=(r=n(797))&&r.__esModule?r:{default:r};e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){if((0,r.default)(e),(n=(0,i.default)(n,l)).ignoreCase)return e.toLowerCase().split((0,o.default)(t).toLowerCase()).length>n.minOccurrences;return e.split((0,o.default)(t)).length>n.minOccurrences};var r=a(n(797)),o=a(n(1591)),i=a(n(882));function a(e){return e&&e.__esModule?e:{default:e}}var l={ignoreCase:!1,minOccurrences:1};e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){(0,o.default)(e),"[object RegExp]"!==Object.prototype.toString.call(t)&&(t=new RegExp(t,n));return!!e.match(t)};var r,o=(r=n(797))&&r.__esModule?r:{default:r};e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,r.default)(e),!e||/[\s<>]/.test(e))return!1;if(0===e.indexOf("mailto:"))return!1;if((t=(0,a.default)(t,s)).validate_length&&e.length>=2083)return!1;if(!t.allow_fragments&&e.includes("#"))return!1;if(!t.allow_query_components&&(e.includes("?")||e.includes("&")))return!1;var n,l,d,p,h,v,g,y;if(g=e.split("#"),e=g.shift(),g=e.split("?"),e=g.shift(),(g=e.split("://")).length>1){if(n=g.shift().toLowerCase(),t.require_valid_protocol&&-1===t.protocols.indexOf(n))return!1}else{if(t.require_protocol)return!1;if("//"===e.slice(0,2)){if(!t.allow_protocol_relative_urls)return!1;g[0]=e.slice(2)}}if(""===(e=g.join("://")))return!1;if(g=e.split("/"),""===(e=g.shift())&&!t.require_host)return!0;if((g=e.split("@")).length>1){if(t.disallow_auth)return!1;if(""===g[0])return!1;if((l=g.shift()).indexOf(":")>=0&&l.split(":").length>2)return!1;var m=l.split(":"),b=(C=2,function(e){if(Array.isArray(e))return e}(_=m)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==l.return||l.return()}finally{if(o)throw i}}return n}}(_,C)||function(e,t){if(e){if("string"==typeof e)return u(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(e,t):void 0}}(_,C)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),x=b[0],w=b[1];if(""===x&&""===w)return!1}var _,C;p=g.join("@"),v=null,y=null;var O=p.match(c);O?(d="",y=O[1],v=O[2]||null):(g=p.split(":"),d=g.shift(),g.length&&(v=g.join(":")));if(null!==v&&v.length>0){if(h=parseInt(v,10),!/^[0-9]+$/.test(v)||h<=0||h>65535)return!1}else if(t.require_port)return!1;if(t.host_whitelist)return f(d,t.host_whitelist);if(""===d&&!t.require_host)return!0;if(!((0,i.default)(d)||(0,o.default)(d,t)||y&&(0,i.default)(y,6)))return!1;if(d=d||y,t.host_blacklist&&f(d,t.host_blacklist))return!1;return!0};var r=l(n(797)),o=l(n(1327)),i=l(n(1177)),a=l(n(882));function l(e){return e&&e.__esModule?e:{default:e}}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:"";(0,r.default)(e);var n=e.split("/");if(2!==n.length)return!1;if(!a.test(n[1]))return!1;if(n[1].length>1&&n[1].startsWith("0"))return!1;var i=(0,o.default)(n[0],t);if(!i)return!1;var l=null;switch(String(t)){case"4":l=32;break;case"6":l=128;break;default:l=(0,o.default)(n[0],"6")?128:32}return n[1]<=l&&n[1]>=0};var r=i(n(797)),o=i(n(1177));function i(e){return e&&e.__esModule?e:{default:e}}var a=/^\d{1,3}$/;e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return t=(0,o.default)(t,i),"string"==typeof e&&a[t.hourFormat][t.mode].test(e)};var r,o=(r=n(882))&&r.__esModule?r:{default:r};var i={hourFormat:"hour24",mode:"default"},a={hour24:{default:/^([01]?[0-9]|2[0-3]):([0-5][0-9])$/,withSeconds:/^([01]?[0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9])$/},hour12:{default:/^(0?[1-9]|1[0-2]):([0-5][0-9]) (A|P)M$/,withSeconds:/^(0?[1-9]|1[0-2]):([0-5][0-9]):([0-5][0-9]) (A|P)M$/}};e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i;if((0,o.default)(e),t.loose)return l.includes(e.toLowerCase());return a.includes(e)};var r,o=(r=n(797))&&r.__esModule?r:{default:r};var i={loose:!1},a=["true","false","1","0"],l=[].concat(a,["yes","no"]);e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,o.default)(e),s.test(e)};var r,o=(r=n(797))&&r.__esModule?r:{default:r};var i="(([a-zA-Z]{2,3}(-".concat("([A-Za-z]{3}(-[A-Za-z]{3}){0,2})",")?)|([a-zA-Z]{5,8}))"),a="(".concat("(\\d|[A-W]|[Y-Z]|[a-w]|[y-z])","(-[A-Za-z0-9]{2,8})+)"),l="(".concat("((en-GB-oed)|(i-ami)|(i-bnn)|(i-default)|(i-enochian)|(i-hak)|(i-klingon)|(i-lux)|(i-mingo)|(i-navajo)|(i-pwn)|(i-tao)|(i-tay)|(i-tsu)|(sgn-BE-FR)|(sgn-BE-NL)|(sgn-CH-DE))","|").concat("((art-lojban)|(cel-gaulish)|(no-bok)|(no-nyn)|(zh-guoyu)|(zh-hakka)|(zh-min)|(zh-min-nan)|(zh-xiang))",")"),u="".concat(i,"(").concat("(-|_)").concat("([A-Za-z]{4})",")?(").concat("(-|_)").concat("([A-Za-z]{2}|\\d{3})",")?(").concat("(-|_)").concat("([A-Za-z0-9]{5,8}|(\\d[A-Z-a-z0-9]{3}))",")*(").concat("(-|_)").concat(a,")*(").concat("(-|_)").concat("(x(-[A-Za-z0-9]{1,8})+)",")?"),s=new RegExp("(^".concat("(x(-[A-Za-z0-9]{1,8})+)","$)|(^").concat(l,"$)|(^").concat(u,"$)"));e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en-US",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};(0,o.default)(e);var r=e,a=n.ignore;if(a)if(a instanceof RegExp)r=r.replace(a,"");else{if("string"!=typeof a)throw new Error("ignore should be instance of a String or RegExp");r=r.replace(new RegExp("[".concat(a.replace(/[-[\]{}()*+?.,\\^$|#\\s]/g,"\\$&"),"]"),"g"),"")}if(t in i.alpha)return i.alpha[t].test(r);throw new Error("Invalid locale '".concat(t,"'"))},t.locales=void 0;var r,o=(r=n(797))&&r.__esModule?r:{default:r},i=n(1106);var a=Object.keys(i.alpha);t.locales=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en-US",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};(0,o.default)(e);var r=e,a=n.ignore;if(a)if(a instanceof RegExp)r=r.replace(a,"");else{if("string"!=typeof a)throw new Error("ignore should be instance of a String or RegExp");r=r.replace(new RegExp("[".concat(a.replace(/[-[\]{}()*+?.,\\^$|#\\s]/g,"\\$&"),"]"),"g"),"")}if(t in i.alphanumeric)return i.alphanumeric[t].test(r);throw new Error("Invalid locale '".concat(t,"'"))},t.locales=void 0;var r,o=(r=n(797))&&r.__esModule?r:{default:r},i=n(1106);var a=Object.keys(i.alphanumeric);t.locales=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,o.default)(e),t&&t.no_symbols)return a.test(e);return new RegExp("^[+-]?([0-9]*[".concat((t||{}).locale?i.decimal[t.locale]:".","])?[0-9]+$")).test(e)};var r,o=(r=n(797))&&r.__esModule?r:{default:r},i=n(1106);var a=/^[0-9]+$/;e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,o.default)(e);var n=e.replace(/\s/g,"").toUpperCase();return t.toUpperCase()in i&&i[t].test(n)};var r,o=(r=n(797))&&r.__esModule?r:{default:r};var i={AM:/^[A-Z]{2}\d{7}$/,AR:/^[A-Z]{3}\d{6}$/,AT:/^[A-Z]\d{7}$/,AU:/^[A-Z]\d{7}$/,AZ:/^[A-Z]{2,3}\d{7,8}$/,BE:/^[A-Z]{2}\d{6}$/,BG:/^\d{9}$/,BR:/^[A-Z]{2}\d{6}$/,BY:/^[A-Z]{2}\d{7}$/,CA:/^[A-Z]{2}\d{6}$/,CH:/^[A-Z]\d{7}$/,CN:/^G\d{8}$|^E(?![IO])[A-Z0-9]\d{7}$/,CY:/^[A-Z](\d{6}|\d{8})$/,CZ:/^\d{8}$/,DE:/^[CFGHJKLMNPRTVWXYZ0-9]{9}$/,DK:/^\d{9}$/,DZ:/^\d{9}$/,EE:/^([A-Z]\d{7}|[A-Z]{2}\d{7})$/,ES:/^[A-Z0-9]{2}([A-Z0-9]?)\d{6}$/,FI:/^[A-Z]{2}\d{7}$/,FR:/^\d{2}[A-Z]{2}\d{5}$/,GB:/^\d{9}$/,GR:/^[A-Z]{2}\d{7}$/,HR:/^\d{9}$/,HU:/^[A-Z]{2}(\d{6}|\d{7})$/,IE:/^[A-Z0-9]{2}\d{7}$/,IN:/^[A-Z]{1}-?\d{7}$/,ID:/^[A-C]\d{7}$/,IR:/^[A-Z]\d{8}$/,IS:/^(A)\d{7}$/,IT:/^[A-Z0-9]{2}\d{7}$/,JM:/^[Aa]\d{7}$/,JP:/^[A-Z]{2}\d{7}$/,KR:/^[MS]\d{8}$/,KZ:/^[a-zA-Z]\d{7}$/,LI:/^[a-zA-Z]\d{5}$/,LT:/^[A-Z0-9]{8}$/,LU:/^[A-Z0-9]{8}$/,LV:/^[A-Z0-9]{2}\d{7}$/,LY:/^[A-Z0-9]{8}$/,MT:/^\d{7}$/,MZ:/^([A-Z]{2}\d{7})|(\d{2}[A-Z]{2}\d{5})$/,MY:/^[AHK]\d{8}$/,MX:/^\d{10,11}$/,NL:/^[A-Z]{2}[A-Z0-9]{6}\d$/,NZ:/^([Ll]([Aa]|[Dd]|[Ff]|[Hh])|[Ee]([Aa]|[Pp])|[Nn])\d{6}$/,PH:/^([A-Z](\d{6}|\d{7}[A-Z]))|([A-Z]{2}(\d{6}|\d{7}))$/,PK:/^[A-Z]{2}\d{7}$/,PL:/^[A-Z]{2}\d{7}$/,PT:/^[A-Z]\d{6}$/,RO:/^\d{8,9}$/,RU:/^\d{9}$/,SE:/^\d{8}$/,SL:/^(P)[A-Z]\d{7}$/,SK:/^[0-9A-Z]\d{7}$/,TH:/^[A-Z]{1,2}\d{6,7}$/,TR:/^[A-Z]\d{8}$/,UA:/^[A-Z]{2}\d{6}$/,US:/^\d{9}$/};e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,o.default)(e,{min:0,max:65535})};var r,o=(r=n(1328))&&r.__esModule?r:{default:r};e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,o.default)(e),e===e.toLowerCase()};var r,o=(r=n(797))&&r.__esModule?r:{default:r};e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,o.default)(e),e===e.toUpperCase()};var r,o=(r=n(797))&&r.__esModule?r:{default:r};e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,o.default)(e);var n=i;(t=t||{}).allow_hyphens&&(n=a);if(!n.test(e))return!1;e=e.replace(/-/g,"");for(var r=0,l=2,u=0;u<14;u++){var s=e.substring(14-u-1,14-u),c=parseInt(s,10)*l;r+=c>=10?c%10+1:c,1===l?l+=1:l-=1}if((10-r%10)%10!==parseInt(e.substring(14,15),10))return!1;return!0};var r,o=(r=n(797))&&r.__esModule?r:{default:r};var i=/^[0-9]{15}$/,a=/^\d{2}-\d{6}-\d{6}-\d{1}$/;e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,o.default)(e),i.test(e)};var r,o=(r=n(797))&&r.__esModule?r:{default:r};var i=/^[\x00-\x7F]+$/;e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,o.default)(e),i.fullWidth.test(e)&&a.halfWidth.test(e)};var r,o=(r=n(797))&&r.__esModule?r:{default:r},i=n(1595),a=n(1596);e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,o.default)(e),i.test(e)};var r,o=(r=n(797))&&r.__esModule?r:{default:r};var i=/[^\x00-\x7F]/;e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.default)(e),i.test(e)};var r=o(n(797));function o(e){return e&&e.__esModule?e:{default:e}}var i=(0,o(n(2541)).default)(["^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)","(?:-((?:0|[1-9]\\d*|\\d*[a-z-][0-9a-z-]*)(?:\\.(?:0|[1-9]\\d*|\\d*[a-z-][0-9a-z-]*))*))","?(?:\\+([0-9a-z-]+(?:\\.[0-9a-z-]+)*))?$"],"i");e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=e.join("");return new RegExp(n,t)},e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,o.default)(e),i.test(e)};var r,o=(r=n(797))&&r.__esModule?r:{default:r};var i=/[\uD800-\uDBFF][\uDC00-\uDFFF]/;e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,o.default)(e),(t=(0,r.default)(t,u)).locale in a.decimal)return!(0,i.default)(s,e.replace(/ /g,""))&&function(e){return new RegExp("^[-+]?([0-9]+)?(\\".concat(a.decimal[e.locale],"[0-9]{").concat(e.decimal_digits,"})").concat(e.force_decimal?"":"?","$"))}(t).test(e);throw new Error("Invalid locale '".concat(t.locale,"'"))};var r=l(n(882)),o=l(n(797)),i=l(n(2544)),a=n(1106);function l(e){return e&&e.__esModule?e:{default:e}}var u={force_decimal:!1,decimal_digits:"1,",locale:"en-US"},s=["","-","+"];e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e,t){return e.some((function(e){return t===e}))};t.default=r,e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,o.default)(e),i.test(e)};var r,o=(r=n(797))&&r.__esModule?r:{default:r};var i=/^(0o)?[0-7]+$/i;e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,r.default)(e),(0,o.default)(e)%parseInt(t,10)==0};var r=i(n(797)),o=i(n(1589));function i(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,o.default)(e),i.test(e)};var r,o=(r=n(797))&&r.__esModule?r:{default:r};var i=/^#?([0-9A-F]{3}|[0-9A-F]{4}|[0-9A-F]{6}|[0-9A-F]{8})$/i;e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if((0,o.default)(e),!t)return i.test(e)||a.test(e);return i.test(e)||a.test(e)||l.test(e)||u.test(e)};var r,o=(r=n(797))&&r.__esModule?r:{default:r};var i=/^rgb\((([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]),){2}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\)$/,a=/^rgba\((([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]),){3}(0?\.\d|1(\.0)?|0(\.0)?)\)$/,l=/^rgb\((([0-9]%|[1-9][0-9]%|100%),){2}([0-9]%|[1-9][0-9]%|100%)\)$/,u=/^rgba\((([0-9]%|[1-9][0-9]%|100%),){3}(0?\.\d|1(\.0)?|0(\.0)?)\)$/;e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,o.default)(e);var t=e.replace(/\s+/g," ").replace(/\s?(hsla?\(|\)|,)\s?/gi,"$1");if(-1!==t.indexOf(","))return i.test(t);return a.test(t)};var r,o=(r=n(797))&&r.__esModule?r:{default:r};var i=/^hsla?\(((\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?))(deg|grad|rad|turn)?(,(\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?)%){2}(,((\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?)%?))?\)$/i,a=/^hsla?\(((\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?))(deg|grad|rad|turn)?(\s(\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?)%){2}\s?(\/\s((\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?)%?)\s?)?\)$/i;e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,o.default)(e),i.test(e)};var r,o=(r=n(797))&&r.__esModule?r:{default:r};var i=/^[A-Z]{2}[0-9A-Z]{3}\d{2}\d{5}$/;e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,o.default)(e),a(e,t)&&l(e)},t.locales=void 0;var r,o=(r=n(797))&&r.__esModule?r:{default:r};var i={AD:/^(AD[0-9]{2})\d{8}[A-Z0-9]{12}$/,AE:/^(AE[0-9]{2})\d{3}\d{16}$/,AL:/^(AL[0-9]{2})\d{8}[A-Z0-9]{16}$/,AT:/^(AT[0-9]{2})\d{16}$/,AZ:/^(AZ[0-9]{2})[A-Z0-9]{4}\d{20}$/,BA:/^(BA[0-9]{2})\d{16}$/,BE:/^(BE[0-9]{2})\d{12}$/,BG:/^(BG[0-9]{2})[A-Z]{4}\d{6}[A-Z0-9]{8}$/,BH:/^(BH[0-9]{2})[A-Z]{4}[A-Z0-9]{14}$/,BR:/^(BR[0-9]{2})\d{23}[A-Z]{1}[A-Z0-9]{1}$/,BY:/^(BY[0-9]{2})[A-Z0-9]{4}\d{20}$/,CH:/^(CH[0-9]{2})\d{5}[A-Z0-9]{12}$/,CR:/^(CR[0-9]{2})\d{18}$/,CY:/^(CY[0-9]{2})\d{8}[A-Z0-9]{16}$/,CZ:/^(CZ[0-9]{2})\d{20}$/,DE:/^(DE[0-9]{2})\d{18}$/,DK:/^(DK[0-9]{2})\d{14}$/,DO:/^(DO[0-9]{2})[A-Z]{4}\d{20}$/,EE:/^(EE[0-9]{2})\d{16}$/,EG:/^(EG[0-9]{2})\d{25}$/,ES:/^(ES[0-9]{2})\d{20}$/,FI:/^(FI[0-9]{2})\d{14}$/,FO:/^(FO[0-9]{2})\d{14}$/,FR:/^(FR[0-9]{2})\d{10}[A-Z0-9]{11}\d{2}$/,GB:/^(GB[0-9]{2})[A-Z]{4}\d{14}$/,GE:/^(GE[0-9]{2})[A-Z0-9]{2}\d{16}$/,GI:/^(GI[0-9]{2})[A-Z]{4}[A-Z0-9]{15}$/,GL:/^(GL[0-9]{2})\d{14}$/,GR:/^(GR[0-9]{2})\d{7}[A-Z0-9]{16}$/,GT:/^(GT[0-9]{2})[A-Z0-9]{4}[A-Z0-9]{20}$/,HR:/^(HR[0-9]{2})\d{17}$/,HU:/^(HU[0-9]{2})\d{24}$/,IE:/^(IE[0-9]{2})[A-Z0-9]{4}\d{14}$/,IL:/^(IL[0-9]{2})\d{19}$/,IQ:/^(IQ[0-9]{2})[A-Z]{4}\d{15}$/,IR:/^(IR[0-9]{2})0\d{2}0\d{18}$/,IS:/^(IS[0-9]{2})\d{22}$/,IT:/^(IT[0-9]{2})[A-Z]{1}\d{10}[A-Z0-9]{12}$/,JO:/^(JO[0-9]{2})[A-Z]{4}\d{22}$/,KW:/^(KW[0-9]{2})[A-Z]{4}[A-Z0-9]{22}$/,KZ:/^(KZ[0-9]{2})\d{3}[A-Z0-9]{13}$/,LB:/^(LB[0-9]{2})\d{4}[A-Z0-9]{20}$/,LC:/^(LC[0-9]{2})[A-Z]{4}[A-Z0-9]{24}$/,LI:/^(LI[0-9]{2})\d{5}[A-Z0-9]{12}$/,LT:/^(LT[0-9]{2})\d{16}$/,LU:/^(LU[0-9]{2})\d{3}[A-Z0-9]{13}$/,LV:/^(LV[0-9]{2})[A-Z]{4}[A-Z0-9]{13}$/,MA:/^(MA[0-9]{26})$/,MC:/^(MC[0-9]{2})\d{10}[A-Z0-9]{11}\d{2}$/,MD:/^(MD[0-9]{2})[A-Z0-9]{20}$/,ME:/^(ME[0-9]{2})\d{18}$/,MK:/^(MK[0-9]{2})\d{3}[A-Z0-9]{10}\d{2}$/,MR:/^(MR[0-9]{2})\d{23}$/,MT:/^(MT[0-9]{2})[A-Z]{4}\d{5}[A-Z0-9]{18}$/,MU:/^(MU[0-9]{2})[A-Z]{4}\d{19}[A-Z]{3}$/,MZ:/^(MZ[0-9]{2})\d{21}$/,NL:/^(NL[0-9]{2})[A-Z]{4}\d{10}$/,NO:/^(NO[0-9]{2})\d{11}$/,PK:/^(PK[0-9]{2})[A-Z0-9]{4}\d{16}$/,PL:/^(PL[0-9]{2})\d{24}$/,PS:/^(PS[0-9]{2})[A-Z0-9]{4}\d{21}$/,PT:/^(PT[0-9]{2})\d{21}$/,QA:/^(QA[0-9]{2})[A-Z]{4}[A-Z0-9]{21}$/,RO:/^(RO[0-9]{2})[A-Z]{4}[A-Z0-9]{16}$/,RS:/^(RS[0-9]{2})\d{18}$/,SA:/^(SA[0-9]{2})\d{2}[A-Z0-9]{18}$/,SC:/^(SC[0-9]{2})[A-Z]{4}\d{20}[A-Z]{3}$/,SE:/^(SE[0-9]{2})\d{20}$/,SI:/^(SI[0-9]{2})\d{15}$/,SK:/^(SK[0-9]{2})\d{20}$/,SM:/^(SM[0-9]{2})[A-Z]{1}\d{10}[A-Z0-9]{12}$/,SV:/^(SV[0-9]{2})[A-Z0-9]{4}\d{20}$/,TL:/^(TL[0-9]{2})\d{19}$/,TN:/^(TN[0-9]{2})\d{20}$/,TR:/^(TR[0-9]{2})\d{5}[A-Z0-9]{17}$/,UA:/^(UA[0-9]{2})\d{6}[A-Z0-9]{19}$/,VA:/^(VA[0-9]{2})\d{18}$/,VG:/^(VG[0-9]{2})[A-Z0-9]{4}\d{16}$/,XK:/^(XK[0-9]{2})\d{16}$/};function a(e,t){var n=e.replace(/[\s\-]+/gi,"").toUpperCase(),r=n.slice(0,2).toUpperCase(),o=r in i;if(t.whitelist){if(t.whitelist.filter((function(e){return!(e in i)})).length>0)return!1;if(!t.whitelist.includes(r))return!1}if(t.blacklist&&t.blacklist.includes(r))return!1;return o&&i[r].test(n)}function l(e){var t=e.replace(/[^A-Z0-9]+/gi,"").toUpperCase();return 1===(t.slice(4)+t.slice(0,4)).replace(/[A-Z]/g,(function(e){return e.charCodeAt(0)-55})).match(/\d{1,7}/g).reduce((function(e,t){return Number(e+t)%97}),"")}var u=Object.keys(i);t.locales=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,o.default)(e);var t=e.slice(4,6).toUpperCase();if(!i.CountryCodes.has(t)&&"XK"!==t)return!1;return a.test(e)};var r,o=(r=n(797))&&r.__esModule?r:{default:r},i=n(1598);var a=/^[A-Za-z]{6}[A-Za-z0-9]{2}([A-Za-z0-9]{3})?$/;e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,o.default)(e),i.test(e)};var r,o=(r=n(797))&&r.__esModule?r:{default:r};var i=/^[a-f0-9]{32}$/;e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,o.default)(e),new RegExp("^[a-fA-F0-9]{".concat(i[t],"}$")).test(e)};var r,o=(r=n(797))&&r.__esModule?r:{default:r};var i={md5:32,md4:32,sha1:40,sha256:64,sha384:96,sha512:128,ripemd128:32,ripemd160:40,tiger128:32,tiger160:40,tiger192:48,crc32:8,crc32b:8};e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,r.default)(e);var t=e.split(".");if(3!==t.length)return!1;return t.reduce((function(e,t){return e&&(0,o.default)(t,{urlSafe:!0})}),!0)};var r=i(n(797)),o=i(n(1599));function i(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,r.default)(e);try{t=(0,o.default)(t,l);var n=[];t.allow_primitives&&(n=[null,!1,!0]);var i=JSON.parse(e);return n.includes(i)||!!i&&"object"===a(i)}catch(e){}return!1};var r=i(n(797)),o=i(n(882));function i(e){return e&&e.__esModule?e:{default:e}}function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var l={allow_primitives:!1};e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,r.default)(e),0===((t=(0,o.default)(t,a)).ignore_whitespace?e.trim().length:e.length)};var r=i(n(797)),o=i(n(882));function i(e){return e&&e.__esModule?e:{default:e}}var a={ignore_whitespace:!1};e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n,r;(0,o.default)(e),"object"===i(t)?(n=t.min||0,r=t.max):(n=arguments[1]||0,r=arguments[2]);var a=e.match(/(\uFE0F|\uFE0E)/g)||[],l=e.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g)||[],u=e.length-a.length-l.length;return u>=n&&(void 0===r||u<=r)};var r,o=(r=n(797))&&r.__esModule?r:{default:r};function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,o.default)(e);var n=i[[void 0,null].includes(t)?"all":t];return!!n&&n.test(e)};var r,o=(r=n(797))&&r.__esModule?r:{default:r};var i={1:/^[0-9A-F]{8}-[0-9A-F]{4}-1[0-9A-F]{3}-[0-9A-F]{4}-[0-9A-F]{12}$/i,2:/^[0-9A-F]{8}-[0-9A-F]{4}-2[0-9A-F]{3}-[0-9A-F]{4}-[0-9A-F]{12}$/i,3:/^[0-9A-F]{8}-[0-9A-F]{4}-3[0-9A-F]{3}-[0-9A-F]{4}-[0-9A-F]{12}$/i,4:/^[0-9A-F]{8}-[0-9A-F]{4}-4[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,5:/^[0-9A-F]{8}-[0-9A-F]{4}-5[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,all:/^[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}$/i};e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.default)(e),(0,o.default)(e)&&24===e.length};var r=i(n(797)),o=i(n(1597));function i(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=(null==t?void 0:t.comparisonDate)||t||Date().toString(),r=(0,o.default)(n),i=(0,o.default)(e);return!!(i&&r&&i>r)};var r,o=(r=n(1326))&&r.__esModule?r:{default:r};e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:String(new Date);(0,r.default)(e);var n=(0,o.default)(t),i=(0,o.default)(e);return!!(i&&n&&i=0}if("object"===a(t))return t.hasOwnProperty(e);if(t&&"function"==typeof t.indexOf)return t.indexOf(e)>=0;return!1};var r=i(n(797)),o=i(n(1591));function i(e){return e&&e.__esModule?e:{default:e}}function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,r.default)(e);var n=t.provider,i=e.replace(/[- ]+/g,"");if(n&&n.toLowerCase()in a){if(!a[n.toLowerCase()].test(i))return!1}else{if(n&&!(n.toLowerCase()in a))throw new Error("".concat(n," is not a valid credit card provider."));if(!l.some((function(e){return e.test(i)})))return!1}return(0,o.default)(e)};var r=i(n(797)),o=i(n(1600));function i(e){return e&&e.__esModule?e:{default:e}}var a={amex:/^3[47][0-9]{13}$/,dinersclub:/^3(?:0[0-5]|[68][0-9])[0-9]{11}$/,discover:/^6(?:011|5[0-9][0-9])[0-9]{12,15}$/,jcb:/^(?:2131|1800|35\d{3})\d{11}$/,mastercard:/^5[1-5][0-9]{2}|(222[1-9]|22[3-9][0-9]|2[3-6][0-9]{2}|27[01][0-9]|2720)[0-9]{12}$/,unionpay:/^(6[27][0-9]{14}|^(81[0-9]{14,17}))$/,visa:/^(?:4[0-9]{12})(?:[0-9]{3,6})?$/},l=function(){var e=[];for(var t in a)a.hasOwnProperty(t)&&e.push(a[t]);return e}();e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,r.default)(e),t in a)return a[t](e);if("any"===t){for(var n in a){if(a.hasOwnProperty(n))if((0,a[n])(e))return!0}return!1}throw new Error("Invalid locale '".concat(t,"'"))};var r=i(n(797)),o=i(n(1328));function i(e){return e&&e.__esModule?e:{default:e}}var a={PL:function(e){(0,r.default)(e);var t={1:1,2:3,3:7,4:9,5:1,6:3,7:7,8:9,9:1,10:3,11:0};if(null!=e&&11===e.length&&(0,o.default)(e,{allow_leading_zeroes:!0})){var n=e.split("").slice(0,-1).reduce((function(e,n,r){return e+Number(n)*t[r+1]}),0)%10,i=Number(e.charAt(e.length-1));if(0===n&&0===i||i===10-n)return!0}return!1},ES:function(e){(0,r.default)(e);var t={X:0,Y:1,Z:2},n=e.trim().toUpperCase();if(!/^[0-9X-Z][0-9]{7}[TRWAGMYFPDXBNJZSQVHLCKE]$/.test(n))return!1;var o=n.slice(0,-1).replace(/[X,Y,Z]/g,(function(e){return t[e]}));return n.endsWith(["T","R","W","A","G","M","Y","F","P","D","X","B","N","J","Z","S","Q","V","H","L","C","K","E"][o%23])},FI:function(e){if((0,r.default)(e),11!==e.length)return!1;if(!e.match(/^\d{6}[\-A\+]\d{3}[0-9ABCDEFHJKLMNPRSTUVWXY]{1}$/))return!1;return"0123456789ABCDEFHJKLMNPRSTUVWXY"[(1e3*parseInt(e.slice(0,6),10)+parseInt(e.slice(7,10),10))%31]===e.slice(10,11)},IN:function(e){var t=[[0,1,2,3,4,5,6,7,8,9],[1,2,3,4,0,6,7,8,9,5],[2,3,4,0,1,7,8,9,5,6],[3,4,0,1,2,8,9,5,6,7],[4,0,1,2,3,9,5,6,7,8],[5,9,8,7,6,0,4,3,2,1],[6,5,9,8,7,1,0,4,3,2],[7,6,5,9,8,2,1,0,4,3],[8,7,6,5,9,3,2,1,0,4],[9,8,7,6,5,4,3,2,1,0]],n=[[0,1,2,3,4,5,6,7,8,9],[1,5,7,6,2,8,3,0,9,4],[5,8,0,3,7,9,6,1,4,2],[8,9,1,6,0,4,3,5,2,7],[9,4,5,3,1,2,6,8,7,0],[4,2,8,6,5,7,3,9,0,1],[2,7,9,3,8,0,6,4,1,5],[7,0,4,6,9,1,3,2,5,8]],r=e.trim();if(!/^[1-9]\d{3}\s?\d{4}\s?\d{4}$/.test(r))return!1;var o=0;return r.replace(/\s/g,"").split("").map(Number).reverse().forEach((function(e,r){o=t[o][n[r%8][e]]})),0===o},IR:function(e){if(!e.match(/^\d{10}$/))return!1;if(e="0000".concat(e).slice(e.length-6),0===parseInt(e.slice(3,9),10))return!1;for(var t=parseInt(e.slice(9,10),10),n=0,r=0;r<9;r++)n+=parseInt(e.slice(r,r+1),10)*(10-r);return(n%=11)<2&&t===n||n>=2&&t===11-n},IT:function(e){return 9===e.length&&("CA00000AA"!==e&&e.search(/C[A-Z][0-9]{5}[A-Z]{2}/i)>-1)},NO:function(e){var t=e.trim();if(isNaN(Number(t)))return!1;if(11!==t.length)return!1;if("00000000000"===t)return!1;var n=t.split("").map(Number),r=(11-(3*n[0]+7*n[1]+6*n[2]+1*n[3]+8*n[4]+9*n[5]+4*n[6]+5*n[7]+2*n[8])%11)%11,o=(11-(5*n[0]+4*n[1]+3*n[2]+2*n[3]+7*n[4]+6*n[5]+5*n[6]+4*n[7]+3*n[8]+2*r)%11)%11;return r===n[9]&&o===n[10]},TH:function(e){if(!e.match(/^[1-8]\d{12}$/))return!1;for(var t=0,n=0;n<12;n++)t+=parseInt(e[n],10)*(13-n);return e[12]===((11-t%11)%10).toString()},LK:function(e){return!(10!==e.length||!/^[1-9]\d{8}[vx]$/i.test(e))||!(12!==e.length||!/^[1-9]\d{11}$/i.test(e))},"he-IL":function(e){var t=e.trim();if(!/^\d{9}$/.test(t))return!1;for(var n,r=t,o=0,i=0;i9?n-9:n;return o%10==0},"ar-LY":function(e){var t=e.trim();return!!/^(1|2)\d{11}$/.test(t)},"ar-TN":function(e){var t=e.trim();return!!/^\d{8}$/.test(t)},"zh-CN":function(e){var t,n=["11","12","13","14","15","21","22","23","31","32","33","34","35","36","37","41","42","43","44","45","46","50","51","52","53","54","61","62","63","64","65","71","81","82","91"],r=["7","9","10","5","8","4","2","1","6","3","7","9","10","5","8","4","2"],o=["1","0","X","9","8","7","6","5","4","3","2"],i=function(e){return n.includes(e)},a=function(e){var t=parseInt(e.substring(0,4),10),n=parseInt(e.substring(4,6),10),r=parseInt(e.substring(6),10),o=new Date(t,n-1,r);return!(o>new Date)&&(o.getFullYear()===t&&o.getMonth()===n-1&&o.getDate()===r)},l=function(e){return function(e){for(var t=e.substring(0,17),n=0,i=0;i<17;i++)n+=parseInt(t.charAt(i),10)*parseInt(r[i],10);return o[n%11]}(e)===e.charAt(17).toUpperCase()};return!!/^\d{15}|(\d{17}(\d|x|X))$/.test(t=e)&&(15===t.length?function(e){var t=/^[1-9]\d{7}((0[1-9])|(1[0-2]))((0[1-9])|([1-2][0-9])|(3[0-1]))\d{3}$/.test(e);if(!t)return!1;var n=e.substring(0,2);if(!(t=i(n)))return!1;var r="19".concat(e.substring(6,12));return!!(t=a(r))}(t):function(e){var t=/^[1-9]\d{5}[1-9]\d{3}((0[1-9])|(1[0-2]))((0[1-9])|([1-2][0-9])|(3[0-1]))\d{3}(\d|x|X)$/.test(e);if(!t)return!1;var n=e.substring(0,2);if(!(t=i(n)))return!1;var r=e.substring(6,14);return!!(t=a(r))&&l(e)}(t))},"zh-HK":function(e){var t=/^[0-9]$/;if(e=(e=e.trim()).toUpperCase(),!/^[A-Z]{1,2}[0-9]{6}((\([0-9A]\))|(\[[0-9A]\])|([0-9A]))$/.test(e))return!1;8===(e=e.replace(/\[|\]|\(|\)/g,"")).length&&(e="3".concat(e));for(var n=0,r=0;r<=7;r++){n+=(t.test(e[r])?e[r]:(e[r].charCodeAt(0)-55)%11)*(9-r)}return(0===(n%=11)?"0":1===n?"A":String(11-n))===e[e.length-1]},"zh-TW":function(e){var t={A:10,B:11,C:12,D:13,E:14,F:15,G:16,H:17,I:34,J:18,K:19,L:20,M:21,N:22,O:35,P:23,Q:24,R:25,S:26,T:27,U:28,V:29,W:32,X:30,Y:31,Z:33},n=e.trim().toUpperCase();return!!/^[A-Z][0-9]{9}$/.test(n)&&Array.from(n).reduce((function(e,n,r){if(0===r){var o=t[n];return o%10*9+Math.floor(o/10)}return 9===r?(10-e%10-Number(n))%10==0:e+Number(n)*(9-r)}),0)}};e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,o.default)(e);var t=Number(e.slice(-1));return i.test(e)&&t===(n=e,r=10-n.slice(0,-1).split("").map((function(e,t){return Number(e)*function(e,t){return 8===e||14===e?t%2==0?3:1:t%2==0?1:3}(n.length,t)})).reduce((function(e,t){return e+t}),0)%10,r<10?r:0);var n,r};var r,o=(r=n(797))&&r.__esModule?r:{default:r};var i=/^(\d{8}|\d{13}|\d{14})$/;e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if((0,o.default)(e),!i.test(e))return!1;for(var t=!0,n=0,r=e.length-2;r>=0;r--)if(e[r]>="A"&&e[r]<="Z")for(var a=e[r].charCodeAt(0)-55,l=a%10,u=Math.trunc(a/10),s=0,c=[l,u];s=5?1+2*(f-5):2*f:f,t=!t}else{var d=e[r].charCodeAt(0)-"0".charCodeAt(0);n+=t?d>=5?1+2*(d-5):2*d:d,t=!t}var p=10*Math.trunc((n+9)/10)-n;return+e[e.length-1]===p};var r,o=(r=n(797))&&r.__esModule?r:{default:r};var i=/^[A-Z]{2}[0-9A-Z]{9}[0-9]$/;e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t,n){(0,o.default)(t);var r=String((null==n?void 0:n.version)||n);if(!(null!=n&&n.version||n))return e(t,{version:10})||e(t,{version:13});var u=t.replace(/[\s-]+/g,""),s=0;if("10"===r){if(!i.test(u))return!1;for(var c=0;c1&&void 0!==arguments[1]?arguments[1]:{};(0,o.default)(e);var n=i;if(n=t.require_hyphen?n.replace("?",""):n,!(n=t.case_sensitive?new RegExp(n):new RegExp(n,"i")).test(e))return!1;for(var r=e.replace("-","").toUpperCase(),a=0,l=0;l1&&void 0!==arguments[1]?arguments[1]:"en-US";(0,o.default)(e);var n=e.slice(0);if(t in p)return t in g&&(n=n.replace(g[t],"")),!!p[t].test(n)&&(!(t in h)||h[t](n));throw new Error("Invalid locale '".concat(t,"'"))};var o=u(n(797)),i=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var t=l();if(t&&t.has(e))return t.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}n.default=e,t&&t.set(e,n);return n}(n(1601)),a=u(n(1594));function l(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return l=function(){return e},e}function u(e){return e&&e.__esModule?e:{default:e}}function s(e){return function(e){if(Array.isArray(e))return c(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return c(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0){if(t&&!n&&!/[AEIOU]/.test(e[r]))return!1;if(n&&!/X/.test(e[r]))return!1}return!0}var p={"bg-BG":/^\d{10}$/,"cs-CZ":/^\d{6}\/{0,1}\d{3,4}$/,"de-AT":/^\d{9}$/,"de-DE":/^[1-9]\d{10}$/,"dk-DK":/^\d{6}-{0,1}\d{4}$/,"el-CY":/^[09]\d{7}[A-Z]$/,"el-GR":/^([0-4]|[7-9])\d{8}$/,"en-CA":/^\d{9}$/,"en-GB":/^\d{10}$|^(?!GB|NK|TN|ZZ)(?![DFIQUV])[A-Z](?![DFIQUVO])[A-Z]\d{6}[ABCD ]$/i,"en-IE":/^\d{7}[A-W][A-IW]{0,1}$/i,"en-US":/^\d{2}[- ]{0,1}\d{7}$/,"es-ES":/^(\d{0,8}|[XYZKLM]\d{7})[A-HJ-NP-TV-Z]$/i,"et-EE":/^[1-6]\d{6}(00[1-9]|0[1-9][0-9]|[1-6][0-9]{2}|70[0-9]|710)\d$/,"fi-FI":/^\d{6}[-+A]\d{3}[0-9A-FHJ-NPR-Y]$/i,"fr-BE":/^\d{11}$/,"fr-FR":/^[0-3]\d{12}$|^[0-3]\d\s\d{2}(\s\d{3}){3}$/,"fr-LU":/^\d{13}$/,"hr-HR":/^\d{11}$/,"hu-HU":/^8\d{9}$/,"it-IT":/^[A-Z]{6}[L-NP-V0-9]{2}[A-EHLMPRST][L-NP-V0-9]{2}[A-ILMZ][L-NP-V0-9]{3}[A-Z]$/i,"lv-LV":/^\d{6}-{0,1}\d{5}$/,"mt-MT":/^\d{3,7}[APMGLHBZ]$|^([1-8])\1\d{7}$/i,"nl-NL":/^\d{9}$/,"pl-PL":/^\d{10,11}$/,"pt-BR":/(?:^\d{11}$)|(?:^\d{14}$)/,"pt-PT":/^\d{9}$/,"ro-RO":/^\d{13}$/,"sk-SK":/^\d{6}\/{0,1}\d{3,4}$/,"sl-SI":/^[1-9]\d{7}$/,"sv-SE":/^(\d{6}[-+]{0,1}\d{4}|(18|19|20)\d{6}[-+]{0,1}\d{4})$/};p["lb-LU"]=p["fr-LU"],p["lt-LT"]=p["et-EE"],p["nl-BE"]=p["fr-BE"],p["fr-CA"]=p["en-CA"];var h={"bg-BG":function(e){var t=e.slice(0,2),n=parseInt(e.slice(2,4),10);n>40?(n-=40,t="20".concat(t)):n>20?(n-=20,t="18".concat(t)):t="19".concat(t),n<10&&(n="0".concat(n));var r="".concat(t,"/").concat(n,"/").concat(e.slice(4,6));if(!(0,a.default)(r,"YYYY/MM/DD"))return!1;for(var o=e.split("").map((function(e){return parseInt(e,10)})),i=[2,4,8,5,10,9,7,3,6],l=0,u=0;u50&&(n-=50),n>20){if(parseInt(t,10)<2004)return!1;n-=20}n<10&&(n="0".concat(n));var r="".concat(t,"/").concat(n,"/").concat(e.slice(4,6));if(!(0,a.default)(r,"YYYY/MM/DD"))return!1;if(10===e.length&&parseInt(e,10)%11!=0){var o=parseInt(e.slice(0,9),10)%11;if(!(parseInt(t,10)<1986&&10===o))return!1;if(0!==parseInt(e.slice(9),10))return!1}return!0},"de-AT":function(e){return i.luhnCheck(e)},"de-DE":function(e){for(var t=e.split("").map((function(e){return parseInt(e,10)})),n=[],r=0;r1}))).length&&3!==n.length)return!1;if(3===n[0].length){for(var a=n[0].split("").map((function(e){return parseInt(e,10)})),l=0,u=0;u58))return!1;t="18".concat(t)}}3===t.length&&(t=[t.slice(0,2),"0",t.slice(2)].join(""));var n="".concat(t,"/").concat(e.slice(2,4),"/").concat(e.slice(0,2));if(!(0,a.default)(n,"YYYY/MM/DD"))return!1;for(var r=e.split("").map((function(e){return parseInt(e,10)})),o=0,i=4,l=0;l<9;l++)o+=r[l]*i,1===(i-=1)&&(i=7);return 1!==(o%=11)&&(0===o?0===r[9]:r[9]===11-o)},"el-CY":function(e){for(var t=e.slice(0,8).split("").map((function(e){return parseInt(e,10)})),n=0,r=1;r4&&(n+=2));return String.fromCharCode(n%26+65)===e.charAt(8)},"el-GR":function(e){for(var t=e.split("").map((function(e){return parseInt(e,10)})),n=0,r=0;r<8;r++)n+=t[r]*Math.pow(2,8-r);return n%11%10===t[8]},"en-CA":function(e){var t=e.split(""),n=t.filter((function(e,t){return t%2})).map((function(e){return 2*Number(e)})).join("").split("");return t.filter((function(e,t){return!(t%2)})).concat(n).map((function(e){return Number(e)})).reduce((function(e,t){return e+t}))%10==0},"en-IE":function(e){var t=i.reverseMultiplyAndSum(e.split("").slice(0,7).map((function(e){return parseInt(e,10)})),8);return 9===e.length&&"W"!==e[8]&&(t+=9*(e[8].charCodeAt(0)-64)),0===(t%=23)?"W"===e[7].toUpperCase():e[7].toUpperCase()===String.fromCharCode(64+t)},"en-US":function(e){return-1!==function(){var e=[];for(var t in f)f.hasOwnProperty(t)&&e.push.apply(e,s(f[t]));return e}().indexOf(e.slice(0,2))},"es-ES":function(e){var t=e.toUpperCase().split("");if(isNaN(parseInt(t[0],10))&&t.length>1){var n=0;switch(t[0]){case"Y":n=1;break;case"Z":n=2}t.splice(0,1,n)}else for(;t.length<9;)t.unshift(0);t=t.join("");var r=parseInt(t.slice(0,8),10)%23;return t[8]===["T","R","W","A","G","M","Y","F","P","D","X","B","N","J","Z","S","Q","V","H","L","C","K","E"][r]},"et-EE":function(e){var t=e.slice(1,3);switch(e.slice(0,1)){case"1":case"2":t="18".concat(t);break;case"3":case"4":t="19".concat(t);break;default:t="20".concat(t)}var n="".concat(t,"/").concat(e.slice(3,5),"/").concat(e.slice(5,7));if(!(0,a.default)(n,"YYYY/MM/DD"))return!1;for(var r=e.split("").map((function(e){return parseInt(e,10)})),o=0,i=1,l=0;l<10;l++)o+=r[l]*i,10===(i+=1)&&(i=1);if(o%11==10){o=0,i=3;for(var u=0;u<10;u++)o+=r[u]*i,10===(i+=1)&&(i=1);if(o%11==10)return 0===r[10]}return o%11===r[10]},"fi-FI":function(e){var t=e.slice(4,6);switch(e.slice(6,7)){case"+":t="18".concat(t);break;case"-":t="19".concat(t);break;default:t="20".concat(t)}var n="".concat(t,"/").concat(e.slice(2,4),"/").concat(e.slice(0,2));if(!(0,a.default)(n,"YYYY/MM/DD"))return!1;var r=parseInt(e.slice(0,6)+e.slice(7,10),10)%31;return r<10?r===parseInt(e.slice(10),10):["A","B","C","D","E","F","H","J","K","L","M","N","P","R","S","T","U","V","W","X","Y"][r-=10]===e.slice(10)},"fr-BE":function(e){if("00"!==e.slice(2,4)||"00"!==e.slice(4,6)){var t="".concat(e.slice(0,2),"/").concat(e.slice(2,4),"/").concat(e.slice(4,6));if(!(0,a.default)(t,"YY/MM/DD"))return!1}var n=97-parseInt(e.slice(0,9),10)%97,r=parseInt(e.slice(9,11),10);return n===r||(n=97-parseInt("2".concat(e.slice(0,9)),10)%97)===r},"fr-FR":function(e){return e=e.replace(/\s/g,""),parseInt(e.slice(0,10),10)%511===parseInt(e.slice(10,13),10)},"fr-LU":function(e){var t="".concat(e.slice(0,4),"/").concat(e.slice(4,6),"/").concat(e.slice(6,8));return!!(0,a.default)(t,"YYYY/MM/DD")&&(!!i.luhnCheck(e.slice(0,12))&&i.verhoeffCheck("".concat(e.slice(0,11)).concat(e[12])))},"hr-HR":function(e){return i.iso7064Check(e)},"hu-HU":function(e){for(var t=e.split("").map((function(e){return parseInt(e,10)})),n=8,r=1;r<9;r++)n+=t[r]*(r+1);return n%11===t[9]},"it-IT":function(e){var t=e.toUpperCase().split("");if(!d(t.slice(0,3)))return!1;if(!d(t.slice(3,6)))return!1;for(var n={L:"0",M:"1",N:"2",P:"3",Q:"4",R:"5",S:"6",T:"7",U:"8",V:"9"},r=0,o=[6,7,9,10,12,13,14];r40&&(u-=40),u<10&&(u="0".concat(u));var s="".concat(t[6]).concat(t[7],"/").concat(l,"/").concat(u);if(!(0,a.default)(s,"YY/MM/DD"))return!1;for(var c=0,f=1;f4&&(g+=2)}c+=g}return String.fromCharCode(65+c%26)===t[15]},"lv-LV":function(e){var t=(e=e.replace(/\W/,"")).slice(0,2);if("32"!==t){if("00"!==e.slice(2,4)){var n=e.slice(4,6);switch(e[6]){case"0":n="18".concat(n);break;case"1":n="19".concat(n);break;default:n="20".concat(n)}var r="".concat(n,"/").concat(e.slice(2,4),"/").concat(t);if(!(0,a.default)(r,"YYYY/MM/DD"))return!1}for(var o=1101,i=[1,6,3,7,9,10,5,8,4,2],l=0;l32e3)return!1;if(n===parseInt(t.join("").slice(5,7),10))return!1}}return!0},"nl-NL":function(e){return i.reverseMultiplyAndSum(e.split("").slice(0,8).map((function(e){return parseInt(e,10)})),9)%11===parseInt(e[8],10)},"pl-PL":function(e){if(10===e.length){for(var t=[6,5,7,2,3,4,5,6,7],n=0,r=0;r80?(o="18".concat(o),i-=80):i>60?(o="22".concat(o),i-=60):i>40?(o="21".concat(o),i-=40):i>20?(o="20".concat(o),i-=20):o="19".concat(o),i<10&&(i="0".concat(i));var l="".concat(o,"/").concat(i,"/").concat(e.slice(4,6));if(!(0,a.default)(l,"YYYY/MM/DD"))return!1;for(var u=0,s=1,c=0;c10?s=1:5===s&&(s+=2);return(u=10-u%10)===parseInt(e[10],10)},"pt-BR":function(e){if(11===e.length){var t,n;if(t=0,"11111111111"===e||"22222222222"===e||"33333333333"===e||"44444444444"===e||"55555555555"===e||"66666666666"===e||"77777777777"===e||"88888888888"===e||"99999999999"===e||"00000000000"===e)return!1;for(var r=1;r<=9;r++)t+=parseInt(e.substring(r-1,r),10)*(11-r);if(10===(n=10*t%11)&&(n=0),n!==parseInt(e.substring(9,10),10))return!1;t=0;for(var o=1;o<=10;o++)t+=parseInt(e.substring(o-1,o),10)*(12-o);return 10===(n=10*t%11)&&(n=0),n===parseInt(e.substring(10,11),10)}if("00000000000000"===e||"11111111111111"===e||"22222222222222"===e||"33333333333333"===e||"44444444444444"===e||"55555555555555"===e||"66666666666666"===e||"77777777777777"===e||"88888888888888"===e||"99999999999999"===e)return!1;for(var i=e.length-2,a=e.substring(0,i),l=e.substring(i),u=0,s=i-7,c=i;c>=1;c--)u+=a.charAt(i-c)*s,(s-=1)<2&&(s=9);var f=u%11<2?0:11-u%11;if(f!==parseInt(l.charAt(0),10))return!1;i+=1,a=e.substring(0,i),u=0,s=i-7;for(var d=i;d>=1;d--)u+=a.charAt(i-d)*s,(s-=1)<2&&(s=9);return(f=u%11<2?0:11-u%11)===parseInt(l.charAt(1),10)},"pt-PT":function(e){var t=11-i.reverseMultiplyAndSum(e.split("").slice(0,8).map((function(e){return parseInt(e,10)})),9)%11;return t>9?0===parseInt(e[8],10):t===parseInt(e[8],10)},"ro-RO":function(e){if("9000"!==e.slice(0,4)){var t=e.slice(1,3);switch(e[0]){case"1":case"2":t="19".concat(t);break;case"3":case"4":t="18".concat(t);break;case"5":case"6":t="20".concat(t)}var n="".concat(t,"/").concat(e.slice(3,5),"/").concat(e.slice(5,7));if(8===n.length){if(!(0,a.default)(n,"YY/MM/DD"))return!1}else if(!(0,a.default)(n,"YYYY/MM/DD"))return!1;for(var r=e.split("").map((function(e){return parseInt(e,10)})),o=[2,7,9,1,4,6,3,5,8,2,7,9],i=0,l=0;l53)return!1;t=t<10?"190".concat(t):"19".concat(t);var n=parseInt(e.slice(2,4),10);n>50&&(n-=50),n<10&&(n="0".concat(n));var r="".concat(t,"/").concat(n,"/").concat(e.slice(4,6));if(!(0,a.default)(r,"YYYY/MM/DD"))return!1}return!0},"sl-SI":function(e){var t=11-i.reverseMultiplyAndSum(e.split("").slice(0,7).map((function(e){return parseInt(e,10)})),8)%11;return 10===t?0===parseInt(e[7],10):t===parseInt(e[7],10)},"sv-SE":function(e){var t=e.slice(0);e.length>11&&(t=t.slice(2));var n="",r=t.slice(2,4),o=parseInt(t.slice(4,6),10);if(e.length>11)n=e.slice(0,4);else if(n=e.slice(0,2),11===e.length&&o<60){var l=(new Date).getFullYear().toString(),u=parseInt(l.slice(0,2),10);if(l=parseInt(l,10),"-"===e[6])n=parseInt("".concat(u).concat(n),10)>l?"".concat(u-1).concat(n):"".concat(u).concat(n);else if(n="".concat(u-1).concat(n),l-parseInt(n,10)<100)return!1}o>60&&(o-=60),o<10&&(o="0".concat(o));var s="".concat(n,"/").concat(r,"/").concat(o);if(8===s.length){if(!(0,a.default)(s,"YY/MM/DD"))return!1}else if(!(0,a.default)(s,"YYYY/MM/DD"))return!1;return i.luhnCheck(e.replace(/\W/,""))}};h["lb-LU"]=h["fr-LU"],h["lt-LT"]=h["et-EE"],h["nl-BE"]=h["fr-BE"],h["fr-CA"]=h["en-CA"];var v=/[-\\\/!@#$%\^&\*\(\)\+\=\[\]]+/g,g={"de-AT":v,"de-DE":/[\/\\]/g,"fr-BE":v};g["nl-BE"]=g["fr-BE"],e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){if((0,o.default)(e),n&&n.strictMode&&!e.startsWith("+"))return!1;if(Array.isArray(t))return t.some((function(t){if(i.hasOwnProperty(t)&&i[t].test(e))return!0;return!1}));if(t in i)return i[t].test(e);if(!t||"any"===t){for(var r in i){if(i.hasOwnProperty(r))if(i[r].test(e))return!0}return!1}throw new Error("Invalid locale '".concat(t,"'"))},t.locales=void 0;var r,o=(r=n(797))&&r.__esModule?r:{default:r};var i={"am-AM":/^(\+?374|0)((10|[9|7][0-9])\d{6}$|[2-4]\d{7}$)/,"ar-AE":/^((\+?971)|0)?5[024568]\d{7}$/,"ar-BH":/^(\+?973)?(3|6)\d{7}$/,"ar-DZ":/^(\+?213|0)(5|6|7)\d{8}$/,"ar-LB":/^(\+?961)?((3|81)\d{6}|7\d{7})$/,"ar-EG":/^((\+?20)|0)?1[0125]\d{8}$/,"ar-IQ":/^(\+?964|0)?7[0-9]\d{8}$/,"ar-JO":/^(\+?962|0)?7[789]\d{7}$/,"ar-KW":/^(\+?965)([569]\d{7}|41\d{6})$/,"ar-LY":/^((\+?218)|0)?(9[1-6]\d{7}|[1-8]\d{7,9})$/,"ar-MA":/^(?:(?:\+|00)212|0)[5-7]\d{8}$/,"ar-OM":/^((\+|00)968)?(9[1-9])\d{6}$/,"ar-PS":/^(\+?970|0)5[6|9](\d{7})$/,"ar-SA":/^(!?(\+?966)|0)?5\d{8}$/,"ar-SD":/^((\+?249)|0)?(9[012369]|1[012])\d{7}$/,"ar-SY":/^(!?(\+?963)|0)?9\d{8}$/,"ar-TN":/^(\+?216)?[2459]\d{7}$/,"az-AZ":/^(\+994|0)(10|5[015]|7[07]|99)\d{7}$/,"bs-BA":/^((((\+|00)3876)|06))((([0-3]|[5-6])\d{6})|(4\d{7}))$/,"be-BY":/^(\+?375)?(24|25|29|33|44)\d{7}$/,"bg-BG":/^(\+?359|0)?8[789]\d{7}$/,"bn-BD":/^(\+?880|0)1[13456789][0-9]{8}$/,"ca-AD":/^(\+376)?[346]\d{5}$/,"cs-CZ":/^(\+?420)? ?[1-9][0-9]{2} ?[0-9]{3} ?[0-9]{3}$/,"da-DK":/^(\+?45)?\s?\d{2}\s?\d{2}\s?\d{2}\s?\d{2}$/,"de-DE":/^((\+49|0)1)(5[0-25-9]\d|6([23]|0\d?)|7([0-57-9]|6\d))\d{7,9}$/,"de-AT":/^(\+43|0)\d{1,4}\d{3,12}$/,"de-CH":/^(\+41|0)([1-9])\d{1,9}$/,"de-LU":/^(\+352)?((6\d1)\d{6})$/,"dv-MV":/^(\+?960)?(7[2-9]|9[1-9])\d{5}$/,"el-GR":/^(\+?30|0)?6(8[5-9]|9(?![26])[0-9])\d{7}$/,"el-CY":/^(\+?357?)?(9(9|6)\d{6})$/,"en-AI":/^(\+?1|0)264(?:2(35|92)|4(?:6[1-2]|76|97)|5(?:3[6-9]|8[1-4])|7(?:2(4|9)|72))\d{4}$/,"en-AU":/^(\+?61|0)4\d{8}$/,"en-AG":/^(?:\+1|1)268(?:464|7(?:1[3-9]|[28]\d|3[0246]|64|7[0-689]))\d{4}$/,"en-BM":/^(\+?1)?441(((3|7)\d{6}$)|(5[0-3][0-9]\d{4}$)|(59\d{5}$))/,"en-BS":/^(\+?1[-\s]?|0)?\(?242\)?[-\s]?\d{3}[-\s]?\d{4}$/,"en-GB":/^(\+?44|0)7\d{9}$/,"en-GG":/^(\+?44|0)1481\d{6}$/,"en-GH":/^(\+233|0)(20|50|24|54|27|57|26|56|23|28|55|59)\d{7}$/,"en-GY":/^(\+592|0)6\d{6}$/,"en-HK":/^(\+?852[-\s]?)?[456789]\d{3}[-\s]?\d{4}$/,"en-MO":/^(\+?853[-\s]?)?[6]\d{3}[-\s]?\d{4}$/,"en-IE":/^(\+?353|0)8[356789]\d{7}$/,"en-IN":/^(\+?91|0)?[6789]\d{9}$/,"en-JM":/^(\+?876)?\d{7}$/,"en-KE":/^(\+?254|0)(7|1)\d{8}$/,"fr-CF":/^(\+?236| ?)(70|75|77|72|21|22)\d{6}$/,"en-SS":/^(\+?211|0)(9[1257])\d{7}$/,"en-KI":/^((\+686|686)?)?( )?((6|7)(2|3|8)[0-9]{6})$/,"en-KN":/^(?:\+1|1)869(?:46\d|48[89]|55[6-8]|66\d|76[02-7])\d{4}$/,"en-LS":/^(\+?266)(22|28|57|58|59|27|52)\d{6}$/,"en-MT":/^(\+?356|0)?(99|79|77|21|27|22|25)[0-9]{6}$/,"en-MU":/^(\+?230|0)?\d{8}$/,"en-NA":/^(\+?264|0)(6|8)\d{7}$/,"en-NG":/^(\+?234|0)?[789]\d{9}$/,"en-NZ":/^(\+?64|0)[28]\d{7,9}$/,"en-PG":/^(\+?675|0)?(7\d|8[18])\d{6}$/,"en-PK":/^((00|\+)?92|0)3[0-6]\d{8}$/,"en-PH":/^(09|\+639)\d{9}$/,"en-RW":/^(\+?250|0)?[7]\d{8}$/,"en-SG":/^(\+65)?[3689]\d{7}$/,"en-SL":/^(\+?232|0)\d{8}$/,"en-TZ":/^(\+?255|0)?[67]\d{8}$/,"en-UG":/^(\+?256|0)?[7]\d{8}$/,"en-US":/^((\+1|1)?( |-)?)?(\([2-9][0-9]{2}\)|[2-9][0-9]{2})( |-)?([2-9][0-9]{2}( |-)?[0-9]{4})$/,"en-ZA":/^(\+?27|0)\d{9}$/,"en-ZM":/^(\+?26)?09[567]\d{7}$/,"en-ZW":/^(\+263)[0-9]{9}$/,"en-BW":/^(\+?267)?(7[1-8]{1})\d{6}$/,"es-AR":/^\+?549(11|[2368]\d)\d{8}$/,"es-BO":/^(\+?591)?(6|7)\d{7}$/,"es-CO":/^(\+?57)?3(0(0|1|2|4|5)|1\d|2[0-4]|5(0|1))\d{7}$/,"es-CL":/^(\+?56|0)[2-9]\d{1}\d{7}$/,"es-CR":/^(\+506)?[2-8]\d{7}$/,"es-CU":/^(\+53|0053)?5\d{7}$/,"es-DO":/^(\+?1)?8[024]9\d{7}$/,"es-HN":/^(\+?504)?[9|8|3|2]\d{7}$/,"es-EC":/^(\+?593|0)([2-7]|9[2-9])\d{7}$/,"es-ES":/^(\+?34)?[6|7]\d{8}$/,"es-PE":/^(\+?51)?9\d{8}$/,"es-MX":/^(\+?52)?(1|01)?\d{10,11}$/,"es-NI":/^(\+?505)\d{7,8}$/,"es-PA":/^(\+?507)\d{7,8}$/,"es-PY":/^(\+?595|0)9[9876]\d{7}$/,"es-SV":/^(\+?503)?[67]\d{7}$/,"es-UY":/^(\+598|0)9[1-9][\d]{6}$/,"es-VE":/^(\+?58)?(2|4)\d{9}$/,"et-EE":/^(\+?372)?\s?(5|8[1-4])\s?([0-9]\s?){6,7}$/,"fa-IR":/^(\+?98[\-\s]?|0)9[0-39]\d[\-\s]?\d{3}[\-\s]?\d{4}$/,"fi-FI":/^(\+?358|0)\s?(4[0-6]|50)\s?(\d\s?){4,8}$/,"fj-FJ":/^(\+?679)?\s?\d{3}\s?\d{4}$/,"fo-FO":/^(\+?298)?\s?\d{2}\s?\d{2}\s?\d{2}$/,"fr-BF":/^(\+226|0)[67]\d{7}$/,"fr-BJ":/^(\+229)\d{8}$/,"fr-CD":/^(\+?243|0)?(8|9)\d{8}$/,"fr-CM":/^(\+?237)6[0-9]{8}$/,"fr-FR":/^(\+?33|0)[67]\d{8}$/,"fr-GF":/^(\+?594|0|00594)[67]\d{8}$/,"fr-GP":/^(\+?590|0|00590)[67]\d{8}$/,"fr-MQ":/^(\+?596|0|00596)[67]\d{8}$/,"fr-PF":/^(\+?689)?8[789]\d{6}$/,"fr-RE":/^(\+?262|0|00262)[67]\d{8}$/,"fr-WF":/^(\+681)?\d{6}$/,"he-IL":/^(\+972|0)([23489]|5[012345689]|77)[1-9]\d{6}$/,"hu-HU":/^(\+?36|06)(20|30|31|50|70)\d{7}$/,"id-ID":/^(\+?62|0)8(1[123456789]|2[1238]|3[1238]|5[12356789]|7[78]|9[56789]|8[123456789])([\s?|\d]{5,11})$/,"ir-IR":/^(\+98|0)?9\d{9}$/,"it-IT":/^(\+?39)?\s?3\d{2} ?\d{6,7}$/,"it-SM":/^((\+378)|(0549)|(\+390549)|(\+3780549))?6\d{5,9}$/,"ja-JP":/^(\+81[ \-]?(\(0\))?|0)[6789]0[ \-]?\d{4}[ \-]?\d{4}$/,"ka-GE":/^(\+?995)?(79\d{7}|5\d{8})$/,"kk-KZ":/^(\+?7|8)?7\d{9}$/,"kl-GL":/^(\+?299)?\s?\d{2}\s?\d{2}\s?\d{2}$/,"ko-KR":/^((\+?82)[ \-]?)?0?1([0|1|6|7|8|9]{1})[ \-]?\d{3,4}[ \-]?\d{4}$/,"ky-KG":/^(\+?7\s?\+?7|0)\s?\d{2}\s?\d{3}\s?\d{4}$/,"lt-LT":/^(\+370|8)\d{8}$/,"lv-LV":/^(\+?371)2\d{7}$/,"mg-MG":/^((\+?261|0)(2|3)\d)?\d{7}$/,"mn-MN":/^(\+|00|011)?976(77|81|88|91|94|95|96|99)\d{6}$/,"my-MM":/^(\+?959|09|9)(2[5-7]|3[1-2]|4[0-5]|6[6-9]|7[5-9]|9[6-9])[0-9]{7}$/,"ms-MY":/^(\+?60|0)1(([0145](-|\s)?\d{7,8})|([236-9](-|\s)?\d{7}))$/,"mz-MZ":/^(\+?258)?8[234567]\d{7}$/,"nb-NO":/^(\+?47)?[49]\d{7}$/,"ne-NP":/^(\+?977)?9[78]\d{8}$/,"nl-BE":/^(\+?32|0)4\d{8}$/,"nl-NL":/^(((\+|00)?31\(0\))|((\+|00)?31)|0)6{1}\d{8}$/,"nl-AW":/^(\+)?297(56|59|64|73|74|99)\d{5}$/,"nn-NO":/^(\+?47)?[49]\d{7}$/,"pl-PL":/^(\+?48)? ?([5-8]\d|45) ?\d{3} ?\d{2} ?\d{2}$/,"pt-BR":/^((\+?55\ ?[1-9]{2}\ ?)|(\+?55\ ?\([1-9]{2}\)\ ?)|(0[1-9]{2}\ ?)|(\([1-9]{2}\)\ ?)|([1-9]{2}\ ?))((\d{4}\-?\d{4})|(9[1-9]{1}\d{3}\-?\d{4}))$/,"pt-PT":/^(\+?351)?9[1236]\d{7}$/,"pt-AO":/^(\+244)\d{9}$/,"ro-MD":/^(\+?373|0)((6(0|1|2|6|7|8|9))|(7(6|7|8|9)))\d{6}$/,"ro-RO":/^(\+?40|0)\s?7\d{2}(\/|\s|\.|-)?\d{3}(\s|\.|-)?\d{3}$/,"ru-RU":/^(\+?7|8)?9\d{9}$/,"si-LK":/^(?:0|94|\+94)?(7(0|1|2|4|5|6|7|8)( |-)?)\d{7}$/,"sl-SI":/^(\+386\s?|0)(\d{1}\s?\d{3}\s?\d{2}\s?\d{2}|\d{2}\s?\d{3}\s?\d{3})$/,"sk-SK":/^(\+?421)? ?[1-9][0-9]{2} ?[0-9]{3} ?[0-9]{3}$/,"so-SO":/^(\+?252|0)((6[0-9])\d{7}|(7[1-9])\d{7})$/,"sq-AL":/^(\+355|0)6[789]\d{6}$/,"sr-RS":/^(\+3816|06)[- \d]{5,9}$/,"sv-SE":/^(\+?46|0)[\s\-]?7[\s\-]?[02369]([\s\-]?\d){7}$/,"tg-TJ":/^(\+?992)?[5][5]\d{7}$/,"th-TH":/^(\+66|66|0)\d{9}$/,"tr-TR":/^(\+?90|0)?5\d{9}$/,"tk-TM":/^(\+993|993|8)\d{8}$/,"uk-UA":/^(\+?38|8)?0\d{9}$/,"uz-UZ":/^(\+?998)?(6[125-79]|7[1-69]|88|9\d)\d{7}$/,"vi-VN":/^((\+?84)|0)((3([2-9]))|(5([25689]))|(7([0|6-9]))|(8([1-9]))|(9([0-9])))([0-9]{7})$/,"zh-CN":/^((\+|00)86)?(1[3-9]|9[28])\d{9}$/,"zh-TW":/^(\+?886\-?|0)?9\d{8}$/,"dz-BT":/^(\+?975|0)?(17|16|77|02)\d{6}$/,"ar-YE":/^(((\+|00)9677|0?7)[0137]\d{7}|((\+|00)967|0)[1-7]\d{6})$/,"ar-EH":/^(\+?212|0)[\s\-]?(5288|5289)[\s\-]?\d{5}$/,"fa-AF":/^(\+93|0)?(2{1}[0-8]{1}|[3-5]{1}[0-4]{1})(\d{7})$/};i["en-CA"]=i["en-US"],i["fr-CA"]=i["en-CA"],i["fr-BE"]=i["nl-BE"],i["zh-HK"]=i["en-HK"],i["zh-MO"]=i["en-MO"],i["ga-IE"]=i["en-IE"],i["fr-CH"]=i["de-CH"],i["it-CH"]=i["fr-CH"];var a=Object.keys(i);t.locales=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,o.default)(e),i.test(e)};var r,o=(r=n(797))&&r.__esModule?r:{default:r};var i=/^(0x)[0-9a-f]{40}$/i;e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,o.default)(e),function(e){var t="\\d{".concat(e.digits_after_decimal[0],"}");e.digits_after_decimal.forEach((function(e,n){0!==n&&(t="".concat(t,"|\\d{").concat(e,"}"))}));var n="(".concat(e.symbol.replace(/\W/,(function(e){return"\\".concat(e)})),")").concat(e.require_symbol?"":"?"),r="[1-9]\\d{0,2}(\\".concat(e.thousands_separator,"\\d{3})*"),o="(".concat(["0","[1-9]\\d*",r].join("|"),")?"),i="(\\".concat(e.decimal_separator,"(").concat(t,"))").concat(e.require_decimal?"":"?"),a=o+(e.allow_decimal||e.require_decimal?i:"");e.allow_negatives&&!e.parens_for_negatives&&(e.negative_sign_after_digits?a+="-?":e.negative_sign_before_digits&&(a="-?"+a));e.allow_negative_sign_placeholder?a="( (?!\\-))?".concat(a):e.allow_space_after_symbol?a=" ?".concat(a):e.allow_space_after_digits&&(a+="( (?!$))?");e.symbol_after_digits?a+=n:a=n+a;e.allow_negatives&&(e.parens_for_negatives?a="(\\(".concat(a,"\\)|").concat(a,")"):e.negative_sign_before_digits||e.negative_sign_after_digits||(a="-?"+a));return new RegExp("^(?!-? )(?=.*\\d)".concat(a,"$"))}(t=(0,r.default)(t,a)).test(e)};var r=i(n(882)),o=i(n(797));function i(e){return e&&e.__esModule?e:{default:e}}var a={symbol:"$",require_symbol:!1,allow_space_after_symbol:!1,symbol_after_digits:!1,allow_negatives:!0,parens_for_negatives:!1,negative_sign_before_digits:!1,negative_sign_after_digits:!1,allow_negative_sign_placeholder:!1,thousands_separator:",",decimal_separator:".",allow_decimal:!0,require_decimal:!1,digits_after_decimal:[2],allow_space_after_digits:!1};e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,o.default)(e),i.test(e)||a.test(e)};var r,o=(r=n(797))&&r.__esModule?r:{default:r};var i=/^(bc1)[a-z0-9]{25,39}$/,a=/^(1|3)[A-HJ-NP-Za-km-z1-9]{25,39}$/;e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isISO6346=l,t.isFreightContainerID=void 0;var r,o=(r=n(797))&&r.__esModule?r:{default:r};var i=/^[A-Z]{3}(U[0-9]{7})|([J,Z][0-9]{6,7})$/,a=/^[0-9]$/;function l(e){if((0,o.default)(e),e=e.toUpperCase(),!i.test(e))return!1;if(11===e.length){for(var t=0,n=0;n=11&&r<=20?12+r%11:r>=21&&r<=30?23+r%21:34+r%31)*Math.pow(2,n)}var l=t%11;return Number(e[e.length-1])===l}return!0}var u=l;t.isFreightContainerID=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,o.default)(e),i.has(e)};var r,o=(r=n(797))&&r.__esModule?r:{default:r};var i=new Set(["aa","ab","ae","af","ak","am","an","ar","as","av","ay","az","az","ba","be","bg","bh","bi","bm","bn","bo","br","bs","ca","ce","ch","co","cr","cs","cu","cv","cy","da","de","dv","dz","ee","el","en","eo","es","et","eu","fa","ff","fi","fj","fo","fr","fy","ga","gd","gl","gn","gu","gv","ha","he","hi","ho","hr","ht","hu","hy","hz","ia","id","ie","ig","ii","ik","io","is","it","iu","ja","jv","ka","kg","ki","kj","kk","kl","km","kn","ko","kr","ks","ku","kv","kw","ky","la","lb","lg","li","ln","lo","lt","lu","lv","mg","mh","mi","mk","ml","mn","mr","ms","mt","my","na","nb","nd","ne","ng","nl","nn","no","nr","nv","ny","oc","oj","om","or","os","pa","pi","pl","ps","pt","qu","rm","rn","ro","ru","rw","sa","sc","sd","se","sg","si","sk","sl","sm","sn","so","sq","sr","ss","st","su","sv","sw","ta","te","tg","th","ti","tk","tl","tn","to","tr","ts","tt","tw","ty","ug","uk","ur","uz","ve","vi","vo","wa","wo","xh","yi","yo","za","zh","zu"]);e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,o.default)(e);var n=t.strictSeparator?a.test(e):i.test(e);return n&&t.strict?l(e):n};var r,o=(r=n(797))&&r.__esModule?r:{default:r};var i=/^([\+-]?\d{4}(?!\d{2}\b))((-?)((0[1-9]|1[0-2])(\3([12]\d|0[1-9]|3[01]))?|W([0-4]\d|5[0-3])(-?[1-7])?|(00[1-9]|0[1-9]\d|[12]\d{2}|3([0-5]\d|6[1-6])))([T\s]((([01]\d|2[0-3])((:?)[0-5]\d)?|24:?00)([\.,]\d+(?!:))?)?(\17[0-5]\d([\.,]\d+)?)?([zZ]|([\+-])([01]\d|2[0-3]):?([0-5]\d)?)?)?)?$/,a=/^([\+-]?\d{4}(?!\d{2}\b))((-?)((0[1-9]|1[0-2])(\3([12]\d|0[1-9]|3[01]))?|W([0-4]\d|5[0-3])(-?[1-7])?|(00[1-9]|0[1-9]\d|[12]\d{2}|3([0-5]\d|6[1-6])))([T]((([01]\d|2[0-3])((:?)[0-5]\d)?|24:?00)([\.,]\d+(?!:))?)?(\17[0-5]\d([\.,]\d+)?)?([zZ]|([\+-])([01]\d|2[0-3]):?([0-5]\d)?)?)?)?$/,l=function(e){var t=e.match(/^(\d{4})-?(\d{3})([ T]{1}\.*|$)/);if(t){var n=Number(t[1]),r=Number(t[2]);return n%4==0&&n%100!=0||n%400==0?r<=366:r<=365}var o=e.match(/(\d{4})-?(\d{0,2})-?(\d*)/).map(Number),i=o[1],a=o[2],l=o[3],u=a?"0".concat(a).slice(-2):a,s=l?"0".concat(l).slice(-2):l,c=new Date("".concat(i,"-").concat(u||"01","-").concat(s||"01"));return!a||!l||c.getUTCFullYear()===i&&c.getUTCMonth()+1===a&&c.getUTCDate()===l};e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,o.default)(e),d.test(e)};var r,o=(r=n(797))&&r.__esModule?r:{default:r};var i=/([01][0-9]|2[0-3])/,a=/[0-5][0-9]/,l=new RegExp("[-+]".concat(i.source,":").concat(a.source)),u=new RegExp("([zZ]|".concat(l.source,")")),s=new RegExp("".concat(i.source,":").concat(a.source,":").concat(/([0-5][0-9]|60)/.source).concat(/(\.[0-9]+)?/.source)),c=new RegExp("".concat(/[0-9]{4}/.source,"-").concat(/(0[1-9]|1[0-2])/.source,"-").concat(/([12]\d|0[1-9]|3[01])/.source)),f=new RegExp("".concat(s.source).concat(u.source)),d=new RegExp("^".concat(c.source,"[ tT]").concat(f.source,"$"));e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,o.default)(e),i.has(e.toUpperCase())};var r,o=(r=n(797))&&r.__esModule?r:{default:r};var i=new Set(["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","VAT","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWZ","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","URY","UZB","VUT","VEN","VNM","VGB","VIR","WLF","ESH","YEM","ZMB","ZWE"]);e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,o.default)(e),i.has(e.toUpperCase())},t.CurrencyCodes=void 0;var r,o=(r=n(797))&&r.__esModule?r:{default:r};var i=new Set(["AED","AFN","ALL","AMD","ANG","AOA","ARS","AUD","AWG","AZN","BAM","BBD","BDT","BGN","BHD","BIF","BMD","BND","BOB","BOV","BRL","BSD","BTN","BWP","BYN","BZD","CAD","CDF","CHE","CHF","CHW","CLF","CLP","CNY","COP","COU","CRC","CUC","CUP","CVE","CZK","DJF","DKK","DOP","DZD","EGP","ERN","ETB","EUR","FJD","FKP","GBP","GEL","GHS","GIP","GMD","GNF","GTQ","GYD","HKD","HNL","HRK","HTG","HUF","IDR","ILS","INR","IQD","IRR","ISK","JMD","JOD","JPY","KES","KGS","KHR","KMF","KPW","KRW","KWD","KYD","KZT","LAK","LBP","LKR","LRD","LSL","LYD","MAD","MDL","MGA","MKD","MMK","MNT","MOP","MRU","MUR","MVR","MWK","MXN","MXV","MYR","MZN","NAD","NGN","NIO","NOK","NPR","NZD","OMR","PAB","PEN","PGK","PHP","PKR","PLN","PYG","QAR","RON","RSD","RUB","RWF","SAR","SBD","SCR","SDG","SEK","SGD","SHP","SLL","SOS","SRD","SSP","STN","SVC","SYP","SZL","THB","TJS","TMT","TND","TOP","TRY","TTD","TWD","TZS","UAH","UGX","USD","USN","UYI","UYU","UYW","UZS","VES","VND","VUV","WST","XAF","XAG","XAU","XBA","XBB","XBC","XBD","XCD","XDR","XOF","XPD","XPF","XPT","XSU","XTS","XUA","XXX","YER","ZAR","ZMW","ZWL"]);var a=i;t.CurrencyCodes=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,r.default)(e),(t=(0,o.default)(t,u)).crockford)return l.test(e);if(e.length%8==0&&a.test(e))return!0;return!1};var r=i(n(797)),o=i(n(882));function i(e){return e&&e.__esModule?e:{default:e}}var a=/^[A-Z2-7]+=*$/,l=/^[A-HJKMNP-TV-Z0-9]+$/,u={crockford:!1};e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if((0,o.default)(e),i.test(e))return!0;return!1};var r,o=(r=n(797))&&r.__esModule?r:{default:r};var i=/^[A-HJ-NP-Za-km-z1-9]*$/;e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,o.default)(e);var t=e.split(",");if(t.length<2)return!1;var n=t.shift().trim().split(";"),r=n.shift();if("data:"!==r.slice(0,5))return!1;var u=r.slice(5);if(""!==u&&!i.test(u))return!1;for(var s=0;s4)return!1;var i,a=function(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=u(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}(o);try{for(a.s();!(i=a.n()).done;){var s=l(i.value.split("="),2),c=s[0],f=s[1];if(c&&!t.has(c)){r=!0;break}!f||"cc"!==c&&"bcc"!==c||(n[c]=f),c&&t.delete(c)}}catch(e){a.e(e)}finally{a.f()}return!r&&n}(f);if(!d)return!1;return"".concat(s,",").concat(d.cc,",").concat(d.bcc).split(",").every((function(e){return!(e=(0,r.default)(e," "))||(0,o.default)(e,t)}))};var r=a(n(1602)),o=a(n(1592)),i=a(n(797));function a(e){return e&&e.__esModule?e:{default:e}}function l(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==l.return||l.return()}finally{if(o)throw i}}return n}(e,t)||u(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){if(e){if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n/g,">").replace(/\//g,"/").replace(/\\/g,"\").replace(/`/g,"`")};var r,o=(r=n(797))&&r.__esModule?r:{default:r};e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,o.default)(e),e.replace(/"/g,'"').replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">").replace(///g,"/").replace(/\/g,"\\").replace(/`/g,"`").replace(/&/g,"&")};var r,o=(r=n(797))&&r.__esModule?r:{default:r};e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,r.default)(e);var n=t?"\\x00-\\x09\\x0B\\x0C\\x0E-\\x1F\\x7F":"\\x00-\\x1F\\x7F";return(0,o.default)(e,n)};var r=i(n(797)),o=i(n(1605));function i(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,o.default)(e),e.replace(new RegExp("[^".concat(t,"]+"),"g"),"")};var r,o=(r=n(797))&&r.__esModule?r:{default:r};e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,o.default)(e);for(var n=e.length-1;n>=0;n--)if(-1===t.indexOf(e[n]))return!1;return!0};var r,o=(r=n(797))&&r.__esModule?r:{default:r};e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){t=(0,o.default)(t,i);var n=e.split("@"),r=n.pop(),f=[n.join("@"),r];if(f[1]=f[1].toLowerCase(),"gmail.com"===f[1]||"googlemail.com"===f[1]){if(t.gmail_remove_subaddress&&(f[0]=f[0].split("+")[0]),t.gmail_remove_dots&&(f[0]=f[0].replace(/\.+/g,c)),!f[0].length)return!1;(t.all_lowercase||t.gmail_lowercase)&&(f[0]=f[0].toLowerCase()),f[1]=t.gmail_convert_googlemaildotcom?"gmail.com":f[1]}else if(a.indexOf(f[1])>=0){if(t.icloud_remove_subaddress&&(f[0]=f[0].split("+")[0]),!f[0].length)return!1;(t.all_lowercase||t.icloud_lowercase)&&(f[0]=f[0].toLowerCase())}else if(l.indexOf(f[1])>=0){if(t.outlookdotcom_remove_subaddress&&(f[0]=f[0].split("+")[0]),!f[0].length)return!1;(t.all_lowercase||t.outlookdotcom_lowercase)&&(f[0]=f[0].toLowerCase())}else if(u.indexOf(f[1])>=0){if(t.yahoo_remove_subaddress){var d=f[0].split("-");f[0]=d.length>1?d.slice(0,-1).join("-"):d[0]}if(!f[0].length)return!1;(t.all_lowercase||t.yahoo_lowercase)&&(f[0]=f[0].toLowerCase())}else s.indexOf(f[1])>=0?((t.all_lowercase||t.yandex_lowercase)&&(f[0]=f[0].toLowerCase()),f[1]="yandex.ru"):t.all_lowercase&&(f[0]=f[0].toLowerCase());return f.join("@")};var r,o=(r=n(882))&&r.__esModule?r:{default:r};var i={all_lowercase:!0,gmail_lowercase:!0,gmail_remove_dots:!0,gmail_remove_subaddress:!0,gmail_convert_googlemaildotcom:!0,outlookdotcom_lowercase:!0,outlookdotcom_remove_subaddress:!0,yahoo_lowercase:!0,yahoo_remove_subaddress:!0,yandex_lowercase:!0,icloud_lowercase:!0,icloud_remove_subaddress:!0},a=["icloud.com","me.com"],l=["hotmail.at","hotmail.be","hotmail.ca","hotmail.cl","hotmail.co.il","hotmail.co.nz","hotmail.co.th","hotmail.co.uk","hotmail.com","hotmail.com.ar","hotmail.com.au","hotmail.com.br","hotmail.com.gr","hotmail.com.mx","hotmail.com.pe","hotmail.com.tr","hotmail.com.vn","hotmail.cz","hotmail.de","hotmail.dk","hotmail.es","hotmail.fr","hotmail.hu","hotmail.id","hotmail.ie","hotmail.in","hotmail.it","hotmail.jp","hotmail.kr","hotmail.lv","hotmail.my","hotmail.ph","hotmail.pt","hotmail.sa","hotmail.sg","hotmail.sk","live.be","live.co.uk","live.com","live.com.ar","live.com.mx","live.de","live.es","live.eu","live.fr","live.it","live.nl","msn.com","outlook.at","outlook.be","outlook.cl","outlook.co.il","outlook.co.nz","outlook.co.th","outlook.com","outlook.com.ar","outlook.com.au","outlook.com.br","outlook.com.gr","outlook.com.pe","outlook.com.tr","outlook.com.vn","outlook.cz","outlook.de","outlook.dk","outlook.es","outlook.fr","outlook.hu","outlook.id","outlook.ie","outlook.in","outlook.it","outlook.jp","outlook.kr","outlook.lv","outlook.my","outlook.ph","outlook.pt","outlook.sa","outlook.sg","outlook.sk","passport.com"],u=["rocketmail.com","yahoo.ca","yahoo.co.uk","yahoo.com","yahoo.de","yahoo.fr","yahoo.in","yahoo.it","ymail.com"],s=["yandex.ru","yandex.ua","yandex.kz","yandex.com","yandex.by","ya.ru"];function c(e){return e.length>1?e:""}e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,o.default)(e),i.test(e)};var r,o=(r=n(797))&&r.__esModule?r:{default:r};var i=/^[^\s-_](?!.*?[-_]{2,})[a-z0-9-\\][^\s]*[^-_\s]$/;e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,o.default)(e),t in i)return i[t](e);if("any"===t){for(var n in i){if((0,i[n])(e))return!0}return!1}throw new Error("Invalid locale '".concat(t,"'"))};var r,o=(r=n(797))&&r.__esModule?r:{default:r};var i={"cs-CZ":function(e){return/^(([ABCDEFHIJKLMNPRSTUVXYZ]|[0-9])-?){5,8}$/.test(e)},"de-DE":function(e){return/^((A|AA|AB|AC|AE|AH|AK|AM|AN|AÖ|AP|AS|AT|AU|AW|AZ|B|BA|BB|BC|BE|BF|BH|BI|BK|BL|BM|BN|BO|BÖ|BS|BT|BZ|C|CA|CB|CE|CO|CR|CW|D|DA|DD|DE|DH|DI|DL|DM|DN|DO|DU|DW|DZ|E|EA|EB|ED|EE|EF|EG|EH|EI|EL|EM|EN|ER|ES|EU|EW|F|FB|FD|FF|FG|FI|FL|FN|FO|FR|FS|FT|FÜ|FW|FZ|G|GA|GC|GD|GE|GF|GG|GI|GK|GL|GM|GN|GÖ|GP|GR|GS|GT|GÜ|GV|GW|GZ|H|HA|HB|HC|HD|HE|HF|HG|HH|HI|HK|HL|HM|HN|HO|HP|HR|HS|HU|HV|HX|HY|HZ|IK|IL|IN|IZ|J|JE|JL|K|KA|KB|KC|KE|KF|KG|KH|KI|KK|KL|KM|KN|KO|KR|KS|KT|KU|KW|KY|L|LA|LB|LC|LD|LF|LG|LH|LI|LL|LM|LN|LÖ|LP|LR|LU|M|MA|MB|MC|MD|ME|MG|MH|MI|MK|ML|MM|MN|MO|MQ|MR|MS|MÜ|MW|MY|MZ|N|NB|ND|NE|NF|NH|NI|NK|NM|NÖ|NP|NR|NT|NU|NW|NY|NZ|OA|OB|OC|OD|OE|OF|OG|OH|OK|OL|OP|OS|OZ|P|PA|PB|PE|PF|PI|PL|PM|PN|PR|PS|PW|PZ|R|RA|RC|RD|RE|RG|RH|RI|RL|RM|RN|RO|RP|RS|RT|RU|RV|RW|RZ|S|SB|SC|SE|SG|SI|SK|SL|SM|SN|SO|SP|SR|ST|SU|SW|SY|SZ|TE|TF|TG|TO|TP|TR|TS|TT|TÜ|ÜB|UE|UH|UL|UM|UN|V|VB|VG|VK|VR|VS|W|WA|WB|WE|WF|WI|WK|WL|WM|WN|WO|WR|WS|WT|WÜ|WW|WZ|Z|ZE|ZI|ZP|ZR|ZW|ZZ)[- ]?[A-Z]{1,2}[- ]?\d{1,4}|(ABG|ABI|AIB|AIC|ALF|ALZ|ANA|ANG|ANK|APD|ARN|ART|ASL|ASZ|AUR|AZE|BAD|BAR|BBG|BCH|BED|BER|BGD|BGL|BID|BIN|BIR|BIT|BIW|BKS|BLB|BLK|BNA|BOG|BOH|BOR|BOT|BRA|BRB|BRG|BRK|BRL|BRV|BSB|BSK|BTF|BÜD|BUL|BÜR|BÜS|BÜZ|CAS|CHA|CLP|CLZ|COC|COE|CUX|DAH|DAN|DAU|DBR|DEG|DEL|DGF|DIL|DIN|DIZ|DKB|DLG|DON|DUD|DÜW|EBE|EBN|EBS|ECK|EIC|EIL|EIN|EIS|EMD|EMS|ERB|ERH|ERK|ERZ|ESB|ESW|FDB|FDS|FEU|FFB|FKB|FLÖ|FOR|FRG|FRI|FRW|FTL|FÜS|GAN|GAP|GDB|GEL|GEO|GER|GHA|GHC|GLA|GMN|GNT|GOA|GOH|GRA|GRH|GRI|GRM|GRZ|GTH|GUB|GUN|GVM|HAB|HAL|HAM|HAS|HBN|HBS|HCH|HDH|HDL|HEB|HEF|HEI|HER|HET|HGN|HGW|HHM|HIG|HIP|HMÜ|HOG|HOH|HOL|HOM|HOR|HÖS|HOT|HRO|HSK|HST|HVL|HWI|IGB|ILL|JÜL|KEH|KEL|KEM|KIB|KLE|KLZ|KÖN|KÖT|KÖZ|KRU|KÜN|KUS|KYF|LAN|LAU|LBS|LBZ|LDK|LDS|LEO|LER|LEV|LIB|LIF|LIP|LÖB|LOS|LRO|LSZ|LÜN|LUP|LWL|MAB|MAI|MAK|MAL|MED|MEG|MEI|MEK|MEL|MER|MET|MGH|MGN|MHL|MIL|MKK|MOD|MOL|MON|MOS|MSE|MSH|MSP|MST|MTK|MTL|MÜB|MÜR|MYK|MZG|NAB|NAI|NAU|NDH|NEA|NEB|NEC|NEN|NES|NEW|NMB|NMS|NOH|NOL|NOM|NOR|NVP|NWM|OAL|OBB|OBG|OCH|OHA|ÖHR|OHV|OHZ|OPR|OSL|OVI|OVL|OVP|PAF|PAN|PAR|PCH|PEG|PIR|PLÖ|PRÜ|QFT|QLB|RDG|REG|REH|REI|RID|RIE|ROD|ROF|ROK|ROL|ROS|ROT|ROW|RSL|RÜD|RÜG|SAB|SAD|SAN|SAW|SBG|SBK|SCZ|SDH|SDL|SDT|SEB|SEE|SEF|SEL|SFB|SFT|SGH|SHA|SHG|SHK|SHL|SIG|SIM|SLE|SLF|SLK|SLN|SLS|SLÜ|SLZ|SMÜ|SOB|SOG|SOK|SÖM|SON|SPB|SPN|SRB|SRO|STA|STB|STD|STE|STL|SUL|SÜW|SWA|SZB|TBB|TDO|TET|TIR|TÖL|TUT|UEM|UER|UFF|USI|VAI|VEC|VER|VIB|VIE|VIT|VOH|WAF|WAK|WAN|WAR|WAT|WBS|WDA|WEL|WEN|WER|WES|WHV|WIL|WIS|WIT|WIZ|WLG|WMS|WND|WOB|WOH|WOL|WOR|WOS|WRN|WSF|WST|WSW|WTL|WTM|WUG|WÜM|WUN|WUR|WZL|ZEL|ZIG)[- ]?(([A-Z][- ]?\d{1,4})|([A-Z]{2}[- ]?\d{1,3})))[- ]?(E|H)?$/.test(e)},"de-LI":function(e){return/^FL[- ]?\d{1,5}[UZ]?$/.test(e)},"en-IN":function(e){return/^[A-Z]{2}[ -]?[0-9]{1,2}(?:[ -]?[A-Z])(?:[ -]?[A-Z]*)?[ -]?[0-9]{4}$/.test(e)},"es-AR":function(e){return/^(([A-Z]{2} ?[0-9]{3} ?[A-Z]{2})|([A-Z]{3} ?[0-9]{3}))$/.test(e)},"fi-FI":function(e){return/^(?=.{4,7})(([A-Z]{1,3}|[0-9]{1,3})[\s-]?([A-Z]{1,3}|[0-9]{1,5}))$/.test(e)},"hu-HU":function(e){return/^((((?!AAA)(([A-NPRSTVZWXY]{1})([A-PR-Z]{1})([A-HJ-NPR-Z]))|(A[ABC]I)|A[ABC]O|A[A-W]Q|BPI|BPO|UCO|UDO|XAO)-(?!000)\d{3})|(M\d{6})|((CK|DT|CD|HC|H[ABEFIKLMNPRSTVX]|MA|OT|R[A-Z]) \d{2}-\d{2})|(CD \d{3}-\d{3})|(C-(C|X) \d{4})|(X-(A|B|C) \d{4})|(([EPVZ]-\d{5}))|(S A[A-Z]{2} \d{2})|(SP \d{2}-\d{2}))$/.test(e)},"pt-BR":function(e){return/^[A-Z]{3}[ -]?[0-9][A-Z][0-9]{2}|[A-Z]{3}[ -]?[0-9]{4}$/.test(e)},"pt-PT":function(e){return/^([A-Z]{2}|[0-9]{2})[ -·]?([A-Z]{2}|[0-9]{2})[ -·]?([A-Z]{2}|[0-9]{2})$/.test(e)},"sq-AL":function(e){return/^[A-Z]{2}[- ]?((\d{3}[- ]?(([A-Z]{2})|T))|(R[- ]?\d{3}))$/.test(e)},"sv-SE":function(e){return/^[A-HJ-PR-UW-Z]{3} ?[\d]{2}[A-HJ-PR-UW-Z1-9]$|(^[A-ZÅÄÖ ]{2,7}$)/.test(e.trim())}};e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;(0,o.default)(e);var n=f(e);if((t=(0,r.default)(t||{},c)).returnScore)return d(n,t);return n.length>=t.minLength&&n.lowercaseCount>=t.minLowercase&&n.uppercaseCount>=t.minUppercase&&n.numberCount>=t.minNumbers&&n.symbolCount>=t.minSymbols};var r=i(n(882)),o=i(n(797));function i(e){return e&&e.__esModule?e:{default:e}}var a=/^[A-Z]$/,l=/^[a-z]$/,u=/^[0-9]$/,s=/^[-#!$@£%^&*()_+|~=`{}\[\]:";'<>?,.\/ ]$/,c={minLength:8,minLowercase:1,minUppercase:1,minNumbers:1,minSymbols:1,returnScore:!1,pointsPerUnique:1,pointsPerRepeat:.5,pointsForContainingLower:10,pointsForContainingUpper:10,pointsForContainingNumber:10,pointsForContainingSymbol:10};function f(e){var t,n,r=(t=e,n={},Array.from(t).forEach((function(e){n[e]?n[e]+=1:n[e]=1})),n),o={length:e.length,uniqueChars:Object.keys(r).length,uppercaseCount:0,lowercaseCount:0,numberCount:0,symbolCount:0};return Object.keys(r).forEach((function(e){a.test(e)?o.uppercaseCount+=r[e]:l.test(e)?o.lowercaseCount+=r[e]:u.test(e)?o.numberCount+=r[e]:s.test(e)&&(o.symbolCount+=r[e])})),o}function d(e,t){var n=0;return n+=e.uniqueChars*t.pointsPerUnique,n+=(e.length-e.uniqueChars)*t.pointsPerRepeat,e.lowercaseCount>0&&(n+=t.pointsForContainingLower),e.uppercaseCount>0&&(n+=t.pointsForContainingUpper),e.numberCount>0&&(n+=t.pointsForContainingNumber),e.symbolCount>0&&(n+=t.pointsForContainingSymbol),n}e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,i.default)(e),(0,i.default)(t),t in u)return u[t](e);throw new Error("Invalid country code: '".concat(t,"'"))},t.vatMatchers=void 0;var o,i=(o=n(797))&&o.__esModule?o:{default:o},a=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var t=l();if(t&&t.has(e))return t.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}n.default=e,t&&t.set(e,n);return n}(n(1601));function l(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return l=function(){return e},e}var u={AT:function(e){return/^(AT)?U\d{8}$/.test(e)},BE:function(e){return/^(BE)?\d{10}$/.test(e)},BG:function(e){return/^(BG)?\d{9,10}$/.test(e)},HR:function(e){return/^(HR)?\d{11}$/.test(e)},CY:function(e){return/^(CY)?\w{9}$/.test(e)},CZ:function(e){return/^(CZ)?\d{8,10}$/.test(e)},DK:function(e){return/^(DK)?\d{8}$/.test(e)},EE:function(e){return/^(EE)?\d{9}$/.test(e)},FI:function(e){return/^(FI)?\d{8}$/.test(e)},FR:function(e){return/^(FR)?\w{2}\d{9}$/.test(e)},DE:function(e){return/^(DE)?\d{9}$/.test(e)},EL:function(e){return/^(EL)?\d{9}$/.test(e)},HU:function(e){return/^(HU)?\d{8}$/.test(e)},IE:function(e){return/^(IE)?\d{7}\w{1}(W)?$/.test(e)},IT:function(e){return/^(IT)?\d{11}$/.test(e)},LV:function(e){return/^(LV)?\d{11}$/.test(e)},LT:function(e){return/^(LT)?\d{9,12}$/.test(e)},LU:function(e){return/^(LU)?\d{8}$/.test(e)},MT:function(e){return/^(MT)?\d{8}$/.test(e)},NL:function(e){return/^(NL)?\d{9}B\d{2}$/.test(e)},PL:function(e){return/^(PL)?(\d{10}|(\d{3}-\d{3}-\d{2}-\d{2})|(\d{3}-\d{2}-\d{2}-\d{3}))$/.test(e)},PT:function(e){var t=e.match(/^(PT)?(\d{9})$/);if(!t)return!1;var n=t[2],r=11-a.reverseMultiplyAndSum(n.split("").slice(0,8).map((function(e){return parseInt(e,10)})),9)%11;return r>9?0===parseInt(n[8],10):r===parseInt(n[8],10)},RO:function(e){return/^(RO)?\d{2,10}$/.test(e)},SK:function(e){return/^(SK)?\d{10}$/.test(e)},SI:function(e){return/^(SI)?\d{8}$/.test(e)},ES:function(e){return/^(ES)?\w\d{7}[A-Z]$/.test(e)},SE:function(e){return/^(SE)?\d{12}$/.test(e)},AL:function(e){return/^(AL)?\w{9}[A-Z]$/.test(e)},MK:function(e){return/^(MK)?\d{13}$/.test(e)},AU:function(e){return/^(AU)?\d{11}$/.test(e)},BY:function(e){return/^(УНП )?\d{9}$/.test(e)},CA:function(e){return/^(CA)?\d{9}$/.test(e)},IS:function(e){return/^(IS)?\d{5,6}$/.test(e)},IN:function(e){return/^(IN)?\d{15}$/.test(e)},ID:function(e){return/^(ID)?(\d{15}|(\d{2}.\d{3}.\d{3}.\d{1}-\d{3}.\d{3}))$/.test(e)},IL:function(e){return/^(IL)?\d{9}$/.test(e)},KZ:function(e){return/^(KZ)?\d{9}$/.test(e)},NZ:function(e){return/^(NZ)?\d{9}$/.test(e)},NG:function(e){return/^(NG)?(\d{12}|(\d{8}-\d{4}))$/.test(e)},NO:function(e){return/^(NO)?\d{9}MVA$/.test(e)},PH:function(e){return/^(PH)?(\d{12}|\d{3} \d{3} \d{3} \d{3})$/.test(e)},RU:function(e){return/^(RU)?(\d{10}|\d{12})$/.test(e)},SM:function(e){return/^(SM)?\d{5}$/.test(e)},SA:function(e){return/^(SA)?\d{15}$/.test(e)},RS:function(e){return/^(RS)?\d{9}$/.test(e)},CH:function(e){var t,n,r;return/^(CHE[- ]?)?(\d{9}|(\d{3}\.\d{3}\.\d{3})|(\d{3} \d{3} \d{3})) ?(TVA|MWST|IVA)?$/.test(e)&&(t=e.match(/\d/g).map((function(e){return+e})),n=t.pop(),r=[5,4,3,2,7,6,5,4],n===(11-t.reduce((function(e,t,n){return e+t*r[n]}),0)%11)%11)},TR:function(e){return/^(TR)?\d{10}$/.test(e)},UA:function(e){return/^(UA)?\d{12}$/.test(e)},GB:function(e){return/^GB((\d{3} \d{4} ([0-8][0-9]|9[0-6]))|(\d{9} \d{3})|(((GD[0-4])|(HA[5-9]))[0-9]{2}))$/.test(e)},UZ:function(e){return/^(UZ)?\d{9}$/.test(e)},AR:function(e){return/^(AR)?\d{11}$/.test(e)},BO:function(e){return/^(BO)?\d{7}$/.test(e)},BR:function(e){return/^(BR)?((\d{2}.\d{3}.\d{3}\/\d{4}-\d{2})|(\d{3}.\d{3}.\d{3}-\d{2}))$/.test(e)},CL:function(e){return/^(CL)?\d{8}-\d{1}$/.test(e)},CO:function(e){return/^(CO)?\d{10}$/.test(e)},CR:function(e){return/^(CR)?\d{9,12}$/.test(e)},EC:function(e){return/^(EC)?\d{13}$/.test(e)},SV:function(e){return/^(SV)?\d{4}-\d{6}-\d{3}-\d{1}$/.test(e)},GT:function(e){return/^(GT)?\d{7}-\d{1}$/.test(e)},HN:function(e){return/^(HN)?$/.test(e)},MX:function(e){return/^(MX)?\w{3,4}\d{6}\w{3}$/.test(e)},NI:function(e){return/^(NI)?\d{3}-\d{6}-\d{4}\w{1}$/.test(e)},PA:function(e){return/^(PA)?$/.test(e)},PY:function(e){return/^(PY)?\d{6,8}-\d{1}$/.test(e)},PE:function(e){return/^(PE)?\d{11}$/.test(e)},DO:function(e){return/^(DO)?(\d{11}|(\d{3}-\d{7}-\d{1})|[1,4,5]{1}\d{8}|([1,4,5]{1})-\d{2}-\d{5}-\d{1})$/.test(e)},UY:function(e){return/^(UY)?\d{12}$/.test(e)},VE:function(e){return/^(VE)?[J,G,V,E]{1}-(\d{9}|(\d{8}-\d{1}))$/.test(e)}};t.vatMatchers=u},,,,,,function(e,t,n){var r=n(217),o=n(255),i=Math.max;e.exports=function(e,t,n){var a=null==e?0:e.length;if(!a)return-1;var l=null==n?0:o(n);return l<0&&(l=i(a+l,0)),r(e,t,l)}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";var r=n(8),o=n(2815);r({target:"Date",proto:!0,forced:Date.prototype.toISOString!==o},{toISOString:o})},function(e,t,n){"use strict";var r=n(21),o=n(19),i=n(2816).start,a=RangeError,l=isFinite,u=Math.abs,s=Date.prototype,c=s.toISOString,f=r(s.getTime),d=r(s.getUTCDate),p=r(s.getUTCFullYear),h=r(s.getUTCHours),v=r(s.getUTCMilliseconds),g=r(s.getUTCMinutes),y=r(s.getUTCMonth),m=r(s.getUTCSeconds);e.exports=o((function(){return"0385-07-25T07:06:39.999Z"!==c.call(new Date(-50000000000001))}))||!o((function(){c.call(new Date(NaN))}))?function(){if(!l(f(this)))throw new a("Invalid time value");var e=p(this),t=v(this),n=e<0?"-":e>9999?"+":"";return n+i(u(e),n?6:4,0)+"-"+i(y(this)+1,2,0)+"-"+i(d(this),2,0)+"T"+i(h(this),2,0)+":"+i(g(this),2,0)+":"+i(m(this),2,0)+"."+i(t,3,0)+"Z"}:c},function(e,t,n){"use strict";var r=n(21),o=n(140),i=n(46),a=n(506),l=n(80),u=r(a),s=r("".slice),c=Math.ceil,f=function(e){return function(t,n,r){var a,f,d=i(l(t)),p=o(n),h=d.length,v=void 0===r?" ":i(r);return p<=h||""===v?d:((f=u(v,c((a=p-h)/v.length))).length>a&&(f=s(f,0,a)),e?d+f:f+d)}};e.exports={start:f(!1),end:f(!0)}},,,,,function(e,t,n){"use strict";function r(){return(r=Object.assign||function(e){for(var t=1;t"===t[0]&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch(e){return!1}return!1}}function v(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function g(e,t,n,r){if(e){n=n||document;do{if(null!=t&&(">"===t[0]?e.parentNode===n&&h(e,t):h(e,t))||r&&e===n)return e;if(e===n)break}while(e=v(e))}return null}var y,m=/\s+/g;function b(e,t,n){if(e&&t)if(e.classList)e.classList[n?"add":"remove"](t);else{var r=(" "+e.className+" ").replace(m," ").replace(" "+t+" "," ");e.className=(r+(n?" "+t:"")).replace(m," ")}}function x(e,t,n){var r=e&&e.style;if(r){if(void 0===n)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(n=e.currentStyle),void 0===t?n:n[t];t in r||-1!==t.indexOf("webkit")||(t="-webkit-"+t),r[t]=n+("string"==typeof n?"":"px")}}function w(e,t){var n="";if("string"==typeof e)n=e;else do{var r=x(e,"transform");r&&"none"!==r&&(n=r+" "+n)}while(!t&&(e=e.parentNode));var o=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return o&&new o(n)}function _(e,t,n){if(e){var r=e.getElementsByTagName(t),o=0,i=r.length;if(n)for(;o=i:o<=i))return r;if(r===C())break;r=j(r,!1)}return!1}function M(e,t,n){for(var r=0,o=0,i=e.children;o=0||(o[n]=e[n]);return o}(o,["evt"]);B.pluginEvent.bind(Ne)(e,t,r({dragEl:U,parentEl:Z,ghostEl:W,rootEl:K,nextEl:G,lastDownEl:q,cloneEl:Y,cloneHidden:X,dragStarted:ce,putSortable:re,activeSortable:Ne.active,originalEvent:i,oldIndex:J,oldDraggableIndex:ee,newIndex:Q,newDraggableIndex:te,hideGhostForTarget:je,unhideGhostForTarget:Te,cloneNowHidden:function(){X=!0},cloneNowShown:function(){X=!1},dispatchSortableEvent:function(e){$({sortable:t,name:e,originalEvent:i})}},a))};function $(e){F(r({putSortable:re,cloneEl:Y,targetEl:U,rootEl:K,oldIndex:J,oldDraggableIndex:ee,newIndex:Q,newDraggableIndex:te},e))}var U,Z,W,K,G,q,Y,X,J,Q,ee,te,ne,re,oe,ie,ae,le,ue,se,ce,fe,de,pe,he,ve=!1,ge=!1,ye=[],me=!1,be=!1,xe=[],we=!1,_e=[],Ce="undefined"!=typeof document,Oe=s,Ee=a||i?"cssFloat":"float",Me=Ce&&!c&&!s&&"draggable"in document.createElement("div"),Se=function(){if(Ce){if(i)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto","auto"===e.style.pointerEvents}}(),Ae=function(e,t){var n=x(e),r=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),o=M(e,0,t),i=M(e,1,t),a=o&&x(o),l=i&&x(i),u=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+O(o).width,s=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+O(i).width;return"flex"===n.display?"column"===n.flexDirection||"column-reverse"===n.flexDirection?"vertical":"horizontal":"grid"===n.display?n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal":o&&a.float&&"none"!==a.float?!i||"both"!==l.clear&&l.clear!==("left"===a.float?"left":"right")?"horizontal":"vertical":o&&("block"===a.display||"flex"===a.display||"table"===a.display||"grid"===a.display||u>=r&&"none"===n[Ee]||i&&"none"===n[Ee]&&u+s>r)?"vertical":"horizontal"},ke=function(e){function t(e,n){return function(r,o,i,a){if(null==e&&(n||r.options.group.name&&o.options.group.name&&r.options.group.name===o.options.group.name))return!0;if(null==e||!1===e)return!1;if(n&&"clone"===e)return e;if("function"==typeof e)return t(e(r,o,i,a),n)(r,o,i,a);var l=(n?r:o).options.group.name;return!0===e||"string"==typeof e&&e===l||e.join&&e.indexOf(l)>-1}}var n={},r=e.group;r&&"object"==typeof r||(r={name:r}),n.name=r.name,n.checkPull=t(r.pull,!0),n.checkPut=t(r.put),n.revertClone=r.revertClone,e.group=n},je=function(){!Se&&W&&x(W,"display","none")},Te=function(){!Se&&W&&x(W,"display","")};Ce&&document.addEventListener("click",(function(e){if(ge)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),ge=!1,!1}),!0);var Pe,Le=function(e){if(U){var t=(o=(e=e.touches?e.touches[0]:e).clientX,i=e.clientY,ye.some((function(e){if(!S(e)){var t=O(e),n=e[I].options.emptyInsertThreshold;return n&&o>=t.left-n&&o<=t.right+n&&i>=t.top-n&&i<=t.bottom+n?a=e:void 0}})),a);if(t){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]=e[r]);n.target=n.rootEl=t,n.preventDefault=void 0,n.stopPropagation=void 0,t[I]._onDragOver(n)}}var o,i,a},ze=function(e){U&&U.parentNode[I]._isOutsideThisEl(e.target)};function Ne(e,t){if(!e||!e.nodeType||1!==e.nodeType)throw"Sortable: `el` must be an HTMLElement, not "+{}.toString.call(e);this.el=e,this.options=t=Object.assign({},t),e[I]=this;var n,o,i={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Ae(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(e,t){e.setData("Text",t.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:!1!==Ne.supportPointer&&"PointerEvent"in window,emptyInsertThreshold:5};for(var a in B.initializePlugins(this,e,i),i)!(a in t)&&(t[a]=i[a]);for(var l in ke(t),this)"_"===l.charAt(0)&&"function"==typeof this[l]&&(this[l]=this[l].bind(this));this.nativeDraggable=!t.forceFallback&&Me,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?d(e,"pointerdown",this._onTapStart):(d(e,"mousedown",this._onTapStart),d(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(d(e,"dragover",this),d(e,"dragenter",this)),ye.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),Object.assign(this,(o=[],{captureAnimationState:function(){o=[],this.options.animation&&[].slice.call(this.el.children).forEach((function(e){if("none"!==x(e,"display")&&void 0!==e){o.push({target:e,rect:O(e)});var t=r({},o[o.length-1].rect);if(e.thisAnimationDuration){var n=w(e,!0);n&&(t.top-=n.f,t.left-=n.e)}e.fromRect=t}}))},addAnimationState:function(e){o.push(e)},removeAnimationState:function(e){o.splice(function(e,t){for(var n in e)if(e.hasOwnProperty(n))for(var r in t)if(t.hasOwnProperty(r)&&t[r]===e[n][r])return Number(n);return-1}(o,{target:e}),1)},animateAll:function(e){var t=this;if(!this.options.animation)return clearTimeout(n),void("function"==typeof e&&e());var r=!1,i=0;o.forEach((function(e){var n=0,o=e.target,a=o.fromRect,l=O(o),u=o.prevFromRect,s=o.prevToRect,c=e.rect,f=w(o,!0);f&&(l.top-=f.f,l.left-=f.e),o.toRect=l,o.thisAnimationDuration&&T(u,l)&&!T(a,l)&&(c.top-l.top)/(c.left-l.left)==(a.top-l.top)/(a.left-l.left)&&(n=function(e,t,n,r){return Math.sqrt(Math.pow(t.top-e.top,2)+Math.pow(t.left-e.left,2))/Math.sqrt(Math.pow(t.top-n.top,2)+Math.pow(t.left-n.left,2))*r.animation}(c,u,s,t.options)),T(l,a)||(o.prevFromRect=a,o.prevToRect=l,n||(n=t.options.animation),t.animate(o,c,l,n)),n&&(r=!0,i=Math.max(i,n),clearTimeout(o.animationResetTimer),o.animationResetTimer=setTimeout((function(){o.animationTime=0,o.prevFromRect=null,o.fromRect=null,o.prevToRect=null,o.thisAnimationDuration=null}),n),o.thisAnimationDuration=n)})),clearTimeout(n),r?n=setTimeout((function(){"function"==typeof e&&e()}),i):"function"==typeof e&&e(),o=[]},animate:function(e,t,n,r){if(r){x(e,"transition",""),x(e,"transform","");var o=w(this.el),i=(t.left-n.left)/(o&&o.a||1),a=(t.top-n.top)/(o&&o.d||1);e.animatingX=!!i,e.animatingY=!!a,x(e,"transform","translate3d("+i+"px,"+a+"px,0)"),this.forRepaintDummy=function(e){return e.offsetWidth}(e),x(e,"transition","transform "+r+"ms"+(this.options.easing?" "+this.options.easing:"")),x(e,"transform","translate3d(0,0,0)"),"number"==typeof e.animated&&clearTimeout(e.animated),e.animated=setTimeout((function(){x(e,"transition",""),x(e,"transform",""),e.animated=!1,e.animatingX=!1,e.animatingY=!1}),r)}}}))}function De(e,t,n,r,o,l,u,s){var c,f,d=e[I],p=d.options.onMove;return!window.CustomEvent||i||a?(c=document.createEvent("Event")).initEvent("move",!0,!0):c=new CustomEvent("move",{bubbles:!0,cancelable:!0}),c.to=t,c.from=e,c.dragged=n,c.draggedRect=r,c.related=o||t,c.relatedRect=l||O(t),c.willInsertAfter=s,c.originalEvent=u,e.dispatchEvent(c),p&&(f=p.call(d,c,u)),f}function Ie(e){e.draggable=!1}function Re(){we=!1}function He(e){for(var t=e.tagName+e.className+e.src+e.href+e.textContent,n=t.length,r=0;n--;)r+=t.charCodeAt(n);return r.toString(36)}function Be(e){return setTimeout(e,0)}function Fe(e){return clearTimeout(e)}Ne.prototype={constructor:Ne,_isOutsideThisEl:function(e){this.el.contains(e)||e===this.el||(fe=null)},_getDirection:function(e,t){return"function"==typeof this.options.direction?this.options.direction.call(this,e,t,U):this.options.direction},_onTapStart:function(e){if(e.cancelable){var t=this,n=this.el,r=this.options,o=r.preventOnFilter,i=e.type,a=e.touches&&e.touches[0]||e.pointerType&&"touch"===e.pointerType&&e,l=(a||e).target,s=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||l,c=r.filter;if(function(e){_e.length=0;for(var t=e.getElementsByTagName("input"),n=t.length;n--;){var r=t[n];r.checked&&_e.push(r)}}(n),!U&&!(/mousedown|pointerdown/.test(i)&&0!==e.button||r.disabled)&&!s.isContentEditable&&(this.nativeDraggable||!u||!l||"SELECT"!==l.tagName.toUpperCase())&&!((l=g(l,r.draggable,n,!1))&&l.animated||q===l)){if(J=A(l),ee=A(l,r.draggable),"function"==typeof c){if(c.call(this,e,l,this))return $({sortable:t,rootEl:s,name:"filter",targetEl:l,toEl:n,fromEl:n}),V("filter",t,{evt:e}),void(o&&e.cancelable&&e.preventDefault())}else if(c&&(c=c.split(",").some((function(r){if(r=g(s,r.trim(),n,!1))return $({sortable:t,rootEl:r,name:"filter",targetEl:l,fromEl:n,toEl:n}),V("filter",t,{evt:e}),!0}))))return void(o&&e.cancelable&&e.preventDefault());r.handle&&!g(s,r.handle,n,!1)||this._prepareDragStart(e,a,l)}}},_prepareDragStart:function(e,t,n){var r,o=this,u=o.el,s=o.options,c=u.ownerDocument;if(n&&!U&&n.parentNode===u){var f=O(n);if(K=u,Z=(U=n).parentNode,G=U.nextSibling,q=n,ne=s.group,Ne.dragged=U,ue=(oe={target:U,clientX:(t||e).clientX,clientY:(t||e).clientY}).clientX-f.left,se=oe.clientY-f.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,U.style["will-change"]="all",r=function(){V("delayEnded",o,{evt:e}),Ne.eventCanceled?o._onDrop():(o._disableDelayedDragEvents(),!l&&o.nativeDraggable&&(U.draggable=!0),o._triggerDragStart(e,t),$({sortable:o,name:"choose",originalEvent:e}),b(U,s.chosenClass,!0))},s.ignore.split(",").forEach((function(e){_(U,e.trim(),Ie)})),d(c,"dragover",Le),d(c,"mousemove",Le),d(c,"touchmove",Le),d(c,"mouseup",o._onDrop),d(c,"touchend",o._onDrop),d(c,"touchcancel",o._onDrop),l&&this.nativeDraggable&&(this.options.touchStartThreshold=4,U.draggable=!0),V("delayStart",this,{evt:e}),!s.delay||s.delayOnTouchOnly&&!t||this.nativeDraggable&&(a||i))r();else{if(Ne.eventCanceled)return void this._onDrop();d(c,"mouseup",o._disableDelayedDrag),d(c,"touchend",o._disableDelayedDrag),d(c,"touchcancel",o._disableDelayedDrag),d(c,"mousemove",o._delayedDragTouchMoveHandler),d(c,"touchmove",o._delayedDragTouchMoveHandler),s.supportPointer&&d(c,"pointermove",o._delayedDragTouchMoveHandler),o._dragStartTimer=setTimeout(r,s.delay)}}},_delayedDragTouchMoveHandler:function(e){var t=e.touches?e.touches[0]:e;Math.max(Math.abs(t.clientX-this._lastX),Math.abs(t.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){U&&Ie(U),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;p(e,"mouseup",this._disableDelayedDrag),p(e,"touchend",this._disableDelayedDrag),p(e,"touchcancel",this._disableDelayedDrag),p(e,"mousemove",this._delayedDragTouchMoveHandler),p(e,"touchmove",this._delayedDragTouchMoveHandler),p(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t=t||"touch"==e.pointerType&&e,!this.nativeDraggable||t?d(document,this.options.supportPointer?"pointermove":t?"touchmove":"mousemove",this._onTouchMove):(d(U,"dragend",this),d(K,"dragstart",this._onDragStart));try{document.selection?Be((function(){document.selection.empty()})):window.getSelection().removeAllRanges()}catch(e){}},_dragStarted:function(e,t){if(ve=!1,K&&U){V("dragStarted",this,{evt:t}),this.nativeDraggable&&d(document,"dragover",ze);var n=this.options;!e&&b(U,n.dragClass,!1),b(U,n.ghostClass,!0),Ne.active=this,e&&this._appendGhost(),$({sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(ie){this._lastX=ie.clientX,this._lastY=ie.clientY,je();for(var e=document.elementFromPoint(ie.clientX,ie.clientY),t=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(ie.clientX,ie.clientY))!==t;)t=e;if(U.parentNode[I]._isOutsideThisEl(e),t)do{if(t[I]&&t[I]._onDragOver({clientX:ie.clientX,clientY:ie.clientY,target:e,rootEl:t})&&!this.options.dragoverBubble)break;e=t}while(t=t.parentNode);Te()}},_onTouchMove:function(e){if(oe){var t=this.options,n=t.fallbackTolerance,r=t.fallbackOffset,o=e.touches?e.touches[0]:e,i=W&&w(W,!0),a=W&&i&&i.a,l=W&&i&&i.d,u=Oe&&he&&k(he),s=(o.clientX-oe.clientX+r.x)/(a||1)+(u?u[0]-xe[0]:0)/(a||1),c=(o.clientY-oe.clientY+r.y)/(l||1)+(u?u[1]-xe[1]:0)/(l||1);if(!Ne.active&&!ve){if(n&&Math.max(Math.abs(o.clientX-this._lastX),Math.abs(o.clientY-this._lastY))r.right+10||e.clientX<=r.right&&e.clientY>r.bottom&&e.clientX>=r.left:e.clientX>r.right&&e.clientY>r.top||e.clientX<=r.right&&e.clientY>r.bottom+10}(e,i,this)&&!y.animated){if(y===U)return B(!1);if(y&&a===e.target&&(l=y),l&&(n=O(l)),!1!==De(K,a,U,t,l,n,e,!!l))return H(),a.appendChild(U),Z=a,F(),B(!0)}else if(l.parentNode===a){n=O(l);var m,w,_,C=U.parentNode!==a,M=!function(e,t,n){var r=n?e.left:e.top,o=n?t.left:t.top;return r===o||(n?e.right:e.bottom)===(n?t.right:t.bottom)||r+(n?e.width:e.height)/2===o+(n?t.width:t.height)/2}(U.animated&&U.toRect||t,l.animated&&l.toRect||n,i),k=i?"top":"left",j=E(l,"top","top")||E(U,"top","top"),T=j?j.scrollTop:void 0;if(fe!==l&&(w=n[k],me=!1,be=!M&&u.invertSwap||C),0!==(m=function(e,t,n,r,o,i,a,l){var u=r?e.clientY:e.clientX,s=r?n.height:n.width,c=r?n.top:n.left,f=r?n.bottom:n.right,d=!1;if(!a)if(l&&pec+s*i/2:uf-pe)return-de}else if(u>c+s*(1-o)/2&&uf-s*i/2)?u>c+s/2?1:-1:0}(e,l,n,i,M?1:u.swapThreshold,null==u.invertedSwapThreshold?u.swapThreshold:u.invertedSwapThreshold,be,fe===l))){var P=A(U);do{_=Z.children[P-=m]}while(_&&("none"===x(_,"display")||_===W))}if(0===m||_===l)return B(!1);fe=l,de=m;var z=l.nextElementSibling,N=!1,D=De(K,a,U,t,l,n,e,N=1===m);if(!1!==D)return 1!==D&&-1!==D||(N=1===D),we=!0,setTimeout(Re,30),H(),N&&!z?a.appendChild(U):l.parentNode.insertBefore(U,N?z:l),j&&L(j,0,T-j.scrollTop),Z=U.parentNode,void 0===w||be||(pe=Math.abs(w-O(l)[k])),F(),B(!0)}if(a.contains(U))return B(!1)}return!1}function R(u,s){V(u,h,r({evt:e,isOwner:f,axis:i?"vertical":"horizontal",revert:o,dragRect:t,targetRect:n,canSort:d,fromSortable:p,target:l,completed:B,onMove:function(n,r){return De(K,a,U,t,n,O(n),e,r)},changed:F},s))}function H(){R("dragOverAnimationCapture"),h.captureAnimationState(),h!==p&&p.captureAnimationState()}function B(t){return R("dragOverCompleted",{insertion:t}),t&&(f?c._hideClone():c._showClone(h),h!==p&&(b(U,re?re.options.ghostClass:c.options.ghostClass,!1),b(U,u.ghostClass,!0)),re!==h&&h!==Ne.active?re=h:h===Ne.active&&re&&(re=null),p===h&&(h._ignoreWhileAnimating=l),h.animateAll((function(){R("dragOverAnimationComplete"),h._ignoreWhileAnimating=null})),h!==p&&(p.animateAll(),p._ignoreWhileAnimating=null)),(l===U&&!U.animated||l===a&&!l.animated)&&(fe=null),u.dragoverBubble||e.rootEl||l===document||(U.parentNode[I]._isOutsideThisEl(e.target),!t&&Le(e)),!u.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),v=!0}function F(){Q=A(U),te=A(U,u.draggable),$({sortable:h,name:"change",toEl:a,newIndex:Q,newDraggableIndex:te,originalEvent:e})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){p(document,"mousemove",this._onTouchMove),p(document,"touchmove",this._onTouchMove),p(document,"pointermove",this._onTouchMove),p(document,"dragover",Le),p(document,"mousemove",Le),p(document,"touchmove",Le)},_offUpEvents:function(){var e=this.el.ownerDocument;p(e,"mouseup",this._onDrop),p(e,"touchend",this._onDrop),p(e,"pointerup",this._onDrop),p(e,"touchcancel",this._onDrop),p(document,"selectstart",this)},_onDrop:function(e){var t=this.el,n=this.options;Q=A(U),te=A(U,n.draggable),V("drop",this,{evt:e}),Z=U&&U.parentNode,Q=A(U),te=A(U,n.draggable),Ne.eventCanceled||(ve=!1,be=!1,me=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),Fe(this.cloneId),Fe(this._dragStartId),this.nativeDraggable&&(p(document,"drop",this),p(t,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),u&&x(document.body,"user-select",""),x(U,"transform",""),e&&(ce&&(e.cancelable&&e.preventDefault(),!n.dropBubble&&e.stopPropagation()),W&&W.parentNode&&W.parentNode.removeChild(W),(K===Z||re&&"clone"!==re.lastPutMode)&&Y&&Y.parentNode&&Y.parentNode.removeChild(Y),U&&(this.nativeDraggable&&p(U,"dragend",this),Ie(U),U.style["will-change"]="",ce&&!ve&&b(U,re?re.options.ghostClass:this.options.ghostClass,!1),b(U,this.options.chosenClass,!1),$({sortable:this,name:"unchoose",toEl:Z,newIndex:null,newDraggableIndex:null,originalEvent:e}),K!==Z?(Q>=0&&($({rootEl:Z,name:"add",toEl:Z,fromEl:K,originalEvent:e}),$({sortable:this,name:"remove",toEl:Z,originalEvent:e}),$({rootEl:Z,name:"sort",toEl:Z,fromEl:K,originalEvent:e}),$({sortable:this,name:"sort",toEl:Z,originalEvent:e})),re&&re.save()):Q!==J&&Q>=0&&($({sortable:this,name:"update",toEl:Z,originalEvent:e}),$({sortable:this,name:"sort",toEl:Z,originalEvent:e})),Ne.active&&(null!=Q&&-1!==Q||(Q=J,te=ee),$({sortable:this,name:"end",toEl:Z,originalEvent:e}),this.save())))),this._nulling()},_nulling:function(){V("nulling",this),K=U=Z=W=G=Y=q=X=oe=ie=ce=Q=te=J=ee=fe=de=re=ne=Ne.dragged=Ne.ghost=Ne.clone=Ne.active=null,_e.forEach((function(e){e.checked=!0})),_e.length=ae=le=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":U&&(this._onDragOver(e),function(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move"),e.cancelable&&e.preventDefault()}(e));break;case"selectstart":e.preventDefault()}},toArray:function(){for(var e,t=[],n=this.el.children,r=0,o=n.length,i=this.options;r1&&(Ke.forEach((function(e){r.addAnimationState({target:e,rect:Ye?O(e):o}),D(e),e.fromRect=o,t.removeAnimationState(e)})),Ye=!1,function(e,t){Ke.forEach((function(n,r){var o=t.children[n.sortableIndex+(e?Number(r):0)];o?t.insertBefore(n,o):t.appendChild(n)}))}(!this.options.removeCloneOnHide,n))},dragOverCompleted:function(e){var t=e.sortable,n=e.isOwner,r=e.activeSortable,o=e.parentEl,i=e.putSortable,a=this.options;if(e.insertion){if(n&&r._hideClone(),qe=!1,a.animation&&Ke.length>1&&(Ye||!n&&!r.options.sort&&!i)){var l=O(Ue,!1,!0,!0);Ke.forEach((function(e){e!==Ue&&(N(e,l),o.appendChild(e))})),Ye=!0}if(!n)if(Ye||Qe(),Ke.length>1){var u=We;r._showClone(t),r.options.animation&&!We&&u&&Ge.forEach((function(e){r.addAnimationState({target:e,rect:Ze}),e.fromRect=Ze,e.thisAnimationDuration=null}))}else r._showClone(t)}},dragOverAnimationCapture:function(e){var t=e.dragRect,n=e.isOwner,r=e.activeSortable;if(Ke.forEach((function(e){e.thisAnimationDuration=null})),r.options.animation&&!n&&r.multiDrag.isMultiDrag){Ze=Object.assign({},t);var o=w(Ue,!0);Ze.top-=o.f,Ze.left-=o.e}},dragOverAnimationComplete:function(){Ye&&(Ye=!1,Qe())},drop:function(e){var t=e.originalEvent,n=e.rootEl,r=e.parentEl,o=e.sortable,i=e.dispatchSortableEvent,a=e.oldIndex,l=e.putSortable,u=l||this.sortable;if(t){var s=this.options,c=r.children;if(!Xe)if(s.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),b(Ue,s.selectedClass,!~Ke.indexOf(Ue)),~Ke.indexOf(Ue))Ke.splice(Ke.indexOf(Ue),1),Ve=null,F({sortable:o,rootEl:n,name:"deselect",targetEl:Ue,originalEvt:t});else{if(Ke.push(Ue),F({sortable:o,rootEl:n,name:"select",targetEl:Ue,originalEvt:t}),t.shiftKey&&Ve&&o.el.contains(Ve)){var f,d,p=A(Ve),h=A(Ue);if(~p&&~h&&p!==h)for(h>p?(d=p,f=h):(d=h,f=p+1);d1){var v=O(Ue),g=A(Ue,":not(."+this.options.selectedClass+")");if(!qe&&s.animation&&(Ue.thisAnimationDuration=null),u.captureAnimationState(),!qe&&(s.animation&&(Ue.fromRect=v,Ke.forEach((function(e){if(e.thisAnimationDuration=null,e!==Ue){var t=Ye?O(e):v;e.fromRect=t,u.addAnimationState({target:e,rect:t})}}))),Qe(),Ke.forEach((function(e){c[g]?r.insertBefore(e,c[g]):r.appendChild(e),g++})),a===A(Ue))){var y=!1;Ke.forEach((function(e){e.sortableIndex===A(e)||(y=!0)})),y&&i("update")}Ke.forEach((function(e){D(e)})),u.animateAll()}$e=u}(n===r||l&&"clone"!==l.lastPutMode)&&Ge.forEach((function(e){e.parentNode&&e.parentNode.removeChild(e)}))}},nullingGlobal:function(){this.isMultiDrag=Xe=!1,Ge.length=0},destroyGlobal:function(){this._deselectMultiDrag(),p(document,"pointerup",this._deselectMultiDrag),p(document,"mouseup",this._deselectMultiDrag),p(document,"touchend",this._deselectMultiDrag),p(document,"keydown",this._checkKeyDown),p(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(e){if(!(void 0!==Xe&&Xe||$e!==this.sortable||e&&g(e.target,this.options.draggable,this.sortable.el,!1)||e&&0!==e.button))for(;Ke.length;){var t=Ke[0];b(t,this.options.selectedClass,!1),Ke.shift(),F({sortable:this.sortable,rootEl:this.sortable.el,name:"deselect",targetEl:t,originalEvt:e})}},_checkKeyDown:function(e){e.key===this.options.multiDragKey&&(this.multiDragKeyDown=!0)},_checkKeyUp:function(e){e.key===this.options.multiDragKey&&(this.multiDragKeyDown=!1)}},Object.assign(e,{pluginName:"multiDrag",utils:{select:function(e){var t=e.parentNode[I];t&&t.options.multiDrag&&!~Ke.indexOf(e)&&($e&&$e!==t&&($e.multiDrag._deselectMultiDrag(),$e=t),b(e,t.options.selectedClass,!0),Ke.push(e))},deselect:function(e){var t=e.parentNode[I],n=Ke.indexOf(e);t&&t.options.multiDrag&&~n&&(b(e,t.options.selectedClass,!1),Ke.splice(n,1))}},eventProperties:function(){var e=this,t=[],n=[];return Ke.forEach((function(r){var o;t.push({multiDragElement:r,index:r.sortableIndex}),o=Ye&&r!==Ue?-1:Ye?A(r,":not(."+e.options.selectedClass+")"):A(r),n.push({multiDragElement:r,index:o})})),{items:[].concat(Ke),clones:[].concat(Ge),oldIndicies:t,newIndicies:n}},optionListeners:{multiDragKey:function(e){return"ctrl"===(e=e.toLowerCase())?e="Control":e.length>1&&(e=e.charAt(0).toUpperCase()+e.substr(1)),e}}})}),t.default=Ne},,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=d(n(1083)),o=d(n(900)),i=d(n(1033)),a=d(n(2842)),l=d(n(2843)),u=d(n(870)),s=d(n(912)),c=d(n(1649)),f=n(1032);function d(e){return e&&e.__esModule?e:{default:e}}var p=(0,r.default)({chartName:"ComposedChart",GraphicalChild:[a.default,o.default,i.default,l.default],axisComponents:[{axisType:"xAxis",AxisComp:u.default},{axisType:"yAxis",AxisComp:s.default},{axisType:"zAxis",AxisComp:c.default}],formatAxisMap:f.formatAxisMap});t.default=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=b(n(806)),o=b(n(194)),i=b(n(857)),a=function(e){if(e&&e.__esModule)return e;var t=m();if(t&&t.has(e))return t.get(e);var n={};if(null!=e){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}}n.default=e,t&&t.set(e,n);return n}(n(0)),l=b(n(1)),u=b(n(990)),s=b(n(3)),c=b(n(1082)),f=b(n(946)),d=b(n(868)),p=b(n(1030)),h=b(n(1157)),v=n(826),g=n(809),y=n(911);function m(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return m=function(){return e},e}function b(e){return e&&e.__esModule?e:{default:e}}function x(e){return(x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function w(){return(w=Object.assign||function(e){for(var t=1;ti){l=[].concat(E(n.slice(0,u)),[i-s]);break}var c=l.length%2==0?[0,a]:[a];return[].concat(E(this.constructor.repeat(n,o)),E(l),c).map((function(e){return"".concat(e,"px")})).join(", ")}},{key:"renderErrorBar",value:function(){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var e=this.props,t=e.points,n=e.xAxis,r=e.yAxis,o=e.layout,i=e.children,l=(0,g.findAllByType)(i,h.default);if(!l)return null;function u(e,t){return{x:e.x,y:e.y,value:e.value,errorVal:(0,y.getValueByDataKey)(e.payload,t)}}return l.map((function(e,i){return a.default.cloneElement(e,{key:i,data:t,xAxis:n,yAxis:r,layout:o,dataPointFormatter:u})}))}},{key:"renderDots",value:function(e,t){var n=this;if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var r=this.props,o=r.dot,i=r.points,l=r.dataKey,u=(0,g.getPresentationAttributes)(this.props),s=(0,g.getPresentationAttributes)(o),c=(0,g.filterEventAttributes)(o),f=i.map((function(e,t){var r=C({key:"dot-".concat(t),r:3},u,{},s,{},c,{value:e.value,dataKey:l,cx:e.x,cy:e.y,index:t,payload:e.payload});return n.constructor.renderDotItem(o,r)})),p={clipPath:e?"url(#clipPath-".concat(t,")"):null};return a.default.createElement(d.default,w({className:"recharts-line-dots",key:"dots"},p),f)}},{key:"renderCurveStatically",value:function(e,t,n,r){var o=this.props,i=o.type,l=o.layout,u=o.connectNulls,s=C({},(0,g.getPresentationAttributes)(this.props),{},(0,g.filterEventAttributes)(this.props),{fill:"none",className:"recharts-line-curve",clipPath:t?"url(#clipPath-".concat(n,")"):null,points:e},r,{type:i,layout:l,connectNulls:u});return a.default.createElement(c.default,w({},s,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(e,t){var n=this,r=this.props,o=r.points,i=r.strokeDasharray,l=r.isAnimationActive,s=r.animationBegin,c=r.animationDuration,f=r.animationEasing,d=r.animationId,p=r.width,h=r.height,g=this.state,y=g.prevPoints,m=g.totalLength;return a.default.createElement(u.default,{begin:s,duration:c,isActive:l,easing:f,from:{t:0},to:{t:1},key:"line-".concat(d),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(r){var a=r.t;if(y){var l=y.length/o.length,u=o.map((function(e,t){var r=Math.floor(t*l);if(y[r]){var o=y[r],i=(0,v.interpolateNumber)(o.x,e.x),u=(0,v.interpolateNumber)(o.y,e.y);return C({},e,{x:i(a),y:u(a)})}if(n.animateNewValues){var s=(0,v.interpolateNumber)(2*p,e.x),c=(0,v.interpolateNumber)(h/2,e.y);return C({},e,{x:s(a),y:c(a)})}return C({},e,{x:e.x,y:e.y})}));return n.renderCurveStatically(u,e,t)}var s,c=(0,v.interpolateNumber)(0,m)(a);if(i){var f=i.split(/[,\s]+/gim).map((function(e){return parseFloat(e)}));s=n.getStrokeDasharray(c,m,f)}else s="".concat(c,"px ").concat(m-c,"px");return n.renderCurveStatically(o,e,t,{strokeDasharray:s})}))}},{key:"renderCurve",value:function(e,t){var n=this.props,o=n.points,i=n.isAnimationActive,a=this.state,l=a.prevPoints,u=a.totalLength;return i&&o&&o.length&&(!l&&u>0||!(0,r.default)(l,o))?this.renderCurveWithAnimation(e,t):this.renderCurveStatically(o,e,t)}},{key:"render",value:function(){var e=this.props,t=e.hide,n=e.dot,r=e.points,o=e.className,l=e.xAxis,u=e.yAxis,c=e.top,f=e.left,h=e.width,v=e.height,g=e.isAnimationActive,y=e.id;if(t||!r||!r.length)return null;var m=this.state.isAnimationFinished,b=1===r.length,x=(0,s.default)("recharts-line",o),w=l&&l.allowDataOverflow||u&&u.allowDataOverflow,_=(0,i.default)(y)?this.id:y;return a.default.createElement(d.default,{className:x},w?a.default.createElement("defs",null,a.default.createElement("clipPath",{id:"clipPath-".concat(_)},a.default.createElement("rect",{x:f,y:c,width:h,height:v}))):null,!b&&this.renderCurve(w,_),this.renderErrorBar(),(b||n)&&this.renderDots(w,_),(!g||m)&&p.default.renderCallByParent(this.props,r))}}])&&S(n.prototype,l),m&&S(n,m),t}(a.PureComponent);T.displayName="Line",T.propTypes=C({},g.PRESENTATION_ATTRIBUTES,{},g.EVENT_ATTRIBUTES,{className:l.default.string,type:l.default.oneOfType([l.default.oneOf(["basis","basisClosed","basisOpen","linear","linearClosed","natural","monotoneX","monotoneY","monotone","step","stepBefore","stepAfter"]),l.default.func]),unit:l.default.oneOfType([l.default.string,l.default.number]),name:l.default.oneOfType([l.default.string,l.default.number]),yAxisId:l.default.oneOfType([l.default.string,l.default.number]),xAxisId:l.default.oneOfType([l.default.string,l.default.number]),yAxis:l.default.object,xAxis:l.default.object,legendType:l.default.oneOf(g.LEGEND_TYPES),tooltipType:l.default.oneOf(g.TOOLTIP_TYPES),layout:l.default.oneOf(["horizontal","vertical"]),connectNulls:l.default.bool,hide:l.default.bool,activeDot:l.default.oneOfType([l.default.object,l.default.element,l.default.func,l.default.bool]),dot:l.default.oneOfType([l.default.object,l.default.element,l.default.func,l.default.bool]),top:l.default.number,left:l.default.number,width:l.default.number,height:l.default.number,points:l.default.arrayOf(l.default.shape({x:l.default.number,y:l.default.number,value:l.default.value})),onAnimationStart:l.default.func,onAnimationEnd:l.default.func,isAnimationActive:l.default.bool,animateNewValues:l.default.bool,animationBegin:l.default.number,animationDuration:l.default.number,animationEasing:l.default.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),animationId:l.default.number,id:l.default.string}),T.defaultProps={xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!(0,g.isSsr)(),animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,onAnimationStart:function(){},onAnimationEnd:function(){}},T.getComposedData=function(e){var t=e.props,n=e.xAxis,r=e.yAxis,o=e.xAxisTicks,a=e.yAxisTicks,l=e.dataKey,u=e.bandSize,s=e.displayedData,c=e.offset,f=t.layout;return C({points:s.map((function(e,t){var s=(0,y.getValueByDataKey)(e,l);return"horizontal"===f?{x:(0,y.getCateCoordinateOfLine)({axis:n,ticks:o,bandSize:u,entry:e,index:t}),y:(0,i.default)(s)?null:r.scale(s),value:s,payload:e}:{x:(0,i.default)(s)?null:n.scale(s),y:(0,y.getCateCoordinateOfLine)({axis:r,ticks:a,bandSize:u,entry:e,index:t}),value:s,payload:e}})),layout:f},c)};var P=T;t.default=P},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=w(n(806)),o=w(n(194)),i=w(n(857)),a=function(e){if(e&&e.__esModule)return e;var t=x();if(t&&t.has(e))return t.get(e);var n={};if(null!=e){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}}n.default=e,t&&t.set(e,n);return n}(n(0)),l=w(n(1)),u=w(n(990)),s=w(n(3)),c=w(n(868)),f=w(n(1030)),d=n(809),p=w(n(1649)),h=w(n(1082)),v=w(n(1509)),g=w(n(1157)),y=w(n(998)),m=n(826),b=n(911);function x(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return x=function(){return e},e}function w(e){return e&&e.__esModule?e:{default:e}}function _(e){return(_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function C(){return(C=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:[],n=[];return(0,a.default)(t,(function(t){Array.isArray(t)?e(t).map((function(e){return n.push(e)})):(0,i.default)(t)?(0,o.default)(t,(function(e,t){!0===e&&n.push(t),n.push(t+"-"+e)})):(0,r.default)(t)&&n.push(t)})),n};t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mergeClasses=void 0;var r=a(n(1114)),o=a(n(135)),i=Object.assign||function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:[],n=e.default&&(0,o.default)(e.default)||{};return t.map((function(t){var o=e[t];return o&&(0,r.default)(o,(function(e,t){n[t]||(n[t]={}),n[t]=i({},n[t],o[t])})),t})),n};t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.autoprefix=void 0;var r,o=n(1114),i=(r=o)&&r.__esModule?r:{default:r},a=Object.assign||function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:"span";return function(n){function r(){var n,i,s;l(this,r);for(var c=arguments.length,f=Array(c),d=0;d1&&void 0!==arguments[1]?arguments[1]:"span";return function(n){function r(){var n,i,s;l(this,r);for(var c=arguments.length,f=Array(c),d=0;d1&&void 0!==arguments[1])||arguments[1];n[e]=t};return 0===e&&r("first-child"),e===t-1&&r("last-child"),(0===e||e%2==0)&&r("even"),1===Math.abs(e%2)&&r("odd"),r("nth-child",e),n}},function(e,t,n){var r;!function(o){var i=/^\s+/,a=/\s+$/,l=0,u=o.round,s=o.min,c=o.max,f=o.random;function d(e,t){if(t=t||{},(e=e||"")instanceof d)return e;if(!(this instanceof d))return new d(e,t);var n=function(e){var t={r:0,g:0,b:0},n=1,r=null,l=null,u=null,f=!1,d=!1;"string"==typeof e&&(e=function(e){e=e.replace(i,"").replace(a,"").toLowerCase();var t,n=!1;if(j[e])e=j[e],n=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};if(t=$.rgb.exec(e))return{r:t[1],g:t[2],b:t[3]};if(t=$.rgba.exec(e))return{r:t[1],g:t[2],b:t[3],a:t[4]};if(t=$.hsl.exec(e))return{h:t[1],s:t[2],l:t[3]};if(t=$.hsla.exec(e))return{h:t[1],s:t[2],l:t[3],a:t[4]};if(t=$.hsv.exec(e))return{h:t[1],s:t[2],v:t[3]};if(t=$.hsva.exec(e))return{h:t[1],s:t[2],v:t[3],a:t[4]};if(t=$.hex8.exec(e))return{r:N(t[1]),g:N(t[2]),b:N(t[3]),a:H(t[4]),format:n?"name":"hex8"};if(t=$.hex6.exec(e))return{r:N(t[1]),g:N(t[2]),b:N(t[3]),format:n?"name":"hex"};if(t=$.hex4.exec(e))return{r:N(t[1]+""+t[1]),g:N(t[2]+""+t[2]),b:N(t[3]+""+t[3]),a:H(t[4]+""+t[4]),format:n?"name":"hex8"};if(t=$.hex3.exec(e))return{r:N(t[1]+""+t[1]),g:N(t[2]+""+t[2]),b:N(t[3]+""+t[3]),format:n?"name":"hex"};return!1}(e));"object"==typeof e&&(U(e.r)&&U(e.g)&&U(e.b)?(p=e.r,h=e.g,v=e.b,t={r:255*L(p,255),g:255*L(h,255),b:255*L(v,255)},f=!0,d="%"===String(e.r).substr(-1)?"prgb":"rgb"):U(e.h)&&U(e.s)&&U(e.v)?(r=I(e.s),l=I(e.v),t=function(e,t,n){e=6*L(e,360),t=L(t,100),n=L(n,100);var r=o.floor(e),i=e-r,a=n*(1-t),l=n*(1-i*t),u=n*(1-(1-i)*t),s=r%6;return{r:255*[n,l,a,a,u,n][s],g:255*[u,n,n,l,a,a][s],b:255*[a,a,u,n,n,l][s]}}(e.h,r,l),f=!0,d="hsv"):U(e.h)&&U(e.s)&&U(e.l)&&(r=I(e.s),u=I(e.l),t=function(e,t,n){var r,o,i;function a(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}if(e=L(e,360),t=L(t,100),n=L(n,100),0===t)r=o=i=n;else{var l=n<.5?n*(1+t):n+t-n*t,u=2*n-l;r=a(u,l,e+1/3),o=a(u,l,e),i=a(u,l,e-1/3)}return{r:255*r,g:255*o,b:255*i}}(e.h,r,u),f=!0,d="hsl"),e.hasOwnProperty("a")&&(n=e.a));var p,h,v;return n=P(n),{ok:f,format:e.format||d,r:s(255,c(t.r,0)),g:s(255,c(t.g,0)),b:s(255,c(t.b,0)),a:n}}(e);this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=u(100*this._a)/100,this._format=t.format||n.format,this._gradientType=t.gradientType,this._r<1&&(this._r=u(this._r)),this._g<1&&(this._g=u(this._g)),this._b<1&&(this._b=u(this._b)),this._ok=n.ok,this._tc_id=l++}function p(e,t,n){e=L(e,255),t=L(t,255),n=L(n,255);var r,o,i=c(e,t,n),a=s(e,t,n),l=(i+a)/2;if(i==a)r=o=0;else{var u=i-a;switch(o=l>.5?u/(2-i-a):u/(i+a),i){case e:r=(t-n)/u+(t>1)+720)%360;--t;)r.h=(r.h+o)%360,i.push(d(r));return i}function k(e,t){t=t||6;for(var n=d(e).toHsv(),r=n.h,o=n.s,i=n.v,a=[],l=1/t;t--;)a.push(d({h:r,s:o,v:i})),i=(i+l)%1;return a}d.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,n,r=this.toRgb();return e=r.r/255,t=r.g/255,n=r.b/255,.2126*(e<=.03928?e/12.92:o.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:o.pow((t+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:o.pow((n+.055)/1.055,2.4))},setAlpha:function(e){return this._a=P(e),this._roundA=u(100*this._a)/100,this},toHsv:function(){var e=h(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=h(this._r,this._g,this._b),t=u(360*e.h),n=u(100*e.s),r=u(100*e.v);return 1==this._a?"hsv("+t+", "+n+"%, "+r+"%)":"hsva("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHsl:function(){var e=p(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=p(this._r,this._g,this._b),t=u(360*e.h),n=u(100*e.s),r=u(100*e.l);return 1==this._a?"hsl("+t+", "+n+"%, "+r+"%)":"hsla("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHex:function(e){return v(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,t,n,r,o){var i=[D(u(e).toString(16)),D(u(t).toString(16)),D(u(n).toString(16)),D(R(r))];if(o&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)&&i[3].charAt(0)==i[3].charAt(1))return i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0);return i.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:u(this._r),g:u(this._g),b:u(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+u(this._r)+", "+u(this._g)+", "+u(this._b)+")":"rgba("+u(this._r)+", "+u(this._g)+", "+u(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:u(100*L(this._r,255))+"%",g:u(100*L(this._g,255))+"%",b:u(100*L(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+u(100*L(this._r,255))+"%, "+u(100*L(this._g,255))+"%, "+u(100*L(this._b,255))+"%)":"rgba("+u(100*L(this._r,255))+"%, "+u(100*L(this._g,255))+"%, "+u(100*L(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(T[v(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+g(this._r,this._g,this._b,this._a),n=t,r=this._gradientType?"GradientType = 1, ":"";if(e){var o=d(e);n="#"+g(o._r,o._g,o._b,o._a)}return"progid:DXImageTransform.Microsoft.gradient("+r+"startColorstr="+t+",endColorstr="+n+")"},toString:function(e){var t=!!e;e=e||this._format;var n=!1,r=this._a<1&&this._a>=0;return t||!r||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return d(this.toString())},_applyModification:function(e,t){var n=e.apply(null,[this].concat([].slice.call(t)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(x,arguments)},brighten:function(){return this._applyModification(w,arguments)},darken:function(){return this._applyModification(_,arguments)},desaturate:function(){return this._applyModification(y,arguments)},saturate:function(){return this._applyModification(m,arguments)},greyscale:function(){return this._applyModification(b,arguments)},spin:function(){return this._applyModification(C,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(A,arguments)},complement:function(){return this._applyCombination(O,arguments)},monochromatic:function(){return this._applyCombination(k,arguments)},splitcomplement:function(){return this._applyCombination(S,arguments)},triad:function(){return this._applyCombination(E,arguments)},tetrad:function(){return this._applyCombination(M,arguments)}},d.fromRatio=function(e,t){if("object"==typeof e){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]="a"===r?e[r]:I(e[r]));e=n}return d(e,t)},d.equals=function(e,t){return!(!e||!t)&&d(e).toRgbString()==d(t).toRgbString()},d.random=function(){return d.fromRatio({r:f(),g:f(),b:f()})},d.mix=function(e,t,n){n=0===n?0:n||50;var r=d(e).toRgb(),o=d(t).toRgb(),i=n/100;return d({r:(o.r-r.r)*i+r.r,g:(o.g-r.g)*i+r.g,b:(o.b-r.b)*i+r.b,a:(o.a-r.a)*i+r.a})},d.readability=function(e,t){var n=d(e),r=d(t);return(o.max(n.getLuminance(),r.getLuminance())+.05)/(o.min(n.getLuminance(),r.getLuminance())+.05)},d.isReadable=function(e,t,n){var r,o,i=d.readability(e,t);switch(o=!1,(r=function(e){var t,n;t=((e=e||{level:"AA",size:"small"}).level||"AA").toUpperCase(),n=(e.size||"small").toLowerCase(),"AA"!==t&&"AAA"!==t&&(t="AA");"small"!==n&&"large"!==n&&(n="small");return{level:t,size:n}}(n)).level+r.size){case"AAsmall":case"AAAlarge":o=i>=4.5;break;case"AAlarge":o=i>=3;break;case"AAAsmall":o=i>=7}return o},d.mostReadable=function(e,t,n){var r,o,i,a,l=null,u=0;o=(n=n||{}).includeFallbackColors,i=n.level,a=n.size;for(var s=0;su&&(u=r,l=d(t[s]));return d.isReadable(e,l,{level:i,size:a})||!o?l:(n.includeFallbackColors=!1,d.mostReadable(e,["#fff","#000"],n))};var j=d.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},T=d.hexNames=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}(j);function P(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function L(e,t){(function(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"==typeof e&&-1!=e.indexOf("%")}(e);return e=s(t,c(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),o.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function z(e){return s(1,c(0,e))}function N(e){return parseInt(e,16)}function D(e){return 1==e.length?"0"+e:""+e}function I(e){return e<=1&&(e=100*e+"%"),e}function R(e){return o.round(255*parseFloat(e)).toString(16)}function H(e){return N(e)/255}var B,F,V,$=(F="[\\s|\\(]+("+(B="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+B+")[,|\\s]+("+B+")\\s*\\)?",V="[\\s|\\(]+("+B+")[,|\\s]+("+B+")[,|\\s]+("+B+")[,|\\s]+("+B+")\\s*\\)?",{CSS_UNIT:new RegExp(B),rgb:new RegExp("rgb"+F),rgba:new RegExp("rgba"+V),hsl:new RegExp("hsl"+F),hsla:new RegExp("hsla"+V),hsv:new RegExp("hsv"+F),hsva:new RegExp("hsva"+V),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function U(e){return!!$.CSS_UNIT.exec(e)}e.exports?e.exports=d:void 0===(r=function(){return d}.call(t,n,t,e))||(e.exports=r)}(Math)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["fill","width","height","style"]);return a.default.createElement("svg",o({viewBox:"0 0 24 24",style:o({fill:n,width:i,height:u},c)},f),a.default.createElement("path",{d:"M12,18.17L8.83,15L7.42,16.41L12,21L16.59,16.41L15.17,15M12,5.83L15.17,9L16.58,7.59L12,3L7.41,7.59L8.83,9L12,5.83Z"}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["fill","width","height","style"]);return a.default.createElement("svg",o({viewBox:"0 0 24 24",style:o({fill:n,width:i,height:u},c)},f),a.default.createElement("path",{d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"}))}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(this.props,[]);return function(e){c.forEach((function(t){return delete e[t]}))}(o),o.className=this.props.inputClassName,o.id=this.state.inputId,o.style=n,a.default.createElement("div",{className:this.props.className,style:t},this.renderStyles(),a.default.createElement("input",r({},o,{ref:this.inputRef})),a.default.createElement("div",{ref:this.sizerRef,style:s},e),this.props.placeholder?a.default.createElement("div",{ref:this.placeHolderSizerRef,style:s},this.props.placeholder):null)}}]),t}(i.Component);h.propTypes={className:l.default.string,defaultValue:l.default.any,extraWidth:l.default.oneOfType([l.default.number,l.default.string]),id:l.default.string,injectStyles:l.default.bool,inputClassName:l.default.string,inputRef:l.default.func,inputStyle:l.default.object,minWidth:l.default.oneOfType([l.default.number,l.default.string]),onAutosize:l.default.func,onChange:l.default.func,placeholder:l.default.string,placeholderIsMinWidth:l.default.bool,style:l.default.object,value:l.default.any},h.defaultProps={minWidth:1,injectStyles:!0},t.default=h},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){var r=n(163);e.exports=function(e){return"number"==typeof e?e:r(e)?NaN:+e}},,,,,,,function(e,t,n){var r=n(207),o=n(335),i=n(119);e.exports=function(e,t){var n={};return t=i(t,3),o(e,(function(e,o,i){r(n,t(e,o,i),e)})),n}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){var r=n(121),o=n(495),i=n(253),a=n(496),l=n(449),u=i((function(e){var t=l(e),n=r(e,a);return(t="function"==typeof t?t:void 0)&&n.pop(),n.length&&n[0]===e[0]?o(n,void 0,t):[]}));e.exports=u},function(e,t,n){var r=n(330),o=n(119),i=n(253),a=n(475),l=n(333),u=n(449),s=i((function(e){var t=u(e);return l(t)&&(t=void 0),a(r(e,1,l,!0),o(t,2))}));e.exports=s},,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CopyToClipboard=void 0;var r=i(n(0)),o=i(n(3089));function i(e){return e&&e.__esModule?e:{default:e}}function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){},l=e,u=n,f=r;if("function"==typeof u&&(f=u,u={}),!this.rules||0===Object.keys(this.rules).length)return f&&f(),Promise.resolve();function d(e){var t,n,r=void 0,o=[],i={};for(r=0;r0&&void 0!==arguments[0]?arguments[0]:[],s=i;if(Array.isArray(s)||(s=[s]),!u.suppressWarning&&s.length&&c.warning("async-validator:",s),s.length&&n.message&&(s=[].concat(n.message)),s=s.map((0,a.complementError)(n)),u.first&&s.length)return m[n.field]=1,t(s);if(r){if(n.required&&!e.value)return s=n.message?[].concat(n.message).map((0,a.complementError)(n)):u.error?[u.error(n,(0,a.format)(u.messages.required,n.field))]:[],t(s);var f={};if(n.defaultField)for(var d in e.value)e.value.hasOwnProperty(d)&&(f[d]=n.defaultField);for(var p in f=o({},f,e.rule.fields))if(f.hasOwnProperty(p)){var h=Array.isArray(f[p])?f[p]:[f[p]];f[p]=h.map(l.bind(null,p))}var v=new c(f);v.messages(u.messages),e.rule.options&&(e.rule.options.messages=u.messages,e.rule.options.error=u.error),v.validate(e.value,e.rule.options||u,(function(e){var n=[];s&&s.length&&n.push.apply(n,s),e&&e.length&&n.push.apply(n,e),t(n.length?n:null)}))}else t(s)}r=r&&(n.required||!n.required&&e.value),n.field=e.field;var f=void 0;n.asyncValidator?f=n.asyncValidator(n,e.value,s,e.source,u):n.validator&&(!0===(f=n.validator(n,e.value,s,e.source,u))?s():!1===f?s(n.message||n.field+" fails"):f instanceof Array?s(f):f instanceof Error&&s(f.message)),f&&f.then&&f.then((function(){return s()}),(function(e){return s(e)}))}),(function(e){d(e)}))},getType:function(e){if(void 0===e.type&&e.pattern instanceof RegExp&&(e.type="pattern"),"function"!=typeof e.validator&&e.type&&!u.default.hasOwnProperty(e.type))throw new Error((0,a.format)("Unknown rule type %s",e.type));return e.type||"string"},getValidationMethod:function(e){if("function"==typeof e.validator)return e.validator;var t=Object.keys(e),n=t.indexOf("message");return-1!==n&&t.splice(n,1),1===t.length&&"required"===t[0]?u.default.required:u.default[this.getType(e)]||!1}},c.register=function(e,t){if("function"!=typeof t)throw new Error("Cannot register a validator by type, validator is not a function");u.default[e]=t},c.warning=a.warning,c.messages=s.messages,t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=y(n(3158)),o=y(n(3164)),i=y(n(3165)),a=y(n(3166)),l=y(n(3167)),u=y(n(3168)),s=y(n(3169)),c=y(n(3170)),f=y(n(3171)),d=y(n(3172)),p=y(n(3173)),h=y(n(3174)),v=y(n(3175)),g=y(n(3176));function y(e){return e&&e.__esModule?e:{default:e}}t.default={string:r.default,method:o.default,number:i.default,boolean:a.default,regexp:l.default,integer:u.default,float:s.default,array:c.default,object:f.default,enum:d.default,pattern:p.default,date:h.default,url:g.default,hex:g.default,email:g.default,required:v.default}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(889),i=(r=o)&&r.__esModule?r:{default:r},a=n(848);t.default=function(e,t,n,r,o){var l=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if((0,a.isEmptyValue)(t,"string")&&!e.required)return n();i.default.required(e,t,r,l,o,"string"),(0,a.isEmptyValue)(t,"string")||(i.default.type(e,t,r,l,o),i.default.range(e,t,r,l,o),i.default.pattern(e,t,r,l,o),!0===e.whitespace&&i.default.whitespace(e,t,r,l,o))}n(l)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(848));t.default=function(e,t,n,o,i){(/^\s+$/.test(t)||""===t)&&o.push(r.format(i.messages.whitespace,e.fullField))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(848)),a=n(1723),l=(r=a)&&r.__esModule?r:{default:r};var u={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,url:new RegExp("^(?!mailto:)(?:(?:http|https|ftp)://|//)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$","i"),hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},s={integer:function(e){return s.number(e)&&parseInt(e,10)===e},float:function(e){return s.number(e)&&!s.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch(e){return!1}},date:function(e){return"function"==typeof e.getTime&&"function"==typeof e.getMonth&&"function"==typeof e.getYear},number:function(e){return!isNaN(e)&&"number"==typeof e},object:function(e){return"object"===(void 0===e?"undefined":o(e))&&!s.array(e)},method:function(e){return"function"==typeof e},email:function(e){return"string"==typeof e&&!!e.match(u.email)&&e.length<255},url:function(e){return"string"==typeof e&&!!e.match(u.url)},hex:function(e){return"string"==typeof e&&!!e.match(u.hex)}};t.default=function(e,t,n,r,a){if(e.required&&void 0===t)(0,l.default)(e,t,n,r,a);else{var u=e.type;["integer","float","array","regexp","object","method","email","number","date","url","hex"].indexOf(u)>-1?s[u](t)||r.push(i.format(a.messages.types[u],e.fullField,e.type)):u&&(void 0===t?"undefined":o(t))!==e.type&&r.push(i.format(a.messages.types[u],e.fullField,e.type))}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(848));t.default=function(e,t,n,o,i){var a="number"==typeof e.len,l="number"==typeof e.min,u="number"==typeof e.max,s=t,c=null,f="number"==typeof t,d="string"==typeof t,p=Array.isArray(t);if(f?c="number":d?c="string":p&&(c="array"),!c)return!1;p&&(s=t.length),d&&(s=t.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"_").length),a?s!==e.len&&o.push(r.format(i.messages[c].len,e.fullField,e.len)):l&&!u&&se.max?o.push(r.format(i.messages[c].max,e.fullField,e.max)):l&&u&&(se.max)&&o.push(r.format(i.messages[c].range,e.fullField,e.min,e.max))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(848));t.default=function(e,t,n,o,i){e.enum=Array.isArray(e.enum)?e.enum:[],-1===e.enum.indexOf(t)&&o.push(r.format(i.messages.enum,e.fullField,e.enum.join(", ")))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(848));t.default=function(e,t,n,o,i){if(e.pattern)if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(t)||o.push(r.format(i.messages.pattern.mismatch,e.fullField,t,e.pattern));else if("string"==typeof e.pattern){new RegExp(e.pattern).test(t)||o.push(r.format(i.messages.pattern.mismatch,e.fullField,t,e.pattern))}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(889),i=(r=o)&&r.__esModule?r:{default:r},a=n(848);t.default=function(e,t,n,r,o){var l=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if((0,a.isEmptyValue)(t)&&!e.required)return n();i.default.required(e,t,r,l,o),void 0!==t&&i.default.type(e,t,r,l,o)}n(l)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(889),i=(r=o)&&r.__esModule?r:{default:r},a=n(848);t.default=function(e,t,n,r,o){var l=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(""===t&&(t=void 0),(0,a.isEmptyValue)(t)&&!e.required)return n();i.default.required(e,t,r,l,o),void 0!==t&&(i.default.type(e,t,r,l,o),i.default.range(e,t,r,l,o))}n(l)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(848),i=n(889),a=(r=i)&&r.__esModule?r:{default:r};t.default=function(e,t,n,r,i){var l=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if((0,o.isEmptyValue)(t)&&!e.required)return n();a.default.required(e,t,r,l,i),void 0!==t&&a.default.type(e,t,r,l,i)}n(l)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(889),i=(r=o)&&r.__esModule?r:{default:r},a=n(848);t.default=function(e,t,n,r,o){var l=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if((0,a.isEmptyValue)(t)&&!e.required)return n();i.default.required(e,t,r,l,o),(0,a.isEmptyValue)(t)||i.default.type(e,t,r,l,o)}n(l)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(889),i=(r=o)&&r.__esModule?r:{default:r},a=n(848);t.default=function(e,t,n,r,o){var l=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if((0,a.isEmptyValue)(t)&&!e.required)return n();i.default.required(e,t,r,l,o),void 0!==t&&(i.default.type(e,t,r,l,o),i.default.range(e,t,r,l,o))}n(l)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(889),i=(r=o)&&r.__esModule?r:{default:r},a=n(848);t.default=function(e,t,n,r,o){var l=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if((0,a.isEmptyValue)(t)&&!e.required)return n();i.default.required(e,t,r,l,o),void 0!==t&&(i.default.type(e,t,r,l,o),i.default.range(e,t,r,l,o))}n(l)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(889),i=(r=o)&&r.__esModule?r:{default:r},a=n(848);t.default=function(e,t,n,r,o){var l=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if((0,a.isEmptyValue)(t,"array")&&!e.required)return n();i.default.required(e,t,r,l,o,"array"),(0,a.isEmptyValue)(t,"array")||(i.default.type(e,t,r,l,o),i.default.range(e,t,r,l,o))}n(l)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(889),i=(r=o)&&r.__esModule?r:{default:r},a=n(848);t.default=function(e,t,n,r,o){var l=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if((0,a.isEmptyValue)(t)&&!e.required)return n();i.default.required(e,t,r,l,o),void 0!==t&&i.default.type(e,t,r,l,o)}n(l)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(889),i=(r=o)&&r.__esModule?r:{default:r},a=n(848);t.default=function(e,t,n,r,o){var l=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if((0,a.isEmptyValue)(t)&&!e.required)return n();i.default.required(e,t,r,l,o),t&&i.default.enum(e,t,r,l,o)}n(l)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(889),i=(r=o)&&r.__esModule?r:{default:r},a=n(848);t.default=function(e,t,n,r,o){var l=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if((0,a.isEmptyValue)(t,"string")&&!e.required)return n();i.default.required(e,t,r,l,o),(0,a.isEmptyValue)(t,"string")||i.default.pattern(e,t,r,l,o)}n(l)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(889),i=(r=o)&&r.__esModule?r:{default:r},a=n(848);t.default=function(e,t,n,r,o){var l=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if((0,a.isEmptyValue)(t)&&!e.required)return n();if(i.default.required(e,t,r,l,o),!(0,a.isEmptyValue)(t)){var u=void 0;u="number"==typeof t?new Date(t):t,i.default.type(e,u,r,l,o),u&&i.default.range(e,u.getTime(),r,l,o)}}n(l)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=n(889),a=(r=i)&&r.__esModule?r:{default:r};t.default=function(e,t,n,r,i){var l=[],u=Array.isArray(t)?"array":void 0===t?"undefined":o(t);a.default.required(e,t,r,l,i,u),n(l)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(889),i=(r=o)&&r.__esModule?r:{default:r},a=n(848);t.default=function(e,t,n,r,o){var l=e.type,u=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if((0,a.isEmptyValue)(t,l)&&!e.required)return n();i.default.required(e,t,r,u,o,l),(0,a.isEmptyValue)(t,l)||i.default.type(e,t,r,u,o)}n(u)}},function(e,t,n){"use strict";function r(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}Object.defineProperty(t,"__esModule",{value:!0}),t.newMessages=r;t.messages=r()},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){var r=n(1494),o=n(253),i=n(333),a=o((function(e,t){return i(e)?r(e,t):[]}));e.exports=a},,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";var r=n(843);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Columns",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"Column",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"Level",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"LevelLeft",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"LevelRight",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"LevelItem",{enumerable:!0,get:function(){return s.default}});var o=r(n(3298)),i=r(n(3299)),a=r(n(3300)),l=r(n(3301)),u=r(n(3302)),s=r(n(3303))},function(e,t,n){"use strict";var r=n(843);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(1063)),i=(0,r(n(1064)).default)({componentCls:"columns"})(o.default);t.default=i},function(e,t,n){"use strict";var r=n(843);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(1063)),i=(0,r(n(1064)).default)({componentCls:"column"})(o.default);t.default=i},function(e,t,n){"use strict";var r=n(843);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(1063)),i=(0,r(n(1064)).default)({componentCls:"level"})(o.default);t.default=i},function(e,t,n){"use strict";var r=n(843);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(1063)),i=(0,r(n(1064)).default)({componentCls:"level-left"})(o.default);t.default=i},function(e,t,n){"use strict";var r=n(843);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(1063)),i=(0,r(n(1064)).default)({componentCls:"level-right"})(o.default);t.default=i},function(e,t,n){"use strict";var r=n(843);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(1063)),i=(0,r(n(1064)).default)({componentCls:"level-item"})(o.default);t.default=i},,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";var r=n(1002),o=n(843);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(1105)),a=o(n(1172)),l=o(n(1003)),u=o(n(1004)),s=o(n(1005)),c=o(n(1006)),f=o(n(1007)),d=o(n(1046)),p=r(n(0)),h=o(n(1)),v=o(n(3)),g=n(2),y=o(n(3330));function m(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,f.default)(e);if(t){var o=(0,f.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,c.default)(this,n)}}var b={small:20,medium:32,large:48},x=function(e){(0,s.default)(n,e);var t=m(n);function n(e){var r;return(0,l.default)(this,n),(r=t.call(this,e)).state={spinning:e.spinning},r}return(0,u.default)(n,[{key:"isNestedPattern",value:function(){return this.props.children}},{key:"renderIndicator",value:function(){var e=this.props.size;return p.default.createElement("span",{className:"spin-dot spin-dot-spin"},p.default.createElement(y.default,{name:"loading",type:"dark",size:(0,g.isNumber)(e)?e:b[e],style:{display:"block",margin:"auto"}}))}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.size,r=e.children,o=e.wrapperClassName,l=(0,a.default)(e,["className","size","children","wrapperClassName"]),u=this.state.spinning,s=(0,v.default)("spin",{"spin-sm":"small"===n,"spin-lg":"large"===n,"spin-spinning":u},t),c=(0,g.omit)(l,["spinning"]),f=p.default.createElement("div",(0,i.default)({},c,{className:s}),this.renderIndicator());if(this.isNestedPattern()){var d="spin-nested-loading";o&&(d+=" ".concat(o));var h=(0,v.default)({"spin-container":!0,"spin-blur":u});return p.default.createElement("div",(0,i.default)({},c,{className:d}),u&&p.default.createElement("div",{key:"loading"},f),p.default.createElement("div",{className:h,key:"container"},r))}return u&&f}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.spinning,r=e.spinning;return n!==r?{spinning:r}:null}}]),n}(p.Component);(0,d.default)(x,"propTypes",{className:h.default.string,size:h.default.oneOfType([h.default.string,h.default.number]),spinning:h.default.bool,children:h.default.element}),(0,d.default)(x,"defaultProps",{spinning:!0,size:"medium"});var w=x;t.default=w},function(e,t,n){"use strict";var r=n(1002),o=n(843);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(1003)),a=o(n(1004)),l=o(n(1005)),u=o(n(1006)),s=o(n(1007)),c=o(n(1046)),f=r(n(0)),d=o(n(1)),p=o(n(3)),h=n(2);function v(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,s.default)(e);if(t){var o=(0,s.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,u.default)(this,n)}}var g=function(e){(0,l.default)(n,e);var t=v(n);function n(){return(0,i.default)(this,n),t.apply(this,arguments)}return(0,a.default)(n,[{key:"render",value:function(){var e,t=this.props,n=t.prefix,r=t.name,o=t.type,i=t.size,a=t.className,l=t.onClick,u=t.style,s=t.clickable,d=t.changeable,v=t.disabled,g=u;return(0,h.isNumber)(i)&&(g=Object.assign({},u,{width:"".concat(i,"px"),height:"".concat(i,"px")})),f.default.createElement("span",{style:g,className:(0,p.default)("icon",(e={},(0,c.default)(e,"is-".concat(i),!(0,h.isNumber)(i)),(0,c.default)(e,"icon-clickable",s),(0,c.default)(e,"icon-changeable",d&&!v),(0,c.default)(e,"icon-disabled",v),e),a),onClick:l},f.default.createElement("svg",{className:"".concat(n," ").concat(n,"-").concat(r," ").concat(n,"-").concat(o," svg-loading"),xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48"},f.default.createElement("defs",null,f.default.createElement("linearGradient",{id:"icon-line-spinner-a",x1:"4.167%",x2:"4.167%",y1:"0%",y2:"100%"},f.default.createElement("stop",{offset:"0%",stopColor:"#E4EBF1"}),f.default.createElement("stop",{offset:"100%",stopColor:"#86919C"})),f.default.createElement("linearGradient",{id:"icon-line-spinner-b",x1:"95.833%",x2:"95.833%",y1:"0%",y2:"100%"},f.default.createElement("stop",{offset:"0%",stopColor:"#324558"}),f.default.createElement("stop",{offset:"100%",stopColor:"#86919C"}))),f.default.createElement("g",{fillRule:"evenodd",fill:"none"},f.default.createElement("path",{d:"M24,0 C37.254834,-2.4348735e-15 48,10.745166 48,24 C48,37.254834 37.254834,48 24,48 C10.745166,48 1.623249e-15,37.254834 0,24 C-1.623249e-15,10.745166 10.745166,2.4348735e-15 24,0 Z"}),f.default.createElement("path",{fill:"url(#icon-line-spinner-a)",d:"M24,48 L24,46 C36.1502645,46 46,36.1502645 46,24 C46,12.1554065 36.6396211,2.49704654 24.9125246,2.01858157 L24.9954814,0.0202708022 C37.7886803,0.542235439 48,11.078627 48,24 C48,37.254834 37.254834,48 24,48 Z"}),f.default.createElement("path",{fill:"url(#icon-line-spinner-b)",d:"M24,46 L24,48 C10.745166,48 0,37.254834 0,24.0000001 C0,11.0786271 10.2113197,0.542235649 23.0045134,0.0202712255 L23.0874754,2.01858177 C11.3603789,2.49704674 2,12.1554066 2,24.0000001 C2,36.1502645 11.8497355,46 24,46 Z"}))))}}]),n}(f.PureComponent);(0,c.default)(g,"propTypes",{prefix:d.default.string,name:d.default.string.isRequired,type:d.default.string,size:d.default.oneOfType([d.default.string,d.default.number]),className:d.default.string,style:d.default.object,changeable:d.default.bool,clickable:d.default.bool,onClick:d.default.func,disabled:d.default.bool}),(0,c.default)(g,"defaultProps",{type:"dark",size:"small",prefix:"qicon",style:{},changeable:!1,clickable:!1,disabled:!1,onClick:h.noop});var y=g;t.default=y},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";e.exports=function(){}},function(e,t,n){"use strict";var r=n(3455),o=Math.abs,i=Math.floor;e.exports=function(e){return isNaN(e)?0:0!==(e=Number(e))&&isFinite(e)?r(e)*i(o(e)):e}},function(e,t,n){"use strict";e.exports=n(3456)()?Math.sign:n(3457)},function(e,t,n){"use strict";e.exports=function(){var e=Math.sign;return"function"==typeof e&&(1===e(10)&&-1===e(-20))}},function(e,t,n){"use strict";e.exports=function(e){return e=Number(e),isNaN(e)||0===e?e:e>0?1:-1}},function(e,t,n){"use strict";var r=n(986),o=n(1203),i=n(1019),a=n(3460),l=n(1759);e.exports=function e(t){var n,u,s;if(r(t),(n=Object(arguments[1])).async&&n.promise)throw new Error("Options 'async' and 'promise' cannot be used together");return hasOwnProperty.call(t,"__memoized__")&&!n.force?t:(u=l(n.length,t.length,n.async&&i.async),s=a(t,u,n),o(i,(function(e,t){n[t]&&e(n[t],s,n)})),e.__profiler__&&e.__profiler__(s),s.updateEnv(),s.memoized)}},function(e,t,n){"use strict";var r=n(986),o=n(1067),i=Function.prototype.bind,a=Function.prototype.call,l=Object.keys,u=Object.prototype.propertyIsEnumerable;e.exports=function(e,t){return function(n,s){var c,f=arguments[2],d=arguments[3];return n=Object(o(n)),r(s),c=l(n),d&&c.sort("function"==typeof d?i.call(d,n):void 0),"function"!=typeof e&&(e=c[e]),a.call(e,c,(function(e,r){return u.call(n,e)?a.call(s,f,n[e],e,n,r):t}))}}},function(e,t,n){"use strict";var r=n(3461),o=n(1761),i=n(1020),a=n(3475).methods,l=n(3476),u=n(3492),s=Function.prototype.apply,c=Function.prototype.call,f=Object.create,d=Object.defineProperties,p=a.on,h=a.emit;e.exports=function(e,t,n){var a,v,g,y,m,b,x,w,_,C,O,E,M,S,A,k=f(null);return v=!1!==t?t:isNaN(e.length)?1:e.length,n.normalizer&&(C=u(n.normalizer),g=C.get,y=C.set,m=C.delete,b=C.clear),null!=n.resolvers&&(A=l(n.resolvers)),S=g?o((function(t){var n,o,i=arguments;if(A&&(i=A(i)),null!==(n=g(i))&&hasOwnProperty.call(k,n))return O&&a.emit("get",n,i,this),k[n];if(o=1===i.length?c.call(e,this,i[0]):s.call(e,this,i),null===n){if(null!==(n=g(i)))throw r("Circular invocation","CIRCULAR_INVOCATION");n=y(i)}else if(hasOwnProperty.call(k,n))throw r("Circular invocation","CIRCULAR_INVOCATION");return k[n]=o,E&&a.emit("set",n,null,o),o}),v):0===t?function(){var t;if(hasOwnProperty.call(k,"data"))return O&&a.emit("get","data",arguments,this),k.data;if(t=arguments.length?s.call(e,this,arguments):c.call(e,this),hasOwnProperty.call(k,"data"))throw r("Circular invocation","CIRCULAR_INVOCATION");return k.data=t,E&&a.emit("set","data",null,t),t}:function(t){var n,o,i=arguments;if(A&&(i=A(arguments)),o=String(i[0]),hasOwnProperty.call(k,o))return O&&a.emit("get",o,i,this),k[o];if(n=1===i.length?c.call(e,this,i[0]):s.call(e,this,i),hasOwnProperty.call(k,o))throw r("Circular invocation","CIRCULAR_INVOCATION");return k[o]=n,E&&a.emit("set",o,null,n),n},a={original:e,memoized:S,profileName:n.profileName,get:function(e){return A&&(e=A(e)),g?g(e):String(e[0])},has:function(e){return hasOwnProperty.call(k,e)},delete:function(e){var t;hasOwnProperty.call(k,e)&&(m&&m(e),t=k[e],delete k[e],M&&a.emit("delete",e,t))},clear:function(){var e=k;b&&b(),k=f(null),a.emit("clear",e)},on:function(e,t){return"get"===e?O=!0:"set"===e?E=!0:"delete"===e&&(M=!0),p.call(this,e,t)},emit:h,updateEnv:function(){e=a.original}},x=g?o((function(e){var t,n=arguments;A&&(n=A(n)),null!==(t=g(n))&&a.delete(t)}),v):0===t?function(){return a.delete("data")}:function(e){return A&&(e=A(arguments)[0]),a.delete(e)},w=o((function(){var e,n=arguments;return 0===t?k.data:(A&&(n=A(n)),e=g?g(n):String(n[0]),k[e])})),_=o((function(){var e,n=arguments;return 0===t?a.has("data"):(A&&(n=A(n)),null!==(e=g?g(n):String(n[0]))&&a.has(e))})),d(S,{__memoized__:i(!0),delete:i(x),clear:i(a.clear),_get:i(w),_has:i(_)}),a}},function(e,t,n){"use strict";var r=n(1760),o=n(3467),i=n(1017),a=Error.captureStackTrace;e.exports=function(t){var n=new Error(t),l=arguments[1],u=arguments[2];return i(u)||o(l)&&(u=l,l=null),i(u)&&r(n,u),i(l)&&(n.code=l),a&&a(n,e.exports),n}},function(e,t,n){"use strict";e.exports=function(){var e,t=Object.assign;return"function"==typeof t&&(t(e={foo:"raz"},{bar:"dwa"},{trzy:"trzy"}),e.foo+e.bar+e.trzy==="razdwatrzy")}},function(e,t,n){"use strict";var r=n(3464),o=n(1067),i=Math.max;e.exports=function(e,t){var n,a,l,u=i(arguments.length,2);for(e=Object(o(e)),l=function(r){try{e[r]=t[r]}catch(e){n||(n=e)}},a=1;a-1}},function(e,t,n){"use strict";var r,o,i,a,l,u,s,c=n(1020),f=n(986),d=Function.prototype.apply,p=Function.prototype.call,h=Object.create,v=Object.defineProperty,g=Object.defineProperties,y=Object.prototype.hasOwnProperty,m={configurable:!0,enumerable:!1,writable:!0};o=function(e,t){var n,o;return f(t),o=this,r.call(this,e,n=function(){i.call(o,e,n),d.call(t,this,arguments)}),n.__eeOnceListener__=t,this},l={on:r=function(e,t){var n;return f(t),y.call(this,"__ee__")?n=this.__ee__:(n=m.value=h(null),v(this,"__ee__",m),m.value=null),n[e]?"object"==typeof n[e]?n[e].push(t):n[e]=[n[e],t]:n[e]=t,this},once:o,off:i=function(e,t){var n,r,o,i;if(f(t),!y.call(this,"__ee__"))return this;if(!(n=this.__ee__)[e])return this;if("object"==typeof(r=n[e]))for(i=0;o=r[i];++i)o!==t&&o.__eeOnceListener__!==t||(2===r.length?n[e]=r[i?0:1]:r.splice(i,1));else r!==t&&r.__eeOnceListener__!==t||delete n[e];return this},emit:a=function(e){var t,n,r,o,i;if(y.call(this,"__ee__")&&(o=this.__ee__[e]))if("object"==typeof o){for(n=arguments.length,i=new Array(n-1),t=1;t=55296&&m<=56319&&(_+=e[++n]),_=C?d.call(C,O,_,v):_,t?(p.value=_,h(g,v,p)):g[v]=_,++v;y=v}if(void 0===y)for(y=a(e.length),t&&(g=new t(y)),n=0;n=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},n(3503),t.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||this&&this.clearImmediate}).call(this,n(69))},function(e,t,n){(function(e,t){!function(e,n){"use strict";if(!e.setImmediate){var r,o,i,a,l,u=1,s={},c=!1,f=e.document,d=Object.getPrototypeOf&&Object.getPrototypeOf(e);d=d&&d.setTimeout?d:e,"[object process]"==={}.toString.call(e.process)?r=function(e){t.nextTick((function(){h(e)}))}:!function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}()?e.MessageChannel?((i=new MessageChannel).port1.onmessage=function(e){h(e.data)},r=function(e){i.port2.postMessage(e)}):f&&"onreadystatechange"in f.createElement("script")?(o=f.documentElement,r=function(e){var t=f.createElement("script");t.onreadystatechange=function(){h(e),t.onreadystatechange=null,o.removeChild(t),t=null},o.appendChild(t)}):r=function(e){setTimeout(h,0,e)}:(a="setImmediate$"+Math.random()+"$",l=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(a)&&h(+t.data.slice(a.length))},e.addEventListener?e.addEventListener("message",l,!1):e.attachEvent("onmessage",l),r=function(t){e.postMessage(a+t,"*")}),d.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),n=0;n100&&(t=t.slice(0,99)+"…"),t=t.replace(o,(function(e){return JSON.stringify(e).slice(1,-1)}))}},function(e,t,n){"use strict";var r=n(1766);e.exports=function(e){try{return e&&r(e.toString)?e.toString():String(e)}catch(e){return""}}},function(e,t,n){"use strict";var r=n(986),o=n(1203),i=n(1019),a=Function.prototype.apply;i.dispose=function(e,t,n){var l;if(r(e),n.async&&i.async||n.promise&&i.promise)return t.on("deleteasync",l=function(t,n){a.call(e,null,n)}),void t.on("clearasync",(function(e){o(e,(function(e,t){l(t,e)}))}));t.on("delete",l=function(t,n){e(n)}),t.on("clear",(function(e){o(e,(function(e,t){l(t,e)}))}))}},function(e,t,n){"use strict";var r=n(1393),o=n(1203),i=n(1395),a=n(1767),l=n(3512),u=n(1019),s=Function.prototype,c=Math.max,f=Math.min,d=Object.create;u.maxAge=function(e,t,n){var p,h,v,g;(e=l(e))&&(p=d(null),h=n.async&&u.async||n.promise&&u.promise?"async":"",t.on("set"+h,(function(n){p[n]=setTimeout((function(){t.delete(n)}),e),"function"==typeof p[n].unref&&p[n].unref(),g&&(g[n]&&"nextTick"!==g[n]&&clearTimeout(g[n]),g[n]=setTimeout((function(){delete g[n]}),v),"function"==typeof g[n].unref&&g[n].unref())})),t.on("delete"+h,(function(e){clearTimeout(p[e]),delete p[e],g&&("nextTick"!==g[e]&&clearTimeout(g[e]),delete g[e])})),n.preFetch&&(v=!0===n.preFetch||isNaN(n.preFetch)?.333:c(f(Number(n.preFetch),1),0))&&(g={},v=(1-v)*e,t.on("get"+h,(function(e,o,l){g[e]||(g[e]="nextTick",i((function(){var i;"nextTick"===g[e]&&(delete g[e],t.delete(e),n.async&&(o=r(o)).push(s),i=t.memoized.apply(l,o),n.promise&&a(i)&&("function"==typeof i.done?i.done(s,s):i.then(s,s)))})))}))),t.on("clear"+h,(function(){o(p,(function(e){clearTimeout(e)})),p={},g&&(o(g,(function(e){"nextTick"!==e&&clearTimeout(e)})),g={})})))}},function(e,t,n){"use strict";var r=n(1018),o=n(3513);e.exports=function(e){if((e=r(e))>o)throw new TypeError(e+" exceeds maximum possible timeout");return e}},function(e,t,n){"use strict";e.exports=2147483647},function(e,t,n){"use strict";var r=n(1018),o=n(3515),i=n(1019);i.max=function(e,t,n){var a,l,u;(e=r(e))&&(l=o(e),a=n.async&&i.async||n.promise&&i.promise?"async":"",t.on("set"+a,u=function(e){void 0!==(e=l.hit(e))&&t.delete(e)}),t.on("get"+a,u),t.on("delete"+a,l.delete),t.on("clear"+a,l.clear))}},function(e,t,n){"use strict";var r=n(1018),o=Object.create,i=Object.prototype.hasOwnProperty;e.exports=function(e){var t,n=0,a=1,l=o(null),u=o(null),s=0;return e=r(e),{hit:function(r){var o=u[r],c=++s;if(l[c]=r,u[r]=c,!o){if(++n<=e)return;return r=l[a],t(r),r}if(delete l[o],a===o)for(;!i.call(l,++a);)continue},delete:t=function(e){var t=u[e];if(t&&(delete l[t],delete u[e],--n,a===t)){if(!n)return s=0,void(a=1);for(;!i.call(l,++a);)continue}},clear:function(){n=0,a=1,l=o(null),u=o(null),s=0}}}},function(e,t,n){"use strict";var r=n(1020),o=n(1019),i=Object.create,a=Object.defineProperties;o.refCounter=function(e,t,n){var l,u;l=i(null),u=n.async&&o.async||n.promise&&o.promise?"async":"",t.on("set"+u,(function(e,t){l[e]=t||1})),t.on("get"+u,(function(e){++l[e]})),t.on("delete"+u,(function(e){delete l[e]})),t.on("clear"+u,(function(){l={}})),a(t.memoized,{deleteRef:r((function(){var e=t.get(arguments);return null===e?null:l[e]?!--l[e]&&(t.delete(e),!0):null})),getRefCount:r((function(){var e=t.get(arguments);return null===e?0:l[e]?l[e]:0}))})}},function(e,t,n){"use strict";e.exports=e=>{e=Object.assign({onlyFirst:!1},e);const t=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:[a-zA-Z\\d]*(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(t,e.onlyFirst?void 0:"g")}},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return C}));var r,o,i=n(36),a=n.n(i),l=n(37),u=n.n(l),s=n(56),c=n.n(s),f=n(51),d=n.n(f),p=n(88),h=n.n(p),v=n(55),g=n.n(v),y=n(30),m=n.n(y),b=n(0),x=n(3519);n(1);function w(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _(e){for(var t=1;t div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',r=e.head||e.getElementsByTagName("head")[0],o=e.createElement("style");o.id="detectElementResize",o.type="text/css",null!=t&&o.setAttribute("nonce",t),o.styleSheet?o.styleSheet.cssText=n:o.appendChild(e.createTextNode(n)),r.appendChild(o)}}(o),e.__resizeLast__={},e.__resizeListeners__=[],(e.__resizeTriggers__=o.createElement("div")).className="resize-triggers",e.__resizeTriggers__.innerHTML='
    ',e.appendChild(e.__resizeTriggers__),s(e),e.addEventListener("scroll",c,!0),p&&(e.__resizeTriggers__.__animationListener__=function(t){t.animationName==m&&s(e)},e.__resizeTriggers__.addEventListener(p,e.__resizeTriggers__.__animationListener__))}e.__resizeListeners__.push(n)}},removeResizeListener:function(e,t){if(a)e.detachEvent("onresize",t);else if(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1),!e.__resizeListeners__.length){e.removeEventListener("scroll",c,!0),e.__resizeTriggers__.__animationListener__&&(e.__resizeTriggers__.removeEventListener(p,e.__resizeTriggers__.__animationListener__),e.__resizeTriggers__.__animationListener__=null);try{e.__resizeTriggers__=!e.removeChild(e.__resizeTriggers__)}catch(e){}}}}}n.d(t,"a",(function(){return r}))}).call(this,n(69))},function(e,t,n){"use strict";n.r(t),n.d(t,"DEFAULT_HEIGHT",(function(){return s})),n.d(t,"DEFAULT_WIDTH",(function(){return c})),n.d(t,"default",(function(){return f}));var r=n(36),o=n.n(r),i=n(37),a=n.n(i),l=n(30),u=n.n(l),s=(n(1769),30),c=100,f=function(){function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};o()(this,e),u()(this,"_cellHeightCache",{}),u()(this,"_cellWidthCache",{}),u()(this,"_columnWidthCache",{}),u()(this,"_rowHeightCache",{}),u()(this,"_defaultHeight",void 0),u()(this,"_defaultWidth",void 0),u()(this,"_minHeight",void 0),u()(this,"_minWidth",void 0),u()(this,"_keyMapper",void 0),u()(this,"_hasFixedHeight",void 0),u()(this,"_hasFixedWidth",void 0),u()(this,"_columnCount",0),u()(this,"_rowCount",0),u()(this,"columnWidth",(function(e){var n=e.index,r=t._keyMapper(0,n);return void 0!==t._columnWidthCache[r]?t._columnWidthCache[r]:t._defaultWidth})),u()(this,"rowHeight",(function(e){var n=e.index,r=t._keyMapper(n,0);return void 0!==t._rowHeightCache[r]?t._rowHeightCache[r]:t._defaultHeight}));var r=n.defaultHeight,i=n.defaultWidth,a=n.fixedHeight,l=n.fixedWidth,f=n.keyMapper,p=n.minHeight,h=n.minWidth;this._hasFixedHeight=!0===a,this._hasFixedWidth=!0===l,this._minHeight=p||0,this._minWidth=h||0,this._keyMapper=f||d,this._defaultHeight=Math.max(this._minHeight,"number"==typeof r?r:s),this._defaultWidth=Math.max(this._minWidth,"number"==typeof i?i:c)}return a()(e,[{key:"clear",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this._keyMapper(e,t);delete this._cellHeightCache[n],delete this._cellWidthCache[n],this._updateCachedColumnAndRowSizes(e,t)}},{key:"clearAll",value:function(){this._cellHeightCache={},this._cellWidthCache={},this._columnWidthCache={},this._rowHeightCache={},this._rowCount=0,this._columnCount=0}},{key:"hasFixedHeight",value:function(){return this._hasFixedHeight}},{key:"hasFixedWidth",value:function(){return this._hasFixedWidth}},{key:"getHeight",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(this._hasFixedHeight)return this._defaultHeight;var n=this._keyMapper(e,t);return void 0!==this._cellHeightCache[n]?Math.max(this._minHeight,this._cellHeightCache[n]):this._defaultHeight}},{key:"getWidth",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(this._hasFixedWidth)return this._defaultWidth;var n=this._keyMapper(e,t);return void 0!==this._cellWidthCache[n]?Math.max(this._minWidth,this._cellWidthCache[n]):this._defaultWidth}},{key:"has",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this._keyMapper(e,t);return void 0!==this._cellHeightCache[n]}},{key:"set",value:function(e,t,n,r){var o=this._keyMapper(e,t);t>=this._columnCount&&(this._columnCount=t+1),e>=this._rowCount&&(this._rowCount=e+1),this._cellHeightCache[o]=r,this._cellWidthCache[o]=n,this._updateCachedColumnAndRowSizes(e,t)}},{key:"_updateCachedColumnAndRowSizes",value:function(e,t){if(!this._hasFixedWidth){for(var n=0,r=0;r-1)setTimeout(e,0);else{document.addEventListener("DOMContentLoaded",(function t(){document.removeEventListener("DOMContentLoaded",t,!1),e()}),!1)}else document.attachEvent&&(t=window,n=e,r=t.document,o=!1,i=function(){o||(o=!0,n())},function e(){try{r.documentElement.doScroll("left")}catch(t){return void setTimeout(e,50)}i()}(),r.onreadystatechange=function(){"complete"===r.readyState&&(r.onreadystatechange=null,i())});var t,n,r,o,i};t.default=r},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.r(t),t.default=function(e){return{all:e=e||new Map,on:function(t,n){var r=e.get(t);r?r.push(n):e.set(t,[n])},off:function(t,n){var r=e.get(t);r&&(n?r.splice(r.indexOf(n)>>>0,1):e.set(t,[]))},emit:function(t,n){var r=e.get(t);r&&r.slice().map((function(e){e(n)})),(r=e.get("*"))&&r.slice().map((function(e){e(t,n)}))}}}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){!function(e){var t=/\S/,n=/\"/g,r=/\n/g,o=/\r/g,i=/\\/g,a=/\u2028/,l=/\u2029/;function u(e){"}"===e.n.substr(e.n.length-1)&&(e.n=e.n.substring(0,e.n.length-1))}function s(e){return e.trim?e.trim():e.replace(/^\s*|\s*$/g,"")}function c(e,t,n){if(t.charAt(n)!=e.charAt(0))return!1;for(var r=1,o=e.length;r":7,"=":8,_v:9,"{":10,"&":11,_t:12},e.scan=function(n,r){var o=n.length,i=0,a=null,l=null,f="",d=[],p=!1,h=0,v=0,g="{{",y="}}";function m(){f.length>0&&(d.push({tag:"_t",text:new String(f)}),f="")}function b(n,r){if(m(),n&&function(){for(var n=!0,r=v;r"==o.tag&&(o.indent=d[i].text.toString()),d.splice(i,1));else r||d.push({tag:"\n"});p=!1,v=d.length}function x(e,t){var n="="+y,r=e.indexOf(n,t),o=s(e.substring(e.indexOf("=",t)+1,r)).split(" ");return g=o[0],y=o[o.length-1],r+n.length-1}for(r&&(r=r.split(" "),g=r[0],y=r[1]),h=0;h":m,"<":function(t,n){var r={partials:{},code:"",subs:{},inPartial:!0};e.walk(t.nodes,r);var o=n.partials[m(t,n)];o.subs=r.subs,o.partials=r.partials},$:function(t,n){var r={subs:{},code:"",partials:n.partials,prefix:t.n};e.walk(t.nodes,r),n.subs[t.n]=r.code,n.inPartial||(n.code+='t.sub("'+g(t.n)+'",c,p,i);')},"\n":function(e,t){t.code+=x('"\\n"'+(e.last?"":" + i"))},_v:function(e,t){t.code+="t.b(t.v(t."+y(e.n)+'("'+g(e.n)+'",c,p,0)));'},_t:function(e,t){t.code+=x('"'+g(e.text)+'"')},"{":b,"&":b},e.walk=function(t,n){for(var r,o=0,i=t.length;o0;){if(s=n.shift(),a&&"<"==a.tag&&!(s.tag in f))throw new Error("Illegal content in < super tag.");if(e.tags[s.tag]<=e.tags.$||d(s,i))o.push(s),s.nodes=t(n,s.tag,o,i);else{if("/"==s.tag){if(0===o.length)throw new Error("Closing tag without opener: /"+s.n);if(u=o.pop(),s.n!=u.n&&!p(s.n,u.n,i))throw new Error("Nesting error: "+u.n+" vs. "+s.n);return u.end=s.i,l}"\n"==s.tag&&(s.last=0==n.length||"\n"==n[0].tag)}l.push(s)}if(o.length>0)throw new Error("missing closing tag: "+o.pop().n);return l}(t,0,[],(r=r||{}).sectionTags||[])},e.cache={},e.cacheKey=function(e,t){return[e,!!t.asString,!!t.disableLambda,t.delimiters,!!t.modelGet].join("||")},e.compile=function(t,n){n=n||{};var r=e.cacheKey(t,n),o=this.cache[r];if(o){var i=o.partials;for(var a in i)delete i[a].instance;return o}return o=this.generate(this.parse(this.scan(t,n.delimiters),t,n),t,n),this.cache[r]=o}}(t)},function(e,t,n){!function(e){function t(e,t,n){var r;return t&&"object"==typeof t&&(void 0!==t[e]?r=t[e]:n&&t.get&&"function"==typeof t.get&&(r=t.get(e))),r}e.Template=function(e,t,n,r){e=e||{},this.r=e.code||this.r,this.c=n,this.options=r||{},this.text=t||"",this.partials=e.partials||{},this.subs=e.subs||{},this.buf=""},e.Template.prototype={r:function(e,t,n){return""},v:function(e){return e=u(e),l.test(e)?e.replace(n,"&").replace(r,"<").replace(o,">").replace(i,"'").replace(a,"""):e},t:u,render:function(e,t,n){return this.ri([e],t||{},n)},ri:function(e,t,n){return this.r(e,t,n)},ep:function(e,t){var n=this.partials[e],r=t[n.name];if(n.instance&&n.base==r)return n.instance;if("string"==typeof r){if(!this.c)throw new Error("No compiler available.");r=this.c.compile(r,this.options)}if(!r)return null;if(this.partials[e].base=r,n.subs){for(key in t.stackText||(t.stackText={}),n.subs)t.stackText[key]||(t.stackText[key]=void 0!==this.activeSub&&t.stackText[this.activeSub]?t.stackText[this.activeSub]:this.text);r=function(e,t,n,r,o,i){function a(){}function l(){}var u;a.prototype=e,l.prototype=e.subs;var s=new a;for(u in s.subs=new l,s.subsText={},s.buf="",r=r||{},s.stackSubs=r,s.subsText=i,t)r[u]||(r[u]=t[u]);for(u in r)s.subs[u]=r[u];for(u in o=o||{},s.stackPartials=o,n)o[u]||(o[u]=n[u]);for(u in o)s.partials[u]=o[u];return s}(r,n.subs,n.partials,this.stackSubs,this.stackPartials,t.stackText)}return this.partials[e].instance=r,r},rp:function(e,t,n,r){var o=this.ep(e,n);return o?o.ri(t,n,r):""},rs:function(e,t,n){var r=e[e.length-1];if(s(r))for(var o=0;o=0;u--)if(void 0!==(i=t(e,n[u],l))){a=!0;break}return a?(o||"function"!=typeof i||(i=this.mv(i,n,r)),i):!o&&""},ls:function(e,t,n,r,o){var i=this.options.delimiters;return this.options.delimiters=o,this.b(this.ct(u(e.call(t,r)),t,n)),this.options.delimiters=i,!1},ct:function(e,t,n){if(this.options.disableLambda)throw new Error("Lambda features disabled.");return this.c.compile(e,this.options).render(t,n)},b:function(e){this.buf+=e},fl:function(){var e=this.buf;return this.buf="",e},ms:function(e,t,n,r,o,i,a){var l,u=t[t.length-1],s=e.call(u);return"function"==typeof s?!!r||(l=this.activeSub&&this.subsText&&this.subsText[this.activeSub]?this.subsText[this.activeSub]:this.text,this.ls(s,u,n,l.substring(o,i),a)):s},mv:function(e,t,n){var r=t[t.length-1],o=e.call(r);return"function"==typeof o?this.ct(u(o.call(r)),r,n):o},sub:function(e,t,n,r){var o=this.subs[e];o&&(this.activeSub=e,o(t,n,this,r),this.activeSub=!1)}};var n=/&/g,r=//g,i=/\'/g,a=/\"/g,l=/[&<>\"\']/;function u(e){return String(null==e?"":e)}var s=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}}(t)},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){var r=n(3957)(n(122));e.exports=r},function(e,t,n){var r=n(3958),o=n(164),i=n(518),a=n(3959);e.exports=function(e){return function(t){var n=o(t);return"[object Map]"==n?i(t):"[object Set]"==n?a(t):r(t,e(t))}}},function(e,t,n){var r=n(121);e.exports=function(e,t){return r(t,(function(t){return[t,e[t]]}))}},function(e,t){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){var r=n(4062),o=n(359),i=n(4063);e.exports=function(e){return o(e)?i(e):r(e)}},function(e,t,n){var r=n(520)("length");e.exports=r},function(e,t){var n="[\\ud800-\\udfff]",r="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",o="\\ud83c[\\udffb-\\udfff]",i="[^\\ud800-\\udfff]",a="(?:\\ud83c[\\udde6-\\uddff]){2}",l="[\\ud800-\\udbff][\\udc00-\\udfff]",u="(?:"+r+"|"+o+")"+"?",s="[\\ufe0e\\ufe0f]?"+u+("(?:\\u200d(?:"+[i,a,l].join("|")+")[\\ufe0e\\ufe0f]?"+u+")*"),c="(?:"+[i+r+"?",r,a,l,n].join("|")+")",f=RegExp(o+"(?="+o+")|"+c+s,"g");e.exports=function(e){for(var t=f.lastIndex=0;f.test(e);)++t;return t}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){var r=n(4337),o=n(4338),i=o;i.v1=r,i.v4=o,e.exports=i},function(e,t,n){var r,o,i=n(1867),a=n(1868),l=0,u=0;e.exports=function(e,t,n){var s=t&&n||0,c=t||[],f=(e=e||{}).node||r,d=void 0!==e.clockseq?e.clockseq:o;if(null==f||null==d){var p=i();null==f&&(f=r=[1|p[0],p[1],p[2],p[3],p[4],p[5]]),null==d&&(d=o=16383&(p[6]<<8|p[7]))}var h=void 0!==e.msecs?e.msecs:(new Date).getTime(),v=void 0!==e.nsecs?e.nsecs:u+1,g=h-l+(v-u)/1e4;if(g<0&&void 0===e.clockseq&&(d=d+1&16383),(g<0||h>l)&&void 0===e.nsecs&&(v=0),v>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");l=h,u=v,o=d;var y=(1e4*(268435455&(h+=122192928e5))+v)%4294967296;c[s++]=y>>>24&255,c[s++]=y>>>16&255,c[s++]=y>>>8&255,c[s++]=255&y;var m=h/4294967296*1e4&268435455;c[s++]=m>>>8&255,c[s++]=255&m,c[s++]=m>>>24&15|16,c[s++]=m>>>16&255,c[s++]=d>>>8|128,c[s++]=255&d;for(var b=0;b<6;++b)c[s+b]=f[b];return t||a(c)}},function(e,t,n){var r=n(1867),o=n(1868);e.exports=function(e,t,n){var i=t&&n||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var a=(e=e||{}).random||(e.rng||r)();if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,t)for(var l=0;l<16;++l)t[i+l]=a[l];return t||o(a)}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){const r=n(4481),o=n(4482),i=n(4483);e.exports=function e(t,{cleanKeys:n=[],cleanValues:a=[],emptyArrays:l=!0,emptyObjects:u=!0,emptyStrings:s=!0,NaNValues:c=!1,nullValues:f=!0,undefinedValues:d=!0}={}){return i(t,(t,i,p)=>{if(!n.includes(p)&&((Array.isArray(i)||o(i))&&(i=e(i,{NaNValues:c,cleanKeys:n,cleanValues:a,emptyArrays:l,emptyObjects:u,emptyStrings:s,nullValues:f,undefinedValues:d})),!a.includes(i)&&!(u&&o(i)&&r(i))&&(!l||!Array.isArray(i)||i.length)&&!(s&&""===i||c&&Number.isNaN(i)||f&&null===i||d&&void 0===i)))return Array.isArray(t)?t.push(i):void(t[p]=i)})}},function(e,t,n){(function(e,n){var r="[object Map]",o="[object Set]",i=/^\[object .+?Constructor\]$/,a="object"==typeof e&&e&&e.Object===Object&&e,l="object"==typeof self&&self&&self.Object===Object&&self,u=a||l||Function("return this")(),s=t&&!t.nodeType&&t,c=s&&"object"==typeof n&&n&&!n.nodeType&&n,f=c&&c.exports===s;var d,p,h,v=Function.prototype,g=Object.prototype,y=u["__core-js_shared__"],m=(d=/[^.]+$/.exec(y&&y.keys&&y.keys.IE_PROTO||""))?"Symbol(src)_1."+d:"",b=v.toString,x=g.hasOwnProperty,w=g.toString,_=RegExp("^"+b.call(x).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),C=f?u.Buffer:void 0,O=g.propertyIsEnumerable,E=C?C.isBuffer:void 0,M=(p=Object.keys,h=Object,function(e){return p(h(e))}),S=H(u,"DataView"),A=H(u,"Map"),k=H(u,"Promise"),j=H(u,"Set"),T=H(u,"WeakMap"),P=!O.call({valueOf:1},"valueOf"),L=F(S),z=F(A),N=F(k),D=F(j),I=F(T);function R(e){return!(!K(e)||function(e){return!!m&&m in e}(e))&&(W(e)||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}(e)?_:i).test(F(e))}function H(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return R(n)?n:void 0}var B=function(e){return w.call(e)};function F(e){if(null!=e){try{return b.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function V(e){return function(e){return function(e){return!!e&&"object"==typeof e}(e)&&U(e)}(e)&&x.call(e,"callee")&&(!O.call(e,"callee")||"[object Arguments]"==w.call(e))}(S&&"[object DataView]"!=B(new S(new ArrayBuffer(1)))||A&&B(new A)!=r||k&&"[object Promise]"!=B(k.resolve())||j&&B(new j)!=o||T&&"[object WeakMap]"!=B(new T))&&(B=function(e){var t=w.call(e),n="[object Object]"==t?e.constructor:void 0,i=n?F(n):void 0;if(i)switch(i){case L:return"[object DataView]";case z:return r;case N:return"[object Promise]";case D:return o;case I:return"[object WeakMap]"}return t});var $=Array.isArray;function U(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}(e.length)&&!W(e)}var Z=E||function(){return!1};function W(e){var t=K(e)?w.call(e):"";return"[object Function]"==t||"[object GeneratorFunction]"==t}function K(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}n.exports=function(e){if(U(e)&&($(e)||"string"==typeof e||"function"==typeof e.splice||Z(e)||V(e)))return!e.length;var t=B(e);if(t==r||t==o)return!e.size;if(P||function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||g)}(e))return!M(e).length;for(var n in e)if(x.call(e,n))return!1;return!0}}).call(this,n(69),n(138)(e))},function(e,t){var n,r,o=Function.prototype,i=Object.prototype,a=o.toString,l=i.hasOwnProperty,u=a.call(Object),s=i.toString,c=(n=Object.getPrototypeOf,r=Object,function(e){return n(r(e))});e.exports=function(e){if(!function(e){return!!e&&"object"==typeof e}(e)||"[object Object]"!=s.call(e)||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}(e))return!1;var t=c(e);if(null===t)return!0;var n=l.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&a.call(n)==u}},function(e,t,n){(function(e,n){var r="[object Arguments]",o="[object Map]",i="[object Object]",a="[object Set]",l=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,u=/^\w*$/,s=/^\./,c=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,f=/\\(\\)?/g,d=/^\[object .+?Constructor\]$/,p=/^(?:0|[1-9]\d*)$/,h={};h["[object Float32Array]"]=h["[object Float64Array]"]=h["[object Int8Array]"]=h["[object Int16Array]"]=h["[object Int32Array]"]=h["[object Uint8Array]"]=h["[object Uint8ClampedArray]"]=h["[object Uint16Array]"]=h["[object Uint32Array]"]=!0,h[r]=h["[object Array]"]=h["[object ArrayBuffer]"]=h["[object Boolean]"]=h["[object DataView]"]=h["[object Date]"]=h["[object Error]"]=h["[object Function]"]=h[o]=h["[object Number]"]=h[i]=h["[object RegExp]"]=h[a]=h["[object String]"]=h["[object WeakMap]"]=!1;var v="object"==typeof e&&e&&e.Object===Object&&e,g="object"==typeof self&&self&&self.Object===Object&&self,y=v||g||Function("return this")(),m=t&&!t.nodeType&&t,b=m&&"object"==typeof n&&n&&!n.nodeType&&n,x=b&&b.exports===m&&v.process,w=function(){try{return x&&x.binding("util")}catch(e){}}(),_=w&&w.isTypedArray;function C(e,t){for(var n=-1,r=e?e.length:0;++n-1},le.prototype.set=function(e,t){var n=this.__data__,r=de(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},ue.prototype.clear=function(){this.__data__={hash:new ae,map:new(K||le),string:new ae}},ue.prototype.delete=function(e){return Oe(this,e).delete(e)},ue.prototype.get=function(e){return Oe(this,e).get(e)},ue.prototype.has=function(e){return Oe(this,e).has(e)},ue.prototype.set=function(e,t){return Oe(this,e).set(e,t),this},se.prototype.add=se.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},se.prototype.has=function(e){return this.__data__.has(e)},ce.prototype.clear=function(){this.__data__=new le},ce.prototype.delete=function(e){return this.__data__.delete(e)},ce.prototype.get=function(e){return this.__data__.get(e)},ce.prototype.has=function(e){return this.__data__.has(e)},ce.prototype.set=function(e,t){var n=this.__data__;if(n instanceof le){var r=n.__data__;if(!K||r.length<199)return r.push([e,t]),this;n=this.__data__=new ue(r)}return n.set(e,t),this};var pe,he=function(e,t,n){for(var r=-1,o=Object(e),i=n(e),a=i.length;a--;){var l=i[pe?a:++r];if(!1===t(o[l],l,o))break}return e};function ve(e,t){return e&&he(e,t,We)}function ge(e,t){for(var n=0,r=(t=Ae(t,e)?[t]:_e(t)).length;null!=e&&nl))return!1;var s=i.get(e);if(s&&i.get(t))return s==t;var c=-1,f=!0,d=1&o?new se:void 0;for(i.set(e,t),i.set(t,e);++c-1&&e%1==0&&e-1&&e%1==0&&e<=9007199254740991}function Fe(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Ve(e){return!!e&&"object"==typeof e}function $e(e){return"symbol"==typeof e||Ve(e)&&"[object Symbol]"==I.call(e)}var Ue,Ze=_?(Ue=_,function(e){return Ue(e)}):function(e){return Ve(e)&&Be(e.length)&&!!h[I.call(e)]};function We(e){return Re(e)?fe(e):we(e)}function Ke(e){return e}n.exports=function(e,t,n){var r,o=Ie(e)||Ze(e);if(t=xe(t),null==n)if(o||Fe(e)){var i=e.constructor;n=o?Ie(e)?new i:[]:He(i)?Fe(r=F(e))?V(r):{}:{}}else n={};return(o?C:ve)(e,(function(e,r,o){return t(n,e,r,o)})),n}}).call(this,n(69),n(138)(e))},,,,,,,,,,,,,,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=function(e){if(e&&e.__esModule)return e;var t=u();if(t&&t.has(e))return t.get(e);var n={};if(null!=e){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}}n.default=e,t&&t.set(e,n);return n}(n(0)),i=(r=n(1))&&r.__esModule?r:{default:r},a=n(926),l=n(809);function u(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(){return(c=Object.assign||function(e){for(var t=1;t1||1===t.length&&e.hasEdge(t[0],t[0])}))}},function(e,t,n){var r=n(908);e.exports=function(e,t,n){return function(e,t,n){var r={},o=e.nodes();return o.forEach((function(e){r[e]={},r[e][e]={distance:0},o.forEach((function(t){e!==t&&(r[e][t]={distance:Number.POSITIVE_INFINITY})})),n(e).forEach((function(n){var o=n.v===e?n.w:n.v,i=t(n);r[e][o]={distance:i,predecessor:e}}))})),o.forEach((function(e){var t=r[e];o.forEach((function(n){var i=r[n];o.forEach((function(n){var r=i[e],o=t[n],a=i[n],l=r.distance+o.distance;l0;){if(n=u.removeMin(),r.has(l,n))a.setEdge(n,l[n]);else{if(c)throw new Error("Input graph is not connected: "+e);c=!0}e.nodeEdges(n).forEach(s)}return a}},function(e,t,n){"use strict";var r=n(835),o=n(4571),i=n(4574),a=n(4575),l=n(891).normalizeRanks,u=n(4577),s=n(891).removeEmptyRanks,c=n(4578),f=n(4579),d=n(4580),p=n(4581),h=n(4590),v=n(891),g=n(920).Graph;e.exports=function(e,t){var n=t&&t.debugTiming?v.time:v.notime;n("layout",(function(){var t=n(" buildLayoutGraph",(function(){return function(e){var t=new g({multigraph:!0,compound:!0}),n=M(e.graph());return t.setGraph(r.merge({},m,E(n,y),r.pick(n,b))),r.forEach(e.nodes(),(function(n){var o=M(e.node(n));t.setNode(n,r.defaults(E(o,x),w)),t.setParent(n,e.parent(n))})),r.forEach(e.edges(),(function(n){var o=M(e.edge(n));t.setEdge(n,r.merge({},C,E(o,_),r.pick(o,O)))})),t}(e)}));n(" runLayout",(function(){!function(e,t){t(" makeSpaceForEdgeLabels",(function(){!function(e){var t=e.graph();t.ranksep/=2,r.forEach(e.edges(),(function(n){var r=e.edge(n);r.minlen*=2,"c"!==r.labelpos.toLowerCase()&&("TB"===t.rankdir||"BT"===t.rankdir?r.width+=r.labeloffset:r.height+=r.labeloffset)}))}(e)})),t(" removeSelfEdges",(function(){!function(e){r.forEach(e.edges(),(function(t){if(t.v===t.w){var n=e.node(t.v);n.selfEdges||(n.selfEdges=[]),n.selfEdges.push({e:t,label:e.edge(t)}),e.removeEdge(t)}}))}(e)})),t(" acyclic",(function(){o.run(e)})),t(" nestingGraph.run",(function(){c.run(e)})),t(" rank",(function(){a(v.asNonCompoundGraph(e))})),t(" injectEdgeLabelProxies",(function(){!function(e){r.forEach(e.edges(),(function(t){var n=e.edge(t);if(n.width&&n.height){var r=e.node(t.v),o={rank:(e.node(t.w).rank-r.rank)/2+r.rank,e:t};v.addDummyNode(e,"edge-proxy",o,"_ep")}}))}(e)})),t(" removeEmptyRanks",(function(){s(e)})),t(" nestingGraph.cleanup",(function(){c.cleanup(e)})),t(" normalizeRanks",(function(){l(e)})),t(" assignRankMinMax",(function(){!function(e){var t=0;r.forEach(e.nodes(),(function(n){var o=e.node(n);o.borderTop&&(o.minRank=e.node(o.borderTop).rank,o.maxRank=e.node(o.borderBottom).rank,t=r.max(t,o.maxRank))})),e.graph().maxRank=t}(e)})),t(" removeEdgeLabelProxies",(function(){!function(e){r.forEach(e.nodes(),(function(t){var n=e.node(t);"edge-proxy"===n.dummy&&(e.edge(n.e).labelRank=n.rank,e.removeNode(t))}))}(e)})),t(" normalize.run",(function(){i.run(e)})),t(" parentDummyChains",(function(){u(e)})),t(" addBorderSegments",(function(){f(e)})),t(" order",(function(){p(e)})),t(" insertSelfEdges",(function(){!function(e){var t=v.buildLayerMatrix(e);r.forEach(t,(function(t){var n=0;r.forEach(t,(function(t,o){var i=e.node(t);i.order=o+n,r.forEach(i.selfEdges,(function(t){v.addDummyNode(e,"selfedge",{width:t.label.width,height:t.label.height,rank:i.rank,order:o+ ++n,e:t.e,label:t.label},"_se")})),delete i.selfEdges}))}))}(e)})),t(" adjustCoordinateSystem",(function(){d.adjust(e)})),t(" position",(function(){h(e)})),t(" positionSelfEdges",(function(){!function(e){r.forEach(e.nodes(),(function(t){var n=e.node(t);if("selfedge"===n.dummy){var r=e.node(n.e.v),o=r.x+r.width/2,i=r.y,a=n.x-o,l=r.height/2;e.setEdge(n.e,n.label),e.removeNode(t),n.label.points=[{x:o+2*a/3,y:i-l},{x:o+5*a/6,y:i-l},{x:o+a,y:i},{x:o+5*a/6,y:i+l},{x:o+2*a/3,y:i+l}],n.label.x=n.x,n.label.y=n.y}}))}(e)})),t(" removeBorderNodes",(function(){!function(e){r.forEach(e.nodes(),(function(t){if(e.children(t).length){var n=e.node(t),o=e.node(n.borderTop),i=e.node(n.borderBottom),a=e.node(r.last(n.borderLeft)),l=e.node(r.last(n.borderRight));n.width=Math.abs(l.x-a.x),n.height=Math.abs(i.y-o.y),n.x=a.x+n.width/2,n.y=o.y+n.height/2}})),r.forEach(e.nodes(),(function(t){"border"===e.node(t).dummy&&e.removeNode(t)}))}(e)})),t(" normalize.undo",(function(){i.undo(e)})),t(" fixupEdgeLabelCoords",(function(){!function(e){r.forEach(e.edges(),(function(t){var n=e.edge(t);if(r.has(n,"x"))switch("l"!==n.labelpos&&"r"!==n.labelpos||(n.width-=n.labeloffset),n.labelpos){case"l":n.x-=n.width/2+n.labeloffset;break;case"r":n.x+=n.width/2+n.labeloffset}}))}(e)})),t(" undoCoordinateSystem",(function(){d.undo(e)})),t(" translateGraph",(function(){!function(e){var t=Number.POSITIVE_INFINITY,n=0,o=Number.POSITIVE_INFINITY,i=0,a=e.graph(),l=a.marginx||0,u=a.marginy||0;function s(e){var r=e.x,a=e.y,l=e.width,u=e.height;t=Math.min(t,r-l/2),n=Math.max(n,r+l/2),o=Math.min(o,a-u/2),i=Math.max(i,a+u/2)}r.forEach(e.nodes(),(function(t){s(e.node(t))})),r.forEach(e.edges(),(function(t){var n=e.edge(t);r.has(n,"x")&&s(n)})),t-=l,o-=u,r.forEach(e.nodes(),(function(n){var r=e.node(n);r.x-=t,r.y-=o})),r.forEach(e.edges(),(function(n){var i=e.edge(n);r.forEach(i.points,(function(e){e.x-=t,e.y-=o})),r.has(i,"x")&&(i.x-=t),r.has(i,"y")&&(i.y-=o)})),a.width=n-t+l,a.height=i-o+u}(e)})),t(" assignNodeIntersects",(function(){!function(e){r.forEach(e.edges(),(function(t){var n,r,o=e.edge(t),i=e.node(t.v),a=e.node(t.w);o.points?(n=o.points[0],r=o.points[o.points.length-1]):(o.points=[],n=a,r=i),o.points.unshift(v.intersectRect(i,n)),o.points.push(v.intersectRect(a,r))}))}(e)})),t(" reversePoints",(function(){!function(e){r.forEach(e.edges(),(function(t){var n=e.edge(t);n.reversed&&n.points.reverse()}))}(e)})),t(" acyclic.undo",(function(){o.undo(e)}))}(t,n)})),n(" updateInputGraph",(function(){!function(e,t){r.forEach(e.nodes(),(function(n){var r=e.node(n),o=t.node(n);r&&(r.x=o.x,r.y=o.y,t.children(n).length&&(r.width=o.width,r.height=o.height))})),r.forEach(e.edges(),(function(n){var o=e.edge(n),i=t.edge(n);o.points=i.points,r.has(i,"x")&&(o.x=i.x,o.y=i.y)})),e.graph().width=t.graph().width,e.graph().height=t.graph().height}(e,t)}))}))};var y=["nodesep","edgesep","ranksep","marginx","marginy"],m={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},b=["acyclicer","ranker","rankdir","align"],x=["width","height"],w={width:0,height:0},_=["minlen","weight","width","height","labeloffset"],C={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},O=["labelpos"];function E(e,t){return r.mapValues(r.pick(e,t),Number)}function M(e){var t={};return r.forEach(e,(function(e,n){t[n.toLowerCase()]=e})),t}},function(e,t,n){var r=n(253),o=n(169),i=n(329),a=n(161),l=Object.prototype,u=l.hasOwnProperty,s=r((function(e,t){e=Object(e);var n=-1,r=t.length,s=r>2?t[2]:void 0;for(s&&i(t[0],t[1],s)&&(r=1);++n0;--u)if(r=t[u].dequeue()){o=o.concat(l(e,t,n,r,!0));break}}return o}(n.graph,n.buckets,n.zeroIdx);return r.flatten(r.map(s,(function(t){return e.outEdges(t.v,t.w)})),!0)};var a=r.constant(1);function l(e,t,n,o,i){var a=i?[]:void 0;return r.forEach(e.inEdges(o.v),(function(r){var o=e.edge(r),l=e.node(r.v);i&&a.push({v:r.v,w:r.w}),l.out-=o,u(t,n,l)})),r.forEach(e.outEdges(o.v),(function(r){var o=e.edge(r),i=r.w,a=e.node(i);a.in-=o,u(t,n,a)})),e.removeNode(o.v),a}function u(e,t,n){n.out?n.in?e[n.out-n.in+t].enqueue(n):e[e.length-1].enqueue(n):e[0].enqueue(n)}},function(e,t){function n(){var e={};e._next=e._prev=e,this._sentinel=e}function r(e){e._prev._next=e._next,e._next._prev=e._prev,delete e._next,delete e._prev}function o(e,t){if("_next"!==e&&"_prev"!==e)return t}e.exports=n,n.prototype.dequeue=function(){var e=this._sentinel,t=e._prev;if(t!==e)return r(t),t},n.prototype.enqueue=function(e){var t=this._sentinel;e._prev&&e._next&&r(e),e._next=t._next,t._next._prev=e,t._next=e,e._prev=t},n.prototype.toString=function(){for(var e=[],t=this._sentinel,n=t._prev;n!==t;)e.push(JSON.stringify(n,o)),n=n._prev;return"["+e.join(", ")+"]"}},function(e,t,n){"use strict";var r=n(835),o=n(891);e.exports={run:function(e){e.graph().dummyChains=[],r.forEach(e.edges(),(function(t){!function(e,t){var n,r,i,a=t.v,l=e.node(a).rank,u=t.w,s=e.node(u).rank,c=t.name,f=e.edge(t),d=f.labelRank;if(s===l+1)return;for(e.removeEdge(t),i=0,++l;lu.lim&&(s=u,c=!0);var f=r.filter(t.edges(),(function(t){return c===m(e,e.node(t.v),s)&&c!==m(e,e.node(t.w),s)}));return r.minBy(f,(function(e){return i(t,e)}))}function y(e,t,n,o){var i=n.v,a=n.w;e.removeEdge(i,a),e.setEdge(o.v,o.w,{}),p(e),f(e,t),function(e,t){var n=r.find(e.nodes(),(function(e){return!t.node(e).parent})),o=l(e,n);o=o.slice(1),r.forEach(o,(function(n){var r=e.node(n).parent,o=t.edge(n,r),i=!1;o||(o=t.edge(r,n),i=!0),t.node(n).rank=t.node(r).rank+(i?o.minlen:-o.minlen)}))}(e,t)}function m(e,t,n){return n.low<=t.lim&&t.lim<=n.lim}e.exports=c,c.initLowLimValues=p,c.initCutValues=f,c.calcCutValue=d,c.leaveEdge=v,c.enterEdge=g,c.exchangeEdges=y},function(e,t,n){var r=n(835);e.exports=function(e){var t=function(e){var t={},n=0;function o(i){var a=n;r.forEach(e.children(i),o),t[i]={low:a,lim:n++}}return r.forEach(e.children(),o),t}(e);r.forEach(e.graph().dummyChains,(function(n){for(var r=e.node(n),o=r.edgeObj,i=function(e,t,n,r){var o,i,a=[],l=[],u=Math.min(t[n].low,t[r].low),s=Math.max(t[n].lim,t[r].lim);o=n;do{o=e.parent(o),a.push(o)}while(o&&(t[o].low>u||s>t[o].lim));i=o,o=r;for(;(o=e.parent(o))!==i;)l.push(o);return{path:a.concat(l.reverse()),lca:i}}(e,t,o.v,o.w),a=i.path,l=i.lca,u=0,s=a[u],c=!0;n!==o.w;){if(r=e.node(n),c){for(;(s=a[u])!==l&&e.node(s).maxRank=2),l=c.buildLayerMatrix(e);var g=i(e,l);g0;)t%2&&(n+=u[t+1]),u[t=t-1>>1]+=e.weight;s+=e.weight*n}))),s}e.exports=function(e,t){for(var n=0,r=1;r=e.barycenter)&&function(e,t){var n=0,r=0;e.weight&&(n+=e.barycenter*e.weight,r+=e.weight);t.weight&&(n+=t.barycenter*t.weight,r+=t.weight);e.vs=t.vs.concat(e.vs),e.barycenter=n/r,e.weight=r,e.i=Math.min(t.i,e.i),t.merged=!0}(e,t)}}function o(t){return function(n){n.in.push(t),0==--n.indegree&&e.push(n)}}for(;e.length;){var i=e.pop();t.push(i),r.forEach(i.in.reverse(),n(i)),r.forEach(i.out,o(i))}return r.map(r.filter(t,(function(e){return!e.merged})),(function(e){return r.pick(e,["vs","i","barycenter","weight"])}))}(r.filter(n,(function(e){return!e.indegree})))}},function(e,t,n){var r=n(835),o=n(891);function i(e,t,n){for(var o;t.length&&(o=r.last(t)).i<=n;)t.pop(),e.push(o.vs),n++;return n}e.exports=function(e,t){var n=o.partition(e,(function(e){return r.has(e,"barycenter")})),a=n.lhs,l=r.sortBy(n.rhs,(function(e){return-e.i})),u=[],s=0,c=0,f=0;a.sort((d=!!t,function(e,t){return e.barycentert.barycenter?1:d?t.i-e.i:e.i-t.i})),f=i(u,l,f),r.forEach(a,(function(e){f+=e.vs.length,u.push(e.vs),s+=e.barycenter*e.weight,c+=e.weight,f=i(u,l,f)}));var d;var p={vs:r.flatten(u,!0)};c&&(p.barycenter=s/c,p.weight=c);return p}},function(e,t,n){var r=n(835),o=n(920).Graph;e.exports=function(e,t,n){var i=function(e){var t;for(;e.hasNode(t=r.uniqueId("_root")););return t}(e),a=new o({compound:!0}).setGraph({root:i}).setDefaultNodeLabel((function(t){return e.node(t)}));return r.forEach(e.nodes(),(function(o){var l=e.node(o),u=e.parent(o);(l.rank===t||l.minRank<=t&&t<=l.maxRank)&&(a.setNode(o),a.setParent(o,u||i),r.forEach(e[n](o),(function(t){var n=t.v===o?t.w:t.v,i=a.edge(n,o),l=r.isUndefined(i)?0:i.weight;a.setEdge(n,o,{weight:e.edge(t).weight+l})})),r.has(l,"minRank")&&a.setNode(o,{borderLeft:l.borderLeft[t],borderRight:l.borderRight[t]}))})),a}},function(e,t,n){var r=n(835);e.exports=function(e,t,n){var o,i={};r.forEach(n,(function(n){for(var r,a,l=e.parent(n);l;){if((r=e.parent(l))?(a=i[r],i[r]=l):(a=o,o=l),a&&a!==l)return void t.setEdge(a,l);l=r}}))}},function(e,t,n){"use strict";var r=n(835),o=n(891),i=n(4591).positionX;e.exports=function(e){(function(e){var t=o.buildLayerMatrix(e),n=e.graph().ranksep,i=0;r.forEach(t,(function(t){var o=r.max(r.map(t,(function(t){return e.node(t).height})));r.forEach(t,(function(t){e.node(t).y=i+o/2})),i+=o+n}))})(e=o.asNonCompoundGraph(e)),r.forEach(i(e),(function(t,n){e.node(n).x=t}))}},function(e,t,n){"use strict";var r=n(835),o=n(920).Graph,i=n(891);function a(e,t){var n={};return r.reduce(t,(function(t,o){var i=0,a=0,l=t.length,s=r.last(o);return r.forEach(o,(function(t,c){var f=function(e,t){if(e.node(t).dummy)return r.find(e.predecessors(t),(function(t){return e.node(t).dummy}))}(e,t),d=f?e.node(f).order:l;(f||t===s)&&(r.forEach(o.slice(a,c+1),(function(t){r.forEach(e.predecessors(t),(function(r){var o=e.node(r),a=o.order;!(al)&&u(n,t,s)}))}))}return r.reduce(t,(function(t,n){var i,a=-1,l=0;return r.forEach(n,(function(r,u){if("border"===e.node(r).dummy){var s=e.predecessors(r);s.length&&(i=e.node(s[0]).order,o(n,l,u,a,i),l=u,a=i)}o(n,l,n.length,i,t.length)})),n})),n}function u(e,t,n){if(t>n){var r=t;t=n,n=r}var o=e[t];o||(e[t]=o={}),o[n]=!0}function s(e,t,n){if(t>n){var o=t;t=n,n=o}return r.has(e[t],n)}function c(e,t,n,o){var i={},a={},l={};return r.forEach(t,(function(e){r.forEach(e,(function(e,t){i[e]=e,a[e]=e,l[e]=t}))})),r.forEach(t,(function(e){var t=-1;r.forEach(e,(function(e){var u=o(e);if(u.length)for(var c=((u=r.sortBy(u,(function(e){return l[e]}))).length-1)/2,f=Math.floor(c),d=Math.ceil(c);f<=d;++f){var p=u[f];a[e]===e&&t?@[\\\]^|]/,Q=/[\0\t\n\r #/:<>?@[\\\]^|]/,ee=/^[\u0000-\u0020]+/,te=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,ne=/[\t\n\r]/g,re=function(e){var t,n,r,o;if("number"==typeof e){for(t=[],n=0;n<4;n++)U(t,e%256),e=T(e/256);return N(t,".")}if("object"==typeof e){for(t="",r=function(e){for(var t=null,n=1,r=null,o=0,i=0;i<8;i++)0!==e[i]?(o>n&&(t=r,n=o),r=null,o=0):(null===r&&(r=i),++o);return o>n&&(t=r,n=o),t}(e),n=0;n<8;n++)o&&0===e[n]||(o&&(o=!1),r===n?(t+=n?":":"::",o=!0):(t+=D(e[n],16),n<7&&(t+=":")));return"["+t+"]"}return e},oe={},ie=h({},oe,{" ":1,'"':1,"<":1,">":1,"`":1}),ae=h({},ie,{"#":1,"?":1,"{":1,"}":1}),le=h({},ae,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),ue=function(e,t){var n=y(e,0);return n>32&&n<127&&!p(t,e)?e:encodeURIComponent(e)},se={ftp:21,file:null,http:80,https:443,ws:80,wss:443},ce=function(e,t){var n;return 2===e.length&&z(Z,L(e,0))&&(":"===(n=L(e,1))||!t&&"|"===n)},fe=function(e){var t;return e.length>1&&ce(V(e,0,2))&&(2===e.length||"/"===(t=L(e,2))||"\\"===t||"?"===t||"#"===t)},de=function(e){return"."===e||"%2e"===$(e)},pe={},he={},ve={},ge={},ye={},me={},be={},xe={},we={},_e={},Ce={},Oe={},Ee={},Me={},Se={},Ae={},ke={},je={},Te={},Pe={},Le={},ze=function(e,t,n){var r,o,i,a=b(e);if(t){if(o=this.parse(a))throw new k(o);this.searchParams=null}else{if(void 0!==n&&(r=new ze(n,!0)),o=this.parse(a,null,r))throw new k(o);(i=S(new M)).bindURL(this),this.searchParams=i}};ze.prototype={type:"URL",parse:function(e,t,n){var o,i,a,l,u,s=this,c=t||pe,f=0,d="",h=!1,y=!1,m=!1;for(e=b(e),t||(s.scheme="",s.username="",s.password="",s.host=null,s.port=null,s.path=[],s.query=null,s.fragment=null,s.cannotBeABaseURL=!1,e=H(e,ee,""),e=H(e,te,"$1")),e=H(e,ne,""),o=v(e);f<=o.length;){switch(i=o[f],c){case pe:if(!i||!z(Z,i)){if(t)return"Invalid scheme";c=ve;continue}d+=$(i),c=he;break;case he:if(i&&(z(W,i)||"+"===i||"-"===i||"."===i))d+=$(i);else{if(":"!==i){if(t)return"Invalid scheme";d="",c=ve,f=0;continue}if(t&&(s.isSpecial()!==p(se,d)||"file"===d&&(s.includesCredentials()||null!==s.port)||"file"===s.scheme&&!s.host))return;if(s.scheme=d,t)return void(s.isSpecial()&&se[s.scheme]===s.port&&(s.port=null));d="","file"===s.scheme?c=Me:s.isSpecial()&&n&&n.scheme===s.scheme?c=ge:s.isSpecial()?c=xe:"/"===o[f+1]?(c=ye,f++):(s.cannotBeABaseURL=!0,R(s.path,""),c=Te)}break;case ve:if(!n||n.cannotBeABaseURL&&"#"!==i)return"Invalid scheme";if(n.cannotBeABaseURL&&"#"===i){s.scheme=n.scheme,s.path=g(n.path),s.query=n.query,s.fragment="",s.cannotBeABaseURL=!0,c=Le;break}c="file"===n.scheme?Me:me;continue;case ge:if("/"!==i||"/"!==o[f+1]){c=me;continue}c=we,f++;break;case ye:if("/"===i){c=_e;break}c=je;continue;case me:if(s.scheme=n.scheme,i===r)s.username=n.username,s.password=n.password,s.host=n.host,s.port=n.port,s.path=g(n.path),s.query=n.query;else if("/"===i||"\\"===i&&s.isSpecial())c=be;else if("?"===i)s.username=n.username,s.password=n.password,s.host=n.host,s.port=n.port,s.path=g(n.path),s.query="",c=Pe;else{if("#"!==i){s.username=n.username,s.password=n.password,s.host=n.host,s.port=n.port,s.path=g(n.path),s.path.length--,c=je;continue}s.username=n.username,s.password=n.password,s.host=n.host,s.port=n.port,s.path=g(n.path),s.query=n.query,s.fragment="",c=Le}break;case be:if(!s.isSpecial()||"/"!==i&&"\\"!==i){if("/"!==i){s.username=n.username,s.password=n.password,s.host=n.host,s.port=n.port,c=je;continue}c=_e}else c=we;break;case xe:if(c=we,"/"!==i||"/"!==L(d,f+1))continue;f++;break;case we:if("/"!==i&&"\\"!==i){c=_e;continue}break;case _e:if("@"===i){h&&(d="%40"+d),h=!0,a=v(d);for(var x=0;x65535)return"Invalid port";s.port=s.isSpecial()&&C===se[s.scheme]?null:C,d=""}if(t)return;c=ke;continue}return"Invalid port"}d+=i;break;case Me:if(s.scheme="file","/"===i||"\\"===i)c=Se;else{if(!n||"file"!==n.scheme){c=je;continue}switch(i){case r:s.host=n.host,s.path=g(n.path),s.query=n.query;break;case"?":s.host=n.host,s.path=g(n.path),s.query="",c=Pe;break;case"#":s.host=n.host,s.path=g(n.path),s.query=n.query,s.fragment="",c=Le;break;default:fe(N(g(o,f),""))||(s.host=n.host,s.path=g(n.path),s.shortenPath()),c=je;continue}}break;case Se:if("/"===i||"\\"===i){c=Ae;break}n&&"file"===n.scheme&&!fe(N(g(o,f),""))&&(ce(n.path[0],!0)?R(s.path,n.path[0]):s.host=n.host),c=je;continue;case Ae:if(i===r||"/"===i||"\\"===i||"?"===i||"#"===i){if(!t&&ce(d))c=je;else if(""===d){if(s.host="",t)return;c=ke}else{if(l=s.parseHost(d))return l;if("localhost"===s.host&&(s.host=""),t)return;d="",c=ke}continue}d+=i;break;case ke:if(s.isSpecial()){if(c=je,"/"!==i&&"\\"!==i)continue}else if(t||"?"!==i)if(t||"#"!==i){if(i!==r&&(c=je,"/"!==i))continue}else s.fragment="",c=Le;else s.query="",c=Pe;break;case je:if(i===r||"/"===i||"\\"===i&&s.isSpecial()||!t&&("?"===i||"#"===i)){if(".."===(u=$(u=d))||"%2e."===u||".%2e"===u||"%2e%2e"===u?(s.shortenPath(),"/"===i||"\\"===i&&s.isSpecial()||R(s.path,"")):de(d)?"/"===i||"\\"===i&&s.isSpecial()||R(s.path,""):("file"===s.scheme&&!s.path.length&&ce(d)&&(s.host&&(s.host=""),d=L(d,0)+":"),R(s.path,d)),d="","file"===s.scheme&&(i===r||"?"===i||"#"===i))for(;s.path.length>1&&""===s.path[0];)B(s.path);"?"===i?(s.query="",c=Pe):"#"===i&&(s.fragment="",c=Le)}else d+=ue(i,ae);break;case Te:"?"===i?(s.query="",c=Pe):"#"===i?(s.fragment="",c=Le):i!==r&&(s.path[0]+=ue(i,oe));break;case Pe:t||"#"!==i?i!==r&&("'"===i&&s.isSpecial()?s.query+="%27":s.query+="#"===i?"%23":ue(i,oe)):(s.fragment="",c=Le);break;case Le:i!==r&&(s.fragment+=ue(i,ie))}f++}},parseHost:function(e){var t,n,r;if("["===L(e,0)){if("]"!==L(e,e.length-1))return"Invalid host";if(!(t=function(e){var t,n,r,o,i,a,l,u=[0,0,0,0,0,0,0,0],s=0,c=null,f=0,d=function(){return L(e,f)};if(":"===d()){if(":"!==L(e,1))return;f+=2,c=++s}for(;d();){if(8===s)return;if(":"!==d()){for(t=n=0;n<4&&z(X,d());)t=16*t+j(d(),16),f++,n++;if("."===d()){if(0===n)return;if(f-=n,s>6)return;for(r=0;d();){if(o=null,r>0){if(!("."===d()&&r<4))return;f++}if(!z(K,d()))return;for(;z(K,d());){if(i=j(d(),10),null===o)o=i;else{if(0===o)return;o=10*o+i}if(o>255)return;f++}u[s]=256*u[s]+o,2!==++r&&4!==r||s++}if(4!==r)return;break}if(":"===d()){if(f++,!d())return}else if(d())return;u[s++]=t}else{if(null!==c)return;f++,c=++s}}if(null!==c)for(a=s-c,s=7;0!==s&&a>0;)l=u[s],u[s--]=u[c+a-1],u[c+--a]=l;else if(8!==s)return;return u}(V(e,1,-1))))return"Invalid host";this.host=t}else if(this.isSpecial()){if(e=m(e),z(J,e))return"Invalid host";if(null===(t=function(e){var t,n,r,o,i,a,l,u=F(e,".");if(u.length&&""===u[u.length-1]&&u.length--,(t=u.length)>4)return e;for(n=[],r=0;r1&&"0"===L(o,0)&&(i=z(G,o)?16:8,o=V(o,8===i?1:2)),""===o)a=0;else{if(!z(10===i?Y:8===i?q:X,o))return e;a=j(o,i)}R(n,a)}for(r=0;r=P(256,5-t))return null}else if(a>255)return null;for(l=I(n),r=0;r1?arguments[1]:void 0,r=O(t,new ze(e,!1,n));i||(t.href=r.serialize(),t.origin=r.getOrigin(),t.protocol=r.getProtocol(),t.username=r.getUsername(),t.password=r.getPassword(),t.host=r.getHost(),t.hostname=r.getHostname(),t.port=r.getPort(),t.pathname=r.getPathname(),t.search=r.getSearch(),t.searchParams=r.getSearchParams(),t.hash=r.getHash())},De=Ne.prototype,Ie=function(e,t){return{get:function(){return E(this)[e]()},set:t&&function(e){return E(this)[t](e)},configurable:!0,enumerable:!0}};if(i&&(f(De,"href",Ie("serialize","setHref")),f(De,"origin",Ie("getOrigin")),f(De,"protocol",Ie("getProtocol","setProtocol")),f(De,"username",Ie("getUsername","setUsername")),f(De,"password",Ie("getPassword","setPassword")),f(De,"host",Ie("getHost","setHost")),f(De,"hostname",Ie("getHostname","setHostname")),f(De,"port",Ie("getPort","setPort")),f(De,"pathname",Ie("getPathname","setPathname")),f(De,"search",Ie("getSearch","setSearch")),f(De,"searchParams",Ie("getSearchParams")),f(De,"hash",Ie("getHash","setHash"))),c(De,"toJSON",(function(){return E(this).serialize()}),{enumerable:!0}),c(De,"toString",(function(){return E(this).serialize()}),{enumerable:!0}),A){var Re=A.createObjectURL,He=A.revokeObjectURL;Re&&c(Ne,"createObjectURL",u(Re,A)),He&&c(Ne,"revokeObjectURL",u(He,A))}x(Ne,"URL"),o({global:!0,constructor:!0,forced:!a,sham:!i},{URL:Ne})},function(e,t,n){"use strict";var r=n(21),o=/[^\0-\u007E]/,i=/[.\u3002\uFF0E\uFF61]/g,a="Overflow: input needs wider integers to process",l=RangeError,u=r(i.exec),s=Math.floor,c=String.fromCharCode,f=r("".charCodeAt),d=r([].join),p=r([].push),h=r("".replace),v=r("".split),g=r("".toLowerCase),y=function(e){return e+22+75*(e<26)},m=function(e,t,n){var r=0;for(e=n?s(e/700):e>>1,e+=s(e/t);e>455;)e=s(e/35),r+=36;return s(r+36*e/(e+38))},b=function(e){var t,n,r=[],o=(e=function(e){for(var t=[],n=0,r=e.length;n=55296&&o<=56319&&n=i&&ns((2147483647-u)/x))throw new l(a);for(u+=(b-i)*x,i=b,t=0;t2147483647)throw new l(a);if(n===i){for(var w=u,_=36;;){var C=_<=h?1:_>=h+26?26:_-h;if(wn||c!=c?u*(1/0):u*c}},function(e,t,n){"use strict";e.exports=Math.sign||function(e){var t=+e;return 0===t||t!=t?t:t<0?-1:1}},function(e,t,n){"use strict";var r=Array,o=Math.abs,i=Math.pow,a=Math.floor,l=Math.log,u=Math.LN2;e.exports={pack:function(e,t,n){var s,c,f,d=r(n),p=8*n-t-1,h=(1<>1,g=23===t?i(2,-24)-i(2,-77):0,y=e<0||0===e&&1/e<0?1:0,m=0;for((e=o(e))!=e||e===1/0?(c=e!=e?1:0,s=h):(s=a(l(e)/u),e*(f=i(2,-s))<1&&(s--,f*=2),(e+=s+v>=1?g/f:g*i(2,1-v))*f>=2&&(s++,f/=2),s+v>=h?(c=0,s=h):s+v>=1?(c=(e*f-1)*i(2,t),s+=v):(c=e*i(2,v-1)*i(2,t),s=0));t>=8;)d[m++]=255&c,c/=256,t-=8;for(s=s<0;)d[m++]=255&s,s/=256,p-=8;return d[--m]|=128*y,d},unpack:function(e,t){var n,r=e.length,o=8*r-t-1,a=(1<>1,u=o-7,s=r-1,c=e[s--],f=127&c;for(c>>=7;u>0;)f=256*f+e[s--],u-=8;for(n=f&(1<<-u)-1,f>>=-u,u+=t;u>0;)n=256*n+e[s--],u-=8;if(0===f)f=1-l;else{if(f===a)return n?NaN:c?-1/0:1/0;n+=i(2,t),f-=l}return(c?-1:1)*n*i(2,f-t)}}},function(e,t,n){"use strict";var r=n(8),o=n(25),i=n(39),a=n(33),l=n(4794),u=n(811),s=n(1451),c=n(254),f=n(142),d=n(102),p=n(1538),h=n(140),v=n(1453),g=n(1931),y=n(4796),m=n(266),b=n(53),x=n(202),w=n(54),_=n(166),C=n(115),O=n(107),E=n(204),M=n(149).f,S=n(4797),A=n(113).forEach,k=n(269),j=n(114),T=n(70),P=n(116),L=n(1455),z=n(101),N=n(206),D=z.get,I=z.set,R=z.enforce,H=T.f,B=P.f,F=o.RangeError,V=s.ArrayBuffer,$=V.prototype,U=s.DataView,Z=u.NATIVE_ARRAY_BUFFER_VIEWS,W=u.TYPED_ARRAY_TAG,K=u.TypedArray,G=u.TypedArrayPrototype,q=u.isTypedArray,Y=function(e,t){j(e,t,{configurable:!0,get:function(){return D(this)[t]}})},X=function(e){var t;return O($,e)||"ArrayBuffer"===(t=x(e))||"SharedArrayBuffer"===t},J=function(e,t){return q(e)&&!_(t)&&t in e&&p(+t)&&t>=0},Q=function(e,t){return t=m(t),J(e,t)?f(2,e[t]):B(e,t)},ee=function(e,t,n){return t=m(t),!(J(e,t)&&w(n)&&b(n,"value"))||b(n,"get")||b(n,"set")||n.configurable||b(n,"writable")&&!n.writable||b(n,"enumerable")&&!n.enumerable?H(e,t,n):(e[t]=n.value,e)};a?(Z||(P.f=Q,T.f=ee,Y(G,"buffer"),Y(G,"byteOffset"),Y(G,"byteLength"),Y(G,"length")),r({target:"Object",stat:!0,forced:!Z},{getOwnPropertyDescriptor:Q,defineProperty:ee}),e.exports=function(e,t,n){var a=e.match(/\d+/)[0]/8,u=e+(n?"Clamped":"")+"Array",s="get"+e,f="set"+e,p=o[u],m=p,b=m&&m.prototype,x={},_=function(e,t){H(e,t,{get:function(){return function(e,t){var n=D(e);return n.view[s](t*a+n.byteOffset,!0)}(this,t)},set:function(e){return function(e,t,r){var o=D(e);o.view[f](t*a+o.byteOffset,n?y(r):r,!0)}(this,t,e)},enumerable:!0})};Z?l&&(m=t((function(e,t,n,r){return c(e,b),N(w(t)?X(t)?void 0!==r?new p(t,g(n,a),r):void 0!==n?new p(t,g(n,a)):new p(t):q(t)?L(m,t):i(S,m,t):new p(v(t)),e,m)})),E&&E(m,K),A(M(p),(function(e){e in m||d(m,e,p[e])})),m.prototype=b):(m=t((function(e,t,n,r){c(e,b);var o,l,u,s=0,f=0;if(w(t)){if(!X(t))return q(t)?L(m,t):i(S,m,t);o=t,f=g(n,a);var d=t.byteLength;if(void 0===r){if(d%a)throw new F("Wrong length");if((l=d-f)<0)throw new F("Wrong length")}else if((l=h(r)*a)+f>d)throw new F("Wrong length");u=l/a}else u=v(t),o=new V(l=u*a);for(I(e,{buffer:o,byteOffset:f,byteLength:l,length:u,view:new U(o)});s255?255:255&t}},function(e,t,n){"use strict";var r=n(141),o=n(39),i=n(345),a=n(77),l=n(99),u=n(339),s=n(262),c=n(347),f=n(1932),d=n(811).aTypedArrayConstructor,p=n(1454);e.exports=function(e){var t,n,h,v,g,y,m,b,x=i(this),w=a(e),_=arguments.length,C=_>1?arguments[1]:void 0,O=void 0!==C,E=s(w);if(E&&!c(E))for(b=(m=u(w,E)).next,w=[];!(y=o(b,m)).done;)w.push(y.value);for(O&&_>2&&(C=r(C,arguments[2])),n=l(w),h=new(d(x))(n),v=f(h),t=0;n>t;t++)g=O?C(w[t],t):w[t],h[t]=v?p(g):+g;return h}},function(e,t,n){"use strict";var r=n(77),o=n(256),i=n(99),a=n(340),l=Math.min;e.exports=[].copyWithin||function(e,t){var n=r(this),u=i(n),s=o(e,u),c=o(t,u),f=arguments.length>2?arguments[2]:void 0,d=l((void 0===f?u:o(f,u))-c,u-s),p=1;for(c0;)c in n?n[s]=n[c]:a(n,s),s+=p,c+=p;return n}},function(e,t,n){"use strict";var r=n(1455),o=n(1246);e.exports=function(e,t){return r(o(e),t)}},function(e,t,n){"use strict";n(4801)},function(e,t,n){"use strict";var r=n(8),o=n(1451);r({global:!0,constructor:!0,forced:!n(1452)},{DataView:o.DataView})},function(e,t,n){"use strict";var r=n(33),o=n(114),i=n(1956),a=ArrayBuffer.prototype;r&&!("detached"in a)&&o(a,"detached",{configurable:!0,get:function(){return i(this)}})},function(e,t,n){"use strict";var r=n(8),o=n(1958);o&&r({target:"ArrayBuffer",proto:!0},{transfer:function(){return o(this,arguments.length?arguments[0]:void 0,!0)}})},function(e,t,n){"use strict";var r,o,i,a,l=n(25),u=n(1886),s=n(1959),c=l.structuredClone,f=l.ArrayBuffer,d=l.MessageChannel,p=!1;if(s)p=function(e){c(e,{transfer:[e]})};else if(f)try{d||(r=u("worker_threads"))&&(d=r.MessageChannel),d&&(o=new d,i=new f(2),a=function(e){o.port1.postMessage(null,[e])},2===i.byteLength&&(a(i),0===i.byteLength&&(p=a)))}catch(e){}e.exports=p},function(e,t,n){"use strict";var r=n(8),o=n(1958);o&&r({target:"ArrayBuffer",proto:!0},{transferToFixedLength:function(){return o(this,arguments.length?arguments[0]:void 0,!1)}})},function(e,t,n){"use strict";var r=n(811),o=n(99),i=n(112),a=r.aTypedArray;(0,r.exportTypedArrayMethod)("at",(function(e){var t=a(this),n=o(t),r=i(e),l=r>=0?r:n+r;return l<0||l>=n?void 0:t[l]}))},function(e,t,n){"use strict";var r=n(811),o=n(1960).findLast,i=r.aTypedArray;(0,r.exportTypedArrayMethod)("findLast",(function(e){return o(i(this),e,arguments.length>1?arguments[1]:void 0)}))},function(e,t,n){"use strict";var r=n(811),o=n(1960).findLastIndex,i=r.aTypedArray;(0,r.exportTypedArrayMethod)("findLastIndex",(function(e){return o(i(this),e,arguments.length>1?arguments[1]:void 0)}))},function(e,t,n){"use strict";var r=n(4810),o=n(811),i=o.aTypedArray,a=o.exportTypedArrayMethod,l=o.getTypedArrayConstructor;a("toReversed",(function(){return r(i(this),l(this))}))},function(e,t,n){"use strict";var r=n(99);e.exports=function(e,t){for(var n=r(e),o=new t(n),i=0;i=l||s<0)throw new i("Incorrect index");for(var c=new t(l),f=0;f1?"& ":"")+t[o],t=t.join(r>2?", ":" "),e.replace(n,"{\n/* [wrapped with "+t+"] */\n")}},function(e,t,n){var r=n(478),o=n(342),i=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]];e.exports=function(e,t){return r(i,(function(n){var r="_."+n[0];t&n[1]&&!o(e,r)&&e.push(r)})),e.sort()}},function(e,t,n){var r=n(337),o=n(211),i=Math.min;e.exports=function(e,t){for(var n=e.length,a=i(t.length,n),l=r(e);a--;){var u=t[a];e[a]=o(u,n)?l[u]:void 0}return e}},function(e,t,n){var r=n(488),o=n(1247),i=n(100);e.exports=function(e,t,n,a){var l=1&t,u=o(e);return function t(){for(var o=-1,s=arguments.length,c=-1,f=a.length,d=Array(f+s),p=this&&this!==i&&this instanceof t?u:e;++c-1},A.prototype.set=function(e,t){var n=this.__data__,r=j(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},k.prototype.clear=function(){this.__data__={hash:new S,map:new(C||A),string:new S}},k.prototype.delete=function(e){return L(this,e).delete(e)},k.prototype.get=function(e){return L(this,e).get(e)},k.prototype.has=function(e){return L(this,e).has(e)},k.prototype.set=function(e,t){return L(this,e).set(e,t),this};var N=I((function(e){var t;e=null==(t=e)?"":function(e){if("string"==typeof e)return e;if(B(e))return M?M.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(t);var n=[];return o.test(e)&&n.push(""),e.replace(i,(function(e,t,r,o){n.push(r?o.replace(a,"$1"):t||e)})),n}));function D(e){if("string"==typeof e||B(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function I(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a),a};return n.cache=new(I.Cache||k),n}I.Cache=k;var R=Array.isArray;function H(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function B(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==b.call(e)}e.exports=function(e,t,n){var r=null==e?void 0:T(e,t);return void 0===r?n:r}}).call(this,n(69))},function(e,t){var n=function(){this.Diff_Timeout=1,this.Diff_EditCost=4,this.Match_Threshold=.5,this.Match_Distance=1e3,this.Patch_DeleteThreshold=.5,this.Patch_Margin=4,this.Match_MaxBits=32};n.Diff=function(e,t){return[e,t]},n.prototype.diff_main=function(e,t,r,o){void 0===o&&(o=this.Diff_Timeout<=0?Number.MAX_VALUE:(new Date).getTime()+1e3*this.Diff_Timeout);var i=o;if(null==e||null==t)throw new Error("Null input. (diff_main)");if(e==t)return e?[new n.Diff(0,e)]:[];void 0===r&&(r=!0);var a=r,l=this.diff_commonPrefix(e,t),u=e.substring(0,l);e=e.substring(l),t=t.substring(l),l=this.diff_commonSuffix(e,t);var s=e.substring(e.length-l);e=e.substring(0,e.length-l),t=t.substring(0,t.length-l);var c=this.diff_compute_(e,t,a,i);return u&&c.unshift(new n.Diff(0,u)),s&&c.push(new n.Diff(0,s)),this.diff_cleanupMerge(c),c},n.prototype.diff_compute_=function(e,t,r,o){var i;if(!e)return[new n.Diff(1,t)];if(!t)return[new n.Diff(-1,e)];var a=e.length>t.length?e:t,l=e.length>t.length?t:e,u=a.indexOf(l);if(-1!=u)return i=[new n.Diff(1,a.substring(0,u)),new n.Diff(0,l),new n.Diff(1,a.substring(u+l.length))],e.length>t.length&&(i[0][0]=i[2][0]=-1),i;if(1==l.length)return[new n.Diff(-1,e),new n.Diff(1,t)];var s=this.diff_halfMatch_(e,t);if(s){var c=s[0],f=s[1],d=s[2],p=s[3],h=s[4],v=this.diff_main(c,d,r,o),g=this.diff_main(f,p,r,o);return v.concat([new n.Diff(0,h)],g)}return r&&e.length>100&&t.length>100?this.diff_lineMode_(e,t,o):this.diff_bisect_(e,t,o)},n.prototype.diff_lineMode_=function(e,t,r){var o=this.diff_linesToChars_(e,t);e=o.chars1,t=o.chars2;var i=o.lineArray,a=this.diff_main(e,t,!1,r);this.diff_charsToLines_(a,i),this.diff_cleanupSemantic(a),a.push(new n.Diff(0,""));for(var l=0,u=0,s=0,c="",f="";l=1&&s>=1){a.splice(l-u-s,u+s),l=l-u-s;for(var d=this.diff_main(c,f,!1,r),p=d.length-1;p>=0;p--)a.splice(l,0,d[p]);l+=d.length}s=0,u=0,c="",f=""}l++}return a.pop(),a},n.prototype.diff_bisect_=function(e,t,r){for(var o=e.length,i=t.length,a=Math.ceil((o+i)/2),l=a,u=2*a,s=new Array(u),c=new Array(u),f=0;fr);m++){for(var b=-m+h;b<=m-v;b+=2){for(var x=l+b,w=(M=b==-m||b!=m&&s[x-1]o)v+=2;else if(w>i)h+=2;else if(p){if((O=l+d-b)>=0&&O=(C=o-c[O]))return this.diff_bisectSplit_(e,t,M,w,r)}}for(var _=-m+g;_<=m-y;_+=2){for(var C,O=l+_,E=(C=_==-m||_!=m&&c[O-1]o)y+=2;else if(E>i)g+=2;else if(!p){if((x=l+d-_)>=0&&x=(C=o-C))return this.diff_bisectSplit_(e,t,M,w,r)}}}}return[new n.Diff(-1,e),new n.Diff(1,t)]},n.prototype.diff_bisectSplit_=function(e,t,n,r,o){var i=e.substring(0,n),a=t.substring(0,r),l=e.substring(n),u=t.substring(r),s=this.diff_main(i,a,!1,o),c=this.diff_main(l,u,!1,o);return s.concat(c)},n.prototype.diff_linesToChars_=function(e,t){var n=[],r={};function o(e){for(var t="",o=0,a=-1,l=n.length;ar?e=e.substring(n-r):nt.length?e:t,r=e.length>t.length?t:e;if(n.length<4||2*r.length=e.length?[r,i,a,l,c]:null}var a,l,u,s,c,f=i(n,r,Math.ceil(n.length/4)),d=i(n,r,Math.ceil(n.length/2));return f||d?(a=d?f&&f[4].length>d[4].length?f:d:f,e.length>t.length?(l=a[0],u=a[1],s=a[2],c=a[3]):(s=a[0],c=a[1],l=a[2],u=a[3]),[l,u,s,c,a[4]]):null},n.prototype.diff_cleanupSemantic=function(e){for(var t=!1,r=[],o=0,i=null,a=0,l=0,u=0,s=0,c=0;a0?r[o-1]:-1,l=0,u=0,s=0,c=0,i=null,t=!0)),a++;for(t&&this.diff_cleanupMerge(e),this.diff_cleanupSemanticLossless(e),a=1;a=h?(p>=f.length/2||p>=d.length/2)&&(e.splice(a,0,new n.Diff(0,d.substring(0,p))),e[a-1][1]=f.substring(0,f.length-p),e[a+1][1]=d.substring(p),a++):(h>=f.length/2||h>=d.length/2)&&(e.splice(a,0,new n.Diff(0,f.substring(0,h))),e[a-1][0]=1,e[a-1][1]=d.substring(0,d.length-h),e[a+1][0]=-1,e[a+1][1]=f.substring(h),a++),a++}a++}},n.prototype.diff_cleanupSemanticLossless=function(e){function t(e,t){if(!e||!t)return 6;var r=e.charAt(e.length-1),o=t.charAt(0),i=r.match(n.nonAlphaNumericRegex_),a=o.match(n.nonAlphaNumericRegex_),l=i&&r.match(n.whitespaceRegex_),u=a&&o.match(n.whitespaceRegex_),s=l&&r.match(n.linebreakRegex_),c=u&&o.match(n.linebreakRegex_),f=s&&e.match(n.blanklineEndRegex_),d=c&&t.match(n.blanklineStartRegex_);return f||d?5:s||c?4:i&&!l&&u?3:l||u?2:i||a?1:0}for(var r=1;r=d&&(d=p,s=o,c=i,f=a)}e[r-1][1]!=s&&(s?e[r-1][1]=s:(e.splice(r-1,1),r--),e[r][1]=c,f?e[r+1][1]=f:(e.splice(r+1,1),r--))}r++}},n.nonAlphaNumericRegex_=/[^a-zA-Z0-9]/,n.whitespaceRegex_=/\s/,n.linebreakRegex_=/[\r\n]/,n.blanklineEndRegex_=/\n\r?\n$/,n.blanklineStartRegex_=/^\r?\n\r?\n/,n.prototype.diff_cleanupEfficiency=function(e){for(var t=!1,r=[],o=0,i=null,a=0,l=!1,u=!1,s=!1,c=!1;a0?r[o-1]:-1,s=c=!1),t=!0)),a++;t&&this.diff_cleanupMerge(e)},n.prototype.diff_cleanupMerge=function(e){e.push(new n.Diff(0,""));for(var t,r=0,o=0,i=0,a="",l="";r1?(0!==o&&0!==i&&(0!==(t=this.diff_commonPrefix(l,a))&&(r-o-i>0&&0==e[r-o-i-1][0]?e[r-o-i-1][1]+=l.substring(0,t):(e.splice(0,0,new n.Diff(0,l.substring(0,t))),r++),l=l.substring(t),a=a.substring(t)),0!==(t=this.diff_commonSuffix(l,a))&&(e[r][1]=l.substring(l.length-t)+e[r][1],l=l.substring(0,l.length-t),a=a.substring(0,a.length-t))),r-=o+i,e.splice(r,o+i),a.length&&(e.splice(r,0,new n.Diff(-1,a)),r++),l.length&&(e.splice(r,0,new n.Diff(1,l)),r++),r++):0!==r&&0==e[r-1][0]?(e[r-1][1]+=e[r][1],e.splice(r,1)):r++,i=0,o=0,a="",l=""}""===e[e.length-1][1]&&e.pop();var u=!1;for(r=1;rt));n++)i=r,a=o;return e.length!=n&&-1===e[n][0]?a:a+(t-i)},n.prototype.diff_prettyHtml=function(e){for(var t=[],n=/&/g,r=//g,i=/\n/g,a=0;a");switch(l){case 1:t[a]=''+u+"";break;case-1:t[a]=''+u+"";break;case 0:t[a]=""+u+""}}return t.join("")},n.prototype.diff_text1=function(e){for(var t=[],n=0;nthis.Match_MaxBits)throw new Error("Pattern too long for this browser.");var r=this.match_alphabet_(t),o=this;function i(e,r){var i=e/t.length,a=Math.abs(n-r);return o.Match_Distance?i+a/o.Match_Distance:a?1:i}var a=this.Match_Threshold,l=e.indexOf(t,n);-1!=l&&(a=Math.min(i(0,l),a),-1!=(l=e.lastIndexOf(t,n+t.length))&&(a=Math.min(i(0,l),a)));var u,s,c=1<=h;y--){var m=r[e.charAt(y-1)];if(g[y]=0===p?(g[y+1]<<1|1)&m:(g[y+1]<<1|1)&m|(f[y+1]|f[y])<<1|1|f[y+1],g[y]&c){var b=i(p,y-1);if(b<=a){if(a=b,!((l=y-1)>n))break;h=Math.max(1,2*n-l)}}}if(i(p+1,n)>a)break;f=g}return l},n.prototype.match_alphabet_=function(e){for(var t={},n=0;n2&&(this.diff_cleanupSemantic(i),this.diff_cleanupEfficiency(i));else if(e&&"object"==typeof e&&void 0===t&&void 0===r)i=e,o=this.diff_text1(i);else if("string"==typeof e&&t&&"object"==typeof t&&void 0===r)o=e,i=t;else{if("string"!=typeof e||"string"!=typeof t||!r||"object"!=typeof r)throw new Error("Unknown call format to patch_make.");o=e,i=r}if(0===i.length)return[];for(var a=[],l=new n.patch_obj,u=0,s=0,c=0,f=o,d=o,p=0;p=2*this.Patch_Margin&&u&&(this.patch_addContext_(l,f),a.push(l),l=new n.patch_obj,u=0,f=d,s=c)}1!==h&&(s+=v.length),-1!==h&&(c+=v.length)}return u&&(this.patch_addContext_(l,f),a.push(l)),a},n.prototype.patch_deepCopy=function(e){for(var t=[],r=0;rthis.Match_MaxBits?-1!=(a=this.match_main(t,s.substring(0,this.Match_MaxBits),u))&&(-1==(c=this.match_main(t,s.substring(s.length-this.Match_MaxBits),u+s.length-this.Match_MaxBits))||a>=c)&&(a=-1):a=this.match_main(t,s,u),-1==a)o[i]=!1,r-=e[i].length2-e[i].length1;else if(o[i]=!0,r=a-u,s==(l=-1==c?t.substring(a,a+s.length):t.substring(a,c+this.Match_MaxBits)))t=t.substring(0,a)+this.diff_text2(e[i].diffs)+t.substring(a+s.length);else{var f=this.diff_main(s,l,!1);if(s.length>this.Match_MaxBits&&this.diff_levenshtein(f)/s.length>this.Patch_DeleteThreshold)o[i]=!1;else{this.diff_cleanupSemanticLossless(f);for(var d,p=0,h=0;ha[0][1].length){var l=t-a[0][1].length;a[0][1]=r.substring(a[0][1].length)+a[0][1],i.start1-=l,i.start2-=l,i.length1+=l,i.length2+=l}if(0==(a=(i=e[e.length-1]).diffs).length||0!=a[a.length-1][0])a.push(new n.Diff(0,r)),i.length1+=t,i.length2+=t;else if(t>a[a.length-1][1].length){l=t-a[a.length-1][1].length;a[a.length-1][1]+=r.substring(0,l),i.length1+=l,i.length2+=l}return r},n.prototype.patch_splitMax=function(e){for(var t=this.Match_MaxBits,r=0;r2*t?(u.length1+=f.length,i+=f.length,s=!1,u.diffs.push(new n.Diff(c,f)),o.diffs.shift()):(f=f.substring(0,t-u.length1-this.Patch_Margin),u.length1+=f.length,i+=f.length,0===c?(u.length2+=f.length,a+=f.length):s=!1,u.diffs.push(new n.Diff(c,f)),f==o.diffs[0][1]?o.diffs.shift():o.diffs[0][1]=o.diffs[0][1].substring(f.length))}l=(l=this.diff_text2(u.diffs)).substring(l.length-this.Patch_Margin);var d=this.diff_text1(o.diffs).substring(0,this.Patch_Margin);""!==d&&(u.length1+=d.length,u.length2+=d.length,0!==u.diffs.length&&0===u.diffs[u.diffs.length-1][0]?u.diffs[u.diffs.length-1][1]+=d:u.diffs.push(new n.Diff(0,d))),s||e.splice(++r,0,u)}}},n.prototype.patch_toText=function(e){for(var t=[],n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n=C.F1&&t<=C.F12)return!1;switch(t){case C.ALT:case C.CAPS_LOCK:case C.CONTEXT_MENU:case C.CTRL:case C.DOWN:case C.END:case C.ESC:case C.HOME:case C.INSERT:case C.LEFT:case C.MAC_FF_META:case C.META:case C.NUMLOCK:case C.NUM_CENTER:case C.PAGE_DOWN:case C.PAGE_UP:case C.PAUSE:case C.PRINT_SCREEN:case C.RIGHT:case C.SHIFT:case C.UP:case C.WIN_KEY:case C.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=C.ZERO&&e<=C.NINE)return!0;if(e>=C.NUM_ZERO&&e<=C.NUM_MULTIPLY)return!0;if(e>=C.A&&e<=C.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case C.SPACE:case C.QUESTION_MARK:case C.NUM_PLUS:case C.NUM_MINUS:case C.NUM_PERIOD:case C.NUM_DIVISION:case C.SEMICOLON:case C.DASH:case C.EQUALS:case C.COMMA:case C.PERIOD:case C.SLASH:case C.APOSTROPHE:case C.SINGLE_QUOTE:case C.OPEN_SQUARE_BRACKET:case C.BACKSLASH:case C.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},O=C;function E(e){return(E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function M(e){var t=function(e,t){if("object"!==E(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==E(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===E(t)?t:String(t)}function S(e,t,n){return(t=M(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function A(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function k(e){for(var t=1;t
    ",s={classPrefix:"hljs-",tabReplace:null,useBR:!1,languages:void 0};function c(e){return e.replace(/&/g,"&").replace(//g,">")}function f(e){return e.nodeName.toLowerCase()}function d(e,t){var n=e&&e.exec(t);return n&&0===n.index}function p(e){return i.test(e)}function h(e){var t,n={},r=Array.prototype.slice.call(arguments,1);for(t in e)n[t]=e[t];return r.forEach((function(e){for(t in e)n[t]=e[t]})),n}function v(e){var t=[];return function e(n,r){for(var o=n.firstChild;o;o=o.nextSibling)3===o.nodeType?r+=o.nodeValue.length:1===o.nodeType&&(t.push({event:"start",offset:r,node:o}),r=e(o,r),f(o).match(/br|hr|img|input/)||t.push({event:"stop",offset:r,node:o}));return r}(e,0),t}function g(e){function t(e){return e&&e.source||e}function r(n,r){return new RegExp(t(n),"m"+(e.case_insensitive?"i":"")+(r?"g":""))}!function o(i,a){if(!i.compiled){if(i.compiled=!0,i.keywords=i.keywords||i.beginKeywords,i.keywords){var l={},u=function(t,n){e.case_insensitive&&(n=n.toLowerCase()),n.split(" ").forEach((function(e){var n=e.split("|");l[n[0]]=[t,n[1]?Number(n[1]):1]}))};"string"==typeof i.keywords?u("keyword",i.keywords):n(i.keywords).forEach((function(e){u(e,i.keywords[e])})),i.keywords=l}i.lexemesRe=r(i.lexemes||/\w+/,!0),a&&(i.beginKeywords&&(i.begin="\\b("+i.beginKeywords.split(" ").join("|")+")\\b"),i.begin||(i.begin=/\B|\b/),i.beginRe=r(i.begin),i.endSameAsBegin&&(i.end=i.begin),i.end||i.endsWithParent||(i.end=/\B|\b/),i.end&&(i.endRe=r(i.end)),i.terminator_end=t(i.end)||"",i.endsWithParent&&a.terminator_end&&(i.terminator_end+=(i.end?"|":"")+a.terminator_end)),i.illegal&&(i.illegalRe=r(i.illegal)),null==i.relevance&&(i.relevance=1),i.contains||(i.contains=[]),i.contains=Array.prototype.concat.apply([],i.contains.map((function(e){return function(e){return e.variants&&!e.cached_variants&&(e.cached_variants=e.variants.map((function(t){return h(e,{variants:null},t)}))),e.cached_variants||e.endsWithParent&&[h(e)]||[e]}("self"===e?i:e)}))),i.contains.forEach((function(e){o(e,i)})),i.starts&&o(i.starts,a);var s=i.contains.map((function(e){return e.beginKeywords?"\\.?(?:"+e.begin+")\\.?":e.begin})).concat([i.terminator_end,i.illegal]).map(t).filter(Boolean);i.terminators=s.length?r(function(e,n){for(var r=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./,o=0,i="",a=0;a0&&(i+="|");u.length>0;){var s=r.exec(u);if(null==s){i+=u;break}i+=u.substring(0,s.index),u=u.substring(s.index+s[0].length),"\\"==s[0][0]&&s[1]?i+="\\"+String(Number(s[1])+l):(i+=s[0],"("==s[0]&&o++)}}return i}(s),!0):{exec:function(){return null}}}}(e)}function y(e,t,n,o){function i(e){return new RegExp(e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"),"m")}function a(e,t){var n=v.case_insensitive?t[0].toLowerCase():t[0];return e.keywords.hasOwnProperty(n)&&e.keywords[n]}function l(e,t,n,r){var o='')+t+(n?"":u):t}function f(){C+=null!=x.subLanguage?function(){var e="string"==typeof x.subLanguage;if(e&&!r[x.subLanguage])return c(O);var t=e?y(x.subLanguage,O,!0,w[x.subLanguage]):m(O,x.subLanguage.length?x.subLanguage:void 0);return x.relevance>0&&(E+=t.relevance),e&&(w[x.subLanguage]=t.top),l(t.language,t.value,!1,!0)}():function(){var e,t,n,r;if(!x.keywords)return c(O);for(r="",t=0,x.lexemesRe.lastIndex=0,n=x.lexemesRe.exec(O);n;)r+=c(O.substring(t,n.index)),(e=a(x,n))?(E+=e[1],r+=l(e[0],c(n[0]))):r+=c(n[0]),t=x.lexemesRe.lastIndex,n=x.lexemesRe.exec(O);return r+c(O.substr(t))}(),O=""}function p(e){C+=e.className?l(e.className,"",!0):"",x=Object.create(e,{parent:{value:x}})}function h(e,t){if(O+=e,null==t)return f(),0;var r=function(e,t){var n,r;for(n=0,r=t.contains.length;n")+'"');return O+=t,t.length||1}var v=_(e);if(!v)throw new Error('Unknown language: "'+e+'"');g(v);var b,x=o||v,w={},C="";for(b=x;b!==v;b=b.parent)b.className&&(C=l(b.className,"",!0)+C);var O="",E=0;try{for(var M,S,A=0;x.terminators.lastIndex=A,M=x.terminators.exec(t);)S=h(t.substring(A,M.index),M[0]),A=M.index+S;for(h(t.substr(A)),b=x;b.parent;b=b.parent)b.className&&(C+=u);return{relevance:E,value:C,language:e,top:x}}catch(e){if(e.message&&-1!==e.message.indexOf("Illegal"))return{relevance:0,value:c(t)};throw e}}function m(e,t){t=t||s.languages||n(r);var o={relevance:0,value:c(e)},i=o;return t.filter(_).filter(C).forEach((function(t){var n=y(t,e,!1);n.language=t,n.relevance>i.relevance&&(i=n),n.relevance>o.relevance&&(i=o,o=n)})),i.language&&(o.second_best=i),o}function b(e){return s.tabReplace||s.useBR?e.replace(l,(function(e,t){return s.useBR&&"\n"===e?"
    ":s.tabReplace?t.replace(/\t/g,s.tabReplace):""})):e}function x(e){var n,r,i,l,u,d=function(e){var t,n,r,o,i=e.className+" ";if(i+=e.parentNode?e.parentNode.className:"",n=a.exec(i))return _(n[1])?n[1]:"no-highlight";for(t=0,r=(i=i.split(/\s+/)).length;t/g,"\n"):n=e,u=n.textContent,i=d?y(d,u,!0):m(u),(r=v(n)).length&&((l=document.createElementNS("http://www.w3.org/1999/xhtml","div")).innerHTML=i.value,i.value=function(e,n,r){var o=0,i="",a=[];function l(){return e.length&&n.length?e[0].offset!==n[0].offset?e[0].offset"}function s(e){i+=""}function d(e){("start"===e.event?u:s)(e.node)}for(;e.length||n.length;){var p=l();if(i+=c(r.substring(o,p[0].offset)),o=p[0].offset,p===e){a.reverse().forEach(s);do{d(p.splice(0,1)[0]),p=l()}while(p===e&&p.length&&p[0].offset===o);a.reverse().forEach(u)}else"start"===p[0].event?a.push(p[0].node):a.pop(),d(p.splice(0,1)[0])}return i+c(r.substr(o))}(r,v(l),u)),i.value=b(i.value),e.innerHTML=i.value,e.className=function(e,t,n){var r=t?o[t]:n,i=[e.trim()];return e.match(/\bhljs\b/)||i.push("hljs"),-1===e.indexOf(r)&&i.push(r),i.join(" ").trim()}(e.className,d,i.language),e.result={language:i.language,re:i.relevance},i.second_best&&(e.second_best={language:i.second_best.language,re:i.second_best.relevance}))}function w(){if(!w.called){w.called=!0;var e=document.querySelectorAll("pre code");t.forEach.call(e,x)}}function _(e){return e=(e||"").toLowerCase(),r[e]||r[o[e]]}function C(e){var t=_(e);return t&&!t.disableAutodetect}e.highlight=y,e.highlightAuto=m,e.fixMarkup=b,e.highlightBlock=x,e.configure=function(e){s=h(s,e)},e.initHighlighting=w,e.initHighlightingOnLoad=function(){addEventListener("DOMContentLoaded",w,!1),addEventListener("load",w,!1)},e.registerLanguage=function(t,n){var i=r[t]=n(e);i.aliases&&i.aliases.forEach((function(e){o[e]=t}))},e.listLanguages=function(){return n(r)},e.getLanguage=_,e.autoDetection=C,e.inherit=h,e.IDENT_RE="[a-zA-Z]\\w*",e.UNDERSCORE_IDENT_RE="[a-zA-Z_]\\w*",e.NUMBER_RE="\\b\\d+(\\.\\d+)?",e.C_NUMBER_RE="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",e.BINARY_NUMBER_RE="\\b(0b[01]+)",e.RE_STARTERS_RE="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",e.BACKSLASH_ESCAPE={begin:"\\\\[\\s\\S]",relevance:0},e.APOS_STRING_MODE={className:"string",begin:"'",end:"'",illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},e.QUOTE_STRING_MODE={className:"string",begin:'"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},e.PHRASAL_WORDS_MODE={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},e.COMMENT=function(t,n,r){var o=e.inherit({className:"comment",begin:t,end:n,contains:[]},r||{});return o.contains.push(e.PHRASAL_WORDS_MODE),o.contains.push({className:"doctag",begin:"(?:TODO|FIXME|NOTE|BUG|XXX):",relevance:0}),o},e.C_LINE_COMMENT_MODE=e.COMMENT("//","$"),e.C_BLOCK_COMMENT_MODE=e.COMMENT("/\\*","\\*/"),e.HASH_COMMENT_MODE=e.COMMENT("#","$"),e.NUMBER_MODE={className:"number",begin:e.NUMBER_RE,relevance:0},e.C_NUMBER_MODE={className:"number",begin:e.C_NUMBER_RE,relevance:0},e.BINARY_NUMBER_MODE={className:"number",begin:e.BINARY_NUMBER_RE,relevance:0},e.CSS_NUMBER_MODE={className:"number",begin:e.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},e.REGEXP_MODE={className:"regexp",begin:/\//,end:/\/[gimuy]*/,illegal:/\n/,contains:[e.BACKSLASH_ESCAPE,{begin:/\[/,end:/\]/,relevance:0,contains:[e.BACKSLASH_ESCAPE]}]},e.TITLE_MODE={className:"title",begin:e.IDENT_RE,relevance:0},e.UNDERSCORE_TITLE_MODE={className:"title",begin:e.UNDERSCORE_IDENT_RE,relevance:0},e.METHOD_GUARD={begin:"\\.\\s*"+e.UNDERSCORE_IDENT_RE,relevance:0}}(t)},function(e,t){e.exports=function(e){var t={begin:/[A-Z\_\.\-]+\s*:/,returnBegin:!0,end:";",endsWithParent:!0,contains:[{className:"attribute",begin:/\S/,end:":",excludeEnd:!0,starts:{endsWithParent:!0,excludeEnd:!0,contains:[{begin:/[\w-]+\(/,returnBegin:!0,contains:[{className:"built_in",begin:/[\w-]+/},{begin:/\(/,end:/\)/,contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]}]},e.CSS_NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,e.C_BLOCK_COMMENT_MODE,{className:"number",begin:"#[0-9A-Fa-f]+"},{className:"meta",begin:"!important"}]}}]};return{case_insensitive:!0,illegal:/[=\/|'\$]/,contains:[e.C_BLOCK_COMMENT_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/},{className:"selector-class",begin:/\.[A-Za-z0-9_-]+/},{className:"selector-attr",begin:/\[/,end:/\]/,illegal:"$"},{className:"selector-pseudo",begin:/:(:)?[a-zA-Z0-9\_\-\+\(\)"'.]+/},{begin:"@(font-face|page)",lexemes:"[a-z-]+",keywords:"font-face page"},{begin:"@",end:"[{;]",illegal:/:/,contains:[{className:"keyword",begin:/\w+/},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"[a-zA-Z-][a-zA-Z0-9_-]*",relevance:0},{begin:"{",end:"}",illegal:/\S/,contains:[e.C_BLOCK_COMMENT_MODE,t]}]}}},function(e,t){e.exports=function(e){var t={literal:"true false null"},n=[e.QUOTE_STRING_MODE,e.C_NUMBER_MODE],r={end:",",endsWithParent:!0,excludeEnd:!0,contains:n,keywords:t},o={begin:"{",end:"}",contains:[{className:"attr",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE],illegal:"\\n"},e.inherit(r,{begin:/:/})],illegal:"\\S"},i={begin:"\\[",end:"\\]",contains:[e.inherit(r)],illegal:"\\S"};return n.splice(n.length,0,o,i),{contains:n,keywords:t,illegal:"\\S"}}},function(e,t){e.exports=function(e){var t="([\\w-]+|@{[\\w-]+})",n=[],r=[],o=function(e){return{className:"string",begin:"~?"+e+".*?"+e}},i=function(e,t,n){return{className:e,begin:t,relevance:n}},a={begin:"\\(",end:"\\)",contains:r,relevance:0};r.push(e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,o("'"),o('"'),e.CSS_NUMBER_MODE,{begin:"(url|data-uri)\\(",starts:{className:"string",end:"[\\)\\n]",excludeEnd:!0}},i("number","#[0-9A-Fa-f]+\\b"),a,i("variable","@@?[\\w-]+",10),i("variable","@{[\\w-]+}"),i("built_in","~?`[^`]*?`"),{className:"attribute",begin:"[\\w-]+\\s*:",end:":",returnBegin:!0,excludeEnd:!0},{className:"meta",begin:"!important"});var l=r.concat({begin:"{",end:"}",contains:n}),u={beginKeywords:"when",endsWithParent:!0,contains:[{beginKeywords:"and not"}].concat(r)},s={begin:t+"\\s*:",returnBegin:!0,end:"[;}]",relevance:0,contains:[{className:"attribute",begin:t,end:":",excludeEnd:!0,starts:{endsWithParent:!0,illegal:"[<=$]",relevance:0,contains:r}}]},c={className:"keyword",begin:"@(import|media|charset|font-face|(-[a-z]+-)?keyframes|supports|document|namespace|page|viewport|host)\\b",starts:{end:"[;{}]",returnEnd:!0,contains:r,relevance:0}},f={className:"variable",variants:[{begin:"@[\\w-]+\\s*:",relevance:15},{begin:"@[\\w-]+"}],starts:{end:"[;}]",returnEnd:!0,contains:l}},d={variants:[{begin:"[\\.#:&\\[>]",end:"[;{}]"},{begin:t,end:"{"}],returnBegin:!0,returnEnd:!0,illegal:"[<='$\"]",relevance:0,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,u,i("keyword","all\\b"),i("variable","@{[\\w-]+}"),i("selector-tag",t+"%?",0),i("selector-id","#"+t),i("selector-class","\\."+t,0),i("selector-tag","&",0),{className:"selector-attr",begin:"\\[",end:"\\]"},{className:"selector-pseudo",begin:/:(:)?[a-zA-Z0-9\_\-\+\(\)"'.]+/},{begin:"\\(",end:"\\)",contains:l},{begin:"!important"}]};return n.push(e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,c,f,s,d),{case_insensitive:!0,illegal:"[=>'/<($\"]",contains:n}}},function(e,t){e.exports=function(e){var t={className:"variable",begin:"(\\$[a-zA-Z-][a-zA-Z0-9_-]*)\\b"},n={className:"number",begin:"#[0-9A-Fa-f]+"};return e.CSS_NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,e.C_BLOCK_COMMENT_MODE,{case_insensitive:!0,illegal:"[=/|']",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"selector-id",begin:"\\#[A-Za-z0-9_-]+",relevance:0},{className:"selector-class",begin:"\\.[A-Za-z0-9_-]+",relevance:0},{className:"selector-attr",begin:"\\[",end:"\\]",illegal:"$"},{className:"selector-tag",begin:"\\b(a|abbr|acronym|address|area|article|aside|audio|b|base|big|blockquote|body|br|button|canvas|caption|cite|code|col|colgroup|command|datalist|dd|del|details|dfn|div|dl|dt|em|embed|fieldset|figcaption|figure|footer|form|frame|frameset|(h[1-6])|head|header|hgroup|hr|html|i|iframe|img|input|ins|kbd|keygen|label|legend|li|link|map|mark|meta|meter|nav|noframes|noscript|object|ol|optgroup|option|output|p|param|pre|progress|q|rp|rt|ruby|samp|script|section|select|small|span|strike|strong|style|sub|sup|table|tbody|td|textarea|tfoot|th|thead|time|title|tr|tt|ul|var|video)\\b",relevance:0},{begin:":(visited|valid|root|right|required|read-write|read-only|out-range|optional|only-of-type|only-child|nth-of-type|nth-last-of-type|nth-last-child|nth-child|not|link|left|last-of-type|last-child|lang|invalid|indeterminate|in-range|hover|focus|first-of-type|first-line|first-letter|first-child|first|enabled|empty|disabled|default|checked|before|after|active)"},{begin:"::(after|before|choices|first-letter|first-line|repeat-index|repeat-item|selection|value)"},t,{className:"attribute",begin:"\\b(z-index|word-wrap|word-spacing|word-break|width|widows|white-space|visibility|vertical-align|unicode-bidi|transition-timing-function|transition-property|transition-duration|transition-delay|transition|transform-style|transform-origin|transform|top|text-underline-position|text-transform|text-shadow|text-rendering|text-overflow|text-indent|text-decoration-style|text-decoration-line|text-decoration-color|text-decoration|text-align-last|text-align|tab-size|table-layout|right|resize|quotes|position|pointer-events|perspective-origin|perspective|page-break-inside|page-break-before|page-break-after|padding-top|padding-right|padding-left|padding-bottom|padding|overflow-y|overflow-x|overflow-wrap|overflow|outline-width|outline-style|outline-offset|outline-color|outline|orphans|order|opacity|object-position|object-fit|normal|none|nav-up|nav-right|nav-left|nav-index|nav-down|min-width|min-height|max-width|max-height|mask|marks|margin-top|margin-right|margin-left|margin-bottom|margin|list-style-type|list-style-position|list-style-image|list-style|line-height|letter-spacing|left|justify-content|initial|inherit|ime-mode|image-orientation|image-resolution|image-rendering|icon|hyphens|height|font-weight|font-variant-ligatures|font-variant|font-style|font-stretch|font-size-adjust|font-size|font-language-override|font-kerning|font-feature-settings|font-family|font|float|flex-wrap|flex-shrink|flex-grow|flex-flow|flex-direction|flex-basis|flex|filter|empty-cells|display|direction|cursor|counter-reset|counter-increment|content|column-width|column-span|column-rule-width|column-rule-style|column-rule-color|column-rule|column-gap|column-fill|column-count|columns|color|clip-path|clip|clear|caption-side|break-inside|break-before|break-after|box-sizing|box-shadow|box-decoration-break|bottom|border-width|border-top-width|border-top-style|border-top-right-radius|border-top-left-radius|border-top-color|border-top|border-style|border-spacing|border-right-width|border-right-style|border-right-color|border-right|border-radius|border-left-width|border-left-style|border-left-color|border-left|border-image-width|border-image-source|border-image-slice|border-image-repeat|border-image-outset|border-image|border-color|border-collapse|border-bottom-width|border-bottom-style|border-bottom-right-radius|border-bottom-left-radius|border-bottom-color|border-bottom|border|background-size|background-repeat|background-position|background-origin|background-image|background-color|background-clip|background-attachment|background-blend-mode|background|backface-visibility|auto|animation-timing-function|animation-play-state|animation-name|animation-iteration-count|animation-fill-mode|animation-duration|animation-direction|animation-delay|animation|align-self|align-items|align-content)\\b",illegal:"[^\\s]"},{begin:"\\b(whitespace|wait|w-resize|visible|vertical-text|vertical-ideographic|uppercase|upper-roman|upper-alpha|underline|transparent|top|thin|thick|text|text-top|text-bottom|tb-rl|table-header-group|table-footer-group|sw-resize|super|strict|static|square|solid|small-caps|separate|se-resize|scroll|s-resize|rtl|row-resize|ridge|right|repeat|repeat-y|repeat-x|relative|progress|pointer|overline|outside|outset|oblique|nowrap|not-allowed|normal|none|nw-resize|no-repeat|no-drop|newspaper|ne-resize|n-resize|move|middle|medium|ltr|lr-tb|lowercase|lower-roman|lower-alpha|loose|list-item|line|line-through|line-edge|lighter|left|keep-all|justify|italic|inter-word|inter-ideograph|inside|inset|inline|inline-block|inherit|inactive|ideograph-space|ideograph-parenthesis|ideograph-numeric|ideograph-alpha|horizontal|hidden|help|hand|groove|fixed|ellipsis|e-resize|double|dotted|distribute|distribute-space|distribute-letter|distribute-all-lines|disc|disabled|default|decimal|dashed|crosshair|collapse|col-resize|circle|char|center|capitalize|break-word|break-all|bottom|both|bolder|bold|block|bidi-override|below|baseline|auto|always|all-scroll|absolute|table|table-cell)\\b"},{begin:":",end:";",contains:[t,n,e.CSS_NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{className:"meta",begin:"!important"}]},{begin:"@",end:"[{;]",keywords:"mixin include extend for if else each while charset import debug media page content font-face namespace warn",contains:[t,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,n,e.CSS_NUMBER_MODE,{begin:"\\s[A-Za-z0-9_.-]+",relevance:0}]}]}}},function(e,t){e.exports=function(e){var t="[A-Za-z$_][0-9A-Za-z$_]*",n={keyword:"in of if for while finally var new function do return void else break catch instanceof with throw case default try this switch continue typeof delete let yield const export super debugger as async await static import from as",literal:"true false null undefined NaN Infinity",built_in:"eval isFinite isNaN parseFloat parseInt decodeURI decodeURIComponent encodeURI encodeURIComponent escape unescape Object Function Boolean Error EvalError InternalError RangeError ReferenceError StopIteration SyntaxError TypeError URIError Number Math Date String RegExp Array Float32Array Float64Array Int16Array Int32Array Int8Array Uint16Array Uint32Array Uint8Array Uint8ClampedArray ArrayBuffer DataView JSON Intl arguments require module console window document Symbol Set Map WeakSet WeakMap Proxy Reflect Promise"},r={className:"number",variants:[{begin:"\\b(0[bB][01]+)"},{begin:"\\b(0[oO][0-7]+)"},{begin:e.C_NUMBER_RE}],relevance:0},o={className:"subst",begin:"\\$\\{",end:"\\}",keywords:n,contains:[]},i={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,o]};o.contains=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,i,r,e.REGEXP_MODE];var a=o.contains.concat([e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]);return{aliases:["js","jsx"],keywords:n,contains:[{className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},{className:"meta",begin:/^#!/,end:/$/},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,i,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,r,{begin:/[{,]\s*/,relevance:0,contains:[{begin:t+"\\s*:",returnBegin:!0,relevance:0,contains:[{className:"attr",begin:t,relevance:0}]}]},{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.REGEXP_MODE,{className:"function",begin:"(\\(.*?\\)|"+t+")\\s*=>",returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:t},{begin:/\(\s*\)/},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:n,contains:a}]}]},{className:"",begin:/\s/,end:/\s*/,skip:!0},{begin://,subLanguage:"xml",contains:[{begin:/<[A-Za-z0-9\\._:-]+\s*\/>/,skip:!0},{begin:/<[A-Za-z0-9\\._:-]+/,end:/(\/[A-Za-z0-9\\._:-]+|[A-Za-z0-9\\._:-]+\/)>/,skip:!0,contains:[{begin:/<[A-Za-z0-9\\._:-]+\s*\/>/,skip:!0},"self"]}]}],relevance:0},{className:"function",beginKeywords:"function",end:/\{/,excludeEnd:!0,contains:[e.inherit(e.TITLE_MODE,{begin:t}),{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,contains:a}],illegal:/\[|%/},{begin:/\$[(.]/},e.METHOD_GUARD,{className:"class",beginKeywords:"class",end:/[{;=]/,excludeEnd:!0,illegal:/[:"\[\]]/,contains:[{beginKeywords:"extends"},e.UNDERSCORE_TITLE_MODE]},{beginKeywords:"constructor get set",end:/\{/,excludeEnd:!0}],illegal:/#(?!!)/}}},function(e,t){e.exports=function(e){var t={keyword:"in if for while finally var new function do return void else break catch instanceof with throw case default try this switch continue typeof delete let yield const class public private protected get set super static implements enum export import declare type namespace abstract as from extends async await",literal:"true false null undefined NaN Infinity",built_in:"eval isFinite isNaN parseFloat parseInt decodeURI decodeURIComponent encodeURI encodeURIComponent escape unescape Object Function Boolean Error EvalError InternalError RangeError ReferenceError StopIteration SyntaxError TypeError URIError Number Math Date String RegExp Array Float32Array Float64Array Int16Array Int32Array Int8Array Uint16Array Uint32Array Uint8Array Uint8ClampedArray ArrayBuffer DataView JSON Intl arguments require module console window document any number boolean string void Promise"},n={className:"meta",begin:"@[A-Za-z$_][0-9A-Za-z$_]*"},r={begin:"\\(",end:/\)/,keywords:t,contains:["self",e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,e.NUMBER_MODE]},o={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:t,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,n,r]};return{aliases:["ts"],keywords:t,contains:[{className:"meta",begin:/^\s*['"]use strict['"]/},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,{className:"subst",begin:"\\$\\{",end:"\\}"}]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"number",variants:[{begin:"\\b(0[bB][01]+)"},{begin:"\\b(0[oO][0-7]+)"},{begin:e.C_NUMBER_RE}],relevance:0},{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.REGEXP_MODE,{className:"function",begin:"(\\(.*?\\)|"+e.IDENT_RE+")\\s*=>",returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:e.IDENT_RE},{begin:/\(\s*\)/},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:t,contains:["self",e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]}]}]}],relevance:0},{className:"function",begin:"function",end:/[\{;]/,excludeEnd:!0,keywords:t,contains:["self",e.inherit(e.TITLE_MODE,{begin:"[A-Za-z$_][0-9A-Za-z$_]*"}),o],illegal:/%/,relevance:0},{beginKeywords:"constructor",end:/\{/,excludeEnd:!0,contains:["self",o]},{begin:/module\./,keywords:{built_in:"module"},relevance:0},{beginKeywords:"module",end:/\{/,excludeEnd:!0},{beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:"interface extends"},{begin:/\$[(.]/},{begin:"\\."+e.IDENT_RE,relevance:0},n,r]}}},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){e.addEventListener("keydown",(function(e){if(e.ctrlKey||e.metaKey||e.altKey||e.shiftKey){if((e.ctrlKey||e.metaKey)&&!e.altKey&&!e.shiftKey)switch(e.keyCode){case 90:e.preventDefault(),t("undo");break;case 89:e.preventDefault(),t("redo");break;case 83:e.preventDefault(),t("save")}}else switch(e.keyCode){case 9:e.preventDefault(),t("tab")}}))}},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};t.__esModule=!0;var a=i(n(0)),l=function(e){function t(t){var n=e.call(this,t)||this;return n.state={imgHidden:!0,imgList:[]},n}return o(t,e),t.prototype.onClick=function(e){this.props.onClick(e)},t.prototype.imgClick=function(){this.setState({imgHidden:!this.state.imgHidden})},t.prototype.imgMouseOver=function(){window.clearTimeout(this.timer),this.setState({imgHidden:!1})},t.prototype.imgMouseOut=function(){var e=this;this.timer=window.setTimeout((function(){e.setState({imgHidden:!0})}),150)},t.prototype.addImgUrl=function(){this.props.onClick("img")},t.prototype.addImgFile=function(e){var t=this.state.imgList,n=t.length;t.push(e.target.files[0]),this.setState({imgList:t}),this.props.addImg(e.target.files[0],n),e.target.value=""},t.prototype.render=function(){var e=this,t=this.props,n=t.toolbar,r=t.words,o=this.state.imgHidden;return a.createElement("ul",null,n.undo&&a.createElement("li",{onClick:function(){return e.onClick("undo")},title:r.undo+" (ctrl+z)"},a.createElement("i",{className:"foricon for-undo"})),n.redo&&a.createElement("li",{onClick:function(){return e.onClick("redo")},title:r.redo+" (ctrl+y)"},a.createElement("i",{className:"foricon for-redo"})),n.h1&&a.createElement("li",{onClick:function(){return e.onClick("h1")},title:r.h1},"H1"),n.h2&&a.createElement("li",{onClick:function(){return e.onClick("h2")},title:r.h2},"H2"),n.h3&&a.createElement("li",{onClick:function(){return e.onClick("h3")},title:r.h3},"H3"),n.h4&&a.createElement("li",{onClick:function(){return e.onClick("h4")},title:r.h4},"H4"),n.img&&a.createElement("li",{className:"for-toolbar-img",onMouseOver:function(){return e.imgMouseOver()},onMouseOut:function(){return e.imgMouseOut()}},a.createElement("i",{className:"foricon for-image"}),a.createElement("ul",{style:o?{display:"none"}:{}},a.createElement("li",{onClick:function(){return e.addImgUrl()}},r.addImgLink),a.createElement("li",null,r.addImg,a.createElement("input",{type:"file",accept:"image/gif,image/jpeg,image/jpg,image/png,image/svg",onChange:function(t){return e.addImgFile(t)}})))),n.link&&a.createElement("li",{onClick:function(){return e.onClick("link")},title:r.link},a.createElement("i",{className:"foricon for-link"})),n.code&&a.createElement("li",{onClick:function(){return e.onClick("code")},title:r.code},a.createElement("i",{className:"foricon for-code"})),n.save&&a.createElement("li",{onClick:function(){return e.onClick("save")},title:r.save+" (ctrl+s)"},a.createElement("i",{className:"foricon for-save"})))},t.defaultProps={onClick:function(){},toolbar:{},words:{}},t}(a.Component);t.default=l},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};t.__esModule=!0;var l=i(n(0)),u=a(n(3)),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.onClick=function(e){this.props.onClick(e)},t.prototype.render=function(){var e=this,t=this.props,n=t.preview,r=t.expand,o=t.subfield,i=t.toolbar,a=t.words,s=u.default({"for-active":n}),c=u.default({"for-active":r}),f=u.default({"for-active":o});return l.createElement("ul",null,i.expand&&l.createElement("li",{className:c,onClick:function(){return e.onClick("expand")},title:c?a.fullscreenOff:a.fullscreenOn},c?l.createElement("i",{className:"foricon for-contract"}):l.createElement("i",{className:"foricon for-expand"})),i.preview&&l.createElement("li",{className:s,onClick:function(){return e.onClick("preview")},title:a.preview},s?l.createElement("i",{className:"foricon for-eye-off"}):l.createElement("i",{className:"foricon for-eye"})),i.subfield&&l.createElement("li",{className:f,onClick:function(){return e.onClick("subfield")},title:f?a.singleColumn:a.doubleColumn},l.createElement("i",{className:"foricon for-subfield"})))},t.defaultProps={onClick:function(){},toolbars:{},words:{}},t}(l.Component);t.default=s},function(e,t,n){"use strict";t.__esModule=!0,t.insertText=function(e,t){var n=t.prefix,r=t.str,o=void 0===r?"":r,i=t.subfix,a=void 0===i?"":i,l=e.value;if(e.selectionStart||0===e.selectionStart){var u=e.selectionStart,s=e.selectionEnd,c=e.scrollTop;u===s?(e.value=l.substring(0,u)+n+o+a+l.substring(s,l.length),e.selectionStart=u+n.length,e.selectionEnd=s+n.length+o.length):(e.value=l.substring(0,u)+n+l.substring(u,s)+a+l.substring(s,l.length),e.selectionStart=u+n.length,e.selectionEnd=s+n.length),e.focus(),c>=0&&(e.scrollTop=c)}return e.value}},function(e,t,n){var r=n(24);"string"==typeof r&&(r=[[e.i,r,""]]),n(2)(r,{hmr:!0,transform:void 0,insertInto:void 0}),r.locals&&(e.exports=r.locals)},function(e,t,n){(e.exports=n(1)(!1)).push([e.i,"/* http://jmblog.github.com/color-themes-for-google-code-highlightjs */\n\n/* Tomorrow Comment */\n.hljs-comment,\n.hljs-quote {\n color: #8e908c;\n}\n\n/* Tomorrow Red */\n.hljs-variable,\n.hljs-template-variable,\n.hljs-tag,\n.hljs-name,\n.hljs-selector-id,\n.hljs-selector-class,\n.hljs-regexp,\n.hljs-deletion {\n color: #c82829;\n}\n\n/* Tomorrow Orange */\n.hljs-number,\n.hljs-built_in,\n.hljs-builtin-name,\n.hljs-literal,\n.hljs-type,\n.hljs-params,\n.hljs-meta,\n.hljs-link {\n color: #f5871f;\n}\n\n/* Tomorrow Yellow */\n.hljs-attribute {\n color: #eab700;\n}\n\n/* Tomorrow Green */\n.hljs-string,\n.hljs-symbol,\n.hljs-bullet,\n.hljs-addition {\n color: #718c00;\n}\n\n/* Tomorrow Blue */\n.hljs-title,\n.hljs-section {\n color: #4271ae;\n}\n\n/* Tomorrow Purple */\n.hljs-keyword,\n.hljs-selector-tag {\n color: #8959a8;\n}\n\n.hljs {\n display: block;\n overflow-x: auto;\n background: white;\n color: #4d4d4c;\n padding: 0.5em;\n}\n\n.hljs-emphasis {\n font-style: italic;\n}\n\n.hljs-strong {\n font-weight: bold;\n}\n",""])},function(e,t){e.exports=function(e){var t="undefined"!=typeof window&&window.location;if(!t)throw new Error("fixUrls requires window.location");if(!e||"string"!=typeof e)return e;var n=t.protocol+"//"+t.host,r=n+t.pathname.replace(/\/[^\/]*$/,"/");return e.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,(function(e,t){var o,i=t.trim().replace(/^"(.*)"$/,(function(e,t){return t})).replace(/^'(.*)'$/,(function(e,t){return t}));return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(i)?e:(o=0===i.indexOf("//")?i:0===i.indexOf("/")?n+i:r+i.replace(/^\.\//,""),"url("+JSON.stringify(o)+")")}))}},function(e,t,n){var r=n(27);"string"==typeof r&&(r=[[e.i,r,""]]),n(2)(r,{hmr:!0,transform:void 0,insertInto:void 0}),r.locals&&(e.exports=r.locals)},function(e,t,n){t=e.exports=n(1)(!1);var r=n(28),o=r(n(4)),i=r(n(4)+"#iefix"),a=r(n(29)),l=r(n(30)),u=r(n(31)+"#foricon");t.push([e.i,'@font-face {font-family: "foricon";\n src: url('+o+"); /* IE9 */\n src: url("+i+") format('embedded-opentype'), \n url('data:application/x-font-woff2;charset=utf-8;base64,d09GMgABAAAAAAiYAAsAAAAAEKwAAAhKAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHEIGVgCECgqTEI8pATYCJAM0CxwABCAFhGEHgQgb4Q2jopRu9sj+IsE2lvbwQSEYAzUIDVc+fN1ilSTZf3ZUbnJocJqIh//2+98+M3NF/0fUmunqJEIRD43EIpEgxN8JiYiHpKF4KJDe5VxtAY3K+PZI3iMqVJhLNy2nn24PFGj5yvD846b94P0JUAkJVZkYzCTMlO2FZE47N3oeTjm480jroXU6c2FiGrchXq82lhAo7AS5xIq3b779XN2Nd6hHnWV6+XfTs203xPQjYiERNSQ8ingVbYRMKpRCKQl4vjE1L2vqzkLL0a+QscB230ygt13EuH5++wC+IqJBm8d5ysFXUhRDWGidtebEIl4CR5ueqw4DL8qfj78m4ZNUWXTgjbtnCRz+YHeaqDcK5znXAIu7LIw3I+MoUMbiodZ9GyyWEZY+x3baTAtdfkhRwA/k5qvFqJOsqFb/8hqtTm8wErWIjUxYUVJ/IJViyYmU4IaU4Y5U4IFUwROphhdSA2+kFj5IHXyRevghDXBhvTKvqdNmYC/I49z8ThR4W05S+ZeFpy0ThYMzZAuBmbDIyGgsOiEhMSEjI6+mOkWmRx5dxoTjBoMeajQe0Y/n8JzFRWcdGwkBkpW8xLiENNZpaVQFTRwMJqOMkkSMjB3OC+Mlih4D5umdPFvbEF+8NaOqzlqwhTVVbbZqCrdkmmu3xWuLto7meWjyi4RakkizIIASXFaf0XWu86jObvjpsYenOyd9mpFeEu4mtfRMmz2lI1Vw7Uk3GpAQxCtC6OcBcAKKqOiSimu9xOQ6MAhqD1+33ZTlFSdcO24CEbuNGlYqrsnToAvHd2e3YDFeagAaIKVlTXY1YNM5NgBAEMjJ1+iZJLoohKdxJkaJ35SfZU5SUSrxCRbkRKHdZhJ5xg4HdNQvsTi6ynS4+niCqvREGzQg4PLpHL7Q4nRZz7Hqoq3j9d9zNuRxum6//2+93lVNWKmhlpRQtHpDo/pYoZpEpWKirGvoYFtChH6cx/GqjKocuu4054kzgZqwxUunh876yaH50kyBZBsOBd6Wwy1Xn6WuCuchUbOxcShOrKkqsJR2QerPtBFQsnZddm0TtuGcd57n6xIeQ2UeI66FdK4DwNdBzB+qTw9B6NtyddlwTtukgTQK9eB1VOFAECwdAzfPIiCvoqesKRAT6/j5e7xFvmGiCcMneA43EeRbDL8K5NW8wvGovzXFhDkMMm7lFv11nGWhQEpkp0XdKL88ngmvZoFznZiq8TMV46ddte2GqhKr61izpqrqbKYgz0sR7FLMdLkKf4ZDu7iD9iIzjBrMjGmN0jhbRNpGG7RvWxvfyA5tG9Ng2s0Ldmi/uVZrC9kibEfkwo6EBKFb127dEIRN3+f2z9xqa41mZJ3bjPTP6zWrtXZ61ffrpVu1HpI5qtq2MSbeJue72Tc/3y7b4XZol0tVcnOdTyemjS5pfU4xl98FlPJF4Hhg9nf51vyxs/YX/K36W3sxNHBkPjll8PiLwV+POsH06cCp6e1299YcHjkYi3brvH0HxQ6hqFf/DuprNehxZ2sQ3leMKRjowzBmn+L7dz2kmfAVpdbWv3s/n1DI+f170tkblmCe+SRsXqE1V7S3lKkQy+pQogcBRaezZLfvgkwYNWXecCuFGAyVmvmtliWkRqRmF3PM11Yb9NO05dQmJjdpYyvQGUxrVSqHP4RN5dQ0ba6+WjvfsTShlcG2NL77fG2VLpdSDbfOyx8/CunSLidTqwPBbT9yLgMwuLhB+kJd68z+9ilz5CGGXkcbjUEGczCqJzB9FGhxRhX8lfP2aNOpl4/uRNt9v9f/c+n5PzAi+Do1XTpgwC5k1ZomR+yeJZqgjBrmPHvpPLM+8UUXupI0gEkeEBqY7BqQfNn7Y1gTj10+8qUHvv33P1zb1T1c9MP3PXp17FXQs1OPnj5f6J+Lz/+FnPw67XFxx/7i3i77o0AhlWQLos9SV66OciUPBMlKiufT/6N7p7eWSnqRzj9Nnny5eUx7U7RRNkYZgSnKRFa0iQoaDSdlji95p/vwxeQwU2aHabvREabCDiOYc7sEewoR9Mny6/IX7Dr2RUaWP0FL7t/zkM+IxY40zWYIqqAl9x54iGekd0mJTIv0RpWKpajnwb2SBvS6BVSWIvAp9t6UDR2a8QeWlKr9NFh4M6iA5W9/IwHp2bvv4M08Op/0zC4Oz37406nThlFsXkD3bjoUdzLMF3/prOovDTsws+J0SJtOm6aj6ZhWoXwox5SXuYBJo9Hjup5Df5jTydvFWHoCt/IZylTWVES2pyXRYP0P2+anqkkAi7Alq1PUsDdJ1inWRg3YjRJ+yLlsfkph0CxBZG3VyMDxGQwifUX993Anz6TaH93m3dc++i9yxvc/eXZQsgjbwE1xK4loOMR//SzCCWVli1Knshi71OwgcfKEW5XQx+UsQFSw2td5xDoxzkmjWMYgwa0gwz2gwMO6yuCUrtY4r+sdcbL5YI2GJUpHK7FFF2avQIKvQYafQIGfdZX1/km9gv91vZvhXXCwP17CE42cMGGzFcuFamTipjCjetD6DtO+4npiLeKeUHd5GRsPRrX6C2xQtz+gm6cTIsmkVjU7792SsKoUa7UqUNAgI2qnw6HUHToQqobQNRriKDdNMDOr5DlBacgcEu5cur/ZHZTqVfh4CP0QStgTJN0EszhmbGBkBheskQx5DZ07c6kJirMklhLdr6sx51elQKpxjcK0elIMmgtkIGtR1ZoaxlNJKRucV9ShvQB60QdOkSJHiSrqaKKNLvoYYowpZuWWStDJa56ihSt0cdnyJrE1Jsrum+xw56NXhHaVN6Xd8Tn6L0tFmgvyhEfESkpPqKqvmw4AAA==') format('woff2'),\n url("+a+") format('woff'),\n url("+l+") format('truetype'), \n url("+u+') format(\'svg\'); /* iOS 4.1- */\n}\n\n.foricon {\n font-family: "foricon" !important;\n font-size: inherit;\n font-style: normal;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.for-code:before {\n content: "\\e620";\n}\n\n.for-image:before {\n content: "\\e621";\n}\n\n.for-eye:before {\n content: "\\e622";\n}\n\n.for-expand:before {\n content: "\\e623";\n}\n\n.for-redo:before {\n content: "\\e624";\n}\n\n.for-undo:before {\n content: "\\e625";\n}\n\n.for-quote:before {\n content: "\\e626";\n}\n\n.for-link:before {\n content: "\\e627";\n}\n\n.for-save:before {\n content: "\\e628";\n}\n\n.for-contract:before {\n content: "\\e629";\n}\n\n.for-eye-off:before {\n content: "\\e62a";\n}\n\n.for-subfield:before {\n content: "\\e62b";\n}\n\n',""])},function(e,t,n){"use strict";e.exports=function(e,t){return"string"!=typeof e?e:(/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),/["'() \t\n]/.test(e)||t?'"'+e.replace(/"/g,'\\"').replace(/\n/g,"\\n")+'"':e)}},function(e,t,n){e.exports=n.p+"static/fonts/iconfont.fe07082d.woff"},function(e,t,n){e.exports=n.p+"static/fonts/iconfont.a614fc0f.ttf"},function(e,t,n){e.exports=n.p+"static/fonts/iconfont.35e220a6.svg"},function(e,t,n){var r=n(33);"string"==typeof r&&(r=[[e.i,r,""]]),n(2)(r,{hmr:!0,transform:void 0,insertInto:void 0}),r.locals&&(e.exports=r.locals)},function(e,t,n){(e.exports=n(1)(!1)).push([e.i,".for-container {\n font-family: 'Source Sans Pro', 'Helvetica Neue', Arial, sans-serif;\n display: flex;\n flex-direction: column;\n height: 600px;\n border: 1px solid #ddd;\n border-radius: 8px;\n box-shadow: rgba(0, 0, 0, 0.1) 0px 0px 12px;\n background: #fff;\n font-size: 14px; }\n .for-container ul,\n .for-container ol,\n .for-container li {\n margin: 0;\n padding: 0; }\n .for-container.for-fullscreen {\n position: fixed;\n z-index: 99999;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n height: 100% !important; }\n .for-container > div:first-child {\n border-top-left-radius: 8px;\n border-top-right-radius: 8px; }\n .for-container .for-hidden {\n display: none; }\n .for-container .for-toolbar {\n font-family: 'Source Sans Pro', 'Helvetica Neue', Arial, sans-serif;\n display: flex;\n justify-content: space-between;\n padding: 0 6px;\n border-bottom: 1px solid #ddd;\n color: #555;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none; }\n .for-container .for-toolbar > ul {\n display: flex; }\n .for-container .for-toolbar > ul > li {\n display: flex;\n align-items: center;\n padding: 4px 6px;\n margin: 8px 4px;\n border-radius: 4px;\n line-height: normal; }\n .for-container .for-toolbar > ul > li.for-toolbar-img {\n position: relative; }\n .for-container .for-toolbar > ul > li.for-toolbar-img > ul {\n position: absolute;\n top: 100%;\n left: -50px;\n width: 140px;\n margin-top: 4px;\n background: #fff;\n border-radius: 4px;\n box-shadow: rgba(0, 0, 0, 0.1) 0 2px 8px 0;\n z-index: 99;\n line-height: 2.8;\n text-align: center; }\n .for-container .for-toolbar > ul > li.for-toolbar-img > ul li {\n position: relative; }\n .for-container .for-toolbar > ul > li.for-toolbar-img > ul li:hover {\n background: #e9e9e9; }\n .for-container .for-toolbar > ul > li.for-toolbar-img > ul li:first-child {\n border-radius: 4px 4px 0 0; }\n .for-container .for-toolbar > ul > li.for-toolbar-img > ul li:last-child {\n border-radius: 0 0 4px 4px; }\n .for-container .for-toolbar > ul > li.for-toolbar-img > ul li input {\n position: absolute;\n width: 100%;\n opacity: 0;\n left: 0;\n top: 0;\n bottom: 0;\n cursor: pointer; }\n .for-container .for-toolbar > ul > li.for-active {\n background: #ddd; }\n .for-container .for-toolbar > ul > li:hover {\n cursor: pointer;\n background: #e9e9e9; }\n .for-container .for-toolbar > ul > li i {\n font-size: 1.2em; }\n .for-container .for-editor {\n display: flex;\n justify-content: space-between;\n height: 100%;\n color: #2c3e50;\n border-radius: 0 0 8px 8px;\n overflow: hidden; }\n .for-container .for-editor .for-panel {\n height: 100%;\n flex: 0 0 100%;\n overflow: auto;\n transition: all 0.2s linear 0s; }\n .for-container .for-editor .for-panel.for-active {\n flex: 0 0 50%; }\n .for-container .for-editor .for-panel .for-preview {\n min-height: 100%;\n box-sizing: border-box;\n padding: 10px 14px;\n background: #fcfcfc; }\n .for-container .for-editor .for-editor-edit {\n line-height: 1.6;\n height: 100%; }\n .for-container .for-editor .for-editor-edit.for-edit-preview {\n width: 0;\n flex: 0 0 0; }\n .for-container .for-editor .for-editor-edit .for-editor-block {\n display: flex;\n min-height: 100%; }\n .for-container .for-editor .for-editor-edit .for-line-num {\n list-style: none;\n background: #eee;\n padding: 8px 0 120px;\n min-width: 30px;\n text-align: center; }\n .for-container .for-editor .for-editor-edit .for-line-num.hidden {\n display: none; }\n .for-container .for-editor .for-editor-edit .for-line-num li {\n list-style: none; }\n .for-container .for-editor .for-editor-edit .for-editor-content {\n flex: 1;\n position: relative;\n height: 100%;\n margin-left: 10px; }\n .for-container .for-editor .for-editor-edit .for-editor-content pre {\n padding: 8px 0;\n display: block;\n white-space: pre-wrap;\n word-wrap: break-word;\n visibility: hidden;\n margin: 0;\n font-family: inherit; }\n .for-container textarea {\n font-family: 'Consolas', 'Source Sans Pro', 'Helvetica Neue', Arial, sans-serif;\n box-sizing: border-box;\n position: absolute;\n top: 0;\n bottom: 0;\n padding: 8px 0;\n display: block;\n height: 100%;\n width: 100%;\n overflow: hidden;\n resize: none;\n border: none;\n outline: none;\n font-size: inherit;\n color: inherit;\n background: none;\n line-height: inherit; }\n .for-container .for-markdown-preview {\n line-height: 2; }\n .for-container .for-markdown-preview p,\n .for-container .for-markdown-preview blockquote,\n .for-container .for-markdown-preview ul,\n .for-container .for-markdown-preview ol,\n .for-container .for-markdown-preview dl,\n .for-container .for-markdown-preview pre {\n margin-top: 0;\n margin-bottom: 0.6em; }\n .for-container .for-markdown-preview h1,\n .for-container .for-markdown-preview h2 {\n border-bottom: 1px solid #e2e2e2; }\n .for-container .for-markdown-preview h1,\n .for-container .for-markdown-preview h2,\n .for-container .for-markdown-preview h3,\n .for-container .for-markdown-preview h4,\n .for-container .for-markdown-preview h5,\n .for-container .for-markdown-preview h6 {\n padding: 0;\n margin: 0 0 0.6em;\n font-weight: 600;\n text-indent: 0; }\n .for-container .for-markdown-preview h1:target,\n .for-container .for-markdown-preview h2:target,\n .for-container .for-markdown-preview h3:target,\n .for-container .for-markdown-preview h4:target,\n .for-container .for-markdown-preview h5:target,\n .for-container .for-markdown-preview h6:target {\n padding-top: 4.5rem; }\n .for-container .for-markdown-preview a {\n color: #0366d6;\n text-decoration: none; }\n .for-container .for-markdown-preview a:hover {\n text-decoration: underline; }\n .for-container .for-markdown-preview ul,\n .for-container .for-markdown-preview ol {\n padding: 0.2em 0.8em; }\n .for-container .for-markdown-preview ul > li,\n .for-container .for-markdown-preview ol > li {\n line-height: 2;\n padding-left: 0.2em;\n margin-left: 0.2em;\n list-style-type: disc; }\n .for-container .for-markdown-preview ul > li > p,\n .for-container .for-markdown-preview ol > li > p {\n text-indent: 0; }\n .for-container .for-markdown-preview ul > li > ul:last-child,\n .for-container .for-markdown-preview ol > li > ul:last-child {\n margin-bottom: 0; }\n .for-container .for-markdown-preview ul > li > ul li,\n .for-container .for-markdown-preview ol > li > ul li {\n list-style-type: circle; }\n .for-container .for-markdown-preview ul > li > ul li > ul li,\n .for-container .for-markdown-preview ol > li > ul li > ul li {\n list-style-type: square; }\n .for-container .for-markdown-preview > ul,\n .for-container .for-markdown-preview ol {\n padding: 0 20px; }\n .for-container .for-markdown-preview ol > li {\n list-style-type: decimal; }\n .for-container .for-markdown-preview blockquote {\n margin: 0;\n margin-bottom: 0.6em;\n padding: 0 1em;\n color: #6a737d;\n border-left: 0.25em solid #dfe2e5; }\n .for-container .for-markdown-preview blockquote p {\n text-indent: 0; }\n .for-container .for-markdown-preview blockquote p:first-child {\n margin-top: 0; }\n .for-container .for-markdown-preview blockquote p:last-child {\n margin-bottom: 0; }\n .for-container .for-markdown-preview pre {\n padding: 0.6em;\n overflow: auto;\n line-height: 1.6;\n background-color: #f0f0f0;\n border-radius: 3px; }\n .for-container .for-markdown-preview pre code {\n padding: 0;\n margin: 0;\n font-size: 100%;\n background: transparent; }\n .for-container .for-markdown-preview code {\n padding: 0.2em 0.4em;\n margin: 0;\n background-color: #f0f0f0;\n border-radius: 3px; }\n .for-container .for-markdown-preview hr {\n margin-bottom: 0.6em;\n height: 1px;\n background: #dadada;\n border: none; }\n .for-container .for-markdown-preview table {\n width: 100%;\n border: 1px solid #ddd;\n margin-bottom: 0.6em;\n border-collapse: collapse;\n text-align: left; }\n .for-container .for-markdown-preview table thead {\n background: #eee; }\n .for-container .for-markdown-preview table th,\n .for-container .for-markdown-preview table td {\n padding: 0.1em 0.4em;\n border: 1px solid #ddd; }\n .for-container .for-markdown-preview img {\n display: block;\n margin: 0 auto;\n max-width: 100%;\n margin-bottom: 0.6em; }\n",""])},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};t.__esModule=!0;var o=r(n(35)),i=r(n(36));t.CONFIG={language:{"zh-CN":o.default,en:i.default},langList:["zh-CN","en"],toolbar:{h1:!0,h2:!0,h3:!0,h4:!0,img:!0,link:!0,code:!0,preview:!0,expand:!0,undo:!0,redo:!0,save:!0,subfield:!0}}},function(e){e.exports=JSON.parse('{"placeholder":"开始编辑...","undo":"上一步","redo":"下一步","h1":"一级标题","h2":"二级标题","h3":"三级标题","h4":"四级标题","img":"添加图片链接","link":"链接","code":"代码块","save":"保存","preview":"预览","singleColumn":"单栏","doubleColumn":"双栏","fullscreenOn":"全屏编辑","fullscreenOff":"退出全屏","addImgLink":"添加图片链接","addImg":"上传图片"}')},function(e){e.exports=JSON.parse('{"placeholder":"Begin editing...","undo":"Undo","redo":"Redo","h1":"Header 1","h2":"Header 2","h3":"Header 3","h4":"Header 4","img":"Image Link","link":"Link","code":"Code","save":"Save","preview":"Preview","singleColumn":"Single Column","doubleColumn":"Double Columns","fullscreenOn":"FullScreen ON","fullscreenOff":"FullScreen OFF","addImgLink":"Add Image Link","addImg":"Upload Image"}')}])},,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,o.default)(e),parseInt(e,t||10)};var r,o=(r=n(797))&&r.__esModule?r:{default:r};e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,o.default)(e),t)return"1"===e||/^true$/i.test(e);return"0"!==e&&!/^false$/i.test(e)&&""!==e};var r,o=(r=n(797))&&r.__esModule?r:{default:r};e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,o.default)(e),e===t};var r,o=(r=n(797))&&r.__esModule?r:{default:r};e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){if((0,r.default)(e),(n=(0,i.default)(n,l)).ignoreCase)return e.toLowerCase().split((0,o.default)(t).toLowerCase()).length>n.minOccurrences;return e.split((0,o.default)(t)).length>n.minOccurrences};var r=a(n(797)),o=a(n(1591)),i=a(n(882));function a(e){return e&&e.__esModule?e:{default:e}}var l={ignoreCase:!1,minOccurrences:1};e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){(0,o.default)(e),"[object RegExp]"!==Object.prototype.toString.call(t)&&(t=new RegExp(t,n));return!!e.match(t)};var r,o=(r=n(797))&&r.__esModule?r:{default:r};e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,r.default)(e),!e||/[\s<>]/.test(e))return!1;if(0===e.indexOf("mailto:"))return!1;if((t=(0,a.default)(t,s)).validate_length&&e.length>=2083)return!1;if(!t.allow_fragments&&e.includes("#"))return!1;if(!t.allow_query_components&&(e.includes("?")||e.includes("&")))return!1;var n,l,d,p,h,v,g,y;if(g=e.split("#"),e=g.shift(),g=e.split("?"),e=g.shift(),(g=e.split("://")).length>1){if(n=g.shift().toLowerCase(),t.require_valid_protocol&&-1===t.protocols.indexOf(n))return!1}else{if(t.require_protocol)return!1;if("//"===e.slice(0,2)){if(!t.allow_protocol_relative_urls)return!1;g[0]=e.slice(2)}}if(""===(e=g.join("://")))return!1;if(g=e.split("/"),""===(e=g.shift())&&!t.require_host)return!0;if((g=e.split("@")).length>1){if(t.disallow_auth)return!1;if(""===g[0])return!1;if((l=g.shift()).indexOf(":")>=0&&l.split(":").length>2)return!1;var m=l.split(":"),b=(C=2,function(e){if(Array.isArray(e))return e}(_=m)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==l.return||l.return()}finally{if(o)throw i}}return n}}(_,C)||function(e,t){if(e){if("string"==typeof e)return u(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(e,t):void 0}}(_,C)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),x=b[0],w=b[1];if(""===x&&""===w)return!1}var _,C;p=g.join("@"),v=null,y=null;var O=p.match(c);O?(d="",y=O[1],v=O[2]||null):(g=p.split(":"),d=g.shift(),g.length&&(v=g.join(":")));if(null!==v&&v.length>0){if(h=parseInt(v,10),!/^[0-9]+$/.test(v)||h<=0||h>65535)return!1}else if(t.require_port)return!1;if(t.host_whitelist)return f(d,t.host_whitelist);if(""===d&&!t.require_host)return!0;if(!((0,i.default)(d)||(0,o.default)(d,t)||y&&(0,i.default)(y,6)))return!1;if(d=d||y,t.host_blacklist&&f(d,t.host_blacklist))return!1;return!0};var r=l(n(797)),o=l(n(1327)),i=l(n(1177)),a=l(n(882));function l(e){return e&&e.__esModule?e:{default:e}}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:"";(0,r.default)(e);var n=e.split("/");if(2!==n.length)return!1;if(!a.test(n[1]))return!1;if(n[1].length>1&&n[1].startsWith("0"))return!1;var i=(0,o.default)(n[0],t);if(!i)return!1;var l=null;switch(String(t)){case"4":l=32;break;case"6":l=128;break;default:l=(0,o.default)(n[0],"6")?128:32}return n[1]<=l&&n[1]>=0};var r=i(n(797)),o=i(n(1177));function i(e){return e&&e.__esModule?e:{default:e}}var a=/^\d{1,3}$/;e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return t=(0,o.default)(t,i),"string"==typeof e&&a[t.hourFormat][t.mode].test(e)};var r,o=(r=n(882))&&r.__esModule?r:{default:r};var i={hourFormat:"hour24",mode:"default"},a={hour24:{default:/^([01]?[0-9]|2[0-3]):([0-5][0-9])$/,withSeconds:/^([01]?[0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9])$/},hour12:{default:/^(0?[1-9]|1[0-2]):([0-5][0-9]) (A|P)M$/,withSeconds:/^(0?[1-9]|1[0-2]):([0-5][0-9]):([0-5][0-9]) (A|P)M$/}};e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i;if((0,o.default)(e),t.loose)return l.includes(e.toLowerCase());return a.includes(e)};var r,o=(r=n(797))&&r.__esModule?r:{default:r};var i={loose:!1},a=["true","false","1","0"],l=[].concat(a,["yes","no"]);e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,o.default)(e),s.test(e)};var r,o=(r=n(797))&&r.__esModule?r:{default:r};var i="(([a-zA-Z]{2,3}(-".concat("([A-Za-z]{3}(-[A-Za-z]{3}){0,2})",")?)|([a-zA-Z]{5,8}))"),a="(".concat("(\\d|[A-W]|[Y-Z]|[a-w]|[y-z])","(-[A-Za-z0-9]{2,8})+)"),l="(".concat("((en-GB-oed)|(i-ami)|(i-bnn)|(i-default)|(i-enochian)|(i-hak)|(i-klingon)|(i-lux)|(i-mingo)|(i-navajo)|(i-pwn)|(i-tao)|(i-tay)|(i-tsu)|(sgn-BE-FR)|(sgn-BE-NL)|(sgn-CH-DE))","|").concat("((art-lojban)|(cel-gaulish)|(no-bok)|(no-nyn)|(zh-guoyu)|(zh-hakka)|(zh-min)|(zh-min-nan)|(zh-xiang))",")"),u="".concat(i,"(").concat("(-|_)").concat("([A-Za-z]{4})",")?(").concat("(-|_)").concat("([A-Za-z]{2}|\\d{3})",")?(").concat("(-|_)").concat("([A-Za-z0-9]{5,8}|(\\d[A-Z-a-z0-9]{3}))",")*(").concat("(-|_)").concat(a,")*(").concat("(-|_)").concat("(x(-[A-Za-z0-9]{1,8})+)",")?"),s=new RegExp("(^".concat("(x(-[A-Za-z0-9]{1,8})+)","$)|(^").concat(l,"$)|(^").concat(u,"$)"));e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en-US",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};(0,o.default)(e);var r=e,a=n.ignore;if(a)if(a instanceof RegExp)r=r.replace(a,"");else{if("string"!=typeof a)throw new Error("ignore should be instance of a String or RegExp");r=r.replace(new RegExp("[".concat(a.replace(/[-[\]{}()*+?.,\\^$|#\\s]/g,"\\$&"),"]"),"g"),"")}if(t in i.alpha)return i.alpha[t].test(r);throw new Error("Invalid locale '".concat(t,"'"))},t.locales=void 0;var r,o=(r=n(797))&&r.__esModule?r:{default:r},i=n(1106);var a=Object.keys(i.alpha);t.locales=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en-US",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};(0,o.default)(e);var r=e,a=n.ignore;if(a)if(a instanceof RegExp)r=r.replace(a,"");else{if("string"!=typeof a)throw new Error("ignore should be instance of a String or RegExp");r=r.replace(new RegExp("[".concat(a.replace(/[-[\]{}()*+?.,\\^$|#\\s]/g,"\\$&"),"]"),"g"),"")}if(t in i.alphanumeric)return i.alphanumeric[t].test(r);throw new Error("Invalid locale '".concat(t,"'"))},t.locales=void 0;var r,o=(r=n(797))&&r.__esModule?r:{default:r},i=n(1106);var a=Object.keys(i.alphanumeric);t.locales=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,o.default)(e),t&&t.no_symbols)return a.test(e);return new RegExp("^[+-]?([0-9]*[".concat((t||{}).locale?i.decimal[t.locale]:".","])?[0-9]+$")).test(e)};var r,o=(r=n(797))&&r.__esModule?r:{default:r},i=n(1106);var a=/^[0-9]+$/;e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,o.default)(e);var n=e.replace(/\s/g,"").toUpperCase();return t.toUpperCase()in i&&i[t].test(n)};var r,o=(r=n(797))&&r.__esModule?r:{default:r};var i={AM:/^[A-Z]{2}\d{7}$/,AR:/^[A-Z]{3}\d{6}$/,AT:/^[A-Z]\d{7}$/,AU:/^[A-Z]\d{7}$/,AZ:/^[A-Z]{2,3}\d{7,8}$/,BE:/^[A-Z]{2}\d{6}$/,BG:/^\d{9}$/,BR:/^[A-Z]{2}\d{6}$/,BY:/^[A-Z]{2}\d{7}$/,CA:/^[A-Z]{2}\d{6}$/,CH:/^[A-Z]\d{7}$/,CN:/^G\d{8}$|^E(?![IO])[A-Z0-9]\d{7}$/,CY:/^[A-Z](\d{6}|\d{8})$/,CZ:/^\d{8}$/,DE:/^[CFGHJKLMNPRTVWXYZ0-9]{9}$/,DK:/^\d{9}$/,DZ:/^\d{9}$/,EE:/^([A-Z]\d{7}|[A-Z]{2}\d{7})$/,ES:/^[A-Z0-9]{2}([A-Z0-9]?)\d{6}$/,FI:/^[A-Z]{2}\d{7}$/,FR:/^\d{2}[A-Z]{2}\d{5}$/,GB:/^\d{9}$/,GR:/^[A-Z]{2}\d{7}$/,HR:/^\d{9}$/,HU:/^[A-Z]{2}(\d{6}|\d{7})$/,IE:/^[A-Z0-9]{2}\d{7}$/,IN:/^[A-Z]{1}-?\d{7}$/,ID:/^[A-C]\d{7}$/,IR:/^[A-Z]\d{8}$/,IS:/^(A)\d{7}$/,IT:/^[A-Z0-9]{2}\d{7}$/,JM:/^[Aa]\d{7}$/,JP:/^[A-Z]{2}\d{7}$/,KR:/^[MS]\d{8}$/,KZ:/^[a-zA-Z]\d{7}$/,LI:/^[a-zA-Z]\d{5}$/,LT:/^[A-Z0-9]{8}$/,LU:/^[A-Z0-9]{8}$/,LV:/^[A-Z0-9]{2}\d{7}$/,LY:/^[A-Z0-9]{8}$/,MT:/^\d{7}$/,MZ:/^([A-Z]{2}\d{7})|(\d{2}[A-Z]{2}\d{5})$/,MY:/^[AHK]\d{8}$/,MX:/^\d{10,11}$/,NL:/^[A-Z]{2}[A-Z0-9]{6}\d$/,NZ:/^([Ll]([Aa]|[Dd]|[Ff]|[Hh])|[Ee]([Aa]|[Pp])|[Nn])\d{6}$/,PH:/^([A-Z](\d{6}|\d{7}[A-Z]))|([A-Z]{2}(\d{6}|\d{7}))$/,PK:/^[A-Z]{2}\d{7}$/,PL:/^[A-Z]{2}\d{7}$/,PT:/^[A-Z]\d{6}$/,RO:/^\d{8,9}$/,RU:/^\d{9}$/,SE:/^\d{8}$/,SL:/^(P)[A-Z]\d{7}$/,SK:/^[0-9A-Z]\d{7}$/,TH:/^[A-Z]{1,2}\d{6,7}$/,TR:/^[A-Z]\d{8}$/,UA:/^[A-Z]{2}\d{6}$/,US:/^\d{9}$/};e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,o.default)(e,{min:0,max:65535})};var r,o=(r=n(1328))&&r.__esModule?r:{default:r};e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,o.default)(e),e===e.toLowerCase()};var r,o=(r=n(797))&&r.__esModule?r:{default:r};e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,o.default)(e),e===e.toUpperCase()};var r,o=(r=n(797))&&r.__esModule?r:{default:r};e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,o.default)(e);var n=i;(t=t||{}).allow_hyphens&&(n=a);if(!n.test(e))return!1;e=e.replace(/-/g,"");for(var r=0,l=2,u=0;u<14;u++){var s=e.substring(14-u-1,14-u),c=parseInt(s,10)*l;r+=c>=10?c%10+1:c,1===l?l+=1:l-=1}if((10-r%10)%10!==parseInt(e.substring(14,15),10))return!1;return!0};var r,o=(r=n(797))&&r.__esModule?r:{default:r};var i=/^[0-9]{15}$/,a=/^\d{2}-\d{6}-\d{6}-\d{1}$/;e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,o.default)(e),i.test(e)};var r,o=(r=n(797))&&r.__esModule?r:{default:r};var i=/^[\x00-\x7F]+$/;e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,o.default)(e),i.fullWidth.test(e)&&a.halfWidth.test(e)};var r,o=(r=n(797))&&r.__esModule?r:{default:r},i=n(1595),a=n(1596);e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,o.default)(e),i.test(e)};var r,o=(r=n(797))&&r.__esModule?r:{default:r};var i=/[^\x00-\x7F]/;e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.default)(e),i.test(e)};var r=o(n(797));function o(e){return e&&e.__esModule?e:{default:e}}var i=(0,o(n(2541)).default)(["^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)","(?:-((?:0|[1-9]\\d*|\\d*[a-z-][0-9a-z-]*)(?:\\.(?:0|[1-9]\\d*|\\d*[a-z-][0-9a-z-]*))*))","?(?:\\+([0-9a-z-]+(?:\\.[0-9a-z-]+)*))?$"],"i");e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=e.join("");return new RegExp(n,t)},e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,o.default)(e),i.test(e)};var r,o=(r=n(797))&&r.__esModule?r:{default:r};var i=/[\uD800-\uDBFF][\uDC00-\uDFFF]/;e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,o.default)(e),(t=(0,r.default)(t,u)).locale in a.decimal)return!(0,i.default)(s,e.replace(/ /g,""))&&function(e){return new RegExp("^[-+]?([0-9]+)?(\\".concat(a.decimal[e.locale],"[0-9]{").concat(e.decimal_digits,"})").concat(e.force_decimal?"":"?","$"))}(t).test(e);throw new Error("Invalid locale '".concat(t.locale,"'"))};var r=l(n(882)),o=l(n(797)),i=l(n(2544)),a=n(1106);function l(e){return e&&e.__esModule?e:{default:e}}var u={force_decimal:!1,decimal_digits:"1,",locale:"en-US"},s=["","-","+"];e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e,t){return e.some((function(e){return t===e}))};t.default=r,e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,o.default)(e),i.test(e)};var r,o=(r=n(797))&&r.__esModule?r:{default:r};var i=/^(0o)?[0-7]+$/i;e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,r.default)(e),(0,o.default)(e)%parseInt(t,10)==0};var r=i(n(797)),o=i(n(1589));function i(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,o.default)(e),i.test(e)};var r,o=(r=n(797))&&r.__esModule?r:{default:r};var i=/^#?([0-9A-F]{3}|[0-9A-F]{4}|[0-9A-F]{6}|[0-9A-F]{8})$/i;e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if((0,o.default)(e),!t)return i.test(e)||a.test(e);return i.test(e)||a.test(e)||l.test(e)||u.test(e)};var r,o=(r=n(797))&&r.__esModule?r:{default:r};var i=/^rgb\((([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]),){2}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\)$/,a=/^rgba\((([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]),){3}(0?\.\d|1(\.0)?|0(\.0)?)\)$/,l=/^rgb\((([0-9]%|[1-9][0-9]%|100%),){2}([0-9]%|[1-9][0-9]%|100%)\)$/,u=/^rgba\((([0-9]%|[1-9][0-9]%|100%),){3}(0?\.\d|1(\.0)?|0(\.0)?)\)$/;e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,o.default)(e);var t=e.replace(/\s+/g," ").replace(/\s?(hsla?\(|\)|,)\s?/gi,"$1");if(-1!==t.indexOf(","))return i.test(t);return a.test(t)};var r,o=(r=n(797))&&r.__esModule?r:{default:r};var i=/^hsla?\(((\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?))(deg|grad|rad|turn)?(,(\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?)%){2}(,((\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?)%?))?\)$/i,a=/^hsla?\(((\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?))(deg|grad|rad|turn)?(\s(\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?)%){2}\s?(\/\s((\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?)%?)\s?)?\)$/i;e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,o.default)(e),i.test(e)};var r,o=(r=n(797))&&r.__esModule?r:{default:r};var i=/^[A-Z]{2}[0-9A-Z]{3}\d{2}\d{5}$/;e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,o.default)(e),a(e,t)&&l(e)},t.locales=void 0;var r,o=(r=n(797))&&r.__esModule?r:{default:r};var i={AD:/^(AD[0-9]{2})\d{8}[A-Z0-9]{12}$/,AE:/^(AE[0-9]{2})\d{3}\d{16}$/,AL:/^(AL[0-9]{2})\d{8}[A-Z0-9]{16}$/,AT:/^(AT[0-9]{2})\d{16}$/,AZ:/^(AZ[0-9]{2})[A-Z0-9]{4}\d{20}$/,BA:/^(BA[0-9]{2})\d{16}$/,BE:/^(BE[0-9]{2})\d{12}$/,BG:/^(BG[0-9]{2})[A-Z]{4}\d{6}[A-Z0-9]{8}$/,BH:/^(BH[0-9]{2})[A-Z]{4}[A-Z0-9]{14}$/,BR:/^(BR[0-9]{2})\d{23}[A-Z]{1}[A-Z0-9]{1}$/,BY:/^(BY[0-9]{2})[A-Z0-9]{4}\d{20}$/,CH:/^(CH[0-9]{2})\d{5}[A-Z0-9]{12}$/,CR:/^(CR[0-9]{2})\d{18}$/,CY:/^(CY[0-9]{2})\d{8}[A-Z0-9]{16}$/,CZ:/^(CZ[0-9]{2})\d{20}$/,DE:/^(DE[0-9]{2})\d{18}$/,DK:/^(DK[0-9]{2})\d{14}$/,DO:/^(DO[0-9]{2})[A-Z]{4}\d{20}$/,EE:/^(EE[0-9]{2})\d{16}$/,EG:/^(EG[0-9]{2})\d{25}$/,ES:/^(ES[0-9]{2})\d{20}$/,FI:/^(FI[0-9]{2})\d{14}$/,FO:/^(FO[0-9]{2})\d{14}$/,FR:/^(FR[0-9]{2})\d{10}[A-Z0-9]{11}\d{2}$/,GB:/^(GB[0-9]{2})[A-Z]{4}\d{14}$/,GE:/^(GE[0-9]{2})[A-Z0-9]{2}\d{16}$/,GI:/^(GI[0-9]{2})[A-Z]{4}[A-Z0-9]{15}$/,GL:/^(GL[0-9]{2})\d{14}$/,GR:/^(GR[0-9]{2})\d{7}[A-Z0-9]{16}$/,GT:/^(GT[0-9]{2})[A-Z0-9]{4}[A-Z0-9]{20}$/,HR:/^(HR[0-9]{2})\d{17}$/,HU:/^(HU[0-9]{2})\d{24}$/,IE:/^(IE[0-9]{2})[A-Z0-9]{4}\d{14}$/,IL:/^(IL[0-9]{2})\d{19}$/,IQ:/^(IQ[0-9]{2})[A-Z]{4}\d{15}$/,IR:/^(IR[0-9]{2})0\d{2}0\d{18}$/,IS:/^(IS[0-9]{2})\d{22}$/,IT:/^(IT[0-9]{2})[A-Z]{1}\d{10}[A-Z0-9]{12}$/,JO:/^(JO[0-9]{2})[A-Z]{4}\d{22}$/,KW:/^(KW[0-9]{2})[A-Z]{4}[A-Z0-9]{22}$/,KZ:/^(KZ[0-9]{2})\d{3}[A-Z0-9]{13}$/,LB:/^(LB[0-9]{2})\d{4}[A-Z0-9]{20}$/,LC:/^(LC[0-9]{2})[A-Z]{4}[A-Z0-9]{24}$/,LI:/^(LI[0-9]{2})\d{5}[A-Z0-9]{12}$/,LT:/^(LT[0-9]{2})\d{16}$/,LU:/^(LU[0-9]{2})\d{3}[A-Z0-9]{13}$/,LV:/^(LV[0-9]{2})[A-Z]{4}[A-Z0-9]{13}$/,MA:/^(MA[0-9]{26})$/,MC:/^(MC[0-9]{2})\d{10}[A-Z0-9]{11}\d{2}$/,MD:/^(MD[0-9]{2})[A-Z0-9]{20}$/,ME:/^(ME[0-9]{2})\d{18}$/,MK:/^(MK[0-9]{2})\d{3}[A-Z0-9]{10}\d{2}$/,MR:/^(MR[0-9]{2})\d{23}$/,MT:/^(MT[0-9]{2})[A-Z]{4}\d{5}[A-Z0-9]{18}$/,MU:/^(MU[0-9]{2})[A-Z]{4}\d{19}[A-Z]{3}$/,MZ:/^(MZ[0-9]{2})\d{21}$/,NL:/^(NL[0-9]{2})[A-Z]{4}\d{10}$/,NO:/^(NO[0-9]{2})\d{11}$/,PK:/^(PK[0-9]{2})[A-Z0-9]{4}\d{16}$/,PL:/^(PL[0-9]{2})\d{24}$/,PS:/^(PS[0-9]{2})[A-Z0-9]{4}\d{21}$/,PT:/^(PT[0-9]{2})\d{21}$/,QA:/^(QA[0-9]{2})[A-Z]{4}[A-Z0-9]{21}$/,RO:/^(RO[0-9]{2})[A-Z]{4}[A-Z0-9]{16}$/,RS:/^(RS[0-9]{2})\d{18}$/,SA:/^(SA[0-9]{2})\d{2}[A-Z0-9]{18}$/,SC:/^(SC[0-9]{2})[A-Z]{4}\d{20}[A-Z]{3}$/,SE:/^(SE[0-9]{2})\d{20}$/,SI:/^(SI[0-9]{2})\d{15}$/,SK:/^(SK[0-9]{2})\d{20}$/,SM:/^(SM[0-9]{2})[A-Z]{1}\d{10}[A-Z0-9]{12}$/,SV:/^(SV[0-9]{2})[A-Z0-9]{4}\d{20}$/,TL:/^(TL[0-9]{2})\d{19}$/,TN:/^(TN[0-9]{2})\d{20}$/,TR:/^(TR[0-9]{2})\d{5}[A-Z0-9]{17}$/,UA:/^(UA[0-9]{2})\d{6}[A-Z0-9]{19}$/,VA:/^(VA[0-9]{2})\d{18}$/,VG:/^(VG[0-9]{2})[A-Z0-9]{4}\d{16}$/,XK:/^(XK[0-9]{2})\d{16}$/};function a(e,t){var n=e.replace(/[\s\-]+/gi,"").toUpperCase(),r=n.slice(0,2).toUpperCase(),o=r in i;if(t.whitelist){if(t.whitelist.filter((function(e){return!(e in i)})).length>0)return!1;if(!t.whitelist.includes(r))return!1}if(t.blacklist&&t.blacklist.includes(r))return!1;return o&&i[r].test(n)}function l(e){var t=e.replace(/[^A-Z0-9]+/gi,"").toUpperCase();return 1===(t.slice(4)+t.slice(0,4)).replace(/[A-Z]/g,(function(e){return e.charCodeAt(0)-55})).match(/\d{1,7}/g).reduce((function(e,t){return Number(e+t)%97}),"")}var u=Object.keys(i);t.locales=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,o.default)(e);var t=e.slice(4,6).toUpperCase();if(!i.CountryCodes.has(t)&&"XK"!==t)return!1;return a.test(e)};var r,o=(r=n(797))&&r.__esModule?r:{default:r},i=n(1598);var a=/^[A-Za-z]{6}[A-Za-z0-9]{2}([A-Za-z0-9]{3})?$/;e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,o.default)(e),i.test(e)};var r,o=(r=n(797))&&r.__esModule?r:{default:r};var i=/^[a-f0-9]{32}$/;e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,o.default)(e),new RegExp("^[a-fA-F0-9]{".concat(i[t],"}$")).test(e)};var r,o=(r=n(797))&&r.__esModule?r:{default:r};var i={md5:32,md4:32,sha1:40,sha256:64,sha384:96,sha512:128,ripemd128:32,ripemd160:40,tiger128:32,tiger160:40,tiger192:48,crc32:8,crc32b:8};e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,r.default)(e);var t=e.split(".");if(3!==t.length)return!1;return t.reduce((function(e,t){return e&&(0,o.default)(t,{urlSafe:!0})}),!0)};var r=i(n(797)),o=i(n(1599));function i(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,r.default)(e);try{t=(0,o.default)(t,l);var n=[];t.allow_primitives&&(n=[null,!1,!0]);var i=JSON.parse(e);return n.includes(i)||!!i&&"object"===a(i)}catch(e){}return!1};var r=i(n(797)),o=i(n(882));function i(e){return e&&e.__esModule?e:{default:e}}function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var l={allow_primitives:!1};e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,r.default)(e),0===((t=(0,o.default)(t,a)).ignore_whitespace?e.trim().length:e.length)};var r=i(n(797)),o=i(n(882));function i(e){return e&&e.__esModule?e:{default:e}}var a={ignore_whitespace:!1};e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n,r;(0,o.default)(e),"object"===i(t)?(n=t.min||0,r=t.max):(n=arguments[1]||0,r=arguments[2]);var a=e.match(/(\uFE0F|\uFE0E)/g)||[],l=e.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g)||[],u=e.length-a.length-l.length;return u>=n&&(void 0===r||u<=r)};var r,o=(r=n(797))&&r.__esModule?r:{default:r};function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,o.default)(e);var n=i[[void 0,null].includes(t)?"all":t];return!!n&&n.test(e)};var r,o=(r=n(797))&&r.__esModule?r:{default:r};var i={1:/^[0-9A-F]{8}-[0-9A-F]{4}-1[0-9A-F]{3}-[0-9A-F]{4}-[0-9A-F]{12}$/i,2:/^[0-9A-F]{8}-[0-9A-F]{4}-2[0-9A-F]{3}-[0-9A-F]{4}-[0-9A-F]{12}$/i,3:/^[0-9A-F]{8}-[0-9A-F]{4}-3[0-9A-F]{3}-[0-9A-F]{4}-[0-9A-F]{12}$/i,4:/^[0-9A-F]{8}-[0-9A-F]{4}-4[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,5:/^[0-9A-F]{8}-[0-9A-F]{4}-5[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,all:/^[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}$/i};e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.default)(e),(0,o.default)(e)&&24===e.length};var r=i(n(797)),o=i(n(1597));function i(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=(null==t?void 0:t.comparisonDate)||t||Date().toString(),r=(0,o.default)(n),i=(0,o.default)(e);return!!(i&&r&&i>r)};var r,o=(r=n(1326))&&r.__esModule?r:{default:r};e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:String(new Date);(0,r.default)(e);var n=(0,o.default)(t),i=(0,o.default)(e);return!!(i&&n&&i=0}if("object"===a(t))return t.hasOwnProperty(e);if(t&&"function"==typeof t.indexOf)return t.indexOf(e)>=0;return!1};var r=i(n(797)),o=i(n(1591));function i(e){return e&&e.__esModule?e:{default:e}}function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,r.default)(e);var n=t.provider,i=e.replace(/[- ]+/g,"");if(n&&n.toLowerCase()in a){if(!a[n.toLowerCase()].test(i))return!1}else{if(n&&!(n.toLowerCase()in a))throw new Error("".concat(n," is not a valid credit card provider."));if(!l.some((function(e){return e.test(i)})))return!1}return(0,o.default)(e)};var r=i(n(797)),o=i(n(1600));function i(e){return e&&e.__esModule?e:{default:e}}var a={amex:/^3[47][0-9]{13}$/,dinersclub:/^3(?:0[0-5]|[68][0-9])[0-9]{11}$/,discover:/^6(?:011|5[0-9][0-9])[0-9]{12,15}$/,jcb:/^(?:2131|1800|35\d{3})\d{11}$/,mastercard:/^5[1-5][0-9]{2}|(222[1-9]|22[3-9][0-9]|2[3-6][0-9]{2}|27[01][0-9]|2720)[0-9]{12}$/,unionpay:/^(6[27][0-9]{14}|^(81[0-9]{14,17}))$/,visa:/^(?:4[0-9]{12})(?:[0-9]{3,6})?$/},l=function(){var e=[];for(var t in a)a.hasOwnProperty(t)&&e.push(a[t]);return e}();e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,r.default)(e),t in a)return a[t](e);if("any"===t){for(var n in a){if(a.hasOwnProperty(n))if((0,a[n])(e))return!0}return!1}throw new Error("Invalid locale '".concat(t,"'"))};var r=i(n(797)),o=i(n(1328));function i(e){return e&&e.__esModule?e:{default:e}}var a={PL:function(e){(0,r.default)(e);var t={1:1,2:3,3:7,4:9,5:1,6:3,7:7,8:9,9:1,10:3,11:0};if(null!=e&&11===e.length&&(0,o.default)(e,{allow_leading_zeroes:!0})){var n=e.split("").slice(0,-1).reduce((function(e,n,r){return e+Number(n)*t[r+1]}),0)%10,i=Number(e.charAt(e.length-1));if(0===n&&0===i||i===10-n)return!0}return!1},ES:function(e){(0,r.default)(e);var t={X:0,Y:1,Z:2},n=e.trim().toUpperCase();if(!/^[0-9X-Z][0-9]{7}[TRWAGMYFPDXBNJZSQVHLCKE]$/.test(n))return!1;var o=n.slice(0,-1).replace(/[X,Y,Z]/g,(function(e){return t[e]}));return n.endsWith(["T","R","W","A","G","M","Y","F","P","D","X","B","N","J","Z","S","Q","V","H","L","C","K","E"][o%23])},FI:function(e){if((0,r.default)(e),11!==e.length)return!1;if(!e.match(/^\d{6}[\-A\+]\d{3}[0-9ABCDEFHJKLMNPRSTUVWXY]{1}$/))return!1;return"0123456789ABCDEFHJKLMNPRSTUVWXY"[(1e3*parseInt(e.slice(0,6),10)+parseInt(e.slice(7,10),10))%31]===e.slice(10,11)},IN:function(e){var t=[[0,1,2,3,4,5,6,7,8,9],[1,2,3,4,0,6,7,8,9,5],[2,3,4,0,1,7,8,9,5,6],[3,4,0,1,2,8,9,5,6,7],[4,0,1,2,3,9,5,6,7,8],[5,9,8,7,6,0,4,3,2,1],[6,5,9,8,7,1,0,4,3,2],[7,6,5,9,8,2,1,0,4,3],[8,7,6,5,9,3,2,1,0,4],[9,8,7,6,5,4,3,2,1,0]],n=[[0,1,2,3,4,5,6,7,8,9],[1,5,7,6,2,8,3,0,9,4],[5,8,0,3,7,9,6,1,4,2],[8,9,1,6,0,4,3,5,2,7],[9,4,5,3,1,2,6,8,7,0],[4,2,8,6,5,7,3,9,0,1],[2,7,9,3,8,0,6,4,1,5],[7,0,4,6,9,1,3,2,5,8]],r=e.trim();if(!/^[1-9]\d{3}\s?\d{4}\s?\d{4}$/.test(r))return!1;var o=0;return r.replace(/\s/g,"").split("").map(Number).reverse().forEach((function(e,r){o=t[o][n[r%8][e]]})),0===o},IR:function(e){if(!e.match(/^\d{10}$/))return!1;if(e="0000".concat(e).slice(e.length-6),0===parseInt(e.slice(3,9),10))return!1;for(var t=parseInt(e.slice(9,10),10),n=0,r=0;r<9;r++)n+=parseInt(e.slice(r,r+1),10)*(10-r);return(n%=11)<2&&t===n||n>=2&&t===11-n},IT:function(e){return 9===e.length&&("CA00000AA"!==e&&e.search(/C[A-Z][0-9]{5}[A-Z]{2}/i)>-1)},NO:function(e){var t=e.trim();if(isNaN(Number(t)))return!1;if(11!==t.length)return!1;if("00000000000"===t)return!1;var n=t.split("").map(Number),r=(11-(3*n[0]+7*n[1]+6*n[2]+1*n[3]+8*n[4]+9*n[5]+4*n[6]+5*n[7]+2*n[8])%11)%11,o=(11-(5*n[0]+4*n[1]+3*n[2]+2*n[3]+7*n[4]+6*n[5]+5*n[6]+4*n[7]+3*n[8]+2*r)%11)%11;return r===n[9]&&o===n[10]},TH:function(e){if(!e.match(/^[1-8]\d{12}$/))return!1;for(var t=0,n=0;n<12;n++)t+=parseInt(e[n],10)*(13-n);return e[12]===((11-t%11)%10).toString()},LK:function(e){return!(10!==e.length||!/^[1-9]\d{8}[vx]$/i.test(e))||!(12!==e.length||!/^[1-9]\d{11}$/i.test(e))},"he-IL":function(e){var t=e.trim();if(!/^\d{9}$/.test(t))return!1;for(var n,r=t,o=0,i=0;i9?n-9:n;return o%10==0},"ar-LY":function(e){var t=e.trim();return!!/^(1|2)\d{11}$/.test(t)},"ar-TN":function(e){var t=e.trim();return!!/^\d{8}$/.test(t)},"zh-CN":function(e){var t,n=["11","12","13","14","15","21","22","23","31","32","33","34","35","36","37","41","42","43","44","45","46","50","51","52","53","54","61","62","63","64","65","71","81","82","91"],r=["7","9","10","5","8","4","2","1","6","3","7","9","10","5","8","4","2"],o=["1","0","X","9","8","7","6","5","4","3","2"],i=function(e){return n.includes(e)},a=function(e){var t=parseInt(e.substring(0,4),10),n=parseInt(e.substring(4,6),10),r=parseInt(e.substring(6),10),o=new Date(t,n-1,r);return!(o>new Date)&&(o.getFullYear()===t&&o.getMonth()===n-1&&o.getDate()===r)},l=function(e){return function(e){for(var t=e.substring(0,17),n=0,i=0;i<17;i++)n+=parseInt(t.charAt(i),10)*parseInt(r[i],10);return o[n%11]}(e)===e.charAt(17).toUpperCase()};return!!/^\d{15}|(\d{17}(\d|x|X))$/.test(t=e)&&(15===t.length?function(e){var t=/^[1-9]\d{7}((0[1-9])|(1[0-2]))((0[1-9])|([1-2][0-9])|(3[0-1]))\d{3}$/.test(e);if(!t)return!1;var n=e.substring(0,2);if(!(t=i(n)))return!1;var r="19".concat(e.substring(6,12));return!!(t=a(r))}(t):function(e){var t=/^[1-9]\d{5}[1-9]\d{3}((0[1-9])|(1[0-2]))((0[1-9])|([1-2][0-9])|(3[0-1]))\d{3}(\d|x|X)$/.test(e);if(!t)return!1;var n=e.substring(0,2);if(!(t=i(n)))return!1;var r=e.substring(6,14);return!!(t=a(r))&&l(e)}(t))},"zh-HK":function(e){var t=/^[0-9]$/;if(e=(e=e.trim()).toUpperCase(),!/^[A-Z]{1,2}[0-9]{6}((\([0-9A]\))|(\[[0-9A]\])|([0-9A]))$/.test(e))return!1;8===(e=e.replace(/\[|\]|\(|\)/g,"")).length&&(e="3".concat(e));for(var n=0,r=0;r<=7;r++){n+=(t.test(e[r])?e[r]:(e[r].charCodeAt(0)-55)%11)*(9-r)}return(0===(n%=11)?"0":1===n?"A":String(11-n))===e[e.length-1]},"zh-TW":function(e){var t={A:10,B:11,C:12,D:13,E:14,F:15,G:16,H:17,I:34,J:18,K:19,L:20,M:21,N:22,O:35,P:23,Q:24,R:25,S:26,T:27,U:28,V:29,W:32,X:30,Y:31,Z:33},n=e.trim().toUpperCase();return!!/^[A-Z][0-9]{9}$/.test(n)&&Array.from(n).reduce((function(e,n,r){if(0===r){var o=t[n];return o%10*9+Math.floor(o/10)}return 9===r?(10-e%10-Number(n))%10==0:e+Number(n)*(9-r)}),0)}};e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,o.default)(e);var t=Number(e.slice(-1));return i.test(e)&&t===(n=e,r=10-n.slice(0,-1).split("").map((function(e,t){return Number(e)*function(e,t){return 8===e||14===e?t%2==0?3:1:t%2==0?1:3}(n.length,t)})).reduce((function(e,t){return e+t}),0)%10,r<10?r:0);var n,r};var r,o=(r=n(797))&&r.__esModule?r:{default:r};var i=/^(\d{8}|\d{13}|\d{14})$/;e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if((0,o.default)(e),!i.test(e))return!1;for(var t=!0,n=0,r=e.length-2;r>=0;r--)if(e[r]>="A"&&e[r]<="Z")for(var a=e[r].charCodeAt(0)-55,l=a%10,u=Math.trunc(a/10),s=0,c=[l,u];s=5?1+2*(f-5):2*f:f,t=!t}else{var d=e[r].charCodeAt(0)-"0".charCodeAt(0);n+=t?d>=5?1+2*(d-5):2*d:d,t=!t}var p=10*Math.trunc((n+9)/10)-n;return+e[e.length-1]===p};var r,o=(r=n(797))&&r.__esModule?r:{default:r};var i=/^[A-Z]{2}[0-9A-Z]{9}[0-9]$/;e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t,n){(0,o.default)(t);var r=String((null==n?void 0:n.version)||n);if(!(null!=n&&n.version||n))return e(t,{version:10})||e(t,{version:13});var u=t.replace(/[\s-]+/g,""),s=0;if("10"===r){if(!i.test(u))return!1;for(var c=0;c1&&void 0!==arguments[1]?arguments[1]:{};(0,o.default)(e);var n=i;if(n=t.require_hyphen?n.replace("?",""):n,!(n=t.case_sensitive?new RegExp(n):new RegExp(n,"i")).test(e))return!1;for(var r=e.replace("-","").toUpperCase(),a=0,l=0;l1&&void 0!==arguments[1]?arguments[1]:"en-US";(0,o.default)(e);var n=e.slice(0);if(t in p)return t in g&&(n=n.replace(g[t],"")),!!p[t].test(n)&&(!(t in h)||h[t](n));throw new Error("Invalid locale '".concat(t,"'"))};var o=u(n(797)),i=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var t=l();if(t&&t.has(e))return t.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}n.default=e,t&&t.set(e,n);return n}(n(1601)),a=u(n(1594));function l(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return l=function(){return e},e}function u(e){return e&&e.__esModule?e:{default:e}}function s(e){return function(e){if(Array.isArray(e))return c(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return c(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0){if(t&&!n&&!/[AEIOU]/.test(e[r]))return!1;if(n&&!/X/.test(e[r]))return!1}return!0}var p={"bg-BG":/^\d{10}$/,"cs-CZ":/^\d{6}\/{0,1}\d{3,4}$/,"de-AT":/^\d{9}$/,"de-DE":/^[1-9]\d{10}$/,"dk-DK":/^\d{6}-{0,1}\d{4}$/,"el-CY":/^[09]\d{7}[A-Z]$/,"el-GR":/^([0-4]|[7-9])\d{8}$/,"en-CA":/^\d{9}$/,"en-GB":/^\d{10}$|^(?!GB|NK|TN|ZZ)(?![DFIQUV])[A-Z](?![DFIQUVO])[A-Z]\d{6}[ABCD ]$/i,"en-IE":/^\d{7}[A-W][A-IW]{0,1}$/i,"en-US":/^\d{2}[- ]{0,1}\d{7}$/,"es-ES":/^(\d{0,8}|[XYZKLM]\d{7})[A-HJ-NP-TV-Z]$/i,"et-EE":/^[1-6]\d{6}(00[1-9]|0[1-9][0-9]|[1-6][0-9]{2}|70[0-9]|710)\d$/,"fi-FI":/^\d{6}[-+A]\d{3}[0-9A-FHJ-NPR-Y]$/i,"fr-BE":/^\d{11}$/,"fr-FR":/^[0-3]\d{12}$|^[0-3]\d\s\d{2}(\s\d{3}){3}$/,"fr-LU":/^\d{13}$/,"hr-HR":/^\d{11}$/,"hu-HU":/^8\d{9}$/,"it-IT":/^[A-Z]{6}[L-NP-V0-9]{2}[A-EHLMPRST][L-NP-V0-9]{2}[A-ILMZ][L-NP-V0-9]{3}[A-Z]$/i,"lv-LV":/^\d{6}-{0,1}\d{5}$/,"mt-MT":/^\d{3,7}[APMGLHBZ]$|^([1-8])\1\d{7}$/i,"nl-NL":/^\d{9}$/,"pl-PL":/^\d{10,11}$/,"pt-BR":/(?:^\d{11}$)|(?:^\d{14}$)/,"pt-PT":/^\d{9}$/,"ro-RO":/^\d{13}$/,"sk-SK":/^\d{6}\/{0,1}\d{3,4}$/,"sl-SI":/^[1-9]\d{7}$/,"sv-SE":/^(\d{6}[-+]{0,1}\d{4}|(18|19|20)\d{6}[-+]{0,1}\d{4})$/};p["lb-LU"]=p["fr-LU"],p["lt-LT"]=p["et-EE"],p["nl-BE"]=p["fr-BE"],p["fr-CA"]=p["en-CA"];var h={"bg-BG":function(e){var t=e.slice(0,2),n=parseInt(e.slice(2,4),10);n>40?(n-=40,t="20".concat(t)):n>20?(n-=20,t="18".concat(t)):t="19".concat(t),n<10&&(n="0".concat(n));var r="".concat(t,"/").concat(n,"/").concat(e.slice(4,6));if(!(0,a.default)(r,"YYYY/MM/DD"))return!1;for(var o=e.split("").map((function(e){return parseInt(e,10)})),i=[2,4,8,5,10,9,7,3,6],l=0,u=0;u50&&(n-=50),n>20){if(parseInt(t,10)<2004)return!1;n-=20}n<10&&(n="0".concat(n));var r="".concat(t,"/").concat(n,"/").concat(e.slice(4,6));if(!(0,a.default)(r,"YYYY/MM/DD"))return!1;if(10===e.length&&parseInt(e,10)%11!=0){var o=parseInt(e.slice(0,9),10)%11;if(!(parseInt(t,10)<1986&&10===o))return!1;if(0!==parseInt(e.slice(9),10))return!1}return!0},"de-AT":function(e){return i.luhnCheck(e)},"de-DE":function(e){for(var t=e.split("").map((function(e){return parseInt(e,10)})),n=[],r=0;r1}))).length&&3!==n.length)return!1;if(3===n[0].length){for(var a=n[0].split("").map((function(e){return parseInt(e,10)})),l=0,u=0;u58))return!1;t="18".concat(t)}}3===t.length&&(t=[t.slice(0,2),"0",t.slice(2)].join(""));var n="".concat(t,"/").concat(e.slice(2,4),"/").concat(e.slice(0,2));if(!(0,a.default)(n,"YYYY/MM/DD"))return!1;for(var r=e.split("").map((function(e){return parseInt(e,10)})),o=0,i=4,l=0;l<9;l++)o+=r[l]*i,1===(i-=1)&&(i=7);return 1!==(o%=11)&&(0===o?0===r[9]:r[9]===11-o)},"el-CY":function(e){for(var t=e.slice(0,8).split("").map((function(e){return parseInt(e,10)})),n=0,r=1;r4&&(n+=2));return String.fromCharCode(n%26+65)===e.charAt(8)},"el-GR":function(e){for(var t=e.split("").map((function(e){return parseInt(e,10)})),n=0,r=0;r<8;r++)n+=t[r]*Math.pow(2,8-r);return n%11%10===t[8]},"en-CA":function(e){var t=e.split(""),n=t.filter((function(e,t){return t%2})).map((function(e){return 2*Number(e)})).join("").split("");return t.filter((function(e,t){return!(t%2)})).concat(n).map((function(e){return Number(e)})).reduce((function(e,t){return e+t}))%10==0},"en-IE":function(e){var t=i.reverseMultiplyAndSum(e.split("").slice(0,7).map((function(e){return parseInt(e,10)})),8);return 9===e.length&&"W"!==e[8]&&(t+=9*(e[8].charCodeAt(0)-64)),0===(t%=23)?"W"===e[7].toUpperCase():e[7].toUpperCase()===String.fromCharCode(64+t)},"en-US":function(e){return-1!==function(){var e=[];for(var t in f)f.hasOwnProperty(t)&&e.push.apply(e,s(f[t]));return e}().indexOf(e.slice(0,2))},"es-ES":function(e){var t=e.toUpperCase().split("");if(isNaN(parseInt(t[0],10))&&t.length>1){var n=0;switch(t[0]){case"Y":n=1;break;case"Z":n=2}t.splice(0,1,n)}else for(;t.length<9;)t.unshift(0);t=t.join("");var r=parseInt(t.slice(0,8),10)%23;return t[8]===["T","R","W","A","G","M","Y","F","P","D","X","B","N","J","Z","S","Q","V","H","L","C","K","E"][r]},"et-EE":function(e){var t=e.slice(1,3);switch(e.slice(0,1)){case"1":case"2":t="18".concat(t);break;case"3":case"4":t="19".concat(t);break;default:t="20".concat(t)}var n="".concat(t,"/").concat(e.slice(3,5),"/").concat(e.slice(5,7));if(!(0,a.default)(n,"YYYY/MM/DD"))return!1;for(var r=e.split("").map((function(e){return parseInt(e,10)})),o=0,i=1,l=0;l<10;l++)o+=r[l]*i,10===(i+=1)&&(i=1);if(o%11==10){o=0,i=3;for(var u=0;u<10;u++)o+=r[u]*i,10===(i+=1)&&(i=1);if(o%11==10)return 0===r[10]}return o%11===r[10]},"fi-FI":function(e){var t=e.slice(4,6);switch(e.slice(6,7)){case"+":t="18".concat(t);break;case"-":t="19".concat(t);break;default:t="20".concat(t)}var n="".concat(t,"/").concat(e.slice(2,4),"/").concat(e.slice(0,2));if(!(0,a.default)(n,"YYYY/MM/DD"))return!1;var r=parseInt(e.slice(0,6)+e.slice(7,10),10)%31;return r<10?r===parseInt(e.slice(10),10):["A","B","C","D","E","F","H","J","K","L","M","N","P","R","S","T","U","V","W","X","Y"][r-=10]===e.slice(10)},"fr-BE":function(e){if("00"!==e.slice(2,4)||"00"!==e.slice(4,6)){var t="".concat(e.slice(0,2),"/").concat(e.slice(2,4),"/").concat(e.slice(4,6));if(!(0,a.default)(t,"YY/MM/DD"))return!1}var n=97-parseInt(e.slice(0,9),10)%97,r=parseInt(e.slice(9,11),10);return n===r||(n=97-parseInt("2".concat(e.slice(0,9)),10)%97)===r},"fr-FR":function(e){return e=e.replace(/\s/g,""),parseInt(e.slice(0,10),10)%511===parseInt(e.slice(10,13),10)},"fr-LU":function(e){var t="".concat(e.slice(0,4),"/").concat(e.slice(4,6),"/").concat(e.slice(6,8));return!!(0,a.default)(t,"YYYY/MM/DD")&&(!!i.luhnCheck(e.slice(0,12))&&i.verhoeffCheck("".concat(e.slice(0,11)).concat(e[12])))},"hr-HR":function(e){return i.iso7064Check(e)},"hu-HU":function(e){for(var t=e.split("").map((function(e){return parseInt(e,10)})),n=8,r=1;r<9;r++)n+=t[r]*(r+1);return n%11===t[9]},"it-IT":function(e){var t=e.toUpperCase().split("");if(!d(t.slice(0,3)))return!1;if(!d(t.slice(3,6)))return!1;for(var n={L:"0",M:"1",N:"2",P:"3",Q:"4",R:"5",S:"6",T:"7",U:"8",V:"9"},r=0,o=[6,7,9,10,12,13,14];r40&&(u-=40),u<10&&(u="0".concat(u));var s="".concat(t[6]).concat(t[7],"/").concat(l,"/").concat(u);if(!(0,a.default)(s,"YY/MM/DD"))return!1;for(var c=0,f=1;f4&&(g+=2)}c+=g}return String.fromCharCode(65+c%26)===t[15]},"lv-LV":function(e){var t=(e=e.replace(/\W/,"")).slice(0,2);if("32"!==t){if("00"!==e.slice(2,4)){var n=e.slice(4,6);switch(e[6]){case"0":n="18".concat(n);break;case"1":n="19".concat(n);break;default:n="20".concat(n)}var r="".concat(n,"/").concat(e.slice(2,4),"/").concat(t);if(!(0,a.default)(r,"YYYY/MM/DD"))return!1}for(var o=1101,i=[1,6,3,7,9,10,5,8,4,2],l=0;l32e3)return!1;if(n===parseInt(t.join("").slice(5,7),10))return!1}}return!0},"nl-NL":function(e){return i.reverseMultiplyAndSum(e.split("").slice(0,8).map((function(e){return parseInt(e,10)})),9)%11===parseInt(e[8],10)},"pl-PL":function(e){if(10===e.length){for(var t=[6,5,7,2,3,4,5,6,7],n=0,r=0;r80?(o="18".concat(o),i-=80):i>60?(o="22".concat(o),i-=60):i>40?(o="21".concat(o),i-=40):i>20?(o="20".concat(o),i-=20):o="19".concat(o),i<10&&(i="0".concat(i));var l="".concat(o,"/").concat(i,"/").concat(e.slice(4,6));if(!(0,a.default)(l,"YYYY/MM/DD"))return!1;for(var u=0,s=1,c=0;c10?s=1:5===s&&(s+=2);return(u=10-u%10)===parseInt(e[10],10)},"pt-BR":function(e){if(11===e.length){var t,n;if(t=0,"11111111111"===e||"22222222222"===e||"33333333333"===e||"44444444444"===e||"55555555555"===e||"66666666666"===e||"77777777777"===e||"88888888888"===e||"99999999999"===e||"00000000000"===e)return!1;for(var r=1;r<=9;r++)t+=parseInt(e.substring(r-1,r),10)*(11-r);if(10===(n=10*t%11)&&(n=0),n!==parseInt(e.substring(9,10),10))return!1;t=0;for(var o=1;o<=10;o++)t+=parseInt(e.substring(o-1,o),10)*(12-o);return 10===(n=10*t%11)&&(n=0),n===parseInt(e.substring(10,11),10)}if("00000000000000"===e||"11111111111111"===e||"22222222222222"===e||"33333333333333"===e||"44444444444444"===e||"55555555555555"===e||"66666666666666"===e||"77777777777777"===e||"88888888888888"===e||"99999999999999"===e)return!1;for(var i=e.length-2,a=e.substring(0,i),l=e.substring(i),u=0,s=i-7,c=i;c>=1;c--)u+=a.charAt(i-c)*s,(s-=1)<2&&(s=9);var f=u%11<2?0:11-u%11;if(f!==parseInt(l.charAt(0),10))return!1;i+=1,a=e.substring(0,i),u=0,s=i-7;for(var d=i;d>=1;d--)u+=a.charAt(i-d)*s,(s-=1)<2&&(s=9);return(f=u%11<2?0:11-u%11)===parseInt(l.charAt(1),10)},"pt-PT":function(e){var t=11-i.reverseMultiplyAndSum(e.split("").slice(0,8).map((function(e){return parseInt(e,10)})),9)%11;return t>9?0===parseInt(e[8],10):t===parseInt(e[8],10)},"ro-RO":function(e){if("9000"!==e.slice(0,4)){var t=e.slice(1,3);switch(e[0]){case"1":case"2":t="19".concat(t);break;case"3":case"4":t="18".concat(t);break;case"5":case"6":t="20".concat(t)}var n="".concat(t,"/").concat(e.slice(3,5),"/").concat(e.slice(5,7));if(8===n.length){if(!(0,a.default)(n,"YY/MM/DD"))return!1}else if(!(0,a.default)(n,"YYYY/MM/DD"))return!1;for(var r=e.split("").map((function(e){return parseInt(e,10)})),o=[2,7,9,1,4,6,3,5,8,2,7,9],i=0,l=0;l53)return!1;t=t<10?"190".concat(t):"19".concat(t);var n=parseInt(e.slice(2,4),10);n>50&&(n-=50),n<10&&(n="0".concat(n));var r="".concat(t,"/").concat(n,"/").concat(e.slice(4,6));if(!(0,a.default)(r,"YYYY/MM/DD"))return!1}return!0},"sl-SI":function(e){var t=11-i.reverseMultiplyAndSum(e.split("").slice(0,7).map((function(e){return parseInt(e,10)})),8)%11;return 10===t?0===parseInt(e[7],10):t===parseInt(e[7],10)},"sv-SE":function(e){var t=e.slice(0);e.length>11&&(t=t.slice(2));var n="",r=t.slice(2,4),o=parseInt(t.slice(4,6),10);if(e.length>11)n=e.slice(0,4);else if(n=e.slice(0,2),11===e.length&&o<60){var l=(new Date).getFullYear().toString(),u=parseInt(l.slice(0,2),10);if(l=parseInt(l,10),"-"===e[6])n=parseInt("".concat(u).concat(n),10)>l?"".concat(u-1).concat(n):"".concat(u).concat(n);else if(n="".concat(u-1).concat(n),l-parseInt(n,10)<100)return!1}o>60&&(o-=60),o<10&&(o="0".concat(o));var s="".concat(n,"/").concat(r,"/").concat(o);if(8===s.length){if(!(0,a.default)(s,"YY/MM/DD"))return!1}else if(!(0,a.default)(s,"YYYY/MM/DD"))return!1;return i.luhnCheck(e.replace(/\W/,""))}};h["lb-LU"]=h["fr-LU"],h["lt-LT"]=h["et-EE"],h["nl-BE"]=h["fr-BE"],h["fr-CA"]=h["en-CA"];var v=/[-\\\/!@#$%\^&\*\(\)\+\=\[\]]+/g,g={"de-AT":v,"de-DE":/[\/\\]/g,"fr-BE":v};g["nl-BE"]=g["fr-BE"],e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){if((0,o.default)(e),n&&n.strictMode&&!e.startsWith("+"))return!1;if(Array.isArray(t))return t.some((function(t){if(i.hasOwnProperty(t)&&i[t].test(e))return!0;return!1}));if(t in i)return i[t].test(e);if(!t||"any"===t){for(var r in i){if(i.hasOwnProperty(r))if(i[r].test(e))return!0}return!1}throw new Error("Invalid locale '".concat(t,"'"))},t.locales=void 0;var r,o=(r=n(797))&&r.__esModule?r:{default:r};var i={"am-AM":/^(\+?374|0)((10|[9|7][0-9])\d{6}$|[2-4]\d{7}$)/,"ar-AE":/^((\+?971)|0)?5[024568]\d{7}$/,"ar-BH":/^(\+?973)?(3|6)\d{7}$/,"ar-DZ":/^(\+?213|0)(5|6|7)\d{8}$/,"ar-LB":/^(\+?961)?((3|81)\d{6}|7\d{7})$/,"ar-EG":/^((\+?20)|0)?1[0125]\d{8}$/,"ar-IQ":/^(\+?964|0)?7[0-9]\d{8}$/,"ar-JO":/^(\+?962|0)?7[789]\d{7}$/,"ar-KW":/^(\+?965)([569]\d{7}|41\d{6})$/,"ar-LY":/^((\+?218)|0)?(9[1-6]\d{7}|[1-8]\d{7,9})$/,"ar-MA":/^(?:(?:\+|00)212|0)[5-7]\d{8}$/,"ar-OM":/^((\+|00)968)?(9[1-9])\d{6}$/,"ar-PS":/^(\+?970|0)5[6|9](\d{7})$/,"ar-SA":/^(!?(\+?966)|0)?5\d{8}$/,"ar-SD":/^((\+?249)|0)?(9[012369]|1[012])\d{7}$/,"ar-SY":/^(!?(\+?963)|0)?9\d{8}$/,"ar-TN":/^(\+?216)?[2459]\d{7}$/,"az-AZ":/^(\+994|0)(10|5[015]|7[07]|99)\d{7}$/,"bs-BA":/^((((\+|00)3876)|06))((([0-3]|[5-6])\d{6})|(4\d{7}))$/,"be-BY":/^(\+?375)?(24|25|29|33|44)\d{7}$/,"bg-BG":/^(\+?359|0)?8[789]\d{7}$/,"bn-BD":/^(\+?880|0)1[13456789][0-9]{8}$/,"ca-AD":/^(\+376)?[346]\d{5}$/,"cs-CZ":/^(\+?420)? ?[1-9][0-9]{2} ?[0-9]{3} ?[0-9]{3}$/,"da-DK":/^(\+?45)?\s?\d{2}\s?\d{2}\s?\d{2}\s?\d{2}$/,"de-DE":/^((\+49|0)1)(5[0-25-9]\d|6([23]|0\d?)|7([0-57-9]|6\d))\d{7,9}$/,"de-AT":/^(\+43|0)\d{1,4}\d{3,12}$/,"de-CH":/^(\+41|0)([1-9])\d{1,9}$/,"de-LU":/^(\+352)?((6\d1)\d{6})$/,"dv-MV":/^(\+?960)?(7[2-9]|9[1-9])\d{5}$/,"el-GR":/^(\+?30|0)?6(8[5-9]|9(?![26])[0-9])\d{7}$/,"el-CY":/^(\+?357?)?(9(9|6)\d{6})$/,"en-AI":/^(\+?1|0)264(?:2(35|92)|4(?:6[1-2]|76|97)|5(?:3[6-9]|8[1-4])|7(?:2(4|9)|72))\d{4}$/,"en-AU":/^(\+?61|0)4\d{8}$/,"en-AG":/^(?:\+1|1)268(?:464|7(?:1[3-9]|[28]\d|3[0246]|64|7[0-689]))\d{4}$/,"en-BM":/^(\+?1)?441(((3|7)\d{6}$)|(5[0-3][0-9]\d{4}$)|(59\d{5}$))/,"en-BS":/^(\+?1[-\s]?|0)?\(?242\)?[-\s]?\d{3}[-\s]?\d{4}$/,"en-GB":/^(\+?44|0)7\d{9}$/,"en-GG":/^(\+?44|0)1481\d{6}$/,"en-GH":/^(\+233|0)(20|50|24|54|27|57|26|56|23|28|55|59)\d{7}$/,"en-GY":/^(\+592|0)6\d{6}$/,"en-HK":/^(\+?852[-\s]?)?[456789]\d{3}[-\s]?\d{4}$/,"en-MO":/^(\+?853[-\s]?)?[6]\d{3}[-\s]?\d{4}$/,"en-IE":/^(\+?353|0)8[356789]\d{7}$/,"en-IN":/^(\+?91|0)?[6789]\d{9}$/,"en-JM":/^(\+?876)?\d{7}$/,"en-KE":/^(\+?254|0)(7|1)\d{8}$/,"fr-CF":/^(\+?236| ?)(70|75|77|72|21|22)\d{6}$/,"en-SS":/^(\+?211|0)(9[1257])\d{7}$/,"en-KI":/^((\+686|686)?)?( )?((6|7)(2|3|8)[0-9]{6})$/,"en-KN":/^(?:\+1|1)869(?:46\d|48[89]|55[6-8]|66\d|76[02-7])\d{4}$/,"en-LS":/^(\+?266)(22|28|57|58|59|27|52)\d{6}$/,"en-MT":/^(\+?356|0)?(99|79|77|21|27|22|25)[0-9]{6}$/,"en-MU":/^(\+?230|0)?\d{8}$/,"en-NA":/^(\+?264|0)(6|8)\d{7}$/,"en-NG":/^(\+?234|0)?[789]\d{9}$/,"en-NZ":/^(\+?64|0)[28]\d{7,9}$/,"en-PG":/^(\+?675|0)?(7\d|8[18])\d{6}$/,"en-PK":/^((00|\+)?92|0)3[0-6]\d{8}$/,"en-PH":/^(09|\+639)\d{9}$/,"en-RW":/^(\+?250|0)?[7]\d{8}$/,"en-SG":/^(\+65)?[3689]\d{7}$/,"en-SL":/^(\+?232|0)\d{8}$/,"en-TZ":/^(\+?255|0)?[67]\d{8}$/,"en-UG":/^(\+?256|0)?[7]\d{8}$/,"en-US":/^((\+1|1)?( |-)?)?(\([2-9][0-9]{2}\)|[2-9][0-9]{2})( |-)?([2-9][0-9]{2}( |-)?[0-9]{4})$/,"en-ZA":/^(\+?27|0)\d{9}$/,"en-ZM":/^(\+?26)?09[567]\d{7}$/,"en-ZW":/^(\+263)[0-9]{9}$/,"en-BW":/^(\+?267)?(7[1-8]{1})\d{6}$/,"es-AR":/^\+?549(11|[2368]\d)\d{8}$/,"es-BO":/^(\+?591)?(6|7)\d{7}$/,"es-CO":/^(\+?57)?3(0(0|1|2|4|5)|1\d|2[0-4]|5(0|1))\d{7}$/,"es-CL":/^(\+?56|0)[2-9]\d{1}\d{7}$/,"es-CR":/^(\+506)?[2-8]\d{7}$/,"es-CU":/^(\+53|0053)?5\d{7}$/,"es-DO":/^(\+?1)?8[024]9\d{7}$/,"es-HN":/^(\+?504)?[9|8|3|2]\d{7}$/,"es-EC":/^(\+?593|0)([2-7]|9[2-9])\d{7}$/,"es-ES":/^(\+?34)?[6|7]\d{8}$/,"es-PE":/^(\+?51)?9\d{8}$/,"es-MX":/^(\+?52)?(1|01)?\d{10,11}$/,"es-NI":/^(\+?505)\d{7,8}$/,"es-PA":/^(\+?507)\d{7,8}$/,"es-PY":/^(\+?595|0)9[9876]\d{7}$/,"es-SV":/^(\+?503)?[67]\d{7}$/,"es-UY":/^(\+598|0)9[1-9][\d]{6}$/,"es-VE":/^(\+?58)?(2|4)\d{9}$/,"et-EE":/^(\+?372)?\s?(5|8[1-4])\s?([0-9]\s?){6,7}$/,"fa-IR":/^(\+?98[\-\s]?|0)9[0-39]\d[\-\s]?\d{3}[\-\s]?\d{4}$/,"fi-FI":/^(\+?358|0)\s?(4[0-6]|50)\s?(\d\s?){4,8}$/,"fj-FJ":/^(\+?679)?\s?\d{3}\s?\d{4}$/,"fo-FO":/^(\+?298)?\s?\d{2}\s?\d{2}\s?\d{2}$/,"fr-BF":/^(\+226|0)[67]\d{7}$/,"fr-BJ":/^(\+229)\d{8}$/,"fr-CD":/^(\+?243|0)?(8|9)\d{8}$/,"fr-CM":/^(\+?237)6[0-9]{8}$/,"fr-FR":/^(\+?33|0)[67]\d{8}$/,"fr-GF":/^(\+?594|0|00594)[67]\d{8}$/,"fr-GP":/^(\+?590|0|00590)[67]\d{8}$/,"fr-MQ":/^(\+?596|0|00596)[67]\d{8}$/,"fr-PF":/^(\+?689)?8[789]\d{6}$/,"fr-RE":/^(\+?262|0|00262)[67]\d{8}$/,"fr-WF":/^(\+681)?\d{6}$/,"he-IL":/^(\+972|0)([23489]|5[012345689]|77)[1-9]\d{6}$/,"hu-HU":/^(\+?36|06)(20|30|31|50|70)\d{7}$/,"id-ID":/^(\+?62|0)8(1[123456789]|2[1238]|3[1238]|5[12356789]|7[78]|9[56789]|8[123456789])([\s?|\d]{5,11})$/,"ir-IR":/^(\+98|0)?9\d{9}$/,"it-IT":/^(\+?39)?\s?3\d{2} ?\d{6,7}$/,"it-SM":/^((\+378)|(0549)|(\+390549)|(\+3780549))?6\d{5,9}$/,"ja-JP":/^(\+81[ \-]?(\(0\))?|0)[6789]0[ \-]?\d{4}[ \-]?\d{4}$/,"ka-GE":/^(\+?995)?(79\d{7}|5\d{8})$/,"kk-KZ":/^(\+?7|8)?7\d{9}$/,"kl-GL":/^(\+?299)?\s?\d{2}\s?\d{2}\s?\d{2}$/,"ko-KR":/^((\+?82)[ \-]?)?0?1([0|1|6|7|8|9]{1})[ \-]?\d{3,4}[ \-]?\d{4}$/,"ky-KG":/^(\+?7\s?\+?7|0)\s?\d{2}\s?\d{3}\s?\d{4}$/,"lt-LT":/^(\+370|8)\d{8}$/,"lv-LV":/^(\+?371)2\d{7}$/,"mg-MG":/^((\+?261|0)(2|3)\d)?\d{7}$/,"mn-MN":/^(\+|00|011)?976(77|81|88|91|94|95|96|99)\d{6}$/,"my-MM":/^(\+?959|09|9)(2[5-7]|3[1-2]|4[0-5]|6[6-9]|7[5-9]|9[6-9])[0-9]{7}$/,"ms-MY":/^(\+?60|0)1(([0145](-|\s)?\d{7,8})|([236-9](-|\s)?\d{7}))$/,"mz-MZ":/^(\+?258)?8[234567]\d{7}$/,"nb-NO":/^(\+?47)?[49]\d{7}$/,"ne-NP":/^(\+?977)?9[78]\d{8}$/,"nl-BE":/^(\+?32|0)4\d{8}$/,"nl-NL":/^(((\+|00)?31\(0\))|((\+|00)?31)|0)6{1}\d{8}$/,"nl-AW":/^(\+)?297(56|59|64|73|74|99)\d{5}$/,"nn-NO":/^(\+?47)?[49]\d{7}$/,"pl-PL":/^(\+?48)? ?([5-8]\d|45) ?\d{3} ?\d{2} ?\d{2}$/,"pt-BR":/^((\+?55\ ?[1-9]{2}\ ?)|(\+?55\ ?\([1-9]{2}\)\ ?)|(0[1-9]{2}\ ?)|(\([1-9]{2}\)\ ?)|([1-9]{2}\ ?))((\d{4}\-?\d{4})|(9[1-9]{1}\d{3}\-?\d{4}))$/,"pt-PT":/^(\+?351)?9[1236]\d{7}$/,"pt-AO":/^(\+244)\d{9}$/,"ro-MD":/^(\+?373|0)((6(0|1|2|6|7|8|9))|(7(6|7|8|9)))\d{6}$/,"ro-RO":/^(\+?40|0)\s?7\d{2}(\/|\s|\.|-)?\d{3}(\s|\.|-)?\d{3}$/,"ru-RU":/^(\+?7|8)?9\d{9}$/,"si-LK":/^(?:0|94|\+94)?(7(0|1|2|4|5|6|7|8)( |-)?)\d{7}$/,"sl-SI":/^(\+386\s?|0)(\d{1}\s?\d{3}\s?\d{2}\s?\d{2}|\d{2}\s?\d{3}\s?\d{3})$/,"sk-SK":/^(\+?421)? ?[1-9][0-9]{2} ?[0-9]{3} ?[0-9]{3}$/,"so-SO":/^(\+?252|0)((6[0-9])\d{7}|(7[1-9])\d{7})$/,"sq-AL":/^(\+355|0)6[789]\d{6}$/,"sr-RS":/^(\+3816|06)[- \d]{5,9}$/,"sv-SE":/^(\+?46|0)[\s\-]?7[\s\-]?[02369]([\s\-]?\d){7}$/,"tg-TJ":/^(\+?992)?[5][5]\d{7}$/,"th-TH":/^(\+66|66|0)\d{9}$/,"tr-TR":/^(\+?90|0)?5\d{9}$/,"tk-TM":/^(\+993|993|8)\d{8}$/,"uk-UA":/^(\+?38|8)?0\d{9}$/,"uz-UZ":/^(\+?998)?(6[125-79]|7[1-69]|88|9\d)\d{7}$/,"vi-VN":/^((\+?84)|0)((3([2-9]))|(5([25689]))|(7([0|6-9]))|(8([1-9]))|(9([0-9])))([0-9]{7})$/,"zh-CN":/^((\+|00)86)?(1[3-9]|9[28])\d{9}$/,"zh-TW":/^(\+?886\-?|0)?9\d{8}$/,"dz-BT":/^(\+?975|0)?(17|16|77|02)\d{6}$/,"ar-YE":/^(((\+|00)9677|0?7)[0137]\d{7}|((\+|00)967|0)[1-7]\d{6})$/,"ar-EH":/^(\+?212|0)[\s\-]?(5288|5289)[\s\-]?\d{5}$/,"fa-AF":/^(\+93|0)?(2{1}[0-8]{1}|[3-5]{1}[0-4]{1})(\d{7})$/};i["en-CA"]=i["en-US"],i["fr-CA"]=i["en-CA"],i["fr-BE"]=i["nl-BE"],i["zh-HK"]=i["en-HK"],i["zh-MO"]=i["en-MO"],i["ga-IE"]=i["en-IE"],i["fr-CH"]=i["de-CH"],i["it-CH"]=i["fr-CH"];var a=Object.keys(i);t.locales=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,o.default)(e),i.test(e)};var r,o=(r=n(797))&&r.__esModule?r:{default:r};var i=/^(0x)[0-9a-f]{40}$/i;e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,o.default)(e),function(e){var t="\\d{".concat(e.digits_after_decimal[0],"}");e.digits_after_decimal.forEach((function(e,n){0!==n&&(t="".concat(t,"|\\d{").concat(e,"}"))}));var n="(".concat(e.symbol.replace(/\W/,(function(e){return"\\".concat(e)})),")").concat(e.require_symbol?"":"?"),r="[1-9]\\d{0,2}(\\".concat(e.thousands_separator,"\\d{3})*"),o="(".concat(["0","[1-9]\\d*",r].join("|"),")?"),i="(\\".concat(e.decimal_separator,"(").concat(t,"))").concat(e.require_decimal?"":"?"),a=o+(e.allow_decimal||e.require_decimal?i:"");e.allow_negatives&&!e.parens_for_negatives&&(e.negative_sign_after_digits?a+="-?":e.negative_sign_before_digits&&(a="-?"+a));e.allow_negative_sign_placeholder?a="( (?!\\-))?".concat(a):e.allow_space_after_symbol?a=" ?".concat(a):e.allow_space_after_digits&&(a+="( (?!$))?");e.symbol_after_digits?a+=n:a=n+a;e.allow_negatives&&(e.parens_for_negatives?a="(\\(".concat(a,"\\)|").concat(a,")"):e.negative_sign_before_digits||e.negative_sign_after_digits||(a="-?"+a));return new RegExp("^(?!-? )(?=.*\\d)".concat(a,"$"))}(t=(0,r.default)(t,a)).test(e)};var r=i(n(882)),o=i(n(797));function i(e){return e&&e.__esModule?e:{default:e}}var a={symbol:"$",require_symbol:!1,allow_space_after_symbol:!1,symbol_after_digits:!1,allow_negatives:!0,parens_for_negatives:!1,negative_sign_before_digits:!1,negative_sign_after_digits:!1,allow_negative_sign_placeholder:!1,thousands_separator:",",decimal_separator:".",allow_decimal:!0,require_decimal:!1,digits_after_decimal:[2],allow_space_after_digits:!1};e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,o.default)(e),i.test(e)||a.test(e)};var r,o=(r=n(797))&&r.__esModule?r:{default:r};var i=/^(bc1)[a-z0-9]{25,39}$/,a=/^(1|3)[A-HJ-NP-Za-km-z1-9]{25,39}$/;e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isISO6346=l,t.isFreightContainerID=void 0;var r,o=(r=n(797))&&r.__esModule?r:{default:r};var i=/^[A-Z]{3}(U[0-9]{7})|([J,Z][0-9]{6,7})$/,a=/^[0-9]$/;function l(e){if((0,o.default)(e),e=e.toUpperCase(),!i.test(e))return!1;if(11===e.length){for(var t=0,n=0;n=11&&r<=20?12+r%11:r>=21&&r<=30?23+r%21:34+r%31)*Math.pow(2,n)}var l=t%11;return Number(e[e.length-1])===l}return!0}var u=l;t.isFreightContainerID=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,o.default)(e),i.has(e)};var r,o=(r=n(797))&&r.__esModule?r:{default:r};var i=new Set(["aa","ab","ae","af","ak","am","an","ar","as","av","ay","az","az","ba","be","bg","bh","bi","bm","bn","bo","br","bs","ca","ce","ch","co","cr","cs","cu","cv","cy","da","de","dv","dz","ee","el","en","eo","es","et","eu","fa","ff","fi","fj","fo","fr","fy","ga","gd","gl","gn","gu","gv","ha","he","hi","ho","hr","ht","hu","hy","hz","ia","id","ie","ig","ii","ik","io","is","it","iu","ja","jv","ka","kg","ki","kj","kk","kl","km","kn","ko","kr","ks","ku","kv","kw","ky","la","lb","lg","li","ln","lo","lt","lu","lv","mg","mh","mi","mk","ml","mn","mr","ms","mt","my","na","nb","nd","ne","ng","nl","nn","no","nr","nv","ny","oc","oj","om","or","os","pa","pi","pl","ps","pt","qu","rm","rn","ro","ru","rw","sa","sc","sd","se","sg","si","sk","sl","sm","sn","so","sq","sr","ss","st","su","sv","sw","ta","te","tg","th","ti","tk","tl","tn","to","tr","ts","tt","tw","ty","ug","uk","ur","uz","ve","vi","vo","wa","wo","xh","yi","yo","za","zh","zu"]);e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,o.default)(e);var n=t.strictSeparator?a.test(e):i.test(e);return n&&t.strict?l(e):n};var r,o=(r=n(797))&&r.__esModule?r:{default:r};var i=/^([\+-]?\d{4}(?!\d{2}\b))((-?)((0[1-9]|1[0-2])(\3([12]\d|0[1-9]|3[01]))?|W([0-4]\d|5[0-3])(-?[1-7])?|(00[1-9]|0[1-9]\d|[12]\d{2}|3([0-5]\d|6[1-6])))([T\s]((([01]\d|2[0-3])((:?)[0-5]\d)?|24:?00)([\.,]\d+(?!:))?)?(\17[0-5]\d([\.,]\d+)?)?([zZ]|([\+-])([01]\d|2[0-3]):?([0-5]\d)?)?)?)?$/,a=/^([\+-]?\d{4}(?!\d{2}\b))((-?)((0[1-9]|1[0-2])(\3([12]\d|0[1-9]|3[01]))?|W([0-4]\d|5[0-3])(-?[1-7])?|(00[1-9]|0[1-9]\d|[12]\d{2}|3([0-5]\d|6[1-6])))([T]((([01]\d|2[0-3])((:?)[0-5]\d)?|24:?00)([\.,]\d+(?!:))?)?(\17[0-5]\d([\.,]\d+)?)?([zZ]|([\+-])([01]\d|2[0-3]):?([0-5]\d)?)?)?)?$/,l=function(e){var t=e.match(/^(\d{4})-?(\d{3})([ T]{1}\.*|$)/);if(t){var n=Number(t[1]),r=Number(t[2]);return n%4==0&&n%100!=0||n%400==0?r<=366:r<=365}var o=e.match(/(\d{4})-?(\d{0,2})-?(\d*)/).map(Number),i=o[1],a=o[2],l=o[3],u=a?"0".concat(a).slice(-2):a,s=l?"0".concat(l).slice(-2):l,c=new Date("".concat(i,"-").concat(u||"01","-").concat(s||"01"));return!a||!l||c.getUTCFullYear()===i&&c.getUTCMonth()+1===a&&c.getUTCDate()===l};e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,o.default)(e),d.test(e)};var r,o=(r=n(797))&&r.__esModule?r:{default:r};var i=/([01][0-9]|2[0-3])/,a=/[0-5][0-9]/,l=new RegExp("[-+]".concat(i.source,":").concat(a.source)),u=new RegExp("([zZ]|".concat(l.source,")")),s=new RegExp("".concat(i.source,":").concat(a.source,":").concat(/([0-5][0-9]|60)/.source).concat(/(\.[0-9]+)?/.source)),c=new RegExp("".concat(/[0-9]{4}/.source,"-").concat(/(0[1-9]|1[0-2])/.source,"-").concat(/([12]\d|0[1-9]|3[01])/.source)),f=new RegExp("".concat(s.source).concat(u.source)),d=new RegExp("^".concat(c.source,"[ tT]").concat(f.source,"$"));e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,o.default)(e),i.has(e.toUpperCase())};var r,o=(r=n(797))&&r.__esModule?r:{default:r};var i=new Set(["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","VAT","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWZ","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","URY","UZB","VUT","VEN","VNM","VGB","VIR","WLF","ESH","YEM","ZMB","ZWE"]);e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,o.default)(e),i.has(e.toUpperCase())},t.CurrencyCodes=void 0;var r,o=(r=n(797))&&r.__esModule?r:{default:r};var i=new Set(["AED","AFN","ALL","AMD","ANG","AOA","ARS","AUD","AWG","AZN","BAM","BBD","BDT","BGN","BHD","BIF","BMD","BND","BOB","BOV","BRL","BSD","BTN","BWP","BYN","BZD","CAD","CDF","CHE","CHF","CHW","CLF","CLP","CNY","COP","COU","CRC","CUC","CUP","CVE","CZK","DJF","DKK","DOP","DZD","EGP","ERN","ETB","EUR","FJD","FKP","GBP","GEL","GHS","GIP","GMD","GNF","GTQ","GYD","HKD","HNL","HRK","HTG","HUF","IDR","ILS","INR","IQD","IRR","ISK","JMD","JOD","JPY","KES","KGS","KHR","KMF","KPW","KRW","KWD","KYD","KZT","LAK","LBP","LKR","LRD","LSL","LYD","MAD","MDL","MGA","MKD","MMK","MNT","MOP","MRU","MUR","MVR","MWK","MXN","MXV","MYR","MZN","NAD","NGN","NIO","NOK","NPR","NZD","OMR","PAB","PEN","PGK","PHP","PKR","PLN","PYG","QAR","RON","RSD","RUB","RWF","SAR","SBD","SCR","SDG","SEK","SGD","SHP","SLL","SOS","SRD","SSP","STN","SVC","SYP","SZL","THB","TJS","TMT","TND","TOP","TRY","TTD","TWD","TZS","UAH","UGX","USD","USN","UYI","UYU","UYW","UZS","VES","VND","VUV","WST","XAF","XAG","XAU","XBA","XBB","XBC","XBD","XCD","XDR","XOF","XPD","XPF","XPT","XSU","XTS","XUA","XXX","YER","ZAR","ZMW","ZWL"]);var a=i;t.CurrencyCodes=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,r.default)(e),(t=(0,o.default)(t,u)).crockford)return l.test(e);if(e.length%8==0&&a.test(e))return!0;return!1};var r=i(n(797)),o=i(n(882));function i(e){return e&&e.__esModule?e:{default:e}}var a=/^[A-Z2-7]+=*$/,l=/^[A-HJKMNP-TV-Z0-9]+$/,u={crockford:!1};e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if((0,o.default)(e),i.test(e))return!0;return!1};var r,o=(r=n(797))&&r.__esModule?r:{default:r};var i=/^[A-HJ-NP-Za-km-z1-9]*$/;e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,o.default)(e);var t=e.split(",");if(t.length<2)return!1;var n=t.shift().trim().split(";"),r=n.shift();if("data:"!==r.slice(0,5))return!1;var u=r.slice(5);if(""!==u&&!i.test(u))return!1;for(var s=0;s4)return!1;var i,a=function(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=u(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}(o);try{for(a.s();!(i=a.n()).done;){var s=l(i.value.split("="),2),c=s[0],f=s[1];if(c&&!t.has(c)){r=!0;break}!f||"cc"!==c&&"bcc"!==c||(n[c]=f),c&&t.delete(c)}}catch(e){a.e(e)}finally{a.f()}return!r&&n}(f);if(!d)return!1;return"".concat(s,",").concat(d.cc,",").concat(d.bcc).split(",").every((function(e){return!(e=(0,r.default)(e," "))||(0,o.default)(e,t)}))};var r=a(n(1602)),o=a(n(1592)),i=a(n(797));function a(e){return e&&e.__esModule?e:{default:e}}function l(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==l.return||l.return()}finally{if(o)throw i}}return n}(e,t)||u(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){if(e){if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n/g,">").replace(/\//g,"/").replace(/\\/g,"\").replace(/`/g,"`")};var r,o=(r=n(797))&&r.__esModule?r:{default:r};e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,o.default)(e),e.replace(/"/g,'"').replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">").replace(///g,"/").replace(/\/g,"\\").replace(/`/g,"`").replace(/&/g,"&")};var r,o=(r=n(797))&&r.__esModule?r:{default:r};e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,r.default)(e);var n=t?"\\x00-\\x09\\x0B\\x0C\\x0E-\\x1F\\x7F":"\\x00-\\x1F\\x7F";return(0,o.default)(e,n)};var r=i(n(797)),o=i(n(1605));function i(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,o.default)(e),e.replace(new RegExp("[^".concat(t,"]+"),"g"),"")};var r,o=(r=n(797))&&r.__esModule?r:{default:r};e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,o.default)(e);for(var n=e.length-1;n>=0;n--)if(-1===t.indexOf(e[n]))return!1;return!0};var r,o=(r=n(797))&&r.__esModule?r:{default:r};e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){t=(0,o.default)(t,i);var n=e.split("@"),r=n.pop(),f=[n.join("@"),r];if(f[1]=f[1].toLowerCase(),"gmail.com"===f[1]||"googlemail.com"===f[1]){if(t.gmail_remove_subaddress&&(f[0]=f[0].split("+")[0]),t.gmail_remove_dots&&(f[0]=f[0].replace(/\.+/g,c)),!f[0].length)return!1;(t.all_lowercase||t.gmail_lowercase)&&(f[0]=f[0].toLowerCase()),f[1]=t.gmail_convert_googlemaildotcom?"gmail.com":f[1]}else if(a.indexOf(f[1])>=0){if(t.icloud_remove_subaddress&&(f[0]=f[0].split("+")[0]),!f[0].length)return!1;(t.all_lowercase||t.icloud_lowercase)&&(f[0]=f[0].toLowerCase())}else if(l.indexOf(f[1])>=0){if(t.outlookdotcom_remove_subaddress&&(f[0]=f[0].split("+")[0]),!f[0].length)return!1;(t.all_lowercase||t.outlookdotcom_lowercase)&&(f[0]=f[0].toLowerCase())}else if(u.indexOf(f[1])>=0){if(t.yahoo_remove_subaddress){var d=f[0].split("-");f[0]=d.length>1?d.slice(0,-1).join("-"):d[0]}if(!f[0].length)return!1;(t.all_lowercase||t.yahoo_lowercase)&&(f[0]=f[0].toLowerCase())}else s.indexOf(f[1])>=0?((t.all_lowercase||t.yandex_lowercase)&&(f[0]=f[0].toLowerCase()),f[1]="yandex.ru"):t.all_lowercase&&(f[0]=f[0].toLowerCase());return f.join("@")};var r,o=(r=n(882))&&r.__esModule?r:{default:r};var i={all_lowercase:!0,gmail_lowercase:!0,gmail_remove_dots:!0,gmail_remove_subaddress:!0,gmail_convert_googlemaildotcom:!0,outlookdotcom_lowercase:!0,outlookdotcom_remove_subaddress:!0,yahoo_lowercase:!0,yahoo_remove_subaddress:!0,yandex_lowercase:!0,icloud_lowercase:!0,icloud_remove_subaddress:!0},a=["icloud.com","me.com"],l=["hotmail.at","hotmail.be","hotmail.ca","hotmail.cl","hotmail.co.il","hotmail.co.nz","hotmail.co.th","hotmail.co.uk","hotmail.com","hotmail.com.ar","hotmail.com.au","hotmail.com.br","hotmail.com.gr","hotmail.com.mx","hotmail.com.pe","hotmail.com.tr","hotmail.com.vn","hotmail.cz","hotmail.de","hotmail.dk","hotmail.es","hotmail.fr","hotmail.hu","hotmail.id","hotmail.ie","hotmail.in","hotmail.it","hotmail.jp","hotmail.kr","hotmail.lv","hotmail.my","hotmail.ph","hotmail.pt","hotmail.sa","hotmail.sg","hotmail.sk","live.be","live.co.uk","live.com","live.com.ar","live.com.mx","live.de","live.es","live.eu","live.fr","live.it","live.nl","msn.com","outlook.at","outlook.be","outlook.cl","outlook.co.il","outlook.co.nz","outlook.co.th","outlook.com","outlook.com.ar","outlook.com.au","outlook.com.br","outlook.com.gr","outlook.com.pe","outlook.com.tr","outlook.com.vn","outlook.cz","outlook.de","outlook.dk","outlook.es","outlook.fr","outlook.hu","outlook.id","outlook.ie","outlook.in","outlook.it","outlook.jp","outlook.kr","outlook.lv","outlook.my","outlook.ph","outlook.pt","outlook.sa","outlook.sg","outlook.sk","passport.com"],u=["rocketmail.com","yahoo.ca","yahoo.co.uk","yahoo.com","yahoo.de","yahoo.fr","yahoo.in","yahoo.it","ymail.com"],s=["yandex.ru","yandex.ua","yandex.kz","yandex.com","yandex.by","ya.ru"];function c(e){return e.length>1?e:""}e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,o.default)(e),i.test(e)};var r,o=(r=n(797))&&r.__esModule?r:{default:r};var i=/^[^\s-_](?!.*?[-_]{2,})[a-z0-9-\\][^\s]*[^-_\s]$/;e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,o.default)(e),t in i)return i[t](e);if("any"===t){for(var n in i){if((0,i[n])(e))return!0}return!1}throw new Error("Invalid locale '".concat(t,"'"))};var r,o=(r=n(797))&&r.__esModule?r:{default:r};var i={"cs-CZ":function(e){return/^(([ABCDEFHIJKLMNPRSTUVXYZ]|[0-9])-?){5,8}$/.test(e)},"de-DE":function(e){return/^((A|AA|AB|AC|AE|AH|AK|AM|AN|AÖ|AP|AS|AT|AU|AW|AZ|B|BA|BB|BC|BE|BF|BH|BI|BK|BL|BM|BN|BO|BÖ|BS|BT|BZ|C|CA|CB|CE|CO|CR|CW|D|DA|DD|DE|DH|DI|DL|DM|DN|DO|DU|DW|DZ|E|EA|EB|ED|EE|EF|EG|EH|EI|EL|EM|EN|ER|ES|EU|EW|F|FB|FD|FF|FG|FI|FL|FN|FO|FR|FS|FT|FÜ|FW|FZ|G|GA|GC|GD|GE|GF|GG|GI|GK|GL|GM|GN|GÖ|GP|GR|GS|GT|GÜ|GV|GW|GZ|H|HA|HB|HC|HD|HE|HF|HG|HH|HI|HK|HL|HM|HN|HO|HP|HR|HS|HU|HV|HX|HY|HZ|IK|IL|IN|IZ|J|JE|JL|K|KA|KB|KC|KE|KF|KG|KH|KI|KK|KL|KM|KN|KO|KR|KS|KT|KU|KW|KY|L|LA|LB|LC|LD|LF|LG|LH|LI|LL|LM|LN|LÖ|LP|LR|LU|M|MA|MB|MC|MD|ME|MG|MH|MI|MK|ML|MM|MN|MO|MQ|MR|MS|MÜ|MW|MY|MZ|N|NB|ND|NE|NF|NH|NI|NK|NM|NÖ|NP|NR|NT|NU|NW|NY|NZ|OA|OB|OC|OD|OE|OF|OG|OH|OK|OL|OP|OS|OZ|P|PA|PB|PE|PF|PI|PL|PM|PN|PR|PS|PW|PZ|R|RA|RC|RD|RE|RG|RH|RI|RL|RM|RN|RO|RP|RS|RT|RU|RV|RW|RZ|S|SB|SC|SE|SG|SI|SK|SL|SM|SN|SO|SP|SR|ST|SU|SW|SY|SZ|TE|TF|TG|TO|TP|TR|TS|TT|TÜ|ÜB|UE|UH|UL|UM|UN|V|VB|VG|VK|VR|VS|W|WA|WB|WE|WF|WI|WK|WL|WM|WN|WO|WR|WS|WT|WÜ|WW|WZ|Z|ZE|ZI|ZP|ZR|ZW|ZZ)[- ]?[A-Z]{1,2}[- ]?\d{1,4}|(ABG|ABI|AIB|AIC|ALF|ALZ|ANA|ANG|ANK|APD|ARN|ART|ASL|ASZ|AUR|AZE|BAD|BAR|BBG|BCH|BED|BER|BGD|BGL|BID|BIN|BIR|BIT|BIW|BKS|BLB|BLK|BNA|BOG|BOH|BOR|BOT|BRA|BRB|BRG|BRK|BRL|BRV|BSB|BSK|BTF|BÜD|BUL|BÜR|BÜS|BÜZ|CAS|CHA|CLP|CLZ|COC|COE|CUX|DAH|DAN|DAU|DBR|DEG|DEL|DGF|DIL|DIN|DIZ|DKB|DLG|DON|DUD|DÜW|EBE|EBN|EBS|ECK|EIC|EIL|EIN|EIS|EMD|EMS|ERB|ERH|ERK|ERZ|ESB|ESW|FDB|FDS|FEU|FFB|FKB|FLÖ|FOR|FRG|FRI|FRW|FTL|FÜS|GAN|GAP|GDB|GEL|GEO|GER|GHA|GHC|GLA|GMN|GNT|GOA|GOH|GRA|GRH|GRI|GRM|GRZ|GTH|GUB|GUN|GVM|HAB|HAL|HAM|HAS|HBN|HBS|HCH|HDH|HDL|HEB|HEF|HEI|HER|HET|HGN|HGW|HHM|HIG|HIP|HMÜ|HOG|HOH|HOL|HOM|HOR|HÖS|HOT|HRO|HSK|HST|HVL|HWI|IGB|ILL|JÜL|KEH|KEL|KEM|KIB|KLE|KLZ|KÖN|KÖT|KÖZ|KRU|KÜN|KUS|KYF|LAN|LAU|LBS|LBZ|LDK|LDS|LEO|LER|LEV|LIB|LIF|LIP|LÖB|LOS|LRO|LSZ|LÜN|LUP|LWL|MAB|MAI|MAK|MAL|MED|MEG|MEI|MEK|MEL|MER|MET|MGH|MGN|MHL|MIL|MKK|MOD|MOL|MON|MOS|MSE|MSH|MSP|MST|MTK|MTL|MÜB|MÜR|MYK|MZG|NAB|NAI|NAU|NDH|NEA|NEB|NEC|NEN|NES|NEW|NMB|NMS|NOH|NOL|NOM|NOR|NVP|NWM|OAL|OBB|OBG|OCH|OHA|ÖHR|OHV|OHZ|OPR|OSL|OVI|OVL|OVP|PAF|PAN|PAR|PCH|PEG|PIR|PLÖ|PRÜ|QFT|QLB|RDG|REG|REH|REI|RID|RIE|ROD|ROF|ROK|ROL|ROS|ROT|ROW|RSL|RÜD|RÜG|SAB|SAD|SAN|SAW|SBG|SBK|SCZ|SDH|SDL|SDT|SEB|SEE|SEF|SEL|SFB|SFT|SGH|SHA|SHG|SHK|SHL|SIG|SIM|SLE|SLF|SLK|SLN|SLS|SLÜ|SLZ|SMÜ|SOB|SOG|SOK|SÖM|SON|SPB|SPN|SRB|SRO|STA|STB|STD|STE|STL|SUL|SÜW|SWA|SZB|TBB|TDO|TET|TIR|TÖL|TUT|UEM|UER|UFF|USI|VAI|VEC|VER|VIB|VIE|VIT|VOH|WAF|WAK|WAN|WAR|WAT|WBS|WDA|WEL|WEN|WER|WES|WHV|WIL|WIS|WIT|WIZ|WLG|WMS|WND|WOB|WOH|WOL|WOR|WOS|WRN|WSF|WST|WSW|WTL|WTM|WUG|WÜM|WUN|WUR|WZL|ZEL|ZIG)[- ]?(([A-Z][- ]?\d{1,4})|([A-Z]{2}[- ]?\d{1,3})))[- ]?(E|H)?$/.test(e)},"de-LI":function(e){return/^FL[- ]?\d{1,5}[UZ]?$/.test(e)},"en-IN":function(e){return/^[A-Z]{2}[ -]?[0-9]{1,2}(?:[ -]?[A-Z])(?:[ -]?[A-Z]*)?[ -]?[0-9]{4}$/.test(e)},"es-AR":function(e){return/^(([A-Z]{2} ?[0-9]{3} ?[A-Z]{2})|([A-Z]{3} ?[0-9]{3}))$/.test(e)},"fi-FI":function(e){return/^(?=.{4,7})(([A-Z]{1,3}|[0-9]{1,3})[\s-]?([A-Z]{1,3}|[0-9]{1,5}))$/.test(e)},"hu-HU":function(e){return/^((((?!AAA)(([A-NPRSTVZWXY]{1})([A-PR-Z]{1})([A-HJ-NPR-Z]))|(A[ABC]I)|A[ABC]O|A[A-W]Q|BPI|BPO|UCO|UDO|XAO)-(?!000)\d{3})|(M\d{6})|((CK|DT|CD|HC|H[ABEFIKLMNPRSTVX]|MA|OT|R[A-Z]) \d{2}-\d{2})|(CD \d{3}-\d{3})|(C-(C|X) \d{4})|(X-(A|B|C) \d{4})|(([EPVZ]-\d{5}))|(S A[A-Z]{2} \d{2})|(SP \d{2}-\d{2}))$/.test(e)},"pt-BR":function(e){return/^[A-Z]{3}[ -]?[0-9][A-Z][0-9]{2}|[A-Z]{3}[ -]?[0-9]{4}$/.test(e)},"pt-PT":function(e){return/^([A-Z]{2}|[0-9]{2})[ -·]?([A-Z]{2}|[0-9]{2})[ -·]?([A-Z]{2}|[0-9]{2})$/.test(e)},"sq-AL":function(e){return/^[A-Z]{2}[- ]?((\d{3}[- ]?(([A-Z]{2})|T))|(R[- ]?\d{3}))$/.test(e)},"sv-SE":function(e){return/^[A-HJ-PR-UW-Z]{3} ?[\d]{2}[A-HJ-PR-UW-Z1-9]$|(^[A-ZÅÄÖ ]{2,7}$)/.test(e.trim())}};e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;(0,o.default)(e);var n=f(e);if((t=(0,r.default)(t||{},c)).returnScore)return d(n,t);return n.length>=t.minLength&&n.lowercaseCount>=t.minLowercase&&n.uppercaseCount>=t.minUppercase&&n.numberCount>=t.minNumbers&&n.symbolCount>=t.minSymbols};var r=i(n(882)),o=i(n(797));function i(e){return e&&e.__esModule?e:{default:e}}var a=/^[A-Z]$/,l=/^[a-z]$/,u=/^[0-9]$/,s=/^[-#!$@£%^&*()_+|~=`{}\[\]:";'<>?,.\/ ]$/,c={minLength:8,minLowercase:1,minUppercase:1,minNumbers:1,minSymbols:1,returnScore:!1,pointsPerUnique:1,pointsPerRepeat:.5,pointsForContainingLower:10,pointsForContainingUpper:10,pointsForContainingNumber:10,pointsForContainingSymbol:10};function f(e){var t,n,r=(t=e,n={},Array.from(t).forEach((function(e){n[e]?n[e]+=1:n[e]=1})),n),o={length:e.length,uniqueChars:Object.keys(r).length,uppercaseCount:0,lowercaseCount:0,numberCount:0,symbolCount:0};return Object.keys(r).forEach((function(e){a.test(e)?o.uppercaseCount+=r[e]:l.test(e)?o.lowercaseCount+=r[e]:u.test(e)?o.numberCount+=r[e]:s.test(e)&&(o.symbolCount+=r[e])})),o}function d(e,t){var n=0;return n+=e.uniqueChars*t.pointsPerUnique,n+=(e.length-e.uniqueChars)*t.pointsPerRepeat,e.lowercaseCount>0&&(n+=t.pointsForContainingLower),e.uppercaseCount>0&&(n+=t.pointsForContainingUpper),e.numberCount>0&&(n+=t.pointsForContainingNumber),e.symbolCount>0&&(n+=t.pointsForContainingSymbol),n}e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,i.default)(e),(0,i.default)(t),t in u)return u[t](e);throw new Error("Invalid country code: '".concat(t,"'"))},t.vatMatchers=void 0;var o,i=(o=n(797))&&o.__esModule?o:{default:o},a=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var t=l();if(t&&t.has(e))return t.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}n.default=e,t&&t.set(e,n);return n}(n(1601));function l(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return l=function(){return e},e}var u={AT:function(e){return/^(AT)?U\d{8}$/.test(e)},BE:function(e){return/^(BE)?\d{10}$/.test(e)},BG:function(e){return/^(BG)?\d{9,10}$/.test(e)},HR:function(e){return/^(HR)?\d{11}$/.test(e)},CY:function(e){return/^(CY)?\w{9}$/.test(e)},CZ:function(e){return/^(CZ)?\d{8,10}$/.test(e)},DK:function(e){return/^(DK)?\d{8}$/.test(e)},EE:function(e){return/^(EE)?\d{9}$/.test(e)},FI:function(e){return/^(FI)?\d{8}$/.test(e)},FR:function(e){return/^(FR)?\w{2}\d{9}$/.test(e)},DE:function(e){return/^(DE)?\d{9}$/.test(e)},EL:function(e){return/^(EL)?\d{9}$/.test(e)},HU:function(e){return/^(HU)?\d{8}$/.test(e)},IE:function(e){return/^(IE)?\d{7}\w{1}(W)?$/.test(e)},IT:function(e){return/^(IT)?\d{11}$/.test(e)},LV:function(e){return/^(LV)?\d{11}$/.test(e)},LT:function(e){return/^(LT)?\d{9,12}$/.test(e)},LU:function(e){return/^(LU)?\d{8}$/.test(e)},MT:function(e){return/^(MT)?\d{8}$/.test(e)},NL:function(e){return/^(NL)?\d{9}B\d{2}$/.test(e)},PL:function(e){return/^(PL)?(\d{10}|(\d{3}-\d{3}-\d{2}-\d{2})|(\d{3}-\d{2}-\d{2}-\d{3}))$/.test(e)},PT:function(e){var t=e.match(/^(PT)?(\d{9})$/);if(!t)return!1;var n=t[2],r=11-a.reverseMultiplyAndSum(n.split("").slice(0,8).map((function(e){return parseInt(e,10)})),9)%11;return r>9?0===parseInt(n[8],10):r===parseInt(n[8],10)},RO:function(e){return/^(RO)?\d{2,10}$/.test(e)},SK:function(e){return/^(SK)?\d{10}$/.test(e)},SI:function(e){return/^(SI)?\d{8}$/.test(e)},ES:function(e){return/^(ES)?\w\d{7}[A-Z]$/.test(e)},SE:function(e){return/^(SE)?\d{12}$/.test(e)},AL:function(e){return/^(AL)?\w{9}[A-Z]$/.test(e)},MK:function(e){return/^(MK)?\d{13}$/.test(e)},AU:function(e){return/^(AU)?\d{11}$/.test(e)},BY:function(e){return/^(УНП )?\d{9}$/.test(e)},CA:function(e){return/^(CA)?\d{9}$/.test(e)},IS:function(e){return/^(IS)?\d{5,6}$/.test(e)},IN:function(e){return/^(IN)?\d{15}$/.test(e)},ID:function(e){return/^(ID)?(\d{15}|(\d{2}.\d{3}.\d{3}.\d{1}-\d{3}.\d{3}))$/.test(e)},IL:function(e){return/^(IL)?\d{9}$/.test(e)},KZ:function(e){return/^(KZ)?\d{9}$/.test(e)},NZ:function(e){return/^(NZ)?\d{9}$/.test(e)},NG:function(e){return/^(NG)?(\d{12}|(\d{8}-\d{4}))$/.test(e)},NO:function(e){return/^(NO)?\d{9}MVA$/.test(e)},PH:function(e){return/^(PH)?(\d{12}|\d{3} \d{3} \d{3} \d{3})$/.test(e)},RU:function(e){return/^(RU)?(\d{10}|\d{12})$/.test(e)},SM:function(e){return/^(SM)?\d{5}$/.test(e)},SA:function(e){return/^(SA)?\d{15}$/.test(e)},RS:function(e){return/^(RS)?\d{9}$/.test(e)},CH:function(e){var t,n,r;return/^(CHE[- ]?)?(\d{9}|(\d{3}\.\d{3}\.\d{3})|(\d{3} \d{3} \d{3})) ?(TVA|MWST|IVA)?$/.test(e)&&(t=e.match(/\d/g).map((function(e){return+e})),n=t.pop(),r=[5,4,3,2,7,6,5,4],n===(11-t.reduce((function(e,t,n){return e+t*r[n]}),0)%11)%11)},TR:function(e){return/^(TR)?\d{10}$/.test(e)},UA:function(e){return/^(UA)?\d{12}$/.test(e)},GB:function(e){return/^GB((\d{3} \d{4} ([0-8][0-9]|9[0-6]))|(\d{9} \d{3})|(((GD[0-4])|(HA[5-9]))[0-9]{2}))$/.test(e)},UZ:function(e){return/^(UZ)?\d{9}$/.test(e)},AR:function(e){return/^(AR)?\d{11}$/.test(e)},BO:function(e){return/^(BO)?\d{7}$/.test(e)},BR:function(e){return/^(BR)?((\d{2}.\d{3}.\d{3}\/\d{4}-\d{2})|(\d{3}.\d{3}.\d{3}-\d{2}))$/.test(e)},CL:function(e){return/^(CL)?\d{8}-\d{1}$/.test(e)},CO:function(e){return/^(CO)?\d{10}$/.test(e)},CR:function(e){return/^(CR)?\d{9,12}$/.test(e)},EC:function(e){return/^(EC)?\d{13}$/.test(e)},SV:function(e){return/^(SV)?\d{4}-\d{6}-\d{3}-\d{1}$/.test(e)},GT:function(e){return/^(GT)?\d{7}-\d{1}$/.test(e)},HN:function(e){return/^(HN)?$/.test(e)},MX:function(e){return/^(MX)?\w{3,4}\d{6}\w{3}$/.test(e)},NI:function(e){return/^(NI)?\d{3}-\d{6}-\d{4}\w{1}$/.test(e)},PA:function(e){return/^(PA)?$/.test(e)},PY:function(e){return/^(PY)?\d{6,8}-\d{1}$/.test(e)},PE:function(e){return/^(PE)?\d{11}$/.test(e)},DO:function(e){return/^(DO)?(\d{11}|(\d{3}-\d{7}-\d{1})|[1,4,5]{1}\d{8}|([1,4,5]{1})-\d{2}-\d{5}-\d{1})$/.test(e)},UY:function(e){return/^(UY)?\d{12}$/.test(e)},VE:function(e){return/^(VE)?[J,G,V,E]{1}-(\d{9}|(\d{8}-\d{1}))$/.test(e)}};t.vatMatchers=u},,,,,,function(e,t,n){var r=n(217),o=n(255),i=Math.max;e.exports=function(e,t,n){var a=null==e?0:e.length;if(!a)return-1;var l=null==n?0:o(n);return l<0&&(l=i(a+l,0)),r(e,t,l)}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";var r=n(8),o=n(2815);r({target:"Date",proto:!0,forced:Date.prototype.toISOString!==o},{toISOString:o})},function(e,t,n){"use strict";var r=n(21),o=n(19),i=n(2816).start,a=RangeError,l=isFinite,u=Math.abs,s=Date.prototype,c=s.toISOString,f=r(s.getTime),d=r(s.getUTCDate),p=r(s.getUTCFullYear),h=r(s.getUTCHours),v=r(s.getUTCMilliseconds),g=r(s.getUTCMinutes),y=r(s.getUTCMonth),m=r(s.getUTCSeconds);e.exports=o((function(){return"0385-07-25T07:06:39.999Z"!==c.call(new Date(-50000000000001))}))||!o((function(){c.call(new Date(NaN))}))?function(){if(!l(f(this)))throw new a("Invalid time value");var e=p(this),t=v(this),n=e<0?"-":e>9999?"+":"";return n+i(u(e),n?6:4,0)+"-"+i(y(this)+1,2,0)+"-"+i(d(this),2,0)+"T"+i(h(this),2,0)+":"+i(g(this),2,0)+":"+i(m(this),2,0)+"."+i(t,3,0)+"Z"}:c},function(e,t,n){"use strict";var r=n(21),o=n(140),i=n(46),a=n(506),l=n(80),u=r(a),s=r("".slice),c=Math.ceil,f=function(e){return function(t,n,r){var a,f,d=i(l(t)),p=o(n),h=d.length,v=void 0===r?" ":i(r);return p<=h||""===v?d:((f=u(v,c((a=p-h)/v.length))).length>a&&(f=s(f,0,a)),e?d+f:f+d)}};e.exports={start:f(!1),end:f(!0)}},,,,,function(e,t,n){"use strict";function r(){return(r=Object.assign||function(e){for(var t=1;t"===t[0]&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch(e){return!1}return!1}}function v(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function g(e,t,n,r){if(e){n=n||document;do{if(null!=t&&(">"===t[0]?e.parentNode===n&&h(e,t):h(e,t))||r&&e===n)return e;if(e===n)break}while(e=v(e))}return null}var y,m=/\s+/g;function b(e,t,n){if(e&&t)if(e.classList)e.classList[n?"add":"remove"](t);else{var r=(" "+e.className+" ").replace(m," ").replace(" "+t+" "," ");e.className=(r+(n?" "+t:"")).replace(m," ")}}function x(e,t,n){var r=e&&e.style;if(r){if(void 0===n)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(n=e.currentStyle),void 0===t?n:n[t];t in r||-1!==t.indexOf("webkit")||(t="-webkit-"+t),r[t]=n+("string"==typeof n?"":"px")}}function w(e,t){var n="";if("string"==typeof e)n=e;else do{var r=x(e,"transform");r&&"none"!==r&&(n=r+" "+n)}while(!t&&(e=e.parentNode));var o=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return o&&new o(n)}function _(e,t,n){if(e){var r=e.getElementsByTagName(t),o=0,i=r.length;if(n)for(;o=i:o<=i))return r;if(r===C())break;r=j(r,!1)}return!1}function M(e,t,n){for(var r=0,o=0,i=e.children;o=0||(o[n]=e[n]);return o}(o,["evt"]);B.pluginEvent.bind(Ne)(e,t,r({dragEl:U,parentEl:Z,ghostEl:W,rootEl:K,nextEl:G,lastDownEl:q,cloneEl:Y,cloneHidden:X,dragStarted:ce,putSortable:re,activeSortable:Ne.active,originalEvent:i,oldIndex:J,oldDraggableIndex:ee,newIndex:Q,newDraggableIndex:te,hideGhostForTarget:je,unhideGhostForTarget:Te,cloneNowHidden:function(){X=!0},cloneNowShown:function(){X=!1},dispatchSortableEvent:function(e){$({sortable:t,name:e,originalEvent:i})}},a))};function $(e){F(r({putSortable:re,cloneEl:Y,targetEl:U,rootEl:K,oldIndex:J,oldDraggableIndex:ee,newIndex:Q,newDraggableIndex:te},e))}var U,Z,W,K,G,q,Y,X,J,Q,ee,te,ne,re,oe,ie,ae,le,ue,se,ce,fe,de,pe,he,ve=!1,ge=!1,ye=[],me=!1,be=!1,xe=[],we=!1,_e=[],Ce="undefined"!=typeof document,Oe=s,Ee=a||i?"cssFloat":"float",Me=Ce&&!c&&!s&&"draggable"in document.createElement("div"),Se=function(){if(Ce){if(i)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto","auto"===e.style.pointerEvents}}(),Ae=function(e,t){var n=x(e),r=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),o=M(e,0,t),i=M(e,1,t),a=o&&x(o),l=i&&x(i),u=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+O(o).width,s=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+O(i).width;return"flex"===n.display?"column"===n.flexDirection||"column-reverse"===n.flexDirection?"vertical":"horizontal":"grid"===n.display?n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal":o&&a.float&&"none"!==a.float?!i||"both"!==l.clear&&l.clear!==("left"===a.float?"left":"right")?"horizontal":"vertical":o&&("block"===a.display||"flex"===a.display||"table"===a.display||"grid"===a.display||u>=r&&"none"===n[Ee]||i&&"none"===n[Ee]&&u+s>r)?"vertical":"horizontal"},ke=function(e){function t(e,n){return function(r,o,i,a){if(null==e&&(n||r.options.group.name&&o.options.group.name&&r.options.group.name===o.options.group.name))return!0;if(null==e||!1===e)return!1;if(n&&"clone"===e)return e;if("function"==typeof e)return t(e(r,o,i,a),n)(r,o,i,a);var l=(n?r:o).options.group.name;return!0===e||"string"==typeof e&&e===l||e.join&&e.indexOf(l)>-1}}var n={},r=e.group;r&&"object"==typeof r||(r={name:r}),n.name=r.name,n.checkPull=t(r.pull,!0),n.checkPut=t(r.put),n.revertClone=r.revertClone,e.group=n},je=function(){!Se&&W&&x(W,"display","none")},Te=function(){!Se&&W&&x(W,"display","")};Ce&&document.addEventListener("click",(function(e){if(ge)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),ge=!1,!1}),!0);var Pe,Le=function(e){if(U){var t=(o=(e=e.touches?e.touches[0]:e).clientX,i=e.clientY,ye.some((function(e){if(!S(e)){var t=O(e),n=e[I].options.emptyInsertThreshold;return n&&o>=t.left-n&&o<=t.right+n&&i>=t.top-n&&i<=t.bottom+n?a=e:void 0}})),a);if(t){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]=e[r]);n.target=n.rootEl=t,n.preventDefault=void 0,n.stopPropagation=void 0,t[I]._onDragOver(n)}}var o,i,a},ze=function(e){U&&U.parentNode[I]._isOutsideThisEl(e.target)};function Ne(e,t){if(!e||!e.nodeType||1!==e.nodeType)throw"Sortable: `el` must be an HTMLElement, not "+{}.toString.call(e);this.el=e,this.options=t=Object.assign({},t),e[I]=this;var n,o,i={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Ae(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(e,t){e.setData("Text",t.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:!1!==Ne.supportPointer&&"PointerEvent"in window,emptyInsertThreshold:5};for(var a in B.initializePlugins(this,e,i),i)!(a in t)&&(t[a]=i[a]);for(var l in ke(t),this)"_"===l.charAt(0)&&"function"==typeof this[l]&&(this[l]=this[l].bind(this));this.nativeDraggable=!t.forceFallback&&Me,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?d(e,"pointerdown",this._onTapStart):(d(e,"mousedown",this._onTapStart),d(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(d(e,"dragover",this),d(e,"dragenter",this)),ye.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),Object.assign(this,(o=[],{captureAnimationState:function(){o=[],this.options.animation&&[].slice.call(this.el.children).forEach((function(e){if("none"!==x(e,"display")&&void 0!==e){o.push({target:e,rect:O(e)});var t=r({},o[o.length-1].rect);if(e.thisAnimationDuration){var n=w(e,!0);n&&(t.top-=n.f,t.left-=n.e)}e.fromRect=t}}))},addAnimationState:function(e){o.push(e)},removeAnimationState:function(e){o.splice(function(e,t){for(var n in e)if(e.hasOwnProperty(n))for(var r in t)if(t.hasOwnProperty(r)&&t[r]===e[n][r])return Number(n);return-1}(o,{target:e}),1)},animateAll:function(e){var t=this;if(!this.options.animation)return clearTimeout(n),void("function"==typeof e&&e());var r=!1,i=0;o.forEach((function(e){var n=0,o=e.target,a=o.fromRect,l=O(o),u=o.prevFromRect,s=o.prevToRect,c=e.rect,f=w(o,!0);f&&(l.top-=f.f,l.left-=f.e),o.toRect=l,o.thisAnimationDuration&&T(u,l)&&!T(a,l)&&(c.top-l.top)/(c.left-l.left)==(a.top-l.top)/(a.left-l.left)&&(n=function(e,t,n,r){return Math.sqrt(Math.pow(t.top-e.top,2)+Math.pow(t.left-e.left,2))/Math.sqrt(Math.pow(t.top-n.top,2)+Math.pow(t.left-n.left,2))*r.animation}(c,u,s,t.options)),T(l,a)||(o.prevFromRect=a,o.prevToRect=l,n||(n=t.options.animation),t.animate(o,c,l,n)),n&&(r=!0,i=Math.max(i,n),clearTimeout(o.animationResetTimer),o.animationResetTimer=setTimeout((function(){o.animationTime=0,o.prevFromRect=null,o.fromRect=null,o.prevToRect=null,o.thisAnimationDuration=null}),n),o.thisAnimationDuration=n)})),clearTimeout(n),r?n=setTimeout((function(){"function"==typeof e&&e()}),i):"function"==typeof e&&e(),o=[]},animate:function(e,t,n,r){if(r){x(e,"transition",""),x(e,"transform","");var o=w(this.el),i=(t.left-n.left)/(o&&o.a||1),a=(t.top-n.top)/(o&&o.d||1);e.animatingX=!!i,e.animatingY=!!a,x(e,"transform","translate3d("+i+"px,"+a+"px,0)"),this.forRepaintDummy=function(e){return e.offsetWidth}(e),x(e,"transition","transform "+r+"ms"+(this.options.easing?" "+this.options.easing:"")),x(e,"transform","translate3d(0,0,0)"),"number"==typeof e.animated&&clearTimeout(e.animated),e.animated=setTimeout((function(){x(e,"transition",""),x(e,"transform",""),e.animated=!1,e.animatingX=!1,e.animatingY=!1}),r)}}}))}function De(e,t,n,r,o,l,u,s){var c,f,d=e[I],p=d.options.onMove;return!window.CustomEvent||i||a?(c=document.createEvent("Event")).initEvent("move",!0,!0):c=new CustomEvent("move",{bubbles:!0,cancelable:!0}),c.to=t,c.from=e,c.dragged=n,c.draggedRect=r,c.related=o||t,c.relatedRect=l||O(t),c.willInsertAfter=s,c.originalEvent=u,e.dispatchEvent(c),p&&(f=p.call(d,c,u)),f}function Ie(e){e.draggable=!1}function Re(){we=!1}function He(e){for(var t=e.tagName+e.className+e.src+e.href+e.textContent,n=t.length,r=0;n--;)r+=t.charCodeAt(n);return r.toString(36)}function Be(e){return setTimeout(e,0)}function Fe(e){return clearTimeout(e)}Ne.prototype={constructor:Ne,_isOutsideThisEl:function(e){this.el.contains(e)||e===this.el||(fe=null)},_getDirection:function(e,t){return"function"==typeof this.options.direction?this.options.direction.call(this,e,t,U):this.options.direction},_onTapStart:function(e){if(e.cancelable){var t=this,n=this.el,r=this.options,o=r.preventOnFilter,i=e.type,a=e.touches&&e.touches[0]||e.pointerType&&"touch"===e.pointerType&&e,l=(a||e).target,s=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||l,c=r.filter;if(function(e){_e.length=0;for(var t=e.getElementsByTagName("input"),n=t.length;n--;){var r=t[n];r.checked&&_e.push(r)}}(n),!U&&!(/mousedown|pointerdown/.test(i)&&0!==e.button||r.disabled)&&!s.isContentEditable&&(this.nativeDraggable||!u||!l||"SELECT"!==l.tagName.toUpperCase())&&!((l=g(l,r.draggable,n,!1))&&l.animated||q===l)){if(J=A(l),ee=A(l,r.draggable),"function"==typeof c){if(c.call(this,e,l,this))return $({sortable:t,rootEl:s,name:"filter",targetEl:l,toEl:n,fromEl:n}),V("filter",t,{evt:e}),void(o&&e.cancelable&&e.preventDefault())}else if(c&&(c=c.split(",").some((function(r){if(r=g(s,r.trim(),n,!1))return $({sortable:t,rootEl:r,name:"filter",targetEl:l,fromEl:n,toEl:n}),V("filter",t,{evt:e}),!0}))))return void(o&&e.cancelable&&e.preventDefault());r.handle&&!g(s,r.handle,n,!1)||this._prepareDragStart(e,a,l)}}},_prepareDragStart:function(e,t,n){var r,o=this,u=o.el,s=o.options,c=u.ownerDocument;if(n&&!U&&n.parentNode===u){var f=O(n);if(K=u,Z=(U=n).parentNode,G=U.nextSibling,q=n,ne=s.group,Ne.dragged=U,ue=(oe={target:U,clientX:(t||e).clientX,clientY:(t||e).clientY}).clientX-f.left,se=oe.clientY-f.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,U.style["will-change"]="all",r=function(){V("delayEnded",o,{evt:e}),Ne.eventCanceled?o._onDrop():(o._disableDelayedDragEvents(),!l&&o.nativeDraggable&&(U.draggable=!0),o._triggerDragStart(e,t),$({sortable:o,name:"choose",originalEvent:e}),b(U,s.chosenClass,!0))},s.ignore.split(",").forEach((function(e){_(U,e.trim(),Ie)})),d(c,"dragover",Le),d(c,"mousemove",Le),d(c,"touchmove",Le),d(c,"mouseup",o._onDrop),d(c,"touchend",o._onDrop),d(c,"touchcancel",o._onDrop),l&&this.nativeDraggable&&(this.options.touchStartThreshold=4,U.draggable=!0),V("delayStart",this,{evt:e}),!s.delay||s.delayOnTouchOnly&&!t||this.nativeDraggable&&(a||i))r();else{if(Ne.eventCanceled)return void this._onDrop();d(c,"mouseup",o._disableDelayedDrag),d(c,"touchend",o._disableDelayedDrag),d(c,"touchcancel",o._disableDelayedDrag),d(c,"mousemove",o._delayedDragTouchMoveHandler),d(c,"touchmove",o._delayedDragTouchMoveHandler),s.supportPointer&&d(c,"pointermove",o._delayedDragTouchMoveHandler),o._dragStartTimer=setTimeout(r,s.delay)}}},_delayedDragTouchMoveHandler:function(e){var t=e.touches?e.touches[0]:e;Math.max(Math.abs(t.clientX-this._lastX),Math.abs(t.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){U&&Ie(U),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;p(e,"mouseup",this._disableDelayedDrag),p(e,"touchend",this._disableDelayedDrag),p(e,"touchcancel",this._disableDelayedDrag),p(e,"mousemove",this._delayedDragTouchMoveHandler),p(e,"touchmove",this._delayedDragTouchMoveHandler),p(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t=t||"touch"==e.pointerType&&e,!this.nativeDraggable||t?d(document,this.options.supportPointer?"pointermove":t?"touchmove":"mousemove",this._onTouchMove):(d(U,"dragend",this),d(K,"dragstart",this._onDragStart));try{document.selection?Be((function(){document.selection.empty()})):window.getSelection().removeAllRanges()}catch(e){}},_dragStarted:function(e,t){if(ve=!1,K&&U){V("dragStarted",this,{evt:t}),this.nativeDraggable&&d(document,"dragover",ze);var n=this.options;!e&&b(U,n.dragClass,!1),b(U,n.ghostClass,!0),Ne.active=this,e&&this._appendGhost(),$({sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(ie){this._lastX=ie.clientX,this._lastY=ie.clientY,je();for(var e=document.elementFromPoint(ie.clientX,ie.clientY),t=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(ie.clientX,ie.clientY))!==t;)t=e;if(U.parentNode[I]._isOutsideThisEl(e),t)do{if(t[I]&&t[I]._onDragOver({clientX:ie.clientX,clientY:ie.clientY,target:e,rootEl:t})&&!this.options.dragoverBubble)break;e=t}while(t=t.parentNode);Te()}},_onTouchMove:function(e){if(oe){var t=this.options,n=t.fallbackTolerance,r=t.fallbackOffset,o=e.touches?e.touches[0]:e,i=W&&w(W,!0),a=W&&i&&i.a,l=W&&i&&i.d,u=Oe&&he&&k(he),s=(o.clientX-oe.clientX+r.x)/(a||1)+(u?u[0]-xe[0]:0)/(a||1),c=(o.clientY-oe.clientY+r.y)/(l||1)+(u?u[1]-xe[1]:0)/(l||1);if(!Ne.active&&!ve){if(n&&Math.max(Math.abs(o.clientX-this._lastX),Math.abs(o.clientY-this._lastY))r.right+10||e.clientX<=r.right&&e.clientY>r.bottom&&e.clientX>=r.left:e.clientX>r.right&&e.clientY>r.top||e.clientX<=r.right&&e.clientY>r.bottom+10}(e,i,this)&&!y.animated){if(y===U)return B(!1);if(y&&a===e.target&&(l=y),l&&(n=O(l)),!1!==De(K,a,U,t,l,n,e,!!l))return H(),a.appendChild(U),Z=a,F(),B(!0)}else if(l.parentNode===a){n=O(l);var m,w,_,C=U.parentNode!==a,M=!function(e,t,n){var r=n?e.left:e.top,o=n?t.left:t.top;return r===o||(n?e.right:e.bottom)===(n?t.right:t.bottom)||r+(n?e.width:e.height)/2===o+(n?t.width:t.height)/2}(U.animated&&U.toRect||t,l.animated&&l.toRect||n,i),k=i?"top":"left",j=E(l,"top","top")||E(U,"top","top"),T=j?j.scrollTop:void 0;if(fe!==l&&(w=n[k],me=!1,be=!M&&u.invertSwap||C),0!==(m=function(e,t,n,r,o,i,a,l){var u=r?e.clientY:e.clientX,s=r?n.height:n.width,c=r?n.top:n.left,f=r?n.bottom:n.right,d=!1;if(!a)if(l&&pec+s*i/2:uf-pe)return-de}else if(u>c+s*(1-o)/2&&uf-s*i/2)?u>c+s/2?1:-1:0}(e,l,n,i,M?1:u.swapThreshold,null==u.invertedSwapThreshold?u.swapThreshold:u.invertedSwapThreshold,be,fe===l))){var P=A(U);do{_=Z.children[P-=m]}while(_&&("none"===x(_,"display")||_===W))}if(0===m||_===l)return B(!1);fe=l,de=m;var z=l.nextElementSibling,N=!1,D=De(K,a,U,t,l,n,e,N=1===m);if(!1!==D)return 1!==D&&-1!==D||(N=1===D),we=!0,setTimeout(Re,30),H(),N&&!z?a.appendChild(U):l.parentNode.insertBefore(U,N?z:l),j&&L(j,0,T-j.scrollTop),Z=U.parentNode,void 0===w||be||(pe=Math.abs(w-O(l)[k])),F(),B(!0)}if(a.contains(U))return B(!1)}return!1}function R(u,s){V(u,h,r({evt:e,isOwner:f,axis:i?"vertical":"horizontal",revert:o,dragRect:t,targetRect:n,canSort:d,fromSortable:p,target:l,completed:B,onMove:function(n,r){return De(K,a,U,t,n,O(n),e,r)},changed:F},s))}function H(){R("dragOverAnimationCapture"),h.captureAnimationState(),h!==p&&p.captureAnimationState()}function B(t){return R("dragOverCompleted",{insertion:t}),t&&(f?c._hideClone():c._showClone(h),h!==p&&(b(U,re?re.options.ghostClass:c.options.ghostClass,!1),b(U,u.ghostClass,!0)),re!==h&&h!==Ne.active?re=h:h===Ne.active&&re&&(re=null),p===h&&(h._ignoreWhileAnimating=l),h.animateAll((function(){R("dragOverAnimationComplete"),h._ignoreWhileAnimating=null})),h!==p&&(p.animateAll(),p._ignoreWhileAnimating=null)),(l===U&&!U.animated||l===a&&!l.animated)&&(fe=null),u.dragoverBubble||e.rootEl||l===document||(U.parentNode[I]._isOutsideThisEl(e.target),!t&&Le(e)),!u.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),v=!0}function F(){Q=A(U),te=A(U,u.draggable),$({sortable:h,name:"change",toEl:a,newIndex:Q,newDraggableIndex:te,originalEvent:e})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){p(document,"mousemove",this._onTouchMove),p(document,"touchmove",this._onTouchMove),p(document,"pointermove",this._onTouchMove),p(document,"dragover",Le),p(document,"mousemove",Le),p(document,"touchmove",Le)},_offUpEvents:function(){var e=this.el.ownerDocument;p(e,"mouseup",this._onDrop),p(e,"touchend",this._onDrop),p(e,"pointerup",this._onDrop),p(e,"touchcancel",this._onDrop),p(document,"selectstart",this)},_onDrop:function(e){var t=this.el,n=this.options;Q=A(U),te=A(U,n.draggable),V("drop",this,{evt:e}),Z=U&&U.parentNode,Q=A(U),te=A(U,n.draggable),Ne.eventCanceled||(ve=!1,be=!1,me=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),Fe(this.cloneId),Fe(this._dragStartId),this.nativeDraggable&&(p(document,"drop",this),p(t,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),u&&x(document.body,"user-select",""),x(U,"transform",""),e&&(ce&&(e.cancelable&&e.preventDefault(),!n.dropBubble&&e.stopPropagation()),W&&W.parentNode&&W.parentNode.removeChild(W),(K===Z||re&&"clone"!==re.lastPutMode)&&Y&&Y.parentNode&&Y.parentNode.removeChild(Y),U&&(this.nativeDraggable&&p(U,"dragend",this),Ie(U),U.style["will-change"]="",ce&&!ve&&b(U,re?re.options.ghostClass:this.options.ghostClass,!1),b(U,this.options.chosenClass,!1),$({sortable:this,name:"unchoose",toEl:Z,newIndex:null,newDraggableIndex:null,originalEvent:e}),K!==Z?(Q>=0&&($({rootEl:Z,name:"add",toEl:Z,fromEl:K,originalEvent:e}),$({sortable:this,name:"remove",toEl:Z,originalEvent:e}),$({rootEl:Z,name:"sort",toEl:Z,fromEl:K,originalEvent:e}),$({sortable:this,name:"sort",toEl:Z,originalEvent:e})),re&&re.save()):Q!==J&&Q>=0&&($({sortable:this,name:"update",toEl:Z,originalEvent:e}),$({sortable:this,name:"sort",toEl:Z,originalEvent:e})),Ne.active&&(null!=Q&&-1!==Q||(Q=J,te=ee),$({sortable:this,name:"end",toEl:Z,originalEvent:e}),this.save())))),this._nulling()},_nulling:function(){V("nulling",this),K=U=Z=W=G=Y=q=X=oe=ie=ce=Q=te=J=ee=fe=de=re=ne=Ne.dragged=Ne.ghost=Ne.clone=Ne.active=null,_e.forEach((function(e){e.checked=!0})),_e.length=ae=le=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":U&&(this._onDragOver(e),function(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move"),e.cancelable&&e.preventDefault()}(e));break;case"selectstart":e.preventDefault()}},toArray:function(){for(var e,t=[],n=this.el.children,r=0,o=n.length,i=this.options;r1&&(Ke.forEach((function(e){r.addAnimationState({target:e,rect:Ye?O(e):o}),D(e),e.fromRect=o,t.removeAnimationState(e)})),Ye=!1,function(e,t){Ke.forEach((function(n,r){var o=t.children[n.sortableIndex+(e?Number(r):0)];o?t.insertBefore(n,o):t.appendChild(n)}))}(!this.options.removeCloneOnHide,n))},dragOverCompleted:function(e){var t=e.sortable,n=e.isOwner,r=e.activeSortable,o=e.parentEl,i=e.putSortable,a=this.options;if(e.insertion){if(n&&r._hideClone(),qe=!1,a.animation&&Ke.length>1&&(Ye||!n&&!r.options.sort&&!i)){var l=O(Ue,!1,!0,!0);Ke.forEach((function(e){e!==Ue&&(N(e,l),o.appendChild(e))})),Ye=!0}if(!n)if(Ye||Qe(),Ke.length>1){var u=We;r._showClone(t),r.options.animation&&!We&&u&&Ge.forEach((function(e){r.addAnimationState({target:e,rect:Ze}),e.fromRect=Ze,e.thisAnimationDuration=null}))}else r._showClone(t)}},dragOverAnimationCapture:function(e){var t=e.dragRect,n=e.isOwner,r=e.activeSortable;if(Ke.forEach((function(e){e.thisAnimationDuration=null})),r.options.animation&&!n&&r.multiDrag.isMultiDrag){Ze=Object.assign({},t);var o=w(Ue,!0);Ze.top-=o.f,Ze.left-=o.e}},dragOverAnimationComplete:function(){Ye&&(Ye=!1,Qe())},drop:function(e){var t=e.originalEvent,n=e.rootEl,r=e.parentEl,o=e.sortable,i=e.dispatchSortableEvent,a=e.oldIndex,l=e.putSortable,u=l||this.sortable;if(t){var s=this.options,c=r.children;if(!Xe)if(s.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),b(Ue,s.selectedClass,!~Ke.indexOf(Ue)),~Ke.indexOf(Ue))Ke.splice(Ke.indexOf(Ue),1),Ve=null,F({sortable:o,rootEl:n,name:"deselect",targetEl:Ue,originalEvt:t});else{if(Ke.push(Ue),F({sortable:o,rootEl:n,name:"select",targetEl:Ue,originalEvt:t}),t.shiftKey&&Ve&&o.el.contains(Ve)){var f,d,p=A(Ve),h=A(Ue);if(~p&&~h&&p!==h)for(h>p?(d=p,f=h):(d=h,f=p+1);d1){var v=O(Ue),g=A(Ue,":not(."+this.options.selectedClass+")");if(!qe&&s.animation&&(Ue.thisAnimationDuration=null),u.captureAnimationState(),!qe&&(s.animation&&(Ue.fromRect=v,Ke.forEach((function(e){if(e.thisAnimationDuration=null,e!==Ue){var t=Ye?O(e):v;e.fromRect=t,u.addAnimationState({target:e,rect:t})}}))),Qe(),Ke.forEach((function(e){c[g]?r.insertBefore(e,c[g]):r.appendChild(e),g++})),a===A(Ue))){var y=!1;Ke.forEach((function(e){e.sortableIndex===A(e)||(y=!0)})),y&&i("update")}Ke.forEach((function(e){D(e)})),u.animateAll()}$e=u}(n===r||l&&"clone"!==l.lastPutMode)&&Ge.forEach((function(e){e.parentNode&&e.parentNode.removeChild(e)}))}},nullingGlobal:function(){this.isMultiDrag=Xe=!1,Ge.length=0},destroyGlobal:function(){this._deselectMultiDrag(),p(document,"pointerup",this._deselectMultiDrag),p(document,"mouseup",this._deselectMultiDrag),p(document,"touchend",this._deselectMultiDrag),p(document,"keydown",this._checkKeyDown),p(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(e){if(!(void 0!==Xe&&Xe||$e!==this.sortable||e&&g(e.target,this.options.draggable,this.sortable.el,!1)||e&&0!==e.button))for(;Ke.length;){var t=Ke[0];b(t,this.options.selectedClass,!1),Ke.shift(),F({sortable:this.sortable,rootEl:this.sortable.el,name:"deselect",targetEl:t,originalEvt:e})}},_checkKeyDown:function(e){e.key===this.options.multiDragKey&&(this.multiDragKeyDown=!0)},_checkKeyUp:function(e){e.key===this.options.multiDragKey&&(this.multiDragKeyDown=!1)}},Object.assign(e,{pluginName:"multiDrag",utils:{select:function(e){var t=e.parentNode[I];t&&t.options.multiDrag&&!~Ke.indexOf(e)&&($e&&$e!==t&&($e.multiDrag._deselectMultiDrag(),$e=t),b(e,t.options.selectedClass,!0),Ke.push(e))},deselect:function(e){var t=e.parentNode[I],n=Ke.indexOf(e);t&&t.options.multiDrag&&~n&&(b(e,t.options.selectedClass,!1),Ke.splice(n,1))}},eventProperties:function(){var e=this,t=[],n=[];return Ke.forEach((function(r){var o;t.push({multiDragElement:r,index:r.sortableIndex}),o=Ye&&r!==Ue?-1:Ye?A(r,":not(."+e.options.selectedClass+")"):A(r),n.push({multiDragElement:r,index:o})})),{items:[].concat(Ke),clones:[].concat(Ge),oldIndicies:t,newIndicies:n}},optionListeners:{multiDragKey:function(e){return"ctrl"===(e=e.toLowerCase())?e="Control":e.length>1&&(e=e.charAt(0).toUpperCase()+e.substr(1)),e}}})}),t.default=Ne},,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=d(n(1083)),o=d(n(900)),i=d(n(1033)),a=d(n(2842)),l=d(n(2843)),u=d(n(870)),s=d(n(912)),c=d(n(1649)),f=n(1032);function d(e){return e&&e.__esModule?e:{default:e}}var p=(0,r.default)({chartName:"ComposedChart",GraphicalChild:[a.default,o.default,i.default,l.default],axisComponents:[{axisType:"xAxis",AxisComp:u.default},{axisType:"yAxis",AxisComp:s.default},{axisType:"zAxis",AxisComp:c.default}],formatAxisMap:f.formatAxisMap});t.default=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=b(n(806)),o=b(n(194)),i=b(n(857)),a=function(e){if(e&&e.__esModule)return e;var t=m();if(t&&t.has(e))return t.get(e);var n={};if(null!=e){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}}n.default=e,t&&t.set(e,n);return n}(n(0)),l=b(n(1)),u=b(n(990)),s=b(n(3)),c=b(n(1082)),f=b(n(946)),d=b(n(868)),p=b(n(1030)),h=b(n(1157)),v=n(826),g=n(809),y=n(911);function m(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return m=function(){return e},e}function b(e){return e&&e.__esModule?e:{default:e}}function x(e){return(x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function w(){return(w=Object.assign||function(e){for(var t=1;ti){l=[].concat(E(n.slice(0,u)),[i-s]);break}var c=l.length%2==0?[0,a]:[a];return[].concat(E(this.constructor.repeat(n,o)),E(l),c).map((function(e){return"".concat(e,"px")})).join(", ")}},{key:"renderErrorBar",value:function(){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var e=this.props,t=e.points,n=e.xAxis,r=e.yAxis,o=e.layout,i=e.children,l=(0,g.findAllByType)(i,h.default);if(!l)return null;function u(e,t){return{x:e.x,y:e.y,value:e.value,errorVal:(0,y.getValueByDataKey)(e.payload,t)}}return l.map((function(e,i){return a.default.cloneElement(e,{key:i,data:t,xAxis:n,yAxis:r,layout:o,dataPointFormatter:u})}))}},{key:"renderDots",value:function(e,t){var n=this;if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var r=this.props,o=r.dot,i=r.points,l=r.dataKey,u=(0,g.getPresentationAttributes)(this.props),s=(0,g.getPresentationAttributes)(o),c=(0,g.filterEventAttributes)(o),f=i.map((function(e,t){var r=C({key:"dot-".concat(t),r:3},u,{},s,{},c,{value:e.value,dataKey:l,cx:e.x,cy:e.y,index:t,payload:e.payload});return n.constructor.renderDotItem(o,r)})),p={clipPath:e?"url(#clipPath-".concat(t,")"):null};return a.default.createElement(d.default,w({className:"recharts-line-dots",key:"dots"},p),f)}},{key:"renderCurveStatically",value:function(e,t,n,r){var o=this.props,i=o.type,l=o.layout,u=o.connectNulls,s=C({},(0,g.getPresentationAttributes)(this.props),{},(0,g.filterEventAttributes)(this.props),{fill:"none",className:"recharts-line-curve",clipPath:t?"url(#clipPath-".concat(n,")"):null,points:e},r,{type:i,layout:l,connectNulls:u});return a.default.createElement(c.default,w({},s,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(e,t){var n=this,r=this.props,o=r.points,i=r.strokeDasharray,l=r.isAnimationActive,s=r.animationBegin,c=r.animationDuration,f=r.animationEasing,d=r.animationId,p=r.width,h=r.height,g=this.state,y=g.prevPoints,m=g.totalLength;return a.default.createElement(u.default,{begin:s,duration:c,isActive:l,easing:f,from:{t:0},to:{t:1},key:"line-".concat(d),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(r){var a=r.t;if(y){var l=y.length/o.length,u=o.map((function(e,t){var r=Math.floor(t*l);if(y[r]){var o=y[r],i=(0,v.interpolateNumber)(o.x,e.x),u=(0,v.interpolateNumber)(o.y,e.y);return C({},e,{x:i(a),y:u(a)})}if(n.animateNewValues){var s=(0,v.interpolateNumber)(2*p,e.x),c=(0,v.interpolateNumber)(h/2,e.y);return C({},e,{x:s(a),y:c(a)})}return C({},e,{x:e.x,y:e.y})}));return n.renderCurveStatically(u,e,t)}var s,c=(0,v.interpolateNumber)(0,m)(a);if(i){var f=i.split(/[,\s]+/gim).map((function(e){return parseFloat(e)}));s=n.getStrokeDasharray(c,m,f)}else s="".concat(c,"px ").concat(m-c,"px");return n.renderCurveStatically(o,e,t,{strokeDasharray:s})}))}},{key:"renderCurve",value:function(e,t){var n=this.props,o=n.points,i=n.isAnimationActive,a=this.state,l=a.prevPoints,u=a.totalLength;return i&&o&&o.length&&(!l&&u>0||!(0,r.default)(l,o))?this.renderCurveWithAnimation(e,t):this.renderCurveStatically(o,e,t)}},{key:"render",value:function(){var e=this.props,t=e.hide,n=e.dot,r=e.points,o=e.className,l=e.xAxis,u=e.yAxis,c=e.top,f=e.left,h=e.width,v=e.height,g=e.isAnimationActive,y=e.id;if(t||!r||!r.length)return null;var m=this.state.isAnimationFinished,b=1===r.length,x=(0,s.default)("recharts-line",o),w=l&&l.allowDataOverflow||u&&u.allowDataOverflow,_=(0,i.default)(y)?this.id:y;return a.default.createElement(d.default,{className:x},w?a.default.createElement("defs",null,a.default.createElement("clipPath",{id:"clipPath-".concat(_)},a.default.createElement("rect",{x:f,y:c,width:h,height:v}))):null,!b&&this.renderCurve(w,_),this.renderErrorBar(),(b||n)&&this.renderDots(w,_),(!g||m)&&p.default.renderCallByParent(this.props,r))}}])&&S(n.prototype,l),m&&S(n,m),t}(a.PureComponent);T.displayName="Line",T.propTypes=C({},g.PRESENTATION_ATTRIBUTES,{},g.EVENT_ATTRIBUTES,{className:l.default.string,type:l.default.oneOfType([l.default.oneOf(["basis","basisClosed","basisOpen","linear","linearClosed","natural","monotoneX","monotoneY","monotone","step","stepBefore","stepAfter"]),l.default.func]),unit:l.default.oneOfType([l.default.string,l.default.number]),name:l.default.oneOfType([l.default.string,l.default.number]),yAxisId:l.default.oneOfType([l.default.string,l.default.number]),xAxisId:l.default.oneOfType([l.default.string,l.default.number]),yAxis:l.default.object,xAxis:l.default.object,legendType:l.default.oneOf(g.LEGEND_TYPES),tooltipType:l.default.oneOf(g.TOOLTIP_TYPES),layout:l.default.oneOf(["horizontal","vertical"]),connectNulls:l.default.bool,hide:l.default.bool,activeDot:l.default.oneOfType([l.default.object,l.default.element,l.default.func,l.default.bool]),dot:l.default.oneOfType([l.default.object,l.default.element,l.default.func,l.default.bool]),top:l.default.number,left:l.default.number,width:l.default.number,height:l.default.number,points:l.default.arrayOf(l.default.shape({x:l.default.number,y:l.default.number,value:l.default.value})),onAnimationStart:l.default.func,onAnimationEnd:l.default.func,isAnimationActive:l.default.bool,animateNewValues:l.default.bool,animationBegin:l.default.number,animationDuration:l.default.number,animationEasing:l.default.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),animationId:l.default.number,id:l.default.string}),T.defaultProps={xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!(0,g.isSsr)(),animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,onAnimationStart:function(){},onAnimationEnd:function(){}},T.getComposedData=function(e){var t=e.props,n=e.xAxis,r=e.yAxis,o=e.xAxisTicks,a=e.yAxisTicks,l=e.dataKey,u=e.bandSize,s=e.displayedData,c=e.offset,f=t.layout;return C({points:s.map((function(e,t){var s=(0,y.getValueByDataKey)(e,l);return"horizontal"===f?{x:(0,y.getCateCoordinateOfLine)({axis:n,ticks:o,bandSize:u,entry:e,index:t}),y:(0,i.default)(s)?null:r.scale(s),value:s,payload:e}:{x:(0,i.default)(s)?null:n.scale(s),y:(0,y.getCateCoordinateOfLine)({axis:r,ticks:a,bandSize:u,entry:e,index:t}),value:s,payload:e}})),layout:f},c)};var P=T;t.default=P},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=w(n(806)),o=w(n(194)),i=w(n(857)),a=function(e){if(e&&e.__esModule)return e;var t=x();if(t&&t.has(e))return t.get(e);var n={};if(null!=e){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}}n.default=e,t&&t.set(e,n);return n}(n(0)),l=w(n(1)),u=w(n(990)),s=w(n(3)),c=w(n(868)),f=w(n(1030)),d=n(809),p=w(n(1649)),h=w(n(1082)),v=w(n(1509)),g=w(n(1157)),y=w(n(998)),m=n(826),b=n(911);function x(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return x=function(){return e},e}function w(e){return e&&e.__esModule?e:{default:e}}function _(e){return(_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function C(){return(C=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:[],n=[];return(0,a.default)(t,(function(t){Array.isArray(t)?e(t).map((function(e){return n.push(e)})):(0,i.default)(t)?(0,o.default)(t,(function(e,t){!0===e&&n.push(t),n.push(t+"-"+e)})):(0,r.default)(t)&&n.push(t)})),n};t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mergeClasses=void 0;var r=a(n(1114)),o=a(n(135)),i=Object.assign||function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:[],n=e.default&&(0,o.default)(e.default)||{};return t.map((function(t){var o=e[t];return o&&(0,r.default)(o,(function(e,t){n[t]||(n[t]={}),n[t]=i({},n[t],o[t])})),t})),n};t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.autoprefix=void 0;var r,o=n(1114),i=(r=o)&&r.__esModule?r:{default:r},a=Object.assign||function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:"span";return function(n){function r(){var n,i,s;l(this,r);for(var c=arguments.length,f=Array(c),d=0;d1&&void 0!==arguments[1]?arguments[1]:"span";return function(n){function r(){var n,i,s;l(this,r);for(var c=arguments.length,f=Array(c),d=0;d1&&void 0!==arguments[1])||arguments[1];n[e]=t};return 0===e&&r("first-child"),e===t-1&&r("last-child"),(0===e||e%2==0)&&r("even"),1===Math.abs(e%2)&&r("odd"),r("nth-child",e),n}},function(e,t,n){var r;!function(o){var i=/^\s+/,a=/\s+$/,l=0,u=o.round,s=o.min,c=o.max,f=o.random;function d(e,t){if(t=t||{},(e=e||"")instanceof d)return e;if(!(this instanceof d))return new d(e,t);var n=function(e){var t={r:0,g:0,b:0},n=1,r=null,l=null,u=null,f=!1,d=!1;"string"==typeof e&&(e=function(e){e=e.replace(i,"").replace(a,"").toLowerCase();var t,n=!1;if(j[e])e=j[e],n=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};if(t=$.rgb.exec(e))return{r:t[1],g:t[2],b:t[3]};if(t=$.rgba.exec(e))return{r:t[1],g:t[2],b:t[3],a:t[4]};if(t=$.hsl.exec(e))return{h:t[1],s:t[2],l:t[3]};if(t=$.hsla.exec(e))return{h:t[1],s:t[2],l:t[3],a:t[4]};if(t=$.hsv.exec(e))return{h:t[1],s:t[2],v:t[3]};if(t=$.hsva.exec(e))return{h:t[1],s:t[2],v:t[3],a:t[4]};if(t=$.hex8.exec(e))return{r:N(t[1]),g:N(t[2]),b:N(t[3]),a:H(t[4]),format:n?"name":"hex8"};if(t=$.hex6.exec(e))return{r:N(t[1]),g:N(t[2]),b:N(t[3]),format:n?"name":"hex"};if(t=$.hex4.exec(e))return{r:N(t[1]+""+t[1]),g:N(t[2]+""+t[2]),b:N(t[3]+""+t[3]),a:H(t[4]+""+t[4]),format:n?"name":"hex8"};if(t=$.hex3.exec(e))return{r:N(t[1]+""+t[1]),g:N(t[2]+""+t[2]),b:N(t[3]+""+t[3]),format:n?"name":"hex"};return!1}(e));"object"==typeof e&&(U(e.r)&&U(e.g)&&U(e.b)?(p=e.r,h=e.g,v=e.b,t={r:255*L(p,255),g:255*L(h,255),b:255*L(v,255)},f=!0,d="%"===String(e.r).substr(-1)?"prgb":"rgb"):U(e.h)&&U(e.s)&&U(e.v)?(r=I(e.s),l=I(e.v),t=function(e,t,n){e=6*L(e,360),t=L(t,100),n=L(n,100);var r=o.floor(e),i=e-r,a=n*(1-t),l=n*(1-i*t),u=n*(1-(1-i)*t),s=r%6;return{r:255*[n,l,a,a,u,n][s],g:255*[u,n,n,l,a,a][s],b:255*[a,a,u,n,n,l][s]}}(e.h,r,l),f=!0,d="hsv"):U(e.h)&&U(e.s)&&U(e.l)&&(r=I(e.s),u=I(e.l),t=function(e,t,n){var r,o,i;function a(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}if(e=L(e,360),t=L(t,100),n=L(n,100),0===t)r=o=i=n;else{var l=n<.5?n*(1+t):n+t-n*t,u=2*n-l;r=a(u,l,e+1/3),o=a(u,l,e),i=a(u,l,e-1/3)}return{r:255*r,g:255*o,b:255*i}}(e.h,r,u),f=!0,d="hsl"),e.hasOwnProperty("a")&&(n=e.a));var p,h,v;return n=P(n),{ok:f,format:e.format||d,r:s(255,c(t.r,0)),g:s(255,c(t.g,0)),b:s(255,c(t.b,0)),a:n}}(e);this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=u(100*this._a)/100,this._format=t.format||n.format,this._gradientType=t.gradientType,this._r<1&&(this._r=u(this._r)),this._g<1&&(this._g=u(this._g)),this._b<1&&(this._b=u(this._b)),this._ok=n.ok,this._tc_id=l++}function p(e,t,n){e=L(e,255),t=L(t,255),n=L(n,255);var r,o,i=c(e,t,n),a=s(e,t,n),l=(i+a)/2;if(i==a)r=o=0;else{var u=i-a;switch(o=l>.5?u/(2-i-a):u/(i+a),i){case e:r=(t-n)/u+(t>1)+720)%360;--t;)r.h=(r.h+o)%360,i.push(d(r));return i}function k(e,t){t=t||6;for(var n=d(e).toHsv(),r=n.h,o=n.s,i=n.v,a=[],l=1/t;t--;)a.push(d({h:r,s:o,v:i})),i=(i+l)%1;return a}d.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,n,r=this.toRgb();return e=r.r/255,t=r.g/255,n=r.b/255,.2126*(e<=.03928?e/12.92:o.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:o.pow((t+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:o.pow((n+.055)/1.055,2.4))},setAlpha:function(e){return this._a=P(e),this._roundA=u(100*this._a)/100,this},toHsv:function(){var e=h(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=h(this._r,this._g,this._b),t=u(360*e.h),n=u(100*e.s),r=u(100*e.v);return 1==this._a?"hsv("+t+", "+n+"%, "+r+"%)":"hsva("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHsl:function(){var e=p(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=p(this._r,this._g,this._b),t=u(360*e.h),n=u(100*e.s),r=u(100*e.l);return 1==this._a?"hsl("+t+", "+n+"%, "+r+"%)":"hsla("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHex:function(e){return v(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,t,n,r,o){var i=[D(u(e).toString(16)),D(u(t).toString(16)),D(u(n).toString(16)),D(R(r))];if(o&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)&&i[3].charAt(0)==i[3].charAt(1))return i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0);return i.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:u(this._r),g:u(this._g),b:u(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+u(this._r)+", "+u(this._g)+", "+u(this._b)+")":"rgba("+u(this._r)+", "+u(this._g)+", "+u(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:u(100*L(this._r,255))+"%",g:u(100*L(this._g,255))+"%",b:u(100*L(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+u(100*L(this._r,255))+"%, "+u(100*L(this._g,255))+"%, "+u(100*L(this._b,255))+"%)":"rgba("+u(100*L(this._r,255))+"%, "+u(100*L(this._g,255))+"%, "+u(100*L(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(T[v(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+g(this._r,this._g,this._b,this._a),n=t,r=this._gradientType?"GradientType = 1, ":"";if(e){var o=d(e);n="#"+g(o._r,o._g,o._b,o._a)}return"progid:DXImageTransform.Microsoft.gradient("+r+"startColorstr="+t+",endColorstr="+n+")"},toString:function(e){var t=!!e;e=e||this._format;var n=!1,r=this._a<1&&this._a>=0;return t||!r||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return d(this.toString())},_applyModification:function(e,t){var n=e.apply(null,[this].concat([].slice.call(t)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(x,arguments)},brighten:function(){return this._applyModification(w,arguments)},darken:function(){return this._applyModification(_,arguments)},desaturate:function(){return this._applyModification(y,arguments)},saturate:function(){return this._applyModification(m,arguments)},greyscale:function(){return this._applyModification(b,arguments)},spin:function(){return this._applyModification(C,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(A,arguments)},complement:function(){return this._applyCombination(O,arguments)},monochromatic:function(){return this._applyCombination(k,arguments)},splitcomplement:function(){return this._applyCombination(S,arguments)},triad:function(){return this._applyCombination(E,arguments)},tetrad:function(){return this._applyCombination(M,arguments)}},d.fromRatio=function(e,t){if("object"==typeof e){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]="a"===r?e[r]:I(e[r]));e=n}return d(e,t)},d.equals=function(e,t){return!(!e||!t)&&d(e).toRgbString()==d(t).toRgbString()},d.random=function(){return d.fromRatio({r:f(),g:f(),b:f()})},d.mix=function(e,t,n){n=0===n?0:n||50;var r=d(e).toRgb(),o=d(t).toRgb(),i=n/100;return d({r:(o.r-r.r)*i+r.r,g:(o.g-r.g)*i+r.g,b:(o.b-r.b)*i+r.b,a:(o.a-r.a)*i+r.a})},d.readability=function(e,t){var n=d(e),r=d(t);return(o.max(n.getLuminance(),r.getLuminance())+.05)/(o.min(n.getLuminance(),r.getLuminance())+.05)},d.isReadable=function(e,t,n){var r,o,i=d.readability(e,t);switch(o=!1,(r=function(e){var t,n;t=((e=e||{level:"AA",size:"small"}).level||"AA").toUpperCase(),n=(e.size||"small").toLowerCase(),"AA"!==t&&"AAA"!==t&&(t="AA");"small"!==n&&"large"!==n&&(n="small");return{level:t,size:n}}(n)).level+r.size){case"AAsmall":case"AAAlarge":o=i>=4.5;break;case"AAlarge":o=i>=3;break;case"AAAsmall":o=i>=7}return o},d.mostReadable=function(e,t,n){var r,o,i,a,l=null,u=0;o=(n=n||{}).includeFallbackColors,i=n.level,a=n.size;for(var s=0;su&&(u=r,l=d(t[s]));return d.isReadable(e,l,{level:i,size:a})||!o?l:(n.includeFallbackColors=!1,d.mostReadable(e,["#fff","#000"],n))};var j=d.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},T=d.hexNames=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}(j);function P(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function L(e,t){(function(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"==typeof e&&-1!=e.indexOf("%")}(e);return e=s(t,c(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),o.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function z(e){return s(1,c(0,e))}function N(e){return parseInt(e,16)}function D(e){return 1==e.length?"0"+e:""+e}function I(e){return e<=1&&(e=100*e+"%"),e}function R(e){return o.round(255*parseFloat(e)).toString(16)}function H(e){return N(e)/255}var B,F,V,$=(F="[\\s|\\(]+("+(B="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+B+")[,|\\s]+("+B+")\\s*\\)?",V="[\\s|\\(]+("+B+")[,|\\s]+("+B+")[,|\\s]+("+B+")[,|\\s]+("+B+")\\s*\\)?",{CSS_UNIT:new RegExp(B),rgb:new RegExp("rgb"+F),rgba:new RegExp("rgba"+V),hsl:new RegExp("hsl"+F),hsla:new RegExp("hsla"+V),hsv:new RegExp("hsv"+F),hsva:new RegExp("hsva"+V),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function U(e){return!!$.CSS_UNIT.exec(e)}e.exports?e.exports=d:void 0===(r=function(){return d}.call(t,n,t,e))||(e.exports=r)}(Math)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["fill","width","height","style"]);return a.default.createElement("svg",o({viewBox:"0 0 24 24",style:o({fill:n,width:i,height:u},c)},f),a.default.createElement("path",{d:"M12,18.17L8.83,15L7.42,16.41L12,21L16.59,16.41L15.17,15M12,5.83L15.17,9L16.58,7.59L12,3L7.41,7.59L8.83,9L12,5.83Z"}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["fill","width","height","style"]);return a.default.createElement("svg",o({viewBox:"0 0 24 24",style:o({fill:n,width:i,height:u},c)},f),a.default.createElement("path",{d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"}))}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(this.props,[]);return function(e){c.forEach((function(t){return delete e[t]}))}(o),o.className=this.props.inputClassName,o.id=this.state.inputId,o.style=n,a.default.createElement("div",{className:this.props.className,style:t},this.renderStyles(),a.default.createElement("input",r({},o,{ref:this.inputRef})),a.default.createElement("div",{ref:this.sizerRef,style:s},e),this.props.placeholder?a.default.createElement("div",{ref:this.placeHolderSizerRef,style:s},this.props.placeholder):null)}}]),t}(i.Component);h.propTypes={className:l.default.string,defaultValue:l.default.any,extraWidth:l.default.oneOfType([l.default.number,l.default.string]),id:l.default.string,injectStyles:l.default.bool,inputClassName:l.default.string,inputRef:l.default.func,inputStyle:l.default.object,minWidth:l.default.oneOfType([l.default.number,l.default.string]),onAutosize:l.default.func,onChange:l.default.func,placeholder:l.default.string,placeholderIsMinWidth:l.default.bool,style:l.default.object,value:l.default.any},h.defaultProps={minWidth:1,injectStyles:!0},t.default=h},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){var r=n(163);e.exports=function(e){return"number"==typeof e?e:r(e)?NaN:+e}},,,,,,,function(e,t,n){var r=n(207),o=n(335),i=n(119);e.exports=function(e,t){var n={};return t=i(t,3),o(e,(function(e,o,i){r(n,t(e,o,i),e)})),n}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){var r=n(121),o=n(495),i=n(253),a=n(496),l=n(449),u=i((function(e){var t=l(e),n=r(e,a);return(t="function"==typeof t?t:void 0)&&n.pop(),n.length&&n[0]===e[0]?o(n,void 0,t):[]}));e.exports=u},function(e,t,n){var r=n(330),o=n(119),i=n(253),a=n(475),l=n(333),u=n(449),s=i((function(e){var t=u(e);return l(t)&&(t=void 0),a(r(e,1,l,!0),o(t,2))}));e.exports=s},,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CopyToClipboard=void 0;var r=i(n(0)),o=i(n(3089));function i(e){return e&&e.__esModule?e:{default:e}}function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){},l=e,u=n,f=r;if("function"==typeof u&&(f=u,u={}),!this.rules||0===Object.keys(this.rules).length)return f&&f(),Promise.resolve();function d(e){var t,n,r=void 0,o=[],i={};for(r=0;r0&&void 0!==arguments[0]?arguments[0]:[],s=i;if(Array.isArray(s)||(s=[s]),!u.suppressWarning&&s.length&&c.warning("async-validator:",s),s.length&&n.message&&(s=[].concat(n.message)),s=s.map((0,a.complementError)(n)),u.first&&s.length)return m[n.field]=1,t(s);if(r){if(n.required&&!e.value)return s=n.message?[].concat(n.message).map((0,a.complementError)(n)):u.error?[u.error(n,(0,a.format)(u.messages.required,n.field))]:[],t(s);var f={};if(n.defaultField)for(var d in e.value)e.value.hasOwnProperty(d)&&(f[d]=n.defaultField);for(var p in f=o({},f,e.rule.fields))if(f.hasOwnProperty(p)){var h=Array.isArray(f[p])?f[p]:[f[p]];f[p]=h.map(l.bind(null,p))}var v=new c(f);v.messages(u.messages),e.rule.options&&(e.rule.options.messages=u.messages,e.rule.options.error=u.error),v.validate(e.value,e.rule.options||u,(function(e){var n=[];s&&s.length&&n.push.apply(n,s),e&&e.length&&n.push.apply(n,e),t(n.length?n:null)}))}else t(s)}r=r&&(n.required||!n.required&&e.value),n.field=e.field;var f=void 0;n.asyncValidator?f=n.asyncValidator(n,e.value,s,e.source,u):n.validator&&(!0===(f=n.validator(n,e.value,s,e.source,u))?s():!1===f?s(n.message||n.field+" fails"):f instanceof Array?s(f):f instanceof Error&&s(f.message)),f&&f.then&&f.then((function(){return s()}),(function(e){return s(e)}))}),(function(e){d(e)}))},getType:function(e){if(void 0===e.type&&e.pattern instanceof RegExp&&(e.type="pattern"),"function"!=typeof e.validator&&e.type&&!u.default.hasOwnProperty(e.type))throw new Error((0,a.format)("Unknown rule type %s",e.type));return e.type||"string"},getValidationMethod:function(e){if("function"==typeof e.validator)return e.validator;var t=Object.keys(e),n=t.indexOf("message");return-1!==n&&t.splice(n,1),1===t.length&&"required"===t[0]?u.default.required:u.default[this.getType(e)]||!1}},c.register=function(e,t){if("function"!=typeof t)throw new Error("Cannot register a validator by type, validator is not a function");u.default[e]=t},c.warning=a.warning,c.messages=s.messages,t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=y(n(3158)),o=y(n(3164)),i=y(n(3165)),a=y(n(3166)),l=y(n(3167)),u=y(n(3168)),s=y(n(3169)),c=y(n(3170)),f=y(n(3171)),d=y(n(3172)),p=y(n(3173)),h=y(n(3174)),v=y(n(3175)),g=y(n(3176));function y(e){return e&&e.__esModule?e:{default:e}}t.default={string:r.default,method:o.default,number:i.default,boolean:a.default,regexp:l.default,integer:u.default,float:s.default,array:c.default,object:f.default,enum:d.default,pattern:p.default,date:h.default,url:g.default,hex:g.default,email:g.default,required:v.default}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(889),i=(r=o)&&r.__esModule?r:{default:r},a=n(848);t.default=function(e,t,n,r,o){var l=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if((0,a.isEmptyValue)(t,"string")&&!e.required)return n();i.default.required(e,t,r,l,o,"string"),(0,a.isEmptyValue)(t,"string")||(i.default.type(e,t,r,l,o),i.default.range(e,t,r,l,o),i.default.pattern(e,t,r,l,o),!0===e.whitespace&&i.default.whitespace(e,t,r,l,o))}n(l)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(848));t.default=function(e,t,n,o,i){(/^\s+$/.test(t)||""===t)&&o.push(r.format(i.messages.whitespace,e.fullField))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(848)),a=n(1723),l=(r=a)&&r.__esModule?r:{default:r};var u={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,url:new RegExp("^(?!mailto:)(?:(?:http|https|ftp)://|//)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$","i"),hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},s={integer:function(e){return s.number(e)&&parseInt(e,10)===e},float:function(e){return s.number(e)&&!s.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch(e){return!1}},date:function(e){return"function"==typeof e.getTime&&"function"==typeof e.getMonth&&"function"==typeof e.getYear},number:function(e){return!isNaN(e)&&"number"==typeof e},object:function(e){return"object"===(void 0===e?"undefined":o(e))&&!s.array(e)},method:function(e){return"function"==typeof e},email:function(e){return"string"==typeof e&&!!e.match(u.email)&&e.length<255},url:function(e){return"string"==typeof e&&!!e.match(u.url)},hex:function(e){return"string"==typeof e&&!!e.match(u.hex)}};t.default=function(e,t,n,r,a){if(e.required&&void 0===t)(0,l.default)(e,t,n,r,a);else{var u=e.type;["integer","float","array","regexp","object","method","email","number","date","url","hex"].indexOf(u)>-1?s[u](t)||r.push(i.format(a.messages.types[u],e.fullField,e.type)):u&&(void 0===t?"undefined":o(t))!==e.type&&r.push(i.format(a.messages.types[u],e.fullField,e.type))}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(848));t.default=function(e,t,n,o,i){var a="number"==typeof e.len,l="number"==typeof e.min,u="number"==typeof e.max,s=t,c=null,f="number"==typeof t,d="string"==typeof t,p=Array.isArray(t);if(f?c="number":d?c="string":p&&(c="array"),!c)return!1;p&&(s=t.length),d&&(s=t.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"_").length),a?s!==e.len&&o.push(r.format(i.messages[c].len,e.fullField,e.len)):l&&!u&&se.max?o.push(r.format(i.messages[c].max,e.fullField,e.max)):l&&u&&(se.max)&&o.push(r.format(i.messages[c].range,e.fullField,e.min,e.max))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(848));t.default=function(e,t,n,o,i){e.enum=Array.isArray(e.enum)?e.enum:[],-1===e.enum.indexOf(t)&&o.push(r.format(i.messages.enum,e.fullField,e.enum.join(", ")))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(848));t.default=function(e,t,n,o,i){if(e.pattern)if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(t)||o.push(r.format(i.messages.pattern.mismatch,e.fullField,t,e.pattern));else if("string"==typeof e.pattern){new RegExp(e.pattern).test(t)||o.push(r.format(i.messages.pattern.mismatch,e.fullField,t,e.pattern))}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(889),i=(r=o)&&r.__esModule?r:{default:r},a=n(848);t.default=function(e,t,n,r,o){var l=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if((0,a.isEmptyValue)(t)&&!e.required)return n();i.default.required(e,t,r,l,o),void 0!==t&&i.default.type(e,t,r,l,o)}n(l)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(889),i=(r=o)&&r.__esModule?r:{default:r},a=n(848);t.default=function(e,t,n,r,o){var l=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(""===t&&(t=void 0),(0,a.isEmptyValue)(t)&&!e.required)return n();i.default.required(e,t,r,l,o),void 0!==t&&(i.default.type(e,t,r,l,o),i.default.range(e,t,r,l,o))}n(l)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(848),i=n(889),a=(r=i)&&r.__esModule?r:{default:r};t.default=function(e,t,n,r,i){var l=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if((0,o.isEmptyValue)(t)&&!e.required)return n();a.default.required(e,t,r,l,i),void 0!==t&&a.default.type(e,t,r,l,i)}n(l)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(889),i=(r=o)&&r.__esModule?r:{default:r},a=n(848);t.default=function(e,t,n,r,o){var l=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if((0,a.isEmptyValue)(t)&&!e.required)return n();i.default.required(e,t,r,l,o),(0,a.isEmptyValue)(t)||i.default.type(e,t,r,l,o)}n(l)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(889),i=(r=o)&&r.__esModule?r:{default:r},a=n(848);t.default=function(e,t,n,r,o){var l=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if((0,a.isEmptyValue)(t)&&!e.required)return n();i.default.required(e,t,r,l,o),void 0!==t&&(i.default.type(e,t,r,l,o),i.default.range(e,t,r,l,o))}n(l)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(889),i=(r=o)&&r.__esModule?r:{default:r},a=n(848);t.default=function(e,t,n,r,o){var l=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if((0,a.isEmptyValue)(t)&&!e.required)return n();i.default.required(e,t,r,l,o),void 0!==t&&(i.default.type(e,t,r,l,o),i.default.range(e,t,r,l,o))}n(l)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(889),i=(r=o)&&r.__esModule?r:{default:r},a=n(848);t.default=function(e,t,n,r,o){var l=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if((0,a.isEmptyValue)(t,"array")&&!e.required)return n();i.default.required(e,t,r,l,o,"array"),(0,a.isEmptyValue)(t,"array")||(i.default.type(e,t,r,l,o),i.default.range(e,t,r,l,o))}n(l)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(889),i=(r=o)&&r.__esModule?r:{default:r},a=n(848);t.default=function(e,t,n,r,o){var l=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if((0,a.isEmptyValue)(t)&&!e.required)return n();i.default.required(e,t,r,l,o),void 0!==t&&i.default.type(e,t,r,l,o)}n(l)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(889),i=(r=o)&&r.__esModule?r:{default:r},a=n(848);t.default=function(e,t,n,r,o){var l=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if((0,a.isEmptyValue)(t)&&!e.required)return n();i.default.required(e,t,r,l,o),t&&i.default.enum(e,t,r,l,o)}n(l)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(889),i=(r=o)&&r.__esModule?r:{default:r},a=n(848);t.default=function(e,t,n,r,o){var l=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if((0,a.isEmptyValue)(t,"string")&&!e.required)return n();i.default.required(e,t,r,l,o),(0,a.isEmptyValue)(t,"string")||i.default.pattern(e,t,r,l,o)}n(l)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(889),i=(r=o)&&r.__esModule?r:{default:r},a=n(848);t.default=function(e,t,n,r,o){var l=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if((0,a.isEmptyValue)(t)&&!e.required)return n();if(i.default.required(e,t,r,l,o),!(0,a.isEmptyValue)(t)){var u=void 0;u="number"==typeof t?new Date(t):t,i.default.type(e,u,r,l,o),u&&i.default.range(e,u.getTime(),r,l,o)}}n(l)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=n(889),a=(r=i)&&r.__esModule?r:{default:r};t.default=function(e,t,n,r,i){var l=[],u=Array.isArray(t)?"array":void 0===t?"undefined":o(t);a.default.required(e,t,r,l,i,u),n(l)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(889),i=(r=o)&&r.__esModule?r:{default:r},a=n(848);t.default=function(e,t,n,r,o){var l=e.type,u=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if((0,a.isEmptyValue)(t,l)&&!e.required)return n();i.default.required(e,t,r,u,o,l),(0,a.isEmptyValue)(t,l)||i.default.type(e,t,r,u,o)}n(u)}},function(e,t,n){"use strict";function r(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}Object.defineProperty(t,"__esModule",{value:!0}),t.newMessages=r;t.messages=r()},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){var r=n(1494),o=n(253),i=n(333),a=o((function(e,t){return i(e)?r(e,t):[]}));e.exports=a},,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";var r=n(843);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Columns",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"Column",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"Level",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"LevelLeft",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"LevelRight",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"LevelItem",{enumerable:!0,get:function(){return s.default}});var o=r(n(3298)),i=r(n(3299)),a=r(n(3300)),l=r(n(3301)),u=r(n(3302)),s=r(n(3303))},function(e,t,n){"use strict";var r=n(843);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(1063)),i=(0,r(n(1064)).default)({componentCls:"columns"})(o.default);t.default=i},function(e,t,n){"use strict";var r=n(843);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(1063)),i=(0,r(n(1064)).default)({componentCls:"column"})(o.default);t.default=i},function(e,t,n){"use strict";var r=n(843);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(1063)),i=(0,r(n(1064)).default)({componentCls:"level"})(o.default);t.default=i},function(e,t,n){"use strict";var r=n(843);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(1063)),i=(0,r(n(1064)).default)({componentCls:"level-left"})(o.default);t.default=i},function(e,t,n){"use strict";var r=n(843);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(1063)),i=(0,r(n(1064)).default)({componentCls:"level-right"})(o.default);t.default=i},function(e,t,n){"use strict";var r=n(843);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(1063)),i=(0,r(n(1064)).default)({componentCls:"level-item"})(o.default);t.default=i},,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";var r=n(1002),o=n(843);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(1105)),a=o(n(1172)),l=o(n(1003)),u=o(n(1004)),s=o(n(1005)),c=o(n(1006)),f=o(n(1007)),d=o(n(1046)),p=r(n(0)),h=o(n(1)),v=o(n(3)),g=n(2),y=o(n(3330));function m(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,f.default)(e);if(t){var o=(0,f.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,c.default)(this,n)}}var b={small:20,medium:32,large:48},x=function(e){(0,s.default)(n,e);var t=m(n);function n(e){var r;return(0,l.default)(this,n),(r=t.call(this,e)).state={spinning:e.spinning},r}return(0,u.default)(n,[{key:"isNestedPattern",value:function(){return this.props.children}},{key:"renderIndicator",value:function(){var e=this.props.size;return p.default.createElement("span",{className:"spin-dot spin-dot-spin"},p.default.createElement(y.default,{name:"loading",type:"dark",size:(0,g.isNumber)(e)?e:b[e],style:{display:"block",margin:"auto"}}))}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.size,r=e.children,o=e.wrapperClassName,l=(0,a.default)(e,["className","size","children","wrapperClassName"]),u=this.state.spinning,s=(0,v.default)("spin",{"spin-sm":"small"===n,"spin-lg":"large"===n,"spin-spinning":u},t),c=(0,g.omit)(l,["spinning"]),f=p.default.createElement("div",(0,i.default)({},c,{className:s}),this.renderIndicator());if(this.isNestedPattern()){var d="spin-nested-loading";o&&(d+=" ".concat(o));var h=(0,v.default)({"spin-container":!0,"spin-blur":u});return p.default.createElement("div",(0,i.default)({},c,{className:d}),u&&p.default.createElement("div",{key:"loading"},f),p.default.createElement("div",{className:h,key:"container"},r))}return u&&f}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.spinning,r=e.spinning;return n!==r?{spinning:r}:null}}]),n}(p.Component);(0,d.default)(x,"propTypes",{className:h.default.string,size:h.default.oneOfType([h.default.string,h.default.number]),spinning:h.default.bool,children:h.default.element}),(0,d.default)(x,"defaultProps",{spinning:!0,size:"medium"});var w=x;t.default=w},function(e,t,n){"use strict";var r=n(1002),o=n(843);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(1003)),a=o(n(1004)),l=o(n(1005)),u=o(n(1006)),s=o(n(1007)),c=o(n(1046)),f=r(n(0)),d=o(n(1)),p=o(n(3)),h=n(2);function v(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,s.default)(e);if(t){var o=(0,s.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,u.default)(this,n)}}var g=function(e){(0,l.default)(n,e);var t=v(n);function n(){return(0,i.default)(this,n),t.apply(this,arguments)}return(0,a.default)(n,[{key:"render",value:function(){var e,t=this.props,n=t.prefix,r=t.name,o=t.type,i=t.size,a=t.className,l=t.onClick,u=t.style,s=t.clickable,d=t.changeable,v=t.disabled,g=u;return(0,h.isNumber)(i)&&(g=Object.assign({},u,{width:"".concat(i,"px"),height:"".concat(i,"px")})),f.default.createElement("span",{style:g,className:(0,p.default)("icon",(e={},(0,c.default)(e,"is-".concat(i),!(0,h.isNumber)(i)),(0,c.default)(e,"icon-clickable",s),(0,c.default)(e,"icon-changeable",d&&!v),(0,c.default)(e,"icon-disabled",v),e),a),onClick:l},f.default.createElement("svg",{className:"".concat(n," ").concat(n,"-").concat(r," ").concat(n,"-").concat(o," svg-loading"),xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48"},f.default.createElement("defs",null,f.default.createElement("linearGradient",{id:"icon-line-spinner-a",x1:"4.167%",x2:"4.167%",y1:"0%",y2:"100%"},f.default.createElement("stop",{offset:"0%",stopColor:"#E4EBF1"}),f.default.createElement("stop",{offset:"100%",stopColor:"#86919C"})),f.default.createElement("linearGradient",{id:"icon-line-spinner-b",x1:"95.833%",x2:"95.833%",y1:"0%",y2:"100%"},f.default.createElement("stop",{offset:"0%",stopColor:"#324558"}),f.default.createElement("stop",{offset:"100%",stopColor:"#86919C"}))),f.default.createElement("g",{fillRule:"evenodd",fill:"none"},f.default.createElement("path",{d:"M24,0 C37.254834,-2.4348735e-15 48,10.745166 48,24 C48,37.254834 37.254834,48 24,48 C10.745166,48 1.623249e-15,37.254834 0,24 C-1.623249e-15,10.745166 10.745166,2.4348735e-15 24,0 Z"}),f.default.createElement("path",{fill:"url(#icon-line-spinner-a)",d:"M24,48 L24,46 C36.1502645,46 46,36.1502645 46,24 C46,12.1554065 36.6396211,2.49704654 24.9125246,2.01858157 L24.9954814,0.0202708022 C37.7886803,0.542235439 48,11.078627 48,24 C48,37.254834 37.254834,48 24,48 Z"}),f.default.createElement("path",{fill:"url(#icon-line-spinner-b)",d:"M24,46 L24,48 C10.745166,48 0,37.254834 0,24.0000001 C0,11.0786271 10.2113197,0.542235649 23.0045134,0.0202712255 L23.0874754,2.01858177 C11.3603789,2.49704674 2,12.1554066 2,24.0000001 C2,36.1502645 11.8497355,46 24,46 Z"}))))}}]),n}(f.PureComponent);(0,c.default)(g,"propTypes",{prefix:d.default.string,name:d.default.string.isRequired,type:d.default.string,size:d.default.oneOfType([d.default.string,d.default.number]),className:d.default.string,style:d.default.object,changeable:d.default.bool,clickable:d.default.bool,onClick:d.default.func,disabled:d.default.bool}),(0,c.default)(g,"defaultProps",{type:"dark",size:"small",prefix:"qicon",style:{},changeable:!1,clickable:!1,disabled:!1,onClick:h.noop});var y=g;t.default=y},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";e.exports=function(){}},function(e,t,n){"use strict";var r=n(3455),o=Math.abs,i=Math.floor;e.exports=function(e){return isNaN(e)?0:0!==(e=Number(e))&&isFinite(e)?r(e)*i(o(e)):e}},function(e,t,n){"use strict";e.exports=n(3456)()?Math.sign:n(3457)},function(e,t,n){"use strict";e.exports=function(){var e=Math.sign;return"function"==typeof e&&(1===e(10)&&-1===e(-20))}},function(e,t,n){"use strict";e.exports=function(e){return e=Number(e),isNaN(e)||0===e?e:e>0?1:-1}},function(e,t,n){"use strict";var r=n(986),o=n(1203),i=n(1019),a=n(3460),l=n(1759);e.exports=function e(t){var n,u,s;if(r(t),(n=Object(arguments[1])).async&&n.promise)throw new Error("Options 'async' and 'promise' cannot be used together");return hasOwnProperty.call(t,"__memoized__")&&!n.force?t:(u=l(n.length,t.length,n.async&&i.async),s=a(t,u,n),o(i,(function(e,t){n[t]&&e(n[t],s,n)})),e.__profiler__&&e.__profiler__(s),s.updateEnv(),s.memoized)}},function(e,t,n){"use strict";var r=n(986),o=n(1067),i=Function.prototype.bind,a=Function.prototype.call,l=Object.keys,u=Object.prototype.propertyIsEnumerable;e.exports=function(e,t){return function(n,s){var c,f=arguments[2],d=arguments[3];return n=Object(o(n)),r(s),c=l(n),d&&c.sort("function"==typeof d?i.call(d,n):void 0),"function"!=typeof e&&(e=c[e]),a.call(e,c,(function(e,r){return u.call(n,e)?a.call(s,f,n[e],e,n,r):t}))}}},function(e,t,n){"use strict";var r=n(3461),o=n(1761),i=n(1020),a=n(3475).methods,l=n(3476),u=n(3492),s=Function.prototype.apply,c=Function.prototype.call,f=Object.create,d=Object.defineProperties,p=a.on,h=a.emit;e.exports=function(e,t,n){var a,v,g,y,m,b,x,w,_,C,O,E,M,S,A,k=f(null);return v=!1!==t?t:isNaN(e.length)?1:e.length,n.normalizer&&(C=u(n.normalizer),g=C.get,y=C.set,m=C.delete,b=C.clear),null!=n.resolvers&&(A=l(n.resolvers)),S=g?o((function(t){var n,o,i=arguments;if(A&&(i=A(i)),null!==(n=g(i))&&hasOwnProperty.call(k,n))return O&&a.emit("get",n,i,this),k[n];if(o=1===i.length?c.call(e,this,i[0]):s.call(e,this,i),null===n){if(null!==(n=g(i)))throw r("Circular invocation","CIRCULAR_INVOCATION");n=y(i)}else if(hasOwnProperty.call(k,n))throw r("Circular invocation","CIRCULAR_INVOCATION");return k[n]=o,E&&a.emit("set",n,null,o),o}),v):0===t?function(){var t;if(hasOwnProperty.call(k,"data"))return O&&a.emit("get","data",arguments,this),k.data;if(t=arguments.length?s.call(e,this,arguments):c.call(e,this),hasOwnProperty.call(k,"data"))throw r("Circular invocation","CIRCULAR_INVOCATION");return k.data=t,E&&a.emit("set","data",null,t),t}:function(t){var n,o,i=arguments;if(A&&(i=A(arguments)),o=String(i[0]),hasOwnProperty.call(k,o))return O&&a.emit("get",o,i,this),k[o];if(n=1===i.length?c.call(e,this,i[0]):s.call(e,this,i),hasOwnProperty.call(k,o))throw r("Circular invocation","CIRCULAR_INVOCATION");return k[o]=n,E&&a.emit("set",o,null,n),n},a={original:e,memoized:S,profileName:n.profileName,get:function(e){return A&&(e=A(e)),g?g(e):String(e[0])},has:function(e){return hasOwnProperty.call(k,e)},delete:function(e){var t;hasOwnProperty.call(k,e)&&(m&&m(e),t=k[e],delete k[e],M&&a.emit("delete",e,t))},clear:function(){var e=k;b&&b(),k=f(null),a.emit("clear",e)},on:function(e,t){return"get"===e?O=!0:"set"===e?E=!0:"delete"===e&&(M=!0),p.call(this,e,t)},emit:h,updateEnv:function(){e=a.original}},x=g?o((function(e){var t,n=arguments;A&&(n=A(n)),null!==(t=g(n))&&a.delete(t)}),v):0===t?function(){return a.delete("data")}:function(e){return A&&(e=A(arguments)[0]),a.delete(e)},w=o((function(){var e,n=arguments;return 0===t?k.data:(A&&(n=A(n)),e=g?g(n):String(n[0]),k[e])})),_=o((function(){var e,n=arguments;return 0===t?a.has("data"):(A&&(n=A(n)),null!==(e=g?g(n):String(n[0]))&&a.has(e))})),d(S,{__memoized__:i(!0),delete:i(x),clear:i(a.clear),_get:i(w),_has:i(_)}),a}},function(e,t,n){"use strict";var r=n(1760),o=n(3467),i=n(1017),a=Error.captureStackTrace;e.exports=function(t){var n=new Error(t),l=arguments[1],u=arguments[2];return i(u)||o(l)&&(u=l,l=null),i(u)&&r(n,u),i(l)&&(n.code=l),a&&a(n,e.exports),n}},function(e,t,n){"use strict";e.exports=function(){var e,t=Object.assign;return"function"==typeof t&&(t(e={foo:"raz"},{bar:"dwa"},{trzy:"trzy"}),e.foo+e.bar+e.trzy==="razdwatrzy")}},function(e,t,n){"use strict";var r=n(3464),o=n(1067),i=Math.max;e.exports=function(e,t){var n,a,l,u=i(arguments.length,2);for(e=Object(o(e)),l=function(r){try{e[r]=t[r]}catch(e){n||(n=e)}},a=1;a-1}},function(e,t,n){"use strict";var r,o,i,a,l,u,s,c=n(1020),f=n(986),d=Function.prototype.apply,p=Function.prototype.call,h=Object.create,v=Object.defineProperty,g=Object.defineProperties,y=Object.prototype.hasOwnProperty,m={configurable:!0,enumerable:!1,writable:!0};o=function(e,t){var n,o;return f(t),o=this,r.call(this,e,n=function(){i.call(o,e,n),d.call(t,this,arguments)}),n.__eeOnceListener__=t,this},l={on:r=function(e,t){var n;return f(t),y.call(this,"__ee__")?n=this.__ee__:(n=m.value=h(null),v(this,"__ee__",m),m.value=null),n[e]?"object"==typeof n[e]?n[e].push(t):n[e]=[n[e],t]:n[e]=t,this},once:o,off:i=function(e,t){var n,r,o,i;if(f(t),!y.call(this,"__ee__"))return this;if(!(n=this.__ee__)[e])return this;if("object"==typeof(r=n[e]))for(i=0;o=r[i];++i)o!==t&&o.__eeOnceListener__!==t||(2===r.length?n[e]=r[i?0:1]:r.splice(i,1));else r!==t&&r.__eeOnceListener__!==t||delete n[e];return this},emit:a=function(e){var t,n,r,o,i;if(y.call(this,"__ee__")&&(o=this.__ee__[e]))if("object"==typeof o){for(n=arguments.length,i=new Array(n-1),t=1;t=55296&&m<=56319&&(_+=e[++n]),_=C?d.call(C,O,_,v):_,t?(p.value=_,h(g,v,p)):g[v]=_,++v;y=v}if(void 0===y)for(y=a(e.length),t&&(g=new t(y)),n=0;n=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},n(3503),t.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||this&&this.clearImmediate}).call(this,n(69))},function(e,t,n){(function(e,t){!function(e,n){"use strict";if(!e.setImmediate){var r,o,i,a,l,u=1,s={},c=!1,f=e.document,d=Object.getPrototypeOf&&Object.getPrototypeOf(e);d=d&&d.setTimeout?d:e,"[object process]"==={}.toString.call(e.process)?r=function(e){t.nextTick((function(){h(e)}))}:!function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}()?e.MessageChannel?((i=new MessageChannel).port1.onmessage=function(e){h(e.data)},r=function(e){i.port2.postMessage(e)}):f&&"onreadystatechange"in f.createElement("script")?(o=f.documentElement,r=function(e){var t=f.createElement("script");t.onreadystatechange=function(){h(e),t.onreadystatechange=null,o.removeChild(t),t=null},o.appendChild(t)}):r=function(e){setTimeout(h,0,e)}:(a="setImmediate$"+Math.random()+"$",l=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(a)&&h(+t.data.slice(a.length))},e.addEventListener?e.addEventListener("message",l,!1):e.attachEvent("onmessage",l),r=function(t){e.postMessage(a+t,"*")}),d.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),n=0;n100&&(t=t.slice(0,99)+"…"),t=t.replace(o,(function(e){return JSON.stringify(e).slice(1,-1)}))}},function(e,t,n){"use strict";var r=n(1766);e.exports=function(e){try{return e&&r(e.toString)?e.toString():String(e)}catch(e){return""}}},function(e,t,n){"use strict";var r=n(986),o=n(1203),i=n(1019),a=Function.prototype.apply;i.dispose=function(e,t,n){var l;if(r(e),n.async&&i.async||n.promise&&i.promise)return t.on("deleteasync",l=function(t,n){a.call(e,null,n)}),void t.on("clearasync",(function(e){o(e,(function(e,t){l(t,e)}))}));t.on("delete",l=function(t,n){e(n)}),t.on("clear",(function(e){o(e,(function(e,t){l(t,e)}))}))}},function(e,t,n){"use strict";var r=n(1393),o=n(1203),i=n(1395),a=n(1767),l=n(3512),u=n(1019),s=Function.prototype,c=Math.max,f=Math.min,d=Object.create;u.maxAge=function(e,t,n){var p,h,v,g;(e=l(e))&&(p=d(null),h=n.async&&u.async||n.promise&&u.promise?"async":"",t.on("set"+h,(function(n){p[n]=setTimeout((function(){t.delete(n)}),e),"function"==typeof p[n].unref&&p[n].unref(),g&&(g[n]&&"nextTick"!==g[n]&&clearTimeout(g[n]),g[n]=setTimeout((function(){delete g[n]}),v),"function"==typeof g[n].unref&&g[n].unref())})),t.on("delete"+h,(function(e){clearTimeout(p[e]),delete p[e],g&&("nextTick"!==g[e]&&clearTimeout(g[e]),delete g[e])})),n.preFetch&&(v=!0===n.preFetch||isNaN(n.preFetch)?.333:c(f(Number(n.preFetch),1),0))&&(g={},v=(1-v)*e,t.on("get"+h,(function(e,o,l){g[e]||(g[e]="nextTick",i((function(){var i;"nextTick"===g[e]&&(delete g[e],t.delete(e),n.async&&(o=r(o)).push(s),i=t.memoized.apply(l,o),n.promise&&a(i)&&("function"==typeof i.done?i.done(s,s):i.then(s,s)))})))}))),t.on("clear"+h,(function(){o(p,(function(e){clearTimeout(e)})),p={},g&&(o(g,(function(e){"nextTick"!==e&&clearTimeout(e)})),g={})})))}},function(e,t,n){"use strict";var r=n(1018),o=n(3513);e.exports=function(e){if((e=r(e))>o)throw new TypeError(e+" exceeds maximum possible timeout");return e}},function(e,t,n){"use strict";e.exports=2147483647},function(e,t,n){"use strict";var r=n(1018),o=n(3515),i=n(1019);i.max=function(e,t,n){var a,l,u;(e=r(e))&&(l=o(e),a=n.async&&i.async||n.promise&&i.promise?"async":"",t.on("set"+a,u=function(e){void 0!==(e=l.hit(e))&&t.delete(e)}),t.on("get"+a,u),t.on("delete"+a,l.delete),t.on("clear"+a,l.clear))}},function(e,t,n){"use strict";var r=n(1018),o=Object.create,i=Object.prototype.hasOwnProperty;e.exports=function(e){var t,n=0,a=1,l=o(null),u=o(null),s=0;return e=r(e),{hit:function(r){var o=u[r],c=++s;if(l[c]=r,u[r]=c,!o){if(++n<=e)return;return r=l[a],t(r),r}if(delete l[o],a===o)for(;!i.call(l,++a);)continue},delete:t=function(e){var t=u[e];if(t&&(delete l[t],delete u[e],--n,a===t)){if(!n)return s=0,void(a=1);for(;!i.call(l,++a);)continue}},clear:function(){n=0,a=1,l=o(null),u=o(null),s=0}}}},function(e,t,n){"use strict";var r=n(1020),o=n(1019),i=Object.create,a=Object.defineProperties;o.refCounter=function(e,t,n){var l,u;l=i(null),u=n.async&&o.async||n.promise&&o.promise?"async":"",t.on("set"+u,(function(e,t){l[e]=t||1})),t.on("get"+u,(function(e){++l[e]})),t.on("delete"+u,(function(e){delete l[e]})),t.on("clear"+u,(function(){l={}})),a(t.memoized,{deleteRef:r((function(){var e=t.get(arguments);return null===e?null:l[e]?!--l[e]&&(t.delete(e),!0):null})),getRefCount:r((function(){var e=t.get(arguments);return null===e?0:l[e]?l[e]:0}))})}},function(e,t,n){"use strict";e.exports=e=>{e=Object.assign({onlyFirst:!1},e);const t=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:[a-zA-Z\\d]*(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(t,e.onlyFirst?void 0:"g")}},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return C}));var r,o,i=n(36),a=n.n(i),l=n(37),u=n.n(l),s=n(56),c=n.n(s),f=n(51),d=n.n(f),p=n(88),h=n.n(p),v=n(55),g=n.n(v),y=n(30),m=n.n(y),b=n(0),x=n(3519);n(1);function w(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _(e){for(var t=1;t div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',r=e.head||e.getElementsByTagName("head")[0],o=e.createElement("style");o.id="detectElementResize",o.type="text/css",null!=t&&o.setAttribute("nonce",t),o.styleSheet?o.styleSheet.cssText=n:o.appendChild(e.createTextNode(n)),r.appendChild(o)}}(o),e.__resizeLast__={},e.__resizeListeners__=[],(e.__resizeTriggers__=o.createElement("div")).className="resize-triggers",e.__resizeTriggers__.innerHTML='
    ',e.appendChild(e.__resizeTriggers__),s(e),e.addEventListener("scroll",c,!0),p&&(e.__resizeTriggers__.__animationListener__=function(t){t.animationName==m&&s(e)},e.__resizeTriggers__.addEventListener(p,e.__resizeTriggers__.__animationListener__))}e.__resizeListeners__.push(n)}},removeResizeListener:function(e,t){if(a)e.detachEvent("onresize",t);else if(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1),!e.__resizeListeners__.length){e.removeEventListener("scroll",c,!0),e.__resizeTriggers__.__animationListener__&&(e.__resizeTriggers__.removeEventListener(p,e.__resizeTriggers__.__animationListener__),e.__resizeTriggers__.__animationListener__=null);try{e.__resizeTriggers__=!e.removeChild(e.__resizeTriggers__)}catch(e){}}}}}n.d(t,"a",(function(){return r}))}).call(this,n(69))},function(e,t,n){"use strict";n.r(t),n.d(t,"DEFAULT_HEIGHT",(function(){return s})),n.d(t,"DEFAULT_WIDTH",(function(){return c})),n.d(t,"default",(function(){return f}));var r=n(36),o=n.n(r),i=n(37),a=n.n(i),l=n(30),u=n.n(l),s=(n(1769),30),c=100,f=function(){function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};o()(this,e),u()(this,"_cellHeightCache",{}),u()(this,"_cellWidthCache",{}),u()(this,"_columnWidthCache",{}),u()(this,"_rowHeightCache",{}),u()(this,"_defaultHeight",void 0),u()(this,"_defaultWidth",void 0),u()(this,"_minHeight",void 0),u()(this,"_minWidth",void 0),u()(this,"_keyMapper",void 0),u()(this,"_hasFixedHeight",void 0),u()(this,"_hasFixedWidth",void 0),u()(this,"_columnCount",0),u()(this,"_rowCount",0),u()(this,"columnWidth",(function(e){var n=e.index,r=t._keyMapper(0,n);return void 0!==t._columnWidthCache[r]?t._columnWidthCache[r]:t._defaultWidth})),u()(this,"rowHeight",(function(e){var n=e.index,r=t._keyMapper(n,0);return void 0!==t._rowHeightCache[r]?t._rowHeightCache[r]:t._defaultHeight}));var r=n.defaultHeight,i=n.defaultWidth,a=n.fixedHeight,l=n.fixedWidth,f=n.keyMapper,p=n.minHeight,h=n.minWidth;this._hasFixedHeight=!0===a,this._hasFixedWidth=!0===l,this._minHeight=p||0,this._minWidth=h||0,this._keyMapper=f||d,this._defaultHeight=Math.max(this._minHeight,"number"==typeof r?r:s),this._defaultWidth=Math.max(this._minWidth,"number"==typeof i?i:c)}return a()(e,[{key:"clear",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this._keyMapper(e,t);delete this._cellHeightCache[n],delete this._cellWidthCache[n],this._updateCachedColumnAndRowSizes(e,t)}},{key:"clearAll",value:function(){this._cellHeightCache={},this._cellWidthCache={},this._columnWidthCache={},this._rowHeightCache={},this._rowCount=0,this._columnCount=0}},{key:"hasFixedHeight",value:function(){return this._hasFixedHeight}},{key:"hasFixedWidth",value:function(){return this._hasFixedWidth}},{key:"getHeight",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(this._hasFixedHeight)return this._defaultHeight;var n=this._keyMapper(e,t);return void 0!==this._cellHeightCache[n]?Math.max(this._minHeight,this._cellHeightCache[n]):this._defaultHeight}},{key:"getWidth",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(this._hasFixedWidth)return this._defaultWidth;var n=this._keyMapper(e,t);return void 0!==this._cellWidthCache[n]?Math.max(this._minWidth,this._cellWidthCache[n]):this._defaultWidth}},{key:"has",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this._keyMapper(e,t);return void 0!==this._cellHeightCache[n]}},{key:"set",value:function(e,t,n,r){var o=this._keyMapper(e,t);t>=this._columnCount&&(this._columnCount=t+1),e>=this._rowCount&&(this._rowCount=e+1),this._cellHeightCache[o]=r,this._cellWidthCache[o]=n,this._updateCachedColumnAndRowSizes(e,t)}},{key:"_updateCachedColumnAndRowSizes",value:function(e,t){if(!this._hasFixedWidth){for(var n=0,r=0;r-1)setTimeout(e,0);else{document.addEventListener("DOMContentLoaded",(function t(){document.removeEventListener("DOMContentLoaded",t,!1),e()}),!1)}else document.attachEvent&&(t=window,n=e,r=t.document,o=!1,i=function(){o||(o=!0,n())},function e(){try{r.documentElement.doScroll("left")}catch(t){return void setTimeout(e,50)}i()}(),r.onreadystatechange=function(){"complete"===r.readyState&&(r.onreadystatechange=null,i())});var t,n,r,o,i};t.default=r},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.r(t),t.default=function(e){return{all:e=e||new Map,on:function(t,n){var r=e.get(t);r?r.push(n):e.set(t,[n])},off:function(t,n){var r=e.get(t);r&&(n?r.splice(r.indexOf(n)>>>0,1):e.set(t,[]))},emit:function(t,n){var r=e.get(t);r&&r.slice().map((function(e){e(n)})),(r=e.get("*"))&&r.slice().map((function(e){e(t,n)}))}}}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){!function(e){var t=/\S/,n=/\"/g,r=/\n/g,o=/\r/g,i=/\\/g,a=/\u2028/,l=/\u2029/;function u(e){"}"===e.n.substr(e.n.length-1)&&(e.n=e.n.substring(0,e.n.length-1))}function s(e){return e.trim?e.trim():e.replace(/^\s*|\s*$/g,"")}function c(e,t,n){if(t.charAt(n)!=e.charAt(0))return!1;for(var r=1,o=e.length;r":7,"=":8,_v:9,"{":10,"&":11,_t:12},e.scan=function(n,r){var o=n.length,i=0,a=null,l=null,f="",d=[],p=!1,h=0,v=0,g="{{",y="}}";function m(){f.length>0&&(d.push({tag:"_t",text:new String(f)}),f="")}function b(n,r){if(m(),n&&function(){for(var n=!0,r=v;r"==o.tag&&(o.indent=d[i].text.toString()),d.splice(i,1));else r||d.push({tag:"\n"});p=!1,v=d.length}function x(e,t){var n="="+y,r=e.indexOf(n,t),o=s(e.substring(e.indexOf("=",t)+1,r)).split(" ");return g=o[0],y=o[o.length-1],r+n.length-1}for(r&&(r=r.split(" "),g=r[0],y=r[1]),h=0;h":m,"<":function(t,n){var r={partials:{},code:"",subs:{},inPartial:!0};e.walk(t.nodes,r);var o=n.partials[m(t,n)];o.subs=r.subs,o.partials=r.partials},$:function(t,n){var r={subs:{},code:"",partials:n.partials,prefix:t.n};e.walk(t.nodes,r),n.subs[t.n]=r.code,n.inPartial||(n.code+='t.sub("'+g(t.n)+'",c,p,i);')},"\n":function(e,t){t.code+=x('"\\n"'+(e.last?"":" + i"))},_v:function(e,t){t.code+="t.b(t.v(t."+y(e.n)+'("'+g(e.n)+'",c,p,0)));'},_t:function(e,t){t.code+=x('"'+g(e.text)+'"')},"{":b,"&":b},e.walk=function(t,n){for(var r,o=0,i=t.length;o0;){if(s=n.shift(),a&&"<"==a.tag&&!(s.tag in f))throw new Error("Illegal content in < super tag.");if(e.tags[s.tag]<=e.tags.$||d(s,i))o.push(s),s.nodes=t(n,s.tag,o,i);else{if("/"==s.tag){if(0===o.length)throw new Error("Closing tag without opener: /"+s.n);if(u=o.pop(),s.n!=u.n&&!p(s.n,u.n,i))throw new Error("Nesting error: "+u.n+" vs. "+s.n);return u.end=s.i,l}"\n"==s.tag&&(s.last=0==n.length||"\n"==n[0].tag)}l.push(s)}if(o.length>0)throw new Error("missing closing tag: "+o.pop().n);return l}(t,0,[],(r=r||{}).sectionTags||[])},e.cache={},e.cacheKey=function(e,t){return[e,!!t.asString,!!t.disableLambda,t.delimiters,!!t.modelGet].join("||")},e.compile=function(t,n){n=n||{};var r=e.cacheKey(t,n),o=this.cache[r];if(o){var i=o.partials;for(var a in i)delete i[a].instance;return o}return o=this.generate(this.parse(this.scan(t,n.delimiters),t,n),t,n),this.cache[r]=o}}(t)},function(e,t,n){!function(e){function t(e,t,n){var r;return t&&"object"==typeof t&&(void 0!==t[e]?r=t[e]:n&&t.get&&"function"==typeof t.get&&(r=t.get(e))),r}e.Template=function(e,t,n,r){e=e||{},this.r=e.code||this.r,this.c=n,this.options=r||{},this.text=t||"",this.partials=e.partials||{},this.subs=e.subs||{},this.buf=""},e.Template.prototype={r:function(e,t,n){return""},v:function(e){return e=u(e),l.test(e)?e.replace(n,"&").replace(r,"<").replace(o,">").replace(i,"'").replace(a,"""):e},t:u,render:function(e,t,n){return this.ri([e],t||{},n)},ri:function(e,t,n){return this.r(e,t,n)},ep:function(e,t){var n=this.partials[e],r=t[n.name];if(n.instance&&n.base==r)return n.instance;if("string"==typeof r){if(!this.c)throw new Error("No compiler available.");r=this.c.compile(r,this.options)}if(!r)return null;if(this.partials[e].base=r,n.subs){for(key in t.stackText||(t.stackText={}),n.subs)t.stackText[key]||(t.stackText[key]=void 0!==this.activeSub&&t.stackText[this.activeSub]?t.stackText[this.activeSub]:this.text);r=function(e,t,n,r,o,i){function a(){}function l(){}var u;a.prototype=e,l.prototype=e.subs;var s=new a;for(u in s.subs=new l,s.subsText={},s.buf="",r=r||{},s.stackSubs=r,s.subsText=i,t)r[u]||(r[u]=t[u]);for(u in r)s.subs[u]=r[u];for(u in o=o||{},s.stackPartials=o,n)o[u]||(o[u]=n[u]);for(u in o)s.partials[u]=o[u];return s}(r,n.subs,n.partials,this.stackSubs,this.stackPartials,t.stackText)}return this.partials[e].instance=r,r},rp:function(e,t,n,r){var o=this.ep(e,n);return o?o.ri(t,n,r):""},rs:function(e,t,n){var r=e[e.length-1];if(s(r))for(var o=0;o=0;u--)if(void 0!==(i=t(e,n[u],l))){a=!0;break}return a?(o||"function"!=typeof i||(i=this.mv(i,n,r)),i):!o&&""},ls:function(e,t,n,r,o){var i=this.options.delimiters;return this.options.delimiters=o,this.b(this.ct(u(e.call(t,r)),t,n)),this.options.delimiters=i,!1},ct:function(e,t,n){if(this.options.disableLambda)throw new Error("Lambda features disabled.");return this.c.compile(e,this.options).render(t,n)},b:function(e){this.buf+=e},fl:function(){var e=this.buf;return this.buf="",e},ms:function(e,t,n,r,o,i,a){var l,u=t[t.length-1],s=e.call(u);return"function"==typeof s?!!r||(l=this.activeSub&&this.subsText&&this.subsText[this.activeSub]?this.subsText[this.activeSub]:this.text,this.ls(s,u,n,l.substring(o,i),a)):s},mv:function(e,t,n){var r=t[t.length-1],o=e.call(r);return"function"==typeof o?this.ct(u(o.call(r)),r,n):o},sub:function(e,t,n,r){var o=this.subs[e];o&&(this.activeSub=e,o(t,n,this,r),this.activeSub=!1)}};var n=/&/g,r=//g,i=/\'/g,a=/\"/g,l=/[&<>\"\']/;function u(e){return String(null==e?"":e)}var s=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}}(t)},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){var r=n(3958)(n(122));e.exports=r},function(e,t,n){var r=n(3959),o=n(164),i=n(518),a=n(3960);e.exports=function(e){return function(t){var n=o(t);return"[object Map]"==n?i(t):"[object Set]"==n?a(t):r(t,e(t))}}},function(e,t,n){var r=n(121);e.exports=function(e,t){return r(t,(function(t){return[t,e[t]]}))}},function(e,t){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){var r=n(4063),o=n(359),i=n(4064);e.exports=function(e){return o(e)?i(e):r(e)}},function(e,t,n){var r=n(520)("length");e.exports=r},function(e,t){var n="[\\ud800-\\udfff]",r="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",o="\\ud83c[\\udffb-\\udfff]",i="[^\\ud800-\\udfff]",a="(?:\\ud83c[\\udde6-\\uddff]){2}",l="[\\ud800-\\udbff][\\udc00-\\udfff]",u="(?:"+r+"|"+o+")"+"?",s="[\\ufe0e\\ufe0f]?"+u+("(?:\\u200d(?:"+[i,a,l].join("|")+")[\\ufe0e\\ufe0f]?"+u+")*"),c="(?:"+[i+r+"?",r,a,l,n].join("|")+")",f=RegExp(o+"(?="+o+")|"+c+s,"g");e.exports=function(e){for(var t=f.lastIndex=0;f.test(e);)++t;return t}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){var r=n(4338),o=n(4339),i=o;i.v1=r,i.v4=o,e.exports=i},function(e,t,n){var r,o,i=n(1867),a=n(1868),l=0,u=0;e.exports=function(e,t,n){var s=t&&n||0,c=t||[],f=(e=e||{}).node||r,d=void 0!==e.clockseq?e.clockseq:o;if(null==f||null==d){var p=i();null==f&&(f=r=[1|p[0],p[1],p[2],p[3],p[4],p[5]]),null==d&&(d=o=16383&(p[6]<<8|p[7]))}var h=void 0!==e.msecs?e.msecs:(new Date).getTime(),v=void 0!==e.nsecs?e.nsecs:u+1,g=h-l+(v-u)/1e4;if(g<0&&void 0===e.clockseq&&(d=d+1&16383),(g<0||h>l)&&void 0===e.nsecs&&(v=0),v>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");l=h,u=v,o=d;var y=(1e4*(268435455&(h+=122192928e5))+v)%4294967296;c[s++]=y>>>24&255,c[s++]=y>>>16&255,c[s++]=y>>>8&255,c[s++]=255&y;var m=h/4294967296*1e4&268435455;c[s++]=m>>>8&255,c[s++]=255&m,c[s++]=m>>>24&15|16,c[s++]=m>>>16&255,c[s++]=d>>>8|128,c[s++]=255&d;for(var b=0;b<6;++b)c[s+b]=f[b];return t||a(c)}},function(e,t,n){var r=n(1867),o=n(1868);e.exports=function(e,t,n){var i=t&&n||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var a=(e=e||{}).random||(e.rng||r)();if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,t)for(var l=0;l<16;++l)t[i+l]=a[l];return t||o(a)}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){const r=n(4482),o=n(4483),i=n(4484);e.exports=function e(t,{cleanKeys:n=[],cleanValues:a=[],emptyArrays:l=!0,emptyObjects:u=!0,emptyStrings:s=!0,NaNValues:c=!1,nullValues:f=!0,undefinedValues:d=!0}={}){return i(t,(t,i,p)=>{if(!n.includes(p)&&((Array.isArray(i)||o(i))&&(i=e(i,{NaNValues:c,cleanKeys:n,cleanValues:a,emptyArrays:l,emptyObjects:u,emptyStrings:s,nullValues:f,undefinedValues:d})),!a.includes(i)&&!(u&&o(i)&&r(i))&&(!l||!Array.isArray(i)||i.length)&&!(s&&""===i||c&&Number.isNaN(i)||f&&null===i||d&&void 0===i)))return Array.isArray(t)?t.push(i):void(t[p]=i)})}},function(e,t,n){(function(e,n){var r="[object Map]",o="[object Set]",i=/^\[object .+?Constructor\]$/,a="object"==typeof e&&e&&e.Object===Object&&e,l="object"==typeof self&&self&&self.Object===Object&&self,u=a||l||Function("return this")(),s=t&&!t.nodeType&&t,c=s&&"object"==typeof n&&n&&!n.nodeType&&n,f=c&&c.exports===s;var d,p,h,v=Function.prototype,g=Object.prototype,y=u["__core-js_shared__"],m=(d=/[^.]+$/.exec(y&&y.keys&&y.keys.IE_PROTO||""))?"Symbol(src)_1."+d:"",b=v.toString,x=g.hasOwnProperty,w=g.toString,_=RegExp("^"+b.call(x).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),C=f?u.Buffer:void 0,O=g.propertyIsEnumerable,E=C?C.isBuffer:void 0,M=(p=Object.keys,h=Object,function(e){return p(h(e))}),S=H(u,"DataView"),A=H(u,"Map"),k=H(u,"Promise"),j=H(u,"Set"),T=H(u,"WeakMap"),P=!O.call({valueOf:1},"valueOf"),L=F(S),z=F(A),N=F(k),D=F(j),I=F(T);function R(e){return!(!K(e)||function(e){return!!m&&m in e}(e))&&(W(e)||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}(e)?_:i).test(F(e))}function H(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return R(n)?n:void 0}var B=function(e){return w.call(e)};function F(e){if(null!=e){try{return b.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function V(e){return function(e){return function(e){return!!e&&"object"==typeof e}(e)&&U(e)}(e)&&x.call(e,"callee")&&(!O.call(e,"callee")||"[object Arguments]"==w.call(e))}(S&&"[object DataView]"!=B(new S(new ArrayBuffer(1)))||A&&B(new A)!=r||k&&"[object Promise]"!=B(k.resolve())||j&&B(new j)!=o||T&&"[object WeakMap]"!=B(new T))&&(B=function(e){var t=w.call(e),n="[object Object]"==t?e.constructor:void 0,i=n?F(n):void 0;if(i)switch(i){case L:return"[object DataView]";case z:return r;case N:return"[object Promise]";case D:return o;case I:return"[object WeakMap]"}return t});var $=Array.isArray;function U(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}(e.length)&&!W(e)}var Z=E||function(){return!1};function W(e){var t=K(e)?w.call(e):"";return"[object Function]"==t||"[object GeneratorFunction]"==t}function K(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}n.exports=function(e){if(U(e)&&($(e)||"string"==typeof e||"function"==typeof e.splice||Z(e)||V(e)))return!e.length;var t=B(e);if(t==r||t==o)return!e.size;if(P||function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||g)}(e))return!M(e).length;for(var n in e)if(x.call(e,n))return!1;return!0}}).call(this,n(69),n(138)(e))},function(e,t){var n,r,o=Function.prototype,i=Object.prototype,a=o.toString,l=i.hasOwnProperty,u=a.call(Object),s=i.toString,c=(n=Object.getPrototypeOf,r=Object,function(e){return n(r(e))});e.exports=function(e){if(!function(e){return!!e&&"object"==typeof e}(e)||"[object Object]"!=s.call(e)||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}(e))return!1;var t=c(e);if(null===t)return!0;var n=l.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&a.call(n)==u}},function(e,t,n){(function(e,n){var r="[object Arguments]",o="[object Map]",i="[object Object]",a="[object Set]",l=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,u=/^\w*$/,s=/^\./,c=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,f=/\\(\\)?/g,d=/^\[object .+?Constructor\]$/,p=/^(?:0|[1-9]\d*)$/,h={};h["[object Float32Array]"]=h["[object Float64Array]"]=h["[object Int8Array]"]=h["[object Int16Array]"]=h["[object Int32Array]"]=h["[object Uint8Array]"]=h["[object Uint8ClampedArray]"]=h["[object Uint16Array]"]=h["[object Uint32Array]"]=!0,h[r]=h["[object Array]"]=h["[object ArrayBuffer]"]=h["[object Boolean]"]=h["[object DataView]"]=h["[object Date]"]=h["[object Error]"]=h["[object Function]"]=h[o]=h["[object Number]"]=h[i]=h["[object RegExp]"]=h[a]=h["[object String]"]=h["[object WeakMap]"]=!1;var v="object"==typeof e&&e&&e.Object===Object&&e,g="object"==typeof self&&self&&self.Object===Object&&self,y=v||g||Function("return this")(),m=t&&!t.nodeType&&t,b=m&&"object"==typeof n&&n&&!n.nodeType&&n,x=b&&b.exports===m&&v.process,w=function(){try{return x&&x.binding("util")}catch(e){}}(),_=w&&w.isTypedArray;function C(e,t){for(var n=-1,r=e?e.length:0;++n-1},le.prototype.set=function(e,t){var n=this.__data__,r=de(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},ue.prototype.clear=function(){this.__data__={hash:new ae,map:new(K||le),string:new ae}},ue.prototype.delete=function(e){return Oe(this,e).delete(e)},ue.prototype.get=function(e){return Oe(this,e).get(e)},ue.prototype.has=function(e){return Oe(this,e).has(e)},ue.prototype.set=function(e,t){return Oe(this,e).set(e,t),this},se.prototype.add=se.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},se.prototype.has=function(e){return this.__data__.has(e)},ce.prototype.clear=function(){this.__data__=new le},ce.prototype.delete=function(e){return this.__data__.delete(e)},ce.prototype.get=function(e){return this.__data__.get(e)},ce.prototype.has=function(e){return this.__data__.has(e)},ce.prototype.set=function(e,t){var n=this.__data__;if(n instanceof le){var r=n.__data__;if(!K||r.length<199)return r.push([e,t]),this;n=this.__data__=new ue(r)}return n.set(e,t),this};var pe,he=function(e,t,n){for(var r=-1,o=Object(e),i=n(e),a=i.length;a--;){var l=i[pe?a:++r];if(!1===t(o[l],l,o))break}return e};function ve(e,t){return e&&he(e,t,We)}function ge(e,t){for(var n=0,r=(t=Ae(t,e)?[t]:_e(t)).length;null!=e&&nl))return!1;var s=i.get(e);if(s&&i.get(t))return s==t;var c=-1,f=!0,d=1&o?new se:void 0;for(i.set(e,t),i.set(t,e);++c-1&&e%1==0&&e-1&&e%1==0&&e<=9007199254740991}function Fe(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Ve(e){return!!e&&"object"==typeof e}function $e(e){return"symbol"==typeof e||Ve(e)&&"[object Symbol]"==I.call(e)}var Ue,Ze=_?(Ue=_,function(e){return Ue(e)}):function(e){return Ve(e)&&Be(e.length)&&!!h[I.call(e)]};function We(e){return Re(e)?fe(e):we(e)}function Ke(e){return e}n.exports=function(e,t,n){var r,o=Ie(e)||Ze(e);if(t=xe(t),null==n)if(o||Fe(e)){var i=e.constructor;n=o?Ie(e)?new i:[]:He(i)?Fe(r=F(e))?V(r):{}:{}}else n={};return(o?C:ve)(e,(function(e,r,o){return t(n,e,r,o)})),n}}).call(this,n(69),n(138)(e))},,,,,,,,,,,,,,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=function(e){if(e&&e.__esModule)return e;var t=u();if(t&&t.has(e))return t.get(e);var n={};if(null!=e){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}}n.default=e,t&&t.set(e,n);return n}(n(0)),i=(r=n(1))&&r.__esModule?r:{default:r},a=n(926),l=n(809);function u(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(){return(c=Object.assign||function(e){for(var t=1;t1||1===t.length&&e.hasEdge(t[0],t[0])}))}},function(e,t,n){var r=n(908);e.exports=function(e,t,n){return function(e,t,n){var r={},o=e.nodes();return o.forEach((function(e){r[e]={},r[e][e]={distance:0},o.forEach((function(t){e!==t&&(r[e][t]={distance:Number.POSITIVE_INFINITY})})),n(e).forEach((function(n){var o=n.v===e?n.w:n.v,i=t(n);r[e][o]={distance:i,predecessor:e}}))})),o.forEach((function(e){var t=r[e];o.forEach((function(n){var i=r[n];o.forEach((function(n){var r=i[e],o=t[n],a=i[n],l=r.distance+o.distance;l0;){if(n=u.removeMin(),r.has(l,n))a.setEdge(n,l[n]);else{if(c)throw new Error("Input graph is not connected: "+e);c=!0}e.nodeEdges(n).forEach(s)}return a}},function(e,t,n){"use strict";var r=n(835),o=n(4572),i=n(4575),a=n(4576),l=n(891).normalizeRanks,u=n(4578),s=n(891).removeEmptyRanks,c=n(4579),f=n(4580),d=n(4581),p=n(4582),h=n(4591),v=n(891),g=n(920).Graph;e.exports=function(e,t){var n=t&&t.debugTiming?v.time:v.notime;n("layout",(function(){var t=n(" buildLayoutGraph",(function(){return function(e){var t=new g({multigraph:!0,compound:!0}),n=M(e.graph());return t.setGraph(r.merge({},m,E(n,y),r.pick(n,b))),r.forEach(e.nodes(),(function(n){var o=M(e.node(n));t.setNode(n,r.defaults(E(o,x),w)),t.setParent(n,e.parent(n))})),r.forEach(e.edges(),(function(n){var o=M(e.edge(n));t.setEdge(n,r.merge({},C,E(o,_),r.pick(o,O)))})),t}(e)}));n(" runLayout",(function(){!function(e,t){t(" makeSpaceForEdgeLabels",(function(){!function(e){var t=e.graph();t.ranksep/=2,r.forEach(e.edges(),(function(n){var r=e.edge(n);r.minlen*=2,"c"!==r.labelpos.toLowerCase()&&("TB"===t.rankdir||"BT"===t.rankdir?r.width+=r.labeloffset:r.height+=r.labeloffset)}))}(e)})),t(" removeSelfEdges",(function(){!function(e){r.forEach(e.edges(),(function(t){if(t.v===t.w){var n=e.node(t.v);n.selfEdges||(n.selfEdges=[]),n.selfEdges.push({e:t,label:e.edge(t)}),e.removeEdge(t)}}))}(e)})),t(" acyclic",(function(){o.run(e)})),t(" nestingGraph.run",(function(){c.run(e)})),t(" rank",(function(){a(v.asNonCompoundGraph(e))})),t(" injectEdgeLabelProxies",(function(){!function(e){r.forEach(e.edges(),(function(t){var n=e.edge(t);if(n.width&&n.height){var r=e.node(t.v),o={rank:(e.node(t.w).rank-r.rank)/2+r.rank,e:t};v.addDummyNode(e,"edge-proxy",o,"_ep")}}))}(e)})),t(" removeEmptyRanks",(function(){s(e)})),t(" nestingGraph.cleanup",(function(){c.cleanup(e)})),t(" normalizeRanks",(function(){l(e)})),t(" assignRankMinMax",(function(){!function(e){var t=0;r.forEach(e.nodes(),(function(n){var o=e.node(n);o.borderTop&&(o.minRank=e.node(o.borderTop).rank,o.maxRank=e.node(o.borderBottom).rank,t=r.max(t,o.maxRank))})),e.graph().maxRank=t}(e)})),t(" removeEdgeLabelProxies",(function(){!function(e){r.forEach(e.nodes(),(function(t){var n=e.node(t);"edge-proxy"===n.dummy&&(e.edge(n.e).labelRank=n.rank,e.removeNode(t))}))}(e)})),t(" normalize.run",(function(){i.run(e)})),t(" parentDummyChains",(function(){u(e)})),t(" addBorderSegments",(function(){f(e)})),t(" order",(function(){p(e)})),t(" insertSelfEdges",(function(){!function(e){var t=v.buildLayerMatrix(e);r.forEach(t,(function(t){var n=0;r.forEach(t,(function(t,o){var i=e.node(t);i.order=o+n,r.forEach(i.selfEdges,(function(t){v.addDummyNode(e,"selfedge",{width:t.label.width,height:t.label.height,rank:i.rank,order:o+ ++n,e:t.e,label:t.label},"_se")})),delete i.selfEdges}))}))}(e)})),t(" adjustCoordinateSystem",(function(){d.adjust(e)})),t(" position",(function(){h(e)})),t(" positionSelfEdges",(function(){!function(e){r.forEach(e.nodes(),(function(t){var n=e.node(t);if("selfedge"===n.dummy){var r=e.node(n.e.v),o=r.x+r.width/2,i=r.y,a=n.x-o,l=r.height/2;e.setEdge(n.e,n.label),e.removeNode(t),n.label.points=[{x:o+2*a/3,y:i-l},{x:o+5*a/6,y:i-l},{x:o+a,y:i},{x:o+5*a/6,y:i+l},{x:o+2*a/3,y:i+l}],n.label.x=n.x,n.label.y=n.y}}))}(e)})),t(" removeBorderNodes",(function(){!function(e){r.forEach(e.nodes(),(function(t){if(e.children(t).length){var n=e.node(t),o=e.node(n.borderTop),i=e.node(n.borderBottom),a=e.node(r.last(n.borderLeft)),l=e.node(r.last(n.borderRight));n.width=Math.abs(l.x-a.x),n.height=Math.abs(i.y-o.y),n.x=a.x+n.width/2,n.y=o.y+n.height/2}})),r.forEach(e.nodes(),(function(t){"border"===e.node(t).dummy&&e.removeNode(t)}))}(e)})),t(" normalize.undo",(function(){i.undo(e)})),t(" fixupEdgeLabelCoords",(function(){!function(e){r.forEach(e.edges(),(function(t){var n=e.edge(t);if(r.has(n,"x"))switch("l"!==n.labelpos&&"r"!==n.labelpos||(n.width-=n.labeloffset),n.labelpos){case"l":n.x-=n.width/2+n.labeloffset;break;case"r":n.x+=n.width/2+n.labeloffset}}))}(e)})),t(" undoCoordinateSystem",(function(){d.undo(e)})),t(" translateGraph",(function(){!function(e){var t=Number.POSITIVE_INFINITY,n=0,o=Number.POSITIVE_INFINITY,i=0,a=e.graph(),l=a.marginx||0,u=a.marginy||0;function s(e){var r=e.x,a=e.y,l=e.width,u=e.height;t=Math.min(t,r-l/2),n=Math.max(n,r+l/2),o=Math.min(o,a-u/2),i=Math.max(i,a+u/2)}r.forEach(e.nodes(),(function(t){s(e.node(t))})),r.forEach(e.edges(),(function(t){var n=e.edge(t);r.has(n,"x")&&s(n)})),t-=l,o-=u,r.forEach(e.nodes(),(function(n){var r=e.node(n);r.x-=t,r.y-=o})),r.forEach(e.edges(),(function(n){var i=e.edge(n);r.forEach(i.points,(function(e){e.x-=t,e.y-=o})),r.has(i,"x")&&(i.x-=t),r.has(i,"y")&&(i.y-=o)})),a.width=n-t+l,a.height=i-o+u}(e)})),t(" assignNodeIntersects",(function(){!function(e){r.forEach(e.edges(),(function(t){var n,r,o=e.edge(t),i=e.node(t.v),a=e.node(t.w);o.points?(n=o.points[0],r=o.points[o.points.length-1]):(o.points=[],n=a,r=i),o.points.unshift(v.intersectRect(i,n)),o.points.push(v.intersectRect(a,r))}))}(e)})),t(" reversePoints",(function(){!function(e){r.forEach(e.edges(),(function(t){var n=e.edge(t);n.reversed&&n.points.reverse()}))}(e)})),t(" acyclic.undo",(function(){o.undo(e)}))}(t,n)})),n(" updateInputGraph",(function(){!function(e,t){r.forEach(e.nodes(),(function(n){var r=e.node(n),o=t.node(n);r&&(r.x=o.x,r.y=o.y,t.children(n).length&&(r.width=o.width,r.height=o.height))})),r.forEach(e.edges(),(function(n){var o=e.edge(n),i=t.edge(n);o.points=i.points,r.has(i,"x")&&(o.x=i.x,o.y=i.y)})),e.graph().width=t.graph().width,e.graph().height=t.graph().height}(e,t)}))}))};var y=["nodesep","edgesep","ranksep","marginx","marginy"],m={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},b=["acyclicer","ranker","rankdir","align"],x=["width","height"],w={width:0,height:0},_=["minlen","weight","width","height","labeloffset"],C={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},O=["labelpos"];function E(e,t){return r.mapValues(r.pick(e,t),Number)}function M(e){var t={};return r.forEach(e,(function(e,n){t[n.toLowerCase()]=e})),t}},function(e,t,n){var r=n(253),o=n(169),i=n(329),a=n(161),l=Object.prototype,u=l.hasOwnProperty,s=r((function(e,t){e=Object(e);var n=-1,r=t.length,s=r>2?t[2]:void 0;for(s&&i(t[0],t[1],s)&&(r=1);++n0;--u)if(r=t[u].dequeue()){o=o.concat(l(e,t,n,r,!0));break}}return o}(n.graph,n.buckets,n.zeroIdx);return r.flatten(r.map(s,(function(t){return e.outEdges(t.v,t.w)})),!0)};var a=r.constant(1);function l(e,t,n,o,i){var a=i?[]:void 0;return r.forEach(e.inEdges(o.v),(function(r){var o=e.edge(r),l=e.node(r.v);i&&a.push({v:r.v,w:r.w}),l.out-=o,u(t,n,l)})),r.forEach(e.outEdges(o.v),(function(r){var o=e.edge(r),i=r.w,a=e.node(i);a.in-=o,u(t,n,a)})),e.removeNode(o.v),a}function u(e,t,n){n.out?n.in?e[n.out-n.in+t].enqueue(n):e[e.length-1].enqueue(n):e[0].enqueue(n)}},function(e,t){function n(){var e={};e._next=e._prev=e,this._sentinel=e}function r(e){e._prev._next=e._next,e._next._prev=e._prev,delete e._next,delete e._prev}function o(e,t){if("_next"!==e&&"_prev"!==e)return t}e.exports=n,n.prototype.dequeue=function(){var e=this._sentinel,t=e._prev;if(t!==e)return r(t),t},n.prototype.enqueue=function(e){var t=this._sentinel;e._prev&&e._next&&r(e),e._next=t._next,t._next._prev=e,t._next=e,e._prev=t},n.prototype.toString=function(){for(var e=[],t=this._sentinel,n=t._prev;n!==t;)e.push(JSON.stringify(n,o)),n=n._prev;return"["+e.join(", ")+"]"}},function(e,t,n){"use strict";var r=n(835),o=n(891);e.exports={run:function(e){e.graph().dummyChains=[],r.forEach(e.edges(),(function(t){!function(e,t){var n,r,i,a=t.v,l=e.node(a).rank,u=t.w,s=e.node(u).rank,c=t.name,f=e.edge(t),d=f.labelRank;if(s===l+1)return;for(e.removeEdge(t),i=0,++l;lu.lim&&(s=u,c=!0);var f=r.filter(t.edges(),(function(t){return c===m(e,e.node(t.v),s)&&c!==m(e,e.node(t.w),s)}));return r.minBy(f,(function(e){return i(t,e)}))}function y(e,t,n,o){var i=n.v,a=n.w;e.removeEdge(i,a),e.setEdge(o.v,o.w,{}),p(e),f(e,t),function(e,t){var n=r.find(e.nodes(),(function(e){return!t.node(e).parent})),o=l(e,n);o=o.slice(1),r.forEach(o,(function(n){var r=e.node(n).parent,o=t.edge(n,r),i=!1;o||(o=t.edge(r,n),i=!0),t.node(n).rank=t.node(r).rank+(i?o.minlen:-o.minlen)}))}(e,t)}function m(e,t,n){return n.low<=t.lim&&t.lim<=n.lim}e.exports=c,c.initLowLimValues=p,c.initCutValues=f,c.calcCutValue=d,c.leaveEdge=v,c.enterEdge=g,c.exchangeEdges=y},function(e,t,n){var r=n(835);e.exports=function(e){var t=function(e){var t={},n=0;function o(i){var a=n;r.forEach(e.children(i),o),t[i]={low:a,lim:n++}}return r.forEach(e.children(),o),t}(e);r.forEach(e.graph().dummyChains,(function(n){for(var r=e.node(n),o=r.edgeObj,i=function(e,t,n,r){var o,i,a=[],l=[],u=Math.min(t[n].low,t[r].low),s=Math.max(t[n].lim,t[r].lim);o=n;do{o=e.parent(o),a.push(o)}while(o&&(t[o].low>u||s>t[o].lim));i=o,o=r;for(;(o=e.parent(o))!==i;)l.push(o);return{path:a.concat(l.reverse()),lca:i}}(e,t,o.v,o.w),a=i.path,l=i.lca,u=0,s=a[u],c=!0;n!==o.w;){if(r=e.node(n),c){for(;(s=a[u])!==l&&e.node(s).maxRank=2),l=c.buildLayerMatrix(e);var g=i(e,l);g0;)t%2&&(n+=u[t+1]),u[t=t-1>>1]+=e.weight;s+=e.weight*n}))),s}e.exports=function(e,t){for(var n=0,r=1;r=e.barycenter)&&function(e,t){var n=0,r=0;e.weight&&(n+=e.barycenter*e.weight,r+=e.weight);t.weight&&(n+=t.barycenter*t.weight,r+=t.weight);e.vs=t.vs.concat(e.vs),e.barycenter=n/r,e.weight=r,e.i=Math.min(t.i,e.i),t.merged=!0}(e,t)}}function o(t){return function(n){n.in.push(t),0==--n.indegree&&e.push(n)}}for(;e.length;){var i=e.pop();t.push(i),r.forEach(i.in.reverse(),n(i)),r.forEach(i.out,o(i))}return r.map(r.filter(t,(function(e){return!e.merged})),(function(e){return r.pick(e,["vs","i","barycenter","weight"])}))}(r.filter(n,(function(e){return!e.indegree})))}},function(e,t,n){var r=n(835),o=n(891);function i(e,t,n){for(var o;t.length&&(o=r.last(t)).i<=n;)t.pop(),e.push(o.vs),n++;return n}e.exports=function(e,t){var n=o.partition(e,(function(e){return r.has(e,"barycenter")})),a=n.lhs,l=r.sortBy(n.rhs,(function(e){return-e.i})),u=[],s=0,c=0,f=0;a.sort((d=!!t,function(e,t){return e.barycentert.barycenter?1:d?t.i-e.i:e.i-t.i})),f=i(u,l,f),r.forEach(a,(function(e){f+=e.vs.length,u.push(e.vs),s+=e.barycenter*e.weight,c+=e.weight,f=i(u,l,f)}));var d;var p={vs:r.flatten(u,!0)};c&&(p.barycenter=s/c,p.weight=c);return p}},function(e,t,n){var r=n(835),o=n(920).Graph;e.exports=function(e,t,n){var i=function(e){var t;for(;e.hasNode(t=r.uniqueId("_root")););return t}(e),a=new o({compound:!0}).setGraph({root:i}).setDefaultNodeLabel((function(t){return e.node(t)}));return r.forEach(e.nodes(),(function(o){var l=e.node(o),u=e.parent(o);(l.rank===t||l.minRank<=t&&t<=l.maxRank)&&(a.setNode(o),a.setParent(o,u||i),r.forEach(e[n](o),(function(t){var n=t.v===o?t.w:t.v,i=a.edge(n,o),l=r.isUndefined(i)?0:i.weight;a.setEdge(n,o,{weight:e.edge(t).weight+l})})),r.has(l,"minRank")&&a.setNode(o,{borderLeft:l.borderLeft[t],borderRight:l.borderRight[t]}))})),a}},function(e,t,n){var r=n(835);e.exports=function(e,t,n){var o,i={};r.forEach(n,(function(n){for(var r,a,l=e.parent(n);l;){if((r=e.parent(l))?(a=i[r],i[r]=l):(a=o,o=l),a&&a!==l)return void t.setEdge(a,l);l=r}}))}},function(e,t,n){"use strict";var r=n(835),o=n(891),i=n(4592).positionX;e.exports=function(e){(function(e){var t=o.buildLayerMatrix(e),n=e.graph().ranksep,i=0;r.forEach(t,(function(t){var o=r.max(r.map(t,(function(t){return e.node(t).height})));r.forEach(t,(function(t){e.node(t).y=i+o/2})),i+=o+n}))})(e=o.asNonCompoundGraph(e)),r.forEach(i(e),(function(t,n){e.node(n).x=t}))}},function(e,t,n){"use strict";var r=n(835),o=n(920).Graph,i=n(891);function a(e,t){var n={};return r.reduce(t,(function(t,o){var i=0,a=0,l=t.length,s=r.last(o);return r.forEach(o,(function(t,c){var f=function(e,t){if(e.node(t).dummy)return r.find(e.predecessors(t),(function(t){return e.node(t).dummy}))}(e,t),d=f?e.node(f).order:l;(f||t===s)&&(r.forEach(o.slice(a,c+1),(function(t){r.forEach(e.predecessors(t),(function(r){var o=e.node(r),a=o.order;!(al)&&u(n,t,s)}))}))}return r.reduce(t,(function(t,n){var i,a=-1,l=0;return r.forEach(n,(function(r,u){if("border"===e.node(r).dummy){var s=e.predecessors(r);s.length&&(i=e.node(s[0]).order,o(n,l,u,a,i),l=u,a=i)}o(n,l,n.length,i,t.length)})),n})),n}function u(e,t,n){if(t>n){var r=t;t=n,n=r}var o=e[t];o||(e[t]=o={}),o[n]=!0}function s(e,t,n){if(t>n){var o=t;t=n,n=o}return r.has(e[t],n)}function c(e,t,n,o){var i={},a={},l={};return r.forEach(t,(function(e){r.forEach(e,(function(e,t){i[e]=e,a[e]=e,l[e]=t}))})),r.forEach(t,(function(e){var t=-1;r.forEach(e,(function(e){var u=o(e);if(u.length)for(var c=((u=r.sortBy(u,(function(e){return l[e]}))).length-1)/2,f=Math.floor(c),d=Math.ceil(c);f<=d;++f){var p=u[f];a[e]===e&&t?@[\\\]^|]/,Q=/[\0\t\n\r #/:<>?@[\\\]^|]/,ee=/^[\u0000-\u0020]+/,te=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,ne=/[\t\n\r]/g,re=function(e){var t,n,r,o;if("number"==typeof e){for(t=[],n=0;n<4;n++)U(t,e%256),e=T(e/256);return N(t,".")}if("object"==typeof e){for(t="",r=function(e){for(var t=null,n=1,r=null,o=0,i=0;i<8;i++)0!==e[i]?(o>n&&(t=r,n=o),r=null,o=0):(null===r&&(r=i),++o);return o>n&&(t=r,n=o),t}(e),n=0;n<8;n++)o&&0===e[n]||(o&&(o=!1),r===n?(t+=n?":":"::",o=!0):(t+=D(e[n],16),n<7&&(t+=":")));return"["+t+"]"}return e},oe={},ie=h({},oe,{" ":1,'"':1,"<":1,">":1,"`":1}),ae=h({},ie,{"#":1,"?":1,"{":1,"}":1}),le=h({},ae,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),ue=function(e,t){var n=y(e,0);return n>32&&n<127&&!p(t,e)?e:encodeURIComponent(e)},se={ftp:21,file:null,http:80,https:443,ws:80,wss:443},ce=function(e,t){var n;return 2===e.length&&z(Z,L(e,0))&&(":"===(n=L(e,1))||!t&&"|"===n)},fe=function(e){var t;return e.length>1&&ce(V(e,0,2))&&(2===e.length||"/"===(t=L(e,2))||"\\"===t||"?"===t||"#"===t)},de=function(e){return"."===e||"%2e"===$(e)},pe={},he={},ve={},ge={},ye={},me={},be={},xe={},we={},_e={},Ce={},Oe={},Ee={},Me={},Se={},Ae={},ke={},je={},Te={},Pe={},Le={},ze=function(e,t,n){var r,o,i,a=b(e);if(t){if(o=this.parse(a))throw new k(o);this.searchParams=null}else{if(void 0!==n&&(r=new ze(n,!0)),o=this.parse(a,null,r))throw new k(o);(i=S(new M)).bindURL(this),this.searchParams=i}};ze.prototype={type:"URL",parse:function(e,t,n){var o,i,a,l,u,s=this,c=t||pe,f=0,d="",h=!1,y=!1,m=!1;for(e=b(e),t||(s.scheme="",s.username="",s.password="",s.host=null,s.port=null,s.path=[],s.query=null,s.fragment=null,s.cannotBeABaseURL=!1,e=H(e,ee,""),e=H(e,te,"$1")),e=H(e,ne,""),o=v(e);f<=o.length;){switch(i=o[f],c){case pe:if(!i||!z(Z,i)){if(t)return"Invalid scheme";c=ve;continue}d+=$(i),c=he;break;case he:if(i&&(z(W,i)||"+"===i||"-"===i||"."===i))d+=$(i);else{if(":"!==i){if(t)return"Invalid scheme";d="",c=ve,f=0;continue}if(t&&(s.isSpecial()!==p(se,d)||"file"===d&&(s.includesCredentials()||null!==s.port)||"file"===s.scheme&&!s.host))return;if(s.scheme=d,t)return void(s.isSpecial()&&se[s.scheme]===s.port&&(s.port=null));d="","file"===s.scheme?c=Me:s.isSpecial()&&n&&n.scheme===s.scheme?c=ge:s.isSpecial()?c=xe:"/"===o[f+1]?(c=ye,f++):(s.cannotBeABaseURL=!0,R(s.path,""),c=Te)}break;case ve:if(!n||n.cannotBeABaseURL&&"#"!==i)return"Invalid scheme";if(n.cannotBeABaseURL&&"#"===i){s.scheme=n.scheme,s.path=g(n.path),s.query=n.query,s.fragment="",s.cannotBeABaseURL=!0,c=Le;break}c="file"===n.scheme?Me:me;continue;case ge:if("/"!==i||"/"!==o[f+1]){c=me;continue}c=we,f++;break;case ye:if("/"===i){c=_e;break}c=je;continue;case me:if(s.scheme=n.scheme,i===r)s.username=n.username,s.password=n.password,s.host=n.host,s.port=n.port,s.path=g(n.path),s.query=n.query;else if("/"===i||"\\"===i&&s.isSpecial())c=be;else if("?"===i)s.username=n.username,s.password=n.password,s.host=n.host,s.port=n.port,s.path=g(n.path),s.query="",c=Pe;else{if("#"!==i){s.username=n.username,s.password=n.password,s.host=n.host,s.port=n.port,s.path=g(n.path),s.path.length--,c=je;continue}s.username=n.username,s.password=n.password,s.host=n.host,s.port=n.port,s.path=g(n.path),s.query=n.query,s.fragment="",c=Le}break;case be:if(!s.isSpecial()||"/"!==i&&"\\"!==i){if("/"!==i){s.username=n.username,s.password=n.password,s.host=n.host,s.port=n.port,c=je;continue}c=_e}else c=we;break;case xe:if(c=we,"/"!==i||"/"!==L(d,f+1))continue;f++;break;case we:if("/"!==i&&"\\"!==i){c=_e;continue}break;case _e:if("@"===i){h&&(d="%40"+d),h=!0,a=v(d);for(var x=0;x65535)return"Invalid port";s.port=s.isSpecial()&&C===se[s.scheme]?null:C,d=""}if(t)return;c=ke;continue}return"Invalid port"}d+=i;break;case Me:if(s.scheme="file","/"===i||"\\"===i)c=Se;else{if(!n||"file"!==n.scheme){c=je;continue}switch(i){case r:s.host=n.host,s.path=g(n.path),s.query=n.query;break;case"?":s.host=n.host,s.path=g(n.path),s.query="",c=Pe;break;case"#":s.host=n.host,s.path=g(n.path),s.query=n.query,s.fragment="",c=Le;break;default:fe(N(g(o,f),""))||(s.host=n.host,s.path=g(n.path),s.shortenPath()),c=je;continue}}break;case Se:if("/"===i||"\\"===i){c=Ae;break}n&&"file"===n.scheme&&!fe(N(g(o,f),""))&&(ce(n.path[0],!0)?R(s.path,n.path[0]):s.host=n.host),c=je;continue;case Ae:if(i===r||"/"===i||"\\"===i||"?"===i||"#"===i){if(!t&&ce(d))c=je;else if(""===d){if(s.host="",t)return;c=ke}else{if(l=s.parseHost(d))return l;if("localhost"===s.host&&(s.host=""),t)return;d="",c=ke}continue}d+=i;break;case ke:if(s.isSpecial()){if(c=je,"/"!==i&&"\\"!==i)continue}else if(t||"?"!==i)if(t||"#"!==i){if(i!==r&&(c=je,"/"!==i))continue}else s.fragment="",c=Le;else s.query="",c=Pe;break;case je:if(i===r||"/"===i||"\\"===i&&s.isSpecial()||!t&&("?"===i||"#"===i)){if(".."===(u=$(u=d))||"%2e."===u||".%2e"===u||"%2e%2e"===u?(s.shortenPath(),"/"===i||"\\"===i&&s.isSpecial()||R(s.path,"")):de(d)?"/"===i||"\\"===i&&s.isSpecial()||R(s.path,""):("file"===s.scheme&&!s.path.length&&ce(d)&&(s.host&&(s.host=""),d=L(d,0)+":"),R(s.path,d)),d="","file"===s.scheme&&(i===r||"?"===i||"#"===i))for(;s.path.length>1&&""===s.path[0];)B(s.path);"?"===i?(s.query="",c=Pe):"#"===i&&(s.fragment="",c=Le)}else d+=ue(i,ae);break;case Te:"?"===i?(s.query="",c=Pe):"#"===i?(s.fragment="",c=Le):i!==r&&(s.path[0]+=ue(i,oe));break;case Pe:t||"#"!==i?i!==r&&("'"===i&&s.isSpecial()?s.query+="%27":s.query+="#"===i?"%23":ue(i,oe)):(s.fragment="",c=Le);break;case Le:i!==r&&(s.fragment+=ue(i,ie))}f++}},parseHost:function(e){var t,n,r;if("["===L(e,0)){if("]"!==L(e,e.length-1))return"Invalid host";if(!(t=function(e){var t,n,r,o,i,a,l,u=[0,0,0,0,0,0,0,0],s=0,c=null,f=0,d=function(){return L(e,f)};if(":"===d()){if(":"!==L(e,1))return;f+=2,c=++s}for(;d();){if(8===s)return;if(":"!==d()){for(t=n=0;n<4&&z(X,d());)t=16*t+j(d(),16),f++,n++;if("."===d()){if(0===n)return;if(f-=n,s>6)return;for(r=0;d();){if(o=null,r>0){if(!("."===d()&&r<4))return;f++}if(!z(K,d()))return;for(;z(K,d());){if(i=j(d(),10),null===o)o=i;else{if(0===o)return;o=10*o+i}if(o>255)return;f++}u[s]=256*u[s]+o,2!==++r&&4!==r||s++}if(4!==r)return;break}if(":"===d()){if(f++,!d())return}else if(d())return;u[s++]=t}else{if(null!==c)return;f++,c=++s}}if(null!==c)for(a=s-c,s=7;0!==s&&a>0;)l=u[s],u[s--]=u[c+a-1],u[c+--a]=l;else if(8!==s)return;return u}(V(e,1,-1))))return"Invalid host";this.host=t}else if(this.isSpecial()){if(e=m(e),z(J,e))return"Invalid host";if(null===(t=function(e){var t,n,r,o,i,a,l,u=F(e,".");if(u.length&&""===u[u.length-1]&&u.length--,(t=u.length)>4)return e;for(n=[],r=0;r1&&"0"===L(o,0)&&(i=z(G,o)?16:8,o=V(o,8===i?1:2)),""===o)a=0;else{if(!z(10===i?Y:8===i?q:X,o))return e;a=j(o,i)}R(n,a)}for(r=0;r=P(256,5-t))return null}else if(a>255)return null;for(l=I(n),r=0;r1?arguments[1]:void 0,r=O(t,new ze(e,!1,n));i||(t.href=r.serialize(),t.origin=r.getOrigin(),t.protocol=r.getProtocol(),t.username=r.getUsername(),t.password=r.getPassword(),t.host=r.getHost(),t.hostname=r.getHostname(),t.port=r.getPort(),t.pathname=r.getPathname(),t.search=r.getSearch(),t.searchParams=r.getSearchParams(),t.hash=r.getHash())},De=Ne.prototype,Ie=function(e,t){return{get:function(){return E(this)[e]()},set:t&&function(e){return E(this)[t](e)},configurable:!0,enumerable:!0}};if(i&&(f(De,"href",Ie("serialize","setHref")),f(De,"origin",Ie("getOrigin")),f(De,"protocol",Ie("getProtocol","setProtocol")),f(De,"username",Ie("getUsername","setUsername")),f(De,"password",Ie("getPassword","setPassword")),f(De,"host",Ie("getHost","setHost")),f(De,"hostname",Ie("getHostname","setHostname")),f(De,"port",Ie("getPort","setPort")),f(De,"pathname",Ie("getPathname","setPathname")),f(De,"search",Ie("getSearch","setSearch")),f(De,"searchParams",Ie("getSearchParams")),f(De,"hash",Ie("getHash","setHash"))),c(De,"toJSON",(function(){return E(this).serialize()}),{enumerable:!0}),c(De,"toString",(function(){return E(this).serialize()}),{enumerable:!0}),A){var Re=A.createObjectURL,He=A.revokeObjectURL;Re&&c(Ne,"createObjectURL",u(Re,A)),He&&c(Ne,"revokeObjectURL",u(He,A))}x(Ne,"URL"),o({global:!0,constructor:!0,forced:!a,sham:!i},{URL:Ne})},function(e,t,n){"use strict";var r=n(21),o=/[^\0-\u007E]/,i=/[.\u3002\uFF0E\uFF61]/g,a="Overflow: input needs wider integers to process",l=RangeError,u=r(i.exec),s=Math.floor,c=String.fromCharCode,f=r("".charCodeAt),d=r([].join),p=r([].push),h=r("".replace),v=r("".split),g=r("".toLowerCase),y=function(e){return e+22+75*(e<26)},m=function(e,t,n){var r=0;for(e=n?s(e/700):e>>1,e+=s(e/t);e>455;)e=s(e/35),r+=36;return s(r+36*e/(e+38))},b=function(e){var t,n,r=[],o=(e=function(e){for(var t=[],n=0,r=e.length;n=55296&&o<=56319&&n=i&&ns((2147483647-u)/x))throw new l(a);for(u+=(b-i)*x,i=b,t=0;t2147483647)throw new l(a);if(n===i){for(var w=u,_=36;;){var C=_<=h?1:_>=h+26?26:_-h;if(wn||c!=c?u*(1/0):u*c}},function(e,t,n){"use strict";e.exports=Math.sign||function(e){var t=+e;return 0===t||t!=t?t:t<0?-1:1}},function(e,t,n){"use strict";var r=Array,o=Math.abs,i=Math.pow,a=Math.floor,l=Math.log,u=Math.LN2;e.exports={pack:function(e,t,n){var s,c,f,d=r(n),p=8*n-t-1,h=(1<>1,g=23===t?i(2,-24)-i(2,-77):0,y=e<0||0===e&&1/e<0?1:0,m=0;for((e=o(e))!=e||e===1/0?(c=e!=e?1:0,s=h):(s=a(l(e)/u),e*(f=i(2,-s))<1&&(s--,f*=2),(e+=s+v>=1?g/f:g*i(2,1-v))*f>=2&&(s++,f/=2),s+v>=h?(c=0,s=h):s+v>=1?(c=(e*f-1)*i(2,t),s+=v):(c=e*i(2,v-1)*i(2,t),s=0));t>=8;)d[m++]=255&c,c/=256,t-=8;for(s=s<0;)d[m++]=255&s,s/=256,p-=8;return d[--m]|=128*y,d},unpack:function(e,t){var n,r=e.length,o=8*r-t-1,a=(1<>1,u=o-7,s=r-1,c=e[s--],f=127&c;for(c>>=7;u>0;)f=256*f+e[s--],u-=8;for(n=f&(1<<-u)-1,f>>=-u,u+=t;u>0;)n=256*n+e[s--],u-=8;if(0===f)f=1-l;else{if(f===a)return n?NaN:c?-1/0:1/0;n+=i(2,t),f-=l}return(c?-1:1)*n*i(2,f-t)}}},function(e,t,n){"use strict";var r=n(8),o=n(25),i=n(39),a=n(33),l=n(4795),u=n(811),s=n(1451),c=n(254),f=n(142),d=n(102),p=n(1538),h=n(140),v=n(1453),g=n(1931),y=n(4797),m=n(266),b=n(53),x=n(202),w=n(54),_=n(166),C=n(115),O=n(107),E=n(204),M=n(149).f,S=n(4798),A=n(113).forEach,k=n(269),j=n(114),T=n(70),P=n(116),L=n(1455),z=n(101),N=n(206),D=z.get,I=z.set,R=z.enforce,H=T.f,B=P.f,F=o.RangeError,V=s.ArrayBuffer,$=V.prototype,U=s.DataView,Z=u.NATIVE_ARRAY_BUFFER_VIEWS,W=u.TYPED_ARRAY_TAG,K=u.TypedArray,G=u.TypedArrayPrototype,q=u.isTypedArray,Y=function(e,t){j(e,t,{configurable:!0,get:function(){return D(this)[t]}})},X=function(e){var t;return O($,e)||"ArrayBuffer"===(t=x(e))||"SharedArrayBuffer"===t},J=function(e,t){return q(e)&&!_(t)&&t in e&&p(+t)&&t>=0},Q=function(e,t){return t=m(t),J(e,t)?f(2,e[t]):B(e,t)},ee=function(e,t,n){return t=m(t),!(J(e,t)&&w(n)&&b(n,"value"))||b(n,"get")||b(n,"set")||n.configurable||b(n,"writable")&&!n.writable||b(n,"enumerable")&&!n.enumerable?H(e,t,n):(e[t]=n.value,e)};a?(Z||(P.f=Q,T.f=ee,Y(G,"buffer"),Y(G,"byteOffset"),Y(G,"byteLength"),Y(G,"length")),r({target:"Object",stat:!0,forced:!Z},{getOwnPropertyDescriptor:Q,defineProperty:ee}),e.exports=function(e,t,n){var a=e.match(/\d+/)[0]/8,u=e+(n?"Clamped":"")+"Array",s="get"+e,f="set"+e,p=o[u],m=p,b=m&&m.prototype,x={},_=function(e,t){H(e,t,{get:function(){return function(e,t){var n=D(e);return n.view[s](t*a+n.byteOffset,!0)}(this,t)},set:function(e){return function(e,t,r){var o=D(e);o.view[f](t*a+o.byteOffset,n?y(r):r,!0)}(this,t,e)},enumerable:!0})};Z?l&&(m=t((function(e,t,n,r){return c(e,b),N(w(t)?X(t)?void 0!==r?new p(t,g(n,a),r):void 0!==n?new p(t,g(n,a)):new p(t):q(t)?L(m,t):i(S,m,t):new p(v(t)),e,m)})),E&&E(m,K),A(M(p),(function(e){e in m||d(m,e,p[e])})),m.prototype=b):(m=t((function(e,t,n,r){c(e,b);var o,l,u,s=0,f=0;if(w(t)){if(!X(t))return q(t)?L(m,t):i(S,m,t);o=t,f=g(n,a);var d=t.byteLength;if(void 0===r){if(d%a)throw new F("Wrong length");if((l=d-f)<0)throw new F("Wrong length")}else if((l=h(r)*a)+f>d)throw new F("Wrong length");u=l/a}else u=v(t),o=new V(l=u*a);for(I(e,{buffer:o,byteOffset:f,byteLength:l,length:u,view:new U(o)});s255?255:255&t}},function(e,t,n){"use strict";var r=n(141),o=n(39),i=n(345),a=n(77),l=n(99),u=n(339),s=n(262),c=n(347),f=n(1932),d=n(811).aTypedArrayConstructor,p=n(1454);e.exports=function(e){var t,n,h,v,g,y,m,b,x=i(this),w=a(e),_=arguments.length,C=_>1?arguments[1]:void 0,O=void 0!==C,E=s(w);if(E&&!c(E))for(b=(m=u(w,E)).next,w=[];!(y=o(b,m)).done;)w.push(y.value);for(O&&_>2&&(C=r(C,arguments[2])),n=l(w),h=new(d(x))(n),v=f(h),t=0;n>t;t++)g=O?C(w[t],t):w[t],h[t]=v?p(g):+g;return h}},function(e,t,n){"use strict";var r=n(77),o=n(256),i=n(99),a=n(340),l=Math.min;e.exports=[].copyWithin||function(e,t){var n=r(this),u=i(n),s=o(e,u),c=o(t,u),f=arguments.length>2?arguments[2]:void 0,d=l((void 0===f?u:o(f,u))-c,u-s),p=1;for(c0;)c in n?n[s]=n[c]:a(n,s),s+=p,c+=p;return n}},function(e,t,n){"use strict";var r=n(1455),o=n(1246);e.exports=function(e,t){return r(o(e),t)}},function(e,t,n){"use strict";n(4802)},function(e,t,n){"use strict";var r=n(8),o=n(1451);r({global:!0,constructor:!0,forced:!n(1452)},{DataView:o.DataView})},function(e,t,n){"use strict";var r=n(33),o=n(114),i=n(1956),a=ArrayBuffer.prototype;r&&!("detached"in a)&&o(a,"detached",{configurable:!0,get:function(){return i(this)}})},function(e,t,n){"use strict";var r=n(8),o=n(1958);o&&r({target:"ArrayBuffer",proto:!0},{transfer:function(){return o(this,arguments.length?arguments[0]:void 0,!0)}})},function(e,t,n){"use strict";var r,o,i,a,l=n(25),u=n(1886),s=n(1959),c=l.structuredClone,f=l.ArrayBuffer,d=l.MessageChannel,p=!1;if(s)p=function(e){c(e,{transfer:[e]})};else if(f)try{d||(r=u("worker_threads"))&&(d=r.MessageChannel),d&&(o=new d,i=new f(2),a=function(e){o.port1.postMessage(null,[e])},2===i.byteLength&&(a(i),0===i.byteLength&&(p=a)))}catch(e){}e.exports=p},function(e,t,n){"use strict";var r=n(8),o=n(1958);o&&r({target:"ArrayBuffer",proto:!0},{transferToFixedLength:function(){return o(this,arguments.length?arguments[0]:void 0,!1)}})},function(e,t,n){"use strict";var r=n(811),o=n(99),i=n(112),a=r.aTypedArray;(0,r.exportTypedArrayMethod)("at",(function(e){var t=a(this),n=o(t),r=i(e),l=r>=0?r:n+r;return l<0||l>=n?void 0:t[l]}))},function(e,t,n){"use strict";var r=n(811),o=n(1960).findLast,i=r.aTypedArray;(0,r.exportTypedArrayMethod)("findLast",(function(e){return o(i(this),e,arguments.length>1?arguments[1]:void 0)}))},function(e,t,n){"use strict";var r=n(811),o=n(1960).findLastIndex,i=r.aTypedArray;(0,r.exportTypedArrayMethod)("findLastIndex",(function(e){return o(i(this),e,arguments.length>1?arguments[1]:void 0)}))},function(e,t,n){"use strict";var r=n(4811),o=n(811),i=o.aTypedArray,a=o.exportTypedArrayMethod,l=o.getTypedArrayConstructor;a("toReversed",(function(){return r(i(this),l(this))}))},function(e,t,n){"use strict";var r=n(99);e.exports=function(e,t){for(var n=r(e),o=new t(n),i=0;i=l||s<0)throw new i("Incorrect index");for(var c=new t(l),f=0;f1?"& ":"")+t[o],t=t.join(r>2?", ":" "),e.replace(n,"{\n/* [wrapped with "+t+"] */\n")}},function(e,t,n){var r=n(478),o=n(342),i=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]];e.exports=function(e,t){return r(i,(function(n){var r="_."+n[0];t&n[1]&&!o(e,r)&&e.push(r)})),e.sort()}},function(e,t,n){var r=n(337),o=n(211),i=Math.min;e.exports=function(e,t){for(var n=e.length,a=i(t.length,n),l=r(e);a--;){var u=t[a];e[a]=o(u,n)?l[u]:void 0}return e}},function(e,t,n){var r=n(488),o=n(1247),i=n(100);e.exports=function(e,t,n,a){var l=1&t,u=o(e);return function t(){for(var o=-1,s=arguments.length,c=-1,f=a.length,d=Array(f+s),p=this&&this!==i&&this instanceof t?u:e;++c-1},A.prototype.set=function(e,t){var n=this.__data__,r=j(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},k.prototype.clear=function(){this.__data__={hash:new S,map:new(C||A),string:new S}},k.prototype.delete=function(e){return L(this,e).delete(e)},k.prototype.get=function(e){return L(this,e).get(e)},k.prototype.has=function(e){return L(this,e).has(e)},k.prototype.set=function(e,t){return L(this,e).set(e,t),this};var N=I((function(e){var t;e=null==(t=e)?"":function(e){if("string"==typeof e)return e;if(B(e))return M?M.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(t);var n=[];return o.test(e)&&n.push(""),e.replace(i,(function(e,t,r,o){n.push(r?o.replace(a,"$1"):t||e)})),n}));function D(e){if("string"==typeof e||B(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function I(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a),a};return n.cache=new(I.Cache||k),n}I.Cache=k;var R=Array.isArray;function H(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function B(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==b.call(e)}e.exports=function(e,t,n){var r=null==e?void 0:T(e,t);return void 0===r?n:r}}).call(this,n(69))},function(e,t){var n=function(){this.Diff_Timeout=1,this.Diff_EditCost=4,this.Match_Threshold=.5,this.Match_Distance=1e3,this.Patch_DeleteThreshold=.5,this.Patch_Margin=4,this.Match_MaxBits=32};n.Diff=function(e,t){return[e,t]},n.prototype.diff_main=function(e,t,r,o){void 0===o&&(o=this.Diff_Timeout<=0?Number.MAX_VALUE:(new Date).getTime()+1e3*this.Diff_Timeout);var i=o;if(null==e||null==t)throw new Error("Null input. (diff_main)");if(e==t)return e?[new n.Diff(0,e)]:[];void 0===r&&(r=!0);var a=r,l=this.diff_commonPrefix(e,t),u=e.substring(0,l);e=e.substring(l),t=t.substring(l),l=this.diff_commonSuffix(e,t);var s=e.substring(e.length-l);e=e.substring(0,e.length-l),t=t.substring(0,t.length-l);var c=this.diff_compute_(e,t,a,i);return u&&c.unshift(new n.Diff(0,u)),s&&c.push(new n.Diff(0,s)),this.diff_cleanupMerge(c),c},n.prototype.diff_compute_=function(e,t,r,o){var i;if(!e)return[new n.Diff(1,t)];if(!t)return[new n.Diff(-1,e)];var a=e.length>t.length?e:t,l=e.length>t.length?t:e,u=a.indexOf(l);if(-1!=u)return i=[new n.Diff(1,a.substring(0,u)),new n.Diff(0,l),new n.Diff(1,a.substring(u+l.length))],e.length>t.length&&(i[0][0]=i[2][0]=-1),i;if(1==l.length)return[new n.Diff(-1,e),new n.Diff(1,t)];var s=this.diff_halfMatch_(e,t);if(s){var c=s[0],f=s[1],d=s[2],p=s[3],h=s[4],v=this.diff_main(c,d,r,o),g=this.diff_main(f,p,r,o);return v.concat([new n.Diff(0,h)],g)}return r&&e.length>100&&t.length>100?this.diff_lineMode_(e,t,o):this.diff_bisect_(e,t,o)},n.prototype.diff_lineMode_=function(e,t,r){var o=this.diff_linesToChars_(e,t);e=o.chars1,t=o.chars2;var i=o.lineArray,a=this.diff_main(e,t,!1,r);this.diff_charsToLines_(a,i),this.diff_cleanupSemantic(a),a.push(new n.Diff(0,""));for(var l=0,u=0,s=0,c="",f="";l=1&&s>=1){a.splice(l-u-s,u+s),l=l-u-s;for(var d=this.diff_main(c,f,!1,r),p=d.length-1;p>=0;p--)a.splice(l,0,d[p]);l+=d.length}s=0,u=0,c="",f=""}l++}return a.pop(),a},n.prototype.diff_bisect_=function(e,t,r){for(var o=e.length,i=t.length,a=Math.ceil((o+i)/2),l=a,u=2*a,s=new Array(u),c=new Array(u),f=0;fr);m++){for(var b=-m+h;b<=m-v;b+=2){for(var x=l+b,w=(M=b==-m||b!=m&&s[x-1]o)v+=2;else if(w>i)h+=2;else if(p){if((O=l+d-b)>=0&&O=(C=o-c[O]))return this.diff_bisectSplit_(e,t,M,w,r)}}for(var _=-m+g;_<=m-y;_+=2){for(var C,O=l+_,E=(C=_==-m||_!=m&&c[O-1]o)y+=2;else if(E>i)g+=2;else if(!p){if((x=l+d-_)>=0&&x=(C=o-C))return this.diff_bisectSplit_(e,t,M,w,r)}}}}return[new n.Diff(-1,e),new n.Diff(1,t)]},n.prototype.diff_bisectSplit_=function(e,t,n,r,o){var i=e.substring(0,n),a=t.substring(0,r),l=e.substring(n),u=t.substring(r),s=this.diff_main(i,a,!1,o),c=this.diff_main(l,u,!1,o);return s.concat(c)},n.prototype.diff_linesToChars_=function(e,t){var n=[],r={};function o(e){for(var t="",o=0,a=-1,l=n.length;ar?e=e.substring(n-r):nt.length?e:t,r=e.length>t.length?t:e;if(n.length<4||2*r.length=e.length?[r,i,a,l,c]:null}var a,l,u,s,c,f=i(n,r,Math.ceil(n.length/4)),d=i(n,r,Math.ceil(n.length/2));return f||d?(a=d?f&&f[4].length>d[4].length?f:d:f,e.length>t.length?(l=a[0],u=a[1],s=a[2],c=a[3]):(s=a[0],c=a[1],l=a[2],u=a[3]),[l,u,s,c,a[4]]):null},n.prototype.diff_cleanupSemantic=function(e){for(var t=!1,r=[],o=0,i=null,a=0,l=0,u=0,s=0,c=0;a0?r[o-1]:-1,l=0,u=0,s=0,c=0,i=null,t=!0)),a++;for(t&&this.diff_cleanupMerge(e),this.diff_cleanupSemanticLossless(e),a=1;a=h?(p>=f.length/2||p>=d.length/2)&&(e.splice(a,0,new n.Diff(0,d.substring(0,p))),e[a-1][1]=f.substring(0,f.length-p),e[a+1][1]=d.substring(p),a++):(h>=f.length/2||h>=d.length/2)&&(e.splice(a,0,new n.Diff(0,f.substring(0,h))),e[a-1][0]=1,e[a-1][1]=d.substring(0,d.length-h),e[a+1][0]=-1,e[a+1][1]=f.substring(h),a++),a++}a++}},n.prototype.diff_cleanupSemanticLossless=function(e){function t(e,t){if(!e||!t)return 6;var r=e.charAt(e.length-1),o=t.charAt(0),i=r.match(n.nonAlphaNumericRegex_),a=o.match(n.nonAlphaNumericRegex_),l=i&&r.match(n.whitespaceRegex_),u=a&&o.match(n.whitespaceRegex_),s=l&&r.match(n.linebreakRegex_),c=u&&o.match(n.linebreakRegex_),f=s&&e.match(n.blanklineEndRegex_),d=c&&t.match(n.blanklineStartRegex_);return f||d?5:s||c?4:i&&!l&&u?3:l||u?2:i||a?1:0}for(var r=1;r=d&&(d=p,s=o,c=i,f=a)}e[r-1][1]!=s&&(s?e[r-1][1]=s:(e.splice(r-1,1),r--),e[r][1]=c,f?e[r+1][1]=f:(e.splice(r+1,1),r--))}r++}},n.nonAlphaNumericRegex_=/[^a-zA-Z0-9]/,n.whitespaceRegex_=/\s/,n.linebreakRegex_=/[\r\n]/,n.blanklineEndRegex_=/\n\r?\n$/,n.blanklineStartRegex_=/^\r?\n\r?\n/,n.prototype.diff_cleanupEfficiency=function(e){for(var t=!1,r=[],o=0,i=null,a=0,l=!1,u=!1,s=!1,c=!1;a0?r[o-1]:-1,s=c=!1),t=!0)),a++;t&&this.diff_cleanupMerge(e)},n.prototype.diff_cleanupMerge=function(e){e.push(new n.Diff(0,""));for(var t,r=0,o=0,i=0,a="",l="";r1?(0!==o&&0!==i&&(0!==(t=this.diff_commonPrefix(l,a))&&(r-o-i>0&&0==e[r-o-i-1][0]?e[r-o-i-1][1]+=l.substring(0,t):(e.splice(0,0,new n.Diff(0,l.substring(0,t))),r++),l=l.substring(t),a=a.substring(t)),0!==(t=this.diff_commonSuffix(l,a))&&(e[r][1]=l.substring(l.length-t)+e[r][1],l=l.substring(0,l.length-t),a=a.substring(0,a.length-t))),r-=o+i,e.splice(r,o+i),a.length&&(e.splice(r,0,new n.Diff(-1,a)),r++),l.length&&(e.splice(r,0,new n.Diff(1,l)),r++),r++):0!==r&&0==e[r-1][0]?(e[r-1][1]+=e[r][1],e.splice(r,1)):r++,i=0,o=0,a="",l=""}""===e[e.length-1][1]&&e.pop();var u=!1;for(r=1;rt));n++)i=r,a=o;return e.length!=n&&-1===e[n][0]?a:a+(t-i)},n.prototype.diff_prettyHtml=function(e){for(var t=[],n=/&/g,r=//g,i=/\n/g,a=0;a");switch(l){case 1:t[a]=''+u+"";break;case-1:t[a]=''+u+"";break;case 0:t[a]=""+u+""}}return t.join("")},n.prototype.diff_text1=function(e){for(var t=[],n=0;nthis.Match_MaxBits)throw new Error("Pattern too long for this browser.");var r=this.match_alphabet_(t),o=this;function i(e,r){var i=e/t.length,a=Math.abs(n-r);return o.Match_Distance?i+a/o.Match_Distance:a?1:i}var a=this.Match_Threshold,l=e.indexOf(t,n);-1!=l&&(a=Math.min(i(0,l),a),-1!=(l=e.lastIndexOf(t,n+t.length))&&(a=Math.min(i(0,l),a)));var u,s,c=1<=h;y--){var m=r[e.charAt(y-1)];if(g[y]=0===p?(g[y+1]<<1|1)&m:(g[y+1]<<1|1)&m|(f[y+1]|f[y])<<1|1|f[y+1],g[y]&c){var b=i(p,y-1);if(b<=a){if(a=b,!((l=y-1)>n))break;h=Math.max(1,2*n-l)}}}if(i(p+1,n)>a)break;f=g}return l},n.prototype.match_alphabet_=function(e){for(var t={},n=0;n2&&(this.diff_cleanupSemantic(i),this.diff_cleanupEfficiency(i));else if(e&&"object"==typeof e&&void 0===t&&void 0===r)i=e,o=this.diff_text1(i);else if("string"==typeof e&&t&&"object"==typeof t&&void 0===r)o=e,i=t;else{if("string"!=typeof e||"string"!=typeof t||!r||"object"!=typeof r)throw new Error("Unknown call format to patch_make.");o=e,i=r}if(0===i.length)return[];for(var a=[],l=new n.patch_obj,u=0,s=0,c=0,f=o,d=o,p=0;p=2*this.Patch_Margin&&u&&(this.patch_addContext_(l,f),a.push(l),l=new n.patch_obj,u=0,f=d,s=c)}1!==h&&(s+=v.length),-1!==h&&(c+=v.length)}return u&&(this.patch_addContext_(l,f),a.push(l)),a},n.prototype.patch_deepCopy=function(e){for(var t=[],r=0;rthis.Match_MaxBits?-1!=(a=this.match_main(t,s.substring(0,this.Match_MaxBits),u))&&(-1==(c=this.match_main(t,s.substring(s.length-this.Match_MaxBits),u+s.length-this.Match_MaxBits))||a>=c)&&(a=-1):a=this.match_main(t,s,u),-1==a)o[i]=!1,r-=e[i].length2-e[i].length1;else if(o[i]=!0,r=a-u,s==(l=-1==c?t.substring(a,a+s.length):t.substring(a,c+this.Match_MaxBits)))t=t.substring(0,a)+this.diff_text2(e[i].diffs)+t.substring(a+s.length);else{var f=this.diff_main(s,l,!1);if(s.length>this.Match_MaxBits&&this.diff_levenshtein(f)/s.length>this.Patch_DeleteThreshold)o[i]=!1;else{this.diff_cleanupSemanticLossless(f);for(var d,p=0,h=0;ha[0][1].length){var l=t-a[0][1].length;a[0][1]=r.substring(a[0][1].length)+a[0][1],i.start1-=l,i.start2-=l,i.length1+=l,i.length2+=l}if(0==(a=(i=e[e.length-1]).diffs).length||0!=a[a.length-1][0])a.push(new n.Diff(0,r)),i.length1+=t,i.length2+=t;else if(t>a[a.length-1][1].length){l=t-a[a.length-1][1].length;a[a.length-1][1]+=r.substring(0,l),i.length1+=l,i.length2+=l}return r},n.prototype.patch_splitMax=function(e){for(var t=this.Match_MaxBits,r=0;r2*t?(u.length1+=f.length,i+=f.length,s=!1,u.diffs.push(new n.Diff(c,f)),o.diffs.shift()):(f=f.substring(0,t-u.length1-this.Patch_Margin),u.length1+=f.length,i+=f.length,0===c?(u.length2+=f.length,a+=f.length):s=!1,u.diffs.push(new n.Diff(c,f)),f==o.diffs[0][1]?o.diffs.shift():o.diffs[0][1]=o.diffs[0][1].substring(f.length))}l=(l=this.diff_text2(u.diffs)).substring(l.length-this.Patch_Margin);var d=this.diff_text1(o.diffs).substring(0,this.Patch_Margin);""!==d&&(u.length1+=d.length,u.length2+=d.length,0!==u.diffs.length&&0===u.diffs[u.diffs.length-1][0]?u.diffs[u.diffs.length-1][1]+=d:u.diffs.push(new n.Diff(0,d))),s||e.splice(++r,0,u)}}},n.prototype.patch_toText=function(e){for(var t=[],n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n=C.F1&&t<=C.F12)return!1;switch(t){case C.ALT:case C.CAPS_LOCK:case C.CONTEXT_MENU:case C.CTRL:case C.DOWN:case C.END:case C.ESC:case C.HOME:case C.INSERT:case C.LEFT:case C.MAC_FF_META:case C.META:case C.NUMLOCK:case C.NUM_CENTER:case C.PAGE_DOWN:case C.PAGE_UP:case C.PAUSE:case C.PRINT_SCREEN:case C.RIGHT:case C.SHIFT:case C.UP:case C.WIN_KEY:case C.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=C.ZERO&&e<=C.NINE)return!0;if(e>=C.NUM_ZERO&&e<=C.NUM_MULTIPLY)return!0;if(e>=C.A&&e<=C.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case C.SPACE:case C.QUESTION_MARK:case C.NUM_PLUS:case C.NUM_MINUS:case C.NUM_PERIOD:case C.NUM_DIVISION:case C.SEMICOLON:case C.DASH:case C.EQUALS:case C.COMMA:case C.PERIOD:case C.SLASH:case C.APOSTROPHE:case C.SINGLE_QUOTE:case C.OPEN_SQUARE_BRACKET:case C.BACKSLASH:case C.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},O=C;function E(e){return(E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function M(e){var t=function(e,t){if("object"!==E(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==E(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===E(t)?t:String(t)}function S(e,t,n){return(t=M(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function A(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function k(e){for(var t=1;t
    ")}))}})}}},{key:"startPolling",value:function(e){this.poll(),this.pollingInterval&&clearInterval(this.pollingInterval),this.pollingInterval=setInterval(this.poll,e||this.state.pollingFrequency)}},{key:"stopPolling",value:function(){this.setState({polling:!1}),clearInterval(this.pollingInterval)}},{key:"addPollingQuery",value:(a=(0,o.default)(u.default.mark((function e(){var t,a,r,n;return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=this.getQueryParams(),r={from:0,start_time:Date.now()-this.state.pollingFrequency,end_time:Date.now()},e.next=4,this.fetchQuery(q(q({},a),r));case 4:n=e.sent,(t=this.logs).push.apply(t,(0,l.default)(n.reverse())),this.scrollTo(this.logs.length);case 7:case"end":return e.stop()}}),e,this)}))),function(){return a.apply(this,arguments)})},{key:"scrollTo",value:function(e){this.tableRef.current.scrollToRow(e)}},{key:"render",value:function(){var e=this.state.showHistogram;return T.default.createElement("div",{className:Y.default.container},T.default.createElement(z.Loading,{spinning:this.loading},this.renderSearchBar()),T.default.createElement("div",{className:Y.default.searchResult},T.default.createElement(z.Loading,{spinning:this.loading},T.default.createElement(T.default.Fragment,null,this.renderToolBar(),e&&this.renderTimeChart())),this.renderTable()))}},{key:"renderSearchBar",value:function(){return T.default.createElement("div",{className:Y.default.searchBar},globals.app.isMultiCluster&&T.default.createElement(z.Select,{value:this.props.searchInputState.cluster,onChange:this.changeClusterChange,className:Y.default.select,valueRenderer:this.clusterRenderer,options:this.props.clustersOpts}),T.default.createElement(B.default,{className:Y.default.searchInput,onChange:this.onSearchParamsChange,params:this.props.searchInputState,dropDownItems:{log_query:{icon:"magnifier",text:t("KEYWORD")},namespace_query:{icon:"project",text:t("PROJECT")},workload_query:{icon:"backup",text:t("WORKLOAD")},pod_query:{icon:"pod",text:t("POD")},container_query:{icon:"docker",text:t("CONTAINER")}}}),T.default.createElement(z.Select,{className:Y.default.select,value:this.props.searchInputState.queryMode,onChange:this.changeQueryMode,options:this.queryModeOptions}))}},{key:"renderToolBar",value:function(){var e=this.state,a=e.showHistogram,r=e.polling,n=e.pollingFrequency;return T.default.createElement("div",{className:Y.default.toolbar},T.default.createElement("div",null,t("TIME_TOPOLOGY"),T.default.createElement("span",{className:Y.default.showHistogramBtn,onClick:this.toggleHistogram},a?t("DISPLAY"):t("HIDE"),T.default.createElement(z.Icon,{name:"caret-down",type:"light"}))),T.default.createElement("div",{className:Y.default.operation},T.default.createElement("span",{className:Y.default.pollingBtn,onClick:this.togglePolling},T.default.createElement(z.Tooltip,{content:r?t("STOP_REAL_TIME_CONTAINER_LOG"):t("START_REAL_TIME_CONTAINER_LOG")},T.default.createElement(z.Icon,{name:r?"stop":"start",type:"light",size:16}))),T.default.createElement("span",{className:Y.default.exportButton},T.default.createElement(z.Dropdown,{content:this.renderMoreMenu,trigger:"click",placement:"bottomRight"},T.default.createElement("div",{className:Y.default.exportText},T.default.createElement("span",{className:Y.default.text},t("LOG_EXPORT")),T.default.createElement(z.Icon,{name:"more",type:"light"})))),T.default.createElement("span",{className:Y.default.frequencyOpts},T.default.createElement("span",null," ",t("REFRESH_RATE_COLON")),T.default.createElement(z.Select,{value:n,onChange:this.changeFrequency,className:Y.default.frequencyOptions,options:this.frequencyOptions}))))}},{key:"renderTimeChart",value:function(){return T.default.createElement("div",{className:Y.default.chartContainer},T.default.createElement("div",{className:Y.default.recentSummary},T.default.createElement("h2",{className:Y.default.count},this.histogramStore.logsCount),T.default.createElement("p",null,t("SEARCH_RESULTS"))),T.default.createElement("div",{className:Y.default.chart},T.default.createElement(V.default,{xKey:"time",data:(0,w.toJS)(this.histogramStore.histograms),legend:[["count",t("CONTAINER_LOG_COUNT")]],interval:this.histogramStore.interval,onBarClick:this.selectedDurationParameter})))}},{key:"renderTable",value:function(){return T.default.createElement("div",{className:Y.default.table},T.default.createElement(F.default,{onScroll:this.onTableScrollTop,onTrClick:this.selectLog,cols:this.tableCols,data:this.logs,tableRef:this.tableRef}))}},{key:"defaultDuration",get:function(){return{start_time:0,end_time:Date.now(),interval:"1d"}}},{key:"duration",get:function(){var e=(this.props||{}).searchInputState,t=Date.now(),a=e.start,r=e.end,n=e.step;return a?{start_time:(0,M.default)([1e3*a,t]),end_time:(0,M.default)([1e3*r,t]),interval:n}:this.defaultDuration}}]),h}(T.default.Component),E=(0,v.default)(y.prototype,"tableCols",[w.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[{thead:t("TIME"),key:"time",content:function(e){return"[".concat((0,I.default)(e.time).format("YYYY-MM-DD HH:mm:ss"),"]")},hidden:!1},{thead:t("PROJECT"),key:"project",content:this.renderHightLightMatchTd({resKey:"namespace",searchKey:["namespace_query"]}),hidden:!1},{thead:t("POD"),key:"pod",hidden:!1,content:this.renderHightLightMatchTd({resKey:"pod",searchKey:["pod_query","workload_query"]})},{thead:t("CONTAINER"),key:"container",hidden:!0,content:this.renderHightLightMatchTd({resKey:"container",searchKey:["container_query"]})},{thead:t("LOG"),key:"log",className:Y.default.logItem,content:this.renderHightLightMatchLogTd({resKey:"log",searchKey:["log_query"],handler:G.esMark}),mustShow:!0}]}}),b=(0,v.default)(y.prototype,"logs",[w.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),_=(0,v.default)(y.prototype,"loading",[w.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),(0,v.default)(y.prototype,"refreshQuery",[w.action],Object.getOwnPropertyDescriptor(y.prototype,"refreshQuery"),y.prototype),(0,v.default)(y.prototype,"fetchQuery",[w.action],Object.getOwnPropertyDescriptor(y.prototype,"fetchQuery"),y.prototype),(0,v.default)(y.prototype,"fetchHistogram",[w.action],Object.getOwnPropertyDescriptor(y.prototype,"fetchHistogram"),y.prototype),O=(0,v.default)(y.prototype,"selectedDurationParameter",[w.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(t){var a,r,n,l,u,o=t.time,i=void 0===o?0:o,c=e.histogramStore.interval,s=e.props.searchInputState;s.durationAlias="",s.end=Math.ceil(i/1e3)+(a=c.match(/(\d+)(\w+)/),r=(0,N.default)(a,3),n=r[1],l=void 0===n?0:n,u=r[2],l*{s:1,m:60,h:3600,d:86400}[void 0===u?"s":u]),s.start=Math.ceil(i/1e3),s.step=e.getNextStepLevel(c),e.fetchHistogram(),e.refreshQuery()}}}),S=(0,v.default)(y.prototype,"onTableScrollTop",[w.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(t){var a=t.scrollTop,r=e.queryStore,n=r.from,l=r.size,u=r.total;0===a&&u>n+l&&e.loadMoreLogs()}}}),(0,v.default)(y.prototype,"loadMoreLogs",[w.action],Object.getOwnPropertyDescriptor(y.prototype,"loadMoreLogs"),y.prototype),C=(0,v.default)(y.prototype,"toggleHistogram",[w.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(){e.setState((function(e){return{showHistogram:!e.showHistogram}}))}}}),D=(0,v.default)(y.prototype,"togglePolling",[w.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(){var t=e.state.polling;t?e.stopPolling():e.startPolling(),e.setState({polling:!t})}}}),(0,v.default)(y.prototype,"addPollingQuery",[w.action],Object.getOwnPropertyDescriptor(y.prototype,"addPollingQuery"),y.prototype),k=(0,v.default)(y.prototype,"changeFrequency",[w.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(t){e.setState({pollingFrequency:t}),e.state.polling&&(e.stopPolling(),e.startPolling(t))}}}),g=y))||g;a.default=X},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,a){e.exports={table:"_31DHxUvHF9cvrtMF8hZ1NJ",body:"_1o0OrXH49u7IWnn__jySDi",header:"_3d3ile0MQ76mzy4gKMKVGa",headerItems:"cBGvp-qF5E0-Zn-DV66BU",visibleBtn:"_1QLOXkaGohLi2bLbAWcJjT",dropdown:"_16GV2vWPgU-_LY-TSI-nEL",visibleItem:"_10IfOBGBtVJ2cWMKKLCURw",tr:"_3wpavJr72BCdw4FWfpnkOc",bodyItems:"_1Jb5Hf9bhyeHQD05-MYz5N"}},function(e,t,a){e.exports={searchBar:"_JTlDkrfohSwIxPpX97wp",searchInput:"_25v4Uq6VdGeubmXGfPRsa6",select:"_3t4uAxkZ2BFOTl4foQ1DRo",searchResult:"_3li-Ch_QP-SfD5vjzDIXgd",toolbar:"_1wFZR-2jbDGJY79Klx4L11",operation:"_23II8bjJaDDga7SzCWyMm7",exportButton:"_3eZWtrM_1V15_kaHWj-DpL",exportText:"_8g5V39tYUe7rdh7ZPduAB",text:"_1DLrO1c0pV2m8b_28dUerc",menuLinkContent:"LsDuLg9SzYCwxyLiKzBsS",frequencyOpts:"_3gotqRkYjzqimbLSXvXXoe",frequencyOptions:"_2FKKxtgN7QWnOcFKcoW-yl",chartContainer:"_1TbzGgX6Ll6A-GDc4T4Ad",recentSummary:"_32mzAeyZriH5v29CxUBHw0",chart:"_39jXgnORNLHHwWrfolFLAT",table:"_1LzMkW6YYbyYTptsNE4-Xa",logItem:"_1y2_hopFflOw1UUWDuImRk",count:"_3t6_PUErus14gjlZ0dSd0d",showHistogramBtn:"_9d9RtZ1b011VOdyFhrNMY",pollingBtn:"_1LWeyfeCE0ECAs__57lhjh",container:"_36atrKU0dMxQaHnt0CMWwj",hightLightMatch:"_2jhV5b7tn8RPILbYxuQt7g",hightLog:"_9VNSgJg53gFYpEK1pk5Co"}},function(e,a,r){"use strict";var n=r(20);r(12),r(5),r(11),r(31),r(6),r(86),r(18),r(48),r(16),r(9),r(13),r(10),r(4),r(23),r(17),r(818),r(7),r(110),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(45),r(5),r(11),r(31),r(6),r(86),r(18),r(28),r(245),r(48),r(859),r(442),r(42),r(16),r(34),r(15),r(9),r(13),r(10),r(4),r(22),r(23),r(57),r(17),r(818),r(7),r(110);var l=n(r(61)),u=n(r(43));r(41);var o,i,c,s,f,d,p=n(r(44)),m=n(r(30)),h=n(r(65)),v=n(r(36)),g=n(r(37)),y=n(r(88)),E=n(r(55)),b=n(r(56)),_=n(r(51)),O=n(r(49)),S=(n(r(66)),n(r(0))),C=n(r(243)),D=n(r(3)),k=r(239),N=r(14),T=n(r(1124)),R=n(r(26)),w=r(186),I=n(r(452)),M=n(r(439)),P=n(r(1768)),A=r(881),j=n(r(3525)),L=n(r(3527));function x(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function U(e){for(var t=1;t=r){var n=a.logStore,l=n.from,u=n.size;n.total>l+u&&a.loadMoreLogs()}},a.pre=function(){a.props.formStepState.pre()},a.clearQuery=function(){a.setState({query:""},(function(){a.refreshLogs()}))},a.renderMoreMenu=function(){var e=a.logStore,r=e.pods,n=e.containers,l=e.log_query,u=e.startTime,o=e.endTime,i=e.namespaces,c={cluster:a.props.searchInputState.cluster,namespaces:i,pods:r,containers:n,log_query:l,start_time:u,end_time:o},s=[S.default.createElement(w.Menu.MenuItem,{key:"asc"},S.default.createElement("span",{className:L.default.menuLinkContent},S.default.createElement("a",{href:a.logStore.exportLinkFactory(U(U({},c),{},{sort:"asc"})),download:!0},t("ASC_EXPORT")))),S.default.createElement(w.Menu.MenuItem,{key:"desc"},S.default.createElement("span",{className:L.default.menuLinkContent},S.default.createElement("a",{href:a.logStore.exportLinkFactory(U(U({},c),{},{sort:"desc"})),download:!0},t("DESC_EXPORT"))))];return S.default.createElement(w.Menu,null,s)};var r=a.props.detailState,n=r.pod,l=r.container,u=r.namespace,o=r.log,i=r.time,p=new Date(i).getTime();return a.logStore=new P.default({sort:"desc",pods:n,namespaces:u,containers:l,size:100,startTime:p-1e3,endTime:p+1e3}),a.podStore=new I.default,a.projectStore=new M.default,a.state={pollingFrequency:5e3,polling:!1,query:o},a}return(0,g.default)(_,[{key:"startPolling",value:(m=(0,p.default)(u.default.mark((function e(){var t,a=this;return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=Date.now(),e.next=3,this.fetchLogs({end_time:t,start_time:t-6e4,from:0});case 3:this.logs=e.sent,this.interval=setInterval((function(){a.addPollingLogs()}),this.state.pollingFrequency);case 5:case"end":return e.stop()}}),e,this)}))),function(){return m.apply(this,arguments)})},{key:"addPollingLogs",value:(i=(0,p.default)(u.default.mark((function e(){var t,a,r;return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=Date.now(),e.next=3,this.fetchLogs({end_time:a,start_time:a-this.state.pollingFrequency,from:0});case 3:r=e.sent,(t=this.logs).unshift.apply(t,(0,l.default)(r)),this.scrollToBottom();case 6:case"end":return e.stop()}}),e,this)}))),function(){return i.apply(this,arguments)})},{key:"scrollToBottom",value:function(){var e=this.logWindow.current;e.scrollTop=e.scrollHeight}},{key:"loadMoreLogs",value:(o=(0,p.default)(u.default.mark((function e(){var t,a,r,n,o;return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=this.logStore,r=a.from,n=a.size,this.logStore.from=r+n,e.next=4,this.fetchLogs();case 4:o=e.sent,(t=this.logs).push.apply(t,(0,l.default)(o));case 6:case"end":return e.stop()}}),e,this)}))),function(){return o.apply(this,arguments)})},{key:"getPodContainers",value:function(e){var t=this.podStore.list.data.find((function(t){return t.name===e}))||{};return(0,R.default)(t,"containers",[])}},{key:"componentDidMount",value:function(){this.fetchPods(),this.fetchProject(),this.initialFetch()}},{key:"componentWillUnmount",value:function(){this.stopPolling()}},{key:"initialFetch",value:(n=(0,p.default)(u.default.mark((function e(){return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.fetchLogs();case 2:this.logs=e.sent;case 3:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"refreshLogs",value:(r=(0,p.default)(u.default.mark((function e(){return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.logStore.from=0,this.logStore.log_query=this.state.query,this.setState({polling:!1}),this.stopPolling(),e.next=6,this.fetchLogs();case 6:this.logs=e.sent;case 7:case"end":return e.stop()}}),e,this)}))),function(){return r.apply(this,arguments)})},{key:"fetchLogs",value:(a=(0,p.default)(u.default.mark((function e(){var t,a,r=arguments;return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=r.length>0&&void 0!==r[0]?r[0]:{},a=this.props.searchInputState.cluster,e.next=4,this.logStore.fetch(U(U({},t),{},{cluster:a}));case 4:return e.abrupt("return",this.logStore.records);case 5:case"end":return e.stop()}}),e,this)}))),function(){return a.apply(this,arguments)})},{key:"fetchProject",value:function(){var e=this.props.detailState.namespace,t=this.props.searchInputState.cluster;this.projectStore.fetchDetail({name:e,namespace:e,cluster:t},(function(){}))}},{key:"fetchPods",value:function(){var e=this.props.detailState.namespace,t=this.props.searchInputState.cluster;this.podStore.fetchList({cluster:t,namespace:e,limit:-1})}},{key:"render",value:function(){return S.default.createElement("div",{className:L.default.container},S.default.createElement("div",{className:L.default.article},this.renderSummary(),this.renderLog()))}},{key:"renderLog",value:function(){var e=this.state.polling;return S.default.createElement("div",{className:L.default.log},S.default.createElement("div",{className:(0,D.default)(L.default.toolbar,this.state.polling?L.default.pollingMode:"")},this.state.polling||this.renderDurationSelect(),this.renderSearchInput(),this.renderPollingBtn(),this.renderPollingOpts(),this.renderExportBtn()),S.default.createElement("div",{className:L.default.terminal,onScroll:e?null:this.onLogScroll,ref:this.logWindow},this.renderTerminal()))}},{key:"renderPollingOpts",value:function(){return S.default.createElement("div",{className:L.default.frequencyOpts},S.default.createElement(w.Select,{options:this.pollingFrequencyOpts,value:this.state.pollingFrequency,onChange:this.onFrequencySelect}))}},{key:"renderPollingBtn",value:function(){return S.default.createElement("div",{className:L.default.pollingBtn,onClick:this.togglePolling},S.default.createElement(w.Tooltip,{content:this.state.polling?t("STOP"):t("START")},S.default.createElement(w.Icon,{type:"light",name:this.state.polling?"stop":"start"})))}},{key:"renderExportBtn",value:function(){return S.default.createElement("div",{className:L.default.operation},S.default.createElement(w.Dropdown,{content:this.renderMoreMenu,trigger:"click",placement:"bottomRight"},S.default.createElement("div",{className:L.default.exportText},S.default.createElement("span",{className:L.default.text},t("LOG_EXPORT")),S.default.createElement(w.Icon,{name:"more",type:"light"}))))}},{key:"renderDurationSelect",value:function(){return S.default.createElement("div",{className:L.default.duration},S.default.createElement(j.default,{duration:this.logStore,onChange:this.onDurationChange}))}},{key:"renderSearchInput",value:function(){return S.default.createElement("div",{className:L.default.input},S.default.createElement(w.Icon,{name:"magnifier",type:"light"}),S.default.createElement("input",{type:"text",onKeyUp:this.queryLog,value:this.state.query,onChange:this.changeSearchLog}),this.state.query&&S.default.createElement(w.Icon,{className:L.default.clearQuery,name:"close",type:"light",onClick:this.clearQuery}))}},{key:"renderTerminal",value:function(){var e=this;return S.default.createElement("div",{className:L.default.logWindow},this.logs.reverse().map((function(t){var a=t.time,r=t.log;return S.default.createElement("p",{key:"".concat(a).concat(r)},S.default.createElement("span",{className:L.default.logTime},(0,C.default)(a).format("YYYY-MM-DD HH:mm:ss"),":"," ",e.renderHighLightLog(null!=r?r:"")))})))}},{key:"renderHighLightLog",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=this.state.query,a=t.trim(),r=e.toUpperCase().indexOf(a.toUpperCase());return a&&-1!==r?S.default.createElement("span",{className:L.default.queryLog},S.default.createElement("span",{dangerouslySetInnerHTML:{__html:F.ansi_to_html(e.slice(0,r))}}),S.default.createElement("span",{className:L.default.hightLight,dangerouslySetInnerHTML:{__html:F.ansi_to_html(e.slice(r,r+a.length))}}),S.default.createElement("span",{dangerouslySetInnerHTML:{__html:F.ansi_to_html(e.slice(r+a.length))}})):S.default.createElement("span",{className:L.default.queryLog,dangerouslySetInnerHTML:{__html:F.ansi_to_html(e)}})}},{key:"renderLink",value:function(e,a){return e?S.default.createElement(w.Tooltip,{content:t("VIEW_DETAILS")},S.default.createElement("a",{href:e,target:"_blank",rel:"noopener noreferrer"},a)):a}},{key:"renderSummary",value:function(){var e=this.props.detailState;return S.default.createElement("div",{className:L.default.summery},S.default.createElement("div",{className:L.default.header},S.default.createElement("div",{className:L.default.pre,onClick:this.pre},S.default.createElement(A.ReactComponent,{width:16,height:22}),S.default.createElement("span",null,t("BACK")))),S.default.createElement("h3",null,t("CONTAINER_LOG_SOURCE")),S.default.createElement("div",{className:L.default.dataList},S.default.createElement("div",null,S.default.createElement("h4",null,t("PROJECT")),S.default.createElement("p",null,S.default.createElement("span",null,S.default.createElement(w.Icon,{name:"project"})," ",e.namespace))),S.default.createElement("div",null,S.default.createElement("h4",null,t("POD")),S.default.createElement("div",{className:L.default.selectContainer},S.default.createElement(w.Select,{prefixIcon:S.default.createElement(w.Icon,{name:"pod"}),value:this.logStore.pods,onChange:this.changePod,options:this.PodOpts}),S.default.createElement("div",{className:L.default.resourceIcon},this.renderLink(this.podLink,S.default.createElement(w.Icon,{name:"cogwheel",size:16}))))),S.default.createElement("div",null,S.default.createElement("h4",null,t("CONTAINER")),S.default.createElement("div",{className:L.default.selectContainer},S.default.createElement(w.Select,{prefixIcon:S.default.createElement(w.Icon,{name:"docker"}),value:this.logStore.containers,options:this.ContainersOpts,onChange:this.changeContainer}),S.default.createElement("div",{className:L.default.resourceIcon},this.renderLink(this.containerLink,S.default.createElement(w.Icon,{name:"cogwheel",size:16})))))))}},{key:"podLink",get:function(){var e=this.props.detailState.namespace,t=this.props.searchInputState.cluster,a=this.logStore.pods,r=this.projectStore.detail.workspace;return r?"/".concat(r,"/clusters/").concat(t,"/projects/").concat(e,"/pods/").concat(a):""}},{key:"containerLink",get:function(){var e=this.props.detailState.namespace,t=this.props.searchInputState.cluster,a=this.logStore,r=a.pods,n=a.containers,l=this.projectStore.detail.workspace;return l?"/".concat(l,"/clusters/").concat(t,"/projects/").concat(e,"/pods/").concat(r,"/containers/").concat(n):""}},{key:"PodOpts",get:function(){return this.podStore.list.data.map((function(e){return{label:e.name||t("ALL"),value:e.name||""}}))}},{key:"ContainersOpts",get:function(){var e=this.logStore.pods;return this.getPodContainers(e).map((function(e){return{label:e.name,value:e.name}}))}}]),_}(S.default.Component),c=(0,O.default)(i.prototype,"logs",[N.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),(0,O.default)(i.prototype,"podLink",[N.computed],Object.getOwnPropertyDescriptor(i.prototype,"podLink"),i.prototype),(0,O.default)(i.prototype,"containerLink",[N.computed],Object.getOwnPropertyDescriptor(i.prototype,"containerLink"),i.prototype),(0,O.default)(i.prototype,"PodOpts",[N.computed],Object.getOwnPropertyDescriptor(i.prototype,"PodOpts"),i.prototype),(0,O.default)(i.prototype,"ContainersOpts",[N.computed],Object.getOwnPropertyDescriptor(i.prototype,"ContainersOpts"),i.prototype),s=(0,O.default)(i.prototype,"changePod",[N.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(t){e.logStore.pods=t||"";var a=(0,R.default)(e.getPodContainers(t),"[0].name","");e.changeContainer(a)}}}),f=(0,O.default)(i.prototype,"changeContainer",[N.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(t){e.logStore.containers=t,e.logStore.log_query="",e.refreshLogs()}}}),(0,O.default)(i.prototype,"startPolling",[N.action],Object.getOwnPropertyDescriptor(i.prototype,"startPolling"),i.prototype),(0,O.default)(i.prototype,"addPollingLogs",[N.action],Object.getOwnPropertyDescriptor(i.prototype,"addPollingLogs"),i.prototype),d=(0,O.default)(i.prototype,"onFrequencySelect",[N.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(t){e.setState({pollingFrequency:t})}}}),(0,O.default)(i.prototype,"loadMoreLogs",[N.action],Object.getOwnPropertyDescriptor(i.prototype,"loadMoreLogs"),i.prototype),(0,O.default)(i.prototype,"initialFetch",[N.action],Object.getOwnPropertyDescriptor(i.prototype,"initialFetch"),i.prototype),(0,O.default)(i.prototype,"refreshLogs",[N.action],Object.getOwnPropertyDescriptor(i.prototype,"refreshLogs"),i.prototype),o=i))||o;a.default=G},function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(9),r(4),r(23),r(24),r(17),r(62),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(442),r(42),r(9),r(4),r(23),r(57),r(24),r(17),r(62);var l,u,o,i,c,s,f,d,p,m=n(r(96)),h=n(r(65)),v=n(r(36)),g=n(r(37)),y=n(r(88)),E=n(r(55)),b=n(r(56)),_=n(r(51)),O=n(r(49)),S=(n(r(66)),n(r(0))),C=r(239),D=r(14),k=n(r(3)),N=n(r(243)),T=r(186),R=n(r(1166)),w=n(r(1165)),I=r(950),M=n(r(3526));function P(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,_.default)(e);if(t){var n=(0,_.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,b.default)(this,a)}}var A=(0,C.observer)((u=function(e){(0,E.default)(r,e);var a=P(r);function r(){var e;(0,v.default)(this,r);for(var t=arguments.length,n=new Array(t),l=0;l=r){var l=e.store,u=l.from,o=l.size;l.total>u+o&&e.loadMoreLogs()}}}}),(0,N.default)(f.prototype,"loadMoreLogs",[A.action],Object.getOwnPropertyDescriptor(f.prototype,"loadMoreLogs"),f.prototype),(0,N.default)(f.prototype,"fetchQuery",[A.action],Object.getOwnPropertyDescriptor(f.prototype,"fetchQuery"),f.prototype),(0,N.default)(f.prototype,"fetchHistogram",[A.action],Object.getOwnPropertyDescriptor(f.prototype,"fetchHistogram"),f.prototype),v=(0,N.default)(f.prototype,"toggleHistogram",[A.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(){e.setState((function(e){return{showHistogram:!e.showHistogram}}))}}}),g=(0,N.default)(f.prototype,"togglePolling",[A.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(){var t=e.state.polling;t?e.stopPolling():e.startPolling(),e.setState({polling:!t})}}}),(0,N.default)(f.prototype,"addPollingQuery",[A.action],Object.getOwnPropertyDescriptor(f.prototype,"addPollingQuery"),f.prototype),y=(0,N.default)(f.prototype,"changeFrequency",[A.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(t){e.setState({pollingFrequency:t}),e.state.polling&&(e.stopPolling(),e.startPolling(t))}}}),s=f))||s;a.default=Q},function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(18),r(16),r(10),r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(18),r(42),r(16),r(10),r(4),r(23),r(57),r(17);var l=n(r(36)),u=n(r(37)),o=n(r(55)),i=n(r(56)),c=n(r(51)),s=n(r(0)),f=n(r(3)),d=r(186),p=r(52),m=n(r(3533)),h=n(r(3535));function v(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,c.default)(e);if(t){var n=(0,c.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,i.default)(this,a)}}var g=d.Tabs.TabPanel,y=function(e){(0,o.default)(r,e);var a=v(r);function r(){var e;(0,l.default)(this,r);for(var n=arguments.length,u=new Array(n),o=0;o0&&void 0!==arguments[0]?arguments[0]:[];return t.map((function(t){var a=Object.keys(t)[0];return s.default.createElement(m.default,{key:a,data:t,renderMetadata:e.renderMetadata})}))}},{key:"render",value:function(){return s.default.createElement(d.Tabs,{direction:"vertical",className:h.default.tabs},s.default.createElement(g,{label:s.default.createElement(d.Icon,{name:"resource",size:16}),name:"resource"},s.default.createElement("div",{className:h.default.content},this.renderHeader("METADATA"),this.renderEventMetadata())),s.default.createElement(g,{label:s.default.createElement(d.Icon,{name:"cloud",size:16}),name:"cloud"},s.default.createElement("div",{className:h.default.content},this.renderHeader("DETAILS"),this.renderDetail(),this.renderFooter())))}}]),r}(s.default.Component);a.default=y},function(e,t,a){"use strict";var r=a(20);a(12),a(11),a(6),a(9),a(13),a(10),a(4),a(23),a(17),a(7),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(12),a(45),a(11),a(6),a(28),a(42),a(448),a(34),a(15),a(9),a(13),a(10),a(4),a(23),a(57),a(17),a(7);var n=r(a(246)),l=r(a(30)),u=r(a(36)),o=r(a(37)),i=r(a(55)),c=r(a(56)),s=r(a(51)),f=r(a(0)),d=a(186),p=r(a(3534));function m(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function h(e){for(var t=1;t=r){var l=e.store,u=l.from,o=l.size;l.total>u+o&&e.loadMoreLogs()}}}}),(0,T.default)(f.prototype,"loadMoreLogs",[L.action],Object.getOwnPropertyDescriptor(f.prototype,"loadMoreLogs"),f.prototype),(0,T.default)(f.prototype,"fetchQuery",[L.action],Object.getOwnPropertyDescriptor(f.prototype,"fetchQuery"),f.prototype),(0,T.default)(f.prototype,"fetchHistogram",[L.action],Object.getOwnPropertyDescriptor(f.prototype,"fetchHistogram"),f.prototype),g=(0,T.default)(f.prototype,"toggleHistogram",[L.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(){e.setState((function(e){return{showHistogram:!e.showHistogram}}))}}}),y=(0,T.default)(f.prototype,"togglePolling",[L.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(){var t=e.state.polling;t?e.stopPolling():e.startPolling(),e.setState({polling:!t})}}}),E=(0,T.default)(f.prototype,"changeFrequency",[L.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(t){e.setState({pollingFrequency:t}),e.state.polling&&(e.stopPolling(),e.startPolling())}}}),s=f))||s;a.default=J},function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(18),r(10),r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(18),r(42),r(10),r(4),r(23),r(57),r(17);var l=n(r(36)),u=n(r(37)),o=n(r(55)),i=n(r(56)),c=n(r(51)),s=n(r(0)),f=r(186),d=n(r(3543)),p=n(r(3545));function m(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,c.default)(e);if(t){var n=(0,c.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,i.default)(this,a)}}var h=f.Tabs.TabPanel,v=function(e){(0,o.default)(r,e);var a=m(r);function r(){var e;(0,l.default)(this,r);for(var n=arguments.length,u=new Array(n),o=0;o0&&void 0!==arguments[0]?arguments[0]:[];return t.map((function(t){var a=Object.keys(t)[0];return s.default.createElement(d.default,{key:a,data:t,renderMetadata:e.renderMetadata})}))}},{key:"render",value:function(){return s.default.createElement(f.Tabs,{direction:"vertical",className:p.default.tabs},s.default.createElement(h,{label:s.default.createElement(f.Icon,{name:"resource",size:16}),name:"resource"},s.default.createElement("div",{className:p.default.content},this.renderHeader("METADATA"),this.renderEventMetadata())))}}]),r}(s.default.Component);a.default=v},function(e,t,a){"use strict";var r=a(20);a(12),a(11),a(6),a(9),a(13),a(10),a(4),a(23),a(17),a(7),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(12),a(45),a(11),a(6),a(28),a(42),a(448),a(34),a(15),a(9),a(13),a(10),a(4),a(23),a(57),a(17),a(7);var n=r(a(246)),l=r(a(30)),u=r(a(36)),o=r(a(37)),i=r(a(55)),c=r(a(56)),s=r(a(51)),f=r(a(0)),d=a(186),p=r(a(3544));function m(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function h(e){for(var t=1;t2&&a.shift(),a.forEach((function(e){t[e.type]=e.name})),t},(0,V.default)(e,"getCurrentMeterData",M,(0,W.default)(e)),(0,V.default)(e,"setMeterData",P,(0,W.default)(e)),e.fetchMeterData=function(){var t=(0,G.default)(o.default.mark((function t(a){var r,n,l,i,c;return o.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=a.module,n=a.meters,l=a.resources,i=(0,u.default)(a,["module","meters","resources"]),t.next=3,e.store.fetchMeter(Ie({module:r,meters:n,resources:l},i));case 3:return c=t.sent,t.abrupt("return",c);case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),(0,V.default)(e,"setTimeRange",A,(0,W.default)(e)),(0,V.default)(e,"getChildrenData",j,(0,W.default)(e)),e.getChildrenList=function(){var t=(0,G.default)(o.default.mark((function t(a){var r,n,l,u,i,c;return o.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=a.labelSelector,n=a.currentType,l=a.childParam,u=e.getChildrenTypeByLevel(n),(i=Ie(Ie({},e.getChildrenParamsByCrumb()),l)).cluster||(i.cluster=e.cluster),r&&(i.labelSelector=(0,ce.toJS)(r)),c=[],!["namespaces","services","openpitrixs"].includes(n)){t.next=14;break}if("namespaces"!==n||e.clusterMeterStore.levelMeterData[i.namespaces]){t.next=10;break}return t.next=10,e.clusterMeterStore.fetchLevelMeter(Ie({},i));case 10:return t.next=12,e.getTypesListData(n,i);case 12:return c=t.sent,t.abrupt("return",c);case 14:if(!u.children){t.next=19;break}return t.next=17,e.clusterMeterStore.fetchList(Ie({type:u.children[0]},i));case 17:return c=t.sent,t.abrupt("return",c);case 19:return t.abrupt("return",c);case 20:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),e.getClusterMeterChartData=function(){var t=(0,G.default)(o.default.mark((function t(a,r){var n,l,u,i,c,s,f,d,p,m,h;return o.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n=e.getMeterParamsByCrumb(),l=[],u=e.childrenResourceList.map((function(e){return{name:e.name,type:e.type,labelSelector:(0,ee.default)(e,"labelSelector")}})),Ee.RESOURCES_TYPE.forEach((function(e){var t=[];u.forEach((function(a){a.type===e&&t.push(a)})),(0,ae.default)(t)||l.push(t)})),i=[],c=!0,s=!1,t.prev=7,d=o.default.mark((function t(){var l,u,c,s,f,d,p;return o.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return u=(l=h)[0].type,c=[],s=l.map((function(e){return e.name})),f=(0,ne.default)(n),r||(f[u]=l[0].name),t.next=8,e.setMeterData({module:u,meters:[a],resources:s,params:f});case 8:d=t.sent,(0,ae.default)(d)||l.forEach((function(e){var t=d.find((function(t){return(0,ee.default)(t,"metric.".concat(t.module))===e.name}));if(t){var a=(0,ee.default)(t,"sum_value"),r=(0,ee.default)(t,"metric.".concat(t.module)),n=(0,ee.default)(t,"unit.label");c.push({name:r,value:a||0,unit:n,type:u})}})),p=(0,ie.default)(c,(function(e){return e.value})).reverse(),i.push(p);case 12:case"end":return t.stop()}}),t)})),p=(0,J.default)(l);case 10:return t.next=12,p.next();case 12:return m=t.sent,c=m.done,t.next=16,m.value;case 16:if(h=t.sent,c){t.next=22;break}return t.delegateYield(d(),"t0",19);case 19:c=!0,t.next=10;break;case 22:t.next=28;break;case 24:t.prev=24,t.t1=t.catch(7),s=!0,f=t.t1;case 28:if(t.prev=28,t.prev=29,c||null==p.return){t.next=33;break}return t.next=33,p.return();case 33:if(t.prev=33,!s){t.next=36;break}throw f;case 36:return t.finish(33);case 37:return t.finish(28);case 38:e.pieChartData=(0,ue.default)(i);case 39:case"end":return t.stop()}}),t,null,[[7,24,28,38],[29,,33,37]])})));return function(e,a){return t.apply(this,arguments)}}(),e.getWorkspacesMeterChartData=function(){var t=(0,G.default)(o.default.mark((function t(a){var r,n,l,u,c,s,f,d,p,m,h,v,g,y,E,b,_,O;return o.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("workspaces"!==(r=e.active.type)){t.next=6;break}return t.next=4,e.getClusterMeterChartData(a,!0);case 4:t.next=51;break;case 6:n=e.getMeterParamsByCrumb(),l=[],u=[],c=e.childrenResourceList.map((function(e){return{name:e.name,type:e.type,labelSelector:(0,ee.default)(e,"labelSelector")}})),Ee.RESOURCES_TYPE.forEach((function(e){var t=[];c.forEach((function(a){a.type===e&&t.push(a)})),(0,ae.default)(t)||u.push(t)})),s=Ie(Ie({},n),{},(0,i.default)({cluster:e.cluster},r,e.active.name)),f=e.clusterMeterStore.levelMeterData,d=e.getChildrenTypeByLevel(r),p=d.children,m=!0,h=!1,t.prev=17,g=(0,J.default)(p);case 19:return t.next=21,g.next();case 21:return y=t.sent,m=y.done,t.next=25,y.value;case 25:if(E=t.sent,m){t.next=34;break}b=E,_=(0,me.handleWSChartData)({levelMeterData:(0,ce.toJS)(f),meters:a,type:b,params:s}),O=(0,ie.default)(_,(function(e){return e.value})).reverse(),l.push(O);case 31:m=!0,t.next=19;break;case 34:t.next=40;break;case 36:t.prev=36,t.t0=t.catch(17),h=!0,v=t.t0;case 40:if(t.prev=40,t.prev=41,m||null==g.return){t.next=45;break}return t.next=45,g.return();case 45:if(t.prev=45,!h){t.next=48;break}throw v;case 48:return t.finish(45);case 49:return t.finish(40);case 50:e.pieChartData=(0,ue.default)(l);case 51:case"end":return t.stop()}}),t,null,[[17,36,40,50],[41,,45,49]])})));return function(e){return t.apply(this,arguments)}}(),(0,V.default)(e,"getResourceMeterData",L,(0,W.default)(e)),e.getChildrenParamsByCrumb=function(){var t={};return(0,ne.default)((0,ce.toJS)(e.crumbData)).forEach((function(e){t[e.type]=e.name})),t},e.getTypesListData=function(){var t=(0,G.default)(o.default.mark((function t(a,r){var n,l,u,i;return o.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.getChildrenTypeByLevel(a),l=[],n.children.forEach((function(t){l.push(e.clusterMeterStore.fetchList(Ie({type:t},r)))})),t.next=5,Promise.all(l);case 5:return u=t.sent,i=(0,ue.default)(u),t.abrupt("return",i);case 8:case"end":return t.stop()}}),t)})));return function(e,a){return t.apply(this,arguments)}}(),e.getChildrenTypeByLevel=function(t){return e.props.level.find((function(e){return(0,te.default)(e.type)?e.type.indexOf(t)>-1:e.type===t}))},e.setLineChartColor=function(e){return(0,ae.default)(e)?[]:(e.map((function(e,t){return e.key=e.type,e.color=ve.COLORS_MAP[Ee.AREA_COLORS[t]]||Ee.AREA_COLORS[t],e})),e)},e.renderParentMeterCard=function(){if(!e.active.type||"cluster"===e.active.type||"workspaces"===e.active.type||(0,ae.default)((0,ce.toJS)(e.priceConfig)))return null;var a=e.crumbData.length,r=e.crumbData[a-2],n="namespaces"===e.active.type&&2===a&&e.cluster?"".concat(r.name," (").concat(e.cluster,")"):r.name;return Z.default.createElement("div",{className:Re.default.usageCard},Z.default.createElement(Se.default,(0,l.default)({className:Re.default.meterCard,isParent:!0,priceConfig:e.priceConfig,title:Z.default.createElement(Z.default.Fragment,null,Z.default.createElement("span",null,t(Ee.RESOURCE_TITLE[(0,ee.default)(r,"type","-")])),Z.default.createElement("strong",null,n))},e.parentMeterData)))},(0,V.default)(e,"handleChartData",x,(0,W.default)(e)),(0,V.default)(e,"getTimeRange",U,(0,W.default)(e)),(0,V.default)(e,"getCurrentTimeMeterData",z,(0,W.default)(e)),(0,V.default)(e,"handleCrumbOperation",F,(0,W.default)(e)),e.renderSubResource=function(){var a=(0,ce.toJS)(e.pieChartData);return"pods"===e.active.type||"openpitrix"===e.props.meterType||(0,oe.default)(e.currentMeterData.sumData)||(0,ae.default)(a)?null:Z.default.createElement(Z.default.Fragment,null,Z.default.createElement("div",{className:Re.default.subTitle},t("CURRENT_RESOURCE_CONSUMPTION"),Z.default.createElement(se.Tooltip,{content:t("METER_RESOURCE_DESC"),placement:"top"},Z.default.createElement(se.Icon,{name:"question",size:20}))),Z.default.createElement("div",{className:Re.default.childrenResourceContainer},Z.default.createElement(se.Loading,{spinning:e.resourceLoading},Z.default.createElement("div",{className:Re.default.childrenlistContainer},Z.default.createElement(Ne.default,{selectOptions:(0,ce.toJS)(e.currentMeterData.sumData),getResourceMeterData:e.getResourceMeterData,activeName:e.active.name})),Z.default.createElement("div",{className:Re.default.constomChartContainer},Z.default.createElement(Te.default,{data:a})))))},e.renderEmpty=function(){return Z.default.createElement("div",{className:Re.default.empty},Z.default.createElement(pe.default,{className:Re.default.emptyCard,icon:ve.ICON_TYPES[e.active.type],title:t("NO_DATA_DESC"),desc:t("NO_METER_DATA")}))},e}return(0,Y.default)(r,[{key:"componentDidMount",value:function(){this.initData()}},{key:"render",value:function(){var e=this.active,a=e.type,r=e.name,n=e.createTime,u=(0,ye.getWebsiteUrl)().url,o=Object.values((0,ce.toJS)(this.currentMeterData)).every((function(e){return(0,ae.default)(e)}));return(0,ae.default)(this.list)?Z.default.createElement("div",{className:Re.default.empty},Z.default.createElement(se.Loading,{spinning:this.sideLoading||this.loading},Z.default.createElement(pe.default,{className:Re.default.emptyCard,icon:"cluster",title:t("NO_CLUSTER_AVAILABLE"),desc:(0,ye.learnMoreTip)(t.html("METERING_NOT_ENABLED_DESC",{docUrl:u})),actions:Z.default.createElement(ge.default,{onClick:this.props.handleBack},"返回")}))):Z.default.createElement("div",{className:Re.default.billDetail},Z.default.createElement("div",{className:(0,$.default)(Re.default.leftContent,(0,i.default)({},Re.default.paddingBottom0,this.crumbData.length<2||(0,ae.default)((0,ce.toJS)(this.priceConfig))))},Z.default.createElement(be.default,{crumbData:(0,ce.toJS)(this.crumbData),handleCrumbOperation:this.handleCrumbOperation,loading:this.loading||this.sideLoading,cluster:this.cluster}),Z.default.createElement(Oe.default,{list:this.list,active:(0,ce.toJS)(this.active),handleSelectResource:this.handleSelectResource,getChildrenData:this.getChildrenData,loading:this.sideLoading||this.loading,fetchMeterData:this.fetchMeterData,crumbData:this.crumbData,timeRange:(0,ce.toJS)(this.timeRange),getMeterParamsByCrumb:this.getMeterParamsByCrumb,priceConfig:this.priceConfig,cluster:this.cluster,clusterList:this.clusterList,priceConfigList:this.priceConfigList}),this.renderParentMeterCard()),Z.default.createElement("div",{className:Re.default.rightContent},Z.default.createElement(se.Loading,{spinning:this.loading},Z.default.createElement(Z.default.Fragment,null,Z.default.createElement(_e.default,{type:a,cluster:this.cluster,clusters:this.clusters,setCluster:this.setCluster}),o?this.renderEmpty():Z.default.createElement("div",{className:Re.default.content},Z.default.createElement(Se.default,(0,l.default)({className:Re.default.toothbg,title:Z.default.createElement(Z.default.Fragment,null,Z.default.createElement("span",null,t(Ee.RESOURCE_TITLE[a].toUpperCase().replace(/\s+/g,"_"))),Z.default.createElement("strong",null,r)),priceConfig:this.priceConfig},this.currentMeterData)),Z.default.createElement("div",{className:Re.default.subTitle},t("CONSUMPTION_HISTORY")),Z.default.createElement("div",{className:Re.default.info},(0,ae.default)((0,ce.toJS)(this.timeRange))?null:Z.default.createElement(Ce.default,{createTime:n,getTime:this.getTimeRange,timeRange:this.timeRange})),Z.default.createElement(De.default,{chartData:(0,ce.toJS)(this.chartData),priceConfig:this.priceConfig}),Z.default.createElement(ke.default,{data:(0,ce.toJS)(this.tableData),priceConfig:this.priceConfig}),this.renderSubResource())))))}}]),r}(Z.default.Component),f=(0,K.default)(s.prototype,"crumbData",[ce.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),d=(0,K.default)(s.prototype,"cacheCrumbData",[ce.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),p=(0,K.default)(s.prototype,"tableData",[ce.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),m=(0,K.default)(s.prototype,"active",[ce.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),h=(0,K.default)(s.prototype,"list",[ce.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),v=(0,K.default)(s.prototype,"timeRange",[ce.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),g=(0,K.default)(s.prototype,"currentMeterData",[ce.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),y=(0,K.default)(s.prototype,"parentMeterData",[ce.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),E=(0,K.default)(s.prototype,"sideLoading",[ce.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),b=(0,K.default)(s.prototype,"loading",[ce.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),_=(0,K.default)(s.prototype,"chartData",[ce.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),O=(0,K.default)(s.prototype,"priceConfig",[ce.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),S=(0,K.default)(s.prototype,"priceConfigList",[ce.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),C=(0,K.default)(s.prototype,"pieChartData",[ce.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),D=(0,K.default)(s.prototype,"resourceLoading",[ce.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),k=(0,K.default)(s.prototype,"getPriceConfigListByCluster",[ce.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(){var t=(0,G.default)(o.default.mark((function t(a){var r,n;return o.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=[],a.forEach((function(t){t.disabled||r.push(e.store.fetchPrice({cluster:t.name}))})),globals.app.isMultiCluster&&r.push(e.store.fetchPrice({cluster:""})),t.next=5,Promise.all(r);case 5:n=t.sent,e.priceConfigList=n;case 7:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()}}),N=(0,K.default)(s.prototype,"getClustersList",[ce.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(t){var a=e.crumbData[0].list.find((function(e){return e.name===t})),r="system-workspace"===t?e.clusterList:(0,ee.default)(a,"_origin.clusters",[]);if((0,ae.default)(r))return[];var n=r.map((function(t){var a=e.clusterList.find((function(e){return e.name===t.name}));return(0,ae.default)(a)?null:{label:a.name,value:a.name,type:a._origin.isHost?"host":"member",disabled:a.disabled,sortValue:Number(a.disabled)}})).filter((function(e){return!(0,ae.default)(e)}));return n.every((function(e){return e.disabled}))?[]:(0,ie.default)(n,(function(e){return e.sortValue}))}}}),T=(0,K.default)(s.prototype,"setPriceConfig",[ce.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(t){var a=t||(0,ee.default)(ve.DEFAULT_CLUSTER,"metadata.name"),r=e.priceConfigList.find((function(e){return e.cluster&&e.cluster===a})),n=(0,ne.default)(r);delete n.cluster,e.priceConfig=(0,ae.default)(n)?{}:r,e.setStartTime()}}}),R=(0,K.default)(s.prototype,"setStartTime",[ce.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(){e.startTime=(0,me.getRetentionDay)((0,ee.default)(e.priceConfig,"retention_day","7d"))}}}),w=(0,K.default)(s.prototype,"setCluster",[ce.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(){var t=(0,G.default)(o.default.mark((function t(a){var r,n,l,u;return o.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.cluster=a,e.loading=!0,r=e.active,n=r.name,l=r.type,u=e.list.find((function(e){return e.name===n})),e.setPriceConfig(a),t.next=7,e.getCurrentMeterData({name:n,type:l,isCopy:!0,isTime:!0,start:e.startTime,labelSelector:(0,ee.default)(u,"labelSelector","")});case 7:e.loading=!1;case 8:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()}}),I=(0,K.default)(s.prototype,"setActiveCrumb",[ce.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(t){var a=t.name,r=t.type,n=t.isCopy,l=t.start,u=(0,re.default)(e.crumbData);u.type=r,u.name=a,u.start=l,n&&(e.cacheCrumbData=(0,ne.default)((0,ce.toJS)(e.crumbData)))}}}),M=(0,K.default)(s.prototype,"getCurrentMeterData",[ce.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(){var t=(0,G.default)(o.default.mark((function t(a){var r,n,l,u,i,c,s,f,d;return o.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=a.name,n=a.type,l=a.isCopy,u=a.labelSelector,i=a.isTime,c=a.start,e.active={name:r,type:n,start:c},e.tableData=[],e.pieChartData=[],e.timeRange={},e.setActiveCrumb({name:r,type:n,isCopy:!!l,start:c}),s=e.getMeterParamsByCrumb(),e.loading=!0,t.next=10,e.setMeterData({module:n,meters:"all",resources:[r],start:c,isTime:i,params:s});case 10:return f=t.sent,t.next=13,e.getCurrentTimeMeterData({valueKey:"currentMeterData",module:n,resources:[r],start:c,params:s});case 13:if(e.tableData=e.setLineChartColor(f),e.setTimeRange({isTime:i,start:c}),e.chartData=f,"pods"===n){t.next=35;break}if(!["workspaces","cluster","nodes"].includes(n)){t.next=24;break}return t.next=20,e.getChildrenList({labelSelector:u,currentType:n});case 20:d=t.sent,e.childrenResourceList=d,t.next=31;break;case 24:if(e.clusterMeterStore.levelMeterData[s.namespaces]){t.next=30;break}return s.cluster||(s.cluster=e.cluster),t.next=28,e.clusterMeterStore.fetchLevelMeter(Ie({},s));case 28:t.next=31;break;case 30:e.childrenResourceList=[];case 31:return t.next=33,e.getResourceMeterData((0,ee.default)(e.tableData,"[0].type","cpu"));case 33:t.next=36;break;case 35:e.childrenResourceList=[];case 36:e.loading=!1;case 37:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()}}),P=(0,K.default)(s.prototype,"setMeterData",[ce.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(){var t=(0,G.default)(o.default.mark((function t(a){var r,n,l,u,i,c,s,f,d,p;return o.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=a.params,n=a.module,l=a.meters,u=a.resources,i=a.list,c=a.start,s=a.end,f=a.isTime,r.cluster&&"cluster"===e.props.meterType&&(e.cluster=r.cluster),r.cluster=e.cluster,"applications"!==n||(0,ae.default)(u)||(d=i||e.list,u=u.map((function(e){var t=d.find((function(t){return t.name===e})),a=(0,ee.default)(t,"_origin.version.name","")||(0,ee.default)(t,"_origin.version","");return"".concat(e).concat(a?":".concat(a):"")}))),"openpitrixs"===n&&globals.app.isMultiCluster&&"host"!==(0,ee.default)(e.clusters.find((function(e){return e.value===r.cluster})),"type")&&delete r.cluster,t.next=7,e.fetchMeterData(Ie({module:n,meters:l,resources:u,isTime:f,start:c,end:s},r));case 7:return p=t.sent,t.abrupt("return",p);case 9:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()}}),A=(0,K.default)(s.prototype,"setTimeRange",[ce.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(t){var a=t.isTime,r=(0,u.default)(t,["isTime"]),n=(0,me.getTimeParams)(Ie({isTime:a},r)),l=n.step,o=n.start,i=n.end;e.timeRange=o>=i?{}:{step:(0,he.getTimeStr)(l),start:1e3*o,end:1e3*i}}}}),j=(0,K.default)(s.prototype,"getChildrenData",[ce.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(){var t=(0,G.default)(o.default.mark((function t(a){var r,n,l,u,i,c,s,f;return o.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=a.name,n=a.type,l=a.labelSelector,u=(0,re.default)(e.crumbData),e.loading=!0,e.sideLoading=!0,"workspaces"===n&&r!==u.name&&(e.clusters=e.getClustersList(r),e.cluster=(0,ee.default)(e.clusters,"[0].value",""),e.setPriceConfig(e.cluster)),"cluster"===n&&r!==u.name&&e.setPriceConfig(r),e.setActiveCrumb({name:r,type:n,isCopy:!0,start:e.startTime}),t.next=9,e.getChildrenList({labelSelector:l,currentType:n});case 9:if(i=t.sent,(0,ae.default)(i)||!(0,te.default)(i)){t.next=20;break}return c=i[0].type,s=(0,re.default)(e.crumbData),f=e.getMeterParamsByCrumb(),t.next=16,e.getCurrentTimeMeterData({valueKey:"parentMeterData",params:f,module:s.type,start:s.start,resources:[s.name]});case 16:return e.crumbData.push({type:c,name:i[0].name,list:i,start:e.startTime}),t.next=19,e.getCurrentMeterData({name:i[0].name,type:c,isCopy:!0,isTime:!0,start:e.startTime,labelSelector:(0,ee.default)(i,"[0].labelSelector")});case 19:e.list=i;case 20:e.loading=!1,e.sideLoading=!1;case 22:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()}}),L=(0,K.default)(s.prototype,"getResourceMeterData",[ce.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(){var t=(0,G.default)(o.default.mark((function t(a){var r;return o.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=e.props.level,e.resourceLoading=!0,"workspaces"!==r[0].type){t.next=7;break}return t.next=5,e.getWorkspacesMeterChartData(a);case 5:t.next=9;break;case 7:return t.next=9,e.getClusterMeterChartData(a);case 9:e.resourceLoading=!1;case 10:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()}}),x=(0,K.default)(s.prototype,"handleChartData",[ce.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(){var t=(0,G.default)(o.default.mark((function t(a){var r,n,l,i;return o.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=a.meters,n=(0,u.default)(a,["meters"]),l=e.active.name,e.tableData=[],t.next=5,e.setMeterData({module:e.active.type,resources:[l],meters:r,isTime:!0,params:n});case 5:i=t.sent,e.tableData=e.setLineChartColor(i),e.chartData=i;case 8:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()}}),U=(0,K.default)(s.prototype,"getTimeRange",[ce.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(t){var a=t.type,r=t.value;if("close"===t.methord){var n=e.getMeterParamsByCrumb();(0,le.default)(e.timeRange,"".concat(a),r),e.handleChartData(Ie(Ie({meters:"all"},n),(0,ce.toJS)(e.timeRange)))}(0,le.default)(e.timeRange,"".concat(a),r)}}}),z=(0,K.default)(s.prototype,"getCurrentTimeMeterData",[ce.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(){var t=(0,G.default)(o.default.mark((function t(a){var r,n,l,u,i,c,s,f,d;return o.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=a.valueKey,n=a.params,l=a.module,u=a.start,i=a.resources,t.next=3,e.setMeterData({params:n,meters:"all",module:l,start:u,end:new Date,resources:i,valueKey:"parentMeterData",isTime:!0});case 3:c=t.sent,s=e.getSumMeterData(c),f=s.sumData,d=s.feeData,e[r]={sumData:f,feeData:d};case 6:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()}}),F=(0,K.default)(s.prototype,"handleCrumbOperation",[ce.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(){var t=(0,G.default)(o.default.mark((function t(a){var r,n,l,u,i,c,s;return o.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=e.crumbData.length-1,e.sideLoading=!0,"back"!==a){t.next=11;break}if(!(r<=0)){t.next=7;break}return e.props.handleBack(),e.sideLoading=!1,t.abrupt("return");case 7:e.crumbData.pop(),r-=1,t.next=18;break;case 11:if(!((n=e.cacheCrumbData.length-1)<=0||n===r)){t.next=15;break}return e.sideLoading=!1,t.abrupt("return");case 15:l=e.cacheCrumbData[r+1],e.crumbData.push(l),r+=1;case 18:if(u=(0,re.default)(e.crumbData),!(r>0)){t.next=25;break}return i=e.crumbData[r-1],c=e.getMeterParamsByCrumb(),"workspaces"===i.type?(c.workspaces=i.name,e.clusters=e.getClustersList(i.name),Object.keys(c).forEach((function(e){"workspaces"!==e&&(c[e]=void 0)}))):c[u.type]=void 0,t.next=25,e.getCurrentTimeMeterData({params:c,valueKey:"parentMeterData",module:i.type,start:i.start,resources:[i.name]});case 25:return s=u.list.find((function(e){return e.name===u.name})),t.next=28,e.getCurrentMeterData({name:u.name,type:u.type,start:e.startTime,labelSelector:(0,ee.default)(s,"labelSelector",""),isTime:!0});case 28:e.list=u.list,e.sideLoading=!1;case 30:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()}}),c=s))||c;a.default=Pe},,function(e,t,a){"use strict";var r=a(20);a(12),a(5),a(11),a(6),a(29),a(16),a(9),a(13),a(10),a(4),a(22),a(23),a(17),a(38),a(7),a(32),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(12),a(45),a(5),a(11),a(6),a(29),a(28),a(42),a(16),a(34),a(15),a(9),a(13),a(10),a(4),a(22),a(23),a(57),a(17),a(38),a(7),a(32);var n=r(a(43)),l=r(a(30)),u=r(a(58));a(41);var o,i,c,s,f,d,p,m,h,v,g=r(a(44)),y=r(a(65)),E=r(a(36)),b=r(a(37)),_=r(a(88)),O=r(a(55)),S=r(a(56)),C=r(a(51)),D=r(a(49)),k=(r(a(66)),a(14)),N=r(a(60)),T=r(a(63)),R=r(a(158)),w=r(a(438)),I=r(a(856)),M=r(a(445)),P=r(a(439)),A=r(a(961)),j=r(a(1206)),L=r(a(443)),x=r(a(318)),U=r(a(452)),z=a(72),F=a(1205);function G(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function V(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.cluster,a=e.namespaces,r=e.workspaces,n=e.deployments,l=e.statefulsets,u=e.daemonsets,o=e.services,i=e.pods,c="";return t&&(c+="/klusters/".concat(t)),a&&(c+="/namespaces/".concat(a)),r&&(c+="/workspaces/".concat(r)),o&&(c+="/services/".concat(o)),n&&(c+="/deployments/".concat(n)),l&&(c+="/statefulsets/".concat(l)),u&&(c+="/daemonsets/".concat(u)),i&&(c+="/pods/".concat(i)),c}},{key:"isMultiCluster",get:function(){return!globals.app.isMultiCluster}}]),a}(r(a(1781)).default),i=(0,D.default)(o.prototype,"list",[k.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),c=(0,D.default)(o.prototype,"clustersConfig",[k.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),s=(0,D.default)(o.prototype,"cacheList",[k.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),f=(0,D.default)(o.prototype,"levelMeterData",[k.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),d=(0,D.default)(o.prototype,"cacheLevelData",[k.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),p=(0,D.default)(o.prototype,"isLoading",[k.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),m=(0,D.default)(o.prototype,"fetchList",[k.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(){var t=(0,g.default)(n.default.mark((function t(a){var r,l,o,i,c,s,f,d,p;return n.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=a.type,l=(0,u.default)(a,["type"]),o=e.getStore(r),i=(0,F.getFetchParams)(V({isMultiCluster:e.isMultiCluster,type:r},l)),c=(0,F.getListConfig)({isMultiCluster:e.isMultiCluster,type:r}),s=[],i.forEach((function(e){"[object Array]"===Object.prototype.toString.call(o)?o.forEach((function(t){s.push(t.fetchList(V({},e)))})):s.push(o.fetchList(V({},e)))})),t.next=8,Promise.all(s).catch((function(){return[]}));case 8:if(f=t.sent,d=[],!(0,T.default)(f)&&(0,N.default)(f)&&f.forEach((function(t,a){t.forEach((function(t){if(!(0,F.hasNameSpacesType)(r)||(0,F.hasNameSpacesType)(r)&&(0,F.filterListByType)(V({type:r},l))(t)){var n=c[a],u=n.status,o=n.desc,i=e.handleStatusByWorkload(u,r,t),s=e.handleNameByType(r,t),f=e.handleIconByType(r,t.provider);d.push({icon:f,name:s,status:i,desc:o,labelSelector:t.selector,type:r,_origin:V({},t)})}}))})),"pods"===r&&(d=d.filter((function(e){return"Completed"!==e.status&&"Error"!==e.status}))),!l.node){t.next=15;break}return e.list=d,t.abrupt("return",d);case 15:return t.next=17,(0,F.filterResourceLevel)(V({levelMeterData:e.levelMeterData,type:r,data:d},l));case 17:return p=t.sent,e.list=p,t.abrupt("return",p);case 20:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()}}),h=(0,D.default)(o.prototype,"fetchLevelMeter",[k.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(){var t=(0,g.default)(n.default.mark((function t(a){var r,u,o,i,c,s;return n.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=a.cluster,u=a.namespaces,o=a.workspaces,r&&(e.cluster=r),i="".concat(e.tenantUrl({cluster:r}),"/namespaces/").concat(u,"/metering/hierarchy").concat(o?"?workspace=".concat(o):""),t.next=5,request.get(i,{},{},(function(){return{}}));case 5:return c=t.sent,s=(0,R.default)(c)||(0,T.default)(c)?{}:(0,l.default)({},u,c),e.levelMeterData=s,t.abrupt("return",s);case 9:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()}}),v=(0,D.default)(o.prototype,"setLevelMeterData",[k.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(t){e.levelMeterData=t}}}),o);t.default=Y},,,,,,function(e,t,a){"use strict";a(15);var r=a(20);a(5),a(6),a(16),a(4),a(23),a(17),a(7),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(45),a(5),a(6),a(28),a(42),a(16),a(4),a(23),a(57),a(17),a(7);var n=r(a(36)),l=r(a(37)),u=r(a(55)),o=r(a(56)),i=r(a(51)),c=r(a(0)),s=r(a(1)),f=a(186),d=a(72),p=r(a(3565)),m=r(a(1398));function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,i.default)(e);if(t){var n=(0,i.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,o.default)(this,a)}}var v=function(e){(0,u.default)(a,e);var t=h(a);function a(){var e;(0,n.default)(this,a);for(var r=arguments.length,l=new Array(r),u=0;u0?l.default.createElement(u.Select,{className:o.default.clusterSelect,options:n,optionRenderer:function(e){var t=e.label,a=e.disabled;return l.default.createElement("span",{style:{display:"flex",alignItem:"center"}},t,l.default.createElement("span",{style:{marginLeft:"10px"}},a?l.default.createElement(u.Icon,{name:"update",color:{primary:"#ffc781",secondary:"#f5a623"}}):null))},value:r,onChange:function(e){i(e)},showTip:!0}):null)};a.default=i},function(e,t,a){e.exports={title:"_2aGXmcx7mFZbhToSS1A-OM",clusterSelect:"_5ayuJN6svE2FJ4y0dsmAQ"}},function(e,a,r){"use strict";var n=r(20);r(12),r(5),r(11),r(31),r(6),r(29),r(18),r(16),r(9),r(13),r(10),r(4),r(22),r(23),r(17),r(38),r(7),r(32),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(45),r(5),r(11),r(31),r(6),r(29),r(18),r(28),r(42),r(16),r(34),r(15),r(9),r(13),r(10),r(4),r(22),r(23),r(57),r(17),r(38),r(7),r(32);var l=n(r(43)),u=n(r(30));r(41);var o,i,c,s,f,d,p=n(r(44)),m=n(r(65)),h=n(r(36)),v=n(r(37)),g=n(r(88)),y=n(r(55)),E=n(r(56)),b=n(r(51)),_=n(r(49)),O=(n(r(66)),n(r(0))),S=r(239),C=r(14),D=r(186),k=r(909),N=n(r(1375)),T=n(r(63)),R=n(r(158)),w=n(r(449)),I=n(r(26)),M=r(1205),P=n(r(3570)),A=n(r(3572));function j(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function L(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},a=e.className,r=e.title,n=e.isParent,p=e.priceConfig,m=(0,l.default)(e,["className","title","isParent","priceConfig"]),h=p.currency?p.currency:" ",v=function(){var e=m.feeData,t=0;return(0,s.default)(e)||(0,c.default)(e)||(t=Object.keys(e).map((function(t){return 100*parseFloat((0,i.default)(e[t],"value",0))})).reduce((function(e,t){return e+t}))/100),t.toFixed(2)},g=function(e){var t=y(e);return"-"!==t?t.toFixed(3):t},y=function(e){return(0,s.default)(e)?"-":e<0?0:e},E=function(e,a){return(0,c.default)(e)?null:"price"===a&&(0,c.default)(p)?u.default.createElement("ul",{className:f.default.noPriceTip},u.default.createElement("li",null,t("PRICE_CONFIG_DESC"))):u.default.createElement("ul",null,Object.keys(e).map((function(r){var n=(0,i.default)(e[r],"value"),l="meter"===a?g(n):y(n);return e[r]?u.default.createElement("li",{key:r},u.default.createElement("div",null,l),u.default.createElement("p",null,u.default.createElement("span",null,t(d.METER_RESOURCE_TITLE[r].toUpperCase().replace(/\s+/g,"_"))),u.default.createElement("span",null,"(",(0,i.default)(e[r],"unit.label","-"),")"))):null})))},b=function(e){var a=v();return u.default.createElement("div",null,u.default.createElement("h3",null,e," ",t("CONSUMPTION_SINCE_CREATION")),(0,c.default)(p)?null:u.default.createElement("div",{className:f.default.totalPrice},u.default.createElement("h4",null,a),u.default.createElement("p",null,t("TOTAL_COST",{unit:h}))))},_=function(e){var a=v();return u.default.createElement("div",{className:f.default.parentCostContainer},u.default.createElement("div",null,u.default.createElement("h3",null,e),u.default.createElement("span",null," ",t("CONSUMPTION_SINCE_CREATION"))),u.default.createElement("p",null,u.default.createElement("span",null,h),a))},O=m.sumData,S=void 0===O?{}:O,C=m.feeData,D=void 0===C?{}:C;return n?u.default.createElement("div",{className:(0,o.default)(f.default.billTotal,a)},_(r)):u.default.createElement("div",{className:(0,o.default)(f.default.billTotal,a)},b(r),u.default.createElement("div",{className:f.default.consumContainer},(0,c.default)(S)&&(0,c.default)(D)?null:u.default.createElement(u.default.Fragment,null,E(S,"meter"),u.default.createElement("div",{className:f.default.line}),E(D,"price"))))};a.default=p},function(e,t,a){e.exports={billTotal:"_2yAhIbTXhLB8AgqHVlMiY",parentCostContainer:"_2Q8zNmDqt_oiHw6Gea24im",totalPrice:"_1UrXZ5SCxDX8Afu2MVimjJ",consumContainer:"_1TAVSr4ki5JW2eC-92JCkR",noPriceTip:"_17jZhcUtJrSh3-xDgz5rNX",line:"rQmHupJi6faIkggp0AD-m"}},function(e,a,r){"use strict";r(15);var n=r(20);r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(42),r(4),r(23),r(57),r(17);var l=n(r(36)),u=n(r(37)),o=n(r(55)),i=n(r(56)),c=n(r(51)),s=n(r(0)),f=r(186),d=n(r(240)),p=r(950),m=n(r(201)),h=n(r(243)),v=n(r(3576));function g(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,c.default)(e);if(t){var n=(0,c.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,i.default)(this,a)}}var y=["1h","2h","4h","8h","1d"],E="zh"===(0,m.default)("lang")?"Y年Md日 H:i":"M d, Y H:i",b=function(e){(0,o.default)(r,e);var a=g(r);function r(e){var n;(0,l.default)(this,r),(n=a.call(this,e)).getTimeRange=function(e){var t=e.type,a=e.methord;return function(e){var r=n.props,l=r.getTime,u=r.timeRange,o=u.end,i=u.start,c=new Date(e[0]).getTime();"start"===t&&c>=o||"end"===t&&c<=i||l({type:t,value:c,methord:a})}},n.handleStepChange=function(e){var a=e.type,r=e.methord;return function(e){var l=e,u=n.props,o=u.getTime,i=u.timeRange,c=i.end,s=i.start;Math.floor((c-s)/3600/24/1e3)>=30&&"1d"!==l?d.default.error({content:t("TIMERANGE_MORE_30DAY_MSG")}):o({type:a,value:l,methord:r})}},n.handleTimeRangeChange=function(e){return function(a){var r=n.props,l=r.getTime,u=r.timeRange,o=u.end,i=u.start,c=u.step,s=new Date(a[0]).getTime();if("start"===e&&s>=o||"end"===e&&s<=i)d.default.error({content:t("TIMERANGE_SELECTOR_MSG")});else{if("start"===e)Math.floor((o-s)/3600/24/1e3)>=30&&"1d"!==c&&l({type:"step",value:"1d",methord:"change"});if("end"===e)Math.floor((s-i)/3600/24/1e3)>=30&&"1d"!==c&&l({type:"step",value:"1d",methord:"change"});l({type:e,value:s,methord:"change"})}}};var u=n.props.timeRange,o=u.end||new Date;return n.endMaxDate=new Date(o),n.maxDate=new Date((0,h.default)(o).subtract(1,"minutes")),n.minDate=new Date(u.start),n}return(0,u.default)(r,[{key:"render",value:function(){var e=this.props.timeRange,a=e.step,r=e.start,n=e.end;return s.default.createElement("div",{className:v.default.datepicker},s.default.createElement("div",{className:v.default.datepickerLeft},s.default.createElement("div",null,t("BILLING_CYCLE"))),s.default.createElement("div",{className:v.default.datepickerRight},s.default.createElement("div",null,s.default.createElement(f.DatePicker,{defaultValue:r,value:r,showClearBtn:!1,dateFormat:E,minDate:this.minDate,maxDate:this.maxDate,onClose:this.getTimeRange({type:"start",methord:"close"}),onChange:this.handleTimeRangeChange("start")}),s.default.createElement("p",null,t("START_TIME"))),s.default.createElement("div",null,s.default.createElement(f.DatePicker,{defaultValue:n,value:n,showClearBtn:!1,dateFormat:E,minDate:this.minDate,maxDate:this.endMaxDate,onClose:this.getTimeRange({type:"end",methord:"close"}),onChange:this.handleTimeRangeChange("end")}),s.default.createElement("p",null,t("END_TIME"))),s.default.createElement("div",null,s.default.createElement("div",null,s.default.createElement(f.Select,{value:a,options:(0,p.getTimeOptions)(y),onChange:this.handleStepChange({type:"step",methord:"close"})})),s.default.createElement("p",null,t("SAMPLING_INTERVAL")))))}}]),r}(s.default.Component);a.default=b},function(e,t,a){e.exports={datepicker:"_27tdhObpPbURPjQ15hD9_p",datepickerLeft:"_1keZq2egvTiK6G1mB4EamV",datepickerRight:"_2JDSh06KoL1Fb1gCk0R4Qr"}},function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(6),r(29),r(18),r(4),r(23),r(24),r(17),r(64),r(7),r(32),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(6),r(29),r(18),r(42),r(4),r(23),r(57),r(24),r(17),r(64),r(7),r(32);var l=n(r(315)),u=n(r(36)),o=n(r(37)),i=n(r(55)),c=n(r(56)),s=n(r(51)),f=n(r(0)),d=n(r(26)),p=n(r(74)),m=n(r(63)),h=n(r(806)),v=n(r(60)),g=r(186),y=r(798),E=r(794),b=n(r(833)),_=n(r(3578)),O=r(943),S=n(r(3580));function C(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,s.default)(e);if(t){var n=(0,s.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,c.default)(this,a)}}var D=function(e){(0,i.default)(r,e);var a=C(r);function r(){var e;(0,u.default)(this,r);for(var n=arguments.length,l=new Array(n),o=0;o=0?1:-1),O=b,S=v>=0?"start":"end";return o.default.createElement("g",null,o.default.createElement("text",{x:a,y:r,dy:8,textAnchor:"middle",fill:f,className:"chart__center__text"},d.name),o.default.createElement(i.default,{cx:a,cy:r,innerRadius:l,outerRadius:u,startAngle:c,endAngle:s,fill:f}),o.default.createElement(i.default,{cx:a,cy:r,startAngle:c,endAngle:s,innerRadius:u+6,outerRadius:u+10,fill:f}),o.default.createElement("path",{d:"M".concat(g,",").concat(y,"L").concat(E,",").concat(b,"L").concat(_,",").concat(O),stroke:f,fill:"none"}),o.default.createElement("circle",{cx:_,cy:O,r:2,fill:f,stroke:"none"}),o.default.createElement("text",{x:_+12*(v>=0?1:-1),y:O,textAnchor:S,fill:"#333"},"".concat(m," ").concat(d.unit)),o.default.createElement("text",{x:_+12*(v>=0?1:-1),y:O,dy:18,textAnchor:S,fill:"#999"},"(".concat((100*p).toFixed(2),"%)")))},_=function(e){var a=e.data,r=e.dataKey,n=void 0===r?"value":r,l=(0,o.useState)(0),i=(0,u.default)(l,2),_=i[0],O=i[1];return(0,m.default)(a)?null:o.default.createElement(c.default,{width:"100%",height:"100%"},o.default.createElement(p.default,{width:250,height:250},o.default.createElement(s.default,{vertical:!0,content:function(e){var a=e.payload;return o.default.createElement("div",{className:g.default.resourceList},o.default.createElement("ul",null,a.map((function(e,a){var r=e.payload,n=r.name,l=r.value,u=r.type,i=r.unit;return o.default.createElement("li",{key:"item-".concat(a)},o.default.createElement("i",{style:{background:e.color}}),o.default.createElement(E.default,{icon:v.ICON_TYPES[u],type:u,name:n}),o.default.createElement(h.default,{className:g.default.info,title:"".concat(n),description:t(y.RESOURCE_TITLE[u])}),o.default.createElement("span",null," ".concat(l," ").concat(i)))}))))},verticalAlign:"top"}),o.default.createElement(d.default,{cx:"70%",data:a,dataKey:n,innerRadius:"60%",outerRadius:"75%",activeShape:b,activeIndex:_,onMouseEnter:function(e,t){O(t)}},a.map((function(e,t){return o.default.createElement(f.default,{key:"cell-".concat(e.name),fill:y.PIE_COLORS[t%y.PIE_COLORS.length],strokeWidth:1})})))))};a.default=_},function(e,t,a){e.exports={resourceList:"_31MsHfl5iWHdowDFRcP_c_",info:"_1x0CTr7Gdd16AxoTqHsNYT"}},function(e,t,a){e.exports={empty:"_17Mqxb1Mgn-uRdDZOJ1Qry",emptyCard:"_3Je_SSJ5BVw3PS1lYiaF4a",billDetail:"_34UPSURIT6CqbdKJPw0R7F",paddingBottom0:"Pwj-ykGPltZo5v5_plDlH",leftContent:"_3s_-nS9c5xnUUgNEPJ8KBe",usageCard:"_21O2m-U6tWGv0Y9s4Y4Ajh",meterCard:"_2gAbgzqWqzvuq_xZzCJQ1f",rightContent:"_3Aa1yND_BGYLN9nw7XneCp",content:"_3g0_NpYdRmw2VOPc2T6ywW",toothbg:"_1Rh1CvWKS3lQeuSjvWt3Y0",subTitle:"_3jfzvzWfyayS9TsDXqD6lC",info:"_2oNPFCeABRFS8ryVIKhich",childrenResourceContainer:"_1OGurl1hQb7F7WnATfB1QY",childrenlistContainer:"_2pzMlSUqyzZuZDlITePlsG",constomChartContainer:"_1yVmPte_v552Dq8WqeShqg"}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,a){e.exports={wrapper:"_1FhVvljOspycHsfzDrmHds",item:"_3uwdOWJxem3W_jqv6BAFu0",disabled:"sjn_zdlBrahI74WoV5omc",cluster:"_2s530jxSq442V0tK0dIkX-",action:"_30jbBaVzPyFFq_kLZenMJb",loading:"_2AViFhQ9LVdDjo1TbCma_n",clusterGroupTag:"_2tthhYeEaldV9GRAYCBRGE",production:"_3yIRf79JJMwAIiDuiJ-pCJ",development:"_3tNJGwW0JIy457E7wJg2vi",testing:"ITsFiOT5f8SuWqLf3dqin",demo:"rCDJ6PUxymw3W-b5WZ8KP",radios:"_3s7U5MUfODfm6UTxJ8Gkak"}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,a){"use strict";a(15),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(832),n={"node:pod_abnormal:ratio{$1}":{label:"UNAVAILABLE_POD_RATIO",prefixIcon:"pod",ruleConfig:r.PERCENT_RULE_CONFIG},"node:pod_utilisation:ratio{$1}":{label:"POD_QUOTA_UTILIZATION_SCAP",prefixIcon:"pod",ruleConfig:r.PERCENT_RULE_CONFIG},"node:node_cpu_utilisation:avg1m{$1}":{label:"CPU_UTILIZATION_SCAP",prefixIcon:"cpu",ruleConfig:r.PERCENT_RULE_CONFIG},"node:load1:ratio{$1}":{label:"CPU_LOAD_1",prefixIcon:"cpu",ruleConfig:r.BASE_RULE_CONFIG},"node:load5:ratio{$1}":{label:"CPU_LOAD_5",prefixIcon:"cpu",ruleConfig:r.BASE_RULE_CONFIG},"node:load15:ratio{$1}":{label:"CPU_LOAD_15",prefixIcon:"cpu",ruleConfig:r.BASE_RULE_CONFIG},"node:node_memory_bytes_available:sum{$1}":{label:"MEMORY_AVAILABLE",prefixIcon:"memory",ruleConfig:r.DISK_RULE_CONFIG},"node:node_memory_utilisation:{$1}":{label:"MEMORY_UTILIZATION_SCAP",prefixIcon:"memory",ruleConfig:r.PERCENT_RULE_CONFIG},"node:disk_space_available:{$1}":{label:"DISK_SPACE_AVAILABLE",prefixIcon:"storage",ruleConfig:r.DISK_RULE_CONFIG},"node:disk_space_utilization:ratio{$1}":{label:"DISK_SPACE_UTILIZATION",prefixIcon:"storage",ruleConfig:r.PERCENT_RULE_CONFIG},"node:disk_inode_utilization:ratio{$1}":{label:"INODE_UTILIZATION",prefixIcon:"storage",ruleConfig:r.PERCENT_RULE_CONFIG},"node:data_volume_iops_reads:sum{$1}":{label:"DISK_READ_IOPS",prefixIcon:"storage",ruleConfig:r.BASE_RULE_CONFIG},"node:data_volume_iops_writes:sum{$1}":{label:"DISK_WRITE_IOPS",prefixIcon:"storage",ruleConfig:r.BASE_RULE_CONFIG},"node:data_volume_throughput_bytes_read:sum{$1}":{label:"DISK_READ_THROUGHPUT",prefixIcon:"storage",ruleConfig:r.THROUGHPUT_RULE_CONFIG},"node:data_volume_throughput_bytes_written:sum{$1}":{label:"DISK_WRITE_THROUGHPUT",prefixIcon:"storage",ruleConfig:r.THROUGHPUT_RULE_CONFIG},"node:node_net_bytes_transmitted:sum_irate{$1}":{label:"DATA_SEND_RATE",prefixIcon:"network",ruleConfig:r.BANDWIDTH_RULE_CONFIG},"node:node_net_bytes_received:sum_irate{$1}":{label:"DATA_RECEIVE_RATE",prefixIcon:"network",ruleConfig:r.BANDWIDTH_RULE_CONFIG}};t.default=n},function(e,t,a){"use strict";a(15),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(832),n=(0,r.getBaseRuleConfig)({thresholds:{unit:"Kbps"}}),l={"namespace:workload_cpu_usage:sum{$1}":{label:"CPU_USAGE_SCAP",prefixIcon:"cpu",ruleConfig:r.CPU_RULE_CONFIG},"namespace:workload_memory_usage:sum{$1}":{label:"MEMORY_USAGE_SCAP",prefixIcon:"memory",ruleConfig:r.MEMORY_RULE_CONFIG},"namespace:workload_memory_usage_wo_cache:sum{$1}":{label:"MEMORY_USAGE_WO_CACHE_SCAP",prefixIcon:"memory",ruleConfig:r.MEMORY_RULE_CONFIG},"namespace:workload_net_bytes_transmitted:sum_irate{$1}":{label:"DATA_SEND_RATE",prefixIcon:"network",ruleConfig:n},"namespace:workload_net_bytes_received:sum_irate{$1}":{label:"DATA_RECEIVE_RATE",prefixIcon:"network",ruleConfig:n},"namespace:$2_unavailable_replicas:ratio{$1}":{label:"UNAVAILABLE_WORKLOAD_REPLICA_RATIO",prefixIcon:"backup",ruleConfig:r.PERCENT_RULE_CONFIG}};t.default=l},function(e,t,a){"use strict";a(15),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(832),n=(0,r.getBaseRuleConfig)({thresholds:{unit:"Kbps"}}),l={pod_cpu_usage:{label:"CPU_USAGE_SCAP",prefixIcon:"cpu",ruleConfig:r.CPU_RULE_CONFIG},pod_cpu_utilisation:{label:"CPU_UTILIZATION_SCAP",prefixIcon:"cpu",ruleConfig:r.PERCENT_RULE_CONFIG},pod_memory_usage:{label:"MEMORY_USAGE_SCAP",prefixIcon:"memory",ruleConfig:r.MEMORY_RULE_CONFIG},pod_memory_usage_wo_cache:{label:"MEMORY_USAGE_WO_CACHE_SCAP",prefixIcon:"memory",ruleConfig:r.MEMORY_RULE_CONFIG},pod_memory_utilisation:{label:"MEMORY_UTILIZATION_SCAP",prefixIcon:"memory",ruleConfig:r.PERCENT_RULE_CONFIG},pod_net_bytes_transmitted:{label:"DATA_SEND_RATE",prefixIcon:"network",ruleConfig:n},pod_net_bytes_received:{label:"DATA_RECEIVE_RATE",prefixIcon:"network",ruleConfig:n}};t.default=l},function(e,t,a){e.exports={tab_button:"_1GjZQuKzwgC-xJHgrDeRWF"}},function(e,t,a){e.exports={statusBox:"_3-nUUNPdHf6nbcNilZpYRu",tipContent:"_3hWwCJ2aJ_CoClIJxwLD92","li-inactive":"qR0ICXRI_XTjTQpSmpQ30","li-pending":"mSNAp1UtzsfpxCLTnhS7r","li-firing":"_3-ibjgejpBZzHSyM9CLeFN","li-disabled":"_28ksGom3cFiMbDfJ69J2Sj",pending:"i0nzirrByxHGMEKshU2B8",inactive:"TSFq6Mn2U7nNIetXHhvbq",firing:"_3ZvlqZkrbQaAbCXIzga0Gz",disabled:"_2x-hssz0bLHxhscbkXhHRp",iconDisabled:"_1BJXzHjXw3Nt_eSzIZepU4"}},function(e,t,a){e.exports={wrapper:"_3CpXh5MQSB8n7L6OXc7ywb",header:"_2hifQ3b2l1YUmAwfc_edPZ",banner:"_1tHeasrKfQAP5PPnH3kiAU",toolbar:"_1Tny-SYL1rocrF2kq-buRw",keyword:"_3ZFaXRGjHJxsMgsf7RM7xw",loading:"_2K9VjkD9XMBf2NvcEMJnVX",bottomLine:"_3nxTNKx3AtqUA6JhYLjjH7","table-icon":"_1qE9Pp0LPqxfcpulbP71V-",status_icon:"_3ob3SnNsE5wyYrjjB2PTMm",tab_button:"r-sE4t_ogqB-qnJe4kpcu"}},,,,function(e,a,r){"use strict";r(15);var n=r(157),l=r(20);r(97),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(97),r(4);var u=l(r(96)),o=n(r(0)),i=r(3713),c=l(r(3)),s=r(3716),f=r(3717),d=r(186),p=l(r(3719));var m=function(e){var a=e.item,r=e.user,n=(0,s.useDashboardHistory)(r),l=(0,u.default)(n,2),m=l[0],h=l[1],v=m.some((function(e){return e.id===a.id})),g=(0,f.useEventEmitter)();return(0,o.useEffect)((function(){g.$emit("FavoriteHistory-".concat(a.id),m)}),[m]),(0,o.useEffect)((function(){var e=function(e){m!==e&&h(e)};return g.$on("FavoriteHistory-".concat(a.id),e),function(){g.$off("FavoriteHistory-".concat(a.id),e)}}),[]),o.default.createElement("div",{className:(0,c.default)(p.default.favorite,"favorite-icon")},o.default.createElement(d.Tooltip,{content:v?t("CANCEL_QUICK_ACCESS"):t("ADD_TO_QUICK_ACCESS")},o.default.createElement("div",{onClick:function(e){e.stopPropagation(),e.preventDefault(),h(v?(0,s.removeDashboardHistory)(r,a.id,!1):(0,s.addDashboardHistory)(r,a,!1))}},v?o.default.createElement(i.StarDuotone,{className:"star",color:"#F5A623",size:16}):o.default.createElement(i.StarHalfDuotone,{className:"starHalf",size:16,color:"#36435C"}))))};a.default=m},function(e,t,a){"use strict";a(15),Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"StarDuotone",{enumerable:!0,get:function(){return r.StarDuotone}}),Object.defineProperty(t,"StarHalfDuotone",{enumerable:!0,get:function(){return n.StarHalfDuotone}});var r=a(3714),n=a(3715)},function(e,t,a){"use strict";a(15);var r=a(20);Object.defineProperty(t,"__esModule",{value:!0}),t.StarDuotone=function(e){var t=(0,l.mapProps)(e,16);return n.default.createElement("svg",t,n.default.createElement("path",{d:"M7.70083 0.943204C7.82285 0.694551 8.17731 0.69455 8.29932 0.943204L10.2145 4.84615C10.3113 5.04344 10.4992 5.18034 10.7166 5.21212L15.0015 5.83833C15.2743 5.8782 15.3836 6.21317 15.1867 6.40619L12.0825 9.44937C11.9265 9.60235 11.8553 9.82209 11.8921 10.0375L12.6246 14.3331C12.6711 14.6056 12.3846 14.813 12.1402 14.6838L8.3117 12.6595C8.11674 12.5564 7.88341 12.5564 7.68846 12.6595L3.85996 14.6838C3.61553 14.813 3.32908 14.6056 3.37556 14.3331L4.1081 10.0375C4.14483 9.82209 4.07367 9.60235 3.91762 9.44937L0.813478 6.40619C0.616597 6.21317 0.725816 5.8782 0.998629 5.83833L5.28353 5.21212C5.50098 5.18034 5.68881 5.04344 5.78562 4.84615L7.70083 0.943204Z",fill:"currentColor"}))};var n=r(a(0)),l=a(1800)},function(e,t,a){"use strict";a(15);var r=a(20);Object.defineProperty(t,"__esModule",{value:!0}),t.StarHalfDuotone=function(e){var t=(0,l.mapProps)(e,16);return n.default.createElement("svg",t,n.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.2145 4.84615C10.3113 5.04344 10.4992 5.18034 10.7166 5.21212L15.0015 5.83833C15.0186 5.84082 15.035 5.84447 15.0507 5.84916C15.2868 5.91952 15.3713 6.22524 15.1867 6.40619L12.0825 9.44937C11.9265 9.60235 11.8553 9.82209 11.8921 10.0375L12.6246 14.3331C12.6275 14.3501 12.6291 14.3669 12.6295 14.3833C12.6354 14.6302 12.3693 14.8049 12.1402 14.6838L8.3117 12.6595C8.11674 12.5564 7.88341 12.5564 7.68845 12.6595L3.85996 14.6838C3.61553 14.813 3.32908 14.6056 3.37556 14.3331L4.1081 10.0375C4.14483 9.82209 4.07367 9.60235 3.91762 9.44937L0.813478 6.40619C0.616597 6.21317 0.725816 5.8782 0.998629 5.83833L5.28353 5.21212C5.29712 5.21013 5.3106 5.20774 5.32394 5.20494C5.52411 5.16299 5.69486 5.03111 5.78562 4.84615L7.70083 0.943204C7.82285 0.69455 8.17731 0.694551 8.29932 0.943204L10.2145 4.84615ZM7.06521 11.4807C7.35765 11.3261 7.67886 11.2488 8.00007 11.2488V3.36006L6.9826 5.43352C6.69217 6.02539 6.1287 6.4361 5.47634 6.53144L3.1871 6.866L4.85104 8.49726C5.31916 8.95619 5.53266 9.61541 5.42245 10.2616L5.03114 12.5563L7.06521 11.4807ZM8.93494 11.4807C8.6425 11.3261 8.32129 11.2488 8.00008 11.2488V3.36006L9.01755 5.43352C9.30799 6.02539 9.87145 6.4361 10.5238 6.53144L12.8131 6.866L11.1491 8.49726C10.681 8.95619 10.4675 9.61541 10.5777 10.2616L10.969 12.5563L8.93494 11.4807Z",fill:"currentColor"}))};var n=r(a(0)),l=a(1800)},function(e,t,a){"use strict";var r=a(20);a(12),a(11),a(6),a(84),a(9),a(13),a(10),a(85),a(7),Object.defineProperty(t,"__esModule",{value:!0}),t.removeDashboardHistory=t.addDashboardHistory=t.useDashboardHistory=void 0;var n=r(a(30)),l=r(a(96));a(12),a(11),a(6),a(84),a(160),a(28),a(191),a(159),a(34),a(15),a(9),a(13),a(10),a(4),a(85),a(7);var u=r(a(806)),o=a(0);function i(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function c(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:"history-cache-v4",r=(0,o.useState)(null!==(t=s(a)[e])&&void 0!==t?t:[]),i=(0,l.default)(r,2),f=i[0],d=i[1];return(0,o.useEffect)((function(){var t,r=null!==(t=s(a)[e])&&void 0!==t?t:[];(0,u.default)(r,f)||d(r)}),[e,a]),(0,o.useEffect)((function(){localStorage.setItem(a,JSON.stringify(c(c({},s(a)),{},(0,n.default)({},e,f))))}),[f]),[f,d]};t.addDashboardHistory=function(e,t){var a,r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"history-cache-v4",u=null!==(a=s(l)[e])&&void 0!==a?a:[],o=u.filter((function(e){return e.id!==t.id}));return o.push(t),r&&localStorage.setItem(l,JSON.stringify(c(c({},s(l)),{},(0,n.default)({},e,o)))),o};t.removeDashboardHistory=function(e,t){var a,r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"history-cache-v4",u=null!==(a=s(l)[e])&&void 0!==a?a:[],o=u.filter((function(e){return Array.isArray(t)?!t.includes(e.id):e.id!==t}));return o.length===u.length||r&&localStorage.setItem(l,JSON.stringify(c(c({},s(l)),{},(0,n.default)({},e,o)))),o}},function(e,t,a){"use strict";a(15);var r=a(20);Object.defineProperty(t,"__esModule",{value:!0}),t.useEventEmitter=void 0;var n=(0,r(a(3718)).default)(),l=n.on,u=n.off,o=n.emit,i=n.all;t.useEventEmitter=function(){return{$on:l,$off:u,$emit:o,all:i}}},,function(e,t,a){e.exports={favorite:"_3JaIb46ozjKz2jKBsCjIAv"}},function(e,t,a){e.exports={wrapper:"_3qaPLN3flFkd7vdbb-a06X",icon:"_2nvnLCPMiMLWLpzmB_ss4Y",indicator:"_1korY3RT8tulRRgwANoA8l",group:"_2FFcxBZefuDpc8WshcrThZ",options:"_15s8_iioN5RvbWBdWUbE7i"}},,,,,,function(e,t,a){e.exports={table:"_1i60_Zk2GuZ0BSBW7unRbV",table_rank:"_2Mr7mDygEQ35XwS2BpvdbG",table_no_border:"_35xeFOcthetSVxVd7jbhy8",rankCol:"K5KlP-RunT4IdakA3VSci",table_transparent:"_1kEZxv3qugETuqEDftrkMQ"}},function(e,t,a){e.exports={wrapper:"kE3KwCjpxjL06m1JyXYqh",pane:"_2uVDNuCFQlEdzxeJFsgade",pane__toolbar:"_3pwemZYlldk8BVRzKSjR0M",title:"_2QLeiq4lO4-E0UWkTwZ2pU",toolbar:"B2iEbHtsi7TSbVQDFZAAM",toolbar_buttons:"_20ATWKNncgatSI7TsIFmSk",toolbar_filter:"_3DIJstY5eiupA7Z3Sx7ugA",sortTypeSelect:"_3xIBxesObSvBweKWDzU4ik",sort_button:"bIIGx7S36rL-ZE_ySMccm",table:"_3zcLFyY9c0qr-O4IcoD-xM",table_rank:"UQZcsZfu2_Uy2ZbJXbAhV",table_no_border:"_2CLtp-r29kgr89OqLBTEzk",rankList_row:"_3MTKghTP6FCVM_Oc0poYe2",rankCol:"WFE7sesMVKXIVySSq_c7Q",listContainer:"_36b1LYqEBKXqJV0PTKLfTL",pane__pagination:"toSE7w2UfWCbYgAaXuYw7",avatar:"_3D6xMvf2yi0ds1rEmmP39K"}},,,,,,,,,,,,function(e,t,a){e.exports={resourceRatio:"_1fUEZ2TB-t0fMQV4l3ACo4",subTitle:"_1vbcsgfDS-GM0SJqrqvnYL",title:"_1Ikw3GCgFAv_lfARz3bQA-",radio:"_1wUm6engBLe0T9ZdhKcK_c",radioWrapper:"v5ipbsb_HvTj8l-aUcg75",middleStyle:"_3ruV0WGGqizDKwONs0sDru"}},,,,function(e,t,a){e.exports={background:"_1OASQA4PfdJS_KhH_yCm-S",percent:"_1t1MfmrTC862QBXYV5D0xT",tooltip:"_1OIWC_rqd8Odp6dvqoZtet"}},,,,,,,,,,,,,,,,function(e,a,r){"use strict";r(15);var n=r(20);r(18),r(16),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(18),r(16);var l=n(r(61)),u=n(r(0)),o=r(239),i=n(r(241)),c=r(186),s=r(52),f=n(r(3760)),d=function(e){return u.default.createElement("span",{className:f.default.option,key:e.value},e.isFedManaged?u.default.createElement("img",{className:f.default.indicator,src:"/assets/cluster.svg"}):u.default.createElement(c.Icon,{name:"project"}),e.label)},p=(0,o.observer)((function(e){var a=e.namespace,r=e.list,n=e.onChange,o=e.onFetch,p=(0,i.default)(r,["page","total","limit"]),m=(0,l.default)(r.data.map((function(e){return{label:(0,s.showNameAndAlias)(e),value:e.name,isFedManaged:e.isFedManaged}})));return u.default.createElement(c.Select,{className:f.default.select,value:a,onChange:n,options:m,placeholder:t("ALL_PROJECTS"),pagination:p,isLoading:r.isLoading,valueRenderer:d,optionRenderer:d,onFetch:function(e){o(e)},searchable:!0,clearable:!0})}));a.default=p},function(e,t,a){e.exports={select:"_2YBMsPA_6y4KarYxsOs4xv",option:"zNLKUmmAgrOglv5eJIpKA"}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,a,r){"use strict";var n=r(20);r(12),r(11),r(6),r(18),r(16),r(9),r(13),r(10),r(4),r(23),r(17),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(45),r(11),r(6),r(18),r(28),r(442),r(42),r(16),r(34),r(15),r(9),r(13),r(10),r(4),r(23),r(57),r(17),r(7);var l=n(r(30)),u=n(r(36)),o=n(r(37)),i=n(r(88)),c=n(r(55)),s=n(r(56)),f=n(r(51)),d=r(186),p=n(r(3)),m=n(r(801)),h=n(r(450)),v=n(r(26)),g=n(r(60)),y=n(r(63)),E=n(r(1)),b=n(r(0)),_=r(52),O=r(794),S=n(r(3799)),C=n(r(949));function D(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function k(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},a=e||{},r=a.times,n=a.step,l=a.createTime,u={times:r,step:n};if(l){var o=new Date(l).valueOf()/1e3,i=Date.now()/1e3,c=i-o;switch(!0){case c<=1800:u.times=30,u.step="1m";break;case c<=3600:u.times=60,u.step="1m";break;case c<=18e3:u.times=60,u.step="5m"}}t.params=u},t.fetchData=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=t.state.cluster,r=k(k({},t.params),e);a&&(r.cluster=a),t.props.onFetch(r)},t.handleChange=function(e){t.params=e;var a=!e.start&&!e.end&&t.props.enableAutoRefresh;t.setState({enableAutoRefresh:a,autoRefresh:!1},(function(){(0,O.stopAutoRefresh)((0,i.default)(t)),t.fetchData()}))},t.handleClusterChange=function(e){t.setState({cluster:e},(function(){t.fetchData()}))},t.handleRefresh=function(){t.fetchData()},t.handleAutoRefresh=function(){t.setState({autoRefresh:!t.state.autoRefresh},(function(){t.state.autoRefresh?(0,O.startAutoRefresh)((0,i.default)(t)):(0,O.stopAutoRefresh)((0,i.default)(t))}))},t.handleToggle=function(e){t.setState({active:e})},t.state={active:!1,enableAutoRefresh:e.enableAutoRefresh,autoRefresh:!1,cluster:(0,v.default)(e,"clusters[0].name","")},t.init(),t}return(0,o.default)(r,[{key:"componentDidUpdate",value:function(e){e.step===this.props.step&&e.times===this.props.times&&e.createTime===this.props.createTime||(this.initParams(this.props),this.fetchData())}},{key:"componentWillUnmount",value:function(){(0,O.stopAutoRefresh)(this)}},{key:"init",value:function(){this.initParams(this.props),this.fetchData()}},{key:"renderAutoRefresh",value:function(){var e=this.state,t=e.enableAutoRefresh,a=e.autoRefresh;return t?b.default.createElement(d.Button,{className:S.default.button,type:"control",icon:a?"pause":"start",iconType:"light",onClick:this.handleAutoRefresh}):null}},{key:"renderCustomActions",value:function(){return this.props.customAction||null}},{key:"renderOperations",value:function(){var e=this.state.active,t=this.params,a=t.step,r=t.times,n=this.props.closeBtn;return b.default.createElement("div",{className:(0,p.default)(S.default.operations,(0,l.default)({},S.default.active,e))},this.props.isFederated&&b.default.createElement(d.Select,{key:this.state.cluster,prefixIcon:b.default.createElement(d.Icon,{name:"cluster"}),className:S.default.clusters,value:this.state.cluster,options:this.clusters,onChange:this.handleClusterChange,showTip:!0}),b.default.createElement(C.default,{step:a,times:r,onChange:this.handleChange,onToggle:this.handleToggle}),this.renderAutoRefresh(),b.default.createElement(d.Button,{className:S.default.button,type:"control",icon:"refresh",iconType:"light",onClick:this.handleRefresh}),this.renderCustomActions(),n)}},{key:"renderTitle",value:function(){var e=this.props.title||t("MONITORING");return b.default.createElement("div",{className:S.default.title},b.default.createElement("span",null,e),this.renderOperations())}},{key:"renderContent",value:function(){var e=this.props.children;return(0,y.default)(e)||(0,g.default)(e)&&(0,y.default)((0,h.default)(e).filter((function(e){return e})))?null:e}},{key:"render",value:function(){var e=this.props.loading,a=this.state.active;return b.default.createElement(d.Loading,{spinning:e},b.default.createElement(m.default,{className:(0,p.default)(S.default.card,(0,l.default)({},S.default.showDropDown,a)),title:this.renderTitle(),empty:t("NO_MONITORING_DATA"),isEmpty:this.props.isEmpty},b.default.createElement("div",{className:S.default.content},this.renderContent())))}},{key:"clusters",get:function(){return this.props.clusters.map((function(e){return{label:(0,_.showNameAndAlias)(e.name||e,"cluster"),value:e.name||e}}))}}]),r}(b.default.Component);a.default=T,T.propTypes={title:E.default.string,step:E.default.string,times:E.default.number,createTime:E.default.string,onFetch:E.default.func,loading:E.default.bool,refreshing:E.default.bool,isEmpty:E.default.bool,enableAutoRefresh:E.default.bool,customAction:E.default.oneOfType([E.default.node,E.default.element])},T.defaultProps={step:"10m",times:50,createTime:"",onFetch:function(){},loading:!1,refreshing:!1,isEmpty:!1,enableAutoRefresh:!0,customAction:""}},function(e,t,a){e.exports={card:"HkMSwByVKb_DH9GlZNpYS",title:"_1oinAKfdPYwC75teupWmDr",operations:"D3Ewo-uPBdaiIlaz7nbG1",button:"_2lV2YHNnzVWYZbgRLPezn6",content:"_39DKIQh7O8MogkRM7IB5wu",showDropDown:"_3wdK0lJ1xKmVaSH1oQH9iA",clusters:"_2NdSlr3w6Oy3jYXDPydnMT"}},function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(16),r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(42),r(16),r(4),r(436),r(319),r(23),r(57),r(17);var l=n(r(30)),u=n(r(36)),o=n(r(37)),i=n(r(55)),c=n(r(56)),s=n(r(51)),f=n(r(0)),d=n(r(1)),p=n(r(3)),m=n(r(26)),h=r(798),v=n(r(3801));function g(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,s.default)(e);if(t){var n=(0,s.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,c.default)(this,a)}}var y=function(e){(0,i.default)(r,e);var a=g(r);function r(){var e;(0,u.default)(this,r);for(var t=arguments.length,n=new Array(t),l=0;l0&&void 0!==arguments[0]?arguments[0]:{};r.props.onFetch(e)},r.handleTabClick=function(e){return(0,v.cacheFunc)("_tab_".concat(e),(function(){r.setState({activeIndex:Number(e)})}),(0,o.default)(r))},r.state={activeIndex:0},r.fetchData(),r}return(0,u.default)(a,[{key:"componentDidMount",value:function(){(0,g.startAutoRefresh)(this,{interval:1e4,leading:!1})}},{key:"componentWillUnmount",value:function(){(0,g.stopAutoRefresh)(this)}},{key:"renderTabList",value:function(){var e=this,t=this.props.tabOptions,a=this.state.activeIndex;return(0,m.default)(t)?null:f.default.createElement("div",{className:_.default.tabList},t.map((function(t,r){var l=r===a,u=t.component,o=t.render,i=S(S({},t.props),{},{active:l});return f.default.createElement("div",{key:r,className:(0,p.default)(_.default.tab,(0,n.default)({},_.default.active,l)),onClick:e.handleTabClick(r)},f.default.createElement("i",{className:_.default.img}),f.default.createElement("div",{className:_.default.inner},(0,h.default)(o)?o(i):f.default.createElement(u,i)))})))}},{key:"renderTabContent",value:function(){var e=this.props.contentOptions,t=e[this.state.activeIndex]||{},a=t.component,r=t.render,n=S({},t.props);return f.default.createElement("div",{className:_.default.tabContent},f.default.createElement("div",{className:_.default.inner},(0,m.default)(e)?f.default.createElement(b.default,null):(0,h.default)(r)?r(n):f.default.createElement(a,n)))}},{key:"render",value:function(){var e=this.props,t=e.className,a=e.title,r=e.loading;return f.default.createElement(E.default,{className:(0,p.default)(_.default.card,t),title:a},f.default.createElement(y.Loading,{spinning:r},f.default.createElement("div",{className:_.default.content},this.renderTabList(),this.renderTabContent())))}}]),a}(f.default.Component);t.default=D,D.propTypes={title:d.default.string,tabOptions:d.default.array,contentOptions:d.default.array,loading:d.default.bool,refreshing:d.default.bool,onFetch:d.default.func},D.defaultProps={title:"",tabOptions:[],contentOptions:[],loading:!0,refreshing:!1,onFetch:function(){}}},function(e,t,a){e.exports={content:"_2Xa5otudrXKkSBP4ZXj_25",tabList:"aUXLJpvLU0FB8AeOm_82I",tab:"_3ZiPd90tJiVMCa-tFKc6nM",active:"_1tGP7Q2XasoaNQb4W3sxtn",img:"_1C8h77HY1Vvimz27VInPzs",inner:"DjQwqZQmUhjM9VR9YmkZ",tabContent:"_2yiUNLbPZ7wkxc_wDsSjcI"}},function(e,a,r){"use strict";var n=r(20);r(12),r(11),r(6),r(18),r(9),r(13),r(10),r(4),r(316),r(23),r(17),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(45),r(11),r(6),r(18),r(28),r(42),r(34),r(15),r(9),r(13),r(10),r(4),r(316),r(23),r(57),r(17),r(7);var l,u=n(r(315)),o=n(r(30)),i=n(r(36)),c=n(r(37)),s=n(r(55)),f=n(r(56)),d=n(r(51)),p=n(r(0)),m=r(239),h=n(r(26)),v=r(794),g=n(r(890)),y=r(52),E=r(798),b=r(822),_=n(r(3805));function O(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function S(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};t.monitorStore.fetchMetrics(S({metrics:Object.values((0,y.hideGPUByLicense)(D,t.props.cluster)),step:"5m",times:100},e))},t.getValue=function(e){return(0,h.default)(e,"value[1]",0)},t.getTabOptions=function(){var e=(0,v.getLastMonitoringData)(t.metrics),a=[{name:"CPU",unitType:"cpu",used:t.getValue(e[D.cpu_usage]),total:t.getValue(e[D.cpu_total])},{name:"MEMORY",unitType:"memory",used:t.getValue(e[D.memory_usage]),total:t.getValue(e[D.memory_total])},{name:"GPU",used:t.getValue(e[D.gpu_usage]),total:t.getValue(e[D.gpu_total])},{name:"GPU_MEMORY",unitType:"memory",used:t.getValue(e[D.gpu_memory_usage]),total:t.getValue(e[D.gpu_memory_total])},{name:"DISK",unitType:"disk",used:t.getValue(e[D.disk_size_usage]),total:t.getValue(e[D.disk_size_capacity])},{name:"PODS",unit:"",used:t.getValue(e[D.pod_count]),total:t.getValue(e[D.pod_capacity])}];return(0,y.hideGPUByLicense)(a,t.props.cluster).map((function(e){return{props:e,component:_.default}}))},t.getContentOptions=function(){var e=[{type:"utilisation",title:"CPU_USAGE",unit:"%",legend:["USAGE"],data:(0,h.default)(t.metrics,"".concat(D.cpu_utilisation,".data.result"))},{type:"utilisation",title:"MEMORY_USAGE",unit:"%",legend:["USAGE"],data:(0,h.default)(t.metrics,"".concat(D.memory_utilisation,".data.result"))},{type:"utilisation",title:"GPU_USAGE",unit:"%",legend:["USAGE"],data:(0,h.default)(t.metrics,"".concat(D.gpu_utilization,".data.result"))},{title:"GPU_MEMORY_USAGE",type:"utilisation",unit:"%",legend:["USAGE"],data:(0,h.default)(t.metrics,"".concat(D.gpu_memory_utilization,".data.result"))},{type:"utilisation",title:"DISK_USAGE",unit:"%",legend:["USAGE"],data:(0,h.default)(t.metrics,"".concat(D.disk_utilisation,".data.result"))},{title:"POD_COUNT",unit:"",legend:["COUNT"],data:(0,h.default)(t.metrics,"".concat(D.pod_count,".data.result"))}];return(0,y.hideGPUByLicense)(e,t.props.cluster).map((function(e){return{props:e,render:t.renderChart}}))},t.monitorStore=new g.default({cluster:e.cluster}),t}return(0,c.default)(r,[{key:"renderChart",value:function(e){var t={key:e.title,width:"100%",height:"100%"};switch(e.type){default:case"area":var a=(0,v.getAreaChartOps)(e);return p.default.createElement(E.SimpleArea,(0,u.default)({},t,a))}}},{key:"render",value:function(){var e=this.monitorStore,a=e.isLoading,r=e.isRefreshing;return p.default.createElement(b.StatusTabs,{title:t("CLUSTER_RESOURCE_USAGE"),tabOptions:this.getTabOptions(),contentOptions:this.getContentOptions(),loading:a,refreshing:r,onFetch:this.fetchData})}},{key:"routing",get:function(){return this.props.rootStore.routing}},{key:"metrics",get:function(){return this.monitorStore.data}}]),r}(p.default.Component))||l)||l;a.default=k},function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(16),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var l=n(r(30));r(5),r(16),r(436);var u=n(r(0)),o=n(r(3)),i=r(794),c=r(798),s=n(r(3806)),f=function(e){var a=e.active,r=e.name,n=e.used,f=e.total,d=e.unit,p=e.unitType,m=t(r),h=(0,i.getSuitableUnit)(f||n,p)||d,v=(0,i.getValueByUnit)(n,h),g=(0,i.getValueByUnit)(f,h),y="core"===h?"CORE_PL":h;return u.default.createElement("div",{className:(0,o.default)(s.default.tab,(0,l.default)({},s.default.active,a))},u.default.createElement(c.SimpleCircle,{width:40,height:40,title:m,value:parseFloat(v),total:parseFloat(g),unit:h,showCenter:!1,showRate:!0,active:a}),u.default.createElement("div",{className:s.default.info},u.default.createElement("div",{className:s.default.title},m," ",t(y)),u.default.createElement("p",{title:"".concat(v,"/").concat(g)},v,u.default.createElement("span",null,"/",g))))};a.default=f},function(e,t,a){e.exports={tab:"_31-JVKem4VcI-TtgNWqY6Z",active:"_2tHL5e_1AJNteMDLEE_YbE",info:"hs8j62Zb-8wabHzFg3UiM",title:"_3WVO0kjKDahAj7KuGMbO57"}},function(e,a,r){"use strict";var n=r(20);r(12),r(11),r(31),r(6),r(18),r(9),r(13),r(10),r(4),r(23),r(17),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(45),r(11),r(31),r(6),r(18),r(28),r(42),r(34),r(15),r(9),r(13),r(10),r(4),r(22),r(23),r(57),r(17),r(7);var l=n(r(315)),u=n(r(43)),o=n(r(30));r(41);var i,c=n(r(44)),s=n(r(36)),f=n(r(37)),d=n(r(55)),p=n(r(56)),m=n(r(51)),h=n(r(0)),v=r(239),g=n(r(63)),y=n(r(26)),E=r(72),b=r(794),_=n(r(988)),O=r(798),S=r(822),C=n(r(3808));function D(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function k(e){for(var t=1;t0&&void 0!==r[0]?r[0]:{},a=k({step:"5m",times:100},t),e.next=4,n.apiStore.fetchMetrics(k({metrics:[T.request_latencies_total,T.request_latencies_apis,T.request_rate]},a));case 4:return e.next=6,n.schedulerStore.fetchMetrics(k({metrics:[T.schedule_attempts_count,T.schedule_attempt_rate]},a));case 6:case"end":return e.stop()}}),e)}))),n.getSpecificData=function(e,t,a){return((0,y.default)(n.metrics,"".concat(T[e],".data.result"))||[]).find((function(e){return(0,y.default)(e,"metric.".concat(t))===a}))||{}},n.getVerbData=function(e){return n.getSpecificData("request_latencies_apis","verb",e)},n.getTabOptions=function(){return[{icon:E.ICON_TYPES.apiserver,name:"API_SERVER",title:"REQUEST_LATENCY_TCAP"},{icon:E.ICON_TYPES.apiserver,name:"API_SERVER",title:"REQUEST_RATE"},{icon:E.ICON_TYPES.scheduler,name:"SCHEDULER",title:"SCHEDULE_ATTEMPTS_TCAP"},{icon:E.ICON_TYPES.scheduler,name:"SCHEDULER",title:"SCHEDULING_RATE_TCAP"}].map((function(e){return{props:e,component:C.default}}))},n.getContentOptions=function(){var e=n.metrics;return[{type:"area",title:"REQUEST_LATENCY",unit:"ms",legend:["REST_GET","REST_POST","REST_PATCH","REST_DELETE","REST_PUT","TOTAL_AVERAGE"],data:[n.getVerbData("GET"),n.getVerbData("POST"),n.getVerbData("PATCH"),n.getVerbData("DELETE"),n.getVerbData("PUT"),(0,y.default)(e,"".concat(T.request_latencies_total,".data.result[0]"))]},{type:"area",title:"REQUEST_PER_SECOND",unit:t("TIMES_PER_SECOND"),legend:["REQUEST"],data:(0,y.default)(e,"".concat(T.request_rate,".data.result"))},{type:"area",title:"SCHEDULE_ATTEMPTS",unit:"",legend:["SUCCESS","ERROR","FAILURE"],data:[n.getSpecificData("schedule_attempts_count","result","scheduled"),n.getSpecificData("schedule_attempts_count","result","error"),n.getSpecificData("schedule_attempts_count","result","unschedulable")],areaColors:["blue","red","yellow"]},{type:"area",title:"SCHEDULING_RATE",unit:t("TIMES_PER_SECOND"),legend:["SUCCESS","ERROR","FAILURE"],data:[n.getSpecificData("schedule_attempt_rate","result","scheduled"),n.getSpecificData("schedule_attempt_rate","result","error"),n.getSpecificData("schedule_attempt_rate","result","unschedulable")],areaColors:["blue","red","yellow"]}].map((function(e){return{props:e,render:n.renderChart}}))},n.apiStore=new _.default({module:"apiserver",cluster:e.cluster}),n.schedulerStore=new _.default({module:"scheduler",cluster:e.cluster}),n}return(0,f.default)(r,[{key:"renderChart",value:function(e){var t={key:e.title,width:"100%",height:"100%"},a=(0,b.getAreaChartOps)(e);return(0,g.default)(a.data)?null:(e.type,h.default.createElement(O.SimpleArea,(0,l.default)({},t,a)))}},{key:"render",value:function(){var e=this.schedulerStore,a=e.isLoading,r=e.isRefreshing;return h.default.createElement(S.StatusTabs,{title:t("SERVICE_COMPONENT_MONITORING"),tabOptions:this.getTabOptions(),contentOptions:this.getContentOptions(),loading:a,refreshing:r,onFetch:this.fetchData})}},{key:"routing",get:function(){return this.props.rootStore.routing}},{key:"metrics",get:function(){var e=this.apiStore.data,t=this.schedulerStore.data;return k(k({},e),t)}}]),r}(h.default.Component))||i)||i;a.default=R},function(e,a,r){"use strict";r(15);var n=r(20);r(16),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var l=n(r(315)),u=n(r(30));r(16);var o=n(r(0)),i=n(r(3)),c=r(186),s=n(r(3809)),f=function(e){var a=e.active,r=e.icon,n=e.name,f=e.title;return o.default.createElement("div",{className:(0,i.default)(s.default.tab,(0,u.default)({},s.default.active,a))},o.default.createElement(c.Icon,(0,l.default)({name:r,size:40},a?{color:{primary:"#fff",secondary:"#fff"}}:null)),o.default.createElement("div",{className:s.default.info},o.default.createElement("div",{className:s.default.title},t(n)),o.default.createElement("p",{dangerouslySetInnerHTML:{__html:t(f)}})))};a.default=f},function(e,t,a){e.exports={tab:"_34GN7J206xlTqjhJCfdruX",active:"_3qtjymCMRzmNFfc7Wy9IMr",info:"_2XEdgRJbCd_3cr8VVZfKQo",title:"_3PNsSTeAIrmYtf2UkG8H_4"}},function(e,a,r){"use strict";var n=r(20);r(12),r(11),r(31),r(6),r(18),r(9),r(13),r(10),r(4),r(316),r(23),r(17),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(45),r(11),r(31),r(6),r(18),r(28),r(42),r(34),r(15),r(9),r(13),r(10),r(4),r(316),r(23),r(57),r(17),r(7);var l,u=n(r(315)),o=n(r(30)),i=n(r(36)),c=n(r(37)),s=n(r(55)),f=n(r(56)),d=n(r(51)),p=n(r(0)),m=r(239),h=n(r(63)),v=n(r(26)),g=r(72),y=r(794),E=n(r(988)),b=r(798),_=r(822),O=r(1132),S=n(r(3811));function C(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function D(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};n.monitorStore.fetchMetrics(D({metrics:Object.values(N),step:"5m",times:100},e))},n.getSpecificData=function(e,t,a){return((0,v.default)(n.metrics,"".concat(N[e],".data.result"))||[]).find((function(e){return(0,v.default)(e,"metric.".concat(t))===a}))||{}},n.getVerbData=function(e){return n.getSpecificData("request_latencies_apis","verb",e)},n.getTabOptions=function(){return[{icon:g.ICON_TYPES.etcd,name:"etcd",title:"ETCD_STATUS"},{icon:g.ICON_TYPES.etcd,name:"etcd",title:"ETCD_PROPOSAL"},{icon:g.ICON_TYPES.etcd,name:"etcd",title:"ETCD_DB_SIZE"},{icon:g.ICON_TYPES.etcd,name:"etcd",title:"ETCD_CLIENT_TRAFFIC"}].map((function(e){return{props:e,component:S.default}}))},n.getContentOptions=function(){var e=n.metrics;return[{props:{cluster:n.props.cluster},component:O.ETCDNodes},{props:{type:"area",title:"RAFT_PROPOSAL",unit:t("TIMES_PER_SECOND"),legend:["PROPOSAL_COMMITTED","PROPOSAL_APPLIED","PROPOSAL_FAILED","PROPOSAL_PENDING"],data:[(0,v.default)(e,"".concat(N.proposals_committed_rate,".data.result[0]")),(0,v.default)(e,"".concat(N.proposals_applied_rate,".data.result[0]")),(0,v.default)(e,"".concat(N.proposals_failed_rate,".data.result[0]")),(0,v.default)(e,"".concat(N.proposals_pending_count,".data.result[0]"))],areaColors:["blue","green","red","yellow"]},render:n.renderChart},{props:{type:"area",title:"DB_SIZE",unitType:"memory",legend:["DB_SIZE"],data:(0,v.default)(e,"".concat(N.db_size,".data.result"))},render:n.renderChart},{props:{type:"area",title:"CLIENT_TRAFFIC",unitType:"traffic",legend:["RECEIVED","SENT"],data:[(0,v.default)(e,"".concat(N.client_received_bytes,".data.result[0]")),(0,v.default)(e,"".concat(N.client_sent_bytes,".data.result[0]"))]},render:n.renderChart}]},n.monitorStore=new E.default({module:"etcd",cluster:e.cluster}),n}return(0,c.default)(r,[{key:"renderChart",value:function(e){var t={key:e.title,width:"100%",height:"100%"},a=(0,y.getAreaChartOps)(e);return(0,h.default)(a.data)?null:(e.type,p.default.createElement(b.SimpleArea,(0,u.default)({},t,a)))}},{key:"render",value:function(){var e=this.monitorStore,a=e.isLoading,r=e.isRefreshing;return p.default.createElement(_.StatusTabs,{title:t("ETCD_MONITORING"),tabOptions:this.getTabOptions(),contentOptions:this.getContentOptions(),loading:a,refreshing:r,onFetch:this.fetchData})}},{key:"routing",get:function(){return this.props.rootStore.routing}},{key:"metrics",get:function(){return this.monitorStore.data}}]),r}(p.default.Component))||l)||l;a.default=T},function(e,a,r){"use strict";r(15);var n=r(20);r(16),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var l=n(r(315)),u=n(r(30));r(16);var o=n(r(0)),i=n(r(3)),c=r(186),s=n(r(3812)),f=function(e){var a=e.active,r=e.icon,n=e.name,f=e.title;return o.default.createElement("div",{className:(0,i.default)(s.default.tab,(0,u.default)({},s.default.active,a))},o.default.createElement(c.Icon,(0,l.default)({name:r,size:40},a?{color:{primary:"#fff",secondary:"#fff"}}:null)),o.default.createElement("div",{className:s.default.info},o.default.createElement("div",{className:s.default.title},t(n)),o.default.createElement("p",{dangerouslySetInnerHTML:{__html:t(f)}})))};a.default=f},function(e,t,a){e.exports={tab:"_15NMG2yXO_Lun04XhV1Lae",active:"_3mR_zhBbwIvUT97S3UqHnU",info:"_3kMKZotOFJMQzgswYhBdW5",title:"_32I8HGLqDgqBJ2KQ_xitGY",nodes:"_3kzjrp7n3suOj46Y7ty3tY",item:"_3PsSoBgegEfVBTreynBugR",icon:"_3h-fE6NmNSMobCbCpYskqB",circle:"_2R8YGxK8I4oAmDRZu9Ay9r",offline:"_2svSg92VRM_kYrOaBMJMqF"}},function(e,a,r){"use strict";var n=r(20);r(12),r(11),r(31),r(6),r(18),r(9),r(13),r(10),r(4),r(316),r(23),r(17),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(45),r(11),r(31),r(6),r(18),r(28),r(42),r(34),r(15),r(9),r(13),r(10),r(4),r(316),r(23),r(57),r(17),r(7);var l,u=n(r(30)),o=n(r(36)),i=n(r(37)),c=n(r(55)),s=n(r(56)),f=n(r(51)),d=n(r(0)),p=r(239),m=n(r(3)),h=n(r(63)),v=n(r(26)),g=n(r(988)),y=r(186),E=n(r(846)),b=n(r(3814)),_=n(r(1808));function O(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function S(e){for(var t=1;t1&&p.default.createElement(_.Tooltip,{content:this.renderPodIPContent(this.networkIPs)},p.default.createElement("div",{className:k.default.podip},this.networkIPs.length))),p.default.createElement("p",null,t("POD_IP_ADDRESS_SCAP"))),this.renderMonitorings(),p.default.createElement("div",{className:k.default.arrow},p.default.createElement(_.Icon,{name:"chevron-down",type:u?"light":"",size:20})))}},{key:"renderExtraContent",value:function(){var e=this,a=this.props,r=a.prefix,n=a.isEdgeWize,l=this.props.detail,u=l.cluster,o=l.containers,i=void 0===o?[]:o,c=l.initContainers,s=void 0===c?[]:c,f=l.name;return(0,g.default)(i)?null:p.default.createElement("div",{className:k.default.itemExtra},p.default.createElement("div",{className:"margin-b8"},p.default.createElement("strong",null,t("CONTAINER_PL"))),p.default.createElement("div",{className:k.default.containers},i.map((function(t){return p.default.createElement(C.default,{isEdgeWize:n,key:t.name,prefix:r&&e.getLink(),podName:f,detail:t,cluster:u,onContainerClick:e.handleLinkClick,isCreating:e.isCreating})})),s.map((function(t){return p.default.createElement(C.default,{key:t.name,isEdgeWize:n,prefix:r&&e.getLink(),podName:f,detail:t,cluster:u,onContainerClick:e.handleLinkClick,isCreating:e.isCreating,isInit:!0})}))))}},{key:"render",value:function(){var e=this.props,t=e.className,a=e.isExpand;return p.default.createElement("div",{className:(0,v.default)(k.default.item,t,(0,u.default)({},k.default.expanded,a))},p.default.createElement("div",{className:k.default.itemMain,onClick:this.handleExpandExtra},p.default.createElement("div",{className:k.default.icon},p.default.createElement(_.Icon,{name:"pod",size:40,type:a?"light":"dark"}),this.renderStatusTip()),this.renderContent()),this.renderExtraContent())}},{key:"status",get:function(){var e=this.props.detail.podStatus,t=e.status;return{type:e.type.toLowerCase(),name:t}}},{key:"isCreating",get:function(){return"warning"===this.status.type&&"ContainerCreating"===this.status.name}},{key:"isRunning",get:function(){return"running"===this.status.type||"completed"===this.status.type}},{key:"networkIPs",get:function(){return this.props.detail.networksStatus.reduce((function(e,t){return t.ips?[].concat((0,l.default)(e),(0,l.default)(t.ips)):(0,l.default)(e)}),[])}}]),r}(p.default.PureComponent);a.default=T,T.propTypes={isEdgeWize:h.default.bool,className:h.default.string,prefix:h.default.string,detail:h.default.object,metrics:h.default.object,loading:h.default.bool,isExpand:h.default.bool,onExpand:h.default.func,onShowEvents:h.default.func,showMonitoring:h.default.bool},T.defaultProps={prefix:"",detail:{},isEdgeWize:!1,isExpand:!1,onExpand:function(){},showMonitoring:!0}},function(e,a,r){"use strict";r(15);var n=r(20);r(16),r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(42),r(16),r(4),r(23),r(57),r(17);var l=n(r(36)),u=n(r(37)),o=n(r(55)),i=n(r(56)),c=n(r(51)),s=n(r(0)),f=n(r(26)),d=n(r(787)),p=n(r(801)),m=n(r(846)),h=n(r(1373)),v=r(1),g=n(r(3884));function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,c.default)(e);if(t){var n=(0,c.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,i.default)(this,a)}}var E=function(e){(0,o.default)(r,e);var a=y(r);function r(){return(0,l.default)(this,r),a.apply(this,arguments)}return(0,u.default)(r,[{key:"renderContent",value:function(){var e=this.props.container,t=e.namespace,a=e.name,r=this.props,n=r.podName,l=r.isEdgeWize,u=this.context,o=u.gatewayName,i=u.gatewayNs,c=u.cluster||this.props.cluster;return(0,f.default)(this.props,"container.containerID")?s.default.createElement(h.default,{isEdgeWize:l,className:g.default.containerLog,contentClassName:g.default.containerLogContent,namespace:t,podName:n,cluster:c,containerName:a,gatewayName:o,gatewayNamespace:i}):s.default.createElement(p.default,null,s.default.createElement(m.default,{desc:"CONTAINER_LOGS_NOT_SUPPORTED"}))}},{key:"render",value:function(){var e=this.props,a=e.visible,r=e.onCancel;return s.default.createElement(d.default,{bodyClassName:g.default.body,title:t("CONTAINER_LOGS"),visible:a,onCancel:r,fullScreen:!0,hideFooter:!0},this.renderContent())}}]),r}(s.default.Component);a.default=E,E.contextTypes={isEdgeWize:v.PropTypes.bool,gatewayName:v.PropTypes.string,gatewayNs:v.PropTypes.string,cluster:v.PropTypes.string}},function(e,t,a){e.exports={body:"_2xIpWv0eUy2KqNf-tYtdAs",containerLog:"-vLGgh65xBp9j5muKQxTD",containerLogContent:"dnH0_IiFyYfpYfmg1hgpq"}},function(e,t,a){e.exports={content:"_39OJSr_1I0ySWE5IDXTgPS",table:"_2siFIGV4OlLNAn6cC6ip6o"}},function(e,t,a){e.exports={wrapper:"_3JO8ALufHH6Th6RsLTg6EB",box:"fJxyscdhUqQ5IqvqrNnv8",card:"_2VT5I0TDMsCwcJ_SuhMM6s",name:"_2QZjb0CkVrOEBHJUBPFnwI",value:"_1d4Yqo0p0_Y6uq8-vShyXl"}},function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(18),r(16),r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(18),r(42),r(16),r(4),r(23),r(57),r(17);var l,u,o,i=n(r(36)),c=n(r(37)),s=n(r(55)),f=n(r(56)),d=n(r(51)),p=n(r(3)),m=n(r(788)),h=n(r(801)),v=r(239),g=n(r(1)),y=n(r(0)),E=r(52),b=r(467),_=n(r(3888));function O(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,d.default)(e);if(t){var n=(0,d.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,f.default)(this,a)}}var S=(0,v.observer)((o=u=function(e){(0,s.default)(r,e);var a=O(r);function r(){var e;(0,i.default)(this,r);for(var n=arguments.length,l=new Array(n),u=0;u1&&void 0!==arguments[1]?arguments[1]:{},l=(0,v.createPatch)("yaml",a,r,"","",{context:-1}),o=(0,g.parse)(l);return(0,g.html)(o,b({drawFileList:!1},n))}},{key:"componentDidUpdate",value:function(e){(0,m.default)(e.datas,this.props.datas)||this.setState({diffHtml:this.getDiffHtml(this.props.datas,{outputFormat:this.state.mode})})}},{key:"render",value:function(){var e=this.props,t=e.title,a=e.description;return d.default.createElement("div",null,d.default.createElement("div",{className:y.default.header},d.default.createElement(h.Icon,{name:"terminal",size:20}),d.default.createElement("span",null,t),d.default.createElement(h.Icon,{name:"chevron-down",clickable:!0,size:20,onClick:this.handleModeChange("line-by-line")}),d.default.createElement(h.Icon,{name:"chevron-right",clickable:!0,size:20,onClick:this.handleModeChange("side-by-side")}),d.default.createElement("span",{className:"float-right"},a)),d.default.createElement("div",{dangerouslySetInnerHTML:{__html:this.state.diffHtml}}))}}]),a}(d.Component);t.default=O,O.propTypes={title:p.default.string,datas:p.default.arrayOf(p.default.string)},O.defaultProps={datas:["",""]}},,,function(e,t,a){},function(e,t,a){e.exports={header:"_21by05Ap1WqFl6ETG7MnQY"}},function(e,t,a){e.exports={header:"_1O9lrtOWxJdpIuBxJLt2lX",diffWrapper:"rJcIkfzIkKyVB8RM7xFBo"}},function(e,a,r){"use strict";r(15);var n=r(20);r(11),r(84),r(18),r(16),r(4),r(23),r(17),r(85),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(11),r(84),r(18),r(28),r(42),r(16),r(4),r(23),r(57),r(17),r(85);var l=n(r(30)),u=n(r(61)),o=n(r(36)),i=n(r(37)),c=n(r(88)),s=n(r(55)),f=n(r(56)),d=n(r(51)),p=n(r(0)),m=n(r(1)),h=n(r(3)),v=n(r(63)),g=n(r(26)),y=n(r(928)),E=n(r(854)),b=r(52),_=r(72),O=r(794),S=r(186),C=n(r(240)),D=n(r(846)),k=n(r(1410));function N(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,d.default)(e);if(t){var n=(0,d.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,f.default)(this,a)}}var T=function(e){(0,s.default)(r,e);var a=N(r);function r(e){var n;return(0,o.default)(this,r),(n=a.call(this,e)).getItemName=function(e){return(0,g.default)(e,"metric.pod","-")},n.getCurrentValue=function(e){var t=n.props.config,a=t.type,r=t.unitType;return(0,O.getSuitableValue)((0,g.default)(e,"value[1]"),r||a)},n.handleScroll=function(e){var t=e.target,a=t.clientHeight,r=t.scrollHeight,l=a+t.scrollTop===r,u=n.props,o=u.data,i=u.page,c=u.total,s=u.onFetch;!n.scrolling&&c!==o.length&&l&&(n.scrolling=!0,s({more:!0,page:i+1}).then((function(){n.scrolling=!1})))},n.toggleChecked=function(e){n.setState({showChecked:e})},n.handleCheck=function(e){var a=n.getItemName(e);return(0,b.cacheFunc)("_resource_".concat(a),(function(){var e=n.props.maxChecked,r=(0,u.default)(n.props.checked);r.includes(a)?(0,y.default)(r,(function(e){return e===a})):r.length>=e?C.default.info({content:t("MONITORING_SELECT_LIMIT_MSG")}):r.push(a),n.props.onChange(r)}),(0,c.default)(n))},n.renderResourceItem=function(e){var a=n.props.checked,r=n.getItemName(e),l=n.getCurrentValue(e);return p.default.createElement("div",{key:r,className:k.default.item,onClick:n.handleCheck(e)},p.default.createElement(S.Checkbox,{className:k.default.itemCheck,checked:a.includes(r)}),p.default.createElement(S.Icon,{name:n.icon,size:16}),p.default.createElement("div",{className:k.default.itemInfo},p.default.createElement("strong",{title:r},r),p.default.createElement("p",null,t("CURRENT_VALUE",{value:l}))))},n.renderResourceList=function(e){return(0,v.default)(e)?p.default.createElement(D.default,null):e.map(n.renderResourceItem)},n.state={showChecked:!1},n.listRef=p.default.createRef(),n.throttleScroll=(0,E.default)(n.handleScroll,100),n}return(0,i.default)(r,[{key:"componentDidMount",value:function(){this.listNode=this.listRef.current,this.listNode&&this.listNode.addEventListener("scroll",this.throttleScroll)}},{key:"componentWillUnmount",value:function(){this.listNode&&this.listNode.removeEventListener("scroll",this.throttleScroll)}},{key:"render",value:function(){var e=this.props,a=e.loading,r=e.name,n=this.state.showChecked,u=n?this.checkedData:this.props.data;return p.default.createElement("div",{className:k.default.resources},p.default.createElement("div",{className:k.default.title},p.default.createElement("strong",null,t(r.toUpperCase())),p.default.createElement(S.Checkbox,{checked:n,onChange:this.toggleChecked},t("SHOW_SELECTED_ONLY"))),p.default.createElement("div",{className:k.default.content},p.default.createElement(S.Loading,{spinning:a},p.default.createElement("div",{className:k.default.list},p.default.createElement("div",{className:(0,h.default)((0,l.default)({},k.default.hide,!n))},this.renderResourceList(u)),p.default.createElement("div",{className:(0,h.default)((0,l.default)({},k.default.hide,n)),ref:this.listRef},this.renderResourceList(u))))))}},{key:"icon",get:function(){return _.ICON_TYPES[this.props.name.toLowerCase()]||"appcenter"}},{key:"checkedData",get:function(){var e=this,t=this.props,a=t.checked;return t.data.filter((function(t){return a.includes(e.getItemName(t))}))}}]),r}(p.default.Component);a.default=T,T.propTypes={loading:m.default.bool,config:m.default.object,name:m.default.string,maxChecked:m.default.number,page:m.default.number,total:m.default.number,checked:m.default.array,data:m.default.array,onFetch:m.default.func,onChange:m.default.func},T.defaultProps={loading:!1,config:{},name:"Resources",maxChecked:10,page:1,total:0,checked:[],data:[],onFetch:function(){},onChange:function(){}}},function(e,t,a){"use strict";var r=a(20);a(12),a(5),a(11),a(6),a(18),a(9),a(13),a(10),a(4),a(23),a(17),a(7),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(12),a(45),a(5),a(11),a(6),a(18),a(28),a(42),a(34),a(15),a(9),a(13),a(10),a(4),a(23),a(57),a(17),a(7);var n=r(a(315)),l=r(a(30)),u=r(a(36)),o=r(a(37)),i=r(a(55)),c=r(a(56)),s=r(a(51)),f=r(a(0)),d=r(a(1)),p=r(a(26)),m=r(a(63)),h=a(794),v=a(186),g=r(a(846)),y=a(798),E=r(a(1410));function b(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function _(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};return d.default.createElement("div",{className:E.default.tlsWrapper},d.default.createElement("div",{className:E.default.tlsItem},d.default.createElement("div",{className:"h6"},t("CREDENTIAL_SI")),d.default.createElement("pre",null,this.convert(e["tls.crt"],"tls.crt"))),d.default.createElement("div",{className:E.default.tlsItem},d.default.createElement("div",{className:"h6"},t("PRIVATE_KEY_TCAP")),d.default.createElement("pre",null,this.convert(e["tls.key"],"tls.key"))))}},{key:"renderImageRepositorySecret",value:function(e){var a=this,r=e[".dockerconfigjson"];return r&&r.auths?d.default.createElement("div",{className:E.default.imageWrapper},d.default.createElement("ul",null,Object.entries(r.auths).map((function(e){var n=(0,u.default)(e,1)[0];return d.default.createElement("li",{key:n},d.default.createElement("div",{className:"h6"},d.default.createElement(h.Icon,{name:"earth"}),n),d.default.createElement("ul",null,d.default.createElement("li",null,d.default.createElement("span",null,t(".dockerconfigjson"),":"),d.default.createElement("span",null,a.convert(JSON.stringify(r),".dockerconfigjson")))))})))):null}},{key:"renderDefault",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return d.default.createElement("div",{className:E.default.defaultWrapper},d.default.createElement("ul",null,Object.entries(t).map((function(t){var a=(0,u.default)(t,2),r=a[0],n=a[1];return d.default.createElement("li",{key:r},d.default.createElement("span",null,r,":"),d.default.createElement("span",null,d.default.createElement("pre",null,e.convert(n,r))))}))))}},{key:"renderBasicAuth",value:function(){var e=this,a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return d.default.createElement("div",{className:E.default.defaultWrapper},d.default.createElement("ul",null,Object.entries(a).map((function(a){var r=(0,u.default)(a,2),n=r[0],l=r[1];return d.default.createElement("li",{key:n},d.default.createElement("span",null,t(n.toUpperCase()),":"),d.default.createElement("span",null,d.default.createElement("pre",null,e.convert(l,n))))}))))}},{key:"renderContent",value:function(e){if(!e.type)return null;var t=null;switch(e.type){case"kubernetes.io/tls":t=this.renderTLS(e.data);break;case"kubernetes.io/dockerconfigjson":t=this.renderImageRepositorySecret(e.data);break;case"kubernetes.io/basic-auth":t=this.renderBasicAuth(e.data);break;default:t=this.renderDefault(e.data)}return t}},{key:"renderOperations",value:function(){var e=this.state.showSecret;return d.default.createElement(h.Button,{type:"flat",icon:e?"eye":"eye-closed",onClick:this.changeSecretState})}},{key:"renderPlacement",value:function(){var e=this.props.match.params,t=e.name,a=e.namespace;return this.store.detail.isFedManaged?d.default.createElement(g.default,{module:this.store.module,name:t,namespace:a,isEdgeWize:(0,y.isEdgeWizePage)()}):null}},{key:"render",value:function(){var e=this.store.detail;return d.default.createElement("div",null,this.renderPlacement(),d.default.createElement(v.default,{title:t("DATA"),operations:this.renderOperations()},this.renderContent(e)))}},{key:"originData",get:function(){var e,t;return null!==(e=null===(t=this.store.detail._originData)||void 0===t?void 0:t.data)&&void 0!==e?e:{}}}]),r}(d.default.Component))||l)||l;a.default=_},function(e,t,a){e.exports={defaultWrapper:"_2peh6PErdPDCJ6M9zNnRHF",tlsWrapper:"_2tLwXnfNxiZk4X_bSM9kmR",tlsItem:"_2r-rapgWLiquMqgE3_cZwf",imageWrapper:"_2zQdawm6yFVe8N0JA-zICj"}},function(e,t,a){"use strict";a(15);var r=a(20);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=a(317),l=r(a(3934));t.default=function(e){return[{path:"".concat(e,"/detail"),title:"DATA",component:l.default,exact:!0},(0,n.getIndexRoute)({path:e,to:"".concat(e,"/detail"),exact:!0})]}},function(e,a,r){"use strict";r(15);var n=r(20);r(18),r(16),r(98),r(4),r(23),r(24),r(17),r(62),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(18),r(42),r(16),r(98),r(4),r(23),r(57),r(24),r(17),r(62);var l,u=n(r(96)),o=n(r(36)),i=n(r(37)),c=n(r(55)),s=n(r(56)),f=n(r(51)),d=n(r(0)),p=r(239),m=n(r(801)),h=r(52),v=n(r(944)),g=n(r(3935));function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,f.default)(e);if(t){var n=(0,f.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,s.default)(this,a)}}var E=(0,p.inject)("detailStore")(l=(0,p.observer)(l=function(e){(0,c.default)(r,e);var a=y(r);function r(e){var t;return(0,o.default)(this,r),(t=a.call(this,e)).store=e.detailStore,t.module=e.module,t}return(0,i.default)(r,[{key:"renderContent",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return d.default.createElement("div",{className:g.default.wrapper},d.default.createElement("ul",null,Object.entries(e).map((function(e){var t=(0,u.default)(e,2),a=t[0],r=t[1];return d.default.createElement("li",{key:a},d.default.createElement("div",{className:"h6"},a),d.default.createElement("pre",{className:g.default.value},r))}))))}},{key:"renderPlacement",value:function(){var e=this.props.match.params,t=e.name,a=e.namespace;return this.store.detail.isFedManaged?d.default.createElement(v.default,{module:this.store.module,name:t,namespace:a,isEdgeWize:(0,h.isEdgeWizePage)()}):null}},{key:"render",value:function(){var e=this.store,a=e.detail,r=e.isLoading;return d.default.createElement("div",null,this.renderPlacement(),d.default.createElement(m.default,{title:t("DATA"),loading:r},this.renderContent(a.data)))}}]),r}(d.default.Component))||l)||l;a.default=E},function(e,t,a){e.exports={wrapper:"objLg3fuCuqy66XEKBptC",value:"SkXJa0qm0W5rZn0Q51xi5"}},function(e,t,a){"use strict";a(15);var r=a(20);a(4),a(23),a(17),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(45),a(42),a(4),a(23),a(57),a(17);var n=r(a(36)),l=r(a(55)),u=r(a(56)),o=r(a(51));function i(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,o.default)(e);if(t){var n=(0,o.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,u.default)(this,a)}}var c=function(e){(0,l.default)(a,e);var t=i(a);function a(){return(0,n.default)(this,a),t.apply(this,arguments)}return a}(r(a(1214)).default);t.default=c},function(e,t,a){"use strict";a(15);var r=a(20);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=a(317),l=r(a(3938));t.default=function(e){return[{path:"".concat(e,"/detail"),title:"DATA",component:l.default,exact:!0},(0,n.getIndexRoute)({path:e,to:"".concat(e,"/detail"),exact:!0})]}},function(e,t,a){"use strict";a(15);var r=a(20);a(18),a(16),a(4),a(23),a(17),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(45),a(18),a(42),a(16),a(4),a(23),a(57),a(17);var n,l=r(a(315)),u=r(a(36)),o=r(a(37)),i=r(a(55)),c=r(a(56)),s=r(a(51)),f=r(a(0)),d=a(239),p=r(a(26)),m=r(a(3939)),h=r(a(1836));function v(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,s.default)(e);if(t){var n=(0,s.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,c.default)(this,a)}}var g=(0,d.inject)("detailStore")(n=(0,d.observer)(n=function(e){(0,i.default)(a,e);var t=v(a);function a(e){var r;return(0,u.default)(this,a),(r=t.call(this,e)).store=e.detailStore,r.module=e.module,r}return(0,o.default)(a,[{key:"render",value:function(){var e=this,t=this.store.detail,a=(0,p.default)(t,"secrets"),r=(0,p.default)(t,"name");return f.default.createElement("div",null,f.default.createElement("div",{className:h.default.secretWrapper},a.map((function(t){var a=t.name;return f.default.createElement(m.default,(0,l.default)({secret:a,serviceAccountName:r,key:a},e.props))}))))}}]),a}(f.default.Component))||n)||n;t.default=g},function(e,a,r){"use strict";var n=r(20);r(12),r(11),r(6),r(18),r(98),r(9),r(13),r(10),r(4),r(23),r(24),r(17),r(62),r(136),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(45),r(11),r(6),r(18),r(28),r(42),r(34),r(15),r(98),r(9),r(13),r(10),r(4),r(23),r(57),r(24),r(17),r(62),r(136),r(7);var l,u,o=n(r(96)),i=n(r(30)),c=n(r(36)),s=n(r(37)),f=n(r(55)),d=n(r(56)),p=n(r(51)),m=n(r(49)),h=n(r(0)),v=r(239),g=r(14),y=r(186),E=n(r(240)),b=r(909),_=n(r(789)),O=n(r(841)),S=r(52),C=r(894),D=r(453),k=r(440),N=n(r(851)),T=n(r(1836));function R(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function w(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:"namespacenetworkpolicies";return(0,n.default)(this,a),(e=t.call(this,r)).getListUrl=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return"".concat(e.apiVersion).concat(e.getPath(t),"/").concat(e.module).concat(t.dryRun?"?dryRun=All":"")},e.getWatchListUrl=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return"".concat(e.apiVersion,"/watch").concat(e.getPath(t),"/").concat(e.module)},e.getResourceUrl=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return"/kapis/resources.kubesphere.io/v1alpha3".concat(e.getPath(t),"/").concat(e.module)},e}return(0,l.default)(a,[{key:"getPath",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.namespace,a="";return t&&(a+="/namespaces/".concat(t)),a}}]),a}(r(a(68)).default);t.default=s},function(e,a,r){"use strict";r(15);var n=r(20);Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var l=r(317),u=n(r(3955));a.default=function(e){return[{path:"".concat(e,"/egress"),title:t("EGRESS_RULES"),component:u.default,exact:!0},{path:"".concat(e,"/ingress"),title:t("INGRESS_RULES"),component:u.default,exact:!0},(0,l.getIndexRoute)({path:e,to:"".concat(e,"/egress"),exact:!0})]}},function(e,a,r){"use strict";var n=r(20);r(12),r(5),r(11),r(6),r(73),r(18),r(87),r(9),r(13),r(10),r(4),r(23),r(24),r(17),r(62),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(45),r(5),r(11),r(6),r(73),r(18),r(28),r(87),r(42),r(34),r(15),r(9),r(13),r(10),r(4),r(23),r(57),r(24),r(17),r(62),r(7);var l,u=n(r(30)),o=n(r(36)),i=n(r(37)),c=n(r(55)),s=n(r(56)),f=n(r(51)),d=r(186),p=n(r(789)),m=n(r(26)),h=n(r(63)),v=n(r(3956)),g=r(14),y=r(239),E=n(r(0)),b=r(52),_=n(r(3960));function O(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function S(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,f.default)(e);if(t){var n=(0,f.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,s.default)(this,a)}}var C=(0,y.inject)("detailStore")(l=(0,y.observer)(l=function(e){(0,c.default)(r,e);var a=S(r);function r(e){var t;return(0,o.default)(this,r),(t=a.call(this,e)).renderLabels=function(e){return e?(0,v.default)((0,m.default)(e,"matchLabels",[])).map((function(e){return E.default.createElement("div",null,E.default.createElement("label",{className:_.default.label},E.default.createElement("span",null,e[0]),e[1]))})):""},t.renderDetailLabels=function(e,t){var a=(0,m.default)(e,t);return(0,v.default)((0,m.default)(a,"matchLabels",[])).map((function(e){return E.default.createElement("label",{className:_.default.label},E.default.createElement("span",null,e[0]),e[1])})).reduce((function(e,t){return null===e?t:E.default.createElement(E.default.Fragment,null,e," and ",t)}),null)},t.renderIpBlock=function(e){return e?E.default.createElement("label",null,(0,v.default)(e).map((function(e){return"cidr"===e[0]?"".concat(e[1]):e.join(": ")})).reduce((function(e,t){return null===e?t:E.default.createElement(E.default.Fragment,null,e," ",t)}),null)):""},t.renderPolicyDetail=function(e){var a=(0,m.default)(e,"namespace",""),r=(0,m.default)(e,"ipBlock"),n=(0,m.default)(r,"except"),l=e.direction,u=t.renderIpBlock(r),o=t.renderDetailLabels(e,"specPodSelector"),i=t.renderDetailLabels(e,"namespaceSelector"),c=t.renderDetailLabels(e,"podSelector"),s=(0,m.default)(e,"ports",[]).map((function(e){return"".concat(e.protocol,": ").concat(e.port)})).reduce((function(e,t){return null===e?t:E.default.createElement(E.default.Fragment,null,e," and ",t)}),null);return E.default.createElement("div",null,E.default.createElement("span",null,"This rule allows pods in the namespace '",a,"' "),!(0,h.default)(o)&&E.default.createElement("span",null," with the label ",o," "),E.default.createElement("span",null,"egress"===l?"to connect to ":"to receive traffic from "),(0,h.default)(r)?(0,h.default)(c)&&(0,h.default)(i)?"all pods in the same namespace ":E.default.createElement("label",null,!(0,h.default)(c)&&E.default.createElement("span",null,(0,h.default)(i)?"pods in the same namespace ":"pods "," ","with labels ",c," "),!(0,h.default)(i)&&E.default.createElement("span",null,(0,h.default)(c)?"all pods in the namespace ":"in namespaces ","with the labels ",i," ")):E.default.createElement("label",null,n&&"all IPs in "," subnet '",u,"'"," "),(0,h.default)(s)?"on all ports":E.default.createElement("span",null,"on port",s.length>1?"s":""," ",s))},t.store=e.detailStore,t}return(0,i.default)(r,[{key:"render",value:function(){var e=this,a=this.tableData;return E.default.createElement(p.default,{title:"egress"===this.direction?t("EGRESS_RULES"):t("INGRESS_RULES")},E.default.createElement(d.Table,{dataSource:a,className:_.default.table,columns:this.columns,expandedRowRender:function(t){return E.default.createElement("div",{className:_.default.detail},e.renderPolicyDetail(t))}}))}},{key:"direction",get:function(){var e=this.props.match.path.match(/:name\/([a-z]*)/);return e?e[1]:"egress"}},{key:"columns",get:function(){var e=this;return[{title:t("TARGET"),children:[{title:t("PROJECT"),dataIndex:"namespace",render:function(e){return(0,b.showNameAndAlias)(e,"project")}},{title:t("LABEL"),dataIndex:"specPodSelector",render:function(t){return e.renderLabels(t)}}]},{title:t("DESTINATION"),children:[{title:t("PROJECT"),dataIndex:"namespaceSelector",render:function(t,a){if((0,h.default)((0,m.default)(a,"ipBlock")))return(0,m.default)(t,"matchLabels")?e.renderLabels(t):(0,m.default)(a,"namespace")}},{title:t("LABEL"),dataIndex:"podSelector",render:function(t,a){if((0,h.default)((0,m.default)(a,"ipBlock")))return(0,m.default)(t,"matchLabels")?e.renderLabels(t):"Any"}},{title:"CIDR",dataIndex:"ipBlock",className:_.default.cidr,render:function(t){return e.renderIpBlock(t)}},{title:t("PORT"),dataIndex:"ports",render:function(e){return(0,h.default)(e)?"Any":e.map((function(e){return E.default.createElement("div",null,e.protocol,": ",e.port,e.endPort?"-".concat(e.endPort):"")}))}}]}]}},{key:"tableData",get:function(){var e=this,t=this.store.detail,a=(0,g.toJS)((0,m.default)(t,"_originData")),r=(0,m.default)(a,"metadata.namespace"),n=(0,m.default)(a,"spec.podSelector"),l=(0,m.default)(a,"spec.".concat(this.direction),[]),o="ingress"===this.direction?"from":"to",i=[];return l.forEach((function(t){var a=(0,m.default)(t,"ports",[]);(0,m.default)(t,"".concat(o),[]).forEach((function(t){i.push(function(e){for(var t=1;t0?"builtin":""}},{key:"rules",get:function(){return(0,d.toJS)((0,m.default)(this.store,"detail._originDataWithStatus.spec.rules",[]))}}]),a}(f.default.Component))||n)||n;t.default=E},function(e,a,r){"use strict";var n=r(20);r(12),r(11),r(6),r(18),r(48),r(9),r(13),r(10),r(4),r(23),r(24),r(17),r(188),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(45),r(11),r(6),r(18),r(28),r(48),r(42),r(34),r(15),r(9),r(13),r(10),r(4),r(23),r(57),r(24),r(17),r(188),r(7);var l,u=n(r(30)),o=n(r(315)),i=n(r(36)),c=n(r(37)),s=n(r(55)),f=n(r(56)),d=n(r(51)),p=n(r(0)),m=n(r(789)),h=r(239),v=r(186),g=r(14),y=n(r(135)),E=n(r(26)),b=n(r(250)),_=r(72),O=n(r(3)),S=n(r(3973)),C=n(r(1847));function D(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function k(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.cluster,a=e.namespace,r=this.props.match.params,n=r.cluster,l=r.namespace,u=r.workspace;return t=t||n,a=a||l,"".concat(u?"/".concat(u):"","/clusters/").concat(t).concat(a?"/projects/".concat(a):"")}},{key:"render",value:function(){var e=this.store.list,a=e.data,r=e.isLoading,n=e.filters;return p.default.createElement(C.default,{title:t("ALERTING_MESSAGE_PL"),loading:r},(0,g.default)(a)?p.default.createElement("div",null,t("NO_DATA_DESC")):p.default.createElement(p.default.Fragment,null,p.default.createElement(N.default,{className:R.default.table,filters:n,data:a,name:"Alerting Message",rowKey:"value",columns:this.getColumns(),selectedRowKeys:[],selectActions:[],hideHeader:!0,hideFooter:!0}),this.renderFooter()))}},{key:"type",get:function(){return this.props.match.url.indexOf("alert-rules/builtin")>0?"builtin":""}},{key:"pagination",get:function(){var e=this.state;return{page:e.page,limit:e.limit,total:this.store.list.total}}}]),r}(p.default.Component))||l;a.default=P},function(e,t,a){e.exports={table:"_1S6EGnQYhf4I_C9HYIeYHi",footer:"Kq4qO0-0y6WDXdgomQGx9",pageSizeBox:"_3L3d-EWgQL2dC6pjhEaaAw",pagesize:"_3bL0tigLuMghvx1kjbA11b",text:"_3EpDCZ8M24qb56fEsOL6zB",gap:"_23CFCJ6p6IBdfCDRazyfIm",pageSizeMenu:"QH34yZzzVVJKzl6Uy9lIr",pageSizeMenuitem:"_3TGMFzQBOsivXbopcaPhW"}},function(e,t,a){e.exports={icon:"_3uoefixeZIAoGPZ37DEVLm"}},,,,,,,,,function(e,t,a){"use strict";a(15);var r=a(20);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=a(317),l=r(a(813)),u=r(a(821)),o=r(a(3986));t.default=function(e){return[{path:"".concat(e,"/resource-status"),title:"RESOURCE_STATUS",exact:!0,component:o.default},{path:"".concat(e,"/metadata"),title:"METADATA",component:u.default,exact:!0},{path:"".concat(e,"/events"),title:"EVENT_PL",exact:!0,component:l.default},(0,n.getIndexRoute)({path:e,to:"".concat(e,"/resource-status"),exact:!0})]}},function(e,a,r){"use strict";var n=r(20);r(12),r(5),r(11),r(6),r(73),r(16),r(9),r(13),r(10),r(4),r(23),r(17),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(45),r(5),r(11),r(6),r(73),r(28),r(42),r(16),r(34),r(15),r(9),r(13),r(10),r(4),r(23),r(57),r(17),r(7);var l,u=n(r(30)),o=n(r(36)),i=n(r(37)),c=n(r(55)),s=n(r(56)),f=n(r(51)),d=n(r(0)),p=r(239),m=r(186),h=n(r(789)),v=n(r(831)),g=r(52),y=r(14),E=n(r(63)),b=n(r(3987)),_=n(r(3989));function O(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function S(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,f.default)(e);if(t){var n=(0,f.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,s.default)(this,a)}}var C=d.default.createElement("div",null,d.default.createElement("div",null,t("RWO_DESC")),d.default.createElement("div",null,t("ROX_DESC")),d.default.createElement("div",null,t("RWX_DESC"))),D=(0,p.inject)("detailStore")(l=(0,p.observer)(l=function(e){(0,c.default)(r,e);var a=S(r);function r(){var e;(0,o.default)(this,r);for(var n=arguments.length,l=new Array(n),u=0;u0&&f.createElement(f.Fragment,null,f.createElement("div",{className:d.default.title},f.createElement("div",null,t("SECRET_INFO"))),r.map((function(e){return f.createElement("div",{key:e.name,className:d.default.objectContainer},f.createElement("div",{className:d.default.v},t(e.label)),f.createElement("div",null,f.createElement("span",{className:d.default.k},t("NAME"),":"),f.createElement("span",{className:d.default.v},e.name)),f.createElement("div",null,f.createElement("span",{className:d.default.k},t("PROJECT"),":"),f.createElement("span",{className:d.default.v},e.namespace)))}))));default:return null}}())})));a.default=v},function(e,t,a){e.exports={wrapper:"_2qRBJsVUbx2DCXhx-PjMOI",title:"DelqatdDDYD0WB80zjyye",attrs:"_3fLkwri_NoztGHHZnQ0Tvk",attr:"_2k08ybc8MfthAHUcjHCwur",k:"_19wHxkkHh7sTteCNmaVgfP",attrTitle:"_2LJajeyjpTUCghMOKSX0lj",attrValue:"Q12wxwvQ_-E9SSJ5IPDHw",objectContainer:"_1wRaHGoiEWQ4U0Y5L81-oi",kvContainer:"_39n5tBsQPDfpckCQt5CuKH",v:"_38RkRqcmTNqMQFeXrZeCLM"}},function(e,t,a){e.exports={ItemBox:"_2mELQmeBTiwa56m4FRuCho",leftBox:"W7Qki2xI0vvqvcb2Q1F2M",rightBox:"_3RqsKWBD7eq3vXQvgCfOsD",title:"_3KYfcJ0CU8B4xFsFQda5Te",toolTip:"_37f2XY7RCBfmVNY1BOdNx8",des:"_2L3vvzzxhB-Zrg5WrqyiuM",titleBox:"_2gmisrquKxEER676oJ7GxM",IconLine:"_1IDNa6yWd9AhFr_21sUGZO",cardBox:"NqsBGhYtt3JFydHzSmjZq",text:"_17aFPuXEkGgpOO2vxoLjb-"}},,,,,function(e,t,a){e.exports={wrapper:"_1RTOu4WuOVY0Fca7CPEdB9",tabHeader:"Qd42i__2a3FJ2DzYpVXqd",tabHeaderItem:"_2ICL_nLZjLbTcDxms5nROn",active:"_2NpglgYkusPNf1fA7U4yCm",tabContent:"UsMeMpWi8k2TLXu-TzcHv",chartWrapper:"_1WcDqnOpkmr5xePLz3bOpj"}},,,,,,,,,,,,,,,,,,,,,,,function(e,t,a){"use strict";a(15);var r=a(20);a(4),a(23),a(17),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(45),a(42),a(4),a(23),a(57),a(17);var n=r(a(36)),l=r(a(55)),u=r(a(56)),o=r(a(51));function i(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,o.default)(e);if(t){var n=(0,o.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,u.default)(this,a)}}var c=function(e){(0,l.default)(a,e);var t=i(a);function a(){return(0,n.default)(this,a),t.apply(this,arguments)}return a}(r(a(1420)).default);t.default=c},function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(16),r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(28),r(42),r(16),r(4),r(23),r(57),r(17);var l,u,o,i=n(r(315)),c=n(r(30)),s=n(r(36)),f=n(r(37)),d=n(r(55)),p=n(r(56)),m=n(r(51)),h=n(r(0)),v=r(239),g=n(r(1)),y=n(r(3)),E=n(r(194)),b=r(186),_=r(794),O=n(r(4019)),S=n(r(4020));function C(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,m.default)(e);if(t){var n=(0,m.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,p.default)(this,a)}}var D=(0,v.inject)("rootStore")(l=(0,v.observer)((o=u=function(e){(0,d.default)(r,e);var a=C(r);function r(){var e;(0,s.default)(this,r);for(var t=arguments.length,n=new Array(t),l=0;l99?h.default.createElement("div",{className:S.default.skip},"..."):a;return a>0?h.default.createElement("div",{className:S.default.warn},h.default.createElement(b.Tooltip,{className:S.default.tips,content:t("RESOURCE_WARNING_TIPS",{warnNum:a,tipName:t("".concat(r,"_PL"))})},h.default.createElement("div",{onClick:this.handleWarnClick},n))):null}},{key:"render",value:function(){var e=this.props,a=e.className,r=e.icon,n=e.iconSize,l=e.name,u=e.routeName,o=e.num,s=e.metrics,f=e.onClick,d=e.cluster,p=(0,_.getAreaChartOps)({title:"",unit:"",legend:["COUNT"],data:s});return h.default.createElement("div",{"data-name":l,className:(0,y.default)(S.default.card,a)},h.default.createElement("div",{className:S.default.icon},h.default.createElement(b.Icon,{name:r,size:n}),this.renderWarn()),h.default.createElement("div",{className:(0,y.default)(S.default.info,(0,c.default)({},S.default.cursor,u||f)),onClick:this.handleClick},h.default.createElement("strong",null,o),h.default.createElement("span",null,"1"===o?t(l):t("".concat(l,"_PL")))),globals.app.hasClusterModule(d,"whizard-monitoring")&&h.default.createElement(O.default,(0,i.default)({width:330,height:44,bgColor:"transparent"},p)))}},{key:"routing",get:function(){return this.props.rootStore.routing}}]),r}(h.default.Component),u.propTypes={isEdgeWize:g.default.bool,className:g.default.string,icon:g.default.string,iconSize:g.default.number,name:g.default.string,namespace:g.default.string,routeName:g.default.string,num:g.default.oneOfType([g.default.number,g.default.string]),warnNum:g.default.number,onClick:g.default.func},u.defaultProps={isEdgeWize:!1,icon:"appcenter",iconSize:40,name:"deployment",namespace:"default",routeName:"",num:0,warnNum:0},l=o))||l)||l;a.default=D},function(e,t,a){"use strict";a(15);var r=a(20);a(827),a(11),a(18),a(10),a(4),a(23),a(17),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(45),a(827),a(11),a(18),a(42),a(10),a(4),a(23),a(57),a(17);var n=r(a(36)),l=r(a(37)),u=r(a(55)),o=r(a(56)),i=r(a(51)),c=r(a(0)),s=r(a(1)),f=a(72),d=r(a(900)),p=r(a(869)),m=r(a(870)),h=r(a(947)),v=r(a(929)),g=r(a(871)),y=r(a(862));function E(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,i.default)(e);if(t){var n=(0,i.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,o.default)(this,a)}}var b=function(e){(0,u.default)(a,e);var t=E(a);function a(){return(0,n.default)(this,a),t.apply(this,arguments)}return(0,l.default)(a,[{key:"getVeticalPoints",value:function(){var e=this.props.width,t=(e-10)/10;return Array(10).fill("").map((function(e,a){return 5+t*a}))}},{key:"renderArea",value:function(){var e=this.props,t=e.unit,a=e.areaColors,r={stroke:"#55bc8a",strokeWidth:1,fill:"#fff",fillOpacity:1};return this.series.map((function(e,n){var l=f.COLORS_MAP[a[n]];return c.default.createElement(d.default,{key:e,dataKey:e,stroke:l,fillOpacity:"0.1",fill:l,unit:t,dot:r})}))}},{key:"render",value:function(){var e=this.props,t=e.width,a=e.height,r=e.xKey,n=e.data;return c.default.createElement(g.default,{width:t,height:a,debounce:1},c.default.createElement(h.default,{data:n},c.default.createElement(m.default,{dataKey:r,hide:!0}),c.default.createElement(p.default,{wrapperStyle:{zIndex:1e3},content:c.default.createElement(y.default,null)}),c.default.createElement(v.default,{strokeDasharray:"3 6",horizontal:!1,verticalPoints:this.getVeticalPoints()}),this.renderArea()))}},{key:"series",get:function(){var e=this.props,t=e.xKey,a=e.data;return Object.keys(a[0]||{}).filter((function(e){return e!==t}))}}]),a}(c.default.Component);t.default=b,b.propTypes={width:s.default.oneOfType([s.default.string,s.default.number]),height:s.default.oneOfType([s.default.string,s.default.number]),xKey:s.default.string,unit:s.default.string,data:s.default.array,bgColor:s.default.string,areaColors:s.default.array},b.defaultProps={width:180,height:56,xKey:"time",unit:"",bgColor:f.COLORS_MAP.lightest,areaColors:["green","blue","yellow","red"],data:[]}},function(e,t,a){e.exports={card:"_2EqCYVjXVpgt08cuRczGSh",icon:"_36HfcePtCXEzvj8yzTS4vF",warn:"_1ntTH3ZrzLLbchIomuwlhQ",tips:"-w63JOV5KksV8TOcQl-U3",skip:"_2kxI8l5XqQlDPtMvynz3RZ",info:"_1u4G7Fwu2z6_yIx2xKMV71",cursor:"_1gP2nTFiH8FENSNxmyr2hr"}},function(e,t,a){"use strict";a(15);var r=a(20);a(5),a(827),a(11),a(18),a(10),a(4),a(23),a(17),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(45),a(5),a(827),a(11),a(18),a(42),a(10),a(4),a(23),a(57),a(17);var n=r(a(36)),l=r(a(37)),u=r(a(55)),o=r(a(56)),i=r(a(51)),c=r(a(0)),s=r(a(1)),f=a(72),d=r(a(900)),p=r(a(869)),m=r(a(912)),h=r(a(870)),v=r(a(947)),g=r(a(929)),y=r(a(871)),E=r(a(862));function b(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,i.default)(e);if(t){var n=(0,i.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,o.default)(this,a)}}var _=function(e){(0,u.default)(a,e);var t=b(a);function a(){return(0,n.default)(this,a),t.apply(this,arguments)}return(0,l.default)(a,[{key:"render",value:function(){var e=this.props,t=e.x,a=e.y,r=e.payload;return c.default.createElement("g",{transform:"translate(".concat(t,",").concat(a,")")},c.default.createElement("text",{x:0,y:0,dy:12,fill:"#79879c",textAnchor:"middle"},r.value))}}]),a}(c.default.PureComponent),O=function(e){(0,u.default)(a,e);var t=b(a);function a(){return(0,n.default)(this,a),t.apply(this,arguments)}return(0,l.default)(a,[{key:"getHorizontalPoints",value:function(){var e=this.props.height,t=(e-30-6)/4;return Array(4).fill("").map((function(e,a){return 30+t*a}))}},{key:"renderArea",value:function(){var e=this.props,t=e.unit,a=e.areaColors;return this.series.map((function(e,r){var n=f.COLORS_MAP[a[r]];return c.default.createElement(d.default,{key:e,dataKey:e,stroke:n,fillOpacity:"1",fill:"url(#colorPv)",unit:t})}))}},{key:"render",value:function(){var e=this.props,t=e.width,a=e.height,r=e.xKey,n=e.data;return c.default.createElement(y.default,{width:t,height:a,debounce:1},c.default.createElement(v.default,{data:n,margin:{top:32,left:16,right:16,bottom:0}},c.default.createElement("defs",null,c.default.createElement("linearGradient",{id:"colorPv",x1:"0",y1:"0",x2:"0",y2:"1"},c.default.createElement("stop",{offset:"5%",stopColor:"#55bc8a",stopOpacity:.2}),c.default.createElement("stop",{offset:"95%",stopColor:"#55bc8a",stopOpacity:0}))),c.default.createElement(g.default,{vertical:!1,stroke:"#36435c",strokeDasharray:"2 2",horizontalPoints:this.getHorizontalPoints()}),c.default.createElement(h.default,{dataKey:r,axisLine:!1,tickLine:!1,height:30,interval:"preserveStart",tick:c.default.createElement(_,null),minTickGap:20}),c.default.createElement(m.default,{hide:!0,type:"number",domain:[function(e){return 0-Math.abs(e)},function(e){return 1.6*e}]}),c.default.createElement(p.default,{wrapperStyle:{zIndex:1e3},content:c.default.createElement(E.default,null)}),this.renderArea()))}},{key:"series",get:function(){var e=this.props,t=e.xKey,a=e.data;return Object.keys(a[0]||{}).filter((function(e){return e!==t}))}}]),a}(c.default.Component);t.default=O,O.propTypes={width:s.default.oneOfType([s.default.string,s.default.number]),height:s.default.oneOfType([s.default.string,s.default.number]),xKey:s.default.string,unit:s.default.string,data:s.default.array,bgColor:s.default.string,areaColors:s.default.array},O.defaultProps={width:180,height:56,xKey:"time",unit:"",bgColor:f.COLORS_MAP.lightest,areaColors:["green","blue","yellow","red"],data:[]}},function(e,t,a){e.exports={wrapper:"_235Ydzrxtn47mC5KVnUqMN",chartWrapper:"_1Ih0Px-Zxe5AwW8uJkqt8N",chart:"_3awmU2UAJvmujW7qMl0RAz",title:"_2jhkSzEfNoOh15_4kzbLaw"}},function(e,t,a){e.exports={wrapper:"_29aBx9QNbrjLovrOIFCqJl",header:"_3S-YBwfAwlBHzJQi5UvabR",timeSelect:"_3zET3ukjC_TJNnZ6Dw5ePh"}},,,,,,function(e,t,a){e.exports={item:"_3AKgHrYF7Fu8kENV1qw1Xg",content:"_7hMYwDpNDo4VWwNVsinXF",contentItem:"_8Zz1AYqtLjXcwA84SIji2"}},function(e,t,a){e.exports={card:"_2UbaCzyTEGsejSpXNrF6dW",Head:"pkiC1T3lJghgtls15h59r",item:"_29oHjjQCCBQ_HO52Qhu14a",title:"_34EuAy0Td-ux7hF71uGkGI",default:"_1k0Fd-vBuAggthS2MUTYbg",desc:"Mbk9BMGODO4puVhQfoED2",icon:"_1dVn11WYgSYrEHXe9FM6AK",open:"_3fvnh8ID_KJuzAwff1Rjj",List:"_1QnLnHp8eD8OFWcXcm6UUI",inline:"_18Mhfb5La8Pz1dnD8xW0t0",barItem:"_2OZot2XVNFPRHhkODRz2ag",bar:"_3PjP81XZ-f-DuKNK9b9qOS"}},function(e,t,a){e.exports={quota:"j_jIuTBmQIJCHq9iJUPCU",item:"_19YZe4YP-4n3v2b_sZUbmz",bar:"_2a14fJwRKjewBNftJGp2R-"}},function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(6),r(86),r(16),r(27),r(190),r(10),r(24),r(62),r(64),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var l=n(r(96));r(5),r(6),r(86),r(16),r(27),r(190),r(10),r(4),r(436),r(24),r(62),r(64),r(7);var u=n(r(0)),o=n(r(26)),i=n(r(158)),c=r(186),s=n(r(1044)),f=r(52),d=r(72),p=n(r(4033)),m=["limits.cpu","limits.memory","pods"],h={Ti:Math.pow(1024,4),Gi:Math.pow(1024,3),Mi:Math.pow(1024,2),Ki:1024,TB:Math.pow(1e3,4),GB:Math.pow(1e3,3),MB:Math.pow(1e3,2),KB:1e3,T:Math.pow(1e3,4),G:Math.pow(1e3,3),M:Math.pow(1e3,2),K:1e3,Bytes:1,B:1},v=function(e){var a=e.name,r=e.total,n=e.used;if(!r&&!Number(n)&&-1===m.indexOf(a))return null;var v=0,g="",y="",E=function(e){return function(e,t){return e?[e,parseFloat(t)*(d.ICON_TYPES[a]||!h[e]?1:h[e])]:["",parseFloat(t)]}(function(e){var t=Object.keys(h),a=(0,o.default)(e.match(/[0-9]+([a-zA-Z]+)/),"1","");return t.forEach((function(e){if(a.indexOf(e)>-1)return a=e,!1})),a}(e),e)};if("limits.cpu"===a||"requests.cpu"===a)r&&(v=Number((0,f.cpuFormat)(n))/Number((0,f.cpuFormat)(r)),n="".concat((0,f.cpuFormat)(n)," Core"),r="".concat((0,f.cpuFormat)(r)," Core"));else if("limits.memory"===a||"requests.memory"===a)r&&(v=Number((0,f.memoryFormat)(n))/Number((0,f.memoryFormat)(r)),n="".concat((0,f.memoryFormat)(n,"Gi")," Gi"),r="".concat((0,f.memoryFormat)(r,"Gi")," Gi"));else if(r){var b=E(n),_=(0,l.default)(b,2),O=_[0],S=_[1],C=E(r),D=(0,l.default)(C,2),k=D[0],N=D[1];g=O,y=k,v=S/N}v=Math.min(Math.max(v,0),1);var T=a.indexOf("gpu")>-1?"gpu":a,R="gpu"===T?"".concat(T,".limit"):T;return u.default.createElement("div",{className:p.default.quota},u.default.createElement(c.Icon,{name:d.ICON_TYPES[T]||"resource",size:40}),u.default.createElement("div",{className:p.default.item},u.default.createElement("div",null,function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return d.ICON_TYPES[T]?t(e.replace(/[. ]/g,"_").toUpperCase()):e}(R)),u.default.createElement("p",null,t("RESOURCE_TYPE_SCAP"))),u.default.createElement("div",{className:p.default.item},u.default.createElement("div",null,function(e){if(y&&!g){var t=d.ICON_TYPES[a]||!h[y]?1:h[y];return"".concat(e/t).concat(e>0?y:"")}return e}(n)),u.default.createElement("p",null,t("USED"))),u.default.createElement("div",{className:p.default.item},u.default.createElement("div",null,(0,i.default)(r)?t("NO_LIMIT_TCAP"):r),u.default.createElement("p",null,t("QUOTA"))),u.default.createElement("div",{className:p.default.item,style:{flex:3}},u.default.createElement("div",null,t("USAGE")),u.default.createElement(s.default,{value:Math.min(v,1),className:p.default.bar,rightText:r?"":t("NO_LIMIT"),text:t("USED_PERCENT",{percent:Number((100*v).toFixed(2))})})))};a.default=v},function(e,t,a){e.exports={quota:"_3_ChjGbxbGEOsl-bn45v6",item:"_39hSvb0gytLzXkJepmuZYY",bar:"_3C2DyYLkZ1uZmTpxOaCjMD"}},function(e,t,a){e.exports={wrapper:"_2SomAa9Qr3FAZCUu_vfPVg",header:"_3IWXKjfTi9VrsxbWViUQan",item:"tXNdZn2Wks84tQIm0_DB",content:"_1slhrCDV-prgABOLHi36ms",contentItem:"nMyfCUkpNIE-XvgWGaFJd"}},,,,,,,,,,,,,,function(e,t,a){"use strict";a(15);var r=a(20);a(73),a(18),a(16),a(4),a(23),a(17),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(45),a(73),a(18),a(42),a(16),a(4),a(23),a(57),a(17);var n=r(a(36)),l=r(a(37)),u=r(a(55)),o=r(a(56)),i=r(a(51)),c=r(a(0)),s=a(52),f=r(a(26)),d=r(a(201)),p=r(a(4049));function m(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,i.default)(e);if(t){var n=(0,i.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,o.default)(this,a)}}var h=function(e){(0,u.default)(a,e);var t=m(a);function a(){return(0,n.default)(this,a),t.apply(this,arguments)}return(0,l.default)(a,[{key:"render",value:function(){var e=this.props,t=e.templates,a=e.roleCategory,r=void 0===a?[]:a,n=(0,d.default)("lang")||(0,s.getBrowserLang)();return c.default.createElement("ul",{className:p.default.wrapper,"data-test":"rule-list"},r.map((function(e){var a,r,l=t[e.name]||[],u=(null==e||null===(a=e.displayName)||void 0===a?void 0:a[n])||(null==e||null===(r=e.displayName)||void 0===r?void 0:r.en);return l.length<1?null:c.default.createElement("li",{key:e.name},c.default.createElement("div",{className:p.default.name},u),c.default.createElement("div",null,l.map((function(e){return(0,f.default)(e,"_originData.spec.displayName[".concat(n,"]"))||(0,f.default)(e,"_originData.spec.displayName.en")})).join("  |  ")))})))}}]),a}(c.default.Component);t.default=h},function(e,t,a){e.exports={wrapper:"z2WyR5A5wRu0YtfOojEJ8",name:"_2Qe_QRdB_yNsSo5jz4l2m"}},function(e,t,a){e.exports={table:"_2rTR6NVDPyorYXDf3Og1lV"}},,,,,,,,,,,,,,,,,,,,,function(e,t,a){"use strict";a(15);var r=a(20);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=a(317),l=r(a(4072)),u=r(a(4073)),o=r(a(4080)),i=r(a(4084)),c=r(a(4085));t.default=function(e){return[{path:"".concat(e,"/gateway-configs"),title:"CONFIGURATION_OPTIONS",component:i.default,exact:!0},{path:"".concat(e,"/monitors"),title:"MONITORING",component:u.default,exact:!0,clusterModule:"whizard-monitoring"},{path:"".concat(e,"/logs"),title:"GATEWAY_LOGS",component:c.default,exact:!0},{path:"".concat(e,"/resource-status"),title:"RESOURCE_STATUS",component:o.default,exact:!0},{path:"".concat(e,"/metadata"),title:"METADATA",component:l.default,exact:!0},(0,n.getIndexRoute)({path:e,to:"".concat(e,"/gateway-configs"),exact:!0})]}},function(e,a,r){"use strict";r(15);var n=r(20),l=r(157);r(18),r(98),r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(18),r(42),r(98),r(4),r(23),r(57),r(17);var u,o=n(r(96)),i=n(r(36)),c=n(r(37)),s=n(r(55)),f=n(r(56)),d=n(r(51)),p=l(r(0)),m=n(r(789)),h=n(r(63)),v=r(239),g=n(r(1852));function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,d.default)(e);if(t){var n=(0,d.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,f.default)(this,a)}}var E=(0,v.inject)("detailStore")(u=(0,v.observer)(u=function(e){(0,s.default)(r,e);var a=y(r);function r(){return(0,i.default)(this,r),a.apply(this,arguments)}return(0,c.default)(r,[{key:"render",value:function(){var e=this.detail.annotations;return p.default.createElement(m.default,{title:t("ANNOTATION_PL")},p.default.createElement("div",{className:g.default.container},p.default.createElement("ul",null,(0,h.default)(e)?p.default.createElement("li",null,t("NO_DATA")):Object.entries(e).map((function(e){var t=(0,o.default)(e,2),a=t[0],r=t[1];return p.default.createElement("li",{key:a},p.default.createElement("span",{className:g.default.key},a),p.default.createElement("span",null,r))})))))}},{key:"store",get:function(){return this.props.detailStore}},{key:"detail",get:function(){return this.store.gateway.data||{}}}]),r}(p.Component))||u)||u;a.default=E},function(e,a,r){"use strict";var n=r(20);r(12),r(5),r(11),r(6),r(86),r(18),r(16),r(9),r(13),r(10),r(4),r(316),r(23),r(24),r(17),r(62),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(45),r(5),r(11),r(6),r(86),r(18),r(28),r(42),r(16),r(34),r(15),r(9),r(13),r(10),r(4),r(316),r(22),r(23),r(57),r(24),r(17),r(62),r(7);var l=n(r(315)),u=n(r(43)),o=n(r(30));r(41);var i,c=n(r(44)),s=n(r(36)),f=n(r(37)),d=n(r(55)),p=n(r(56)),m=n(r(51)),h=n(r(0)),v=r(239),g=n(r(26)),y=n(r(63)),E=r(794),b=n(r(1075)),_=r(186),O=r(822),S=r(798),C=n(r(4074));function D(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function k(e){for(var t=1;t-1||t.indexOf("/workspaces/")>-1?localStorage.getItem("federated-cluster"):e}},{key:"namespace",get:function(){return this.props.match.params.namespace}},{key:"workspace",get:function(){return this.props.match.params.workspace}},{key:"metrics",get:function(){return this.monitorStore.data}}]),r}(h.default.Component))||i)||i;a.default=R},function(e,a,r){"use strict";var n=r(20);r(12),r(5),r(11),r(6),r(84),r(86),r(73),r(18),r(16),r(27),r(190),r(9),r(13),r(10),r(4),r(316),r(23),r(24),r(17),r(85),r(62),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(45),r(5),r(11),r(6),r(84),r(86),r(73),r(18),r(28),r(42),r(16),r(27),r(190),r(34),r(15),r(9),r(13),r(10),r(4),r(316),r(22),r(23),r(57),r(24),r(17),r(85),r(62),r(7);var l=n(r(30)),u=n(r(43));r(41);var o=n(r(44)),i=n(r(36)),c=n(r(37)),s=n(r(88)),f=n(r(55)),d=n(r(56)),p=n(r(51)),m=n(r(0)),h=r(186),v=r(798),g=n(r(3)),y=r(1853),E=n(r(1075)),b=n(r(439)),_=n(r(63)),O=n(r(26)),S=n(r(189)),C=r(794),D=n(r(4075)),k=n(r(4079));function N(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function T(e){for(var t=1;t-1?Number(a).toFixed(4):isNaN(Number(a))?0:a;t[e.metric_name]=r})),t}},e.handleAutoRefresh=function(){e.setState({autoRefresh:!e.state.autoRefresh},(function(){e.state.autoRefresh?(0,C.startAutoRefresh)((0,s.default)(e)):(0,C.stopAutoRefresh)((0,s.default)(e))}))},e.handleRefresh=function(){e.fetchData()},e.renderAutoRefresh=function(){var t=e.state,a=t.enableAutoRefresh,r=t.autoRefresh;return a?m.default.createElement(h.Button,{className:k.default.button,type:"control",icon:r?"pause":"start",iconType:"light",onClick:e.handleAutoRefresh}):null},e.getMetricsData=function(t){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return(0,O.default)(e.state.metrics,"".concat(t),a)},e.renderCustomLegend=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=(e.className,e.payload),r=e.activeSeries,n=void 0===r?[]:r,u=e.showAll,o=void 0!==u&&u,i=a||[];if(i.length<2&&!o)return m.default.createElement("div",{className:k.default.legend});var c=function(t){var a=e.onClick;a&&a(t,(0,O.default)(t.target,"dataset.key"))};return m.default.createElement("div",{className:k.default.legend,onClick:c},i.map((function(e){var a=!n.includes(e.value),r=(0,O.default)(e,"payload.stroke");return m.default.createElement("div",{key:e.dataKey,"data-key":e.dataKey,className:(0,g.default)(k.default.item,(0,l.default)({},k.default.inactive,a))},m.default.createElement("i",{style:{backgroundColor:r}}),t(e.value))})))},e}return(0,c.default)(r,[{key:"componentDidMount",value:function(){this.fetchData()}},{key:"render",value:function(){var e=this.state,a=e.duration,r=e.errorType;return m.default.createElement("div",{className:k.default.overview},m.default.createElement("div",{className:k.default.header},m.default.createElement("p",{className:k.default.title},t("OVERVIEW")),m.default.createElement("div",{className:k.default.operations},m.default.createElement(D.default,{duration:a,onChange:this.handleChange}),this.renderAutoRefresh(),m.default.createElement(h.Button,{className:k.default.button,type:"control",icon:"refresh",iconType:"light",onClick:this.handleRefresh}))),m.default.createElement("div",{className:k.default.body},m.default.createElement("div",{className:k.default.left},m.default.createElement("div",{className:k.default.item},m.default.createElement(h.Icon,{name:"gateway",size:56}),m.default.createElement("div",null,m.default.createElement("p",null,t("TOTAL_REQUESTS")),m.default.createElement("span",null,this.getMetricsData("ingress_request_count")))),m.default.createElement("div",{className:k.default.item},m.default.createElement(h.Icon,{name:"error",size:56}),m.default.createElement("div",null,m.default.createElement(h.Select,{width:30,value:r,options:[{label:t("FOUR_XX_REQUEST_COUNT"),value:"ingress_request_4xx_count"},{label:t("FIVE_XX_REQUEST_COUNT"),value:"ingress_request_5xx_count"}],onChange:this.handleRequestError}),m.default.createElement("span",null,this.getMetricsData(r))))),m.default.createElement("div",{className:k.default.middle},m.default.createElement(v.SimpleCircle,{theme:"light",width:200,height:200,title:"",value:"".concat((100*this.getMetricsData("ingress_success_rate")).toFixed(2)),total:100,unit:"%",innerRadius:"80%",legend:["SUCCESSFUL_REQUESTS","TOTAL"],showCenter:!0,showRate:!1,areaColors:["#55BC8A","#E3E9EF"],renderCustomCenter:function(e){var a=e.value;return m.default.createElement("div",{className:k.default.simpleContent},m.default.createElement("p",null,t("SUCCESSFUL_REQUESTS")),m.default.createElement("span",null,a,"%"))}})),m.default.createElement("div",{className:k.default.right},m.default.createElement("div",{className:k.default.item},m.default.createElement("span",{className:k.default.customIcon},m.default.createElement(y.ReactComponent,null)),m.default.createElement("div",null,m.default.createElement("p",null,t("AVERAGE_LATENCY")),m.default.createElement("span",null,"".concat(this.getMetricsData("ingress_request_duration_average")," s")))),m.default.createElement("div",{className:k.default.itemSmall},m.default.createElement("span",null,t("P_FIFTY_LATENCY")),m.default.createElement("span",null,"".concat(this.getMetricsData("ingress_request_duration_50percentage")," s"))),m.default.createElement("div",{className:k.default.itemSmall},m.default.createElement("span",null,t("P_NINETY_FIVE_LATENCY")),m.default.createElement("span",null,"".concat(this.getMetricsData("ingress_request_duration_95percentage")," s"))),m.default.createElement("div",{className:k.default.itemSmall},m.default.createElement("span",null,t("P_NINETY_NINE_LATENCY")),m.default.createElement("span",null,"".concat(this.getMetricsData("ingress_request_duration_99percentage")," s"))))))}},{key:"detail",get:function(){return this.props.detailStore.gateway.data}},{key:"isWorkspaceGateway",get:function(){var e=this.props.match.params,t=e.workspace,a=e.namespace;return t&&!a}},{key:"cluster",get:function(){var e=this.props.match.params.cluster;return this.props.location.pathname.indexOf("federatedprojects")>-1||this.isWorkspaceGateway?localStorage.getItem("federated-cluster"):e}}]),r}(m.default.Component);a.default=I},function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(42),r(4),r(23),r(57),r(17);var l=n(r(30)),u=n(r(36)),o=n(r(37)),i=n(r(55)),c=n(r(56)),s=n(r(51)),f=n(r(0)),d=n(r(1)),p=n(r(3)),m=r(186),h=n(r(4076)),v=r(1854),g=n(r(4078));function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,s.default)(e);if(t){var n=(0,s.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,c.default)(this,a)}}var E=function(e){(0,i.default)(r,e);var a=y(r);function r(e){var t;(0,u.default)(this,r),(t=a.call(this,e)).handleToggle=function(){t.setState({visible:!t.state.visible},(function(){t.props.onToggle(t.state.visible)}))},t.hideSelector=function(){t.setState({visible:!1},(function(){t.props.onToggle(!1)}))},t.handleTimeChange=function(e){var a=e.duration;t.setState({visible:!1,duration:a},(function(){t.props.onChange(a)}))};var n=e.duration;return t.state={visible:!1,preDuration:"",duration:n||"10m"},t}return(0,o.default)(r,[{key:"renderButtonText",value:function(){var e=this.state.duration,a=(0,v.getTimeLabel)(e);return"".concat(t("LAST")," ").concat(a)}},{key:"renderContent",value:function(){var e=this.state.duration;return f.default.createElement("div",{className:g.default.content},f.default.createElement(h.default,{duration:e,onChange:this.handleTimeChange}))}},{key:"render",value:function(){var e=this.props,t=e.className,a=e.dark,r=e.arrowIcon;return f.default.createElement("div",{className:(0,p.default)(g.default.selector,t,(0,l.default)({},g.default.active,this.state.visible))},f.default.createElement("div",{className:(0,p.default)(g.default.mask,(0,l.default)({},g.default.active,this.state.visible)),onClick:this.hideSelector}),f.default.createElement(m.Button,{className:g.default.button,onClick:this.handleToggle},f.default.createElement(m.Icon,{type:a?"dark":"light",name:"timed-task",size:20}),f.default.createElement("p",null,this.renderButtonText()),f.default.createElement(m.Icon,{className:g.default.arrow,type:a?"dark":"light",name:r||"caret-down"})),f.default.createElement("div",{className:g.default.dropdown},this.renderContent()))}}],[{key:"getDerivedStateFromProps",value:function(e,t){if(e.duration!==t.preDuration){var a=e.duration;return{prevPropStep:a,duration:a}}return null}}]),r}(f.default.PureComponent);a.default=E,E.propTypes={duration:d.default.string,onChange:d.default.func,onToggle:d.default.func},E.defaultProps={duration:"10m",onChange:function(){},onToggle:function(){}}},function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(18),r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(18),r(42),r(4),r(23),r(57),r(17);var l=n(r(30)),u=n(r(36)),o=n(r(37)),i=n(r(55)),c=n(r(56)),s=n(r(51)),f=n(r(0)),d=n(r(1)),p=n(r(3)),m=r(1854),h=n(r(4077));function v(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,s.default)(e);if(t){var n=(0,s.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,c.default)(this,a)}}var g=["1m","5m","10m","30m","1h","3h","6h","12h"],y=function(e){(0,i.default)(r,e);var a=v(r);function r(){var e;(0,u.default)(this,r);for(var t=arguments.length,n=new Array(t),l=0;l-1||this.isWorkspaceGateway?localStorage.getItem("federated-cluster"):e}},{key:"prefix",get:function(){return"/clusters/".concat(this.cluster)}},{key:"type",get:function(){var e=this.props.match.params,t=e.namespace,a=e.workspace;return this.cluster&&a&&!t?"workspace":a&&t?"project":"cluster"}},{key:"namespace",get:function(){var e=this.props.match.params.namespace;return"cluster"===this.type?"":e}},{key:"actionModule",get:function(){var e=this.props.match.params,t=e.namespace,a=e.workspace;return t&&a&&this.cluster?"ks-project-gateway":a&&!t?"ks-workspace-gateway":"cluster-settings"}},{key:"enabledActions",get:function(){return globals.app.getActions(T(T({module:this.actionModule},this.props.match.params),{},{project:this.props.match.params.namespace,cluster:this.cluster}))}},{key:"volumesTitle",get:function(){return t("STORAGE_DEVICES")}},{key:"enableScaleReplica",get:function(){return this.enabledActions.includes("edit")&&!this.detail.isFedManaged}}]),r}(p.default.Component);w.childContextTypes={gatewayName:O.default.string,gatewayNs:O.default.string,cluster:O.default.string};var I=(0,h.inject)("detailStore")((0,h.observer)(w));a.default=I;var M=w;a.Component=M},function(e,a,r){"use strict";var n=r(20);r(12),r(11),r(6),r(86),r(18),r(16),r(98),r(9),r(13),r(10),r(4),r(316),r(23),r(24),r(17),r(188),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(45),r(11),r(6),r(86),r(18),r(28),r(42),r(16),r(34),r(15),r(98),r(9),r(13),r(10),r(4),r(316),r(22),r(23),r(57),r(24),r(17),r(188),r(7);var l=n(r(315)),u=n(r(96)),o=n(r(43)),i=n(r(30)),c=n(r(58));r(41);var s,f,d,p=n(r(44)),m=n(r(36)),h=n(r(37)),v=n(r(55)),g=n(r(56)),y=n(r(51)),E=n(r(0)),b=r(239),_=n(r(1)),O=n(r(3)),S=n(r(63)),C=n(r(26)),D=r(186),k=r(794),N=n(r(1075)),T=n(r(789)),R=n(r(4082)),w=n(r(1855));function I(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function M(e){for(var t=1;t0&&void 0!==i[0]?i[0]:{},a=t.noMetrics,r=t.silent,l=(0,c.default)(t,["noMetrics","silent"]),!(0,S.default)(n.state.params)){e.next=4;break}return n.store.podList.isLoading=!1,e.abrupt("return");case 4:return u=n.props.limit,r&&(n.store.podList.silent=!0),e.next=8,n.store.getGatewayPodsList(M(M({limit:u},n.state.params),l));case 8:n.store.podList.silent=!1,a||n.fetchMetrics();case 10:case"end":return e.stop()}}),e)}))),n.fetchMetrics=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=n.store.podList,a=t.data,r=t.isLoading;if((0,S.default)(a)||r||(0,S.default)(n.state.params))return!1;var l=n.state.params,u=l.gatewayName,o=l.namespace,i=l.workspace,c=l.cluster;n.monitorStore.fetchMetrics(M(M({step:"1m",times:30,resources:a.map((function(e){return e.name})),metrics:Object.values(A),namespace:o,workspace:o?void 0:i,cluster:c||n.cluster},e),{},{component:"ingress",job:"".concat(u,"-metrics")}))},n.getPagination=function(){var e=n.store.podList;return{page:e.page,limit:e.limit,total:e.total}},n.getPodMetrics=function(){var e=n.monitorStore.data,t={};return Object.entries(A).forEach((function(a){var r=(0,u.default)(a,2),n=r[0],l=r[1],o=(0,C.default)(e,"".concat(l,".data.result"))||[];t[n]=o[0]})),t},n.handleSearch=function(e){n.searchValue=e,n.fetchData({search:e})},n.handleRefresh=function(){var e=n.searchValue?{search:n.searchValue}:{};n.fetchData(e)},n.handlePage=function(e){n.fetchData({page:e}).then((function(){n.props.onPage(e)}))},n.handleExpand=function(e){n.setState((function(t){return{expandItem:t.expandItem===e?"":e}}))},n.getClustersOptions=function(){return n.props.clusters.map((function(e){return{label:e,value:e}}))},n.renderHeader=function(){return E.default.createElement("div",{className:w.default.header},E.default.createElement(D.InputSearch,{className:w.default.search,name:"search",placeholder:t("SEARCH"),onSearch:n.handleSearch}),E.default.createElement("div",{className:w.default.actions},E.default.createElement(D.Button,{type:"flat",icon:"refresh",onClick:n.handleRefresh})))},n.renderFooter=function(){var e=n.getPagination(),a=e.total;return E.default.createElement(D.Level,{className:w.default.footer},E.default.createElement(D.LevelLeft,null,t("TOTAL_ITEMS",{num:a})),E.default.createElement(D.LevelRight,null,E.default.createElement(D.Pagination,(0,l.default)({},e,{onChange:n.handlePage}))))},n.store=e.store,n.monitorStore=new N.default,n.state={expandItem:"",params:e.params},n}return(0,h.default)(r,[{key:"componentDidMount",value:function(){this.fetchData(),(0,k.startAutoRefresh)(this,{method:"fetchMetrics",leading:!1})}},{key:"componentWillUnmount",value:function(){(0,k.stopAutoRefresh)(this),this.disposer&&this.disposer()}},{key:"renderContent",value:function(){var e=this,a=this.props.prefix,r=this.store.podList,n=r.data,l=r.isLoading,u=r.silent,o=E.default.createElement("div",{className:w.default.body},(0,S.default)(n)?E.default.createElement("div",{className:w.default.empty},t("NO_RESOURCE_FOUND")):n.map((function(t){return E.default.createElement(R.default,{key:t.uid,prefix:a,detail:t,metrics:e.getPodMetrics(t),loading:e.monitorStore.isLoading,refreshing:e.monitorStore.isRefreshing,isExpand:e.state.expandItem===t.uid,onExpand:e.handleExpand})})));return u?o:E.default.createElement(D.Loading,{spinning:l},o)}},{key:"render",value:function(){var e=this.props,a=e.className,r=e.title,n=e.hideHeader,l=e.hideFooter,u=e.noWrapper,o=this.store.podList.data;return u?this.renderContent():E.default.createElement(T.default,{className:(0,O.default)(w.default.main,a),title:t(r),empty:t("NO_AVAILABLE_RESOURCE_VALUE",{resource:t("POD")}),isEmpty:(0,S.default)(o)},!n&&this.renderHeader(),this.renderContent(),!l&&this.renderFooter())}},{key:"isWorkspaceGateway",get:function(){var e=this.props.params,t=e.workspace,a=e.namespace;return t&&!a}},{key:"cluster",get:function(){var e,t=this.props.params.cluster;return(null===(e=location)||void 0===e?void 0:e.pathname).indexOf("federatedprojects")>-1||this.isWorkspaceGateway?localStorage.getItem("federated-cluster"):t}}]),r}(E.default.Component),f.propTypes={prefix:_.default.string,title:_.default.string,detail:_.default.object,details:_.default.object,hideHeader:_.default.bool,hideFooter:_.default.bool,onPage:_.default.func,limit:_.default.number},f.defaultProps={title:"PODS",detail:{},details:{},hideHeader:!1,hideFooter:!1,onPage:function(){}},s=d))||s;a.default=j},function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(6),r(86),r(18),r(87),r(16),r(4),r(23),r(17),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(6),r(86),r(18),r(87),r(42),r(16),r(4),r(23),r(57),r(17),r(7);var l=n(r(61)),u=n(r(30)),o=n(r(315)),i=n(r(36)),c=n(r(37)),s=n(r(55)),f=n(r(56)),d=n(r(51)),p=n(r(0)),m=r(433),h=n(r(1)),v=n(r(3)),g=n(r(63)),y=n(r(26)),E=r(52),b=r(794),_=r(186),O=n(r(839)),S=r(798),C=n(r(1220)),D=n(r(804)),k=n(r(1855));function N(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,d.default)(e);if(t){var n=(0,d.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,f.default)(this,a)}}var T=function(e){(0,s.default)(r,e);var a=N(r);function r(){var e;(0,i.default)(this,r);for(var n=arguments.length,l=new Array(n),u=0;u1&&p.default.createElement(_.Tooltip,{content:this.renderPodIPContent(this.networkIPs)},p.default.createElement("div",{className:k.default.podip},this.networkIPs.length))),p.default.createElement("p",null,t("POD_IP_ADDRESS_SCAP"))),this.renderMonitorings(),p.default.createElement("div",{className:k.default.arrow},p.default.createElement(_.Icon,{name:"chevron-down",type:l?"light":"",size:20})))}},{key:"renderExtraContent",value:function(){var e=this,a=this.props.prefix,r=this.props.detail,n=r.cluster,l=r.containers,u=void 0===l?[]:l,o=r.initContainers,i=void 0===o?[]:o,c=r.name;if((0,g.default)(u))return null;var s=globals.app.hasPermission({module:"clusters",action:"view"})&&a?this.getLink():"";return p.default.createElement("div",{className:k.default.itemExtra},p.default.createElement("div",{className:"margin-b8"},p.default.createElement("strong",null,t("CONTAINER_PL"))),p.default.createElement("div",{className:k.default.containers},u.map((function(t){return p.default.createElement(C.default,{key:t.name,prefix:s,podName:c,detail:t,cluster:n,onContainerClick:e.handleLinkClick,isCreating:e.isCreating,hideterminal:!0,hideLink:!0})})),i.map((function(t){return p.default.createElement(C.default,{key:t.name,prefix:s,podName:c,detail:t,cluster:n,onContainerClick:e.handleLinkClick,isCreating:e.isCreating,isInit:!0,hideterminal:!0,hideLink:!0})}))))}},{key:"render",value:function(){var e=this.props,t=e.className,a=e.isExpand;return p.default.createElement("div",{className:(0,v.default)(k.default.item,t,(0,u.default)({},k.default.expanded,a))},p.default.createElement("div",{className:k.default.itemMain,onClick:this.handleExpandExtra},p.default.createElement("div",{className:k.default.icon},p.default.createElement(_.Icon,{name:"pod",size:40,type:a?"light":"dark"}),this.renderStatusTip()),this.renderContent()),this.renderExtraContent())}},{key:"status",get:function(){var e=this.props.detail.podStatus,t=e.status;return{type:e.type.toLowerCase(),name:t}}},{key:"isCreating",get:function(){return"warning"===this.status.type&&"ContainerCreating"===this.status.name}},{key:"isRunning",get:function(){return"running"===this.status.type||"completed"===this.status.type}},{key:"networkIPs",get:function(){return this.props.detail.networksStatus.reduce((function(e,t){return[].concat((0,l.default)(e),(0,l.default)(t.ips))}),[])}}]),r}(p.default.PureComponent);a.default=T,T.propTypes={className:h.default.string,prefix:h.default.string,detail:h.default.object,metrics:h.default.object,loading:h.default.bool,isExpand:h.default.bool,onExpand:h.default.func},T.defaultProps={prefix:"",detail:{},isExpand:!1,onExpand:function(){}}},function(e,t,a){e.exports={deployment_codeResource:"_2sxIgN7h_UoStkDUN8ngoB"}},function(e,a,r){"use strict";r(15);var n=r(20);r(18),r(98),r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(18),r(42),r(98),r(4),r(23),r(57),r(17);var l,u=n(r(96)),o=n(r(36)),i=n(r(37)),c=n(r(55)),s=n(r(56)),f=n(r(51)),d=n(r(0)),p=n(r(789)),m=r(239),h=n(r(63)),v=n(r(26)),g=n(r(1852));function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,f.default)(e);if(t){var n=(0,f.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,s.default)(this,a)}}var E=(0,m.inject)("detailStore")(l=(0,m.observer)(l=function(e){(0,c.default)(r,e);var a=y(r);function r(){return(0,o.default)(this,r),a.apply(this,arguments)}return(0,i.default)(r,[{key:"render",value:function(){var e=this.detail.config;return d.default.createElement(p.default,{title:t("CONFIGURATION_OPTIONS")},d.default.createElement("div",{className:g.default.container},d.default.createElement("ul",null,(0,h.default)(e)?d.default.createElement("li",null,t("NO_DATA")):Object.entries(this.detail.config).map((function(e){var t=(0,u.default)(e,2),a=t[0],r=t[1];return d.default.createElement("li",{key:a},d.default.createElement("span",{className:g.default.key},a),d.default.createElement("span",null,r))})))))}},{key:"module",get:function(){return this.props.detailStore.module}},{key:"store",get:function(){return this.props.detailStore}},{key:"detail",get:function(){return(0,v.default)(this.store.gateway,"data",{})}}]),r}(d.default.Component))||l)||l;a.default=E},function(e,a,r){"use strict";r(84),r(85);var n=r(20);r(12),r(5),r(11),r(6),r(86),r(73),r(18),r(87),r(97),r(16),r(9),r(13),r(10),r(4),r(316),r(23),r(24),r(17),r(62),r(188),r(7),r(110),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(45),r(5),r(11),r(6),r(86),r(73),r(18),r(28),r(87),r(245),r(97),r(442),r(42),r(16),r(34),r(15),r(9),r(13),r(10),r(4),r(316),r(22),r(23),r(57),r(24),r(17),r(62),r(188),r(7),r(110);var l=n(r(61)),u=n(r(43)),o=n(r(30));r(41);var i,c,s,f,d,p,m,h,v,g=n(r(44)),y=n(r(96)),E=n(r(65)),b=n(r(36)),_=n(r(37)),O=n(r(88)),S=n(r(55)),C=n(r(56)),D=n(r(51)),k=n(r(49)),N=(n(r(66)),n(r(0))),T=r(239),R=n(r(833)),w=n(r(985)),I=r(14),M=r(186),P=n(r(3)),A=r(2014),j=n(r(243)),L=n(r(1127)),x=n(r(1392)),U=r(52),z=r(1397),F=n(r(1124)),G=n(r(4086));function V(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function B(e){for(var t=1;t').concat(e.hightLighted,"")}));return N.default.createElement("span",{dangerouslySetInnerHTML:{__html:o.join("")}})}},e.scrollTo=function(t){try{e.tableRef.current.scrollToRow(t)}catch(e){}},(0,E.default)(e,"onTableScrollTop",m,(0,O.default)(e)),e.initQuery=function(){e.searchInputState={query:[],start:"",end:"",durationAlias:"",nextParamsKey:""}},e.togglePolling=function(){e.state.polling?e.stopPolling():e.startPolling()},(0,E.default)(e,"changeFrequency",h,(0,O.default)(e)),(0,E.default)(e,"pollingFunc",v,(0,O.default)(e)),e.onSearchParamsChange=function(){e.stopPolling(),e.refreshQuery()},e.handleRefresh=function(){e.refreshQuery()},e.clearFilter=function(){e.initQuery(),e.refreshQuery()},e.renderEmpty=function(){return N.default.createElement("div",{className:G.default.emptyText},N.default.createElement("span",{className:G.default.emptyTipIcon},N.default.createElement(M.Icon,{name:"exclamation",size:48})),N.default.createElement("div",null,t("NO_MATCHING_RESULT_FOUND")),N.default.createElement("p",null,t("YOU_CAN_TRY_TO"),N.default.createElement("span",{className:G.default.action,onClick:e.handleRefresh,"data-test":"table-empty-refresh"},t("REFRESH_DATA")),t("OR"),N.default.createElement("span",{className:G.default.action,onClick:e.clearFilter,"data-test":"table-empty-clear-filter"},t("CLEAR_SEARCH_CONDITIONS"))))},e}return(0,_.default)(c,[{key:"componentDidMount",value:function(){this.refreshQuery()}},{key:"componentWillUnmount",value:function(){clearInterval(this.pollingInterval)}},{key:"getQueryParams",value:function(){return this.searchInputState.query.filter((function(e){return e.key})).reduce((function(e,t){var a=t.key,r=t.value,n=a,l=e[n];return e[n]=l?"".concat(l,",").concat(r):r,e}),{})}},{key:"refreshQuery",value:(n=(0,g.default)(u.default.mark((function e(){var t,a;return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=this.getQueryParams(),e.next=3,this.fetchLog(B(B({},t),{},{from:0,size:50},this.duration));case 3:a=e.sent,this.logs=a.reverse(),this.scrollTo(this.logs.length);case 6:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"fetchLog",value:(r=(0,g.default)(u.default.mark((function e(t){var a,r,n,l;return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=this.props.match.params,r=a.namespace,n=a.gatewayName,l=a.workspace,e.next=3,this.store.getGatewayLogs(B({cluster:this.cluster,namespace:r,workspace:l,gatewayName:n},t));case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e,this)}))),function(e){return r.apply(this,arguments)})},{key:"loadMoreLogs",value:(a=(0,g.default)(u.default.mark((function e(){var t,a,r;return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=this.store.logs.from+this.store.logs.size,a=this.getQueryParams(),e.next=4,this.fetchLog(B(B(B({},a),this.duration),{},{from:t,size:50}));case 4:r=e.sent,this.logs=[].concat((0,l.default)(r.reverse()),(0,l.default)(this.logs)),this.scrollTo(r.length);case 7:case"end":return e.stop()}}),e,this)}))),function(){return a.apply(this,arguments)})},{key:"stopPolling",value:function(){clearTimeout(this.pollingInterval),this.setState({polling:!1})}},{key:"startPolling",value:function(){this.setState({polling:!0}),this.pollingFunc(),this.pollingInterval&&clearTimeout(this.pollingInterval),this.pollingInterval=setInterval(this.pollingFunc,this.pollingFrequency)}},{key:"renderOperation",value:function(){var e=this.props.match.params,a=e.namespace,r=e.gatewayName,n=e.workspace,l={cluster:this.cluster,namespace:a,workspace:n,gatewayName:r},u=[5,10,20].map((function(e){return{label:t("REFRESH_INTERVAL_VALUE",{value:e}),value:1e3*e}})),o=B(B(B({},l),this.duration),this.getQueryParams()),i=(0,U.getClusterUrl)(this.store.exportLinkFactory(o));return N.default.createElement("div",{className:G.default.filter},N.default.createElement("div",{className:(0,P.default)(G.default.filterButton,G.default.pollingBtn),onClick:this.togglePolling},N.default.createElement(M.Icon,{name:this.state.polling?"stop":"start",type:"light"})),N.default.createElement(M.Select,{prefixIcon:N.default.createElement(M.Icon,{type:"light",name:"timed-task",size:20}),className:(0,P.default)(G.default.filterButton,G.default.frequencyOpts),defaultValue:5e3,options:u,onChange:this.changeFrequency}),N.default.createElement("a",{href:i,download:!0},N.default.createElement("span",{className:(0,P.default)(G.default.filterButton,G.default.exportBtn)},N.default.createElement(M.Tooltip,{content:t("EXPORT_LOGS")},N.default.createElement(M.Icon,{name:"export",type:"light"})))))}},{key:"render",value:function(){return globals.app.hasKSModule("whizard-logging")?N.default.createElement("div",null,N.default.createElement("div",{className:G.default.title},N.default.createElement("div",{className:(0,P.default)(G.default.search,(0,o.default)({},G.default.focus,this.hasValue))},N.default.createElement(M.Icon,{className:G.default.isLeft,name:"magnifier",size:20}),N.default.createElement(w.default,{className:G.default.searchInput,onChange:this.onSearchParamsChange,params:this.searchInputState,dropdownClass:G.default.dropdownClass,iconThem:"light",enableClear:!0,dropDownItems:this.dropDownContent,showStep:!1}),N.default.createElement(M.Icon,{className:(0,P.default)(G.default.clearIcon,(0,o.default)({},G.default.hideIcon,!this.hasValue)),name:"close",onClick:this.initQuery})),this.renderOperation()),N.default.createElement("div",{className:G.default.body},(0,A.isEmpty)((0,I.toJS)(this.logs))?this.renderEmpty():N.default.createElement(L.default,{onScroll:this.onTableScrollTop,cols:this.tableCols,data:(0,I.toJS)(this.logs),tableRef:this.tableRef,trCLassName:G.default.trCLassName,body:G.default.bodyClassName,header:G.default.headerClassName}))):N.default.createElement(R.default,{className:"no-shadow",icon:"cluster",title:t("LOGGING_DISABLED")})}},{key:"hasValue",get:function(){return Object.values((0,I.toJS)(this.searchInputState)).some((function(e){return(0,A.isArray)(e)?e.some((function(e){return!(0,A.isEmpty)((0,I.toJS)(e))})):!(0,A.isEmpty)(e)}))}},{key:"defaultDuration",get:function(){return{start_time:0,end_time:Date.now()}}},{key:"isWorkspaceGateway",get:function(){var e=this.props.match.params,t=e.workspace,a=e.namespace;return t&&!a}},{key:"duration",get:function(){var e=Date.now(),t=this.searchInputState,a=t.start,r=t.end;return a?{start_time:(0,A.min)([1e3*a,e]),end_time:(0,A.min)([1e3*r,e])}:this.defaultDuration}},{key:"dropDownContent",get:function(){return{log_query:{icon:"magnifier",text:t("KEYWORD")},pod_query:{icon:"pod",text:t("POD")}}}},{key:"store",get:function(){return this.props.detailStore}},{key:"cluster",get:function(){var e=this.props.match.params.cluster,t=this.props.location.pathname;return t.indexOf("/federatedprojects/")>-1||t.indexOf("/workspaces/")>-1?localStorage.getItem("federated-cluster"):e}}]),c}(N.default.Component),s=(0,k.default)(c.prototype,"searchInputState",[I.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{query:[],start:"",end:"",durationAlias:"",nextParamsKey:""}}}),f=(0,k.default)(c.prototype,"pollingFrequency",[I.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 5e3}}),d=(0,k.default)(c.prototype,"logs",[I.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),(0,k.default)(c.prototype,"hasValue",[I.computed],Object.getOwnPropertyDescriptor(c.prototype,"hasValue"),c.prototype),p=(0,k.default)(c.prototype,"tableCols",[I.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[{thead:t("TIME"),key:"time",dataIndex:"time",mustShow:!0,content:function(e){return"[".concat((0,j.default)(e.time).format("YYYY-MM-DD HH:mm:ss"),"]")}},{thead:t("POD"),key:"pod",dataIndex:"pod",mustShow:!0,content:this.renderHightLightMatchTd({resKey:"pod",searchKey:["pod_query"]})},{thead:t("MESSAGE"),key:"log",dataIndex:"log",className:G.default.logItem,content:this.renderHightLightMatchLogTd({resKey:"log",searchKey:["log_query"],handler:z.esMark}),mustShow:!0}]}}),(0,k.default)(c.prototype,"refreshQuery",[I.action],Object.getOwnPropertyDescriptor(c.prototype,"refreshQuery"),c.prototype),(0,k.default)(c.prototype,"fetchLog",[I.action],Object.getOwnPropertyDescriptor(c.prototype,"fetchLog"),c.prototype),(0,k.default)(c.prototype,"loadMoreLogs",[I.action],Object.getOwnPropertyDescriptor(c.prototype,"loadMoreLogs"),c.prototype),m=(0,k.default)(c.prototype,"onTableScrollTop",[I.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(t){var a=t.scrollTop,r=e.store.logs,n=r.from,l=r.size,u=r.total;0===a&&u>n+l&&e.loadMoreLogs()}}}),h=(0,k.default)(c.prototype,"changeFrequency",[I.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(t){e.pollingFrequency=t,e.state.polling&&(clearTimeout(e.pollingInterval),e.startPolling())}}}),v=(0,k.default)(c.prototype,"pollingFunc",[I.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(){var t=q;e.searchInputState.end=Math.ceil(Date.now()/1e3),e.searchInputState.start=e.searchInputState.end-t,e.searchInputState.durationAlias="".concat(t/60,"m"),e.refreshQuery()}}}),i=c))||i)||i;a.default=H},function(e,t,a){e.exports={title:"h3EGYxJHcXzNAZU64Ys-7",focus:"_1TYZVVQtrXwaAaa2nwD6NE",search:"_2QSFqdrB9aMZjIVh3QK0R2",clearIcon:"_3qDug15F8wtzhqs8WjeLBW",hideIcon:"_2CnN8q86DPsSM48wJnL6Nv",searchInput:"_2432rvdXjewrevIwLoYaSt",filter:"_2fb4uH-e_iaRbWSOMvDMPn",filterButton:"_7ASJ4CE_FCBt8fhgHM3Nz",exportBtn:"_2JJ6SH_-_MTCF7OPFW7kys",pollingBtn:"rOD92XzSZBE4irFyl6UkB",frequencyOpts:"_39g5yqbm9RZmh3S9viq599",searchBar:"_2PXN-WMqrT8hDBu-4PGTte",icon:"_1Mf8725MJ88eggNRQj49ku",input:"_2ApsehJ2Zoyl1l3Er5b7Ki",dropdownClass:"e7mNbUyHuqgvvXQ3KQ-ip",body:"_2zscwenqDTZYN32pr5Ds5-",logItem:"_3OcRCVG8GQmCwWPLwTW978",bodyClassName:"_2RyfnALWpJKi2fQDgJ-5qc",headerClassName:"_1ClFBNqMO40nDrGs0NH27N",trCLassName:"_1JuCS0O3IJiNnkzG1zCHzs",emptyText:"_2p2Dbxritd_IaivnVdRvZ1",emptyTipIcon:"_1dM3MOctITqHWlne46RoCc",action:"_3ihxA24eqCRlJprACXfqZc",hightLightMatch:"_3f66pKDSXrWjGp0u0360VP"}},,,,,,,,,,function(e,a,r){"use strict";var n=r(20);r(12),r(11),r(6),r(18),r(16),r(9),r(13),r(10),r(4),r(23),r(17),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(45),r(11),r(6),r(18),r(28),r(42),r(16),r(34),r(15),r(9),r(13),r(10),r(4),r(23),r(57),r(17),r(7);var l,u=n(r(30)),o=n(r(36)),i=n(r(37)),c=n(r(55)),s=n(r(56)),f=n(r(51)),d=n(r(0)),p=r(14),m=r(239),h=r(186),v=n(r(915)),g=n(r(787)),y=n(r(863)),E=n(r(438)),b=n(r(955)),_=n(r(4097)),O=n(r(4099));function S(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function C(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,f.default)(e);if(t){var n=(0,f.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,s.default)(this,a)}}var D=(0,m.observer)(l=function(e){(0,c.default)(r,e);var a=C(r);function r(e){var t;return(0,o.default)(this,r),(t=a.call(this,e)).fetchData=function(e){(e=e||{}).limit=-1,e.labelSelector=e.labelSelector?"".concat(e.labelSelector,",!cluster-role.kubesphere.io/edge"):"!cluster-role.kubesphere.io/edge",t.store.fetchList(function(e){for(var t=1;t0?t("".concat(e.isAdmin?"ADMIN_":"","UPDATE_LICENSE_DESC"),{day:e.dueDate,type:t("subscription"===e.type?"SUBSCRIPTION":"WARRANTY")}):t("".concat(e.isAdmin?"ADMIN_":"","MA_EXPIRED_LICENSE_DESC")):""},e.renderTipOperation=function(){var a=e.isInfoTip?{primary:"#326e93",secondary:"#326e93"}:{primary:"#8d663e",secondary:"#8d663e"},r=e.isUnAuthorized||e.isExpired?"ACTIVATE":"UPDATE_LICENSE";return"ACTIVATE"!==r?null:m.default.createElement("div",{onClick:function(){var t;e.trigger("license.update",{store:e.licenseStore,title:r,success:(t=(0,i.default)(u.default.mark((function t(){return u.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.getData();case 2:e.currentUrl.indexOf("notification-history")>-1&&e.props.rootStore.routing.push("/settings/base-info");case 3:case"end":return t.stop()}}),t)}))),function(){return t.apply(this,arguments)})})}},m.default.createElement("span",{style:{color:a}},t(r)),m.default.createElement(v.Icon,{name:"next",size:16,color:a}))},e}return(0,s.default)(n,[{key:"componentDidMount",value:(a=(0,i.default)(u.default.mark((function e(){var t=this;return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!globals.user){e.next=4;break}return e.next=3,this.getData();case 3:window.triggerEvent.add("licenseViolation",(function(e){t.handleGetDataDebounce(e)}));case 4:case"end":return e.stop()}}),e,this)}))),function(){return a.apply(this,arguments)})},{key:"render",value:function(){var e=-1!==this.currentUrl.indexOf("/license-info"),t=this.isExpired;return m.default.createElement("div",{className:(0,h.default)(O.default.licenseTip,(0,l.default)({},O.default.tipInfo,this.isInfoTip)),style:{display:this.visible?"block":"none"}},m.default.createElement("span",null,this.renderIcon(),this.renderTipText()),m.default.createElement("div",{className:O.default.operation},!e&&this.isAdmin&&this.renderTipOperation(),(!e||e&&!t)&&this.isInfoTip&&m.default.createElement(v.Icon,{name:"close",color:{primary:"#326e93",secondary:"#326e93"},size:16,onClick:this.handleCloseTip})))}},{key:"visible",get:function(){var e=this.props.rootStore.showLicenseTip;return this.isUnAuthorized||this.isExpired?(localStorage.removeItem("hideLicenseTip"),e):("true"===localStorage.getItem("hideLicenseTip")&&(e=!1,this.props.rootStore.hideLicenseTip()),e)}},{key:"licenseInfo",get:function(){return{}}},{key:"isAdmin",get:function(){return globals.app.isPlatformAdmin}},{key:"type",get:function(){return(0,g.default)(this.licenseInfo,"licenseType","subscription")}},{key:"isOverLimit",get:function(){return this.licenseInfo.isOverLimit||!1}},{key:"isUnAuthorized",get:function(){return this.licenseInfo.isUnAuthorized||!1}},{key:"isExpired",get:function(){return this.licenseInfo.isExpired||!1}},{key:"unExpired",get:function(){return this.licenseInfo.unExpired||!1}},{key:"isInfoTip",get:function(){return this.unExpired}},{key:"dueDate",get:function(){return this.licenseInfo.dueDate||-1}},{key:"currentUrl",get:function(){return this.props.rootStore.routing.location.pathname}}]),n}(m.default.Component))||o)||o)||o;a.default=C},function(e,t,a){e.exports={licenseTip:"_3wB25-Yoe6He1M4G1RSEzn",tipInfo:"_2mlSckPv_eZDS6o7GYbUSg",operation:"scU0LZ4kAkeyqIX9uyAab"}},function(e,a,r){"use strict";r(15);var n=r(20),l=r(157);r(16),r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(28),r(42),r(16),r(4),r(23),r(57),r(17);var u,o,i,c=n(r(30)),s=n(r(36)),f=n(r(37)),d=n(r(55)),p=n(r(56)),m=n(r(51)),h=l(r(0)),v=n(r(1)),g=r(239),y=n(r(3)),E=r(186),b=n(r(4107)),_=r(791),O=n(r(322)),S=n(r(4113));function C(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,m.default)(e);if(t){var n=(0,m.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,p.default)(this,a)}}var D=(0,g.inject)("rootStore")(u=(0,g.observer)(u=(0,_.trigger)((i=o=function(e){(0,d.default)(r,e);var a=C(r);function r(e){var t;return(0,s.default)(this,r),(t=a.call(this,e)).handleMoreClick=function(e,a){var r=t.props.rootStore.routing;switch(a){case"setting":t.trigger("user.setting",{});break;case"notification":t.trigger("notification.user.setting",{});break;case"about":t.setState({showAbout:!0});break;case"logout":t.props.rootStore.logout();break;case"support":r.push("/support")}},t.hideAboutModal=function(){t.setState({showAbout:!1})},t.store=new O.default,t.state={showAbout:!1},t}return(0,f.default)(r,[{key:"renderDropDown",value:function(){return h.default.createElement(E.Menu,{onClick:this.handleMoreClick},h.default.createElement(E.Menu.MenuItem,{key:"setting"},h.default.createElement(E.Icon,{name:"wrench"})," ",t("USER_SETTINGS")),h.default.createElement(E.Menu.MenuItem,{key:"notification"},h.default.createElement(E.Icon,{name:"loudspeaker"})," ",t("NOTIFICATION_SETTINGS")),h.default.createElement(E.Menu.MenuItem,{key:"logout"},h.default.createElement(E.Icon,{name:"logout"})," ",t("LOG_OUT")),h.default.createElement(E.Menu.MenuItem,{key:"about"},h.default.createElement(E.Icon,{name:"information"})," ",t("ABOUT")))}},{key:"renderModals",value:function(){return h.default.createElement("div",null,h.default.createElement(b.default,{visible:this.state.showAbout,onCancel:this.hideAboutModal}))}},{key:"render",value:function(){var e=this.props,a=e.className,r=e.isAppsPage;return globals.user?h.default.createElement("div",{className:(0,y.default)(S.default.logined,a)},h.default.createElement(E.Dropdown,{content:this.renderDropDown(),placement:"bottomRight"},h.default.createElement("div",{className:(0,y.default)(S.default.name,(0,c.default)({},S.default.isAppsPage,r))},h.default.createElement(E.Icon,{name:"human"}),globals.user.username,h.default.createElement(E.Icon,{name:"caret-down",type:r?"white":"dark"}))),this.renderModals()):h.default.createElement("div",{className:(0,y.default)(S.default.notLoggedIn,a)},h.default.createElement("div",{className:S.default.name},h.default.createElement(E.Icon,{name:"human",color:{primary:"#f5a623",secondary:"#8d663e"}}),h.default.createElement("a",{className:S.default.loginLabel,href:"/login?referer=".concat(location.pathname)},t("LOG_IN"))))}}]),r}(h.Component),o.propTypes={isAppsPage:v.default.bool},u=i))||u)||u)||u;a.default=D},function(e,a,r){"use strict";r(15);var n=r(157),l=r(20);r(12),r(109),r(5),r(18),r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(109),r(45),r(5),r(18),r(42),r(4),r(23),r(57),r(17);var u=l(r(315)),o=l(r(30)),i=l(r(36)),c=l(r(37)),s=l(r(55)),f=l(r(56)),d=l(r(51)),p=n(r(0)),m=l(r(1)),h=l(r(787)),v=l(r(3)),g=l(r(4108)),y=l(r(4109)),E=l(r(1792)),b=l(r(1793)),_=l(r(1794)),O=l(r(201)),S=l(r(4110)),C=r(52),D=l(r(4112));function k(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,d.default)(e);if(t){var n=(0,d.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,f.default)(this,a)}}var N=[{icon:E.default,title:"KSE_FEATURE_1"},{icon:b.default,title:"KSE_FEATURE_2"},{icon:_.default,title:"KSE_FEATURE_3"}],T=[{title:"KSC_FEATURE_BACKUP",desc:["KSC_FEATURE_BACKUP_APP_DESC","KSC_FEATURE_BACKUP_DATA_DESC","KSC_FEATURE_BACKUP_CLOUD_DESC"],img:"/assets/support-backup.svg"},{title:"KSC_FEATURE_INSPECTION",desc:["KSC_FEATURE_INSPECTION_VULN_DESC","KSC_FEATURE_INSPECTION_SECURITY_DESC","KSC_FEATURE_INSPECTION_BEST_DESC"],img:"/assets/support-cluster-inspection.svg"},{title:"KSC_FEATURE_LIGHTWEIGHT",desc:["KSC_FEATURE_LIGHTWEIGHT_START_DESC","KSC_FEATURE_LIGHTWEIGHT_KS_DESC","KSC_FEATURE_LIGHTWEIGHT_TEST_DESC"],img:"/assets/support-light-cluster.svg"}],R=function(e){(0,s.default)(r,e);var a=k(r);function r(){var e;(0,i.default)(this,r);for(var n=arguments.length,l=new Array(n),u=0;u0&&void 0!==arguments[0]?arguments[0]:{},a=e.props.current;return t.children?t.children.some((function(t){return e.checkSelect(t)})):t.tabs?t.tabs.some((function(t){return e.checkSelect(t)})):0===a.indexOf(t.name)},e.handleOpen=function(){var t=e.props;(0,t.onOpen)(t.item.name)},e}return(0,o.default)(r,[{key:"renderDisabledTip",value:function(e){return"CLUSTER_UPGRADE_REQUIRED"===e.reason?f.default.createElement(m.Tooltip,{content:t(e.reason,{version:e.requiredClusterVersion}),placement:"topRight"},f.default.createElement(m.Icon,{name:"update",className:v.default.extraIcon,color:{primary:"#ffc781",secondary:"#f5a623"}})):"UNAUTHORIZED"===e.reason?f.default.createElement(m.Tooltip,{content:f.default.createElement("div",null,f.default.createElement("p",{className:"font-bold"},t("UNAUTHORIZED_FEATURE")),f.default.createElement("p",null,t("UNAUTHORIZED_FEATURE_DESC"))),placement:"topRight"},f.default.createElement(m.Icon,{name:"lock",className:v.default.extraIcon})):null}},{key:"render",value:function(){var e,a,r=this,n=this.props,u=n.item,o=n.prefix,i=n.disabled,c=n.onClick,s=n.isOpen,d=(i||u.disabled)&&!u.showInDisable;return u.children?f.default.createElement("li",{className:(0,p.default)((a={},(0,l.default)(a,v.default.childSelect,this.checkSelect(u)),(0,l.default)(a,v.default.open,u.open||s),(0,l.default)(a,v.default.disabled,d),a))},f.default.createElement("div",{className:v.default.title,onClick:this.handleOpen},f.default.createElement(m.Icon,{name:u.icon}),f.default.createElement("span",{className:"nav-title"},t(u.title)),!d&&!u.open&&f.default.createElement(m.Icon,{name:"chevron-down",className:(0,p.default)(v.default.rightIcon,"nav_fold_icon")}),d&&this.renderDisabledTip(u)),f.default.createElement("ul",{className:(0,p.default)(v.default.innerNav,"children_nav")},u.children.map((function(e){var a,n=(i||e.disabled)&&!e.showInDisable;return f.default.createElement("li",{key:e.name,className:(0,p.default)((a={},(0,l.default)(a,v.default.select,r.checkSelect(e)),(0,l.default)(a,v.default.disabled,n),a))},f.default.createElement(h.default,{to:"".concat(o,"/").concat(e.name),disabled:n},t(e.title),n&&r.renderDisabledTip(e)))})))):f.default.createElement("li",{key:u.name,className:(0,p.default)((e={},(0,l.default)(e,v.default.select,this.checkSelect(u)),(0,l.default)(e,v.default.disabled,d),e))},f.default.createElement(h.default,{to:"".concat(o,"/").concat(u.name),onClick:c,disabled:d},f.default.createElement(m.Icon,{name:u.icon}),f.default.createElement("span",{className:"nav-title"},t(u.title)),d&&this.renderDisabledTip(u)))}}]),r}(f.default.Component);a.default=y,y.propTypes={item:d.default.object,current:d.default.string,prefix:d.default.string,onClick:d.default.func,onOpen:d.default.func,disabled:d.default.bool}},function(e,t,a){"use strict";a(15);var r=a(20);a(5),a(18),a(16),a(4),a(23),a(17),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(45),a(5),a(18),a(42),a(16),a(4),a(23),a(57),a(17);var n=r(a(36)),l=r(a(37)),u=r(a(55)),o=r(a(56)),i=r(a(51)),c=r(a(0)),s=r(a(1)),f=r(a(26)),d=a(186),p=r(a(787)),m=r(a(4118)),h=r(a(1859));function v(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,i.default)(e);if(t){var n=(0,i.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,o.default)(this,a)}}var g=function(e){(0,u.default)(a,e);var t=v(a);function a(){var e;(0,n.default)(this,a);for(var r=arguments.length,l=new Array(r),u=0;u=r.threshold-2&&r.props.onScrollBottom()},r.handleMenuClick=function(e,t){r.props.onSelect(t)},r.contentRef=s.default.createRef(),r}return(0,u.default)(a,[{key:"componentDidMount",value:function(){this.contentRef.current&&(this.$dropdownContent=this.contentRef.current.querySelector(".dropdown-content"),this.$dropdownContent.addEventListener("scroll",this.handleScroll))}},{key:"componentWillUnmount",value:function(){this.$dropdownContent&&this.$dropdownContent.removeEventListener("scroll",this.handleScroll)}},{key:"componentDidUpdate",value:function(){if(this.contentRef.current){var e=this.contentRef.current.querySelector(".dropdown-content > .menu-wrapper");e&&this.$dropdownContent&&(this.threshold=e.offsetHeight-this.$dropdownContent.offsetHeight)}}},{key:"renderList",value:function(){var e=this.props,t=e.defaultIcon,a=e.options,r=e.loading;return this.isMulti?s.default.createElement("div",{className:"menu-wrapper"},s.default.createElement(p.Menu,{width:220,onClick:this.handleMenuClick},a.map((function(e){return s.default.createElement(p.Menu.MenuItem,{key:e.value},s.default.createElement("img",{src:t,alt:""}),e.label)}))),s.default.createElement("div",{className:m.default.bottom},r&&s.default.createElement(p.Loading,{size:"small"}))):null}},{key:"render",value:function(){var e=this.props,t=e.icon,a=e.defaultIcon,r=e.value,l=e.type,u=e.options.find((function(e){return e.value===r}))||{};return s.default.createElement("div",{ref:this.contentRef},s.default.createElement(p.Dropdown,{theme:"dark",content:this.renderList()},s.default.createElement("div",{className:(0,d.default)(m.default.titleWrapper,(0,n.default)({},m.default.multi,this.isMulti))},s.default.createElement("div",{className:m.default.icon},s.default.createElement("img",{src:t||a,alt:""})),s.default.createElement("div",{className:m.default.text},s.default.createElement("p",null,l),s.default.createElement("div",{className:"h6"},u.label||r)),this.isMulti&&s.default.createElement("div",{className:m.default.arrow},s.default.createElement(p.Icon,{name:"caret-down",type:"light"})))))}},{key:"isMulti",get:function(){return this.props.options.length>1}}]),a}(s.default.Component);t.default=v,v.propTypes={icon:f.default.string,defaultIcon:f.default.string,value:f.default.string,type:f.default.string,loading:f.default.bool,options:f.default.array,onSelect:f.default.func,onScrollBottom:f.default.func},v.defaultProps={icon:"",defaultIcon:"",value:"",type:"",loading:!1,options:[],onSelect:function(){},onScrollBottom:function(){}}},function(e,t,a){e.exports={titleWrapper:"hSrp7rCyCg7SchEgVy_6y",icon:"_2GbxzJxwkGJD0qR41rMvpH",text:"t6iKjSPDFDOpWCtkS9Doa",arrow:"_3CTcTkgyEHMTpuCoayziCN",multi:"_1K5LDanfLvQQx8llb9YYT",bottom:"F7S4b1XHdXUSGAHB8uNAY"}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,a){e.exports={wrapper:"_3ZtD5eAqH6AUKiDsz0pcAL",image:"Z7KWsw8fF2407V0aEX6SL",title:"_1KAJCl-kZirxlIa0q1yvdz",icon:"nGJu81QzoLuEo79G9vRpL",desc:"_1cgFUO3Bn5CsfWNgdOnzXf",canClick:"_34eEiZ0jC_waLj3cMn-bvD",isIcon:"_1yS8-xmglVH3M6Rb93PRbY",avatarIcon:"-giQOuJDvs9ioohUF1exA",letter:"_1X9WSgZJV4No7YWrHu0-6F"}},,,function(e,t,a){e.exports={cluster:"_2-ftWaI1a83L_0QqFrKD99",empty:"_3fjV7wo2CrhJ-5dXt_w3sp",desc:"_2sUA2vSFa_k4PbErr_vSfy",descTitle:"_2Rf6kTh0pgiyXfTNdjDb3A",container:"_1fc3jibbrO6vS2Nv3ZJMan",title:"_249VJGOOlE7eJT31tEzv36"}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,a){"use strict";var r=a(20);a(12),a(11),a(31),a(6),a(84),a(86),a(18),a(16),a(27),a(190),a(9),a(13),a(10),a(316),a(85),a(7),Object.defineProperty(t,"__esModule",{value:!0}),t.processEdges=t.processData=void 0;var n=r(a(30));a(12),a(11),a(31),a(6),a(84),a(86),a(18),a(28),a(16),a(27),a(190),a(34),a(15),a(9),a(13),a(10),a(4),a(316),a(85),a(7);var l=r(a(26)),u=r(a(74)),o=r(a(63)),i=r(a(855)),c=r(a(321)),s=r(a(1891));function f(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function d(e){for(var t=1;t0&&t.setNode(a.name,{name:a.name,width:226,height:l,workloadNum:n.length,isGateway:u}),a.workloads=n,a.edges.out.forEach((function(n){var l=e.find((function(e){return e.ids.includes(n.data.target)}));l&&l.name&&(t.setEdge(a.name,l.name,{id:n.data.id,out:a.edges.out,name:a.name,targetName:l.name}),r[n.data.id]=n)}))})),s.default.layout(t);var n=[],l=[];return t.nodes().forEach((function(e){var r=t.node(e);r.workloadNum>1&&(r.y-=110*(r.workloadNum-1)),n.push(d(d({},a[e]),{},{position:r}))})),t.edges().forEach((function(e){var n=t.edge(e),u=t.node(n.name),o=t.node(n.targetName),i=r[n.id],c=n.out.filter((function(e){return e.data.target===i.data.target})),s=n.points.length;if(s>0)if(3===s&&(n.points=[n.points[0],n.points[s-1]],s=n.points.length),u.isGateway)l.push(d(d({},i),{},{position:{points:[{x:u.x+u.width+-20,y:u.y+u.height/2+36},{x:o.x,y:o.y+o.height/2+36}]}}));else{var f=a[n.name].workloads.map((function(e){return e.data.id}));c.forEach((function(e){var t=f.indexOf(e.data.source),a={points:[{x:u.x+u.width,y:u.y+220*(t+.5)+36},{x:o.x,y:o.y+o.height/2+30*(t+1)}]};l.push(d(d({},e),{},{position:a}))}))}})),{nodes:n,edges:l}}(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.nodes,a=void 0===t?[]:t,r=e.edges,n=void 0===r?[]:r,l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if((0,o.default)(a))return[];for(var u=[],c={},s=0;s0)return"tcpActive";var a=0,n=0;return t.rates.http>0?(a=Number(t.rates.http),n=t.rates.httpPercentErr>0?Number(t.rates.httpPercentErr):0):t.rates.grpc>0&&(a=Number(t.rates.grpc),n=t.rates.grpcPercentErr>0?Number(t.rates.grpcPercentErr):0),0===a?"nodata":n>20?"error":n>.1?"degrade":"active"},r.getPath=function(){var e,t=r.props.data;if(t.position.points.length<=2){var a=(0,l.default)(t.position.points,2),n=a[0],u=a[1],o=(n.x+u.x)/2,i=(u.y-n.y)/4;e="M".concat(n.x,",").concat(n.y," C").concat(o,",").concat(n.y+i," ").concat(o,",").concat(u.y-i," ").concat(u.x,",").concat(u.y)}else e=t.position.points.reduce((function(e,t){return""===e?"M".concat(t.x,",").concat(t.y):-1!==e.indexOf("C")?"".concat(e,", ").concat(t.x," ").concat(t.y):"".concat(e," C").concat(t.x," ").concat(t.y)}),"");return e},r.hoverRef=f.default.createRef(),r}return(0,o.default)(a,[{key:"componentDidMount",value:function(){this.hoverRef.current&&(this.hoverRef.current.addEventListener("mouseover",this.handleMouseover),this.hoverRef.current.addEventListener("mouseout",this.handleMouseout))}},{key:"componentWillUnmount",value:function(){this.hoverRef.current&&(this.hoverRef.current.removeEventListener("mouseover",this.handleMouseover),this.hoverRef.current.removeEventListener("mouseout",this.handleMouseout))}},{key:"render",value:function(){var e=this.props,t=e.data,a=e.selected,r=this.getPath(),l=this.getStatus(),u=(0,d.default)(h.default.path,h.default[l],(0,n.default)({},h.default.selected,a)),o=(0,d.default)(h.default.marker,h.default[l]);return f.default.createElement("g",null,f.default.createElement("defs",null,f.default.createElement("marker",{id:"triangle-".concat(l),viewBox:"0 0 10 10",refX:"5",refY:"5",markerWidth:"6",markerHeight:"6",orient:"auto-start-reverse"},f.default.createElement("path",{d:"M 0 0 L 10 5 L 0 10 z",className:o})),f.default.createElement("marker",{id:"dot-".concat(l),viewBox:"0 0 10 10",refX:"5",refY:"5",markerWidth:"5",markerHeight:"5"},f.default.createElement("circle",{cx:"5",cy:"5",r:"5",className:o}))),f.default.createElement("path",{className:u,id:t.data.id,d:r,markerStart:"url(#dot-".concat(l,")"),markerEnd:"url(#triangle-".concat(l,")")}),f.default.createElement("path",{ref:this.hoverRef,d:r,fill:"none",stroke:"transparent",strokeWidth:"30"}),["active","tcpActive"].includes(l)&&f.default.createElement("circle",{r:"6",className:o},f.default.createElement("animateMotion",{dur:"6s",repeatCount:"indefinite"},f.default.createElement("mpath",{xlinkHref:"#".concat(t.data.id)}))),f.default.createElement("text",{width:"500",className:o,transform:"translate(0 -20)"},f.default.createElement("textPath",{xlinkHref:"#".concat(t.data.id),startOffset:"50%",textAnchor:"middle"},this.traffic)))}},{key:"traffic",get:function(){var e=this.props.data,t=(0,p.default)(e,"data.traffic"),a=(0,p.default)(t,"rates.tcp");if(!(0,m.default)(a))return"".concat(a," B/s");var r=(0,p.default)(t,"rates.http",0);return"".concat(r," RPS")}}]),a}(f.default.Component);t.default=g},function(e,t,a){e.exports={path:"f-qkOuFPRte0_-Z7QO_at",error:"C5K1TNQ2EeQCuscsvuVBr",active:"q8TR7qYUjNW5At4k1uzji",tcpActive:"_3s88I6Eoh7DqzdiCvZUuG9",selected:"_3Y5xaV3Vvhnr7rlXGL7l8q",marker:"_3q-X0_f1j8nrDn4cbDKE9b"}},function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(18),r(87),r(16),r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(18),r(87),r(42),r(16),r(4),r(23),r(57),r(17);var l=n(r(30)),u=n(r(36)),o=n(r(37)),i=n(r(55)),c=n(r(56)),s=n(r(51)),f=n(r(0)),d=n(r(1)),p=n(r(26)),m=n(r(321)),h=n(r(855)),v=n(r(3)),g=n(r(4745)),y=n(r(4747));function E(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,s.default)(e);if(t){var n=(0,s.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,c.default)(this,a)}}var b=function(e){(0,i.default)(r,e);var a=E(r);function r(){var e;(0,u.default)(this,r);for(var t=arguments.length,n=new Array(t),l=0;l0,d=(0,p.default)(r,"health.workloadStatuses",[]).reduce((function(e,t){return e+(t.replicas||t.availableReplicas||0)}),0),E=(0,p.default)(r,"health.workloads",{}),b=(0,m.default)((0,p.default)(r,"edges.inner",[]),"data.target");return f.default.createElement("div",{className:"ks-app-component",onClick:s?this.handleClick:null,"data-component":r.name,style:{position:"absolute",top:r.position.y,left:r.position.x,zIndex:2}},s&&f.default.createElement("p",{className:y.default.title},r.name),f.default.createElement("div",{className:(0,v.default)((e={},(0,l.default)(e,y.default.group,s),(0,l.default)(e,y.default.selected,"app"===i&&o.name===r.name),(0,l.default)(e,y.default.error,(0,p.default)(r,"health.requests.errorRatio")>0||(0,p.default)(r,"health.service.requests.errorRatio")>0),e))},s&&f.default.createElement("p",{className:y.default.pods},f.default.createElement("img",{src:"/assets/health.svg",alt:""}),t("PODS"),": ",d),c.service&&c.service.map((function(e){return f.default.createElement("div",{key:e.data.id,"data-service":e.data.service,"data-service-id":e.data.id})})),c.app&&c.app.map((function(e){return f.default.createElement(g.default,{className:y.default.app,key:e.data.id,data:e.data,edge:b[e.data.id],health:E[e.data.workload],inGroup:s,store:n})}))))}}]),r}(f.default.Component);a.default=b,b.propTypes={data:d.default.object},b.contextTypes={selectedData:d.default.object,selectedType:d.default.string,onSelectApp:d.default.func}},function(e,a,r){"use strict";r(15);var n=r(20);r(86),r(190),r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(86),r(42),r(190),r(4),r(23),r(57),r(17);var l=n(r(30)),u=n(r(36)),o=n(r(37)),i=n(r(55)),c=n(r(56)),s=n(r(51)),f=n(r(26)),d=n(r(0)),p=n(r(1)),m=n(r(3)),h=r(186),v=n(r(4746));function g(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,s.default)(e);if(t){var n=(0,s.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,c.default)(this,a)}}var y=function(e){(0,i.default)(r,e);var a=g(r);function r(){return(0,u.default)(this,r),a.apply(this,arguments)}return(0,o.default)(r,[{key:"renderHTTPMetrics",value:function(){var e=this.props,a=e.health,r=e.edge,n=(0,f.default)(a,"requests.errorRatio"),l=(0,f.default)(r,"data.traffic.rates.http",0),u=-1===n?NaN:(100-n).toFixed(2),o=(0,f.default)(r,"data.responseTime",NaN);return d.default.createElement("div",{className:v.default.detail},d.default.createElement("p",null,d.default.createElement(h.Icon,{name:"changing-over",size:16})," ","".concat(l," RPS")),d.default.createElement("p",null,d.default.createElement(h.Icon,{name:"check",size:16})," ",isNaN(u)?t("NO_DATA_SCAP"):"".concat(u,"%")),d.default.createElement("p",null,d.default.createElement(h.Icon,{name:"timed-task",size:16})," ",isNaN(o)||"0"===o?t("NO_DATA_SCAP"):"".concat(o," ms")),d.default.createElement("p",null,d.default.createElement(h.Icon,{name:"pod",size:16})," ",(0,f.default)(a,"workloadStatus.available")||(0,f.default)(a,"workloadStatus.availableReplicas")," ","/"," ",(0,f.default)(a,"workloadStatus.replicas")||(0,f.default)(a,"workloadStatus.desiredReplicas")))}},{key:"renderTCPMetrics",value:function(){var e=this.props,a=e.data,r=e.health,n=(0,f.default)(a,"traffic[0].rates.tcpIn"),l=(0,f.default)(a,"traffic[0].rates.tcpOut");return d.default.createElement("div",{className:v.default.detail},d.default.createElement("p",null,d.default.createElement(h.Icon,{name:"next",size:16})," ",isNaN(n)?t("NO_DATA_SCAP"):"".concat(n," B/s")),d.default.createElement("p",null,d.default.createElement(h.Icon,{name:"previous",size:16})," ",isNaN(l)?t("NO_DATA_SCAP"):"".concat(l," B/s")),d.default.createElement("p",null,d.default.createElement(h.Icon,{name:"pod",size:16})," ",(0,f.default)(r,"workloadStatus.availableReplicas")," /"," ",(0,f.default)(r,"workloadStatus.desiredReplicas")))}},{key:"renderDetail",value:function(){var e=this.props.edge;return"http"===((0,f.default)(e,"data.traffic.protocol")||"http")?this.renderHTTPMetrics():this.renderTCPMetrics()}},{key:"render",value:function(){var e=this.props,a=e.data,r=e.health,n=e.className,u=e.inGroup;if(-1!==a.app.indexOf("kubesphere")||"unknown"===a.app)return d.default.createElement("div",{className:(0,m.default)(v.default.card,n),"data-workload":a.workload,"data-workload-id":a.id,"data-group":u},d.default.createElement("div",{className:v.default.type},t("TRAFFIC_ENTRY")),d.default.createElement("div",{className:v.default.wrapper},d.default.createElement("div",{className:v.default.gatewayName},d.default.createElement(h.Icon,{name:"project",size:16}),a.targetNamespace)));var o=(0,f.default)(r,"requests.errorRatio");return d.default.createElement("div",{className:(0,m.default)(v.default.card,n,(0,l.default)({},v.default.error,o>0)),"data-workload":a.workload,"data-workload-id":a.id,"data-group":u},d.default.createElement("div",{className:v.default.type},a.hasCB&&d.default.createElement(h.Icon,{name:"thunder",type:"light"}),t("DEPLOYMENT")),d.default.createElement("div",{className:v.default.wrapper},this.renderDetail(),d.default.createElement("div",{className:v.default.workload},d.default.createElement("span",null,t("DEPLOYMENT")),d.default.createElement("span",null,a.workload))))}}]),r}(d.default.PureComponent);a.default=y,y.propTypes={data:p.default.object,health:p.default.object,edge:p.default.object},y.defaultProps={data:{},health:{},edge:{}}},function(e,t,a){e.exports={card:"_3UtyX1TwsMA4J5_I9azhk4",error:"_1f5z3cAVlVjSxozltEiLWa",type:"_3ig_hBH8qoAHkvUzs_7XPE",wrapper:"_2-NCjQfg1O19iTRk90LKv",detail:"_3Rb35sVDvzSTfvK_EvU8E6",gatewayName:"-s8vbKJS6TAxA3e75lQyx",workload:"_3hKVcpsaMemXWCdKAFDatc"}},function(e,t,a){e.exports={title:"vt11zKMrFCOLash0CtDuq",app:"_2VIFmapZqEet3i4h8IcfoT",group:"GBv7IxeMCUzEwP37i9ruG",selected:"_3hAJJY6cz3ePuX_85HtNfJ",error:"_3cHhj9ZjDA2V1eTNhECHpo",pods:"_2g9MF0hWsSUsXH7jreOBwD"}},function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(31),r(16),r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(31),r(42),r(16),r(4),r(23),r(57),r(17);var l=n(r(30)),u=n(r(36)),o=n(r(37)),i=n(r(55)),c=n(r(56)),s=n(r(51)),f=n(r(26)),d=n(r(0)),p=n(r(1)),m=n(r(3)),h=r(186),v=n(r(4749)),g=n(r(4754)),y=n(r(4758)),E=n(r(4760));function b(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,s.default)(e);if(t){var n=(0,s.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,c.default)(this,a)}}var _=h.Collapse.CollapseItem,O=function(e){(0,i.default)(r,e);var a=b(r);function r(){var e;(0,u.default)(this,r);for(var t=arguments.length,n=new Array(t),l=0;l0?100*(t-a)/t:NaN,n=(0,v.getMetricData)((0,f.default)(e,"request_duration_millis[0].datapoints",[]),NaN);return[{title:"TRAFFIC",data:t.toFixed(2),unit:"RPS",icon:"changing-over"},{title:"SUCCESS_RATE",data:r.toFixed(2),icon:"check",unit:"%"},{title:"DURATION",data:n.toFixed(2),icon:"timed-task",unit:"ms"}]}}]),r}(d.default.Component);a.default=_,_.propTypes={detail:p.default.object,store:p.default.object}},function(e,a,r){"use strict";r(15);var n=r(20);r(18),r(190),r(4),r(23),r(17),r(110),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(18),r(42),r(190),r(4),r(22),r(23),r(57),r(17),r(110);var l=n(r(315)),u=n(r(43));r(41);var o=n(r(44)),i=n(r(36)),c=n(r(37)),s=n(r(55)),f=n(r(56)),d=n(r(51)),p=n(r(26)),m=n(r(0)),h=n(r(1)),v=n(r(837)),g=r(794),y=r(474),E=r(798),b=n(r(1913)),_=n(r(4752)),O=n(r(1450));function S(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,d.default)(e);if(t){var n=(0,d.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,f.default)(this,a)}}var C=function(e){(0,s.default)(n,e);var a,r=S(n);function n(e){var t;return(0,i.default)(this,n),(t=r.call(this,e)).handleWorkloadChange=function(e){t.setState({workload:e},(function(){return t.getData()}))},t.state={workload:(0,p.default)(e.detail,"workloads[0].data.workload"),metrics:{},outMetrics:{}},t.getData(),t}return(0,c.default)(n,[{key:"componentDidUpdate",value:function(e){var t=this;(0,v.default)(e.detail,this.props.detail)||this.setState({workload:(0,p.default)(this.props.detail,"workloads[0].data.workload")},(function(){t.getData()}))}},{key:"componentDidMount",value:function(){var e=this;this.interval=setInterval((function(){e.getData()}),1e4)}},{key:"componentWillUnmount",value:function(){this.interval&&clearInterval(this.interval)}},{key:"getData",value:(a=(0,o.default)(u.default.mark((function e(){var t,a,r=this;return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=this.state.workload,a=this.props.store,t&&(this.store.fetchWorkloadMetrics({name:t,namespace:a.detail.namespace,cluster:a.detail.cluster},{duration:1800}).then((function(e){r.setState({metrics:e})})),this.store.fetchWorkloadMetrics({name:t,namespace:a.detail.namespace,cluster:a.detail.cluster},{duration:1800,direction:"outbound",reporter:"destination"}).then((function(e){r.setState({outMetrics:e})})));case 3:case"end":return e.stop()}}),e,this)}))),function(){return a.apply(this,arguments)})},{key:"renderWorkloadSelect",value:function(){return m.default.createElement(_.default,{className:O.default.workloads,value:this.state.workload,options:this.workloads,onChange:this.handleWorkloadChange})}},{key:"render",value:function(){return"tcp"===this.props.protocol?m.default.createElement(m.default.Fragment,null,m.default.createElement("div",{className:O.default.title},t("TCP_INBOUND_TRAFFIC")," ",this.renderWorkloadSelect()),m.default.createElement(E.SimpleArea,(0,l.default)({},this.tcpInMetrics,{height:150})),m.default.createElement("div",{className:O.default.title},t("TCP_OUTBOUND_TRAFFIC")," ",this.renderWorkloadSelect()),m.default.createElement(E.SimpleArea,(0,l.default)({},this.tcpOutMetrics,{height:150}))):m.default.createElement(m.default.Fragment,null,m.default.createElement("div",{className:O.default.title},t("HTTP_INBOUND_TRAFFIC")," ",this.renderWorkloadSelect()),m.default.createElement(b.default,{metrics:this.trafficInMetrics}),m.default.createElement("div",{className:"margin-b8"}),m.default.createElement(E.SimpleArea,(0,l.default)({},this.requestInMetrics,{height:150})),m.default.createElement("div",{className:O.default.title},t("HTTP_OUTBOUND_TRAFFIC")," ",this.renderWorkloadSelect()),m.default.createElement(b.default,{metrics:this.trafficOutMetrics}),m.default.createElement("div",{className:"margin-b8"}),m.default.createElement(E.SimpleArea,(0,l.default)({},this.requestOutMetrics,{height:150})))}},{key:"store",get:function(){return this.props.store}},{key:"workloads",get:function(){return(0,p.default)(this.props.detail,"workloads",[]).map((function(e){return{label:(0,p.default)(e,"data.workload",""),value:(0,p.default)(e,"data.workload","")}}))}},{key:"requestInMetrics",get:function(){if(!this.props.detail)return[];var e=this.state.metrics,t=(0,p.default)(e,"request_count[0].datapoints",[]),a=(0,p.default)(e,"request_error_count[0].datapoints",[]),r=t.map((function(e,t){return(0,y.getSuccessCount)(e,a[t])}));return(0,g.getAreaChartOps)({title:"TRAFFIC",legend:["SUCCESSFUL","ALL"],areaColors:["#329dce","#d8dee5"],data:[{values:r},{values:t}],unit:"RPS"})}},{key:"requestOutMetrics",get:function(){if(!this.props.detail)return[];var e=this.state.outMetrics,t=(0,p.default)(e,"request_count[0].datapoints",[]),a=(0,p.default)(e,"request_error_count[0].datapoints",[]),r=t.map((function(e,t){return(0,y.getSuccessCount)(e,a[t])}));return(0,g.getAreaChartOps)({title:"TRAFFIC",legend:["SUCCESSFUL","ALL"],areaColors:["#329dce","#d8dee5"],data:[{values:r},{values:t}],unit:"RPS"})}},{key:"tcpInMetrics",get:function(){if(!this.props.detail)return[];var e=this.state.metrics,t=(0,p.default)(e,"tcp_received[0].datapoints",[]),a=(0,p.default)(e,"tcp_sent[0].datapoints",[]);return 0===t.length&&0===a.length?{}:(0,g.getAreaChartOps)({title:"BANDWIDTH",legend:["SENT","RECEIVED"],data:[{values:a},{values:t}],unit:"B/s"})}},{key:"tcpOutMetrics",get:function(){if(!this.props.detail)return{};var e=this.state.outMetrics,t=(0,p.default)(e,"metrics.tcp_received.matrix[0].values",[]),a=(0,p.default)(e,"tcp_sent[0].datapoints",[]);return 0===t.length&&0===a.length?{}:(0,g.getAreaChartOps)({title:"BANDWIDTH",legend:["SENT","RECEIVED"],data:[{values:a},{values:t}],unit:"B/s"})}},{key:"trafficInMetrics",get:function(){if(!this.props.detail)return[];var e=this.state.metrics,t=(0,y.getMetricData)((0,p.default)(e,"request_count[0].datapoints",[]),NaN),a=(0,y.getMetricData)((0,p.default)(e,"request_error_count[0].datapoints",[]),0),r=t>0?100*(t-a)/t:NaN,n=(0,y.getMetricData)((0,p.default)(e,"request_duration_millis[0].datapoints",[]),NaN);return[{title:"TRAFFIC",data:t.toFixed(2),unit:"RPS",icon:"changing-over"},{title:"SUCCESS_RATE",desc:"SUCCESS_RATE_SCAP",data:r.toFixed(2),icon:"check",unit:"%"},{title:"DURATION",data:n.toFixed(2),icon:"timed-task",unit:"ms"}]}},{key:"trafficOutMetrics",get:function(){if(!this.props.detail)return[];var e=this.state.outMetrics,t=(0,y.getMetricData)((0,p.default)(e,"request_count[0].datapoints",[]),NaN),a=(0,y.getMetricData)((0,p.default)(e,"request_error_count[0].datapoints",[]),0),r=t>0?100*(t-a)/t:NaN,n=(0,y.getMetricData)((0,p.default)(e,"request_duration_millis[0].datapoints",[]),NaN);return[{title:"TRAFFIC",data:t.toFixed(2),unit:"RPS",icon:"changing-over"},{title:"SUCCESS_RATE",desc:"SUCCESS_RATE_SCAP",data:r.toFixed(2),icon:"check",unit:"%"},{title:"DURATION",data:n.toFixed(2),icon:"timed-task",unit:"ms"}]}}]),n}(m.default.Component);a.default=C,C.propTypes={detail:h.default.object,store:h.default.object}},function(e,t,a){"use strict";a(15);var r=a(157),n=a(20);a(5),a(18),a(4),a(23),a(17),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(45),a(5),a(18),a(42),a(4),a(23),a(57),a(17);var l=n(a(36)),u=n(a(37)),o=n(a(55)),i=n(a(56)),c=n(a(51)),s=r(a(0)),f=n(a(3)),d=a(186),p=n(a(4753));function m(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,c.default)(e);if(t){var n=(0,c.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,i.default)(this,a)}}var h=function(e){(0,o.default)(a,e);var t=m(a);function a(){var e;(0,l.default)(this,a);for(var r=arguments.length,n=new Array(r),u=0;u1?r[l[0]]=l[1]:t=!1}return{result:r,status:t}}(a),n=r.result;r.status&&t.triggerChange((0,u.default)({},e,n))}else t.triggerChange((0,u.default)({},e,a))}))};var n=t.getOptions(),i=Object.keys(e.value)[0]||n[0].value,c=e.value[i];return"httpCookie"===i&&c&&(c=Object.entries(c).map((function(e){var t=(0,l.default)(e,2),a=t[0],r=t[1];return"".concat(a,"=").concat(r)})).join("; ")),t.state={type:i,value:c,propsValue:e.value},t}return(0,i.default)(r,[{key:"getOptions",value:function(){var e=this.props.protocol,a=[{label:t("HASH_BASED_ON_SOURCE_IP_ADDRESS"),value:"useSourceIp"},{label:t("HASH_BASED_ON_RINGHASH"),value:"ringHash"},{label:t("HASH_BASED_ON_MAGLEV"),value:"maglev"}];if("http"===e)return[{label:t("HASH_BASED_ON_HTTP_HEADER"),value:"httpHeaderName"},{label:t("HASH_BASED_ON_HTTP_COOKIE"),value:"httpCookie"},{label:t("HASH_BASED_ON_HTTP_QUERY_PARAMETE_NAME"),value:"httpQueryParameterName"}].concat(a)}},{key:"render",value:function(){var e=this.state,a=e.type,r=e.value;return p.default.createElement("div",null,p.default.createElement(h.Select,{value:a,options:this.getOptions(),onChange:this.handleTypeChange}),"httpHeaderName"===a&&p.default.createElement(p.default.Fragment,null,p.default.createElement("div",{className:"margin-t12"},t("HTTP_HEADER")),p.default.createElement(h.Input,{value:r,onChange:this.handleValueChange})),"httpCookie"===a&&p.default.createElement(p.default.Fragment,null,p.default.createElement("div",{className:"margin-t12"},t("HTTP_COOKIE")),p.default.createElement(h.Input,{value:r,onChange:this.handleValueChange,placeholder:"key1=value1; key2=value2"})))}}],[{key:"getDerivedStateFromProps",value:function(e,t){if(e.value!==t.propsValue){var a=Object.keys(e.value)[0],r=e.value[a];return"httpCookie"===a&&r&&(r=Object.entries(r).map((function(e){var t=(0,l.default)(e,2),a=t[0],r=t[1];return"".concat(a,"=").concat(r)})).join("; ")),{type:a,value:r,propsValue:e.value}}return null}}]),r}(p.default.Component);a.default=g,g.propTypes={value:m.default.object,onChange:m.default.func},g.defaultProps={value:{},onChange:function(){}}},function(e,t,a){e.exports={alert:"_1vmq3lFL4s_LHc4G92GrAd",title:"UJTgRS_diNzcvnFtP8moj",tip:"IYAZYjWhc7hDQqpGq-eJy"}},function(e,a,r){"use strict";var n=r(20);r(12),r(5),r(11),r(6),r(29),r(73),r(18),r(16),r(9),r(13),r(10),r(4),r(22),r(23),r(24),r(17),r(38),r(62),r(7),r(32),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(45),r(5),r(11),r(6),r(29),r(73),r(18),r(28),r(42),r(16),r(34),r(15),r(9),r(13),r(10),r(4),r(22),r(23),r(57),r(24),r(17),r(38),r(62),r(7),r(32);var l=n(r(43)),u=n(r(30));r(41);var o,i=n(r(44)),c=n(r(36)),s=n(r(37)),f=n(r(55)),d=n(r(56)),p=n(r(51)),m=n(r(0)),h=r(47),v=r(433),g=n(r(26)),y=r(14),E=r(186),b=n(r(837)),_=r(52),O=n(r(452)),S=n(r(318)),C=n(r(4759)),D=n(r(1914));function k(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function N(e){for(var t=1;t0&&f.default.createElement("div",{className:g.default.errorSpans},1===S?t("NUM_ERROR_SI",{num:S}):t("NUM_ERROR_PL",{num:S}))),f.default.createElement("ul",{className:g.default.services},(0,s.default)(u,"name").map((function(e){return f.default.createElement("li",{key:e.name},f.default.createElement("span",{className:g.default.tag,style:{backgroundColor:d[e.name]}}),"".concat(e.name," (").concat(e.numberOfSpans,")"))}))),f.default.createElement("div",{className:g.default.startTime},f.default.createElement("p",null,(0,h.formatRelativeDate)(o/1e3),"  |  ",f.default.createElement("strong",null,b)),f.default.createElement("p",null,_))))}}]),r}(f.default.Component);a.default=b,b.propTypes={className:d.default.string,onClick:d.default.func,detail:d.default.object,durationPercent:d.default.number},b.defaultProps={onClick:function(){},durationPercent:0,detail:{}}},function(e,t,a){"use strict";a(15);var r=a(20);a(5),a(16),a(190),a(4),a(23),a(17),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(a(30)),l=r(a(36)),u=r(a(37)),o=r(a(55)),i=r(a(56)),c=r(a(51));a(45),a(5),a(42),a(16),a(190),a(4),a(23),a(57),a(17);var s=r(a(0)),f=r(a(3)),d=a(186),p=a(1021),m=r(a(4768));function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,c.default)(e);if(t){var n=(0,c.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,i.default)(this,a)}}function v(e){return"".concat((100*e).toFixed(1),"%")}var g=function(e){(0,o.default)(a,e);var t=h(a);function a(){var e;(0,l.default)(this,a);for(var r=arguments.length,n=new Array(r),u=0;u1-c.end?"Left":"Right",s.default.createElement("li",{className:(0,f.default)(m.default.wrapper,(0,n.default)({},m.default.selected,u)),onClick:this.handleClick},s.default.createElement(d.Columns,{className:"is-gapless"},s.default.createElement(d.Column,{className:"is-3"},s.default.createElement("div",{className:m.default.nameWrapper},s.default.createElement("span",{className:m.default.padder,style:{paddingLeft:12*(a.depth+1)}}),s.default.createElement("a",{className:m.default.name,style:{borderColor:r}},s.default.createElement("span",{className:m.default.svc},o&&s.default.createElement(d.Icon,{name:"error",color:{primary:"#fff",secondary:"#ea4641"}}),a.process.serviceName," "),s.default.createElement("span",{className:m.default.endpoint},a.operationName)))),s.default.createElement(d.Column,{className:"margin-l12 margin-r12"},s.default.createElement("div",{className:m.default.barWrapper},s.default.createElement("div",{className:m.default.bar,style:{backgroundColor:r,left:v(c.start),width:v(c.end-c.start)}},s.default.createElement("div",{className:(0,f.default)(m.default.barLabel,m.default["barLabel".concat(e)])},i))))))}}]),a}(s.default.Component);t.default=g},function(e,t,a){e.exports={wrapper:"_3FpC5ye7GyQiA_9XNgx040",selected:"_11AetUGUuNRQbhOiVaaPrQ",nameWrapper:"cWTG60H4pfEzvUaUIBzkJ",name:"vjWzJJl5QXyvJrZh0yxG1",svc:"_1-OgJnOWAnoA9-4y_V7v6",endpoint:"_6EPxZpgSu0q2JNsNKM8dH",padder:"XpivfNFuNAu6Z00f5sn1b",barWrapper:"_2jIAbOYlOMtqtmQQ44uZ1a",bar:"_1kkSL2CR5ItZrLhBYy8cx4",barLabel:"_2jh31S8ET1p5RAOzk3mU13",barLabelLeft:"_32_b1BUKqADygs-iprfczz",barLabelRight:"_3V0eVtgfe3fOMxrkhggaoC"}},function(e,a,r){"use strict";r(15);var n=r(20);r(18),r(16),r(4),r(23),r(24),r(17),r(136),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var l=n(r(36)),u=n(r(37)),o=n(r(55)),i=n(r(56)),c=n(r(51));r(45),r(18),r(191),r(42),r(16),r(159),r(4),r(23),r(57),r(17);var s=n(r(63)),f=n(r(0)),d=r(186),p=n(r(1045)),m=r(1021),h=n(r(4770));function v(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,c.default)(e);if(t){var n=(0,c.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,i.default)(this,a)}}var g=function(e,t){switch(e){case"bool":return String(t);case"string":case"number":return t;default:return JSON.stringify(t)}},y=function(e){var t=e.data;return f.default.createElement("ul",{className:h.default.properties},t.map((function(e){return f.default.createElement("li",{key:e.key},f.default.createElement("span",null,e.key,": "),f.default.createElement("span",null,g(e.type,e.value)))})))},E=function(e){var t=e.data,a=e.startTime;return f.default.createElement("div",null,t.map((function(e){var t=(0,m.formatDuration)(e.timestamp-a);return f.default.createElement("div",{key:e.timestamp,classNames:h.default.log},f.default.createElement("span",null,t),e.fields.map((function(e){return f.default.createElement("span",{className:"margin-l12",key:e.key},f.default.createElement("span",null,e.key,"= "),f.default.createElement("span",null,f.default.createElement("strong",null," ",g(e.type,e.value))))})))})))},b=function(e){(0,o.default)(r,e);var a=v(r);function r(e){var t;return(0,l.default)(this,r),(t=a.call(this,e)).handleTypeChange=function(e){t.setState({type:e})},t.renderContentBody=function(){var e=t.props.span;switch(t.state.type){case"tags":return f.default.createElement(y,{data:e.tags});case"process":return f.default.createElement(y,{data:e.process.tags});case"logs":return f.default.createElement(E,{data:e.logs,startTime:e.startTime-e.relativeStartTime})}return null},t.state={type:"tags"},t}return(0,u.default)(r,[{key:"componentDidUpdate",value:function(e){this.props.span!==e.span&&this.setState({type:"tags"})}},{key:"render",value:function(){var e=this.props,a=e.span,r=e.onClose,n=this.state.type,l=(0,m.formatDuration)(a.relativeStartTime),u=(0,m.formatDuration)(a.duration),o=a.process.serviceName.split(".")[0];return f.default.createElement("div",{className:h.default.wrapper},f.default.createElement("div",{className:h.default.header},f.default.createElement(d.Icon,{name:"target",size:40}),f.default.createElement("div",{className:h.default.text},f.default.createElement("div",{className:h.default.name},a.process.serviceName,f.default.createElement(p.default,{name:t("SERVICE"),value:o}),f.default.createElement(p.default,{name:t("START_TIME"),value:l}),f.default.createElement(p.default,{name:t("DURATION"),value:u})),f.default.createElement("p",null,a.operationName)),f.default.createElement("div",{className:h.default.close,onClick:r},f.default.createElement(d.Icon,{name:"minimize",size:20}))),f.default.createElement("div",{className:h.default.content},f.default.createElement("div",{className:h.default.contentHeader},f.default.createElement(d.RadioGroup,{mode:"button",buttonWidth:155,value:n,onChange:this.handleTypeChange,size:"small"},f.default.createElement(d.RadioButton,{value:"tags"},t("TAG")),f.default.createElement(d.RadioButton,{value:"process"},t("PROCESS")),!(0,s.default)(a.logs)&&f.default.createElement(d.RadioButton,{value:"logs"},t("LOG")))),f.default.createElement("div",{className:h.default.contentBody},this.renderContentBody())))}}]),r}(f.default.Component);a.default=b},function(e,t,a){e.exports={wrapper:"_2SrTH5oLaYBNtgxSsaIe1_",header:"_14VaoFxYI4xrb8vE4XX7q_",text:"_1iF8T6gN1lf2KdP5iGWCtN",name:"afCuDDLbVrc6EwA9B7J42",content:"iQqWGMwUNDUNhZckjqUKb",contentHeader:"I7j76faUqwX3zA4eEVJQG",contentBody:"_3soUTBQ4emfUy3qasSxMm1",properties:"_33lp7a1-5ZP0KxxrDJPaa-",close:"PLv31nTie7tGWOvDkQJv1",log:"Wzdc9MCTDUaK_p6l27wct"}},function(e,t,a){"use strict";a(15);var r=a(20);a(4),a(23),a(17),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(45),a(42),a(4),a(23),a(57),a(17);var n=r(a(36)),l=r(a(37)),u=r(a(55)),o=r(a(56)),i=r(a(51)),c=r(a(0)),s=r(a(63)),f=r(a(4772)),d=r(a(4773)),p=r(a(1918));function m(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,i.default)(e);if(t){var n=(0,i.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,o.default)(this,a)}}var h=function(e){(0,u.default)(a,e);var t=m(a);function a(){return(0,n.default)(this,a),t.apply(this,arguments)}return(0,l.default)(a,[{key:"render",value:function(){var e=this.props,t=e.data,a=e.viewRange,r=e.onRangeChange;return(0,s.default)(t)?null:c.default.createElement("div",{className:p.default.graph},c.default.createElement(f.default,{data:t}),c.default.createElement(d.default,{data:t,viewRange:a,onRangeChange:r}))}}]),a}(c.default.Component);t.default=h},function(e,t,a){"use strict";a(15);var r=a(20);a(18),a(4),a(23),a(17),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(45),a(18),a(42),a(4),a(23),a(57),a(17);var n=r(a(36)),l=r(a(37)),u=r(a(55)),o=r(a(56)),i=r(a(51)),c=r(a(0)),s=a(1021);function f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,i.default)(e);if(t){var n=(0,i.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,o.default)(this,a)}}var d=function(e){(0,u.default)(a,e);var t=f(a);function a(e){var r;return(0,n.default)(this,a),(r=t.call(this,e)).getColor=function(e){return r.props.data.serviceColorMap[e]},r.canvas=c.default.createRef(),r}return(0,l.default)(a,[{key:"componentDidMount",value:function(){this.drawCanvas()}},{key:"drawCanvas",value:function(){if(this.canvas&&this.canvas.current){var e=this.props.data,t=e.spans.map((function(e){return{valueOffset:e.relativeStartTime,valueWidth:e.duration,serviceName:e.process.serviceName}}));(0,s.renderIntoCanvas)(this.canvas.current,t,e.duration,this.getColor)}}},{key:"render",value:function(){return c.default.createElement("canvas",{ref:this.canvas})}}]),a}(c.default.Component);t.default=d},function(e,a,r){"use strict";r(15);var n=r(20);r(18),r(190),r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(18),r(28),r(42),r(190),r(4),r(23),r(57),r(17);var l=n(r(36)),u=n(r(37)),o=n(r(55)),i=n(r(56)),c=n(r(51)),s=n(r(0)),f=r(1021),d=n(r(1918));function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,c.default)(e);if(t){var n=(0,c.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,i.default)(this,a)}}var m=function(e){(0,o.default)(r,e);var a=p(r);function r(e){var t;return(0,l.default)(this,r),(t=a.call(this,e)).handleMouseDown=function(e){t.originX=e.x,t.hideCursorGuide();var a=t.svgBound,r=a.left,n=a.width,l=Math.max(e.x-r,0)/n;t.setState({viewStart:l,viewEnd:l})},t.handleMouseUp=function(){t.originX=-1;var e=t.state,a=e.viewStart,r=e.viewEnd;Math.abs(a-r)>.01&&t.props.onRangeChange({viewStart:a,viewEnd:r})},t.handleMouseLeave=function(){t.hideCursorGuide()},t.handleMouseMove=function(e){if(t.originX>-1){var a=t.svgBound,r=a.left,n=a.width,l=Math.max(e.x-r,0)/n;l>t.state.viewStart?t.setState({viewEnd:l}):t.setState({viewStart:l})}else t.showCursorGuide(e)},t.handleClear=function(){t.props.onRangeChange({viewStart:0,viewEnd:1})},t.showCursorGuide=function(e){if(t.cursorGuide)for(var a=t.svgBound,r=a.left,n=a.width,l=Math.max(e.x-r,0)/n,u="".concat(100*l,"%"),o=0;o0&&r<1,l="".concat(100*a,"%"),u="".concat(100*r,"%"),o=this.getCoords();return s.default.createElement("div",{className:d.default.range},s.default.createElement("svg",{height:"100%",width:"100%",ref:this.svg},s.default.createElement("g",{className:d.default.coord},o.map((function(e,t){return s.default.createElement("g",{key:e.value,className:d.default.coordLine},s.default.createElement("line",{y1:"0%",y2:"100%",x1:e.percent,x2:e.percent}),s.default.createElement("text",{x:e.percent,y:12,transform:t===f.COORD_COUNT?"translate(-2,0)":"translate(2,0)",textAnchor:t===f.COORD_COUNT?"end":"start"},(0,f.formatDuration)(e.value)))}))),s.default.createElement("g",{className:d.default.cursorGuide,name:"cursor-guide"},s.default.createElement("line",{y1:0,y2:58,strokeWidth:"1",stroke:"#212b36",strokeOpacity:"0",strokeDasharray:"2,2"}),s.default.createElement("line",{y1:19,y2:41,stroke:"#242e42",strokeWidth:"4",strokeOpacity:"0",strokeLinecap:"round"}),s.default.createElement("line",{y1:0,y2:58,strokeWidth:"20",stroke:"transparent"})),n&&s.default.createElement("g",{className:d.default.scrubber},s.default.createElement("line",{className:d.default.scrubberLine,y1:"0%",y2:"100%",x1:l,x2:l}),s.default.createElement("line",{className:d.default.scrubberLine,y1:"0%",y2:"100%",x1:u,x2:u}))),n&&s.default.createElement(s.default.Fragment,null,s.default.createElement("div",{className:d.default.hoverBlock,style:{left:0,width:l}}),s.default.createElement("div",{className:d.default.hoverBlock,style:{left:u,width:"".concat(100*(1-r),"%")}}),s.default.createElement("div",{className:d.default.clearBlock,onClick:this.handleClear},t("CLEAR"))))}}]),r}(s.default.Component);a.default=m},function(e,t,a){e.exports={body:"_1pPFSIIbH7oLnLwkgHOLB5",header:"_2DMYdLCQ-OBk0rFii_9W5O",title:"_1Erbw_1JjBawD0kM-G52ln",name:"_3ugl6RaS7fK6PUFj7hPqwZ",close:"_2i5KJmq9o9HmC3fp0B5rPv",content:"_1lhG8ZLZp0syy6MTsAqY-_",wrapper:"_3n2YybElrtxWe2nOf7ZQUa",timelineTitle:"_3kkKn_rpepfTAFlapQ4YVK",leftPane:"pfziZWcqAxnmD-tb1Ip10",rightPane:"_36cdSAMcGZ9FJ-_068PDV_",timelineSelect:"_2mJV8zFMq6n5D4t-maCCmh",listPane:"GgsvlcpZCQVcsOdH3tQ6J",detailPane:"_4xyXvcotLTz6jMyjqWGbV",coords:"_20avL2qiM0J57r-UIzor8v"}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,a){"use strict";a(15);var r=a(20);a(11),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(11),a(28),a(4);var n=a(317),l=r(a(5249)),u=r(a(5251)),o=r(a(5258)),i="/clusters/:cluster/ippools/:name";t.default=function(e){var t=[{path:"".concat(i,"/workspaces"),title:"WORKSPACE_PL",component:l.default,exact:!0},{path:"".concat(i,"/namespaces"),title:"NAMESPACE_PL",component:u.default,exact:!0},{path:"".concat(i,"/pods"),title:"POD_PL",component:o.default,exact:!0}];return e?(t=t.filter((function(e){return"WORKSPACE_PL"!==e.title}))).push((0,n.getIndexRoute)({path:i,to:"".concat(i,"/namespaces"),exact:!0})):(t=t.filter((function(e){return"NAMESPACE_PL"!==e.title}))).push((0,n.getIndexRoute)({path:i,to:"".concat(i,"/workspaces"),exact:!0})),t}},function(e,a,r){"use strict";var n=r(20);r(12),r(109),r(5),r(11),r(6),r(73),r(18),r(87),r(16),r(9),r(13),r(10),r(4),r(23),r(17),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(109),r(45),r(5),r(11),r(6),r(73),r(18),r(28),r(87),r(42),r(16),r(34),r(15),r(9),r(13),r(10),r(4),r(23),r(57),r(17),r(7);var l,u,o=n(r(30)),i=n(r(36)),c=n(r(37)),s=n(r(55)),f=n(r(56)),d=n(r(51)),p=n(r(49)),m=n(r(789)),h=n(r(790)),v=n(r(26)),g=n(r(63)),y=r(14),E=r(239),b=n(r(0)),_=n(r(445)),O=r(52),S=n(r(5250));function C(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function D(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},a=e.props.cluster;return t.name&&(t.nameAndAlias=t.name,delete t.name),e.projectStore.fetchList(S(S({cluster:a},t),{},{limit:-1}))},e.handleOk=function(){var t=e.props.onOk,a=e.state.namespace,r=e.projectStore.list.data.find((function(e){return e.name===a}));t&&(null==t||t(r))},e.projectStore=new g.default,e.state={namespace:""},e}return(0,s.default)(r,[{key:"componentDidMount",value:function(){this.fetchProjects()}},{key:"getProjects",value:function(){var e=this.props.defaultValue,t=this.projectStore.list.data,a=t.filter((function(e){return"Terminating"!==e.status})).map((function(e){return{label:(0,E.showNameAndAlias)(e),value:e.name,disabled:e.isFedManaged,isFedManaged:e.isFedManaged}}));return e&&!t.find((function(t){return t.name===e}))&&a.unshift({label:e,value:e}),a}},{key:"render",value:function(){var e=this.props.onCancel,a=this.state.namespace;return m.default.createElement("div",{className:(0,h.default)(_.default.item)},m.default.createElement(v.Select,{options:this.getProjects(),isLoading:this.projectStore.list.isLoading,onChange:this.handleChange,defaultValue:a}),m.default.createElement("div",{className:_.default.operate},m.default.createElement(v.Button,{type:"control",onClick:this.handleOk},t("OK")),m.default.createElement(v.Button,{onClick:e},t("CANCEL"))))}}]),r}(m.default.Component),u.propTypes={onOk:y.default.func,onCancel:y.default.func},l=o))||l;a.default=D},function(e,t,a){e.exports={item:"_2VZojJMCcr5LCPjcy6xuXj",operate:"_2BjQJV11IdoAn6d-n9zWbC"}},function(e,t,a){e.exports={panel:"myyMir8aQeW7zvNdoD_ye",titleWrapper:"_12YJqhh4laJo2pSemgH7Bo",title:"_1LHpDb3CKBk2875n2BK-NW"}},function(e,t,a){"use strict";a(15);var r=a(20);a(5),a(4),a(23),a(24),a(17),a(62),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(45),a(5),a(42),a(4),a(23),a(57),a(24),a(17),a(62);var n,l=r(a(36)),u=r(a(37)),o=r(a(55)),i=r(a(56)),c=r(a(51)),s=r(a(0)),f=a(239),d=r(a(849));function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,c.default)(e);if(t){var n=(0,c.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,i.default)(this,a)}}var m=(0,f.inject)("detailStore")(n=(0,f.observer)(n=function(e){(0,o.default)(a,e);var t=p(a);function a(){var e;(0,l.default)(this,a);for(var r=arguments.length,n=new Array(r),u=0;u1&&void 0!==arguments[1]?arguments[1]:{},a=(0,l.default)(this,"props.rootStore")||this.rootStore;a&&a.triggerAction(e,o({store:this.store},t))},e}},function(e,t,a){"use strict";a(15);var r=a(157),n=a(20);a(12),a(109),a(5),a(11),a(84),a(73),a(18),a(4),a(23),a(24),a(17),a(85),a(136),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(12),a(109),a(45),a(5),a(11),a(84),a(73),a(18),a(42),a(4),a(23),a(57),a(17),a(85);var l=n(a(315)),u=n(a(61)),o=n(a(36)),i=n(a(37)),c=n(a(55)),s=n(a(56)),f=n(a(51)),d=n(a(0)),p=r(a(1)),m=n(a(63)),h=n(a(194)),v=a(186),g=n(a(3)),y=a(72),E=n(a(3064)),b=n(a(3065)),_=n(a(3066)),O=n(a(1196));function S(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,f.default)(e);if(t){var n=(0,f.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,s.default)(this,a)}}var C=function(e){(0,c.default)(a,e);var t=S(a);function a(){var e;(0,o.default)(this,a);for(var r=arguments.length,n=new Array(r),l=0;l0&&void 0!==i[0]?i[0]:{},r=t.silent,n=(0,c.default)(t,["silent"]),a.query=n,l={},a.props.clusterStore&&(l.namespace=a.props.clusterStore.project),r&&(a.list.silent=!0),u=N(N(N({},l),a.props.match.params),n),a.searchByApp&&(u.searchByApp=a.searchByApp),e.next=9,a.store.fetchList(u);case 9:a.list.silent=!1;case 10:case"end":return e.stop()}}),e)}))),a.getSortOrder=function(e){return a.list.order===e&&(a.list.reverse?"descend":"ascend")},a.getFilteredValue=function(e){return a.list.filters[e]},a.store=e.store||t.store||{},a.list=a.store.list||{},a.module=e.module||"",a.authKey=e.authKey||e.module,a.name=e.name||"",a.title="".concat(e.name,"_PL"),a.rowKey=e.rowKey||"name",a.query={},a.skipAuth=e.skipAuth,a}return(0,d.default)(l,[{key:"getTableProps",value:function(){var e=this.list,t=e.data,a=e.filters,r=void 0===a?{}:a,n=e.keyword,l=e.selectedRowKeys,u=e.isLoading,o=e.total,i=e.page,c=e.limit,s=e.silent,f={total:o,page:i,limit:c},d=!1===u&&0===o&&Object.keys(r).length<=0&&(0,b.default)(n);return{data:t,filters:r,keyword:n,pagination:f,isLoading:u,selectedRowKeys:(0,g.toJS)(l),silentLoading:s,isEmptyList:d,rowKey:this.rowKey,module:this.module,name:this.name,enabledActions:this.enabledActions,itemActions:this.defaultItemActions,tableActions:this.defaultTableActions,tableId:this.props.match.path}}},{key:"getBannerProps",value:function(){return{className:"margin-b12",title:t(this.title),description:t("".concat(this.name.replace(/\s+/g,"_").toUpperCase(),"_DESC")),module:this.module}}},{key:"render",value:function(){return v.default.createElement(r,(0,u.default)({name:this.name,module:this.module,store:this.store,prefix:this.prefix,routing:this.routing,query:this.query,bannerProps:this.getBannerProps(),tableProps:this.getTableProps(),getSortOrder:this.getSortOrder,getFilteredValue:this.getFilteredValue,enabledActions:this.enabledActions,trigger:this.trigger.bind(this),getData:this.getData},this.props))}},{key:"routing",get:function(){return this.props.rootStore.routing}},{key:"prefix",get:function(){return this.props.match.url}},{key:"defaultItemActions",get:function(){var e=this;return[{key:"edit",icon:"pen",text:t("EDIT_INFORMATION"),action:"edit",onClick:function(t){return e.trigger("resource.baseinfo.edit",{detail:t,success:e.routing.query})}},{key:"delete",icon:"trash",text:t("DELETE"),action:"delete",onClick:function(t){return e.trigger("resource.delete",{type:e.name,resource:t.name,detail:t,success:e.routing.query})}}]}},{key:"enabledActions",get:function(){var e=this.props.match.url;return globals.app.getActions(N(N({module:this.authKey,skipAuth:this.skipAuth},this.props.match.params),{},{project:this.props.match.params.namespace,fedproject:e.indexOf("federatedprojects")>-1,devops:this.props.match.params.devops,nodegroup:this.props.match.params.group}))}},{key:"defaultTableActions",get:function(){var e=this;return{onFetch:this.routing.query,onSelectRowKeys:this.list.setSelectRowKeys,selectActions:[{key:"delete",type:"danger",text:t("DELETE"),action:"delete",onClick:function(){return e.trigger("resource.batch.delete",{type:e.name,rowKey:e.rowKey,success:e.routing.query,k8sVersion:e.props.k8sVersion})}}]}}},{key:"searchByApp",get:function(){var t;return null!==(t=e.searchByApp)&&void 0!==t&&t}}]),l}(v.default.Component),i=e.injectStores||["rootStore"];return y.inject.apply(void 0,(0,l.default)(i))((0,y.observer)((0,C.trigger)(n)))}}var w=function(e){(0,p.default)(a,e);var t=T(a);function a(){return(0,f.default)(this,a),t.apply(this,arguments)}return(0,d.default)(a,[{key:"componentDidMount",value:function(){var e=this;this.props.noWatch||this.initWebsocket(),this.unsubscribe=this.routing.history.subscribe((function(t){if(t.pathname===e.props.match.url){var a=(0,_.parse)(t.search.slice(1));e.query=a||{},e.props.getData(a)}}))}},{key:"componentDidUpdate",value:function(e){(0,O.default)(e.match.params,this.props.match.params)||(this.props.getData(),this.props.noWatch||this.initWebsocket())}},{key:"componentWillUnmount",value:function(){this.unsubscribe&&this.unsubscribe(),this.disposer&&this.disposer()}},{key:"initWebsocket",value:function(){var e=this,t=this.props.isFederated;if("getWatchListUrl"in this.store){var a=this.store.getWatchListUrl(this.props.match.params);this.websocket.watch(a);var r=(0,E.default)((function(t){if(!e.store.list.isLoading){var a=(0,_.parse)(location.search.slice(1));return e.props.getData(N(N(N({},a),t),{},{silent:!0}))}}),1e3),n=S.MODULE_KIND_MAP[this.props.module];t&&(n="Federated".concat(n));var l=t?D.default.federated(this.store.mapper):this.store.mapper;this.disposer=(0,g.reaction)((function(){return e.websocket.message}),this.props.onMessage||function(t){if(t.object.kind===n)if("MODIFIED"===t.type){var a=N(N({},e.props.match.params),l((0,g.toJS)(t.object)));e.store.list.updateItem(a)}else"DELETED"!==t.type&&"ADDED"!==t.type||r()})}}},{key:"render",value:function(){return this.props.children}},{key:"store",get:function(){return this.props.store}},{key:"websocket",get:function(){return this.props.rootStore.websocket}},{key:"routing",get:function(){return this.props.rootStore.routing}}]),a}(v.default.Component);a.ListPage=w},function(e,a,r){"use strict";var n=r(20);r(12),r(5),r(11),r(6),r(84),r(29),r(18),r(87),r(97),r(320),r(27),r(190),r(98),r(9),r(13),r(10),r(4),r(316),r(24),r(62),r(64),r(7),r(32),r(110),Object.defineProperty(a,"__esModule",{value:!0}),a.CreateUidFactory=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t={IDList:e,maxID:e.length?Math.max.apply(null,e):0};return{generateUID:function(){var e=++t.maxID;return t.IDList.push(e),e},clear:function(){t.IDList=[],t.maxID=0}}},a.avgs=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=e.length,a=e.reduce((function(e,t){return e+t}),0);return a/t},a.unitTransformGroupFactory=P,a.unitTransformFactory=A,a.unitTransformMap=a.fillEmptyMetrics=a.timestampify=a.timeAliasReg=a.isSameDay=a.stopAutoRefresh=a.startAutoRefresh=a.getColorByName=a.getZeroValues=a.getTimesData=a.getLastMonitoringData=a.getXAxisTickFormatter=a.getAreaChartOps=a.getChartData=a.getFormatTime=a.getValueByUnit=a.getSuitableValue=a.getSuitableUnit=void 0;var l=n(r(61)),u=n(r(58)),o=n(r(30)),i=n(r(96));r(12),r(5),r(11),r(6),r(84),r(29),r(18),r(28),r(87),r(97),r(320),r(442),r(42),r(27),r(190),r(34),r(15),r(98),r(9),r(13),r(10),r(4),r(316),r(436),r(319),r(24),r(62),r(64),r(7),r(32),r(110);var c=n(r(63)),s=n(r(60)),f=n(r(925)),d=n(r(158)),p=n(r(459)),m=n(r(195)),h=n(r(26)),v=n(r(74)),g=n(r(449)),y=n(r(450)),E=n(r(967)),b=n(r(1155)),_=r(52),O=r(72),S=n(r(243));function C(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function D(e){for(var t=1;t=e}));return l&&(n=a.units[t]),l})),n};a.getSuitableUnit=N;a.getSuitableValue=function(e){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"default",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(!(0,p.default)(e)&&!(0,m.default)(e)||(0,f.default)(Number(e)))return r;var n=N(e,a),l=T(e,n||a),u=(0,_.coreUnitTS)(l,n);return"".concat(l," ").concat(t(u))};var T=function(e,t){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2,r=arguments.length>3?arguments[3]:void 0,n="NAN"===e?0:parseFloat(e);if(r!==t)switch(t){default:break;case"":case"default":return n;case"iops":return Math.round(n);case"%":n*=100;break;case"m":if((n*=1e3)<1)return 0;break;case"Ki":n/=1024;break;case"Mi":n/=Math.pow(1024,2);break;case"Gi":n/=Math.pow(1024,3);break;case"Ti":n/=Math.pow(1024,4);break;case"Bytes":case"B":case"B/s":break;case"K":case"KB":case"KB/s":n/=1e3;break;case"M":case"MB":case"MB/s":n/=Math.pow(1e3,2);break;case"G":case"GB":case"GB/s":n/=Math.pow(1e3,3);break;case"T":case"TB":case"TB/s":n/=Math.pow(1e3,4);break;case"bps":n*=8;break;case"Kbps":n=8*n/1024;break;case"Mbps":n=8*n/1024/1024;break;case"ms":n*=1e3}return 0===Number(n)?0:Number(n.toFixed(a))};a.getValueByUnit=T;var R=function(e,t){return(0,_.getLocalTime)(Number(e)).format(t?"MM-DD HH:mm":"HH:mm:ss").replace(/(\d+:\d+)(:00)$/g,"$1")};a.getFormatTime=R;var w=function(e){var t=e.type,a=e.unit,r=e.xKey,n=void 0===r?"time":r,l=e.legend,u=void 0===l?[]:l,c=e.valuesData,s=void 0===c?[]:c,f=e.dot,p=void 0===f?2:f,m=e.originalUnit,v=e.workload_kind,g=0,y=0,E={};s.forEach((function(e,r){e.forEach((function(e){var n=parseInt((0,h.default)(e,[0],0),10),l=(0,h.default)(e,[1]),o=(0,h.default)(u,[r]);if(n&&!E[n]&&(E[n]=u.reduce((function(e,t){return e[t]||(e[t]=null),e}),{})),null!=o&&E[n]){var i="-1"===l?null:T(l,(0,d.default)(a)?t:a,p,m);"statefulset"===v&&E[n][o]&&!i||(E[n][o]=i)}(!g||g>n)&&(g=n),(!y||y86400;return Object.entries(E).map((function(e){var t=(0,i.default)(e,2),a=t[0],r=t[1];return D((0,o.default)({},n,function(e){return"time"===n?R(1e3*e,b):e}(a)),r)}))};a.getChartData=w;a.getAreaChartOps=function(e){var t=e.type,a=e.title,r=e.unitType,n=e.xKey,l=void 0===n?"time":n,o=e.legend,i=void 0===o?[]:o,f=e.data,d=void 0===f?[]:f,p=e.alert,m=e.workload_kind,v=(0,u.default)(e,["type","title","unitType","xKey","legend","data","alert","workload_kind"]),g=((0,s.default)(d)?d:[]).map((function(e){return(0,h.default)(e,"values")||[]})),E=r?N((0,y.default)(g),r):v.unit;!(0,c.default)(p)&&"value"in p&&(p=D(D({},p),{},{value:T(p.value,E),unit:E}));var b=w({type:t,unit:E,xKey:l,legend:i,valuesData:g,dot:v.dot,originalUnit:v.originalUnit,workload_kind:m});return D(D({},v),{},{title:a,unit:E,alert:p,data:b})};a.getXAxisTickFormatter=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=e.map((function(e){var t=e.time;return+new Date(t)})),a=(0,E.default)(t),r=(0,b.default)(t);return r-a>864e4?function(e){return(0,S.default)(e).format("MM-DD HH:mm")}:function(e){return(0,S.default)(e).format("HH:mm:ss")}};a.getLastMonitoringData=function(e){var t={};return Object.entries(e).forEach((function(e){var a=(0,i.default)(e,2),r=a[0],n=a[1],l=(0,h.default)(n,"data.result[0].values",[])||[],u=(0,c.default)(l)?(0,h.default)(n,"data.result[0].value",[])||[]:(0,g.default)(l);(0,v.default)(t,"[".concat(r,"].value"),u)})),t};a.getTimesData=function(e){var t=[];return e.forEach((function(e){((0,h.default)(e,"values")||[]).forEach((function(e){var a=(0,h.default)(e,"[0]",0);t.includes(a)||t.push(a)}))})),t.sort()};a.getZeroValues=function(){for(var e=[],t=parseInt(Date.now()/1e3,10)-6e3,a=0;a<10;a++)e[a]=[t,0],t+=600;return e};a.getColorByName=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"#fff";return O.COLORS_MAP[e]||e};a.startAutoRefresh=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=D({method:"fetchData",interval:5e3,leading:!0},t);if(e&&e[a.method]){var r=e[a.method];a.leading&&r({silentLoading:!0}),e.timer=setInterval((function(){r({silentLoading:!0})}),a.interval)}};a.stopAutoRefresh=function(e){e&&e.timer&&(clearInterval(e.timer),e.timer=null)};a.isSameDay=function(e,t){return Math.floor(e/864e5)===Math.floor(t/864e5)};var I=/(\d+)(\w+)/;a.timeAliasReg=I;a.timestampify=function(e){var t=e.match(I)||[],a=(0,i.default)(t,3),r=a[1],n=void 0===r?0:r,l=a[2];return Number(n)*(O.MILLISECOND_IN_TIME_UNIT[l]||0)};a.fillEmptyMetrics=function(e,t){if(!e.times||!e.start||!e.end)return t;var a=function(e){return String(e).replace(/\..*$/,"")},r=Math.floor((e.end-e.start)/e.times),n=e.times+1;return Object.values(t).forEach((function(t){var l=(0,h.default)(t,"data.result");(0,c.default)(l)||l.forEach((function(t){var l=t.values||[],u=l.reduce((function(e,t){return D(D({},e),{},(0,o.default)({},a(t[0]),t[1]))}),{});if(l.length1&&void 0!==arguments[1]?arguments[1]:0,r=t<0,n=Math.abs(t),l=0,u=0;u=c))break;l=u}var s=(0,i.default)(e[l],2),f=s[0],d=s[1],p=0===d?n:n/d,m=p.toFixed(a);return 0===Number(m)?"0":"".concat(r?"-":"").concat(m," ").concat(f)}}a.unitTransformMap=M},function(e,t,a){"use strict";a(15);var r=a(157),n=a(20);a(16),a(4),a(23),a(17),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(45),a(42),a(16),a(4),a(23),a(57),a(17);var l=n(a(36)),u=n(a(37)),o=n(a(55)),i=n(a(56)),c=n(a(51)),s=n(a(158)),f=r(a(0)),d=n(a(1)),p=n(a(3)),m=n(a(839)),h=n(a(2389));function v(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,c.default)(e);if(t){var n=(0,c.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,i.default)(this,a)}}var g=function(e){(0,o.default)(a,e);var t=v(a);function a(){return(0,l.default)(this,a),t.apply(this,arguments)}return(0,u.default)(a,[{key:"render",value:function(){var e=this.props,t=e.style,a=e.className,r=e.name,n=e.type,l=e.total,u=e.ready,o=e.flicker;return f.default.createElement("span",{className:(0,p.default)(h.default.status,a),style:t},f.default.createElement(m.default,{className:h.default.indicator,type:n,flicker:o}),f.default.createElement("span",{className:"font-bold"},r),!(0,s.default)(l)&&!(0,s.default)(u)&&f.default.createElement("span",null," (",u,"/",l,")"))}}]),a}(f.PureComponent);t.default=g,g.propTypes={style:d.default.string,className:d.default.string,name:d.default.string,total:d.default.number,ready:d.default.number,type:d.default.string,flicker:d.default.bool},g.defaultProps={type:"Running",flicker:!1}},function(e,t,a){"use strict";a(15);var r=a(20);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(a(873)),l=(0,r(a(1324)).default)(n.default);t.default=l},,function(e,t,a){"use strict";a(15);var r=a(20);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"TinyArea",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(t,"MediumArea",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"SimpleArea",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"MultiArea",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"PercentArea",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"SimpleBar",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"StackedBar",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(t,"SimpleCircle",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(t,"PieChart",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(t,"MultiPie",{enumerable:!0,get:function(){return p.default}});var n=r(a(2124)),l=r(a(2168)),u=r(a(2170)),o=r(a(2174)),i=r(a(2176)),c=r(a(2178)),s=r(a(2180)),f=r(a(2182)),d=r(a(1530)),p=r(a(2234))},function(e,a,r){"use strict";var n=r(20);r(12),r(5),r(11),r(6),r(27),r(9),r(13),r(10),r(4),r(23),r(17),r(111),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(45),r(5),r(11),r(6),r(28),r(42),r(27),r(34),r(15),r(9),r(13),r(10),r(4),r(23),r(57),r(24),r(193),r(17),r(111),r(7);var l=n(r(315)),u=n(r(30)),o=n(r(58)),i=n(r(36)),c=n(r(37)),s=n(r(55)),f=n(r(56)),d=n(r(51)),p=n(r(158)),m=n(r(63)),h=n(r(470)),v=n(r(0)),g=n(r(1)),y=n(r(3)),E=r(186),b=n(r(2088));function _(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function O(e){for(var t=1;tn&&(i=n),l||!u.endsWith(".")&&!u.endsWith("0")||i!==Number(u)||"".concat(i)===u||(i=u),o&&o(i))}}else o(u)},t.handleAdd=function(){var e=t.props,a=e.value,r=e.max,n=e.onChange;((0,p.default)(r)||ar)&&n(Number(a)-1)},t.handleBlur=function(){var e=t.props,a=e.onChange,r=e.unit,n=t.state.inputValue;""===n||"-"===n||(0,m.default)(n)||(n=Number(n)),!(0,p.default)(n)&&r&&(n="".concat(n).concat(r)),a&&a(n)};var n=e.value,l=e.defaultValue,u=e.unit,o=null!=n?n:l;return u&&(o=(0,h.default)(o,u)),t.state={inputValue:o},t}return(0,c.default)(r,[{key:"componentDidUpdate",value:function(e){if(e.value!==this.props.value){var t=this.props.value,a=this.props.unit;a&&(t=(0,h.default)(t,a)),this.state.inputValue!==t&&this.setState({inputValue:t})}}},{key:"render",value:function(){var e=this.props,a=e.className,r=e.unit,n=e.showUnit,u=(e.value,e.defaultValue,e.onChange,e.integer),i=e.controls,c=(0,o.default)(e,["className","unit","showUnit","value","defaultValue","onChange","integer","controls"]),s=u?/[-0-9]/:/[-.0-9]/,f=this.state.inputValue,d=O(O({type:"text"},c),{},{onKeyPress:function(e){s.test(e.key)||e.preventDefault()},value:f,onChange:this.handleChange,onBlur:this.handleBlur});return r&&n?v.default.createElement("div",{className:(0,y.default)(a,b.default.withUnit)},v.default.createElement(E.Input,d),v.default.createElement("span",{className:b.default.unit},"core"===r?t("CORE_PL"):r)):i?v.default.createElement("div",{className:(0,y.default)(a,b.default.withUnit)},v.default.createElement(E.Input,d),v.default.createElement("div",{className:b.default.buttonWrapper},v.default.createElement(E.Icon,{className:b.default.iconUp,name:"chevron-up",clickable:!0,onClick:this.handleAdd}),v.default.createElement(E.Icon,{className:b.default.iconDown,name:"chevron-down",clickable:!0,onClick:this.handleSubtract}))):v.default.createElement(E.Input,(0,l.default)({className:a},d))}}]),r}(v.default.Component);C.propTypes={unit:g.default.string,showUnit:g.default.bool,value:g.default.oneOfType([g.default.string,g.default.number]),defaultValue:g.default.oneOfType([g.default.string,g.default.number]),min:g.default.number,max:g.default.number,integer:g.default.bool,controls:g.default.bool,onChange:g.default.func},C.defaultProps={unit:"",showUnit:!1,integer:!1,controls:!1,onChange:function(){}};var D=C;a.default=D},,function(e,t,a){"use strict";a(15);var r=a(157),n=a(20);a(4),a(23),a(17),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(45),a(42),a(4),a(23),a(57),a(17);var l=n(a(315)),u=n(a(58)),o=n(a(36)),i=n(a(37)),c=n(a(55)),s=n(a(56)),f=n(a(51)),d=r(a(0)),p=n(a(1)),m=n(a(3)),h=n(a(195)),v=a(186),g=n(a(2386));function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,f.default)(e);if(t){var n=(0,f.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,s.default)(this,a)}}var E=function(e){(0,c.default)(a,e);var t=y(a);function a(){return(0,o.default)(this,a),t.apply(this,arguments)}return(0,i.default)(a,[{key:"renderTitle",value:function(){var e=this.props,t=e.header,a=e.title,r=e.operations;return t||(a||r?d.default.createElement("div",{className:g.default.title},r&&d.default.createElement("div",{className:g.default.operations},r),a):null)}},{key:"renderContent",value:function(){var e=this.props,t=e.empty,a=e.children;return e.isEmpty||!a?(0,h.default)(t)?d.default.createElement("div",{className:g.default.empty},t):t:a}},{key:"render",value:function(){var e=this.props,t=e.className,a=e.type,r=e.loading,n=(e.refreshing,e.title,e.operations,e.empty,e.children,e.isEmpty,(0,u.default)(e,["className","type","loading","refreshing","title","operations","empty","children","isEmpty"]));return d.default.createElement("div",(0,l.default)({className:(0,m.default)(g.default.card,t,g.default[a])},n),this.renderTitle(),r?d.default.createElement(v.Loading,{className:g.default.loading}):this.renderContent())}}]),a}(d.PureComponent);t.default=E,E.propTypes={className:p.default.string,type:p.default.string,loading:p.default.bool,refreshing:p.default.bool,title:p.default.oneOfType([p.default.string,p.default.element,p.default.node]),operations:p.default.oneOfType([p.default.string,p.default.element,p.default.node]),header:p.default.node,empty:p.default.oneOfType([p.default.string,p.default.element,p.default.node]),isEmpty:p.default.bool},E.defaultProps={title:"",type:"default",isEmpty:!1}},,,function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(18),Object.defineProperty(a,"__esModule",{value:!0}),a.default=function(e){var a=e.data,r=e.status,n=e.reason,c=e.type,s=void 0===c?"workload":c,f=e.onShowEvents,d=o.default.createElement("div",null,o.default.createElement("div",{className:"tooltip-title"},t("STATUS_INFORMATION")),o.default.createElement("div",null,(0,u.default)(a,"status.conditions",[]).map((function(e){return o.default.createElement("div",{key:e.type,className:i.default.condition},o.default.createElement("div",{className:i.default.title},function(e,t){var a=t.type,r=t.status;if("volume"===e)return"True"===r;return"ReplicaFailure"===a?"False"===r:"True"===r}(s,e)?o.default.createElement(l.Icon,{name:"success",type:"coloured"}):o.default.createElement(l.Icon,{name:"error",color:{primary:"#ffffff",secondary:"#ea4641"}}),o.default.createElement("span",null,t("".concat(s.toUpperCase(),"_CONDITION_").concat(e.type.toUpperCase()),{defaultValue:e.type}))),e.status&&o.default.createElement("p",null,t("STATUS_VALUE",{value:"True"===e.status?"True":"False"})),e.reason&&o.default.createElement("p",null,t("REASON_VALUE",{value:t("".concat(s.toUpperCase(),"_REASON_").concat(e.reason.toUpperCase()),{defaultValue:e.reason})})),e.message&&o.default.createElement("p",null,t("MESSAGE_VALUE",{value:e.message})))}))),f&&o.default.createElement(l.Button,{type:"primary",onClick:f,className:"margin-t8 width-full"},t("VIEW_EVENTS")));return o.default.createElement("span",{className:i.default.reason},o.default.createElement(l.Tooltip,{placement:"right",content:d,positionFixed:!0},o.default.createElement("span",{className:i.default.reasonDesc},o.default.createElement(l.Icon,{name:"information",color:{primary:"#ffffff",secondary:"error"===r?"#ab2f29":"#f5a623"}}),n&&o.default.createElement("span",{className:"error"===r?i.default.error:i.default.warning},t(n)))))},r(5),r(18);var l=r(186),u=n(r(26)),o=n(r(0)),i=n(r(2954))},function(e,t,a){"use strict";var r=a(20);a(12),a(11),a(6),a(86),a(137),a(9),a(13),a(10),a(4),a(23),a(24),a(17),a(62),a(75),a(7),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(12),a(45),a(11),a(6),a(86),a(28),a(42),a(137),a(34),a(15),a(9),a(13),a(10),a(4),a(23),a(57),a(24),a(17),a(62),a(75),a(7);var n,l,u=r(a(30)),o=r(a(36)),i=r(a(37)),c=r(a(55)),s=r(a(56)),f=r(a(51)),d=r(a(26)),p=a(899),m=a(14),h=a(239),v=a(433),g=a(72);function y(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function E(e){for(var t=1;t-1},this.inCluster?{cluster:a}:{cluster:a,workspace:t,project:r}))}}]),a}(p.Component))||l)||l)||l);t.default=_},,,,,function(e,t,a){"use strict";var r=a(157),n=a(20);a(12),a(11),a(6),a(48),a(9),a(13),a(10),a(24),a(188),a(7),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var l=n(a(315)),u=n(a(30));a(12),a(11),a(6),a(28),a(48),a(34),a(15),a(9),a(13),a(10),a(4),a(24),a(188),a(7);var o=n(a(1324)),i=n(a(873)),c=n(a(63)),s=n(a(189)),f=a(239),d=a(244),p=r(a(0)),m=n(a(3760));function h(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function v(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};return t.fetchProjects(v(v({cluster:u},(0,s.default)(t.projects.filters,"nameAndAlias","name")),e))},onChange:function(e){t.setProject(e),f({},!0)}}),showEmpty:h},e))}))));t.default=g},,function(e,t,a){"use strict";a(15);var r=a(20);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(a(2348)),l=r(a(2349)),u=r(a(2350));n.default.Item=l.default,n.default.Add=u.default;var o=n.default;t.default=o},function(e,t,a){"use strict";a(15);var r=a(20);a(16),a(4),a(23),a(24),a(17),a(62),Object.defineProperty(t,"__esModule",{value:!0}),t.Component=t.default=void 0,a(45),a(42),a(16),a(4),a(23),a(57),a(24),a(17),a(62);var n=r(a(36)),l=r(a(37)),u=r(a(55)),o=r(a(56)),i=r(a(51)),c=r(a(0)),s=a(14),f=a(239),d=a(72),p=a(52),m=r(a(1110)),h=r(a(1635)),v=r(a(1405));function g(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,i.default)(e);if(t){var n=(0,i.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,o.default)(this,a)}}var y=function(e){(0,u.default)(a,e);var t=g(a);function a(e){var r;return(0,n.default)(this,a),(r=t.call(this,e)).eventStore=(0,p.isEdgeWizePage)()?new h.default:new m.default,r}return(0,l.default)(a,[{key:"componentDidMount",value:function(){this.fetchData()}},{key:"fetchData",value:function(){var e=this.store.detail,t=e.uid,a=e.name,r=e.namespace,n=e._originData,l={"involvedObject.name":a,"involvedObject.namespace":r,"involvedObject.kind":(void 0===n?{}:n).kind||this.kind,"involvedObject.uid":t};this.eventStore.fetchList({namespace:r,cluster:this.cluster,fieldSelector:(0,p.joinSelector)(l)})}},{key:"render",value:function(){var e=(0,s.toJS)(this.eventStore.list),t=e.data,a=e.isLoading;return c.default.createElement(v.default,{data:t,loading:a})}},{key:"store",get:function(){return this.props.detailStore}},{key:"cluster",get:function(){return this.props.match.params.cluster}},{key:"module",get:function(){return this.store.module}},{key:"kind",get:function(){return d.MODULE_KIND_MAP[this.module]}}]),a}(c.default.Component),E=(0,f.inject)("detailStore")((0,f.observer)(y));t.default=E;var b=y;t.Component=b},function(e,a,r){"use strict";var n=r(157),l=r(20);r(12),r(109),r(5),r(11),r(6),r(16),r(9),r(13),r(10),r(4),r(23),r(17),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(109),r(45),r(5),r(11),r(6),r(28),r(42),r(16),r(34),r(15),r(9),r(13),r(10),r(4),r(23),r(57),r(17),r(7);var u=l(r(30)),o=l(r(36)),i=l(r(37)),c=l(r(55)),s=l(r(56)),f=l(r(51)),d=r(186),p=l(r(3)),m=l(r(996)),h=l(r(839)),v=l(r(26)),g=l(r(189)),y=r(1),E=n(r(0)),b=r(52),_=r(72),O=l(r(2112));function S(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function C(e){for(var t=1;t0),(0,h.default)(E,"spec.redisProxy.replicas",d),(0,h.default)(E,"spec.redisProxy.predixyConfigParams.clusterName",t);var b=K(m);return(0,h.default)(E,"spec.redisProxy.resources.requests",b),(0,h.default)(E,"spec.redisProxy.resources.limits",b),JSON.stringify(E)},a.getRedisClusterRelatedResources=function(e){return Z(g.redisCluster,e)},a.mergeRedisSentinelInstallationData=function(e){var t=e.name,a=e.namespace,r=e.valuesJson,n=(0,f.default)({},q[T.MySQL],(0,p.default)(r,H)),l=n.version,u=n.volume,o=n.volumeType,i=n.nodes,c=n.password,s=K(n.specifications),d=N({},g.redisSentinal.resource);return J(d,{name:t,namespace:a,volume:u,volumeType:o,password:c,cm:s,version:l}),(0,h.default)(d,"spec.clusterSize",i),(0,h.default)(d,"spec.redisReplica.replicas",i),(0,h.default)(d,"spec.kubernetesConfig.image","radondb/redis:v".concat(l)),(0,h.default)(d,"spec.redisReplica.redisConfig.additionalRedisConfig","".concat(t,"-external-config")),(0,h.default)(d,"spec.redisSentinel.affinity.podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution[0].podAffinityTerm.labelSelector.matchExpressions[0].values",[t]),(0,h.default)(d,"spec.redisReplica.affinity.podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution[0].podAffinityTerm.labelSelector.matchExpressions[0].values",[t]),JSON.stringify(d)},a.getRedisSentinelRelatedResources=function(e){return Z(g.redisSentinal,e)},a.mergeMongoDBInstallationData=function(e){var t=e.name,a=e.namespace,r=e.valuesJson,n=(0,f.default)({},q[T.MySQL],(0,p.default)(r,H)),l=n.specifications,u=n.nodes,o=n.volume,i=n.volumeType,c=n.version,s=K(l),d=N({},y.mongoYaml.resources);return(0,h.default)(d,"metadata.name",t),(0,h.default)(d,"metadata.namespace",a),(0,h.default)(d,"spec.members",u),(0,h.default)(d,"spec.version",c),(0,h.default)(d,"spec.statefulSet.spec.template.spec.containers[0].resources.requests",s),(0,h.default)(d,"spec.statefulSet.spec.template.spec.containers[0].resources.limits",s),(0,h.default)(d,"spec.prometheus.passwordSecretRef.name","".concat(t,"-metrics-password")),(0,h.default)(d,"spec.statefulSet.spec.volumeClaimTemplates[0].spec.storageClassName",i),(0,h.default)(d,"spec.statefulSet.spec.volumeClaimTemplates[0].spec.resources.requests.storage",o),(0,h.default)(d,"spec.users[0].passwordSecretRef.name","".concat(t,"-operator-password")),(0,h.default)(d,"spec.users[0].scramCredentialsSecretName","".concat(t,"-operator-password")),(0,h.default)(d,"spec.users[1].passwordSecretRef.name","".concat(t,"-root-password")),(0,h.default)(d,"spec.users[1].scramCredentialsSecretName","".concat(t,"-root-password")),(0,h.default)(d,"spec.statefulSet.spec.template.spec.affinity.podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution[0].podAffinityTerm.labelSelector.matchExpressions[0].values",[t]),JSON.stringify(d)},a.getMongoDBRelatedResources=function(e){var t=e.name,a=e.namespace,r=[],n=y.mongoYaml.masterSecret;(0,h.default)(n,"metadata.name","".concat(t,"-operator-password")),(0,h.default)(n,"metadata.namespace",a),r.push({name:"masterSecret",data:JSON.stringify(n)});var l=y.mongoYaml.rootSecret;return(0,h.default)(l,"metadata.name","".concat(t,"-root-password")),(0,h.default)(l,"metadata.namespace",a),r.push({name:"rootSecret",data:JSON.stringify(l)}),r},a.getSecretCrd=function(e){var t=e.name,a=e.namespace,r={apiVersion:"v1",kind:"Secret",type:"Opaque",metadata:{name:"".concat(t,"-userpassword-secret"),namespace:a}};return JSON.stringify(r)},a.mergePGInstallationData=function(e){var t=e.name,a=e.valuesJson,r=e.namespace,n=e.restoreParams,l=(0,f.default)({},q[T.PostgreSQL],(0,p.default)(a,H)),u=l.specifications,o=l.nodes,i=l.volume,c=l.volumeType,s=l.version,d=K(u),m=JSON.parse(JSON.stringify(b.pgYaml.resources));if((0,h.default)(m,"metadata.name",t),(0,h.default)(m,"metadata.namespace",r),(0,h.default)(m,"spec.postgresql.readwriteinstance.podspec.containers[0].resources",{requests:d,limits:d}),(0,h.default)(m,"spec.autofailover.volumeClaimTemplates[0].spec.storageClassName",c),(0,h.default)(m,"spec.postgresql.readwriteinstance.volumeClaimTemplates[0].spec.storageClassName",c),(0,h.default)(m,"spec.postgresql.readwriteinstance.volumeClaimTemplates[0].spec.resources.requests.storage",i),(0,h.default)(m,"spec.postgresql.readwriteinstance.replicas",o),(0,h.default)(m,"spec.autofailover.podspec.containers[0].image","".concat(A[s],"-v1.2.0")),(0,h.default)(m,"spec.postgresql.readwriteinstance.podspec.containers[0].image","".concat(A[s],"-v1.2.0")),(0,h.default)(m,"spec.postgresql.readonlyinstance.podspec.containers[0].image","".concat(A[s],"-v1.2.0")),(0,h.default)(m,"spec.deletes3",!0),n){var v=n.backupId,g=n.S3,y=n.backupToS3Name;(0,h.default)(m,"spec.restore.froms3.recovery",v),(0,h.default)(m,"spec.restore.froms3.name",y),(0,h.default)(m,"spec.S3",g)}return JSON.stringify(m)},a.mergeECKInstallationData=function(e){var t=e.name,a=e.valuesJson,r=e.namespace,n=(0,f.default)({},q[T.Elasticsearch],(0,p.default)(a,H)),l=JSON.parse(JSON.stringify(O.eckYaml.resources));(0,h.default)(l,"metadata.name",t),(0,h.default)(l,"metadata.namespace",r);var u=(0,m.default)(l,"spec.nodeSets"),i=Object.entries(n).map((function(e){var t=(0,o.default)(e,2),a=t[0],r=t[1],n=r.nodes,l=r.specifications,i=r.volume,c=r.volumeType,s=u.find((function(e){return e.name===a}));if(s){var f=K(l),d=(0,m.default)(s,"name");(0,h.default)(s,"name","".concat(d,"-").concat(i.toLowerCase())),(0,h.default)(s,"count",n),(0,h.default)(s,"podTemplate.spec.containers[0].resources",{limits:f,requests:f}),(0,h.default)(s,"podTemplate.spec.containers[0].env[0].value","-Xms".concat(parseInt(f.memory,10)/2,"g -Xmx").concat(parseInt(f.memory,10)/2,"g")),(0,h.default)(s,"volumeClaimTemplates[0].spec.resources.requests.storage",i),(0,h.default)(s,"volumeClaimTemplates[0].spec.storageClassName",c)}return s})).filter((function(e){return e&&e.count>0}));return(0,h.default)(l,"spec.nodeSets",i),JSON.stringify(l)},a.getECKRelatedResources=function(e){var t=e.name,a=e.kibanaValues,r=e.namespace,n=a.nodes,l=a.specifications,u=JSON.parse(JSON.stringify(O.eckYaml.kibana)),o=K(l);return(0,h.default)(u,"metadata.name",t),(0,h.default)(u,"metadata.namespace",r),(0,h.default)(u,"spec.count",n),(0,h.default)(u,"spec.elasticsearchRef.name",t),(0,h.default)(u,"spec.elasticsearchRef.namespace",r),(0,h.default)(u,"spec.podTemplate.spec.containers[0].resources.requests",o),(0,h.default)(u,"spec.podTemplate.spec.containers[0].resources.limits",o),[{name:"kibana",data:JSON.stringify(u)}]},a.mergeKafkaInstallationData=function(e){var t=e.name,a=e.valuesJson,r=e.namespace,n=(0,f.default)({},q[T.Kafka],(0,p.default)(a,H)),l=JSON.parse(JSON.stringify(S.kafkaYaml.resources));(0,h.default)(l,"metadata.name",t),(0,h.default)(l,"metadata.namespace",r);var u=n.kafka,o=n.zookeeper,i=K(u.specifications);(0,h.default)(l,"spec.kafka.version",u.version),(0,h.default)(l,"spec.kafka.replicas",u.nodes),(0,h.default)(l,"spec.kafka.resources.requests",i),(0,h.default)(l,"spec.kafka.resources.limits",i),(0,h.default)(l,"spec.kafka.storage.volumes[0]",{id:0,type:"persistent-claim",class:u.volumeType,size:u.volume,deleteClaim:!0}),(0,h.default)(l,"spec.kafka.metricsConfig.valueFrom.configMapKeyRef.name","".concat(t,"-kafka-metrics"));var c=K(o.specifications);return(0,h.default)(l,"spec.zookeeper.replicas",o.nodes),(0,h.default)(l,"spec.zookeeper.resources.requests",c),(0,h.default)(l,"spec.zookeeper.resources.limits",c),(0,h.default)(l,"spec.zookeeper.storage",{type:"persistent-claim",class:o.volumeType,size:o.volume,deleteClaim:!0}),(0,h.default)(l,"spec.zookeeper.metricsConfig.valueFrom.configMapKeyRef.name","".concat(t,"-kafka-metrics")),JSON.stringify(l)},a.getKafkaRelatedResources=function(e){var t=e.namespace,a=e.name,r=JSON.parse(JSON.stringify(S.kafkaYaml.configMap));(0,h.default)(r,"metadata.name","".concat(a,"-kafka-metrics")),(0,h.default)(r,"metadata.namespace",t);var n=JSON.parse(JSON.stringify(S.kafkaYaml.podMonitor));return(0,h.default)(n,"metadata.name","".concat(a,"-kafka-resources-metrics")),(0,h.default)(n,"metadata.namespace",t),(0,h.default)(n,"spec.namespaceSelector.matchNames",[t]),[{name:"configMap",data:JSON.stringify(r)},{name:"podMonitor",data:JSON.stringify(n)}]},a.mergeOpenSearchInstallationData=function(e){var t=e.name,a=e.valuesJson,r=e.namespace,n=(0,f.default)({},q[T.OpenSearch],(0,p.default)(a,H)),u=n.version,i=(n.password,n.username,n.logstash,n.dashboard),c=(0,l.default)(n,["version","password","username","logstash","dashboard"]),s=JSON.parse(JSON.stringify(C.opensearchYaml.resources));(0,h.default)(s,"metadata.name",t),(0,h.default)(s,"metadata.namespace",r),(0,h.default)(s,"spec.general.serviceName",t),(0,h.default)(s,"spec.general.version",u),(0,h.default)(s,"spec.dashboards.version",u),"2.8.0"===u&&(0,h.default)(s,'spec.general.additionalConfig["prometheus.indices"]',"false");(0,h.default)(s,"spec.dashboards.enable",i.nodes>0),(0,h.default)(s,"spec.dashboards.replicas",i.nodes),(0,h.default)(s,"spec.security.config.securityConfigSecret.name","".concat(t,"-securityconfig-secret")),(0,h.default)(s,"spec.security.config.adminCredentialsSecret.name","".concat(t,"-admin-secret"));var d=K(i.specifications);(0,h.default)(s,"spec.dashboards.resources",{limits:d,requests:d});var v=(0,m.default)(s,"spec.nodePools"),g=Object.entries(c).map((function(e){var t=(0,o.default)(e,2),a=t[0],r=t[1],n=r.nodes,l=r.specifications,u=r.volume,i=r.volumeType,c=v.find((function(e){return(0,m.default)(e,'additionalConfig["node.attr.datatier"]')===a}));c||(c=JSON.parse(JSON.stringify(C.opensearchYaml.node)),(0,h.default)(c,'additionalConfig["node.attr.datatier"]',a),(0,h.default)(c,"component","data-node-".concat(a)));var s=K(l);return(0,h.default)(c,"replicas",n),(0,h.default)(c,"resources",{limits:s,requests:s}),(0,h.default)(c,"diskSize",u),(0,h.default)(c,"persistence.pvc.storageClass",i),c})).filter((function(e){return e&&e.replicas>0}));return(0,h.default)(s,"spec.nodePools",g),JSON.stringify(s)},a.getOpenSearchRelatedResources=function(e){var t=e.name,a=e.logstashValues,r=e.namespace,n=e.username,l=e.password,u=a.nodes,o=a.specifications,i=JSON.parse(JSON.stringify(C.opensearchYaml.logstash)),c=K(o);(0,h.default)(i,"metadata.name",t),(0,h.default)(i,"metadata.namespace",r),(0,h.default)(i,"spec.replicas",u);var s=parseInt(c.memory,10)/2;(0,h.default)(i,"spec.config.jvm","-Xms".concat(s,"g -Xmx").concat(s,"g")),(0,h.default)(i,"spec.config.openSearchInfo.openSearchCluster.name",t),(0,h.default)(i,"spec.config.openSearchInfo.openSearchCluster.namespace",r),(0,h.default)(i,"spec.config.openSearchInfo.openSearchService.name",t),(0,h.default)(i,"spec.podTemplate.spec.containers[0].resources.requests",c),(0,h.default)(i,"spec.podTemplate.spec.containers[0].resources.limits",c);var f=JSON.parse(JSON.stringify(C.opensearchYaml.logstashSecret));(0,h.default)(f,"metadata.name","".concat(t,"-logstash-password")),(0,h.default)(f,"metadata.namespace",r);var d=JSON.parse(JSON.stringify(C.opensearchYaml.adminSecret));(0,h.default)(d,"metadata.name","".concat(t,"-admin-secret")),(0,h.default)(d,"metadata.namespace",r),(0,h.default)(d,"data.username",(0,v.safeBtoa)(n||"admin")),(0,h.default)(d,"data.password",(0,v.safeBtoa)(l||"RadonDB@123"));var p=JSON.parse(JSON.stringify(C.opensearchYaml.securityConfigSecret));return(0,h.default)(p,"metadata.name","".concat(t,"-securityconfig-secret")),(0,h.default)(p,"metadata.namespace",r),[{name:"logstash",data:JSON.stringify(i)},{name:"logstashSecret",data:JSON.stringify(f)},{name:"adminSecret",data:JSON.stringify(d)},{name:"securityConfigSecret",data:JSON.stringify(p)}]},a.ValuesJSON=a.ValuesSchema=a.SpecificationOptionsObject=a.getNodeRoleOptions=a.SpecificationsOptions=a.PGImage=a.RedisImage=a.MySQLOptsImage=a.MySQLSidecarImage=a.RadonDBAppIds=a.RadonDBAppId=void 0;var l=n(r(58)),u=n(r(30)),o=n(r(96));r(12),r(109),r(5),r(11),r(31),r(6),r(18),r(28),r(48),r(191),r(16),r(159),r(27),r(1537),r(931),r(34),r(15),r(98),r(9),r(13),r(10),r(4),r(316),r(436),r(319),r(24),r(193),r(64),r(7);var i,c,s,f=n(r(902)),d=n(r(63)),p=n(r(334)),m=n(r(26)),h=n(r(74)),v=r(440),g=r(2276),y=r(2277),E=r(2278),b=r(2279),_=r(2280),O=r(1539),S=r(1093),C=r(1540),D=r(1295);function k(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function N(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},r=a.app_id,n=a.max,l=a.nodeRole,u=a.oldStorage,o=parseFloat(e);if(!Number.isInteger(o))return{error:!0,message:t("VALUE_MUST_BE_INTEGER")};if(n&&o>n)return{error:!0,message:t("VALUE_CANNOT_BE_GREATER_THAN_VALUE",{max:n})};switch(r){case T.Elasticsearch:if(Number.isNaN(o)||o<20)return{error:!0,message:t("VALUE_CANNOT_BE_LESS_THAN_20")};break;case T.Kafka:if(u&&o",value:">"},{label:">=",value:">="},{label:"<",value:"<"},{label:"<=",value:"<="}];t.SEVERITY_LEVEL=[{type:"critical",prefixIcon:"information",color:{primary:"#fae7e5",secondary:"#ca2621"},label:"CRITICAL_ALERT",value:"critical"},{type:"error",prefixIcon:"information",color:{primary:"#fae7e5",secondary:"#f5a623"},label:"ERROR_ALERT",value:"error"},{className:"tag-ffd939",prefixIcon:"information",color:{primary:"#fae7e5",secondary:"#FFD939"},label:"WARNING_ALERT",value:"warning"},{type:"secondary",prefixIcon:"information",color:{primary:"#fae7e5",secondary:"#79879c"},label:"INFO_ALERT",value:"info"}];var i=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.condition,a=void 0===t?{}:t,r=e.thresholds,n=void 0===r?{}:r;return[u({name:"condition_type",options:o},a),u({type:"number",name:"thresholds",placeholder:"THRESHOLD"},n)]};t.getBaseRuleConfig=i;var c=i({thresholds:{min:0}});t.BASE_RULE_CONFIG=c;var s=i({thresholds:{min:0,max:100,unit:"%",converter:function(e){return e/100}}});t.PERCENT_RULE_CONFIG=s;var f=i({thresholds:{unit:"core",min:0}});t.CPU_RULE_CONFIG=f;var d=i({thresholds:{unit:"Mi",min:0,converter:function(e){return e*Math.pow(1024,2)}}});t.MEMORY_RULE_CONFIG=d;var p=i({thresholds:{unit:"GB",min:0,converter:function(e){return e*Math.pow(1e3,3)}}});t.DISK_RULE_CONFIG=p;var m=i({thresholds:{unit:"KB/s",min:0,converter:function(e){return 1e3*e}}});t.THROUGHPUT_RULE_CONFIG=m;var h=i({thresholds:{unit:"Mbps",min:0,converter:function(e){return e*(Math.pow(1024,2)/8)}}});t.BANDWIDTH_RULE_CONFIG=h},function(e,t,a){"use strict";a(15);var r=a(20);a(4),a(23),a(17),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(45),a(42),a(4),a(23),a(57),a(17);var n=r(a(36)),l=r(a(37)),u=r(a(55)),o=r(a(56)),i=r(a(51)),c=r(a(0)),s=r(a(1)),f=r(a(3)),d=a(186),p=r(a(2506));function m(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,i.default)(e);if(t){var n=(0,i.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,o.default)(this,a)}}var h=function(e){(0,u.default)(a,e);var t=m(a);function a(){return(0,n.default)(this,a),t.apply(this,arguments)}return(0,l.default)(a,[{key:"render",value:function(){var e=this.props,t=e.image,a=e.icon,r=e.title,n=e.desc,l=e.actions,u=e.className;return c.default.createElement("div",{className:(0,f.default)(p.default.wrapper,u)},c.default.createElement("div",{className:p.default.image},t?c.default.createElement("img",{src:t,alt:""}):c.default.createElement(d.Icon,{name:a,size:48})),c.default.createElement("div",{className:p.default.title},r),c.default.createElement("p",{className:p.default.desc},n),l&&c.default.createElement("div",{className:p.default.actions},l))}}]),a}(c.default.PureComponent);t.default=h,h.propTypes={icon:s.default.string,title:s.default.string,desc:s.default.oneOfType([s.default.string,s.default.element]),actions:s.default.oneOfType([s.default.node,s.default.element])},h.defaultProps={icon:"appcenter"}},function(e,t,a){"use strict";var r=a(20);a(12),a(5),a(11),a(6),a(18),a(16),a(27),a(9),a(13),a(10),a(4),a(23),a(24),a(17),a(188),a(136),a(7),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(12),a(45),a(5),a(11),a(6),a(18),a(28),a(42),a(16),a(27),a(34),a(15),a(9),a(13),a(10),a(4),a(22),a(23),a(57),a(24),a(17),a(188),a(7);var n=r(a(61)),l=r(a(30)),u=r(a(58)),o=r(a(43));a(41);var i,c,s,f,d=r(a(44)),p=r(a(65)),m=r(a(36)),h=r(a(37)),v=r(a(88)),g=r(a(55)),y=r(a(56)),E=r(a(51)),b=r(a(49)),_=(r(a(66)),r(a(26))),O=r(a(63)),S=r(a(189)),C=r(a(74)),D=r(a(895)),k=r(a(454)),N=a(14),T=a(72),R=r(a(105)),w=a(244),I=r(a(68)),M=r(a(120));function P(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function A(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.cluster,a=e.namespace,r=e.workspace,n="";return t&&(n+="/klusters/".concat(t)),r&&!a&&(n+="/workspaces/".concat(r)),a&&(n+="/namespaces/".concat(a)),n}},{key:"isNotClusterGateway",value:function(e){return e&&"kubesphere-controls-system"!==e}},{key:"getGatewayAppVersions",value:(z=(0,d.default)(o.default.mark((function e(t){var a,r,n;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=t.cluster,r="".concat(a?"/clusters/".concat(a):"","/").concat(this.apiVersion,"/appversions"),e.next=4,this.submitting(request.get(r));case 4:return n=e.sent,e.abrupt("return",n);case 6:case"end":return e.stop()}}),e,this)}))),function(e){return z.apply(this,arguments)})},{key:"getHelmChart",value:(U=(0,d.default)(o.default.mark((function e(t){var a,r,n;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=t.cluster,r=t.appversion,n="".concat(a?"/clusters/".concat(a):"","/").concat(this.apiVersion,"/appversions/").concat(r,"/values"),e.abrupt("return",this.submitting(request.get(n)));case 3:case"end":return e.stop()}}),e,this)}))),function(e){return U.apply(this,arguments)})},{key:"getGateway",value:(x=(0,d.default)(o.default.mark((function e(t){var a,r,n,l,i,c,s,f,d,p,m;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=t.cluster,r=t.namespace,n=t.workspace,l=t.type,i=(0,u.default)(t,["cluster","namespace","workspace","type"]),this.gateway.isLoading=!0,c=this.getListUrl({cluster:a,workspace:n,namespace:r}),s=A({labelSelector:"kubesphere.io/gateway-type=".concat(l)},i),e.next=6,request.get(c,s);case 6:return f=e.sent,d=(0,_.default)(f,"items[0]",null),p={},(0,O.default)(d)||(p=R.default.gateway(d),!0===(null===(m=p)||void 0===m?void 0:m.isDeleteLoading)&&(p={})),this.detail=p,this.gateway.data=p,this.gateway.isLoading=!1,e.abrupt("return",p);case 14:case"end":return e.stop()}}),e,this)}))),function(e){return x.apply(this,arguments)})},{key:"getGatewayReplica",value:(L=(0,d.default)(o.default.mark((function e(t){var a,r,n;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a="".concat(this.gatewayPodsUrl(t),"/pods"),e.next=3,this.submitting(request.get(a));case 3:return r=e.sent,n=[],r&&r.totalItems>0&&(n=r.items.map((function(e){return R.default.pods(e)}))),e.abrupt("return",n);case 7:case"end":return e.stop()}}),e,this)}))),function(e){return L.apply(this,arguments)})},{key:"getGatewayByProject",value:(P=(0,d.default)(o.default.mark((function e(t){var a,r,n,l,i,c,s,f,d,p;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.cluster,n=t.workspace,l=t.namespace,i=(0,u.default)(t,["cluster","workspace","namespace"]),this.gateway.isLoading=!0,c=this.getListUrl({cluster:r,workspace:n,namespace:l}),e.next=5,request.get(c,i);case 5:return s=e.sent,f=(0,_.default)(s,"items",[]),d=null===(a=(0,D.default)(f,(function(e){return R.default.gateway(e)})))||void 0===a?void 0:a.filter((function(e){return!e.isDeleteLoading})),p=(0,k.default)(d,(function(e){return"project"===e.gatewayType})),this.detail=p,this.gateway.data=p,this.gateway.isLoading=!1,e.abrupt("return",d);case 13:case"end":return e.stop()}}),e,this)}))),function(e){return P.apply(this,arguments)})},{key:"getNewGatewayByProject",value:(M=(0,d.default)(o.default.mark((function e(t){var a,r,n;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.gateway.isLoading=!0,a=this.gatIngressUrl(t),e.next=4,request.get(a,null,null,(function(){}));case 4:return r=e.sent,n=(0,D.default)(r,(function(e){return R.default.ingressClassScopes(e)})),this.gateway.isLoading=!1,e.abrupt("return",n);case 8:case"end":return e.stop()}}),e,this)}))),function(e){return M.apply(this,arguments)})},{key:"getGatewayByWorkspace",value:(I=(0,d.default)(o.default.mark((function e(t){var a,r,n,l,u,i,c,s,f,d;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.cluster,n=t.workspace,l=t.type,this.gateway.isLoading=!0,u=this.getListUrl({cluster:r,workspace:n}),i={labelSelector:"kubesphere.io/gateway-type=".concat(l),includeUpper:!0},e.next=6,request.get(u,i);case 6:return c=e.sent,s=(0,_.default)(c,"items",[]),f=null===(a=(0,D.default)(s,(function(e){return R.default.gateway(e)})))||void 0===a?void 0:a.filter((function(e){return!e.isDeleteLoading})),d=(0,k.default)(f,(function(e){return"workspace"===e.gatewayType})),this.detail=d,this.gateway.data=d,this.gateway.isLoading=!1,e.abrupt("return",f);case 14:case"end":return e.stop()}}),e,this)}))),function(e){return I.apply(this,arguments)})},{key:"addGateway",value:(b=(0,d.default)(o.default.mark((function e(t,a){return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.submitting(request.post(this.getListUrl(t),a)));case 1:case"end":return e.stop()}}),e,this)}))),function(e,t){return b.apply(this,arguments)})},{key:"editGateway",value:(E=(0,d.default)(o.default.mark((function e(t,a){return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.submitting(request.put(this.getDetailUrl(t),a)));case 1:case"end":return e.stop()}}),e,this)}))),function(e,t){return E.apply(this,arguments)})},{key:"deleteGateway",value:(y=(0,d.default)(o.default.mark((function e(t){var a,r,n;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a=t.cluster,r=t.namespace,n=t.workspace,!t.isOld){e.next=3;break}return e.abrupt("return",this.submitting(request.delete(this.getOldGatewayUrl({cluster:a,namespace:r}))));case 3:return e.abrupt("return",this.submitting(request.delete(this.gatewayeditUrl({cluster:a,namespace:r,workspace:n}))));case 4:case"end":return e.stop()}}),e,this)}))),function(e){return y.apply(this,arguments)})},{key:"updateGateway",value:(i=(0,d.default)(o.default.mark((function e(t,a){var r;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r="".concat(this.gatewayeditUrl(t),"/upgrade"),e.abrupt("return",this.submitting(request.post(r,a)));case 2:case"end":return e.stop()}}),e,this)}))),function(e,t){return i.apply(this,arguments)})},{key:"getGatewayLogs",value:(l=(0,d.default)(o.default.mark((function e(t){var a,r,n,l,i,c,s;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=t.cluster,r=t.namespace,n=t.gatewayName,t.component,l=t.workspace,i=(0,u.default)(t,["cluster","namespace","gatewayName","component","workspace"]),this.logs.isLoading=!0,e.next=4,request.get("".concat(this.gatewayPodsUrl({cluster:a,namespace:r,gatewayName:n,workspace:l}),"/logs"),A(A({},i),{},{start_time:i.start_time?Math.floor(i.start_time/1e3):void 0,end_time:i.end_time?Math.floor(i.end_time/1e3):void 0,container_query:"controller",cluster:a}),{},(function(){return[]}));case 4:return c=e.sent,s=(0,_.default)(c,"query.records")||[],this.logs=A(A({data:s,total:(0,_.default)(c,"query.total")||s.length||0},i),{},{size:Number(i.size)||10,from:Number(i.from)||0,isLoading:!1}),e.abrupt("return",s);case 8:case"end":return e.stop()}}),e,this)}))),function(e){return l.apply(this,arguments)})},{key:"exportLinkFactory",value:function(e){var t=e.cluster,a=e.namespace,r=e.gatewayName,n=e.workspace,l=e.start_time,o=e.end_time,i=(0,u.default)(e,["cluster","namespace","gatewayName","workspace","start_time","end_time"]),c="".concat(this.gatewayPodsUrl({cluster:t,namespace:a,gatewayName:r,workspace:n}),"/logs");return"/".concat(c,"?").concat((0,w.stringify)(A(A({sort:"asc"},i),{},{start_time:Math.floor(l/1e3),end_time:Math.floor(o/1e3),operation:"export",cluster:t})))}},{key:"getGatewayPods",value:(r=(0,d.default)(o.default.mark((function e(t){var a,r,n;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a="".concat(this.gatewayPodsUrl(t),"/pods"),e.next=3,this.submitting(request.get(a,{limit:10,sortBy:"createTime"}));case 3:return r=e.sent,n=[],r&&r.totalItems>0&&(n=r.items.map((function(e){return R.default.pods(e)}))),this.gateway.data.pods=n,e.abrupt("return",n);case 8:case"end":return e.stop()}}),e,this)}))),function(e){return r.apply(this,arguments)})},{key:"getGatewayPodsList",value:(a=(0,d.default)(o.default.mark((function e(t){var a,r,l,i,c,s,f,d,p;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=t.cluster,t.name,r=t.gatewayName,l=t.namespace,i=t.workspace,c=t.more,t.component,s=t.search,f=(0,u.default)(t,["cluster","name","gatewayName","namespace","workspace","more","component","search"]),this.podList.isLoading=!0,f.sortBy||void 0!==f.ascending||(f.sortBy=T.LIST_DEFAULT_ORDER[this.module]||"createTime"),f.limit!==1/0&&-1!==f.limit||(f.limit=-1,f.page=1),f.limit=f.limit||10,e.next=7,request.get("".concat(this.gatewayPodsUrl({cluster:a,namespace:l,gatewayName:r,workspace:i}),"/pods"),A(A({},f),{},{name:s}),{},(function(){return[]}));case 7:return d=e.sent,p=((0,_.default)(d,"items")||[]).map((function(e){return A({cluster:a,namespace:e.metadata.name.split("kubesphere-router-")[1]},R.default.pods(e))})),this.podList.update(A(A({data:c?[].concat((0,n.default)(this.podList.data),(0,n.default)(p)):p,total:d.totalItems||d.total_count||p.length||0},f),{},{limit:Number(f.limit)||10,page:Number(f.page)||1,isLoading:!1},this.podList.silent?{}:{selectedRowKeys:[]})),e.abrupt("return",[]);case 11:case"end":return e.stop()}}),e,this)}))),function(e){return a.apply(this,arguments)})},{key:"scale",value:function(e,t){var a=(0,N.toJS)(this.gateway.data._originData);return(0,C.default)(a,"spec.values.controller.replicaCount",t),(0,C.default)(a,"metadata.resourceVersion",this.gateway.data.resourceVersion),this.editGateway(e,a)}},{key:"fetchList",value:(t=(0,d.default)(o.default.mark((function e(t){var a,r,l,i,c,s,f,d,p,m;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.cluster,l=t.namespace,i=t.workspace,c=t.more,t.component,s=t.type,f=(0,u.default)(t,["cluster","namespace","workspace","more","component","type"]),this.list.isLoading=!0,f.sortBy||void 0!==f.ascending||(f.sortBy=T.LIST_DEFAULT_ORDER[this.module]||"createTime"),f.limit!==1/0&&-1!==f.limit||(f.limit=-1,f.page=1),f.limit=f.limit||10,e.next=7,request.get("".concat(this.apiVersion).concat(this.getPath({cluster:r,workspace:i,namespace:l}),"/").concat("workspace"===s?"projectgateways":"gateways"),A({},f),{},(function(){return[]}));case 7:return d=e.sent,p=null===(a=((0,_.default)(d,"items")||[]).map((function(e){return A({cluster:r,namespace:e.metadata.name.split("kubesphere-router-")[1]},R.default.gateway(e))})))||void 0===a?void 0:a.filter((function(e){return!e.isDeleteLoading})),m=(0,S.default)(f,"labelSelector"),this.list.update(A(A({data:c?[].concat((0,n.default)(this.list.data),(0,n.default)(p)):p,total:d.totalItems||d.total_count||p.length||0},m),{},{limit:Number(f.limit)||10,page:Number(f.page)||1,isLoading:!1},this.list.silent?{}:{selectedRowKeys:[]})),e.abrupt("return",[]);case 12:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})}]),G}(I.default),c=(0,b.default)(i.prototype,"gateway",[N.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{data:{},isLoading:!0}}}),s=(0,b.default)(i.prototype,"podList",[N.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new M.default}}),f=(0,b.default)(i.prototype,"logs",[N.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new M.default}}),(0,b.default)(i.prototype,"getGatewayAppVersions",[N.action],Object.getOwnPropertyDescriptor(i.prototype,"getGatewayAppVersions"),i.prototype),(0,b.default)(i.prototype,"getHelmChart",[N.action],Object.getOwnPropertyDescriptor(i.prototype,"getHelmChart"),i.prototype),(0,b.default)(i.prototype,"getGateway",[N.action],Object.getOwnPropertyDescriptor(i.prototype,"getGateway"),i.prototype),(0,b.default)(i.prototype,"getGatewayReplica",[N.action],Object.getOwnPropertyDescriptor(i.prototype,"getGatewayReplica"),i.prototype),(0,b.default)(i.prototype,"getGatewayByProject",[N.action],Object.getOwnPropertyDescriptor(i.prototype,"getGatewayByProject"),i.prototype),(0,b.default)(i.prototype,"getNewGatewayByProject",[N.action],Object.getOwnPropertyDescriptor(i.prototype,"getNewGatewayByProject"),i.prototype),(0,b.default)(i.prototype,"getGatewayByWorkspace",[N.action],Object.getOwnPropertyDescriptor(i.prototype,"getGatewayByWorkspace"),i.prototype),(0,b.default)(i.prototype,"addGateway",[N.action],Object.getOwnPropertyDescriptor(i.prototype,"addGateway"),i.prototype),(0,b.default)(i.prototype,"editGateway",[N.action],Object.getOwnPropertyDescriptor(i.prototype,"editGateway"),i.prototype),(0,b.default)(i.prototype,"deleteGateway",[N.action],Object.getOwnPropertyDescriptor(i.prototype,"deleteGateway"),i.prototype),(0,b.default)(i.prototype,"updateGateway",[N.action],Object.getOwnPropertyDescriptor(i.prototype,"updateGateway"),i.prototype),(0,b.default)(i.prototype,"getGatewayLogs",[N.action],Object.getOwnPropertyDescriptor(i.prototype,"getGatewayLogs"),i.prototype),(0,b.default)(i.prototype,"getGatewayPods",[N.action],Object.getOwnPropertyDescriptor(i.prototype,"getGatewayPods"),i.prototype),(0,b.default)(i.prototype,"getGatewayPodsList",[N.action],Object.getOwnPropertyDescriptor(i.prototype,"getGatewayPodsList"),i.prototype),(0,b.default)(i.prototype,"scale",[N.action],Object.getOwnPropertyDescriptor(i.prototype,"scale"),i.prototype),(0,b.default)(i.prototype,"fetchList",[N.action],Object.getOwnPropertyDescriptor(i.prototype,"fetchList"),i.prototype),i);t.default=L},,function(e,t,a){"use strict";a(15);var r=a(20);a(5),a(84),a(4),a(23),a(17),a(85),a(75),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(45),a(5),a(84),a(42),a(4),a(23),a(57),a(17),a(85),a(75),a(1079);var n=r(a(315)),l=r(a(58)),u=r(a(36)),o=r(a(37)),i=r(a(55)),c=r(a(56)),s=r(a(51)),f=r(a(0)),d=r(a(1)),p=r(a(3)),m=r(a(2040));function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,s.default)(e);if(t){var n=(0,s.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,c.default)(this,a)}}var v=function(e){(0,i.default)(a,e);var t=h(a);function a(){var e;(0,u.default)(this,a);for(var r=arguments.length,n=new Array(r),l=0;l12?g:12,"px"),f.default.createElement("span",(0,n.default)({className:(0,p.default)(m.default.letter,u),style:h},c),v)}return null}return f.default.createElement("img",(0,n.default)({src:d,"data-origin-url":d,className:(0,p.default)(m.default.img,u),ref:function(t){e.img=t}},c))}}]),a}(f.default.Component);t.default=v,v.propTypes={className:d.default.string,iconLetter:d.default.string,iconSize:d.default.number,isBase64Str:d.default.bool,src:d.default.string},v.defaultProps={iconSize:32,src:"",iconLetter:"",isBase64Str:!1}},,,function(e,t,a){"use strict";a(15);var r=a(157),n=a(20);a(4),a(23),a(17),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(45),a(42),a(4),a(23),a(57),a(17);var l=n(a(30)),u=n(a(36)),o=n(a(37)),i=n(a(55)),c=n(a(56)),s=n(a(51)),f=r(a(0)),d=n(a(1)),p=n(a(3)),m=n(a(2111));function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,s.default)(e);if(t){var n=(0,s.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,c.default)(this,a)}}var v=function(e){(0,i.default)(a,e);var t=h(a);function a(){return(0,u.default)(this,a),t.apply(this,arguments)}return(0,o.default)(a,[{key:"render",value:function(){var e=this.props,t=e.className,a=e.type,r=e.flicker;return f.default.createElement("i",{className:(0,p.default)(m.default.icon,m.default[a.toLowerCase()],(0,l.default)({},m.default.flicker,r),t)})}}]),a}(f.PureComponent);t.default=v,v.propTypes={className:d.default.string,type:d.default.string,flicker:d.default.bool},v.defaultProps={type:"Running",flicker:!1}},,function(e,t,a){"use strict";a(15);var r=a(157),n=a(20);a(4),a(22),a(23),a(17),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var l=n(a(315)),u=n(a(36)),o=n(a(37)),i=n(a(55)),c=n(a(56)),s=n(a(51));a(45),a(29),a(42),a(4),a(22),a(23),a(57),a(17),a(38),a(32);var f=r(a(0)),d=n(a(1)),p=n(a(3)),m=a(186),h=n(a(2053));function v(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,s.default)(e);if(t){var n=(0,s.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,c.default)(this,a)}}var g=(0,f.lazy)((function(){return Promise.all([a.e(0),a.e(13)]).then(a.t.bind(null,5288,7))})),y=function(e){(0,i.default)(a,e);var t=v(a);function a(){return(0,u.default)(this,a),t.apply(this,arguments)}return(0,o.default)(a,[{key:"render",value:function(){var e=this.props,t=e.className,a=e.mode,r=e.options,n=e.value,u=e.onChange;return f.default.createElement(f.Suspense,{fallback:f.default.createElement(m.Loading,{className:"ks-page-loading"})},f.default.createElement(g,(0,l.default)({},r,{className:(0,p.default)(h.default.editor,t),value:n,mode:a,onChange:u})))}}]),a}(f.PureComponent);y.propTypes={value:d.default.oneOfType([d.default.string,d.default.object,d.default.arrayOf(d.default.string),d.default.arrayOf(d.default.object)]),mode:d.default.string,options:d.default.object,onChange:d.default.func},y.defaultProps={value:"",mode:"yaml",options:{},onChange:function(){}};var E=y;t.default=E},function(e,a,r){"use strict";var n=r(20);r(12),r(5),r(187),r(11),r(6),r(18),r(87),r(97),r(9),r(13),r(10),r(4),r(23),r(139),r(24),r(17),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(45),r(5),r(187),r(11),r(6),r(18),r(28),r(87),r(97),r(42),r(34),r(15),r(9),r(13),r(10),r(4),r(23),r(57),r(139),r(251),r(24),r(252),r(193),r(17),r(7);var l=n(r(315)),u=n(r(30)),o=n(r(61)),i=n(r(36)),c=n(r(37)),s=n(r(55)),f=n(r(56)),d=n(r(51)),p=r(186),m=n(r(3)),h=n(r(198)),v=n(r(63)),g=n(r(1)),y=n(r(0)),E=n(r(1479)),b=n(r(2061));function _(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function O(e){for(var t=1;t=u?null:y.default.createElement("div",{className:"text-right"},y.default.createElement(p.Button,{className:E.default.add,onClick:this.handleAdd,disabled:!this.isAddEnable()},r)))}}],[{key:"getValues",value:function(e){var t=e.value||{},a=[],r=[],n=[];return Object.keys(t).forEach((function(l){e.hiddenKeys.some((function(e){return new RegExp(e).test(l)}))?a.push({key:l,value:t[l]}):e.readOnlyKeys.some((function(e){return new RegExp(e).test(l)}))?r.push({key:l,value:t[l]}):n.push({key:l,value:t[l]})})),(0,v.default)(n)&&(0,v.default)(r)&&n.push({key:""}),{hiddenValues:a,readOnlyValues:r,arrayValues:n}}}]),r}(y.default.Component);a.default=C,C.propTypes={name:g.default.string,value:g.default.object,hiddenKeys:g.default.arrayOf(g.default.string),readOnlyKeys:g.default.arrayOf(g.default.string),controlled:g.default.bool,onChange:g.default.func,onError:g.default.func,maxLen:g.default.number},C.defaultProps={name:"",value:{},hiddenKeys:[],readOnlyKeys:[],controlled:!1,onChange:function(){}}},,,function(e,t,a){"use strict";var r=a(20);a(12),a(5),a(11),a(31),a(6),a(29),a(73),a(48),a(137),a(9),a(13),a(10),a(4),a(316),a(7),a(32),Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.getTimeRange=t.getMinuteValue=void 0;var n=r(a(43));a(41);var l=r(a(44)),u=r(a(61)),o=r(a(30)),i=r(a(58)),c=r(a(65)),s=r(a(36)),f=r(a(37)),d=r(a(49));r(a(66));a(12),a(5),a(11),a(31),a(6),a(29),a(73),a(28),a(48),a(442),a(137),a(34),a(15),a(9),a(13),a(10),a(4),a(316),a(436),a(22),a(7),a(32);var p,m,h,v,g,y=a(14),E=r(a(63)),b=r(a(60)),_=r(a(26)),O=r(a(74)),S=a(52),C=a(794);function D(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function k(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:"60s",t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],a=e.slice(-1),r=parseFloat(e);switch(a){default:case"s":break;case"m":r*=60;break;case"h":r*=3600;break;case"d":r=24*r*60*60}return t?"".concat(r,"s"):r};t.getMinuteValue=N;var T=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.step,a=void 0===t?"600s":t,r=e.times,n=void 0===r?20:r,l=parseFloat(a)*n,u=Math.floor(Date.now()/1e3),o=Math.floor(u-l);return{start:o,end:u}};t.getTimeRange=T;var R=(p=function(){function e(){var t=this,a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,s.default)(this,e),(0,c.default)(this,"isLoading",m,this),(0,c.default)(this,"isRefreshing",h,this),(0,c.default)(this,"etcdChecking",v,this),(0,c.default)(this,"supportETCD",g,this),this.isConfirmSupportETCD=!1,this.data={},this.resourceName="resource_name",this.getApi=function(e){var a=e.namespace,r=e.workspace,n=e.component,l=e.module,u=e.container,o=e.nodeName,i=e.persistentvolumeclaim,c=e.pvc,s=e.pod,f=e.workload;return n||l?"".concat(t.apiVersion,"/component_metrics"):s?"".concat(t.apiVersion,"/pod_metrics"):u?"".concat(t.apiVersion,"/container_metrics"):o?"".concat(t.apiVersion,"/node_metrics"):i||c?"".concat(t.apiVersion,"/persistentvolumeclaim_metrics"):f?"".concat(t.apiVersion,"/workload_metrics"):a?"".concat(t.apiVersion,"/namespace_metrics"):r?"".concat(t.apiVersion,"/workspace_metrics"):globals.app.isMultiCluster&&t.cluster?"".concat(t.apiVersion,"/cluster_metrics"):t.apiVersion},this.getParams=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=e.start,r=e.end,n=e.step,l=void 0===n?"600s":n,u=e.times,o=void 0===u?20:u,c=e.resources,s=void 0===c?[]:c,f=e.metrics,d=void 0===f?[]:f,p=e.cluster_resources_filter,m=void 0===p?t.cluster_resources_filter:p,h=e.last,v=void 0!==h&&h,g=e.pvcName,y=e.nodeName,b=e.module,_=(0,i.default)(e,["start","end","step","times","resources","metrics","cluster_resources_filter","last","pvcName","nodeName","module"]),O=k({},_);if((b||t.module)&&(O.component=b||t.module,delete O.module),g&&(O.pvc=g),y&&(O.node=y),t.cluster&&(O.cluster=t.cluster),!v&&(Object.assign(O,{start:a,end:r,step:N(l),times:o}),!a||!r)){var S=T(O);O.start=S.start,O.end=S.end}return O.start&&(O.start=Math.floor(O.start)),O.end&&(O.end=Math.floor(O.end)),(0,E.default)(s)||(O.resources_filter="".concat(s.join("|"))),(0,E.default)(m)||(O.cluster_resources_filter="".concat(m.join("|"))),(0,E.default)(d)||(O.metrics_filter="".concat(d.join("|"))),t.handleParams(O)},this.handleParams=function(e){return e},this.getResult=function(e){var t={},a=(0,b.default)(e)?e:(0,_.default)(e,"results",[])||[];if((0,E.default)(a)){var r=(0,_.default)(e,"metric_name");r&&(t[r]=e)}else a.forEach((function(e,a){t[e.metric_name||a+1]=e,e.metric_name=e.metric_name||a+1}));return t},this.getNewValues=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],a=(0,E.default)(e)?[]:(0,u.default)(e),r=t||[];return(0,E.default)(r)||(a.length>10&&a.shift(),a.push(r)),a},this.getNewRefreshedResult=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=(0,u.default)(a);return e.forEach((function(e,a){var n=(0,_.default)(e,"metric.".concat(t.resourceName)),l=null;if(n){var u=r.find((function(e){return(0,_.default)(e,"metric.".concat(t.resourceName))===n}));(0,E.default)(u)?r.push(e):l=u}else l=r[a];if(!(0,E.default)(l)){var o=t.getNewValues(l.values,e.value);(0,O.default)(l,"values",o)}})),r},this.getRefreshResult=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=(0,y.toJS)(a);return(0,E.default)(r)?e:(Object.values(e).forEach((function(e){var a=(0,_.default)(e,"metric_name"),n=r[a];if(n){var l=(0,_.default)(e,"data.result")||[],u=(0,_.default)(n,"data.result",(0,_.default)(n,"data.results"))||[];(0,O.default)(n,"data.result",t.getNewRefreshedResult(l,u))}})),r)},this.getMoreResult=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=(0,y.toJS)(t);return(0,E.default)(a)?e:(Object.values(e).forEach((function(e){var t=(0,_.default)(e,"metric_name"),r=a[t];if(r){var n=(0,_.default)(r,"data.result",(0,_.default)(r,"data.results"))||[],l=(0,_.default)(e,"data.result")||[],o=[].concat((0,u.default)(n),(0,u.default)(l));(0,O.default)(r,"data.result",o)}})),a)},this.checkEtcd=function(){t.etcdChecking=!0,t.supportETCD=globals.app.hasMonitoringExtensionExtraModule("enable-etcd-monitoring"),t.etcdChecking=!1},this.getStatisticUrl=function(e){var t=e.cluster,a=e.namespace,r=e.workspace,n=t?"/klusters/".concat(t):"",l=a?"/namespaces/".concat(a):"",u=r?"/workspaces/".concat(r):"",o="/resources.kubesphere.io/v1alpha3";return t||(o="/tenant.kubesphere.io/v1beta1"),"/kapis".concat(o).concat(n).concat(l).concat(u,"/metrics")},Object.keys(a).forEach((function(e){return(0,O.default)(t,e,a[e])}))}var t,a;return(0,f.default)(e,[{key:"fetchMetrics",value:(a=(0,l.default)(n.default.mark((function e(t){var a,r,l,u,o,c,s,f,d,p,m;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=t.autoRefresh,r=void 0!==a&&a,l=t.more,u=void 0!==l&&l,o=t.fillZero,c=void 0===o||o,s=(0,i.default)(t,["autoRefresh","more","fillZero"]),r?(s.last=!0,this.isRefreshing=!0):this.isLoading=!0,s.cluster&&(this.cluster=s.cluster),this.cluster&&(s.cluster=this.cluster),f=this.getParams(s),d=this.getApi(s),e.next=8,(0,S.to)(request.get(d,f));case 8:return p=e.sent,m=this.getResult(p),r&&(m=this.getRefreshResult(m,this.data)),u&&(m=this.getMoreResult(m,this.data)),this.data=c?(0,C.fillEmptyMetrics)(f,m):m,this.isLoading=!1,this.isRefreshing=!1,e.abrupt("return",m);case 16:case"end":return e.stop()}}),e,this)}))),function(e){return a.apply(this,arguments)})},{key:"fetchStatisticsQuery",value:(t=(0,l.default)(n.default.mark((function e(t){var a,r,l,u,o,i;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=t.cluster,r=t.namespace,l=t.workspace,u=this.getStatisticUrl({cluster:a,namespace:r,workspace:l}),e.next=4,(0,S.to)(request.get(u));case 4:return o=e.sent,i=this.getResult(o),e.abrupt("return",i);case 7:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})},{key:"apiVersion",get:function(){return"kapis/monitoring.kubesphere.io/v1beta1"}}]),e}(),m=(0,d.default)(p.prototype,"isLoading",[y.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),h=(0,d.default)(p.prototype,"isRefreshing",[y.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),v=(0,d.default)(p.prototype,"etcdChecking",[y.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),g=(0,d.default)(p.prototype,"supportETCD",[y.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),(0,d.default)(p.prototype,"fetchMetrics",[y.action],Object.getOwnPropertyDescriptor(p.prototype,"fetchMetrics"),p.prototype),(0,d.default)(p.prototype,"fetchStatisticsQuery",[y.action],Object.getOwnPropertyDescriptor(p.prototype,"fetchStatisticsQuery"),p.prototype),p);t.default=R},function(e,a,r){"use strict";r(15);var n=r(20);r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(42),r(4),r(23),r(57),r(17);var l=n(r(36)),u=n(r(37)),o=n(r(55)),i=n(r(56)),c=n(r(51)),s=n(r(0)),f=n(r(1)),d=n(r(3)),p=n(r(2320));function m(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,c.default)(e);if(t){var n=(0,c.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,i.default)(this,a)}}var h=function(e){(0,o.default)(r,e);var a=m(r);function r(){return(0,l.default)(this,r),a.apply(this,arguments)}return(0,u.default)(r,[{key:"render",value:function(){var e=this.props,a=e.className,r=e.img,n=e.desc;return s.default.createElement("div",{className:(0,d.default)(p.default.wrapper,a)},s.default.createElement("img",{src:r,alt:"No data"}),s.default.createElement("div",{className:p.default.content},t(n)))}}]),r}(s.default.PureComponent);a.default=h,h.propTypes={className:f.default.string,img:f.default.string,desc:f.default.string},h.defaultProps={img:"/assets/empty-card.svg",desc:"NO_DATA"}},,,function(e,a,r){"use strict";var n=r(20);r(12),r(5),r(11),r(31),r(6),r(86),r(18),r(16),r(98),r(9),r(13),r(10),r(4),r(316),r(23),r(24),r(17),r(188),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(45),r(5),r(11),r(31),r(6),r(86),r(18),r(28),r(42),r(16),r(34),r(15),r(98),r(9),r(13),r(10),r(4),r(316),r(22),r(23),r(57),r(24),r(17),r(188),r(7);var l=n(r(315)),u=n(r(96)),o=n(r(43)),i=n(r(30)),c=n(r(58));r(41);var s,f,d,p=n(r(44)),m=n(r(36)),h=n(r(37)),v=n(r(55)),g=n(r(56)),y=n(r(51)),E=n(r(0)),b=r(14),_=r(239),O=n(r(1)),S=n(r(806)),C=n(r(63)),D=n(r(198)),k=n(r(26)),N=n(r(854)),T=r(186),R=n(r(3)),w=n(r(789)),I=r(791),M=n(r(105)),P=r(72),A=r(794),j=n(r(452)),L=n(r(325)),x=n(r(1374)),U=n(r(989)),z=n(r(1408)),F=n(r(1409)),G=r(52),V=n(r(3883)),B=n(r(1823));function Y(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function W(e){for(var t=1;t0&&void 0!==i[0]?i[0]:{},a=t.noMetrics,r=t.silent,l=(0,c.default)(t,["noMetrics","silent"]),!(0,C.default)(n.state.params)){e.next=4;break}return n.store.list.isLoading=!1,e.abrupt("return");case 4:return u=n.props.limit,r&&(n.store.list.silent=!0),e.next=8,n.store.fetchList(W(W({limit:u},n.state.params),l));case 8:n.store.list.silent=!1,a||n.fetchMetrics();case 10:case"end":return e.stop()}}),e)}))),n.fetchMetrics=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=n.state.selectCluster,a=n.store.list,r=a.data,l=a.isLoading;return!((0,C.default)(r)||l||(0,C.default)(n.state.params))&&(!!globals.app.hasClusterModule(t,"whizard-monitoring")&&void n.monitorStore.fetchMetrics(W(W({step:"1m",times:30,resources:r.map((function(e){return e.name})),metrics:Object.values((0,G.hideGPUByLicense)(H,t))},n.state.params),e)))},n.getPagination=function(){var e=n.store.list;return{page:e.page,limit:e.limit,total:e.total}},n.getPodMetrics=function(e){var t=n.monitorStore.data,a={},r=n.state.cluster;return Object.entries((0,G.hideGPUByLicense)(H,r)).forEach((function(r){var n=(0,u.default)(r,2),l=n[0],o=n[1],i=(0,k.default)(t,"".concat(o,".data.result"))||[];a[l]=i.find((function(t){return(0,k.default)(t,"metric.pod")===e.name}))})),a},n.handleSearch=function(e){n.searchValue=e,n.fetchData({name:e}).then((function(){n.props.onSearch(e)}))},n.handleRefresh=function(){var e=n.searchValue?{name:n.searchValue}:{};n.fetchData(e).then((function(){var t=n.props,a=t.onSearch,r=t.onRefresh;(0,C.default)(e)?r():a(n.searchValue)}))},n.handlePage=function(e){n.fetchData({page:e}).then((function(){n.props.onPage(e)}))},n.handleExpand=function(e){n.setState((function(t){return{expandItem:t.expandItem===e?"":e}}))},n.getClustersOptions=function(){return n.props.clusters.map((function(e){return{label:E.default.createElement("span",null,(0,G.showNameAndAlias)(e,"cluster")),value:e}}))},n.handleClusterChange=function(e){n.setState({selectCluster:e,params:n.getParams(e)},(function(){n.fetchData(),n.initWebsocket()}))},n.renderHeader=function(){var e=n.props.isFederated,a=n.state.selectCluster;return E.default.createElement("div",{className:B.default.header},e&&E.default.createElement(T.Select,{key:a,name:"cluster",prefixIcon:E.default.createElement(T.Icon,{name:"cluster"}),className:B.default.cluster,value:a,options:n.getClustersOptions(),onChange:n.handleClusterChange}),E.default.createElement(T.InputSearch,{className:B.default.search,name:"search",placeholder:t("SEARCH_BY_NAME"),onSearch:n.handleSearch}),E.default.createElement("div",{className:B.default.actions},E.default.createElement(T.Button,{type:"flat",icon:"refresh",onClick:n.handleRefresh})))},n.handleShowEvents=function(e){n.trigger("pod.events",{detail:e,title:E.default.createElement("span",null,E.default.createElement(T.Icon,{name:"event"}),t("VIEW_EVENTS")),isEdgeWize:n.props.isEdgeWize,cluster:e.cluster})},n.renderFooter=function(){var e=n.getPagination(),a=e.total;return E.default.createElement(T.Level,{className:B.default.footer},E.default.createElement(T.LevelLeft,null,t("TOTAL_ITEMS",{num:a})),E.default.createElement(T.LevelRight,null,E.default.createElement(T.Pagination,(0,l.default)({},e,{onChange:n.handlePage}))))};var i=(0,k.default)(n.props.rootStore,"routing.location.pathname","").indexOf("observability")>-1;n.store=e.isEdgeWize?new x.default:new j.default,n.monitorStore=i?new F.default:e.isEdgeWize?new z.default:new U.default;var s=e.isFederated?(0,k.default)(e,"clusters[0]"):e.detail.cluster;return n.state={expandItem:"",selectCluster:s||"",params:n.getParams(s)},n.websocket=new L.default,n.initWebsocket(),n}return(0,h.default)(r,[{key:"initWebsocket",value:function(){var e=this,t=this.props.getReplica,a=this.state,r=a.selectCluster,n=a.params,l=void 0===n?{}:n,u=l.namespace,o=l.labelSelector,i="".concat(this.props.isEdgeWize?P.API_VERSIONS.edgewize:"").concat(r?"/".concat(r):"","/api/v1/watch/namespaces/").concat(u,"/pods?labelSelector=").concat(o);i&&u&&o&&(this.websocket.watch(i),this.fetchData=(0,N.default)(this.fetchData,2e3),this.disposer=(0,b.reaction)((function(){return e.websocket.message}),(function(a){if("Pod"===a.object.kind)if("MODIFIED"===a.type){var n=W({cluster:r},M.default.pods((0,b.toJS)(a.object)));e.store.list.updateItem(n),t&&t()}else"DELETED"!==a.type&&"ADDED"!==a.type||(e.fetchData({silent:!0}),t&&t())})))}},{key:"componentDidUpdate",value:function(e){var t=this,a=this.props,r=a.detail,n=a.details,l=a.isFederated,u=l&&!(0,S.default)(n,e.details);if(r!==e.detail||u){var o=l?(0,k.default)(this.props,"clusters[0]"):r.cluster;this.setState({expandItem:"",selectCluster:o||"",params:this.getParams(o)},(function(){t.fetchData(),t.initWebsocket()}))}}},{key:"componentDidMount",value:function(){this.fetchData(),(0,A.startAutoRefresh)(this,{method:"fetchMetrics",leading:!1})}},{key:"componentWillUnmount",value:function(){(0,A.stopAutoRefresh)(this),this.disposer&&this.disposer()}},{key:"renderContent",value:function(){var e=this,a=this.props,r=a.prefix,n=a.isFederated,l=a.isEdgeWize,u=a.showMonitoring,o=this.store.list,i=o.data,c=o.isLoading,s=o.silent,f=this.state.selectCluster,d=E.default.createElement("div",{className:B.default.body},(0,C.default)(i)?E.default.createElement("div",{className:B.default.empty},t("NO_RESOURCE_FOUND")):i.map((function(t){return E.default.createElement(V.default,{isEdgeWize:l,key:t.uid,prefix:n?"".concat(r,"/clusters/").concat(f):r,detail:t,showMonitoring:u,metrics:e.getPodMetrics(t),loading:e.monitorStore.isLoading,refreshing:e.monitorStore.isRefreshing,isExpand:e.state.expandItem===t.uid,onExpand:e.handleExpand,onShowEvents:e.handleShowEvents})})));return s?d:E.default.createElement(T.Loading,{spinning:c},d)}},{key:"render",value:function(){var e=this.props,a=e.className,r=e.title,n=e.hideHeader,l=e.hideFooter,u=e.noWrapper,o=this.store.list.data;return u?this.renderContent():E.default.createElement(w.default,{className:(0,R.default)(B.default.main,a),title:t(r),empty:t("EMPTY_WRAPPER",{resource:t("POD")}),isEmpty:(0,C.default)(o)},!n&&this.renderHeader(),this.renderContent(),!l&&this.renderFooter())}}]),r}(E.default.Component),f.propTypes={prefix:O.default.string,isEdgeWize:O.default.bool,title:O.default.string,detail:O.default.object,details:O.default.object,hideHeader:O.default.bool,hideFooter:O.default.bool,isFederated:O.default.bool,onSearch:O.default.func,onRefresh:O.default.func,onPage:O.default.func,limit:O.default.number,showMonitoring:O.default.bool},f.defaultProps={title:"PODS",detail:{},details:{},isEdgeWize:!1,hideHeader:!1,hideFooter:!1,isFederated:!1,showMonitoring:!0,onSearch:function(){},onRefresh:function(){},onPage:function(){}},s=d))||s)||s)||s;a.default=Q},function(e,t,a){"use strict";a(15);var r=a(157),n=a(20);a(5),a(4),a(23),a(17),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(45),a(5),a(42),a(4),a(23),a(57),a(17);var l=n(a(30)),u=n(a(36)),o=n(a(37)),i=n(a(55)),c=n(a(56)),s=n(a(51)),f=n(a(63)),d=r(a(0)),p=n(a(1)),m=n(a(3)),h=a(186),v=n(a(2044));function g(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,s.default)(e);if(t){var n=(0,s.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,c.default)(this,a)}}var y=function(e){(0,i.default)(a,e);var t=g(a);function a(){var e;(0,u.default)(this,a);for(var r=arguments.length,n=new Array(r),l=0;l0&&void 0!==d[0]?d[0]:{},a=t.cluster,r=t.namespace,n=t.module,l=(0,u.default)(t,["cluster","namespace","module"]),this.list.isLoading=!0,n&&(this.module=n),i=l,e.next=6,request.get(this.getListUrl({cluster:a,namespace:r,module:n}),i,{},(function(){return{items:[]}}));case 6:return c=e.sent,s=Array.isArray(c.items)?c.items.map((function(e){return O({cluster:a,module:n||f.module,config:(0,E.getValueObj)((0,y.safeAtob)((0,v.default)(e,'data["sink.yaml"]',"")))},f.mapper(e))})):[],this.list.update({data:s,total:c.items.length||0,isLoading:!1}),e.abrupt("return",s);case 10:case"end":return e.stop()}}),e,this)}))),function(){return r.apply(this,arguments)})},{key:"fetchDetail",value:(a=(0,c.default)(o.default.mark((function e(t){var a,r;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.isLoading=!0,e.next=3,request.get(this.getDetailUrl(t));case 3:return a=e.sent,(r=O(O({},t),this.mapper(a))).config=(0,E.getValueObj)((0,y.safeAtob)((0,v.default)(r._originData,'data["sink.yaml"]',""))),this.detail=r,this.isLoading=!1,e.abrupt("return",r);case 9:case"end":return e.stop()}}),e,this)}))),function(e){return a.apply(this,arguments)})},{key:"apiVersion",get:function(){return b.API_VERSIONS[this.module]}}]),p}(n(r(68)).default),(0,h.default)(i.prototype,"validateImageRegistrySecret",[g.action],Object.getOwnPropertyDescriptor(i.prototype,"validateImageRegistrySecret"),i.prototype),(0,h.default)(i.prototype,"setDefault",[g.action],Object.getOwnPropertyDescriptor(i.prototype,"setDefault"),i.prototype),(0,h.default)(i.prototype,"fetchListByK8s",[g.action],Object.getOwnPropertyDescriptor(i.prototype,"fetchListByK8s"),i.prototype),(0,h.default)(i.prototype,"fetchDetail",[g.action],Object.getOwnPropertyDescriptor(i.prototype,"fetchDetail"),i.prototype),i);a.default=C},function(e,t,a){"use strict";var r=a(20);a(12),a(5),a(11),a(6),a(18),a(27),a(9),a(13),a(10),a(4),a(23),a(17),a(7),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(12),a(45),a(5),a(11),a(6),a(18),a(28),a(42),a(27),a(34),a(15),a(9),a(13),a(10),a(4),a(22),a(23),a(57),a(17),a(7);var n=r(a(43)),l=r(a(61)),u=r(a(58));a(41);var o,i=r(a(44)),c=r(a(30)),s=r(a(36)),f=r(a(37)),d=r(a(55)),p=r(a(56)),m=r(a(51)),h=r(a(49)),v=a(14),g=r(a(26)),y=r(a(189)),E=a(72),b=r(a(105));function _(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function O(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};return"".concat(e.apiVersion).concat(e.getPath(t),"/").concat(e.module)},e}return(0,f.default)(C,[{key:"fetchChildResource",value:(v=(0,i.default)(n.default.mark((function e(){var t,a,r,o,i,c,s,f,d=this,p=arguments;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=p.length>0&&void 0!==p[0]?p[0]:{},a=t.kind,r=t.cluster,o=t.more,i=t.group,c=(0,u.default)(t,["kind","cluster","more","group"]),this.list.isLoading=!0,c.sortBy||void 0!==c.ascending||(c.sortBy=E.LIST_DEFAULT_ORDER[this.module]||"createTime"),c.limit!==1/0&&-1!==c.limit||(c.limit=-1,c.page=1),c.limit=c.limit||10,e.next=7,request.get("".concat(this.getDetailUrl({cluster:r,name:i}),"/").concat(a),this.getFilterParams(c));case 7:return s=e.sent,f=((0,g.default)(s,"items")||[]).map((function(e){return O({cluster:r},d.edgeNodeMapper(e))})),this.list.update(O(O({data:o?[].concat((0,l.default)(this.list.data),(0,l.default)(f)):f,total:s.totalItems||s.totalCount||s.total_count||f.length||0},c),{},{limit:Number(c.limit)||10,page:Number(c.page)||1,isLoading:!1},this.list.silent?{}:{selectedRowKeys:[]})),e.abrupt("return",{data:f,total:s.totalItems});case 11:case"end":return e.stop()}}),e,this)}))),function(){return v.apply(this,arguments)})},{key:"fetchResourceList",value:(h=(0,i.default)(n.default.mark((function e(t){var a,r,l,u,o;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=t.cluster,r=t.namespace,l="/kapis/resources.kubesphere.io/v1alpha3".concat(this.getPath({cluster:a}),"/").concat(this.module).concat(r?"?labelSelector=apps.edgewize.io/namespace-".concat(r):""),e.next=4,request.get(l);case 4:return u=e.sent,o=(0,g.default)(u,"items"),e.abrupt("return",o);case 7:case"end":return e.stop()}}),e,this)}))),function(e){return h.apply(this,arguments)})},{key:"boundNamespace",value:(m=(0,i.default)(n.default.mark((function e(t){var a,r,l;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=t.cluster,r=t.group,l=t.namespace,e.abrupt("return",this.submitting(request.post("".concat(this.getDetailUrl({cluster:a,name:r}),"/namespaces/").concat(l))));case 2:case"end":return e.stop()}}),e,this)}))),function(e){return m.apply(this,arguments)})},{key:"unboundNamespace",value:(p=(0,i.default)(n.default.mark((function e(t){var a,r,l;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=t.cluster,r=t.group,l=t.namespace,e.abrupt("return",this.submitting(request.delete("".concat(this.getDetailUrl({cluster:a,name:r}),"/namespaces/").concat(l))));case 2:case"end":return e.stop()}}),e,this)}))),function(e){return p.apply(this,arguments)})},{key:"batchBoundNamespaces",value:(c=(0,i.default)(n.default.mark((function e(t){var a,r,l,u,o;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=t.cluster,r=t.group,l=t.namespaces,u="".concat(this.getDetailUrl({cluster:a,name:r}),"/namespaces"),o=l.map((function(e){return{op:"add",path:"/metadata/labels/apps.edgewize.io~1namespace-".concat(e),value:""}})),e.abrupt("return",this.submitting(request.patch(u,o)));case 4:case"end":return e.stop()}}),e,this)}))),function(e){return c.apply(this,arguments)})},{key:"batchUnboundNamespaces",value:(o=(0,i.default)(n.default.mark((function e(t){var a,r,l,u,o;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=t.cluster,r=t.group,l=t.namespaces,u="".concat(this.getDetailUrl({cluster:a,name:r}),"/namespaces"),o=l.map((function(e){return{op:"remove",path:"/metadata/labels/apps.edgewize.io~1namespace-".concat(e),value:""}})),e.abrupt("return",this.submitting(request.patch(u,o)));case 4:case"end":return e.stop()}}),e,this)}))),function(e){return o.apply(this,arguments)})},{key:"addGroupNode",value:(r=(0,i.default)(n.default.mark((function e(t){var a,r,l;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=t.cluster,r=t.group,l=t.node,e.abrupt("return",this.submitting(request.post("".concat(this.getDetailUrl({cluster:a,name:r}),"/nodes/").concat(l))));case 2:case"end":return e.stop()}}),e,this)}))),function(e){return r.apply(this,arguments)})},{key:"fetchAllNamespaces",value:(a=(0,i.default)(n.default.mark((function e(){var t,a,r,l,o,i=this,c=arguments;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=c.length>0&&void 0!==c[0]?c[0]:{},a=t.cluster,r=(0,u.default)(t,["cluster"]),e.next=3,request.get("".concat(this.getResourceUrl({cluster:a}),"/namespaces"),r);case 3:return l=e.sent,o=((0,g.default)(l,"items")||[]).map((function(e){return O({cluster:a},i.edgeNodeMapper(e))})),e.abrupt("return",o);case 6:case"end":return e.stop()}}),e,this)}))),function(){return a.apply(this,arguments)})},{key:"fetchListProjectGroups",value:(t=(0,i.default)(n.default.mark((function e(){var t,a,r,o,i,c,s,f,d,p=this,m=arguments;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=m.length>0&&void 0!==m[0]?m[0]:{},a=t.cluster,r=t.workspace,o=t.namespace,i=t.more,c=t.devops,s=(0,u.default)(t,["cluster","workspace","namespace","more","devops"]),this.list.isLoading=!0,s.sortBy||void 0!==s.ascending||(s.sortBy=E.LIST_DEFAULT_ORDER[this.module]||"createTime"),s.limit!==1/0&&-1!==s.limit||(s.limit=-1,s.page=1),s.limit=s.limit||10,e.next=7,request.get(this.getResourceUrl({cluster:a,workspace:r,namespace:o,devops:c}),this.getFilterParams(s));case 7:return f=e.sent,d=((0,g.default)(f,"items")||[]).map((function(e){return O({cluster:a,namespace:o,workspace:r},p.mapper(e))})),this.list.update(O(O({data:i?[].concat((0,l.default)(this.list.data),(0,l.default)(d)):d,total:f.totalItems||f.totalCount||f.total_count||d.length||0},(0,y.default)(s,"labelSelector")),{},{limit:Number(s.limit)||10,page:Number(s.page)||1,isLoading:!1},this.list.silent?{}:{selectedRowKeys:[]})),e.abrupt("return",d);case 11:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})},{key:"edgeNodeMapper",get:function(){return b.default.edgenodes}}]),C}(r(a(68)).default),(0,h.default)(o.prototype,"fetchChildResource",[v.action],Object.getOwnPropertyDescriptor(o.prototype,"fetchChildResource"),o.prototype),(0,h.default)(o.prototype,"fetchResourceList",[v.action],Object.getOwnPropertyDescriptor(o.prototype,"fetchResourceList"),o.prototype),(0,h.default)(o.prototype,"boundNamespace",[v.action],Object.getOwnPropertyDescriptor(o.prototype,"boundNamespace"),o.prototype),(0,h.default)(o.prototype,"unboundNamespace",[v.action],Object.getOwnPropertyDescriptor(o.prototype,"unboundNamespace"),o.prototype),(0,h.default)(o.prototype,"batchBoundNamespaces",[v.action],Object.getOwnPropertyDescriptor(o.prototype,"batchBoundNamespaces"),o.prototype),(0,h.default)(o.prototype,"batchUnboundNamespaces",[v.action],Object.getOwnPropertyDescriptor(o.prototype,"batchUnboundNamespaces"),o.prototype),(0,h.default)(o.prototype,"addGroupNode",[v.action],Object.getOwnPropertyDescriptor(o.prototype,"addGroupNode"),o.prototype),(0,h.default)(o.prototype,"fetchListProjectGroups",[v.action],Object.getOwnPropertyDescriptor(o.prototype,"fetchListProjectGroups"),o.prototype),o);t.default=C},function(e,t,a){e.exports={CodeEditor:"fWKJIVIp0j8BpxLeQvB84",clickable:"_1MWvcZ4Nk-gUkGBi2mTlT5",dockerCredentialsContent:"_1Ft3A_KxSha1ekW7Kj7PhV",dockerCredentialsContent__title:"cvH0AdmzBm64wtNfOw-r6",dockerCredentialsContent__content:"_6e1Y_TkD0j9LQti3mZtTI",dockerCredentialsContent__trashicon:"_2OKbHoYbk9D8ava2syyAkO",desc:"_3dhQzgRA0CKwra7jXP8LIj",info:"_1tc604kXLhTZ5HZc1wTviA",columns:"_2BKaEhU1omIebd5PVjl-mC"}},,,function(e,t,a){"use strict";var r=a(20);a(12),a(5),a(11),a(6),a(84),a(29),a(18),a(16),a(27),a(9),a(13),a(10),a(4),a(22),a(23),a(17),a(85),a(38),a(7),a(32),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(12),a(45),a(5),a(11),a(6),a(84),a(29),a(18),a(28),a(42),a(16),a(27),a(34),a(15),a(9),a(13),a(10),a(4),a(22),a(23),a(57),a(17),a(85),a(38),a(7),a(32);var n=r(a(43)),l=r(a(61)),u=r(a(58));a(41);var o,i,c,s,f,d,p=r(a(44)),m=r(a(30)),h=r(a(65)),v=r(a(36)),g=r(a(37)),y=r(a(88)),E=r(a(55)),b=r(a(56)),_=r(a(51)),O=r(a(49)),S=(r(a(66)),a(14)),C=a(444),D=r(a(26)),k=r(a(189)),N=a(72);function T(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function R(e){for(var t=1;t0&&void 0!==v[0]?v[0]:{},a=t.cluster,r=t.workspace,o=t.namespace,i=t.more,c=t.devops,s=t.type,f=void 0===s?"node":s,d=(0,u.default)(t,["cluster","workspace","namespace","more","devops","type"]),this.list.isLoading=!0,d.sortBy||void 0!==d.ascending||(d.sortBy=N.LIST_DEFAULT_ORDER[this.module]||"createTime"),d.limit!==1/0&&-1!==d.limit||(d.limit=-1,d.page=1),d.limit=d.limit||10,e.next=7,request.get(this.getResourceUrl({cluster:a,workspace:r,devops:c}),this.withTypeSelectParams(d,f));case 7:return p=e.sent,m=((0,D.default)(p,"items")||[]).map((function(e){return R(R({cluster:a,namespace:o},e),h.mapper(e))})),this.list.update(R(R({data:i?[].concat((0,l.default)(this.list.data),(0,l.default)(m)):m,total:p.totalItems||p.total_count||m.length||0},(0,k.default)(d,"labelSelector")),{},{limit:Number(d.limit)||10,page:Number(d.page)||1,isLoading:!1},this.list.silent?{}:{selectedRowKeys:[]})),e.abrupt("return",m);case 11:case"end":return e.stop()}}),e,this)}))),function(){return _.apply(this,arguments)})},{key:"fetchDetail",value:(b=(0,p.default)(n.default.mark((function e(t){var a,r;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.isLoading=!0,e.next=3,request.get("".concat(this.getResourceUrl(t),"/").concat(t.name));case 3:return a=e.sent,r=R(R(R({},t),this.mapper(a)),{},{kind:"Node"}),this.detail=r,this.isLoading=!1,e.abrupt("return",r);case 8:case"end":return e.stop()}}),e,this)}))),function(e){return b.apply(this,arguments)})},{key:"fetchCount",value:(m=(0,p.default)(n.default.mark((function e(t){var a,r;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,request.get(this.getResourceUrl(t),{labelSelector:"node-role.kubernetes.io/master"});case 2:a=e.sent,r=a.items.filter((function(e){return(0,C.getNodeRoles)(e.metadata.labels).includes("worker")})).length,this.masterNum=a.items.filter((function(e){var t=(0,C.getNodeRoles)(e.metadata.labels);return t.includes("master")||t.includes("control-plane")})).length,this.masterCount=a.totalItems,this.masterWorkerCount=r;case 7:case"end":return e.stop()}}),e,this)}))),function(e){return m.apply(this,arguments)})},{key:"batchPatchTaints",value:(o=(0,p.default)(n.default.mark((function e(t){var a=this;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.submitting(Promise.all(t.map((function(e){var t=e.taints;return request.patch(a.getDetailUrl(e),{spec:{taints:t}})}))));case 2:case"end":return e.stop()}}),e,this)}))),function(e){return o.apply(this,arguments)})},{key:"cordon",value:(r=(0,p.default)(n.default.mark((function e(t){var a,r,l,u;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=t.cluster,r=t.name,l={spec:{unschedulable:!0}},e.next=4,request.patch(this.getDetailUrl({cluster:a,name:r}),l);case 4:u=e.sent,this.detail=this.mapper(u),this.originDetail=u;case 7:case"end":return e.stop()}}),e,this)}))),function(e){return r.apply(this,arguments)})},{key:"uncordon",value:(a=(0,p.default)(n.default.mark((function e(t){var a,r,l,u;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=t.cluster,r=t.name,l={spec:{unschedulable:null}},e.next=4,request.patch(this.getDetailUrl({cluster:a,name:r}),l);case 4:u=e.sent,this.detail=this.mapper(u),this.originDetail=u;case 7:case"end":return e.stop()}}),e,this)}))),function(e){return a.apply(this,arguments)})},{key:"deleteSelected",value:(t=(0,p.default)(n.default.mark((function e(t){var a=this;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all(t.map((function(e){var t=a.list.data[e];return"master"===t.role?null:request.delete(a.getDetailUrl(t),{orphanDependents:!1})})));case 2:this.list.selectedRowKeys=[];case 3:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})}]),S}(r(a(68)).default),i=(0,O.default)(o.prototype,"nodesMetrics",[S.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),c=(0,O.default)(o.prototype,"nodeMetrics",[S.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),s=(0,O.default)(o.prototype,"masterNum",[S.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),f=(0,O.default)(o.prototype,"masterCount",[S.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),d=(0,O.default)(o.prototype,"masterWorkerCount",[S.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),(0,O.default)(o.prototype,"fetchList",[S.action],Object.getOwnPropertyDescriptor(o.prototype,"fetchList"),o.prototype),(0,O.default)(o.prototype,"fetchDetail",[S.action],Object.getOwnPropertyDescriptor(o.prototype,"fetchDetail"),o.prototype),(0,O.default)(o.prototype,"fetchCount",[S.action],Object.getOwnPropertyDescriptor(o.prototype,"fetchCount"),o.prototype),(0,O.default)(o.prototype,"batchPatchTaints",[S.action],Object.getOwnPropertyDescriptor(o.prototype,"batchPatchTaints"),o.prototype),(0,O.default)(o.prototype,"cordon",[S.action],Object.getOwnPropertyDescriptor(o.prototype,"cordon"),o.prototype),(0,O.default)(o.prototype,"uncordon",[S.action],Object.getOwnPropertyDescriptor(o.prototype,"uncordon"),o.prototype),(0,O.default)(o.prototype,"deleteSelected",[S.action],Object.getOwnPropertyDescriptor(o.prototype,"deleteSelected"),o.prototype),o);t.default=I},,function(e,t,a){"use strict";a(15);var r=a(20);a(5),a(16),a(9),a(4),a(23),a(17),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(45),a(5),a(42),a(16),a(9),a(4),a(22),a(23),a(57),a(17);var n=r(a(43));a(41);var l,u=r(a(44)),o=r(a(36)),i=r(a(37)),c=r(a(55)),s=r(a(56)),f=r(a(51)),d=r(a(49)),p=r(a(26)),m=a(14),h=a(72),v=r(a(1090)),g=r(a(1091));function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,f.default)(e);if(t){var n=(0,f.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,s.default)(this,a)}}var E=(l=function(e){(0,c.default)(r,e);var t,a=y(r);function r(e){var t;return(0,o.default)(this,r),(t=a.call(this,e)).getWatchListUrl=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return"/".concat("cronjobs"===t.module?"apis/batch/v1":h.API_VERSIONS[t.module],"/watch").concat(t.getPath(e),"/").concat(t.module)},t.getWatchUrl=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return"".concat(t.getWatchListUrl(e),"/").concat(e.name)},t.getListUrl=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return"/".concat("cronjobs"===t.module?"apis/batch/v1":h.API_VERSIONS[t.module]).concat(t.getPath(e),"/").concat(t.module).concat(e.dryRun?"?dryRun=All":"")},t.getResourceUrl=function(e){var a=e.cluster,r=e.namespace;return"/kapis/resources.kubesphere.io/v1alpha3".concat(t.getPath({namespace:r,cluster:a}),"/").concat(t.module)},t.getServiceRequest=function(e,t){var a=new g.default;return t.namespace=t.namespace||(0,p.default)(e,"metadata.namespace"),{url:a.getListUrl(t),data:e}},t.hpaStore=new v.default,t}return(0,i.default)(r,[{key:"rerun",value:(t=(0,u.default)(n.default.mark((function e(t){var a,r,l,u,o;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=t.name,r=t.cluster,l=t.namespace,e.next=3,request.get(this.getDetailUrl({name:a,cluster:r,namespace:l}));case 3:return u=e.sent,o=(0,p.default)(u,"metadata.resourceVersion"),e.abrupt("return",this.submitting(request.post("/kapis/operations.kubesphere.io/v1alpha3".concat(this.getPath({namespace:l,cluster:r}),"/jobs/").concat(a,"?action=rerun&resourceVersion=").concat(o))));case 6:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})}]),r}(r(a(318)).default),(0,d.default)(l.prototype,"rerun",[m.action],Object.getOwnPropertyDescriptor(l.prototype,"rerun"),l.prototype),l);t.default=E},,,,function(e,a,r){"use strict";var n=r(20);r(12),r(5),r(11),r(31),r(6),r(86),r(18),r(16),r(27),r(9),r(13),r(10),r(24),r(64),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var l=n(r(30));r(12),r(5),r(11),r(31),r(6),r(86),r(18),r(28),r(16),r(27),r(34),r(15),r(9),r(13),r(10),r(4),r(24),r(64),r(7);var u=n(r(0)),o=n(r(26)),i=n(r(63)),c=n(r(925)),s=r(52),f=r(72),d=r(1513),p=n(r(2166));function m(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function h(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};if(!e.active)return null;var a=e.renderLabel,r=e.payload,n=e.usageData,l=e.totalData,m=e.tailText,v=e.alert,g=e.isTranslate,y=void 0===g||g,E=r||[],b=e.label,_=(0,o.default)(E,"[0].unit")||"",O="default"===_?"":"%"===_?"%":"".concat(t(_)),S=a?a(e):b,C=function(e){var a=e.indexOf("gpu")>-1?"gpu":e,r="gpu"===a?"".concat(a,".limit"):a;return f.ICON_TYPES[a]?t(r.replace(/[. ]/g,"_").toUpperCase()):r};return u.default.createElement("div",{className:p.default.tooltip},v&&u.default.createElement("div",{className:p.default.item},u.default.createElement(d.ReactComponent,null),"".concat(t(C(v.name||"")),":").concat("core"===v.unit?t("VALUE_CORES",{value:v.value}):t("VALUE_UNIT",h({},v)))),u.default.createElement("div",{className:p.default.label,style:{marginTop:"".concat(v?"8px":"0px")}},u.default.createElement("span",null,S),m&&u.default.createElement("span",null,m)),u.default.createElement("div",{className:p.default.list},E.map((function(e){var a=e.dataKey,r=e.name,f=e.value,d=void 0===f?0:f;if((0,c.default)(Number(d)))return null;var m=(0,o.default)(e,"stroke"),h="";if(!(0,i.default)(n)&&!(0,i.default)(l)){var v=(0,o.default)(n.find((function(e){return e.time===b})),r)||0,g=(0,o.default)(l.find((function(e){return e.time===b})),r)||0;h=" (".concat(v,"/").concat(g,")")}var E=(0,s.coreUnitTS)(d,O);return u.default.createElement("div",{key:a,className:p.default.item},u.default.createElement("i",{style:{background:m}}),y?t(r):r,": ",d," ".concat(t(E)),h)}))))};a.default=v},function(e,a,r){"use strict";r(15);var n=r(20);r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(42),r(4),r(22),r(23),r(57),r(17);var l=n(r(43));r(41);var u=n(r(44)),o=n(r(36)),i=n(r(37)),c=n(r(55)),s=n(r(56)),f=n(r(51)),d=n(r(0)),p=n(r(1)),m=n(r(3)),h=n(r(63)),v=n(r(26)),g=n(r(854)),y=n(r(158)),E=r(186),b=n(r(846)),_=n(r(2321));function O(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,f.default)(e);if(t){var n=(0,f.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,s.default)(this,a)}}var S=function(e){var t=e.data,a=e.total,r=e.isEnd;return(0,y.default)(r)?!(0,h.default)(t)&&t.length0&&e<1?e.toFixed(2):e>1&&e!==1/0?e.toFixed(1):e},n.memoryFormatter=function(e){return(e=Math.round(e))>0&&e<1e3?e-e%10:e>1e3&&e<2e3?e-e%50:e>2e3&&e!==1/0?e-e%100:e},n.checkError=function(e){var t="",a="",r=e.requests,n=e.limits;return n.cpu&&!String(n.cpu).endsWith(".")&&Number(r.cpu)>Number(n.cpu)&&(t="RequestExceed"),n.memory&&!String(n.memory).endsWith(".")&&Number(r.memory)>Number(n.memory)&&(a="RequestExceed"),{cpuError:t,memoryError:a}},n.checkAndTrigger=function(){var e=n.state,t=e.requests,a=e.limits,r=e.gpu,l=e.workspaceLimits,u=e.workspaceRequests;n.setState({workspaceLimitCheck:{requestCpuError:n.checkNumOutLimit(t.cpu,u.cpu),requestMemoryError:n.checkNumOutLimit(t.memory,u.memory),limitCpuError:n.checkNumOutLimit(a.cpu,l.cpu),limitMemoryError:n.checkNumOutLimit(a.memory,l.memory),gpuLimitError:n.checkGpuOutOfLimit(r)}},n.triggerChange)},n.checkGpuOutOfLimit=function(e){var t=e.type,a=(0,h.default)(n.props,"workspaceLimitProps.gpuLimit",[]).filter((function(e){return Object.keys(e)[0].endsWith(t)})),r=a.length>0?Object.values(a[0])[0]:"Not Limited";return n.checkNumOutLimit(e.value,r)},n.checkNumOutLimit=function(e,t){var a=n.props.omitQuotaCheck;return void 0!==a&&a?"":"Not Limited"!==t&&(0,y.default)(Number(e))&&Number(e)>t?"workspaceRequestExceed":""},n.triggerChange=function(){var e=n.props,t=e.onChange,a=e.onError,r=n.state,l=r.requests,o=r.limits,i=r.cpuError,c=r.memoryError,s=r.workspaceLimitCheck,f=r.gpu,d=n.memoryUnit,p="Core"===n.cpuUnit?"":n.cpuUnit,m=n.getWorkspaceCheckError();m.length>0?a(i||c||s[m[0]]):a(i||c);var h={};""!==l.cpu&&l.cpu>=0&&l.cpu<1/0&&(0,v.default)(h,"requests.cpu","".concat(l.cpu).concat(p)),""!==l.memory&&l.memory>=0&&l.memory<1/0&&(0,v.default)(h,"requests.memory","".concat(l.memory).concat(d)),""!==o.cpu&&o.cpu>=0&&o.cpu<1/0&&(0,v.default)(h,"limits.cpu","".concat(o.cpu).concat(p)),""!==o.memory&&o.memory>=0&&o.memory<1/0&&(0,v.default)(h,"limits.memory","".concat(o.memory).concat(d)),f.type&&f.value&&((0,v.default)(h,"limits",N(N({},h.limits),{},(0,u.default)({},"".concat(f.type),f.value))),(0,v.default)(h,"requests",N(N({},h.requests),{},(0,u.default)({},"".concat(f.type),f.value)))),t(h)},n.getWorkspaceCheckError=function(){return Object.keys(n.state.workspaceLimitCheck).filter((function(e){return""!==n.state.workspaceLimitCheck[e]}))},n.handleCPUChange=function(e){n.setState((function(t){var a=t.requests,r=t.limits;return{requests:N(N({},a),{},{cpu:0===e[0]?"":e[0]}),limits:N(N({},r),{},{cpu:0===e[1]?"":e[1]})}}),n.checkAndTrigger)},n.handleMemoryChange=function(e){n.setState((function(t){var a=t.requests,r=t.limits;return{requests:N(N({},a),{},{memory:0===e[0]?"":e[0]}),limits:N(N({},r),{},{memory:0===e[1]?"":e[1]})}}),n.checkAndTrigger)},n.handleInputChange=function(e){return function(t){var a;a=""===t||void 0===t?"":t,n.setState((function(t){return(0,v.default)(t,e,(0,b.default)(a)?"":a),N(N({},t),n.checkError(t))}),n.checkAndTrigger)}},n.handleGpuInputChange=function(e){var t;if(""===e)t="";else{var a=/^(0|[1-9][0-9]*)$/.exec(e);t=null==a?(0,h.default)(n.state,"gpu.value",""):a[0]}n.setState({gpu:{type:n.state.gpu.type,value:t}},n.checkAndTrigger)},n.gpuSelectChange=function(e){n.setState({gpu:{type:e,value:n.state.gpu.value}},n.checkAndTrigger)},n.renderLimitTip=function(e,a){return"Not Limited"!==e?"".concat(e," ").concat(a):t("NO_LIMIT")},n.renderGpuTip=function(){var e=n.props.workspaceLimitProps,a=n.state.gpu,r=null==e?void 0:e.gpuLimit.filter((function(e){return(0,E.default)(e)?e:Object.keys(e)[0].endsWith(a.type)}))[0];return d.default.createElement("div",{className:D.default.message},!(0,_.default)(r)&&d.default.createElement(d.default.Fragment,null,d.default.createElement("span",null,t("GPU_TYPE"),":"),d.default.createElement("span",null,a.type),d.default.createElement("br",null)),d.default.createElement("span",null,t("GPU_LIMIT"),":"),d.default.createElement("span",null,(0,_.default)(r)?t("NO_LIMIT"):Object.values(r)[0]))},n.renderGpuSelect=function(){return d.default.createElement(O.Column,null,d.default.createElement("div",{className:D.default.inputGroup},d.default.createElement("img",{src:"/assets/GPU.svg",size:48}),d.default.createElement("div",{className:(0,m.default)(D.default.input)},d.default.createElement("div",{className:D.default.label},d.default.createElement("span",null,t("GPU_TYPE"))),d.default.createElement("div",{className:D.default.inputBox},d.default.createElement(O.Select,{options:n.gpuOption,value:n.state.gpu.type,onChange:n.gpuSelectChange,placeholder:" "}))),d.default.createElement("div",{className:(0,m.default)(D.default.input)},d.default.createElement("div",{className:D.default.label},d.default.createElement("span",null,t("GPU_LIMIT"))),d.default.createElement("div",{className:D.default.inputBox},d.default.createElement(C.default,{name:"gpu.value",value:n.state.gpu.value,onChange:n.handleGpuInputChange,placeholder:t("NO_LIMIT")})))))},n.state=N(N({},r.getValue(e)),{},{defaultValue:e.defaultValue,cpuError:"",memoryError:"",workspaceLimitCheck:{}}),n}return(0,i.default)(r,[{key:"componentDidUpdate",value:function(e,t){e.isEdit&&!this.props.isEdit&&(0,g.default)(e.defaultValue,t.defaultValue)&&this.setState(N(N({},r.getValue(this.props)),{},{defaultValue:this.props.defaultProps}))}},{key:"getLimit",value:function(e){return(0,y.default)(Number(e))?e:""}},{key:"getRequest",value:function(e){return null==e?"":e}},{key:"renderQuotasTip",value:function(){var e=this,a=this.props,r=a.workspaceLimitProps,n=a.supportGpuSelect,l=this.state,u=l.workspaceLimits,o=l.workspaceRequests,i=this.memoryUnit,c=this.cpuUnit,s=t("AVAILABLE_QUOTAS");return d.default.createElement(O.Alert,{title:s,type:"info",className:"margin-t12",message:d.default.createElement(d.default.Fragment,null,d.default.createElement("div",null,d.default.createElement("div",{className:D.default.message},d.default.createElement("span",null,t("RESOURCE_REQUESTS"),":"),d.default.createElement("span",null,"CPU ",e.renderLimitTip(o.cpu,c),", ",t("MEMORY")," ",e.renderLimitTip(o.memory,i))),d.default.createElement("div",{className:D.default.message},d.default.createElement("span",null,t("RESOURCE_LIMITS"),":"),d.default.createElement("span",null,"CPU ",e.renderLimitTip(u.cpu,c),", ",t("MEMORY")," ",e.renderLimitTip(u.memory,i))),n&&r.gpuLimit&&e.renderGpuTip()))})}},{key:"render",value:function(){var e=this.state,a=e.cpuError,r=e.memoryError,n=e.workspaceLimitCheck,l=this.props.supportGpuSelect,o=this.getWorkspaceCheckError();return d.default.createElement("div",{className:D.default.wrapper},d.default.createElement("div",{className:D.default.inputWrapper},d.default.createElement(O.Columns,{className:"is-gapless"},d.default.createElement(O.Column,null,d.default.createElement("div",{className:D.default.inputGroup},d.default.createElement(O.Icon,{name:"cpu",size:48}),d.default.createElement("div",{className:(0,m.default)(D.default.input,(0,u.default)({},D.default.error,a||n.requestCpuError))},d.default.createElement("span",{className:D.default.label},t("CPU_REQUEST")),d.default.createElement("div",{className:D.default.inputBox},d.default.createElement(C.default,{name:"requests.cpu",value:this.getRequest(this.state.requests.cpu),onChange:this.handleInputChange("requests.cpu"),placeholder:t("NO_REQUEST")}),d.default.createElement("span",{className:D.default.unit},this.cpuUnit))),d.default.createElement("div",{className:(0,m.default)(D.default.input,(0,u.default)({},D.default.error,a||n.limitCpuError))},d.default.createElement("span",{className:D.default.label},t("CPU_LIMIT")),d.default.createElement("div",{className:D.default.inputBox},d.default.createElement(C.default,{name:"limits.cpu",value:this.getLimit(this.state.limits.cpu),onChange:this.handleInputChange("limits.cpu"),placeholder:t("NO_LIMIT")}),d.default.createElement("span",{className:D.default.unit},this.cpuUnit))))),d.default.createElement(O.Column,null,d.default.createElement("div",{className:D.default.inputGroup},d.default.createElement(O.Icon,{name:"memory",size:48}),d.default.createElement("div",{className:(0,m.default)(D.default.input,(0,u.default)({},D.default.error,r||n.requestMemoryError))},d.default.createElement("span",{className:D.default.label},t("MEMORY_REQUEST")),d.default.createElement("div",{className:D.default.inputBox},d.default.createElement(C.default,{name:"requests.memory",value:this.getRequest(this.state.requests.memory),onChange:this.handleInputChange("requests.memory"),placeholder:t("NO_REQUEST")}),d.default.createElement("span",{className:D.default.unit},this.memoryUnit))),d.default.createElement("div",{className:(0,m.default)(D.default.input,(0,u.default)({},D.default.error,r||n.limitMemoryError))},d.default.createElement("span",{className:D.default.label},t("MEMORY_LIMIT")),d.default.createElement("div",{className:D.default.inputBox},d.default.createElement(C.default,{name:"limits.memory",value:this.getLimit(this.state.limits.memory),onChange:this.handleInputChange("limits.memory"),placeholder:t("NO_LIMIT")}),d.default.createElement("span",{className:D.default.unit},this.memoryUnit))))),l&&this.renderGpuSelect())),this.ifRenderTip&&this.renderQuotasTip(),(a||r)&&d.default.createElement(O.Alert,{type:"error",className:"margin-t12",message:t("REQUEST_EXCEED_LIMIT")}),o.length>0&&d.default.createElement(O.Alert,{type:"error",className:"margin-t12",message:t("REQUEST_EXCEED_AVAILABLE_QUOTA")}))}},{key:"cpuUnit",get:function(){return this.props.cpuProps.unit||"Core"}},{key:"memoryUnit",get:function(){return this.props.memoryProps.unit||"Mi"}},{key:"gpuOption",get:function(){return globals.config.supportGpuType.reduce((function(e,a){return[].concat((0,l.default)(e),[{value:a,label:t(a.replace(/[-/.]/g,"_").toUpperCase())}])}),[])}},{key:"gpuType",get:function(){return this.state.gpu.type}},{key:"ifRenderTip",get:function(){var e=this.props.workspaceLimitProps;return!(0,E.default)(e)}}],[{key:"getDerivedStateFromProps",value:function(e,t){return(0,g.default)(e.defaultValue,t.defaultValue)&&(0,g.default)(e.workspaceLimitProps,t.workspaceLimitProps)?null:N(N({},r.getValue(e)),{},{defaultValue:e.defaultValue,workspaceLimitProps:e.workspaceLimitProps})}},{key:"allowInputDot",value:function(e,t,a){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(e===1/0)return e;var n=e&&r?e.slice(0,-2):e;if(n&&String(n).endsWith(".")){var l=a(e,t);return"".concat(l,".")}if(n&&String(n).endsWith(".0")){var u=a(e,t);return"".concat(u,".0")}return a(e,t)}},{key:"getValue",value:function(e){var t=(0,h.default)(e,"cpuProps.unit","Core"),a=(0,h.default)(e,"memoryProps.unit","Mi"),n=r.getDefaultRequestValue(e,"cpu"),l=r.getDefaultRequestValue(e,"memory"),u=r.getDefaultLimitValue(e,"cpu"),o=r.getDefaultLimitValue(e,"memory"),i=r.allowInputDot(n,t,S.cpuFormat),c=r.allowInputDot(l,a,S.memoryFormat,!0),s=r.allowInputDot(u,t,S.cpuFormat),f=r.allowInputDot(o,a,S.memoryFormat,!0),d=(0,S.memoryFormat)("".concat(r.getWorkspaceRequestLimit(e,"memory"),"Mi"),a),p=(0,S.memoryFormat)("".concat(r.getWorkspaceLimitValue(e,"memory"),"Mi"),a),m=(0,S.cpuFormat)(r.getWorkspaceRequestLimit(e,"cpu"),t),v=(0,S.cpuFormat)(r.getWorkspaceLimitValue(e,"cpu"),t);return{requests:{cpu:i,memory:c},limits:{cpu:s,memory:f},workspaceRequests:{cpu:(0,b.default)(m)?"Not Limited":m,memory:(0,b.default)(d)?"Not Limited":d},workspaceLimits:{cpu:(0,b.default)(v)?"Not Limited":v,memory:(0,b.default)(p)?"Not Limited":p},gpu:r.gpuSetting(e)}}},{key:"getGpuFromProps",value:function(e){var t=globals.config.supportGpuType;if(!e)return{type:t[0],value:""};var a=Object.keys((0,h.default)(e,"requests",{})).filter((function(e){return t.some((function(t){return e.endsWith(t)}))})),r=(0,E.default)(a)?t[0]:a[0];return{type:r,value:(0,E.default)(a)?"":e.requests["".concat(r)]}}},{key:"gpuSetting",value:function(e){var t=(0,h.default)(e,"value",{}),a=(0,h.default)(e,"defaultValue",{});return(0,E.default)(t)?(0,E.default)(a)?r.getGpuFromProps():r.getGpuFromProps(a):r.getGpuFromProps(t)}},{key:"getDefaultRequestValue",value:function(e,t){var a;return(0,h.default)(e,"value.requests.".concat(t),null!==(a=(0,h.default)(e,"defaultValue.requests.".concat(t)))&&void 0!==a?a:"")}},{key:"getDefaultLimitValue",value:function(e,t){var a;return(0,h.default)(e,"value.limits.".concat(t),null!==(a=(0,h.default)(e,"defaultValue.limits.".concat(t)))&&void 0!==a?a:1/0)}},{key:"getWorkspaceRequestLimit",value:function(e,t){return(0,h.default)(e,"workspaceLimitProps.requests.".concat(t),"Not Limited")}},{key:"getWorkspaceLimitValue",value:function(e,t){return(0,h.default)(e,"workspaceLimitProps.limits.".concat(t),"Not Limited")}}]),r}(d.default.Component);a.default=R,R.propTypes={value:p.default.object,defaultValue:p.default.object,onChange:p.default.func,onError:p.default.func,supportGpuSelect:p.default.bool},R.defaultProps={value:{},onChange:function(){},onError:function(){},cpuProps:{},memoryProps:{},supportGpuSelect:!1}},function(e,a,r){"use strict";var n=r(20);r(12),r(11),r(6),r(84),r(18),r(16),r(9),r(13),r(10),r(4),r(23),r(24),r(17),r(85),r(188),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(45),r(11),r(6),r(84),r(18),r(28),r(191),r(42),r(16),r(159),r(34),r(15),r(9),r(13),r(10),r(4),r(23),r(57),r(24),r(17),r(85),r(188),r(7);var l=n(r(315)),u=n(r(30)),o=n(r(36)),i=n(r(37)),c=n(r(55)),s=n(r(56)),f=n(r(51)),d=n(r(0)),p=n(r(1)),m=n(r(3)),h=n(r(837)),v=r(14),g=n(r(26)),y=n(r(63)),E=r(186),b=r(52),_=n(r(2458)),O=n(r(1047)),S=n(r(915)),C=n(r(874)),D=n(r(886)),k=n(r(2476));function N(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function T(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,f.default)(e);if(t){var n=(0,f.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,s.default)(this,a)}}var R={ascend:!1,descend:!0},w=function(e){(0,c.default)(r,e);var a=T(r);function r(e){var n;(0,o.default)(this,r),(n=a.call(this,e)).handleChange=function(e,t){n.props.onFetch(function(e){for(var t=1;t0&&!n.props.disabledSelectActions?n.renderSelectedTitle():n.renderNormalTitle()},n.renderTableFooter=function(){if(!n.props.pagination)return null;var e=n.props.pagination,t=e.total,a=e.page,r=e.limit;return d.default.createElement(D.default,{page:a,total:t,limit:r,onChange:n.handlePagination})};var l=(0,g.default)((0,b.safeParseJSON)(localStorage.getItem("hide-columns"),{}),e.tableId,[]);return n.state={hideColumns:l},n}return(0,i.default)(r,[{key:"shouldComponentUpdate",value:function(e,t){return!!this.props.alwaysUpdate||(e.data!==this.props.data||e.columns.length!==this.props.columns.length||e.selectedRowKeys.length!==this.props.selectedRowKeys.length||!(0,h.default)(e.filters,this.props.filters)||e.isLoading!==this.props.isLoading||!(0,h.default)(e.pagination,this.props.pagination)||t.hideColumns.length!==this.state.hideColumns.length)}},{key:"renderSelectActions",value:function(){var e=this.props,a=e.onDelete,r=e.selectActions;return r?d.default.createElement("div",null,r.map((function(e){return d.default.createElement(E.Button,{key:e.key,type:e.type,disabled:e.disabled,className:k.default.button,onClick:e.onClick,"data-test":"table-".concat(e.key)},e.text)}))):d.default.createElement("div",null,a&&d.default.createElement(E.Button,{type:"danger",className:k.default.button,onClick:a,"data-test":"table-delete"},t("DELETE")))}},{key:"renderSearch",value:function(){var e=this.props,a=e.hideSearch,r=e.searchType,n=e.filters,l=e.columns,u=e.columnSearch,o=e.showTimeSelector,i=e.onTimeSelectorChange,c=e.onTimeSelectorDelete,s=e.showKeywords;if(a)return null;if(r){var f=this.props.placeholder||t("SEARCH_BY_NAME");return d.default.createElement(E.InputSearch,{className:k.default.search,value:n[r],onSearch:this.handleSearch,placeholder:f})}return d.default.createElement(S.default,{className:k.default.search,columns:u||l,filters:n,showTimeSelector:o,showKeywords:s,onTimeSelectorChange:i,onTimeSelectorDelete:c,onChange:this.handleFilterInput})}},{key:"renderActions",value:function(){var e=this.props,a=e.onCreate,r=e.createText,n=e.actions;return n?n.map((function(e){return e.customDom?e.customDom:e.tooltip?d.default.createElement(_.default,{key:"".concat(e.key,"_tooltip"),content:e.tooltip.message,placement:e.tooltip.placement},d.default.createElement("div",{className:k.default.tooltipBox},d.default.createElement(E.Button,{key:e.key,type:e.type,className:k.default.create,onClick:e.onClick,"data-test":"table-".concat(e.key),disabled:e.forbidden||!1},e.text))):d.default.createElement(E.Button,{key:e.key,type:e.type,className:k.default.create,onClick:e.onClick,"data-test":"table-".concat(e.key),disabled:e.forbidden||!1},e.text)})):a?d.default.createElement(E.Button,{type:"control",className:k.default.create,onClick:a,"data-test":"table-create"},t(r||"CREATE")):null}},{key:"renderNormalTitle",value:function(){var e=this.props,a=e.hideCustom,r=e.customFilter,n=e.columns,l=this.state.hideColumns;return d.default.createElement(E.Level,null,r&&d.default.createElement(E.LevelLeft,null,r),d.default.createElement(E.LevelItem,null,this.renderSearch()),d.default.createElement(E.LevelRight,null,d.default.createElement("div",null,d.default.createElement(E.Button,{type:"flat",icon:"refresh",onClick:this.handleRefresh,"data-test":"table-refresh"}),!a&&d.default.createElement(O.default,{className:k.default.columnMenu,title:t("CUSTOM_COLUMNS"),columns:n,value:l,onChange:this.handleColumnsHide}),this.renderActions())))}},{key:"renderEmptyText",value:function(){return this.props.emptyText||d.default.createElement("div",{className:k.default.emptyText},d.default.createElement("span",{className:k.default.emptyTipIcon},d.default.createElement(E.Icon,{name:"exclamation",size:48})),d.default.createElement("div",null,t("NO_MATCHING_RESULT_FOUND")),d.default.createElement("p",null,t("YOU_CAN_TRY_TO"),d.default.createElement("span",{className:k.default.action,onClick:this.handleRefresh,"data-test":"table-empty-refresh"},t("REFRESH_DATA")),t("OR"),d.default.createElement("span",{className:k.default.action,onClick:this.clearFilter,"data-test":"table-empty-clear-filter"},t("CLEAR_SEARCH_CONDITIONS"))))}},{key:"renderEmpty",value:function(){var e=this.props,t=e.module,a=e.name,r=e.emptyProps,n=void 0===r?{}:r;return d.default.createElement(C.default,(0,l.default)({action:this.renderActions(),name:a,module:t},n))}},{key:"render",value:function(){var e=this.props,t=e.className,a=e.data,r=e.isLoading,n=e.silentLoading,u=e.rowKey,o=e.selectedRowKeys,i=e.onSelectRowKeys,c=e.hideHeader,s=e.hideFooter,f=e.extraProps,p=e.getCheckboxProps,h=e.expandedRowRender,g=e.rowExpandable;if(this.showEmpty)return this.renderEmpty();var y={};return c||(y.title=this.renderTableTitle()),s||(y.footer=this.renderTableFooter()),i&&(y.rowSelection={selectedRowKeys:o,getCheckboxProps:p,onSelect:function(e,t,a){i(a)},onSelectAll:function(e,t){i(t)}}),d.default.createElement(E.Table,(0,l.default)({className:(0,m.default)(k.default.table,"ks-table",t,k.default.filterMenu),rowKey:u,columns:this.filteredColumns,dataSource:(0,v.toJS)(a),loading:!n&&r,onChange:this.handleChange,emptyText:this.renderEmptyText(),expandedRowRender:h,rowExpandable:g},y,f))}},{key:"showEmpty",get:function(){var e=this.props,t=e.filters,a=e.pagination,r=e.isLoading;return"showEmpty"in this.props?this.props.showEmpty:!r&&(0,y.default)(t)&&0===a.total}},{key:"filteredColumns",get:function(){var e=this.state.hideColumns,t=void 0===e?[]:e;return this.props.columns.filter((function(e){return e&&!t.includes(e.key||e.dataIndex)}))}}]),r}(d.default.Component);a.default=w,w.propTypes={data:p.default.oneOfType([p.default.array,p.default.object]).isRequired,columns:p.default.array.isRequired,selectedRowKeys:p.default.array,isLoading:p.default.bool,pagination:p.default.object,filters:p.default.object,rowKey:p.default.any,onFetch:p.default.func,onRefresh:p.default.func,onSelectRowKeys:p.default.func,getCheckboxProps:p.default.func,onDelete:p.default.func,onCreate:p.default.func,hideHeader:p.default.bool,hideFooter:p.default.bool,hideSearch:p.default.bool,hideCustom:p.default.bool,actions:p.default.array,selectActions:p.default.array,extraProps:p.default.object,alwaysUpdate:p.default.bool,emptyText:p.default.any},w.defaultProps={rowKey:"name",selectedRowKeys:[],onFetch:function(){},hideHeader:!1,hideFooter:!1,hideSearch:!1,hideCustom:!1,extraProps:{},pagination:{},filters:{}}},function(e,a,r){"use strict";r(15);var n=r(20);r(16),r(4),r(23),r(24),r(17),r(64),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(42),r(16),r(4),r(23),r(57),r(24),r(17),r(64);var l=n(r(36)),u=n(r(37)),o=n(r(55)),i=n(r(56)),c=n(r(51)),s=n(r(0)),f=n(r(1)),d=n(r(3)),p=n(r(158)),m=n(r(194)),h=r(186),v=r(72),g=n(r(2474));function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,c.default)(e);if(t){var n=(0,c.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,i.default)(this,a)}}var E=function(e){(0,o.default)(r,e);var a=y(r);function r(){return(0,l.default)(this,r),a.apply(this,arguments)}return(0,u.default)(r,[{key:"render",value:function(){var e=this.props,a=e.module,r=e.icon,n=e.title,l=e.name,u=e.desc,o=e.action,i=e.className,c=(0,p.default)(u)?t.html("".concat(l.replace(/[-\s]/g,"_").toUpperCase(),"_EMPTY_DESC")):u,f=s.default.createElement(h.Icon,{name:r||v.ICON_TYPES[a]||"appcenter",size:48});return(0,m.default)(r)&&(f=r()),s.default.createElement("div",{className:(0,d.default)(g.default.wrapper,i)},s.default.createElement("div",{className:g.default.image},f),s.default.createElement("div",{className:g.default.title},n||t("EMPTY_WRAPPER",{resource:t(l.replace(/[- ]/g,"_").toUpperCase())})),s.default.createElement("p",{className:g.default.desc},c),o&&s.default.createElement("div",{className:g.default.actions},o))}}]),r}(s.default.PureComponent);a.default=E,E.propTypes={module:f.default.string,name:f.default.string,title:f.default.string,desc:f.default.string,className:f.default.string,action:f.default.node},E.defaultProps={name:"",module:""}},,,,function(e,t,a){"use strict";a(15),a(5),a(31),a(73),a(18),a(16),a(24),a(64),a(75),Object.defineProperty(t,"__esModule",{value:!0}),t.ALERTING_STATUS=t.getAlertingResource=t.getQuery=void 0,a(5),a(31),a(73),a(18),a(16),a(4),a(24),a(64),a(75);var r=a(1797);t.getQuery=function(e){var t=e.kind,a=e.rule,n=e.resources,l="",u=a._metricType,o=a.thresholds,i=a.condition_type;switch(t){case"Node":l=u.replace("$1","node=".concat(n.length>1?"~":"",'"').concat(n.join("|"),'"'));break;case"Deployment":case"StatefulSet":case"DaemonSet":l=u.replace("$1","workload=".concat(n.length>1?"~":"",'"').concat(n.map((function(e){return"".concat(t,":").concat(e)})).join("|"),'"')).replace("$2",t.toLowerCase())}var c=o,s=r.ALL_METRICS_CONFIG[u].ruleConfig.find((function(e){return"thresholds"===e.name}));return s&&s.converter&&(c=s.converter(o)),l+=" ".concat(i," ").concat(c)};var n={Deployment:"deployments",StatefulSet:"statefulsets",DaemonSet:"daemonsets",Pod:"pods"};t.getAlertingResource=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=function(e,t){var a=e.pod;return a&&a.startsWith(e[t])?{module:"pods",name:e.pod,namespace:e.namespace}:{module:"job_name"===t?"jobs":"".concat(t,"s"),name:e[t],namespace:e.namespace}};if(e.node)return{module:"nodes",name:e.node};if(e.namespace){if(e.workload)return{module:n[e.owner_kind],name:e.workload.replace("".concat(e.owner_kind,":"),""),namespace:e.namespace};if(e.job_name)return t(e,"job_name");if(e.cronjob)return t(e,"cronjob");if(e.hpa)return{module:"hpas",name:e.hpa,namespace:e.namespace};if(e.deployment)return t(e,"deployment");if(e.statefulset)return t(e,"statefulset");if(e.daemonset)return t(e,"daemonset");if(e.pod)return{module:"pods",name:e.pod,namespace:e.namespace};if(e.service)return{module:"services",name:e.service,namespace:e.namespace}}return{}};t.ALERTING_STATUS=["disabled","inactive","pending","firing"]},,function(e,a,r){"use strict";r(15);var n=r(20);r(31),Object.defineProperty(a,"__esModule",{value:!0}),a.default=function(e){var a=e.data;if(a){var r=u.severityOptions.find((function(e){return e.value===a}));if(r)return l.default.createElement("span",{style:{backgroundColor:r.bgColor,color:r.color,fontWeight:600,padding:"0px 4px",whiteSpace:"nowrap"}},t(r.label))}return"-"},r(31),r(4);var l=n(r(0)),u=r(993)},function(e,t,a){"use strict";a.r(t),a.d(t,"ReactComponent",(function(){return c}));var r=a(315),n=a.n(r),l=a(0),u=a.n(l),o=u.a.createElement("path",{d:"M17.613 10.43c1.07.653 2.38 2.418 2.926 4.543.546 2.124.455 4.027.455 4.027s-.706-1.172-.992-1.582c-.287-.411-1.494-1.941-3.367-2.828-1.874-.887-5.005-.73-5.005-.73l.37 3.705-9-6.288 9-6.266-.37 3.716s2.073.16 3.157.39c1.825.389 2.826 1.312 2.826 1.312z"}),i=u.a.createElement("path",{fill:"currentColor",d:"M12 17.564l-9-6.287 9-6.267z"}),c=function(e){return u.a.createElement("svg",n()({viewBox:"0 0 24 24",width:"1em",height:"1em"},e),o,i)};t.default="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0Ij4KICAgIDxnPgogICAgICAgIDxwYXRoIGQ9Ik0xNy42MTMgMTAuNDNjMS4wNy42NTMgMi4zOCAyLjQxOCAyLjkyNiA0LjU0My41NDYgMi4xMjQuNDU1IDQuMDI3LjQ1NSA0LjAyN3MtLjcwNi0xLjE3Mi0uOTkyLTEuNTgyYy0uMjg3LS40MTEtMS40OTQtMS45NDEtMy4zNjctMi44MjgtMS44NzQtLjg4Ny01LjAwNS0uNzMtNS4wMDUtLjczbC4zNyAzLjcwNS05LTYuMjg4IDktNi4yNjYtLjM3IDMuNzE2czIuMDczLjE2IDMuMTU3LjM5YzEuODI1LjM4OSAyLjgyNiAxLjMxMiAyLjgyNiAxLjMxMnoiLz4KICAgICAgICA8cGF0aCBmaWxsPSJjdXJyZW50Q29sb3IiIGQ9Ik0xMiAxNy41NjRsLTktNi4yODcgOS02LjI2N3oiLz4KICAgIDwvZz4KPC9zdmc+Cg=="},,function(e,t,a){"use strict";var r=a(20);a(12),a(11),a(6),a(29),a(73),a(18),a(16),a(137),a(98),a(9),a(13),a(10),a(4),a(316),a(22),a(23),a(17),a(38),a(7),a(32),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(12),a(45),a(11),a(6),a(160),a(29),a(73),a(18),a(28),a(42),a(16),a(137),a(34),a(15),a(98),a(9),a(13),a(10),a(4),a(316),a(22),a(23),a(57),a(17),a(38),a(7),a(32);var n=r(a(58)),l=r(a(30)),u=r(a(96)),o=r(a(43));a(41);var i,c,s,f,d,p,m,h=r(a(44)),v=r(a(65)),g=r(a(36)),y=r(a(37)),E=r(a(88)),b=r(a(55)),_=r(a(56)),O=r(a(51)),S=r(a(49)),C=(r(a(66)),a(14)),D=a(52),k=a(794),N=r(a(74)),T=r(a(845));function R(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function w(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};return(0,g.default)(this,O),e=_.call(this,t),(0,v.default)(e,"baseResourcesSummary",c,(0,E.default)(e)),(0,v.default)(e,"monitorData",s,(0,E.default)(e)),(0,v.default)(e,"roleAndMember",f,(0,E.default)(e)),(0,v.default)(e,"alertData",d,(0,E.default)(e)),(0,v.default)(e,"PodData",p,(0,E.default)(e)),(0,v.default)(e,"clusters",m,(0,E.default)(e)),e.getApi=function(t){var a=t.namespace,r=t.workspace,n=t.component,l=t.container,u=t.nodeName,o=t.persistentvolumeclaim,i=t.pvc,c=t.pod,s=t.workload;return n?"".concat(e.apiVersion,"/component_metrics"):c?"".concat(e.apiVersion,"/pod_metrics"):l?"".concat(e.apiVersion,"/container_metrics"):u?"".concat(e.apiVersion,"/node_metrics"):o||i?"".concat(e.apiVersion,"/persistentvolumeclaim_metrics"):s?"".concat(e.apiVersion,"/workload_metrics"):a?"".concat(e.apiVersion,"/namespace_metrics"):r?"".concat(e.apiVersion,"/workspace_metrics"):globals.app.isMultiCluster&&e.clusters?"".concat(e.apiVersion,"/cluster_metrics"):e.apiVersion},Object.keys(t).forEach((function(a){(0,N.default)((0,E.default)(e),a,t[a])})),e}return(0,y.default)(O,[{key:"setClusters",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.clusters=Array.isArray(e)?e:[]}},{key:"getBaseResourcesSummary",value:(i=(0,h.default)(o.default.mark((function e(){var t,a,r,n,l,u;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=this.clusters.map((function(e){return e.name})).join("|"),a=M.join("|"),r=this.getApi({}),this.baseResourcesSummary.isLoading=!0,e.next=6,(0,D.to)(request.get(r,{resources_filter:t,metrics_filter:a}));case 6:return n=e.sent,l=this.getResult(n),u=(0,k.getLastMonitoringData)(l),this.baseResourcesSummary.isLoading=!1,this.baseResourcesSummary.data=u,e.abrupt("return",u);case 12:case"end":return e.stop()}}),e,this)}))),function(){return i.apply(this,arguments)})},{key:"fetchAllMetricsData",value:(l=(0,h.default)(o.default.mark((function e(){var t,a,r,n=this;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=[],A.forEach((function(e){var a,r=null===(a=n.clusters.map((function(e){return e.name})))||void 0===a?void 0:a.join("|"),l=Object.values(e)[0].join("|"),u=n.getApi({});t.push((0,D.to)(request.get(u,{resources_filter:r,metrics_filter:l})))})),this.monitorData.isLoading=!0,e.next=5,Promise.all(t);case 5:return a=e.sent,r=a.map((function(e,t){var a=(0,k.getLastMonitoringData)(n.getResult(e)),r=A.map((function(e){return Object.keys(e)[0]})),l={};return Object.entries(a).forEach((function(e){var t,a,r=(0,u.default)(e,2),n=r[0],o=r[1];l[n]=null!==(t=null==o||null===(a=o.value)||void 0===a?void 0:a[1])&&void 0!==t?t:0})),{resource:r[t],data:l}})),this.monitorData={isLoading:!1,data:r},e.abrupt("return",r);case 9:case"end":return e.stop()}}),e,this)}))),function(){return l.apply(this,arguments)})},{key:"fetchAlertData",value:(r=(0,h.default)(o.default.mark((function e(t){var a,r,n,l,u,i;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=Object.assign({},t),r=this.clusters.map((function(e){return e.name})),this.alertData.isLoading=!0,n=this.getParams(w({metrics:P,resources:r},a)),l=this.getApi({}),e.next=7,(0,D.to)(request.get(l,n));case 7:u=e.sent,i=this.getResult(u),this.alertData={isLoading:!1,data:i};case 10:case"end":return e.stop()}}),e,this)}))),function(e){return r.apply(this,arguments)})},{key:"fetchPodData",value:(a=(0,h.default)(o.default.mark((function e(t){var a,r,l,u,i,c;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=t.fillZero,r=(0,n.default)(t,["fillZero"]),l=this.getParams(r),u=this.getApi({}),this.PodData.isLoading=!0,e.next=6,(0,D.to)(request.get(u,l));case 6:i=e.sent,c=this.getResult(i),this.PodData={isLoading:!1,data:a?(0,k.fillEmptyMetrics)(l,c):c};case 9:case"end":return e.stop()}}),e,this)}))),function(e){return a.apply(this,arguments)})},{key:"fetchRoleAndMember",value:(t=(0,h.default)(o.default.mark((function e(){var t,a,r,n,l,u;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=this.clusters.map((function(e){return e.name})).join("|"),a=j.join("|"),r=this.getApi({}),this.roleAndMember.isLoading=!1,e.next=6,(0,D.to)(request.get(r,{resources_filter:t,metrics_filter:a}));case 6:n=e.sent,l=this.getResult(n),u=(0,k.getLastMonitoringData)(l),this.roleAndMember.isLoading=!1,this.roleAndMember.data=u;case 11:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})},{key:"apiVersion",get:function(){return"kapis/monitoring.kubesphere.io/v1beta1"}}]),O}(T.default),c=(0,S.default)(i.prototype,"baseResourcesSummary",[C.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{isLoading:!0,data:{}}}}),s=(0,S.default)(i.prototype,"monitorData",[C.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{isLoading:!1,data:[]}}}),f=(0,S.default)(i.prototype,"roleAndMember",[C.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{data:[],isLoading:!0}}}),d=(0,S.default)(i.prototype,"alertData",[C.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{isLoading:!1,data:[]}}}),p=(0,S.default)(i.prototype,"PodData",[C.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{isLoading:!1,data:[]}}}),m=(0,S.default)(i.prototype,"clusters",[C.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),(0,S.default)(i.prototype,"setClusters",[C.action],Object.getOwnPropertyDescriptor(i.prototype,"setClusters"),i.prototype),(0,S.default)(i.prototype,"getBaseResourcesSummary",[C.action],Object.getOwnPropertyDescriptor(i.prototype,"getBaseResourcesSummary"),i.prototype),(0,S.default)(i.prototype,"fetchAllMetricsData",[C.action],Object.getOwnPropertyDescriptor(i.prototype,"fetchAllMetricsData"),i.prototype),(0,S.default)(i.prototype,"fetchAlertData",[C.action],Object.getOwnPropertyDescriptor(i.prototype,"fetchAlertData"),i.prototype),(0,S.default)(i.prototype,"fetchPodData",[C.action],Object.getOwnPropertyDescriptor(i.prototype,"fetchPodData"),i.prototype),(0,S.default)(i.prototype,"fetchRoleAndMember",[C.action],Object.getOwnPropertyDescriptor(i.prototype,"fetchRoleAndMember"),i.prototype),i);t.default=L},function(e,t,a){"use strict";a(15);var r=a(20);a(5),a(11),a(84),a(73),a(18),a(4),a(316),a(23),a(24),a(17),a(136),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(a(36)),l=r(a(37)),u=r(a(55)),o=r(a(56)),i=r(a(51));a(45),a(5),a(11),a(84),a(73),a(18),a(42),a(4),a(316),a(23),a(57),a(24),a(17),a(85),a(136);var c=r(a(0)),s=r(a(1)),f=r(a(3)),d=a(909),p=r(a(26)),m=r(a(63)),h=r(a(195)),v=r(a(2051)),g=a(186),y=r(a(841)),E=a(894),b=r(a(2054));function _(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,i.default)(e);if(t){var n=(0,i.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,o.default)(this,a)}}var O=function(e,t){var a=(0,E.getAllYAMLValue)(e);return t&&1===a.length?a[0]:a},S=function(e){(0,u.default)(a,e);var t=_(a);function a(e){var r,l;return(0,n.default)(this,a),(r=t.call(this,e)).handleUpload=function(e){var t=new FileReader;t.onload=function(e){(0,m.default)(e.target.result)||(r.value=e.target.result,r.forceUpdate(),r.props.onChange&&r.props.onChange(r.value))},t.readAsText(e[0])},r.handleDownload=function(){var e,t=r.props,a=t.value,n=t.mode;if(a.metadata)e=a;else{var l=Object.values(a);l&&l[0]&&l[0].metadata&&(e=l[0])}var u=[(0,p.default)(e,"metadata.name","default"),(0,p.default)(e,"metadata.namespace",""),(0,p.default)(e,"kind","").toLowerCase()].filter((function(e){return e})).join(".");r.saveAsFile(r.value,"".concat(u,".").concat(n))},r.saveAsFile=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"default.txt",a=new Blob([e],{type:"text/plain;charset=utf-8"});(0,d.saveAs)(a,t)},r.handleChange=function(e){r.value=e,"obj"===r.props.returnType?r.props.onChange&&r.props.onChange(O(r.value,!0)):r.props.onChange&&r.props.onChange(e)},r.getData=function(){return O(r.value,!!r.props.value.metadata)},r.value=(l=e.value,[void 0,null].includes(l)?"":(null==l?void 0:l.metadata)?(0,E.getValue)(l):(0,h.default)(l)?l:Object.values(l).map((function(e){return(0,E.getValue)(e||{})})).join("---\n")),r}return(0,l.default)(a,[{key:"options",get:function(){return{readOnly:this.props.readOnly,width:"100%",height:"100%"}}}]),(0,l.default)(a,[{key:"render",value:function(){var e=this.props,t=e.mode,a=e.className,r=e.editorClassName,n=e.readOnly;return c.default.createElement("div",{className:(0,f.default)(b.default.mode,a)},c.default.createElement("div",{className:(0,f.default)(b.default.edit,r)},c.default.createElement(y.default,{className:b.default.editor,mode:t,value:this.value,options:this.options,onChange:this.handleChange}),c.default.createElement("div",{className:b.default.ops,onClick:this.handleModeChange},!n&&c.default.createElement(c.default.Fragment,null,c.default.createElement(v.default,{fileTypes:[".yaml"],handleFiles:this.handleUpload},c.default.createElement(g.Icon,{name:"upload",size:20,color:{primary:"#fff",secondary:"#fff"},clickable:!0,changeable:!0})),c.default.createElement("span",{className:b.default.split},"|")),c.default.createElement(g.Icon,{name:"download",size:20,color:{primary:"#fff",secondary:"#fff"},onClick:this.handleDownload,clickable:!0,changeable:!0}))))}}]),a}(c.default.Component);t.default=S,S.propTypes={className:s.default.string,mode:s.default.string,value:s.default.oneOfType([s.default.object,s.default.arrayOf(s.default.object),s.default.string]),readOnly:s.default.bool},S.defaultProps={mode:"yaml",readOnly:!1}},function(e,t,a){"use strict";a(15);var r=a(20);a(5),a(9),a(4),a(23),a(17),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(45),a(5),a(42),a(9),a(4),a(22),a(23),a(57),a(17);var n=r(a(43));a(41);var l,u,o=r(a(44)),i=r(a(65)),c=r(a(36)),s=r(a(37)),f=r(a(88)),d=r(a(55)),p=r(a(56)),m=r(a(51)),h=r(a(49)),v=(r(a(66)),a(14));function g(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,m.default)(e);if(t){var n=(0,m.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,p.default)(this,a)}}var y=(l=function(e){(0,d.default)(r,e);var t,a=g(r);function r(){var e;(0,c.default)(this,r);for(var t=arguments.length,n=new Array(t),l=0;l0){var a=Array.from({length:e.totalPage},(function(e,t){var a=++t;return{id:a,value:a}}));return a.length<=10?m.default.createElement(d.Menu,{className:(0,p.default)(g.default.menu)},m.default.createElement(m.default.Fragment,null,a.map((function(a){return m.default.createElement(d.Menu.MenuItem,{className:(0,p.default)(g.default.menuitem,(0,u.default)({},g.default.menuActive,t===a.value)),key:a.id,onClick:function(){return e.handlePageMenuClick(a.value)}},a.value)})))):m.default.createElement(d.Menu,{className:(0,p.default)(g.default.menu)},m.default.createElement(v.default,{data:a,key:"page-dropdown",itemKey:"id",height:160,itemHeight:32},(function(a){return m.default.createElement(d.Menu.MenuItem,{className:(0,p.default)(g.default.menuitem,(0,u.default)({},g.default.menuActive,t===a.value)),key:a.id,onClick:function(){return e.handlePageMenuClick(a.value)}},a.value)})))}return null},e.handlePageMenuClick=function(t){var a=e.props,r=a.onChange,n=a.limit;r&&r({page:Math.min(t,e.totalPage),limit:n})},e}return(0,i.default)(r,[{key:"render",value:function(){var e=this.props.page;return m.default.createElement(d.Level,{className:g.default.wrapper},m.default.createElement(d.LevelLeft,null,this.renderPagesize()),m.default.createElement(d.LevelRight,null,m.default.createElement(d.LevelItem,{className:g.default.pagination},m.default.createElement(d.Button,{className:g.default.button,type:"flat",icon:"previous",iconSize:16,disabled:e<=1,onClick:this.handlePrev}),m.default.createElement(d.Dropdown,{placement:"bottom",trigger:"hover",content:this.renderPageDropDown()},m.default.createElement("div",{className:g.default.pages},m.default.createElement("span",null,e," / ",this.totalPage))),m.default.createElement(d.Button,{className:g.default.button,type:"flat",icon:"next",iconSize:16,disabled:e>=this.totalPage,onClick:this.handleNext}))))}},{key:"totalPage",get:function(){var e=this.props,t=e.total,a=e.limit,r=t%a;return 0===r?Math.max(t/a,1):(t-r)/a+1}}],[{key:"getDerivedStateFromProps",value:function(e,t){return e.limit!==t.pagesize?{pagesize:e.limit}:null}}]),r}(m.Component);a.default=E},,function(e,t,a){"use strict";a(15);var r=a(20);a(5),a(4),a(23),a(17),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(45),a(5),a(42),a(4),a(23),a(57),a(17);var n=r(a(36)),l=r(a(55)),u=r(a(56)),o=r(a(51));function i(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,o.default)(e);if(t){var n=(0,o.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,u.default)(this,a)}}var c=function(e){(0,l.default)(a,e);var t=i(a);function a(){var e;(0,n.default)(this,a);for(var r=arguments.length,l=new Array(r),u=0;u-1}))}}]),r}(v.default.Component),R=(0,y.inject)("rootStore")((0,g.withRouter)(T));a.default=R;var w=T;a.Component=w},,function(e,t,a){"use strict";a(15);var r=a(20);a(5),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(a(30));a(5);var l=r(a(26)),u={},o={get:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:location.pathname;return(0,l.default)(u,"".concat(e,".").concat(t))},set:function(e,t){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:location.pathname;u[e]=(0,n.default)({},a,t)},delete:function(e){delete u[e]}};t.default=o},,function(e,t,a){"use strict";a(15);var r=a(20);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Avatar",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(t,"Banner",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"Nav",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"Bar",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"Breadcrumb",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"Card",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"CodeEditor",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(t,"Empty",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(t,"Indicator",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(t,"Label",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(t,"List",{enumerable:!0,get:function(){return m.default}}),Object.defineProperty(t,"Modal",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(t,"Drawer",{enumerable:!0,get:function(){return v.default}}),Object.defineProperty(t,"TypeSelect",{enumerable:!0,get:function(){return g.default}}),Object.defineProperty(t,"Status",{enumerable:!0,get:function(){return y.default}}),Object.defineProperty(t,"Steps",{enumerable:!0,get:function(){return E.default}}),Object.defineProperty(t,"Switch",{enumerable:!0,get:function(){return b.default}}),Object.defineProperty(t,"Markdown",{enumerable:!0,get:function(){return _.default}}),Object.defineProperty(t,"Upload",{enumerable:!0,get:function(){return O.default}}),Object.defineProperty(t,"CheckableText",{enumerable:!0,get:function(){return S.default}}),Object.defineProperty(t,"Dragger",{enumerable:!0,get:function(){return C.default}}),Object.defineProperty(t,"ScrollLoad",{enumerable:!0,get:function(){return D.default}}),Object.defineProperty(t,"RadioGroup",{enumerable:!0,get:function(){return k.default}}),Object.defineProperty(t,"NotifyConfirm",{enumerable:!0,get:function(){return N.default}}),Object.defineProperty(t,"Panel",{enumerable:!0,get:function(){return T.default}}),Object.defineProperty(t,"Text",{enumerable:!0,get:function(){return R.default}}),Object.defineProperty(t,"Image",{enumerable:!0,get:function(){return w.default}}),Object.defineProperty(t,"ToggleField",{enumerable:!0,get:function(){return I.default}}),Object.defineProperty(t,"DataEmptyTip",{enumerable:!0,get:function(){return M.default}}),Object.defineProperty(t,"Progress",{enumerable:!0,get:function(){return P.default}}),Object.defineProperty(t,"RecordSelect",{enumerable:!0,get:function(){return A.default}}),Object.defineProperty(t,"SeverityTag",{enumerable:!0,get:function(){return j.default}}),Object.defineProperty(t,"Notify",{enumerable:!0,get:function(){return L.default}});var n=r(a(788)),l=r(a(2379)),u=r(a(2381)),o=r(a(1044)),i=r(a(2384)),c=r(a(801)),s=r(a(841)),f=r(a(846)),d=r(a(839)),p=r(a(1045)),m=r(a(812)),h=r(a(787)),v=r(a(1170)),g=r(a(816)),y=r(a(795)),E=r(a(1266)),b=r(a(850)),_=r(a(1001)),O=r(a(952)),S=r(a(1099)),C=r(a(1171)),D=r(a(863)),k=r(a(1314)),N=r(a(1102)),T=r(a(789)),R=r(a(790)),w=r(a(836)),I=r(a(1576)),M=r(a(1103)),P=r(a(1315)),A=r(a(1562)),j=r(a(880)),L=r(a(240))},,,,function(e,t,a){"use strict";var r=a(20);a(12),a(5),a(11),a(6),a(16),a(9),a(13),a(10),a(4),a(23),a(17),a(7),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(12),a(45),a(5),a(11),a(6),a(28),a(42),a(16),a(34),a(15),a(9),a(13),a(10),a(4),a(22),a(23),a(57),a(17),a(7);var n=r(a(43)),l=r(a(30));a(41);var u,o=r(a(44)),i=r(a(36)),c=r(a(37)),s=r(a(55)),f=r(a(56)),d=r(a(51)),p=r(a(49)),m=r(a(26)),h=r(a(74)),v=a(14);function g(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function y(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};return"".concat(e.getResourceUrl(t),"/").concat(t.name)},e.getKs8Url=function(){var t,a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return"api/v1".concat(e.getPath(a),"/").concat(e.module,"/").concat(null!==(t=a.name)&&void 0!==t?t:"")},e}return(0,c.default)(u,[{key:"fetchDetail",value:(r=(0,o.default)(n.default.mark((function e(t){var a,r;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.isLoading=!0,e.next=3,request.get(this.getKs8Url(t));case 3:return a=e.sent,r=y(y({},t),this.mapper(a)),this.detail=r,this.isLoading=!1,e.abrupt("return",r);case 8:case"end":return e.stop()}}),e,this)}))),function(e){return r.apply(this,arguments)})},{key:"create",value:(a=(0,o.default)(n.default.mark((function e(t,a){return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.submitting(request.post(this.getKs8Url(t),a)));case 1:case"end":return e.stop()}}),e,this)}))),function(e,t){return a.apply(this,arguments)})},{key:"update",value:(t=(0,o.default)(n.default.mark((function e(t,a){var r,l;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,request.get(this.getResourceUrl(t));case 2:return r=e.sent,(l=(0,m.default)(r,"metadata.resourceVersion"))&&(0,h.default)(a,"metadata.resourceVersion",l),e.abrupt("return",this.submitting(request.put(this.getKs8Url(t),a)));case 6:case"end":return e.stop()}}),e,this)}))),function(e,a){return t.apply(this,arguments)})},{key:"patch",value:function(e,t){return this.submitting(request.patch(this.getKs8Url(e),t))}},{key:"delete",value:function(e){return this.submitting(request.delete(this.getKs8Url(e)))}}]),u}(r(a(68)).default),(0,p.default)(u.prototype,"fetchDetail",[v.action],Object.getOwnPropertyDescriptor(u.prototype,"fetchDetail"),u.prototype),(0,p.default)(u.prototype,"create",[v.action],Object.getOwnPropertyDescriptor(u.prototype,"create"),u.prototype),(0,p.default)(u.prototype,"update",[v.action],Object.getOwnPropertyDescriptor(u.prototype,"update"),u.prototype),(0,p.default)(u.prototype,"patch",[v.action],Object.getOwnPropertyDescriptor(u.prototype,"patch"),u.prototype),(0,p.default)(u.prototype,"delete",[v.action],Object.getOwnPropertyDescriptor(u.prototype,"delete"),u.prototype),u);t.default=b},,,function(e,t,a){"use strict";var r=a(20);a(12),a(5),a(11),a(6),a(29),a(18),a(9),a(13),a(10),a(4),a(22),a(23),a(17),a(38),a(7),a(32),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(12),a(45),a(5),a(11),a(6),a(29),a(18),a(28),a(42),a(34),a(15),a(9),a(13),a(10),a(4),a(22),a(23),a(57),a(17),a(38),a(7),a(32);var n=r(a(43));a(41);var l,u=r(a(44)),o=r(a(30)),i=r(a(36)),c=r(a(37)),s=r(a(332)),f=r(a(55)),d=r(a(56)),p=r(a(51)),m=r(a(49)),h=a(14);function v(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function g(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.cluster,a=e.workspace,r="";return t&&(r+="/klusters/".concat(t)),a&&(r+="/workspaces/".concat(a)),r}},{key:"fetchDetail",value:(t=(0,o.default)(n.default.mark((function e(t){var a,r;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.isLoading=!0,e.next=3,request.get(this.getDetailUrl(t),{},{},(function(){}));case 3:return a=e.sent,r=y(y({},t),this.mapper(a)),this.detail=r,this.isLoading=!1,e.abrupt("return",(0,v.default)(a,"status.total"));case 8:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})},{key:"apiVersion",get:function(){return"kapis/tenant.kubesphere.io/v1beta1"}}]),r}(m.default),(0,p.default)(u.prototype,"fetchDetail",[h.action],Object.getOwnPropertyDescriptor(u.prototype,"fetchDetail"),u.prototype),u);t.default=b},function(e,t,a){"use strict";var r=a(20);a(12),a(5),a(11),a(6),a(73),a(18),a(16),a(27),a(9),a(13),a(10),a(4),a(23),a(17),a(7),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(12),a(45),a(5),a(11),a(6),a(73),a(18),a(28),a(42),a(16),a(27),a(34),a(15),a(9),a(13),a(10),a(4),a(22),a(23),a(57),a(17),a(7);var n=r(a(61)),l=r(a(30)),u=r(a(58)),o=r(a(43));a(41);var i,c=r(a(44)),s=r(a(36)),f=r(a(37)),d=r(a(55)),p=r(a(56)),m=r(a(51)),h=r(a(49)),v=r(a(26)),g=a(14),y=a(72);function E(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function b(e){for(var t=1;t0&&void 0!==h[0]?h[0]:{},a=t.cluster,r=t.workspace,l=t.namespace,i=t.more,c=t.devops,s=(0,u.default)(t,["cluster","workspace","namespace","more","devops"]),this.list.isLoading=!0,f=[],s.sortBy||void 0!==s.ascending||(s.sortBy=y.LIST_DEFAULT_ORDER[this.module]||"createTime"),s.limit!==1/0&&-1!==s.limit||(s.limit=-1,s.page=1),s.readyToUse&&f.push("status.readyToUse=".concat(s.readyToUse)),s.volumeSnapshotClassName&&(f.push("spec.volumeSnapshotClassName=".concat(s.volumeSnapshotClassName)),delete s.volumeSnapshotClassName),s.persistentVolumeClaimName&&(f.push("spec.source.persistentVolumeClaimName=".concat(s.persistentVolumeClaimName)),delete s.persistentVolumeClaimName),f=f.join(",")||void 0,s.fieldSelector=f,s.limit=s.limit||10,e.next=13,request.get(this.getResourceUrl({cluster:a,workspace:r,namespace:l,devops:c}),this.getFilterParams(s));case 13:return d=e.sent,p=((0,v.default)(d,"items")||[]).map((function(e){return b({cluster:a,namespace:l,workspace:r},m.mapper(e))})),this.list.update(b(b({data:i?[].concat((0,n.default)(this.list.data),(0,n.default)(p)):p,total:d.totalItems||d.totalCount||d.total_count||p.length||0},s),{},{limit:Number(s.limit)||10,page:Number(s.page)||1,isLoading:!1},this.list.silent?{}:{selectedRowKeys:[]})),e.abrupt("return",p);case 17:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})},{key:"resourceKind",get:function(){return"VolumeSnapshot"}},{key:"apiVersion",get:function(){return"apis/snapshot.storage.k8s.io/v1"}}]),l}(r(a(68)).default),(0,h.default)(i.prototype,"fetchList",[g.action],Object.getOwnPropertyDescriptor(i.prototype,"fetchList"),i.prototype),i);t.default=O},function(e,a,r){"use strict";var n=r(157),l=r(20);r(12),r(5),r(11),r(6),r(84),r(18),r(97),r(98),r(9),r(13),r(10),r(4),r(23),r(24),r(17),r(85),r(64),r(188),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(45),r(5),r(11),r(6),r(84),r(160),r(18),r(28),r(97),r(42),r(34),r(15),r(98),r(9),r(13),r(10),r(4),r(23),r(57),r(24),r(17),r(85),r(64),r(188),r(7);var u=l(r(61)),o=l(r(30)),i=l(r(36)),c=l(r(37)),s=l(r(55)),f=l(r(56)),d=l(r(51)),p=l(r(96)),m=l(r(246)),h=n(r(0)),v=l(r(3)),g=l(r(837)),y=l(r(454)),E=l(r(63)),b=l(r(972)),_=l(r(189)),O=l(r(1504)),S=l(r(26)),C=r(186),D=r(453),k=l(r(2471)),N=l(r(2473));function T(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function R(e){for(var t=1;t0?d:f,m=s.map((function(e){return R(R({},e),{},{value:e.key})})),g="tags"===i&&p.length>=5;return 0===m.length?h.default.createElement("div",{className:N.default.multi},h.default.createElement("div",{className:N.default.empty},t("NO_DATA_DESC"))):h.default.createElement("div",{className:N.default.multi},h.default.createElement(C.CheckboxGroup,{value:p,onChange:function(e){n.multiValues=(0,o.default)({},i,e),n.forceUpdate()}},m.map((function(e,t){var a=p.includes(e.key);return h.default.createElement(C.Checkbox,{className:(0,v.default)(N.default.option,(0,o.default)({},N.default.checked,a)),value:e.value,disabled:g&&!a,key:"".concat(e.value,"-").concat(t)},c?c(e):e.label)}))))},n.merageMultiTags=function(e){for(var t=[],a=0;a1&&(a=r+a-1),t.push(R(R({},n),{},{total:r}))}return t};var l=n.getSuggestions(e.columns),u=I(l,e.filters);return n.state={suggestions:l,activeSuggestion:null,optionVisible:!1,tags:u,activeTimeselector:!1,index:0},n.input=h.default.createRef(),n.filterInput=h.default.createRef(),n}return(0,c.default)(r,[{key:"componentDidUpdate",value:function(e){var t=this.state.suggestions;this.props.columns!==e.columns&&(t=this.getSuggestions(this.props.columns),this.setState({suggestions:t})),(0,g.default)(this.props.filters,e.filters)||this.setState({value:"",activeSuggestion:null,optionVisible:!1,tags:I(t,this.props.filters)})}},{key:"getSuggestions",value:function(e){var t=this.props,a=t.showTimeSelector,r=t.showKeywords,n=e.filter((function(e){return e.search&&e.dataIndex})).map((function(e){return{label:e.title,key:e.searchKey||e.dataIndex,options:e.filters&&e.filters.map((function(e){return{label:e.text,key:e.value}})),multi:e.multi,render:e.renderSearch}}));return a?[].concat((0,u.default)(n),[M]):r?[P].concat((0,u.default)(n)):n}},{key:"renderMenu",value:function(){var e=this.state,t=e.suggestions,a=e.tags,r=document.getElementsByClassName("table-body"),n=(0,S.default)(r,"[0].clientHeight","none"),l=t.filter((function(e){return e.multi||!a.some((function(t){return t.filter===e.key}))}));return l.length<1?null:h.default.createElement(C.Menu,{onClick:this.handleMenuClick,style:{maxHeight:n,overflowY:"auto"}},l.map((function(e){return h.default.createElement(C.Menu.MenuItem,{key:e.key,value:e},e.label)})))}},{key:"renderTags",value:function(){var e=this,t=this.state.tags;return this.merageMultiTags(t).map((function(t){return h.default.createElement(C.Tag,{key:"".concat(t.filter,"-").concat(t.value)},h.default.createElement("span",null,t.filterLabel,":",t.valueLabel),t.total>1&&h.default.createElement("span",{style:{marginLeft:"6px"}},"(+",t.total-1,")"),h.default.createElement(C.Icon,{name:"close",type:"light",clickable:!0,onClick:function(){return e.handleTagDelete(t)}}))}))}},{key:"renderInput",value:function(){var e,a=this.state,r=a.activeSuggestion,n=a.optionVisible,l=a.value,u=h.default.createElement(C.Input,{type:"text",innerRef:this.input,placeholder:t("SEARCH"),onChange:this.handleChange,onKeyUp:this.handleKeyUp,value:l||"",onFocus:this.handleFocus,onBlur:this.handleBlur});return r?r.options&&!r.multi?e=this.renderSuggestionOptions():r.options&&r.multi&&(e=this.renderMultiSuggestionOptions()):e=this.renderMenu(),e?h.default.createElement(C.Dropdown,{onClose:this.handleOnClose,theme:"dark",content:e,visible:n,closeAfterClick:!1},u):u}},{key:"render",value:function(){var e=this.props,t=e.className,a=e.contentClassName,r=e.showTimeSelector,n=this.state,l=n.value,u=n.tags,i=n.activeTimeselector,c=!(0,E.default)(l)||!(0,E.default)(u);return h.default.createElement("div",{className:(0,v.default)(N.default.wrapper,(0,o.default)({},N.default.hasValue,c),t),ref:this.filterInput},h.default.createElement(C.Icon,{className:"is-left",name:"magnifier"}),h.default.createElement("div",{className:(0,v.default)(N.default.content,a)},this.renderTags(),this.renderInput()),c&&h.default.createElement(C.Icon,{className:"is-right",name:"close",clickable:!0,onClick:this.handleClear}),r&&h.default.createElement(k.default,{visible:i,onChange:this.handleTimeSelectorChange,onToggle:this.handleTimeSelectorToggle}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var a,r=(null===(a=e.filters)||void 0===a?void 0:a.__index)||0;return r!==t.index?{index:r,value:"",activeSuggestion:null,optionVisible:!1,tags:I(t.suggestions,e.filters)}:null}}]),r}(h.Component);a.default=A},function(e,a,r){"use strict";r(15);var n=r(20);r(73),r(18),r(16),r(24),r(64),r(136),Object.defineProperty(a,"__esModule",{value:!0}),a.checkRepoInvalidReason=a.compareVersion=a.downloadFileFromBase64=a.getAppCategoryNames=a.getVersionTypesName=a.transferReviewStatus=a.transferVersionStatus=a.transferAppStatus=void 0;var l=n(r(246));r(73),r(18),r(16),r(319),r(24),r(64);var u=n(r(451)),o=r(1049);a.transferAppStatus=function(e){return o.STATUS_TRANSFER_MAP[e]?t("APP_STATUS_".concat(o.STATUS_TRANSFER_MAP[e].toUpperCase().replace(/[^A-Z]+/g,"_"))):e};a.transferVersionStatus=function(e){return o.STATUS_TRANSFER_MAP[e]?"draft"===e?t("APP_STATUS_NOT_SUBMITTED"):t("APP_STATUS_".concat(o.STATUS_TRANSFER_MAP[e].toUpperCase().replace(/[^A-Z]+/g,"_"))):e};a.transferReviewStatus=function(e){var t;switch(e){case"submitted":t="to-be-reviewed";break;case"passed":case"suspended":case"rejected":case"active":t=e;break;default:t="in-review"}return t};a.getVersionTypesName=function(e){return e?e.split(",").map((function(e){return(0,u.default)(e)})).join(" "):"-"};a.getAppCategoryNames=function(e){var a,r,n,l,u=null==e||null===(a=e.metadata)||void 0===a||null===(r=a.annotations)||void 0===r?void 0:r["kubesphere.io/alias-name"];if(u)return u;var o=null==e||null===(n=e.metadata)||void 0===n?void 0:n.name;return"kubesphere-app-uncategorized"===o?t("APP_CATE_UNCATEGORIZED"):t("APP_CATE_".concat(null==o?void 0:o.toUpperCase().replace(/[^A-Z]+/g,"_")),{defaultValue:o||(null==e||null===(l=e.metadata)||void 0===l?void 0:l.name)})};a.downloadFileFromBase64=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0,a=document.createElement("a");a.href="data:application/tar+gzip;base64,".concat(e),a.download="".concat(t,".tgz"),a.click()};a.compareVersion=function(e,t){if((0,l.default)(e)+(0,l.default)(t)!=="stringstring")return!1;for(var a=e.split("."),r=t.split("."),n=Math.max(a.length,r.length),u=0;u0||parseInt(a[u],10)>parseInt(r[u],10))return 1;if(r[u]&&!a[u]&&parseInt(r[u],10)>0||parseInt(a[u],10)0&&void 0!==arguments[0]?arguments[0]:{},a=arguments.length>1?arguments[1]:void 0;return"".concat(e.apiVersion).concat(e.getPath(t),"/").concat(e.module).concat("put"===a?"/".concat(t.name):"","?dryRun=All")},e.checkValidDomain=function(t,a){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"post";return request[r](e.getValiddomainUrl(t,r),a,{headers:{"x-ignore-error-notify":!0}}).then((function(e){return 403===e.status?{exist:!0}:200===e.status?{exist:!1}:e}))},e}return a}(r(a(68)).default);t.default=c},,function(e,t,a){"use strict";a(15);var r=a(20);a(5),a(4),a(23),a(17),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(45),a(5),a(42),a(4),a(23),a(57),a(17);var n=r(a(36)),l=r(a(55)),u=r(a(56)),o=r(a(51));function i(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,o.default)(e);if(t){var n=(0,o.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,u.default)(this,a)}}var c=function(e){(0,l.default)(a,e);var t=i(a);function a(){var e;(0,n.default)(this,a);for(var r=arguments.length,l=new Array(r),u=0;uNumber(Object.values(t)[0])?ne(ne({},e),t):ne({},e):ne(ne({},e),t)}),{})},l.fetchQuota=(0,i.default)(o.default.mark((function e(){var t,a,r,n,u,i,c,s,f,d;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a=l.namespace,r=l.props,n=r.cluster,u=r.projectDetail,i=r.isFederated,!(t=u?u.workspace:l.props.workspace)||!a){e.next=15;break}if(i){e.next=14;break}return e.next=7,l.singleClusterQuota(t,a,n);case 7:c=e.sent,s=c.workspaceQuota,f=c.namespaceQuota,d={workspace:s,namespace:f},l.setState({leftQuota:d,availableQuota:d}),e.next=15;break;case 14:l.multiClusterQuota(t,a);case 15:case"end":return e.stop()}}),e)}))),l.handleReplicaChange=function(e){l.setState({replicas:e})},l.handleClusterUpdate=function(){l.updateService()},l.showContainer=function(e){l.setState({showContainer:!0,selectContainer:e||{}})},l.hideContainer=function(){l.setState({showContainer:!1,selectContainer:{}})},l.updateTimeZone=function(e){var t=(0,b.default)(l.fedFormTemplate,"".concat(l.prefix,"spec.volumes"),[]);e.some((function(e){return(e.volumeMounts||[]).some((function(e){return"/etc/localtime"===e.mountPath}))}))?t.every((function(e){return"host-time"!==e.name}))&&t.push({hostPath:{path:"/etc/localtime",type:""},name:"host-time"}):t=t.filter((function(e){var t;return!("host-time"===e.name&&"/etc/localtime"===(null==e||null===(t=e.hostPath)||void 0===t?void 0:t.path))})),(0,w.default)(l.fedFormTemplate,"".concat(l.prefix,"spec.volumes"),t)},l.updatePullSecrets=function(){var e={},t="".concat(l.prefix,"spec.imagePullSecrets"),a="".concat(l.prefix,'metadata.annotations["kubesphere.io/imagepullsecrets"]'),r=(0,b.default)(l.fedFormTemplate,"".concat(l.prefix,"spec.containers"),[]),n=(0,b.default)(l.fedFormTemplate,"".concat(l.prefix,"spec.initContainers"),[]);(0,y.default)(r,n).forEach((function(t){t.pullSecret&&(e[t.name]=t.pullSecret),t.annotationOfImagePullSecrets&&delete t.annotationOfImagePullSecrets}));var u=(0,b.default)(l.fedFormTemplate,t,[]),o=(0,b.default)(l.fedFormTemplate,a,null);if(!(0,O.default)(e)){var i=Object.values(e).map((function(e){return{name:e}}));u=u.concat(i).reduce((function(e,t){return e.find((function(e){return e.name===t.name}))||e.push(t),e}),[])}var c=JSON.stringify(e);if(null!==o){var s=ne(ne({},JSON.parse(o)),e);c=JSON.stringify(s)}(0,w.default)(l.fedFormTemplate,t,u),(0,w.default)(l.fedFormTemplate,a,c)},l.updateService=function(){var e=l.props,t=e.formTemplate;if(e.withService){var a=(0,b.default)(l.fedFormTemplate,"".concat(l.prefix,"spec.containers"),[]),r=[];a.forEach((function(e){e.ports&&e.ports.forEach((function(e){e.servicePort&&r.push({name:e.name,protocol:e.protocol,port:e.servicePort,targetPort:e.containerPort})}))}));var n=t.Service,u=l.props.isFederated?"spec.template.":"";(0,w.default)(n,"".concat(u,"spec.ports"),r);var o=(0,b.default)(l.formTemplate,"metadata.labels",{}),i=(0,b.default)(l.fedFormTemplate,"".concat(l.prefix,"metadata.labels"),{});(0,w.default)(n,"metadata.labels",o),(0,w.default)(n,"".concat(u,"spec.selector"),(0,k.default)(i,"version"));var c=(0,b.default)(l.formTemplate,"spec.placement");c?(0,w.default)(n,"spec.placement",c):(0,I.default)(n,"spec.placement"),"statefulsets"===l.module?(0,w.default)(n,"".concat(u,"spec.clusterIP"),"None"):(0,I.default)(n,"".concat(u,"spec.clusterIP"))}},l.handleDelete=function(){l.updatePullSecrets(),l.updateService()},l.containersValidator=function(e,a,r){if((0,O.default)(a))return r({message:t("CONTAINER_EMPTY_DESC")});r()},l.state={showContainer:!1,selectContainer:{},limitRange:{},imageRegistries:[],replicas:l.getReplicas(),leftQuota:{}},l.module=["apptemplates","apptemplateversions"].includes(e.module)?"deployments":null!==(n=e.module)&&void 0!==n?n:"deployments";var u=(0,A.isEdgeWizePage)();return l.limitRangeStore=u?new V.default:new W.default,l.imageRegistryStore=u?new z.default:new L.default,l.quotaStore=u?new U.default:new q.default,l.workspaceQuotaStore=u?new B.default:new x.default,l.projectStore=u?new F.default:new H.default,e.isFederated&&(l.limitRangeStore=u?new G.default({module:l.limitRangeStore.module}):new Y.default({module:l.limitRangeStore.module}),l.imageRegistryStore=u?new G.default({module:l.imageRegistryStore.module}):new Y.default({module:l.imageRegistryStore.module})),l.handleContainer=l.handleContainer.bind((0,d.default)(l)),l.containerRef=v.default.createRef(),l}return(0,f.default)(r,[{key:"componentDidMount",value:function(){var e=this.props.store;this.fetchData(),this.fetchQuota(),this.props.withService&&this.initService(this.formTemplate),e.renderScheduleTab&&this.props.store.setMetadata(this.formTemplate.metadata)}},{key:"componentDidUpdate",value:function(){var e=this.containerRef.current,t=(0,b.default)(e,"state.error",null),a=(0,b.default)(this.props.formTemplate,"".concat(this.prefix,"spec.containers"),[]);t&&a.length>0&&e.setState({error:null})}},{key:"initService",value:function(){var e=(0,b.default)(this.formTemplate,"metadata.name"),t=(0,b.default)(this.props.formTemplate,"Service.metadata.name");e&&!t&&(t="".concat(e.slice(0,57),"-").concat((0,A.generateId)(4)),/^[a-z]/.test(t)||(t="s".concat(t)),(0,w.default)(this.props.formTemplate,"Service.metadata.name",t),(0,w.default)(this.props.formTemplate,'Service.metadata.annotations["kubesphere.io/alias-name"]',e),(0,w.default)(this.props.formTemplate,'Service.metadata.annotations["kubesphere.io/serviceType"]',"statefulservice"),(0,w.default)(this.fedFormTemplate,"spec.serviceName",t))}},{key:"fetchData",value:function(){var e=this,t=this.props,a=t.cluster,r=t.isFederated,n={cluster:a,namespace:(0,b.default)(this.formTemplate,"metadata.namespace")};Promise.all([this.limitRangeStore.fetchListByK8s(n),r?this.imageRegistryStore.fetchList(ne(ne({},n),{},{limit:-1,type:"kubernetes.io/dockerconfigjson"})):this.imageRegistryStore.fetchListByK8s(ne(ne({},n),{},{fieldSelector:"type=kubernetes.io/dockerconfigjson"}))]).then((function(t){var a=(0,u.default)(t,2),r=a[0],n=a[1];e.setState({limitRange:(0,b.default)(r,"[0].limit"),imageRegistries:n})}))}},{key:"handleContainer",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,_.default)(e,"resources.limits")&&(e.resources.limits=(0,N.default)(e.resources.limits,O.default)),e.type=e.type||"worker";var t=(0,b.default)(this.fedFormTemplate,"".concat(this.prefix,"spec.containers"),[]).map((function(e){return ne(ne({},e),{},{type:"worker"})})),a=(0,b.default)(this.fedFormTemplate,"".concat(this.prefix,"spec.initContainers"),[]).map((function(e){return ne(ne({},e),{},{type:"init"})})),r=(0,y.default)(t,a),n=this.state.selectContainer,l=r.findIndex((function(e){return e.name===n.name}));l>-1?r[l]=e:r.push(e);var u=[],o=[];r.forEach((function(e){"worker"===e.type?(delete e.type,u.push(e)):(delete e.type,o.push(e))})),o.forEach((function(e){(0,A.cancelContainerDot)(e)})),u.forEach((function(e){(0,A.cancelContainerDot)(e)})),(0,w.default)(this.fedFormTemplate,"".concat(this.prefix,"spec.containers"),u),(0,w.default)(this.fedFormTemplate,"".concat(this.prefix,"spec.initContainers"),o),this.updateTimeZone(r),this.updatePullSecrets(),this.updateService(),this.hideContainer()}},{key:"renderContainerForm",value:function(e){var t=this.props,a=t.onlyDockerHub,r=t.withService,n=t.isFederated,u=t.cluster,o=t.supportGpuSelect,i=t.projectDetail,c=this.state,s=c.limitRange,f=c.imageRegistries,d=e.image?"Edit":"Add",p={limitRange:s,onlyDockerHub:a,imageRegistries:f};return v.default.createElement(Q.default,(0,l.default)({type:d,module:this.module,namespace:this.namespace,data:e,projectDetail:i,onSave:this.handleContainer,onCancel:this.hideContainer,withService:r,isFederated:n,workspaceQuota:this.workspaceQuota,cluster:u,supportGpuSelect:o,containers:this.containers,isEdit:this.props.isEdit,isEdgeWize:(0,A.isEdgeWizePage)()},p))}},{key:"renderDeployPlacementTip",value:function(){return v.default.createElement("div",{className:ae.default.tipBox},v.default.createElement("div",{className:ae.default.tipTitle},t("SPECIFY_REPLICAS")),v.default.createElement("p",null,t("SPECIFY_REPLICAS_DESC")),v.default.createElement("br",null),v.default.createElement("div",{className:ae.default.tipTitle},t("SPECIFY_WEIGHTS")),v.default.createElement("p",null,t("SPECIFY_WEIGHTS_DESC")))}},{key:"renderDeployPlace",value:function(){var e=this.props.projectDetail;return v.default.createElement(g.Form.Item,{className:"margin-b12",label:t("POD_REPLICAS"),tip:this.renderDeployPlacementTip()},v.default.createElement(K.default,{module:this.module,template:this.formTemplate,clusters:e.clusters,onClusterUpdate:this.handleClusterUpdate,omitAlias:12}))}},{key:"renderDeployMode",value:function(){var e=this.props.projectDetail;return v.default.createElement("div",{className:"margin-b12"},v.default.createElement("div",{className:ae.default.formTip},v.default.createElement("span",{className:ae.default.tipLabel},t("REPLICA_SCHEDULING_MODE")),v.default.createElement(g.Tooltip,{placement:"right",content:this.renderDeployPlacementTip()},v.default.createElement(g.Icon,{name:"question",size:"20"}))),v.default.createElement(g.Form.Item,null,v.default.createElement(K.default,{module:this.module,template:this.formTemplate,clusters:e.clusters,onClusterUpdate:this.handleClusterUpdate,store:this.props.store,omitAlias:12})))}},{key:"renderReplicasControl",value:function(){if("daemonsets"===this.module)return null;var e=this.props,t=e.isFederated,a=e.store,r=e.replicasExtraControl,n=e.isEdit;return t?a.renderScheduleTab?this.renderDeployMode():this.renderDeployPlace():v.default.createElement("div",{className:"margin-b12"},v.default.createElement(X.default,{module:this.module,replicas:this.state.replicas,template:this.formTemplate,replicasExtraControl:null==r?void 0:r({isEdit:n}),onChange:this.handleReplicaChange}))}},{key:"renderContainerList",value:function(){var e=this.props,a=e.isReadOnlyContainers,r=e.isShowAddContainer,n=(0,b.default)(this.fedFormTemplate,"".concat(this.prefix,"spec"));return v.default.createElement(g.Form.Item,{label:t("CONTAINERS"),rules:[{validator:this.containersValidator}],ref:this.containerRef},v.default.createElement($.default,{name:"".concat(this.prefix,"spec.containers"),onShow:this.showContainer,onDelete:this.handleDelete,specTemplate:n,leftQuota:this.state.leftQuota,projectDetail:this.props.projectDetail,replicas:this.state.replicas,isEdit:this.props.isEdit,isReadOnlyContainers:a,isShowAddContainer:r}))}},{key:"renderUpdateStrategy",value:function(){return v.default.createElement("div",{className:"margin-t12"},v.default.createElement(ee.default,{module:this.module,data:this.fedFormTemplate}))}},{key:"renderPodSecurityContext",value:function(){return v.default.createElement("div",{className:"margin-t12"},v.default.createElement(Z.default,{prefix:"".concat(this.prefix,"spec.securityContext")}))}},{key:"renderPodAffinity",value:function(){var e=this.props,t=e.cluster,a=e.namespace;return v.default.createElement("div",{className:"margin-b12"},v.default.createElement(j.default,{initial:!0,data:this.fedFormTemplate,module:this.module,cluster:t,namespace:a,checkable:!0}))}},{key:"renderTerminationSeconds",value:function(){return v.default.createElement("div",{className:"margin-b12"},v.default.createElement(g.Form.Group,{label:t("POD_GRACE_PERIOD"),desc:t("POD_GRACE_PERIOD_DESC"),keepDataWhenUnCheck:!0,checkable:!0},v.default.createElement(J.default,{prefix:this.prefix})))}},{key:"renderMetadata",value:function(){return v.default.createElement("div",{className:"margin-b12"},v.default.createElement(g.Form.Group,{label:t("ADD_METADATA"),desc:t("POD_ADD_METADATA_DESC"),keepDataWhenUnCheck:!0,checkable:!0},v.default.createElement(te.default,null)))}},{key:"render",value:function(){var e=this.props,t=e.formRef,a=e.className,r=this.state,n=r.showContainer,l=r.selectContainer,u=JSON.parse((0,b.default)(this.fedFormTemplate,'metadata.annotations["kubesphere.io/imagepullsecrets"]',"{}"));return n?this.renderContainerForm(ne(ne({},l),{},{annotationOfImagePullSecrets:u})):v.default.createElement(g.Form,{data:this.fedFormTemplate,ref:t,className:a},this.renderReplicasControl(),this.renderContainerList(),this.renderUpdateStrategy(),this.renderPodSecurityContext(),this.renderPodAffinity(),this.renderTerminationSeconds(),this.renderMetadata())}},{key:"prefix",get:function(){return this.props.prefix||"spec.template."}},{key:"namespace",get:function(){return(0,b.default)(this.formTemplate,"metadata.namespace")}},{key:"formTemplate",get:function(){var e=this.props.formTemplate,t=(0,b.default)(e,P.MODULE_KIND_MAP[this.module],e);return t.totalReplicas="",t}},{key:"fedFormTemplate",get:function(){return this.props.isFederated?(0,b.default)(this.formTemplate,"spec.template"):this.formTemplate}},{key:"workspaceQuota",get:function(){var e=(0,b.default)(this.state.availableQuota,"namespace",{}),t=(0,b.default)(this.state.availableQuota,"workspace",{});return(0,C.default)(e,t,(function(e,t){if(e||t)return(0,S.default)(e)?t:e0&&void 0!==f[0]?f[0]:{},a=t.cluster,t.namespace,r=t.module,l=(0,u.default)(t,["cluster","namespace","module"]),this.list.isLoading=!0,r&&(this.module=r),o="".concat(this.apiVersion,"/").concat(this.module).concat(l.dryRun?"?dryRun=All":""),e.next=6,request.get(o,l,{},(function(){return{items:[]}}));case 6:return i=e.sent,c=Array.isArray(i.items)?i.items.map((function(e){return g({cluster:a,module:r||s.module},s.mapper(e))})):[],this.list.update({data:c,total:i.items.length||0,isLoading:!1}),e.abrupt("return",c);case 10:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})}]),r}(r(a(851)).default),(0,m.default)(o.prototype,"fetchListByK8s",[h.action],Object.getOwnPropertyDescriptor(o.prototype,"fetchListByK8s"),o.prototype),o);t.default=E},,function(e,t,a){"use strict";var r=a(20);a(12),a(5),a(11),a(6),a(86),a(16),a(137),a(9),a(13),a(10),a(4),a(22),a(23),a(17),a(7),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(12),a(45),a(5),a(11),a(6),a(86),a(28),a(42),a(16),a(137),a(34),a(15),a(9),a(13),a(10),a(4),a(22),a(23),a(57),a(24),a(193),a(17),a(7);var n=r(a(30)),l=r(a(43)),u=r(a(58));a(41);var o,i,c,s,f,d,p,m,h,v=r(a(44)),g=r(a(65)),y=r(a(36)),E=r(a(37)),b=r(a(88)),_=r(a(55)),O=r(a(56)),S=r(a(51)),C=r(a(49)),D=(r(a(66)),a(14)),k=r(a(122)),N=a(440),T=a(916),R=a(327);function w(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function I(e){for(var t=1;t0&&void 0!==c[0]?c[0]:{},a=t.app_id,r=t.version_id,n=(0,u.default)(t,["app_id","version_id"]),this.isLoading=!0,this.filters=Object.assign(this.filters,n),e.next=5,request.get(this.getUrl({app_id:a,version_id:r}),this.filters,null,this.reject);case 5:(o=e.sent)&&(i=o.files||{},Object.keys(i).forEach((function(e){i[e]=(0,N.safeAtob)(i[e])})),this.files=i,this.isLoading=!1);case 7:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})}]),r}(r(a(458)).default),i=(0,C.default)(o.prototype,"files",[D.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),c=(0,C.default)(o.prototype,"isLoading",[D.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),(0,C.default)(o.prototype,"fetch",[D.action],Object.getOwnPropertyDescriptor(o.prototype,"fetch"),o.prototype),s=(0,C.default)(o.prototype,"checkFile",[D.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return function(e,t){var a=R.UPLOAD_CHECK_RULES[t];return a.format.test(e.name.toLocaleLowerCase())?e.size>a.size?"FILE_MAX_".concat(t.toLocaleUpperCase()):"":"FILE_FORMAT_".concat(t.toLocaleUpperCase())}}}),f=(0,C.default)(o.prototype,"handleFileByBase64Str",[D.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return function(){var e=(0,v.default)(l.default.mark((function e(t,a){var r;return l.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:(r=new FileReader).readAsDataURL(t,"UTF-8"),r.addEventListener("load",(0,v.default)(l.default.mark((function e(){var t,n;return l.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=r.result,n=t.substring(t.indexOf(",")+1,t.length),e.next=4,a(n);case 4:case"end":return e.stop()}}),e)}))));case 3:case"end":return e.stop()}}),e)})));return function(t,a){return e.apply(this,arguments)}}()}}),d=(0,C.default)(o.prototype,"validateImageSize",[D.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return function(){var e=(0,v.default)(l.default.mark((function e(t){var a;return l.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(a=new Image).src=t,e.abrupt("return",new Promise((function(e){a.addEventListener("load",(0,v.default)(l.default.mark((function t(){var r;return l.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:r=!0,(a.width>96||a.height>96)&&(r=!1),e(r);case 3:case"end":return t.stop()}}),t)}))))})));case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()}}),p=(0,C.default)(o.prototype,"validatePackage",[D.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(){var t=(0,v.default)(l.default.mark((function t(a,r){var n,u,o;return l.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.isSubmitting=!0,n={},r?(n.type="helm",n.package=a):(n.version_type="helm",n.version_package=a),u=r?"versions":"apps",t.next=6,request.post("".concat(e.getUrl({app_id:r,name:u}),"?validate=true"),n,{},e.reject);case 6:return o=t.sent,e.isSubmitting=!1,o&&o.name&&(o.base64Str=a),o&&o.error_details&&(o.missFile=(0,k.default)(o.error_details),o.error="MISS_FILE_NOTE"),t.abrupt("return",o);case 11:case"end":return t.stop()}}),t)})));return function(e,a){return t.apply(this,arguments)}}()}}),m=(0,C.default)(o.prototype,"uploadPackage",[D.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return function(){var e=(0,v.default)(l.default.mark((function e(t){var a,r,n,u=arguments;return l.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=u.length>1&&void 0!==u[1]?u[1]:{},r=u.length>2?u[2]:void 0,n=I({},a),"CREATE_APP"===t?n.version_package=a.base64Str:n.package=a.base64Str,delete n.base64Str,e.next=7,r(n);case 7:return e.abrupt("return",e.sent);case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()}}),h=(0,C.default)(o.prototype,"downloadPackage",[D.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return(0,v.default)(l.default.mark((function t(){var a,r,n,u,o,i,c=arguments;return l.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=c.length>0&&void 0!==c[0]?c[0]:{},r=a.app_id,n=a.version_id,u=a.packageName,o=e.getUrl({app_id:r,version_id:n,name:"package"}),t.next=4,e.submitting(request.get(o));case 4:i=t.sent,(0,T.downloadFileFromBase64)(i.package,u);case 6:case"end":return t.stop()}}),t)})))}}),o);t.default=P},function(e,t,a){"use strict";a(15);var r=a(20);a(5),a(73),a(18),a(48),a(4),a(23),a(24),a(17),a(64),Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return function(t){var a="id-".concat(Math.random().toString(32).slice(2));return function(r){(0,u.default)(m,r);var f,d,p=(f=m,d=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=(0,i.default)(f);if(d){var a=(0,i.default)(this).constructor;e=Reflect.construct(t,arguments,a)}else e=t.apply(this,arguments);return(0,o.default)(this,e)});function m(){return(0,n.default)(this,m),p.apply(this,arguments)}return(0,l.default)(m,[{key:"componentDidMount",value:function(){!function(e,t){!function(e,t){if(document.querySelector("#".concat(t)))return;var a=document.createElement("div");a.innerHTML='').concat(e,"");var r=a.getElementsByTagName("svg")[0];r&&r.innerHTML&&(r.setAttribute("aria-hidden","true"),r.style.position="absolute",r.style.width=0,r.style.height=0,r.style.overflow="hidden",n=r,(l=document.body).firstChild?l.insertBefore(n,l.firstChild):l.appendChild(n));var n,l}(e.map((function(e){var t=s.default[e];return t&&!document.querySelector("#icon-".concat(e.replace("_","-")))?t:""})).join("\n"),t)}(e,a)}},{key:"componentWillUnmount",value:function(){}},{key:"render",value:function(){return c.default.createElement(t,this.props)}}]),m}(c.default.Component)}};var n=r(a(36)),l=r(a(37)),u=r(a(55)),o=r(a(56)),i=r(a(51));a(45),a(5),a(73),a(18),a(48),a(42),a(4),a(23),a(57),a(24),a(17),a(64);var c=r(a(0)),s=r(a(2771))},,,,,,function(e,t,a){"use strict";a(15);var r=a(20);a(5),a(4),a(23),a(17),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(45),a(5),a(42),a(4),a(22),a(23),a(57),a(17);var n=r(a(43)),l=r(a(58));a(41);var u,o,i=r(a(44)),c=r(a(65)),s=r(a(36)),f=r(a(88)),d=r(a(55)),p=r(a(56)),m=r(a(51)),h=r(a(49)),v=(r(a(66)),a(14)),g=a(1049);function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,m.default)(e);if(t){var n=(0,m.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,p.default)(this,a)}}var E=(u=function(e){(0,d.default)(a,e);var t=y(a);function a(){var e;(0,s.default)(this,a);for(var r=arguments.length,n=new Array(r),l=0;l0&&void 0!==s[0]?s[0]:{},r=a.app_id,u=a.version_id,o=a.workspace,i=(0,l.default)(a,["app_id","version_id","workspace"]),c=e.getUrl({app_id:r,version_id:u,workspace:o,name:"action"}),t.next=4,e.submitting(request.post(c,i));case 4:return t.abrupt("return",t.sent);case 5:case"end":return t.stop()}}),t)})))}}),u);t.default=E},function(e,t,a){"use strict";a(15),a(10),Object.defineProperty(t,"__esModule",{value:!0}),t.UNIT_CONFIG=t.PIE_COLORS=t.AREA_COLORS=t.METER_RESOURCE_USAGE=t.FEE_CONFIG=t.LEVEL_CONFIG=t.MERTER_TYPE=t.METER_RESOURCE_USAGE_TITLE=t.METER_RESOURCE_TITLE=t.RESOURCE_TITLE=t.RESOURCES_TYPE=t.RESOURCES_METER_TYPE=t.CARD_CONFIG=void 0,a(10);t.CARD_CONFIG=[{icon:"cluster",subTitle:"CLUSTER_CONSUMPTION",type:"cluster",desc:"CLUSTER_CONSUMPTION_DESC",infos:["CLUSTER_RESOURCE_CONSUMPTION_DESC","CLUSTER_NODE_CONSUMPTION_DESC","CLUSTER_POD_CONSUMPTION_DESC"]},{icon:"enterprise",subTitle:"WORKSPACE_CONSUMPTION",type:"workspaces",desc:"WORKSPACE_CONSUMPTION_DESC",infos:["WORKSPACE_RESOURCE_CONSUMPTION_DESC","WORKSPACE_PROJECT_CONSUMPTION_DESC","PROJECT_CONSUMPTION_DESC"]}];t.RESOURCES_METER_TYPE={deployments:"workload",statefulsets:"workload",daemonsets:"workload",nodes:"node",workspaces:"workspace",namespaces:"namespace",applications:"application",openpitrixs:"application",services:"service",pods:"pod",cluster:"cluster"};t.RESOURCES_TYPE=["namespaces","applications","services","deployments","statefulsets","daemonsets","openpitrixs","nodes","pods"];t.RESOURCE_TITLE={nodes:"Cluster Node",pods:"Pod",openpitrixs:"App Template",applications:"Composing App",deployments:"Deployment",statefulsets:"StatefulSet",daemonsets:"DaemonSet",workspaces:"Workspace",cluster:"Cluster",namespaces:"Project",services:"Service"};t.METER_RESOURCE_TITLE={cpu:"CPU",memory:"Memory",disk:"Volumes",net_received:"Net Received",net_transmitted:"Net Transmitted"};var r={cpu:"Meter CPU Usage",memory:"Meter Memory Usage",disk:"Meter Volume Usage",net_received:"Meter Net Received Usage",net_transmitted:"Meter Net Transmitted Usage"};t.METER_RESOURCE_USAGE_TITLE=r;var n=Object.keys(r);t.MERTER_TYPE=n;t.LEVEL_CONFIG={openpitrix:[{type:"openpitrix",children:["service"]}],workspaces:[{type:"workspaces",children:["namespaces"]},{type:"namespaces",children:["applications","deployments","statefulsets","openpitrixs","daemonsets"],parent:["workspaces"]},{type:"applications",children:["deployments","statefulsets","daemonsets"],parent:["namespaces"]},{type:"openpitrixs",children:["deployments","statefulsets","daemonsets"],parent:["namespaces"]},{type:"services",children:["pods"],parent:["applications","namespaces","openpitrixs","daemonsets"]},{type:["deployments","statefulsets","daemonsets"],children:["pods"],parent:["applications","namespaces","openpitrixs"]},{type:"pods",parent:["deployments","statefulsets","namespaces","services","daemonsets"]}],cluster:[{type:"cluster",children:["nodes"]},{type:"nodes",children:["pods"],parent:["cluster"]},{type:"pods",parent:["nodes"]}]};t.FEE_CONFIG={cpu_per_core_per_hour:"cpu",egress_network_traffic_per_megabytes_per_hour:"net_transmitted",ingress_network_traffic_per_megabytes_per_hour:"net_received",mem_per_gigabytes_per_hour:"memory",pvc_per_gigabytes_per_hour:"disk",currency:"currency"};t.METER_RESOURCE_USAGE={cpu:"cpu_usage",memory:"memory_usage_wo_cache",net_received:"net_bytes_received",net_transmitted:"net_bytes_transmitted",disk:"pvc_bytes_total"};t.AREA_COLORS=["green","blue","yellow","red","darkestGreen","darkestBlue","darkestYellow","darkestRed","lightestGreen","lightestBlue","lightestYellow","lightestRed"];t.PIE_COLORS=["#3b747a","#479e88","#55bc8a","#a2d8bb","#326e93","#3385b0","#329dce","#7eb8dc","#c7deef","#8c3231","#ab2f29","#ca2621","#ea8573","#fae7e5","#8d663e","#e0992c","#f5a623","#ffc781","#ffe1be"];t.UNIT_CONFIG={cpu:{label:"Core",value:"core"},memory:{label:"Gi",value:"Gi"},number:{label:"M",value:"Mi"},disk:{label:"GB",value:"Gi"},net_received:{label:"M",value:"Mi"},net_transmitted:{label:"M",value:"Mi"}}},function(e,a,r){"use strict";r(15);var n=r(20),l=r(157);r(5),r(18),r(16),r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(18),r(42),r(16),r(4),r(23),r(57),r(17);var u,o=n(r(36)),i=n(r(37)),c=n(r(55)),s=n(r(56)),f=n(r(51)),d=l(r(0)),p=r(239),m=r(433),h=n(r(321)),v=r(186),g=n(r(789)),y=n(r(814)),E=n(r(438)),b=n(r(437)),_=n(r(955)),O=n(r(999)),S=n(r(3897));function C(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,f.default)(e);if(t){var n=(0,f.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,s.default)(this,a)}}var D=(0,p.observer)(u=function(e){(0,c.default)(r,e);var a=C(r);function r(){var e;(0,o.default)(this,r);for(var t=arguments.length,n=new Array(t),l=0;l0&&void 0!==arguments[0]?arguments[0]:{};return"".concat(e.apiVersion).concat(e.getPath(t),"/nodes").concat(t.dryRun?"?dryRun=All":"")},e.getResourceUrl=function(t){var a=t.cluster;return"/kapis/resources.kubesphere.io/v1alpha3".concat(e.getPath({cluster:a}),"/nodes")},e.createEdgeNode=function(){var t=(0,o.default)(u.default.mark((function t(a){var r,n,l,o,i,c,s,f,d,p;return u.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=a.cluster,n=a.name,l=a.ip,o=a.defaultTaint,i=a.runtime,c=a.imageRepository,s=a.nodegroup,f="/kapis/infra.edgewize.io/v1alpha1".concat(e.getPath({cluster:r}),"/nodes/join"),d={node_name:n,node_ip:l,add_default_taint:o,runtime:i,"image-repository":c},s&&(d.node_group=s),t.next=6,request.get(f,d,{},(function(e){return e}));case 6:return p=t.sent,t.abrupt("return",p);case 8:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),e.getTreeNode=function(){var t=(0,o.default)(u.default.mark((function t(a){var r,n,o,i,c,s;return u.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=a.cluster,n=a.nodetree,o=a.namespace,i=(0,l.default)(a,["cluster","nodetree","namespace"]),c="/clusters/".concat(r).concat(e.apiVersion,"/nodegroups/").concat(n,"/nodes"),t.next=4,request.get(c,i);case 4:return(s=t.sent).items=((0,m.default)(s,"items")||[]).map((function(e){return v(v({cluster:r,namespace:o},e),{},{name:e.metadata.name})})),t.abrupt("return",s);case 7:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),e.checkNodeGroupEdgeNode=function(){var t=(0,o.default)(u.default.mark((function t(a){var r,n,l,o;return u.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=a.cluster,n=a.nodegroup,l=a.name,o="/clusters/".concat(r).concat(e.apiVersion,"/nodegroups/").concat(n,"/nodes/").concat(l),t.next=4,request.get(o);case 4:return t.abrupt("return",t.sent);case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),e.removeNodeGroupEdgeNode=function(){var t=(0,o.default)(u.default.mark((function t(a){var r,n,l,o;return u.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=a.cluster,n=a.nodegroup,l=a.name,o="/clusters/".concat(r).concat(e.apiVersion,"/nodegroups/").concat(n,"/nodes/").concat(l),t.next=4,request.delete(o);case 4:return t.abrupt("return",t.sent);case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),e}return(0,c.default)(a,[{key:"apiVersion",get:function(){return p.API_VERSIONS.nodegroups||""}}]),a}(r(a(856)).default);t.default=y},function(e,t,a){"use strict";a(15);var r=a(20);a(4),a(23),a(17),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(45),a(42),a(4),a(23),a(57),a(17);var n=r(a(36)),l=r(a(55)),u=r(a(56)),o=r(a(51));function i(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,o.default)(e);if(t){var n=(0,o.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,u.default)(this,a)}}var c=function(e){(0,l.default)(a,e);var t=i(a);function a(){return(0,n.default)(this,a),t.apply(this,arguments)}return a}(r(a(973)).default);t.default=c},function(e,a,r){"use strict";(function(e){var n=r(20);r(12),r(5),r(11),r(31),r(6),r(29),r(18),r(16),r(27),r(9),r(13),r(10),r(4),r(22),r(23),r(24),r(17),r(38),r(64),r(7),r(32),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(45),r(5),r(11),r(31),r(6),r(29),r(18),r(28),r(42),r(16),r(27),r(34),r(15),r(9),r(13),r(10),r(4),r(22),r(23),r(57),r(24),r(17),r(38),r(64),r(7),r(32);var l=n(r(43)),u=n(r(61)),o=n(r(30)),i=n(r(58));r(41);var c,s,f,d,p,m,h,v,g,y,E=n(r(44)),b=n(r(65)),_=n(r(36)),O=n(r(37)),S=n(r(88)),C=n(r(55)),D=n(r(56)),k=n(r(51)),N=n(r(49)),T=(n(r(66)),n(r(26))),R=n(r(135)),w=n(r(74)),I=r(14),M=r(72),P=n(r(68)),A=n(r(120)),j=n(r(2749));function L(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function x(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};return"kapis/tenant.kubesphere.io/v1beta1".concat(e.getPath(t),"/").concat(e.module)},e.getResourceUrl=function(){return"/kapis/infra.edgewize.io/v1alpha1/edgeclusters"},e.getListResourceUrl=function(){return"/kapis/tenant.kubesphere.io/v1beta1/clusters"},e.getDetailUrl=function(e){var t=e.name;return"/apis/cluster.kubesphere.io/v1alpha1/clusters/".concat(t)},e.getEdgeDetailUrl=function(e){var t=e.name;return"/apis/infra.edgewize.io/v1alpha1/clusters/".concat(t)},e.getListUrl=function(e){var t=e.name;return"/kapis/infra.edgewize.io/v1alpha1/edgeclusters/".concat(t)},(0,b.default)(e,"createWithKubeConfig",g,(0,S.default)(e)),(0,b.default)(e,"delete",y,(0,S.default)(e)),e}return(0,O.default)(P,[{key:"setProject",value:function(e){this.project=e}},{key:"fetchList",value:(N=(0,E.default)(l.default.mark((function e(){var t,a,r,n,o,c=arguments;return l.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(t=c.length>0&&void 0!==c[0]?c[0]:{}).from,a=t.more,r=(0,i.default)(t,["from","more"]),this.list.isLoading=!0,r.sortBy||void 0!==r.ascending||(r.sortBy=M.LIST_DEFAULT_ORDER[this.module]||"createTime"),r.limit!==1/0&&-1!==r.limit||(r.limit=-1,r.page=1),r.limit=r.limit||10,e.next=7,request.get(this.getListResourceUrl({}),x(x({},r),{},{labelSelector:"cluster-role.kubesphere.io/edge"}));case 7:return n=e.sent,o=(0,T.default)(n,"items",[]).map(this.mapper),this.list.update(x(x({data:a?[].concat((0,u.default)(this.list.data),(0,u.default)(o)):o,total:n.totalItems||n.total_count||o.length||0},r),{},{limit:Number(r.limit)||10,page:Number(r.page)||1,isLoading:!1},this.list.silent?{}:{selectedRowKeys:[]})),e.abrupt("return",o);case 11:case"end":return e.stop()}}),e,this)}))),function(){return N.apply(this,arguments)})},{key:"fetchDetail",value:(k=(0,E.default)(l.default.mark((function t(a){var r,n;return l.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this.isLoading=!0,globals.app.isMultiCluster){t.next=5;break}r=this.mapper((0,R.default)(M.DEFAULT_CLUSTER)),t.next=9;break;case 5:return t.next=7,request.get(this.getDetailUrl(a),null,null,(function(t,a){"Not Found"===a.reason&&e.navigateTo("/404")}));case 7:n=t.sent,r=x(x({},a),this.mapper(n));case 9:return this.detail=r,this.isLoading=!1,t.abrupt("return",r);case 12:case"end":return t.stop()}}),t,this)}))),function(e){return k.apply(this,arguments)})},{key:"fetchProjects",value:(D=(0,E.default)(l.default.mark((function e(){var t,a,r,n,o,c,s,f=this,d=arguments;return l.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=d.length>0&&void 0!==d[0]?d[0]:{},a=t.cluster,r=t.namespace,n=t.more,o=(0,i.default)(t,["cluster","namespace","more"]),this.projects.isLoading=!0,o.sortBy||void 0!==o.ascending||(o.sortBy=M.LIST_DEFAULT_ORDER[this.module]||"createTime"),o.limit!==1/0&&-1!==o.limit||(o.limit=-1,o.page=1),o.limit=o.limit||10,e.next=7,request.get("/kapis/resources.kubesphere.io/v1alpha3".concat(this.getPath({cluster:a,namespace:r}),"/namespaces"),x({labelSelector:"!kubesphere.io/devopsproject"},o));case 7:c=e.sent,s=(0,T.default)(c,"items",[]).map((function(e){return x({cluster:a},f.mapper(e))})),this.projects.update(x(x({data:n?[].concat((0,u.default)(this.projects.data),(0,u.default)(s)):s,total:c.totalItems||c.total_count||s.length||0},o),{},{limit:Number(o.limit)||10,page:Number(o.page)||1,isLoading:!1},this.projects.silent?{}:{selectedRowKeys:[]}));case 10:case"end":return e.stop()}}),e,this)}))),function(){return D.apply(this,arguments)})},{key:"fetchClusterConfigz",value:(c=(0,E.default)(l.default.mark((function e(t){var a;return l.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=t.cluster,e.next=3,this.fetchDetail({name:a});case 3:return(0,w.default)(globals,"edgeClusterConfig.".concat(a),this.detail.configz),e.abrupt("return",""!==(0,T.default)(this.detail.configz,"ksVersion",""));case 5:case"end":return e.stop()}}),e,this)}))),function(e){return c.apply(this,arguments)})},{key:"fetchKubeEdgeIp",value:(o=(0,E.default)(l.default.mark((function e(){var t,a;return l.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,request.get("/kapis/infra.edgewize.io/v1alpha1/config");case 2:return t=e.sent,a=(0,T.default)(t,"data.advertiseAddress",[]),e.abrupt("return",a);case 5:case"end":return e.stop()}}),e)}))),function(){return o.apply(this,arguments)})},{key:"validate",value:(n=(0,E.default)(l.default.mark((function e(a){var r=this;return l.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.isValidating=!0,e.next=3,request.post("".concat(this.getResourceUrl(),"/validation"),a,{},(function(e,a){if(430!==e.status)return r.isValidating=!1,window.onunhandledrejection({status:400,reason:t("VALIDATION_FAILED"),message:a.message}),Promise.reject()}));case 3:this.isValidating=!1;case 4:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})},{key:"batchDelete",value:function(e){var t=this;return this.submitting(Promise.all(e.map((function(e){var a=t.list.data.find((function(t){return t.name===e}));return request.delete(t.getListUrl(a))}))))}},{key:"checkName",value:function(e,t){var a=this.getDetailUrl(e);return request.get(a,x({},t),{headers:{"x-check-exist":!0}})}},{key:"fetchVersion",value:(r=(0,E.default)(l.default.mark((function e(t){var a,r;return l.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=t.cluster,e.next=3,request.get("kapis/clusters/".concat(a,"/version").replace("/clusters/default",""));case 3:r=e.sent,this.version=(0,T.default)(r,"kubernetes.gitVersion");case 5:case"end":return e.stop()}}),e,this)}))),function(e){return r.apply(this,arguments)})}]),P}(P.default),s=(0,N.default)(c.prototype,"initializing",[I.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),f=(0,N.default)(c.prototype,"isAgentLoading",[I.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),d=(0,N.default)(c.prototype,"agent",[I.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),p=(0,N.default)(c.prototype,"isValidating",[I.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),m=(0,N.default)(c.prototype,"isSubmitting",[I.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),h=(0,N.default)(c.prototype,"version",[I.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),v=(0,N.default)(c.prototype,"project",[I.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),(0,N.default)(c.prototype,"setProject",[I.action],Object.getOwnPropertyDescriptor(c.prototype,"setProject"),c.prototype),(0,N.default)(c.prototype,"fetchList",[I.action],Object.getOwnPropertyDescriptor(c.prototype,"fetchList"),c.prototype),(0,N.default)(c.prototype,"fetchDetail",[I.action],Object.getOwnPropertyDescriptor(c.prototype,"fetchDetail"),c.prototype),(0,N.default)(c.prototype,"fetchProjects",[I.action],Object.getOwnPropertyDescriptor(c.prototype,"fetchProjects"),c.prototype),(0,N.default)(c.prototype,"fetchClusterConfigz",[I.action],Object.getOwnPropertyDescriptor(c.prototype,"fetchClusterConfigz"),c.prototype),(0,N.default)(c.prototype,"fetchKubeEdgeIp",[I.action],Object.getOwnPropertyDescriptor(c.prototype,"fetchKubeEdgeIp"),c.prototype),(0,N.default)(c.prototype,"validate",[I.action],Object.getOwnPropertyDescriptor(c.prototype,"validate"),c.prototype),g=(0,N.default)(c.prototype,"createWithKubeConfig",[I.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(t,a){var r=a.name;return request.post("".concat(e.getResourceUrl(),"/").concat(r),t)}}}),y=(0,N.default)(c.prototype,"delete",[I.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(t){return e.submitting(request.delete("".concat(e.getResourceUrl(),"/").concat(t.name)))}}}),(0,N.default)(c.prototype,"batchDelete",[I.action],Object.getOwnPropertyDescriptor(c.prototype,"batchDelete"),c.prototype),(0,N.default)(c.prototype,"checkName",[I.action],Object.getOwnPropertyDescriptor(c.prototype,"checkName"),c.prototype),(0,N.default)(c.prototype,"fetchVersion",[I.action],Object.getOwnPropertyDescriptor(c.prototype,"fetchVersion"),c.prototype),c);a.default=z}).call(this,r(69))},,,,function(e,t,a){"use strict";var r=a(20);a(12),a(5),a(11),a(6),a(9),a(13),a(10),a(4),a(23),a(17),a(7),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(12),a(45),a(5),a(11),a(6),a(28),a(42),a(34),a(15),a(9),a(13),a(10),a(4),a(22),a(23),a(57),a(17),a(7);var n=r(a(30)),l=r(a(43));a(41);var u,o,i,c=r(a(44)),s=r(a(65)),f=r(a(36)),d=r(a(37)),p=r(a(88)),m=r(a(55)),h=r(a(56)),v=r(a(51)),g=r(a(49)),y=(r(a(66)),a(14)),E=a(52),b=a(794),_=r(a(845));function O(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function S(e){for(var t=1;t0&&void 0!==a[0]?a[0]:{},this.alertData.isLoading=!0,e.next=4,this.fetchMetrics(S({metrics:D},t));case 4:this.alertData={isLoading:!1,data:this.data};case 5:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})}]),n}(_.default),o=(0,g.default)(u.prototype,"baseResourcesSummary",[y.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{isLoading:!0,data:{}}}}),i=(0,g.default)(u.prototype,"alertData",[y.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{isLoading:!1,data:{}}}}),(0,g.default)(u.prototype,"getBaseResourcesSummary",[y.action],Object.getOwnPropertyDescriptor(u.prototype,"getBaseResourcesSummary"),u.prototype),(0,g.default)(u.prototype,"fetchAlertData",[y.action],Object.getOwnPropertyDescriptor(u.prototype,"fetchAlertData"),u.prototype),u);t.default=k},function(e,a,r){"use strict";var n=r(20);r(12),r(5),r(11),r(6),r(86),r(18),r(16),r(9),r(13),r(10),r(4),r(22),r(23),r(24),r(17),r(64),r(7),r(110),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(45),r(5),r(11),r(6),r(86),r(160),r(18),r(28),r(42),r(16),r(34),r(15),r(9),r(13),r(10),r(4),r(319),r(22),r(23),r(57),r(24),r(17),r(64),r(7),r(110);var l=n(r(43)),u=n(r(30)),o=n(r(58));r(41);var i,c,s,f,d,p,m,h,v,g,y,E,b,_,O,S,C,D,k,N,T=n(r(44)),R=n(r(65)),w=n(r(36)),I=n(r(37)),M=n(r(88)),P=n(r(55)),A=n(r(56)),j=n(r(51)),L=n(r(49)),x=(n(r(66)),r(909)),U=n(r(135)),z=n(r(26)),F=n(r(60)),G=n(r(63)),V=n(r(189)),B=n(r(74)),Y=r(14),W=r(52),q=n(r(201)),H=n(r(323));function Q(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function K(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"default.txt",a=new Blob([e],{type:"text/plain;charset=utf-8"});(0,x.saveAs)(a,t)},e}return(0,I.default)(de,[{key:"getPipelineUrl",value:function(e){var t=e.cluster,a=e.devops,r=e.name;return"".concat(this.getDevopsUrlV2({cluster:t,devops:a||this.devops}),"pipelines/").concat(decodeURIComponent(r),"/")}},{key:"fetchList",value:(se=(0,T.default)(l.default.mark((function e(){var t,a,r,n,u,i,c,s,f,d,p,m,h,v,g,y,E,b=this,_=arguments;return l.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=_.length>0&&void 0!==_[0]?_[0]:{},r=a.devops,a.workspace,n=a.devopsName,u=a.silent,i=a.cluster,c=(0,o.default)(a,["devops","workspace","devopsName","silent","cluster"]),u||(this.list.isLoading=!0),s=c.page,f=c.limit,d=c.name,p=c.filter,m=c.type,h=c.ascending,v=d?"".concat(encodeURIComponent(d)):void 0,g="".concat(this.getBaseUrl({cluster:i,devops:r}),"pipelines"),e.next=7,request.get(g,{page:s||1,limit:f||10,name:v,filter:p||void 0,type:m||void 0,ascending:h},{params:K({},c)});case 7:y=e.sent,E=(null!==(t=y.items)&&void 0!==t?t:[]).filter((function(e){return!e.metadata.deletionTimestamp})).map((function(e){return K({},b.mapper(e))})),this.setDevops(r),this.devopsName=n,this.list={data:E||[],total:y.totalItems||0,limit:parseInt(f,10)||10,page:parseInt(s,10)||1,filters:(0,V.default)(c,"devops","ascending"),selectedRowKeys:[],isLoading:!1};case 12:case"end":return e.stop()}}),e,this)}))),function(){return se.apply(this,arguments)})},{key:"fetchDetail",value:(ce=(0,T.default)(l.default.mark((function e(t){var a,r,n,u,o,i;return l.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=t.cluster,r=t.name,n=t.isSilent,u=t.devops,n||(this.isLoading=!0),e.next=4,request.get("".concat(this.getBaseUrl({devops:u,cluster:a})).concat(this.module,"/").concat(r));case 4:return o=e.sent,i=this.mapper(o),this.setPipelineConfig(o),this.detail=i,this.isLoading=!1,e.abrupt("return",i);case 10:case"end":return e.stop()}}),e,this)}))),function(e){return ce.apply(this,arguments)})},{key:"fetchDetailUntilEditModeNull",value:(ie=(0,T.default)(l.default.mark((function e(a){var r,n,u,o=this;return l.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=a.cluster,n=a.name,u=a.devops,e.abrupt("return",new Promise((function(e,a){var i=setTimeout((function(){clearTimeout(o.timer),clearTimeout(i),a(t("CONNECTION_TIMEOUT"))}),6e4),c=function(){var t=(0,T.default)(l.default.mark((function t(){var a,s;return l.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,request.get("".concat(o.getBaseUrl({devops:u,cluster:r})).concat(o.module,"/").concat(n));case 2:a=t.sent,s=o.mapper(a),clearTimeout(o.timer),(0,z.default)(s,"annotations['pipeline.devops.kubesphere.io/jenkinsfile.edit.mode']")?o.timer=setTimeout(c,1e3):(clearTimeout(i),e(s));case 6:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}();c()})));case 2:case"end":return e.stop()}}),e)}))),function(e){return ie.apply(this,arguments)})},{key:"checkPipelineName",value:(oe=(0,T.default)(l.default.mark((function e(t){var a,r,n,u=arguments;return l.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a=t.name,r=t.cluster,n=t.devops,u.length>1&&void 0!==u[1]&&!u[1]){e.next=6;break}return e.next=5,request.get(this.getPipelineUrl({cluster:r,name:a,devops:n}),{},{headers:{"x-check-exist":!0}});case 5:return e.abrupt("return",e.sent);case 6:return e.next=8,request.get("/kapis/devops.kubesphere.io/v1alpha2".concat(this.getPath({cluster:r,devops:n}),"/pipelines/").concat(a),{check:!0});case 8:return e.abrupt("return",e.sent);case 9:case"end":return e.stop()}}),e,this)}))),function(e){return oe.apply(this,arguments)})},{key:"getJenkinsFile",value:(ue=(0,T.default)(l.default.mark((function e(t){var a,r,n,u,o,i=arguments;return l.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a=t.cluster,r=t.name,n=t.devops,u=i.length>1&&void 0!==i[1]&&i[1],this.pipelineJsonData.isLoading=!0,e.t0=u,!e.t0){e.next=7;break}return e.next=7,this.fetchDetail({cluster:a,name:r,devops:n});case 7:this.jenkinsFile=(0,z.default)(this.pipelineConfig,"spec.pipeline.jenkinsfile",""),o=(0,z.default)(this.pipelineConfig,"metadata.annotations['pipeline.devops.kubesphere.io/jenkinsfile']"),this.pipelineJsonData={pipelineJson:o?{json:JSON.parse(o)}:void 0,isLoading:!1};case 10:case"end":return e.stop()}}),e,this)}))),function(e){return ue.apply(this,arguments)})},{key:"setPipelineJsonData",value:function(e){this.pipelineJsonData={pipelineJson:e?{json:JSON.parse(e)}:void 0,isLoading:!1}}},{key:"convertJenkinsFileToJson",value:(le=(0,T.default)(l.default.mark((function e(t,a,r,n,u){var o,i,c,s;return l.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return u&&(this.isSubmitting=!0),o=a&&"default"!==a?"/klusters/".concat(a):"",e.next=4,request.put("/kapis/devops.kubesphere.io/v1alpha3".concat(o,"/namespaces/").concat(r,"/pipelines/").concat(n,"/jenkinsfile?mode=raw"),{data:t},{headers:{"content-type":"application/json"}});case 4:return i="raw",e.prev=5,e.next=8,this.fetchDetailUntilEditModeNull({cluster:a,devops:r,name:n});case 8:s=e.sent,c=(0,z.default)(s,'annotations["pipeline.devops.kubesphere.io/jenkinsfile"]'),i="",e.next=17;break;case 13:e.prev=13,e.t0=e.catch(5),i="raw",c=void 0;case 17:return e.prev=17,u&&(this.isSubmitting=!1),e.finish(17);case 20:return e.abrupt("return",{mode:i,jsonData:c});case 21:case"end":return e.stop()}}),e,this,[[5,13,17,20]])}))),function(e,t,a,r,n){return le.apply(this,arguments)})},{key:"getPullRequest",value:(ne=(0,T.default)(l.default.mark((function e(t){var a,r,n,u,i,c,s,f,d;return l.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a=t.name,r=t.devops,t.workspace,n=t.cluster,u=(0,o.default)(t,["name","devops","workspace","cluster"]),i=decodeURIComponent(a),c=u.page,s=u.limit,f=void 0===s?10:s,!(0,G.default)(this.detail)){e.next=6;break}return e.next=6,this.fetchDetail({name:i,devops:r});case 6:return e.next=8,request.get("".concat(this.getBaseUrl({cluster:n,namespace:r}),"pipelines/").concat(decodeURIComponent(a),"/branches"),{filter:"pull-requests",page:c||1,limit:f});case 8:d=e.sent,Array.isArray(d.items)&&d.items.forEach((function(e){e.id=e.latestRun.endTime})),this.pullRequestList={data:d.items||[],total:d.totalItems||0,limit:f,page:parseInt(c,10)||1,filters:(0,V.default)(u,"devops"),isLoading:!1,selectedRowKeys:[]};case 11:case"end":return e.stop()}}),e,this)}))),function(e){return ne.apply(this,arguments)})},{key:"getBranches",value:(re=(0,T.default)(l.default.mark((function e(t){var a,r,n,u,i,c,s,f,d,p;return l.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a=t.cluster,r=t.devops,n=t.name,u=t.branch,i=(0,o.default)(t,["cluster","devops","name","branch"]),c=decodeURIComponent(n),s=i.page,f=i.limit,d=void 0===f?10:f,!(0,G.default)(this.detail)){e.next=6;break}return e.next=6,this.fetchDetail({cluster:a,name:c,devops:r});case 6:return e.next=8,request.get("".concat(this.getBaseUrl({cluster:a,namespace:r}),"pipelines/").concat(decodeURIComponent(n),"/branches"),{filter:"origin",page:s||1,limit:d,branch:encodeURIComponent(u)});case 8:p=e.sent,this.branchList={data:p.items||[],limit:d,total:p.totalItems||0,page:parseInt(s,10)||1,filters:(0,V.default)(i,"devops"),isLoading:!1,selectedRowKeys:[]};case 10:case"end":return e.stop()}}),e,this)}))),function(e){return re.apply(this,arguments)})},{key:"getActivities",value:(ae=(0,T.default)(l.default.mark((function e(t){var a,r,n,u,i,c,s,f,d,p,m,h;return l.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a=t.name,r=t.branch,n=t.devops,u=t.cluster,i=t.backward,c=void 0!==i&&i,s=(0,o.default)(t,["name","branch","devops","cluster","backward"]),a=decodeURIComponent(a),f=s.page,d=s.limit,p=void 0===d?10:d,!(0,G.default)(this.detail)){e.next=6;break}return e.next=6,this.fetchDetail({cluster:u,name:a,devops:n});case 6:return m={page:f||1,limit:p,branch:r,backward:c},f<0&&(delete m.page,delete m.limit),e.next=10,request.get("".concat(this.getBaseUrl({cluster:u,namespace:n}),"pipelines/").concat(a,"/pipelineruns"),K({},m));case 10:return h=e.sent,(0,F.default)(h)&&(h=h.filter((function(e){return e._links}))),!1===c&&!(0,G.default)(h)&&(0,F.default)(h.items)&&(h.items=h.items.map((function(e){var t,a=(0,W.safeParseJSON)((0,z.default)(e,"metadata.annotations.['devops.kubesphere.io/jenkins-pipelinerun-status']"),{});return K(K({},a),{},{id:null!==(t=a.id)&&void 0!==t?t:(0,z.default)(e,'metadata.annotations["devops.kubesphere.io/jenkins-pipelinerun-id"]'),uid:e.metadata.uid,_originData:e})}))),this.activityList={limit:p,data:h.items||[],total:h.totalItems||0,page:parseInt(f,10)||1,filters:(0,V.default)(s,"devops"),isLoading:!1,selectedRowKeys:[]},e.abrupt("return",h.items);case 15:case"end":return e.stop()}}),e,this)}))),function(e){return ae.apply(this,arguments)})},{key:"getBranchDetail",value:(te=(0,T.default)(l.default.mark((function e(t){var a,r,n,u,o;return l.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=t.devops,r=t.cluster,n=t.name,u=t.branch,e.prev=1,e.next=4,request.get("".concat(this.getBaseUrl({cluster:r,namespace:a}),"pipelines/").concat(decodeURIComponent(n),"/branches/").concat(encodeURIComponent(u)));case 4:return(o=e.sent).name&&(this.branchDetail=o),e.abrupt("return",o);case 9:return e.prev=9,e.t0=e.catch(1),e.abrupt("return",[]);case 12:case"end":return e.stop()}}),e,this,[[1,9]])}))),function(e){return te.apply(this,arguments)})},{key:"handleActivityReplay",value:(ee=(0,T.default)(l.default.mark((function e(t,a){var r,n,u,o;return l.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.url,n=t.devops,u=t.name,o=t.cluster,e.next=3,request.post("".concat(this.getPipelineUrl({cluster:o,devops:n,name:u})).concat(r,"/replay/"),void 0,void 0,a);case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e,this)}))),function(e,t){return ee.apply(this,arguments)})},{key:"handleActivityStop",value:($=(0,T.default)(l.default.mark((function e(t){var a,r,n,u;return l.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=t.url,r=t.devops,n=t.name,u=t.cluster,e.next=3,request.post("".concat(this.getPipelineUrl({cluster:u,devops:r,name:n})).concat(a,"/stop/?blocking=true&timeOutInSecs=10"));case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e,this)}))),function(e){return $.apply(this,arguments)})},{key:"runBranch",value:(X=(0,T.default)(l.default.mark((function e(t){var a,r,n,u,o,i,c,s=this;return l.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=t.cluster,r=t.devops,n=t.name,u=t.branch,o=t.parameters,i="".concat(this.getBaseUrl({cluster:a,namespace:r}),"pipelines/").concat(n,"/pipelineruns").concat(u?"?branch=".concat(encodeURIComponent(u)):""),c=(0,G.default)(o)?{parameters:[]}:{parameters:o},e.next=5,request.post(i,c).then((function(){setTimeout((function(){s.fetchDetail({cluster:a,devops:r,name:n,isSilent:!0})}),1e3)}));case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e,this)}))),function(e){return X.apply(this,arguments)})},{key:"getPipeLineConfig",value:function(){var e=(0,U.default)((0,Y.toJS)(this.pipelineConfig));return delete(e=K(K({},(0,Y.toJS)(e.spec)),(0,Y.toJS)(e))).spec,delete e.kind,delete e.apiVersion,e}},{key:"setDevops",value:function(e){this.devops=e}},{key:"createPipeline",value:(Q=(0,T.default)(l.default.mark((function e(t){var a,r,n,u;return l.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=t.data,r=t.devops,n=t.cluster,a.kind="Pipeline",a.apiVersion="devops.kubesphere.io/v1alpha3",u="".concat(this.getBaseUrl({devops:r,cluster:n}),"pipelines"),e.next=6,request.post(u,a);case 6:return e.abrupt("return",e.sent);case 7:case"end":return e.stop()}}),e,this)}))),function(e){return Q.apply(this,arguments)})},{key:"updatePipeline",value:(H=(0,T.default)(l.default.mark((function e(t){var a,r,n,u,o;return l.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=t.cluster,r=t.data,n=t.devops,r.kind="Pipeline",r.apiVersion="devops.kubesphere.io/v1alpha3",u="".concat(this.getBaseUrl({devops:n,cluster:a}),"pipelines/").concat(r.metadata.name),e.next=6,request.put(u,r);case 6:return o=e.sent,this.setPipelineConfig(o),e.abrupt("return",o);case 9:case"end":return e.stop()}}),e,this)}))),function(e){return H.apply(this,arguments)})},{key:"updateJenkinsFile",value:function(e){var t=(0,U.default)((0,Y.toJS)(this.pipelineConfig));(0,B.default)(t,"spec.pipeline.jenkinsfile",e),this.setPipelineConfig(t)}},{key:"delete",value:(L=(0,T.default)(l.default.mark((function e(t){var a,r,n,u;return l.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=t.name,r=t.devops,n=t.cluster,u="".concat(this.getBaseUrl({devops:r,cluster:n}),"pipelines/").concat(a),e.next=4,request.delete(u);case 4:return e.abrupt("return",e.sent);case 5:case"end":return e.stop()}}),e,this)}))),function(e){return L.apply(this,arguments)})},{key:"scanRepository",value:(j=(0,T.default)(l.default.mark((function e(t){var a,r,n,u;return l.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=t.devops,r=t.name,n=t.cluster,u={},e.next=4,request.defaults({method:"POST",url:"".concat(this.getPipelineUrl({cluster:n,devops:a||this.devops,name:r||this.detail.name}),"scan"),options:u,handler:function(e){return e.text().then((function(){if(e.redirected)return"Scan success"}))}});case 4:return e.abrupt("return",e.sent);case 5:case"end":return e.stop()}}),e,this)}))),function(e){return j.apply(this,arguments)})},{key:"getRepoScanLogs",value:(A=(0,T.default)(l.default.mark((function e(t){var a,r,n,u;return l.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=t.devops,r=t.name,n=t.cluster,e.next=3,request.get("".concat(this.getPipelineUrl({cluster:n,name:r,devops:a}),"consolelog"));case 3:u=e.sent,this.repositoryLog=u;case 5:case"end":return e.stop()}}),e,this)}))),function(e){return A.apply(this,arguments)})},{key:"checkCron",value:(i=(0,T.default)(l.default.mark((function e(t){return l.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,request.get("".concat(this.getDevopsUrlV2(),"check/cron?value=").concat(t));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)}))),function(e){return i.apply(this,arguments)})},{key:"checkScriptCompile",value:(u=(0,T.default)(l.default.mark((function e(t,a){var r,n,u,o;return l.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.devops,n=t.pipeline,u=t.value,o=t.cluster,e.abrupt("return",request.post("".concat(this.getPipelineUrl({cluster:o,name:n,devops:r}),"checkScriptCompile"),{value:u},Z,a));case 2:case"end":return e.stop()}}),e,this)}))),function(e,t){return u.apply(this,arguments)})},{key:"getBranchLists",value:(n=(0,T.default)(l.default.mark((function e(t){var a,r,n,u,i,c,s;return l.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=t.devops,r=t.name,t.workspace,n=t.cluster,u=(0,o.default)(t,["devops","name","workspace","cluster"]),i=u.page,c=u.limit,s=void 0===c?10:c,e.next=4,request.get("".concat(this.getPipelineUrl({cluster:n,name:r,devops:a}),"branches/"),{filter:"origin",start:(i-1)*s||0,limit:s});case 4:return e.abrupt("return",e.sent);case 5:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})},{key:"getPipelineTemplateList",value:(r=(0,T.default)(l.default.mark((function e(t){var a,r,n,u;return l.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a="zh"===(0,q.default)("lang")?"ZH":"EN",e.next=3,request.get("".concat(this.getBaseUrl(t),"clustertemplates?limit=100"));case 3:return r=e.sent,n=r.items,u=(void 0===n?[]:n).map((function(e){var t={},r=(0,z.default)(e,"metadata.annotations",{}),n=r["devops.kubesphere.io/icon"];return t.type=e.metadata.name,t.desc=r["devops.kubesphere.io/description".concat(a)]||r["devops.kubesphere.io/descriptionEN"],t.title=r["devops.kubesphere.io/displayName".concat(a)]||r["devops.kubesphere.io/displayNameEN"]||r.displayNameEN,t.image=n&&n.indexOf("http")>-1?n:"/assets/pipeline/".concat(n),t.parameters=(0,z.default)(e,"spec.parameters",[]),t})),e.abrupt("return",u);case 7:case"end":return e.stop()}}),e,this)}))),function(e){return r.apply(this,arguments)})},{key:"getTempleJenkins",value:(a=(0,T.default)(l.default.mark((function e(t,a,r){var n,u;return l.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,request.post("".concat(this.getBaseUrl(r),"clustertemplates/").concat(t,"/render"),a);case 2:return n=e.sent,u=(0,z.default)(n,'metadata.annotations["devops.kubesphere.io/render-result"]',""),e.abrupt("return",u);case 5:case"end":return e.stop()}}),e,this)}))),function(e,t,r){return a.apply(this,arguments)})}]),de}(H.default),c=(0,L.default)(i.prototype,"pipelineConfig",[Y.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),s=(0,L.default)(i.prototype,"originalList",[Y.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),f=(0,L.default)(i.prototype,"list",[Y.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{data:[],page:1,limit:10,total:0,order:"",reverse:!1,filters:{},isLoading:!0}}}),d=(0,L.default)(i.prototype,"branchList",[Y.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{data:[],page:1,limit:10,total:0,order:"",reverse:!1,filters:{},isLoading:!0}}}),p=(0,L.default)(i.prototype,"activityList",[Y.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{data:[],page:1,limit:10,total:0,order:"",reverse:!1,filters:{},isLoading:!0}}}),m=(0,L.default)(i.prototype,"pullRequestList",[Y.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{data:[],page:1,limit:10,total:0,order:"",reverse:!1,filters:{},isLoading:!0,selectedRowKeys:[]}}}),h=(0,L.default)(i.prototype,"credentialsList",[Y.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{data:[],total:0,isLoading:!0}}}),v=(0,L.default)(i.prototype,"detail",[Y.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),g=(0,L.default)(i.prototype,"isLoading",[Y.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),y=(0,L.default)(i.prototype,"notFound",[Y.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),E=(0,L.default)(i.prototype,"repositoryLog",[Y.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),b=(0,L.default)(i.prototype,"isSubmitting",[Y.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),_=(0,L.default)(i.prototype,"pipelineJsonData",[Y.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{pipelineJson:{},isLoading:!0}}}),O=(0,L.default)(i.prototype,"branchDetail",[Y.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),S=(0,L.default)(i.prototype,"jenkinsFile",[Y.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),C=(0,L.default)(i.prototype,"devops",[Y.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),D=(0,L.default)(i.prototype,"devopsName",[Y.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),(0,L.default)(i.prototype,"fetchList",[Y.action],Object.getOwnPropertyDescriptor(i.prototype,"fetchList"),i.prototype),(0,L.default)(i.prototype,"fetchDetail",[Y.action],Object.getOwnPropertyDescriptor(i.prototype,"fetchDetail"),i.prototype),k=(0,L.default)(i.prototype,"setPipelineConfig",[Y.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(t){e.pipelineConfig=t}}}),N=(0,L.default)(i.prototype,"setSelectRowKeys",[Y.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(t){e.list.selectedRowKeys.replace(t)}}}),(0,L.default)(i.prototype,"checkPipelineName",[Y.action],Object.getOwnPropertyDescriptor(i.prototype,"checkPipelineName"),i.prototype),(0,L.default)(i.prototype,"getJenkinsFile",[Y.action],Object.getOwnPropertyDescriptor(i.prototype,"getJenkinsFile"),i.prototype),(0,L.default)(i.prototype,"setPipelineJsonData",[Y.action],Object.getOwnPropertyDescriptor(i.prototype,"setPipelineJsonData"),i.prototype),(0,L.default)(i.prototype,"convertJenkinsFileToJson",[Y.action],Object.getOwnPropertyDescriptor(i.prototype,"convertJenkinsFileToJson"),i.prototype),(0,L.default)(i.prototype,"getPullRequest",[Y.action],Object.getOwnPropertyDescriptor(i.prototype,"getPullRequest"),i.prototype),(0,L.default)(i.prototype,"getBranches",[Y.action],Object.getOwnPropertyDescriptor(i.prototype,"getBranches"),i.prototype),(0,L.default)(i.prototype,"getActivities",[Y.action],Object.getOwnPropertyDescriptor(i.prototype,"getActivities"),i.prototype),(0,L.default)(i.prototype,"getBranchDetail",[Y.action],Object.getOwnPropertyDescriptor(i.prototype,"getBranchDetail"),i.prototype),(0,L.default)(i.prototype,"getPipeLineConfig",[Y.action],Object.getOwnPropertyDescriptor(i.prototype,"getPipeLineConfig"),i.prototype),(0,L.default)(i.prototype,"setDevops",[Y.action],Object.getOwnPropertyDescriptor(i.prototype,"setDevops"),i.prototype),(0,L.default)(i.prototype,"createPipeline",[Y.action],Object.getOwnPropertyDescriptor(i.prototype,"createPipeline"),i.prototype),(0,L.default)(i.prototype,"updatePipeline",[Y.action],Object.getOwnPropertyDescriptor(i.prototype,"updatePipeline"),i.prototype),(0,L.default)(i.prototype,"updateJenkinsFile",[Y.action],Object.getOwnPropertyDescriptor(i.prototype,"updateJenkinsFile"),i.prototype),(0,L.default)(i.prototype,"delete",[Y.action],Object.getOwnPropertyDescriptor(i.prototype,"delete"),i.prototype),(0,L.default)(i.prototype,"scanRepository",[Y.action],Object.getOwnPropertyDescriptor(i.prototype,"scanRepository"),i.prototype),i);a.default=X},function(e,t,a){"use strict";var r=a(20);a(12),a(5),a(11),a(6),a(84),a(29),a(87),a(16),a(27),a(9),a(13),a(10),a(4),a(316),a(22),a(23),a(24),a(17),a(85),a(38),a(64),a(7),a(32),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(a(58)),l=r(a(43)),u=r(a(30)),o=r(a(96));a(41);var i=r(a(44)),c=r(a(65)),s=r(a(36)),f=r(a(37)),d=r(a(88)),p=r(a(55)),m=r(a(56)),h=r(a(51)),v=r(a(49));r(a(66));a(12),a(45),a(5),a(11),a(6),a(84),a(29),a(28),a(87),a(42),a(16),a(27),a(34),a(15),a(9),a(13),a(10),a(4),a(316),a(22),a(23),a(57),a(24),a(17),a(85),a(38),a(64),a(7),a(32);var g,y,E,b=r(a(26)),_=r(a(74)),O=r(a(198)),S=r(a(480)),C=a(14),D=a(52),k=a(72),N=a(1021),T=r(a(68));function R(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function w(e){for(var t=1;t=400&&(a+=n)})),(0,_.default)(e,"requests.errorRatio",Math.max(100*a/t,0)),e},P=(g=function(e){(0,p.default)(m,e);var t,a,r=I(m);function m(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"applications";return(0,s.default)(this,m),e=r.call(this,t),(0,c.default)(e,"isTracingLoading",y,(0,d.default)(e)),e.tracing={data:[],total:0},e.graph={data:{},health:{}},(0,c.default)(e,"env",E,(0,d.default)(e)),e.getListUrl=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return"".concat(e.apiVersion).concat(e.getPath(t),"/").concat(e.module).concat(t.dryRun?"?dryRun=All":"")},e.getResourceUrl=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return"".concat(e.apiVersion).concat(e.getPath(t),"/").concat(e.module)},e.getGraphUrl=function(t){var a=t.cluster,r=t.namespace,n=t.duration;return"kapis/servicemesh.kubesphere.io/v1alpha2".concat(e.getPath({cluster:a,namespace:r}),"/graph?duration=").concat(n,"s&graphType=versionedApp&injectServiceNodes=true&groupBy=app&appenders=deadNode,sidecarsCheck,serviceEntry,istio,responseTime")},e.getHealthUrl=function(t){var a=t.cluster,r=t.namespace,n=t.type,l=t.duration;return"kapis/servicemesh.kubesphere.io/v1alpha2".concat(e.getPath({cluster:a,namespace:r}),"/health?rateInterval=").concat(l,"s&type=").concat(n)},e}return(0,f.default)(m,[{key:"fetchGraph",value:(a=(0,i.default)(l.default.mark((function e(){var t,a,r,n,i,c,s,f,d,p,m,h,v,g,y,E=arguments;return l.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=E.length>0&&void 0!==E[0]?E[0]:{},a=t.cluster,r=t.namespace,n=t.app,i=t.duration,e.next=3,Promise.all([request.get(this.getGraphUrl({cluster:a,namespace:r,app:n,duration:i})),request.get(this.getHealthUrl({cluster:a,namespace:r,type:"app",duration:i})),request.get(this.getHealthUrl({cluster:a,namespace:r,type:"service",duration:i})),request.get(this.getHealthUrl({cluster:a,namespace:r,type:"workload",duration:i}))]);case 3:c=e.sent,s=(0,o.default)(c,4),f=s[0],d=s[1],p=s[2],m=s[3],h=this.detail.services||[],v=this.detail.workloads||[],g={},d&&p&&m&&(this.graph.health=h.reduce((function(e,t){if(!d[t])return e;var a=d[t],r=a.requests,n=a.workloadStatuses,l=n.reduce((function(e,t){return w(w({},e),{},(0,u.default)({},t.name,M(m[t.name])))}),{});return Object.keys(l).forEach((function(e){g[e]=t})),w(w({},e),{},(0,u.default)({},t,{requests:r,workloadStatuses:n,workloads:l,service:M(p[t])}))}),{})),f&&f.elements&&(y=[],f.elements.nodes.forEach((function(e){"service"===e.data.nodeType&&h.includes(e.data.service)?y.push(e):"app"===e.data.nodeType&&e.data.workload&&v.includes(e.data.workload)&&(e.data.app=g[e.data.workload],y.push(e)),e.data.isRoot&&e.data.namespace!==r&&(e.data.targetNamespace=r,y.push(e))})),this.graph.data={nodes:y,edges:f.elements.edges});case 14:case"end":return e.stop()}}),e,this)}))),function(){return a.apply(this,arguments)})},{key:"fetchAppMetrics",value:function(e){var t=e.name,a=e.cluster,r=e.namespace,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},l=Math.floor((new Date).getTime()/1e3),u=w({queryTime:l,duration:60,step:20,rateInterval:"20s","filters[]":["request_count","request_duration","request_error_count","tcp_sent","tcp_received"],direction:"inbound",reporter:"destination"},n);return request.get("kapis/servicemesh.kubesphere.io/v1alpha2".concat(this.getPath({cluster:a,namespace:r}),"/apps/").concat(t,"/metrics"),u)}},{key:"fetchServiceMetrics",value:function(e){var t=e.name,a=e.cluster,r=e.namespace,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},l=Math.floor((new Date).getTime()/1e3),u=w({queryTime:l,duration:60,step:20,rateInterval:"20s",direction:"inbound",reporter:"source"},n);return request.get("kapis/servicemesh.kubesphere.io/v1alpha2".concat(this.getPath({cluster:a,namespace:r}),"/services/").concat(t,"/metrics"),u)}},{key:"fetchWorkloadMetrics",value:function(e){var t=e.name,a=e.cluster,r=e.namespace,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},l=w({duration:60,step:20,rateInterval:"20s",direction:"inbound",reporter:"source"},n);return request.get("kapis/servicemesh.kubesphere.io/v1alpha2".concat(this.getPath({cluster:a,namespace:r}),"/workloads/").concat(t,"/metrics"),l)}},{key:"fetchTracing",value:(t=(0,i.default)(l.default.mark((function e(t){var a,r,u,o,i,c,s;return l.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=t.service,r=t.cluster,u=t.namespace,o=(0,n.default)(t,["service","cluster","namespace"]),this.isTracingLoading=!0,i=w({limit:5},o),c=(new Date).getTime(),i.start="".concat(i.start||"".concat(c-k.TIME_MICROSECOND_MAP[i.lookback]),"000"),i.end="".concat(i.end||"".concat(c),"000"),e.prev=6,e.next=9,request.get("kapis/servicemesh.kubesphere.io/v1alpha2".concat(this.getPath({cluster:r,namespace:u}),"/services/").concat(a,"/traces"),i);case 9:(s=e.sent)&&s.data&&(this.tracing.data=(0,N.transformTraces)(s.data)),e.next=15;break;case 13:e.prev=13,e.t0=e.catch(6);case 15:this.isTracingLoading=!1;case 16:case"end":return e.stop()}}),e,this,[[6,13]])}))),function(e){return t.apply(this,arguments)})},{key:"setSelectRowKeys",value:function(e){this.list.selectedRowKeys.replace(e)}},{key:"create",value:function(e,t){var a=this,r=e.application,l=e.ingress,u=(0,n.default)(e,["application","ingress"]),o="true"===(0,b.default)(r,'metadata.annotations["servicemesh.kubesphere.io/enabled"]'),i=[{url:this.getListUrl(t),data:r}];if((0,b.default)(l,"spec.rules",[]).length>0){var c=(0,b.default)(r,"metadata.name");if((0,b.default)(l,"metadata.name")||(0,_.default)(l,"metadata.name","".concat(c,"-ingress-").concat((0,D.generateId)())),o){var s=(0,b.default)(l,"spec.rules[0].http.paths[0].backend.service.name");s&&(0,_.default)(l,'metadata.annotations["nginx.ingress.kubernetes.io/upstream-vhost"]',"".concat(s,".").concat(t.namespace,".svc.cluster.local"))}i.push({url:"apis/networking.k8s.io/v1".concat(this.getPath(t),"/ingresses"),data:l})}return Object.values(u).forEach((function(e){if(e.workload&&e.service){var r=(0,S.default)(k.MODULE_KIND_MAP,(function(t){return t===e.workload.kind}))||"deployments";i.push({url:"apis/apps/v1".concat(a.getPath(t),"/").concat(r),data:e.workload},{url:"api/v1".concat(a.getPath(t),"/services"),data:e.service})}})),this.submitting((0,D.withDryRun)(i))}},{key:"addComponent",value:function(e,t){var a=[];if(t.namespace){if(e.workload&&e.service){var r=(0,S.default)(k.MODULE_KIND_MAP,(function(t){return t===e.workload.kind}))||"deployments";a.push({url:"apis/apps/v1".concat(this.getPath(t),"/").concat(r),data:e.workload},{url:"api/v1".concat(this.getPath(t),"/services"),data:e.service})}return this.submitting((0,D.withDryRun)(a))}}},{key:"patch",value:function(e,t){var a=e.namespace,r=e.cluster,n=e.name;return this.submitting(request.patch(this.getDetailUrl({name:n,cluster:r,namespace:a}),t))}},{key:"delete",value:function(e){var t=e.name,a=e.cluster,r=e.namespace;return this.submitting(request.delete(this.getDetailUrl({name:t,cluster:a,namespace:r})))}},{key:"checkName",value:function(e){var t=e.name,a=e.cluster,r=e.namespace;return request.get(this.getDetailUrl({name:t,cluster:a,namespace:r}),{},{headers:{"x-check-exist":!0}})}},{key:"fetchSampleData",value:function(e){return request.get("sample/".concat(e))}}]),m}(T.default),y=(0,v.default)(g.prototype,"isTracingLoading",[C.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),E=(0,v.default)(g.prototype,"env",[C.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{data:{},isLoading:!1}}}),(0,v.default)(g.prototype,"fetchGraph",[C.action],Object.getOwnPropertyDescriptor(g.prototype,"fetchGraph"),g.prototype),(0,v.default)(g.prototype,"fetchAppMetrics",[C.action],Object.getOwnPropertyDescriptor(g.prototype,"fetchAppMetrics"),g.prototype),(0,v.default)(g.prototype,"fetchServiceMetrics",[C.action],Object.getOwnPropertyDescriptor(g.prototype,"fetchServiceMetrics"),g.prototype),(0,v.default)(g.prototype,"fetchWorkloadMetrics",[C.action],Object.getOwnPropertyDescriptor(g.prototype,"fetchWorkloadMetrics"),g.prototype),(0,v.default)(g.prototype,"fetchTracing",[C.action],Object.getOwnPropertyDescriptor(g.prototype,"fetchTracing"),g.prototype),(0,v.default)(g.prototype,"setSelectRowKeys",[C.action],Object.getOwnPropertyDescriptor(g.prototype,"setSelectRowKeys"),g.prototype),(0,v.default)(g.prototype,"create",[C.action],Object.getOwnPropertyDescriptor(g.prototype,"create"),g.prototype),(0,v.default)(g.prototype,"addComponent",[C.action],Object.getOwnPropertyDescriptor(g.prototype,"addComponent"),g.prototype),(0,v.default)(g.prototype,"patch",[C.action],Object.getOwnPropertyDescriptor(g.prototype,"patch"),g.prototype),(0,v.default)(g.prototype,"delete",[C.action],Object.getOwnPropertyDescriptor(g.prototype,"delete"),g.prototype),(0,v.default)(g.prototype,"checkName",[C.action],Object.getOwnPropertyDescriptor(g.prototype,"checkName"),g.prototype),(0,v.default)(g.prototype,"fetchSampleData",[C.action],Object.getOwnPropertyDescriptor(g.prototype,"fetchSampleData"),g.prototype),g);t.default=P},function(e,t,a){"use strict";a(15);var r=a(20);a(18),a(4),a(23),a(17),Object.defineProperty(t,"__esModule",{value:!0}),t.Component=t.default=void 0,a(45),a(18),a(42),a(4),a(23),a(57),a(17);var n=r(a(36)),l=r(a(37)),u=r(a(55)),o=r(a(56)),i=r(a(51)),c=r(a(0)),s=a(14),f=a(239),d=r(a(63)),p=r(a(26)),m=r(a(1406)),h=r(a(1407));function v(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,i.default)(e);if(t){var n=(0,i.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,o.default)(this,a)}}var g=function(e){(0,u.default)(a,e);var t=v(a);function a(e){var r;return(0,n.default)(this,a),(r=t.call(this,e)).fetchData=function(){r.envStore.fetchList({namespace:r.namespace,cluster:r.cluster,containers:r.containers,initContainers:r.initContainers})},r.envStore=new m.default,r.fetchData(),r}return(0,l.default)(a,[{key:"render",value:function(){var e=(0,s.toJS)(this.envStore.list),t=e.data,a=e.isLoading;return c.default.createElement("div",null,t.map((function(e,t){return c.default.createElement(h.default,{key:t,detail:e,expand:0===t,loading:a})})))}},{key:"module",get:function(){return this.store.module}},{key:"store",get:function(){return this.props.detailStore}},{key:"namespace",get:function(){return this.store.detail.namespace}},{key:"cluster",get:function(){return this.store.detail.cluster}},{key:"containers",get:function(){var e=(0,s.toJS)(this.store.detail),t=e.spec,a=e.containers,r=void 0===a?[]:a;return"containers"===this.module?[e]:(0,d.default)(r)?(0,d.default)(t)?[]:(0,p.default)(t,"template.spec.containers",[]):r}},{key:"initContainers",get:function(){var e=(0,s.toJS)(this.store.detail),t=e.spec,a=e.initContainers,r=void 0===a?[]:a;return"containers"===this.module?[e]:(0,d.default)(r)?(0,d.default)(t)?[]:(0,p.default)(t,"template.spec.initContainers",[]):r}}]),a}(c.default.Component),y=(0,f.inject)("rootStore","detailStore")((0,f.observer)(g));t.default=y;var E=g;t.Component=E},function(e,t,a){"use strict";a(15);var r=a(20);a(4),a(23),a(17),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(45),a(42),a(4),a(23),a(57),a(17);var n=r(a(36)),l=r(a(37)),u=r(a(55)),o=r(a(56)),i=r(a(51)),c=r(a(0)),s=r(a(1)),f=r(a(3)),d=r(a(3929));function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,i.default)(e);if(t){var n=(0,i.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,o.default)(this,a)}}var m=function(e){(0,u.default)(a,e);var t=p(a);function a(){return(0,n.default)(this,a),t.apply(this,arguments)}return(0,l.default)(a,[{key:"render",value:function(){var e=this.props,t=e.className,a=e.desc;return c.default.createElement("div",{className:(0,f.default)(d.default.wrapper,t)},c.default.createElement("div",null,c.default.createElement("img",{src:"/assets/empty-card.svg",alt:""})),c.default.createElement("div",null,c.default.createElement("p",{className:d.default.desc,dangerouslySetInnerHTML:{__html:a}}),this.props.children))}}]),a}(c.default.Component);t.default=m,m.propTypes={className:s.default.string,title:s.default.string,desc:s.default.string,onCreate:s.default.func}},,,function(e,t,a){"use strict";a(15);var r=a(20);a(5),a(86),a(4),a(23),a(17),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(45),a(5),a(86),a(42),a(4),a(23),a(57),a(17);var n=r(a(315)),l=r(a(58)),u=r(a(36)),o=r(a(37)),i=r(a(55)),c=r(a(56)),s=r(a(51)),f=r(a(0)),d=a(186);function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,s.default)(e);if(t){var n=(0,s.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,c.default)(this,a)}}var m=function(e){(0,i.default)(a,e);var t=p(a);function a(){var e;(0,u.default)(this,a);for(var r=arguments.length,n=new Array(r),l=0;l0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return(0,N.isNotPersistentVolume)(t)?t:{name:e.name||"volume-".concat((0,k.generateId)()),persistentVolumeClaim:{claimName:t.name}}},t.updateVolumes=function(e){var a=(0,v.default)(t.fedFormTemplate,"".concat(t.prefix,"spec.volumes"),[]),r=[],n=(0,b.default)(t.selectVolume)?void 0:(0,v.default)(t.selectVolume,"specVolume",t.selectVolume),l=t.formatSpecVolume(n,e);r=n?a.map((function(e){return e.name===n.name?l:e})):[].concat((0,i.default)(a),[l]),(0,g.default)(t.fedFormTemplate,"".concat(t.prefix,"spec.volumes"),r),t.checkMaxUnavalable(a)},t.updateVolumeMounts=function(e,a){var r=(0,v.default)(t.fedFormTemplate,"".concat(t.prefix,"spec.containers"),[]).map((function(e){return G(G({},e),{},{type:"worker"})})),n=(0,v.default)(t.fedFormTemplate,"".concat(t.prefix,"spec.initContainers"),[]).map((function(e){return G(G({},e),{},{type:"init"})})),l=(0,h.default)(r,n),o=(0,v.default)(t.fedFormTemplate,"".concat(t.prefix,"spec.volumes"),[]);e.forEach((function(e){var t=e.containerName,r=e.volume,n=(0,u.default)(e,["containerName","volume"]),i=l.find((function(e){return e.name===t})),c=(0,N.findVolume)(o,r);if(c&&i){i.volumeMounts=i.volumeMounts||[];var s=G({name:c.name},n);i.volumeMounts.find((function(e){return e.name===c.name}))?i.volumeMounts=i.volumeMounts.map((function(e){return e.name===c.name?s:e})):i.volumeMounts.push(s),a&&a.name!==c.name&&(i.volumeMounts=i.volumeMounts.filter((function(e){return e.name!==a.name}))),i.volumeMounts=i.volumeMounts.filter((function(e){return"null"!==e.readOnly})).map((function(e){e.logPath;var t=(0,u.default)(e,["logPath"]);return G(G({},t),{},{readOnly:"true"===String(t.readOnly)})}))}}));var i=[],c=[];l.forEach((function(e){"worker"===e.type?(delete e.type,i.push(e)):(delete e.type,c.push(e))})),(0,g.default)(t.fedFormTemplate,"".concat(t.prefix,"spec.containers"),i),(0,g.default)(t.fedFormTemplate,"".concat(t.prefix,"spec.initContainers"),c)},t.checkMaxUnavalable=function(e){if(["deployments","daemonsets"].includes(t.props.module)&&"RollingUpdate"===(0,v.default)(t.fedFormTemplate,"spec.strategy.type")){var a=e.some((function(e){return!(0,b.default)(e.persistentVolumeClaim)})),r=(0,v.default)(t.fedFormTemplate,"spec.strategy.rollingUpdate.maxUnavailable",null);a&&!r&&(0,g.default)(t.fedFormTemplate,"spec.strategy.rollingUpdate.maxUnavailable",1)}},t.updateLogConfigs=function(e){var a=(0,k.safeParseJSON)((0,v.default)(t.fedFormTemplate,t.logPathPrefix,""),{}),r=(0,v.default)(t.fedFormTemplate,"".concat(t.prefix,"spec.volumes"),[]);e.forEach((function(e){var t=(0,N.findVolume)(r,e.volume);if(t){var n="containerLogConfigs.".concat(e.containerName,".").concat(e.name||t.name);e.logPath?(0,g.default)(a,n,e.logPath.split(",")):(0,y.default)(a,n)}})),(0,g.default)(t.fedFormTemplate,t.logPathPrefix,JSON.stringify(a))},t.updateVolumeTemplate=function(e){var a=(0,v.default)(t.formTemplate,"metadata.namespace"),r=(0,v.default)(t.fedFormTemplate,"spec.volumeClaimTemplates",[]);(0,g.default)(e,"metadata.namespace",a);var n=[];n=r.find((function(t){return t.metadata.name===e.metadata.name}))?r.map((function(t){return t.metadata.name===e.metadata.name?e:t})):[].concat((0,i.default)(r),[e]),(0,g.default)(t.fedFormTemplate,"spec.volumeClaimTemplates",n)},t.updateVolumeTemplateMounts=function(e){var a=(0,v.default)(t.fedFormTemplate,"".concat(t.prefix,"spec.containers"),[]).map((function(e){return G(G({},e),{},{type:"worker"})})),r=(0,v.default)(t.fedFormTemplate,"".concat(t.prefix,"spec.initContainers"),[]).map((function(e){return G(G({},e),{},{type:"init"})})),n=(0,h.default)(a,r);e.forEach((function(e){var t=e.containerName,a=(0,u.default)(e,["containerName"]),r=n.find((function(e){return e.name===t}));if(r){r.volumeMounts=r.volumeMounts||[];var l=a;r.volumeMounts.find((function(e){return e.name===l.name}))?r.volumeMounts=r.volumeMounts.map((function(e){return e.name===l.name?l:e})):r.volumeMounts.push(l),r.volumeMounts=r.volumeMounts.filter((function(e){return"null"!==e.readOnly})).map((function(e){return G(G({},e),{},{readOnly:"true"===e.readOnly})}))}}));var l=[],o=[];n.forEach((function(e){"worker"===e.type?(delete e.type,l.push(e)):(delete e.type,o.push(e))})),(0,g.default)(t.fedFormTemplate,"".concat(t.prefix,"spec.containers"),l),(0,g.default)(t.fedFormTemplate,"".concat(t.prefix,"spec.initContainers"),o)},t.checkVolumeNameExist=function(e){var a=(0,v.default)(t.fedFormTemplate,"".concat(t.prefix,"spec.volumes"),[]),r=(0,v.default)(t.fedFormTemplate,"spec.volumeClaimTemplates",[]);return a.some((function(t){return t.name===e}))||r.some((function(t){return t.name===e}))},t.state={state:"",selectVolume:{},collectSavedLog:(0,v.default)(t.fedFormTemplate,t.collectSavedLogPath)};var n=(0,k.isEdgeWizePage)();return t.store=n?new I.default:new T.default,t.projectStore=n?new P.default:new w.default,e.isFederated&&(t.projectStore=n?new M.default({module:t.projectStore.module}):new R.default({module:t.projectStore.module}),t.store=n?new M.default({module:t.store.module}):new R.default({module:t.store.module})),t.store.fetchList({namespace:t.namespace,cluster:t.cluster,limit:-1}),t.handleVolume=t.handleVolume.bind((0,f.default)(t)),t.handleVolumeTemplate=t.handleVolumeTemplate.bind((0,f.default)(t)),t.handleLogToggle=t.handleLogToggle.bind((0,f.default)(t)),t}return(0,s.default)(r,[{key:"componentDidMount",value:function(){this.namespace&&this.projectStore.fetchDetail({name:this.namespace,namespace:this.namespace,cluster:this.cluster})}},{key:"handleVolume",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],a=arguments.length>2?arguments[2]:void 0;e.uid||t.forEach((function(t){t.name=e.name})),this.updateVolumes(e),this.updateVolumeMounts(t,a),this.updateLogConfigs(t),this.resetState()}},{key:"handleVolumeTemplate",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];t.forEach((function(t){t.name=e.name||(0,v.default)(e,"metadata.name")})),this.updateVolumeTemplate(e),this.updateVolumeTemplateMounts(t),this.updateLogConfigs(t),this.resetState()}},{key:"renderVolume",value:function(){var e=this.state.collectSavedLog,t=(0,O.toJS)(this.store.list.data),a=this.store.list.isLoading,r=(0,v.default)(this.fedFormTemplate,"".concat(this.prefix,"spec.containers"),[]),n=(0,v.default)(this.fedFormTemplate,"".concat(this.prefix,"spec.initContainers"),[]),l=(0,h.default)(r,n);return _.default.createElement(j.default,{volumes:t,volume:this.selectVolume,namespace:this.namespace,module:this.props.module,containers:l,onSave:this.handleVolume,onCancel:this.resetState,isLoading:a,checkVolumeNameExist:this.checkVolumeNameExist,collectSavedLog:e})}},{key:"renderConfig",value:function(){var e=this.props,t=e.isFederated,a=e.projectDetail,r=e.isEdgeWize,n=(0,v.default)(this.fedFormTemplate,"".concat(this.prefix,"spec.containers"),[]),l=(0,v.default)(this.fedFormTemplate,"".concat(this.prefix,"spec.initContainers"),[]),u=(0,h.default)(n,l);return _.default.createElement(L.default,{isEdgeWize:r,volume:this.selectVolume,containers:u,cluster:this.cluster,namespace:this.namespace,onSave:this.handleVolume,onCancel:this.resetState,isFederated:t,projectDetail:a,checkVolumeNameExist:this.checkVolumeNameExist})}},{key:"renderVolumeTemplate",value:function(){var e=this.props,t=e.cluster,a=e.isEdgeWize,r=this.state.collectSavedLog,n=(0,v.default)(this.fedFormTemplate,"".concat(this.prefix,"spec.containers"),[]),l=(0,v.default)(this.fedFormTemplate,"".concat(this.prefix,"spec.initContainers"),[]),u=(0,h.default)(n,l),o=(0,v.default)(this.formTemplate,"metadata.namespace","");return _.default.createElement(U.default,{isEdgeWize:a,volume:this.selectVolume,containers:u,cluster:t,namespace:o,onSave:this.handleVolumeTemplate,onCancel:this.resetState,checkVolumeNameExist:this.checkVolumeNameExist,collectSavedLog:r})}},{key:"handleLogToggle",value:function(){var e=this;this.setState((function(e){return{collectSavedLog:"true"===e.collectSavedLog?"false":"true"}}),(function(){(0,g.default)(e.fedFormTemplate,e.collectSavedLogPath,e.state.collectSavedLog),"false"===e.state.collectSavedLog&&(0,y.default)(e.fedFormTemplate,e.logPathPrefix)}))}},{key:"renderToolTipContent",value:function(){return _.default.createElement("div",null,_.default.createElement("p",null,t("COLLECT_LOGS_ON_VOLUMES_DESC")))}},{key:"renderToggle",value:function(e){var t=this.state.collectSavedLog;return _.default.createElement("span",null,_.default.createElement(C.Toggle,{disabled:e,checked:"true"===t,onChange:this.handleLogToggle}))}},{key:"renderTitle",value:function(){return _.default.createElement("div",{className:"font-bold margin-b8 relative"},_.default.createElement("span",null,t("STORAGE_SETTINGS")),globals.app.hasClusterExtensionModule(this.cluster,"whizard-logging")&&_.default.createElement("div",{className:z.default.toggle},this.projectEnableCollectingFileLog?this.renderToggle():_.default.createElement(C.Tooltip,{content:t.html("PROJECT_COLLECT_SAVED_DISABLED_DESC")},this.renderToggle(!0)),_.default.createElement("span",{className:"text-secondary align-middle"}," ",t("COLLECT_LOGS_ON_VOLUMES")," "),_.default.createElement(C.Tooltip,{content:this.renderToolTipContent()},_.default.createElement(C.Icon,{name:"question"}))))}},{key:"renderList",value:function(){var e=this.props,a=e.formRef,r=e.formProps,n=void 0===r?{}:r,u=e.module,o=e.hideVolumeSetting,i=void 0!==o&&o,c=this.state.collectSavedLog,s=(0,O.toJS)(this.store.list.data),f=this.store.list.isLoading,d=(0,v.default)(this.fedFormTemplate,"".concat(this.prefix,"spec.containers"),[]),p=(0,v.default)(this.fedFormTemplate,"".concat(this.prefix,"spec.initContainers"),[]),m=(0,h.default)(d,p),g=0===(0,v.default)(this.fedFormTemplate,"".concat(this.prefix,"spec.volumes"),[]).length&&0===(0,v.default)(this.fedFormTemplate,"spec.volumeClaimTemplates",[]).length,y=(0,k.safeParseJSON)((0,v.default)(this.fedFormTemplate,this.logPathPrefix,[])),E="statefulsets"===u;return _.default.createElement(C.Form,(0,l.default)({data:this.fedFormTemplate,ref:a},n),this.renderTitle(),"true"===c&&g&&_.default.createElement(C.Alert,{className:"margin-b12",icon:"information",type:"warning",message:t(E?"PVC_OR_TEMPLATE_EMPTY":"PVC_EMPTY")}),_.default.createElement("div",{className:z.default.volumes},E&&_.default.createElement(C.Form.Item,null,_.default.createElement(x.default,{prefix:this.prefix,name:"spec.volumeClaimTemplates",containers:m,onShowAddVolume:this.showVolumeTemplate,onShowEdit:this.showEditVolumeTemplate,collectSavedLog:c,logPath:y,hideVolumeSetting:i})),_.default.createElement(C.Form.Item,null,_.default.createElement(A.default,{prefix:this.prefix,name:"".concat(this.prefix,"spec.volumes"),volumes:s,containers:m,loading:f,onShowVolume:this.showVolume,onShowConfig:this.showConfig,onShowEdit:this.showEditVolume,collectSavedLog:c,logPath:y}))))}},{key:"render",value:function(){var e=null;switch(this.state.state){case"ShowVolume":e=this.renderVolume();break;case"ShowConfig":e=this.renderConfig();break;case"ShowVolumeTemplate":e=this.renderVolumeTemplate();break;default:e=this.renderList()}return e}},{key:"prefix",get:function(){return this.props.prefix||"spec.template."}},{key:"cluster",get:function(){return this.props.cluster}},{key:"namespace",get:function(){return this.props.namespace||(0,v.default)(this.formTemplate,"metadata.namespace","")}},{key:"collectSavedLogPath",get:function(){return"".concat(this.prefix,'metadata.annotations["kubesphere.io/collectSavedLog"]')}},{key:"logPathPrefix",get:function(){return"".concat(this.prefix,'metadata.annotations["logging.kubesphere.io/logsidecar-config"]')}},{key:"projectEnableCollectingFileLog",get:function(){return"enabled"===(0,v.default)(this.projectStore.detail,'labels["logging.kubesphere.io/logsidecar-injection"]')}},{key:"formTemplate",get:function(){var e=this.props,t=e.formTemplate,a=e.module;return(0,v.default)(t,D.MODULE_KIND_MAP[a],t)}},{key:"fedFormTemplate",get:function(){return this.props.isFederated?(0,v.default)(this.formTemplate,"spec.template"):this.formTemplate}},{key:"selectVolume",get:function(){return G({},this.state.selectVolume)}}]),r}(_.default.Component),Y=B;a.Component=Y;var W=(0,S.observer)(B);a.default=W},,function(e,t,a){"use strict";a(15);var r=a(20);a(5),a(4),a(23),a(17),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(45),a(5),a(42),a(4),a(23),a(57),a(17);var n=r(a(36)),l=r(a(55)),u=r(a(56)),o=r(a(51));function i(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,o.default)(e);if(t){var n=(0,o.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,u.default)(this,a)}}var c=function(e){(0,l.default)(a,e);var t=i(a);function a(){var e;(0,n.default)(this,a);for(var r=arguments.length,l=new Array(r),u=0;u1&&void 0!==arguments[1]&&arguments[1],a=e.multi_branch_pipeline,r=e.pipeline,n=(e.type,(0,i.default)(e,["multi_branch_pipeline","pipeline","type"]));t&&!n.description&&(n.description="");var l=(0,s.default)(n);if(l.metadata&&delete l.metadata,a&&(t?Object.assign(e.multi_branch_pipeline,l):n&&Object.assign(e.multi_branch_pipeline,n),e.type="multi-branch-pipeline",v(e.multi_branch_pipeline)),r&&(t?Object.assign(e.pipeline,l):Object.assign(e.pipeline,n),e.type="pipeline",v(e.pipeline)),!t)for(var u in n)"devopsName"!==u&&delete e[u]};a.resetPipelineMultiBranch=function(e){e.multi_branch_pipeline&&e.__multi_branch_pipeline&&(e.multi_branch_pipeline=(0,d.default)(e.__multi_branch_pipeline,e.multi_branch_pipeline)),delete e.__multi_branch_pipeline};a.updatePipelineParamsInSpec=function(e,t){e.multi_branch_pipeline&&(delete(e=(0,p.default)(e,"metadata.name",e.multi_branch_pipeline.name)).multi_branch_pipeline.metadata,e.spec={multi_branch_pipeline:h({},e.multi_branch_pipeline),type:e.type},delete e.multi_branch_pipeline),e.pipeline&&(delete(e=(0,p.default)(e,"metadata.name",e.pipeline.name)).pipeline.metadata,e.spec={pipeline:h({},e.pipeline),type:e.type},delete e.pipeline),delete e.type,delete e.description,e=(0,p.default)(e,"metadata.namespace",t)};a.groovyToJS=function(e){for(var t,a=/([\w-]*) ?: '?([\w-:/_.]*)'?/g,r={};null!==(t=a.exec(e));)t[1]&&(r[t[1]]=t[2]);return r};a.getLanguageIcon=function(e,t){return["java","gradle","javascript","php","python","golang","nodejs","jar","war","binary"].includes(e)?e:t};a.getRepoUrl=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.provider,a=e.owner,r=e.repo,n=e.server,l=e.url,u=e.api_uri;if(l)return l;switch(t){case"github":return"https://github.com/".concat(a,"/").concat(r);case"gitlab":return"".concat(n,"/").concat(a,"/").concat(r);case"bitbucket_server":var o=u,i="/"===o.substr(o.length-1)?o:"".concat(o,"/");return/https:\/\/bitbucket.org\/?/gm.test(i)||(i+="scm/"),"".concat(i).concat(a,"/").concat(r);default:return""}};a.getCommonSource=function(e){var t=e.provider,a=e.owner,r=e.repo,n=e.url,l=e.secret,u=e.server;return"git"===t?{url:n,discover_branches:!0,credential_id:null==l?void 0:l.name}:{owner:a,repo:r,server_name:u,url:n,credential_id:null==l?void 0:l.name,discover_branches:1,discover_pr_from_forks:{strategy:2,trust:2},discover_pr_from_origin:2,discover_tags:!0}};a.checkRepoSource=function(e){var a=e.source_type,r=(0,i.default)(e,["source_type"]),n=(0,f.default)(r,"".concat(a,"_source"),{}),l=n.owner,u=n.repo,o=n.server_name,s=n.url,d=n.remote,p=l&&u;switch(a){case"svn":case"single_svn":p=!!d;break;case"git":p=!!s;break;case"gitlab":p=p&&o}if(!p)throw c.default.error(t("NOT_VALID_REPO")),Error(t("NOT_VALID_REPO"))};a.isSvnRepo=function(e){return["svn","single_svn"].includes(e)};var g=function(e){var t=e.match(/(.+)(>|>=|==|!=)(.+)/),a=(0,u.default)(t,4),r=a[1],n=a[2],l=a[3];return{key:r.replace(".param.",""),operator:n,value:l}},y=function(e,t){var a=(0,f.default)(t,e.key);switch(e.operator){case"==":return a===e.value;case">=":return a>=e.value;case"<=":return a<=e.value;case"!=":return a!==e.value;default:return!1}},E="argocd"===globals.config.gitopsEngine;a.isArgo=E;a.parseCondition=function(e,t){try{var a=e.match(/(.+?)(&&|\|\|)/g);if(!a)return y(g(e),t);var r=[].concat((0,l.default)(a.map((function(e){return e.slice(0,-2)}))),[e.slice(a.reduce((function(e,t){return e+t.length}),0))]).map(g);return a.map((function(e){return e.slice(-2)})).reduce((function(e,a,n){var l=0===n?y(r[0],t):e,u=y(r[n+1],t);switch(a){case"&&":return l&&u;case"||":return l||u;default:return!1}}),!1)}catch(e){return!1}}},function(e,t,a){"use strict";a(15),a(12),a(109),a(5),a(11),a(84),a(16),Object.defineProperty(t,"__esModule",{value:!0}),t.getRegisterFormTemplate=t.getEdgeSofts=t.getContainerEngineSofts=t.getNodeSpecification=t.getAccessNodeDisplayName=t.getSoftStatus=t.getSoftIconName=void 0,a(12),a(109),a(5),a(11),a(84),a(16),a(4);var r=["docker","containerd","nvidia-docker2"];t.getSoftIconName=function(e){switch(e){case"edgecore":return"iot-duotone";case"nvidia-docker2":return"docker";case"containerd":return"container";default:return e}};t.getSoftStatus=function(e){switch(e){case"installed":return{name:"success",color:{primary:"#ffffff",secondary:"#55bc8a"}};default:return{name:"information",color:{primary:"#ffffff"}}}};t.getAccessNodeDisplayName=function(e){var t=e.name,a=e.alias;return a?"".concat(a," (").concat(t,")"):t};t.getNodeSpecification=function(e){var t=e.cpu,a=e.mem,r=e.disk;return"".concat(t,"核 CPU | ").concat(a,"M 内存 | ").concat(r,"GB 磁盘")};t.getContainerEngineSofts=function(e){return e.filter((function(e){var t=e.name;return r.includes(t)}))};t.getEdgeSofts=function(e){return e.filter((function(e){var t=e.name;return!r.includes(t)}))};t.getRegisterFormTemplate=function(e,t){if(!t)return{clusterName:e,edgeNodeName:"",edgeNodeAlias:"",edgeIpList:[],arch:"",userName:"",password:"",description:""};var a=t.name,r=t.alias,n=t.description;return{clusterName:e,edgeNodeName:a,edgeNodeAlias:r,edgeIpList:[t.nodeIP],arch:t.arch,userName:"",password:"",description:n}}},,function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(31),r(18),r(98),r(9),r(10),r(4),r(23),r(24),r(17),r(62),r(818),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var l=n(r(65)),u=n(r(36)),o=n(r(37)),i=n(r(88)),c=n(r(55)),s=n(r(56)),f=n(r(51)),d=n(r(49));n(r(66));r(45),r(5),r(31),r(18),r(28),r(442),r(42),r(98),r(9),r(10),r(4),r(23),r(57),r(24),r(17),r(62),r(818);var p,m,h,v,g,y,E,b,_,O,S,C,D,k,N=n(r(96)),T=n(r(0)),R=n(r(1)),w=n(r(3)),I=r(14),M=r(239),P=n(r(26)),A=r(186),j=n(r(1165)),L=n(r(1166)),x=r(950),U=n(r(3450));function z(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,f.default)(e);if(t){var n=(0,f.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,s.default)(this,a)}}var F=function(e){var t=e.match(/(\d+)(\w+)/),a=(0,N.default)(t,3),r=a[1],n=void 0===r?0:r,l=a[2];return n*{s:1,m:60,h:3600,d:86400}[void 0===l?"s":l]},G=(0,M.observer)((k=D=function(e){(0,c.default)(r,e);var a=z(r);function r(){var e;(0,u.default)(this,r);for(var t=arguments.length,n=new Array(t),o=0;o0&&void 0!==arguments[0]?arguments[0]:[],a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=(0,f.default)(a);return t.forEach((function(t,a){var n=(0,O.default)(t,"metric.__name__"),l=null;if(n){var u=(0,O.default)(t,"metric.quantile"),o=(0,O.default)(t,"metric.verb"),i=(0,O.default)(t,"metric.result"),c=r.find((function(e){return u?(0,O.default)(e,"metric.quantile")===u:o?(0,O.default)(e,"metric.verb")===o:i?(0,O.default)(e,"metric.result")===i:(0,O.default)(e,"metric.__name__")===n}));(0,_.default)(c)?r.push(t):l=c}else l=r[a];if(!(0,_.default)(l)){var s=e.getNewValues(l.values,t.value);(0,S.default)(l,"values",s)}})),r},e}return(0,m.default)(n,[{key:"fetchHealthMetrics",value:(a=(0,s.default)(u.default.mark((function e(){return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.health.isLoading=!0,e.next=3,this.requestHealthMetrics();case 3:this.health.isLoading=!1;case 4:case"end":return e.stop()}}),e,this)}))),function(){return a.apply(this,arguments)})},{key:"requestHealthMetrics",value:(t=(0,s.default)(u.default.mark((function e(){var t,a,r,n,o,i,c,s,f;return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=this.cluster&&globals.app.isMultiCluster?"kapis/clusters/".concat(this.cluster,"/resources.kubesphere.io/v1alpha2/componenthealth"):"kapis/resources.kubesphere.io/v1alpha2/componenthealth",e.next=3,(0,D.to)(request.get(t));case 3:a=e.sent,r=a.kubesphereStatus||[],n=(0,C.default)(r,"namespace"),o=r.some((function(e){return"kube-scheduler"===(0,O.default)(e,"label.component")&&(0,O.default)(e,"healthyBackends",0)})),i=r.some((function(e){return"kube-controller-manager"===(0,O.default)(e,"label.component")&&(0,O.default)(e,"healthyBackends",0)})),c={kubernetes:(0,O.default)(a,"kubernetesStatus",[]),node:(0,O.default)(a,"nodeStatus",{}),kubesphere:(0,O.default)(n,"kubesphere-system",[]),openpitrix:(0,O.default)(n,"openpitrix-system",[]),istio:(0,O.default)(n,"istio-system",[]),monitoring:(0,O.default)(n,"kubesphere-monitoring-system",[]),logging:(0,O.default)(n,"kubesphere-logging-system",[]),devops:(0,O.default)(n,"kubesphere-devops-system",[]),kubeSystem:(0,O.default)(n,"kube-system",[])},s={},f={},Object.entries(c).forEach((function(e){var t=(0,l.default)(e,2),a=t[0],r=t[1],n={total:0,health:0},u={total:0,health:0};"node"===a?(n.total=(0,O.default)(r,"totalNodes",0),n.health=(0,O.default)(r,"healthyNodes",0)):"kubernetes"===a?(n.total=r.length,n.health=r.filter((function(e){return"Healthy"===(0,k.getComponentStatus)(e)})).length):r.forEach((function(e){n.total+=e.totalBackends,n.health+=e.healthyBackends;var t=(0,k.getComponentStatus)(e);u.health+="Healthy"===t?1:0,u.total+="Stopped"===t?0:1})),s[a]=n,f[a]=u})),this.health=T(T({},this.health||{}),{data:c,counts:s,componentCounts:f,supportKsScheduler:o,supportControllerManager:i});case 13:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})}]),n}(r(a(845)).default),i=(0,E.default)(o.prototype,"health",[b.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{data:{},counts:{},supportKsScheduler:!1,supportControllerManager:!1,isLoading:!1}}}),c=(0,E.default)(o.prototype,"etcd",[b.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),(0,E.default)(o.prototype,"fetchHealthMetrics",[b.action],Object.getOwnPropertyDescriptor(o.prototype,"fetchHealthMetrics"),o.prototype),(0,E.default)(o.prototype,"requestHealthMetrics",[b.action],Object.getOwnPropertyDescriptor(o.prototype,"requestHealthMetrics"),o.prototype),o);t.default=w},function(e,t,a){"use strict";var r=a(20);a(12),a(5),a(11),a(6),a(73),a(320),a(27),a(9),a(13),a(10),a(4),a(23),a(17),a(7),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(12),a(45),a(5),a(11),a(6),a(73),a(28),a(320),a(42),a(27),a(34),a(15),a(9),a(13),a(10),a(4),a(22),a(23),a(57),a(17),a(7);var n=r(a(43)),l=r(a(30)),u=r(a(58));a(41);var o,i,c=r(a(44)),s=r(a(65)),f=r(a(36)),d=r(a(37)),p=r(a(88)),m=r(a(55)),h=r(a(56)),v=r(a(51)),g=r(a(49)),y=(r(a(66)),a(14)),E=r(a(63)),b=a(52);function _(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function O(e){for(var t=1;t0&&Array.prototype.forEach.call(this.iframeMedias,(function(t){t.removeEventListener("load",e.updateIFrame),t.addEventListener("load",e.updateIFrame)}))}},{key:"removeMediaListeners",value:function(){var e=this;this.iframeMedias&&this.iframeMedias.length>0&&Array.prototype.forEach.call(this.iframeMedias,(function(t){t.removeEventListener("load",e.updateIFrame)}))}},{key:"updateMarkdown",value:function(){var e=this.iframe.contentDocument;this.iframeLoaded&&(e.body.innerHTML=this.md.render(this.props.source),this.iframe.style.height="".concat(e.body.scrollHeight+16,"px")),this.removeMediaListeners(),this.addMediaListeners()}},{key:"render",value:function(){var e=this.props.className;return s.default.createElement("div",null,this.state.loading&&s.default.createElement(m.Loading,{className:"loading"}),s.default.createElement("iframe",{className:(0,d.default)(h.default.markdown,e),ref:this.handleIFrameRef,src:"/blank_md",name:"frame_markdown",width:"100%",frameBorder:"0",scrolling:"no"}))}}]),a}(s.default.Component);y.propTypes={source:f.default.string,options:f.default.object},y.defaultProps={source:"",options:{}};var E=y;t.default=E},,,,,,,function(e,t,a){"use strict";a(15);var r=a(20);a(5),a(16),a(4),a(23),a(17),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(45),a(5),a(42),a(16),a(4),a(22),a(23),a(57),a(17);var n=r(a(43));a(41);var l=r(a(44)),u=r(a(36)),o=r(a(37)),i=r(a(55)),c=r(a(56)),s=r(a(51)),f=a(72);function d(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,s.default)(e);if(t){var n=(0,s.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,c.default)(this,a)}}var p=function(e){(0,i.default)(a,e);var t=d(a);function a(){var e;(0,u.default)(this,a);for(var r=arguments.length,o=new Array(r),i=0;i0&&void 0!==arguments[0]?arguments[0]:{};return"".concat(e.apiVersion).concat(e.getPath(t),"/nodes").concat(t.dryRun?"?dryRun=All":"")},e.getResourceUrl=function(t){var a=t.cluster;return"/kapis/resources.kubesphere.io/v1alpha3".concat(e.getPath({cluster:a}),"/nodes")},e.createEdgeNode=function(){var t=(0,l.default)(n.default.mark((function t(a){var r,l,u,o,i,c,s,f,d,p;return n.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=a.cluster,l=a.name,u=a.ip,o=a.defaultTaint,i=a.runtime,c=a.imageRepository,s=a.nodegroup,f="/kapis/infra.edgewize.io/v1alpha1".concat(e.getPath({cluster:r}),"/nodes/join"),d={node_name:l,node_ip:u,add_default_taint:o,runtime:i,"image-repository":c},s&&(d.node_group=s),t.next=6,request.get(f,d,{},(function(e){return e}));case 6:return p=t.sent,t.abrupt("return",p);case 8:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),e}return(0,o.default)(a,[{key:"apiVersion",get:function(){return f.API_VERSIONS.nodes||""}}]),a}(r(a(856)).default);t.default=p},,,,function(e,t,a){"use strict";var r=a(20);a(12),a(5),a(11),a(6),a(18),a(16),a(27),a(9),a(13),a(10),a(4),a(23),a(17),a(7),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(12),a(45),a(5),a(11),a(6),a(18),a(28),a(42),a(16),a(27),a(34),a(15),a(9),a(13),a(10),a(4),a(22),a(23),a(57),a(17),a(7);var n=r(a(43)),l=r(a(61)),u=r(a(30)),o=r(a(58));a(41);var i,c,s=r(a(44)),f=r(a(65)),d=r(a(36)),p=r(a(37)),m=r(a(88)),h=r(a(55)),v=r(a(56)),g=r(a(51)),y=r(a(49)),E=(r(a(66)),r(a(26))),b=r(a(74)),_=a(14),O=a(72);function S(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function C(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};return"".concat(e.apiVersion).concat(e.getPath(t),"/").concat(e.module).concat(t.dryRun?"?dryRun=All":"")},e.getDetailUrl=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return"".concat(e.getListUrl(t),"/").concat(t.name)},e.getResourceUrl=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return"".concat(e.apiVersion).concat(e.getPath(t),"/").concat(e.module)},e}return(0,p.default)(i,[{key:"getPath",value:function(e){var t=e.user,a="";return t&&(a+="/users/".concat(t)),a}},{key:"fetchList",value:(r=(0,s.default)(n.default.mark((function e(){var t,a,r,u,i,c,s=this,f=arguments;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=f.length>0&&void 0!==f[0]?f[0]:{},a=t.more,r=t.user,u=(0,o.default)(t,["more","user"]),this.list.isLoading=!0,u.sortBy||void 0!==u.ascending||(u.sortBy=O.LIST_DEFAULT_ORDER[this.module]||"createTime"),u.limit!==1/0&&-1!==u.limit||(u.limit=-1,u.page=1),u.limit=u.limit||10,e.next=7,request.get(this.getResourceUrl({user:r}),this.getFilterParams(u),null,(function(){return{}}));case 7:return i=e.sent,c=((0,E.default)(i,"items")||[]).map((function(e){return C({},s.mapper(e))})),this.list.update(C(C({data:a?[].concat((0,l.default)(this.list.data),(0,l.default)(c)):c,total:i.totalItems||i.total_count||i.total||c.length||0},u),{},{limit:Number(u.limit)||10,page:Number(u.page)||1,isLoading:!1},this.list.silent?{}:{selectedRowKeys:[]})),e.abrupt("return",c);case 11:case"end":return e.stop()}}),e,this)}))),function(){return r.apply(this,arguments)})},{key:"getResource",value:(a=(0,s.default)(n.default.mark((function e(t){var a,r;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,request.get(this.getDetailUrl(t),{},null,(function(){return{}}));case 2:return a=e.sent,r=(0,E.default)(a,"metadata.resourceVersion"),this.resourceVersion=r||"",e.abrupt("return",void 0!==r);case 6:case"end":return e.stop()}}),e,this)}))),function(e){return a.apply(this,arguments)})},{key:"update",value:(t=(0,s.default)(n.default.mark((function e(t,a){return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getResource(t);case 2:return(0,b.default)(a,"metadata.resourceVersion",this.resourceVersion),e.abrupt("return",this.submitting(request.put(this.getDetailUrl(t),a)));case 4:case"end":return e.stop()}}),e,this)}))),function(e,a){return t.apply(this,arguments)})},{key:"apiVersion",get:function(){return"kapis/notification.kubesphere.io/v2beta2"}}]),i}(r(a(68)).default),c=(0,y.default)(i.prototype,"resourceVersion",[_.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),(0,y.default)(i.prototype,"fetchList",[_.action],Object.getOwnPropertyDescriptor(i.prototype,"fetchList"),i.prototype),(0,y.default)(i.prototype,"getResource",[_.action],Object.getOwnPropertyDescriptor(i.prototype,"getResource"),i.prototype),(0,y.default)(i.prototype,"update",[_.action],Object.getOwnPropertyDescriptor(i.prototype,"update"),i.prototype),i);t.default=k},,function(e,t,a){"use strict";var r=a(20);a(12),a(5),a(11),a(31),a(6),a(29),a(18),a(16),a(27),a(9),a(13),a(10),a(4),a(22),a(23),a(17),a(38),a(7),a(32),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(12),a(45),a(5),a(11),a(31),a(6),a(29),a(18),a(28),a(42),a(16),a(27),a(34),a(15),a(9),a(13),a(10),a(4),a(22),a(23),a(57),a(17),a(38),a(7),a(32);var n=r(a(61)),l=r(a(58)),u=r(a(43));a(41);var o,i,c,s,f=r(a(44)),d=r(a(30)),p=r(a(65)),m=r(a(36)),h=r(a(37)),v=r(a(88)),g=r(a(55)),y=r(a(56)),E=r(a(51)),b=r(a(49)),_=(r(a(66)),r(a(26))),O=r(a(74)),S=a(14);function C(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function D(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};return"".concat(e.apiVersion).concat(e.getPath(t),"/").concat(e.getRulePath(t)).concat(t.dryRun?"?dryRun=All":"")},e.getResourceUrl=e.getListUrl,(0,p.default)(e,"ruleCount",i,(0,v.default)(e)),(0,p.default)(e,"builtinRuleCount",c,(0,v.default)(e)),(0,p.default)(e,"targetsMetadata",s,(0,v.default)(e)),e.getParamsType=function(e){var t={};return e.namespace||e.cluster&&("builtin"===e.type?t.builtin=!0:t.builtin=!1),t},e.getFilterParams=function(e){var t=D({},e);return t.enable&&(t.labelSelector="alerting.kubesphere.io/enable=".concat(t.enable),delete t.enable),t},e.fetchMetric=function(){var e=(0,f.default)(u.default.mark((function e(t){var a,r,n,l,o,i,c;return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a=t.expr,r=t.step,n=t.start,l=t.end,o=t.cluster,i=t.namespace,a){e.next=3;break}return e.abrupt("return",[]);case 3:return e.next=5,request.get("kapis/monitoring.kubesphere.io/v1beta1/targets/query",{cluster:o,namespace:i,expr:a,step:r,start:n,end:l},null,(function(){}));case 5:return c=e.sent,e.abrupt("return",(0,_.default)(c,"data.result",[]));case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),e}return(0,h.default)(y,[{key:"getPath",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.cluster,a=e.namespace,r="";return t&&(r+="/clusters/".concat(t)),a&&(r+="/namespaces/".concat(a)),r}},{key:"fetchList",value:(o=(0,f.default)(u.default.mark((function e(){var t,a,r,o,i,c,s,f,d,p=this,m=arguments;return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=m.length>0&&void 0!==m[0]?m[0]:{},a=t.cluster,t.workspace,r=t.namespace,o=t.more,i=t.type,c=(0,l.default)(t,["cluster","workspace","namespace","more","type"]),this.list.isLoading=!0,c.sortBy||void 0!==c.ascending||(c.sortBy="createTime"),c.limit!==1/0&&-1!==c.limit||(c.limit=-1,c.page=1),c.limit=c.limit||10,"builtin"===i&&(c.builtin=!0),e.next=8,request.get(this.getResourceUrl({cluster:a,namespace:r,type:i}),D(D({},this.getFilterParams(c)),this.getParamsType({namespace:r,cluster:a,type:i})));case 8:return s=e.sent,f=((0,_.default)(s,"items")||[]).map((function(e){return D({cluster:a,namespace:r},p.mapper(e))})),d=s.totalItems,this.list.update(D(D({data:o?[].concat((0,n.default)(this.list.data),(0,n.default)(f)):f,total:d},c),{},{limit:Number(c.limit)||10,page:Number(c.page)||1,isLoading:!1},this.list.silent?{}:{selectedRowKeys:[]})),e.abrupt("return",f);case 13:case"end":return e.stop()}}),e,this)}))),function(){return o.apply(this,arguments)})},{key:"fetchCount",value:(r=(0,f.default)(u.default.mark((function e(t){var a,r,n;return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=t.cluster,r=t.namespace,e.next=3,Promise.all([request.get(this.getResourceUrl({cluster:a,namespace:r}),{page:1,limit:1,builtin:!1}),request.get(this.getResourceUrl({cluster:a,namespace:r,type:"builtin"}),{page:1,limit:1,builtin:!0})]);case 3:n=e.sent,this.ruleCount=(0,_.default)(n,"0.totalItems",0),this.builtinRuleCount=(0,_.default)(n,"1.totalItems",0);case 6:case"end":return e.stop()}}),e,this)}))),function(e){return r.apply(this,arguments)})},{key:"fetchMetadata",value:(a=(0,f.default)(u.default.mark((function e(t){var a,r,n,l;return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=t.cluster,r=t.namespace,e.next=3,request.get("kapis/monitoring.kubesphere.io/v1beta1/targets/metadata",{cluster:a,namespace:r});case 3:if(e.t0=e.sent,e.t0){e.next=6;break}e.t0={data:[]};case 6:n=e.t0,l=n.data,this.targetsMetadata=l||[];case 9:case"end":return e.stop()}}),e,this)}))),function(e){return a.apply(this,arguments)})},{key:"create",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.submitting(request.post(this.getListUrl(D(D({},t),{},{k8sOpt:!0})),e))}},{key:"update",value:(t=(0,f.default)(u.default.mark((function e(t,a){var r,n;return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,request.get(this.getDetailUrl(D(D({},t),{},{k8sOpt:!0})));case 2:return r=e.sent,(n=(0,_.default)(r,"metadata.resourceVersion"))&&(0,O.default)(a,"metadata.resourceVersion",n),e.abrupt("return",this.submitting(request.put(this.getDetailUrl(D(D({},t),{},{k8sOpt:!0})),a)));case 6:case"end":return e.stop()}}),e,this)}))),function(e,a){return t.apply(this,arguments)})},{key:"patch",value:function(e,t){return this.submitting(request.patch(this.getDetailUrl(D(D({},e),{},{k8sOpt:!0})),t))}},{key:"batchPatch",value:function(e,t,a){var r=this;return this.submitting(Promise.all(e.map((function(e){return request.patch(r.getDetailUrl(D(D({},t),{},{name:e,k8sOpt:!0})),a)}))))}},{key:"delete",value:function(e){return this.submitting(request.delete(this.getDetailUrl(D(D({},e),{},{k8sOpt:!0}))))}},{key:"batchDelete",value:function(e){var t=this;return this.submitting(Promise.all(e.map((function(e){var a=t.list.data.find((function(t){return t.name===e}));return request.delete(t.getDetailUrl(D(D({},a),{},{k8sOpt:!0})))}))))}},{key:"checkName",value:function(e,t){return request.get(this.getDetailUrl(D(D({},e),{},{k8sOpt:!0})),D({},t),{headers:{"x-check-exist":!0}})}},{key:"yamlApiVersion",get:function(){return"alerting.kubesphere.io/v2beta1"}},{key:"apiVersion",get:function(){return"proxy-api/proxy/alerting.kubesphere.io/v2beta1/"}}]),y}(r(a(68)).default),i=(0,b.default)(o.prototype,"ruleCount",[S.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),c=(0,b.default)(o.prototype,"builtinRuleCount",[S.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),s=(0,b.default)(o.prototype,"targetsMetadata",[S.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),(0,b.default)(o.prototype,"fetchList",[S.action],Object.getOwnPropertyDescriptor(o.prototype,"fetchList"),o.prototype),(0,b.default)(o.prototype,"fetchCount",[S.action],Object.getOwnPropertyDescriptor(o.prototype,"fetchCount"),o.prototype),(0,b.default)(o.prototype,"fetchMetadata",[S.action],Object.getOwnPropertyDescriptor(o.prototype,"fetchMetadata"),o.prototype),(0,b.default)(o.prototype,"create",[S.action],Object.getOwnPropertyDescriptor(o.prototype,"create"),o.prototype),(0,b.default)(o.prototype,"update",[S.action],Object.getOwnPropertyDescriptor(o.prototype,"update"),o.prototype),(0,b.default)(o.prototype,"patch",[S.action],Object.getOwnPropertyDescriptor(o.prototype,"patch"),o.prototype),(0,b.default)(o.prototype,"batchPatch",[S.action],Object.getOwnPropertyDescriptor(o.prototype,"batchPatch"),o.prototype),(0,b.default)(o.prototype,"delete",[S.action],Object.getOwnPropertyDescriptor(o.prototype,"delete"),o.prototype),(0,b.default)(o.prototype,"batchDelete",[S.action],Object.getOwnPropertyDescriptor(o.prototype,"batchDelete"),o.prototype),(0,b.default)(o.prototype,"checkName",[S.action],Object.getOwnPropertyDescriptor(o.prototype,"checkName"),o.prototype),o);t.default=N},function(e,t,a){"use strict";a(15);var r=a(20);a(5),Object.defineProperty(t,"__esModule",{value:!0}),t.getManifestApi=function(e){var t=e.workspace,a=e.namespace,r=e.cluster,n=e.cluster_id,l="/kapis/application.kubesphere.io/v2";t&&(l+="/workspaces/".concat(t));globals.app.isMultiCluster&&r&&(l+="/clusters/".concat(r));a&&(l+="/namespaces/".concat(a));l+="/manifests",n&&(l+="/".concat(n));return l},t.getDmpSecrets=function(e){var t=e.namespace,a=e.cluster_id,r="/api/v1";t&&(r+="/namespaces/".concat(t));r+="/secrets",a&&(r+="/".concat(a));return r},t.getStatusFromYaml=function(e){var t=(0,n.default)(e,"status.conditions[0]");if(t)return"".concat(t.status,"-").concat(t.type);return""},a(5);var n=r(a(26))},function(e,t,a){e.exports={sider:"_3y7-mTgYjs2dHEX56ZcZlC",sheet:"_1VTQEGDBWPuUTtcgiyEAOC",title:"vlfMOA3JURdw5nk7WeIqH",delete:"_1kpyCW22GDVJh1I5gLyodh",edit:"_17i-NSdS-P7GUZCw1-YPnt",describtion:"_1ZLAf7WvHoqwp-0F-8tdTc",form:"_1LP-CIeypBa9wbadIjZn8d",name_input:"_1JAZWUE9yJWoVQUSCQPHM7",form_lable:"_5Q1qFPpM3eL-rJAdDuEs-",footer:"_3bSiW6kTLb3kTBF6VFFXXK",clickable:"_23bCX01Ss7OCfh3hJlUDtX",pipelineCard__item__drag:"_2c5vlHp7UGoWb30NL5EO4d",conditionList:"_3v2nj92lVAeDDd8IDTPLPt"}},,,,,function(e,t,a){"use strict";a(15);var r=a(20);a(5),a(11),a(31),a(6),a(29),a(18),a(87),a(97),a(320),a(16),a(326),a(27),a(1782),a(190),a(10),a(4),a(38),a(7),a(32),Object.defineProperty(t,"__esModule",{value:!0}),t.COORD_COUNT=t.renderIntoCanvas=t.createViewedBoundsFunc=t.formatDuration=t.formatRelativeDate=t.isErrorSpan=t.isServerSpan=t.isClientSpan=t.spanHasTag=t.transformTraces=t.transformTraceItem=void 0,a(249),a(45),a(5),a(11),a(31),a(6),a(160),a(29),a(18),a(28),a(87),a(245),a(97),a(320),a(42),a(448),a(16),a(326),a(1782),a(190),a(10),a(4),a(38),a(7),a(32);var n=r(a(36)),l=r(a(37)),u=r(a(446)),o=r(a(243)),i=a(72),c=function(){function e(t){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];(0,n.default)(this,e),this.value=t,this.children=a}return(0,l.default)(e,null,[{key:"iterFunction",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(a){return e(a.value,a,t)}}},{key:"searchFunction",value:function(t){return"function"==typeof t?t:function(a,r){return t instanceof e?r===t:a===t}}}]),(0,l.default)(e,[{key:"addChild",value:function(t){return this.children.push(t instanceof e?t:new e(t)),this}},{key:"find",value:function(t){if(e.iterFunction(e.searchFunction(t))(this))return this;for(var a=0;a1&&void 0!==arguments[1]?arguments[1]:0,a=[],r=t;for(a.push({node:this,depth:r});a.length;){var n=a.pop(),l=n.node,u=n.depth;e(l.value,l,u),r=u+1;for(var o=l.children.length-1;o>=0;)a.push({node:l.children[o],depth:r}),o--}}},{key:"depth",get:function(){return this.children.reduce((function(e,t){return Math.max(t.depth+1,e)}),1)}},{key:"size",get:function(){var e=0;return this.walk((function(){return e++})),e}}]),e}(),s=function(e){var t=e.traceID;if(!t)return null;t=t.toLowerCase();var a=0,r=Number.MAX_SAFE_INTEGER,n=new Map,l=new Map;e.spans=e.spans.filter((function(e){return Boolean(e.startTime)}));for(var u=e.spans.length,o=0;oa&&(a=s+f);var m=n.get(p);null!=m?(n.set(p,m+1),p="".concat(p,"_").concat(m),i.spanID=p):n.set(p,1),i.process=e.processes[d],l.set(p,i)}var h=function(e){var t=new Map(e.spans.map((function(e){return[e.spanID,new c(e.spanID)]}))),a=new Map(e.spans.map((function(e){return[e.spanID,e]}))),r=new c("__root__");e.spans.forEach((function(e){var a=t.get(e.spanID);if(Array.isArray(e.references)&&e.references.length){var n=e.references[0],l=n.refType,u=n.spanID;if("CHILD_OF"!==l&&"FOLLOWS_FROM"!==l)throw new Error("Unrecognized ref type: ".concat(l));(t.get(u)||r).children.push(a)}else r.children.push(a)}));var n=function(e,t){var r=a.get(e.value),n=a.get(t.value);return+(r.startTime>n.startTime)||+(r.startTime===n.startTime)-1};return e.spans.forEach((function(e){var a=t.get(e.spanID);a.children.length>1&&a.children.sort(n)})),r.children.sort(n),r}(e),v=[],g={},y="";return h.walk((function(e,t){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if("__root__"!==e){var n=l.get(e);if(n){var u=n.process.serviceName;g[u]=(g[u]||0)+1,n.references&&n.references.length||(y="".concat(u,": ").concat(n.operationName)),n.relativeStartTime=n.startTime-r,n.depth=a-1,n.hasChildren=t.children.length>0,n.references.forEach((function(e){var t=l.get(e.spanID);t&&(e.span=t)})),v.push(n)}}})),{services:Object.keys(g).map((function(e){return{name:e,numberOfSpans:g[e]}})),spans:v,traceID:t,traceName:y,processes:e.processes,duration:a-r,startTime:r,endTime:a}};t.transformTraceItem=s;t.transformTraces=function(e){var t=e.map(s),a=0,r=0,n={};return t.forEach((function(e){e.duration&&(a=Math.max(a,e.duration)),e.services.forEach((function(e){n[e.name]||(n[e.name]=i.TRACING_COLORS_HEX[r++])}))})),t.forEach((function(e){a&&(e.durationPercent=100*e.duration/a),e.serviceColorMap=n})),(0,u.default)(t,"startTime").reverse()};var f=function(e,t,a){return!(!Array.isArray(a.tags)||!a.tags.length)&&a.tags.some((function(a){return a.key===e&&a.value===t}))};t.spanHasTag=f;var d=f.bind(null,"span.kind","client");t.isClientSpan=d;var p=f.bind(null,"span.kind","server");t.isServerSpan=p;var m=f.bind(null,"error",!0),h=f.bind(null,"error","true");t.isErrorSpan=function(e){return m(e)||h(e)};t.formatRelativeDate=function(e,t){var a=o.default.isMoment(e)?e:(0,o.default)(e),r=t?"MMMM":"MMM",n=new Date;if(n.getFullYear()!==a.year())return a.format("".concat(r," D, YYYY"));var l=a.month(),u=a.date(),i=n.getDate();return l===n.getMonth()&&u===i?"Today":(n.setDate(i-1),l===n.getMonth()&&u===n.getDate()?"Yesterday":a.format("".concat(r," D")))};t.formatDuration=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"microseconds",a=e;"microseconds"===t&&(a=e/1e3);var r="ms";return a>=1e3&&(r="s",a/=1e3),a.toFixed(2)+r};t.createViewedBoundsFunc=function(e){var t=e.min,a=e.max,r=e.viewStart,n=e.viewEnd,l=a-t,u=t+r*l,o=a-(1-n)*l-u;return function(e,t){return{start:(e-u)/o,end:(t-u)/o}}};t.renderIntoCanvas=function(e,t,a,r){var n=new Map,l=(t.length<60?60:Math.min(t.length,200))-1,u=2*window.innerWidth;e.width=u,e.height=l;var o=Math.min(Math.max(2,(l-(1*t.length-1))/t.length),4),i=l/t.length,c=e.getContext("2d",{alpha:!1});c.fillStyle="#fff",c.fillRect(0,0,u,l);for(var s=0;s=.8&&(u="warning"),t>=.95&&(u="danger");var o={left:"".concat(t>.35?t/2*100:100*(t+.01),"%"),transform:t>.35?"translateX(-50%)":"",color:t>.35?"#fff":"#79879c"};return c.default.createElement("div",{className:(0,f.default)(d.default.wrapper,a)},c.default.createElement("div",{className:(0,f.default)(d.default.bar,d.default[u]),style:l}),r&&!!t&&c.default.createElement("span",{className:d.default.text,style:o},r),n&&c.default.createElement("span",{className:d.default.rightText},n))}}]),a}(c.default.Component);t.default=m,m.propTypes={value:s.default.number.isRequired,className:s.default.string},m.defaultProps={value:0}},function(e,t,a){"use strict";a(15);var r=a(157),n=a(20);a(16),a(4),a(23),a(17),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(45),a(42),a(16),a(4),a(23),a(57),a(17);var l=n(a(315)),u=n(a(58)),o=n(a(36)),i=n(a(37)),c=n(a(55)),s=n(a(56)),f=n(a(51)),d=r(a(0)),p=n(a(1)),m=n(a(3)),h=n(a(2387));function v(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,f.default)(e);if(t){var n=(0,f.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,s.default)(this,a)}}var g=function(e){(0,c.default)(a,e);var t=v(a);function a(){return(0,o.default)(this,a),t.apply(this,arguments)}return(0,i.default)(a,[{key:"render",value:function(){var e=this.props,t=e.className,a=e.name,r=e.value,n=(0,u.default)(e,["className","name","value"]);return d.default.createElement("div",(0,l.default)({className:(0,m.default)(h.default.label,t)},n),d.default.createElement("span",{className:h.default.name},a),r)}}]),a}(d.PureComponent);t.default=g,g.propTypes={className:p.default.string,name:p.default.string,value:p.default.string},g.defaultProps={name:"",value:""}},,function(e,t,a){"use strict";a(15);var r=a(20),n=a(157);a(5),a(11),a(18),a(4),a(23),a(17),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(45),a(5),a(11),a(18),a(28),a(42),a(4),a(23),a(57),a(17);var l,u,o,i=r(a(61)),c=r(a(36)),s=r(a(37)),f=r(a(55)),d=r(a(56)),p=r(a(51)),m=n(a(0)),h=r(a(3)),v=r(a(1)),g=a(186),y=r(a(250)),E=r(a(928)),b=r(a(26)),_=r(a(158)),O=r(a(63)),S=a(239),C=r(a(2470));function D(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,p.default)(e);if(t){var n=(0,p.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,d.default)(this,a)}}var k=(0,S.observer)((o=u=function(e){(0,f.default)(a,e);var t=D(a);function a(){var e;(0,c.default)(this,a);for(var r=arguments.length,n=new Array(r),l=0;l0&&void 0!==arguments[0]?arguments[0]:{};return"".concat(e.apiVersion).concat(e.getPath(t),"/scaledobjects")},e.getListUrl=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return"".concat(e.apiVersion).concat(e.getPath(t),"/scaledobjects").concat(t.dryRun?"?dryRun=All":"")},e}return(0,f.default)(p,[{key:"fetchList",value:(u=(0,c.default)(n.default.mark((function e(){var t,a,r,u,i,c,s,f=this,d=arguments;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=d.length>0&&void 0!==d[0]?d[0]:{},a=t.cluster,t.workspace,r=t.namespace,u=t.more,t.type,i=(0,o.default)(t,["cluster","workspace","namespace","more","type"]),this.list.isLoading=!0,i.sortBy||void 0!==i.ascending||(i.sortBy=E.LIST_DEFAULT_ORDER[this.module]||"createTime"),i.limit!==1/0&&-1!==i.limit||(i.limit=-1,i.page=1),i.limit=i.limit||10,e.next=7,request.get(this.getResourceUrl({cluster:a,namespace:r}),i).catch((function(){}));case 7:if(e.t0=e.sent,e.t0){e.next=10;break}e.t0={};case 10:return c=e.t0,s=(0,v.default)(c,"items",[]).map((function(e){return _({cluster:a},f.mapper(e))})),this.list.update(_(_({data:u?[].concat((0,l.default)(this.list.data),(0,l.default)(s)):s,total:c.totalItems||c.total_count||s.length||0},(0,g.default)(i,"labelSelector")),{},{limit:Number(i.limit)||10,page:Number(i.page)||1,isLoading:!1},this.list.silent?{}:{selectedRowKeys:[]})),e.abrupt("return",s);case 14:case"end":return e.stop()}}),e,this)}))),function(){return u.apply(this,arguments)})},{key:"fetchDetail",value:(r=(0,c.default)(n.default.mark((function t(a,r){var l,u,o,i,c;return n.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return l=a.cluster,u=a.namespace,o=a.name,this.isLoading=!0,t.next=4,request.get(this.getDetailUrl({cluster:l,namespace:u,name:o}),null,null,r||function(t){"NotFound"!==t.reason&&"Forbidden"!==t.reason||e.navigateTo("/404")});case 4:return i=t.sent,c=_({cluster:l},this.mapper(i)),this.detail=c,this.isLoading=!1,t.abrupt("return",c);case 9:case"end":return t.stop()}}),t,this)}))),function(e,t){return r.apply(this,arguments)})},{key:"create",value:(a=(0,c.default)(n.default.mark((function e(t){var a,r=arguments;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=r.length>1&&void 0!==r[1]?r[1]:{},e.abrupt("return",this.submitting(request.post(this.getListUrl(a),t)));case 2:case"end":return e.stop()}}),e,this)}))),function(e){return a.apply(this,arguments)})},{key:"patch",value:function(e,t){return this.submitting(request.put(this.getDetailUrl(e),t))}}]),p}(r(a(68)).default),(0,h.default)(i.prototype,"fetchList",[y.action],Object.getOwnPropertyDescriptor(i.prototype,"fetchList"),i.prototype),(0,h.default)(i.prototype,"fetchDetail",[y.action],Object.getOwnPropertyDescriptor(i.prototype,"fetchDetail"),i.prototype),(0,h.default)(i.prototype,"create",[y.action],Object.getOwnPropertyDescriptor(i.prototype,"create"),i.prototype),(0,h.default)(i.prototype,"patch",[y.action],Object.getOwnPropertyDescriptor(i.prototype,"patch"),i.prototype),i);t.default=S}).call(this,a(69))},function(e,t,a){"use strict";a(15),Object.defineProperty(t,"__esModule",{value:!0}),t.REVIEW_PASS_ACTIONS=t.ACTION_TO_NAME=t.HANDLE_TYPE_TO_SHOW=t.ACTION_TO_STATUS=t.STATUS_TO_ACTION_ADMIN=t.STATUS_TO_ACTION=t.APP_STORE_ACTIONS=t.CAN_DELETE_STATUS=t.CAN_EDIT_STATUS=t.STATUS_TO_ICON=t.STATUS_TRANSFER_MAP=t.DEFAULT_QUERY_STATUS=void 0;t.DEFAULT_QUERY_STATUS="draft|submitted|rejected|in-review|passed|active|suspended";t.STATUS_TRANSFER_MAP={active:"active",suspended:"suspended",suspend:"suspending",submitted:"submitted",passed:"passed",draft:"draft",rejected:"rejected"};t.STATUS_TO_ICON={submitted:"review","in-review":"review",rejected:"suspended",active:"passed"};t.CAN_EDIT_STATUS=["draft","rejected"];t.CAN_DELETE_STATUS=["draft","rejected","passed","suspended"];t.APP_STORE_ACTIONS=["suspend","recover"];t.STATUS_TO_ACTION={draft:"submit",submitted:"cancel",rejected:"submit",passed:"release",active:"view"};t.STATUS_TO_ACTION_ADMIN={active:"suspend",suspended:"recover"};t.ACTION_TO_STATUS={suspend:"active",recover:"suspended"};t.HANDLE_TYPE_TO_SHOW={recover:"activate"};t.ACTION_TO_NAME={submit:"SUBMIT_FOR_REVIEW",cancel:"CANCEL_SUBMISSION",release:"RELEASE",view:"VIEW_IN_STORE",suspend:"SUSPEND",recover:"RELEASE"};t.REVIEW_PASS_ACTIONS=[{role:"isv",action:"review"},{role:"isv",action:"pass"},{role:"business",action:"review"},{role:"business",action:"pass"},{role:"technical",action:"review"},{role:"technical",action:"pass"}]},function(e,t,a){"use strict";a(15);var r=a(20);a(4),a(23),a(17),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(45),a(42),a(4),a(23),a(57),a(17);var n=r(a(315)),l=r(a(36)),u=r(a(37)),o=r(a(55)),i=r(a(56)),c=r(a(51)),s=r(a(0)),f=a(186),d=r(a(842)),p=a(72),m=r(a(2611));function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,c.default)(e);if(t){var n=(0,c.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,i.default)(this,a)}}var v=function(e){(0,o.default)(a,e);var t=h(a);function a(){return(0,l.default)(this,a),t.apply(this,arguments)}return(0,u.default)(a,[{key:"render",value:function(){var e={keyProps:{component:f.AutoComplete,className:m.default.dropdown,options:this.props.options||p.INGRESS_ANNOTATIONS}};return s.default.createElement(d.default,(0,n.default)({},this.props,{itemProps:e}))}}]),a}(s.default.Component);t.default=v},function(e,a,r){"use strict";r(15);var n=r(157),l=r(20);r(5),r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(42),r(4),r(23),r(57),r(17);var u=l(r(36)),o=l(r(37)),i=l(r(55)),c=l(r(56)),s=l(r(51)),f=n(r(0)),d=r(186),p=l(r(828)),m=l(r(2622));function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,s.default)(e);if(t){var n=(0,s.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,c.default)(this,a)}}var v=function(e){(0,i.default)(r,e);var a=h(r);function r(){var e;(0,u.default)(this,r);for(var t=arguments.length,n=new Array(t),l=0;l0&&void 0!==arguments[0]?arguments[0]:{};return"".concat(e.apiVersion).concat(e.getPath(t),"/").concat(e.module)},e}return(0,l.default)(a,[{key:"apiVersion",get:function(){return"apis/springcloud.kubesphere.io/v1alpha1"}}]),a}(r(a(68)).default);t.default=s},,,,,,function(e,a,r){"use strict";r(15);var n=r(20);r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(42),r(4),r(23),r(57),r(17);var l=n(r(36)),u=n(r(37)),o=n(r(55)),i=n(r(56)),c=n(r(51)),s=n(r(0)),f=n(r(3)),d=r(186),p=n(r(799)),m=n(r(2924));function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,c.default)(e);if(t){var n=(0,c.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,i.default)(this,a)}}var v=function(e){(0,o.default)(r,e);var a=h(r);function r(){return(0,l.default)(this,r),a.apply(this,arguments)}return(0,u.default)(r,[{key:"render",value:function(){var e=this.props,a=e.className,r=e.readOnly,n=e.renderHostInput,l=e.exampleValue;return s.default.createElement(d.Columns,{className:(0,f.default)(m.default.columns,a)},s.default.createElement(d.Column,{className:"is-7"},s.default.createElement(d.Form.Item,{rules:this.props.hostRules},n||s.default.createElement(d.Input,{name:this.props.hostName,placeholder:t("EXAMPLE_VALUE",{value:l||"192.168.1.10"}),readOnly:r}))),s.default.createElement(d.Column,null,s.default.createElement(d.Form.Item,{rules:this.props.portRules},s.default.createElement(p.default,{min:0,max:65535,name:this.props.portName,onChange:this.onPortChange,defaultValue:this.props.defaultPort,placeholder:t("EXAMPLE_VALUE",{value:9200}),readOnly:r,integer:!0}))))}}]),r}(s.default.Component);a.default=v,v.defaultProps={hostName:"Host",portName:"Port",defaultPort:9200,hostRules:[{required:!0,message:t("ENTER_SERVICE_ADDRESS")}],portRules:[{required:!0,message:t("PORT_NUMBER_EMPTY")}]}},function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(42),r(4),r(23),r(57),r(17);var l=n(r(315)),u=n(r(58)),o=n(r(36)),i=n(r(37)),c=n(r(55)),s=n(r(56)),f=n(r(51)),d=n(r(0)),p=n(r(1)),m=n(r(3)),h=n(r(63)),v=n(r(972)),g=r(186),y=r(1193),E=n(r(2928));function b(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,f.default)(e);if(t){var n=(0,f.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,s.default)(this,a)}}var _=function(e){(0,c.default)(r,e);var a=b(r);function r(){var e;(0,o.default)(this,r);for(var t=arguments.length,n=new Array(t),l=0;l0),"Match"===e.operator&&(t=t&&e.regexValue),t},e.itemValidator=function(a,r,n){return r?r.some((function(t){return!e.checkItemValid(t)}))?n({message:t("INVALID_NOTIFICATION_CONDITION")}):void n():n()},e.handleSwitch=function(t){e.setState({enabled:t})},e.handleVerify=function(){var a=e.props,r=a.user,n=a.getVerifyFormTemplate,l=a.onVerify,u=e.formRef.current;u&&u.validate((function(){var a=u.getData(),o=C.default.notificationVerify({user:r}),i=(0,v.default)(n(a)),c=i.config,s=i.receiver;l&&!l(a)||((0,p.default)(o,"config.spec",(0,d.default)(c,"spec",{})),(0,p.default)(o,"receiver.spec",(0,d.default)(s,"spec",{})),(0,h.default)(c)&&(0,m.default)(o,"config"),e.setState({isVerifying:!0}),e.verifyStore.checkInfo(o,{user:r}).then((function(a){e.setState({isVerifying:!1}),200===a.Status?y.default.success({content:t("SEND_TEST_MESSAGE_SUCCESS_DESC")}):y.default.error({content:a.Message})})))}))},e.handleSubmit=function(){var t=e.formRef.current;t&&t.validate((function(){e.props.onSubmit(t.getData())}))},e}return(0,o.default)(r,[{key:"renderEnableService",value:function(){var e=this.props,a=e.user,r=e.name,n=e.module,l=e.icon,u=e.noConfig,o=void 0===u||u,i=this.state.enabled;return a&&!o?f.default.createElement("div",{className:k.default.contentWrapper},f.default.createElement(g.Form.Item,{className:k.default.isHorizon,label:t(i?t("NOTIFICATION_ENABLED"):t("NOTIFICATION_DISABLED"))},f.default.createElement(_.default,{name:"receiver.spec.".concat(r,".enabled"),value:i,onChange:this.handleSwitch}))):f.default.createElement("div",{className:k.default.header},f.default.createElement(E.default,{className:k.default.title,icon:l,title:t("".concat(n.toUpperCase(),"_TITLE")),description:t("".concat(n.toUpperCase(),"_DESC"))}),!o&&f.default.createElement("div",{className:k.default.action},f.default.createElement(g.Form.Item,null,f.default.createElement(b.default,{name:"receiver.spec.".concat(r,".enabled"),text:t(i?t("ENABLED"):t("DISABLED")),checked:i,onChange:this.handleSwitch}))))}},{key:"renderControlAnnotation",value:function(){return f.default.createElement("div",{className:k.default.annotation},f.default.createElement(g.Icon,{name:"question"}),f.default.createElement("p",{className:k.default.desc},t.html("NOTIFICATION_CONDITION_SETTING_TIP")))}},{key:"renderControlSetting",value:function(){var e=this.props,a=e.name,r=e.user;return f.default.createElement(g.Form.Group,{label:t("FILTER_CONDITIONS"),desc:t("NOTIFICATION_CONDITION_SETTINGS_DESC"),checkable:!0,keepDataWhenUnCheck:Boolean(r)},f.default.createElement(g.Form.Item,{rules:[{validator:this.itemValidator,checkOnSubmit:!0}]},f.default.createElement(O.default,{name:"receiver.spec.".concat(a,".alertSelector.matchExpressions"),itemType:"object",addText:t("ADD"),checkItemValid:this.checkItemValid,desc:this.renderControlAnnotation()},f.default.createElement(D.default,null))))}},{key:"renderVerifyAction",value:function(){var e=this.state.isVerifying;return f.default.createElement("div",{className:k.default.contentWrapper},f.default.createElement("p",null,t("SEND_TEST_MESSAGE_DESC")),f.default.createElement(g.Button,{className:k.default.action,onClick:this.handleVerify,loading:e},t("SEND_TEST_MESSAGE")))}},{key:"renderFooterBtns",value:function(){var e=this.props,a=e.onCancel,r=e.isSubmitting;return f.default.createElement("div",{className:k.default.footer},f.default.createElement(g.Button,{onClick:a},t("CANCEL")),f.default.createElement(g.Button,{type:"control",loading:r,onClick:this.handleSubmit},t("OK")))}},{key:"render",value:function(){var e=this.props,t=e.data,a=e.onChange,r=e.hideFooter,n=e.children,l=e.module,u=e.user;return f.default.createElement(g.Form,{ref:this.formRef,data:t,onChange:a},f.default.createElement("div",{className:k.default.formBody},this.renderEnableService(),f.default.createElement("div",{className:k.default.contentWrapper},n,("mail"!==l||"mail"===l&&u)&&this.renderControlSetting()),("mail"!==l||"mail"===l&&u)&&this.renderVerifyAction()),!r&&this.renderFooterBtns())}}]),r}(f.Component);a.default=T},function(e,t,a){e.exports={pipelineCard:"uLmxymVsGkkYEf4yNccS6",pipelineCard__title:"_374bDv2bi1dgj-3Ep0nJtt","pipelineCard__title-error":"_2f_2SEsh5G2oZIyeNZAaOj",pipelineCard__content:"_1yZ2ddWm3YllTHSa1mSMac",pipelineCard__item:"_1j55rjwffi54nOaArMvQB2","pipelineCard-error":"rUnBDmlIjlvSq8C8rupWI",errorTip:"_1xCvRnuQl_HK5ABGqg_4Gt","pipelineCard-active":"_2RjzuvDfXn-yRmy6gVBXQ",content__title:"_1LbrO1eYXEftlLojLl8elX",content__title__error:"dL6e5rCCy45AlcnTNKd8c",content__title__noDetail:"dN_jyqpuK7-wjUCtyBwgQ",content__title__text:"_2i2A2H340NtX7tTERjbDnT",content__text:"_2TlASMvryC2WAexUpv5Pt5",content__detail:"_1EDW6C4SqJ_GXk04u0vtVo",pipeline_column:"_2Vr4U7R21ewKodQbQ3yxvA",addSteps:"_1XL2Tx9WZXsq6XUPqcr2-n",addBranchCard:"_1TrqGHHYXzKjWoHt9nGppf",conditions:"_1Clw9YoUbLC8bkdFwJyCp4",nestStage_content:"_8fLMHq9hBtobMpLMRVB6p",indentBorder:"pgY1DAUVAYW-QogDMobqg",nestsStage_detail:"_3vTIWGQ45B-Lpw4vdbSQIO"}},,,function(e,a,r){"use strict";r(15);var n=r(157),l=r(20);r(5),r(18),r(4),r(23),r(24),r(17),r(62),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(18),r(42),r(4),r(319),r(23),r(57),r(24),r(17),r(62);var u=l(r(96)),o=l(r(36)),i=l(r(37)),c=l(r(55)),s=l(r(56)),f=l(r(51)),d=n(r(0)),p=l(r(243)),m=l(r(1)),h=l(r(3)),v=l(r(1033)),g=l(r(869)),y=l(r(870)),E=l(r(1277)),b=l(r(871)),_=r(794),O=l(r(3448));function S(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,f.default)(e);if(t){var n=(0,f.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,s.default)(this,a)}}var C=function(e){(0,c.default)(r,e);var a=S(r);function r(){var e;(0,o.default)(this,r);for(var n=arguments.length,l=new Array(n),i=0;i0&&void 0!==arguments[0]?arguments[0]:{},a=t.state.pods;(0,g.default)(a)?t.resourceStore.fetchSortedMetrics(I(I({},t.resourceParams),{},{metrics:[P.cpu_usage],limit:5})).then((function(a){var r=((0,y.default)(a[P.cpu_usage],"data.result")||[]).map((function(e){return(0,y.default)(e,"metric.pod")}));t.setState({pods:r},(function(){t.fetchMetrics(I({resources:r},e))}))})):t.fetchMetrics(I({resources:a},e))},t.fetchMetrics=function(e){var a=t.store.detail.cluster;t.monitorStore.fetchMetrics(I(I({resources:[],metrics:Object.values((0,C.hideGPUByLicense)(P,a))},t.resourceParams),e))},t.getMonitoringCfgs=function(){return[{type:"cpu",title:"CPU_USAGE",unitType:"cpu",metricType:P.cpu_usage},{type:"memory",title:"MEMORY_USAGE",unitType:"memory",metricType:P.memory_usage},{type:"gpu",title:"GPU_USAGE",unitType:"gpu",metricType:P.gpu_usage},{type:"gpu_memory",title:"GPU_MEMORY_USAGE",unitType:"memory",metricType:P.gpu_memory_usage},{type:"bandwidth",title:"OUTBOUND_TRAFFIC",unitType:"bandwidth",metricType:P.net_transmitted},{type:"bandwidth",title:"INBOUND_TRAFFIC",unitType:"bandwidth",metricType:P.net_received}]},t.showMultipleModal=function(e){return(0,C.cacheFunc)("_showMultipleModal_".concat(e.title),(function(){t.setState({showMultipleModal:!0,selectItem:I(I({},e),{},{legend:["USAGE"]})})}),(0,f.default)(t))},t.hideMultipleModal=function(){t.setState({showMultipleModal:!1,selectItem:{}})},t.state={showMultipleModal:!1,selectItem:{},pods:[]};var n=(0,y.default)(t.props.rootStore,"routing.location.pathname","").indexOf("observability")>-1,l=(0,C.isEdgeWizePage)();return t.monitorStore=n?new N.default:l?new k.default:new D.default,t.resourceStore=n?new N.default:l?new k.default:new D.default,t}return(0,s.default)(r,[{key:"renderCard",value:function(){var e=this,a=this.store.detail,r=a.createTime,n=a.cluster,l=this.monitorStore,u=l.isLoading,i=l.isRefreshing,c=(0,C.hideGPUByLicense)(this.getMonitoringCfgs(),n),s=this.isMore;return h.default.createElement(O.Controller,{createTime:r,onFetch:this.fetchData,loading:u,refreshing:i,isEmpty:(0,g.default)(this.metrics)},s&&h.default.createElement(b.Alert,{message:t.html("MONITORING_ALERT_DESC"),type:"info"}),c.map((function(a){a.data=(0,y.default)(e.metrics,"".concat(a.metricType,".data.result"))||[{values:(0,S.getZeroValues)()}],a.legend=a.data.map((function(e,t){return(0,y.default)(e,"metric.pod","pod".concat(t))})),a.workload_kind=e.monitoringModule;var r=(0,S.getAreaChartOps)(a);return h.default.createElement("div",{key:a.title,className:(0,v.default)(R.default.item)},s&&h.default.createElement("div",{className:R.default.more,onClick:e.showMultipleModal(a)},t("VIEW_ALL_REPLICAS")),h.default.createElement(_.MultiArea,(0,o.default)({width:"100%"},r)))})))}},{key:"renderModal",value:function(){var e=this.state,t=e.showMultipleModal,a=e.selectItem,r=this.store.detail,n=r.name,l=r.cluster,u=r.namespace;return h.default.createElement("div",null,h.default.createElement(T.default,{visible:t,module:this.monitoringModule,name:n,cluster:l,namespace:u,config:a,onCancel:this.hideMultipleModal}))}},{key:"render",value:function(){return h.default.createElement("div",null,this.renderCard(),this.renderModal())}},{key:"store",get:function(){return this.props.detailStore}},{key:"monitoringModule",get:function(){return A[this.store.module]}},{key:"metrics",get:function(){var e={};return Object.entries(this.monitorStore.data).forEach((function(t){var a=(0,u.default)(t,2),r=a[0],n=a[1];(0,y.default)(n,"data.result")&&(e["".concat(r)]=n)})),e}},{key:"resourceParams",get:function(){var e=this.store.detail,t=e.cluster,a=e.namespace,r=e.name;return{cluster:t,namespace:a,workload_kind:this.monitoringModule,workload_name:r}}},{key:"isMore",get:function(){var e=this.store.detail,t=e.podNums,a=e.status;return(t||a.numberAvailable)>5}}]),r}(h.default.Component))||l)||l;a.default=j},function(e,a,r){"use strict";var n=r(20);r(12),r(5),r(11),r(6),r(18),r(16),r(9),r(13),r(10),r(4),r(23),r(24),r(17),r(62),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(45),r(5),r(11),r(6),r(18),r(28),r(42),r(16),r(34),r(15),r(9),r(13),r(10),r(4),r(22),r(23),r(57),r(24),r(17),r(62),r(7);var l=n(r(43)),u=n(r(30));r(41);var o,i=n(r(44)),c=n(r(36)),s=n(r(37)),f=n(r(55)),d=n(r(56)),p=n(r(51)),m=n(r(0)),h=n(r(199)),v=r(14),g=r(239),y=r(52),E=r(72),b=n(r(789)),_=n(r(795)),O=n(r(873)),S=n(r(322)),C=n(r(4051));function D(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function k(e){for(var t=1;t0&&void 0!==m[0]?m[0]:{},n=e.props.match.params,o=n.name,i=n.namespace,c=n.workspace,s=n.cluster,f=e.props.detailStore.module,t.next=6,e.store.fetchList(k((a={},(0,u.default)(a,E.ROLE_QUERY_KEY[f],o),(0,u.default)(a,"namespace",i),(0,u.default)(a,"workspace",c),(0,u.default)(a,"cluster",s),a),r));case 6:if(d=t.sent,p=e.store.getModule(n),!((null!=d?d:[]).length>0&&"users"!==p)){t.next=11;break}return t.next=11,e.store.getAllUserStatus();case 11:case"end":return t.stop()}}),t)}))),e.getColumns=function(){return[{title:t("USERNAME"),dataIndex:"username",width:"33%"},{title:t("STATUS"),dataIndex:"status",width:"33%",render:function(e){return m.default.createElement(_.default,{type:e,name:t("USER_".concat(e.toUpperCase()))})}},{title:t("LAST_LOGIN"),dataIndex:"lastLoginTime",width:"33%",render:function(e){return m.default.createElement("p",null,e?(0,y.getLocalTime)(e).format("YYYY-MM-DD HH:mm:ss"):t("NOT_LOGIN_YET"))}}]},e}return(0,s.default)(r,[{key:"componentDidMount",value:function(){this.fetchData()}},{key:"render",value:function(){var e,a=(0,v.toJS)(this.store.list),r=a.data,n=a.total,l=a.page,u=a.limit,o=a.isLoading,i=null!==(e=(0,v.toJS)(this.store.allUserStatus))&&void 0!==e?e:[],c=(null!=r?r:[]).map((function(e){var t=i[e.name];return(0,h.default)({},e,t)})),s={total:n,page:l,limit:u};return m.default.createElement(b.default,{title:t("AUTHORIZED_USER_PL")},m.default.createElement(O.default,{className:C.default.table,data:c,columns:this.getColumns(),pagination:s,isLoading:o,onFetch:this.fetchData,emptyProps:this.emptyProps,hideCustom:!0,hideHeader:!0}))}},{key:"emptyProps",get:function(){return{icon:"human",name:"USER",desc:t("NO_AUTHORIZED_USER_DESC"),className:C.default.table}}}]),r}(m.default.Component))||o)||o;a.default=T},function(e,t,a){"use strict";var r=a(20);a(12),a(5),a(11),a(6),a(73),a(9),a(13),a(10),a(4),a(23),a(17),a(7),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(12),a(45),a(5),a(11),a(6),a(73),a(28),a(442),a(42),a(34),a(15),a(9),a(13),a(10),a(4),a(22),a(23),a(57),a(17),a(7);var n=r(a(43));a(41);var l=r(a(44)),u=r(a(30)),o=r(a(58)),i=r(a(36)),c=r(a(37)),s=r(a(55)),f=r(a(56)),d=r(a(51)),p=r(a(63)),m=a(794),h=a(52);function v(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function g(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.resources,a=void 0===t?[]:t,r=e.metrics,n=void 0===r?[]:r,l=(0,o.default)(e,["resources","metrics"]),u=g({},l);return(0,p.default)(a)||(u.resources_filter="".concat(a.join("|"),"$")),(0,p.default)(n)||(u.metrics_filter="".concat(n.join("|"),"$")),u.time=Math.floor(Date.now()/1e3),u},e}return(0,c.default)(r,[{key:"fetchGatewayMetrics",value:(t=(0,l.default)(n.default.mark((function e(t){var a,r,l,u,i,c,s,f,d,p,v;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=t.autoRefresh,r=void 0!==a&&a,l=t.more,u=void 0!==l&&l,i=t.fillZero,c=void 0===i||i,s=(0,o.default)(t,["autoRefresh","more","fillZero"]),r?(s.last=!0,this.isRefreshing=!0):this.isLoading=!0,s.cluster&&(this.cluster=s.cluster),f=this.getGatewayParams(s),d=this.getApi(s),e.next=7,(0,h.to)(request.get(d,f));case 7:return p=e.sent,v=this.getResult(p),r&&(v=this.getRefreshResult(v,this.data)),u&&(v=this.getMoreResult(v,this.data)),this.data=c?(0,m.fillEmptyMetrics)(f,v):v,this.isLoading=!1,this.isRefreshing=!1,e.abrupt("return",v);case 15:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})}]),r}(r(a(845)).default);t.default=E},function(e,t,a){"use strict";a(15);var r=a(20);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Header",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(t,"Nav",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"GlobalNav",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"Selector",{enumerable:!0,get:function(){return o.default}});var n=r(a(4104)),l=r(a(4116)),u=r(a(4118)),o=r(a(4120))},,,,,function(e,t,a){"use strict";a(15);var r=a(157),n=a(20);a(5),a(6),a(16),a(4),a(23),a(17),a(111),a(7),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(45),a(5),a(6),a(42),a(16),a(4),a(23),a(57),a(17),a(111),a(7);var l=n(a(36)),u=n(a(37)),o=n(a(55)),i=n(a(56)),c=n(a(51)),s=r(a(0)),f=a(186),d=n(a(63)),p=n(a(158)),m=n(a(470)),h=n(a(3)),v=n(a(2098));function g(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,c.default)(e);if(t){var n=(0,c.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,i.default)(this,a)}}var y=function(e){(0,o.default)(a,e);var t=g(a);function a(){var e;(0,l.default)(this,a);for(var r=arguments.length,n=new Array(r),u=0;u0&&void 0!==arguments[0]?arguments[0]:{},a=e.className,r=e.payload,n=e.activeSeries,s=void 0===n?[]:n,f=e.showAll,d=void 0!==f&&f,p=e.isTranslate,m=void 0===p||p,h=e.extraLegend,v=r||[];if(v.length<2&&!d)return u.default.createElement("div",{className:c.default.legend});var g=function(t){var a=e.onClick;if(a){var r=(0,i.default)(t.target,"dataset.key");r&&a(t,r)}};return u.default.createElement("div",{className:(0,o.default)(a,c.default.legend),onClick:g},h&&u.default.createElement("div",{className:c.default.item},h),v.map((function(e){var a=!s.includes(e.value),r=(0,i.default)(e,"payload.stroke");return u.default.createElement("div",{key:e.dataKey,"data-key":e.dataKey,className:(0,o.default)(c.default.item,(0,l.default)({},c.default.inactive,a))},u.default.createElement("i",{style:{backgroundColor:r}}),m?t(e.value):e.value)})))};a.default=s},function(e,t,a){"use strict";a(15),a(11),a(10),Object.defineProperty(t,"__esModule",{value:!0}),t.getActiveSeries=void 0,a(11),a(10),a(4);t.getActiveSeries=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.xKey,a=e.data;return Object.keys(a[0]||{}).filter((function(e){return e!==t}))}},,,function(e,t,a){"use strict";a(15);var r=a(20);a(4),a(23),a(17),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(45),a(42),a(4),a(23),a(57),a(17);var n=r(a(36)),l=r(a(55)),u=r(a(56)),o=r(a(51));function i(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,o.default)(e);if(t){var n=(0,o.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,u.default)(this,a)}}var c=function(e){(0,l.default)(a,e);var t=i(a);function a(){return(0,n.default)(this,a),t.apply(this,arguments)}return a}(r(a(468)).default);t.default=c},function(e,t,a){"use strict";a(15);var r=a(20);a(4),a(23),a(17),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(45),a(42),a(4),a(23),a(57),a(17);var n=r(a(36)),l=r(a(55)),u=r(a(56)),o=r(a(51));function i(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,o.default)(e);if(t){var n=(0,o.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,u.default)(this,a)}}var c=function(e){(0,l.default)(a,e);var t=i(a);function a(){return(0,n.default)(this,a),t.apply(this,arguments)}return a}(r(a(443)).default);t.default=c},,function(e,t,a){"use strict";a(15),Object.defineProperty(t,"__esModule",{value:!0}),t.kafkaYaml=void 0;t.kafkaYaml={resources:{apiVersion:"kafka.strimzi.io/v1beta2",kind:"Kafka",metadata:{name:"my-cluster"},spec:{clusterCa:{renewalDays:30,validityDays:3650},clientsCa:{renewalDays:30,validityDays:3650},kafka:{version:"3.2.0",replicas:1,resources:{requests:{memory:"64Gi",cpu:"8"},limits:{memory:"64Gi",cpu:"12"}},listeners:[{name:"external",port:9092,type:"nodeport",tls:!0,authentication:{type:"tls"}}],metricsConfig:{type:"jmxPrometheusExporter",valueFrom:{configMapKeyRef:{key:"kafka-metrics-config.yml",name:"kafka-metrics"}}},authorization:{superUsers:["saas"],type:"simple"},storage:{type:"jbod",volumes:[{id:0,type:"persistent-claim",size:"100Gi",deleteClaim:!0}]},config:{"default.replication.factor":3,"min.insync.replicas":2,"auto.create.topics.enable":!1,"num.partitions":3}},zookeeper:{replicas:1,metricsConfig:{type:"jmxPrometheusExporter",valueFrom:{configMapKeyRef:{key:"zookeeper-metrics-config.yml",name:"kafka-metrics"}}},resources:{requests:{memory:"8Gi",cpu:"2"},limits:{memory:"8Gi",cpu:"2"}},storage:{type:"persistent-claim",size:"100Gi",deleteClaim:!0}},entityOperator:{topicOperator:{},userOperator:{}},cruiseControl:{},kafkaExporter:{groupRegex:".*",topicRegex:".*"}}},user:{apiVersion:"kafka.strimzi.io/v1beta2",kind:"KafkaUser",metadata:{name:"saas",labels:{"strimzi.io/cluster":"my-cluster"}},spec:{authentication:{type:"scram-sha-512"},authorization:{type:"simple",acls:[{type:"allow",operation:"Read",resource:{type:"topic",patternType:"literal",name:""}}]}}},topic:{apiVersion:"kafka.strimzi.io/v1beta2",kind:"KafkaTopic",metadata:{name:"my-topic2",labels:{"strimzi.io/cluster":"my-cluster"}},spec:{partitions:3,replicas:1,config:{"retention.ms":6048e5}}},configMap:{kind:"ConfigMap",apiVersion:"v1",metadata:{name:"kafka-metrics",namespace:"test",labels:{app:"strimzi",component:"configmap"}},data:{"kafka-metrics-config.yml":'# See https://github.com/prometheus/jmx_exporter for more info about JMX Prometheus Exporter metrics\nlowercaseOutputName: true\nrules:\n- pattern: kafka.(\\w+)<>MeanRate\n name: kafka_$1_$2_$3_percent\n type: GAUGE\n- pattern: kafka.(\\w+)<>Value\n name: kafka_$1_$2_$3_percent\n type: GAUGE\n- pattern: kafka.(\\w+)<>Value\n name: kafka_$1_$2_$3_percent\n type: GAUGE\n labels:\n "$4": "$5"\n- pattern: kafka.(\\w+)<>Count\n name: kafka_$1_$2_$3_total\n type: COUNTER\n labels:\n "$4": "$5"\n "$6": "$7"\n- pattern: kafka.(\\w+)<>Count\n name: kafka_$1_$2_$3_total\n type: COUNTER\n labels:\n "$4": "$5"\n- pattern: kafka.(\\w+)<>Count\n name: kafka_$1_$2_$3_total\n type: COUNTER\n- pattern: kafka.cluster<>Value\n name: kafka_cluster_$1_underminisr\n type: GAUGE\n labels:\n "$2": "$3"\n "$4": "$5"\n- pattern: kafka.cluster<>Value\n name: kafka_cluster_$1_underminisr\n type: GAUGE\n labels:\n "$2": "$3"\n- pattern: kafka.cluster<>Value\n name: kafka_cluster_$1_underminisr\n type: GAUGE\n- pattern: kafka.controller<>Value\n name: kafka_controller_$1_$2\n type: GAUGE\n labels:\n "$3": "$4"\n "$5": "$6"\n- pattern: kafka.controller<>Value\n name: kafka_controller_$1_$2\n type: GAUGE\n labels:\n "$3": "$4"\n- pattern: kafka.controller<>Value\n name: kafka_controller_$1_$2\n type: GAUGE\n- pattern: kafka.server<>Value\n name: kafka_server_$1_$2\n type: GAUGE\n labels:\n "$3": "$4"\n "$5": "$6"\n- pattern: kafka.server<>Value\n name: kafka_server_$1_$2\n type: GAUGE\n labels:\n "$3": "$4"\n- pattern: kafka.server<>Value\n name: kafka_server_$1_$2\n type: GAUGE',"zookeeper-metrics-config.yml":'# See https://github.com/prometheus/jmx_exporter for more info about JMX Prometheus Exporter metrics\nlowercaseOutputName: true\nrules:\n# replicated Zookeeper\n- pattern: "org.apache.ZooKeeperService<>(\\\\w+)"\n name: "zookeeper_$2"\n type: GAUGE\n- pattern: "org.apache.ZooKeeperService<>(\\\\w+)"\n name: "zookeeper_$3"\n type: GAUGE\n labels:\n replicaId: "$2"\n- pattern: "org.apache.ZooKeeperService<>(Packets\\\\w+)"\n name: "zookeeper_$4"\n type: COUNTER\n labels:\n replicaId: "$2"\n memberType: "$3"\n- pattern: "org.apache.ZooKeeperService<>(\\\\w+)"\n name: "zookeeper_$4"\n type: GAUGE\n labels:\n replicaId: "$2"\n memberType: "$3"\n- pattern: "org.apache.ZooKeeperService<>(\\\\w+)"\n name: "zookeeper_$4_$5"\n type: GAUGE\n labels:\n replicaId: "$2"\n memberType: "$3"'}},podMonitor:{apiVersion:"monitoring.coreos.com/v1",kind:"PodMonitor",metadata:{name:"kafka-resources-metrics",namespace:"test",labels:{app:"strimzi",component:"podmonitor"}},spec:{selector:{matchExpressions:[{key:"strimzi.io/kind",operator:"In",values:["Kafka","KafkaConnect","KafkaMirrorMaker","KafkaMirrorMaker2"]},{key:"strimzi.io/component-type",operator:"NotIn",values:["kafka-exporter"]}]},namespaceSelector:{matchNames:["namespace"]},podMetricsEndpoints:[{path:"/metrics",port:"tcp-prometheus",relabelings:[{separator:";",regex:"__meta_kubernetes_pod_label_(strimzi_io_.+)",replacement:"$1",action:"labelmap"},{sourceLabels:["__meta_kubernetes_namespace"],separator:";",regex:"(.*)",targetLabel:"namespace",replacement:"$1",action:"replace"},{sourceLabels:["__meta_kubernetes_pod_name"],separator:";",regex:"(.*)",targetLabel:"kubernetes_pod_name",replacement:"$1",action:"replace"},{sourceLabels:["__meta_kubernetes_pod_node_name"],separator:";",regex:"(.*)",targetLabel:"node_name",replacement:"$1",action:"replace"},{sourceLabels:["__meta_kubernetes_pod_host_ip"],separator:";",regex:"(.*)",targetLabel:"node_ip",replacement:"$1",action:"replace"}]}]}},rebalance:{apiVersion:"kafka.strimzi.io/v1beta2",kind:"KafkaRebalance",metadata:{name:"my-rebalance2",labels:{"strimzi.io/cluster":"my-cluster"},annotations:{"strimzi.io/rebalance":"approve"}},spec:{mode:"full"}}}},,function(e,t,a){"use strict";a(15);var r=a(20);a(4),a(23),a(17),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(45),a(42),a(4),a(23),a(57),a(17);var n=r(a(36)),l=r(a(55)),u=r(a(56)),o=r(a(51));function i(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,o.default)(e);if(t){var n=(0,o.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,u.default)(this,a)}}var c=function(e){(0,l.default)(a,e);var t=i(a);function a(){return(0,n.default)(this,a),t.apply(this,arguments)}return a}(r(a(885)).default);t.default=c},function(e,t,a){"use strict";var r=a(20);a(12),a(5),a(11),a(6),a(18),a(9),a(13),a(10),a(4),a(23),a(17),a(7),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(12),a(45),a(5),a(11),a(6),a(18),a(28),a(42),a(34),a(15),a(9),a(13),a(10),a(4),a(22),a(23),a(57),a(17),a(7);var n=r(a(43)),l=r(a(30)),u=r(a(58));a(41);var o,i=r(a(44)),c=r(a(36)),s=r(a(37)),f=r(a(55)),d=r(a(56)),p=r(a(51)),m=r(a(49)),h=r(a(68)),v=a(14),g=a(52);function y(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function E(e){for(var t=1;t0&&void 0!==d[0]?d[0]:{},a=t.cluster,r=t.namespace,l=t.module,o=(0,u.default)(t,["cluster","namespace","module"]),this.list.isLoading=!0,l&&(this.module=l),i=o,e.next=6,request.get(this.getListUrl({cluster:a,namespace:r,module:l}),i);case 6:return c=e.sent,s=c.items.map((function(e){return E({cluster:a,module:l||f.module},f.mapper(e))})),(0,g.LimitsEqualRequests)(s),this.list.update({data:s,total:c.items.length,isLoading:!1}),e.abrupt("return",s);case 11:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})}]),r}(h.default),(0,m.default)(o.prototype,"fetchListByK8s",[v.action],Object.getOwnPropertyDescriptor(o.prototype,"fetchListByK8s"),o.prototype),o);t.default=_},function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(6),r(84),r(18),r(16),r(27),r(4),r(23),r(24),r(17),r(136),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(6),r(84),r(18),r(28),r(42),r(16),r(27),r(4),r(23),r(57),r(24),r(193),r(17),r(7);var l=n(r(36)),u=n(r(37)),o=n(r(55)),i=n(r(56)),c=n(r(51)),s=n(r(0)),f=n(r(1)),d=r(72),p=r(186),m=n(r(63)),h=n(r(74)),v=n(r(1545)),g=n(r(1546)),y=n(r(829)),E=n(r(2298));function b(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,c.default)(e);if(t){var n=(0,c.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,i.default)(this,a)}}var _=function(e){(0,o.default)(r,e);var a=b(r);function r(){var e;(0,l.default)(this,r);for(var n=arguments.length,u=new Array(n),o=0;o0){var l=[];r.forEach((function(a){return!a.name||!a.containerPort||e.props.withService&&!a.servicePort?n({message:t("INVALID_PORT")}):l.includes(a.name)?n({message:t("PORT_INPUT_DESC")}):a.name&&(a.name.length>15||!d.PATTERN_PORT_NAME.test(a.name))?n({message:t("WORKLOAD_PORT_NAME_DESC")}):void l.push(a.name)}))}n()},e.checkContainerPortValid=function(t){return e.props.withService?t&&t.name&&t.containerPort&&t.servicePort:t&&t.name&&t.containerPort},e.handleFillPorts=function(){var t,a=e.context.imageDetail.exposedPorts,r=(void 0===a?[]:a).map((function(e){var t=e.split("/")[1],a=Number(e.split("/")[0]);return{name:"".concat(t,"-").concat(a),protocol:t.toUpperCase(),containerPort:a,servicePort:a}}));(0,m.default)(r)||((0,h.default)(e.props.data,"ports",r),null===(t=e.context)||void 0===t||t.forceUpdate())},e}return(0,u.default)(r,[{key:"render",value:function(){var e,a,r,n=this.props,l=n.withService,u=n.className;return s.default.createElement(p.Form.Group,{className:u,label:t("PORT_SETTINGS"),desc:t("PORT_SETTINGS_DESC")},s.default.createElement(p.Form.Item,{rules:[{required:l,message:t("PORT_EMPTY")},{validator:this.portsValidator,checkOnSubmit:!0}]},s.default.createElement(y.default,{name:"".concat(this.prefix,"ports"),itemType:"object",addText:t("ADD_PORT"),checkItemValid:this.checkContainerPortValid,extraAdd:!(0,m.default)(null!==(e=null===(a=this.context)||void 0===a||null===(r=a.imageDetail)||void 0===r?void 0:r.exposedPorts)&&void 0!==e?e:[])&&s.default.createElement(p.Button,{className:E.default.defaultButton,onClick:this.handleFillPorts},t("USE_IMAGE_DEFAULT_PORTS"))},l?s.default.createElement(g.default,null):s.default.createElement(v.default,null))))}},{key:"prefix",get:function(){var e=this.props.prefix;return e?"".concat(e,"."):""}}]),r}(s.default.Component);a.default=_,_.defaultProps={prefix:""},_.contextTypes={imageDetail:f.default.object,forceUpdate:f.default.func}},function(e,t,a){"use strict";var r=a(20);a(12),a(11),a(6),a(9),a(13),a(10),a(4),a(23),a(17),a(7),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(12),a(45),a(11),a(6),a(28),a(42),a(34),a(15),a(9),a(13),a(10),a(4),a(23),a(57),a(17),a(7);var n=r(a(30)),l=r(a(58)),u=r(a(36)),o=r(a(37)),i=r(a(55)),c=r(a(56)),s=r(a(51)),f=r(a(0)),d=r(a(1)),p=r(a(3)),m=r(a(2295));function h(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function v(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},a=t.cluster,r=void 0===a?"":a,n=t.workspace,l=void 0===n?"":n;return"/kapis".concat(r&&"/clusters/".concat(r),"/apps.edgewize.io/v1alpha1").concat(l&&"/workspaces/".concat(l),"/").concat(e.module)},e}return(0,f.default)(r,[{key:"fetchDetail",value:(t=(0,i.default)(n.default.mark((function e(t){var a,r;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.isLoading=!0,e.next=3,request.get("".concat(this.getResourceUrl(t),"/").concat(t.name));case 3:return a=e.sent,r=b(b({},t),this.mapper(a)),this.detail=r,this.isLoading=!1,e.abrupt("return",r);case 8:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})},{key:"create",value:function(e,t){var a=e.cluster,r=(0,g.default)(t,"metadata.name"),n=this.getUrl({cluster:a,name:r});return this.submitting(request.post(n,t))}},{key:"delete",value:function(e){var t=e.cluster,a=e.name,r=this.getUrl({cluster:t,name:a});return this.submitting(request.delete(r))}}]),r}(r(a(68)).default),o=(0,v.default)(u.prototype,"allTemplates",[y.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),(0,v.default)(u.prototype,"fetchDetail",[y.action],Object.getOwnPropertyDescriptor(u.prototype,"fetchDetail"),u.prototype),(0,v.default)(u.prototype,"create",[y.action],Object.getOwnPropertyDescriptor(u.prototype,"create"),u.prototype),(0,v.default)(u.prototype,"delete",[y.action],Object.getOwnPropertyDescriptor(u.prototype,"delete"),u.prototype),u);t.default=O},function(e,a,r){"use strict";var n=r(20);r(12),r(11),r(31),r(6),r(18),r(48),r(16),r(27),r(9),r(13),r(10),r(4),r(23),r(17),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(45),r(11),r(31),r(6),r(18),r(28),r(48),r(42),r(16),r(27),r(34),r(15),r(9),r(13),r(10),r(4),r(319),r(23),r(57),r(17),r(7);var l=n(r(315)),u=n(r(30)),o=n(r(36)),i=n(r(37)),c=n(r(55)),s=n(r(56)),f=n(r(51)),d=n(r(26)),p=n(r(925)),m=n(r(242)),h=n(r(241)),v=n(r(158)),g=n(r(63)),y=n(r(0)),E=r(14),b=r(1),_=r(52),O=r(72),S=r(186),C=n(r(966)),D=n(r(866)),k=n(r(1560));function N(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function T(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};n.setState({isLoading:!0});var t=n.context.formData,a=(0,d.default)(t,"spec.storageClassName");return n.store.fetchList(T(T({},e),{},{cluster:n.props.cluster})).then((function(){var e=(0,E.toJS)(n.store.list.data);n.setState({storageClasses:(0,E.toJS)(n.store.list.data),storageClass:e.find((function(e){return a===e.name}))||e.find((function(e){return e.default}))||{},isLoading:!1})}))},n.getStorageClasses=function(){return n.state.storageClasses.map((function(e){return{label:e.name,value:e.name}}))},n.getSupportedAccessModes=function(){var e=n.state.storageClass,t=null;return e&&(t=(0,_.safeParseJSON)((0,d.default)(e,'annotations["storageclass.kubesphere.io/supported-access-modes"]',""))),(0,v.default)(t)?[]:t},n.handleStorageClassChange=function(e){var t=n.state.storageClasses.find((function(t){return t.name===e}))||{};(0,m.default)(n.context.formData,"spec.accessModes"),n.setState({storageClass:t})},n.sizeValidator=function(e,a,r){return parseInt(a,10)<=0?r({message:t("VOLUME_SIZE_TIP"),field:e.field}):r()},n.store=e.isEdgeWize?new k.default:new D.default,n.state={storageClasses:[],storageClass:{},isLoading:!1},n}return(0,i.default)(r,[{key:"componentDidMount",value:function(){this.updateStorageClass()}},{key:"getSliderProps",value:function(e){var t={min:0,max:2048,defaultValue:"10Gi",step:1,unit:"Gi"},a=Number((0,d.default)(e,"parameters.minSize")),r=Number((0,d.default)(e,"parameters.maxSize")),n=Number((0,d.default)(e,"parameters.stepSize"));(0,p.default)(a)||(t.min=a),(0,p.default)(r)||(t.max=r),(0,p.default)(n)||(t.step=n);for(var l=(t.max/t.step-t.min/t.step)/4,u={},o=0;o<4;o++){var i=Math.floor(l*o)*t.step+t.min;u[i]=0===i?"0":"".concat(i,"Gi")}return u[t.max]="".concat(t.max,"Gi"),t.marks=u,t}},{key:"render",value:function(){var e=this.state,a=e.storageClass,r=e.isLoading,n=this.props,u=n.editModalTitle,o=n.tabTitle,i=n.isFederated,c=n.isEdit,s=this.getStorageClasses(),f=this.store.list||{},d=this.getSupportedAccessModes(),p=(0,g.default)(d)?Object.keys(O.ACCESS_MODES):d,m=p.map((function(e){return{value:e,label:e}})),v="ReadWriteOnce"in p?["ReadWriteOnce"]:p.slice(0,1);return y.default.createElement(y.default.Fragment,null,!i&&!c&&y.default.createElement(S.Form.Item,{label:t("STORAGE_CLASS"),desc:t("VOLUME_STORAGE_CLASS_DESC"),rules:[{required:!0,message:t("PARAM_REQUIRED")}]},y.default.createElement(S.Select,{name:"spec.storageClassName",defaultValue:a.name,pagination:(0,h.default)(f,["page","limit","total"]),isLoading:f.isLoading,onChange:this.handleStorageClassChange,options:s,onFetch:this.updateStorageClass,searchable:!0,clearable:!0})),"EDIT_SETTINGS"!==u&&"CLUSTER_DIFF"!==o?y.default.createElement(S.Form.Item,{label:t("ACCESS_MODE"),rules:[{required:!0,message:t("PARAM_REQUIRED")}],desc:t("ACCESS_MODES_DESC")},y.default.createElement(S.Select,{name:"spec.accessModes",options:m,loading:r,defaultValue:v,multi:!0})):"",y.default.createElement(S.Form.Item,{label:t("VOLUME_CAPACITY"),rules:[{validator:this.sizeValidator}]},y.default.createElement(C.default,(0,l.default)({name:"spec.resources.requests.storage"},this.getSliderProps(a),{withInput:!0}))))}}]),r}(y.default.Component);a.default=w,w.contextTypes={formData:b.PropTypes.object}},function(e,a,r){"use strict";r(15);var n=r(20);r(4),r(23),r(17),r(110),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(42),r(4),r(23),r(57),r(17),r(110);var l=n(r(30)),u=n(r(36)),o=n(r(37)),i=n(r(55)),c=n(r(56)),s=n(r(51)),f=n(r(0)),d=n(r(1)),p=n(r(3)),m=r(186),h=n(r(2451));function v(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,s.default)(e);if(t){var n=(0,s.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,c.default)(this,a)}}var g=function(e){(0,i.default)(r,e);var a=v(r);function r(e){var t;return(0,u.default)(this,r),(t=a.call(this,e)).getIconColr=function(){var e={primary:"#fff"};switch(t.props.type){default:case"info":e.secondary="#329dce"}return e},t.handleCancel=function(){t.setState({show:!1},(function(){var e=setTimeout((function(){t.props.onCancel(),clearTimeout(e)}),1e3)}))},t.state={show:e.visible},t}return(0,o.default)(r,[{key:"renderBtns",value:function(){var e=this.props,a=e.btns,r=e.confirmText,n=e.cancelText,l=e.onConfirm,u=e.isSubmitting;return a||f.default.createElement("div",null,f.default.createElement(m.Button,{onClick:this.handleCancel},t(n)),f.default.createElement(m.Button,{type:"control",onClick:l,loading:u},t(r)))}},{key:"renderCard",value:function(){var e,t=this.props,a=t.visible,r=t.width,n=t.title,u=t.content;if(!a)return null;var o=this.state.show,i={width:r};return f.default.createElement("div",{className:(0,p.default)(h.default.card,(e={},(0,l.default)(e,h.default.in,o),(0,l.default)(e,h.default.out,!o),e)),style:i},f.default.createElement("div",{className:h.default.cardMain},f.default.createElement("div",{className:h.default.title},f.default.createElement(m.Icon,{name:"information",size:20,color:this.getIconColr()}),f.default.createElement("strong",null,n)),f.default.createElement("div",{className:h.default.content},u)),f.default.createElement("div",{className:h.default.cardFoot},this.renderBtns()))}},{key:"render",value:function(){return f.default.createElement("div",{className:h.default.wrapper},this.renderCard())}}],[{key:"getDerivedStateFromProps",value:function(e,t){return e.visible!==t.show?{show:e.visible}:null}}]),r}(f.default.PureComponent);a.default=g,g.propTypes={visible:d.default.bool,width:d.default.number,type:d.default.string,title:d.default.string,content:d.default.oneOfType([d.default.node,d.default.element]),btns:d.default.oneOfType([d.default.node,d.default.element]),confirmText:d.default.string,cancelText:d.default.string,onConfirm:d.default.func,onCancel:d.default.func,isSubmitting:d.default.bool},g.defaultProps={visible:!1,isSubmitting:!1,width:"auto",type:"info",title:"title",content:"content",confirmText:"OK",cancelText:"CANCEL",onConfirm:function(){},onCancel:function(){}}},function(e,t,a){"use strict";a(15);var r=a(20);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(a(0)),l=r(a(3)),u=r(a(2453));var o=function(e){var t=e.className,a=e.text,r=e.icon;return n.default.createElement("div",{className:(0,l.default)(u.default.emptyTip,t)},r||n.default.createElement("img",{width:32,height:32,src:"/assets/data_empty.svg"}),a||n.default.createElement("p",{className:u.default.emptyText},"暂无相关数据"))};t.default=o},function(e,t,a){"use strict";var r=a(20);a(12),a(5),a(11),a(6),a(18),a(16),a(9),a(13),a(10),a(4),a(23),a(17),a(7),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(12),a(45),a(5),a(11),a(6),a(18),a(28),a(42),a(16),a(34),a(15),a(9),a(13),a(10),a(4),a(22),a(23),a(57),a(17),a(7);var n=r(a(43)),l=r(a(30)),u=r(a(58));a(41);var o=r(a(44)),i=r(a(36)),c=r(a(37)),s=r(a(55)),f=r(a(56)),d=r(a(51)),p=r(a(68)),m=r(a(26));function h(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function v(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},a=t.cluster,r=t.name;return"".concat(e.getNetworkUrl).concat(e.getPath({cluster:a}),"/").concat(e.module,"/").concat(r,"/migrate")},e}return(0,c.default)(l,[{key:"fetchMigrateIpPool",value:(a=(0,o.default)(n.default.mark((function e(){var t,a,r,l,o,i,c,s=this,f=arguments;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=f.length>0&&void 0!==f[0]?f[0]:{},a=t.cluster,r=t.namespace,l=t.name,o=(0,u.default)(t,["cluster","namespace","name"]),e.next=3,request.get(this.getNetworkResourceUrl({name:l,cluster:a}),this.getFilterParams(o));case 3:return i=e.sent,c=((0,m.default)(i,"items")||[]).map((function(e){return v({cluster:a,namespace:r},s.mapper(e))})),e.abrupt("return",c);case 6:case"end":return e.stop()}}),e,this)}))),function(){return a.apply(this,arguments)})},{key:"fetchNamespacesIpPools",value:(t=(0,o.default)(n.default.mark((function e(){var t,a,r,l,o,i=this,c=arguments;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=c.length>0&&void 0!==c[0]?c[0]:{},a=t.namespace,r=t.cluster,l=(0,u.default)(t,["namespace","cluster"]),e.next=3,request.get("".concat(this.getNetworkUrl).concat(this.getPath({namespace:a,cluster:r}),"/").concat(this.module),this.getFilterParams(l));case 3:return o=e.sent,e.abrupt("return",o.map((function(e){return v({cluster:r,namespace:a},i.mapper(e))})));case 5:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})}]),l}(p.default);t.default=E},,,function(e,a,r){"use strict";var n=r(20),l=r(157);r(12),r(5),r(11),r(31),r(6),r(18),r(16),r(9),r(13),r(10),r(4),r(23),r(17),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(45),r(5),r(11),r(31),r(6),r(18),r(28),r(859),r(42),r(16),r(34),r(15),r(9),r(13),r(10),r(4),r(23),r(57),r(17),r(7);var u,o=n(r(315)),i=n(r(58)),c=n(r(30)),s=n(r(36)),f=n(r(37)),d=n(r(55)),p=n(r(56)),m=n(r(51)),h=l(r(0)),v=r(239),g=n(r(241)),y=r(186),E=n(r(439)),b=r(52),_=n(r(2600));function O(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function S(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},a=e.props.cluster;return t.name&&(t.nameAndAlias=t.name,delete t.name),e.projectStore.fetchList(S({cluster:a},t))},e.optionRenderer=function(a){return h.default.createElement("div",{className:_.default.option,key:a.value},a.isFedManaged?h.default.createElement("img",{className:_.default.indicator,src:"/assets/cluster.svg"}):h.default.createElement(y.Icon,{name:"project"}),a.label,a.isFedManaged&&h.default.createElement(y.Tooltip,{content:e.props.tipMessage||t("FEDPROJECT_RESOURCE_TIP")},h.default.createElement(y.Icon,{className:_.default.tip,name:"question"})))},e}return(0,f.default)(r,[{key:"componentDidMount",value:function(){var e=this.props.labelSelector;this.fetchProjects(e?{labelSelector:e}:void 0)}},{key:"getProjects",value:function(){var e=this.props.defaultValue,t=this.projectStore.list.data,a=t.filter((function(e){return"Terminating"!==e.status})).map((function(e){return{label:(0,b.showNameAndAlias)(e),value:e.name,disabled:e.isFedManaged,isFedManaged:e.isFedManaged}}));return e&&!t.find((function(t){return t.name===e}))&&a.unshift({label:e,value:e}),a}},{key:"render",value:function(){var e=this.props,t=(e.cluster,(0,i.default)(e,["cluster"]));return!t.value&&t.defaultValue&&(t.value=t.defaultValue),h.default.createElement(y.Select,(0,o.default)({options:this.getProjects(),pagination:(0,g.default)(this.projectStore.list,["page","limit","total"]),isLoading:this.projectStore.list.isLoading,valueRenderer:this.optionRenderer,optionRenderer:this.optionRenderer,onFetch:this.fetchProjects,searchable:!0,clearable:!0,disableRemoteSearch:!0,placeholder:" "},t))}}]),r}(h.Component))||u;a.default=D},function(e,t,a){"use strict";a(15);var r=a(157),n=a(20);a(5),a(11),a(18),a(48),a(16),a(4),a(23),a(17),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(45),a(5),a(11),a(18),a(48),a(42),a(16),a(4),a(23),a(57),a(17);var l=n(a(315)),u=n(a(36)),o=n(a(37)),i=n(a(55)),c=n(a(56)),s=n(a(51)),f=a(186),d=n(a(321)),p=r(a(0)),m=a(52),h=a(72),v=n(a(2602));function g(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,s.default)(e);if(t){var n=(0,s.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,c.default)(this,a)}}var y=function(e){(0,i.default)(a,e);var t=g(a);function a(){var e;(0,u.default)(this,a);for(var r=arguments.length,n=new Array(r),o=0;o2&&void 0!==arguments[2]&&arguments[2],n=(0,d.default)(e.props.clustersDetail,"name"),u=e.props.children,o=n[t.name]||t;return p.default.createElement("span",{className:r?v.default.tagItem:"",title:(0,m.getDisplayNameNew)(o,!1),key:"".concat(o.name,"-").concat(a)},p.default.createElement(f.Tag,{key:o.name,type:r?"info":h.CLUSTER_GROUP_TAG_TYPE[o.group]},p.default.createElement(f.Icon,(0,l.default)({name:h.CLUSTER_PROVIDER_ICON[o.provider]||"kubernetes",size:16},"default"!==h.CLUSTER_GROUP_TAG_TYPE[o.group]||r?{}:{type:"light"})),u?u(o):(0,m.getDisplayNameNew)(o)))},e.renderItem1=function(t,a){return e.renderItem(t,a,!1)},e.renderTooltip=function(t,a){return e.renderItem(t,a,!0)},e}return(0,o.default)(a,[{key:"render",value:function(){var e=this.props.clusters,t=void 0===e?[]:e,a=(0,d.default)(this.props.clustersDetail,"name"),r=t.filter((function(e){return a[e.name]})),n=r.slice(2),l=r.slice(0,2);return p.default.createElement("div",{className:v.default.wrapper},p.default.createElement("div",{className:v.default.tags},l.map(this.renderItem1),n.length?p.default.createElement(f.Tooltip,{content:p.default.createElement("div",{className:"flexbox items-center ".concat(v.default.tooltipContent)},n.map(this.renderTooltip))},p.default.createElement(f.Tag,{type:"primary"},r.length)):null,0===r.length&&"-"))}}]),a}(p.Component);t.default=y},function(e,t,a){"use strict";var r=a(20);a(12),a(5),a(11),a(6),a(18),a(16),a(27),a(9),a(13),a(10),a(4),a(23),a(17),a(7),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(12),a(45),a(5),a(11),a(6),a(160),a(18),a(28),a(42),a(16),a(27),a(34),a(15),a(9),a(13),a(10),a(4),a(22),a(23),a(57),a(17),a(7);var n=r(a(43)),l=r(a(61)),u=r(a(30)),o=r(a(58));a(41);var i,c,s,f,d=r(a(44)),p=r(a(65)),m=r(a(36)),h=r(a(37)),v=r(a(88)),g=r(a(55)),y=r(a(56)),E=r(a(51)),b=r(a(49)),_=(r(a(66)),r(a(189))),O=a(14);function S(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function C(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};return"".concat(e.apiVersion).concat(e.getPath(t),"/gitrepositories").concat(t.dryRun?"?dryRun=All":"")},e.getResourceUrl=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return"".concat(e.apiVersion).concat(e.getPath(t),"/gitrepositories")},e.getDetailUrl=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return"".concat(e.getListUrl(t),"/").concat(t.name)},(0,p.default)(e,"setSelectRowKeys",f,(0,v.default)(e)),e}return(0,h.default)(E,[{key:"getPath",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.namespace,a=e.cluster,r="";return a&&(r+="/klusters/".concat(a)),t&&(r+="/namespaces/".concat(t)),r}},{key:"fetchList",value:(i=(0,d.default)(n.default.mark((function e(){var t,a,r,u,i,c,s,f,d=this,p=arguments;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=p.length>0&&void 0!==p[0]?p[0]:{},a=t.devops,t.workspace,r=t.cluster,u=t.more,i=(0,o.default)(t,["devops","workspace","cluster","more"]),this.list.isLoading=!0,i.limit!==1/0&&-1!==i.limit||(i.limit=-1,i.page=1),i.limit=i.limit||10,c="".concat(this.getResourceUrl({namespace:a,cluster:r})),e.next=7,request.get(c,C({},i),{},(function(){return[]}));case 7:return s=e.sent,f=Array.isArray(s.items)?s.items.map((function(e){return C({},d.mapper(C(C({},e),{},{devops:a})))})):[],this.list.update(C(C({data:u?[].concat((0,l.default)(this.list.data),(0,l.default)(f)):f,total:s.totalItems||s.total_count||f.length||0},i),{},{limit:Number(i.limit)||10,page:Number(i.page)||1,isLoading:!1},this.list.silent?{}:{selectedRowKeys:[]})),e.abrupt("return",f);case 11:case"end":return e.stop()}}),e,this)}))),function(){return i.apply(this,arguments)})},{key:"create",value:(u=(0,d.default)(n.default.mark((function e(t){var a,r,l,u,o;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=t.data,r=t.devops,l=t.cluster,u="".concat(this.getResourceUrl({namespace:r,cluster:l})),e.next=4,request.post(u,a);case 4:return o=e.sent,e.abrupt("return",o);case 6:case"end":return e.stop()}}),e,this)}))),function(e){return u.apply(this,arguments)})},{key:"edit",value:(r=(0,d.default)(n.default.mark((function e(t){var a,r,l,u,o;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=t.data,r=t.devops,l=t.name,u=t.cluster,o="".concat(this.getResourceUrl({namespace:r,cluster:u}),"/").concat(l),e.abrupt("return",this.submitting(request.put(o,a)));case 3:case"end":return e.stop()}}),e,this)}))),function(e){return r.apply(this,arguments)})},{key:"update",value:(a=(0,d.default)(n.default.mark((function e(t,a){var r;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r="".concat(this.getResourceUrl({namespace:t.devops,cluster:t.cluster}),"/").concat(a.metadata.name),e.abrupt("return",this.submitting(request.put(r,a)));case 2:case"end":return e.stop()}}),e,this)}))),function(e,t){return a.apply(this,arguments)})},{key:"delete",value:function(e){var t=(0,_.default)(C(C({},e),{},{namespace:e.devops}),"devops");return this.submitting(request.delete(this.getDetailUrl(t)))}},{key:"fetchDetail",value:(t=(0,d.default)(n.default.mark((function e(t){var a,r,l;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a="".concat(this.getResourceUrl({namespace:t.devops,cluster:t.cluster}),"/").concat(t.name),e.next=3,this.submitting(request.get(a),null,null,(function(){return{}}));case 3:return r=e.sent,l=this.mapper(r),this.detail=l,e.abrupt("return",l);case 7:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})}]),E}(r(a(68)).default),c=(0,b.default)(i.prototype,"list",[O.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{data:[],page:1,limit:10,total:0,order:"",filters:{},isLoading:!1,selectedRowKeys:[]}}}),s=(0,b.default)(i.prototype,"detail",[O.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),f=(0,b.default)(i.prototype,"setSelectRowKeys",[O.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(t){e.list.selectedRowKeys=t}}}),(0,b.default)(i.prototype,"fetchList",[O.action],Object.getOwnPropertyDescriptor(i.prototype,"fetchList"),i.prototype),(0,b.default)(i.prototype,"create",[O.action],Object.getOwnPropertyDescriptor(i.prototype,"create"),i.prototype),(0,b.default)(i.prototype,"edit",[O.action],Object.getOwnPropertyDescriptor(i.prototype,"edit"),i.prototype),(0,b.default)(i.prototype,"update",[O.action],Object.getOwnPropertyDescriptor(i.prototype,"update"),i.prototype),(0,b.default)(i.prototype,"delete",[O.action],Object.getOwnPropertyDescriptor(i.prototype,"delete"),i.prototype),(0,b.default)(i.prototype,"fetchDetail",[O.action],Object.getOwnPropertyDescriptor(i.prototype,"fetchDetail"),i.prototype),i);t.default=k},function(e,t,a){"use strict";a(15);var r=a(20);a(5),a(18),a(16),a(9),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(5),a(18),a(16),a(9),a(4),a(22);var n=r(a(43)),l=r(a(58));a(41);var u,o,i=r(a(44)),c=r(a(65)),s=r(a(36)),f=r(a(37)),d=r(a(49)),p=(r(a(66)),r(a(1344))),m=a(14),h=r(a(105)),v=(u=function(){function e(){(0,s.default)(this,e),(0,c.default)(this,"list",o,this)}var t;return(0,f.default)(e,[{key:"fetchList",value:(t=(0,i.default)(n.default.mark((function e(t){var a,r,u,o,i,c;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.name,a=t.cluster,r=t.namespace,u=(0,l.default)(t,["name","cluster","namespace"]),this.list.isLoading=!0,o=a?"/klusters/".concat(a):"",i=r?"/namespaces/".concat(r):"",e.next=6,request.get("api/v1".concat(o).concat(i,"/events"),u);case 6:c=e.sent,this.list={data:(0,p.default)(c.items.map(h.default.events),"lastTimestamp"),total:c.items.length,isLoading:!1};case 8:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})}]),e}(),o=(0,d.default)(u.prototype,"list",[m.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{data:[],page:1,limit:10,total:0,isLoading:!0}}}),(0,d.default)(u.prototype,"fetchList",[m.action],Object.getOwnPropertyDescriptor(u.prototype,"fetchList"),u.prototype),u);t.default=v},function(e,t,a){"use strict";var r=a(20);a(12),a(109),a(5),a(11),a(6),a(84),a(18),a(16),a(27),a(9),a(13),a(10),a(4),a(23),a(24),a(17),a(85),a(136),a(7),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(12),a(109),a(45),a(5),a(11),a(6),a(84),a(160),a(18),a(28),a(191),a(42),a(16),a(159),a(27),a(34),a(15),a(9),a(13),a(10),a(4),a(22),a(23),a(57),a(17),a(85),a(7);var n=r(a(246)),l=r(a(43)),u=r(a(61)),o=r(a(30)),i=r(a(58));a(41);var c,s,f,d,p=r(a(44)),m=r(a(65)),h=r(a(36)),v=r(a(37)),g=r(a(88)),y=r(a(55)),E=r(a(56)),b=r(a(51)),_=r(a(49)),O=(r(a(66)),r(a(74))),S=r(a(26)),C=r(a(63)),D=r(a(76)),k=r(a(242)),N=r(a(158)),T=a(14),R=a(440),w=a(72),I=r(a(435)),M=r(a(323));function P(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function A(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},a="".concat(e.getBaseUrl(t),"credentials");return t.name?"".concat(a,"/").concat(t.name):a},e}return(0,v.default)(b,[{key:"setParams",value:function(e){this.params=e}},{key:"fetchList",value:(c=(0,p.default)(l.default.mark((function e(){var t,a,r,n,o,c,s,f=this,d=arguments;return l.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=d.length>0&&void 0!==d[0]?d[0]:{},a=t.devops,r=t.cluster,n=(0,i.default)(t,["devops","cluster"]),this.list.isLoading=!0,n.limit===1/0||-1===n.limit?(n.limit=-1,n.page=1):n.limit=n.limit||10,o=n.more||!1,(0,k.default)(n,"more"),n.sortBy=n.sortBy||"createTime",e.next=8,request.get(this.getResourceUrl({devops:a,cluster:r}),A({},n));case 8:return c=e.sent,s=Array.isArray(c.items)?c.items.filter((function(e){return w.CREDENTIAL_TYPE_LIST.includes(e.type)})).map((function(e){return(e=f.mapper(e)).type=w.CREDENTIAL_DISPLAY_KEY[e.type.split("/")[1]],e})):[],this.list.update({data:o?[].concat((0,u.default)(this.list.data),(0,u.default)(s)):s,total:c.totalItems||s.length||0,filters:n,limit:Number(n.limit)||10,page:Number(n.page)||1,isLoading:!1}),e.abrupt("return",s);case 12:case"end":return e.stop()}}),e,this)}))),function(){return c.apply(this,arguments)})},{key:"handleCreate",value:(o=(0,p.default)(l.default.mark((function e(t,a){var r,n,u,o,i;return l.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=a.devops,n=a.cluster,u=I.default[this.module]({namespace:r}),o=(0,S.default)(t,t.type,{}),i=o.id||t.id,(0,O.default)(u,"metadata.labels.app",i),(0,O.default)(u,'metadata.annotations["kubesphere.io/description"]',t.description),(0,O.default)(u,"metadata.name",i),delete t.description,o.id&&delete o.id,!(0,C.default)(o)&&(0,D.default)(o)&&Object.keys(o).forEach((function(e){o[e]&&(o[e]=(0,R.safeBtoa)(o[e]))})),delete t[t.type],u.data=A({},o),u.type="credential.devops.kubesphere.io/".concat(w.CREDENTIAL_KEY[t.type]),e.next=15,request.post(this.getResourceUrl({devops:r,cluster:n}),u,null,null);case 15:return e.abrupt("return",e.sent);case 16:case"end":return e.stop()}}),e,this)}))),function(e,t){return o.apply(this,arguments)})},{key:"fetchDetail",value:(r=(0,p.default)(l.default.mark((function e(t){var a,r,n,u,o,i;return l.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(0,N.default)(t)||(0,C.default)(t)||(this.params=t),a=this.params,r=a.devops,n=a.credential_id,u=a.cluster,e.next=4,request.get("".concat(this.getResourceUrl({devops:r,name:n,cluster:u}),"?content=1"));case 4:o=e.sent,(i=this.mapper(o)).display_name=i.name,i.id=i.name,i.type=w.CREDENTIAL_DISPLAY_KEY[i.type.split("/")[1]],this.detail=i,this.isLoading=!1;case 11:case"end":return e.stop()}}),e,this)}))),function(e){return r.apply(this,arguments)})},{key:"updateCredential",value:(a=(0,p.default)(l.default.mark((function e(t,a){var r,u,o,i,c;return l.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=a.devops,u=a.cluster,o=t[t.type],i=t.description,c=t._originData,"{}"!==JSON.stringify(o)&&"object"===(0,n.default)(o)&&Object.keys(o).forEach((function(e){o[e]=(0,R.safeBtoa)(o[e])})),(0,O.default)(c,"data",o),(0,O.default)(c,'metadata.annotations["kubesphere.io/description"]',i),e.next=9,request.put("".concat(this.getResourceUrl({devops:r,name:t.name,cluster:u}),"?content=1"),c);case 9:return e.abrupt("return",e.sent);case 10:case"end":return e.stop()}}),e,this)}))),function(e,t){return a.apply(this,arguments)})},{key:"delete",value:(t=(0,p.default)(l.default.mark((function e(t){var a,r,n,u;return l.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=t.id,r=this.params,n=r.devops,u=r.cluster,e.next=4,request.delete("".concat(this.getResourceUrl({devops:n,name:a,cluster:u})));case 4:return e.abrupt("return",e.sent);case 5:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})},{key:"checkName",value:function(e){return request.get(this.getResourceUrl(e),{},{headers:{"x-check-exist":!0}})}},{key:"apiVersion",get:function(){return w.API_VERSIONS.devops}}]),b}(M.default),s=(0,_.default)(c.prototype,"list",[T.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{data:[],page:1,limit:10,total:0,order:"",reverse:!1,filters:{},isLoading:!0}}}),f=(0,_.default)(c.prototype,"detail",[T.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),d=(0,_.default)(c.prototype,"params",[T.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),(0,_.default)(c.prototype,"setParams",[T.action],Object.getOwnPropertyDescriptor(c.prototype,"setParams"),c.prototype),(0,_.default)(c.prototype,"fetchList",[T.action],Object.getOwnPropertyDescriptor(c.prototype,"fetchList"),c.prototype),(0,_.default)(c.prototype,"handleCreate",[T.action],Object.getOwnPropertyDescriptor(c.prototype,"handleCreate"),c.prototype),(0,_.default)(c.prototype,"fetchDetail",[T.action],Object.getOwnPropertyDescriptor(c.prototype,"fetchDetail"),c.prototype),(0,_.default)(c.prototype,"updateCredential",[T.action],Object.getOwnPropertyDescriptor(c.prototype,"updateCredential"),c.prototype),(0,_.default)(c.prototype,"delete",[T.action],Object.getOwnPropertyDescriptor(c.prototype,"delete"),c.prototype),(0,_.default)(c.prototype,"checkName",[T.action],Object.getOwnPropertyDescriptor(c.prototype,"checkName"),c.prototype),c);t.default=L},,,,,,,,,,,function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var l=n(r(315)),u=n(r(58)),o=n(r(30)),i=n(r(36)),c=n(r(37)),s=n(r(55)),f=n(r(56)),d=n(r(51));r(45),r(5),r(42),r(4),r(23),r(57),r(24),r(193),r(17);var p=n(r(0)),m=n(r(63)),h=r(186),v=n(r(3)),g=r(72),y=n(r(2922));function E(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,d.default)(e);if(t){var n=(0,d.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,f.default)(this,a)}}var b=/(?=.*?[A-Z])(?=.*?[a-z])/,_=/(?=.*?[~!@#$%^&*()\-_=+\\|\[\{\}\];:'",<.>/? ])/,O=/(?=.*?[0-9])/,S=function(e){if((0,m.default)(e))return-1;var t=0;return b.test(e)&&(t+=4),O.test(e)&&(t+=2),_.test(e)&&(t+=2),e.length>=6&&e<12?t+=2:e.length>=12&&(t+=4),g.PATTERN_PASSWORD.test(e)?t:0},C=function(e){(0,s.default)(r,e);var a=E(r);function r(){var e;(0,i.default)(this,r);for(var t=arguments.length,n=new Array(t),l=0;l-1})}},e.handleDropdownClose=function(t){t&&t.target&&e.ref&&e.ref.current&&e.ref.current.contains(t.target)?e.setState({showTip:!0}):e.setState({showTip:!1})},e.handleInputClick=function(){var t=e.state.strength;e.setState({showTip:t>-1})},e.handleInputBlur=function(){e.setState({showTip:!1})},e.getColor=function(){var t=e.state.strength;return-1===t?{width:0,backgroundColor:"#fff"}:t>=0&&t<6?{width:"33%",backgroundColor:"#ca2621"}:t>=6&&t<8?{width:"66%",backgroundColor:"#f5a623"}:t>=8?{width:"100%",backgroundColor:"#55bc8a"}:void 0},e}return(0,c.default)(r,[{key:"renderStrengthContent",value:function(){var e=this.props.value,a=void 0===e?"":e;return p.default.createElement("div",{className:y.default.content},p.default.createElement("p",null,t("PASSWORD_MUST")),p.default.createElement("ul",{className:y.default.rules},p.default.createElement("li",null,p.default.createElement(h.Icon,{className:(0,v.default)(y.default.icon,(0,o.default)({},y.default.selected,b.test(a))),name:"check",size:12,type:"light"}),t("PASSWORD_LETTER")),p.default.createElement("li",null,p.default.createElement(h.Icon,{className:(0,v.default)(y.default.icon,(0,o.default)({},y.default.selected,O.test(a))),name:"check",size:12,type:"light"}),t("PASSWORD_NUMBER")),p.default.createElement("li",null,p.default.createElement(h.Icon,{className:(0,v.default)(y.default.icon,(0,o.default)({},y.default.selected,_.test(a))),name:"check",size:12,type:"light"}),t("PASSWORD_CHARACTERS")),p.default.createElement("li",null,p.default.createElement(h.Icon,{className:(0,v.default)(y.default.icon,(0,o.default)({},y.default.selected,a.length>=8)),name:"check",size:12,type:"light"}),t("PASSWORD_LENGTH"))),p.default.createElement("p",null,t("PASSWORD_STRENGTH"),":"),p.default.createElement("div",{className:y.default.barWrapper},p.default.createElement("div",{className:y.default.bar,style:this.getColor()})),p.default.createElement("p",{className:y.default.tip},t("PASSWORD_STRENGTH_DESC")))}},{key:"render",value:function(){var e=this.props,t=e.withStrength,a=e.tipClassName,r=(0,u.default)(e,["withStrength","tipClassName"]),n=this.state,o=n.showTip,i=n.strength;return t?p.default.createElement("div",{className:y.default.wrapper,ref:this.ref},p.default.createElement(h.Dropdown,{className:a,visible:o&&i>-1,content:this.renderStrengthContent(),placement:"bottomRight",closeAfterClick:!1,onClose:this.handleDropdownClose},p.default.createElement("div",{className:y.default.trigger})),p.default.createElement(h.InputPassword,(0,l.default)({},r,{onChange:this.handleChange,onBlur:this.handleInputBlur,onClick:this.handleInputClick}))):p.default.createElement(h.InputPassword,r)}}]),r}(p.default.Component);a.default=C},function(e,a,r){"use strict";r(15);var n=r(20);r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(42),r(4),r(23),r(57),r(17);var l=n(r(315)),u=n(r(58)),o=n(r(36)),i=n(r(37)),c=n(r(55)),s=n(r(56)),f=n(r(51)),d=n(r(0)),p=n(r(1)),m=n(r(63)),h=n(r(787)),v=n(r(2973)),g=n(r(2975));function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,f.default)(e);if(t){var n=(0,f.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,s.default)(this,a)}}var E=function(e){(0,c.default)(r,e);var a=y(r);function r(){return(0,o.default)(this,r),a.apply(this,arguments)}return(0,i.default)(r,[{key:"render",value:function(){var e=this.props,a=e.visible,r=e.title,n=e.module,o=e.store,i=e.forms,c=e.onOk,s=e.onCancel,f=e.cluster,p=e.namespace,m=(0,u.default)(e,["visible","title","module","store","forms","onOk","onCancel","cluster","namespace"]);return d.default.createElement(h.default,(0,l.default)({width:1162,bodyClassName:g.default.body,title:t(r),visible:a,onCancel:s,hideFooter:!0},m),d.default.createElement(v.default,(0,l.default)({},m,{module:n,store:o,forms:i,cluster:f,namespace:p,data:this.formData,onSubmit:c,onCancel:s})))}},{key:"formData",get:function(){var e=this.props,t=e.detail,a=e.formData;return(0,m.default)(a)?t:a}}]),r}(d.default.Component);a.default=E,E.propTypes={visible:p.default.bool,title:p.default.string,module:p.default.string,store:p.default.object,forms:p.default.array,formData:p.default.object,detail:p.default.object,onOk:p.default.func,onCancel:p.default.func},E.defaultProps={visible:!1,title:"EDIT",store:{},forms:[],formData:{},detail:{},onCancel:function(){}}},,function(e,a,r){"use strict";var n=r(20);r(12),r(5),r(11),r(6),r(16),r(9),r(13),r(10),r(4),r(23),r(17),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(45),r(5),r(11),r(6),r(28),r(42),r(16),r(34),r(15),r(9),r(13),r(10),r(4),r(23),r(57),r(17),r(7);var l,u,o,i,c,s,f,d=n(r(30)),p=n(r(65)),m=n(r(36)),h=n(r(37)),v=n(r(88)),g=n(r(55)),y=n(r(56)),E=n(r(51)),b=n(r(49)),_=(n(r(66)),n(r(3))),O=n(r(1171)),S=n(r(1102)),C=n(r(26)),D=n(r(63)),k=r(14),N=r(239),T=n(r(0)),R=n(r(1733)),w=n(r(3269)),I=n(r(3273)),M=n(r(3320));function P(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function A(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,E.default)(e);if(t){var n=(0,E.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,y.default)(this,a)}}var j={json:{pipeline:{stages:[],agent:{type:"any"}}}},L=(0,N.observer)((f=s=function(e){(0,g.default)(r,e);var a=A(r);function r(e){var t;if((0,m.default)(this,r),t=a.call(this,e),(0,p.default)(t,"clearFocus",o,(0,v.default)(t)),(0,p.default)(t,"handleContinue",i,(0,v.default)(t)),(0,p.default)(t,"handleDiscard",c,(0,v.default)(t)),t.state={},e.isEditMode){t.store=new M.default,t.store.params=e.params;var n=e.params,l=n.devops,u=n.name,s=n.cluster;t.prevData=JSON.parse(localStorage.getItem("".concat(globals.user.username,"-").concat(l,"-").concat(u))),t.store.fetchLabel({cluster:s}),(0,D.default)(e.jsonData)?t.store.setData(t.prevData||j):(t.store.jsonData=function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};return"".concat(e.apiVersion).concat(e.getPath(t),"/").concat(e.getAlertPath(t)).concat(t.dryRun?"?dryRun=All":"")},e.getResourceUrl=e.getListUrl,e.getFilterParams=function(e){var t=C({},e),a=[];return t["labels.severity"]&&(a.push("severity=".concat(t["labels.severity"])),delete t["labels.severity"]),t["labels.alertname"]&&(a.push("alertname~".concat(t["labels.alertname"])),delete t["labels.alertname"]),a.length>0&&(t.label_filters=a.join(",")),t},e.getParamsType=function(e){var t={};return e.cluster&&("builtin"===e.type?t.builtin=!0:t.builtin=!1),t},e}return(0,m.default)(o,[{key:"getPath",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.cluster,a=e.namespace,r="";return t&&(r+="/clusters/".concat(t)),a&&(r+="/namespaces/".concat(a)),r}},{key:"fetchList",value:(a=(0,s.default)(n.default.mark((function e(){var t,a,r,o,i,c,s,f,d,p,m,h=this,v=arguments;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=v.length>0&&void 0!==v[0]?v[0]:{},a=t.cluster,r=t.workspace,o=t.namespace,i=t.more,c=t.ruleName,s=t.type,f=(0,u.default)(t,["cluster","workspace","namespace","more","ruleName","type"]),this.list.isLoading=!0,f.sortBy||void 0!==f.ascending||(f.sortBy=O.LIST_DEFAULT_ORDER[this.module]||"createTime"),f.limit!==1/0&&-1!==f.limit||(f.limit=-1,f.page=1),f.limit=f.limit||10,"builtin"===s&&(f.builtin=!0),e.next=8,request.get(this.getResourceUrl({cluster:a,workspace:r,namespace:o,ruleName:c,type:s}),C(C({},this.getFilterParams(f)),this.getParamsType({cluster:a,type:s})));case 8:return d=e.sent,p=((0,b.default)(d,"items")||[]).map((function(e,t){return C({cluster:a,namespace:o,id:t},h.mapper(e))})),m=d.totalItems,this.list.update(C(C({data:i?[].concat((0,l.default)(this.list.data),(0,l.default)(p)):p,total:m},f),{},{limit:Number(f.limit)||10,page:Number(f.page)||1,isLoading:!1},this.list.silent?{}:{selectedRowKeys:[]})),e.abrupt("return",p);case 13:case"end":return e.stop()}}),e,this)}))),function(){return a.apply(this,arguments)})},{key:"fetchCount",value:(t=(0,s.default)(n.default.mark((function e(t){var a,r,l;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=t.cluster,r=t.namespace,e.next=3,Promise.all([request.get(this.getResourceUrl({cluster:a,namespace:r}),{page:1,limit:1,builtin:!1}),request.get(this.getResourceUrl({cluster:a,namespace:r,type:"builtin"}),{page:1,limit:1,builtin:!0})]);case 3:l=e.sent,this.ruleCount=(0,b.default)(l,"0.totalItems",0),this.builtinRuleCount=(0,b.default)(l,"1.totalItems",0);case 6:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})},{key:"apiVersion",get:function(){return"proxy-api/proxy/alerting.kubesphere.io/v2beta1/"}}]),o}(r(a(68)).default),i=(0,E.default)(o.prototype,"ruleCount",[_.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),c=(0,E.default)(o.prototype,"builtinRuleCount",[_.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),(0,E.default)(o.prototype,"fetchList",[_.action],Object.getOwnPropertyDescriptor(o.prototype,"fetchList"),o.prototype),(0,E.default)(o.prototype,"fetchCount",[_.action],Object.getOwnPropertyDescriptor(o.prototype,"fetchCount"),o.prototype),o);t.default=k},function(e,t,a){"use strict";a(15);var r=a(20);a(6),a(87),a(137),a(9),a(10),a(7),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(6),a(87),a(191),a(159),a(137),a(9),a(10),a(4),a(22),a(7);var n=r(a(43));a(41);var l,u,o,i,c,s,f,d,p,m,h,v,g=r(a(44)),y=r(a(65)),E=r(a(36)),b=r(a(37)),_=r(a(49)),O=(r(a(66)),a(14)),S=r(a(63)),C=r(a(26)),D=r(a(902)),k=r(a(74)),N=a(52),T=a(909),R=(l=function(){function e(){var t=this,a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,E.default)(this,e),(0,y.default)(this,"page",u,this),(0,y.default)(this,"data",o,this),(0,y.default)(this,"total_page",i,this),(0,y.default)(this,"total",c,this),(0,y.default)(this,"isLoading",s,this),(0,y.default)(this,"limit",f,this),(0,y.default)(this,"sort_metric",d,this),(0,y.default)(this,"sort_type",p,this),(0,y.default)(this,"changeSortType",m,this),(0,y.default)(this,"changeSortMetric",h,this),(0,y.default)(this,"changePagination",v,this),this.download=function(e){var a=JSON.stringify(t.data,null,2),r=new Blob([a],{type:"text/plain;charset=utf-8"});(0,T.saveAs)(r,e)},this.handleResult=function(e){var t=(0,C.default)(e,"results",[]);return(0,S.default)(t)?[]:t.reduce((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=t.metric_name,r=(0,C.default)(t,"data.result")||[];return r.forEach((function(t,r){var n=e[r]||{},l=(0,C.default)(t,"value",[]),u=(0,C.default)(t,"metric",{});n[a]=l[1],Object.assign(n,u),e[r]=n})),e}),[])},Object.keys(a).forEach((function(e){return(0,k.default)(t,e,a[e])}))}var t;return(0,b.default)(e,[{key:"fetchAll",value:(t=(0,g.default)(n.default.mark((function e(){var t,a,r,l,u=arguments;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=u.length>0&&void 0!==u[0]?u[0]:{},this.isLoading=!0,a={type:this.rankRequestTag,metrics_filter:this.metrics_filter,page:this.page,limit:this.limit,sort_type:this.sort_type,sort_metric:this.sort_metric||(0,C.default)(this,"sort_metric_options.[0]")},this.cluster&&(a.cluster=this.cluster),this.namespaces&&(a.namespace=this.namespaces),this.kind&&(a.workload_kind=this.kind),this.workspace&&(a.workspace=this.workspace),e.next=9,(0,N.to)(request.get(this.fetchUrl,(0,D.default)(a,t)));case 9:return r=e.sent,l=this.handleResult(r),this.total_page=r.total_page,this.total=r.total_item,this.data=l,this.isLoading=!1,e.abrupt("return",l);case 16:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})},{key:"apiVersion",get:function(){return"kapis/monitoring.kubesphere.io/v1beta1"}},{key:"fetchUrl",get:function(){return"nodes"===this.resource?"".concat(this.apiVersion,"/node_metrics"):"pods"===this.resource?"".concat(this.apiVersion,"/pod_metrics"):"workspaces"===this.resource?"".concat(this.apiVersion,"/workspace_metrics"):"namespaces"===this.resource?"".concat(this.apiVersion,"/namespace_metrics"):"clusters"===this.resource?"".concat(this.apiVersion,"/cluster_metrics"):"".concat(this.apiVersion)}},{key:"rankRequestTag",get:function(){return"rank"}},{key:"defaultParams",get:function(){return{type:this.rankRequestTag}}}]),e}(),u=(0,_.default)(l.prototype,"page",[O.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 1}}),o=(0,_.default)(l.prototype,"data",[O.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),i=(0,_.default)(l.prototype,"total_page",[O.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 1}}),c=(0,_.default)(l.prototype,"total",[O.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 1}}),s=(0,_.default)(l.prototype,"isLoading",[O.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),f=(0,_.default)(l.prototype,"limit",[O.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 10}}),d=(0,_.default)(l.prototype,"sort_metric",[O.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),p=(0,_.default)(l.prototype,"sort_type",[O.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return"desc"}}),m=(0,_.default)(l.prototype,"changeSortType",[O.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(t){var a="desc"===e.sort_type?"asc":"desc";e.sort_type=a,e.fetchAll(t)}}}),h=(0,_.default)(l.prototype,"changeSortMetric",[O.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(t,a){e.sort_metric=t,e.fetchAll(a)}}}),v=(0,_.default)(l.prototype,"changePagination",[O.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(t,a){var r=t.page,n=t.limit;e.page=r,e.limit=n,e.fetchAll(a)}}}),(0,_.default)(l.prototype,"fetchAll",[O.action],Object.getOwnPropertyDescriptor(l.prototype,"fetchAll"),l.prototype),l);t.default=R},function(e,t,a){"use strict";a(15);var r=a(20);a(73),a(4),a(23),a(17),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(45),a(73),a(42),a(4),a(23),a(57),a(17);var n,l,u,o=r(a(65)),i=r(a(36)),c=r(a(37)),s=r(a(88)),f=r(a(55)),d=r(a(56)),p=r(a(51)),m=r(a(49)),h=(r(a(66)),a(14)),v=a(52),g=r(a(1129));function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,p.default)(e);if(t){var n=(0,p.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,d.default)(this,a)}}var E=["namespace_cpu_usage","namespace_memory_usage_wo_cache","namespace_cpu_used_requests_utilisation","namespace_cpu_used_limits_utilisation","namespace_memory_used_requests_utilisation","namespace_memory_used_limits_utilisation","namespace_pvc_bytes_used","namespace_gpu_usage","namespace_gpu_memory_usage","namespace_pod_count","namespace_net_bytes_received","namespace_net_bytes_transmitted"],b=["namespace_memory_usage_wo_cache","namespace_memory_limit_hard","namespace_cpu_usage","namespace_cpu_limit_hard","namespace_gpu_limit_hard","namespace_gpu_usage","namespace_gpu_memory_usage","namespace_pod_count","namespace_pods_hard","namespace_net_bytes_received","namespace_net_bytes_transmitted","namespace_cpu_used_requests_utilisation","namespace_cpu_used_limits_utilisation","namespace_memory_used_requests_utilisation","namespace_memory_used_limits_utilisation","namespace_pvc_bytes_used","namespace_pvc_count"],_=(n=function(e){(0,f.default)(a,e);var t=y(a);function a(e){var r;return(0,i.default)(this,a),r=t.call(this,e),(0,o.default)(r,"sort_metric",l,(0,s.default)(r)),(0,o.default)(r,"changeWorkSpace",u,(0,s.default)(r)),r.sort_metric_options=(0,v.hideGPUByLicense)(e.sort_metric_options||E,r.cluster),r.metrics_filter=(0,v.hideGPUByLicense)(b,r.cluster).join("|"),r}return(0,c.default)(a,[{key:"fetchUrl",get:function(){return"".concat(this.apiVersion,"/namespace_metrics")}}]),a}(g.default),l=(0,m.default)(n.prototype,"sort_metric",[h.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return E[0]}}),u=(0,m.default)(n.prototype,"changeWorkSpace",[h.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(t){e.workspace=t,e.fetchAll()}}}),n);t.default=_},function(e,a,r){"use strict";r(15);var n=r(157),l=r(20);r(16),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var u=l(r(43));r(41);var o=l(r(44)),i=l(r(96));r(16),r(4),r(22);var c=n(r(0)),s=l(r(452)),f=function(e){var a=e.name,r=e.namespace,n=e.cluster,l=(0,c.useState)(!0),f=(0,i.default)(l,2),d=f[0],p=f[1],m=(0,c.useState)(!1),h=(0,i.default)(m,2),v=h[0],g=h[1],y=function(){var e=(0,o.default)(u.default.mark((function e(){var t,l;return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=new s.default,p(!0),e.next=4,t.fetchList({cluster:n,namespace:r,pvcName:a});case 4:l=e.sent,g(l.length>0),p(!1);case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();(0,c.useEffect)((function(){y()}),[]);var E=v?t("MOUNTED"):t("NOT_MOUNTED");return d?"":c.default.createElement("span",null,E)};a.default=f},function(e,t,a){"use strict";a(15);var r=a(20);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ClusterResourceStatus",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(t,"ServiceComponentStatus",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"ETCDStatus",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"ETCDNodes",{enumerable:!0,get:function(){return o.default}});var n=r(a(3805)),l=r(a(3808)),u=r(a(3811)),o=r(a(3814))},function(e,t,a){"use strict";a(15);var r=a(20);a(5),a(9),a(4),a(316),a(23),a(24),a(17),a(64),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(45),a(5),a(42),a(9),a(4),a(316),a(22),a(23),a(57),a(24),a(17),a(64);var n=r(a(58)),l=r(a(43));a(41);var u,o,i,c=r(a(44)),s=r(a(65)),f=r(a(36)),d=r(a(37)),p=r(a(88)),m=r(a(55)),h=r(a(56)),v=r(a(51)),g=r(a(49)),y=(r(a(66)),a(14)),E=r(a(26)),b=a(52),_=r(a(845)),O=r(a(323));function S(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,v.default)(e);if(t){var n=(0,v.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,h.default)(this,a)}}var C=(u=function(e){(0,m.default)(h,e);var t,a,r,u=S(h);function h(){var e;(0,f.default)(this,h);for(var t=arguments.length,a=new Array(t),r=0;r1&&void 0!==c[1]?c[1]:{},r=a.cluster,this.statistics.isLoading=!0,n={type:"statistics"},u=this.getApi({workspace:t,cluster:r}),e.next=6,(0,b.to)(request.get(u,n));case 6:return o=e.sent,i=this.getResult(o),this.statistics={data:i,isLoading:!1},e.abrupt("return",i);case 10:case"end":return e.stop()}}),e,this)}))),function(e){return r.apply(this,arguments)})},{key:"getDevopsCount",value:(a=(0,c.default)(l.default.mark((function e(t){var a,r,n;return l.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=new O.default,e.next=3,request.get(a.getBaseUrl({workspace:t}),{paging:"limit=Infinity"});case 3:return r=e.sent,n=r&&r.items.length>0?r.items.length:0,e.abrupt("return",n);case 6:case"end":return e.stop()}}),e)}))),function(e){return a.apply(this,arguments)})},{key:"fetchApplicationResourceMetrics",value:(t=(0,c.default)(l.default.mark((function e(t){var a,r,u,o,i,c,s,f,d,p;return l.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=t.workspace,r=t.namespace,u=t.autoRefresh,o=void 0!==u&&u,i=(0,n.default)(t,["workspace","namespace","autoRefresh"]),o?i.last=!0:this.resourceMetrics.isLoading=!0,i.cluster&&(this.cluster=i.cluster),c=this.getParams(i),s=/^[a-zA-Z]+_/g,f=(0,E.default)(i.metrics,"[0]","").replace(s,"workspace_"),r&&"all"!==r&&(c.metrics_filter="".concat(f.replace(s,"namespace_"),"$")),e.next=9,(0,b.to)(request.get("".concat(this.getApi({cluster:this.cluster,workspace:a,namespace:r})),c));case 9:return d=e.sent,p=this.getResult(d),o&&(p=this.getRefreshResult(p,this.resourceMetrics.originData)),this.resourceMetrics={originData:p,data:(0,E.default)(Object.values(p),"[0].data.result",{}),isLoading:!1},e.abrupt("return",p);case 14:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})}]),h}(_.default),o=(0,g.default)(u.prototype,"statistics",[y.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{data:{},isLoading:!1}}}),i=(0,g.default)(u.prototype,"resourceMetrics",[y.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{originData:{},data:{},isLoading:!1}}}),(0,g.default)(u.prototype,"fetchStatistics",[y.action],Object.getOwnPropertyDescriptor(u.prototype,"fetchStatistics"),u.prototype),(0,g.default)(u.prototype,"getDevopsCount",[y.action],Object.getOwnPropertyDescriptor(u.prototype,"getDevopsCount"),u.prototype),(0,g.default)(u.prototype,"fetchApplicationResourceMetrics",[y.action],Object.getOwnPropertyDescriptor(u.prototype,"fetchApplicationResourceMetrics"),u.prototype),u);t.default=C},function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(31),r(84),r(73),r(18),r(192),r(16),r(98),r(4),r(23),r(24),r(17),r(85),r(62),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(31),r(84),r(73),r(18),r(28),r(192),r(42),r(16),r(98),r(4),r(23),r(57),r(24),r(17),r(85),r(62);var l,u,o,i=n(r(61)),c=n(r(96)),s=n(r(30)),f=n(r(36)),d=n(r(37)),p=n(r(55)),m=n(r(56)),h=n(r(51)),v=n(r(0)),g=r(14),y=r(239),E=r(1818),b=r(186),_=n(r(789)),O=r(52),S=n(r(3)),C=n(r(63)),D=n(r(60)),k=n(r(26)),N=r(791),T=r(72),R=n(r(240)),w=n(r(3863)),I=n(r(3865));function M(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,h.default)(e);if(t){var n=(0,h.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,m.default)(this,a)}}var P=(0,y.inject)("rootStore")(l=(0,y.observer)(l=(0,N.trigger)((o=u=function(e){(0,p.default)(r,e);var a=M(r);function r(){var e;(0,f.default)(this,r);for(var n=arguments.length,l=new Array(n),u=0;u0){var c={step:a,times:Math.floor(i/(60*(0,v.getMinutes)(a)))||1,start:u,end:o,lastTime:""};n.props.onSubmit(c)}else h.default.error({content:t("TIMERANGE_SELECTOR_MSG")})}else h.default.error({content:t("TIMERANGE_SELECTOR_ERROR_MSG")})};var l=new Date,o=new Date(l.valueOf()-36e5);return n.formData={step:e.step,start:e.start?[e.start]:[o],end:e.end?[e.end]:[l]},n}return(0,o.default)(r,[{key:"handlerDateClose",value:function(e){var t=this;return function(a){t.formData[e]=a,t.forceUpdate()}}},{key:"render",value:function(){var e=this.props,a=e.onCancel,r=e.className,n=this.formData,u=n.start,o=n.end;return f.default.createElement("div",{className:(0,p.default)(g.default.custom,r)},f.default.createElement("div",{className:g.default.title},t("CUSTOM_TIME_RANGE")),f.default.createElement(m.Form,{data:this.formData},f.default.createElement(m.Form.Item,{label:t("START_TIME")},f.default.createElement(m.DatePicker,{name:"start",defaultDate:u[0],maxDate:o[0],enableTime:!0,enableSeconds:!0,dateFormat:"Y-m-d H:i:S",onClose:this.handlerStartDateClose})),f.default.createElement(m.Form.Item,{label:t("END_TIME")},f.default.createElement(m.DatePicker,{name:"end",defaultDate:o[0],maxDate:o[0],enableTime:!0,enableSeconds:!0,dateFormat:"Y-m-d H:i:S",onClose:this.handlerEndDateClose})),this.props.showStep&&f.default.createElement(m.Form.Item,{label:t("SAMPLING_INTERVAL")},f.default.createElement(m.Select,{className:g.default.selectBox,defaultValue:"1m",name:"step",options:(0,v.getTimeOptions)(E)})),f.default.createElement("div",{className:(0,p.default)(g.default.actions,(0,l.default)({},g.default.bottom10,!this.props.showStep))},f.default.createElement(m.Button,{onClick:a},t("CANCEL")),f.default.createElement(m.Button,{type:"control",onClick:this.handleOk},t("OK")))))}}]),r}(f.default.Component);a.default=b,b.propTypes={showStep:d.default.bool,step:d.default.string,times:d.default.number,onSubmit:d.default.func,onCancel:d.default.func},b.defaultProps={showStep:!0,step:"10m",times:30,onSubmit:function(){},onCancel:function(){}}},,,function(e,t,a){"use strict";a(15);var r=a(20);a(4),a(23),a(17),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(45),a(42),a(4),a(23),a(57),a(17);var n=r(a(36)),l=r(a(55)),u=r(a(56)),o=r(a(51));function i(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,o.default)(e);if(t){var n=(0,o.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,u.default)(this,a)}}var c=function(e){(0,l.default)(a,e);var t=i(a);function a(){return(0,n.default)(this,a),t.apply(this,arguments)}return a}(r(a(1e3)).default);t.default=c},function(e,t,a){"use strict";a(15);var r=a(20);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(a(1566)),l=r(a(2388));n.default.Form=l.default;var u=n.default;t.default=u},function(e,t,a){"use strict";a(15);var r=a(20);a(5),a(9),a(4),a(23),a(17),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(45),a(5),a(42),a(9),a(4),a(23),a(57),a(17);var n,l,u,o,i,c,s,f,d,p,m,h,v,g,y,E,b,_,O,S,C,D,k=r(a(65)),N=r(a(36)),T=r(a(88)),R=r(a(37)),w=r(a(55)),I=r(a(56)),M=r(a(51)),P=(r(a(66)),r(a(49))),A=r(a(0)),j=a(1),L=r(a(3)),x=r(a(74)),U=a(239),z=a(14),F=a(186),G=a(453),V=r(a(2450));function B(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,M.default)(e);if(t){var n=(0,M.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,I.default)(this,a)}}var Y=(0,U.observer)((D=C=function(e){(0,w.default)(a,e);var t=B(a);function a(e){var r;return(0,N.default)(this,a),(r=t.call(this,e)).handleContainerClick=function(e){Math.abs(r.deltaX)>10||Math.abs(r.deltaY)>10?e.stopPropagation():r.props.onClick(e)},r.fullScreenFlagChange=function(){r.isFullscreen=!r.isFullscreen},(0,k.default)(r,"scale",u,(0,T.default)(r)),(0,k.default)(r,"translateX",o,(0,T.default)(r)),(0,k.default)(r,"translateY",i,(0,T.default)(r)),(0,k.default)(r,"isFullscreen",c,(0,T.default)(r)),(0,k.default)(r,"initialComponent",s,(0,T.default)(r)),(0,k.default)(r,"initialPosition",f,(0,T.default)(r)),(0,k.default)(r,"initialScale",d,(0,T.default)(r)),(0,k.default)(r,"handleWheel",p,(0,T.default)(r)),r.stopPropagation=function(e){e.stopPropagation()},(0,k.default)(r,"handleZoomOut",m,(0,T.default)(r)),(0,k.default)(r,"handleZoomIn",h,(0,T.default)(r)),(0,k.default)(r,"handleNormalSize",v,(0,T.default)(r)),(0,k.default)(r,"handleAutoSize",g,(0,T.default)(r)),(0,k.default)(r,"handleContentMove",y,(0,T.default)(r)),(0,k.default)(r,"handleMouseLeave",E,(0,T.default)(r)),(0,k.default)(r,"handleMouseDown",b,(0,T.default)(r)),(0,k.default)(r,"handleMouseUp",_,(0,T.default)(r)),(0,k.default)(r,"handleChangeScale",O,(0,T.default)(r)),(0,k.default)(r,"toggleFullscreen",S,(0,T.default)(r)),r.initPosition={x:0,y:0},r.lastPosition={x:0,y:0},r.isMoved=!1,r}return(0,R.default)(a,[{key:"getChildContext",value:function(){return{scale:this.scale}}}]),(0,R.default)(a,[{key:"componentDidMount",value:function(){var e=this;if(this.initialComponent(),(0,G.addFullScreenChangeEvents)(this.fullScreenFlagChange),this.container&&this.container.addEventListener("wheel",this.handleWheel),this.content){var t=this.content.getBoundingClientRect(),a=t.left,r=t.top;this.domOffsetX=a,this.domOffsetY=r}this.content&&(this.setStyleReaction=(0,z.reaction)((function(){return e.styles}),(function(){(0,x.default)(e.content,"style.transform",(0,z.toJS)(e.styles).transform)}),{fireImmediately:!0}))}},{key:"componentWillUnmount",value:function(){(0,G.removeFullScreenChangeEvents)(this.fullScreenFlagChange),this.container&&this.container.removeEventListener("wheel",this.handleWheel,!1),this.setStyleReaction&&this.setStyleReaction()}},{key:"render",value:function(){var e=this,t=this.props,a=t.children,r=t.className,n=t.contentClassName,l=t.controlStyle,u=t.enableToggleFullScreen,o=t.onRefresh;return A.default.createElement("div",{className:(0,L.default)(V.default.container,r),onClickCapture:this.handleContainerClick,onMouseLeave:this.handleMouseLeave,onMouseMove:this.handleContentMove,onMouseUp:this.handleMouseUp,onMouseDown:this.handleMouseDown,"data-container":"pipeline",ref:function(t){e.container=t}},A.default.createElement("div",{className:V.default.controls,style:l,onMouseLeave:this.stopPropagation,onMouseMove:this.stopPropagation},u?A.default.createElement("div",{className:V.default.control,onClick:this.toggleFullscreen},A.default.createElement(F.Icon,{name:this.isFullscreen?"minimize":"maximize",clickable:!0})):null,A.default.createElement("div",{className:V.default.control,onClick:this.handleZoomOut},A.default.createElement(F.Icon,{name:"add",clickable:!0})),A.default.createElement("div",{className:V.default.control,onClick:this.handleZoomIn},A.default.createElement(F.Icon,{name:"substract",clickable:!0})),o&&A.default.createElement("div",{className:V.default.control,onClick:o},A.default.createElement(F.Icon,{name:"refresh",clickable:!0}))),A.default.createElement("div",{className:(0,L.default)(V.default.main_content,n),ref:function(t){e.content=t}},a))}},{key:"styles",get:function(){return{transform:"translate3d(".concat(this.translateX,"px, ").concat(this.translateY,"px, 0)\n scale(").concat(this.scale,")")}}}]),a}(A.default.Component),C.defaultProps={onClick:function(){},enableToggleFullScreen:!0,XOffset:0,YOffset:0},C.childContextTypes={scale:j.PropTypes.number},l=D,(0,P.default)(l.prototype,"styles",[z.computed],Object.getOwnPropertyDescriptor(l.prototype,"styles"),l.prototype),u=(0,P.default)(l.prototype,"scale",[z.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 1}}),o=(0,P.default)(l.prototype,"translateX",[z.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 30}}),i=(0,P.default)(l.prototype,"translateY",[z.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 60}}),c=(0,P.default)(l.prototype,"isFullscreen",[z.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),s=(0,P.default)(l.prototype,"initialComponent",[z.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(){e.props.initialScale?e.scale=e.props.initialScale:e.initialScale(),e.initialPosition()}}}),f=(0,P.default)(l.prototype,"initialPosition",[z.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(){var t=e.props,a=t.XOffset,r=t.YOffset;e.translateX=a,e.translateY=r,e.lastPosition={x:e.translateX,y:e.translateY}}}}),d=(0,P.default)(l.prototype,"initialScale",[z.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(){var t=e.container.clientWidth/e.content.clientWidth,a=e.container.clientHeight/e.content.clientHeight,r=Math.min(t,a);e.scale=r>1?1:Math.max(r,.6)}}}),p=(0,P.default)(l.prototype,"handleWheel",[z.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(t){t.preventDefault(),t.stopPropagation();var a=t.deltaY>0?1:-1,r=t.clientY-e.domOffsetY,n=t.clientX-e.domOffsetX,l=-.01*(Math.abs(t.deltaY)>5?5*a:t.deltaY),u=e.scale+l;if(u<1&&u>.2){var o=e.content.clientWidth*e.scale,i=e.content.clientHeight*e.scale;n>e.translateX+o?e.translateX=-l*e.content.clientWidth+e.translateX:n>=e.translateX&&(e.translateX=-l*(n-e.translateX)/e.scale+e.translateX),r>e.translateY+i?e.translateY=-l*e.content.clientHeight+e.translateY:r>=e.translateY&&(e.translateY=-l*(r-e.translateY)/e.scale+e.translateY),e.scale=u,e.lastPosition={x:e.translateX,y:e.translateY},e.isMoved=!0}}}}),m=(0,P.default)(l.prototype,"handleZoomOut",[z.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(){e.scale<1&&(e.scale+=.2,e.isMoved=!0)}}}),h=(0,P.default)(l.prototype,"handleZoomIn",[z.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(){e.scale>.4&&(e.scale-=.2,e.isMoved=!0)}}}),v=(0,P.default)(l.prototype,"handleNormalSize",[z.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(){e.scale=1,e.translateX=30,e.translateY=60,e.lastPosition={x:e.translateX,y:e.translateY}}}}),g=(0,P.default)(l.prototype,"handleAutoSize",[z.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(){e.initialScale(),e.initialPosition()}}}),y=(0,P.default)(l.prototype,"handleContentMove",[z.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(t){e.DragContent&&(e.translateX=t.clientX-e.initPosition.x+e.lastPosition.x,e.translateY=t.clientY-e.initPosition.y+e.lastPosition.y,e.isMoved=!0)}}}),E=(0,P.default)(l.prototype,"handleMouseLeave",[z.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(t){"pipeline"===t.currentTarget.dataset.container&&(e.lastPosition={x:e.translateX,y:e.translateY},e.DragContent=!1)}}}),b=(0,P.default)(l.prototype,"handleMouseDown",[z.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(t){t.preventDefault(),0===t.button&&(e.initPosition={x:t.clientX,y:t.clientY},e.DragContent=!0)}}}),_=(0,P.default)(l.prototype,"handleMouseUp",[z.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(t){e.DragContent&&(e.deltaX=t.clientX-e.initPosition.x,e.deltaY=t.clientY-e.initPosition.y,e.translateX=e.deltaX+e.lastPosition.x,e.translateY=e.deltaY+e.lastPosition.y,e.lastPosition={x:e.translateX,y:e.translateY},e.DragContent=!1)}}}),O=(0,P.default)(l.prototype,"handleChangeScale",[z.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(t){e.scale=t/100}}}),S=(0,P.default)(l.prototype,"toggleFullscreen",[z.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(){var t=e.props.onFullScreen;if(t)return e.fullScreenFlagChange(),t();e.isFullscreen?(0,G.exitFullScreen)(e.container):(0,G.enterFullScreen)(e.container)}}}),n=l))||n;t.default=Y},,function(e,t,a){"use strict";var r=a(20);a(12),a(5),a(11),a(6),a(18),a(16),a(27),a(9),a(13),a(10),a(4),a(22),a(196),a(7),a(110),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(12),a(5),a(11),a(6),a(18),a(28),a(16),a(27),a(34),a(15),a(9),a(13),a(10),a(4),a(22),a(196),a(7),a(110);var n=r(a(43)),l=r(a(30)),u=r(a(58));a(41);var o,i,c,s=r(a(44)),f=r(a(65)),d=r(a(36)),p=r(a(37)),m=r(a(49)),h=(r(a(66)),r(a(26))),v=r(a(74)),g=a(14),y=r(a(105));function E(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function b(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};return"".concat(a.apiVersion).concat(a.getPath(e),"/").concat(a.module)},this.getDetailUrl=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return"".concat(a.getListUrl(e),"/").concat(e.name)},(0,f.default)(this,"submitting",c,this),this.module=r,this.kind=n,this.apiVersion=l}var t,a;return(0,p.default)(e,[{key:"getPath",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.cluster,a=e.namespace,r="";return t&&(r+="/klusters/".concat(t)),a&&(r+="/namespaces/".concat(a)),r}},{key:"fetchList",value:(a=(0,s.default)(n.default.mark((function e(){var t,a,r,l,o,i,c,s,f,d,p=this,m=arguments;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=m.length>0&&void 0!==m[0]?m[0]:{},a=t.cluster,r=t.namespace,l=t.page,o=void 0===l?this.list.page:l,i=t.name,c=(0,u.default)(t,["cluster","namespace","page","name"]),this.list.isLoading=!0,(s=c).limit?this.list.limit=s.limit:s.limit=this.list.limit,this.list.continues[o]&&(s.continue=this.list.continues[o]),i&&(s.fieldSelector="metadata.name=".concat(i)),e.next=8,request.get(this.getListUrl({cluster:a,namespace:r}),s);case 8:return f=e.sent,d=f.items.map((function(e){return b({cluster:a,namespace:r},p.mapper(e))})),this.list.continues[Number(o)+1]=f.metadata.continue,1===o&&(this.list.total=d.length+(f.metadata.remainingItemCount||0)),(0,g.extendObservable)(this.list,{data:d,page:Number(o),name:i}),this.list.isLoading=!1,e.abrupt("return",this.list);case 15:case"end":return e.stop()}}),e,this)}))),function(){return a.apply(this,arguments)})},{key:"update",value:(t=(0,s.default)(n.default.mark((function e(t,a){var r,l;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,request.get(this.getDetailUrl(t));case 2:return r=e.sent,(l=(0,h.default)(r,"metadata.resourceVersion"))&&(0,v.default)(a,"metadata.resourceVersion",l),e.abrupt("return",this.submitting(request.put(this.getDetailUrl(t),a)));case 6:case"end":return e.stop()}}),e,this)}))),function(e,a){return t.apply(this,arguments)})},{key:"patch",value:function(e,t){return this.submitting(request.patch(this.getDetailUrl(e),t))}},{key:"delete",value:function(e){return this.submitting(request.delete(this.getDetailUrl(e)))}},{key:"mapper",get:function(){return y.default.customresourcedefinitions}}]),e}(),i=(0,m.default)(o.prototype,"list",[g.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{data:[],page:1,limit:10,total:0,continues:{1:""},isLoading:!0}}}),c=(0,m.default)(o.prototype,"submitting",[g.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(t){return e.isSubmitting=!0,setTimeout((function(){t.catch((function(){})).finally((function(){e.isSubmitting=!1}))}),500),t}}}),(0,m.default)(o.prototype,"fetchList",[g.action],Object.getOwnPropertyDescriptor(o.prototype,"fetchList"),o.prototype),(0,m.default)(o.prototype,"update",[g.action],Object.getOwnPropertyDescriptor(o.prototype,"update"),o.prototype),(0,m.default)(o.prototype,"patch",[g.action],Object.getOwnPropertyDescriptor(o.prototype,"patch"),o.prototype),(0,m.default)(o.prototype,"delete",[g.action],Object.getOwnPropertyDescriptor(o.prototype,"delete"),o.prototype),o);t.default=_},,function(e,t,a){"use strict";a(15);var r=a(20);a(5),a(16),a(4),a(23),a(17),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(45),a(5),a(42),a(16),a(4),a(22),a(23),a(57),a(17);var n=r(a(43));a(41);var l=r(a(44)),u=r(a(36)),o=r(a(37)),i=r(a(55)),c=r(a(56)),s=r(a(51)),f=a(72);function d(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,s.default)(e);if(t){var n=(0,s.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,c.default)(this,a)}}var p=function(e){(0,i.default)(a,e);var t=d(a);function a(){var e;(0,u.default)(this,a);for(var r=arguments.length,o=new Array(r),i=0;i0&&void 0!==arguments[0]?arguments[0]:{};return"".concat(e.apiVersion).concat(e.getPath(t),"/nodes").concat(t.dryRun?"?dryRun=All":"")},e.getResourceUrl=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return"kapis/resources.kubesphere.io/v1alpha3".concat(e.getPath(t),"/nodes")},e.createEdgeNode=function(){var t=(0,l.default)(n.default.mark((function t(a){var r,l,u,o,i,c;return n.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=a.cluster,l=a.name,u=a.ip,o=a.defaultTaint,i="kapis/kubeedge.kubesphere.io/v1beta1/".concat(e.getPath({cluster:r}),"/nodes/join"),t.next=4,request.get(i,{node_name:l,node_ip:u,add_default_taint:o},{},(function(e){return e}));case 4:return c=t.sent,t.abrupt("return",c);case 6:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),e}return(0,o.default)(a,[{key:"apiVersion",get:function(){return f.API_VERSIONS.nodes||""}}]),a}(r(a(856)).default);t.default=p},function(e,t,a){"use strict";var r=a(20);a(12),a(5),a(11),a(6),a(18),a(16),a(27),a(9),a(13),a(10),a(4),a(23),a(17),a(7),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(12),a(45),a(5),a(11),a(6),a(18),a(28),a(42),a(16),a(27),a(34),a(15),a(9),a(13),a(10),a(4),a(22),a(23),a(57),a(17),a(7);var n=r(a(43)),l=r(a(61)),u=r(a(30)),o=r(a(58));a(41);var i,c=r(a(44)),s=r(a(36)),f=r(a(37)),d=r(a(55)),p=r(a(56)),m=r(a(51)),h=r(a(49)),v=r(a(1173)),g=a(14),y=r(a(26)),E=a(72);function b(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function _(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};return"clusters/".concat(t.cluster,"/").concat(e.getNetworkUrl).concat(e.getPath(t),"/").concat(e.module).concat(t.dryRun?"?dryRun=All":"")},e.getNetDetailUrl=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return"".concat(e.getNetWorkUrl(t),"/").concat(t.name)},e.store=new v.default({module:"ippools",kind:"IPPool",apiVersion:"kapis/crd.projectcalico.org/v1"}),e}return(0,f.default)(p,[{key:"fetchList",value:(u=(0,c.default)(n.default.mark((function e(){var t,a,r,u,i,c,s,f,d,p,m=this,h=arguments;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=h.length>0&&void 0!==h[0]?h[0]:{},a=t.cluster,r=t.workspace,u=t.namespace,i=t.more,c=t.devops,s=(0,o.default)(t,["cluster","workspace","namespace","more","devops"]),this.list.isLoading=!0,s.sortBy||void 0!==s.ascending||(s.sortBy=E.LIST_DEFAULT_ORDER[this.module]||"createTime"),s.limit!==1/0&&-1!==s.limit||(s.page=1),s.limit=s.limit||10,s.page=s.page||1,e.next=8,request.get(this.getNetWorkUrl({cluster:a,workspace:r,namespace:u,devops:c}),this.getFilterParams(s));case 8:return f=e.sent,d=((0,y.default)(f,"items")||[]).map((function(e){return _(_({cluster:a,namespace:u},e),m.mapper(e))})),p=1===s.page?d.length+(f.metadata.remainingItemCount||0):this.list.total,this.list.update(_(_({data:i?[].concat((0,l.default)(this.list.data),(0,l.default)(d)):d,total:p},s),{},{limit:Number(s.limit)||10,page:Number(s.page)||1,isLoading:!1},this.list.silent?{}:{selectedRowKeys:[]})),e.abrupt("return",d);case 13:case"end":return e.stop()}}),e,this)}))),function(){return u.apply(this,arguments)})},{key:"fetchDetail",value:(r=(0,c.default)(n.default.mark((function e(t){var a,r;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.isLoading=!0,e.next=3,request.get(this.getNetDetailUrl(t));case 3:return a=e.sent,r=_(_({},t),this.mapper(a)),this.detail=r,this.isLoading=!1,e.abrupt("return",r);case 8:case"end":return e.stop()}}),e,this)}))),function(e){return r.apply(this,arguments)})},{key:"bindIpPoolToNodeGroup",value:(a=(0,c.default)(n.default.mark((function e(t){var a,r,l,u;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=t.cluster,r=t.nodetree,l=t.params,u="/clusters/".concat(a,"/kapis/infra.kubesphere.io/v1alpha1/nodetrees/").concat(r),e.abrupt("return",request.patch(u,l));case 3:case"end":return e.stop()}}),e)}))),function(e){return a.apply(this,arguments)})},{key:"delIpPoolToNodeGroup",value:(t=(0,c.default)(n.default.mark((function e(t){var a,r,l,u;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=t.cluster,r=t.nodetree,l=t.params,u="/clusters/".concat(a,"/kapis/infra.kubesphere.io/v1alpha1/nodetrees/").concat(r),e.abrupt("return",request.patch(u,l));case 3:case"end":return e.stop()}}),e)}))),function(e){return t.apply(this,arguments)})},{key:"apiVersion",get:function(){return"kapis/crd.projectcalico.org/v1"}}]),p}(r(a(1323)).default),(0,h.default)(i.prototype,"fetchList",[g.action],Object.getOwnPropertyDescriptor(i.prototype,"fetchList"),i.prototype),(0,h.default)(i.prototype,"fetchDetail",[g.action],Object.getOwnPropertyDescriptor(i.prototype,"fetchDetail"),i.prototype),(0,h.default)(i.prototype,"bindIpPoolToNodeGroup",[g.action],Object.getOwnPropertyDescriptor(i.prototype,"bindIpPoolToNodeGroup"),i.prototype),(0,h.default)(i.prototype,"delIpPoolToNodeGroup",[g.action],Object.getOwnPropertyDescriptor(i.prototype,"delIpPoolToNodeGroup"),i.prototype),i);t.default=S},,function(e,a,r){"use strict";r(15);var n=r(20);r(12),r(109),r(5),r(18),r(16),r(10),r(4),r(22),r(196),r(23),r(24),r(17),r(62),r(136),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(109),r(45),r(5),r(18),r(42),r(16),r(10),r(4),r(22),r(196),r(23),r(57),r(24),r(17),r(62);var l=n(r(30)),u=n(r(43));r(41);var o=n(r(44)),i=n(r(36)),c=n(r(37)),s=n(r(55)),f=n(r(56)),d=n(r(51)),p=n(r(0)),m=n(r(26)),h=n(r(74)),v=n(r(3)),g=r(186),y=r(52),E=r(72),b=n(r(851)),_=n(r(456)),O=n(r(933)),S=n(r(1341)),C=n(r(951)),D=n(r(1620)),k=n(r(1622)),N=n(r(2649));function T(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,d.default)(e);if(t){var n=(0,d.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,f.default)(this,a)}}var R=function(e){(0,s.default)(r,e);var a=T(r);function r(e){var n;return(0,i.default)(this,r),(n=a.call(this,e)).fetchData=(0,o.default)(u.default.mark((function e(){var t,a;return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n.secretStore.fetchListByK8s({namespace:n.namespace,cluster:n.props.cluster,fieldSelector:"type=kubernetes.io/basic-auth"});case 2:t=e.sent,a=t.map((function(e){return{label:(0,y.getDisplayName)(e),value:e.name,type:"basic-auth"}})),n.setState({basicSecretOptions:a});case 5:case"end":return e.stop()}}),e)}))),n.fetchImageSecrets=(0,o.default)(u.default.mark((function e(){var t,a;return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n.secretStore.fetchListByK8s({namespace:n.namespace,cluster:n.props.cluster,fieldSelector:"type=kubernetes.io/dockerconfigjson"});case 2:t=e.sent,a=t.map((function(e){var t=(0,m.default)(e,'data[".dockerconfigjson"].auths',{}),a=Object.keys(t)[0]||"";return{label:(0,y.getDisplayName)(e),value:e.name,repoUrl:a,type:"dockerconfigjson"}})),n.setState({imageSecretOptions:a});case 5:case"end":return e.stop()}}),e)}))),n.getTemplateList=(0,o.default)(u.default.mark((function e(){var t;return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n.setState({isGetTemplateListLoading:!0}),e.next=3,n.builderStore.getBuilderTemplate({cluster:n.props.cluster});case 3:t=e.sent,n.setState({builderTemplateLists:(0,m.default)(t,"items",[]),isGetTemplateListLoading:!1});case 5:case"end":return e.stop()}}),e)}))),n.handleImageTemplateChange=function(e){var t=e.environment,a=e.docUrl,r=(0,m.default)(globals,"user.lang","zh"),l=(t||[]).map((function(e){var t=(e.description||"").split(". "),a="zh"===r?(0,m.default)(t,"1",e.description):(0,m.default)(t,"0",e.description);return e.label="".concat(e.key," (").concat(a,")"),e.value=e.key,e}));n.setState({environment:l,docUrl:a})},n.handleSecretChange=function(){n.handleRepoReadableCheck()},n.handleImageSecretChange=function(e,t){var a=n.props.formTemplate,r=(0,m.default)(t,"[0]repoUrl","");(0,h.default)(a,"".concat(n.prefix,'metadata.annotations["kubesphere.io/repoUrl"]'),r)},n.handleRepoReadableCheck=(0,o.default)(u.default.mark((function e(){var a,r,l,o,i,c,s;return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a=n.props,r=a.formTemplate,l=a.isEdgeWize,o=(0,m.default)(r,"".concat(n.prefix,"spec.config.sourceUrl"),"")){e.next=4;break}return e.abrupt("return");case 4:return n.setState({readRepoLoading:!0}),i=(0,m.default)(r,"".concat(n.prefix,"spec.config.gitSecretRef.name"),""),e.next=8,n.builderStore.verifyRepoReadable(o,i,n.namespace,l?n.cluster:void 0).finally((function(){n.setState({readRepoLoading:!1})}));case 8:if(c=e.sent,"success"!==(s=(0,m.default)(c,"message",""))){e.next=14;break}return n.setState({repoReadError:null}),i||n.setState({repoNeedSecret:!1}),e.abrupt("return");case 14:n.setState({repoReadError:{message:t(s)},repoNeedSecret:!0});case 15:case"end":return e.stop()}}),e)}))),n.isEdgeWize=(0,y.isEdgeWizePage)(),n.secretStore=n.isEdgeWize?new O.default:new b.default,n.builderStore=n.isEdgeWize?new S.default:new _.default,n.state={isGetTemplateListLoading:!0,environment:[],basicSecretOptions:[],imageSecretOptions:[],repoReadError:null,repoNeedSecret:!0,readRepoLoading:!1,docUrl:""},n}return(0,c.default)(r,[{key:"componentDidMount",value:function(){this.fetchData(),this.fetchImageSecrets(),this.getTemplateList(),this.handleRepoReadableCheck()}},{key:"renderAdvancedSetting",value:function(){var e=t.html("S2I_ENVIRONMENT_DESC",{link:this.state.docUrl||(0,y.getDocsUrl)("s2i_template")});return p.default.createElement(p.default.Fragment,null,p.default.createElement("div",{className:N.default.margin_b_10},p.default.createElement(g.Form.Item,{label:t("TRIGGER_TOKEN"),desc:t("TRIGGER_TOKEN_DESC"),rules:[{pattern:/^[a-zA-Z0-9]+$/,message:"".concat(t("INVALID_TRIGGER_TOKEN_DESC"))}]},p.default.createElement(g.Input,{name:"".concat(this.prefix,"spec.config.secretCode"),defaultValue:""}))),p.default.createElement("div",{className:N.default.margin_b_10},p.default.createElement(g.Form.Item,{label:t("CODE_RELATIVE_PATH"),desc:t("CODE_RELATIVE_PATH_DESC")},p.default.createElement(g.Input,{name:"".concat(this.prefix,"spec.config.contextDir"),defaultValue:"/"}))),p.default.createElement(g.Alert,{className:N.default.margin_b_10,message:(0,y.learnMoreTip)(e),type:"info"}),p.default.createElement(g.Form.Item,null,p.default.createElement(D.default,{name:"".concat(this.prefix,"spec.config.environment"),options:this.state.environment})))}},{key:"render",value:function(){var e=this.props,a=e.formTemplate,r=e.formRef,n=e.mode,u=e.prefix,o=t.html("S2I_TARGET_IMAGE_REPOSITORY_DESC",{link:(0,y.getDocsUrl)("secrets")});return p.default.createElement(g.Form,{ref:r,data:a},p.default.createElement(k.default,{loading:this.state.isGetTemplateListLoading,formTemplate:u?a[u]:a,builderTemplate:this.state.builderTemplateLists,onEnvironmentChange:this.handleImageTemplateChange}),p.default.createElement("div",{className:(0,v.default)(N.default.columns,(0,l.default)({},N.default.columsEdit,"edit"===n))},p.default.createElement("div",{className:N.default.column},p.default.createElement(g.Loading,{spinning:this.state.readRepoLoading,size:18},p.default.createElement(g.Form.Item,{label:t("CODE_REPOSITORY_URL"),desc:t("CODE_REPOSITORY_URL_DESC"),error:this.state.repoReadError,rules:[{required:!0,message:t("PARAM_REQUIRED")}]},p.default.createElement(g.Input,{name:"".concat(this.prefix,"spec.config.sourceUrl"),onBlur:this.handleRepoReadableCheck})))),p.default.createElement("div",{className:"is-2"},p.default.createElement(g.Form.Item,{label:t("CODE_REPOSITORY_BRANCH"),rules:[{required:!0,message:t("PARAM_REQUIRED")}]},p.default.createElement(g.Input,{name:"".concat(this.prefix,"spec.config.revisionId"),defaultValue:"master"}))),p.default.createElement("div",{className:"is-half"},p.default.createElement(g.Loading,{spinning:this.state.readRepoLoading,size:18},p.default.createElement(g.Form.Item,{className:this.state.repoNeedSecret?"":N.default.disabled,label:t("CODE_REPOSITORY_KEY"),desc:this.state.repoNeedSecret?t("CODE_REPOSITORY_KEY_DESC"):t("CODE_REPOSITORY_KEY_NOT_REQUIRED")},p.default.createElement(g.Select,{onChange:this.handleSecretChange,options:this.state.basicSecretOptions,name:"".concat(this.prefix,"spec.config.gitSecretRef.name"),placeholder:" "}))))),p.default.createElement("div",{className:(0,v.default)(N.default.columns,(0,l.default)({},N.default.columsEdit,"edit"===n))},p.default.createElement("div",{className:N.default.column},p.default.createElement(g.Form.Item,{label:t("IMAGE_NAME"),desc:t("S2I_IMAGE_NAME_DESC"),rules:[{required:!0,message:t("PARAM_REQUIRED")},{pattern:E.PATTERN_IMAGE_NAME,message:t("INVALID_NAME_DESC",{message:t("S2I_IMAGE_NAME_DESC")})}]},p.default.createElement(g.Input,{name:"".concat(this.prefix,"spec.config.imageName")}))),p.default.createElement("div",{className:"is-2"},p.default.createElement(g.Form.Item,{label:t("IMAGE_TAG"),rules:[{required:!0,message:t("PARAM_REQUIRED")}]},p.default.createElement(g.Input,{name:"".concat(this.prefix,"spec.config.tag"),defaultValue:"latest"}))),p.default.createElement("div",{className:"is-half"},p.default.createElement(g.Form.Item,{label:t("TARGET_IMAGE_REPOSITORY"),desc:(0,y.learnMoreTip)(o),rules:[{required:!0,message:t("PARAM_REQUIRED")}]},p.default.createElement(g.Select,{name:"".concat(this.prefix,"spec.config.pushAuthentication.secretRef.name"),options:this.state.imageSecretOptions,onChange:this.handleImageSecretChange,placeholder:" "})))),p.default.createElement(C.default,null,this.renderAdvancedSetting()))}},{key:"prefix",get:function(){var e=this.props.prefix;return e?"".concat(e,"."):""}},{key:"namespace",get:function(){return this.props.namespace}},{key:"cluster",get:function(){return this.props.match.cluster}}]),r}(p.default.Component);a.default=R,R.defaultProps={mode:"create",prefix:""}},function(e,t,a){"use strict";a(15);var r=a(20);a(5),a(4),a(23),a(17),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(45),a(5),a(42),a(4),a(23),a(57),a(17);var n=r(a(36)),l=r(a(37)),u=r(a(55)),o=r(a(56)),i=r(a(51));function c(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,i.default)(e);if(t){var n=(0,i.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,o.default)(this,a)}}var s=function(e){(0,u.default)(a,e);var t=c(a);function a(){var e;(0,n.default)(this,a);for(var r=arguments.length,l=new Array(r),u=0;u0&&void 0!==arguments[0]?arguments[0]:{};return"".concat(e.apiVersion).concat(e.getPath(t),"/applications").concat(t.dryRun?"?dryRun=All":"")},e.getResourceUrl=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return"".concat(e.apiVersion).concat(e.getPath(t),"/applications")},e.getDetailUrl=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return"".concat(e.getListUrl(t),"/").concat(t.name)},(0,v.default)(e,"setSelectRowKeys",m,(0,E.default)(e)),e}return(0,y.default)(T,[{key:"getPath",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.cluster,a=e.namespace,r=e.workspace,n=e.devops,l="";return t&&(l+="/klusters/".concat(t)),r&&(l+="/workspaces/".concat(r)),a&&(l+="/namespaces/".concat(a)),n&&(l+="/namespaces/".concat(n)),l}},{key:"fetchList",value:(O=(0,h.default)(n.default.mark((function e(){var t,a,r,u,i,c,s,f,d=this,p=arguments;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=p.length>0&&void 0!==p[0]?p[0]:{},a=t.devops,t.workspace,r=t.cluster,u=t.more,i=(0,o.default)(t,["devops","workspace","cluster","more"]),this.list.isLoading=!0,i.limit!==1/0&&-1!==i.limit||(i.limit=-1,i.page=1),i.limit=i.limit||10,c="".concat(this.getResourceUrl({namespace:a,cluster:r})),e.next=7,request.get(c,M({},i),{},(function(){return[]}));case 7:return s=e.sent,f=Array.isArray(s.items)?s.items.map((function(e){return M({},d.mapper(M(M({},e),{},{devops:a})))})):[],this.list.update(M(M({data:u?[].concat((0,l.default)(this.list.data),(0,l.default)(f)):f,total:s.totalItems||s.total_count||f.length||0},i),{},{limit:Number(i.limit)||10,page:Number(i.page)||1,isLoading:!1},this.list.silent?{}:{selectedRowKeys:[]})),e.abrupt("return",f);case 11:case"end":return e.stop()}}),e,this)}))),function(){return O.apply(this,arguments)})},{key:"create",value:(_=(0,h.default)(n.default.mark((function e(t){var a,r,l,u,o;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=t.data,r=t.devops,l=t.cluster,u="".concat(this.getResourceUrl({namespace:r,cluster:l})),e.next=4,request.post(u,a);case 4:return o=e.sent,e.abrupt("return",o);case 6:case"end":return e.stop()}}),e,this)}))),function(e){return _.apply(this,arguments)})},{key:"updateSync",value:(i=(0,h.default)(n.default.mark((function e(t){var a,r,l,u,o;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=t.data,r=t.application,l=t.devops,u=t.cluster,o="".concat(this.getResourceUrl({namespace:l,cluster:u}),"/").concat(r,"/sync"),e.abrupt("return",this.submitting(request.post(o,a)));case 3:case"end":return e.stop()}}),e,this)}))),function(e){return i.apply(this,arguments)})},{key:"update",value:(u=(0,h.default)(n.default.mark((function e(t,a){var r;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r="".concat(this.getResourceUrl({namespace:t.devops,cluster:t.cluster}),"/").concat(a.metadata.name),e.abrupt("return",this.submitting(request.put(r,a)));case 2:case"end":return e.stop()}}),e,this)}))),function(e,t){return u.apply(this,arguments)})},{key:"patch",value:function(e,t){var a="".concat(this.getResourceUrl({namespace:e.devops,cluster:e.cluster}),"/").concat(t.metadata.name);return this.submitting(request.put(a,t))}},{key:"delete",value:function(e){var t=(0,C.default)(M(M({},e),{},{namespace:e.devops}),"devops");return this.submitting(request.delete("".concat(this.getDetailUrl(t)).concat(t.isRelated?"?cascade=true":"")))}},{key:"fetchDetail",value:(r=(0,h.default)(n.default.mark((function e(t){var a,r,l,u,o,i;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=t.name,r=t.isSilent,l=t.devops,u=t.cluster,r||(this.isLoading=!0),e.next=4,request.get("".concat(this.getResourceUrl({namespace:l,cluster:u}),"/").concat(a));case 4:return o=e.sent,i=this.mapper(M(M({},o),{},{devops:l})),this.detail=i,this.isLoading=!1,e.abrupt("return",i);case 9:case"end":return e.stop()}}),e,this)}))),function(e){return r.apply(this,arguments)})},{key:"getClustersList",value:(a=(0,h.default)(n.default.mark((function e(t){var a,r,l,u,o;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a="".concat(this.apiVersion,"/clusters"),e.next=3,request.get(a,null,null,(function(){return[]}));case 3:if(r=e.sent,l="default",!globals.app.isMultiCluster){e.next=11;break}return e.next=8,request.get("kapis/tenant.kubesphere.io/v1beta1/clusters");case 8:u=e.sent,o=u.items.find((function(e){return(0,k.default)(e,'metadata.labels["cluster-role.kubesphere.io/host"]')})),l=(0,N.default)(o,"metadata.name",t||(0,w.getHostClusterName)());case 11:(0,D.default)(r)?this.clustersList=[{server:"https://kubernetes.default.svc",name:"in-cluster",label:l}]:this.clustersList=r.map((function(e){return M(M({},e),{},{label:"in-cluster"===e.name?l:e.name})})),globals.hostClusterName=l;case 13:case"end":return e.stop()}}),e,this)}))),function(e){return a.apply(this,arguments)})},{key:"fetchStatusSummary",value:(t=(0,h.default)(n.default.mark((function e(t){var a,r,l,u;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=t.devops,r=t.cluster,l="".concat(this.apiVersion).concat(this.getPath({namespace:a,cluster:r}),"/application-summary"),e.next=4,request.get(l);case 4:u=e.sent,this.summary=u||{};case 6:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})}]),T}(R.default),c=(0,S.default)(i.prototype,"list",[T.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{data:[],page:1,limit:10,total:0,order:"",filters:{},isLoading:!1,selectedRowKeys:[]}}}),s=(0,S.default)(i.prototype,"clustersList",[T.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),f=(0,S.default)(i.prototype,"detail",[T.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),d=(0,S.default)(i.prototype,"syncResult",[T.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{data:[],page:1,total:0,filters:{},isLoading:!1}}}),p=(0,S.default)(i.prototype,"summary",[T.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),m=(0,S.default)(i.prototype,"setSelectRowKeys",[T.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(t){e.list.selectedRowKeys=t}}}),(0,S.default)(i.prototype,"fetchList",[T.action],Object.getOwnPropertyDescriptor(i.prototype,"fetchList"),i.prototype),(0,S.default)(i.prototype,"create",[T.action],Object.getOwnPropertyDescriptor(i.prototype,"create"),i.prototype),(0,S.default)(i.prototype,"updateSync",[T.action],Object.getOwnPropertyDescriptor(i.prototype,"updateSync"),i.prototype),(0,S.default)(i.prototype,"update",[T.action],Object.getOwnPropertyDescriptor(i.prototype,"update"),i.prototype),(0,S.default)(i.prototype,"patch",[T.action],Object.getOwnPropertyDescriptor(i.prototype,"patch"),i.prototype),(0,S.default)(i.prototype,"delete",[T.action],Object.getOwnPropertyDescriptor(i.prototype,"delete"),i.prototype),(0,S.default)(i.prototype,"fetchDetail",[T.action],Object.getOwnPropertyDescriptor(i.prototype,"fetchDetail"),i.prototype),(0,S.default)(i.prototype,"getClustersList",[T.action],Object.getOwnPropertyDescriptor(i.prototype,"getClustersList"),i.prototype),(0,S.default)(i.prototype,"fetchStatusSummary",[T.action],Object.getOwnPropertyDescriptor(i.prototype,"fetchStatusSummary"),i.prototype),i);t.default=A},function(e,a,r){"use strict";var n=r(20),l=r(157);r(12),r(109),r(5),r(11),r(31),r(6),r(18),r(16),r(9),r(13),r(10),r(4),r(316),r(23),r(24),r(17),r(62),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=a.MetricTypes=void 0,r(12),r(109),r(45),r(5),r(11),r(31),r(6),r(18),r(28),r(42),r(16),r(34),r(15),r(9),r(13),r(10),r(4),r(316),r(22),r(23),r(57),r(24),r(17),r(62),r(7);var u=n(r(315)),o=n(r(43)),i=n(r(58));r(41);var c,s=n(r(44)),f=n(r(30)),d=n(r(36)),p=n(r(37)),m=n(r(55)),h=n(r(56)),v=n(r(51)),g=n(r(0)),y=n(r(26)),E=n(r(189)),b=n(r(788)),_=n(r(795)),O=n(r(792)),S=l(r(793)),C=n(r(796)),D=r(52),k=n(r(439)),N=r(794),T=n(r(959));function R(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function w(e){for(var t=1;t0&&void 0!==u[0]?u[0]:{},r=a.silent,n=(0,i.default)(a,["silent"]),e.query=n,n.type=n.type||"user",e.type=n.type,l=e.props.store,r&&(l.list.silent=!0),t.next=8,l.fetchList(w(w({},e.props.match.params),n));case 8:return t.next=10,e.monitoringStore.fetchMetrics(w(w({},e.props.match.params),{},{resources:l.list.data.map((function(e){return e.name})),metrics:Object.values((0,D.hideGPUByLicense)(M,e.cluster)),last:!0}));case 10:l.list.silent=!1;case 11:case"end":return t.stop()}}),t)}))),e.getLastValue=function(t,a){var r=e.monitoringStore.data,n=((0,y.default)(r,"".concat(a,".data.result"))||[]).find((function(e){return(0,y.default)(e,"metric.namespace")===t.name}));return(0,y.default)(n,"value[1]",0)},e.getColumns=function(){var a=e.props,r=a.getSortOrder,n=a.prefix,l=[{title:t("NAME"),dataIndex:"name",sorter:!0,sortOrder:r("name"),search:!0,render:function(e,t){return g.default.createElement(b.default,{to:"Terminating"===t.status?null:"".concat(n,"/").concat(e),icon:"project",iconSize:40,isMultiCluster:t.isFedHostNamespace,desc:t.description||"-",title:(0,D.getDisplayNameNew)(t)})}},{title:t("STATUS"),dataIndex:"status",isHideable:!0,search:!0,render:function(e){return g.default.createElement(_.default,{type:e,name:t(e.toUpperCase()),flicker:!0})}},{title:t("WORKSPACE"),dataIndex:"workspace",isHideable:!0,search:!0,render:function(e){return(0,D.showNameAndAlias)(e,"workspace")}}];return globals.app.hasClusterModule(e.cluster,"whizard-monitoring")&&l.push({title:t("CPU_USAGE"),key:"namespace_cpu_usage",isHideable:!0,render:function(t){return(0,N.getSuitableValue)(e.getLastValue(t,M.cpu),"cpu","-")}},{title:t("MEMORY_USAGE"),key:"namespace_memory_usage_wo_cache",isHideable:!0,render:function(t){return(0,N.getSuitableValue)(e.getLastValue(t,M.memory),"memory","-")}},{title:t("GPU_USAGE"),key:"namespace_gpu_usage",isHideable:!0,render:function(t){return(0,N.getSuitableValue)(e.getLastValue(t,M.gpu),"gpu","-")}},{title:t("GPU_MEMORY_USAGE"),key:"namespace_gpu_memory_usage",isHideable:!0,render:function(t){return(0,N.getSuitableValue)(e.getLastValue(t,M.gpu_memory),"memory","-")}},{title:t("POD_PL"),key:"namespace_pod_count",isHideable:!0,render:function(t){return e.getLastValue(t,M.pod)}}),l},e.showCreate=function(){return e.props.trigger("project.create",w(w({},e.props.match.params),{},{success:function(){return e.getData()}}))},e}return(0,p.default)(r,[{key:"render",value:function(){var e=this.props,t=e.bannerProps,a=e.tableProps,r=this.monitoringStore.isLoading,n=(0,D.hideGPUByLicense)(this.getColumns(),this.cluster);return g.default.createElement(S.ListPage,(0,u.default)({},this.props,{getData:this.getData,module:"namespaces"}),g.default.createElement(O.default,(0,u.default)({},t,{tabs:this.tabs})),g.default.createElement(C.default,(0,u.default)({},a,{className:"table-2-6 table-4-3",itemActions:this.itemActions,tableActions:this.tableActions,columns:n,columnSearch:this.columnSearch,onCreate:"system"===this.type?null:this.showCreate,isLoading:a.isLoading||r})))}},{key:"itemActions",get:function(){var e=this,a=this.props,r=a.trigger,n=a.routing,l=a.name;return[{key:"edit",icon:"pen",text:t("EDIT_INFORMATION"),action:"edit",show:this.showAction,onClick:function(e){return r("resource.baseinfo.edit",{detail:(0,E.default)(e,"workspace"),success:n.query})}},{key:"edit-annotations",icon:"pen",text:t("EDIT_ANNOTATIONS"),action:"manage",show:function(t){return t.workspace!==globals.config.systemWorkspace&&e.showAction(t)},onClick:function(e){return r("resource.annotations.edit",{detail:e})}},{key:"modify",icon:"restart",text:t("ASSIGN_WORKSPACE"),action:"manage",show:function(t){return!t.workspace&&e.showAction(t)},onClick:function(e){return r("project.assignworkspace",{detail:e,success:n.query})}},{key:"delete",icon:"trash",text:t("DELETE"),action:"delete",show:function(t){return t.workspace!==globals.config.systemWorkspace&&e.showAction(t)},onClick:function(e){return r("resource.delete",{type:l,resource:e.name,detail:(0,E.default)(e,"workspace"),success:n.query})}}]}},{key:"tabs",get:function(){return{value:this.type||"user",onChange:this.handleTabChange,options:[{value:"user",label:t("USER_PROJECTS")},{value:"system",label:t("SYSTEM_PROJECTS")}]}}},{key:"tableActions",get:function(){return w(w({},this.props.tableProps.tableActions),{},{onFetch:this.handleFetch})}},{key:"cluster",get:function(){return this.props.match.params.cluster}},{key:"columnSearch",get:function(){var e=(0,D.compareVersion)((0,D.getClusterVersion)(this.cluster),"3.4.0")>=0;return[{dataIndex:"name",title:t("NAME"),search:!0},{dataIndex:"alias",title:t("ALIAS"),search:e}]}}]),r}(g.default.Component))||c;a.default=P},function(e,t,a){e.exports={wrapper:"k0vk_c1ZyPCRUMMpipwCh",titleWrapper:"_2uqWBIFfRH4KunvhbfjI7B",icon:"_1ItfxPdCoCJbI5IBYM8qFz",title:"ThEs3yhp382IH4lTVQgX5",more:"_1b6Sz4BPMxD6xHHK-kt11i",tip:"_2L9SGDIY7BXd_hPf_5P6Rh",tipIcon:"_3SM5xM4niT8oxCDuqIJ7II",operations:"oN75oPJD3rroOyRPHKbui",tipContent:"_1bQzGX9rIXqPoeFOyVVDT8",tabsWrapper:"_2_45-StQhVb_5fgk6w8OF9",banLink:"_1B81eItlzKbA79NDBS3LGZ"}},function(e,t,a){"use strict";a(15);var r=a(20);a(4),a(23),a(17),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(45),a(42),a(4),a(23),a(57),a(17);var n=r(a(36)),l=r(a(55)),u=r(a(56)),o=r(a(51));function i(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,o.default)(e);if(t){var n=(0,o.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,u.default)(this,a)}}var c=function(e){(0,l.default)(a,e);var t=i(a);function a(){return(0,n.default)(this,a),t.apply(this,arguments)}return a}(r(a(959)).default);t.default=c},,,function(e,a,r){"use strict";var n=r(20);r(12),r(5),r(11),r(31),r(6),r(18),r(97),r(16),r(9),r(13),r(10),r(4),r(23),r(17),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(249),r(45),r(5),r(11),r(31),r(6),r(18),r(28),r(97),r(191),r(42),r(16),r(159),r(34),r(15),r(9),r(13),r(10),r(4),r(22),r(23),r(57),r(17),r(7);var l=n(r(61)),u=n(r(43)),o=n(r(30));r(41);var i=n(r(44)),c=n(r(36)),s=n(r(37)),f=n(r(55)),d=n(r(56)),p=n(r(51)),m=r(186),h=n(r(240)),v=n(r(3)),g=n(r(0)),y=n(r(1109)),E=r(1183),b=r(14),_=r(982),O=r(903),S=n(r(3266));function C(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function D(e){for(var t=1;t=0){var n=t[r];t[r]=t[a],t[a]=n}})),t=t.filter((function(e){return!!e})))};t.handleLevelParams=function(e){var t=e.module,a=v.RESOURCES_METER_TYPE[t];return{level:"Level".concat((0,m.default)(a))}};t.getRetentionDay=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"7d";return(0,O.default)().endOf("day").add(1,"second").subtract(1,"day").subtract(e.slice(0,-1),"day")};var N=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.step,a=void 0===t?"600s":t,r=e.times,n=void 0===r?20:r,l=parseFloat(a)*n,u=Math.floor((0,O.default)().endOf("day").add(1,"second").subtract(1,"day")/1e3),o=Math.floor(u-l);return{start:o,end:u}};t.getTimeRange=N;t.getTimeParams=function(e){var t=e.isTime,a=e.start,r=e.end,n=e.step,l=void 0===n?"1h":n,u={};if(t){var o=l;if(!r||!a){var i=N({step:(0,_.getMinuteValue)(l)});u.start=i.start,u.end=i.end}a&&(u.start=Math.floor(a/1e3)),r&&(u.end=Math.floor(r/1e3)),Math.floor((u.end-u.start)/3600/24)>=30&&(o="1d"),u.step=(0,_.getMinuteValue)(o)}return u};t.getMetricsFilters=function(e){var t=e.meters,a=e.module,r=[];if((0,f.default)(t)||(0,h.default)(D(a)(t),(function(e){r.push(e)})),!(0,f.default)(r))return{metrics_filter:r.join("|")}};t.getResourceFilters=function(e){var t=e.resources,a=e.module;if(!(0,f.default)(t)){var r=t.join("|"),n={};switch(a){case"applications":n={applications:r};break;case"openpitrixs":n={openpitrixs_ids:r};break;case"services":n={services:r};break;default:n={resources_filter:t.join("|")}}return n}};t.fillEmptyMeterValue=function(e,t){if(!e.step||!e.start||!e.end)return t;var a,r=e.step,n=Math.floor((e.end-e.start)/r)+1;if(((0,p.default)(t)||!(0,s.default)(t)?0:t.length)-1&&(a[e]=(0,b.getValueByUnit)(a[e],n.value,3),a.unit=n)})),a};t.handleWorkloadToKind=function(e){var t=e.deployments,a=e.statefulsets,r=e.daemonsets,n={};return t&&(n.kind="deployments"),a&&(n.kind="statefulsets"),r&&(n.kind="daemonsets"),n};t.handleNodeParams=function(e){var t=e.nodes,a=e.pods,r=e.resources;if(t&&a&&r.length>1)return{resources_filter:void 0}};var T=function(e){var t="";return!e||(0,f.default)(e)?t:(Object.keys(e).forEach((function(a){t+="".concat(a,"=").concat(e[a],",")})),t=t.slice(0,-1))};t.handleLabelSelector=T;t.hasNameSpacesType=function(e){return["services","deployments","statefulsets","daemonsets","pods"].indexOf(e)>-1};t.filterListByType=function(e){var t=e.type,a=(0,u.default)(e,["type"]);return(a.services||a.deployments||a.statefulsets||a.daemonsets)&&"pods"===t&&(0,f.default)(a.labelSelector)?function(){return!1}:function(){return!0}};var R=function(){var e=(0,l.default)(n.default.mark((function e(t){var a,r,l,o,i,s,m,h,v,g,y,E,b;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a=t.levelMeterData,r=t.type,l=t.data,o=t.levelKey,i=(0,u.default)(t,["levelMeterData","type","data","levelKey"]),s=o||i.namespaces,m=(0,c.default)(a,s),h=[],v=[],g="applications"===r?"apps":r,!["services","deployments","statefulsets","daemonsets"].includes(r)){e.next=23;break}if(!i.applications&&!i.openpitrixs){e.next=19;break}return y=(0,d.default)(i),E=i.applications||i.openpitrixs,b=i.applications?"apps":"openpitrixs",s="".concat(s,".").concat(b,".").concat(E),delete y.openpitrixs,delete y.applications,e.next=16,R(C({levelMeterData:a,type:r,data:l,levelKey:s},y));case 16:v=e.sent,e.next=21;break;case 19:h=m&&m[g]?Object.keys(m[g]):[],v=l.map((function(e){var t=h.find((function(t){return t===e.name}));return(0,p.default)(t)||(0,f.default)(t)?void 0:e}));case 21:e.next=29;break;case 23:if("applications"!==r&&"openpitrixs"!==r){e.next=28;break}h=m[g]?Object.keys(m[g]):[],v=l.map((function(e){var t=h.find((function(t){return t===e.name||t===e.cluster_id}));return(0,p.default)(t)||(0,f.default)(t)?void 0:e})),e.next=29;break;case 28:return e.abrupt("return",l);case 29:return v=v.filter((function(e){return!(0,p.default)(e)})),e.abrupt("return",v);case 31:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();t.filterResourceLevel=R;t.handleWSChartData=function(e){var t,a=e.levelMeterData,r=e.meters,n=e.type,l=e.params;switch(n){case"applications":case"openpitrixs":t=function(e,t,a,r){var n=[],l="applications"===r?"apps":"openpitrixs",u=e[t.namespaces]["".concat(l)];return!(0,f.default)(u)&&Object.keys(u).forEach((function(e){if(u[e]){var t=u[e][v.METER_RESOURCE_USAGE[a]]||0,l=v.UNIT_CONFIG[a];n.push({name:e,value:(0,b.getValueByUnit)(t,l.value,3),unit:l.label,type:r})}})),n}(a,l,r,n);break;case"services":case"deployments":case"statefulsets":case"daemonsets":t=function(e,t,a,r){var n=[],l="";if(a.applications||a.openpitrixs){var u=a.applications?"apps":"openpitrixs";l=e[a.namespaces][u];var o=a.applications||a.openpitrixs,i=Object.keys(l).find((function(e){return e.indexOf(o)>-1}));l=l[i][t]}else l=e[a.namespaces][t];return!(0,f.default)(l)&&Object.keys(l).forEach((function(e){var a=(0,c.default)(l,"".concat(e,".").concat(v.METER_RESOURCE_USAGE[r]),0),u=v.UNIT_CONFIG[r];n.push({name:e,value:(0,b.getValueByUnit)(a,u.value,3),unit:u.label,type:t})})),n}(a,n,l,r);break;default:t=function(e,t,a,r){var n=[],l="";if(a.applications||a.openpitrixs){var u=a.applications?"apps":"openpitrixs";l=e[a.namespaces][u];var o=a.applications||a.openpitrixs,i=Object.keys(l).find((function(e){return e.indexOf(o)>-1}));l=l[i]}else l=e[a.namespaces];return a.deployments&&(l=l.deployments[a.deployments][t]),a.services&&(l=l.services[a.services][t]),a.statefulsets&&(l=l.statefulsets[a.statefulsets][t]),a.daemonsets&&(l=l.daemonsets[a.daemonsets][t]),!(0,f.default)(l)&&Object.keys(l).forEach((function(e){var a=(0,c.default)(l,"".concat(e,".").concat(v.METER_RESOURCE_USAGE[r]),0),u=v.UNIT_CONFIG[r];n.push({name:e,value:(0,b.getValueByUnit)(a,u.value,3),unit:u.label,type:t})})),n}(a,n,l,r)}return t};t.getFetchParams=function(e){var t=e.isMultiCluster,a=e.type,r=e.cluster,n=e.namespaces,l=e.workspaces,o=e.applications,i=e.openpitrixs,c=(0,u.default)(e,["isMultiCluster","type","cluster","namespaces","workspaces","applications","openpitrixs"]),s=globals.app.hasPermission({module:"clusters",action:"view"});return{cluster:t||!s?[{page:1,limit:-1}]:[{page:1,limit:-1,labelSelector:"cluster-role.kubesphere.io/host"},{page:1,limit:-1,labelSelector:"!cluster-role.kubesphere.io/host"}],nodes:[{limit:-1,page:1,cluster:r}],workspaces:[{limit:-1,page:1,namespace:n,workspace:l}],namespaces:[{page:1,limit:-1,cluster:r,namespace:n,workspace:l,labelSelector:"!kubesphere.io/devopsproject"}],openpitrixs:[{page:1,limit:-1,workspace:l,cluster:r,namespace:n,openpitrix:i}],applications:[{page:1,limit:-1,workspace:l,cluster:r,namespace:n,application:o}],services:[{page:1,limit:-1,cluster:r,namespace:n,labelSelector:T(c.labelSelector)}],deployments:[{page:1,limit:-1,cluster:r,namespace:n,labelSelector:T(c.labelSelector)}],statefulsets:[{page:1,limit:-1,cluster:r,namespace:n,labelSelector:T(c.labelSelector)}],daemonsets:[{page:1,limit:-1,cluster:r,namespace:n,labelSelector:T(c.labelSelector)}],pods:[{page:1,limit:-1,cluster:r,namespace:n,labelSelector:T(c.labelSelector),nodeName:c.nodes,ownerKind:c.statefulsets?"StatefulSet":c.deployments?"ReplicaSet":void 0}]}[a]};t.getListConfig=function(e){var t=e.type;return{cluster:e.isMultiCluster?[{status:function(e){return e.isReady?"ready":"stop"},desc:""}]:[{status:function(e){return e.isReady?"ready":"stop"},desc:"HOST_CLUSTER"},{status:function(e){return e.isReady?"ready":"stop"},desc:"MEMBER_CLUSTER"}],nodes:[{status:function(e){return(0,g.getNodeStatus)(e)},desc:v.RESOURCE_TITLE[t]}],workspaces:[{desc:v.RESOURCE_TITLE[t]}],namespaces:[{status:function(e){return e.status},desc:v.RESOURCE_TITLE[t]}],applications:[{status:function(e){return e.status||""},desc:v.RESOURCE_TITLE[t]}],openpitrixs:[{status:function(e){return e.status||""},desc:v.RESOURCE_TITLE[t]}],services:[{desc:v.RESOURCE_TITLE[t]}],daemonsets:[{status:function(e){var a=(0,y.getWorkloadStatus)(e,t).status;return a},desc:v.RESOURCE_TITLE[t]}],deployments:[{status:function(e){var a=(0,y.getWorkloadStatus)(e,t).status;return a},desc:v.RESOURCE_TITLE[t]}],statefulsets:[{status:function(e){var a=(0,y.getWorkloadStatus)(e,t).status;return a},desc:v.RESOURCE_TITLE[t]}],pods:[{status:function(e){return(0,c.default)(e,"podStatus.status","")},desc:v.RESOURCE_TITLE[t]}]}[t]};t.handleStrTimeToX=function(e){return 1e3*(0,O.default)(e).format("X")}},function(e,t,a){"use strict";var r=a(20);a(12),a(5),a(11),a(6),a(29),a(18),a(16),a(27),a(137),a(9),a(13),a(10),a(4),a(22),a(23),a(17),a(38),a(7),a(32),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(a(61)),l=r(a(58)),u=r(a(43));a(41);var o=r(a(44)),i=r(a(65)),c=r(a(36)),s=r(a(37)),f=r(a(88)),d=r(a(55)),p=r(a(56)),m=r(a(51)),h=r(a(49));r(a(66));a(12),a(45),a(5),a(11),a(6),a(29),a(18),a(28),a(245),a(42),a(16),a(27),a(137),a(34),a(15),a(9),a(13),a(10),a(4),a(22),a(23),a(57),a(17),a(38),a(7),a(32);var v,g,y,E,b,_,O,S,C,D=r(a(30)),k=r(a(26)),N=r(a(63)),T=a(14),R=a(52),w=a(327),I=r(a(443)),M=r(a(452)),P=r(a(458));function A(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,m.default)(e);if(t){var n=(0,m.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,p.default)(this,a)}}function j(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function L(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.cluster,a=e.namespace;return"apis/application.kubesphere.io/v1alpha1/watch/helmreleases?labelSelector=".concat((0,R.joinSelector)({"kubesphere.io/cluster":globals.app.isMultiCluster?t:null,"kubesphere.io/namespace":a}))},e.getUrl=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=t.workspace,r=t.namespace,n=t.cluster,l=t.cluster_id,u="".concat(e.baseUrl).concat(e.getPath({workspace:a,namespace:r,cluster:n}),"/applications");return l?"".concat(u,"/").concat(l):u},(0,i.default)(e,"env",y,(0,f.default)(e)),(0,i.default)(e,"fetchList",E,(0,f.default)(e)),(0,i.default)(e,"fetchDetail",b,(0,f.default)(e)),(0,i.default)(e,"update",_,(0,f.default)(e)),(0,i.default)(e,"patch",O,(0,f.default)(e)),(0,i.default)(e,"delete",S,(0,f.default)(e)),(0,i.default)(e,"batchDelete",C,(0,f.default)(e)),e}return(0,s.default)(r,[{key:"upgrade",value:(t=(0,o.default)(u.default.mark((function e(t,a){var r,n,l,o;return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=a.workspace,n=a.namespace,l=a.cluster,o=a.cluster_id,e.abrupt("return",this.submitting(request.post(this.getUrl({workspace:r,namespace:n,cluster:l,cluster_id:o}),t)));case 2:case"end":return e.stop()}}),e,this)}))),function(e,a){return t.apply(this,arguments)})}]),r}(P.default),g=(0,h.default)(v.prototype,"components",[T.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{data:[],total:0,isLoading:!0}}}),y=(0,h.default)(v.prototype,"env",[T.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{data:{},isLoading:!1}}}),E=(0,h.default)(v.prototype,"fetchList",[T.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return(0,o.default)(u.default.mark((function t(){var a,r,o,i,c,s,f,d,p,m,h,v,g,y,E,b=arguments;return u.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=b.length>0&&void 0!==b[0]?b[0]:{},r=a.limit,o=a.page,i=a.cluster,c=a.namespace,s=a.workspace,f=a.more,d=a.status,p=a.sortBy,m=a.reverse,h=(0,l.default)(a,["limit","page","cluster","namespace","workspace","more","status","sortBy","reverse"]),e.list.isLoading=!0,v={conditions:(0,R.getFilterString)({status:d||e.defaultStatus})},p||void 0!==m||(p="status_time"),(0,N.default)(h)||(g=(0,R.getFilterString)(h))&&(v.conditions+=",".concat(g)),r!==1/0&&(v.paging="limit=".concat(r||10,",page=").concat(o||1)),p&&(v.orderBy=p),m&&(v.reverse=!0),t.next=10,request.get(e.getUrl({workspace:s,namespace:c,cluster:i}),v);case 10:return y=t.sent,E=(y.items||[]).map((function(e){return L(L({},U(e)),{},{workspace:s,cluster:i})})),Object.assign(e.list,{data:f?[].concat((0,n.default)(e.list.data),(0,n.default)(E)):E,total:y.total_count||0,limit:Number(r)||10,page:Number(o)||1,order:p,reverse:m,filters:h,selectedRowKeys:[]}),e.list.isLoading=!1,t.abrupt("return",E);case 15:case"end":return t.stop()}}),t)})))}}),b=(0,h.default)(v.prototype,"fetchDetail",[T.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(){var t=(0,o.default)(u.default.mark((function t(a){var r,n,l,o,i;return u.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=a.workspace,n=a.namespace,l=a.cluster,o=a.id,e.isLoading=!0,t.next=4,request.get(e.getUrl({workspace:r,namespace:n,cluster:l,cluster_id:o}));case 4:i=t.sent,e.detail=L(L({},U(i)),{},{workspace:r,namespace:n,cluster:l}),e.isLoading=!1;case 7:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()}}),(0,h.default)(v.prototype,"upgrade",[T.action],Object.getOwnPropertyDescriptor(v.prototype,"upgrade"),v.prototype),_=(0,h.default)(v.prototype,"update",[T.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(t){var a=t.cluster_id,r=t.cluster,n=t.workspace,u=t.zone,o=(0,l.default)(t,["cluster_id","cluster","workspace","zone"]);return e.submitting(request.patch(e.getUrl({namespace:u,cluster_id:a,cluster:r,workspace:n}),o))}}}),O=(0,h.default)(v.prototype,"patch",[T.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(t,a){var r=t.cluster_id,n=t.cluster,l=t.workspace,u=t.zone;return e.submitting(request.patch(e.getUrl({namespace:u,cluster_id:r,cluster:n,workspace:l}),a))}}}),S=(0,h.default)(v.prototype,"delete",[T.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(t){var a=t.cluster_id,r=t.cluster,n=t.workspace,l=t.zone;return e.submitting(request.delete(e.getUrl({namespace:l,cluster_id:a,cluster:r,workspace:n})))}}}),C=(0,h.default)(v.prototype,"batchDelete",[T.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(t,a){var r=a.namespace,n=a.cluster,l=a.workspace;return e.submitting(Promise.all(t.map((function(t){return request.delete(e.getUrl({namespace:r,cluster:n,workspace:l,cluster_id:t}))}))))}}}),v);t.default=z},function(e,t,a){"use strict";a(15);var r=a(20);a(5),a(11),a(18),a(16),a(9),a(4),a(23),a(17),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(45),a(5),a(11),a(18),a(42),a(16),a(9),a(4),a(22),a(23),a(57),a(17);var n=r(a(43));a(41);var l,u,o,i=r(a(44)),c=r(a(65)),s=r(a(36)),f=r(a(37)),d=r(a(88)),p=r(a(55)),m=r(a(56)),h=r(a(51)),v=r(a(49)),g=(r(a(66)),a(14)),y=a(52),E=a(248),b=r(a(105)),_=a(72);function O(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,h.default)(e);if(t){var n=(0,h.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,m.default)(this,a)}}var S=(l=function(e){(0,p.default)(h,e);var t,a,r,l,m=O(h);function h(e){var t;return(0,s.default)(this,h),t=m.call(this),(0,c.default)(t,"workloadDetail",u,(0,d.default)(t)),(0,c.default)(t,"currentRevision",o,(0,d.default)(t)),t.getDetailUrl=function(e){var a=e.name,r=e.cluster,n=e.namespace,l=e.revision;return"kapis/resources.kubesphere.io/v1alpha2".concat(t.getPath({cluster:r,namespace:n}),"/").concat(t.module,"/").concat(a,"/revisions/").concat(l)},t.module=e,t}return(0,f.default)(h,[{key:"fetchList",value:(l=(0,i.default)(n.default.mark((function e(t){var a,r,l,u,o,i,c,s,f=this;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=t.cluster,r=t.namespace,l=t.name,u=t.selector,this.list.isLoading=!0,o=(0,y.joinSelector)(u),i="deployments"===this.module?"apis/apps/v1".concat(this.getPath({cluster:a,namespace:r}),"/replicasets"):"apis/apps/v1".concat(this.getPath({cluster:a,namespace:r}),"/controllerrevisions"),e.next=6,request.get("".concat(i,"?labelSelector=").concat(o));case 6:c=e.sent,s=c.items.map(b.default.revisions).filter((function(e){return e.ownerName===l&&e.ownerKind===_.MODULE_KIND_MAP[f.module]})),this.list.update({data:s,isLoading:!1});case 9:case"end":return e.stop()}}),e,this)}))),function(e){return l.apply(this,arguments)})},{key:"fetchDetail",value:(r=(0,i.default)(n.default.mark((function e(t){var a,r,l,u,o,i;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=t.name,r=t.cluster,l=t.namespace,u=t.revision,this.isLoading=!0,e.next=4,request.get(this.getDetailUrl({name:a,cluster:r,namespace:l,revision:u}));case 4:o=e.sent,i=b.default.revisions(o),this.detail=i,this.isLoading=!1;case 8:case"end":return e.stop()}}),e,this)}))),function(e){return r.apply(this,arguments)})},{key:"fetchWorkloadDetail",value:(a=(0,i.default)(n.default.mark((function e(t){var a,r,l,u;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=t.name,r=t.cluster,l=t.namespace,e.next=3,request.get("apis/apps/v1".concat(this.getPath({cluster:r,namespace:l}),"/").concat(this.module,"/").concat(a));case 3:u=e.sent,this.workloadDetail=b.default[this.module](u);case 5:case"end":return e.stop()}}),e,this)}))),function(e){return a.apply(this,arguments)})},{key:"fetchCurrentRevision",value:(t=(0,i.default)(n.default.mark((function e(){var t,a=arguments;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=a.length>0&&void 0!==a[0]?a[0]:{},e.next=3,this.fetchList(t);case 3:this.currentRevision=(0,E.getCurrentRevision)((0,g.toJS)(t),(0,g.toJS)(this.list.data),this.module);case 4:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})}]),h}(r(a(68)).default),u=(0,v.default)(l.prototype,"workloadDetail",[g.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),o=(0,v.default)(l.prototype,"currentRevision",[g.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),(0,v.default)(l.prototype,"fetchList",[g.action],Object.getOwnPropertyDescriptor(l.prototype,"fetchList"),l.prototype),(0,v.default)(l.prototype,"fetchDetail",[g.action],Object.getOwnPropertyDescriptor(l.prototype,"fetchDetail"),l.prototype),(0,v.default)(l.prototype,"fetchWorkloadDetail",[g.action],Object.getOwnPropertyDescriptor(l.prototype,"fetchWorkloadDetail"),l.prototype),(0,v.default)(l.prototype,"fetchCurrentRevision",[g.action],Object.getOwnPropertyDescriptor(l.prototype,"fetchCurrentRevision"),l.prototype),l);t.default=S},function(e,t,a){"use strict";a(15);var r=a(20);a(73),a(4),a(23),a(17),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(45),a(73),a(42),a(4),a(23),a(57),a(17);var n,l,u=r(a(65)),o=r(a(36)),i=r(a(88)),c=r(a(55)),s=r(a(56)),f=r(a(51)),d=r(a(49)),p=(r(a(66)),a(14)),m=a(52),h=r(a(1129));function v(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,f.default)(e);if(t){var n=(0,f.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,s.default)(this,a)}}var g=["node_cpu_usage","node_cpu_utilisation","node_load1","node_load5","node_load15","node_memory_utilisation","node_memory_usage_wo_cache","node_gpu_usage","node_gpu_memory_usage","node_disk_size_utilisation","node_disk_inode_utilisation","node_pod_utilisation"],y=["node_cpu_utilisation","node_cpu_usage","node_cpu_total","node_memory_utilisation","node_memory_usage_wo_cache","node_memory_total","node_gpu_utilization","node_gpu_usage","node_gpu_total","node_gpu_memory_utilization","node_gpu_memory_usage","node_gpu_memory_total","node_disk_size_utilisation","node_disk_size_usage","node_disk_size_capacity","node_pod_utilisation","node_pod_running_count","node_pod_quota","node_disk_inode_utilisation","node_disk_inode_total","node_disk_inode_usage","node_load1","node_load5","node_load15"],E=(n=function(e){(0,c.default)(a,e);var t=v(a);function a(e){var r;return(0,o.default)(this,a),r=t.call(this,e),(0,u.default)(r,"sort_metric",l,(0,i.default)(r)),r.resource="nodes",r.sort_metric_options=(0,m.hideGPUByLicense)(e.sort_metric_options||g,r.cluster),r.metrics_filter=(0,m.hideGPUByLicense)(y,r.cluster).join("|"),r}return a}(h.default),l=(0,d.default)(n.prototype,"sort_metric",[p.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return g[0]}}),n);t.default=E},function(e,t,a){"use strict";a(15);var r=a(20);a(73),a(4),a(23),a(17),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(45),a(73),a(42),a(4),a(23),a(57),a(17);var n,l,u=r(a(65)),o=r(a(36)),i=r(a(88)),c=r(a(55)),s=r(a(56)),f=r(a(51)),d=r(a(49)),p=(r(a(66)),a(14)),m=a(52),h=r(a(1210));function v(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,f.default)(e);if(t){var n=(0,f.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,s.default)(this,a)}}var g=["node_cpu_usage","node_cpu_utilisation","node_load1","node_load5","node_load15","node_memory_usage_wo_cache","node_memory_utilisation","node_gpu_usage","node_gpu_memory_usage","node_disk_size_utilisation","node_pod_count","node_pod_utilisation","node_disk_inode_utilisation"],y=["node_cpu_utilisation","node_cpu_usage","node_cpu_total","node_memory_utilisation","node_memory_usage_wo_cache","node_memory_total","node_gpu_utilization","node_gpu_usage","node_gpu_total","node_gpu_memory_utilization","node_gpu_memory_usage","node_gpu_memory_total","node_disk_size_utilisation","node_disk_size_usage","node_disk_size_capacity","node_pod_utilisation","node_pod_running_count","node_pod_quota","node_disk_inode_utilisation","node_disk_inode_total","node_disk_inode_usage","node_pod_count","node_load1","node_load5","node_load15"],E=(n=function(e){(0,c.default)(a,e);var t=v(a);function a(e){var r;return(0,o.default)(this,a),r=t.call(this,e),(0,u.default)(r,"sort_metric",l,(0,i.default)(r)),r.resource="nodes",r.sort_metric_options=(0,m.hideGPUByLicense)(g,r.cluster),r.metrics_filter=(0,m.hideGPUByLicense)(y,r.cluster).join("|"),r}return a}(h.default),l=(0,d.default)(n.prototype,"sort_metric",[p.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return g[0]}}),n);t.default=E},function(e,t,a){"use strict";a(15);var r=a(20);a(4),a(23),a(17),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(45),a(42),a(4),a(23),a(57),a(17);var n=r(a(36)),l=r(a(37)),u=r(a(55)),o=r(a(56)),i=r(a(51));function c(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,i.default)(e);if(t){var n=(0,i.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,o.default)(this,a)}}var s=function(e){(0,u.default)(a,e);var t=c(a);function a(){return(0,n.default)(this,a),t.apply(this,arguments)}return(0,l.default)(a,[{key:"apiVersion",get:function(){return"kapis/monitoring.kubesphere.io/v1beta1"}}]),a}(r(a(1129)).default);t.default=s},function(e,t,a){"use strict";a(15);var r=a(20);a(73),a(4),a(23),a(17),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(45),a(73),a(42),a(4),a(23),a(57),a(17);var n,l,u,o=r(a(65)),i=r(a(36)),c=r(a(37)),s=r(a(88)),f=r(a(55)),d=r(a(56)),p=r(a(51)),m=r(a(49)),h=(r(a(66)),a(14)),v=a(52),g=r(a(1210));function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,p.default)(e);if(t){var n=(0,p.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,d.default)(this,a)}}var E=["namespace_cpu_usage","namespace_cpu_used_requests_utilisation","namespace_cpu_used_limits_utilisation","namespace_memory_usage_wo_cache","namespace_memory_used_requests_utilisation","namespace_memory_used_limits_utilisation","namespace_pvc_bytes_used","namespace_gpu_usage","namespace_gpu_memory_usage","namespace_pod_count","namespace_net_bytes_received","namespace_net_bytes_transmitted"],b=["namespace_memory_usage_wo_cache","namespace_memory_limit_hard","namespace_cpu_usage","namespace_cpu_limit_hard","namespace_gpu_limit_hard","namespace_gpu_usage","namespace_gpu_memory_usage","namespace_pod_count","namespace_pods_hard","namespace_net_bytes_received","namespace_net_bytes_transmitted","namespace_cpu_used_requests_utilisation","namespace_cpu_used_limits_utilisation","namespace_memory_used_requests_utilisation","namespace_memory_used_limits_utilisation","namespace_pvc_bytes_used","namespace_pvc_count"],_=(n=function(e){(0,f.default)(a,e);var t=y(a);function a(e){var r;return(0,i.default)(this,a),r=t.call(this,e),(0,o.default)(r,"sort_metric",l,(0,s.default)(r)),(0,o.default)(r,"changeWorkSpace",u,(0,s.default)(r)),r.resource="namespaces",r.sort_metric_options=(0,v.hideGPUByLicense)(E,r.cluster),r.metrics_filter=(0,v.hideGPUByLicense)(b,r.cluster).join("|"),r}return(0,c.default)(a,[{key:"fetchUrl",get:function(){return this.workspace?"".concat(this.apiVersion,"/workspace_metrics"):"".concat(this.apiVersion,"/namespace_metrics")}}]),a}(g.default),l=(0,m.default)(n.prototype,"sort_metric",[h.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return E[0]}}),u=(0,m.default)(n.prototype,"changeWorkSpace",[h.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(t){e.workspace=t,e.fetchAll()}}}),n);t.default=_},function(e,t,a){"use strict";a(15);var r=a(20);a(5),a(9),a(4),a(23),a(17),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(45),a(5),a(42),a(9),a(4),a(22),a(23),a(57),a(17);var n=r(a(43));a(41);var l,u=r(a(44)),o=r(a(36)),i=r(a(37)),c=r(a(55)),s=r(a(56)),f=r(a(51)),d=r(a(49)),p=a(14);function m(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,f.default)(e);if(t){var n=(0,f.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,s.default)(this,a)}}var h=(l=function(e){(0,c.default)(r,e);var t,a=m(r);function r(){var e;(0,o.default)(this,r);for(var t=arguments.length,n=new Array(t),l=0;l0&&void 0!==arguments[0]?arguments[0]:{},t=e.cluster,a="";return t&&(a+="/klusters/".concat(t)),a}},{key:"fetchDetail",value:(a=(0,c.default)(u.default.mark((function e(t){var a,r;return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.isLoading=!0,e.next=3,request.get(this.getDetailUrl(t));case 3:return a=e.sent,r=b(b({},t),this.mapper(a)),this.detail=r,this.isLoading=!1,e.abrupt("return",r);case 8:case"end":return e.stop()}}),e,this)}))),function(e){return a.apply(this,arguments)})},{key:"fetchList",value:(t=(0,c.default)(u.default.mark((function e(){var t,a,r,o,i,c,s,f,d,p,m=this,h=arguments;return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=h.length>0&&void 0!==h[0]?h[0]:{},a=t.cluster,r=t.workspace,o=t.namespace,i=t.more,c=t.devops,s=(0,l.default)(t,["cluster","workspace","namespace","more","devops"]),this.list.isLoading=!0,f=[],s.sortBy||void 0!==s.ascending||(s.sortBy=y.LIST_DEFAULT_ORDER[this.module]||"createTime"),s.limit!==1/0&&-1!==s.limit||(s.limit=-1,s.page=1),s.readyToUse&&f.push("status.readyToUse=".concat(s.readyToUse)),f=f.join(",")||void 0,s.fieldSelector=f,s.limit=s.limit||10,e.next=11,request.get(this.getResourceUrl({cluster:a,workspace:r,namespace:o,devops:c}),this.getFilterParams(s));case 11:return d=e.sent,p=((0,v.default)(d,"items")||[]).map((function(e){return b({cluster:a,namespace:o,workspace:r},m.mapper(e))})),this.list.update(b(b({data:i?[].concat((0,n.default)(this.list.data),(0,n.default)(p)):p,total:d.totalItems||d.totalCount||d.total_count||p.length||0},s),{},{limit:Number(s.limit)||10,page:Number(s.page)||1,isLoading:!1},this.list.silent?{}:{selectedRowKeys:[]})),e.abrupt("return",p);case 15:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})},{key:"resourceKind",get:function(){return"VolumeSnapshotContent"}},{key:"apiVersion",get:function(){return"apis/snapshot.storage.k8s.io/v1"}}]),o}(r(a(68)).default),(0,h.default)(i.prototype,"fetchDetail",[g.action],Object.getOwnPropertyDescriptor(i.prototype,"fetchDetail"),i.prototype),(0,h.default)(i.prototype,"fetchList",[g.action],Object.getOwnPropertyDescriptor(i.prototype,"fetchList"),i.prototype),i);t.default=O},function(e,t,a){"use strict";a(15);var r=a(20);a(5),a(4),a(23),a(17),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(45),a(5),a(42),a(4),a(23),a(57),a(17);var n=r(a(36)),l=r(a(55)),u=r(a(56)),o=r(a(51));function i(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,o.default)(e);if(t){var n=(0,o.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,u.default)(this,a)}}var c=function(e){(0,l.default)(a,e);var t=i(a);function a(){var e;(0,n.default)(this,a);for(var r=arguments.length,l=new Array(r),u=0;u0&&void 0!==arguments[0]?arguments[0]:{},a=t.state.cluster;e.name&&(e.nameAndAlias=e.name,delete e.name),a&&t.projectStore.fetchList(M({cluster:a,workspace:t.props.workspace},e))},t.fetchData=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t.monitorStore.fetchApplicationResourceMetrics(M(M({metrics:[t.metricType],workspace:t.props.workspace,cluster:t.state.cluster},t.state),e))},t.handleClusterChange=function(e){t.workspaceStore&&t.workspaceStore.selectCluster(e),t.setState({cluster:e},t.fetchNamespaces)},t.handleNamespaceChange=function(e){t.setState({namespace:e})},t.handleSubmit=function(){var e=t.state,a=e.times,r=e.step,n=t.formRef.current&&t.formRef.current.getData();t.setState(n,(function(){t.fetchData(M(M({},n),{},{times:a,step:r}))}))},t.onCancel=function(){t.setState(M(M({},A),{},{namespace:"all",metrics_filter:void 0}),(function(){t.props.onCancel()}))},t.updateMonitorOptions=function(e){var a=e.times,r=e.step;t.setState({times:a,step:r})},t.projectOptionRenderer=function(e){return g.default.createElement("span",{className:w.default.option},e.isFedManaged?g.default.createElement("img",{className:w.default.indicator,src:"/assets/cluster.svg"}):g.default.createElement(N.Icon,{name:"project"}),e.label)},t.clusterOptionRenderer=function(e){return g.default.createElement("span",{className:w.default.option},g.default.createElement(N.Icon,{name:"cluster",type:"light"}),e.label)},t.clusterValueRenderer=function(e){return g.default.createElement("span",{className:w.default.option},g.default.createElement(N.Icon,{name:"cluster"}),e.label)},t.workspaceStore=e.workspaceStore,t.state=M(M({cluster:t.workspaceStore?t.workspaceStore.cluster:(0,O.default)(e,"cluster",""),namespace:(0,O.default)(e.detail,"namespace","all")},A),{},{metrics_filter:void 0}),t.projectStore=new D.default,t.monitorStore=new k.default,t.formRef=g.default.createRef(),t}return(0,p.default)(n,[{key:"componentDidUpdate",value:(a=(0,s.default)(u.default.mark((function e(t){var a,r,n=this;return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:(a=this.props.visible)&&a!==t.visible&&(r=this.props.workspaceStore,this.setState({cluster:r?r.cluster:(0,O.default)(this.props,"cluster","")},(0,s.default)(u.default.mark((function e(){return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n.fetchNamespaces();case 2:return e.next=4,n.fetchData();case 4:case"end":return e.stop()}}),e)})))));case 2:case"end":return e.stop()}}),e,this)}))),function(e){return a.apply(this,arguments)})},{key:"renderFilterForm",value:function(){var e=this,a=this.state,r=a.cluster,n=a.namespace,l=M({},this.state),u=this.projectStore.list,o={total:u.total,page:u.page,limit:u.limit};return g.default.createElement(N.Form,{className:w.default.form,ref:this.formRef,data:l},this.props.workspace&&g.default.createElement(N.Form.Item,{label:t("CLUSTER")},g.default.createElement(N.Select,{name:"cluster",placeholder:" ",defaultValue:r,options:this.clusters,onChange:this.handleClusterChange,valueRenderer:this.clusterValueRenderer,optionRenderer:this.clusterOptionRenderer,showTip:!0})),g.default.createElement(N.Form.Item,{label:t("PROJECT")},g.default.createElement(N.Select,{name:"namespace",placeholder:" ",defaultValue:n,options:this.namespaces,onFetch:this.fetchNamespaces,onChange:this.handleNamespaceChange,valueRenderer:this.projectOptionRenderer,optionRenderer:this.projectOptionRenderer,isLoading:this.projectStore.list.isLoading,pagination:o,searchable:!0,clearable:!0})),this.isPvc&&this.props.detail.filters&&g.default.createElement(N.Form.Item,{label:t("storageclasses")},g.default.createElement(N.Select,{name:"metrics_filter",defaultValue:"workspace_pvc_bytes_used",onChange:function(t){e.setState({metrics_filter:t})},options:this.props.detail.filters.options.map((function(t){return{label:t.label,value:e.props.detail.filters.getMetricsFilter(t.value)}}))})),g.default.createElement(N.Form.Item,null,g.default.createElement(N.Button,{type:"control",onClick:this.handleSubmit},t("OK"))))}},{key:"renderChart",value:function(){var e=M(M({},this.props.detail),{},{data:this.monitoringData}),t=(0,C.getAreaChartOps)(e);return g.default.createElement("div",{className:w.default.chart},(0,_.default)(t.data)?g.default.createElement("div",{className:w.default.empty},g.default.createElement("img",{src:"/assets/empty-card.svg"})):g.default.createElement(T.SimpleArea,(0,l.default)({width:"100%",height:"100%"},t)))}},{key:"renderTable",value:function(){var e=this.props.detail.title,a=M({},this.props.detail),r=a.unitType,n=a.unit,l=((0,O.default)(this.monitoringData,"[0].values")||[]).reverse().map((function(e){return{time:1e3*(0,O.default)(e,"[0]",0),value:(0,C.getSuitableValue)((0,O.default)(e,"[1]",0),r||n)}})),u=[{key:"time",title:t("TIME"),dataIndex:"time",width:"30%",render:function(e){return(0,S.getLocalTime)(e).format("YYYY-MM-DD HH:mm:ss")}},{key:"usage",title:t("USAGE"),dataIndex:"value"}];return g.default.createElement("div",{className:w.default.table},g.default.createElement("div",{className:w.default.box},g.default.createElement("div",{className:w.default.title},t(e)||t("RESOURCE_USAGE")),g.default.createElement(N.Table,{columns:u,dataSource:l,scroll:{y:200},expandIconAsCell:!1,rowKey:"time"})))}},{key:"render",value:function(){var e=this.state,t=e.times,a=e.step,r=this.props.visible,n=this.monitorStore.resourceMetrics,l=n.isLoading,u=n.isRefreshing;return r?g.default.createElement(R.default,{visible:r,onFetch:this.fetchData,onCancel:this.onCancel,loading:l,refreshing:u,times:t,step:a,updateMonitorOptions:this.updateMonitorOptions},g.default.createElement("div",{className:w.default.content},this.renderFilterForm(),this.renderChart(),this.renderTable())):null}},{key:"metrics",get:function(){return(0,y.toJS)(this.monitorStore.resourceMetrics.data)}},{key:"metricType",get:function(){var e;return this.isPvc&&null!==(e=this.state.metrics_filter)&&void 0!==e?e:this.props.detail.metricType}},{key:"clusters",get:function(){return this.workspaceStore.clusters.data.map((function(e){return{label:(0,S.showNameAndAlias)(e),value:e.name,cluster:e,disabled:!e.isReady}}))}},{key:"namespaces",get:function(){var e=(0,y.toJS)(this.projectStore.list.data).map((function(e){return{label:(0,S.getDisplayName)(e),value:e.name,isFedManaged:e.isFedManaged}}));return e.unshift({label:t("ALL"),value:"all"}),e}},{key:"monitoringData",get:function(){return(0,y.toJS)(this.monitorStore.resourceMetrics.data)}},{key:"isPvc",get:function(){return"pvc"===this.props.detail.type}}]),n}(g.default.Component),i.propTypes={visible:b.default.bool,detail:b.default.object,onCancel:b.default.func},i.defaultProps={visible:!1,detail:{},onCancel:function(){}},o=c))||o;a.default=j},function(e,a,r){"use strict";r(15);var n=r(157),l=r(20);Object.defineProperty(a,"__esModule",{value:!0}),a.default=function(e){var a=e.className,r=void 0===a?"":a,n=e.content,l=(0,o.useState)(!0),f=(0,u.default)(l,2),d=f[0],p=f[1];return o.default.createElement("div",{className:(0,c.default)(s.default.manage,r)},o.default.createElement(i.Dropdown,{theme:"dark",content:n,trigger:"click",placement:"bottomRight",onClick:function(){return p(!d)}},o.default.createElement("div",{className:s.default.button},o.default.createElement("span",null,t("MANAGE")),o.default.createElement(i.Icon,{name:d?"caret-down":"caret-up",type:"dark"}))))};var u=l(r(96)),o=n(r(0)),i=r(186),c=l(r(3)),s=l(r(3845))},function(e,a,r){"use strict";var n=r(20);r(12),r(109),r(5),r(11),r(6),r(84),r(16),r(9),r(13),r(10),r(4),r(23),r(24),r(17),r(85),r(62),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.Component=a.default=void 0,r(12),r(109),r(45),r(5),r(11),r(6),r(84),r(28),r(42),r(16),r(34),r(15),r(9),r(13),r(10),r(4),r(22),r(23),r(57),r(24),r(17),r(85),r(62),r(7);var l=n(r(315)),u=n(r(30)),o=n(r(43));r(41);var i=n(r(44)),c=n(r(36)),s=n(r(37)),f=n(r(55)),d=n(r(56)),p=n(r(51)),m=n(r(0)),h=r(14),v=r(239),g=n(r(63)),y=r(186),E=r(52),b=r(791),_=n(r(318)),O=n(r(468)),S=n(r(1048)),C=n(r(858)),D=n(r(1090)),k=n(r(805)),N=n(r(3879));function T(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function R(e){for(var t=1;t=0&&e.props.onScale(t)},e}return(0,l.default)(a,[{key:"render",value:function(){var e=this.props.className;return c.default.createElement(p.default,{className:(0,f.default)(h.default.replica,e)},c.default.createElement("div",{className:h.default.replicaCount},c.default.createElement(m.default,this.replicaStatus)))}},{key:"replicaStatus",get:function(){var e=this.props,t=e.module,a=e.detail,r=e.enableScale,n={};switch(t){default:case"deployments":n={current:a.availablePodNums||0,desire:a.podNums||0};break;case"statefulsets":n={current:(0,d.default)(a,"status.currentReplicas",a.readyPodNums),desire:a.podNums||0};break;case"daemonsets":n={current:(0,d.default)(a,"status.numberReady",0),desire:(0,d.default)(a,"status.desiredNumberScheduled",0)};break;case"gateways":n={current:Array.isArray(a.pods)?a.pods.length:1,desire:(0,d.default)(a,"replicas",0)}}return n.onScale=r?this.handleReplicaChange:null,n}}]),a}(c.default.Component);t.default=g,g.propTypes={module:s.default.string,detail:s.default.object,enableScale:s.default.bool,onScale:s.default.func},g.defaultProps={module:"deployments",enableScale:!0,onScale:function(){}}},function(e,a,r){"use strict";var n=r(20);r(12),r(109),r(5),r(11),r(6),r(16),r(9),r(13),r(10),r(4),r(23),r(24),r(17),r(62),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.Component=a.default=void 0,r(12),r(109),r(45),r(5),r(11),r(6),r(28),r(42),r(16),r(34),r(15),r(9),r(13),r(10),r(4),r(23),r(57),r(24),r(17),r(62),r(7);var l=n(r(315)),u=n(r(30)),o=n(r(36)),i=n(r(37)),c=n(r(55)),s=n(r(56)),f=n(r(51)),d=n(r(0)),p=r(14),m=r(239),h=n(r(63)),v=r(186),g=r(52),y=r(791),E=n(r(318)),b=n(r(858)),_=n(r(805)),O=n(r(3909));function S(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function C(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.cluster,a=e.namespace,r="";return t&&(r+="/klusters/".concat(t)),a&&(r+="/namespaces/".concat(a)),r}},{key:"checkService",value:(a=(0,c.default)(n.default.mark((function e(t){var a,r,l,u;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a=t.name,r=t.cluster,l=t.namespace,a&&l){e.next=3;break}return e.abrupt("return");case 3:return e.next=5,request.get(this.getServiceUrl({name:a,cluster:r,namespace:l}),{},{headers:{"x-check-exist":!0}});case 5:u=e.sent,this.isExistService=u.exist;case 7:case"end":return e.stop()}}),e,this)}))),function(e){return a.apply(this,arguments)})},{key:"fetchService",value:(t=(0,c.default)(n.default.mark((function e(t){var a,r,l,u;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=t.name,r=t.cluster,l=t.namespace,this.isLoading=!0,e.next=4,(0,h.to)(request.get(this.getServiceUrl({name:a,cluster:r,namespace:l})));case 4:u=e.sent,this.service=v.default.services(u),this.isLoading=!1;case 7:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})}]),e}(),u=(0,p.default)(l.prototype,"isExistService",[m.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),o=(0,p.default)(l.prototype,"service",[m.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),i=(0,p.default)(l.prototype,"isLoading",[m.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),(0,p.default)(l.prototype,"checkService",[m.action],Object.getOwnPropertyDescriptor(l.prototype,"checkService"),l.prototype),(0,p.default)(l.prototype,"fetchService",[m.action],Object.getOwnPropertyDescriptor(l.prototype,"fetchService"),l.prototype),l);t.default=g},function(e,a,r){"use strict";r(15);var n=r(20);r(12),r(109),r(5),r(16),r(4),r(23),r(24),r(17),r(62),Object.defineProperty(a,"__esModule",{value:!0}),a.Component=a.default=void 0,r(12),r(109),r(45),r(5),r(28),r(42),r(16),r(4),r(22),r(23),r(57),r(24),r(17),r(62);var l=n(r(315)),u=n(r(43));r(41);var o=n(r(44)),i=n(r(36)),c=n(r(37)),s=n(r(55)),f=n(r(56)),d=n(r(51)),p=n(r(0)),m=r(14),h=r(239),v=n(r(26)),g=n(r(63)),y=r(186),E=r(52),b=r(434),_=r(791),O=n(r(318)),S=n(r(858)),C=n(r(805)),D=n(r(3916));function k(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,d.default)(e);if(t){var n=(0,d.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,f.default)(this,a)}}var N=function(e){(0,s.default)(f,e);var a,r,n=k(f);function f(){var e;(0,i.default)(this,f);for(var a=arguments.length,r=new Array(a),l=0;l-1||t.indexOf("/workspaces/")>-1?localStorage.getItem("federated-cluster"):e}},{key:"namespace",get:function(){return this.props.match.params.namespace}},{key:"workspace",get:function(){return this.props.match.params.workspace}},{key:"type",get:function(){return this.cluster&&!this.workspace?"cluster":this.workspace&&!this.cluster?"workspace":"project"}},{key:"listUrl",get:function(){var e=this.props.match.params.workspace,t=this.props.match.url.split("gateways")[0];return"".concat(t,e?"gateways":"gateways/cluster")}}]),r}(d.default.Component))||l)||l)||l;a.default=C},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(18),r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(18),r(42),r(4),r(23),r(57),r(17);var l=n(r(36)),u=n(r(37)),o=n(r(55)),i=n(r(56)),c=n(r(51)),s=n(r(0)),f=n(r(1)),d=r(186),p=n(r(790)),m=n(r(2046));function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,c.default)(e);if(t){var n=(0,c.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,i.default)(this,a)}}var v={current:"CURRENT",finished:"FINISHED",notfinish:"NOT_SET"},g=function(e){var a=e.step,r=e.state;return s.default.createElement("li",{className:m.default[r]},s.default.createElement("div",{className:m.default.icon},s.default.createElement(d.Icon,{name:a.icon||"appcenter",size:40})),s.default.createElement(p.default,{className:m.default.text,title:t(a.title),description:t(v[r])}))},y=function(e){(0,o.default)(a,e);var t=h(a);function a(){var e;(0,l.default)(this,a);for(var r=arguments.length,n=new Array(r),u=0;u",value:">"},{label:">=",value:">="},{label:"<",value:"<"},{label:"<=",value:"<="}];t.SEVERITY_LEVEL=[{type:"critical",prefixIcon:"information",color:{primary:"#fae7e5",secondary:"#ca2621"},label:"CRITICAL_ALERT",value:"critical"},{type:"warning",prefixIcon:"information",color:{primary:"#fae7e5",secondary:"#f5a623"},label:"ERROR_ALERT",value:"error"},{className:"tag-ffd939",prefixIcon:"information",color:{primary:"#fae7e5",secondary:"#FFD939"},label:"WARNING_ALERT",value:"warning"},{type:"secondary",prefixIcon:"information",color:{primary:"#fae7e5",secondary:"#79879c"},label:"INFO_ALERT",value:"info"}];var c=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.comparator,a=void 0===t?{}:t,r=e.thresholds,n=void 0===r?{}:r;return[o({name:"comparator",placeholder:"CONDITION_OPERATOR",options:i},a),o({type:"number",name:"thresholds",placeholder:"THRESHOLD"},n)]};t.getBaseRuleConfig=c;var s=c({thresholds:{min:0,converter:function(e){return Number(e)},reverser:function(e){return Number(e)}}});t.BASE_RULE_CONFIG=s;var f=c({thresholds:{min:0,max:100,unit:"%",converter:function(e){var t=new l.default(e);return Number(t.div(100).toString())},reverser:function(e){var t=new l.default(e);return Number(t.times(100).toString())}}});t.PERCENT_RULE_CONFIG=f;var d=c({thresholds:{unit:"core",min:0,converter:function(e){return Number(e)},reverser:function(e){return Number(e)}}});t.CORE_RULE_CONFIG=d;var p=c({thresholds:{unit:"GiB",min:0,converter:function(e){var t=new l.default(e),a=new l.default(1024).pow(3);return Number(t.times(a).toString())},reverser:function(e){var t=new l.default(e),a=new l.default(1024).pow(3);return Number(t.div(a).toString())}}});t.GIB_RULE_CONFIG=p;var m=c({thresholds:{unit:"MiB",min:0,converter:function(e){var t=new l.default(e),a=new l.default(1024).pow(2);return Number(t.times(a).toString())},reverser:function(e){var t=new l.default(e),a=new l.default(1024).pow(2);return Number(t.div(a).toString())}}});t.MIB_RULE_CONFIG=m;var h=c({thresholds:{unit:"GB",min:0,converter:function(e){var t=new l.default(e),a=new l.default(1e3).pow(3);return Number(t.times(a).toString())},reverser:function(e){var t=new l.default(e),a=new l.default(1e3).pow(3);return Number(t.div(a).toString())}}});t.GB_RULE_CONFIG=h;var v=c({thresholds:{unit:"KB/s",min:0,converter:function(e){var t=new l.default(e),a=new l.default(1e3);return Number(t.times(a).toString())},reverser:function(e){var t=new l.default(e),a=new l.default(1e3);return Number(t.div(a).toString())}}});t.KBS_RULE_CONFIG=v;var g=c({thresholds:{unit:"Mbps",min:0,converter:function(e){var t=new l.default(e),a=new l.default(1e3).pow(2);return Number(t.times(a).toString())},reverser:function(e){var t=new l.default(e),a=new l.default(1e3).pow(2);return Number(t.div(a).toString())}}});t.MBPS_RULE_CONFIG=g},function(e,a,r){"use strict";r(15);var n=r(20),l=r(157);r(5),r(11),r(18),r(16),r(9),r(4),r(23),r(24),r(17),r(136),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(11),r(18),r(42),r(16),r(9),r(4),r(23),r(57),r(24),r(193),r(17);var u,o,i=n(r(61)),c=n(r(36)),s=n(r(37)),f=n(r(55)),d=n(r(56)),p=n(r(51)),m=n(r(49)),h=l(r(0)),v=n(r(895)),g=n(r(855)),y=n(r(446)),E=r(14),b=r(239),_=n(r(3)),O=r(186),S=n(r(1486)),C=n(r(1488)),D=n(r(2108));function k(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,p.default)(e);if(t){var n=(0,p.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,d.default)(this,a)}}var N=(0,b.observer)((o=function(e){(0,f.default)(r,e);var a=k(r);function r(){var e;(0,c.default)(this,r);for(var t=arguments.length,n=new Array(t),l=0;l/? ]).)*$/;a.PATTERN_EXCLUDE_CHARACTERS=v;var g=/(?=.*?[0-9])/;a.PATTERN_NUMBER=g;var y={name:"name",label:"USERNAME",type:"text",description:"DATABASE_USERNAME_DESC",rules:[{pattern:c,message:t("INVALID_DATABASE_USERNAME_DESC")},{pattern:s,message:t("USERNAME_FORBIDDEN_STRINGS")},{required:!0,message:t("USERNAME_EMPTY_DESC")}],range:{max:26}};a.UserName=y;var E={name:"password",label:"PASSWORD",type:"password",description:t("DATABASE_PASSWORD_DESC"),rules:[{pattern:m,message:t("PASSWORD_LETTER")},{pattern:h,message:t("DATABASE_PASSWORD_CHARACTERS")},{pattern:v,message:t("DATABASE_PASSWORD_CHARACTERS_EXCLUDE")},{pattern:g,message:t("PASSWORD_NUMBER")},{required:!0,message:t("ENTER_PASSWORD_TIP")},{pattern:d,message:t("INVALID_DATABASE_PASSWORD_DESC")}],range:{max:32}};a.Password=E;var b={name:"database",label:"AUTHORIZED_DATABASES",type:"text",description:"AUTHORIZED_DATABASES_DESC",rules:[]};a.Database=b;var _=[i(i({},y),{},{rules:[].concat((0,l.default)(y.rules),[{pattern:/^(?!(clickhouse_operator)$)/,message:t("USERNAME_CANNOT_BE_CLICKHOUSE")}])}),E,{name:"description",label:"DESCRIPTION",type:"textarea",description:"DESCRIPTION_DESC",rules:[]}];a.CKAccount=_;a.getPGAccount=function(e){return[{name:"name",label:"USERNAME",type:"text",description:"PG_USERNAME_DESC",rules:[{pattern:f,message:t("INVALID_PG_USERNAME_DESC")},{pattern:/^(?!(postgres|pgautofailover_monitor|pgautofailover_replicator)$)/,message:t("USERNAME_CANNOT_BE_PROGRES")},{pattern:s,message:t("USERNAME_FORBIDDEN_STRINGS")},{required:!0,message:t("USERNAME_EMPTY_DESC")}],range:{max:26},disabled:e},E,{name:"permission",label:"PERMISSIONS",type:"select",disabled:e,options:[{label:t("GENERAL_PERMISSIONS"),value:"General"},{label:t("ADVANCED_PERMISSIONS"),value:"Advanced"}]}]};var O=[y,E,b,{name:"permission",label:"PERMISSIONS",type:"select",options:[{label:t("GENERAL_PERMISSIONS"),value:"General"},{label:t("ADVANCED_PERMISSIONS"),value:"Advanced"}]},{name:"host",label:"AUTHORIZED_HOSTS",type:"text",description:"AUTHORIZED_HOSTS_DESC"}];a.MySQLAccount=O;var S=[{name:"name",label:"USERNAME",type:"text",description:"KAFKA_USERNAME_DESC",rules:[{pattern:p,message:t("KAFKA_USERNAME_DESC")},{required:!0,message:t("USERNAME_EMPTY_DESC")}],range:{max:64}},{name:"authentication",label:"AUTHENTICATION_MODE",type:"select",options:[{label:"TLS",value:"tls"},{label:"SCRAM-SHA-512",value:"scram-sha-512"}]},{name:"authorization",label:"AUTHORIZATION_MODE",type:"select",disabled:!0,description:"AUTHORIZATION_MODE_DESC",options:[{label:t("SIMPLE_AUTHORIZATION"),value:"simple"}]}];a.KafkaAccount=S;a.DefaultPermissionRuleString='{"type":"allow","operation":"Read","resource":{"type":"topic","patternType":"literal","name":""}}'},function(e,a,r){"use strict";(function(e){var n=r(20);r(12),r(11),r(31),r(6),r(84),r(73),r(18),r(16),r(9),r(13),r(10),r(316),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var l=n(r(96)),u=n(r(43));r(41);var o=n(r(44)),i=n(r(30)),c=n(r(58));r(12),r(11),r(31),r(6),r(84),r(73),r(18),r(28),r(16),r(34),r(15),r(9),r(13),r(10),r(4),r(316),r(22),r(85),r(7);var s=n(r(26)),f=n(r(195)),d=n(r(240)),p=r(440),m=n(r(435)),h=n(r(787)),v=n(r(825)),g=n(r(2289)),y=n(r(1557)),E=n(r(1586)),b=n(r(1587)),_=n(r(105)),O=r(1588),S=r(894);function C(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function D(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:"";e.envError=t},e.envValidator=function(t,a,r){""===e.envError&&r()},e}return(0,u.default)(r,[{key:"componentDidMount",value:function(){var e=this;h().then((function(t){return e.rootStore.registerActions(t.default)}))}},{key:"render",value:function(){var e=this.props,a=e.checkable,r=e.namespace,n=e.isFederated,l=e.isEdgeWize,u=e.cluster,o=e.projectDetail;return s.default.createElement(f.Form.Group,{label:t("ENVIRONMENT_VARIABLE_PL"),desc:t("CONTAINER_ENVIRONMENT_DESC"),checkable:a},s.default.createElement(f.Form.Item,{rules:[{validator:this.envValidator}]},s.default.createElement(d.default,{isEdgeWize:l,rootStore:this.rootStore,name:"".concat(this.prefix,"env"),namespace:r,isFederated:n,cluster:u,projectDetail:o,handleInputError:this.handleErrorStatus})))}},{key:"prefix",get:function(){var e=this.props.prefix;return e?"".concat(e,"."):""}}]),r}(s.default.Component);a.default=v,v.defaultProps={prefix:"",checkable:!0}},function(e,a,r){"use strict";var n=r(20);r(12),r(5),r(11),r(6),r(29),r(87),r(16),r(9),r(13),r(10),r(4),r(316),r(22),r(23),r(17),r(38),r(7),r(32),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(45),r(5),r(11),r(6),r(160),r(29),r(28),r(87),r(42),r(16),r(34),r(15),r(9),r(13),r(10),r(4),r(316),r(22),r(23),r(57),r(17),r(38),r(7),r(32);var l=n(r(315)),u=n(r(58)),o=n(r(43));r(41);var i,c,s,f=n(r(44)),d=n(r(30)),p=n(r(61)),m=n(r(96)),h=n(r(36)),v=n(r(37)),g=n(r(55)),y=n(r(56)),E=n(r(51)),b=n(r(0)),_=n(r(1)),O=n(r(1e3)),S=n(r(851)),C=n(r(437)),D=n(r(1169)),k=n(r(933)),N=n(r(999)),T=n(r(135)),R=n(r(26)),w=n(r(63)),I=r(791),M=n(r(2300)),P=n(r(2302)),A=n(r(829)),j=n(r(1547)),L=n(r(2303));function x(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function U(e){for(var t=1;t1){var a={};return t.forEach((function(e,t){var r,n=null!==(r=null==e?void 0:e.name)&&void 0!==r?r:"";""!==e.name&&(a[n]?a[n].push("".concat(t)):a[n]=[])})),Object.values(a).reduce((function(e,t){return[].concat((0,p.default)(e),(0,p.default)(t))}),[])}return[]}}]),r}(b.default.Component),c.propTypes={name:_.default.string,value:_.default.array,onChange:_.default.func,handleInputError:_.default.func},c.defaultProps={name:"",onChange:function(){},handleInputError:function(){}},i=s))||i;a.default=F},function(e,a,r){"use strict";r(15);var n=r(20);r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(42),r(4),r(23),r(57),r(17);var l=n(r(36)),u=n(r(37)),o=n(r(55)),i=n(r(56)),c=n(r(51)),s=n(r(0)),f=r(186),d=n(r(816));function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,c.default)(e);if(t){var n=(0,c.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,i.default)(this,a)}}var m=function(e){(0,o.default)(r,e);var a=p(r);function r(){return(0,l.default)(this,r),a.apply(this,arguments)}return(0,u.default)(r,[{key:"getImagePullPolicyOptions",value:function(){return[{icon:"timed-task",label:t("IMAGE_PULL_POLICY_ALWAYS"),value:"Always",description:t("IMAGE_PULL_POLICY_ALWAYS_DESC")},{icon:"timed-task",label:t("IMAGE_PULL_POLICY_IFNOTPRESENT"),value:"IfNotPresent",description:t("IMAGE_PULL_POLICY_IFNOTPRESENT_DESC")},{icon:"timed-task",label:t("IMAGE_PULL_POLICY_NEVER"),value:"Never",description:t("IMAGE_PULL_POLICY_NEVER_DESC")}]}},{key:"render",value:function(){return s.default.createElement(f.Form.Item,null,s.default.createElement(d.default,{name:"".concat(this.prefix,"imagePullPolicy"),defaultValue:"IfNotPresent",options:this.getImagePullPolicyOptions()}))}},{key:"prefix",get:function(){var e=this.props.prefix;return e?"".concat(e,"."):""}}]),r}(s.default.Component);a.default=m,m.defaultProps={prefix:""}},function(e,a,r){"use strict";r(15);var n=r(20);r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(42),r(4),r(23),r(57),r(17);var l=n(r(36)),u=n(r(37)),o=n(r(55)),i=n(r(56)),c=n(r(51)),s=n(r(0)),f=r(186),d=n(r(1548)),p=n(r(2309));function m(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,c.default)(e);if(t){var n=(0,c.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,i.default)(this,a)}}var h=function(e){(0,o.default)(r,e);var a=m(r);function r(){return(0,l.default)(this,r),a.apply(this,arguments)}return(0,u.default)(r,[{key:"render",value:function(){return s.default.createElement(f.Form.Group,{label:t("HEALTH_CHECK"),desc:t("HEALTH_CHECKER_DESC"),checkable:!0},s.default.createElement(f.Form.Item,{className:p.default.item,label:t("LIVENESS_CHECK"),desc:t("LIVENESS_CHECK_DESC")},s.default.createElement(d.default,{name:"".concat(this.prefix,"livenessProbe"),probType:"livenessProbe"})),s.default.createElement(f.Form.Item,{className:p.default.item,label:t("READINESS_CHECK"),desc:t("READINESS_CHECK_DESC")},s.default.createElement(d.default,{name:"".concat(this.prefix,"readinessProbe"),probType:"readinessProbe"})),s.default.createElement(f.Form.Item,{className:p.default.item,label:t("STARTUP_CHECK"),tip:t("STARTUP_CHECK_TIP"),desc:t("STARTUP_CHECK_DESC")},s.default.createElement(d.default,{name:"".concat(this.prefix,"startupProbe"),probType:"startupProbe"})))}},{key:"prefix",get:function(){var e=this.props.prefix;return e?"".concat(e,"."):""}}]),r}(s.default.Component);a.default=h,h.defaultProps={prefix:""}},function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(11),r(84),r(18),r(16),r(10),r(4),r(23),r(17),r(85),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(11),r(84),r(18),r(42),r(16),r(10),r(4),r(23),r(57),r(17),r(85);var l=n(r(36)),u=n(r(37)),o=n(r(55)),i=n(r(56)),c=n(r(51)),s=n(r(0)),f=n(r(26)),d=n(r(63)),p=r(52),m=r(72),h=r(186),v=n(r(872)),g=n(r(951)),y=n(r(2313)),E=n(r(2323));function b(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,c.default)(e);if(t){var n=(0,c.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,i.default)(this,a)}}var _=function(e){(0,o.default)(r,e);var a=b(r);function r(e){var n;return(0,l.default)(this,r),(n=a.call(this,e)).limitError="",n.valueRenderer=function(e){return s.default.createElement(h.Tag,{className:E.default.type,type:"init"===e.value?"warning":"default"},e.label)},n.renderImageForm=function(){var e=n.props,t=e.data,a=e.namespace,r=e.cluster,l=e.type,u=e.isEdit,o=e.isEdgeWize,i=n.imageRegistries,c=n.getFormTemplate(t,i);return s.default.createElement(y.default,{className:E.default.imageSearch,name:"image",namespace:a,formTemplate:c,imageRegistries:i,isEdgeWize:o,cluster:r,type:u?"Edit":l})},n.handleError=function(e){n.limitError=e},n.limitValidator=function(e,t,a){""!==n.limitError&&a({message:""}),a()},n.duplicatedNameValidator=function(e,a,r){n.props.containers.map((function(e){return e.name})).filter((function(e){return e!==n.state.originName})).includes(a)&&r({message:t("NAME_EXIST_DESC")}),r()},n.state={originName:e.data.name},n}return(0,u.default)(r,[{key:"getGpuLimit",value:function(){return(0,p.gpuLimitsArr)(this.props.workspaceQuota)}},{key:"getFormTemplate",value:function(e){if(e&&e.image&&!e.pullSecret){var t=e.annotationOfImagePullSecrets;!(0,d.default)(e.annotationOfImagePullSecrets)&&t[e.name]&&(e.pullSecret=t[e.name])}return e}},{key:"renderAdvancedSettings",value:function(){var e=this.props,a=e.defaultContainerType,r=e.onContainerTypeChange,n=e.supportGpuSelect,l=this.defaultResourceLimit;return s.default.createElement(g.default,{defaultShow:(0,d.default)(l)},s.default.createElement(s.default.Fragment,null,s.default.createElement(h.Columns,{className:E.default.columns},s.default.createElement(h.Column,null,s.default.createElement(h.Form.Item,{label:t("CONTAINER_NAME"),desc:t("NAME_DESC"),rules:[{required:!0,message:t("NAME_EMPTY_DESC")},{pattern:m.PATTERN_NAME,message:t("INVALID_NAME_DESC",{message:t("NAME_DESC")})},{validator:this.duplicatedNameValidator}]},s.default.createElement(h.Input,{name:"name",defaultValue:"container-".concat((0,p.generateId)()),maxLength:63}))),s.default.createElement(h.Column,null,s.default.createElement(h.Form.Item,{label:t("CONTAINER_TYPE")},s.default.createElement(h.Select,{name:"type",defaultValue:a,options:this.containerTypes,onChange:r,valueRenderer:this.valueRenderer})))),s.default.createElement(h.Alert,{className:"margin-b12",type:"info",message:t("CONTAINER_RESOURCE_LIMIT_TIP")}),s.default.createElement(h.Form.Item,{rules:[{validator:this.limitValidator,checkOnSubmit:!0}]},s.default.createElement(v.default,{name:"resources",defaultValue:l,onError:this.handleError,workspaceLimitProps:this.workspaceLimitProps,supportGpuSelect:n}))))}},{key:"render",value:function(){var e=this.props.className;return s.default.createElement(h.Form.Group,{className:e,label:t("CONTAINER_SETTINGS"),desc:t("CONTAINER_SETTINGS_DESC"),noWrapper:!0},this.renderImageForm(),this.renderAdvancedSettings())}},{key:"defaultResourceLimit",get:function(){var e=this.props.limitRange,t=void 0===e?{}:e;if(t.defaultRequest||t.default)return{requests:t.defaultRequest||{},limits:t.default||{}}}},{key:"containerTypes",get:function(){return[{label:t("WORKER_CONTAINER"),value:"worker"},{label:t("INIT_CONTAINER"),value:"init"}]}},{key:"imageRegistries",get:function(){var e=this.props.imageRegistries;return(void 0===e?[]:e).map((function(e){var t=(0,f.default)(e,'data[".dockerconfigjson"].auths',{}),a=Object.keys(t)[0]||"",r=(0,f.default)(t[a],"username"),n=e.isFedManaged?(0,f.default)(e,"clusters[0].name"):e.cluster,l=Boolean((0,f.default)(e,'annotations["secret.kubesphere.io/force-insecure"]',!1)),u=Boolean((0,f.default)(e,"isDefault",!1)),o=(0,f.default)(t[a],"auth");return{url:a,username:r,label:e.aliasName?"".concat(e.aliasName,"(").concat(e.name,")"):e.name,value:e.name,cluster:n,isSkipTLS:l,isDefault:u,auth:o}}))}},{key:"workspaceLimitProps",get:function(){var e=this.props.workspaceQuota;return(0,d.default)(e)?{}:{limits:{cpu:(0,f.default)(e,"limits.cpu"),memory:(0,f.default)(e,"limits.memory")},requests:{cpu:(0,f.default)(e,"requests.cpu"),memory:(0,f.default)(e,"requests.memory")},gpuLimit:this.getGpuLimit()}}}]),r}(s.default.Component);a.default=_},function(e,t,a){"use strict";a(15);var r=a(157),n=a(20);a(84),a(27),a(931),a(85),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(84),a(27),a(931),a(436),a(319),a(24),a(193),a(85);var l=n(a(315)),u=n(a(30)),o=n(a(96)),i=n(a(58)),c=a(186),s=n(a(1040)),f=n(a(3)),d=r(a(0)),p=n(a(2310)),m=function(e){var t=e.unit,a=e.value,r=e.defaultValue,n=e.onChange,m=e.min,h=void 0===m?Number.NEGATIVE_INFINITY:m,v=e.max,g=void 0===v?Number.POSITIVE_INFINITY:v,y=e.integer,E=void 0!==y&&y,b=e.error,_=void 0!==b&&b,O=e.onBlur,S=(0,i.default)(e,["unit","value","defaultValue","onChange","min","max","integer","error","onBlur"]),C=null!=a?a:r,D=d.useState(C===1/0?void 0:C),k=(0,o.default)(D,2),N=k[0],T=k[1],R=d.useState(_),w=(0,o.default)(R,2),I=w[0],M=w[1],P=d.useReducer((function(e){return e+1}),0),A=(0,o.default)(P,2),j=A[0],L=A[1];d.useEffect((function(){a!==N&&T(a===1/0?void 0:a)}),[a]);var x=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a="string"==typeof e?E?parseInt(e,10):parseFloat(e):e;if(void 0===e||""===e||isNaN(a))return T(""),null==n||n(""),void(t&&void 0!==e&&""!==e&&M(!0));a=Math.max(h,Math.min(a,g)),T(a),null==n||n(a),M(!1)},U=E?/[-0-9]/:/[-.0-9]/;return d.createElement(c.Input,(0,l.default)({},S,{className:(0,f.default)(p.default.wrapper,(0,u.default)({},p.default.error,I||_)),key:j,value:N,onChange:function(e){var t=e.target.value,a=t.includes("-"),r=t.includes("."),n=Number(t);(Number.isNaN(n)||(0,s.default)(n))&&(r||a?(M(!1),T(e.target.value)):x(t,!0))},onKeyPress:function(e){"e"!==e.key&&"E"!==e.key||e.preventDefault(),U.test(e.key)||e.preventDefault()},suffix:t,onBlur:function(){x(N,!1),M(!1),L(),null==O||O()}}))};t.default=m},function(e,t,a){"use strict";a(15);var r=a(20);a(4),a(23),a(17),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(45),a(42),a(4),a(23),a(57),a(17);var n=r(a(36)),l=r(a(55)),u=r(a(56)),o=r(a(51));function i(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,o.default)(e);if(t){var n=(0,o.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,u.default)(this,a)}}var c=function(e){(0,l.default)(a,e);var t=i(a);function a(){return(0,n.default)(this,a),t.apply(this,arguments)}return a}(r(a(1041)).default);t.default=c},function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(42),r(4),r(23),r(57),r(17);var l=n(r(36)),u=n(r(37)),o=n(r(55)),i=n(r(56)),c=n(r(51)),s=n(r(0)),f=n(r(3)),d=n(r(1)),p=n(r(74)),m=n(r(800)),h=r(186),v=n(r(799)),g=n(r(2347));function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,c.default)(e);if(t){var n=(0,c.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,i.default)(this,a)}}var E=function(e){(0,o.default)(r,e);var a=y(r);function r(){var e;(0,l.default)(this,r);for(var t=arguments.length,n=new Array(t),u=0;u=70&&a<90&&(t=e.get(70)),a>=90&&(t=e.get(100)),b(t)}),[a,n]),o.default.createElement("div",{className:i.default.progress},o.default.createElement("div",{className:i.default.line_box},o.default.createElement("div",{className:i.default.line_split_items,style:{background:_}}),o.default.createElement("div",{className:i.default.line_block_mask_items,style:{width:"".concat(100-a<0?0:100-a,"%"),background:s}}),o.default.createElement("div",{className:i.default.line_block_items,style:{background:h}})),o.default.createElement("span",{style:{color:E}},O))},a(5),a(6),a(160),a(29),a(73),a(18),a(326),a(190),a(98),a(4),a(319),a(38),a(7),a(32);var l=n(a(246)),u=n(a(96)),o=r(a(0)),i=n(a(2454))},function(e,t,a){"use strict";a(15);var r=a(20);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(a(36)),l=a(52),u=r(a(26)),o=r(a(1104)),i=r(a(2477));t.default=function e(t){var a=this;(0,n.default)(this,e),this.store=null,this.setStore=function(e){a.store=e},this.isCalico=function(e){var t,a,r,n=null!==(t=null===(a=window.parent)||void 0===a?void 0:a.globals)&&void 0!==t?t:window.globals,o=(null==n||null===(r=n.app)||void 0===r?void 0:r.isMultiCluster)?(0,u.default)(n,"clusterConfig.".concat(e,".ksVersion")):(0,u.default)(n,"ksConfig.ksVersion");return(0,l.compareVersion)(o,"3.4.1")>=0},this.isOutdated=function(e){var t,a,r,n=null!==(t=null===(a=window.parent)||void 0===a?void 0:a.globals)&&void 0!==t?t:window.globals;if(!(null==n||null===(r=n.app)||void 0===r?void 0:r.isMultiCluster))return!1;var o=(0,u.default)(n,"clusterConfig.".concat(e,".ksVersion"));return(0,l.compareVersion)(o,"3.4.0")<0},this.getStoreByCluster=function(e){return a.isCalico(e)?i.default:o.default},this.setStoreByCluster=function(e){var t=a.getStoreByCluster(e);a.setStore(new t)},t&&(this.store=t)}},function(e,t,a){"use strict";var r=a(157),n=a(20);a(12),a(11),a(6),a(16),a(9),a(13),a(10),a(7),Object.defineProperty(t,"__esModule",{value:!0}),t.NodeTreeSelect=g,t.default=void 0,a(12),a(11),a(6),a(28),a(16),a(34),a(15),a(9),a(13),a(10),a(4),a(22),a(7);var l=n(a(43));a(41);var u=n(a(30)),o=n(a(44)),i=n(a(96)),c=r(a(0)),s=a(186),f=n(a(953)),d=n(a(1318)),p=n(a(2484));function m(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function h(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:[];return null==t||t.map((function(t){if(a.push(t.parentKey),t.children)return e(t.children,a)})),a}(S)}),[S]);function U(e){var t,a,n,l=e.metadata,u=l.name,o=l.annotations["kubesphere.io/alias-name"],s=((null==b||null===(t=b.current)||void 0===t?void 0:t.offsetWidth)||290)-(null===(a=e.parentKey)||void 0===a?void 0:a.length)/2*22-80,f=E?" (".concat((null===(n=e.spec.nodes)||void 0===n?void 0:n.length)||0,")"):"";return i.default.createElement(i.default.Fragment,null,i.default.createElement("span",{className:m.default["tree-node-title"],title:(o||u)+f,style:{minWidth:s,maxWidth:s}},i.default.createElement("span",{className:m.default["tree-node-title-text"]},o||u),u&&o&&i.default.createElement("span",{className:m.default["tree-node-des"]},"(",u,")"),f),i.default.createElement("span",{className:(0,c.default)("rc-tree-node-right",j===e.key&&"rc-tree-node-select")},null==r?void 0:r(e)))}return(0,i.useEffect)((function(){T(a)}),[a]),(0,i.useEffect)((function(){if(n){var e=null==x?void 0:x.filter((function(e){return e.find((function(e){return null==e?void 0:e.includes(n)}))}));M((0,s.default)((0,f.default)(e)))}else l&&M(l)}),[n,l]),(0,i.useEffect)((function(){C(function e(t){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t=t.map((function(t){var r;t.key=t.metadata.name;var n=[t.key,null===(r=t.metadata.annotations)||void 0===r?void 0:r["kubesphere.io/alias-name"]];return t.aliasName=n[1]?"".concat(n[1],"(").concat(n[0],")"):n[0],t.parentKey=[].concat((0,u.default)(a),n),t.title=U(t),t.spec.children&&(t.children=e(t.spec.children,t.parentKey)),t}))}(t))}),[t,a,j]),i.default.createElement("div",{ref:b},i.default.createElement(d.default,{treeData:S,icon:function(e){return(null==h?void 0:h(e))||i.default.createElement("img",{width:16,src:"/assets/disk_group.svg",alt:""})},switcherIcon:g,itemHeight:36,autoExpandParent:N,expandedKeys:I,onExpand:function(e){M(e),T(!1)},onClick:function(e,t){if(j.includes(t.key)||L(t.key),!t.selected&&p){var a,r=!(null===(a=t.spec.children)||void 0===a?void 0:a.length);null==p||p(v(v({},t),{},{selected:!t.selected}),r)}},filterTreeNode:n&&function(e){var t,a,r;return!!n&&(e.key.includes(n)||(null===(t=e.metadata)||void 0===t||null===(a=t.annotations)||void 0===a||null===(r=a["kubesphere.io/alias-name"])||void 0===r?void 0:r.includes(n)))}}))}var E=y;t.default=E},,function(e,t,a){e.exports={status:"_1dL0EeNSXN669XzDa7U4qr","node-tree":"_1SgVDKBokdg6tuQpWCF-c","node-tree-left":"vmuMPLSpP2B_7LmOZJDLB","node-tree-right":"_6xV5xu34ztjX6K4aYg5_",title:"_3C4btdBl2rx-5OjQHqIWJb","node-group__tree-item":"_2kQA2n6B5FG12JjJZTCpwH","node-group__tree-item-margin":"_3sUzjEfV2GUFiQ5KxGgxrO","node-group__tree-item-title":"_2cxoKgG4S6Z0qODlPgrT7O","node-group__tree-item-icon-hover":"_2zJyN7BKJvEHVizJbpVT-c","node-group__tree-item-add":"_412g1f0bUVJPkxVUpMx6a","node-tooltip-item":"AArIX4vLMptXXa3UW80e1","node-tooltip-active":"_1t4Rx4z68MRfpYggELWTv3"}},function(e,t,a){e.exports={nodeSelectorsWrapper:"_3Ntw-JKc4povnOp_c2BVl",nodeSelectors:"_1_7JWPBL0Vh2u4OtOnKKm",add:"tpwxGXK_uiC1ZlYfss91c",confirm:"V1tSzvZVaXXeUDnHfLcaZ","edge-table-selector-box":"_3ZkpGzChQs7JJ1TkvWSlOJ",columns:"_3Duos79G-2Eubl4CnnlyHQ",column:"_2WynhuPhAS_PYjxZy6lEmC","select-nodes":"_3VGVKprUvfs8AeufyvgfM2","select-nodes-normal":"_3NO1k8Sa2jw9c2uiH9g5b","select-nodes-icon":"_30A_R4LX4qncbURGVN1kDf",trees:"_1CZYo9RhgLGtYsjUW7khGO",switch:"_2nGfUqPrwCtStabrmKQkm_"}},function(e,t,a){e.exports={editContainer:"_2TTFcQ4vnnv51E8aVOlqFz",title:"_3PgCFKRywYHFJwJrJKxF3m",container:"_2fym1soTGH0nCcnJNCZACw",card:"_25qqt5BRSnexUkWmCPRQcM",listItem:"_1h6ZZgEGOGKQWEfx1sDpzn",action:"f7esabqGfBkJU8t1jqErp",workspace:"Mp4BNazHY5E22a2HDXjTP",edit:"_2CYvqg-lEuCoI3kTR9LSG_",info:"_29cU7cbTcEu9SKI99wmXj0",editRow:"_2MaigTYE6ndKSETELA5RYY",confirm:"_3DMLykQMW4cpIWefbESdUs",editForm:"osoVqI1mtNOROFTJFuHTq",switch:"_2cBLDmbg9s7yq1QtcE2ZnP",codeWrapper:"_2kpTK_dneC0klEnq214ET9",tabPanel:"fiprQmqMIUoOnRlM_XLHP",option:"_3A-tSaOoHgsRn0jXj7EHqh",label:"_2PaxwDrSSXY0bv-vsZ3gR-",description:"i8TRLE1iF7-TfKCpvwaFM",desc:"rVLbCCPYagcj54caTsfVJ"}},function(e,t,a){"use strict";var r=a(20);a(12),a(5),a(11),a(6),a(18),a(16),a(9),a(13),a(10),a(4),a(23),a(17),a(7),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(12),a(45),a(5),a(11),a(6),a(18),a(28),a(42),a(16),a(34),a(15),a(9),a(13),a(10),a(4),a(22),a(23),a(57),a(17),a(7);var n=r(a(43)),l=r(a(30)),u=r(a(58));a(41);var o=r(a(44)),i=r(a(36)),c=r(a(37)),s=r(a(55)),f=r(a(56)),d=r(a(51)),p=r(a(68)),m=r(a(26));function h(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function v(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};return"".concat(e.getNetworkUrl,"/").concat(e.getPath(t),"/").concat(e.module)},e.migrate=function(t,a,r){var n="".concat(e.getNetworkUrl,"/").concat(e.getPath({cluster:t}),"/ippoolmigrations");return e.submitting(request.post(n,{oldippool:a,newippool:r},y))},e.getNetworkResourceUrl=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return"".concat(e.getNetworkUrl,"/").concat(e.module,"/").concat(t.name,"/migrate")},e}return(0,c.default)(l,[{key:"fetchMigrateIpPool",value:(a=(0,o.default)(n.default.mark((function e(){var t,a,r,l,o,i,c,s=this,f=arguments;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=f.length>0&&void 0!==f[0]?f[0]:{},a=t.cluster,r=t.namespace,l=t.name,o=(0,u.default)(t,["cluster","namespace","name"]),e.next=3,request.get(this.getNetworkResourceUrl({name:l}),this.getFilterParams(o));case 3:return i=e.sent,c=((0,m.default)(i,"items")||[]).map((function(e){return v({cluster:a,namespace:r},s.mapper(e))})),e.abrupt("return",c);case 6:case"end":return e.stop()}}),e,this)}))),function(){return a.apply(this,arguments)})},{key:"fetchNamespacesIpPools",value:(t=(0,o.default)(n.default.mark((function e(){var t,a,r,l,o,i=this,c=arguments;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=c.length>0&&void 0!==c[0]?c[0]:{},a=t.namespace,r=t.cluster,l=(0,u.default)(t,["namespace","cluster"]),e.next=3,request.get("".concat(this.getNetworkUrl).concat(this.getPath({namespace:a,cluster:r}),"/").concat(this.module),this.getFilterParams(l));case 3:return o=e.sent,e.abrupt("return",o.map((function(e){return v({cluster:r,namespace:a},i.mapper(e))})));case 5:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})},{key:"apiVersion",get:function(){return this.getNetworkUrl}}]),l}(p.default);t.default=E},function(e,t,a){"use strict";a(15);var r=a(20);a(5),a(187),a(11),a(31),a(84),a(18),a(137),a(4),a(23),a(17),a(85),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(45),a(5),a(187),a(11),a(31),a(84),a(18),a(42),a(137),a(4),a(23),a(57),a(17),a(85);var n=r(a(315)),l=r(a(58)),u=r(a(61)),o=r(a(36)),i=r(a(37)),c=r(a(55)),s=r(a(56)),f=r(a(51)),d=r(a(0)),p=a(239),m=r(a(63)),h=r(a(194)),v=r(a(26)),g=a(186);function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,f.default)(e);if(t){var n=(0,f.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,s.default)(this,a)}}var E=function(e){var t=function(t){(0,c.default)(r,t);var a=y(r);function r(){var e;(0,o.default)(this,r);for(var t=arguments.length,n=new Array(t),l=0;l0&&void 0!==arguments[0]?arguments[0]:{},t=e.cluster,a=e.namespace,r="";return t&&(r+="/clusters/".concat(t)),a&&(r+="/namespaces/".concat(a)),r}},{key:"apiVersion",get:function(){return"/kapis/resources.kubesphere.io/v1alpha3/customresourcedefinitions"}}]),a}(r(a(68)).default);t.default=d},function(e,a,r){"use strict";r(15);var n=r(20);r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(42),r(4),r(23),r(57),r(17);var l=n(r(36)),u=n(r(37)),o=n(r(55)),i=n(r(56)),c=n(r(51)),s=n(r(26)),f=n(r(74)),d=n(r(0)),p=r(186),m=r(72);function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,c.default)(e);if(t){var n=(0,c.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,i.default)(this,a)}}var v=function(e){(0,o.default)(r,e);var a=h(r);function r(){return(0,l.default)(this,r),a.apply(this,arguments)}return(0,u.default)(r,[{key:"componentDidMount",value:function(){"ExternalName"!==(0,s.default)(this.formTemplate,"spec.type")&&(0,f.default)(this.formTemplate,"spec",{type:"ExternalName"})}},{key:"render",value:function(){var e=this.props.formRef;return d.default.createElement(p.Form,{data:this.formTemplate,ref:e},d.default.createElement(p.Form.Item,{label:t("EXTERNAL_SERVICE_ADDRESS"),desc:t("EXTERNAL_SERVICE_ADDRESS_DESC"),rules:[{required:!0,message:t("EXTERNAL_SERVICE_ADDRESS_EMPTY_DESC")}]},d.default.createElement(p.Input,{name:"spec.externalName",placeholder:"foo.bar.example.com"})))}},{key:"formTemplate",get:function(){var e=this.props,t=e.formTemplate,a=e.module;return(0,s.default)(t,m.MODULE_KIND_MAP[a],t)}}]),r}(d.default.Component);a.default=v},function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(6),r(84),r(16),r(4),r(23),r(17),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(6),r(84),r(28),r(42),r(16),r(4),r(23),r(57),r(24),r(193),r(17),r(7);var l=n(r(36)),u=n(r(37)),o=n(r(55)),i=n(r(56)),c=n(r(51)),s=n(r(26)),f=n(r(74)),d=n(r(242)),p=n(r(63)),m=n(r(0)),h=r(186),v=n(r(816)),g=n(r(829)),y=n(r(1339)),E=r(52),b=r(72),_=n(r(1618)),O=n(r(2640));function S(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,c.default)(e);if(t){var n=(0,c.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,i.default)(this,a)}}var C=function(e){(0,o.default)(r,e);var a=S(r);function r(){var e;(0,l.default)(this,r);for(var n=arguments.length,u=new Array(n),o=0;o0){var n=[];a.forEach((function(e){return e.name&&e.port?n.includes(e.name)?r({message:t("PORT_INPUT_DESC")}):e.name&&(e.name.length>63||!b.PATTERN_PORT_NAME.test(e.name))?r({message:t("PORT_NAME_DESC")}):void n.push(e.name):r({message:t("INVALID_PORT")})}))}r()},e.labelsValidator=function(e,a,r){return a?(0,p.default)(a)?r({message:t("ENTER_SELECTOR_TIP")}):(0,E.isValidLabel)(a)?r():r({message:t("LABEL_FORMAT_DESC")}):r()},e}return(0,u.default)(r,[{key:"renderTypeSelect",value:function(){return m.default.createElement(h.Form.Item,{label:t("INTERNAL_ACCESS_MODE")},m.default.createElement(v.default,{className:"margin-b12",value:this.state.serviceType,onChange:this.handleTypeChange,options:this.types}))}},{key:"renderLabelSelector",value:function(){return m.default.createElement(h.Form.Item,{label:t("WORKLOAD_SELECTOR"),rules:[{required:!0,message:t("ENTER_SELECTOR_TIP")},{validator:this.labelsValidator}]},m.default.createElement(_.default,{name:"spec.selector",cluster:this.props.cluster,namespace:this.namespace,addText:t("ADD")}))}},{key:"renderPorts",value:function(){return m.default.createElement(h.Form.Group,{label:t("PORT_PL"),desc:t("SERVICE_PORTS_DESC")},m.default.createElement(h.Form.Item,{rules:[{required:!0,message:t("PORT_EMPTY")},{validator:this.portsValidator,checkOnSubmit:!0}]},m.default.createElement(g.default,{name:"spec.ports",itemType:"object",addText:t("ADD")},m.default.createElement(y.default,null))))}},{key:"render",value:function(){var e=this.props.formRef;return m.default.createElement("div",{className:O.default.wrapper},m.default.createElement(h.Form,{data:this.formTemplate,ref:e},this.renderTypeSelect(),this.renderLabelSelector(),this.renderPorts()))}},{key:"formTemplate",get:function(){var e=this.props,t=e.formTemplate,a=e.module;return(0,s.default)(t,b.MODULE_KIND_MAP[a],t)}},{key:"namespace",get:function(){return(0,s.default)(this.formTemplate,"metadata.namespace")}},{key:"types",get:function(){return[{icon:"cluster",label:t("VIRTUAL_IP_TITLE"),description:t("VIRTUAL_IP_DESC"),value:"virtualIP"},{icon:"blockchain",label:t("INTERNAL_DOMAIN_NAME"),description:t("INTERNAL_DOMAIN_NAME_DESC"),value:"headlessSelector"}]}}]),r}(m.default.Component);a.default=C},function(e,a,r){"use strict";var n=r(20);r(12),r(5),r(11),r(6),r(97),r(16),r(9),r(13),r(10),r(4),r(23),r(24),r(17),r(62),r(64),r(75),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var l=n(r(30)),u=n(r(36)),o=n(r(37)),i=n(r(55)),c=n(r(56)),s=n(r(51));r(12),r(45),r(5),r(11),r(6),r(28),r(97),r(42),r(16),r(34),r(15),r(9),r(13),r(10),r(4),r(23),r(57),r(24),r(17),r(62),r(64),r(75),r(7);var f=n(r(800)),d=n(r(158)),p=n(r(0)),m=r(186),h=n(r(799)),v=n(r(1098)),g=r(72),y=n(r(2636));function E(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function b(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};return"/".concat(e.apiVersion).concat(e.getPath(t),"/").concat(e.module).concat(t.dryRun?"?dryRun=All":"")},e.getWatchListUrl=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return"/".concat(e.apiVersion,"/watch").concat(e.getPath(t),"/").concat(e.module)},e.getResourceUrl=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return"/kapis/resources.kubesphere.io/v1alpha3".concat(e.getPath(t),"/").concat(e.module)},e.getBuilderTemplate=function(){var t=(0,i.default)(l.default.mark((function t(a){return l.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,request.get("/apis/devops.kubesphere.io/v1alpha1".concat(e.getPath(a),"/s2ibuildertemplates"));case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),(0,n.default)(e,"fetchDetail",o,(0,f.default)(e)),e}return(0,s.default)(r,[{key:"creatBinary",value:function(e,t,a){var r=y.default.b2iBuilders({name:e,namespace:t});return request.post("/apis/devops.kubesphere.io/v1alpha1".concat(this.getPath({namespace:t,cluster:a}),"/s2ibinaries/").concat(e),r)}},{key:"verifyRepoReadable",value:(t=(0,i.default)(l.default.mark((function e(t,a,r,n){var u;return l.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=2;break}return e.abrupt("return");case 2:return u=a?{remoteUrl:t,secretRef:{name:a,namespace:r}}:{remoteUrl:t},e.next=5,request.post("/kapis/resources.kubesphere.io/v1alpha2".concat(this.getPath({cluster:n}),"git/verify"),u,{},(function(e){var t=(0,v.default)(e,"message","");return t?Promise.resolve({message:t}):Promise.reject(e)}));case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e,this)}))),function(e,a,r,n){return t.apply(this,arguments)})}]),r}(E.default),o=(0,h.default)(u.prototype,"fetchDetail",[g.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(){var t=(0,i.default)(l.default.mark((function t(a){var r,n,u,o;return l.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=a.cluster,n=a.namespace,u=a.name,e.isLoading=!0,t.next=4,request.get("/apis/devops.kubesphere.io/v1alpha1".concat(e.getPath({namespace:n}),"/s2ibuilders/").concat(u),void 0,void 0,(function(e){if("NotFound"===e.reason)return e;Promise.reject(e)}));case 4:return o=t.sent,e.detail=e.mapper(o),e.detail.cluster=r,e.isLoading=!1,t.abrupt("return",e.detail);case 9:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()}}),u);t.default=O},function(e,t,a){"use strict";var r=a(20);a(12),a(5),a(11),a(6),a(18),a(16),a(27),a(9),a(13),a(10),a(4),a(23),a(17),a(7),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(12),a(45),a(5),a(11),a(6),a(18),a(28),a(42),a(16),a(27),a(34),a(15),a(9),a(13),a(10),a(4),a(22),a(23),a(57),a(17),a(7);var n=r(a(43)),l=r(a(61)),u=r(a(30)),o=r(a(58));a(41);var i,c=r(a(44)),s=r(a(36)),f=r(a(37)),d=r(a(55)),p=r(a(56)),m=r(a(51)),h=r(a(49)),v=r(a(26)),g=a(14);function y(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function E(e){for(var t=1;t0&&void 0!==p[0]?p[0]:{},a=t.cluster,r=t.workspace,u=t.namespace,i=t.more,t.devops,c=(0,o.default)(t,["cluster","workspace","namespace","more","devops"]),this.list.isLoading=!0,c.limit=c.limit||10,c.sortBy="createTime",e.next=6,request.get(this.getUrl({cluster:a,workspace:r}),c);case 6:return s=e.sent,f=(0,v.default)(s,"items",[]).map((function(e){return E({cluster:a,namespace:u,workspace:r},d.mapper(e))})),this.list.update(E(E({data:i?[].concat((0,l.default)(this.list.data),(0,l.default)(f)):f,total:s.totalItems||s.totalCount||s.total_count||f.length||0},c),{},{limit:Number(c.limit)||10,page:Number(c.page)||1,isLoading:!1},this.list.silent?{}:{selectedRowKeys:[]})),e.abrupt("return",f);case 10:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})},{key:"create",value:function(e,t){var a=e.cluster,r=(0,v.default)(t,"metadata.name"),n=this.getUrl({cluster:a,name:r});return this.submitting(request.post(n,t))}},{key:"patch",value:function(e,t){var a=e.cluster,r=(0,v.default)(t,"metadata.name"),n=this.getUrl({cluster:a,name:r});return request.patch(n,t)}},{key:"delete",value:function(e){var t=e.cluster,a=e.name,r=this.getUrl({cluster:t,name:a});return this.submitting(request.delete(r))}}]),r}(r(a(68)).default),(0,h.default)(i.prototype,"fetchList",[g.action],Object.getOwnPropertyDescriptor(i.prototype,"fetchList"),i.prototype),(0,h.default)(i.prototype,"create",[g.action],Object.getOwnPropertyDescriptor(i.prototype,"create"),i.prototype),(0,h.default)(i.prototype,"patch",[g.action],Object.getOwnPropertyDescriptor(i.prototype,"patch"),i.prototype),(0,h.default)(i.prototype,"delete",[g.action],Object.getOwnPropertyDescriptor(i.prototype,"delete"),i.prototype),i);t.default=_},,,function(e,a,r){"use strict";r(15);var n=r(20);r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(42),r(4),r(23),r(57),r(17);var l=n(r(36)),u=n(r(37)),o=n(r(55)),i=n(r(56)),c=n(r(51)),s=n(r(0)),f=n(r(1)),d=n(r(800)),p=r(186),m=n(r(790)),h=n(r(841)),v=n(r(2798));function g(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,c.default)(e);if(t){var n=(0,c.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,i.default)(this,a)}}var y=function(e){(0,o.default)(r,e);var a=g(r);function r(e){var t;(0,l.default)(this,r),(t=a.call(this,e)).triggerChange=(0,d.default)((function(){var e=t.state,a=e.mode,r=e.config;t.props.onChange({mode:a,config:r})}),300),t.handleModeChange=function(e){t.setState({mode:e},(function(){t.triggerChange()}))},t.handleConfigChange=function(e){t.setState({config:e},(function(){t.triggerChange()}))};var n=e.data,u=n.mode,o=n.config;return t.state={mode:u,config:o},t}return(0,u.default)(r,[{key:"render",value:function(){var e=this.props,a=e.title,r=e.showSelect,n=e.selectDisabled,l=e.editorClassName,u=e.readOnly,o=this.state,i=o.mode,c=o.config;return s.default.createElement("div",{className:v.default.wrapper},s.default.createElement("div",{className:v.default.header},s.default.createElement("div",{className:v.default.title},s.default.createElement(p.Icon,{name:"coding",size:20}),s.default.createElement(m.default,{title:t(a)})),r&&s.default.createElement("div",{className:v.default.select},s.default.createElement(p.Select,{disabled:n,options:this.options,value:i,onChange:this.handleModeChange}))),s.default.createElement(h.default,{className:l,options:{readOnly:u},mode:i,value:c,onChange:this.handleConfigChange}))}},{key:"options",get:function(){return[{label:"YAML",value:"yaml"},{label:"Properties",value:"properties"},{label:"JSON",value:"json"},{label:"Text",value:"text"}]}}]),r}(s.default.Component);a.default=y,y.propTypes={data:f.default.object,showSelect:f.default.bool,onChange:f.default.func},y.defaultProps={data:{mode:"yaml",config:""},showSelect:!0,onChange:function(){}}},,,,,,,,,,,,,,,,,,function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(11),r(84),r(18),r(16),r(10),r(85),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var l=n(r(315));r(5),r(11),r(84),r(18),r(16),r(10),r(4),r(85);var u=n(r(60)),o=n(r(0)),i=r(186),c=r(72),s=n(r(2917)),f=function(e){var a=e.name,r=e.value;return o.default.createElement("div",{className:s.default.accessMode},o.default.createElement("p",{className:"name"},"".concat(a,"(").concat(r,")")),o.default.createElement("p",{className:"desc"},t("ACCESS_MODE_".concat(r))))},d=function(e){if(e.loading)return null;var t=Object.keys(c.ACCESS_MODES).map((function(e){return{label:o.default.createElement(f,{name:e,value:c.ACCESS_MODES[e]}),value:e}}));return(0,u.default)(e.supportedAccessModes)&&(t=t.filter((function(t){return e.supportedAccessModes.includes(t.value)}))),o.default.createElement("div",{className:s.default.accessModeWrapper},o.default.createElement(i.RadioGroup,(0,l.default)({options:t},e)))};a.default=d},function(e,a,r){"use strict";r(15);var n=r(20);r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(42),r(4),r(23),r(57),r(17);var l=n(r(315)),u=n(r(58)),o=n(r(36)),i=n(r(37)),c=n(r(55)),s=n(r(56)),f=n(r(51)),d=n(r(158)),p=n(r(0)),m=r(186),h=n(r(2923));function v(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,f.default)(e);if(t){var n=(0,f.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,s.default)(this,a)}}var g={className:h.default.slider,railStyle:{height:30,backgroundColor:"#7eb8dc",borderRadius:2},handleStyle:{width:14,height:30,marginTop:0,backgroundColor:"#fff",borderRadius:0,border:"none"},trackStyle:{height:30,borderRadius:2,backgroundColor:"#329dce"}},y=function(e){(0,c.default)(r,e);var a=v(r);function r(){return(0,o.default)(this,r),a.apply(this,arguments)}return(0,i.default)(r,[{key:"render",value:function(){var e=this.props,a=e.leftContent,r=e.rightContent,n=e.defaultValue,o=(0,u.default)(e,["leftContent","rightContent","defaultValue"]),i=(0,d.default)(o.value)?n:o.value;return p.default.createElement("div",{className:h.default.wrapper},p.default.createElement(m.Slider,(0,l.default)({min:0,max:100,defaultValue:i},o,g)),p.default.createElement("span",{className:h.default.floatContent,style:{left:"".concat(Math.floor(i/2),"%"),maxWidth:"".concat(i,"%")}},t("VERSION_TRAFFIC_PERCENT",{version:a,percent:i})),p.default.createElement("span",{className:h.default.floatContent,style:{left:"".concat(Math.floor(i/2)+50,"%"),maxWidth:"".concat(100-i,"%")}},t("VERSION_TRAFFIC_PERCENT",{version:r,percent:100-i})))}}]),r}(p.default.PureComponent);a.default=y,y.defaultProps={defaultValue:50}},function(e,a,r){"use strict";r(15);var n=r(20),l=r(157);r(5),r(18),r(16),r(137),r(9),r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(18),r(42),r(16),r(137),r(9),r(4),r(23),r(57),r(17);var u,o,i=n(r(315)),c=n(r(36)),s=n(r(37)),f=n(r(55)),d=n(r(56)),p=n(r(51)),m=n(r(49)),h=l(r(0)),v=r(14),g=r(239),y=n(r(26)),E=r(186),b=n(r(441)),_=n(r(2926));function O(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,p.default)(e);if(t){var n=(0,p.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,d.default)(this,a)}}var S=(0,g.observer)((o=function(e){(0,f.default)(r,e);var a=O(r);function r(){var e;(0,c.default)(this,r);for(var t=arguments.length,n=new Array(t),l=0;l0&&void 0!==arguments[0]?arguments[0]:{},a=t.workspace,r=t.repo_id,n=t.name,l=e.baseUrl;return a&&(l+="/workspaces/".concat(a)),r?"".concat(l,"/repos/").concat(r,"/").concat(n||""):"".concat(l,"/repos")},e.getWatchListUrl=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.workspace;return"apis/application.kubesphere.io/v1alpha1/watch/helmrepos?labelSelector=kubesphere.io/workspace=".concat(t)},(0,d.default)(e,"fetchDetail",o,(0,h.default)(e)),(0,d.default)(e,"update",i,(0,h.default)(e)),(0,d.default)(e,"delete",c,(0,h.default)(e)),e}return(0,m.default)(r,[{key:"validate",value:function(e){var t=e.workspace,a=(0,f.default)(e,["workspace"]);return request.post("".concat(this.getUrl({workspace:t}),"?validate=true"),a)}},{key:"index",value:function(e){var t=e.workspace,a=e.repo_id;if(a)return request.post(this.getUrl({workspace:t,repo_id:a,name:"action"}),{action:"index"})}},{key:"fetchEvents",value:(t=(0,s.default)(n.default.mark((function e(t){var a,r,l;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=t.workspace,r=t.repo_id,this.events.isLoading=!0,e.next=4,request.get(this.getUrl({workspace:a,repo_id:r,name:"events"}),{});case 4:l=e.sent,this.events.update({data:(0,_.default)(l,"items",[]),total:(0,_.default)(l,"total_count",0)}),this.events.isLoading=!1;case 7:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})},{key:"setSelectRowKeys",value:function(e){this.list.selectedRowKeys=e}}]),r}(O.default),u=(0,E.default)(l.prototype,"events",[b.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new S.default}}),o=(0,E.default)(l.prototype,"fetchDetail",[b.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return(0,s.default)(n.default.mark((function t(){var a,r,l,u,o=arguments;return n.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=o.length>0&&void 0!==o[0]?o[0]:{},r=a.workspace,l=a.repo_id,e.isLoading=!0,t.next=4,request.get(e.getUrl({workspace:r,repo_id:l}));case 4:u=t.sent,e.detail=u||{},e.detail.workspace=r,e.isLoading=!1;case 8:case"end":return t.stop()}}),t)})))}}),(0,E.default)(l.prototype,"validate",[b.action],Object.getOwnPropertyDescriptor(l.prototype,"validate"),l.prototype),(0,E.default)(l.prototype,"index",[b.action],Object.getOwnPropertyDescriptor(l.prototype,"index"),l.prototype),(0,E.default)(l.prototype,"fetchEvents",[b.action],Object.getOwnPropertyDescriptor(l.prototype,"fetchEvents"),l.prototype),i=(0,E.default)(l.prototype,"update",[b.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return(0,s.default)(n.default.mark((function t(){var a,r,l,u,o=arguments;return n.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=o.length>0&&void 0!==o[0]?o[0]:{},r=a.workspace,l=a.repo_id,u=(0,f.default)(a,["workspace","repo_id"]),t.next=3,e.submitting(request.patch(e.getUrl({workspace:r,repo_id:l}),u));case 3:case"end":return t.stop()}}),t)})))}}),c=(0,E.default)(l.prototype,"delete",[b.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(t){var a=t.workspace,r=t.repo_id;return e.submitting(request.delete(e.getUrl({workspace:a,repo_id:r}),{}))}}}),(0,E.default)(l.prototype,"setSelectRowKeys",[b.action],Object.getOwnPropertyDescriptor(l.prototype,"setSelectRowKeys"),l.prototype),l);t.default=D},,function(e,a,r){"use strict";var n=r(157),l=r(20);r(12),r(109),r(11),r(6),r(16),r(9),r(13),r(10),r(4),r(22),r(23),r(17),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(109),r(45),r(11),r(6),r(28),r(42),r(16),r(34),r(15),r(9),r(13),r(10),r(4),r(22),r(23),r(57),r(17),r(7);var u=l(r(30)),o=l(r(43));r(41);var i=l(r(44)),c=l(r(36)),s=l(r(37)),f=l(r(55)),d=l(r(56)),p=l(r(51)),m=n(r(0)),h=l(r(1)),v=l(r(3)),g=r(186),y=l(r(240)),E=l(r(952)),b=r(327),_=r(52),O=l(r(3182));function S(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function C(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};(0,m.default)(this,t),(0,p.default)(this,"isLoading",i,this),(0,p.default)(this,"pathParams",c,this),(0,p.default)(this,"data",s,this),(0,p.default)(this,"headers",f,this),Object.getOwnPropertyNames(r).forEach((function(e){a[e]=r[e]})),this.headers={"X-Remote-User":e.globals.user.username}}return(0,h.default)(t,[{key:"getApiPath",value:function(){return"kapis/logging.kubesphere.io/v1alpha2/logs"}},{key:"request",value:function(e){function t(){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((0,d.default)(n.default.mark((function e(){var t,a,r,l,o,i,c,s=arguments;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=s.length>0&&void 0!==s[0]?s[0]:{},a=s.length>1&&void 0!==s[1]?s[1]:"get",this.isLoading=!0,r=t.start_time,l=t.end_time,o=t.cluster,i=(0,u.default)(t,["start_time","end_time","cluster"]),e.next=6,request[a](this.getApiPath(),E(E({},i),{},{start_time:r?Math.floor(r/1e3):void 0,end_time:l?Math.floor(l/1e3):void 0,cluster:o}),{headers:this.headers});case 6:return c=e.sent,this.isLoading=!1,e.abrupt("return",c);case 9:case"end":return e.stop()}}),e,this)}))))},{key:"apiVersion",get:function(){return"kapis/logging.kubesphere.io/v1alpha2"}}]),t}(),i=(0,v.default)(o.prototype,"isLoading",[g.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),c=(0,v.default)(o.prototype,"pathParams",[g.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),s=(0,v.default)(o.prototype,"data",[g.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),f=(0,v.default)(o.prototype,"headers",[g.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),(0,v.default)(o.prototype,"request",[g.action],Object.getOwnPropertyDescriptor(o.prototype,"request"),o.prototype),o);t.default=b}).call(this,a(69))},,,,,,function(e,t,a){"use strict";a(15);var r=a(20);a(5),a(87),a(48),a(139),a(24),a(17),a(62),a(64),Object.defineProperty(t,"__esModule",{value:!0}),t.mark=o,t.markAll=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:o;if(!t.length)return[e];return t.reduce((function(e,t){return e.reduce((function(e,r){return e.concat(a(r,t))}),[])}),[e])},t.esMark=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"hightLighted";if(!(0,l.default)(e))return e;var r=t.match(/\w+|[\u4e00-\u9fa5]/g)||[],n=r.reduce((function(e,t){var a=e.slice(-1),r=i.test(t),n=i.test(a);return"".concat(e,"[^\\w\\u4e00-\\u9fa5]{").concat(r||n?0:1,",}").concat(t)}),"");if(!n)return[e];var u=new RegExp(n,"ig");return c(e,u,a)},t.markStrAsArray=c;var n=r(a(30));a(5),a(28),a(87),a(48),a(4),a(139),a(251),a(24),a(252),a(193),a(17),a(62),a(64);var l=r(a(195)),u=/[|\\{}()[\]^$+*?.]/g;function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"hightLighted";if(!(0,l.default)(e))return e;if(!t)return[e];var r=t.replace(u,"\\$&"),n=new RegExp(r,"ig");return c(e,n,a)}var i=/[\u4e00-\u9fa5]/;function c(e,t){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"hightLighted",r=[e],l=0;return e.replace(t,(function(e,t){var u=r.length-1,o=r[u],i=t-l,c=o.slice(0,i),s=o.slice(i+e.length);r[u]=c,r.push((0,n.default)({},a,e),s),l+=t+e.length})),r}},function(e,t,a){"use strict";a(15);var r=a(20);a(16),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(16);var n=r(a(0)),l=a(186),u=r(a(836)),o=r(a(3566)),i=function(e){var t=e.type,a=e.name,r=e.isActive,i=void 0!==r&&r,c=e.icon,s=e.crumb,f=void 0!==s&&s?18:"openpitrixs"===t?35:40;return n.default.createElement(n.default.Fragment,null,"openpitrixs"===t?n.default.createElement("div",{className:o.default.img},n.default.createElement(u.default,{src:null,iconLetter:a,iconSize:f})):n.default.createElement(l.Icon,{name:c,size:f,type:i?"light":"dark"}))};t.default=i},function(e,t,a){"use strict";a(15);var r=a(20);a(4),a(23),a(17),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(45),a(42),a(4),a(23),a(57),a(17);var n=r(a(36)),l=r(a(55)),u=r(a(56)),o=r(a(51));function i(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,o.default)(e);if(t){var n=(0,o.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,u.default)(this,a)}}var c=function(e){(0,l.default)(a,e);var t=i(a);function a(){return(0,n.default)(this,a),t.apply(this,arguments)}return a}(r(a(1207)).default);t.default=c},function(e,a,r){"use strict";r(15);var n=r(20);r(187),r(11),r(31),r(84),r(18),r(87),r(16),r(85),Object.defineProperty(a,"__esModule",{value:!0}),a.default=function(e){var a=function(t){var a=e.itemActions.map((function(e){return l.default.createElement(u.Menu.MenuItem,{key:e.key},l.default.createElement(u.Icon,{name:e.icon})," ",l.default.createElement("span",{"data-test":"table-item-".concat(e.key)},e.text))}));return a.every((function(e){return null===e}))?null:l.default.createElement(u.Menu,{onClick:r(t)},a)},r=function(t){return function(a,r){var n=e.itemActions.find((function(e){return e.key===r}));n&&n.onClick&&n.onClick(t)}},n=e.data,v=e.tagList,g=e.checked,y=e.showCheckbox,E=e.isEdgeWize,b=e.hideColumns,_=void 0===b?[]:b,O=n.expiredDay,S=O&&O<0,C=O&&O<=10&&O>=0,D=_.reduce((function(e,t){return m[t]+e}),0);return l.default.createElement("li",{className:p.default.wrapper,"data-test":"cluster-item"},l.default.createElement(u.Columns,null,l.default.createElement(u.Column,{className:"is-4 flexbox items-center",style:{width:"".concat(h(4,D),"%")}},!!y&&l.default.createElement(u.Checkbox,{className:"margin-r8",onChange:function(t){var a=e.onChangeChecked,r=e.data;a&&a(r.name,t)},checked:n.tags.length<5&&g,disabled:n.tags.length>=5}),l.default.createElement(s.default,{className:"flex",cluster:n,onClick:function(){var t=e.data,a=e.onEnter;a&&a(t.name,t.provider)},isEdgeWize:E,isExpired:S})),!_.includes("nodeCount")&&l.default.createElement(u.Column,{className:"is-1",style:{width:"".concat(h(E?2:1,D),"%")}},l.default.createElement(i.default,{title:n.nodeCount,description:t("NODE_COUNT")})),!_.includes("version")&&l.default.createElement(u.Column,{className:"is-1",style:{width:"".concat(h(E?2:1,D),"%")}},l.default.createElement(i.default,{title:n.kubernetesVersion,description:t("KUBERNETES_VERSION")})),!_.includes(E?"hostCluster":"provider")&&l.default.createElement(u.Column,{className:"is-1",style:{width:"".concat(h(1,D),"%")}},l.default.createElement(i.default,{title:(0,f.getDomTitle)((E?n.hostCluster:n.provider)||"-"),description:E?t("HOSTED_IN"):t("PROVIDER")})),!E&&!_.includes("tags")&&l.default.createElement(u.Column,{className:"is-2",style:{width:"".concat(h(2,D),"%")}},l.default.createElement(i.default,{title:l.default.createElement(c.ClusterTagGroup,{data:n.tags.map((function(e){return(v||[]).find((function(t){return e.name===t.name}))})).filter(Boolean),empty:"-"}),description:t("TAG_PL")})),!_.includes("createTime")&&l.default.createElement(u.Column,{className:"is-2",style:{width:"".concat(h(2,D),"%")}},C?l.default.createElement(i.default,{title:l.default.createElement("span",null,t.html("LAST_KUBE_CONFIG_EXPIRED",{count:parseInt(O,10)})),description:t("EXPIRE_DATE")}):l.default.createElement(i.default,{title:(0,f.getLocalTime)(n.createTime).format("YYYY-MM-DD HH:mm:ss"),description:t("CREATION_TIME")})),l.default.createElement(u.Column,null,l.default.createElement(d.default,{item:{id:n.uid,name:n.name,url:"/clusters/".concat(n.name,"/overview"),type:"Cluster",isHost:n.isHost},user:globals.user.username})),l.default.createElement(u.Column,{className:(0,o.default)("is-1",p.default.options)},function(t){if(!e.isOperation)return null;var r=a(t);return l.default.createElement(u.Dropdown,{content:r,trigger:"click",placement:"bottomRight"},l.default.createElement(u.Button,{icon:"more",type:"flat"}))}(n))))},r(187),r(11),r(31),r(84),r(18),r(87),r(16),r(4),r(319),r(85);var l=n(r(0)),u=r(186),o=n(r(3)),i=n(r(790)),c=r(924),s=n(r(814)),f=r(52),d=n(r(3712)),p=n(r(3720)),m={nodeCount:1,version:1,provider:2,tags:2,createTime:2},h=function(e,t){return e/(11-t)*11/12*100}},function(e,t,a){"use strict";a(15);var r=a(20);a(73),a(4),a(23),a(17),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(45),a(73),a(42),a(4),a(23),a(57),a(17);var n,l,u=r(a(65)),o=r(a(36)),i=r(a(88)),c=r(a(55)),s=r(a(56)),f=r(a(51)),d=r(a(49)),p=(r(a(66)),a(14)),m=a(52),h=r(a(1210));function v(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,f.default)(e);if(t){var n=(0,f.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,s.default)(this,a)}}var g=["pod_cpu_usage","pod_cpu_used_requests_utilisation","pod_cpu_used_limits_utilisation","pod_memory_usage_wo_cache","pod_memory_used_requests_utilisation","pod_memory_used_limits_utilisation","pod_gpu_usage","pod_gpu_memory_usage","pod_pvc_bytes_usage","pod_pvc_bytes_utilisation","pod_net_bytes_transmitted","pod_net_bytes_received"],y=["pod_cpu_usage","pod_cpu_used_requests_utilisation","pod_cpu_used_limits_utilisation","pod_memory_usage_wo_cache","pod_memory_used_requests_utilisation","pod_memory_used_limits_utilisation","pod_gpu_usage","pod_gpu_memory_usage","pod_net_bytes_transmitted","pod_net_bytes_received","pod_pvc_bytes_usage","pod_pvc_bytes_utilisation"],E=(n=function(e){(0,c.default)(a,e);var t=v(a);function a(e){var r;return(0,o.default)(this,a),r=t.call(this,e),(0,u.default)(r,"sort_metric",l,(0,i.default)(r)),r.resource="pods",r.sort_metric_options=(0,m.hideGPUByLicense)(g,r.cluster),r.metrics_filter=(0,m.hideGPUByLicense)(y,r.cluster).join("|"),r}return a}(h.default),l=(0,d.default)(n.prototype,"sort_metric",[p.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return g[0]}}),n);t.default=E},function(e,t,a){"use strict";a(15);var r=a(157),n=a(20);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var l=n(a(96)),u=r(a(0)),o=n(a(3)),i=n(a(3744)),c=function(e){var t=e.content,a=e.className,r=e.percent,n=(0,u.useRef)(),c=(0,u.useState)(!1),s=(0,l.default)(c,2),f=s[0],d=s[1],p=(0,u.useState)({x:0,y:0}),m=(0,l.default)(p,2),h=m[0],v=m[1];return u.default.createElement("div",{ref:n,className:(0,o.default)(i.default.background,a),onMouseMove:function(e){if(f){var t=n.current.getBoundingClientRect(),a=e.clientX-t.x,r=e.clientY-t.y;v({x:a+20,y:r})}},onMouseEnter:function(){return d(!0)},onMouseLeave:function(){return d(!1)}},u.default.createElement("div",{className:i.default.percent,style:{width:"".concat(r,"%")}}),f&&u.default.createElement("div",{style:{left:h.x,top:h.y},className:i.default.tooltip},t))};t.default=c},,function(e,a,r){"use strict";r(15);var n=r(157),l=r(20);r(5),r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(42),r(4),r(23),r(57),r(17);var u=l(r(36)),o=l(r(37)),i=l(r(55)),c=l(r(56)),s=l(r(51)),f=n(r(0)),d=r(186),p=l(r(996)),m=r(52),h=l(r(3866));function v(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,s.default)(e);if(t){var n=(0,s.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,c.default)(this,a)}}var g=function(e){(0,i.default)(r,e);var a=v(r);function r(){var e;(0,u.default)(this,r);for(var n=arguments.length,l=new Array(n),o=0;o0&&void 0!==arguments[0]?arguments[0]:{},t=e.cluster,a=e.namespace,r="";return t&&(r+="/klusters/".concat(t)),a&&(r+="/namespaces/".concat(a)),r}},{key:"fetchList",value:(a=(0,s.default)(n.default.mark((function e(t){var a,r,l,o,i,c,s,f,d=this;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=t.cluster,r=t.namespace,l=t.containers,o=void 0===l?[]:l,i=t.initContainers,c=void 0===i?[]:i,this.list.isLoading=!0,o=(0,g.default)(o)?[]:o,c=(0,g.default)(c)?[]:c,s=[].concat((0,u.default)(c.map((function(e){return b(b({},e),{},{type:"init"})}))),(0,u.default)(o.map((function(e){return b(b({},e),{},{type:"work"})})))),e.next=7,Promise.all(s.map((function(e){return e.cluster=a,e.namespace=r,d.fetchVariables(e)})));case 7:f=e.sent,this.list={data:f,isLoading:!1};case 9:case"end":return e.stop()}}),e,this)}))),function(e){return a.apply(this,arguments)})},{key:"fetchVariables",value:(t=(0,s.default)(n.default.mark((function e(t){var a,r,l,u,o,i,c,s=this;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.variables.isLoading=!0,a=t.cluster,r=t.namespace,l=t.env,u=[],o=[],(void 0===l?[]:l).forEach((function(e){if("valueFrom"in e){var t=e.valueFrom,n=t.secretKeyRef,l=t.configMapKeyRef;n&&(o.push({name:e.name,key:n.key}),u.push(request.get("api/v1".concat(s.getPath({cluster:a,namespace:r}),"/secrets/").concat(n.name)))),l&&(o.push({name:e.name,key:l.key}),u.push(request.get("api/v1".concat(s.getPath({cluster:a,namespace:r}),"/configmaps/").concat(l.name))))}else o.push(e),u.push(e.value||"")})),e.next=7,Promise.all(u);case 7:return i=e.sent,c=o.map((function(e,t){var a=i[t];return"Secret"===a.kind&&e.key?{name:e.name,value:(0,y.safeAtob)((0,v.default)(a.data,e.key,""))}:"ConfigMap"===a.kind&&e.key?{name:e.name,value:(0,v.default)(a.data,e.key,"")}:b({value:""},e)})),this.variables={data:c,isLoading:!1},t.variables=c,e.abrupt("return",t);case 12:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})}]),e}(),i=(0,m.default)(o.prototype,"list",[h.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{data:[],isLoading:!0}}}),c=(0,m.default)(o.prototype,"variables",[h.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{data:[],isLoading:!0}}}),(0,m.default)(o.prototype,"fetchList",[h.action],Object.getOwnPropertyDescriptor(o.prototype,"fetchList"),o.prototype),(0,m.default)(o.prototype,"fetchVariables",[h.action],Object.getOwnPropertyDescriptor(o.prototype,"fetchVariables"),o.prototype),o);t.default=_},function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(6),r(84),r(18),r(16),r(4),r(23),r(17),r(85),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(6),r(84),r(18),r(42),r(16),r(4),r(23),r(57),r(17),r(85);var l=n(r(30)),u=n(r(36)),o=n(r(37)),i=n(r(55)),c=n(r(56)),s=n(r(51)),f=n(r(0)),d=n(r(1)),p=n(r(3)),m=n(r(63)),h=r(186),v=n(r(801)),g=n(r(3881));function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,s.default)(e);if(t){var n=(0,s.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,c.default)(this,a)}}var E=["password","secret"],b=function(e){(0,i.default)(r,e);var a=y(r);function r(){var e;(0,u.default)(this,r);for(var t=arguments.length,n=new Array(t),l=0;l0&&void 0!==arguments[0]?arguments[0]:"namespacenetworkpolicies";return(0,f.default)(this,r),e=a.call(this,t),(0,s.default)(e,"list",i,(0,p.default)(e)),e.getResourceUrl=function(t){return"/kapis/network.kubesphere.io/v1alpha1".concat(e.getPath(t),"/").concat(e.module)},e}return(0,d.default)(r,[{key:"fetchListOut",value:(t=(0,c.default)(n.default.mark((function e(){var t,a,r,l,o,i,c,s,f,d,p,m,h=this,v=arguments;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=v.length>0&&void 0!==v[0]?v[0]:{},l=r.cluster,o=r.namespace,i=r.page,c=void 0===i?this.list.page:i,s=r.name,f=(0,u.default)(r,["cluster","namespace","page","name"]),this.list.isLoading=!0,(d=f).limit?this.list.limit=d.limit:d.limit=this.list.limit,(null===(t=this.list)||void 0===t||null===(a=t.continues)||void 0===a?void 0:a[c])?d.continue=this.list.continues[c]:this.list.continues={1:""},d.page=c,e.next=8,request.get(this.getResourceUrl({cluster:l,namespace:o}),d);case 8:return p=e.sent,m=p.items.map((function(e){return _({cluster:l,namespace:o},h.mapper(e))})),this.list.continues[Number(c)+1]=p.metadata.continue,1===Number(c)&&(this.list.total=m.length+(p.metadata.remainingItemCount||0)),(0,E.extendObservable)(this.list,{data:m,page:Number(c),name:s}),this.list.isLoading=!1,e.abrupt("return",this.list);case 15:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})}]),r}(y.default),i=(0,g.default)(o.prototype,"list",[E.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{data:[],page:1,limit:10,total:0,continues:{1:""},isLoading:!0}}}),(0,g.default)(o.prototype,"fetchListOut",[E.action],Object.getOwnPropertyDescriptor(o.prototype,"fetchListOut"),o.prototype),o);t.default=S},function(e,a,r){"use strict";var n=r(20);r(12),r(5),r(11),r(6),r(16),r(9),r(13),r(10),r(4),r(23),r(24),r(17),r(62),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(45),r(5),r(11),r(6),r(28),r(42),r(16),r(34),r(15),r(9),r(13),r(10),r(4),r(22),r(23),r(57),r(24),r(17),r(62),r(7);var l=n(r(315)),u=n(r(30)),o=n(r(43));r(41);var i,c=n(r(44)),s=n(r(36)),f=n(r(37)),d=n(r(55)),p=n(r(56)),m=n(r(51)),h=n(r(0)),v=n(r(63)),g=n(r(26)),y=r(239),E=r(186),b=n(r(831)),_=n(r(795)),O=r(52),S=r(791),C=r(14),D=n(r(914)),k=n(r(910)),N=n(r(805)),T=n(r(907)),R=n(r(3968));function w(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function I(e){for(var t=1;t=172800}),p.default.createElement(R.default,{type:"memory",title:t("MEMORY_USAGE_TIME",{time:u.label}),metrics:(0,v.default)(r,"namespace_memory_usage_wo_cache.data.result"),isLoading:n||l,showDay:u.value>=172800}),this.showLicenseTip&&p.default.createElement(p.default.Fragment,null,p.default.createElement(R.default,{type:"cpu",title:t("GPU_USAGE_TIME",{time:u.label}),metrics:(0,v.default)(r,"namespace_gpu_usage.data.result"),isLoading:n||l,showDay:u.value>=172800}),p.default.createElement(R.default,{type:"memory",title:t("GPU_MEMORY_USAGE_TIME",{time:u.label}),metrics:(0,v.default)(r,"namespace_gpu_memory_usage.data.result"),isLoading:n||l,showDay:u.value>=172800})))}},{key:"renderHeader",value:function(){return globals.app.hasClusterModule(this.cluster,"whizard-monitoring")?p.default.createElement("div",{className:w.default.header},p.default.createElement(k.RadioGroup,{mode:"button",value:this.state.resourceType,onChange:this.handleResouceTypeChange,size:"small"},p.default.createElement(k.RadioButton,{value:"application"},t("APPLICATION_RESOURCE_PL")),p.default.createElement(k.RadioButton,{value:"physical"},t("PHYSICAL_RESOURCE_PL"))),p.default.createElement(k.Select,{className:w.default.timeSelect,defaultValue:this.state.range,options:this.timeOptions,onChange:this.handleRangeChange})):null}},{key:"render",value:function(){var e=this.state.resourceType;return p.default.createElement(N.default,{className:w.default.wrapper,title:t("RESOURCE_STATUS")},this.renderHeader(),"application"===e?this.renderApplicationResource():this.renderPhysicalResource())}},{key:"routing",get:function(){return this.props.rootStore.routing}},{key:"namespace",get:function(){return(0,v.default)(this.props.match,"params.namespace")}},{key:"cluster",get:function(){return(0,v.default)(this.props.match,"params.cluster")}},{key:"timeOptions",get:function(){return[{label:t("LAST_TIME_H",{num:1}),value:3600},{label:t("LAST_TIME_H",{num:2}),value:7200},{label:t("LAST_TIME_H",{num:5}),value:18e3},{label:t("LAST_TIME_H",{num:12}),value:43200},{label:t("LAST_TIME_D",{num:1}),value:86400},{label:t("LAST_TIME_D",{num:2}),value:172800},{label:t("LAST_TIME_D",{num:3}),value:259200},{label:t("LAST_TIME_D",{num:7}),value:604800}]}},{key:"showLicenseTip",get:function(){var e;return!(null===(e=globals.licenseInfo)||void 0===e?void 0:e.showLicenseTip)&&(0,v.default)(globals,'ksConfig["gpu.monitoring"]',!1)}}]),r}(p.default.Component))||l)||l;a.default=L},function(e,t,a){"use strict";a(15);var r=a(20);a(29),a(9),a(4),a(22),a(38),a(32),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(29),a(9),a(4),a(22),a(38),a(32);var n=r(a(43)),l=r(a(96));a(41);var u,o,i=r(a(44)),c=r(a(65)),s=r(a(36)),f=r(a(37)),d=r(a(49)),p=(r(a(66)),a(14)),m=a(52),h=(u=function(){function e(){(0,s.default)(this,e),(0,c.default)(this,"resource",o,this)}var t;return(0,f.default)(e,[{key:"getPath",value:function(e){var t=e.cluster,a=e.namespace,r="";return t&&(r+="/klusters/".concat(t)),a&&(r+="/namespaces/".concat(a)),r}},{key:"fetchResourceStatus",value:(t=(0,i.default)(n.default.mark((function e(t){var a,r,u,o;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.resource.isLoading=!0,e.next=3,Promise.all([(0,m.to)(request.get("kapis/resources.kubesphere.io/v1alpha2".concat(this.getPath(t),"/quotas"))),(0,m.to)(request.get("kapis/resources.kubesphere.io/v1alpha2".concat(this.getPath(t),"/abnormalworkloads")))]);case 3:a=e.sent,r=(0,l.default)(a,2),u=r[0],o=r[1],this.resource={quota:u.data,status:o.data,isLoading:!1};case 8:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})}]),e}(),o=(0,d.default)(u.prototype,"resource",[p.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{quota:{},status:{},isLoading:!0}}}),(0,d.default)(u.prototype,"fetchResourceStatus",[p.action],Object.getOwnPropertyDescriptor(u.prototype,"fetchResourceStatus"),u.prototype),u);t.default=h},function(e,a,r){"use strict";r(15);var n=r(157),l=r(20);r(86),r(18),r(97),r(16),r(27),r(190),r(24),r(136),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(86),r(18),r(97),r(16),r(27),r(190),r(4);var u=l(r(30)),o=l(r(96)),i=n(r(0)),c=r(186),s=l(r(3)),f=l(r(1044)),d=r(52),p=l(r(4031)),m=function(e){var a=(0,i.useState)(!1),r=(0,o.default)(a,2),n=r[0],l=r[1];return i.default.createElement("div",{className:p.default.card,onClick:function(){return l(!n)}},i.default.createElement("div",{className:p.default.Head},i.default.createElement(c.Icon,{name:"database",size:40}),i.default.createElement("div",{className:p.default.item},i.default.createElement("p",{className:p.default.title},"storageclass.storage.k8s.io/requests.storage"===e.name?t("STORAGE_RELATED_RESOURCE_LIMIT"):t("STORAGE_RELATED_RESOURCE")),i.default.createElement("p",{className:p.default.desc},t("RESOURCE_TYPE"))),i.default.createElement("div",{className:p.default.item},i.default.createElement("p",{className:p.default.title},e.allStorageClass.length),i.default.createElement("p",{className:p.default.desc},t("TOTAL_STORAGE_CLASS"))),i.default.createElement("div",{className:p.default.item},i.default.createElement("p",{className:p.default.title},e.data.length),i.default.createElement("p",{className:p.default.desc},t("LIMITED_STORAGE_CLASS"))),i.default.createElement("div",{className:(0,s.default)(p.default.icon,(0,u.default)({},p.default.open,n))},e.data.length>0&&i.default.createElement(c.Icon,{name:"chevron-down",size:20}))),n&&e.data.length>0&&i.default.createElement("ul",{className:p.default.List},e.data.map((function(a){var r=-1!==e.name.indexOf("requests.storage"),n=a.name.split(".")[0],l=0;l=r?Number((0,d.memoryFormat)(a.used,"Gi"))/Number((0,d.memoryFormat)(a.total,"Gi")):Number(a.used,"Gi")/Number(a.total,"Gi"),l=Math.min(Math.max(l,0),1);var u=e.allStorageClass.some((function(e){return e.name===n&&e.default})),o=(0,d.memoryFormat)(a.used,"Gi");return o=isNaN(o)?0:o,i.default.createElement("div",{className:p.default.inline,key:n},i.default.createElement(c.Icon,{name:"database",size:40}),i.default.createElement("div",{className:p.default.item},i.default.createElement("p",{className:p.default.title},n,u&&i.default.createElement("span",{className:p.default.default},t("DEFAULT"))),i.default.createElement("p",{className:p.default.desc},t("NAME"))),i.default.createElement("div",{className:p.default.item},i.default.createElement("p",{className:p.default.title},r?"".concat(o," Gi"):a.used),i.default.createElement("p",{className:p.default.desc},t("USED"))),i.default.createElement("div",{className:p.default.item},i.default.createElement("p",{className:p.default.title},r?"".concat((0,d.memoryFormat)(a.total,"Gi")," Gi"):a.total),i.default.createElement("p",{className:p.default.desc},t("RELATED_RESOURCE_QUOTA"))),i.default.createElement("div",{className:p.default.barItem},i.default.createElement("div",{className:p.default.title},t("USAGE")),i.default.createElement(f.default,{value:Math.min(l,1),className:p.default.bar,rightText:a.total?"":t("NO_LIMIT"),text:t("USED_PERCENT",{percent:Number((100*l).toFixed(2))})})))}))))};a.default=m},function(e,a,r){"use strict";r(15);var n=r(20);r(86),r(16),r(27),r(190),r(24),r(64),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(86),r(16),r(27),r(190),r(24),r(64);var l=n(r(0)),u=n(r(158)),o=r(186),i=n(r(1044)),c=r(52),s=r(72),f=n(r(4032)),d=function(e){var a=e.name,r=e.total,n=e.used,d=-1!==a.indexOf("requests.storage"),p=0;"limits.cpu"===a||"requests.cpu"===a?r&&(p=Number((0,c.cpuFormat)(n))/Number((0,c.cpuFormat)(r)),n="".concat((0,c.cpuFormat)(n)," Core"),r="".concat((0,c.cpuFormat)(r)," Core")):"limits.memory"===a||"requests.memory"===a?r&&(p=Number((0,c.memoryFormat)(n))/Number((0,c.memoryFormat)(r)),n="".concat((0,c.memoryFormat)(n,"Gi")," Gi"),r="".concat((0,c.memoryFormat)(r,"Gi")," Gi")):r&&(p=Number(n)/Number(r)),p=Math.min(Math.max(p,0),1);var m=a.indexOf("gpu")>-1?"gpu":a,h="gpu"===m?"".concat(m,".limit"):m;return l.default.createElement("div",{className:f.default.quota},l.default.createElement(o.Icon,{name:s.ICON_TYPES[m]||"resource",size:40}),l.default.createElement("div",{className:f.default.item},l.default.createElement("div",null,t(h.replace(/[. ]/g,"_").toUpperCase())),l.default.createElement("p",null,t("RESOURCE_TYPE_SCAP"))),l.default.createElement("div",{className:f.default.item},l.default.createElement("div",null,n," ",d&&"Gi"),l.default.createElement("p",null,t("USED"))),l.default.createElement("div",{className:f.default.item},l.default.createElement("div",null,(0,u.default)(r)?t("NO_LIMIT"):d?"".concat(r," Gi"):r),l.default.createElement("p",null,t("RESOURCE_LIMIT"))),l.default.createElement("div",{className:f.default.item,style:{flex:3}},l.default.createElement("div",null,t("USAGE")),l.default.createElement(i.default,{value:Math.min(p,1),className:f.default.bar,rightText:r?"":t("NO_LIMIT"),text:t("USED_PERCENT",{percent:Number((100*p).toFixed(2))})})))};a.default=d},function(e,t,a){"use strict";a(15);var r=a(20);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if(e.disabled)return n.default.createElement("a",e);return n.default.createElement(l.Link,e)};var n=r(a(0)),l=a(433)},,,,,,,,,,,function(e,t,a){"use strict";a(15);var r=a(20);a(73),a(4),a(23),a(17),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(45),a(73),a(42),a(4),a(23),a(57),a(17);var n,l,u,o,i=r(a(65)),c=r(a(36)),s=r(a(37)),f=r(a(88)),d=r(a(55)),p=r(a(56)),m=r(a(51)),h=r(a(49)),v=(r(a(66)),a(14)),g=a(52),y=r(a(1129));function E(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,m.default)(e);if(t){var n=(0,m.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,p.default)(this,a)}}var b=["workload_cpu_usage","workload_memory_usage_wo_cache","workload_gpu_usage","workload_gpu_memory_usage","workload_net_bytes_transmitted","workload_net_bytes_received"],_=["workload_cpu_usage","workload_memory_usage_wo_cache","workload_gpu_usage","workload_gpu_memory_usage","workload_net_bytes_transmitted","workload_net_bytes_received"],O=(n=function(e){(0,d.default)(a,e);var t=E(a);function a(e){var r;return(0,c.default)(this,a),r=t.call(this,e),(0,i.default)(r,"namespaces",l,(0,f.default)(r)),(0,i.default)(r,"sort_metric",u,(0,f.default)(r)),(0,i.default)(r,"changeNamespace",o,(0,f.default)(r)),r.sort_metric_options=(0,g.hideGPUByLicense)(e.sort_metric_options||b,r.cluster),r.metrics_filter=(0,g.hideGPUByLicense)(_,r.cluster).join("|"),r}return(0,s.default)(a,[{key:"fetchUrl",get:function(){return"".concat(this.apiVersion,"/workload_metrics")}}]),a}(y.default),l=(0,h.default)(n.prototype,"namespaces",[v.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),u=(0,h.default)(n.prototype,"sort_metric",[v.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return b[0]}}),o=(0,h.default)(n.prototype,"changeNamespace",[v.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(t){e.namespaces=t,e.fetchAll()}}}),n);t.default=O},,,,,,,,,,,,,,,,function(e,t,a){e.exports={title:"_23ICmTFZPZciTzxk6GwlL7",workloads:"_2pydmsXzGwPczsCCJ75una",trafficCard:"_1IK6lET9gevbaUDSF49pYC"}},,,,,,,,,,,,,,,,,,,,,,,function(e,a,r){"use strict";var n=r(20);r(12),r(109),r(11),r(6),r(9),r(13),r(10),r(4),r(23),r(17),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(109),r(45),r(11),r(6),r(28),r(42),r(34),r(15),r(9),r(13),r(10),r(4),r(23),r(57),r(17),r(7);var l=n(r(315)),u=n(r(58)),o=n(r(36)),i=n(r(37)),c=n(r(55)),s=n(r(56)),f=n(r(51)),d=n(r(30)),p=n(r(26)),m=n(r(189)),h=n(r(158)),v=n(r(194)),g=n(r(0)),y=n(r(106)),E=n(r(1264)),b=r(239),_=n(r(1)),O=n(r(3)),S=r(186),C=n(r(836)),D=n(r(790)),k=n(r(1477));function N(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,f.default)(e);if(t){var n=(0,f.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,s.default)(this,a)}}function T(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function R(e){for(var t=1;t=8?8:e.length,a={};if(this.ref&&this.ref.current){var r=this.ref.current.getBoundingClientRect();window.innerHeight-r.top>31.5*t+8+r.height?a.top=r.top+r.height+8:a.top=r.top-8-31.5*t,a.left=r.left}return a}},{key:"render",value:function(){var e=this.props,t=e.children,a=e.options,r=this.state.isOpen;return s.default.createElement("div",{className:d.default.wrapper,ref:this.ref},s.default.createElement("div",{className:d.default.trigger,onClick:this.triggerOpen},t),r&&s.default.createElement(f.default,{style:this.getOptionsStyle(a),options:a,level:0,onSelect:this.handleSelect}))}}]),a}(s.Component);t.default=m,m.defaultProps={options:[],children:"",onSelect:function(){}}},function(e,t,a){"use strict";a(15);var r=a(157),n=a(20);a(5),a(18),a(4),a(23),a(17),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(45),a(5),a(18),a(42),a(4),a(23),a(57),a(17);var l=n(a(36)),u=n(a(37)),o=n(a(55)),i=n(a(56)),c=n(a(51)),s=r(a(0)),f=n(a(2100)),d=n(a(1271));function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,c.default)(e);if(t){var n=(0,c.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,i.default)(this,a)}}var m=function(e){(0,o.default)(a,e);var t=p(a);function a(){var e;(0,l.default)(this,a);for(var r=arguments.length,n=new Array(r),u=0;u=0;i--)if(d.OPERATORS.includes(r[i])||""===r[i]){u=i+1;break}var c=r.substring(0,u)+t+r.substring(u+o),s=u+t.length;e.setState({visible:!1,value:c,focusValue:t,position:s},(function(){if(e.triggerChange(c),"{"===r[s]&&e.handleLabelSearch(),e.editor.current){var t=e.editor.current;t.innerHTML=(0,d.highlightPromql)(c),(0,d.setCaretPosition)(t,s)}}))},e.handleDOMClick=function(t){e.wrapper&&e.wrapper.current&&!e.wrapper.current.contains(t.target)&&e.setState({visible:!1}),e.editor&&e.editor.current&&e.editor.current.contains(t.target)&&e.handleCursorChange()},e}return(0,u.default)(a,[{key:"componentDidMount",value:function(){if(this.editor.current){var e=this.state.value;this.editor.current.addEventListener("input",this.handleInput),this.editor.current.addEventListener("keydown",this.handleKeyDown),this.editor.current.addEventListener("keyup",this.handleKeyUp),this.handleValueUpdateFromProps(e)}document.addEventListener("click",this.handleDOMClick)}},{key:"componentDidUpdate",value:function(e,t){var a=this,r=this.props.value;t.value!==r&&this.setState({value:r},(function(){a.handleValueUpdateFromProps(r)}))}},{key:"componentWillUnmount",value:function(){this.editor.current&&(this.editor.current.removeEventListener("input",this.handleInput),this.editor.current.removeEventListener("keydown",this.handleKeyDown),this.editor.current.removeEventListener("keyup",this.handleKeyUp)),document.removeEventListener("click",this.handleDOMClick)}},{key:"render",value:function(){var e=this.state,t=e.visible,a=e.focusValue,r=e.tokenContext,n=this.props,l=n.metrics,u=n.labelsets;return s.default.createElement("div",{className:m.default.wrapper,ref:this.wrapper},s.default.createElement("pre",null,s.default.createElement("code",{className:m.default.input,ref:this.editor,spellCheck:"false",contentEditable:!0})),t&&a&&s.default.createElement(f.default,{className:m.default.suggestions,value:a,metrics:l,tokenContext:r,labelsets:u,onSelect:this.handleSuggestionSelect}))}},{key:"keydownHandler",get:function(){return{219:this.handleLabelSearch}}},{key:"keyupHandler",get:function(){return{37:this.handleCursorChange,39:this.handleCursorChange}}}]),a}(s.Component);t.default=v,v.defaultProps={value:""}},function(e,t,a){"use strict";a(15),a(5),a(73),a(18),a(139),a(24),a(17),Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.FUNCTIONS=t.OPERATORS=t.RATE_RANGES=void 0,a(5),a(73),a(18),a(139),a(251),a(24),a(252),a(17);t.RATE_RANGES=[{label:"$__interval",sortText:"$__interval"},{label:"$__rate_interval",sortText:"$__rate_interval"},{label:"1m",sortText:"00:01:00"},{label:"5m",sortText:"00:05:00"},{label:"10m",sortText:"00:10:00"},{label:"30m",sortText:"00:30:00"},{label:"1h",sortText:"01:00:00"},{label:"1d",sortText:"24:00:00"}];var r=["by","group_left","group_right","ignoring","on","offset","without"];t.OPERATORS=r;var n=[].concat([{label:"sum",insertText:"sum",documentation:"Calculate sum over dimensions"},{label:"min",insertText:"min",documentation:"Select minimum over dimensions"},{label:"max",insertText:"max",documentation:"Select maximum over dimensions"},{label:"avg",insertText:"avg",documentation:"Calculate the average over dimensions"},{label:"stddev",insertText:"stddev",documentation:"Calculate population standard deviation over dimensions"},{label:"stdvar",insertText:"stdvar",documentation:"Calculate population standard variance over dimensions"},{label:"count",insertText:"count",documentation:"Count number of elements in the vector"},{label:"count_values",insertText:"count_values",documentation:"Count number of elements with the same value"},{label:"bottomk",insertText:"bottomk",documentation:"Smallest k elements by sample value"},{label:"topk",insertText:"topk",documentation:"Largest k elements by sample value"},{label:"quantile",insertText:"quantile",documentation:"Calculate φ-quantile (0 ≤ φ ≤ 1) over dimensions"}],[{insertText:"abs",label:"abs",detail:"abs(v instant-vector)",documentation:"Returns the input vector with all sample values converted to their absolute value."},{insertText:"absent",label:"absent",detail:"absent(v instant-vector)",documentation:"Returns an empty vector if the vector passed to it has any elements and a 1-element vector with the value 1 if the vector passed to it has no elements. This is useful for alerting on when no time series exist for a given metric name and label combination."},{insertText:"ceil",label:"ceil",detail:"ceil(v instant-vector)",documentation:"Rounds the sample values of all elements in `v` up to the nearest integer."},{insertText:"changes",label:"changes",detail:"changes(v range-vector)",documentation:"For each input time series, `changes(v range-vector)` returns the number of times its value has changed within the provided time range as an instant vector."},{insertText:"clamp_max",label:"clamp_max",detail:"clamp_max(v instant-vector, max scalar)",documentation:"Clamps the sample values of all elements in `v` to have an upper limit of `max`."},{insertText:"clamp_min",label:"clamp_min",detail:"clamp_min(v instant-vector, min scalar)",documentation:"Clamps the sample values of all elements in `v` to have a lower limit of `min`."},{insertText:"count_scalar",label:"count_scalar",detail:"count_scalar(v instant-vector)",documentation:"Returns the number of elements in a time series vector as a scalar. This is in contrast to the `count()` aggregation operator, which always returns a vector (an empty one if the input vector is empty) and allows grouping by labels via a `by` clause."},{insertText:"day_of_month",label:"day_of_month",detail:"day_of_month(v=vector(time()) instant-vector)",documentation:"Returns the day of the month for each of the given times in UTC. Returned values are from 1 to 31."},{insertText:"day_of_week",label:"day_of_week",detail:"day_of_week(v=vector(time()) instant-vector)",documentation:"Returns the day of the week for each of the given times in UTC. Returned values are from 0 to 6, where 0 means Sunday etc."},{insertText:"days_in_month",label:"days_in_month",detail:"days_in_month(v=vector(time()) instant-vector)",documentation:"Returns number of days in the month for each of the given times in UTC. Returned values are from 28 to 31."},{insertText:"delta",label:"delta",detail:"delta(v range-vector)",documentation:"Calculates the difference between the first and last value of each time series element in a range vector `v`, returning an instant vector with the given deltas and equivalent labels. The delta is extrapolated to cover the full time range as specified in the range vector selector, so that it is possible to get a non-integer result even if the sample values are all integers."},{insertText:"deriv",label:"deriv",detail:"deriv(v range-vector)",documentation:"Calculates the per-second derivative of the time series in a range vector `v`, using simple linear regression."},{insertText:"drop_common_labels",label:"drop_common_labels",detail:"drop_common_labels(instant-vector)",documentation:"Drops all labels that have the same name and value across all series in the input vector."},{insertText:"exp",label:"exp",detail:"exp(v instant-vector)",documentation:"Calculates the exponential function for all elements in `v`.\nSpecial cases are:\n* `Exp(+Inf) = +Inf` \n* `Exp(NaN) = NaN`"},{insertText:"floor",label:"floor",detail:"floor(v instant-vector)",documentation:"Rounds the sample values of all elements in `v` down to the nearest integer."},{insertText:"histogram_quantile",label:"histogram_quantile",detail:"histogram_quantile(φ float, b instant-vector)",documentation:"Calculates the φ-quantile (0 ≤ φ ≤ 1) from the buckets `b` of a histogram. The samples in `b` are the counts of observations in each bucket. Each sample must have a label `le` where the label value denotes the inclusive upper bound of the bucket. (Samples without such a label are silently ignored.) The histogram metric type automatically provides time series with the `_bucket` suffix and the appropriate labels."},{insertText:"holt_winters",label:"holt_winters",detail:"holt_winters(v range-vector, sf scalar, tf scalar)",documentation:"Produces a smoothed value for time series based on the range in `v`. The lower the smoothing factor `sf`, the more importance is given to old data. The higher the trend factor `tf`, the more trends in the data is considered. Both `sf` and `tf` must be between 0 and 1."},{insertText:"hour",label:"hour",detail:"hour(v=vector(time()) instant-vector)",documentation:"Returns the hour of the day for each of the given times in UTC. Returned values are from 0 to 23."},{insertText:"idelta",label:"idelta",detail:"idelta(v range-vector)",documentation:"Calculates the difference between the last two samples in the range vector `v`, returning an instant vector with the given deltas and equivalent labels."},{insertText:"increase",label:"increase",detail:"increase(v range-vector)",documentation:"Calculates the increase in the time series in the range vector. Breaks in monotonicity (such as counter resets due to target restarts) are automatically adjusted for. The increase is extrapolated to cover the full time range as specified in the range vector selector, so that it is possible to get a non-integer result even if a counter increases only by integer increments."},{insertText:"irate",label:"irate",detail:"irate(v range-vector)",documentation:"Calculates the per-second instant rate of increase of the time series in the range vector. This is based on the last two data points. Breaks in monotonicity (such as counter resets due to target restarts) are automatically adjusted for."},{insertText:"label_replace",label:"label_replace",detail:"label_replace(v instant-vector, dst_label string, replacement string, src_label string, regex string)",documentation:"For each timeseries in `v`, `label_replace(v instant-vector, dst_label string, replacement string, src_label string, regex string)` matches the regular expression `regex` against the label `src_label`. If it matches, then the timeseries is returned with the label `dst_label` replaced by the expansion of `replacement`. `$1` is replaced with the first matching subgroup, `$2` with the second etc. If the regular expression doesn't match then the timeseries is returned unchanged."},{insertText:"ln",label:"ln",detail:"ln(v instant-vector)",documentation:"calculates the natural logarithm for all elements in `v`.\nSpecial cases are:\n * `ln(+Inf) = +Inf`\n * `ln(0) = -Inf`\n * `ln(x < 0) = NaN`\n * `ln(NaN) = NaN`"},{insertText:"log2",label:"log2",detail:"log2(v instant-vector)",documentation:"Calculates the binary logarithm for all elements in `v`. The special cases are equivalent to those in `ln`."},{insertText:"log10",label:"log10",detail:"log10(v instant-vector)",documentation:"Calculates the decimal logarithm for all elements in `v`. The special cases are equivalent to those in `ln`."},{insertText:"minute",label:"minute",detail:"minute(v=vector(time()) instant-vector)",documentation:"Returns the minute of the hour for each of the given times in UTC. Returned values are from 0 to 59."},{insertText:"month",label:"month",detail:"month(v=vector(time()) instant-vector)",documentation:"Returns the month of the year for each of the given times in UTC. Returned values are from 1 to 12, where 1 means January etc."},{insertText:"predict_linear",label:"predict_linear",detail:"predict_linear(v range-vector, t scalar)",documentation:"Predicts the value of time series `t` seconds from now, based on the range vector `v`, using simple linear regression."},{insertText:"rate",label:"rate",detail:"rate(v range-vector)",documentation:"Calculates the per-second average rate of increase of the time series in the range vector. Breaks in monotonicity (such as counter resets due to target restarts) are automatically adjusted for. Also, the calculation extrapolates to the ends of the time range, allowing for missed scrapes or imperfect alignment of scrape cycles with the range's time period."},{insertText:"resets",label:"resets",detail:"resets(v range-vector)",documentation:"For each input time series, `resets(v range-vector)` returns the number of counter resets within the provided time range as an instant vector. Any decrease in the value between two consecutive samples is interpreted as a counter reset."},{insertText:"round",label:"round",detail:"round(v instant-vector, to_nearest=1 scalar)",documentation:"Rounds the sample values of all elements in `v` to the nearest integer. Ties are resolved by rounding up. The optional `to_nearest` argument allows specifying the nearest multiple to which the sample values should be rounded. This multiple may also be a fraction."},{insertText:"scalar",label:"scalar",detail:"scalar(v instant-vector)",documentation:"Given a single-element input vector, `scalar(v instant-vector)` returns the sample value of that single element as a scalar. If the input vector does not have exactly one element, `scalar` will return `NaN`."},{insertText:"sort",label:"sort",detail:"sort(v instant-vector)",documentation:"Returns vector elements sorted by their sample values, in ascending order."},{insertText:"sort_desc",label:"sort_desc",detail:"sort_desc(v instant-vector)",documentation:"Returns vector elements sorted by their sample values, in descending order."},{insertText:"sqrt",label:"sqrt",detail:"sqrt(v instant-vector)",documentation:"Calculates the square root of all elements in `v`."},{insertText:"time",label:"time",detail:"time()",documentation:"Returns the number of seconds since January 1, 1970 UTC. Note that this does not actually return the current time, but the time at which the expression is to be evaluated."},{insertText:"vector",label:"vector",detail:"vector(s scalar)",documentation:"Returns the scalar `s` as a vector with no labels."},{insertText:"year",label:"year",detail:"year(v=vector(time()) instant-vector)",documentation:"Returns the year for each of the given times in UTC."},{insertText:"avg_over_time",label:"avg_over_time",detail:"avg_over_time(range-vector)",documentation:"The average value of all points in the specified interval."},{insertText:"min_over_time",label:"min_over_time",detail:"min_over_time(range-vector)",documentation:"The minimum value of all points in the specified interval."},{insertText:"max_over_time",label:"max_over_time",detail:"max_over_time(range-vector)",documentation:"The maximum value of all points in the specified interval."},{insertText:"sum_over_time",label:"sum_over_time",detail:"sum_over_time(range-vector)",documentation:"The sum of all values in the specified interval."},{insertText:"count_over_time",label:"count_over_time",detail:"count_over_time(range-vector)",documentation:"The count of all values in the specified interval."},{insertText:"quantile_over_time",label:"quantile_over_time",detail:"quantile_over_time(scalar, range-vector)",documentation:"The φ-quantile (0 ≤ φ ≤ 1) of the values in the specified interval."},{insertText:"stddev_over_time",label:"stddev_over_time",detail:"stddev_over_time(range-vector)",documentation:"The population standard deviation of the values in the specified interval."},{insertText:"stdvar_over_time",label:"stdvar_over_time",detail:"stdvar_over_time(range-vector)",documentation:"The population standard variance of the values in the specified interval."}]);t.FUNCTIONS=n;var l={comment:{pattern:/#.*/},"context-aggregation":{pattern:/((by|without)\s*)\([^)]*\)/,lookbehind:!0,inside:{"label-key":{pattern:/[^(),\s][^,)]*[^),\s]*/,alias:"attr-name"},punctuation:/[()]/}},"context-labels":{pattern:/\{[^}]*(?=})/,greedy:!0,inside:{comment:{pattern:/#.*/},"label-key":{pattern:/[a-z_]\w*(?=\s*(=|!=|=~|!~))/,alias:"attr-name",greedy:!0},"label-value":{pattern:/"(?:\\.|[^\\"])*"/,greedy:!0,alias:"attr-value"},punctuation:/[{]/}},function:new RegExp("\\b(?:".concat(n.map((function(e){return e.label})).join("|"),")(?=\\s*\\()"),"i"),"context-range":[{pattern:/\[[^\]]*(?=])/,inside:{"range-duration":{pattern:/\b\d+[smhdwy]\b/i,alias:"number"}}},{pattern:/(offset\s+)\w+/,lookbehind:!0,inside:{"range-duration":{pattern:/\b\d+[smhdwy]\b/i,alias:"number"}}}],number:/\b-?\d+((\.\d*)?([eE][+-]?\d+)?)?\b/,operator:new RegExp("/[-+*/=%^~]|&&?|\\|?\\||!=?|<(?:=>?|<|>)?|>[>=]?|\\b(?:".concat(r.join("|"),")\\b"),"i"),punctuation:/[{};()`,.]/};t.default=l},function(e,t,a){e.exports={wrapper:"_14f5Z8AW-sO-D5eOUy8VOK",group:"_3IFETh-yDAtvA1RpJm_nuS",groupTitle:"_1EI8CS41YrdnEKUGY2JhS4",item:"_1L9wOQP2fgWpJRSXX_gfSy"}},function(e,t,a){"use strict";var r=a(20);a(12),a(11),a(6),a(86),a(73),a(18),a(9),a(13),a(10),a(4),a(24),a(17),a(64),a(136),a(7),Object.defineProperty(t,"__esModule",{value:!0}),t.getTokenContext=t.highlightPromql=t.OPERATORS=t.PUNCTUATION_MAP=t.setCaretPosition=t.getCaretCharacterOffsetWithin=void 0;var n=r(a(30));a(12),a(45),a(11),a(6),a(86),a(73),a(18),a(28),a(245),a(42),a(34),a(15),a(9),a(13),a(10),a(4),a(24),a(17),a(64),a(7);var l=r(a(26)),u=r(a(2104)),o=r(a(1489));function i(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}a(2105),u.default.languages.promql=o.default;t.getCaretCharacterOffsetWithin=function(e){var t=0,a=e.ownerDocument||e.document,r=a.defaultView||a.parentWindow;if(void 0!==r.getSelection){if(r.getSelection().rangeCount>0){var n=r.getSelection().getRangeAt(0),l=n.cloneRange();l.selectNodeContents(e),l.setEnd(n.endContainer,n.endOffset),t=l.toString().length}}else if("Control"!==a.selection.type){var u=a.selection.createRange(),o=a.body.createTextRange();o.moveToElementText(e),o.setEndPoint("EndToEnd",u),t=o.text.length}return t};t.setCaretPosition=function(e,t){var a=document.createRange(),r=window.getSelection(),n=[];!function e(t,a){t&&3===t.nodeType&&a.push(t);for(var r=t.childNodes,n=0;n0;)u-=(0,l.default)(n,"[".concat(o,"].length"),0),o++;var i=n[o-1];null!=i&&(a.setStart(i,u+i.length),a.collapse(!0),r.removeAllRanges(),r.addRange(a))};t.PUNCTUATION_MAP={"(":")","[":"]","{":"}",'"':'"',"'":"'"};t.OPERATORS=["(","[","{",'"',"'",'""',"''","=",","];t.highlightPromql=function(e){return u.default.highlight(e,u.default.languages.promql,"promql")};t.getTokenContext=function(e,t){for(var a=[],r=t;r.parentNode&&e!==r.parentNode;)a.push(r.parentNode),r=r.parentNode;var u=a.reverse().map((function(e){return e.className&&e.className.split(" ")[1]||""})).join("."),o={},c=t.parentNode.className;return c.indexOf("label-key")>-1?o.label="":c.indexOf("label-value")>-1?(o.label=(0,l.default)(t,"parentNode.previousSibling.previousSibling.textContent",""),o.value=""):c.indexOf("context-labels")>-1&&(t.previousSibling?t.previousSibling.className.indexOf("label-key")>-1?(o.label=t.previousSibling.textContent.replace(/{,/g,""),o.value=""):t.previousSibling.className.indexOf("label-value")>-1&&(o.label=t.textContent.replace(/{,/g,"")):o.label=""),function(e){for(var t=1;t8||a.length>8)&&!r?s.createElement(p.Tooltip,{placement:"top",appendToBody:!0,content:this.renderClusterItem(!0)},this.renderClusterItem()):this.renderClusterItem())}}]),a}(s.Component);t.default=g,g.propTypes={label:d.default.string,value:d.default.string,onDelete:d.default.func,name:d.default.string.isRequired}},,,,,,,,,,,,,,,,,,,,,function(e,t,a){"use strict";a.r(t),a.d(t,"ReactComponent",(function(){return c}));var r=a(315),n=a.n(r),l=a(0),u=a.n(l),o=u.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.898 2l6.666 11.547H2.231L8.898 2zm.666 10a.667.667 0 11-1.333 0 .667.667 0 011.333 0zm0-6H8.231l.133 4.667h1.067L9.564 6z",fill:"#F5A623"}),i=u.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.564 6H8.231l.133 4.667h1.067L9.564 6zm-.666 6.667a.667.667 0 100-1.333.667.667 0 000 1.333z",fill:"#fff"}),c=function(e){return u.a.createElement("svg",n()({viewBox:"0 0 17 16",fill:"none",width:"1em",height:"1em"},e),o,i)};t.default="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTciIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNyAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik04Ljg5NzYyIDJMMTUuNTY0MyAxMy41NDY3SDIuMjMwOTZMOC44OTc2MiAyWk05LjU2NDI5IDEyLjAwMDdDOS41NjQyOSAxMi4zNjg5IDkuMjY1ODEgMTIuNjY3NCA4Ljg5NzYyIDEyLjY2NzRDOC41Mjk0MyAxMi42Njc0IDguMjMwOTYgMTIuMzY4OSA4LjIzMDk2IDEyLjAwMDdDOC4yMzA5NiAxMS42MzI1IDguNTI5NDMgMTEuMzM0IDguODk3NjIgMTEuMzM0QzkuMjY1ODEgMTEuMzM0IDkuNTY0MjkgMTEuNjMyNSA5LjU2NDI5IDEyLjAwMDdaTTkuNTY0MjkgNkg4LjIzMDk2TDguMzY0MjkgMTAuNjY2N0g5LjQzMDk2TDkuNTY0MjkgNloiIGZpbGw9IiNGNUE2MjMiLz4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik05LjU2NDI5IDZIOC4yMzA5Nkw4LjM2NDI5IDEwLjY2NjdIOS40MzA5Nkw5LjU2NDI5IDZaTTguODk3NjIgMTIuNjY3NEM5LjI2NTgxIDEyLjY2NzQgOS41NjQyOSAxMi4zNjg5IDkuNTY0MjkgMTIuMDAwN0M5LjU2NDI5IDExLjYzMjUgOS4yNjU4MSAxMS4zMzQgOC44OTc2MiAxMS4zMzRDOC41Mjk0MyAxMS4zMzQgOC4yMzA5NiAxMS42MzI1IDguMjMwOTYgMTIuMDAwN0M4LjIzMDk2IDEyLjM2ODkgOC41Mjk0MyAxMi42Njc0IDguODk3NjIgMTIuNjY3NFoiIGZpbGw9IndoaXRlIi8+Cjwvc3ZnPgo="},,,,,,,,,,,,,,,,,function(e,t,a){"use strict";a(15);var r=a(20);a(18),a(16),a(4),a(23),a(17),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(45),a(18),a(42),a(16),a(4),a(23),a(57),a(17);var n=r(a(315)),l=r(a(36)),u=r(a(37)),o=r(a(55)),i=r(a(56)),c=r(a(51)),s=r(a(0)),f=r(a(1));a(1279);var d=r(a(998)),p=r(a(1036)),m=r(a(1089));function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,c.default)(e);if(t){var n=(0,c.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,i.default)(this,a)}}var v=function(e){(0,o.default)(a,e);var t=h(a);function a(){return(0,l.default)(this,a),t.apply(this,arguments)}return(0,u.default)(a,[{key:"render",value:function(){var e=this.props,t=e.width,a=e.height,r=e.data,l=e.dataKey,u=e.innerRadius,o=void 0===u?"60%":u,i=e.outerRadius,c=void 0===i?"100%":i;return s.default.createElement(m.default,{width:t,height:a},s.default.createElement(p.default,{data:r,dataKey:l,innerRadius:o,outerRadius:c,animationDuration:1e3},r.map((function(e){return s.default.createElement(d.default,(0,n.default)({key:"cell-".concat(e.name)},e.itemStyle,{strokeWidth:0}))}))))}}]),a}(s.default.Component);t.default=v,v.propTypes={width:f.default.oneOfType([f.default.string,f.default.number]),height:f.default.oneOfType([f.default.string,f.default.number])},v.defaultProps={width:100,height:100,dataKey:"value"}},function(e,t,a){e.exports={title:"_3R9eLWdkRd9o_flAlWvHLx",default:"_2G2DnMhtpeqDEv91UyFh3A",cur:"_1c1g45SkasImY0_alODa4h",custom:"_1zLUgkVtJ5Jr-NdoWiK6aj",selectBox:"_3DT0sgCFRXpA-LxQ7eKvqn",bottom10:"QH6NAxOiq9B6Q6ihrskOG",actions:"_3zCFT6vGh-Uu2uYIZEtuUx"}},,,,,,,,function(e,t,a){"use strict";a(15),Object.defineProperty(t,"__esModule",{value:!0}),t.eckYaml=void 0;t.eckYaml={resources:{apiVersion:"elasticsearch.k8s.elastic.co/v1",kind:"Elasticsearch",metadata:{name:"quickstart"},spec:{version:"7.17.5",nodeSets:[{name:"master",count:3,config:{"node.roles":["master"]},podTemplate:{spec:{initContainers:[{name:"sysctl",securityContext:{privileged:!0,runAsUser:0},command:["sh","-c","sysctl -w vm.max_map_count=262144"]}],containers:[{name:"elasticsearch",resources:{limits:{memory:"8Gi",cpu:2},requests:{memory:"8Gi",cpu:2}},env:[{name:"ES_JAVA_OPTS",value:"-Xms4g -Xmx4g"}]}]}},volumeClaimTemplates:[{metadata:{name:"elasticsearch-data"},spec:{accessModes:["ReadWriteOnce"],resources:{requests:{storage:"20Gi"}},storageClassName:"csi-high-capacity"}}]},{name:"hot",count:2,config:{"node.roles":["data_hot","data_content"]},podTemplate:{spec:{initContainers:[{name:"sysctl",securityContext:{privileged:!0,runAsUser:0},command:["sh","-c","sysctl -w vm.max_map_count=262144"]}],containers:[{name:"elasticsearch",resources:{limits:{memory:"8Gi",cpu:2},requests:{memory:"8Gi",cpu:2}},env:[{name:"ES_JAVA_OPTS",value:"-Xms4g -Xmx4g"}]}]}},volumeClaimTemplates:[{metadata:{name:"elasticsearch-data"},spec:{accessModes:["ReadWriteOnce"],resources:{requests:{storage:"40Gi"}},storageClassName:"csi-high-capacity"}}]},{name:"warm",count:0,config:{"node.roles":["data_warm"]},podTemplate:{spec:{initContainers:[{name:"sysctl",securityContext:{privileged:!0,runAsUser:0},command:["sh","-c","sysctl -w vm.max_map_count=262144"]}],containers:[{name:"elasticsearch",resources:{limits:{memory:"8Gi",cpu:2},requests:{memory:"8Gi",cpu:2}},env:[{name:"ES_JAVA_OPTS",value:"-Xms4g -Xmx4g"}]}]}},volumeClaimTemplates:[{metadata:{name:"elasticsearch-data"},spec:{accessModes:["ReadWriteOnce"],resources:{requests:{storage:"40Gi"}},storageClassName:"csi-high-capacity"}}]},{name:"cold",count:0,config:{"node.roles":["data_cold"]},podTemplate:{spec:{initContainers:[{name:"sysctl",securityContext:{privileged:!0,runAsUser:0},command:["sh","-c","sysctl -w vm.max_map_count=262144"]}],containers:[{name:"elasticsearch",resources:{limits:{memory:"8Gi",cpu:2},requests:{memory:"8Gi",cpu:2}},env:[{name:"ES_JAVA_OPTS",value:"-Xms4g -Xmx4g"}]}]}},volumeClaimTemplates:[{metadata:{name:"elasticsearch-data"},spec:{accessModes:["ReadWriteOnce"],resources:{requests:{storage:"40Gi"}},storageClassName:"csi-high-capacity"}}]}]}},kibana:{apiVersion:"kibana.k8s.elastic.co/v1",kind:"Kibana",metadata:{name:"quickstart"},spec:{version:"7.17.5",count:1,elasticsearchRef:{name:"quickstart",namespace:"default"},podTemplate:{spec:{containers:[{name:"kibana",resources:{requests:{cpu:"1000m",memory:"2Gi"},limits:{cpu:"2000m",memory:"4Gi"}}}]}}}}}},function(e,t,a){"use strict";a(15),Object.defineProperty(t,"__esModule",{value:!0}),t.opensearchYaml=void 0;t.opensearchYaml={resources:{apiVersion:"opensearch.opster.io/v1",kind:"OpenSearchCluster",metadata:{name:"cluster"},spec:{general:{version:"2.3.0",httpPort:9200,vendor:"opensearch",serviceName:"cluster"},dashboards:{version:"2.3.0",enable:!0,replicas:1,resources:{requests:{memory:"1Gi",cpu:"500m"},limits:{memory:"1Gi",cpu:"500m"}}},confMgmt:{smartScaler:!0},security:{config:{securityConfigSecret:{name:"securityconfig-secret"},adminCredentialsSecret:{name:"admin-credentials-secret"}},tls:{transport:{generate:!0},http:{generate:!0}},keyStoreConfig:[]},nodePools:[{component:"masters",replicas:2,diskSize:"50Gi",persistence:{pvc:{storageClass:"csi-qingcloud",accessModes:["ReadWriteOnce"]}},additionalConfig:{"node.attr.datatier":"master"},resources:{requests:{memory:"1Gi",cpu:"500m"},limits:{memory:"1Gi",cpu:"500m"}},roles:["cluster_manager"]},{component:"data-node-hot",replicas:2,diskSize:"30Gi",persistence:{pvc:{storageClass:"csi-qingcloud",accessModes:["ReadWriteOnce"]}},additionalConfig:{"node.attr.datatier":"hot"},resources:{requests:{memory:"1Gi",cpu:"500m"},limits:{memory:"1Gi",cpu:"500m"}},roles:["data"]},{component:"data-node-warm",replicas:2,diskSize:"30Gi",persistence:{pvc:{storageClass:"csi-qingcloud",accessModes:["ReadWriteOnce"]}},additionalConfig:{"node.attr.datatier":"warm"},resources:{requests:{memory:"1Gi",cpu:"500m"},limits:{memory:"1Gi",cpu:"500m"}},roles:["data"]}]}},node:{component:"data-node-hot",replicas:2,diskSize:"30Gi",persistence:{pvc:{storageClass:"csi-qingcloud",accessModes:["ReadWriteOnce"]}},additionalConfig:{"node.attr.datatier":"hot"},resources:{requests:{memory:"1Gi",cpu:"500m"},limits:{memory:"1Gi",cpu:"500m"}},roles:["data"]},logstash:{apiVersion:"opensearch.opster.io/v1",kind:"Logstash",metadata:{name:"logstash-sample"},spec:{replicas:1,config:{jvm:"-Xms512m -Xmx512m",openSearchInfo:{openSearchCluster:{name:"my-cluster",namespace:"default"},openSearchService:{name:"my-cluster"}},logstashConfig:[],ports:[8080],pipelineConfig:{inputs:'http {\n host => "0.0.0.0"\n port => 8080\n}',filters:'mutate {\n add_field => { "LogstashHost" => "${HOSTNAME}" }\n}',outputs:null,openSearchIndex:'index => "logstash-%{+YYYY.MM.dd}"'}},podTemplate:{spec:{containers:[{name:"logstash",resources:{requests:{memory:"1Gi",cpu:"500m"},limits:{memory:"1Gi",cpu:"500m"}}},{name:"exporter",resources:{requests:{memory:"400Mi",cpu:"200m"},limits:{memory:"400Mi",cpu:"200m"}}}]}}}},logstashSecret:{apiVersion:"v1",kind:"Secret",metadata:{name:"logstash-credential"},type:"Opaque",data:{username:"bG9nc3Rhc2g=",password:"bG9nc3Rhc2g="}},adminSecret:{apiVersion:"v1",kind:"Secret",metadata:{name:"admin-credentials-secret"},type:"Opaque",data:{username:"UmFkb25EQkAxMjM=",password:"UmFkb25EQkAxMjM="}},securityConfigSecret:{apiVersion:"v1",kind:"Secret",metadata:{name:"securityconfig-secret"},type:"Opaque",stringData:{"action_groups.yml":'_meta:\n type: "actiongroups"\n config_version: 2',"internal_users.yml":'_meta:\n type: "internalusers"\n config_version: 2\nroot:\n hash: "$2y$12$JwL3peIal4VShAgkyZlMG.t1zwcCnPSAJ2E6GHCDoGhZJLkRX11b2"\n reserved: true\n hidden: true\n backend_roles:\n - "admin"\n description: "Internal root user for cluster"\nadmin:\n hash: "$2a$10$ihutvIcl7kp9PF2RFMZeXuZb2RdUpBFR5t4W0KV5LFZylPheworfW"\n reserved: false\n backend_roles:\n - "admin"\n description: "custom admin user"\ndashboarduser:\n hash: "$2y$12$o8Uxs2c6T8wzTfOpf1Pxvulqxs6BigWaJhSldWUtRdbDa555GM7F6"\n reserved: false\n description: "OpenSearch internal dashboards user"\nlogstash:\n hash: "$2y$12$sjAmhIfYAJsPJXNm2WI29e/rLX5V.OxV1l8L1An7wO2pz6WX5NIpy"\n reserved: false\n description: "OpenSearch internal logstash user"\nprometheus:\n hash: "$2y$12$wml4GdNlHOos1FgNWk1zSu9sWV2JE0.CkWsLP0YHFPxojW/v2EGeq"\n reserved: true\n hidden: true\n backend_roles:\n - "admin"\n description: "OpenSearch internal prometheus user"',"nodes_dn.yml":'_meta:\n type: "nodesdn"\n config_version: 2',"whitelist.yml":'_meta:\n type: "whitelist"\n config_version: 2',"tenants.yml":'_meta:\n type: "tenants"\n config_version: 2',"roles_mapping.yml":'_meta:\n type: "rolesmapping"\n config_version: 2\nall_access:\n reserved: false\n backend_roles:\n - "admin"\n description: "Maps admin to all_access"\nown_index:\n reserved: false\n users:\n - "*"\n description: "Allow full access to an index named like the username"\nreadall:\n reserved: false\n backend_roles:\n - "readall"\nmanage_snapshots:\n reserved: false\n backend_roles:\n - "snapshotrestore"\ndashboard_server:\n reserved: true\n users:\n - "dashboarduser"',"roles.yml":"_meta:\n type: \"roles\"\n config_version: 2\ndashboard_read_only:\n reserved: true\nsecurity_rest_api_access:\n reserved: true\n# Allows users to view monitors, destinations and alerts\nalerting_read_access:\n reserved: true\n cluster_permissions:\n - 'cluster:admin/opendistro/alerting/alerts/get'\n - 'cluster:admin/opendistro/alerting/destination/get'\n - 'cluster:admin/opendistro/alerting/monitor/get'\n - 'cluster:admin/opendistro/alerting/monitor/search'\n# Allows users to view and acknowledge alerts\nalerting_ack_alerts:\n reserved: true\n cluster_permissions:\n - 'cluster:admin/opendistro/alerting/alerts/*'\n# Allows users to use all alerting functionality\nalerting_full_access:\n reserved: true\n cluster_permissions:\n - 'cluster_monitor'\n - 'cluster:admin/opendistro/alerting/*'\n index_permissions:\n - index_patterns:\n - '*'\n allowed_actions:\n - 'indices_monitor'\n - 'indices:admin/aliases/get'\n - 'indices:admin/mappings/get'\n# Allow users to read Anomaly Detection detectors and results\nanomaly_read_access:\n reserved: true\n cluster_permissions:\n - 'cluster:admin/opendistro/ad/detector/info'\n - 'cluster:admin/opendistro/ad/detector/search'\n - 'cluster:admin/opendistro/ad/detectors/get'\n - 'cluster:admin/opendistro/ad/result/search'\n - 'cluster:admin/opendistro/ad/tasks/search'\n - 'cluster:admin/opendistro/ad/detector/validate'\n - 'cluster:admin/opendistro/ad/result/topAnomalies'\n# Allows users to use all Anomaly Detection functionality\nanomaly_full_access:\n reserved: true\n cluster_permissions:\n - 'cluster_monitor'\n - 'cluster:admin/opendistro/ad/*'\n index_permissions:\n - index_patterns:\n - '*'\n allowed_actions:\n - 'indices_monitor'\n - 'indices:admin/aliases/get'\n - 'indices:admin/mappings/get'\n# Allows users to read Notebooks\nnotebooks_read_access:\n reserved: true\n cluster_permissions:\n - 'cluster:admin/opendistro/notebooks/list'\n - 'cluster:admin/opendistro/notebooks/get'\n# Allows users to all Notebooks functionality\nnotebooks_full_access:\n reserved: true\n cluster_permissions:\n - 'cluster:admin/opendistro/notebooks/create'\n - 'cluster:admin/opendistro/notebooks/update'\n - 'cluster:admin/opendistro/notebooks/delete'\n - 'cluster:admin/opendistro/notebooks/get'\n - 'cluster:admin/opendistro/notebooks/list'\n# Allows users to read observability objects\nobservability_read_access:\n reserved: true\n cluster_permissions:\n - 'cluster:admin/opensearch/observability/get'\n# Allows users to all Observability functionality\nobservability_full_access:\n reserved: true\n cluster_permissions:\n - 'cluster:admin/opensearch/observability/create'\n - 'cluster:admin/opensearch/observability/update'\n - 'cluster:admin/opensearch/observability/delete'\n - 'cluster:admin/opensearch/observability/get'\n# Allows users to read and download Reports\nreports_instances_read_access:\n reserved: true\n cluster_permissions:\n - 'cluster:admin/opendistro/reports/instance/list'\n - 'cluster:admin/opendistro/reports/instance/get'\n - 'cluster:admin/opendistro/reports/menu/download'\n# Allows users to read and download Reports and Report-definitions\nreports_read_access:\n reserved: true\n cluster_permissions:\n - 'cluster:admin/opendistro/reports/definition/get'\n - 'cluster:admin/opendistro/reports/definition/list'\n - 'cluster:admin/opendistro/reports/instance/list'\n - 'cluster:admin/opendistro/reports/instance/get'\n - 'cluster:admin/opendistro/reports/menu/download'\n# Allows users to all Reports functionality\nreports_full_access:\n reserved: true\n cluster_permissions:\n - 'cluster:admin/opendistro/reports/definition/create'\n - 'cluster:admin/opendistro/reports/definition/update'\n - 'cluster:admin/opendistro/reports/definition/on_demand'\n - 'cluster:admin/opendistro/reports/definition/delete'\n - 'cluster:admin/opendistro/reports/definition/get'\n - 'cluster:admin/opendistro/reports/definition/list'\n - 'cluster:admin/opendistro/reports/instance/list'\n - 'cluster:admin/opendistro/reports/instance/get'\n - 'cluster:admin/opendistro/reports/menu/download'\n# Allows users to use all asynchronous-search functionality\nasynchronous_search_full_access:\n reserved: true\n cluster_permissions:\n - 'cluster:admin/opendistro/asynchronous_search/*'\n index_permissions:\n - index_patterns:\n - '*'\n allowed_actions:\n - 'indices:data/read/search*'\n# Allows users to read stored asynchronous-search results\nasynchronous_search_read_access:\n reserved: true\n cluster_permissions:\n - 'cluster:admin/opendistro/asynchronous_search/get'\n# Allows user to use all index_management actions - ism policies, rollups, transforms\nindex_management_full_access:\n reserved: true\n cluster_permissions:\n - \"cluster:admin/opendistro/ism/*\"\n - \"cluster:admin/opendistro/rollup/*\"\n - \"cluster:admin/opendistro/transform/*\"\n index_permissions:\n - index_patterns:\n - '*'\n allowed_actions:\n - 'indices:admin/opensearch/ism/*'\n# Allows users to use all cross cluster replication functionality at leader cluster\ncross_cluster_replication_leader_full_access:\n reserved: true\n index_permissions:\n - index_patterns:\n - '*'\n allowed_actions:\n - \"indices:admin/plugins/replication/index/setup/validate\"\n - \"indices:data/read/plugins/replication/changes\"\n - \"indices:data/read/plugins/replication/file_chunk\"\n# Allows users to use all cross cluster replication functionality at follower cluster\ncross_cluster_replication_follower_full_access:\n reserved: true\n cluster_permissions:\n - \"cluster:admin/plugins/replication/autofollow/update\"\n index_permissions:\n - index_patterns:\n - '*'\n allowed_actions:\n - \"indices:admin/plugins/replication/index/setup/validate\"\n - \"indices:data/write/plugins/replication/changes\"\n - \"indices:admin/plugins/replication/index/start\"\n - \"indices:admin/plugins/replication/index/pause\"\n - \"indices:admin/plugins/replication/index/resume\"\n - \"indices:admin/plugins/replication/index/stop\"\n - \"indices:admin/plugins/replication/index/update\"\n - \"indices:admin/plugins/replication/index/status_check\"","config.yml":'_meta:\n type: "config"\n config_version: "2"\nconfig:\n dynamic:\n http:\n anonymous_auth_enabled: false\n authc:\n basic_internal_auth_domain:\n http_enabled: true\n transport_enabled: true\n order: "4"\n http_authenticator:\n type: basic\n challenge: true\n authentication_backend:\n type: intern'}}}},function(e,t,a){e.exports={modal:"_1wTsZBkkGMAzL2u8JX3Dlu",body:"_3HlZ33d_2YBiDbpExsvcbT",close:"_1QA0P_s0N5ObNWIz-PIN5W"}},function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(31),r(6),r(18),r(97),r(16),r(10),r(4),r(23),r(17),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(31),r(6),r(18),r(97),r(42),r(16),r(10),r(4),r(23),r(57),r(17),r(7);var l,u,o,i=n(r(36)),c=n(r(37)),s=n(r(55)),f=n(r(56)),d=n(r(51)),p=n(r(0)),m=n(r(1)),h=r(239),v=r(186),g=n(r(26)),y=n(r(74)),E=n(r(63)),b=n(r(806)),_=r(52),O=n(r(816)),S=n(r(829)),C=n(r(867)),D=n(r(318)),k=n(r(858));function N(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,d.default)(e);if(t){var n=(0,d.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,f.default)(this,a)}}var T=(0,h.observer)((o=u=function(e){(0,s.default)(r,e);var a=N(r);function r(e){var n;return(0,i.default)(this,r),(n=a.call(this,e)).handleAffinityChange=function(e){var t=n.replicasPolicyOptions.find((function(t){return t.value===e}));(0,y.default)(n.props.data,"spec.template.spec.affinity",t.affinity),"custom"===e?(0,y.default)(n.props.data,"spec.template.spec.customMode",[{}]):delete n.props.data.spec.template.spec.customMode,n.setState({mode:e},(function(){n.props.formProps&&n.props.formProps.onChange()}))},n.handleChange=function(e){var t={};e.forEach((function(e){"preferredDuringSchedulingIgnoredDuringExecution"===e.type?t[e.policy]={preferredDuringSchedulingIgnoredDuringExecution:[{weight:100,podAffinityTerm:{labelSelector:{matchExpressions:[{key:"app",operator:"In",values:[e.target]}]},topologyKey:"kubernetes.io/hostname"}}]}:"requiredDuringSchedulingIgnoredDuringExecution"===e.type&&(t[e.policy]={requiredDuringSchedulingIgnoredDuringExecution:[{labelSelector:{matchExpressions:[{key:"app",operator:"In",values:[e.target]}]},topologyKey:"kubernetes.io/hostname"}]})})),(0,y.default)(n.props.data,"spec.template.spec.affinity",t)},n.checkItemValid=function(e){return e.policy&&e.type&&e.target},n.modeValidator=function(e,a,r){return a?a.some((function(e){return!n.checkItemValid(e)}))?(r({message:t("RULE_NOT_COMPLETE"),field:e.field}),void n.forceUpdate()):void r():r()},n.state={mode:"default"},n.store=(0,_.isEdgeWizePage)()?new k.default(e.module):new D.default(e.module),n}return(0,c.default)(r,[{key:"replicasPolicyOptions",get:function(){var e={preferredDuringSchedulingIgnoredDuringExecution:[{weight:100,podAffinityTerm:{labelSelector:{matchLabels:(0,g.default)(this.props.data,"spec.template.metadata.labels",{})},topologyKey:"kubernetes.io/hostname"}}]};return[{value:"default",label:t("DEFAULT_RULES"),affinity:{},description:t("DEFAULT_RULES_DESC")},{value:"decentralized",label:t("DECENTRALIZED_SCHEDULING"),affinity:{podAntiAffinity:e},description:t("DECENTRALIZED_SCHEDULING_DESC")},{value:"aggregation",label:t("CENTRALIZED_SCHEDULING"),affinity:{podAffinity:e},description:t("CENTRALIZED_SCHEDULING_DESC")},{value:"custom",label:t("CUSTOM_RULES"),affinity:{},description:t("CUSTOM_RULES_DESC")}]}},{key:"policys",get:function(){return[{label:t("SCHEDULE_WITH_TARGET"),value:"podAffinity"},{label:t("SCHEDULE_AWAY_FROM_TARGET"),value:"podAntiAffinity"}]}},{key:"types",get:function(){return[{label:t("MATCH_IF_POSSIBLE"),value:"preferredDuringSchedulingIgnoredDuringExecution"},{label:t("MUST_MATCH"),value:"requiredDuringSchedulingIgnoredDuringExecution"}]}}]),(0,c.default)(r,[{key:"componentDidMount",value:function(){var e=this,t=(0,g.default)(this.props.data,"spec.template.spec.affinity",{});if((0,E.default)(t))this.setState({mode:"default"});else{var a=this.replicasPolicyOptions.find((function(e){return(0,b.default)(e.affinity,t)}));a?(this.setState({mode:a.value}),delete this.props.data.spec.template.spec.customMode):this.setState({mode:"custom"},(function(){var a=Object.keys(t).map((function(e){var a=Object.keys(t[e])[0];return{policy:e,type:a,target:(0,g.default)(t,"requiredDuringSchedulingIgnoredDuringExecution"===a?"[".concat(e,"][").concat(a,'][0]["labelSelector"]["matchExpressions"][0]["values"][0]'):"[".concat(e,"][").concat(a,'][0]["podAffinityTerm"]["labelSelector"]["matchExpressions"][0]["values"][0]'),"")}}));(0,y.default)(e.props.data,"spec.template.spec.customMode",a)}))}var r=this.props,n=r.cluster,l=r.namespace;this.store.fetchList({cluster:n,namespace:l,limit:1/0})}},{key:"renderAffinityParams",value:function(){var e=this.state.mode,a=this.replicasPolicyOptions,r=(0,g.default)(this.store,"list.data",[]).map((function(e){return{label:e.name,value:e.name}}));return p.default.createElement(p.default.Fragment,null,p.default.createElement(v.Form.Item,null,p.default.createElement(O.default,{value:e,options:a,onChange:this.handleAffinityChange,defaultValue:a[0].value})),"custom"===e&&p.default.createElement(v.Form.Item,{label:t("CUSTOM_RULES"),rules:[{validator:this.modeValidator,checkOnSubmit:!0}]},p.default.createElement(S.default,{name:"spec.template.spec.customMode",itemType:"object",addText:t("ADD"),checkItemValid:this.checkItemValid,onChange:this.handleChange},p.default.createElement(C.default,null,p.default.createElement(v.Select,{name:"policy",placeholder:t("TYPE"),options:this.policys}),p.default.createElement(v.Select,{name:"type",placeholder:t("STRATEGY"),options:this.types}),p.default.createElement(v.Select,{name:"target",placeholder:t("TARGET"),options:r,style:{marginLeft:20}})))))}},{key:"render",value:function(){var e=this.props.checkable;return p.default.createElement(v.Form.Group,{label:t("POD_SCHEDULING_RULES"),desc:t("POD_SCHEDULING_RULES_DESC"),keepDataWhenUnCheck:!0,checkable:e},this.renderAffinityParams())}}]),r}(p.default.Component),u.propTypes={data:m.default.object,checkable:m.default.bool,initial:m.default.bool},u.defaultProps={data:{},checkable:!1,initial:!1},l=o))||l;a.default=T},function(e,t,a){"use strict";var r=a(20);a(12),a(5),a(11),a(6),a(18),a(9),a(13),a(10),a(4),a(23),a(17),a(7),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(12),a(45),a(5),a(11),a(6),a(18),a(28),a(42),a(34),a(15),a(9),a(13),a(10),a(4),a(22),a(23),a(57),a(17),a(7);var n=r(a(43)),l=r(a(30)),u=r(a(58));a(41);var o,i=r(a(44)),c=r(a(36)),s=r(a(37)),f=r(a(55)),d=r(a(56)),p=r(a(51)),m=r(a(49)),h=r(a(68)),v=a(14),g=a(52);function y(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function E(e){for(var t=1;t0&&void 0!==d[0]?d[0]:{},a=t.cluster,t.namespace,r=t.module,l=(0,u.default)(t,["cluster","namespace","module"]),this.list.isLoading=!0,r&&(this.module=r),o=l,i="".concat(this.apiVersion,"/").concat(this.module).concat(o.dryRun?"?dryRun=All":""),e.next=7,request.get(i,o);case 7:return c=e.sent,s=c.items.map((function(e){return E({cluster:a,module:r||f.module},f.mapper(e))})),(0,g.LimitsEqualRequests)(s),this.list.update({data:s,total:c.items.length,isLoading:!1}),e.abrupt("return",s);case 12:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})}]),r}(h.default),(0,m.default)(o.prototype,"fetchListByK8s",[v.action],Object.getOwnPropertyDescriptor(o.prototype,"fetchListByK8s"),o.prototype),o);t.default=_},function(e,t,a){"use strict";a(15);var r=a(20);a(4),a(23),a(17),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(45),a(42),a(4),a(23),a(57),a(17);var n=r(a(36)),l=r(a(55)),u=r(a(56)),o=r(a(51));function i(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,o.default)(e);if(t){var n=(0,o.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,u.default)(this,a)}}var c=function(e){(0,l.default)(a,e);var t=i(a);function a(){return(0,n.default)(this,a),t.apply(this,arguments)}return a}(r(a(913)).default);t.default=c},function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(97),r(16),r(4),r(23),r(24),r(17),r(62),r(64),r(75),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var l=n(r(36)),u=n(r(37)),o=n(r(55)),i=n(r(56)),c=n(r(51));r(45),r(5),r(97),r(42),r(16),r(4),r(23),r(57),r(24),r(17),r(62),r(64),r(75);var s=n(r(800)),f=n(r(158)),d=n(r(0)),p=r(186),m=n(r(799)),h=n(r(1098)),v=r(72),g=n(r(2296));function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,c.default)(e);if(t){var n=(0,c.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,i.default)(this,a)}}var E=function(e){var t="HTTP",a=e.value,r=a.name,n=a.containerPort,l=e.index;if(!(0,f.default)(r)){var u=r.match(/^(\w+)-(.*)/);u&&(t=(u[1]||"HTTP").toUpperCase())}return{name:(0,f.default)(r)?"".concat(t.toLowerCase(),"-").concat(l):r,protocol:v.PROTOCOLS.some((function(e){return e.value===t}))?t:e.value.protocol,containerPort:n,propsValue:e.value}},b=function(e){(0,o.default)(r,e);var a=y(r);function r(e){var t;return(0,l.default)(this,r),(t=a.call(this,e)).triggerChange=(0,s.default)((function(){var e=t.state,a=e.name,r=e.protocol,n=e.containerPort;t.props.onChange({name:a,protocol:"UDP"===r?"UDP":"TCP",containerPort:n})}),300),t.handleNameChange=function(e,a){t.setState({name:a},(function(){return t.triggerChange()}))},t.handleProtocolChange=function(e){var a,r=t.state.name,n="".concat(t.state.protocol.toLowerCase(),"-"),l=t.props.index;a=r.startsWith(n)?"".concat(e.toLowerCase(),"-").concat(r.replace(n,"")):"".concat(e.toLowerCase(),"-").concat(l),t.setState({name:a,protocol:e},(function(){return t.triggerChange()}))},t.handleContainerPortChange=function(e){t.setState({containerPort:e},(function(){return t.triggerChange()}))},t.state=E(e),t}return(0,u.default)(r,[{key:"componentDidMount",value:function(){this.triggerChange()}},{key:"render",value:function(){var e=this.state,a=e.name,r=e.protocol,n=e.containerPort;return d.default.createElement("div",{className:g.default.wrapper},d.default.createElement(h.default,{prefix:d.default.createElement("div",{className:g.default.tip},d.default.createElement("span",null,t("PROTOCOL")),d.default.createElement(p.Tooltip,{content:t("ISTIO_PROTOCOL_TIP")},d.default.createElement(p.Icon,{name:"question"})))},d.default.createElement(p.Select,{name:"protocol",value:r,options:v.PROTOCOLS,defaultValue:"HTTP",onChange:this.handleProtocolChange})),d.default.createElement(h.default,{prefix:t("NAME")},d.default.createElement(p.Input,{name:"name",value:a,placeholder:t("REQUIRED"),onChange:this.handleNameChange})),d.default.createElement(h.default,{prefix:t("CONTAINER_PORT")},d.default.createElement(m.default,{name:"containerPort",min:1,max:65535,value:n,integer:!0,onChange:this.handleContainerPortChange})))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return e.value!==t.propsValue?E(e):null}}]),r}(d.default.Component);a.default=b,b.defaultProps={value:{},onChange:function(){}}},function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(97),r(16),r(4),r(23),r(24),r(17),r(62),r(64),r(75),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var l=n(r(36)),u=n(r(37)),o=n(r(55)),i=n(r(56)),c=n(r(51));r(45),r(5),r(97),r(42),r(16),r(4),r(23),r(57),r(24),r(17),r(62),r(64),r(75);var s=n(r(800)),f=n(r(158)),d=n(r(0)),p=r(186),m=n(r(799)),h=n(r(1098)),v=r(72),g=n(r(2297));function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,c.default)(e);if(t){var n=(0,c.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,i.default)(this,a)}}var E=function(e){var t="HTTP",a=e.value,r=a.name,n=a.containerPort,l=a.servicePort,u=e.index;if(!(0,f.default)(r)){var o=r.match(/^(\w+)-(.*)/);o&&(t=(o[1]||"HTTP").toUpperCase())}return{name:(0,f.default)(r)?"".concat(t.toLowerCase(),"-").concat(u):r,protocol:v.PROTOCOLS.some((function(e){return e.value===t}))?t:e.value.protocol,containerPort:n,servicePort:l,propsValue:e.value}},b=function(e){(0,o.default)(r,e);var a=y(r);function r(e){var t;return(0,l.default)(this,r),(t=a.call(this,e)).triggerChange=(0,s.default)((function(){var e=t.state,a=e.name,r=e.protocol,n=e.containerPort,l=e.servicePort;t.props.onChange({name:a,protocol:"UDP"===r?"UDP":"TCP",containerPort:n,servicePort:l})}),300),t.handleNameChange=function(e,a){t.setState({name:a},(function(){return t.triggerChange()}))},t.handleProtocolChange=function(e){var a,r=t.state.name,n="".concat(t.state.protocol.toLowerCase(),"-"),l=t.props.index;a=r.startsWith(n)?"".concat(e.toLowerCase(),"-").concat(r.replace(n,"")):"".concat(e.toLowerCase(),"-").concat(l),t.setState({name:a,protocol:e},(function(){return t.triggerChange()}))},t.handleContainerPortChange=function(e){t.setState({containerPort:e},(function(){return t.triggerChange()}))},t.handleServicePortChange=function(e){t.setState({servicePort:e},(function(){return t.triggerChange()}))},t.state=E(e),t}return(0,u.default)(r,[{key:"render",value:function(){var e=this.state,a=e.name,r=e.protocol,n=e.containerPort,l=e.servicePort;return d.default.createElement("div",{className:g.default.wrapper},d.default.createElement(h.default,{prefix:d.default.createElement("div",{className:g.default.tip},d.default.createElement("span",null,t("PROTOCOL")),d.default.createElement(p.Tooltip,{content:t("ISTIO_PROTOCOL_TIP")},d.default.createElement(p.Icon,{name:"question"})))},d.default.createElement(p.Select,{name:"protocol",value:r,options:v.PROTOCOLS,defaultValue:"HTTP",onChange:this.handleProtocolChange})),d.default.createElement(h.default,{prefix:t("NAME")},d.default.createElement(p.Input,{name:"name",value:a,placeholder:t("REQUIRED"),onChange:this.handleNameChange})),d.default.createElement(h.default,{prefix:t("CONTAINER_PORT")},d.default.createElement(m.default,{name:"containerPort",min:1,max:65535,value:n,integer:!0,placeholder:t("REQUIRED"),onChange:this.handleContainerPortChange})),d.default.createElement(h.default,{prefix:t("SERVICE_PORT")},d.default.createElement(m.default,{name:"servicePort",min:1,max:65535,value:l,integer:!0,placeholder:t("REQUIRED"),onChange:this.handleServicePortChange})))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return e.value!==t.propsValue?E(e):null}}]),r}(d.default.Component);a.default=b,b.defaultProps={value:{},onChange:function(){}}},function(e,t,a){e.exports={wrapper:"_-4cD0WdpjLQRRfr3eATB5",desc:"_2trN64nTOrpOtASKkHhxbZ",extraBtn:"_3NUIXlnSX0odfiMD6xuinj",formError:"_1xwVkCYNchrNAw08m7njse",nameTip:"_3_TvkG3h8EIIY2xImC5li9",typeBox:"_1ct3Xc_GatVlbSJhR46WFq",textContent:"_3tiLSem7va-QAMUpYlyOLJ"}},function(e,a,r){"use strict";r(15);var n=r(20);r(12),r(109),r(5),r(4),r(23),r(24),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(109),r(45),r(5),r(42),r(4),r(23),r(57),r(24),r(17);var l=n(r(36)),u=n(r(37)),o=n(r(55)),i=n(r(56)),c=n(r(51)),s=n(r(0)),f=n(r(1)),d=n(r(3)),p=n(r(63)),m=n(r(26)),h=r(186),v=n(r(2305)),g=n(r(2308));function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,c.default)(e);if(t){var n=(0,c.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,i.default)(this,a)}}var E=function(e){(0,o.default)(r,e);var a=y(r);function r(){var e;(0,l.default)(this,r);for(var t=arguments.length,n=new Array(t),u=0;u1&&" ..."),s.default.createElement("p",null,t("COMMANDS")))}return null}},{key:"renderProbeForm",value:function(){var e=this.props,t=e.probType,a=e.value,r=e.componentType;return s.default.createElement(v.default,{className:g.default.form,data:a,probType:t,onSave:this.handleForm,onCancel:this.hideForm,componentType:r})}},{key:"render",value:function(){var e=this.props,a=e.description,r=e.value,n=e.componentType,l=e.label;return this.state.showForm?s.default.createElement("div",{className:g.default.probe},this.renderProbeForm()):(0,p.default)(r)?s.default.createElement("div",{className:(0,d.default)(g.default.empty),onClick:this.showForm},s.default.createElement("div",null,l||t("ADD_PROBE")),s.default.createElement("p",{className:"text-secondary"},a)):s.default.createElement("div",{className:g.default.probe},s.default.createElement("div",{className:g.default.content},s.default.createElement(h.Icon,{name:"monitor",size:40}),s.default.createElement("div",null,s.default.createElement("strong",null,t(this.getProbeTypeText(r))),"heal"===n&&s.default.createElement("p",null,s.default.createElement("span",null,t("INITIAL_DELAY_TIMEOUT_VALUE",{delay:r.initialDelaySeconds||0,timeout:r.timeoutSeconds||0})))),this.renderProbeInfo()),s.default.createElement("div",{className:"buttons"},s.default.createElement(h.Button,{type:"flat",icon:"trash",onClick:this.handleDelete}),s.default.createElement(h.Button,{type:"flat",icon:"pen",onClick:this.showForm})))}}]),r}(s.default.Component);a.default=E,E.propTypes={name:f.default.string,label:f.default.string,value:f.default.object,onChange:f.default.func,onShowForm:f.default.func,deleteNoObject:f.default.bool},E.defaultProps={name:"",label:"",value:{},onChange:function(){},onShowForm:function(){},componentType:"heal",deleteNoObject:!1}},function(e,t,a){e.exports={wrapper:"_2qA0DfrVhnER8QvH0wQNVs",radioGroup:"lTdgbwVyGMyso1J2-ZyQQ",confirm:"_3750no6wmEKmoHmvmyPMsm",object:"_2y_cKPnzZxbXLF_dVafN1k"}},function(e,t,a){e.exports={dropContent:"_1dgWc_FlxZ0I2I8eO_mtsY",header:"_1eg7T1EUzEx9lO_Vk2smqx",listContent:"_1R7XJrTUSk0K11NbeSsvLQ",starContainer:"_4tmFCc6PQiPbAgn206MC8",actions:"_3F90TmEUEEPlTASxdMgZNV",info:"_2R3U9MOi9qgl_FL21JznCz",tabs:"_28RQBc6TkhuRe7tAIJCGmp",tab:"_2hTxWsg41px5hCSv1Wm99F",selected:"_2VkYzhd5Ow_BEjxkhOq3eX",search:"_1XQXLeI-z0GOUpjlyPkOfe",message:"KvW_BUlNf1lu0E8HSDczo",selectedContent:"_3KFGJfmozlVYx4gEvbu6dA",selectedImageInfo:"_3v0zkUOyV-JibpFOGMj7Xt",selectedInfo:"_25UPs6oZb2m0_CwkRBpmWK",icon:"_10xemcZ1Xi6n-LscTe8-8U",logo:"_2C8Gd9hCy9D14behvqpKSG",imageInfo:"_2-qLBNFfWh3DKt1NKsQZBH",emptyContent:"_1NipMFmAIiG0us8zcmeW3p",desc:"_2qpXEBvwkvD9MmvpqIxKu9",textConfirm:"_1EMGC0hNKltp9Gqej1THm9",registryFooter:"_1ohyELTkhVtaqqWwThH647",dropContent_hide:"_1trQN1nAMesw9gU4dm2GmW",dropDownIcon:"_2Ispz9PQoN4qvKuwb3ZVWB",clickable:"_3dHyyekpvmPUPtbo3xQG0Z",star:"_1SkfiEdBayGXiRRaBkwk7H",imageInput:"DhITaL97AQEJeR5vr14Je"}},function(e,t,a){e.exports={content:"_3wriWVsghyEeMHLsxqYuhC",radioListContent:"_6OcLzfJRUG_EEwKee4cRi",radioOnlyOneListContent:"_1vdnayTJXtlQIl5FjEbAXn",radioList:"_1U2J5xETOAh5sL0WjecCxJ",imageTagDetailItem:"_1yRt9fX0qMa0ara4u5hKhu",icon:"_2oschSYAXruRPq7qHwTSTX",tagName:"_3Q77ElyimDbKWMAq6wz-Qb"}},function(e,a,r){"use strict";r(15);var n=r(20);r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(42),r(4),r(23),r(57),r(17);var l=n(r(36)),u=n(r(37)),o=n(r(55)),i=n(r(56)),c=n(r(51)),s=n(r(0)),f=r(186),d=n(r(1099)),p=n(r(799)),m=n(r(2328));function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,c.default)(e);if(t){var n=(0,c.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,i.default)(this,a)}}var v=function(e){(0,o.default)(r,e);var a=h(r);function r(){return(0,l.default)(this,r),a.apply(this,arguments)}return(0,u.default)(r,[{key:"render",value:function(){return s.default.createElement("div",{className:"margin-b12"},s.default.createElement("div",{className:m.default.title},t("USER_AND_USER_GROUP")),s.default.createElement("div",{className:m.default.content},s.default.createElement(f.Form.Item,null,s.default.createElement(d.default,{name:"".concat(this.prefix,".runAsNonRoot"),title:t("RUN_AS_NON_ROOT"),description:t("RUN_AS_NON_ROOT_DESC")})),s.default.createElement("div",{className:"padding-12"},s.default.createElement(f.Columns,null,s.default.createElement(f.Column,null,s.default.createElement(f.Form.Item,{label:t("USER"),desc:t("RUN_AS_USER_DESC")},s.default.createElement(p.default,{name:"".concat(this.prefix,".runAsUser"),integer:!0}))),s.default.createElement(f.Column,null,s.default.createElement(f.Form.Item,{label:t("USER_GROUP"),desc:t("RUN_AS_USER_GROUP_DESC")},s.default.createElement(p.default,{name:"".concat(this.prefix,".runAsGroup"),integer:!0})))))))}},{key:"prefix",get:function(){return this.props.prefix||"securityContext"}}]),r}(s.default.Component);a.default=v},function(e,a,r){"use strict";r(15);var n=r(20);r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(42),r(4),r(23),r(57),r(17);var l=n(r(36)),u=n(r(37)),o=n(r(55)),i=n(r(56)),c=n(r(51)),s=n(r(0)),f=r(186),d=n(r(2329));function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,c.default)(e);if(t){var n=(0,c.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,i.default)(this,a)}}var m=function(e){(0,o.default)(r,e);var a=p(r);function r(){return(0,l.default)(this,r),a.apply(this,arguments)}return(0,u.default)(r,[{key:"render",value:function(){return s.default.createElement("div",{className:"margin-b12"},s.default.createElement("div",{className:d.default.title},t("SELINUX_CONTEXT")),s.default.createElement("div",{className:d.default.content},s.default.createElement(f.Columns,null,s.default.createElement(f.Column,null,s.default.createElement(f.Form.Item,{label:t("LEVEL")},s.default.createElement(f.Input,{name:"".concat(this.prefix,".seLinuxOptions.level")}))),s.default.createElement(f.Column,null,s.default.createElement(f.Form.Item,{label:t("ROLE")},s.default.createElement(f.Input,{name:"".concat(this.prefix,".seLinuxOptions.role")})))),s.default.createElement(f.Columns,null,s.default.createElement(f.Column,null,s.default.createElement(f.Form.Item,{label:t("TYPE")},s.default.createElement(f.Input,{name:"".concat(this.prefix,".seLinuxOptions.type")}))),s.default.createElement(f.Column,null,s.default.createElement(f.Form.Item,{label:t("USER")},s.default.createElement(f.Input,{name:"".concat(this.prefix,".seLinuxOptions.user")}))))))}},{key:"prefix",get:function(){return this.props.prefix||"securityContext"}}]),r}(s.default.Component);a.default=m},function(e,a,r){"use strict";r(15);var n=r(20);r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(42),r(4),r(23),r(57),r(17);var l=n(r(36)),u=n(r(37)),o=n(r(55)),i=n(r(56)),c=n(r(51)),s=n(r(0)),f=r(186),d=n(r(799));function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,c.default)(e);if(t){var n=(0,c.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,i.default)(this,a)}}var m=function(e){(0,o.default)(r,e);var a=p(r);function r(){return(0,l.default)(this,r),a.apply(this,arguments)}return(0,u.default)(r,[{key:"render",value:function(){return s.default.createElement(s.default.Fragment,null,s.default.createElement(f.Form.Item,{label:t("TERMINATION_GRACEPERIOD_SECONDS")},s.default.createElement(d.default,{name:"".concat(this.prefix,"spec.terminationGracePeriodSeconds"),integer:!0,min:0,autoFocus:!0,defaultValue:30,style:{maxWidth:"100%"}})))}},{key:"prefix",get:function(){var e=this.props,t=e.isFederated;return e.prefix||(t?"spec.template.spec.template.":"spec.template.")}}]),r}(s.default.Component);a.default=m},function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(11),r(84),r(18),r(16),r(4),r(23),r(17),r(85),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(11),r(84),r(18),r(42),r(16),r(4),r(23),r(57),r(17),r(85);var l=n(r(61)),u=n(r(36)),o=n(r(37)),i=n(r(55)),c=n(r(56)),s=n(r(51)),f=n(r(0)),d=n(r(3)),p=n(r(1)),m=n(r(812)),h=n(r(2351)),v=n(r(2352)),g=n(r(1307));function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,s.default)(e);if(t){var n=(0,s.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,c.default)(this,a)}}var E=function(e){(0,i.default)(r,e);var a=y(r);function r(){var e;(0,u.default)(this,r);for(var t=arguments.length,n=new Array(t),o=0;o0;return!o&&l&&_.default.error(t("NODE_SELECTORS_EMPTY_DESC")),o},n.handlePrev=function(){n.setState((function(e){var t=e.currentStep;return{currentStep:Math.max(0,t-1)}}))},n.handleNext=function(){var e=n.formRef.current,t=n.state.formTemplate,a=n.checkNodeSelectors({formTemplate:t});e&&e.validate((function(){a&&n.setState((function(e){var t=e.currentStep;return{currentStep:Math.min(n.steps.length-1,t+1)}}))}))},n.handleOk=function(){var e=n.props.onOk,t=n.state,a=t.isCodeMode,r=t.formTemplate;if(a){var l,u=null===(l=n.editor.current)||void 0===l?void 0:l.getData();n.checkNodeSelectors({formTemplate:u})&&e(u)}else{var o,i=n.checkNodeSelectors({formTemplate:r});null===(o=n.formRef.current)||void 0===o||o.validate((function(){var t,a,n,l,u,o=null==r||null===(t=r.spec)||void 0===t||null===(a=t.deploymentTemplate)||void 0===a||null===(n=a.spec)||void 0===n||null===(l=n.template)||void 0===l||null===(u=l.spec)||void 0===u?void 0:u.deploymentTemplate;o&&(0,g.default)(r,{spec:{deploymentTemplate:o}}),i&&e(r)}))}},n.handleSubFormSave=function(){var e=n.state.subRoute;e&&e.onSave&&e.onSave((function(){n.setState({subRoute:{}})}))},n.handleSubFormCancel=function(){var e=n.state.subRoute;e&&e.onCancel&&(e.onCancel(),n.setState({subRoute:{}}))},n.renderSaveBar=function(){var e=n.state.subRoute;return(0,v.default)(e)?null:h.default.createElement(D.default,{className:w.default.confirm,onOk:n.handleSubFormSave,onCancel:n.handleSubFormCancel})},n.state={codeMode:!1,currentStep:0,subRoute:{},formTemplate:e.formTemplate,intializing:!1},n.formRef=h.default.createRef(),n.editor=h.default.createRef(),n}return(0,f.default)(r,[{key:"getChildContext",value:function(){return{registerSubRoute:this.registerSubRoute,resetSubRoute:this.resetSubRoute}}},{key:"renderSteps",value:function(){var e=this.state,a=e.currentStep,r=e.isCodeMode;return h.default.createElement("div",{className:w.default.stepsWrapper},!r&&h.default.createElement(T.default,{steps:this.steps,current:a}),h.default.createElement(C.default,{className:w.default.codeMode,text:t("EDIT_YAML"),onChange:this.handleModeChange,checked:r}))}},{key:"renderForm",value:function(){var e=this.state,t=e.formTemplate,a=e.currentStep,r=this.props,n=r.cluster,l=r.workspace,u=r.namespace,o=r.store,i=r.isEdgeTable,c=this.steps[a],s=c.component,f=c.onlyMetaData,d={formRef:this.formRef,formTemplate:t,cluster:n,workspace:l,isEdgeTable:i,namespace:u,module:"edgeappsets",onlyMetaData:f,prefix:"spec.deploymentTemplate.spec.template.",store:o};return h.default.createElement(s,d)}},{key:"renderBody",value:function(){var e=this.state,t=e.intializing,a=e.isCodeMode;return t?h.default.createElement(b.Loading,{className:w.default.loading}):h.default.createElement("div",{className:w.default.form},a?h.default.createElement(O.default,{ref:this.editor,value:this.state.formTemplate}):this.renderForm(),this.renderSaveBar())}},{key:"renderFooter",value:function(){var e=this.props.onCancel,a=this.props.store.isSubmitting,r=this.state,n=r.isCodeMode,l=r.currentStep;if(n)return h.default.createElement("div",{className:w.default.footer},h.default.createElement(b.Button,{onClick:e},t("CANCEL")),h.default.createElement(b.Button,{type:"control",onClick:this.handleOk,loading:a,disabled:a},t("INSTALL")));var u=this.steps.length-1;return h.default.createElement("div",{className:w.default.footer},l>0&&h.default.createElement(b.Button,{type:"control",onClick:this.handlePrev},t("PREVIOUS")),l=e}},O=function(e){var a=e.cluster,r=e.namespace,n=e.replicas,l=void 0===n?0:n,u=e.isEdgeWize,y=d.useMemo((function(){return function(e){return[b,_(l)].every((function(t){return t(e)}))}}),[l]),O=d.useMemo((function(){if(!globals.app.isMultiCluster)return!1;var e=(0,s.default)(globals,"clusterConfig.".concat(a,".ksVersion"));return(0,h.compareVersion)(e,"3.4.0")<0}),[a]),S=e.prefix||"spec.template.",C=d.useRef(u?new m.default:new p.default("ippools")),D=d.useState([]),k=(0,o.default)(D,2),N=k[0],T=k[1],R=(0,f.default)(e.data);return d.useEffect((function(){C.current.fetchNamespacesIpPools({cluster:a,namespace:r,limit:-1}).then((function(e){T(e.filter(y).map((function(e){return E(E({},e),{},{label:e.name,value:e.name})})))}))}),[]),d.createElement(i.Form.Group,{label:R?t("ADD_EDGE_IPPOOL"):"",desc:R?t("ADD_EDGE_IPPOOL_DES"):"",checkable:R,keepDataWhenUnCheck:!0},u?d.createElement(c.default,{isOutdated:O,type:"array",name:"".concat(S,'metadata.annotations["cni.projectcalico.org/ipv4pools"]'),list:N,icon:v.ICON_TYPES[C.current.module],hideColumns:["workspace"]}):d.createElement(g.default,{isOutdated:O,type:"array",cluster:a,namespace:r,name:"".concat(S,'metadata.annotations["cni.projectcalico.org/ipv4pools"]'),icon:v.ICON_TYPES[C.current.module],hideColumns:["workspace"],rootStore:e.rootStore,formTemplate:e.formTemplate,data:e.data,formProps:e.formProps}))};a.default=O},function(e,t,a){"use strict";a(15);var r=a(20);a(12),a(109),a(11),a(31),a(18),a(4),a(23),a(17),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(12),a(109),a(45),a(11),a(31),a(18),a(42),a(4),a(23),a(57),a(17);var n=r(a(30)),l=r(a(36)),u=r(a(37)),o=r(a(55)),i=r(a(56)),c=r(a(51)),s=a(186),f=r(a(3)),d=a(903),p=r(a(800)),m=r(a(63)),h=r(a(195)),v=r(a(158)),g=r(a(1)),y=r(a(0)),E=r(a(837)),b=r(a(2455));function _(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,c.default)(e);if(t){var n=(0,c.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,i.default)(this,a)}}var O=function(e){(0,o.default)(a,e);var t=_(a);function a(e){var r;return(0,l.default)(this,a),(r=t.call(this,e)).handleDOMClick=function(e){r.optionsRef&&r.optionsRef.current&&!r.optionsRef.current.contains(e.target)&&r.controlRef&&r.controlRef.current&&!r.controlRef.current.contains(e.target)&&r.setState({showOptions:!1})},r.triggerChange=(0,p.default)((function(){(0,r.props.onChange)(r.state.value)})),r.handleClick=function(e){r.setState({value:e,showOptions:!1},(function(){r.triggerChange()}))},r.toggleOptions=function(){r.setState((function(e){return{showOptions:!e.showOptions}}),(function(){document.removeEventListener("click",r.handleDOMClick),r.state.showOptions&&document.addEventListener("click",r.handleDOMClick)}))},r.state={value:(0,v.default)(e.value)?e.defaultValue:e.value,showOptions:!1},r.optionsRef=y.default.createRef(),r.controlRef=y.default.createRef(),r}return(0,u.default)(a,[{key:"componentDidUpdate",value:function(e,t){this.props.value!==t.value&&this.setState({value:this.props.value})}},{key:"componentWillUnmount",value:function(){document.removeEventListener("click",this.handleDOMClick)}},{key:"renderDetail",value:function(e){return e.map((function(e,t){return y.default.createElement("div",{key:t,className:b.default.text},y.default.createElement("div",null,e.label),e.description&&y.default.createElement("p",null,e.description))}))}},{key:"renderOption",value:function(e,t){var a=this,r=this.props.renderOption;return y.default.createElement("div",{key:e.uid||e.value,onClick:function(){return a.handleClick(e.value)},className:(0,f.default)(b.default.option,(0,n.default)({},b.default.selected,t),(0,n.default)({},b.default.withIcon,e.icon))},r?r(e):y.default.createElement(y.default.Fragment,null,this.renderIcon(e),y.default.createElement("div",{className:b.default.text},y.default.createElement("div",null,e.label),e.description&&y.default.createElement("p",null,e.description)),e.details&&this.renderDetail(e.details)))}},{key:"renderIcon",value:function(e){return e.icon?(0,h.default)(e.icon)?y.default.createElement(s.Icon,{className:b.default.leftIcon,name:e.icon,size:40,type:"dark"}):e.icon:null}},{key:"renderOptions",value:function(){var e=this,t=this.props,a=t.options,r=t.disabled,n=this.state,l=n.value,u=n.showOptions;if(r||!u)return null;if((0,m.default)(a))return y.default.createElement("div",{className:b.default.options,ref:this.optionsRef},y.default.createElement(d.Empty,null));var o=a.find((function(e){return(0,E.default)(e.value,l)}));return y.default.createElement("div",{className:b.default.options,ref:this.optionsRef},o&&this.renderOption(o,!0),a.filter((function(e){return!(0,E.default)(e.value,l)})).map((function(t){return e.renderOption(t)})))}},{key:"renderControl",value:function(){var e,t=this.props,a=t.placeholder,r=t.options,l=t.disabled,u=t.renderOption,o=this.state,i=o.value,c=o.showOptions,d=r.find((function(e){return(0,E.default)(e.value,i)}))||a||{__empty:!0};return y.default.createElement("div",{className:(0,f.default)(b.default.control,(e={},(0,n.default)(e,b.default.withIcon,d.icon),(0,n.default)(e,b.default.open,c),e)),ref:this.controlRef,onClick:this.toggleOptions},u?u(d):y.default.createElement(y.default.Fragment,null,this.renderIcon(d),y.default.createElement("div",{className:b.default.text},y.default.createElement("div",null,d.label),d.description&&y.default.createElement("p",null,d.description)),d.details&&this.renderDetail(d.details)),!l&&y.default.createElement(s.Icon,{className:b.default.rightIcon,name:"chevron-down",size:"small",clickable:!0}))}},{key:"render",value:function(){var e=this.props,t=e.className,a=e.disabled;return y.default.createElement("div",{className:(0,f.default)(b.default.wrapper,(0,n.default)({},b.default.disabled,a),t)},this.renderControl(),this.renderOptions())}}]),a}(y.default.Component);t.default=O,O.propTypes={className:g.default.string,value:g.default.any,defaultValue:g.default.any,options:g.default.array.isRequired,onChange:g.default.func,renderOption:g.default.func},O.defaultProps={className:"",options:[],onChange:function(){}}},,,,function(e,a,r){"use strict";var n=r(20);r(12),r(109),r(11),r(6),r(9),r(13),r(10),r(4),r(23),r(17),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(109),r(45),r(11),r(6),r(28),r(42),r(34),r(15),r(9),r(13),r(10),r(4),r(23),r(57),r(17),r(7);var l=n(r(315)),u=n(r(58)),o=n(r(36)),i=n(r(37)),c=n(r(55)),s=n(r(56)),f=n(r(51)),d=n(r(30)),p=n(r(26)),m=n(r(189)),h=n(r(158)),v=n(r(194)),g=n(r(0)),y=n(r(106)),E=n(r(1264)),b=r(239),_=n(r(1)),O=n(r(3)),S=r(186),C=n(r(836)),D=n(r(790)),k=n(r(1567));function N(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,f.default)(e);if(t){var n=(0,f.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,s.default)(this,a)}}function T(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function R(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};return"".concat(e.apiVersion).concat(e.getPath(t),"/").concat(e.module).concat(t.dryRun?"?dryRun=All":"")},e.getWatchListUrl=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return"".concat(e.apiVersion,"/watch").concat(e.getPath(t),"/").concat(e.module)},e.getResourceUrl=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return"/kapis/resources.kubesphere.io/v1alpha3".concat(e.getPath(t),"/").concat(e.module)},e}return(0,l.default)(a,[{key:"getPath",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.namespace,a="";return t&&(a+="/namespaces/".concat(t)),a}}]),a}(r(a(68)).default);t.default=s},,,function(e,a,r){"use strict";var n=r(20);r(12),r(5),r(11),r(31),r(6),r(18),r(192),r(9),r(13),r(10),r(4),r(23),r(17),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(45),r(5),r(11),r(31),r(6),r(18),r(28),r(192),r(42),r(34),r(15),r(9),r(13),r(10),r(4),r(22),r(23),r(57),r(17),r(7);var l=n(r(58)),u=n(r(43));r(41);var o,i=n(r(44)),c=n(r(30)),s=n(r(61)),f=n(r(36)),d=n(r(37)),p=n(r(55)),m=n(r(56)),h=n(r(51)),v=n(r(0)),g=n(r(3)),y=n(r(26)),E=r(239),b=r(186),_=n(r(790)),O=n(r(2479)),S=n(r(2480)),C=n(r(2486));function D(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function k(e){for(var t=1;tthis.state.formData.length&&v.default.createElement(_.default,{className:C.default.add,onClick:this.handleAdd,title:t("ADD_EDGE_NODE"),description:t("ADD_EDGE_NODE_DESC")})))}}]),n}(v.default.Component))||o;a.default=T},,function(e,t,a){e.exports={body:"_3rLLKpT8IgpcqWhzTXPWzb",footer:"_1FN6kDx_4OYTrAeMzmz6lJ",nodes:"_2K0nFAD8XjT_-g3jP0gfYz",item:"_2szAjgdbfftm9dnv4On9sC",selected:"_4IuUl9x4GeLgtthhM3Cby",ring:"_2mjDKl7noCA52Dkwojasqj",name:"sgFMlcJBkaU6RLJu0NSHo",taints:"_3VFxaVUiKAEp4AZAT4_tG5"}},function(e,t,a){e.exports={body:"cx9CuoGasIzKuoPV-SX2x",footer:"_3PO41zve62tsAkM30z0T3b",nodes:"_1TqujrdBgpQqMUZwVQnvUo",item:"_1UmxvIzRiQQrZ5iwHfbeuy",selected:"LuUQg8XP2-9uUx7goKJdp",ring:"_24FDmv6VPjHWOPFRy5UJJO",name:"_50ZNy-lVF8cVuxAandCZS",taints:"_3d-N5il7f1CkzJzvPDo8tR"}},function(e,a,r){"use strict";r(15);var n=r(157),l=r(20);r(5),r(31),r(84),r(73),r(18),r(16),r(10),r(24),r(85),r(136),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var u=l(r(43));r(41);var o=l(r(44)),i=l(r(96));r(5),r(31),r(84),r(73),r(18),r(16),r(10),r(4),r(22),r(85);var c=n(r(0)),s=l(r(2501)),f=r(186),d=l(r(1176)),p=l(r(2502)),m=new d.default;var h=function(e){var a,r,n,l,d=e.detail,h=e.cluster,v=e.handleBindIp,g=e.renderBtn,y=d||{},E=y.metadata,b=y.parentKey,_=(0,s.default)(b||[],2).map((function(e){return e[1]||e[0]})),O=(null==E?void 0:E.annotations)||{},S=Object.keys(O).find((function(e){return e.includes("infra.kubesphere.io/ippool")})),C=(0,c.useState)([]),D=(0,i.default)(C,2),k=D[0],N=D[1];function T(){return(T=(0,o.default)(u.default.mark((function e(){var t,a;return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t={limit:-1,page:1,hasStatus:!this.isCalico&&void 0,cluster:h},(null==E?void 0:E.name)&&(t.labelSelector="nodegroup.infra.kubesphere.io/".concat(null==E?void 0:E.name)),e.next=4,m.fetchList(t);case 4:(a=e.sent)&&N(a);case 6:case"end":return e.stop()}}),e,this)})))).apply(this,arguments)}(0,c.useEffect)((function(){S?function(){T.apply(this,arguments)}():N([])}),[S,d]);var R=c.default.createElement("div",null,k.map((function(e){return c.default.createElement("div",{key:e.name},c.default.createElement("div",{className:p.default["top-bar-ip-tooltip-item"]},e.name),c.default.createElement("div",{className:p.default["top-bar-ip-tooltip-item-ip"]},t("NETWORK_SEGMENT")," :",e.cidr))}))),w="".concat(t("全部节点组")," / ").concat(_.join(" / "));return c.default.createElement("div",{className:p.default["top-bar"]},c.default.createElement("div",{className:p.default["top-bar-left"]},c.default.createElement("div",null,c.default.createElement("img",{className:p.default.icon,width:20,src:"/assets/disk_group.svg",alt:""}),c.default.createElement("span",{className:p.default["top-bar-title"]},null==d||null===(a=d.aliasName)||void 0===a||null===(r=a.split("("))||void 0===r?void 0:r[0]),c.default.createElement("span",{className:p.default["top-bar-title-label"]},"(",null==d||null===(n=d.aliasName)||void 0===n||null===(l=n.split("("))||void 0===l?void 0:l[1])),c.default.createElement("div",{className:p.default["top-bar-des"]},c.default.createElement("span",{className:p.default["top-bar-des-group"],title:w},t("FROM_NODE_GROUP"),":",w),c.default.createElement("span",{className:p.default["top-bar-bind"]},t("IP 池"),":",c.default.createElement("span",{className:p.default["top-bar-ip"]},S?c.default.createElement(f.Tooltip,{className:p.default["top-bar-ip-tooltip"],content:R},c.default.createElement("span",null,O[S])):v?c.default.createElement("span",{onClick:v},"点击添加"):"-")),k.length>1&&c.default.createElement(f.Tag,{type:"primary"},"+",k.length))),g)};a.default=h},function(e,t,a){e.exports={taints:"_1ULrfSas_sAVfa3od9d8ax",overview:"_1e24H-JEunBA2J5HWPxFaT",resource:"_3zvW-M_VBK7leGvGXjwR3w"}},function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(11),r(6),r(84),r(29),r(73),r(18),r(16),r(4),r(22),r(23),r(17),r(85),r(38),r(7),r(32),r(110),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(11),r(6),r(84),r(29),r(73),r(18),r(28),r(42),r(16),r(4),r(22),r(23),r(57),r(17),r(85),r(38),r(7),r(32),r(110);var l=n(r(315)),u=n(r(58)),o=n(r(30)),i=n(r(61)),c=n(r(43));r(41);var s=n(r(44)),f=n(r(36)),d=n(r(37)),p=n(r(55)),m=n(r(56)),h=n(r(51)),v=r(186),g=n(r(3)),y=n(r(787)),E=n(r(833)),b=n(r(450)),_=n(r(26)),O=n(r(60)),S=n(r(63)),C=n(r(241)),D=n(r(861)),k=n(r(1)),N=n(r(0)),T=n(r(1048)),R=n(r(437)),w=n(r(443)),I=n(r(831)),M=r(52),P=r(72),A=n(r(2507));function j(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,h.default)(e);if(t){var n=(0,h.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,m.default)(this,a)}}var L=function(e){(0,p.default)(n,e);var a,r=j(n);function n(e){var a;return(0,f.default)(this,n),(a=r.call(this,e)).stopPropagation=function(e){return e.stopPropagation()},a.handleOk=(0,s.default)(c.default.mark((function e(){var t,r,n,l,u,o,i,s,f,d,p,m,h,v,g;return c.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=a.props,r=t.onOk,n=t.resource,l=t.k8sVersion,u=t.store,o=a.state,i=o.selectedRelatedResourceIds,s=o.relatedResources,f=o.scheduledProjectList,d=o.customScaling,p=[],s.forEach((function(e){i.includes(e.uid)&&("services"===e.module?p.push(a.serviceStore.delete(e)):"persistentvolumeclaims"===e.module&&p.push(a.volumeStore.delete(e)))})),m=[],d.forEach((function(e){m.push(a.hpaStore.delete((0,C.default)(e,"cluster","namespace","name"),l))})),e.next=8,Promise.all(m);case 8:return e.next=10,Promise.all(p);case 10:if(!(0,O.default)(n)){e.next=21;break}return h=n[0].namespace,v=n.map((function(e){return e.name})),g=v.filter((function(e){return f.includes(e)})),e.next=16,Promise.all(n.map((function(e){return u.delete(e,l)})));case 16:return e.next=18,Promise.all(g.map((function(e){return u.deleteSchedule({name:e,namespace:h})})));case 18:u.list.setSelectRowKeys([]),e.next=27;break;case 21:return e.next=23,u.delete(n,l);case 23:if(e.t0=f.includes(n.name),!e.t0){e.next=27;break}return e.next=27,u.deleteSchedule({name:n.name,namespace:n.namespace});case 27:r();case 28:case"end":return e.stop()}}),e)}))),a.handleItemClick=function(e){var t=e.currentTarget.dataset.uid;a.setState((function(e){var a=e.selectedRelatedResourceIds;return{selectedRelatedResourceIds:a.includes(t)?a.filter((function(e){return e!==t})):[].concat((0,i.default)(a),[t])}}))},a.handleSelectAll=function(){var e=a.state,t=e.relatedResources,r=e.selectedRelatedResourceIds;(0,S.default)(r)&&a.setState({selectedRelatedResourceIds:t.map((function(e){return e.uid}))})},a.renderContentItem=function(e){var r=a.state.selectedRelatedResourceIds;return N.default.createElement("div",{key:e.uid,"data-uid":e.uid,className:(0,g.default)(A.default.resource,(0,o.default)({},A.default.selected,r.includes(e.uid))),onClick:a.handleItemClick},N.default.createElement(v.Checkbox,{checked:r.includes(e.uid),onClick:a.stopPropagation}),N.default.createElement(v.Icon,{name:P.ICON_TYPES[e.module],size:20,type:r.includes(e.uid)?"light":"dark"}),N.default.createElement("span",{className:A.default.resourceName},e.name),N.default.createElement("span",{className:A.default.resourceType},t(P.MODULE_KIND_MAP[e.module])))},a.renderCustomScalingIterm=function(e){return N.default.createElement("div",{key:e.uid,"data-uid":e.uid,className:(0,g.default)(A.default.resource,A.default.selected,A.default.disabled,A.default.customScalingItem)},N.default.createElement("div",{className:A.default.disabled},N.default.createElement(v.Checkbox,{checked:!0}),N.default.createElement(v.Icon,{name:P.ICON_TYPES[e.module],size:20,type:"light"}),N.default.createElement("span",{className:A.default.resourceName},e.name),N.default.createElement("span",{className:A.default.resourceType},t(P.MODULE_KIND_MAP[e.module]))),N.default.createElement(v.Tooltip,{content:t("DELETE_CUSTOM_SCALING_WITH_WORKLOAD")},N.default.createElement(v.Icon,{name:"question",size:20,type:"light"})))},a.serviceStore=new w.default,a.volumeStore=new I.default,a.hpaStore=new T.default,e.isFederated&&(a.serviceStore=new R.default({module:a.serviceStore.module}),a.volumeStore=new R.default({module:a.volumeStore.module})),a.state={relatedResources:[],selectedRelatedResourceIds:[],enableConfirm:!1,timer:3,scheduledProjectList:[],customScaling:[]},a}return(0,d.default)(n,[{key:"componentDidMount",value:function(){this.props.visible&&(this.fetchRelatedResources(this.props.resource),this.startTimer())}},{key:"componentWillUnmount",value:function(){this.timer&&clearInterval(this.timer)}},{key:"startTimer",value:function(){var e=this;this.timer&&clearInterval(this.timer),this.timer=setInterval((function(){e.setState((function(e){var t=e.timer;return{timer:Math.max(t-1,0),enableConfirm:t<=1}}),(function(){e.state.enableConfirm&&e.timer&&clearInterval(e.timer)}))}),1e3)}},{key:"fetchRelatedResources",value:(a=(0,s.default)(c.default.mark((function e(t){var a,r,n,l,u,o,i,s,f,d,p,m=this;return c.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=this.props.store,this.setState({isLoading:!0}),r=[],u=[],(0,O.default)(t)?(n=t[0].namespace,l=t[0].cluster,r=t.map((function(e){return e.selector||(0,_.default)(e,"resource.selector")}))):(n=t.namespace,l=t.cluster,r.push(t.selector||(0,_.default)(t,"resource.selector"))),o=[].concat(t).map((function(e){return(0,_.default)(e,'labels["autoscaling.kubeshpere.io/name"]')})).filter(Boolean).map((function(e){return{cluster:l,namespace:n,module:m.hpaStore.module,uid:e,name:e}})),i=[],r.forEach((function(e){if(!(0,S.default)(e)){var t=(0,M.joinSelector)(e);i.push(m.volumeStore.fetchListByK8s({cluster:l,namespace:n,labelSelector:t}),m.serviceStore.fetchListByK8s({cluster:l,namespace:n,labelSelector:t}))}})),e.next=10,Promise.all(i);case 10:if(s=e.sent,"deployments"!==a.module){e.next=25;break}return e.next=14,null===(d=a.getAllScheduleProject)||void 0===d?void 0:d.call(a,{namespace:n});case 14:if(e.t1=f=e.sent,e.t0=null!==e.t1,!e.t0){e.next=18;break}e.t0=void 0!==f;case 18:if(!e.t0){e.next=22;break}e.t2=f,e.next=23;break;case 22:e.t2=[];case 23:p=e.t2,(0,S.default)(p)||(u=p.items.map((function(e){return e.metadata.name})));case 25:this.setState({relatedResources:(0,D.default)((0,b.default)(s),"uid"),isLoading:!1,scheduledProjectList:u,customScaling:o});case 26:case"end":return e.stop()}}),e,this)}))),function(e){return a.apply(this,arguments)})},{key:"renderContent",value:function(){var e=this.state,a=e.isLoading,r=e.relatedResources,n=e.selectedRelatedResourceIds,l=e.customScaling;return!1===a&&(0,S.default)(r)&&(0,S.default)(l)?N.default.createElement(E.default,{icon:"appcenter",className:A.default.empty,title:t("NO_RELATED_RESOURCE_FOUND"),desc:t("NO_WORKLOAD_RELATED_RESOURCE_DESC")}):N.default.createElement("div",{className:A.default.resources},!(0,S.default)(r)&&N.default.createElement("div",{className:A.default.resource},N.default.createElement(v.Checkbox,{checked:!(0,S.default)(n),onClick:this.handleSelectAll,indeterminate:!((0,S.default)(n)||r.length===n.length)}),N.default.createElement("span",{className:A.default.resourceName},t("SELECT_ALL"))),r.map(this.renderContentItem),l.map(this.renderCustomScalingIterm))}},{key:"render",value:function(){var e=this.state,a=e.enableConfirm,r=e.timer,n=this.props,o=n.resource,i=(n.onOk,n.onCancel),c=n.isSubmitting,s=(0,u.default)(n,["resource","onOk","onCancel","isSubmitting"]),f=(0,O.default)(o)&&1!==o.length?t("DELETE_MULTIPLE_WORKLOADS"):t("DELETE_WORKLOAD"),d=(0,O.default)(o)&&1!==o.length?t.html("DELETE_WORKLOAD_DESC_PL",{resource:o.map((function(e){return e.name})).join(", ")}):(0,O.default)(o)?t.html("DELETE_WORKLOAD_DESC_SI",{resource:o.map((function(e){return e.name})).join(", ")}):t.html("DELETE_WORKLOAD_DESC_SI",{resource:o.name});return N.default.createElement(y.default,(0,l.default)({width:520,icon:"question",title:f,description:d,closable:!1,headerClassName:A.default.modalHeader,bodyClassName:A.default.modalBody,hideFooter:!0},s),N.default.createElement("div",{className:A.default.body},this.renderContent()),N.default.createElement("div",{className:A.default.footer},N.default.createElement(v.Button,{onClick:i,"data-test":"modal-cancel"},t("CANCEL")),N.default.createElement(v.Button,{type:"danger",loading:c,disabled:!a||c,onClick:this.handleOk,"data-test":"modal-ok"},t("OK"),!a&&"(".concat(r,"s)"))))}}]),n}(N.default.Component);a.default=L,L.propTypes={resource:k.default.any,visible:k.default.bool,onOk:k.default.func,onCancel:k.default.func,isSubmitting:k.default.bool},L.defaultProps={visible:!1,isSubmitting:!1,onOk:function(){},onCancel:function(){}}},function(e,t,a){"use strict";a(15);var r=a(20),n=a(157);a(11),a(84),a(18),a(4),a(23),a(17),a(85),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(45),a(11),a(84),a(18),a(42),a(4),a(22),a(23),a(57),a(17),a(85);var l=r(a(315)),u=r(a(58)),o=r(a(43));a(41);var i,c,s,f=r(a(44)),d=r(a(36)),p=r(a(37)),m=r(a(55)),h=r(a(56)),v=r(a(51)),g=n(a(0)),y=r(a(1)),E=a(14),b=a(239),_=r(a(26)),O=r(a(74)),S=r(a(241)),C=r(a(800)),D=r(a(135)),k=r(a(122)),N=a(186),T=r(a(787)),R=r(a(2508)),w=r(a(2510)),I=r(a(2512)),M=r(a(2515)),P=r(a(935)),A=r(a(2516));function j(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,v.default)(e);if(t){var n=(0,v.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,h.default)(this,a)}}var L=(0,b.observer)((s=c=function(e){(0,m.default)(a,e);var t=j(a);function a(e){var r;return(0,d.default)(this,a),(r=t.call(this,e)).handleAppChange=(0,C.default)((function(e,t){var a=r.state.detail,n=(0,D.default)(a);(0,O.default)(n,t,e),r.setState({detail:n})}),200),r.handleOk=(0,f.default)(o.default.mark((function e(){var t,a,n,l;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:a=(0,S.default)(r.state.detail,["name","aliasName","abstraction","description","appHome","categoryName","readme","icon"]),(null===(t=r.state.detail)||void 0===t?void 0:t.attachments)&&(a.attachments=((null===(n=r.state.detail)||void 0===n?void 0:n.attachments)||[]).map((function(e){return(0,k.default)(e)[0]}))),(l=r.formRef.current)&&l.validate((function(){var e,t=null===(e=r.props.detail.attachments)||void 0===e?void 0:e.filter((function(e){var t;return!(null===(t=a.attachments)||void 0===t?void 0:t.includes(e))}));(null==t?void 0:t.length)&&t.map((function(e){var t;return r.store.deleteImage({id:e,workspace:null===(t=r.state.detail)||void 0===t?void 0:t.workspace})})),r.props.onOk(a)}));case 4:case"end":return e.stop()}}),e)}))),r.onCancel=function(){var e=r.state.oldScreenshots;r.handleAppChange(e,"attachments"),r.props.onCancel()},r.store=r.props.store,r.categoryStore=new M.default,r.fileStore=new P.default,r.formRef=g.default.createRef(),r.state={detail:(0,D.default)((0,E.toJS)(r.props.detail)),oldScreenshots:(0,_.default)(r.props.detail,"attachments")},r}return(0,p.default)(a,[{key:"componentDidMount",value:function(){this.categoryStore.fetchList({noLimit:!0})}},{key:"render",value:function(){var e=this.props,t=e.visible,a=e.isSubmitting,r=(e.onCancel,(0,u.default)(e,["visible","isSubmitting","onCancel"])),n=(0,E.toJS)((0,_.default)(this.categoryStore,"list.data",[])),o=this.state.detail;return g.default.createElement(T.default,(0,l.default)({},r,{className:A.default.modal,bodyClassName:A.default.body,onOk:this.handleOk,onCancel:this.onCancel,visible:t,isSubmitting:a,fullScreen:!0}),g.default.createElement(N.Columns,{className:"height-full is-gapless"},g.default.createElement(N.Column,{className:"is-narrow"},g.default.createElement(R.default,{store:this.store,formData:o,categories:n,fileStore:this.fileStore,formRef:this.formRef,handleChange:this.handleAppChange})),g.default.createElement(N.Column,null,g.default.createElement(w.default,{handleChange:this.handleAppChange,store:this.store,detail:o,fileStore:this.fileStore}),g.default.createElement(I.default,{handleChange:this.handleAppChange,store:this.store,detail:o}))))}}]),a}(g.Component),c.propTypes={store:y.default.object,detail:y.default.object,visible:y.default.bool,onOk:y.default.func,onCancel:y.default.func},c.defaultProps={store:{},detail:{},visible:!1,onOk:function(){},onCancel:function(){}},i=s))||i;t.default=L},function(e,t,a){"use strict";a(15);var r=a(20);Object.defineProperty(t,"__esModule",{value:!0}),t.APP_TEMPLATE_VERSION_FORM=t.APP_TEMPLATES_FORM=void 0;var n=r(a(2517)),l=r(a(932)),u=[{title:"BASIC_INFORMATION",icon:"cdn",component:n.default,required:!0},{title:"POD_SETTINGS",icon:"docker",component:l.default,required:!0}];t.APP_TEMPLATES_FORM=u;var o=[{title:"BASIC_INFORMATION",icon:"cdn",component:l.default,required:!0}];t.APP_TEMPLATE_VERSION_FORM=o},,,,,,,,,,,,,,,,,,,function(e,a,r){"use strict";r(15);var n=r(20);r(12),r(109),r(5),r(31),r(84),r(18),r(85),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(109),r(5),r(31),r(84),r(18),r(4),r(85);var l=n(r(26)),u=n(r(60)),o=n(r(0)),i=n(r(1)),c=r(186),s=n(r(790)),f=n(r(1108)),d=n(r(1608)),p=function(e){var a=e.index,r=e.rule,n=e.tls,i=void 0===n?[]:n,p=e.projectDetail,m=e.onDelete,h=e.onEdit,v=i.find((function(e){return e.hosts&&e.hosts.includes(r.host)})),g=v?"https":"http",y=(0,u.default)(r.clusters)&&r.clusters.map((function(e){return{name:e}}));return o.default.createElement("div",{className:d.default.item},o.default.createElement("div",{className:d.default.texts},o.default.createElement(s.default,{icon:"earth",title:r.host,description:o.default.createElement("div",{className:d.default.description},o.default.createElement("span",null,t("PROTOCOL_VALUE",{value:g.toUpperCase()})),"https"===g&&o.default.createElement("span",null,t("CERTIFICATE_VALUE",{value:v.secretName})))}),(0,u.default)(y)&&o.default.createElement(s.default,{title:o.default.createElement(f.default,{clusters:y,clustersDetail:p.clusters}),description:t("CLUSTER")})),o.default.createElement("div",{className:d.default.paths},r.http.paths.map((function(e,a){return o.default.createElement("div",{key:"".concat(e.path,"-").concat(a),className:d.default.path},o.default.createElement(c.Columns,null,o.default.createElement(c.Column,null,o.default.createElement("span",null,t("PATH_VALUE",{value:e.path}))),o.default.createElement(c.Column,null,o.default.createElement("span",null,t("SERVICE_VALUE",{value:(0,l.default)(e,"backend.service.name")}))),o.default.createElement(c.Column,null,o.default.createElement("span",null,t("PORT_VALUE",{value:(0,l.default)(e,"backend.service.port.number")})))))}))),o.default.createElement("div",{className:"buttons"},o.default.createElement(c.Button,{type:"flat",icon:"trash",onClick:function(){return m(a)}}),o.default.createElement(c.Button,{type:"flat",icon:"pen",onClick:function(){return h(a)}})))};p.propTypes={rule:i.default.object};var m=p;a.default=m},function(e,t,a){e.exports={wrapper:"_284aGjeDc3Uk3LO7g2rowk",item:"my6nlJHVChE52IZiKWdVb",texts:"_1yy5gvLzkXqOotnVq-jQ6u",description:"_1tlfloLSiJeUMQ-FyCn8CE",clusters:"_1syXUJ7F5BYlpz5yEGJFbc",text:"rs7zBfbhTmwlfIFuDt9am",title:"_1gOz0zu0HbDowoy4JxPNfJ",add:"_2rqJgLlKvmtvwGzZG3jKXD",paths:"_3IlHyvAlhdaotlptF5rQ4w",path:"_3yf0E7_uPDFXwIFcT8Q_aV",error:"_2XVUGBf34mWkPMEhwt3zCO"}},function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(6),r(84),r(86),r(18),r(192),r(16),r(10),r(4),r(316),r(23),r(17),r(85),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(6),r(84),r(86),r(18),r(192),r(42),r(16),r(10),r(4),r(316),r(22),r(23),r(57),r(17),r(85),r(7);var l=n(r(43));r(41);var u=n(r(44)),o=n(r(58)),i=n(r(36)),c=n(r(37)),s=n(r(88)),f=n(r(55)),d=n(r(56)),p=n(r(51)),m=n(r(26)),h=n(r(74)),v=n(r(895)),g=n(r(194)),y=n(r(63)),E=n(r(0)),b=n(r(1)),_=r(186),O=n(r(240)),S=n(r(787)),C=n(r(850)),D=r(52),k=n(r(435)),N=n(r(834)),T=n(r(2614)),R=n(r(2616)),w=n(r(2618)),I=n(r(2668)),M=n(r(2673)),P=n(r(2675));function A(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,p.default)(e);if(t){var n=(0,p.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,d.default)(this,a)}}var j=function(e){(0,f.default)(n,e);var a,r=A(n);function n(e){var a;return(0,i.default)(this,n),(a=r.call(this,e)).handleOk=function(){var e,t=a.props.isFederated;if(e=a.state.isCodeMode&&(0,g.default)((0,m.default)((0,s.default)(a),"codeRef.current.getData"))?a.getFormDataFromCode(a.codeRef.current.getData()):a.state.formData,t){var r={},n=e,l=n.application,u=n.ingress,i=(0,o.default)(n,["application","ingress"]);r.Application=l,r.Ingress=u;var c=[];Object.keys(i).forEach((function(e){var t=i[e];t.Deployment&&(c=(0,m.default)(t.Deployment,"spec.overrides").map((function(e){return e.clusterName}))),r["".concat(e,"-workload")]=t.workload,r["".concat(e,"-service")]=t.service})),e=r,(0,v.default)(e,(function(e){var t=(0,m.default)(e,"spec.overrides",[]);!(0,y.default)(c)&&t.forEach((function(e,a){c.includes(e.clusterName)||t.splice(a,1)}));var a=(0,m.default)(e,"spec.placement.clusters",[]);return!(0,y.default)(c)&&a.forEach((function(e,t){c.includes(e.name)||a.splice(t,1)})),e}))}0===(0,m.default)(e,"Ingress.spec.template.spec.rules.length",0)&&delete e.Ingress,a.props.onOk(e)},a.handlePrev=function(){a.setState((function(e){var t=e.currentStep;return{currentStep:Math.max(0,t-1)}}))},a.handleNext=function(){var e=a.formRef.current;e&&e.validate((function(){a.setState((function(e){var t=e.currentStep;return{currentStep:Math.min(a.steps.length-1,t+1)}}))}))},a.handleModeChange=function(){a.setState((function(e){var r=e.isCodeMode,n=e.formData;return!r&&(0,g.default)((0,m.default)((0,s.default)(a),"resourcesFormRef.current.hasSubRoute"))&&a.resourcesFormRef.current.hasSubRoute()?O.default.warning(t("SAVE_FORM_TIP")):(r&&(0,g.default)((0,m.default)((0,s.default)(a),"codeRef.current.getData"))&&(n=a.getFormDataFromCode(a.codeRef.current.getData())),{isCodeMode:!r,formData:n})}))},a.handleAppLabelsChange=function(e){var t=a.state.formData,r=(t.application,t.ingress),n=(0,o.default)(t,["application","ingress"]);(0,D.mergeLabels)(r,e),Object.values(n).forEach((function(t){(0,D.mergeLabels)(t.service,e),(0,D.mergeLabels)(t.workload,e)}))},a.handleGovernanceChange=function(e){var t=a.props.isFederated,r=a.state.formData,n=(r.application,r.ingress,(0,o.default)(r,["application","ingress"]));a.setState({isGovernance:"true"===e}),Object.values(n).forEach((function(a){(0,h.default)(a.workload,'metadata.annotations["servicemesh.kubesphere.io/enabled"]',e),(0,h.default)(a.service,'metadata.annotations["servicemesh.kubesphere.io/enabled"]',e),(0,h.default)(a.workload,'spec.template.metadata.annotations["sidecar.istio.io/inject"]',e),t&&((0,D.updateFederatedAnnotations)(a.workload),(0,D.updateFederatedAnnotations)(a.service))}))},a.state={currentStep:0,formData:a.federatedWrapper({application:k.default.applications({namespace:e.namespace}),ingress:k.default.ingresses({namespace:e.namespace})}),isCodeMode:!1,isGovernance:!1},a.formRef=E.default.createRef(),a.codeRef=E.default.createRef(),a.gatewayStore=new N.default,a}return(0,c.default)(n,[{key:"componentDidMount",value:function(){var e=this;this.props.isFederated?((0,h.default)(this.state.formData.application,'metadata.annotations["servicemesh.kubesphere.io/enabled"]',"false"),this.setState({isGovernance:!1})):this.fetchData().then((function(){var t=e.props.sampleApp;t&&e.fetchSampleData(t)}))}},{key:"federatedWrapper",value:function(e){var t=this.props,a=t.isFederated,r=t.projectDetail;if(a){Object.keys(e).forEach((function(t){e[t]=k.default.federated({data:e[t],clusters:r.clusters.map((function(e){return e.name})),kind:e[t].kind})}));var n=(0,m.default)(e.application,"spec.template.metadata.labels",{});(0,h.default)(e.application,"metadata.labels",n)}return e}},{key:"setServicemeshValue",value:function(e){var t=this.props.isFederated,a=this.state.isGovernance,r=e.application,n=(e.ingress,(0,o.default)(e,["application","ingress"])),l=String(a);(0,h.default)(r,'metadata.annotations["servicemesh.kubesphere.io/enabled"]',l),Object.values(n).forEach((function(e){(0,h.default)(e.workload,'metadata.annotations["servicemesh.kubesphere.io/enabled"]',l),(0,h.default)(e.service,'metadata.annotations["servicemesh.kubesphere.io/enabled"]',l),(0,h.default)(e.workload,'spec.template.metadata.annotations["sidecar.istio.io/inject"]',l),t&&((0,D.updateFederatedAnnotations)(e.workload),(0,D.updateFederatedAnnotations)(e.service))}))}},{key:"fetchSampleData",value:function(e){var t=this,a=this.props,r=a.namespace,n=a.store,l=this.state.gateway;n.fetchSampleData(e).then((function(e){var a=t.getFormDataFromCode(e);(0,h.default)(a.ingress,'metadata.annotations["nginx.ingress.kubernetes.io/upstream-vhost"]',"productpage.".concat((0,D.withDot)(r),"svc.cluster.local")),(0,y.default)(l)?(0,h.default)(a.ingress,"spec.rules",[]):(0,h.default)(a.ingress,"spec.rules[0].host","productpage.".concat((0,D.withDot)(r)).concat((0,D.withDot)(l.ingressIp),"nip.io")),t.setServicemeshValue(a),t.setState({formData:a})}))}},{key:"getFormDataFromCode",value:function(e){var t=this.props.namespace,a={};return e.forEach((function(e){if((0,h.default)(e,"metadata.namespace",t),-1!==e.kind.indexOf("Application"))a.application=e;else if(-1!==e.kind.indexOf("Service")){var r=(0,m.default)(e,"metadata.labels.app");(0,h.default)(a,"".concat(r,".service"),e)}else if(-1!==e.kind.indexOf("Ingress"))a.ingress=e;else{var n=(0,m.default)(e,"metadata.labels.app");(0,h.default)(a,"".concat(n,".workload"),e)}})),a}},{key:"fetchData",value:(a=(0,u.default)(l.default.mark((function e(){var t,a,r,n,u,o,i=this;return l.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=this.props,a=t.cluster,r=t.namespace,n=function(){return i.gatewayStore.getNewGatewayByProject({namespace:r,cluster:a})},e.next=4,n();case 4:u=e.sent,o=!!this.serviceMeshEnable,(0,h.default)(this.state.formData.application,'metadata.annotations["servicemesh.kubesphere.io/enabled"]',String(o)),this.setState({gateway:(0,m.default)(u,"[0]"),isGovernance:o});case 8:case"end":return e.stop()}}),e,this)}))),function(){return a.apply(this,arguments)})},{key:"renderHeader",value:function(){var e=this.props.onCancel,a=this.state,r=a.currentStep,n=a.isCodeMode;return E.default.createElement("div",{className:P.default.header},E.default.createElement("div",{className:P.default.title},E.default.createElement(_.Icon,{name:"close",size:20,clickable:!0,onClick:e}),E.default.createElement("span",null),E.default.createElement(_.Icon,{name:"appcenter",size:20}),E.default.createElement("span",null,t("CREATE_COMPOSED_APP"))),!n&&E.default.createElement("div",{className:P.default.steps},E.default.createElement("div",null),E.default.createElement(T.default,{steps:this.steps,current:r})),E.default.createElement(C.default,{className:P.default.switch,text:t("EDIT_YAML"),onChange:this.handleModeChange,checked:n}),E.default.createElement("div",{className:P.default.headerBottom}))}},{key:"renderForm",value:function(){var e=this.props,t=e.cluster,a=e.namespace,r=e.store,n=e.isFederated,l=e.projectDetail,u=this.state,o=u.formData,i=u.gateway,c=u.currentStep,s=u.isGovernance,f=this.steps[c],d=f.component,p={store:r,cluster:t,namespace:a,formData:o,gateway:i,isGovernance:s,isFederated:n,projectDetail:l,serviceMeshEnable:this.serviceMeshEnable,onLabelsChange:this.handleAppLabelsChange,onGovernanceChange:this.handleGovernanceChange};return f.isForm?p.formRef=this.formRef:p.ref=this.formRef,E.default.createElement("div",{className:P.default.wrapper},E.default.createElement("div",{className:P.default.form},E.default.createElement(d,p)))}},{key:"renderCode",value:function(){var e=this.state.formData;return E.default.createElement(M.default,{ref:this.codeRef,formTemplate:e})}},{key:"renderFooter",value:function(){var e=this.props,a=e.onCancel,r=e.store,n=this.state,l=n.currentStep;if(n.isCodeMode)return E.default.createElement("div",{className:P.default.footer},E.default.createElement("div",{className:P.default.wrapper},E.default.createElement("div",{className:"text-right"},E.default.createElement(_.Button,{onClick:a},t("CANCEL")),E.default.createElement(_.Button,{type:"control",onClick:this.handleOk,loading:r.isSubmitting},t("CREATE")))));var u=this.steps.length-1;return E.default.createElement("div",{className:P.default.footer},E.default.createElement("div",{className:P.default.wrapper},E.default.createElement("div",{className:"text-right"},E.default.createElement(_.Button,{onClick:a},t("CANCEL")),l>0&&E.default.createElement(_.Button,{type:"control",onClick:this.handlePrev},t("PREVIOUS")),l0)return r({message:o.join("; "),field:e.field});r()},n.state={formTemplate:n.props.formTemplate},n}return(0,o.default)(r,[{key:"render",value:function(){var e,a,r,n,l=this,u=this.props,o=u.formRef,i=u.formTemplate,c=u.isEdit,s=u.className;c||(0,m.default)(i,"metadata.labels['infra.edgewize.io/hosted']",null!==(e=null===(a=this.options[0])||void 0===a?void 0:a.value)&&void 0!==e?e:null===(r=this.options[0])||void 0===r||null===(n=r.options[0])||void 0===n?void 0:n.value);return f.default.createElement(v.Form,{ref:o,data:i,className:(0,d.default)(y.default.wrapper,s),onChange:function(e,t){"metadata.name"===e&&l.setState((function(e){var a=e.formTemplate;return a.spec.name=t,a.spec.namespace=t,{formTemplate:a}}))}},f.default.createElement(v.Form.Item,{label:t("CLUSTER_NAME"),desc:t("NAME_DESC"),rules:[{required:!0,message:t("CLUSTER_NAME_EMPTY")},{pattern:g.PATTERN_NAME,message:t("INVALID_NAME_DESC")},{validator:this.nameValidator}]},f.default.createElement(v.Input,{name:"metadata.name",maxLength:63,disabled:c})),f.default.createElement(v.Form.Item,{label:t("ALIAS"),desc:t("ALIAS_DESC")},f.default.createElement(v.Input,{name:["metadata","annotations","kubesphere.io/alias-name"],maxLength:63})),c&&f.default.createElement(f.default.Fragment,null,f.default.createElement(v.Form.Item,{label:t("HOSTED_IN"),desc:t("HOSTED_IN_DESC"),rules:[{required:!0,message:t("HOSTED_IN_EMPTY")}]},f.default.createElement(v.Select,{searchable:!0,placeholder:" ",name:["metadata","labels","infra.edgewize.io/hosted"],options:this.options,disabled:!0})),f.default.createElement(v.Form.Item,{label:t("ADVERTISE_ADDRESS"),desc:t("ADVERTISE_ADDRESS_DESC"),rules:[{required:!0,message:t("HOSTED_IN_EMPTY")},{pattern:g.PATTERN_IP,message:t("INVALID_IP_DESC")}]},f.default.createElement(v.Input,{name:["metadata","labels","infra.edgewize.io/advertise-address"],disabled:!0}))),f.default.createElement(v.Form.Item,{label:t("DESCRIPTION"),desc:t("DESCRIPTION_DESC")},f.default.createElement(v.TextArea,{name:["metadata","annotations","kubesphere.io/description"],maxLength:256})))}},{key:"options",get:function(){var e=this.props.hostedInOptions,t=void 0===e?[]:e,a=(0,p.default)(this.state.formTemplate,"metadata.name");return!globals.app.isMultiCluster&&a?[{label:a,value:a}]:t}}]),r}(f.default.Component))||l;a.default=b},,function(e,t,a){"use strict";a(15);var r=a(20);a(4),a(23),a(17),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(45),a(42),a(4),a(23),a(57),a(17);var n=r(a(36)),l=r(a(55)),u=r(a(56)),o=r(a(51));function i(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,o.default)(e);if(t){var n=(0,o.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,u.default)(this,a)}}var c=function(e){(0,l.default)(a,e);var t=i(a);function a(){return(0,n.default)(this,a),t.apply(this,arguments)}return a}(r(a(1110)).default);t.default=c},,,,,,,,function(e,t,a){"use strict";var r=a(20);a(12),a(5),a(11),a(6),a(18),a(320),a(9),a(13),a(10),a(4),a(23),a(17),a(7),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(12),a(45),a(5),a(11),a(6),a(18),a(28),a(320),a(42),a(34),a(15),a(9),a(13),a(10),a(4),a(22),a(23),a(57),a(17),a(7);var n=r(a(43)),l=r(a(61)),u=r(a(30)),o=r(a(58));a(41);var i,c=r(a(44)),s=r(a(36)),f=r(a(37)),d=r(a(55)),p=r(a(56)),m=r(a(51)),h=r(a(49)),v=a(14),g=r(a(26));function y(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function E(e){for(var t=1;t0&&void 0!==h[0]?h[0]:{},a=t.cluster,r=t.workspace,u=t.namespace,i=t.more,c=t.devops,s=t.searchByApp,f=(0,o.default)(t,["cluster","workspace","namespace","more","devops","searchByApp"]),this.list.isLoading=!0,e.next=4,request.get(this.getResourceUrl({cluster:a,workspace:r,namespace:u,devops:c}),this.getFilterParams(E({searchByApp:s},f)));case 4:return d=e.sent,p=((0,g.default)(d,"items")||[]).map((function(e){return E({cluster:a,namespace:u},m.mapper(e))})).sort((function(e,t){return new Date(t.createTime).getTime()-new Date(e.createTime).getTime()})),this.list.update(E(E({data:i?[].concat((0,l.default)(this.list.data),(0,l.default)(p)):p},f),{},{isLoading:!1})),e.abrupt("return",p);case 8:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})}]),r}(r(a(1053)).default),(0,h.default)(i.prototype,"fetchList",[v.action],Object.getOwnPropertyDescriptor(i.prototype,"fetchList"),i.prototype),i);t.default=_},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,a){"use strict";a(15);var r=a(20);a(5),a(11),a(84),a(18),a(4),a(23),a(17),a(85),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(45),a(5),a(11),a(84),a(18),a(42),a(4),a(23),a(57),a(17),a(85);var n=r(a(30)),l=r(a(61)),u=r(a(36)),o=r(a(37)),i=r(a(55)),c=r(a(56)),s=r(a(51)),f=r(a(0)),d=r(a(1)),p=r(a(3)),m=a(186),h=r(a(2918));function v(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,s.default)(e);if(t){var n=(0,s.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,c.default)(this,a)}}var g=function(e){(0,i.default)(a,e);var t=v(a);function a(){var e;(0,u.default)(this,a);for(var r=arguments.length,n=new Array(r),o=0;o1&&void 0!==arguments[1]?arguments[1]:{};return request.post("".concat(this.apiVersion).concat(this.getPath(t),"/").concat(this.module),e)}},{key:"apiVersion",get:function(){return"kapis/notification.kubesphere.io/v2beta2"}}]),a}(r(a(1012)).default),(0,s.default)(n.prototype,"checkInfo",[f.action],Object.getOwnPropertyDescriptor(n.prototype,"checkInfo"),n.prototype),n);t.default=p},function(e,t,a){e.exports={title:"Bq_DxvwoIbzNgUSGKKu74",urlInput:"_2iZy25kg8Y2xv_sPplOguB",row:"hJoducYzaKZSPuoAyXEF2",item:"_3Ut4KGvHM3y-EKah95yER_",wrapper:"_1y_QA9-eVFRkSPgVLTD4wj",listWrapper:"_2nnbmvgr5xxxdGUFDz24co",listItem:"_3QzQe3Rj1Hb6gV7rN2TR6t",annotation:"_1T2F7a_9lb3gfvILxQLV-b",desc:"_1oKV-aygbwGohZMHFzZVge"}},function(e,a,r){"use strict";r(15);var n=r(157),l=r(20);r(5),r(84),r(4),r(23),r(17),r(85),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(84),r(42),r(4),r(23),r(57),r(17),r(85);var u=l(r(315)),o=l(r(58)),i=l(r(36)),c=l(r(37)),s=l(r(55)),f=l(r(56)),d=l(r(51)),p=n(r(0)),m=l(r(26)),h=r(186),v=l(r(240)),g=l(r(1061)),y=l(r(3128)),E=l(r(1379)),b=l(r(1378));function _(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,d.default)(e);if(t){var n=(0,d.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,f.default)(this,a)}}var O=h.Tabs.TabPanel,S=function(e){(0,s.default)(r,e);var a=_(r);function r(){var e;(0,i.default)(this,r);for(var n=arguments.length,l=new Array(n),u=0;un-1)v.default.error({content:t.html("MAX_CID_COUNT",{count:n}),durantion:1e3});else{if(!r.includes(a))return!0;v.default.error({content:t("CHAT_ID_EXISTS"),duration:1e3})}else v.default.error({content:t("ENTER_CHAT_ID_DESC"),durantion:1e3})},e.validateKeywords=function(a){var r=(0,m.default)(e.props.data,"receiver.spec.dingtalk.chatbot.keywords",[]),n=globals.config.notification.dingtalk.max_number_of_keyword;if(a)if(r.length>n-1)v.default.error({content:t.html("MAX_KEYWORD_COUNT",{count:n}),durantion:1e3});else{if(!r.includes(a))return!0;v.default.error({content:t("KEYWORD_EXISTS"),duration:1e3})}else v.default.error({content:t("ENTER_KEYWORD_DESC"),durantion:1e3})},e}return(0,c.default)(r,[{key:"renderLabel",value:function(){return p.default.createElement("div",{className:b.default.labelWrapper},p.default.createElement("span",null,"Chat ID"),this.props.user&&p.default.createElement(h.Tooltip,{content:t("CHAT_ID_TIP")},p.default.createElement(h.Icon,{className:b.default.tip,name:"question"})))}},{key:"renderServiceSetting",value:function(){return p.default.createElement("div",{className:b.default.row},p.default.createElement("div",{className:b.default.title},t("APP_SETTINGS")),p.default.createElement("div",{className:b.default.item},p.default.createElement(h.Form.Item,{label:"App Key"},p.default.createElement(h.Input,{name:"secret.data.appkey"})),p.default.createElement(h.Form.Item,{label:"App Secret"},p.default.createElement(h.Input,{name:"secret.data.appsecret"}))))}},{key:"renderReceiverSetting",value:function(){var e=this.props.wrapperClassName;return p.default.createElement("div",{className:b.default.row},p.default.createElement("div",{className:b.default.title},p.default.createElement("span",null,t("RECIPIENT_SETTINGS"))),p.default.createElement("div",{className:b.default.item},p.default.createElement(h.Form.Item,{label:this.renderLabel()},p.default.createElement(y.default,{className:e,name:"receiver.spec.dingtalk.conversation.chatids",title:"Chat ID",placeholder:" ",validate:this.validateCid}))))}},{key:"renderChatSetting",value:function(){var e=this.props.wrapperClassName;return p.default.createElement("div",{className:b.default.row},p.default.createElement("div",{className:b.default.title},p.default.createElement("span",null,t("CHATBOT_SETTINGS"))),p.default.createElement("div",{className:b.default.item},p.default.createElement(h.Form.Item,{label:"Webhook URL"},p.default.createElement(h.Input,{name:"secret.data.webhook"})),p.default.createElement(h.Form.Item,{label:"Secret"},p.default.createElement(h.Input,{name:"secret.data.chatbotsecret"})),p.default.createElement(h.Form.Item,null,p.default.createElement(E.default,{className:e,name:"receiver.spec.dingtalk.chatbot.keywords",validate:this.validateKeywords}))))}},{key:"render",value:function(){var e=this.props,a=e.user,r=e.data,n=e.onChange,l=e.hideFooter,i=(0,o.default)(e,["user","data","onChange","hideFooter"]);return p.default.createElement(g.default,(0,u.default)({name:"dingtalk",module:"DingTalk",icon:"dingtalk",data:r,onChange:n,hideFooter:l,user:a},i),p.default.createElement(h.Tabs,{type:"button"},p.default.createElement(O,{label:t("CHAT_SETTINGS"),name:"conversation"},p.default.createElement(p.default.Fragment,null,!a&&this.renderServiceSetting(),this.renderReceiverSetting())),p.default.createElement(O,{label:t("CHATBOT_SETTINGS"),name:"chatbot"},this.renderChatSetting())))}}]),r}(p.Component);a.default=S},function(e,a,r){"use strict";r(15);var n=r(157),l=r(20);r(5),r(187),r(84),r(4),r(23),r(17),r(85),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(187),r(84),r(42),r(4),r(23),r(57),r(17),r(85);var u=l(r(315)),o=l(r(58)),i=l(r(36)),c=l(r(37)),s=l(r(55)),f=l(r(56)),d=l(r(51)),p=n(r(0)),m=l(r(26)),h=l(r(63)),v=r(186),g=l(r(240)),y=l(r(1314)),E=l(r(1061)),b=l(r(3130)),_=l(r(1717));function O(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,d.default)(e);if(t){var n=(0,d.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,f.default)(this,a)}}var S=v.Tabs.TabPanel,C=function(e){(0,s.default)(r,e);var a=O(r);function r(){var e;(0,i.default)(this,r);for(var n=arguments.length,l=new Array(n),u=0;ul-1)g.default.error({content:t.html("MAX_".concat(r.toUpperCase(),"_COUNT"),{count:l}),duration:1e3});else{if(!n.includes(a))return!0;g.default.error({content:t("".concat(r.toUpperCase(),"_EXISTS")),duration:1e3})}else g.default.error({content:t("ENTER_".concat(r.toUpperCase(),"_TIP")),duration:1e3})},e.receiverValidator=function(a,r,n){if(["toParty","toUser","toTag"].every((function(t){return(0,h.default)((0,m.default)(e.props.data,"receiver.spec.wechat.".concat(t)))})))return n({message:t("RECIPIENT_SETTINGS_TIP")});n()},e.handleTypeChange=function(t){e.setState({type:t})},e.handleChatTypeChange=function(t){e.setState({chatbotType:t})},e}return(0,c.default)(r,[{key:"renderServiceSetting",value:function(){return p.default.createElement("div",{className:_.default.row},p.default.createElement("div",{className:_.default.title},t("SERVER_SETTINGS")),p.default.createElement("div",{className:_.default.item},p.default.createElement(v.Form.Item,{label:"Corp ID",rules:[{required:!0,message:t("ENTER_WECOM_CORP_ID_DESC")}]},p.default.createElement(v.Input,{name:"config.spec.wechat.wechatApiCorpId"})),p.default.createElement(v.Form.Item,{label:"Agent ID",rules:[{required:!0,message:t("ENTER_WECOM_AGENT_ID_DESC")}]},p.default.createElement(v.Input,{name:"config.spec.wechat.wechatApiAgentId"})),p.default.createElement(v.Form.Item,{label:"Secret",rules:[{required:!0,message:t("ENTER_WECOM_SECRET_DESC")}]},p.default.createElement(v.Input,{name:"secret.data.appsecret"}))))}},{key:"renderReceiverSetting",value:function(){var e=this.state.type,a=this.props.wrapperClassName;return p.default.createElement("div",{className:_.default.row},p.default.createElement("div",{className:_.default.title},t("RECIPIENT_SETTINGS")),p.default.createElement("div",{className:_.default.subTitle},t("RECIPIENT_SETTINGS_TIP")),p.default.createElement("div",{className:_.default.item},p.default.createElement("div",{className:"margin-b12"},p.default.createElement(y.default,{value:e,onChange:this.handleTypeChange,options:this.tabs})),p.default.createElement(v.Form.Item,{rules:[{validator:this.receiverValidator}]},p.default.createElement(b.default,{name:"receiver.spec.wechat.".concat(e),className:a,validate:this.validate,type:e}))))}},{key:"renderChatbotSetting",value:function(){return p.default.createElement("div",{className:_.default.row},p.default.createElement("div",{className:_.default.title},p.default.createElement("span",null,t("CHATBOT_SETTINGS"))),p.default.createElement("div",{className:_.default.item},p.default.createElement(v.Form.Item,{label:"Webhook URL"},p.default.createElement(v.Input,{name:"secret.data.webhook"}))))}},{key:"renderChatbotReceiverSetting",value:function(){var e=this.state.chatbotType,a=this.props.wrapperClassName;return p.default.createElement("div",{className:_.default.row},p.default.createElement("div",{className:_.default.title},t("RECIPIENT_SETTINGS")),p.default.createElement("div",{className:_.default.item},p.default.createElement("div",{className:"margin-b12"},p.default.createElement(y.default,{value:e,onChange:this.handleChatTypeChange,options:this.chatbotTabs})),p.default.createElement(v.Form.Item,null,p.default.createElement(b.default,{name:"receiver.spec.wechat.chatbot.".concat(e),className:a,validate:this.validate,type:e}))))}},{key:"render",value:function(){var e=this.props,a=e.user,r=e.data,n=e.onChange,l=e.hideFooter,i=(0,o.default)(e,["user","data","onChange","hideFooter"]);return p.default.createElement(E.default,(0,u.default)({name:"wechat",module:"WeCom",icon:"wecom",data:r,onChange:n,hideFooter:l,user:a},i),p.default.createElement(v.Tabs,{type:"button"},p.default.createElement(S,{label:t("CHAT_SETTINGS"),name:"conversation"},!a&&this.renderServiceSetting(),this.renderReceiverSetting()),p.default.createElement(S,{label:t("CHATBOT_SETTINGS"),name:"chatbot"},this.renderChatbotSetting(),this.renderChatbotReceiverSetting())))}},{key:"tabs",get:function(){return[{label:"User ID",value:"toUser"},{label:"Department ID",value:"toParty"},{label:"Tag ID",value:"toTag"}]}},{key:"chatbotTabs",get:function(){return[{label:"User ID",value:"atUsers"},{label:t("WHIZARD_NOTIFICATION.PHONE_NUMBER"),value:"atMobiles"}]}}]),r}(p.Component);a.default=C},function(e,t,a){e.exports={title:"IKj2QMOz04C12iP1VFDNL",subTitle:"_3K5t_PpqMH_7kKHPzcLCco",row:"ChmNt1kcK1XD-oKuGaup5",wrapper:"Z0KFimX54l9rVcMJUe3wp",item:"_1s7eK7cotVqGxPePQ3rUw7",boxWrapper:"_3AstjCLI3Fv8pmh3KAOBP8",empty:"_1W7NXKcHzz0De9UuYrjWm",tag:"_1Sx0_dd2bUpcOt6bBuHbQH"}},function(e,a,r){"use strict";r(15);var n=r(157),l=r(20);r(5),r(97),r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(97),r(42),r(4),r(23),r(57),r(17);var u=l(r(315)),o=l(r(58)),i=l(r(36)),c=l(r(37)),s=l(r(55)),f=l(r(56)),d=l(r(51)),p=n(r(0)),m=l(r(26)),h=r(186),v=l(r(240)),g=l(r(1061)),y=l(r(1379)),E=l(r(3132));function b(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,d.default)(e);if(t){var n=(0,d.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,f.default)(this,a)}}var _=function(e){(0,s.default)(r,e);var a=b(r);function r(){var e;(0,i.default)(this,r);for(var n=arguments.length,l=new Array(n),u=0;ul-1)v.default.error({content:t.html("MAX_CHANNEL_COUNT",{count:l}),durantion:1e3});else{if(!n.some((function(e){return e===a})))return!0;v.default.error({content:t("CHANNEL_EXISTS"),duration:1e3})}else v.default.error({content:t("ADD_CHANNEL_TIP"),duration:1e3})},e}return(0,c.default)(r,[{key:"renderServiceSetting",value:function(){return p.default.createElement("div",{className:E.default.row},p.default.createElement("div",{className:E.default.title},t("SERVER_SETTINGS")),p.default.createElement("div",{className:E.default.item},p.default.createElement(h.Form.Item,{label:t("SLACK_TOKEN"),rules:[{required:!0,message:t("SLACK_TOKEN_DESC")}]},p.default.createElement(h.Input,{name:"secret.data.token"}))))}},{key:"renderReceiverSetting",value:function(){var e=this.props.wrapperClassName;return p.default.createElement("div",{className:E.default.row},p.default.createElement("div",{className:E.default.title},t("CHANNEL_SETTINGS")),p.default.createElement("div",{className:E.default.item},p.default.createElement(h.Form.Item,{rules:[{required:!0,message:t("ADD_CHANNEL_TIP")}]},p.default.createElement(y.default,{className:e,name:"receiver.spec.slack.channels",validate:this.validateChannel,title:t("SLACK_CHANNEL"),listTitle:t("ADDED_CHANNELS"),emptyDesc:t("EMPTY_CHANNEL_DESC")}))))}},{key:"render",value:function(){var e=this.props,t=e.user,a=e.data,r=e.onChange,n=e.hideFooter,l=(0,o.default)(e,["user","data","onChange","hideFooter"]);return p.default.createElement(g.default,(0,u.default)({name:"slack",module:"slack",icon:"slack",data:a,onChange:r,hideFooter:n,user:t},l),!t&&this.renderServiceSetting(),this.renderReceiverSetting())}}]),r}(p.Component);a.default=_},function(e,a,r){"use strict";r(15);var n=r(157),l=r(20);r(5),r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(42),r(4),r(23),r(57),r(17);var u=l(r(315)),o=l(r(58)),i=l(r(36)),c=l(r(37)),s=l(r(55)),f=l(r(56)),d=l(r(51)),p=n(r(0)),m=l(r(26)),h=r(186),v=l(r(1122)),g=l(r(1061)),y=l(r(3134));function E(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,d.default)(e);if(t){var n=(0,d.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,f.default)(this,a)}}var b=function(e){(0,s.default)(r,e);var a=E(r);function r(){var e;(0,i.default)(this,r);for(var t=arguments.length,n=new Array(t),l=0;ln-1)v.default.error({content:t.html("MAX_KEYWORD_COUNT",{count:n}),durantion:1e3});else{if(!r.includes(a))return!0;v.default.error({content:t("KEYWORD_EXISTS"),duration:1e3})}else v.default.error({content:t("ENTER_KEYWORD_DESC"),durantion:1e3})},e}return(0,c.default)(r,[{key:"renderServiceSetting",value:function(){return p.default.createElement("div",{className:E.default.row},p.default.createElement("div",{className:E.default.title},t("CHAT_SETTINGS")),p.default.createElement("div",{className:E.default.item},p.default.createElement(h.Form.Item,{label:"App Key"},p.default.createElement(h.Input,{name:"secret.data.appkey"})),p.default.createElement(h.Form.Item,{label:"App Secret"},p.default.createElement(h.Input,{name:"secret.data.appsecret"}))))}},{key:"renderReceiverSetting",value:function(){var e=this.props.wrapperClassName;return p.default.createElement("div",{className:E.default.row},p.default.createElement("div",{className:E.default.title},p.default.createElement("span",null,t("RECIPIENT_SETTINGS")),p.default.createElement("p",{className:E.default.subtitle},t("FEISHU_RECEIPIENT_SETTINGS_DESC"))),p.default.createElement("div",{className:E.default.item},p.default.createElement(h.Tabs,{type:"button"},p.default.createElement(_,{label:t("USER_ID"),name:"conversation"},p.default.createElement(h.Form.Item,null,p.default.createElement(y.default,{className:e,title:t(""),listTitle:t("TOUSER_LIST"),emptyDesc:t("EMPTY_TOUSER_DESC"),placeholder:" ",name:"receiver.spec.feishu.user",validate:this.validateKeywords}))),p.default.createElement(_,{label:t("DEPARTMENT_ID"),name:"chatbot"},p.default.createElement(h.Form.Item,null,p.default.createElement(y.default,{className:e,title:t(""),listTitle:t("TOPARTY_LIST"),emptyDesc:t("EMPTY_TOPARTY_DESC"),placeholder:" ",name:"receiver.spec.feishu.department",validate:this.validateKeywords}))))))}},{key:"renderChatSetting",value:function(){var e=this.props.wrapperClassName;return p.default.createElement("div",{className:E.default.row},p.default.createElement("div",{className:E.default.title},p.default.createElement("span",null,t("CHATBOT_SETTINGS"))),p.default.createElement("div",{className:E.default.item},p.default.createElement(h.Form.Item,{label:"Webhook URL"},p.default.createElement(h.Input,{name:"secret.data.webhook"})),p.default.createElement(h.Form.Item,{label:t("FEISHU_SECRET")},p.default.createElement(h.Input,{name:"secret.data.chatbotsecret"})),p.default.createElement(h.Form.Item,null,p.default.createElement(y.default,{className:e,name:"receiver.spec.feishu.chatbot.keywords",validate:this.validateKeywords}))))}},{key:"render",value:function(){var e=this.props,a=e.user,r=e.data,n=e.onChange,l=e.hideFooter,i=(0,o.default)(e,["user","data","onChange","hideFooter"]);return p.default.createElement(g.default,(0,u.default)({name:"feishu",module:"Feishu",icon:"feishu",data:r,onChange:n,hideFooter:l,user:a},i),p.default.createElement(h.Tabs,{type:"button"},p.default.createElement(_,{label:t("CHAT_SETTINGS"),name:"conversation"},!a&&this.renderServiceSetting(),p.default.createElement(p.default.Fragment,null,this.renderReceiverSetting())),p.default.createElement(_,{label:t("CHATBOT_SETTINGS"),name:"chatbot"},this.renderChatSetting())))}}]),r}(p.Component);a.default=O},function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(18),r(10),r(4),r(23),r(24),r(17),r(64),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(18),r(191),r(42),r(159),r(10),r(4),r(23),r(57),r(24),r(17),r(64);var l=n(r(315)),u=n(r(36)),o=n(r(37)),i=n(r(55)),c=n(r(56)),s=n(r(51)),f=n(r(0)),d=n(r(1)),p=r(186),m=r(909),h=n(r(1268)),v=n(r(841)),g=n(r(3143));function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,s.default)(e);if(t){var n=(0,s.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,c.default)(this,a)}}var E=function(e){(0,i.default)(r,e);var a=y(r);function r(){var e;(0,u.default)(this,r);for(var t=arguments.length,n=new Array(t),l=0;l0&&void 0!==arguments[0]?arguments[0]:{};n.setState({checkStatus:e.status,resultInfo:e})},n.changeIcon=function(e){n.setState({icon:e})},n.onCancel=function(){n.props.onCancel(),n.reset()},n.createApp=(0,s.default)(c.default.mark((function e(){var t,a,r,l,u,o,i,s,f;return c.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=n.props,a=t.type,r=t.onOk,(l=n.state.canCreate)?(u=n.state,o=u.icon,i=u.resultInfo,s=o||i.icon,f={version_type:"helm",name:i.name,base64Str:i.base64Str,icon:s},n.fileStore.uploadPackage(a,f,r).then((function(){n.reset()}))):n.setState({canCreate:!l});case 3:case"end":return e.stop()}}),e)}))),n.handleSubmit=function(){var e=n.props,a=e.appId,r=e.workspace,l=e.type,u=e.onOk,o=n.state.resultInfo;if("success"!==n.state.checkStatus)return b.default.error({content:"".concat(t("UPLOAD_PACKAGE_OK_NOTE"))}),!1;if("CREATE_APP"===l)n.createApp();else{var i={type:"helm",app_id:a,workspace:r,base64Str:o.base64Str};n.fileStore.uploadPackage(l,i,u).then((function(){n.setState({checkStatus:"init"})}))}},n.fileStore=new C.default,n.state={checkStatus:"init",canCreate:!1,resultInfo:{},icon:""},n}return(0,d.default)(r,[{key:"renderCheckFiles",value:function(){var e=this.props.errorFiles;return v.default.createElement("div",null,v.default.createElement("div",{className:k.default.checkFiles},v.default.createElement("ul",null,D.default.map((function(a){return v.default.createElement("li",{key:a.name,className:(0,y.default)((0,i.default)({},k.default.error,e.includes(a.name)))},v.default.createElement("span",{className:k.default.name},a.name),v.default.createElement("div",{className:k.default.description},"#  ",a.isOptional&&v.default.createElement("span",null,"[",t("OPTIONAL"),"]  "),t(a.description)))}))),"success"!==this.state.checkStatus&&v.default.createElement("div",{className:k.default.configMask})))}},{key:"render",value:function(){var e=this.props,t=e.appId,a=(0,o.default)(e,["appId"]),r=this.state,n=r.canCreate,l=r.resultInfo;return v.default.createElement(_.default,(0,u.default)({width:960,bodyClassName:k.default.body},a,{onOk:this.handleSubmit,onCancel:this.onCancel,disableSubmit:!l.name}),v.default.createElement("div",{className:k.default.content},v.default.createElement("div",{className:k.default.helmIcon},v.default.createElement(E.Icon,{name:"helm",size:60})),v.default.createElement(O.default,{className:(0,y.default)(k.default.upload,(0,i.default)({},k.default.canCreate,n)),canCreate:n,changeCheckStatus:this.changeCheckStatus,fileStore:this.fileStore,appId:t}),n?v.default.createElement(S.default,{createInfo:l,uploadIcon:this.changeIcon,fileStore:this.fileStore}):this.renderCheckFiles()))}}]),r}(v.Component);a.default=T,T.propTypes={detail:g.default.object,visible:g.default.bool,isSubmitting:g.default.bool,errorFiles:g.default.array,appId:g.default.string,type:g.default.string,onOk:g.default.func,onCancel:g.default.func},T.defaultProps={visible:!1,isSubmitting:!1,errorFiles:[],type:"CREATE_APP",appId:"",onOk:function(){},onCancel:function(){}}},,function(e,a,r){"use strict";r(15);var n=r(20);r(12),r(109),r(5),r(16),r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(109),r(45),r(5),r(42),r(16),r(4),r(23),r(57),r(17);var l=n(r(36)),u=n(r(37)),o=n(r(55)),i=n(r(56)),c=n(r(51)),s=n(r(0)),f=n(r(1)),d=r(186),p=n(r(787)),m=n(r(3198));function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,c.default)(e);if(t){var n=(0,c.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,i.default)(this,a)}}var v=function(e){(0,o.default)(r,e);var a=h(r);function r(){var e;(0,l.default)(this,r);for(var t=arguments.length,n=new Array(t),u=0;u0&&void 0!==E[0]?E[0]:{},a=t.cluster,t.workspace,r=t.namespace,u=t.more,i=t.id,c=(0,o.default)(t,["cluster","workspace","namespace","more","id"]),this.list.isLoading=!0,c.sortBy||void 0!==c.ascending||(c.sortBy="createTime"),c.limit!==1/0&&-1!==c.limit||(c.limit=-1,c.page=1),s=this.getFilterParams(c),f=s.labelSelector,d=(0,o.default)(s,["labelSelector"]),p=f,f?p+=",app_instance=".concat(i):p="app_instance=".concat(i),c.limit=c.limit||10,e.next=10,request.get(this.getResourceUrl({cluster:a,namespace:r}),C(C({},d),{},{labelSelector:p}));case 10:return m=e.sent,h=((0,v.default)(m,"items")||[]).map((function(e){return C({cluster:a,namespace:r},y.mapper(e))})),g=m.totalItems||m.items.length,this.list.update(C(C({data:u?[].concat((0,l.default)(this.list.data),(0,l.default)(h)):h,total:g},c),{},{limit:Number(c.limit)||10,page:Number(c.page)||1,isLoading:!1},this.list.silent?{}:{selectedRowKeys:[]})),e.abrupt("return",h);case 15:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})},{key:"create",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,y.default)(e,"metadata.name","".concat(t.cluster_id,"-").concat(e.metadata.name)),this.submitting(request.post(this.getListUrl(C(C({},t),{},{k8sOpt:!0})),e))}},{key:"createDefaultAlert",value:function(e,t){var a=t.name,r=t.namespace,n=t.cluster,l={};function u(e){return e=e.replaceAll("namespaceName",r).replaceAll("clusterId",a),JSON.parse(e)}switch(e){case O.RadonDBAppId.RedisCluster:case O.RadonDBAppId.RedisSentinel:l=u(JSON.stringify(_.redisAlertYaml));break;case O.RadonDBAppId.OpenSearch:l=u(JSON.stringify(_.openSearchAlertYaml));break;case O.RadonDBAppId.Kafka:l=u(JSON.stringify(_.kafkaAlertYaml));break;case O.RadonDBAppId.PostgreSQL:l=u(JSON.stringify(_.pgAlertYaml));break;case O.RadonDBAppId.MySQL:l=u(JSON.stringify(_.MySQLAlertYaml));break;default:l={}}if(!(0,g.default)(l))return this.submitting(request.post(this.getListUrl({cluster:n,namespace:r,name:a,k8sOpt:!0}),l))}}]),r}(b.default),(0,h.default)(i.prototype,"fetchList",[E.action],Object.getOwnPropertyDescriptor(i.prototype,"fetchList"),i.prototype),(0,h.default)(i.prototype,"create",[E.action],Object.getOwnPropertyDescriptor(i.prototype,"create"),i.prototype),(0,h.default)(i.prototype,"createDefaultAlert",[E.action],Object.getOwnPropertyDescriptor(i.prototype,"createDefaultAlert"),i.prototype),i);t.default=k},function(e,a,r){"use strict";r(15);var n=r(20);r(12),r(109),r(11),r(18),r(16),r(4),r(23),r(24),r(17),r(136),r(818),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(109),r(45),r(11),r(160),r(18),r(42),r(16),r(4),r(23),r(57),r(17),r(818);var l=n(r(36)),u=n(r(37)),o=n(r(55)),i=n(r(56)),c=n(r(51)),s=n(r(0)),f=n(r(1)),d=n(r(3)),p=n(r(243)),m=n(r(26)),h=r(52),v=n(r(1001)),g=n(r(3234)),y=n(r(3236));function E(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,c.default)(e);if(t){var n=(0,c.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,i.default)(this,a)}}var b=function(e){(0,o.default)(r,e);var a=E(r);function r(){return(0,l.default)(this,r),a.apply(this,arguments)}return(0,u.default)(r,[{key:"filterImages",value:function(e){return"string"==typeof e?e.split(",").map((function(e){return e.trim()})).filter(Boolean):Array.isArray(e)?e:[]}},{key:"renderVersionTable",value:function(){var e=this.props.versions,a=(0,m.default)(globals.user,"lang")||(0,h.getBrowserLang)();return s.default.createElement("table",{className:y.default.versions},s.default.createElement("thead",null,s.default.createElement("tr",null,s.default.createElement("th",null,t("VERSION_NUMBER")),s.default.createElement("th",null,t("UPDATE_LOG")))),s.default.createElement("tbody",null,e.map((function(e){var t=e.name,r=e.description,n=void 0===r?"-":r,l=e.status_time,u=e.version_id;return s.default.createElement("tr",{key:u},s.default.createElement("td",null,s.default.createElement("p",{className:y.default.name},t),s.default.createElement("p",{className:y.default.date},(0,p.default)(l).format("YYYY-MM-DD"))),s.default.createElement("td",null,s.default.createElement("pre",{className:y.default.desc},(0,m.default)(e,"description_".concat(a),n))))}))))}},{key:"renderAppDeployAgreement",value:function(){var e=this.props,a=e.isCheck,r=e.onChange,n=t.html("APP_DEPLOY_AGREEMENT_2");return s.default.createElement("div",{className:y.default.agree},s.default.createElement("p",null,t("APP_DEPLOY_AGREEMENT_1")),s.default.createElement("p",null,(0,h.htmlLinkControl)(n)),s.default.createElement("div",{className:"margin-t12"},s.default.createElement(Checkbox,{checked:a,onChange:r},t("APP_DEPLOY_AGREEMENT_CHEKC"))))}},{key:"render",value:function(){var e=this.props,a=e.className,r=e.app,n=r.abstraction,l=r.screenshots;return s.default.createElement("div",{className:(0,d.default)(y.default.appInfo,a)},s.default.createElement("div",null,s.default.createElement("h3",{className:y.default.title},t("APP_INTRODUCTION")),s.default.createElement(v.default,{source:n||t("NONE")})),s.default.createElement("div",null,s.default.createElement("h3",{className:y.default.title},t("APP_SCREENSHOTS")),s.default.createElement(g.default,{images:this.filterImages(l)})),s.default.createElement("div",null,s.default.createElement("h3",{className:y.default.title},t("APP_VERSIONS_TITLE")),this.renderVersionTable()))}}]),r}(s.default.PureComponent);a.default=b,b.propTypes={className:f.default.string,app:f.default.object.isRequired,versions:f.default.array},b.defaultProps={app:{},versions:[]}},function(e,a,r){"use strict";var n=r(20);r(12),r(109),r(11),r(6),r(84),r(18),r(320),r(16),r(9),r(13),r(10),r(4),r(23),r(24),r(17),r(85),r(136),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(109),r(45),r(11),r(6),r(84),r(160),r(18),r(28),r(320),r(42),r(16),r(34),r(15),r(9),r(13),r(10),r(4),r(22),r(23),r(57),r(17),r(85),r(7);var l=n(r(30)),u=n(r(58)),o=n(r(43));r(41);var i,c,s,f=n(r(44)),d=n(r(36)),p=n(r(37)),m=n(r(55)),h=n(r(56)),v=n(r(51)),g=n(r(0)),y=n(r(1)),E=r(186),b=r(239),_=n(r(787)),O=n(r(195)),S=n(r(26)),C=n(r(63)),D=n(r(960)),k=n(r(3258));function N(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function T(e){for(var t=1;tt.value?1:0}))}}]),r}(g.default.Component),c.propTypes={name:y.default.string,branches:y.default.array},c.defaultProps={branches:[],visible:!1,name:"",onOk:function(){},onCancel:function(){}},i=s))||i;a.default=w},,,,function(e,t,a){e.exports={pipeline_column:"nWZ33DmaBbhEDSesc0DiU",content:"_1-oRV7NPr1NxWnH05jzHGL",clickable:"_3YhfWUE0e_VnI4wVC083Mj"}},function(e,t,a){"use strict";a(15);var r=a(20);a(5),a(18),a(4),a(23),a(17),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(45),a(5),a(18),a(28),a(42),a(4),a(23),a(57),a(17);var n=r(a(61)),l=r(a(36)),u=r(a(37)),o=r(a(55)),i=r(a(56)),c=r(a(51)),s=r(a(0)),f=r(a(60)),d=r(a(63)),p=r(a(3272));function m(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,c.default)(e);if(t){var n=(0,c.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,i.default)(this,a)}}var h=function(e){(0,o.default)(a,e);var t=m(a);function a(){var e;(0,l.default)(this,a);for(var r=arguments.length,u=new Array(r),o=0;o0&&void 0!==arguments[0]?arguments[0]:{};return"".concat(e.apiVersion).concat(e.getPath(t),"/groups")},e.getDetailUrl=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return"".concat(e.getResourceUrl(t),"/").concat(t.name)},e.getWatchListUrl=function(t){var a=t.workspace,r=(0,f.default)(t,["workspace"]);return"apis/iam.kubesphere.io/v1beta1/watch".concat(e.getPath(r),"/groups?labelSelector=kubesphere.io/workspace=").concat(a)},e}return(0,m.default)(y,[{key:"getPath",value:function(e){var t=e.cluster,a=e.workspace,r=e.namespace,n=e.devops,l="";return t&&(l+="/klusters/".concat(t)),r?"".concat(l,"/namespaces/").concat(r):n?"".concat(l,"/namespaces/").concat(n):a?"".concat(l,"/workspaces/").concat(a):l}},{key:"fetchGroup",value:(o=(0,s.default)(l.default.mark((function e(){var t,a,r,n,u,o,i=this,c=arguments;return l.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=c.length>0&&void 0!==c[0]?c[0]:{},r=a.workspace,n=(0,f.default)(a,["workspace"]),this.isLoading=!0,n.sortBy="createTime",n.limit=-1,e.next=6,request.get(this.getResourceUrl(N({workspace:r},n)));case 6:u=e.sent,o=null===(t=(0,_.default)(u,"items",[]))||void 0===t?void 0:t.map((function(e){return N({},i.mapper(e))})),this.total=(0,_.default)(u,"totalItems"),this.treeData=[{key:"root",title:r,group_id:"root",group_name:r,path:[r],children:(0,C.formatTreeData)(o,r)}],this.rowTreeData=(0,C.flattenTreeData)(this.treeData),this.isLoading=!1,this.list.update(N(N({data:o,total:u.totalItems||0},n),{},{limit:Number(n.limit)||10,page:Number(n.page)||1,isLoading:!1}));case 13:case"end":return e.stop()}}),e,this)}))),function(){return o.apply(this,arguments)})},{key:"create",value:function(e,t){var a=(0,_.default)(e,'metadata.annotations["kubesphere.io/project-roles"]',[]),r=(0,_.default)(e,'metadata.annotations["kubesphere.io/devops-roles"]',[]);return(0,O.default)(e,'metadata.annotations["kubesphere.io/project-roles"]',JSON.stringify(a)),(0,O.default)(e,'metadata.annotations["kubesphere.io/devops-roles"]',JSON.stringify(r)),this.submitting(request.post(this.getResourceUrl(t),e))}},{key:"createGroup",value:(u=(0,s.default)(l.default.mark((function e(t,a){var r,u,o,i,c,s,d,p=this;return l.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.create((0,S.default)(t),a);case 2:return r=e.sent,u=(0,_.default)(r,"metadata.name"),o=(0,_.default)(t,'metadata.annotations["kubesphere.io/workspace-role"]'),i=(0,_.default)(t,'metadata.annotations["kubesphere.io/project-roles"]',[]),c=(0,_.default)(t,'metadata.annotations["kubesphere.io/devops-roles"]',[]),s=[this.addWorkspaceRoleBinding([{username:u,roleRef:o}],a)],(d=[].concat((0,n.default)(i),(0,n.default)(c))).length>0&&d.forEach((function(e){var t=e.role,a=(0,f.default)(e,["role"]);return t&&s.push(p.addRolebindings([{username:u,roleRef:t}],N({},a)))})),e.abrupt("return",this.submitting(Promise.all(s)));case 11:case"end":return e.stop()}}),e,this)}))),function(e,t){return u.apply(this,arguments)})},{key:"update",value:(r=(0,s.default)(l.default.mark((function e(t,a,r){var u,o,i,c,s,f,d,p,m,h,v,g,y,E;return l.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(u=(0,_.default)(t,"metadata.name"),o={},i=(0,_.default)(t,'metadata.annotations["kubesphere.io/alias-name"]'),c=(0,_.default)(t,'metadata.annotations["kubesphere.io/workspace-role"]'),s=(0,_.default)(t,'metadata.annotations["kubesphere.io/project-roles"]',[]),f=(0,_.default)(t,'metadata.annotations["kubesphere.io/devops-roles"]',[]),(0,O.default)(o,'metadata.annotations["kubesphere.io/alias-name"]',i),(0,O.default)(o,'metadata.annotations["kubesphere.io/workspace-role"]',c),(0,O.default)(o,'metadata.annotations["kubesphere.io/project-roles"]',JSON.stringify(s)),(0,O.default)(o,'metadata.annotations["kubesphere.io/devops-roles"]',JSON.stringify(f)),d=[request.patch(this.getDetailUrl(N(N({},r),{},{name:u})),o)],p=(0,_.default)(a,'metadata.annotations["kubesphere.io/workspace-role"]'),c===p){e.next=19;break}return e.next=15,this.getWorkspaceRoleBinding(u,r);case 15:return m=e.sent,e.next=18,this.deleteWorkspaceRoleBinding((0,_.default)(m,"items[0].metadata.name"),r);case 18:d.push(this.addWorkspaceRoleBinding([D.default.workspacerolebinding({name:u,role:c})],r));case 19:return h=(0,_.default)(a,'metadata.annotations["kubesphere.io/project-roles"]'),v=(0,_.default)(a,'metadata.annotations["kubesphere.io/devops-roles"]'),g=[].concat((0,n.default)(s),(0,n.default)(f)),y=[].concat((0,n.default)(h),(0,n.default)(v)),(E=this.getUpdateRolebindsRequests(g,y,t)).length>0&&d.push(E),e.abrupt("return",this.submitting(Promise.all(d)));case 26:case"end":return e.stop()}}),e,this)}))),function(e,t,a){return r.apply(this,arguments)})},{key:"getUpdateRolebindsRequests",value:function(e,t,a){var r=this,n=(0,_.default)(a,"metadata.name"),l=[];return e.forEach((function(e){var a=e.role,u=e.namespace,o=e.cluster;t.find((function(e){return e.cluster===o&&e.namespace===u&&e.role===a}))||l.push(r.addRolebindings([D.default.rolebinding({name:n,role:a})],{cluster:o,namespace:u}))})),t.forEach((function(t){var a=t.namespace,n=t.cluster,u=t.role,o=t.name;e.find((function(e){return e.cluster===n&&e.namespace===a&&e.role===u}))||l.push(r.deleteRolebindings(o,{cluster:n,namespace:a}))})),l}},{key:"checkName",value:(a=(0,s.default)(l.default.mark((function e(t){var a,r,n;return l.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=t.name,r=(0,f.default)(t,["name"]),e.next=3,request.get("".concat(this.getResourceUrl(r)),{name:a});case 3:if(!(n=e.sent).items||!n.items.some((function(e){return(0,_.default)(e,"metadata.generateName")===a}))){e.next=6;break}return e.abrupt("return",{exist:!0});case 6:return e.abrupt("return",{exist:!1});case 7:case"end":return e.stop()}}),e,this)}))),function(e){return a.apply(this,arguments)})},{key:"addGroupBinding",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return request.post("".concat(this.apiVersion).concat(this.getPath(t),"/groupbindings"),e)}},{key:"deleteGroupBinding",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return request.delete("".concat(this.apiVersion).concat(this.getPath(t),"/groupbindings/").concat(e))}},{key:"addWorkspaceRoleBinding",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return request.post("".concat(this.apiVersion).concat(this.getPath(t),"/workspacemembers"),e)}},{key:"deleteWorkspaceRoleBinding",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return request.delete("".concat(this.apiVersion).concat(this.getPath(t),"/workspacemembers/").concat(e))}},{key:"addRolebindings",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return request.post("".concat(this.apiVersion).concat(this.getPath(t),"/namespacemembers"),e)}},{key:"deleteRolebindings",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return request.delete("".concat(this.apiVersion).concat(this.getPath(t),"/namespacemembers/").concat(e))}},{key:"getGroupBinding",value:function(e){var t=e.group,a=e.user,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return request.get("".concat(this.apiVersion).concat(this.getPath(r),"/groupbindings"),{labelSelector:"iam.kubesphere.io/group-ref=".concat(t,",iam.kubesphere.io/user-ref=").concat(a)})}},{key:"getWorkspaceRoleBinding",value:(t=(0,s.default)(l.default.mark((function e(t,a){var r,n,u,o,i;return l.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=a.cluster,n=a.workspace,u=a.namespace,o=(0,f.default)(a,["cluster","workspace","namespace"]),i=o,t&&(i.labelSelector="iam.kubesphere.io/group-ref=".concat(t)),e.next=5,request.get("".concat(this.apiVersion).concat(this.getPath({cluster:r,workspace:n,namespace:u}),"/workspacemembers"),i);case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e,this)}))),function(e,a){return t.apply(this,arguments)})},{key:"getRoleBinding",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return request.get("".concat(this.apiVersion).concat(this.getPath(t),"/namespacemembers"),{labelSelector:"iam.kubesphere.io/group-ref=".concat(e)})}},{key:"fetchRoleBinding",value:function(e,t){var a=this,r=t.clusters,n=(0,f.default)(t,["clusters"]),l=[];return r.length>0?r.forEach((function(t){l.push(a.getRoleBinding(e,N({cluster:t},n)))})):l.push(this.getRoleBinding(e,N({},n))),Promise.all(l)}},{key:"deleteGroup",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return request.delete("".concat(this.apiVersion).concat(this.getPath(t),"/groups/").concat(e))}},{key:"apiVersion",get:function(){return"kapis/iam.kubesphere.io/v1beta1"}}]),y}(r(a(68)).default),i=(0,E.default)(o.prototype,"treeData",[b.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),c=(0,E.default)(o.prototype,"rowTreeData",[b.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),(0,E.default)(o.prototype,"fetchGroup",[b.action],Object.getOwnPropertyDescriptor(o.prototype,"fetchGroup"),o.prototype),(0,E.default)(o.prototype,"create",[b.action],Object.getOwnPropertyDescriptor(o.prototype,"create"),o.prototype),(0,E.default)(o.prototype,"createGroup",[b.action],Object.getOwnPropertyDescriptor(o.prototype,"createGroup"),o.prototype),(0,E.default)(o.prototype,"update",[b.action],Object.getOwnPropertyDescriptor(o.prototype,"update"),o.prototype),(0,E.default)(o.prototype,"checkName",[b.action],Object.getOwnPropertyDescriptor(o.prototype,"checkName"),o.prototype),(0,E.default)(o.prototype,"addGroupBinding",[b.action],Object.getOwnPropertyDescriptor(o.prototype,"addGroupBinding"),o.prototype),(0,E.default)(o.prototype,"deleteGroupBinding",[b.action],Object.getOwnPropertyDescriptor(o.prototype,"deleteGroupBinding"),o.prototype),(0,E.default)(o.prototype,"addWorkspaceRoleBinding",[b.action],Object.getOwnPropertyDescriptor(o.prototype,"addWorkspaceRoleBinding"),o.prototype),(0,E.default)(o.prototype,"deleteWorkspaceRoleBinding",[b.action],Object.getOwnPropertyDescriptor(o.prototype,"deleteWorkspaceRoleBinding"),o.prototype),(0,E.default)(o.prototype,"addRolebindings",[b.action],Object.getOwnPropertyDescriptor(o.prototype,"addRolebindings"),o.prototype),(0,E.default)(o.prototype,"deleteRolebindings",[b.action],Object.getOwnPropertyDescriptor(o.prototype,"deleteRolebindings"),o.prototype),(0,E.default)(o.prototype,"getGroupBinding",[b.action],Object.getOwnPropertyDescriptor(o.prototype,"getGroupBinding"),o.prototype),(0,E.default)(o.prototype,"getWorkspaceRoleBinding",[b.action],Object.getOwnPropertyDescriptor(o.prototype,"getWorkspaceRoleBinding"),o.prototype),(0,E.default)(o.prototype,"getRoleBinding",[b.action],Object.getOwnPropertyDescriptor(o.prototype,"getRoleBinding"),o.prototype),(0,E.default)(o.prototype,"fetchRoleBinding",[b.action],Object.getOwnPropertyDescriptor(o.prototype,"fetchRoleBinding"),o.prototype),(0,E.default)(o.prototype,"deleteGroup",[b.action],Object.getOwnPropertyDescriptor(o.prototype,"deleteGroup"),o.prototype),o);t.default=R},function(e,t,a){"use strict";a(15);var r=a(20);a(5),a(11),a(6),a(18),a(7),Object.defineProperty(t,"__esModule",{value:!0}),t.getBreadCrumbData=t.flattenTreeData=t.formatTreeData=void 0;var n=r(a(61));a(5),a(11),a(6),a(18),a(859),a(4),a(7);t.formatTreeData=function(e,t){return null==e?void 0:e.map((function(a){var r=a;return r.children=[],r.path=[t,r.group_name],r.parent_id=a.parent_id||"root",e.forEach((function(e){r.group_id===e.parent_id&&(e.parent_name=r.group_name,e.path=[].concat((0,n.default)(r.path),[e.group_name]),r.children=[].concat((0,n.default)(r.children),[e]))})),"root"===r.parent_id?(r.parent_name=t,r):null})).filter((function(e){return e}))};t.flattenTreeData=function(e){var t={};return e.map((function e(a){var r;if(a.group_id&&(t[a.group_id]=a),(null==a||null===(r=a.children)||void 0===r?void 0:r.length)>0)return a.children.map((function(t){return e(t)}))})),t};t.getBreadCrumbData=function(e,t){for(var a=[],r=t[e];r;)a.unshift(r),r=t[r.parent_id];return a}},,,,,,,,,,function(e,t,a){"use strict";a(15);var r=a(20);a(5),a(18),a(16),a(9),a(4),a(23),a(17),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(45),a(5),a(18),a(42),a(16),a(9),a(4),a(22),a(23),a(57),a(17);var n=r(a(315)),l=r(a(43));a(41);var u,o,i,c,s=r(a(44)),f=r(a(36)),d=r(a(37)),p=r(a(55)),m=r(a(56)),h=r(a(51)),v=r(a(49)),g=r(a(0)),y=r(a(1)),E=a(239),b=a(14),_=r(a(26)),O=r(a(902)),S=r(a(438)),C=a(3446);function D(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,h.default)(e);if(t){var n=(0,h.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,m.default)(this,a)}}var k=(0,E.observer)((c=i=function(e){(0,p.default)(r,e);var t,a=D(r);function r(){var e,t;(0,f.default)(this,r);for(var n=arguments.length,l=new Array(n),u=0;u0&&void 0!==l[0]?l[0]:{},a={operation:"histogram",start_time:this.startTime,end_time:this.endTime,interval:this.interval},e.next=4,this.request((0,_.default)(a,t));case 4:r=e.sent,this.histograms=(0,O.default)(r,"histogram.histograms",[])||[],this.logsCount=(0,O.default)(r,"histogram.total",0);case 7:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})},{key:"handleResult",value:function(e){return e}}]),r}(r(a(1391)).default),u=(0,E.default)(l.prototype,"startTime",[b.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),o=(0,E.default)(l.prototype,"endTime",[b.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),i=(0,E.default)(l.prototype,"interval",[b.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return"15m"}}),c=(0,E.default)(l.prototype,"histograms",[b.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),s=(0,E.default)(l.prototype,"logsCount",[b.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),(0,E.default)(l.prototype,"fetch",[b.action],Object.getOwnPropertyDescriptor(l.prototype,"fetch"),l.prototype),l);t.default=C},,,,,,,,,,,function(e,t,a){"use strict";var r=a(20);a(12),a(5),a(11),a(6),a(18),a(320),a(9),a(13),a(10),a(4),a(23),a(17),a(7),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(12),a(45),a(5),a(11),a(6),a(18),a(28),a(320),a(42),a(34),a(15),a(9),a(13),a(10),a(4),a(22),a(23),a(57),a(17),a(7);var n=r(a(58)),l=r(a(43)),u=r(a(30));a(41);var o,i,c,s,f,d,p,m,h,v,g,y=r(a(44)),E=r(a(65)),b=r(a(36)),_=r(a(37)),O=r(a(88)),S=r(a(55)),C=r(a(56)),D=r(a(51)),k=r(a(49)),N=(r(a(66)),a(14)),T=r(a(902)),R=r(a(26)),w=a(244),I=r(a(1396)),M=a(52);function P(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function A(e){for(var t=1;t0&&void 0!==c[0]?c[0]:{},a=c.length>1&&void 0!==c[1]?c[1]:{},r={operation:"query",start_time:this.startTime,end_time:this.endTime,log_query:this.log_query,pods:this.pods,sort:this.sort,containers:this.containers,from:this.from,size:this.size},n=(0,T.default)(r,t),e.next=6,this.requestLogs(n);case 6:u=e.sent,o=(0,R.default)(u,"query",{}),i=this.stripAnsiRecords(o.records),this.records=a.loadMore?this.records.concat(i):i,this.workspace=u.workspace,this.total=o.total||0,this.from=n.from,this.size=n.size,this.preParams=n;case 15:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})},{key:"stripAnsiRecords",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.map((function(e){return A(A({},e),{},{logStripANSI:(0,I.default)(e.log)})}))}},{key:"exportLinkFactory",value:function(e){var t=e.cluster,a=e.start_time,r=e.end_time,l=(0,n.default)(e,["cluster","start_time","end_time"]),u=(0,M.getClusterUrl)(this.getApiPath(t));return"/".concat(u,"?").concat((0,w.stringify)(A(A({sort:"asc"},l),{},{start_time:Math.floor(a/1e3),end_time:Math.floor(r/1e3),operation:"export",cluster:t})))}},{key:"haveMore",get:function(){return this.total>this.from+this.size}}]),o}(r(a(1391)).default),i=(0,k.default)(o.prototype,"size",[N.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 10}}),c=(0,k.default)(o.prototype,"from",[N.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),s=(0,k.default)(o.prototype,"total",[N.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),f=(0,k.default)(o.prototype,"records",[N.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),d=(0,k.default)(o.prototype,"log_query",[N.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),p=(0,k.default)(o.prototype,"startTime",[N.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),m=(0,k.default)(o.prototype,"endTime",[N.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),h=(0,k.default)(o.prototype,"workspace",[N.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),v=(0,k.default)(o.prototype,"pods",[N.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),g=(0,k.default)(o.prototype,"containers",[N.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),(0,k.default)(o.prototype,"setQuery",[N.action],Object.getOwnPropertyDescriptor(o.prototype,"setQuery"),o.prototype),(0,k.default)(o.prototype,"haveMore",[N.computed],Object.getOwnPropertyDescriptor(o.prototype,"haveMore"),o.prototype),(0,k.default)(o.prototype,"loadMoreLogs",[N.action],Object.getOwnPropertyDescriptor(o.prototype,"loadMoreLogs"),o.prototype),(0,k.default)(o.prototype,"fetch",[N.action],Object.getOwnPropertyDescriptor(o.prototype,"fetch"),o.prototype),o);t.default=L},,function(e,t,a){"use strict";a(15);var r=a(20);a(5),a(18),a(16),a(9),a(4),a(23),a(17),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(45),a(5),a(18),a(42),a(16),a(9),a(4),a(22),a(23),a(57),a(17);var n=r(a(315)),l=r(a(43));a(41);var u,o,i=r(a(44)),c=r(a(36)),s=r(a(37)),f=r(a(55)),d=r(a(56)),p=r(a(51)),m=r(a(49)),h=r(a(0)),v=a(239),g=a(14),y=r(a(26)),E=r(a(438)),b=a(3528);function _(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,p.default)(e);if(t){var n=(0,p.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,d.default)(this,a)}}var O=(0,v.observer)((o=function(e){(0,f.default)(r,e);var t,a=_(r);function r(){var e,t;(0,c.default)(this,r);for(var n=arguments.length,l=new Array(n),u=0;u0&&void 0!==arguments[0]?arguments[0]:{};(0,O.default)(this,t),(0,_.default)(this,"isLoading",i,this),(0,_.default)(this,"histogramTodayData",c,this),(0,_.default)(this,"histogramData",s,this),(0,_.default)(this,"interval",f,this),(0,_.default)(this,"data",d,this),(0,_.default)(this,"from",p,this),(0,_.default)(this,"total",m,this),(0,_.default)(this,"size",h,this),(0,_.default)(this,"namespaces",v,this),(0,_.default)(this,"logsCount",g,this),(0,_.default)(this,"headers",y,this),(0,_.default)(this,"changeTimeRang",E,this),Object.getOwnPropertyNames(r).forEach((function(e){a[e]=r[e]})),this.headers={"X-Remote-User":e.globals.user.username}}var a,r,n;return(0,S.default)(t,[{key:"fetchUrl",value:function(){return"kapis/logging.kubesphere.io/v1alpha2/events"}},{key:"fetchTodayHistogram",value:(n=(0,b.default)(l.default.mark((function e(){var t,a,r,n,o,i,c,s=arguments;return l.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=s.length>0&&void 0!==s[0]?s[0]:{},a=t.cluster,r=(0,u.default)(t,["cluster"]),this.isLoading=!0,n={operation:"statistics",start_time:Math.ceil((0,R.default)().startOf("day").valueOf()/1e3),end_time:Math.ceil(Date.now()/1e3),interval:this.interval,cluster:a},e.next=5,(0,T.to)(request.get(this.fetchUrl(),(0,k.default)(n,r),{headers:this.headers}));case 5:o=e.sent,i=o.statistics,c=void 0===i?{}:i,this.isLoading=!1,this.histogramTodayData=c;case 10:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"fetchHistogram",value:(r=(0,b.default)(l.default.mark((function e(){var t,a,r,n,o,i,c,s=arguments;return l.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=s.length>0&&void 0!==s[0]?s[0]:{},a=t.cluster,r=(0,u.default)(t,["cluster"]),this.isLoading=!0,n={operation:"histogram",start_time:Math.ceil(Date.now()/1e3)-43200,end_time:Math.ceil(Date.now()/1e3),interval:this.interval,cluster:a},e.next=5,(0,T.to)(request.get(this.fetchUrl(),(0,k.default)(n,r),{headers:this.headers}));case 5:o=e.sent,i=o.histogram,c=void 0===i?{}:i,this.logsCount=c.total||0,this.isLoading=!1,this.histogramData=c;case 11:case"end":return e.stop()}}),e,this)}))),function(){return r.apply(this,arguments)})},{key:"fetchQuery",value:(a=(0,b.default)(l.default.mark((function e(){var t,a,r,n,o,i,c,s,f,d=arguments;return l.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=d.length>0&&void 0!==d[0]?d[0]:{},a=t.cluster,r=(0,u.default)(t,["cluster"]),n=d.length>1&&void 0!==d[1]?d[1]:{},this.isLoading=!0,o={operation:"query",from:this.from,size:this.size,cluster:a},i=(0,k.default)(o,r),e.next=7,(0,T.to)(request.get(this.fetchUrl(),i),{headers:this.headers});case 7:c=e.sent,s=(0,N.default)(c,"query",{}),f=this.stripAnsiRecords(s.records||[]),this.data=n.loadMore?this.data.concat(f):f,this.total=s.total||0,this.isLoading=!1,this.from=i.from,this.size=i.size,this.preParams=i;case 16:case"end":return e.stop()}}),e,this)}))),function(){return a.apply(this,arguments)})},{key:"stripAnsiRecords",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.map((function(e){return M(M({},e),{},{logStripANSI:(0,w.default)(e.log)})}))}}]),t}(),i=(0,C.default)(o.prototype,"isLoading",[D.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),c=(0,C.default)(o.prototype,"histogramTodayData",[D.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),s=(0,C.default)(o.prototype,"histogramData",[D.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),f=(0,C.default)(o.prototype,"interval",[D.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return"30m"}}),d=(0,C.default)(o.prototype,"data",[D.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),p=(0,C.default)(o.prototype,"from",[D.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),m=(0,C.default)(o.prototype,"total",[D.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),h=(0,C.default)(o.prototype,"size",[D.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 10}}),v=(0,C.default)(o.prototype,"namespaces",[D.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),g=(0,C.default)(o.prototype,"logsCount",[D.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),y=(0,C.default)(o.prototype,"headers",[D.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),E=(0,C.default)(o.prototype,"changeTimeRang",[D.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(t){e.time_rang=t,e.fetchQuery()}}}),(0,C.default)(o.prototype,"fetchTodayHistogram",[D.action],Object.getOwnPropertyDescriptor(o.prototype,"fetchTodayHistogram"),o.prototype),(0,C.default)(o.prototype,"fetchHistogram",[D.action],Object.getOwnPropertyDescriptor(o.prototype,"fetchHistogram"),o.prototype),(0,C.default)(o.prototype,"fetchQuery",[D.action],Object.getOwnPropertyDescriptor(o.prototype,"fetchQuery"),o.prototype),o);t.default=P}).call(this,a(69))},function(e,a,r){"use strict";r(15),r(4),r(22);var n=r(20);r(18),r(10),r(24),r(62),Object.defineProperty(a,"__esModule",{value:!0}),a.toArray=function e(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=[],n=Object.keys(t),l=a+1,i=0,c=n.length;i0&&void 0!==arguments[0]?arguments[0]:{};(0,C.default)(this,t),(0,S.default)(this,"isLoading",i,this),(0,S.default)(this,"isHistogramTodayLoading",c,this),(0,S.default)(this,"isHistogramLoading",s,this),(0,S.default)(this,"histogramTodayData",f,this),(0,S.default)(this,"histogramData",d,this),(0,S.default)(this,"interval",p,this),(0,S.default)(this,"data",m,this),(0,S.default)(this,"from",h,this),(0,S.default)(this,"total",v,this),(0,S.default)(this,"size",g,this),(0,S.default)(this,"namespaces",y,this),(0,S.default)(this,"logsCount",E,this),(0,S.default)(this,"headers",b,this),(0,S.default)(this,"changeTimeRang",_,this),Object.getOwnPropertyNames(r).forEach((function(e){a[e]=r[e]})),this.headers={"X-Remote-User":e.globals.user.username}}var a,r,n;return(0,D.default)(t,[{key:"fetchUrl",value:function(){return"kapis/logging.kubesphere.io/v1alpha2/auditing"}},{key:"fetchTodayHistogram",value:(n=(0,O.default)(l.default.mark((function e(){var t,a,r,n,o,i,c,s=arguments;return l.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=s.length>0&&void 0!==s[0]?s[0]:{},a=t.cluster,r=(0,u.default)(t,["cluster"]),this.isLoading=!0,this.isHistogramTodayLoading=!0,n={operation:"statistics",start_time:Math.ceil((0,I.default)().startOf("day").valueOf()/1e3),end_time:Math.ceil(Date.now()/1e3),interval:this.interval,cluster:a},e.next=6,(0,w.to)(request.get(this.fetchUrl(),(0,T.default)(n,r),{headers:this.headers}));case 6:o=e.sent,i=o.statistics,c=void 0===i?{}:i,this.isLoading=!1,this.isHistogramTodayLoading=!1,this.histogramTodayData=c;case 12:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"fetchHistogram",value:(r=(0,O.default)(l.default.mark((function e(){var t,a,r,n,o,i,c,s=arguments;return l.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=s.length>0&&void 0!==s[0]?s[0]:{},a=t.cluster,r=(0,u.default)(t,["cluster"]),this.isLoading=!0,this.isHistogramLoading=!0,n={operation:"histogram",start_time:Math.ceil(Date.now()/1e3)-43200,end_time:Math.ceil(Date.now()/1e3),interval:this.interval,cluster:a},e.next=6,(0,w.to)(request.get(this.fetchUrl(),(0,T.default)(n,r),{headers:this.headers}));case 6:o=e.sent,i=o.histogram,c=void 0===i?{}:i,this.logsCount=c.total||0,this.isLoading=!1,this.isHistogramLoading=!1,this.histogramData=c;case 13:case"end":return e.stop()}}),e,this)}))),function(){return r.apply(this,arguments)})},{key:"fetchQuery",value:(a=(0,O.default)(l.default.mark((function e(){var t,a,r,n,o,i,c,s,f,d=arguments;return l.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=d.length>0&&void 0!==d[0]?d[0]:{},a=t.cluster,r=(0,u.default)(t,["cluster"]),n=d.length>1&&void 0!==d[1]?d[1]:{},this.isLoading=!0,o={operation:"query",from:this.from,size:this.size,cluster:a},i=(0,T.default)(o,r),e.next=7,(0,w.to)(request.get(this.fetchUrl(),i,{headers:this.headers}));case 7:c=e.sent,s=(0,R.default)(c,"query",{}),f=this.stripAnsiRecords(s.records||[]),this.data=n.loadMore?this.data.concat(f):f,this.total=s.total||0,this.isLoading=!1,this.from=i.from,this.size=i.size,this.preParams=i;case 16:case"end":return e.stop()}}),e,this)}))),function(){return a.apply(this,arguments)})},{key:"stripAnsiRecords",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.map((function(e){return A(A({},e),{},{logStripANSI:(0,M.default)(e.log)})}))}}]),t}(),i=(0,k.default)(o.prototype,"isLoading",[N.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),c=(0,k.default)(o.prototype,"isHistogramTodayLoading",[N.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),s=(0,k.default)(o.prototype,"isHistogramLoading",[N.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),f=(0,k.default)(o.prototype,"histogramTodayData",[N.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),d=(0,k.default)(o.prototype,"histogramData",[N.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),p=(0,k.default)(o.prototype,"interval",[N.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return"30m"}}),m=(0,k.default)(o.prototype,"data",[N.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),h=(0,k.default)(o.prototype,"from",[N.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),v=(0,k.default)(o.prototype,"total",[N.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),g=(0,k.default)(o.prototype,"size",[N.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 10}}),y=(0,k.default)(o.prototype,"namespaces",[N.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),E=(0,k.default)(o.prototype,"logsCount",[N.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),b=(0,k.default)(o.prototype,"headers",[N.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),_=(0,k.default)(o.prototype,"changeTimeRang",[N.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(t){e.time_rang=t,e.fetchQuery()}}}),(0,k.default)(o.prototype,"fetchTodayHistogram",[N.action],Object.getOwnPropertyDescriptor(o.prototype,"fetchTodayHistogram"),o.prototype),(0,k.default)(o.prototype,"fetchHistogram",[N.action],Object.getOwnPropertyDescriptor(o.prototype,"fetchHistogram"),o.prototype),(0,k.default)(o.prototype,"fetchQuery",[N.action],Object.getOwnPropertyDescriptor(o.prototype,"fetchQuery"),o.prototype),o);t.default=j}).call(this,a(69))},function(e,a,r){"use strict";r(15),r(4),r(22);var n=r(20);r(18),r(10),r(24),r(62),Object.defineProperty(a,"__esModule",{value:!0}),a.toArray=function e(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=[],n=Object.keys(t),l=a+1,i=0,c=n.length;i1&&void 0!==arguments[1]?arguments[1]:{},a=function(a){(0,i.default)(c,a);var r=h(c);function c(){return(0,u.default)(this,c),r.apply(this,arguments)}return(0,o.default)(c,[{key:"pageClose",value:function(){window.opener=null,window.open("","_self",""),window.close()}},{key:"render",value:function(){var a=this.props,r=a.title,u=a.onCancel,o=a.icon,i=a.description,c=(0,l.default)(a,["title","onCancel","icon","description"]);return f.default.createElement(d.default,{visible:!0,fullScreen:!0,hideFooter:!0,title:r,icon:o,description:i,onCancel:u,className:m.default.container,headerClassName:m.default.header,bodyClassName:(0,p.default)(m.default.body,m.default.fullScreen)},f.default.createElement(e,(0,n.default)({onCancel:t.isSinglePage?this.pageClose:u},c)))}}]),c}(f.default.Component);return a},a(12),a(109),a(45),a(42),a(4),a(23),a(57),a(17);var n=r(a(315)),l=r(a(58)),u=r(a(36)),o=r(a(37)),i=r(a(55)),c=r(a(56)),s=r(a(51)),f=r(a(0)),d=r(a(787)),p=r(a(3)),m=r(a(3549));function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,s.default)(e);if(t){var n=(0,s.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,c.default)(this,a)}}},function(e,t,a){"use strict";var r=a(20);a(12),a(5),a(11),a(6),a(9),a(13),a(10),a(7),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(12),a(5),a(11),a(6),a(28),a(34),a(15),a(9),a(13),a(10),a(4),a(22),a(7);var n=r(a(30)),l=r(a(43));a(41);var u,o,i,c,s,f=r(a(44)),d=r(a(65)),p=r(a(36)),m=r(a(37)),h=r(a(49)),v=(r(a(66)),a(14)),g=r(a(26)),y=r(a(902));function E(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function b(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.cluster;return t?"/klusters/".concat(t):""}},{key:"kubeWebsocketUrl",value:(r=(0,f.default)(l.default.mark((function e(){var t,a,r,n,u,o,i,c;return l.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=this.kubectl,a=t.cluster,r=t.namespace,n=t.nodename,u=t.pod,o=t.container,i=t.shell,c=void 0===i?"sh":i,!n){e.next=3;break}return e.abrupt("return","kapis/terminal.kubesphere.io/v1alpha2".concat(this.getClusterPath({cluster:a}),"/nodes/").concat(n,"/exec"));case 3:return e.next=5,request.get("kapis/terminal.kubesphere.io/v1alpha2".concat(this.getClusterPath({cluster:a}),"/namespaces/").concat(r,"/pods/").concat(u,"/exec?container=").concat(o,"&shell=").concat(c),null,null,(function(e){return 404!==e.status}));case 5:if(e.sent){e.next=8;break}return e.abrupt("return","kapis/terminal.kubesphere.io/v1alpha2".concat(this.getClusterPath({cluster:a}),"/namespaces/").concat(r,"/pods/").concat(u,"?container=").concat(o,"&shell=").concat(c));case 8:return e.abrupt("return","kapis/terminal.kubesphere.io/v1alpha2".concat(this.getClusterPath({cluster:a}),"/namespaces/").concat(r,"/pods/").concat(u,"/exec?container=").concat(o,"&shell=").concat(c));case 9:case"end":return e.stop()}}),e,this)}))),function(){return r.apply(this,arguments)})},{key:"fetchKubeCtl",value:(a=(0,f.default)(l.default.mark((function e(t){var a;return l.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:a=t.cluster,this.kubectl.isLoading=!0,this.kubectl=b(b({},this.kubectl),{},{cluster:a,isLoading:!1});case 3:case"end":return e.stop()}}),e,this)}))),function(e){return a.apply(this,arguments)})},{key:"fetchKubeConfig",value:(t=(0,f.default)(l.default.mark((function e(t){var a;return l.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,request.get("kapis/resources.kubesphere.io/v1alpha2".concat(this.getClusterPath(t),"/users/").concat(this.username,"/kubeconfig"));case 2:a=e.sent,this.kubeconfig=a;case 4:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})},{key:"connect",value:function(){this.connected=!0}},{key:"disconnect",value:function(){this.connected=!1}}]),e}(),o=(0,h.default)(u.prototype,"kubectl",[v.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{cluster:"",namespace:"",pod:"",container:"",nodename:"",shell:"bash",isLoading:!0}}}),i=(0,h.default)(u.prototype,"kubeconfig",[v.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),c=(0,h.default)(u.prototype,"connected",[v.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),(0,h.default)(u.prototype,"fetchKubeCtl",[v.action],Object.getOwnPropertyDescriptor(u.prototype,"fetchKubeCtl"),u.prototype),s=(0,h.default)(u.prototype,"setNodename",[v.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(t){e.kubectl.nodename=t}}}),(0,h.default)(u.prototype,"fetchKubeConfig",[v.action],Object.getOwnPropertyDescriptor(u.prototype,"fetchKubeConfig"),u.prototype),(0,h.default)(u.prototype,"connect",[v.action],Object.getOwnPropertyDescriptor(u.prototype,"connect"),u.prototype),(0,h.default)(u.prototype,"disconnect",[v.action],Object.getOwnPropertyDescriptor(u.prototype,"disconnect"),u.prototype),u);t.default=_},function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(42),r(4),r(23),r(57),r(17);var l,u=n(r(36)),o=n(r(37)),i=n(r(55)),c=n(r(56)),s=n(r(51)),f=n(r(0)),d=r(239),p=n(r(3)),m=r(909),h=n(r(1777)),v=n(r(1776)),g=r(186),y=n(r(841)),E=n(r(26)),b=r(52),_=n(r(1778)),O=n(r(3551));function S(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,s.default)(e);if(t){var n=(0,s.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,c.default)(this,a)}}var C=(0,h.default)(l=(0,d.observer)(l=function(e){(0,i.default)(r,e);var a=S(r);function r(){var e;(0,u.default)(this,r);for(var t=arguments.length,n=new Array(t),l=0;l0&&void 0!==arguments[0]?arguments[0]:{},a=t.start,r=t.end,n=t.step,l=void 0===n?"1h":n,u=t.resources,o=void 0===u?[]:u,i=t.meters,c=void 0===i?[]:i,s=t.module,d=t.isTime,p=void 0!==d&&d,m=t.deployments,h=t.statefulsets,v=t.daemonsets,g=t.nodes,y=t.pods,E=(0,f.default)(t,["start","end","step","resources","meters","module","isTime","deployments","statefulsets","daemonsets","nodes","pods"]),b=(0,S.default)(w({},E),(0,D.getTimeParams)({start:a,end:r,step:l,isTime:p}),(0,D.getMetricsFilters)({module:s,meters:c}),(0,D.getResourceFilters)({module:s,resources:o}),(0,D.handleWorkloadToKind)({deployments:m,statefulsets:h,daemonsets:v}),(0,D.handleNodeParams)({nodes:g,pods:y,resources:o,module:s}));return e.setParams(b)},e.setParams=function(e){return e},e.getResource=function(e){var t=e.cluster,a=e.workspaces,r=e.namespaces,n=e.applications,l=e.openpitrixs,u=e.services,o=e.deployments,i=e.statefulsets,c=e.daemonsets,s=e.nodes,f=e.pods,d={cluster:t,namespaces:r,workspaces:a};return f?w({pods:f,nodes:s||void 0},d):s?w({nodes:s},d):o||i||c?w({deployments:o,statefulsets:i,daemonsets:c},d):u?w({services:u},d):l?w({openpitrixs:l},d):n?w({applications:n},d):d},e.setOneSourceAllMeterByType=function(e,t){var a=e.data,r=e.metric_name,n=(0,O.default)(a,"result.0",{});return w({type:r,module:k.RESOURCES_METER_TYPE[t]},n)},e.getOneSourceAllMeterData=function(e,t,a){return t.start&&(e.start=1e3*t.start),t.end&&(e.end=1e3*t.end),t.step&&(e.step=(0,T.getTimeStr)(t.step)),e.values=(0,D.fillEmptyMeterValue)({start:t.start,end:t.end,step:t.step.slice(0,-1)},e.values),(0,D.handleValueByUnit)(e,a)},e.handleAllMeterData=function(t,a,r){var n=t.results.map((function(t){if(t.data.result){var n=e.setOneSourceAllMeterByType(t,r);return e.getOneSourceAllMeterData(n,a,r)}return!1}));return(0,D.handleSortBySourceType)(n)},e.handleOneMeterData=function(e,t){var a=e.results[0],r=(0,O.default)(a,"data.result",[]),n=(0,O.default)(a,"metric_name",""),l=[];return(0,_.default)(r)||(l=r.map((function(e){return e=w({type:n,module:k.RESOURCES_METER_TYPE[t]},e),(0,D.handleValueByUnit)(e,t)}))),l},(0,d.default)(e,"fetchPrice",i,(0,h.default)(e)),e}return(0,m.default)(r,[{key:"getPaths",value:function(e){var t=e.cluster,a=e.workspaces,r=e.namespaces,n=e.applications,l=e.services,u=e.deployments,o=e.statefulsets,i=e.openpitrixs,c=e.daemonsets,s=e.pods,f=e.nodes,d=e.module,p="";return t&&(p+="cluster"===d?"/cluster":""),a&&(p+="/workspaces/".concat(a)),(r||"namespaces"===d)&&(p+="namespaces"===d?"/namespaces":"/namespaces/".concat(r)),n&&(p+="/applications"),i&&!l&&(p+="/openpitrixs"),l&&(p+="/services"),!s&&(u||o||c)&&(p+="/workloads"),f&&!s&&(p+="/nodes"),f&&s&&(p+="/nodes/".concat(f)),s&&(p+="/pods"),p}},{key:"fetchMeter",value:(t=(0,c.default)(n.default.mark((function e(){var t,a,r,l,u,o,i,c,s,d,p,m,h,v,g,y,E,O,S,C,k,N=arguments;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=N.length>0&&void 0!==N[0]?N[0]:{},a=t.cluster,r=t.workspaces,l=t.namespaces,u=t.openpitrixs,o=t.applications,i=t.services,c=t.deployments,s=t.statefulsets,d=t.daemonsets,p=t.pods,m=t.nodes,h=(0,f.default)(t,["cluster","workspaces","namespaces","openpitrixs","applications","services","deployments","statefulsets","daemonsets","pods","nodes"]),this.isLoading=!0,v="",g={},this.cluster=a,y=this.getResource({cluster:a,workspaces:r,namespaces:l,openpitrixs:u,applications:o,services:i,deployments:c,statefulsets:s,daemonsets:d,pods:p,nodes:m}),g=h.operation?this.getExportParams(w(w({},y),h)):this.getParams(w({deployments:c,statefulsets:s,daemonsets:d,pods:p,nodes:m},h)),"namespaces"===h.module?(v=this.getTenantApi(w({module:h.module},y)),E=y.workspaces&&y.namespaces?{workspaces:y.workspaces}:{},g=w(w(w({},g),E),(0,D.handleLevelParams)({module:h.module}))):v=this.getApi(w({module:h.module},y)),"openpitrixs"===h.module&&(g.cluster=this.cluster),e.next=11,request.get(v,g,{},(function(){return[]}));case 11:if(O=e.sent,this.isLoading=!1,!h.operation){e.next=15;break}return e.abrupt("return",O);case 15:if((0,_.default)(O)||!(0,b.default)(O.results)){e.next=24;break}if(S=h.module,"all"!==h.meters){e.next=21;break}return C=this.handleAllMeterData(O,g,S),this.data=C,e.abrupt("return",C);case 21:return k=this.handleOneMeterData(O,S),this.data=k,e.abrupt("return",k);case 24:return this.data=[],e.abrupt("return",[]);case 26:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})},{key:"apiVersion",get:function(){return globals.app.isMultiCluster&&this.cluster?"kapis/clusters/".concat(this.cluster,"/metering.kubesphere.io/v1alpha1"):"kapis/metering.kubesphere.io/v1alpha1"}}]),r}(r(a(68)).default),u=(0,E.default)(l.prototype,"isLoading",[C.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),o=(0,E.default)(l.prototype,"data",[C.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),(0,E.default)(l.prototype,"fetchMeter",[C.action],Object.getOwnPropertyDescriptor(l.prototype,"fetchMeter"),l.prototype),i=(0,E.default)(l.prototype,"fetchPrice",[C.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(){var t=(0,c.default)(n.default.mark((function t(a){var r,l,u,o;return n.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=a.cluster,l="".concat(e.tenantUrl({cluster:r}),"/metering/price"),t.next=4,request.get(l,{},{},(function(){}));case 4:if(!(u=t.sent)||(0,_.default)(u)){t.next=13;break}if(!Object.values(u).some((function(e){return"number"==typeof e&&e<0}))&&""!==u.currency){t.next=9;break}return t.abrupt("return",{cluster:r});case 9:return o={},Object.keys(u).forEach((function(e){!["currency","retention_day"].includes(e)&&u[e]>0&&(o[k.FEE_CONFIG[e]]=u[e])})),(0,_.default)(o)||(o.currency=u.currency,o.retention_day=(0,O.default)(u,"retention_day","7d"),o.cluster=r||(0,O.default)(N.DEFAULT_CLUSTER,"metadata.name")),t.abrupt("return",o);case 13:return t.abrupt("return",{cluster:r});case 14:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()}}),l);t.default=M},,,,,,,,function(e,a,r){"use strict";var n=r(20),l=r(157);r(12),r(5),r(11),r(31),r(6),r(84),r(73),r(18),r(97),r(16),r(9),r(13),r(10),r(4),r(23),r(17),r(85),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(45),r(5),r(11),r(31),r(6),r(84),r(73),r(18),r(28),r(97),r(42),r(16),r(34),r(15),r(9),r(13),r(10),r(4),r(22),r(23),r(57),r(17),r(85),r(7);var u=n(r(43));r(41);var o,i=n(r(44)),c=n(r(61)),s=n(r(30)),f=n(r(36)),d=n(r(37)),p=n(r(55)),m=n(r(56)),h=n(r(51)),v=l(r(0)),g=n(r(3)),y=n(r(63)),E=n(r(189)),b=n(r(1029)),_=r(14),O=r(239),S=r(186),C=n(r(814)),D=n(r(438)),k=n(r(915)),N=n(r(790)),T=r(924),R=n(r(945)),w=n(r(874)),I=n(r(3665));function M(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function P(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,a=e.group,r=e.tags,n=void 0===r?[]:r;return a&&(a="cluster.kubesphere.io/group=".concat(a)),n=n.map((function(e){return"label.cluster.kubesphere.io/".concat(e)})),P(P({},(0,E.default)(e,"group","tags","__index")),{},{labelSelector:[a].concat((0,c.default)(n),[t]).filter(Boolean).join(",")})},e.handleClick=function(t){var a,r=e.props,n=r.value,l=void 0===n?[]:n,u=r.onChange,o=t.currentTarget.dataset.cluster;a=l.some((function(e){return e.name===o}))?l.filter((function(e){return e.name!==o})):[].concat((0,c.default)(l),[{name:o}]),e.setState({showTip:a.some((function(t){return e.state.hostClusters.includes(t.name)}))}),u(a)},e.handleCheckboxClick=function(e){return e.stopPropagation()},e.clearFilter=function(){e.setState({filters:{}}),e.fetchData()},e.handleReset=function(){var t=e.state.filters;e.fetchData(t)},e.sortClusters=function(e){var t=e.filter((function(e){return e&&e.isHost})),a=e.filter((function(e){return e&&!e.isHost}));return[].concat((0,c.default)(t),(0,c.default)(a))},e}return(0,d.default)(n,[{key:"componentDidMount",value:function(){this.fetchData(),this.tagsStore.fetchGroupList()}},{key:"fetchData",value:(a=(0,i.default)(u.default.mark((function e(){var t,a,r=arguments;return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=r.length>0&&void 0!==r[0]?r[0]:{},a="!cluster-role.kubesphere.io/edge",!globals.app.hasPermission({module:"clusters",action:"manage"})){e.next=7;break}return e.next=5,this.clusterStore.fetchList(P({limit:-1},this.getParams(t,a)));case 5:e.next=9;break;case 7:return e.next=9,this.clusterStore.fetchGrantedList(P({limit:-1},this.getParams(t,a)));case 9:this.setState({hostClusters:this.clusterStore.list.data.filter((function(e){return e.isHost})).map((function(e){return e.name}))});case 10:case"end":return e.stop()}}),e,this)}))),function(){return a.apply(this,arguments)})},{key:"render",value:function(){var e=this,a=this.props,r=a.value,n=void 0===r?[]:r,l=a.noTip,u=void 0!==l&&l,o=this.state.filters,i=(0,_.toJS)(this.clusterStore.list),c=i.data,f=i.isLoading;if((0,y.default)(c)&&(0,y.default)(o)&&!f)return v.default.createElement(S.Alert,{type:"warning",message:t("NO_CLUSTER_AVAILABLE_DESC",{type:t("KS_CLUSTER")})});var d=(0,b.default)(this.sortClusters(c),(function(e){return globals.app.hasClusterModule(e.name,"whizard-monitoring")}));return v.default.createElement("div",{className:I.default.wrapper},this.state.showTip&&!u&&v.default.createElement(S.Alert,{className:"margin-b12",type:"warning",message:t("SELECT_HOST_CLUSTER_WARNING")}),v.default.createElement("div",null,v.default.createElement("div",{className:"margin-b12"},v.default.createElement(k.default,{placeholder:t("SEARCH_BY_NAME"),columns:this.columns,onChange:function(t){e.setState({filters:t}),e.fetchData(t)},filters:this.state.filters}))),d.map((function(a){var r;return v.default.createElement("div",{key:a.name,className:(0,g.default)(I.default.item,(0,s.default)({},I.default.disabled,!globals.app.isMultiCluster)),"data-cluster":a.name,onClick:globals.app.isMultiCluster?e.handleClick:null},v.default.createElement(S.Checkbox,{checked:n.some((function(e){return e.name===a.name})),disabled:!globals.app.isMultiCluster,onClick:e.handleCheckboxClick}),v.default.createElement(C.default,{className:I.default.cluster,cluster:a,noTip:!0}),v.default.createElement(N.default,{title:v.default.createElement(T.ClusterTagGroup,{data:(null!==(r=a.tags)&&void 0!==r?r:[]).map((function(t){return(e.tagsStore.tags||[]).find((function(e){return t.name===e.name}))})).filter(Boolean),empty:"-"}),description:t("TAG_PL")}))})),f&&v.default.createElement(S.Loading,{size:"large",className:I.default.loading}),(0,y.default)(c)&&v.default.createElement(w.default,{icon:"exclamation",title:t("NO_MATCHING_RESULT_FOUND"),desc:null,action:v.default.createElement("p",null,t("YOU_CAN_TRY_TO"),v.default.createElement("span",{className:I.default.action,onClick:this.handleReset,"data-test":"table-empty-refresh"},t("REFRESH_DATA")),t("OR"),v.default.createElement("span",{className:I.default.action,onClick:this.clearFilter,"data-test":"table-empty-clear-filter"},t("CLEAR_SEARCH_CONDITIONS")))}))}},{key:"columns",get:function(){var e,a;return[{dataIndex:"name",title:t("NAME"),search:!0},{dataIndex:"alias",title:t("ALIAS"),search:!0},{dataIndex:"group",title:t("TYPE"),search:!0,filters:(null!==(e=this.tagsStore.group)&&void 0!==e?e:[]).map((function(e){return{text:e,value:e}})),renderSearch:function(e){return v.default.createElement("div",{className:"flex"},v.default.createElement("div",{className:(0,g.default)(I.default.clusterGroupTag,(0,s.default)({},I.default[e.key],!0))},t("ENV_".concat(e.label.toUpperCase()))),e.label)}},{dataIndex:"tags",title:t("TAG_PL"),filters:(null!==(a=this.tagsStore.tags)&&void 0!==a?a:[]).map((function(e){return{text:"".concat(e.label,":").concat(e.value),value:e.name}})),search:!0,multi:!0,renderSearch:function(e){return v.default.createElement("div",null,e.label)}}]}}]),n}(v.Component))||o;a.default=j},,,function(e,t,a){"use strict";a.r(t),a.d(t,"ReactComponent",(function(){return g}));var r=a(315),n=a.n(r),l=a(0),u=a.n(l),o=u.a.createElement("path",{transform:"matrix(.86603 -.5 0 1 9.11 14.822)",stroke:"#A5EAE3",strokeWidth:.6,strokeDasharray:"1.8 1.8",d:"M0 0h18.294v18.431H0z"}),i=u.a.createElement("path",{d:"M40.797 33.116l-15.843 9.147L8.91 32.999M9.004 14.452l16.142 9.835",stroke:"#A5EAE3",strokeWidth:.6,strokeDasharray:"1.8 1.8"}),c=u.a.createElement("mask",{id:"a",fill:"#fff"},u.a.createElement("rect",{width:10.297,height:10.297,rx:.6})),s=u.a.createElement("rect",{width:10.297,height:10.297,rx:.6,transform:"matrix(-.86603 -.5 0 1 15.146 27.033)",fill:"url(#paint0_linear_14176_514037)",stroke:"#119E8F",strokeWidth:3.6,mask:"url(#a)"}),f=u.a.createElement("path",{d:"M24.853 24.114l-.047 18.54",stroke:"#A5EAE3",strokeWidth:.6,strokeDasharray:"1.8 1.8"}),d=u.a.createElement("mask",{id:"b",fill:"#fff"},u.a.createElement("rect",{width:20.352,height:20.352,rx:.6})),p=u.a.createElement("rect",{width:20.352,height:20.352,rx:.6,transform:"matrix(-.86603 -.5 0 1 41.77 14.376)",fill:"url(#paint1_linear_14176_514037)",stroke:"#119E8F",strokeWidth:3.6,mask:"url(#b)"}),m=u.a.createElement("circle",{cx:9.15,cy:14.702,r:1.537,fill:"url(#paint2_linear_14176_514037)"}),h=u.a.createElement("circle",{cx:24.953,cy:42.263,r:1.537,fill:"url(#paint3_linear_14176_514037)"}),v=u.a.createElement("defs",null,u.a.createElement("linearGradient",{id:"paint0_linear_14176_514037",x1:5.149,y1:10.297,x2:5.149,y2:-.236,gradientUnits:"userSpaceOnUse"},u.a.createElement("stop",{stopColor:"#16D2BF"}),u.a.createElement("stop",{offset:1,stopColor:"#fff"})),u.a.createElement("linearGradient",{id:"paint1_linear_14176_514037",x1:10.176,y1:20.352,x2:10.176,y2:-.466,gradientUnits:"userSpaceOnUse"},u.a.createElement("stop",{stopColor:"#16D2BF"}),u.a.createElement("stop",{offset:1,stopColor:"#fff"})),u.a.createElement("linearGradient",{id:"paint2_linear_14176_514037",x1:8.21,y1:14.054,x2:8.21,y2:16.239,gradientUnits:"userSpaceOnUse"},u.a.createElement("stop",{stopColor:"#36D6C4"}),u.a.createElement("stop",{offset:1,stopColor:"#15BEAC"})),u.a.createElement("linearGradient",{id:"paint3_linear_14176_514037",x1:24.013,y1:41.615,x2:24.013,y2:43.8,gradientUnits:"userSpaceOnUse"},u.a.createElement("stop",{stopColor:"#36D6C4"}),u.a.createElement("stop",{offset:1,stopColor:"#15BEAC"}))),g=function(e){return u.a.createElement("svg",n()({viewBox:"0 0 48 48",fill:"none",width:"1em",height:"1em"},e),o,i,c,s,f,d,p,m,h,v)};t.default="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDgiIGhlaWdodD0iNDgiIHZpZXdCb3g9IjAgMCA0OCA0OCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICAgIDxyZWN0IHdpZHRoPSIxOC4yOTQiIGhlaWdodD0iMTguNDMxMiIgdHJhbnNmb3JtPSJtYXRyaXgoMC44NjYwMjUgLTAuNSAyLjIwMzA1ZS0wOCAxIDkuMTEwMDQgMTQuODIxOCkiCiAgICAgICAgICBzdHJva2U9IiNBNUVBRTMiIHN0cm9rZS13aWR0aD0iMC42IiBzdHJva2UtZGFzaGFycmF5PSIxLjggMS44Ii8+CiAgICA8cGF0aCBkPSJNNDAuNzk2OCAzMy4xMTU2TDI0Ljk1MzggNDIuMjYyNkw4LjkwOTY1IDMyLjk5OTUiIHN0cm9rZT0iI0E1RUFFMyIgc3Ryb2tlLXdpZHRoPSIwLjYiCiAgICAgICAgICBzdHJva2UtZGFzaGFycmF5PSIxLjggMS44Ii8+CiAgICA8cGF0aCBkPSJNOS4wMDM3MyAxNC40NTE3TDI1LjE0NTggMjQuMjg3MSIgc3Ryb2tlPSIjQTVFQUUzIiBzdHJva2Utd2lkdGg9IjAuNiIgc3Ryb2tlLWRhc2hhcnJheT0iMS44IDEuOCIvPgogICAgPG1hc2sgaWQ9InBhdGgtNC1pbnNpZGUtMV8xNDE3Nl81MTQwMzciIGZpbGw9IndoaXRlIj4KICAgICAgICA8cmVjdCB3aWR0aD0iMTAuMjk3MiIgaGVpZ2h0PSIxMC4yOTcyIiByeD0iMC42Ii8+CiAgICA8L21hc2s+CiAgICA8cmVjdCB3aWR0aD0iMTAuMjk3MiIgaGVpZ2h0PSIxMC4yOTcyIiByeD0iMC42IiB0cmFuc2Zvcm09Im1hdHJpeCgtMC44NjYwMjUgLTAuNSAtMi4yMDMwNWUtMDggMSAxNS4xNDY1IDI3LjAzMzIpIgogICAgICAgICAgZmlsbD0idXJsKCNwYWludDBfbGluZWFyXzE0MTc2XzUxNDAzNykiIHN0cm9rZT0iIzExOUU4RiIgc3Ryb2tlLXdpZHRoPSIzLjYiCiAgICAgICAgICBtYXNrPSJ1cmwoI3BhdGgtNC1pbnNpZGUtMV8xNDE3Nl81MTQwMzcpIi8+CiAgICA8cGF0aCBkPSJNMjQuODUzMyAyNC4xMTM4TDI0LjgwNjUgNDIuNjU0OCIgc3Ryb2tlPSIjQTVFQUUzIiBzdHJva2Utd2lkdGg9IjAuNiIgc3Ryb2tlLWRhc2hhcnJheT0iMS44IDEuOCIvPgogICAgPG1hc2sgaWQ9InBhdGgtNi1pbnNpZGUtMl8xNDE3Nl81MTQwMzciIGZpbGw9IndoaXRlIj4KICAgICAgICA8cmVjdCB3aWR0aD0iMjAuMzUxNyIgaGVpZ2h0PSIyMC4zNTE3IiByeD0iMC42Ii8+CiAgICA8L21hc2s+CiAgICA8cmVjdCB3aWR0aD0iMjAuMzUxNyIgaGVpZ2h0PSIyMC4zNTE3IiByeD0iMC42IiB0cmFuc2Zvcm09Im1hdHJpeCgtMC44NjYwMjUgLTAuNSAtMi4yMDMwNWUtMDggMSA0MS43NzA4IDE0LjM3NTcpIgogICAgICAgICAgZmlsbD0idXJsKCNwYWludDFfbGluZWFyXzE0MTc2XzUxNDAzNykiIHN0cm9rZT0iIzExOUU4RiIgc3Ryb2tlLXdpZHRoPSIzLjYiCiAgICAgICAgICBtYXNrPSJ1cmwoI3BhdGgtNi1pbnNpZGUtMl8xNDE3Nl81MTQwMzcpIi8+CiAgICA8Y2lyY2xlIGN4PSI5LjE1MDE2IiBjeT0iMTQuNzAxOSIgcj0iMS41Mzc0IiBmaWxsPSJ1cmwoI3BhaW50Ml9saW5lYXJfMTQxNzZfNTE0MDM3KSIvPgogICAgPGNpcmNsZSBjeD0iMjQuOTUzNSIgY3k9IjQyLjI2MjciIHI9IjEuNTM3NCIgZmlsbD0idXJsKCNwYWludDNfbGluZWFyXzE0MTc2XzUxNDAzNykiLz4KICAgIDxkZWZzPgogICAgICAgIDxsaW5lYXJHcmFkaWVudCBpZD0icGFpbnQwX2xpbmVhcl8xNDE3Nl81MTQwMzciIHgxPSI1LjE0ODY0IiB5MT0iMTAuMjk3MiIgeDI9IjUuMTQ4NjQiIHkyPSItMC4yMzU5NTMiCiAgICAgICAgICAgICAgICAgICAgICAgIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIj4KICAgICAgICAgICAgPHN0b3Agc3RvcC1jb2xvcj0iIzE2RDJCRiIvPgogICAgICAgICAgICA8c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IndoaXRlIi8+CiAgICAgICAgPC9saW5lYXJHcmFkaWVudD4KICAgICAgICA8bGluZWFyR3JhZGllbnQgaWQ9InBhaW50MV9saW5lYXJfMTQxNzZfNTE0MDM3IiB4MT0iMTAuMTc1OSIgeTE9IjIwLjM1MTYiIHgyPSIxMC4xNzU5IiB5Mj0iLTAuNDY2MzQxIgogICAgICAgICAgICAgICAgICAgICAgICBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSI+CiAgICAgICAgICAgIDxzdG9wIHN0b3AtY29sb3I9IiMxNkQyQkYiLz4KICAgICAgICAgICAgPHN0b3Agb2Zmc2V0PSIxIiBzdG9wLWNvbG9yPSJ3aGl0ZSIvPgogICAgICAgIDwvbGluZWFyR3JhZGllbnQ+CiAgICAgICAgPGxpbmVhckdyYWRpZW50IGlkPSJwYWludDJfbGluZWFyXzE0MTc2XzUxNDAzNyIgeDE9IjguMjA5NTkiIHkxPSIxNC4wNTQzIiB4Mj0iOC4yMDk1OSIgeTI9IjE2LjIzOTMiCiAgICAgICAgICAgICAgICAgICAgICAgIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIj4KICAgICAgICAgICAgPHN0b3Agc3RvcC1jb2xvcj0iIzM2RDZDNCIvPgogICAgICAgICAgICA8c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiMxNUJFQUMiLz4KICAgICAgICA8L2xpbmVhckdyYWRpZW50PgogICAgICAgIDxsaW5lYXJHcmFkaWVudCBpZD0icGFpbnQzX2xpbmVhcl8xNDE3Nl81MTQwMzciIHgxPSIyNC4wMTMiIHkxPSI0MS42MTUxIiB4Mj0iMjQuMDEzIiB5Mj0iNDMuODAwMSIKICAgICAgICAgICAgICAgICAgICAgICAgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPgogICAgICAgICAgICA8c3RvcCBzdG9wLWNvbG9yPSIjMzZENkM0Ii8+CiAgICAgICAgICAgIDxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iIzE1QkVBQyIvPgogICAgICAgIDwvbGluZWFyR3JhZGllbnQ+CiAgICA8L2RlZnM+Cjwvc3ZnPgo="},function(e,t,a){"use strict";a.r(t),a.d(t,"ReactComponent",(function(){return h}));var r=a(315),n=a.n(r),l=a(0),u=a.n(l),o=u.a.createElement("path",{d:"M38.498 18.155L9.618 34.682M9.66 18.155l28.88 16.527M24.1 10.815v30.89",stroke:"#A5EAE3",strokeWidth:.6,strokeDasharray:"1.8 1.8"}),i=u.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.407 21.99l5.336-3.192-3.348-1.906-5.37 3.134.787.457-.79-.458v5.813l3.385 1.88V21.99z",fill:"url(#paint0_linear_14176_514054)"}),c=u.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M32.458 21.675l-5.335-3.192 3.348-1.906 5.37 3.134-.128.074.13-.075v5.813l-3.385 1.88v-5.728z",fill:"url(#paint1_linear_14176_514054)"}),s=u.a.createElement("path",{d:"M9.618 17.935L24 9.853l14.383 8.082v16.073L24 42 9.618 34.008V17.935z",stroke:"#119E8F",strokeWidth:1.8,strokeLinejoin:"round"}),f=u.a.createElement("path",{d:"M6.989 25.504l8.003 4.47-.035 8.856-8.003-4.47.035-8.856z",fill:"url(#paint2_linear_14176_514054)",stroke:"#119E8F",strokeWidth:1.5}),d=u.a.createElement("path",{d:"M41.011 25.504l-8.003 4.47.035 8.856 8.003-4.47-.035-8.856z",fill:"url(#paint3_linear_14176_514054)",stroke:"#119E8F",strokeWidth:1.5}),p=u.a.createElement("path",{d:"M24.055 5.68l8.992 5.021-8.902 5.016-8.992-5.021 8.902-5.016z",fill:"url(#paint4_linear_14176_514054)",stroke:"#119E8F",strokeWidth:1.5}),m=u.a.createElement("defs",null,u.a.createElement("linearGradient",{id:"paint0_linear_14176_514054",x1:14.714,y1:20.025,x2:14.714,y2:27.717,gradientUnits:"userSpaceOnUse"},u.a.createElement("stop",{stopColor:"#36D6C4"}),u.a.createElement("stop",{offset:1,stopColor:"#15BEAC"})),u.a.createElement("linearGradient",{id:"paint1_linear_14176_514054",x1:35.186,y1:22.251,x2:35.186,y2:27.717,gradientUnits:"userSpaceOnUse"},u.a.createElement("stop",{stopColor:"#36D6C4"}),u.a.createElement("stop",{offset:1,stopColor:"#15BEAC"})),u.a.createElement("linearGradient",{id:"paint2_linear_14176_514054",x1:10.973,y1:40.105,x2:10.973,y2:23.865,gradientUnits:"userSpaceOnUse"},u.a.createElement("stop",{stopColor:"#16D2BF"}),u.a.createElement("stop",{offset:1,stopColor:"#fff"})),u.a.createElement("linearGradient",{id:"paint3_linear_14176_514054",x1:37.027,y1:40.105,x2:37.027,y2:23.865,gradientUnits:"userSpaceOnUse"},u.a.createElement("stop",{stopColor:"#16D2BF"}),u.a.createElement("stop",{offset:1,stopColor:"#fff"})),u.a.createElement("linearGradient",{id:"paint4_linear_14176_514054",x1:24.1,y1:16.577,x2:24.1,y2:4.55,gradientUnits:"userSpaceOnUse"},u.a.createElement("stop",{stopColor:"#16D2BF"}),u.a.createElement("stop",{offset:1,stopColor:"#fff"}))),h=function(e){return u.a.createElement("svg",n()({viewBox:"0 0 48 48",fill:"none",width:"1em",height:"1em"},e),o,i,c,s,f,d,p,m)};t.default="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDgiIGhlaWdodD0iNDgiIHZpZXdCb3g9IjAgMCA0OCA0OCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICAgIDxwYXRoIGQ9Ik0zOC40OTg0IDE4LjE1NUw5LjYxODE2IDM0LjY4MjQiIHN0cm9rZT0iI0E1RUFFMyIgc3Ryb2tlLXdpZHRoPSIwLjYiIHN0cm9rZS1kYXNoYXJyYXk9IjEuOCAxLjgiLz4KICAgIDxwYXRoIGQ9Ik05LjY1OTc2IDE4LjE1NUwzOC41NCAzNC42ODI0IiBzdHJva2U9IiNBNUVBRTMiIHN0cm9rZS13aWR0aD0iMC42IiBzdHJva2UtZGFzaGFycmF5PSIxLjggMS44Ii8+CiAgICA8cGF0aCBkPSJNMjQuMTAwMiAxMC44MTUyVjQxLjcwNTMiIHN0cm9rZT0iI0E1RUFFMyIgc3Ryb2tlLXdpZHRoPSIwLjYiIHN0cm9rZS1kYXNoYXJyYXk9IjEuOCAxLjgiLz4KICAgIDxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIgogICAgICAgICAgZD0iTTE2LjQwNjkgMjEuOTkwNkwyMS43NDI2IDE4Ljc5OEwxOC4zOTUxIDE2Ljg5MjNMMTMuMDI0OSAyMC4wMjU4TDEzLjgxMTggMjAuNDgzTDEzLjAyMTggMjAuMDI0OVYyNS44Mzc3TDE2LjQwNjUgMjcuNzE3NVYyMS45OTA0TDE2LjQwNjkgMjEuOTkwNloiCiAgICAgICAgICBmaWxsPSJ1cmwoI3BhaW50MF9saW5lYXJfMTQxNzZfNTE0MDU0KSIvPgogICAgPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiCiAgICAgICAgICBkPSJNMzIuNDU3NyAyMS42NzQ3TDI3LjEyMyAxOC40ODI4TDMwLjQ3MDUgMTYuNTc3MUwzNS44NDA4IDE5LjcxMDZMMzUuNzEzNCAxOS43ODQ2TDM1Ljg0MjQgMTkuNzA5OFYyNS41MjI2TDMyLjQ1NzcgMjcuNDAyNFYyMS42NzQ3WiIKICAgICAgICAgIGZpbGw9InVybCgjcGFpbnQxX2xpbmVhcl8xNDE3Nl81MTQwNTQpIi8+CiAgICA8cGF0aCBkPSJNOS42MTgxNiAxNy45MzQ3TDI0LjAwMDUgOS44NTMwM0wzOC4zODI4IDE3LjkzNDdWMzQuMDA4MUwyNC4wMDA1IDQyTDkuNjE4MTYgMzQuMDA4MVYxNy45MzQ3WiIKICAgICAgICAgIHN0cm9rZT0iIzExOUU4RiIgc3Ryb2tlLXdpZHRoPSIxLjgiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KICAgIDxwYXRoIGQ9Ik02Ljk4ODk2IDI1LjUwNDFMMTQuOTkyNCAyOS45NzM4TDE0Ljk1NzQgMzguODMwM0w2Ljk1Mzg5IDM0LjM2MDVMNi45ODg5NiAyNS41MDQxWiIKICAgICAgICAgIGZpbGw9InVybCgjcGFpbnQyX2xpbmVhcl8xNDE3Nl81MTQwNTQpIiBzdHJva2U9IiMxMTlFOEYiIHN0cm9rZS13aWR0aD0iMS41Ii8+CiAgICA8cGF0aCBkPSJNNDEuMDExIDI1LjUwNDFMMzMuMDA3NiAyOS45NzM4TDMzLjA0MjYgMzguODMwM0w0MS4wNDYxIDM0LjM2MDVMNDEuMDExIDI1LjUwNDFaIgogICAgICAgICAgZmlsbD0idXJsKCNwYWludDNfbGluZWFyXzE0MTc2XzUxNDA1NCkiIHN0cm9rZT0iIzExOUU4RiIgc3Ryb2tlLXdpZHRoPSIxLjUiLz4KICAgIDxwYXRoIGQ9Ik0yNC4wNTU0IDUuNjc5NzdMMzMuMDQ3MiAxMC43MDE1TDI0LjE0NDkgMTUuNzE3NEwxNS4xNTMxIDEwLjY5NTdMMjQuMDU1NCA1LjY3OTc3WiIKICAgICAgICAgIGZpbGw9InVybCgjcGFpbnQ0X2xpbmVhcl8xNDE3Nl81MTQwNTQpIiBzdHJva2U9IiMxMTlFOEYiIHN0cm9rZS13aWR0aD0iMS41Ii8+CiAgICA8ZGVmcz4KICAgICAgICA8bGluZWFyR3JhZGllbnQgaWQ9InBhaW50MF9saW5lYXJfMTQxNzZfNTE0MDU0IiB4MT0iMTQuNzE0NSIgeTE9IjIwLjAyNDgiIHgyPSIxNC43MTQ1IiB5Mj0iMjcuNzE3NCIKICAgICAgICAgICAgICAgICAgICAgICAgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPgogICAgICAgICAgICA8c3RvcCBzdG9wLWNvbG9yPSIjMzZENkM0Ii8+CiAgICAgICAgICAgIDxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iIzE1QkVBQyIvPgogICAgICAgIDwvbGluZWFyR3JhZGllbnQ+CiAgICAgICAgPGxpbmVhckdyYWRpZW50IGlkPSJwYWludDFfbGluZWFyXzE0MTc2XzUxNDA1NCIgeDE9IjM1LjE4NTkiIHkxPSIyMi4yNTA5IiB4Mj0iMzUuMTg1OSIgeTI9IjI3LjcxNzQiCiAgICAgICAgICAgICAgICAgICAgICAgIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIj4KICAgICAgICAgICAgPHN0b3Agc3RvcC1jb2xvcj0iIzM2RDZDNCIvPgogICAgICAgICAgICA8c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiMxNUJFQUMiLz4KICAgICAgICA8L2xpbmVhckdyYWRpZW50PgogICAgICAgIDxsaW5lYXJHcmFkaWVudCBpZD0icGFpbnQyX2xpbmVhcl8xNDE3Nl81MTQwNTQiIHgxPSIxMC45NzMyIiB5MT0iNDAuMTA1MyIgeDI9IjEwLjk3MzIiIHkyPSIyMy44NjUyIgogICAgICAgICAgICAgICAgICAgICAgICBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSI+CiAgICAgICAgICAgIDxzdG9wIHN0b3AtY29sb3I9IiMxNkQyQkYiLz4KICAgICAgICAgICAgPHN0b3Agb2Zmc2V0PSIxIiBzdG9wLWNvbG9yPSJ3aGl0ZSIvPgogICAgICAgIDwvbGluZWFyR3JhZGllbnQ+CiAgICAgICAgPGxpbmVhckdyYWRpZW50IGlkPSJwYWludDNfbGluZWFyXzE0MTc2XzUxNDA1NCIgeDE9IjM3LjAyNjgiIHkxPSI0MC4xMDUzIiB4Mj0iMzcuMDI2OCIgeTI9IjIzLjg2NTIiCiAgICAgICAgICAgICAgICAgICAgICAgIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIj4KICAgICAgICAgICAgPHN0b3Agc3RvcC1jb2xvcj0iIzE2RDJCRiIvPgogICAgICAgICAgICA8c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IndoaXRlIi8+CiAgICAgICAgPC9saW5lYXJHcmFkaWVudD4KICAgICAgICA8bGluZWFyR3JhZGllbnQgaWQ9InBhaW50NF9saW5lYXJfMTQxNzZfNTE0MDU0IiB4MT0iMjQuMTAwMiIgeTE9IjE2LjU3NzMiIHgyPSIyNC4xMDAyIiB5Mj0iNC41NTA0MSIKICAgICAgICAgICAgICAgICAgICAgICAgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPgogICAgICAgICAgICA8c3RvcCBzdG9wLWNvbG9yPSIjMTZEMkJGIi8+CiAgICAgICAgICAgIDxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0id2hpdGUiLz4KICAgICAgICA8L2xpbmVhckdyYWRpZW50PgogICAgPC9kZWZzPgo8L3N2Zz4K"},function(e,t,a){"use strict";a.r(t),a.d(t,"ReactComponent",(function(){return O}));var r=a(315),n=a.n(r),l=a(0),u=a.n(l),o=u.a.createElement("ellipse",{cx:24,cy:25.753,rx:15.209,ry:8.969,stroke:"#A5EAE3",strokeWidth:.6,strokeDasharray:"1.8 1.8"}),i=u.a.createElement("path",{d:"M24.001 8.084v32.191",stroke:"#A5EAE3",strokeWidth:.6,strokeDasharray:"1.8 1.8"}),c=u.a.createElement("ellipse",{cx:24,cy:33.196,rx:15.209,ry:8.969,stroke:"#A5EAE3",strokeWidth:.6,strokeDasharray:"1.8 1.8"}),s=u.a.createElement("mask",{id:"a",fill:"#fff"},u.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M39.27 31.989c-.168-.522-.898-.425-1.126.073-1.757 3.83-7.423 6.633-14.141 6.633-6.72 0-12.385-2.804-14.141-6.633-.229-.499-.958-.596-1.126-.074a5.361 5.361 0 00-.26 1.644c0 4.953 6.952 8.968 15.527 8.968s15.526-4.015 15.526-8.968c0-.561-.09-1.11-.26-1.643z"})),f=u.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M39.27 31.989c-.168-.522-.898-.425-1.126.073-1.757 3.83-7.423 6.633-14.141 6.633-6.72 0-12.385-2.804-14.141-6.633-.229-.499-.958-.596-1.126-.074a5.361 5.361 0 00-.26 1.644c0 4.953 6.952 8.968 15.527 8.968s15.526-4.015 15.526-8.968c0-.561-.09-1.11-.26-1.643z",fill:"url(#paint0_linear_14176_514100)"}),d=u.a.createElement("path",{d:"M38.144 32.062l-1.09-.5 1.09.5zm1.125-.073l-1.143.366 1.143-.366zm-2.216-.427c-.724 1.58-2.32 3.067-4.635 4.169-2.299 1.095-5.216 1.764-8.415 1.764v2.4c3.52 0 6.794-.734 9.447-1.997 2.638-1.257 4.752-3.086 5.784-5.335l-2.18-1.001zm-13.05 5.933c-3.2 0-6.117-.669-8.416-1.764-2.314-1.103-3.91-2.59-4.635-4.17l-2.181 1c1.032 2.251 3.146 4.08 5.784 5.337 2.653 1.263 5.928 1.997 9.448 1.997v-2.4zM9.676 33.632c0-.433.069-.859.203-1.277l-2.286-.733a6.562 6.562 0 00-.317 2.01h2.4zM24.003 41.4c-4.116 0-7.782-.966-10.379-2.466-2.628-1.518-3.948-3.436-3.948-5.302h-2.4c0 3.086 2.156 5.653 5.148 7.38 3.022 1.747 7.119 2.788 11.579 2.788v-2.4zm14.326-7.768c0 1.866-1.32 3.784-3.948 5.302-2.596 1.5-6.263 2.466-10.378 2.466v2.4c4.46 0 8.556-1.041 11.579-2.787 2.99-1.728 5.147-4.295 5.147-7.381h-2.4zm-.203-1.277c.134.419.203.844.203 1.277h2.4c0-.69-.11-1.363-.317-2.01l-2.286.733zm-27.174-.793a1.928 1.928 0 00-1.566-1.115c-.687-.063-1.507.284-1.793 1.175l2.286.733a.716.716 0 01-.713.482.472.472 0 01-.395-.275l2.181-1zm28.282 1a.472.472 0 01-.395.276.717.717 0 01-.713-.483l2.286-.732c-.286-.891-1.105-1.238-1.792-1.175a1.928 1.928 0 00-1.567 1.114l2.181 1z",fill:"#119E8F",mask:"url(#a)"}),p=u.a.createElement("mask",{id:"b",fill:"#fff"},u.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M39.27 24.71c-.168-.522-.897-.425-1.126.073-1.756 3.83-7.422 6.633-14.141 6.633s-12.385-2.803-14.141-6.633c-.229-.498-.958-.595-1.125-.073a5.362 5.362 0 00-.26 1.643c0 4.953 6.951 8.969 15.526 8.969s15.526-4.016 15.526-8.969c0-.561-.089-1.11-.26-1.643z"})),m=u.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M39.27 24.71c-.168-.522-.897-.425-1.126.073-1.756 3.83-7.422 6.633-14.141 6.633s-12.385-2.803-14.141-6.633c-.229-.498-.958-.595-1.125-.073a5.362 5.362 0 00-.26 1.643c0 4.953 6.951 8.969 15.526 8.969s15.526-4.016 15.526-8.969c0-.561-.089-1.11-.26-1.643z",fill:"url(#paint1_linear_14176_514100)"}),h=u.a.createElement("path",{d:"M38.144 24.783l-1.09-.5 1.09.5zm1.125-.073l-1.142.366 1.142-.366zm-2.216-.427c-.724 1.58-2.32 3.067-4.635 4.17-2.299 1.095-5.216 1.763-8.415 1.763v2.4c3.52 0 6.795-.733 9.448-1.997 2.637-1.256 4.752-3.085 5.784-5.335l-2.182-1zm-13.05 5.933c-3.2 0-6.116-.669-8.415-1.764-2.315-1.102-3.911-2.59-4.635-4.169l-2.182 1c1.032 2.25 3.147 4.08 5.784 5.336 2.653 1.264 5.928 1.997 9.448 1.997v-2.4zM9.677 26.353c0-.432.068-.858.202-1.277l-2.285-.732a6.561 6.561 0 00-.317 2.009h2.4zm14.326 7.769c-4.115 0-7.782-.966-10.379-2.466-2.628-1.518-3.947-3.436-3.947-5.303h-2.4c0 3.087 2.156 5.653 5.147 7.381 3.023 1.746 7.12 2.788 11.579 2.788v-2.4zm14.326-7.769c0 1.867-1.32 3.785-3.947 5.303-2.597 1.5-6.264 2.466-10.379 2.466v2.4c4.46 0 8.556-1.042 11.579-2.788 2.991-1.728 5.147-4.294 5.147-7.381h-2.4zm-.202-1.277c.134.419.202.845.202 1.277h2.4c0-.69-.11-1.363-.317-2.01l-2.285.733zm-27.174-.793a1.928 1.928 0 00-1.567-1.114c-.687-.063-1.507.284-1.792 1.175l2.285.732a.716.716 0 01-.712.483.472.472 0 01-.396-.275l2.182-1zm28.282 1a.472.472 0 01-.395.276.716.716 0 01-.713-.483l2.285-.732c-.285-.891-1.105-1.238-1.792-1.175a1.928 1.928 0 00-1.567 1.114l2.182 1z",fill:"#119E8F",mask:"url(#b)"}),v=u.a.createElement("path",{d:"M38.626 16.1c0 2.02-1.424 4.019-4.098 5.563-2.65 1.531-6.37 2.507-10.528 2.507s-7.879-.976-10.529-2.507c-2.673-1.544-4.098-3.543-4.098-5.562 0-2.02 1.425-4.018 4.098-5.563 2.65-1.53 6.37-2.506 10.529-2.506 4.158 0 7.878.975 10.528 2.506 2.674 1.544 4.098 3.543 4.098 5.563z",stroke:"#119E8F",strokeWidth:1.8}),g=u.a.createElement("circle",{cx:9.29,cy:16.101,r:2.097,fill:"url(#paint2_linear_14176_514100)"}),y=u.a.createElement("circle",{cx:24.003,cy:24.704,r:2.097,fill:"url(#paint3_linear_14176_514100)"}),E=u.a.createElement("circle",{cx:24.003,cy:7.498,r:2.097,fill:"url(#paint4_linear_14176_514100)"}),b=u.a.createElement("circle",{cx:38.711,cy:16.101,r:2.097,fill:"url(#paint5_linear_14176_514100)"}),_=u.a.createElement("defs",null,u.a.createElement("linearGradient",{id:"paint0_linear_14176_514100",x1:24.003,y1:42.6,x2:24.003,y2:31.763,gradientUnits:"userSpaceOnUse"},u.a.createElement("stop",{stopColor:"#16D2BF"}),u.a.createElement("stop",{offset:1,stopColor:"#fff"})),u.a.createElement("linearGradient",{id:"paint1_linear_14176_514100",x1:24.003,y1:35.322,x2:24.003,y2:24.484,gradientUnits:"userSpaceOnUse"},u.a.createElement("stop",{stopColor:"#16D2BF"}),u.a.createElement("stop",{offset:1,stopColor:"#fff"})),u.a.createElement("linearGradient",{id:"paint2_linear_14176_514100",x1:8.007,y1:15.217,x2:8.007,y2:18.198,gradientUnits:"userSpaceOnUse"},u.a.createElement("stop",{stopColor:"#36D6C4"}),u.a.createElement("stop",{offset:1,stopColor:"#15BEAC"})),u.a.createElement("linearGradient",{id:"paint3_linear_14176_514100",x1:22.719,y1:23.82,x2:22.719,y2:26.801,gradientUnits:"userSpaceOnUse"},u.a.createElement("stop",{stopColor:"#36D6C4"}),u.a.createElement("stop",{offset:1,stopColor:"#15BEAC"})),u.a.createElement("linearGradient",{id:"paint4_linear_14176_514100",x1:22.719,y1:6.614,x2:22.719,y2:9.595,gradientUnits:"userSpaceOnUse"},u.a.createElement("stop",{stopColor:"#36D6C4"}),u.a.createElement("stop",{offset:1,stopColor:"#15BEAC"})),u.a.createElement("linearGradient",{id:"paint5_linear_14176_514100",x1:37.427,y1:15.217,x2:37.427,y2:18.198,gradientUnits:"userSpaceOnUse"},u.a.createElement("stop",{stopColor:"#36D6C4"}),u.a.createElement("stop",{offset:1,stopColor:"#15BEAC"}))),O=function(e){return u.a.createElement("svg",n()({viewBox:"0 0 48 48",fill:"none",width:"1em",height:"1em"},e),o,i,c,s,f,d,p,m,h,v,g,y,E,b,_)};t.default="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDgiIGhlaWdodD0iNDgiIHZpZXdCb3g9IjAgMCA0OCA0OCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICAgIDxlbGxpcHNlIGN4PSIyNCIgY3k9IjI1Ljc1MzEiIHJ4PSIxNS4yMDkzIiByeT0iOC45Njg5MSIgc3Ryb2tlPSIjQTVFQUUzIiBzdHJva2Utd2lkdGg9IjAuNiIKICAgICAgICAgICAgIHN0cm9rZS1kYXNoYXJyYXk9IjEuOCAxLjgiLz4KICAgIDxwYXRoIGQ9Ik0yNC4wMDEzIDguMDgzOThMMjQuMDAxNiA0MC4yNzUiIHN0cm9rZT0iI0E1RUFFMyIgc3Ryb2tlLXdpZHRoPSIwLjYiIHN0cm9rZS1kYXNoYXJyYXk9IjEuOCAxLjgiLz4KICAgIDxlbGxpcHNlIGN4PSIyNCIgY3k9IjMzLjE5NTUiIHJ4PSIxNS4yMDkzIiByeT0iOC45Njg5MSIgc3Ryb2tlPSIjQTVFQUUzIiBzdHJva2Utd2lkdGg9IjAuNiIKICAgICAgICAgICAgIHN0cm9rZS1kYXNoYXJyYXk9IjEuOCAxLjgiLz4KICAgIDxtYXNrIGlkPSJwYXRoLTQtaW5zaWRlLTFfMTQxNzZfNTE0MTAwIiBmaWxsPSJ3aGl0ZSI+CiAgICAgICAgPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiCiAgICAgICAgICAgICAgZD0iTTM5LjI2OTEgMzEuOTg5QzM5LjEwMTggMzEuNDY2OSAzOC4zNzI0IDMxLjU2MzkgMzguMTQzOCAzMi4wNjIzQzM2LjM4NzQgMzUuODkxMyAzMC43MjE0IDM4LjY5NDcgMjQuMDAyOCAzOC42OTQ3QzE3LjI4MzkgMzguNjk0NyAxMS42MTc2IDM1Ljg5MSA5Ljg2MTU2IDMyLjA2MTdDOS42MzMwMSAzMS41NjMzIDguOTAzNTYgMzEuNDY2MiA4LjczNjIxIDMxLjk4ODNDOC41NjU0NiAzMi41MjEgOC40NzYyMSAzMy4wNzAyIDguNDc2MjEgMzMuNjMxNUM4LjQ3NjIxIDM4LjU4NDkgMTUuNDI3NiA0Mi42MDA0IDI0LjAwMjUgNDIuNjAwNEMzMi41Nzc1IDQyLjYwMDQgMzkuNTI4OSAzOC41ODQ5IDM5LjUyODkgMzMuNjMxNUMzOS41Mjg5IDMzLjA3MDUgMzkuNDM5NyAzMi41MjE1IDM5LjI2OTEgMzEuOTg5WiIvPgogICAgPC9tYXNrPgogICAgPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiCiAgICAgICAgICBkPSJNMzkuMjY5MSAzMS45ODlDMzkuMTAxOCAzMS40NjY5IDM4LjM3MjQgMzEuNTYzOSAzOC4xNDM4IDMyLjA2MjNDMzYuMzg3NCAzNS44OTEzIDMwLjcyMTQgMzguNjk0NyAyNC4wMDI4IDM4LjY5NDdDMTcuMjgzOSAzOC42OTQ3IDExLjYxNzYgMzUuODkxIDkuODYxNTYgMzIuMDYxN0M5LjYzMzAxIDMxLjU2MzMgOC45MDM1NiAzMS40NjYyIDguNzM2MjEgMzEuOTg4M0M4LjU2NTQ2IDMyLjUyMSA4LjQ3NjIxIDMzLjA3MDIgOC40NzYyMSAzMy42MzE1QzguNDc2MjEgMzguNTg0OSAxNS40Mjc2IDQyLjYwMDQgMjQuMDAyNSA0Mi42MDA0QzMyLjU3NzUgNDIuNjAwNCAzOS41Mjg5IDM4LjU4NDkgMzkuNTI4OSAzMy42MzE1QzM5LjUyODkgMzMuMDcwNSAzOS40Mzk3IDMyLjUyMTUgMzkuMjY5MSAzMS45ODlaIgogICAgICAgICAgZmlsbD0idXJsKCNwYWludDBfbGluZWFyXzE0MTc2XzUxNDEwMCkiLz4KICAgIDxwYXRoIGQ9Ik0zOC4xNDM4IDMyLjA2MjNMMzcuMDUzMSAzMS41NjJMMzguMTQzOCAzMi4wNjIzWk0zOS4yNjkxIDMxLjk4OUwzOC4xMjYzIDMyLjM1NTJMMzkuMjY5MSAzMS45ODlaTTM3LjA1MzEgMzEuNTYyQzM2LjMyODcgMzMuMTQxMSAzNC43MzIzIDM0LjYyODUgMzIuNDE4IDM1LjczMUMzMC4xMTkxIDM2LjgyNjIgMjcuMjAxOCAzNy40OTQ3IDI0LjAwMjggMzcuNDk0N1YzOS44OTQ3QzI3LjUyMjQgMzkuODk0NyAzMC43OTc0IDM5LjE2MTUgMzMuNDUwMiAzNy44OTc3QzM2LjA4NzcgMzYuNjQxMyAzOC4yMDI1IDM0LjgxMjUgMzkuMjM0NSAzMi41NjI2TDM3LjA1MzEgMzEuNTYyWk0yNC4wMDI4IDM3LjQ5NDdDMjAuODAzNiAzNy40OTQ3IDE3Ljg4NjIgMzYuODI2MSAxNS41ODcyIDM1LjczMDlDMTMuMjcyOSAzNC42MjgzIDExLjY3NjUgMzMuMTQwNyAxMC45NTIzIDMxLjU2MTVMOC43NzA3OCAzMi41NjE5QzkuODAyNjEgMzQuODEyIDExLjkxNzQgMzYuNjQwOSAxNC41NTUgMzcuODk3NUMxNy4yMDc5IDM5LjE2MTQgMjAuNDgzMSAzOS44OTQ3IDI0LjAwMjggMzkuODk0N1YzNy40OTQ3Wk05LjY3NjIxIDMzLjYzMTVDOS42NzYyMSAzMy4xOTkyIDkuNzQ0NzEgMzIuNzczNCA5Ljg3ODk0IDMyLjM1NDZMNy41OTM0NyAzMS42MjJDNy4zODYyMiAzMi4yNjg2IDcuMjc2MjEgMzIuOTQxMyA3LjI3NjIxIDMzLjYzMTVIOS42NzYyMVpNMjQuMDAyNSA0MS40MDA0QzE5Ljg4NzQgNDEuNDAwNCAxNi4yMjA2IDQwLjQzNDMgMTMuNjI0IDM4LjkzNDRDMTAuOTk1OSAzNy40MTYyIDkuNjc2MjEgMzUuNDk4MyA5LjY3NjIxIDMzLjYzMTVINy4yNzYyMUM3LjI3NjIxIDM2LjcxODEgOS40MzIyNSAzOS4yODQ2IDEyLjQyMzUgNDEuMDEyNkMxNS40NDY0IDQyLjc1ODcgMTkuNTQyOCA0My44MDA0IDI0LjAwMjUgNDMuODAwNFY0MS40MDA0Wk0zOC4zMjg5IDMzLjYzMTVDMzguMzI4OSAzNS40OTgzIDM3LjAwOTIgMzcuNDE2MiAzNC4zODExIDM4LjkzNDRDMzEuNzg0NSA0MC40MzQzIDI4LjExNzcgNDEuNDAwNCAyNC4wMDI1IDQxLjQwMDRWNDMuODAwNEMyOC40NjIzIDQzLjgwMDQgMzIuNTU4NyA0Mi43NTg3IDM1LjU4MTYgNDEuMDEyNkMzOC41NzI4IDM5LjI4NDYgNDAuNzI4OSAzNi43MTgxIDQwLjcyODkgMzMuNjMxNUgzOC4zMjg5Wk0zOC4xMjYzIDMyLjM1NTJDMzguMjYwNCAzMi43NzM4IDM4LjMyODkgMzMuMTk5NCAzOC4zMjg5IDMzLjYzMTVINDAuNzI4OUM0MC43Mjg5IDMyLjk0MTYgNDAuNjE5IDMyLjI2OTIgNDAuNDExOSAzMS42MjI5TDM4LjEyNjMgMzIuMzU1MlpNMTAuOTUyMyAzMS41NjE1QzEwLjY0OSAzMC45IDEwLjAyMDkgMzAuNTA1NyA5LjM4NTc2IDMwLjQ0NzNDOC42OTg5NCAzMC4zODQyIDcuODc5MTMgMzAuNzMwOCA3LjU5MzQ3IDMxLjYyMkw5Ljg3ODk0IDMyLjM1NDZDOS44MzQ5OCAzMi40OTE3IDkuNzI5NjUgMzIuNjQyNyA5LjU2MTgzIDMyLjc0MkM5LjQwNzg3IDMyLjgzMzIgOS4yNjE3MyAzMi44NDYxIDkuMTY2MTIgMzIuODM3M0M4Ljk5NDY5IDMyLjgyMTUgOC44NDU1OSAzMi43MjUgOC43NzA3OCAzMi41NjE5TDEwLjk1MjMgMzEuNTYxNVpNMzkuMjM0NSAzMi41NjI2QzM5LjE1OTcgMzIuNzI1NyAzOS4wMTA2IDMyLjgyMjIgMzguODM5MSAzMi44Mzc5QzM4Ljc0MzUgMzIuODQ2NyAzOC41OTc0IDMyLjgzMzggMzguNDQzNCAzMi43NDI2QzM4LjI3NTYgMzIuNjQzMyAzOC4xNzAzIDMyLjQ5MjMgMzguMTI2MyAzMi4zNTUyTDQwLjQxMTkgMzEuNjIyOUM0MC4xMjY0IDMwLjczMTYgMzkuMzA2NiAzMC4zODQ5IDM4LjYxOTggMzAuNDQ4QzM3Ljk4NDYgMzAuNTA2MyAzNy4zNTY1IDMwLjkwMDUgMzcuMDUzMSAzMS41NjJMMzkuMjM0NSAzMi41NjI2WiIKICAgICAgICAgIGZpbGw9IiMxMTlFOEYiIG1hc2s9InVybCgjcGF0aC00LWluc2lkZS0xXzE0MTc2XzUxNDEwMCkiLz4KICAgIDxtYXNrIGlkPSJwYXRoLTYtaW5zaWRlLTJfMTQxNzZfNTE0MTAwIiBmaWxsPSJ3aGl0ZSI+CiAgICAgICAgPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiCiAgICAgICAgICAgICAgZD0iTTM5LjI2OTQgMjQuNzEwMUMzOS4xMDIxIDI0LjE4OCAzOC4zNzI3IDI0LjI4NTEgMzguMTQ0MSAyNC43ODM0QzM2LjM4NzkgMjguNjEyNiAzMC43MjE3IDMxLjQxNiAyNC4wMDMgMzEuNDE2QzE3LjI4NDMgMzEuNDE2IDExLjYxODEgMjguNjEyNiA5Ljg2MTkgMjQuNzgzM0M5LjYzMzM0IDI0LjI4NDkgOC45MDM5IDI0LjE4NzkgOC43MzY1NiAyNC43MUM4LjU2NTg2IDI1LjI0MjYgOC40NzY2NCAyNS43OTE4IDguNDc2NjQgMjYuMzUzQzguNDc2NjQgMzEuMzA2NCAxNS40MjggMzUuMzIxOSAyNC4wMDMgMzUuMzIxOUMzMi41Nzc5IDM1LjMyMTkgMzkuNTI5MyAzMS4zMDY0IDM5LjUyOTMgMjYuMzUzQzM5LjUyOTMgMjUuNzkxOCAzOS40NDAxIDI1LjI0MjcgMzkuMjY5NCAyNC43MTAxWiIvPgogICAgPC9tYXNrPgogICAgPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiCiAgICAgICAgICBkPSJNMzkuMjY5NCAyNC43MTAxQzM5LjEwMjEgMjQuMTg4IDM4LjM3MjcgMjQuMjg1MSAzOC4xNDQxIDI0Ljc4MzRDMzYuMzg3OSAyOC42MTI2IDMwLjcyMTcgMzEuNDE2IDI0LjAwMyAzMS40MTZDMTcuMjg0MyAzMS40MTYgMTEuNjE4MSAyOC42MTI2IDkuODYxOSAyNC43ODMzQzkuNjMzMzQgMjQuMjg0OSA4LjkwMzkgMjQuMTg3OSA4LjczNjU2IDI0LjcxQzguNTY1ODYgMjUuMjQyNiA4LjQ3NjY0IDI1Ljc5MTggOC40NzY2NCAyNi4zNTNDOC40NzY2NCAzMS4zMDY0IDE1LjQyOCAzNS4zMjE5IDI0LjAwMyAzNS4zMjE5QzMyLjU3NzkgMzUuMzIxOSAzOS41MjkzIDMxLjMwNjQgMzkuNTI5MyAyNi4zNTNDMzkuNTI5MyAyNS43OTE4IDM5LjQ0MDEgMjUuMjQyNyAzOS4yNjk0IDI0LjcxMDFaIgogICAgICAgICAgZmlsbD0idXJsKCNwYWludDFfbGluZWFyXzE0MTc2XzUxNDEwMCkiLz4KICAgIDxwYXRoIGQ9Ik0zOC4xNDQxIDI0Ljc4MzRMMzcuMDUzMyAyNC4yODMyTDM4LjE0NDEgMjQuNzgzNFpNMzkuMjY5NCAyNC43MTAxTDM4LjEyNjcgMjUuMDc2M0wzOS4yNjk0IDI0LjcxMDFaTTM3LjA1MzMgMjQuMjgzMkMzNi4zMjkxIDI1Ljg2MjMgMzQuNzMyNyAyNy4zNDk4IDMyLjQxODQgMjguNDUyM0MzMC4xMTk0IDI5LjU0NzUgMjcuMjAyMSAzMC4yMTYgMjQuMDAzIDMwLjIxNlYzMi42MTZDMjcuNTIyNiAzMi42MTYgMzAuNzk3NyAzMS44ODI4IDMzLjQ1MDYgMzAuNjE5QzM2LjA4ODEgMjkuMzYyNSAzOC4yMDI5IDI3LjUzMzcgMzkuMjM0OCAyNS4yODM3TDM3LjA1MzMgMjQuMjgzMlpNMjQuMDAzIDMwLjIxNkMyMC44MDM5IDMwLjIxNiAxNy44ODY2IDI5LjU0NzUgMTUuNTg3NiAyOC40NTIzQzEzLjI3MzMgMjcuMzQ5OCAxMS42NzY5IDI1Ljg2MjMgMTAuOTUyNyAyNC4yODMxTDguNzcxMTQgMjUuMjgzNkM5LjgwMzA2IDI3LjUzMzYgMTEuOTE3OSAyOS4zNjI1IDE0LjU1NTQgMzAuNjE5QzE3LjIwODMgMzEuODgyOCAyMC40ODM0IDMyLjYxNiAyNC4wMDMgMzIuNjE2VjMwLjIxNlpNOS42NzY2NCAyNi4zNTNDOS42NzY2NCAyNS45MjA3IDkuNzQ1MTEgMjUuNDk1IDkuODc5MzEgMjUuMDc2Mkw3LjU5MzgyIDI0LjM0MzhDNy4zODY2MSAyNC45OTAzIDcuMjc2NjQgMjUuNjYyOSA3LjI3NjY0IDI2LjM1M0g5LjY3NjY0Wk0yNC4wMDMgMzQuMTIxOUMxOS44ODc4IDM0LjEyMTkgMTYuMjIxIDMzLjE1NTggMTMuNjI0NCAzMS42NTU5QzEwLjk5NjMgMzAuMTM3NyA5LjY3NjY0IDI4LjIxOTggOS42NzY2NCAyNi4zNTNINy4yNzY2NEM3LjI3NjY0IDI5LjQzOTYgOS40MzI2OCAzMi4wMDYxIDEyLjQyNCAzMy43MzQxQzE1LjQ0NjggMzUuNDgwMiAxOS41NDMyIDM2LjUyMTkgMjQuMDAzIDM2LjUyMTlWMzQuMTIxOVpNMzguMzI5MyAyNi4zNTNDMzguMzI5MyAyOC4yMTk4IDM3LjAwOTcgMzAuMTM3NyAzNC4zODE1IDMxLjY1NTlDMzEuNzg0OSAzMy4xNTU4IDI4LjExODIgMzQuMTIxOSAyNC4wMDMgMzQuMTIxOVYzNi41MjE5QzI4LjQ2MjggMzYuNTIxOSAzMi41NTkyIDM1LjQ4MDIgMzUuNTgyIDMzLjczNDFDMzguNTczMyAzMi4wMDYxIDQwLjcyOTMgMjkuNDM5NiA0MC43MjkzIDI2LjM1M0gzOC4zMjkzWk0zOC4xMjY3IDI1LjA3NjNDMzguMjYwOCAyNS40OTUgMzguMzI5MyAyNS45MjA4IDM4LjMyOTMgMjYuMzUzSDQwLjcyOTNDNDAuNzI5MyAyNS42NjI5IDQwLjYxOTQgMjQuOTkwNCA0MC40MTIyIDI0LjM0MzlMMzguMTI2NyAyNS4wNzYzWk0xMC45NTI3IDI0LjI4MzFDMTAuNjQ5MyAyMy42MjE2IDEwLjAyMTIgMjMuMjI3NCA5LjM4NjAzIDIzLjE2OUM4LjY5OTIxIDIzLjEwNTkgNy44Nzk0MyAyMy40NTI2IDcuNTkzODIgMjQuMzQzOEw5Ljg3OTMxIDI1LjA3NjJDOS44MzUzNiAyNS4yMTM0IDkuNzMwMDQgMjUuMzY0MyA5LjU2MjIyIDI1LjQ2MzdDOS40MDgyNyAyNS41NTQ4IDkuMjYyMTIgMjUuNTY3NyA5LjE2NjUxIDI1LjU1ODlDOC45OTUwNyAyNS41NDMyIDguODQ1OTYgMjUuNDQ2NyA4Ljc3MTE0IDI1LjI4MzZMMTAuOTUyNyAyNC4yODMxWk0zOS4yMzQ4IDI1LjI4MzdDMzkuMTYgMjUuNDQ2OCAzOS4wMTA5IDI1LjU0MzMgMzguODM5NSAyNS41NTkxQzM4Ljc0MzkgMjUuNTY3OSAzOC41OTc3IDI1LjU1NSAzOC40NDM3IDI1LjQ2MzhDMzguMjc1OSAyNS4zNjQ0IDM4LjE3MDYgMjUuMjEzNSAzOC4xMjY3IDI1LjA3NjNMNDAuNDEyMiAyNC4zNDM5QzQwLjEyNjYgMjMuNDUyNyAzOS4zMDY4IDIzLjEwNjEgMzguNjIgMjMuMTY5MUMzNy45ODQ5IDIzLjIyNzUgMzcuMzU2NyAyMy42MjE3IDM3LjA1MzMgMjQuMjgzMkwzOS4yMzQ4IDI1LjI4MzdaIgogICAgICAgICAgZmlsbD0iIzExOUU4RiIgbWFzaz0idXJsKCNwYXRoLTYtaW5zaWRlLTJfMTQxNzZfNTE0MTAwKSIvPgogICAgPHBhdGggZD0iTTM4LjYyNjIgMTYuMTAwN0MzOC42MjYyIDE4LjEyIDM3LjIwMiAyMC4xMTkgMzQuNTI4NCAyMS42NjM0QzMxLjg3ODUgMjMuMTk0MSAyOC4xNTgxIDI0LjE2OTcgMjMuOTk5OCAyNC4xNjk3QzE5Ljg0MTYgMjQuMTY5NyAxNi4xMjExIDIzLjE5NDEgMTMuNDcxMiAyMS42NjM0QzEwLjc5NzcgMjAuMTE5IDkuMzczNSAxOC4xMiA5LjM3MzUgMTYuMTAwN0M5LjM3MzUgMTQuMDgxNSAxMC43OTc3IDEyLjA4MjUgMTMuNDcxMiAxMC41MzgxQzE2LjEyMTEgOS4wMDczNiAxOS44NDE2IDguMDMxODQgMjMuOTk5OCA4LjAzMTg0QzI4LjE1ODEgOC4wMzE4NCAzMS44Nzg1IDkuMDA3MzYgMzQuNTI4NCAxMC41MzgxQzM3LjIwMiAxMi4wODI1IDM4LjYyNjIgMTQuMDgxNSAzOC42MjYyIDE2LjEwMDdaIgogICAgICAgICAgc3Ryb2tlPSIjMTE5RThGIiBzdHJva2Utd2lkdGg9IjEuOCIvPgogICAgPGNpcmNsZSBjeD0iOS4yODk4IiBjeT0iMTYuMTAwOCIgcj0iMi4wOTc0MiIgZmlsbD0idXJsKCNwYWludDJfbGluZWFyXzE0MTc2XzUxNDEwMCkiLz4KICAgIDxjaXJjbGUgY3g9IjI0LjAwMjUiIGN5PSIyNC43MDM5IiByPSIyLjA5NzQyIiBmaWxsPSJ1cmwoI3BhaW50M19saW5lYXJfMTQxNzZfNTE0MTAwKSIvPgogICAgPGNpcmNsZSBjeD0iMjQuMDAyNSIgY3k9IjcuNDk3NTciIHI9IjIuMDk3NDIiIGZpbGw9InVybCgjcGFpbnQ0X2xpbmVhcl8xNDE3Nl81MTQxMDApIi8+CiAgICA8Y2lyY2xlIGN4PSIzOC43MTA2IiBjeT0iMTYuMTAwOCIgcj0iMi4wOTc0MiIgZmlsbD0idXJsKCNwYWludDVfbGluZWFyXzE0MTc2XzUxNDEwMCkiLz4KICAgIDxkZWZzPgogICAgICAgIDxsaW5lYXJHcmFkaWVudCBpZD0icGFpbnQwX2xpbmVhcl8xNDE3Nl81MTQxMDAiIHgxPSIyNC4wMDI2IiB5MT0iNDIuNjAwMiIgeDI9IjI0LjAwMjYiIHkyPSIzMS43NjI2IgogICAgICAgICAgICAgICAgICAgICAgICBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSI+CiAgICAgICAgICAgIDxzdG9wIHN0b3AtY29sb3I9IiMxNkQyQkYiLz4KICAgICAgICAgICAgPHN0b3Agb2Zmc2V0PSIxIiBzdG9wLWNvbG9yPSJ3aGl0ZSIvPgogICAgICAgIDwvbGluZWFyR3JhZGllbnQ+CiAgICAgICAgPGxpbmVhckdyYWRpZW50IGlkPSJwYWludDFfbGluZWFyXzE0MTc2XzUxNDEwMCIgeDE9IjI0LjAwMyIgeTE9IjM1LjMyMTkiIHgyPSIyNC4wMDMiIHkyPSIyNC40ODQzIgogICAgICAgICAgICAgICAgICAgICAgICBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSI+CiAgICAgICAgICAgIDxzdG9wIHN0b3AtY29sb3I9IiMxNkQyQkYiLz4KICAgICAgICAgICAgPHN0b3Agb2Zmc2V0PSIxIiBzdG9wLWNvbG9yPSJ3aGl0ZSIvPgogICAgICAgIDwvbGluZWFyR3JhZGllbnQ+CiAgICAgICAgPGxpbmVhckdyYWRpZW50IGlkPSJwYWludDJfbGluZWFyXzE0MTc2XzUxNDEwMCIgeDE9IjguMDA2NjIiIHkxPSIxNS4yMTczIiB4Mj0iOC4wMDY2MiIgeTI9IjE4LjE5ODMiCiAgICAgICAgICAgICAgICAgICAgICAgIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIj4KICAgICAgICAgICAgPHN0b3Agc3RvcC1jb2xvcj0iIzM2RDZDNCIvPgogICAgICAgICAgICA8c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiMxNUJFQUMiLz4KICAgICAgICA8L2xpbmVhckdyYWRpZW50PgogICAgICAgIDxsaW5lYXJHcmFkaWVudCBpZD0icGFpbnQzX2xpbmVhcl8xNDE3Nl81MTQxMDAiIHgxPSIyMi43MTkzIiB5MT0iMjMuODIwMyIgeDI9IjIyLjcxOTMiIHkyPSIyNi44MDEzIgogICAgICAgICAgICAgICAgICAgICAgICBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSI+CiAgICAgICAgICAgIDxzdG9wIHN0b3AtY29sb3I9IiMzNkQ2QzQiLz4KICAgICAgICAgICAgPHN0b3Agb2Zmc2V0PSIxIiBzdG9wLWNvbG9yPSIjMTVCRUFDIi8+CiAgICAgICAgPC9saW5lYXJHcmFkaWVudD4KICAgICAgICA8bGluZWFyR3JhZGllbnQgaWQ9InBhaW50NF9saW5lYXJfMTQxNzZfNTE0MTAwIiB4MT0iMjIuNzE5MyIgeTE9IjYuNjE0MDMiIHgyPSIyMi43MTkzIiB5Mj0iOS41OTQ5OSIKICAgICAgICAgICAgICAgICAgICAgICAgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPgogICAgICAgICAgICA8c3RvcCBzdG9wLWNvbG9yPSIjMzZENkM0Ii8+CiAgICAgICAgICAgIDxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iIzE1QkVBQyIvPgogICAgICAgIDwvbGluZWFyR3JhZGllbnQ+CiAgICAgICAgPGxpbmVhckdyYWRpZW50IGlkPSJwYWludDVfbGluZWFyXzE0MTc2XzUxNDEwMCIgeDE9IjM3LjQyNzQiIHkxPSIxNS4yMTczIiB4Mj0iMzcuNDI3NCIgeTI9IjE4LjE5ODMiCiAgICAgICAgICAgICAgICAgICAgICAgIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIj4KICAgICAgICAgICAgPHN0b3Agc3RvcC1jb2xvcj0iIzM2RDZDNCIvPgogICAgICAgICAgICA8c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiMxNUJFQUMiLz4KICAgICAgICA8L2xpbmVhckdyYWRpZW50PgogICAgPC9kZWZzPgo8L3N2Zz4K"},,function(e,a,r){"use strict";var n=r(20),l=r(157);r(12),r(5),r(11),r(6),r(86),r(18),r(16),r(9),r(13),r(10),r(4),r(23),r(24),r(17),r(62),r(188),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(45),r(5),r(11),r(6),r(86),r(18),r(28),r(42),r(16),r(34),r(15),r(9),r(13),r(10),r(4),r(23),r(57),r(24),r(17),r(62),r(188),r(7);var u,o=n(r(315)),i=n(r(30)),c=n(r(36)),s=n(r(37)),f=n(r(55)),d=n(r(56)),p=n(r(51)),m=n(r(0)),h=n(r(451)),v=n(r(26)),g=r(433),y=n(r(790)),E=n(r(795)),b=n(r(880)),_=n(r(792)),O=l(r(793)),S=r(52),C=n(r(796)),D=r(72),k=r(878),N=r(832),T=n(r(3)),R=n(r(1128)),w=n(r(3706));function I(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function M(e){for(var t=1;t0?"builtin":"custom"},e.handleTabChange=function(t){e.setState({type:t},(function(){e.props.store.list.reset(),e.getData()}))},e.getData=function(t){e.props.store.fetchList(M(M(M({},e.props.match.params),t),{},{sortBy:"activeAt",type:e.state.type}))},e.getResourceType=function(e){var a=(0,h.default)(e);return t("ALERT_TYPE",{type:t(a)})},e.getColumns=function(){var a=e.props,r=a.getFilteredValue,n=a.getSortOrder;return[{title:t("MESSAGE"),dataIndex:"name",render:function(e,t){return m.default.createElement(y.default,{icon:"loudspeaker",title:(0,v.default)(t,"annotations.summary"),description:(0,v.default)(t,"annotations.message")||(0,v.default)(t,"annotations.description","-")})}},{title:t("STATUS"),dataIndex:"state",filters:e.getStatus(),filteredValue:r("state"),isHideable:!0,search:!0,width:"12%",render:function(e){return m.default.createElement(E.default,{type:e,name:t("ALERT_RULE_".concat(e.toUpperCase()),{defaultValue:e})})}},{title:t("SEVERITY"),dataIndex:"labels.severity",filters:e.getAlertingTypes(),filteredValue:r("labels.severity"),isHideable:!0,search:!0,width:"12%",render:function(e){return m.default.createElement(b.default,{data:e})}},{title:t("ALERTING_RULE_NAME"),dataIndex:"labels.alertname",filteredValue:r("labels.alertname"),isHideable:!0,width:"12%",search:!0},{title:t("ALERTING_POLICY"),dataIndex:"ruleName",isHideable:!0,width:"12%",render:function(t,a){var r=(0,v.default)(a,"labels.rule_group");return m.default.createElement(g.Link,{to:"builtin"===e.state.type?"".concat(e.getPrefix(),"/alert-rules/builtin/").concat(r):"".concat(e.getPrefix(),"/alert-rules/").concat(r)},r)}},{title:t("MONITORING_TARGET"),dataIndex:"labels",isHideable:!0,width:"16%",render:function(a){if("template"!==a.rule_type)return"-";var r=(0,k.getAlertingResource)(a),n=r.module,l=r.name,u=r.namespace;return n?"hpas"===n?m.default.createElement("span",null,t(D.MODULE_KIND_MAP[n]),": ",l):m.default.createElement(g.Link,{to:"".concat(e.getPrefix({namespace:u}),"/").concat(n,"/").concat(l)},t(D.MODULE_KIND_MAP[n]),": ",l):"-"}},{title:t("TRIGGER_TIME"),dataIndex:"activeAt",isHideable:!0,width:200,sorter:!0,sortOrder:n("activeAt"),render:function(e){return(0,S.getLocalTime)(e).format("YYYY-MM-DD HH:mm:ss")}}]},e}return(0,s.default)(r,[{key:"componentDidMount",value:function(){var e=this.props.match.params,t=e.cluster;!e.namespace&&this.props.store.fetchCount({cluster:t})}},{key:"getPrefix",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.cluster,a=e.namespace,r=this.props.match.params,n=r.cluster,l=r.namespace,u=r.workspace;return t=t||n,a=a||l,"".concat(u?"/".concat(u):"","/clusters/").concat(t).concat(a?"/projects/".concat(a):"")}},{key:"getTableProps",value:function(){return{tableActions:M(M({},this.props.tableProps.tableActions),{},{selectActions:[]}),emptyProps:{desc:t("ALERTING_MESSAGE_EMPTY_DESC")}}}},{key:"getAlertingTypes",value:function(){return N.SEVERITY_LEVEL.map((function(e){return{text:t(e.label),value:e.value}}))}},{key:"getStatus",value:function(){return["pending","firing"].map((function(e){return{text:t("ALERT_RULE_".concat(e.toUpperCase())),value:e}}))}},{key:"render",value:function(){var e=this.props,a=e.bannerProps,r=e.tableProps;return m.default.createElement(O.ListPage,(0,o.default)({},this.props,{getData:this.getData,noWatch:!0}),m.default.createElement(_.default,(0,o.default)({},a,{tips:this.tips,tabs:this.tabs,icon:"loudspeaker",title:t("ALERTING_MESSAGE_PL"),description:t("ALERT_MESSAGE_DESC"),className:(0,T.default)(w.default.tab_button,a.className)})),m.default.createElement(C.default,(0,o.default)({},r,this.getTableProps(),{rowKey:"id",itemActions:[],columns:this.getColumns(),onCreate:this.showCreate,showKeywords:!0})))}},{key:"tabs",get:function(){var e,a,r=this.props.match.params.namespace,n=globals.app.hasKSModule("whizard"),l="none"!==(null===(e=window.parent.globals.ksConfig)||void 0===e||null===(a=e.multicluster)||void 0===a?void 0:a.clusterRole);if(r)return{};var u={value:this.state.type,onChange:this.handleTabChange,options:[{value:"custom",label:t("ALERTS_FROM_CUSTOM_POLICIES"),count:this.props.store.ruleCount}]},o=(0,S.checkComponentAuthorized)({componentName:"whizard",componentConstraints:(0,v.default)(globals,"licenseInfo.componentConstraints",[])});return l&&n?u.options.push(M({value:"builtin",label:t("ALERTS_FROM_BUILT_IN_POLICIES"),disabled:!0},o&&{tooltip:{content:t("BUILT_IN_POLICIES_TOOLTIP"),placement:"left"}})):u.options.push({value:"builtin",label:t("ALERTS_FROM_BUILT_IN_POLICIES"),count:this.props.store.builtinRuleCount}),u}},{key:"tips",get:function(){return[{title:t("REQUESTS_FOR_TRIGGER_AN_ALARM_Q"),description:t("REQUESTS_FOR_TRIGGER_AN_ALARM_A")}]}}]),r}(m.default.Component))||u;a.default=A},function(e,t,a){"use strict";var r=a(20);a(12),a(11),a(6),a(9),a(13),a(10),a(7),Object.defineProperty(t,"__esModule",{value:!0}),t.ALL_METRICS_CONFIG=t.RESOURCE_METRICS_CONFIG=void 0,a(12),a(11),a(6),a(28),a(34),a(15),a(9),a(13),a(10),a(4),a(7);var n=r(a(30)),l=r(a(3703)),u=r(a(3704)),o=r(a(3705));function i(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function c(e){for(var t=1;t0?"builtin":"custom"},e.fetchCount=function(){var t=e.props.match.params,a=t.cluster;!t.namespace&&e.props.store.fetchCount({cluster:a})},e.handleTabChange=function(t){e.setState({type:t},(function(){e.props.store.list.reset(),e.getData()}))},e.getData=(0,p.default)(i.default.mark((function t(){var a,r,n,l,u=arguments;return i.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=u.length>0&&void 0!==u[0]?u[0]:{},r=a.silent,n=(0,s.default)(a,["silent"]),l=e.props.store,r&&(l.list.silent=!0),t.next=5,l.fetchList(j(j(j({},e.props.match.params),n),{},{limit:n.limit||l.list.limit||10,page:n.page||l.list.page||1,type:e.state.type}));case 5:l.list.silent=!1;case 6:case"end":return t.stop()}}),t)}))),e.getColumns=function(){var a=e.props.getFilteredValue;return[{title:t("NAME"),dataIndex:"name",search:!0,render:function(t,a){return S.default.createElement(E.default,{avatar:"/assets/bell_gear_duotone.svg",title:(0,N.getDisplayName)(a),desc:a.description,className:P.default["table-icon"],to:"builtin"===e.state.type?"".concat(e.props.match.url,"/builtin/").concat(a.name):"".concat(e.props.match.url,"/").concat(t)})}},{title:t("POLICY_STATUS"),dataIndex:"enable",filters:e.getEnableFilter(),filteredValue:a("enable"),isHideable:!0,search:!0,width:"16%",render:function(e,a){return S.default.createElement(b.default,{className:P.default.status_icon,type:a.enabled&&JSON.parse(a.enabled)?"active":"disabled",name:a.enabled&&JSON.parse(a.enabled)?t("ENABLED"):t("DISABLED")})}},{title:t("RULE_STATUS"),dataIndex:"state",search:!0,filters:e.getStatus(),isHideable:!0,width:"16%",render:function(e,t){return S.default.createElement(M.default,{rulesStats:t.rulesStats})}},{title:t("TIME_SPENT"),dataIndex:"evaluationTime",isHideable:!0,width:"12%",render:function(e){return S.default.createElement("span",null,"-"!==e?t("TIME_S",{num:e}):e)}},{title:t("RECENT_DETECT_TIME"),dataIndex:"lastEvaluation",isHideable:!0,width:"15.8%",render:function(e,t){var a=(0,k.default)(t._originDataWithStatus,"status.lastEvaluation");return S.default.createElement("span",null,a?(0,N.getLocalTime)(a).format("YYYY-MM-DD HH:mm:ss"):"-")}}]},e.showCreate=function(){var a=e.props,r=a.match,n=a.routing,l=a.module;return e.props.trigger("alerting.policy.create",{module:l,cluster:r.params.cluster,namespace:r.params.namespace,title:t("CREATE_ALERTING_POLICY"),success:function(){n.query(),e.fetchCount()}})},e}return(0,h.default)(n,[{key:"componentDidMount",value:function(){this.fetchCount(),localStorage.removeItem("alert-policy-detail-referrer")}},{key:"getStatus",value:function(){return T.ALERTING_STATUS.map((function(e){return{text:t("ALERT_RULE_".concat(e.toUpperCase())),value:e}}))}},{key:"getEnableFilter",value:function(){return[{text:t("ENABLED"),value:"true"},{text:t("DISABLED"),value:"false"}]}},{key:"getAlertingTypes",value:function(){return D.SEVERITY_LEVEL.map((function(e){return{text:t(e.label),value:e.value}}))}},{key:"render",value:function(){var e=this.props,t=e.bannerProps,a=e.tableProps,r=this.showCreate,n=this.tableActions;return"builtin"===this.state.type&&(n.selectActions=n.selectActions.filter((function(e){return"delete"!==e.action})).concat(this.resetPolicy),r=null),S.default.createElement(O.ListPage,(0,o.default)({},this.props,{getData:this.getData,noWatch:!0}),S.default.createElement(_.default,(0,o.default)({},t,{icon:function(){return S.default.createElement("img",{src:"/assets/bell_gear_duotone.svg"})},tips:this.tips,tabs:this.tabs,className:(0,R.default)(P.default.tab_button,t.className)})),S.default.createElement(C.default,(0,o.default)({},a,{rowKey:"name",itemActions:this.itemActions,columns:this.getColumns(),tableActions:n,onCreate:r})))}},{key:"tabs",get:function(){var e,a,r=this.props.match.params.namespace,n=globals.app.hasKSModule("whizard"),l="none"!==(null===(e=window.parent.globals.ksConfig)||void 0===e||null===(a=e.multicluster)||void 0===a?void 0:a.clusterRole);if(r)return{};var u={value:this.state.type,onChange:this.handleTabChange,options:[{value:"custom",label:t("CUSTOM_POLICIES"),count:this.props.store.ruleCount}]},o=(0,N.checkComponentAuthorized)({componentName:"whizard",componentConstraints:(0,k.default)(globals,"licenseInfo.componentConstraints",[])});return l&&n?u.options.push(j({value:"builtin",label:t("BUILT_IN_POLICIES"),disabled:!0},o&&{tooltip:{content:t("BUILT_IN_POLICIES_TOOLTIP"),placement:"left"}})):u.options.push({value:"builtin",label:t("BUILT_IN_POLICIES"),count:this.props.store.builtinRuleCount}),u}},{key:"tips",get:function(){return[{title:t("REQUESTS_FOR_PUSH_AN_ALARM_Q"),description:t("REQUESTS_FOR_PUSH_AN_ALARM_A")}]}},{key:"itemActions",get:function(){var a=this,r=this.props,n=r.trigger,l=r.routing,u=r.match,o=r.name,i=this.state.type,c=[{key:"edit",icon:"pen",text:t("EDIT_INFORMATION"),action:"edit",onClick:function(a){n("alerting.baseinfo.edit",{type:i,detail:a,module:e,cluster:u.params.cluster,namespace:u.params.namespace,title:t("EDIT_ALERTING_POLICY"),success:l.query})}},{key:"editYaml",icon:"pen",text:t("EDIT_YAML"),action:"edit",onClick:function(e){return n("alerting.yaml.edit",{type:i,detail:e,cluster:u.params.cluster,namespace:u.params.namespace,title:t("EDIT_ALERTING_POLICY"),success:l.query})}},{key:"editRule",icon:"wrench",text:t("EDIT_ALERT_RULES"),action:"edit",onClick:function(e){n("alerting.rule.edit",{type:i,detail:e,cluster:u.params.cluster,namespace:u.params.namespace,success:l.query})}},{key:"disablePolicy",icon:function(e){return JSON.parse(e.enabled)?"stop":"start"},text:function(e){return JSON.parse(e.enabled)?t("DISABLE"):t("ENABLE")},action:"edit",onClick:function(e){var a=JSON.parse(e.enabled);n(a?"alerting.rule.update":"enable.alerting.rule",{type:i,detail:e,cluster:u.params.cluster,namespace:u.params.namespace,resourceName:o,success:l.query,title:a?t("DISABLE_ALERTING_POLICY"):t("ENABLE_ALERTING_POLICY"),enabled:a})}}];return"builtin"===i?c.push(this.resetPolicy):c.push({key:"delete",icon:"trash",text:t("DELETE"),action:"delete",onClick:function(e){return n("alerting.rule.delete",{type:i,name:o,cluster:u.params.cluster,namespace:u.params.namespace,detail:e,success:function(){l.query(),a.fetchCount()}})}}),c}},{key:"tableActions",get:function(){var e=this.props,a=e.tableProps,r=e.trigger,n=e.name,l=e.store,o=e.match,i=e.routing,c=this.state.type,s=(0,w.toJS)(l.list.data),f=(0,w.toJS)(l.list.selectedRowKeys),d=s.filter((function(e){return f.includes(e.name)})).every((function(e){return!JSON.parse(e.enabled)})),p=s.filter((function(e){return f.includes(e.name)})).every((function(e){return JSON.parse(e.enabled)}));return j(j({},a.tableActions),{},{selectActions:[].concat((0,u.default)(a.tableActions.selectActions),[{key:"enable",text:t("ENABLE"),action:"edit",disabled:p,onClick:function(){r("enable.alerting.rule",{type:c,resourceName:n,cluster:o.params.cluster,namespace:o.params.namespace,title:t("ENABLE_ALERTING_POLICY"),enabled:!1,success:i.query,batchMode:!0})}},{key:"disable",text:t("DISABLE"),action:"edit",disabled:d,onClick:function(){r("alerting.rule.update",{type:c,resourceName:n,cluster:o.params.cluster,namespace:o.params.namespace,enabled:!0,success:i.query,batchMode:!0})}}])})}},{key:"resetPolicy",get:function(){var e=this.props,a=e.match,r=e.trigger,n=e.routing,l=this.state.type;return{key:"reset",icon:"restart",text:t("RESET"),action:"edit",onClick:function(e){return r("alerting.rule.reset",{type:l,cluster:a.params.cluster,detail:e,success:n.query})}}}}]),n}(S.default.Component),U=(0,O.default)({store:new I.default,module:"rules",authKey:"rulegroups",name:"ALERTING_POLICY"})(d=function(e){(0,v.default)(a,e);var t=L(a);function a(){return(0,m.default)(this,a),t.apply(this,arguments)}return a}(x))||d;a.default=U;var z=(0,O.default)({store:new I.default,module:"rules",authKey:"clusterrulegroups",name:"ALERTING_POLICY"})(f=function(e){(0,v.default)(a,e);var t=L(a);function a(){return(0,m.default)(this,a),t.apply(this,arguments)}return a}(x))||f;a.ClusterAlertingPolicies=z}).call(this,r(138)(e))},function(e,a,r){"use strict";r(15);var n=r(20);r(18),r(98),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var l=n(r(30)),u=n(r(96));r(18),r(98);var o=n(r(0)),i=r(186),c=n(r(3)),s=n(r(3707)),f=function(e){var a=e.rulesStats,r={pending:t("ALERT_RULE_PENDING"),inactive:t("ALERT_RULE_INACTIVE"),firing:t("ALERT_RULE_FIRING"),disabled:t("DISABLED")},n=Object.entries(a).map((function(e){var t=(0,u.default)(e,2),a=t[0],n=t[1];return{label:r[a],type:a,value:n}}));return o.default.createElement(i.Tooltip,{content:o.default.createElement(o.default.Fragment,null,n.map((function(e,t){return o.default.createElement("div",{key:t,className:(0,c.default)(s.default.tipContent,[s.default[e.type]],(0,l.default)({},s.default.disabled,0===e.value))},o.default.createElement("span",null,e.label),o.default.createElement("span",null,e.value))}))),placement:"right"},o.default.createElement("ul",{className:s.default.statusBox},n.map((function(e,t){return o.default.createElement("li",{key:t,className:(0,c.default)([s.default["li-".concat(e.type)]],(0,l.default)({},s.default.iconDisabled,0===e.value))},e.value)}))))};a.default=f},function(e,t,a){"use strict";var r=a(20);a(12),a(5),a(827),a(11),a(6),a(9),a(13),a(10),a(7),Object.defineProperty(t,"__esModule",{value:!0}),t.getClassNames=c,t.mapProps=void 0;var n=r(a(30)),l=r(a(58));a(12),a(5),a(827),a(11),a(6),a(28),a(34),a(15),a(9),a(13),a(10),a(4),a(7);var u=r(a(3));function o(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function i(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:24,n=c(e),u=n.className,o=n.colorProps,s=e.size,f=e.width,d=e.height,p=(e.primary,e.secondary,e.variant,(0,l.default)(e,["size","width","height","primary","secondary","variant"]));return i(i(i({width:null!==(t=null!=s?s:f)&&void 0!==t?t:r,height:null!==(a=null!=s?s:d)&&void 0!==a?a:r,viewBox:"0 0 ".concat(r," ").concat(r),xmlns:"http://www.w3.org/2000/svg"},p),o),{},{className:u})}},,,function(e,a,r){"use strict";var n=r(20);r(12),r(5),r(11),r(6),r(84),r(86),r(18),r(48),r(16),r(9),r(13),r(10),r(4),r(22),r(23),r(17),r(85),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.Component=a.default=void 0,r(12),r(45),r(5),r(11),r(6),r(84),r(86),r(18),r(28),r(48),r(42),r(16),r(34),r(15),r(9),r(13),r(10),r(4),r(22),r(23),r(57),r(17),r(85),r(7);var l,u,o,i,c,s=n(r(61)),f=n(r(30)),d=n(r(65)),p=n(r(36)),m=n(r(37)),h=n(r(88)),v=n(r(55)),g=n(r(56)),y=n(r(51)),E=n(r(49)),b=(n(r(66)),r(186)),_=n(r(3)),O=n(r(788)),S=n(r(846)),C=n(r(1047)),D=n(r(886)),k=n(r(987)),N=n(r(158)),T=r(14),R=r(239),w=n(r(0)),I=n(r(1209)),M=n(r(1401)),P=n(r(1211)),A=r(52),j=r(72),L=r(794),x=n(r(3728));function U(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function z(e){for(var t=1;t0||a.indexOf("used_requests")>0)&&(r=(0,N.default)(l)||""===l?"N/A":""),!r){var u=j.MONITOR_RANK_UNIT_MAP[a],o=null!=l?l:0;"%"===u?r="".concat((0,L.getValueByUnit)(o,u),"%"):""===u?r=Math.round(100*o)/100:(n=(0,L.getSuitableUnit)(o,u),r=(0,L.getValueByUnit)(o,n))}return"".concat("gpu"===n?"".concat(r," GPU"):"core"===n?t("VALUE_CORES",{value:r}):t("VALUE_UNIT",{value:r,unit:n}))},e.renderQos=function(e){return w.default.createElement(w.default.Fragment,null,e.qos_class&&w.default.createElement(b.Tooltip,{content:j.COLOR_QOS[e.qos_class].label},w.default.createElement("span",{style:{display:"inline-block",marginRight:"4px",width:"16px",height:"16px",lineHeight:"16px",textAlign:"center",borderRadius:"2px",color:j.COLOR_QOS[e.qos_class].color,background:j.COLOR_QOS[e.qos_class].background}},e.qos_class.slice(0,1).toUpperCase())))},e.fetchRankData=function(t){e.store.fetchAll(z(z({},t),{},{cluster_resources_filter:e.clusters}))},(0,d.default)(e,"onChange",i,(0,h.default)(e)),(0,d.default)(e,"handleColumnsHide",c,(0,h.default)(e)),e}return(0,m.default)(r,[{key:"componentDidMount",value:function(){this.fetchRankData()}},{key:"renderToolbar",value:function(){return w.default.createElement("div",{className:(0,_.default)(x.default.toolbar,x.default.pane__toolbar,x.default.pane)},w.default.createElement(b.RadioGroup,{wrapClassName:"radio-group-button",value:this.type,onChange:this.onChange},w.default.createElement(b.RadioButton,{value:"node"},t("NODE_PL")),w.default.createElement(b.RadioButton,{value:"project"},t("PROJECT_PL")),w.default.createElement(b.RadioButton,{value:"pod"},t("POD_PL"))),w.default.createElement("div",{className:x.default.toolbar_filter},w.default.createElement(C.default,{className:x.default.columnMenu,title:t("CUSTOM_COLUMNS"),columns:this.columns,value:(0,T.toJS)(this.hideColumns),onChange:this.handleColumnsHide}),w.default.createElement(b.Select,{value:this.store.sort_metric,onChange:this.store.changeSortMetric,options:this.options}),w.default.createElement(b.Select,{className:x.default.sortTypeSelect,value:this.store.sort_type,onChange:this.store.changeSortType,options:[{value:"desc",label:t("SORT_BY_DESC")},{value:"asc",label:t("SORT_BY_ASC")}]})))}},{key:"renderList",value:function(){var e=this.store.data.toJS();return w.default.createElement("div",{className:x.default.listContainer},w.default.createElement(k.default,{columns:this.filteredColumns,dataSource:e,emptyText:w.default.createElement(S.default,null),loading:this.store.isLoading,store:this.store}),this.renderPagination())}},{key:"renderPagination",value:function(){var e=this.store,t=e.page,a=e.total,r=e.limit;return w.default.createElement("div",{className:(0,_.default)(x.default.pane,x.default.pane__pagination)},w.default.createElement(D.default,{page:t,total:a,limit:r,onChange:this.store.changePagination}))}},{key:"render",value:function(){return w.default.createElement("div",{className:x.default.wrapper},this.renderToolbar(),this.renderList())}},{key:"store",get:function(){return this.sourceMap[this.type].store}},{key:"cluster",get:function(){return this.props.cluster}},{key:"options",get:function(){var e=this,a=this.sourceMap[this.type].name;return this.store.sort_metric_options.filter((function(t){return!(0,T.toJS)(e.hideColumns).includes("".concat(t,"-").concat(a))})).map((function(e){return{value:e,label:t("SORT_BY_".concat(e.toUpperCase()))}}))}},{key:"columns",get:function(){var e,a=this,r=this.sourceMap[this.type],n=r.store,l=r.icon,u=r.name,o=r.url,i=r.desc,c=r.descLabel,f=null===(e=n.sort_metric_options)||void 0===e?void 0:e.map((function(e){return{key:"".concat(e,"-").concat(u),sort_metric:e,title:t("".concat(j.MONITOR_RANK_METERIC_LOCALS[e],"_TCAP")),isHideable:!0,render:function(t){return w.default.createElement("div",null,w.default.createElement("h3",null,a.transData(t,e)))}}})),d=[{title:t("namespace"===u?"PROJECT":u.toUpperCase()),width:"15%",key:u,render:function(e){var r=c?"".concat(t(c),": ").concat(null==e?void 0:e[i]," || '-'"):null==e?void 0:e[i];"WORKSPACES"===c&&(r=w.default.createElement("span",null,"".concat(t(c),": "),(0,A.showNameAndAlias)(null==e?void 0:e[i],"workspace")||"-")),"PROJECTS"===c&&(r=w.default.createElement("span",null,"".concat(t(c),": "),(0,A.showNameAndAlias)(null==e?void 0:e[i],"project")||"-"));var n=a.renderQos(e);return w.default.createElement(O.default,{className:x.default.avatar,icon:l,title:w.default.createElement(w.default.Fragment,null,n,"namespace"===u?(0,A.showNameAndAlias)(null==e?void 0:e[u],"project"):(null==e?void 0:e[u])||"-"),desc:r,iconSize:40,to:o(null==e?void 0:e[u],null==e?void 0:e.namespace)})}}];return(0,A.hideGPUByLicense)([].concat(d,(0,s.default)(f)),this.cluster)}},{key:"filteredColumns",get:function(){var e=this;return this.columns.filter((function(t){return!e.hideColumns.includes(t.key||t.dataIndex)}))}}]),r}(w.default.Component),u=(0,E.default)(l.prototype,"type",[T.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return"node"}}),o=(0,E.default)(l.prototype,"hideColumns",[T.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),i=(0,E.default)(l.prototype,"onChange",[T.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(t){e.store.sort_metric=e.store.sort_metric_options[0],e.hideColumns=[],new Promise((function(a){e.type=t,a()})).then((function(){e.fetchRankData()}))}}}),c=(0,E.default)(l.prototype,"handleColumnsHide",[T.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(t){e.hideColumns=t;var a=e.sourceMap[e.type].name;if(t.includes("".concat(e.store.sort_metric,"-").concat(a))){var r,n=e.store.sort_metric_options.filter((function(e){return!t.includes("".concat(e,"-").concat(a))}));e.store.changeSortMetric(null!==(r=n[0])&&void 0!==r?r:"")}}}}),l),B=(0,R.inject)("rootStore")((0,R.observer)(V));a.default=B;var Y=V;a.Component=Y},function(e,a,r){"use strict";r(15);var n=r(157),l=r(20);Object.defineProperty(a,"__esModule",{value:!0}),a.default=function(e){var a=e.mertic,r=void 0===a?{}:a,n=e.unit,l=e.resourceType,d=(0,o.useState)("requests"),p=(0,u.default)(d,2),m=p[0],h=p[1],v=(0,o.useState)(0),g=(0,u.default)(v,2),y=g[0],E=g[1];(0,o.useEffect)((function(){var e=0;0===r.total||(0,s.default)(r)||(e=("requests"===m?r.requests:r.limits)/r.total*100);E(e)}),[m,r]),(0,o.useEffect)((function(){h("requests")}),[l]);var b=(0,o.useCallback)((function(e){h(e)}),[]);return o.default.createElement("div",{className:f.default.resourceRatio},o.default.createElement("div",{className:f.default.subTitle},o.default.createElement(i.RadioGroup,{mode:"button",value:m,onChange:b},o.default.createElement(i.RadioButton,{value:"requests"},t("QUOTA_REQUEST")),o.default.createElement(i.RadioButton,{value:"limit"},t("QUOTA_LIMIT")))),o.default.createElement("div",{className:f.default.radio},o.default.createElement("div",{className:f.default.radioWrapper},o.default.createElement("p",null,t("QUOTA_ALLOCATED")),o.default.createElement("p",null,"core"===n?t("VALUE_CORES",{value:"requests"===m?r.requests:r.limits}):t("VALUE_UNIT",{value:"requests"===m?r.requests:r.limits,unit:n}))),o.default.createElement("div",{className:f.default.middleStyle},"VS"),o.default.createElement("div",{className:f.default.radioWrapper},o.default.createElement("p",null,t("QUOTA_TOTAL")),o.default.createElement("p",null,"core"===n?t("VALUE_CORES",{value:r.total}):t("VALUE_UNIT",{value:r.total,unit:n})))),o.default.createElement(c.default,{bgColor:"#eff4f9",maskBgColor:"#E3E9EF",percent:y}))};var u=l(r(96)),o=n(r(0)),i=r(186),c=l(r(1315)),s=l(r(63)),f=l(r(3740))},,,,function(e,t,a){e.exports={wrapper:"_7Y1PQK32lHq_nx8invFr0",title:"_5BsEswWpOXBRPzjAZKp1l",list:"_1-TRSuTGmycV9Jbf6f7cpA",item:"_1pTjLQ2gTmTYiDPkGxZqs2",icon:"_2cbC1jSIwrgYRS-VGF7pLk",status:"_2WFWmQJcW69bXrhE9fKVNp",info:"JQMG4HZH7ovOKnUMWyvnA",tag:"_2eqdBFa45ohBJ99HTLfZZX",emtpy:"_1Pwr7wYX9Uxhe5lB9-IvjM"}},function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(84),r(27),r(190),r(4),r(23),r(17),r(85),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(84),r(42),r(27),r(190),r(4),r(23),r(57),r(17),r(85);var l,u=n(r(36)),o=n(r(37)),i=n(r(55)),c=n(r(56)),s=n(r(51)),f=n(r(0)),d=r(239),p=n(r(26)),m=n(r(158)),h=r(52),v=r(794),g=r(186),y=n(r(846)),E=n(r(1810)),b=n(r(987)),_=n(r(3826));function O(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,s.default)(e);if(t){var n=(0,s.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,c.default)(this,a)}}var S=(0,d.observer)(l=function(e){(0,i.default)(r,e);var a=O(r);function r(){var e;(0,u.default)(this,r);for(var n=arguments.length,l=new Array(n),o=0;o1&&void 0!==arguments[1]?arguments[1]:"";return isNaN(e)?"-":"".concat(e," ").concat(t)}},{key:"render",value:function(){var e=this.props,t=e.theme,a=e.store,r=e.cluster,n=this.props.store.data,l=(0,v.hideGPUByLicense)(this.columns,r);return h.default.createElement(p.default,{rowKey:"namespace",theme:t,columns:l,store:a,dataSource:n.toJS(),emptyText:h.default.createElement(d.default,null)})}},{key:"prefix",get:function(){var e=this.props,t=e.workspace,a=e.cluster;return"".concat(t?"/".concat(t):"","/clusters/").concat(a,"/projects")}}]),r}(h.default.Component))||l)||l;a.default=E},function(e,t,a){"use strict";a.r(t),a.d(t,"ReactComponent",(function(){return i}));var r=a(315),n=a.n(r),l=a(0),u=a.n(l),o=u.a.createElement("g",{fill:"none",fillRule:"evenodd"},u.a.createElement("path",{fill:"#FFF",d:"M40 20.95c0-3.376-2.09-6.294-5.192-7.442.131-.714.197-1.438.196-2.164C35.004 5.082 29.943 0 23.706 0c-3.624 0-7.02 1.738-9.143 4.721a5.878 5.878 0 00-3.657-1.246c-3.298 0-6.008 2.689-6.008 6.033 0 .721.13 1.443.36 2.099C2.122 12.689 0 15.705 0 19.049a7.93 7.93 0 005.224 7.476 11.64 11.64 0 00-.195 2.163c0 6.23 5.06 11.312 11.265 11.312 3.657 0 7.02-1.77 9.143-4.721a6.002 6.002 0 003.69 1.278c3.297 0 6.008-2.688 6.008-6.032 0-.722-.131-1.443-.36-2.099 3.07-1.115 5.225-4.13 5.225-7.475z"}),u.a.createElement("path",{fill:"#F4BD19",d:"M15.38 17.726l8.98 4.092 9.08-7.921c.131-.658.198-1.327.196-1.997 0-5.565-4.539-10.082-10.131-10.082-3.356 0-6.48 1.637-8.355 4.386l-1.514 7.791 1.744 3.732z"}),u.a.createElement("path",{fill:"#3CBEB1",d:"M6.56 26.097a10.3 10.3 0 00-.196 2.02c0 5.537 4.557 10.065 10.13 10.065a10.21 10.21 0 008.394-4.398l1.476-7.752-2-3.779-8.984-4.071-8.82 7.915z"}),u.a.createElement("path",{fill:"#E9478C",d:"M5.764 11.246l6.429 1.481 1.443-7.172c-.893-.673-1.96-1.01-3.094-1.01-2.784 0-5.087 2.223-5.087 4.984 0 .572.103 1.178.309 1.717z"}),u.a.createElement("path",{fill:"#2C458F",d:"M5.473 12.727c-2.7.884-4.564 3.534-4.564 6.413 0 2.814 1.703 5.333 4.275 6.315l8.452-7.787-1.542-3.37-6.621-1.57z"}),u.a.createElement("path",{fill:"#95C63D",d:"M25.455 34.41a5.115 5.115 0 003.072 1.045c2.796 0 5.11-2.223 5.11-4.984 0-.606-.104-1.178-.311-1.717l-6.456-1.481-1.415 7.138z"}),u.a.createElement("path",{fill:"#176655",d:"M27.192 25.702l6.505 1.57c2.653-.915 4.485-3.533 4.485-6.412 0-2.814-1.674-5.3-4.2-6.315l-8.527 7.722 1.737 3.435z"})),i=function(e){return u.a.createElement("svg",n()({viewBox:"0 0 40 40",width:"1em",height:"1em"},e),o)};t.default="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0MCIgaGVpZ2h0PSI0MCIgdmlld0JveD0iMCAwIDQwIDQwIj4KICAgIDxnIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+CiAgICAgICAgPHBhdGggZmlsbD0iI0ZGRiIgZD0iTTQwIDIwLjk1YzAtMy4zNzYtMi4wOS02LjI5NC01LjE5Mi03LjQ0Mi4xMzEtLjcxNC4xOTctMS40MzguMTk2LTIuMTY0QzM1LjAwNCA1LjA4MiAyOS45NDMgMCAyMy43MDYgMGMtMy42MjQgMC03LjAyIDEuNzM4LTkuMTQzIDQuNzIxYTUuODc4IDUuODc4IDAgMCAwLTMuNjU3LTEuMjQ2Yy0zLjI5OCAwLTYuMDA4IDIuNjg5LTYuMDA4IDYuMDMzIDAgLjcyMS4xMyAxLjQ0My4zNiAyLjA5OUMyLjEyMiAxMi42ODkgMCAxNS43MDUgMCAxOS4wNDlhNy45MyA3LjkzIDAgMCAwIDUuMjI0IDcuNDc2Yy0uMTMuNjg4LS4xOTUgMS40MS0uMTk1IDIuMTYzIDAgNi4yMyA1LjA2IDExLjMxMiAxMS4yNjUgMTEuMzEyIDMuNjU3IDAgNy4wMi0xLjc3IDkuMTQzLTQuNzIxYTYuMDAyIDYuMDAyIDAgMCAwIDMuNjkgMS4yNzhjMy4yOTcgMCA2LjAwOC0yLjY4OCA2LjAwOC02LjAzMiAwLS43MjItLjEzMS0xLjQ0My0uMzYtMi4wOTkgMy4wNy0xLjExNSA1LjIyNS00LjEzIDUuMjI1LTcuNDc1eiIvPgogICAgICAgIDxwYXRoIGZpbGw9IiNGNEJEMTkiIGQ9Ik0xNS4zOCAxNy43MjZsOC45OCA0LjA5MiA5LjA4LTcuOTIxYy4xMzEtLjY1OC4xOTgtMS4zMjcuMTk2LTEuOTk3IDAtNS41NjUtNC41MzktMTAuMDgyLTEwLjEzMS0xMC4wODItMy4zNTYgMC02LjQ4IDEuNjM3LTguMzU1IDQuMzg2bC0xLjUxNCA3Ljc5MSAxLjc0NCAzLjczMnoiLz4KICAgICAgICA8cGF0aCBmaWxsPSIjM0NCRUIxIiBkPSJNNi41NiAyNi4wOTdhMTAuMyAxMC4zIDAgMCAwLS4xOTYgMi4wMmMwIDUuNTM3IDQuNTU3IDEwLjA2NSAxMC4xMyAxMC4wNjVhMTAuMjEgMTAuMjEgMCAwIDAgOC4zOTQtNC4zOThsMS40NzYtNy43NTItMi0zLjc3OS04Ljk4NC00LjA3MS04LjgyIDcuOTE1eiIvPgogICAgICAgIDxwYXRoIGZpbGw9IiNFOTQ3OEMiIGQ9Ik01Ljc2NCAxMS4yNDZsNi40MjkgMS40ODEgMS40NDMtNy4xNzJjLS44OTMtLjY3My0xLjk2LTEuMDEtMy4wOTQtMS4wMS0yLjc4NCAwLTUuMDg3IDIuMjIzLTUuMDg3IDQuOTg0IDAgLjU3Mi4xMDMgMS4xNzguMzA5IDEuNzE3eiIvPgogICAgICAgIDxwYXRoIGZpbGw9IiMyQzQ1OEYiIGQ9Ik01LjQ3MyAxMi43MjdjLTIuNy44ODQtNC41NjQgMy41MzQtNC41NjQgNi40MTMgMCAyLjgxNCAxLjcwMyA1LjMzMyA0LjI3NSA2LjMxNWw4LjQ1Mi03Ljc4Ny0xLjU0Mi0zLjM3LTYuNjIxLTEuNTd6Ii8+CiAgICAgICAgPHBhdGggZmlsbD0iIzk1QzYzRCIgZD0iTTI1LjQ1NSAzNC40MWE1LjExNSA1LjExNSAwIDAgMCAzLjA3MiAxLjA0NWMyLjc5NiAwIDUuMTEtMi4yMjMgNS4xMS00Ljk4NCAwLS42MDYtLjEwNC0xLjE3OC0uMzExLTEuNzE3bC02LjQ1Ni0xLjQ4MS0xLjQxNSA3LjEzOHoiLz4KICAgICAgICA8cGF0aCBmaWxsPSIjMTc2NjU1IiBkPSJNMjcuMTkyIDI1LjcwMmw2LjUwNSAxLjU3YzIuNjUzLS45MTUgNC40ODUtMy41MzMgNC40ODUtNi40MTIgMC0yLjgxNC0xLjY3NC01LjMtNC4yLTYuMzE1bC04LjUyNyA3LjcyMiAxLjczNyAzLjQzNXoiLz4KICAgIDwvZz4KPC9zdmc+Cg=="},function(e,t,a){"use strict";a.r(t),a.d(t,"ReactComponent",(function(){return i}));var r=a(315),n=a.n(r),l=a(0),u=a.n(l),o=u.a.createElement("path",{fill:"#231F20",d:"M9.057 3.472c-.453-.453-1.057-.68-1.736-.68-.68 0-1.283.302-1.66.68-.453.453-.68 1.056-.68 1.736 0 .679.302 1.283.68 1.735.452.453 1.056.68 1.66.68.679 0 1.283-.302 1.736-.68.452-.452.679-1.056.679-1.735 0-.68-.302-1.283-.68-1.736zM7.32 36.982c.679 0 1.283-.303 1.736-.68.452-.453.679-1.057.679-1.736 0-.68-.302-1.283-.68-1.736-.452-.453-1.056-.68-1.735-.68-.68 0-1.283.303-1.66.68-.453.453-.68 1.057-.68 1.736 0 .68.302 1.283.68 1.736.377.377.98.68 1.66.68zm13.132-7.397a2.152 2.152 0 001.434-1.132l.075-.076c.302-.528.378-1.207.227-1.735-.151-.604-.529-1.133-1.132-1.51-.529-.302-1.208-.377-1.812-.226a2.152 2.152 0 00-1.434 1.132 2.71 2.71 0 00-.226 1.887c.15.603.528 1.132 1.132 1.509.453.226 1.132.302 1.736.15zM9.81 17.358c-.603-.603-1.51-1.056-2.49-1.056-.981 0-1.812.377-2.49 1.056-.605.604-.982 1.51-.982 2.491 0 .981.377 1.887.981 2.49.604.604 1.51 1.057 2.49 1.057.982 0 1.812-.377 2.491-1.056.604-.68.981-1.51.981-2.49 0-.982-.377-1.812-.98-2.492zm-1.434-4.15c1.434.226 2.642.905 3.623 1.886.15.151.302.302.453.529l2.415-1.434c-.302-.981-.302-2.038-.076-3.02C15.17 9.888 16 8.68 17.208 8h.075c1.208-.68 2.642-.83 3.925-.528a5.407 5.407 0 013.17 2.49 5.759 5.759 0 01.528 4c-.378 1.283-1.208 2.49-2.415 3.17l-.302.226c-1.132.529-2.415.68-3.547.302-.982-.226-1.812-.83-2.491-1.585l-2.415 1.434a6.26 6.26 0 01.453 2.416c0 .83-.151 1.66-.453 2.415l2.415 1.434c.68-.755 1.585-1.283 2.49-1.585a4.829 4.829 0 013.925.528h.076c1.207.755 1.962 1.887 2.34 3.17.376 1.283.226 2.717-.53 4l-.075.075c-.754 1.208-1.811 2.038-3.094 2.415a4.829 4.829 0 01-3.925-.528 5.581 5.581 0 01-2.415-3.17c-.226-.98-.226-2.037.076-3.019l-2.566-1.51-.453.454c-.981.98-2.189 1.66-3.623 1.887v2.792a5.41 5.41 0 012.566 1.434c.906.981 1.51 2.264 1.51 3.698 0 1.434-.604 2.793-1.51 3.698-.98.981-2.264 1.51-3.698 1.51-1.434 0-2.717-.604-3.698-1.51-.905-.98-1.51-2.264-1.51-3.698 0-1.434.605-2.792 1.51-3.698a5.41 5.41 0 012.566-1.434v-2.792c-1.434-.227-2.641-.906-3.622-1.887a6.8 6.8 0 01-1.963-4.755c0-1.887.755-3.547 1.963-4.755.98-.98 2.188-1.66 3.622-1.886v-2.793a5.41 5.41 0 01-2.566-1.434C2.642 8 2.037 6.717 2.037 5.283c0-1.434.605-2.792 1.51-3.698C4.453.604 5.811 0 7.245 0c1.434 0 2.717.604 3.698 1.585.906.981 1.51 2.264 1.51 3.698 0 1.434-.604 2.792-1.51 3.698a5.41 5.41 0 01-2.566 1.434v2.793zm13.51-1.887c-.378-.604-.906-.981-1.434-1.132-.604-.151-1.283-.076-1.811.226-.604.302-.982.906-1.133 1.51a2.76 2.76 0 00.227 1.886c.302.604.83.981 1.434 1.132.604.151 1.283.076 1.811-.226.528-.377.906-.906 1.057-1.434.226-.68.15-1.358-.151-1.962z"}),i=function(e){return u.a.createElement("svg",n()({viewBox:"0 0 26 40",width:"1em",height:"1em"},e),o)};t.default="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNiIgaGVpZ2h0PSI0MCIgdmlld0JveD0iMCAwIDI2IDQwIj4KICAgIDxwYXRoIGZpbGw9IiMyMzFGMjAiIGZpbGwtcnVsZT0ibm9uemVybyIgZD0iTTkuMDU3IDMuNDcyYy0uNDUzLS40NTMtMS4wNTctLjY4LTEuNzM2LS42OC0uNjggMC0xLjI4My4zMDItMS42Ni42OC0uNDUzLjQ1My0uNjggMS4wNTYtLjY4IDEuNzM2IDAgLjY3OS4zMDIgMS4yODMuNjggMS43MzUuNDUyLjQ1MyAxLjA1Ni42OCAxLjY2LjY4LjY3OSAwIDEuMjgzLS4zMDIgMS43MzYtLjY4LjQ1Mi0uNDUyLjY3OS0xLjA1Ni42NzktMS43MzUgMC0uNjgtLjMwMi0xLjI4My0uNjgtMS43MzZ6TTcuMzIgMzYuOTgyYy42NzkgMCAxLjI4My0uMzAzIDEuNzM2LS42OC40NTItLjQ1My42NzktMS4wNTcuNjc5LTEuNzM2IDAtLjY4LS4zMDItMS4yODMtLjY4LTEuNzM2LS40NTItLjQ1My0xLjA1Ni0uNjgtMS43MzUtLjY4LS42OCAwLTEuMjgzLjMwMy0xLjY2LjY4LS40NTMuNDUzLS42OCAxLjA1Ny0uNjggMS43MzYgMCAuNjguMzAyIDEuMjgzLjY4IDEuNzM2LjM3Ny4zNzcuOTguNjggMS42Ni42OHptMTMuMTMyLTcuMzk3YTIuMTUyIDIuMTUyIDAgMCAwIDEuNDM0LTEuMTMybC4wNzUtLjA3NmMuMzAyLS41MjguMzc4LTEuMjA3LjIyNy0xLjczNS0uMTUxLS42MDQtLjUyOS0xLjEzMy0xLjEzMi0xLjUxLS41MjktLjMwMi0xLjIwOC0uMzc3LTEuODEyLS4yMjZhMi4xNTIgMi4xNTIgMCAwIDAtMS40MzQgMS4xMzIgMi43MSAyLjcxIDAgMCAwLS4yMjYgMS44ODdjLjE1LjYwMy41MjggMS4xMzIgMS4xMzIgMS41MDkuNDUzLjIyNiAxLjEzMi4zMDIgMS43MzYuMTV6TTkuODEgMTcuMzU4Yy0uNjAzLS42MDMtMS41MS0xLjA1Ni0yLjQ5LTEuMDU2LS45ODEgMC0xLjgxMi4zNzctMi40OSAxLjA1Ni0uNjA1LjYwNC0uOTgyIDEuNTEtLjk4MiAyLjQ5MSAwIC45ODEuMzc3IDEuODg3Ljk4MSAyLjQ5LjYwNC42MDQgMS41MSAxLjA1NyAyLjQ5IDEuMDU3Ljk4MiAwIDEuODEyLS4zNzcgMi40OTEtMS4wNTYuNjA0LS42OC45ODEtMS41MS45ODEtMi40OSAwLS45ODItLjM3Ny0xLjgxMi0uOTgtMi40OTJ6bS0xLjQzNC00LjE1YzEuNDM0LjIyNiAyLjY0Mi45MDUgMy42MjMgMS44ODYuMTUuMTUxLjMwMi4zMDIuNDUzLjUyOWwyLjQxNS0xLjQzNGMtLjMwMi0uOTgxLS4zMDItMi4wMzgtLjA3Ni0zLjAyQzE1LjE3IDkuODg4IDE2IDguNjggMTcuMjA4IDhoLjA3NWMxLjIwOC0uNjggMi42NDItLjgzIDMuOTI1LS41MjhhNS40MDcgNS40MDcgMCAwIDEgMy4xNyAyLjQ5Yy42NzkgMS4yODMuODMgMi43MTcuNTI4IDQtLjM3OCAxLjI4My0xLjIwOCAyLjQ5LTIuNDE1IDMuMTdsLS4zMDIuMjI2Yy0xLjEzMi41MjktMi40MTUuNjgtMy41NDcuMzAyLS45ODItLjIyNi0xLjgxMi0uODMtMi40OTEtMS41ODVsLTIuNDE1IDEuNDM0Yy4zMDIuNzU1LjQ1MyAxLjUxLjQ1MyAyLjQxNiAwIC44My0uMTUxIDEuNjYtLjQ1MyAyLjQxNWwyLjQxNSAxLjQzNGMuNjgtLjc1NSAxLjU4NS0xLjI4MyAyLjQ5LTEuNTg1YTQuODI5IDQuODI5IDAgMCAxIDMuOTI1LjUyOGguMDc2YzEuMjA3Ljc1NSAxLjk2MiAxLjg4NyAyLjM0IDMuMTcuMzc2IDEuMjgzLjIyNiAyLjcxNy0uNTMgNGwtLjA3NS4wNzVjLS43NTQgMS4yMDgtMS44MTEgMi4wMzgtMy4wOTQgMi40MTVhNC44MjkgNC44MjkgMCAwIDEtMy45MjUtLjUyOCA1LjU4MSA1LjU4MSAwIDAgMS0yLjQxNS0zLjE3Yy0uMjI2LS45OC0uMjI2LTIuMDM3LjA3Ni0zLjAxOWwtMi41NjYtMS41MS0uNDUzLjQ1NGMtLjk4MS45OC0yLjE4OSAxLjY2LTMuNjIzIDEuODg3djIuNzkyYTUuNDEgNS40MSAwIDAgMSAyLjU2NiAxLjQzNGMuOTA2Ljk4MSAxLjUxIDIuMjY0IDEuNTEgMy42OTggMCAxLjQzNC0uNjA0IDIuNzkzLTEuNTEgMy42OTgtLjk4Ljk4MS0yLjI2NCAxLjUxLTMuNjk4IDEuNTEtMS40MzQgMC0yLjcxNy0uNjA0LTMuNjk4LTEuNTEtLjkwNS0uOTgtMS41MS0yLjI2NC0xLjUxLTMuNjk4IDAtMS40MzQuNjA1LTIuNzkyIDEuNTEtMy42OThhNS40MSA1LjQxIDAgMCAxIDIuNTY2LTEuNDM0di0yLjc5MmMtMS40MzQtLjIyNy0yLjY0MS0uOTA2LTMuNjIyLTEuODg3YTYuOCA2LjggMCAwIDEtMS45NjMtNC43NTVjMC0xLjg4Ny43NTUtMy41NDcgMS45NjMtNC43NTUuOTgtLjk4IDIuMTg4LTEuNjYgMy42MjItMS44ODZ2LTIuNzkzYTUuNDEgNS40MSAwIDAgMS0yLjU2Ni0xLjQzNEMyLjY0MiA4IDIuMDM3IDYuNzE3IDIuMDM3IDUuMjgzYzAtMS40MzQuNjA1LTIuNzkyIDEuNTEtMy42OThDNC40NTMuNjA0IDUuODExIDAgNy4yNDUgMGMxLjQzNCAwIDIuNzE3LjYwNCAzLjY5OCAxLjU4NS45MDYuOTgxIDEuNTEgMi4yNjQgMS41MSAzLjY5OCAwIDEuNDM0LS42MDQgMi43OTItMS41MSAzLjY5OGE1LjQxIDUuNDEgMCAwIDEtMi41NjYgMS40MzR2Mi43OTN6bTEzLjUxLTEuODg3Yy0uMzc4LS42MDQtLjkwNi0uOTgxLTEuNDM0LTEuMTMyLS42MDQtLjE1MS0xLjI4My0uMDc2LTEuODExLjIyNi0uNjA0LjMwMi0uOTgyLjkwNi0xLjEzMyAxLjUxYTIuNzYgMi43NiAwIDAgMCAuMjI3IDEuODg2Yy4zMDIuNjA0LjgzLjk4MSAxLjQzNCAxLjEzMi42MDQuMTUxIDEuMjgzLjA3NiAxLjgxMS0uMjI2LjUyOC0uMzc3LjkwNi0uOTA2IDEuMDU3LTEuNDM0LjIyNi0uNjguMTUtMS4zNTgtLjE1MS0xLjk2MnoiLz4KPC9zdmc+Cg=="},function(e,t,a){"use strict";a(15);var r=a(20);a(5),a(9),a(4),a(23),a(17),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(45),a(5),a(42),a(9),a(4),a(23),a(57),a(17);var n,l=r(a(36)),u=r(a(37)),o=r(a(55)),i=r(a(56)),c=r(a(51)),s=r(a(49)),f=a(14);function d(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,c.default)(e);if(t){var n=(0,c.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,i.default)(this,a)}}var p=(n=function(e){(0,o.default)(a,e);var t=d(a);function a(){var e;(0,l.default)(this,a);for(var r=arguments.length,n=new Array(r),u=0;u0&&void 0!==arguments[0]?arguments[0]:{};return"kapis/monitoring.kubesphere.io/v1alpha1".concat(e.getPath(t),"/").concat(e.module)},e}return(0,u.default)(a,[{key:"createGrafana",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.submitting(request.post("/kapis/monitoring.kubesphere.io/v1alpha1/".concat(this.getPath(t),"/clusterdashboards/").concat(e.grafanaDashboardName,"/template"),e))}}]),a}(r(a(68)).default),(0,s.default)(n.prototype,"createGrafana",[f.action],Object.getOwnPropertyDescriptor(n.prototype,"createGrafana"),n.prototype),n);t.default=p},function(e,t,a){"use strict";a.r(t),a.d(t,"ReactComponent",(function(){return i}));var r=a(315),n=a.n(r),l=a(0),u=a.n(l),o=u.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.4 25L8.733 23.75V0L20.4 25zm-20 0l6.667-1.25V10L.4 25zm0 1.667h20L7.9 30 .4 26.667z",fill:"#36435C"}),i=function(e){return u.a.createElement("svg",n()({viewBox:"0 0 21 30",fill:"none",width:"1em",height:"1em"},e),o)};t.default="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMjEgMzAiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNMjAuNCAyNUw4LjczMzM2IDIzLjc1VjBMMjAuNCAyNVpNMC40MDAwMjQgMjVMNy4wNjY2OSAyMy43NVYxMEwwLjQwMDAyNCAyNVpNMC40MDAwMjQgMjYuNjY2N0gyMC40TDcuOTAwMDIgMzBMMC40MDAwMjQgMjYuNjY2N1oiIGZpbGw9IiMzNjQzNUMiLz4KPC9zdmc+Cg=="},function(e,a,r){"use strict";var n=r(20),l=r(157);r(12),r(5),r(11),r(6),r(73),r(18),r(16),r(9),r(13),r(10),r(4),r(23),r(24),r(17),r(62),r(136),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(45),r(5),r(11),r(6),r(73),r(18),r(28),r(42),r(16),r(34),r(15),r(9),r(13),r(10),r(4),r(22),r(23),r(57),r(24),r(17),r(62),r(7);var u=n(r(315)),o=n(r(43)),i=n(r(30)),c=n(r(58));r(41);var s,f=n(r(44)),d=n(r(36)),p=n(r(37)),m=n(r(55)),h=n(r(56)),v=n(r(51)),g=n(r(0)),y=n(r(834)),E=l(r(793)),b=n(r(796)),_=n(r(1404)),O=r(186),S=n(r(63)),C=n(r(26)),D=r(52);function k(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function N(e){for(var t=1;t0&&void 0!==i[0]?i[0]:{},a=t.silent,r=(0,c.default)(t,["silent"]),l=n.props.store,a&&(l.list.silent=!0),u=N(N(N({},n.props.match.params),r),{},{cluster:(null==r?void 0:r.cluster)||n.state.cluster,labelSelector:n.labelSelector}),e.next=6,l.fetchList(u);case 6:l.list.silent=!1;case 7:case"end":return e.stop()}}),e)}))),n.getGatewayResource=function(e){var t=e.cluster;return n.isProjectGateway?{cluster:t,namespace:e.name.split("kubesphere-router-")[1],type:"project"}:n.isProjectGateway?void 0:{cluster:t,workspace:e.name.split("kubesphere-router-workspace-")[1],type:"workspace"}},n.handleFetch=function(e,t){n.routing.query(N(N({},e),{},{type:n.type}),t)},n.getColumns=function(){var e=n.props.getSortOrder;return[{title:t("NAME"),dataIndex:"name",sorter:!0,sortOrder:e("name"),render:function(e,t){return g.default.createElement(g.default.Fragment,null,g.default.createElement("span",{style:{fontWeight:700,cursor:"auto",marginRight:"4px"}},e),n.renderDisabledTip(t))}},{title:t("ACCESS_MODE"),dataIndex:"type"},{title:t("IP_ADDRESS"),dataIndex:"defaultIngress"},{title:t("NODE_PORTS"),dataIndex:"ports",render:function(e){return(0,S.default)(e)?"-":e.map((function(e){return"".concat(e.name.toUpperCase(),": ").concat(e.nodePort)})).join("/")}},{title:t("REPLICA_COUNT"),dataIndex:"replicas"},{title:t("TRACING"),dataIndex:"serviceMeshEnable",render:function(e){return e?t("ON"):t("OFF")}}]},n.renderDesc=function(){var e=n.props.type,a=n.props.match.params.cluster,r=globals.app.isMultiCluster?(0,C.default)(globals,"clusterConfig.".concat(a,".ksVersion")):(0,C.default)(globals,"ksConfig.ksVersion");return"workspace"===e&&(0,D.compareVersion)(r,"v3.4.0")<0?t("CLUSTER_NOT_SUPPORT_WORKSPACE_GATEWAY"):t("ENT_".concat(e.toUpperCase(),"_ENABLE_GATEWAY_DESC"))},n.handleClusterChange=function(e){n.setState({cluster:e}),n.getData({cluster:e})};var l=(0,D.getHostClusterName)();return n.state={cluster:(null==e?void 0:e.cluster)||(0,C.default)(e,"workspaceStore.cluster",l)},n}return(0,p.default)(r,[{key:"renderDisabledTip",value:function(e){return e.createTime?null:g.default.createElement(O.Tooltip,{content:t("UPDATE_GATEWAY_DESC"),placement:"top"},g.default.createElement(O.Icon,{size:20,name:"update",color:{primary:"#f5a623 ",secondary:"#ffe1be"}}))}},{key:"renderCustomFilter",value:function(){var e=this.state.cluster;return this.props.showClusterSelect?g.default.createElement(_.default,{cluster:e,clusters:this.clusters,onChange:this.handleClusterChange}):null}},{key:"render",value:function(){var e=this.props,a=e.tableProps,r=e.type,n=e.inCluster;return g.default.createElement(E.ListPage,(0,u.default)({},this.props,{getData:this.getData,noWatch:!0}),g.default.createElement(b.default,(0,u.default)({},a,this.tableOtherProps,{name:"".concat(r.toUpperCase(),"_GATEWAY"),emptyProps:{desc:n?this.renderDesc():t("PROJECT_ENABLE_GATEWAY_DESC_WS")},itemActions:this.itemActions,tableActions:this.tableActions,columns:this.getColumns(),onCreate:null,customFilter:this.renderCustomFilter(),searchType:"name",isLoading:a.isLoading})))}},{key:"labelSelector",get:function(){return"kubesphere.io/gateway-type=".concat(this.props.type)}},{key:"routing",get:function(){return this.props.rootStore.routing}},{key:"isProjectGateway",get:function(){var e=this.props.type;return!e||"project"===e}},{key:"workspaceStore",get:function(){return this.props.workspaceStore}},{key:"clusters",get:function(){return this.workspaceStore?this.workspaceStore.clusters.data.map((function(e){return{label:e.name,value:e.name,cluster:e}})).filter((function(e){return(0,C.default)(globals,"ksConfig.enabledExtensionModulesStatus.gateway.clusterSchedulingStatuses.".concat(e.value),!1)})):[]}},{key:"cluster",get:function(){return this.workspaceStore?this.workspaceStore.cluster:null}},{key:"itemActions",get:function(){var e=this,a=this.props.trigger;return[{key:"edit",icon:"pen",text:t("EDIT"),action:"edit",show:function(e){return e.createTime},onClick:function(t){a("gateways.edit",N(N({detail:t._originData,type:"",name:t.name},e.getGatewayResource(t)),{},{success:e.routing.query}))}},{key:"update",icon:"update",text:t("UPDATE"),action:"manage",show:function(e){return!e.createTime},onClick:function(t){return a("gateways.update",N(N({detail:t._originData},e.getGatewayResource(t)),{},{success:e.routing.query}))}},{key:"delete",icon:"trash",text:t("DISABLE"),action:"delete",onClick:function(t){return a("gateways.delete",N(N({type:e.props.name,detail:t,name:t.name},e.getGatewayResource(t)),{},{resource:t.name,success:e.routing.query}))}}]}},{key:"tableActions",get:function(){var e=this,a=this.props,r=a.tableProps,n=a.trigger;return N(N({},r.tableActions),{},{selectActions:[{key:"delete",type:"danger",text:t("DISABLE"),action:"delete",onClick:function(){return n("gateways.batch.delete",{type:e.props.name,rowKey:"name",success:e.routing.query})}}],onFetch:this.handleFetch})}},{key:"tableOtherProps",get:function(){return this.props.showClusterSelect?{showEmpty:!1,emptyText:t("PROJECT_ENABLE_GATEWAY_DESC_WS")}:{}}}]),r}(g.default.Component))||s;a.default=R},function(e,t,a){e.exports={attributes:"_1qLfwlSNMUvx_q8t-EGpKu",item:"_2ImD6g_VbE6ZdbovBHYIpG",name:"_3oXgWAWaKT0svZ3eswccyw",value:"_1b7KLypukIC6d3iPAamFVA"}},function(e,a,r){"use strict";r(15);var n=r(157),l=r(20);r(18),r(98),r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(18),r(42),r(98),r(4),r(23),r(57),r(17);var u=l(r(96)),o=l(r(36)),i=l(r(37)),c=l(r(55)),s=l(r(56)),f=l(r(51)),d=n(r(0)),p=l(r(789)),m=l(r(1045)),h=l(r(63));function v(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,f.default)(e);if(t){var n=(0,f.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,s.default)(this,a)}}var g=function(e){(0,c.default)(r,e);var a=v(r);function r(){return(0,o.default)(this,r),a.apply(this,arguments)}return(0,i.default)(r,[{key:"render",value:function(){var e=this.props,a=e.className,r=e.labels;return(0,h.default)(r)?null:d.default.createElement(p.default,{title:t("LABEL_PL"),className:a},d.default.createElement("div",null,Object.entries(r).map((function(e){var t=(0,u.default)(e,2),a=t[0],r=t[1];return d.default.createElement(m.default,{key:a,name:a,value:r})}))))}}]),r}(d.Component);a.default=g},function(e,t,a){e.exports={wrapper:"QpFfgb7JJ7HRNLfqWCXji",item:"_2Ls9YLPpw8lkrD3lNui_GK",icon:"_38CQvuXRNm-XbTdpOmjFCM",indicator:"_3O2Bu_ul1hd0RWHSc0uyYY",text:"_2sD8JpjsJvGHwUybEZWCex",name:"_1Sivzw33_5Gsqakv7IJdNz",probeItem:"_1KcpnN-7kCl_NT5wZuH3zy",probeType:"si5bO7SNMAMGa-Y28HKrr",probeTime:"_2ZEFKQF67O0DnJj3L3PcxT",noLink:"_3TsdKO2ShBqmPwtineCIMt"}},function(e,t,a){e.exports={main:"_1mP4Qf6JdvK0Zws9GzHH_m",header:"_38YMa1McIH2a3XFjNFm0Qv",search:"_2iBh5XNyrUQs_npRhRtu-N",actions:"SOTGp48SZ36hInD3GvDqW",body:"_1E1bcvmD960HViEUNPWIj-",footer:"_2wm_WVdZeY_H8Dthsg7qEZ",item:"DfokFLfXy9QDbluhfn4mC",expanded:"_1Upgy-BC2S8CbTT7SwXJsD",arrow:"_2oh1nTH5L2f2z2s_G_Eu6J",itemMain:"_37pJP5bk2g9FqBysuK4mh5",content:"_1QXeIqcQeKMp8jjbDJUQ9R",text:"_1eubB8Mc7lqOuhCmWiSLto",monitors:"XtUDQAWv16NYrbCMYx11z",itemExtra:"_2qw5HNgGsizb6Yt_fColhG",icon:"_2khy6lzSeTcSnB9QLHOBd3",indicator:"_1nnELAL1b4Y_7-IdgMTmJG",statusTip:"_1IQ9UXag7Oj8C5vl685TuJ",charts:"JZvd7sINr_-hgLfx-_Qm3",podip:"_2yAbsvJ0HwjDLmoJoLfek2",ipTip:"_3FpDrLOumpuGj3VMwTeY9-",containers:"_2Vbw0pvM32OD13r9WIDwjd",loading:"_2_wICcLc7ldhJDkDX3UntK",empty:"_26YNgZC9m7cd39OC8YZlxM",cluster:"_1DOCSy9WSCVCd5lDQ942Uu"}},function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(31),r(18),r(16),r(4),r(23),r(17),r(111),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(31),r(18),r(42),r(16),r(4),r(319),r(23),r(57),r(17),r(111);var l,u,o,i=n(r(315)),c=n(r(58)),s=n(r(36)),f=n(r(37)),d=n(r(55)),p=n(r(56)),m=n(r(51)),h=n(r(0)),v=r(239),g=n(r(1)),y=n(r(3)),E=n(r(158)),b=n(r(468)),_=r(186),O=n(r(240)),S=n(r(801)),C=r(794),D=r(52),k=n(r(3887));function N(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,m.default)(e);if(t){var n=(0,m.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,p.default)(this,a)}}var T=(0,v.observer)((o=u=function(e){(0,d.default)(r,e);var a=N(r);function r(e){var n;return(0,s.default)(this,r),(n=a.call(this,e)).getValue=function(e,t){var a=(0,C.getSuitableUnit)(e,t),r=(0,C.getValueByUnit)(e,a),n=(0,D.coreUnitTS)(r,a);return"".concat(r," ").concat(n)},n.getHPAData=function(){var e,a,r,l,u,o,i,c,s,f,d,p,m=n.props.detail,h=(null==m||null===(e=m._originData)||void 0===e||null===(a=e.spec)||void 0===a?void 0:a.minReplicas)||0,v=(null==m||null===(r=m._originData)||void 0===r||null===(l=r.spec)||void 0===l?void 0:l.maxReplicas)||0,g=(null===(u=m._originData.spec.metrics)||void 0===u||null===(o=u.find((function(e){return"Resource"===e.type&&"cpu"===e.resource.name})))||void 0===o?void 0:o.resource.target.averageUtilization)||0,y=(null===(i=m._originData.spec.metrics)||void 0===i||null===(c=i.find((function(e){return"Resource"===e.type&&"memory"===e.resource.name})))||void 0===c?void 0:c.resource.target.averageValue)||0,b=(null===(s=m.status.currentMetrics)||void 0===s||null===(f=s.find((function(e){return"Resource"===e.type&&"cpu"===e.resource.name})))||void 0===f?void 0:f.resource.current.averageUtilization)||0,_=(null===(d=m.status.currentMetrics)||void 0===d||null===(p=d.find((function(e){return"Resource"===e.type&&"memory"===e.resource.name})))||void 0===p?void 0:p.resource.current.averageValue)||0;return[{icon:"chevron-down",name:t("MINIMUM_REPLICAS"),value:h},{icon:"chevron-up",name:t("MAXIMUM_REPLICAS"),value:v},{icon:"cpu",name:t("TARGET_CPU_USAGE"),value:(0,E.default)(g)||""===g?t("NONE"):"".concat(g,"%"),current:"".concat(b,"%")},{icon:"memory",name:t("TARGET_MEMORY_USAGE"),value:(0,E.default)(y)||""===y?t("NONE"):y,current:n.getValue(String(_).endsWith("m")?parseInt(_,10)/1e3:_,"memory")}]},n.getOperations=function(){return[{key:"cancel",icon:"close",text:t("CANCEL"),onClick:n.handleCancel}]},n.handleMoreClick=function(e,t){var a=n.getOperations().find((function(e){return e.key===t})).onClick;a&&a()},n.handleCancel=function(){var e=n.props,a=e.detail,r=e.onDeleted,l=e.k8sVersion;n.store.delete(a,l).then((function(){O.default.success({content:"".concat(t("CANCEL_SUCCESSFUL"))}),r()}))},n.renderCard=function(e){var a=e.icon,r=e.name,n=e.value,l=e.current;return h.default.createElement("div",{key:a,className:k.default.box},h.default.createElement("div",{className:k.default.card},h.default.createElement(_.Icon,{name:a,size:40}),h.default.createElement("div",null,h.default.createElement("div",{className:k.default.name,title:r},r),h.default.createElement("p",{className:k.default.value},l?t("TARGET_CURRENT",{target:n,current:l}):n))))},n.store=e.store||new b.default,n}return(0,f.default)(r,[{key:"renderOperations",value:function(){var e=this.getOperations(),t=h.default.createElement(_.Menu,{onClick:this.handleMoreClick},e.map((function(e){var t=e.icon,a=e.text,r=e.show,n=void 0===r||r,l=(0,c.default)(e,["icon","text","show"]);return n?h.default.createElement(_.Menu.MenuItem,(0,i.default)({key:a},l),t&&h.default.createElement(_.Icon,{name:t,type:"light"})," ",a):null})));return h.default.createElement(_.Dropdown,{theme:"dark",content:t},h.default.createElement(_.Button,{type:"ghost",icon:"more"}))}},{key:"renderContent",value:function(){if(!this.props.detail.name)return null;var e=this.getHPAData();return h.default.createElement("div",{className:k.default.wrapper},e.map(this.renderCard))}},{key:"render",value:function(){var e=this.props,a=e.className,r=e.loading,n=e.enableCancelHpa,l=void 0===n||n,u=this.props.title||t("AUTOSCALING");return h.default.createElement(S.default,{className:(0,y.default)(k.default.main,a),title:u,operations:l?this.renderOperations():null,empty:t("NOT_ENABLE",{resource:t("AUTOSCALING")}),loading:r},this.renderContent())}}]),r}(h.default.Component),u.propTypes={className:g.default.string,title:g.default.string,store:g.default.object,detail:g.default.object,loading:g.default.bool,onDeleted:g.default.func},u.defaultProps={detail:{},loading:!0,onDelete:function(){}},l=o))||l;a.default=T},function(e,a,r){"use strict";r(15);var n=r(20);r(16),r(27),r(4),r(23),r(17),r(110),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var l=n(r(36)),u=n(r(37)),o=n(r(55)),i=n(r(56)),c=n(r(51));r(45),r(42),r(16),r(27),r(4),r(23),r(57),r(17),r(110);var s=n(r(0)),f=n(r(1)),d=n(r(3)),p=n(r(1102)),m=r(798),h=n(r(3890)),v=n(r(1826));function g(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,c.default)(e);if(t){var n=(0,c.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,i.default)(this,a)}}var y=function(e){return Number(e||0)},E=function(e){(0,o.default)(r,e);var a=g(r);function r(e){var t;(0,l.default)(this,r),(t=a.call(this,e)).showConfirm=function(){t.setState({showConfirm:!0},(function(){t.startTimer()}))},t.hideConfirm=function(){t.setState({showConfirm:!1},(function(){t.stopTimer()}))},t.handleCancel=function(){t.setState({desire:t.props.desire},(function(){t.hideConfirm()}))},t.handleConfirm=function(){t.props.onScale(t.state.desire),t.hideConfirm()},t.handleScale=function(e){e>=0&&t.setState({desire:e,seconds:5},(function(){t.showConfirm()}))},t.updateTime=function(){var e=t.state.seconds;t.timer=setTimeout((function(){e>0?t.setState({seconds:e-1},(function(){t.updateTime()})):(t.handleConfirm(),t.handleCancel())}),1e3)},t.startTimer=function(){t.timer&&t.stopTimer(),t.updateTime()},t.stopTimer=function(){clearTimeout(t.timer),t.timer=null};var n=y(e.desire);return t.state={prevPropDesire:n,desire:n,seconds:5,showConfirm:!1},t}return(0,u.default)(r,[{key:"componentWillUnmount",value:function(){this.stopTimer()}},{key:"renderScaleOperation",value:function(){if(!this.props.onScale)return null;var e=this.state.desire;return s.default.createElement("div",{className:v.default.scale},s.default.createElement(h.default,{value:e,onChange:this.handleScale}))}},{key:"render",value:function(){var e=this.props,a=e.theme,r=e.className,n=e.name,l=e.current,u=this.state,o=u.showConfirm,i=u.seconds,c=u.desire,f=t(n),h=t("REPLICAS_CURRENT"),g=t("REPLICAS_DESIRED");return s.default.createElement("div",{className:(0,d.default)(v.default.card,r,v.default[a])},s.default.createElement("img",{className:v.default.cardImg,src:"/assets/banner-icon-1.svg"}),s.default.createElement("div",{className:v.default.chart},s.default.createElement(m.SimpleCircle,{theme:a,title:f,legend:[h,g],value:l,total:c})),s.default.createElement("div",{className:v.default.status},s.default.createElement("div",{className:v.default.title},f),s.default.createElement("div",{className:v.default.detail},s.default.createElement("p",null,s.default.createElement("label",null,g,":")," ",c),s.default.createElement("p",null,s.default.createElement("label",null,h,":")," ",l))),this.renderScaleOperation(),s.default.createElement(p.default,{visible:o,width:400,title:t("ADJUST_REPLICAS"),content:t.html("REPLICAS_SCALE_NOTIFY_CONTENT",{num:c}),cancelText:t("REPLICAS_SCALE_NOTIFY_CANCEL"),confirmText:t("REPLICAS_SCALE_NOTIFY_CONFIRM",{seconds:i}),onCancel:this.handleCancel,onConfirm:this.handleConfirm}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){if(e.desire!==t.prevPropDesire){var a=y(e.desire);return{prevPropDesire:a,desire:a}}return null}}]),r}(s.default.Component);a.default=E,E.propTypes={theme:f.default.string,className:f.default.string,name:f.default.string,current:f.default.number,desire:f.default.number,onScale:f.default.func},E.defaultProps={theme:"dark",name:"REPLICA_PL",current:0,desire:0,onScale:null}},function(e,t,a){e.exports={card:"_1c8ZZJMInbKhNSrY7LtWOz",cardImg:"_2qWxZcMVoJcyTOmp888Qza",dark:"TGr9GCblFo2j_1lfxKdqy",status:"_3XPNv-eRTc_sRrHrDOGDN_",title:"_1Pjqebw9E-Ge5JTqdWweF9",detail:"_1XLvvOKXnflr9NmFv3HM_S",scale:"_1d_O-hnlw9YGlAqNVrW-Sl",control:"nB11JF3vqmggYgl2OHs6s",add:"_2CqxRZ0d1OYdLPjbX03KEK",substract:"_2oexUYxDtB2oVt85gxb8yu"}},function(e,a,r){"use strict";r(15);var n=r(20);r(18),r(4),r(23),r(17),r(110),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(18),r(42),r(4),r(22),r(23),r(57),r(17),r(110);var l=n(r(43));r(41);var u=n(r(44)),o=n(r(36)),i=n(r(37)),c=n(r(55)),s=n(r(56)),f=n(r(51)),d=n(r(0)),p=n(r(26)),m=r(186),h=n(r(789)),v=n(r(456)),g=n(r(472)),y=n(r(105)),E=n(r(3892)),b=n(r(3894)),_=n(r(3896)),O=n(r(1828));function S(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,f.default)(e);if(t){var n=(0,f.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,s.default)(this,a)}}var C=function(e){(0,c.default)(r,e);var a=S(r);function r(e){var n;(0,o.default)(this,r),(n=a.call(this,e)).showRerun=function(){n.setState({showRerun:!0})},n.hideRerun=function(){n.setState({showRerun:!1})},n.handleCurrentBuilderChange=function(e){n.setState({currentBuilderName:e,builderDetail:{},runDetail:{}}),n.fetchData(e)},n.fetchData=function(){var e=(0,u.default)(l.default.mark((function e(t){var a,r;return l.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n.getBuilderDetail(t);case 2:a=e.sent,(r=(0,p.default)(a,"status.lastRunName"))&&n.getRunDetail(r);case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),n.getBuilderDetail=function(){var e=(0,u.default)(l.default.mark((function e(t){var a,r;return l.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=n.props.namespace,e.next=3,n.builderStore.fetchDetail({cluster:n.cluster,name:t,namespace:a});case 3:if(r=e.sent,"NotFound"!==(0,p.default)(r,"_originData.reason","")){e.next=7;break}return n.setState({notFound:!0}),e.abrupt("return");case 7:return n.setState({builderDetail:r}),e.abrupt("return",r);case 9:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),n.getRunDetail=function(){var e=(0,u.default)(l.default.mark((function e(t){var a,r,u;return l.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=n.props.namespace,n.setState({getRunDetailLoading:!0}),clearTimeout(n.refreshTimer),r=(0,p.default)(n.state.builderDetail,"status.lastRunName"),e.next=6,n.runStore.fetchRunDetail({namespace:a,runName:t||r});case 6:u=e.sent,"running"===(0,p.default)(u,"status","")&&(n.refreshTimer=setTimeout(n.getRunDetail,4e3)),n.setState({runDetail:u,getRunDetailLoading:!1});case 10:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),n.handleRerun=function(){var e=(0,u.default)(l.default.mark((function e(t){var a,r,u,o,i;return l.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=t.newTag,r=t.isUpdateWorkload,u=n.props.namespace,o=n.state.currentBuilderName,clearTimeout(n.refreshTimer),e.next=6,n.builderStore.rerun({cluster:n.cluster,newTag:a,name:o,namespace:u,isUpdateWorkload:r});case 6:i=e.sent,n.setState({runDetail:y.default.s2iruns(i),getRunDetailLoading:!1,showRerun:!1}),setTimeout((function(){n.fetchData(o)}),1e3);case 9:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),n.renderBuilderSelect=function(){var e=n.props.builderNames;if(1===e.length)return null;var t=e.map((function(e){return{label:e,value:e}}));return d.default.createElement(m.Select,{className:O.default.builderSelector,onChange:n.handleCurrentBuilderChange,options:t,defaultValue:t[0]})},n.renderLog=function(){var e=n.state.runDetail,a=e.logURL,r=e.status;return!a&&"Running"===r?d.default.createElement("div",{className:O.default.title},d.default.createElement(m.Loading,{size:"16"}),d.default.createElement("p",null,t("TASK"),d.default.createElement("span",{className:O.default.taskName},n.state.currentBuilderName),t("IN_PROGRESS"))):a?d.default.createElement(_.default,{onRerun:n.showRerun,runDetail:n.state.runDetail,builderName:n.state.currentBuilderName}):null};var i=e.builderNames;return n.state={builderDetail:{},runDetail:{},getRunDetailLoading:!0,currentBuilderName:i[0],showRerun:!1,notFound:!1},n.refreshTimer=null,n.builderStore=new v.default,n.runStore=new g.default,n}return(0,i.default)(r,[{key:"componentDidMount",value:function(){var e=this.props.builderNames;this.fetchData(e[0])}},{key:"componentWillUnmount",value:function(){clearTimeout(this.refreshTimer)}},{key:"render",value:function(){var e=this.props.className,a=(0,p.default)(this.state.builderDetail,"spec.config");return this.state.notFound?null:d.default.createElement(h.default,{title:t("IMAGE_BUILDING"),operations:this.renderBuilderSelect()},d.default.createElement(E.default,{config:a,className:e}),this.renderLog(),d.default.createElement(b.default,{detail:this.state.builderDetail,visible:this.state.showRerun,onOk:this.handleRerun,onCancel:this.hideRerun}))}},{key:"cluster",get:function(){return this.props.cluster}}]),r}(d.default.Component);a.default=C,C.defaultProps={builderNames:[]}},function(e,t,a){e.exports={logContainer:"_2bPpJA94l-RyZOyRbjENrM",title:"_1e1_E7xie5w_hppm1LIgSZ",builderSelector:"_2qowcESuT9kmoK7enz5NOI",icon:"_3swHDfiS90QRAWqxRgv4Xw",noneLogDesc:"_2USfiSziwn36bQFEDdxt19",running:"_1QDO-cklO54JfNi3pfh5U8",rotate:"_1Ut0AdFDAAK29Q2sVx4kSM",failed:"_2PhKayJM_cv-avOySIoKM-",unknow:"_1U7K-MS0M-X-097gFQDhAn",successful:"_3Fqsco2IMj-fabpd1-oASz"}},,,function(e,t,a){"use strict";var r=a(20);a(12),a(11),a(31),a(6),a(84),a(18),a(48),a(97),a(16),a(9),a(13),a(10),a(4),a(23),a(17),a(85),a(7),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(12),a(45),a(11),a(31),a(6),a(84),a(18),a(28),a(48),a(97),a(42),a(16),a(34),a(15),a(9),a(13),a(10),a(4),a(22),a(23),a(57),a(17),a(85),a(7);var n=r(a(315)),l=r(a(43)),u=r(a(30));a(41);var o,i,c,s=r(a(44)),f=r(a(36)),d=r(a(37)),p=r(a(55)),m=r(a(56)),h=r(a(51)),v=r(a(0)),g=a(14),y=a(239),E=r(a(1)),b=r(a(63)),_=r(a(26)),O=r(a(989)),S=r(a(1812)),C=r(a(3905)),D=r(a(3906)),k=r(a(1410));function N(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function T(e){for(var t=1;t0&&void 0!==a[0]?a[0]:{},r.params=t,e.next=4,r.fetchResources();case 4:return e.next=6,r.fetchMonitorings(t);case 6:case"end":return e.stop()}}),e)}))),r.handleChangeChecked=function(e){r.setState({checked:e},(function(){var e=r.state.checked,t=r.monitorsData.map(r.getItemName);e.some((function(e){return!t.includes(e)&&(r.fetchMonitorings(T({pods:[e],more:!0},r.params)),!0)}))}))},r.state={checked:[]},r.init(),r}return(0,d.default)(a,[{key:"componentDidMount",value:function(){var e=this;(0,g.when)((function(){return!(0,b.default)(e.resourcesData)&&(0,b.default)(e.state.checked)}),(function(){var t=e.props.defaultChecked,a=e.resourcesData.map((function(t){return e.getItemName(t)})).slice(0,t);e.setState({checked:a})}))}},{key:"init",value:function(){var e=new O.default;this.resourceStore=e,this.monitorStore=e}},{key:"renderCharts",value:function(){var e=this,t=this.props.config,a=this.state.checked,r=[];return a.forEach((function(t){var a=e.monitorsData.find((function(a){return e.getItemName(a)===t}));a&&r.push(a)})),v.default.createElement(D.default,{loading:this.monitorStore.isLoading,config:t,data:r})}},{key:"renderResroucesList",value:function(){var e=this.props.config,t=this.state.checked,a=this.resources,r=a.page,n=a.total,l=a.isLoading;return v.default.createElement(C.default,{loading:l,config:e,name:this.name,page:r,total:n,checked:t,data:this.resourcesData,onFetch:this.fetchResources,onChange:this.handleChangeChecked})}},{key:"render",value:function(){var e=this.monitorStore,t=e.isLoading,a=e.isRefreshing,r=this.props,l=r.visible,u=r.onCancel;return v.default.createElement(S.default,(0,n.default)({visible:l,onFetch:this.fetchData,onCancel:u,loading:t,refreshing:a},this.monitorOptions),v.default.createElement("div",{className:k.default.content},this.renderResroucesList(),this.renderCharts()))}},{key:"monitorOptions",get:function(){return{times:50,step:"5m"}}},{key:"name",get:function(){return"POD_PL"}},{key:"metrics",get:function(){return this.monitorStore.data}},{key:"metricType",get:function(){return this.props.config.metricType}},{key:"resourceParams",get:function(){var e=this.props,t=e.module;return{cluster:e.cluster,namespace:e.namespace,workload_kind:t,workload_name:e.name}}},{key:"resources",get:function(){return(0,g.toJS)((0,_.default)(this.resourceStore,"sort",{}))}},{key:"resourcesData",get:function(){return(0,_.default)(this.resources,"data[".concat(this.metricType,"].data.result"),[])}},{key:"monitorsData",get:function(){return(0,_.default)(this.monitorStore,"data[".concat(this.metricType,"].data.result"),[])}}]),a}(v.default.Component),i.propTypes={visible:E.default.bool,defaultChecked:E.default.number,limit:E.default.number,config:E.default.object,onCancel:E.default.func,module:E.default.string,name:E.default.string,namespace:E.default.string,cluster:E.default.string},i.defaultProps={visible:!1,defaultChecked:5,limit:10,config:{},module:"deployments",name:"",namespace:"",cluster:"",onCancel:function(){}},o=c))||o;t.default=w},function(e,t,a){"use strict";a(15);var r=a(20);a(4),a(23),a(17),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(45),a(42),a(4),a(23),a(57),a(17);var n=r(a(36)),l=r(a(55)),u=r(a(56)),o=r(a(51));function i(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,o.default)(e);if(t){var n=(0,o.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,u.default)(this,a)}}var c=function(e){(0,l.default)(a,e);var t=i(a);function a(){return(0,n.default)(this,a),t.apply(this,arguments)}return a}(r(a(1412)).default);t.default=c},function(e,t,a){e.exports={content:"_2ZwGdPpxAhTzLkxSVThCmZ",item:"_1ObwvAEb1U4k8T2gv7yvsU",empty:"KMh3PEpKo6Jg0Ucbgyq00"}},function(e,t,a){e.exports={content:"_3T2qUTrs27LXHme2DOQQXA",item:"_1E3QOQ7mYtLGZc1fl1NMWq"}},function(e,t,a){e.exports={ports:"z2EiKOPaSXkGmpQpoE-H_",card:"_3Q35ZuHxAjDj669cnT2Khd",content:"_1YLdx1Yt-6gMzruD-S8Bot",title:"_1Smdy_zt_LHm1hSRt0Eef-",path:"xGHTWxqXrFVtpy7Zwr6vD",access:"YE_7nvMY_-UKJNrL4GkGh",tip:"Tjbb2yi464EU4fTNJAmIL"}},function(e,t,a){e.exports={secretWrapper:"_2w2dYzN4wuGp_wajpcdrcB",title:"_2NnR7nZbdx5sVyDkdr_G-f",defaultWrapper:"_2s4vOIBr8xBPyb5h4ilFgc",configWrapper:"_2R-aXaN8GH_Hz7c1wmLJre",codeEditor:"_1LuBGW3lud3xrU-Jon909o",ops:"Iwmqd8wJBrfmpDxheVZbw",split:"rtimVCShoOZggbnsmeQzP"}},function(e,a,r){"use strict";r(15);var n=r(20);r(73),r(48),r(16),r(4),r(23),r(24),r(17),r(62),r(136),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(73),r(48),r(42),r(16),r(4),r(23),r(57),r(24),r(17),r(62);var l,u=n(r(36)),o=n(r(37)),i=n(r(55)),c=n(r(56)),s=n(r(51)),f=n(r(0)),d=r(14),p=n(r(63)),m=r(239),h=r(52),v=n(r(3942)),g=n(r(1838));function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,s.default)(e);if(t){var n=(0,s.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,c.default)(this,a)}}var E=(0,m.inject)("detailStore")(l=(0,m.observer)(l=function(e){(0,i.default)(r,e);var a=y(r);function r(){return(0,u.default)(this,r),a.apply(this,arguments)}return(0,o.default)(r,[{key:"renderContainers",value:function(){var e=(0,d.toJS)(this.store.detail),a=e.name,r=e.cluster,n=e.containers,l=e.initContainers;return f.default.createElement(v.default,{prefix:this.prefix,isEdgeWize:(0,h.isEdgeWizePage)(),cluster:r,title:t("CONTAINER_PL"),containers:n,initContainers:l,podName:a})}},{key:"renderVolumes",value:function(){var e=(0,d.toJS)(this.store.detail),t=e.volumes,a=e.containers;return(0,p.default)(t)?null:f.default.createElement(g.default,{isEdgeWize:(0,h.isEdgeWizePage)(),volumes:t,containers:a,loading:this.store.isLoading,match:this.props.match})}},{key:"renderContent",value:function(){return f.default.createElement("div",null,this.renderContainers(),this.renderVolumes())}},{key:"render",value:function(){return f.default.createElement("div",null,this.renderContent())}},{key:"module",get:function(){return this.props.detailStore.module}},{key:"store",get:function(){return this.props.detailStore}},{key:"prefix",get:function(){return this.props.match.url.split("/").slice(0,-1).join("/")}}]),r}(f.default.Component))||l)||l;a.default=E},function(e,a,r){"use strict";var n=r(20);r(12),r(5),r(11),r(6),r(18),r(16),r(9),r(13),r(10),r(4),r(23),r(24),r(17),r(62),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(45),r(5),r(11),r(6),r(18),r(28),r(42),r(16),r(34),r(15),r(9),r(13),r(10),r(4),r(23),r(57),r(24),r(17),r(62),r(7);var l,u,o,i=n(r(30)),c=n(r(36)),s=n(r(37)),f=n(r(55)),d=n(r(56)),p=n(r(51)),m=n(r(0)),h=n(r(1)),v=n(r(63)),g=r(239),y=n(r(789)),E=n(r(3943)),b=n(r(1839));function _(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function O(e){for(var t=1;t-1;return r.monitorStore=n?new b.default:(0,g.isEdgeWizePage)()?new E.default:new y.default,r}return(0,i.default)(a,[{key:"render",value:function(){var e=this,t=this.store.detail,a=t.createTime,r=t.cluster,n=this.monitorStore,u=n.isLoading,o=n.isRefreshing,i=(0,g.hideGPUByLicense)(this.getMonitoringCfgs(),r);return d.default.createElement(O.Controller,{createTime:a,onFetch:this.fetchData,loading:u,refreshing:o,isEmpty:(0,m.default)(this.metrics)},i.map((function(t){t.data=(0,m.default)(t.data)?[{values:(0,v.getZeroValues)()}]:t.data,t.legend=t.data.map((function(){return t.legend})),t.workload_kind=e.monitoringModule;var a=(0,v.getAreaChartOps)(t);return d.default.createElement(_.SimpleArea,(0,l.default)({key:t.title,width:"100%"},a))})))}},{key:"store",get:function(){return this.props.detailStore}},{key:"monitoringModule",get:function(){var e;return null!==(e=k[this.store.detail.ownerKind])&&void 0!==e?e:this.store.detail.ownerKind}},{key:"metrics",get:function(){var e={};return Object.entries(this.monitorStore.data).forEach((function(t){var a=(0,n.default)(t,2),r=a[0],l=a[1];(0,h.default)(l,"data.result")&&(e["".concat(r)]=l)})),e}}]),a}(d.default.Component),T=(0,p.inject)("rootStore","detailStore")((0,p.observer)(N));t.default=T;var R=N;t.Component=R},function(e,a,r){"use strict";r(15);var n=r(20);r(12),r(109),r(5),r(16),r(4),r(23),r(24),r(17),r(62),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(109),r(45),r(5),r(28),r(42),r(16),r(4),r(22),r(23),r(57),r(24),r(17),r(62);var l=n(r(315)),u=n(r(43));r(41);var o,i=n(r(44)),c=n(r(36)),s=n(r(37)),f=n(r(55)),d=n(r(56)),p=n(r(51)),m=n(r(0)),h=r(14),v=n(r(63)),g=r(239),y=r(186),E=r(52),b=r(791),_=n(r(1417)),O=n(r(3954)),S=n(r(805)),C=n(r(3955));function D(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,p.default)(e);if(t){var n=(0,p.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,d.default)(this,a)}}var k=(0,g.inject)("rootStore")(o=(0,g.observer)(o=(0,b.trigger)(o=function(e){(0,f.default)(r,e);var a=D(r);function r(){var e;(0,c.default)(this,r);for(var n=arguments.length,l=new Array(n),o=0;o0&&void 0!==arguments[0]?arguments[0]:{};return(0,l.default)(this,a),(e=t.call(this,"volumes")).getApi=function(){return"".concat(e.apiVersion,"/persistentvolumeclaim_metrics")},e.handleParams=function(e){return e},e.filters=r,e}return(0,u.default)(a,[{key:"fetchMetrics",value:function(e){(0,o.default)((0,s.default)(a.prototype),"fetchMetrics",this).call(this,d(d({},this.filters),e))}},{key:"monitoringMetrics",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interval:5e3};return this.fetchMetrics(t),setInterval((function(){e.fetchMetrics(d(d({},t),{},{autoRefresh:!0}))}),a.interval)}}]),a}(r(a(845)).default);t.default=m},function(e,t,a){"use strict";a(15);var r=a(20);a(5),a(4),a(23),a(17),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(45),a(5),a(42),a(4),a(23),a(57),a(17);var n=r(a(36)),l=r(a(37)),u=r(a(55)),o=r(a(56)),i=r(a(51)),c=r(a(0)),s=r(a(1)),f=r(a(3)),d=a(794),p=r(a(3965));function m(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,i.default)(e);if(t){var n=(0,i.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,o.default)(this,a)}}var h=function(e){(0,u.default)(a,e);var t=m(a);function a(){return(0,n.default)(this,a),t.apply(this,arguments)}return(0,l.default)(a,[{key:"getWavePath",value:function(){var e=this.props.rate,t=100*(1-e),a=20*(.5-Math.abs(.5-e));return"\n M0 ".concat(t,"\n \n Q ").concat(12.5," ").concat(t+a,", ").concat(25," ").concat(t,"\n T ").concat(50," ").concat(t,"\n\n T ").concat(75," ").concat(t,"\n T ").concat(100," ").concat(t,"\n\n T ").concat(125," ").concat(t,"\n T ").concat(150," ").concat(t,"\n\n T ").concat(175," ").concat(t,"\n T ").concat(200," ").concat(t,"\n\n V 100\n H 0\n\n Z\n ")}},{key:"render",value:function(){var e=this.props.className;return c.default.createElement("div",{className:(0,f.default)(p.default.container,e)},this.renderForeground(),this.renderCapacity())}},{key:"renderForeground",value:function(){var e=this.props.rate,t=(0,d.getSuitableValue)(e,"%");return c.default.createElement("div",{className:p.default.foreground},c.default.createElement("h3",null,t,"%"))}},{key:"renderCapacity",value:function(){var e="0 0 ".concat(100," ").concat(100),t=this.getWavePath();return c.default.createElement("svg",{width:"100%",height:"100%",viewBox:e,preserveAspectRatio:"none"},c.default.createElement("path",{className:p.default.wave,d:t}),c.default.createElement("path",{className:p.default.wave2,d:t}))}}]),a}(c.default.Component);t.default=h,h.propTypes={rate:s.default.number,className:s.default.string},h.defaultProps={rate:0}},function(e,a,r){"use strict";var n=r(20);r(12),r(109),r(5),r(11),r(6),r(86),r(48),r(16),r(9),r(13),r(10),r(4),r(23),r(24),r(17),r(62),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.ClusterAlertPolicyDetail=a.default=void 0,r(12),r(109),r(45),r(5),r(11),r(6),r(86),r(28),r(48),r(42),r(16),r(34),r(15),r(9),r(13),r(10),r(4),r(23),r(57),r(24),r(17),r(62),r(7);var l,u,o=n(r(315)),i=n(r(30)),c=n(r(36)),s=n(r(37)),f=n(r(55)),d=n(r(56)),p=n(r(51)),m=n(r(0)),h=r(14),v=r(239),g=n(r(26)),y=n(r(63)),E=r(186),b=n(r(795)),_=r(52),O=r(791),S=n(r(1014)),C=n(r(823)),D=n(r(3971)),k=n(r(3977));function N(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function T(e){for(var t=1;t0?"builtin":""}},{key:"listUrl",get:function(){var e=localStorage.getItem("alert-policy-detail-referrer");if(e)return e;var t=this.props.match.params,a=t.cluster,r=t.namespace,n=t.workspace,l=this.type;return"".concat(n?"/".concat(n):"","/clusters/").concat(a).concat(r?"/projects/".concat(r):"","/alert-rules").concat(l?"?type=".concat(l):"")}},{key:"routing",get:function(){return this.props.rootStore.routing}},{key:"resetPolicy",get:function(){var e=this,a=this.props.match,r=(0,h.toJS)(this.store.detail);return{key:"reset",icon:"restart",text:t("RESET"),action:"edit",onClick:function(){return e.trigger("alerting.rule.reset",{type:e.type,cluster:a.params.cluster,detail:r,success:e.fetchData})}}}}]),r}(m.default.Component),I=(0,v.inject)("rootStore")(u=(0,v.observer)(u=(0,O.trigger)(u=function(e){(0,f.default)(a,e);var t=R(a);function a(e){var r;return(0,c.default)(this,a),(r=t.call(this,e)).authKey="rulegroups",r}return a}(w))||u)||u)||u;a.default=I;var M=(0,v.inject)("rootStore")(l=(0,v.observer)(l=(0,O.trigger)(l=function(e){(0,f.default)(a,e);var t=R(a);function a(e){var r;return(0,c.default)(this,a),(r=t.call(this,e)).authKey="clusterrulegroups",r}return a}(w))||l)||l)||l;a.ClusterAlertPolicyDetail=M},function(e,t,a){e.exports={header:"kLqf1HbgvncE_HpM34pz4",search:"_2_FuLSz9uWr12KC15lfVgB",actions:"_2_X5wj9y3MiCGon2LqOvXK",item:"_3Zyk52RkFf1sJz6rCX9PdB",content:"nHupxm2Fr2hsA70BXmCKN",head:"_26x7hW6cCUZ-jNjoMlz-56",headIcon:"_2zH27wjttK1MAnhYIEvJWh",headLine:"_I9pYkuXNGV4wRoBIk-9w",severity:"_3ftTZ15mo7eNhRbe8GIvxN",statusLine:"_3-tu95Qm7-kM1YwibFjhWN",target:"w-DTcIKKfNBbC723WxjTS",timeLabel:"_3-SLBePAUSVb9piaAaiJv6",time:"_1xi2aj1lis8IlK4lX9oUC4",time_white:"_2YRlqM_uPS-IuAc6Dm3Lar",title:"_211aVPR605bgjtrOcTWe99",desc:"_2KuzGiTKDnVpB887eRwSRz",expanded:"_2ivanZgb206WfuwTkaGR4U",itemExtra:"_3gRU7EtrPOVED1ctMRYwn5",ms_content:"_2U7VzbHDMRe6mcoNQKsQsv",ruleExpr:"_1Vs-uBGpunsZAje7BcRVkl",label:"MCJ6H_Tsq-M_mowtNX2NH",value:"_14L4I6leaLrDqGAi-BM0DB",itemExtraShow:"o39HqtWv_n8C8zXjQT687",status_disabled:"_1_FWg1Q_7iBuDn_hUtwwoG",status_pending:"_2wh_BTk8chvd5Z9FAA0zHt",status_firing:"_1aJNiGa073rYjGOpa0U5Ua",status_inactive:"_2FzW2eq7FwtTKw1wAn8LZW",info_disabled:"_36OFVtqLZnnzMguM9B3L-k",info_pending:"_8NCXFvYUdsUdu1_TPKbtr",info_firing:"_1G7NJEfDx_c-id8qzfDDKW",info_inactive:"_3NcF9w2Q47PUQ2Tr4wU19z",critical:"_1x23r_vnCw6lc_RAMI0ZK6",error:"fgjhWF7q-KzUaSQ46tj_x",footer:"_3l9tqtCU4hqyc4JWray_jm",pageSizeBox:"_10j4h-LctO_jPpSyi1Zghz",pagesize:"_2yV7RI7ixs2RUbaXgGCg-D",text:"_1Zxl_B6ruwO6hH-8rZBVyV",gap:"_1TdIBwMMx-AgnbaFZSa8Mr",pageSizeMenu:"_3rg_nQe9ZDhv-EWKgtwOCQ",pageSizeMenuitem:"MxEk4SUq6JJUAiQVFlwTF"}},function(e,a,r){"use strict";r(15);var n=r(20);r(12),r(109),r(5),r(86),r(73),r(16),r(4),r(23),r(24),r(17),r(62),Object.defineProperty(a,"__esModule",{value:!0}),a.Component=a.default=void 0,r(12),r(109),r(45),r(5),r(86),r(73),r(28),r(42),r(16),r(4),r(22),r(23),r(57),r(24),r(17),r(62);var l=n(r(315)),u=n(r(43));r(41);var o=n(r(44)),i=n(r(36)),c=n(r(37)),s=n(r(55)),f=n(r(56)),d=n(r(51)),p=n(r(0)),m=n(r(63)),h=n(r(26)),v=r(239),g=r(186),y=n(r(795)),E=r(52),b=r(791),_=r(14),O=n(r(907)),S=n(r(805)),C=n(r(3986));function D(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,d.default)(e);if(t){var n=(0,d.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,f.default)(this,a)}}var k=function(e){(0,s.default)(r,e);var a=D(r);function r(){var e;(0,i.default)(this,r);for(var n=arguments.length,l=new Array(n),c=0;c-1,onClick:function(){return e.trigger("resource.delete",{type:e.name,detail:(0,_.toJS)(e.store.detail),success:e.returnTolist})}}]},e.getAttrs=function(){var a=e.store.detail,r=void 0===a?{}:a,n=r.createTime,l=r.phase,u=r.storageClassName,o=r.volumeHandle,i=r.persistentVolumeReclaimPolicy,c=r.accessModes,s=void 0===c?["-"]:c,f=r.capacity,d=r.volumeMode;return(0,m.default)((0,_.toJS)(r))?null:[{name:t("STATUS"),value:p.default.createElement("div",null,p.default.createElement(y.default,{type:l,name:t("PV_STATUS_".concat(l.toUpperCase()))}))},{name:t("CAPACITY"),value:"".concat((0,E.memoryFormat)(f,"Gi"),"Gi")},{name:t("ACCESS_MODE_TCAP"),value:s.join(",")},{name:t("STORAGE_CLASS"),value:u},{name:t("VOLUME_HANDLE"),value:o},{name:t("RECLAIM_POLICY"),value:i},{name:t("VOLUME_MODE"),value:t("VOLUME_MODE_".concat(d.toUpperCase()))},{name:t("CREATION_TIME_TCAP"),value:(0,E.getLocalTime)(n).format("YYYY-MM-DD HH:mm:ss")}]},e.returnTolist=function(){e.props.rootStore.routing.push(e.listUrl)},e}return(0,c.default)(r,[{key:"componentDidMount",value:function(){this.fetchData()}},{key:"render",value:function(){var e={detailStore:this.store};if(this.store.isLoading&&!this.store.detail.name)return p.default.createElement(g.Loading,{className:"ks-page-loading"});var a={module:this.module,authKey:this.authKey,name:(0,E.getDisplayName)(this.store.detail),desc:this.store.detail.description,attrs:this.getAttrs(),operations:this.isFedManaged?[]:this.getOperations(),icon:"storage",breadcrumbs:[{label:t("PERSISTENT_VOLUME_PL"),url:this.listUrl}]};return p.default.createElement(S.default,(0,l.default)({stores:e},a,{routes:(0,C.default)(this.props.match.path)}))}},{key:"name",get:function(){return"PERSISTENT_VOLUME"}},{key:"module",get:function(){return"persistentvolumes"}},{key:"authKey",get:function(){return"persistentvolumeclaims"}},{key:"listUrl",get:function(){var e=this.props.match.params.cluster;return"/clusters/".concat(e,"/volumes/PV")}},{key:"isFedManaged",get:function(){return this.store.detail.isFedManaged}}]),r}(p.default.Component),N=(0,v.inject)("rootStore")((0,v.observer)((0,b.trigger)(k)));a.default=N;var T=k;a.Component=T},function(e,t,a){"use strict";a(15);var r=a(20);a(5),a(4),a(23),a(17),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(45),a(5),a(42),a(4),a(23),a(57),a(17);var n=r(a(36)),l=r(a(55)),u=r(a(56)),o=r(a(51));function i(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,o.default)(e);if(t){var n=(0,o.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,u.default)(this,a)}}var c=function(e){(0,l.default)(a,e);var t=i(a);function a(){var e;(0,n.default)(this,a);for(var r=arguments.length,l=new Array(r),u=0;u=0?(d-f)/86400/1e3:d-f,m=p>=0?p>=0&&p<1?Math.ceil(p):Math.floor(p):d-f;return _.LICENSE_UNAUTHORIZED_STATUS_MAP.includes(u)?a=!0:"Time expired"===u&&"subscription"===o?r=!0:_.LICENSE_OVERLIMIT_STATUS_MAP.includes(u)?t=!0:(m>0&&m<=30||m<=0&&"subscription"!==o)&&(n=!0),C({showLicenseTip:_.STATUS_MAPPER.includes(u),isExpired:r,isUnAuthorized:a,isOverLimit:t,unExpired:n,dueDate:m},l)},e}return(0,f.default)(i,[{key:"getUrl",value:function(e){var t=e.name;return"".concat(this.apiVersion,"/").concat(this.module,"/").concat(t)}},{key:"fetchLicense",value:(r=(0,o.default)(n.default.mark((function e(){var t,a;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t={},e.next=3,request.get(this.getUrl({name:"ks-license"}),{},{},(function(){return{}}));case 3:return a=e.sent,(0,g.default)(a)||(t=C({},this.mapper(a))),this.licenseInfo=this.handleLicenseInfo(t),e.abrupt("return",(0,b.toJS)(this.licenseInfo));case 7:case"end":return e.stop()}}),e,this)}))),function(){return r.apply(this,arguments)})},{key:"updateLicense",value:(a=(0,o.default)(n.default.mark((function e(t){var a;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a={data:t},e.abrupt("return",this.submitting(request.put(this.getUrl({name:"ks-license"}),a)));case 2:case"end":return e.stop()}}),e,this)}))),function(e){return a.apply(this,arguments)})},{key:"invalidLicense",value:(t=(0,o.default)(n.default.mark((function e(t){var a;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a={data:t},e.abrupt("return",this.submitting(request.put("".concat(this.getUrl({name:"ks-license"}),"?validate=true"),a)));case 2:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})}]),i}(r(a(68)).default),u=(0,v.default)(l.prototype,"licenseInfo",[b.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),(0,v.default)(l.prototype,"fetchLicense",[b.action],Object.getOwnPropertyDescriptor(l.prototype,"fetchLicense"),l.prototype),(0,v.default)(l.prototype,"updateLicense",[b.action],Object.getOwnPropertyDescriptor(l.prototype,"updateLicense"),l.prototype),(0,v.default)(l.prototype,"invalidLicense",[b.action],Object.getOwnPropertyDescriptor(l.prototype,"invalidLicense"),l.prototype),l);t.default=k},function(e,t,a){e.exports={subNav:"_1pmI9ndWK9rEGV4MJm4HOX",title:"_2noUEB0newe-2ZeJc6_vQM",extraIcon:"_106IDsxUlkAKzEMJPQb_VE",select:"zbwCmzs7IGtLHtKeFTk5q",open:"_1_5lTDnCWRT_bjONGPwjJ-",innerNav:"_1lx3cQgES6ywH7v7ewNDW9",childSelect:"IYCaQMTl6Z32Tj4im7ux3",disabled:"_3NGHEZvhf1DSOaNTdwoIMo",hide:"_2IhCm1aqthcg__sRJCh2Ro",tip:"_3w0p4MCdcQ_5cKyY7YyaCc",back:"_24MRiw49Mh9WeerGEXAX8o",rightIcon:"_15BwbKp8iiYrESLkQE3AtK"}},function(e,t,a){e.exports={modal:"_2Ma6l2-1qGALcBbXeHSfD",body:"e9-9CWzdPlOWpemV7BFST",close:"_2b1a8uCSxC1Ze6-JIVKUbg",navs:"_2vO2KN0ZszlryTe-zGdisF",nav:"_2QN673FlOzj6UzAeVlo0Pt",active:"_3qkHuByT9irpB_OBNODDMe",bottomIcon:"_1Pkkvq4S3sY9dJ6JsDaxLd",icon:"_2SFazppVz_WfLkpJRqznL",title:"xVfoJz14QNXprPQT4yzRz",desc:"_2j8YMUiWW7wv32Owr4hleS",unAuthorized:"_1gj9hTwvscNQSCl0xMt4oU",operators:"_2UTTnW2Wpc9T1bRxtcGQvO",operate:"_3laRx0YKqrTFaENMnE7VLu","left-icon":"R5uTL-NlmklkYHWBRcr2M",enabled:"_1JYwilpJhc73NIHl_zS0u-",disabled:"_2YMjlSJCN-GRNLUtXhqKBg"}},,,,,,,,,,,,,,,,,,,,,function(e,a,r){"use strict";var n=r(20);r(12),r(187),r(11),r(6),r(84),r(18),r(16),r(9),r(13),r(10),r(4),r(23),r(24),r(17),r(85),r(62),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(45),r(187),r(11),r(6),r(84),r(18),r(28),r(42),r(16),r(34),r(15),r(9),r(13),r(10),r(4),r(22),r(23),r(57),r(24),r(17),r(85),r(62),r(7);var l=n(r(315)),u=n(r(43));r(41);var o,i,c,s,f=n(r(44)),d=n(r(30)),p=n(r(65)),m=n(r(36)),h=n(r(37)),v=n(r(88)),g=n(r(55)),y=n(r(56)),E=n(r(51)),b=n(r(49)),_=(n(r(66)),n(r(63))),O=n(r(26)),S=n(r(74)),C=n(r(0)),D=r(14),k=r(239),N=r(186),T=n(r(789)),R=n(r(790)),w=n(r(1134)),I=n(r(814)),M=n(r(834)),P=n(r(438)),A=r(791),j=r(52),L=n(r(240)),x=n(r(4435));function U(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function z(e){for(var t=1;t=0},this.isOutdated=function(e){if(!globals.app.isMultiCluster)return!1;var t=(0,u.default)(globals,"clusterConfig.".concat(e,".ksVersion"));return(0,l.compareVersion)(t,"3.4.0")<0},this.getStoreByCluster=function(e){return o.default},this.setStoreByCluster=function(e){var t=a.getStoreByCluster(e);a.setStore(new t)},t&&(this.store=t)}},function(e,a,r){"use strict";var n=r(20),l=r(157);r(12),r(109),r(5),r(11),r(6),r(84),r(48),r(16),r(27),r(9),r(13),r(10),r(4),r(23),r(24),r(17),r(85),r(62),r(188),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(109),r(45),r(5),r(11),r(6),r(84),r(28),r(48),r(42),r(16),r(27),r(34),r(15),r(9),r(13),r(10),r(4),r(23),r(57),r(24),r(17),r(85),r(62),r(188),r(7);var u,o=n(r(315)),i=n(r(30)),c=n(r(36)),s=n(r(37)),f=n(r(55)),d=n(r(56)),p=n(r(51)),m=n(r(0)),h=n(r(240)),v=n(r(788)),g=n(r(801)),y=n(r(795)),E=n(r(790)),b=n(r(792)),_=l(r(793)),O=n(r(796)),S=n(r(2001)),C=r(52),D=r(72),k=r(434),N=r(244),T=r(239),R=r(14),w=n(r(5262));function I(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function M(e){for(var t=1;t1&&e.rootStore.routing.query(M(M({},a),{},{page:1}))}),[l]),m.default.createElement(A,(0,o.default)({store:n},e))}));a.default=j},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,a){e.exports={letter:"MtAEvDDok76bC5n6BMeYs",img:"_1p0huC_MiGExAG5cffowO-"}},function(e,t,a){e.exports={wrapper:"_1XkdSSXdX86U8l_DnkJPqJ",text:"awHbyBWcJ6ZsY7PX_d-UQ",ellipsis:"_3zTrKZJ2zDD4H30HDygv9k",icon:"_2nWo_V38K9qDtgmudAI-ai",clickable:"_16dsw4IFfxE-j09HQTBZtZ"}},function(e,a,r){"use strict";r(15);var n=r(20);r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(42),r(4),r(23),r(57),r(17);var l=n(r(315)),u=n(r(58)),o=n(r(36)),i=n(r(37)),c=n(r(55)),s=n(r(56)),f=n(r(51)),d=n(r(0)),p=n(r(1)),m=n(r(3)),h=r(186),v=n(r(1473)),g=n(r(1477));function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,f.default)(e);if(t){var n=(0,f.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,s.default)(this,a)}}var E=function(e){(0,c.default)(r,e);var a=y(r);function r(){return(0,o.default)(this,r),a.apply(this,arguments)}return(0,i.default)(r,[{key:"render",value:function(){var e=this.props,a=e.formRef,r=e.data,n=e.children,o=e.hideFooter,i=e.onCancel,c=e.onOk,s=e.cancelText,f=e.okText,p=e.isSubmitting,y=e.bodyClassName,E=e.formClassName,b=e.disableOk,_=(0,u.default)(e,["formRef","data","children","hideFooter","onCancel","onOk","cancelText","okText","isSubmitting","bodyClassName","formClassName","disableOk"]);return d.default.createElement(v.default,(0,l.default)({},_,{bodyClassName:(0,m.default)(g.default.formBody,y),onCancel:i,hideFooter:!0}),d.default.createElement(h.Form,{ref:a,data:r,onSubmit:c},d.default.createElement("div",{className:(0,m.default)(g.default.formWrapper,E)},n),!o&&d.default.createElement("div",{className:g.default.formFooter},d.default.createElement(h.Button,{type:"default",onClick:i,"data-test":"modal-cancel"},s||t("CANCEL")),d.default.createElement(h.Button,{type:"control",htmlType:"submit",loading:p,disabled:b||p,"data-test":"modal-ok"},f||t("OK")))))}}]),r}(d.default.Component);a.default=E,E.propTypes={data:p.default.object,isSubmitting:p.default.bool}},function(e,t,a){e.exports={modalBody:"_2emSCCZW7Any6zY9sbt0dh",body:"_3zk4pcFFwHI55jC3hhKShH",content:"_2AVQmoTGa5M_aaHwB5m25A",closeIcon:"_3ZNMNqX719F5uyujlsIEEX",footer:"Pv1Crv3p0hsWafBqva7XY"}},function(e,t,a){e.exports={wrapper:"_2WgnPoNTBlYxMadUOp6X6F",primary:"_1N_xYp5Mlw_vRt2GBQPG3_",control:"_1GBzD41XmCACAyrxXIpA2g",switch:"obdQdmNh6a9AylYbpxZXo",inner:"_24C6iSzaC5OhGiAjheEbHW",on:"u9GufWWwHgs1SY_uAQQuU",disabled:"_2MD8-ccizgfYBdMPKkj0Zv"}},function(e,a,r){"use strict";var n=r(20);r(12),r(187),r(11),r(6),r(9),r(13),r(10),r(4),r(23),r(17),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(45),r(187),r(11),r(6),r(28),r(42),r(34),r(15),r(9),r(13),r(10),r(4),r(23),r(57),r(17),r(7);var l=n(r(315)),u=n(r(30)),o=n(r(36)),i=n(r(37)),c=n(r(55)),s=n(r(56)),f=n(r(51)),d=r(186),p=n(r(1266)),m=n(r(828)),h=n(r(26)),v=n(r(63)),g=n(r(854)),y=n(r(1)),E=n(r(0)),b=n(r(2048));function _(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function O(e){for(var t=1;t=t})),p=n0?r.map((function(t,a){var r=t.cluster;return i.default.createElement("div",{key:"".concat(r,"-").concat(a)},i.default.createElement(p.default,{cluster:r,allClusters:e.allClusters}))})):t("ALL_CLUSTERS"),n.length>0&&function(t){var a=i.default.createElement("div",{className:m.default.tipContentBox,style:{minWidth:"0px"}},t.map((function(t,a){return i.default.createElement("div",{className:(0,d.default)(m.default.tipLineItem,m.default.custom_line),key:"".concat(t.cluster,"-").concat(a)},i.default.createElement(p.default,{cluster:t.cluster,allClusters:e.allClusters}))})));return i.default.createElement(c.Tooltip,{content:a,placement:"top"},i.default.createElement("div",{className:m.default.targetTipRest},t.length))}(n))),i.default.createElement("div",{className:m.default.cus_text},i.default.createElement("span",{className:m.default.pr_title},t("RULE_EXPRESSION"),":"),i.default.createElement("span",{className:m.default.exprText},e.rule.expr))))))};a.default=h},function(e,t,a){e.exports={tags:"_72IXnbKwDL_C2VKhWGqOF"}},function(e,a,r){"use strict";r(15);var n=r(157),l=r(20);r(5),r(11),r(6),r(73),r(18),r(87),r(48),r(16),r(27),r(98),r(10),r(316),r(24),r(64),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var u=l(r(61)),o=l(r(30)),i=l(r(96));r(5),r(11),r(6),r(73),r(18),r(87),r(48),r(16),r(27),r(98),r(10),r(4),r(316),r(24),r(64),r(7);var c=r(186),s=l(r(3)),f=r(923),d=l(r(135)),p=l(r(26)),m=l(r(994)),h=l(r(880)),v=n(r(0)),g=r(52),y=l(r(1480)),E={cpu:"cpu",pod:"pod",memory:"memory",disk:"storage",network:"network"},b=function(e){var a,r,n,l,b,_,O,S,C,D,k,N,T,R,w=e.rule,I=e.handleEdit,M=e.allClusters,P=void 0===M?[]:M,A=Object.keys(w.exprBuilder)[0],j=(0,p.default)(w,"exprBuilder.workload.kind","Deployment"),L=(0,v.useState)((0,p.default)(w,"disable",!1)),x=(0,i.default)(L,2),U=x[0],z=x[1],F=(0,v.useReducer)((function(e){return e+1}),0),G=(0,i.default)(F,2)[1],V=function(e){return(0,g.showNameAndAlias)(e,"cluster",{},!0,(function(){G()}))},B=function(e){return v.default.createElement("div",{className:y.default.tipContentBox,style:{minWidth:"200px"}},e.map((function(e,a){return v.default.createElement("div",{className:y.default.tipLineItem,style:{alignItems:"flex-start"},key:a},v.default.createElement("div",{className:y.default.tipText_title},v.default.createElement("img",{src:"/assets/alarmProject.svg"}),v.default.createElement("span",null,e.namespace)),v.default.createElement("div",{className:y.default.tipText_deploy},v.default.createElement("span",null,t("".concat(j.toUpperCase(),"S_VALUES"),{values:e.names.join(", ")}))))})))},Y=function(){var e=(0,p.default)(w,"exprBuilder.".concat(A,".names"),[]),a={};e.forEach((function(e){a[e.cluster]?a[e.cluster]=[].concat((0,u.default)(a[e.cluster]),[{cluster:e.cluster,namespace:(0,p.default)(e,"namespace",""),names:(0,p.default)(e,"names",[])}]):a[e.cluster]=[{cluster:e.cluster,namespace:(0,p.default)(e,"namespace",""),names:(0,p.default)(e,"names",[])}]}));var r=Object.entries(a).map((function(e){var t=(0,i.default)(e,2);return[t[0],t[1]]})),n=r.slice(0,3),l=r.slice(3).map((function(e){return(0,i.default)(e,2)[1]}));return v.default.createElement(v.default.Fragment,null,n.map((function(e,a){var r="".concat(V(e[0])," | ").concat(e[1].reduce((function(e,t){return e+t.names.length}),0));return v.default.createElement(c.Tooltip,{content:"node"===A?v.default.createElement("div",{className:y.default.tipContentBox_cluster},v.default.createElement("span",null,t("NODES_VALUES",{values:e[1][0].names.join(", ")}))):B(e[1]),key:e},v.default.createElement("div",{key:a},v.default.createElement(m.default,{cluster:e[0],allClusters:P,title:r})))})),l.length>0&&function(e){var a=v.default.createElement("div",{className:y.default.tipContentBox,style:{minWidth:"200px"}},e.map((function(e,a){var r=e.reduce((function(e,t){return e+t.names.length}),0);return v.default.createElement("div",{className:y.default.tipLineItem,style:{alignItems:"flex-start"},key:a},v.default.createElement("div",{style:{marginBottom:"8px"}},v.default.createElement(m.default,{cluster:e.cluster,allClusters:P,title:"".concat(V(e[0].cluster)," | ").concat(r)})),"node"===A?v.default.createElement(v.default.Fragment,null,e.map((function(e,a){return v.default.createElement("div",{className:y.default.tipText_nodes,key:a},t("NODES_VALUES",{values:e.names.join(", ")}))}))):v.default.createElement(v.default.Fragment,null,e.map((function(e,a){return v.default.createElement(v.default.Fragment,null,v.default.createElement("div",{className:y.default.tipText_title,key:"".concat(a,"_0")},v.default.createElement("img",{src:"/assets/alarmProject.svg"}),v.default.createElement("span",null,e.namespace)),v.default.createElement("div",{className:y.default.tipText_deploy,key:"".concat(a,"_1")},v.default.createElement("span",null,t("".concat(j.toUpperCase(),"S_VALUES"),{values:e.names.join(",")}))))}))))})));return v.default.createElement(c.Tooltip,{content:a,placement:"right"},v.default.createElement("div",{className:y.default.targetTipRest},e.length))}(l))},W=(0,d.default)(f.RESOURCE_METRICS_CONFIG[A||"node"])||{};return v.default.createElement("div",{className:y.default.container},v.default.createElement("div",{className:y.default.head},v.default.createElement("div",{className:y.default.title},(R=Object.keys((0,p.default)(w.exprBuilder,"".concat(A,".metricThreshold."),{}))[0]||"pod",v.default.createElement("div",{className:(0,s.default)(y.default.icon,(T={},(0,o.default)(T,y.default.iconDisabled,U),(0,o.default)(T,y.default.iconOn,!U),T))},v.default.createElement(c.Icon,{size:40,name:E[R]}))),v.default.createElement("div",{className:y.default.text},v.default.createElement("p",null,v.default.createElement("span",{className:y.default.ruleName},w.alert),v.default.createElement(h.default,{data:(0,p.default)(w,"severity")})),v.default.createElement("p",null,U?t("DISABLED"):t("ENABLED")))),v.default.createElement("div",{className:y.default.opt},!e.builtInRule&&v.default.createElement("div",{className:y.default.iconBg},v.default.createElement(c.Icon,{name:"trash",size:16,onClick:function(){e.handleDelete()}})),v.default.createElement("div",{className:y.default.iconBg},v.default.createElement(c.Icon,{name:"pen",size:16,onClick:function(){return I()}})),v.default.createElement("div",{className:y.default.sToggle},v.default.createElement("div",{className:y.default.tooltip},v.default.createElement("span",null,U?t("ENABLE_RULE"):t("DISABLE_RULE"))),v.default.createElement("div",{className:y.default.triangle}),v.default.createElement(c.Toggle,{checked:!U,onChange:function(){z(!U),e.handleDisable(!U)}})))),v.default.createElement("div",{className:y.default.desc},(a=(0,p.default)(w,"exprBuilder.".concat(A,".metricThreshold")),r=Object.keys(a)[0],n=Object.keys(a[r])[0],l="".concat(r,":").concat(n),b=W[l],_=b.ruleConfig.filter((function(e){return"thresholds"===e.name}))[0].reverser,O=t("".concat(b.label)).replace(/[((]%[))]/g,""),S=(0,p.default)(w,"exprBuilder.".concat(A,".comparator")),C=_(Number(Object.values(a[r])[0])),D="core"===b.ruleConfig[1].unit?1===C?t("CORE"):t("CORE_PL"):b.ruleConfig[1].unit,k=w.for.slice(0,-1),N=w.for.slice(-1),v.default.createElement(v.default.Fragment,null,v.default.createElement("div",{className:y.default.exprLine},v.default.createElement("span",{className:y.default.title},"".concat(t("MONITORING_TARGET"),":")),v.default.createElement("span",{className:y.default.descTextCL},Y())),v.default.createElement("div",{className:y.default.exprLine},v.default.createElement("span",{className:y.default.pr_title},"".concat(t("ALERTING_RULE"),":")),v.default.createElement("span",{className:y.default.exprText},"%"===D?t({s:"ALERT_RULE_TEXT_PERCENT_SECOND",m:"ALERT_RULE_TEXT_PERCENT_MINUTE",h:"ALERT_RULE_TEXT_PERCENT_HOUR"}[N],{alterTypeText:O,comparator:S,thresholds:C,durationValue:k}):t({s:"ALERT_RULE_TEXT_SECOND",m:"ALERT_RULE_TEXT_MINUTE",h:"ALERT_RULE_TEXT_HOUR"}[N],{alterTypeText:O,comparator:S,thresholds:C,unit:D,durationValue:k})))))))};a.default=b},function(e,t,a){"use strict";a(15),Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.NODE_ALERTING_CONFIG=void 0;var r=a(1269),n={"cpu:utilization":{label:"CPU_UTILIZATION_SCAP",tcapLabel:"CPU_UTILIZATION_NO_PERCENT_TCAP",prefixIcon:"cpu",ruleConfig:r.PERCENT_RULE_CONFIG},"cpu:load1m":{label:"CPU_LOAD_1",tcapLabel:"CPU_LOAD_1_TCAP",prefixIcon:"cpu",ruleConfig:r.BASE_RULE_CONFIG},"cpu:load5m":{label:"CPU_LOAD_5",tcapLabel:"CPU_LOAD_5_TCAP",prefixIcon:"cpu",ruleConfig:r.BASE_RULE_CONFIG},"cpu:load15m":{label:"CPU_LOAD_15",tcapLabel:"CPU_LOAD_15_TCAP",prefixIcon:"cpu",ruleConfig:r.BASE_RULE_CONFIG},"memory:utilization":{label:"MEMORY_UTILIZATION_SCAP",tcapLabel:"MEMORY_UTILIZATION_NO_PERCENT_TCAP",prefixIcon:"memory",ruleConfig:r.PERCENT_RULE_CONFIG},"memory:available":{label:"MEMORY_AVAILABLE",tcapLabel:"MEMORY_AVAILABLE_TCAP",prefixIcon:"memory",ruleConfig:r.GIB_RULE_CONFIG},"network:transmittedRate":{label:"DATA_SEND_RATE",tcapLabel:"DATA_SEND_RATE_TCAP",prefixIcon:"network",ruleConfig:r.MBPS_RULE_CONFIG},"network:receivedRate":{label:"DATA_RECEIVE_RATE",tcapLabel:"DATA_RECEIVE_RATE_TCAP",prefixIcon:"network",ruleConfig:r.MBPS_RULE_CONFIG},"disk:spaceUtilization":{label:"DISK_SPACE_UTILIZATION",tcapLabel:"DISK_SPACE_UTILIZATION_NO_PERCENT_TCAP",prefixIcon:"storage",ruleConfig:r.PERCENT_RULE_CONFIG},"disk:spaceAvailable":{label:"DISK_SPACE_AVAILABLE",tcapLabel:"DISK_SPACE_AVAILABLE_TCAP",prefixIcon:"storage",ruleConfig:r.GB_RULE_CONFIG},"disk:inodeUtilization":{label:"INODE_UTILIZATION",tcapLabel:"INODE_UTILIZATION_NO_PERCENT_TCAP",prefixIcon:"storage",ruleConfig:r.PERCENT_RULE_CONFIG},"disk:iopsRead":{label:"DISK_READ_IOPS",tcapLabel:"DISK_READ_IOPS_TCAP",prefixIcon:"storage",ruleConfig:r.BASE_RULE_CONFIG},"disk:iopsWrite":{label:"DISK_WRITE_IOPS",tcapLabel:"DISK_WRITE_IOPS_TCAP",prefixIcon:"storage",ruleConfig:r.BASE_RULE_CONFIG},"disk:throughputRead":{label:"DISK_READ_THROUGHPUT",tcapLabel:"DISK_READ_THROUGHPUT_TCAP",prefixIcon:"storage",ruleConfig:r.KBS_RULE_CONFIG},"disk:throughputWrite":{label:"DISK_WRITE_THROUGHPUT",tcapLabel:"DISK_WRITE_THROUGHPUT_TCAP",prefixIcon:"storage",ruleConfig:r.KBS_RULE_CONFIG},"pod:abnormalRatio":{label:"UNAVAILABLE_POD_RATIO",tcapLabel:"UNAVAILABLE_POD_RATIO_NO_PERCENT_TCAP",prefixIcon:"pod",ruleConfig:r.PERCENT_RULE_CONFIG},"pod:utilization":{label:"POD_QUOTA_UTILIZATION_SCAP",tcapLabel:"POD_QUOTA_UTILIZATION_NO_PERCENT_TCAP",prefixIcon:"pod",ruleConfig:r.PERCENT_RULE_CONFIG}};t.NODE_ALERTING_CONFIG=n;var l=n;t.default=l},,function(e,t,a){"use strict";a(15),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(1269),n={"cpu:usage":{label:"CPU_USAGE_SCAP",tcapLabel:"CPU_USAGE_TCAP",prefixIcon:"cpu",ruleConfig:r.CORE_RULE_CONFIG},"memory:usage":{label:"MEMORY_USAGE_SCAP",tcapLabel:"MEMORY_USAGE_TCAP",prefixIcon:"memory",ruleConfig:r.MIB_RULE_CONFIG},"memory:usageWoCache":{label:"MEMORY_USAGE_WO_CACHE_SCAP",tcapLabel:"MEMORY_USAGE_WO_CACHE_TCAP",prefixIcon:"memory",ruleConfig:r.MIB_RULE_CONFIG},"network:transmittedRate":{label:"DATA_SEND_RATE",tcapLabel:"DATA_SEND_RATE_TCAP",prefixIcon:"network",ruleConfig:r.MBPS_RULE_CONFIG},"network:receivedRate":{label:"DATA_RECEIVE_RATE",tcapLabel:"DATA_RECEIVE_RATE_TCAP",prefixIcon:"network",ruleConfig:r.MBPS_RULE_CONFIG},"replica:unavailableRatio":{label:"UNAVAILABLE_WORKLOAD_REPLICA_RATIO",tcapLabel:"UNAVAILABLE_WORKLOAD_REPLICA_RATIO_NO_PERCENT_TCAP",prefixIcon:"backup",ruleConfig:r.PERCENT_RULE_CONFIG}};t.default=n},function(e,a,r){"use strict";r(15);var n=r(157),l=r(20);r(18),r(10),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(18),r(10);var u=l(r(315)),o=l(r(96)),i=n(r(0)),c=l(r(1)),s=r(186),f=l(r(63)),d=l(r(26)),p=l(r(74)),m=l(r(242)),h=l(r(2077)),v=l(r(2078)),g=l(r(2096)),y=[{label:t("RULE_TEMPLATE"),value:"ruleTemplate"},{label:t("CUSTOM_RULE"),value:"customRule"}],E=function(e,a){var r=e.editRule,n=(0,f.default)(r)?y[0].value:(0,f.default)((0,d.default)(r,"exprBuilder",{}))?y[1].value:y[0].value,l=(0,i.useState)(n),c=(0,o.default)(l,2),E=c[0],b=c[1],_=(0,i.useRef)(),O=function(t){var a=e.onSave,r=_.current.target;r&&r.validate((function(){var e=r.getData();if("ruleTemplate"===E){var n=Object.keys((0,d.default)(e,"exprBuilder"))[0],l=(0,d.default)(e,"exprBuilder.".concat(n,".for")),u=(0,d.default)(e,"exprBuilder.".concat(n,".severity"));(0,p.default)(e,"for",l),(0,p.default)(e,"severity",u),(0,m.default)(e,"exprBuilder.".concat(n,".for")),(0,m.default)(e,"exprBuilder.".concat(n,".severity"))}else(0,p.default)(e,"exprBuilder",{});a(e),t&&t()}))};return(0,i.useEffect)((function(){var t=a.registerSubRoute,r=e.onCancel;t&&t(O,r)}),[E]),i.default.createElement("div",{className:h.default.AddRuleContainer},i.default.createElement("div",{className:"h6",style:{display:"flex",alignItems:"center"}},i.default.createElement(s.Icon,{name:"return",size:20,onClick:function(){var t=a.resetSubRoute;t&&t(),e.onCancel()}}),i.default.createElement("span",null,t("ADD_ALERTING_RULE"))),i.default.createElement("div",{className:h.default.AddForm},i.default.createElement(s.RadioGroup,{buttonWidth:132,value:E,wrapClassName:"radio",onChange:function(e){return b(e)}},y.map((function(e){return i.default.createElement(s.RadioButton,{key:e.value,value:e.value},e.label)}))),"ruleTemplate"===E?i.default.createElement(v.default,(0,u.default)({ref:_},e)):i.default.createElement(g.default,(0,u.default)({ref:_},e))))};E.contextTypes={registerSubRoute:c.default.func,resetSubRoute:c.default.func};var b=E;a.default=b},function(e,t,a){e.exports={AddRuleContainer:"WpgwYfFtGYQ9bOabv902A",AddForm:"xiV4clfTcv89q6y8rXZlp"}},function(e,t,a){"use strict";a(15);var r=a(157),n=a(20);a(10),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(10);var l=n(a(315)),u=n(a(96)),o=r(a(0)),i=n(a(26)),c=n(a(2079)),s=n(a(2092)),f=function(e,t){var a=e.editRule,r=(0,i.default)(a,"exprBuilder",{node:{}}),n=(0,o.useState)(Object.keys(r)[0]),f=(0,u.default)(n,2),d=f[0],p=f[1],m=(0,o.useRef)(),h=(0,o.useRef)();return(0,o.useImperativeHandle)(t,(function(){return{target:"node"===d?m.current.target:h.current.target}})),"node"===d?o.default.createElement(c.default,(0,l.default)({ref:m,exprBuilderTypeChange:p},e)):o.default.createElement(s.default,(0,l.default)({ref:h,exprBuilderTypeChange:p},e))},d=(0,o.forwardRef)(f);t.default=d},function(e,a,r){"use strict";r(15);var n=r(157),l=r(20);r(5),r(11),r(31),r(6),r(97),r(16),r(98),r(10),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(5),r(11),r(31),r(6),r(97),r(16),r(98),r(10),r(4),r(7);var u=l(r(96)),o=n(r(0)),i=r(186),c=l(r(26)),s=l(r(63)),f=l(r(247)),d=l(r(855)),p=l(r(447)),m=l(r(158)),h=l(r(1481)),v=l(r(1482)),g=l(r(2087)),y=l(r(995)),E=i.Tabs.TabPanel,b=function(e,a){var r=e.editRule,n=e.exprBuilderTypeChange,l=(0,o.useState)("node"),b=(0,u.default)(l,1)[0],_=(0,o.useState)((function(){return(0,c.default)(r,"clusterSelector.inValues",[])})),O=(0,u.default)(_,1)[0],S=(0,o.useCallback)((function(e,t){return!!r.exprBuilder?(0,c.default)(r,e,t):t}),[r]),C=(0,o.useState)((function(){var e="node";if(!(0,s.default)(r)&&r.exprBuilder){var t=r.exprBuilder;e=Object.keys(t)[0]}var a="node"!==e;return{alert:S("alert",""),annotations:{summary:S("annotations.summary",""),message:S("annotations.message","")},clusterSelector:{inValues:S("clusterSelector.inValues",[])},exprBuilder:{node:{names:a?[{cluster:"",names:[]}]:S("exprBuilder.node.names",[{cluster:"",names:[]}]),comparator:S("exprBuilder.node.comparator",">"),metricThreshold:a?{}:S("exprBuilder.node.metricThreshold",{}),for:S("for","1m"),severity:S("severity","critical")}},disable:S("disable",!1),labels:(0,c.default)(r,"labels")}})),D=(0,u.default)(C,1)[0],k=(0,o.useRef)();(0,o.useImperativeHandle)(a,(function(){return{target:k.current}}));var N=function(e,a,r){if(!a)return r();if((0,s.default)(a.comparator))return r({message:t("OPERATOR_REQUIRED"),field:e.field});if((0,s.default)(a.metricThreshold))return r({message:t("THRESHOLD_REQUIRED"),field:e.field});var n=Object.keys(a.metricThreshold)[0],l=Object.keys(a.metricThreshold[n])[0],u=a.metricThreshold[n][l];return""===u||!u||(0,m.default)(u)?r({message:t("THRESHOLD_REQUIRED"),field:e.field}):(0,p.default)(u,".")?r({message:t("THRESHOLD_INVALID"),field:e.field}):void r()},T=function(a,r,n){var l=(0,d.default)(r.filter((function(e){return""!==e&&""!==e.cluster})),(function(e){return e.cluster}));return Object.entries(l).some((function(e){var t=(0,u.default)(e,2)[1],a=[];return t.forEach((function(e){a=a.concat(e.names)})),(0,f.default)(a).length!==a.length}))?n({message:t("NODE_TARGET_REPEAT")}):(r.forEach((function(a){return""===a?n({message:t("MONITOR_TARGET_EMPTY")}):""===a.cluster?n({message:t("CLUSTER_FIELD_EMPTY")}):e.allClusters.find((function(e){return e.name===a.cluster}))?(0,s.default)(a.names)?n({message:t("SELECT_A_TARGET_NODE")}):void 0:n({message:t("MONITOR_TARGET_CLUSTER_DELETED_DESC")})})),n())};return o.default.createElement(i.Form,{data:D,ref:k},o.default.createElement("div",{className:h.default.label},t("RULE_SETTINGS")),o.default.createElement("div",{className:h.default.contentGroup},o.default.createElement(i.Form.Item,{label:t("RULE_NAME"),desc:t("CUSTOM_RULE_NAME_DESC"),rules:[{required:!0,message:t("RULE_NAME_REQUIRED")}]},o.default.createElement(i.Input,{name:"alert",maxLength:63})),o.default.createElement("div",{className:h.default.tabs},o.default.createElement(i.Tabs,{type:"button",activeName:b,onChange:function(e){return n(e)}},o.default.createElement(E,{label:t("NODE"),name:"node"}),o.default.createElement(E,{label:t("WORKLOAD"),name:"workload"}))),o.default.createElement(i.Form.Item,{label:t("MONITORING_TARGETS"),rules:[{required:!0,message:t("MONITOR_TARGET_EMPTY")},{validator:T}]},o.default.createElement(v.default,{monitorLevel:"node",resourceType:"node",name:"exprBuilder.node.names",clusterTargets:O,allClusters:e.allClusters})),o.default.createElement(i.Form.Item,{label:t("TRIGGER_CONDITION"),rules:[{required:!0,message:t("SET_ACTIVATION_CONDITION_DESC")},{validator:N}]},o.default.createElement(g.default,{resourceType:"node",name:"exprBuilder.node"}))),o.default.createElement(y.default,null),o.default.createElement("div",{className:h.default.label},t("MESSAGE_SETTINGS")),o.default.createElement("div",{className:h.default.contentGroup},o.default.createElement(i.Form.Item,{className:h.default.message,label:t("MESSAGE_SUMMARY"),desc:t("MESSAGE_SUMMARY_DESC"),rules:[{required:!0,message:t("MESSAGE_REQUIRED")}]},o.default.createElement(i.Input,{name:"annotations.summary",maxLength:63})),o.default.createElement(i.Form.Item,{className:h.default.message,label:t("MESSAGE_DETAILS"),desc:t("MESSAGE_DETAILS_DESC")},o.default.createElement(i.TextArea,{name:"annotations.message",maxLength:256}))))},_=(0,o.forwardRef)(b);a.default=_},function(e,t,a){"use strict";var r=a(157),n=a(20);a(12),a(5),a(11),a(6),a(18),a(9),a(13),a(10),a(4),a(23),a(17),a(7),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(12),a(45),a(5),a(11),a(6),a(18),a(28),a(42),a(34),a(15),a(9),a(13),a(10),a(4),a(23),a(57),a(17),a(7);var l=n(a(30)),u=n(a(36)),o=n(a(37)),i=n(a(55)),c=n(a(56)),s=n(a(51)),f=r(a(0)),d=n(a(829)),p=n(a(439)),m=n(a(189)),h=n(a(2082)),v=n(a(1484));function g(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function y(e){for(var t=1;t0)},e.fetchNsList=function(t){var a=t.cluster,r=t.workspace;return e.store.fetchList({cluster:a,workspace:r,labelSelector:"kubefed.io/managed!=true, kubesphere.io/kubefed-host-namespace!=true",limit:-1})},e}return(0,o.default)(a,[{key:"render",value:function(){return f.default.createElement("div",{className:v.default.wrapper},f.default.createElement(d.default,{value:this.props.value.map((function(e,t){return y(y({},e),{},{id:t})})),onChange:this.handleSelectChange,checkItemValid:this.checkItemValid,itemType:"object"},f.default.createElement(h.default,{clusterOptions:this.clusterOptions,fetchNsList:this.fetchNsList,allWorkspace:this.props.allWorkspace,workloadType:this.props.workloadType})))}},{key:"clusterOptions",get:function(){return this.props.allClusters}}]),a}(f.Component);t.default=b},function(e,t,a){"use strict";var r=a(157),n=a(20);a(12),a(11),a(6),a(9),a(13),a(10),a(7),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(12),a(11),a(6),a(28),a(34),a(15),a(9),a(13),a(10),a(4),a(7);var l=n(a(30)),u=n(a(96)),o=r(a(0)),i=a(186),c=n(a(1483));function s(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function f(e){for(var t=1;ti-30&&(n=t,a=!0)}));var c=t.map((function(e,t){return{label:e,value:e,hide:-1!==n&&t>n}}));r>i-30?(c[n].label="+".concat(t.length-n),w((0,u.default)(c))):w((0,u.default)(c));var s=O.current.selectRef.current.children[0].children[0].children;c.forEach((function(e,t){if(s[t]&&(e.hide||s[t].setAttribute("style","display:inline-block;"),(0,f.default)(e.label,"+"))){var a=v.default.hideIcon;s[t]&&s[t].setAttribute("class","tag tag-default select-multi-value-item ".concat(a))}}))}}),[l]),(0,d.useEffect)((function(){var e=l.cluster,t=void 0===e?"":e,a=l.namespace,r=void 0===a?"":a;""!==t&&""!==r&&r!==j.current&&Promise.all([_.current[b].fetchList({cluster:l.cluster,namespace:l.namespace,limit:-1})]).then((function(e){var t=(0,o.default)(e,1)[0];A(t.map((function(e){return e.name})))})),j.current=l.namespace}),[l,b]);var L=(0,d.useCallback)((function(e){e!==l.cluster&&(k(""),E({cluster:e,namespace:"",names:[]}))}),[l]),x=(0,d.useCallback)((function(e){var t=e.namespace,a=e.workspace;k(a),E({cluster:l.cluster,namespace:t,names:[]})}),[l]),U=(0,d.useCallback)((function(e){E({cluster:l.cluster,namespace:l.namespace,names:e})}),[l]),z=(0,d.useCallback)((function(e){var t=n.filter((function(t){return t.name===e.value}))[0];return e.value?d.default.createElement(d.default.Fragment,null,d.default.createElement(i.Icon,{name:h.CLUSTER_PROVIDER_ICON[t.provider]||"kubernetes",size:20,type:"light"}),d.default.createElement("span",{className:v.default.optionText},e.label)):null}),[n]),F=(0,d.useCallback)((function(e){if(""===e.value)return d.default.createElement("span",null,e.label);var t=n.filter((function(t){return t.name===e.value}))[0];if(!t)return d.default.createElement(d.default.Fragment,null,d.default.createElement(i.Icon,{name:"question",size:20}),d.default.createElement("span",{className:v.default.optionText},e.label));var a=(0,c.default)(t,"provider",!1)?h.CLUSTER_PROVIDER_ICON[t.provider]:"kubernetes";return d.default.createElement(d.default.Fragment,null,d.default.createElement(i.Icon,{name:a,size:20}),d.default.createElement("span",{className:v.default.optionText},e.label))}),[n]),G=(0,d.useCallback)((function(e){var t=R.filter((function(t){return t.value===e.value}));return t.length>0&&d.default.createElement("span",{className:v.default.nodeLabel},t[0].label)}),[R]);return d.default.createElement("div",{className:v.default.selectItem},d.default.createElement(i.Select,{className:v.default.clusterOpt,value:null!==(a=null===(r=n.filter((function(e){return e.name===l.cluster}))[0])||void 0===r?void 0:r.name)&&void 0!==a?a:l.cluster,options:n.map((function(e){return{label:(0,m.getDomTitle)((0,m.showNameAndAlias)(e.name,"cluster",{},!0,(function(){return(void 0).forceUpdate()}))),value:e.name}})),onChange:L,optionRenderer:z,valueRenderer:F,placeholder:t("CLUSTER")}),d.default.createElement(g.default,{selectedWs:D,value:l.namespace,allWorkspace:e.allWorkspace,fetchNsList:e.fetchNsList,cluster:l.cluster,onChange:x}),d.default.createElement(i.Select,{ref:O,className:v.default.nodeOpt,value:(0,s.default)(l.names)?"":l.names,options:P.map((function(e){return{label:e,value:e}})),valueRenderer:G,onChange:U,placeholder:t("WORKLOAD"),multi:!0}))};a.default=E},function(e,a,r){"use strict";r(15);var n=r(157),l=r(20);r(11),r(31),r(29),r(18),r(97),r(16),r(4),r(22),r(38),r(32),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(11),r(31),r(29),r(18),r(97),r(16),r(4),r(22),r(38),r(32);var u=l(r(30)),o=l(r(61)),i=l(r(96)),c=r(186),s=l(r(3)),f=n(r(0)),d=r(52),p=l(r(2084)),m=function(e){var a,r=e.allWorkspace,n=void 0===r?[]:r,l=e.cluster,m=void 0===l?"":l,h=e.selectedWs,v=e.value,g=(0,f.useState)(!1),y=(0,i.default)(g,2),E=y[0],b=y[1],_=(0,f.useState)(h),O=(0,i.default)(_,2),S=O[0],C=O[1],D=(0,f.useState)([]),k=(0,i.default)(D,2),N=k[0],T=k[1],R=(0,f.useState)([]),w=(0,i.default)(R,2),I=w[0],M=w[1],P=(0,f.useState)(!1),A=(0,i.default)(P,2),j=A[0],L=A[1],x=(0,f.useRef)();(0,f.useEffect)((function(){""!==S&&""!==m&&Promise.all([e.fetchNsList({cluster:m,workspace:S})]).then((function(e){var t=(0,i.default)(e,1)[0];L(!1),t.length>0?M(t.map((function(e){return{label:(0,d.getDisplayNameNew)(e),value:e.name}}))):M([])})),m&&v&&!h&&e.fetchNsList({cluster:m}).then((function(e){if(L(!1),e.length>0){var t=e.find((function(e){return e.name===v}));t&&C(t.workspace)}}))}),[S,m]),(0,f.useEffect)((function(){var e=n.filter((function(e){return e.clusters.some((function(e){return e.name===m}))||"system-workspace"===e.name}));T((0,o.default)(e))}),[m,n]),(0,f.useEffect)((function(){var e=function(e){var t=e.target,a=x.current;a&&!a.contains(t)&&b(!1)};return document.addEventListener("click",e),function(){return document.removeEventListener("click",e)}}),[]);var U=(0,f.useCallback)((function(){b(!E)}),[]);return f.default.createElement("div",{className:p.default.selectBox,ref:x},f.default.createElement("div",{className:(0,s.default)("select-control",p.default.innerBox),onClick:U},f.default.createElement("input",{readOnly:!0,autoComplete:"off",placeholder:t("PROJECT"),value:(null===(a=I.find((function(e){return e.value===v})))||void 0===a?void 0:a.label)||""}),f.default.createElement("div",{className:(0,s.default)((0,u.default)({},p.default.iconRotate,E))},f.default.createElement(c.Icon,{name:"chevron-down",size:16}))),f.default.createElement("div",{className:(0,s.default)(p.default.options,(0,u.default)({},p.default.show,E))},f.default.createElement("ul",null,N.map((function(e){return f.default.createElement("li",{className:(0,s.default)(p.default.ws,(0,u.default)({},p.default.isActive,S===e.name)),key:e.name,onClick:function(){var t;(t=e.name)!==S&&(C(t),L(!0))}},f.default.createElement(c.Icon,{name:"enterprise",color:{primary:"#fff"},size:16}),f.default.createElement("span",{className:p.default.wsName},(0,d.showNameAndAlias)(e.name,"workspace",{},!1,void 0,!0)),f.default.createElement(c.Icon,{name:"chevron-right",color:{primary:"#fff"},size:16}))}))),f.default.createElement("ul",{className:p.default.ListWrapper},""===m?f.default.createElement("div",{className:p.default.loadingBox},t("CLUSTER_FIELD_EMPTY")):j?f.default.createElement("div",{className:p.default.loadingBox},t("LOADING")):I.length<1?f.default.createElement("div",{className:p.default.loadingBox},t("NO_DATA_DESC")):I.map((function(t){return f.default.createElement("li",{key:t.value,className:(0,s.default)(p.default.nsItem,(0,u.default)({},p.default.isActive,v===t.value)),onClick:function(){return(a=t.value)!==v&&e.onChange({namespace:a,workspace:S}),void b(!1);var a}},(0,d.getDomTitle)(t.label))})))))};a.default=m},function(e,t,a){e.exports={selectBox:"_2HZWNNmjenFUgAAucLbTvP",innerBox:"_2W7W_pAH828HoNZ29CUlyv",placeholder:"_89eAxB9DH2UN7qcx12dIk",options:"l1crorAaNjCxL9hdrnMS8",ws:"_1LPbr6qwuZqa4UWJ73i5OL",wsName:"_2cyzMAYZEd4fSRzsGJKkvS",isActive:"_3dQHRBXMOnHdo4MY-xqfxj",ListWrapper:"_3_0Sw2Pq9JisypKNfYCm-V",nsItem:"_31EvXA_mmdBOpZaFB_ICVg",loadingBox:"_32e-dGX3Y1qlexnPJPK1hp",show:"_34BZ8bF4uqtVdZ-P3nbaV8",iconRotate:"_3LfZXCNHbyBVhN9KdOAUjs"}},function(e,t,a){"use strict";var r=a(157),n=a(20);a(12),a(5),a(11),a(6),a(18),a(9),a(13),a(10),a(4),a(23),a(17),a(7),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(12),a(45),a(5),a(11),a(6),a(18),a(28),a(42),a(34),a(15),a(9),a(13),a(10),a(4),a(23),a(57),a(17),a(7);var l=n(a(30)),u=n(a(36)),o=n(a(37)),i=n(a(55)),c=n(a(56)),s=n(a(51)),f=r(a(0)),d=n(a(829)),p=n(a(189)),m=n(a(2086)),h=n(a(1485));function v(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function g(e){for(var t=1;t0)},e}return(0,o.default)(a,[{key:"render",value:function(){return f.default.createElement("div",{className:h.default.wrapper},f.default.createElement(d.default,{value:this.props.value.map((function(e,t){return g(g({},e),{},{id:t})})),onChange:this.handleSelectChange,checkItemValid:this.checkItemValid},f.default.createElement(m.default,{clusterOptions:this.clusterOptions})))}},{key:"clusterOptions",get:function(){return this.props.allClusters}}]),a}(f.Component);t.default=E},function(e,a,r){"use strict";r(15);var n=r(20),l=r(157);r(11),r(6),r(29),r(18),r(16),r(4),r(22),r(38),r(7),r(32),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(11),r(6),r(29),r(18),r(16),r(4),r(22),r(38),r(7),r(32);var u=n(r(61)),o=n(r(96)),i=r(186),c=n(r(3)),s=n(r(800)),f=n(r(26)),d=n(r(63)),p=n(r(1152)),m=l(r(0)),h=n(r(856)),v=r(52),g=r(72),y=n(r(1485));function E(e,t){var a=(E.canvas||(E.canvas=document.createElement("canvas"))).getContext("2d");return a.font=t,a.measureText(e).width}var b=function(e){var a,r,n,l=e.clusterOptions,b=e.value,_=e.onChange,O=(0,m.useRef)(new h.default),S=(0,m.useState)([]),C=(0,o.default)(S,2),D=C[0],k=C[1],N=(0,m.useState)(null!==(a=null==b?void 0:b.names)&&void 0!==a?a:[]),T=(0,o.default)(N,2),R=T[0],w=T[1],I=(0,m.useRef)(),M=(0,m.useState)([]),P=(0,o.default)(M,2),A=P[0],j=P[1];(0,m.useEffect)((function(){var e=b.cluster,t=void 0===e?"":e;""!==t&&Promise.all([O.current.fetchList({limit:-1,cluster:t})]).then((function(e){var t=(0,o.default)(e,1)[0];k(t)}))}),[b.cluster]),(0,m.useEffect)((function(){if(!(R.length<1)){var e=!1,t=0,a=-1,r=I.current.selectRef.current.children[0].children[0].children,n=r[r.length-1].offsetParent.offsetWidth;R.forEach((function(r,l){t+=E(r,"12px PingFang SC")+36,!e&&t>n&&(a=l,e=!0)}));var l=R.map((function(e,t){return{label:e,value:e,hide:-1!==a&&t>a}}));t>n?(l[a].label="+".concat(R.length-a),j((0,u.default)(l))):j((0,u.default)(l))}}),[R]),(0,m.useEffect)((function(){var e=I.current.selectRef.current.children[0].children[0].children;A.forEach((function(t,a){if(e[a]&&(t.hide||e[a].setAttribute("style","display:inline-block;"),(0,p.default)(t.label,"+"))){var r=y.default.hideIcon;e[a].setAttribute("class","tag tag-default select-multi-value-item ".concat(r))}}))}),[A]);var L=(0,m.useCallback)((0,s.default)((function(e){w([]),_({cluster:e,names:[]})}),1e3)),x=(0,m.useCallback)((function(e){w(e),_({cluster:b.cluster,names:e})})),U=(0,m.useCallback)((function(e){var t=l.filter((function(t){return t.name===e.value}))[0];return e.value?m.default.createElement(m.default.Fragment,null,m.default.createElement(i.Icon,{name:g.CLUSTER_PROVIDER_ICON[t.provider]||"kubernetes",size:20,type:"light"}),m.default.createElement("span",{className:y.default.optionText},e.label)):null}),[l]),z=(0,m.useCallback)((function(e){if(""===e.value)return m.default.createElement("span",null,e.label);var t=l.filter((function(t){return t.name===e.value}))[0];if(!t)return m.default.createElement(m.default.Fragment,null,m.default.createElement(i.Icon,{name:"question",size:20}),m.default.createElement("span",{className:y.default.optionText},e.label));var a=(0,f.default)(t,"provider",!1)?g.CLUSTER_PROVIDER_ICON[t.provider]:"kubernetes";return m.default.createElement(m.default.Fragment,null,m.default.createElement(i.Icon,{name:a,size:20}),m.default.createElement("span",{className:y.default.optionText},e.label))}),[l]);return m.default.createElement("div",{className:y.default.selectItem},m.default.createElement(i.Select,{className:y.default.clusterOpt,value:null!==(r=null===(n=l.filter((function(e){return e.name===b.cluster}))[0])||void 0===n?void 0:n.name)&&void 0!==r?r:b.cluster,options:l.map((function(e){return{label:(0,v.getDomTitle)((0,v.showNameAndAlias)(e.name,"cluster",{},!0,(function(){return(void 0).forceUpdate()}))),value:e.name}})),onChange:L,optionRenderer:U,valueRenderer:z,placeholder:t("CLUSTER")}),m.default.createElement(i.Select,{ref:I,className:(0,c.default)(y.default.nodeOpt),value:(0,d.default)(R)?"":R,options:D.map((function(e){return{label:e.name,value:e.name}})),valueRenderer:function(e){var t=A.filter((function(t){return t.value===e.value}));return t.length>0&&m.default.createElement("span",{className:y.default.nodeLabel},t[0].label)},onChange:x,multi:!0,placeholder:t("NODE")}))};a.default=b},function(e,a,r){"use strict";var n=r(20);r(12),r(5),r(11),r(31),r(6),r(18),r(97),r(16),r(27),r(98),r(9),r(13),r(10),r(4),r(23),r(24),r(17),r(64),r(136),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var l=n(r(96)),u=n(r(315)),o=n(r(58)),i=n(r(30)),c=n(r(36)),s=n(r(37)),f=n(r(55)),d=n(r(56)),p=n(r(51));r(12),r(45),r(5),r(11),r(31),r(6),r(18),r(28),r(97),r(42),r(16),r(27),r(34),r(15),r(98),r(9),r(13),r(10),r(4),r(23),r(57),r(24),r(17),r(64),r(7);var m=n(r(0)),h=n(r(1)),v=n(r(3)),g=n(r(76)),y=n(r(26)),E=n(r(135)),b=n(r(63)),_=n(r(447)),O=r(186),S=n(r(799)),C=r(923),D=r(993),k=n(r(1028)),N=n(r(2090));function T(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function R(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:[];return e.map((function(e){var a=e.prefixIcon,r=e.color,n=e.type,l=e.label,u=e.value,o=e.disabled,i={label:t(l,{value:u}),value:u};return a&&(i.label=m.default.createElement("div",{className:(0,v.default)(N.default.optionLabel,N.default[n])},m.default.createElement(O.Icon,{name:a,size:20,color:r}),i.label)),o&&(i.disabled=o),i}))},n.handleMetricTypeChange=function(e){var t=e.split(":")[0],a=e.split(":")[1],r=n.state,l=r.comparator,u=r.severity,o=r.duration;n.setState({metricType:e,nodeResourceType:t,monitorType:a,thresholds:""},(function(){n.props.onChange({names:n.props.value.names,metricThreshold:(0,i.default)({},t,(0,i.default)({},a,"")),comparator:l,severity:u,for:o})}))},n.handleItemChange=function(e,t){return function(a,r){var l=n.props.onChange,u=(0,g.default)(r)||!r?a:r;"thresholds"===e&&(u=""!==(u=String(u).replace(/([a-zA-Z%/])+$/g,""))?(0,_.default)(u,".")?u:t(Number(u)):""),n.setState((0,i.default)({},e,u),(function(){var t=n.state,a=t.nodeResourceType,r=t.monitorType,o=t.comparator,c=t.duration,s=t.severity,f=(0,y.default)(n.props.value,"metricThreshold.".concat(a,".").concat(r));l({names:n.props.value.names,metricThreshold:(0,i.default)({},a,(0,i.default)({},r,"thresholds"===e?u:f)),comparator:"comparator"===e?u:o,for:c,severity:s})}))}},n.handleDurationChange=function(e){var t=n.state,a=t.severity,r=t.nodeResourceType,l=t.monitorType,u=t.comparator,o=(0,y.default)(n.props.value,"metricThreshold.".concat(r,".").concat(l));n.setState({duration:e},(function(){n.props.onChange({names:n.props.value.names,metricThreshold:(0,i.default)({},r,(0,i.default)({},l,o)),for:e,severity:a,comparator:u})}))},n.handleSeverityChange=function(e){var t=n.state,a=t.duration,r=t.nodeResourceType,l=t.monitorType,u=t.comparator,o=(0,y.default)(n.props.value,"metricThreshold.".concat(r,".").concat(l));n.setState({severity:e},(function(){n.props.onChange({names:n.props.value.names,metricThreshold:(0,i.default)({},r,(0,i.default)({},l,o)),for:a,comparator:u,severity:e})}))},n.renderConfigItem=function(){var e,a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=n.props.value,l=n.state,i=l.nodeResourceType,c=l.monitorType,s=a.type,f=a.name,d=a.placeholder,p=a.options,h=void 0===p?[]:p,v=a.reverser,g=a.converter,E=(0,o.default)(a,["type","name","placeholder","options","reverser","converter"]);if(v){var b=(0,y.default)(r,"metricThreshold.".concat(i,".").concat(c),"");e=""!==b?(0,_.default)(b,".")?b:v(Number(b)):""}var C={key:f,className:N.default[f],placeholder:t(d),value:"comparator"===f?n.state.comparator:e,onChange:n.handleItemChange(f,g)};switch(s){default:case"select":var D=n.getSelectOptions(h);return m.default.createElement(O.Select,(0,u.default)({options:D},C,E));case"number":return m.default.createElement(S.default,(0,u.default)({showUnit:!0},C,E,{integer:!1}))}},n.state=R(R({metricType:n.getMetricType(e)},n.getStateFromProps(e)),{},{metricOps:n.getSelectOptions(n.metricConfig)}),n}return(0,s.default)(r,[{key:"render",value:function(){var e=this.state,a=e.metricType,r=e.duration,n=e.severity,l=this.ruleConfig;return m.default.createElement("div",{className:N.default.inputs},m.default.createElement("div",{className:N.default.type},m.default.createElement(O.Select,{options:this.state.metricOps,value:a,onChange:this.handleMetricTypeChange})),l.map(this.renderConfigItem),m.default.createElement(O.Select,{value:r,className:N.default.normalSelect,options:I,onChange:this.handleDurationChange,placeholder:t("DURATION")}),m.default.createElement(k.default,{value:n,className:N.default.normalSelect,options:this.alertingTypeOptions,onChange:this.handleSeverityChange,placeholder:t("SEVERITY")}))}},{key:"resourceMetricsConfig",get:function(){return(0,E.default)(C.RESOURCE_METRICS_CONFIG.node)||{}}},{key:"alertingTypeOptions",get:function(){return D.severityOptions.map((function(e){return{label:e.label,value:e.value}}))}},{key:"metricConfig",get:function(){var e=this.resourceMetricsConfig;return Object.entries(e).map((function(e){var t=(0,l.default)(e,2);return R({value:t[0]},t[1])}))}},{key:"selectMetricConfig",get:function(){var e=this.state.metricType;return this.metricConfig.find((function(t){return t.value===e}))}},{key:"ruleConfig",get:function(){return(0,y.default)(this.selectMetricConfig,"ruleConfig")||[]}}]),r}(m.default.Component);M.propTypes={metricConfig:h.default.array,value:h.default.object,onChange:h.default.func},M.defaultProps={metricConfig:[],value:{},onChange:function(){}};var P=M;a.default=P},function(e,t,a){e.exports={withUnit:"_2d32hkfOO3cYnvAM-MUswq",unit:"_29q45C0afPynal54hwpQfk",buttonWrapper:"Xtv_UB0AENviuvA8Y0gqH",iconUp:"_3YXrySn0XAnhuGzYYrXWeS",iconDown:"_3MtBoqy8WlB29Jb0N9EU1X"}},function(e,t,a){e.exports={critical:"_28huuzFgXrJ6A5awxlLmo3",error:"_2bY9jX-FcyeLAsVRSTadc4",warning:"_38IIdf4HUwM0dVDJZueSYQ",info:"_28OI9ApLFda1TO7f4ri8Bu"}},function(e,t,a){e.exports={inputs:"_1yVUajtAef8AhyQtZ2UGfF",type:"rVNaKjX5dXQGjZ6T7OuFi",comparator:"_1yPrzflD49gPjizoYXpqaa",thresholds:"_28w2cWTwatHJT2puBGeAGe",normalSelect:"_2xhhjqI0Rhdg-vrU4jjwWs",optionLabel:"_1XLcPFr1dFfIXq9BiAT512",slider:"_3FGbsXervaDG5M0e7nQhO7",condition_type:"_25t0zn0luRkHFmHakj0RD_"}},function(e,t,a){e.exports={label:"OTDgTwIj2gmBcD0BMGmC6",contentGroup:"_3nfVSV6R6UI-KMSyFNGODe",inline:"_3iClSviv5wuM7iCH0ta61O",tabs:"_32qgHgW_mbXFffugytUxdz"}},function(e,a,r){"use strict";var n=r(157),l=r(20);r(12),r(11),r(31),r(6),r(18),r(97),r(16),r(98),r(9),r(13),r(10),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(11),r(31),r(6),r(18),r(28),r(97),r(16),r(34),r(15),r(98),r(9),r(13),r(10),r(4),r(7);var u=l(r(30)),o=l(r(96)),i=n(r(0)),c=r(186),s=l(r(26)),f=l(r(63)),d=l(r(247)),p=l(r(855)),m=l(r(135)),h=l(r(74)),v=l(r(447)),g=l(r(158)),y=l(r(2093)),E=l(r(1482)),b=l(r(2094)),_=l(r(1481)),O=l(r(995));function S(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function C(e){for(var t=1;t"),for:A("for","1m"),severity:A("severity","critical")}},disable:A("disable",!1),labels:(0,s.default)(r,"labels")}})),L=(0,o.default)(j,2),x=L[0],U=L[1],z=(0,i.useRef)();(0,i.useImperativeHandle)(a,(function(){return{target:z.current}}));return i.default.createElement("div",null,i.default.createElement(c.Form,{data:x,ref:z,key:"workload"},i.default.createElement("div",{className:_.default.label},t("RULE_SETTINGS")),i.default.createElement("div",{className:_.default.contentGroup},i.default.createElement(c.Form.Item,{label:t("RULE_NAME"),desc:t("CUSTOM_RULE_NAME_DESC"),rules:[{required:!0,message:t("RULE_NAME_REQUIRED")}]},i.default.createElement(c.Input,{name:"alert",maxLength:63})),i.default.createElement("div",{className:_.default.tabs},i.default.createElement(c.Tabs,{type:"button",activeName:u,onChange:function(e){return n(e)}},i.default.createElement(D,{label:t("NODE"),name:"node"}),i.default.createElement(D,{label:t("WORKLOAD"),name:"workload"}))),i.default.createElement(c.Form.Item,{label:t("RESOURCE_TYPE")},i.default.createElement(c.Select,{className:_.default.workloadType,name:"exprBuilder.workload.kind",options:[{label:t("DEPLOYMENT"),value:"Deployment"},{label:t("STATEFULSET"),value:"StatefulSet"},{label:t("DAEMONSET"),value:"DaemonSet"}],onChange:function(e){R(e);var t=(0,m.default)(x);(0,h.default)(t,"exprBuilder.workload.names",[{cluster:"",namespace:"",names:[]}]),U(t)}})),i.default.createElement(c.Form.Item,{label:t("MONITORING_TARGETS"),rules:[{required:!0,message:t("MONITOR_TARGET_EMPTY")},{validator:function(a,r,n){var l=(0,p.default)(r.filter((function(e){return""!==e&&""!==e.namespace})),(function(e){return e.cluster}));return Object.entries(l).some((function(e){var t=(0,o.default)(e,2)[1].map((function(e){return e.namespace}));return(0,d.default)(t).length!==t.length}))?n({message:t("NAME_SPACE_REPEAT")}):(r.filter((function(e){return""!==e})).forEach((function(a){return""===a.cluster?n({message:t("CLUSTER_FIELD_EMPTY")}):e.allClusters.find((function(e){return e.name===a.cluster}))?""===a.namespace?n({message:t("SET_NAMESPACE_BELONGS_TO")}):(0,f.default)(a.names)?n({message:t("MONITOR_TARGET_EMPTY")}):void 0:n({message:t("MONITOR_TARGET_CLUSTER_DELETED_DESC")})})),n())}}]},i.default.createElement(E.default,{monitorLevel:"workload",workloadType:T,name:"exprBuilder.workload.names",clusterTargets:I,allClusters:e.allClusters,allWorkspace:P,handleChangeNs:function(e){var t=e.filter((function(e){return""!==e&&""!==e.namespace})).map((function(e){return e.namespace}));U(C(C({},x),{},{namespaceSelector:{inValues:(0,d.default)(t)}}))}})),i.default.createElement(c.Form.Item,{label:t("TRIGGER_CONDITION"),rules:[{required:!0,message:t("SET_ACTIVATION_CONDITION_DESC")},{validator:function(e,a,r){if(!a)return r();if((0,f.default)(a.comparator))return r({message:t("OPERATOR_REQUIRED"),field:e.field});if((0,f.default)(a.metricThreshold))return r({message:t("THRESHOLD_REQUIRED"),field:e.field});var n=Object.keys(a.metricThreshold)[0],l=Object.keys(a.metricThreshold[n])[0],u=a.metricThreshold[n][l];return""===u||!u||(0,g.default)(u)?r({message:t("THRESHOLD_REQUIRED"),field:e.field}):(0,v.default)(u,".")?r({message:t("THRESHOLD_INVALID"),field:e.field}):void r()}}]},i.default.createElement(b.default,{name:"exprBuilder.workload"}))),i.default.createElement(O.default,null),i.default.createElement("div",{className:_.default.label},t("MESSAGE_SETTINGS")),i.default.createElement("div",{className:_.default.contentGroup},i.default.createElement(c.Form.Item,{className:_.default.message,label:t("MESSAGE_SUMMARY"),desc:t("MESSAGE_SUMMARY_DESC"),rules:[{required:!0,message:t("MESSAGE_REQUIRED")}]},i.default.createElement(c.Input,{name:"annotations.summary",maxLength:63})),i.default.createElement(c.Form.Item,{className:_.default.message,label:t("MESSAGE_DETAILS"),desc:t("MESSAGE_DETAILS_DESC")},i.default.createElement(c.TextArea,{name:"annotations.message",maxLength:256})))))},T=(0,i.forwardRef)(N);a.default=T},function(e,t,a){"use strict";a(15);var r=a(20);a(29),a(18),a(16),a(4),a(22),a(38),a(32),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(29),a(18),a(16),a(4),a(22),a(38),a(32);var n=r(a(96)),l=a(0),u=r(a(445)),o=function(){var e=(0,l.useRef)(new u.default),t=(0,l.useState)([]),a=(0,n.default)(t,2),r=a[0],o=a[1];return(0,l.useEffect)((function(){Promise.all([e.current.fetchList({limit:-1})]).then((function(e){var t=(0,n.default)(e,1)[0].map((function(e){return{name:e.name,clusters:e.clusters}}));o(t)}))}),[]),[r]};t.default=o},function(e,a,r){"use strict";var n=r(20);r(12),r(5),r(11),r(31),r(6),r(18),r(97),r(16),r(27),r(98),r(9),r(13),r(10),r(4),r(23),r(24),r(17),r(64),r(136),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var l=n(r(96)),u=n(r(315)),o=n(r(58)),i=n(r(30)),c=n(r(36)),s=n(r(37)),f=n(r(55)),d=n(r(56)),p=n(r(51));r(12),r(45),r(5),r(11),r(31),r(6),r(18),r(28),r(97),r(42),r(16),r(27),r(34),r(15),r(98),r(9),r(13),r(10),r(4),r(23),r(57),r(24),r(17),r(64),r(7);var m=n(r(0)),h=n(r(1)),v=n(r(3)),g=n(r(76)),y=n(r(26)),E=n(r(135)),b=n(r(63)),_=n(r(447)),O=r(186),S=n(r(799)),C=r(923),D=n(r(1028)),k=r(993),N=n(r(2095));function T(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function R(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:[];return e.map((function(e){var a=e.prefixIcon,r=e.color,n=e.type,l=e.label,u=e.value,o=e.disabled,i={label:t(l,{value:u}),value:u};return a&&(i.label=m.default.createElement("div",{className:(0,v.default)(N.default.optionLabel,N.default[n])},m.default.createElement(O.Icon,{name:a,size:20,color:r}),i.label)),o&&(i.disabled=o),i}))},n.handleMetricTypeChange=function(e){var t=e.split(":")[0],a=e.split(":")[1],r=n.state,l=r.comparator,u=r.severity,o=r.duration;n.setState({metricType:e,nodeResourceType:t,monitorType:a,thresholds:""},(function(){n.props.onChange({names:n.props.value.names,metricThreshold:(0,i.default)({},t,(0,i.default)({},a,"")),kind:n.props.value.kind,comparator:l,severity:u,for:o})}))},n.handleItemChange=function(e,t){return function(a,r){var l=n.props.onChange,u=(0,g.default)(r)||!r?a:r;"thresholds"===e&&(u=""!==(u=String(u).replace(/([a-zA-Z%/])+$/g,""))?(0,_.default)(u,".")?u:t(Number(u)):""),n.setState((0,i.default)({},e,u),(function(){var t=n.state,a=t.nodeResourceType,r=t.monitorType,o=t.comparator,c=t.duration,s=t.severity,f=(0,y.default)(n.props.value,"metricThreshold.".concat(a,".").concat(r));l({names:n.props.value.names,metricThreshold:(0,i.default)({},a,(0,i.default)({},r,"comparator"===e?f:u)),comparator:"comparator"===e?u:o,for:c,kind:n.props.value.kind,severity:s})}))}},n.handleDurationChange=function(e){var t=n.state,a=t.severity,r=t.nodeResourceType,l=t.monitorType,u=t.comparator,o=(0,y.default)(n.props.value,"metricThreshold.".concat(r,".").concat(l));n.setState({duration:e},(function(){n.props.onChange({names:n.props.value.names,metricThreshold:(0,i.default)({},r,(0,i.default)({},l,o)),kind:n.props.value.kind,for:e,severity:a,comparator:u})}))},n.handleSeverityChange=function(e){var t=n.state,a=t.duration,r=t.nodeResourceType,l=t.monitorType,u=t.comparator,o=(0,y.default)(n.props.value,"metricThreshold.".concat(r,".").concat(l));n.setState({severity:e},(function(){n.props.onChange({names:n.props.value.names,metricThreshold:(0,i.default)({},r,(0,i.default)({},l,o)),kind:n.props.value.kind,for:a,comparator:u,severity:e})}))},n.renderConfigItem=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=n.props.value,r=n.state,l=r.nodeResourceType,i=r.monitorType,c=t.type,s=t.name,f=(t.placeholder,t.options),d=void 0===f?[]:f,p=t.reverser,h=t.converter,v=(0,o.default)(t,["type","name","placeholder","options","reverser","converter"]);if(p){var g=(0,y.default)(a,"metricThreshold.".concat(l,".").concat(i),"");e=""!==g?(0,_.default)(g,".")?g:p(Number(g)):""}var E={key:s,className:N.default[s],value:"comparator"===s?n.state.comparator:e,onChange:n.handleItemChange(s,h)};switch(c){default:case"select":var b=n.getSelectOptions(d);return m.default.createElement(O.Select,(0,u.default)({options:b},E,v));case"number":return m.default.createElement(S.default,(0,u.default)({showUnit:!0},E,v,{integer:!1}))}},n.state=R(R({metricType:n.getMetricType(e)},n.getStateFromProps(e)),{},{metricOps:n.getSelectOptions(n.metricConfig)}),n}return(0,s.default)(r,[{key:"render",value:function(){var e=this.state,a=e.metricType,r=e.duration,n=e.severity,l=this.ruleConfig;return m.default.createElement("div",{className:N.default.inputs},m.default.createElement("div",{className:N.default.type},m.default.createElement(O.Select,{options:this.state.metricOps,value:a,onChange:this.handleMetricTypeChange})),l.map(this.renderConfigItem),m.default.createElement(O.Select,{className:N.default.normalSelect,value:r,options:I,onChange:this.handleDurationChange,placeholder:t("DURATION")}),m.default.createElement(D.default,{className:N.default.normalSelect,value:n,options:M,onChange:this.handleSeverityChange,placeholder:t("SEVERITY")}))}},{key:"resourceMetricsConfig",get:function(){return(0,E.default)(C.RESOURCE_METRICS_CONFIG.workload)||{}}},{key:"metricConfig",get:function(){var e=this.resourceMetricsConfig;return Object.entries(e).map((function(e){var t=(0,l.default)(e,2);return R({value:t[0]},t[1])}))}},{key:"selectMetricConfig",get:function(){var e=this.state.metricType;return this.metricConfig.find((function(t){return t.value===e}))}},{key:"ruleConfig",get:function(){return(0,y.default)(this.selectMetricConfig,"ruleConfig")||[]}}]),r}(m.default.Component);P.propTypes={metricConfig:h.default.array,value:h.default.object,onChange:h.default.func},P.defaultProps={metricConfig:[],value:{},onChange:function(){}};var A=P;a.default=A},function(e,t,a){e.exports={inputs:"_22dSEjReyNtRAovrRqwepd",type:"_1qKnJhTbQ9P1K8b5C7isFh",comparator:"_2934urzRpfiaiE2H1aYeKn",thresholds:"_3KU0ZSAcGoucHIrPp4tB74",normalSelect:"_3_DRDDTACzLkLCwuHgq14h",optionLabel:"khN9msWTcWOcL2-iNjmnk",slider:"_8373eD5TRR5yoHsXbknSr",condition_type:"_2XU1Q-On54b6cNM-_2iKc4"}},function(e,t,a){"use strict";a(15);var r=a(157),n=a(20);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var l=n(a(315)),u=r(a(0)),o=n(a(2097)),i=function(e,t){var a=(0,u.useRef)();return(0,u.useImperativeHandle)(t,(function(){return{target:a.current.target}})),u.default.createElement(o.default,(0,l.default)({ref:a},e))},c=(0,u.forwardRef)(i);t.default=c},function(e,a,r){"use strict";r(15);var n=r(157),l=r(20);r(48),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(48),r(24),r(193);var u=l(r(96)),o=n(r(0)),i=r(186),c=l(r(26)),s=l(r(3)),f=r(52),d=l(r(1081)),p=l(r(2099)),m=l(r(2109)),h=l(r(2121)),v=r(993),g=l(r(995)),y=l(r(1028)),E=function(e,a){var r=e.editRule,n=(0,o.useRef)();(0,o.useImperativeHandle)(a,(function(){return{target:n.current}}));var l=(0,o.useState)((function(){return{alert:(0,c.default)(r,"alert",""),annotations:{summary:(0,c.default)(r,"annotations.summary",""),message:(0,c.default)(r,"annotations.message","")},clusterSelector:{inValues:(0,c.default)(r,"clusterSelector.inValues",[])},for:(0,c.default)(r,"for",""),expr:(0,c.default)(r,"expr",""),severity:(0,c.default)(r,"severity","critical"),disable:(0,c.default)(r,"disable",!1),labels:(0,c.default)(r,"labels")}})),E=(0,u.default)(l,1)[0],b=(0,o.useCallback)((function(e,a,r){var n=a.slice(0,-1);if(!/^[0-9]*$/.test(n))return r({message:t("INVALID_TIME_DESC")});r()}),[]),_=(0,o.useCallback)((function(e,a,r){if(!a)return r({message:t("CLUSTER_SETTINGS_LIMIT_DESC")});r()}),[]);return o.default.createElement(i.Form,{data:E,ref:n},o.default.createElement("div",{className:h.default.label},t("CLUSTER_SETTINGS")),o.default.createElement("div",{className:h.default.contentGroup},o.default.createElement("div",null,o.default.createElement(i.Form.Item,{rules:[{validator:_}]},o.default.createElement(m.default,{name:"clusterSelector.inValues",allClusters:e.allClusters,fetchClusterList:e.fetchClusterList})))),o.default.createElement("div",{className:h.default.label},t("RULE_SETTINGS")),o.default.createElement("div",{className:h.default.contentGroup},o.default.createElement(i.Columns,{className:h.default.inline},o.default.createElement(i.Column,null,o.default.createElement(i.Form.Item,{label:t("RULE_NAME"),desc:t("CUSTOM_RULE_NAME_DESC"),rules:[{required:!0,message:t("RULE_NAME_REQUIRED")}]},o.default.createElement(i.Input,{name:"alert",maxLength:63})))),o.default.createElement(i.Columns,{className:h.default.inline},o.default.createElement(i.Column,null,o.default.createElement(i.Form.Item,{label:t("DURATION"),desc:t("ALERT_DURATION"),rules:[{validator:b}]},o.default.createElement(d.default,{name:"for",inputClassName:h.default.duration,unitOptions:v.durationUnitOptions,defaultValue:v.durationUnitOptions[1].value}))),o.default.createElement(i.Column,null,o.default.createElement(i.Form.Item,{label:t("SEVERITY"),rules:[{required:!0,message:t("SEVERITY_REQUIRED")}]},o.default.createElement(y.default,{name:"severity",defaultValue:"critical"})))),o.default.createElement(i.Form.Item,{label:t("RULE_EXPRESSION"),desc:(0,f.learnMoreTip)(t.html("ALERT_RULE_EXPRESSION_DESC")),rules:[{required:!0,message:t("ALERT_RULE_REQUIRED")}]},o.default.createElement(p.default,{name:"expr",store:e.store,cluster:e.cluster}))),o.default.createElement(g.default,null),o.default.createElement("div",{className:h.default.label},t("MESSAGE_SETTINGS")),o.default.createElement("div",{className:(0,s.default)(h.default.contentGroup,h.default.lineContent)},o.default.createElement(i.Form.Item,{label:t("MESSAGE_SUMMARY"),desc:t("MESSAGE_SUMMARY_DESC"),rules:[{required:!0,message:t("MESSAGE_REQUIRED")}]},o.default.createElement(i.Input,{name:"annotations.summary",maxLength:63})),o.default.createElement(i.Form.Item,{label:t("MESSAGE_DETAILS"),desc:t("MESSAGE_DETAILS_DESC")},o.default.createElement(i.TextArea,{name:"annotations.message",maxLength:256}))))},b=(0,o.forwardRef)(E);a.default=b},function(e,t,a){e.exports={box:"_2cba8IQmk8PkrIeuCYMHpS",value:"_8HQz1aKq2aTQNQgiSBLkX",unit:"_1NbuZuw18npuIgdF-lDVT5"}},function(e,t,a){"use strict";a(15);var r=a(20),n=a(157);a(18),a(9),a(4),a(23),a(17),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(45),a(18),a(42),a(9),a(4),a(23),a(57),a(17);var l,u,o=r(a(315)),i=r(a(36)),c=r(a(37)),s=r(a(55)),f=r(a(56)),d=r(a(51)),p=r(a(49)),m=n(a(0)),h=a(239),v=a(14),g=r(a(1270));function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,d.default)(e);if(t){var n=(0,d.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,f.default)(this,a)}}var E=(0,h.observer)((u=function(e){(0,s.default)(a,e);var t=y(a);function a(){return(0,i.default)(this,a),t.apply(this,arguments)}return(0,c.default)(a,[{key:"componentDidMount",value:function(){var e=this.props,t=e.cluster,a=e.namespace;this.hasMonitoring&&this.props.store.fetchMetadata({cluster:t,namespace:a})}},{key:"render",value:function(){return m.default.createElement(g.default,(0,o.default)({},this.props,{supportMetrics:this.supportMetrics}))}},{key:"hasMonitoring",get:function(){var e=this.props.cluster;return globals.app.hasClusterModule(e,"whizard-monitoring")}},{key:"supportMetrics",get:function(){return this.hasMonitoring?this.props.store.targetsMetadata.map((function(e){return{value:e.metric,desc:e.help,type:e.type}})):[]}}]),a}(m.Component),(0,p.default)(u.prototype,"supportMetrics",[v.computed],Object.getOwnPropertyDescriptor(u.prototype,"supportMetrics"),u.prototype),l=u))||l;t.default=E},function(e,t,a){"use strict";a(15);var r=a(157),n=a(20);a(5),a(4),a(23),a(17),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(45),a(5),a(42),a(4),a(23),a(57),a(17);var l=n(a(30)),u=n(a(36)),o=n(a(37)),i=n(a(55)),c=n(a(56)),s=n(a(51)),f=r(a(0)),d=n(a(3)),p=a(186),m=n(a(1487)),h=n(a(1271));function v(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,s.default)(e);if(t){var n=(0,s.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,c.default)(this,a)}}var g=function(e){(0,i.default)(a,e);var t=v(a);function a(){var e;(0,u.default)(this,a);for(var r=arguments.length,n=new Array(r),l=0;ln.height/2?e.top=r.top-4-32*(a-1):e.top=r.top-4,e.left=r.left+r.width,window.innerHeight-e.top<252&&(e.maxHeight=window.innerHeight-e.top-8)}}return e}},{key:"render",value:function(){var e=this.props,t=e.data,a=e.level,r=e.isOpen,n=e.onSelect;return t.children?f.default.createElement("div",{ref:this.ref},f.default.createElement("div",{className:(0,d.default)(h.default.item,h.default.hasChildren,(0,l.default)({},h.default.isOpen,r)),onClick:this.handleClick},t.label,f.default.createElement(p.Icon,{name:"chevron-right",type:"light"})),r&&f.default.createElement(m.default,{level:a+1,options:t.children,onSelect:n,style:this.getOptionsStyle()})):f.default.createElement("div",{className:h.default.item,onClick:this.handleSelect},t.label)}}]),a}(f.Component);t.default=g},function(e,a,r){"use strict";r(15);var n=r(157),l=r(20);r(5),r(11),r(86),r(18),r(10),r(4),r(23),r(24),r(17),r(188),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var u=l(r(61)),o=l(r(36)),i=l(r(37)),c=l(r(55)),s=l(r(56)),f=l(r(51));r(45),r(5),r(11),r(86),r(18),r(42),r(10),r(4),r(23),r(57),r(24),r(17),r(188);var d=l(r(63)),p=n(r(0)),m=l(r(3)),h=l(r(837)),v=l(r(2102)),g=r(1489),y=l(r(2103)),E=l(r(1490));function b(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,f.default)(e);if(t){var n=(0,f.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,s.default)(this,a)}}var _=function(e){(0,c.default)(r,e);var a=b(r);function r(){var e;(0,o.default)(this,r);for(var t=arguments.length,n=new Array(t),l=0;l=a.length+r.length+n.length+l.length-1?0:t+1}}),e.scrollToFocus)},e.handleArrowUp=function(){e.setState((function(e){var t=e.focusIndex,a=e.labels,r=e.functions,n=e.metrics,l=e.rateRanges,u=a.length+r.length+n.length+l.length;return{focusIndex:t<=0?u-1:t-1}}),e.scrollToFocus)},e.handleEnter=function(){var t=e.props.onSelect,a=e.state,r=a.focusIndex,n=a.functions,l=a.metrics,o=a.rateRanges,i=a.labels,c=[].concat((0,u.default)(i),(0,u.default)(n),(0,u.default)(l),(0,u.default)(o))[r];c&&t(c.value||c.label)},e.handleKeyDown=function(t){e.keydownHandler[t.keyCode]&&(t.stopPropagation(),t.preventDefault(),e.keydownHandler[t.keyCode](t))},e.scrollToFocus=function(){if(e.wrapper&&e.wrapper.current){var t=e.wrapper.current,a=t.querySelector(".is-focus");if(!a)return;var r=t.scrollTop,n=r+t.offsetHeight,l=a.offsetTop,u=l+a.offsetHeight;(r>l||n-1?o=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,a=arguments.length>2?arguments[2]:void 0,r=Object.keys(e);if("{"===t||","===t)return r.map((function(e){return{value:e}}));if(a.label){var n=e[a.label]||[];return"="===t?n.map((function(e){return{value:'"'.concat(e,'"')}})):'""'===t||"''"===t?n.map((function(e){return{value:e}})):n.map((function(e){return'"'.concat(e,'"')})).filter((function(e){return e.indexOf(t)>=0})).map((function(e){return{value:e}}))}return r.filter((function(e){return e.indexOf(t)>=0})).map((function(e){return{value:e}}))}(a,t,r):(n=function(e){return g.FUNCTIONS.filter((function(t){return t.label.indexOf(e)>=0}))}(t),l=this.searchMetrics(t),u=function(e){return"["===e?g.RATE_RANGES:[]}(t)),this.setState({functions:n,metrics:l,rateRanges:u,labels:o})}},{key:"renderList",value:function(e,t){var a=this.props,r=a.value,n=a.onSelect,l=this.state.focusIndex;return(0,d.default)(e)?null:p.default.createElement("div",{className:E.default.group},p.default.createElement("div",{className:E.default.groupTitle},t),p.default.createElement("div",{className:E.default.options},e.map((function(e,t){return p.default.createElement(y.default,{key:e.value||e.label,data:e.value||e.label,inputValue:r,isFocused:l===t,onSelect:n})}))))}},{key:"render",value:function(){var e=this.props.className,a=this.state,r=a.functions,n=a.metrics,l=a.rateRanges,u=a.labels;return(0,d.default)(r)&&(0,d.default)(n)&&(0,d.default)(l)&&(0,d.default)(u)?null:p.default.createElement("div",{className:(0,m.default)(E.default.wrapper,e),ref:this.wrapper},this.renderList(u,t("ALERT_LABELS")),this.renderList(r,t("ALERT_FUNCTIONS")),this.renderList(l,t("ALERT_RATE_RANGES")),this.renderList(n,t("ALERT_METRICS")))}},{key:"keydownHandler",get:function(){return{38:this.handleArrowUp,40:this.handleArrowDown,13:this.handleEnter,14:this.handleEnter}}}]),r}(p.Component);a.default=_},,function(e,t,a){"use strict";a(15);var r=a(157),n=a(20);a(5),a(48),a(4),a(23),a(24),a(17),a(136),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(45),a(5),a(48),a(42),a(4),a(23),a(57),a(24),a(17),a(136);var l=n(a(36)),u=n(a(37)),o=n(a(55)),i=n(a(56)),c=n(a(51)),s=r(a(0)),f=n(a(3)),d=n(a(1490));function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,c.default)(e);if(t){var n=(0,c.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,i.default)(this,a)}}var m=function(e){(0,o.default)(a,e);var t=p(a);function a(){var e;(0,l.default)(this,a);for(var r=arguments.length,n=new Array(r),u=0;un.length&&s.default.createElement(s.default.Fragment,null,s.default.createElement("span",{className:"highlight"},a),s.default.createElement("span",null,t.slice(n.length+a.length))))}}]),a}(s.Component);t.default=m},,function(e,t,a){},function(e,t,a){"use strict";a(15);var r=a(20);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(28);var n=r(a(36)),l=r(a(37)),u=function(){function e(t){(0,n.default)(this,e),this.data=[],this.maxLength=50,this.cursor=0,isNaN(t)||(this.maxLength=t)}return(0,l.default)(e,[{key:"push",value:function(e){this.data.length>=this.maxLength&&this.data.shift(),this.data.push(e),this.cursor=0}},{key:"undo",value:function(){return this.cursor0&&(this.cursor-=1),this.data[this.data.length-1-this.cursor]}}]),e}();t.default=u},function(e,t,a){e.exports={wrapper:"_2Djs149fKvXq0cuQnoPLWv",input:"_3r2beirvrZ6qtbzzlFsRsd",suggestions:"Q7oMYSMcW984KaLwUtxe0"}},function(e,t,a){e.exports={wrapper:"_1w-rN95sN7ztXIW47qpxDr",trigger:"_3RKOgK42gRQ35DXoTa7VUE",input:"_1_1MeGWNh944JJ0DAi3osN",debug:"_3Ftx4Zx_7HgfhQ47jLEOEi"}},function(e,a,r){"use strict";r(15);var n=r(157),l=r(20);r(11),r(31),r(6),r(200),r(86),r(29),r(18),r(16),r(326),r(4),r(38),r(7),r(32),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(11),r(31),r(6),r(200),r(86),r(29),r(18),r(16),r(326),r(4),r(38),r(7),r(32);var u=l(r(96)),o=n(r(0)),i=r(186),c=l(r(63)),s=l(r(814)),f=l(r(790)),d=r(924),p=l(r(3)),m=l(r(2119)),h=l(r(2120)),v=function(e){var a=(0,o.useState)(""),r=(0,u.default)(a,2),n=r[0],l=r[1],v=(0,o.useState)([]),g=(0,u.default)(v,2),y=g[0],E=g[1],b=(0,m.default)(),_=(0,u.default)(b,1)[0],O=(0,o.useState)(new Map),S=(0,u.default)(O,2),C=S[0],D=S[1],k=(0,o.useState)(!1),N=(0,u.default)(k,2),T=N[0],R=N[1];(0,o.useEffect)((function(){var t=new Map,a=e.value;e.allClusters.forEach((function(e){(-1!==a.indexOf(e.name)||(0,c.default)(a))&&t.set(e.name,e)})),D(t),R(t.size===e.allClusters.length),E(e.allClusters)}),[]),(0,o.useEffect)((function(){e.fetchClusterList({name:n,limit:-1})}),[n]);var w=function(t,a){var r=Array.from(t.values()).map((function(e){return e.name})),n=e.onChange;n(a?[]:(0,c.default)(r)?void 0:r)},I=function(e){return o.default.createElement("ul",{className:(0,p.default)(h.default.clusterList,h.default.longList)},e.map((function(e){return o.default.createElement("li",{className:h.default.cluster,key:e.uid},o.default.createElement(i.Columns,{className:h.default.inline},o.default.createElement(i.Column,{className:(0,p.default)("is-6",h.default.left)},o.default.createElement(i.Checkbox,{className:h.default.checkBox,checked:C.has(e.name),onChange:function(){return function(e){if(C.has(e.name))C.delete(e.name),D(new Map(C)),R(!1),w(C,!1);else{var t=new Map(C.set(e.name,e)),a=t.size===y.length;D(t),R(a),w(t,a)}}(e)}}),o.default.createElement(s.default,{className:"flex",cluster:e})),o.default.createElement(i.Column,{className:"is-6"},o.default.createElement(f.default,{title:o.default.createElement(d.ClusterTagGroup,{data:e.tags.map((function(e){return(_||[]).find((function(t){return e.name===t.name}))})).filter(Boolean),empty:"-"}),description:t("CLUSTER_TAG")}))))})))},M=function(e){l(e)},P=function(e){var t=new Map;e?(y.forEach((function(e){t.set(e.name,e)})),D(t)):D(t),R(!T),w(t,!T)};return o.default.createElement("div",{className:h.default.clusterListBox},o.default.createElement("div",{className:(0,p.default)(h.default.clusterContainer)},o.default.createElement("div",{className:h.default.clusterSearch},o.default.createElement(i.Checkbox,{checked:T,onChange:P,className:h.default.checkBox,indeterminate:!(y.length===C.size||0===C.size)},t("SELECT_ALL")),o.default.createElement(i.InputSearch,{className:h.default.input,placeholder:t("SEARCH"),value:n,onSearch:M})),I(e.allClusters)))};a.default=v},function(e,t,a){e.exports={reason:"_3JDYKrJKhc0_3ccKRTWjbm",condition:"_3QACUKLP4siIkBKdrDW-kH",title:"mzPe8sBOFqw47SGIKPrZW",warning:"ZLc6bv2hKoXfyrevZ2_Ny",error:"HaXzDca7Adqyw5TSX98wt"}},function(e,t,a){e.exports={icon:"xKWloJZ3Pd_PqEaOhl-hT",draft:"_1FxWEU9OOeyTB0kLav72OJ","pending-review":"_2Kgn9QUrQjnMa1DT569nzn","to-be-reviewed":"_3VPGTkZ0kt7VAgF_zap1kx",registering:"_7FkF93kEWAJRkvTtbK4B5",creating:"pAHvZ_RG-pNI_6jkgCeVQ",success:"c57Xl7U2RVqCR7373K4Mb",succeeded:"_1uovlfp6-KF3gEuBuD0MtN",successful:"_14_7RfNWDb4dY6DUEHBcWK",ready:"_2pGjni5nxEU2vEXd5c8x0U",running:"Uef3KaucYEHmxp8kPnl0B",jobrunning:"_38McoUrLPjp-IxlLnUBiEc",active:"_3XNjuuBbvzt53nhrQm-HXj",normal:"_2ra4URWQKS0vxDB4xFYkP-",bound:"NH3CoWdb2O7APR1Sr1c4R",available:"_3dQlBzY-nYntydG9AX_n8V",healthy:"_1o0ijVE-hpfungNxCaztkt",ok:"_1ohxQxwBnkzQG-fZ-j0AJK",working:"_3vbpc3X5L0xtx4UKf_c81L",passed:"_2QJx0oRr3eDpXINTTxA3h7",published:"_26qlXB1G0tFvhUEXtW6VXQ",flicker:"_39HvsLhXibByaMtJ27WhHs",updating:"_3FVXsrClHBDhThI2PxJQYN",upgrading:"kBsjZOQ5i-t3E8e8f_YQc",syncing:"_3RR_2LauQUw9iB0u7_CR9K",building:"_2S5WEGfe2WUT5bji7Nor0B",notrunning:"_1KIbMexH4zSZn9G0zxeGeq",warning:"_6DP37Rv8RsDF7M97fNBOe",waiting:"_34DVpCiM7-LcMXfWSqZR4m",terminating:"_1Ot7k0fjOVvC3D2tNAa93i",released:"_2WmS-sodO7CDopJqPb7sjM",unfinished:"_2Dzk48MF3g0R_BPCEzKcGO",firing:"_2ikw1FbRijNp-VAqeBfZRK",major:"_1kFY7fBc18HVILwtcQmc_i",deleting:"_1L69rMVhNP91YKutMw-AVP",unkown:"sGWVKOHL75adFCSXXdUoH","in-review":"_1HugNUnbiDYQC0VzKzaTcU",deleted:"_3nDdouuEwZUxX2UB90wfmS",error:"_2lZZhetVUZXtG33CrDhb_l",lost:"_3ZCL2CITd4Xxi3Q8iFPQBQ",unschedulable:"OEaAUOBaw8aPhRh-AOvLf",registerfail:"_3jsWOK7bD-HE07g7Oq9Kbf",failed:"_3okAXA7dSs8qB0I83qrEwE",critical:"_1FlFRJJbuB_m4fm1lZbEGJ",rejected:"_1UjeFbT-g4hmr_4MOZUIQt",stopped:"bPGnPwhyY8-Jo2cZZZOdz",disabled:"_1bvTVaQo96kB6ZN5th8QxM",pending:"_2AunMDgw00EAwgZqzui_f_",unknown:"BZvybize4dddT7i4yAkK2",draining:"_2NLYGsCnxwt_PK6UK301R7",unready:"_2r1cncqVBdGqR7Dzrs8k0m",terminated:"_2H0QXOJ6mC1KDfv1nAP6k6",completed:"_21L69zF1m7TdkP-yQNhb6V",minor:"YrT7AztFXvf8WmH3vtwu8",unmanaged:"_1USSsIy-vFUMgFDQXWYeCy",dead:"i8ghS5D_07_EmXcDbaIfB",paused:"_35GVxD7s5Me3ssTcHpu1XA",inactive:"_1Vxh_5eb2cf7P32zp73e7p",suspended:"_3W95J2HteD5RPT_yAIHj1m"}},function(e,t,a){e.exports={wrapper:"_1zRhmhoqa7hKxIDHXtcQBl",icon:"_3zzcn1sJsd8OE2-UlVh5Dt",indicator:"_3_FKNd25UQ1SrtjwfzQsQa",title:"_2EJdDmBbkeOhXJGYqE2ODn",name:"iC7sVV_ohn78d_o-bnIsG",description:"_121vxZTmC4ekgLxeINz_qj",ellipsis:"_2D4Gh4G0EV2qp97eGpO8pA",isExpired:"cAV_fM4HAoL_7N476HQ-8",light:"aSm0o7OnDBr1lwEbEO6Qv",large:"_2oqSS3OkMT7aMTmyO3QDYQ",small:"ThqV9yofYHAOd-P_wF-3F"}},function(e,a,r){"use strict";r(15);var n=r(157),l=r(20);r(18),r(48),r(16),r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(18),r(48),r(42),r(16),r(4),r(23),r(57),r(17);var u=l(r(96)),o=l(r(36)),i=l(r(37)),c=l(r(55)),s=l(r(56)),f=l(r(51)),d=n(r(0)),p=l(r(1)),m=r(186),h=l(r(3)),v=l(r(1492)),g=l(r(2115));function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,f.default)(e);if(t){var n=(0,f.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,s.default)(this,a)}}var E=function(e){(0,c.default)(r,e);var a=y(r);function r(e){var n;return(0,o.default)(this,r),(n=a.call(this,e)).renderBadge=function(e){return 0===e.length?null:d.createElement(m.Tooltip,{placement:"top",appendToBody:!0,content:d.createElement("div",null,d.createElement("div",null,t("TAG_PL")),d.createElement("div",{className:g.default.clusterTags},e.map((function(e){return d.createElement(v.default,{label:e.label,value:e.value,key:e.name,name:e.name,isTooltipContent:!0})}))))},d.createElement("div",{className:g.default.clusterTagBadge},e.length))},n.state={},n}return(0,i.default)(r,[{key:"render",value:function(){var e=this.props,t=e.data,a=void 0===t?[]:t,r=e.empty,n=void 0===r?null:r,l=e.className;if(!a.length)return n;var o=(0,u.default)(a,2),i=o[0],c=o[1];return d.createElement("div",{className:(0,h.default)(g.default.clusterTagGroup,l)},d.createElement(v.default,{label:i.label,value:i.value,name:i.name}),c&&d.createElement(v.default,{label:c.label,value:c.value,name:c.name}),this.renderBadge(a.slice(2)))}}]),r}(d.Component);a.default=E,E.propTypes={data:p.default.array.isRequired,empty:p.default.string||p.default.node}},function(e,t,a){e.exports={clusterTagItem:"_1Q7rwPOhBP9jpE1scnut6x",widthAuto:"_1iwFaLEvI9T6zsLlm3NWlG",label:"_87mgRCx8MOXgJ8rULXPjp",value:"u6uS4fhlcySlTOFIPdqCk"}},function(e,t,a){e.exports={clusterTags:"CcPncW5maLpzZvqskDkjT",clusterTagGroup:"_3xp0pO3VIF5DziKwwF9VQl",clusterTagBadge:"_2fanZ0SjwMsi2lF0bCsr3y"}},function(e,a,r){"use strict";var n=r(157),l=r(20);r(12),r(5),r(11),r(31),r(6),r(29),r(18),r(48),r(16),r(9),r(13),r(10),r(4),r(23),r(17),r(324),r(38),r(7),r(32),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(45),r(5),r(11),r(31),r(6),r(29),r(18),r(28),r(48),r(42),r(16),r(34),r(15),r(9),r(13),r(10),r(4),r(23),r(57),r(17),r(324),r(38),r(460),r(461),r(462),r(463),r(464),r(465),r(466),r(7),r(32);var u=l(r(30)),o=l(r(36)),i=l(r(37)),c=l(r(55)),s=l(r(56)),f=l(r(51)),d=l(r(61)),p=l(r(1272)),m=n(r(0)),h=l(r(1)),v=r(186),g=l(r(2117)),y=l(r(26)),E=l(r(806)),b=l(r(861)),_=r(924),O=l(r(2118));function S(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function C(e){for(var t=1;t1?t-1:0),r=1;r1&&void 0!==arguments[1]?arguments[1]:[],r=a.map((function(e){return function(a){var r,n,l;return(null!==(r=e.tags)&&void 0!==r?r:[]).length>=5||new Set((null!==(n=e.tags)&&void 0!==n?n:[]).concat(a.value).map((function(e){return e.name}))).size>5?{Ok:!1,message:t.html("CLUSTER_MAX_TAGS_DESC",{cluster:e.name})}:(0,g.default)(a.value,null!==(l=e.tags)&&void 0!==l?l:[],(function(e,t){return e.name===t.name})).length?a:{Ok:!1,message:t.html("HAS_SAME_TAG")}}}));return N.apply(void 0,[{Ok:!0,value:e},k].concat((0,d.default)(r)))}([].concat((0,d.default)(c),[C(C({},f),{},{value:null===(e=u[f.label])||void 0===e||null===(r=e.find((function(e){return e.id===f.name})))||void 0===r?void 0:r.value})]),l);o.Ok||(0,E.default)(s,o.message)||n.setState({message:o.message}),o.Ok&&(o=o.value,n.setState({value:o,message:""}),a&&a(o))}))},n.handleLabelChange=function(e){n.setState({k:e,v:""})};var l=e.value||[];return n.formRef=m.createRef(),n.state={value:l,k:void 0,v:void 0},n}return(0,i.default)(r,[{key:"componentDidUpdate",value:function(e,t){t.message===this.state.message&&this.state.message&&this.setState({message:""})}},{key:"render",value:function(){var e=this,a=this.state,r=a.value,n=void 0===r?[]:r,l=a.k,u=a.v,o=a.message,i=this.props,c=i.onAddTags,s=i.defaultValue,f=i.tagsGroup,d=f[l]||[],p=Object.keys(f);return m.createElement("div",{className:O.default.wrapper},m.createElement(v.Form,{ref:this.formRef},m.createElement("div",{className:O.default.addContainer},m.createElement(v.Form.Item,{rules:[{required:!0,message:t("EMPTY_TAG_LABEL_DESC")}]},m.createElement(v.Select,{defaultValue:l,name:"label",placeholder:t("KEY"),options:p.map((function(e){return{label:e,value:e}})),onChange:this.handleLabelChange})),m.createElement(v.Form.Item,{rules:[{required:!0,message:t("EMPTY_TAG_VALUE_DESC")}]},m.createElement(v.Select,{defaultValue:u,name:"name",onChange:function(t){e.setState({v:t})},placeholder:t("VALUE"),options:d.map((function(e){return{label:e.value,value:e.id}}))})),(null!=n?n:[]).length>=5?m.createElement(v.Tooltip,{content:t("CLUSTER_MAX_TAGS_DESC")},m.createElement("div",null,m.createElement(v.Button,{disabled:!0},t("ADD")))):m.createElement(v.Button,{onClick:this.handleClick},t("ADD"))),o&&m.createElement("span",{className:"form-item-error margin-t8 inline-block"},o)),m.createElement("div",{className:O.default.title},t("HAS_ADD_TAGS")),m.createElement("div",{className:O.default.tags},n.map((function(t){return m.createElement(_.ClusterTagItem,{label:t.label,value:t.value,name:t.name,key:t.name,onDelete:s.find((function(e){return e.name===t.name}))?void 0:e.handleDelete})}))),"platform-admin"===(0,y.default)(window,"globals.user.globalrole","")&&m.createElement("div",{className:O.default.footer},m.createElement("span",null,t("CLUSTER_TAG_ADD_HELP"))," ",m.createElement("span",{onClick:c,className:O.default.action},t("CREATE_TAGS"))))}}]),r}(m.Component);a.default=T,T.propTypes={value:h.default.array,defaultValue:h.default.array,onChange:h.default.func,tagsGroup:h.default.object.isRequired,onAddTags:h.default.func,tags:h.default.array}},,function(e,t,a){e.exports={wrapper:"_1nxmlNUOXDLQhexMk3xnhN",addContainer:"_183GQn1S0N9yB4yWFUBaqx",title:"_24gI1L4pZoVwd6MV72rRRM",tags:"_1QjI7AUfMY3w_Ull_93-SC",footer:"zFqrx4HhkwBbkvyYfrbi1",action:"Vaa_9_FeE4sVQqojNsuGH"}},function(e,t,a){"use strict";a(15);var r=a(20);a(29),a(4),a(22),a(38),a(32),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(29),a(4),a(22),a(38),a(32);var n=r(a(96)),l=a(0),u=r(a(945)),o=function(){var e=(0,l.useRef)(new u.default),t=(0,l.useState)([]),a=(0,n.default)(t,2),r=a[0],o=a[1];return(0,l.useEffect)((function(){Promise.all([e.current.fetchGroupList({limit:-1})]).then((function(){o(e.current.tags)}))}),[]),[r,o]};t.default=o},function(e,t,a){e.exports={clusterListBox:"_3E7nfg18gc4YMpsXgkwewv",addBox:"_1bSE9f95Y6l3IUXRFqHiFq",clusterContainer:"iy_9AILE49q6oYEKPACE0",clusterSearch:"dY5lk9YVyLd2SKquC2Ipp",checkBox:"_3vsqcs9oAi9KmEj--p0mwz",input:"_1WOOb0mOWoitW54WM_TKhb",clusterList:"_1mEvnbfJL19vM01-pNmIzr",cluster:"HClXzP_agDUOBsD0DJB6U",inline:"_1jaGfWoiirbQyPg-EuCumT",left:"AwqUeOTDH3PUXkcCg2vXk",opt:"_3f745MPKWGUCPKuoEPpZNN",confirm:"FXS6GkOHCxUqj1785Bm_-",closeBt:"_2WxNJ61Iksv2sR--6616Xa",longList:"_2zueFWuIjAUgYy6xVBFRMq"}},function(e,t,a){e.exports={label:"_3lNFoNYnAqovuExjDshs8H",contentGroup:"FtMWAlt2Tg-L4j3LNBR9C",inline:"_11BH9gaIIj9QroYWoqVvz1",tabs:"_1DlseBgXppe_l3oWxUut-q",lineContent:"Y-jejgDishnXFaxP6vPRR",duration:"_3kmRCD04N-liwEB5XNldbW"}},function(e,t,a){"use strict";a(15);var r=a(20);a(29),a(4),a(22),a(38),a(32),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(29),a(4),a(22),a(38),a(32);var n=r(a(43));a(41);var l=r(a(44)),u=r(a(96)),o=a(0),i=r(a(438)),c=function(){var e=(0,o.useRef)(new i.default),t=(0,o.useState)([]),a=(0,u.default)(t,2),r=a[0],c=a[1],s=function(){var t=(0,l.default)(n.default.mark((function t(a){var r;return n.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.current.fetchList(a);case 2:r=t.sent,c(r);case 4:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}();return(0,o.useEffect)((function(){Promise.all([e.current.fetchList({limit:-1})]).then((function(e){var t=(0,u.default)(e,1)[0];c(t)}))}),[]),[r,s]};t.default=c},,function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(11),r(18),r(10),r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(11),r(18),r(42),r(10),r(4),r(23),r(57),r(17);var l=n(r(30)),u=n(r(36)),o=n(r(37)),i=n(r(55)),c=n(r(56)),s=n(r(51)),f=n(r(0)),d=n(r(1)),p=n(r(449)),m=n(r(3)),h=r(72),v=n(r(900)),g=n(r(869)),y=n(r(870)),E=n(r(947)),b=n(r(871)),_=n(r(862)),O=n(r(2167));function S(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,s.default)(e);if(t){var n=(0,s.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,c.default)(this,a)}}var C=function(e){(0,i.default)(r,e);var a=S(r);function r(){return(0,u.default)(this,r),a.apply(this,arguments)}return(0,o.default)(r,[{key:"renderTitle",value:function(){var e=this.props,a=e.title,r=e.renderTitle;return r?r():f.default.createElement("div",{className:O.default.title},"".concat(t(a)," ").concat(this.lastValue))}},{key:"renderArea",value:function(){var e=this.props,t=e.unit,a=e.areaColors,r=e.renderArea;return r?r():this.series.map((function(e,r){var n=h.COLORS_MAP[a[r]];return f.default.createElement(v.default,{key:e,dataKey:e,stroke:n,fillOpacity:"0.1",fill:n,unit:t})}))}},{key:"render",value:function(){var e=this.props,t=e.width,a=e.height,r=e.bgColor,n=e.xKey,u=e.data,o=e.darkMode;return f.default.createElement("div",{className:(0,m.default)(O.default.chart,(0,l.default)({},O.default.dark,o)),style:{width:t,height:a,background:r}},this.renderTitle(),f.default.createElement(b.default,{width:"100%",height:"100%",debounce:1},f.default.createElement(E.default,{data:u,margin:{top:30,left:0,right:0,bottom:0}},f.default.createElement(y.default,{dataKey:n,hide:!0}),f.default.createElement(g.default,{wrapperStyle:{zIndex:1e3},cursor:{stroke:h.COLORS_MAP.dark,strokeDasharray:"3,2",strokeWidth:2},content:f.default.createElement(_.default,null)}),this.renderArea())))}},{key:"series",get:function(){var e=this.props,t=e.xKey,a=e.data;return Object.keys(a[0]||{}).filter((function(e){return e!==t}))}},{key:"lastValue",get:function(){var e=this.props,t=e.unit,a=e.data,r=this.series;return 1===r.length?"".concat((0,p.default)(a)[r[0]]," ").concat(t):""}}]),r}(f.default.Component);a.default=C,C.propTypes={width:d.default.oneOfType([d.default.string,d.default.number]),height:d.default.oneOfType([d.default.string,d.default.number]),title:d.default.string,xKey:d.default.string,unit:d.default.string,data:d.default.array,bgColor:d.default.string,areaColors:d.default.array,renderTitle:d.default.func,renderArea:d.default.func,darkMode:d.default.bool},C.defaultProps={width:180,height:56,title:"Title",xKey:"time",unit:"",bgColor:h.COLORS_MAP.lightest,areaColors:["green","blue","yellow","red"],data:[],darkMode:!1}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,a){e.exports={tooltip:"_2o-FPsZWo_tejfulidLyXN",label:"_14UOFErBhWS51I2ueymzb1",item:"_1ZRF-l-daK6mBpxVp4rWVy"}},function(e,t,a){e.exports={chart:"_1sjDK5GdPxFAEmfUxCI1LV",title:"_2xqrjvSLAex97qiOzpHRqy",dark:"jzlxuWnFI3sN_bACtVOG0"}},function(e,a,r){"use strict";r(15);var n=r(20);r(11),r(18),r(10),r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(11),r(18),r(42),r(10),r(4),r(23),r(57),r(17);var l=n(r(36)),u=n(r(37)),o=n(r(55)),i=n(r(56)),c=n(r(51)),s=n(r(0)),f=n(r(1)),d=n(r(26)),p=n(r(449)),m=n(r(63)),h=r(72),v=n(r(900)),g=n(r(869)),y=n(r(870)),E=n(r(947)),b=n(r(871)),_=n(r(862)),O=r(52),S=r(186),C=n(r(2169));function D(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,c.default)(e);if(t){var n=(0,c.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,i.default)(this,a)}}var k=function(e){(0,o.default)(r,e);var a=D(r);function r(){return(0,l.default)(this,r),a.apply(this,arguments)}return(0,u.default)(r,[{key:"renderFilters",value:function(){var e=this.props.filters;return e?s.default.createElement("div",{className:C.default.filters,onClick:function(e){e.stopPropagation()}},s.default.createElement(S.Select,e)):null}},{key:"renderTitle",value:function(){var e=this.props,a=e.title,r=e.unit,n=e.renderTitle;if(!e.noTitle){if(n)return n();var l=(0,O.coreUnitTS)(this.lastValue,r);return s.default.createElement(s.default.Fragment,null,s.default.createElement("div",{className:C.default.title},s.default.createElement("span",null,s.default.createElement("strong",null,this.lastValue)," ",t(l)),1===this.lastValue||r?t(a):t("".concat(a,"_PL"))),this.renderFilters())}}},{key:"renderArea",value:function(){var e=this.props,t=e.unit,a=e.areaColors,r=e.renderArea;return r?r():this.series.map((function(e,r){var n=h.COLORS_MAP[a[r]];return s.default.createElement(v.default,{key:e,dataKey:e,stroke:n,fillOpacity:"0.1",fill:n,unit:t})}))}},{key:"render",value:function(){var e=this.props,a=e.width,r=e.height,n=e.xKey,l=e.data,u=e.top;return s.default.createElement("div",{className:C.default.chart,style:{width:a,height:r}},this.renderTitle(),(0,m.default)(l)?s.default.createElement("p",{className:C.default.noData},t("NO_DATA")):s.default.createElement(b.default,{width:"100%",height:"100%",debounce:1},s.default.createElement(E.default,{data:l,margin:{top:u,left:4,right:4,bottom:4}},s.default.createElement(y.default,{dataKey:n,hide:!0}),s.default.createElement(g.default,{wrapperStyle:{zIndex:1e3},cursor:{stroke:h.COLORS_MAP.dark,strokeDasharray:"3,2",strokeWidth:2},content:s.default.createElement(_.default,null)}),this.renderArea())))}},{key:"series",get:function(){var e=this.props,t=e.xKey,a=e.data;return Object.keys(a[0]||{}).filter((function(e){return e!==t}))}},{key:"lastValue",get:function(){var e,t,a=this.props.data,r=(0,d.default)(this.series,[0],"");return null!==(e=null===(t=(0,p.default)(a))||void 0===t?void 0:t[r])&&void 0!==e?e:0}}]),r}(s.default.Component);a.default=k,k.propTypes={width:f.default.oneOfType([f.default.string,f.default.number]),height:f.default.oneOfType([f.default.string,f.default.number]),title:f.default.string,xKey:f.default.string,unit:f.default.string,data:f.default.array,areaColors:f.default.array,renderTitle:f.default.func,renderArea:f.default.func,top:f.default.number},k.defaultProps={width:280,height:100,title:"Title",xKey:"time",unit:"",areaColors:["green","blue","yellow","red","orange"],data:[],top:45}},function(e,t,a){e.exports={chart:"_2JJzTXT7f7IRE6NiIfNZwA",noData:"_3G18zHWAx-cv-EtIKep5u5",filters:"_1SpSoOfPZcy-3qfjpvHrTK",title:"_3hk5WanipERYCfYDNf8FS9"}},function(e,a,r){"use strict";r(15);var n=r(20);r(84),r(18),r(4),r(23),r(139),r(24),r(17),r(85),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(84),r(18),r(28),r(42),r(4),r(23),r(57),r(139),r(251),r(24),r(252),r(193),r(17),r(85);var l=n(r(315)),u=n(r(61)),o=n(r(36)),i=n(r(37)),c=n(r(55)),s=n(r(56)),f=n(r(51)),d=n(r(0)),p=n(r(1)),m=n(r(3)),h=n(r(806)),v=n(r(63)),g=n(r(928)),y=r(72),E=n(r(1511)),b=n(r(946)),_=n(r(900)),O=n(r(869)),S=n(r(912)),C=n(r(870)),D=n(r(927)),k=n(r(929)),N=n(r(947)),T=n(r(871)),R=n(r(1086)),w=n(r(862)),I=r(1087),M=n(r(2173));function P(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,f.default)(e);if(t){var n=(0,f.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,s.default)(this,a)}}var A=function(e){(0,c.default)(r,e);var a=P(r);function r(e){var n;(0,o.default)(this,r),(n=a.call(this,e)).handleLegendClick=function(e,t){var a=(0,u.default)(n.state.activeSeries);a.includes(t)?(0,g.default)(a,(function(e){return e===t})):a.push(t),n.setState({activeSeries:a})},n.tickFormatter=function(e){return e<=0?"":e>1e5?"".concat(Math.round(e/1e3),"k"):e},n.getAlertLabel=function(){var e=n.props,a=e.unit,r=e.alert;return"core"===a?t("VALUE_CORES",{value:r.value}):t("VALUE_UNIT",{value:r.value,unit:a})};var l=(0,I.getActiveSeries)(e);return n.state={series:l,activeSeries:l},n}return(0,i.default)(r,[{key:"renderTitle",value:function(){var e=this.props,a=e.title,r=e.unit,n=e.renderTitle,l=n?n():(0,v.default)(r)?t(a):t("TITLE_UNIT",{title:t(a),unit:r});return d.default.createElement("div",{className:M.default.title},l)}},{key:"renderCustomTooltip",value:function(){var e=this.props,t=e.renderTooltip,a=e.isTranslate,r=e.alert;return t?t():d.default.createElement(w.default,{alert:r,isTranslate:a})}},{key:"renderLegend",value:function(){return d.default.createElement(D.default,{wrapperStyle:{top:0,left:"auto",right:0,width:"80%",zIndex:100},content:d.default.createElement(R.default,{isTranslate:this.props.isTranslate,showAll:this.props.showAll,extraLegend:this.props.extraLegend,activeSeries:this.state.activeSeries,onClick:this.handleLegendClick})})}},{key:"renderArea",value:function(){var e=this.props,t=e.unit,a=e.areaColors,r=e.yAxisId,n=this.state,u=n.series,o=n.activeSeries;return u.map((function(e,n){var u=a[n],i=y.COLORS_MAP[u]||u,c={fill:i,fillOpacity:.1};return new RegExp("^".concat(r)).test(e)&&(c.yAxisId=r),d.default.createElement(_.default,(0,l.default)({key:e,dataKey:e,stroke:i,activeDot:d.default.createElement(b.default,{r:4,stroke:"#fff",strokeWidth:1,fill:i,fillOpacity:1}),unit:t,hide:!o.includes(e),connectNulls:!0},c))}))}},{key:"render",value:function(){var e=this.props,a=e.theme,r=e.width,n=e.height,u=e.xKey,o=e.data,i=e.alert,c=e.xAxis,s=e.yAxis,f=e.yAxisId,p=e.showReferenceLabel,h=e.referenceLineColor,g=(0,m.default)(M.default.chart,"chart","chart-".concat(a));return d.default.createElement("div",{className:g,style:{width:r,height:n}},this.renderTitle(),(0,v.default)(o)?d.default.createElement("p",{className:M.default.noData},t("NO_DATA")):d.default.createElement(T.default,{width:r,height:n,debounce:1},d.default.createElement(N.default,{data:o,margin:{top:42,bottom:-20,left:13,right:13}},d.default.createElement(k.default,{stroke:"#d8dee5",strokeDasharray:"2 2",vertical:!1}),d.default.createElement(C.default,(0,l.default)({height:40,dataKey:u,axisLine:!1,tickLine:!1,interval:"preserveStartEnd",minTickGap:60,tickMargin:12},c)),d.default.createElement(S.default,(0,l.default)({width:45,axisLine:!1,tickLine:!1,tickFormatter:this.tickFormatter},s)),f&&d.default.createElement(S.default,(0,l.default)({width:45,axisLine:!1,tickLine:!1,yAxisId:f,orientation:"right",tickFormatter:this.tickFormatter},s)),d.default.createElement(O.default,{wrapperStyle:{zIndex:9999},content:this.renderCustomTooltip()}),this.renderLegend(),this.renderArea(),!(0,v.default)(i)&&d.default.createElement(E.default,{y:i.value,label:p?this.getAlertLabel():void 0,stroke:y.COLORS_MAP[h],strokeDasharray:"3,2",isFront:!0}))))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var a=(0,I.getActiveSeries)(e);return(0,h.default)(a,t.series)?null:{series:a,activeSeries:a}}}]),r}(d.default.Component);a.default=A,A.propTypes={theme:p.default.oneOf(["light","dark"]),width:p.default.oneOfType([p.default.string,p.default.number]),height:p.default.oneOfType([p.default.string,p.default.number]),title:p.default.string,xKey:p.default.string,unit:p.default.string,data:p.default.array,bgColor:p.default.string,areaColors:p.default.array,renderTitle:p.default.func,renderTooltip:p.default.func,showReferenceLabel:p.default.bool,referenceLineColor:p.default.string},A.defaultProps={theme:"light",width:"100%",height:200,title:"Title",xKey:"time",unit:"",showAll:!1,bgColor:y.COLORS_MAP.lightest,areaColors:["green","blue","yellow","red","darkestGreen","darkestBlue","darkestYellow","darkestRed","lightestGreen","lightestBlue","lightestYellow","lightestRed"],data:[],showReferenceLabel:!0,referenceLineColor:"red"}},,function(e,t,a){e.exports={legend:"_1XlEXrqD889UqrbxHe-xEK",hide:"_23CvRZz1mMETc8Jy-6Img-",item:"_2baEObAQ1E-zKBmLZq7s1k",inactive:"_25hh9t3akE-oo7U9r1Ixur"}},function(e,t,a){e.exports={chart:"_2HFgq9kor6lheR0Vhq4sCI",noData:"_2qhnE0KRQA256rWeRH5z2W",title:"_2ArqqbIO8eulO-vuy6Ulu2"}},function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(84),r(18),r(48),r(4),r(23),r(17),r(85),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(84),r(18),r(28),r(48),r(42),r(4),r(23),r(57),r(17),r(85);var l=n(r(61)),u=n(r(36)),o=n(r(37)),i=n(r(55)),c=n(r(56)),s=n(r(51)),f=n(r(0)),d=n(r(1)),p=n(r(3)),m=n(r(63)),h=n(r(928)),v=r(72),g=n(r(946)),y=n(r(900)),E=n(r(869)),b=n(r(912)),_=n(r(870)),O=n(r(927)),S=n(r(929)),C=n(r(947)),D=n(r(871)),k=n(r(1086)),N=n(r(862)),T=r(1087),R=r(794),w=n(r(2175));function I(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,s.default)(e);if(t){var n=(0,s.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,c.default)(this,a)}}var M=function(e){(0,i.default)(r,e);var a=I(r);function r(e){var t;(0,u.default)(this,r),(t=a.call(this,e)).handleLegendClick=function(e,a){var r=(0,l.default)(t.state.activeSeries);r.includes(a)?(0,h.default)(r,(function(e){return e===a})):r.push(a),t.setState({activeSeries:r})};var n=(0,T.getActiveSeries)(e);return t.state={series:n.slice(0,e.maxSeries),activeSeries:n.slice(0,e.maxActiveSeries)},t}return(0,o.default)(r,[{key:"componentDidUpdate",value:function(e){if(e.data.length!==this.props.data.length||e.id!==this.props.id){var t=(0,T.getActiveSeries)(this.props);this.setState({series:t.slice(0,this.props.maxSeries),activeSeries:t.slice(0,this.props.maxActiveSeries)})}}},{key:"renderTitle",value:function(){var e=this.props,a=e.title,r=e.unit,n=e.renderTitle,l=n?n():(0,m.default)(r)?t(a):"".concat(t(a)," (").concat(t(r),")");return f.default.createElement("div",{className:w.default.title},l)}},{key:"renderCustomTooltip",value:function(){var e=this.props,t=e.renderTooltip,a=e.tailText;return t?t():f.default.createElement(N.default,{tailText:a})}},{key:"renderLegend",value:function(){return f.default.createElement(O.default,{wrapperStyle:{zIndex:100,left:24},content:f.default.createElement(k.default,{className:w.default.legend,activeSeries:this.state.activeSeries,showAll:!0,onClick:this.handleLegendClick})})}},{key:"renderArea",value:function(){var e=this.props,t=e.unit,a=e.areaColors,r=e.renderArea,n=this.state,l=n.series,u=n.activeSeries;return r?r():l.map((function(e,r){var n=a[r],l=v.COLORS_MAP[n]||n;return f.default.createElement(y.default,{key:e,dataKey:e,stroke:l,fill:"url(#".concat(n,"-area)"),activeDot:f.default.createElement(g.default,{r:4,stroke:"#fff",strokeWidth:1,fill:l,fillOpacity:1}),unit:t,hide:!u.includes(e)})}))}},{key:"render",value:function(){var e=this.props,t=e.theme,a=e.width,r=e.height,n=e.xKey,l=e.data,u=(0,p.default)(w.default.chart,"chart","chart-".concat(t));return f.default.createElement("div",{className:u,style:{width:a,height:r}},this.renderTitle(),f.default.createElement(D.default,{debounce:1},f.default.createElement(C.default,{data:l,margin:{top:50,bottom:0,left:0,right:25}},f.default.createElement(S.default,{stroke:"#d8dee5",strokeDasharray:"2 3",vertical:!1}),f.default.createElement(_.default,{dataKey:n,axisLine:!1,tickLine:!1}),f.default.createElement(b.default,{width:60,axisLine:!1,tickLine:!1,tickFormatter:function(e){return e<=0?"":(0,R.getSuitableValue)(e,"number")}}),f.default.createElement(E.default,{wrapperStyle:{zIndex:101,pointerEvents:"auto"},cursor:{stroke:v.COLORS_MAP["dark"===t?"lightest":"dark"],strokeDasharray:"3,2",strokeWidth:2},content:this.renderCustomTooltip()}),this.renderLegend(),this.renderArea())))}}]),r}(f.default.Component);a.default=M,M.propTypes={theme:d.default.oneOf(["light","dark"]),width:d.default.oneOfType([d.default.string,d.default.number]),height:d.default.oneOfType([d.default.string,d.default.number]),title:d.default.string,xKey:d.default.string,unit:d.default.string,data:d.default.array,maxSeries:d.default.number,maxActiveSeries:d.default.number,areaColors:d.default.array,renderTitle:d.default.func,renderTooltip:d.default.func,renderArea:d.default.func,id:d.default.string},M.defaultProps={theme:"light",width:"100%",height:220,title:"Title",xKey:"time",maxSeries:50,maxActiveSeries:6,unit:"",areaColors:["green","blue","yellow","red","darkestGreen","darkestBlue","darkestYellow","darkestRed","lightestGreen","lightestBlue","lightestYellow","lightestRed"],data:[],id:""}},function(e,t,a){e.exports={chart:"DMLRKPRlM-592oxpl01Ux",title:"_2ndg87suV5PGHdzT74mCy1",legend:"KRlAbphv7IhurquDMCYe6"}},function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(84),r(18),r(4),r(23),r(17),r(85),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(84),r(18),r(28),r(42),r(4),r(23),r(57),r(17),r(85);var l=n(r(315)),u=n(r(61)),o=n(r(36)),i=n(r(37)),c=n(r(55)),s=n(r(56)),f=n(r(51)),d=n(r(0)),p=n(r(1)),m=n(r(3)),h=n(r(63)),v=n(r(806)),g=n(r(928)),y=r(72),E=n(r(946)),b=n(r(900)),_=n(r(869)),O=n(r(912)),S=n(r(870)),C=n(r(927)),D=n(r(929)),k=n(r(947)),N=n(r(871)),T=n(r(1086)),R=n(r(862)),w=r(1087),I=n(r(2177));function M(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,f.default)(e);if(t){var n=(0,f.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,s.default)(this,a)}}var P=function(e){(0,c.default)(r,e);var a=M(r);function r(e){var t;(0,o.default)(this,r),(t=a.call(this,e)).handleLegendClick=function(e,a){var r=(0,u.default)(t.state.activeSeries);r.includes(a)?(0,g.default)(r,(function(e){return e===a})):r.push(a),t.setState({activeSeries:r})};var n=(0,w.getActiveSeries)(e);return t.state={series:n,activeSeries:n},t}return(0,i.default)(r,[{key:"renderTitle",value:function(){var e=this.props,a=e.title,r=e.unit,n=e.renderTitle,l=n?n():(0,h.default)(r)?t(a):"".concat(t(a)," (").concat(t(r),")");return d.default.createElement("div",{className:I.default.title},l)}},{key:"renderLegend",value:function(){return d.default.createElement(C.default,{wrapperStyle:{top:0,left:"auto",right:0,width:"70%",zIndex:1001},content:d.default.createElement(T.default,{activeSeries:this.state.activeSeries,onClick:this.handleLegendClick})})}},{key:"renderArea",value:function(){var e=this.props,t=e.unit,a=e.areaColors,r=e.renderArea,n=this.state,u=n.series,o=n.activeSeries;return r?r():u.map((function(e,r){var n=a[r],i=y.COLORS_MAP[n]||n,c=!o.includes(e),s={key:e,dataKey:e,stroke:i,activeDot:d.default.createElement(E.default,{r:4,stroke:"#fff",strokeWidth:1,fill:i,fillOpacity:1}),unit:t,hide:c};return r===u.length-1?d.default.createElement(b.default,(0,l.default)({},s,{strokeDasharray:"3, 2",fillOpacity:0})):d.default.createElement(b.default,(0,l.default)({},s,{strokeWidth:0,fill:i,fillOpacity:.7}))}))}},{key:"render",value:function(){var e=this.props,t=e.theme,a=e.width,r=e.height,n=e.xKey,l=e.data,u=(0,m.default)(I.default.chart,"chart","chart-".concat(t));return d.default.createElement("div",{className:u,style:{width:a,height:r}},this.renderTitle(),d.default.createElement(N.default,{width:"100%",height:"100%",debounce:1},d.default.createElement(k.default,{data:l,margin:{top:50,bottom:-20,left:0,right:20}},d.default.createElement(D.default,{stroke:"#d8dee5",strokeDasharray:"2 3",vertical:!1}),d.default.createElement(S.default,{dataKey:n,axisLine:!1,tickLine:!1}),d.default.createElement(O.default,{width:45,axisLine:!1,tickLine:!1,tickFormatter:function(e){return e>0?e:""}}),d.default.createElement(_.default,{wrapperStyle:{zIndex:1e3},cursor:{stroke:y.COLORS_MAP["dark"===t?"lightest":"dark"],strokeDasharray:"3,2",strokeWidth:2},content:d.default.createElement(R.default,null)}),this.renderLegend(),this.renderArea())))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var a=(0,w.getActiveSeries)(e);return(0,v.default)(a,t.series)?null:{series:a,activeSeries:a}}}]),r}(d.default.Component);a.default=P,P.propTypes={theme:p.default.oneOf(["light","dark"]),width:p.default.oneOfType([p.default.string,p.default.number]),height:p.default.oneOfType([p.default.string,p.default.number]),title:p.default.string,xKey:p.default.string,unit:p.default.string,data:p.default.array,areaColors:p.default.array,renderTitle:p.default.func,renderArea:p.default.func},P.defaultProps={theme:"light",width:"100%",height:200,title:"Title",xKey:"time",unit:"",areaColors:["lighterRed","lightestYellow","blue","dark"],data:[]}},function(e,t,a){e.exports={chart:"_3h-t0hKcP-Ao4nr8At-NOt",title:"m7sH_qo102jJOrFsmprfd"}},function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(84),r(18),r(4),r(23),r(17),r(85),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(84),r(18),r(28),r(42),r(4),r(23),r(57),r(17),r(85);var l=n(r(61)),u=n(r(36)),o=n(r(37)),i=n(r(55)),c=n(r(56)),s=n(r(51)),f=n(r(0)),d=n(r(1)),p=n(r(3)),m=n(r(63)),h=n(r(806)),v=n(r(928)),g=r(72),y=n(r(1033)),E=n(r(869)),b=n(r(912)),_=n(r(870)),O=n(r(927)),S=n(r(929)),C=n(r(1277)),D=n(r(871)),k=n(r(1086)),N=n(r(862)),T=r(1087),R=n(r(2179));function w(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,s.default)(e);if(t){var n=(0,s.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,c.default)(this,a)}}var I=function(e){(0,i.default)(r,e);var a=w(r);function r(e){var t;(0,u.default)(this,r),(t=a.call(this,e)).handleLegendClick=function(e,a){var r=(0,l.default)(t.state.activeSeries);r.includes(a)?(0,v.default)(r,(function(e){return e===a})):r.push(a),t.setState({activeSeries:r})};var n=(0,T.getActiveSeries)(e);return t.state={series:n,activeSeries:n},t}return(0,o.default)(r,[{key:"renderTitle",value:function(){var e=this.props,a=e.title,r=e.unit,n=e.renderTitle,l=n?n():(0,m.default)(r)?t(a):"".concat(t(a)," (").concat(r,")");return f.default.createElement("div",{className:R.default.title},l)}},{key:"renderLegend",value:function(){return f.default.createElement(O.default,{wrapperStyle:{top:0,left:"auto",right:0,width:"70%",zIndex:1001},content:f.default.createElement(k.default,{activeSeries:this.state.activeSeries,onClick:this.handleLegendClick})})}},{key:"renderBar",value:function(){var e=this,t=this.props,a=t.unit,r=t.areaColors,n=t.renderBar;return n?n():this.series.map((function(t,n){var l=r[n],u=g.COLORS_MAP[l]||l;return f.default.createElement(y.default,{key:t,dataKey:t,stroke:u,fill:"url(#".concat(l,"-area)"),unit:a,hide:!e.state.activeSeries.includes(t)})}))}},{key:"render",value:function(){var e=this.props,t=e.theme,a=e.width,r=e.height,n=e.xKey,l=e.data,u=(0,p.default)(R.default.chart,"chart","chart-".concat(t));return f.default.createElement("div",{className:u,style:{width:a,height:r}},this.renderTitle(),f.default.createElement(D.default,{width:"100%",height:"100%",debounce:1},f.default.createElement(C.default,{data:l,margin:{top:50,bottom:-20,left:0,right:20}},f.default.createElement(S.default,{stroke:"#d8dee5",strokeDasharray:"2 3",vertical:!1}),f.default.createElement(_.default,{dataKey:n,axisLine:!1,tickLine:!1}),f.default.createElement(b.default,{width:45,axisLine:!1,tickLine:!1,tickFormatter:function(e){return e>0?e:""}}),f.default.createElement(E.default,{wrapperStyle:{zIndex:1e3},cursor:"dark"===t?{fill:g.COLORS_MAP.lightest,fillOpacity:.2}:{fill:g.COLORS_MAP.grey},content:f.default.createElement(N.default,null)}),this.renderLegend(),this.renderBar())))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var a=(0,T.getActiveSeries)(e);return(0,h.default)(a,t.series)?null:{series:a,activeSeries:a}}}]),r}(f.default.Component);a.default=I,I.propTypes={theme:d.default.oneOf(["light","dark"]),width:d.default.oneOfType([d.default.string,d.default.number]),height:d.default.oneOfType([d.default.string,d.default.number]),title:d.default.string,xKey:d.default.string,unit:d.default.string,data:d.default.array,areaColors:d.default.array,renderTitle:d.default.func,renderBar:d.default.func},I.defaultProps={theme:"light",width:"100%",height:200,title:"Title",xKey:"time",unit:"",areaColors:["green","blue","yellow"],data:[]}},function(e,t,a){e.exports={chart:"_12oj79UOFmAu5q6GiNUsq2",title:"_1cs-znnZFCTeUErbjSD6Ed"}},function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(84),r(18),r(4),r(23),r(17),r(85),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(84),r(18),r(28),r(42),r(4),r(23),r(57),r(17),r(85);var l=n(r(61)),u=n(r(36)),o=n(r(37)),i=n(r(55)),c=n(r(56)),s=n(r(51)),f=n(r(0)),d=n(r(1)),p=n(r(3)),m=n(r(63)),h=n(r(806)),v=n(r(928)),g=r(72),y=n(r(1033)),E=n(r(869)),b=n(r(912)),_=n(r(870)),O=n(r(927)),S=n(r(929)),C=n(r(1277)),D=n(r(871)),k=n(r(1086)),N=n(r(862)),T=r(1087),R=n(r(2181));function w(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,s.default)(e);if(t){var n=(0,s.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,c.default)(this,a)}}var I=function(e){(0,i.default)(r,e);var a=w(r);function r(e){var t;(0,u.default)(this,r),(t=a.call(this,e)).getBarSize=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.length<=20?20:8},t.handleLegendClick=function(e,a){var r=(0,l.default)(t.state.activeSeries);r.includes(a)?(0,v.default)(r,(function(e){return e===a})):r.push(a),t.setState({activeSeries:r})};var n=(0,T.getActiveSeries)(e);return t.state={series:n,activeSeries:n},t}return(0,o.default)(r,[{key:"renderTitle",value:function(){var e=this.props,a=e.title,r=e.unit,n=e.renderTitle,l=n?n():(0,m.default)(r)?t(a):"".concat(t(a)," (").concat(r,")");return f.default.createElement("div",{className:R.default.title},l)}},{key:"renderLegend",value:function(){return f.default.createElement(O.default,{wrapperStyle:{top:0,left:"auto",right:0,width:"70%",zIndex:1001},content:f.default.createElement(k.default,{activeSeries:this.state.activeSeries,onClick:this.handleLegendClick})})}},{key:"renderBar",value:function(){var e=this,t=this.props,a=t.unit,r=t.areaColors,n=t.renderBar,l=this.state,u=l.series,o=l.activeSeries;return n?n():u.map((function(t,n){var l=r[n],u=g.COLORS_MAP[l]||l,i=e.getBarSize(e.series),c=0===n?[0,0,2,2]:n===e.series.length-1?[2,2,0,0]:null;return f.default.createElement(y.default,{key:t,dataKey:t,stackId:"series",barSize:i,stroke:u,strokeWidth:0,fill:u,radius:c,unit:a,hide:!o.includes(t)})}))}},{key:"render",value:function(){var e=this.props,t=e.theme,a=e.width,r=e.height,n=e.xKey,l=e.data,u=(0,p.default)(R.default.chart,"chart","chart-".concat(t));return f.default.createElement("div",{className:u,style:{width:a,height:r}},this.renderTitle(),f.default.createElement(D.default,{width:"100%",height:"100%",debounce:1},f.default.createElement(C.default,{data:l,margin:{top:50,bottom:-20,left:0,right:20}},f.default.createElement(S.default,{stroke:"#d8dee5",strokeDasharray:"2 3",vertical:!1}),f.default.createElement(_.default,{dataKey:n,axisLine:!1,tickLine:!1}),f.default.createElement(b.default,{width:45,axisLine:!1,tickLine:!1,tickFormatter:function(e){return e>0?e:""}}),f.default.createElement(E.default,{wrapperStyle:{zIndex:1e3},cursor:"dark"===t?{fill:g.COLORS_MAP.lightest,fillOpacity:.2}:{fill:g.COLORS_MAP.grey},content:f.default.createElement(N.default,null)}),this.renderLegend(),this.renderBar())))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var a=(0,T.getActiveSeries)(e);return(0,h.default)(a,t.series)?null:{series:a,activeSeries:a}}}]),r}(f.default.Component);a.default=I,I.propTypes={theme:d.default.oneOf(["light","dark"]),width:d.default.oneOfType([d.default.string,d.default.number]),height:d.default.oneOfType([d.default.string,d.default.number]),title:d.default.string,xKey:d.default.string,unit:d.default.string,data:d.default.array,areaColors:d.default.array,renderTitle:d.default.func,renderBar:d.default.func},I.defaultProps={theme:"light",width:"100%",height:200,title:"Title",xKey:"time",unit:"",areaColors:["green","blue","yellow"],data:[]}},function(e,t,a){e.exports={chart:"_23-9y13KSLTiB9ATkXvt6C",title:"_2tAARTBPZ1UnWw3S1J1rbq"}},function(e,a,r){"use strict";var n=r(20);r(12),r(827),r(11),r(6),r(18),r(190),r(9),r(13),r(10),r(4),r(23),r(17),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(45),r(827),r(11),r(6),r(18),r(28),r(42),r(190),r(34),r(15),r(9),r(13),r(10),r(4),r(436),r(23),r(57),r(17),r(7);var l=n(r(61)),u=n(r(30)),o=n(r(315)),i=n(r(36)),c=n(r(37)),s=n(r(55)),f=n(r(56)),d=n(r(51)),p=n(r(0)),m=n(r(1)),h=n(r(3)),v=n(r(26)),g=n(r(63)),y=r(794);r(1279);var E=n(r(927)),b=n(r(869)),_=n(r(1159)),O=n(r(1036)),S=n(r(1089)),C=n(r(871)),D=n(r(2233));function k(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function N(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:1;return n.total?(n.value/n.total*100).toFixed(e):0},n.getPrimaryColor=function(e){var t=e||{},a=t.areaColors,r=t.active,l=t.showRate,u=t.fixedColor,o=t.rateNum,i=n.getRate(o),c=(0,v.default)(a,[0],"#fff");return l&&!u&&(r&&(c="white"),i>=80&&(c="yellow"),i>=90&&(c="red")),c},n.getFills=function(e){var t=e||{},a=t.areaColors,r=t.active,l={fill:(0,y.getColorByName)(n.getPrimaryColor(e))},u=a[1]||l.fill;return{activeFill:l,totalFill:r?{fill:"#fff",fillOpacity:.4}:{fill:(0,y.getColorByName)(u),fillOpacity:a[1]?1:.2}}},n.getData=function(){return[{name:n.props.legend[0],value:n.value},{name:"Remaining",value:n.remain}]},n.renderActiveShape=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.cx,a=e.cy,r=e.innerRadius,l=e.outerRadius,u=e.startAngle,i=e.endAngle;return p.default.createElement("g",null,p.default.createElement(_.default,(0,o.default)({cx:t,cy:a,innerRadius:r,outerRadius:l,startAngle:u,endAngle:i},n.state.activeFill)))},n.renderTooltip=function(e){if(!e.active)return null;var a=n.props,r=a.title,l=a.legend,u=a.unit,o=a.value,i=a.total,c=a.showRate,s=a.rateNum,f=a.isShowTotalTooltip,d="%"===u?"%":" ".concat(u),m=c&&" (".concat(n.getRate(s),"%)");return p.default.createElement("div",{className:D.default.tooltip},p.default.createElement("div",{className:D.default.label},t(r)),p.default.createElement("div",{className:D.default.list},p.default.createElement("div",{className:D.default.item},p.default.createElement("i",{style:{background:n.state.activeFill.fill}}),p.default.createElement("label",null,t(l[0]),":"),p.default.createElement("p",null,o,d,m)),f&&p.default.createElement("div",{className:D.default.item},p.default.createElement("i",{style:{background:"#fff"}}),p.default.createElement("label",null,t(l[1]),":"),p.default.createElement("p",null,i,d))))},n.state=N({},n.getFills(e)),n}return(0,c.default)(r,[{key:"componentDidUpdate",value:function(e){e.active!==this.props.active&&this.setState(N({},this.getFills(this.props)))}},{key:"renderCenter",value:function(){var e,t=this.props,a=t.theme,r=t.value,n=t.total,l=t.showRate,o=t.showRatio,i=t.renderCustomCenter,c=t.showName,s=t.rateNum,f=this.getPrimaryColor(this.props),d=l?(0,u.default)({},D.default.standard,!0):o?(e={},(0,u.default)(e,D.default.mid,r>99||n>99),(0,u.default)(e,D.default.mini,r>999||n>999),e):{},m=l?"".concat(this.getRate(s),"%"):o?p.default.createElement("p",null,p.default.createElement("strong",null,r),p.default.createElement("span",null,"/"),n):null;return p.default.createElement("div",{className:(0,h.default)(D.default.center,D.default[f],d,(0,u.default)({},D.default.white,"dark"===a))},c&&p.default.createElement("p",{className:D.default["show-name"]},this.props.legend[0]),i?i({value:r,total:n}):m)}},{key:"renderLegend",value:function(){var e=this.props,a=e.legend,r=e.areaColors;return p.default.createElement(E.default,{wrapperStyle:{bottom:0,zIndex:100},content:function(e){var n=e.payload,u=(0,l.default)(n);return(0,g.default)(u)||(u[u.length-1].value=a[a.length-1],u[u.length-1].color=r[u.length-1]||"#fff"),p.default.createElement("div",{className:D.default.legend},u.map((function(e){var a=(0,v.default)(e,"payload.fill");return p.default.createElement("div",{key:e.dataKey,"data-key":e.dataKey,className:D.default.item},p.default.createElement("i",{style:{backgroundColor:a}}),t(e.value))})))}})}},{key:"render",value:function(){var e=this.props,t=e.width,a=e.height,r=e.showCenter,n=e.innerRadius,l=void 0===n?"70%":n,u=this.getData();return p.default.createElement("div",{className:D.default.chart,style:{width:t,height:a}},r&&this.renderCenter(),p.default.createElement(C.default,{width:"100%",height:"100%",debounce:1},p.default.createElement(S.default,null,p.default.createElement(O.default,(0,o.default)({data:u,dataKey:"value",activeIndex:0,activeShape:this.renderActiveShape,innerRadius:l,outerRadius:"100%",stroke:"transparent"},this.state.totalFill)),p.default.createElement(b.default,{wrapperStyle:{zIndex:100},content:this.renderTooltip}))))}},{key:"value",get:function(){var e=parseFloat(this.props.value||0);return e>0?e:0}},{key:"total",get:function(){return parseFloat(this.props.total||0)}},{key:"remain",get:function(){var e=this.total-this.value;return 0===this.total?1:e}}]),r}(p.default.Component);a.default=R,R.propTypes={theme:m.default.oneOf(["light","dark"]),width:m.default.oneOfType([m.default.string,m.default.number]),height:m.default.oneOfType([m.default.string,m.default.number]),title:m.default.string,legend:m.default.array,value:m.default.oneOfType([m.default.number,m.default.string]),total:m.default.oneOfType([m.default.number,m.default.string]),unit:m.default.string,areaColors:m.default.array,showCenter:m.default.bool,showRate:m.default.bool,showRatio:m.default.bool,active:m.default.bool,rateNum:m.default.number,isShowTotalTooltip:m.default.bool},R.defaultProps={theme:"light",width:100,height:100,title:"",legend:["USED","TOTAL"],value:0,total:0,unit:"",isShowTotalTooltip:!0,areaColors:["green"],showCenter:!0,showRate:!1,showRatio:!0,active:!1,rateNum:0}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,a){e.exports={chart:"_3xORGioagELncq_b0QqUXh",center:"_1Fpm4EsVyd6rEqOU-TLFy4",fadeIn:"l534UI3MtCEqz4eGGY2TT","show-name":"_3xCxaH91PcORamjP2M6dwG",standard:"_2NHy2ySjaBP3iE_V33_T5s",mid:"_2_sR4rrGvd5Nbsd1lzOhmK",mini:"_2x1qX36v29kVnJ-mDXpniw",white:"_1HaIvuK2oSITwqGtPezmdk",yellow:"_bd_3V5QJCH9JEWCPD3q5",red:"_3zV4Hy8k1ujHADMao04tU1",tooltip:"_3j83qVypNfpK_iV4Spm6bt",label:"_1oAbCyvxESz8SMJcvczmya",item:"NrpjP1sw1yw9v33VrS1Qn",legend:"_2RMVikNBMbfj9iyRPZcc2V"}},function(e,t,a){"use strict";a(15);var r=a(157),n=a(20);a(5),a(11),a(31),a(1037),a(18),a(1038),a(16),Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.dataList,a=e.legendClassName,r=e.wrapperStyle,n=void 0===r?{width:"50%",left:"120px"}:r,E=e.disabledFilter,b=void 0!==E&&E,_=e.total,O=e.noTooltip,S=(0,u.useState)([]),C=(0,l.default)(S,2),D=C[0],k=C[1],N=(0,u.useState)(!0),T=(0,l.default)(N,2),R=T[0],w=T[1];(0,u.useEffect)((function(){var e=(0,p.default)(t);if(t.length>1){var a=e.map((function(e){return e.data})).flat(),r=a.pop(),n=a.filter((function(e){return e.name!==r.name})).concat(r);k(n)}else{var l=e.map((function(e){return e.data})).flat();k(l),w(!1)}}),[t]);if(Array.isArray(t)&&t.length<0)return;return u.default.createElement(d.default,{width:"100%",height:"100%",debounce:1},u.default.createElement(f.default,null,t.map((function(e,t){var a=e.data,r=e.dataKey,n=e.innerRadius,l=e.outerRadius,o=e.colors,i=e.cx,f=void 0===i?75:i,d=e.cy,p=void 0===d?55:d;return u.default.createElement(s.default,{data:a,dataKey:r,cx:f,cy:p,minAngle:0,innerRadius:n,outerRadius:l,startAngle:90,endAngle:-360,key:"pie-".concat(t),animationDuration:1e3},a.map((function(e,t){var a=!(0,h.default)(D.find((function(t){return t.name===e.name})));return u.default.createElement(c.default,{key:"cell-".concat(t),fill:a?o[t%o.length]:o[o.length-1]})})))})),!O&&u.default.createElement(o.default,{wrapperStyle:{zIndex:1e3},cursor:{stroke:v.COLORS_MAP.dark,strokeDasharray:"3,2",strokeWidth:2},content:u.default.createElement(g.default,null)}),u.default.createElement(i.default,{layout:"vertical",align:"right",verticalAlign:"middle",iconType:"circle",wrapperStyle:n,content:u.default.createElement(y.default,{activeSeries:D,onClick:b?null:function(e){var t=(0,p.default)(D);t.find((function(t){return t.name===e.name}))?(0,m.default)(t,(function(t){return t.name===e.name})):t.push(e),k(t)},isMult:R,className:a,totalValue:_})})))},a(5),a(11),a(31),a(1037),a(160),a(18),a(28),a(1038),a(16),a(4);var l=n(a(96)),u=r(a(0));a(1279);var o=n(a(869)),i=n(a(927)),c=n(a(998)),s=n(a(1036)),f=n(a(1089)),d=n(a(871)),p=n(a(135)),m=n(a(928)),h=n(a(158)),v=a(72),g=n(a(2235)),y=n(a(2237))},function(e,a,r){"use strict";var n=r(20);r(12),r(5),r(11),r(31),r(6),r(86),r(18),r(16),r(27),r(9),r(13),r(10),r(24),r(64),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var l=n(r(30));r(12),r(5),r(11),r(31),r(6),r(86),r(18),r(28),r(16),r(27),r(34),r(15),r(9),r(13),r(10),r(4),r(24),r(64),r(7);var u=n(r(0)),o=n(r(26)),i=n(r(63)),c=n(r(925)),s=r(52),f=r(72),d=r(1513),p=n(r(2236));function m(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function h(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};if(!e.active)return null;var a=e.renderLabel,r=e.payload,n=e.usageData,l=e.totalData,m=e.tailText,v=e.alert,g=e.isTranslate,y=void 0===g||g,E=r||[],b=e.label,_=(0,o.default)(E,"[0].payload.unit")||"",O="default"===_?"":"%"===_?"%":"".concat(t(_)),S=a?a(e):b,C=function(e){var a=e.indexOf("gpu")>-1?"gpu":e,r="gpu"===a?"".concat(a,".limit"):a;return f.ICON_TYPES[a]?t(r.replace(/[. ]/g,"_").toUpperCase()):r};return u.default.createElement("div",{className:p.default.tooltip},v&&u.default.createElement("div",{className:p.default.item},u.default.createElement(d.ReactComponent,null),"".concat(t(C(v.name||"")),":").concat("core"===v.unit?t("VALUE_CORES",{value:v.value}):t("VALUE_UNIT",h({},v)))),u.default.createElement("div",{className:p.default.label,style:{marginTop:"".concat(v?"8px":"0px")}},u.default.createElement("span",null,S),m&&u.default.createElement("span",null,m)),u.default.createElement("div",{className:p.default.list},E.map((function(e){var a=e.dataKey,r=e.name,f=e.value,d=void 0===f?0:f;if((0,c.default)(Number(d)))return null;var m=(0,o.default)(e,"payload.fill"),h=(0,o.default)(e,"payload.label")||r,v="";if(!(0,i.default)(n)&&!(0,i.default)(l)){var g=(0,o.default)(n.find((function(e){return e.time===b})),r)||0,E=(0,o.default)(l.find((function(e){return e.time===b})),r)||0;v=" (".concat(g,"/").concat(E,")")}var _=(0,s.coreUnitTS)(d,O);return u.default.createElement("div",{key:a,className:p.default.item},u.default.createElement("i",{style:{background:m}}),y?t(h):h,": ",d," ".concat(t(_)),v)}))))};a.default=v},function(e,t,a){e.exports={tooltip:"_18KqCyvNCGxzhlSz2Z2-9Y",label:"YYJ1OVwvKVdRA2JE3OPIX",item:"_22WPsKANfFjmXw4JkrTCTT"}},function(e,a,r){"use strict";r(15);var n=r(157),l=r(20);r(5),r(11),r(31),r(18),r(16),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(5),r(11),r(31),r(18),r(16),r(4);var u=l(r(30)),o=l(r(96)),i=n(r(0)),c=l(r(3)),s=l(r(135)),f=l(r(26)),d=l(r(74)),p=l(r(2238)),m=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=e.className,r=e.payload,n=e.activeSeries,l=void 0===n?[]:n,m=e.isMult,h=e.totalValue,v=(0,i.useState)([]),g=(0,o.default)(v,2),y=g[0],E=g[1];(0,i.useEffect)((function(){if(r.length>0){var e=(0,s.default)(r);if(m){var t=e.pop();void 0!==h&&(0,d.default)(t,"payload.value",h);var a=e.filter((function(e){return e.value!==t.value})).concat(t);E(a)}else E(e)}}),[r,h]);var b=function(t,a){t.cancelBubble=!0,t.stopPropagation();var r=e.onClick;r&&r(a)};return i.default.createElement("div",{className:(0,c.default)(a,p.default.legend)},y.map((function(e,a){var r,n=!l.find((function(t){return t.name===e.value})),o=(0,f.default)(e,"color"),s=!!m&&a===y.length-1;return i.default.createElement("div",{key:a,className:(0,c.default)(p.default.item,(r={},(0,u.default)(r,p.default.inactive,n),(0,u.default)(r,p.default.disabled,s),r)),onClick:s?null:function(t){return b(t,{name:e.value,value:e.payload.value})}},i.default.createElement("span",{className:p.default.label},i.default.createElement("i",{style:{backgroundColor:o}}),i.default.createElement("span",null,t(e.value))),i.default.createElement("b",{className:p.default.value},e.payload.unit?"core"===e.payload.unit?t("VALUE_CORES",{value:e.payload.value}):t("VALUE_UNIT",{value:e.payload.value,unit:t(e.payload.unit)}):e.payload.value))})))};a.default=m},function(e,t,a){e.exports={legend:"_1RC52HxQjVmMw4L8iQz2w_",hide:"_3b4znXld-yrkvvSjP8xkTG",item:"DkIMSpjNvU3Z-NUrcuIk9",label:"PD8OHwScr2aOwFWjkEAME",value:"_1nZ2x0Ee6aieU7C7M21FTp",inactive:"_3cAYRwJBR322I0l6tMMEUK",disabled:"_1DSn1UPehNfQ40117uCm4x"}},function(e,t,a){e.exports={selector:"_3jdnDfk2o9GZ977aTA-xpY",active:"_1VVAknMMhYtwjCCzJ26w8D",arrow:"_3fVUYCC4XLdULuzPPLryH6",dropdown:"_4VJDQbixxjDltdv9t2c1h",button:"B4m3CNQgLzi7Xqxf0JBO_",mask:"_2LZHnUZdP2-tzMlT4rOCY9",content:"_8RPB91ZzJIARHcetuuCun"}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,a){"use strict";a(15),Object.defineProperty(t,"__esModule",{value:!0}),t.redisCluster=t.redisSentinal=void 0;t.redisSentinal={resource:{apiVersion:"redis.radondb.com/v1beta1",kind:"RedisSentinel",metadata:{name:"redis-sentinel",namespace:"redis-sentinel"},spec:{clusterSize:3,kubernetesConfig:{redisVersion:"6.2.5",image:"radondb/redis:v6.2.5",imagePullPolicy:"Always",resources:{requests:{cpu:"101m",memory:"128Mi"},limits:{cpu:"101m",memory:"128Mi"}}},redisExporter:{enabled:!0,image:"radondb/redis-exporter:v1.44.0",imagePullPolicy:"Always",resources:{requests:{cpu:"100m",memory:"128Mi"},limits:{cpu:"100m",memory:"128Mi"}}},redisReplica:{replicas:3,redisConfig:{additionalRedisConfig:"redis-sentinel-external-config"},affinity:{podAntiAffinity:{preferredDuringSchedulingIgnoredDuringExecution:[{podAffinityTerm:{labelSelector:{matchExpressions:[{key:"redis.radondb.com/name",operator:"In",values:[111]}]},topologyKey:"kubernetes.io/hostname"},weight:1}]}}},aclConfig:{aclFile:"redis-sentinel-acl-config"},redisSentinel:{replicas:3,sentinelConfig:{quorum:2,parallelSyncs:3},resources:{requests:{cpu:"100m",memory:"128Mi"},limits:{cpu:"100m",memory:"128Mi"}},affinity:{podAntiAffinity:{preferredDuringSchedulingIgnoredDuringExecution:[{podAffinityTerm:{labelSelector:{matchExpressions:[{key:"redis.radondb.com/name",operator:"In",values:[111]}]},topologyKey:"kubernetes.io/hostname"},weight:1}]}}},storage:{volumeClaimTemplate:{spec:{storageClassName:"standard",accessModes:["ReadWriteOnce"],resources:{requests:{storage:"1Gi"}}}}}}},externalConfig:{apiVersion:"v1",kind:"ConfigMap",metadata:{namespace:"redis-sentinel",name:"redis-sentinel-external-config"},data:{"redis-external.conf":"aclfile /etc/redis/acl.conf.d/aclfile.conf\ntcp-keepalive 400\nslowlog-max-len 158\nstream-node-max-bytes 2048\nio-threads 1\nio-threads-do-reads no\nmaxmemory 0"}},secret:{apiVersion:"v1",kind:"Secret",metadata:{name:"redis-secret-password-secret",namespace:"redis-sentinel"},type:"Opaque",data:{password:"bWd3MjE2ODAwMA=="}},aclConfig:{apiVersion:"v1",kind:"ConfigMap",metadata:{namespace:"redis-sentinel",name:"redis-sentinel-acl-config"},data:{"aclfile.conf":"user radondb on >radondb123@ ~* &* +@all"}}};t.redisCluster={resource:{apiVersion:"redis.radondb.com/v1beta1",kind:"RedisCluster",metadata:{name:"redis-cluster",namespace:"redis-cluster"},spec:{clusterSize:3,kubernetesConfig:{redisVersion:"6.2.5",image:"radondb/redis:v6.2.5",imagePullPolicy:"IfNotPresent",resources:{requests:{cpu:"101m",memory:"128Mi"},limits:{cpu:"101m",memory:"128Mi"}}},redisExporter:{enabled:!0,image:"radondb/redis-exporter:v1.44.0",imagePullPolicy:"IfNotPresent",resources:{requests:{cpu:"100m",memory:"128Mi"},limits:{cpu:"100m",memory:"128Mi"}}},redisLeader:{replicas:3,redisConfig:{additionalRedisConfig:"redis-cluster-external-config"},affinity:{podAntiAffinity:{preferredDuringSchedulingIgnoredDuringExecution:[{podAffinityTerm:{labelSelector:{matchExpressions:[{key:"redis.radondb.com/name",operator:"In",values:[111]}]},topologyKey:"kubernetes.io/hostname"},weight:1}]}}},redisFollower:{replicas:3,redisConfig:{additionalRedisConfig:"redis-cluster-external-config"},affinity:{podAntiAffinity:{preferredDuringSchedulingIgnoredDuringExecution:[{podAffinityTerm:{labelSelector:{matchExpressions:[{key:"redis.radondb.com/name",operator:"In",values:[111]}]},topologyKey:"kubernetes.io/hostname"},weight:1}]}}},aclConfig:{aclFile:"redis-cluster-acl-config"},storage:{volumeClaimTemplate:{spec:{storageClassName:"csi-standard",accessModes:["ReadWriteOnce"],resources:{requests:{storage:"200Mi"}}}}},predixyExporter:{enabled:!0,image:"radondb/predixy-exporter:v1.0.0",imagePullPolicy:"IfNotPresent",resources:{requests:{cpu:"100m",memory:"128Mi"},limits:{cpu:"100m",memory:"128Mi"}}},redisProxy:{enabled:!1,replicas:3,image:"radondb/predixy:v1.0.5",imagePullPolicy:"IfNotPresent",resources:{requests:{cpu:"101m",memory:"128Mi"},limits:{cpu:"101m",memory:"128Mi"}},affinity:{podAntiAffinity:{preferredDuringSchedulingIgnoredDuringExecution:[{podAffinityTerm:{labelSelector:{matchExpressions:[{key:"redis.radondb.com/name",operator:"In",values:[111]}]},topologyKey:"kubernetes.io/hostname"},weight:1}]}},predixyConfigParams:{clusterName:"redis-cluster",workerThreads:2,clientTimeout:0,bufSize:1048576,masterReadPriority:100,slaveReadPriority:0,refreshInterval:1,serverTimeout:3,serverFailureLimit:10,serverRetryTimeout:5,keepAlive:120}}}},externalConfig:{apiVersion:"v1",kind:"ConfigMap",metadata:{namespace:"redis-cluster",name:"redis-cluster-external-config"},data:{"redis-external.conf":'maxmemory 128mb\nmaxmemory-policy volatile-lru\nactiverehashing yes\nappendonly yes\nappendfsync everysec\ntcp-keepalive 400\ncluster-node-timeout 15000\nslowlog-max-len 128\nstream-node-max-bytes 2048\nmaxclients 102400\nlatency-monitor-threshold 0\nmaxmemory-samples 3\nmin-slaves-max-lag 10\nmin-slaves-to-write 0\nno-appendfsync-on-rewrite no\nnotify-keyspace-events ""\nrepl-backlog-size 1mb\nrepl-backlog-ttl 3600\nrepl-timeout 60\nset-max-intset-entries 512\nslowlog-log-slower-than -1\nslowlog-max-len 128\nhash-max-ziplist-entries 512\nhash-max-ziplist-value 64\nzset-max-ziplist-entries 512\nzset-max-ziplist-value 64\nlua-time-limit 5000\nio-threads 1\nio-threads-do-reads no\nlogfile logfile\n'}},secret:{apiVersion:"v1",kind:"Secret",metadata:{name:"redis-secret-password-secret",namespace:"redis-cluster"},type:"Opaque",data:{password:"bWd3MjE2ODAwMA=="}},aclConfig:{apiVersion:"v1",kind:"ConfigMap",metadata:{namespace:"redis-cluster",name:"redis-cluster-acl-config"},data:{"aclfile.conf":"user radondb on >radondb123@ ~* &* +@all"}}}},function(e,t,a){"use strict";a(15),Object.defineProperty(t,"__esModule",{value:!0}),t.mongoYaml=void 0;t.mongoYaml={resources:{apiVersion:"mongodbcommunity.mongodb.com/v1",kind:"MongoDBCommunity",metadata:{name:"mongodb"},spec:{members:1,type:"ReplicaSet",version:"4.2.19",prometheus:{username:"Prometheus",passwordSecretRef:{name:"mongodb-metrics-password"}},security:{authentication:{modes:["SCRAM"]}},users:[{name:"operator",db:"admin",passwordSecretRef:{name:"mongodb-operator-password"},roles:[{name:"root",db:"admin"}],scramCredentialsSecretName:"mongodb-operator-password"},{name:"root",db:"admin",passwordSecretRef:{name:"mongodb-root-password"},roles:[{name:"root",db:"admin"}],scramCredentialsSecretName:"mongodb-root-password"}],additionalMongodConfig:{net:{port:27017,maxIncomingConnections:1e4},storage:{wiredTiger:{engineConfig:{journalCompressor:"zlib"}}},replication:{oplogSizeMB:10240,enableMajorityReadConcern:!0},operationProfiling:{mode:"off",slowOpThresholdMs:100},systemLog:{destination:"file",path:"/data/mongod.log",logAppend:!0,logRotate:"reopen",component:{command:{verbosity:0},index:{verbosity:0},query:{verbosity:0},network:{verbosity:0},write:{verbosity:0}}},setParameter:{cursorTimeoutMillis:7e5}},statefulSet:{spec:{template:{spec:{initContainers:[{name:"mongod-posthook",imagePullPolicy:"IfNotPresent",resources:{limits:{cpu:"0.2",memory:"250M"},requests:{cpu:"0.2",memory:"250M"}}},{name:"mongodb-agent-readinessprobe",imagePullPolicy:"IfNotPresent",resources:{limits:{cpu:"0.2",memory:"250M"},requests:{cpu:"0.2",memory:"250M"}}}],containers:[{name:"mongod",imagePullPolicy:"IfNotPresent",resources:{limits:{cpu:"8",memory:"16G"},requests:{cpu:2,memory:"4G"}}},{name:"mongodb-agent",imagePullPolicy:"IfNotPresent",resources:{limits:{cpu:"0.2",memory:"250M"},requests:{cpu:"0.2",memory:"250M"}}}],affinity:{podAntiAffinity:{preferredDuringSchedulingIgnoredDuringExecution:[{podAffinityTerm:{labelSelector:{matchExpressions:[{key:"app.kubernetes.io/instance",operator:"In",values:[111]}]},topologyKey:"kubernetes.io/hostname"},weight:1}]}}}},volumeClaimTemplates:[{metadata:{name:"data-volume"},spec:{accessModes:["ReadWriteOnce"],resources:{requests:{storage:"100G"}},storageClassName:"csi-high-capacity"}}]}}}},masterSecret:{apiVersion:"v1",kind:"Secret",metadata:{name:"mongodb-operator-password"},type:"Opaque",stringData:{password:"operator_pwd"}},rootSecret:{apiVersion:"v1",kind:"Secret",metadata:{name:"mongodb-root-password"},type:"Opaque",stringData:{password:"root_pwd"}}}},function(e,t,a){"use strict";a(15),Object.defineProperty(t,"__esModule",{value:!0}),t.ckYaml=void 0;t.ckYaml={resources:{apiVersion:"clickhouse.radondb.com/v1",kind:"ClickHouseInstallation",metadata:{name:"ck-cluster-11",namespace:"default"},spec:{metricsExporter:"on",configuration:{zookeeper:{install:!0,replica:3,port:2181},users:{"readonly/profile":"readonly","clickhouse/password":"c1ickh0use0perator","clickhouse/networks/ip":["127.0.0.1","::/0"],"clickhouse/profile":"default","clickhouse/quotas":"default"},profiles:{"readonly/readonly":"1","default/max_memory_usage":2e8},quotas:{"default/interval/duration":"3600"},settings:{"compression/case/method":"zstd",disable_internal_dns_cache:1,max_server_memory_usage:18e8,"logger/log":"/var/lib/clickhouse/log/clickhouse-server.log","logger/errorlog":"/var/lib/clickhouse/log/clickhouse-server.err.log","logger/count":10,"logger/size":"100M",timezone:"Asia/Shanghai"},clusters:[{name:"all-nodes",layout:{shardsCount:1,replicasCount:2}}]},defaults:{templates:{podTemplate:"pod-template-with-volume",dataVolumeClaimTemplate:"data",logVolumeClaimTemplate:"data",serviceTemplate:"chi-svc-template"}},templates:{serviceTemplates:[{name:"chi-svc-template",spec:{ports:[{name:"http",port:8123},{name:"tcp",port:9e3}],type:"NodePort"}}],podTemplates:[{name:"pod-template-with-volume",metadata:{annotations:{"backup.velero.io/backup-volumes":"data"}},spec:{affinity:{podAntiAffinity:{preferredDuringSchedulingIgnoredDuringExecution:[{weight:1,podAffinityTerm:{labelSelector:{matchExpressions:[{key:"clickhouse.radondb.com/chi",operator:"In",values:["clickhouse"]}]},topologyKey:"kubernetes.io/hostname"}}]}},containers:[{name:"clickhouse",image:"radondb/clickhouse-server:v21.1.3.32-stable",imagePullPolicy:"IfNotPresent",readinessProbe:{exec:{command:["/usr/bin/clickhouse-client","-q","SELECT 1"]}},initialDelaySeconds:10,periodSeconds:30,successThreshold:1,failureThreshold:4,timeoutSeconds:10,livenessProbe:{exec:{command:["/usr/bin/clickhouse-client","-q","SELECT 1"]},initialDelaySeconds:60,periodSeconds:30,successThreshold:1,failureThreshold:4,timeoutSeconds:10},volumeMounts:[{name:"data",mountPath:"/var/lib/clickhouse"}],resources:{requests:{memory:"1Gi",cpu:"500m"},limits:{memory:"1Gi",cpu:"500m"}}}]}}],volumeClaimTemplates:[{name:"data",reclaimPolicy:"Retain",spec:{accessModes:["ReadWriteOnce"],resources:{requests:{storage:"10Gi"}},storageClassName:"csi-qingcloud"}}]}}}}},function(e,t,a){"use strict";a(15),Object.defineProperty(t,"__esModule",{value:!0}),t.pgYaml=void 0;t.pgYaml={resources:{apiVersion:"postgres.radondb.io/v1",kind:"PostgreSQL",metadata:{name:"lzzhang"},spec:{action:"start",deletepvc:!0,volume_type:"local",antiaffinity:{policy:"preferred",podAntiAffinityTerm:"autofailover-readwrite",topologyKey:"kubernetes.io/hostname"},backupCluster:{backupToS3:{policy:{retention:"REDUNDANCY 10"}}},services:[{selector:"autofailover",metadata:{name:"autofailover"},spec:{type:"ClusterIP",ports:[{name:"exporter",port:9187}]}},{selector:"primary",metadata:{name:"readwrite"},spec:{type:"ClusterIP",ports:[{name:"prime",port:5432},{name:"exporter",port:9187}]}},{selector:"standby-readonly",metadata:{name:"standby-readonly"},spec:{type:"ClusterIP",ports:[{name:"prime",port:5432},{name:"exporter",port:9187}]}}],autofailover:{hbas:["host all all all md5"],configs:["enable_seqscan=on"],podspec:{terminationGracePeriodSeconds:60,containers:[{image:"radondb/radondb-postgresql:12.12-v1.1.0",imagePullPolicy:"IfNotPresent",name:"postgresql",volumeMounts:[{name:"data",mountPath:"/var/lib/postgresql/data"}],resources:{limits:{memory:"500Mi",cpu:"0.5"}}},{image:"radondb/radondb-postgres-exporter:v1.1.0",imagePullPolicy:"IfNotPresent",name:"exporter",volumeMounts:[{name:"data",mountPath:"/var/lib/postgresql/data"}],resources:{limits:{memory:"100Mi",cpu:"0.1"}}}]},volumeClaimTemplates:[{metadata:{name:"data"},spec:{accessModes:["ReadWriteOnce"],resources:{requests:{storage:"1Gi"}}}}]},postgresql:{users:{admin:[],normal:[]},hbas:["host all all all md5"],configs:["enable_seqscan=on","autovacuum=true","autovacuum_analyze_scale_factor=0.05","autovacuum_vacuum_cost_delay=0","autovacuum_vacuum_cost_limit=10000","autovacuum_vacuum_scale_factor=0.02","bgwriter_delay=10","bgwriter_flush_after=512kB","bgwriter_lru_maxpages=1000","checkpoint_timeout=300","commit_delay=0","commit_siblings=5","cpu_index_tuple_cost=0.005","cpu_tuple_cost=0.01","fsync=true","full_page_writes=true","idle_in_transaction_session_timeout=86400000","jit=false","log_min_duration_statement=10000","log_min_messages=WARNING","log_statement=none","maintenance_work_mem=64MB","max_connections=100","max_replication_slots=15","max_wal_senders=15","max_worker_processes=20","port=5432","random_page_cost=1.1","seq_page_cost=1","shared_buffers=128MB","statement_timeout=0","synchronous_commit=on","temp_buffers=1MB","vacuum_defer_cleanup_age=10000","wal_compression=false","wal_level=replica","wal_writer_delay=10","wal_writer_flush_after=1MB","work_mem=4MB"],readwriteinstance:{replicas:2,podspec:{terminationGracePeriodSeconds:60,containers:[{image:"radondb/radondb-postgresql:12.12-v1.1.0",imagePullPolicy:"IfNotPresent",name:"postgresql",volumeMounts:[{name:"data",mountPath:"/var/lib/postgresql/data"}],resources:{limits:{memory:"200Mi",cpu:"0.2"}}},{image:"radondb/radondb-postgres-exporter:v1.1.0",imagePullPolicy:"IfNotPresent",name:"exporter",volumeMounts:[{name:"data",mountPath:"/var/lib/postgresql/data"}],resources:{limits:{memory:"100Mi",cpu:"0.1"}}}]},volumeClaimTemplates:[{metadata:{name:"data"},spec:{accessModes:["ReadWriteOnce"],resources:{requests:{storage:"1Gi"}}}}]},readonlyinstance:{streaming:"async",replicas:0,podspec:{terminationGracePeriodSeconds:60,containers:[{image:"radondb/radondb-postgresql:12.12-v1.1.0",imagePullPolicy:"IfNotPresent",name:"postgresql",volumeMounts:[{name:"data",mountPath:"/var/lib/postgresql/data"}],resources:{limits:{memory:"200Mi",cpu:"0.2"}}},{image:"radondb/radondb-postgres-exporter:v1.1.0",imagePullPolicy:"IfNotPresent",name:"exporter",volumeMounts:[{name:"data",mountPath:"/var/lib/postgresql/data"}],resources:{limits:{memory:"100Mi",cpu:"0.1"}}}]},volumeClaimTemplates:[{metadata:{name:"data"},spec:{accessModes:["ReadWriteOnce"],resources:{requests:{storage:"1Gi"}}}}]}}}}}},function(e,t,a){"use strict";a(15),Object.defineProperty(t,"__esModule",{value:!0}),t.mysqlYaml=void 0;t.mysqlYaml={resources:{apiVersion:"mysql.radondb.com/v1alpha1",kind:"MysqlCluster",metadata:{name:"sample",namespace:"default"},spec:{replicas:3,mysqlVersion:"5.7",backupSecretName:"$DMP-MANAGED-S3-SECRET$",mysqlOpts:{rootPassword:"",image:"percona/percona-server:5.7.39",rootHost:"localhost",user:"radondb_usr",password:"RadonDB@123",database:"radondb",initTokuDB:!0,mysqlConf:{},resources:{requests:{cpu:"100m",memory:"256Mi"},limits:{cpu:"500m",memory:"1Gi"}}},xenonOpts:{image:"radondb/xenon:v2.3.0",admitDefeatHearbeatCount:5,electionTimeout:1e4,resources:{requests:{cpu:"50m",memory:"128Mi"},limits:{cpu:"100m",memory:"256Mi"}}},metricsOpts:{enabled:!0,image:"prom/mysqld-exporter:v0.12.1",resources:{requests:{cpu:"10m",memory:"32Mi"},limits:{cpu:"100m",memory:"128Mi"}}},podPolicy:{imagePullPolicy:"IfNotPresent",sidecarImage:"radondb/mysql-sidecar:v2.3.0",busyboxImage:"busybox:1.32",slowLogTail:!1,auditLogTail:!1,labels:{},annotations:{},affinity:{podAntiAffinity:{requiredDuringSchedulingIgnoredDuringExecution:[{labelSelector:{matchExpressions:[{key:"mysql.radondb.com/cluster",operator:"In",values:["mysql"]}]},topologyKey:"kubernetes.io/hostname"}]}},priorityClassName:"",schedulerName:"",extraResources:{requests:{cpu:"100m",memory:"500Mi"}}},persistence:{enabled:!0,accessModes:["ReadWriteOnce"],size:"10Gi"}}}}},,,,,,,,,function(e,t,a){"use strict";var r=a(20),n=a(157);a(12),a(11),a(6),a(9),a(13),a(10),a(4),a(23),a(17),a(7),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(12),a(45),a(11),a(6),a(28),a(42),a(448),a(34),a(15),a(9),a(13),a(10),a(4),a(23),a(57),a(17),a(7);var l,u,o,i=r(a(315)),c=r(a(30)),s=r(a(58)),f=r(a(36)),d=r(a(37)),p=r(a(88)),m=r(a(55)),h=r(a(56)),v=r(a(51)),g=n(a(0)),y=r(a(1)),E=r(a(26)),b=r(a(189)),_=r(a(241)),O=r(a(787)),S=r(a(481)),C=r(a(482)),D=a(791),k=r(a(1296)),N=r(a(435)),T=r(a(1541)),R=r(a(2290));function w(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function I(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},u=l.containerDetail,o=l.selectedVersion,i=(0,s.default)(l,["containerDetail","selectedVersion"]),c=(null===(e=(0,p.default)(r))||void 0===e?void 0:e.props)||(0,p.default)(r),f=null===(t=(0,p.default)(r))||void 0===t?void 0:t.props,d=f.trigger,m=void 0===d?r.trigger:d,h=f.success,v=(void 0===h&&r.success,N.default.edgeappsets((0,_.default)(c,"namespace"))),g=(0,E.default)(u,"metadata.name"),y=(0,E.default)(u,"spec"),O=(0,E.default)(o,"_originData.spec.versionName"),S=(0,b.default)(y,"version");v&&(v.spec=I(I({},null==v?void 0:v.spec),{},{appTemplateName:g,version:O,deploymentTemplate:{spec:I(I({},S),{},{template:{spec:{deploymentTemplate:{spec:S}}}})}})),r.trigger("app.template.deploy.v2",I(I(I(I(I(I({trigger:m},(0,p.default)(r)),c),i),u),{},{app:(null===(a=r.props)||void 0===a?void 0:a.app)||(null===(n=(0,p.default)(r))||void 0===n?void 0:n.app),isEdgeTable:!0},(0,_.default)(c,["cluster","workspace","namespace"])),{},{formTemplate:v,onOK:null==c?void 0:c.onOK}))},r.store=new C.default,r}return(0,d.default)(a,[{key:"componentDidMount",value:function(){var e;(null===(e=this.rootStore.actions)||void 0===e?void 0:e["app.template.deploy.v2"])||this.rootStore.registerActions(k.default)}},{key:"render",value:function(){var e=this.props,t=e.visible,a=(e.onOk,e.onDeploy,(0,s.default)(e,["visible","onOk","onDeploy"]));return g.default.createElement(O.default,(0,i.default)({className:T.default.modal,bodyClassName:T.default.body,visible:t,hideHeader:!0,rightScreen:!0,hideFooter:!0},a),g.default.createElement(R.default,(0,i.default)({},a,{onDeploy:this.handleDeploy.bind(this)})))}}]),a}(g.Component),u.propTypes={app:y.default.object,visible:y.default.bool,onOK:y.default.func,onCancel:y.default.func,appName:y.default.string,cluster:y.default.string,workspace:y.default.string,namespace:y.default.string,trigger:y.default.func},u.defaultProps={visible:!1,onCancel:function(){}},l=o))||l;t.default=P},function(e,a,r){"use strict";var n=r(20),l=r(157);r(12),r(109),r(11),r(31),r(6),r(18),r(16),r(9),r(13),r(10),r(4),r(23),r(17),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(109),r(45),r(11),r(31),r(6),r(18),r(28),r(42),r(16),r(34),r(15),r(9),r(13),r(10),r(4),r(22),r(23),r(57),r(17),r(7);var u=n(r(43)),o=n(r(30));r(41);var i,c,s,f=n(r(44)),d=n(r(36)),p=n(r(37)),m=n(r(88)),h=n(r(55)),v=n(r(56)),g=n(r(51)),y=l(r(0)),E=n(r(243)),b=n(r(63)),_=n(r(199)),O=n(r(1)),S=r(239),C=r(186),D=n(r(435)),k=r(248),N=n(r(816)),T=n(r(932)),R=n(r(482)),w=n(r(1100)),I=n(r(2356)),M=n(r(2358));function P(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function A(e){for(var t=1;t0&&void 0!==r[0]?r[0]:{},e.next=3,t.versionStore.fetchList(A(A({},a),{},{app_id:t.appId,noLimit:!0}));case 3:case"end":return e.stop()}}),e)}))),t.handleTabChange=function(e){t.setState({tab:e})},t.handleClickBack=function(){var e=t.props.app;t.props.setType("appList",e.repo_id)},t.showDeploy=function(){var e=t.props.app,a=e.name,r=e.description,n=t.containerFormRef.current;n&&n.validate((function(){(t.props.onDeploy||t.onDeploy)(A(A({},t.props||(0,m.default)(t)),{},{title:a,selectedVersion:t.selectedVersion,description:r||"-",containerDetail:n.getData(),store:t.store}))}))},t.handleChangeAppVersion=function(e){t.setState({selectedVersionKey:e})},t.state={tab:"versionInfo",selectedVersionKey:"",showDeploy:!1},t.store=new R.default,t.appTemplateStore=new w.default,t.containerFormRef=y.default.createRef(),t}return(0,p.default)(n,[{key:"componentDidMount",value:(a=(0,f.default)(u.default.mark((function e(){var t;return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=this.props.app.latestVersion.name,this.setState({selectedVersionKey:t});case 2:case"end":return e.stop()}}),e,this)}))),function(){return a.apply(this,arguments)})},{key:"componentWillUnmount",value:function(){this.props.setType()}},{key:"renderContainerGroupInfo",value:function(){var e=this.props,a=e.cluster,r=e.namespace;return y.default.createElement("div",{className:M.default.content},y.default.createElement("div",{className:M.default.title},t("VERSION")),y.default.createElement(N.default,{className:"margin-b12",value:this.state.selectedVersionKey,options:this.versionOptions,onChange:this.handleChangeAppVersion}),this.selectedVersion&&y.default.createElement(T.default,{formRef:this.containerFormRef,store:this.appTemplateStore,cluster:a,namespace:r,formTemplate:this.containerFormTemplate,onlyDockerHub:!0,isReadOnlyContainers:!0,isShowAddContainer:!1}))}},{key:"render",value:function(){var e=this.props.app,a=e.name,r=e.description;return y.default.createElement(y.default.Fragment,null,y.default.createElement(I.default,{onClickBack:this.handleClickBack,title:a,desc:r||"-"}),y.default.createElement("div",{className:M.default.bar},y.default.createElement("span",{className:"h6"},t("CONTAINER_GROUP_INFO")),y.default.createElement(C.Button,{type:"control",onClick:this.showDeploy,disabled:(0,b.default)(this.versionOptions)},t("DEPLOYMENT"))),this.renderContainerGroupInfo())}},{key:"appId",get:function(){return this.props.app.name}},{key:"tabs",get:function(){return[{label:t("APP_INFORMATION"),value:"versionInfo"},{label:t("CHART_FILES"),value:"chartFiles"}]}},{key:"versionOptions",get:function(){var e=this.props.app,a=e.versions,r=e.latestVersion;return a.map((function(e){var a=e.name,n=e.createTime;return{value:a,label:y.default.createElement(y.default.Fragment,null,a,a===r.name&&y.default.createElement(C.Tag,{type:"warning",className:M.default.latestTag},t("LATEST_VERSION_SCAP"))),description:(0,E.default)(n).format("YYYY-MM-DD")}}))}},{key:"selectedVersion",get:function(){var e=this.state.selectedVersionKey;return this.props.app.versions.find((function(t){return t.name===e}))}},{key:"containerFormTemplate",get:function(){var e=this.props.namespace,t=D.default.apptemplateversions({name:this.appId});return this.selectedVersion&&(t=(0,k.getVersionFormattedData)(this.selectedVersion)),t=(0,_.default)({metadata:{namespace:e}},t)}}]),n}(y.Component),c.propTypes={app:O.default.object,setType:O.default.func,cluster:O.default.string,workspace:O.default.string,namespace:O.default.string,onDeploy:O.default.func},c.defaultProps={app:{}},i=s))||i;a.default=L},function(e,t,a){e.exports={wrapper:"_3-Z2rH4dJXrmQSWl9e4ycU",disabled:"_1Dw41QGGd50RzhWJFhfH49",options:"_2Xu541Z-0bUtJcujaZkRHR",option:"_2EXRjaIiDTR4g0Dfk94wJz",control:"_1hz7Wgmx8Rghk274Q2pzcH",withIcon:"_2Vq4QaRwsRLaDLjC6rbHLK",leftIcon:"ooc_mcBxBm5WR1VuTXQgW",text:"_2zG-KdWrFpEGXbWTU-Uk_u",rightIcon:"UPnGOt9oqYtT-P8SuLo1R",selected:"_1swH00sr6Ka5DNZNLzmPRP",search:"BXevkwDBApCohP4-5hFly"}},,,function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(11),r(6),r(16),r(4),r(23),r(17),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(11),r(6),r(42),r(16),r(4),r(23),r(57),r(17),r(7);var l=n(r(36)),u=n(r(37)),o=n(r(55)),i=n(r(56)),c=n(r(51)),s=n(r(63)),f=n(r(135)),d=n(r(0)),p=n(r(1)),m=n(r(3)),h=r(881),v=r(186),g=n(r(1097)),y=n(r(1297)),E=n(r(1299)),b=n(r(1301)),_=n(r(1302)),O=n(r(1303)),S=n(r(2324)),C=n(r(2333)),D=n(r(2335)),k=n(r(2337));function N(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,c.default)(e);if(t){var n=(0,c.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,i.default)(this,a)}}var T=function(e){(0,o.default)(r,e);var a=N(r);function r(e){var t,n,u;return(0,l.default)(this,r),(u=a.call(this,e)).registerForm=function(){var e=u.context.registerSubRoute,t=u.props.onCancel;e&&e(u.handleSubmit,t)},u.handleGoBack=function(){var e=u.context.resetSubRoute;e&&e(),u.props.onCancel()},u.handleSubmit=function(e){var t=u.props,a=t.onSave,r=t.withService,n=u.formRef.current;n&&n.validate((function(){var t=n.getData();t.args&&(t.args=t.args.filter((function(e){return!(0,s.default)(e)}))),t.command&&(t.command=t.command.filter((function(e){return!(0,s.default)(e)}))),t.env&&(t.env=t.env.filter((function(e){var t=e.name;return!(0,s.default)(t)}))),t.ports&&(t.ports=t.ports.filter((function(e){return e.name&&e.containerPort}))),(0,s.default)(t.lifecycle)&&delete t.lifecycle,(0,s.default)(t.livenessProbe)&&delete t.livenessProbe,(0,s.default)(t.startupProbe)&&delete t.startupProbe,(0,s.default)(t.readinessProbe)&&delete t.readinessProbe,!r&&t.ports&&t.ports.forEach((function(e){void 0!==e.servicePort&&delete e.servicePort})),t.image=u.state.imageDetail.image,a(t),e&&e()}))},u.handleContainerTypeChange=function(e){u.setState({containerType:e})},u.formRef=d.default.createRef(),u.state={containerType:e.data.type||"worker",formData:(0,f.default)(e.data),imageDetail:(null===(t=e.data)||void 0===t?void 0:t.image)?{image:null===(n=e.data)||void 0===n?void 0:n.image}:{}},u}return(0,u.default)(r,[{key:"getChildContext",value:function(){var e=this;return{forceUpdate:function(){e.forceUpdate()},imageDetail:this.state.imageDetail,setImageDetail:function(t){e.setState({imageDetail:t})}}}}]),(0,u.default)(r,[{key:"componentDidMount",value:function(){this.registerForm()}},{key:"render",value:function(){var e=this.props,t=e.className,a=e.isFederated,r=e.cluster,n=e.limitRange,l=e.imageRegistries,u=e.namespace,o=e.withService,i=e.supportGpuSelect,c=e.projectDetail,s=e.containers,f=e.type,p=e.isEdgeWize,N=e.onlyDockerHub,T=this.state,R=T.containerType,w=T.formData;return d.default.createElement("div",{className:(0,m.default)(k.default.wrapper,t)},d.default.createElement("div",{className:"h5"},d.default.createElement("a",{className:"custom-icon",onClick:this.handleGoBack},d.default.createElement(h.ReactComponent,null)),this.title),d.default.createElement(v.Form,{ref:this.formRef,data:w},d.default.createElement(O.default,{data:w,cluster:r,namespace:u,limitRange:n,imageRegistries:N?[]:l,defaultContainerType:R,onContainerTypeChange:this.handleContainerTypeChange,workspaceQuota:this.props.workspaceQuota,supportGpuSelect:i,isEdgeWize:p,containers:s,type:f}),d.default.createElement(g.default,{withService:"init"!==R&&o,data:w}),d.default.createElement(b.default,null),"init"!==R&&d.default.createElement(_.default,null),d.default.createElement(D.default,null),d.default.createElement(y.default,null),d.default.createElement(E.default,{namespace:u,isFederated:a,cluster:r,isEdgeWize:p,projectDetail:c}),d.default.createElement(S.default,null),d.default.createElement(C.default,{data:w})))}},{key:"title",get:function(){var e=this.props,a=e.type,r=e.titlePrefix,n=t("".concat(a.toUpperCase(),"_CONTAINER"));return"".concat(r).concat(n)}}]),r}(d.default.Component);a.default=T,T.propTypes={onlyDockerHub:p.default.bool,isEdgeWize:p.default.bool,className:p.default.string,type:p.default.string,titlePrefix:p.default.string,namespace:p.default.string,module:p.default.string,data:p.default.object,onSave:p.default.func,onCancel:p.default.func,configMaps:p.default.array,secrets:p.default.array,containers:p.default.array},T.defaultProps={className:"",type:"Add",titlePrefix:"",onlyDockerHub:!1,isEdgeWize:!1,namespace:"",module:"",data:{},onSave:function(){},onCancel:function(){},configMaps:[],secrets:[],containers:[]},T.childContextTypes={forceUpdate:p.default.func,imageDetail:p.default.object,setImageDetail:p.default.func},T.contextTypes={registerSubRoute:p.default.func,resetSubRoute:p.default.func}},function(e,t,a){e.exports={wrapper:"_7te1l8EfVM6tZhqTao6Sf",text:"_3nzWDPF5TiOskojQKzJuIk"}},function(e,t,a){e.exports={wrapper:"_1nzmymJQjcRsMrjYGneDt5",tip:"_2NjdkVatk0DK13ijU1TUaM"}},function(e,t,a){e.exports={wrapper:"_2jnaJ_tJNRHuS4hoQljy_3"}},function(e,t,a){e.exports={defaultButton:"_7MnHu7AlZ8cMwEuzfGyTc"}},function(e,t,a){e.exports={input:"_9VIeOg56YL5EUVGKERJsI"}},function(e,a,r){"use strict";var n=r(157),l=r(20);r(12),r(5),r(11),r(31),r(6),r(18),r(16),r(9),r(13),r(10),r(4),r(23),r(17),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(45),r(5),r(11),r(31),r(6),r(18),r(28),r(42),r(16),r(34),r(15),r(9),r(13),r(10),r(4),r(23),r(57),r(17),r(7);var u=l(r(30)),o=l(r(36)),i=l(r(37)),c=l(r(55)),s=l(r(56)),f=l(r(51)),d=n(r(0)),p=r(186),m=l(r(135)),h=l(r(3)),v=l(r(2301));function g(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function y(e){for(var t=1;t0&&d.default.createElement("span",{className:v.default.allChoose,onClick:this.handleAllChoose},l?t("DESELECT_ALL"):t("SELECT_ALL"))),d.default.createElement("div",{className:v.default.table},d.default.createElement("div",{className:(0,h.default)(v.default.innerBox,(0,u.default)({},v.default.scroll,i.length>4))},i.map((function(t,a){return d.default.createElement(p.Checkbox,{className:(0,h.default)(v.default.tableItem,(0,u.default)({},v.default.checked,t.checked)),checked:t.checked,onChange:function(){return e.handleKeyChecked(a)}},t.label)}))))),d.default.createElement("div",{className:v.default.options},d.default.createElement(p.Button,{onClick:this.handleCancel},t("CANCEL")),d.default.createElement(p.Button,{type:"control",onClick:this.handleOk},t("OK"))))}},{key:"tabs",get:function(){return[{label:t("CONFIGMAP_PL"),value:"configMaps"},{label:t("SECRET_PL"),value:"secrets"}]}},{key:"options",get:function(){var e=this.props,t=e.configMaps,a=e.secrets;return"configMaps"===this.state.tab?t.map((function(e){return{label:e.name,value:e.name}})):a.map((function(e){return{label:e.name,value:e.name}}))}},{key:"style",get:function(){var e=this.props,t=e.showModal,a=(0,e.getParentPosition)();return t?{top:a.y,left:"calc(".concat(a.x,"px - 12px)")}:{}}}]),r}(d.Component);a.default=b},function(e,t,a){e.exports={contentBox:"_3fu0cXTS6-8QAQs_DJTlw3",content:"_16xE4DVV_sWZ9H7S_Es45D",title:"_1aEnOXwYPEjPFMpZIZCIH4",tip:"_2zo3TJ4xDa-xQGLmdmJAZX",tabs:"_1uI7sdLkFlHd6bb1y0rgyj",subTitle:"DiD89TxExP31ZkyD20Jnm",allChoose:"Fg_gHEB2_RjJA7n2xThUV",select:"_1ibpdeUpiDUA7lh3JDj7SU",table:"_17sbwrk45iiciLmuuauJNz",innerBox:"_2Jw8cKyp5nGmQps7akPnIC",tableItem:"_2UF616YDFSnZNrttSww9aW",checked:"_1ktEr8__1sxlaBM9jyC2zQ",options:"_1Wjti9og2mC72XU2APvskI",scroll:"DHVShHP-NwtOgMhDs3KIG"}},function(e,a,r){"use strict";var n=r(20);r(12),r(5),r(11),r(31),r(6),r(84),r(18),r(16),r(9),r(13),r(10),r(4),r(23),r(17),r(85),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(45),r(5),r(11),r(31),r(6),r(84),r(18),r(28),r(42),r(16),r(34),r(15),r(9),r(13),r(10),r(4),r(23),r(57),r(24),r(193),r(17),r(85),r(7);var l=n(r(30)),u=n(r(36)),o=n(r(37)),i=n(r(55)),c=n(r(56)),s=n(r(51)),f=n(r(26)),d=n(r(198)),p=n(r(63)),m=n(r(74)),h=n(r(800)),v=n(r(0)),g=n(r(1)),y=r(52),E=r(72),b=n(r(3)),_=r(186),O=n(r(1547)),S=n(r(867));function C(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function D(e){for(var t=1;t0){var u=n.includes("".concat(l));u&&e.setState({keyError:u},(function(){var a=t("DUPLICATE_KEYS");e.handleError({message:a})}))}},e.handleCfOrScChange=function(t){var a={name:e.props.value.name||"",valueFrom:(0,l.default)({},e.envType,{name:t||"",key:""})};e.validEnvKey(a.name,a),e.props.onChange(a)},e.handleError=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",a=e.props,r=a.handleKeyError,n=a.handleInputError;r(t),n(t)},e.checkNameRepeat=function(t){var a=e.props,r=a.arrayValue,n=a.index;return r.length>1&&r.filter((function(e,a){return e.name===t&&a!==n})).length>0},e.validEnvKey=(0,h.default)((function(a){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=!E.PATTERN_ENV_NAME.test(a),l=e.checkNameRepeat(a),u=(0,d.default)(r,"valueFrom")?(0,p.default)(r.valueFrom):""===r.value;if(""===a&&u)e.handleError(),e.setState({keyError:!1});else{if(l){var o=t("DUPLICATE_KEYS");e.handleError({message:o})}else if(n){var i=""!==a?t("ENVIRONMENT_INVALID_TIP"):t("ENVIRONMENT_CANNOT_BE_EMPTY");e.handleError({message:i})}else e.handleError();e.setState({keyError:n||l})}}),300),e.handleValueChange=(0,h.default)((function(t){var a=t.name,r=t.value;""===a&&""===r?(e.props.handleKeyError(),e.props.handleInputError(),e.setState({keyError:!1})):e.validEnvKey(a,{value:r})}),300),e.handleTypeChange=function(t){var a=e.props,r=a.value,n=a.onChange;e.setState({envType:t,keyError:""},(function(){n("customization"!==t?{name:r.name||"",valueFrom:(0,l.default)({},t,{name:"",key:""})}:{name:r.name||"",value:""}),""===r.name&&e.handleError()}))},e.renderConfigOrSecret=function(){var a=e.props.value,r=void 0===a?{}:a,n=e.state.keyError,u=e.parseValue(r.valueFrom),o=u.resourceType,i=u.resourceName,c=u.resourceKey,s={name:r.name,resource:i,resourceKey:c};return v.default.createElement(S.default,{value:s,onChange:e.handleChange},v.default.createElement("div",{className:O.default.typeBox},v.default.createElement(_.Select,{options:e.resourceOptions,onChange:e.handleTypeChange,value:e.envType})),v.default.createElement(_.Input,{name:"name",placeholder:t("KEY"),className:(0,b.default)((0,l.default)({},O.default.formError,n)),onChange:function(t){return e.validEnvKey(t,r)}}),v.default.createElement(_.Select,{name:"resource",placeholder:t("RESOURCE"),prefixIcon:v.default.createElement(_.Icon,{name:"configMapKeyRef"===e.envType?"hammer":"key"}),options:e.getConfigOrSecretOptions,onChange:e.handleCfOrScChange}),v.default.createElement(_.Select,{name:"resourceKey",placeholder:t("KEY_IN_RESOURCE"),options:e.getKeysOptions({resourceType:o,resourceName:i}),onChange:e.handleKeyData}))},e}return(0,o.default)(r,[{key:"componentDidMount",value:function(){this.updateCheckStatus()}},{key:"parseValue",value:function(e){var t=(0,d.default)(e,"configMapKeyRef")?"configMapKeyRef":"secretKeyRef";return{resourceType:t,resourceName:(0,f.default)(e,"".concat(t,".name"),""),resourceKey:(0,f.default)(e,"".concat(t,".key"),"")}}},{key:"getKeysOptions",value:function(e){var t,a=e.resourceType,r=e.resourceName,n=this.props,l=n.configMaps,u=n.secrets;return"configMapKeyRef"===a?t=l.find((function(e){return e.name===r})):"secretKeyRef"===a&&(t=u.find((function(e){return e.name===r}))),t?Object.keys(t.data||{}).map((function(e){return{label:e,value:e}})):[]}},{key:"render",value:function(){var e=this,a=this.props,r=a.value,n=void 0===r?{}:r,u=a.onChange,o=this.state.keyError;return n.valueFrom?this.renderConfigOrSecret():v.default.createElement(S.default,{value:n,onChange:u},v.default.createElement("div",{className:O.default.typeBox},v.default.createElement(_.Select,{options:this.resourceOptions,onChange:this.handleTypeChange,value:this.envType})),v.default.createElement(_.Input,{name:"name",placeholder:t("KEY"),className:(0,b.default)((0,l.default)({},O.default.formError,o)),onChange:function(t){return e.validEnvKey(t,n)}}),v.default.createElement(_.Input,{name:"value",placeholder:t("VALUE"),onChange:function(){return e.handleValueChange(n)}}))}},{key:"envType",get:function(){var e=this.state.envType,t=this.props.value,a=t.valueFrom&&Object.keys(t.valueFrom)[0];return a||e}},{key:"resourceOptions",get:function(){return[{label:t("CUSTOM"),value:"customization"},{label:t("FROM_CONFIGMAP"),value:"configMapKeyRef"},{label:t("FROM_SECRET"),value:"secretKeyRef"}]}},{key:"getConfigOrSecretOptions",get:function(){var e=this.props,t=e.configMaps,a=e.secrets;return"configMapKeyRef"===this.envType?t.map((function(e){return{label:(0,y.getDisplayName)(e),value:e.name}})):a.map((function(e){return{label:(0,y.getDisplayName)(e),value:e.name}}))}}]),r}(v.default.Component);a.default=N,N.propTypes={value:g.default.object,onChange:g.default.func,configMaps:g.default.array,secrets:g.default.array},N.defaultProps={name:"",value:{},onChange:function(){},configMaps:[],secrets:[]}},function(e,t,a){"use strict";var r=a(157),n=a(20);a(12),a(11),a(6),a(9),a(13),a(10),a(7),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(12),a(11),a(6),a(28),a(34),a(15),a(9),a(13),a(10),a(4),a(7);var l=n(a(30)),u=n(a(58)),o=n(a(96)),i=r(a(0)),c=a(186),s=n(a(3)),f=n(a(2304));function d(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}var p=function(e){var t=e.children,a=e.className,r=e.text,n=e.dataTest,p=e.onOK,m=e.modalHeight,h=(0,i.useRef)(),v=(0,i.useState)(!1),g=(0,o.default)(v,2),y=g[0],E=g[1],b=(0,i.useState)({x:"100%",y:"100%",y1:0,height:32}),_=(0,o.default)(b,2),O=_[0],S=_[1],C=function(){E(!y)},D=t.props,k=D.className,N=(0,u.default)(D,["className"]),T=i.default.cloneElement(t,function(e){for(var t=1;t0?l-u:l-12,y1:a+7,height:r})),E(!y)},"data-test":n},r),i.default.createElement("div",{className:(0,s.default)(f.default.triangle,(0,l.default)({},f.default.showModal,y)),style:{top:O.y1,left:O.x}}))};t.default=p},function(e,t,a){e.exports={buttonModalBox:"_2_csTIElkvsBzjHdoPar-Y",modal:"_20nMOVrlzEe8lRAHGp8Ka7",triangle:"_2_7O7g-y-zVcwFvGHPcxyz",showModal:"_18GWZH_n37uqfC9dcmi96j"}},function(e,a,r){"use strict";var n=r(20);r(12),r(11),r(6),r(18),r(9),r(13),r(10),r(4),r(23),r(24),r(17),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(45),r(11),r(6),r(18),r(28),r(42),r(34),r(15),r(9),r(13),r(10),r(4),r(23),r(57),r(24),r(17),r(7);var l,u,o,i=n(r(30)),c=n(r(36)),s=n(r(37)),f=n(r(55)),d=n(r(56)),p=n(r(51)),m=n(r(0)),h=r(239),v=n(r(1)),g=n(r(3)),y=n(r(135)),E=r(186),b=n(r(828)),_=n(r(2306)),O=n(r(1549)),S=n(r(2307));function C(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function D(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,p.default)(e);if(t){var n=(0,p.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,d.default)(this,a)}}var k=[{value:"http",desc:"HTTP_REQUEST"},{value:"command",desc:"COMMAND"},{value:"tcp",desc:"TCP_PORT"}],N=(0,h.observer)((o=u=function(e){(0,f.default)(r,e);var a=D(r);function r(e){var t;return(0,c.default)(this,r),(t=a.call(this,e)).filterData=function(e){var a=t.state.checkerType,r=function(e){for(var t=1;t0||(n.ImageDetail={image:i,secret:n.secret,logo:r,short_description:u},n.getImageDetail(n.ImageDetail))}}),800,{leading:!0,trailing:!1}),n.getImageDetailNoCert=function(){n.getImageDetail(L(L({},n.ImageDetail),{},{insecure:!0}))},n.getImage=function(){var e=(0,c.default)(i.default.mark((function e(t){var a,r,l,u,o;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=t.image,r=t.insecure,l=t.tag,u=n.getImageParam(),n.setState({selectedLoading:!0}),e.next=5,n.store.getImageDetail(L({image:"".concat(a,":").concat(l||"lastest"),secret:n.secret,insecure:r},u));case 5:return o=e.sent,n.setState({selectedLoading:!1}),e.abrupt("return",o);case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),n.getImageList=function(){var e=(0,c.default)(i.default.mark((function e(t){var a,r,l,u,c,s,f;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=t.imageName,r=t.insecure,l=t.page,u=(0,o.default)(t,["imageName","insecure","page"]),c=n.getImageParam(),s=a||n.image,e.next=5,n.store.getImageTagList(L(L({repository:s,insecure:r,page:l,secret:n.secret},u),c));case 5:return f=e.sent,u.more&&n.setState({imageTagList:f}),e.abrupt("return",f);case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),n.getImageDetail=(0,b.default)(function(){var e=(0,c.default)(i.default.mark((function e(t){var a,r,l,u,o,c,s,f;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a=t.image,r=t.insecure,l=t.secret,a&&!n.isUnMounted){e.next=3;break}return e.abrupt("return");case 3:if(n.image=a,n.setState({isLoading:!0}),u=n.getImageParam(),o=n.getTag(a),c=o.imageName,!(s=o.tag)||"latest"===s){e.next=15;break}return e.next=10,n.store.getImageDetail(L(L({image:"".concat(c,":").concat(s),insecure:r},u),{},{secret:l}));case 10:f=e.sent,n.store.updateTagList({data:[s],total:1,limit:Number(u.limit)||10,page:Number(u.page)||1,isLoading:!1}),n.setState({isLoading:!1,selectedImageTag:s,selectedImage:L(L({},f),{},{image:"".concat(c,":").concat(s)})},(function(){(0,C.default)(n.props.formTemplate,"image",n.state.selectedImage.image),n.context.setImageDetail&&n.context.setImageDetail(n.state.selectedImage)})),e.next=18;break;case 15:return e.next=17,n.getImageList(L({imageName:c,page:1},u));case 17:n.setState({selectedImage:void 0,selectedImageTag:"",isLoading:!1});case 18:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),800,{leading:!0,trailing:!1}),n.renderWaringText=function(){return v.default.createElement("p",null,t("IGNORE_CERT_WARN_DESC"))},n.onSelectImageTag=(0,S.default)(function(){var e=(0,c.default)(i.default.mark((function e(t){var a,r,l,u,o;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n.setState({selectedImageTag:t}),a=n.image,r=n.getTag(a),l=r.imageName,u="".concat(l,":").concat(t),e.next=6,n.getImage({image:l,tag:t});case 6:o=e.sent,(0,C.default)(n.props.formTemplate,"image",u),n.setState({selectedImage:L(L({},o),{},{image:u})},(function(){n.context.setImageDetail&&n.context.setImageDetail(n.state.selectedImage)}));case 9:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),300,{leading:!1,trailing:!0}),n.renderWaringText=function(){return v.default.createElement("p",null,t("IGNORE_CERT_WARN_DESC"))},n.renderSelectedContent=function(){if(n.state.isLoading)return v.default.createElement(N.Loading,null,v.default.createElement("div",{className:A.default.selectedContent}));var e=n.state,a=e.selectedImage,r=e.selectedImageTag,l=e.selectedLoading,u=(0,y.toJS)(n.store.tagList);if((0,O.default)(a)){var o=a.message;if("failed"===a.status)return o&&o.includes("x509")?v.default.createElement("div",{className:(0,k.default)(A.default.selectedContent,A.default.emptyContent)},v.default.createElement(N.Icon,{name:"docker",className:A.default.icon}),v.default.createElement("p",{className:A.default.desc},t("CERT_ERROR"),v.default.createElement(N.Tooltip,{content:n.renderWaringText},v.default.createElement("span",{className:A.default.textConfirm,onClick:n.getImageDetailNoCert},t("IGNORE_AND_RETRY"))))):v.default.createElement("div",{className:(0,k.default)(A.default.selectedContent,A.default.emptyContent)},v.default.createElement("div",null,v.default.createElement(N.Icon,{name:"docker",className:A.default.icon}),v.default.createElement("p",{className:A.default.desc},t("NO_IMAGE_FOUND"))));var i=a.image,c=a.createTime,s=a.exposedPorts,f=void 0===s?[]:s,d=a.logo,p=a.short_description,m=i.indexOf("/")>-1?i.split("/")[0]:"docker.io",h=f.join("; "),g=o||p;return v.default.createElement(v.default.Fragment,null,v.default.createElement("div",{className:A.default.selectedContent},v.default.createElement(N.Loading,{spinning:l},v.default.createElement("div",{className:A.default.selectedImageInfo},v.default.createElement("div",{className:A.default.selectedInfo},v.default.createElement("img",{className:A.default.logo,src:d||"/assets/no_img.svg",alt:i}),v.default.createElement("div",{className:A.default.imageInfo},v.default.createElement("p",null,i),v.default.createElement("p",null,t("IMAGE_TIME_SIZE_LAYER",{time:(0,D.default)(c).fromNow()})))),v.default.createElement("div",{className:A.default.selectedInfo},v.default.createElement(N.Icon,{name:"port",className:A.default.icon}),v.default.createElement("div",{className:A.default.imageInfo},v.default.createElement("p",null,h||t("NO_DEFAULT_PORT")),v.default.createElement("p",null,t("PORT")))),v.default.createElement("div",{className:A.default.selectedInfo},v.default.createElement(N.Icon,{name:"docker",className:A.default.icon}),v.default.createElement("div",{className:A.default.imageInfo},v.default.createElement("p",null,m),v.default.createElement("p",null,t("REGISTRY")))))),g?v.default.createElement("div",{className:A.default.message},g):null,v.default.createElement(P.default,{onSelectImageTag:n.onSelectImageTag,selectedImageTag:r,tagList:u,getImageList:n.getImageList})))}return u.data.length>0?v.default.createElement(P.default,{onSelectImageTag:n.onSelectImageTag,selectedImageTag:r,tagList:(0,y.toJS)(n.store.tagList),getImageList:n.getImageList}):v.default.createElement("div",{className:(0,k.default)(A.default.selectedContent,A.default.emptyContent)},v.default.createElement("div",null,v.default.createElement(N.Icon,{name:"docker",className:A.default.icon}),v.default.createElement("p",{className:A.default.desc},t("SET_IMAGE_DESC"))))},n.imageRequiredValidator=function(e,a,r){if((0,_.default)(a))return r({message:t("IMAGE_EMPTY")});r()},n.store=e.isEdgeWize?new I.default:new w.default,n.getImageDetail=(0,S.default)(n.getImageDetail,1e3),n.state={isLoading:!1,selectedImage:void 0,selectedImageTag:void 0,selectedLoading:!1},n}return(0,d.default)(r,[{key:"componentDidMount",value:function(){var e,t,a=this,r=this.props,n=r.formTemplate,l=r.imageRegistries,u=(0,E.default)(n,"image",""),o=(null!==(e=null===(t=l.find((function(e){return e.value===a.secret})))||void 0===t?void 0:t.url)&&void 0!==e?e:"").replace(/^(http(s)?:\/\/)?(.*)$/,"$3");u&&u!==o&&this.getImageDetail({image:u,secret:this.secret})}},{key:"componentWillUnmount",value:function(){this.isUnMounted=!0}},{key:"render",value:function(){var e=t.html("IMAGE_DESC",{link:(0,T.getDocsUrl)("imageregistry")});return v.default.createElement(v.default.Fragment,null,v.default.createElement(N.Form.Item,{label:t("IMAGE"),desc:(0,T.learnMoreTip)(e),rules:[{pattern:R.PATTERN_IMAGE,message:t("INVALID_IMAGE")},{validator:this.imageRequiredValidator}]},v.default.createElement(M.default,(0,u.default)({},this.props,{store:this.store,onEnter:this.handleEnter,name:"image",onLoading:this.handleLoadingChange}))),globals.config.enableImageSearch&&this.renderSelectedContent())}},{key:"secret",get:function(){var e=this.props,t=e.imageRegistries,a=e.formTemplate,r=t.find((function(e){return e.isDefault}));return(0,E.default)(a,"pullSecret",(null==r?void 0:r.value)||"")}}]),r}(v.Component);a.default=U,U.defaultProps={className:"",type:"add"},U.contextTypes={forceUpdate:g.default.func,setImageDetail:g.default.func}},function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(11),r(31),r(86),r(18),r(320),r(16),r(27),r(4),r(22),r(196),r(23),r(139),r(24),r(17),r(64),r(188),r(136),r(75),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(11),r(31),r(86),r(18),r(320),r(42),r(16),r(27),r(4),r(22),r(196),r(23),r(57),r(139),r(251),r(24),r(252),r(17),r(64),r(188),r(75);var l=n(r(61)),u=n(r(30)),o=n(r(43));r(41);var i=n(r(44)),c=n(r(36)),s=n(r(37)),f=n(r(55)),d=n(r(56)),p=n(r(51)),m=n(r(0)),h=n(r(1)),v=n(r(26)),g=n(r(74)),y=n(r(63)),E=n(r(3)),b=r(186),_=n(r(2315)),O=n(r(2317)),S=n(r(1550));function C(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,p.default)(e);if(t){var n=(0,p.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,d.default)(this,a)}}var D=function(e){(0,f.default)(r,e);var a=C(r);function r(e){var n;(0,c.default)(this,r),(n=a.call(this,e)).handleDOMClick=function(e){n.dropContentRef&&n.dropContentRef.current&&!n.dropContentRef.current.contains(e.target)&&n.hideContent()},n.showContent=function(e){e.stopPropagation(),n.setState({visible:!0},(function(){document.addEventListener("click",n.handleDOMClick),"dockerHub"!==n.hubType&&n.fetchHarborList("",n.state.harborData)}))},n.hideContent=function(){"dockerHub"!==n.hubType&&n.setState({harborList:[]}),n.setState({visible:!1},(function(){document.removeEventListener("click",n.handleDOMClick)}))},n.handleDetailRedirect=function(e){var t=e.currentTarget.dataset.image;window.open("https://hub.docker.com/_/".concat(t))},n.handleSecretChange=function(e){if(e){var t=n.props.imageRegistries.filter((function(t){return t.value===e}))[0];n.setState({harborData:t})}var a=n.props.formTemplate;(0,g.default)(a,"pullSecret",e),n.props.onChange(n.registryUrl)},n.handleInputChange=function(e,t){var a=t;n.registryUrl&&(a="".concat(n.registryUrl,"/").concat(t).replace(/\/+/g,"/")),a=a.replace(/\s+/g,""),n.props.onChange(a),n.context.setImageDetail&&n.context.setImageDetail({image:a})},n.handleKeyUp=function(e){13===e.keyCode&&n.handleConfirm()},n.handleConfirm=function(){n.imageName&&n.props.onEnter()},n.handleDockerImageSelected=function(){var e=(0,i.default)(o.default.mark((function e(t){var a,r,l,u;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:a=t.currentTarget.dataset,r=a.image,l=a.logo,u=a.short_description,n.props.onChange(r),n.hideContent(),n.props.onEnter({logo:l,short_description:u});case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),n.handleHarborImageSelected=function(){var e=(0,i.default)(o.default.mark((function e(t){var a;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:a="".concat(t.repository_name),"","",n.props.onChange("".concat(n.registryUrl,"/").concat(a)),n.hideContent(),n.props.onEnter({logo:"",short_description:""});case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),n.handleSearchDockerHub=function(e){n.fetchDockerList(e)},n.handleSearchHarbor=function(e){n.fetchHarborList(e,n.state.harborData)},n.fetchDockerList=function(){var e=(0,i.default)(o.default.mark((function e(t){var a;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n.setState({isLoading:!0}),e.next=3,n.store.getDockerImagesLists({q:t||"",image_filter:t?void 0:"official",page_size:50,type:"image"}).finally((function(){!n.isUnMounted&&n.setState({isLoading:!1})}));case 3:a=e.sent,!n.isUnMounted&&n.setState({dockerList:(0,v.default)(a,"summaries",[])});case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),n.fetchHarborList=function(){var e=(0,i.default)(o.default.mark((function e(t,a){var r;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if((0,v.default)(a,"url")&&!(0,y.default)(a)){e.next=3;break}return e.abrupt("return");case 3:return n.setState({isLoading:!0}),e.next=6,n.store.getHarborImagesLists({harborData:a,params:{q:t||""}}).finally((function(){!n.isUnMounted&&n.setState({isLoading:!1})}));case 6:r=e.sent,!n.isUnMounted&&n.setState({harborList:(0,v.default)(r,"repository",[])});case 8:case"end":return e.stop()}}),e)})));return function(t,a){return e.apply(this,arguments)}}(),n.renderContent=function(){return n.state.visible?m.default.createElement("div",{className:(0,E.default)(S.default.dropContent,(0,u.default)({},S.default.dropContent_hide,!n.state.visible)),ref:n.dropContentRef},m.default.createElement("div",{className:S.default.header},m.default.createElement(b.InputSearch,{className:S.default.search,onSearch:"dockerHub"===n.hubType?n.handleSearchDockerHub:n.handleSearchHarbor,placeholder:t("SEARCH")}),n.state.isLoading&&m.default.createElement(b.Loading,{className:"float-left",size:28})),"dockerHub"===n.hubType?n.renderDockerList():n.renderHarborList()):null};var l=n.props.imageRegistries,s="harbor"===n.hubType?l.find((function(e){return e.value===n.secretValue})):{};return n.state={dockerList:[],harborList:[],harborData:s,visible:!1,isLoading:!1},n.store=e.store,n.dropContentRef=m.default.createRef(),n.isUnMounted=!1,n}return(0,s.default)(r,[{key:"componentDidMount",value:function(){"Edit"!==this.props.type&&""!==this.secretValue&&this.handleSecretChange(this.secretValue),"dockerHub"===this.hubType&&this.fetchDockerList(),"harbor"===this.hubType&&this.fetchHarborList("",this.state.harborData)}},{key:"componentWillUnmount",value:function(){this.isUnMounted=!0,document.removeEventListener("click",this.handleDOMClick)}},{key:"renderDockerList",value:function(){var e=this;return(0,y.default)(this.state.dockerList)?m.default.createElement("ul",{className:S.default.listContent},m.default.createElement("div",{className:(0,E.default)(S.default.selectedContent,S.default.emptyContent)},m.default.createElement("div",null,m.default.createElement(b.Icon,{name:"docker",className:S.default.icon}),m.default.createElement("p",{className:S.default.desc},t("NO_IMAGE_FOUND"))))):m.default.createElement("ul",{className:S.default.listContent},this.state.dockerList.map((function(t){return m.default.createElement("li",{className:S.default.ImageItem,key:t.name},m.default.createElement("img",{src:(0,v.default)(t,"logo_url.large")||"/assets/no_img.svg",alt:t.name}),m.default.createElement("div",{className:S.default.info},m.default.createElement("p",{onClick:e.handleDockerImageSelected,className:S.default.clickable,"data-image":t.slug,"data-logo":(0,v.default)(t,"logo_url.large",""),"data-short_description":t.short_description},t.name),m.default.createElement("p",null,t.short_description)),m.default.createElement("div",{className:S.default.starContainer},m.default.createElement(b.Icon,{className:S.default.star,name:"star"}),t.star_count),m.default.createElement("div",{className:S.default.actions},m.default.createElement("span",{className:S.default.clickable,onClick:e.handleDetailRedirect,"data-image":t.slug},m.default.createElement(b.Icon,{name:"paper",size:16,changeable:!0})),m.default.createElement("span",{className:S.default.clickable,onClick:e.handleDockerImageSelected,"data-image":t.slug,"data-logo":(0,v.default)(t,"logo_url.large",""),"data-short_description":t.short_description},m.default.createElement(b.Icon,{name:"check",size:16,changeable:!0}))))})))}},{key:"renderHarborList",value:function(){var e=this;return(0,y.default)(this.state.harborList)?m.default.createElement("ul",{className:S.default.listContent},m.default.createElement("div",{className:(0,E.default)(S.default.selectedContent,S.default.emptyContent)},m.default.createElement("div",null,m.default.createElement(b.Icon,{name:"docker",className:S.default.icon}),m.default.createElement("p",{className:S.default.desc},t("NO_IMAGE_FOUND"))))):m.default.createElement("ul",{className:S.default.listContent},this.state.harborList.map((function(t){return m.default.createElement("li",{className:S.default.ImageItem,key:t.repository_name},m.default.createElement("img",{src:"/assets/no_img.svg",alt:t.repository_name}),m.default.createElement("div",{className:S.default.info},m.default.createElement("p",{onClick:function(a){return e.handleHarborImageSelected(t,a)},className:S.default.clickable},t.repository_name)),m.default.createElement("div",{className:S.default.actions},m.default.createElement("span",{className:S.default.clickable,onClick:function(a){return e.handleHarborImageSelected(t,a)}},m.default.createElement(b.Icon,{name:"check",size:16,changeable:!0}))))})))}},{key:"render",value:function(){var e=this;return m.default.createElement(m.default.Fragment,null,m.default.createElement(O.default,{className:S.default.imageInput,onChange:this.handleInputChange,value:this.imageName,autoComplete:"off",placeholder:this.secretValue?"nginx:latest":t("IMAGE_PLACEHOLDER"),onBlur:this.handleConfirm,onKeyUp:this.handleKeyUp},m.default.createElement(_.default,{value:this.secretValue,className:S.default.secretSelect,options:this.secretsOptions,onChange:this.handleSecretChange,disabled:this.secretsOptions.length<=1})),"others"===this.hubType||globals.config.enableImageSearch?m.default.createElement(b.Icon,{name:"templet",changeable:!0,className:S.default.dropDownIcon,onClick:function(t){return e.showContent(t)}}):null,this.renderContent())}},{key:"defaultImage",get:function(){return this.props.imageRegistries.find((function(e){return e.isDefault}))}},{key:"secretValue",get:function(){var e,t=this.props,a=t.formTemplate;return"Edit"===t.type?(0,v.default)(a,"pullSecret",""):(0,v.default)(a,"pullSecret",(null===(e=this.defaultImage)||void 0===e?void 0:e.value)||"")}},{key:"hubType",get:function(){return this.registryUrl.indexOf("docker.io")>=0||""===this.secretValue?"dockerHub":this.secretValue&&this.registryUrl.indexOf("docker.io")<0?"harbor":"others"}},{key:"registryUrl",get:function(){var e=this,t=this.props.imageRegistries;if(!(0,y.default)(t)&&this.secretValue){var a=t.find((function(t){return t.value===e.secretValue})),r=(0,v.default)(a,"url","");if(r)return r=(r=r.replace(/^(http(s)?:\/\/)?(.*)$/,"$3")).split("/")[0]}return""}},{key:"imageName",get:function(){var e=this.props.value;if(e.startsWith(this.registryUrl)){var t=new RegExp("".concat(this.registryUrl,"(/)?"));return e.replace(t,"")}return e}},{key:"secretsOptions",get:function(){var e=this.props.imageRegistries.map((function(e){return{label:e.label,value:e.value,url:e.url,isDefault:e.isDefault}}));return[{label:"Docker Hub",value:"",url:"",isDefault:!this.defaultImage}].concat((0,l.default)(e)).sort((function(e,t){return Number(!!t.isDefault)-Number(!!e.isDefault)}))}}]),r}(m.default.Component);a.default=D,D.contextTypes={setImageDetail:h.default.func},D.defaultProps={imageRegistries:[],className:"",value:"",onChange:function(){}}},function(e,a,r){"use strict";r(15);var n=r(20);r(11),r(31),r(18),r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(11),r(31),r(18),r(42),r(4),r(23),r(57),r(17);var l=n(r(30)),u=n(r(36)),o=n(r(37)),i=n(r(55)),c=n(r(56)),s=n(r(51)),f=n(r(0)),d=n(r(1)),p=n(r(800)),m=n(r(63)),h=n(r(158)),v=n(r(837)),g=n(r(3)),y=r(186),E=n(r(2316));function b(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,s.default)(e);if(t){var n=(0,s.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,c.default)(this,a)}}var _=function(e){(0,i.default)(r,e);var a=b(r);function r(e){var t;return(0,u.default)(this,r),(t=a.call(this,e)).triggerChange=(0,p.default)((function(){(0,t.props.onChange)(t.state.value)})),t.handleClick=function(e){t.setState({value:e,showOptions:!1},(function(){t.triggerChange()}))},t.toggleShowOptions=function(){t.setState({showOptions:!t.state.showOptions})},t.handleShowOptions=function(){t.setState({showOptions:!0})},t.handleHideOptions=function(){t.setState({showOptions:!1})},t.state={value:(0,h.default)(e.value)?e.defaultValue:e.value,showOptions:!1},t.optionsRef=f.default.createRef(),t}return(0,o.default)(r,[{key:"renderOption",value:function(e,a){var r=this;return f.default.createElement("div",{key:e.uid||e.value,onClick:function(){return r.handleClick(e.value)},className:(0,g.default)(E.default.option,(0,l.default)({},E.default.selected,a))},f.default.createElement("div",{className:E.default.optionCol},f.default.createElement("span",{className:E.default.optionLabel},e.label),e.isDefault&&f.default.createElement("span",{className:E.default.defaultTag},t("DEFAULT"))),f.default.createElement("p",null,e.url))}},{key:"renderOptions",value:function(){var e=this,t=this.props,a=t.options,r=t.disabled,n=this.state.value;if(r||(0,m.default)(a))return null;var l=a.find((function(e){return(0,v.default)(e.value,n)}));return f.default.createElement("div",{className:E.default.options},l&&this.renderOption(l,!0),a.filter((function(e){return!(0,v.default)(e.value,n)})).map((function(t){return e.renderOption(t)})))}},{key:"renderControl",value:function(){var e=this.props,t=e.value,a=e.defaultValue,r=e.placeholder,n=e.options,u=e.disabled,o=t||a,i=n.find((function(e){return(0,v.default)(e.value,o)}))||r||{};return f.default.createElement("div",{className:E.default.control},f.default.createElement("span",{className:E.default.label},i.label),!u&&f.default.createElement(y.Icon,{className:(0,g.default)(E.default.rightIcon,(0,l.default)({},E.default.rightIcon_toggle,this.state.showOptions)),name:"chevron-down",size:20}))}},{key:"render",value:function(){var e=this.props,t=e.className,a=e.disabled;return f.default.createElement("div",{className:(0,g.default)(E.default.wrapper,(0,l.default)({},E.default.disabled,a),t),onClick:this.toggleShowOptions},f.default.createElement(y.Dropdown,{closeAfterClick:!1,visible:this.state.showOptions,onOpen:this.handleShowOptions,onClose:this.handleHideOptions,content:this.renderOptions()},this.renderControl()))}}]),r}(f.default.Component);a.default=_,_.propTypes={className:d.default.string,value:d.default.any,defaultValue:d.default.any,options:d.default.array.isRequired,onChange:d.default.func},_.defaultProps={className:"",defaultValue:"",options:[],onChange:function(){}}},function(e,t,a){e.exports={wrapper:"S_heeB_hWWpcU9iQV27vw",disabled:"_1aEV1eGRRlcxgiiUgzDi4t",control:"_3VHbJcAvcKO3wpbr1S6Nax",options:"_3xbjYC08sAusjBLLYYmR10",label:"_1O8-tjKxx-KQjGqUDhfVTm",rightIcon:"_2KGD9mmPPR7LoALKbTXcqH",rightIcon_toggle:"_300TNQVWjbgMrbsLWW7bIU",selected:"_1pwHXZgl5FXdbBPslY8RjQ",option:"_13sntOU00zu8UIQHzr2jVu",optionCol:"Fk2RtFUjO7CJPWmtz7pYR",optionLabel:"FoyZHugIgAhtpqKQ65mpA",defaultTag:"_1j6G6ToUdFdTGLih7mSwsc"}},function(e,t,a){"use strict";a(15);var r=a(157),n=a(20);a(4),a(23),a(17),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(45),a(42),a(4),a(23),a(57),a(17);var l=n(a(315)),u=n(a(30)),o=n(a(58)),i=n(a(36)),c=n(a(37)),s=n(a(55)),f=n(a(56)),d=n(a(51)),p=r(a(0)),m=n(a(1)),h=n(a(3)),v=n(a(194)),g=n(a(189)),y=n(a(455)),E=n(a(2318));function b(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,d.default)(e);if(t){var n=(0,d.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,f.default)(this,a)}}var _=function(e){(0,s.default)(a,e);var t=b(a);function a(e){var r;return(0,i.default)(this,a),(r=t.call(this,e)).focus=function(){r.node.focus()},r.blur=function(){r.node.blur()},r.handleChange=function(e){var t=e.target.value,a=r.props,n=a.value,l=a.onChange,u=n||t;r.setState({value:u}),l!==y.default&&l(e,t)},r.handleKeyDown=function(e){var t=r.props,a=t.onPressEnter,n=t.onKeyDown;13===e.keyCode&&a&&a(e),n&&n(e)},r.state={value:String(e.value||e.defaultValue),isFocus:!1},r}return(0,c.default)(a,[{key:"render",value:function(){var e=this,t=this.props,a=t.className,r=t.size,n=t.disabled,i=t.children,c=(0,o.default)(t,["className","size","disabled","children"]),s=this.state.value;return p.default.createElement("span",{className:(0,h.default)(E.default.input,a,(0,u.default)({},"is-".concat(r),r))},i,p.default.createElement("input",(0,l.default)({},(0,g.default)(c,"schemas","onKeyDown","onPressEnter","onChange","value","defaultValue","validateStatus","validateHelp","validateIcon","validateOnChange","validateOnBlur"),{disabled:(0,v.default)(n)?n():n,onKeyDown:this.handleKeyDown,onChange:this.handleChange,value:s,ref:function(t){e.node=t},"data-test":"imageSearch"})),p.default.createElement("span",{className:(0,h.default)(E.default.border,"input")}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return"value"in e&&e.value!==t.value?{value:e.value}:null}}]),a}(p.PureComponent);_.propTypes={name:m.default.string,type:m.default.string,className:m.default.string,size:m.default.oneOf(["small","default","large"]),value:m.default.oneOfType([m.default.string,m.default.number]),defaultValue:m.default.oneOfType([m.default.string,m.default.number]),disabled:m.default.oneOfType([m.default.bool,m.default.func]),onChange:m.default.func,onPressEnter:m.default.func,onKeyDown:m.default.func},_.defaultProps={type:"text",size:"default",disabled:!1,onChange:y.default,onPressEnter:y.default,onKeyDown:y.default,defaultValue:""};var O=_;t.default=O},function(e,t,a){e.exports={input:"_3vEQEMHbKh8LmE9d-auvSs",border:"_1UKB-z9KeXbZ9cQ3YQrnb2","is-small":"TnU7NSMR7wf7uCvk9WTBN",icon:"-ImUGeX33ECFh2FmuR9Z4","is-default":"_1o8YS1PIPm0_aFGs2NPwvr","is-large":"_3R2fJgdHmL4vLxJtTakF_B"}},function(e,t,a){"use strict";a(15);var r=a(20),n=a(157);a(18),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(18);var l=n(a(0)),u=a(186),o=r(a(863)),i=a(14),c=r(a(2322)),s=r(a(1551)),f=function(e){var t=e.selectedImageTag,a=e.onSelectImageTag,r=e.getImageList,n=e.tagList,f=(0,l.useCallback)((function(e){a(e)}),[]),d=n||{},p=d.data,m=d.page,h=d.total,v=d.isLoading;return l.default.createElement("div",{className:s.default.content},l.default.createElement(u.RadioGroup,{wrapClassName:1===h?s.default.radioOnlyOneListContent:s.default.radioListContent,onChange:f,value:t},l.default.createElement(o.default,{className:s.default.radioList,data:(0,i.toJS)(p),page:m,total:h,loading:v,noMount:!0,onFetch:r},p.map((function(e){return l.default.createElement(u.Radio,{value:e,key:e},l.default.createElement(c.default,{tag:e,selectedImageTag:t}))})))))};t.default=f},function(e,t,a){e.exports={wrapper:"Fxc1J8GJ2h6_Qd-n9BxZg",content:"_3DotkGf2uSTDa1JBsYdIsb"}},function(e,t,a){e.exports={wrapper:"_1HH_wApq9OB2Afiw8FUQG5",main:"_3Z6raG0G-fxugjFdD2je6J",content:"_2yXgC1SbTsHsrlUb6aUTxo",loadMore:"_33OcD9PenJa0VjGHcOD-aD",empty:"_2sZpot3ZfCOM9QHB7RXOkx"}},function(e,t,a){"use strict";a(15);var r=a(20);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(a(30)),l=r(a(0)),u=a(186),o=r(a(3)),i=r(a(1551)),c=function(e){var t=e.tag,a=e.selectedImageTag;return l.default.createElement("div",{className:(0,o.default)(i.default.imageTagDetailItem,(0,n.default)({},i.default.checked,t===a))},l.default.createElement(u.Icon,{name:"tag",className:i.default.icon,size:20,type:t===a?"light":"dark"}),l.default.createElement("p",{className:i.default.tagName},t))};t.default=c},function(e,t,a){e.exports={message:"_3obsx3JGHNcPFHM89AsInE",imageSearch:"_1OhvKXsP4kv0J873sFRM-g",columns:"aQZPHiJZpM_2WxHh0UHol",type:"_2LIGHzmFbBVhNOoFy_Ed-j"}},function(e,a,r){"use strict";r(15);var n=r(20);r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(42),r(4),r(23),r(57),r(17);var l=n(r(36)),u=n(r(37)),o=n(r(55)),i=n(r(56)),c=n(r(51)),s=n(r(0)),f=r(186),d=n(r(2325)),p=n(r(1552)),m=n(r(1553)),h=n(r(2330));function v(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,c.default)(e);if(t){var n=(0,c.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,i.default)(this,a)}}var g=function(e){(0,o.default)(r,e);var a=v(r);function r(){return(0,l.default)(this,r),a.apply(this,arguments)}return(0,u.default)(r,[{key:"render",value:function(){return s.default.createElement(f.Form.Group,{label:t("CONTAINER_SECURITY_CONTEXT"),desc:t("CONTAINER_SECURITY_CONTEXT_DESC"),checkable:!0},s.default.createElement(d.default,null),s.default.createElement(p.default,null),s.default.createElement(m.default,null),s.default.createElement(h.default,null))}}]),r}(s.default.PureComponent);a.default=g},function(e,a,r){"use strict";r(15);var n=r(20);r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(42),r(4),r(23),r(57),r(17);var l=n(r(36)),u=n(r(37)),o=n(r(55)),i=n(r(56)),c=n(r(51)),s=n(r(0)),f=r(186),d=n(r(1099)),p=n(r(2327));function m(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,c.default)(e);if(t){var n=(0,c.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,i.default)(this,a)}}var h=function(e){(0,o.default)(r,e);var a=m(r);function r(){return(0,l.default)(this,r),a.apply(this,arguments)}return(0,u.default)(r,[{key:"render",value:function(){return s.default.createElement("div",{className:"margin-b12"},s.default.createElement("div",{className:p.default.title},t("ACCESS_CONTROL")),s.default.createElement("div",{className:p.default.content},s.default.createElement(f.Form.Item,null,s.default.createElement(d.default,{name:"".concat(this.prefix,".privileged"),title:t("PRIVILEGED_MODE"),description:t("PRIVILEGED_MODE_DESC")})),s.default.createElement(f.Form.Item,null,s.default.createElement(d.default,{name:"".concat(this.prefix,".allowPrivilegeEscalation"),title:t("ALLOW_PRIVILEGE_ESCALATION"),description:t("ALLOW_PRIVILEGE_ESCALATION_DESC")})),s.default.createElement(f.Form.Item,null,s.default.createElement(d.default,{name:"".concat(this.prefix,".readOnlyRootFilesystem"),title:t("ROOT_DIRECTORY_READONLY"),description:t("ROOT_DIRECTORY_READONLY_DESC")}))))}},{key:"prefix",get:function(){return this.props.prefix||"securityContext"}}]),r}(s.default.Component);a.default=h},function(e,t,a){e.exports={wrapper:"_15WzUlcoLloZykJlZj0Apo",text:"_1FbvXHTu2eI1KD5ONd5HH0"}},function(e,t,a){e.exports={title:"xiiGbS5phbPetinkKktv5",content:"_3MKZeMiqNiY37e6ZT3uCbc"}},function(e,t,a){e.exports={title:"_93bRvqjERHRqTzbtsZ3hA",content:"ALf6y5a4svCrpH2U0yUs8"}},function(e,t,a){e.exports={title:"_3mzDzs1cbhNCB3Q4DZTkCL",content:"_2BaVtn2VyGgZ9YmDM_znzH"}},function(e,a,r){"use strict";r(15);var n=r(20);r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(42),r(4),r(23),r(57),r(17);var l=n(r(36)),u=n(r(37)),o=n(r(55)),i=n(r(56)),c=n(r(51)),s=n(r(0)),f=r(186),d=n(r(829)),p=n(r(2331)),m=n(r(2332));function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,c.default)(e);if(t){var n=(0,c.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,i.default)(this,a)}}var v=function(e){(0,o.default)(r,e);var a=h(r);function r(){return(0,l.default)(this,r),a.apply(this,arguments)}return(0,u.default)(r,[{key:"render",value:function(){return s.default.createElement("div",{className:"margin-b12"},s.default.createElement("div",{className:m.default.title},t("CAPABILITIES")),s.default.createElement("div",{className:m.default.content},s.default.createElement(f.Form.Item,{label:t("ADD")},s.default.createElement(d.default,{name:"".concat(this.prefix,".capabilities.add")},s.default.createElement(p.default,null))),s.default.createElement(f.Form.Item,{label:t("DROP")},s.default.createElement(d.default,{name:"".concat(this.prefix,".capabilities.drop")},s.default.createElement(p.default,null)))))}},{key:"prefix",get:function(){return this.props.prefix||"securityContext"}}]),r}(s.default.Component);a.default=v},function(e,t,a){"use strict";a(15);var r=a(20);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(a(58)),l=r(a(0)),u=a(186),o=function(e){e.arrayValue,e.handleKeyError;var t=(0,n.default)(e,["arrayValue","handleKeyError"]);return l.default.createElement(u.Input,t)};t.default=o},function(e,t,a){e.exports={title:"K8wgjzWlByq5WsuMlI7Tf",content:"_3X53teLvKWLW3f9mdpe3jg"}},function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(11),r(97),r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(11),r(97),r(42),r(4),r(23),r(57),r(17);var l=n(r(61)),u=n(r(36)),o=n(r(37)),i=n(r(55)),c=n(r(56)),s=n(r(51)),f=n(r(0)),d=n(r(26)),p=n(r(74)),m=r(186),h=n(r(2334));function v(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,s.default)(e);if(t){var n=(0,s.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,c.default)(this,a)}}var g=function(e){(0,i.default)(r,e);var a=v(r);function r(){var e;(0,u.default)(this,r);for(var t=arguments.length,n=new Array(t),o=0;o0?0:1}}),(function(){e.triggerChange()}))},e.stopPropagation=function(e){return e.stopPropagation()},e}return(0,i.default)(r,[{key:"render",value:function(){var e=this.props.cluster,a=this.state.replicas,r=!!a;return d.default.createElement("div",{className:(0,p.default)(v.default.wrapper,(0,u.default)({},v.default.checked,r)),onClick:this.handleWrapperClick},d.default.createElement(h.Checkbox,{checked:r,onClick:this.handleWrapperClick},d.default.createElement("span",{title:e},e)),d.default.createElement("div",{className:v.default.replicas,onClick:this.stopPropagation},d.default.createElement(h.Icon,{name:"substract",type:"light",size:20,clickable:!0,disabled:!r,onClick:this.handleSubStract}),d.default.createElement("span",{className:v.default.value},a,d.default.createElement("span",null," ",1===a?t("REPLICA_LOW_SI"):t("REPLICA_LOW_PL"))),d.default.createElement(h.Icon,{name:"add",type:"light",size:20,clickable:!0,disabled:!r,onClick:this.handleAdd})))}}]),r}(d.Component);a.default=y},function(e,t,a){e.exports={wrapper:"_1mKVwkCL_1ppeUigF3KAKg",checked:"_3b5rXyVfHzVbq7BXgqnsUg",replicas:"_1q8JcEqV4JG13oRb9C3HI_",value:"_1GwFMwt-s5K68TjO9mYodk"}},function(e,a,r){"use strict";r(15);var n=r(20),l=r(157);r(5),r(18),r(16),r(27),r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(18),r(42),r(16),r(27),r(4),r(23),r(57),r(24),r(193),r(17);var u,o,i,c=n(r(36)),s=n(r(37)),f=n(r(55)),d=n(r(56)),p=n(r(51)),m=l(r(0)),h=n(r(26)),v=n(r(74)),g=r(14),y=r(239),E=r(186),b=n(r(1)),_=n(r(2343)),O=n(r(2345));function S(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,p.default)(e);if(t){var n=(0,p.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,d.default)(this,a)}}var C=(0,y.observer)((i=o=function(e){(0,f.default)(r,e);var a=S(r);function r(){var e;(0,c.default)(this,r);for(var n=arguments.length,l=new Array(n),u=0;u0&&void 0!==arguments[0]?arguments[0]:"";e.metaError=t},e.metaDataValidator=function(t,a,r){""===e.metaError&&r()},e}return(0,u.default)(r,[{key:"render",value:function(){return s.default.createElement(s.default.Fragment,null,s.default.createElement(f.Form.Item,{label:t("ANNOTATION_PL"),rules:[{validator:this.metaDataValidator}]},s.default.createElement(d.default,{name:"spec.template.metadata.annotations",addText:t("ADD"),hiddenKeys:globals.config.preservedAnnotations,onError:this.handleMetaError})))}}]),r}(s.default.Component);a.default=m},function(e,t,a){e.exports={formTip:"_19f0EVWj1un4oHSHVFkfCG",tipLabel:"_1QFTfCmmiYYArD4XUdtrk3",tipBox:"_2TmZJA7LIvFo8yQBSA3Ay3",tipTitle:"_2mM1im5fQ7ZlOrtF10n8QH"}},function(e,a,r){"use strict";r(15);var n=r(157),l=r(20);r(5),r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(42),r(4),r(23),r(57),r(17);var u=l(r(36)),o=l(r(37)),i=l(r(55)),c=l(r(56)),s=l(r(51)),f=n(r(0)),d=l(r(1)),p=r(186),m=l(r(2357));function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,s.default)(e);if(t){var n=(0,s.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,c.default)(this,a)}}var v=function(e){(0,i.default)(r,e);var a=h(r);function r(){var e;(0,u.default)(this,r);for(var t=arguments.length,n=new Array(t),l=0;l0&&(i[0].volume=(0,g.default)(i[0].volume,r)),{newVolume:u,newMounts:[].concat((0,l.default)(o),(0,l.default)(i))}},t.handleTypeChange=function(e){t.setState({type:e})},t.formRef=p.default.createRef(),t.state={type:t.checkVolumeType(e.volume)||"exist",editVolume:{}},t}return(0,c.default)(r,[{key:"componentDidMount",value:function(){var e=this.props.onCancel,t=this.context.registerSubRoute;t&&t(this.handleSubmit,e),this.saveEditVolume()}},{key:"saveEditVolume",value:function(){var e=this.props.volume;if(!(0,v.default)(e)){var t=this.volumeTypeMap(Object.keys((0,g.default)(e,["name","volumeMounts"])));"exist"!==t?this.setState({editVolume:{name:e.name,type:t}}):this.setState({editVolume:{name:(0,y.default)(e,"specVolume.name",""),type:t}})}}},{key:"checkVolumeType",value:function(e){var t="exist";return(0,v.default)(e)||(e.emptyDir?t="temp":e.hostPath&&(t="host")),t}},{key:"renderContent",value:function(){var e,t=this.props,a=t.volume,r=t.volumes,n=t.containers,l=t.checkVolumeNameExist,u=t.collectSavedLog,o=a.name,i=(0,y.default)(a,"volumeMounts",[]);if("exist"===this.state.type){var c=(0,y.default)(a,"specVolume.name",!1);c&&(a.name=c)}else{var s=(0,y.default)(a,"name",!1);s&&(a.name=s,(0,E.default)(a,"specVolume.name",s))}switch(i.length>0&&a.volumeMounts.forEach((function(e){return(0,E.default)(e,"name",a.name)})),this.state.type){case"temp":e=p.default.createElement(C.default,{formRef:this.formRef,formData:a,currentName:o,containers:n,checkVolumeNameExist:l,collectSavedLog:u});break;case"host":e=p.default.createElement(D.default,{formRef:this.formRef,formData:a,currentName:o,containers:n,checkVolumeNameExist:l});break;default:case"exist":e=p.default.createElement(S.default,{formRef:this.formRef,formData:a,currentName:o,volumes:r,containers:n,collectSavedLog:u})}return e}},{key:"render",value:function(){var e=this.props,a=e.className,r=e.contentClassName;return p.default.createElement("div",{className:(0,h.default)(k.default.wrapper,a)},p.default.createElement("div",{className:"h6"},p.default.createElement("a",{className:"custom-icon",onClick:this.handleGoBack},p.default.createElement(_.ReactComponent,null)),t("VOLUME_PL")),p.default.createElement("div",{className:(0,h.default)(k.default.contentWrapper,r)},p.default.createElement("div",{className:k.default.title},t("MOUNT_VOLUME")),p.default.createElement(b.RadioGroup,{mode:"button",value:this.state.type,onChange:this.handleTypeChange,size:"small"},p.default.createElement(b.RadioButton,{value:"exist"},t("PERSISTENT_VOLUME")),p.default.createElement(b.RadioButton,{value:"temp"},t("TEMPORARY_VOLUME")),p.default.createElement(b.RadioButton,{value:"host"},t("HOSTPATH_VOLUME"))),this.renderContent()))}}]),r}(p.default.Component);a.default=w,w.propTypes={className:m.default.string,containers:m.default.array,volume:m.default.object,onSave:m.default.func,onCancel:m.default.func},w.defaultProps={className:"",volume:{},containers:[],onSave:function(){},onCancel:function(){}},w.contextTypes={registerSubRoute:m.default.func,resetSubRoute:m.default.func}},function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(11),r(6),r(84),r(18),r(16),r(4),r(23),r(17),r(85),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(11),r(6),r(84),r(18),r(42),r(16),r(4),r(23),r(57),r(17),r(85),r(7);var l=n(r(36)),u=n(r(37)),o=n(r(55)),i=n(r(56)),c=n(r(51)),s=n(r(321)),f=n(r(63)),d=n(r(0)),p=n(r(3)),m=n(r(1)),h=r(186),v=n(r(816)),g=n(r(1042)),y=r(52),E=n(r(2365));function b(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,c.default)(e);if(t){var n=(0,c.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,i.default)(this,a)}}var _=function(e){(0,o.default)(r,e);var a=b(r);function r(){var e;(0,l.default)(this,r);for(var n=arguments.length,u=new Array(n),o=0;o0&&r.push(f.default.createElement("span",{key:"split-".concat(l),className:v.default.split},"/")),r.push(f.default.createElement("span",{key:l,className:v.default.current},t(n.title)))}return f.default.createElement("div",{className:v.default.breadcrumb},r)}}]),r}(f.default.Component);a.default=y,y.propTypes={breadcrumbs:d.default.array,routes:d.default.array,params:d.default.object,pathname:d.default.string},y.defaultProps={breadcrumbs:[],routes:[],params:{},pathname:""}},function(e,t,a){e.exports={breadcrumb:"xKPrLMpPGvKrIzz7bxSWY",back:"_2ohviffIByrflMsW5nHYlw",split:"OW3leDjR4Z22vqaxRuyOp"}},function(e,t,a){e.exports={card:"_1fvaJvMVa-46vr6bRwfiN",default:"_11ZbWGuLKUUwxoCi0UE_ta",selector:"_3wwNftf5lh3zwe6VvRlXHx",loading:"_3mlYHmzoC11FwkXtCcN1P",title:"C-xBi2-VU40KNZUYrr3TD",operations:"_3HvzxjlUHTsgNXS2U7nD52",empty:"_19AVBGyFYrhX1z6mTr5sg0"}},function(e,t,a){e.exports={label:"_2Ci7cqZ4O7DRBCRuzvUd-F",name:"_3c-epdF2Xgo9q-18cg54xx"}},function(e,a,r){"use strict";r(15);var n=r(20);r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(42),r(4),r(23),r(57),r(17);var l=n(r(315)),u=n(r(58)),o=n(r(36)),i=n(r(37)),c=n(r(55)),s=n(r(56)),f=n(r(51)),d=n(r(0)),p=n(r(1)),m=n(r(3)),h=r(186),v=n(r(1566)),g=n(r(1567));function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,f.default)(e);if(t){var n=(0,f.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,s.default)(this,a)}}var E=function(e){(0,c.default)(r,e);var a=y(r);function r(){return(0,o.default)(this,r),a.apply(this,arguments)}return(0,i.default)(r,[{key:"render",value:function(){var e=this.props,a=e.formRef,r=e.data,n=e.children,o=e.hideFooter,i=e.onCancel,c=e.onOk,s=e.cancelText,f=e.okText,p=e.isSubmitting,y=e.bodyClassName,E=e.formClassName,b=e.disableOk,_=(0,u.default)(e,["formRef","data","children","hideFooter","onCancel","onOk","cancelText","okText","isSubmitting","bodyClassName","formClassName","disableOk"]);return d.default.createElement(v.default,(0,l.default)({},_,{bodyClassName:(0,m.default)(g.default.formBody,y),onCancel:i,hideFooter:!0}),d.default.createElement(h.Form,{ref:a,data:r,onSubmit:c},d.default.createElement("div",{className:(0,m.default)(g.default.formWrapper,E)},n),!o&&d.default.createElement("div",{className:g.default.formFooter},d.default.createElement(h.Button,{type:"default",onClick:i,"data-test":"modal-cancel"},s||t("CANCEL")),c&&d.default.createElement(h.Button,{type:"control",htmlType:"submit",loading:p,disabled:b||p,"data-test":"modal-ok"},f||t("OK")))))}}]),r}(d.default.Component);a.default=E,E.propTypes={data:p.default.object,isSubmitting:p.default.bool}},function(e,t,a){e.exports={status:"_1RJNTAi2gZll1lMoWME40i",indicator:"_2MMr1KtzTZnVoLtaDgs1lx"}},,,function(e){e.exports=JSON.parse('{"Aacute":"Á","aacute":"á","Abreve":"Ă","abreve":"ă","ac":"∾","acd":"∿","acE":"∾̳","Acirc":"Â","acirc":"â","acute":"´","Acy":"А","acy":"а","AElig":"Æ","aelig":"æ","af":"⁡","Afr":"𝔄","afr":"𝔞","Agrave":"À","agrave":"à","alefsym":"ℵ","aleph":"ℵ","Alpha":"Α","alpha":"α","Amacr":"Ā","amacr":"ā","amalg":"⨿","amp":"&","AMP":"&","andand":"⩕","And":"⩓","and":"∧","andd":"⩜","andslope":"⩘","andv":"⩚","ang":"∠","ange":"⦤","angle":"∠","angmsdaa":"⦨","angmsdab":"⦩","angmsdac":"⦪","angmsdad":"⦫","angmsdae":"⦬","angmsdaf":"⦭","angmsdag":"⦮","angmsdah":"⦯","angmsd":"∡","angrt":"∟","angrtvb":"⊾","angrtvbd":"⦝","angsph":"∢","angst":"Å","angzarr":"⍼","Aogon":"Ą","aogon":"ą","Aopf":"𝔸","aopf":"𝕒","apacir":"⩯","ap":"≈","apE":"⩰","ape":"≊","apid":"≋","apos":"\'","ApplyFunction":"⁡","approx":"≈","approxeq":"≊","Aring":"Å","aring":"å","Ascr":"𝒜","ascr":"𝒶","Assign":"≔","ast":"*","asymp":"≈","asympeq":"≍","Atilde":"Ã","atilde":"ã","Auml":"Ä","auml":"ä","awconint":"∳","awint":"⨑","backcong":"≌","backepsilon":"϶","backprime":"‵","backsim":"∽","backsimeq":"⋍","Backslash":"∖","Barv":"⫧","barvee":"⊽","barwed":"⌅","Barwed":"⌆","barwedge":"⌅","bbrk":"⎵","bbrktbrk":"⎶","bcong":"≌","Bcy":"Б","bcy":"б","bdquo":"„","becaus":"∵","because":"∵","Because":"∵","bemptyv":"⦰","bepsi":"϶","bernou":"ℬ","Bernoullis":"ℬ","Beta":"Β","beta":"β","beth":"ℶ","between":"≬","Bfr":"𝔅","bfr":"𝔟","bigcap":"⋂","bigcirc":"◯","bigcup":"⋃","bigodot":"⨀","bigoplus":"⨁","bigotimes":"⨂","bigsqcup":"⨆","bigstar":"★","bigtriangledown":"▽","bigtriangleup":"△","biguplus":"⨄","bigvee":"⋁","bigwedge":"⋀","bkarow":"⤍","blacklozenge":"⧫","blacksquare":"▪","blacktriangle":"▴","blacktriangledown":"▾","blacktriangleleft":"◂","blacktriangleright":"▸","blank":"␣","blk12":"▒","blk14":"░","blk34":"▓","block":"█","bne":"=⃥","bnequiv":"≡⃥","bNot":"⫭","bnot":"⌐","Bopf":"𝔹","bopf":"𝕓","bot":"⊥","bottom":"⊥","bowtie":"⋈","boxbox":"⧉","boxdl":"┐","boxdL":"╕","boxDl":"╖","boxDL":"╗","boxdr":"┌","boxdR":"╒","boxDr":"╓","boxDR":"╔","boxh":"─","boxH":"═","boxhd":"┬","boxHd":"╤","boxhD":"╥","boxHD":"╦","boxhu":"┴","boxHu":"╧","boxhU":"╨","boxHU":"╩","boxminus":"⊟","boxplus":"⊞","boxtimes":"⊠","boxul":"┘","boxuL":"╛","boxUl":"╜","boxUL":"╝","boxur":"└","boxuR":"╘","boxUr":"╙","boxUR":"╚","boxv":"│","boxV":"║","boxvh":"┼","boxvH":"╪","boxVh":"╫","boxVH":"╬","boxvl":"┤","boxvL":"╡","boxVl":"╢","boxVL":"╣","boxvr":"├","boxvR":"╞","boxVr":"╟","boxVR":"╠","bprime":"‵","breve":"˘","Breve":"˘","brvbar":"¦","bscr":"𝒷","Bscr":"ℬ","bsemi":"⁏","bsim":"∽","bsime":"⋍","bsolb":"⧅","bsol":"\\\\","bsolhsub":"⟈","bull":"•","bullet":"•","bump":"≎","bumpE":"⪮","bumpe":"≏","Bumpeq":"≎","bumpeq":"≏","Cacute":"Ć","cacute":"ć","capand":"⩄","capbrcup":"⩉","capcap":"⩋","cap":"∩","Cap":"⋒","capcup":"⩇","capdot":"⩀","CapitalDifferentialD":"ⅅ","caps":"∩︀","caret":"⁁","caron":"ˇ","Cayleys":"ℭ","ccaps":"⩍","Ccaron":"Č","ccaron":"č","Ccedil":"Ç","ccedil":"ç","Ccirc":"Ĉ","ccirc":"ĉ","Cconint":"∰","ccups":"⩌","ccupssm":"⩐","Cdot":"Ċ","cdot":"ċ","cedil":"¸","Cedilla":"¸","cemptyv":"⦲","cent":"¢","centerdot":"·","CenterDot":"·","cfr":"𝔠","Cfr":"ℭ","CHcy":"Ч","chcy":"ч","check":"✓","checkmark":"✓","Chi":"Χ","chi":"χ","circ":"ˆ","circeq":"≗","circlearrowleft":"↺","circlearrowright":"↻","circledast":"⊛","circledcirc":"⊚","circleddash":"⊝","CircleDot":"⊙","circledR":"®","circledS":"Ⓢ","CircleMinus":"⊖","CirclePlus":"⊕","CircleTimes":"⊗","cir":"○","cirE":"⧃","cire":"≗","cirfnint":"⨐","cirmid":"⫯","cirscir":"⧂","ClockwiseContourIntegral":"∲","CloseCurlyDoubleQuote":"”","CloseCurlyQuote":"’","clubs":"♣","clubsuit":"♣","colon":":","Colon":"∷","Colone":"⩴","colone":"≔","coloneq":"≔","comma":",","commat":"@","comp":"∁","compfn":"∘","complement":"∁","complexes":"ℂ","cong":"≅","congdot":"⩭","Congruent":"≡","conint":"∮","Conint":"∯","ContourIntegral":"∮","copf":"𝕔","Copf":"ℂ","coprod":"∐","Coproduct":"∐","copy":"©","COPY":"©","copysr":"℗","CounterClockwiseContourIntegral":"∳","crarr":"↵","cross":"✗","Cross":"⨯","Cscr":"𝒞","cscr":"𝒸","csub":"⫏","csube":"⫑","csup":"⫐","csupe":"⫒","ctdot":"⋯","cudarrl":"⤸","cudarrr":"⤵","cuepr":"⋞","cuesc":"⋟","cularr":"↶","cularrp":"⤽","cupbrcap":"⩈","cupcap":"⩆","CupCap":"≍","cup":"∪","Cup":"⋓","cupcup":"⩊","cupdot":"⊍","cupor":"⩅","cups":"∪︀","curarr":"↷","curarrm":"⤼","curlyeqprec":"⋞","curlyeqsucc":"⋟","curlyvee":"⋎","curlywedge":"⋏","curren":"¤","curvearrowleft":"↶","curvearrowright":"↷","cuvee":"⋎","cuwed":"⋏","cwconint":"∲","cwint":"∱","cylcty":"⌭","dagger":"†","Dagger":"‡","daleth":"ℸ","darr":"↓","Darr":"↡","dArr":"⇓","dash":"‐","Dashv":"⫤","dashv":"⊣","dbkarow":"⤏","dblac":"˝","Dcaron":"Ď","dcaron":"ď","Dcy":"Д","dcy":"д","ddagger":"‡","ddarr":"⇊","DD":"ⅅ","dd":"ⅆ","DDotrahd":"⤑","ddotseq":"⩷","deg":"°","Del":"∇","Delta":"Δ","delta":"δ","demptyv":"⦱","dfisht":"⥿","Dfr":"𝔇","dfr":"𝔡","dHar":"⥥","dharl":"⇃","dharr":"⇂","DiacriticalAcute":"´","DiacriticalDot":"˙","DiacriticalDoubleAcute":"˝","DiacriticalGrave":"`","DiacriticalTilde":"˜","diam":"⋄","diamond":"⋄","Diamond":"⋄","diamondsuit":"♦","diams":"♦","die":"¨","DifferentialD":"ⅆ","digamma":"ϝ","disin":"⋲","div":"÷","divide":"÷","divideontimes":"⋇","divonx":"⋇","DJcy":"Ђ","djcy":"ђ","dlcorn":"⌞","dlcrop":"⌍","dollar":"$","Dopf":"𝔻","dopf":"𝕕","Dot":"¨","dot":"˙","DotDot":"⃜","doteq":"≐","doteqdot":"≑","DotEqual":"≐","dotminus":"∸","dotplus":"∔","dotsquare":"⊡","doublebarwedge":"⌆","DoubleContourIntegral":"∯","DoubleDot":"¨","DoubleDownArrow":"⇓","DoubleLeftArrow":"⇐","DoubleLeftRightArrow":"⇔","DoubleLeftTee":"⫤","DoubleLongLeftArrow":"⟸","DoubleLongLeftRightArrow":"⟺","DoubleLongRightArrow":"⟹","DoubleRightArrow":"⇒","DoubleRightTee":"⊨","DoubleUpArrow":"⇑","DoubleUpDownArrow":"⇕","DoubleVerticalBar":"∥","DownArrowBar":"⤓","downarrow":"↓","DownArrow":"↓","Downarrow":"⇓","DownArrowUpArrow":"⇵","DownBreve":"̑","downdownarrows":"⇊","downharpoonleft":"⇃","downharpoonright":"⇂","DownLeftRightVector":"⥐","DownLeftTeeVector":"⥞","DownLeftVectorBar":"⥖","DownLeftVector":"↽","DownRightTeeVector":"⥟","DownRightVectorBar":"⥗","DownRightVector":"⇁","DownTeeArrow":"↧","DownTee":"⊤","drbkarow":"⤐","drcorn":"⌟","drcrop":"⌌","Dscr":"𝒟","dscr":"𝒹","DScy":"Ѕ","dscy":"ѕ","dsol":"⧶","Dstrok":"Đ","dstrok":"đ","dtdot":"⋱","dtri":"▿","dtrif":"▾","duarr":"⇵","duhar":"⥯","dwangle":"⦦","DZcy":"Џ","dzcy":"џ","dzigrarr":"⟿","Eacute":"É","eacute":"é","easter":"⩮","Ecaron":"Ě","ecaron":"ě","Ecirc":"Ê","ecirc":"ê","ecir":"≖","ecolon":"≕","Ecy":"Э","ecy":"э","eDDot":"⩷","Edot":"Ė","edot":"ė","eDot":"≑","ee":"ⅇ","efDot":"≒","Efr":"𝔈","efr":"𝔢","eg":"⪚","Egrave":"È","egrave":"è","egs":"⪖","egsdot":"⪘","el":"⪙","Element":"∈","elinters":"⏧","ell":"ℓ","els":"⪕","elsdot":"⪗","Emacr":"Ē","emacr":"ē","empty":"∅","emptyset":"∅","EmptySmallSquare":"◻","emptyv":"∅","EmptyVerySmallSquare":"▫","emsp13":" ","emsp14":" ","emsp":" ","ENG":"Ŋ","eng":"ŋ","ensp":" ","Eogon":"Ę","eogon":"ę","Eopf":"𝔼","eopf":"𝕖","epar":"⋕","eparsl":"⧣","eplus":"⩱","epsi":"ε","Epsilon":"Ε","epsilon":"ε","epsiv":"ϵ","eqcirc":"≖","eqcolon":"≕","eqsim":"≂","eqslantgtr":"⪖","eqslantless":"⪕","Equal":"⩵","equals":"=","EqualTilde":"≂","equest":"≟","Equilibrium":"⇌","equiv":"≡","equivDD":"⩸","eqvparsl":"⧥","erarr":"⥱","erDot":"≓","escr":"ℯ","Escr":"ℰ","esdot":"≐","Esim":"⩳","esim":"≂","Eta":"Η","eta":"η","ETH":"Ð","eth":"ð","Euml":"Ë","euml":"ë","euro":"€","excl":"!","exist":"∃","Exists":"∃","expectation":"ℰ","exponentiale":"ⅇ","ExponentialE":"ⅇ","fallingdotseq":"≒","Fcy":"Ф","fcy":"ф","female":"♀","ffilig":"ffi","fflig":"ff","ffllig":"ffl","Ffr":"𝔉","ffr":"𝔣","filig":"fi","FilledSmallSquare":"◼","FilledVerySmallSquare":"▪","fjlig":"fj","flat":"♭","fllig":"fl","fltns":"▱","fnof":"ƒ","Fopf":"𝔽","fopf":"𝕗","forall":"∀","ForAll":"∀","fork":"⋔","forkv":"⫙","Fouriertrf":"ℱ","fpartint":"⨍","frac12":"½","frac13":"⅓","frac14":"¼","frac15":"⅕","frac16":"⅙","frac18":"⅛","frac23":"⅔","frac25":"⅖","frac34":"¾","frac35":"⅗","frac38":"⅜","frac45":"⅘","frac56":"⅚","frac58":"⅝","frac78":"⅞","frasl":"⁄","frown":"⌢","fscr":"𝒻","Fscr":"ℱ","gacute":"ǵ","Gamma":"Γ","gamma":"γ","Gammad":"Ϝ","gammad":"ϝ","gap":"⪆","Gbreve":"Ğ","gbreve":"ğ","Gcedil":"Ģ","Gcirc":"Ĝ","gcirc":"ĝ","Gcy":"Г","gcy":"г","Gdot":"Ġ","gdot":"ġ","ge":"≥","gE":"≧","gEl":"⪌","gel":"⋛","geq":"≥","geqq":"≧","geqslant":"⩾","gescc":"⪩","ges":"⩾","gesdot":"⪀","gesdoto":"⪂","gesdotol":"⪄","gesl":"⋛︀","gesles":"⪔","Gfr":"𝔊","gfr":"𝔤","gg":"≫","Gg":"⋙","ggg":"⋙","gimel":"ℷ","GJcy":"Ѓ","gjcy":"ѓ","gla":"⪥","gl":"≷","glE":"⪒","glj":"⪤","gnap":"⪊","gnapprox":"⪊","gne":"⪈","gnE":"≩","gneq":"⪈","gneqq":"≩","gnsim":"⋧","Gopf":"𝔾","gopf":"𝕘","grave":"`","GreaterEqual":"≥","GreaterEqualLess":"⋛","GreaterFullEqual":"≧","GreaterGreater":"⪢","GreaterLess":"≷","GreaterSlantEqual":"⩾","GreaterTilde":"≳","Gscr":"𝒢","gscr":"ℊ","gsim":"≳","gsime":"⪎","gsiml":"⪐","gtcc":"⪧","gtcir":"⩺","gt":">","GT":">","Gt":"≫","gtdot":"⋗","gtlPar":"⦕","gtquest":"⩼","gtrapprox":"⪆","gtrarr":"⥸","gtrdot":"⋗","gtreqless":"⋛","gtreqqless":"⪌","gtrless":"≷","gtrsim":"≳","gvertneqq":"≩︀","gvnE":"≩︀","Hacek":"ˇ","hairsp":" ","half":"½","hamilt":"ℋ","HARDcy":"Ъ","hardcy":"ъ","harrcir":"⥈","harr":"↔","hArr":"⇔","harrw":"↭","Hat":"^","hbar":"ℏ","Hcirc":"Ĥ","hcirc":"ĥ","hearts":"♥","heartsuit":"♥","hellip":"…","hercon":"⊹","hfr":"𝔥","Hfr":"ℌ","HilbertSpace":"ℋ","hksearow":"⤥","hkswarow":"⤦","hoarr":"⇿","homtht":"∻","hookleftarrow":"↩","hookrightarrow":"↪","hopf":"𝕙","Hopf":"ℍ","horbar":"―","HorizontalLine":"─","hscr":"𝒽","Hscr":"ℋ","hslash":"ℏ","Hstrok":"Ħ","hstrok":"ħ","HumpDownHump":"≎","HumpEqual":"≏","hybull":"⁃","hyphen":"‐","Iacute":"Í","iacute":"í","ic":"⁣","Icirc":"Î","icirc":"î","Icy":"И","icy":"и","Idot":"İ","IEcy":"Е","iecy":"е","iexcl":"¡","iff":"⇔","ifr":"𝔦","Ifr":"ℑ","Igrave":"Ì","igrave":"ì","ii":"ⅈ","iiiint":"⨌","iiint":"∭","iinfin":"⧜","iiota":"℩","IJlig":"IJ","ijlig":"ij","Imacr":"Ī","imacr":"ī","image":"ℑ","ImaginaryI":"ⅈ","imagline":"ℐ","imagpart":"ℑ","imath":"ı","Im":"ℑ","imof":"⊷","imped":"Ƶ","Implies":"⇒","incare":"℅","in":"∈","infin":"∞","infintie":"⧝","inodot":"ı","intcal":"⊺","int":"∫","Int":"∬","integers":"ℤ","Integral":"∫","intercal":"⊺","Intersection":"⋂","intlarhk":"⨗","intprod":"⨼","InvisibleComma":"⁣","InvisibleTimes":"⁢","IOcy":"Ё","iocy":"ё","Iogon":"Į","iogon":"į","Iopf":"𝕀","iopf":"𝕚","Iota":"Ι","iota":"ι","iprod":"⨼","iquest":"¿","iscr":"𝒾","Iscr":"ℐ","isin":"∈","isindot":"⋵","isinE":"⋹","isins":"⋴","isinsv":"⋳","isinv":"∈","it":"⁢","Itilde":"Ĩ","itilde":"ĩ","Iukcy":"І","iukcy":"і","Iuml":"Ï","iuml":"ï","Jcirc":"Ĵ","jcirc":"ĵ","Jcy":"Й","jcy":"й","Jfr":"𝔍","jfr":"𝔧","jmath":"ȷ","Jopf":"𝕁","jopf":"𝕛","Jscr":"𝒥","jscr":"𝒿","Jsercy":"Ј","jsercy":"ј","Jukcy":"Є","jukcy":"є","Kappa":"Κ","kappa":"κ","kappav":"ϰ","Kcedil":"Ķ","kcedil":"ķ","Kcy":"К","kcy":"к","Kfr":"𝔎","kfr":"𝔨","kgreen":"ĸ","KHcy":"Х","khcy":"х","KJcy":"Ќ","kjcy":"ќ","Kopf":"𝕂","kopf":"𝕜","Kscr":"𝒦","kscr":"𝓀","lAarr":"⇚","Lacute":"Ĺ","lacute":"ĺ","laemptyv":"⦴","lagran":"ℒ","Lambda":"Λ","lambda":"λ","lang":"⟨","Lang":"⟪","langd":"⦑","langle":"⟨","lap":"⪅","Laplacetrf":"ℒ","laquo":"«","larrb":"⇤","larrbfs":"⤟","larr":"←","Larr":"↞","lArr":"⇐","larrfs":"⤝","larrhk":"↩","larrlp":"↫","larrpl":"⤹","larrsim":"⥳","larrtl":"↢","latail":"⤙","lAtail":"⤛","lat":"⪫","late":"⪭","lates":"⪭︀","lbarr":"⤌","lBarr":"⤎","lbbrk":"❲","lbrace":"{","lbrack":"[","lbrke":"⦋","lbrksld":"⦏","lbrkslu":"⦍","Lcaron":"Ľ","lcaron":"ľ","Lcedil":"Ļ","lcedil":"ļ","lceil":"⌈","lcub":"{","Lcy":"Л","lcy":"л","ldca":"⤶","ldquo":"“","ldquor":"„","ldrdhar":"⥧","ldrushar":"⥋","ldsh":"↲","le":"≤","lE":"≦","LeftAngleBracket":"⟨","LeftArrowBar":"⇤","leftarrow":"←","LeftArrow":"←","Leftarrow":"⇐","LeftArrowRightArrow":"⇆","leftarrowtail":"↢","LeftCeiling":"⌈","LeftDoubleBracket":"⟦","LeftDownTeeVector":"⥡","LeftDownVectorBar":"⥙","LeftDownVector":"⇃","LeftFloor":"⌊","leftharpoondown":"↽","leftharpoonup":"↼","leftleftarrows":"⇇","leftrightarrow":"↔","LeftRightArrow":"↔","Leftrightarrow":"⇔","leftrightarrows":"⇆","leftrightharpoons":"⇋","leftrightsquigarrow":"↭","LeftRightVector":"⥎","LeftTeeArrow":"↤","LeftTee":"⊣","LeftTeeVector":"⥚","leftthreetimes":"⋋","LeftTriangleBar":"⧏","LeftTriangle":"⊲","LeftTriangleEqual":"⊴","LeftUpDownVector":"⥑","LeftUpTeeVector":"⥠","LeftUpVectorBar":"⥘","LeftUpVector":"↿","LeftVectorBar":"⥒","LeftVector":"↼","lEg":"⪋","leg":"⋚","leq":"≤","leqq":"≦","leqslant":"⩽","lescc":"⪨","les":"⩽","lesdot":"⩿","lesdoto":"⪁","lesdotor":"⪃","lesg":"⋚︀","lesges":"⪓","lessapprox":"⪅","lessdot":"⋖","lesseqgtr":"⋚","lesseqqgtr":"⪋","LessEqualGreater":"⋚","LessFullEqual":"≦","LessGreater":"≶","lessgtr":"≶","LessLess":"⪡","lesssim":"≲","LessSlantEqual":"⩽","LessTilde":"≲","lfisht":"⥼","lfloor":"⌊","Lfr":"𝔏","lfr":"𝔩","lg":"≶","lgE":"⪑","lHar":"⥢","lhard":"↽","lharu":"↼","lharul":"⥪","lhblk":"▄","LJcy":"Љ","ljcy":"љ","llarr":"⇇","ll":"≪","Ll":"⋘","llcorner":"⌞","Lleftarrow":"⇚","llhard":"⥫","lltri":"◺","Lmidot":"Ŀ","lmidot":"ŀ","lmoustache":"⎰","lmoust":"⎰","lnap":"⪉","lnapprox":"⪉","lne":"⪇","lnE":"≨","lneq":"⪇","lneqq":"≨","lnsim":"⋦","loang":"⟬","loarr":"⇽","lobrk":"⟦","longleftarrow":"⟵","LongLeftArrow":"⟵","Longleftarrow":"⟸","longleftrightarrow":"⟷","LongLeftRightArrow":"⟷","Longleftrightarrow":"⟺","longmapsto":"⟼","longrightarrow":"⟶","LongRightArrow":"⟶","Longrightarrow":"⟹","looparrowleft":"↫","looparrowright":"↬","lopar":"⦅","Lopf":"𝕃","lopf":"𝕝","loplus":"⨭","lotimes":"⨴","lowast":"∗","lowbar":"_","LowerLeftArrow":"↙","LowerRightArrow":"↘","loz":"◊","lozenge":"◊","lozf":"⧫","lpar":"(","lparlt":"⦓","lrarr":"⇆","lrcorner":"⌟","lrhar":"⇋","lrhard":"⥭","lrm":"‎","lrtri":"⊿","lsaquo":"‹","lscr":"𝓁","Lscr":"ℒ","lsh":"↰","Lsh":"↰","lsim":"≲","lsime":"⪍","lsimg":"⪏","lsqb":"[","lsquo":"‘","lsquor":"‚","Lstrok":"Ł","lstrok":"ł","ltcc":"⪦","ltcir":"⩹","lt":"<","LT":"<","Lt":"≪","ltdot":"⋖","lthree":"⋋","ltimes":"⋉","ltlarr":"⥶","ltquest":"⩻","ltri":"◃","ltrie":"⊴","ltrif":"◂","ltrPar":"⦖","lurdshar":"⥊","luruhar":"⥦","lvertneqq":"≨︀","lvnE":"≨︀","macr":"¯","male":"♂","malt":"✠","maltese":"✠","Map":"⤅","map":"↦","mapsto":"↦","mapstodown":"↧","mapstoleft":"↤","mapstoup":"↥","marker":"▮","mcomma":"⨩","Mcy":"М","mcy":"м","mdash":"—","mDDot":"∺","measuredangle":"∡","MediumSpace":" ","Mellintrf":"ℳ","Mfr":"𝔐","mfr":"𝔪","mho":"℧","micro":"µ","midast":"*","midcir":"⫰","mid":"∣","middot":"·","minusb":"⊟","minus":"−","minusd":"∸","minusdu":"⨪","MinusPlus":"∓","mlcp":"⫛","mldr":"…","mnplus":"∓","models":"⊧","Mopf":"𝕄","mopf":"𝕞","mp":"∓","mscr":"𝓂","Mscr":"ℳ","mstpos":"∾","Mu":"Μ","mu":"μ","multimap":"⊸","mumap":"⊸","nabla":"∇","Nacute":"Ń","nacute":"ń","nang":"∠⃒","nap":"≉","napE":"⩰̸","napid":"≋̸","napos":"ʼn","napprox":"≉","natural":"♮","naturals":"ℕ","natur":"♮","nbsp":" ","nbump":"≎̸","nbumpe":"≏̸","ncap":"⩃","Ncaron":"Ň","ncaron":"ň","Ncedil":"Ņ","ncedil":"ņ","ncong":"≇","ncongdot":"⩭̸","ncup":"⩂","Ncy":"Н","ncy":"н","ndash":"–","nearhk":"⤤","nearr":"↗","neArr":"⇗","nearrow":"↗","ne":"≠","nedot":"≐̸","NegativeMediumSpace":"​","NegativeThickSpace":"​","NegativeThinSpace":"​","NegativeVeryThinSpace":"​","nequiv":"≢","nesear":"⤨","nesim":"≂̸","NestedGreaterGreater":"≫","NestedLessLess":"≪","NewLine":"\\n","nexist":"∄","nexists":"∄","Nfr":"𝔑","nfr":"𝔫","ngE":"≧̸","nge":"≱","ngeq":"≱","ngeqq":"≧̸","ngeqslant":"⩾̸","nges":"⩾̸","nGg":"⋙̸","ngsim":"≵","nGt":"≫⃒","ngt":"≯","ngtr":"≯","nGtv":"≫̸","nharr":"↮","nhArr":"⇎","nhpar":"⫲","ni":"∋","nis":"⋼","nisd":"⋺","niv":"∋","NJcy":"Њ","njcy":"њ","nlarr":"↚","nlArr":"⇍","nldr":"‥","nlE":"≦̸","nle":"≰","nleftarrow":"↚","nLeftarrow":"⇍","nleftrightarrow":"↮","nLeftrightarrow":"⇎","nleq":"≰","nleqq":"≦̸","nleqslant":"⩽̸","nles":"⩽̸","nless":"≮","nLl":"⋘̸","nlsim":"≴","nLt":"≪⃒","nlt":"≮","nltri":"⋪","nltrie":"⋬","nLtv":"≪̸","nmid":"∤","NoBreak":"⁠","NonBreakingSpace":" ","nopf":"𝕟","Nopf":"ℕ","Not":"⫬","not":"¬","NotCongruent":"≢","NotCupCap":"≭","NotDoubleVerticalBar":"∦","NotElement":"∉","NotEqual":"≠","NotEqualTilde":"≂̸","NotExists":"∄","NotGreater":"≯","NotGreaterEqual":"≱","NotGreaterFullEqual":"≧̸","NotGreaterGreater":"≫̸","NotGreaterLess":"≹","NotGreaterSlantEqual":"⩾̸","NotGreaterTilde":"≵","NotHumpDownHump":"≎̸","NotHumpEqual":"≏̸","notin":"∉","notindot":"⋵̸","notinE":"⋹̸","notinva":"∉","notinvb":"⋷","notinvc":"⋶","NotLeftTriangleBar":"⧏̸","NotLeftTriangle":"⋪","NotLeftTriangleEqual":"⋬","NotLess":"≮","NotLessEqual":"≰","NotLessGreater":"≸","NotLessLess":"≪̸","NotLessSlantEqual":"⩽̸","NotLessTilde":"≴","NotNestedGreaterGreater":"⪢̸","NotNestedLessLess":"⪡̸","notni":"∌","notniva":"∌","notnivb":"⋾","notnivc":"⋽","NotPrecedes":"⊀","NotPrecedesEqual":"⪯̸","NotPrecedesSlantEqual":"⋠","NotReverseElement":"∌","NotRightTriangleBar":"⧐̸","NotRightTriangle":"⋫","NotRightTriangleEqual":"⋭","NotSquareSubset":"⊏̸","NotSquareSubsetEqual":"⋢","NotSquareSuperset":"⊐̸","NotSquareSupersetEqual":"⋣","NotSubset":"⊂⃒","NotSubsetEqual":"⊈","NotSucceeds":"⊁","NotSucceedsEqual":"⪰̸","NotSucceedsSlantEqual":"⋡","NotSucceedsTilde":"≿̸","NotSuperset":"⊃⃒","NotSupersetEqual":"⊉","NotTilde":"≁","NotTildeEqual":"≄","NotTildeFullEqual":"≇","NotTildeTilde":"≉","NotVerticalBar":"∤","nparallel":"∦","npar":"∦","nparsl":"⫽⃥","npart":"∂̸","npolint":"⨔","npr":"⊀","nprcue":"⋠","nprec":"⊀","npreceq":"⪯̸","npre":"⪯̸","nrarrc":"⤳̸","nrarr":"↛","nrArr":"⇏","nrarrw":"↝̸","nrightarrow":"↛","nRightarrow":"⇏","nrtri":"⋫","nrtrie":"⋭","nsc":"⊁","nsccue":"⋡","nsce":"⪰̸","Nscr":"𝒩","nscr":"𝓃","nshortmid":"∤","nshortparallel":"∦","nsim":"≁","nsime":"≄","nsimeq":"≄","nsmid":"∤","nspar":"∦","nsqsube":"⋢","nsqsupe":"⋣","nsub":"⊄","nsubE":"⫅̸","nsube":"⊈","nsubset":"⊂⃒","nsubseteq":"⊈","nsubseteqq":"⫅̸","nsucc":"⊁","nsucceq":"⪰̸","nsup":"⊅","nsupE":"⫆̸","nsupe":"⊉","nsupset":"⊃⃒","nsupseteq":"⊉","nsupseteqq":"⫆̸","ntgl":"≹","Ntilde":"Ñ","ntilde":"ñ","ntlg":"≸","ntriangleleft":"⋪","ntrianglelefteq":"⋬","ntriangleright":"⋫","ntrianglerighteq":"⋭","Nu":"Ν","nu":"ν","num":"#","numero":"№","numsp":" ","nvap":"≍⃒","nvdash":"⊬","nvDash":"⊭","nVdash":"⊮","nVDash":"⊯","nvge":"≥⃒","nvgt":">⃒","nvHarr":"⤄","nvinfin":"⧞","nvlArr":"⤂","nvle":"≤⃒","nvlt":"<⃒","nvltrie":"⊴⃒","nvrArr":"⤃","nvrtrie":"⊵⃒","nvsim":"∼⃒","nwarhk":"⤣","nwarr":"↖","nwArr":"⇖","nwarrow":"↖","nwnear":"⤧","Oacute":"Ó","oacute":"ó","oast":"⊛","Ocirc":"Ô","ocirc":"ô","ocir":"⊚","Ocy":"О","ocy":"о","odash":"⊝","Odblac":"Ő","odblac":"ő","odiv":"⨸","odot":"⊙","odsold":"⦼","OElig":"Œ","oelig":"œ","ofcir":"⦿","Ofr":"𝔒","ofr":"𝔬","ogon":"˛","Ograve":"Ò","ograve":"ò","ogt":"⧁","ohbar":"⦵","ohm":"Ω","oint":"∮","olarr":"↺","olcir":"⦾","olcross":"⦻","oline":"‾","olt":"⧀","Omacr":"Ō","omacr":"ō","Omega":"Ω","omega":"ω","Omicron":"Ο","omicron":"ο","omid":"⦶","ominus":"⊖","Oopf":"𝕆","oopf":"𝕠","opar":"⦷","OpenCurlyDoubleQuote":"“","OpenCurlyQuote":"‘","operp":"⦹","oplus":"⊕","orarr":"↻","Or":"⩔","or":"∨","ord":"⩝","order":"ℴ","orderof":"ℴ","ordf":"ª","ordm":"º","origof":"⊶","oror":"⩖","orslope":"⩗","orv":"⩛","oS":"Ⓢ","Oscr":"𝒪","oscr":"ℴ","Oslash":"Ø","oslash":"ø","osol":"⊘","Otilde":"Õ","otilde":"õ","otimesas":"⨶","Otimes":"⨷","otimes":"⊗","Ouml":"Ö","ouml":"ö","ovbar":"⌽","OverBar":"‾","OverBrace":"⏞","OverBracket":"⎴","OverParenthesis":"⏜","para":"¶","parallel":"∥","par":"∥","parsim":"⫳","parsl":"⫽","part":"∂","PartialD":"∂","Pcy":"П","pcy":"п","percnt":"%","period":".","permil":"‰","perp":"⊥","pertenk":"‱","Pfr":"𝔓","pfr":"𝔭","Phi":"Φ","phi":"φ","phiv":"ϕ","phmmat":"ℳ","phone":"☎","Pi":"Π","pi":"π","pitchfork":"⋔","piv":"ϖ","planck":"ℏ","planckh":"ℎ","plankv":"ℏ","plusacir":"⨣","plusb":"⊞","pluscir":"⨢","plus":"+","plusdo":"∔","plusdu":"⨥","pluse":"⩲","PlusMinus":"±","plusmn":"±","plussim":"⨦","plustwo":"⨧","pm":"±","Poincareplane":"ℌ","pointint":"⨕","popf":"𝕡","Popf":"ℙ","pound":"£","prap":"⪷","Pr":"⪻","pr":"≺","prcue":"≼","precapprox":"⪷","prec":"≺","preccurlyeq":"≼","Precedes":"≺","PrecedesEqual":"⪯","PrecedesSlantEqual":"≼","PrecedesTilde":"≾","preceq":"⪯","precnapprox":"⪹","precneqq":"⪵","precnsim":"⋨","pre":"⪯","prE":"⪳","precsim":"≾","prime":"′","Prime":"″","primes":"ℙ","prnap":"⪹","prnE":"⪵","prnsim":"⋨","prod":"∏","Product":"∏","profalar":"⌮","profline":"⌒","profsurf":"⌓","prop":"∝","Proportional":"∝","Proportion":"∷","propto":"∝","prsim":"≾","prurel":"⊰","Pscr":"𝒫","pscr":"𝓅","Psi":"Ψ","psi":"ψ","puncsp":" ","Qfr":"𝔔","qfr":"𝔮","qint":"⨌","qopf":"𝕢","Qopf":"ℚ","qprime":"⁗","Qscr":"𝒬","qscr":"𝓆","quaternions":"ℍ","quatint":"⨖","quest":"?","questeq":"≟","quot":"\\"","QUOT":"\\"","rAarr":"⇛","race":"∽̱","Racute":"Ŕ","racute":"ŕ","radic":"√","raemptyv":"⦳","rang":"⟩","Rang":"⟫","rangd":"⦒","range":"⦥","rangle":"⟩","raquo":"»","rarrap":"⥵","rarrb":"⇥","rarrbfs":"⤠","rarrc":"⤳","rarr":"→","Rarr":"↠","rArr":"⇒","rarrfs":"⤞","rarrhk":"↪","rarrlp":"↬","rarrpl":"⥅","rarrsim":"⥴","Rarrtl":"⤖","rarrtl":"↣","rarrw":"↝","ratail":"⤚","rAtail":"⤜","ratio":"∶","rationals":"ℚ","rbarr":"⤍","rBarr":"⤏","RBarr":"⤐","rbbrk":"❳","rbrace":"}","rbrack":"]","rbrke":"⦌","rbrksld":"⦎","rbrkslu":"⦐","Rcaron":"Ř","rcaron":"ř","Rcedil":"Ŗ","rcedil":"ŗ","rceil":"⌉","rcub":"}","Rcy":"Р","rcy":"р","rdca":"⤷","rdldhar":"⥩","rdquo":"”","rdquor":"”","rdsh":"↳","real":"ℜ","realine":"ℛ","realpart":"ℜ","reals":"ℝ","Re":"ℜ","rect":"▭","reg":"®","REG":"®","ReverseElement":"∋","ReverseEquilibrium":"⇋","ReverseUpEquilibrium":"⥯","rfisht":"⥽","rfloor":"⌋","rfr":"𝔯","Rfr":"ℜ","rHar":"⥤","rhard":"⇁","rharu":"⇀","rharul":"⥬","Rho":"Ρ","rho":"ρ","rhov":"ϱ","RightAngleBracket":"⟩","RightArrowBar":"⇥","rightarrow":"→","RightArrow":"→","Rightarrow":"⇒","RightArrowLeftArrow":"⇄","rightarrowtail":"↣","RightCeiling":"⌉","RightDoubleBracket":"⟧","RightDownTeeVector":"⥝","RightDownVectorBar":"⥕","RightDownVector":"⇂","RightFloor":"⌋","rightharpoondown":"⇁","rightharpoonup":"⇀","rightleftarrows":"⇄","rightleftharpoons":"⇌","rightrightarrows":"⇉","rightsquigarrow":"↝","RightTeeArrow":"↦","RightTee":"⊢","RightTeeVector":"⥛","rightthreetimes":"⋌","RightTriangleBar":"⧐","RightTriangle":"⊳","RightTriangleEqual":"⊵","RightUpDownVector":"⥏","RightUpTeeVector":"⥜","RightUpVectorBar":"⥔","RightUpVector":"↾","RightVectorBar":"⥓","RightVector":"⇀","ring":"˚","risingdotseq":"≓","rlarr":"⇄","rlhar":"⇌","rlm":"‏","rmoustache":"⎱","rmoust":"⎱","rnmid":"⫮","roang":"⟭","roarr":"⇾","robrk":"⟧","ropar":"⦆","ropf":"𝕣","Ropf":"ℝ","roplus":"⨮","rotimes":"⨵","RoundImplies":"⥰","rpar":")","rpargt":"⦔","rppolint":"⨒","rrarr":"⇉","Rrightarrow":"⇛","rsaquo":"›","rscr":"𝓇","Rscr":"ℛ","rsh":"↱","Rsh":"↱","rsqb":"]","rsquo":"’","rsquor":"’","rthree":"⋌","rtimes":"⋊","rtri":"▹","rtrie":"⊵","rtrif":"▸","rtriltri":"⧎","RuleDelayed":"⧴","ruluhar":"⥨","rx":"℞","Sacute":"Ś","sacute":"ś","sbquo":"‚","scap":"⪸","Scaron":"Š","scaron":"š","Sc":"⪼","sc":"≻","sccue":"≽","sce":"⪰","scE":"⪴","Scedil":"Ş","scedil":"ş","Scirc":"Ŝ","scirc":"ŝ","scnap":"⪺","scnE":"⪶","scnsim":"⋩","scpolint":"⨓","scsim":"≿","Scy":"С","scy":"с","sdotb":"⊡","sdot":"⋅","sdote":"⩦","searhk":"⤥","searr":"↘","seArr":"⇘","searrow":"↘","sect":"§","semi":";","seswar":"⤩","setminus":"∖","setmn":"∖","sext":"✶","Sfr":"𝔖","sfr":"𝔰","sfrown":"⌢","sharp":"♯","SHCHcy":"Щ","shchcy":"щ","SHcy":"Ш","shcy":"ш","ShortDownArrow":"↓","ShortLeftArrow":"←","shortmid":"∣","shortparallel":"∥","ShortRightArrow":"→","ShortUpArrow":"↑","shy":"­","Sigma":"Σ","sigma":"σ","sigmaf":"ς","sigmav":"ς","sim":"∼","simdot":"⩪","sime":"≃","simeq":"≃","simg":"⪞","simgE":"⪠","siml":"⪝","simlE":"⪟","simne":"≆","simplus":"⨤","simrarr":"⥲","slarr":"←","SmallCircle":"∘","smallsetminus":"∖","smashp":"⨳","smeparsl":"⧤","smid":"∣","smile":"⌣","smt":"⪪","smte":"⪬","smtes":"⪬︀","SOFTcy":"Ь","softcy":"ь","solbar":"⌿","solb":"⧄","sol":"/","Sopf":"𝕊","sopf":"𝕤","spades":"♠","spadesuit":"♠","spar":"∥","sqcap":"⊓","sqcaps":"⊓︀","sqcup":"⊔","sqcups":"⊔︀","Sqrt":"√","sqsub":"⊏","sqsube":"⊑","sqsubset":"⊏","sqsubseteq":"⊑","sqsup":"⊐","sqsupe":"⊒","sqsupset":"⊐","sqsupseteq":"⊒","square":"□","Square":"□","SquareIntersection":"⊓","SquareSubset":"⊏","SquareSubsetEqual":"⊑","SquareSuperset":"⊐","SquareSupersetEqual":"⊒","SquareUnion":"⊔","squarf":"▪","squ":"□","squf":"▪","srarr":"→","Sscr":"𝒮","sscr":"𝓈","ssetmn":"∖","ssmile":"⌣","sstarf":"⋆","Star":"⋆","star":"☆","starf":"★","straightepsilon":"ϵ","straightphi":"ϕ","strns":"¯","sub":"⊂","Sub":"⋐","subdot":"⪽","subE":"⫅","sube":"⊆","subedot":"⫃","submult":"⫁","subnE":"⫋","subne":"⊊","subplus":"⪿","subrarr":"⥹","subset":"⊂","Subset":"⋐","subseteq":"⊆","subseteqq":"⫅","SubsetEqual":"⊆","subsetneq":"⊊","subsetneqq":"⫋","subsim":"⫇","subsub":"⫕","subsup":"⫓","succapprox":"⪸","succ":"≻","succcurlyeq":"≽","Succeeds":"≻","SucceedsEqual":"⪰","SucceedsSlantEqual":"≽","SucceedsTilde":"≿","succeq":"⪰","succnapprox":"⪺","succneqq":"⪶","succnsim":"⋩","succsim":"≿","SuchThat":"∋","sum":"∑","Sum":"∑","sung":"♪","sup1":"¹","sup2":"²","sup3":"³","sup":"⊃","Sup":"⋑","supdot":"⪾","supdsub":"⫘","supE":"⫆","supe":"⊇","supedot":"⫄","Superset":"⊃","SupersetEqual":"⊇","suphsol":"⟉","suphsub":"⫗","suplarr":"⥻","supmult":"⫂","supnE":"⫌","supne":"⊋","supplus":"⫀","supset":"⊃","Supset":"⋑","supseteq":"⊇","supseteqq":"⫆","supsetneq":"⊋","supsetneqq":"⫌","supsim":"⫈","supsub":"⫔","supsup":"⫖","swarhk":"⤦","swarr":"↙","swArr":"⇙","swarrow":"↙","swnwar":"⤪","szlig":"ß","Tab":"\\t","target":"⌖","Tau":"Τ","tau":"τ","tbrk":"⎴","Tcaron":"Ť","tcaron":"ť","Tcedil":"Ţ","tcedil":"ţ","Tcy":"Т","tcy":"т","tdot":"⃛","telrec":"⌕","Tfr":"𝔗","tfr":"𝔱","there4":"∴","therefore":"∴","Therefore":"∴","Theta":"Θ","theta":"θ","thetasym":"ϑ","thetav":"ϑ","thickapprox":"≈","thicksim":"∼","ThickSpace":"  ","ThinSpace":" ","thinsp":" ","thkap":"≈","thksim":"∼","THORN":"Þ","thorn":"þ","tilde":"˜","Tilde":"∼","TildeEqual":"≃","TildeFullEqual":"≅","TildeTilde":"≈","timesbar":"⨱","timesb":"⊠","times":"×","timesd":"⨰","tint":"∭","toea":"⤨","topbot":"⌶","topcir":"⫱","top":"⊤","Topf":"𝕋","topf":"𝕥","topfork":"⫚","tosa":"⤩","tprime":"‴","trade":"™","TRADE":"™","triangle":"▵","triangledown":"▿","triangleleft":"◃","trianglelefteq":"⊴","triangleq":"≜","triangleright":"▹","trianglerighteq":"⊵","tridot":"◬","trie":"≜","triminus":"⨺","TripleDot":"⃛","triplus":"⨹","trisb":"⧍","tritime":"⨻","trpezium":"⏢","Tscr":"𝒯","tscr":"𝓉","TScy":"Ц","tscy":"ц","TSHcy":"Ћ","tshcy":"ћ","Tstrok":"Ŧ","tstrok":"ŧ","twixt":"≬","twoheadleftarrow":"↞","twoheadrightarrow":"↠","Uacute":"Ú","uacute":"ú","uarr":"↑","Uarr":"↟","uArr":"⇑","Uarrocir":"⥉","Ubrcy":"Ў","ubrcy":"ў","Ubreve":"Ŭ","ubreve":"ŭ","Ucirc":"Û","ucirc":"û","Ucy":"У","ucy":"у","udarr":"⇅","Udblac":"Ű","udblac":"ű","udhar":"⥮","ufisht":"⥾","Ufr":"𝔘","ufr":"𝔲","Ugrave":"Ù","ugrave":"ù","uHar":"⥣","uharl":"↿","uharr":"↾","uhblk":"▀","ulcorn":"⌜","ulcorner":"⌜","ulcrop":"⌏","ultri":"◸","Umacr":"Ū","umacr":"ū","uml":"¨","UnderBar":"_","UnderBrace":"⏟","UnderBracket":"⎵","UnderParenthesis":"⏝","Union":"⋃","UnionPlus":"⊎","Uogon":"Ų","uogon":"ų","Uopf":"𝕌","uopf":"𝕦","UpArrowBar":"⤒","uparrow":"↑","UpArrow":"↑","Uparrow":"⇑","UpArrowDownArrow":"⇅","updownarrow":"↕","UpDownArrow":"↕","Updownarrow":"⇕","UpEquilibrium":"⥮","upharpoonleft":"↿","upharpoonright":"↾","uplus":"⊎","UpperLeftArrow":"↖","UpperRightArrow":"↗","upsi":"υ","Upsi":"ϒ","upsih":"ϒ","Upsilon":"Υ","upsilon":"υ","UpTeeArrow":"↥","UpTee":"⊥","upuparrows":"⇈","urcorn":"⌝","urcorner":"⌝","urcrop":"⌎","Uring":"Ů","uring":"ů","urtri":"◹","Uscr":"𝒰","uscr":"𝓊","utdot":"⋰","Utilde":"Ũ","utilde":"ũ","utri":"▵","utrif":"▴","uuarr":"⇈","Uuml":"Ü","uuml":"ü","uwangle":"⦧","vangrt":"⦜","varepsilon":"ϵ","varkappa":"ϰ","varnothing":"∅","varphi":"ϕ","varpi":"ϖ","varpropto":"∝","varr":"↕","vArr":"⇕","varrho":"ϱ","varsigma":"ς","varsubsetneq":"⊊︀","varsubsetneqq":"⫋︀","varsupsetneq":"⊋︀","varsupsetneqq":"⫌︀","vartheta":"ϑ","vartriangleleft":"⊲","vartriangleright":"⊳","vBar":"⫨","Vbar":"⫫","vBarv":"⫩","Vcy":"В","vcy":"в","vdash":"⊢","vDash":"⊨","Vdash":"⊩","VDash":"⊫","Vdashl":"⫦","veebar":"⊻","vee":"∨","Vee":"⋁","veeeq":"≚","vellip":"⋮","verbar":"|","Verbar":"‖","vert":"|","Vert":"‖","VerticalBar":"∣","VerticalLine":"|","VerticalSeparator":"❘","VerticalTilde":"≀","VeryThinSpace":" ","Vfr":"𝔙","vfr":"𝔳","vltri":"⊲","vnsub":"⊂⃒","vnsup":"⊃⃒","Vopf":"𝕍","vopf":"𝕧","vprop":"∝","vrtri":"⊳","Vscr":"𝒱","vscr":"𝓋","vsubnE":"⫋︀","vsubne":"⊊︀","vsupnE":"⫌︀","vsupne":"⊋︀","Vvdash":"⊪","vzigzag":"⦚","Wcirc":"Ŵ","wcirc":"ŵ","wedbar":"⩟","wedge":"∧","Wedge":"⋀","wedgeq":"≙","weierp":"℘","Wfr":"𝔚","wfr":"𝔴","Wopf":"𝕎","wopf":"𝕨","wp":"℘","wr":"≀","wreath":"≀","Wscr":"𝒲","wscr":"𝓌","xcap":"⋂","xcirc":"◯","xcup":"⋃","xdtri":"▽","Xfr":"𝔛","xfr":"𝔵","xharr":"⟷","xhArr":"⟺","Xi":"Ξ","xi":"ξ","xlarr":"⟵","xlArr":"⟸","xmap":"⟼","xnis":"⋻","xodot":"⨀","Xopf":"𝕏","xopf":"𝕩","xoplus":"⨁","xotime":"⨂","xrarr":"⟶","xrArr":"⟹","Xscr":"𝒳","xscr":"𝓍","xsqcup":"⨆","xuplus":"⨄","xutri":"△","xvee":"⋁","xwedge":"⋀","Yacute":"Ý","yacute":"ý","YAcy":"Я","yacy":"я","Ycirc":"Ŷ","ycirc":"ŷ","Ycy":"Ы","ycy":"ы","yen":"¥","Yfr":"𝔜","yfr":"𝔶","YIcy":"Ї","yicy":"ї","Yopf":"𝕐","yopf":"𝕪","Yscr":"𝒴","yscr":"𝓎","YUcy":"Ю","yucy":"ю","yuml":"ÿ","Yuml":"Ÿ","Zacute":"Ź","zacute":"ź","Zcaron":"Ž","zcaron":"ž","Zcy":"З","zcy":"з","Zdot":"Ż","zdot":"ż","zeetrf":"ℨ","ZeroWidthSpace":"​","Zeta":"Ζ","zeta":"ζ","zfr":"𝔷","Zfr":"ℨ","ZHcy":"Ж","zhcy":"ж","zigrarr":"⇝","zopf":"𝕫","Zopf":"ℤ","Zscr":"𝒵","zscr":"𝓏","zwj":"‍","zwnj":"‌"}')},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,a){},function(e,t,a){"use strict";a(15);var r=a(157),n=a(20);a(5),a(11),a(6),a(16),a(137),a(10),a(4),a(22),a(23),a(17),a(7),a(110),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var l=n(a(315)),u=n(a(61)),o=n(a(36)),i=n(a(37)),c=n(a(55)),s=n(a(56)),f=n(a(51));a(45),a(5),a(11),a(6),a(42),a(16),a(137),a(10),a(4),a(22),a(23),a(57),a(17),a(7),a(110);var d=r(a(0)),p=n(a(1)),m=n(a(3)),h=n(a(455)),v=n(a(2447)),g=n(a(2448)),y=n(a(2449));function E(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,f.default)(e);if(t){var n=(0,f.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,s.default)(this,a)}}var b=+new Date,_=0;function O(){return _+=1,"upload-".concat(b,"-").concat(_)}var S=function(e){(0,c.default)(a,e);var t=E(a);function a(){var e;(0,o.default)(this,a);for(var r=arguments.length,n=new Array(r),l=0;l0&&(t.percent=t.loaded/t.total*100),e.onProgress(t)});var a=new FormData;e.action=(0,r.getClusterUrl)(e.action),e.data&&Object.keys(e.data).forEach((function(t){a.append(t,e.data[t])}));a.append(e.filename,e.file),t.onerror=function(t){e.onError(t)},t.onload=function(){return t.status<200||t.status>=300?e.onError(function(e,t){var a="cannot post ".concat(e.action," ").concat(t.status,"'"),r=new Error(a);return r.status=t.status,r.method=e.method||"post",r.url=e.action,r}(e,t),n(t)):e.onSuccess(n(t),t)},t.open(e.method||"post",e.action,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);var l=e.headers||{};null!==l["X-Requested-With"]&&t.setRequestHeader("X-Requested-With","XMLHttpRequest");return Object.keys(l).forEach((function(e){t.setRequestHeader(e,l[e])})),t.send(a),{abort:function(){t.abort()}}},a(249),a(45),a(5),a(6),a(10),a(4),a(7);var r=a(52);function n(e){var t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch(e){return t}}},function(e,t,a){"use strict";a(15),a(86),a(97),a(16),a(24),a(64),a(136),a(818),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(86),a(160),a(97),a(16),a(4),a(24),a(193),a(64),a(818);t.default=function(e,t){if(e&&t){var a=Array.isArray(t)?t:t.split(","),r=e.name||"",n=e.type||"",l=n.replace(/\/.*$/,"");return a.some((function(e){var t,a,u=e.trim();return"."===u.charAt(0)?(t=r.toLowerCase(),a=u.toLowerCase(),-1!==t.indexOf(a,t.length-a.length)):/\/\*$/.test(u)?l===u.replace(/\/.*$/,""):n===u}))}return!0}},function(e,t,a){"use strict";a(15),a(5),a(6),a(16),a(7),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(5),a(6),a(16),a(4),a(7);var r=function(e,t,a){e.forEach((function(e){!function e(r,n){var l=n||"";if(r.isFile)r.file((function(e){a(e)&&t([e])}));else if(r.isDirectory){r.createReader().readEntries((function(t){t.forEach((function(t){e(t,"".concat(l).concat(r.name,"/"))}))}))}}(e.webkitGetAsEntry())}))};t.default=r},function(e,t,a){e.exports={container:"_28BAmUGayFPM7JPE5ubfRp",main_content:"_1nTOsD4LTy3JlMGPNyiH0J",controls:"_2iPsaoM6EKU-FKuFY19BPD",control:"_1Xce9RPORg_gvSJP9dstQ7","slider-wrapper":"VqFyTMdMnsEe-jAXhPkUB",normalSize:"_5KdmZqhOGtr0WGcmPF5R6",autoSize:"_2jsPFnKjZk2yDubgG_LTD2"}},function(e,t,a){e.exports={wrapper:"_2RXdRDDKaZIoVt_M4ZZKDH",card:"JoB_eaeo3gO3tgu15IdFJ",in:"_30Fhe_GMY_jqljFuBk6iPM",browseIn:"_27cK2SUAg9oL3KeZuQlc8I",out:"_3W6MlUSLX72EkOU9mwhqK9",browseOut:"_3_bxeu1laeJFbz1qe6hjOv",cardMain:"jApufF3_7WJgOAwNKdKLl",cardFoot:"_2MjC_tFWfTzr148xdbNYYP",title:"_3DuG8hhj8DMeFyPQ359a4Z",content:"_37wH-4L-J3wTYb3a17S4IK"}},function(e,t,a){e.exports={wrapper:"yZFq2sW492FUplIaCVLcA",title:"_2RF_2vkCUj5FRXMCT--OiK",panel:"_3GG4TSSEVPDykkKpRx-DTz",empty:"_2ipQUz0640DVJYOmATRKMA",loading:"_1P2YNSL2qJQiEtaDIFDfBf"}},function(e,t,a){e.exports={emptyTip:"_2n5LD-OS_oKZbSEFvtJWzL",emptyText:"_1TAFKSo4u8kgFnD_NDQWpq"}},function(e,t,a){e.exports={progress_label:"_5PSTAWJiSPA_LLFnStRk7",progress:"_1DA7GoI-GY3JPMYhUcAzd4",line_box:"_1Iiva64_Q4jDWrS8sN7HOy",line_split_items:"_2oZqVy1sIf-VGh8wW54aAH",line_block_items:"_2uhi-M5L9MD4cRySFNtXIB",line_block_mask_items:"_3kq8yg8B2d2ngP2g134sDG"}},function(e,t,a){e.exports={wrapper:"_302HbhNWl9mS-MU3L7oAQ0",disabled:"_1kINxzjNsn7aaOpqnibb0A",options:"_2w6Wx0Cn2s6hS24mPAoGsQ",option:"_2tyTnkSPzDAy8te4J5CaC9",control:"_1tMlQKHnZLlquKiSwFjDYV",withIcon:"QvU3_GAQkwcWv0oSs1iyi",leftIcon:"_3LTCGCX8_ciBanyKKA22gn",text:"_3HuhDrid86ZAmU9VGNM6Mz",rightIcon:"_3Uxm1hQLkKIpTk1QqTk3AM",selected:"_2FTW0KhkRJG4DvBe8MTypz",open:"HePRK-voaONco1Z9AdqPs"}},function(e,t,a){e.exports={option:"MwEyynZNsExX6uC1xcFAi",empty:"_1z-Oh8RaC_rY7Ef7mjU6Up",isOutdated:"_21PySuLKqWWEkaP8AJI3LB"}},function(e,a,r){"use strict";var n=r(20);r(12),r(109),r(11),r(6),r(86),r(18),r(16),r(9),r(13),r(10),r(4),r(23),r(17),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(109),r(45),r(11),r(6),r(86),r(18),r(28),r(191),r(42),r(16),r(159),r(34),r(15),r(9),r(13),r(10),r(4),r(23),r(57),r(17),r(7);var l,u=n(r(315)),o=n(r(30)),i=n(r(36)),c=n(r(37)),s=n(r(55)),f=n(r(56)),d=n(r(51)),p=r(186),m=n(r(788)),h=n(r(790)),v=r(791),g=n(r(873)),y=n(r(26)),E=n(r(74)),b=n(r(928)),_=n(r(63)),O=n(r(0)),S=r(239),C=n(r(1316)),D=r(52),k=r(72),N=r(434),T=r(14),R=n(r(2478));function w(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function I(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};e.keyword&&(e.name=e.keyword,delete e.keyword),n.store.fetchList(I({limit:-1,cluster:n.props.cluster,namespace:n.props.namespace,status:"enabled"},e))},n.getColumns=function(){return[{title:t("NAME"),dataIndex:"name",search:!0,key:"name",render:function(e,t){return O.default.createElement(m.default,{icon:k.ICON_TYPES.ippools,iconSize:40,title:(0,D.getDisplayName)(t),desc:t.description||"-"})}},{title:t("NETWORK_SEGMENT"),isHideable:!0,dataIndex:"cidr"},{title:n.isCalico?t("USED_IP_ADDRESSES"):O.default.createElement("span",{className:"flexbox items-center"},O.default.createElement("span",{className:"margin-r4"},t("USED_IP_ADDRESSES")),O.default.createElement(p.Tooltip,{content:t("IPPOOL_USED_TIP")},O.default.createElement(p.Icon,{name:"question",size:16}))),dataIndex:"status1",isHideable:!0,render:function(e,a){var r=a.status,n=(0,y.default)(r,"capacity",0),l=(0,y.default)(r,"unallocated",0);return O.default.createElement(h.default,{title:n-l,description:t("TOTAL_VALUE",{value:n})})}},{title:t("IPPOOL_BLOCK_SIZE"),dataIndex:"blockSize",isHideable:!0,render:function(e){return null!=e?e:"-"}},n.props.isOutdated?null:{title:t("IPPOOL_OVERLAY_MODE"),dataIndex:"overlay",isHideable:!0,render:function(e,t){var a=t.ipipMode,r=t.vxlanMode,n=(0,N.getOverlayStatus)({ipipMode:a,vxlanMode:r});return O.default.createElement("div",null,O.default.createElement("span",{className:"font-bold"},n.type),n.value&&O.default.createElement("span",{style:{marginLeft:"4px"}},"(",n.value,")"))}}]},n.changeIPPools=function(e){var t,a,r=n.props,l=r.name,u=r.formTemplate,o=r.data;null===(t=n.props)||void 0===t||null===(a=t.formProps)||void 0===a||a.onChange(l,JSON.stringify(e)),o&&(0,E.default)(n.props.data,l,JSON.stringify(e)),u&&(0,E.default)(n.props.formTemplate,l,JSON.stringify(e))},n.showCreate=function(){var e,t,a,r=n.props.cluster;return n.trigger("network.ippool.add",{module:"ippools",cluster:r,trigger:n.trigger,isOutdated:n.props.isOutdated,hideWorkspace:n.columnConfig.hideWorkspace,isCalico:n.isCalico,allList:(0,T.toJS)(null!==(e=null===(t=n.store)||void 0===t||null===(a=t.list)||void 0===a?void 0:a.data)&&void 0!==e?e:[]),success:n.getIPPools})},n.onSelectRowKeys=function(e){n.setState({selectedRowKeys:e},(function(){n.changeIPPools(e)}))},n.showEmpty=function(){var e=n.store.list,t=e.isLoading,a=e.filters,r=e.total;return!t&&(0,_.default)(a)&&0===r},n.deleteItem=function(e){var t=n.state.selectedRowKeys;(0,b.default)(t,(function(t){return t===e})),n.setState({selectedRowKeys:t},(function(){n.changeIPPools(t)}))},n.renderItems=function(e){return e.map((function(e){return O.default.createElement("span",{className:R.default.item},e,O.default.createElement(p.Icon,{name:"close",size:14,clickable:!0,onClick:function(){n.deleteItem(e)}}))}))},n.rootStore=e.rootStore,n.ippoolStore=new C.default,n.store=new(n.ippoolStore.getStoreByCluster(e.cluster));var l=(0,y.default)(e.data,e.name,"");return n.state={selectedRowKeys:l&&JSON.parse(l)||[]},n}return(0,c.default)(r,[{key:"componentDidMount",value:function(){this.store.fetchList({limit:-1,cluster:this.props.cluster,namespace:this.props.namespace,status:"enabled"})}},{key:"render",value:function(){var e=this.props,a=e.tableProps,r=e.name,n=this.state.selectedRowKeys,l=this.store.list.filters;return O.default.createElement("div",{className:R.default.ippools,name:r},n.length>0?O.default.createElement("div",{className:R.default.showSelects},O.default.createElement("p",null,t("SELECTED_IPPOOLS",{number:n.length})),O.default.createElement("div",{className:R.default.selectWrapper},this.renderItems(n))):"",O.default.createElement(g.default,(0,u.default)({},a,{module:"ippools",name:"POD_IP_POOL",columns:this.getColumns(),cluster:this.props.cluster,onFetch:this.getIPPools,onRefresh:this.getIPPools,onSelectRowKeys:this.onSelectRowKeys,selectedRowKeys:this.state.selectedRowKeys,disabledSelectActions:!0,data:(0,T.toJS)(this.store.list.data),hideFooter:!0,hideCustom:!0,searchType:"name",filters:l,showEmpty:this.showEmpty(),emptyProps:{desc:t("CLUSTER_IPPOOL_EMPTY_DES")}})),O.default.createElement("p",{className:R.default.empty},this.canCreate?O.default.createElement(O.default.Fragment,null,t("ADD_IPPOOL_EMPTY_DES_ADMIN"),O.default.createElement("a",{onClick:this.showCreate},t("CREATE_POD_IP_POOL"))):t("ADD_IPPOOL_EMPTY_DES")))}},{key:"isOutdated",get:function(){var e=this.props.cluster;return this.ippoolStore.isOutdated(e)}},{key:"isCalico",get:function(){var e=this.props.cluster;return this.ippoolStore.isCalico(e)}},{key:"columnConfig",get:function(){var e=this.isCalico;return{hideWorkspace:e,hideSerch:e,hideFilter:e}}},{key:"isNetworkManager",get:function(){var e=this.props.cluster;return-1!==(0,y.default)(globals,"user.clusterRules.".concat(e,".network"),[]).indexOf("manage")}},{key:"canCreate",get:function(){return"platform-admin"===globals.user.globalrole||this.isNetworkManager}}]),r}(O.default.Component))||l)||l;a.default=P},,,,,,,,,,,,,function(e,t,a){e.exports={wrapper:"_1ySvVWPft88PiZ2MO7sDtU"}},function(e,t,a){"use strict";var r=a(20);a(12),a(11),a(6),a(9),a(13),a(10),a(4),a(23),a(17),a(7),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(12),a(45),a(11),a(6),a(28),a(42),a(34),a(15),a(9),a(13),a(10),a(4),a(23),a(57),a(17),a(7);var n=r(a(30)),l=r(a(36)),u=r(a(37)),o=r(a(55)),i=r(a(56)),c=r(a(51)),s=r(a(0)),f=r(a(1)),d=r(a(3)),p=r(a(1165)),m=r(a(1166)),h=r(a(2472));function v(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function g(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,c.default)(e);if(t){var n=(0,c.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,i.default)(this,a)}}var y=function(e){(0,o.default)(a,e);var t=g(a);function a(e){var r;(0,l.default)(this,a),(r=t.call(this,e)).handleToggle=function(){r.setState({visible:!r.state.visible},(function(){r.props.onToggle(r.state.visible)}))},r.hideSelector=function(){r.setState({visible:!1},(function(){r.props.onToggle(!1)}))},r.handleTimeChange=function(e){r.setState(function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};return"".concat(e.getNetworkUrl).concat(e.getPath(t),"/").concat(e.module).concat(t.dryRun?"?dryRun=All":"")},e.getNetDetailUrl=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return"".concat(e.getNetWorkUrl(t),"/").concat(t.name)},e.store=new v.default({module:"ippools",kind:"IPPool",apiVersion:"apis/crd.projectcalico.org/v1"}),e}return(0,f.default)(u,[{key:"fetchList",value:(a=(0,c.default)(n.default.mark((function e(){var t,a,r,u,i,c,s,f,d,p=this,m=arguments;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=m.length>0&&void 0!==m[0]?m[0]:{},a=t.cluster,r=t.workspace,u=t.namespace,i=t.more,c=t.devops,s=(0,o.default)(t,["cluster","workspace","namespace","more","devops"]),this.list.isLoading=!0,s.sortBy||void 0!==s.ascending||(s.sortBy=b.LIST_DEFAULT_ORDER[this.module]||"createTime"),s.limit!==1/0&&-1!==s.limit||(s.limit=-1,s.page=1),s.limit=s.limit||10,e.next=7,request.get(this.getNetWorkUrl({cluster:a,workspace:r,namespace:u,devops:c}),this.getFilterParams(s));case 7:return f=e.sent,d=((0,y.default)(f,"items")||((0,E.default)(f)?f:[])).map((function(e){return O({cluster:a,namespace:u},p.mapper(e))})),this.list.update(O(O({data:i?[].concat((0,l.default)(this.list.data),(0,l.default)(d)):d,total:f.totalItems||f.totalCount||f.total_count||d.length||0},s),{},{limit:Number(s.limit)||10,page:Number(s.page)||1,isLoading:!1},this.list.silent?{}:{selectedRowKeys:[]})),e.abrupt("return",d);case 11:case"end":return e.stop()}}),e,this)}))),function(){return a.apply(this,arguments)})},{key:"fetchDetail",value:(t=(0,c.default)(n.default.mark((function e(t){var a,r;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.isLoading=!0,e.next=3,request.get(this.getNetDetailUrl(t));case 3:return a=e.sent,r=O(O({},t),this.mapper(a)),this.detail=r,this.isLoading=!1,e.abrupt("return",r);case 8:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})},{key:"apiVersion",get:function(){return"apis/crd.projectcalico.org/v1"}}]),u}(r(a(1104)).default),(0,h.default)(i.prototype,"fetchList",[g.action],Object.getOwnPropertyDescriptor(i.prototype,"fetchList"),i.prototype),(0,h.default)(i.prototype,"fetchDetail",[g.action],Object.getOwnPropertyDescriptor(i.prototype,"fetchDetail"),i.prototype),i);t.default=C},function(e,t,a){e.exports={ippools:"_2kGSbKseUL2YRcov_9muVv",empty:"_24O3McxSSDwKwbFNUTDDCO",showSelects:"_2sv6WMgMdW8V1HSJxSoBYG",selectWrapper:"_1wN86v2HXHvjdxLHBN1OfO",item:"_1OeK_sDkEV3zvvBSay1L4P"}},function(e,t,a){"use strict";a(15);var r=a(20);a(5),a(9),a(4),a(23),a(17),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(45),a(5),a(42),a(9),a(4),a(22),a(23),a(57),a(17);var n=r(a(43));a(41);var l,u=r(a(44)),o=r(a(36)),i=r(a(37)),c=r(a(55)),s=r(a(56)),f=r(a(51)),d=r(a(49)),p=r(a(26)),m=a(14);function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,f.default)(e);if(t){var n=(0,f.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,s.default)(this,a)}}var v=(l=function(e){(0,c.default)(l,e);var t,a,r=h(l);function l(){var e;(0,o.default)(this,l);for(var t=arguments.length,a=new Array(t),n=0;n=.9&&d.default.createElement(m.Icon,{name:"exclamation"})),description:t("CPU")})},e.renderMemory=function(a){var r=e.getRecordMetrics(a,[{type:"memory_used",unit:"Gi"},{type:"memory_total",unit:"Gi"},{type:"memory_utilisation"}]);return d.default.createElement(_.default,{title:d.default.createElement("div",{className:S.default.resource},d.default.createElement("span",null,"".concat(Math.round(100*r.memory_utilisation),"%")),r.memory_utilisation>=.9&&d.default.createElement(m.Icon,{name:"exclamation"})),description:t("MEMORY")})},e}return(0,i.default)(r,[{key:"render",value:function(){var e=this.props,a=e.detail,r=e.selected,n=e.hasMonitoring;return d.default.createElement("div",{className:(0,p.default)(S.default.item,(0,u.default)({},S.default.selected,r)),onClick:this.handleClick},d.default.createElement(m.Icon,{name:h.ICON_TYPES.nodes,size:20}),d.default.createElement("div",{className:S.default.ring}),d.default.createElement("div",{className:S.default.name},d.default.createElement(E.default,{icon:null,to:null,title:a.name,desc:a.ip})),this.renderStatus(a),d.default.createElement("div",null,d.default.createElement(_.default,{title:d.default.createElement(d.default.Fragment,null,a.role.join(",")),description:t("ROLE")})),n&&d.default.createElement(d.default.Fragment,null,d.default.createElement("div",null,this.renderCPU(a)),d.default.createElement("div",null,this.renderMemory(a))))}},{key:"metricTypesMap",get:function(){if(!this.props.isEdgeWize)return D;var e={};return Object.entries(D).forEach((function(t){var a=(0,l.default)(t,2),r=a[0],n=a[1];e["".concat(r)]="edge_".concat(n)})),e}}]),r}(d.default.Component);a.default=k},function(e,a,r){"use strict";var n=r(20);r(12),r(109),r(5),r(11),r(6),r(18),r(16),r(27),r(9),r(13),r(10),r(4),r(316),r(23),r(17),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(109),r(45),r(5),r(11),r(6),r(18),r(28),r(42),r(16),r(27),r(34),r(15),r(9),r(13),r(10),r(4),r(316),r(22),r(23),r(57),r(17),r(7);var l=n(r(61)),u=n(r(30)),o=n(r(43));r(41);var i,c=n(r(44)),s=n(r(36)),f=n(r(37)),d=n(r(55)),p=n(r(56)),m=n(r(51)),h=n(r(0)),v=r(14),g=r(239),y=n(r(26)),E=n(r(63)),b=r(186),_=n(r(863)),O=n(r(852)),S=n(r(954)),C=n(r(856)),D=n(r(2493)),k=n(r(1583));function N(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function T(e){for(var t=1;t=.9&&d.default.createElement(m.Icon,{name:"exclamation"})),description:t("CPU")})},e.renderMemory=function(a){var r=e.getRecordMetrics(a,[{type:"memory_used",unit:"Gi"},{type:"memory_total",unit:"Gi"},{type:"memory_utilisation"}]);return d.default.createElement(b.default,{title:d.default.createElement("div",{className:O.default.resource},d.default.createElement("span",null,"".concat(Math.round(100*r.memory_utilisation),"%")),r.memory_utilisation>=.9&&d.default.createElement(m.Icon,{name:"exclamation"})),description:t("MEMORY")})},e.renderPodNum=function(a){var r=e.getRecordMetrics(a,[{type:"pod_used"},{type:"pod_total"}]),n=r.pod_total?parseFloat(r.pod_used/r.pod_total):0;return d.default.createElement(b.default,{title:"".concat(Math.round(100*n),"%"),description:t("PODS")})},e}return(0,i.default)(r,[{key:"render",value:function(){var e=this.props,t=e.detail,a=e.selected;return d.default.createElement("div",{className:(0,p.default)(O.default.item,(0,u.default)({},O.default.selected,a)),onClick:this.handleClick},d.default.createElement(m.Icon,{name:"edge-node",size:20}),d.default.createElement("div",{className:O.default.ring}),d.default.createElement("div",{className:O.default.name},d.default.createElement(y.default,{icon:null,to:null,title:t.name,desc:t.ip})),this.renderStatus(t),d.default.createElement("div",null,this.renderCPU(t)),d.default.createElement("div",null,this.renderMemory(t)),d.default.createElement("div",null,this.renderPodNum(t)))}},{key:"metricTypesMap",get:function(){var e={};return Object.entries(C).forEach((function(t){var a=(0,l.default)(t,2),r=a[0],n=a[1];e["".concat(r)]="edge_".concat(n)})),e}}]),r}(d.default.Component);a.default=D},function(e,t,a){e.exports={wrapper:"_4qArBgVOZGVzW4_C1mQa_",alert:"_2J-ZH7uleo6FGwk_vn2a-P",node:"_2_K8zkzSwO3NKwIB5qbvFK",body:"_2erzUoyxi1dmIp0QGaU92y"}},function(e,a,r){"use strict";r(15);var n=r(157),l=r(20);r(18),r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(18),r(42),r(4),r(23),r(57),r(17);var u=l(r(30)),o=l(r(36)),i=l(r(37)),c=l(r(55)),s=l(r(56)),f=l(r(51)),d=n(r(0)),p=l(r(3)),m=l(r(2496));function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,f.default)(e);if(t){var n=(0,f.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,s.default)(this,a)}}var v=function(e){(0,c.default)(r,e);var a=h(r);function r(){return(0,o.default)(this,r),a.apply(this,arguments)}return(0,i.default)(r,[{key:"render",value:function(){var e=this.props,a=e.steps,r=e.current;return d.default.createElement("div",{className:m.default.wrapper},a.map((function(e,a){var n;return d.default.createElement("div",{key:e.title},d.default.createElement("span",{className:(0,p.default)(m.default.indicator,(n={},(0,u.default)(n,m.default.fullfill,r>a),(0,u.default)(n,m.default.current,r===a),(0,u.default)(n,m.default.pending,r1&&void 0!==arguments[1]?arguments[1]:[];return null==t||t.forEach((function(t){var r,n;(a.push(t.metadata.name),null===(r=t.spec)||void 0===r?void 0:r.children)&&e(null===(n=t.spec)||void 0===n?void 0:n.children,a)})),a}(n);R(e)}else R([])}),[C]),o.default.createElement("div",{className:d.default["node-tree-bg"]},o.default.createElement(s.InputSearch,{className:d.default.search,name:"search",value:b,placeholder:t("SEARCH_BY_NAME"),onChange:function(e){_(e)},autoComplete:"off"}),o.default.createElement("div",{className:m.default["select-nodes"]},o.default.createElement(s.Icon,{className:m.default["select-nodes-icon"],name:"listview",size:20,type:"coloured"}),t("已选择节点")),o.default.createElement("div",{className:m.default.trees},o.default.createElement("div",{className:(0,i.default)(d.default["node-group__tree-item"],d.default["node-group__tree-item-margin"])},o.default.createElement("img",{className:d.default.icon,width:20,src:"/assets/disk_group.svg",alt:""}),o.default.createElement("span",{className:d.default["node-group__tree-item-title"],onClick:a},"全部节点组"),o.default.createElement(s.Tooltip,{content:t(C?"全部关闭":"全部展开")},o.default.createElement("img",{className:d.default["node-group__tree-item-icon-hover"],name:C?"sort-ascending":"sort-descending",width:20,src:"/assets/".concat(C?"close_all":"expand_all",".svg"),onClick:function(){return D(!C)},alt:""}))),o.default.createElement(p.default,{treeData:n,expandedKeys:T,onSelect:g,autoExpandParent:C,renderMenu:function(e){var a=l.find((function(t){var a;return t.nodeGroup===(null==e||null===(a=e.metadata)||void 0===a?void 0:a.name)}))||{};if(void 0===a.nodeName)return null;var r=a.nodeName?"手动指定":"自动分配",n=a.nodeName?"step_1":"refresh_fill";return o.default.createElement(s.Tooltip,{content:t(r)},o.default.createElement("img",{width:16,src:"/assets/".concat(n,".svg"),alt:""}))},renderIcon:function(e){var t=h(n).filter((function(e){return null==v?void 0:v.includes(e.metadata.name)})),a=(0,c.default)(null==t?void 0:t.map((function(e){return e.parentKey})));return o.default.createElement(o.default.Fragment,null,o.default.createElement(f.default,{type:(null==a?void 0:a.includes(e.metadata.name))?"Running":"paused"}),o.default.createElement("img",{width:16,src:"/assets/disk_group.svg",alt:""}))},filterName:b.searchValue,showNumber:!0})))};var u=l(r(96));r(5),r(11),r(31),r(6),r(84),r(18),r(28),r(87),r(16),r(4),r(24),r(85),r(188),r(7);var o=n(r(0)),i=l(r(3)),c=l(r(450)),s=r(186),f=l(r(795)),d=l(r(1320)),p=l(r(1318)),m=l(r(1321));function h(e){return e.reduce((function(e,t){return e.concat([t],h(t.spec.children||[]))}),[])}},function(e,a,r){"use strict";r(15);var n=r(157),l=r(20);r(31),r(18),r(16),Object.defineProperty(a,"__esModule",{value:!0}),a.NodeGroup=function(e){var a=e.detail,r=e.cluster,n=e.formData,l=e.onSelect,g=(0,i.createRef)(),y=(0,i.useState)(!1),E=(0,o.default)(y,2),b=E[0],_=E[1],O=(0,i.useState)(!1),S=(0,o.default)(O,2),C=S[0],D=S[1],k=null==n?void 0:n.map((function(e){return e.nodeName}));return(0,i.useEffect)((function(){if(a){var e=n.find((function(e){return e.nodeGroup===a.metadata.name}));_(!!e&&!(null==e?void 0:e.nodeName))}}),[a]),i.default.createElement(i.default.Fragment,null,a?i.default.createElement("div",null,i.default.createElement(m.default,{cluster:r,detail:a,renderBtn:C&&i.default.createElement(f.default,{className:v.default.switch,text:t("IPPOOL_AUTO_ASSIGN"),checked:b,onChange:function(e){_(e),l(a,"")}})}),i.default.createElement(h.EdgewizeNodeTable,(0,u.default)({ref:g},e,{node:a,enabled:b,cluster:r,selectKeys:k,onSelect:function(e){var t;l(a,null===(t=e.metadata)||void 0===t?void 0:t.name)},setEdgeNodeStatus:D}))):i.default.createElement("div",null,i.default.createElement("div",{className:(0,c.default)(v.default["select-nodes"],v.default["select-nodes-normal"])},i.default.createElement(s.Icon,{className:v.default["select-nodes-icon"],name:"listview",size:20}),t("已选择节点")),i.default.createElement("div",{className:p.default.container},null==n?void 0:n.map((function(e){return i.default.createElement("div",{className:(0,c.default)(p.default.listItem,p.default.card)},i.default.createElement(d.default,{title:e.nodeGroup,icon:function(){return i.default.createElement("img",{width:40,src:"/assets/disk_group.svg",alt:""})},description:t("NODE_GROUP")}),i.default.createElement(d.default,{title:e.nodeName,icon:"nodes",description:t("EDGE_NODE_PL")}))})))))},r(31),r(18),r(16),r(4);var u=l(r(315)),o=l(r(96)),i=n(r(0)),c=l(r(3)),s=r(186),f=l(r(850)),d=l(r(790)),p=l(r(1322)),m=l(r(1584)),h=r(2503),v=l(r(1321))},,function(e,t,a){e.exports={"top-bar":"_2i1Q4R5tL-7QYBBbfNq3ip","top-bar-left":"sbdO2-XmopsQeo1skluC_",icon:"_2rLzHSHMjymGW9H85aW1eq","top-bar-title":"_2OM1eMcCE8Pvf4TpvXGz3E","top-bar-title-label":"_1DZcCR369hJBpQPUW-OYST","top-bar-des":"_3FqYBu8t0scwg42D44OIH9","top-bar-des-group":"lDV8LihpWxI9IRS9m2yGB","top-bar-bind":"_1-Fog9pCIzA3128ZSNDSd-","top-bar-ip":"_3Z6JLYi2ALlxOLrJj5Yp6q","top-bar-ip-tooltip":"B8tjvzuiPnVTWcWfqnv_J","top-bar-ip-tooltip-item":"_2tgYygRlwin9PWC0Ly840l","top-bar-ip-tooltip-item-ip":"vIeKUTxkq8djVvsN-EVp5"}},function(e,a,r){"use strict";var n=r(157),l=r(20);r(12),r(5),r(11),r(6),r(84),r(18),r(16),r(9),r(13),r(10),r(24),r(85),r(62),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=a.EdgewizeNodeTable=void 0,r(12),r(5),r(11),r(6),r(84),r(18),r(28),r(859),r(16),r(34),r(15),r(9),r(13),r(10),r(4),r(22),r(24),r(85),r(62),r(7);var u=l(r(43)),o=l(r(30));r(41);var i=l(r(315)),c=l(r(44)),s=l(r(96)),f=n(r(0)),d=l(r(63)),p=r(186),m=l(r(796)),h=l(r(788)),v=l(r(795)),g=r(444),y=r(72),E=l(r(953)),b=l(r(1585));function _(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function O(e){for(var t=1;t0?h.default.createElement("label",{className:C.default.deleteAll,onClick:function(){e.deleteScreenshot(-1,r)}},t("DELETE_ALL")):h.default.createElement("label",{className:(0,y.default)(C.default.deleteAll,C.default.disabled)},t("DELETE_ALL")))))}}]),r}(h.default.Component),o.propTypes={detail:g.default.object,store:g.default.object,fileStore:g.default.object},o.defaultProps={detail:{},store:{},fileStore:function(){}},u=i))||u;a.default=k},function(e,t,a){e.exports={title:"_2uPiYzFDOXR72WfG9uGqfU",screenshot:"_2YKRw87avTolrxMvvqKdUw",pictures:"_2mut4J5F7tqeF_yGoONfAl",upload:"_3Y5SOweqK4JOLgJYTWXwWB",add:"svj73vqzmkHDs00vaMNKa",delete:"_2CvCSpyGVDD7j2kE2aPl6g",icon:"_19kdNNakltP3B4lu8OnnPQ",error:"gtPg-cI0R-ryIQiNIwS3N",words:"_2w8iv_6c2wn1jOzU9DFnYk",disabled:"LwrGabyBVUqWJUr4TYWl",deleteAll:"_2nkH5dSh2jhtOpVwtll5Dp"}},function(e,a,r){"use strict";r(15);var n=r(20);r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(42),r(4),r(23),r(57),r(17);var l,u,o,i=n(r(36)),c=n(r(37)),s=n(r(55)),f=n(r(56)),d=n(r(51)),p=n(r(0)),m=r(239),h=n(r(1)),v=n(r(2513)),g=n(r(2514));function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,d.default)(e);if(t){var n=(0,d.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,f.default)(this,a)}}var E={h1:!0,h2:!0,h3:!0,h4:!0,img:!1,link:!0,code:!0,preview:!0,expand:!0,undo:!0,redo:!0,save:!1,subfield:!0},b=(0,m.observer)((o=u=function(e){(0,s.default)(r,e);var a=y(r);function r(e){var t;return(0,i.default)(this,r),(t=a.call(this,e)).handleChange=function(e){t.setState({readme:e}),t.props.handleChange(e,"abstraction")},t.state={readme:e.detail.abstraction},t}return(0,c.default)(r,[{key:"render",value:function(){var e=this.state.readme;return p.default.createElement(p.default.Fragment,null,p.default.createElement("div",{className:g.default.header},t("APP_INTRODUCTION")),p.default.createElement("div",{className:g.default.readmeEdit},p.default.createElement(v.default,{value:e,onChange:this.handleChange,placeholder:t("START_EDITING"),toolbar:E})))}}]),r}(p.default.Component),u.propTypes={detail:h.default.object,store:h.default.object,handleChange:h.default.func},u.defaultProps={detail:{},store:{},handleChange:function(){}},l=o))||l;a.default=b},,function(e,t,a){e.exports={header:"ovSS-AWa-ZyP2A-ngZTMO",readmeEdit:"Y_xQq9aBBqoFkxZrwNVBS"}},function(e,t,a){"use strict";a(15);var r=a(20);a(5),a(4),a(23),a(17),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(45),a(5),a(42),a(4),a(22),a(23),a(57),a(17);var n=r(a(43)),l=r(a(58));a(41);var u,o,i,c=r(a(44)),s=r(a(65)),f=r(a(36)),d=r(a(88)),p=r(a(55)),m=r(a(56)),h=r(a(51)),v=r(a(49)),g=(r(a(66)),a(14));function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,h.default)(e);if(t){var n=(0,h.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,m.default)(this,a)}}var E=(u=function(e){(0,p.default)(a,e);var t=y(a);function a(){var e;(0,f.default)(this,a);for(var r=arguments.length,n=new Array(r),l=0;l0&&void 0!==arguments[0]?arguments[0]:{},a=t.category_id;return a?"".concat(e.baseUrl,"/").concat(e.resourceName,"/").concat(a):"".concat(e.baseUrl,"/").concat(e.resourceName)},(0,s.default)(e,"update",o,(0,d.default)(e)),(0,s.default)(e,"delete",i,(0,d.default)(e)),e}return a}(r(a(458)).default),o=(0,v.default)(u.prototype,"update",[g.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return(0,c.default)(n.default.mark((function t(){var a,r,u,o=arguments;return n.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=o.length>0&&void 0!==o[0]?o[0]:{},r=a.category_id,u=(0,l.default)(a,["category_id"]),t.next=3,e.submitting(request.patch(e.getUrl({category_id:r}),u));case 3:case"end":return t.stop()}}),t)})))}}),i=(0,v.default)(u.prototype,"delete",[g.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(t){var a=t.category_id;return e.submitting(request.delete(e.getUrl({category_id:a}),{}))}}}),u);t.default=E},function(e,t,a){e.exports={modal:"BdK5ZaX-xYe3UCP_Y1MKV",body:"_2yuMHphDy5tXJVP5ZG_oka"}},function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(42),r(4),r(23),r(57),r(17);var l,u=n(r(36)),o=n(r(37)),i=n(r(55)),c=n(r(56)),s=n(r(51)),f=n(r(0)),d=n(r(26)),p=r(239),m=r(186),h=r(72),v=n(r(1325));function g(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,s.default)(e);if(t){var n=(0,s.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,c.default)(this,a)}}var y=(0,p.observer)(l=function(e){(0,i.default)(r,e);var a=g(r);function r(){var e;(0,u.default)(this,r);for(var n=arguments.length,l=new Array(n),o=0;o0){var i=d.default.Children.map(u,(function(t){return d.default.cloneElement(t,y(y({},t.props),{},{name:r,checked:o.includes(t.props.value),onChange:e.handleOptionChange}))}));return d.default.createElement("div",{"data-direction":n,className:(0,m.default)("checkbox-group",a)},i)}return d.default.createElement("div",{"data-direction":n,className:(0,m.default)("checkbox-group",a)},l.map((function(t){return d.default.createElement(h.Checkbox,{key:t.value,name:r,value:t.value,checked:o.includes(t.value),onChange:e.handleOptionChange},t.label)})))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return(0,v.default)(e.value,t.values)?null:{values:e.value}}}]),a}(d.Component);t.default=b,b.propTypes={options:p.default.arrayOf(p.default.oneOfType([p.default.string,p.default.shape({value:p.default.any,label:p.default.string,disabled:p.default.bool})])),value:p.default.array,onChange:p.default.func,direction:p.default.oneOf(["row","column"]),className:p.default.string,disabled:p.default.bool,children:p.default.node},b.defaultProps={direction:"row",options:[],value:[],onChange:function(){}}},function(e,t,a){e.exports={group:"_1apuDq7M0zdRfWCPastdWU"}},,,,function(e,t,a){e.exports={dropdown:"_2AA0siR3svLxPwUAGPyHck"}},,,function(e,a,r){"use strict";r(15);var n=r(157),l=r(20);r(18),r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(18),r(42),r(4),r(23),r(57),r(17);var u=l(r(36)),o=l(r(37)),i=l(r(55)),c=l(r(56)),s=l(r(51)),f=n(r(0)),d=r(186),p=l(r(2615));function m(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,s.default)(e);if(t){var n=(0,s.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,c.default)(this,a)}}var h=function(e){(0,i.default)(r,e);var a=m(r);function r(){return(0,u.default)(this,r),a.apply(this,arguments)}return(0,o.default)(r,[{key:"render",value:function(){var e=this.props,a=e.steps,r=e.current;return f.default.createElement("div",{className:p.default.wrapper},a.map((function(e,a){return f.default.createElement("div",{key:e.title},r>=a?f.default.createElement(d.Icon,{name:"success",type:"coloured",size:14}):f.default.createElement(d.Icon,{name:"dot",type:"light",size:14}),f.default.createElement("span",null,t(e.title)))})))}}]),r}(f.Component);a.default=h},function(e,t,a){e.exports={wrapper:"_3iSN2t3fxpa-6qCq-vAc0D"}},function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(42),r(4),r(23),r(57),r(17);var l=n(r(36)),u=n(r(37)),o=n(r(55)),i=n(r(56)),c=n(r(51)),s=n(r(26)),f=n(r(74)),d=n(r(800)),p=n(r(0)),m=r(1),h=r(186),v=r(72),g=r(52),y=n(r(2617));function E(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,c.default)(e);if(t){var n=(0,c.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,i.default)(this,a)}}var b=function(e){(0,o.default)(r,e);var a=E(r);function r(){var e;(0,l.default)(this,r);for(var n=arguments.length,u=new Array(n),o=0;o0&&void 0!==arguments[0]?arguments[0]:{},t={};return Object.values(e).forEach((function(e){var a=e.kind.replace("Federated","");t[a]=e})),t},e.updateComponentKind=function(){var t=e.props.formData.application;(0,d.default)(t,"".concat(e.fedPrefix,"spec.componentKinds"),[{group:"",kind:"Service"},{group:"apps",kind:"Deployment"},{group:"apps",kind:"StatefulSet"},{group:"networking.k8s.io",kind:"Ingress"},{group:"servicemesh.kubesphere.io",kind:"Strategy"},{group:"servicemesh.kubesphere.io",kind:"ServicePolicy"}])},e.handleAdd=function(t){t.workload=t.Deployment||t.StatefulSet,t.service=t.Service,e.updateAppLabels(t),e.updateGovernance(t);var a=(0,f.default)(t,"service.metadata.name"),r=(0,f.default)(e.state.editData,"Service.metadata.name");e.setState((function(e){var n=e.components;return r&&n[r]&&delete n[r],{components:_(_({},n),{},(0,l.default)({},a,t)),editData:{}}}),(function(){r&&delete e.props.formData[r],e.props.formData[a]=t,e.updateComponentKind(),e.hideAdd()}))},e.handleDelete=function(t){e.setState((function(e){var a=e.components;return delete a[t],{components:_({},a)}}),(function(){delete e.props.formData[t],e.updateComponentKind()}))},e}return(0,o.default)(r,[{key:"componentDidUpdate",value:function(e){var t=this.props.formData;t!==e.formData&&this.setState({components:(0,p.default)(t,["application","ingress"])||{}})}},{key:"validate",value:function(e){e&&e()}},{key:"updateAppLabels",value:function(e){var t=(0,f.default)(this.props.formData,"application.".concat(this.fedPrefix,"spec.selector.matchLabels"),[]);(0,h.mergeLabels)(e.workload,t),(0,h.mergeLabels)(e.service,t)}},{key:"updateGovernance",value:function(e){var t=this.props,a=t.isGovernance,r=t.isFederated;(0,d.default)(e.workload,'metadata.annotations["servicemesh.kubesphere.io/enabled"]',String(a)),(0,d.default)(e.service,'metadata.annotations["servicemesh.kubesphere.io/enabled"]',String(a)),(0,d.default)(e.workload,"spec.template.".concat(this.fedPrefix,'metadata.annotations["sidecar.istio.io/inject"]'),String(a)),r&&((0,h.updateFederatedAnnotations)(e.workload),(0,h.updateFederatedAnnotations)(e.service))}},{key:"render",value:function(){var e=this.props,a=e.cluster,r=e.namespace,n=e.isFederated,l=e.projectDetail,u=this.state,o=u.components,i=u.showAdd,c=u.editData;return m.default.createElement("div",{className:E.default.wrapper},m.default.createElement("div",{className:E.default.step},m.default.createElement("div",null,t("SERVICE_PL")),m.default.createElement("p",null,t("APPLICATION_SERVICE_DESC"))),m.default.createElement("div",{className:E.default.components},m.default.createElement(y.default,{data:o,clusters:l.clusters,onAdd:this.showAdd,onDelete:this.handleDelete})),m.default.createElement(g.default,{cluster:a,namespace:r,components:o,detail:c,store:this.serviceStore,module:"services",visible:i,onCancel:this.hideAdd,onOk:this.handleAdd,isFederated:n,projectDetail:l}))}},{key:"fedPrefix",get:function(){return this.props.isFederated?"spec.template.":""}}]),r}(m.default.Component);a.default=S},function(e,t,a){e.exports={cluster:"WepWXI1aSdsP2mN7tQD4h",title:"-FR9pSqY9v4vM0_IHSUJb",selected:"_10Jl3vuRvh7yJv5FXgkQV3"}},function(e,t,a){e.exports={wrapper:"_1MKeNDQmYI8pkIxXHU03ir",selected:"_3OBd22JrAfh3uBO-tVAK5U"}},function(e,a,r){"use strict";var n=r(20),l=r(157);r(12),r(5),r(11),r(6),r(29),r(9),r(13),r(10),r(4),r(22),r(23),r(17),r(38),r(7),r(32),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(45),r(5),r(11),r(6),r(29),r(28),r(42),r(34),r(15),r(9),r(13),r(10),r(4),r(22),r(23),r(57),r(17),r(38),r(7),r(32);var u,o=n(r(315)),i=n(r(30)),c=n(r(96)),s=n(r(36)),f=n(r(37)),d=n(r(55)),p=n(r(56)),m=n(r(51)),h=l(r(0)),v=n(r(26)),g=n(r(189)),y=n(r(1094)),E=n(r(158)),b=r(14),_=r(239),O=n(r(913)),S=r(52),C=r(248),D=n(r(851)),k=n(r(885)),N=n(r(1096)),T=n(r(1051)),R=n(r(1303));function w(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function I(e){for(var t=1;t=e}},N=(0,y.observer)(u=function(e){(0,s.default)(r,e);var a=C(r);function r(){var e;(0,i.default)(this,r);for(var t=arguments.length,n=new Array(t),l=0;l=.9&&f.default.createElement(p.Icon,{name:"exclamation"})),description:t("CPU")})},e.renderMemory=function(a){var r=e.getRecordMetrics(a,[{type:"memory_used",unit:"Gi"},{type:"memory_total",unit:"Gi"},{type:"memory_utilisation"}]);return f.default.createElement(b.default,{title:f.default.createElement("div",{className:O.default.resource},f.default.createElement("span",null,"".concat(Math.round(100*r.memory_utilisation),"%")),r.memory_utilisation>=.9&&f.default.createElement(p.Icon,{name:"exclamation"})),description:t("MEMORY")})},e}return(0,o.default)(r,[{key:"render",value:function(){var e=this.props,a=e.detail,r=e.selected,n=e.hasMonitoring;return f.default.createElement("div",{className:(0,d.default)(O.default.item,(0,l.default)({},O.default.selected,r)),onClick:this.handleClick},f.default.createElement(p.Icon,{name:m.ICON_TYPES.nodes,size:20}),f.default.createElement("div",{className:O.default.ring}),f.default.createElement("div",{className:O.default.name},f.default.createElement(y.default,{icon:null,to:null,title:a.name,desc:a.ip})),this.renderStatus(a),f.default.createElement("div",null,f.default.createElement(b.default,{title:f.default.createElement(f.default.Fragment,null,a.role.join(",")),description:t("ROLE")})),n&&f.default.createElement(f.default.Fragment,null,f.default.createElement("div",null,this.renderCPU(a)),f.default.createElement("div",null,this.renderMemory(a))))}}]),r}(f.default.Component);a.default=D},function(e,t,a){e.exports={wrapper:"e5Jf5_q8FscHgID58CD7H",alert:"_2AIc5Vz5VWAUWlhxAD9FCG",node:"_1NNyPvCXso2s-hSebtqNpd",popper:"_3lit3qZEFq4FaHoohTz1rG"}},function(e,t,a){e.exports={wrapper:"_3AXbBgab3cgu3MkpHMsT2n"}},function(e,a,r){"use strict";var n=r(20);r(12),r(5),r(11),r(6),r(18),r(9),r(13),r(10),r(4),r(23),r(17),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(45),r(5),r(11),r(6),r(18),r(28),r(42),r(34),r(15),r(9),r(13),r(10),r(4),r(23),r(57),r(17),r(7);var l,u=n(r(30)),o=n(r(36)),i=n(r(37)),c=n(r(55)),s=n(r(56)),f=n(r(51)),d=n(r(0)),p=r(14),m=r(239),h=n(r(26)),v=r(186),g=n(r(863)),y=r(52),E=n(r(318)),b=n(r(858)),_=n(r(2638)),O=n(r(1619));function S(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function C(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},a=t.props,r=a.cluster,n=a.namespace;t.store.fetchList(C({cluster:r,namespace:n},e))},t.handleSelect=function(e){t.setState({selectItem:e})},t.handleCancel=function(){t.setState({selectItem:{}},(function(){t.props.onCancel()}))},t.handleOK=function(){var e=t.props.onSelect,a=t.state.selectItem;e((0,h.default)(a,"_originData.spec.template.metadata.labels",{}))},t.state={type:"deployments",selectItem:{}},t.store=(0,y.isEdgeWizePage)()?new b.default(t.state.type):new E.default(t.state.type),t}return(0,i.default)(r,[{key:"render",value:function(){var e=this,a=this.state,r=a.type,n=a.selectItem,l=(0,p.toJS)(this.store.list),u=l.data,o=l.total,i=l.page,c=l.isLoading;return d.default.createElement("div",null,d.default.createElement("div",{className:O.default.body},d.default.createElement(v.Alert,{className:"margin-b8",message:t("SELECT_WORKLOAD_DESC"),hideIcon:!0}),d.default.createElement(v.RadioGroup,{mode:"button",buttonWidth:120,value:r,onChange:this.handleTypeChange,size:"small"},d.default.createElement(v.RadioButton,{value:"deployments"},t("DEPLOYMENT_PL")),d.default.createElement(v.RadioButton,{value:"statefulsets"},t("STATEFULSET_PL")),d.default.createElement(v.RadioButton,{value:"daemonsets"},t("DAEMONSET_PL"))),d.default.createElement("div",{className:O.default.workloads},d.default.createElement(g.default,{data:u,total:o,page:i,loading:c,onFetch:this.fetchData},u.map((function(t,a){return d.default.createElement(_.default,{key:"".concat(t.uid).concat(a),module:r,detail:t,onClick:e.handleSelect,selected:n.uid===t.uid})}))))),d.default.createElement("div",{className:O.default.footer},d.default.createElement(v.Button,{onClick:this.handleCancel},t("CANCEL")),d.default.createElement(v.Button,{type:"control",onClick:this.handleOK},t("OK"))))}}]),r}(d.default.Component))||l;a.default=k},function(e,t,a){"use strict";a(15);var r=a(20);a(5),a(16),a(4),a(23),a(17),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(45),a(5),a(42),a(16),a(4),a(23),a(57),a(17);var n=r(a(30)),l=r(a(36)),u=r(a(37)),o=r(a(55)),i=r(a(56)),c=r(a(51)),s=r(a(0)),f=r(a(3)),d=a(186),p=a(72),m=r(a(1619));function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,c.default)(e);if(t){var n=(0,c.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,i.default)(this,a)}}var v=function(e){(0,o.default)(a,e);var t=h(a);function a(){var e;(0,l.default)(this,a);for(var r=arguments.length,n=new Array(r),u=0;u0&&void 0!==arguments[0]?arguments[0]:{};return"".concat(e.apiVersion).concat(e.getPath(t),"/").concat(e.module).concat(t.dryRun?"?dryRun=All":"")},e.getWatchListUrl=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return"".concat(e.apiVersion,"/watch").concat(e.getPath(t),"/").concat(e.module)},e.getResourceUrl=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return"/kapis/resources.kubesphere.io/v1alpha3".concat(e.getPath(t),"/").concat(e.module)},(0,f.default)(e,"getLog",c,(0,m.default)(e)),e}return(0,p.default)(g,[{key:"fetchJobDetail",value:(i=(0,s.default)(o.default.mark((function e(t){var a,r,n,l,u;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=t.name,r=t.cluster,n=t.namespace,this.isLoading=!0,e.next=4,request.get("/apis/batch/v1".concat(this.getPath({namespace:n,cluster:r}),"/jobs/").concat(a));case 4:l=e.sent,u=S.default.jobs(l),this.jobDetail=u,this.isLoading=!1;case 8:case"end":return e.stop()}}),e,this)}))),function(e){return i.apply(this,arguments)})},{key:"fetchRunDetail",value:(l=(0,s.default)(o.default.mark((function e(t){var a,r,n,l;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a=t.cluster,r=t.namespace,n=t.runName){e.next=3;break}return e.abrupt("return");case 3:return this.getRunDetailLoading=!0,e.next=6,request.get("/apis/devops.kubesphere.io/v1alpha1".concat(this.getPath({namespace:r,cluster:a}),"/").concat(this.module,"/").concat(n));case 6:return l=e.sent,this.runDetail=S.default.s2iruns(l),this.getRunDetailLoading=!1,e.abrupt("return",this.runDetail);case 10:case"end":return e.stop()}}),e,this)}))),function(e){return l.apply(this,arguments)})},{key:"deleteRun",value:(r=(0,s.default)(o.default.mark((function e(t){var a,r,n;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a=t.cluster,r=t.namespace,n=t.runName){e.next=3;break}return e.abrupt("return");case 3:return e.next=5,request.delete("/apis/devops.kubesphere.io/v1alpha1".concat(this.getPath({namespace:r,cluster:a}),"/").concat(this.module,"/").concat(n));case 5:case"end":return e.stop()}}),e,this)}))),function(e){return r.apply(this,arguments)})},{key:"fetchS2IRunRecords",value:(a=(0,s.default)(o.default.mark((function e(){var t,a,r,l,i,c,s,f,d,p,m,h,v,g,y,E=arguments;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=E.length>0&&void 0!==E[0]?E[0]:{},a=t.limit,r=void 0===a?10:a,l=t.name,i=t.page,c=void 0===i?1:i,s=t.order,f=t.reverse,t.workspace,d=t.cluster,p=t.namespace,m=t.more,h=(0,u.default)(t,["limit","name","page","order","reverse","workspace","cluster","namespace","more"]),this.list.data.length||(this.list.isLoading=!0),(v={}).conditions=(0,C.getFilterString)(k(k({},h),{},{"labels.devops.kubesphere.io/builder-name":l})),s||void 0!==f||(s="createTime",f=!0),r!==1/0&&(v.paging="limit=".concat(r,",page=").concat(c)),s&&(v.orderBy=s),v.reverse=!0,e.next=10,request.get("/kapis/resources.kubesphere.io/v1alpha2".concat(this.getPath({namespace:p,cluster:d}),"/").concat(this.module),v);case 10:return g=e.sent,(y=g.items.map(this.mapper)).forEach((function(e,t){e.count=g.total_count-t-10*(c-1),e.cluster=d})),this.list={data:m?[].concat((0,n.default)(this.list.data),(0,n.default)(y)):y,total:g.total_count||0,limit:Number(r)||10,page:Number(c)||1,order:s,reverse:f,filters:h,isLoading:!1,selectedRowKeys:[]},e.abrupt("return",this.list);case 15:case"end":return e.stop()}}),e,this)}))),function(){return a.apply(this,arguments)})},{key:"fetchPodsLogs",value:(t=(0,s.default)(o.default.mark((function e(t,a){var r,n,l;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if((0,_.default)(this.logData,"logURL","")!==t&&(this.logData={isLoading:!1,log:"",start:0,hasMore:!1}),this.logData.isLoading=!0,r=(0,_.default)(t.match(/namespaces\/([\w-/.]*)*\?/),"1"),this.containerName){e.next=11;break}return e.next=6,request.get("api/v1".concat(this.getPath({namespace:r,cluster:a})));case 6:if(n=e.sent,(0,_.default)(n,"status.containerStatuses[0]containerID")){e.next=10;break}return e.abrupt("return",O.default.error("container not ready"));case 10:this.containerName=(0,_.default)(n,"spec.containers[0].name","");case 11:return e.next=13,request.get("/api/v1".concat(this.getPath({namespace:r,cluster:a}),"/log"),{container:this.containerName,timestamps:!0,tailLines:1e3});case 13:l=e.sent,this.logData={logURL:t,isLoading:!1,log:l,start:0,hasMore:!1};case 15:case"end":return e.stop()}}),e,this)}))),function(e,a){return t.apply(this,arguments)})},{key:"apiVersion",get:function(){return"/apis/devops.kubesphere.io/v1alpha1"}}]),g}(r(a(472)).default),(0,y.default)(i.prototype,"fetchJobDetail",[E.action],Object.getOwnPropertyDescriptor(i.prototype,"fetchJobDetail"),i.prototype),(0,y.default)(i.prototype,"fetchRunDetail",[E.action],Object.getOwnPropertyDescriptor(i.prototype,"fetchRunDetail"),i.prototype),(0,y.default)(i.prototype,"deleteRun",[E.action],Object.getOwnPropertyDescriptor(i.prototype,"deleteRun"),i.prototype),(0,y.default)(i.prototype,"fetchS2IRunRecords",[E.action],Object.getOwnPropertyDescriptor(i.prototype,"fetchS2IRunRecords"),i.prototype),c=(0,y.default)(i.prototype,"getLog",[E.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(){var t=(0,s.default)(o.default.mark((function t(a,r){var n,l,u,i,c,s,f,d;return o.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.logData.logURL!==a&&(e.logData={isLoading:!0,log:"",start:0,hasMore:!0}),n=(0,C.parseUrl)(a).pathname.slice(1),l=(0,_.default)(n.match(/\/namespaces\/(.*)\/pods\//),"1"),u=(0,_.default)(n.match(/\/pods\/(.*)/),"1"),n="/kapis/tenant.kubesphere.io/v1beta1".concat(e.getPath({cluster:r}),"logs"),t.next=7,request.get(n,{namespaces:l,pods:u,container:e.containerName,timestamps:!0,tailLines:1e3,size:300,from:e.logData.start,sort:"asc"});case 7:i=t.sent,c=(0,_.default)(i,"query.records",[]),s=(0,_.default)(i,"query.total",[]),f=e.logData.log,(0,b.default)(c)&&(d=c.reduce((function(e,t){return e+t.log}),f),e.logData={logURL:a,log:d,start:e.logData.start+c.length,hasMore:s>e.logData.start+c.length,isLoading:!1});case 12:case"end":return t.stop()}}),t)})));return function(e,a){return t.apply(this,arguments)}}()}}),(0,y.default)(i.prototype,"fetchPodsLogs",[E.action],Object.getOwnPropertyDescriptor(i.prototype,"fetchPodsLogs"),i.prototype),i);t.default=T},function(e,a,r){"use strict";var n=r(20);r(12),r(5),r(11),r(6),r(84),r(975),r(18),r(48),r(16),r(9),r(13),r(10),r(4),r(22),r(23),r(24),r(17),r(85),r(64),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(45),r(5),r(11),r(6),r(84),r(975),r(18),r(28),r(48),r(191),r(42),r(16),r(159),r(34),r(15),r(9),r(13),r(10),r(4),r(22),r(23),r(57),r(24),r(17),r(85),r(64),r(7);var l=n(r(315)),u=n(r(43));r(41);var o=n(r(44)),i=n(r(30)),c=n(r(36)),s=n(r(37)),f=n(r(55)),d=n(r(56)),p=n(r(51)),m=n(r(0)),h=r(186),v=n(r(240)),g=n(r(952)),y=n(r(459)),E=n(r(26)),b=n(r(74)),_=n(r(3)),O=r(52),S=r(72),C=n(r(456)),D=n(r(2647));function k(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function N(e){for(var t=1;t=0?o[l]=e:o.push(e),(0,p.default)(u,"spec.rules",o),t.updateTLS(u),t.updateAnnotations(),a&&t.updateOverrides(),t.closeModal()},t.handleDelete=function(e){var a=t.props.isFederated,r=t.state.ingress,n=a?(0,d.default)(r,"spec.template"):r,l=(0,d.default)(n,"spec.rules",[]);l.splice(e,1),(0,p.default)(n,"spec.rules",l),t.updateTLS(n),t.updateAnnotations(),a&&t.updateOverrides(),t.closeModal()},t.changeIngressClassName=function(e){var a=t.state.ingress;t.props.isFederated?(0,p.default)(a,"spec.template.spec.ingressClassName",e):(0,p.default)(a,"spec.ingressClassName",e)},t.mapper=e.isFederated?k.default.federated(k.default.services):k.default.services,t.secretStore=new O.default,t.gatewayStore=new C.default,e.isFederated&&(t.secretStore=new S.default({module:t.secretStore.module}));var a=(0,d.default)(t.props.formData,"ingress",{});return t.state={ingress:a,old:(0,g.default)(a),services:Object.values((0,m.default)(t.props.formData,["application","ingress"])||{}).map((function(e){return t.mapper(e.service)})),showAdd:!1,selectRuleIndex:-1,operation:"",ingressNameOption:[]},t}return(0,i.default)(n,[{key:"componentDidMount",value:function(){var e=this.props,t=e.cluster,a=e.namespace;this.secretStore.fetchList({namespace:a,cluster:t,limit:-1}),this.updateName(),this.getIngressNameOptions()}},{key:"getIngressNameOptions",value:(a=(0,u.default)(l.default.mark((function e(){var t,a,r,n,u;return l.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=this.props,a=t.cluster,r=t.namespace,e.next=3,this.gatewayStore.getNewGatewayByProject({cluster:a,namespace:r});case 3:n=e.sent,u=(0,y.default)(n,(function(e){return{label:"".concat(e.ingressClass,"(").concat(e.name,")"),value:e.ingressClass}})),this.setState({ingressNameOption:u});case 6:case"end":return e.stop()}}),e,this)}))),function(){return a.apply(this,arguments)})},{key:"componentDidUpdate",value:function(e){var t=this,a=this.props.formData;(0,v.default)(a,e.formData)||(this.setState({ingress:(0,d.default)(a,"ingress",{}),services:Object.values((0,m.default)(this.props.formData,["application","ingress"])||{}).map((function(e){return t.mapper(e.service)}))}),this.updateName())}},{key:"updateTLS",value:function(e){var t=(0,d.default)(e,"spec.rules",[]).filter((function(e){return"https"===e.protocol&&e.secretName})).reduce((function(e,t){var a=t.secretName,r=t.host,n=t.clusters,l=e.find((function(e){return e.secretName===a}));return l?(l.hosts=l.hosts||[],-1===l.hosts.indexOf(r)&&l.hosts.push(r)):e.push({hosts:[r],secretName:a,clusters:n}),e}),[]);(0,p.default)(e,"spec.tls",t)}},{key:"updateOverrides",value:function(){var e=[],t=this.props,a=t.isFederated,r=t.projectDetail,n=this.state.ingress,l=a?(0,d.default)(n,"spec.template"):n,u=(0,d.default)(l,"metadata.annotations",[]),o=(0,d.default)(l,"spec.rules",[]),i=(0,d.default)(l,"spec.tls",[]);(0,d.default)(r,"clusters",[]).forEach((function(t){var a=function(e){return e.filter((function(e){return e.clusters.includes(t.name)})).map((function(e){return(0,m.default)(e,"clusters")}))},r=[{path:"/spec/rules",value:a(o)},{path:"/spec/tls",value:a(i)}];(0,h.default)(u)||r.unshift({path:"/metadata/annotations",value:u}),e.push({clusterName:t.name,clusterOverrides:r})})),(0,p.default)(n,"spec.overrides",e)}},{key:"render",value:function(){var e=this.props,a=e.cluster,r=e.namespace,n=e.gateway,l=e.isFederated,u=e.projectDetail,o=e.formData,i=this.state,c=i.showAdd,s=i.ingress,f=i.services,p=i.selectRuleIndex,m=i.ingressNameOption,v=l?(0,d.default)(s,"spec.template"):s,y=(0,d.default)(v,"spec.rules[".concat(p,"]"),{}),O=(0,_.toJS)(this.secretStore.list.data);return b.default.createElement("div",{className:R.default.wrapper},b.default.createElement("div",{className:R.default.step},b.default.createElement("div",null,t("ROUTE_SETTINGS")),b.default.createElement("p",null,t("ROUTE_SETTINGS_DESC"))),!(0,h.default)(m)&&b.default.createElement(b.default.Fragment,null,b.default.createElement("div",{className:R.default.title},t("SELECT_INGRESSCLASSNAME")),b.default.createElement("div",{className:R.default.ingressClassName},b.default.createElement(E.Select,{name:"spec.ingressClassName",options:m,onChange:this.changeIngressClassName}))),b.default.createElement("div",{className:R.default.title},t("ROUTING_RULES")),b.default.createElement("div",{className:R.default.rules},b.default.createElement(N.default,{data:v,gateway:n,isFederated:l,projectDetail:u,onEdit:this.showEdit,onAdd:this.showAdd,onDelete:this.handleDelete})),b.default.createElement(T.default,{visible:c,data:y,cluster:a,namespace:r,isFederated:l,projectDetail:u,onOk:this.handleAdd,onCancel:this.closeEditModal,gateway:n,services:f,secrets:O,validData:(0,g.default)((null==o?void 0:o.ingress)||(null==o?void 0:o.Ingress))}))}}]),n}(b.default.Component);a.default=I},function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(11),r(18),r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(11),r(18),r(42),r(4),r(23),r(57),r(17);var l=n(r(36)),u=n(r(37)),o=n(r(55)),i=n(r(56)),c=n(r(51)),s=n(r(0)),f=n(r(1)),d=n(r(26)),p=n(r(790)),m=n(r(1607)),h=n(r(2670));function v(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,c.default)(e);if(t){var n=(0,c.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,i.default)(this,a)}}var g=function(e){(0,o.default)(r,e);var a=v(r);function r(){return(0,l.default)(this,r),a.apply(this,arguments)}return(0,u.default)(r,[{key:"renderContent",value:function(){var e=this.props,a=e.data,r=e.onEdit,n=e.onDelete,l=e.onAdd,u=e.projectDetail,o=(0,d.default)(a,"spec.rules",[]),i=(0,d.default)(a,"spec.tls",[]);return s.default.createElement("ul",null,o.filter((function(e){return e.host})).map((function(e,t){return s.default.createElement(m.default,{key:"".concat(e.host,"-").concat(t),rule:e,tls:i,index:t,onEdit:r,onDelete:n,projectDetail:u})})),s.default.createElement("div",{className:h.default.add,onClick:l},s.default.createElement(p.default,{title:t("ADD_ROUTING_RULE"),description:t("ADD_ROUTING_RULE_DESC")})))}},{key:"render",value:function(){var e=this.props.error;return s.default.createElement("div",{className:h.default.wrapper},this.renderContent(),e&&s.default.createElement("p",{className:h.default.error},e))}}]),r}(s.default.Component);a.default=g,g.propTypes={data:f.default.object,onAdd:f.default.func,onDelete:f.default.func},g.defaultProps={data:{},onAdd:function(){},onDelete:function(){}}},function(e,t,a){e.exports={item:"_1kmSC__ph67BXHwPHIgdEt",icon:"WG4jVOyftN1J-3Qx0HfRQ",texts:"_2oTQpDYJHbQK9cSrwXrn5D",text:"_1kD3DJ4-DvWshSbWqKFvAW",title:"_3RZYExlr-Pjh7uww6Y6ZEb",description:"_9GO6DcfvOoroeH4GfG06N",clusters:"_367T3thgG7QtDZw5kAaWNy",add:"_2okV3MjC6xqfPB6AWhGQ3",paths:"_3dHV84JUfbE34Iu4EQYkNU",path:"f5_6svLoP460Z6PT3paLt",error:"_7YcL-GLR8AmCzM2qQJESE"}},function(e,a,r){"use strict";var n=r(20);r(12),r(5),r(11),r(6),r(29),r(18),r(48),r(97),r(16),r(9),r(13),r(10),r(4),r(22),r(23),r(17),r(38),r(7),r(32),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(45),r(5),r(11),r(6),r(29),r(18),r(28),r(48),r(97),r(42),r(16),r(34),r(15),r(9),r(13),r(10),r(4),r(22),r(23),r(57),r(17),r(38),r(7),r(32);var l=n(r(315)),u=n(r(30)),o=n(r(36)),i=n(r(37)),c=n(r(55)),s=n(r(56)),f=n(r(51)),d=n(r(26)),p=n(r(63)),m=n(r(74)),h=n(r(0)),v=n(r(1)),g=r(186),y=n(r(787)),E=n(r(829)),b=n(r(1330)),_=n(r(917)),O=r(72),S=r(52),C=n(r(1331));function D(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function k(e){for(var t=1;t1){a=!0;break}n++}})),a},n.handleProtocolChange=function(e){n.setState({protocol:e})},n.handleModeChange=function(e){n.setState({type:e})},n.handleSubmit=function(e){var t=n.props.onOk;if("auto"===n.state.type){var a=n.props,r=a.gateway,l=a.projectDetail,u=a.namespace,o=(0,d.default)(e,"http.paths[0].backend.service.name"),i=(0,d.default)(l,'_originData.metadata.labels["kubesphere.io/namespace"]')||u;t(k(k({},e),{},{protocol:"http",host:r.isHostName?r.defaultIngress:"".concat((0,S.withDot)(o)).concat((0,S.withDot)(i)).concat((0,S.withDot)(r.defaultIngress),"nip.io")}))}else t(e)},n.domainValidator=function(e,a,r){var l=n.props,u=l.isFederated,o=l.data,i=l.validData;if(!a)return r();var c=n.props.cluster||n.defaultClusters,s=(0,d.default)(i,"metadata.namespace","");u&&((0,m.default)(i,"apiVersion","networking.k8s.io/v1"),(0,m.default)(i,"kind","Ingress"),(0,m.default)(i,"spec",{})),(0,m.default)(i,"spec.rules",[{host:a}]),u?Promise.all(o.clusters.map((function(e){return n.ingressStore.checkValidDomain({cluster:e,namespace:s},i).then((function(e){return e.exist}))}))).then((function(a){if(a.some((function(e){return e})))return r({message:t("EXIT_DOMAIN_DESC"),field:e.field});r()})):(c=u?"":c,n.ingressStore.checkValidDomain({cluster:c,namespace:s},i).then((function(a){if(a.exist)return r({message:t("EXIT_DOMAIN_DESC"),field:e.field});r()})))},n.state={type:"specify",service:"",protocol:(0,d.default)(e,"data.protocol","http")},n.formRef=h.default.createRef(),n.ingressStore=new _.default,n}return(0,i.default)(r,[{key:"getType",value:function(e){var t=(0,d.default)(e,"host");if(!t)return"auto";var a=this.props.gateway,r=(0,d.default)(e,"http.paths[0].backend.service.name"),n=a.defaultIngress,l=a.namespace;return t==="".concat(r,".").concat(l,".").concat(n,".nip.io")?"auto":"specify"}},{key:"renderForm",value:function(){var e,a,r=this.state,n=r.type,l=r.protocol,u=this.props.services;return h.default.createElement(h.default.Fragment,null,"specify"===n&&h.default.createElement(h.default.Fragment,null,h.default.createElement(g.Form.Item,{label:t("DOMAIN_NAME_TCAP"),key:null===(e=this.props.data)||void 0===e||null===(a=e.clusters)||void 0===a?void 0:a.length,rules:[{required:!0,message:t("DOMAIN_NAME_EMPTY_DESC")},{pattern:O.PATTERN_HOST,message:t("INVALID_DOMAIN_DESC")},{validator:this.domainValidator}]},h.default.createElement(g.Input,{name:"host",autoFocus:!0})),h.default.createElement(g.Form.Item,{label:t("PROTOCOL")},h.default.createElement(g.Select,{name:"protocol",defaultValue:"http",onChange:this.handleProtocolChange,options:this.protocols})),"https"===l&&h.default.createElement(g.Form.Item,{label:t("SECRET")},h.default.createElement(g.Select,{name:"secretName",options:this.secrets,placeholder:" "}))),h.default.createElement(g.Form.Item,{label:t("PATH_PL"),rules:[{required:!0,message:t("PATH_EMPTY_DESC")},{validator:this.pathValidator,checkOnSubmit:!0}]},h.default.createElement(E.default,{name:"http.paths",itemType:"object",addText:t("ADD"),checkItemValid:this.checkItemValid},h.default.createElement(b.default,{services:u}))))}},{key:"render",value:function(){var e=this,a=this.props,r=a.data,n=a.isFederated;return h.default.createElement(y.default.Form,(0,l.default)({title:(0,p.default)(r)?t("ADD_ROUTING_RULE"):t("EDIT_ROUTING_RULES"),width:920},this.props,{onOk:this.handleSubmit}),n&&h.default.createElement(g.Form.Group,{label:t("CLUSTER")},h.default.createElement(g.Form.Item,null,h.default.createElement(C.default,{name:"clusters",options:this.clusters,defaultValue:this.defaultClusters,onChange:function(){(0,m.default)(r,"host",""),e.forceUpdate()}}))),h.default.createElement(g.Form.Group,null,this.renderForm()))}},{key:"protocols",get:function(){return[{label:"HTTP",value:"http"},{label:"HTTPS",value:"https"}]}},{key:"secrets",get:function(){return this.props.secrets.map((function(e){return{label:e.name,value:e.name}}))}},{key:"clusters",get:function(){return(0,d.default)(this.props,"projectDetail.clusters",[]).slice()}},{key:"clusterNames",get:function(){var e;return null==this||null===(e=this.clusters)||void 0===e?void 0:e.map((function(e){return e.name}))}},{key:"defaultClusters",get:function(){return(0,d.default)(this.props,"projectDetail.clusters",[]).map((function(e){return e.name}))}}]),r}(h.default.Component);a.default=T,T.propTypes={data:v.default.object,secrets:v.default.array,services:v.default.array,gateway:v.default.object},T.defaultProps={data:{},secrets:[],services:[],gateway:{}}},function(e,t,a){e.exports={wrapper:"_2hbsokbzN5hp5LxUC8iC_g",step:"aaRAmJaOKA075Il_FYhK2",title:"_24SLKDqrt12UAU6QIqBAa6",ingressClassName:"_2dwjt-_eLMxBcellsKHTca",rules:"_2vD7NSXS51pA2tah6hdoeM"}},function(e,a,r){"use strict";r(15);var n=r(20);r(6),r(10),r(4),r(23),r(17),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(6),r(28),r(42),r(10),r(4),r(23),r(57),r(17),r(7);var l=n(r(36)),u=n(r(37)),o=n(r(55)),i=n(r(56)),c=n(r(51)),s=n(r(58)),f=n(r(0)),d=n(r(1)),p=r(186),m=n(r(884)),h=n(r(2674));function v(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,c.default)(e);if(t){var n=(0,c.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,i.default)(this,a)}}var g=function(e){(0,o.default)(r,e);var a=v(r);function r(e){var t,n,u,o,i,c;return(0,l.default)(this,r),(t=a.call(this,e)).data=(n=e.formTemplate,u=n.application,o=n.ingress,i=(0,s.default)(n,["application","ingress"]),c=[u,o],Object.keys(i).forEach((function(e){i[e].workload&&c.push(i[e].workload),i[e].service&&c.push(i[e].service)})),c),t.editor=f.default.createRef(),t}return(0,u.default)(r,[{key:"getData",value:function(){return this.editor.current.getData()}},{key:"render",value:function(){return f.default.createElement("div",{className:h.default.wrapper},f.default.createElement("div",{className:h.default.step},f.default.createElement("div",null,t("EDIT_YAML")),f.default.createElement("p",null,t("CREATE_BY_YAML_DESC"))),f.default.createElement("div",{className:h.default.codeWrapper},f.default.createElement("div",{className:h.default.pane},f.default.createElement("div",{className:h.default.title},f.default.createElement(p.Icon,{name:"coding",size:20}),f.default.createElement("span",null,t("YAML_FILE"))),f.default.createElement(m.default,{ref:this.editor,className:h.default.editor,value:this.data}))))}}]),r}(f.default.Component);a.default=g,g.propTypes={formTemplate:d.default.object,onOk:d.default.func,isSubmitting:d.default.bool},g.defaultProps={onOk:function(){},isSubmitting:!1}},function(e,t,a){e.exports={wrapper:"_2DbNJPdfgI4dgBJisOntmF",step:"_2R0Y1Bov3UM9xHfuQx18YU",codeWrapper:"A3dbNbkmfuxiqBXaeGMFW",pane:"_3pEJUsXvQi9so5hxtsl2EC",editor:"_2dd7dYos5S09v8It9Eak_Z",title:"_3H0QVPSbai5_e60lcson19"}},function(e,t,a){e.exports={modal:"p8a6H-jXk5OnSxqkTWQn7",body:"QLzi6PtdDSAbo1ZjB_ejT",wrapper:"_1FueZNETQGMwoOrD2sbcQW",steps:"_2u31JZwaeV3OsrEiBfQM1h",header:"_1O2uhbM6HbwUYsq6yl2mBa",headerBottom:"_1b15o9UoGNxLLpM-BKvPOU",title:"_2Q1EYtOJAJrVd0Pila76Zv",content:"_2EnfwBZjZ9ExnG507HuLf0",footer:"_1Y38fHH45ZkbYyovxA_mJj"}},,,function(e,t,a){e.exports={wrapper:"_7-12p6hcf7X0VthZc5rST"}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,a){e.exports={wrapper:"_3vD3gkqPGNxpeg-IpdujoY"}},,function(e,t,a){"use strict";a(15);var r=a(20);a(5),a(11),a(16),a(9),a(4),a(23),a(17),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(45),a(5),a(11),a(42),a(16),a(9),a(4),a(23),a(57),a(17);var n,l=r(a(61)),u=r(a(36)),o=r(a(37)),i=r(a(55)),c=r(a(56)),s=r(a(51)),f=r(a(49)),d=a(14);function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,s.default)(e);if(t){var n=(0,s.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,c.default)(this,a)}}var m=(n=function(e){(0,i.default)(a,e);var t=p(a);function a(){return(0,u.default)(this,a),t.apply(this,arguments)}return(0,o.default)(a,[{key:"addItem",value:function(e){this.data=[].concat((0,l.default)(this.data),[e])}},{key:"deleteItem",value:function(e){this.data=this.data.filter((function(t){return t.name!==e.name}))}}]),a}(r(a(120)).default),(0,f.default)(n.prototype,"addItem",[d.action],Object.getOwnPropertyDescriptor(n.prototype,"addItem"),n.prototype),(0,f.default)(n.prototype,"deleteItem",[d.action],Object.getOwnPropertyDescriptor(n.prototype,"deleteItem"),n.prototype),n);t.default=m},,,,,,,,,,,,,,,,,,,,,,function(e,t,a){"use strict";a(15),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={"tags-duotone":'\n\n\n\n',"chain-off-duotone":'\n\n\n\n\n',event:'\n\n\n',"switch-button-duotone":'\n ',"volume-off-duotone":'',"bell-off-duotone":'',"earth-fill":'',"clock-duotone":''}},,,,,,function(e,t,a){e.exports={desc:"_2tdVqiHSAO-_hh2j8kmDdY",narrowItem:"_2dCR56ukrNg2YglIMXZMEw"}},,,,,,,,,,,,,,,,,,,,,function(e,t,a){e.exports={wrapper:"_2KCv1PnULxt1qFyQJeysBX",header:"_1F-0HDMWN3VFriGu-tr3Yx",title:"_13MPI-7qlosXGEs9LAnahA",select:"_3NcEBNmpoac-j5yvlYEfRp"}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,a){e.exports={accessModeWrapper:"t3ac6iAwz0VNleKctOM3q",accessMode:"_2ntH9Ni8zzlXvi9v2KCUYd"}},function(e,t,a){e.exports={wrapper:"_3RvD5UEuKHt_T1xybRhGfS",select:"_1aQ7ChfUm20NELU7IiXMSM"}},function(e,t,a){e.exports={wrapper:"btc8Ihe1GfSKeBPW4ocRC",value:"_1xboWqu4MnvlYbNanj_e",text:"_2_YxJhzeMUvmjUAngLClSH",buttons:"_28QqiVnCn-59TULfI9fWSA"}},function(e,a,r){"use strict";r(15);var n=r(20);r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(42),r(4),r(23),r(57),r(17);var l=n(r(36)),u=n(r(37)),o=n(r(55)),i=n(r(56)),c=n(r(51)),s=n(r(0)),f=n(r(1)),d=n(r(3)),p=r(186),m=n(r(240)),h=n(r(952)),v=n(r(2921));function g(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,c.default)(e);if(t){var n=(0,c.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,i.default)(this,a)}}var y=function(e){(0,o.default)(r,e);var a=g(r);function r(e){var n;return(0,l.default)(this,r),(n=a.call(this,e)).uploaderProps={name:"file",action:"/images/upload",accept:"image/*",beforeUpload:function(e){return!(e.size>2097152)||(m.default.error(t("FILE_OVERSIZED_TIP")),!1)},onSuccess:function(t){t&&e.onChange(t.path)}},n}return(0,u.default)(r,[{key:"render",value:function(){var e=this.props,t=e.className,a=e.value,r=e.placeholder,n=e.defaultLogo;return s.default.createElement(p.Columns,{className:(0,d.default)("is-variable is-2",t)},s.default.createElement(p.Column,{className:"is-narrow"},s.default.createElement("img",{className:(0,d.default)(v.default.image,"upload-preview"),src:a||n})),s.default.createElement(p.Column,null,s.default.createElement(h.default,this.uploaderProps,s.default.createElement("div",{className:v.default.upload},s.default.createElement(p.Icon,{size:32,name:"upload"}),s.default.createElement("p",null,r)))))}}]),r}(s.default.Component);a.default=y,y.propTypes={className:f.default.string,defaultLogo:f.default.string,placeholder:f.default.string,value:f.default.string,onChange:f.default.func},y.defaultProps={className:"",value:"",onChange:function(){}}},function(e,t,a){e.exports={image:"_167OKUS_EKBqwDQxcIx-4e",upload:"_2t1CYrv42g1fxOKAN8Cxrv"}},function(e,t,a){e.exports={wrapper:"_4ZwD-XBeeb89uHJUpnc9X",trigger:"_39IOrUHzeoispGPqyhIGmq",content:"_1ddoFZzzUSM-yo3jVhK8Dv",rules:"_3J0m5Rox1YBbKgpQhXuhAt",barWrapper:"_3cTk_xH00ce2_lz197ulvB",bar:"pMEaabr1XWMm3r_fW2afr",tip:"yLbagG9qc0xvXpKUX3Ltx",icon:"_1CXCvE_9U9AkVY2j9zINU2",selected:"_2_Gwnizz4eeI_iF5yIUwav"}},function(e,t,a){e.exports={wrapper:"_3SwZze98375W9bhfjiqN-o",slider:"_28M70O8IpxNUXf81fNeAAx",floatContent:"XqxDCyE_PSNWzijpRx5vU"}},function(e,t,a){},function(e,t,a){e.exports={container:"_2VDZ-7eQWd8zMV87f6SbU-",select:"_1njJEaKU6jyyl9YDFHgWWW"}},function(e,t,a){e.exports={option:"_1Iz4ohvzuXgnhL83dbwRxn"}},function(e,t,a){"use strict";var r=a(157),n=a(20);a(12),a(5),a(11),a(6),a(9),a(13),a(10),a(4),a(23),a(17),a(7),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(12),a(45),a(5),a(11),a(6),a(28),a(42),a(34),a(15),a(9),a(13),a(10),a(4),a(23),a(57),a(17),a(7);var l=n(a(30)),u=n(a(58)),o=n(a(36)),i=n(a(37)),c=n(a(55)),s=n(a(56)),f=n(a(51)),d=r(a(0)),p=n(a(158)),m=n(a(470));function h(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function v(e){for(var t=1;t63)return void h.default.error({content:t("PATTERN_TAG_VALUE_INVALID_TIP")});e.setState({value:""},(function(){n(u)}))}}else"Backspace"===a.key&&l()},e}return(0,o.default)(r,[{key:"render",value:function(){var e=this,t=this.state.value,a=this.props,r=a.style,n=a.placeholder;return f.default.createElement("div",{style:r,className:g.default.autosuggest,ref:function(t){e.autosuggest=t}},f.default.createElement(m.default,{className:g.default.autosuggestInput,type:"text",onKeyDown:this.handlePressEnter,onChange:this.handleChange,placeholder:n,ref:function(t){e.inputBox=t},value:t}))}}]),r}(f.Component);E.propTypes={onChange:d.default.func,onDelete:d.default.func,prefixCls:d.default.string,className:d.default.string,style:d.default.string,placeholder:d.default.string},E.defaultProps={prefixCls:"autosuggest",onAdd:p.default,onDelete:p.default,onChange:p.default};var b=E;a.default=b},,function(e,t,a){e.exports={extraBox:"_1XMQaAa8OBSWxpBisNQs07",IconBox:"_2IfBBHb39w_3FGYztJhAaA","input-padding-right-30":"_1Qlf_8Cc_90DXEXYz5Vg_y"}},function(e,t,a){"use strict";a(15);var r=a(20);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"UnitInput",{enumerable:!0,get:function(){return u.default}}),t.TimeUnitInput=void 0;var n=a(52),l=a(467),u=r(a(2933)),o=(0,n.withProps)(u.default,{units:l.timeUnit});t.TimeUnitInput=o},function(e,a,r){"use strict";var n=r(157),l=r(20);r(12),r(11),r(31),r(6),r(84),r(18),r(27),r(9),r(13),r(10),r(85),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(11),r(31),r(6),r(84),r(18),r(28),r(27),r(34),r(15),r(9),r(13),r(10),r(4),r(85),r(7);var u=l(r(315)),o=l(r(96)),i=l(r(30)),c=l(r(58)),s=r(186),f=l(r(799)),d=l(r(1)),p=n(r(0)),m=r(52),h=l(r(2934));function v(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function g(e){for(var t=1;t0&&void 0!==o[0]?o[0]:{},r=e.props.cluster,n=e.state.groupNamespace,t.next=5,e.projectStore.fetchList(T({cluster:r},a));case 5:l=t.sent,u=l.map((function(e){return T(T({},e),{},{nodegroup:n.some((function(t){return t.name===e.name&&t.nodegroup}))})})),e.setState({projectData:[].concat((0,i.default)(e.state.projectData),(0,i.default)(u))});case 8:case"end":return t.stop()}}),t)}))),e.fetchNodeGroupStore=(0,d.default)(s.default.mark((function t(){var a,r;return s.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=e.props.cluster,t.next=3,e.nodeGroupStore.fetchAllNamespaces({cluster:a,limit:"-1",page:1});case 3:r=t.sent,e.setState({groupNamespace:r.map((function(e){return{name:e.name,nodegroup:""===(0,_.default)(e,'labels["apps.edgewize.io/nodegroup"]')}}))});case 5:case"end":return t.stop()}}),t)}))),e.optionRenderer=function(a){return y.default.createElement("div",{className:k.default.tipBox},y.default.createElement("div",{className:k.default.option},a.isFedManaged?y.default.createElement("img",{className:k.default.indicator,src:"/assets/cluster.svg"}):y.default.createElement(O.Icon,{name:"project"}),a.label),(a.isFedManaged||!a.nodegroup)&&y.default.createElement(O.Tooltip,{content:e.props.tipMessage||(a.isFedManaged?t("FEDPROJECT_RESOURCE_TIP"):!a.nodegroup&&"nodegrup")},y.default.createElement(O.Icon,{className:k.default.tip,name:"question"})))},e}return(0,m.default)(r,[{key:"componentDidMount",value:function(){this.fetchData()}},{key:"getProjects",value:function(){var e=this.props.defaultValue,t=this.state.projectData,a=t.filter((function(e){return"Terminating"!==e.status})).map((function(e){return{label:e.name,value:e.name,disabled:e.isFedManaged||!e.nodegroup,isFedManaged:e.isFedManaged,nodegroup:e.nodegroup}}));return e&&!t.find((function(t){return t.name===e}))&&a.unshift({label:e,value:e}),a}},{key:"render",value:function(){var e=this.props,t=(e.cluster,(0,o.default)(e,["cluster"]));return!t.value&&t.defaultValue&&(t.value=t.defaultValue),y.default.createElement(O.Select,(0,u.default)({options:this.getProjects(),pagination:(0,b.default)(this.projectStore.list,["page","limit","total"]),isLoading:this.projectStore.list.isLoading,valueRenderer:this.optionRenderer,optionRenderer:this.optionRenderer,onFetch:this.fetchProjects,searchable:!0,clearable:!0,placeholder:" "},t))}}]),r}(y.Component))||f;a.default=w},function(e,t,a){e.exports={option:"_3Ct5TvyryxAmQgGcuMAOjM",tip:"_1Y5Wsb92G4yhdT_HetNO3G",tipBox:"_167pjDZ6cyN37GR-Q-Pp9f"}},,,,,,,,,,,,,,,,,,function(e,t,a){e.exports={reason:"_2dAqW00YgMOSGORjuFVBGs",condition:"_3AeobLZKN_rHf4jlnsiMQk",title:"_3TkAdRLw937iktrSAezDu7",warning:"ALCcOSqNlYNtz2BKsiq8d",error:"_28enlxYAYUjvqkyLqd5qPC",reasonDesc:"dlkjsSoal876oQiTVfCr7"}},function(e,a,r){"use strict";r(15);var n=r(157);r(84),r(10),r(85),Object.defineProperty(a,"__esModule",{value:!0}),a.default=function(e){var a=e.data,r=(0,l.useMemo)((function(){var e;return null==a||null===(e=a.annotations)||void 0===e?void 0:e["kubesphere.io/relatedHPA"]}),[a]),n=(0,l.useMemo)((function(){return Object.keys(a.labels).includes("autoscaling.kubeshpere.io/name")}),[a]),o=(0,l.useMemo)((function(){return n?t("WORKLOAD_SCALING_TOOL_TIP"):t("HPA_SET_TIP")})),i=(0,l.useMemo)((function(){return n?"stretch":"timed-task"}));if(!r&&!n)return null;return l.default.createElement(u.Tooltip,{content:o},l.default.createElement(u.Icon,{name:i,size:18}))},r(84),r(10),r(85);var l=n(r(0)),u=r(186)},function(e,t,a){e.exports={status:"_11_Dlx6pO5mTVNNIwnnhEU"}},,,,,,,,,,,,,,,,,function(e,a,r){"use strict";var n=r(20);r(12),r(11),r(31),r(6),r(18),r(16),r(9),r(13),r(10),r(4),r(23),r(17),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(45),r(11),r(31),r(6),r(18),r(28),r(42),r(16),r(34),r(15),r(9),r(13),r(10),r(4),r(23),r(57),r(17),r(7);var l=n(r(315)),u=n(r(58)),o=n(r(30)),i=n(r(36)),c=n(r(37)),s=n(r(55)),f=n(r(56)),d=n(r(51)),p=n(r(0)),m=n(r(1)),h=n(r(3)),v=n(r(63)),g=n(r(26)),y=r(186),E=n(r(828)),b=n(r(2974)),_=n(r(1690));function O(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function S(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},a=t.map((function(e){var t=e.host,a=void 0===t?"":t,r=e.port,n=void 0===r?"":r;return"".concat(a.replace(/,/g,""),":").concat(n)})).join(",");e.props.onChange(a)},e}return(0,o.default)(r,[{key:"render",value:function(){var e=(0,d.default)(this.props,"value","").split(",").map((function(e){var t=e.match(/(.*):(.*)$/)||[],a=(0,l.default)(t,3),r=a[1],n=void 0===r?"":r,u=a[2];return{port:void 0===u?"":u,host:n}}));return f.default.createElement(m.default,{addText:t("ADD_SERVICE_ADDRESS"),itemType:"object",value:e,onChange:this.onChange},f.default.createElement(p.default,{className:g.default.address},f.default.createElement(v.Input,{name:"host",className:g.default.host,placeholder:t("EXAMPLE_VALUE",{value:"192.168.1.10"})}),f.default.createElement(h.default,{className:g.default.port,name:"port",min:0,max:65535,placeholder:t("EXAMPLE_VALUE",{value:9200}),integer:!0})))}}]),r}(f.default.Component);a.default=E},function(e,t,a){e.exports={address:"_2Y-pkqthIJRIsP4ExOInjH",host:"h1zpisJbm-ZoDbaSXptJj",port:"_2UTT5V7_N5_xNrvXpJIG5b"}},function(e,t,a){e.exports={path:"_1MJQsfqeDDP96NX-4TVyLe",columns:"_2dymll3HxLR4qGfdodyzRb",desc:"_1q83WoQ9jB2uwX0GBmVgmT"}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,a){"use strict";a(15);var r=a(20);a(12),a(109),a(5),a(4),a(23),a(17),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(12),a(109),a(45),a(5),a(42),a(4),a(23),a(57),a(17);var n=r(a(30)),l=r(a(36)),u=r(a(37)),o=r(a(55)),i=r(a(56)),c=r(a(51)),s=r(a(0)),f=r(a(1)),d=a(186),p=r(a(3)),m=r(a(1196));function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,c.default)(e);if(t){var n=(0,c.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,i.default)(this,a)}}var v=function(e){(0,o.default)(a,e);var t=h(a);function a(){var e;(0,l.default)(this,a);for(var r=arguments.length,n=new Array(r),u=0;un-1)E.default.error({content:t.html("MAX_EAMIL_COUNT",{count:n}),duration:1e3});else if(r.some((function(e){return e===a})))E.default.error({content:t("EMAIL_EXISTS"),duration:1e3});else{if(b.PATTERN_EMAIL.test(a))return!0;E.default.error({content:t("INVALID_EMAIL"),duration:1e3})}else E.default.error({content:t("EMAIL_EMPTY_DESC"),duration:1e3})},e.handleAdd=function(t){var a=e.props,r=a.value;(0,a.onChange)([].concat((0,l.default)(r),[t]))},e.handleDelete=function(t){var a=e.props,r=a.value;(0,a.onChange)(r.filter((function(e){return e!==t})))},e.renderListItem=function(a){return f.default.createElement("div",null,a," ",a===e.userEmail&&f.default.createElement(v.Tag,null,t("CURRENT_USER")))},e}return(0,o.default)(r,[{key:"render",value:function(){var e=this,t=this.props,a=t.value,r=t.className;return f.default.createElement("div",{className:(0,p.default)(O.default.wrapper,r)},f.default.createElement(y.default,{placeholder:"user@example.com",validate:this.validateMail,onAdd:this.handleAdd,showIcon:!0}),!(0,m.default)(a)&&f.default.createElement("div",{className:O.default.listWrapper},f.default.createElement(g.default,null,a.map((function(t){return f.default.createElement(g.default.Item,{key:t,className:O.default.listItem,title:e.renderListItem(t),onDelete:function(){return e.handleDelete(t)}})})))))}},{key:"userEmail",get:function(){return(0,h.default)(globals,"user.email")}}]),r}(f.default.Component);a.default=C,C.propTypes={value:d.default.array,onChange:d.default.func},C.defaultProps={value:[],onChange:function(){}}},,function(e,t,a){"use strict";a(15);var r=a(20);a(5),a(11),a(18),a(4),a(23),a(17),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(45),a(5),a(11),a(18),a(42),a(4),a(23),a(57),a(17);var n=r(a(61)),l=r(a(36)),u=r(a(37)),o=r(a(55)),i=r(a(56)),c=r(a(51)),s=r(a(0)),f=r(a(1)),d=r(a(3)),p=r(a(63)),m=r(a(812)),h=r(a(1060)),v=r(a(1378));function g(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,c.default)(e);if(t){var n=(0,c.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,i.default)(this,a)}}var y=function(e){(0,o.default)(a,e);var t=g(a);function a(){var e;(0,l.default)(this,a);for(var r=arguments.length,u=new Array(r),o=0;o 85',for:"1m",labels:{rule_id:"e56cf89c-c323-4754-a6c4-2f4ff4e91458"},severity:"warning"},{alert:"AvailableDiskLessThan15Percent",annotations:{message:"",summary:"磁盘可用百分比小于15%。"},expr:'round(sum(kubelet_volume_stats_available_bytes{namespace="namespaceName",persistentvolumeclaim=~"data-0-clusterId-kafka.*"})/sum(kubelet_volume_stats_capacity_bytes{namespace="namespaceName",persistentvolumeclaim=~"data-0-clusterId-kafka.*"})*100,0.1) < 15',for:"1m",labels:{rule_id:"9c52bb99-4146-4ab6-8002-2bebac7f9bb2"},severity:"warning"},{alert:"ExistOfflinePartitions",annotations:{message:"",summary:"存在不可用的partitions。"},expr:'sum(kafka_controller_kafkacontroller_offlinepartitionscount{namespace="namespaceName",strimzi_io_cluster="clusterId"}) > 0',for:"1m",labels:{rule_id:"4bce37ac-fe22-42b9-854a-097a578bb52a"},severity:"error"}]}}},function(e,t,a){"use strict";a(15),Object.defineProperty(t,"__esModule",{value:!0}),t.redisAlertYaml=void 0;t.redisAlertYaml={apiVersion:"alerting.kubesphere.io/v2beta1",kind:"RuleGroup",metadata:{annotations:{dmp_managed_field:'[{"metricType":"Memory Usage","comparator":">=","thresholds":"70"}]',"kubesphere.io/creator":"admin"},creationTimestamp:"2023-10-07T08:11:25Z",generation:1,labels:{"alerting.kubesphere.io/enable":"true",app_instance:"clusterId",openpitrix_app_id:"app-redis-sentinel"},name:"clusterId-default",namespace:"namespaceName",uid:"94e4f243-9027-4cea-a663-7b4989d2c4cc"},spec:{rules:[{alert:"MemoryUsage",annotations:{message:"RadonDB Redis: clusterId,当前内存使用率超过 %。 当前值:{{ $value }}",summary:"RadonDB Redis 【clusterId】 当前内存使用率超过 %"},expr:'redis_memory_used_bytes{namespace="namespaceName",service=~".*clusterId.*"}/redis_memory_max_bytes{namespace="namespaceName",service=~".*clusterId.*"}*100 >= 70',for:"1m",labels:{rule_id:"794e0a39-4d7c-42fc-91ae-c8c45d8110b3"},severity:"warning"}]}}},function(e,t,a){"use strict";a(15),Object.defineProperty(t,"__esModule",{value:!0}),t.openSearchAlertYaml=void 0;t.openSearchAlertYaml={apiVersion:"alerting.kubesphere.io/v2beta1",kind:"RuleGroup",metadata:{annotations:{dmp_managed_field:'[{"metricType":"OpenSearchAvailableDiskLessThan15%","comparator":"-","thresholds":""},{"metricType":"OpenSearchAvailableDiskLessThan10%","comparator":"-","thresholds":""},{"metricType":"OpenSearchHeapMemTooHigh90%","comparator":"-","thresholds":""}]',"kubesphere.io/creator":"admin"},creationTimestamp:"2023-10-07T07:53:28Z",generation:3,labels:{"alerting.kubesphere.io/enable":"true",app_instance:"clusterId",openpitrix_app_id:"app-opensearch"},name:"clusterId-default",namespace:"namespaceName",uid:"defeed56-e6b0-4b33-a677-ef232b5c8329"},spec:{rules:[{alert:"AvailableDiskLessThan15Percent",annotations:{message:"RadonDB OpenSearch: clusterId,磁盘可用百分比小于15%。 当前值:{{ $value }}",summary:"RadonDB OpenSearch 【clusterId】 磁盘可用百分比小于15%"},expr:'min(round(opensearch_fs_total_available_bytes{service="clusterId",namespace="namespaceName"}/opensearch_fs_total_total_bytes{service="clusterId",namespace="namespaceName"}*100,0.1))<15',for:"1m",labels:{rule_id:"0d159444-bd60-4777-a327-075487d62549"},severity:"warning"},{alert:"AvailableDiskLessThan10Percent",annotations:{message:"RadonDB OpenSearch: clusterId,磁盘可用百分比小于10%。 当前值:{{ $value }}",summary:"RadonDB OpenSearch 【clusterId】 磁盘可用百分比小于10%"},expr:'min(round(opensearch_fs_total_available_bytes{service="clusterId",namespace="namespaceName"}/opensearch_fs_total_total_bytes{service="clusterId",namespace="namespaceName"}*100,0.1))<10',for:"1m",labels:{rule_id:"37ac67a4-3fca-41d6-a54d-0813d5a7ee21"},severity:"error"}]}}},function(e,t,a){"use strict";a(15),Object.defineProperty(t,"__esModule",{value:!0}),t.pgAlertYaml=void 0;t.pgAlertYaml={apiVersion:"alerting.kubesphere.io/v2beta1",kind:"RuleGroup",metadata:{annotations:{dmp_managed_field:'[{"metricType":"PGDisk","comparator":">=","thresholds":85}]',"kubesphere.io/creator":"admin"},creationTimestamp:"2023-10-08T04:59:40Z",generation:1,labels:{"alerting.kubesphere.io/enable":"true",app_instance:"clusterId",openpitrix_app_id:"app-postgresql"},name:"clusterId-default",namespace:"namespaceName",uid:"2c3c72f8-5239-45b8-af87-9721cea217fd"},spec:{rules:[{alert:"PGDisk",annotations:{message:"RadonDB PostgreSQL: clusterId,磁盘使用率超过 %。 当前值:{{ $value }}",summary:"RadonDB PostgreSQL 【clusterId】 磁盘使用率超过 %。"},expr:'kubelet_volume_stats_used_bytes{persistentvolumeclaim=~".*clusterId-readwriteinstance.*|.*clusterId-readonlyinstance.*"} / kubelet_volume_stats_capacity_bytes{persistentvolumeclaim=~".*clusterId-readwriteinstance.*|.*clusterId-readonlyinstance.*"} * 100 >= 85',for:"1m",labels:{rule_id:"e7a5e07a-979f-4503-8fda-1c992e920d80"},severity:"warning"}]}}},function(e,t,a){"use strict";a(15),Object.defineProperty(t,"__esModule",{value:!0}),t.MySQLAlertYaml=void 0;t.MySQLAlertYaml={apiVersion:"alerting.kubesphere.io/v2beta1",kind:"RuleGroup",metadata:{annotations:{dmp_managed_field:'[{"metricType":"MySQLDisk","comparator":">=","thresholds":85}]',"kubesphere.io/creator":"admin"},creationTimestamp:"2023-10-09T03:17:04Z",generation:1,labels:{"alerting.kubesphere.io/enable":"true",app_instance:"clusterId",openpitrix_app_id:"app-mysql"},name:"clusterId-default",namespace:"namespaceName",uid:"0361ef38-ed49-477f-a473-0da2d5a90b45"},spec:{rules:[{alert:"MySQLDisk",annotations:{message:"RadonDB MySQL: clusterId,磁盘使用率超过 %。 当前值:{{ $value }}",summary:"RadonDB MySQL 【clusterId】 磁盘使用率超过 %"},expr:'(kubelet_volume_stats_used_bytes{persistentvolumeclaim=~".*clusterId.*"} / kubelet_volume_stats_capacity_bytes{persistentvolumeclaim=~".*clusterId.*"} * 100) >= 85',for:"1m",labels:{rule_id:"c0b9010a-d74c-4bf9-8b5a-b7a6105f6f93"},severity:"warning"}]}}},,function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(18),r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(18),r(42),r(4),r(319),r(23),r(57),r(17);var l=n(r(30)),u=n(r(36)),o=n(r(37)),i=n(r(55)),c=n(r(56)),s=n(r(51)),f=n(r(0)),d=n(r(1)),p=n(r(3)),m=r(186),h=n(r(836)),v=n(r(3235));function g(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,s.default)(e);if(t){var n=(0,s.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,c.default)(this,a)}}var y=function(e){(0,i.default)(r,e);var a=g(r);function r(e){var t;return(0,u.default)(this,r),(t=a.call(this,e)).handleClickImage=function(e){var a=e.currentTarget.dataset.idx;t.stopAnimation(),t.setState({showOverlay:!0,currentIdx:parseInt(a,10)||0})},t.closeOverlay=function(){t.setState({showOverlay:!1})},t.getPrevNextIdx=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"next",a=t.state.currentIdx,r=t.props.images.length;return"next"===e?a+1>=r?0:a+1:a-1<0?r-1:a-1},t.showNextPic=function(){t.setState({currentIdx:t.getPrevNextIdx()})},t.handleClickPrev=function(){t.goToIdx(t.getPrevNextIdx("prev"))},t.handleClickNext=function(){t.goToIdx(t.getPrevNextIdx())},t.handleClickIndicator=function(e){t.goToIdx(e)},t.goToIdx=function(e){t.stopAnimation(),t.setState({currentIdx:e})},t.state={showOverlay:!1,currentIdx:e.defaultIdx||0},t}return(0,o.default)(r,[{key:"componentDidUpdate",value:function(e,t){var a=this.state.currentIdx;a!==t.currentIdx&&this.props.onChangeImage(this.props.images[a])}},{key:"componentWillUnmount",value:function(){this.stopAnimation()}},{key:"stopAnimation",value:function(){this.timer&&(clearInterval(this.timer),this.timer=null)}},{key:"renderOverlay",value:function(){var e=this.state,t=e.showOverlay,a=e.currentIdx,r=this.props.images[a];return t?f.default.createElement("div",{className:v.default.overlay},f.default.createElement("div",{className:v.default.closeOverlay,onClick:this.closeOverlay},f.default.createElement(m.Icon,{name:"close",size:24,type:"dark"})),f.default.createElement("div",{className:v.default.viewCont},f.default.createElement("label",{className:v.default.pre,onClick:this.handleClickPrev},f.default.createElement(m.Icon,{name:"chevron-left",size:24,type:"dark"})),f.default.createElement("label",{className:v.default.next,onClick:this.handleClickNext},f.default.createElement(m.Icon,{name:"chevron-right",size:24,type:"dark"})),f.default.createElement("div",{className:v.default.overlayPic},f.default.createElement(h.default,{src:r})))):null}},{key:"render",value:function(){var e=this,a=this.props,r=a.images,n=a.className,u=this.state.currentIdx,o=210*r.length,i=210*u;return r.length?f.default.createElement("div",{className:(0,p.default)(v.default.slider,n)},f.default.createElement("label",{className:v.default.pre,onClick:this.handleClickPrev},f.default.createElement(m.Icon,{name:"chevron-left",size:24,type:"dark"})),f.default.createElement("label",{className:v.default.next,onClick:this.handleClickNext},f.default.createElement(m.Icon,{name:"chevron-right",size:24,type:"dark"})),r.length>2&&f.default.createElement("div",{className:v.default.dotList},r.map((function(t,a){return f.default.createElement("label",{key:"".concat(t,"-").concat(a),className:v.default.dot,onClick:function(){return e.handleClickIndicator(a)}},f.default.createElement("span",{className:(0,p.default)((0,l.default)({},v.default.active,u===a))}))}))),f.default.createElement("div",{className:v.default.listOuter},f.default.createElement("ul",{className:v.default.pictureList,style:{width:"".concat(o,"px"),left:"-".concat(i,"px")}},r.map((function(t,a){return f.default.createElement("li",{className:v.default.pictureOuter,key:a},f.default.createElement("div",{className:v.default.picture,"data-idx":a,onClick:e.handleClickImage},f.default.createElement(h.default,{src:t})))})))),this.renderOverlay()):f.default.createElement("div",{className:v.default.slider},t("NONE"))}}]),r}(f.default.PureComponent);a.default=y,y.propTypes={images:d.default.array.isRequired,onChangeImage:d.default.func,defaultIdx:d.default.number},y.defaultProps={images:[],onChangeImage:function(){},defaultIdx:0}},function(e,t,a){e.exports={slider:"m_31JSg6nUGhFZ5iAQUjU",pre:"P-w7KNnKvWDxXSrhHQxtZ",next:"vOIr4lPa5nsQ56p4JEDGu",disabled:"_2_nv3-wXNbTm1BHHlvUTy4",dotList:"_1TLzD0vpvRi3GaoYbX8pdk",dot:"_1Rem-XXjxrvGjbZZyM7Dqh",active:"_37ns6MNNforGPal8rdECz7",listOuter:"csullZjO0y8IcXlc9LirY",pictureList:"LSi2b_Lkrdk8wVRxlhwhQ",pictureOuter:"_2oFhbjePYqBFsvRHbpFwgG",picture:"_1m-TiVY9Dxxxc1YDUiDhF1",overlay:"_7a8Ix3gbvxd6JTh4tz75n",viewCont:"Hj97dEjPT3P_BYypqENEP",overlayPic:"_3ssVJsi-xownM8NUxZXV5e",fadeIn:"_2uybTeXUle2_galUE-2PT8",closeOverlay:"_3BFnq_4zFEzfnOD7IqbdJN"}},function(e,t,a){e.exports={appInfo:"_3AilH8qFkHx_4avHhZDK_4",title:"_12ML492fWTSMsK4vhUQt4U",versions:"_16JKvu0z7Y-Y4tB-Qsj0Ym",name:"_1mGDyZCPCDchoHaPc_BfFV",date:"_1j85iHLJPDExOlvmRKaqYF",desc:"_1BNX8-yI6Ox7Laya_AeDlG"}},,,,,,,,,,,,,,,,,,,,,,function(e,t,a){e.exports={desc:"_3eh_E2EhQNcWLy8V-DL0TU"}},,,,,,,,function(e,t,a){e.exports={option:"_3mIiIau0E55cqSsXvtolhg",select:"_34FEBq7gI9Px86nIWbr_Pt","multi-repo":"_2nIdZAqBbg0vOZn6U8y_f-"}},,,function(e,t,a){"use strict";a(15);var r=a(20);a(5),a(18),a(48),a(16),a(9),a(4),a(23),a(17),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(45),a(5),a(18),a(48),a(42),a(16),a(9),a(4),a(23),a(57),a(17);var n,l,u,o,i,c,s,f=r(a(61)),d=r(a(65)),p=r(a(36)),m=r(a(37)),h=r(a(88)),v=r(a(55)),g=r(a(56)),y=r(a(51)),E=r(a(49)),b=(r(a(66)),r(a(0))),_=a(14),O=a(239),S=r(a(3270)),C=r(a(1734));function D(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,y.default)(e);if(t){var n=(0,y.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,g.default)(this,a)}}var k=(0,O.observer)((s=c=function(e){(0,v.default)(a,e);var t=D(a);function a(){var e;(0,p.default)(this,a);for(var r=arguments.length,n=new Array(r),l=0;l=0&&t.sort>=0?e.sort-t.sort:t.sort-e.sort}))})).then(t.callback)},t.handleOk=function(){t.props.onAddStep({name:"input",arguments:[{key:"message",value:{isLiteral:!0,value:t.state.value}},{key:"submitter",value:{isLiteral:!0,value:t.state.submitter.join(", ")}}]})},t.memberStore=new R.default;var n=t.getDefaultData(),l=n.value,u=n.submitter;return t.state={loading:!1,value:l,submitter:u},t}return(0,d.default)(r,[{key:"render",value:function(){var e=this.props,a=e.visible,r=e.onCancel;return y.default.createElement(T.default,{width:680,bodyClassName:w.default.body,onCancel:r,onOk:this.handleOk,visible:a,closable:!1,title:t("input")},y.default.createElement(N.Alert,{type:"info",icon:"information",className:w.default.info,message:t("INPUT_DESC")}),y.default.createElement(N.Form,{data:this.formData,ref:this.formRef},y.default.createElement(N.Form.Item,{label:t("MESSAGE"),desc:t("INPUT_MESSAGE_DESC"),rules:[{required:!0,message:t("PARAM_REQUIRED")}]},y.default.createElement(k.MentionsInput,{className:"mention-input",value:this.state.value,onChange:this.handleMessageChange,onBlur:this.handleMessageSubmitter,placeholder:t("@somebody to help review")},y.default.createElement(k.Mention,{data:this.fetchUsers,loading:this.state.loading,type:"user",appendSpaceOnAdd:!0,displayTransform:function(e){return"@".concat(e)},markup:"@__id__ "})))))}}]),r}(y.default.Component),i.propTypes={name:E.default.string},i.defaultProps={visible:!1,onOk:function(){},onCancel:function(){}},u=c,o=(0,g.default)(u.prototype,"fetchUsers",[C.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(t,a){t&&(e.debounced||(e.debounced=(0,b.default)(e.getUsers,300)),e.query=t,e.callback=a,e.debounced())}}}),l=u))||l;a.default=M},function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(31),r(18),r(87),r(16),r(98),r(10),r(4),r(23),r(24),r(17),r(62),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var l=n(r(61)),u=n(r(65)),o=n(r(36)),i=n(r(37)),c=n(r(88)),s=n(r(55)),f=n(r(56)),d=n(r(51)),p=n(r(49));n(r(66));r(45),r(5),r(31),r(18),r(87),r(42),r(16),r(98),r(10),r(4),r(23),r(57),r(24),r(17),r(62);var m,h,v,g,y,E=n(r(0)),b=n(r(1)),_=n(r(26)),O=n(r(241)),S=r(14),C=r(239),D=r(186),k=n(r(787)),N=r(982),T=n(r(853));function R(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,d.default)(e);if(t){var n=(0,d.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,f.default)(this,a)}}var w=function(e,t){var a=Object.keys(e).reduce((function(t,a){return"".concat(t).concat(a," : '").concat(e[a],"' ,")}),"");return"${[".concat(t,"(").concat(a,")]}")},I={secret_text:"string",username_password:"usernamePassword",ssh:"sshUserPrivateKey",kubeconfig:"kubeconfigContent",kubeconfigFile:"kubeconfigFile"},M=(0,C.observer)((y=g=function(e){(0,s.default)(r,e);var a=R(r);function r(e){var n;return(0,o.default)(this,r),(n=a.call(this,e)).initEditor=function(){var e=n.props.edittingData;if("withCredentials"===e.type){var t=(0,_.default)(e,"data.value","");if(t){var a=(0,N.groovyToJS)(t),r=function(e){var t=/\$\{\[([\w-]*)\(/,a=e.match(t)&&e.match(t)[1];if(a){var r=Object.entries(I).find((function(e){return e[1]===a}));return r?r[0]:null}return null}(t);n.setState({formData:a,credentialType:r})}}},(0,u.default)(n,"handleCredentialChange",v,(0,c.default)(n)),n.handleOk=function(){var e=n.formRef.current.getData();n.formRef.current.validate((function(){n.props.onAddStep({name:"withCredentials",arguments:{isLiteral:!1,value:w(e,I[n.state.credentialType])},children:[]})}))},n.renderParams=function(){switch(n.state.credentialType){case"username_password":return E.default.createElement(E.default.Fragment,null,E.default.createElement(D.Form.Item,{label:t("Password Variable")},E.default.createElement(D.Input,{name:"passwordVariable"})),E.default.createElement(D.Form.Item,{label:t("Username Variable")},E.default.createElement(D.Input,{name:"usernameVariable"})));case"secret_text":return E.default.createElement(E.default.Fragment,null,E.default.createElement(D.Form.Item,{label:t("Text Variable")},E.default.createElement(D.Input,{name:"variable"})));case"ssh":return E.default.createElement(E.default.Fragment,null,E.default.createElement(D.Form.Item,{label:t("key File Variable")},E.default.createElement(D.Input,{name:"keyFileVariable"})),E.default.createElement(D.Form.Item,{label:t("passphrase Variable")},E.default.createElement(D.Input,{name:"passphraseVariable"})),E.default.createElement(D.Form.Item,{label:t("Username Variable")},E.default.createElement(D.Input,{name:"usernameVariable"})));case"kubeconfig":return E.default.createElement(D.Form.Item,{label:t("Kubeconfig Variable")},E.default.createElement(D.Input,{name:"variable"}));case"kubeconfigFile":return E.default.createElement(D.Form.Item,{label:t("KubeconfigFile Variable")},E.default.createElement(D.Input,{name:"variable"}));default:return null}},n.getCredentialsListData=function(e){return n.props.store.getCredentials(e)},n.getCredentialsList=function(){return(0,l.default)(n.props.store.credentialsList.data.map((function(e){return{label:e.name,value:e.name,type:e.type,disabled:!1}})))},n.optionRender=function(e){var a=e.label,r=e.type,n=e.disabled;return E.default.createElement("span",{style:{display:"flex",alignItem:"center"}},a,"  ",E.default.createElement(D.Tag,{type:n?"":"warning"},"ssh"===r?"SSH":t(r)))},n.formRef=E.default.createRef(),n.state={formData:{},credentialType:"username_password"},n}return(0,i.default)(r,[{key:"componentDidMount",value:function(){this.props.store.getCredentials(),this.initEditor()}},{key:"render",value:function(){var e=this.props,a=e.visible,r=e.onCancel,n=this.props.store.credentialsList;return E.default.createElement(k.default,{width:680,bodyClassName:T.default.body,onCancel:r,onOk:this.handleOk,visible:a,closable:!1,title:t("withCredentials")},E.default.createElement(D.Form,{data:this.state.formData,ref:this.formRef},E.default.createElement(D.Form.Item,{label:t("CREDENTIAL_NAME"),rules:[{required:!0,message:t("PARAM_REQUIRED")}],desc:E.default.createElement("p",null,t("SELECT_CREDENTIAL_DESC"),E.default.createElement("span",{className:T.default.clickable,onClick:this.props.showCredential},t("CREATE_CREDENTIAL")))},E.default.createElement(D.Select,{name:"credentialsId",options:this.getCredentialsList(),pagination:(0,O.default)(n,["page","limit","total"]),isLoading:n.isLoading,onFetch:this.getCredentialsListData,onChange:this.handleCredentialChange,optionRenderer:this.optionRender,valueRenderer:this.optionRender,searchable:!0,clearable:!0})),this.renderParams()))}}]),r}(E.default.Component),g.propTypes={name:b.default.string},g.defaultProps={visible:!1,onOk:function(){},onCancel:function(){}},h=y,v=(0,p.default)(h.prototype,"handleCredentialChange",[S.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(t){var a=e.getCredentialsList().find((function(e){return e.value===t})),r=(0,_.default)(a,"type","username_password");e.setState({credentialType:r,formData:{credentialsId:t}})}}}),m=h))||m;a.default=M},function(e,a,r){"use strict";var n=r(20);r(12),r(5),r(11),r(31),r(6),r(73),r(18),r(87),r(16),r(9),r(13),r(10),r(4),r(23),r(24),r(17),r(62),r(64),r(136),r(818),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var l=n(r(30)),u=n(r(61)),o=n(r(96)),i=n(r(65)),c=n(r(36)),s=n(r(37)),f=n(r(88)),d=n(r(55)),p=n(r(56)),m=n(r(51)),h=n(r(49)),v=(n(r(66)),n(r(246)));r(12),r(45),r(5),r(11),r(31),r(6),r(73),r(18),r(28),r(87),r(42),r(16),r(34),r(15),r(9),r(13),r(10),r(4),r(23),r(57),r(24),r(17),r(62),r(64),r(818),r(7);var g,y,E,b,_,O,S,C,D,k=n(r(0)),N=n(r(1)),T=n(r(63)),R=n(r(241)),w=n(r(26)),I=n(r(74)),M=n(r(158)),P=r(14),A=r(239),j=r(186),L=n(r(787)),x=n(r(853));function U(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function z(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.value,l=e.onChange;return m.default.createElement(g.Select,{name:r.name,options:a.getCDList(),pagination:(0,h.default)(n,["page","limit","total"]),isLoading:n.isLoading,onFetch:a.getCDListData,value:null==t?void 0:t.name,onChange:function(e){var t,r,n=e?null===(t=a.props.store.cdList)||void 0===t||null===(r=t.data)||void 0===r?void 0:r.find((function(t){return t.name===e})):null;l(n?{name:n.name,namespace:n.devops}:null)},searchable:!0,clearable:!0})}}))}}]),r}(m.Component))||u;a.default=b},function(e,a,r){"use strict";r(15);var n=r(20),l=r(157);r(5),r(18),r(16),r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(18),r(42),r(16),r(4),r(22),r(23),r(57),r(17);var u=n(r(43));r(41);var o,i=n(r(44)),c=n(r(61)),s=n(r(36)),f=n(r(37)),d=n(r(55)),p=n(r(56)),m=n(r(51)),h=l(r(0)),v=n(r(241)),g=n(r(26)),y=r(186),E=r(239),b=n(r(1733));function _(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,m.default)(e);if(t){var n=(0,m.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,p.default)(this,a)}}var O=(0,E.observer)(o=function(e){(0,d.default)(n,e);var a,r=_(n);function n(){var e;(0,s.default)(this,n);for(var a=arguments.length,l=new Array(a),u=0;u1&&void 0!==arguments[1]?arguments[1]:{};(0,l.default)(this,e),this.state={},this.values={},this.config=[],this.context={},this.init=function(e,t){var r=e.map((function(e){return p(p({},e),{},{reactions:e.reactions?JSON.parse(e.reactions):[]})}));a.config=r;var n=0,l=[],u={},o=[];r.forEach((function(e){var r;void 0!==(0,s.default)(t,e.name)&&(0,c.default)(u,e.name,t[e.name]),l[e.name]={order:n++,display:"block",value:(0,s.default)(t,e.name),reactions:null!==(r=e.reactions)&&void 0!==r?r:[],"x-props":e},o.push((function(){a.handleValueChange({key:e.name,value:(0,s.default)(t,e.name)},!0)}))})),a.state=l,a.values=u,o.forEach((function(e){return e()}))},this.setValues=function(e,t){void 0!==t?(0,c.default)(a.values,e,t):a.values=(0,f.default)(a.values,e)},this.handleValueChange=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=a.state;a.setValues(e.key,e.value),a.state[e.key].value=e.value;var n=r[e.key].reactions;null==n||n.forEach((function(n){a.getStateByReaction(n,r[e.key],t)}))},this.getStateByReaction=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],l=e.target,u=e.fulfill,o=[];Object.entries(u.state).forEach((function(e){var u=(0,n.default)(e,2),i=u[0],c=u[1];if(!r||"value"!==i){var s=a.reactions[i],f=h(c,{$self:t,$context:a.context});a.state[l]&&(a.state[l][i]=f,s&&o.push((function(){return s(l,f)})))}})),o.forEach((function(e){return e()}))},this.handleFieldValueChange=function(e,t){var r;a.state[e]&&(a.handleValueChange({key:e,value:t}),null===(r=a.update)||void 0===r||r.call(a))},this.handleChangeValue=function(e,t){a.handleValueChange({key:e,value:t})},this.handleDisplayChange=function(e,t){"none"!==t?a.handleValueChange({key:e,value:a.state[e].value}):a.handleValueChange({key:e,value:void 0})},this.getValues=function(){return a.values},this.getFields=function(){return(0,i.default)(Object.values(a.state),"order").reduce((function(e,t){return"block"===t.display&&e.push(t["x-props"]),e}),[])},this.update=t,this.context=r,this.reactions={display:this.handleDisplayChange.bind(this),value:this.handleChangeValue.bind(this)}}},function(e,a,r){"use strict";r(15);var n=r(157),l=r(20);Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var u=l(r(315)),o=l(r(96)),i=l(r(58)),c=n(r(0)),s=l(r(1200)),f=r(186),d=l(r(787)),p=r(14);a.default=function(e){e.value;var a=e.onChange,r=e.devops,n=(0,i.default)(e,["value","onChange","devops"]),l=c.useState(!1),m=(0,o.default)(l,2),h=m[0],v=m[1],g=c.useState(),y=(0,o.default)(g,2),E=y[0],b=y[1];return c.createElement("div",null,c.createElement(f.Button,{style:{height:24},size:"small",onClick:function(){return v(!0)}},t("IMPORT_FROM_CODE_REPO")),c.createElement(d.default,{title:t("IMPORT_FROM_CODE_REPO"),visible:h,onCancel:function(){return v(!1)},onOk:function(){a((0,p.toJS)(E)),v(!1)}},c.createElement("div",{style:{minHeight:270}},c.createElement(s.default,(0,u.default)({},n,{isCreatePipeline:!1,devops:r,onChange:b,value:E})))))}},function(e,t,a){e.exports={taskList:"_2loGhzv-O4GHTu099n1Cyv",task:"_3H5tvVgBDXf5LETASGtiQX",taskIcon:"asNYafbtn7uKGjr5sY-W7",taskInfo:"T1TGQgJXmgkWz6kfGHnpl",taskName:"HhpjXE4lv1c6-E-Njs0GB",desc:"_1Dc2Z_g9XfSxnUhp4sdhcW",back:"cvvjfvqaVKSa83bk1OARZ",tabs:"_2L811SJ-R9sRJovtFY5HnN",tab:"_3Maur7P1LAsNs0yts_dt3h",tab_active:"_3Xttzou4W6mEktK8OWPKbx",loading:"LtyrCDUgHMI9Qxb85FWVO"}},function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(16),r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(160),r(191),r(42),r(16),r(159),r(4),r(23),r(57),r(17);var l=n(r(61)),u=n(r(36)),o=n(r(37)),i=n(r(55)),c=n(r(56)),s=n(r(51)),f=n(r(0)),d=n(r(3)),p=r(186),m=n(r(1)),h=r(14),v=n(r(135)),g=n(r(806)),y=r(1384),E=n(r(1016)),b=n(r(1062)),_=n(r(1736));function O(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,s.default)(e);if(t){var n=(0,s.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,c.default)(this,a)}}var S={not:!0,allOf:!0,anyOf:!0},C=function(e){(0,i.default)(r,e);var a=O(r);function r(){var e;(0,u.default)(this,r);for(var t=arguments.length,n=new Array(t),l=0;l0&&void 0!==u[0]?u[0]:{},a=t.cluster,r="".concat(this.getDevopsUrlV3({cluster:a}),"ci/nodelabels"),this.labelDataList=[],e.next=5,request.get(r,{},{},(function(){return null}));case 5:(n=e.sent)&&"success"===n.status&&(0,j.default)(n.data)&&(this.labelDataList=n.data.map((function(e){return{label:e,value:e}})));case 7:case"end":return e.stop()}}),e,this)}))),function(){return d.apply(this,arguments)})},{key:"fetchPipelineStepTemplates",value:(n=(0,u.default)(l.default.mark((function e(){var t,a,r,n,u=arguments;return l.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=u.length>0&&void 0!==u[0]?u[0]:{},e.next=3,request.get("".concat(this.getBaseUrl(t),"clustersteptemplates?limit=100"));case 3:return a=e.sent,r=a.items,n=(void 0===r?[]:r).map($),this.pipelineSteps=n,e.abrupt("return",n);case 8:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"fetchStepTemplate",value:(r=(0,u.default)(l.default.mark((function e(t){var a,r,n=arguments;return l.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=n.length>1&&void 0!==n[1]?n[1]:{},e.next=3,request.get("".concat(this.getBaseUrl(a),"clustersteptemplates/").concat(t));case 3:return r=e.sent,e.abrupt("return",$(r));case 5:case"end":return e.stop()}}),e,this)}))),function(e){return r.apply(this,arguments)})},{key:"getPipelineStepTempleJenkins",value:(a=(0,u.default)(l.default.mark((function e(t,a,r){var n,u,o,i=arguments;return l.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=i.length>3&&void 0!==i[3]?i[3]:{},e.next=3,request.post("".concat(this.getBaseUrl(t),"clustersteptemplates/").concat(a,"/render?").concat(G.default.stringify(n)),r);case 3:return u=e.sent,o=(0,A.default)(u,"data",""),e.abrupt("return",o);case 6:case"end":return e.stop()}}),e,this)}))),function(e,t,r){return a.apply(this,arguments)})},{key:"newStage",get:function(){return{branches:[{id:String(Math.random()),name:"",steps:[]}],agent:{type:"none"},name:"stage-".concat((0,q.generateId)(5))}}},{key:"stages",get:function(){return(0,A.default)(this.jsonData,"json.pipeline.stages",[])}},{key:"activeStage",get:function(){return""===this.activeLineIndex?"":this.stages[this.activeLineIndex]?this.stages[this.activeLineIndex].parallel?this.stages[this.activeLineIndex].parallel[this.activeColumnIndex]:this.stages[this.activeLineIndex]:""}}]),z}(B.default),(0,m.default)(v.prototype,"stages",[F.computed],Object.getOwnPropertyDescriptor(v.prototype,"stages"),v.prototype),(0,m.default)(v.prototype,"activeStage",[F.computed],Object.getOwnPropertyDescriptor(v.prototype,"activeStage"),v.prototype),g=(0,m.default)(v.prototype,"jsonData",[F.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),y=(0,m.default)(v.prototype,"activeLineIndex",[F.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),E=(0,m.default)(v.prototype,"activeColumnIndex",[F.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),b=(0,m.default)(v.prototype,"isAddingStep",[F.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),_=(0,m.default)(v.prototype,"edittingData",[F.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),O=(0,m.default)(v.prototype,"params",[F.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),S=(0,m.default)(v.prototype,"labelDataList",[F.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),C=(0,m.default)(v.prototype,"credentialsList",[F.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{data:[]}}}),D=(0,m.default)(v.prototype,"cdList",[F.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{data:[]}}}),k=(0,m.default)(v.prototype,"pipelineList",[F.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{data:[]}}}),N=(0,m.default)(v.prototype,"pipelineSteps",[F.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),(0,m.default)(v.prototype,"setData",[F.action],Object.getOwnPropertyDescriptor(v.prototype,"setData"),v.prototype),(0,m.default)(v.prototype,"insertColumn",[F.action],Object.getOwnPropertyDescriptor(v.prototype,"insertColumn"),v.prototype),(0,m.default)(v.prototype,"setFocus",[F.action],Object.getOwnPropertyDescriptor(v.prototype,"setFocus"),v.prototype),(0,m.default)(v.prototype,"setActive",[F.action],Object.getOwnPropertyDescriptor(v.prototype,"setActive"),v.prototype),(0,m.default)(v.prototype,"setEdittingData",[F.action],Object.getOwnPropertyDescriptor(v.prototype,"setEdittingData"),v.prototype),(0,m.default)(v.prototype,"clearFocus",[F.action],Object.getOwnPropertyDescriptor(v.prototype,"clearFocus"),v.prototype),(0,m.default)(v.prototype,"deleteStage",[F.action],Object.getOwnPropertyDescriptor(v.prototype,"deleteStage"),v.prototype),(0,m.default)(v.prototype,"setValue",[F.action],Object.getOwnPropertyDescriptor(v.prototype,"setValue"),v.prototype),(0,m.default)(v.prototype,"convertJsonToJenkinsFile",[F.action],Object.getOwnPropertyDescriptor(v.prototype,"convertJsonToJenkinsFile"),v.prototype),(0,m.default)(v.prototype,"saveJenkinsFile",[F.action],Object.getOwnPropertyDescriptor(v.prototype,"saveJenkinsFile"),v.prototype),T=(0,m.default)(v.prototype,"getCredentials",[F.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(){var t=(0,u.default)(l.default.mark((function t(a){return l.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.credentialStore.fetchList(Z({devops:e.params.devops,cluster:e.params.cluster},a));case 2:e.credentialsList=e.credentialStore.list;case 3:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()}}),R=(0,m.default)(v.prototype,"getPipelines",[F.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(){var t=(0,u.default)(l.default.mark((function t(a){return l.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.pipelineStore.fetchList(Z({devops:e.params.devops,cluster:e.params.cluster,filter:"no-folders"},a));case 2:e.pipelineList=e.pipelineStore.list;case 3:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()}}),w=(0,m.default)(v.prototype,"getCDListData",[F.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(){var t=(0,u.default)(l.default.mark((function t(a){return l.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.cdStore.fetchList(Z({devops:e.params.devops,cluster:e.params.cluster},a));case 2:e.cdList=e.cdStore.list;case 3:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()}}),I=(0,m.default)(v.prototype,"createCredential",[F.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(){var t=(0,u.default)(l.default.mark((function t(a,r){return l.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.credentialStore.handleCreate(a,r);case 2:case"end":return t.stop()}}),t)})));return function(e,a){return t.apply(this,arguments)}}()}}),(0,m.default)(v.prototype,"handleConfirm",[F.action],Object.getOwnPropertyDescriptor(v.prototype,"handleConfirm"),v.prototype),(0,m.default)(v.prototype,"handleConfirmOld",[F.action],Object.getOwnPropertyDescriptor(v.prototype,"handleConfirmOld"),v.prototype),(0,m.default)(v.prototype,"fetchPipelineStepTemplates",[F.action],Object.getOwnPropertyDescriptor(v.prototype,"fetchPipelineStepTemplates"),v.prototype),(0,m.default)(v.prototype,"fetchStepTemplate",[F.action],Object.getOwnPropertyDescriptor(v.prototype,"fetchStepTemplate"),v.prototype),v);a.default=ee},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,a){"use strict";a(15);var r=a(20);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Home",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(t,"Search",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"Detail",{enumerable:!0,get:function(){return u.default}});var n=r(a(3447)),l=r(a(3452)),u=r(a(3524))},function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(18),r(4),r(23),r(24),r(17),r(62),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var l=n(r(65)),u=n(r(36)),o=n(r(37)),i=n(r(88)),c=n(r(55)),s=n(r(56)),f=n(r(51)),d=n(r(49));n(r(66));r(45),r(5),r(18),r(442),r(42),r(4),r(23),r(57),r(24),r(17),r(62);var p,m,h,v=n(r(96)),g=n(r(0)),y=r(14),E=r(239),b=n(r(243)),_=n(r(3)),O=r(186),S=n(r(1065)),C=n(r(3449)),D=n(r(1757)),k=n(r(985)),N=n(r(3451));function T(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,f.default)(e);if(t){var n=(0,f.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,s.default)(this,a)}}var R=(0,E.observer)((m=function(e){(0,c.default)(r,e);var a=T(r);function r(){var e;(0,u.default)(this,r);for(var n=arguments.length,o=new Array(n),c=0;c0&&void 0!==c[0]?c[0]:{},a=c.length>1?c[1]:void 0,r=new Date((new Date).setHours(0,0,0,0)).getTime(),l=(new Date).getTime(),u={operation:"statistics",start_time:r,end_time:l},o=(0,E.default)(u,t),e.next=9,this.request(o,"get",a);case 9:i=e.sent,this.containersCount=(0,b.default)(i,"statistics.containers",0),this.logsCount=(0,b.default)(i,"statistics.logs",0),this.startTime=r,this.namespaces=(0,b.default)(i,"statistics.namespaces",[])||[];case 14:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})},{key:"handleResult",value:function(e){return e}}]),r}(r(a(1391)).default),u=(0,g.default)(l.prototype,"logsCount",[y.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),o=(0,g.default)(l.prototype,"startTime",[y.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),i=(0,g.default)(l.prototype,"namespaces",[y.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),(0,g.default)(l.prototype,"fetch",[y.action],Object.getOwnPropertyDescriptor(l.prototype,"fetch"),l.prototype),l);t.default=O},function(e,t,a){e.exports={container:"_9S1O5r-gMFTAyyTvA9sMv",customRange:"_2BqYBrIOMJkPL86SU4ibiS",currentParam:"_3i9QkdJ1v3Z_RhND9_jhxB",input:"_3knlp77eQpb5h3x9_brJrc",dropdown:"_32W2hcNHwcqLHylSRb_-1d",dropdownItem:"_1zYu7D7XMgnPQj_cviMH7j",icon:"_18iZ6-QD8yhu2WuwGN6v_R",param:"_3tDB0wRE_DlH-PpkLdtKqh",removeParam:"_2XvI9g_dJmtEwGNcgmHBUn",durationDropdown:"_1DPb6P0nYZPe_y5qrx0OSD"}},function(e,t,a){e.exports={tips:"_1GT_qdXcQqMwqs4fdmzGR3",rule:"cRqPZ_AGuSTA4AXOY08lP",searchBar:"_2YhYKa3lwuBurnOP3Cjh0U",pane:"cOD4mfyo7pc1RctxOlLvj",card:"p9FBwWjFgQ1xMXHax1X3s",count:"_37LGouPZA8H7IdsZHwN2j5",banner:"_3Z5wUKjeTOL8V6zsED-TSu",illustration:"_2Vn-O2H0xzvZ1d-cX3OeAG",statistics:"_2hC4Kwsw_VHnZ2DGcDMAv5",category:"_2pdXo055DfDsFjef58FrhO",icon:"_3zX3KvzK9hvXil7z9WwH0M",desc:"_1ZgIwmJnkzKt2QVxat6c6D",recent:"_3H27V0Txnl5HUAeAEpNIdA",recentSummary:"_27IlxPyLQZxq8UFPRqaK0i",chart:"_14dkUVVhwB9DUaaWX787Fy",searchBarContainer:"fSF-k2IyFBXVBSF4fZccp",clusterSelector:"_26VjJfMUGT6XkqSnSUkqn7"}},function(e,a,r){"use strict";var n=r(20);r(12),r(5),r(11),r(197),r(6),r(18),r(87),r(16),r(9),r(13),r(10),r(4),r(23),r(24),r(17),r(62),r(64),r(7),r(110),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var l=n(r(61)),u=n(r(43));r(41);var o=n(r(44)),i=n(r(30)),c=n(r(65)),s=n(r(36)),f=n(r(37)),d=n(r(88)),p=n(r(55)),m=n(r(56)),h=n(r(51)),v=n(r(49));n(r(66));r(12),r(45),r(5),r(11),r(197),r(6),r(18),r(28),r(87),r(245),r(442),r(42),r(16),r(34),r(15),r(9),r(13),r(10),r(4),r(22),r(23),r(57),r(24),r(17),r(62),r(64),r(7),r(110);var g,y,E,b,_,O,S,C,D,k,N=n(r(96)),T=n(r(0)),R=r(239),w=r(14),I=n(r(243)),M=n(r(967)),P=n(r(195)),A=n(r(250)),j=n(r(1392)),L=n(r(1124)),x=n(r(1768)),U=n(r(1757)),z=r(186),F=n(r(1127)),G=r(1397),V=n(r(1065)),B=n(r(985)),Y=n(r(3523));function W(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function q(e){for(var t=1;t').concat(e.hightLighted,"")}))}})}}},{key:"startPolling",value:function(e){this.poll(),this.pollingInterval&&clearInterval(this.pollingInterval),this.pollingInterval=setInterval(this.poll,e||this.state.pollingFrequency)}},{key:"stopPolling",value:function(){this.setState({polling:!1}),clearInterval(this.pollingInterval)}},{key:"addPollingQuery",value:(a=(0,o.default)(u.default.mark((function e(){var t,a,r,n;return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=this.getQueryParams(),r={from:0,start_time:Date.now()-this.state.pollingFrequency,end_time:Date.now()},e.next=4,this.fetchQuery(q(q({},a),r));case 4:n=e.sent,(t=this.logs).push.apply(t,(0,l.default)(n.reverse())),this.scrollTo(this.logs.length);case 7:case"end":return e.stop()}}),e,this)}))),function(){return a.apply(this,arguments)})},{key:"scrollTo",value:function(e){this.tableRef.current.scrollToRow(e)}},{key:"render",value:function(){var e=this.state.showHistogram;return T.default.createElement("div",{className:Y.default.container},T.default.createElement(z.Loading,{spinning:this.loading},this.renderSearchBar()),T.default.createElement("div",{className:Y.default.searchResult},T.default.createElement(z.Loading,{spinning:this.loading},T.default.createElement(T.default.Fragment,null,this.renderToolBar(),e&&this.renderTimeChart())),this.renderTable()))}},{key:"renderSearchBar",value:function(){return T.default.createElement("div",{className:Y.default.searchBar},globals.app.isMultiCluster&&T.default.createElement(z.Select,{value:this.props.searchInputState.cluster,onChange:this.changeClusterChange,className:Y.default.select,valueRenderer:this.clusterRenderer,options:this.props.clustersOpts}),T.default.createElement(B.default,{className:Y.default.searchInput,onChange:this.onSearchParamsChange,params:this.props.searchInputState,dropDownItems:{log_query:{icon:"magnifier",text:t("KEYWORD")},namespace_query:{icon:"project",text:t("PROJECT")},workload_query:{icon:"backup",text:t("WORKLOAD")},pod_query:{icon:"pod",text:t("POD")},container_query:{icon:"docker",text:t("CONTAINER")}}}),T.default.createElement(z.Select,{className:Y.default.select,value:this.props.searchInputState.queryMode,onChange:this.changeQueryMode,options:this.queryModeOptions}))}},{key:"renderToolBar",value:function(){var e=this.state,a=e.showHistogram,r=e.polling,n=e.pollingFrequency;return T.default.createElement("div",{className:Y.default.toolbar},T.default.createElement("div",null,t("TIME_TOPOLOGY"),T.default.createElement("span",{className:Y.default.showHistogramBtn,onClick:this.toggleHistogram},a?t("DISPLAY"):t("HIDE"),T.default.createElement(z.Icon,{name:"caret-down",type:"light"}))),T.default.createElement("div",{className:Y.default.operation},T.default.createElement("span",{className:Y.default.pollingBtn,onClick:this.togglePolling},T.default.createElement(z.Tooltip,{content:r?t("STOP_REAL_TIME_CONTAINER_LOG"):t("START_REAL_TIME_CONTAINER_LOG")},T.default.createElement(z.Icon,{name:r?"stop":"start",type:"light",size:16}))),T.default.createElement("span",{className:Y.default.exportButton},T.default.createElement(z.Dropdown,{content:this.renderMoreMenu,trigger:"click",placement:"bottomRight"},T.default.createElement("div",{className:Y.default.exportText},T.default.createElement("span",{className:Y.default.text},t("LOG_EXPORT")),T.default.createElement(z.Icon,{name:"more",type:"light"})))),T.default.createElement("span",{className:Y.default.frequencyOpts},T.default.createElement("span",null," ",t("REFRESH_RATE_COLON")),T.default.createElement(z.Select,{value:n,onChange:this.changeFrequency,className:Y.default.frequencyOptions,options:this.frequencyOptions}))))}},{key:"renderTimeChart",value:function(){return T.default.createElement("div",{className:Y.default.chartContainer},T.default.createElement("div",{className:Y.default.recentSummary},T.default.createElement("h2",{className:Y.default.count},this.histogramStore.logsCount),T.default.createElement("p",null,t("SEARCH_RESULTS"))),T.default.createElement("div",{className:Y.default.chart},T.default.createElement(V.default,{xKey:"time",data:(0,w.toJS)(this.histogramStore.histograms),legend:[["count",t("CONTAINER_LOG_COUNT")]],interval:this.histogramStore.interval,onBarClick:this.selectedDurationParameter})))}},{key:"renderTable",value:function(){return T.default.createElement("div",{className:Y.default.table},T.default.createElement(F.default,{onScroll:this.onTableScrollTop,onTrClick:this.selectLog,cols:this.tableCols,data:this.logs,tableRef:this.tableRef}))}},{key:"defaultDuration",get:function(){return{start_time:0,end_time:Date.now(),interval:"1d"}}},{key:"duration",get:function(){var e=(this.props||{}).searchInputState,t=Date.now(),a=e.start,r=e.end,n=e.step;return a?{start_time:(0,M.default)([1e3*a,t]),end_time:(0,M.default)([1e3*r,t]),interval:n}:this.defaultDuration}}]),h}(T.default.Component),E=(0,v.default)(y.prototype,"tableCols",[w.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[{thead:t("TIME"),key:"time",content:function(e){return"[".concat((0,I.default)(e.time).format("YYYY-MM-DD HH:mm:ss"),"]")},hidden:!1},{thead:t("PROJECT"),key:"project",content:this.renderHightLightMatchTd({resKey:"namespace",searchKey:["namespace_query"]}),hidden:!1},{thead:t("POD"),key:"pod",hidden:!1,content:this.renderHightLightMatchTd({resKey:"pod",searchKey:["pod_query","workload_query"]})},{thead:t("CONTAINER"),key:"container",hidden:!0,content:this.renderHightLightMatchTd({resKey:"container",searchKey:["container_query"]})},{thead:t("LOG"),key:"log",className:Y.default.logItem,content:this.renderHightLightMatchLogTd({resKey:"log",searchKey:["log_query"],handler:G.esMark}),mustShow:!0}]}}),b=(0,v.default)(y.prototype,"logs",[w.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),_=(0,v.default)(y.prototype,"loading",[w.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),(0,v.default)(y.prototype,"refreshQuery",[w.action],Object.getOwnPropertyDescriptor(y.prototype,"refreshQuery"),y.prototype),(0,v.default)(y.prototype,"fetchQuery",[w.action],Object.getOwnPropertyDescriptor(y.prototype,"fetchQuery"),y.prototype),(0,v.default)(y.prototype,"fetchHistogram",[w.action],Object.getOwnPropertyDescriptor(y.prototype,"fetchHistogram"),y.prototype),O=(0,v.default)(y.prototype,"selectedDurationParameter",[w.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(t){var a,r,n,l,u,o=t.time,i=void 0===o?0:o,c=e.histogramStore.interval,s=e.props.searchInputState;s.durationAlias="",s.end=Math.ceil(i/1e3)+(a=c.match(/(\d+)(\w+)/),r=(0,N.default)(a,3),n=r[1],l=void 0===n?0:n,u=r[2],l*{s:1,m:60,h:3600,d:86400}[void 0===u?"s":u]),s.start=Math.ceil(i/1e3),s.step=e.getNextStepLevel(c),e.fetchHistogram(),e.refreshQuery()}}}),S=(0,v.default)(y.prototype,"onTableScrollTop",[w.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(t){var a=t.scrollTop,r=e.queryStore,n=r.from,l=r.size,u=r.total;0===a&&u>n+l&&e.loadMoreLogs()}}}),(0,v.default)(y.prototype,"loadMoreLogs",[w.action],Object.getOwnPropertyDescriptor(y.prototype,"loadMoreLogs"),y.prototype),C=(0,v.default)(y.prototype,"toggleHistogram",[w.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(){e.setState((function(e){return{showHistogram:!e.showHistogram}}))}}}),D=(0,v.default)(y.prototype,"togglePolling",[w.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(){var t=e.state.polling;t?e.stopPolling():e.startPolling(),e.setState({polling:!t})}}}),(0,v.default)(y.prototype,"addPollingQuery",[w.action],Object.getOwnPropertyDescriptor(y.prototype,"addPollingQuery"),y.prototype),k=(0,v.default)(y.prototype,"changeFrequency",[w.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(t){e.setState({pollingFrequency:t}),e.state.polling&&(e.stopPolling(),e.startPolling(t))}}}),g=y))||g;a.default=X},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,a){e.exports={table:"_31DHxUvHF9cvrtMF8hZ1NJ",body:"_1o0OrXH49u7IWnn__jySDi",header:"_3d3ile0MQ76mzy4gKMKVGa",headerItems:"cBGvp-qF5E0-Zn-DV66BU",visibleBtn:"_1QLOXkaGohLi2bLbAWcJjT",dropdown:"_16GV2vWPgU-_LY-TSI-nEL",visibleItem:"_10IfOBGBtVJ2cWMKKLCURw",tr:"_3wpavJr72BCdw4FWfpnkOc",bodyItems:"_1Jb5Hf9bhyeHQD05-MYz5N"}},function(e,t,a){e.exports={searchBar:"_JTlDkrfohSwIxPpX97wp",searchInput:"_25v4Uq6VdGeubmXGfPRsa6",select:"_3t4uAxkZ2BFOTl4foQ1DRo",searchResult:"_3li-Ch_QP-SfD5vjzDIXgd",toolbar:"_1wFZR-2jbDGJY79Klx4L11",operation:"_23II8bjJaDDga7SzCWyMm7",exportButton:"_3eZWtrM_1V15_kaHWj-DpL",exportText:"_8g5V39tYUe7rdh7ZPduAB",text:"_1DLrO1c0pV2m8b_28dUerc",menuLinkContent:"LsDuLg9SzYCwxyLiKzBsS",frequencyOpts:"_3gotqRkYjzqimbLSXvXXoe",frequencyOptions:"_2FKKxtgN7QWnOcFKcoW-yl",chartContainer:"_1TbzGgX6Ll6A-GDc4T4Ad",recentSummary:"_32mzAeyZriH5v29CxUBHw0",chart:"_39jXgnORNLHHwWrfolFLAT",table:"_1LzMkW6YYbyYTptsNE4-Xa",logItem:"_1y2_hopFflOw1UUWDuImRk",count:"_3t6_PUErus14gjlZ0dSd0d",showHistogramBtn:"_9d9RtZ1b011VOdyFhrNMY",pollingBtn:"_1LWeyfeCE0ECAs__57lhjh",container:"_36atrKU0dMxQaHnt0CMWwj",hightLightMatch:"_2jhV5b7tn8RPILbYxuQt7g",hightLog:"_9VNSgJg53gFYpEK1pk5Co"}},function(e,a,r){"use strict";var n=r(20);r(12),r(5),r(11),r(31),r(6),r(86),r(18),r(48),r(16),r(9),r(13),r(10),r(4),r(23),r(17),r(818),r(7),r(110),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(45),r(5),r(11),r(31),r(6),r(86),r(18),r(28),r(245),r(48),r(859),r(442),r(42),r(16),r(34),r(15),r(9),r(13),r(10),r(4),r(22),r(23),r(57),r(17),r(818),r(7),r(110);var l=n(r(61)),u=n(r(43));r(41);var o,i,c,s,f,d,p=n(r(44)),m=n(r(30)),h=n(r(65)),v=n(r(36)),g=n(r(37)),y=n(r(88)),E=n(r(55)),b=n(r(56)),_=n(r(51)),O=n(r(49)),S=(n(r(66)),n(r(0))),C=n(r(243)),D=n(r(3)),k=r(239),N=r(14),T=n(r(1124)),R=n(r(26)),w=r(186),I=n(r(452)),M=n(r(439)),P=n(r(1768)),A=r(881),j=n(r(3525)),L=n(r(3527));function x(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function U(e){for(var t=1;t=r){var n=a.logStore,l=n.from,u=n.size;n.total>l+u&&a.loadMoreLogs()}},a.pre=function(){a.props.formStepState.pre()},a.clearQuery=function(){a.setState({query:""},(function(){a.refreshLogs()}))},a.renderMoreMenu=function(){var e=a.logStore,r=e.pods,n=e.containers,l=e.log_query,u=e.startTime,o=e.endTime,i=e.namespaces,c={cluster:a.props.searchInputState.cluster,namespaces:i,pods:r,containers:n,log_query:l,start_time:u,end_time:o},s=[S.default.createElement(w.Menu.MenuItem,{key:"asc"},S.default.createElement("span",{className:L.default.menuLinkContent},S.default.createElement("a",{href:a.logStore.exportLinkFactory(U(U({},c),{},{sort:"asc"})),download:!0},t("ASC_EXPORT")))),S.default.createElement(w.Menu.MenuItem,{key:"desc"},S.default.createElement("span",{className:L.default.menuLinkContent},S.default.createElement("a",{href:a.logStore.exportLinkFactory(U(U({},c),{},{sort:"desc"})),download:!0},t("DESC_EXPORT"))))];return S.default.createElement(w.Menu,null,s)};var r=a.props.detailState,n=r.pod,l=r.container,u=r.namespace,o=r.log,i=r.time,p=new Date(i).getTime();return a.logStore=new P.default({sort:"desc",pods:n,namespaces:u,containers:l,size:100,startTime:p-1e3,endTime:p+1e3}),a.podStore=new I.default,a.projectStore=new M.default,a.state={pollingFrequency:5e3,polling:!1,query:o},a}return(0,g.default)(_,[{key:"startPolling",value:(m=(0,p.default)(u.default.mark((function e(){var t,a=this;return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=Date.now(),e.next=3,this.fetchLogs({end_time:t,start_time:t-6e4,from:0});case 3:this.logs=e.sent,this.interval=setInterval((function(){a.addPollingLogs()}),this.state.pollingFrequency);case 5:case"end":return e.stop()}}),e,this)}))),function(){return m.apply(this,arguments)})},{key:"addPollingLogs",value:(i=(0,p.default)(u.default.mark((function e(){var t,a,r;return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=Date.now(),e.next=3,this.fetchLogs({end_time:a,start_time:a-this.state.pollingFrequency,from:0});case 3:r=e.sent,(t=this.logs).unshift.apply(t,(0,l.default)(r)),this.scrollToBottom();case 6:case"end":return e.stop()}}),e,this)}))),function(){return i.apply(this,arguments)})},{key:"scrollToBottom",value:function(){var e=this.logWindow.current;e.scrollTop=e.scrollHeight}},{key:"loadMoreLogs",value:(o=(0,p.default)(u.default.mark((function e(){var t,a,r,n,o;return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=this.logStore,r=a.from,n=a.size,this.logStore.from=r+n,e.next=4,this.fetchLogs();case 4:o=e.sent,(t=this.logs).push.apply(t,(0,l.default)(o));case 6:case"end":return e.stop()}}),e,this)}))),function(){return o.apply(this,arguments)})},{key:"getPodContainers",value:function(e){var t=this.podStore.list.data.find((function(t){return t.name===e}))||{};return(0,R.default)(t,"containers",[])}},{key:"componentDidMount",value:function(){this.fetchPods(),this.fetchProject(),this.initialFetch()}},{key:"componentWillUnmount",value:function(){this.stopPolling()}},{key:"initialFetch",value:(n=(0,p.default)(u.default.mark((function e(){return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.fetchLogs();case 2:this.logs=e.sent;case 3:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"refreshLogs",value:(r=(0,p.default)(u.default.mark((function e(){return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.logStore.from=0,this.logStore.log_query=this.state.query,this.setState({polling:!1}),this.stopPolling(),e.next=6,this.fetchLogs();case 6:this.logs=e.sent;case 7:case"end":return e.stop()}}),e,this)}))),function(){return r.apply(this,arguments)})},{key:"fetchLogs",value:(a=(0,p.default)(u.default.mark((function e(){var t,a,r=arguments;return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=r.length>0&&void 0!==r[0]?r[0]:{},a=this.props.searchInputState.cluster,e.next=4,this.logStore.fetch(U(U({},t),{},{cluster:a}));case 4:return e.abrupt("return",this.logStore.records);case 5:case"end":return e.stop()}}),e,this)}))),function(){return a.apply(this,arguments)})},{key:"fetchProject",value:function(){var e=this.props.detailState.namespace,t=this.props.searchInputState.cluster;this.projectStore.fetchDetail({name:e,namespace:e,cluster:t},(function(){}))}},{key:"fetchPods",value:function(){var e=this.props.detailState.namespace,t=this.props.searchInputState.cluster;this.podStore.fetchList({cluster:t,namespace:e,limit:-1})}},{key:"render",value:function(){return S.default.createElement("div",{className:L.default.container},S.default.createElement("div",{className:L.default.article},this.renderSummary(),this.renderLog()))}},{key:"renderLog",value:function(){var e=this.state.polling;return S.default.createElement("div",{className:L.default.log},S.default.createElement("div",{className:(0,D.default)(L.default.toolbar,this.state.polling?L.default.pollingMode:"")},this.state.polling||this.renderDurationSelect(),this.renderSearchInput(),this.renderPollingBtn(),this.renderPollingOpts(),this.renderExportBtn()),S.default.createElement("div",{className:L.default.terminal,onScroll:e?null:this.onLogScroll,ref:this.logWindow},this.renderTerminal()))}},{key:"renderPollingOpts",value:function(){return S.default.createElement("div",{className:L.default.frequencyOpts},S.default.createElement(w.Select,{options:this.pollingFrequencyOpts,value:this.state.pollingFrequency,onChange:this.onFrequencySelect}))}},{key:"renderPollingBtn",value:function(){return S.default.createElement("div",{className:L.default.pollingBtn,onClick:this.togglePolling},S.default.createElement(w.Tooltip,{content:this.state.polling?t("STOP"):t("START")},S.default.createElement(w.Icon,{type:"light",name:this.state.polling?"stop":"start"})))}},{key:"renderExportBtn",value:function(){return S.default.createElement("div",{className:L.default.operation},S.default.createElement(w.Dropdown,{content:this.renderMoreMenu,trigger:"click",placement:"bottomRight"},S.default.createElement("div",{className:L.default.exportText},S.default.createElement("span",{className:L.default.text},t("LOG_EXPORT")),S.default.createElement(w.Icon,{name:"more",type:"light"}))))}},{key:"renderDurationSelect",value:function(){return S.default.createElement("div",{className:L.default.duration},S.default.createElement(j.default,{duration:this.logStore,onChange:this.onDurationChange}))}},{key:"renderSearchInput",value:function(){return S.default.createElement("div",{className:L.default.input},S.default.createElement(w.Icon,{name:"magnifier",type:"light"}),S.default.createElement("input",{type:"text",onKeyUp:this.queryLog,value:this.state.query,onChange:this.changeSearchLog}),this.state.query&&S.default.createElement(w.Icon,{className:L.default.clearQuery,name:"close",type:"light",onClick:this.clearQuery}))}},{key:"renderTerminal",value:function(){var e=this;return S.default.createElement("div",{className:L.default.logWindow},this.logs.reverse().map((function(t){var a=t.time,r=t.log;return S.default.createElement("p",{key:"".concat(a).concat(r)},S.default.createElement("span",{className:L.default.logTime},(0,C.default)(a).format("YYYY-MM-DD HH:mm:ss"),":"," ",e.renderHighLightLog(null!=r?r:"")))})))}},{key:"renderHighLightLog",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=this.state.query,a=t.trim(),r=e.toUpperCase().indexOf(a.toUpperCase());return a&&-1!==r?S.default.createElement("span",{className:L.default.queryLog},S.default.createElement("span",{dangerouslySetInnerHTML:{__html:F.ansi_to_html(e.slice(0,r))}}),S.default.createElement("span",{className:L.default.hightLight,dangerouslySetInnerHTML:{__html:F.ansi_to_html(e.slice(r,r+a.length))}}),S.default.createElement("span",{dangerouslySetInnerHTML:{__html:F.ansi_to_html(e.slice(r+a.length))}})):S.default.createElement("span",{className:L.default.queryLog,dangerouslySetInnerHTML:{__html:F.ansi_to_html(e)}})}},{key:"renderLink",value:function(e,a){return e?S.default.createElement(w.Tooltip,{content:t("VIEW_DETAILS")},S.default.createElement("a",{href:e,target:"_blank",rel:"noopener noreferrer"},a)):a}},{key:"renderSummary",value:function(){var e=this.props.detailState;return S.default.createElement("div",{className:L.default.summery},S.default.createElement("div",{className:L.default.header},S.default.createElement("div",{className:L.default.pre,onClick:this.pre},S.default.createElement(A.ReactComponent,{width:16,height:22}),S.default.createElement("span",null,t("BACK")))),S.default.createElement("h3",null,t("CONTAINER_LOG_SOURCE")),S.default.createElement("div",{className:L.default.dataList},S.default.createElement("div",null,S.default.createElement("h4",null,t("PROJECT")),S.default.createElement("p",null,S.default.createElement("span",null,S.default.createElement(w.Icon,{name:"project"})," ",e.namespace))),S.default.createElement("div",null,S.default.createElement("h4",null,t("POD")),S.default.createElement("div",{className:L.default.selectContainer},S.default.createElement(w.Select,{prefixIcon:S.default.createElement(w.Icon,{name:"pod"}),value:this.logStore.pods,onChange:this.changePod,options:this.PodOpts}),S.default.createElement("div",{className:L.default.resourceIcon},this.renderLink(this.podLink,S.default.createElement(w.Icon,{name:"cogwheel",size:16}))))),S.default.createElement("div",null,S.default.createElement("h4",null,t("CONTAINER")),S.default.createElement("div",{className:L.default.selectContainer},S.default.createElement(w.Select,{prefixIcon:S.default.createElement(w.Icon,{name:"docker"}),value:this.logStore.containers,options:this.ContainersOpts,onChange:this.changeContainer}),S.default.createElement("div",{className:L.default.resourceIcon},this.renderLink(this.containerLink,S.default.createElement(w.Icon,{name:"cogwheel",size:16})))))))}},{key:"podLink",get:function(){var e=this.props.detailState.namespace,t=this.props.searchInputState.cluster,a=this.logStore.pods,r=this.projectStore.detail.workspace;return r?"/".concat(r,"/clusters/").concat(t,"/projects/").concat(e,"/pods/").concat(a):""}},{key:"containerLink",get:function(){var e=this.props.detailState.namespace,t=this.props.searchInputState.cluster,a=this.logStore,r=a.pods,n=a.containers,l=this.projectStore.detail.workspace;return l?"/".concat(l,"/clusters/").concat(t,"/projects/").concat(e,"/pods/").concat(r,"/containers/").concat(n):""}},{key:"PodOpts",get:function(){return this.podStore.list.data.map((function(e){return{label:e.name||t("ALL"),value:e.name||""}}))}},{key:"ContainersOpts",get:function(){var e=this.logStore.pods;return this.getPodContainers(e).map((function(e){return{label:e.name,value:e.name}}))}}]),_}(S.default.Component),c=(0,O.default)(i.prototype,"logs",[N.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),(0,O.default)(i.prototype,"podLink",[N.computed],Object.getOwnPropertyDescriptor(i.prototype,"podLink"),i.prototype),(0,O.default)(i.prototype,"containerLink",[N.computed],Object.getOwnPropertyDescriptor(i.prototype,"containerLink"),i.prototype),(0,O.default)(i.prototype,"PodOpts",[N.computed],Object.getOwnPropertyDescriptor(i.prototype,"PodOpts"),i.prototype),(0,O.default)(i.prototype,"ContainersOpts",[N.computed],Object.getOwnPropertyDescriptor(i.prototype,"ContainersOpts"),i.prototype),s=(0,O.default)(i.prototype,"changePod",[N.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(t){e.logStore.pods=t||"";var a=(0,R.default)(e.getPodContainers(t),"[0].name","");e.changeContainer(a)}}}),f=(0,O.default)(i.prototype,"changeContainer",[N.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(t){e.logStore.containers=t,e.logStore.log_query="",e.refreshLogs()}}}),(0,O.default)(i.prototype,"startPolling",[N.action],Object.getOwnPropertyDescriptor(i.prototype,"startPolling"),i.prototype),(0,O.default)(i.prototype,"addPollingLogs",[N.action],Object.getOwnPropertyDescriptor(i.prototype,"addPollingLogs"),i.prototype),d=(0,O.default)(i.prototype,"onFrequencySelect",[N.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(t){e.setState({pollingFrequency:t})}}}),(0,O.default)(i.prototype,"loadMoreLogs",[N.action],Object.getOwnPropertyDescriptor(i.prototype,"loadMoreLogs"),i.prototype),(0,O.default)(i.prototype,"initialFetch",[N.action],Object.getOwnPropertyDescriptor(i.prototype,"initialFetch"),i.prototype),(0,O.default)(i.prototype,"refreshLogs",[N.action],Object.getOwnPropertyDescriptor(i.prototype,"refreshLogs"),i.prototype),o=i))||o;a.default=G},function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(9),r(4),r(23),r(24),r(17),r(62),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(442),r(42),r(9),r(4),r(23),r(57),r(24),r(17),r(62);var l,u,o,i,c,s,f,d,p,m=n(r(96)),h=n(r(65)),v=n(r(36)),g=n(r(37)),y=n(r(88)),E=n(r(55)),b=n(r(56)),_=n(r(51)),O=n(r(49)),S=(n(r(66)),n(r(0))),C=r(239),D=r(14),k=n(r(3)),N=n(r(243)),T=r(186),R=n(r(1166)),w=n(r(1165)),I=r(950),M=n(r(3526));function P(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,_.default)(e);if(t){var n=(0,_.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,b.default)(this,a)}}var A=(0,C.observer)((u=function(e){(0,E.default)(r,e);var a=P(r);function r(){var e;(0,v.default)(this,r);for(var t=arguments.length,n=new Array(t),l=0;l=r){var l=e.store,u=l.from,o=l.size;l.total>u+o&&e.loadMoreLogs()}}}}),(0,N.default)(f.prototype,"loadMoreLogs",[A.action],Object.getOwnPropertyDescriptor(f.prototype,"loadMoreLogs"),f.prototype),(0,N.default)(f.prototype,"fetchQuery",[A.action],Object.getOwnPropertyDescriptor(f.prototype,"fetchQuery"),f.prototype),(0,N.default)(f.prototype,"fetchHistogram",[A.action],Object.getOwnPropertyDescriptor(f.prototype,"fetchHistogram"),f.prototype),v=(0,N.default)(f.prototype,"toggleHistogram",[A.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(){e.setState((function(e){return{showHistogram:!e.showHistogram}}))}}}),g=(0,N.default)(f.prototype,"togglePolling",[A.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(){var t=e.state.polling;t?e.stopPolling():e.startPolling(),e.setState({polling:!t})}}}),(0,N.default)(f.prototype,"addPollingQuery",[A.action],Object.getOwnPropertyDescriptor(f.prototype,"addPollingQuery"),f.prototype),y=(0,N.default)(f.prototype,"changeFrequency",[A.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(t){e.setState({pollingFrequency:t}),e.state.polling&&(e.stopPolling(),e.startPolling(t))}}}),s=f))||s;a.default=Q},function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(18),r(16),r(10),r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(18),r(42),r(16),r(10),r(4),r(23),r(57),r(17);var l=n(r(36)),u=n(r(37)),o=n(r(55)),i=n(r(56)),c=n(r(51)),s=n(r(0)),f=n(r(3)),d=r(186),p=r(52),m=n(r(3533)),h=n(r(3535));function v(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,c.default)(e);if(t){var n=(0,c.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,i.default)(this,a)}}var g=d.Tabs.TabPanel,y=function(e){(0,o.default)(r,e);var a=v(r);function r(){var e;(0,l.default)(this,r);for(var n=arguments.length,u=new Array(n),o=0;o0&&void 0!==arguments[0]?arguments[0]:[];return t.map((function(t){var a=Object.keys(t)[0];return s.default.createElement(m.default,{key:a,data:t,renderMetadata:e.renderMetadata})}))}},{key:"render",value:function(){return s.default.createElement(d.Tabs,{direction:"vertical",className:h.default.tabs},s.default.createElement(g,{label:s.default.createElement(d.Icon,{name:"resource",size:16}),name:"resource"},s.default.createElement("div",{className:h.default.content},this.renderHeader("METADATA"),this.renderEventMetadata())),s.default.createElement(g,{label:s.default.createElement(d.Icon,{name:"cloud",size:16}),name:"cloud"},s.default.createElement("div",{className:h.default.content},this.renderHeader("DETAILS"),this.renderDetail(),this.renderFooter())))}}]),r}(s.default.Component);a.default=y},function(e,t,a){"use strict";var r=a(20);a(12),a(11),a(6),a(9),a(13),a(10),a(4),a(23),a(17),a(7),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(12),a(45),a(11),a(6),a(28),a(42),a(448),a(34),a(15),a(9),a(13),a(10),a(4),a(23),a(57),a(17),a(7);var n=r(a(246)),l=r(a(30)),u=r(a(36)),o=r(a(37)),i=r(a(55)),c=r(a(56)),s=r(a(51)),f=r(a(0)),d=a(186),p=r(a(3534));function m(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function h(e){for(var t=1;t=r){var l=e.store,u=l.from,o=l.size;l.total>u+o&&e.loadMoreLogs()}}}}),(0,T.default)(f.prototype,"loadMoreLogs",[L.action],Object.getOwnPropertyDescriptor(f.prototype,"loadMoreLogs"),f.prototype),(0,T.default)(f.prototype,"fetchQuery",[L.action],Object.getOwnPropertyDescriptor(f.prototype,"fetchQuery"),f.prototype),(0,T.default)(f.prototype,"fetchHistogram",[L.action],Object.getOwnPropertyDescriptor(f.prototype,"fetchHistogram"),f.prototype),g=(0,T.default)(f.prototype,"toggleHistogram",[L.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(){e.setState((function(e){return{showHistogram:!e.showHistogram}}))}}}),y=(0,T.default)(f.prototype,"togglePolling",[L.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(){var t=e.state.polling;t?e.stopPolling():e.startPolling(),e.setState({polling:!t})}}}),E=(0,T.default)(f.prototype,"changeFrequency",[L.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(t){e.setState({pollingFrequency:t}),e.state.polling&&(e.stopPolling(),e.startPolling())}}}),s=f))||s;a.default=J},function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(18),r(10),r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(18),r(42),r(10),r(4),r(23),r(57),r(17);var l=n(r(36)),u=n(r(37)),o=n(r(55)),i=n(r(56)),c=n(r(51)),s=n(r(0)),f=r(186),d=n(r(3543)),p=n(r(3545));function m(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,c.default)(e);if(t){var n=(0,c.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,i.default)(this,a)}}var h=f.Tabs.TabPanel,v=function(e){(0,o.default)(r,e);var a=m(r);function r(){var e;(0,l.default)(this,r);for(var n=arguments.length,u=new Array(n),o=0;o0&&void 0!==arguments[0]?arguments[0]:[];return t.map((function(t){var a=Object.keys(t)[0];return s.default.createElement(d.default,{key:a,data:t,renderMetadata:e.renderMetadata})}))}},{key:"render",value:function(){return s.default.createElement(f.Tabs,{direction:"vertical",className:p.default.tabs},s.default.createElement(h,{label:s.default.createElement(f.Icon,{name:"resource",size:16}),name:"resource"},s.default.createElement("div",{className:p.default.content},this.renderHeader("METADATA"),this.renderEventMetadata())))}}]),r}(s.default.Component);a.default=v},function(e,t,a){"use strict";var r=a(20);a(12),a(11),a(6),a(9),a(13),a(10),a(4),a(23),a(17),a(7),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(12),a(45),a(11),a(6),a(28),a(42),a(448),a(34),a(15),a(9),a(13),a(10),a(4),a(23),a(57),a(17),a(7);var n=r(a(246)),l=r(a(30)),u=r(a(36)),o=r(a(37)),i=r(a(55)),c=r(a(56)),s=r(a(51)),f=r(a(0)),d=a(186),p=r(a(3544));function m(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function h(e){for(var t=1;t2&&a.shift(),a.forEach((function(e){t[e.type]=e.name})),t},(0,V.default)(e,"getCurrentMeterData",M,(0,W.default)(e)),(0,V.default)(e,"setMeterData",P,(0,W.default)(e)),e.fetchMeterData=function(){var t=(0,G.default)(o.default.mark((function t(a){var r,n,l,i,c;return o.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=a.module,n=a.meters,l=a.resources,i=(0,u.default)(a,["module","meters","resources"]),t.next=3,e.store.fetchMeter(Ie({module:r,meters:n,resources:l},i));case 3:return c=t.sent,t.abrupt("return",c);case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),(0,V.default)(e,"setTimeRange",A,(0,W.default)(e)),(0,V.default)(e,"getChildrenData",j,(0,W.default)(e)),e.getChildrenList=function(){var t=(0,G.default)(o.default.mark((function t(a){var r,n,l,u,i,c;return o.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=a.labelSelector,n=a.currentType,l=a.childParam,u=e.getChildrenTypeByLevel(n),(i=Ie(Ie({},e.getChildrenParamsByCrumb()),l)).cluster||(i.cluster=e.cluster),r&&(i.labelSelector=(0,ce.toJS)(r)),c=[],!["namespaces","services","openpitrixs"].includes(n)){t.next=14;break}if("namespaces"!==n||e.clusterMeterStore.levelMeterData[i.namespaces]){t.next=10;break}return t.next=10,e.clusterMeterStore.fetchLevelMeter(Ie({},i));case 10:return t.next=12,e.getTypesListData(n,i);case 12:return c=t.sent,t.abrupt("return",c);case 14:if(!u.children){t.next=19;break}return t.next=17,e.clusterMeterStore.fetchList(Ie({type:u.children[0]},i));case 17:return c=t.sent,t.abrupt("return",c);case 19:return t.abrupt("return",c);case 20:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),e.getClusterMeterChartData=function(){var t=(0,G.default)(o.default.mark((function t(a,r){var n,l,u,i,c,s,f,d,p,m,h;return o.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n=e.getMeterParamsByCrumb(),l=[],u=e.childrenResourceList.map((function(e){return{name:e.name,type:e.type,labelSelector:(0,ee.default)(e,"labelSelector")}})),Ee.RESOURCES_TYPE.forEach((function(e){var t=[];u.forEach((function(a){a.type===e&&t.push(a)})),(0,ae.default)(t)||l.push(t)})),i=[],c=!0,s=!1,t.prev=7,d=o.default.mark((function t(){var l,u,c,s,f,d,p;return o.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return u=(l=h)[0].type,c=[],s=l.map((function(e){return e.name})),f=(0,ne.default)(n),r||(f[u]=l[0].name),t.next=8,e.setMeterData({module:u,meters:[a],resources:s,params:f});case 8:d=t.sent,(0,ae.default)(d)||l.forEach((function(e){var t=d.find((function(t){return(0,ee.default)(t,"metric.".concat(t.module))===e.name}));if(t){var a=(0,ee.default)(t,"sum_value"),r=(0,ee.default)(t,"metric.".concat(t.module)),n=(0,ee.default)(t,"unit.label");c.push({name:r,value:a||0,unit:n,type:u})}})),p=(0,ie.default)(c,(function(e){return e.value})).reverse(),i.push(p);case 12:case"end":return t.stop()}}),t)})),p=(0,J.default)(l);case 10:return t.next=12,p.next();case 12:return m=t.sent,c=m.done,t.next=16,m.value;case 16:if(h=t.sent,c){t.next=22;break}return t.delegateYield(d(),"t0",19);case 19:c=!0,t.next=10;break;case 22:t.next=28;break;case 24:t.prev=24,t.t1=t.catch(7),s=!0,f=t.t1;case 28:if(t.prev=28,t.prev=29,c||null==p.return){t.next=33;break}return t.next=33,p.return();case 33:if(t.prev=33,!s){t.next=36;break}throw f;case 36:return t.finish(33);case 37:return t.finish(28);case 38:e.pieChartData=(0,ue.default)(i);case 39:case"end":return t.stop()}}),t,null,[[7,24,28,38],[29,,33,37]])})));return function(e,a){return t.apply(this,arguments)}}(),e.getWorkspacesMeterChartData=function(){var t=(0,G.default)(o.default.mark((function t(a){var r,n,l,u,c,s,f,d,p,m,h,v,g,y,E,b,_,O;return o.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("workspaces"!==(r=e.active.type)){t.next=6;break}return t.next=4,e.getClusterMeterChartData(a,!0);case 4:t.next=51;break;case 6:n=e.getMeterParamsByCrumb(),l=[],u=[],c=e.childrenResourceList.map((function(e){return{name:e.name,type:e.type,labelSelector:(0,ee.default)(e,"labelSelector")}})),Ee.RESOURCES_TYPE.forEach((function(e){var t=[];c.forEach((function(a){a.type===e&&t.push(a)})),(0,ae.default)(t)||u.push(t)})),s=Ie(Ie({},n),{},(0,i.default)({cluster:e.cluster},r,e.active.name)),f=e.clusterMeterStore.levelMeterData,d=e.getChildrenTypeByLevel(r),p=d.children,m=!0,h=!1,t.prev=17,g=(0,J.default)(p);case 19:return t.next=21,g.next();case 21:return y=t.sent,m=y.done,t.next=25,y.value;case 25:if(E=t.sent,m){t.next=34;break}b=E,_=(0,me.handleWSChartData)({levelMeterData:(0,ce.toJS)(f),meters:a,type:b,params:s}),O=(0,ie.default)(_,(function(e){return e.value})).reverse(),l.push(O);case 31:m=!0,t.next=19;break;case 34:t.next=40;break;case 36:t.prev=36,t.t0=t.catch(17),h=!0,v=t.t0;case 40:if(t.prev=40,t.prev=41,m||null==g.return){t.next=45;break}return t.next=45,g.return();case 45:if(t.prev=45,!h){t.next=48;break}throw v;case 48:return t.finish(45);case 49:return t.finish(40);case 50:e.pieChartData=(0,ue.default)(l);case 51:case"end":return t.stop()}}),t,null,[[17,36,40,50],[41,,45,49]])})));return function(e){return t.apply(this,arguments)}}(),(0,V.default)(e,"getResourceMeterData",L,(0,W.default)(e)),e.getChildrenParamsByCrumb=function(){var t={};return(0,ne.default)((0,ce.toJS)(e.crumbData)).forEach((function(e){t[e.type]=e.name})),t},e.getTypesListData=function(){var t=(0,G.default)(o.default.mark((function t(a,r){var n,l,u,i;return o.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.getChildrenTypeByLevel(a),l=[],n.children.forEach((function(t){l.push(e.clusterMeterStore.fetchList(Ie({type:t},r)))})),t.next=5,Promise.all(l);case 5:return u=t.sent,i=(0,ue.default)(u),t.abrupt("return",i);case 8:case"end":return t.stop()}}),t)})));return function(e,a){return t.apply(this,arguments)}}(),e.getChildrenTypeByLevel=function(t){return e.props.level.find((function(e){return(0,te.default)(e.type)?e.type.indexOf(t)>-1:e.type===t}))},e.setLineChartColor=function(e){return(0,ae.default)(e)?[]:(e.map((function(e,t){return e.key=e.type,e.color=ve.COLORS_MAP[Ee.AREA_COLORS[t]]||Ee.AREA_COLORS[t],e})),e)},e.renderParentMeterCard=function(){if(!e.active.type||"cluster"===e.active.type||"workspaces"===e.active.type||(0,ae.default)((0,ce.toJS)(e.priceConfig)))return null;var a=e.crumbData.length,r=e.crumbData[a-2],n="namespaces"===e.active.type&&2===a&&e.cluster?"".concat(r.name," (").concat(e.cluster,")"):r.name;return Z.default.createElement("div",{className:Re.default.usageCard},Z.default.createElement(Se.default,(0,l.default)({className:Re.default.meterCard,isParent:!0,priceConfig:e.priceConfig,title:Z.default.createElement(Z.default.Fragment,null,Z.default.createElement("span",null,t(Ee.RESOURCE_TITLE[(0,ee.default)(r,"type","-")])),Z.default.createElement("strong",null,n))},e.parentMeterData)))},(0,V.default)(e,"handleChartData",x,(0,W.default)(e)),(0,V.default)(e,"getTimeRange",U,(0,W.default)(e)),(0,V.default)(e,"getCurrentTimeMeterData",z,(0,W.default)(e)),(0,V.default)(e,"handleCrumbOperation",F,(0,W.default)(e)),e.renderSubResource=function(){var a=(0,ce.toJS)(e.pieChartData);return"pods"===e.active.type||"openpitrix"===e.props.meterType||(0,oe.default)(e.currentMeterData.sumData)||(0,ae.default)(a)?null:Z.default.createElement(Z.default.Fragment,null,Z.default.createElement("div",{className:Re.default.subTitle},t("CURRENT_RESOURCE_CONSUMPTION"),Z.default.createElement(se.Tooltip,{content:t("METER_RESOURCE_DESC"),placement:"top"},Z.default.createElement(se.Icon,{name:"question",size:20}))),Z.default.createElement("div",{className:Re.default.childrenResourceContainer},Z.default.createElement(se.Loading,{spinning:e.resourceLoading},Z.default.createElement("div",{className:Re.default.childrenlistContainer},Z.default.createElement(Ne.default,{selectOptions:(0,ce.toJS)(e.currentMeterData.sumData),getResourceMeterData:e.getResourceMeterData,activeName:e.active.name})),Z.default.createElement("div",{className:Re.default.constomChartContainer},Z.default.createElement(Te.default,{data:a})))))},e.renderEmpty=function(){return Z.default.createElement("div",{className:Re.default.empty},Z.default.createElement(pe.default,{className:Re.default.emptyCard,icon:ve.ICON_TYPES[e.active.type],title:t("NO_DATA_DESC"),desc:t("NO_METER_DATA")}))},e}return(0,Y.default)(r,[{key:"componentDidMount",value:function(){this.initData()}},{key:"render",value:function(){var e=this.active,a=e.type,r=e.name,n=e.createTime,u=(0,ye.getWebsiteUrl)().url,o=Object.values((0,ce.toJS)(this.currentMeterData)).every((function(e){return(0,ae.default)(e)}));return(0,ae.default)(this.list)?Z.default.createElement("div",{className:Re.default.empty},Z.default.createElement(se.Loading,{spinning:this.sideLoading||this.loading},Z.default.createElement(pe.default,{className:Re.default.emptyCard,icon:"cluster",title:t("NO_CLUSTER_AVAILABLE"),desc:(0,ye.learnMoreTip)(t.html("METERING_NOT_ENABLED_DESC",{docUrl:u})),actions:Z.default.createElement(ge.default,{onClick:this.props.handleBack},"返回")}))):Z.default.createElement("div",{className:Re.default.billDetail},Z.default.createElement("div",{className:(0,$.default)(Re.default.leftContent,(0,i.default)({},Re.default.paddingBottom0,this.crumbData.length<2||(0,ae.default)((0,ce.toJS)(this.priceConfig))))},Z.default.createElement(be.default,{crumbData:(0,ce.toJS)(this.crumbData),handleCrumbOperation:this.handleCrumbOperation,loading:this.loading||this.sideLoading,cluster:this.cluster}),Z.default.createElement(Oe.default,{list:this.list,active:(0,ce.toJS)(this.active),handleSelectResource:this.handleSelectResource,getChildrenData:this.getChildrenData,loading:this.sideLoading||this.loading,fetchMeterData:this.fetchMeterData,crumbData:this.crumbData,timeRange:(0,ce.toJS)(this.timeRange),getMeterParamsByCrumb:this.getMeterParamsByCrumb,priceConfig:this.priceConfig,cluster:this.cluster,clusterList:this.clusterList,priceConfigList:this.priceConfigList}),this.renderParentMeterCard()),Z.default.createElement("div",{className:Re.default.rightContent},Z.default.createElement(se.Loading,{spinning:this.loading},Z.default.createElement(Z.default.Fragment,null,Z.default.createElement(_e.default,{type:a,cluster:this.cluster,clusters:this.clusters,setCluster:this.setCluster}),o?this.renderEmpty():Z.default.createElement("div",{className:Re.default.content},Z.default.createElement(Se.default,(0,l.default)({className:Re.default.toothbg,title:Z.default.createElement(Z.default.Fragment,null,Z.default.createElement("span",null,t(Ee.RESOURCE_TITLE[a].toUpperCase().replace(/\s+/g,"_"))),Z.default.createElement("strong",null,r)),priceConfig:this.priceConfig},this.currentMeterData)),Z.default.createElement("div",{className:Re.default.subTitle},t("CONSUMPTION_HISTORY")),Z.default.createElement("div",{className:Re.default.info},(0,ae.default)((0,ce.toJS)(this.timeRange))?null:Z.default.createElement(Ce.default,{createTime:n,getTime:this.getTimeRange,timeRange:this.timeRange})),Z.default.createElement(De.default,{chartData:(0,ce.toJS)(this.chartData),priceConfig:this.priceConfig}),Z.default.createElement(ke.default,{data:(0,ce.toJS)(this.tableData),priceConfig:this.priceConfig}),this.renderSubResource())))))}}]),r}(Z.default.Component),f=(0,K.default)(s.prototype,"crumbData",[ce.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),d=(0,K.default)(s.prototype,"cacheCrumbData",[ce.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),p=(0,K.default)(s.prototype,"tableData",[ce.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),m=(0,K.default)(s.prototype,"active",[ce.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),h=(0,K.default)(s.prototype,"list",[ce.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),v=(0,K.default)(s.prototype,"timeRange",[ce.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),g=(0,K.default)(s.prototype,"currentMeterData",[ce.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),y=(0,K.default)(s.prototype,"parentMeterData",[ce.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),E=(0,K.default)(s.prototype,"sideLoading",[ce.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),b=(0,K.default)(s.prototype,"loading",[ce.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),_=(0,K.default)(s.prototype,"chartData",[ce.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),O=(0,K.default)(s.prototype,"priceConfig",[ce.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),S=(0,K.default)(s.prototype,"priceConfigList",[ce.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),C=(0,K.default)(s.prototype,"pieChartData",[ce.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),D=(0,K.default)(s.prototype,"resourceLoading",[ce.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),k=(0,K.default)(s.prototype,"getPriceConfigListByCluster",[ce.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(){var t=(0,G.default)(o.default.mark((function t(a){var r,n;return o.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=[],a.forEach((function(t){t.disabled||r.push(e.store.fetchPrice({cluster:t.name}))})),globals.app.isMultiCluster&&r.push(e.store.fetchPrice({cluster:""})),t.next=5,Promise.all(r);case 5:n=t.sent,e.priceConfigList=n;case 7:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()}}),N=(0,K.default)(s.prototype,"getClustersList",[ce.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(t){var a=e.crumbData[0].list.find((function(e){return e.name===t})),r="system-workspace"===t?e.clusterList:(0,ee.default)(a,"_origin.clusters",[]);if((0,ae.default)(r))return[];var n=r.map((function(t){var a=e.clusterList.find((function(e){return e.name===t.name}));return(0,ae.default)(a)?null:{label:a.name,value:a.name,type:a._origin.isHost?"host":"member",disabled:a.disabled,sortValue:Number(a.disabled)}})).filter((function(e){return!(0,ae.default)(e)}));return n.every((function(e){return e.disabled}))?[]:(0,ie.default)(n,(function(e){return e.sortValue}))}}}),T=(0,K.default)(s.prototype,"setPriceConfig",[ce.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(t){var a=t||(0,ee.default)(ve.DEFAULT_CLUSTER,"metadata.name"),r=e.priceConfigList.find((function(e){return e.cluster&&e.cluster===a})),n=(0,ne.default)(r);delete n.cluster,e.priceConfig=(0,ae.default)(n)?{}:r,e.setStartTime()}}}),R=(0,K.default)(s.prototype,"setStartTime",[ce.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(){e.startTime=(0,me.getRetentionDay)((0,ee.default)(e.priceConfig,"retention_day","7d"))}}}),w=(0,K.default)(s.prototype,"setCluster",[ce.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(){var t=(0,G.default)(o.default.mark((function t(a){var r,n,l,u;return o.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.cluster=a,e.loading=!0,r=e.active,n=r.name,l=r.type,u=e.list.find((function(e){return e.name===n})),e.setPriceConfig(a),t.next=7,e.getCurrentMeterData({name:n,type:l,isCopy:!0,isTime:!0,start:e.startTime,labelSelector:(0,ee.default)(u,"labelSelector","")});case 7:e.loading=!1;case 8:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()}}),I=(0,K.default)(s.prototype,"setActiveCrumb",[ce.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(t){var a=t.name,r=t.type,n=t.isCopy,l=t.start,u=(0,re.default)(e.crumbData);u.type=r,u.name=a,u.start=l,n&&(e.cacheCrumbData=(0,ne.default)((0,ce.toJS)(e.crumbData)))}}}),M=(0,K.default)(s.prototype,"getCurrentMeterData",[ce.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(){var t=(0,G.default)(o.default.mark((function t(a){var r,n,l,u,i,c,s,f,d;return o.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=a.name,n=a.type,l=a.isCopy,u=a.labelSelector,i=a.isTime,c=a.start,e.active={name:r,type:n,start:c},e.tableData=[],e.pieChartData=[],e.timeRange={},e.setActiveCrumb({name:r,type:n,isCopy:!!l,start:c}),s=e.getMeterParamsByCrumb(),e.loading=!0,t.next=10,e.setMeterData({module:n,meters:"all",resources:[r],start:c,isTime:i,params:s});case 10:return f=t.sent,t.next=13,e.getCurrentTimeMeterData({valueKey:"currentMeterData",module:n,resources:[r],start:c,params:s});case 13:if(e.tableData=e.setLineChartColor(f),e.setTimeRange({isTime:i,start:c}),e.chartData=f,"pods"===n){t.next=35;break}if(!["workspaces","cluster","nodes"].includes(n)){t.next=24;break}return t.next=20,e.getChildrenList({labelSelector:u,currentType:n});case 20:d=t.sent,e.childrenResourceList=d,t.next=31;break;case 24:if(e.clusterMeterStore.levelMeterData[s.namespaces]){t.next=30;break}return s.cluster||(s.cluster=e.cluster),t.next=28,e.clusterMeterStore.fetchLevelMeter(Ie({},s));case 28:t.next=31;break;case 30:e.childrenResourceList=[];case 31:return t.next=33,e.getResourceMeterData((0,ee.default)(e.tableData,"[0].type","cpu"));case 33:t.next=36;break;case 35:e.childrenResourceList=[];case 36:e.loading=!1;case 37:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()}}),P=(0,K.default)(s.prototype,"setMeterData",[ce.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(){var t=(0,G.default)(o.default.mark((function t(a){var r,n,l,u,i,c,s,f,d,p;return o.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=a.params,n=a.module,l=a.meters,u=a.resources,i=a.list,c=a.start,s=a.end,f=a.isTime,r.cluster&&"cluster"===e.props.meterType&&(e.cluster=r.cluster),r.cluster=e.cluster,"applications"!==n||(0,ae.default)(u)||(d=i||e.list,u=u.map((function(e){var t=d.find((function(t){return t.name===e})),a=(0,ee.default)(t,"_origin.version.name","")||(0,ee.default)(t,"_origin.version","");return"".concat(e).concat(a?":".concat(a):"")}))),"openpitrixs"===n&&globals.app.isMultiCluster&&"host"!==(0,ee.default)(e.clusters.find((function(e){return e.value===r.cluster})),"type")&&delete r.cluster,t.next=7,e.fetchMeterData(Ie({module:n,meters:l,resources:u,isTime:f,start:c,end:s},r));case 7:return p=t.sent,t.abrupt("return",p);case 9:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()}}),A=(0,K.default)(s.prototype,"setTimeRange",[ce.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(t){var a=t.isTime,r=(0,u.default)(t,["isTime"]),n=(0,me.getTimeParams)(Ie({isTime:a},r)),l=n.step,o=n.start,i=n.end;e.timeRange=o>=i?{}:{step:(0,he.getTimeStr)(l),start:1e3*o,end:1e3*i}}}}),j=(0,K.default)(s.prototype,"getChildrenData",[ce.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(){var t=(0,G.default)(o.default.mark((function t(a){var r,n,l,u,i,c,s,f;return o.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=a.name,n=a.type,l=a.labelSelector,u=(0,re.default)(e.crumbData),e.loading=!0,e.sideLoading=!0,"workspaces"===n&&r!==u.name&&(e.clusters=e.getClustersList(r),e.cluster=(0,ee.default)(e.clusters,"[0].value",""),e.setPriceConfig(e.cluster)),"cluster"===n&&r!==u.name&&e.setPriceConfig(r),e.setActiveCrumb({name:r,type:n,isCopy:!0,start:e.startTime}),t.next=9,e.getChildrenList({labelSelector:l,currentType:n});case 9:if(i=t.sent,(0,ae.default)(i)||!(0,te.default)(i)){t.next=20;break}return c=i[0].type,s=(0,re.default)(e.crumbData),f=e.getMeterParamsByCrumb(),t.next=16,e.getCurrentTimeMeterData({valueKey:"parentMeterData",params:f,module:s.type,start:s.start,resources:[s.name]});case 16:return e.crumbData.push({type:c,name:i[0].name,list:i,start:e.startTime}),t.next=19,e.getCurrentMeterData({name:i[0].name,type:c,isCopy:!0,isTime:!0,start:e.startTime,labelSelector:(0,ee.default)(i,"[0].labelSelector")});case 19:e.list=i;case 20:e.loading=!1,e.sideLoading=!1;case 22:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()}}),L=(0,K.default)(s.prototype,"getResourceMeterData",[ce.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(){var t=(0,G.default)(o.default.mark((function t(a){var r;return o.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=e.props.level,e.resourceLoading=!0,"workspaces"!==r[0].type){t.next=7;break}return t.next=5,e.getWorkspacesMeterChartData(a);case 5:t.next=9;break;case 7:return t.next=9,e.getClusterMeterChartData(a);case 9:e.resourceLoading=!1;case 10:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()}}),x=(0,K.default)(s.prototype,"handleChartData",[ce.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(){var t=(0,G.default)(o.default.mark((function t(a){var r,n,l,i;return o.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=a.meters,n=(0,u.default)(a,["meters"]),l=e.active.name,e.tableData=[],t.next=5,e.setMeterData({module:e.active.type,resources:[l],meters:r,isTime:!0,params:n});case 5:i=t.sent,e.tableData=e.setLineChartColor(i),e.chartData=i;case 8:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()}}),U=(0,K.default)(s.prototype,"getTimeRange",[ce.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(t){var a=t.type,r=t.value;if("close"===t.methord){var n=e.getMeterParamsByCrumb();(0,le.default)(e.timeRange,"".concat(a),r),e.handleChartData(Ie(Ie({meters:"all"},n),(0,ce.toJS)(e.timeRange)))}(0,le.default)(e.timeRange,"".concat(a),r)}}}),z=(0,K.default)(s.prototype,"getCurrentTimeMeterData",[ce.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(){var t=(0,G.default)(o.default.mark((function t(a){var r,n,l,u,i,c,s,f,d;return o.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=a.valueKey,n=a.params,l=a.module,u=a.start,i=a.resources,t.next=3,e.setMeterData({params:n,meters:"all",module:l,start:u,end:new Date,resources:i,valueKey:"parentMeterData",isTime:!0});case 3:c=t.sent,s=e.getSumMeterData(c),f=s.sumData,d=s.feeData,e[r]={sumData:f,feeData:d};case 6:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()}}),F=(0,K.default)(s.prototype,"handleCrumbOperation",[ce.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(){var t=(0,G.default)(o.default.mark((function t(a){var r,n,l,u,i,c,s;return o.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=e.crumbData.length-1,e.sideLoading=!0,"back"!==a){t.next=11;break}if(!(r<=0)){t.next=7;break}return e.props.handleBack(),e.sideLoading=!1,t.abrupt("return");case 7:e.crumbData.pop(),r-=1,t.next=18;break;case 11:if(!((n=e.cacheCrumbData.length-1)<=0||n===r)){t.next=15;break}return e.sideLoading=!1,t.abrupt("return");case 15:l=e.cacheCrumbData[r+1],e.crumbData.push(l),r+=1;case 18:if(u=(0,re.default)(e.crumbData),!(r>0)){t.next=25;break}return i=e.crumbData[r-1],c=e.getMeterParamsByCrumb(),"workspaces"===i.type?(c.workspaces=i.name,e.clusters=e.getClustersList(i.name),Object.keys(c).forEach((function(e){"workspaces"!==e&&(c[e]=void 0)}))):c[u.type]=void 0,t.next=25,e.getCurrentTimeMeterData({params:c,valueKey:"parentMeterData",module:i.type,start:i.start,resources:[i.name]});case 25:return s=u.list.find((function(e){return e.name===u.name})),t.next=28,e.getCurrentMeterData({name:u.name,type:u.type,start:e.startTime,labelSelector:(0,ee.default)(s,"labelSelector",""),isTime:!0});case 28:e.list=u.list,e.sideLoading=!1;case 30:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()}}),c=s))||c;a.default=Pe},,function(e,t,a){"use strict";var r=a(20);a(12),a(5),a(11),a(6),a(29),a(16),a(9),a(13),a(10),a(4),a(22),a(23),a(17),a(38),a(7),a(32),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(12),a(45),a(5),a(11),a(6),a(29),a(28),a(42),a(16),a(34),a(15),a(9),a(13),a(10),a(4),a(22),a(23),a(57),a(17),a(38),a(7),a(32);var n=r(a(43)),l=r(a(30)),u=r(a(58));a(41);var o,i,c,s,f,d,p,m,h,v,g=r(a(44)),y=r(a(65)),E=r(a(36)),b=r(a(37)),_=r(a(88)),O=r(a(55)),S=r(a(56)),C=r(a(51)),D=r(a(49)),k=(r(a(66)),a(14)),N=r(a(60)),T=r(a(63)),R=r(a(158)),w=r(a(438)),I=r(a(856)),M=r(a(445)),P=r(a(439)),A=r(a(961)),j=r(a(1206)),L=r(a(443)),x=r(a(318)),U=r(a(452)),z=a(72),F=a(1205);function G(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function V(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.cluster,a=e.namespaces,r=e.workspaces,n=e.deployments,l=e.statefulsets,u=e.daemonsets,o=e.services,i=e.pods,c="";return t&&(c+="/klusters/".concat(t)),a&&(c+="/namespaces/".concat(a)),r&&(c+="/workspaces/".concat(r)),o&&(c+="/services/".concat(o)),n&&(c+="/deployments/".concat(n)),l&&(c+="/statefulsets/".concat(l)),u&&(c+="/daemonsets/".concat(u)),i&&(c+="/pods/".concat(i)),c}},{key:"isMultiCluster",get:function(){return!globals.app.isMultiCluster}}]),a}(r(a(1781)).default),i=(0,D.default)(o.prototype,"list",[k.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),c=(0,D.default)(o.prototype,"clustersConfig",[k.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),s=(0,D.default)(o.prototype,"cacheList",[k.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),f=(0,D.default)(o.prototype,"levelMeterData",[k.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),d=(0,D.default)(o.prototype,"cacheLevelData",[k.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),p=(0,D.default)(o.prototype,"isLoading",[k.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),m=(0,D.default)(o.prototype,"fetchList",[k.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(){var t=(0,g.default)(n.default.mark((function t(a){var r,l,o,i,c,s,f,d,p;return n.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=a.type,l=(0,u.default)(a,["type"]),o=e.getStore(r),i=(0,F.getFetchParams)(V({isMultiCluster:e.isMultiCluster,type:r},l)),c=(0,F.getListConfig)({isMultiCluster:e.isMultiCluster,type:r}),s=[],i.forEach((function(e){"[object Array]"===Object.prototype.toString.call(o)?o.forEach((function(t){s.push(t.fetchList(V({},e)))})):s.push(o.fetchList(V({},e)))})),t.next=8,Promise.all(s).catch((function(){return[]}));case 8:if(f=t.sent,d=[],!(0,T.default)(f)&&(0,N.default)(f)&&f.forEach((function(t,a){t.forEach((function(t){if(!(0,F.hasNameSpacesType)(r)||(0,F.hasNameSpacesType)(r)&&(0,F.filterListByType)(V({type:r},l))(t)){var n=c[a],u=n.status,o=n.desc,i=e.handleStatusByWorkload(u,r,t),s=e.handleNameByType(r,t),f=e.handleIconByType(r,t.provider);d.push({icon:f,name:s,status:i,desc:o,labelSelector:t.selector,type:r,_origin:V({},t)})}}))})),"pods"===r&&(d=d.filter((function(e){return"Completed"!==e.status&&"Error"!==e.status}))),!l.node){t.next=15;break}return e.list=d,t.abrupt("return",d);case 15:return t.next=17,(0,F.filterResourceLevel)(V({levelMeterData:e.levelMeterData,type:r,data:d},l));case 17:return p=t.sent,e.list=p,t.abrupt("return",p);case 20:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()}}),h=(0,D.default)(o.prototype,"fetchLevelMeter",[k.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(){var t=(0,g.default)(n.default.mark((function t(a){var r,u,o,i,c,s;return n.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=a.cluster,u=a.namespaces,o=a.workspaces,r&&(e.cluster=r),i="".concat(e.tenantUrl({cluster:r}),"/namespaces/").concat(u,"/metering/hierarchy").concat(o?"?workspace=".concat(o):""),t.next=5,request.get(i,{},{},(function(){return{}}));case 5:return c=t.sent,s=(0,R.default)(c)||(0,T.default)(c)?{}:(0,l.default)({},u,c),e.levelMeterData=s,t.abrupt("return",s);case 9:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()}}),v=(0,D.default)(o.prototype,"setLevelMeterData",[k.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(t){e.levelMeterData=t}}}),o);t.default=Y},,,,,,function(e,t,a){"use strict";a(15);var r=a(20);a(5),a(6),a(16),a(4),a(23),a(17),a(7),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(45),a(5),a(6),a(28),a(42),a(16),a(4),a(23),a(57),a(17),a(7);var n=r(a(36)),l=r(a(37)),u=r(a(55)),o=r(a(56)),i=r(a(51)),c=r(a(0)),s=r(a(1)),f=a(186),d=a(72),p=r(a(3565)),m=r(a(1398));function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,i.default)(e);if(t){var n=(0,i.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,o.default)(this,a)}}var v=function(e){(0,u.default)(a,e);var t=h(a);function a(){var e;(0,n.default)(this,a);for(var r=arguments.length,l=new Array(r),u=0;u0?l.default.createElement(u.Select,{className:o.default.clusterSelect,options:n,optionRenderer:function(e){var t=e.label,a=e.disabled;return l.default.createElement("span",{style:{display:"flex",alignItem:"center"}},t,l.default.createElement("span",{style:{marginLeft:"10px"}},a?l.default.createElement(u.Icon,{name:"update",color:{primary:"#ffc781",secondary:"#f5a623"}}):null))},value:r,onChange:function(e){i(e)},showTip:!0}):null)};a.default=i},function(e,t,a){e.exports={title:"_2aGXmcx7mFZbhToSS1A-OM",clusterSelect:"_5ayuJN6svE2FJ4y0dsmAQ"}},function(e,a,r){"use strict";var n=r(20);r(12),r(5),r(11),r(31),r(6),r(29),r(18),r(16),r(9),r(13),r(10),r(4),r(22),r(23),r(17),r(38),r(7),r(32),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(45),r(5),r(11),r(31),r(6),r(29),r(18),r(28),r(42),r(16),r(34),r(15),r(9),r(13),r(10),r(4),r(22),r(23),r(57),r(17),r(38),r(7),r(32);var l=n(r(43)),u=n(r(30));r(41);var o,i,c,s,f,d,p=n(r(44)),m=n(r(65)),h=n(r(36)),v=n(r(37)),g=n(r(88)),y=n(r(55)),E=n(r(56)),b=n(r(51)),_=n(r(49)),O=(n(r(66)),n(r(0))),S=r(239),C=r(14),D=r(186),k=r(909),N=n(r(1375)),T=n(r(63)),R=n(r(158)),w=n(r(449)),I=n(r(26)),M=r(1205),P=n(r(3570)),A=n(r(3572));function j(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function L(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},a=e.className,r=e.title,n=e.isParent,p=e.priceConfig,m=(0,l.default)(e,["className","title","isParent","priceConfig"]),h=p.currency?p.currency:" ",v=function(){var e=m.feeData,t=0;return(0,s.default)(e)||(0,c.default)(e)||(t=Object.keys(e).map((function(t){return 100*parseFloat((0,i.default)(e[t],"value",0))})).reduce((function(e,t){return e+t}))/100),t.toFixed(2)},g=function(e){var t=y(e);return"-"!==t?t.toFixed(3):t},y=function(e){return(0,s.default)(e)?"-":e<0?0:e},E=function(e,a){return(0,c.default)(e)?null:"price"===a&&(0,c.default)(p)?u.default.createElement("ul",{className:f.default.noPriceTip},u.default.createElement("li",null,t("PRICE_CONFIG_DESC"))):u.default.createElement("ul",null,Object.keys(e).map((function(r){var n=(0,i.default)(e[r],"value"),l="meter"===a?g(n):y(n);return e[r]?u.default.createElement("li",{key:r},u.default.createElement("div",null,l),u.default.createElement("p",null,u.default.createElement("span",null,t(d.METER_RESOURCE_TITLE[r].toUpperCase().replace(/\s+/g,"_"))),u.default.createElement("span",null,"(",(0,i.default)(e[r],"unit.label","-"),")"))):null})))},b=function(e){var a=v();return u.default.createElement("div",null,u.default.createElement("h3",null,e," ",t("CONSUMPTION_SINCE_CREATION")),(0,c.default)(p)?null:u.default.createElement("div",{className:f.default.totalPrice},u.default.createElement("h4",null,a),u.default.createElement("p",null,t("TOTAL_COST",{unit:h}))))},_=function(e){var a=v();return u.default.createElement("div",{className:f.default.parentCostContainer},u.default.createElement("div",null,u.default.createElement("h3",null,e),u.default.createElement("span",null," ",t("CONSUMPTION_SINCE_CREATION"))),u.default.createElement("p",null,u.default.createElement("span",null,h),a))},O=m.sumData,S=void 0===O?{}:O,C=m.feeData,D=void 0===C?{}:C;return n?u.default.createElement("div",{className:(0,o.default)(f.default.billTotal,a)},_(r)):u.default.createElement("div",{className:(0,o.default)(f.default.billTotal,a)},b(r),u.default.createElement("div",{className:f.default.consumContainer},(0,c.default)(S)&&(0,c.default)(D)?null:u.default.createElement(u.default.Fragment,null,E(S,"meter"),u.default.createElement("div",{className:f.default.line}),E(D,"price"))))};a.default=p},function(e,t,a){e.exports={billTotal:"_2yAhIbTXhLB8AgqHVlMiY",parentCostContainer:"_2Q8zNmDqt_oiHw6Gea24im",totalPrice:"_1UrXZ5SCxDX8Afu2MVimjJ",consumContainer:"_1TAVSr4ki5JW2eC-92JCkR",noPriceTip:"_17jZhcUtJrSh3-xDgz5rNX",line:"rQmHupJi6faIkggp0AD-m"}},function(e,a,r){"use strict";r(15);var n=r(20);r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(42),r(4),r(23),r(57),r(17);var l=n(r(36)),u=n(r(37)),o=n(r(55)),i=n(r(56)),c=n(r(51)),s=n(r(0)),f=r(186),d=n(r(240)),p=r(950),m=n(r(201)),h=n(r(243)),v=n(r(3576));function g(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,c.default)(e);if(t){var n=(0,c.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,i.default)(this,a)}}var y=["1h","2h","4h","8h","1d"],E="zh"===(0,m.default)("lang")?"Y年Md日 H:i":"M d, Y H:i",b=function(e){(0,o.default)(r,e);var a=g(r);function r(e){var n;(0,l.default)(this,r),(n=a.call(this,e)).getTimeRange=function(e){var t=e.type,a=e.methord;return function(e){var r=n.props,l=r.getTime,u=r.timeRange,o=u.end,i=u.start,c=new Date(e[0]).getTime();"start"===t&&c>=o||"end"===t&&c<=i||l({type:t,value:c,methord:a})}},n.handleStepChange=function(e){var a=e.type,r=e.methord;return function(e){var l=e,u=n.props,o=u.getTime,i=u.timeRange,c=i.end,s=i.start;Math.floor((c-s)/3600/24/1e3)>=30&&"1d"!==l?d.default.error({content:t("TIMERANGE_MORE_30DAY_MSG")}):o({type:a,value:l,methord:r})}},n.handleTimeRangeChange=function(e){return function(a){var r=n.props,l=r.getTime,u=r.timeRange,o=u.end,i=u.start,c=u.step,s=new Date(a[0]).getTime();if("start"===e&&s>=o||"end"===e&&s<=i)d.default.error({content:t("TIMERANGE_SELECTOR_MSG")});else{if("start"===e)Math.floor((o-s)/3600/24/1e3)>=30&&"1d"!==c&&l({type:"step",value:"1d",methord:"change"});if("end"===e)Math.floor((s-i)/3600/24/1e3)>=30&&"1d"!==c&&l({type:"step",value:"1d",methord:"change"});l({type:e,value:s,methord:"change"})}}};var u=n.props.timeRange,o=u.end||new Date;return n.endMaxDate=new Date(o),n.maxDate=new Date((0,h.default)(o).subtract(1,"minutes")),n.minDate=new Date(u.start),n}return(0,u.default)(r,[{key:"render",value:function(){var e=this.props.timeRange,a=e.step,r=e.start,n=e.end;return s.default.createElement("div",{className:v.default.datepicker},s.default.createElement("div",{className:v.default.datepickerLeft},s.default.createElement("div",null,t("BILLING_CYCLE"))),s.default.createElement("div",{className:v.default.datepickerRight},s.default.createElement("div",null,s.default.createElement(f.DatePicker,{defaultValue:r,value:r,showClearBtn:!1,dateFormat:E,minDate:this.minDate,maxDate:this.maxDate,onClose:this.getTimeRange({type:"start",methord:"close"}),onChange:this.handleTimeRangeChange("start")}),s.default.createElement("p",null,t("START_TIME"))),s.default.createElement("div",null,s.default.createElement(f.DatePicker,{defaultValue:n,value:n,showClearBtn:!1,dateFormat:E,minDate:this.minDate,maxDate:this.endMaxDate,onClose:this.getTimeRange({type:"end",methord:"close"}),onChange:this.handleTimeRangeChange("end")}),s.default.createElement("p",null,t("END_TIME"))),s.default.createElement("div",null,s.default.createElement("div",null,s.default.createElement(f.Select,{value:a,options:(0,p.getTimeOptions)(y),onChange:this.handleStepChange({type:"step",methord:"close"})})),s.default.createElement("p",null,t("SAMPLING_INTERVAL")))))}}]),r}(s.default.Component);a.default=b},function(e,t,a){e.exports={datepicker:"_27tdhObpPbURPjQ15hD9_p",datepickerLeft:"_1keZq2egvTiK6G1mB4EamV",datepickerRight:"_2JDSh06KoL1Fb1gCk0R4Qr"}},function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(6),r(29),r(18),r(4),r(23),r(24),r(17),r(64),r(7),r(32),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(6),r(29),r(18),r(42),r(4),r(23),r(57),r(24),r(17),r(64),r(7),r(32);var l=n(r(315)),u=n(r(36)),o=n(r(37)),i=n(r(55)),c=n(r(56)),s=n(r(51)),f=n(r(0)),d=n(r(26)),p=n(r(74)),m=n(r(63)),h=n(r(806)),v=n(r(60)),g=r(186),y=r(798),E=r(794),b=n(r(833)),_=n(r(3578)),O=r(943),S=n(r(3580));function C(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,s.default)(e);if(t){var n=(0,s.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,c.default)(this,a)}}var D=function(e){(0,i.default)(r,e);var a=C(r);function r(){var e;(0,u.default)(this,r);for(var n=arguments.length,l=new Array(n),o=0;o=0?1:-1),O=b,S=v>=0?"start":"end";return o.default.createElement("g",null,o.default.createElement("text",{x:a,y:r,dy:8,textAnchor:"middle",fill:f,className:"chart__center__text"},d.name),o.default.createElement(i.default,{cx:a,cy:r,innerRadius:l,outerRadius:u,startAngle:c,endAngle:s,fill:f}),o.default.createElement(i.default,{cx:a,cy:r,startAngle:c,endAngle:s,innerRadius:u+6,outerRadius:u+10,fill:f}),o.default.createElement("path",{d:"M".concat(g,",").concat(y,"L").concat(E,",").concat(b,"L").concat(_,",").concat(O),stroke:f,fill:"none"}),o.default.createElement("circle",{cx:_,cy:O,r:2,fill:f,stroke:"none"}),o.default.createElement("text",{x:_+12*(v>=0?1:-1),y:O,textAnchor:S,fill:"#333"},"".concat(m," ").concat(d.unit)),o.default.createElement("text",{x:_+12*(v>=0?1:-1),y:O,dy:18,textAnchor:S,fill:"#999"},"(".concat((100*p).toFixed(2),"%)")))},_=function(e){var a=e.data,r=e.dataKey,n=void 0===r?"value":r,l=(0,o.useState)(0),i=(0,u.default)(l,2),_=i[0],O=i[1];return(0,m.default)(a)?null:o.default.createElement(c.default,{width:"100%",height:"100%"},o.default.createElement(p.default,{width:250,height:250},o.default.createElement(s.default,{vertical:!0,content:function(e){var a=e.payload;return o.default.createElement("div",{className:g.default.resourceList},o.default.createElement("ul",null,a.map((function(e,a){var r=e.payload,n=r.name,l=r.value,u=r.type,i=r.unit;return o.default.createElement("li",{key:"item-".concat(a)},o.default.createElement("i",{style:{background:e.color}}),o.default.createElement(E.default,{icon:v.ICON_TYPES[u],type:u,name:n}),o.default.createElement(h.default,{className:g.default.info,title:"".concat(n),description:t(y.RESOURCE_TITLE[u])}),o.default.createElement("span",null," ".concat(l," ").concat(i)))}))))},verticalAlign:"top"}),o.default.createElement(d.default,{cx:"70%",data:a,dataKey:n,innerRadius:"60%",outerRadius:"75%",activeShape:b,activeIndex:_,onMouseEnter:function(e,t){O(t)}},a.map((function(e,t){return o.default.createElement(f.default,{key:"cell-".concat(e.name),fill:y.PIE_COLORS[t%y.PIE_COLORS.length],strokeWidth:1})})))))};a.default=_},function(e,t,a){e.exports={resourceList:"_31MsHfl5iWHdowDFRcP_c_",info:"_1x0CTr7Gdd16AxoTqHsNYT"}},function(e,t,a){e.exports={empty:"_17Mqxb1Mgn-uRdDZOJ1Qry",emptyCard:"_3Je_SSJ5BVw3PS1lYiaF4a",billDetail:"_34UPSURIT6CqbdKJPw0R7F",paddingBottom0:"Pwj-ykGPltZo5v5_plDlH",leftContent:"_3s_-nS9c5xnUUgNEPJ8KBe",usageCard:"_21O2m-U6tWGv0Y9s4Y4Ajh",meterCard:"_2gAbgzqWqzvuq_xZzCJQ1f",rightContent:"_3Aa1yND_BGYLN9nw7XneCp",content:"_3g0_NpYdRmw2VOPc2T6ywW",toothbg:"_1Rh1CvWKS3lQeuSjvWt3Y0",subTitle:"_3jfzvzWfyayS9TsDXqD6lC",info:"_2oNPFCeABRFS8ryVIKhich",childrenResourceContainer:"_1OGurl1hQb7F7WnATfB1QY",childrenlistContainer:"_2pzMlSUqyzZuZDlITePlsG",constomChartContainer:"_1yVmPte_v552Dq8WqeShqg"}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,a){e.exports={wrapper:"_1FhVvljOspycHsfzDrmHds",item:"_3uwdOWJxem3W_jqv6BAFu0",disabled:"sjn_zdlBrahI74WoV5omc",cluster:"_2s530jxSq442V0tK0dIkX-",action:"_30jbBaVzPyFFq_kLZenMJb",loading:"_2AViFhQ9LVdDjo1TbCma_n",clusterGroupTag:"_2tthhYeEaldV9GRAYCBRGE",production:"_3yIRf79JJMwAIiDuiJ-pCJ",development:"_3tNJGwW0JIy457E7wJg2vi",testing:"ITsFiOT5f8SuWqLf3dqin",demo:"rCDJ6PUxymw3W-b5WZ8KP",radios:"_3s7U5MUfODfm6UTxJ8Gkak"}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,a){"use strict";a(15),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(832),n={"node:pod_abnormal:ratio{$1}":{label:"UNAVAILABLE_POD_RATIO",prefixIcon:"pod",ruleConfig:r.PERCENT_RULE_CONFIG},"node:pod_utilisation:ratio{$1}":{label:"POD_QUOTA_UTILIZATION_SCAP",prefixIcon:"pod",ruleConfig:r.PERCENT_RULE_CONFIG},"node:node_cpu_utilisation:avg1m{$1}":{label:"CPU_UTILIZATION_SCAP",prefixIcon:"cpu",ruleConfig:r.PERCENT_RULE_CONFIG},"node:load1:ratio{$1}":{label:"CPU_LOAD_1",prefixIcon:"cpu",ruleConfig:r.BASE_RULE_CONFIG},"node:load5:ratio{$1}":{label:"CPU_LOAD_5",prefixIcon:"cpu",ruleConfig:r.BASE_RULE_CONFIG},"node:load15:ratio{$1}":{label:"CPU_LOAD_15",prefixIcon:"cpu",ruleConfig:r.BASE_RULE_CONFIG},"node:node_memory_bytes_available:sum{$1}":{label:"MEMORY_AVAILABLE",prefixIcon:"memory",ruleConfig:r.DISK_RULE_CONFIG},"node:node_memory_utilisation:{$1}":{label:"MEMORY_UTILIZATION_SCAP",prefixIcon:"memory",ruleConfig:r.PERCENT_RULE_CONFIG},"node:disk_space_available:{$1}":{label:"DISK_SPACE_AVAILABLE",prefixIcon:"storage",ruleConfig:r.DISK_RULE_CONFIG},"node:disk_space_utilization:ratio{$1}":{label:"DISK_SPACE_UTILIZATION",prefixIcon:"storage",ruleConfig:r.PERCENT_RULE_CONFIG},"node:disk_inode_utilization:ratio{$1}":{label:"INODE_UTILIZATION",prefixIcon:"storage",ruleConfig:r.PERCENT_RULE_CONFIG},"node:data_volume_iops_reads:sum{$1}":{label:"DISK_READ_IOPS",prefixIcon:"storage",ruleConfig:r.BASE_RULE_CONFIG},"node:data_volume_iops_writes:sum{$1}":{label:"DISK_WRITE_IOPS",prefixIcon:"storage",ruleConfig:r.BASE_RULE_CONFIG},"node:data_volume_throughput_bytes_read:sum{$1}":{label:"DISK_READ_THROUGHPUT",prefixIcon:"storage",ruleConfig:r.THROUGHPUT_RULE_CONFIG},"node:data_volume_throughput_bytes_written:sum{$1}":{label:"DISK_WRITE_THROUGHPUT",prefixIcon:"storage",ruleConfig:r.THROUGHPUT_RULE_CONFIG},"node:node_net_bytes_transmitted:sum_irate{$1}":{label:"DATA_SEND_RATE",prefixIcon:"network",ruleConfig:r.BANDWIDTH_RULE_CONFIG},"node:node_net_bytes_received:sum_irate{$1}":{label:"DATA_RECEIVE_RATE",prefixIcon:"network",ruleConfig:r.BANDWIDTH_RULE_CONFIG}};t.default=n},function(e,t,a){"use strict";a(15),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(832),n=(0,r.getBaseRuleConfig)({thresholds:{unit:"Kbps"}}),l={"namespace:workload_cpu_usage:sum{$1}":{label:"CPU_USAGE_SCAP",prefixIcon:"cpu",ruleConfig:r.CPU_RULE_CONFIG},"namespace:workload_memory_usage:sum{$1}":{label:"MEMORY_USAGE_SCAP",prefixIcon:"memory",ruleConfig:r.MEMORY_RULE_CONFIG},"namespace:workload_memory_usage_wo_cache:sum{$1}":{label:"MEMORY_USAGE_WO_CACHE_SCAP",prefixIcon:"memory",ruleConfig:r.MEMORY_RULE_CONFIG},"namespace:workload_net_bytes_transmitted:sum_irate{$1}":{label:"DATA_SEND_RATE",prefixIcon:"network",ruleConfig:n},"namespace:workload_net_bytes_received:sum_irate{$1}":{label:"DATA_RECEIVE_RATE",prefixIcon:"network",ruleConfig:n},"namespace:$2_unavailable_replicas:ratio{$1}":{label:"UNAVAILABLE_WORKLOAD_REPLICA_RATIO",prefixIcon:"backup",ruleConfig:r.PERCENT_RULE_CONFIG}};t.default=l},function(e,t,a){"use strict";a(15),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(832),n=(0,r.getBaseRuleConfig)({thresholds:{unit:"Kbps"}}),l={pod_cpu_usage:{label:"CPU_USAGE_SCAP",prefixIcon:"cpu",ruleConfig:r.CPU_RULE_CONFIG},pod_cpu_utilisation:{label:"CPU_UTILIZATION_SCAP",prefixIcon:"cpu",ruleConfig:r.PERCENT_RULE_CONFIG},pod_memory_usage:{label:"MEMORY_USAGE_SCAP",prefixIcon:"memory",ruleConfig:r.MEMORY_RULE_CONFIG},pod_memory_usage_wo_cache:{label:"MEMORY_USAGE_WO_CACHE_SCAP",prefixIcon:"memory",ruleConfig:r.MEMORY_RULE_CONFIG},pod_memory_utilisation:{label:"MEMORY_UTILIZATION_SCAP",prefixIcon:"memory",ruleConfig:r.PERCENT_RULE_CONFIG},pod_net_bytes_transmitted:{label:"DATA_SEND_RATE",prefixIcon:"network",ruleConfig:n},pod_net_bytes_received:{label:"DATA_RECEIVE_RATE",prefixIcon:"network",ruleConfig:n}};t.default=l},function(e,t,a){e.exports={tab_button:"_1GjZQuKzwgC-xJHgrDeRWF"}},function(e,t,a){e.exports={statusBox:"_3-nUUNPdHf6nbcNilZpYRu",tipContent:"_3hWwCJ2aJ_CoClIJxwLD92","li-inactive":"qR0ICXRI_XTjTQpSmpQ30","li-pending":"mSNAp1UtzsfpxCLTnhS7r","li-firing":"_3-ibjgejpBZzHSyM9CLeFN","li-disabled":"_28ksGom3cFiMbDfJ69J2Sj",pending:"i0nzirrByxHGMEKshU2B8",inactive:"TSFq6Mn2U7nNIetXHhvbq",firing:"_3ZvlqZkrbQaAbCXIzga0Gz",disabled:"_2x-hssz0bLHxhscbkXhHRp",iconDisabled:"_1BJXzHjXw3Nt_eSzIZepU4"}},function(e,t,a){e.exports={wrapper:"_3CpXh5MQSB8n7L6OXc7ywb",header:"_2hifQ3b2l1YUmAwfc_edPZ",banner:"_1tHeasrKfQAP5PPnH3kiAU",toolbar:"_1Tny-SYL1rocrF2kq-buRw",keyword:"_3ZFaXRGjHJxsMgsf7RM7xw",loading:"_2K9VjkD9XMBf2NvcEMJnVX",bottomLine:"_3nxTNKx3AtqUA6JhYLjjH7","table-icon":"_1qE9Pp0LPqxfcpulbP71V-",status_icon:"_3ob3SnNsE5wyYrjjB2PTMm",tab_button:"r-sE4t_ogqB-qnJe4kpcu"}},,,,function(e,a,r){"use strict";r(15);var n=r(157),l=r(20);r(97),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(97),r(4);var u=l(r(96)),o=n(r(0)),i=r(3713),c=l(r(3)),s=r(3716),f=r(3717),d=r(186),p=l(r(3719));var m=function(e){var a=e.item,r=e.user,n=(0,s.useDashboardHistory)(r),l=(0,u.default)(n,2),m=l[0],h=l[1],v=m.some((function(e){return e.id===a.id})),g=(0,f.useEventEmitter)();return(0,o.useEffect)((function(){g.$emit("FavoriteHistory-".concat(a.id),m)}),[m]),(0,o.useEffect)((function(){var e=function(e){m!==e&&h(e)};return g.$on("FavoriteHistory-".concat(a.id),e),function(){g.$off("FavoriteHistory-".concat(a.id),e)}}),[]),o.default.createElement("div",{className:(0,c.default)(p.default.favorite,"favorite-icon")},o.default.createElement(d.Tooltip,{content:v?t("CANCEL_QUICK_ACCESS"):t("ADD_TO_QUICK_ACCESS")},o.default.createElement("div",{onClick:function(e){e.stopPropagation(),e.preventDefault(),h(v?(0,s.removeDashboardHistory)(r,a.id,!1):(0,s.addDashboardHistory)(r,a,!1))}},v?o.default.createElement(i.StarDuotone,{className:"star",color:"#F5A623",size:16}):o.default.createElement(i.StarHalfDuotone,{className:"starHalf",size:16,color:"#36435C"}))))};a.default=m},function(e,t,a){"use strict";a(15),Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"StarDuotone",{enumerable:!0,get:function(){return r.StarDuotone}}),Object.defineProperty(t,"StarHalfDuotone",{enumerable:!0,get:function(){return n.StarHalfDuotone}});var r=a(3714),n=a(3715)},function(e,t,a){"use strict";a(15);var r=a(20);Object.defineProperty(t,"__esModule",{value:!0}),t.StarDuotone=function(e){var t=(0,l.mapProps)(e,16);return n.default.createElement("svg",t,n.default.createElement("path",{d:"M7.70083 0.943204C7.82285 0.694551 8.17731 0.69455 8.29932 0.943204L10.2145 4.84615C10.3113 5.04344 10.4992 5.18034 10.7166 5.21212L15.0015 5.83833C15.2743 5.8782 15.3836 6.21317 15.1867 6.40619L12.0825 9.44937C11.9265 9.60235 11.8553 9.82209 11.8921 10.0375L12.6246 14.3331C12.6711 14.6056 12.3846 14.813 12.1402 14.6838L8.3117 12.6595C8.11674 12.5564 7.88341 12.5564 7.68846 12.6595L3.85996 14.6838C3.61553 14.813 3.32908 14.6056 3.37556 14.3331L4.1081 10.0375C4.14483 9.82209 4.07367 9.60235 3.91762 9.44937L0.813478 6.40619C0.616597 6.21317 0.725816 5.8782 0.998629 5.83833L5.28353 5.21212C5.50098 5.18034 5.68881 5.04344 5.78562 4.84615L7.70083 0.943204Z",fill:"currentColor"}))};var n=r(a(0)),l=a(1800)},function(e,t,a){"use strict";a(15);var r=a(20);Object.defineProperty(t,"__esModule",{value:!0}),t.StarHalfDuotone=function(e){var t=(0,l.mapProps)(e,16);return n.default.createElement("svg",t,n.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.2145 4.84615C10.3113 5.04344 10.4992 5.18034 10.7166 5.21212L15.0015 5.83833C15.0186 5.84082 15.035 5.84447 15.0507 5.84916C15.2868 5.91952 15.3713 6.22524 15.1867 6.40619L12.0825 9.44937C11.9265 9.60235 11.8553 9.82209 11.8921 10.0375L12.6246 14.3331C12.6275 14.3501 12.6291 14.3669 12.6295 14.3833C12.6354 14.6302 12.3693 14.8049 12.1402 14.6838L8.3117 12.6595C8.11674 12.5564 7.88341 12.5564 7.68845 12.6595L3.85996 14.6838C3.61553 14.813 3.32908 14.6056 3.37556 14.3331L4.1081 10.0375C4.14483 9.82209 4.07367 9.60235 3.91762 9.44937L0.813478 6.40619C0.616597 6.21317 0.725816 5.8782 0.998629 5.83833L5.28353 5.21212C5.29712 5.21013 5.3106 5.20774 5.32394 5.20494C5.52411 5.16299 5.69486 5.03111 5.78562 4.84615L7.70083 0.943204C7.82285 0.69455 8.17731 0.694551 8.29932 0.943204L10.2145 4.84615ZM7.06521 11.4807C7.35765 11.3261 7.67886 11.2488 8.00007 11.2488V3.36006L6.9826 5.43352C6.69217 6.02539 6.1287 6.4361 5.47634 6.53144L3.1871 6.866L4.85104 8.49726C5.31916 8.95619 5.53266 9.61541 5.42245 10.2616L5.03114 12.5563L7.06521 11.4807ZM8.93494 11.4807C8.6425 11.3261 8.32129 11.2488 8.00008 11.2488V3.36006L9.01755 5.43352C9.30799 6.02539 9.87145 6.4361 10.5238 6.53144L12.8131 6.866L11.1491 8.49726C10.681 8.95619 10.4675 9.61541 10.5777 10.2616L10.969 12.5563L8.93494 11.4807Z",fill:"currentColor"}))};var n=r(a(0)),l=a(1800)},function(e,t,a){"use strict";var r=a(20);a(12),a(11),a(6),a(84),a(9),a(13),a(10),a(85),a(7),Object.defineProperty(t,"__esModule",{value:!0}),t.removeDashboardHistory=t.addDashboardHistory=t.useDashboardHistory=void 0;var n=r(a(30)),l=r(a(96));a(12),a(11),a(6),a(84),a(160),a(28),a(191),a(159),a(34),a(15),a(9),a(13),a(10),a(4),a(85),a(7);var u=r(a(806)),o=a(0);function i(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function c(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:"history-cache-v4",r=(0,o.useState)(null!==(t=s(a)[e])&&void 0!==t?t:[]),i=(0,l.default)(r,2),f=i[0],d=i[1];return(0,o.useEffect)((function(){var t,r=null!==(t=s(a)[e])&&void 0!==t?t:[];(0,u.default)(r,f)||d(r)}),[e,a]),(0,o.useEffect)((function(){localStorage.setItem(a,JSON.stringify(c(c({},s(a)),{},(0,n.default)({},e,f))))}),[f]),[f,d]};t.addDashboardHistory=function(e,t){var a,r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"history-cache-v4",u=null!==(a=s(l)[e])&&void 0!==a?a:[],o=u.filter((function(e){return e.id!==t.id}));return o.push(t),r&&localStorage.setItem(l,JSON.stringify(c(c({},s(l)),{},(0,n.default)({},e,o)))),o};t.removeDashboardHistory=function(e,t){var a,r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"history-cache-v4",u=null!==(a=s(l)[e])&&void 0!==a?a:[],o=u.filter((function(e){return Array.isArray(t)?!t.includes(e.id):e.id!==t}));return o.length===u.length||r&&localStorage.setItem(l,JSON.stringify(c(c({},s(l)),{},(0,n.default)({},e,o)))),o}},function(e,t,a){"use strict";a(15);var r=a(20);Object.defineProperty(t,"__esModule",{value:!0}),t.useEventEmitter=void 0;var n=(0,r(a(3718)).default)(),l=n.on,u=n.off,o=n.emit,i=n.all;t.useEventEmitter=function(){return{$on:l,$off:u,$emit:o,all:i}}},,function(e,t,a){e.exports={favorite:"_3JaIb46ozjKz2jKBsCjIAv"}},function(e,t,a){e.exports={wrapper:"_3qaPLN3flFkd7vdbb-a06X",icon:"_2nvnLCPMiMLWLpzmB_ss4Y",indicator:"_1korY3RT8tulRRgwANoA8l",group:"_2FFcxBZefuDpc8WshcrThZ",options:"_15s8_iioN5RvbWBdWUbE7i"}},,,,,,,function(e,t,a){e.exports={table:"_1i60_Zk2GuZ0BSBW7unRbV",table_rank:"_2Mr7mDygEQ35XwS2BpvdbG",table_no_border:"_35xeFOcthetSVxVd7jbhy8",rankCol:"K5KlP-RunT4IdakA3VSci",table_transparent:"_1kEZxv3qugETuqEDftrkMQ"}},function(e,t,a){e.exports={wrapper:"kE3KwCjpxjL06m1JyXYqh",pane:"_2uVDNuCFQlEdzxeJFsgade",pane__toolbar:"_3pwemZYlldk8BVRzKSjR0M",title:"_2QLeiq4lO4-E0UWkTwZ2pU",toolbar:"B2iEbHtsi7TSbVQDFZAAM",toolbar_buttons:"_20ATWKNncgatSI7TsIFmSk",toolbar_filter:"_3DIJstY5eiupA7Z3Sx7ugA",sortTypeSelect:"_3xIBxesObSvBweKWDzU4ik",sort_button:"bIIGx7S36rL-ZE_ySMccm",table:"_3zcLFyY9c0qr-O4IcoD-xM",table_rank:"UQZcsZfu2_Uy2ZbJXbAhV",table_no_border:"_2CLtp-r29kgr89OqLBTEzk",rankList_row:"_3MTKghTP6FCVM_Oc0poYe2",rankCol:"WFE7sesMVKXIVySSq_c7Q",listContainer:"_36b1LYqEBKXqJV0PTKLfTL",pane__pagination:"toSE7w2UfWCbYgAaXuYw7",avatar:"_3D6xMvf2yi0ds1rEmmP39K"}},,,,,,,,,,,,function(e,t,a){e.exports={resourceRatio:"_1fUEZ2TB-t0fMQV4l3ACo4",subTitle:"_1vbcsgfDS-GM0SJqrqvnYL",title:"_1Ikw3GCgFAv_lfARz3bQA-",radio:"_1wUm6engBLe0T9ZdhKcK_c",radioWrapper:"v5ipbsb_HvTj8l-aUcg75",middleStyle:"_3ruV0WGGqizDKwONs0sDru"}},,,,function(e,t,a){e.exports={background:"_1OASQA4PfdJS_KhH_yCm-S",percent:"_1t1MfmrTC862QBXYV5D0xT",tooltip:"_1OIWC_rqd8Odp6dvqoZtet"}},,,,,,,,,,,,,,,,function(e,a,r){"use strict";r(15);var n=r(20);r(18),r(16),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(18),r(16);var l=n(r(61)),u=n(r(0)),o=r(239),i=n(r(241)),c=r(186),s=r(52),f=n(r(3761)),d=function(e){return u.default.createElement("span",{className:f.default.option,key:e.value},e.isFedManaged?u.default.createElement("img",{className:f.default.indicator,src:"/assets/cluster.svg"}):u.default.createElement(c.Icon,{name:"project"}),e.label)},p=(0,o.observer)((function(e){var a=e.namespace,r=e.list,n=e.onChange,o=e.onFetch,p=(0,i.default)(r,["page","total","limit"]),m=(0,l.default)(r.data.map((function(e){return{label:(0,s.showNameAndAlias)(e),value:e.name,isFedManaged:e.isFedManaged}})));return u.default.createElement(c.Select,{className:f.default.select,value:a,onChange:n,options:m,placeholder:t("ALL_PROJECTS"),pagination:p,isLoading:r.isLoading,valueRenderer:d,optionRenderer:d,onFetch:function(e){o(e)},searchable:!0,clearable:!0})}));a.default=p},function(e,t,a){e.exports={select:"_2YBMsPA_6y4KarYxsOs4xv",option:"zNLKUmmAgrOglv5eJIpKA"}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,a,r){"use strict";var n=r(20);r(12),r(11),r(6),r(18),r(16),r(9),r(13),r(10),r(4),r(23),r(17),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(45),r(11),r(6),r(18),r(28),r(442),r(42),r(16),r(34),r(15),r(9),r(13),r(10),r(4),r(23),r(57),r(17),r(7);var l=n(r(30)),u=n(r(36)),o=n(r(37)),i=n(r(88)),c=n(r(55)),s=n(r(56)),f=n(r(51)),d=r(186),p=n(r(3)),m=n(r(801)),h=n(r(450)),v=n(r(26)),g=n(r(60)),y=n(r(63)),E=n(r(1)),b=n(r(0)),_=r(52),O=r(794),S=n(r(3800)),C=n(r(949));function D(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function k(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},a=e||{},r=a.times,n=a.step,l=a.createTime,u={times:r,step:n};if(l){var o=new Date(l).valueOf()/1e3,i=Date.now()/1e3,c=i-o;switch(!0){case c<=1800:u.times=30,u.step="1m";break;case c<=3600:u.times=60,u.step="1m";break;case c<=18e3:u.times=60,u.step="5m"}}t.params=u},t.fetchData=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=t.state.cluster,r=k(k({},t.params),e);a&&(r.cluster=a),t.props.onFetch(r)},t.handleChange=function(e){t.params=e;var a=!e.start&&!e.end&&t.props.enableAutoRefresh;t.setState({enableAutoRefresh:a,autoRefresh:!1},(function(){(0,O.stopAutoRefresh)((0,i.default)(t)),t.fetchData()}))},t.handleClusterChange=function(e){t.setState({cluster:e},(function(){t.fetchData()}))},t.handleRefresh=function(){t.fetchData()},t.handleAutoRefresh=function(){t.setState({autoRefresh:!t.state.autoRefresh},(function(){t.state.autoRefresh?(0,O.startAutoRefresh)((0,i.default)(t)):(0,O.stopAutoRefresh)((0,i.default)(t))}))},t.handleToggle=function(e){t.setState({active:e})},t.state={active:!1,enableAutoRefresh:e.enableAutoRefresh,autoRefresh:!1,cluster:(0,v.default)(e,"clusters[0].name","")},t.init(),t}return(0,o.default)(r,[{key:"componentDidUpdate",value:function(e){e.step===this.props.step&&e.times===this.props.times&&e.createTime===this.props.createTime||(this.initParams(this.props),this.fetchData())}},{key:"componentWillUnmount",value:function(){(0,O.stopAutoRefresh)(this)}},{key:"init",value:function(){this.initParams(this.props),this.fetchData()}},{key:"renderAutoRefresh",value:function(){var e=this.state,t=e.enableAutoRefresh,a=e.autoRefresh;return t?b.default.createElement(d.Button,{className:S.default.button,type:"control",icon:a?"pause":"start",iconType:"light",onClick:this.handleAutoRefresh}):null}},{key:"renderCustomActions",value:function(){return this.props.customAction||null}},{key:"renderOperations",value:function(){var e=this.state.active,t=this.params,a=t.step,r=t.times,n=this.props.closeBtn;return b.default.createElement("div",{className:(0,p.default)(S.default.operations,(0,l.default)({},S.default.active,e))},this.props.isFederated&&b.default.createElement(d.Select,{key:this.state.cluster,prefixIcon:b.default.createElement(d.Icon,{name:"cluster"}),className:S.default.clusters,value:this.state.cluster,options:this.clusters,onChange:this.handleClusterChange,showTip:!0}),b.default.createElement(C.default,{step:a,times:r,onChange:this.handleChange,onToggle:this.handleToggle}),this.renderAutoRefresh(),b.default.createElement(d.Button,{className:S.default.button,type:"control",icon:"refresh",iconType:"light",onClick:this.handleRefresh}),this.renderCustomActions(),n)}},{key:"renderTitle",value:function(){var e=this.props.title||t("MONITORING");return b.default.createElement("div",{className:S.default.title},b.default.createElement("span",null,e),this.renderOperations())}},{key:"renderContent",value:function(){var e=this.props.children;return(0,y.default)(e)||(0,g.default)(e)&&(0,y.default)((0,h.default)(e).filter((function(e){return e})))?null:e}},{key:"render",value:function(){var e=this.props.loading,a=this.state.active;return b.default.createElement(d.Loading,{spinning:e},b.default.createElement(m.default,{className:(0,p.default)(S.default.card,(0,l.default)({},S.default.showDropDown,a)),title:this.renderTitle(),empty:t("NO_MONITORING_DATA"),isEmpty:this.props.isEmpty},b.default.createElement("div",{className:S.default.content},this.renderContent())))}},{key:"clusters",get:function(){return this.props.clusters.map((function(e){return{label:(0,_.showNameAndAlias)(e.name||e,"cluster"),value:e.name||e}}))}}]),r}(b.default.Component);a.default=T,T.propTypes={title:E.default.string,step:E.default.string,times:E.default.number,createTime:E.default.string,onFetch:E.default.func,loading:E.default.bool,refreshing:E.default.bool,isEmpty:E.default.bool,enableAutoRefresh:E.default.bool,customAction:E.default.oneOfType([E.default.node,E.default.element])},T.defaultProps={step:"10m",times:50,createTime:"",onFetch:function(){},loading:!1,refreshing:!1,isEmpty:!1,enableAutoRefresh:!0,customAction:""}},function(e,t,a){e.exports={card:"HkMSwByVKb_DH9GlZNpYS",title:"_1oinAKfdPYwC75teupWmDr",operations:"D3Ewo-uPBdaiIlaz7nbG1",button:"_2lV2YHNnzVWYZbgRLPezn6",content:"_39DKIQh7O8MogkRM7IB5wu",showDropDown:"_3wdK0lJ1xKmVaSH1oQH9iA",clusters:"_2NdSlr3w6Oy3jYXDPydnMT"}},function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(16),r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(42),r(16),r(4),r(436),r(319),r(23),r(57),r(17);var l=n(r(30)),u=n(r(36)),o=n(r(37)),i=n(r(55)),c=n(r(56)),s=n(r(51)),f=n(r(0)),d=n(r(1)),p=n(r(3)),m=n(r(26)),h=r(798),v=n(r(3802));function g(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,s.default)(e);if(t){var n=(0,s.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,c.default)(this,a)}}var y=function(e){(0,i.default)(r,e);var a=g(r);function r(){var e;(0,u.default)(this,r);for(var t=arguments.length,n=new Array(t),l=0;l0&&void 0!==arguments[0]?arguments[0]:{};r.props.onFetch(e)},r.handleTabClick=function(e){return(0,v.cacheFunc)("_tab_".concat(e),(function(){r.setState({activeIndex:Number(e)})}),(0,o.default)(r))},r.state={activeIndex:0},r.fetchData(),r}return(0,u.default)(a,[{key:"componentDidMount",value:function(){(0,g.startAutoRefresh)(this,{interval:1e4,leading:!1})}},{key:"componentWillUnmount",value:function(){(0,g.stopAutoRefresh)(this)}},{key:"renderTabList",value:function(){var e=this,t=this.props.tabOptions,a=this.state.activeIndex;return(0,m.default)(t)?null:f.default.createElement("div",{className:_.default.tabList},t.map((function(t,r){var l=r===a,u=t.component,o=t.render,i=S(S({},t.props),{},{active:l});return f.default.createElement("div",{key:r,className:(0,p.default)(_.default.tab,(0,n.default)({},_.default.active,l)),onClick:e.handleTabClick(r)},f.default.createElement("i",{className:_.default.img}),f.default.createElement("div",{className:_.default.inner},(0,h.default)(o)?o(i):f.default.createElement(u,i)))})))}},{key:"renderTabContent",value:function(){var e=this.props.contentOptions,t=e[this.state.activeIndex]||{},a=t.component,r=t.render,n=S({},t.props);return f.default.createElement("div",{className:_.default.tabContent},f.default.createElement("div",{className:_.default.inner},(0,m.default)(e)?f.default.createElement(b.default,null):(0,h.default)(r)?r(n):f.default.createElement(a,n)))}},{key:"render",value:function(){var e=this.props,t=e.className,a=e.title,r=e.loading;return f.default.createElement(E.default,{className:(0,p.default)(_.default.card,t),title:a},f.default.createElement(y.Loading,{spinning:r},f.default.createElement("div",{className:_.default.content},this.renderTabList(),this.renderTabContent())))}}]),a}(f.default.Component);t.default=D,D.propTypes={title:d.default.string,tabOptions:d.default.array,contentOptions:d.default.array,loading:d.default.bool,refreshing:d.default.bool,onFetch:d.default.func},D.defaultProps={title:"",tabOptions:[],contentOptions:[],loading:!0,refreshing:!1,onFetch:function(){}}},function(e,t,a){e.exports={content:"_2Xa5otudrXKkSBP4ZXj_25",tabList:"aUXLJpvLU0FB8AeOm_82I",tab:"_3ZiPd90tJiVMCa-tFKc6nM",active:"_1tGP7Q2XasoaNQb4W3sxtn",img:"_1C8h77HY1Vvimz27VInPzs",inner:"DjQwqZQmUhjM9VR9YmkZ",tabContent:"_2yiUNLbPZ7wkxc_wDsSjcI"}},function(e,a,r){"use strict";var n=r(20);r(12),r(11),r(6),r(18),r(9),r(13),r(10),r(4),r(316),r(23),r(17),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(45),r(11),r(6),r(18),r(28),r(42),r(34),r(15),r(9),r(13),r(10),r(4),r(316),r(23),r(57),r(17),r(7);var l,u=n(r(315)),o=n(r(30)),i=n(r(36)),c=n(r(37)),s=n(r(55)),f=n(r(56)),d=n(r(51)),p=n(r(0)),m=r(239),h=n(r(26)),v=r(794),g=n(r(890)),y=r(52),E=r(798),b=r(822),_=n(r(3806));function O(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function S(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};t.monitorStore.fetchMetrics(S({metrics:Object.values((0,y.hideGPUByLicense)(D,t.props.cluster)),step:"5m",times:100},e))},t.getValue=function(e){return(0,h.default)(e,"value[1]",0)},t.getTabOptions=function(){var e=(0,v.getLastMonitoringData)(t.metrics),a=[{name:"CPU",unitType:"cpu",used:t.getValue(e[D.cpu_usage]),total:t.getValue(e[D.cpu_total])},{name:"MEMORY",unitType:"memory",used:t.getValue(e[D.memory_usage]),total:t.getValue(e[D.memory_total])},{name:"GPU",used:t.getValue(e[D.gpu_usage]),total:t.getValue(e[D.gpu_total])},{name:"GPU_MEMORY",unitType:"memory",used:t.getValue(e[D.gpu_memory_usage]),total:t.getValue(e[D.gpu_memory_total])},{name:"DISK",unitType:"disk",used:t.getValue(e[D.disk_size_usage]),total:t.getValue(e[D.disk_size_capacity])},{name:"PODS",unit:"",used:t.getValue(e[D.pod_count]),total:t.getValue(e[D.pod_capacity])}];return(0,y.hideGPUByLicense)(a,t.props.cluster).map((function(e){return{props:e,component:_.default}}))},t.getContentOptions=function(){var e=[{type:"utilisation",title:"CPU_USAGE",unit:"%",legend:["USAGE"],data:(0,h.default)(t.metrics,"".concat(D.cpu_utilisation,".data.result"))},{type:"utilisation",title:"MEMORY_USAGE",unit:"%",legend:["USAGE"],data:(0,h.default)(t.metrics,"".concat(D.memory_utilisation,".data.result"))},{type:"utilisation",title:"GPU_USAGE",unit:"%",legend:["USAGE"],data:(0,h.default)(t.metrics,"".concat(D.gpu_utilization,".data.result"))},{title:"GPU_MEMORY_USAGE",type:"utilisation",unit:"%",legend:["USAGE"],data:(0,h.default)(t.metrics,"".concat(D.gpu_memory_utilization,".data.result"))},{type:"utilisation",title:"DISK_USAGE",unit:"%",legend:["USAGE"],data:(0,h.default)(t.metrics,"".concat(D.disk_utilisation,".data.result"))},{title:"POD_COUNT",unit:"",legend:["COUNT"],data:(0,h.default)(t.metrics,"".concat(D.pod_count,".data.result"))}];return(0,y.hideGPUByLicense)(e,t.props.cluster).map((function(e){return{props:e,render:t.renderChart}}))},t.monitorStore=new g.default({cluster:e.cluster}),t}return(0,c.default)(r,[{key:"renderChart",value:function(e){var t={key:e.title,width:"100%",height:"100%"};switch(e.type){default:case"area":var a=(0,v.getAreaChartOps)(e);return p.default.createElement(E.SimpleArea,(0,u.default)({},t,a))}}},{key:"render",value:function(){var e=this.monitorStore,a=e.isLoading,r=e.isRefreshing;return p.default.createElement(b.StatusTabs,{title:t("CLUSTER_RESOURCE_USAGE"),tabOptions:this.getTabOptions(),contentOptions:this.getContentOptions(),loading:a,refreshing:r,onFetch:this.fetchData})}},{key:"routing",get:function(){return this.props.rootStore.routing}},{key:"metrics",get:function(){return this.monitorStore.data}}]),r}(p.default.Component))||l)||l;a.default=k},function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(16),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var l=n(r(30));r(5),r(16),r(436);var u=n(r(0)),o=n(r(3)),i=r(794),c=r(798),s=n(r(3807)),f=function(e){var a=e.active,r=e.name,n=e.used,f=e.total,d=e.unit,p=e.unitType,m=t(r),h=(0,i.getSuitableUnit)(f||n,p)||d,v=(0,i.getValueByUnit)(n,h),g=(0,i.getValueByUnit)(f,h),y="core"===h?"CORE_PL":h;return u.default.createElement("div",{className:(0,o.default)(s.default.tab,(0,l.default)({},s.default.active,a))},u.default.createElement(c.SimpleCircle,{width:40,height:40,title:m,value:parseFloat(v),total:parseFloat(g),unit:h,showCenter:!1,showRate:!0,active:a}),u.default.createElement("div",{className:s.default.info},u.default.createElement("div",{className:s.default.title},m," ",t(y)),u.default.createElement("p",{title:"".concat(v,"/").concat(g)},v,u.default.createElement("span",null,"/",g))))};a.default=f},function(e,t,a){e.exports={tab:"_31-JVKem4VcI-TtgNWqY6Z",active:"_2tHL5e_1AJNteMDLEE_YbE",info:"hs8j62Zb-8wabHzFg3UiM",title:"_3WVO0kjKDahAj7KuGMbO57"}},function(e,a,r){"use strict";var n=r(20);r(12),r(11),r(31),r(6),r(18),r(9),r(13),r(10),r(4),r(23),r(17),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(45),r(11),r(31),r(6),r(18),r(28),r(42),r(34),r(15),r(9),r(13),r(10),r(4),r(22),r(23),r(57),r(17),r(7);var l=n(r(315)),u=n(r(43)),o=n(r(30));r(41);var i,c=n(r(44)),s=n(r(36)),f=n(r(37)),d=n(r(55)),p=n(r(56)),m=n(r(51)),h=n(r(0)),v=r(239),g=n(r(63)),y=n(r(26)),E=r(72),b=r(794),_=n(r(988)),O=r(798),S=r(822),C=n(r(3809));function D(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function k(e){for(var t=1;t0&&void 0!==r[0]?r[0]:{},a=k({step:"5m",times:100},t),e.next=4,n.apiStore.fetchMetrics(k({metrics:[T.request_latencies_total,T.request_latencies_apis,T.request_rate]},a));case 4:return e.next=6,n.schedulerStore.fetchMetrics(k({metrics:[T.schedule_attempts_count,T.schedule_attempt_rate]},a));case 6:case"end":return e.stop()}}),e)}))),n.getSpecificData=function(e,t,a){return((0,y.default)(n.metrics,"".concat(T[e],".data.result"))||[]).find((function(e){return(0,y.default)(e,"metric.".concat(t))===a}))||{}},n.getVerbData=function(e){return n.getSpecificData("request_latencies_apis","verb",e)},n.getTabOptions=function(){return[{icon:E.ICON_TYPES.apiserver,name:"API_SERVER",title:"REQUEST_LATENCY_TCAP"},{icon:E.ICON_TYPES.apiserver,name:"API_SERVER",title:"REQUEST_RATE"},{icon:E.ICON_TYPES.scheduler,name:"SCHEDULER",title:"SCHEDULE_ATTEMPTS_TCAP"},{icon:E.ICON_TYPES.scheduler,name:"SCHEDULER",title:"SCHEDULING_RATE_TCAP"}].map((function(e){return{props:e,component:C.default}}))},n.getContentOptions=function(){var e=n.metrics;return[{type:"area",title:"REQUEST_LATENCY",unit:"ms",legend:["REST_GET","REST_POST","REST_PATCH","REST_DELETE","REST_PUT","TOTAL_AVERAGE"],data:[n.getVerbData("GET"),n.getVerbData("POST"),n.getVerbData("PATCH"),n.getVerbData("DELETE"),n.getVerbData("PUT"),(0,y.default)(e,"".concat(T.request_latencies_total,".data.result[0]"))]},{type:"area",title:"REQUEST_PER_SECOND",unit:t("TIMES_PER_SECOND"),legend:["REQUEST"],data:(0,y.default)(e,"".concat(T.request_rate,".data.result"))},{type:"area",title:"SCHEDULE_ATTEMPTS",unit:"",legend:["SUCCESS","ERROR","FAILURE"],data:[n.getSpecificData("schedule_attempts_count","result","scheduled"),n.getSpecificData("schedule_attempts_count","result","error"),n.getSpecificData("schedule_attempts_count","result","unschedulable")],areaColors:["blue","red","yellow"]},{type:"area",title:"SCHEDULING_RATE",unit:t("TIMES_PER_SECOND"),legend:["SUCCESS","ERROR","FAILURE"],data:[n.getSpecificData("schedule_attempt_rate","result","scheduled"),n.getSpecificData("schedule_attempt_rate","result","error"),n.getSpecificData("schedule_attempt_rate","result","unschedulable")],areaColors:["blue","red","yellow"]}].map((function(e){return{props:e,render:n.renderChart}}))},n.apiStore=new _.default({module:"apiserver",cluster:e.cluster}),n.schedulerStore=new _.default({module:"scheduler",cluster:e.cluster}),n}return(0,f.default)(r,[{key:"renderChart",value:function(e){var t={key:e.title,width:"100%",height:"100%"},a=(0,b.getAreaChartOps)(e);return(0,g.default)(a.data)?null:(e.type,h.default.createElement(O.SimpleArea,(0,l.default)({},t,a)))}},{key:"render",value:function(){var e=this.schedulerStore,a=e.isLoading,r=e.isRefreshing;return h.default.createElement(S.StatusTabs,{title:t("SERVICE_COMPONENT_MONITORING"),tabOptions:this.getTabOptions(),contentOptions:this.getContentOptions(),loading:a,refreshing:r,onFetch:this.fetchData})}},{key:"routing",get:function(){return this.props.rootStore.routing}},{key:"metrics",get:function(){var e=this.apiStore.data,t=this.schedulerStore.data;return k(k({},e),t)}}]),r}(h.default.Component))||i)||i;a.default=R},function(e,a,r){"use strict";r(15);var n=r(20);r(16),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var l=n(r(315)),u=n(r(30));r(16);var o=n(r(0)),i=n(r(3)),c=r(186),s=n(r(3810)),f=function(e){var a=e.active,r=e.icon,n=e.name,f=e.title;return o.default.createElement("div",{className:(0,i.default)(s.default.tab,(0,u.default)({},s.default.active,a))},o.default.createElement(c.Icon,(0,l.default)({name:r,size:40},a?{color:{primary:"#fff",secondary:"#fff"}}:null)),o.default.createElement("div",{className:s.default.info},o.default.createElement("div",{className:s.default.title},t(n)),o.default.createElement("p",{dangerouslySetInnerHTML:{__html:t(f)}})))};a.default=f},function(e,t,a){e.exports={tab:"_34GN7J206xlTqjhJCfdruX",active:"_3qtjymCMRzmNFfc7Wy9IMr",info:"_2XEdgRJbCd_3cr8VVZfKQo",title:"_3PNsSTeAIrmYtf2UkG8H_4"}},function(e,a,r){"use strict";var n=r(20);r(12),r(11),r(31),r(6),r(18),r(9),r(13),r(10),r(4),r(316),r(23),r(17),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(45),r(11),r(31),r(6),r(18),r(28),r(42),r(34),r(15),r(9),r(13),r(10),r(4),r(316),r(23),r(57),r(17),r(7);var l,u=n(r(315)),o=n(r(30)),i=n(r(36)),c=n(r(37)),s=n(r(55)),f=n(r(56)),d=n(r(51)),p=n(r(0)),m=r(239),h=n(r(63)),v=n(r(26)),g=r(72),y=r(794),E=n(r(988)),b=r(798),_=r(822),O=r(1132),S=n(r(3812));function C(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function D(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};n.monitorStore.fetchMetrics(D({metrics:Object.values(N),step:"5m",times:100},e))},n.getSpecificData=function(e,t,a){return((0,v.default)(n.metrics,"".concat(N[e],".data.result"))||[]).find((function(e){return(0,v.default)(e,"metric.".concat(t))===a}))||{}},n.getVerbData=function(e){return n.getSpecificData("request_latencies_apis","verb",e)},n.getTabOptions=function(){return[{icon:g.ICON_TYPES.etcd,name:"etcd",title:"ETCD_STATUS"},{icon:g.ICON_TYPES.etcd,name:"etcd",title:"ETCD_PROPOSAL"},{icon:g.ICON_TYPES.etcd,name:"etcd",title:"ETCD_DB_SIZE"},{icon:g.ICON_TYPES.etcd,name:"etcd",title:"ETCD_CLIENT_TRAFFIC"}].map((function(e){return{props:e,component:S.default}}))},n.getContentOptions=function(){var e=n.metrics;return[{props:{cluster:n.props.cluster},component:O.ETCDNodes},{props:{type:"area",title:"RAFT_PROPOSAL",unit:t("TIMES_PER_SECOND"),legend:["PROPOSAL_COMMITTED","PROPOSAL_APPLIED","PROPOSAL_FAILED","PROPOSAL_PENDING"],data:[(0,v.default)(e,"".concat(N.proposals_committed_rate,".data.result[0]")),(0,v.default)(e,"".concat(N.proposals_applied_rate,".data.result[0]")),(0,v.default)(e,"".concat(N.proposals_failed_rate,".data.result[0]")),(0,v.default)(e,"".concat(N.proposals_pending_count,".data.result[0]"))],areaColors:["blue","green","red","yellow"]},render:n.renderChart},{props:{type:"area",title:"DB_SIZE",unitType:"memory",legend:["DB_SIZE"],data:(0,v.default)(e,"".concat(N.db_size,".data.result"))},render:n.renderChart},{props:{type:"area",title:"CLIENT_TRAFFIC",unitType:"traffic",legend:["RECEIVED","SENT"],data:[(0,v.default)(e,"".concat(N.client_received_bytes,".data.result[0]")),(0,v.default)(e,"".concat(N.client_sent_bytes,".data.result[0]"))]},render:n.renderChart}]},n.monitorStore=new E.default({module:"etcd",cluster:e.cluster}),n}return(0,c.default)(r,[{key:"renderChart",value:function(e){var t={key:e.title,width:"100%",height:"100%"},a=(0,y.getAreaChartOps)(e);return(0,h.default)(a.data)?null:(e.type,p.default.createElement(b.SimpleArea,(0,u.default)({},t,a)))}},{key:"render",value:function(){var e=this.monitorStore,a=e.isLoading,r=e.isRefreshing;return p.default.createElement(_.StatusTabs,{title:t("ETCD_MONITORING"),tabOptions:this.getTabOptions(),contentOptions:this.getContentOptions(),loading:a,refreshing:r,onFetch:this.fetchData})}},{key:"routing",get:function(){return this.props.rootStore.routing}},{key:"metrics",get:function(){return this.monitorStore.data}}]),r}(p.default.Component))||l)||l;a.default=T},function(e,a,r){"use strict";r(15);var n=r(20);r(16),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var l=n(r(315)),u=n(r(30));r(16);var o=n(r(0)),i=n(r(3)),c=r(186),s=n(r(3813)),f=function(e){var a=e.active,r=e.icon,n=e.name,f=e.title;return o.default.createElement("div",{className:(0,i.default)(s.default.tab,(0,u.default)({},s.default.active,a))},o.default.createElement(c.Icon,(0,l.default)({name:r,size:40},a?{color:{primary:"#fff",secondary:"#fff"}}:null)),o.default.createElement("div",{className:s.default.info},o.default.createElement("div",{className:s.default.title},t(n)),o.default.createElement("p",{dangerouslySetInnerHTML:{__html:t(f)}})))};a.default=f},function(e,t,a){e.exports={tab:"_15NMG2yXO_Lun04XhV1Lae",active:"_3mR_zhBbwIvUT97S3UqHnU",info:"_3kMKZotOFJMQzgswYhBdW5",title:"_32I8HGLqDgqBJ2KQ_xitGY",nodes:"_3kzjrp7n3suOj46Y7ty3tY",item:"_3PsSoBgegEfVBTreynBugR",icon:"_3h-fE6NmNSMobCbCpYskqB",circle:"_2R8YGxK8I4oAmDRZu9Ay9r",offline:"_2svSg92VRM_kYrOaBMJMqF"}},function(e,a,r){"use strict";var n=r(20);r(12),r(11),r(31),r(6),r(18),r(9),r(13),r(10),r(4),r(316),r(23),r(17),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(45),r(11),r(31),r(6),r(18),r(28),r(42),r(34),r(15),r(9),r(13),r(10),r(4),r(316),r(23),r(57),r(17),r(7);var l,u=n(r(30)),o=n(r(36)),i=n(r(37)),c=n(r(55)),s=n(r(56)),f=n(r(51)),d=n(r(0)),p=r(239),m=n(r(3)),h=n(r(63)),v=n(r(26)),g=n(r(988)),y=r(186),E=n(r(846)),b=n(r(3815)),_=n(r(1808));function O(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function S(e){for(var t=1;t1&&p.default.createElement(_.Tooltip,{content:this.renderPodIPContent(this.networkIPs)},p.default.createElement("div",{className:k.default.podip},this.networkIPs.length))),p.default.createElement("p",null,t("POD_IP_ADDRESS_SCAP"))),this.renderMonitorings(),p.default.createElement("div",{className:k.default.arrow},p.default.createElement(_.Icon,{name:"chevron-down",type:u?"light":"",size:20})))}},{key:"renderExtraContent",value:function(){var e=this,a=this.props,r=a.prefix,n=a.isEdgeWize,l=this.props.detail,u=l.cluster,o=l.containers,i=void 0===o?[]:o,c=l.initContainers,s=void 0===c?[]:c,f=l.name;return(0,g.default)(i)?null:p.default.createElement("div",{className:k.default.itemExtra},p.default.createElement("div",{className:"margin-b8"},p.default.createElement("strong",null,t("CONTAINER_PL"))),p.default.createElement("div",{className:k.default.containers},i.map((function(t){return p.default.createElement(C.default,{isEdgeWize:n,key:t.name,prefix:r&&e.getLink(),podName:f,detail:t,cluster:u,onContainerClick:e.handleLinkClick,isCreating:e.isCreating})})),s.map((function(t){return p.default.createElement(C.default,{key:t.name,isEdgeWize:n,prefix:r&&e.getLink(),podName:f,detail:t,cluster:u,onContainerClick:e.handleLinkClick,isCreating:e.isCreating,isInit:!0})}))))}},{key:"render",value:function(){var e=this.props,t=e.className,a=e.isExpand;return p.default.createElement("div",{className:(0,v.default)(k.default.item,t,(0,u.default)({},k.default.expanded,a))},p.default.createElement("div",{className:k.default.itemMain,onClick:this.handleExpandExtra},p.default.createElement("div",{className:k.default.icon},p.default.createElement(_.Icon,{name:"pod",size:40,type:a?"light":"dark"}),this.renderStatusTip()),this.renderContent()),this.renderExtraContent())}},{key:"status",get:function(){var e=this.props.detail.podStatus,t=e.status;return{type:e.type.toLowerCase(),name:t}}},{key:"isCreating",get:function(){return"warning"===this.status.type&&"ContainerCreating"===this.status.name}},{key:"isRunning",get:function(){return"running"===this.status.type||"completed"===this.status.type}},{key:"networkIPs",get:function(){return this.props.detail.networksStatus.reduce((function(e,t){return t.ips?[].concat((0,l.default)(e),(0,l.default)(t.ips)):(0,l.default)(e)}),[])}}]),r}(p.default.PureComponent);a.default=T,T.propTypes={isEdgeWize:h.default.bool,className:h.default.string,prefix:h.default.string,detail:h.default.object,metrics:h.default.object,loading:h.default.bool,isExpand:h.default.bool,onExpand:h.default.func,onShowEvents:h.default.func,showMonitoring:h.default.bool},T.defaultProps={prefix:"",detail:{},isEdgeWize:!1,isExpand:!1,onExpand:function(){},showMonitoring:!0}},function(e,a,r){"use strict";r(15);var n=r(20);r(16),r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(42),r(16),r(4),r(23),r(57),r(17);var l=n(r(36)),u=n(r(37)),o=n(r(55)),i=n(r(56)),c=n(r(51)),s=n(r(0)),f=n(r(26)),d=n(r(787)),p=n(r(801)),m=n(r(846)),h=n(r(1373)),v=r(1),g=n(r(3885));function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,c.default)(e);if(t){var n=(0,c.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,i.default)(this,a)}}var E=function(e){(0,o.default)(r,e);var a=y(r);function r(){return(0,l.default)(this,r),a.apply(this,arguments)}return(0,u.default)(r,[{key:"renderContent",value:function(){var e=this.props.container,t=e.namespace,a=e.name,r=this.props,n=r.podName,l=r.isEdgeWize,u=this.context,o=u.gatewayName,i=u.gatewayNs,c=u.cluster||this.props.cluster;return(0,f.default)(this.props,"container.containerID")?s.default.createElement(h.default,{isEdgeWize:l,className:g.default.containerLog,contentClassName:g.default.containerLogContent,namespace:t,podName:n,cluster:c,containerName:a,gatewayName:o,gatewayNamespace:i}):s.default.createElement(p.default,null,s.default.createElement(m.default,{desc:"CONTAINER_LOGS_NOT_SUPPORTED"}))}},{key:"render",value:function(){var e=this.props,a=e.visible,r=e.onCancel;return s.default.createElement(d.default,{bodyClassName:g.default.body,title:t("CONTAINER_LOGS"),visible:a,onCancel:r,fullScreen:!0,hideFooter:!0},this.renderContent())}}]),r}(s.default.Component);a.default=E,E.contextTypes={isEdgeWize:v.PropTypes.bool,gatewayName:v.PropTypes.string,gatewayNs:v.PropTypes.string,cluster:v.PropTypes.string}},function(e,t,a){e.exports={body:"_2xIpWv0eUy2KqNf-tYtdAs",containerLog:"-vLGgh65xBp9j5muKQxTD",containerLogContent:"dnH0_IiFyYfpYfmg1hgpq"}},function(e,t,a){e.exports={content:"_39OJSr_1I0ySWE5IDXTgPS",table:"_2siFIGV4OlLNAn6cC6ip6o"}},function(e,t,a){e.exports={wrapper:"_3JO8ALufHH6Th6RsLTg6EB",box:"fJxyscdhUqQ5IqvqrNnv8",card:"_2VT5I0TDMsCwcJ_SuhMM6s",name:"_2QZjb0CkVrOEBHJUBPFnwI",value:"_1d4Yqo0p0_Y6uq8-vShyXl"}},function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(18),r(16),r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(18),r(42),r(16),r(4),r(23),r(57),r(17);var l,u,o,i=n(r(36)),c=n(r(37)),s=n(r(55)),f=n(r(56)),d=n(r(51)),p=n(r(3)),m=n(r(788)),h=n(r(801)),v=r(239),g=n(r(1)),y=n(r(0)),E=r(52),b=r(467),_=n(r(3889));function O(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,d.default)(e);if(t){var n=(0,d.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,f.default)(this,a)}}var S=(0,v.observer)((o=u=function(e){(0,s.default)(r,e);var a=O(r);function r(){var e;(0,i.default)(this,r);for(var n=arguments.length,l=new Array(n),u=0;u1&&void 0!==arguments[1]?arguments[1]:{},l=(0,v.createPatch)("yaml",a,r,"","",{context:-1}),o=(0,g.parse)(l);return(0,g.html)(o,b({drawFileList:!1},n))}},{key:"componentDidUpdate",value:function(e){(0,m.default)(e.datas,this.props.datas)||this.setState({diffHtml:this.getDiffHtml(this.props.datas,{outputFormat:this.state.mode})})}},{key:"render",value:function(){var e=this.props,t=e.title,a=e.description;return d.default.createElement("div",null,d.default.createElement("div",{className:y.default.header},d.default.createElement(h.Icon,{name:"terminal",size:20}),d.default.createElement("span",null,t),d.default.createElement(h.Icon,{name:"chevron-down",clickable:!0,size:20,onClick:this.handleModeChange("line-by-line")}),d.default.createElement(h.Icon,{name:"chevron-right",clickable:!0,size:20,onClick:this.handleModeChange("side-by-side")}),d.default.createElement("span",{className:"float-right"},a)),d.default.createElement("div",{dangerouslySetInnerHTML:{__html:this.state.diffHtml}}))}}]),a}(d.Component);t.default=O,O.propTypes={title:p.default.string,datas:p.default.arrayOf(p.default.string)},O.defaultProps={datas:["",""]}},,,function(e,t,a){},function(e,t,a){e.exports={header:"_21by05Ap1WqFl6ETG7MnQY"}},function(e,t,a){e.exports={header:"_1O9lrtOWxJdpIuBxJLt2lX",diffWrapper:"rJcIkfzIkKyVB8RM7xFBo"}},function(e,a,r){"use strict";r(15);var n=r(20);r(11),r(84),r(18),r(16),r(4),r(23),r(17),r(85),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(11),r(84),r(18),r(28),r(42),r(16),r(4),r(23),r(57),r(17),r(85);var l=n(r(30)),u=n(r(61)),o=n(r(36)),i=n(r(37)),c=n(r(88)),s=n(r(55)),f=n(r(56)),d=n(r(51)),p=n(r(0)),m=n(r(1)),h=n(r(3)),v=n(r(63)),g=n(r(26)),y=n(r(928)),E=n(r(854)),b=r(52),_=r(72),O=r(794),S=r(186),C=n(r(240)),D=n(r(846)),k=n(r(1410));function N(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,d.default)(e);if(t){var n=(0,d.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,f.default)(this,a)}}var T=function(e){(0,s.default)(r,e);var a=N(r);function r(e){var n;return(0,o.default)(this,r),(n=a.call(this,e)).getItemName=function(e){return(0,g.default)(e,"metric.pod","-")},n.getCurrentValue=function(e){var t=n.props.config,a=t.type,r=t.unitType;return(0,O.getSuitableValue)((0,g.default)(e,"value[1]"),r||a)},n.handleScroll=function(e){var t=e.target,a=t.clientHeight,r=t.scrollHeight,l=a+t.scrollTop===r,u=n.props,o=u.data,i=u.page,c=u.total,s=u.onFetch;!n.scrolling&&c!==o.length&&l&&(n.scrolling=!0,s({more:!0,page:i+1}).then((function(){n.scrolling=!1})))},n.toggleChecked=function(e){n.setState({showChecked:e})},n.handleCheck=function(e){var a=n.getItemName(e);return(0,b.cacheFunc)("_resource_".concat(a),(function(){var e=n.props.maxChecked,r=(0,u.default)(n.props.checked);r.includes(a)?(0,y.default)(r,(function(e){return e===a})):r.length>=e?C.default.info({content:t("MONITORING_SELECT_LIMIT_MSG")}):r.push(a),n.props.onChange(r)}),(0,c.default)(n))},n.renderResourceItem=function(e){var a=n.props.checked,r=n.getItemName(e),l=n.getCurrentValue(e);return p.default.createElement("div",{key:r,className:k.default.item,onClick:n.handleCheck(e)},p.default.createElement(S.Checkbox,{className:k.default.itemCheck,checked:a.includes(r)}),p.default.createElement(S.Icon,{name:n.icon,size:16}),p.default.createElement("div",{className:k.default.itemInfo},p.default.createElement("strong",{title:r},r),p.default.createElement("p",null,t("CURRENT_VALUE",{value:l}))))},n.renderResourceList=function(e){return(0,v.default)(e)?p.default.createElement(D.default,null):e.map(n.renderResourceItem)},n.state={showChecked:!1},n.listRef=p.default.createRef(),n.throttleScroll=(0,E.default)(n.handleScroll,100),n}return(0,i.default)(r,[{key:"componentDidMount",value:function(){this.listNode=this.listRef.current,this.listNode&&this.listNode.addEventListener("scroll",this.throttleScroll)}},{key:"componentWillUnmount",value:function(){this.listNode&&this.listNode.removeEventListener("scroll",this.throttleScroll)}},{key:"render",value:function(){var e=this.props,a=e.loading,r=e.name,n=this.state.showChecked,u=n?this.checkedData:this.props.data;return p.default.createElement("div",{className:k.default.resources},p.default.createElement("div",{className:k.default.title},p.default.createElement("strong",null,t(r.toUpperCase())),p.default.createElement(S.Checkbox,{checked:n,onChange:this.toggleChecked},t("SHOW_SELECTED_ONLY"))),p.default.createElement("div",{className:k.default.content},p.default.createElement(S.Loading,{spinning:a},p.default.createElement("div",{className:k.default.list},p.default.createElement("div",{className:(0,h.default)((0,l.default)({},k.default.hide,!n))},this.renderResourceList(u)),p.default.createElement("div",{className:(0,h.default)((0,l.default)({},k.default.hide,n)),ref:this.listRef},this.renderResourceList(u))))))}},{key:"icon",get:function(){return _.ICON_TYPES[this.props.name.toLowerCase()]||"appcenter"}},{key:"checkedData",get:function(){var e=this,t=this.props,a=t.checked;return t.data.filter((function(t){return a.includes(e.getItemName(t))}))}}]),r}(p.default.Component);a.default=T,T.propTypes={loading:m.default.bool,config:m.default.object,name:m.default.string,maxChecked:m.default.number,page:m.default.number,total:m.default.number,checked:m.default.array,data:m.default.array,onFetch:m.default.func,onChange:m.default.func},T.defaultProps={loading:!1,config:{},name:"Resources",maxChecked:10,page:1,total:0,checked:[],data:[],onFetch:function(){},onChange:function(){}}},function(e,t,a){"use strict";var r=a(20);a(12),a(5),a(11),a(6),a(18),a(9),a(13),a(10),a(4),a(23),a(17),a(7),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(12),a(45),a(5),a(11),a(6),a(18),a(28),a(42),a(34),a(15),a(9),a(13),a(10),a(4),a(23),a(57),a(17),a(7);var n=r(a(315)),l=r(a(30)),u=r(a(36)),o=r(a(37)),i=r(a(55)),c=r(a(56)),s=r(a(51)),f=r(a(0)),d=r(a(1)),p=r(a(26)),m=r(a(63)),h=a(794),v=a(186),g=r(a(846)),y=a(798),E=r(a(1410));function b(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function _(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};return d.default.createElement("div",{className:E.default.tlsWrapper},d.default.createElement("div",{className:E.default.tlsItem},d.default.createElement("div",{className:"h6"},t("CREDENTIAL_SI")),d.default.createElement("pre",null,this.convert(e["tls.crt"],"tls.crt"))),d.default.createElement("div",{className:E.default.tlsItem},d.default.createElement("div",{className:"h6"},t("PRIVATE_KEY_TCAP")),d.default.createElement("pre",null,this.convert(e["tls.key"],"tls.key"))))}},{key:"renderImageRepositorySecret",value:function(e){var a=this,r=e[".dockerconfigjson"];return r&&r.auths?d.default.createElement("div",{className:E.default.imageWrapper},d.default.createElement("ul",null,Object.entries(r.auths).map((function(e){var n=(0,u.default)(e,1)[0];return d.default.createElement("li",{key:n},d.default.createElement("div",{className:"h6"},d.default.createElement(h.Icon,{name:"earth"}),n),d.default.createElement("ul",null,d.default.createElement("li",null,d.default.createElement("span",null,t(".dockerconfigjson"),":"),d.default.createElement("span",null,a.convert(JSON.stringify(r),".dockerconfigjson")))))})))):null}},{key:"renderDefault",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return d.default.createElement("div",{className:E.default.defaultWrapper},d.default.createElement("ul",null,Object.entries(t).map((function(t){var a=(0,u.default)(t,2),r=a[0],n=a[1];return d.default.createElement("li",{key:r},d.default.createElement("span",null,r,":"),d.default.createElement("span",null,d.default.createElement("pre",null,e.convert(n,r))))}))))}},{key:"renderBasicAuth",value:function(){var e=this,a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return d.default.createElement("div",{className:E.default.defaultWrapper},d.default.createElement("ul",null,Object.entries(a).map((function(a){var r=(0,u.default)(a,2),n=r[0],l=r[1];return d.default.createElement("li",{key:n},d.default.createElement("span",null,t(n.toUpperCase()),":"),d.default.createElement("span",null,d.default.createElement("pre",null,e.convert(l,n))))}))))}},{key:"renderContent",value:function(e){if(!e.type)return null;var t=null;switch(e.type){case"kubernetes.io/tls":t=this.renderTLS(e.data);break;case"kubernetes.io/dockerconfigjson":t=this.renderImageRepositorySecret(e.data);break;case"kubernetes.io/basic-auth":t=this.renderBasicAuth(e.data);break;default:t=this.renderDefault(e.data)}return t}},{key:"renderOperations",value:function(){var e=this.state.showSecret;return d.default.createElement(h.Button,{type:"flat",icon:e?"eye":"eye-closed",onClick:this.changeSecretState})}},{key:"renderPlacement",value:function(){var e=this.props.match.params,t=e.name,a=e.namespace;return this.store.detail.isFedManaged?d.default.createElement(g.default,{module:this.store.module,name:t,namespace:a,isEdgeWize:(0,y.isEdgeWizePage)()}):null}},{key:"render",value:function(){var e=this.store.detail;return d.default.createElement("div",null,this.renderPlacement(),d.default.createElement(v.default,{title:t("DATA"),operations:this.renderOperations()},this.renderContent(e)))}},{key:"originData",get:function(){var e,t;return null!==(e=null===(t=this.store.detail._originData)||void 0===t?void 0:t.data)&&void 0!==e?e:{}}}]),r}(d.default.Component))||l)||l;a.default=_},function(e,t,a){e.exports={defaultWrapper:"_2peh6PErdPDCJ6M9zNnRHF",tlsWrapper:"_2tLwXnfNxiZk4X_bSM9kmR",tlsItem:"_2r-rapgWLiquMqgE3_cZwf",imageWrapper:"_2zQdawm6yFVe8N0JA-zICj"}},function(e,t,a){"use strict";a(15);var r=a(20);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=a(317),l=r(a(3935));t.default=function(e){return[{path:"".concat(e,"/detail"),title:"DATA",component:l.default,exact:!0},(0,n.getIndexRoute)({path:e,to:"".concat(e,"/detail"),exact:!0})]}},function(e,a,r){"use strict";r(15);var n=r(20);r(18),r(16),r(98),r(4),r(23),r(24),r(17),r(62),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(18),r(42),r(16),r(98),r(4),r(23),r(57),r(24),r(17),r(62);var l,u=n(r(96)),o=n(r(36)),i=n(r(37)),c=n(r(55)),s=n(r(56)),f=n(r(51)),d=n(r(0)),p=r(239),m=n(r(801)),h=r(52),v=n(r(944)),g=n(r(3936));function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,f.default)(e);if(t){var n=(0,f.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,s.default)(this,a)}}var E=(0,p.inject)("detailStore")(l=(0,p.observer)(l=function(e){(0,c.default)(r,e);var a=y(r);function r(e){var t;return(0,o.default)(this,r),(t=a.call(this,e)).store=e.detailStore,t.module=e.module,t}return(0,i.default)(r,[{key:"renderContent",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return d.default.createElement("div",{className:g.default.wrapper},d.default.createElement("ul",null,Object.entries(e).map((function(e){var t=(0,u.default)(e,2),a=t[0],r=t[1];return d.default.createElement("li",{key:a},d.default.createElement("div",{className:"h6"},a),d.default.createElement("pre",{className:g.default.value},r))}))))}},{key:"renderPlacement",value:function(){var e=this.props.match.params,t=e.name,a=e.namespace;return this.store.detail.isFedManaged?d.default.createElement(v.default,{module:this.store.module,name:t,namespace:a,isEdgeWize:(0,h.isEdgeWizePage)()}):null}},{key:"render",value:function(){var e=this.store,a=e.detail,r=e.isLoading;return d.default.createElement("div",null,this.renderPlacement(),d.default.createElement(m.default,{title:t("DATA"),loading:r},this.renderContent(a.data)))}}]),r}(d.default.Component))||l)||l;a.default=E},function(e,t,a){e.exports={wrapper:"objLg3fuCuqy66XEKBptC",value:"SkXJa0qm0W5rZn0Q51xi5"}},function(e,t,a){"use strict";a(15);var r=a(20);a(4),a(23),a(17),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(45),a(42),a(4),a(23),a(57),a(17);var n=r(a(36)),l=r(a(55)),u=r(a(56)),o=r(a(51));function i(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,o.default)(e);if(t){var n=(0,o.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,u.default)(this,a)}}var c=function(e){(0,l.default)(a,e);var t=i(a);function a(){return(0,n.default)(this,a),t.apply(this,arguments)}return a}(r(a(1214)).default);t.default=c},function(e,t,a){"use strict";a(15);var r=a(20);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=a(317),l=r(a(3939));t.default=function(e){return[{path:"".concat(e,"/detail"),title:"DATA",component:l.default,exact:!0},(0,n.getIndexRoute)({path:e,to:"".concat(e,"/detail"),exact:!0})]}},function(e,t,a){"use strict";a(15);var r=a(20);a(18),a(16),a(4),a(23),a(17),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(45),a(18),a(42),a(16),a(4),a(23),a(57),a(17);var n,l=r(a(315)),u=r(a(36)),o=r(a(37)),i=r(a(55)),c=r(a(56)),s=r(a(51)),f=r(a(0)),d=a(239),p=r(a(26)),m=r(a(3940)),h=r(a(1836));function v(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,s.default)(e);if(t){var n=(0,s.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,c.default)(this,a)}}var g=(0,d.inject)("detailStore")(n=(0,d.observer)(n=function(e){(0,i.default)(a,e);var t=v(a);function a(e){var r;return(0,u.default)(this,a),(r=t.call(this,e)).store=e.detailStore,r.module=e.module,r}return(0,o.default)(a,[{key:"render",value:function(){var e=this,t=this.store.detail,a=(0,p.default)(t,"secrets"),r=(0,p.default)(t,"name");return f.default.createElement("div",null,f.default.createElement("div",{className:h.default.secretWrapper},a.map((function(t){var a=t.name;return f.default.createElement(m.default,(0,l.default)({secret:a,serviceAccountName:r,key:a},e.props))}))))}}]),a}(f.default.Component))||n)||n;t.default=g},function(e,a,r){"use strict";var n=r(20);r(12),r(11),r(6),r(18),r(98),r(9),r(13),r(10),r(4),r(23),r(24),r(17),r(62),r(136),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(45),r(11),r(6),r(18),r(28),r(42),r(34),r(15),r(98),r(9),r(13),r(10),r(4),r(23),r(57),r(24),r(17),r(62),r(136),r(7);var l,u,o=n(r(96)),i=n(r(30)),c=n(r(36)),s=n(r(37)),f=n(r(55)),d=n(r(56)),p=n(r(51)),m=n(r(49)),h=n(r(0)),v=r(239),g=r(14),y=r(186),E=n(r(240)),b=r(909),_=n(r(789)),O=n(r(841)),S=r(52),C=r(894),D=r(453),k=r(440),N=n(r(851)),T=n(r(1836));function R(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function w(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:"namespacenetworkpolicies";return(0,n.default)(this,a),(e=t.call(this,r)).getListUrl=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return"".concat(e.apiVersion).concat(e.getPath(t),"/").concat(e.module).concat(t.dryRun?"?dryRun=All":"")},e.getWatchListUrl=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return"".concat(e.apiVersion,"/watch").concat(e.getPath(t),"/").concat(e.module)},e.getResourceUrl=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return"/kapis/resources.kubesphere.io/v1alpha3".concat(e.getPath(t),"/").concat(e.module)},e}return(0,l.default)(a,[{key:"getPath",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.namespace,a="";return t&&(a+="/namespaces/".concat(t)),a}}]),a}(r(a(68)).default);t.default=s},function(e,a,r){"use strict";r(15);var n=r(20);Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var l=r(317),u=n(r(3956));a.default=function(e){return[{path:"".concat(e,"/egress"),title:t("EGRESS_RULES"),component:u.default,exact:!0},{path:"".concat(e,"/ingress"),title:t("INGRESS_RULES"),component:u.default,exact:!0},(0,l.getIndexRoute)({path:e,to:"".concat(e,"/egress"),exact:!0})]}},function(e,a,r){"use strict";var n=r(20);r(12),r(5),r(11),r(6),r(73),r(18),r(87),r(9),r(13),r(10),r(4),r(23),r(24),r(17),r(62),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(45),r(5),r(11),r(6),r(73),r(18),r(28),r(87),r(42),r(34),r(15),r(9),r(13),r(10),r(4),r(23),r(57),r(24),r(17),r(62),r(7);var l,u=n(r(30)),o=n(r(36)),i=n(r(37)),c=n(r(55)),s=n(r(56)),f=n(r(51)),d=r(186),p=n(r(789)),m=n(r(26)),h=n(r(63)),v=n(r(3957)),g=r(14),y=r(239),E=n(r(0)),b=r(52),_=n(r(3961));function O(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function S(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,f.default)(e);if(t){var n=(0,f.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,s.default)(this,a)}}var C=(0,y.inject)("detailStore")(l=(0,y.observer)(l=function(e){(0,c.default)(r,e);var a=S(r);function r(e){var t;return(0,o.default)(this,r),(t=a.call(this,e)).renderLabels=function(e){return e?(0,v.default)((0,m.default)(e,"matchLabels",[])).map((function(e){return E.default.createElement("div",null,E.default.createElement("label",{className:_.default.label},E.default.createElement("span",null,e[0]),e[1]))})):""},t.renderDetailLabels=function(e,t){var a=(0,m.default)(e,t);return(0,v.default)((0,m.default)(a,"matchLabels",[])).map((function(e){return E.default.createElement("label",{className:_.default.label},E.default.createElement("span",null,e[0]),e[1])})).reduce((function(e,t){return null===e?t:E.default.createElement(E.default.Fragment,null,e," and ",t)}),null)},t.renderIpBlock=function(e){return e?E.default.createElement("label",null,(0,v.default)(e).map((function(e){return"cidr"===e[0]?"".concat(e[1]):e.join(": ")})).reduce((function(e,t){return null===e?t:E.default.createElement(E.default.Fragment,null,e," ",t)}),null)):""},t.renderPolicyDetail=function(e){var a=(0,m.default)(e,"namespace",""),r=(0,m.default)(e,"ipBlock"),n=(0,m.default)(r,"except"),l=e.direction,u=t.renderIpBlock(r),o=t.renderDetailLabels(e,"specPodSelector"),i=t.renderDetailLabels(e,"namespaceSelector"),c=t.renderDetailLabels(e,"podSelector"),s=(0,m.default)(e,"ports",[]).map((function(e){return"".concat(e.protocol,": ").concat(e.port)})).reduce((function(e,t){return null===e?t:E.default.createElement(E.default.Fragment,null,e," and ",t)}),null);return E.default.createElement("div",null,E.default.createElement("span",null,"This rule allows pods in the namespace '",a,"' "),!(0,h.default)(o)&&E.default.createElement("span",null," with the label ",o," "),E.default.createElement("span",null,"egress"===l?"to connect to ":"to receive traffic from "),(0,h.default)(r)?(0,h.default)(c)&&(0,h.default)(i)?"all pods in the same namespace ":E.default.createElement("label",null,!(0,h.default)(c)&&E.default.createElement("span",null,(0,h.default)(i)?"pods in the same namespace ":"pods "," ","with labels ",c," "),!(0,h.default)(i)&&E.default.createElement("span",null,(0,h.default)(c)?"all pods in the namespace ":"in namespaces ","with the labels ",i," ")):E.default.createElement("label",null,n&&"all IPs in "," subnet '",u,"'"," "),(0,h.default)(s)?"on all ports":E.default.createElement("span",null,"on port",s.length>1?"s":""," ",s))},t.store=e.detailStore,t}return(0,i.default)(r,[{key:"render",value:function(){var e=this,a=this.tableData;return E.default.createElement(p.default,{title:"egress"===this.direction?t("EGRESS_RULES"):t("INGRESS_RULES")},E.default.createElement(d.Table,{dataSource:a,className:_.default.table,columns:this.columns,expandedRowRender:function(t){return E.default.createElement("div",{className:_.default.detail},e.renderPolicyDetail(t))}}))}},{key:"direction",get:function(){var e=this.props.match.path.match(/:name\/([a-z]*)/);return e?e[1]:"egress"}},{key:"columns",get:function(){var e=this;return[{title:t("TARGET"),children:[{title:t("PROJECT"),dataIndex:"namespace",render:function(e){return(0,b.showNameAndAlias)(e,"project")}},{title:t("LABEL"),dataIndex:"specPodSelector",render:function(t){return e.renderLabels(t)}}]},{title:t("DESTINATION"),children:[{title:t("PROJECT"),dataIndex:"namespaceSelector",render:function(t,a){if((0,h.default)((0,m.default)(a,"ipBlock")))return(0,m.default)(t,"matchLabels")?e.renderLabels(t):(0,m.default)(a,"namespace")}},{title:t("LABEL"),dataIndex:"podSelector",render:function(t,a){if((0,h.default)((0,m.default)(a,"ipBlock")))return(0,m.default)(t,"matchLabels")?e.renderLabels(t):"Any"}},{title:"CIDR",dataIndex:"ipBlock",className:_.default.cidr,render:function(t){return e.renderIpBlock(t)}},{title:t("PORT"),dataIndex:"ports",render:function(e){return(0,h.default)(e)?"Any":e.map((function(e){return E.default.createElement("div",null,e.protocol,": ",e.port,e.endPort?"-".concat(e.endPort):"")}))}}]}]}},{key:"tableData",get:function(){var e=this,t=this.store.detail,a=(0,g.toJS)((0,m.default)(t,"_originData")),r=(0,m.default)(a,"metadata.namespace"),n=(0,m.default)(a,"spec.podSelector"),l=(0,m.default)(a,"spec.".concat(this.direction),[]),o="ingress"===this.direction?"from":"to",i=[];return l.forEach((function(t){var a=(0,m.default)(t,"ports",[]);(0,m.default)(t,"".concat(o),[]).forEach((function(t){i.push(function(e){for(var t=1;t0?"builtin":""}},{key:"rules",get:function(){return(0,d.toJS)((0,m.default)(this.store,"detail._originDataWithStatus.spec.rules",[]))}}]),a}(f.default.Component))||n)||n;t.default=E},function(e,a,r){"use strict";var n=r(20);r(12),r(11),r(6),r(18),r(48),r(9),r(13),r(10),r(4),r(23),r(24),r(17),r(188),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(45),r(11),r(6),r(18),r(28),r(48),r(42),r(34),r(15),r(9),r(13),r(10),r(4),r(23),r(57),r(24),r(17),r(188),r(7);var l,u=n(r(30)),o=n(r(315)),i=n(r(36)),c=n(r(37)),s=n(r(55)),f=n(r(56)),d=n(r(51)),p=n(r(0)),m=n(r(789)),h=r(239),v=r(186),g=r(14),y=n(r(135)),E=n(r(26)),b=n(r(250)),_=r(72),O=n(r(3)),S=n(r(3974)),C=n(r(1847));function D(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function k(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.cluster,a=e.namespace,r=this.props.match.params,n=r.cluster,l=r.namespace,u=r.workspace;return t=t||n,a=a||l,"".concat(u?"/".concat(u):"","/clusters/").concat(t).concat(a?"/projects/".concat(a):"")}},{key:"render",value:function(){var e=this.store.list,a=e.data,r=e.isLoading,n=e.filters;return p.default.createElement(C.default,{title:t("ALERTING_MESSAGE_PL"),loading:r},(0,g.default)(a)?p.default.createElement("div",null,t("NO_DATA_DESC")):p.default.createElement(p.default.Fragment,null,p.default.createElement(N.default,{className:R.default.table,filters:n,data:a,name:"Alerting Message",rowKey:"value",columns:this.getColumns(),selectedRowKeys:[],selectActions:[],hideHeader:!0,hideFooter:!0}),this.renderFooter()))}},{key:"type",get:function(){return this.props.match.url.indexOf("alert-rules/builtin")>0?"builtin":""}},{key:"pagination",get:function(){var e=this.state;return{page:e.page,limit:e.limit,total:this.store.list.total}}}]),r}(p.default.Component))||l;a.default=P},function(e,t,a){e.exports={table:"_1S6EGnQYhf4I_C9HYIeYHi",footer:"Kq4qO0-0y6WDXdgomQGx9",pageSizeBox:"_3L3d-EWgQL2dC6pjhEaaAw",pagesize:"_3bL0tigLuMghvx1kjbA11b",text:"_3EpDCZ8M24qb56fEsOL6zB",gap:"_23CFCJ6p6IBdfCDRazyfIm",pageSizeMenu:"QH34yZzzVVJKzl6Uy9lIr",pageSizeMenuitem:"_3TGMFzQBOsivXbopcaPhW"}},function(e,t,a){e.exports={icon:"_3uoefixeZIAoGPZ37DEVLm"}},,,,,,,,,function(e,t,a){"use strict";a(15);var r=a(20);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=a(317),l=r(a(813)),u=r(a(821)),o=r(a(3987));t.default=function(e){return[{path:"".concat(e,"/resource-status"),title:"RESOURCE_STATUS",exact:!0,component:o.default},{path:"".concat(e,"/metadata"),title:"METADATA",component:u.default,exact:!0},{path:"".concat(e,"/events"),title:"EVENT_PL",exact:!0,component:l.default},(0,n.getIndexRoute)({path:e,to:"".concat(e,"/resource-status"),exact:!0})]}},function(e,a,r){"use strict";var n=r(20);r(12),r(5),r(11),r(6),r(73),r(16),r(9),r(13),r(10),r(4),r(23),r(17),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(45),r(5),r(11),r(6),r(73),r(28),r(42),r(16),r(34),r(15),r(9),r(13),r(10),r(4),r(23),r(57),r(17),r(7);var l,u=n(r(30)),o=n(r(36)),i=n(r(37)),c=n(r(55)),s=n(r(56)),f=n(r(51)),d=n(r(0)),p=r(239),m=r(186),h=n(r(789)),v=n(r(831)),g=r(52),y=r(14),E=n(r(63)),b=n(r(3988)),_=n(r(3990));function O(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function S(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,f.default)(e);if(t){var n=(0,f.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,s.default)(this,a)}}var C=d.default.createElement("div",null,d.default.createElement("div",null,t("RWO_DESC")),d.default.createElement("div",null,t("ROX_DESC")),d.default.createElement("div",null,t("RWX_DESC"))),D=(0,p.inject)("detailStore")(l=(0,p.observer)(l=function(e){(0,c.default)(r,e);var a=S(r);function r(){var e;(0,o.default)(this,r);for(var n=arguments.length,l=new Array(n),u=0;u0&&f.createElement(f.Fragment,null,f.createElement("div",{className:d.default.title},f.createElement("div",null,t("SECRET_INFO"))),r.map((function(e){return f.createElement("div",{key:e.name,className:d.default.objectContainer},f.createElement("div",{className:d.default.v},t(e.label)),f.createElement("div",null,f.createElement("span",{className:d.default.k},t("NAME"),":"),f.createElement("span",{className:d.default.v},e.name)),f.createElement("div",null,f.createElement("span",{className:d.default.k},t("PROJECT"),":"),f.createElement("span",{className:d.default.v},e.namespace)))}))));default:return null}}())})));a.default=v},function(e,t,a){e.exports={wrapper:"_2qRBJsVUbx2DCXhx-PjMOI",title:"DelqatdDDYD0WB80zjyye",attrs:"_3fLkwri_NoztGHHZnQ0Tvk",attr:"_2k08ybc8MfthAHUcjHCwur",k:"_19wHxkkHh7sTteCNmaVgfP",attrTitle:"_2LJajeyjpTUCghMOKSX0lj",attrValue:"Q12wxwvQ_-E9SSJ5IPDHw",objectContainer:"_1wRaHGoiEWQ4U0Y5L81-oi",kvContainer:"_39n5tBsQPDfpckCQt5CuKH",v:"_38RkRqcmTNqMQFeXrZeCLM"}},function(e,t,a){e.exports={ItemBox:"_2mELQmeBTiwa56m4FRuCho",leftBox:"W7Qki2xI0vvqvcb2Q1F2M",rightBox:"_3RqsKWBD7eq3vXQvgCfOsD",title:"_3KYfcJ0CU8B4xFsFQda5Te",toolTip:"_37f2XY7RCBfmVNY1BOdNx8",des:"_2L3vvzzxhB-Zrg5WrqyiuM",titleBox:"_2gmisrquKxEER676oJ7GxM",IconLine:"_1IDNa6yWd9AhFr_21sUGZO",cardBox:"NqsBGhYtt3JFydHzSmjZq",text:"_17aFPuXEkGgpOO2vxoLjb-"}},,,,,function(e,t,a){e.exports={wrapper:"_1RTOu4WuOVY0Fca7CPEdB9",tabHeader:"Qd42i__2a3FJ2DzYpVXqd",tabHeaderItem:"_2ICL_nLZjLbTcDxms5nROn",active:"_2NpglgYkusPNf1fA7U4yCm",tabContent:"UsMeMpWi8k2TLXu-TzcHv",chartWrapper:"_1WcDqnOpkmr5xePLz3bOpj"}},,,,,,,,,,,,,,,,,,,,,,,function(e,t,a){"use strict";a(15);var r=a(20);a(4),a(23),a(17),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(45),a(42),a(4),a(23),a(57),a(17);var n=r(a(36)),l=r(a(55)),u=r(a(56)),o=r(a(51));function i(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,o.default)(e);if(t){var n=(0,o.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,u.default)(this,a)}}var c=function(e){(0,l.default)(a,e);var t=i(a);function a(){return(0,n.default)(this,a),t.apply(this,arguments)}return a}(r(a(1420)).default);t.default=c},function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(16),r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(28),r(42),r(16),r(4),r(23),r(57),r(17);var l,u,o,i=n(r(315)),c=n(r(30)),s=n(r(36)),f=n(r(37)),d=n(r(55)),p=n(r(56)),m=n(r(51)),h=n(r(0)),v=r(239),g=n(r(1)),y=n(r(3)),E=n(r(194)),b=r(186),_=r(794),O=n(r(4020)),S=n(r(4021));function C(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,m.default)(e);if(t){var n=(0,m.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,p.default)(this,a)}}var D=(0,v.inject)("rootStore")(l=(0,v.observer)((o=u=function(e){(0,d.default)(r,e);var a=C(r);function r(){var e;(0,s.default)(this,r);for(var t=arguments.length,n=new Array(t),l=0;l99?h.default.createElement("div",{className:S.default.skip},"..."):a;return a>0?h.default.createElement("div",{className:S.default.warn},h.default.createElement(b.Tooltip,{className:S.default.tips,content:t("RESOURCE_WARNING_TIPS",{warnNum:a,tipName:t("".concat(r,"_PL"))})},h.default.createElement("div",{onClick:this.handleWarnClick},n))):null}},{key:"render",value:function(){var e=this.props,a=e.className,r=e.icon,n=e.iconSize,l=e.name,u=e.routeName,o=e.num,s=e.metrics,f=e.onClick,d=e.cluster,p=(0,_.getAreaChartOps)({title:"",unit:"",legend:["COUNT"],data:s});return h.default.createElement("div",{"data-name":l,className:(0,y.default)(S.default.card,a)},h.default.createElement("div",{className:S.default.icon},h.default.createElement(b.Icon,{name:r,size:n}),this.renderWarn()),h.default.createElement("div",{className:(0,y.default)(S.default.info,(0,c.default)({},S.default.cursor,u||f)),onClick:this.handleClick},h.default.createElement("strong",null,o),h.default.createElement("span",null,"1"===o?t(l):t("".concat(l,"_PL")))),globals.app.hasClusterModule(d,"whizard-monitoring")&&h.default.createElement(O.default,(0,i.default)({width:330,height:44,bgColor:"transparent"},p)))}},{key:"routing",get:function(){return this.props.rootStore.routing}}]),r}(h.default.Component),u.propTypes={isEdgeWize:g.default.bool,className:g.default.string,icon:g.default.string,iconSize:g.default.number,name:g.default.string,namespace:g.default.string,routeName:g.default.string,num:g.default.oneOfType([g.default.number,g.default.string]),warnNum:g.default.number,onClick:g.default.func},u.defaultProps={isEdgeWize:!1,icon:"appcenter",iconSize:40,name:"deployment",namespace:"default",routeName:"",num:0,warnNum:0},l=o))||l)||l;a.default=D},function(e,t,a){"use strict";a(15);var r=a(20);a(827),a(11),a(18),a(10),a(4),a(23),a(17),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(45),a(827),a(11),a(18),a(42),a(10),a(4),a(23),a(57),a(17);var n=r(a(36)),l=r(a(37)),u=r(a(55)),o=r(a(56)),i=r(a(51)),c=r(a(0)),s=r(a(1)),f=a(72),d=r(a(900)),p=r(a(869)),m=r(a(870)),h=r(a(947)),v=r(a(929)),g=r(a(871)),y=r(a(862));function E(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,i.default)(e);if(t){var n=(0,i.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,o.default)(this,a)}}var b=function(e){(0,u.default)(a,e);var t=E(a);function a(){return(0,n.default)(this,a),t.apply(this,arguments)}return(0,l.default)(a,[{key:"getVeticalPoints",value:function(){var e=this.props.width,t=(e-10)/10;return Array(10).fill("").map((function(e,a){return 5+t*a}))}},{key:"renderArea",value:function(){var e=this.props,t=e.unit,a=e.areaColors,r={stroke:"#55bc8a",strokeWidth:1,fill:"#fff",fillOpacity:1};return this.series.map((function(e,n){var l=f.COLORS_MAP[a[n]];return c.default.createElement(d.default,{key:e,dataKey:e,stroke:l,fillOpacity:"0.1",fill:l,unit:t,dot:r})}))}},{key:"render",value:function(){var e=this.props,t=e.width,a=e.height,r=e.xKey,n=e.data;return c.default.createElement(g.default,{width:t,height:a,debounce:1},c.default.createElement(h.default,{data:n},c.default.createElement(m.default,{dataKey:r,hide:!0}),c.default.createElement(p.default,{wrapperStyle:{zIndex:1e3},content:c.default.createElement(y.default,null)}),c.default.createElement(v.default,{strokeDasharray:"3 6",horizontal:!1,verticalPoints:this.getVeticalPoints()}),this.renderArea()))}},{key:"series",get:function(){var e=this.props,t=e.xKey,a=e.data;return Object.keys(a[0]||{}).filter((function(e){return e!==t}))}}]),a}(c.default.Component);t.default=b,b.propTypes={width:s.default.oneOfType([s.default.string,s.default.number]),height:s.default.oneOfType([s.default.string,s.default.number]),xKey:s.default.string,unit:s.default.string,data:s.default.array,bgColor:s.default.string,areaColors:s.default.array},b.defaultProps={width:180,height:56,xKey:"time",unit:"",bgColor:f.COLORS_MAP.lightest,areaColors:["green","blue","yellow","red"],data:[]}},function(e,t,a){e.exports={card:"_2EqCYVjXVpgt08cuRczGSh",icon:"_36HfcePtCXEzvj8yzTS4vF",warn:"_1ntTH3ZrzLLbchIomuwlhQ",tips:"-w63JOV5KksV8TOcQl-U3",skip:"_2kxI8l5XqQlDPtMvynz3RZ",info:"_1u4G7Fwu2z6_yIx2xKMV71",cursor:"_1gP2nTFiH8FENSNxmyr2hr"}},function(e,t,a){"use strict";a(15);var r=a(20);a(5),a(827),a(11),a(18),a(10),a(4),a(23),a(17),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(45),a(5),a(827),a(11),a(18),a(42),a(10),a(4),a(23),a(57),a(17);var n=r(a(36)),l=r(a(37)),u=r(a(55)),o=r(a(56)),i=r(a(51)),c=r(a(0)),s=r(a(1)),f=a(72),d=r(a(900)),p=r(a(869)),m=r(a(912)),h=r(a(870)),v=r(a(947)),g=r(a(929)),y=r(a(871)),E=r(a(862));function b(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,i.default)(e);if(t){var n=(0,i.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,o.default)(this,a)}}var _=function(e){(0,u.default)(a,e);var t=b(a);function a(){return(0,n.default)(this,a),t.apply(this,arguments)}return(0,l.default)(a,[{key:"render",value:function(){var e=this.props,t=e.x,a=e.y,r=e.payload;return c.default.createElement("g",{transform:"translate(".concat(t,",").concat(a,")")},c.default.createElement("text",{x:0,y:0,dy:12,fill:"#79879c",textAnchor:"middle"},r.value))}}]),a}(c.default.PureComponent),O=function(e){(0,u.default)(a,e);var t=b(a);function a(){return(0,n.default)(this,a),t.apply(this,arguments)}return(0,l.default)(a,[{key:"getHorizontalPoints",value:function(){var e=this.props.height,t=(e-30-6)/4;return Array(4).fill("").map((function(e,a){return 30+t*a}))}},{key:"renderArea",value:function(){var e=this.props,t=e.unit,a=e.areaColors;return this.series.map((function(e,r){var n=f.COLORS_MAP[a[r]];return c.default.createElement(d.default,{key:e,dataKey:e,stroke:n,fillOpacity:"1",fill:"url(#colorPv)",unit:t})}))}},{key:"render",value:function(){var e=this.props,t=e.width,a=e.height,r=e.xKey,n=e.data;return c.default.createElement(y.default,{width:t,height:a,debounce:1},c.default.createElement(v.default,{data:n,margin:{top:32,left:16,right:16,bottom:0}},c.default.createElement("defs",null,c.default.createElement("linearGradient",{id:"colorPv",x1:"0",y1:"0",x2:"0",y2:"1"},c.default.createElement("stop",{offset:"5%",stopColor:"#55bc8a",stopOpacity:.2}),c.default.createElement("stop",{offset:"95%",stopColor:"#55bc8a",stopOpacity:0}))),c.default.createElement(g.default,{vertical:!1,stroke:"#36435c",strokeDasharray:"2 2",horizontalPoints:this.getHorizontalPoints()}),c.default.createElement(h.default,{dataKey:r,axisLine:!1,tickLine:!1,height:30,interval:"preserveStart",tick:c.default.createElement(_,null),minTickGap:20}),c.default.createElement(m.default,{hide:!0,type:"number",domain:[function(e){return 0-Math.abs(e)},function(e){return 1.6*e}]}),c.default.createElement(p.default,{wrapperStyle:{zIndex:1e3},content:c.default.createElement(E.default,null)}),this.renderArea()))}},{key:"series",get:function(){var e=this.props,t=e.xKey,a=e.data;return Object.keys(a[0]||{}).filter((function(e){return e!==t}))}}]),a}(c.default.Component);t.default=O,O.propTypes={width:s.default.oneOfType([s.default.string,s.default.number]),height:s.default.oneOfType([s.default.string,s.default.number]),xKey:s.default.string,unit:s.default.string,data:s.default.array,bgColor:s.default.string,areaColors:s.default.array},O.defaultProps={width:180,height:56,xKey:"time",unit:"",bgColor:f.COLORS_MAP.lightest,areaColors:["green","blue","yellow","red"],data:[]}},function(e,t,a){e.exports={wrapper:"_235Ydzrxtn47mC5KVnUqMN",chartWrapper:"_1Ih0Px-Zxe5AwW8uJkqt8N",chart:"_3awmU2UAJvmujW7qMl0RAz",title:"_2jhkSzEfNoOh15_4kzbLaw"}},function(e,t,a){e.exports={wrapper:"_29aBx9QNbrjLovrOIFCqJl",header:"_3S-YBwfAwlBHzJQi5UvabR",timeSelect:"_3zET3ukjC_TJNnZ6Dw5ePh"}},,,,,,function(e,t,a){e.exports={item:"_3AKgHrYF7Fu8kENV1qw1Xg",content:"_7hMYwDpNDo4VWwNVsinXF",contentItem:"_8Zz1AYqtLjXcwA84SIji2"}},function(e,t,a){e.exports={card:"_2UbaCzyTEGsejSpXNrF6dW",Head:"pkiC1T3lJghgtls15h59r",item:"_29oHjjQCCBQ_HO52Qhu14a",title:"_34EuAy0Td-ux7hF71uGkGI",default:"_1k0Fd-vBuAggthS2MUTYbg",desc:"Mbk9BMGODO4puVhQfoED2",icon:"_1dVn11WYgSYrEHXe9FM6AK",open:"_3fvnh8ID_KJuzAwff1Rjj",List:"_1QnLnHp8eD8OFWcXcm6UUI",inline:"_18Mhfb5La8Pz1dnD8xW0t0",barItem:"_2OZot2XVNFPRHhkODRz2ag",bar:"_3PjP81XZ-f-DuKNK9b9qOS"}},function(e,t,a){e.exports={quota:"j_jIuTBmQIJCHq9iJUPCU",item:"_19YZe4YP-4n3v2b_sZUbmz",bar:"_2a14fJwRKjewBNftJGp2R-"}},function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(6),r(86),r(16),r(27),r(190),r(10),r(24),r(62),r(64),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var l=n(r(96));r(5),r(6),r(86),r(16),r(27),r(190),r(10),r(4),r(436),r(24),r(62),r(64),r(7);var u=n(r(0)),o=n(r(26)),i=n(r(158)),c=r(186),s=n(r(1044)),f=r(52),d=r(72),p=n(r(4034)),m=["limits.cpu","limits.memory","pods"],h={Ti:Math.pow(1024,4),Gi:Math.pow(1024,3),Mi:Math.pow(1024,2),Ki:1024,TB:Math.pow(1e3,4),GB:Math.pow(1e3,3),MB:Math.pow(1e3,2),KB:1e3,T:Math.pow(1e3,4),G:Math.pow(1e3,3),M:Math.pow(1e3,2),K:1e3,Bytes:1,B:1},v=function(e){var a=e.name,r=e.total,n=e.used;if(!r&&!Number(n)&&-1===m.indexOf(a))return null;var v=0,g="",y="",E=function(e){return function(e,t){return e?[e,parseFloat(t)*(d.ICON_TYPES[a]||!h[e]?1:h[e])]:["",parseFloat(t)]}(function(e){var t=Object.keys(h),a=(0,o.default)(e.match(/[0-9]+([a-zA-Z]+)/),"1","");return t.forEach((function(e){if(a.indexOf(e)>-1)return a=e,!1})),a}(e),e)};if("limits.cpu"===a||"requests.cpu"===a)r&&(v=Number((0,f.cpuFormat)(n))/Number((0,f.cpuFormat)(r)),n="".concat((0,f.cpuFormat)(n)," Core"),r="".concat((0,f.cpuFormat)(r)," Core"));else if("limits.memory"===a||"requests.memory"===a)r&&(v=Number((0,f.memoryFormat)(n))/Number((0,f.memoryFormat)(r)),n="".concat((0,f.memoryFormat)(n,"Gi")," Gi"),r="".concat((0,f.memoryFormat)(r,"Gi")," Gi"));else if(r){var b=E(n),_=(0,l.default)(b,2),O=_[0],S=_[1],C=E(r),D=(0,l.default)(C,2),k=D[0],N=D[1];g=O,y=k,v=S/N}v=Math.min(Math.max(v,0),1);var T=a.indexOf("gpu")>-1?"gpu":a,R="gpu"===T?"".concat(T,".limit"):T;return u.default.createElement("div",{className:p.default.quota},u.default.createElement(c.Icon,{name:d.ICON_TYPES[T]||"resource",size:40}),u.default.createElement("div",{className:p.default.item},u.default.createElement("div",null,function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return d.ICON_TYPES[T]?t(e.replace(/[. ]/g,"_").toUpperCase()):e}(R)),u.default.createElement("p",null,t("RESOURCE_TYPE_SCAP"))),u.default.createElement("div",{className:p.default.item},u.default.createElement("div",null,function(e){if(y&&!g){var t=d.ICON_TYPES[a]||!h[y]?1:h[y];return"".concat(e/t).concat(e>0?y:"")}return e}(n)),u.default.createElement("p",null,t("USED"))),u.default.createElement("div",{className:p.default.item},u.default.createElement("div",null,(0,i.default)(r)?t("NO_LIMIT_TCAP"):r),u.default.createElement("p",null,t("QUOTA"))),u.default.createElement("div",{className:p.default.item,style:{flex:3}},u.default.createElement("div",null,t("USAGE")),u.default.createElement(s.default,{value:Math.min(v,1),className:p.default.bar,rightText:r?"":t("NO_LIMIT"),text:t("USED_PERCENT",{percent:Number((100*v).toFixed(2))})})))};a.default=v},function(e,t,a){e.exports={quota:"_3_ChjGbxbGEOsl-bn45v6",item:"_39hSvb0gytLzXkJepmuZYY",bar:"_3C2DyYLkZ1uZmTpxOaCjMD"}},function(e,t,a){e.exports={wrapper:"_2SomAa9Qr3FAZCUu_vfPVg",header:"_3IWXKjfTi9VrsxbWViUQan",item:"tXNdZn2Wks84tQIm0_DB",content:"_1slhrCDV-prgABOLHi36ms",contentItem:"nMyfCUkpNIE-XvgWGaFJd"}},,,,,,,,,,,,,,function(e,t,a){"use strict";a(15);var r=a(20);a(73),a(18),a(16),a(4),a(23),a(17),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(45),a(73),a(18),a(42),a(16),a(4),a(23),a(57),a(17);var n=r(a(36)),l=r(a(37)),u=r(a(55)),o=r(a(56)),i=r(a(51)),c=r(a(0)),s=a(52),f=r(a(26)),d=r(a(201)),p=r(a(4050));function m(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,i.default)(e);if(t){var n=(0,i.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,o.default)(this,a)}}var h=function(e){(0,u.default)(a,e);var t=m(a);function a(){return(0,n.default)(this,a),t.apply(this,arguments)}return(0,l.default)(a,[{key:"render",value:function(){var e=this.props,t=e.templates,a=e.roleCategory,r=void 0===a?[]:a,n=(0,d.default)("lang")||(0,s.getBrowserLang)();return c.default.createElement("ul",{className:p.default.wrapper,"data-test":"rule-list"},r.map((function(e){var a,r,l=t[e.name]||[],u=(null==e||null===(a=e.displayName)||void 0===a?void 0:a[n])||(null==e||null===(r=e.displayName)||void 0===r?void 0:r.en);return l.length<1?null:c.default.createElement("li",{key:e.name},c.default.createElement("div",{className:p.default.name},u),c.default.createElement("div",null,l.map((function(e){return(0,f.default)(e,"_originData.spec.displayName[".concat(n,"]"))||(0,f.default)(e,"_originData.spec.displayName.en")})).join("  |  ")))})))}}]),a}(c.default.Component);t.default=h},function(e,t,a){e.exports={wrapper:"z2WyR5A5wRu0YtfOojEJ8",name:"_2Qe_QRdB_yNsSo5jz4l2m"}},function(e,t,a){e.exports={table:"_2rTR6NVDPyorYXDf3Og1lV"}},,,,,,,,,,,,,,,,,,,,,function(e,t,a){"use strict";a(15);var r=a(20);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=a(317),l=r(a(4073)),u=r(a(4074)),o=r(a(4081)),i=r(a(4085)),c=r(a(4086));t.default=function(e){return[{path:"".concat(e,"/gateway-configs"),title:"CONFIGURATION_OPTIONS",component:i.default,exact:!0},{path:"".concat(e,"/monitors"),title:"MONITORING",component:u.default,exact:!0,clusterModule:"whizard-monitoring"},{path:"".concat(e,"/logs"),title:"GATEWAY_LOGS",component:c.default,exact:!0},{path:"".concat(e,"/resource-status"),title:"RESOURCE_STATUS",component:o.default,exact:!0},{path:"".concat(e,"/metadata"),title:"METADATA",component:l.default,exact:!0},(0,n.getIndexRoute)({path:e,to:"".concat(e,"/gateway-configs"),exact:!0})]}},function(e,a,r){"use strict";r(15);var n=r(20),l=r(157);r(18),r(98),r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(18),r(42),r(98),r(4),r(23),r(57),r(17);var u,o=n(r(96)),i=n(r(36)),c=n(r(37)),s=n(r(55)),f=n(r(56)),d=n(r(51)),p=l(r(0)),m=n(r(789)),h=n(r(63)),v=r(239),g=n(r(1852));function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,d.default)(e);if(t){var n=(0,d.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,f.default)(this,a)}}var E=(0,v.inject)("detailStore")(u=(0,v.observer)(u=function(e){(0,s.default)(r,e);var a=y(r);function r(){return(0,i.default)(this,r),a.apply(this,arguments)}return(0,c.default)(r,[{key:"render",value:function(){var e=this.detail.annotations;return p.default.createElement(m.default,{title:t("ANNOTATION_PL")},p.default.createElement("div",{className:g.default.container},p.default.createElement("ul",null,(0,h.default)(e)?p.default.createElement("li",null,t("NO_DATA")):Object.entries(e).map((function(e){var t=(0,o.default)(e,2),a=t[0],r=t[1];return p.default.createElement("li",{key:a},p.default.createElement("span",{className:g.default.key},a),p.default.createElement("span",null,r))})))))}},{key:"store",get:function(){return this.props.detailStore}},{key:"detail",get:function(){return this.store.gateway.data||{}}}]),r}(p.Component))||u)||u;a.default=E},function(e,a,r){"use strict";var n=r(20);r(12),r(5),r(11),r(6),r(86),r(18),r(16),r(9),r(13),r(10),r(4),r(316),r(23),r(24),r(17),r(62),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(45),r(5),r(11),r(6),r(86),r(18),r(28),r(42),r(16),r(34),r(15),r(9),r(13),r(10),r(4),r(316),r(22),r(23),r(57),r(24),r(17),r(62),r(7);var l=n(r(315)),u=n(r(43)),o=n(r(30));r(41);var i,c=n(r(44)),s=n(r(36)),f=n(r(37)),d=n(r(55)),p=n(r(56)),m=n(r(51)),h=n(r(0)),v=r(239),g=n(r(26)),y=n(r(63)),E=r(794),b=n(r(1075)),_=r(186),O=r(822),S=r(798),C=n(r(4075));function D(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function k(e){for(var t=1;t-1||t.indexOf("/workspaces/")>-1?localStorage.getItem("federated-cluster"):e}},{key:"namespace",get:function(){return this.props.match.params.namespace}},{key:"workspace",get:function(){return this.props.match.params.workspace}},{key:"metrics",get:function(){return this.monitorStore.data}}]),r}(h.default.Component))||i)||i;a.default=R},function(e,a,r){"use strict";var n=r(20);r(12),r(5),r(11),r(6),r(84),r(86),r(73),r(18),r(16),r(27),r(190),r(9),r(13),r(10),r(4),r(316),r(23),r(24),r(17),r(85),r(62),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(45),r(5),r(11),r(6),r(84),r(86),r(73),r(18),r(28),r(42),r(16),r(27),r(190),r(34),r(15),r(9),r(13),r(10),r(4),r(316),r(22),r(23),r(57),r(24),r(17),r(85),r(62),r(7);var l=n(r(30)),u=n(r(43));r(41);var o=n(r(44)),i=n(r(36)),c=n(r(37)),s=n(r(88)),f=n(r(55)),d=n(r(56)),p=n(r(51)),m=n(r(0)),h=r(186),v=r(798),g=n(r(3)),y=r(1853),E=n(r(1075)),b=n(r(439)),_=n(r(63)),O=n(r(26)),S=n(r(189)),C=r(794),D=n(r(4076)),k=n(r(4080));function N(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function T(e){for(var t=1;t-1?Number(a).toFixed(4):isNaN(Number(a))?0:a;t[e.metric_name]=r})),t}},e.handleAutoRefresh=function(){e.setState({autoRefresh:!e.state.autoRefresh},(function(){e.state.autoRefresh?(0,C.startAutoRefresh)((0,s.default)(e)):(0,C.stopAutoRefresh)((0,s.default)(e))}))},e.handleRefresh=function(){e.fetchData()},e.renderAutoRefresh=function(){var t=e.state,a=t.enableAutoRefresh,r=t.autoRefresh;return a?m.default.createElement(h.Button,{className:k.default.button,type:"control",icon:r?"pause":"start",iconType:"light",onClick:e.handleAutoRefresh}):null},e.getMetricsData=function(t){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return(0,O.default)(e.state.metrics,"".concat(t),a)},e.renderCustomLegend=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=(e.className,e.payload),r=e.activeSeries,n=void 0===r?[]:r,u=e.showAll,o=void 0!==u&&u,i=a||[];if(i.length<2&&!o)return m.default.createElement("div",{className:k.default.legend});var c=function(t){var a=e.onClick;a&&a(t,(0,O.default)(t.target,"dataset.key"))};return m.default.createElement("div",{className:k.default.legend,onClick:c},i.map((function(e){var a=!n.includes(e.value),r=(0,O.default)(e,"payload.stroke");return m.default.createElement("div",{key:e.dataKey,"data-key":e.dataKey,className:(0,g.default)(k.default.item,(0,l.default)({},k.default.inactive,a))},m.default.createElement("i",{style:{backgroundColor:r}}),t(e.value))})))},e}return(0,c.default)(r,[{key:"componentDidMount",value:function(){this.fetchData()}},{key:"render",value:function(){var e=this.state,a=e.duration,r=e.errorType;return m.default.createElement("div",{className:k.default.overview},m.default.createElement("div",{className:k.default.header},m.default.createElement("p",{className:k.default.title},t("OVERVIEW")),m.default.createElement("div",{className:k.default.operations},m.default.createElement(D.default,{duration:a,onChange:this.handleChange}),this.renderAutoRefresh(),m.default.createElement(h.Button,{className:k.default.button,type:"control",icon:"refresh",iconType:"light",onClick:this.handleRefresh}))),m.default.createElement("div",{className:k.default.body},m.default.createElement("div",{className:k.default.left},m.default.createElement("div",{className:k.default.item},m.default.createElement(h.Icon,{name:"gateway",size:56}),m.default.createElement("div",null,m.default.createElement("p",null,t("TOTAL_REQUESTS")),m.default.createElement("span",null,this.getMetricsData("ingress_request_count")))),m.default.createElement("div",{className:k.default.item},m.default.createElement(h.Icon,{name:"error",size:56}),m.default.createElement("div",null,m.default.createElement(h.Select,{width:30,value:r,options:[{label:t("FOUR_XX_REQUEST_COUNT"),value:"ingress_request_4xx_count"},{label:t("FIVE_XX_REQUEST_COUNT"),value:"ingress_request_5xx_count"}],onChange:this.handleRequestError}),m.default.createElement("span",null,this.getMetricsData(r))))),m.default.createElement("div",{className:k.default.middle},m.default.createElement(v.SimpleCircle,{theme:"light",width:200,height:200,title:"",value:"".concat((100*this.getMetricsData("ingress_success_rate")).toFixed(2)),total:100,unit:"%",innerRadius:"80%",legend:["SUCCESSFUL_REQUESTS","TOTAL"],showCenter:!0,showRate:!1,areaColors:["#55BC8A","#E3E9EF"],renderCustomCenter:function(e){var a=e.value;return m.default.createElement("div",{className:k.default.simpleContent},m.default.createElement("p",null,t("SUCCESSFUL_REQUESTS")),m.default.createElement("span",null,a,"%"))}})),m.default.createElement("div",{className:k.default.right},m.default.createElement("div",{className:k.default.item},m.default.createElement("span",{className:k.default.customIcon},m.default.createElement(y.ReactComponent,null)),m.default.createElement("div",null,m.default.createElement("p",null,t("AVERAGE_LATENCY")),m.default.createElement("span",null,"".concat(this.getMetricsData("ingress_request_duration_average")," s")))),m.default.createElement("div",{className:k.default.itemSmall},m.default.createElement("span",null,t("P_FIFTY_LATENCY")),m.default.createElement("span",null,"".concat(this.getMetricsData("ingress_request_duration_50percentage")," s"))),m.default.createElement("div",{className:k.default.itemSmall},m.default.createElement("span",null,t("P_NINETY_FIVE_LATENCY")),m.default.createElement("span",null,"".concat(this.getMetricsData("ingress_request_duration_95percentage")," s"))),m.default.createElement("div",{className:k.default.itemSmall},m.default.createElement("span",null,t("P_NINETY_NINE_LATENCY")),m.default.createElement("span",null,"".concat(this.getMetricsData("ingress_request_duration_99percentage")," s"))))))}},{key:"detail",get:function(){return this.props.detailStore.gateway.data}},{key:"isWorkspaceGateway",get:function(){var e=this.props.match.params,t=e.workspace,a=e.namespace;return t&&!a}},{key:"cluster",get:function(){var e=this.props.match.params.cluster;return this.props.location.pathname.indexOf("federatedprojects")>-1||this.isWorkspaceGateway?localStorage.getItem("federated-cluster"):e}}]),r}(m.default.Component);a.default=I},function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(42),r(4),r(23),r(57),r(17);var l=n(r(30)),u=n(r(36)),o=n(r(37)),i=n(r(55)),c=n(r(56)),s=n(r(51)),f=n(r(0)),d=n(r(1)),p=n(r(3)),m=r(186),h=n(r(4077)),v=r(1854),g=n(r(4079));function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,s.default)(e);if(t){var n=(0,s.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,c.default)(this,a)}}var E=function(e){(0,i.default)(r,e);var a=y(r);function r(e){var t;(0,u.default)(this,r),(t=a.call(this,e)).handleToggle=function(){t.setState({visible:!t.state.visible},(function(){t.props.onToggle(t.state.visible)}))},t.hideSelector=function(){t.setState({visible:!1},(function(){t.props.onToggle(!1)}))},t.handleTimeChange=function(e){var a=e.duration;t.setState({visible:!1,duration:a},(function(){t.props.onChange(a)}))};var n=e.duration;return t.state={visible:!1,preDuration:"",duration:n||"10m"},t}return(0,o.default)(r,[{key:"renderButtonText",value:function(){var e=this.state.duration,a=(0,v.getTimeLabel)(e);return"".concat(t("LAST")," ").concat(a)}},{key:"renderContent",value:function(){var e=this.state.duration;return f.default.createElement("div",{className:g.default.content},f.default.createElement(h.default,{duration:e,onChange:this.handleTimeChange}))}},{key:"render",value:function(){var e=this.props,t=e.className,a=e.dark,r=e.arrowIcon;return f.default.createElement("div",{className:(0,p.default)(g.default.selector,t,(0,l.default)({},g.default.active,this.state.visible))},f.default.createElement("div",{className:(0,p.default)(g.default.mask,(0,l.default)({},g.default.active,this.state.visible)),onClick:this.hideSelector}),f.default.createElement(m.Button,{className:g.default.button,onClick:this.handleToggle},f.default.createElement(m.Icon,{type:a?"dark":"light",name:"timed-task",size:20}),f.default.createElement("p",null,this.renderButtonText()),f.default.createElement(m.Icon,{className:g.default.arrow,type:a?"dark":"light",name:r||"caret-down"})),f.default.createElement("div",{className:g.default.dropdown},this.renderContent()))}}],[{key:"getDerivedStateFromProps",value:function(e,t){if(e.duration!==t.preDuration){var a=e.duration;return{prevPropStep:a,duration:a}}return null}}]),r}(f.default.PureComponent);a.default=E,E.propTypes={duration:d.default.string,onChange:d.default.func,onToggle:d.default.func},E.defaultProps={duration:"10m",onChange:function(){},onToggle:function(){}}},function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(18),r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(18),r(42),r(4),r(23),r(57),r(17);var l=n(r(30)),u=n(r(36)),o=n(r(37)),i=n(r(55)),c=n(r(56)),s=n(r(51)),f=n(r(0)),d=n(r(1)),p=n(r(3)),m=r(1854),h=n(r(4078));function v(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,s.default)(e);if(t){var n=(0,s.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,c.default)(this,a)}}var g=["1m","5m","10m","30m","1h","3h","6h","12h"],y=function(e){(0,i.default)(r,e);var a=v(r);function r(){var e;(0,u.default)(this,r);for(var t=arguments.length,n=new Array(t),l=0;l-1||this.isWorkspaceGateway?localStorage.getItem("federated-cluster"):e}},{key:"prefix",get:function(){return"/clusters/".concat(this.cluster)}},{key:"type",get:function(){var e=this.props.match.params,t=e.namespace,a=e.workspace;return this.cluster&&a&&!t?"workspace":a&&t?"project":"cluster"}},{key:"namespace",get:function(){var e=this.props.match.params.namespace;return"cluster"===this.type?"":e}},{key:"actionModule",get:function(){var e=this.props.match.params,t=e.namespace,a=e.workspace;return t&&a&&this.cluster?"ks-project-gateway":a&&!t?"ks-workspace-gateway":"cluster-settings"}},{key:"enabledActions",get:function(){return globals.app.getActions(T(T({module:this.actionModule},this.props.match.params),{},{project:this.props.match.params.namespace,cluster:this.cluster}))}},{key:"volumesTitle",get:function(){return t("STORAGE_DEVICES")}},{key:"enableScaleReplica",get:function(){return this.enabledActions.includes("edit")&&!this.detail.isFedManaged}}]),r}(p.default.Component);w.childContextTypes={gatewayName:O.default.string,gatewayNs:O.default.string,cluster:O.default.string};var I=(0,h.inject)("detailStore")((0,h.observer)(w));a.default=I;var M=w;a.Component=M},function(e,a,r){"use strict";var n=r(20);r(12),r(11),r(6),r(86),r(18),r(16),r(98),r(9),r(13),r(10),r(4),r(316),r(23),r(24),r(17),r(188),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(45),r(11),r(6),r(86),r(18),r(28),r(42),r(16),r(34),r(15),r(98),r(9),r(13),r(10),r(4),r(316),r(22),r(23),r(57),r(24),r(17),r(188),r(7);var l=n(r(315)),u=n(r(96)),o=n(r(43)),i=n(r(30)),c=n(r(58));r(41);var s,f,d,p=n(r(44)),m=n(r(36)),h=n(r(37)),v=n(r(55)),g=n(r(56)),y=n(r(51)),E=n(r(0)),b=r(239),_=n(r(1)),O=n(r(3)),S=n(r(63)),C=n(r(26)),D=r(186),k=r(794),N=n(r(1075)),T=n(r(789)),R=n(r(4083)),w=n(r(1855));function I(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function M(e){for(var t=1;t0&&void 0!==i[0]?i[0]:{},a=t.noMetrics,r=t.silent,l=(0,c.default)(t,["noMetrics","silent"]),!(0,S.default)(n.state.params)){e.next=4;break}return n.store.podList.isLoading=!1,e.abrupt("return");case 4:return u=n.props.limit,r&&(n.store.podList.silent=!0),e.next=8,n.store.getGatewayPodsList(M(M({limit:u},n.state.params),l));case 8:n.store.podList.silent=!1,a||n.fetchMetrics();case 10:case"end":return e.stop()}}),e)}))),n.fetchMetrics=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=n.store.podList,a=t.data,r=t.isLoading;if((0,S.default)(a)||r||(0,S.default)(n.state.params))return!1;var l=n.state.params,u=l.gatewayName,o=l.namespace,i=l.workspace,c=l.cluster;n.monitorStore.fetchMetrics(M(M({step:"1m",times:30,resources:a.map((function(e){return e.name})),metrics:Object.values(A),namespace:o,workspace:o?void 0:i,cluster:c||n.cluster},e),{},{component:"ingress",job:"".concat(u,"-metrics")}))},n.getPagination=function(){var e=n.store.podList;return{page:e.page,limit:e.limit,total:e.total}},n.getPodMetrics=function(){var e=n.monitorStore.data,t={};return Object.entries(A).forEach((function(a){var r=(0,u.default)(a,2),n=r[0],l=r[1],o=(0,C.default)(e,"".concat(l,".data.result"))||[];t[n]=o[0]})),t},n.handleSearch=function(e){n.searchValue=e,n.fetchData({search:e})},n.handleRefresh=function(){var e=n.searchValue?{search:n.searchValue}:{};n.fetchData(e)},n.handlePage=function(e){n.fetchData({page:e}).then((function(){n.props.onPage(e)}))},n.handleExpand=function(e){n.setState((function(t){return{expandItem:t.expandItem===e?"":e}}))},n.getClustersOptions=function(){return n.props.clusters.map((function(e){return{label:e,value:e}}))},n.renderHeader=function(){return E.default.createElement("div",{className:w.default.header},E.default.createElement(D.InputSearch,{className:w.default.search,name:"search",placeholder:t("SEARCH"),onSearch:n.handleSearch}),E.default.createElement("div",{className:w.default.actions},E.default.createElement(D.Button,{type:"flat",icon:"refresh",onClick:n.handleRefresh})))},n.renderFooter=function(){var e=n.getPagination(),a=e.total;return E.default.createElement(D.Level,{className:w.default.footer},E.default.createElement(D.LevelLeft,null,t("TOTAL_ITEMS",{num:a})),E.default.createElement(D.LevelRight,null,E.default.createElement(D.Pagination,(0,l.default)({},e,{onChange:n.handlePage}))))},n.store=e.store,n.monitorStore=new N.default,n.state={expandItem:"",params:e.params},n}return(0,h.default)(r,[{key:"componentDidMount",value:function(){this.fetchData(),(0,k.startAutoRefresh)(this,{method:"fetchMetrics",leading:!1})}},{key:"componentWillUnmount",value:function(){(0,k.stopAutoRefresh)(this),this.disposer&&this.disposer()}},{key:"renderContent",value:function(){var e=this,a=this.props.prefix,r=this.store.podList,n=r.data,l=r.isLoading,u=r.silent,o=E.default.createElement("div",{className:w.default.body},(0,S.default)(n)?E.default.createElement("div",{className:w.default.empty},t("NO_RESOURCE_FOUND")):n.map((function(t){return E.default.createElement(R.default,{key:t.uid,prefix:a,detail:t,metrics:e.getPodMetrics(t),loading:e.monitorStore.isLoading,refreshing:e.monitorStore.isRefreshing,isExpand:e.state.expandItem===t.uid,onExpand:e.handleExpand})})));return u?o:E.default.createElement(D.Loading,{spinning:l},o)}},{key:"render",value:function(){var e=this.props,a=e.className,r=e.title,n=e.hideHeader,l=e.hideFooter,u=e.noWrapper,o=this.store.podList.data;return u?this.renderContent():E.default.createElement(T.default,{className:(0,O.default)(w.default.main,a),title:t(r),empty:t("NO_AVAILABLE_RESOURCE_VALUE",{resource:t("POD")}),isEmpty:(0,S.default)(o)},!n&&this.renderHeader(),this.renderContent(),!l&&this.renderFooter())}},{key:"isWorkspaceGateway",get:function(){var e=this.props.params,t=e.workspace,a=e.namespace;return t&&!a}},{key:"cluster",get:function(){var e,t=this.props.params.cluster;return(null===(e=location)||void 0===e?void 0:e.pathname).indexOf("federatedprojects")>-1||this.isWorkspaceGateway?localStorage.getItem("federated-cluster"):t}}]),r}(E.default.Component),f.propTypes={prefix:_.default.string,title:_.default.string,detail:_.default.object,details:_.default.object,hideHeader:_.default.bool,hideFooter:_.default.bool,onPage:_.default.func,limit:_.default.number},f.defaultProps={title:"PODS",detail:{},details:{},hideHeader:!1,hideFooter:!1,onPage:function(){}},s=d))||s;a.default=j},function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(6),r(86),r(18),r(87),r(16),r(4),r(23),r(17),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(6),r(86),r(18),r(87),r(42),r(16),r(4),r(23),r(57),r(17),r(7);var l=n(r(61)),u=n(r(30)),o=n(r(315)),i=n(r(36)),c=n(r(37)),s=n(r(55)),f=n(r(56)),d=n(r(51)),p=n(r(0)),m=r(433),h=n(r(1)),v=n(r(3)),g=n(r(63)),y=n(r(26)),E=r(52),b=r(794),_=r(186),O=n(r(839)),S=r(798),C=n(r(1220)),D=n(r(804)),k=n(r(1855));function N(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,d.default)(e);if(t){var n=(0,d.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,f.default)(this,a)}}var T=function(e){(0,s.default)(r,e);var a=N(r);function r(){var e;(0,i.default)(this,r);for(var n=arguments.length,l=new Array(n),u=0;u1&&p.default.createElement(_.Tooltip,{content:this.renderPodIPContent(this.networkIPs)},p.default.createElement("div",{className:k.default.podip},this.networkIPs.length))),p.default.createElement("p",null,t("POD_IP_ADDRESS_SCAP"))),this.renderMonitorings(),p.default.createElement("div",{className:k.default.arrow},p.default.createElement(_.Icon,{name:"chevron-down",type:l?"light":"",size:20})))}},{key:"renderExtraContent",value:function(){var e=this,a=this.props.prefix,r=this.props.detail,n=r.cluster,l=r.containers,u=void 0===l?[]:l,o=r.initContainers,i=void 0===o?[]:o,c=r.name;if((0,g.default)(u))return null;var s=globals.app.hasPermission({module:"clusters",action:"view"})&&a?this.getLink():"";return p.default.createElement("div",{className:k.default.itemExtra},p.default.createElement("div",{className:"margin-b8"},p.default.createElement("strong",null,t("CONTAINER_PL"))),p.default.createElement("div",{className:k.default.containers},u.map((function(t){return p.default.createElement(C.default,{key:t.name,prefix:s,podName:c,detail:t,cluster:n,onContainerClick:e.handleLinkClick,isCreating:e.isCreating,hideterminal:!0,hideLink:!0})})),i.map((function(t){return p.default.createElement(C.default,{key:t.name,prefix:s,podName:c,detail:t,cluster:n,onContainerClick:e.handleLinkClick,isCreating:e.isCreating,isInit:!0,hideterminal:!0,hideLink:!0})}))))}},{key:"render",value:function(){var e=this.props,t=e.className,a=e.isExpand;return p.default.createElement("div",{className:(0,v.default)(k.default.item,t,(0,u.default)({},k.default.expanded,a))},p.default.createElement("div",{className:k.default.itemMain,onClick:this.handleExpandExtra},p.default.createElement("div",{className:k.default.icon},p.default.createElement(_.Icon,{name:"pod",size:40,type:a?"light":"dark"}),this.renderStatusTip()),this.renderContent()),this.renderExtraContent())}},{key:"status",get:function(){var e=this.props.detail.podStatus,t=e.status;return{type:e.type.toLowerCase(),name:t}}},{key:"isCreating",get:function(){return"warning"===this.status.type&&"ContainerCreating"===this.status.name}},{key:"isRunning",get:function(){return"running"===this.status.type||"completed"===this.status.type}},{key:"networkIPs",get:function(){return this.props.detail.networksStatus.reduce((function(e,t){return[].concat((0,l.default)(e),(0,l.default)(t.ips))}),[])}}]),r}(p.default.PureComponent);a.default=T,T.propTypes={className:h.default.string,prefix:h.default.string,detail:h.default.object,metrics:h.default.object,loading:h.default.bool,isExpand:h.default.bool,onExpand:h.default.func},T.defaultProps={prefix:"",detail:{},isExpand:!1,onExpand:function(){}}},function(e,t,a){e.exports={deployment_codeResource:"_2sxIgN7h_UoStkDUN8ngoB"}},function(e,a,r){"use strict";r(15);var n=r(20);r(18),r(98),r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(18),r(42),r(98),r(4),r(23),r(57),r(17);var l,u=n(r(96)),o=n(r(36)),i=n(r(37)),c=n(r(55)),s=n(r(56)),f=n(r(51)),d=n(r(0)),p=n(r(789)),m=r(239),h=n(r(63)),v=n(r(26)),g=n(r(1852));function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,f.default)(e);if(t){var n=(0,f.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,s.default)(this,a)}}var E=(0,m.inject)("detailStore")(l=(0,m.observer)(l=function(e){(0,c.default)(r,e);var a=y(r);function r(){return(0,o.default)(this,r),a.apply(this,arguments)}return(0,i.default)(r,[{key:"render",value:function(){var e=this.detail.config;return d.default.createElement(p.default,{title:t("CONFIGURATION_OPTIONS")},d.default.createElement("div",{className:g.default.container},d.default.createElement("ul",null,(0,h.default)(e)?d.default.createElement("li",null,t("NO_DATA")):Object.entries(this.detail.config).map((function(e){var t=(0,u.default)(e,2),a=t[0],r=t[1];return d.default.createElement("li",{key:a},d.default.createElement("span",{className:g.default.key},a),d.default.createElement("span",null,r))})))))}},{key:"module",get:function(){return this.props.detailStore.module}},{key:"store",get:function(){return this.props.detailStore}},{key:"detail",get:function(){return(0,v.default)(this.store.gateway,"data",{})}}]),r}(d.default.Component))||l)||l;a.default=E},function(e,a,r){"use strict";r(84),r(85);var n=r(20);r(12),r(5),r(11),r(6),r(86),r(73),r(18),r(87),r(97),r(16),r(9),r(13),r(10),r(4),r(316),r(23),r(24),r(17),r(62),r(188),r(7),r(110),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(45),r(5),r(11),r(6),r(86),r(73),r(18),r(28),r(87),r(245),r(97),r(442),r(42),r(16),r(34),r(15),r(9),r(13),r(10),r(4),r(316),r(22),r(23),r(57),r(24),r(17),r(62),r(188),r(7),r(110);var l=n(r(61)),u=n(r(43)),o=n(r(30));r(41);var i,c,s,f,d,p,m,h,v,g=n(r(44)),y=n(r(96)),E=n(r(65)),b=n(r(36)),_=n(r(37)),O=n(r(88)),S=n(r(55)),C=n(r(56)),D=n(r(51)),k=n(r(49)),N=(n(r(66)),n(r(0))),T=r(239),R=n(r(833)),w=n(r(985)),I=r(14),M=r(186),P=n(r(3)),A=r(2014),j=n(r(243)),L=n(r(1127)),x=n(r(1392)),U=r(52),z=r(1397),F=n(r(1124)),G=n(r(4087));function V(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function B(e){for(var t=1;t').concat(e.hightLighted,"")}));return N.default.createElement("span",{dangerouslySetInnerHTML:{__html:o.join("")}})}},e.scrollTo=function(t){try{e.tableRef.current.scrollToRow(t)}catch(e){}},(0,E.default)(e,"onTableScrollTop",m,(0,O.default)(e)),e.initQuery=function(){e.searchInputState={query:[],start:"",end:"",durationAlias:"",nextParamsKey:""}},e.togglePolling=function(){e.state.polling?e.stopPolling():e.startPolling()},(0,E.default)(e,"changeFrequency",h,(0,O.default)(e)),(0,E.default)(e,"pollingFunc",v,(0,O.default)(e)),e.onSearchParamsChange=function(){e.stopPolling(),e.refreshQuery()},e.handleRefresh=function(){e.refreshQuery()},e.clearFilter=function(){e.initQuery(),e.refreshQuery()},e.renderEmpty=function(){return N.default.createElement("div",{className:G.default.emptyText},N.default.createElement("span",{className:G.default.emptyTipIcon},N.default.createElement(M.Icon,{name:"exclamation",size:48})),N.default.createElement("div",null,t("NO_MATCHING_RESULT_FOUND")),N.default.createElement("p",null,t("YOU_CAN_TRY_TO"),N.default.createElement("span",{className:G.default.action,onClick:e.handleRefresh,"data-test":"table-empty-refresh"},t("REFRESH_DATA")),t("OR"),N.default.createElement("span",{className:G.default.action,onClick:e.clearFilter,"data-test":"table-empty-clear-filter"},t("CLEAR_SEARCH_CONDITIONS"))))},e}return(0,_.default)(c,[{key:"componentDidMount",value:function(){this.refreshQuery()}},{key:"componentWillUnmount",value:function(){clearInterval(this.pollingInterval)}},{key:"getQueryParams",value:function(){return this.searchInputState.query.filter((function(e){return e.key})).reduce((function(e,t){var a=t.key,r=t.value,n=a,l=e[n];return e[n]=l?"".concat(l,",").concat(r):r,e}),{})}},{key:"refreshQuery",value:(n=(0,g.default)(u.default.mark((function e(){var t,a;return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=this.getQueryParams(),e.next=3,this.fetchLog(B(B({},t),{},{from:0,size:50},this.duration));case 3:a=e.sent,this.logs=a.reverse(),this.scrollTo(this.logs.length);case 6:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"fetchLog",value:(r=(0,g.default)(u.default.mark((function e(t){var a,r,n,l;return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=this.props.match.params,r=a.namespace,n=a.gatewayName,l=a.workspace,e.next=3,this.store.getGatewayLogs(B({cluster:this.cluster,namespace:r,workspace:l,gatewayName:n},t));case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e,this)}))),function(e){return r.apply(this,arguments)})},{key:"loadMoreLogs",value:(a=(0,g.default)(u.default.mark((function e(){var t,a,r;return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=this.store.logs.from+this.store.logs.size,a=this.getQueryParams(),e.next=4,this.fetchLog(B(B(B({},a),this.duration),{},{from:t,size:50}));case 4:r=e.sent,this.logs=[].concat((0,l.default)(r.reverse()),(0,l.default)(this.logs)),this.scrollTo(r.length);case 7:case"end":return e.stop()}}),e,this)}))),function(){return a.apply(this,arguments)})},{key:"stopPolling",value:function(){clearTimeout(this.pollingInterval),this.setState({polling:!1})}},{key:"startPolling",value:function(){this.setState({polling:!0}),this.pollingFunc(),this.pollingInterval&&clearTimeout(this.pollingInterval),this.pollingInterval=setInterval(this.pollingFunc,this.pollingFrequency)}},{key:"renderOperation",value:function(){var e=this.props.match.params,a=e.namespace,r=e.gatewayName,n=e.workspace,l={cluster:this.cluster,namespace:a,workspace:n,gatewayName:r},u=[5,10,20].map((function(e){return{label:t("REFRESH_INTERVAL_VALUE",{value:e}),value:1e3*e}})),o=B(B(B({},l),this.duration),this.getQueryParams()),i=(0,U.getClusterUrl)(this.store.exportLinkFactory(o));return N.default.createElement("div",{className:G.default.filter},N.default.createElement("div",{className:(0,P.default)(G.default.filterButton,G.default.pollingBtn),onClick:this.togglePolling},N.default.createElement(M.Icon,{name:this.state.polling?"stop":"start",type:"light"})),N.default.createElement(M.Select,{prefixIcon:N.default.createElement(M.Icon,{type:"light",name:"timed-task",size:20}),className:(0,P.default)(G.default.filterButton,G.default.frequencyOpts),defaultValue:5e3,options:u,onChange:this.changeFrequency}),N.default.createElement("a",{href:i,download:!0},N.default.createElement("span",{className:(0,P.default)(G.default.filterButton,G.default.exportBtn)},N.default.createElement(M.Tooltip,{content:t("EXPORT_LOGS")},N.default.createElement(M.Icon,{name:"export",type:"light"})))))}},{key:"render",value:function(){return globals.app.hasKSModule("whizard-logging")?N.default.createElement("div",null,N.default.createElement("div",{className:G.default.title},N.default.createElement("div",{className:(0,P.default)(G.default.search,(0,o.default)({},G.default.focus,this.hasValue))},N.default.createElement(M.Icon,{className:G.default.isLeft,name:"magnifier",size:20}),N.default.createElement(w.default,{className:G.default.searchInput,onChange:this.onSearchParamsChange,params:this.searchInputState,dropdownClass:G.default.dropdownClass,iconThem:"light",enableClear:!0,dropDownItems:this.dropDownContent,showStep:!1}),N.default.createElement(M.Icon,{className:(0,P.default)(G.default.clearIcon,(0,o.default)({},G.default.hideIcon,!this.hasValue)),name:"close",onClick:this.initQuery})),this.renderOperation()),N.default.createElement("div",{className:G.default.body},(0,A.isEmpty)((0,I.toJS)(this.logs))?this.renderEmpty():N.default.createElement(L.default,{onScroll:this.onTableScrollTop,cols:this.tableCols,data:(0,I.toJS)(this.logs),tableRef:this.tableRef,trCLassName:G.default.trCLassName,body:G.default.bodyClassName,header:G.default.headerClassName}))):N.default.createElement(R.default,{className:"no-shadow",icon:"cluster",title:t("LOGGING_DISABLED")})}},{key:"hasValue",get:function(){return Object.values((0,I.toJS)(this.searchInputState)).some((function(e){return(0,A.isArray)(e)?e.some((function(e){return!(0,A.isEmpty)((0,I.toJS)(e))})):!(0,A.isEmpty)(e)}))}},{key:"defaultDuration",get:function(){return{start_time:0,end_time:Date.now()}}},{key:"isWorkspaceGateway",get:function(){var e=this.props.match.params,t=e.workspace,a=e.namespace;return t&&!a}},{key:"duration",get:function(){var e=Date.now(),t=this.searchInputState,a=t.start,r=t.end;return a?{start_time:(0,A.min)([1e3*a,e]),end_time:(0,A.min)([1e3*r,e])}:this.defaultDuration}},{key:"dropDownContent",get:function(){return{log_query:{icon:"magnifier",text:t("KEYWORD")},pod_query:{icon:"pod",text:t("POD")}}}},{key:"store",get:function(){return this.props.detailStore}},{key:"cluster",get:function(){var e=this.props.match.params.cluster,t=this.props.location.pathname;return t.indexOf("/federatedprojects/")>-1||t.indexOf("/workspaces/")>-1?localStorage.getItem("federated-cluster"):e}}]),c}(N.default.Component),s=(0,k.default)(c.prototype,"searchInputState",[I.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{query:[],start:"",end:"",durationAlias:"",nextParamsKey:""}}}),f=(0,k.default)(c.prototype,"pollingFrequency",[I.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 5e3}}),d=(0,k.default)(c.prototype,"logs",[I.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),(0,k.default)(c.prototype,"hasValue",[I.computed],Object.getOwnPropertyDescriptor(c.prototype,"hasValue"),c.prototype),p=(0,k.default)(c.prototype,"tableCols",[I.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[{thead:t("TIME"),key:"time",dataIndex:"time",mustShow:!0,content:function(e){return"[".concat((0,j.default)(e.time).format("YYYY-MM-DD HH:mm:ss"),"]")}},{thead:t("POD"),key:"pod",dataIndex:"pod",mustShow:!0,content:this.renderHightLightMatchTd({resKey:"pod",searchKey:["pod_query"]})},{thead:t("MESSAGE"),key:"log",dataIndex:"log",className:G.default.logItem,content:this.renderHightLightMatchLogTd({resKey:"log",searchKey:["log_query"],handler:z.esMark}),mustShow:!0}]}}),(0,k.default)(c.prototype,"refreshQuery",[I.action],Object.getOwnPropertyDescriptor(c.prototype,"refreshQuery"),c.prototype),(0,k.default)(c.prototype,"fetchLog",[I.action],Object.getOwnPropertyDescriptor(c.prototype,"fetchLog"),c.prototype),(0,k.default)(c.prototype,"loadMoreLogs",[I.action],Object.getOwnPropertyDescriptor(c.prototype,"loadMoreLogs"),c.prototype),m=(0,k.default)(c.prototype,"onTableScrollTop",[I.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(t){var a=t.scrollTop,r=e.store.logs,n=r.from,l=r.size,u=r.total;0===a&&u>n+l&&e.loadMoreLogs()}}}),h=(0,k.default)(c.prototype,"changeFrequency",[I.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(t){e.pollingFrequency=t,e.state.polling&&(clearTimeout(e.pollingInterval),e.startPolling())}}}),v=(0,k.default)(c.prototype,"pollingFunc",[I.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(){var t=q;e.searchInputState.end=Math.ceil(Date.now()/1e3),e.searchInputState.start=e.searchInputState.end-t,e.searchInputState.durationAlias="".concat(t/60,"m"),e.refreshQuery()}}}),i=c))||i)||i;a.default=H},function(e,t,a){e.exports={title:"h3EGYxJHcXzNAZU64Ys-7",focus:"_1TYZVVQtrXwaAaa2nwD6NE",search:"_2QSFqdrB9aMZjIVh3QK0R2",clearIcon:"_3qDug15F8wtzhqs8WjeLBW",hideIcon:"_2CnN8q86DPsSM48wJnL6Nv",searchInput:"_2432rvdXjewrevIwLoYaSt",filter:"_2fb4uH-e_iaRbWSOMvDMPn",filterButton:"_7ASJ4CE_FCBt8fhgHM3Nz",exportBtn:"_2JJ6SH_-_MTCF7OPFW7kys",pollingBtn:"rOD92XzSZBE4irFyl6UkB",frequencyOpts:"_39g5yqbm9RZmh3S9viq599",searchBar:"_2PXN-WMqrT8hDBu-4PGTte",icon:"_1Mf8725MJ88eggNRQj49ku",input:"_2ApsehJ2Zoyl1l3Er5b7Ki",dropdownClass:"e7mNbUyHuqgvvXQ3KQ-ip",body:"_2zscwenqDTZYN32pr5Ds5-",logItem:"_3OcRCVG8GQmCwWPLwTW978",bodyClassName:"_2RyfnALWpJKi2fQDgJ-5qc",headerClassName:"_1ClFBNqMO40nDrGs0NH27N",trCLassName:"_1JuCS0O3IJiNnkzG1zCHzs",emptyText:"_2p2Dbxritd_IaivnVdRvZ1",emptyTipIcon:"_1dM3MOctITqHWlne46RoCc",action:"_3ihxA24eqCRlJprACXfqZc",hightLightMatch:"_3f66pKDSXrWjGp0u0360VP"}},,,,,,,,,,function(e,a,r){"use strict";var n=r(20);r(12),r(11),r(6),r(18),r(16),r(9),r(13),r(10),r(4),r(23),r(17),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(45),r(11),r(6),r(18),r(28),r(42),r(16),r(34),r(15),r(9),r(13),r(10),r(4),r(23),r(57),r(17),r(7);var l,u=n(r(30)),o=n(r(36)),i=n(r(37)),c=n(r(55)),s=n(r(56)),f=n(r(51)),d=n(r(0)),p=r(14),m=r(239),h=r(186),v=n(r(915)),g=n(r(787)),y=n(r(863)),E=n(r(438)),b=n(r(955)),_=n(r(4098)),O=n(r(4100));function S(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function C(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,f.default)(e);if(t){var n=(0,f.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,s.default)(this,a)}}var D=(0,m.observer)(l=function(e){(0,c.default)(r,e);var a=C(r);function r(e){var t;return(0,o.default)(this,r),(t=a.call(this,e)).fetchData=function(e){(e=e||{}).limit=-1,e.labelSelector=e.labelSelector?"".concat(e.labelSelector,",!cluster-role.kubesphere.io/edge"):"!cluster-role.kubesphere.io/edge",t.store.fetchList(function(e){for(var t=1;t0?t("".concat(e.isAdmin?"ADMIN_":"","UPDATE_LICENSE_DESC"),{day:e.dueDate,type:t("subscription"===e.type?"SUBSCRIPTION":"WARRANTY")}):t("".concat(e.isAdmin?"ADMIN_":"","MA_EXPIRED_LICENSE_DESC")):""},e.renderTipOperation=function(){var a=e.isInfoTip?{primary:"#326e93",secondary:"#326e93"}:{primary:"#8d663e",secondary:"#8d663e"},r=e.isUnAuthorized||e.isExpired?"ACTIVATE":"UPDATE_LICENSE";return"ACTIVATE"!==r?null:m.default.createElement("div",{onClick:function(){var t;e.trigger("license.update",{store:e.licenseStore,title:r,success:(t=(0,i.default)(u.default.mark((function t(){return u.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.getData();case 2:e.currentUrl.indexOf("notification-history")>-1&&e.props.rootStore.routing.push("/settings/base-info");case 3:case"end":return t.stop()}}),t)}))),function(){return t.apply(this,arguments)})})}},m.default.createElement("span",{style:{color:a}},t(r)),m.default.createElement(v.Icon,{name:"next",size:16,color:a}))},e}return(0,s.default)(n,[{key:"componentDidMount",value:(a=(0,i.default)(u.default.mark((function e(){var t=this;return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!globals.user){e.next=4;break}return e.next=3,this.getData();case 3:window.triggerEvent.add("licenseViolation",(function(e){t.handleGetDataDebounce(e)}));case 4:case"end":return e.stop()}}),e,this)}))),function(){return a.apply(this,arguments)})},{key:"render",value:function(){var e=-1!==this.currentUrl.indexOf("/license-info"),t=this.isExpired;return m.default.createElement("div",{className:(0,h.default)(O.default.licenseTip,(0,l.default)({},O.default.tipInfo,this.isInfoTip)),style:{display:this.visible?"block":"none"}},m.default.createElement("span",null,this.renderIcon(),this.renderTipText()),m.default.createElement("div",{className:O.default.operation},!e&&this.isAdmin&&this.renderTipOperation(),(!e||e&&!t)&&this.isInfoTip&&m.default.createElement(v.Icon,{name:"close",color:{primary:"#326e93",secondary:"#326e93"},size:16,onClick:this.handleCloseTip})))}},{key:"visible",get:function(){var e=this.props.rootStore.showLicenseTip;return this.isUnAuthorized||this.isExpired?(localStorage.removeItem("hideLicenseTip"),e):("true"===localStorage.getItem("hideLicenseTip")&&(e=!1,this.props.rootStore.hideLicenseTip()),e)}},{key:"licenseInfo",get:function(){return{}}},{key:"isAdmin",get:function(){return globals.app.isPlatformAdmin}},{key:"type",get:function(){return(0,g.default)(this.licenseInfo,"licenseType","subscription")}},{key:"isOverLimit",get:function(){return this.licenseInfo.isOverLimit||!1}},{key:"isUnAuthorized",get:function(){return this.licenseInfo.isUnAuthorized||!1}},{key:"isExpired",get:function(){return this.licenseInfo.isExpired||!1}},{key:"unExpired",get:function(){return this.licenseInfo.unExpired||!1}},{key:"isInfoTip",get:function(){return this.unExpired}},{key:"dueDate",get:function(){return this.licenseInfo.dueDate||-1}},{key:"currentUrl",get:function(){return this.props.rootStore.routing.location.pathname}}]),n}(m.default.Component))||o)||o)||o;a.default=C},function(e,t,a){e.exports={licenseTip:"_3wB25-Yoe6He1M4G1RSEzn",tipInfo:"_2mlSckPv_eZDS6o7GYbUSg",operation:"scU0LZ4kAkeyqIX9uyAab"}},function(e,a,r){"use strict";r(15);var n=r(20),l=r(157);r(16),r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(28),r(42),r(16),r(4),r(23),r(57),r(17);var u,o,i,c=n(r(30)),s=n(r(36)),f=n(r(37)),d=n(r(55)),p=n(r(56)),m=n(r(51)),h=l(r(0)),v=n(r(1)),g=r(239),y=n(r(3)),E=r(186),b=n(r(4108)),_=r(791),O=n(r(322)),S=n(r(4114));function C(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,m.default)(e);if(t){var n=(0,m.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,p.default)(this,a)}}var D=(0,g.inject)("rootStore")(u=(0,g.observer)(u=(0,_.trigger)((i=o=function(e){(0,d.default)(r,e);var a=C(r);function r(e){var t;return(0,s.default)(this,r),(t=a.call(this,e)).handleMoreClick=function(e,a){var r=t.props.rootStore.routing;switch(a){case"setting":t.trigger("user.setting",{});break;case"notification":t.trigger("notification.user.setting",{});break;case"about":t.setState({showAbout:!0});break;case"logout":t.props.rootStore.logout();break;case"support":r.push("/support")}},t.hideAboutModal=function(){t.setState({showAbout:!1})},t.store=new O.default,t.state={showAbout:!1},t}return(0,f.default)(r,[{key:"renderDropDown",value:function(){return h.default.createElement(E.Menu,{onClick:this.handleMoreClick},h.default.createElement(E.Menu.MenuItem,{key:"setting"},h.default.createElement(E.Icon,{name:"wrench"})," ",t("USER_SETTINGS")),h.default.createElement(E.Menu.MenuItem,{key:"notification"},h.default.createElement(E.Icon,{name:"loudspeaker"})," ",t("NOTIFICATION_SETTINGS")),h.default.createElement(E.Menu.MenuItem,{key:"logout"},h.default.createElement(E.Icon,{name:"logout"})," ",t("LOG_OUT")),h.default.createElement(E.Menu.MenuItem,{key:"about"},h.default.createElement(E.Icon,{name:"information"})," ",t("ABOUT")))}},{key:"renderModals",value:function(){return h.default.createElement("div",null,h.default.createElement(b.default,{visible:this.state.showAbout,onCancel:this.hideAboutModal}))}},{key:"render",value:function(){var e=this.props,a=e.className,r=e.isAppsPage;return globals.user?h.default.createElement("div",{className:(0,y.default)(S.default.logined,a)},h.default.createElement(E.Dropdown,{content:this.renderDropDown(),placement:"bottomRight"},h.default.createElement("div",{className:(0,y.default)(S.default.name,(0,c.default)({},S.default.isAppsPage,r))},h.default.createElement(E.Icon,{name:"human"}),globals.user.username,h.default.createElement(E.Icon,{name:"caret-down",type:r?"white":"dark"}))),this.renderModals()):h.default.createElement("div",{className:(0,y.default)(S.default.notLoggedIn,a)},h.default.createElement("div",{className:S.default.name},h.default.createElement(E.Icon,{name:"human",color:{primary:"#f5a623",secondary:"#8d663e"}}),h.default.createElement("a",{className:S.default.loginLabel,href:"/login?referer=".concat(location.pathname)},t("LOG_IN"))))}}]),r}(h.Component),o.propTypes={isAppsPage:v.default.bool},u=i))||u)||u)||u;a.default=D},function(e,a,r){"use strict";r(15);var n=r(157),l=r(20);r(12),r(109),r(5),r(18),r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(109),r(45),r(5),r(18),r(42),r(4),r(23),r(57),r(17);var u=l(r(315)),o=l(r(30)),i=l(r(36)),c=l(r(37)),s=l(r(55)),f=l(r(56)),d=l(r(51)),p=n(r(0)),m=l(r(1)),h=l(r(787)),v=l(r(3)),g=l(r(4109)),y=l(r(4110)),E=l(r(1792)),b=l(r(1793)),_=l(r(1794)),O=l(r(201)),S=l(r(4111)),C=r(52),D=l(r(4113));function k(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,d.default)(e);if(t){var n=(0,d.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,f.default)(this,a)}}var N=[{icon:E.default,title:"KSE_FEATURE_1"},{icon:b.default,title:"KSE_FEATURE_2"},{icon:_.default,title:"KSE_FEATURE_3"}],T=[{title:"KSC_FEATURE_BACKUP",desc:["KSC_FEATURE_BACKUP_APP_DESC","KSC_FEATURE_BACKUP_DATA_DESC","KSC_FEATURE_BACKUP_CLOUD_DESC"],img:"/assets/support-backup.svg"},{title:"KSC_FEATURE_INSPECTION",desc:["KSC_FEATURE_INSPECTION_VULN_DESC","KSC_FEATURE_INSPECTION_SECURITY_DESC","KSC_FEATURE_INSPECTION_BEST_DESC"],img:"/assets/support-cluster-inspection.svg"},{title:"KSC_FEATURE_LIGHTWEIGHT",desc:["KSC_FEATURE_LIGHTWEIGHT_START_DESC","KSC_FEATURE_LIGHTWEIGHT_KS_DESC","KSC_FEATURE_LIGHTWEIGHT_TEST_DESC"],img:"/assets/support-light-cluster.svg"}],R=function(e){(0,s.default)(r,e);var a=k(r);function r(){var e;(0,i.default)(this,r);for(var n=arguments.length,l=new Array(n),u=0;u0&&void 0!==arguments[0]?arguments[0]:{},a=e.props.current;return t.children?t.children.some((function(t){return e.checkSelect(t)})):t.tabs?t.tabs.some((function(t){return e.checkSelect(t)})):0===a.indexOf(t.name)},e.handleOpen=function(){var t=e.props;(0,t.onOpen)(t.item.name)},e}return(0,o.default)(r,[{key:"renderDisabledTip",value:function(e){return"CLUSTER_UPGRADE_REQUIRED"===e.reason?f.default.createElement(m.Tooltip,{content:t(e.reason,{version:e.requiredClusterVersion}),placement:"topRight"},f.default.createElement(m.Icon,{name:"update",className:v.default.extraIcon,color:{primary:"#ffc781",secondary:"#f5a623"}})):"UNAUTHORIZED"===e.reason?f.default.createElement(m.Tooltip,{content:f.default.createElement("div",null,f.default.createElement("p",{className:"font-bold"},t("UNAUTHORIZED_FEATURE")),f.default.createElement("p",null,t("UNAUTHORIZED_FEATURE_DESC"))),placement:"topRight"},f.default.createElement(m.Icon,{name:"lock",className:v.default.extraIcon})):null}},{key:"render",value:function(){var e,a,r=this,n=this.props,u=n.item,o=n.prefix,i=n.disabled,c=n.onClick,s=n.isOpen,d=(i||u.disabled)&&!u.showInDisable;return u.children?f.default.createElement("li",{className:(0,p.default)((a={},(0,l.default)(a,v.default.childSelect,this.checkSelect(u)),(0,l.default)(a,v.default.open,u.open||s),(0,l.default)(a,v.default.disabled,d),a))},f.default.createElement("div",{className:v.default.title,onClick:this.handleOpen},f.default.createElement(m.Icon,{name:u.icon}),f.default.createElement("span",{className:"nav-title"},t(u.title)),!d&&!u.open&&f.default.createElement(m.Icon,{name:"chevron-down",className:(0,p.default)(v.default.rightIcon,"nav_fold_icon")}),d&&this.renderDisabledTip(u)),f.default.createElement("ul",{className:(0,p.default)(v.default.innerNav,"children_nav")},u.children.map((function(e){var a,n=(i||e.disabled)&&!e.showInDisable;return f.default.createElement("li",{key:e.name,className:(0,p.default)((a={},(0,l.default)(a,v.default.select,r.checkSelect(e)),(0,l.default)(a,v.default.disabled,n),a))},f.default.createElement(h.default,{to:"".concat(o,"/").concat(e.name),disabled:n},t(e.title),n&&r.renderDisabledTip(e)))})))):f.default.createElement("li",{key:u.name,className:(0,p.default)((e={},(0,l.default)(e,v.default.select,this.checkSelect(u)),(0,l.default)(e,v.default.disabled,d),e))},f.default.createElement(h.default,{to:"".concat(o,"/").concat(u.name),onClick:c,disabled:d},f.default.createElement(m.Icon,{name:u.icon}),f.default.createElement("span",{className:"nav-title"},t(u.title)),d&&this.renderDisabledTip(u)))}}]),r}(f.default.Component);a.default=y,y.propTypes={item:d.default.object,current:d.default.string,prefix:d.default.string,onClick:d.default.func,onOpen:d.default.func,disabled:d.default.bool}},function(e,t,a){"use strict";a(15);var r=a(20);a(5),a(18),a(16),a(4),a(23),a(17),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(45),a(5),a(18),a(42),a(16),a(4),a(23),a(57),a(17);var n=r(a(36)),l=r(a(37)),u=r(a(55)),o=r(a(56)),i=r(a(51)),c=r(a(0)),s=r(a(1)),f=r(a(26)),d=a(186),p=r(a(787)),m=r(a(4119)),h=r(a(1859));function v(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,i.default)(e);if(t){var n=(0,i.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,o.default)(this,a)}}var g=function(e){(0,u.default)(a,e);var t=v(a);function a(){var e;(0,n.default)(this,a);for(var r=arguments.length,l=new Array(r),u=0;u=r.threshold-2&&r.props.onScrollBottom()},r.handleMenuClick=function(e,t){r.props.onSelect(t)},r.contentRef=s.default.createRef(),r}return(0,u.default)(a,[{key:"componentDidMount",value:function(){this.contentRef.current&&(this.$dropdownContent=this.contentRef.current.querySelector(".dropdown-content"),this.$dropdownContent.addEventListener("scroll",this.handleScroll))}},{key:"componentWillUnmount",value:function(){this.$dropdownContent&&this.$dropdownContent.removeEventListener("scroll",this.handleScroll)}},{key:"componentDidUpdate",value:function(){if(this.contentRef.current){var e=this.contentRef.current.querySelector(".dropdown-content > .menu-wrapper");e&&this.$dropdownContent&&(this.threshold=e.offsetHeight-this.$dropdownContent.offsetHeight)}}},{key:"renderList",value:function(){var e=this.props,t=e.defaultIcon,a=e.options,r=e.loading;return this.isMulti?s.default.createElement("div",{className:"menu-wrapper"},s.default.createElement(p.Menu,{width:220,onClick:this.handleMenuClick},a.map((function(e){return s.default.createElement(p.Menu.MenuItem,{key:e.value},s.default.createElement("img",{src:t,alt:""}),e.label)}))),s.default.createElement("div",{className:m.default.bottom},r&&s.default.createElement(p.Loading,{size:"small"}))):null}},{key:"render",value:function(){var e=this.props,t=e.icon,a=e.defaultIcon,r=e.value,l=e.type,u=e.options.find((function(e){return e.value===r}))||{};return s.default.createElement("div",{ref:this.contentRef},s.default.createElement(p.Dropdown,{theme:"dark",content:this.renderList()},s.default.createElement("div",{className:(0,d.default)(m.default.titleWrapper,(0,n.default)({},m.default.multi,this.isMulti))},s.default.createElement("div",{className:m.default.icon},s.default.createElement("img",{src:t||a,alt:""})),s.default.createElement("div",{className:m.default.text},s.default.createElement("p",null,l),s.default.createElement("div",{className:"h6"},u.label||r)),this.isMulti&&s.default.createElement("div",{className:m.default.arrow},s.default.createElement(p.Icon,{name:"caret-down",type:"light"})))))}},{key:"isMulti",get:function(){return this.props.options.length>1}}]),a}(s.default.Component);t.default=v,v.propTypes={icon:f.default.string,defaultIcon:f.default.string,value:f.default.string,type:f.default.string,loading:f.default.bool,options:f.default.array,onSelect:f.default.func,onScrollBottom:f.default.func},v.defaultProps={icon:"",defaultIcon:"",value:"",type:"",loading:!1,options:[],onSelect:function(){},onScrollBottom:function(){}}},function(e,t,a){e.exports={titleWrapper:"hSrp7rCyCg7SchEgVy_6y",icon:"_2GbxzJxwkGJD0qR41rMvpH",text:"t6iKjSPDFDOpWCtkS9Doa",arrow:"_3CTcTkgyEHMTpuCoayziCN",multi:"_1K5LDanfLvQQx8llb9YYT",bottom:"F7S4b1XHdXUSGAHB8uNAY"}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,a){e.exports={wrapper:"_3ZtD5eAqH6AUKiDsz0pcAL",image:"Z7KWsw8fF2407V0aEX6SL",title:"_1KAJCl-kZirxlIa0q1yvdz",icon:"nGJu81QzoLuEo79G9vRpL",desc:"_1cgFUO3Bn5CsfWNgdOnzXf",canClick:"_34eEiZ0jC_waLj3cMn-bvD",isIcon:"_1yS8-xmglVH3M6Rb93PRbY",avatarIcon:"-giQOuJDvs9ioohUF1exA",letter:"_1X9WSgZJV4No7YWrHu0-6F"}},,,function(e,t,a){e.exports={cluster:"_2-ftWaI1a83L_0QqFrKD99",empty:"_3fjV7wo2CrhJ-5dXt_w3sp",desc:"_2sUA2vSFa_k4PbErr_vSfy",descTitle:"_2Rf6kTh0pgiyXfTNdjDb3A",container:"_1fc3jibbrO6vS2Nv3ZJMan",title:"_249VJGOOlE7eJT31tEzv36"}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,a){"use strict";var r=a(20);a(12),a(11),a(31),a(6),a(84),a(86),a(18),a(16),a(27),a(190),a(9),a(13),a(10),a(316),a(85),a(7),Object.defineProperty(t,"__esModule",{value:!0}),t.processEdges=t.processData=void 0;var n=r(a(30));a(12),a(11),a(31),a(6),a(84),a(86),a(18),a(28),a(16),a(27),a(190),a(34),a(15),a(9),a(13),a(10),a(4),a(316),a(85),a(7);var l=r(a(26)),u=r(a(74)),o=r(a(63)),i=r(a(855)),c=r(a(321)),s=r(a(1891));function f(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function d(e){for(var t=1;t0&&t.setNode(a.name,{name:a.name,width:226,height:l,workloadNum:n.length,isGateway:u}),a.workloads=n,a.edges.out.forEach((function(n){var l=e.find((function(e){return e.ids.includes(n.data.target)}));l&&l.name&&(t.setEdge(a.name,l.name,{id:n.data.id,out:a.edges.out,name:a.name,targetName:l.name}),r[n.data.id]=n)}))})),s.default.layout(t);var n=[],l=[];return t.nodes().forEach((function(e){var r=t.node(e);r.workloadNum>1&&(r.y-=110*(r.workloadNum-1)),n.push(d(d({},a[e]),{},{position:r}))})),t.edges().forEach((function(e){var n=t.edge(e),u=t.node(n.name),o=t.node(n.targetName),i=r[n.id],c=n.out.filter((function(e){return e.data.target===i.data.target})),s=n.points.length;if(s>0)if(3===s&&(n.points=[n.points[0],n.points[s-1]],s=n.points.length),u.isGateway)l.push(d(d({},i),{},{position:{points:[{x:u.x+u.width+-20,y:u.y+u.height/2+36},{x:o.x,y:o.y+o.height/2+36}]}}));else{var f=a[n.name].workloads.map((function(e){return e.data.id}));c.forEach((function(e){var t=f.indexOf(e.data.source),a={points:[{x:u.x+u.width,y:u.y+220*(t+.5)+36},{x:o.x,y:o.y+o.height/2+30*(t+1)}]};l.push(d(d({},e),{},{position:a}))}))}})),{nodes:n,edges:l}}(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.nodes,a=void 0===t?[]:t,r=e.edges,n=void 0===r?[]:r,l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if((0,o.default)(a))return[];for(var u=[],c={},s=0;s0)return"tcpActive";var a=0,n=0;return t.rates.http>0?(a=Number(t.rates.http),n=t.rates.httpPercentErr>0?Number(t.rates.httpPercentErr):0):t.rates.grpc>0&&(a=Number(t.rates.grpc),n=t.rates.grpcPercentErr>0?Number(t.rates.grpcPercentErr):0),0===a?"nodata":n>20?"error":n>.1?"degrade":"active"},r.getPath=function(){var e,t=r.props.data;if(t.position.points.length<=2){var a=(0,l.default)(t.position.points,2),n=a[0],u=a[1],o=(n.x+u.x)/2,i=(u.y-n.y)/4;e="M".concat(n.x,",").concat(n.y," C").concat(o,",").concat(n.y+i," ").concat(o,",").concat(u.y-i," ").concat(u.x,",").concat(u.y)}else e=t.position.points.reduce((function(e,t){return""===e?"M".concat(t.x,",").concat(t.y):-1!==e.indexOf("C")?"".concat(e,", ").concat(t.x," ").concat(t.y):"".concat(e," C").concat(t.x," ").concat(t.y)}),"");return e},r.hoverRef=f.default.createRef(),r}return(0,o.default)(a,[{key:"componentDidMount",value:function(){this.hoverRef.current&&(this.hoverRef.current.addEventListener("mouseover",this.handleMouseover),this.hoverRef.current.addEventListener("mouseout",this.handleMouseout))}},{key:"componentWillUnmount",value:function(){this.hoverRef.current&&(this.hoverRef.current.removeEventListener("mouseover",this.handleMouseover),this.hoverRef.current.removeEventListener("mouseout",this.handleMouseout))}},{key:"render",value:function(){var e=this.props,t=e.data,a=e.selected,r=this.getPath(),l=this.getStatus(),u=(0,d.default)(h.default.path,h.default[l],(0,n.default)({},h.default.selected,a)),o=(0,d.default)(h.default.marker,h.default[l]);return f.default.createElement("g",null,f.default.createElement("defs",null,f.default.createElement("marker",{id:"triangle-".concat(l),viewBox:"0 0 10 10",refX:"5",refY:"5",markerWidth:"6",markerHeight:"6",orient:"auto-start-reverse"},f.default.createElement("path",{d:"M 0 0 L 10 5 L 0 10 z",className:o})),f.default.createElement("marker",{id:"dot-".concat(l),viewBox:"0 0 10 10",refX:"5",refY:"5",markerWidth:"5",markerHeight:"5"},f.default.createElement("circle",{cx:"5",cy:"5",r:"5",className:o}))),f.default.createElement("path",{className:u,id:t.data.id,d:r,markerStart:"url(#dot-".concat(l,")"),markerEnd:"url(#triangle-".concat(l,")")}),f.default.createElement("path",{ref:this.hoverRef,d:r,fill:"none",stroke:"transparent",strokeWidth:"30"}),["active","tcpActive"].includes(l)&&f.default.createElement("circle",{r:"6",className:o},f.default.createElement("animateMotion",{dur:"6s",repeatCount:"indefinite"},f.default.createElement("mpath",{xlinkHref:"#".concat(t.data.id)}))),f.default.createElement("text",{width:"500",className:o,transform:"translate(0 -20)"},f.default.createElement("textPath",{xlinkHref:"#".concat(t.data.id),startOffset:"50%",textAnchor:"middle"},this.traffic)))}},{key:"traffic",get:function(){var e=this.props.data,t=(0,p.default)(e,"data.traffic"),a=(0,p.default)(t,"rates.tcp");if(!(0,m.default)(a))return"".concat(a," B/s");var r=(0,p.default)(t,"rates.http",0);return"".concat(r," RPS")}}]),a}(f.default.Component);t.default=g},function(e,t,a){e.exports={path:"f-qkOuFPRte0_-Z7QO_at",error:"C5K1TNQ2EeQCuscsvuVBr",active:"q8TR7qYUjNW5At4k1uzji",tcpActive:"_3s88I6Eoh7DqzdiCvZUuG9",selected:"_3Y5xaV3Vvhnr7rlXGL7l8q",marker:"_3q-X0_f1j8nrDn4cbDKE9b"}},function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(18),r(87),r(16),r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(18),r(87),r(42),r(16),r(4),r(23),r(57),r(17);var l=n(r(30)),u=n(r(36)),o=n(r(37)),i=n(r(55)),c=n(r(56)),s=n(r(51)),f=n(r(0)),d=n(r(1)),p=n(r(26)),m=n(r(321)),h=n(r(855)),v=n(r(3)),g=n(r(4746)),y=n(r(4748));function E(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,s.default)(e);if(t){var n=(0,s.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,c.default)(this,a)}}var b=function(e){(0,i.default)(r,e);var a=E(r);function r(){var e;(0,u.default)(this,r);for(var t=arguments.length,n=new Array(t),l=0;l0,d=(0,p.default)(r,"health.workloadStatuses",[]).reduce((function(e,t){return e+(t.replicas||t.availableReplicas||0)}),0),E=(0,p.default)(r,"health.workloads",{}),b=(0,m.default)((0,p.default)(r,"edges.inner",[]),"data.target");return f.default.createElement("div",{className:"ks-app-component",onClick:s?this.handleClick:null,"data-component":r.name,style:{position:"absolute",top:r.position.y,left:r.position.x,zIndex:2}},s&&f.default.createElement("p",{className:y.default.title},r.name),f.default.createElement("div",{className:(0,v.default)((e={},(0,l.default)(e,y.default.group,s),(0,l.default)(e,y.default.selected,"app"===i&&o.name===r.name),(0,l.default)(e,y.default.error,(0,p.default)(r,"health.requests.errorRatio")>0||(0,p.default)(r,"health.service.requests.errorRatio")>0),e))},s&&f.default.createElement("p",{className:y.default.pods},f.default.createElement("img",{src:"/assets/health.svg",alt:""}),t("PODS"),": ",d),c.service&&c.service.map((function(e){return f.default.createElement("div",{key:e.data.id,"data-service":e.data.service,"data-service-id":e.data.id})})),c.app&&c.app.map((function(e){return f.default.createElement(g.default,{className:y.default.app,key:e.data.id,data:e.data,edge:b[e.data.id],health:E[e.data.workload],inGroup:s,store:n})}))))}}]),r}(f.default.Component);a.default=b,b.propTypes={data:d.default.object},b.contextTypes={selectedData:d.default.object,selectedType:d.default.string,onSelectApp:d.default.func}},function(e,a,r){"use strict";r(15);var n=r(20);r(86),r(190),r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(86),r(42),r(190),r(4),r(23),r(57),r(17);var l=n(r(30)),u=n(r(36)),o=n(r(37)),i=n(r(55)),c=n(r(56)),s=n(r(51)),f=n(r(26)),d=n(r(0)),p=n(r(1)),m=n(r(3)),h=r(186),v=n(r(4747));function g(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,s.default)(e);if(t){var n=(0,s.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,c.default)(this,a)}}var y=function(e){(0,i.default)(r,e);var a=g(r);function r(){return(0,u.default)(this,r),a.apply(this,arguments)}return(0,o.default)(r,[{key:"renderHTTPMetrics",value:function(){var e=this.props,a=e.health,r=e.edge,n=(0,f.default)(a,"requests.errorRatio"),l=(0,f.default)(r,"data.traffic.rates.http",0),u=-1===n?NaN:(100-n).toFixed(2),o=(0,f.default)(r,"data.responseTime",NaN);return d.default.createElement("div",{className:v.default.detail},d.default.createElement("p",null,d.default.createElement(h.Icon,{name:"changing-over",size:16})," ","".concat(l," RPS")),d.default.createElement("p",null,d.default.createElement(h.Icon,{name:"check",size:16})," ",isNaN(u)?t("NO_DATA_SCAP"):"".concat(u,"%")),d.default.createElement("p",null,d.default.createElement(h.Icon,{name:"timed-task",size:16})," ",isNaN(o)||"0"===o?t("NO_DATA_SCAP"):"".concat(o," ms")),d.default.createElement("p",null,d.default.createElement(h.Icon,{name:"pod",size:16})," ",(0,f.default)(a,"workloadStatus.available")||(0,f.default)(a,"workloadStatus.availableReplicas")," ","/"," ",(0,f.default)(a,"workloadStatus.replicas")||(0,f.default)(a,"workloadStatus.desiredReplicas")))}},{key:"renderTCPMetrics",value:function(){var e=this.props,a=e.data,r=e.health,n=(0,f.default)(a,"traffic[0].rates.tcpIn"),l=(0,f.default)(a,"traffic[0].rates.tcpOut");return d.default.createElement("div",{className:v.default.detail},d.default.createElement("p",null,d.default.createElement(h.Icon,{name:"next",size:16})," ",isNaN(n)?t("NO_DATA_SCAP"):"".concat(n," B/s")),d.default.createElement("p",null,d.default.createElement(h.Icon,{name:"previous",size:16})," ",isNaN(l)?t("NO_DATA_SCAP"):"".concat(l," B/s")),d.default.createElement("p",null,d.default.createElement(h.Icon,{name:"pod",size:16})," ",(0,f.default)(r,"workloadStatus.availableReplicas")," /"," ",(0,f.default)(r,"workloadStatus.desiredReplicas")))}},{key:"renderDetail",value:function(){var e=this.props.edge;return"http"===((0,f.default)(e,"data.traffic.protocol")||"http")?this.renderHTTPMetrics():this.renderTCPMetrics()}},{key:"render",value:function(){var e=this.props,a=e.data,r=e.health,n=e.className,u=e.inGroup;if(-1!==a.app.indexOf("kubesphere")||"unknown"===a.app)return d.default.createElement("div",{className:(0,m.default)(v.default.card,n),"data-workload":a.workload,"data-workload-id":a.id,"data-group":u},d.default.createElement("div",{className:v.default.type},t("TRAFFIC_ENTRY")),d.default.createElement("div",{className:v.default.wrapper},d.default.createElement("div",{className:v.default.gatewayName},d.default.createElement(h.Icon,{name:"project",size:16}),a.targetNamespace)));var o=(0,f.default)(r,"requests.errorRatio");return d.default.createElement("div",{className:(0,m.default)(v.default.card,n,(0,l.default)({},v.default.error,o>0)),"data-workload":a.workload,"data-workload-id":a.id,"data-group":u},d.default.createElement("div",{className:v.default.type},a.hasCB&&d.default.createElement(h.Icon,{name:"thunder",type:"light"}),t("DEPLOYMENT")),d.default.createElement("div",{className:v.default.wrapper},this.renderDetail(),d.default.createElement("div",{className:v.default.workload},d.default.createElement("span",null,t("DEPLOYMENT")),d.default.createElement("span",null,a.workload))))}}]),r}(d.default.PureComponent);a.default=y,y.propTypes={data:p.default.object,health:p.default.object,edge:p.default.object},y.defaultProps={data:{},health:{},edge:{}}},function(e,t,a){e.exports={card:"_3UtyX1TwsMA4J5_I9azhk4",error:"_1f5z3cAVlVjSxozltEiLWa",type:"_3ig_hBH8qoAHkvUzs_7XPE",wrapper:"_2-NCjQfg1O19iTRk90LKv",detail:"_3Rb35sVDvzSTfvK_EvU8E6",gatewayName:"-s8vbKJS6TAxA3e75lQyx",workload:"_3hKVcpsaMemXWCdKAFDatc"}},function(e,t,a){e.exports={title:"vt11zKMrFCOLash0CtDuq",app:"_2VIFmapZqEet3i4h8IcfoT",group:"GBv7IxeMCUzEwP37i9ruG",selected:"_3hAJJY6cz3ePuX_85HtNfJ",error:"_3cHhj9ZjDA2V1eTNhECHpo",pods:"_2g9MF0hWsSUsXH7jreOBwD"}},function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(31),r(16),r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(31),r(42),r(16),r(4),r(23),r(57),r(17);var l=n(r(30)),u=n(r(36)),o=n(r(37)),i=n(r(55)),c=n(r(56)),s=n(r(51)),f=n(r(26)),d=n(r(0)),p=n(r(1)),m=n(r(3)),h=r(186),v=n(r(4750)),g=n(r(4755)),y=n(r(4759)),E=n(r(4761));function b(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,s.default)(e);if(t){var n=(0,s.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,c.default)(this,a)}}var _=h.Collapse.CollapseItem,O=function(e){(0,i.default)(r,e);var a=b(r);function r(){var e;(0,u.default)(this,r);for(var t=arguments.length,n=new Array(t),l=0;l0?100*(t-a)/t:NaN,n=(0,v.getMetricData)((0,f.default)(e,"request_duration_millis[0].datapoints",[]),NaN);return[{title:"TRAFFIC",data:t.toFixed(2),unit:"RPS",icon:"changing-over"},{title:"SUCCESS_RATE",data:r.toFixed(2),icon:"check",unit:"%"},{title:"DURATION",data:n.toFixed(2),icon:"timed-task",unit:"ms"}]}}]),r}(d.default.Component);a.default=_,_.propTypes={detail:p.default.object,store:p.default.object}},function(e,a,r){"use strict";r(15);var n=r(20);r(18),r(190),r(4),r(23),r(17),r(110),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(18),r(42),r(190),r(4),r(22),r(23),r(57),r(17),r(110);var l=n(r(315)),u=n(r(43));r(41);var o=n(r(44)),i=n(r(36)),c=n(r(37)),s=n(r(55)),f=n(r(56)),d=n(r(51)),p=n(r(26)),m=n(r(0)),h=n(r(1)),v=n(r(837)),g=r(794),y=r(474),E=r(798),b=n(r(1913)),_=n(r(4753)),O=n(r(1450));function S(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,d.default)(e);if(t){var n=(0,d.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,f.default)(this,a)}}var C=function(e){(0,s.default)(n,e);var a,r=S(n);function n(e){var t;return(0,i.default)(this,n),(t=r.call(this,e)).handleWorkloadChange=function(e){t.setState({workload:e},(function(){return t.getData()}))},t.state={workload:(0,p.default)(e.detail,"workloads[0].data.workload"),metrics:{},outMetrics:{}},t.getData(),t}return(0,c.default)(n,[{key:"componentDidUpdate",value:function(e){var t=this;(0,v.default)(e.detail,this.props.detail)||this.setState({workload:(0,p.default)(this.props.detail,"workloads[0].data.workload")},(function(){t.getData()}))}},{key:"componentDidMount",value:function(){var e=this;this.interval=setInterval((function(){e.getData()}),1e4)}},{key:"componentWillUnmount",value:function(){this.interval&&clearInterval(this.interval)}},{key:"getData",value:(a=(0,o.default)(u.default.mark((function e(){var t,a,r=this;return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=this.state.workload,a=this.props.store,t&&(this.store.fetchWorkloadMetrics({name:t,namespace:a.detail.namespace,cluster:a.detail.cluster},{duration:1800}).then((function(e){r.setState({metrics:e})})),this.store.fetchWorkloadMetrics({name:t,namespace:a.detail.namespace,cluster:a.detail.cluster},{duration:1800,direction:"outbound",reporter:"destination"}).then((function(e){r.setState({outMetrics:e})})));case 3:case"end":return e.stop()}}),e,this)}))),function(){return a.apply(this,arguments)})},{key:"renderWorkloadSelect",value:function(){return m.default.createElement(_.default,{className:O.default.workloads,value:this.state.workload,options:this.workloads,onChange:this.handleWorkloadChange})}},{key:"render",value:function(){return"tcp"===this.props.protocol?m.default.createElement(m.default.Fragment,null,m.default.createElement("div",{className:O.default.title},t("TCP_INBOUND_TRAFFIC")," ",this.renderWorkloadSelect()),m.default.createElement(E.SimpleArea,(0,l.default)({},this.tcpInMetrics,{height:150})),m.default.createElement("div",{className:O.default.title},t("TCP_OUTBOUND_TRAFFIC")," ",this.renderWorkloadSelect()),m.default.createElement(E.SimpleArea,(0,l.default)({},this.tcpOutMetrics,{height:150}))):m.default.createElement(m.default.Fragment,null,m.default.createElement("div",{className:O.default.title},t("HTTP_INBOUND_TRAFFIC")," ",this.renderWorkloadSelect()),m.default.createElement(b.default,{metrics:this.trafficInMetrics}),m.default.createElement("div",{className:"margin-b8"}),m.default.createElement(E.SimpleArea,(0,l.default)({},this.requestInMetrics,{height:150})),m.default.createElement("div",{className:O.default.title},t("HTTP_OUTBOUND_TRAFFIC")," ",this.renderWorkloadSelect()),m.default.createElement(b.default,{metrics:this.trafficOutMetrics}),m.default.createElement("div",{className:"margin-b8"}),m.default.createElement(E.SimpleArea,(0,l.default)({},this.requestOutMetrics,{height:150})))}},{key:"store",get:function(){return this.props.store}},{key:"workloads",get:function(){return(0,p.default)(this.props.detail,"workloads",[]).map((function(e){return{label:(0,p.default)(e,"data.workload",""),value:(0,p.default)(e,"data.workload","")}}))}},{key:"requestInMetrics",get:function(){if(!this.props.detail)return[];var e=this.state.metrics,t=(0,p.default)(e,"request_count[0].datapoints",[]),a=(0,p.default)(e,"request_error_count[0].datapoints",[]),r=t.map((function(e,t){return(0,y.getSuccessCount)(e,a[t])}));return(0,g.getAreaChartOps)({title:"TRAFFIC",legend:["SUCCESSFUL","ALL"],areaColors:["#329dce","#d8dee5"],data:[{values:r},{values:t}],unit:"RPS"})}},{key:"requestOutMetrics",get:function(){if(!this.props.detail)return[];var e=this.state.outMetrics,t=(0,p.default)(e,"request_count[0].datapoints",[]),a=(0,p.default)(e,"request_error_count[0].datapoints",[]),r=t.map((function(e,t){return(0,y.getSuccessCount)(e,a[t])}));return(0,g.getAreaChartOps)({title:"TRAFFIC",legend:["SUCCESSFUL","ALL"],areaColors:["#329dce","#d8dee5"],data:[{values:r},{values:t}],unit:"RPS"})}},{key:"tcpInMetrics",get:function(){if(!this.props.detail)return[];var e=this.state.metrics,t=(0,p.default)(e,"tcp_received[0].datapoints",[]),a=(0,p.default)(e,"tcp_sent[0].datapoints",[]);return 0===t.length&&0===a.length?{}:(0,g.getAreaChartOps)({title:"BANDWIDTH",legend:["SENT","RECEIVED"],data:[{values:a},{values:t}],unit:"B/s"})}},{key:"tcpOutMetrics",get:function(){if(!this.props.detail)return{};var e=this.state.outMetrics,t=(0,p.default)(e,"metrics.tcp_received.matrix[0].values",[]),a=(0,p.default)(e,"tcp_sent[0].datapoints",[]);return 0===t.length&&0===a.length?{}:(0,g.getAreaChartOps)({title:"BANDWIDTH",legend:["SENT","RECEIVED"],data:[{values:a},{values:t}],unit:"B/s"})}},{key:"trafficInMetrics",get:function(){if(!this.props.detail)return[];var e=this.state.metrics,t=(0,y.getMetricData)((0,p.default)(e,"request_count[0].datapoints",[]),NaN),a=(0,y.getMetricData)((0,p.default)(e,"request_error_count[0].datapoints",[]),0),r=t>0?100*(t-a)/t:NaN,n=(0,y.getMetricData)((0,p.default)(e,"request_duration_millis[0].datapoints",[]),NaN);return[{title:"TRAFFIC",data:t.toFixed(2),unit:"RPS",icon:"changing-over"},{title:"SUCCESS_RATE",desc:"SUCCESS_RATE_SCAP",data:r.toFixed(2),icon:"check",unit:"%"},{title:"DURATION",data:n.toFixed(2),icon:"timed-task",unit:"ms"}]}},{key:"trafficOutMetrics",get:function(){if(!this.props.detail)return[];var e=this.state.outMetrics,t=(0,y.getMetricData)((0,p.default)(e,"request_count[0].datapoints",[]),NaN),a=(0,y.getMetricData)((0,p.default)(e,"request_error_count[0].datapoints",[]),0),r=t>0?100*(t-a)/t:NaN,n=(0,y.getMetricData)((0,p.default)(e,"request_duration_millis[0].datapoints",[]),NaN);return[{title:"TRAFFIC",data:t.toFixed(2),unit:"RPS",icon:"changing-over"},{title:"SUCCESS_RATE",desc:"SUCCESS_RATE_SCAP",data:r.toFixed(2),icon:"check",unit:"%"},{title:"DURATION",data:n.toFixed(2),icon:"timed-task",unit:"ms"}]}}]),n}(m.default.Component);a.default=C,C.propTypes={detail:h.default.object,store:h.default.object}},function(e,t,a){"use strict";a(15);var r=a(157),n=a(20);a(5),a(18),a(4),a(23),a(17),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(45),a(5),a(18),a(42),a(4),a(23),a(57),a(17);var l=n(a(36)),u=n(a(37)),o=n(a(55)),i=n(a(56)),c=n(a(51)),s=r(a(0)),f=n(a(3)),d=a(186),p=n(a(4754));function m(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,c.default)(e);if(t){var n=(0,c.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,i.default)(this,a)}}var h=function(e){(0,o.default)(a,e);var t=m(a);function a(){var e;(0,l.default)(this,a);for(var r=arguments.length,n=new Array(r),u=0;u1?r[l[0]]=l[1]:t=!1}return{result:r,status:t}}(a),n=r.result;r.status&&t.triggerChange((0,u.default)({},e,n))}else t.triggerChange((0,u.default)({},e,a))}))};var n=t.getOptions(),i=Object.keys(e.value)[0]||n[0].value,c=e.value[i];return"httpCookie"===i&&c&&(c=Object.entries(c).map((function(e){var t=(0,l.default)(e,2),a=t[0],r=t[1];return"".concat(a,"=").concat(r)})).join("; ")),t.state={type:i,value:c,propsValue:e.value},t}return(0,i.default)(r,[{key:"getOptions",value:function(){var e=this.props.protocol,a=[{label:t("HASH_BASED_ON_SOURCE_IP_ADDRESS"),value:"useSourceIp"},{label:t("HASH_BASED_ON_RINGHASH"),value:"ringHash"},{label:t("HASH_BASED_ON_MAGLEV"),value:"maglev"}];if("http"===e)return[{label:t("HASH_BASED_ON_HTTP_HEADER"),value:"httpHeaderName"},{label:t("HASH_BASED_ON_HTTP_COOKIE"),value:"httpCookie"},{label:t("HASH_BASED_ON_HTTP_QUERY_PARAMETE_NAME"),value:"httpQueryParameterName"}].concat(a)}},{key:"render",value:function(){var e=this.state,a=e.type,r=e.value;return p.default.createElement("div",null,p.default.createElement(h.Select,{value:a,options:this.getOptions(),onChange:this.handleTypeChange}),"httpHeaderName"===a&&p.default.createElement(p.default.Fragment,null,p.default.createElement("div",{className:"margin-t12"},t("HTTP_HEADER")),p.default.createElement(h.Input,{value:r,onChange:this.handleValueChange})),"httpCookie"===a&&p.default.createElement(p.default.Fragment,null,p.default.createElement("div",{className:"margin-t12"},t("HTTP_COOKIE")),p.default.createElement(h.Input,{value:r,onChange:this.handleValueChange,placeholder:"key1=value1; key2=value2"})))}}],[{key:"getDerivedStateFromProps",value:function(e,t){if(e.value!==t.propsValue){var a=Object.keys(e.value)[0],r=e.value[a];return"httpCookie"===a&&r&&(r=Object.entries(r).map((function(e){var t=(0,l.default)(e,2),a=t[0],r=t[1];return"".concat(a,"=").concat(r)})).join("; ")),{type:a,value:r,propsValue:e.value}}return null}}]),r}(p.default.Component);a.default=g,g.propTypes={value:m.default.object,onChange:m.default.func},g.defaultProps={value:{},onChange:function(){}}},function(e,t,a){e.exports={alert:"_1vmq3lFL4s_LHc4G92GrAd",title:"UJTgRS_diNzcvnFtP8moj",tip:"IYAZYjWhc7hDQqpGq-eJy"}},function(e,a,r){"use strict";var n=r(20);r(12),r(5),r(11),r(6),r(29),r(73),r(18),r(16),r(9),r(13),r(10),r(4),r(22),r(23),r(24),r(17),r(38),r(62),r(7),r(32),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(45),r(5),r(11),r(6),r(29),r(73),r(18),r(28),r(42),r(16),r(34),r(15),r(9),r(13),r(10),r(4),r(22),r(23),r(57),r(24),r(17),r(38),r(62),r(7),r(32);var l=n(r(43)),u=n(r(30));r(41);var o,i=n(r(44)),c=n(r(36)),s=n(r(37)),f=n(r(55)),d=n(r(56)),p=n(r(51)),m=n(r(0)),h=r(47),v=r(433),g=n(r(26)),y=r(14),E=r(186),b=n(r(837)),_=r(52),O=n(r(452)),S=n(r(318)),C=n(r(4760)),D=n(r(1914));function k(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function N(e){for(var t=1;t0&&f.default.createElement("div",{className:g.default.errorSpans},1===S?t("NUM_ERROR_SI",{num:S}):t("NUM_ERROR_PL",{num:S}))),f.default.createElement("ul",{className:g.default.services},(0,s.default)(u,"name").map((function(e){return f.default.createElement("li",{key:e.name},f.default.createElement("span",{className:g.default.tag,style:{backgroundColor:d[e.name]}}),"".concat(e.name," (").concat(e.numberOfSpans,")"))}))),f.default.createElement("div",{className:g.default.startTime},f.default.createElement("p",null,(0,h.formatRelativeDate)(o/1e3),"  |  ",f.default.createElement("strong",null,b)),f.default.createElement("p",null,_))))}}]),r}(f.default.Component);a.default=b,b.propTypes={className:d.default.string,onClick:d.default.func,detail:d.default.object,durationPercent:d.default.number},b.defaultProps={onClick:function(){},durationPercent:0,detail:{}}},function(e,t,a){"use strict";a(15);var r=a(20);a(5),a(16),a(190),a(4),a(23),a(17),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(a(30)),l=r(a(36)),u=r(a(37)),o=r(a(55)),i=r(a(56)),c=r(a(51));a(45),a(5),a(42),a(16),a(190),a(4),a(23),a(57),a(17);var s=r(a(0)),f=r(a(3)),d=a(186),p=a(1021),m=r(a(4769));function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,c.default)(e);if(t){var n=(0,c.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,i.default)(this,a)}}function v(e){return"".concat((100*e).toFixed(1),"%")}var g=function(e){(0,o.default)(a,e);var t=h(a);function a(){var e;(0,l.default)(this,a);for(var r=arguments.length,n=new Array(r),u=0;u1-c.end?"Left":"Right",s.default.createElement("li",{className:(0,f.default)(m.default.wrapper,(0,n.default)({},m.default.selected,u)),onClick:this.handleClick},s.default.createElement(d.Columns,{className:"is-gapless"},s.default.createElement(d.Column,{className:"is-3"},s.default.createElement("div",{className:m.default.nameWrapper},s.default.createElement("span",{className:m.default.padder,style:{paddingLeft:12*(a.depth+1)}}),s.default.createElement("a",{className:m.default.name,style:{borderColor:r}},s.default.createElement("span",{className:m.default.svc},o&&s.default.createElement(d.Icon,{name:"error",color:{primary:"#fff",secondary:"#ea4641"}}),a.process.serviceName," "),s.default.createElement("span",{className:m.default.endpoint},a.operationName)))),s.default.createElement(d.Column,{className:"margin-l12 margin-r12"},s.default.createElement("div",{className:m.default.barWrapper},s.default.createElement("div",{className:m.default.bar,style:{backgroundColor:r,left:v(c.start),width:v(c.end-c.start)}},s.default.createElement("div",{className:(0,f.default)(m.default.barLabel,m.default["barLabel".concat(e)])},i))))))}}]),a}(s.default.Component);t.default=g},function(e,t,a){e.exports={wrapper:"_3FpC5ye7GyQiA_9XNgx040",selected:"_11AetUGUuNRQbhOiVaaPrQ",nameWrapper:"cWTG60H4pfEzvUaUIBzkJ",name:"vjWzJJl5QXyvJrZh0yxG1",svc:"_1-OgJnOWAnoA9-4y_V7v6",endpoint:"_6EPxZpgSu0q2JNsNKM8dH",padder:"XpivfNFuNAu6Z00f5sn1b",barWrapper:"_2jIAbOYlOMtqtmQQ44uZ1a",bar:"_1kkSL2CR5ItZrLhBYy8cx4",barLabel:"_2jh31S8ET1p5RAOzk3mU13",barLabelLeft:"_32_b1BUKqADygs-iprfczz",barLabelRight:"_3V0eVtgfe3fOMxrkhggaoC"}},function(e,a,r){"use strict";r(15);var n=r(20);r(18),r(16),r(4),r(23),r(24),r(17),r(136),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var l=n(r(36)),u=n(r(37)),o=n(r(55)),i=n(r(56)),c=n(r(51));r(45),r(18),r(191),r(42),r(16),r(159),r(4),r(23),r(57),r(17);var s=n(r(63)),f=n(r(0)),d=r(186),p=n(r(1045)),m=r(1021),h=n(r(4771));function v(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,c.default)(e);if(t){var n=(0,c.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,i.default)(this,a)}}var g=function(e,t){switch(e){case"bool":return String(t);case"string":case"number":return t;default:return JSON.stringify(t)}},y=function(e){var t=e.data;return f.default.createElement("ul",{className:h.default.properties},t.map((function(e){return f.default.createElement("li",{key:e.key},f.default.createElement("span",null,e.key,": "),f.default.createElement("span",null,g(e.type,e.value)))})))},E=function(e){var t=e.data,a=e.startTime;return f.default.createElement("div",null,t.map((function(e){var t=(0,m.formatDuration)(e.timestamp-a);return f.default.createElement("div",{key:e.timestamp,classNames:h.default.log},f.default.createElement("span",null,t),e.fields.map((function(e){return f.default.createElement("span",{className:"margin-l12",key:e.key},f.default.createElement("span",null,e.key,"= "),f.default.createElement("span",null,f.default.createElement("strong",null," ",g(e.type,e.value))))})))})))},b=function(e){(0,o.default)(r,e);var a=v(r);function r(e){var t;return(0,l.default)(this,r),(t=a.call(this,e)).handleTypeChange=function(e){t.setState({type:e})},t.renderContentBody=function(){var e=t.props.span;switch(t.state.type){case"tags":return f.default.createElement(y,{data:e.tags});case"process":return f.default.createElement(y,{data:e.process.tags});case"logs":return f.default.createElement(E,{data:e.logs,startTime:e.startTime-e.relativeStartTime})}return null},t.state={type:"tags"},t}return(0,u.default)(r,[{key:"componentDidUpdate",value:function(e){this.props.span!==e.span&&this.setState({type:"tags"})}},{key:"render",value:function(){var e=this.props,a=e.span,r=e.onClose,n=this.state.type,l=(0,m.formatDuration)(a.relativeStartTime),u=(0,m.formatDuration)(a.duration),o=a.process.serviceName.split(".")[0];return f.default.createElement("div",{className:h.default.wrapper},f.default.createElement("div",{className:h.default.header},f.default.createElement(d.Icon,{name:"target",size:40}),f.default.createElement("div",{className:h.default.text},f.default.createElement("div",{className:h.default.name},a.process.serviceName,f.default.createElement(p.default,{name:t("SERVICE"),value:o}),f.default.createElement(p.default,{name:t("START_TIME"),value:l}),f.default.createElement(p.default,{name:t("DURATION"),value:u})),f.default.createElement("p",null,a.operationName)),f.default.createElement("div",{className:h.default.close,onClick:r},f.default.createElement(d.Icon,{name:"minimize",size:20}))),f.default.createElement("div",{className:h.default.content},f.default.createElement("div",{className:h.default.contentHeader},f.default.createElement(d.RadioGroup,{mode:"button",buttonWidth:155,value:n,onChange:this.handleTypeChange,size:"small"},f.default.createElement(d.RadioButton,{value:"tags"},t("TAG")),f.default.createElement(d.RadioButton,{value:"process"},t("PROCESS")),!(0,s.default)(a.logs)&&f.default.createElement(d.RadioButton,{value:"logs"},t("LOG")))),f.default.createElement("div",{className:h.default.contentBody},this.renderContentBody())))}}]),r}(f.default.Component);a.default=b},function(e,t,a){e.exports={wrapper:"_2SrTH5oLaYBNtgxSsaIe1_",header:"_14VaoFxYI4xrb8vE4XX7q_",text:"_1iF8T6gN1lf2KdP5iGWCtN",name:"afCuDDLbVrc6EwA9B7J42",content:"iQqWGMwUNDUNhZckjqUKb",contentHeader:"I7j76faUqwX3zA4eEVJQG",contentBody:"_3soUTBQ4emfUy3qasSxMm1",properties:"_33lp7a1-5ZP0KxxrDJPaa-",close:"PLv31nTie7tGWOvDkQJv1",log:"Wzdc9MCTDUaK_p6l27wct"}},function(e,t,a){"use strict";a(15);var r=a(20);a(4),a(23),a(17),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(45),a(42),a(4),a(23),a(57),a(17);var n=r(a(36)),l=r(a(37)),u=r(a(55)),o=r(a(56)),i=r(a(51)),c=r(a(0)),s=r(a(63)),f=r(a(4773)),d=r(a(4774)),p=r(a(1918));function m(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,i.default)(e);if(t){var n=(0,i.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,o.default)(this,a)}}var h=function(e){(0,u.default)(a,e);var t=m(a);function a(){return(0,n.default)(this,a),t.apply(this,arguments)}return(0,l.default)(a,[{key:"render",value:function(){var e=this.props,t=e.data,a=e.viewRange,r=e.onRangeChange;return(0,s.default)(t)?null:c.default.createElement("div",{className:p.default.graph},c.default.createElement(f.default,{data:t}),c.default.createElement(d.default,{data:t,viewRange:a,onRangeChange:r}))}}]),a}(c.default.Component);t.default=h},function(e,t,a){"use strict";a(15);var r=a(20);a(18),a(4),a(23),a(17),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(45),a(18),a(42),a(4),a(23),a(57),a(17);var n=r(a(36)),l=r(a(37)),u=r(a(55)),o=r(a(56)),i=r(a(51)),c=r(a(0)),s=a(1021);function f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,i.default)(e);if(t){var n=(0,i.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,o.default)(this,a)}}var d=function(e){(0,u.default)(a,e);var t=f(a);function a(e){var r;return(0,n.default)(this,a),(r=t.call(this,e)).getColor=function(e){return r.props.data.serviceColorMap[e]},r.canvas=c.default.createRef(),r}return(0,l.default)(a,[{key:"componentDidMount",value:function(){this.drawCanvas()}},{key:"drawCanvas",value:function(){if(this.canvas&&this.canvas.current){var e=this.props.data,t=e.spans.map((function(e){return{valueOffset:e.relativeStartTime,valueWidth:e.duration,serviceName:e.process.serviceName}}));(0,s.renderIntoCanvas)(this.canvas.current,t,e.duration,this.getColor)}}},{key:"render",value:function(){return c.default.createElement("canvas",{ref:this.canvas})}}]),a}(c.default.Component);t.default=d},function(e,a,r){"use strict";r(15);var n=r(20);r(18),r(190),r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(18),r(28),r(42),r(190),r(4),r(23),r(57),r(17);var l=n(r(36)),u=n(r(37)),o=n(r(55)),i=n(r(56)),c=n(r(51)),s=n(r(0)),f=r(1021),d=n(r(1918));function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,c.default)(e);if(t){var n=(0,c.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,i.default)(this,a)}}var m=function(e){(0,o.default)(r,e);var a=p(r);function r(e){var t;return(0,l.default)(this,r),(t=a.call(this,e)).handleMouseDown=function(e){t.originX=e.x,t.hideCursorGuide();var a=t.svgBound,r=a.left,n=a.width,l=Math.max(e.x-r,0)/n;t.setState({viewStart:l,viewEnd:l})},t.handleMouseUp=function(){t.originX=-1;var e=t.state,a=e.viewStart,r=e.viewEnd;Math.abs(a-r)>.01&&t.props.onRangeChange({viewStart:a,viewEnd:r})},t.handleMouseLeave=function(){t.hideCursorGuide()},t.handleMouseMove=function(e){if(t.originX>-1){var a=t.svgBound,r=a.left,n=a.width,l=Math.max(e.x-r,0)/n;l>t.state.viewStart?t.setState({viewEnd:l}):t.setState({viewStart:l})}else t.showCursorGuide(e)},t.handleClear=function(){t.props.onRangeChange({viewStart:0,viewEnd:1})},t.showCursorGuide=function(e){if(t.cursorGuide)for(var a=t.svgBound,r=a.left,n=a.width,l=Math.max(e.x-r,0)/n,u="".concat(100*l,"%"),o=0;o0&&r<1,l="".concat(100*a,"%"),u="".concat(100*r,"%"),o=this.getCoords();return s.default.createElement("div",{className:d.default.range},s.default.createElement("svg",{height:"100%",width:"100%",ref:this.svg},s.default.createElement("g",{className:d.default.coord},o.map((function(e,t){return s.default.createElement("g",{key:e.value,className:d.default.coordLine},s.default.createElement("line",{y1:"0%",y2:"100%",x1:e.percent,x2:e.percent}),s.default.createElement("text",{x:e.percent,y:12,transform:t===f.COORD_COUNT?"translate(-2,0)":"translate(2,0)",textAnchor:t===f.COORD_COUNT?"end":"start"},(0,f.formatDuration)(e.value)))}))),s.default.createElement("g",{className:d.default.cursorGuide,name:"cursor-guide"},s.default.createElement("line",{y1:0,y2:58,strokeWidth:"1",stroke:"#212b36",strokeOpacity:"0",strokeDasharray:"2,2"}),s.default.createElement("line",{y1:19,y2:41,stroke:"#242e42",strokeWidth:"4",strokeOpacity:"0",strokeLinecap:"round"}),s.default.createElement("line",{y1:0,y2:58,strokeWidth:"20",stroke:"transparent"})),n&&s.default.createElement("g",{className:d.default.scrubber},s.default.createElement("line",{className:d.default.scrubberLine,y1:"0%",y2:"100%",x1:l,x2:l}),s.default.createElement("line",{className:d.default.scrubberLine,y1:"0%",y2:"100%",x1:u,x2:u}))),n&&s.default.createElement(s.default.Fragment,null,s.default.createElement("div",{className:d.default.hoverBlock,style:{left:0,width:l}}),s.default.createElement("div",{className:d.default.hoverBlock,style:{left:u,width:"".concat(100*(1-r),"%")}}),s.default.createElement("div",{className:d.default.clearBlock,onClick:this.handleClear},t("CLEAR"))))}}]),r}(s.default.Component);a.default=m},function(e,t,a){e.exports={body:"_1pPFSIIbH7oLnLwkgHOLB5",header:"_2DMYdLCQ-OBk0rFii_9W5O",title:"_1Erbw_1JjBawD0kM-G52ln",name:"_3ugl6RaS7fK6PUFj7hPqwZ",close:"_2i5KJmq9o9HmC3fp0B5rPv",content:"_1lhG8ZLZp0syy6MTsAqY-_",wrapper:"_3n2YybElrtxWe2nOf7ZQUa",timelineTitle:"_3kkKn_rpepfTAFlapQ4YVK",leftPane:"pfziZWcqAxnmD-tb1Ip10",rightPane:"_36cdSAMcGZ9FJ-_068PDV_",timelineSelect:"_2mJV8zFMq6n5D4t-maCCmh",listPane:"GgsvlcpZCQVcsOdH3tQ6J",detailPane:"_4xyXvcotLTz6jMyjqWGbV",coords:"_20avL2qiM0J57r-UIzor8v"}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,a){"use strict";a(15);var r=a(20);a(11),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(11),a(28),a(4);var n=a(317),l=r(a(5250)),u=r(a(5252)),o=r(a(5259)),i="/clusters/:cluster/ippools/:name";t.default=function(e){var t=[{path:"".concat(i,"/workspaces"),title:"WORKSPACE_PL",component:l.default,exact:!0},{path:"".concat(i,"/namespaces"),title:"NAMESPACE_PL",component:u.default,exact:!0},{path:"".concat(i,"/pods"),title:"POD_PL",component:o.default,exact:!0}];return e?(t=t.filter((function(e){return"WORKSPACE_PL"!==e.title}))).push((0,n.getIndexRoute)({path:i,to:"".concat(i,"/namespaces"),exact:!0})):(t=t.filter((function(e){return"NAMESPACE_PL"!==e.title}))).push((0,n.getIndexRoute)({path:i,to:"".concat(i,"/workspaces"),exact:!0})),t}},function(e,a,r){"use strict";var n=r(20);r(12),r(109),r(5),r(11),r(6),r(73),r(18),r(87),r(16),r(9),r(13),r(10),r(4),r(23),r(17),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(109),r(45),r(5),r(11),r(6),r(73),r(18),r(28),r(87),r(42),r(16),r(34),r(15),r(9),r(13),r(10),r(4),r(23),r(57),r(17),r(7);var l,u,o=n(r(30)),i=n(r(36)),c=n(r(37)),s=n(r(55)),f=n(r(56)),d=n(r(51)),p=n(r(49)),m=n(r(789)),h=n(r(790)),v=n(r(26)),g=n(r(63)),y=r(14),E=r(239),b=n(r(0)),_=n(r(445)),O=r(52),S=n(r(5251));function C(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function D(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},a=e.props.cluster;return t.name&&(t.nameAndAlias=t.name,delete t.name),e.projectStore.fetchList(S(S({cluster:a},t),{},{limit:-1}))},e.handleOk=function(){var t=e.props.onOk,a=e.state.namespace,r=e.projectStore.list.data.find((function(e){return e.name===a}));t&&(null==t||t(r))},e.projectStore=new g.default,e.state={namespace:""},e}return(0,s.default)(r,[{key:"componentDidMount",value:function(){this.fetchProjects()}},{key:"getProjects",value:function(){var e=this.props.defaultValue,t=this.projectStore.list.data,a=t.filter((function(e){return"Terminating"!==e.status})).map((function(e){return{label:(0,E.showNameAndAlias)(e),value:e.name,disabled:e.isFedManaged,isFedManaged:e.isFedManaged}}));return e&&!t.find((function(t){return t.name===e}))&&a.unshift({label:e,value:e}),a}},{key:"render",value:function(){var e=this.props.onCancel,a=this.state.namespace;return m.default.createElement("div",{className:(0,h.default)(_.default.item)},m.default.createElement(v.Select,{options:this.getProjects(),isLoading:this.projectStore.list.isLoading,onChange:this.handleChange,defaultValue:a}),m.default.createElement("div",{className:_.default.operate},m.default.createElement(v.Button,{type:"control",onClick:this.handleOk},t("OK")),m.default.createElement(v.Button,{onClick:e},t("CANCEL"))))}}]),r}(m.default.Component),u.propTypes={onOk:y.default.func,onCancel:y.default.func},l=o))||l;a.default=D},function(e,t,a){e.exports={item:"_2VZojJMCcr5LCPjcy6xuXj",operate:"_2BjQJV11IdoAn6d-n9zWbC"}},function(e,t,a){e.exports={panel:"myyMir8aQeW7zvNdoD_ye",titleWrapper:"_12YJqhh4laJo2pSemgH7Bo",title:"_1LHpDb3CKBk2875n2BK-NW"}},function(e,t,a){"use strict";a(15);var r=a(20);a(5),a(4),a(23),a(24),a(17),a(62),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(45),a(5),a(42),a(4),a(23),a(57),a(24),a(17),a(62);var n,l=r(a(36)),u=r(a(37)),o=r(a(55)),i=r(a(56)),c=r(a(51)),s=r(a(0)),f=a(239),d=r(a(849));function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,c.default)(e);if(t){var n=(0,c.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,i.default)(this,a)}}var m=(0,f.inject)("detailStore")(n=(0,f.observer)(n=function(e){(0,o.default)(a,e);var t=p(a);function a(){var e;(0,l.default)(this,a);for(var r=arguments.length,n=new Array(r),u=0;u0&&void 0!==i[0]?i[0]:{},n=r.silent,a=(0,l.default)(r,["silent"]),o=e.props.match.params.group,u=e.props.store,n&&(u.list.silent=!0),t.next=6,u.fetchChildResource(A(A({},a),{},{kind:"namespaces",cluster:e.cluster,group:o}));case 6:return t.next=8,e.monitoringStore.fetchMetrics({cluster:e.cluster,resources:u.list.data.map((function(e){return e.name})),metrics:Object.values((0,P.hideGPUByLicense)(N.MetricTypes,e.cluster)),last:!0});case 8:u.list.silent=!1;case 9:case"end":return t.stop()}}),t)}))),e.getLastValue=function(t,r){var n=e.monitoringStore.data,a=((0,v.default)(n,"".concat(r,".data.result"))||[]).find((function(e){return(0,v.default)(e,"metric.namespace")===t.name}));return(0,v.default)(a,"value[1]",0)},e.getColumns=function(){var r=e.props.getSortOrder,n=[{title:t("NAME"),dataIndex:"name",sorter:!0,sortOrder:r("name"),render:function(e,t){return y.default.createElement(O.default,{icon:"project",iconSize:40,isMultiCluster:t.isFedHostNamespace,desc:t.description||"-",title:(0,P.getDisplayName)(t),noLink:!0})}},{title:t("STATUS"),dataIndex:"status",isHideable:!0,width:"12.7%",render:function(e){return(0,v.default)(I,e)?y.default.createElement(_.default,{type:e,name:t(e.toUpperCase()),flicker:!0}):"-"}},{title:t("WORKSPACE"),dataIndex:"workspace",isHideable:!0,width:"20.9%",render:function(e,t){return(0,v.default)(t,'labels["kubesphere.io/workspace"]',"-")}},{title:t("CPU_USAGE"),key:"namespace_cpu_usage",isHideable:!0,width:"12.7%",render:function(t){return(0,R.getSuitableValue)(e.getLastValue(t,N.MetricTypes.cpu),"cpu","-")}},{title:t("MEMORY_USAGE"),key:"namespace_memory_usage_wo_cache",isHideable:!0,width:"12.7%",render:function(t){return(0,R.getSuitableValue)(e.getLastValue(t,N.MetricTypes.memory),"memory","-")}},{title:t("GPU_USAGE"),key:"namespace_gpu_usage",isHideable:!0,width:"12.7%",render:function(t){return(0,R.getSuitableValue)(e.getLastValue(t,N.MetricTypes.gpu),"gpu","-")}},{title:t("GPU_MEMORY_USAGE"),key:"namespace_gpu_memory_usage",isHideable:!0,width:"12.7%",render:function(t){return(0,R.getSuitableValue)(e.getLastValue(t,N.MetricTypes.gpu_memory),"memory","-")}},{title:t("POD_PL"),key:"namespace_pod_count",isHideable:!0,width:"12.7%",render:function(t){return e.getLastValue(t,N.MetricTypes.pod)}},{title:"",key:"opt",width:"7%",render:function(t,r){return y.default.createElement(b.Button,{type:"flat",className:T.default.button,onClick:function(){return e.unBoundNamespace(r)}},y.default.createElement("img",{src:"/assets/subtract_circle.svg",style:{width:"16px"}}))}}];return(0,E.default)(e.enabledActions)>0&&e.enabledActions.includes("delete")?n:n.filter((function(e){return"opt"!==e.key}))},e.showAction=function(e){return!e.isFedManaged},e.showCreate=function(){return e.props.trigger("node.group.bound.project",A(A({},e.props.match.params),{},{cluster:e.cluster,success:function(){return e.getData()}}))},e.unBoundNamespace=function(t){e.props.trigger("node.group.unbound.namespace",{group:e.group,cluster:e.cluster,namespace:t.name,resource:[t.name],success:e.getData})},e}return(0,p.default)(n,[{key:"render",value:function(){var e=this.props,r=e.bannerProps,n=e.tableProps;return y.default.createElement(k.ListPage,(0,u.default)({},this.props,{getData:this.getData,noWatch:!0}),y.default.createElement(D.default,r),y.default.createElement(S.default,(0,u.default)({},n,{columns:this.getColumns(),itemActions:this.itemActions,tableActions:this.tableActions,onCreate:this.showCreate,createText:t("BOUND"),emptyProps:{icon:"edge-node",title:t("NODE_GROUP_PROJECT_EMPTY"),action:y.default.createElement(b.Button,{type:"control",onClick:this.showCreate},t("BOUND"))},searchType:"name"})))}},{key:"cluster",get:function(){return this.props.match.params.cluster}},{key:"group",get:function(){return this.props.match.params.group}},{key:"enabledActions",get:function(){return globals.app.getActions(A(A({},this.props.match.params),{},{nodegroup:this.group,module:"nodegroups"}))}},{key:"itemActions",get:function(){return[]}},{key:"tableActions",get:function(){var e=this,r=this.props,n=r.tableProps,a=r.trigger;return A(A({},n.tableActions),{},{onFetch:this.getData,selectActions:[{key:"delete",type:"danger",text:t("DELETE"),action:"delete",onClick:function(){return a("node.group.unbound.namespace",{group:e.group,cluster:e.cluster,success:e.getData})}}]})}}]),n}(y.default.Component))||s;r.default=x},5264:function(e,t,r){e.exports={button:"_2eJpr5daHMfi_8vGini6fn"}},5265:function(e,r,n){"use strict";var a=n(20);n(12),n(5),n(11),n(31),n(6),n(84),n(73),n(18),n(16),n(9),n(13),n(10),n(4),n(23),n(24),n(17),n(85),n(62),n(7),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,n(12),n(45),n(5),n(11),n(31),n(6),n(84),n(160),n(73),n(18),n(28),n(191),n(42),n(16),n(159),n(34),n(15),n(9),n(13),n(10),n(4),n(22),n(23),n(57),n(24),n(17),n(85),n(62),n(7);var o=a(n(43));n(41);var u,c=a(n(44)),i=a(n(30)),l=a(n(61)),s=a(n(36)),f=a(n(37)),d=a(n(55)),p=a(n(56)),m=a(n(51)),h=a(n(0)),g=n(14),y=n(239),v=a(n(26)),E=a(n(63)),b=a(n(189)),O=a(n(446)),_=a(n(854)),D=n(186),S=n(52),k=n(791),P=a(n(105)),R=a(n(852)),w=a(n(1400)),C=a(n(792)),N=a(n(833)),T=a(n(874)),j=a(n(886)),A=a(n(915)),M=a(n(5266));function I(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function x(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};t.fetchData(e)},t.getClusterParamsLabel=function(e,t){var r=t?"cluster-role.kubesphere.io/host=":"!cluster-role.kubesphere.io/host",n=e.group,a=e.tags,o=void 0===a?[]:a;return n&&(n="cluster.kubesphere.io/group=".concat(n)),o=Array.isArray(o)?o.map((function(e){return"label.cluster.kubesphere.io/".concat(e)})):"cluster.kubesphere.io/group=".concat(o),[n].concat((0,l.default)(o),[r]).filter(Boolean).join(",")},t.getParamsLabel=function(e){var t=e.group;return t&&(t="cluster.edgewize.io/group=".concat(t)),[t,"!cluster-role.edgewize.io/host"].filter(Boolean).join(",")},t.fetchData=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t.store.fetchList(x(x({},(0,b.default)(e,"group","tags","__index")),{},{cluster:t.props.match.params.cluster,limit:e.limit||10,labelSelector:"apps.edgewize.io/namespace-default"}))},t.handlePagination=function(e){t.fetchData(e)},t.handleRefresh=function(){t.fetchData({page:1})},t.handleSearch=function(e){t.fetchData(e),t.fetchHostData(e)},t.enterNodeGroupCluster=function(){var e=(0,c.default)(o.default.mark((function e(r){return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.routing.push("/v2/edgewize/clusters/".concat(r));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),t.showAddNodeGroup=function(){t.trigger("node.group.create",{})},t.getItemActions=function(){return[].filter((function(e){return e.show}))},t.handleReset=function(){t.initData(t.state.filters)},t.clearFilter=function(){t.setState({filters:{}}),t.initData()},t.handleColumnsHide=function(e){t.setState({hideColumns:e},(function(){var e=(0,S.safeParseJSON)(localStorage.getItem("hide-columns"),{});e[U]=t.state.hideColumns,localStorage.setItem("hide-columns",JSON.stringify(e))}))},t.handleFilterChange=function(e){t.setState({filters:e}),t.handleSearch(e)};var a=(0,v.default)((0,S.safeParseJSON)(localStorage.getItem("hide-columns"),{}),U,[]);return t.store=new R.default,t.state={filters:{},hideColumns:a},t}return(0,f.default)(n,[{key:"componentDidMount",value:function(){this.initData()}},{key:"componentWillUnmount",value:function(){this.disposer&&this.disposer()}},{key:"initWebsocket",value:function(){var e=this,t=(0,S.getHostClusterName)();this.websocket.watch("/kapis/infra.edgewize.io/v1alpha1/edgeclusters/host/apis/infra.edgewize.io/v1alpha1/watch/clusters"),this.fetchData=(0,_.default)(this.fetchData,500),this.disposer=(0,g.reaction)((function(){return e.websocket.message}),(function(r){if("Cluster"===r.object.kind){var n=P.default.clusters(r.object);"MODIFIED"===r.type&&e.store.list.updateItem(n),"ADDED"!==r.type||n.name===t||(0,g.toJS)(e.store.list.data).find((function(e){return e.name===n.name}))||e.store.list.addItem(n),"DELETED"===r.type&&e.store.list.deleteItem(n)}}))}},{key:"renderListDataNotFound",value:function(){return h.default.createElement(T.default,{icon:"exclamation",title:t("NO_MATCHING_RESULT_FOUND"),desc:null,action:h.default.createElement("p",null,t("YOU_CAN_TRY_TO"),h.default.createElement("span",{className:M.default.emptyAction,onClick:this.handleReset,"data-test":"table-empty-refresh"},t("REFRESH_DATA")),t("OR"),h.default.createElement("span",{className:M.default.emptyAction,onClick:this.clearFilter,"data-test":"table-empty-clear-filter"},t("CLEAR_SEARCH_CONDITIONS")))})}},{key:"renderEmptyList",value:function(){return h.default.createElement(N.default,{icon:"cluster",title:t("NO_CLUSTER_TIP"),desc:t("NO_CLUSTER_TIP_DESC"),actions:null})}},{key:"renderList",value:function(){var e=this,t=this.store.list,r=t.data,n=t.page,a=t.total,o=t.limit,u=this.state.hideColumns,c=(0,O.default)(r,(function(e){return e.expiredDay}));return(0,E.default)(r)?(0,E.default)(this.state.filters)?this.renderEmptyList():this.renderListDataNotFound():h.default.createElement("ul",{className:M.default.cards},!(0,E.default)(c)&&h.default.createElement("div",null,c.map((function(t){return h.default.createElement(w.default,{isEdgeWize:!0,key:t.name,data:t,onEnter:e.enterEdgewizeCluster,isOperation:e.isOperation,itemActions:e.getItemActions(t),hideColumns:u})})),h.default.createElement("div",{className:"text-right margin-t12"},h.default.createElement(j.default,{page:n,total:a,limit:o,onChange:this.handlePagination}))))}},{key:"renderSearch",value:function(){return h.default.createElement("div",{className:M.default.searchPanel},h.default.createElement(A.default,{placeholder:t("SEARCH_BY_NAME"),columns:this.filterColumns,onChange:this.handleFilterChange,filters:this.state.filters}),h.default.createElement(D.Button,{type:"flat",icon:"refresh",onClick:this.handleRefresh,"data-test":"cluster-refresh"}))}},{key:"render",value:function(){var e=this.store.list.isLoading;return h.default.createElement("div",{className:M.default.wrapper},h.default.createElement(C.default,{className:M.default.banner,icon:"edge-cluster",title:t("NODE_GROUP_PL"),description:t("NODE_GROUP_DESC"),tabs:this.tabs,tabsActions:this.renderSearch()}),e?h.default.createElement(D.Loading,{className:M.default.loading}):this.renderList())}},{key:"authKey",get:function(){return"clusters"}},{key:"tabs",get:function(){return{value:"clusters",options:[]}}},{key:"filterColumns",get:function(){return[{dataIndex:"name",title:t("NAME"),search:!0}]}},{key:"clusterColumns",get:function(){return[{title:t("CLUSTER_NAME"),dataIndex:"name"},{title:t("NODE_COUNT"),dataIndex:"nodeCount",isHideable:!0},{title:t("KUBERNETES_VERSION"),dataIndex:"version",isHideable:!0},{title:t("HOSTED_IN"),dataIndex:"hostCluster",isHideable:!0},{title:t("CREATION_TIME"),dataIndex:"createTime",isHideable:!0}]}},{key:"enabledActions",get:function(){return globals.app.getActions({module:this.authKey})}},{key:"isOperation",get:function(){return this.enabledActions.includes("create")}},{key:"routing",get:function(){return this.props.rootStore.routing}},{key:"hostedInOptions",get:function(){if(globals.app.isMultiCluster){var e=[];return(0,E.default)((0,g.toJS)(this.hostStore.list.data))||e.push({label:t("HOST_CLUSTER"),options:(0,g.toJS)(this.hostStore.list.data).map((function(e){var t=e.name;return{label:t,value:t}}))}),(0,E.default)((0,g.toJS)(this.memberStore.list.data))||e.push({label:t("MEMBER_CLUSTER"),options:(0,g.toJS)(this.memberStore.list.data).map((function(e){var t=e.name;return{label:t,value:t}}))}),e}}}]),n}(h.default.Component))||u)||u)||u;r.default=G},5266:function(e,t,r){e.exports={searchPanel:"_32ndYLctXsv9O1V3qyIN70",search:"_1i2aNcyucSmn4xZHmwgydE",banner:"y8jwuARSF40DyEF4LzSHU",wrapper:"_3CluQiu-2naT1hKAMPFTXr",cards:"_2bR-p8WrajezVdx4qt0g8P",total:"_HM936HEzXNJZCpTNILRW",noData:"BUs1t0DJWiVO7Zj94Yqn4",title:"FXx4THe71SmpSJKcWPlAq",batchManage:"_2FPw5nmFrF6Mm0Raax4ISC",loading:"_3eMphXc0OJDjjrOh5hyTK1",action:"_3iiwGGwWUkZZZddHpRAbsd",clusterGroupTag:"xdnpbpvsSESdta77fmJTB",production:"aEw6mnIPb4jYtF45GvNcQ",development:"_10DoOajckM0FeloX64oWth",testing:"_1e8DAKPXSosUFzmouVMINd",demo:"_1LUiiF3rdMqLOMty6CMwWq",emptyAction:"kRbGP7t3miufn14pAC0Er"}},5267:function(e,t,r){"use strict";var n=r(20),a=r(157);r(12),r(11),r(6),r(9),r(13),r(10),r(4),r(23),r(24),r(17),r(62),r(7),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r(12),r(45),r(11),r(6),r(28),r(42),r(34),r(15),r(9),r(13),r(10),r(4),r(22),r(23),r(57),r(24),r(17),r(62),r(7);var o=n(r(43)),u=n(r(30));r(41);var c,i=n(r(44)),l=n(r(36)),s=n(r(37)),f=n(r(55)),d=n(r(56)),p=n(r(51)),m=a(r(0)),h=r(239),g=r(186),y=r(317),v=n(r(852));function E(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function b(e){for(var t=1;t=.9&&g.default.createElement(E.Icon,{name:"exclamation"})),description:"".concat(r.cpu_used,"/").concat(r.cpu_total," Core")})}},{title:t("MEMORY"),key:"memory",isHideable:!0,render:function(t){var r=e.getRecordMetrics(t,[{type:"memory_used",unit:"Gi"},{type:"memory_total",unit:"Gi"},{type:"memory_utilisation"}]);return g.default.createElement(P.default,{title:g.default.createElement("div",{className:I.default.resource},g.default.createElement("span",null,"".concat(Math.round(100*r.memory_utilisation),"%")),r.memory_utilisation>=.9&&g.default.createElement(E.Icon,{name:"exclamation"})),description:"".concat(r.memory_used,"/").concat(r.memory_total," GiB")})}},{title:t("POD_PL"),key:"pods",isHideable:!0,render:function(t){var r=e.getRecordMetrics(t,[{type:"pod_used"},{type:"pod_total"}]),n=r.pod_total?parseFloat(r.pod_used/r.pod_total):0;return g.default.createElement(P.default,{title:"".concat(Math.round(100*n),"%"),description:"".concat(r.pod_used,"/").concat(r.pod_total)})}},{title:t("ALLOCATED_CPU"),key:"allocated_resources_cpu",isHideable:!0,render:e.renderCPUTooltip},{title:t("ALLOCATED_MEMORY"),key:"allocated_resources_memory",isHideable:!0,render:e.renderMemoryTooltip}]},e.renderCPUTooltip=function(e){var r=g.default.createElement("p",null,1===(0,N.cpuFormat)((0,y.default)(e,'annotations["node.kubesphere.io/cpu-limits"]'))?t("CPU_LIMIT_SI",{core:(0,N.cpuFormat)((0,y.default)(e,'annotations["node.kubesphere.io/cpu-limits"]')),percent:(0,y.default)(e,'annotations["node.kubesphere.io/cpu-limits-fraction"]')}):t("CPU_LIMIT_PL",{core:(0,N.cpuFormat)((0,y.default)(e,'annotations["node.kubesphere.io/cpu-limits"]')),percent:(0,y.default)(e,'annotations["node.kubesphere.io/cpu-limits-fraction"]')}));return g.default.createElement(E.Tooltip,{content:r,placement:"top"},g.default.createElement(P.default,{title:1===(0,N.cpuFormat)((0,y.default)(e,'annotations["node.kubesphere.io/cpu-limits"]'))?t("CPU_REQUEST_SI",{core:(0,N.cpuFormat)((0,y.default)(e,'annotations["node.kubesphere.io/cpu-requests"]')),percent:(0,y.default)(e,'annotations["node.kubesphere.io/cpu-requests-fraction"]')}):t("CPU_REQUEST_PL",{core:(0,N.cpuFormat)((0,y.default)(e,'annotations["node.kubesphere.io/cpu-requests"]')),percent:(0,y.default)(e,'annotations["node.kubesphere.io/cpu-requests-fraction"]')}),description:t("RESOURCE_REQUEST")}))},e.renderMemoryTooltip=function(e){var r=g.default.createElement("p",null,t("MEMORY_LIMIT_VALUE",{gib:(0,N.memoryFormat)((0,y.default)(e,'annotations["node.kubesphere.io/memory-limits"]'),"Gi"),percent:(0,y.default)(e,'annotations["node.kubesphere.io/memory-limits-fraction"]')}));return g.default.createElement(E.Tooltip,{content:r,placement:"top"},g.default.createElement(P.default,{title:t("MEMORY_REQUEST_VALUE",{gib:(0,N.memoryFormat)((0,y.default)(e,'annotations["node.kubesphere.io/memory-requests"]'),"Gi"),percent:(0,y.default)(e,'annotations["node.kubesphere.io/memory-requests-fraction"]')}),description:t("RESOURCE_REQUEST")}))},e.handleCreate=function(){var t=e.props.match.params.group;e.props.trigger("node.edge.add",{cluster:e.cluster,store:e.edgeStore,isEdgeWize:!0,nodegroup:t})},e}return(0,d.default)(n,[{key:"getStatus",value:function(){return C.NODE_STATUS.map((function(e){return{text:t(e.text),value:e.value}}))}},{key:"getRole",value:function(){return C.NODE_ROLE.map((function(e){return{text:t(e.text),value:e.value}}))}},{key:"render",value:function(){var e=this.props,r=e.bannerProps,n=e.tableProps,a=this.monitoringStore.isLoading;return g.default.createElement(R.ListPage,(0,u.default)({},this.props,{getData:this.getData,noWatch:!0}),g.default.createElement(O.default,(0,u.default)({},r,{title:t("NODE_ADMINISTRATION_PL"),description:t("CLUSTER_NODE_DESC"),icon:"edge-node",tips:this.tips})),g.default.createElement(b.default,(0,u.default)({},n,{itemActions:[],tableActions:this.tableActions,onCreate:this.handleCreate,columns:this.getColumns(),isLoading:n.isLoading||a})))}},{key:"cluster",get:function(){return this.props.match.params.cluster}},{key:"isExpired",get:function(){var e;return(null===(e=globals.licenseInfo)||void 0===e?void 0:e.isExpired)||!1}},{key:"isOverLimit",get:function(){var e;return(null===(e=globals.licenseInfo)||void 0===e?void 0:e.isOverLimit)||!1}},{key:"tableActions",get:function(){return L(L({},this.props.tableProps.tableActions),{},{selectActions:[]})}},{key:"tips",get:function(){return[{title:t("WHAT_IS_NODE_TAINTS_Q"),description:t("WHAT_IS_NODE_TAINTS_A")}]}}]),n}(g.default.Component))||l;r.default=H},5278:function(e,t,r){e.exports={taints:"_3EcR8ixivwXTE9Vqy-r4NY",overview:"_3Ofm094I7MGNwD4t6uQRTm",resource:"_30pyr2Bs5mi56VF-ahfNHx"}},5279:function(e,r,n){"use strict";var a=n(20),o=n(157);n(12),n(5),n(11),n(6),n(9),n(13),n(10),n(4),n(23),n(24),n(17),n(62),n(7),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,n(12),n(45),n(5),n(11),n(6),n(28),n(42),n(34),n(15),n(9),n(13),n(10),n(4),n(22),n(23),n(57),n(24),n(17),n(62),n(7);var u=a(n(315)),c=a(n(43)),i=a(n(30));n(41);var l,s=a(n(44)),f=a(n(36)),d=a(n(37)),p=a(n(55)),m=a(n(56)),h=a(n(51)),g=a(n(0)),y=a(n(788)),v=a(n(792)),E=a(n(796)),b=o(n(793)),O=n(52),_=n(72),D=a(n(1461));function S(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function k(e){for(var t=1;t1?p.default.createElement(D.default,{className:S.default.manage,content:r}):t.length>0&&p.default.createElement(g.Button,{className:S.default.singleButton,onClick:function(){return t[0].onClick()}},t[0].text)},e}return(0,i.default)(n,[{key:"componentDidMount",value:function(){this.fetchData()}},{key:"render",value:function(){var e=(0,m.toJS)(this.nodeGroupStore.detail),r=e.creator,n=e.createTime;return p.default.createElement(p.default.Fragment,null,p.default.createElement(E.default,{icon:"cdn",title:t("BASIC_INFORMATION"),description:t("NODE_GROUP_BASE_INFO_DESC")}),p.default.createElement(y.default,{title:t("CLUSTER_INFORMATION")},p.default.createElement("div",{className:S.default.header},p.default.createElement(v.default,{icon:"enterprise",title:(0,b.getDisplayName)(this.nodeGroupStore.detail),description:t("NODE_GROUP")}),p.default.createElement(v.default,{title:r,description:t("CREATOR")}),p.default.createElement(v.default,{title:(0,b.getLocalTime)(n).format("YYYY-MM-DD HH:mm:ss"),description:t("CREATION_TIME")}),this.editPromission&&this.renderManageButton()),p.default.createElement("div",{className:S.default.content},this.options.map((function(e){return p.default.createElement(v.default,{key:e.name,icon:e.icon,title:e.value,description:t(e.name)})})))))}},{key:"enabledActions",get:function(){return globals.app.getActions({module:"nodegroups",cluster:this.props.match.params.cluster})}},{key:"editPromission",get:function(){return this.enabledActions.includes("manage")}},{key:"enableManageAction",get:function(){return[{actionName:"node.group.baseinfo.edit",onClick:this.showEdit,icon:"pen",text:t("EDIT_INFORMATION")},{actionName:"delete",onClick:this.deleteGroup,icon:"trash",text:t("DELETE_NODE_GROUP")}]}},{key:"options",get:function(){var e=(0,m.toJS)(this.nodeGroupStore.detail)._originData;return[{name:t("EDGE_NODE"),icon:"edge-node",value:(0,d.default)(e,'metadata.labels["apps.edgewize.io/nodes-count"]')},{name:t("PROJECT"),icon:"project",value:(0,d.default)(e,'metadata.labels["apps.edgewize.io/namespaces-count"]')}]}}]),n}(p.default.Component))||o)||o)||o;r.default=w},5284:function(e,r,n){"use strict";n(15);var a=n(157),o=n(20);Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(e){var r=e.className,n=void 0===r?"":r,a=e.content,o=(0,c.useState)(!0),f=(0,u.default)(o,2),d=f[0],p=f[1];return c.default.createElement("div",{className:(0,l.default)(s.default.manage,n)},c.default.createElement(i.Dropdown,{theme:"dark",content:a,trigger:"click",placement:"bottomRight",onClick:function(){return p(!d)}},c.default.createElement("div",{className:s.default.button},c.default.createElement("span",null,t("MANAGE")),c.default.createElement(i.Icon,{name:d?"caret-down":"caret-up",type:"dark"}))))};var u=o(n(96)),c=a(n(0)),i=n(186),l=o(n(3)),s=o(n(5285))},5285:function(e,t,r){e.exports={manage:"mDg-1jnYN-ypam2NbD32d",button:"T0Pvanb0dyrrvRFEIcxoq"}},5286:function(e,t,r){e.exports={header:"_2yEPn_Ugj9Dn1kNubH3GW7",content:"_3IzBQlEusWmcCa87BGVAQ7",tip:"_1Z1FItj1shI88ltEW811Qf",unbind:"_35s4mkDes2Q55fNz3HYur0",manage:"_3aMZECdHRnJ_2qhjrwZKfx",singleButton:"c2t-Ge-9delHT2sq9_Of-",tags:"_1dVbIdLY6IVlyZPogOf_p2"}},786:function(e,t,r){"use strict";r(15);var n=r(20);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=r(239),o=r(317),u=n(r(5262)),c=(0,a.inject)("rootStore")((function(){return(0,o.renderRoutes)(u.default)}));t.default=c}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[10],{1461:function(e,t,r){"use strict";var n=r(20);r(12),r(5),r(11),r(6),r(18),r(16),r(9),r(13),r(10),r(4),r(23),r(17),r(7),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r(12),r(45),r(5),r(11),r(6),r(18),r(28),r(42),r(16),r(34),r(15),r(9),r(13),r(10),r(4),r(22),r(23),r(57),r(17),r(7);var a=n(r(43)),o=n(r(30));r(41);var u,c=n(r(44)),i=n(r(36)),l=n(r(37)),s=n(r(55)),f=n(r(56)),d=n(r(51)),p=n(r(49)),m=r(14),h=n(r(26)),g=n(r(105)),y=n(r(120));function v(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function E(e){for(var t=1;t0&&void 0!==i[0]?i[0]:{},n=r.silent,a=(0,l.default)(r,["silent"]),o=e.props.match.params.group,u=e.props.store,n&&(u.list.silent=!0),t.next=6,u.fetchChildResource(A(A({},a),{},{kind:"namespaces",cluster:e.cluster,group:o}));case 6:return t.next=8,e.monitoringStore.fetchMetrics({cluster:e.cluster,resources:u.list.data.map((function(e){return e.name})),metrics:Object.values((0,P.hideGPUByLicense)(N.MetricTypes,e.cluster)),last:!0});case 8:u.list.silent=!1;case 9:case"end":return t.stop()}}),t)}))),e.getLastValue=function(t,r){var n=e.monitoringStore.data,a=((0,v.default)(n,"".concat(r,".data.result"))||[]).find((function(e){return(0,v.default)(e,"metric.namespace")===t.name}));return(0,v.default)(a,"value[1]",0)},e.getColumns=function(){var r=e.props.getSortOrder,n=[{title:t("NAME"),dataIndex:"name",sorter:!0,sortOrder:r("name"),render:function(e,t){return y.default.createElement(O.default,{icon:"project",iconSize:40,isMultiCluster:t.isFedHostNamespace,desc:t.description||"-",title:(0,P.getDisplayName)(t),noLink:!0})}},{title:t("STATUS"),dataIndex:"status",isHideable:!0,width:"12.7%",render:function(e){return(0,v.default)(I,e)?y.default.createElement(_.default,{type:e,name:t(e.toUpperCase()),flicker:!0}):"-"}},{title:t("WORKSPACE"),dataIndex:"workspace",isHideable:!0,width:"20.9%",render:function(e,t){return(0,v.default)(t,'labels["kubesphere.io/workspace"]',"-")}},{title:t("CPU_USAGE"),key:"namespace_cpu_usage",isHideable:!0,width:"12.7%",render:function(t){return(0,R.getSuitableValue)(e.getLastValue(t,N.MetricTypes.cpu),"cpu","-")}},{title:t("MEMORY_USAGE"),key:"namespace_memory_usage_wo_cache",isHideable:!0,width:"12.7%",render:function(t){return(0,R.getSuitableValue)(e.getLastValue(t,N.MetricTypes.memory),"memory","-")}},{title:t("GPU_USAGE"),key:"namespace_gpu_usage",isHideable:!0,width:"12.7%",render:function(t){return(0,R.getSuitableValue)(e.getLastValue(t,N.MetricTypes.gpu),"gpu","-")}},{title:t("GPU_MEMORY_USAGE"),key:"namespace_gpu_memory_usage",isHideable:!0,width:"12.7%",render:function(t){return(0,R.getSuitableValue)(e.getLastValue(t,N.MetricTypes.gpu_memory),"memory","-")}},{title:t("POD_PL"),key:"namespace_pod_count",isHideable:!0,width:"12.7%",render:function(t){return e.getLastValue(t,N.MetricTypes.pod)}},{title:"",key:"opt",width:"7%",render:function(t,r){return y.default.createElement(b.Button,{type:"flat",className:T.default.button,onClick:function(){return e.unBoundNamespace(r)}},y.default.createElement("img",{src:"/assets/subtract_circle.svg",style:{width:"16px"}}))}}];return(0,E.default)(e.enabledActions)>0&&e.enabledActions.includes("delete")?n:n.filter((function(e){return"opt"!==e.key}))},e.showAction=function(e){return!e.isFedManaged},e.showCreate=function(){return e.props.trigger("node.group.bound.project",A(A({},e.props.match.params),{},{cluster:e.cluster,success:function(){return e.getData()}}))},e.unBoundNamespace=function(t){e.props.trigger("node.group.unbound.namespace",{group:e.group,cluster:e.cluster,namespace:t.name,resource:[t.name],success:e.getData})},e}return(0,p.default)(n,[{key:"render",value:function(){var e=this.props,r=e.bannerProps,n=e.tableProps;return y.default.createElement(k.ListPage,(0,u.default)({},this.props,{getData:this.getData,noWatch:!0}),y.default.createElement(D.default,r),y.default.createElement(S.default,(0,u.default)({},n,{columns:this.getColumns(),itemActions:this.itemActions,tableActions:this.tableActions,onCreate:this.showCreate,createText:t("BOUND"),emptyProps:{icon:"edge-node",title:t("NODE_GROUP_PROJECT_EMPTY"),action:y.default.createElement(b.Button,{type:"control",onClick:this.showCreate},t("BOUND"))},searchType:"name"})))}},{key:"cluster",get:function(){return this.props.match.params.cluster}},{key:"group",get:function(){return this.props.match.params.group}},{key:"enabledActions",get:function(){return globals.app.getActions(A(A({},this.props.match.params),{},{nodegroup:this.group,module:"nodegroups"}))}},{key:"itemActions",get:function(){return[]}},{key:"tableActions",get:function(){var e=this,r=this.props,n=r.tableProps,a=r.trigger;return A(A({},n.tableActions),{},{onFetch:this.getData,selectActions:[{key:"delete",type:"danger",text:t("DELETE"),action:"delete",onClick:function(){return a("node.group.unbound.namespace",{group:e.group,cluster:e.cluster,success:e.getData})}}]})}}]),n}(y.default.Component))||s;r.default=x},5265:function(e,t,r){e.exports={button:"_2eJpr5daHMfi_8vGini6fn"}},5266:function(e,r,n){"use strict";var a=n(20);n(12),n(5),n(11),n(31),n(6),n(84),n(73),n(18),n(16),n(9),n(13),n(10),n(4),n(23),n(24),n(17),n(85),n(62),n(7),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,n(12),n(45),n(5),n(11),n(31),n(6),n(84),n(160),n(73),n(18),n(28),n(191),n(42),n(16),n(159),n(34),n(15),n(9),n(13),n(10),n(4),n(22),n(23),n(57),n(24),n(17),n(85),n(62),n(7);var o=a(n(43));n(41);var u,c=a(n(44)),i=a(n(30)),l=a(n(61)),s=a(n(36)),f=a(n(37)),d=a(n(55)),p=a(n(56)),m=a(n(51)),h=a(n(0)),g=n(14),y=n(239),v=a(n(26)),E=a(n(63)),b=a(n(189)),O=a(n(446)),_=a(n(854)),D=n(186),S=n(52),k=n(791),P=a(n(105)),R=a(n(852)),w=a(n(1400)),C=a(n(792)),N=a(n(833)),T=a(n(874)),j=a(n(886)),A=a(n(915)),M=a(n(5267));function I(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function x(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};t.fetchData(e)},t.getClusterParamsLabel=function(e,t){var r=t?"cluster-role.kubesphere.io/host=":"!cluster-role.kubesphere.io/host",n=e.group,a=e.tags,o=void 0===a?[]:a;return n&&(n="cluster.kubesphere.io/group=".concat(n)),o=Array.isArray(o)?o.map((function(e){return"label.cluster.kubesphere.io/".concat(e)})):"cluster.kubesphere.io/group=".concat(o),[n].concat((0,l.default)(o),[r]).filter(Boolean).join(",")},t.getParamsLabel=function(e){var t=e.group;return t&&(t="cluster.edgewize.io/group=".concat(t)),[t,"!cluster-role.edgewize.io/host"].filter(Boolean).join(",")},t.fetchData=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t.store.fetchList(x(x({},(0,b.default)(e,"group","tags","__index")),{},{cluster:t.props.match.params.cluster,limit:e.limit||10,labelSelector:"apps.edgewize.io/namespace-default"}))},t.handlePagination=function(e){t.fetchData(e)},t.handleRefresh=function(){t.fetchData({page:1})},t.handleSearch=function(e){t.fetchData(e),t.fetchHostData(e)},t.enterNodeGroupCluster=function(){var e=(0,c.default)(o.default.mark((function e(r){return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.routing.push("/v2/edgewize/clusters/".concat(r));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),t.showAddNodeGroup=function(){t.trigger("node.group.create",{})},t.getItemActions=function(){return[].filter((function(e){return e.show}))},t.handleReset=function(){t.initData(t.state.filters)},t.clearFilter=function(){t.setState({filters:{}}),t.initData()},t.handleColumnsHide=function(e){t.setState({hideColumns:e},(function(){var e=(0,S.safeParseJSON)(localStorage.getItem("hide-columns"),{});e[U]=t.state.hideColumns,localStorage.setItem("hide-columns",JSON.stringify(e))}))},t.handleFilterChange=function(e){t.setState({filters:e}),t.handleSearch(e)};var a=(0,v.default)((0,S.safeParseJSON)(localStorage.getItem("hide-columns"),{}),U,[]);return t.store=new R.default,t.state={filters:{},hideColumns:a},t}return(0,f.default)(n,[{key:"componentDidMount",value:function(){this.initData()}},{key:"componentWillUnmount",value:function(){this.disposer&&this.disposer()}},{key:"initWebsocket",value:function(){var e=this,t=(0,S.getHostClusterName)();this.websocket.watch("/kapis/infra.edgewize.io/v1alpha1/edgeclusters/host/apis/infra.edgewize.io/v1alpha1/watch/clusters"),this.fetchData=(0,_.default)(this.fetchData,500),this.disposer=(0,g.reaction)((function(){return e.websocket.message}),(function(r){if("Cluster"===r.object.kind){var n=P.default.clusters(r.object);"MODIFIED"===r.type&&e.store.list.updateItem(n),"ADDED"!==r.type||n.name===t||(0,g.toJS)(e.store.list.data).find((function(e){return e.name===n.name}))||e.store.list.addItem(n),"DELETED"===r.type&&e.store.list.deleteItem(n)}}))}},{key:"renderListDataNotFound",value:function(){return h.default.createElement(T.default,{icon:"exclamation",title:t("NO_MATCHING_RESULT_FOUND"),desc:null,action:h.default.createElement("p",null,t("YOU_CAN_TRY_TO"),h.default.createElement("span",{className:M.default.emptyAction,onClick:this.handleReset,"data-test":"table-empty-refresh"},t("REFRESH_DATA")),t("OR"),h.default.createElement("span",{className:M.default.emptyAction,onClick:this.clearFilter,"data-test":"table-empty-clear-filter"},t("CLEAR_SEARCH_CONDITIONS")))})}},{key:"renderEmptyList",value:function(){return h.default.createElement(N.default,{icon:"cluster",title:t("NO_CLUSTER_TIP"),desc:t("NO_CLUSTER_TIP_DESC"),actions:null})}},{key:"renderList",value:function(){var e=this,t=this.store.list,r=t.data,n=t.page,a=t.total,o=t.limit,u=this.state.hideColumns,c=(0,O.default)(r,(function(e){return e.expiredDay}));return(0,E.default)(r)?(0,E.default)(this.state.filters)?this.renderEmptyList():this.renderListDataNotFound():h.default.createElement("ul",{className:M.default.cards},!(0,E.default)(c)&&h.default.createElement("div",null,c.map((function(t){return h.default.createElement(w.default,{isEdgeWize:!0,key:t.name,data:t,onEnter:e.enterEdgewizeCluster,isOperation:e.isOperation,itemActions:e.getItemActions(t),hideColumns:u})})),h.default.createElement("div",{className:"text-right margin-t12"},h.default.createElement(j.default,{page:n,total:a,limit:o,onChange:this.handlePagination}))))}},{key:"renderSearch",value:function(){return h.default.createElement("div",{className:M.default.searchPanel},h.default.createElement(A.default,{placeholder:t("SEARCH_BY_NAME"),columns:this.filterColumns,onChange:this.handleFilterChange,filters:this.state.filters}),h.default.createElement(D.Button,{type:"flat",icon:"refresh",onClick:this.handleRefresh,"data-test":"cluster-refresh"}))}},{key:"render",value:function(){var e=this.store.list.isLoading;return h.default.createElement("div",{className:M.default.wrapper},h.default.createElement(C.default,{className:M.default.banner,icon:"edge-cluster",title:t("NODE_GROUP_PL"),description:t("NODE_GROUP_DESC"),tabs:this.tabs,tabsActions:this.renderSearch()}),e?h.default.createElement(D.Loading,{className:M.default.loading}):this.renderList())}},{key:"authKey",get:function(){return"clusters"}},{key:"tabs",get:function(){return{value:"clusters",options:[]}}},{key:"filterColumns",get:function(){return[{dataIndex:"name",title:t("NAME"),search:!0}]}},{key:"clusterColumns",get:function(){return[{title:t("CLUSTER_NAME"),dataIndex:"name"},{title:t("NODE_COUNT"),dataIndex:"nodeCount",isHideable:!0},{title:t("KUBERNETES_VERSION"),dataIndex:"version",isHideable:!0},{title:t("HOSTED_IN"),dataIndex:"hostCluster",isHideable:!0},{title:t("CREATION_TIME"),dataIndex:"createTime",isHideable:!0}]}},{key:"enabledActions",get:function(){return globals.app.getActions({module:this.authKey})}},{key:"isOperation",get:function(){return this.enabledActions.includes("create")}},{key:"routing",get:function(){return this.props.rootStore.routing}},{key:"hostedInOptions",get:function(){if(globals.app.isMultiCluster){var e=[];return(0,E.default)((0,g.toJS)(this.hostStore.list.data))||e.push({label:t("HOST_CLUSTER"),options:(0,g.toJS)(this.hostStore.list.data).map((function(e){var t=e.name;return{label:t,value:t}}))}),(0,E.default)((0,g.toJS)(this.memberStore.list.data))||e.push({label:t("MEMBER_CLUSTER"),options:(0,g.toJS)(this.memberStore.list.data).map((function(e){var t=e.name;return{label:t,value:t}}))}),e}}}]),n}(h.default.Component))||u)||u)||u;r.default=G},5267:function(e,t,r){e.exports={searchPanel:"_32ndYLctXsv9O1V3qyIN70",search:"_1i2aNcyucSmn4xZHmwgydE",banner:"y8jwuARSF40DyEF4LzSHU",wrapper:"_3CluQiu-2naT1hKAMPFTXr",cards:"_2bR-p8WrajezVdx4qt0g8P",total:"_HM936HEzXNJZCpTNILRW",noData:"BUs1t0DJWiVO7Zj94Yqn4",title:"FXx4THe71SmpSJKcWPlAq",batchManage:"_2FPw5nmFrF6Mm0Raax4ISC",loading:"_3eMphXc0OJDjjrOh5hyTK1",action:"_3iiwGGwWUkZZZddHpRAbsd",clusterGroupTag:"xdnpbpvsSESdta77fmJTB",production:"aEw6mnIPb4jYtF45GvNcQ",development:"_10DoOajckM0FeloX64oWth",testing:"_1e8DAKPXSosUFzmouVMINd",demo:"_1LUiiF3rdMqLOMty6CMwWq",emptyAction:"kRbGP7t3miufn14pAC0Er"}},5268:function(e,t,r){"use strict";var n=r(20),a=r(157);r(12),r(11),r(6),r(9),r(13),r(10),r(4),r(23),r(24),r(17),r(62),r(7),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r(12),r(45),r(11),r(6),r(28),r(42),r(34),r(15),r(9),r(13),r(10),r(4),r(22),r(23),r(57),r(24),r(17),r(62),r(7);var o=n(r(43)),u=n(r(30));r(41);var c,i=n(r(44)),l=n(r(36)),s=n(r(37)),f=n(r(55)),d=n(r(56)),p=n(r(51)),m=a(r(0)),h=r(239),g=r(186),y=r(317),v=n(r(852));function E(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function b(e){for(var t=1;t=.9&&g.default.createElement(E.Icon,{name:"exclamation"})),description:"".concat(r.cpu_used,"/").concat(r.cpu_total," Core")})}},{title:t("MEMORY"),key:"memory",isHideable:!0,render:function(t){var r=e.getRecordMetrics(t,[{type:"memory_used",unit:"Gi"},{type:"memory_total",unit:"Gi"},{type:"memory_utilisation"}]);return g.default.createElement(P.default,{title:g.default.createElement("div",{className:I.default.resource},g.default.createElement("span",null,"".concat(Math.round(100*r.memory_utilisation),"%")),r.memory_utilisation>=.9&&g.default.createElement(E.Icon,{name:"exclamation"})),description:"".concat(r.memory_used,"/").concat(r.memory_total," GiB")})}},{title:t("POD_PL"),key:"pods",isHideable:!0,render:function(t){var r=e.getRecordMetrics(t,[{type:"pod_used"},{type:"pod_total"}]),n=r.pod_total?parseFloat(r.pod_used/r.pod_total):0;return g.default.createElement(P.default,{title:"".concat(Math.round(100*n),"%"),description:"".concat(r.pod_used,"/").concat(r.pod_total)})}},{title:t("ALLOCATED_CPU"),key:"allocated_resources_cpu",isHideable:!0,render:e.renderCPUTooltip},{title:t("ALLOCATED_MEMORY"),key:"allocated_resources_memory",isHideable:!0,render:e.renderMemoryTooltip}]},e.renderCPUTooltip=function(e){var r=g.default.createElement("p",null,1===(0,N.cpuFormat)((0,y.default)(e,'annotations["node.kubesphere.io/cpu-limits"]'))?t("CPU_LIMIT_SI",{core:(0,N.cpuFormat)((0,y.default)(e,'annotations["node.kubesphere.io/cpu-limits"]')),percent:(0,y.default)(e,'annotations["node.kubesphere.io/cpu-limits-fraction"]')}):t("CPU_LIMIT_PL",{core:(0,N.cpuFormat)((0,y.default)(e,'annotations["node.kubesphere.io/cpu-limits"]')),percent:(0,y.default)(e,'annotations["node.kubesphere.io/cpu-limits-fraction"]')}));return g.default.createElement(E.Tooltip,{content:r,placement:"top"},g.default.createElement(P.default,{title:1===(0,N.cpuFormat)((0,y.default)(e,'annotations["node.kubesphere.io/cpu-limits"]'))?t("CPU_REQUEST_SI",{core:(0,N.cpuFormat)((0,y.default)(e,'annotations["node.kubesphere.io/cpu-requests"]')),percent:(0,y.default)(e,'annotations["node.kubesphere.io/cpu-requests-fraction"]')}):t("CPU_REQUEST_PL",{core:(0,N.cpuFormat)((0,y.default)(e,'annotations["node.kubesphere.io/cpu-requests"]')),percent:(0,y.default)(e,'annotations["node.kubesphere.io/cpu-requests-fraction"]')}),description:t("RESOURCE_REQUEST")}))},e.renderMemoryTooltip=function(e){var r=g.default.createElement("p",null,t("MEMORY_LIMIT_VALUE",{gib:(0,N.memoryFormat)((0,y.default)(e,'annotations["node.kubesphere.io/memory-limits"]'),"Gi"),percent:(0,y.default)(e,'annotations["node.kubesphere.io/memory-limits-fraction"]')}));return g.default.createElement(E.Tooltip,{content:r,placement:"top"},g.default.createElement(P.default,{title:t("MEMORY_REQUEST_VALUE",{gib:(0,N.memoryFormat)((0,y.default)(e,'annotations["node.kubesphere.io/memory-requests"]'),"Gi"),percent:(0,y.default)(e,'annotations["node.kubesphere.io/memory-requests-fraction"]')}),description:t("RESOURCE_REQUEST")}))},e.handleCreate=function(){var t=e.props.match.params.group;e.props.trigger("node.edge.add",{cluster:e.cluster,store:e.edgeStore,isEdgeWize:!0,nodegroup:t})},e}return(0,d.default)(n,[{key:"getStatus",value:function(){return C.NODE_STATUS.map((function(e){return{text:t(e.text),value:e.value}}))}},{key:"getRole",value:function(){return C.NODE_ROLE.map((function(e){return{text:t(e.text),value:e.value}}))}},{key:"render",value:function(){var e=this.props,r=e.bannerProps,n=e.tableProps,a=this.monitoringStore.isLoading;return g.default.createElement(R.ListPage,(0,u.default)({},this.props,{getData:this.getData,noWatch:!0}),g.default.createElement(O.default,(0,u.default)({},r,{title:t("NODE_ADMINISTRATION_PL"),description:t("CLUSTER_NODE_DESC"),icon:"edge-node",tips:this.tips})),g.default.createElement(b.default,(0,u.default)({},n,{itemActions:[],tableActions:this.tableActions,onCreate:this.handleCreate,columns:this.getColumns(),isLoading:n.isLoading||a})))}},{key:"cluster",get:function(){return this.props.match.params.cluster}},{key:"isExpired",get:function(){var e;return(null===(e=globals.licenseInfo)||void 0===e?void 0:e.isExpired)||!1}},{key:"isOverLimit",get:function(){var e;return(null===(e=globals.licenseInfo)||void 0===e?void 0:e.isOverLimit)||!1}},{key:"tableActions",get:function(){return L(L({},this.props.tableProps.tableActions),{},{selectActions:[]})}},{key:"tips",get:function(){return[{title:t("WHAT_IS_NODE_TAINTS_Q"),description:t("WHAT_IS_NODE_TAINTS_A")}]}}]),n}(g.default.Component))||l;r.default=H},5279:function(e,t,r){e.exports={taints:"_3EcR8ixivwXTE9Vqy-r4NY",overview:"_3Ofm094I7MGNwD4t6uQRTm",resource:"_30pyr2Bs5mi56VF-ahfNHx"}},5280:function(e,r,n){"use strict";var a=n(20),o=n(157);n(12),n(5),n(11),n(6),n(9),n(13),n(10),n(4),n(23),n(24),n(17),n(62),n(7),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,n(12),n(45),n(5),n(11),n(6),n(28),n(42),n(34),n(15),n(9),n(13),n(10),n(4),n(22),n(23),n(57),n(24),n(17),n(62),n(7);var u=a(n(315)),c=a(n(43)),i=a(n(30));n(41);var l,s=a(n(44)),f=a(n(36)),d=a(n(37)),p=a(n(55)),m=a(n(56)),h=a(n(51)),g=a(n(0)),y=a(n(788)),v=a(n(792)),E=a(n(796)),b=o(n(793)),O=n(52),_=n(72),D=a(n(1461));function S(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function k(e){for(var t=1;t1?p.default.createElement(D.default,{className:S.default.manage,content:r}):t.length>0&&p.default.createElement(g.Button,{className:S.default.singleButton,onClick:function(){return t[0].onClick()}},t[0].text)},e}return(0,i.default)(n,[{key:"componentDidMount",value:function(){this.fetchData()}},{key:"render",value:function(){var e=(0,m.toJS)(this.nodeGroupStore.detail),r=e.creator,n=e.createTime;return p.default.createElement(p.default.Fragment,null,p.default.createElement(E.default,{icon:"cdn",title:t("BASIC_INFORMATION"),description:t("NODE_GROUP_BASE_INFO_DESC")}),p.default.createElement(y.default,{title:t("CLUSTER_INFORMATION")},p.default.createElement("div",{className:S.default.header},p.default.createElement(v.default,{icon:"enterprise",title:(0,b.getDisplayName)(this.nodeGroupStore.detail),description:t("NODE_GROUP")}),p.default.createElement(v.default,{title:r,description:t("CREATOR")}),p.default.createElement(v.default,{title:(0,b.getLocalTime)(n).format("YYYY-MM-DD HH:mm:ss"),description:t("CREATION_TIME")}),this.editPromission&&this.renderManageButton()),p.default.createElement("div",{className:S.default.content},this.options.map((function(e){return p.default.createElement(v.default,{key:e.name,icon:e.icon,title:e.value,description:t(e.name)})})))))}},{key:"enabledActions",get:function(){return globals.app.getActions({module:"nodegroups",cluster:this.props.match.params.cluster})}},{key:"editPromission",get:function(){return this.enabledActions.includes("manage")}},{key:"enableManageAction",get:function(){return[{actionName:"node.group.baseinfo.edit",onClick:this.showEdit,icon:"pen",text:t("EDIT_INFORMATION")},{actionName:"delete",onClick:this.deleteGroup,icon:"trash",text:t("DELETE_NODE_GROUP")}]}},{key:"options",get:function(){var e=(0,m.toJS)(this.nodeGroupStore.detail)._originData;return[{name:t("EDGE_NODE"),icon:"edge-node",value:(0,d.default)(e,'metadata.labels["apps.edgewize.io/nodes-count"]')},{name:t("PROJECT"),icon:"project",value:(0,d.default)(e,'metadata.labels["apps.edgewize.io/namespaces-count"]')}]}}]),n}(p.default.Component))||o)||o)||o;r.default=w},5285:function(e,r,n){"use strict";n(15);var a=n(157),o=n(20);Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(e){var r=e.className,n=void 0===r?"":r,a=e.content,o=(0,c.useState)(!0),f=(0,u.default)(o,2),d=f[0],p=f[1];return c.default.createElement("div",{className:(0,l.default)(s.default.manage,n)},c.default.createElement(i.Dropdown,{theme:"dark",content:a,trigger:"click",placement:"bottomRight",onClick:function(){return p(!d)}},c.default.createElement("div",{className:s.default.button},c.default.createElement("span",null,t("MANAGE")),c.default.createElement(i.Icon,{name:d?"caret-down":"caret-up",type:"dark"}))))};var u=o(n(96)),c=a(n(0)),i=n(186),l=o(n(3)),s=o(n(5286))},5286:function(e,t,r){e.exports={manage:"mDg-1jnYN-ypam2NbD32d",button:"T0Pvanb0dyrrvRFEIcxoq"}},5287:function(e,t,r){e.exports={header:"_2yEPn_Ugj9Dn1kNubH3GW7",content:"_3IzBQlEusWmcCa87BGVAQ7",tip:"_1Z1FItj1shI88ltEW811Qf",unbind:"_35s4mkDes2Q55fNz3HYur0",manage:"_3aMZECdHRnJ_2qhjrwZKfx",singleButton:"c2t-Ge-9delHT2sq9_Of-",tags:"_1dVbIdLY6IVlyZPogOf_p2"}},786:function(e,t,r){"use strict";r(15);var n=r(20);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=r(239),o=r(317),u=n(r(5263)),c=(0,a.inject)("rootStore")((function(){return(0,o.renderRoutes)(u.default)}));t.default=c}}]); \ No newline at end of file diff --git a/packages/bootstrap/assets/v3dist/10.7af50d1a799f638e204c.css b/packages/bootstrap/assets/v3dist/10.c75c2ff9891fc11ad6f1.css similarity index 100% rename from packages/bootstrap/assets/v3dist/10.7af50d1a799f638e204c.css rename to packages/bootstrap/assets/v3dist/10.c75c2ff9891fc11ad6f1.css diff --git a/packages/bootstrap/assets/v3dist/11.774e51cf1478539e2707.js b/packages/bootstrap/assets/v3dist/11.6e951778d54720f3b78c.js similarity index 95% rename from packages/bootstrap/assets/v3dist/11.774e51cf1478539e2707.js rename to packages/bootstrap/assets/v3dist/11.6e951778d54720f3b78c.js index 09b4d1d6518..0e78b3ca725 100644 --- a/packages/bootstrap/assets/v3dist/11.774e51cf1478539e2707.js +++ b/packages/bootstrap/assets/v3dist/11.6e951778d54720f3b78c.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[11],{1137:function(e,t,a){"use strict";var r=a(20);a(12),a(5),a(11),a(31),a(6),a(29),a(97),a(98),a(9),a(13),a(10),a(4),a(23),a(17),a(7),a(32),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(12),a(45),a(5),a(11),a(31),a(6),a(29),a(28),a(97),a(42),a(34),a(15),a(98),a(9),a(13),a(10),a(4),a(22),a(23),a(57),a(17),a(7),a(32);var n=r(a(30)),u=r(a(96)),l=r(a(43));a(41);var o,c,i,s=r(a(44)),d=r(a(61)),f=r(a(65)),p=r(a(36)),m=r(a(37)),h=r(a(88)),v=r(a(55)),y=r(a(56)),g=r(a(51)),_=r(a(49)),E=(r(a(66)),a(14)),b=r(a(63)),S=r(a(26)),O=r(a(74)),R=r(a(855)),T=a(52),C=a(434);function A(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function P(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:[],a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=(0,d.default)(a);return t.forEach((function(t,a){var n=(0,S.default)(t,"metric.__name__"),u=null;if(n){var l=(0,S.default)(t,"metric.quantile"),o=(0,S.default)(t,"metric.verb"),c=(0,S.default)(t,"metric.result"),i=r.find((function(e){return l?(0,S.default)(e,"metric.quantile")===l:o?(0,S.default)(e,"metric.verb")===o:c?(0,S.default)(e,"metric.result")===c:(0,S.default)(e,"metric.__name__")===n}));(0,b.default)(i)?r.push(t):u=i}else u=r[a];if(!(0,b.default)(u)){var s=e.getNewValues(u.values,t.value);(0,O.default)(u,"values",s)}})),r},e}return(0,m.default)(n,[{key:"fetchHealthMetrics",value:(a=(0,s.default)(l.default.mark((function e(){return l.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.health.isLoading=!0,e.next=3,this.requestHealthMetrics();case 3:this.health.isLoading=!1;case 4:case"end":return e.stop()}}),e,this)}))),function(){return a.apply(this,arguments)})},{key:"requestHealthMetrics",value:(t=(0,s.default)(l.default.mark((function e(){var t,a,r,n,o,c,i,s,d;return l.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=this.cluster&&globals.app.isMultiCluster?"kapis/clusters/".concat(this.cluster,"/resources.kubesphere.io/v1alpha2/componenthealth"):"kapis/resources.kubesphere.io/v1alpha2/componenthealth",e.next=3,(0,T.to)(request.get(t));case 3:a=e.sent,r=a.kubesphereStatus||[],n=(0,R.default)(r,"namespace"),o=r.some((function(e){return"kube-scheduler"===(0,S.default)(e,"label.component")&&(0,S.default)(e,"healthyBackends",0)})),c=r.some((function(e){return"kube-controller-manager"===(0,S.default)(e,"label.component")&&(0,S.default)(e,"healthyBackends",0)})),i={kubernetes:(0,S.default)(a,"kubernetesStatus",[]),node:(0,S.default)(a,"nodeStatus",{}),kubesphere:(0,S.default)(n,"kubesphere-system",[]),openpitrix:(0,S.default)(n,"openpitrix-system",[]),istio:(0,S.default)(n,"istio-system",[]),monitoring:(0,S.default)(n,"kubesphere-monitoring-system",[]),logging:(0,S.default)(n,"kubesphere-logging-system",[]),devops:(0,S.default)(n,"kubesphere-devops-system",[]),kubeSystem:(0,S.default)(n,"kube-system",[])},s={},d={},Object.entries(i).forEach((function(e){var t=(0,u.default)(e,2),a=t[0],r=t[1],n={total:0,health:0},l={total:0,health:0};"node"===a?(n.total=(0,S.default)(r,"totalNodes",0),n.health=(0,S.default)(r,"healthyNodes",0)):"kubernetes"===a?(n.total=r.length,n.health=r.filter((function(e){return"Healthy"===(0,C.getComponentStatus)(e)})).length):r.forEach((function(e){n.total+=e.totalBackends,n.health+=e.healthyBackends;var t=(0,C.getComponentStatus)(e);l.health+="Healthy"===t?1:0,l.total+="Stopped"===t?0:1})),s[a]=n,d[a]=l})),this.health=P(P({},this.health||{}),{data:i,counts:s,componentCounts:d,supportKsScheduler:o,supportControllerManager:c});case 13:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})}]),n}(r(a(883)).default),c=(0,_.default)(o.prototype,"health",[E.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{data:{},counts:{},supportKsScheduler:!1,supportControllerManager:!1,isLoading:!1}}}),i=(0,_.default)(o.prototype,"etcd",[E.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),(0,_.default)(o.prototype,"fetchHealthMetrics",[E.action],Object.getOwnPropertyDescriptor(o.prototype,"fetchHealthMetrics"),o.prototype),(0,_.default)(o.prototype,"requestHealthMetrics",[E.action],Object.getOwnPropertyDescriptor(o.prototype,"requestHealthMetrics"),o.prototype),o);t.default=N},1138:function(e,t,a){"use strict";a(15);var r=a(20);a(5),a(4),a(23),a(17),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(45),a(5),a(42),a(4),a(23),a(57),a(17);var n=r(a(36)),u=r(a(55)),l=r(a(56)),o=r(a(51));function c(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,o.default)(e);if(t){var n=(0,o.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,l.default)(this,a)}}var i=function(e){(0,u.default)(a,e);var t=c(a);function a(){var e;(0,n.default)(this,a);for(var r=arguments.length,u=new Array(r),l=0;l0&&void 0!==arguments[0]?arguments[0]:{};return"".concat(e.apiVersion).concat(e.getPath(t),"/").concat(e.getAlertPath(t)).concat(t.dryRun?"?dryRun=All":"")},e.getResourceUrl=e.getListUrl,e.getFilterParams=function(e){var t=T({},e),a=[];return t["labels.severity"]&&(a.push("severity=".concat(t["labels.severity"])),delete t["labels.severity"]),t["labels.alertname"]&&(a.push("alertname~".concat(t["labels.alertname"])),delete t["labels.alertname"]),t.cluster&&(t.label_matcher='{cluster=~"'.concat(t.cluster,'"}'),delete t.cluster),a.length>0&&(t.label_filters=a.join(",")),t},e}return(0,m.default)(o,[{key:"getPath",value:function(){return""}},{key:"fetchList",value:(a=(0,s.default)(n.default.mark((function e(){var t,a,r,o,c,i,s,d,f,p,m,h,v,y=this,g=arguments;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=g.length>0&&void 0!==g[0]?g[0]:{},a=t.cluster,r=t.workspace,o=t.namespace,c=t.more,i=t.ruleName,s=t.type,d=t.allBuiltin,f=void 0!==d&&d,p=(0,l.default)(t,["cluster","workspace","namespace","more","ruleName","type","allBuiltin"]),this.list.isLoading=!0,p.sortBy||void 0!==p.ascending||(p.sortBy=O.LIST_DEFAULT_ORDER[this.module]||"createTime"),p.limit!==1/0&&-1!==p.limit||(p.limit=-1,p.page=1),p.cluster=a,p.limit=p.limit||10,e.next=8,request.get(this.getResourceUrl({cluster:a,workspace:r,namespace:o,ruleName:i,type:s}),this.getFilterParams(T(T({},p),{},{builtin:f?void 0:"builtin"===s})));case 8:return m=e.sent,h=((0,E.default)(m,"items")||[]).map((function(e,t){return T({cluster:a,namespace:o,id:t},y.mapper(e))})),v=m.totalItems,this.list.update(T(T({data:c?[].concat((0,u.default)(this.list.data),(0,u.default)(h)):h,total:v},p),{},{limit:Number(p.limit)||10,page:Number(p.page)||1,isLoading:!1},this.list.silent?{}:{selectedRowKeys:[]})),e.abrupt("return",h);case 13:case"end":return e.stop()}}),e,this)}))),function(){return a.apply(this,arguments)})},{key:"fetchCount",value:(t=(0,s.default)(n.default.mark((function e(){var t;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all([request.get(this.getResourceUrl({}),{page:1,limit:1,builtin:!1}),request.get(this.getResourceUrl({type:"builtin"}),{page:1,limit:1,builtin:!0})]);case 2:t=e.sent,this.ruleCount=(0,E.default)(t,"0.totalItems",0),this.builtinRuleCount=(0,E.default)(t,"1.totalItems",0);case 5:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})},{key:"apiVersion",get:function(){return"proxy-api/proxy/alerting.kubesphere.io/v2beta1/"}},{key:"mapper",get:function(){return S.default.alarmMessage||function(e){return e}}}]),o}(r(a(68)).default),c=(0,_.default)(o.prototype,"ruleCount",[b.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),i=(0,_.default)(o.prototype,"builtinRuleCount",[b.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),(0,_.default)(o.prototype,"fetchList",[b.action],Object.getOwnPropertyDescriptor(o.prototype,"fetchList"),o.prototype),(0,_.default)(o.prototype,"fetchCount",[b.action],Object.getOwnPropertyDescriptor(o.prototype,"fetchCount"),o.prototype),o);t.default=A},1424:function(e,a,r){"use strict";r(15);var n=r(20);r(18),r(16),r(4),r(23),r(24),r(17),r(62),Object.defineProperty(a,"__esModule",{value:!0}),a.Component=a.default=void 0,r(45),r(18),r(42),r(16),r(4),r(23),r(57),r(24),r(17),r(62);var u=n(r(36)),l=n(r(37)),o=n(r(55)),c=n(r(56)),i=n(r(51)),s=n(r(0)),d=r(14),f=r(239),p=n(r(63)),m=n(r(450)),h=n(r(861)),v=n(r(857)),y=n(r(468)),g=n(r(849)),_=n(r(1071)),E=n(r(1824)),b=n(r(1221)),S=n(r(1827)),O=n(r(944)),R=n(r(4244));function T(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,i.default)(e);if(t){var n=(0,i.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,c.default)(this,a)}}var C=function(e){(0,o.default)(r,e);var a=T(r);function r(e){var t;return(0,u.default)(this,r),(t=a.call(this,e)).fetchData=function(){var e=t.store.detail,a=e.cluster,r=e.namespace,n=e.name;if("deployments"===t.module){var u=t.store.detail.annotations,l={cluster:a,namespace:r,name:(void 0===u?{}:u)["kubesphere.io/relatedHPA"]||n};t.hpaStore.checkName(l).then((function(e){e.exist&&t.hpaStore.fetchDetail(l)}))}},t.handleScale=function(e){var a=t.store.detail,r=a.cluster,n=a.namespace,u=a.name;t.store.scale({cluster:r,namespace:n,name:u},e)},t.handleDeleteHpa=function(){t.store.patch(t.store.detail,{metadata:{annotations:{"kubesphere.io/relatedHPA":null}}}).then((function(){t.hpaStore.reset()}))},t.hpaStore=e.hpaStore||new y.default,t.state={},t}return(0,l.default)(r,[{key:"componentDidMount",value:function(){this.fetchData()}},{key:"renderPlacement",value:function(){var e=this.props.match.params,t=e.name,a=e.namespace;return this.store.detail.isFedManaged?s.default.createElement(O.default,{module:this.store.module,name:t,namespace:a}):null}},{key:"renderS2IBuilder",value:function(){var e=this.props.match.params,t=e.cluster,a=e.namespace,r=this.store.detail;return(0,p.default)((0,d.toJS)(r.builderNames))?null:s.default.createElement(S.default,{builderNames:(0,d.toJS)(r.builderNames),cluster:t,namespace:a,className:R.default.deployment_codeResource})}},{key:"renderReplicaInfo",value:function(){var e=(0,d.toJS)(this.store.detail);return s.default.createElement(b.default,{module:this.module,detail:e,onScale:this.handleScale,enableScale:this.enableScaleReplica})}},{key:"renderHpaConfig",value:function(){var e=(0,d.toJS)(this.hpaStore.detail);return e.name?s.default.createElement(E.default,{store:this.hpaStore,detail:e,loading:this.hpaStore.isLoading,onDeleted:this.handleDeleteHpa,enableCancaleHPA:this.enableCancaleHPA}):null}},{key:"renderContainerPorts",value:function(){if(this.props.noPorts)return null;var e=this.store.isLoading,t=(0,d.toJS)(this.store.detail).containers;t=(0,v.default)(t)?[]:t;var a=(0,h.default)((0,m.default)(t.map((function(e){return(0,p.default)(e.ports)?[]:e.ports}))),"name");return(0,p.default)(a)?null:s.default.createElement(_.default,{ports:a,loading:e})}},{key:"renderPods",value:function(){return s.default.createElement(g.default,{prefix:this.prefix,detail:this.store.detail})}},{key:"renderContent",value:function(){return s.default.createElement("div",null,this.renderPlacement(),this.renderReplicaInfo(),this.renderHpaConfig(),this.renderContainerPorts(),this.renderS2IBuilder(),this.renderPods())}},{key:"render",value:function(){return s.default.createElement("div",{className:R.default.main},this.renderContent())}},{key:"module",get:function(){return this.props.detailStore.module}},{key:"store",get:function(){return this.props.detailStore}},{key:"prefix",get:function(){var e=this.props.match.params.cluster;return"/whizard-telemetry/".concat(e)}},{key:"volumesTitle",get:function(){return t("STORAGE_DEVICES")}},{key:"enableScaleReplica",get:function(){return!1}},{key:"enableCancaleHPA",get:function(){return!1}}]),r}(s.default.Component),A=(0,f.inject)("detailStore","hpaStore")((0,f.observer)(C));a.default=A;var P=C;a.Component=P},1425:function(e,t,a){"use strict";a(15);var r=a(20);a(5),a(29),a(9),a(4),a(22),a(23),a(17),a(38),a(32),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(45),a(5),a(29),a(42),a(9),a(4),a(22),a(23),a(57),a(17),a(38),a(32);var n=r(a(43));a(41);var u,l=r(a(44)),o=r(a(36)),c=r(a(37)),i=r(a(55)),s=r(a(56)),d=r(a(51)),f=r(a(49)),p=a(14),m=r(a(26));function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,d.default)(e);if(t){var n=(0,d.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,s.default)(this,a)}}var v=(u=function(e){(0,i.default)(u,e);var t,a,r=h(u);function u(){var e;(0,o.default)(this,u);for(var t=arguments.length,a=new Array(t),c=0;c0&&void 0!==arguments[0]?arguments[0]:{};return"".concat(e.apiVersion).concat(e.getPath(t),"/").concat(e.getRulePath(t))},e.fetchMetric=function(){var e=(0,l.default)(n.default.mark((function e(t){var a,r,u,l,o,c,i;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a=t.expr,r=t.step,u=t.start,l=t.end,o=t.cluster,c=t.namespace,a){e.next=3;break}return e.abrupt("return",[]);case 3:return e.next=5,request.get("kapis/monitoring.kubesphere.io/v1beta1/targets/query",{cluster:o,namespace:c,expr:a,step:r,start:u,end:l},null,(function(){}));case 5:return i=e.sent,e.abrupt("return",(0,m.default)(i,"data.result",[]));case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),e}return(0,c.default)(u,[{key:"fetchCount",value:(a=(0,l.default)(n.default.mark((function e(){var t;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all([request.get(this.getResourceUrl(),{page:1,limit:1,builtin:!1}),request.get(this.getResourceUrl({type:"builtin"}),{page:1,limit:1,builtin:!0})]);case 2:t=e.sent,this.ruleCount=(0,m.default)(t,"0.totalItems",0),this.builtinRuleCount=(0,m.default)(t,"1.totalItems",0);case 5:case"end":return e.stop()}}),e,this)}))),function(){return a.apply(this,arguments)})},{key:"fetchMetadata",value:(t=(0,l.default)(n.default.mark((function e(t){var a,r,u,l;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=t.cluster,r=t.namespace,e.next=3,request.get("kapis/monitoring.kubesphere.io/v1beta1/targets/metadata",{cluster:a,namespace:r});case 3:if(e.t0=e.sent,e.t0){e.next=6;break}e.t0={data:[]};case 6:u=e.t0,l=u.data,this.targetsMetadata=l||[];case 9:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})}]),u}(r(a(1014)).default),(0,f.default)(u.prototype,"fetchCount",[p.action],Object.getOwnPropertyDescriptor(u.prototype,"fetchCount"),u.prototype),(0,f.default)(u.prototype,"fetchMetadata",[p.action],Object.getOwnPropertyDescriptor(u.prototype,"fetchMetadata"),u.prototype),u);t.default=v},1860:function(e,t,a){"use strict";a(15),Object.defineProperty(t,"__esModule",{value:!0}),t.CLUSTER_CREATING_STEPS=void 0;t.CLUSTER_CREATING_STEPS=["Init Nodes","Pull Images","Init etcd Cluster","Init Control Plane","Join Nodes","Install Addons"]},1861:function(e,t,a){"use strict";var r=a(20);a(12),a(5),a(11),a(6),a(16),a(9),a(13),a(10),a(4),a(23),a(17),a(7),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(12),a(45),a(5),a(11),a(6),a(28),a(42),a(16),a(34),a(15),a(9),a(13),a(10),a(4),a(23),a(57),a(17),a(7);var n=r(a(58)),u=r(a(30)),l=r(a(36)),o=r(a(37)),c=r(a(332)),i=r(a(55)),s=r(a(56)),d=r(a(51)),f=r(a(135)),p=r(a(74)),m=r(a(26)),h=r(a(68));function v(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function y(e){for(var t=1;t=1?b(!1):b(!0)}),[]),O=(0,o.useCallback)((function(){r&&r(),b(!1)}),[]),R=(0,o.useCallback)((function(){v.length>0?(b(!1),n&&n(v)):b(!0),r&&r()}),[v]);return o.default.createElement(c.default,{bodyClassName:f.default.body,width:960,title:t("SELECT_CLUSTER"),visible:a,onCancel:O,onOk:R,icon:"layout"},o.default.createElement("div",{className:f.default.content},o.default.createElement(i.Alert,{className:"margin-b12",type:"info",message:t("CUSTOM_PANEL_DESC")}),o.default.createElement("div",{className:"margin-b12 font-bold"},t("AVAILABLE_CLUSTERS")),o.default.createElement(s.default,{onChange:S,value:v,noTip:!0}),E&&o.default.createElement("div",{className:"form-item-error"},t("CLUSTER_SETTINGS_LIMIT_DESC"))))};a.default=p},1870:function(e,a,r){"use strict";r(15);var n=r(20);r(18),r(98),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var u=n(r(30)),l=n(r(96));r(18),r(98);var o=n(r(0)),c=r(186),i=n(r(3)),s=n(r(4367)),d=function(e){var a=e.rulesStats,r={pending:t("ALERT_RULE_PENDING"),inactive:t("ALERT_RULE_INACTIVE"),firing:t("ALERT_RULE_FIRING"),disabled:t("DISABLED")},n=Object.entries(a).map((function(e){var t=(0,l.default)(e,2),a=t[0],n=t[1];return{label:r[a],type:a,value:n}}));return o.default.createElement(c.Tooltip,{content:o.default.createElement(o.default.Fragment,null,n.map((function(e,t){return o.default.createElement("div",{key:t,className:(0,i.default)(s.default.tipContent,[s.default[e.type]],(0,u.default)({},s.default.disabled,0===e.value))},o.default.createElement("span",null,e.label),o.default.createElement("span",null,e.value))}))),placement:"right"},o.default.createElement("ul",{className:s.default.statusBox},n.map((function(e,t){return o.default.createElement("li",{key:t,className:(0,i.default)([s.default["li-".concat(e.type)]],(0,u.default)({},s.default.iconDisabled,0===e.value))},e.value)}))))};a.default=d},1871:function(e,t,a){e.exports={wrapper:"iR7z8tJFaP322Wc5KeDXb",header:"_29LpL3cAnNHFPC0QkN3aCv",banner:"fPeXkXTxxB1IC1fgzgd9p",toolbar:"_3cR_xKcJcZV23U5wcIVG2I",keyword:"_16-UWZO6ab_kyXGqHwXl_V",loading:"oHMbjUURgfU1mYC0irDSP",bottomLine:"_7Lz-bsDzy_cKaSVAY_Jns","table-icon":"_34pw7-udbWc2haW_N6e1dl",status_icon:"_2voC3AqrlwQba0xWa0dnS_",clusterLine:"_1SKGh_tOiQrVmEoee8R741",tags:"_2RpQEmzg6JNUc46zD-KZv5",restText:"_2nd0DFNMLP-ybsS2ZIj_NO",tipClusterList:"_3r_Fs6g9pp-H0F6pNxyJ-_"}},1872:function(e,t,a){e.exports={ruleNameLink:"_3GZ-gTFaIZsY-qzdTxG_UI",status:"_2z9oV0u7EuV6V4dhmfXBsO",tags:"-VgRWR6LLQQYj6FzYof7C","alarm-message-cluster":"_39rAQBZYK1N-duk1XF-_NL"}},1873:function(e,t,a){e.exports={header:"fhUtQTxnilo9gBr2IcT-2",search:"_728dXf7uTB9FdJW_V_WaP",actions:"an1t00SmyKe-vS4BpS6_0",item:"_1Hz3OI34P5qnQiBbapfMpB",content:"_381W6QXu9h1_6QYamtsbBS",head:"f9M-CfL0U6eK5E5pdoGgA",headIcon:"_2Faxb0Vk3vkXhYKs5AXVs1",headLine:"_1yb4J5NJQTIkCS8UsIaMVS",severity:"_3QJ9FneD91WpgZPf3kcYiO",statusLine:"nh8EOyr8oF651_lyfNL2G",target:"_3shn5IkhFBJCDJWySo0xJ3",nodeList:"CGFPuHjoQutwQMvEsqfzc",restItem:"L3XDlvBeiLPVDEO-Gu2m0",template_deploy:"_3DXlcDZyGEgi5sjWFrlXZj",title:"a03ABUahEVAwl5inEIb3t",deploy_des:"XR0PjKVFhR90dTzN-5mQ2",timeLabel:"_1u55t5wedzNS6JbN19enOY",time:"XwbH4jF2oAvUm_xLqkfBw",time_white:"_3mODPcV0z922LUsk9XUAc4",desc:"_1PmGV4G_fUY9ccnKzYFxfx",expanded:"_1dGxBbBrzG7rj3-tYqDXao",itemExtra:"_3SrCA_14EJSEBLrZLUxPD7",ms_content:"NxZ49dslvIBCz2MLE_2ZX",ruleExpr:"_23lcdXrJ22e7J2uPBzvhMz",label:"f74U3QB_c8-mN9-CMIwXX",value:"NOAjeS2RtYYJgLcBkAXQH",itemExtraShow:"wqrEaSI5BUGIhDdkyQ-lK",status_disabled:"_3RbroljQEJSO4KmszOV6gP",status_pending:"_1kR21vIlSnYYlBkn5OhyCp",status_firing:"_1gQvXy-t0jYe9FROVUowIl",status_inactive:"_1waYdxnNMpONaOkYAdjpsk",info_disabled:"_1_vLrlPqVftE6GLp-T3xbz",info_pending:"_2YYvtqr3oqX9Go0YEIgkau",info_firing:"_4VHYcQ6wxQXUfDiQyjbi4",info_inactive:"_2qAsiynshjSs4ONsekI_MV",critical:"_3C-14a9q1Z3eE5AXgICqOG",error:"_37MoA3DU6LypWFTKbY9ks3",footer:"_1uEAX5_Ttli1isHHVEWVvZ",pageSizeBox:"_1Fs1dPNmzKb7oGoZSgMf-j",pagesize:"_3pOc4cTQfHpakvmgl7jfTR",text:"_3p0pnoBlQxwjKgMZ0ooSWJ",gap:"_1e-TO3WC2h1_Im16Kd4adi",pageSizeMenu:"_2P0jP-5fAUAtiIScoxfdQQ",pageSizeMenuitem:"_1ptY6Zr2qxFDhx3P6WOEvC"}},4087:function(e,t,a){"use strict";a(15);var r=a(20);a(5),Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.METRICS_PATH=t.PATH=void 0,a(5);var n=r(a(61)),u=a(317),l=r(a(4088)),o=r(a(4090)),c=r(a(4094)),i=r(a(4095)),s=r(a(4122)),d=r(a(4154)),f=r(a(4155)),p=r(a(4160)),m=r(a(4161)),h=r(a(4167)),v=r(a(4169)),y=r(a(4171)),g=r(a(4172)),_=r(a(4173)),E=r(a(4174)),b=r(a(4175)),S=r(a(4176)),O=r(a(4177)),R=r(a(4178)),T=r(a(4180)),C=r(a(4181)),A=r(a(4196)),P=r(a(4210)),k=r(a(4215)),N=r(a(4216)),D=r(a(4217)),w=r(a(4325)),L=r(a(4331)),I=r(a(4333)),M=r(a(4342)),j=r(a(4366)),x=r(a(4368)),U=r(a(4369)),V=r(a(4370)),G=r(a(4371)),F=r(a(4376)),Y="/whizard-telemetry/:cluster";t.PATH=Y;var H="/whizard-telemetry/metrics";t.METRICS_PATH=H;var B=[(0,u.getIndexRoute)({path:"/whizard-telemetry",to:"/whizard-telemetry/metrics/overview",exact:!0}),{path:["".concat(H,"/alerting/builtin-rules/:name"),"".concat(H,"/alerting/custom-rules/:name")],component:F.default},{path:H,component:L.default,routes:[{path:"".concat(H,"/overview"),component:M.default},{path:"".concat(H,"/ranking"),component:I.default},{path:"".concat(H,"/alerting/builtin-alerts"),component:V.default},{path:"".concat(H,"/alerting/custom-alerts"),component:U.default},{path:"".concat(H,"/alerting/builtin-rules"),component:x.default},{path:"".concat(H,"/alerting/custom-rules"),component:j.default},{path:"".concat(H,"/pods"),component:G.default},(0,u.getIndexRoute)({path:H,to:"".concat(H,"/overview"),exact:!0}),(0,u.getIndexRoute)({path:"".concat(H,"/alerting"),to:"".concat(H,"/alerting/builtin-alerts"),exact:!0}),(0,u.getIndexRoute)({path:"*",to:"/404",exact:!0})]},{path:Y,component:c.default,routes:[].concat((0,n.default)(D.default),[{path:"",component:i.default,routes:[{path:"".concat(Y,"/overview"),component:s.default,exact:!0},{path:"".concat(Y,"/nodes"),component:h.default},{path:"".concat(Y,"/edgenodes"),component:v.default,exact:!0},{path:"".concat(Y,"/projects"),component:y.default,exact:!0},{path:"".concat(Y,"/customresources"),component:g.default,exact:!0},{path:"".concat(Y,"/deployments"),component:_.default,exact:!0},{path:"".concat(Y,"/statefulsets"),component:E.default,exact:!0},{path:"".concat(Y,"/daemonsets"),component:b.default,exact:!0},{path:"".concat(Y,"/jobs"),component:S.default,exact:!0},{path:"".concat(Y,"/cronjobs"),component:O.default,exact:!0},{path:"".concat(Y,"/pods"),component:R.default,exact:!0},{path:"".concat(Y,"/services"),component:T.default,exact:!0},{path:"".concat(Y,"/ingresses"),component:N.default,exact:!0},{path:"".concat(Y,"/storageclasses"),component:d.default,exact:!0},{path:"".concat(Y,"/volumes"),component:m.default},{path:"".concat(Y,"/volume-snapshots"),component:f.default},{path:"".concat(Y,"/volume-snapshot-classes"),component:p.default},{path:"".concat(Y,"/monitor-cluster"),component:C.default},{path:"".concat(Y,"/monitor-resource"),component:A.default},{path:"".concat(Y,"/alerts"),component:l.default},{path:"".concat(Y,"/alert-rules"),component:o.default},{path:"".concat(Y,"/storageclasses"),component:d.default,exact:!0},{path:"".concat(Y,"/snapshots/:namespace?"),component:f.default},{path:"".concat(Y,"/log-collections/:component"),component:P.default},{path:"".concat(Y,"/custom-monitoring"),component:k.default,exact:!0},{path:"".concat(Y,"/gateways/:component"),component:w.default,exact:!0},(0,u.getIndexRoute)({path:Y,to:"".concat(Y,"/overview"),exact:!0}),(0,u.getIndexRoute)({path:"".concat(Y,"/workloads"),to:"".concat(Y,"/deployments"),exact:!0}),(0,u.getIndexRoute)({path:"".concat(Y,"/log-collections"),to:"".concat(Y,"/log-collections/logging"),exact:!0}),(0,u.getIndexRoute)({path:"".concat(Y,"/gateways"),to:"".concat(Y,"/gateways/cluster"),exact:!0}),(0,u.getIndexRoute)({path:"*",to:"/404",exact:!0})]}])}];t.default=B},4088:function(e,a,r){"use strict";var n=r(20),u=r(157);r(12),r(5),r(11),r(6),r(86),r(18),r(16),r(9),r(13),r(10),r(4),r(23),r(24),r(17),r(62),r(188),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(45),r(5),r(11),r(6),r(86),r(18),r(28),r(42),r(16),r(34),r(15),r(9),r(13),r(10),r(4),r(23),r(57),r(24),r(17),r(62),r(188),r(7);var l,o=n(r(315)),c=n(r(30)),i=n(r(36)),s=n(r(37)),d=n(r(55)),f=n(r(56)),p=n(r(51)),m=n(r(0)),h=n(r(451)),v=n(r(26)),y=r(433),g=n(r(790)),_=n(r(795)),E=n(r(880)),b=n(r(792)),S=u(r(793)),O=n(r(796)),R=r(52),T=r(72),C=r(878),A=r(1269),P=n(r(1128)),k=n(r(4089));function N(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function D(e){for(var t=1;t0?"builtin":"custom"},e.handleTabChange=function(t){e.setState({type:t},(function(){e.props.store.list.reset(),e.getData()}))},e.getData=function(t){e.props.store.fetchList(D(D(D({},e.props.match.params),t),{},{sortBy:"activeAt",ascending:!1,type:e.state.type}))},e.getResourceType=function(e){var a=(0,h.default)(e);return t("ALERT_TYPE",{type:t(a)})},e.getColumns=function(){var a=e.props.getFilteredValue;return[{title:t("MESSAGE"),dataIndex:"name",render:function(e,t){return m.default.createElement(g.default,{icon:"loudspeaker",title:(0,v.default)(t,"annotations.summary"),description:(0,v.default)(t,"annotations.message")||(0,v.default)(t,"annotations.description","-")})}},{title:t("STATUS"),dataIndex:"state",filters:e.getStatus(),filteredValue:a("state"),isHideable:!0,search:!0,width:"12%",render:function(e){return m.default.createElement(_.default,{type:e,name:t("ALERT_RULE_".concat(e.toUpperCase()),{defaultValue:e})})}},{title:t("SEVERITY"),dataIndex:"labels.severity",filters:e.getAlertingTypes(),filteredValue:a("labels.severity"),isHideable:!0,search:!0,width:"12%",render:function(e){return m.default.createElement(E.default,{data:e})}},{title:t("ALERTING_RULE_NAME"),dataIndex:"labels.alertname",filteredValue:a("labels.alertname"),isHideable:!0,width:"16%",search:!0,render:function(e,t){return t.alertname}},{title:t("ALERTING_POLICY"),dataIndex:"ruleName",isHideable:!0,width:"12%",render:function(t,a){var r=(0,v.default)(a,"labels.rule_group");return m.default.createElement(y.Link,{to:"builtin"===e.state.type?"".concat(e.getPrefix(),"/alert-rules/builtin/").concat(r):"".concat(e.getPrefix(),"/alert-rules/").concat(r)},r)}},{title:t("MONITORING_TARGET"),dataIndex:"labels",isHideable:!0,width:"12%",render:function(a){if("template"!==a.rule_type)return"-";var r=(0,C.getAlertingResource)(a),n=r.module,u=r.name,l=r.namespace;return n?"hpas"===n?m.default.createElement("span",null,t(T.MODULE_KIND_MAP[n]),": ",u):m.default.createElement(y.Link,{to:"".concat(e.getPrefix({namespace:l}),"/").concat(n,"/").concat(u)},t(T.MODULE_KIND_MAP[n]),": ",u):"-"}},{title:t("TRIGGER_TIME"),dataIndex:"activeAt",isHideable:!0,width:200,render:function(e){return(0,R.getLocalTime)(e).format("YYYY-MM-DD HH:mm:ss")}}]},e}return(0,s.default)(r,[{key:"componentDidMount",value:function(){var e=this.props.match.params,t=e.cluster;!e.namespace&&this.props.store.fetchCount({cluster:t})}},{key:"getPrefix",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.cluster,a=e.namespace,r=this.props.match.params,n=r.cluster,u=r.namespace,l=r.workspace;return t=t||n,a=a||u,"".concat(l?"/".concat(l):"","/clusters/").concat(t).concat(a?"/projects/".concat(a):"")}},{key:"getTableProps",value:function(){return{tableActions:D(D({},this.props.tableProps.tableActions),{},{selectActions:[]}),emptyProps:{desc:t("ALERTING_MESSAGE_EMPTY_DESC")}}}},{key:"getAlertingTypes",value:function(){return A.SEVERITY_LEVEL.map((function(e){return{text:t(e.label),value:e.value}}))}},{key:"getStatus",value:function(){return["pending","firing"].map((function(e){return{text:t("ALERT_RULE_".concat(e.toUpperCase())),value:e}}))}},{key:"render",value:function(){var e=this.props,a=e.match,r=e.bannerProps,n=e.tableProps,u=a.params.namespace;return m.default.createElement(S.ListPage,(0,o.default)({},this.props,{getData:this.getData,noWatch:!0}),m.default.createElement(b.default,(0,o.default)({},r,{tips:this.tips,tabs:u?{}:this.tabs,icon:"loudspeaker",title:t("ALERTING_MESSAGE_PL"),description:t("ALERT_MESSAGE_DESC")})),m.default.createElement("div",{className:k.default.wrapper},m.default.createElement(O.default,(0,o.default)({},n,this.getTableProps(),{rowKey:"id",itemActions:[],columns:this.getColumns(),onCreate:this.showCreate,showKeywords:!0}))))}},{key:"tabs",get:function(){return{value:this.state.type,onChange:this.handleTabChange,options:[{value:"custom",label:t("ALERTS_FROM_CUSTOM_POLICIES"),count:this.props.store.ruleCount},{value:"builtin",label:t("ALERTS_FROM_BUILT_IN_POLICIES"),count:this.props.store.builtinRuleCount}]}}},{key:"tips",get:function(){return[{title:t("REQUESTS_FOR_TRIGGER_AN_ALARM_Q"),description:t("REQUESTS_FOR_TRIGGER_AN_ALARM_A")}]}}]),r}(m.default.Component))||l;a.default=L},4089:function(e,t,a){e.exports={wrapper:"_3AxpII2xzsS_1Bqn3Ao6-v"}},4090:function(e,a,r){"use strict";var n=r(20),u=r(157);r(12),r(109),r(5),r(11),r(6),r(86),r(18),r(16),r(9),r(13),r(10),r(4),r(23),r(24),r(17),r(62),r(188),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(109),r(45),r(5),r(11),r(6),r(86),r(18),r(28),r(42),r(16),r(34),r(15),r(9),r(13),r(10),r(4),r(22),r(23),r(57),r(24),r(17),r(62),r(188),r(7);var l=n(r(315)),o=n(r(43)),c=n(r(30)),i=n(r(58));r(41);var s,d=n(r(44)),f=n(r(36)),p=n(r(37)),m=n(r(55)),h=n(r(56)),v=n(r(51)),y=n(r(0)),g=n(r(788)),_=n(r(795)),E=n(r(792)),b=u(r(793)),S=n(r(796)),O=n(r(26)),R=r(52),T=r(878),C=r(832),A=n(r(1014)),P=n(r(4091)),k=n(r(4093));function N(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function D(e){for(var t=1;t0?"builtin":"custom"},e.handleTabChange=function(t){e.setState({type:t},(function(){e.props.store.list.reset(),e.getData()}))},e.getData=(0,d.default)(o.default.mark((function t(){var a,r,n,u,l=arguments;return o.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=l.length>0&&void 0!==l[0]?l[0]:{},r=a.silent,n=(0,i.default)(a,["silent"]),u=e.props.store,r&&(u.list.silent=!0),t.next=5,u.fetchList(D(D(D({},e.props.match.params),n),{},{type:e.state.type}));case 5:u.list.silent=!1;case 6:case"end":return t.stop()}}),t)}))),e.getColumns=function(){var a=e.props.getFilteredValue;return[{title:t("NAME"),dataIndex:"name",search:!0,render:function(t,a){return y.default.createElement(g.default,{avatar:"/assets/bell_gear_duotone.svg",title:(0,R.getDisplayName)(a),desc:a.description,className:k.default["table-icon"],to:"builtin"===e.state.type?"".concat(e.props.match.url,"/builtin/").concat(a.name):"".concat(e.props.match.url,"/").concat(t)})}},{title:t("POLICY_STATUS"),dataIndex:"enable",filters:e.getEnableFilter(),filteredValue:a("enable"),isHideable:!0,search:!0,width:"16%",render:function(e,a){return y.default.createElement(_.default,{className:k.default.status_icon,type:a.enabled&&JSON.parse(a.enabled)?"active":"disabled",name:a.enabled&&JSON.parse(a.enabled)?t("ENABLED"):t("DISABLED")})}},{title:t("RULE_STATUS"),dataIndex:"state",search:!0,filters:e.getStatus(),isHideable:!0,width:"16%",render:function(e,t){return y.default.createElement(P.default,{rulesStats:t.rulesStats})}},{title:t("TIME_SPENT"),dataIndex:"evaluationTime",isHideable:!0,width:"12%",render:function(e){return y.default.createElement("span",null,"-"!==e?t("TIME_S",{num:e}):e)}},{title:t("RECENT_DETECT_TIME"),dataIndex:"lastEvaluation",isHideable:!0,width:"15.8%",render:function(e,t){var a=(0,O.default)(t._originDataWithStatus,"status.lastEvaluation");return y.default.createElement("span",null,a?(0,R.getLocalTime)(a).format("YYYY-MM-DD HH:mm:ss"):"-")}}]},e}return(0,p.default)(r,[{key:"componentDidMount",value:function(){var e=this.props.match.params,t=e.cluster;!e.namespace&&this.props.store.fetchCount({cluster:t}),localStorage.removeItem("alert-policy-detail-referrer")}},{key:"getStatus",value:function(){return T.ALERTING_STATUS.map((function(e){return{text:t("ALERT_RULE_".concat(e.toUpperCase())),value:e}}))}},{key:"getEnableFilter",value:function(){return[{text:t("ENABLED"),value:"true"},{text:t("DISABLED"),value:"false"}]}},{key:"getAlertingTypes",value:function(){return C.SEVERITY_LEVEL.map((function(e){return{text:t(e.label),value:e.value}}))}},{key:"render",value:function(){var e=this.props,t=e.bannerProps,a=e.tableProps,r=e.match.params.namespace;return y.default.createElement(b.ListPage,(0,l.default)({},this.props,{getData:this.getData,noWatch:!0}),y.default.createElement(E.default,(0,l.default)({},t,{icon:function(){return y.default.createElement("img",{src:"/assets/bell_gear_duotone.svg"})},tips:this.tips,tabs:r?{}:this.tabs})),y.default.createElement(S.default,(0,l.default)({},a,{rowKey:"name",itemActions:this.itemActions,columns:this.getColumns(),tableActions:this.tableActions})))}},{key:"tabs",get:function(){return{value:this.state.type,onChange:this.handleTabChange,options:[{value:"custom",label:t("CUSTOM_POLICIES"),count:this.props.store.ruleCount},{value:"builtin",label:t("BUILT_IN_POLICIES"),count:this.props.store.builtinRuleCount}]}}},{key:"tips",get:function(){return[{title:t("REQUESTS_FOR_PUSH_AN_ALARM_Q"),description:t("REQUESTS_FOR_PUSH_AN_ALARM_A")}]}},{key:"itemActions",get:function(){return[]}},{key:"tableActions",get:function(){return D(D({},this.props.tableProps.tableActions),{},{selectActions:[]})}}]),r}(y.default.Component))||s;a.default=L},4091:function(e,a,r){"use strict";r(15);var n=r(20);r(18),r(98),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var u=n(r(30)),l=n(r(96));r(18),r(98);var o=n(r(0)),c=r(186),i=n(r(3)),s=n(r(4092)),d=function(e){var a=e.rulesStats,r={pending:t("ALERT_RULE_PENDING"),inactive:t("ALERT_RULE_INACTIVE"),firing:t("ALERT_RULE_FIRING"),disabled:t("DISABLED")},n=Object.entries(a).map((function(e){var t=(0,l.default)(e,2),a=t[0],n=t[1];return{label:r[a],type:a,value:n}}));return o.default.createElement(c.Tooltip,{content:o.default.createElement(o.default.Fragment,null,n.map((function(e,t){return o.default.createElement("div",{key:t,className:(0,i.default)(s.default.tipContent,[s.default[e.type]],(0,u.default)({},s.default.disabled,0===e.value))},o.default.createElement("span",null,e.label),o.default.createElement("span",null,e.value))}))),placement:"right"},o.default.createElement("ul",{className:s.default.statusBox},n.map((function(e,t){return o.default.createElement("li",{key:t,className:(0,i.default)([s.default["li-".concat(e.type)]],(0,u.default)({},s.default.iconDisabled,0===e.value))},e.value)}))))};a.default=d},4092:function(e,t,a){e.exports={statusBox:"JrilrMru3h-gLlQ2qXo5L",tipContent:"LGXjRE8coBN2qed9xrcZ3","li-inactive":"_1UB2-8pw3HpFXMxba6KtfJ","li-pending":"_3WRSRTKaf0pf4oVlfpPkN5","li-firing":"_3wquv-ECT8_2Yck-QHJql-","li-disabled":"_3Nx8Qb4gSzQIYfMM44aU7F",pending:"_2EfV2t8OOxNKUWMCPmyRZC",inactive:"_3jHO8HKJ72vcTJ0_DrMETF",firing:"ruM4GxqptagPyxWo4kQkz",disabled:"_1xa-4gyugq2QDwzgvTUMId",iconDisabled:"FEhNQpv-dUmXxMNhPkBXz"}},4093:function(e,t,a){e.exports={wrapper:"PHSNKYkuk4t_2mmc1BgYe",header:"_2sqZHlnHl0KFzj4x0-bNen",banner:"_3o6hGaIJItvgOdfVFlhz0d",toolbar:"vQDH3_iKTKQeHBrPBNZzC",keyword:"_1L8gK6woO4n47u6o2j94Kx",loading:"gVS_5i257kfi3aJzdQDhu",bottomLine:"_1rBLnzvn6l16W8vkCVejyu","table-icon":"_3SZ0VFWhjKP8u_SXGGFUlk",status_icon:"_2-w9clorO7bwNui1qNcuhn"}},4094:function(e,t,a){"use strict";var r=a(20),n=a(157);a(12),a(11),a(6),a(29),a(9),a(13),a(10),a(4),a(22),a(23),a(24),a(17),a(38),a(62),a(7),a(32),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(12),a(45),a(11),a(6),a(29),a(28),a(42),a(34),a(15),a(9),a(13),a(10),a(4),a(22),a(23),a(57),a(24),a(17),a(38),a(62),a(7),a(32);var u=r(a(43)),l=r(a(30));a(41);var o,c=r(a(44)),i=r(a(36)),s=r(a(37)),d=r(a(55)),f=r(a(56)),p=r(a(51)),m=a(186),h=r(a(26)),v=r(a(241)),y=r(a(74)),g=a(239),_=n(a(0)),E=r(a(438)),b=a(317);function S(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function O(e){for(var t=1;t5,c=l?a.slice(0,5):a;return A.default.createElement("div",{className:M.default.container},this.renderPanelHeader(),A.default.createElement(g.Loading,{spinning:r},A.default.createElement(A.default.Fragment,null,A.default.createElement("div",{className:M.default.header},A.default.createElement(g.Select,{className:M.default.select,value:u,onChange:this.handleChangeSource,options:this.sourceOptions}),A.default.createElement(g.Select,{className:M.default.select,value:this.store.sort_metric,onChange:this.handleChangeMetricType,options:this.options})),A.default.createElement("div",{className:M.default.list,style:{height:o&&!l?"auto":"392px"}},this.renderListItems(c,u),o&&A.default.createElement(g.Button,{className:M.default.fold,icon:l?"chevron-down":"chevron-up",onClick:this.toggleFold},l?t("UNFOLD"):t("FOLD"))),A.default.createElement("div",{className:M.default.more},A.default.createElement(g.Button,{onClick:this.showMoreModal},t("VIEW_MORE"))))))}},{key:"cluster",get:function(){return this.props.cluster}},{key:"options",get:function(){return this.store.sort_metric_options.map((function(e){return{value:e,label:t("SORT_BY_".concat(e.toUpperCase()))}}))}},{key:"sourceOptions",get:function(){return[{label:t("NODES"),value:"node"},{label:t("PODS"),value:"pod"},{label:t("PROJECT_PL"),value:"project"}]}}]),r}(A.Component),c=(0,y.default)(o.prototype,"store",[T.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return this.sourceMap[this.state.sourceType].store}}),l=o))||l;a.default=G},4129:function(e,t,a){e.exports={container:"_5xwXULcQIMf6lu9b93XF",title:"_3_kT4Kr-pEQyZlHRWq1Z1z",header:"_10AZ18k6beBTVANjhC-J4R",select:"XrJLUddvKyIO1IPjCqzJb",list:"_3konAxFwtVIKU4-4T9GJsw",listItem:"_106U6lcUQZ0xFRgD6HZgp_",textBox:"_3NlAAuDN3WchymAu8ywFsM",text:"LqDgWxmf6mP1J3m8fJYTl",label:"_28BvoCJ7fYaXIboo1_7udO",noLabel:"_2pv9h2GieT6YpibSC9eFD4",cpu:"_24gW2mCCTU90Ly3T1xsr7O",fold:"_3j7jzafRax5d4eIBqDZP5A",more:"KjQ8RlPJuYtWqL64gr-M5"}},4130:function(e,a,r){"use strict";var n=r(20),u=r(157);r(12),r(11),r(6),r(87),r(27),r(190),r(9),r(13),r(10),r(4),r(23),r(17),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(45),r(11),r(6),r(28),r(87),r(42),r(27),r(190),r(34),r(15),r(9),r(13),r(10),r(4),r(22),r(23),r(57),r(17),r(7);var l=n(r(43)),o=n(r(30));r(41);var c,i=n(r(44)),s=n(r(36)),d=n(r(37)),f=n(r(55)),p=n(r(56)),m=n(r(51)),h=r(186),v=n(r(790)),y=n(r(26)),g=r(239),_=u(r(0)),E=n(r(1137)),b=r(52),S=r(794),O=n(r(4131));function R(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function T(e){for(var t=1;t0&&void 0!==n[0]?n[0]:{},r=T({last:!0},a),e.next=4,t.apiStore.fetchMetrics(T({metrics:[A.request_latencies_total,A.request_rate]},r));case 4:return e.next=6,t.schedulerStore.fetchMetrics(T({metrics:[A.schedule_attempts_count]},r));case 6:case"end":return e.stop()}}),e)}))),t.getSpecificData=function(e){return((0,y.default)(t.metrics,"".concat(A[e],".data.result"))||[]).reduce((function(e,t){return T(T({},e),{},(0,o.default)({},(0,y.default)(t,"metric.result"),(0,y.default)(t,"value[1]",0)))}),{})};var n=e.cluster;return t.apiStore=new E.default({module:"apiserver",cluster:n}),t.schedulerStore=new E.default({module:"scheduler",cluster:n}),t}return(0,d.default)(r,[{key:"componentDidMount",value:function(){this.fetchData()}},{key:"render",value:function(){var e=this.metrics,a=Number((0,y.default)(e,"".concat(A.request_rate,".data.result[0].value[1]"),0)).toFixed(3),r=(0,S.getValueByUnit)((0,y.default)(e,"".concat(A.request_latencies_total,".data.result[0].value[1]"),0),"ms"),n=this.getSpecificData("schedule_attempts_count");return _.default.createElement("div",{className:O.default.k8sStatus},_.default.createElement("div",{className:O.default.title},_.default.createElement("p",null,t("KUBERNETES_STATUS"))),_.default.createElement(h.Loading,{spinning:this.schedulerStore.isLoading},_.default.createElement("div",{className:O.default.container},_.default.createElement("div",{className:O.default.level},_.default.createElement(v.default,{title:(0,b.getDomTitle)(t("VALUE_REQUESTS_SECOND",{value:a})),description:t("API_REQUESTS_PER_SECOND")}),_.default.createElement(v.default,{title:(0,b.getDomTitle)("".concat(r," ms")),description:t("API_REQUEST_LATENCY")}),_.default.createElement(v.default,{title:(0,b.getDomTitle)(n.scheduled),description:1===n.scheduled?t("SCHEDULING_OPERATION"):t("SCHEDULING_OPERATIONS")}),_.default.createElement(v.default,{title:(0,b.getDomTitle)(n.unschedulable),description:1===n.unschedulable?t("SCHEDULING_FAILURE"):t("SCHEDULING_FAILURES")})))))}},{key:"metrics",get:function(){var e=this.apiStore.data,t=this.schedulerStore.data;return T(T({},e),t)}}]),r}(_.Component))||c;a.default=P},4131:function(e,t,a){e.exports={k8sStatus:"_25a3cYXFDcFCpPE9mdV6M0",title:"_2zy4ypkNir5ltmO50PwKzl",container:"_2FVJDVObN1OYWJjRShvHTY",level:"_21GadJn6_6kUuM89Cu4O2v"}},4132:function(e,a,r){"use strict";r(15);var n=r(20),u=r(157);r(5),r(4),r(316),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(42),r(4),r(316),r(23),r(57),r(17);var l,o,c,i,s=n(r(65)),d=n(r(36)),f=n(r(37)),p=n(r(88)),m=n(r(55)),h=n(r(56)),v=n(r(51)),y=n(r(49)),g=(n(r(66)),u(r(0))),_=r(239),E=n(r(26)),b=r(186),S=n(r(883)),O=r(14),R=r(794),T=n(r(4133)),C=n(r(4137));function A(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,v.default)(e);if(t){var n=(0,v.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,h.default)(this,a)}}var P={cpu_usage:"cluster_pod_cpu_usage",cpu_requests:"cluster_pod_cpu_requests_total",cpu_limits:"cluster_pod_cpu_limits_total",cpu_total:"cluster_cpu_total",cpu_requests_non_master:"cluster_pod_cpu_requests_non_master_total",cpu_limits_non_master:"cluster_pod_cpu_limits_non_master_total",cpu_total_non_master:"cluster_cpu_non_master_total",memory_requests:"cluster_pod_memory_requests_total",memorylimits:"cluster_pod_memory_limits_total",memory_total:"cluster_memory_total",memory_usage_non_master:"cluster_pod_memory_non_master_usage_wo_cache",memory_requests_non_master:"cluster_pod_memory_requests_non_master_total",memory_limits_non_master:"cluster_pod_memory_limits_non_master_total",memory_total_non_master:"cluster_memory_non_master_total",namespace_cpu_usage:"cluster_namespace_quota_cpu_usage",namespace_cpu_requests:"cluster_namespace_quota_cpu_requests_hard_total",namespace_cpu_limits:"cluster_namespace_quota_cpu_limits_hard_total",namespace_cpu_requests_non_master:"cluster_namespace_quota_cpu_requests_hard_total",namespace_cpu_limits_non_master:"cluster_namespace_quota_cpu_limits_hard_total",namespace_memory_usage:"cluster_namespace_quota_memory_usage",namespace_memory_requests:"cluster_namespace_quota_memory_requests_hard_total",namespace_memorylimits:"cluster_namespace_quota_memory_limits_hard_total",namespace_memory_usage_non_master:"cluster_namespace_quota_memory_usage",namespace_memory_requests_non_master:"cluster_namespace_quota_memory_requests_hard_total",namespace_memorylimits_non_master:"cluster_namespace_quota_memory_limits_hard_total"},k=(0,_.observer)((o=function(e){(0,m.default)(r,e);var a=A(r);function r(){var e;(0,d.default)(this,r);for(var t=arguments.length,n=new Array(t),u=0;u=3.3?p.default.createElement(h.default,(0,o.default)({},this.bannerProps,{tips:this.tips,routes:this.routes})):p.default.createElement(h.default,this.bannerProps)}},{key:"render",value:function(){return p.default.createElement(p.default.Fragment,null,this.renderBanner(),(0,v.renderRoutes)(g.default))}},{key:"tips",get:function(){return[{title:t("WHAT_IS_VOLUME_SNAPSHOT_CLASS_Q"),description:t("WHAT_IS_VOLUME_SNAPSHOT_CLASS_A")},{title:t("WHAT_IS_VOLUME_SNAPSHOT_CONTENT_Q"),description:t("WHAT_IS_VOLUME_SNAPSHOT_CONTENT_A")}]}},{key:"bannerProps",get:function(){return{className:"margin-b12",description:t("VOLUME_SNAPSHOT_DESC"),module:"VOLUME_SNAPSHOT",title:t("VOLUME_SNAPSHOT_PL"),icon:"snapshot"}}},{key:"routes",get:function(){return g.default.filter((function(e){return!!e.title})).map((function(e){return E(E({},e),{},{name:e.path.split("/").pop()})}))}}]),r}(p.default.Component))||u)||u;a.default=S},4156:function(e,t,a){"use strict";a(15);var r=a(20);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=a(317),u=r(a(4157)),l=r(a(4159)),o="/whizard-telemetry/:cluster/volume-snapshots",c=[{path:"".concat(o,"/snapshots"),title:"VOLUME_SNAPSHOT",component:u.default,exact:!0},{path:"".concat(o,"/snapshot-content"),title:"VOLUME_SNAPSHOT_CONTENT",component:l.default,exact:!0},(0,n.getIndexRoute)({path:o,to:"".concat(o,"/snapshots"),exact:!0})];t.default=c},4157:function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(18),r(4),r(23),r(24),r(17),r(62),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(18),r(42),r(4),r(22),r(23),r(57),r(24),r(17),r(62);var u=n(r(315)),l=n(r(43));r(41);var o,c=n(r(44)),i=n(r(36)),s=n(r(37)),d=n(r(55)),f=n(r(56)),p=n(r(51)),m=r(186),h=n(r(810)),v=n(r(788)),y=n(r(795)),g=r(793),_=n(r(63)),E=n(r(0)),b=n(r(831)),S=n(r(914)),O=n(r(910)),R=r(52),T=r(72),C=n(r(4158));function A(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,p.default)(e);if(t){var n=(0,p.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,f.default)(this,a)}}var P=(0,g.withClusterList)({store:new S.default,module:"volume-snapshots",name:"VOLUME_SNAPSHOT",authKey:"volumesnapshots"})(o=function(e){(0,d.default)(r,e);var a=A(r);function r(){var e;(0,i.default)(this,r);for(var t=arguments.length,n=new Array(t),u=0;u=3.2?p.default.createElement(h.default,(0,o.default)({},this.bannerProps,{tips:this.tips,routes:this.routes})):p.default.createElement(h.default,(0,o.default)({},this.bannerProps,{tips:this.tips}))}},{key:"render",value:function(){return p.default.createElement(p.default.Fragment,null,this.renderBanner(),(0,v.renderRoutes)(g.default))}},{key:"tips",get:function(){return[{title:t("WHAT_IS_STORAGE_CLASS_Q"),description:t("WHAT_IS_STORAGE_CLASS_A")},{title:t("WHAT_IS_LOCAL_VOLUME_Q"),description:t("WHAT_IS_LOCAL_VOLUME_A")}]}},{key:"bannerProps",get:function(){return{className:"margin-b12",description:t("PERSISTENT_VOLUME_CLAIM_DESC"),module:"persistentvolumeclaims",title:t("PERSISTENT_VOLUME_CLAIM_PL")}}},{key:"routes",get:function(){return g.default.filter((function(e){return!!e.title})).map((function(e){return E(E({},e),{},{name:e.path.split("/").pop()})}))}}]),r}(p.default.Component))||u)||u;a.default=S},4162:function(e,t,a){"use strict";a(15);var r=a(20);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=a(317),u=r(a(4163)),l=r(a(4165)),o="/whizard-telemetry/:cluster/volumes",c=[{path:"".concat(o,"/Volumes"),title:"PERSISTENT_VOLUME_CLAIM_PL",component:u.default,exact:!0},{path:"".concat(o,"/PV"),title:"PERSISTENT_VOLUME_PL",component:l.default,exact:!0},(0,n.getIndexRoute)({path:o,to:"".concat(o,"/Volumes"),exact:!0})];t.default=c},4163:function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(73),r(18),r(192),r(16),r(4),r(23),r(24),r(17),r(62),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(73),r(18),r(28),r(192),r(42),r(16),r(4),r(22),r(23),r(57),r(24),r(17),r(62);var u=n(r(315)),l=n(r(43));r(41);var o,c=n(r(44)),i=n(r(36)),s=n(r(37)),d=n(r(55)),f=n(r(56)),p=n(r(51)),m=r(186),h=n(r(810)),v=n(r(788)),y=n(r(795)),g=r(793),_=n(r(1131)),E=n(r(63)),b=n(r(804)),S=n(r(0)),O=r(433),R=n(r(907)),T=n(r(831)),C=r(52),A=r(72),P=r(434),k=n(r(4164));function N(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,p.default)(e);if(t){var n=(0,p.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,f.default)(this,a)}}var D=(0,g.withClusterList)({store:new T.default,module:"persistentvolumeclaims",authKey:"persistentvolumeclaims",name:"PERSISTENT_VOLUME_CLAIM",rowKey:"uid"})(o=function(e){(0,d.default)(r,e);var a=N(r);function r(){var e;(0,i.default)(this,r);for(var n=arguments.length,u=new Array(n),o=0;o=3.2&&o.splice(2,0,l),o}},{key:"render",value:function(){var e=this.props,t=e.tableProps,a=e.match;return S.default.createElement(g.ListPage,this.props,S.default.createElement(h.default,(0,u.default)({},t,{className:"table-1-5",itemActions:this.itemActions,columns:this.getColumns(),selectActions:[],cluster:a.params.cluster,getCheckboxProps:this.getCheckboxProps})))}},{key:"tips",get:function(){return[{title:t("WHAT_IS_STORAGE_CLASS_Q"),description:t("WHAT_IS_STORAGE_CLASS_A")},{title:t("WHAT_IS_LOCAL_VOLUME_Q"),description:t("WHAT_IS_LOCAL_VOLUME_A")}]}},{key:"tabs",get:function(){return{value:"Volume",onChange:this.handleTabChange,options:[{value:"Volume",label:t("PERSISTENT_VOLUME_CLAIM")},{value:"PV",label:t("PV")}]}}},{key:"itemActions",get:function(){return[]}}]),r}(S.default.Component))||o;a.default=D},4164:function(e,t,a){e.exports={mode_title:"_3T4isUw5EVDlxkpcqj2Y5f",question:"WsiYbzPrFZvux43GLjoNV",pv_content:"_1MCPVNhmvxQrzozVlw1jtP",yaml:"_2ezSzekAV0rloYVqXAFxSP"}},4165:function(e,a,r){"use strict";var n=r(20),u=r(157);r(12),r(5),r(11),r(6),r(86),r(73),r(18),r(16),r(9),r(13),r(10),r(4),r(23),r(24),r(17),r(62),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(45),r(5),r(11),r(6),r(86),r(73),r(18),r(28),r(42),r(16),r(34),r(15),r(9),r(13),r(10),r(4),r(23),r(57),r(24),r(17),r(62),r(7);var l,o=n(r(30)),c=n(r(315)),i=n(r(36)),s=n(r(37)),d=n(r(55)),f=n(r(56)),p=n(r(51)),m=n(r(0)),h=n(r(63)),v=u(r(793)),y=n(r(796)),g=n(r(907)),_=r(52),E=r(186),b=r(434),S=r(72),O=n(r(804)),R=n(r(788)),T=n(r(795)),C=n(r(4166));function A(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function P(e){for(var t=1;t-1},e.getItemDesc=function(e){var t=(0,b.getVolumeStatus)(e);return(0,h.default)(t)?e.storageClassName||"-":m.default.createElement(O.default,{reason:t,data:e,type:"volume"})},e.getCheckboxProps=function(e){return{disabled:e.isFedManaged||["Bound"].indexOf(e.status.phase)>-1,name:e.name}},e.renderAccessTitle=function(){var e=m.default.createElement("div",null,m.default.createElement("div",null,t("ACCESS_MODE_TCAP")),m.default.createElement("div",null,"RWO (ReadWriteOnce): ",t("ACCESS_MODE_RWO")),m.default.createElement("div",null,"ROX (ReadOnlyMany): ",t("ACCESS_MODE_ROX")),m.default.createElement("div",null,"RWX (ReadWriteMany): ",t("ACCESS_MODE_RWX")));return m.default.createElement("div",{className:C.default.mode_title},t("ACCESS_MODE_TCAP"),m.default.createElement(E.Tooltip,{content:e},m.default.createElement(E.Icon,{name:"question",size:16,className:C.default.question})))},e.mapperAccessMode=function(e){var t=(0,_.map_accessModes)(e);return m.default.createElement("span",null,t.join(","))},e}return(0,s.default)(r,[{key:"getStatus",value:function(){return S.PV_STATUS.map((function(e){return{text:t(e.text),value:e.value}}))}},{key:"getColumns",value:function(){var e=this,a=this.props,r=a.getSortOrder,n=a.getFilteredValue,u=this.props.match.params.cluster;return[{title:t("NAME"),dataIndex:"name",sortOrder:r("name"),search:!0,sorter:!0,render:function(t,a){return m.default.createElement(R.default,{icon:"storage",iconSize:40,to:"Terminating"===a.phase?"":"/whizard-telemetry/".concat(u,"/pv/").concat(t),isMultiCluster:a.isFedManaged,desc:e.getItemDesc(a),title:(0,_.getDisplayName)(a)})}},{title:t("STATUS"),dataIndex:"status",isHideable:!0,search:!0,filters:this.getStatus(),filteredValue:n("status"),width:"10.56%",render:function(e){var a=e.phase;return m.default.createElement(T.default,{type:a,name:t("PV_STATUS_".concat(a.toUpperCase()))})}},{title:t("CAPACITY"),dataIndex:"capacity",isHideable:!0,width:"7%",render:function(e){return m.default.createElement("div",null,m.default.createElement("p",null,e))}},{title:this.renderAccessTitle(),dataIndex:"accessModes",isHideable:!1,width:"12.32%",render:function(t){return e.mapperAccessMode(t)}},{title:t("RECLAIM_POLICY"),dataIndex:"_originData",isHideable:!0,width:"7.74%",render:function(e){return e.spec.persistentVolumeReclaimPolicy}},{title:t("CREATION_TIME_TCAP"),dataIndex:"createTime",sorter:!0,sortOrder:r("createTime"),isHideable:!0,width:140,render:function(e){return(0,_.getLocalTime)(e).format("YYYY-MM-DD HH:mm")}}]}},{key:"render",value:function(){var e=this.props,t=e.match,a=e.tableProps;return m.default.createElement(v.ListPage,this.props,m.default.createElement(y.default,(0,c.default)({},a,{itemActions:this.itemActions,tableActions:this.tableActions,columns:this.getColumns(),cluster:t.params.cluster,getCheckboxProps:this.getCheckboxProps,renderProjectSelect:!1})))}},{key:"itemActions",get:function(){return[]}},{key:"tableActions",get:function(){return P(P({},this.props.tableProps.tableActions),{},{selectActions:[]})}}]),r}(m.default.Component))||l;a.default=N},4166:function(e,t,a){e.exports={mode_title:"_3iZqg1DUhzX135cuASjcNn",question:"_28wmcih5RA4-UrbF3hVwEF",pv_content:"zkamDsFKmP5C0PZrg84HH",yaml:"_1djaTjweZ2Cf77ddhsutHV"}},4167:function(e,a,r){"use strict";var n=r(20);r(12),r(5),r(11),r(31),r(6),r(86),r(29),r(18),r(97),r(16),r(27),r(9),r(13),r(10),r(4),r(316),r(23),r(24),r(17),r(324),r(38),r(62),r(7),r(32),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(45),r(5),r(11),r(31),r(6),r(86),r(29),r(18),r(28),r(97),r(42),r(16),r(27),r(34),r(15),r(9),r(13),r(10),r(4),r(316),r(436),r(22),r(23),r(57),r(24),r(17),r(324),r(38),r(62),r(460),r(461),r(462),r(463),r(464),r(465),r(466),r(7),r(32);var u=n(r(315)),l=n(r(43)),o=n(r(30));r(41);var c,i=n(r(44)),s=n(r(36)),d=n(r(37)),f=n(r(55)),p=n(r(56)),m=n(r(51)),h=n(r(0)),v=n(r(63)),y=n(r(26)),g=n(r(158)),_=r(186),E=r(52),b=r(72),S=r(444),O=r(794),R=n(r(856)),T=n(r(1138)),C=r(793),A=n(r(788)),P=n(r(795)),k=n(r(789)),N=n(r(790)),D=n(r(792)),w=n(r(796)),L=n(r(4168));function I(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function M(e){for(var t=1;t=.9&&h.default.createElement(_.Icon,{name:"exclamation"})),description:"".concat(r.cpu_used,"/").concat(r.cpu_total," ").concat(t("CORE_PL"))})}},{title:t("MEMORY_USAGE"),key:"memory",isHideable:!0,render:function(t){var a=e.getRecordMetrics(t,[{type:"memory_used",unit:"Gi"},{type:"memory_total",unit:"Gi"},{type:"memory_utilisation"}]);return h.default.createElement(N.default,{title:h.default.createElement("div",{className:L.default.resource},h.default.createElement("span",null,e.toPercentage(a.memory_utilisation)),a.memory_utilisation>=.9&&h.default.createElement(_.Icon,{name:"exclamation"})),description:"".concat(a.memory_used,"/").concat(a.memory_total," GiB")})}},{title:t("GPU_USAGE"),key:"gpu",isHideable:!0,render:function(t){var a=e.getRecordMetrics(t,[{type:"gpu_used",unit:"Core"},{type:"gpu_total",unit:"Core"},{type:"gpu_utilization"}]);return h.default.createElement(N.default,{title:h.default.createElement("div",{className:L.default.resource},h.default.createElement("span",null,e.toPercentage(a.gpu_utilization)),a.gpu_utilization>=.9&&h.default.createElement(_.Icon,{name:"exclamation"})),description:"".concat(a.gpu_used,"/").concat(a.gpu_total," GPU")})}},{title:t("GPU_MEMORY_USAGE"),key:"gpu_memory",isHideable:!0,render:function(t){var a=e.getRecordMetrics(t,[{type:"gpu_memory_used",unit:"Gi"},{type:"gpu_memory_total",unit:"Gi"},{type:"gpu_memory_utilization"}]);return h.default.createElement(N.default,{title:h.default.createElement("div",{className:L.default.resource},h.default.createElement("span",null,e.toPercentage(a.gpu_memory_utilization)),a.gpu_memory_utilization>=.9&&h.default.createElement(_.Icon,{name:"exclamation"})),description:"".concat(a.gpu_memory_used,"/").concat(a.gpu_memory_total," GiB")})}},{title:t("POD_PL"),key:"pods",isHideable:!0,render:function(t){var a=e.getRecordMetrics(t,[{type:"pod_used"},{type:"pod_total"}]),r=a.pod_total?parseFloat(a.pod_used/a.pod_total):0;return h.default.createElement(N.default,{title:"".concat(e.toPercentage(r)),description:"".concat(a.pod_used,"/").concat(a.pod_total)})}},{title:t("ALLOCATED_CPU"),key:"allocated_resources_cpu",isHideable:!0,render:e.renderCPUTooltip},{title:t("ALLOCATED_MEMORY"),key:"allocated_resources_memory",isHideable:!0,render:e.renderMemoryTooltip}].filter((function(t){return!e.omitKeys.has(t.key)}))},e.getRecordMetrics=function(t,a){var r={};return a.forEach((function(a){r[a.type]=e.getLastValue(t,(0,E.hideGPUByLicense)(x,e.cluster)[a.type],a.unit)})),r},e.renderCPUTooltip=function(a){var r=e.getRecordMetrics(a,[{type:"allocatable_cpu_total"},{type:"allocatable_cpu_utilisation"},{type:"limit_cpu_total"},{type:"limit_cpu_utilisation"}]),n=h.default.createElement("p",null,1===(0,E.cpuFormat)(r.limit_cpu_total)?t("CPU_LIMIT_SI",{core:(0,E.cpuFormat)(r.limit_cpu_total),percent:e.toPercentage(r.limit_cpu_utilisation)}):t("CPU_LIMIT_PL",{core:(0,E.cpuFormat)(r.limit_cpu_total),percent:e.toPercentage(r.limit_cpu_utilisation)}));return h.default.createElement(_.Tooltip,{content:n,placement:"top"},h.default.createElement(N.default,{title:1===(0,E.cpuFormat)(r.allocatable_cpu_total)?t("CPU_REQUEST_SI",{core:(0,E.cpuFormat)(r.allocatable_cpu_total),percent:e.toPercentage(r.allocatable_cpu_utilisation)}):t("CPU_REQUEST_PL",{core:(0,E.cpuFormat)(r.allocatable_cpu_total),percent:e.toPercentage(r.allocatable_cpu_utilisation)}),description:t("RESOURCE_REQUEST")}))},e.renderMemoryTooltip=function(a){var r=e.getRecordMetrics(a,[{type:"allocatable_memory_total"},{type:"allocatable_memory_utilisation"},{type:"limits_memory_total"},{type:"limits_memory_utilisation"}]),n=h.default.createElement("p",null,t("MEMORY_LIMIT_VALUE",{gib:(0,E.memoryFormat)(r.limits_memory_total,"Gi"),percent:e.toPercentage(r.limits_memory_utilisation)}));return h.default.createElement(_.Tooltip,{content:n,placement:"top"},h.default.createElement(N.default,{title:t("MEMORY_REQUEST_VALUE",{gib:(0,E.memoryFormat)(r.allocatable_memory_total,"Gi"),percent:e.toPercentage(r.allocatable_memory_utilisation)}),description:t("RESOURCE_REQUEST")}))},e}return(0,d.default)(r,[{key:"componentDidMount",value:function(){this.store.fetchCount(this.props.match.params)}},{key:"toPercentage",value:function(e){var t=(0,g.default)(e)||isNaN(e)?0:Number(e);return"".concat(Math.ceil(100*t),"%")}},{key:"getStatus",value:function(){return b.NODE_STATUS.map((function(e){return{text:t(e.text),value:e.value}}))}},{key:"renderOverview",value:function(){var e=this.store,a=e.masterNum,r=e.list.total;return h.default.createElement(k.default,{className:"margin-b12"},h.default.createElement("div",{className:L.default.overview},h.default.createElement(N.default,{icon:"nodes",title:r,description:1===r?t("NODE_SI"):t("NODE_PL")}),h.default.createElement(N.default,{title:a,description:1===a?t("MASTER_NODE_SI"):t("MASTER_NODE_PL")})))}},{key:"render",value:function(){var e=this.props,a=e.bannerProps,r=e.tableProps,n=this.monitoringStore.isLoading;return h.default.createElement(C.ListPage,(0,u.default)({},this.props,{getData:this.getData,noWatch:!0}),h.default.createElement(D.default,(0,u.default)({},a,{title:t("CLUSTER_NODE_PL"),tips:this.tips})),this.renderOverview(),h.default.createElement(w.default,(0,u.default)({},r,{itemActions:this.itemActions,tableActions:this.tableActions,columns:(0,E.hideGPUByLicense)(this.getColumns(),this.cluster),isLoading:r.isLoading||n})))}},{key:"cluster",get:function(){return this.props.match.params.cluster}},{key:"tips",get:function(){return[{title:t("NODE_TYPES_Q"),description:t("NODE_TYPES_A")},{title:t("WHAT_IS_NODE_TAINTS_Q"),description:t("WHAT_IS_NODE_TAINTS_A")}]}},{key:"itemActions",get:function(){return[]}},{key:"tableActions",get:function(){return M(M({},this.props.tableProps.tableActions),{},{actions:[],selectActions:[]})}},{key:"hasMonitoring",get:function(){return globals.app.hasClusterModule(this.cluster,"whizard-monitoring")}},{key:"omitKeys",get:function(){return new Set(this.hasMonitoring?[]:["cpu","memory","gpu","gpu_memory","pods","allocated_resources_cpu","allocated_resources_memory"])}}]),r}(h.default.Component))||c;a.default=U},4168:function(e,t,a){e.exports={taints:"_2XjrLZ7F6TpZ4ZlgAC-JJC",overview:"_1tXqgg1UCNvEXza3urHkMY",resource:"_27mkxuiI4_X-Z02imreev4",unAuthord:"Y9aPXe2oo2r0c9jL28vI3"}},4169:function(e,a,r){"use strict";var n=r(20);r(12),r(5),r(11),r(31),r(6),r(73),r(18),r(97),r(16),r(9),r(13),r(10),r(4),r(316),r(23),r(24),r(17),r(62),r(64),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(45),r(5),r(11),r(31),r(6),r(73),r(18),r(28),r(97),r(42),r(16),r(34),r(15),r(9),r(13),r(10),r(4),r(316),r(436),r(22),r(23),r(57),r(24),r(17),r(62),r(64),r(7);var u=n(r(315)),l=n(r(43)),o=n(r(30));r(41);var c,i=n(r(44)),s=n(r(36)),d=n(r(37)),f=n(r(55)),p=n(r(56)),m=n(r(51)),h=n(r(0)),v=n(r(63)),y=n(r(26)),g=r(186),_=r(52),E=r(72),b=r(444),S=r(794),O=n(r(1175)),R=n(r(1138)),T=n(r(1068)),C=r(793),A=n(r(788)),P=n(r(795)),k=n(r(790)),N=n(r(787)),D=n(r(792)),w=n(r(796)),L=n(r(4170));function I(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function M(e){for(var t=1;t0&&void 0!==d[0]?d[0]:{},r=a.silent,n=(0,c.default)(a,["silent"]),e.query=n,n.type=n.type||"user",e.type=n.type,u=e.props,l=u.store,i=u.match,s=i.params.cluster,r&&(l.list.silent=!0),t.next=9,l.fetchList(k(k({},e.props.match.params),n));case 9:return t.next=11,e.monitoringStore.fetchMetrics(k(k({},e.props.match.params),{},{resources:l.list.data.map((function(e){return e.name})),metrics:Object.values((0,C.hideGPUByLicense)(D,s)),last:!0}));case 11:l.list.silent=!1;case 12:case"end":return t.stop()}}),t)}))),e.getLastValue=function(t,a){var r=e.monitoringStore.data,n=((0,S.default)(r,"".concat(a,".data.result"))||[]).find((function(e){return(0,S.default)(e,"metric.namespace")===t.name}));return(0,S.default)(n,"value[1]",0)},e.getColumns=function(){var a=e.props,r=a.getSortOrder,n=a.prefix;return[{title:t("NAME"),dataIndex:"name",sorter:!0,sortOrder:r("name"),render:function(e,t){return O.default.createElement(y.default,{to:"Terminating"===t.status?null:"".concat(n,"/").concat(e),icon:"project",iconSize:40,isMultiCluster:t.isFedHostNamespace,desc:t.description||"-",title:(0,C.getDisplayNameNew)(t)})}},{title:t("STATUS"),dataIndex:"status",isHideable:!0,render:function(e){return O.default.createElement(g.default,{type:e,name:t(e.toUpperCase()),flicker:!0})}},{title:t("WORKSPACE"),dataIndex:"workspace",isHideable:!0},{title:t("CPU_USAGE"),key:"namespace_cpu_usage",isHideable:!0,render:function(t){return(0,A.getSuitableValue)(e.getLastValue(t,D.cpu),"cpu","-")}},{title:t("MEMORY_USAGE"),key:"namespace_memory_usage_wo_cache",isHideable:!0,render:function(t){return(0,A.getSuitableValue)(e.getLastValue(t,D.memory),"memory","-")}},{title:t("GPU_USAGE"),key:"namespace_gpu_usage",isHideable:!0,render:function(t){return(0,A.getSuitableValue)(e.getLastValue(t,D.gpu),"gpu","-")}},{title:t("GPU_MEMORY_USAGE"),key:"namespace_gpu_memory_usage",isHideable:!0,render:function(t){return(0,A.getSuitableValue)(e.getLastValue(t,D.gpu_memory),"memory","-")}},{title:t("POD_PL"),key:"namespace_pod_count",isHideable:!0,render:function(t){return e.getLastValue(t,D.pod)}}].filter((function(t){return!e.omitKeys.has(t.key)}))},e.showCreate=function(){return e.props.trigger("project.create",k(k({},e.props.match.params),{},{success:function(){return e.getData()}}))},e}return(0,p.default)(r,[{key:"render",value:function(){var e=this.props,t=e.bannerProps,a=e.tableProps,r=e.match.params.cluster,n=this.monitoringStore.isLoading,u=(0,C.hideGPUByLicense)(this.getColumns(),r);return O.default.createElement(E.ListPage,(0,l.default)({},this.props,{getData:this.getData,module:"namespaces"}),O.default.createElement(_.default,(0,l.default)({},t,{tabs:this.tabs})),O.default.createElement(b.default,(0,l.default)({className:"table-1-7"},a,{itemActions:this.itemActions,tableActions:this.tableActions,columns:u,onCreate:"system"===this.type?null:this.showCreate,isLoading:a.isLoading||n,searchType:"name"})))}},{key:"itemActions",get:function(){return[]}},{key:"tableActions",get:function(){return k(k({},this.props.tableProps.tableActions),{},{actions:[],onFetch:this.handleFetch,selectActions:[]})}},{key:"tabs",get:function(){return{value:this.type||"user",onChange:this.handleTabChange,options:[{value:"user",label:t("USER_PROJECTS")},{value:"system",label:t("SYSTEM_PROJECTS")}]}}},{key:"hasMonitoring",get:function(){var e=this.props.match.params.cluster;return globals.app.hasClusterModule(e,"whizard-monitoring")}},{key:"omitKeys",get:function(){return new Set(this.hasMonitoring?[]:["namespace_cpu_usage","namespace_memory_usage_wo_cache","namespace_gpu_usage","namespace_gpu_memory_usage","namespace_pod_count"])}}]),r}(O.default.Component))||i;a.default=w},4172:function(e,a,r){"use strict";var n=r(20),u=r(157);r(12),r(5),r(11),r(6),r(16),r(9),r(13),r(10),r(4),r(23),r(24),r(17),r(62),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(45),r(5),r(11),r(6),r(28),r(42),r(16),r(34),r(15),r(9),r(13),r(10),r(4),r(23),r(57),r(24),r(17),r(62),r(7);var l,o=n(r(30)),c=n(r(315)),i=n(r(36)),s=n(r(37)),d=n(r(55)),f=n(r(56)),p=n(r(51)),m=n(r(0)),h=n(r(788)),v=n(r(792)),y=n(r(796)),g=u(r(793)),_=r(52),E=n(r(1070));function b(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function S(e){for(var t=1;t1?t("LOAD_BALANCERS_SCAP"):t("LOAD_BALANCER_SCAP"),a.title=e.loadBalancerIngress.join("; ")),e.externalName?g.default.createElement(h.default,{description:a.des,title:function(){return g.default.createElement(f.Tooltip,{content:e.externalName},g.default.createElement("span",null,a.title))}}):g.default.createElement(h.default,{description:t("".concat(a.des)),title:a.title})},e.getColumns=function(){var a=e.props,r=a.getSortOrder,n=a.module,u=e.props.match.params.cluster;return[{title:t("NAME"),dataIndex:"name",sorter:!0,sortOrder:r("name"),search:!0,width:"24%",render:function(e,t){return g.default.createElement(m.default,{icon:S.ICON_TYPES[n],iconSize:40,title:(0,b.getDisplayName)(t),desc:t.description||"-",isMultiCluster:t.isFedManaged,to:"/whizard-telemetry/".concat(u,"/projects/").concat(t.namespace,"/").concat(n,"/").concat(e)})}},{title:t("PROJECT"),dataIndex:"namespace",isHideable:!0,width:"18%",render:function(e){return g.default.createElement(_.Link,{to:"/whizard-telemetry/".concat(u,"/projects/").concat(e)},(0,b.showNameAndAlias)(e,"project"))}},{title:t("INTERNAL_ACCESS"),dataIndex:'annotations["kubesphere.io/serviceType"]',isHideable:!0,width:"16%",render:function(e,a){return g.default.createElement(h.default,{title:a.clusterIP||"",description:t("".concat(a.type))})}},{title:t("EXTERNAL_ACCESS"),dataIndex:"specType",isHideable:!0,width:"20%",render:function(t,a){return e.renderExternalService(a)}},{title:t("CREATION_TIME_TCAP"),dataIndex:"createTime",sorter:!0,sortOrder:r("createTime"),isHideable:!0,width:150,render:function(e){return(0,b.getLocalTime)(e).format("YYYY-MM-DD HH:mm:ss")}}]},e}return(0,c.default)(r,[{key:"render",value:function(){var e=this.props,t=e.match,a=e.bannerProps,r=e.tableProps;return g.default.createElement(y.ListPage,this.props,g.default.createElement(v.default,a),g.default.createElement(p.default,(0,l.default)({},r,{itemActions:this.itemActions,selectActions:this.selectActions,columns:this.getColumns(),cluster:t.params.cluster,getCheckboxProps:this.getCheckboxProps})))}},{key:"itemActions",get:function(){return[]}},{key:"selectActions",get:function(){return[]}}]),r}(g.default.Component))||u;a.default=R},4181:function(e,a,r){"use strict";var n=r(20);r(12),r(11),r(6),r(18),r(9),r(13),r(10),r(4),r(23),r(24),r(17),r(62),r(136),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(45),r(11),r(6),r(18),r(28),r(42),r(34),r(15),r(9),r(13),r(10),r(4),r(23),r(57),r(24),r(17),r(62),r(7);var u,l=n(r(30)),o=n(r(36)),c=n(r(37)),i=n(r(55)),s=n(r(56)),d=n(r(51)),f=n(r(0)),p=r(239),m=r(186),h=n(r(792)),v=r(317),y=n(r(883)),g=n(r(4182));function _(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function E(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};r.monitorStore.fetchMetrics(O({metrics:Object.values(T),step:"60m",times:100},e))},r.monitorStore=new g.default,r.fetchData(),r}return(0,c.default)(a,[{key:"renderChart",value:function(){var e,t=(0,y.getAreaChartOps)({title:"PROJECT_COUNT",unit:"",legend:["PROJECT_COUNT"],data:null!==(e=(0,h.default)(this.metrics,"".concat(T.namespace_count,".data.result")))&&void 0!==e?e:[{values:(0,y.getZeroValues)()}]});return f.default.createElement(E.SimpleArea,(0,u.default)({width:"100%",bgColor:"transparent"},t))}},{key:"render",value:function(){var e=this.monitorStore,t=e.isLoading,a=e.isRefreshing,r=(0,m.default)(this.metrics);return f.default.createElement(_.Loading,{spinning:t},f.default.createElement("div",{className:b.default.card},f.default.createElement(v.Controller,{step:"1h",times:24,onFetch:this.fetchData,loading:t,refreshing:a,isEmpty:r},this.renderChart())))}},{key:"metrics",get:function(){return this.monitorStore.data}}]),a}(f.default.Component))||n)||n;t.default=C},4204:function(e,t,a){},4205:function(e,t,a){"use strict";a(15);var r=a(20);a(4),a(23),a(24),a(17),a(62),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(45),a(42),a(4),a(23),a(57),a(24),a(17),a(62);var n=r(a(36)),u=r(a(37)),l=r(a(55)),o=r(a(56)),c=r(a(51)),i=r(a(0)),s=r(a(4206)),d=r(a(4209));function f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,c.default)(e);if(t){var n=(0,c.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,o.default)(this,a)}}var p=function(e){(0,l.default)(a,e);var t=f(a);function a(){return(0,n.default)(this,a),t.apply(this,arguments)}return(0,u.default)(a,[{key:"render",value:function(){return i.default.createElement("div",{className:d.default.wrapper},i.default.createElement(s.default,{cluster:this.props.match.params.cluster}))}}]),a}(i.default.Component);t.default=p},4206:function(e,a,r){"use strict";r(15);var n=r(20);r(18),r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(18),r(42),r(4),r(23),r(57),r(17);var u,l=n(r(36)),o=n(r(37)),c=n(r(55)),i=n(r(56)),s=n(r(51)),d=n(r(0)),f=r(239),p=n(r(3)),m=n(r(886)),h=r(186),v=n(r(1211)),y=r(52),g=n(r(4207)),_=n(r(4208));function E(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,s.default)(e);if(t){var n=(0,s.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,i.default)(this,a)}}var b=["namespace_cpu_usage","namespace_memory_usage_wo_cache","namespace_gpu_usage","namespace_gpu_memory_usage","namespace_pod_count","namespace_net_bytes_received","namespace_net_bytes_transmitted"],S=(0,f.observer)(u=function(e){(0,c.default)(r,e);var a=E(r);function r(e){var t;return(0,l.default)(this,r),(t=a.call(this,e)).download=function(){t.store.download("project.usage.rank.json")},t.store=new v.default({limit:10,sort_type:"desc",cluster:e.cluster,sort_metric_options:(0,y.hideGPUByLicense)(b,e.cluster)}),t}return(0,o.default)(r,[{key:"componentDidMount",value:function(){this.store.fetchAll()}},{key:"render",value:function(){return d.default.createElement("div",{className:_.default.wrapper},this.renderToolbar(),this.renderList())}},{key:"renderToolbar",value:function(){var e=this;return d.default.createElement("div",{className:(0,p.default)(_.default.toolbar,_.default.pane__toolbar,_.default.pane)},d.default.createElement("div",{className:_.default.toolbar_filter},d.default.createElement(h.Select,{value:this.store.sort_metric,onChange:this.store.changeSortMetric,options:this.options}),d.default.createElement("span",{className:_.default.sort_button},d.default.createElement(h.Icon,{name:"desc"===this.store.sort_type?"sort-descending":"sort-ascending",type:"coloured",size:"small",onClick:function(){return e.store.changeSortType()}}))),d.default.createElement("div",{className:_.default.toolbar_buttons},d.default.createElement(h.Button,{onClick:this.download},t("EXPORT"))))}},{key:"renderList",value:function(){return d.default.createElement(h.Loading,{spinning:this.store.isLoading},d.default.createElement("div",null,d.default.createElement(g.default,{cluster:this.props.cluster,store:this.store,prefix:"/whizard-telemetry"}),this.renderPagination()))}},{key:"renderPagination",value:function(){var e=this.store,t=e.page,a=e.total,r=e.limit;return d.default.createElement("div",{className:(0,p.default)(_.default.pane,_.default.pane__pagination)},d.default.createElement(m.default,{page:t,total:a,limit:r,onChange:this.store.changePagination}))}},{key:"options",get:function(){return this.store.sort_metric_options.map((function(e){return{value:e,label:t("SORT_BY_".concat(e.toUpperCase()))}}))}}]),r}(d.default.Component))||u;a.default=S},4207:function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(27),r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(42),r(27),r(4),r(23),r(57),r(17);var u,l=n(r(36)),o=n(r(37)),c=n(r(55)),i=n(r(56)),s=n(r(51)),d=n(r(788)),f=n(r(846)),p=n(r(987)),m=r(239),h=n(r(0)),v=r(52),y=r(794);function g(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,s.default)(e);if(t){var n=(0,s.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,i.default)(this,a)}}var _=(0,m.inject)("rootStore")(u=(0,m.observer)(u=function(e){(0,c.default)(r,e);var a=g(r);function r(){var e;(0,l.default)(this,r);for(var n=arguments.length,u=new Array(n),o=0;o1&&void 0!==arguments[1]?arguments[1]:"";return isNaN(e)?"-":"".concat(e," ").concat(t)}},{key:"render",value:function(){var e=this.props,t=e.theme,a=e.store,r=e.cluster,n=this.props.store.data,u=(0,v.hideGPUByLicense)(this.columns,r);return h.default.createElement(p.default,{theme:t,columns:u,store:a,dataSource:n.toJS(),emptyText:h.default.createElement(f.default,null)})}},{key:"prefix",get:function(){var e=this.props,t=e.workspace,a=e.cluster,r=e.prefix,n=void 0===r?"/clusters":r;return"".concat(t?"/".concat(t):"").concat(n,"/").concat(a,"/projects")}}]),r}(h.default.Component))||u)||u;a.default=_},4208:function(e,t,a){e.exports={wrapper:"_2QEE0kA5oK3yiR5F6NJ_EH",pane:"_31ZPRBnP6uo15ShSfybmEC",pane__toolbar:"_3SbSBYQmiUm1PQleDJ5vH",pane__pagination:"ydHR7y7UOyE_D7JIJFiul",title:"_1wjlM5f84incd6IxPjFeQJ",toolbar:"_3MkuGiM5u4B6e9PyVpYdy6",toolbar_buttons:"WVJZaW6cbDxrcaHir3WpA",toolbar_filter:"_2PEY7Til2l8LMGkvefBQ0F",sort_button:"_2mogoX-bAf8_dO7maUFDs0",table:"_2MhZIj6mrL3Z3M_-BpqjyP",table_rank:"_36LLCV84MnD4R4sCESppwj",table_no_border:"_2zUvkXapImNxQRxJokvitf",rankList_row:"_1dTdOaYl30Ixx7flGC4HzK",rankLink__sort_col:"ngGYUZ7bVL-4ZRRi6u6hT"}},4209:function(e,t,a){e.exports={wrapper:"_2_GA-aA3dcjHwTTo42BDsA",pane:"_2Fg_H23gi6f42CuvKoE3h_",tabs:"_1BARvYoq_2_Sd9Q31qYDKq",selected:"d8kln6abpJZWeNhFKJBaa"}},4210:function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(11),r(84),r(18),r(16),r(9),r(4),r(23),r(24),r(17),r(85),r(62),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(11),r(84),r(18),r(28),r(42),r(16),r(9),r(4),r(23),r(57),r(24),r(17),r(85),r(62);var u,l,o=n(r(36)),c=n(r(37)),i=n(r(55)),s=n(r(56)),d=n(r(51)),f=n(r(49)),p=n(r(0)),m=r(239),h=r(14),v=n(r(3)),y=n(r(26)),g=r(433),_=r(186),E=n(r(790)),b=n(r(789)),S=n(r(792)),O=n(r(1861)),R=r(52),T=n(r(1862)),C=n(r(4214));function A(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,d.default)(e);if(t){var n=(0,d.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,s.default)(this,a)}}var P=(0,m.inject)("rootStore")(u=(0,m.observer)((l=function(e){(0,i.default)(r,e);var a=A(r);function r(){var e;(0,o.default)(this,r);for(var t=arguments.length,n=new Array(t),u=0;u0?"builtin":""}},{key:"listUrl",get:function(){var e=this.props.match.params.cluster,t=this.type;return"/whizard-telemetry/".concat(e,"/alert-rules").concat(t?"?type=".concat(t):"")}},{key:"routing",get:function(){return this.props.rootStore.routing}}]),r}(p.default.Component))||u)||u)||u;a.default=k},4219:function(e,t,a){"use strict";a(15);var r=a(20);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=a(317),u=r(a(4220)),l=r(a(4227));t.default=function(e){return[{path:"".concat(e,"/rules"),title:"ALERTING_RULE",component:u.default,exact:!0},{path:"".concat(e,"/messages"),title:"ALERTING_MESSAGE_PL",component:l.default,exact:!0},(0,n.getIndexRoute)({path:e,to:"".concat(e,"/rules"),exact:!0})]}},4220:function(e,a,r){"use strict";var n=r(20);r(12),r(5),r(11),r(6),r(86),r(29),r(18),r(48),r(192),r(16),r(326),r(27),r(9),r(13),r(10),r(4),r(23),r(24),r(17),r(38),r(62),r(7),r(32),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(45),r(5),r(11),r(6),r(86),r(29),r(18),r(28),r(48),r(192),r(42),r(16),r(326),r(27),r(34),r(15),r(9),r(13),r(10),r(4),r(23),r(57),r(24),r(17),r(38),r(62),r(7),r(32);var u,l=n(r(30)),o=n(r(36)),c=n(r(37)),i=n(r(55)),s=n(r(56)),d=n(r(51)),f=n(r(0)),p=r(14),m=r(239),h=n(r(26)),v=n(r(63)),y=n(r(789)),g=n(r(4221)),_=n(r(4222)),E=n(r(4223)),b=n(r(4224)),S=n(r(4225));function O(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function R(e){for(var t=1;t0?"builtin":""}},{key:"rules",get:function(){var e=[],t=(0,p.toJS)((0,h.default)(this.store,"detail._originDataWithStatus.spec.rules",[]));if("builtin"===this.type){var a=new Map;return t.forEach((function(r,n){if(a.has(r.alert)){var u=a.get(r.alert),l={for:(0,h.default)(e[u],"for",""),value:t[u]},o={for:(0,h.default)(r,"for",""),value:r};if(""!==l.for||""!==o.for){var c=C[l.for.slice(-1)],i=C[o.for.slice(-1)];if(c===i)Number(l.for.slice(0,-1))0&&void 0!==arguments[0]?arguments[0]:{},t=e.cluster,a=e.namespace,r=this.props.match.params,n=r.cluster,u=r.namespace,l=r.workspace;return t=t||n,a=a||u,"".concat(l?"/".concat(l):"","/clusters/").concat(t).concat(a?"/projects/".concat(a):"")}},{key:"render",value:function(){var e=this.store.list,a=e.data,r=e.isLoading,n=e.filters;return f.default.createElement(S.default,{title:t("ALERTING_MESSAGE_PL"),loading:r},(0,v.default)(a)?f.default.createElement("div",null,t("NO_DATA_DESC")):f.default.createElement(T.default,{className:C.default.table,filters:n,data:a,name:"Alerting Message",rowKey:"value",columns:this.getColumns(),selectedRowKeys:[],selectActions:[],hideHeader:!0,hideFooter:!0}))}},{key:"type",get:function(){return this.props.match.url.indexOf("alert-rules/builtin")>0?"builtin":""}}]),r}(f.default.Component))||u;a.default=N},4228:function(e,t,a){e.exports={table:"Yu_csta5p94Of2yHhu3v8"}},4229:function(e,t,a){e.exports={icon:"ZXyTQ36NBIPIDv0Nd0QEN"}},4230:function(e,a,r){"use strict";var n=r(20);r(12),r(5),r(11),r(6),r(16),r(9),r(13),r(10),r(4),r(23),r(24),r(17),r(62),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(45),r(5),r(11),r(6),r(28),r(42),r(16),r(34),r(15),r(9),r(13),r(10),r(4),r(22),r(23),r(57),r(24),r(17),r(62),r(7);var u=n(r(315)),l=n(r(30)),o=n(r(43));r(41);var c,i=n(r(44)),s=n(r(36)),d=n(r(37)),f=n(r(55)),p=n(r(56)),m=n(r(51)),h=n(r(0)),v=n(r(63)),y=r(239),g=r(186),_=n(r(831)),E=n(r(795)),b=r(52),S=r(791),O=r(14),R=n(r(914)),T=n(r(910)),C=n(r(805)),A=n(r(4231));function P(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function k(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=n.store.detail,a=t.cluster,r=t.name;e.keyword&&(e.name=e.keyword,delete e.keyword),n.volumeSnapshotStore.fetchList(S({volumeSnapshotClassName:r,cluster:a},e))},n.getColumns=function(){return[{title:t("NAME"),dataIndex:"name",render:function(e,t){return f.default.createElement(v.default,{icon:"snapshot",iconSize:40,title:(0,m.getDisplayName)(t),to:"/whizard-telemetry/".concat(t.cluster,"/projects/").concat(t.namespace,"/volume-snapshots/").concat(e),desc:t.snapshotClassName,noLink:!0})}},{title:t("STATUS"),dataIndex:"backupStatus",width:"20.5%",render:function(e,a){return f.default.createElement(g.default,{type:a.readyToUse?"ready":"failed",name:a.readyToUse?t("READY"):t("UNREADY")})}},{title:t("CAPACITY"),dataIndex:"restoreSize",width:"20.5%",render:function(e){return e}},{title:t("CREATION_TIME_TCAP"),dataIndex:"createTime",width:"20.5%",render:function(e){return(0,m.getLocalTime)(e).format("YYYY-MM-DD HH:mm:ss")}}]},n.volumeSnapshotStore=e.volumeSnapshotStore||new h.default,n}return(0,c.default)(r,[{key:"componentDidMount",value:function(){this.handleFetch()}},{key:"render",value:function(){var e=this.volumeSnapshotStore.list,a=e.data,r=e.filters,n=e.isLoading,u={total:e.total,page:e.page,limit:e.limit};return f.default.createElement(y.default,{title:t("VOLUME_SNAPSHOT_PL"),loading:n,empty:t("NO_AVAILABLE_RESOURCE_VALUE",{resource:t("VOLUME_SNAPSHOT")}),className:E.default.noPadding},f.default.createElement(_.default,{className:E.default.table,data:a,columns:this.getColumns(),searchType:"name",keyword:r.name,filters:r,placeholder:t("SEARCH_BY_NAME"),pagination:u,isLoading:n,onFetch:this.handleFetch}))}},{key:"store",get:function(){return this.props.detailStore}},{key:"storageClassName",get:function(){return this.store.detail.name}}]),r}(f.default.Component))||u)||u;a.default=R},4259:function(e,t,a){e.exports={noPadding:"_32GvzFp8CBTc2jzUDXyVx5"}},4260:function(e,t,a){"use strict";a(15);var r=a(20);a(5),a(4),a(23),a(24),a(17),a(62),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(45),a(5),a(42),a(4),a(23),a(57),a(24),a(17),a(62);var n,u=r(a(36)),l=r(a(37)),o=r(a(55)),c=r(a(56)),i=r(a(51)),s=a(239),d=a(1848);function f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,i.default)(e);if(t){var n=(0,i.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,c.default)(this,a)}}var p=(0,s.inject)("rootStore")(n=(0,s.observer)(n=function(e){(0,o.default)(a,e);var t=f(a);function a(){var e;(0,u.default)(this,a);for(var r=arguments.length,n=new Array(r),l=0;l0&&void 0!==arguments[0]?arguments[0]:{},t=n.store.detail,a=t.cluster,r=t.name;e.keyword&&(e.name=e.keyword,delete e.keyword),n.volumeStore.fetchList(A({storageClassName:r,cluster:a},e))},n.getColumns=function(){return[{title:t("NAME"),dataIndex:"name",render:function(e,t){return S.default.createElement(m.default,{icon:"storage",title:(0,R.getDisplayName)(t),noLink:!0})}},{title:t("STATUS"),dataIndex:"phase",width:"13%",render:function(e){return S.default.createElement(y.default,{type:e,name:t("VOLUME_STATUS_".concat(e.toUpperCase()))})}},{title:t("CAPACITY"),dataIndex:"capacity",width:"13%",render:function(e){return e||"-"}},{title:t("MOUNT_STATUS"),dataIndex:"inUse",width:"13%",render:function(e,t){return S.default.createElement(_.default,{namespace:t.namespace,cluster:t.cluster,name:t.name})}},{title:t("PROJECT"),dataIndex:"namespace",key:"namespace",width:"13%",customizable:!0,render:function(e){return(0,R.showNameAndAlias)(e,"project")}},{title:t("CREATION_TIME_TCAP"),dataIndex:"createTime",width:"21%",render:function(e){return(0,R.getLocalTime)(e).format("YYYY-MM-DD HH:mm:ss")}}]},n.renderResizeItem=function(e){var t=e.src,a=e.title,r=e.des,n=e.iconName,u=e.key;return S.default.createElement("div",{key:u,className:(0,p.default)(T.default.item,T.default.item_bg)},n?S.default.createElement(f.Icon,{name:n,size:40}):S.default.createElement("img",{src:t,className:T.default.icon}),S.default.createElement("div",null,S.default.createElement("span",{className:T.default.title},a),S.default.createElement("span",{className:T.default.des},r)))},n.renderResize=function(){var e=n.props.detailStore.detail.annotations,a=JSON.parse((0,E.default)(e,"resize.kubesphere.io/enabled","false")),r=JSON.parse((0,E.default)(e,"restart.kubesphere.io/enabled","false")),u=(0,E.default)(e,"resize.kubesphere.io/storage-limit","10000Gi"),l=(0,E.default)(e,"resize.kubesphere.io/threshold","10%"),o=(0,E.default)(e,"resize.kubesphere.io/increase","10%"),c=(0,E.default)(e,"restart.kubesphere.io/max-time","300"),i={title:t("VALUE_TIMEOUT",{value:c}),iconName:"history-duotone",des:t("RESTART_WORKLOAD_AUTOMATICALLY")},s=[{iconName:"storage",title:u,des:t("MAXIMUM_SIZE_SCAP")},{src:"/assets/chart.svg",title:l,des:t("THRESHOLD")},{iconName:"stretch",title:o,des:t("INCREMENT")}];return r&&s.push(i),a&&S.default.createElement(v.default,null,S.default.createElement("div",{className:(0,p.default)(T.default.item,T.default.top)},S.default.createElement("img",{src:"/assets/storageclass_autoresizer.svg",className:T.default.icon}),S.default.createElement("div",null,S.default.createElement("span",{className:T.default.title},t("AUTO_EXPANSION")),S.default.createElement("span",{className:T.default.des},t("AUTO_EXPANSION_DESC")))),S.default.createElement("div",{className:T.default.bottom},s.map((function(e,t){return n.renderResizeItem(A(A({},e),{},{key:t}))}))))},n.volumeStore=e.volumeStore||new O.default,n}return(0,c.default)(r,[{key:"componentDidMount",value:function(){this.handleFetch()}},{key:"render",value:function(){var e=this.volumeStore.list,a=e.data,r=e.filters,n=e.isLoading,u={total:e.total,page:e.page,limit:e.limit};return S.default.createElement(S.default.Fragment,null,this.renderResize(),S.default.createElement(h.default,{title:t("PERSISTENT_VOLUME_CLAIM_PL"),loading:n,empty:t("NO_AVAILABLE_RESOURCE_VALUE",{resource:t("PERSISTENT_VOLUME_CLAIM")})},S.default.createElement(g.default,{className:T.default.table,data:a,columns:this.getColumns(),searchType:"name",keyword:r.name,filters:r,placeholder:t("SEARCH_BY_NAME"),pagination:u,isLoading:n,onFetch:this.handleFetch})))}},{key:"store",get:function(){return this.props.detailStore}},{key:"storageClassName",get:function(){return this.store.detail.name}}]),r}(S.default.Component))||u)||u;a.default=k},4294:function(e,t,a){e.exports={table:"Dsz63huoEIbL53qWEDuoE",top:"_1StebFGFAh6ECnu9rUCL7G",item:"_-0ltGlivgzITT_bl32rnD",icon:"_3xJHPO0yJS0LKwouDHdAQv",title:"_25xNsUEaqv9Jr4gY8zUyHK",des:"_3pHBqft7L-rt-nUoShz6Ww",bottom:"StnMpbCakrgf3NNWIEvV8",item_bg:"_1tepIxXqtmhkhELh9wHDX9"}},4295:function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(16),r(4),r(23),r(24),r(17),r(62),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(42),r(16),r(4),r(23),r(57),r(24),r(17),r(62);var u,l=n(r(315)),o=n(r(36)),c=n(r(37)),i=n(r(55)),s=n(r(56)),d=n(r(51)),f=n(r(0)),p=r(14),m=r(239),h=n(r(63)),v=r(186),y=r(52),g=r(791),_=n(r(1070)),E=n(r(823)),b=n(r(4296));function S(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,d.default)(e);if(t){var n=(0,d.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,s.default)(this,a)}}var O=(0,m.inject)("rootStore")(u=(0,m.observer)(u=(0,g.trigger)(u=function(e){(0,i.default)(r,e);var a=S(r);function r(){var e;(0,o.default)(this,r);for(var n=arguments.length,u=new Array(n),l=0;l-1?localStorage.getItem("federated-cluster"):e}},{key:"namespace",get:function(){return this.props.match.params.namespace}},{key:"listUrl",get:function(){var e=this.props.match.params.workspace;return"".concat(this.props.match.url.split("gateways")[0],e?"gateways":"gateways/cluster")}}]),r}(f.default.Component))||u)||u)||u;a.default=R},4305:function(e,t,a){"use strict";a(15);var r=a(20);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=a(317),u=r(a(4306)),l=r(a(4307)),o=r(a(4314)),c=r(a(4322)),i=r(a(4323));t.default=function(e){return[{path:"".concat(e,"/monitors"),title:"MONITORING",component:l.default,exact:!0},{path:"".concat(e,"/gateway-configs"),title:"CONFIGURATION_OPTIONS",component:c.default,exact:!0},{path:"".concat(e,"/logs"),title:"GATEWAY_LOGS",component:i.default,exact:!0},{path:"".concat(e,"/resource-status"),title:"RESOURCE_STATUS",component:o.default,exact:!0},{path:"".concat(e,"/metadata"),title:"METADATA",component:u.default,exact:!0},(0,n.getIndexRoute)({path:e,to:"".concat(e,"/monitors"),exact:!0})]}},4306:function(e,a,r){"use strict";r(15);var n=r(20),u=r(157);r(18),r(98),r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(18),r(42),r(98),r(4),r(23),r(57),r(17);var l,o=n(r(96)),c=n(r(36)),i=n(r(37)),s=n(r(55)),d=n(r(56)),f=n(r(51)),p=u(r(0)),m=n(r(789)),h=n(r(63)),v=r(239),y=n(r(1864));function g(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,f.default)(e);if(t){var n=(0,f.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,d.default)(this,a)}}var _=(0,v.inject)("detailStore")(l=(0,v.observer)(l=function(e){(0,s.default)(r,e);var a=g(r);function r(){return(0,c.default)(this,r),a.apply(this,arguments)}return(0,i.default)(r,[{key:"render",value:function(){var e=this.detail.annotations;return p.default.createElement(m.default,{title:t("ANNOTATION_PL")},p.default.createElement("div",{className:y.default.container},p.default.createElement("ul",null,(0,h.default)(e)?p.default.createElement("li",null,t("NO_DATA")):Object.entries(e).map((function(e){var t=(0,o.default)(e,2),a=t[0],r=t[1];return p.default.createElement("li",{key:a},p.default.createElement("span",{className:y.default.key},a),p.default.createElement("span",null,r))})))))}},{key:"store",get:function(){return this.props.detailStore}},{key:"detail",get:function(){return this.store.gateway.data||{}}}]),r}(p.Component))||l)||l;a.default=_},4307:function(e,a,r){"use strict";var n=r(20);r(12),r(5),r(11),r(6),r(86),r(18),r(16),r(9),r(13),r(10),r(4),r(316),r(23),r(24),r(17),r(62),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(45),r(5),r(11),r(6),r(86),r(18),r(28),r(42),r(16),r(34),r(15),r(9),r(13),r(10),r(4),r(316),r(22),r(23),r(57),r(24),r(17),r(62),r(7);var u=n(r(315)),l=n(r(43)),o=n(r(30));r(41);var c,i=n(r(44)),s=n(r(36)),d=n(r(37)),f=n(r(55)),p=n(r(56)),m=n(r(51)),h=n(r(0)),v=r(239),y=n(r(26)),g=n(r(63)),_=r(794),E=n(r(1075)),b=r(186),S=r(822),O=r(798),R=n(r(4308));function T(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function C(e){for(var t=1;t-1?localStorage.getItem("federated-cluster"):e}},{key:"namespace",get:function(){return this.props.match.params.namespace}},{key:"metrics",get:function(){return this.monitorStore.data}}]),r}(h.default.Component))||c)||c;a.default=k},4308:function(e,a,r){"use strict";var n=r(20);r(12),r(5),r(11),r(6),r(84),r(86),r(18),r(16),r(27),r(190),r(9),r(13),r(10),r(4),r(316),r(23),r(24),r(17),r(85),r(62),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(45),r(5),r(11),r(6),r(84),r(86),r(18),r(28),r(42),r(16),r(27),r(190),r(34),r(15),r(9),r(13),r(10),r(4),r(316),r(22),r(23),r(57),r(24),r(17),r(85),r(62),r(7);var u=n(r(43)),l=n(r(30));r(41);var o=n(r(44)),c=n(r(36)),i=n(r(37)),s=n(r(88)),d=n(r(55)),f=n(r(56)),p=n(r(51)),m=n(r(0)),h=r(186),v=r(798),y=n(r(3)),g=r(1853),_=n(r(1075)),E=n(r(63)),b=n(r(26)),S=r(794),O=n(r(4309)),R=n(r(4313));function T(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function C(e){for(var t=1;t-1?Number(a).toFixed(4):isNaN(Number(a))?0:a;t[e.metric_name]=r})),t}},e.handleAutoRefresh=function(){e.setState({autoRefresh:!e.state.autoRefresh},(function(){e.state.autoRefresh?(0,S.startAutoRefresh)((0,s.default)(e)):(0,S.stopAutoRefresh)((0,s.default)(e))}))},e.handleRefresh=function(){e.fetchData()},e.renderAutoRefresh=function(){var t=e.state,a=t.enableAutoRefresh,r=t.autoRefresh;return a?m.default.createElement(h.Button,{className:R.default.button,type:"control",icon:r?"pause":"start",iconType:"light",onClick:e.handleAutoRefresh}):null},e.getMetricsData=function(t){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return(0,b.default)(e.state.metrics,"".concat(t),a)},e.renderCustomLegend=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=(e.className,e.payload),r=e.activeSeries,n=void 0===r?[]:r,u=e.showAll,o=void 0!==u&&u,c=a||[];if(c.length<2&&!o)return m.default.createElement("div",{className:R.default.legend});var i=function(t){var a=e.onClick;a&&a(t,(0,b.default)(t.target,"dataset.key"))};return m.default.createElement("div",{className:R.default.legend,onClick:i},c.map((function(e){var a=!n.includes(e.value),r=(0,b.default)(e,"payload.stroke");return m.default.createElement("div",{key:e.dataKey,"data-key":e.dataKey,className:(0,y.default)(R.default.item,(0,l.default)({},R.default.inactive,a))},m.default.createElement("i",{style:{backgroundColor:r}}),t(e.value))})))},e}return(0,i.default)(r,[{key:"componentDidMount",value:function(){this.fetchData(this.props.match.params)}},{key:"render",value:function(){var e=this.state,a=e.duration,r=e.errorType;return m.default.createElement("div",{className:R.default.overview},m.default.createElement("div",{className:R.default.header},m.default.createElement("p",{className:R.default.title},t("OVERVIEW")),m.default.createElement("div",{className:R.default.operations},m.default.createElement(O.default,{duration:a,onChange:this.handleChange}),this.renderAutoRefresh(),m.default.createElement(h.Button,{className:R.default.button,type:"control",icon:"refresh",iconType:"light",onClick:this.handleRefresh}))),m.default.createElement("div",{className:R.default.body},m.default.createElement("div",{className:R.default.left},m.default.createElement("div",{className:R.default.item},m.default.createElement(h.Icon,{name:"gateway",size:56}),m.default.createElement("div",null,m.default.createElement("p",null,t("TOTAL_REQUESTS")),m.default.createElement("span",null,this.getMetricsData("ingress_request_count")))),m.default.createElement("div",{className:R.default.item},m.default.createElement(h.Icon,{name:"error",size:56}),m.default.createElement("div",null,m.default.createElement(h.Select,{width:30,value:r,options:[{label:t("FOUR_XX_REQUEST_COUNT"),value:"ingress_request_4xx_count"},{label:t("FIVE_XX_REQUEST_COUNT"),value:"ingress_request_5xx_count"}],onChange:this.handleRequestError}),m.default.createElement("span",null,this.getMetricsData(r))))),m.default.createElement("div",{className:R.default.middle},m.default.createElement(v.SimpleCircle,{theme:"light",width:200,height:200,title:"",value:"".concat((100*this.getMetricsData("ingress_success_rate")).toFixed(2)),total:100,unit:"%",innerRadius:"80%",legend:["SUCCESSFUL_REQUESTS","TOTAL"],showCenter:!0,showRate:!1,areaColors:["#55BC8A","#E3E9EF"],renderCustomCenter:function(e){var a=e.value;return m.default.createElement("div",{className:R.default.simpleContent},m.default.createElement("p",null,t("SUCCESSFUL_REQUESTS")),m.default.createElement("span",null,a,"%"))}})),m.default.createElement("div",{className:R.default.right},m.default.createElement("div",{className:R.default.item},m.default.createElement("span",{className:R.default.customIcon},m.default.createElement(g.ReactComponent,null)),m.default.createElement("div",null,m.default.createElement("p",null,t("AVERAGE_LATENCY")),m.default.createElement("span",null,"".concat(this.getMetricsData("ingress_request_duration_average")," ms")))),m.default.createElement("div",{className:R.default.itemSmall},m.default.createElement("span",null,t("P_FIFTY_LATENCY")),m.default.createElement("span",null,"".concat(this.getMetricsData("ingress_request_duration_50percentage")," ms"))),m.default.createElement("div",{className:R.default.itemSmall},m.default.createElement("span",null,t("P_NINETY_FIVE_LATENCY")),m.default.createElement("span",null,"".concat(this.getMetricsData("ingress_request_duration_95percentage")," ms"))),m.default.createElement("div",{className:R.default.itemSmall},m.default.createElement("span",null,t("P_NINETY_NINE_LATENCY")),m.default.createElement("span",null,"".concat(this.getMetricsData("ingress_request_duration_99percentage")," ms"))))))}},{key:"detail",get:function(){return this.props.detailStore.gateway.data}}]),r}(m.default.Component);a.default=k},4309:function(e,a,r){"use strict";r(15);var n=r(20);r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(42),r(4),r(23),r(57),r(17);var u=n(r(30)),l=n(r(36)),o=n(r(37)),c=n(r(55)),i=n(r(56)),s=n(r(51)),d=n(r(0)),f=n(r(1)),p=n(r(3)),m=r(186),h=n(r(4310)),v=r(1865),y=n(r(4312));function g(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,s.default)(e);if(t){var n=(0,s.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,i.default)(this,a)}}var _=function(e){(0,c.default)(r,e);var a=g(r);function r(e){var t;(0,l.default)(this,r),(t=a.call(this,e)).handleToggle=function(){t.setState({visible:!t.state.visible},(function(){t.props.onToggle(t.state.visible)}))},t.hideSelector=function(){t.setState({visible:!1},(function(){t.props.onToggle(!1)}))},t.handleTimeChange=function(e){var a=e.duration;t.setState({visible:!1,duration:a},(function(){t.props.onChange(a)}))};var n=e.duration;return t.state={visible:!1,preDuration:"",duration:n||"10m"},t}return(0,o.default)(r,[{key:"renderButtonText",value:function(){var e=this.state.duration,a=(0,v.getTimeLabel)(e);return t("LAST_TIME",{value:a})}},{key:"renderContent",value:function(){var e=this.state.duration;return d.default.createElement("div",{className:y.default.content},d.default.createElement(h.default,{duration:e,onChange:this.handleTimeChange}))}},{key:"render",value:function(){var e=this.props,t=e.className,a=e.dark,r=e.arrowIcon;return d.default.createElement("div",{className:(0,p.default)(y.default.selector,t,(0,u.default)({},y.default.active,this.state.visible))},d.default.createElement("div",{className:(0,p.default)(y.default.mask,(0,u.default)({},y.default.active,this.state.visible)),onClick:this.hideSelector}),d.default.createElement(m.Button,{className:y.default.button,onClick:this.handleToggle},d.default.createElement(m.Icon,{type:a?"dark":"light",name:"timed-task",size:20}),d.default.createElement("p",null,this.renderButtonText()),d.default.createElement(m.Icon,{className:y.default.arrow,type:a?"dark":"light",name:r||"caret-down"})),d.default.createElement("div",{className:y.default.dropdown},this.renderContent()))}}],[{key:"getDerivedStateFromProps",value:function(e,t){if(e.duration!==t.preDuration){var a=e.duration;return{prevPropStep:a,duration:a}}return null}}]),r}(d.default.PureComponent);a.default=_,_.propTypes={duration:f.default.string,onChange:f.default.func,onToggle:f.default.func},_.defaultProps={duration:"10m",onChange:function(){},onToggle:function(){}}},4310:function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(18),r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(18),r(42),r(4),r(23),r(57),r(17);var u=n(r(30)),l=n(r(36)),o=n(r(37)),c=n(r(55)),i=n(r(56)),s=n(r(51)),d=n(r(0)),f=n(r(1)),p=n(r(3)),m=r(1865),h=n(r(4311));function v(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,s.default)(e);if(t){var n=(0,s.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,i.default)(this,a)}}var y=["1m","5m","10m","30m","1h","3h","6h","12h"],g=function(e){(0,c.default)(r,e);var a=v(r);function r(){var e;(0,l.default)(this,r);for(var t=arguments.length,n=new Array(t),u=0;u-1?localStorage.getItem("federated-cluster"):e}},{key:"prefix",get:function(){return"/whizard-telemetry/".concat(this.cluster)}},{key:"enabledActions",get:function(){return globals.app.getActions(C(C({module:this.module},this.props.match.params),{},{project:this.props.match.params.namespace}))}},{key:"volumesTitle",get:function(){return t("STORAGE_DEVICES")}}]),r}(p.default.Component);P.childContextTypes={gatewayName:E.default.string,gatewayNs:E.default.string,cluster:E.default.string};var k=(0,h.inject)("detailStore")((0,h.observer)(P));a.default=k;var N=P;a.Component=N},4315:function(e,t,a){"use strict";a(15);var r=a(20);a(5),a(4),a(23),a(17),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(45),a(5),a(160),a(42),a(4),a(23),a(57),a(17);var n=r(a(36)),u=r(a(37)),l=r(a(55)),o=r(a(56)),c=r(a(51)),i=r(a(0)),s=r(a(1)),d=r(a(3)),f=r(a(26)),p=r(a(789)),m=r(a(4316)),h=r(a(4318));function v(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,c.default)(e);if(t){var n=(0,c.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,o.default)(this,a)}}var y=function(e){(0,l.default)(a,e);var t=v(a);function a(){var e;(0,n.default)(this,a);for(var r=arguments.length,u=new Array(r),l=0;l=0&&e.props.onScale(t)},e}return(0,u.default)(a,[{key:"render",value:function(){var e=this.props.className;return i.default.createElement(p.default,{className:(0,d.default)(h.default.replica,e)},i.default.createElement("div",{className:h.default.replicaCount},i.default.createElement(m.default,this.replicaStatus)))}},{key:"replicaStatus",get:function(){var e=this.props,t=e.module,a=e.detail,r=e.enableScale,n={};switch(t){default:case"deployments":n={current:a.availablePodNums||0,desire:a.podNums||0};break;case"statefulsets":n={current:(0,f.default)(a,"status.currentReplicas",a.readyPodNums),desire:a.podNums||0};break;case"daemonsets":n={current:(0,f.default)(a,"status.numberReady",0),desire:(0,f.default)(a,"status.desiredNumberScheduled",0)};break;case"gateways":n={current:Array.isArray(a.pods)?a.pods.length:1,desire:(0,f.default)(a,"replicas",0)}}return n.onScale=r?this.handleReplicaChange:null,n}}]),a}(i.default.Component);t.default=y,y.propTypes={module:s.default.string,detail:s.default.object,enableScale:s.default.bool,onScale:s.default.func},y.defaultProps={module:"deployments",enableScale:!0,onScale:function(){}}},4316:function(e,a,r){"use strict";r(15);var n=r(20);r(16),r(27),r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var u=n(r(36)),l=n(r(37)),o=n(r(55)),c=n(r(56)),i=n(r(51));r(45),r(42),r(16),r(27),r(4),r(23),r(57),r(17);var s=n(r(0)),d=n(r(1)),f=n(r(3)),p=r(798),m=n(r(4317));function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,i.default)(e);if(t){var n=(0,i.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,c.default)(this,a)}}var v=function(e){return Number(e||0)},y=function(e){(0,o.default)(r,e);var a=h(r);function r(e){var t;(0,u.default)(this,r),t=a.call(this,e);var n=v(e.desire);return t.state={prevPropDesire:n,desire:n,seconds:5},t}return(0,l.default)(r,[{key:"render",value:function(){var e=this.props,a=e.theme,r=e.className,n=e.name,u=e.current,l=this.state.desire,o=t(n),c=t("REPLICAS_CURRENT"),i=t("REPLICAS_DESIRED");return s.default.createElement("div",{className:(0,f.default)(m.default.card,r,m.default[a])},s.default.createElement("img",{className:m.default.cardImg,src:"/assets/banner-icon-1.svg"}),s.default.createElement("div",{className:m.default.chart},s.default.createElement(p.SimpleCircle,{theme:a,title:o,legend:[c,i],value:u,total:l})),s.default.createElement("div",{className:m.default.status},s.default.createElement("div",{className:m.default.title},o),s.default.createElement("div",{className:m.default.detail},s.default.createElement("p",null,s.default.createElement("label",null,i,":")," ",l),s.default.createElement("p",null,s.default.createElement("label",null,c,":")," ",u))))}}],[{key:"getDerivedStateFromProps",value:function(e,t){if(e.desire!==t.prevPropDesire){var a=v(e.desire);return{prevPropDesire:a,desire:a}}return null}}]),r}(s.default.Component);a.default=y,y.propTypes={theme:d.default.string,className:d.default.string,name:d.default.string,current:d.default.number,desire:d.default.number,onScale:d.default.func},y.defaultProps={theme:"dark",name:"REPLICA_PL",current:0,desire:0,onScale:null}},4317:function(e,t,a){e.exports={card:"_2tqToS7KOKa64SH3Nolb-A",cardImg:"_39cBVvUnYggEAKy4WFYtxD",dark:"_3JXwjgxuPd7iiRWjTqC6Sc",status:"_12ELZ5kvVLBsUm_A5APgjb",title:"gB0VgBzXnjEYnUUmJs0p5",detail:"_1mP4izOhBrYEo6q20Fl_Ol",scale:"_3qAEaNujKHXdxSwhzUzNfQ",control:"_3Z1mXUXuBydINztjdMXJot",add:"_1-rjjfWKXygy2ozDguvRyb",substract:"_3X2mYKvDRFhceXrdccArGe"}},4318:function(e,t,a){e.exports={replica:"_1FG_TRIMjcDVMaQznsqGbP",replicaCount:"Gmok3l7GaS8cTwON3fczC"}},4319:function(e,a,r){"use strict";var n=r(20);r(12),r(11),r(6),r(18),r(16),r(98),r(9),r(13),r(10),r(4),r(316),r(23),r(24),r(17),r(188),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(45),r(11),r(6),r(18),r(28),r(42),r(16),r(34),r(15),r(98),r(9),r(13),r(10),r(4),r(316),r(22),r(23),r(57),r(24),r(17),r(188),r(7);var u=n(r(315)),l=n(r(96)),o=n(r(43)),c=n(r(30)),i=n(r(58));r(41);var s,d,f,p=n(r(44)),m=n(r(36)),h=n(r(37)),v=n(r(55)),y=n(r(56)),g=n(r(51)),_=n(r(0)),E=r(239),b=n(r(1)),S=n(r(3)),O=n(r(63)),R=n(r(26)),T=r(186),C=r(794),A=n(r(1075)),P=n(r(789)),k=n(r(4320)),N=n(r(1866));function D(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function w(e){for(var t=1;t0&&void 0!==c[0]?c[0]:{},a=t.noMetrics,r=t.silent,u=(0,i.default)(t,["noMetrics","silent"]),!(0,O.default)(n.state.params)){e.next=4;break}return n.store.podList.isLoading=!1,e.abrupt("return");case 4:return l=n.props.limit,r&&(n.store.podList.silent=!0),e.next=8,n.store.getGatewayPodsList(w(w({limit:l},n.state.params),u));case 8:n.store.podList.silent=!1,a||n.fetchMetrics();case 10:case"end":return e.stop()}}),e)}))),n.fetchMetrics=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=n.store.podList,a=t.data,r=t.isLoading;if((0,O.default)(a)||r||(0,O.default)(n.state.params))return!1;n.monitorStore.fetchMetrics(w(w({step:"1m",times:30,resources:a.map((function(e){return e.name})),metrics:Object.values(I)},n.state.params),e))},n.getPagination=function(){var e=n.store.podList;return{page:e.page,limit:e.limit,total:e.total}},n.getPodMetrics=function(){var e=n.monitorStore.data,t={};return Object.entries(I).forEach((function(a){var r=(0,l.default)(a,2),n=r[0],u=r[1],o=(0,R.default)(e,"".concat(u,".data.result"))||[];t[n]=o[0]})),t},n.handleSearch=function(e){n.searchValue=e,n.fetchData({search:e})},n.handleRefresh=function(){var e=n.searchValue?{search:n.searchValue}:{};n.fetchData(e)},n.handlePage=function(e){n.fetchData({page:e}).then((function(){n.props.onPage(e)}))},n.handleExpand=function(e){n.setState((function(t){return{expandItem:t.expandItem===e?"":e}}))},n.getClustersOptions=function(){return n.props.clusters.map((function(e){return{label:e,value:e}}))},n.handleClusterChange=function(e){n.setState({selectCluster:e,params:n.getParams(e)},(function(){n.fetchData()}))},n.renderHeader=function(){return _.default.createElement("div",{className:N.default.header},_.default.createElement(T.InputSearch,{className:N.default.search,name:"search",placeholder:t("SEARCH"),onSearch:n.handleSearch}),_.default.createElement("div",{className:N.default.actions},_.default.createElement(T.Button,{type:"flat",icon:"refresh",onClick:n.handleRefresh})))},n.renderFooter=function(){var e=n.getPagination(),a=e.total;return _.default.createElement(T.Level,{className:N.default.footer},_.default.createElement(T.LevelLeft,null,t("TOTAL_ITEMS",{num:a})),_.default.createElement(T.LevelRight,null,_.default.createElement(T.Pagination,(0,u.default)({},e,{onChange:n.handlePage}))))},n.store=e.store,n.monitorStore=new A.default;var c=e.detail.cluster||e.params;return n.state={expandItem:"",params:c},n}return(0,h.default)(r,[{key:"componentDidUpdate",value:function(e){var t=this,a=this.props,r=a.detail,n=a.params;if(r!==e.detail){var u=r.cluster||n;this.setState({expandItem:"",selectCluster:u||"",params:this.getParams(u)},(function(){t.fetchData()}))}}},{key:"componentDidMount",value:function(){this.fetchData(),(0,C.startAutoRefresh)(this,{method:"fetchMetrics",leading:!1})}},{key:"componentWillUnmount",value:function(){(0,C.stopAutoRefresh)(this),this.disposer&&this.disposer()}},{key:"renderContent",value:function(){var e=this,a=this.props.prefix,r=this.store.podList,n=r.data,u=r.isLoading,l=r.silent,o=_.default.createElement("div",{className:N.default.body},(0,O.default)(n)?_.default.createElement("div",{className:N.default.empty},t("NO_RESOURCE_FOUND")):n.map((function(t){return _.default.createElement(k.default,{key:t.uid,prefix:a,detail:t,metrics:e.getPodMetrics(t),loading:e.monitorStore.isLoading,refreshing:e.monitorStore.isRefreshing,isExpand:e.state.expandItem===t.uid,onExpand:e.handleExpand})})));return l?o:_.default.createElement(T.Loading,{spinning:u},o)}},{key:"render",value:function(){var e=this.props,a=e.className,r=e.title,n=e.hideHeader,u=e.hideFooter,l=e.noWrapper,o=this.store.podList.data;return l?this.renderContent():_.default.createElement(P.default,{className:(0,S.default)(N.default.main,a),title:t(r),empty:t("NO_AVAILABLE_RESOURCE_VALUE",{resource:t("POD")}),isEmpty:(0,O.default)(o)},!n&&this.renderHeader(),this.renderContent(),!u&&this.renderFooter())}}]),r}(_.default.Component),d.propTypes={prefix:b.default.string,title:b.default.string,detail:b.default.object,details:b.default.object,hideHeader:b.default.bool,hideFooter:b.default.bool,onPage:b.default.func,limit:b.default.number},d.defaultProps={title:"Pods",detail:{},details:{},hideHeader:!1,hideFooter:!1,onPage:function(){}},s=f))||s;a.default=M},4320:function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(6),r(86),r(18),r(87),r(16),r(4),r(23),r(17),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(6),r(86),r(18),r(87),r(42),r(16),r(4),r(23),r(57),r(17),r(7);var u=n(r(61)),l=n(r(30)),o=n(r(315)),c=n(r(36)),i=n(r(37)),s=n(r(55)),d=n(r(56)),f=n(r(51)),p=n(r(0)),m=r(433),h=n(r(1)),v=n(r(3)),y=n(r(63)),g=n(r(26)),_=r(52),E=r(794),b=r(186),S=n(r(839)),O=r(798),R=n(r(1220)),T=n(r(804)),C=n(r(1866));function A(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,f.default)(e);if(t){var n=(0,f.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,d.default)(this,a)}}var P=function(e){(0,s.default)(r,e);var a=A(r);function r(){var e;(0,c.default)(this,r);for(var n=arguments.length,u=new Array(n),l=0;l1&&p.default.createElement(b.Tooltip,{content:this.renderPodIPContent(this.networkIPs)},p.default.createElement("div",{className:C.default.podip},this.networkIPs.length))),p.default.createElement("p",null,t("POD_IP_ADDRESS_SCAP"))),this.renderMonitorings(),p.default.createElement("div",{className:C.default.arrow},p.default.createElement(b.Icon,{name:"chevron-down",type:u?"light":"",size:20})))}},{key:"renderExtraContent",value:function(){var e=this,a=this.props.prefix,r=this.props.detail,n=r.cluster,u=r.containers,l=void 0===u?[]:u,o=r.initContainers,c=void 0===o?[]:o,i=r.name;if((0,y.default)(l))return null;var s=globals.app.hasPermission({module:"clusters",action:"view"})&&a?this.getLink():"";return p.default.createElement("div",{className:C.default.itemExtra},p.default.createElement("div",{className:"margin-b8"},p.default.createElement("strong",null,t("CONTAINER_PL"))),p.default.createElement("div",{className:C.default.containers},l.map((function(t){return p.default.createElement(R.default,{key:t.name,prefix:s,podName:i,detail:t,cluster:n,onContainerClick:e.handleLinkClick,isCreating:e.isCreating,hideterminal:!0})})),c.map((function(t){return p.default.createElement(R.default,{key:t.name,prefix:s,podName:i,detail:t,cluster:n,onContainerClick:e.handleLinkClick,isCreating:e.isCreating,isInit:!0,hideterminal:!0})}))))}},{key:"render",value:function(){var e=this.props,t=e.className,a=e.isExpand;return p.default.createElement("div",{className:(0,v.default)(C.default.item,t,(0,l.default)({},C.default.expanded,a))},p.default.createElement("div",{className:C.default.itemMain,onClick:this.handleExpandExtra},p.default.createElement("div",{className:C.default.icon},p.default.createElement(b.Icon,{name:"pod",size:40,type:a?"light":"dark"}),this.renderStatusTip()),this.renderContent()),this.renderExtraContent())}},{key:"status",get:function(){var e=this.props.detail.podStatus,t=e.status;return{type:e.type.toLowerCase(),name:t}}},{key:"isCreating",get:function(){return"warning"===this.status.type&&"ContainerCreating"===this.status.name}},{key:"isRunning",get:function(){return"running"===this.status.type||"completed"===this.status.type}},{key:"networkIPs",get:function(){return this.props.detail.networksStatus.reduce((function(e,t){return[].concat((0,u.default)(e),(0,u.default)(t.ips))}),[])}}]),r}(p.default.PureComponent);a.default=P,P.propTypes={className:h.default.string,prefix:h.default.string,detail:h.default.object,metrics:h.default.object,loading:h.default.bool,isExpand:h.default.bool,onExpand:h.default.func},P.defaultProps={prefix:"",detail:{},isExpand:!1,onExpand:function(){}}},4321:function(e,t,a){e.exports={deployment_codeResource:"DWNzvnnPXAJT9fQSbDyjf"}},4322:function(e,a,r){"use strict";r(15);var n=r(20);r(18),r(98),r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(18),r(42),r(98),r(4),r(23),r(57),r(17);var u,l=n(r(96)),o=n(r(36)),c=n(r(37)),i=n(r(55)),s=n(r(56)),d=n(r(51)),f=n(r(0)),p=n(r(789)),m=r(239),h=n(r(63)),v=n(r(26)),y=n(r(1864));function g(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,d.default)(e);if(t){var n=(0,d.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,s.default)(this,a)}}var _=(0,m.inject)("detailStore")(u=(0,m.observer)(u=function(e){(0,i.default)(r,e);var a=g(r);function r(){return(0,o.default)(this,r),a.apply(this,arguments)}return(0,c.default)(r,[{key:"render",value:function(){var e=this.detail.config;return f.default.createElement(p.default,{title:t("CONFIGURATION_OPTIONS")},f.default.createElement("div",{className:y.default.container},f.default.createElement("ul",null,(0,h.default)(e)?f.default.createElement("li",null,t("NO_DATA")):Object.entries(this.detail.config).map((function(e){var t=(0,l.default)(e,2),a=t[0],r=t[1];return f.default.createElement("li",{key:a},f.default.createElement("span",{className:y.default.key},a),f.default.createElement("span",null,r))})))))}},{key:"module",get:function(){return this.props.detailStore.module}},{key:"store",get:function(){return this.props.detailStore}},{key:"detail",get:function(){return(0,v.default)(this.store.gateway,"data",{})}}]),r}(f.default.Component))||u)||u;a.default=_},4323:function(e,a,r){"use strict";r(84),r(85);var n=r(20);r(12),r(5),r(11),r(6),r(73),r(18),r(87),r(97),r(16),r(9),r(13),r(10),r(4),r(316),r(23),r(24),r(17),r(62),r(188),r(7),r(110),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(45),r(5),r(11),r(6),r(73),r(18),r(28),r(87),r(245),r(97),r(442),r(42),r(16),r(34),r(15),r(9),r(13),r(10),r(4),r(316),r(22),r(23),r(57),r(24),r(17),r(62),r(188),r(7),r(110);var u=n(r(61)),l=n(r(43)),o=n(r(30));r(41);var c,i,s,d,f,p,m,h,v,y=n(r(44)),g=n(r(96)),_=n(r(65)),E=n(r(36)),b=n(r(37)),S=n(r(88)),O=n(r(55)),R=n(r(56)),T=n(r(51)),C=n(r(49)),A=(n(r(66)),n(r(0))),P=r(239),k=n(r(833)),N=n(r(985)),D=r(14),w=r(186),L=n(r(3)),I=r(2014),M=n(r(243)),j=n(r(1127)),x=n(r(1392)),U=r(1397),V=n(r(1124)),G=n(r(4324));function F(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function Y(e){for(var t=1;t').concat(e.hightLighted,"")}));return A.default.createElement("span",{dangerouslySetInnerHTML:{__html:o.join("")}})}},e.scrollTo=function(t){try{e.tableRef.current.scrollToRow(t)}catch(e){}},(0,_.default)(e,"onTableScrollTop",m,(0,S.default)(e)),e.initQuery=function(){e.searchInputState={query:[],start:"",end:"",durationAlias:"",nextParamsKey:""}},e.togglePolling=function(){e.state.polling?e.stopPolling():e.startPolling()},(0,_.default)(e,"changeFrequency",h,(0,S.default)(e)),(0,_.default)(e,"pollingFunc",v,(0,S.default)(e)),e.onSearchParamsChange=function(){e.stopPolling(),e.refreshQuery()},e.handleRefresh=function(){e.refreshQuery()},e.clearFilter=function(){e.initQuery(),e.refreshQuery()},e.renderEmpty=function(){return A.default.createElement("div",{className:G.default.emptyText},A.default.createElement("span",{className:G.default.emptyTipIcon},A.default.createElement(w.Icon,{name:"exclamation",size:48})),A.default.createElement("div",null,t("NO_MATCHING_RESULT_FOUND")),A.default.createElement("p",null,t("YOU_CAN_TRY_TO"),A.default.createElement("span",{className:G.default.action,onClick:e.handleRefresh,"data-test":"table-empty-refresh"},t("REFRESH_DATA")),t("OR"),A.default.createElement("span",{className:G.default.action,onClick:e.clearFilter,"data-test":"table-empty-clear-filter"},t("CLEAR_SEARCH_CONDITIONS"))))},e}return(0,b.default)(i,[{key:"componentDidMount",value:function(){this.refreshQuery()}},{key:"componentWillUnmount",value:function(){clearInterval(this.pollingInterval)}},{key:"getQueryParams",value:function(){return this.searchInputState.query.filter((function(e){return e.key})).reduce((function(e,t){var a=t.key,r=t.value,n=a,u=e[n];return e[n]=u?"".concat(u,",").concat(r):r,e}),{})}},{key:"refreshQuery",value:(n=(0,y.default)(l.default.mark((function e(){var t,a;return l.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=this.getQueryParams(),e.next=3,this.fetchLog(Y(Y({},t),{},{from:0,size:50},this.duration));case 3:a=e.sent,this.logs=a.reverse(),this.scrollTo(this.logs.length);case 6:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"fetchLog",value:(r=(0,y.default)(l.default.mark((function e(t){var a,r,n,u,o;return l.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=this.props.match.params,r=a.cluster,n=a.namespace,u=a.gatewayName,o=a.workspace,e.next=3,this.store.getGatewayLogs(Y({cluster:r,namespace:n,gatewayName:u,workspace:o},t));case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e,this)}))),function(e){return r.apply(this,arguments)})},{key:"loadMoreLogs",value:(a=(0,y.default)(l.default.mark((function e(){var t,a,r;return l.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=this.store.logs.from+this.store.logs.size,a=this.getQueryParams(),e.next=4,this.fetchLog(Y(Y(Y({},a),this.duration),{},{from:t,size:50}));case 4:r=e.sent,this.logs=[].concat((0,u.default)(r.reverse()),(0,u.default)(this.logs)),this.scrollTo(r.length);case 7:case"end":return e.stop()}}),e,this)}))),function(){return a.apply(this,arguments)})},{key:"stopPolling",value:function(){clearTimeout(this.pollingInterval),this.setState({polling:!1})}},{key:"startPolling",value:function(){this.setState({polling:!0}),this.pollingFunc(),this.pollingInterval&&clearTimeout(this.pollingInterval),this.pollingInterval=setInterval(this.pollingFunc,this.pollingFrequency)}},{key:"renderOperation",value:function(){var e=[5,10,20].map((function(e){return{label:t("REFRESH_INTERVAL_VALUE",{value:e}),value:1e3*e}})),a=Y(Y({},this.duration),this.getQueryParams());return A.default.createElement("div",{className:G.default.filter},A.default.createElement("div",{className:(0,L.default)(G.default.filterButton,G.default.pollingBtn),onClick:this.togglePolling},A.default.createElement(w.Icon,{name:this.state.polling?"stop":"start",type:"light"})),A.default.createElement(w.Select,{prefixIcon:A.default.createElement(w.Icon,{type:"light",name:"timed-task",size:20}),className:(0,L.default)(G.default.filterButton,G.default.frequencyOpts),defaultValue:5e3,options:e,onChange:this.changeFrequency}),A.default.createElement("a",{href:this.store.exportLinkFactory(a),download:!0},A.default.createElement("span",{className:(0,L.default)(G.default.filterButton,G.default.exportBtn)},A.default.createElement(w.Tooltip,{content:t("EXPORT_LOGS")},A.default.createElement(w.Icon,{name:"export",type:"light"})))))}},{key:"render",value:function(){return globals.app.hasKSModule("whizard-logging")?A.default.createElement("div",null,A.default.createElement("div",{className:G.default.title},A.default.createElement("div",{className:(0,L.default)(G.default.search,(0,o.default)({},G.default.focus,this.hasValue))},A.default.createElement(w.Icon,{className:G.default.isLeft,name:"magnifier",size:20}),A.default.createElement(N.default,{className:G.default.searchInput,onChange:this.onSearchParamsChange,params:this.searchInputState,dropdownClass:G.default.dropdownClass,iconThem:"light",enableClear:!0,dropDownItems:this.dropDownContent,showStep:!1}),A.default.createElement(w.Icon,{className:(0,L.default)(G.default.clearIcon,(0,o.default)({},G.default.hideIcon,!this.hasValue)),name:"close",onClick:this.initQuery})),this.renderOperation()),A.default.createElement("div",{className:G.default.body},(0,I.isEmpty)((0,D.toJS)(this.logs))?this.renderEmpty():A.default.createElement(j.default,{onScroll:this.onTableScrollTop,cols:this.tableCols,data:(0,D.toJS)(this.logs),tableRef:this.tableRef,trCLassName:G.default.trCLassName,body:G.default.bodyClassName,header:G.default.headerClassName}))):A.default.createElement(k.default,{className:"no-shadow",icon:"cluster",title:t("LOGGING_DISABLED")})}},{key:"hasValue",get:function(){return Object.values((0,D.toJS)(this.searchInputState)).some((function(e){return(0,I.isArray)(e)?e.some((function(e){return!(0,I.isEmpty)((0,D.toJS)(e))})):!(0,I.isEmpty)(e)}))}},{key:"defaultDuration",get:function(){return{start_time:0,end_time:Date.now()}}},{key:"duration",get:function(){var e=Date.now(),t=this.searchInputState,a=t.start,r=t.end;return a?{start_time:(0,I.min)([1e3*a,e]),end_time:(0,I.min)([1e3*r,e])}:this.defaultDuration}},{key:"dropDownContent",get:function(){return{log_query:{icon:"magnifier",text:t("KEYWORD")},pod_query:{icon:"pod",text:t("POD")}}}},{key:"store",get:function(){return this.props.detailStore}}]),i}(A.default.Component),s=(0,C.default)(i.prototype,"searchInputState",[D.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{query:[],start:"",end:"",durationAlias:"",nextParamsKey:""}}}),d=(0,C.default)(i.prototype,"pollingFrequency",[D.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 5e3}}),f=(0,C.default)(i.prototype,"logs",[D.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),(0,C.default)(i.prototype,"hasValue",[D.computed],Object.getOwnPropertyDescriptor(i.prototype,"hasValue"),i.prototype),p=(0,C.default)(i.prototype,"tableCols",[D.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[{thead:t("TIME"),key:"time",dataIndex:"time",mustShow:!0,content:function(e){return"[".concat((0,M.default)(e.time).format("YYYY-MM-DD HH:mm:ss"),"]")}},{thead:t("POD"),key:"pod",dataIndex:"pod",mustShow:!0,content:this.renderHightLightMatchTd({resKey:"pod",searchKey:["pod_query"]})},{thead:t("MESSAGE"),key:"log",dataIndex:"log",className:G.default.logItem,content:this.renderHightLightMatchLogTd({resKey:"log",searchKey:["log_query"],handler:U.esMark}),mustShow:!0}]}}),(0,C.default)(i.prototype,"refreshQuery",[D.action],Object.getOwnPropertyDescriptor(i.prototype,"refreshQuery"),i.prototype),(0,C.default)(i.prototype,"fetchLog",[D.action],Object.getOwnPropertyDescriptor(i.prototype,"fetchLog"),i.prototype),(0,C.default)(i.prototype,"loadMoreLogs",[D.action],Object.getOwnPropertyDescriptor(i.prototype,"loadMoreLogs"),i.prototype),m=(0,C.default)(i.prototype,"onTableScrollTop",[D.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(t){var a=t.scrollTop,r=e.store.logs,n=r.from,u=r.size,l=r.total;0===a&&l>n+u&&e.loadMoreLogs()}}}),h=(0,C.default)(i.prototype,"changeFrequency",[D.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(t){e.pollingFrequency=t,e.state.polling&&(clearTimeout(e.pollingInterval),e.startPolling())}}}),v=(0,C.default)(i.prototype,"pollingFunc",[D.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(){var t=z;e.searchInputState.end=Math.ceil(Date.now()/1e3),e.searchInputState.start=e.searchInputState.end-t,e.searchInputState.durationAlias="".concat(t/60,"m"),e.refreshQuery()}}}),c=i))||c)||c;a.default=W},4324:function(e,t,a){e.exports={title:"_27kFVAF6T6LskkB-SldkYB",focus:"EKk9Ji6QfnTzPjTdVGqgD",search:"_3kCCC6wI8blm8hKjJSIEcI",clearIcon:"_22CuQAmQJmPP1qPZkbLiLj",hideIcon:"_1F2hnpFCTxuxKIto8LQ51h",searchInput:"_3aNlwp3HfWhMeK1qFTLyoE",filter:"_3n89x2yGrGQ-oOOnS_YPwV",filterButton:"-kwpd9PsbShdFHDxkTgaT",exportBtn:"_2Q3HTrKzy33-1EizMmTKjx",pollingBtn:"_3WOXlBnk1BHyIiczHfgPK5",frequencyOpts:"_2H6qWGcv5qpefqUf6xkheC",searchBar:"_2K1N2nbDXMgMKbu0epuoqL",icon:"_1bkWSywOXEftAG9wNrQZEy",input:"JtBo7JY3_gEsP3OPMCVU7",dropdownClass:"_1fclYzxlwgfjHJSErppFui",body:"_3WDI3EZtPkYYy_z1f5hYnq",logItem:"_1NFwmrHeL25OAMuMTu7cdq",bodyClassName:"_3exrzDsfOPvrtsv3g5hA7h",headerClassName:"_25wENVXdRENHnBrg8HBWuE",trCLassName:"_1HlklfBbXcC8Te5q4BCwBN",emptyText:"aQvVb-bQn9kjmweXEIrRd",emptyTipIcon:"_1Uv0pJ5e_GGE_aafwHCiN_",action:"_2JIoQ0cYcxoX7cpnbMCkUn",hightLightMatch:"_3ZdEPi-ux2l08NjRFT0SbH"}},4325:function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(4),r(23),r(24),r(17),r(62),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(28),r(42),r(4),r(22),r(23),r(57),r(24),r(17),r(62);var u=n(r(315)),l=n(r(43));r(41);var o,c,i,s,d=n(r(44)),f=n(r(65)),p=n(r(36)),m=n(r(37)),h=n(r(88)),v=n(r(55)),y=n(r(56)),g=n(r(51)),_=n(r(49)),E=(n(r(66)),n(r(0))),b=r(239),S=r(791),O=n(r(792)),R=n(r(834)),T=r(14),C=r(186),A=n(r(4326)),P=n(r(4330));function k(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,g.default)(e);if(t){var n=(0,g.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,y.default)(this,a)}}var N=(0,b.inject)("rootStore","clusterStore")(o=(0,b.observer)(o=(0,S.trigger)((c=function(e){(0,v.default)(r,e);var a=k(r);function r(){var e;(0,p.default)(this,r);for(var t=arguments.length,n=new Array(t),u=0;u0&&void 0!==d[0]?d[0]:{},r=a.silent,n=(0,i.default)(a,["silent"]),u=e.props,l=u.store,c=u.inCluster,r&&(l.list.silent=!0),s=c?"kubesphere.io/gateway-type=".concat(e.props.type):"kubesphere.io/workspace=".concat(e.props.match.params.workspace),t.next=6,l.fetchList(R(R(R({},e.props.match.params),n),{},{labelSelector:s}));case 6:l.list.silent=!1;case 7:case"end":return t.stop()}}),t)}))),e.getGatewayResource=function(t){var a=t.cluster;return e.isProjectGateway?{cluster:a,namespace:t.name.split("kubesphere-router-")[1]}:e.isProjectGateway?void 0:{cluster:a,workspace:t.name.split("kubesphere-router-workspace-")[1]}},e.handleFetch=function(t,a){e.routing.query(R(R({},t),{},{type:e.type}),a)},e.getColumns=function(){var a=e.props.getSortOrder;return[{title:t("NAME"),dataIndex:"name",sorter:!0,sortOrder:a("name"),render:function(t,a){return y.default.createElement(y.default.Fragment,null,y.default.createElement("span",{style:{fontWeight:700,cursor:"auto",marginRight:"4px"}},t),e.renderDisabledTip(a))}},{title:t("ACCESS_MODE"),dataIndex:"type"},{title:t("IP_ADDRESS"),dataIndex:"defaultIngress"},{title:t("NODE_PORTS"),dataIndex:"ports",render:function(e){return(0,S.default)(e)?"-":e.map((function(e){return"".concat(e.name.toUpperCase(),": ").concat(e.nodePort)})).join("/")}},{title:t("REPLICA_COUNT"),dataIndex:"replicas"},{title:t("TRACING"),dataIndex:"serviceMeshEnable",render:function(e){return e?t("ON"):t("OFF")}}]},e}return(0,p.default)(r,[{key:"renderDisabledTip",value:function(e){return e.createTime?null:y.default.createElement(b.Tooltip,{content:t("UPDATE_GATEWAY_DESC"),placement:"top"},y.default.createElement(b.Icon,{size:20,name:"update",color:{primary:"#f5a623 ",secondary:"#ffe1be"}}))}},{key:"render",value:function(){var e=this.props,a=e.tableProps,r=e.type,n=e.inCluster;return y.default.createElement(_.ListPage,(0,l.default)({},this.props,{getData:this.getData,noWatch:!0}),y.default.createElement(E.default,(0,l.default)({},a,{name:"".concat(r.toUpperCase(),"_GATEWAY"),emptyProps:{desc:n?t("ENT_".concat(r.toUpperCase(),"_ENABLE_GATEWAY_DESC")):t("PROJECT_ENABLE_GATEWAY_DESC_WS")},itemActions:this.itemActions,tableActions:this.tableActions,columns:this.getColumns(),onCreate:null,searchType:"name"})))}},{key:"routing",get:function(){return this.props.rootStore.routing}},{key:"isProjectGateway",get:function(){var e=this.props.type;return!e||"project"===e}},{key:"itemActions",get:function(){return[]}},{key:"tableActions",get:function(){return R(R({},this.props.tableProps.tableActions),{},{selectActions:[],onFetch:this.handleFetch})}}]),r}(y.default.Component))||s;a.default=C},4331:function(e,a,r){"use strict";r(15);var n=r(20),u=r(157);r(5),r(4),r(23),r(24),r(17),r(62),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(42),r(4),r(23),r(57),r(24),r(17),r(62);var l,o=n(r(30)),c=n(r(36)),i=n(r(37)),s=n(r(55)),d=n(r(56)),f=n(r(51)),p=r(186),m=r(239),h=n(r(3)),v=u(r(0)),y=r(317),g=r(1076),_=n(r(4332));function E(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,f.default)(e);if(t){var n=(0,f.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,d.default)(this,a)}}var b=(0,m.inject)("rootStore")(l=(0,m.observer)(l=function(e){(0,s.default)(r,e);var a=E(r);function r(){var e;(0,c.default)(this,r);for(var t=arguments.length,n=new Array(t),u=0;u0?e.store.setClusters(a):(r=e.clusterStore.list.data,n=(void 0===r?[]:r).map((function(e){return{name:e.name}})),localStorage.setItem("".concat(globals.user.username,"-observability"),JSON.stringify(n)),e.store.setClusters(n)),u=e.getClustersOriginList(),e.setState({selectedClusterList:u});case 11:case"end":return t.stop()}}),t)}))),e.initData=(0,s.default)(c.default.mark((function t(){return c.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.initClustersList();case 2:case"end":return t.stop()}}),t)}))),e}return(0,f.default)(r,[{key:"getClustersOriginList",value:function(){var e=this.clusterStore.list.data,t=void 0===e?[]:e,a=this.store.clusters,r=void 0===a?[]:a,n=t.filter((function(e){var t=r.filter((function(t){return t.name===e.name}));return!(0,y.default)(t)&&globals.app.hasClusterModule(e.name,"whizard-monitoring")}));if(!(0,y.default)(n)){var u=n.filter((function(e){return e&&e.isHost})),l=n.filter((function(e){return e&&!e.isHost}));return[].concat((0,o.default)(u),(0,o.default)(l))}return[]}},{key:"componentDidMount",value:function(){this.initData()}},{key:"componentWillUnmount",value:function(){this.setState=function(){return!1}}},{key:"render",value:function(){var e=this.clusterStore.list.isLoading,a=this.props.bannerProps;return e?_.default.createElement(v.Loading,{className:"ks-page-loading",size:28,spinning:e}):_.default.createElement(g.Provider,{observabilityStore:this.store},_.default.createElement(E.default,(0,l.default)({},a,{icon:"loudspeaker",title:t("WHIZARD_MONITORING.RESOURCE_RANKING_PL"),description:t("WHIZARD_MONITORING.RESOURCE_RANKING_DESC")})),_.default.createElement(T.default,{clusterList:this.state.selectedClusterList,type:this.state.resourceType,showCustomPanelModal:this.showCustomPanelModal}),_.default.createElement(C.default,{visible:this.state.customPanelModalVisible,onOk:this.setClusters,onCancel:this.hideCustomPanelModal,clusters:this.store.clusters}))}}]),r}(_.Component))||i)||i)||i;a.default=P},4334:function(e,a,r){"use strict";var n=r(20);r(12),r(5),r(11),r(6),r(84),r(86),r(73),r(18),r(48),r(16),r(9),r(13),r(10),r(4),r(22),r(23),r(17),r(85),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(45),r(5),r(11),r(6),r(84),r(86),r(73),r(18),r(28),r(48),r(42),r(16),r(34),r(15),r(9),r(13),r(10),r(4),r(22),r(23),r(57),r(17),r(85),r(7);var u,l,o,c,i,s,d,f=n(r(61)),p=n(r(30)),m=n(r(65)),h=n(r(36)),v=n(r(37)),y=n(r(88)),g=n(r(55)),_=n(r(56)),E=n(r(51)),b=n(r(49)),S=(n(r(66)),r(186)),O=n(r(3)),R=n(r(788)),T=n(r(846)),C=n(r(1047)),A=n(r(886)),P=n(r(987)),k=n(r(158)),N=r(14),D=r(239),w=n(r(0)),L=n(r(4335)),I=n(r(1209)),M=n(r(1401)),j=n(r(1211)),x=r(52),U=r(72),V=r(794),G=r(4336),F=n(r(4339)),Y=n(r(4340));function H(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function B(e){for(var t=1;t0||a.indexOf("used_requests")>0)&&(r=(0,k.default)(u)||""===u?"N/A":""),!r){var l=U.MONITOR_RANK_UNIT_MAP[a],o=null!=u?u:0;"%"===l?r="".concat((0,V.getValueByUnit)(o,l),"%"):""===l?r=Math.round(100*o)/100:(n=(0,V.getSuitableUnit)(o,l),r=(0,V.getValueByUnit)(o,n))}return"".concat("gpu"===n?"".concat(r," GPU"):"core"===n?t("VALUE_CORES",{value:r}):t("VALUE_UNIT",{value:r,unit:n}))},e.renderQos=function(e){return w.default.createElement(w.default.Fragment,null,e.qos_class&&w.default.createElement(S.Tooltip,{content:U.COLOR_QOS[e.qos_class].label},w.default.createElement("span",{style:{display:"inline-block",marginRight:"4px",width:"16px",height:"16px",lineHeight:"16px",textAlign:"center",borderRadius:"2px",color:U.COLOR_QOS[e.qos_class].color,background:U.COLOR_QOS[e.qos_class].background}},e.qos_class.slice(0,1).toUpperCase())))},e.fetchRankData=function(t){e.store.fetchAll(B(B({},t),e.resourcesParams))},(0,m.default)(e,"onChange",i,(0,y.default)(e)),(0,m.default)(e,"handleColumnsHide",s,(0,y.default)(e)),(0,m.default)(e,"handleRefresh",d,(0,y.default)(e)),e}return(0,v.default)(r,[{key:"componentDidMount",value:function(){var e=this.props.clusterList;e&&e.length>0&&this.fetchRankData()}},{key:"componentDidUpdate",value:function(e){e.clusterList!==this.props.clusterList&&this.fetchRankData()}},{key:"renderTop",value:function(){var e=this.props.showCustomPanelModal;return w.default.createElement("div",{className:Y.default.topWrapper},w.default.createElement("div",{className:Y.default.titleWrapper},t("WHIZARD_MONITORING.RESOURCE_RANKING_PL")),w.default.createElement(S.Button,{type:"control",icon:"layout",iconType:"light",className:Y.default.mainFilterClusterButton,onClick:e},t("SELECT_CLUSTER")))}},{key:"renderToolbar",value:function(){return w.default.createElement("div",{className:(0,O.default)(Y.default.toolbar,Y.default.pane__toolbar,Y.default.pane)},w.default.createElement(S.RadioGroup,{wrapClassName:"radio-group-button",value:this.type,onChange:this.onChange,disabled:this.store.isLoading},w.default.createElement(S.RadioButton,{value:"cluster"},t("CLUSTER_PL")),w.default.createElement(S.RadioButton,{value:"node"},t("NODE_PL")),w.default.createElement(S.RadioButton,{value:"project"},t("PROJECT_PL")),w.default.createElement(S.RadioButton,{value:"pod"},t("POD_PL"))),w.default.createElement("div",{className:Y.default.toolbar_filter},w.default.createElement(S.Button,{type:"flat",icon:"refresh",onClick:this.handleRefresh,"data-test":"table-refresh"}),w.default.createElement(C.default,{className:Y.default.columnMenu,title:t("CUSTOM_COLUMNS"),columns:this.columns,value:(0,N.toJS)(this.hideColumns),onChange:this.handleColumnsHide}),w.default.createElement(S.Select,{value:this.store.sort_metric,onChange:this.store.changeSortMetric,options:this.options,disabled:this.store.isLoading}),w.default.createElement(S.Select,{className:Y.default.sortTypeSelect,value:this.store.sort_type,onChange:this.store.changeSortType,disabled:this.store.isLoading,options:[{value:"desc",label:t("SORT_BY_DESC")},{value:"asc",label:t("SORT_BY_ASC")}]})))}},{key:"renderList",value:function(){var e=this.store.data.toJS().map((function(e){return B(B({},e),{},{id:(0,G.v4)()})}));return w.default.createElement("div",{className:Y.default.listContainer},w.default.createElement(P.default,{columns:this.filteredColumns,dataSource:e,emptyText:w.default.createElement(T.default,null),loading:this.store.isLoading,store:this.store,rowKey:"id"}),this.renderPagination())}},{key:"renderPagination",value:function(){var e=this,t=this.store,a=t.page,r=t.total,n=t.limit;return w.default.createElement("div",{className:(0,O.default)(Y.default.pane,Y.default.pane__pagination)},w.default.createElement(A.default,{page:a,total:r,limit:n,onChange:function(t){e.store.changePagination(t,e.resourcesParams)}}))}},{key:"render",value:function(){return w.default.createElement("div",{className:Y.default.wrapper},this.renderTop(),this.renderToolbar(),this.renderList())}},{key:"store",get:function(){return this.sourceMap[this.type].store}},{key:"clusters",get:function(){var e;return null===(e=this.props.clusterList.map((function(e){return e&&e.name})))||void 0===e?void 0:e.join("|")}},{key:"options",get:function(){var e=this,a=this.sourceMap[this.type].name;return this.store.sort_metric_options.filter((function(t){return!(0,N.toJS)(e.hideColumns).includes("".concat(t,"-").concat(a))})).map((function(e){return{value:e,label:t("SORT_BY_".concat(e.toUpperCase()))}}))}},{key:"columns",get:function(){var e,a=this,r=this.sourceMap[this.type],n=r.store,u=r.name,l=r.icon,o=r.url,c=null===(e=n.sort_metric_options)||void 0===e?void 0:e.map((function(e){return{key:"".concat(e,"-").concat(u),sort_metric:e,title:t("".concat(U.MONITOR_RANK_METERIC_LOCALS[e],"_TCAP")),isHideable:!0,render:function(t){return w.default.createElement("div",null,w.default.createElement("h3",null,a.transData(t,e)))}}})),i=[{title:t("namespace"===u?"PROJECT":u.toUpperCase()),width:"15%",key:u,render:function(e){var r,n;if("cluster"===u){var c,i,s,d=null!==(c=null===(i=a.props.clusterList)||void 0===i||null===(s=i.filter((function(t){return t.name===e.cluster})))||void 0===s?void 0:s[0])&&void 0!==c?c:{};n=U.CLUSTER_PROVIDER_ICON[d.provider]||"kubernetes",r=d.isHost?t("HOST_CLUSTER_SCAP"):t("MEMBER_CLUSTER_SCAP")}else{var f;r="".concat(t("CLUSTER_PL"),": ").concat(null!==(f=(0,x.showNameAndAlias)(null==e?void 0:e.cluster,"cluster",{},!0,(function(){return a.forceUpdate()})))&&void 0!==f?f:"-"),n=l}var p=a.renderQos(e),m="namespace"===u?w.default.createElement(F.default,{data:e}):"cluster"===u?(0,x.showNameAndAlias)(null==e?void 0:e[u],"cluster",{},!0,(function(){return a.forceUpdate()})):null==e?void 0:e[u];return w.default.createElement(R.default,{className:Y.default.avatar,icon:n,title:w.default.createElement(w.default.Fragment,null,p,(0,x.getDomTitle)(m)),desc:(0,x.getDomTitle)(r),iconSize:40,to:o(null==e?void 0:e[u],null==e?void 0:e.cluster,null==e?void 0:e.namespace)})}}];return(0,x.hideGPUByLicense)([].concat(i,(0,f.default)(c)))}},{key:"filteredColumns",get:function(){var e=this;return this.columns.filter((function(t){return!e.hideColumns.includes(t.key||t.dataIndex)}))}},{key:"resourcesParams",get:function(){return"cluster"===this.type?{resources_filter:this.clusters}:{cluster_resources_filter:this.clusters}}}]),r}(w.default.Component),o=(0,b.default)(l.prototype,"type",[N.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return this.props.type?"namespace"===this.props.type?"project":this.props.type:"cluster"}}),c=(0,b.default)(l.prototype,"hideColumns",[N.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),i=(0,b.default)(l.prototype,"onChange",[N.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(t){e.store.sort_metric=e.store.sort_metric_options[0],e.hideColumns=[],new Promise((function(a){e.type=t,a()})).then((function(){e.fetchRankData()}))}}}),s=(0,b.default)(l.prototype,"handleColumnsHide",[N.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(t){e.hideColumns=t;var a=e.sourceMap[e.type].name;if(t.includes("".concat(e.store.sort_metric,"-").concat(a))){var r,n=e.store.sort_metric_options.filter((function(e){return!t.includes("".concat(e,"-").concat(a))}));e.store.changeSortMetric(null!==(r=n[0])&&void 0!==r?r:"")}}}}),d=(0,b.default)(l.prototype,"handleRefresh",[N.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(){e.store.changePagination({page:1,limit:10},e.resourcesParams)}}}),u=l))||u)||u;a.default=q},4335:function(e,t,a){"use strict";a(15);var r=a(20);a(73),a(4),a(23),a(17),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(45),a(73),a(42),a(4),a(23),a(57),a(17);var n,u,l=r(a(65)),o=r(a(36)),c=r(a(88)),i=r(a(55)),s=r(a(56)),d=r(a(51)),f=r(a(49)),p=(r(a(66)),a(14)),m=a(52),h=r(a(1210));function v(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,d.default)(e);if(t){var n=(0,d.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,s.default)(this,a)}}var y=["cluster_cpu_usage","cluster_cpu_utilisation","cluster_memory_usage_wo_cache","cluster_memory_utilisation","cluster_gpu_usage","cluster_gpu_memory_usage","cluster_disk_size_usage","cluster_disk_size_utilisation","cluster_pod_count","cluster_pod_utilisation"],g=["cluster_cpu_usage","cluster_cpu_utilisation","cluster_memory_usage_wo_cache","cluster_memory_utilisation","cluster_gpu_usage","cluster_gpu_memory_usage","cluster_disk_size_usage","cluster_disk_size_utilisation","cluster_pod_count","cluster_pod_utilisation"],_=(n=function(e){(0,i.default)(a,e);var t=v(a);function a(e){var r;return(0,o.default)(this,a),r=t.call(this,e),(0,l.default)(r,"sort_metric",u,(0,c.default)(r)),r.resource="clusters",r.sort_metric_options=(0,m.hideGPUByLicense)(y,r.cluster),r.metrics_filter=(0,m.hideGPUByLicense)(g,r.cluster).join("|"),r}return a}(h.default),u=(0,f.default)(n.prototype,"sort_metric",[p.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return y[0]}}),n);t.default=_},4339:function(e,t,a){"use strict";a(15);var r=a(20);a(31),a(16),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(31),a(16),a(4);var n=r(a(26)),u=r(a(0)),l=a(52),o=a(147),c=a(143),i=function(e){var t,a=e.data,r=void 0===a?{}:a;(0,c.useEventValue)(c.eventKeys.PROJECT_ITEM_CHANGE(r.namespace,r.cluster));var i=(0,n.default)(globals,"clusterProjectArray.".concat(r.cluster),[]).find((function(e){return r.namespace&&e.name===r.namespace}));return u.default.useEffect((function(){void 0===i&&o.eventBus.emit(c.eventKeys.requestAlias,{type:"project",params:{project:r.namespace,cluster:r.cluster}})}),[i]),(0,l.getDomTitle)(i?(0,l.getDisplayNameNew)(i):null!==(t=r.namespace)&&void 0!==t?t:"")};t.default=i},4340:function(e,t,a){e.exports={wrapper:"_3ApczdMf7j2uneTe2JGYhg",pane:"_3mbsKDk2kd11c9cfQjugZ6",pane__toolbar:"ltP4CEt8mymYRRT376qA-",title:"_3YhlPpJlvBKRdktHH-U1Bm",toolbar:"BtUrBQAOcPmFDbxZtn-WP",toolbar_buttons:"rBe1G0hiL9dSJRzNopOLY",toolbar_filter:"_2wEohvRkRnx1albThDzsmI",sortTypeSelect:"_2JiV45cgCQsYGRSS-XdjqR",sort_button:"upaGBQC-LyOMeHZRgUZoL",table:"_3_F7HRb-lHLYKEGnX7yjac",table_rank:"_22z8nWky5VNyXSk3K0UY-V",table_no_border:"_3BG_gTrG3w0kDAB_M06nhn",rankList_row:"_3OEoJlVN4Dyi5CEzkUjRbn",rankCol:"_2gr99clhZUVecFKrvnd-Hs",listContainer:"LG5IDGpgF8H2hMp0RbAU7",pane__pagination:"_3ekfhOsTLWYfIT0Aig-3kU",avatar:"_1BvPHiYQDEe03j5JCADESu",topWrapper:"D5uibtZo2AmnO5agkiJMS",titleWrapper:"Tuiyfc6XumfrbMbO6ufv1"}},4341:function(e,t,a){e.exports={clusterCard:"_2d7-7Gav8A5pdolAfGc3RO"}},4342:function(e,a,r){"use strict";r(15);var n=r(20),u=r(157);r(5),r(11),r(29),r(73),r(18),r(16),r(4),r(22),r(23),r(17),r(38),r(32),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(11),r(29),r(73),r(18),r(191),r(42),r(16),r(159),r(4),r(22),r(23),r(57),r(17),r(38),r(32);var l=n(r(30)),o=n(r(61)),c=n(r(43));r(41);var i,s=n(r(44)),d=n(r(36)),f=n(r(37)),p=n(r(55)),m=n(r(56)),h=n(r(51)),v=r(186),y=n(r(63)),g=r(239),_=u(r(0)),E=n(r(1237)),b=n(r(438)),S=n(r(945)),O=n(r(883)),R=n(r(4343)),T=n(r(439)),C=n(r(445)),A=r(52),P=r(791),k=n(r(3)),N=n(r(4344)),D=n(r(4350)),w=n(r(1869)),L=n(r(4357)),I=n(r(4359)),M=n(r(4361)),j=n(r(4365));function x(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,h.default)(e);if(t){var n=(0,h.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,m.default)(this,a)}}var U=(0,g.inject)("rootStore")(i=(0,g.observer)(i=(0,P.trigger)(i=function(e){(0,p.default)(r,e);var a=x(r);function r(){var e;(0,d.default)(this,r);for(var t=arguments.length,n=new Array(t),u=0;u0?e.store.setClusters(a):(r=e.clusterStore.list.data,n=(void 0===r?[]:r).map((function(e){return{name:e.name}})),localStorage.setItem("".concat(globals.user.username,"-observability"),JSON.stringify(n)),e.store.setClusters(n)),u=e.getClustersOriginList(),e.setState({selectedClusterList:u});case 11:case"end":return t.stop()}}),t)}))),e.getAlert=(0,s.default)(c.default.mark((function t(){var a,r,n,u;return c.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.hasAlerting){t.next=2;break}return t.abrupt("return");case 2:return a=e.state.selectedClusterList.map((function(e){return e.name})).join("|"),r=e.clusterStore.list.data,n=void 0===r?[]:r,t.next=6,e.alertStore.fetchList({limit:5,label_matcher:'{cluster=~"'.concat(a,'",severity=~"warning|error|critical"}'),allBuiltin:!0,sortBy:"activeAt"});case 6:u=t.sent,e.setState({alerts:u,originClusterList:n});case 8:case"end":return t.stop()}}),t)}))),e.initData=(0,s.default)(c.default.mark((function t(){return c.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.initClustersList();case 2:return t.next=4,Promise.all([e.store.getBaseResourcesSummary(),e.store.fetchAllMetricsData(),e.store.fetchRoleAndMember(),e.tagsStore.fetchGroupList(),e.store.fetchAlertData(),e.getAlert()]);case 4:case"end":return t.stop()}}),t)}))),e.handleClusterList=function(){e.setState({isHideClusterList:!e.state.isHideClusterList})},e}return(0,f.default)(r,[{key:"getClustersOriginList",value:function(){var e=this.clusterStore.list.data,t=void 0===e?[]:e,a=this.store.clusters,r=void 0===a?[]:a,n=t.filter((function(e){var t=r.filter((function(t){return t.name===e.name}));return!(0,y.default)(t)}));if(!(0,y.default)(n)){var u=n.filter((function(e){return e&&e.isHost})),l=n.filter((function(e){return e&&!e.isHost}));return[].concat((0,o.default)(u),(0,o.default)(l))}return[]}},{key:"componentDidMount",value:function(){this.initData()}},{key:"componentWillUnmount",value:function(){this.setState=function(){return!1}}},{key:"render",value:function(){var e=this,a=this.clusterStore.list.isLoading,r=this.state.isHideClusterList;return a?_.default.createElement(v.Loading,{className:"ks-page-loading",size:28,spinning:a}):_.default.createElement(g.Provider,{observabilityStore:this.store},_.default.createElement("div",{className:(0,k.default)(j.default.contentWrapper,(0,l.default)({},j.default.collapse,r))},_.default.createElement("div",{className:j.default.rightWrapper},_.default.createElement("div",{className:j.default.mainTitleWrapper},_.default.createElement("h3",{className:j.default.mainTitle},t("OVERVIEW")),_.default.createElement("div",{className:j.default.mainButtonWrapper},_.default.createElement(v.Button,{className:j.default.clusterListButton,onClick:this.handleClusterList},_.default.createElement("img",{src:"/assets/whizard-telemetry-left.svg",alt:""}),t(r?"WHIZARD_MONITORING.UNFOLD_CLUSTER_LIST":"WHIZARD_MONITORING.COLLAPSE_CLUSTER_LIST")),_.default.createElement(v.Button,{type:"control",icon:"layout",iconType:"light",className:j.default.mainFilterClusterButton,onClick:this.showCustomPanelModal},t("SELECT_CLUSTER")),_.default.createElement(v.Tooltip,{content:t("COMPONENT_PARAMETER_CONFIG"),placement:"topLeft"},_.default.createElement(v.Button,{type:"control",iconType:"light",className:j.default.mainWhizardSettingButton,icon:"cogwheel",onClick:this.showWhizardConfigModal})))),_.default.createElement(I.default,{resources:this.store.baseResourcesSummary,showResourceRankModal:this.showRankModal}),_.default.createElement("div",{className:j.default.customWrapper},_.default.createElement(D.default,{monitorData:this.store.monitorData}),this.hasAlerting&&_.default.createElement(N.default,{resources:this.store.alertData,alerts:this.state.alerts,originClusterList:this.state.originClusterList}),_.default.createElement(L.default,null))),_.default.createElement("div",{className:j.default.clustersListWrapper},_.default.createElement("div",{className:j.default.clustersListHeader},_.default.createElement("p",null,t("CLUSTER_PL")),_.default.createElement("div",{className:j.default.clusterShowTypeTabs},_.default.createElement(v.RadioGroup,{mode:"button",buttonWidth:32,value:this.state.gridType,onChange:this.handleGridType},_.default.createElement(v.RadioButton,{value:"row",key:"row"},_.default.createElement(v.Icon,{name:"grid-row",size:16})),_.default.createElement(v.RadioButton,{value:"list",key:"list"},_.default.createElement(v.Icon,{name:"grid-list",size:16}))))),_.default.createElement("div",{className:j.default.clustersList},this.state.selectedClusterList.map((function(t){return _.default.createElement(M.default,{key:t.uid,gridType:e.state.gridType,tagGroupList:e.tagsStore.tags,clusterDetail:t})}))))),_.default.createElement(w.default,{visible:this.state.customPanelModalVisible,onOk:this.setClusters,onCancel:this.hideCustomPanelModal,clusters:this.store.clusters}))}},{key:"hasAlerting",get:function(){return globals.app.hasKSModule("whizard")&&globals.app.hasKSModule("whizard-alerting")}}]),r}(_.Component))||i)||i)||i;a.default=U},4343:function(e,t,a){"use strict";a(15);var r=a(20);a(5),a(16),a(9),a(4),a(22),a(196),a(23),a(17),a(110),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(45),a(5),a(42),a(16),a(9),a(4),a(22),a(196),a(23),a(57),a(17),a(110);var n=r(a(43));a(41);var u,l,o,c,i,s,d=r(a(44)),f=r(a(65)),p=r(a(36)),m=r(a(37)),h=r(a(88)),v=r(a(55)),y=r(a(56)),g=r(a(51)),_=r(a(49)),E=(r(a(66)),a(14)),b=a(52);function S(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,g.default)(e);if(t){var n=(0,g.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,y.default)(this,a)}}var O=(u=function(e){(0,v.default)(u,e);var t,a,r=S(u);function u(){var e;(0,p.default)(this,u);for(var t=arguments.length,a=new Array(t),n=0;n0)){t.next=3;break}return t.next=3,e.monitorStore.fetchPodData(C(C(C({metrics:Object.values(P)},a),e.state.params),{},{resources:e.resourcesParam,fillZero:!0}));case 3:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),e.getValue=function(e){return parseFloat((0,E.default)(e,"value[1]",0))},e.renderChartTitle=function(e){var a=e.icon,r=e.used,n=e.title;return h.default.createElement("div",{className:R.default.chartTitle},h.default.createElement(y.Icon,{name:a,size:42}),h.default.createElement("div",{className:R.default.chartInfo},h.default.createElement("p",null,r),h.default.createElement("p",null,t(n))))},e.renderTooltipQos=function(){var e=h.default.createElement("div",{className:R.default.qosContent},h.default.createElement("p",null,t.html("QOS_GUARANTEED")),h.default.createElement("br",null),h.default.createElement("p",null,t.html("QOS_BURSTABLE")),h.default.createElement("br",null),h.default.createElement("p",null,t.html("QOS_BESTEFFORT")));return h.default.createElement(y.Tooltip,{content:e},h.default.createElement(y.Icon,{name:"question",size:16}))},e}return(0,d.default)(r,[{key:"componentDidMount",value:function(){var e=this;this.dispose=(0,O.reaction)((function(){return e.monitorStore.clusters}),(function(){e.fetchData()}))}},{key:"componentWillUnmount",value:function(){this.dispose&&this.dispose()}},{key:"renderChart",value:function(e){var a=(0,S.getAreaChartOps)(e);return(0,b.default)(a.data)?h.default.createElement("p",{className:R.default.noData},t("NO_DATA")):h.default.createElement(g.MediumArea,(0,u.default)({},a,{noTitle:!0,top:4,height:48,width:"100%",key:e.title}))}},{key:"renderPie",value:function(e){return h.default.createElement(g.MultiPie,{legendClassName:R.default.legendClassName,dataList:e.dataList,wrapperStyle:{display:"flex",left:"166px",justifyContent:"space-between",width:"calc(100% - 166px)"}})}},{key:"render",value:function(){var e=this,a=this.monitorStore.PodData.isLoading;return h.default.createElement("div",{className:R.default.container},h.default.createElement("div",{className:R.default.header},h.default.createElement("div",{className:R.default.title},t("POD_PL"))),h.default.createElement(y.Loading,{spinning:a},h.default.createElement("div",{className:R.default.flexcontainer},h.default.createElement("div",{className:(0,_.default)(R.default.chartbox,R.default.status)},h.default.createElement("div",{className:R.default.chartbox},this.renderPieOption.map((function(a,r){var n=a.dataList.every((function(e){return e.data.every((function(e){return 0===e.value}))}));return h.default.createElement("div",{className:(0,_.default)(R.default.item_pie,R.default.item),key:r},h.default.createElement("div",{className:R.default.pie_title},t(a.title),h.default.createElement("span",{className:R.default.pie_title_tooltip},"QoS"===a.title&&e.renderTooltipQos())),h.default.createElement("div",{className:R.default.pie_box},n?h.default.createElement("div",{className:R.default.pieNoData},h.default.createElement("img",{src:"/assets/doughnut_chart_duotone.svg"}),h.default.createElement("p",null,t("NO_DATA"))):h.default.createElement(h.default.Fragment,null,e.renderPie(a),h.default.createElement("div",{className:R.default.summary},h.default.createElement("p",null,a.total),h.default.createElement("p",null,t("ALL"))))))})))),h.default.createElement("div",{className:(0,_.default)(R.default.chartbox,R.default.right)},this.renderChartOption.map((function(t,a){return h.default.createElement("div",{className:(0,_.default)(R.default.item,R.default.areaChartItem),key:a},e.renderChartTitle(t),h.default.createElement("div",{className:R.default.chartBox},e.renderChart(t)))}))))))}},{key:"resourcesParam",get:function(){return this.monitorStore.clusters.map((function(e){return e.name}))}},{key:"metrics",get:function(){return(0,O.toJS)(this.monitorStore.PodData.data)}},{key:"renderChartOption",get:function(){var e=(0,S.getLastMonitoringData)(this.metrics);return[{category:"oomkilled",title:"OOM_KILL_PODS",icon:"error",unit:"",legend:["OOM_KILL_PODS"],data:(0,E.default)(this.metrics,"".concat(P.oomkilled,".data.result")),used:this.getValue(e[P.oomkilled])},{category:"pending",title:"PENDING_PODS",icon:"history-duotone",unit:"",legend:["PENDING_PODS"],data:(0,E.default)(this.metrics,"".concat(P.pending,".data.result")),used:this.getValue(e[P.pending])},{category:"evict",title:"EVICTED_PODS",unit:"",legend:["EVICTED_PODS"],icon:"logout-right-duotone",data:(0,E.default)(this.metrics,"".concat(P.evict,".data.result")),used:this.getValue(e[P.evict])}]}},{key:"renderPieOption",get:function(){var e=(0,S.getLastMonitoringData)(this.metrics);return[{title:"POD_STATUS",total:this.getValue(e[P.pod_total]),dataList:[{dataKey:"value",innerRadius:45,outerRadius:60,colors:["#55BC8A","#F5A623","#79879C","#CA2621","#E3E9EF","#EFF4F9"],data:[{name:t("RUNNING"),value:this.getValue(e[P.pod_running])},{name:t("PENDING"),value:this.getValue(e[P.pending])},{name:t("WHIZARD_MONITORING.SUCCEEDED"),value:this.getValue(e[P.pod_succeeded])},{name:t("FAILED"),value:this.getValue(e[P.pod_failed])},{name:t("UNKNOWN"),value:this.getValue(e[P.pod_unknown])}]}]},{title:"QoS",total:this.getValue(e[P.pod_total]),dataList:[{dataKey:"value",innerRadius:45,outerRadius:60,colors:["#55BC8A","#329DCE","#F5A623","#EFF4F9"],data:[{name:"Guaranteed",value:this.getValue(e[P.guaranteed])},{name:"Burstable",value:this.getValue(e[P.burstable])},{name:"BestEffort",value:this.getValue(e[P.bestEffort])}]}]}]}}]),r}(h.default.Component))||c)||c;a.default=k},4358:function(e,t,a){e.exports={container:"_2D4npaU7YPDW85p6WP30yH",flexcontainer:"_2uVJNz5stoDHLzHP0buq5_",header:"ltsZCVXPB5UZzjCAPRcQw",title:"_2td8Tc121fajHdAmGHvBMP",chartbox:"ctqOGhoxXWtaCk5EXAOdY",right:"EnM7mjoOWLpXOom0viNTM",status:"_1qTTW8qWoAF0moFN--m0mV",item:"_3WgGEFnsypxwk5HMTLqpDD",chartTitle:"_275-ogpvwB1RsqHVehF6Ag",chartInfo:"_12J2jtb5glzpOFGgfe_iVc",areaChartItem:"_24zAW2fxpY4ZJZzs3txe21",chartBox:"IPLdLnqvv2_Hw9MoWC8dP",noData:"_2fXAWh_sWNspO_WoCRh1nI",item_pie:"_1T2cZyPSuaiId2IsSmh4WY",pie_title:"_32y2_r_5bRr4BzlogH2Wbz",pie_title_tooltip:"_36QWBpykpHp1_oKh0Qm71A",pie_box:"_36YiDQkZcohJwXFM5aNw-S",legendClassName:"_3LsPNKFHkizNWAJdknASqW",pieNoData:"_1DaTmtphwgi5onvXO3fHWF",summary:"_2H7Uj1yZYoyUAQSOhozHEA"}},4359:function(e,a,r){"use strict";r(15);var n=r(20);r(18),r(16),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var u=n(r(30));r(18),r(16);var l=n(r(0)),o=n(r(788)),c=n(r(801)),i=n(r(26)),s=r(14),d=r(186),f=r(239),p=n(r(3)),m=n(r(4360)),h=[{name:"cluster",icon:"cluster",title:"CLUSTER",more:!0},{name:"node",icon:"nodes",title:"NODE",more:!0},{name:"namespace",icon:"project",title:"PROJECT",more:!0},{name:"pod",icon:"pod",title:"POD",more:!0},{name:"deployment",icon:"backup",title:"DEPLOYMENT"},{name:"statefulset",icon:"stateful-set",title:"STATEFULSET"},{name:"daemonset",icon:"deamon-set",title:"DAEMONSET"},{name:"job",icon:"backup",title:"JOB"},{name:"cronjob",icon:"backup",title:"CRONJOB"},{name:"pvc",icon:"storage",title:"PERSISTENT_VOLUME_CLAIM_LOW"},{name:"service",icon:"appcenter",title:"SERVICE"},{name:"ingresses",icon:"loadbalancer",title:"ROUTE"}],v=(0,f.observer)((function(e){var a=e.resources,r=e.showResourceRankModal;return l.default.createElement(c.default,{className:m.default.resourceSummary},l.default.createElement(d.Loading,{spinning:a.isLoading},l.default.createElement("div",{className:m.default.wrapper},h.map((function(e){var n="cluster"===e.name?"clusters_count":"clusters_".concat(e.name,"_count"),c=(0,i.default)((0,s.toJS)(a),"data.".concat(n,".value.[1]"),0);return l.default.createElement("div",{className:(0,p.default)(m.default.wrapperItem,(0,u.default)({},m.default.wrapperItemHover,e.more)),key:e.name,onClick:function(){return e.more?r(e.name):void 0}},l.default.createElement(o.default,{noLink:!0,className:m.default.avatar,icon:e.icon,title:c,desc:t("1"===c?e.title:"".concat(e.title,"_PL")),iconSize:40}))})))))}));a.default=v},4360:function(e,t,a){e.exports={resourceSummary:"_1vcCZdKexNnfXYCBTFN8bI",wrapper:"_3989d40TDMXigrpfsexhb8",wrapperItem:"UvaGsWJ6TKbRJNBNf8sMV",wrapperItemHover:"_34HA-HXRa_aXepjsOCvrEm",avatar:"_1AaN-WlG-N_PXJbZxhDVae"}},4361:function(e,a,r){"use strict";r(15);var n=r(20);r(11),r(31),r(18),r(16),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var u=n(r(30));r(11),r(31),r(18),r(16),r(4);var l=n(r(0)),o=r(72),c=n(r(788)),i=n(r(839)),s=n(r(3)),d=r(186),f=n(r(996)),p=r(924),m=r(52),h=n(r(4362)),v=n(r(4364)),y=function(e){var a,r=e.gridType,n=void 0===r?"row":r,y=e.clusterDetail,g=void 0===y?{}:y,_=e.tagGroupList,E=void 0===_?[]:_,b=o.CLUSTER_PROVIDER_ICON[g.provider]||"kubernetes",S=g.group,O="row"!==n;return l.default.createElement("div",{className:(0,s.default)(v.default.card,(0,u.default)({},"".concat(v.default.grid),O))},l.default.createElement("div",{className:v.default.header},l.default.createElement(l.default.Fragment,null,l.default.createElement(c.default,{className:v.default.headTitle,title:l.default.createElement("div",{className:v.default.avatarTitle},l.default.createElement("span",{className:v.default.avatarText,title:(0,m.showNameAndAlias)(g)},(0,m.showNameAndAlias)(g)),O&&S&&l.default.createElement(d.Tag,{type:o.CLUSTER_GROUP_TAG_TYPE[S]},t("ENV_".concat(S.toUpperCase()),{defaultValue:S}))),desc:l.default.createElement("div",{className:v.default.desc},l.default.createElement("span",{style:{marginRight:"8px"}},g.isHost?t("HOST_CLUSTER"):t("MEMBER_CLUSTER_SCAP")),!g.isReady&&l.default.createElement(f.default,{data:g,placement:"right",tooltipModifiers:{preventOverflow:{enabled:!1}}})),icon:b,iconSize:40,to:g.isReady?"/whizard-telemetry/".concat(g.name,"/overview"):""}),g.isReady&&l.default.createElement(i.default,{className:v.default.indicator,status:"ready"}))),O&&l.default.createElement("div",{className:v.default.content},l.default.createElement("div",{className:v.default.contentItem},l.default.createElement(h.default,{title:t("NODE_COUNT"),desc:g.nodeCount})),l.default.createElement("div",{className:v.default.contentItem},l.default.createElement(h.default,{title:t("KUBERNETES_VERSION"),desc:g.kubernetesVersion})),l.default.createElement("div",{className:v.default.contentItem},l.default.createElement(h.default,{className:v.default.groupTags,title:t("CLUSTER_TAGS"),desc:l.default.createElement(p.ClusterTagGroup,{className:v.default.clusterTagGroup,data:(null!==(a=g.tags)&&void 0!==a?a:[]).map((function(e){return(E||[]).find((function(t){return e.name===t.name}))})).filter(Boolean),empty:"-"})}))))};a.default=y},4362:function(e,t,a){"use strict";a(15);var r=a(20);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(a(0)),u=r(a(3)),l=r(a(4363)),o=function(e){var t=e.title,a=e.desc,r=e.className;return n.default.createElement("div",{className:(0,u.default)(l.default.list,r)},n.default.createElement("div",{className:l.default.title},t),n.default.createElement("div",{className:l.default.desc},a))};t.default=o},4363:function(e,t,a){e.exports={list:"_1uK0REQlYus5fuAKXpZ86o",title:"OZTz0EpZEQuLmF4gvCpay",desc:"_18AbHIvIjaRK9hcaLlM7Ba"}},4364:function(e,t,a){e.exports={card:"_9jy1bJaTQRbsMMrSLjrXO",indicator:"Z_YYhFox6K3PUpA4cJ4oW",desc:"-Mb-U-yGhddZtV4wfS2N6",grid:"_2ClZmeh8HDEDyr796x3LrW",header:"_2JKKgEZVRihBixVXw-HaaG",content:"_3NmZE_Mv_VjwWxuWtoXPpi",contentItem:"_3iFXO8Slenc9ZBXihdia8X",groupTags:"_1VpQB7rxMX-2l2K89r5Ukd",clusterTagGroup:"_1pBblYRwLdwOfj3hOwNgw",avatarTitle:"iwIUC3r14tyi8ueg7dcP3",avatarText:"tWv9SN6Tj0Uh4Xd1qP-J-"}},4365:function(e,t,a){e.exports={contentWrapper:"-OhR4-URU3bA00K1pPm4K",rightWrapper:"_2pwhksJAvsPiuJCUFioxym",clustersListWrapper:"_1QQyhHRsrAxagH8wdVBV1s",collapse:"Hcdo4p6r_SIWCLHGAqVsL",mainTitleWrapper:"_3F0mxApuQXULwkK5ExRaLy",mainButtonWrapper:"_2Does8Ve-5ejbMvw4-6iFV",mainWhizardSettingButton:"_3KgNPr-GnecnByh6vaBk4o",mainFilterClusterButton:"_1MVgm5SuOhvTbgwLvjxh6h",clusterListButton:"_2oH1mGPWgzX-Jukxv-LIwb",clustersListHeader:"A6IJHNjuzW75uJA0C7QSq",clusterShowTypeTabs:"_19FA_uRjrDqa-nAyNmWcrV",customWrapper:"_1TZKMW3yWyo_ZWbsahTrMl",clustersList:"_277Ur4V8ZQzP1eWRAc69Mo"}},4366:function(e,a,r){"use strict";(function(e){var n=r(20),u=r(157);r(12),r(109),r(5),r(187),r(11),r(6),r(84),r(18),r(48),r(16),r(9),r(13),r(10),r(4),r(23),r(24),r(17),r(85),r(62),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(109),r(45),r(5),r(187),r(11),r(6),r(84),r(18),r(28),r(48),r(191),r(42),r(16),r(159),r(34),r(15),r(9),r(13),r(10),r(4),r(22),r(23),r(57),r(24),r(17),r(85),r(62),r(7);var l=n(r(61)),o=n(r(315)),c=n(r(43)),i=n(r(30)),s=n(r(58));r(41);var d,f=n(r(44)),p=n(r(36)),m=n(r(37)),h=n(r(55)),v=n(r(56)),y=n(r(51)),g=u(r(0)),_=r(186),E=n(r(788)),b=n(r(795)),S=n(r(792)),O=u(r(793)),R=n(r(796)),T=n(r(26)),C=n(r(247)),A=r(14),P=r(52),k=r(878),N=r(832),D=n(r(1425)),w=n(r(438)),L=n(r(994)),I=n(r(1870)),M=n(r(1871));function j(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function x(e){for(var t=1;t0&&void 0!==l[0]?l[0]:{},r=a.silent,n=(0,s.default)(a,["silent"]),u=e.props.store,r&&(u.list.silent=!0),t.next=5,u.fetchList(x(x(x({},e.props.match.params),n),{},{builtin:!1}));case 5:return t.next=7,e.props.store.fetchCount();case 7:u.list.silent=!1;case 8:case"end":return t.stop()}}),t)}))),e.getAllCluster=(0,f.default)(c.default.mark((function t(){var a;return c.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.clusterStore.fetchList({limit:-1});case 2:a=t.sent,e.setState({allClusters:a});case 4:case"end":return t.stop()}}),t)}))),e.renderRestCluster=function(t){var a=g.default.createElement("div",{className:M.default.tipClusterList},t.map((function(t,a){return g.default.createElement(L.default,{key:"".concat(t,"-").concat(a),cluster:t,allClusters:e.state.allClusters})})));return g.default.createElement(_.Tooltip,{content:a,placement:"top"},g.default.createElement("span",{className:M.default.restText},t.length))},e.getColumns=function(a){var r=e.props.getFilteredValue;return e.state.allClusters.length>0?[{title:t("NAME"),dataIndex:"name",search:!0,render:function(t,r){return g.default.createElement(E.default,{avatar:"/assets/bell_gear_duotone.svg",title:(0,P.getDisplayName)(r),desc:r.description,className:M.default["table-icon"],to:"builtin"===a?"".concat(e.props.match.url,"/builtin/").concat(t):"".concat(e.props.match.url,"/").concat(t)})}},{title:t("POLICY_STATUS"),dataIndex:"enable",filters:e.getEnableFilter(),filteredValue:r("enable"),isHideable:!0,search:!0,width:"16%",render:function(e,a){return g.default.createElement(b.default,{className:M.default.status_icon,type:JSON.parse(a.enabled)?"active":"disabled",name:JSON.parse(a.enabled)?t("ENABLED"):t("DISABLED")})}},{title:t("RULE_STATUS"),dataIndex:"state",search:!0,filters:e.getStatus(),isHideable:!0,width:"16%",render:function(e,t){return g.default.createElement(I.default,{rulesStats:t.rulesStats})}},{title:t("CLUSTER"),dataIndex:"clusterSelector",isHideable:!0,with:"24.6%",render:function(a,r){var n=(0,T.default)(r,"_originData.spec.rules",[]),u=[];n.forEach((function(e){(0,T.default)(e,"clusterSelector.inValues",[]).length>0&&(u=u.concat(e.clusterSelector.inValues)),"{}"===JSON.stringify(e.clusterSelector)&&(u=u.concat("ALL_CLUSTERS"))}));var l=(0,C.default)(u).slice(0,3),o=(0,C.default)(u).slice(3);return u.length>0?g.default.createElement("div",{className:M.default.clusterLine},l.map((function(a,r){return"ALL_CLUSTERS"===a?g.default.createElement(_.Tag,{type:"secondary"},t("ALL_CLUSTERS")):g.default.createElement(L.default,{key:"".concat(a,"-").concat(r),cluster:a,allClusters:e.state.allClusters})})),o.length>0&&e.renderRestCluster(o)):"-"}},{title:t("RECENT_DETECT_TIME"),dataIndex:"lastEvaluation",isHideable:!0,width:"15.8%",render:function(e,t){var a=(0,T.default)(t._originDataWithStatus,"status.lastEvaluation");return g.default.createElement("span",null,a?(0,P.getLocalTime)(a).format("YYYY-MM-DD HH:mm:ss"):"-")}}]:[]},e.showCreate=function(){var a=e.props,r=a.module,n=a.routing;return e.props.trigger("alerting.multi.policy.create",{module:r,title:t("CREATE_ALERTING_POLICY"),success:n.query})},e}return(0,m.default)(n,[{key:"componentDidMount",value:function(){this.getAllCluster()}},{key:"getStatus",value:function(){return k.ALERTING_STATUS.map((function(e){return{text:"disabled"===e?t("DISABLED"):t("ALERT_RULE_".concat(e.toUpperCase())),value:e}}))}},{key:"getEnableFilter",value:function(){return[{text:t("ENABLED"),value:"true"},{text:t("DISABLED"),value:"false"}]}},{key:"getAlertingTypes",value:function(){return N.SEVERITY_LEVEL.map((function(e){return{text:t(e.label),value:e.value}}))}},{key:"render",value:function(){var e=this.props,a=e.bannerProps,r=e.tableProps,n=this.state.type;return g.default.createElement(O.ListPage,(0,o.default)({},this.props,{getData:this.getData,noWatch:!0}),g.default.createElement(S.default,(0,o.default)({},a,{icon:function(){return g.default.createElement("img",{src:"/assets/bell_gear_duotone.svg"})},tips:this.tips,title:t("CUSTOM_POLICIES"),description:t("ALERTING_POLICY_DESC")})),g.default.createElement(R.default,(0,o.default)({},r,{enabledActions:this.enabledAction,rowKey:"name",itemActions:this.itemActions,columns:this.getColumns(n),tableActions:this.tableActions,onCreate:this.showCreate})))}},{key:"tips",get:function(){return[{title:t("REQUESTS_FOR_PUSH_AN_ALARM_Q"),description:t("REQUESTS_FOR_PUSH_AN_ALARM_A")}]}},{key:"enabledAction",get:function(){var e=this.props.tableProps.enabledActions;return[].concat((0,l.default)(e),["view","manage","create","edit","delete"])}},{key:"itemActions",get:function(){var a=this.props,r=a.trigger,n=a.routing,u=a.match,l=a.name,o=this.state.type;return[{key:"edit",icon:"pen",text:t("EDIT_INFORMATION"),action:"edit",onClick:function(a){r("multi.alerting.baseInfo.edit",{type:o,detail:a,module:e,cluster:u.params.cluster,namespace:u.params.namespace,title:t("EDIT_ALERTING_POLICY"),success:n.query})}},{key:"editYaml",icon:"pen",text:t("EDIT_YAML"),action:"edit",onClick:function(e){return r("multi.alerting.yaml.edit",{type:o,detail:e,cluster:u.params.cluster,namespace:u.params.namespace,title:t("EDIT_ALERTING_POLICY"),success:n.query})}},{key:"editRule",icon:"wrench",text:t("EDIT_ALERT_RULES"),action:"edit",onClick:function(e){r("multi.alerting.rule.edit",{type:o,detail:e,cluster:u.params.cluster,namespace:u.params.namespace,success:n.query})}},{key:"disablePolicy",icon:function(e){return JSON.parse(e.enabled)?"stop":"start"},text:function(e){return JSON.parse(e.enabled)?t("DISABLE"):t("ENABLE")},action:"edit",onClick:function(e){var a=JSON.parse(e.enabled);r(a?"multi.alarm.rule.update":"multi.enable.alarm.rule",{type:o,detail:e,cluster:u.params.cluster,namespace:u.params.namespace,resourceName:l,success:n.query,title:a?t("DISABLE_ALERTING_POLICY"):t("ENABLE_ALERTING_POLICY"),enabled:a})}},{key:"delete",icon:"trash",text:t("DELETE"),action:"delete",onClick:function(e){return r("multi.alerting.rule.delete",{type:o,name:l,cluster:u.params.cluster,namespace:u.params.namespace,detail:e,success:n.query})}}]}},{key:"tableActions",get:function(){var e=this.props,a=e.tableProps,r=e.trigger,n=e.name,u=e.store,o=e.match,c=e.routing,i=this.state.type,s=(0,A.toJS)(u.list.data),d=(0,A.toJS)(u.list.selectedRowKeys),f=s.filter((function(e){return d.includes(e.name)})).every((function(e){return!JSON.parse(e.enabled)})),p=s.filter((function(e){return d.includes(e.name)})).every((function(e){return JSON.parse(e.enabled)}));return x(x({},a.tableActions),{},{selectActions:[].concat((0,l.default)(a.tableActions.selectActions),[{key:"enable",text:t("ENABLE"),action:"edit",disabled:p,onClick:function(){r("enable.alerting.rule",{type:i,resourceName:n,cluster:o.params.cluster,namespace:o.params.namespace,title:t("ENABLE_ALERTING_POLICY"),enabled:!1,success:c.query,batchMode:!0})}},{key:"disable",text:t("DISABLE"),action:"edit",disabled:f,onClick:function(){r("alerting.rule.update",{type:i,resourceName:n,cluster:o.params.cluster,namespace:o.params.namespace,enabled:!0,success:c.query,batchMode:!0})}}])})}},{key:"resetPolicy",get:function(){var e=this.props,a=e.match,r=e.trigger,n=e.routing,u=this.state.type;return{key:"reset",icon:"restart",text:t("RESET"),action:"edit",onClick:function(e){return r("multi.alarm.rule.reset",{type:u,cluster:a.params.cluster,detail:e,success:n.query})}}}}]),n}(g.Component))||d;a.default=V}).call(this,r(138)(e))},4367:function(e,t,a){e.exports={statusBox:"_8xcxT2VIzDPoaNgPkY2_X",tipContent:"_1HlZWaJgV7c_9kKYhh9QyM","li-inactive":"_1m0qWSy0IG9uFNhjT4Acwy","li-pending":"_1NTW6o14KHRl84_frSJ2B2","li-firing":"_3IlHX0t9wMXXZgwBg3d47C","li-disabled":"ZxH2aeUm1la4RPFjAjaMB",pending:"_2NPwcS1Shy5tcQGEgP7sGp",inactive:"cZ4_W2l7CMHagL_GMhiW2",firing:"_1Vo6K4cvYSnqxb_EhlYd-w",disabled:"_1J8ZVk_-XVVJgCn85NBkIJ",iconDisabled:"-UzRfoH0BNxoDI3uOv0r7"}},4368:function(e,a,r){"use strict";(function(e){var n=r(20),u=r(157);r(12),r(109),r(5),r(187),r(11),r(6),r(84),r(18),r(48),r(16),r(9),r(13),r(10),r(4),r(23),r(24),r(17),r(85),r(62),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(109),r(45),r(5),r(187),r(11),r(6),r(84),r(18),r(28),r(48),r(42),r(16),r(34),r(15),r(9),r(13),r(10),r(4),r(22),r(23),r(57),r(24),r(17),r(85),r(62),r(7);var l=n(r(61)),o=n(r(315)),c=n(r(43)),i=n(r(30)),s=n(r(58));r(41);var d,f=n(r(44)),p=n(r(36)),m=n(r(37)),h=n(r(55)),v=n(r(56)),y=n(r(51)),g=u(r(0)),_=n(r(788)),E=n(r(795)),b=n(r(792)),S=u(r(793)),O=r(186),R=n(r(796)),T=n(r(26)),C=n(r(247)),A=r(14),P=r(52),k=r(878),N=r(832),D=n(r(1425)),w=n(r(438)),L=n(r(994)),I=n(r(1870)),M=n(r(1871));function j(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function x(e){for(var t=1;t0&&void 0!==l[0]?l[0]:{},r=a.silent,n=(0,s.default)(a,["silent"]),u=e.props.store,r&&(u.list.silent=!0),t.next=5,u.fetchList(x(x(x({},e.props.match.params),n),{},{builtin:!0}));case 5:return t.next=7,e.props.store.fetchCount();case 7:u.list.silent=!1;case 8:case"end":return t.stop()}}),t)}))),e.getAllCluster=(0,f.default)(c.default.mark((function t(){var a;return c.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.clusterStore.fetchList({limit:-1});case 2:a=t.sent,e.setState({allClusters:a});case 4:case"end":return t.stop()}}),t)}))),e.renderRestCluster=function(t){var a=g.default.createElement("div",{className:M.default.tipClusterList},t.map((function(t,a){return g.default.createElement(L.default,{key:"".concat(t,"-").concat(a),cluster:t,allClusters:e.state.allClusters})})));return g.default.createElement(O.Tooltip,{content:a,placement:"top"},g.default.createElement("span",{className:M.default.restText},t.length))},e.getColumns=function(){var a=e.props.getFilteredValue;return[{title:t("NAME"),dataIndex:"name",search:!0,render:function(t,a){return g.default.createElement(_.default,{avatar:"/assets/bell_gear_duotone.svg",title:(0,P.getDisplayName)(a),desc:a.description,className:M.default["table-icon"],to:"".concat(e.props.match.url,"/").concat(t)})}},{title:t("POLICY_STATUS"),dataIndex:"enable",filters:e.getEnableFilter(),filteredValue:a("enable"),isHideable:!0,search:!0,width:"16%",render:function(e,a){return g.default.createElement(E.default,{className:M.default.status_icon,type:a.enabled&&JSON.parse(a.enabled)?"active":"disabled",name:a.enabled&&JSON.parse(a.enabled)?t("ENABLED"):t("DISABLED")})}},{title:t("RULE_STATUS"),dataIndex:"state",search:!0,filters:e.getStatus(),isHideable:!0,width:"16%",render:function(e,t){return g.default.createElement(I.default,{rulesStats:t.rulesStats})}},{title:t("CLUSTER"),dataIndex:"clusterSelector",isHideable:!0,with:"24.6%",render:function(a,r){var n=(0,T.default)(r,"_originData.spec.rules",[]),u=[];n.forEach((function(e){(0,T.default)(e,"clusterSelector.inValues",[]).length>0&&(u=u.concat(e.clusterSelector.inValues))}));var l=(0,C.default)(u).slice(0,3),o=(0,C.default)(u).slice(3);return u.length>0?g.default.createElement("div",{className:M.default.clusterLine},l.map((function(t,a){return g.default.createElement(L.default,{key:"".concat(t,"-").concat(a),cluster:t,allClusters:e.state.allClusters})})),o.length>0&&e.renderRestCluster(o)):g.default.createElement(O.Tag,{type:"secondary"},t("ALL_CLUSTERS"))}},{title:t("RECENT_DETECT_TIME"),dataIndex:"lastEvaluation",isHideable:!0,width:"15.8%",render:function(e,t){var a=(0,T.default)(t._originDataWithStatus,"status.lastEvaluation");return g.default.createElement("span",null,a?(0,P.getLocalTime)(a).format("YYYY-MM-DD HH:mm:ss"):"-")}}]},e}return(0,m.default)(n,[{key:"componentDidMount",value:function(){this.getAllCluster()}},{key:"getStatus",value:function(){return k.ALERTING_STATUS.map((function(e){return{text:"disabled"===e?t("DISABLED"):t("ALERT_RULE_".concat(e.toUpperCase())),value:e}}))}},{key:"getEnableFilter",value:function(){return[{text:t("ENABLED"),value:"true"},{text:t("DISABLED"),value:"false"}]}},{key:"getAlertingTypes",value:function(){return N.SEVERITY_LEVEL.map((function(e){return{text:t(e.label),value:e.value}}))}},{key:"render",value:function(){var e=this.props,a=e.bannerProps,r=e.tableProps;return g.default.createElement(S.ListPage,(0,o.default)({},this.props,{getData:this.getData,noWatch:!0}),g.default.createElement(b.default,(0,o.default)({},a,{icon:function(){return g.default.createElement("img",{src:"/assets/bell_gear_duotone.svg"})},tips:this.tips,title:t("BUILT_IN_POLICIES"),description:t("ALERTING_POLICY_DESC")})),g.default.createElement(R.default,(0,o.default)({},r,{enabledActions:this.enabledAction,rowKey:"name",itemActions:this.itemActions,columns:this.getColumns(),tableActions:this.tableActions,onCreate:null})))}},{key:"tips",get:function(){return[{title:t("REQUESTS_FOR_PUSH_AN_ALARM_Q"),description:t("REQUESTS_FOR_PUSH_AN_ALARM_A")}]}},{key:"enabledAction",get:function(){var e=[].concat((0,l.default)(this.props.tableProps.enabledActions),["view"]);return e="custom"===this.state.type?[].concat((0,l.default)(e),["manage","create","edit"]):[].concat((0,l.default)(e),["edit"])}},{key:"itemActions",get:function(){var a=this.props,r=a.trigger,n=a.routing,u=a.match,l=a.name,o=this.state.type;return[{key:"edit",icon:"pen",text:t("EDIT_INFORMATION"),action:"edit",onClick:function(a){r("multi.alerting.baseInfo.edit",{type:o,detail:a,module:e,cluster:u.params.cluster,namespace:u.params.namespace,title:t("EDIT_ALERTING_POLICY"),success:n.query})}},{key:"editYaml",icon:"pen",text:t("EDIT_YAML"),action:"edit",onClick:function(e){return r("multi.alerting.yaml.edit",{type:o,detail:e,cluster:u.params.cluster,namespace:u.params.namespace,title:t("EDIT_ALERTING_POLICY"),success:n.query})}},{key:"editRule",icon:"wrench",text:t("EDIT_ALERT_RULES"),action:"edit",onClick:function(e){r("multi.alerting.rule.edit",{type:o,detail:e,cluster:u.params.cluster,namespace:u.params.namespace,success:n.query})}},{key:"disablePolicy",icon:function(e){return JSON.parse(e.enabled)?"stop":"start"},text:function(e){return JSON.parse(e.enabled)?t("DISABLE"):t("ENABLE")},action:"edit",onClick:function(e){var a=JSON.parse(e.enabled);r(a?"multi.alarm.rule.update":"multi.enable.alarm.rule",{type:o,detail:e,cluster:u.params.cluster,namespace:u.params.namespace,resourceName:l,success:n.query,title:a?t("DISABLE_ALERTING_POLICY"):t("ENABLE_ALERTING_POLICY"),enabled:a})}},{key:"reset",icon:"restart",text:t("RESET"),action:"edit",onClick:function(e){return r("multi.alarm.rule.reset",{type:o,cluster:u.params.cluster,detail:e,success:n.query})}}]}},{key:"tableActions",get:function(){var e=this.props,a=e.tableProps,r=e.trigger,n=e.name,u=e.store,o=e.match,c=e.routing,i=this.state.type,s=(0,A.toJS)(u.list.data),d=(0,A.toJS)(u.list.selectedRowKeys),f=s.filter((function(e){return d.includes(e.name)})).every((function(e){return!JSON.parse(e.enabled)})),p=s.filter((function(e){return d.includes(e.name)})).every((function(e){return JSON.parse(e.enabled)}));return x(x({},a.tableActions),{},{selectActions:[].concat((0,l.default)(a.tableActions.selectActions),[{key:"enable",text:t("ENABLE"),action:"edit",disabled:p,onClick:function(){r("enable.alerting.rule",{type:i,resourceName:n,cluster:o.params.cluster,namespace:o.params.namespace,title:t("ENABLE_ALERTING_POLICY"),enabled:!1,success:c.query,batchMode:!0})}},{key:"disable",text:t("DISABLE"),action:"edit",disabled:f,onClick:function(){r("alerting.rule.update",{type:i,resourceName:n,cluster:o.params.cluster,namespace:o.params.namespace,enabled:!0,success:c.query,batchMode:!0})}}])})}}]),n}(g.Component))||d;a.default=V}).call(this,r(138)(e))},4369:function(e,a,r){"use strict";var n=r(20),u=r(157);r(12),r(5),r(11),r(6),r(18),r(16),r(9),r(13),r(10),r(4),r(23),r(24),r(17),r(62),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(45),r(5),r(11),r(6),r(18),r(28),r(42),r(16),r(34),r(15),r(9),r(13),r(10),r(4),r(22),r(23),r(57),r(24),r(17),r(62),r(7);var l=n(r(315)),o=n(r(43));r(41);var c,i=n(r(44)),s=n(r(30)),d=n(r(36)),f=n(r(37)),p=n(r(55)),m=n(r(56)),h=n(r(51)),v=n(r(795)),y=n(r(790)),g=n(r(880)),_=n(r(792)),E=u(r(793)),b=n(r(796)),S=r(832),O=n(r(451)),R=n(r(26)),T=n(r(994)),C=n(r(0)),A=r(433),P=n(r(1237)),k=n(r(438)),N=r(52),D=r(878),w=r(72),L=n(r(1872));function I(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function M(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.cluster,a=e.namespace,r=this.props.match.params,n=r.cluster,u=r.namespace,l=r.workspace;return t=t||n,a=a||u,"".concat(l?"/".concat(l):"","/clusters/").concat(t).concat(a?"/projects/".concat(a):"")}},{key:"getTableProps",value:function(){return{tableActions:M(M({},this.props.tableProps.tableActions),{},{selectActions:[]}),emptyProps:{desc:t("ALERTING_MESSAGE_EMPTY_DESC")}}}},{key:"getAlertingTypes",value:function(){return S.SEVERITY_LEVEL.map((function(e){return{text:t(e.label),value:e.value}}))}},{key:"getStatus",value:function(){return["pending","firing"].map((function(e){return{text:t("ALERT_RULE_".concat(e.toUpperCase())),value:e}}))}},{key:"render",value:function(){var e=this.props,a=e.bannerProps,r=e.tableProps;return C.default.createElement(E.ListPage,(0,l.default)({},this.props,{getData:this.getData,noWatch:!0}),C.default.createElement(_.default,(0,l.default)({},a,{tips:this.tips,icon:"loudspeaker",title:t("WHIZARD_MONITORING.CUSTOM_ALERTING_PL"),description:t("ALERT_MESSAGE_DESC")})),C.default.createElement(b.default,(0,l.default)({},r,this.getTableProps(),{rowKey:"id",itemActions:[],columns:this.getColumns(),onCreate:this.showCreate,showKeywords:!0})))}},{key:"tips",get:function(){return[{title:t("REQUESTS_FOR_TRIGGER_AN_ALARM_Q"),description:t("REQUESTS_FOR_TRIGGER_AN_ALARM_A")}]}}]),r}(C.default.Component))||c;a.default=x},4370:function(e,a,r){"use strict";var n=r(20),u=r(157);r(12),r(5),r(11),r(6),r(18),r(16),r(9),r(13),r(10),r(4),r(23),r(24),r(17),r(62),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(45),r(5),r(11),r(6),r(18),r(28),r(42),r(16),r(34),r(15),r(9),r(13),r(10),r(4),r(22),r(23),r(57),r(24),r(17),r(62),r(7);var l=n(r(315)),o=n(r(43));r(41);var c,i=n(r(44)),s=n(r(30)),d=n(r(36)),f=n(r(37)),p=n(r(55)),m=n(r(56)),h=n(r(51)),v=n(r(795)),y=n(r(790)),g=n(r(880)),_=n(r(792)),E=u(r(793)),b=n(r(796)),S=r(832),O=n(r(451)),R=n(r(26)),T=n(r(994)),C=n(r(0)),A=r(433),P=n(r(1237)),k=n(r(438)),N=r(52),D=r(878),w=r(72),L=n(r(1872));function I(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function M(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.cluster,a=e.namespace,r=this.props.match.params,n=r.cluster,u=r.namespace,l=r.workspace;return t=t||n,a=a||u,"".concat(l?"/".concat(l):"","/clusters/").concat(t).concat(a?"/projects/".concat(a):"")}},{key:"getTableProps",value:function(){return{tableActions:M(M({},this.props.tableProps.tableActions),{},{selectActions:[]}),emptyProps:{desc:t("ALERTING_MESSAGE_EMPTY_DESC")}}}},{key:"getAlertingTypes",value:function(){return S.SEVERITY_LEVEL.map((function(e){return{text:t(e.label),value:e.value}}))}},{key:"getStatus",value:function(){return["pending","firing"].map((function(e){return{text:t("ALERT_RULE_".concat(e.toUpperCase())),value:e}}))}},{key:"render",value:function(){var e=this.props,a=e.match,r=e.bannerProps,n=e.tableProps,u=a.params.namespace;return C.default.createElement(E.ListPage,(0,l.default)({},this.props,{getData:this.getData,noWatch:!0}),C.default.createElement(_.default,(0,l.default)({},r,{tips:this.tips,tabs:u?{}:this.tabs,icon:"loudspeaker",title:t("WHIZARD_MONITORING.BUILT_IN_ALERTING_PL"),description:t("ALERT_MESSAGE_DESC")})),C.default.createElement(b.default,(0,l.default)({},n,this.getTableProps(),{rowKey:"id",itemActions:[],columns:this.getColumns(),onCreate:this.showCreate,showKeywords:!0})))}},{key:"tips",get:function(){return[{title:t("REQUESTS_FOR_TRIGGER_AN_ALARM_Q"),description:t("REQUESTS_FOR_TRIGGER_AN_ALARM_A")}]}}]),r}(C.default.Component))||c;a.default=x},4371:function(e,a,r){"use strict";var n=r(20),u=r(157);r(12),r(5),r(11),r(6),r(18),r(16),r(9),r(13),r(10),r(4),r(23),r(17),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(45),r(5),r(11),r(6),r(18),r(28),r(42),r(16),r(34),r(15),r(9),r(13),r(10),r(4),r(22),r(23),r(57),r(17),r(7);var l=n(r(315)),o=n(r(43));r(41);var c,i,s=n(r(44)),d=n(r(30)),f=n(r(36)),p=n(r(37)),m=n(r(55)),h=n(r(56)),v=n(r(51)),y=n(r(49)),g=n(r(839)),_=n(r(792)),E=r(14),b=u(r(793)),S=n(r(796)),O=r(72),R=r(186),T=n(r(4372)),C=n(r(0)),A=r(433),P=n(r(4374)),k=n(r(438)),N=r(52),D=n(r(936)),w=n(r(4375));function L(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function I(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},a=t.metric_name,r=(0,R.default)(t,"data.result")||[];return r.forEach((function(t,r){var n=e[r]||{},u=(0,R.default)(t,"value",[]),l=(0,R.default)(t,"metric",{});n[a]=u[1],Object.assign(n,l),e[r]=n})),e}),[])},e}return(0,g.default)(r,[{key:"fetchList",value:(t=(0,h.default)(n.default.mark((function e(){var t,a,r,u,c,i,s,d,f,p,m,h,v,y,g,_,E=this,b=arguments;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=b.length>0&&void 0!==b[0]?b[0]:{},a=t.cluster,r=t.pod,u=t.phase,c=t.pod_ip,i=t.node,s=t.namespace,d=t.limit,f=void 0===d?10:d,p=t.page,m=void 0===p?1:p,h=(0,o.default)(t,["cluster","pod","phase","pod_ip","node","namespace","limit","page"]),this.list.isLoading=!0,v={},a&&(v.cluster=a),s&&(v.namespace=s),r&&(v.pod=r),u&&(v.phase=u),c&&(v.pod_ip=c),i&&(v.node=i),(0,C.default)(v)||(h.custom_filter=Object.entries(v).map((function(e){var t=(0,l.default)(e,2),a=t[0],r=t[1];return E.precise.includes(a)?"".concat(a,'="').concat(r,'"'):"".concat(a,'=~".*').concat(r,'.*"')})).join(",")),h.sortBy&&(this.sort_metric=h.sortBy,delete h.sortBy,this.sort_type=void 0===h.ascending?"desc":"asc",delete h.ascending),f!==this.limit&&(this.limit=Number(f)),m!==this.page&&(this.page=Number(m)),y={type:this.rankRequestTag,page:this.page,limit:this.limit,sort_type:this.sort_type,sort_metric:this.sort_metric},e.next=16,(0,A.to)(request.get(this.fetchUrl,(0,T.default)(y,h)));case 16:return g=e.sent,_=this.handleResult(g),this.total=g.total_item,this.list.data=_,this.list.update(N(N({data:_,total:this.total},h),{},{limit:this.limit,page:this.page,isLoading:!1,filters:v})),e.abrupt("return",_);case 22:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})},{key:"apiVersion",get:function(){return"kapis/monitoring.kubesphere.io/v1beta1"}},{key:"precise",get:function(){return["phase"]}},{key:"fetchUrl",get:function(){return"".concat(this.apiVersion,"/pod_metrics")}},{key:"rankRequestTag",get:function(){return"rank"}},{key:"defaultParams",get:function(){return{type:this.rankRequestTag}}}]),r}(r(a(68)).default),i=(0,O.default)(c.prototype,"page",[P.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 1}}),s=(0,O.default)(c.prototype,"limit",[P.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 10}}),d=(0,O.default)(c.prototype,"sort_type",[P.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return"desc"}}),f=(0,O.default)(c.prototype,"cluster",[P.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),p=(0,O.default)(c.prototype,"sort_metric",[P.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return"pod_status_info"}}),(0,O.default)(c.prototype,"fetchList",[P.action],Object.getOwnPropertyDescriptor(c.prototype,"fetchList"),c.prototype),m=(0,O.default)(c.prototype,"changePagination",[P.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(t,a){var r=t.page,n=t.limit;e.page=r,e.limit=n,e.fetchAll(a)}}}),c);t.default=w},4375:function(e,t,a){e.exports={avatar:"_21er6BS9HgiSzfcwvHodAW",icon:"_174me-_OsbOykXwfIqaCc4",indicator:"_3ZFAO1yLYiAVj9XiPPfXX-",title:"nibjOvK-zQ0cBDxKW3lWB",desc:"_2HPKwaweSs8lxYNis-wbOH"}},4376:function(e,a,r){"use strict";var n=r(20);r(12),r(109),r(5),r(11),r(6),r(86),r(48),r(16),r(9),r(13),r(10),r(4),r(23),r(24),r(17),r(62),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(109),r(45),r(5),r(11),r(6),r(86),r(28),r(48),r(42),r(16),r(34),r(15),r(9),r(13),r(10),r(4),r(23),r(57),r(24),r(17),r(62),r(7);var u,l=n(r(315)),o=n(r(61)),c=n(r(30)),i=n(r(36)),s=n(r(37)),d=n(r(55)),f=n(r(56)),p=n(r(51)),m=n(r(0)),h=r(14),v=r(239),y=n(r(26)),g=n(r(63)),_=r(186),E=n(r(795)),b=r(52),S=r(791),O=n(r(1425)),R=n(r(823)),T=n(r(4377)),C=n(r(4383));function A(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function P(e){for(var t=1;t0?"builtin":"custom"}},{key:"listUrl",get:function(){var e=this.type;return"/whizard-telemetry/metrics/alerting/".concat(e,"-rules")}},{key:"routing",get:function(){return this.props.rootStore.routing}},{key:"resetPolicy",get:function(){var e=this,a=this.props.match,r=(0,h.toJS)(this.store.detail);return{key:"reset",icon:"restart",text:t("RESTORE_DEFAULT_POLICY"),action:"edit",onClick:function(){return e.trigger("alerting.rule.reset",{type:e.type,cluster:a.params.cluster,detail:r,success:e.fetchData})}}}}]),r}(m.default.Component))||u)||u)||u;a.default=N},4377:function(e,t,a){"use strict";a(15);var r=a(20);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=a(317),u=r(a(4378)),l=r(a(4381));t.default=function(e){return[{path:"".concat(e,"/rules"),title:"ALERTING_RULE",component:u.default,exact:!0},{path:"".concat(e,"/messages"),title:"ALERTING_MESSAGE_PL",component:l.default,exact:!0},(0,n.getIndexRoute)({path:e,to:"".concat(e,"/rules"),exact:!0})]}},4378:function(e,t,a){"use strict";var r=a(20);a(12),a(5),a(11),a(6),a(86),a(16),a(9),a(13),a(10),a(4),a(23),a(24),a(17),a(62),a(7),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(12),a(45),a(5),a(11),a(6),a(86),a(28),a(42),a(16),a(34),a(15),a(9),a(13),a(10),a(4),a(22),a(23),a(57),a(24),a(17),a(62),a(7);var n=r(a(43));a(41);var u,l=r(a(44)),o=r(a(30)),c=r(a(36)),i=r(a(37)),s=r(a(55)),d=r(a(56)),f=r(a(51)),p=r(a(0)),m=a(14),h=a(239),v=r(a(26)),y=r(a(438)),g=r(a(4379));function _(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function E(e){for(var t=1;t0?"builtin":"custom"}},{key:"rules",get:function(){return(0,m.toJS)((0,v.default)(this.store,"detail._originDataWithStatus.spec.rules",[]))}}]),a}(p.default.Component))||u)||u;t.default=S},4379:function(e,a,r){"use strict";var n=r(20);r(12),r(11),r(6),r(18),r(48),r(9),r(13),r(10),r(4),r(23),r(24),r(17),r(188),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(45),r(11),r(6),r(18),r(28),r(48),r(42),r(34),r(15),r(9),r(13),r(10),r(4),r(23),r(57),r(24),r(17),r(188),r(7);var u,l=n(r(30)),o=n(r(315)),c=n(r(36)),i=n(r(37)),s=n(r(55)),d=n(r(56)),f=n(r(51)),p=n(r(0)),m=n(r(789)),h=r(239),v=r(186),y=r(14),g=n(r(135)),_=n(r(26)),E=n(r(250)),b=r(72),S=n(r(3)),O=n(r(4380)),R=n(r(1873));function T(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function C(e){for(var t=1;t0&&(s=R.default.createElement(R.default.Fragment,null,i.map((function(a,r,u){var l="".concat(e.renderClusterAliasName(a.cluster)," | ").concat(a.names.length);return R.default.createElement("div",{className:A.default.template_deploy,key:"".concat(a.namespace,"_").concat(r),style:{maxWidth:"276px"}},R.default.createElement("div",null,R.default.createElement("span",{key:r,style:{marginBottom:"4px"}},R.default.createElement(O.default,{key:"".concat(a.cluster,"-").concat(r),cluster:a.cluster,allClusters:n,title:l}))),R.default.createElement("span",{className:A.default.deploy_des,style:{marginBottom:r!==u.length-1?"12px":"0px"}},t("NODES_VALUES",{values:a.names.join(",")})))})))),R.default.createElement("div",{className:A.default.nodeList},c.map((function(a,r){var u=R.default.createElement("div",{className:A.default.template_deploy,index:r},R.default.createElement("span",{className:A.default.deploy_des},t("NODES_VALUES",{values:a.names.join(",")}))),l="".concat(e.renderClusterAliasName(a.cluster)," | ").concat(a.names.length);return R.default.createElement(p.Tooltip,{content:u,placement:"right",key:r},R.default.createElement("div",{key:"".concat(a.cluster,"-").concat(r)},R.default.createElement(O.default,{cluster:a.cluster,allClusters:n,title:l})))})),i.length>0&&R.default.createElement(p.Tooltip,{content:s,placement:"right"},R.default.createElement("div",{className:A.default.restItem},i.length)))}var d=(0,E.default)(c,"cluster"),f=null;return(i=Object.entries(d).slice(3)).length>0&&(f=R.default.createElement(R.default.Fragment,null,i.map((function(a,r){var u=(0,o.default)(a,2),c=u[0],i=u[1],s="".concat(e.renderClusterAliasName(c)," | ").concat(i.reduce((function(e,t){return e+t.names.length}),0));return R.default.createElement("div",{className:A.default.template_deploy,key:r,style:{width:"276px"}},R.default.createElement("div",null,R.default.createElement("span",{style:{marginBottom:"4px"},key:"".concat(c,"-").concat(r)},R.default.createElement(O.default,{cluster:c,allClusters:n,title:s}))),i.map((function(e,a,r){return R.default.createElement("div",{className:A.default.template_deploy,key:"".concat(e.cluster,"_").concat(a),style:{marginBottom:a!==r.length-1?"8px":"0px"},index:a},R.default.createElement("div",{className:A.default.title},R.default.createElement("img",{src:"/assets/alarmProject.svg"}),R.default.createElement("span",null,e.namespace)),R.default.createElement("span",{className:A.default.deploy_des},t(w[l],{values:e.names.join(",")})))})))})))),R.default.createElement("div",{className:A.default.nodeList},Object.entries(d).map((function(a,r){var u=(0,o.default)(a,2),c=u[0],i=u[1];if(r>2)return null;var s=i.map((function(e,a){return R.default.createElement("div",{className:A.default.template_deploy,key:a},R.default.createElement("div",{className:A.default.title},R.default.createElement("img",{src:"/assets/alarmProject.svg"}),R.default.createElement("span",null,e.namespace)),R.default.createElement("span",{className:A.default.deploy_des},t(w[l],{values:e.names.join(",")})))})),d="".concat(e.renderClusterAliasName(c)," | ").concat(i.reduce((function(e,t){return e+t.names.length}),0));return R.default.createElement(p.Tooltip,{content:s,placement:"right"},R.default.createElement("span",{key:"".concat(c,"-").concat(r)},R.default.createElement(O.default,{cluster:c,allClusters:n,title:d})))})),i.length>0&&R.default.createElement(p.Tooltip,{content:f,placement:"right"},R.default.createElement("div",{className:A.default.restItem},i.length)))},e.targetContent=function(){return R.default.createElement(R.default.Fragment,null,e.renderTemplateRuleTarget(),R.default.createElement("div",{className:A.default.desc},t("MONITORING_TARGETS")))},e.renderMonitorTarget=function(){return R.default.createElement("div",{className:A.default.target},"Template"===e.ruleType&&e.targetContent())},e.renderTime=function(){var a=e.props.status,r=(0,_.default)(a,"lastEvaluation",!1);return R.default.createElement("div",{className:A.default.timeLabel},R.default.createElement("span",{className:(0,h.default)(A.default.time,(0,l.default)({},A.default.time_white,e.props.isExpand))},r?(0,T.getLocalTime)(r).format("YYYY-MM-DD HH:mm:ss"):"-"),R.default.createElement("div",{className:A.default.desc},t("RECENT_DETECT_TIME")))},e.renderAlertRule=function(){var a="Custom"===e.ruleType;return R.default.createElement("p",null,R.default.createElement("span",{className:A.default.label},a?t("DURATION"):t("TRIGGER_CONDITION"),":"),R.default.createElement("span",null,e.ruleExpr))},e.renderExtraContent=function(){var a=e.props,r=a.rule,n=a.isExpand,u=(0,_.default)(r,"annotations.message",""),o=(0,_.default)(r,"annotations.description","-"),c=""!==u?u:o;return R.default.createElement("div",{className:(0,h.default)(A.default.itemExtra,(0,l.default)({},A.default.itemExtraShow,n))},R.default.createElement("div",{className:A.default.ms_content},e.renderAlertRule(),R.default.createElement("p",null,R.default.createElement("span",{className:A.default.label},t("RULE_EXPRESSION"),":"),R.default.createElement("span",{className:A.default.ruleExpr},r.expr))),R.default.createElement("div",{className:A.default.ms_content},R.default.createElement("p",null,R.default.createElement("span",{className:A.default.label},t("MESSAGE_SUMMARY"),":"),R.default.createElement("span",null,(0,_.default)(r,"annotations.summary",""))),R.default.createElement("p",null,R.default.createElement("span",{className:A.default.label},t("MESSAGE_DETAILS"),":"),R.default.createElement("span",null,c))))},e}return(0,i.default)(r,[{key:"render",value:function(){var e=this.props.isExpand;return R.default.createElement("div",{className:A.default.item},R.default.createElement("div",{className:(0,h.default)(A.default.content,(0,l.default)({},A.default.expanded,e)),onClick:this.handleExpandClick},this.renderHead(),this.renderMonitorTarget(),this.renderTime(),R.default.createElement(p.Icon,{name:"chevron-down",type:e?"light":"",size:20})),this.renderExtraContent())}},{key:"ruleType",get:function(){var e=this.props.rule,t=(0,_.default)(e,"exprBuilder",{});return(0,b.default)(t)?"Custom":"Template"}},{key:"monitorType",get:function(){var e=this.props.rule;return Object.keys((0,_.default)(e,"exprBuilder",{}))[0]}},{key:"severityConfig",get:function(){return y.SEVERITY_LEVEL.map((function(e){return{value:e.value,label:e.label}}))}},{key:"resourceType",get:function(){var e=this.props.rule;return Object.keys(e.exprBuilder)[0]}},{key:"metricThreshold",get:function(){var e=this.props.rule;return(0,_.default)(e.exprBuilder[this.resourceType],"metricThreshold",{})}},{key:"disabled",get:function(){var e=this.props.rule;return JSON.parse((0,_.default)(e,"disable","false"))}},{key:"ruleExpr",get:function(){var e=this.props.rule,a="Custom"===this.ruleType;if(!e.for)return"-";var r=(0,_.default)(e,"for",""),n=r.slice(0,-1);if(a)return t(N[r.slice(-1)],{num:n});var u=Object.keys(this.metricThreshold)[0],l=Object.keys(this.metricThreshold[u])[0],o="".concat(u,":").concat(l),c=g.RESOURCE_METRICS_CONFIG[this.monitorType][o],i=t("".concat(c.label)).replace(/[((]%[))]/g,"").replace(/\s$/,""),s=c.ruleConfig.filter((function(e){return"thresholds"===e.name}))[0].reverser,d=(0,_.default)(e,"exprBuilder.".concat(this.monitorType,".comparator")),f=(0,_.default)(e,"exprBuilder.".concat(this.monitorType,".metricThreshold.").concat(u,".").concat(l)),p=s(Number(f)),m="core"===c.ruleConfig[1].unit?1===p?t("CORE"):t("CORE_PL"):c.ruleConfig[1].unit,h=e.for.slice(0,-1),v=e.for.slice(-1);return"%"===m?t({s:"ALERT_RULE_TEXT_PERCENT_SECOND",m:"ALERT_RULE_TEXT_PERCENT_MINUTE",h:"ALERT_RULE_TEXT_PERCENT_HOUR"}[v],{alterTypeText:i,comparator:d,thresholds:p,durationValue:h}):t({s:"ALERT_RULE_TEXT_SECOND",m:"ALERT_RULE_TEXT_MINUTE",h:"ALERT_RULE_TEXT_HOUR"}[v],{alterTypeText:i,comparator:d,thresholds:p,unit:m,durationValue:h})}},{key:"hasMonitoring",get:function(){var e=this.props.cluster;return globals.app.hasClusterModule(e,"whizard-monitoring")}}]),r}(R.default.Component))||u)||u)||u;a.default=L},4381:function(e,a,r){"use strict";var n=r(20);r(12),r(5),r(11),r(6),r(86),r(18),r(16),r(9),r(13),r(10),r(4),r(23),r(24),r(17),r(62),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(45),r(5),r(11),r(6),r(86),r(18),r(28),r(42),r(16),r(34),r(15),r(9),r(13),r(10),r(4),r(23),r(57),r(24),r(17),r(62),r(7);var u,l=n(r(315)),o=n(r(30)),c=n(r(36)),i=n(r(37)),s=n(r(55)),d=n(r(56)),f=n(r(51)),p=n(r(0)),m=r(239),h=n(r(26)),v=n(r(451)),y=n(r(63)),g=r(433),_=r(186),E=r(52),b=r(72),S=r(878),O=n(r(1237)),R=n(r(789)),T=n(r(790)),C=n(r(880)),A=n(r(873)),P=n(r(3)),k=n(r(4382));function N(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function D(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.cluster,a=e.namespace,r=this.props.match.params,n=r.cluster,u=r.namespace,l=r.workspace;return t=t||n,a=a||u,"".concat(l?"/".concat(l):"","/clusters/").concat(t).concat(a?"/projects/".concat(a):"")}},{key:"render",value:function(){var e=this.store.list,a=e.data,r=e.isLoading,n=e.filters;return p.default.createElement(R.default,{title:t("ALERTING_MESSAGE_PL"),loading:r},(0,y.default)(a)?p.default.createElement("div",null,t("NO_DATA_DESC")):p.default.createElement(p.default.Fragment,null,p.default.createElement(A.default,{className:k.default.table,filters:n,data:a,name:"Alerting Message",rowKey:"alertname",columns:this.getColumns(),selectedRowKeys:[],selectActions:[],hideHeader:!0,hideFooter:!0}),this.renderFooter()))}},{key:"type",get:function(){return this.props.match.url.indexOf("/builtin-rules")>0?"builtin":"custom"}},{key:"pagination",get:function(){var e=this.state;return{page:e.page,limit:e.limit,total:this.store.list.total}}}]),r}(p.default.Component))||u;a.default=L},4382:function(e,t,a){e.exports={table:"_1vpAixev7ywyaYvkOb-WU7",footer:"_2RGm-1sjSUHG6ko6oB_I7z",pageSizeBox:"_2JbO7AjfnztngjQGQlAAXT",pagesize:"p7LH3fXvH5jpWdmeYfpN5",text:"_3H5Otonnxjzg7f7dus0okX",gap:"_1UBboqmAbRbBAG7ME3mNpV",pageSizeMenu:"_34wu7hl_Y7MHVrijhjMRy7",pageSizeMenuitem:"RJ9D5my0ez_JbvHq4QrDL"}},4383:function(e,t,a){e.exports={icon:"_3RlEv5_bvcbFGzuo-Dh4l5"}},778:function(e,t,a){"use strict";a(15);var r=a(20);a(4),a(22),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(29),a(28),a(4),a(22),a(38),a(32);var n=r(a(43));a(41);var u=r(a(44)),l=r(a(96)),o=a(239),c=a(317),i=a(0),s=r(a(4087)),d=(0,o.inject)("rootStore")((function(e){var t=(0,i.useState)(!1),r=(0,l.default)(t,2),o=r[0],d=r[1],f=function(){var t=(0,u.default)(n.default.mark((function t(){var r,u,l,o;return n.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,a.e(17).then(a.t.bind(null,5756,7));case 2:return r=t.sent,u=r.default,l=new u,t.next=7,l.fetchLicenseByLicenses({extensionName:"whizard-monitoring"});case 7:o=t.sent,(null==o?void 0:o.isAuthorized)&&globals.app.hasKSModule("whizard")?d(!0):(d(!1),e.rootStore.routing.push("/"));case 10:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}();return(0,i.useEffect)((function(){return f(),function(){d(!1)}}),[]),o?(0,c.renderRoutes)(s.default):null}));t.default=d}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[11],{1137:function(e,t,a){"use strict";var r=a(20);a(12),a(5),a(11),a(31),a(6),a(29),a(97),a(98),a(9),a(13),a(10),a(4),a(23),a(17),a(7),a(32),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(12),a(45),a(5),a(11),a(31),a(6),a(29),a(28),a(97),a(42),a(34),a(15),a(98),a(9),a(13),a(10),a(4),a(22),a(23),a(57),a(17),a(7),a(32);var n=r(a(30)),u=r(a(96)),l=r(a(43));a(41);var o,c,i,s=r(a(44)),d=r(a(61)),f=r(a(65)),p=r(a(36)),m=r(a(37)),h=r(a(88)),v=r(a(55)),y=r(a(56)),g=r(a(51)),_=r(a(49)),E=(r(a(66)),a(14)),b=r(a(63)),S=r(a(26)),O=r(a(74)),R=r(a(855)),T=a(52),C=a(434);function A(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function P(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:[],a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=(0,d.default)(a);return t.forEach((function(t,a){var n=(0,S.default)(t,"metric.__name__"),u=null;if(n){var l=(0,S.default)(t,"metric.quantile"),o=(0,S.default)(t,"metric.verb"),c=(0,S.default)(t,"metric.result"),i=r.find((function(e){return l?(0,S.default)(e,"metric.quantile")===l:o?(0,S.default)(e,"metric.verb")===o:c?(0,S.default)(e,"metric.result")===c:(0,S.default)(e,"metric.__name__")===n}));(0,b.default)(i)?r.push(t):u=i}else u=r[a];if(!(0,b.default)(u)){var s=e.getNewValues(u.values,t.value);(0,O.default)(u,"values",s)}})),r},e}return(0,m.default)(n,[{key:"fetchHealthMetrics",value:(a=(0,s.default)(l.default.mark((function e(){return l.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.health.isLoading=!0,e.next=3,this.requestHealthMetrics();case 3:this.health.isLoading=!1;case 4:case"end":return e.stop()}}),e,this)}))),function(){return a.apply(this,arguments)})},{key:"requestHealthMetrics",value:(t=(0,s.default)(l.default.mark((function e(){var t,a,r,n,o,c,i,s,d;return l.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=this.cluster&&globals.app.isMultiCluster?"kapis/clusters/".concat(this.cluster,"/resources.kubesphere.io/v1alpha2/componenthealth"):"kapis/resources.kubesphere.io/v1alpha2/componenthealth",e.next=3,(0,T.to)(request.get(t));case 3:a=e.sent,r=a.kubesphereStatus||[],n=(0,R.default)(r,"namespace"),o=r.some((function(e){return"kube-scheduler"===(0,S.default)(e,"label.component")&&(0,S.default)(e,"healthyBackends",0)})),c=r.some((function(e){return"kube-controller-manager"===(0,S.default)(e,"label.component")&&(0,S.default)(e,"healthyBackends",0)})),i={kubernetes:(0,S.default)(a,"kubernetesStatus",[]),node:(0,S.default)(a,"nodeStatus",{}),kubesphere:(0,S.default)(n,"kubesphere-system",[]),openpitrix:(0,S.default)(n,"openpitrix-system",[]),istio:(0,S.default)(n,"istio-system",[]),monitoring:(0,S.default)(n,"kubesphere-monitoring-system",[]),logging:(0,S.default)(n,"kubesphere-logging-system",[]),devops:(0,S.default)(n,"kubesphere-devops-system",[]),kubeSystem:(0,S.default)(n,"kube-system",[])},s={},d={},Object.entries(i).forEach((function(e){var t=(0,u.default)(e,2),a=t[0],r=t[1],n={total:0,health:0},l={total:0,health:0};"node"===a?(n.total=(0,S.default)(r,"totalNodes",0),n.health=(0,S.default)(r,"healthyNodes",0)):"kubernetes"===a?(n.total=r.length,n.health=r.filter((function(e){return"Healthy"===(0,C.getComponentStatus)(e)})).length):r.forEach((function(e){n.total+=e.totalBackends,n.health+=e.healthyBackends;var t=(0,C.getComponentStatus)(e);l.health+="Healthy"===t?1:0,l.total+="Stopped"===t?0:1})),s[a]=n,d[a]=l})),this.health=P(P({},this.health||{}),{data:i,counts:s,componentCounts:d,supportKsScheduler:o,supportControllerManager:c});case 13:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})}]),n}(r(a(883)).default),c=(0,_.default)(o.prototype,"health",[E.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{data:{},counts:{},supportKsScheduler:!1,supportControllerManager:!1,isLoading:!1}}}),i=(0,_.default)(o.prototype,"etcd",[E.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),(0,_.default)(o.prototype,"fetchHealthMetrics",[E.action],Object.getOwnPropertyDescriptor(o.prototype,"fetchHealthMetrics"),o.prototype),(0,_.default)(o.prototype,"requestHealthMetrics",[E.action],Object.getOwnPropertyDescriptor(o.prototype,"requestHealthMetrics"),o.prototype),o);t.default=N},1138:function(e,t,a){"use strict";a(15);var r=a(20);a(5),a(4),a(23),a(17),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(45),a(5),a(42),a(4),a(23),a(57),a(17);var n=r(a(36)),u=r(a(55)),l=r(a(56)),o=r(a(51));function c(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,o.default)(e);if(t){var n=(0,o.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,l.default)(this,a)}}var i=function(e){(0,u.default)(a,e);var t=c(a);function a(){var e;(0,n.default)(this,a);for(var r=arguments.length,u=new Array(r),l=0;l0&&void 0!==arguments[0]?arguments[0]:{};return"".concat(e.apiVersion).concat(e.getPath(t),"/").concat(e.getAlertPath(t)).concat(t.dryRun?"?dryRun=All":"")},e.getResourceUrl=e.getListUrl,e.getFilterParams=function(e){var t=T({},e),a=[];return t["labels.severity"]&&(a.push("severity=".concat(t["labels.severity"])),delete t["labels.severity"]),t["labels.alertname"]&&(a.push("alertname~".concat(t["labels.alertname"])),delete t["labels.alertname"]),t.cluster&&(t.label_matcher='{cluster=~"'.concat(t.cluster,'"}'),delete t.cluster),a.length>0&&(t.label_filters=a.join(",")),t},e}return(0,m.default)(o,[{key:"getPath",value:function(){return""}},{key:"fetchList",value:(a=(0,s.default)(n.default.mark((function e(){var t,a,r,o,c,i,s,d,f,p,m,h,v,y=this,g=arguments;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=g.length>0&&void 0!==g[0]?g[0]:{},a=t.cluster,r=t.workspace,o=t.namespace,c=t.more,i=t.ruleName,s=t.type,d=t.allBuiltin,f=void 0!==d&&d,p=(0,l.default)(t,["cluster","workspace","namespace","more","ruleName","type","allBuiltin"]),this.list.isLoading=!0,p.sortBy||void 0!==p.ascending||(p.sortBy=O.LIST_DEFAULT_ORDER[this.module]||"createTime"),p.limit!==1/0&&-1!==p.limit||(p.limit=-1,p.page=1),p.cluster=a,p.limit=p.limit||10,e.next=8,request.get(this.getResourceUrl({cluster:a,workspace:r,namespace:o,ruleName:i,type:s}),this.getFilterParams(T(T({},p),{},{builtin:f?void 0:"builtin"===s})));case 8:return m=e.sent,h=((0,E.default)(m,"items")||[]).map((function(e,t){return T({cluster:a,namespace:o,id:t},y.mapper(e))})),v=m.totalItems,this.list.update(T(T({data:c?[].concat((0,u.default)(this.list.data),(0,u.default)(h)):h,total:v},p),{},{limit:Number(p.limit)||10,page:Number(p.page)||1,isLoading:!1},this.list.silent?{}:{selectedRowKeys:[]})),e.abrupt("return",h);case 13:case"end":return e.stop()}}),e,this)}))),function(){return a.apply(this,arguments)})},{key:"fetchCount",value:(t=(0,s.default)(n.default.mark((function e(){var t;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all([request.get(this.getResourceUrl({}),{page:1,limit:1,builtin:!1}),request.get(this.getResourceUrl({type:"builtin"}),{page:1,limit:1,builtin:!0})]);case 2:t=e.sent,this.ruleCount=(0,E.default)(t,"0.totalItems",0),this.builtinRuleCount=(0,E.default)(t,"1.totalItems",0);case 5:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})},{key:"apiVersion",get:function(){return"proxy-api/proxy/alerting.kubesphere.io/v2beta1/"}},{key:"mapper",get:function(){return S.default.alarmMessage||function(e){return e}}}]),o}(r(a(68)).default),c=(0,_.default)(o.prototype,"ruleCount",[b.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),i=(0,_.default)(o.prototype,"builtinRuleCount",[b.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),(0,_.default)(o.prototype,"fetchList",[b.action],Object.getOwnPropertyDescriptor(o.prototype,"fetchList"),o.prototype),(0,_.default)(o.prototype,"fetchCount",[b.action],Object.getOwnPropertyDescriptor(o.prototype,"fetchCount"),o.prototype),o);t.default=A},1424:function(e,a,r){"use strict";r(15);var n=r(20);r(18),r(16),r(4),r(23),r(24),r(17),r(62),Object.defineProperty(a,"__esModule",{value:!0}),a.Component=a.default=void 0,r(45),r(18),r(42),r(16),r(4),r(23),r(57),r(24),r(17),r(62);var u=n(r(36)),l=n(r(37)),o=n(r(55)),c=n(r(56)),i=n(r(51)),s=n(r(0)),d=r(14),f=r(239),p=n(r(63)),m=n(r(450)),h=n(r(861)),v=n(r(857)),y=n(r(468)),g=n(r(849)),_=n(r(1071)),E=n(r(1824)),b=n(r(1221)),S=n(r(1827)),O=n(r(944)),R=n(r(4245));function T(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,i.default)(e);if(t){var n=(0,i.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,c.default)(this,a)}}var C=function(e){(0,o.default)(r,e);var a=T(r);function r(e){var t;return(0,u.default)(this,r),(t=a.call(this,e)).fetchData=function(){var e=t.store.detail,a=e.cluster,r=e.namespace,n=e.name;if("deployments"===t.module){var u=t.store.detail.annotations,l={cluster:a,namespace:r,name:(void 0===u?{}:u)["kubesphere.io/relatedHPA"]||n};t.hpaStore.checkName(l).then((function(e){e.exist&&t.hpaStore.fetchDetail(l)}))}},t.handleScale=function(e){var a=t.store.detail,r=a.cluster,n=a.namespace,u=a.name;t.store.scale({cluster:r,namespace:n,name:u},e)},t.handleDeleteHpa=function(){t.store.patch(t.store.detail,{metadata:{annotations:{"kubesphere.io/relatedHPA":null}}}).then((function(){t.hpaStore.reset()}))},t.hpaStore=e.hpaStore||new y.default,t.state={},t}return(0,l.default)(r,[{key:"componentDidMount",value:function(){this.fetchData()}},{key:"renderPlacement",value:function(){var e=this.props.match.params,t=e.name,a=e.namespace;return this.store.detail.isFedManaged?s.default.createElement(O.default,{module:this.store.module,name:t,namespace:a}):null}},{key:"renderS2IBuilder",value:function(){var e=this.props.match.params,t=e.cluster,a=e.namespace,r=this.store.detail;return(0,p.default)((0,d.toJS)(r.builderNames))?null:s.default.createElement(S.default,{builderNames:(0,d.toJS)(r.builderNames),cluster:t,namespace:a,className:R.default.deployment_codeResource})}},{key:"renderReplicaInfo",value:function(){var e=(0,d.toJS)(this.store.detail);return s.default.createElement(b.default,{module:this.module,detail:e,onScale:this.handleScale,enableScale:this.enableScaleReplica})}},{key:"renderHpaConfig",value:function(){var e=(0,d.toJS)(this.hpaStore.detail);return e.name?s.default.createElement(E.default,{store:this.hpaStore,detail:e,loading:this.hpaStore.isLoading,onDeleted:this.handleDeleteHpa,enableCancaleHPA:this.enableCancaleHPA}):null}},{key:"renderContainerPorts",value:function(){if(this.props.noPorts)return null;var e=this.store.isLoading,t=(0,d.toJS)(this.store.detail).containers;t=(0,v.default)(t)?[]:t;var a=(0,h.default)((0,m.default)(t.map((function(e){return(0,p.default)(e.ports)?[]:e.ports}))),"name");return(0,p.default)(a)?null:s.default.createElement(_.default,{ports:a,loading:e})}},{key:"renderPods",value:function(){return s.default.createElement(g.default,{prefix:this.prefix,detail:this.store.detail})}},{key:"renderContent",value:function(){return s.default.createElement("div",null,this.renderPlacement(),this.renderReplicaInfo(),this.renderHpaConfig(),this.renderContainerPorts(),this.renderS2IBuilder(),this.renderPods())}},{key:"render",value:function(){return s.default.createElement("div",{className:R.default.main},this.renderContent())}},{key:"module",get:function(){return this.props.detailStore.module}},{key:"store",get:function(){return this.props.detailStore}},{key:"prefix",get:function(){var e=this.props.match.params.cluster;return"/whizard-telemetry/".concat(e)}},{key:"volumesTitle",get:function(){return t("STORAGE_DEVICES")}},{key:"enableScaleReplica",get:function(){return!1}},{key:"enableCancaleHPA",get:function(){return!1}}]),r}(s.default.Component),A=(0,f.inject)("detailStore","hpaStore")((0,f.observer)(C));a.default=A;var P=C;a.Component=P},1425:function(e,t,a){"use strict";a(15);var r=a(20);a(5),a(29),a(9),a(4),a(22),a(23),a(17),a(38),a(32),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(45),a(5),a(29),a(42),a(9),a(4),a(22),a(23),a(57),a(17),a(38),a(32);var n=r(a(43));a(41);var u,l=r(a(44)),o=r(a(36)),c=r(a(37)),i=r(a(55)),s=r(a(56)),d=r(a(51)),f=r(a(49)),p=a(14),m=r(a(26));function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,d.default)(e);if(t){var n=(0,d.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,s.default)(this,a)}}var v=(u=function(e){(0,i.default)(u,e);var t,a,r=h(u);function u(){var e;(0,o.default)(this,u);for(var t=arguments.length,a=new Array(t),c=0;c0&&void 0!==arguments[0]?arguments[0]:{};return"".concat(e.apiVersion).concat(e.getPath(t),"/").concat(e.getRulePath(t))},e.fetchMetric=function(){var e=(0,l.default)(n.default.mark((function e(t){var a,r,u,l,o,c,i;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a=t.expr,r=t.step,u=t.start,l=t.end,o=t.cluster,c=t.namespace,a){e.next=3;break}return e.abrupt("return",[]);case 3:return e.next=5,request.get("kapis/monitoring.kubesphere.io/v1beta1/targets/query",{cluster:o,namespace:c,expr:a,step:r,start:u,end:l},null,(function(){}));case 5:return i=e.sent,e.abrupt("return",(0,m.default)(i,"data.result",[]));case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),e}return(0,c.default)(u,[{key:"fetchCount",value:(a=(0,l.default)(n.default.mark((function e(){var t;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all([request.get(this.getResourceUrl(),{page:1,limit:1,builtin:!1}),request.get(this.getResourceUrl({type:"builtin"}),{page:1,limit:1,builtin:!0})]);case 2:t=e.sent,this.ruleCount=(0,m.default)(t,"0.totalItems",0),this.builtinRuleCount=(0,m.default)(t,"1.totalItems",0);case 5:case"end":return e.stop()}}),e,this)}))),function(){return a.apply(this,arguments)})},{key:"fetchMetadata",value:(t=(0,l.default)(n.default.mark((function e(t){var a,r,u,l;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=t.cluster,r=t.namespace,e.next=3,request.get("kapis/monitoring.kubesphere.io/v1beta1/targets/metadata",{cluster:a,namespace:r});case 3:if(e.t0=e.sent,e.t0){e.next=6;break}e.t0={data:[]};case 6:u=e.t0,l=u.data,this.targetsMetadata=l||[];case 9:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})}]),u}(r(a(1014)).default),(0,f.default)(u.prototype,"fetchCount",[p.action],Object.getOwnPropertyDescriptor(u.prototype,"fetchCount"),u.prototype),(0,f.default)(u.prototype,"fetchMetadata",[p.action],Object.getOwnPropertyDescriptor(u.prototype,"fetchMetadata"),u.prototype),u);t.default=v},1860:function(e,t,a){"use strict";a(15),Object.defineProperty(t,"__esModule",{value:!0}),t.CLUSTER_CREATING_STEPS=void 0;t.CLUSTER_CREATING_STEPS=["Init Nodes","Pull Images","Init etcd Cluster","Init Control Plane","Join Nodes","Install Addons"]},1861:function(e,t,a){"use strict";var r=a(20);a(12),a(5),a(11),a(6),a(16),a(9),a(13),a(10),a(4),a(23),a(17),a(7),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(12),a(45),a(5),a(11),a(6),a(28),a(42),a(16),a(34),a(15),a(9),a(13),a(10),a(4),a(23),a(57),a(17),a(7);var n=r(a(58)),u=r(a(30)),l=r(a(36)),o=r(a(37)),c=r(a(332)),i=r(a(55)),s=r(a(56)),d=r(a(51)),f=r(a(135)),p=r(a(74)),m=r(a(26)),h=r(a(68));function v(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function y(e){for(var t=1;t=1?b(!1):b(!0)}),[]),O=(0,o.useCallback)((function(){r&&r(),b(!1)}),[]),R=(0,o.useCallback)((function(){v.length>0?(b(!1),n&&n(v)):b(!0),r&&r()}),[v]);return o.default.createElement(c.default,{bodyClassName:f.default.body,width:960,title:t("SELECT_CLUSTER"),visible:a,onCancel:O,onOk:R,icon:"layout"},o.default.createElement("div",{className:f.default.content},o.default.createElement(i.Alert,{className:"margin-b12",type:"info",message:t("CUSTOM_PANEL_DESC")}),o.default.createElement("div",{className:"margin-b12 font-bold"},t("AVAILABLE_CLUSTERS")),o.default.createElement(s.default,{onChange:S,value:v,noTip:!0}),E&&o.default.createElement("div",{className:"form-item-error"},t("CLUSTER_SETTINGS_LIMIT_DESC"))))};a.default=p},1870:function(e,a,r){"use strict";r(15);var n=r(20);r(18),r(98),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var u=n(r(30)),l=n(r(96));r(18),r(98);var o=n(r(0)),c=r(186),i=n(r(3)),s=n(r(4368)),d=function(e){var a=e.rulesStats,r={pending:t("ALERT_RULE_PENDING"),inactive:t("ALERT_RULE_INACTIVE"),firing:t("ALERT_RULE_FIRING"),disabled:t("DISABLED")},n=Object.entries(a).map((function(e){var t=(0,l.default)(e,2),a=t[0],n=t[1];return{label:r[a],type:a,value:n}}));return o.default.createElement(c.Tooltip,{content:o.default.createElement(o.default.Fragment,null,n.map((function(e,t){return o.default.createElement("div",{key:t,className:(0,i.default)(s.default.tipContent,[s.default[e.type]],(0,u.default)({},s.default.disabled,0===e.value))},o.default.createElement("span",null,e.label),o.default.createElement("span",null,e.value))}))),placement:"right"},o.default.createElement("ul",{className:s.default.statusBox},n.map((function(e,t){return o.default.createElement("li",{key:t,className:(0,i.default)([s.default["li-".concat(e.type)]],(0,u.default)({},s.default.iconDisabled,0===e.value))},e.value)}))))};a.default=d},1871:function(e,t,a){e.exports={wrapper:"iR7z8tJFaP322Wc5KeDXb",header:"_29LpL3cAnNHFPC0QkN3aCv",banner:"fPeXkXTxxB1IC1fgzgd9p",toolbar:"_3cR_xKcJcZV23U5wcIVG2I",keyword:"_16-UWZO6ab_kyXGqHwXl_V",loading:"oHMbjUURgfU1mYC0irDSP",bottomLine:"_7Lz-bsDzy_cKaSVAY_Jns","table-icon":"_34pw7-udbWc2haW_N6e1dl",status_icon:"_2voC3AqrlwQba0xWa0dnS_",clusterLine:"_1SKGh_tOiQrVmEoee8R741",tags:"_2RpQEmzg6JNUc46zD-KZv5",restText:"_2nd0DFNMLP-ybsS2ZIj_NO",tipClusterList:"_3r_Fs6g9pp-H0F6pNxyJ-_"}},1872:function(e,t,a){e.exports={ruleNameLink:"_3GZ-gTFaIZsY-qzdTxG_UI",status:"_2z9oV0u7EuV6V4dhmfXBsO",tags:"-VgRWR6LLQQYj6FzYof7C","alarm-message-cluster":"_39rAQBZYK1N-duk1XF-_NL"}},1873:function(e,t,a){e.exports={header:"fhUtQTxnilo9gBr2IcT-2",search:"_728dXf7uTB9FdJW_V_WaP",actions:"an1t00SmyKe-vS4BpS6_0",item:"_1Hz3OI34P5qnQiBbapfMpB",content:"_381W6QXu9h1_6QYamtsbBS",head:"f9M-CfL0U6eK5E5pdoGgA",headIcon:"_2Faxb0Vk3vkXhYKs5AXVs1",headLine:"_1yb4J5NJQTIkCS8UsIaMVS",severity:"_3QJ9FneD91WpgZPf3kcYiO",statusLine:"nh8EOyr8oF651_lyfNL2G",target:"_3shn5IkhFBJCDJWySo0xJ3",nodeList:"CGFPuHjoQutwQMvEsqfzc",restItem:"L3XDlvBeiLPVDEO-Gu2m0",template_deploy:"_3DXlcDZyGEgi5sjWFrlXZj",title:"a03ABUahEVAwl5inEIb3t",deploy_des:"XR0PjKVFhR90dTzN-5mQ2",timeLabel:"_1u55t5wedzNS6JbN19enOY",time:"XwbH4jF2oAvUm_xLqkfBw",time_white:"_3mODPcV0z922LUsk9XUAc4",desc:"_1PmGV4G_fUY9ccnKzYFxfx",expanded:"_1dGxBbBrzG7rj3-tYqDXao",itemExtra:"_3SrCA_14EJSEBLrZLUxPD7",ms_content:"NxZ49dslvIBCz2MLE_2ZX",ruleExpr:"_23lcdXrJ22e7J2uPBzvhMz",label:"f74U3QB_c8-mN9-CMIwXX",value:"NOAjeS2RtYYJgLcBkAXQH",itemExtraShow:"wqrEaSI5BUGIhDdkyQ-lK",status_disabled:"_3RbroljQEJSO4KmszOV6gP",status_pending:"_1kR21vIlSnYYlBkn5OhyCp",status_firing:"_1gQvXy-t0jYe9FROVUowIl",status_inactive:"_1waYdxnNMpONaOkYAdjpsk",info_disabled:"_1_vLrlPqVftE6GLp-T3xbz",info_pending:"_2YYvtqr3oqX9Go0YEIgkau",info_firing:"_4VHYcQ6wxQXUfDiQyjbi4",info_inactive:"_2qAsiynshjSs4ONsekI_MV",critical:"_3C-14a9q1Z3eE5AXgICqOG",error:"_37MoA3DU6LypWFTKbY9ks3",footer:"_1uEAX5_Ttli1isHHVEWVvZ",pageSizeBox:"_1Fs1dPNmzKb7oGoZSgMf-j",pagesize:"_3pOc4cTQfHpakvmgl7jfTR",text:"_3p0pnoBlQxwjKgMZ0ooSWJ",gap:"_1e-TO3WC2h1_Im16Kd4adi",pageSizeMenu:"_2P0jP-5fAUAtiIScoxfdQQ",pageSizeMenuitem:"_1ptY6Zr2qxFDhx3P6WOEvC"}},4088:function(e,t,a){"use strict";a(15);var r=a(20);a(5),Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.METRICS_PATH=t.PATH=void 0,a(5);var n=r(a(61)),u=a(317),l=r(a(4089)),o=r(a(4091)),c=r(a(4095)),i=r(a(4096)),s=r(a(4123)),d=r(a(4155)),f=r(a(4156)),p=r(a(4161)),m=r(a(4162)),h=r(a(4168)),v=r(a(4170)),y=r(a(4172)),g=r(a(4173)),_=r(a(4174)),E=r(a(4175)),b=r(a(4176)),S=r(a(4177)),O=r(a(4178)),R=r(a(4179)),T=r(a(4181)),C=r(a(4182)),A=r(a(4197)),P=r(a(4211)),k=r(a(4216)),N=r(a(4217)),D=r(a(4218)),w=r(a(4326)),L=r(a(4332)),I=r(a(4334)),M=r(a(4343)),j=r(a(4367)),x=r(a(4369)),U=r(a(4370)),V=r(a(4371)),G=r(a(4372)),F=r(a(4377)),Y="/whizard-telemetry/:cluster";t.PATH=Y;var H="/whizard-telemetry/metrics";t.METRICS_PATH=H;var B=[(0,u.getIndexRoute)({path:"/whizard-telemetry",to:"/whizard-telemetry/metrics/overview",exact:!0}),{path:["".concat(H,"/alerting/builtin-rules/:name"),"".concat(H,"/alerting/custom-rules/:name")],component:F.default},{path:H,component:L.default,routes:[{path:"".concat(H,"/overview"),component:M.default},{path:"".concat(H,"/ranking"),component:I.default},{path:"".concat(H,"/alerting/builtin-alerts"),component:V.default},{path:"".concat(H,"/alerting/custom-alerts"),component:U.default},{path:"".concat(H,"/alerting/builtin-rules"),component:x.default},{path:"".concat(H,"/alerting/custom-rules"),component:j.default},{path:"".concat(H,"/pods"),component:G.default},(0,u.getIndexRoute)({path:H,to:"".concat(H,"/overview"),exact:!0}),(0,u.getIndexRoute)({path:"".concat(H,"/alerting"),to:"".concat(H,"/alerting/builtin-alerts"),exact:!0}),(0,u.getIndexRoute)({path:"*",to:"/404",exact:!0})]},{path:Y,component:c.default,routes:[].concat((0,n.default)(D.default),[{path:"",component:i.default,routes:[{path:"".concat(Y,"/overview"),component:s.default,exact:!0},{path:"".concat(Y,"/nodes"),component:h.default},{path:"".concat(Y,"/edgenodes"),component:v.default,exact:!0},{path:"".concat(Y,"/projects"),component:y.default,exact:!0},{path:"".concat(Y,"/customresources"),component:g.default,exact:!0},{path:"".concat(Y,"/deployments"),component:_.default,exact:!0},{path:"".concat(Y,"/statefulsets"),component:E.default,exact:!0},{path:"".concat(Y,"/daemonsets"),component:b.default,exact:!0},{path:"".concat(Y,"/jobs"),component:S.default,exact:!0},{path:"".concat(Y,"/cronjobs"),component:O.default,exact:!0},{path:"".concat(Y,"/pods"),component:R.default,exact:!0},{path:"".concat(Y,"/services"),component:T.default,exact:!0},{path:"".concat(Y,"/ingresses"),component:N.default,exact:!0},{path:"".concat(Y,"/storageclasses"),component:d.default,exact:!0},{path:"".concat(Y,"/volumes"),component:m.default},{path:"".concat(Y,"/volume-snapshots"),component:f.default},{path:"".concat(Y,"/volume-snapshot-classes"),component:p.default},{path:"".concat(Y,"/monitor-cluster"),component:C.default},{path:"".concat(Y,"/monitor-resource"),component:A.default},{path:"".concat(Y,"/alerts"),component:l.default},{path:"".concat(Y,"/alert-rules"),component:o.default},{path:"".concat(Y,"/storageclasses"),component:d.default,exact:!0},{path:"".concat(Y,"/snapshots/:namespace?"),component:f.default},{path:"".concat(Y,"/log-collections/:component"),component:P.default},{path:"".concat(Y,"/custom-monitoring"),component:k.default,exact:!0},{path:"".concat(Y,"/gateways/:component"),component:w.default,exact:!0},(0,u.getIndexRoute)({path:Y,to:"".concat(Y,"/overview"),exact:!0}),(0,u.getIndexRoute)({path:"".concat(Y,"/workloads"),to:"".concat(Y,"/deployments"),exact:!0}),(0,u.getIndexRoute)({path:"".concat(Y,"/log-collections"),to:"".concat(Y,"/log-collections/logging"),exact:!0}),(0,u.getIndexRoute)({path:"".concat(Y,"/gateways"),to:"".concat(Y,"/gateways/cluster"),exact:!0}),(0,u.getIndexRoute)({path:"*",to:"/404",exact:!0})]}])}];t.default=B},4089:function(e,a,r){"use strict";var n=r(20),u=r(157);r(12),r(5),r(11),r(6),r(86),r(18),r(16),r(9),r(13),r(10),r(4),r(23),r(24),r(17),r(62),r(188),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(45),r(5),r(11),r(6),r(86),r(18),r(28),r(42),r(16),r(34),r(15),r(9),r(13),r(10),r(4),r(23),r(57),r(24),r(17),r(62),r(188),r(7);var l,o=n(r(315)),c=n(r(30)),i=n(r(36)),s=n(r(37)),d=n(r(55)),f=n(r(56)),p=n(r(51)),m=n(r(0)),h=n(r(451)),v=n(r(26)),y=r(433),g=n(r(790)),_=n(r(795)),E=n(r(880)),b=n(r(792)),S=u(r(793)),O=n(r(796)),R=r(52),T=r(72),C=r(878),A=r(1269),P=n(r(1128)),k=n(r(4090));function N(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function D(e){for(var t=1;t0?"builtin":"custom"},e.handleTabChange=function(t){e.setState({type:t},(function(){e.props.store.list.reset(),e.getData()}))},e.getData=function(t){e.props.store.fetchList(D(D(D({},e.props.match.params),t),{},{sortBy:"activeAt",ascending:!1,type:e.state.type}))},e.getResourceType=function(e){var a=(0,h.default)(e);return t("ALERT_TYPE",{type:t(a)})},e.getColumns=function(){var a=e.props.getFilteredValue;return[{title:t("MESSAGE"),dataIndex:"name",render:function(e,t){return m.default.createElement(g.default,{icon:"loudspeaker",title:(0,v.default)(t,"annotations.summary"),description:(0,v.default)(t,"annotations.message")||(0,v.default)(t,"annotations.description","-")})}},{title:t("STATUS"),dataIndex:"state",filters:e.getStatus(),filteredValue:a("state"),isHideable:!0,search:!0,width:"12%",render:function(e){return m.default.createElement(_.default,{type:e,name:t("ALERT_RULE_".concat(e.toUpperCase()),{defaultValue:e})})}},{title:t("SEVERITY"),dataIndex:"labels.severity",filters:e.getAlertingTypes(),filteredValue:a("labels.severity"),isHideable:!0,search:!0,width:"12%",render:function(e){return m.default.createElement(E.default,{data:e})}},{title:t("ALERTING_RULE_NAME"),dataIndex:"labels.alertname",filteredValue:a("labels.alertname"),isHideable:!0,width:"16%",search:!0,render:function(e,t){return t.alertname}},{title:t("ALERTING_POLICY"),dataIndex:"ruleName",isHideable:!0,width:"12%",render:function(t,a){var r=(0,v.default)(a,"labels.rule_group");return m.default.createElement(y.Link,{to:"builtin"===e.state.type?"".concat(e.getPrefix(),"/alert-rules/builtin/").concat(r):"".concat(e.getPrefix(),"/alert-rules/").concat(r)},r)}},{title:t("MONITORING_TARGET"),dataIndex:"labels",isHideable:!0,width:"12%",render:function(a){if("template"!==a.rule_type)return"-";var r=(0,C.getAlertingResource)(a),n=r.module,u=r.name,l=r.namespace;return n?"hpas"===n?m.default.createElement("span",null,t(T.MODULE_KIND_MAP[n]),": ",u):m.default.createElement(y.Link,{to:"".concat(e.getPrefix({namespace:l}),"/").concat(n,"/").concat(u)},t(T.MODULE_KIND_MAP[n]),": ",u):"-"}},{title:t("TRIGGER_TIME"),dataIndex:"activeAt",isHideable:!0,width:200,render:function(e){return(0,R.getLocalTime)(e).format("YYYY-MM-DD HH:mm:ss")}}]},e}return(0,s.default)(r,[{key:"componentDidMount",value:function(){var e=this.props.match.params,t=e.cluster;!e.namespace&&this.props.store.fetchCount({cluster:t})}},{key:"getPrefix",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.cluster,a=e.namespace,r=this.props.match.params,n=r.cluster,u=r.namespace,l=r.workspace;return t=t||n,a=a||u,"".concat(l?"/".concat(l):"","/clusters/").concat(t).concat(a?"/projects/".concat(a):"")}},{key:"getTableProps",value:function(){return{tableActions:D(D({},this.props.tableProps.tableActions),{},{selectActions:[]}),emptyProps:{desc:t("ALERTING_MESSAGE_EMPTY_DESC")}}}},{key:"getAlertingTypes",value:function(){return A.SEVERITY_LEVEL.map((function(e){return{text:t(e.label),value:e.value}}))}},{key:"getStatus",value:function(){return["pending","firing"].map((function(e){return{text:t("ALERT_RULE_".concat(e.toUpperCase())),value:e}}))}},{key:"render",value:function(){var e=this.props,a=e.match,r=e.bannerProps,n=e.tableProps,u=a.params.namespace;return m.default.createElement(S.ListPage,(0,o.default)({},this.props,{getData:this.getData,noWatch:!0}),m.default.createElement(b.default,(0,o.default)({},r,{tips:this.tips,tabs:u?{}:this.tabs,icon:"loudspeaker",title:t("ALERTING_MESSAGE_PL"),description:t("ALERT_MESSAGE_DESC")})),m.default.createElement("div",{className:k.default.wrapper},m.default.createElement(O.default,(0,o.default)({},n,this.getTableProps(),{rowKey:"id",itemActions:[],columns:this.getColumns(),onCreate:this.showCreate,showKeywords:!0}))))}},{key:"tabs",get:function(){return{value:this.state.type,onChange:this.handleTabChange,options:[{value:"custom",label:t("ALERTS_FROM_CUSTOM_POLICIES"),count:this.props.store.ruleCount},{value:"builtin",label:t("ALERTS_FROM_BUILT_IN_POLICIES"),count:this.props.store.builtinRuleCount}]}}},{key:"tips",get:function(){return[{title:t("REQUESTS_FOR_TRIGGER_AN_ALARM_Q"),description:t("REQUESTS_FOR_TRIGGER_AN_ALARM_A")}]}}]),r}(m.default.Component))||l;a.default=L},4090:function(e,t,a){e.exports={wrapper:"_3AxpII2xzsS_1Bqn3Ao6-v"}},4091:function(e,a,r){"use strict";var n=r(20),u=r(157);r(12),r(109),r(5),r(11),r(6),r(86),r(18),r(16),r(9),r(13),r(10),r(4),r(23),r(24),r(17),r(62),r(188),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(109),r(45),r(5),r(11),r(6),r(86),r(18),r(28),r(42),r(16),r(34),r(15),r(9),r(13),r(10),r(4),r(22),r(23),r(57),r(24),r(17),r(62),r(188),r(7);var l=n(r(315)),o=n(r(43)),c=n(r(30)),i=n(r(58));r(41);var s,d=n(r(44)),f=n(r(36)),p=n(r(37)),m=n(r(55)),h=n(r(56)),v=n(r(51)),y=n(r(0)),g=n(r(788)),_=n(r(795)),E=n(r(792)),b=u(r(793)),S=n(r(796)),O=n(r(26)),R=r(52),T=r(878),C=r(832),A=n(r(1014)),P=n(r(4092)),k=n(r(4094));function N(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function D(e){for(var t=1;t0?"builtin":"custom"},e.handleTabChange=function(t){e.setState({type:t},(function(){e.props.store.list.reset(),e.getData()}))},e.getData=(0,d.default)(o.default.mark((function t(){var a,r,n,u,l=arguments;return o.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=l.length>0&&void 0!==l[0]?l[0]:{},r=a.silent,n=(0,i.default)(a,["silent"]),u=e.props.store,r&&(u.list.silent=!0),t.next=5,u.fetchList(D(D(D({},e.props.match.params),n),{},{type:e.state.type}));case 5:u.list.silent=!1;case 6:case"end":return t.stop()}}),t)}))),e.getColumns=function(){var a=e.props.getFilteredValue;return[{title:t("NAME"),dataIndex:"name",search:!0,render:function(t,a){return y.default.createElement(g.default,{avatar:"/assets/bell_gear_duotone.svg",title:(0,R.getDisplayName)(a),desc:a.description,className:k.default["table-icon"],to:"builtin"===e.state.type?"".concat(e.props.match.url,"/builtin/").concat(a.name):"".concat(e.props.match.url,"/").concat(t)})}},{title:t("POLICY_STATUS"),dataIndex:"enable",filters:e.getEnableFilter(),filteredValue:a("enable"),isHideable:!0,search:!0,width:"16%",render:function(e,a){return y.default.createElement(_.default,{className:k.default.status_icon,type:a.enabled&&JSON.parse(a.enabled)?"active":"disabled",name:a.enabled&&JSON.parse(a.enabled)?t("ENABLED"):t("DISABLED")})}},{title:t("RULE_STATUS"),dataIndex:"state",search:!0,filters:e.getStatus(),isHideable:!0,width:"16%",render:function(e,t){return y.default.createElement(P.default,{rulesStats:t.rulesStats})}},{title:t("TIME_SPENT"),dataIndex:"evaluationTime",isHideable:!0,width:"12%",render:function(e){return y.default.createElement("span",null,"-"!==e?t("TIME_S",{num:e}):e)}},{title:t("RECENT_DETECT_TIME"),dataIndex:"lastEvaluation",isHideable:!0,width:"15.8%",render:function(e,t){var a=(0,O.default)(t._originDataWithStatus,"status.lastEvaluation");return y.default.createElement("span",null,a?(0,R.getLocalTime)(a).format("YYYY-MM-DD HH:mm:ss"):"-")}}]},e}return(0,p.default)(r,[{key:"componentDidMount",value:function(){var e=this.props.match.params,t=e.cluster;!e.namespace&&this.props.store.fetchCount({cluster:t}),localStorage.removeItem("alert-policy-detail-referrer")}},{key:"getStatus",value:function(){return T.ALERTING_STATUS.map((function(e){return{text:t("ALERT_RULE_".concat(e.toUpperCase())),value:e}}))}},{key:"getEnableFilter",value:function(){return[{text:t("ENABLED"),value:"true"},{text:t("DISABLED"),value:"false"}]}},{key:"getAlertingTypes",value:function(){return C.SEVERITY_LEVEL.map((function(e){return{text:t(e.label),value:e.value}}))}},{key:"render",value:function(){var e=this.props,t=e.bannerProps,a=e.tableProps,r=e.match.params.namespace;return y.default.createElement(b.ListPage,(0,l.default)({},this.props,{getData:this.getData,noWatch:!0}),y.default.createElement(E.default,(0,l.default)({},t,{icon:function(){return y.default.createElement("img",{src:"/assets/bell_gear_duotone.svg"})},tips:this.tips,tabs:r?{}:this.tabs})),y.default.createElement(S.default,(0,l.default)({},a,{rowKey:"name",itemActions:this.itemActions,columns:this.getColumns(),tableActions:this.tableActions})))}},{key:"tabs",get:function(){return{value:this.state.type,onChange:this.handleTabChange,options:[{value:"custom",label:t("CUSTOM_POLICIES"),count:this.props.store.ruleCount},{value:"builtin",label:t("BUILT_IN_POLICIES"),count:this.props.store.builtinRuleCount}]}}},{key:"tips",get:function(){return[{title:t("REQUESTS_FOR_PUSH_AN_ALARM_Q"),description:t("REQUESTS_FOR_PUSH_AN_ALARM_A")}]}},{key:"itemActions",get:function(){return[]}},{key:"tableActions",get:function(){return D(D({},this.props.tableProps.tableActions),{},{selectActions:[]})}}]),r}(y.default.Component))||s;a.default=L},4092:function(e,a,r){"use strict";r(15);var n=r(20);r(18),r(98),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var u=n(r(30)),l=n(r(96));r(18),r(98);var o=n(r(0)),c=r(186),i=n(r(3)),s=n(r(4093)),d=function(e){var a=e.rulesStats,r={pending:t("ALERT_RULE_PENDING"),inactive:t("ALERT_RULE_INACTIVE"),firing:t("ALERT_RULE_FIRING"),disabled:t("DISABLED")},n=Object.entries(a).map((function(e){var t=(0,l.default)(e,2),a=t[0],n=t[1];return{label:r[a],type:a,value:n}}));return o.default.createElement(c.Tooltip,{content:o.default.createElement(o.default.Fragment,null,n.map((function(e,t){return o.default.createElement("div",{key:t,className:(0,i.default)(s.default.tipContent,[s.default[e.type]],(0,u.default)({},s.default.disabled,0===e.value))},o.default.createElement("span",null,e.label),o.default.createElement("span",null,e.value))}))),placement:"right"},o.default.createElement("ul",{className:s.default.statusBox},n.map((function(e,t){return o.default.createElement("li",{key:t,className:(0,i.default)([s.default["li-".concat(e.type)]],(0,u.default)({},s.default.iconDisabled,0===e.value))},e.value)}))))};a.default=d},4093:function(e,t,a){e.exports={statusBox:"JrilrMru3h-gLlQ2qXo5L",tipContent:"LGXjRE8coBN2qed9xrcZ3","li-inactive":"_1UB2-8pw3HpFXMxba6KtfJ","li-pending":"_3WRSRTKaf0pf4oVlfpPkN5","li-firing":"_3wquv-ECT8_2Yck-QHJql-","li-disabled":"_3Nx8Qb4gSzQIYfMM44aU7F",pending:"_2EfV2t8OOxNKUWMCPmyRZC",inactive:"_3jHO8HKJ72vcTJ0_DrMETF",firing:"ruM4GxqptagPyxWo4kQkz",disabled:"_1xa-4gyugq2QDwzgvTUMId",iconDisabled:"FEhNQpv-dUmXxMNhPkBXz"}},4094:function(e,t,a){e.exports={wrapper:"PHSNKYkuk4t_2mmc1BgYe",header:"_2sqZHlnHl0KFzj4x0-bNen",banner:"_3o6hGaIJItvgOdfVFlhz0d",toolbar:"vQDH3_iKTKQeHBrPBNZzC",keyword:"_1L8gK6woO4n47u6o2j94Kx",loading:"gVS_5i257kfi3aJzdQDhu",bottomLine:"_1rBLnzvn6l16W8vkCVejyu","table-icon":"_3SZ0VFWhjKP8u_SXGGFUlk",status_icon:"_2-w9clorO7bwNui1qNcuhn"}},4095:function(e,t,a){"use strict";var r=a(20),n=a(157);a(12),a(11),a(6),a(29),a(9),a(13),a(10),a(4),a(22),a(23),a(24),a(17),a(38),a(62),a(7),a(32),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(12),a(45),a(11),a(6),a(29),a(28),a(42),a(34),a(15),a(9),a(13),a(10),a(4),a(22),a(23),a(57),a(24),a(17),a(38),a(62),a(7),a(32);var u=r(a(43)),l=r(a(30));a(41);var o,c=r(a(44)),i=r(a(36)),s=r(a(37)),d=r(a(55)),f=r(a(56)),p=r(a(51)),m=a(186),h=r(a(26)),v=r(a(241)),y=r(a(74)),g=a(239),_=n(a(0)),E=r(a(438)),b=a(317);function S(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function O(e){for(var t=1;t5,c=l?a.slice(0,5):a;return A.default.createElement("div",{className:M.default.container},this.renderPanelHeader(),A.default.createElement(g.Loading,{spinning:r},A.default.createElement(A.default.Fragment,null,A.default.createElement("div",{className:M.default.header},A.default.createElement(g.Select,{className:M.default.select,value:u,onChange:this.handleChangeSource,options:this.sourceOptions}),A.default.createElement(g.Select,{className:M.default.select,value:this.store.sort_metric,onChange:this.handleChangeMetricType,options:this.options})),A.default.createElement("div",{className:M.default.list,style:{height:o&&!l?"auto":"392px"}},this.renderListItems(c,u),o&&A.default.createElement(g.Button,{className:M.default.fold,icon:l?"chevron-down":"chevron-up",onClick:this.toggleFold},l?t("UNFOLD"):t("FOLD"))),A.default.createElement("div",{className:M.default.more},A.default.createElement(g.Button,{onClick:this.showMoreModal},t("VIEW_MORE"))))))}},{key:"cluster",get:function(){return this.props.cluster}},{key:"options",get:function(){return this.store.sort_metric_options.map((function(e){return{value:e,label:t("SORT_BY_".concat(e.toUpperCase()))}}))}},{key:"sourceOptions",get:function(){return[{label:t("NODES"),value:"node"},{label:t("PODS"),value:"pod"},{label:t("PROJECT_PL"),value:"project"}]}}]),r}(A.Component),c=(0,y.default)(o.prototype,"store",[T.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return this.sourceMap[this.state.sourceType].store}}),l=o))||l;a.default=G},4130:function(e,t,a){e.exports={container:"_5xwXULcQIMf6lu9b93XF",title:"_3_kT4Kr-pEQyZlHRWq1Z1z",header:"_10AZ18k6beBTVANjhC-J4R",select:"XrJLUddvKyIO1IPjCqzJb",list:"_3konAxFwtVIKU4-4T9GJsw",listItem:"_106U6lcUQZ0xFRgD6HZgp_",textBox:"_3NlAAuDN3WchymAu8ywFsM",text:"LqDgWxmf6mP1J3m8fJYTl",label:"_28BvoCJ7fYaXIboo1_7udO",noLabel:"_2pv9h2GieT6YpibSC9eFD4",cpu:"_24gW2mCCTU90Ly3T1xsr7O",fold:"_3j7jzafRax5d4eIBqDZP5A",more:"KjQ8RlPJuYtWqL64gr-M5"}},4131:function(e,a,r){"use strict";var n=r(20),u=r(157);r(12),r(11),r(6),r(87),r(27),r(190),r(9),r(13),r(10),r(4),r(23),r(17),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(45),r(11),r(6),r(28),r(87),r(42),r(27),r(190),r(34),r(15),r(9),r(13),r(10),r(4),r(22),r(23),r(57),r(17),r(7);var l=n(r(43)),o=n(r(30));r(41);var c,i=n(r(44)),s=n(r(36)),d=n(r(37)),f=n(r(55)),p=n(r(56)),m=n(r(51)),h=r(186),v=n(r(790)),y=n(r(26)),g=r(239),_=u(r(0)),E=n(r(1137)),b=r(52),S=r(794),O=n(r(4132));function R(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function T(e){for(var t=1;t0&&void 0!==n[0]?n[0]:{},r=T({last:!0},a),e.next=4,t.apiStore.fetchMetrics(T({metrics:[A.request_latencies_total,A.request_rate]},r));case 4:return e.next=6,t.schedulerStore.fetchMetrics(T({metrics:[A.schedule_attempts_count]},r));case 6:case"end":return e.stop()}}),e)}))),t.getSpecificData=function(e){return((0,y.default)(t.metrics,"".concat(A[e],".data.result"))||[]).reduce((function(e,t){return T(T({},e),{},(0,o.default)({},(0,y.default)(t,"metric.result"),(0,y.default)(t,"value[1]",0)))}),{})};var n=e.cluster;return t.apiStore=new E.default({module:"apiserver",cluster:n}),t.schedulerStore=new E.default({module:"scheduler",cluster:n}),t}return(0,d.default)(r,[{key:"componentDidMount",value:function(){this.fetchData()}},{key:"render",value:function(){var e=this.metrics,a=Number((0,y.default)(e,"".concat(A.request_rate,".data.result[0].value[1]"),0)).toFixed(3),r=(0,S.getValueByUnit)((0,y.default)(e,"".concat(A.request_latencies_total,".data.result[0].value[1]"),0),"ms"),n=this.getSpecificData("schedule_attempts_count");return _.default.createElement("div",{className:O.default.k8sStatus},_.default.createElement("div",{className:O.default.title},_.default.createElement("p",null,t("KUBERNETES_STATUS"))),_.default.createElement(h.Loading,{spinning:this.schedulerStore.isLoading},_.default.createElement("div",{className:O.default.container},_.default.createElement("div",{className:O.default.level},_.default.createElement(v.default,{title:(0,b.getDomTitle)(t("VALUE_REQUESTS_SECOND",{value:a})),description:t("API_REQUESTS_PER_SECOND")}),_.default.createElement(v.default,{title:(0,b.getDomTitle)("".concat(r," ms")),description:t("API_REQUEST_LATENCY")}),_.default.createElement(v.default,{title:(0,b.getDomTitle)(n.scheduled),description:1===n.scheduled?t("SCHEDULING_OPERATION"):t("SCHEDULING_OPERATIONS")}),_.default.createElement(v.default,{title:(0,b.getDomTitle)(n.unschedulable),description:1===n.unschedulable?t("SCHEDULING_FAILURE"):t("SCHEDULING_FAILURES")})))))}},{key:"metrics",get:function(){var e=this.apiStore.data,t=this.schedulerStore.data;return T(T({},e),t)}}]),r}(_.Component))||c;a.default=P},4132:function(e,t,a){e.exports={k8sStatus:"_25a3cYXFDcFCpPE9mdV6M0",title:"_2zy4ypkNir5ltmO50PwKzl",container:"_2FVJDVObN1OYWJjRShvHTY",level:"_21GadJn6_6kUuM89Cu4O2v"}},4133:function(e,a,r){"use strict";r(15);var n=r(20),u=r(157);r(5),r(4),r(316),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(42),r(4),r(316),r(23),r(57),r(17);var l,o,c,i,s=n(r(65)),d=n(r(36)),f=n(r(37)),p=n(r(88)),m=n(r(55)),h=n(r(56)),v=n(r(51)),y=n(r(49)),g=(n(r(66)),u(r(0))),_=r(239),E=n(r(26)),b=r(186),S=n(r(883)),O=r(14),R=r(794),T=n(r(4134)),C=n(r(4138));function A(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,v.default)(e);if(t){var n=(0,v.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,h.default)(this,a)}}var P={cpu_usage:"cluster_pod_cpu_usage",cpu_requests:"cluster_pod_cpu_requests_total",cpu_limits:"cluster_pod_cpu_limits_total",cpu_total:"cluster_cpu_total",cpu_requests_non_master:"cluster_pod_cpu_requests_non_master_total",cpu_limits_non_master:"cluster_pod_cpu_limits_non_master_total",cpu_total_non_master:"cluster_cpu_non_master_total",memory_requests:"cluster_pod_memory_requests_total",memorylimits:"cluster_pod_memory_limits_total",memory_total:"cluster_memory_total",memory_usage_non_master:"cluster_pod_memory_non_master_usage_wo_cache",memory_requests_non_master:"cluster_pod_memory_requests_non_master_total",memory_limits_non_master:"cluster_pod_memory_limits_non_master_total",memory_total_non_master:"cluster_memory_non_master_total",namespace_cpu_usage:"cluster_namespace_quota_cpu_usage",namespace_cpu_requests:"cluster_namespace_quota_cpu_requests_hard_total",namespace_cpu_limits:"cluster_namespace_quota_cpu_limits_hard_total",namespace_cpu_requests_non_master:"cluster_namespace_quota_cpu_requests_hard_total",namespace_cpu_limits_non_master:"cluster_namespace_quota_cpu_limits_hard_total",namespace_memory_usage:"cluster_namespace_quota_memory_usage",namespace_memory_requests:"cluster_namespace_quota_memory_requests_hard_total",namespace_memorylimits:"cluster_namespace_quota_memory_limits_hard_total",namespace_memory_usage_non_master:"cluster_namespace_quota_memory_usage",namespace_memory_requests_non_master:"cluster_namespace_quota_memory_requests_hard_total",namespace_memorylimits_non_master:"cluster_namespace_quota_memory_limits_hard_total"},k=(0,_.observer)((o=function(e){(0,m.default)(r,e);var a=A(r);function r(){var e;(0,d.default)(this,r);for(var t=arguments.length,n=new Array(t),u=0;u=3.3?p.default.createElement(h.default,(0,o.default)({},this.bannerProps,{tips:this.tips,routes:this.routes})):p.default.createElement(h.default,this.bannerProps)}},{key:"render",value:function(){return p.default.createElement(p.default.Fragment,null,this.renderBanner(),(0,v.renderRoutes)(g.default))}},{key:"tips",get:function(){return[{title:t("WHAT_IS_VOLUME_SNAPSHOT_CLASS_Q"),description:t("WHAT_IS_VOLUME_SNAPSHOT_CLASS_A")},{title:t("WHAT_IS_VOLUME_SNAPSHOT_CONTENT_Q"),description:t("WHAT_IS_VOLUME_SNAPSHOT_CONTENT_A")}]}},{key:"bannerProps",get:function(){return{className:"margin-b12",description:t("VOLUME_SNAPSHOT_DESC"),module:"VOLUME_SNAPSHOT",title:t("VOLUME_SNAPSHOT_PL"),icon:"snapshot"}}},{key:"routes",get:function(){return g.default.filter((function(e){return!!e.title})).map((function(e){return E(E({},e),{},{name:e.path.split("/").pop()})}))}}]),r}(p.default.Component))||u)||u;a.default=S},4157:function(e,t,a){"use strict";a(15);var r=a(20);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=a(317),u=r(a(4158)),l=r(a(4160)),o="/whizard-telemetry/:cluster/volume-snapshots",c=[{path:"".concat(o,"/snapshots"),title:"VOLUME_SNAPSHOT",component:u.default,exact:!0},{path:"".concat(o,"/snapshot-content"),title:"VOLUME_SNAPSHOT_CONTENT",component:l.default,exact:!0},(0,n.getIndexRoute)({path:o,to:"".concat(o,"/snapshots"),exact:!0})];t.default=c},4158:function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(18),r(4),r(23),r(24),r(17),r(62),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(18),r(42),r(4),r(22),r(23),r(57),r(24),r(17),r(62);var u=n(r(315)),l=n(r(43));r(41);var o,c=n(r(44)),i=n(r(36)),s=n(r(37)),d=n(r(55)),f=n(r(56)),p=n(r(51)),m=r(186),h=n(r(810)),v=n(r(788)),y=n(r(795)),g=r(793),_=n(r(63)),E=n(r(0)),b=n(r(831)),S=n(r(914)),O=n(r(910)),R=r(52),T=r(72),C=n(r(4159));function A(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,p.default)(e);if(t){var n=(0,p.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,f.default)(this,a)}}var P=(0,g.withClusterList)({store:new S.default,module:"volume-snapshots",name:"VOLUME_SNAPSHOT",authKey:"volumesnapshots"})(o=function(e){(0,d.default)(r,e);var a=A(r);function r(){var e;(0,i.default)(this,r);for(var t=arguments.length,n=new Array(t),u=0;u=3.2?p.default.createElement(h.default,(0,o.default)({},this.bannerProps,{tips:this.tips,routes:this.routes})):p.default.createElement(h.default,(0,o.default)({},this.bannerProps,{tips:this.tips}))}},{key:"render",value:function(){return p.default.createElement(p.default.Fragment,null,this.renderBanner(),(0,v.renderRoutes)(g.default))}},{key:"tips",get:function(){return[{title:t("WHAT_IS_STORAGE_CLASS_Q"),description:t("WHAT_IS_STORAGE_CLASS_A")},{title:t("WHAT_IS_LOCAL_VOLUME_Q"),description:t("WHAT_IS_LOCAL_VOLUME_A")}]}},{key:"bannerProps",get:function(){return{className:"margin-b12",description:t("PERSISTENT_VOLUME_CLAIM_DESC"),module:"persistentvolumeclaims",title:t("PERSISTENT_VOLUME_CLAIM_PL")}}},{key:"routes",get:function(){return g.default.filter((function(e){return!!e.title})).map((function(e){return E(E({},e),{},{name:e.path.split("/").pop()})}))}}]),r}(p.default.Component))||u)||u;a.default=S},4163:function(e,t,a){"use strict";a(15);var r=a(20);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=a(317),u=r(a(4164)),l=r(a(4166)),o="/whizard-telemetry/:cluster/volumes",c=[{path:"".concat(o,"/Volumes"),title:"PERSISTENT_VOLUME_CLAIM_PL",component:u.default,exact:!0},{path:"".concat(o,"/PV"),title:"PERSISTENT_VOLUME_PL",component:l.default,exact:!0},(0,n.getIndexRoute)({path:o,to:"".concat(o,"/Volumes"),exact:!0})];t.default=c},4164:function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(73),r(18),r(192),r(16),r(4),r(23),r(24),r(17),r(62),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(73),r(18),r(28),r(192),r(42),r(16),r(4),r(22),r(23),r(57),r(24),r(17),r(62);var u=n(r(315)),l=n(r(43));r(41);var o,c=n(r(44)),i=n(r(36)),s=n(r(37)),d=n(r(55)),f=n(r(56)),p=n(r(51)),m=r(186),h=n(r(810)),v=n(r(788)),y=n(r(795)),g=r(793),_=n(r(1131)),E=n(r(63)),b=n(r(804)),S=n(r(0)),O=r(433),R=n(r(907)),T=n(r(831)),C=r(52),A=r(72),P=r(434),k=n(r(4165));function N(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,p.default)(e);if(t){var n=(0,p.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,f.default)(this,a)}}var D=(0,g.withClusterList)({store:new T.default,module:"persistentvolumeclaims",authKey:"persistentvolumeclaims",name:"PERSISTENT_VOLUME_CLAIM",rowKey:"uid"})(o=function(e){(0,d.default)(r,e);var a=N(r);function r(){var e;(0,i.default)(this,r);for(var n=arguments.length,u=new Array(n),o=0;o=3.2&&o.splice(2,0,l),o}},{key:"render",value:function(){var e=this.props,t=e.tableProps,a=e.match;return S.default.createElement(g.ListPage,this.props,S.default.createElement(h.default,(0,u.default)({},t,{className:"table-1-5",itemActions:this.itemActions,columns:this.getColumns(),selectActions:[],cluster:a.params.cluster,getCheckboxProps:this.getCheckboxProps})))}},{key:"tips",get:function(){return[{title:t("WHAT_IS_STORAGE_CLASS_Q"),description:t("WHAT_IS_STORAGE_CLASS_A")},{title:t("WHAT_IS_LOCAL_VOLUME_Q"),description:t("WHAT_IS_LOCAL_VOLUME_A")}]}},{key:"tabs",get:function(){return{value:"Volume",onChange:this.handleTabChange,options:[{value:"Volume",label:t("PERSISTENT_VOLUME_CLAIM")},{value:"PV",label:t("PV")}]}}},{key:"itemActions",get:function(){return[]}}]),r}(S.default.Component))||o;a.default=D},4165:function(e,t,a){e.exports={mode_title:"_3T4isUw5EVDlxkpcqj2Y5f",question:"WsiYbzPrFZvux43GLjoNV",pv_content:"_1MCPVNhmvxQrzozVlw1jtP",yaml:"_2ezSzekAV0rloYVqXAFxSP"}},4166:function(e,a,r){"use strict";var n=r(20),u=r(157);r(12),r(5),r(11),r(6),r(86),r(73),r(18),r(16),r(9),r(13),r(10),r(4),r(23),r(24),r(17),r(62),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(45),r(5),r(11),r(6),r(86),r(73),r(18),r(28),r(42),r(16),r(34),r(15),r(9),r(13),r(10),r(4),r(23),r(57),r(24),r(17),r(62),r(7);var l,o=n(r(30)),c=n(r(315)),i=n(r(36)),s=n(r(37)),d=n(r(55)),f=n(r(56)),p=n(r(51)),m=n(r(0)),h=n(r(63)),v=u(r(793)),y=n(r(796)),g=n(r(907)),_=r(52),E=r(186),b=r(434),S=r(72),O=n(r(804)),R=n(r(788)),T=n(r(795)),C=n(r(4167));function A(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function P(e){for(var t=1;t-1},e.getItemDesc=function(e){var t=(0,b.getVolumeStatus)(e);return(0,h.default)(t)?e.storageClassName||"-":m.default.createElement(O.default,{reason:t,data:e,type:"volume"})},e.getCheckboxProps=function(e){return{disabled:e.isFedManaged||["Bound"].indexOf(e.status.phase)>-1,name:e.name}},e.renderAccessTitle=function(){var e=m.default.createElement("div",null,m.default.createElement("div",null,t("ACCESS_MODE_TCAP")),m.default.createElement("div",null,"RWO (ReadWriteOnce): ",t("ACCESS_MODE_RWO")),m.default.createElement("div",null,"ROX (ReadOnlyMany): ",t("ACCESS_MODE_ROX")),m.default.createElement("div",null,"RWX (ReadWriteMany): ",t("ACCESS_MODE_RWX")));return m.default.createElement("div",{className:C.default.mode_title},t("ACCESS_MODE_TCAP"),m.default.createElement(E.Tooltip,{content:e},m.default.createElement(E.Icon,{name:"question",size:16,className:C.default.question})))},e.mapperAccessMode=function(e){var t=(0,_.map_accessModes)(e);return m.default.createElement("span",null,t.join(","))},e}return(0,s.default)(r,[{key:"getStatus",value:function(){return S.PV_STATUS.map((function(e){return{text:t(e.text),value:e.value}}))}},{key:"getColumns",value:function(){var e=this,a=this.props,r=a.getSortOrder,n=a.getFilteredValue,u=this.props.match.params.cluster;return[{title:t("NAME"),dataIndex:"name",sortOrder:r("name"),search:!0,sorter:!0,render:function(t,a){return m.default.createElement(R.default,{icon:"storage",iconSize:40,to:"Terminating"===a.phase?"":"/whizard-telemetry/".concat(u,"/pv/").concat(t),isMultiCluster:a.isFedManaged,desc:e.getItemDesc(a),title:(0,_.getDisplayName)(a)})}},{title:t("STATUS"),dataIndex:"status",isHideable:!0,search:!0,filters:this.getStatus(),filteredValue:n("status"),width:"10.56%",render:function(e){var a=e.phase;return m.default.createElement(T.default,{type:a,name:t("PV_STATUS_".concat(a.toUpperCase()))})}},{title:t("CAPACITY"),dataIndex:"capacity",isHideable:!0,width:"7%",render:function(e){return m.default.createElement("div",null,m.default.createElement("p",null,e))}},{title:this.renderAccessTitle(),dataIndex:"accessModes",isHideable:!1,width:"12.32%",render:function(t){return e.mapperAccessMode(t)}},{title:t("RECLAIM_POLICY"),dataIndex:"_originData",isHideable:!0,width:"7.74%",render:function(e){return e.spec.persistentVolumeReclaimPolicy}},{title:t("CREATION_TIME_TCAP"),dataIndex:"createTime",sorter:!0,sortOrder:r("createTime"),isHideable:!0,width:140,render:function(e){return(0,_.getLocalTime)(e).format("YYYY-MM-DD HH:mm")}}]}},{key:"render",value:function(){var e=this.props,t=e.match,a=e.tableProps;return m.default.createElement(v.ListPage,this.props,m.default.createElement(y.default,(0,c.default)({},a,{itemActions:this.itemActions,tableActions:this.tableActions,columns:this.getColumns(),cluster:t.params.cluster,getCheckboxProps:this.getCheckboxProps,renderProjectSelect:!1})))}},{key:"itemActions",get:function(){return[]}},{key:"tableActions",get:function(){return P(P({},this.props.tableProps.tableActions),{},{selectActions:[]})}}]),r}(m.default.Component))||l;a.default=N},4167:function(e,t,a){e.exports={mode_title:"_3iZqg1DUhzX135cuASjcNn",question:"_28wmcih5RA4-UrbF3hVwEF",pv_content:"zkamDsFKmP5C0PZrg84HH",yaml:"_1djaTjweZ2Cf77ddhsutHV"}},4168:function(e,a,r){"use strict";var n=r(20);r(12),r(5),r(11),r(31),r(6),r(86),r(29),r(18),r(97),r(16),r(27),r(9),r(13),r(10),r(4),r(316),r(23),r(24),r(17),r(324),r(38),r(62),r(7),r(32),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(45),r(5),r(11),r(31),r(6),r(86),r(29),r(18),r(28),r(97),r(42),r(16),r(27),r(34),r(15),r(9),r(13),r(10),r(4),r(316),r(436),r(22),r(23),r(57),r(24),r(17),r(324),r(38),r(62),r(460),r(461),r(462),r(463),r(464),r(465),r(466),r(7),r(32);var u=n(r(315)),l=n(r(43)),o=n(r(30));r(41);var c,i=n(r(44)),s=n(r(36)),d=n(r(37)),f=n(r(55)),p=n(r(56)),m=n(r(51)),h=n(r(0)),v=n(r(63)),y=n(r(26)),g=n(r(158)),_=r(186),E=r(52),b=r(72),S=r(444),O=r(794),R=n(r(856)),T=n(r(1138)),C=r(793),A=n(r(788)),P=n(r(795)),k=n(r(789)),N=n(r(790)),D=n(r(792)),w=n(r(796)),L=n(r(4169));function I(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function M(e){for(var t=1;t=.9&&h.default.createElement(_.Icon,{name:"exclamation"})),description:"".concat(r.cpu_used,"/").concat(r.cpu_total," ").concat(t("CORE_PL"))})}},{title:t("MEMORY_USAGE"),key:"memory",isHideable:!0,render:function(t){var a=e.getRecordMetrics(t,[{type:"memory_used",unit:"Gi"},{type:"memory_total",unit:"Gi"},{type:"memory_utilisation"}]);return h.default.createElement(N.default,{title:h.default.createElement("div",{className:L.default.resource},h.default.createElement("span",null,e.toPercentage(a.memory_utilisation)),a.memory_utilisation>=.9&&h.default.createElement(_.Icon,{name:"exclamation"})),description:"".concat(a.memory_used,"/").concat(a.memory_total," GiB")})}},{title:t("GPU_USAGE"),key:"gpu",isHideable:!0,render:function(t){var a=e.getRecordMetrics(t,[{type:"gpu_used",unit:"Core"},{type:"gpu_total",unit:"Core"},{type:"gpu_utilization"}]);return h.default.createElement(N.default,{title:h.default.createElement("div",{className:L.default.resource},h.default.createElement("span",null,e.toPercentage(a.gpu_utilization)),a.gpu_utilization>=.9&&h.default.createElement(_.Icon,{name:"exclamation"})),description:"".concat(a.gpu_used,"/").concat(a.gpu_total," GPU")})}},{title:t("GPU_MEMORY_USAGE"),key:"gpu_memory",isHideable:!0,render:function(t){var a=e.getRecordMetrics(t,[{type:"gpu_memory_used",unit:"Gi"},{type:"gpu_memory_total",unit:"Gi"},{type:"gpu_memory_utilization"}]);return h.default.createElement(N.default,{title:h.default.createElement("div",{className:L.default.resource},h.default.createElement("span",null,e.toPercentage(a.gpu_memory_utilization)),a.gpu_memory_utilization>=.9&&h.default.createElement(_.Icon,{name:"exclamation"})),description:"".concat(a.gpu_memory_used,"/").concat(a.gpu_memory_total," GiB")})}},{title:t("POD_PL"),key:"pods",isHideable:!0,render:function(t){var a=e.getRecordMetrics(t,[{type:"pod_used"},{type:"pod_total"}]),r=a.pod_total?parseFloat(a.pod_used/a.pod_total):0;return h.default.createElement(N.default,{title:"".concat(e.toPercentage(r)),description:"".concat(a.pod_used,"/").concat(a.pod_total)})}},{title:t("ALLOCATED_CPU"),key:"allocated_resources_cpu",isHideable:!0,render:e.renderCPUTooltip},{title:t("ALLOCATED_MEMORY"),key:"allocated_resources_memory",isHideable:!0,render:e.renderMemoryTooltip}].filter((function(t){return!e.omitKeys.has(t.key)}))},e.getRecordMetrics=function(t,a){var r={};return a.forEach((function(a){r[a.type]=e.getLastValue(t,(0,E.hideGPUByLicense)(x,e.cluster)[a.type],a.unit)})),r},e.renderCPUTooltip=function(a){var r=e.getRecordMetrics(a,[{type:"allocatable_cpu_total"},{type:"allocatable_cpu_utilisation"},{type:"limit_cpu_total"},{type:"limit_cpu_utilisation"}]),n=h.default.createElement("p",null,1===(0,E.cpuFormat)(r.limit_cpu_total)?t("CPU_LIMIT_SI",{core:(0,E.cpuFormat)(r.limit_cpu_total),percent:e.toPercentage(r.limit_cpu_utilisation)}):t("CPU_LIMIT_PL",{core:(0,E.cpuFormat)(r.limit_cpu_total),percent:e.toPercentage(r.limit_cpu_utilisation)}));return h.default.createElement(_.Tooltip,{content:n,placement:"top"},h.default.createElement(N.default,{title:1===(0,E.cpuFormat)(r.allocatable_cpu_total)?t("CPU_REQUEST_SI",{core:(0,E.cpuFormat)(r.allocatable_cpu_total),percent:e.toPercentage(r.allocatable_cpu_utilisation)}):t("CPU_REQUEST_PL",{core:(0,E.cpuFormat)(r.allocatable_cpu_total),percent:e.toPercentage(r.allocatable_cpu_utilisation)}),description:t("RESOURCE_REQUEST")}))},e.renderMemoryTooltip=function(a){var r=e.getRecordMetrics(a,[{type:"allocatable_memory_total"},{type:"allocatable_memory_utilisation"},{type:"limits_memory_total"},{type:"limits_memory_utilisation"}]),n=h.default.createElement("p",null,t("MEMORY_LIMIT_VALUE",{gib:(0,E.memoryFormat)(r.limits_memory_total,"Gi"),percent:e.toPercentage(r.limits_memory_utilisation)}));return h.default.createElement(_.Tooltip,{content:n,placement:"top"},h.default.createElement(N.default,{title:t("MEMORY_REQUEST_VALUE",{gib:(0,E.memoryFormat)(r.allocatable_memory_total,"Gi"),percent:e.toPercentage(r.allocatable_memory_utilisation)}),description:t("RESOURCE_REQUEST")}))},e}return(0,d.default)(r,[{key:"componentDidMount",value:function(){this.store.fetchCount(this.props.match.params)}},{key:"toPercentage",value:function(e){var t=(0,g.default)(e)||isNaN(e)?0:Number(e);return"".concat(Math.ceil(100*t),"%")}},{key:"getStatus",value:function(){return b.NODE_STATUS.map((function(e){return{text:t(e.text),value:e.value}}))}},{key:"renderOverview",value:function(){var e=this.store,a=e.masterNum,r=e.list.total;return h.default.createElement(k.default,{className:"margin-b12"},h.default.createElement("div",{className:L.default.overview},h.default.createElement(N.default,{icon:"nodes",title:r,description:1===r?t("NODE_SI"):t("NODE_PL")}),h.default.createElement(N.default,{title:a,description:1===a?t("MASTER_NODE_SI"):t("MASTER_NODE_PL")})))}},{key:"render",value:function(){var e=this.props,a=e.bannerProps,r=e.tableProps,n=this.monitoringStore.isLoading;return h.default.createElement(C.ListPage,(0,u.default)({},this.props,{getData:this.getData,noWatch:!0}),h.default.createElement(D.default,(0,u.default)({},a,{title:t("CLUSTER_NODE_PL"),tips:this.tips})),this.renderOverview(),h.default.createElement(w.default,(0,u.default)({},r,{itemActions:this.itemActions,tableActions:this.tableActions,columns:(0,E.hideGPUByLicense)(this.getColumns(),this.cluster),isLoading:r.isLoading||n})))}},{key:"cluster",get:function(){return this.props.match.params.cluster}},{key:"tips",get:function(){return[{title:t("NODE_TYPES_Q"),description:t("NODE_TYPES_A")},{title:t("WHAT_IS_NODE_TAINTS_Q"),description:t("WHAT_IS_NODE_TAINTS_A")}]}},{key:"itemActions",get:function(){return[]}},{key:"tableActions",get:function(){return M(M({},this.props.tableProps.tableActions),{},{actions:[],selectActions:[]})}},{key:"hasMonitoring",get:function(){return globals.app.hasClusterModule(this.cluster,"whizard-monitoring")}},{key:"omitKeys",get:function(){return new Set(this.hasMonitoring?[]:["cpu","memory","gpu","gpu_memory","pods","allocated_resources_cpu","allocated_resources_memory"])}}]),r}(h.default.Component))||c;a.default=U},4169:function(e,t,a){e.exports={taints:"_2XjrLZ7F6TpZ4ZlgAC-JJC",overview:"_1tXqgg1UCNvEXza3urHkMY",resource:"_27mkxuiI4_X-Z02imreev4",unAuthord:"Y9aPXe2oo2r0c9jL28vI3"}},4170:function(e,a,r){"use strict";var n=r(20);r(12),r(5),r(11),r(31),r(6),r(73),r(18),r(97),r(16),r(9),r(13),r(10),r(4),r(316),r(23),r(24),r(17),r(62),r(64),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(45),r(5),r(11),r(31),r(6),r(73),r(18),r(28),r(97),r(42),r(16),r(34),r(15),r(9),r(13),r(10),r(4),r(316),r(436),r(22),r(23),r(57),r(24),r(17),r(62),r(64),r(7);var u=n(r(315)),l=n(r(43)),o=n(r(30));r(41);var c,i=n(r(44)),s=n(r(36)),d=n(r(37)),f=n(r(55)),p=n(r(56)),m=n(r(51)),h=n(r(0)),v=n(r(63)),y=n(r(26)),g=r(186),_=r(52),E=r(72),b=r(444),S=r(794),O=n(r(1175)),R=n(r(1138)),T=n(r(1068)),C=r(793),A=n(r(788)),P=n(r(795)),k=n(r(790)),N=n(r(787)),D=n(r(792)),w=n(r(796)),L=n(r(4171));function I(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function M(e){for(var t=1;t0&&void 0!==d[0]?d[0]:{},r=a.silent,n=(0,c.default)(a,["silent"]),e.query=n,n.type=n.type||"user",e.type=n.type,u=e.props,l=u.store,i=u.match,s=i.params.cluster,r&&(l.list.silent=!0),t.next=9,l.fetchList(k(k({},e.props.match.params),n));case 9:return t.next=11,e.monitoringStore.fetchMetrics(k(k({},e.props.match.params),{},{resources:l.list.data.map((function(e){return e.name})),metrics:Object.values((0,C.hideGPUByLicense)(D,s)),last:!0}));case 11:l.list.silent=!1;case 12:case"end":return t.stop()}}),t)}))),e.getLastValue=function(t,a){var r=e.monitoringStore.data,n=((0,S.default)(r,"".concat(a,".data.result"))||[]).find((function(e){return(0,S.default)(e,"metric.namespace")===t.name}));return(0,S.default)(n,"value[1]",0)},e.getColumns=function(){var a=e.props,r=a.getSortOrder,n=a.prefix;return[{title:t("NAME"),dataIndex:"name",sorter:!0,sortOrder:r("name"),render:function(e,t){return O.default.createElement(y.default,{to:"Terminating"===t.status?null:"".concat(n,"/").concat(e),icon:"project",iconSize:40,isMultiCluster:t.isFedHostNamespace,desc:t.description||"-",title:(0,C.getDisplayNameNew)(t)})}},{title:t("STATUS"),dataIndex:"status",isHideable:!0,render:function(e){return O.default.createElement(g.default,{type:e,name:t(e.toUpperCase()),flicker:!0})}},{title:t("WORKSPACE"),dataIndex:"workspace",isHideable:!0},{title:t("CPU_USAGE"),key:"namespace_cpu_usage",isHideable:!0,render:function(t){return(0,A.getSuitableValue)(e.getLastValue(t,D.cpu),"cpu","-")}},{title:t("MEMORY_USAGE"),key:"namespace_memory_usage_wo_cache",isHideable:!0,render:function(t){return(0,A.getSuitableValue)(e.getLastValue(t,D.memory),"memory","-")}},{title:t("GPU_USAGE"),key:"namespace_gpu_usage",isHideable:!0,render:function(t){return(0,A.getSuitableValue)(e.getLastValue(t,D.gpu),"gpu","-")}},{title:t("GPU_MEMORY_USAGE"),key:"namespace_gpu_memory_usage",isHideable:!0,render:function(t){return(0,A.getSuitableValue)(e.getLastValue(t,D.gpu_memory),"memory","-")}},{title:t("POD_PL"),key:"namespace_pod_count",isHideable:!0,render:function(t){return e.getLastValue(t,D.pod)}}].filter((function(t){return!e.omitKeys.has(t.key)}))},e.showCreate=function(){return e.props.trigger("project.create",k(k({},e.props.match.params),{},{success:function(){return e.getData()}}))},e}return(0,p.default)(r,[{key:"render",value:function(){var e=this.props,t=e.bannerProps,a=e.tableProps,r=e.match.params.cluster,n=this.monitoringStore.isLoading,u=(0,C.hideGPUByLicense)(this.getColumns(),r);return O.default.createElement(E.ListPage,(0,l.default)({},this.props,{getData:this.getData,module:"namespaces"}),O.default.createElement(_.default,(0,l.default)({},t,{tabs:this.tabs})),O.default.createElement(b.default,(0,l.default)({className:"table-1-7"},a,{itemActions:this.itemActions,tableActions:this.tableActions,columns:u,onCreate:"system"===this.type?null:this.showCreate,isLoading:a.isLoading||n,searchType:"name"})))}},{key:"itemActions",get:function(){return[]}},{key:"tableActions",get:function(){return k(k({},this.props.tableProps.tableActions),{},{actions:[],onFetch:this.handleFetch,selectActions:[]})}},{key:"tabs",get:function(){return{value:this.type||"user",onChange:this.handleTabChange,options:[{value:"user",label:t("USER_PROJECTS")},{value:"system",label:t("SYSTEM_PROJECTS")}]}}},{key:"hasMonitoring",get:function(){var e=this.props.match.params.cluster;return globals.app.hasClusterModule(e,"whizard-monitoring")}},{key:"omitKeys",get:function(){return new Set(this.hasMonitoring?[]:["namespace_cpu_usage","namespace_memory_usage_wo_cache","namespace_gpu_usage","namespace_gpu_memory_usage","namespace_pod_count"])}}]),r}(O.default.Component))||i;a.default=w},4173:function(e,a,r){"use strict";var n=r(20),u=r(157);r(12),r(5),r(11),r(6),r(16),r(9),r(13),r(10),r(4),r(23),r(24),r(17),r(62),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(45),r(5),r(11),r(6),r(28),r(42),r(16),r(34),r(15),r(9),r(13),r(10),r(4),r(23),r(57),r(24),r(17),r(62),r(7);var l,o=n(r(30)),c=n(r(315)),i=n(r(36)),s=n(r(37)),d=n(r(55)),f=n(r(56)),p=n(r(51)),m=n(r(0)),h=n(r(788)),v=n(r(792)),y=n(r(796)),g=u(r(793)),_=r(52),E=n(r(1070));function b(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function S(e){for(var t=1;t1?t("LOAD_BALANCERS_SCAP"):t("LOAD_BALANCER_SCAP"),a.title=e.loadBalancerIngress.join("; ")),e.externalName?g.default.createElement(h.default,{description:a.des,title:function(){return g.default.createElement(f.Tooltip,{content:e.externalName},g.default.createElement("span",null,a.title))}}):g.default.createElement(h.default,{description:t("".concat(a.des)),title:a.title})},e.getColumns=function(){var a=e.props,r=a.getSortOrder,n=a.module,u=e.props.match.params.cluster;return[{title:t("NAME"),dataIndex:"name",sorter:!0,sortOrder:r("name"),search:!0,width:"24%",render:function(e,t){return g.default.createElement(m.default,{icon:S.ICON_TYPES[n],iconSize:40,title:(0,b.getDisplayName)(t),desc:t.description||"-",isMultiCluster:t.isFedManaged,to:"/whizard-telemetry/".concat(u,"/projects/").concat(t.namespace,"/").concat(n,"/").concat(e)})}},{title:t("PROJECT"),dataIndex:"namespace",isHideable:!0,width:"18%",render:function(e){return g.default.createElement(_.Link,{to:"/whizard-telemetry/".concat(u,"/projects/").concat(e)},(0,b.showNameAndAlias)(e,"project"))}},{title:t("INTERNAL_ACCESS"),dataIndex:'annotations["kubesphere.io/serviceType"]',isHideable:!0,width:"16%",render:function(e,a){return g.default.createElement(h.default,{title:a.clusterIP||"",description:t("".concat(a.type))})}},{title:t("EXTERNAL_ACCESS"),dataIndex:"specType",isHideable:!0,width:"20%",render:function(t,a){return e.renderExternalService(a)}},{title:t("CREATION_TIME_TCAP"),dataIndex:"createTime",sorter:!0,sortOrder:r("createTime"),isHideable:!0,width:150,render:function(e){return(0,b.getLocalTime)(e).format("YYYY-MM-DD HH:mm:ss")}}]},e}return(0,c.default)(r,[{key:"render",value:function(){var e=this.props,t=e.match,a=e.bannerProps,r=e.tableProps;return g.default.createElement(y.ListPage,this.props,g.default.createElement(v.default,a),g.default.createElement(p.default,(0,l.default)({},r,{itemActions:this.itemActions,selectActions:this.selectActions,columns:this.getColumns(),cluster:t.params.cluster,getCheckboxProps:this.getCheckboxProps})))}},{key:"itemActions",get:function(){return[]}},{key:"selectActions",get:function(){return[]}}]),r}(g.default.Component))||u;a.default=R},4182:function(e,a,r){"use strict";var n=r(20);r(12),r(11),r(6),r(18),r(9),r(13),r(10),r(4),r(23),r(24),r(17),r(62),r(136),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(45),r(11),r(6),r(18),r(28),r(42),r(34),r(15),r(9),r(13),r(10),r(4),r(23),r(57),r(24),r(17),r(62),r(7);var u,l=n(r(30)),o=n(r(36)),c=n(r(37)),i=n(r(55)),s=n(r(56)),d=n(r(51)),f=n(r(0)),p=r(239),m=r(186),h=n(r(792)),v=r(317),y=n(r(883)),g=n(r(4183));function _(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function E(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};r.monitorStore.fetchMetrics(O({metrics:Object.values(T),step:"60m",times:100},e))},r.monitorStore=new g.default,r.fetchData(),r}return(0,c.default)(a,[{key:"renderChart",value:function(){var e,t=(0,y.getAreaChartOps)({title:"PROJECT_COUNT",unit:"",legend:["PROJECT_COUNT"],data:null!==(e=(0,h.default)(this.metrics,"".concat(T.namespace_count,".data.result")))&&void 0!==e?e:[{values:(0,y.getZeroValues)()}]});return f.default.createElement(E.SimpleArea,(0,u.default)({width:"100%",bgColor:"transparent"},t))}},{key:"render",value:function(){var e=this.monitorStore,t=e.isLoading,a=e.isRefreshing,r=(0,m.default)(this.metrics);return f.default.createElement(_.Loading,{spinning:t},f.default.createElement("div",{className:b.default.card},f.default.createElement(v.Controller,{step:"1h",times:24,onFetch:this.fetchData,loading:t,refreshing:a,isEmpty:r},this.renderChart())))}},{key:"metrics",get:function(){return this.monitorStore.data}}]),a}(f.default.Component))||n)||n;t.default=C},4205:function(e,t,a){},4206:function(e,t,a){"use strict";a(15);var r=a(20);a(4),a(23),a(24),a(17),a(62),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(45),a(42),a(4),a(23),a(57),a(24),a(17),a(62);var n=r(a(36)),u=r(a(37)),l=r(a(55)),o=r(a(56)),c=r(a(51)),i=r(a(0)),s=r(a(4207)),d=r(a(4210));function f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,c.default)(e);if(t){var n=(0,c.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,o.default)(this,a)}}var p=function(e){(0,l.default)(a,e);var t=f(a);function a(){return(0,n.default)(this,a),t.apply(this,arguments)}return(0,u.default)(a,[{key:"render",value:function(){return i.default.createElement("div",{className:d.default.wrapper},i.default.createElement(s.default,{cluster:this.props.match.params.cluster}))}}]),a}(i.default.Component);t.default=p},4207:function(e,a,r){"use strict";r(15);var n=r(20);r(18),r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(18),r(42),r(4),r(23),r(57),r(17);var u,l=n(r(36)),o=n(r(37)),c=n(r(55)),i=n(r(56)),s=n(r(51)),d=n(r(0)),f=r(239),p=n(r(3)),m=n(r(886)),h=r(186),v=n(r(1211)),y=r(52),g=n(r(4208)),_=n(r(4209));function E(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,s.default)(e);if(t){var n=(0,s.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,i.default)(this,a)}}var b=["namespace_cpu_usage","namespace_memory_usage_wo_cache","namespace_gpu_usage","namespace_gpu_memory_usage","namespace_pod_count","namespace_net_bytes_received","namespace_net_bytes_transmitted"],S=(0,f.observer)(u=function(e){(0,c.default)(r,e);var a=E(r);function r(e){var t;return(0,l.default)(this,r),(t=a.call(this,e)).download=function(){t.store.download("project.usage.rank.json")},t.store=new v.default({limit:10,sort_type:"desc",cluster:e.cluster,sort_metric_options:(0,y.hideGPUByLicense)(b,e.cluster)}),t}return(0,o.default)(r,[{key:"componentDidMount",value:function(){this.store.fetchAll()}},{key:"render",value:function(){return d.default.createElement("div",{className:_.default.wrapper},this.renderToolbar(),this.renderList())}},{key:"renderToolbar",value:function(){var e=this;return d.default.createElement("div",{className:(0,p.default)(_.default.toolbar,_.default.pane__toolbar,_.default.pane)},d.default.createElement("div",{className:_.default.toolbar_filter},d.default.createElement(h.Select,{value:this.store.sort_metric,onChange:this.store.changeSortMetric,options:this.options}),d.default.createElement("span",{className:_.default.sort_button},d.default.createElement(h.Icon,{name:"desc"===this.store.sort_type?"sort-descending":"sort-ascending",type:"coloured",size:"small",onClick:function(){return e.store.changeSortType()}}))),d.default.createElement("div",{className:_.default.toolbar_buttons},d.default.createElement(h.Button,{onClick:this.download},t("EXPORT"))))}},{key:"renderList",value:function(){return d.default.createElement(h.Loading,{spinning:this.store.isLoading},d.default.createElement("div",null,d.default.createElement(g.default,{cluster:this.props.cluster,store:this.store,prefix:"/whizard-telemetry"}),this.renderPagination()))}},{key:"renderPagination",value:function(){var e=this.store,t=e.page,a=e.total,r=e.limit;return d.default.createElement("div",{className:(0,p.default)(_.default.pane,_.default.pane__pagination)},d.default.createElement(m.default,{page:t,total:a,limit:r,onChange:this.store.changePagination}))}},{key:"options",get:function(){return this.store.sort_metric_options.map((function(e){return{value:e,label:t("SORT_BY_".concat(e.toUpperCase()))}}))}}]),r}(d.default.Component))||u;a.default=S},4208:function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(27),r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(42),r(27),r(4),r(23),r(57),r(17);var u,l=n(r(36)),o=n(r(37)),c=n(r(55)),i=n(r(56)),s=n(r(51)),d=n(r(788)),f=n(r(846)),p=n(r(987)),m=r(239),h=n(r(0)),v=r(52),y=r(794);function g(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,s.default)(e);if(t){var n=(0,s.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,i.default)(this,a)}}var _=(0,m.inject)("rootStore")(u=(0,m.observer)(u=function(e){(0,c.default)(r,e);var a=g(r);function r(){var e;(0,l.default)(this,r);for(var n=arguments.length,u=new Array(n),o=0;o1&&void 0!==arguments[1]?arguments[1]:"";return isNaN(e)?"-":"".concat(e," ").concat(t)}},{key:"render",value:function(){var e=this.props,t=e.theme,a=e.store,r=e.cluster,n=this.props.store.data,u=(0,v.hideGPUByLicense)(this.columns,r);return h.default.createElement(p.default,{theme:t,columns:u,store:a,dataSource:n.toJS(),emptyText:h.default.createElement(f.default,null)})}},{key:"prefix",get:function(){var e=this.props,t=e.workspace,a=e.cluster,r=e.prefix,n=void 0===r?"/clusters":r;return"".concat(t?"/".concat(t):"").concat(n,"/").concat(a,"/projects")}}]),r}(h.default.Component))||u)||u;a.default=_},4209:function(e,t,a){e.exports={wrapper:"_2QEE0kA5oK3yiR5F6NJ_EH",pane:"_31ZPRBnP6uo15ShSfybmEC",pane__toolbar:"_3SbSBYQmiUm1PQleDJ5vH",pane__pagination:"ydHR7y7UOyE_D7JIJFiul",title:"_1wjlM5f84incd6IxPjFeQJ",toolbar:"_3MkuGiM5u4B6e9PyVpYdy6",toolbar_buttons:"WVJZaW6cbDxrcaHir3WpA",toolbar_filter:"_2PEY7Til2l8LMGkvefBQ0F",sort_button:"_2mogoX-bAf8_dO7maUFDs0",table:"_2MhZIj6mrL3Z3M_-BpqjyP",table_rank:"_36LLCV84MnD4R4sCESppwj",table_no_border:"_2zUvkXapImNxQRxJokvitf",rankList_row:"_1dTdOaYl30Ixx7flGC4HzK",rankLink__sort_col:"ngGYUZ7bVL-4ZRRi6u6hT"}},4210:function(e,t,a){e.exports={wrapper:"_2_GA-aA3dcjHwTTo42BDsA",pane:"_2Fg_H23gi6f42CuvKoE3h_",tabs:"_1BARvYoq_2_Sd9Q31qYDKq",selected:"d8kln6abpJZWeNhFKJBaa"}},4211:function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(11),r(84),r(18),r(16),r(9),r(4),r(23),r(24),r(17),r(85),r(62),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(11),r(84),r(18),r(28),r(42),r(16),r(9),r(4),r(23),r(57),r(24),r(17),r(85),r(62);var u,l,o=n(r(36)),c=n(r(37)),i=n(r(55)),s=n(r(56)),d=n(r(51)),f=n(r(49)),p=n(r(0)),m=r(239),h=r(14),v=n(r(3)),y=n(r(26)),g=r(433),_=r(186),E=n(r(790)),b=n(r(789)),S=n(r(792)),O=n(r(1861)),R=r(52),T=n(r(1862)),C=n(r(4215));function A(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,d.default)(e);if(t){var n=(0,d.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,s.default)(this,a)}}var P=(0,m.inject)("rootStore")(u=(0,m.observer)((l=function(e){(0,i.default)(r,e);var a=A(r);function r(){var e;(0,o.default)(this,r);for(var t=arguments.length,n=new Array(t),u=0;u0?"builtin":""}},{key:"listUrl",get:function(){var e=this.props.match.params.cluster,t=this.type;return"/whizard-telemetry/".concat(e,"/alert-rules").concat(t?"?type=".concat(t):"")}},{key:"routing",get:function(){return this.props.rootStore.routing}}]),r}(p.default.Component))||u)||u)||u;a.default=k},4220:function(e,t,a){"use strict";a(15);var r=a(20);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=a(317),u=r(a(4221)),l=r(a(4228));t.default=function(e){return[{path:"".concat(e,"/rules"),title:"ALERTING_RULE",component:u.default,exact:!0},{path:"".concat(e,"/messages"),title:"ALERTING_MESSAGE_PL",component:l.default,exact:!0},(0,n.getIndexRoute)({path:e,to:"".concat(e,"/rules"),exact:!0})]}},4221:function(e,a,r){"use strict";var n=r(20);r(12),r(5),r(11),r(6),r(86),r(29),r(18),r(48),r(192),r(16),r(326),r(27),r(9),r(13),r(10),r(4),r(23),r(24),r(17),r(38),r(62),r(7),r(32),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(45),r(5),r(11),r(6),r(86),r(29),r(18),r(28),r(48),r(192),r(42),r(16),r(326),r(27),r(34),r(15),r(9),r(13),r(10),r(4),r(23),r(57),r(24),r(17),r(38),r(62),r(7),r(32);var u,l=n(r(30)),o=n(r(36)),c=n(r(37)),i=n(r(55)),s=n(r(56)),d=n(r(51)),f=n(r(0)),p=r(14),m=r(239),h=n(r(26)),v=n(r(63)),y=n(r(789)),g=n(r(4222)),_=n(r(4223)),E=n(r(4224)),b=n(r(4225)),S=n(r(4226));function O(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function R(e){for(var t=1;t0?"builtin":""}},{key:"rules",get:function(){var e=[],t=(0,p.toJS)((0,h.default)(this.store,"detail._originDataWithStatus.spec.rules",[]));if("builtin"===this.type){var a=new Map;return t.forEach((function(r,n){if(a.has(r.alert)){var u=a.get(r.alert),l={for:(0,h.default)(e[u],"for",""),value:t[u]},o={for:(0,h.default)(r,"for",""),value:r};if(""!==l.for||""!==o.for){var c=C[l.for.slice(-1)],i=C[o.for.slice(-1)];if(c===i)Number(l.for.slice(0,-1))0&&void 0!==arguments[0]?arguments[0]:{},t=e.cluster,a=e.namespace,r=this.props.match.params,n=r.cluster,u=r.namespace,l=r.workspace;return t=t||n,a=a||u,"".concat(l?"/".concat(l):"","/clusters/").concat(t).concat(a?"/projects/".concat(a):"")}},{key:"render",value:function(){var e=this.store.list,a=e.data,r=e.isLoading,n=e.filters;return f.default.createElement(S.default,{title:t("ALERTING_MESSAGE_PL"),loading:r},(0,v.default)(a)?f.default.createElement("div",null,t("NO_DATA_DESC")):f.default.createElement(T.default,{className:C.default.table,filters:n,data:a,name:"Alerting Message",rowKey:"value",columns:this.getColumns(),selectedRowKeys:[],selectActions:[],hideHeader:!0,hideFooter:!0}))}},{key:"type",get:function(){return this.props.match.url.indexOf("alert-rules/builtin")>0?"builtin":""}}]),r}(f.default.Component))||u;a.default=N},4229:function(e,t,a){e.exports={table:"Yu_csta5p94Of2yHhu3v8"}},4230:function(e,t,a){e.exports={icon:"ZXyTQ36NBIPIDv0Nd0QEN"}},4231:function(e,a,r){"use strict";var n=r(20);r(12),r(5),r(11),r(6),r(16),r(9),r(13),r(10),r(4),r(23),r(24),r(17),r(62),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(45),r(5),r(11),r(6),r(28),r(42),r(16),r(34),r(15),r(9),r(13),r(10),r(4),r(22),r(23),r(57),r(24),r(17),r(62),r(7);var u=n(r(315)),l=n(r(30)),o=n(r(43));r(41);var c,i=n(r(44)),s=n(r(36)),d=n(r(37)),f=n(r(55)),p=n(r(56)),m=n(r(51)),h=n(r(0)),v=n(r(63)),y=r(239),g=r(186),_=n(r(831)),E=n(r(795)),b=r(52),S=r(791),O=r(14),R=n(r(914)),T=n(r(910)),C=n(r(805)),A=n(r(4232));function P(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function k(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=n.store.detail,a=t.cluster,r=t.name;e.keyword&&(e.name=e.keyword,delete e.keyword),n.volumeSnapshotStore.fetchList(S({volumeSnapshotClassName:r,cluster:a},e))},n.getColumns=function(){return[{title:t("NAME"),dataIndex:"name",render:function(e,t){return f.default.createElement(v.default,{icon:"snapshot",iconSize:40,title:(0,m.getDisplayName)(t),to:"/whizard-telemetry/".concat(t.cluster,"/projects/").concat(t.namespace,"/volume-snapshots/").concat(e),desc:t.snapshotClassName,noLink:!0})}},{title:t("STATUS"),dataIndex:"backupStatus",width:"20.5%",render:function(e,a){return f.default.createElement(g.default,{type:a.readyToUse?"ready":"failed",name:a.readyToUse?t("READY"):t("UNREADY")})}},{title:t("CAPACITY"),dataIndex:"restoreSize",width:"20.5%",render:function(e){return e}},{title:t("CREATION_TIME_TCAP"),dataIndex:"createTime",width:"20.5%",render:function(e){return(0,m.getLocalTime)(e).format("YYYY-MM-DD HH:mm:ss")}}]},n.volumeSnapshotStore=e.volumeSnapshotStore||new h.default,n}return(0,c.default)(r,[{key:"componentDidMount",value:function(){this.handleFetch()}},{key:"render",value:function(){var e=this.volumeSnapshotStore.list,a=e.data,r=e.filters,n=e.isLoading,u={total:e.total,page:e.page,limit:e.limit};return f.default.createElement(y.default,{title:t("VOLUME_SNAPSHOT_PL"),loading:n,empty:t("NO_AVAILABLE_RESOURCE_VALUE",{resource:t("VOLUME_SNAPSHOT")}),className:E.default.noPadding},f.default.createElement(_.default,{className:E.default.table,data:a,columns:this.getColumns(),searchType:"name",keyword:r.name,filters:r,placeholder:t("SEARCH_BY_NAME"),pagination:u,isLoading:n,onFetch:this.handleFetch}))}},{key:"store",get:function(){return this.props.detailStore}},{key:"storageClassName",get:function(){return this.store.detail.name}}]),r}(f.default.Component))||u)||u;a.default=R},4260:function(e,t,a){e.exports={noPadding:"_32GvzFp8CBTc2jzUDXyVx5"}},4261:function(e,t,a){"use strict";a(15);var r=a(20);a(5),a(4),a(23),a(24),a(17),a(62),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(45),a(5),a(42),a(4),a(23),a(57),a(24),a(17),a(62);var n,u=r(a(36)),l=r(a(37)),o=r(a(55)),c=r(a(56)),i=r(a(51)),s=a(239),d=a(1848);function f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,i.default)(e);if(t){var n=(0,i.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,c.default)(this,a)}}var p=(0,s.inject)("rootStore")(n=(0,s.observer)(n=function(e){(0,o.default)(a,e);var t=f(a);function a(){var e;(0,u.default)(this,a);for(var r=arguments.length,n=new Array(r),l=0;l0&&void 0!==arguments[0]?arguments[0]:{},t=n.store.detail,a=t.cluster,r=t.name;e.keyword&&(e.name=e.keyword,delete e.keyword),n.volumeStore.fetchList(A({storageClassName:r,cluster:a},e))},n.getColumns=function(){return[{title:t("NAME"),dataIndex:"name",render:function(e,t){return S.default.createElement(m.default,{icon:"storage",title:(0,R.getDisplayName)(t),noLink:!0})}},{title:t("STATUS"),dataIndex:"phase",width:"13%",render:function(e){return S.default.createElement(y.default,{type:e,name:t("VOLUME_STATUS_".concat(e.toUpperCase()))})}},{title:t("CAPACITY"),dataIndex:"capacity",width:"13%",render:function(e){return e||"-"}},{title:t("MOUNT_STATUS"),dataIndex:"inUse",width:"13%",render:function(e,t){return S.default.createElement(_.default,{namespace:t.namespace,cluster:t.cluster,name:t.name})}},{title:t("PROJECT"),dataIndex:"namespace",key:"namespace",width:"13%",customizable:!0,render:function(e){return(0,R.showNameAndAlias)(e,"project")}},{title:t("CREATION_TIME_TCAP"),dataIndex:"createTime",width:"21%",render:function(e){return(0,R.getLocalTime)(e).format("YYYY-MM-DD HH:mm:ss")}}]},n.renderResizeItem=function(e){var t=e.src,a=e.title,r=e.des,n=e.iconName,u=e.key;return S.default.createElement("div",{key:u,className:(0,p.default)(T.default.item,T.default.item_bg)},n?S.default.createElement(f.Icon,{name:n,size:40}):S.default.createElement("img",{src:t,className:T.default.icon}),S.default.createElement("div",null,S.default.createElement("span",{className:T.default.title},a),S.default.createElement("span",{className:T.default.des},r)))},n.renderResize=function(){var e=n.props.detailStore.detail.annotations,a=JSON.parse((0,E.default)(e,"resize.kubesphere.io/enabled","false")),r=JSON.parse((0,E.default)(e,"restart.kubesphere.io/enabled","false")),u=(0,E.default)(e,"resize.kubesphere.io/storage-limit","10000Gi"),l=(0,E.default)(e,"resize.kubesphere.io/threshold","10%"),o=(0,E.default)(e,"resize.kubesphere.io/increase","10%"),c=(0,E.default)(e,"restart.kubesphere.io/max-time","300"),i={title:t("VALUE_TIMEOUT",{value:c}),iconName:"history-duotone",des:t("RESTART_WORKLOAD_AUTOMATICALLY")},s=[{iconName:"storage",title:u,des:t("MAXIMUM_SIZE_SCAP")},{src:"/assets/chart.svg",title:l,des:t("THRESHOLD")},{iconName:"stretch",title:o,des:t("INCREMENT")}];return r&&s.push(i),a&&S.default.createElement(v.default,null,S.default.createElement("div",{className:(0,p.default)(T.default.item,T.default.top)},S.default.createElement("img",{src:"/assets/storageclass_autoresizer.svg",className:T.default.icon}),S.default.createElement("div",null,S.default.createElement("span",{className:T.default.title},t("AUTO_EXPANSION")),S.default.createElement("span",{className:T.default.des},t("AUTO_EXPANSION_DESC")))),S.default.createElement("div",{className:T.default.bottom},s.map((function(e,t){return n.renderResizeItem(A(A({},e),{},{key:t}))}))))},n.volumeStore=e.volumeStore||new O.default,n}return(0,c.default)(r,[{key:"componentDidMount",value:function(){this.handleFetch()}},{key:"render",value:function(){var e=this.volumeStore.list,a=e.data,r=e.filters,n=e.isLoading,u={total:e.total,page:e.page,limit:e.limit};return S.default.createElement(S.default.Fragment,null,this.renderResize(),S.default.createElement(h.default,{title:t("PERSISTENT_VOLUME_CLAIM_PL"),loading:n,empty:t("NO_AVAILABLE_RESOURCE_VALUE",{resource:t("PERSISTENT_VOLUME_CLAIM")})},S.default.createElement(g.default,{className:T.default.table,data:a,columns:this.getColumns(),searchType:"name",keyword:r.name,filters:r,placeholder:t("SEARCH_BY_NAME"),pagination:u,isLoading:n,onFetch:this.handleFetch})))}},{key:"store",get:function(){return this.props.detailStore}},{key:"storageClassName",get:function(){return this.store.detail.name}}]),r}(S.default.Component))||u)||u;a.default=k},4295:function(e,t,a){e.exports={table:"Dsz63huoEIbL53qWEDuoE",top:"_1StebFGFAh6ECnu9rUCL7G",item:"_-0ltGlivgzITT_bl32rnD",icon:"_3xJHPO0yJS0LKwouDHdAQv",title:"_25xNsUEaqv9Jr4gY8zUyHK",des:"_3pHBqft7L-rt-nUoShz6Ww",bottom:"StnMpbCakrgf3NNWIEvV8",item_bg:"_1tepIxXqtmhkhELh9wHDX9"}},4296:function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(16),r(4),r(23),r(24),r(17),r(62),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(42),r(16),r(4),r(23),r(57),r(24),r(17),r(62);var u,l=n(r(315)),o=n(r(36)),c=n(r(37)),i=n(r(55)),s=n(r(56)),d=n(r(51)),f=n(r(0)),p=r(14),m=r(239),h=n(r(63)),v=r(186),y=r(52),g=r(791),_=n(r(1070)),E=n(r(823)),b=n(r(4297));function S(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,d.default)(e);if(t){var n=(0,d.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,s.default)(this,a)}}var O=(0,m.inject)("rootStore")(u=(0,m.observer)(u=(0,g.trigger)(u=function(e){(0,i.default)(r,e);var a=S(r);function r(){var e;(0,o.default)(this,r);for(var n=arguments.length,u=new Array(n),l=0;l-1?localStorage.getItem("federated-cluster"):e}},{key:"namespace",get:function(){return this.props.match.params.namespace}},{key:"listUrl",get:function(){var e=this.props.match.params.workspace;return"".concat(this.props.match.url.split("gateways")[0],e?"gateways":"gateways/cluster")}}]),r}(f.default.Component))||u)||u)||u;a.default=R},4306:function(e,t,a){"use strict";a(15);var r=a(20);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=a(317),u=r(a(4307)),l=r(a(4308)),o=r(a(4315)),c=r(a(4323)),i=r(a(4324));t.default=function(e){return[{path:"".concat(e,"/monitors"),title:"MONITORING",component:l.default,exact:!0},{path:"".concat(e,"/gateway-configs"),title:"CONFIGURATION_OPTIONS",component:c.default,exact:!0},{path:"".concat(e,"/logs"),title:"GATEWAY_LOGS",component:i.default,exact:!0},{path:"".concat(e,"/resource-status"),title:"RESOURCE_STATUS",component:o.default,exact:!0},{path:"".concat(e,"/metadata"),title:"METADATA",component:u.default,exact:!0},(0,n.getIndexRoute)({path:e,to:"".concat(e,"/monitors"),exact:!0})]}},4307:function(e,a,r){"use strict";r(15);var n=r(20),u=r(157);r(18),r(98),r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(18),r(42),r(98),r(4),r(23),r(57),r(17);var l,o=n(r(96)),c=n(r(36)),i=n(r(37)),s=n(r(55)),d=n(r(56)),f=n(r(51)),p=u(r(0)),m=n(r(789)),h=n(r(63)),v=r(239),y=n(r(1864));function g(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,f.default)(e);if(t){var n=(0,f.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,d.default)(this,a)}}var _=(0,v.inject)("detailStore")(l=(0,v.observer)(l=function(e){(0,s.default)(r,e);var a=g(r);function r(){return(0,c.default)(this,r),a.apply(this,arguments)}return(0,i.default)(r,[{key:"render",value:function(){var e=this.detail.annotations;return p.default.createElement(m.default,{title:t("ANNOTATION_PL")},p.default.createElement("div",{className:y.default.container},p.default.createElement("ul",null,(0,h.default)(e)?p.default.createElement("li",null,t("NO_DATA")):Object.entries(e).map((function(e){var t=(0,o.default)(e,2),a=t[0],r=t[1];return p.default.createElement("li",{key:a},p.default.createElement("span",{className:y.default.key},a),p.default.createElement("span",null,r))})))))}},{key:"store",get:function(){return this.props.detailStore}},{key:"detail",get:function(){return this.store.gateway.data||{}}}]),r}(p.Component))||l)||l;a.default=_},4308:function(e,a,r){"use strict";var n=r(20);r(12),r(5),r(11),r(6),r(86),r(18),r(16),r(9),r(13),r(10),r(4),r(316),r(23),r(24),r(17),r(62),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(45),r(5),r(11),r(6),r(86),r(18),r(28),r(42),r(16),r(34),r(15),r(9),r(13),r(10),r(4),r(316),r(22),r(23),r(57),r(24),r(17),r(62),r(7);var u=n(r(315)),l=n(r(43)),o=n(r(30));r(41);var c,i=n(r(44)),s=n(r(36)),d=n(r(37)),f=n(r(55)),p=n(r(56)),m=n(r(51)),h=n(r(0)),v=r(239),y=n(r(26)),g=n(r(63)),_=r(794),E=n(r(1075)),b=r(186),S=r(822),O=r(798),R=n(r(4309));function T(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function C(e){for(var t=1;t-1?localStorage.getItem("federated-cluster"):e}},{key:"namespace",get:function(){return this.props.match.params.namespace}},{key:"metrics",get:function(){return this.monitorStore.data}}]),r}(h.default.Component))||c)||c;a.default=k},4309:function(e,a,r){"use strict";var n=r(20);r(12),r(5),r(11),r(6),r(84),r(86),r(18),r(16),r(27),r(190),r(9),r(13),r(10),r(4),r(316),r(23),r(24),r(17),r(85),r(62),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(45),r(5),r(11),r(6),r(84),r(86),r(18),r(28),r(42),r(16),r(27),r(190),r(34),r(15),r(9),r(13),r(10),r(4),r(316),r(22),r(23),r(57),r(24),r(17),r(85),r(62),r(7);var u=n(r(43)),l=n(r(30));r(41);var o=n(r(44)),c=n(r(36)),i=n(r(37)),s=n(r(88)),d=n(r(55)),f=n(r(56)),p=n(r(51)),m=n(r(0)),h=r(186),v=r(798),y=n(r(3)),g=r(1853),_=n(r(1075)),E=n(r(63)),b=n(r(26)),S=r(794),O=n(r(4310)),R=n(r(4314));function T(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function C(e){for(var t=1;t-1?Number(a).toFixed(4):isNaN(Number(a))?0:a;t[e.metric_name]=r})),t}},e.handleAutoRefresh=function(){e.setState({autoRefresh:!e.state.autoRefresh},(function(){e.state.autoRefresh?(0,S.startAutoRefresh)((0,s.default)(e)):(0,S.stopAutoRefresh)((0,s.default)(e))}))},e.handleRefresh=function(){e.fetchData()},e.renderAutoRefresh=function(){var t=e.state,a=t.enableAutoRefresh,r=t.autoRefresh;return a?m.default.createElement(h.Button,{className:R.default.button,type:"control",icon:r?"pause":"start",iconType:"light",onClick:e.handleAutoRefresh}):null},e.getMetricsData=function(t){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return(0,b.default)(e.state.metrics,"".concat(t),a)},e.renderCustomLegend=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=(e.className,e.payload),r=e.activeSeries,n=void 0===r?[]:r,u=e.showAll,o=void 0!==u&&u,c=a||[];if(c.length<2&&!o)return m.default.createElement("div",{className:R.default.legend});var i=function(t){var a=e.onClick;a&&a(t,(0,b.default)(t.target,"dataset.key"))};return m.default.createElement("div",{className:R.default.legend,onClick:i},c.map((function(e){var a=!n.includes(e.value),r=(0,b.default)(e,"payload.stroke");return m.default.createElement("div",{key:e.dataKey,"data-key":e.dataKey,className:(0,y.default)(R.default.item,(0,l.default)({},R.default.inactive,a))},m.default.createElement("i",{style:{backgroundColor:r}}),t(e.value))})))},e}return(0,i.default)(r,[{key:"componentDidMount",value:function(){this.fetchData(this.props.match.params)}},{key:"render",value:function(){var e=this.state,a=e.duration,r=e.errorType;return m.default.createElement("div",{className:R.default.overview},m.default.createElement("div",{className:R.default.header},m.default.createElement("p",{className:R.default.title},t("OVERVIEW")),m.default.createElement("div",{className:R.default.operations},m.default.createElement(O.default,{duration:a,onChange:this.handleChange}),this.renderAutoRefresh(),m.default.createElement(h.Button,{className:R.default.button,type:"control",icon:"refresh",iconType:"light",onClick:this.handleRefresh}))),m.default.createElement("div",{className:R.default.body},m.default.createElement("div",{className:R.default.left},m.default.createElement("div",{className:R.default.item},m.default.createElement(h.Icon,{name:"gateway",size:56}),m.default.createElement("div",null,m.default.createElement("p",null,t("TOTAL_REQUESTS")),m.default.createElement("span",null,this.getMetricsData("ingress_request_count")))),m.default.createElement("div",{className:R.default.item},m.default.createElement(h.Icon,{name:"error",size:56}),m.default.createElement("div",null,m.default.createElement(h.Select,{width:30,value:r,options:[{label:t("FOUR_XX_REQUEST_COUNT"),value:"ingress_request_4xx_count"},{label:t("FIVE_XX_REQUEST_COUNT"),value:"ingress_request_5xx_count"}],onChange:this.handleRequestError}),m.default.createElement("span",null,this.getMetricsData(r))))),m.default.createElement("div",{className:R.default.middle},m.default.createElement(v.SimpleCircle,{theme:"light",width:200,height:200,title:"",value:"".concat((100*this.getMetricsData("ingress_success_rate")).toFixed(2)),total:100,unit:"%",innerRadius:"80%",legend:["SUCCESSFUL_REQUESTS","TOTAL"],showCenter:!0,showRate:!1,areaColors:["#55BC8A","#E3E9EF"],renderCustomCenter:function(e){var a=e.value;return m.default.createElement("div",{className:R.default.simpleContent},m.default.createElement("p",null,t("SUCCESSFUL_REQUESTS")),m.default.createElement("span",null,a,"%"))}})),m.default.createElement("div",{className:R.default.right},m.default.createElement("div",{className:R.default.item},m.default.createElement("span",{className:R.default.customIcon},m.default.createElement(g.ReactComponent,null)),m.default.createElement("div",null,m.default.createElement("p",null,t("AVERAGE_LATENCY")),m.default.createElement("span",null,"".concat(this.getMetricsData("ingress_request_duration_average")," ms")))),m.default.createElement("div",{className:R.default.itemSmall},m.default.createElement("span",null,t("P_FIFTY_LATENCY")),m.default.createElement("span",null,"".concat(this.getMetricsData("ingress_request_duration_50percentage")," ms"))),m.default.createElement("div",{className:R.default.itemSmall},m.default.createElement("span",null,t("P_NINETY_FIVE_LATENCY")),m.default.createElement("span",null,"".concat(this.getMetricsData("ingress_request_duration_95percentage")," ms"))),m.default.createElement("div",{className:R.default.itemSmall},m.default.createElement("span",null,t("P_NINETY_NINE_LATENCY")),m.default.createElement("span",null,"".concat(this.getMetricsData("ingress_request_duration_99percentage")," ms"))))))}},{key:"detail",get:function(){return this.props.detailStore.gateway.data}}]),r}(m.default.Component);a.default=k},4310:function(e,a,r){"use strict";r(15);var n=r(20);r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(42),r(4),r(23),r(57),r(17);var u=n(r(30)),l=n(r(36)),o=n(r(37)),c=n(r(55)),i=n(r(56)),s=n(r(51)),d=n(r(0)),f=n(r(1)),p=n(r(3)),m=r(186),h=n(r(4311)),v=r(1865),y=n(r(4313));function g(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,s.default)(e);if(t){var n=(0,s.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,i.default)(this,a)}}var _=function(e){(0,c.default)(r,e);var a=g(r);function r(e){var t;(0,l.default)(this,r),(t=a.call(this,e)).handleToggle=function(){t.setState({visible:!t.state.visible},(function(){t.props.onToggle(t.state.visible)}))},t.hideSelector=function(){t.setState({visible:!1},(function(){t.props.onToggle(!1)}))},t.handleTimeChange=function(e){var a=e.duration;t.setState({visible:!1,duration:a},(function(){t.props.onChange(a)}))};var n=e.duration;return t.state={visible:!1,preDuration:"",duration:n||"10m"},t}return(0,o.default)(r,[{key:"renderButtonText",value:function(){var e=this.state.duration,a=(0,v.getTimeLabel)(e);return t("LAST_TIME",{value:a})}},{key:"renderContent",value:function(){var e=this.state.duration;return d.default.createElement("div",{className:y.default.content},d.default.createElement(h.default,{duration:e,onChange:this.handleTimeChange}))}},{key:"render",value:function(){var e=this.props,t=e.className,a=e.dark,r=e.arrowIcon;return d.default.createElement("div",{className:(0,p.default)(y.default.selector,t,(0,u.default)({},y.default.active,this.state.visible))},d.default.createElement("div",{className:(0,p.default)(y.default.mask,(0,u.default)({},y.default.active,this.state.visible)),onClick:this.hideSelector}),d.default.createElement(m.Button,{className:y.default.button,onClick:this.handleToggle},d.default.createElement(m.Icon,{type:a?"dark":"light",name:"timed-task",size:20}),d.default.createElement("p",null,this.renderButtonText()),d.default.createElement(m.Icon,{className:y.default.arrow,type:a?"dark":"light",name:r||"caret-down"})),d.default.createElement("div",{className:y.default.dropdown},this.renderContent()))}}],[{key:"getDerivedStateFromProps",value:function(e,t){if(e.duration!==t.preDuration){var a=e.duration;return{prevPropStep:a,duration:a}}return null}}]),r}(d.default.PureComponent);a.default=_,_.propTypes={duration:f.default.string,onChange:f.default.func,onToggle:f.default.func},_.defaultProps={duration:"10m",onChange:function(){},onToggle:function(){}}},4311:function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(18),r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(18),r(42),r(4),r(23),r(57),r(17);var u=n(r(30)),l=n(r(36)),o=n(r(37)),c=n(r(55)),i=n(r(56)),s=n(r(51)),d=n(r(0)),f=n(r(1)),p=n(r(3)),m=r(1865),h=n(r(4312));function v(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,s.default)(e);if(t){var n=(0,s.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,i.default)(this,a)}}var y=["1m","5m","10m","30m","1h","3h","6h","12h"],g=function(e){(0,c.default)(r,e);var a=v(r);function r(){var e;(0,l.default)(this,r);for(var t=arguments.length,n=new Array(t),u=0;u-1?localStorage.getItem("federated-cluster"):e}},{key:"prefix",get:function(){return"/whizard-telemetry/".concat(this.cluster)}},{key:"enabledActions",get:function(){return globals.app.getActions(C(C({module:this.module},this.props.match.params),{},{project:this.props.match.params.namespace}))}},{key:"volumesTitle",get:function(){return t("STORAGE_DEVICES")}}]),r}(p.default.Component);P.childContextTypes={gatewayName:E.default.string,gatewayNs:E.default.string,cluster:E.default.string};var k=(0,h.inject)("detailStore")((0,h.observer)(P));a.default=k;var N=P;a.Component=N},4316:function(e,t,a){"use strict";a(15);var r=a(20);a(5),a(4),a(23),a(17),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(45),a(5),a(160),a(42),a(4),a(23),a(57),a(17);var n=r(a(36)),u=r(a(37)),l=r(a(55)),o=r(a(56)),c=r(a(51)),i=r(a(0)),s=r(a(1)),d=r(a(3)),f=r(a(26)),p=r(a(789)),m=r(a(4317)),h=r(a(4319));function v(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,c.default)(e);if(t){var n=(0,c.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,o.default)(this,a)}}var y=function(e){(0,l.default)(a,e);var t=v(a);function a(){var e;(0,n.default)(this,a);for(var r=arguments.length,u=new Array(r),l=0;l=0&&e.props.onScale(t)},e}return(0,u.default)(a,[{key:"render",value:function(){var e=this.props.className;return i.default.createElement(p.default,{className:(0,d.default)(h.default.replica,e)},i.default.createElement("div",{className:h.default.replicaCount},i.default.createElement(m.default,this.replicaStatus)))}},{key:"replicaStatus",get:function(){var e=this.props,t=e.module,a=e.detail,r=e.enableScale,n={};switch(t){default:case"deployments":n={current:a.availablePodNums||0,desire:a.podNums||0};break;case"statefulsets":n={current:(0,f.default)(a,"status.currentReplicas",a.readyPodNums),desire:a.podNums||0};break;case"daemonsets":n={current:(0,f.default)(a,"status.numberReady",0),desire:(0,f.default)(a,"status.desiredNumberScheduled",0)};break;case"gateways":n={current:Array.isArray(a.pods)?a.pods.length:1,desire:(0,f.default)(a,"replicas",0)}}return n.onScale=r?this.handleReplicaChange:null,n}}]),a}(i.default.Component);t.default=y,y.propTypes={module:s.default.string,detail:s.default.object,enableScale:s.default.bool,onScale:s.default.func},y.defaultProps={module:"deployments",enableScale:!0,onScale:function(){}}},4317:function(e,a,r){"use strict";r(15);var n=r(20);r(16),r(27),r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var u=n(r(36)),l=n(r(37)),o=n(r(55)),c=n(r(56)),i=n(r(51));r(45),r(42),r(16),r(27),r(4),r(23),r(57),r(17);var s=n(r(0)),d=n(r(1)),f=n(r(3)),p=r(798),m=n(r(4318));function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,i.default)(e);if(t){var n=(0,i.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,c.default)(this,a)}}var v=function(e){return Number(e||0)},y=function(e){(0,o.default)(r,e);var a=h(r);function r(e){var t;(0,u.default)(this,r),t=a.call(this,e);var n=v(e.desire);return t.state={prevPropDesire:n,desire:n,seconds:5},t}return(0,l.default)(r,[{key:"render",value:function(){var e=this.props,a=e.theme,r=e.className,n=e.name,u=e.current,l=this.state.desire,o=t(n),c=t("REPLICAS_CURRENT"),i=t("REPLICAS_DESIRED");return s.default.createElement("div",{className:(0,f.default)(m.default.card,r,m.default[a])},s.default.createElement("img",{className:m.default.cardImg,src:"/assets/banner-icon-1.svg"}),s.default.createElement("div",{className:m.default.chart},s.default.createElement(p.SimpleCircle,{theme:a,title:o,legend:[c,i],value:u,total:l})),s.default.createElement("div",{className:m.default.status},s.default.createElement("div",{className:m.default.title},o),s.default.createElement("div",{className:m.default.detail},s.default.createElement("p",null,s.default.createElement("label",null,i,":")," ",l),s.default.createElement("p",null,s.default.createElement("label",null,c,":")," ",u))))}}],[{key:"getDerivedStateFromProps",value:function(e,t){if(e.desire!==t.prevPropDesire){var a=v(e.desire);return{prevPropDesire:a,desire:a}}return null}}]),r}(s.default.Component);a.default=y,y.propTypes={theme:d.default.string,className:d.default.string,name:d.default.string,current:d.default.number,desire:d.default.number,onScale:d.default.func},y.defaultProps={theme:"dark",name:"REPLICA_PL",current:0,desire:0,onScale:null}},4318:function(e,t,a){e.exports={card:"_2tqToS7KOKa64SH3Nolb-A",cardImg:"_39cBVvUnYggEAKy4WFYtxD",dark:"_3JXwjgxuPd7iiRWjTqC6Sc",status:"_12ELZ5kvVLBsUm_A5APgjb",title:"gB0VgBzXnjEYnUUmJs0p5",detail:"_1mP4izOhBrYEo6q20Fl_Ol",scale:"_3qAEaNujKHXdxSwhzUzNfQ",control:"_3Z1mXUXuBydINztjdMXJot",add:"_1-rjjfWKXygy2ozDguvRyb",substract:"_3X2mYKvDRFhceXrdccArGe"}},4319:function(e,t,a){e.exports={replica:"_1FG_TRIMjcDVMaQznsqGbP",replicaCount:"Gmok3l7GaS8cTwON3fczC"}},4320:function(e,a,r){"use strict";var n=r(20);r(12),r(11),r(6),r(18),r(16),r(98),r(9),r(13),r(10),r(4),r(316),r(23),r(24),r(17),r(188),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(45),r(11),r(6),r(18),r(28),r(42),r(16),r(34),r(15),r(98),r(9),r(13),r(10),r(4),r(316),r(22),r(23),r(57),r(24),r(17),r(188),r(7);var u=n(r(315)),l=n(r(96)),o=n(r(43)),c=n(r(30)),i=n(r(58));r(41);var s,d,f,p=n(r(44)),m=n(r(36)),h=n(r(37)),v=n(r(55)),y=n(r(56)),g=n(r(51)),_=n(r(0)),E=r(239),b=n(r(1)),S=n(r(3)),O=n(r(63)),R=n(r(26)),T=r(186),C=r(794),A=n(r(1075)),P=n(r(789)),k=n(r(4321)),N=n(r(1866));function D(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function w(e){for(var t=1;t0&&void 0!==c[0]?c[0]:{},a=t.noMetrics,r=t.silent,u=(0,i.default)(t,["noMetrics","silent"]),!(0,O.default)(n.state.params)){e.next=4;break}return n.store.podList.isLoading=!1,e.abrupt("return");case 4:return l=n.props.limit,r&&(n.store.podList.silent=!0),e.next=8,n.store.getGatewayPodsList(w(w({limit:l},n.state.params),u));case 8:n.store.podList.silent=!1,a||n.fetchMetrics();case 10:case"end":return e.stop()}}),e)}))),n.fetchMetrics=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=n.store.podList,a=t.data,r=t.isLoading;if((0,O.default)(a)||r||(0,O.default)(n.state.params))return!1;n.monitorStore.fetchMetrics(w(w({step:"1m",times:30,resources:a.map((function(e){return e.name})),metrics:Object.values(I)},n.state.params),e))},n.getPagination=function(){var e=n.store.podList;return{page:e.page,limit:e.limit,total:e.total}},n.getPodMetrics=function(){var e=n.monitorStore.data,t={};return Object.entries(I).forEach((function(a){var r=(0,l.default)(a,2),n=r[0],u=r[1],o=(0,R.default)(e,"".concat(u,".data.result"))||[];t[n]=o[0]})),t},n.handleSearch=function(e){n.searchValue=e,n.fetchData({search:e})},n.handleRefresh=function(){var e=n.searchValue?{search:n.searchValue}:{};n.fetchData(e)},n.handlePage=function(e){n.fetchData({page:e}).then((function(){n.props.onPage(e)}))},n.handleExpand=function(e){n.setState((function(t){return{expandItem:t.expandItem===e?"":e}}))},n.getClustersOptions=function(){return n.props.clusters.map((function(e){return{label:e,value:e}}))},n.handleClusterChange=function(e){n.setState({selectCluster:e,params:n.getParams(e)},(function(){n.fetchData()}))},n.renderHeader=function(){return _.default.createElement("div",{className:N.default.header},_.default.createElement(T.InputSearch,{className:N.default.search,name:"search",placeholder:t("SEARCH"),onSearch:n.handleSearch}),_.default.createElement("div",{className:N.default.actions},_.default.createElement(T.Button,{type:"flat",icon:"refresh",onClick:n.handleRefresh})))},n.renderFooter=function(){var e=n.getPagination(),a=e.total;return _.default.createElement(T.Level,{className:N.default.footer},_.default.createElement(T.LevelLeft,null,t("TOTAL_ITEMS",{num:a})),_.default.createElement(T.LevelRight,null,_.default.createElement(T.Pagination,(0,u.default)({},e,{onChange:n.handlePage}))))},n.store=e.store,n.monitorStore=new A.default;var c=e.detail.cluster||e.params;return n.state={expandItem:"",params:c},n}return(0,h.default)(r,[{key:"componentDidUpdate",value:function(e){var t=this,a=this.props,r=a.detail,n=a.params;if(r!==e.detail){var u=r.cluster||n;this.setState({expandItem:"",selectCluster:u||"",params:this.getParams(u)},(function(){t.fetchData()}))}}},{key:"componentDidMount",value:function(){this.fetchData(),(0,C.startAutoRefresh)(this,{method:"fetchMetrics",leading:!1})}},{key:"componentWillUnmount",value:function(){(0,C.stopAutoRefresh)(this),this.disposer&&this.disposer()}},{key:"renderContent",value:function(){var e=this,a=this.props.prefix,r=this.store.podList,n=r.data,u=r.isLoading,l=r.silent,o=_.default.createElement("div",{className:N.default.body},(0,O.default)(n)?_.default.createElement("div",{className:N.default.empty},t("NO_RESOURCE_FOUND")):n.map((function(t){return _.default.createElement(k.default,{key:t.uid,prefix:a,detail:t,metrics:e.getPodMetrics(t),loading:e.monitorStore.isLoading,refreshing:e.monitorStore.isRefreshing,isExpand:e.state.expandItem===t.uid,onExpand:e.handleExpand})})));return l?o:_.default.createElement(T.Loading,{spinning:u},o)}},{key:"render",value:function(){var e=this.props,a=e.className,r=e.title,n=e.hideHeader,u=e.hideFooter,l=e.noWrapper,o=this.store.podList.data;return l?this.renderContent():_.default.createElement(P.default,{className:(0,S.default)(N.default.main,a),title:t(r),empty:t("NO_AVAILABLE_RESOURCE_VALUE",{resource:t("POD")}),isEmpty:(0,O.default)(o)},!n&&this.renderHeader(),this.renderContent(),!u&&this.renderFooter())}}]),r}(_.default.Component),d.propTypes={prefix:b.default.string,title:b.default.string,detail:b.default.object,details:b.default.object,hideHeader:b.default.bool,hideFooter:b.default.bool,onPage:b.default.func,limit:b.default.number},d.defaultProps={title:"Pods",detail:{},details:{},hideHeader:!1,hideFooter:!1,onPage:function(){}},s=f))||s;a.default=M},4321:function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(6),r(86),r(18),r(87),r(16),r(4),r(23),r(17),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(6),r(86),r(18),r(87),r(42),r(16),r(4),r(23),r(57),r(17),r(7);var u=n(r(61)),l=n(r(30)),o=n(r(315)),c=n(r(36)),i=n(r(37)),s=n(r(55)),d=n(r(56)),f=n(r(51)),p=n(r(0)),m=r(433),h=n(r(1)),v=n(r(3)),y=n(r(63)),g=n(r(26)),_=r(52),E=r(794),b=r(186),S=n(r(839)),O=r(798),R=n(r(1220)),T=n(r(804)),C=n(r(1866));function A(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,f.default)(e);if(t){var n=(0,f.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,d.default)(this,a)}}var P=function(e){(0,s.default)(r,e);var a=A(r);function r(){var e;(0,c.default)(this,r);for(var n=arguments.length,u=new Array(n),l=0;l1&&p.default.createElement(b.Tooltip,{content:this.renderPodIPContent(this.networkIPs)},p.default.createElement("div",{className:C.default.podip},this.networkIPs.length))),p.default.createElement("p",null,t("POD_IP_ADDRESS_SCAP"))),this.renderMonitorings(),p.default.createElement("div",{className:C.default.arrow},p.default.createElement(b.Icon,{name:"chevron-down",type:u?"light":"",size:20})))}},{key:"renderExtraContent",value:function(){var e=this,a=this.props.prefix,r=this.props.detail,n=r.cluster,u=r.containers,l=void 0===u?[]:u,o=r.initContainers,c=void 0===o?[]:o,i=r.name;if((0,y.default)(l))return null;var s=globals.app.hasPermission({module:"clusters",action:"view"})&&a?this.getLink():"";return p.default.createElement("div",{className:C.default.itemExtra},p.default.createElement("div",{className:"margin-b8"},p.default.createElement("strong",null,t("CONTAINER_PL"))),p.default.createElement("div",{className:C.default.containers},l.map((function(t){return p.default.createElement(R.default,{key:t.name,prefix:s,podName:i,detail:t,cluster:n,onContainerClick:e.handleLinkClick,isCreating:e.isCreating,hideterminal:!0})})),c.map((function(t){return p.default.createElement(R.default,{key:t.name,prefix:s,podName:i,detail:t,cluster:n,onContainerClick:e.handleLinkClick,isCreating:e.isCreating,isInit:!0,hideterminal:!0})}))))}},{key:"render",value:function(){var e=this.props,t=e.className,a=e.isExpand;return p.default.createElement("div",{className:(0,v.default)(C.default.item,t,(0,l.default)({},C.default.expanded,a))},p.default.createElement("div",{className:C.default.itemMain,onClick:this.handleExpandExtra},p.default.createElement("div",{className:C.default.icon},p.default.createElement(b.Icon,{name:"pod",size:40,type:a?"light":"dark"}),this.renderStatusTip()),this.renderContent()),this.renderExtraContent())}},{key:"status",get:function(){var e=this.props.detail.podStatus,t=e.status;return{type:e.type.toLowerCase(),name:t}}},{key:"isCreating",get:function(){return"warning"===this.status.type&&"ContainerCreating"===this.status.name}},{key:"isRunning",get:function(){return"running"===this.status.type||"completed"===this.status.type}},{key:"networkIPs",get:function(){return this.props.detail.networksStatus.reduce((function(e,t){return[].concat((0,u.default)(e),(0,u.default)(t.ips))}),[])}}]),r}(p.default.PureComponent);a.default=P,P.propTypes={className:h.default.string,prefix:h.default.string,detail:h.default.object,metrics:h.default.object,loading:h.default.bool,isExpand:h.default.bool,onExpand:h.default.func},P.defaultProps={prefix:"",detail:{},isExpand:!1,onExpand:function(){}}},4322:function(e,t,a){e.exports={deployment_codeResource:"DWNzvnnPXAJT9fQSbDyjf"}},4323:function(e,a,r){"use strict";r(15);var n=r(20);r(18),r(98),r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(18),r(42),r(98),r(4),r(23),r(57),r(17);var u,l=n(r(96)),o=n(r(36)),c=n(r(37)),i=n(r(55)),s=n(r(56)),d=n(r(51)),f=n(r(0)),p=n(r(789)),m=r(239),h=n(r(63)),v=n(r(26)),y=n(r(1864));function g(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,d.default)(e);if(t){var n=(0,d.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,s.default)(this,a)}}var _=(0,m.inject)("detailStore")(u=(0,m.observer)(u=function(e){(0,i.default)(r,e);var a=g(r);function r(){return(0,o.default)(this,r),a.apply(this,arguments)}return(0,c.default)(r,[{key:"render",value:function(){var e=this.detail.config;return f.default.createElement(p.default,{title:t("CONFIGURATION_OPTIONS")},f.default.createElement("div",{className:y.default.container},f.default.createElement("ul",null,(0,h.default)(e)?f.default.createElement("li",null,t("NO_DATA")):Object.entries(this.detail.config).map((function(e){var t=(0,l.default)(e,2),a=t[0],r=t[1];return f.default.createElement("li",{key:a},f.default.createElement("span",{className:y.default.key},a),f.default.createElement("span",null,r))})))))}},{key:"module",get:function(){return this.props.detailStore.module}},{key:"store",get:function(){return this.props.detailStore}},{key:"detail",get:function(){return(0,v.default)(this.store.gateway,"data",{})}}]),r}(f.default.Component))||u)||u;a.default=_},4324:function(e,a,r){"use strict";r(84),r(85);var n=r(20);r(12),r(5),r(11),r(6),r(73),r(18),r(87),r(97),r(16),r(9),r(13),r(10),r(4),r(316),r(23),r(24),r(17),r(62),r(188),r(7),r(110),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(45),r(5),r(11),r(6),r(73),r(18),r(28),r(87),r(245),r(97),r(442),r(42),r(16),r(34),r(15),r(9),r(13),r(10),r(4),r(316),r(22),r(23),r(57),r(24),r(17),r(62),r(188),r(7),r(110);var u=n(r(61)),l=n(r(43)),o=n(r(30));r(41);var c,i,s,d,f,p,m,h,v,y=n(r(44)),g=n(r(96)),_=n(r(65)),E=n(r(36)),b=n(r(37)),S=n(r(88)),O=n(r(55)),R=n(r(56)),T=n(r(51)),C=n(r(49)),A=(n(r(66)),n(r(0))),P=r(239),k=n(r(833)),N=n(r(985)),D=r(14),w=r(186),L=n(r(3)),I=r(2014),M=n(r(243)),j=n(r(1127)),x=n(r(1392)),U=r(1397),V=n(r(1124)),G=n(r(4325));function F(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function Y(e){for(var t=1;t').concat(e.hightLighted,"")}));return A.default.createElement("span",{dangerouslySetInnerHTML:{__html:o.join("")}})}},e.scrollTo=function(t){try{e.tableRef.current.scrollToRow(t)}catch(e){}},(0,_.default)(e,"onTableScrollTop",m,(0,S.default)(e)),e.initQuery=function(){e.searchInputState={query:[],start:"",end:"",durationAlias:"",nextParamsKey:""}},e.togglePolling=function(){e.state.polling?e.stopPolling():e.startPolling()},(0,_.default)(e,"changeFrequency",h,(0,S.default)(e)),(0,_.default)(e,"pollingFunc",v,(0,S.default)(e)),e.onSearchParamsChange=function(){e.stopPolling(),e.refreshQuery()},e.handleRefresh=function(){e.refreshQuery()},e.clearFilter=function(){e.initQuery(),e.refreshQuery()},e.renderEmpty=function(){return A.default.createElement("div",{className:G.default.emptyText},A.default.createElement("span",{className:G.default.emptyTipIcon},A.default.createElement(w.Icon,{name:"exclamation",size:48})),A.default.createElement("div",null,t("NO_MATCHING_RESULT_FOUND")),A.default.createElement("p",null,t("YOU_CAN_TRY_TO"),A.default.createElement("span",{className:G.default.action,onClick:e.handleRefresh,"data-test":"table-empty-refresh"},t("REFRESH_DATA")),t("OR"),A.default.createElement("span",{className:G.default.action,onClick:e.clearFilter,"data-test":"table-empty-clear-filter"},t("CLEAR_SEARCH_CONDITIONS"))))},e}return(0,b.default)(i,[{key:"componentDidMount",value:function(){this.refreshQuery()}},{key:"componentWillUnmount",value:function(){clearInterval(this.pollingInterval)}},{key:"getQueryParams",value:function(){return this.searchInputState.query.filter((function(e){return e.key})).reduce((function(e,t){var a=t.key,r=t.value,n=a,u=e[n];return e[n]=u?"".concat(u,",").concat(r):r,e}),{})}},{key:"refreshQuery",value:(n=(0,y.default)(l.default.mark((function e(){var t,a;return l.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=this.getQueryParams(),e.next=3,this.fetchLog(Y(Y({},t),{},{from:0,size:50},this.duration));case 3:a=e.sent,this.logs=a.reverse(),this.scrollTo(this.logs.length);case 6:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"fetchLog",value:(r=(0,y.default)(l.default.mark((function e(t){var a,r,n,u,o;return l.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=this.props.match.params,r=a.cluster,n=a.namespace,u=a.gatewayName,o=a.workspace,e.next=3,this.store.getGatewayLogs(Y({cluster:r,namespace:n,gatewayName:u,workspace:o},t));case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e,this)}))),function(e){return r.apply(this,arguments)})},{key:"loadMoreLogs",value:(a=(0,y.default)(l.default.mark((function e(){var t,a,r;return l.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=this.store.logs.from+this.store.logs.size,a=this.getQueryParams(),e.next=4,this.fetchLog(Y(Y(Y({},a),this.duration),{},{from:t,size:50}));case 4:r=e.sent,this.logs=[].concat((0,u.default)(r.reverse()),(0,u.default)(this.logs)),this.scrollTo(r.length);case 7:case"end":return e.stop()}}),e,this)}))),function(){return a.apply(this,arguments)})},{key:"stopPolling",value:function(){clearTimeout(this.pollingInterval),this.setState({polling:!1})}},{key:"startPolling",value:function(){this.setState({polling:!0}),this.pollingFunc(),this.pollingInterval&&clearTimeout(this.pollingInterval),this.pollingInterval=setInterval(this.pollingFunc,this.pollingFrequency)}},{key:"renderOperation",value:function(){var e=[5,10,20].map((function(e){return{label:t("REFRESH_INTERVAL_VALUE",{value:e}),value:1e3*e}})),a=Y(Y({},this.duration),this.getQueryParams());return A.default.createElement("div",{className:G.default.filter},A.default.createElement("div",{className:(0,L.default)(G.default.filterButton,G.default.pollingBtn),onClick:this.togglePolling},A.default.createElement(w.Icon,{name:this.state.polling?"stop":"start",type:"light"})),A.default.createElement(w.Select,{prefixIcon:A.default.createElement(w.Icon,{type:"light",name:"timed-task",size:20}),className:(0,L.default)(G.default.filterButton,G.default.frequencyOpts),defaultValue:5e3,options:e,onChange:this.changeFrequency}),A.default.createElement("a",{href:this.store.exportLinkFactory(a),download:!0},A.default.createElement("span",{className:(0,L.default)(G.default.filterButton,G.default.exportBtn)},A.default.createElement(w.Tooltip,{content:t("EXPORT_LOGS")},A.default.createElement(w.Icon,{name:"export",type:"light"})))))}},{key:"render",value:function(){return globals.app.hasKSModule("whizard-logging")?A.default.createElement("div",null,A.default.createElement("div",{className:G.default.title},A.default.createElement("div",{className:(0,L.default)(G.default.search,(0,o.default)({},G.default.focus,this.hasValue))},A.default.createElement(w.Icon,{className:G.default.isLeft,name:"magnifier",size:20}),A.default.createElement(N.default,{className:G.default.searchInput,onChange:this.onSearchParamsChange,params:this.searchInputState,dropdownClass:G.default.dropdownClass,iconThem:"light",enableClear:!0,dropDownItems:this.dropDownContent,showStep:!1}),A.default.createElement(w.Icon,{className:(0,L.default)(G.default.clearIcon,(0,o.default)({},G.default.hideIcon,!this.hasValue)),name:"close",onClick:this.initQuery})),this.renderOperation()),A.default.createElement("div",{className:G.default.body},(0,I.isEmpty)((0,D.toJS)(this.logs))?this.renderEmpty():A.default.createElement(j.default,{onScroll:this.onTableScrollTop,cols:this.tableCols,data:(0,D.toJS)(this.logs),tableRef:this.tableRef,trCLassName:G.default.trCLassName,body:G.default.bodyClassName,header:G.default.headerClassName}))):A.default.createElement(k.default,{className:"no-shadow",icon:"cluster",title:t("LOGGING_DISABLED")})}},{key:"hasValue",get:function(){return Object.values((0,D.toJS)(this.searchInputState)).some((function(e){return(0,I.isArray)(e)?e.some((function(e){return!(0,I.isEmpty)((0,D.toJS)(e))})):!(0,I.isEmpty)(e)}))}},{key:"defaultDuration",get:function(){return{start_time:0,end_time:Date.now()}}},{key:"duration",get:function(){var e=Date.now(),t=this.searchInputState,a=t.start,r=t.end;return a?{start_time:(0,I.min)([1e3*a,e]),end_time:(0,I.min)([1e3*r,e])}:this.defaultDuration}},{key:"dropDownContent",get:function(){return{log_query:{icon:"magnifier",text:t("KEYWORD")},pod_query:{icon:"pod",text:t("POD")}}}},{key:"store",get:function(){return this.props.detailStore}}]),i}(A.default.Component),s=(0,C.default)(i.prototype,"searchInputState",[D.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{query:[],start:"",end:"",durationAlias:"",nextParamsKey:""}}}),d=(0,C.default)(i.prototype,"pollingFrequency",[D.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 5e3}}),f=(0,C.default)(i.prototype,"logs",[D.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),(0,C.default)(i.prototype,"hasValue",[D.computed],Object.getOwnPropertyDescriptor(i.prototype,"hasValue"),i.prototype),p=(0,C.default)(i.prototype,"tableCols",[D.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[{thead:t("TIME"),key:"time",dataIndex:"time",mustShow:!0,content:function(e){return"[".concat((0,M.default)(e.time).format("YYYY-MM-DD HH:mm:ss"),"]")}},{thead:t("POD"),key:"pod",dataIndex:"pod",mustShow:!0,content:this.renderHightLightMatchTd({resKey:"pod",searchKey:["pod_query"]})},{thead:t("MESSAGE"),key:"log",dataIndex:"log",className:G.default.logItem,content:this.renderHightLightMatchLogTd({resKey:"log",searchKey:["log_query"],handler:U.esMark}),mustShow:!0}]}}),(0,C.default)(i.prototype,"refreshQuery",[D.action],Object.getOwnPropertyDescriptor(i.prototype,"refreshQuery"),i.prototype),(0,C.default)(i.prototype,"fetchLog",[D.action],Object.getOwnPropertyDescriptor(i.prototype,"fetchLog"),i.prototype),(0,C.default)(i.prototype,"loadMoreLogs",[D.action],Object.getOwnPropertyDescriptor(i.prototype,"loadMoreLogs"),i.prototype),m=(0,C.default)(i.prototype,"onTableScrollTop",[D.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(t){var a=t.scrollTop,r=e.store.logs,n=r.from,u=r.size,l=r.total;0===a&&l>n+u&&e.loadMoreLogs()}}}),h=(0,C.default)(i.prototype,"changeFrequency",[D.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(t){e.pollingFrequency=t,e.state.polling&&(clearTimeout(e.pollingInterval),e.startPolling())}}}),v=(0,C.default)(i.prototype,"pollingFunc",[D.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(){var t=z;e.searchInputState.end=Math.ceil(Date.now()/1e3),e.searchInputState.start=e.searchInputState.end-t,e.searchInputState.durationAlias="".concat(t/60,"m"),e.refreshQuery()}}}),c=i))||c)||c;a.default=W},4325:function(e,t,a){e.exports={title:"_27kFVAF6T6LskkB-SldkYB",focus:"EKk9Ji6QfnTzPjTdVGqgD",search:"_3kCCC6wI8blm8hKjJSIEcI",clearIcon:"_22CuQAmQJmPP1qPZkbLiLj",hideIcon:"_1F2hnpFCTxuxKIto8LQ51h",searchInput:"_3aNlwp3HfWhMeK1qFTLyoE",filter:"_3n89x2yGrGQ-oOOnS_YPwV",filterButton:"-kwpd9PsbShdFHDxkTgaT",exportBtn:"_2Q3HTrKzy33-1EizMmTKjx",pollingBtn:"_3WOXlBnk1BHyIiczHfgPK5",frequencyOpts:"_2H6qWGcv5qpefqUf6xkheC",searchBar:"_2K1N2nbDXMgMKbu0epuoqL",icon:"_1bkWSywOXEftAG9wNrQZEy",input:"JtBo7JY3_gEsP3OPMCVU7",dropdownClass:"_1fclYzxlwgfjHJSErppFui",body:"_3WDI3EZtPkYYy_z1f5hYnq",logItem:"_1NFwmrHeL25OAMuMTu7cdq",bodyClassName:"_3exrzDsfOPvrtsv3g5hA7h",headerClassName:"_25wENVXdRENHnBrg8HBWuE",trCLassName:"_1HlklfBbXcC8Te5q4BCwBN",emptyText:"aQvVb-bQn9kjmweXEIrRd",emptyTipIcon:"_1Uv0pJ5e_GGE_aafwHCiN_",action:"_2JIoQ0cYcxoX7cpnbMCkUn",hightLightMatch:"_3ZdEPi-ux2l08NjRFT0SbH"}},4326:function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(4),r(23),r(24),r(17),r(62),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(28),r(42),r(4),r(22),r(23),r(57),r(24),r(17),r(62);var u=n(r(315)),l=n(r(43));r(41);var o,c,i,s,d=n(r(44)),f=n(r(65)),p=n(r(36)),m=n(r(37)),h=n(r(88)),v=n(r(55)),y=n(r(56)),g=n(r(51)),_=n(r(49)),E=(n(r(66)),n(r(0))),b=r(239),S=r(791),O=n(r(792)),R=n(r(834)),T=r(14),C=r(186),A=n(r(4327)),P=n(r(4331));function k(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,g.default)(e);if(t){var n=(0,g.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,y.default)(this,a)}}var N=(0,b.inject)("rootStore","clusterStore")(o=(0,b.observer)(o=(0,S.trigger)((c=function(e){(0,v.default)(r,e);var a=k(r);function r(){var e;(0,p.default)(this,r);for(var t=arguments.length,n=new Array(t),u=0;u0&&void 0!==d[0]?d[0]:{},r=a.silent,n=(0,i.default)(a,["silent"]),u=e.props,l=u.store,c=u.inCluster,r&&(l.list.silent=!0),s=c?"kubesphere.io/gateway-type=".concat(e.props.type):"kubesphere.io/workspace=".concat(e.props.match.params.workspace),t.next=6,l.fetchList(R(R(R({},e.props.match.params),n),{},{labelSelector:s}));case 6:l.list.silent=!1;case 7:case"end":return t.stop()}}),t)}))),e.getGatewayResource=function(t){var a=t.cluster;return e.isProjectGateway?{cluster:a,namespace:t.name.split("kubesphere-router-")[1]}:e.isProjectGateway?void 0:{cluster:a,workspace:t.name.split("kubesphere-router-workspace-")[1]}},e.handleFetch=function(t,a){e.routing.query(R(R({},t),{},{type:e.type}),a)},e.getColumns=function(){var a=e.props.getSortOrder;return[{title:t("NAME"),dataIndex:"name",sorter:!0,sortOrder:a("name"),render:function(t,a){return y.default.createElement(y.default.Fragment,null,y.default.createElement("span",{style:{fontWeight:700,cursor:"auto",marginRight:"4px"}},t),e.renderDisabledTip(a))}},{title:t("ACCESS_MODE"),dataIndex:"type"},{title:t("IP_ADDRESS"),dataIndex:"defaultIngress"},{title:t("NODE_PORTS"),dataIndex:"ports",render:function(e){return(0,S.default)(e)?"-":e.map((function(e){return"".concat(e.name.toUpperCase(),": ").concat(e.nodePort)})).join("/")}},{title:t("REPLICA_COUNT"),dataIndex:"replicas"},{title:t("TRACING"),dataIndex:"serviceMeshEnable",render:function(e){return e?t("ON"):t("OFF")}}]},e}return(0,p.default)(r,[{key:"renderDisabledTip",value:function(e){return e.createTime?null:y.default.createElement(b.Tooltip,{content:t("UPDATE_GATEWAY_DESC"),placement:"top"},y.default.createElement(b.Icon,{size:20,name:"update",color:{primary:"#f5a623 ",secondary:"#ffe1be"}}))}},{key:"render",value:function(){var e=this.props,a=e.tableProps,r=e.type,n=e.inCluster;return y.default.createElement(_.ListPage,(0,l.default)({},this.props,{getData:this.getData,noWatch:!0}),y.default.createElement(E.default,(0,l.default)({},a,{name:"".concat(r.toUpperCase(),"_GATEWAY"),emptyProps:{desc:n?t("ENT_".concat(r.toUpperCase(),"_ENABLE_GATEWAY_DESC")):t("PROJECT_ENABLE_GATEWAY_DESC_WS")},itemActions:this.itemActions,tableActions:this.tableActions,columns:this.getColumns(),onCreate:null,searchType:"name"})))}},{key:"routing",get:function(){return this.props.rootStore.routing}},{key:"isProjectGateway",get:function(){var e=this.props.type;return!e||"project"===e}},{key:"itemActions",get:function(){return[]}},{key:"tableActions",get:function(){return R(R({},this.props.tableProps.tableActions),{},{selectActions:[],onFetch:this.handleFetch})}}]),r}(y.default.Component))||s;a.default=C},4332:function(e,a,r){"use strict";r(15);var n=r(20),u=r(157);r(5),r(4),r(23),r(24),r(17),r(62),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(42),r(4),r(23),r(57),r(24),r(17),r(62);var l,o=n(r(30)),c=n(r(36)),i=n(r(37)),s=n(r(55)),d=n(r(56)),f=n(r(51)),p=r(186),m=r(239),h=n(r(3)),v=u(r(0)),y=r(317),g=r(1076),_=n(r(4333));function E(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,f.default)(e);if(t){var n=(0,f.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,d.default)(this,a)}}var b=(0,m.inject)("rootStore")(l=(0,m.observer)(l=function(e){(0,s.default)(r,e);var a=E(r);function r(){var e;(0,c.default)(this,r);for(var t=arguments.length,n=new Array(t),u=0;u0?e.store.setClusters(a):(r=e.clusterStore.list.data,n=(void 0===r?[]:r).map((function(e){return{name:e.name}})),localStorage.setItem("".concat(globals.user.username,"-observability"),JSON.stringify(n)),e.store.setClusters(n)),u=e.getClustersOriginList(),e.setState({selectedClusterList:u});case 11:case"end":return t.stop()}}),t)}))),e.initData=(0,s.default)(c.default.mark((function t(){return c.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.initClustersList();case 2:case"end":return t.stop()}}),t)}))),e}return(0,f.default)(r,[{key:"getClustersOriginList",value:function(){var e=this.clusterStore.list.data,t=void 0===e?[]:e,a=this.store.clusters,r=void 0===a?[]:a,n=t.filter((function(e){var t=r.filter((function(t){return t.name===e.name}));return!(0,y.default)(t)&&globals.app.hasClusterModule(e.name,"whizard-monitoring")}));if(!(0,y.default)(n)){var u=n.filter((function(e){return e&&e.isHost})),l=n.filter((function(e){return e&&!e.isHost}));return[].concat((0,o.default)(u),(0,o.default)(l))}return[]}},{key:"componentDidMount",value:function(){this.initData()}},{key:"componentWillUnmount",value:function(){this.setState=function(){return!1}}},{key:"render",value:function(){var e=this.clusterStore.list.isLoading,a=this.props.bannerProps;return e?_.default.createElement(v.Loading,{className:"ks-page-loading",size:28,spinning:e}):_.default.createElement(g.Provider,{observabilityStore:this.store},_.default.createElement(E.default,(0,l.default)({},a,{icon:"loudspeaker",title:t("WHIZARD_MONITORING.RESOURCE_RANKING_PL"),description:t("WHIZARD_MONITORING.RESOURCE_RANKING_DESC")})),_.default.createElement(T.default,{clusterList:this.state.selectedClusterList,type:this.state.resourceType,showCustomPanelModal:this.showCustomPanelModal}),_.default.createElement(C.default,{visible:this.state.customPanelModalVisible,onOk:this.setClusters,onCancel:this.hideCustomPanelModal,clusters:this.store.clusters}))}}]),r}(_.Component))||i)||i)||i;a.default=P},4335:function(e,a,r){"use strict";var n=r(20);r(12),r(5),r(11),r(6),r(84),r(86),r(73),r(18),r(48),r(16),r(9),r(13),r(10),r(4),r(22),r(23),r(17),r(85),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(45),r(5),r(11),r(6),r(84),r(86),r(73),r(18),r(28),r(48),r(42),r(16),r(34),r(15),r(9),r(13),r(10),r(4),r(22),r(23),r(57),r(17),r(85),r(7);var u,l,o,c,i,s,d,f=n(r(61)),p=n(r(30)),m=n(r(65)),h=n(r(36)),v=n(r(37)),y=n(r(88)),g=n(r(55)),_=n(r(56)),E=n(r(51)),b=n(r(49)),S=(n(r(66)),r(186)),O=n(r(3)),R=n(r(788)),T=n(r(846)),C=n(r(1047)),A=n(r(886)),P=n(r(987)),k=n(r(158)),N=r(14),D=r(239),w=n(r(0)),L=n(r(4336)),I=n(r(1209)),M=n(r(1401)),j=n(r(1211)),x=r(52),U=r(72),V=r(794),G=r(4337),F=n(r(4340)),Y=n(r(4341));function H(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function B(e){for(var t=1;t0||a.indexOf("used_requests")>0)&&(r=(0,k.default)(u)||""===u?"N/A":""),!r){var l=U.MONITOR_RANK_UNIT_MAP[a],o=null!=u?u:0;"%"===l?r="".concat((0,V.getValueByUnit)(o,l),"%"):""===l?r=Math.round(100*o)/100:(n=(0,V.getSuitableUnit)(o,l),r=(0,V.getValueByUnit)(o,n))}return"".concat("gpu"===n?"".concat(r," GPU"):"core"===n?t("VALUE_CORES",{value:r}):t("VALUE_UNIT",{value:r,unit:n}))},e.renderQos=function(e){return w.default.createElement(w.default.Fragment,null,e.qos_class&&w.default.createElement(S.Tooltip,{content:U.COLOR_QOS[e.qos_class].label},w.default.createElement("span",{style:{display:"inline-block",marginRight:"4px",width:"16px",height:"16px",lineHeight:"16px",textAlign:"center",borderRadius:"2px",color:U.COLOR_QOS[e.qos_class].color,background:U.COLOR_QOS[e.qos_class].background}},e.qos_class.slice(0,1).toUpperCase())))},e.fetchRankData=function(t){e.store.fetchAll(B(B({},t),e.resourcesParams))},(0,m.default)(e,"onChange",i,(0,y.default)(e)),(0,m.default)(e,"handleColumnsHide",s,(0,y.default)(e)),(0,m.default)(e,"handleRefresh",d,(0,y.default)(e)),e}return(0,v.default)(r,[{key:"componentDidMount",value:function(){var e=this.props.clusterList;e&&e.length>0&&this.fetchRankData()}},{key:"componentDidUpdate",value:function(e){e.clusterList!==this.props.clusterList&&this.fetchRankData()}},{key:"renderTop",value:function(){var e=this.props.showCustomPanelModal;return w.default.createElement("div",{className:Y.default.topWrapper},w.default.createElement("div",{className:Y.default.titleWrapper},t("WHIZARD_MONITORING.RESOURCE_RANKING_PL")),w.default.createElement(S.Button,{type:"control",icon:"layout",iconType:"light",className:Y.default.mainFilterClusterButton,onClick:e},t("SELECT_CLUSTER")))}},{key:"renderToolbar",value:function(){return w.default.createElement("div",{className:(0,O.default)(Y.default.toolbar,Y.default.pane__toolbar,Y.default.pane)},w.default.createElement(S.RadioGroup,{wrapClassName:"radio-group-button",value:this.type,onChange:this.onChange,disabled:this.store.isLoading},w.default.createElement(S.RadioButton,{value:"cluster"},t("CLUSTER_PL")),w.default.createElement(S.RadioButton,{value:"node"},t("NODE_PL")),w.default.createElement(S.RadioButton,{value:"project"},t("PROJECT_PL")),w.default.createElement(S.RadioButton,{value:"pod"},t("POD_PL"))),w.default.createElement("div",{className:Y.default.toolbar_filter},w.default.createElement(S.Button,{type:"flat",icon:"refresh",onClick:this.handleRefresh,"data-test":"table-refresh"}),w.default.createElement(C.default,{className:Y.default.columnMenu,title:t("CUSTOM_COLUMNS"),columns:this.columns,value:(0,N.toJS)(this.hideColumns),onChange:this.handleColumnsHide}),w.default.createElement(S.Select,{value:this.store.sort_metric,onChange:this.store.changeSortMetric,options:this.options,disabled:this.store.isLoading}),w.default.createElement(S.Select,{className:Y.default.sortTypeSelect,value:this.store.sort_type,onChange:this.store.changeSortType,disabled:this.store.isLoading,options:[{value:"desc",label:t("SORT_BY_DESC")},{value:"asc",label:t("SORT_BY_ASC")}]})))}},{key:"renderList",value:function(){var e=this.store.data.toJS().map((function(e){return B(B({},e),{},{id:(0,G.v4)()})}));return w.default.createElement("div",{className:Y.default.listContainer},w.default.createElement(P.default,{columns:this.filteredColumns,dataSource:e,emptyText:w.default.createElement(T.default,null),loading:this.store.isLoading,store:this.store,rowKey:"id"}),this.renderPagination())}},{key:"renderPagination",value:function(){var e=this,t=this.store,a=t.page,r=t.total,n=t.limit;return w.default.createElement("div",{className:(0,O.default)(Y.default.pane,Y.default.pane__pagination)},w.default.createElement(A.default,{page:a,total:r,limit:n,onChange:function(t){e.store.changePagination(t,e.resourcesParams)}}))}},{key:"render",value:function(){return w.default.createElement("div",{className:Y.default.wrapper},this.renderTop(),this.renderToolbar(),this.renderList())}},{key:"store",get:function(){return this.sourceMap[this.type].store}},{key:"clusters",get:function(){var e;return null===(e=this.props.clusterList.map((function(e){return e&&e.name})))||void 0===e?void 0:e.join("|")}},{key:"options",get:function(){var e=this,a=this.sourceMap[this.type].name;return this.store.sort_metric_options.filter((function(t){return!(0,N.toJS)(e.hideColumns).includes("".concat(t,"-").concat(a))})).map((function(e){return{value:e,label:t("SORT_BY_".concat(e.toUpperCase()))}}))}},{key:"columns",get:function(){var e,a=this,r=this.sourceMap[this.type],n=r.store,u=r.name,l=r.icon,o=r.url,c=null===(e=n.sort_metric_options)||void 0===e?void 0:e.map((function(e){return{key:"".concat(e,"-").concat(u),sort_metric:e,title:t("".concat(U.MONITOR_RANK_METERIC_LOCALS[e],"_TCAP")),isHideable:!0,render:function(t){return w.default.createElement("div",null,w.default.createElement("h3",null,a.transData(t,e)))}}})),i=[{title:t("namespace"===u?"PROJECT":u.toUpperCase()),width:"15%",key:u,render:function(e){var r,n;if("cluster"===u){var c,i,s,d=null!==(c=null===(i=a.props.clusterList)||void 0===i||null===(s=i.filter((function(t){return t.name===e.cluster})))||void 0===s?void 0:s[0])&&void 0!==c?c:{};n=U.CLUSTER_PROVIDER_ICON[d.provider]||"kubernetes",r=d.isHost?t("HOST_CLUSTER_SCAP"):t("MEMBER_CLUSTER_SCAP")}else{var f;r="".concat(t("CLUSTER_PL"),": ").concat(null!==(f=(0,x.showNameAndAlias)(null==e?void 0:e.cluster,"cluster",{},!0,(function(){return a.forceUpdate()})))&&void 0!==f?f:"-"),n=l}var p=a.renderQos(e),m="namespace"===u?w.default.createElement(F.default,{data:e}):"cluster"===u?(0,x.showNameAndAlias)(null==e?void 0:e[u],"cluster",{},!0,(function(){return a.forceUpdate()})):null==e?void 0:e[u];return w.default.createElement(R.default,{className:Y.default.avatar,icon:n,title:w.default.createElement(w.default.Fragment,null,p,(0,x.getDomTitle)(m)),desc:(0,x.getDomTitle)(r),iconSize:40,to:o(null==e?void 0:e[u],null==e?void 0:e.cluster,null==e?void 0:e.namespace)})}}];return(0,x.hideGPUByLicense)([].concat(i,(0,f.default)(c)))}},{key:"filteredColumns",get:function(){var e=this;return this.columns.filter((function(t){return!e.hideColumns.includes(t.key||t.dataIndex)}))}},{key:"resourcesParams",get:function(){return"cluster"===this.type?{resources_filter:this.clusters}:{cluster_resources_filter:this.clusters}}}]),r}(w.default.Component),o=(0,b.default)(l.prototype,"type",[N.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return this.props.type?"namespace"===this.props.type?"project":this.props.type:"cluster"}}),c=(0,b.default)(l.prototype,"hideColumns",[N.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),i=(0,b.default)(l.prototype,"onChange",[N.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(t){e.store.sort_metric=e.store.sort_metric_options[0],e.hideColumns=[],new Promise((function(a){e.type=t,a()})).then((function(){e.fetchRankData()}))}}}),s=(0,b.default)(l.prototype,"handleColumnsHide",[N.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(t){e.hideColumns=t;var a=e.sourceMap[e.type].name;if(t.includes("".concat(e.store.sort_metric,"-").concat(a))){var r,n=e.store.sort_metric_options.filter((function(e){return!t.includes("".concat(e,"-").concat(a))}));e.store.changeSortMetric(null!==(r=n[0])&&void 0!==r?r:"")}}}}),d=(0,b.default)(l.prototype,"handleRefresh",[N.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(){e.store.changePagination({page:1,limit:10},e.resourcesParams)}}}),u=l))||u)||u;a.default=q},4336:function(e,t,a){"use strict";a(15);var r=a(20);a(73),a(4),a(23),a(17),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(45),a(73),a(42),a(4),a(23),a(57),a(17);var n,u,l=r(a(65)),o=r(a(36)),c=r(a(88)),i=r(a(55)),s=r(a(56)),d=r(a(51)),f=r(a(49)),p=(r(a(66)),a(14)),m=a(52),h=r(a(1210));function v(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,d.default)(e);if(t){var n=(0,d.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,s.default)(this,a)}}var y=["cluster_cpu_usage","cluster_cpu_utilisation","cluster_memory_usage_wo_cache","cluster_memory_utilisation","cluster_gpu_usage","cluster_gpu_memory_usage","cluster_disk_size_usage","cluster_disk_size_utilisation","cluster_pod_count","cluster_pod_utilisation"],g=["cluster_cpu_usage","cluster_cpu_utilisation","cluster_memory_usage_wo_cache","cluster_memory_utilisation","cluster_gpu_usage","cluster_gpu_memory_usage","cluster_disk_size_usage","cluster_disk_size_utilisation","cluster_pod_count","cluster_pod_utilisation"],_=(n=function(e){(0,i.default)(a,e);var t=v(a);function a(e){var r;return(0,o.default)(this,a),r=t.call(this,e),(0,l.default)(r,"sort_metric",u,(0,c.default)(r)),r.resource="clusters",r.sort_metric_options=(0,m.hideGPUByLicense)(y,r.cluster),r.metrics_filter=(0,m.hideGPUByLicense)(g,r.cluster).join("|"),r}return a}(h.default),u=(0,f.default)(n.prototype,"sort_metric",[p.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return y[0]}}),n);t.default=_},4340:function(e,t,a){"use strict";a(15);var r=a(20);a(31),a(16),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(31),a(16),a(4);var n=r(a(26)),u=r(a(0)),l=a(52),o=a(147),c=a(143),i=function(e){var t,a=e.data,r=void 0===a?{}:a;(0,c.useEventValue)(c.eventKeys.PROJECT_ITEM_CHANGE(r.namespace,r.cluster));var i=(0,n.default)(globals,"clusterProjectArray.".concat(r.cluster),[]).find((function(e){return r.namespace&&e.name===r.namespace}));return u.default.useEffect((function(){void 0===i&&o.eventBus.emit(c.eventKeys.requestAlias,{type:"project",params:{project:r.namespace,cluster:r.cluster}})}),[i]),(0,l.getDomTitle)(i?(0,l.getDisplayNameNew)(i):null!==(t=r.namespace)&&void 0!==t?t:"")};t.default=i},4341:function(e,t,a){e.exports={wrapper:"_3ApczdMf7j2uneTe2JGYhg",pane:"_3mbsKDk2kd11c9cfQjugZ6",pane__toolbar:"ltP4CEt8mymYRRT376qA-",title:"_3YhlPpJlvBKRdktHH-U1Bm",toolbar:"BtUrBQAOcPmFDbxZtn-WP",toolbar_buttons:"rBe1G0hiL9dSJRzNopOLY",toolbar_filter:"_2wEohvRkRnx1albThDzsmI",sortTypeSelect:"_2JiV45cgCQsYGRSS-XdjqR",sort_button:"upaGBQC-LyOMeHZRgUZoL",table:"_3_F7HRb-lHLYKEGnX7yjac",table_rank:"_22z8nWky5VNyXSk3K0UY-V",table_no_border:"_3BG_gTrG3w0kDAB_M06nhn",rankList_row:"_3OEoJlVN4Dyi5CEzkUjRbn",rankCol:"_2gr99clhZUVecFKrvnd-Hs",listContainer:"LG5IDGpgF8H2hMp0RbAU7",pane__pagination:"_3ekfhOsTLWYfIT0Aig-3kU",avatar:"_1BvPHiYQDEe03j5JCADESu",topWrapper:"D5uibtZo2AmnO5agkiJMS",titleWrapper:"Tuiyfc6XumfrbMbO6ufv1"}},4342:function(e,t,a){e.exports={clusterCard:"_2d7-7Gav8A5pdolAfGc3RO"}},4343:function(e,a,r){"use strict";r(15);var n=r(20),u=r(157);r(5),r(11),r(29),r(73),r(18),r(16),r(4),r(22),r(23),r(17),r(38),r(32),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(11),r(29),r(73),r(18),r(191),r(42),r(16),r(159),r(4),r(22),r(23),r(57),r(17),r(38),r(32);var l=n(r(30)),o=n(r(61)),c=n(r(43));r(41);var i,s=n(r(44)),d=n(r(36)),f=n(r(37)),p=n(r(55)),m=n(r(56)),h=n(r(51)),v=r(186),y=n(r(63)),g=r(239),_=u(r(0)),E=n(r(1237)),b=n(r(438)),S=n(r(945)),O=n(r(883)),R=n(r(4344)),T=n(r(439)),C=n(r(445)),A=r(52),P=r(791),k=n(r(3)),N=n(r(4345)),D=n(r(4351)),w=n(r(1869)),L=n(r(4358)),I=n(r(4360)),M=n(r(4362)),j=n(r(4366));function x(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,h.default)(e);if(t){var n=(0,h.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,m.default)(this,a)}}var U=(0,g.inject)("rootStore")(i=(0,g.observer)(i=(0,P.trigger)(i=function(e){(0,p.default)(r,e);var a=x(r);function r(){var e;(0,d.default)(this,r);for(var t=arguments.length,n=new Array(t),u=0;u0?e.store.setClusters(a):(r=e.clusterStore.list.data,n=(void 0===r?[]:r).map((function(e){return{name:e.name}})),localStorage.setItem("".concat(globals.user.username,"-observability"),JSON.stringify(n)),e.store.setClusters(n)),u=e.getClustersOriginList(),e.setState({selectedClusterList:u});case 11:case"end":return t.stop()}}),t)}))),e.getAlert=(0,s.default)(c.default.mark((function t(){var a,r,n,u;return c.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.hasAlerting){t.next=2;break}return t.abrupt("return");case 2:return a=e.state.selectedClusterList.map((function(e){return e.name})).join("|"),r=e.clusterStore.list.data,n=void 0===r?[]:r,t.next=6,e.alertStore.fetchList({limit:5,label_matcher:'{cluster=~"'.concat(a,'",severity=~"warning|error|critical"}'),allBuiltin:!0,sortBy:"activeAt"});case 6:u=t.sent,e.setState({alerts:u,originClusterList:n});case 8:case"end":return t.stop()}}),t)}))),e.initData=(0,s.default)(c.default.mark((function t(){return c.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.initClustersList();case 2:return t.next=4,Promise.all([e.store.getBaseResourcesSummary(),e.store.fetchAllMetricsData(),e.store.fetchRoleAndMember(),e.tagsStore.fetchGroupList(),e.store.fetchAlertData(),e.getAlert()]);case 4:case"end":return t.stop()}}),t)}))),e.handleClusterList=function(){e.setState({isHideClusterList:!e.state.isHideClusterList})},e}return(0,f.default)(r,[{key:"getClustersOriginList",value:function(){var e=this.clusterStore.list.data,t=void 0===e?[]:e,a=this.store.clusters,r=void 0===a?[]:a,n=t.filter((function(e){var t=r.filter((function(t){return t.name===e.name}));return!(0,y.default)(t)}));if(!(0,y.default)(n)){var u=n.filter((function(e){return e&&e.isHost})),l=n.filter((function(e){return e&&!e.isHost}));return[].concat((0,o.default)(u),(0,o.default)(l))}return[]}},{key:"componentDidMount",value:function(){this.initData()}},{key:"componentWillUnmount",value:function(){this.setState=function(){return!1}}},{key:"render",value:function(){var e=this,a=this.clusterStore.list.isLoading,r=this.state.isHideClusterList;return a?_.default.createElement(v.Loading,{className:"ks-page-loading",size:28,spinning:a}):_.default.createElement(g.Provider,{observabilityStore:this.store},_.default.createElement("div",{className:(0,k.default)(j.default.contentWrapper,(0,l.default)({},j.default.collapse,r))},_.default.createElement("div",{className:j.default.rightWrapper},_.default.createElement("div",{className:j.default.mainTitleWrapper},_.default.createElement("h3",{className:j.default.mainTitle},t("OVERVIEW")),_.default.createElement("div",{className:j.default.mainButtonWrapper},_.default.createElement(v.Button,{className:j.default.clusterListButton,onClick:this.handleClusterList},_.default.createElement("img",{src:"/assets/whizard-telemetry-left.svg",alt:""}),t(r?"WHIZARD_MONITORING.UNFOLD_CLUSTER_LIST":"WHIZARD_MONITORING.COLLAPSE_CLUSTER_LIST")),_.default.createElement(v.Button,{type:"control",icon:"layout",iconType:"light",className:j.default.mainFilterClusterButton,onClick:this.showCustomPanelModal},t("SELECT_CLUSTER")),_.default.createElement(v.Tooltip,{content:t("COMPONENT_PARAMETER_CONFIG"),placement:"topLeft"},_.default.createElement(v.Button,{type:"control",iconType:"light",className:j.default.mainWhizardSettingButton,icon:"cogwheel",onClick:this.showWhizardConfigModal})))),_.default.createElement(I.default,{resources:this.store.baseResourcesSummary,showResourceRankModal:this.showRankModal}),_.default.createElement("div",{className:j.default.customWrapper},_.default.createElement(D.default,{monitorData:this.store.monitorData}),this.hasAlerting&&_.default.createElement(N.default,{resources:this.store.alertData,alerts:this.state.alerts,originClusterList:this.state.originClusterList}),_.default.createElement(L.default,null))),_.default.createElement("div",{className:j.default.clustersListWrapper},_.default.createElement("div",{className:j.default.clustersListHeader},_.default.createElement("p",null,t("CLUSTER_PL")),_.default.createElement("div",{className:j.default.clusterShowTypeTabs},_.default.createElement(v.RadioGroup,{mode:"button",buttonWidth:32,value:this.state.gridType,onChange:this.handleGridType},_.default.createElement(v.RadioButton,{value:"row",key:"row"},_.default.createElement(v.Icon,{name:"grid-row",size:16})),_.default.createElement(v.RadioButton,{value:"list",key:"list"},_.default.createElement(v.Icon,{name:"grid-list",size:16}))))),_.default.createElement("div",{className:j.default.clustersList},this.state.selectedClusterList.map((function(t){return _.default.createElement(M.default,{key:t.uid,gridType:e.state.gridType,tagGroupList:e.tagsStore.tags,clusterDetail:t})}))))),_.default.createElement(w.default,{visible:this.state.customPanelModalVisible,onOk:this.setClusters,onCancel:this.hideCustomPanelModal,clusters:this.store.clusters}))}},{key:"hasAlerting",get:function(){return globals.app.hasKSModule("whizard")&&globals.app.hasKSModule("whizard-alerting")}}]),r}(_.Component))||i)||i)||i;a.default=U},4344:function(e,t,a){"use strict";a(15);var r=a(20);a(5),a(16),a(9),a(4),a(22),a(196),a(23),a(17),a(110),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(45),a(5),a(42),a(16),a(9),a(4),a(22),a(196),a(23),a(57),a(17),a(110);var n=r(a(43));a(41);var u,l,o,c,i,s,d=r(a(44)),f=r(a(65)),p=r(a(36)),m=r(a(37)),h=r(a(88)),v=r(a(55)),y=r(a(56)),g=r(a(51)),_=r(a(49)),E=(r(a(66)),a(14)),b=a(52);function S(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,g.default)(e);if(t){var n=(0,g.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,y.default)(this,a)}}var O=(u=function(e){(0,v.default)(u,e);var t,a,r=S(u);function u(){var e;(0,p.default)(this,u);for(var t=arguments.length,a=new Array(t),n=0;n0)){t.next=3;break}return t.next=3,e.monitorStore.fetchPodData(C(C(C({metrics:Object.values(P)},a),e.state.params),{},{resources:e.resourcesParam,fillZero:!0}));case 3:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),e.getValue=function(e){return parseFloat((0,E.default)(e,"value[1]",0))},e.renderChartTitle=function(e){var a=e.icon,r=e.used,n=e.title;return h.default.createElement("div",{className:R.default.chartTitle},h.default.createElement(y.Icon,{name:a,size:42}),h.default.createElement("div",{className:R.default.chartInfo},h.default.createElement("p",null,r),h.default.createElement("p",null,t(n))))},e.renderTooltipQos=function(){var e=h.default.createElement("div",{className:R.default.qosContent},h.default.createElement("p",null,t.html("QOS_GUARANTEED")),h.default.createElement("br",null),h.default.createElement("p",null,t.html("QOS_BURSTABLE")),h.default.createElement("br",null),h.default.createElement("p",null,t.html("QOS_BESTEFFORT")));return h.default.createElement(y.Tooltip,{content:e},h.default.createElement(y.Icon,{name:"question",size:16}))},e}return(0,d.default)(r,[{key:"componentDidMount",value:function(){var e=this;this.dispose=(0,O.reaction)((function(){return e.monitorStore.clusters}),(function(){e.fetchData()}))}},{key:"componentWillUnmount",value:function(){this.dispose&&this.dispose()}},{key:"renderChart",value:function(e){var a=(0,S.getAreaChartOps)(e);return(0,b.default)(a.data)?h.default.createElement("p",{className:R.default.noData},t("NO_DATA")):h.default.createElement(g.MediumArea,(0,u.default)({},a,{noTitle:!0,top:4,height:48,width:"100%",key:e.title}))}},{key:"renderPie",value:function(e){return h.default.createElement(g.MultiPie,{legendClassName:R.default.legendClassName,dataList:e.dataList,wrapperStyle:{display:"flex",left:"166px",justifyContent:"space-between",width:"calc(100% - 166px)"}})}},{key:"render",value:function(){var e=this,a=this.monitorStore.PodData.isLoading;return h.default.createElement("div",{className:R.default.container},h.default.createElement("div",{className:R.default.header},h.default.createElement("div",{className:R.default.title},t("POD_PL"))),h.default.createElement(y.Loading,{spinning:a},h.default.createElement("div",{className:R.default.flexcontainer},h.default.createElement("div",{className:(0,_.default)(R.default.chartbox,R.default.status)},h.default.createElement("div",{className:R.default.chartbox},this.renderPieOption.map((function(a,r){var n=a.dataList.every((function(e){return e.data.every((function(e){return 0===e.value}))}));return h.default.createElement("div",{className:(0,_.default)(R.default.item_pie,R.default.item),key:r},h.default.createElement("div",{className:R.default.pie_title},t(a.title),h.default.createElement("span",{className:R.default.pie_title_tooltip},"QoS"===a.title&&e.renderTooltipQos())),h.default.createElement("div",{className:R.default.pie_box},n?h.default.createElement("div",{className:R.default.pieNoData},h.default.createElement("img",{src:"/assets/doughnut_chart_duotone.svg"}),h.default.createElement("p",null,t("NO_DATA"))):h.default.createElement(h.default.Fragment,null,e.renderPie(a),h.default.createElement("div",{className:R.default.summary},h.default.createElement("p",null,a.total),h.default.createElement("p",null,t("ALL"))))))})))),h.default.createElement("div",{className:(0,_.default)(R.default.chartbox,R.default.right)},this.renderChartOption.map((function(t,a){return h.default.createElement("div",{className:(0,_.default)(R.default.item,R.default.areaChartItem),key:a},e.renderChartTitle(t),h.default.createElement("div",{className:R.default.chartBox},e.renderChart(t)))}))))))}},{key:"resourcesParam",get:function(){return this.monitorStore.clusters.map((function(e){return e.name}))}},{key:"metrics",get:function(){return(0,O.toJS)(this.monitorStore.PodData.data)}},{key:"renderChartOption",get:function(){var e=(0,S.getLastMonitoringData)(this.metrics);return[{category:"oomkilled",title:"OOM_KILL_PODS",icon:"error",unit:"",legend:["OOM_KILL_PODS"],data:(0,E.default)(this.metrics,"".concat(P.oomkilled,".data.result")),used:this.getValue(e[P.oomkilled])},{category:"pending",title:"PENDING_PODS",icon:"history-duotone",unit:"",legend:["PENDING_PODS"],data:(0,E.default)(this.metrics,"".concat(P.pending,".data.result")),used:this.getValue(e[P.pending])},{category:"evict",title:"EVICTED_PODS",unit:"",legend:["EVICTED_PODS"],icon:"logout-right-duotone",data:(0,E.default)(this.metrics,"".concat(P.evict,".data.result")),used:this.getValue(e[P.evict])}]}},{key:"renderPieOption",get:function(){var e=(0,S.getLastMonitoringData)(this.metrics);return[{title:"POD_STATUS",total:this.getValue(e[P.pod_total]),dataList:[{dataKey:"value",innerRadius:45,outerRadius:60,colors:["#55BC8A","#F5A623","#79879C","#CA2621","#E3E9EF","#EFF4F9"],data:[{name:t("RUNNING"),value:this.getValue(e[P.pod_running])},{name:t("PENDING"),value:this.getValue(e[P.pending])},{name:t("WHIZARD_MONITORING.SUCCEEDED"),value:this.getValue(e[P.pod_succeeded])},{name:t("FAILED"),value:this.getValue(e[P.pod_failed])},{name:t("UNKNOWN"),value:this.getValue(e[P.pod_unknown])}]}]},{title:"QoS",total:this.getValue(e[P.pod_total]),dataList:[{dataKey:"value",innerRadius:45,outerRadius:60,colors:["#55BC8A","#329DCE","#F5A623","#EFF4F9"],data:[{name:"Guaranteed",value:this.getValue(e[P.guaranteed])},{name:"Burstable",value:this.getValue(e[P.burstable])},{name:"BestEffort",value:this.getValue(e[P.bestEffort])}]}]}]}}]),r}(h.default.Component))||c)||c;a.default=k},4359:function(e,t,a){e.exports={container:"_2D4npaU7YPDW85p6WP30yH",flexcontainer:"_2uVJNz5stoDHLzHP0buq5_",header:"ltsZCVXPB5UZzjCAPRcQw",title:"_2td8Tc121fajHdAmGHvBMP",chartbox:"ctqOGhoxXWtaCk5EXAOdY",right:"EnM7mjoOWLpXOom0viNTM",status:"_1qTTW8qWoAF0moFN--m0mV",item:"_3WgGEFnsypxwk5HMTLqpDD",chartTitle:"_275-ogpvwB1RsqHVehF6Ag",chartInfo:"_12J2jtb5glzpOFGgfe_iVc",areaChartItem:"_24zAW2fxpY4ZJZzs3txe21",chartBox:"IPLdLnqvv2_Hw9MoWC8dP",noData:"_2fXAWh_sWNspO_WoCRh1nI",item_pie:"_1T2cZyPSuaiId2IsSmh4WY",pie_title:"_32y2_r_5bRr4BzlogH2Wbz",pie_title_tooltip:"_36QWBpykpHp1_oKh0Qm71A",pie_box:"_36YiDQkZcohJwXFM5aNw-S",legendClassName:"_3LsPNKFHkizNWAJdknASqW",pieNoData:"_1DaTmtphwgi5onvXO3fHWF",summary:"_2H7Uj1yZYoyUAQSOhozHEA"}},4360:function(e,a,r){"use strict";r(15);var n=r(20);r(18),r(16),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var u=n(r(30));r(18),r(16);var l=n(r(0)),o=n(r(788)),c=n(r(801)),i=n(r(26)),s=r(14),d=r(186),f=r(239),p=n(r(3)),m=n(r(4361)),h=[{name:"cluster",icon:"cluster",title:"CLUSTER",more:!0},{name:"node",icon:"nodes",title:"NODE",more:!0},{name:"namespace",icon:"project",title:"PROJECT",more:!0},{name:"pod",icon:"pod",title:"POD",more:!0},{name:"deployment",icon:"backup",title:"DEPLOYMENT"},{name:"statefulset",icon:"stateful-set",title:"STATEFULSET"},{name:"daemonset",icon:"deamon-set",title:"DAEMONSET"},{name:"job",icon:"backup",title:"JOB"},{name:"cronjob",icon:"backup",title:"CRONJOB"},{name:"pvc",icon:"storage",title:"PERSISTENT_VOLUME_CLAIM_LOW"},{name:"service",icon:"appcenter",title:"SERVICE"},{name:"ingresses",icon:"loadbalancer",title:"ROUTE"}],v=(0,f.observer)((function(e){var a=e.resources,r=e.showResourceRankModal;return l.default.createElement(c.default,{className:m.default.resourceSummary},l.default.createElement(d.Loading,{spinning:a.isLoading},l.default.createElement("div",{className:m.default.wrapper},h.map((function(e){var n="cluster"===e.name?"clusters_count":"clusters_".concat(e.name,"_count"),c=(0,i.default)((0,s.toJS)(a),"data.".concat(n,".value.[1]"),0);return l.default.createElement("div",{className:(0,p.default)(m.default.wrapperItem,(0,u.default)({},m.default.wrapperItemHover,e.more)),key:e.name,onClick:function(){return e.more?r(e.name):void 0}},l.default.createElement(o.default,{noLink:!0,className:m.default.avatar,icon:e.icon,title:c,desc:t("1"===c?e.title:"".concat(e.title,"_PL")),iconSize:40}))})))))}));a.default=v},4361:function(e,t,a){e.exports={resourceSummary:"_1vcCZdKexNnfXYCBTFN8bI",wrapper:"_3989d40TDMXigrpfsexhb8",wrapperItem:"UvaGsWJ6TKbRJNBNf8sMV",wrapperItemHover:"_34HA-HXRa_aXepjsOCvrEm",avatar:"_1AaN-WlG-N_PXJbZxhDVae"}},4362:function(e,a,r){"use strict";r(15);var n=r(20);r(11),r(31),r(18),r(16),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var u=n(r(30));r(11),r(31),r(18),r(16),r(4);var l=n(r(0)),o=r(72),c=n(r(788)),i=n(r(839)),s=n(r(3)),d=r(186),f=n(r(996)),p=r(924),m=r(52),h=n(r(4363)),v=n(r(4365)),y=function(e){var a,r=e.gridType,n=void 0===r?"row":r,y=e.clusterDetail,g=void 0===y?{}:y,_=e.tagGroupList,E=void 0===_?[]:_,b=o.CLUSTER_PROVIDER_ICON[g.provider]||"kubernetes",S=g.group,O="row"!==n;return l.default.createElement("div",{className:(0,s.default)(v.default.card,(0,u.default)({},"".concat(v.default.grid),O))},l.default.createElement("div",{className:v.default.header},l.default.createElement(l.default.Fragment,null,l.default.createElement(c.default,{className:v.default.headTitle,title:l.default.createElement("div",{className:v.default.avatarTitle},l.default.createElement("span",{className:v.default.avatarText,title:(0,m.showNameAndAlias)(g)},(0,m.showNameAndAlias)(g)),O&&S&&l.default.createElement(d.Tag,{type:o.CLUSTER_GROUP_TAG_TYPE[S]},t("ENV_".concat(S.toUpperCase()),{defaultValue:S}))),desc:l.default.createElement("div",{className:v.default.desc},l.default.createElement("span",{style:{marginRight:"8px"}},g.isHost?t("HOST_CLUSTER"):t("MEMBER_CLUSTER_SCAP")),!g.isReady&&l.default.createElement(f.default,{data:g,placement:"right",tooltipModifiers:{preventOverflow:{enabled:!1}}})),icon:b,iconSize:40,to:g.isReady?"/whizard-telemetry/".concat(g.name,"/overview"):""}),g.isReady&&l.default.createElement(i.default,{className:v.default.indicator,status:"ready"}))),O&&l.default.createElement("div",{className:v.default.content},l.default.createElement("div",{className:v.default.contentItem},l.default.createElement(h.default,{title:t("NODE_COUNT"),desc:g.nodeCount})),l.default.createElement("div",{className:v.default.contentItem},l.default.createElement(h.default,{title:t("KUBERNETES_VERSION"),desc:g.kubernetesVersion})),l.default.createElement("div",{className:v.default.contentItem},l.default.createElement(h.default,{className:v.default.groupTags,title:t("CLUSTER_TAGS"),desc:l.default.createElement(p.ClusterTagGroup,{className:v.default.clusterTagGroup,data:(null!==(a=g.tags)&&void 0!==a?a:[]).map((function(e){return(E||[]).find((function(t){return e.name===t.name}))})).filter(Boolean),empty:"-"})}))))};a.default=y},4363:function(e,t,a){"use strict";a(15);var r=a(20);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(a(0)),u=r(a(3)),l=r(a(4364)),o=function(e){var t=e.title,a=e.desc,r=e.className;return n.default.createElement("div",{className:(0,u.default)(l.default.list,r)},n.default.createElement("div",{className:l.default.title},t),n.default.createElement("div",{className:l.default.desc},a))};t.default=o},4364:function(e,t,a){e.exports={list:"_1uK0REQlYus5fuAKXpZ86o",title:"OZTz0EpZEQuLmF4gvCpay",desc:"_18AbHIvIjaRK9hcaLlM7Ba"}},4365:function(e,t,a){e.exports={card:"_9jy1bJaTQRbsMMrSLjrXO",indicator:"Z_YYhFox6K3PUpA4cJ4oW",desc:"-Mb-U-yGhddZtV4wfS2N6",grid:"_2ClZmeh8HDEDyr796x3LrW",header:"_2JKKgEZVRihBixVXw-HaaG",content:"_3NmZE_Mv_VjwWxuWtoXPpi",contentItem:"_3iFXO8Slenc9ZBXihdia8X",groupTags:"_1VpQB7rxMX-2l2K89r5Ukd",clusterTagGroup:"_1pBblYRwLdwOfj3hOwNgw",avatarTitle:"iwIUC3r14tyi8ueg7dcP3",avatarText:"tWv9SN6Tj0Uh4Xd1qP-J-"}},4366:function(e,t,a){e.exports={contentWrapper:"-OhR4-URU3bA00K1pPm4K",rightWrapper:"_2pwhksJAvsPiuJCUFioxym",clustersListWrapper:"_1QQyhHRsrAxagH8wdVBV1s",collapse:"Hcdo4p6r_SIWCLHGAqVsL",mainTitleWrapper:"_3F0mxApuQXULwkK5ExRaLy",mainButtonWrapper:"_2Does8Ve-5ejbMvw4-6iFV",mainWhizardSettingButton:"_3KgNPr-GnecnByh6vaBk4o",mainFilterClusterButton:"_1MVgm5SuOhvTbgwLvjxh6h",clusterListButton:"_2oH1mGPWgzX-Jukxv-LIwb",clustersListHeader:"A6IJHNjuzW75uJA0C7QSq",clusterShowTypeTabs:"_19FA_uRjrDqa-nAyNmWcrV",customWrapper:"_1TZKMW3yWyo_ZWbsahTrMl",clustersList:"_277Ur4V8ZQzP1eWRAc69Mo"}},4367:function(e,a,r){"use strict";(function(e){var n=r(20),u=r(157);r(12),r(109),r(5),r(187),r(11),r(6),r(84),r(18),r(48),r(16),r(9),r(13),r(10),r(4),r(23),r(24),r(17),r(85),r(62),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(109),r(45),r(5),r(187),r(11),r(6),r(84),r(18),r(28),r(48),r(191),r(42),r(16),r(159),r(34),r(15),r(9),r(13),r(10),r(4),r(22),r(23),r(57),r(24),r(17),r(85),r(62),r(7);var l=n(r(61)),o=n(r(315)),c=n(r(43)),i=n(r(30)),s=n(r(58));r(41);var d,f=n(r(44)),p=n(r(36)),m=n(r(37)),h=n(r(55)),v=n(r(56)),y=n(r(51)),g=u(r(0)),_=r(186),E=n(r(788)),b=n(r(795)),S=n(r(792)),O=u(r(793)),R=n(r(796)),T=n(r(26)),C=n(r(247)),A=r(14),P=r(52),k=r(878),N=r(832),D=n(r(1425)),w=n(r(438)),L=n(r(994)),I=n(r(1870)),M=n(r(1871));function j(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function x(e){for(var t=1;t0&&void 0!==l[0]?l[0]:{},r=a.silent,n=(0,s.default)(a,["silent"]),u=e.props.store,r&&(u.list.silent=!0),t.next=5,u.fetchList(x(x(x({},e.props.match.params),n),{},{builtin:!1}));case 5:return t.next=7,e.props.store.fetchCount();case 7:u.list.silent=!1;case 8:case"end":return t.stop()}}),t)}))),e.getAllCluster=(0,f.default)(c.default.mark((function t(){var a;return c.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.clusterStore.fetchList({limit:-1});case 2:a=t.sent,e.setState({allClusters:a});case 4:case"end":return t.stop()}}),t)}))),e.renderRestCluster=function(t){var a=g.default.createElement("div",{className:M.default.tipClusterList},t.map((function(t,a){return g.default.createElement(L.default,{key:"".concat(t,"-").concat(a),cluster:t,allClusters:e.state.allClusters})})));return g.default.createElement(_.Tooltip,{content:a,placement:"top"},g.default.createElement("span",{className:M.default.restText},t.length))},e.getColumns=function(a){var r=e.props.getFilteredValue;return e.state.allClusters.length>0?[{title:t("NAME"),dataIndex:"name",search:!0,render:function(t,r){return g.default.createElement(E.default,{avatar:"/assets/bell_gear_duotone.svg",title:(0,P.getDisplayName)(r),desc:r.description,className:M.default["table-icon"],to:"builtin"===a?"".concat(e.props.match.url,"/builtin/").concat(t):"".concat(e.props.match.url,"/").concat(t)})}},{title:t("POLICY_STATUS"),dataIndex:"enable",filters:e.getEnableFilter(),filteredValue:r("enable"),isHideable:!0,search:!0,width:"16%",render:function(e,a){return g.default.createElement(b.default,{className:M.default.status_icon,type:JSON.parse(a.enabled)?"active":"disabled",name:JSON.parse(a.enabled)?t("ENABLED"):t("DISABLED")})}},{title:t("RULE_STATUS"),dataIndex:"state",search:!0,filters:e.getStatus(),isHideable:!0,width:"16%",render:function(e,t){return g.default.createElement(I.default,{rulesStats:t.rulesStats})}},{title:t("CLUSTER"),dataIndex:"clusterSelector",isHideable:!0,with:"24.6%",render:function(a,r){var n=(0,T.default)(r,"_originData.spec.rules",[]),u=[];n.forEach((function(e){(0,T.default)(e,"clusterSelector.inValues",[]).length>0&&(u=u.concat(e.clusterSelector.inValues)),"{}"===JSON.stringify(e.clusterSelector)&&(u=u.concat("ALL_CLUSTERS"))}));var l=(0,C.default)(u).slice(0,3),o=(0,C.default)(u).slice(3);return u.length>0?g.default.createElement("div",{className:M.default.clusterLine},l.map((function(a,r){return"ALL_CLUSTERS"===a?g.default.createElement(_.Tag,{type:"secondary"},t("ALL_CLUSTERS")):g.default.createElement(L.default,{key:"".concat(a,"-").concat(r),cluster:a,allClusters:e.state.allClusters})})),o.length>0&&e.renderRestCluster(o)):"-"}},{title:t("RECENT_DETECT_TIME"),dataIndex:"lastEvaluation",isHideable:!0,width:"15.8%",render:function(e,t){var a=(0,T.default)(t._originDataWithStatus,"status.lastEvaluation");return g.default.createElement("span",null,a?(0,P.getLocalTime)(a).format("YYYY-MM-DD HH:mm:ss"):"-")}}]:[]},e.showCreate=function(){var a=e.props,r=a.module,n=a.routing;return e.props.trigger("alerting.multi.policy.create",{module:r,title:t("CREATE_ALERTING_POLICY"),success:n.query})},e}return(0,m.default)(n,[{key:"componentDidMount",value:function(){this.getAllCluster()}},{key:"getStatus",value:function(){return k.ALERTING_STATUS.map((function(e){return{text:"disabled"===e?t("DISABLED"):t("ALERT_RULE_".concat(e.toUpperCase())),value:e}}))}},{key:"getEnableFilter",value:function(){return[{text:t("ENABLED"),value:"true"},{text:t("DISABLED"),value:"false"}]}},{key:"getAlertingTypes",value:function(){return N.SEVERITY_LEVEL.map((function(e){return{text:t(e.label),value:e.value}}))}},{key:"render",value:function(){var e=this.props,a=e.bannerProps,r=e.tableProps,n=this.state.type;return g.default.createElement(O.ListPage,(0,o.default)({},this.props,{getData:this.getData,noWatch:!0}),g.default.createElement(S.default,(0,o.default)({},a,{icon:function(){return g.default.createElement("img",{src:"/assets/bell_gear_duotone.svg"})},tips:this.tips,title:t("CUSTOM_POLICIES"),description:t("ALERTING_POLICY_DESC")})),g.default.createElement(R.default,(0,o.default)({},r,{enabledActions:this.enabledAction,rowKey:"name",itemActions:this.itemActions,columns:this.getColumns(n),tableActions:this.tableActions,onCreate:this.showCreate})))}},{key:"tips",get:function(){return[{title:t("REQUESTS_FOR_PUSH_AN_ALARM_Q"),description:t("REQUESTS_FOR_PUSH_AN_ALARM_A")}]}},{key:"enabledAction",get:function(){var e=this.props.tableProps.enabledActions;return[].concat((0,l.default)(e),["view","manage","create","edit","delete"])}},{key:"itemActions",get:function(){var a=this.props,r=a.trigger,n=a.routing,u=a.match,l=a.name,o=this.state.type;return[{key:"edit",icon:"pen",text:t("EDIT_INFORMATION"),action:"edit",onClick:function(a){r("multi.alerting.baseInfo.edit",{type:o,detail:a,module:e,cluster:u.params.cluster,namespace:u.params.namespace,title:t("EDIT_ALERTING_POLICY"),success:n.query})}},{key:"editYaml",icon:"pen",text:t("EDIT_YAML"),action:"edit",onClick:function(e){return r("multi.alerting.yaml.edit",{type:o,detail:e,cluster:u.params.cluster,namespace:u.params.namespace,title:t("EDIT_ALERTING_POLICY"),success:n.query})}},{key:"editRule",icon:"wrench",text:t("EDIT_ALERT_RULES"),action:"edit",onClick:function(e){r("multi.alerting.rule.edit",{type:o,detail:e,cluster:u.params.cluster,namespace:u.params.namespace,success:n.query})}},{key:"disablePolicy",icon:function(e){return JSON.parse(e.enabled)?"stop":"start"},text:function(e){return JSON.parse(e.enabled)?t("DISABLE"):t("ENABLE")},action:"edit",onClick:function(e){var a=JSON.parse(e.enabled);r(a?"multi.alarm.rule.update":"multi.enable.alarm.rule",{type:o,detail:e,cluster:u.params.cluster,namespace:u.params.namespace,resourceName:l,success:n.query,title:a?t("DISABLE_ALERTING_POLICY"):t("ENABLE_ALERTING_POLICY"),enabled:a})}},{key:"delete",icon:"trash",text:t("DELETE"),action:"delete",onClick:function(e){return r("multi.alerting.rule.delete",{type:o,name:l,cluster:u.params.cluster,namespace:u.params.namespace,detail:e,success:n.query})}}]}},{key:"tableActions",get:function(){var e=this.props,a=e.tableProps,r=e.trigger,n=e.name,u=e.store,o=e.match,c=e.routing,i=this.state.type,s=(0,A.toJS)(u.list.data),d=(0,A.toJS)(u.list.selectedRowKeys),f=s.filter((function(e){return d.includes(e.name)})).every((function(e){return!JSON.parse(e.enabled)})),p=s.filter((function(e){return d.includes(e.name)})).every((function(e){return JSON.parse(e.enabled)}));return x(x({},a.tableActions),{},{selectActions:[].concat((0,l.default)(a.tableActions.selectActions),[{key:"enable",text:t("ENABLE"),action:"edit",disabled:p,onClick:function(){r("enable.alerting.rule",{type:i,resourceName:n,cluster:o.params.cluster,namespace:o.params.namespace,title:t("ENABLE_ALERTING_POLICY"),enabled:!1,success:c.query,batchMode:!0})}},{key:"disable",text:t("DISABLE"),action:"edit",disabled:f,onClick:function(){r("alerting.rule.update",{type:i,resourceName:n,cluster:o.params.cluster,namespace:o.params.namespace,enabled:!0,success:c.query,batchMode:!0})}}])})}},{key:"resetPolicy",get:function(){var e=this.props,a=e.match,r=e.trigger,n=e.routing,u=this.state.type;return{key:"reset",icon:"restart",text:t("RESET"),action:"edit",onClick:function(e){return r("multi.alarm.rule.reset",{type:u,cluster:a.params.cluster,detail:e,success:n.query})}}}}]),n}(g.Component))||d;a.default=V}).call(this,r(138)(e))},4368:function(e,t,a){e.exports={statusBox:"_8xcxT2VIzDPoaNgPkY2_X",tipContent:"_1HlZWaJgV7c_9kKYhh9QyM","li-inactive":"_1m0qWSy0IG9uFNhjT4Acwy","li-pending":"_1NTW6o14KHRl84_frSJ2B2","li-firing":"_3IlHX0t9wMXXZgwBg3d47C","li-disabled":"ZxH2aeUm1la4RPFjAjaMB",pending:"_2NPwcS1Shy5tcQGEgP7sGp",inactive:"cZ4_W2l7CMHagL_GMhiW2",firing:"_1Vo6K4cvYSnqxb_EhlYd-w",disabled:"_1J8ZVk_-XVVJgCn85NBkIJ",iconDisabled:"-UzRfoH0BNxoDI3uOv0r7"}},4369:function(e,a,r){"use strict";(function(e){var n=r(20),u=r(157);r(12),r(109),r(5),r(187),r(11),r(6),r(84),r(18),r(48),r(16),r(9),r(13),r(10),r(4),r(23),r(24),r(17),r(85),r(62),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(109),r(45),r(5),r(187),r(11),r(6),r(84),r(18),r(28),r(48),r(42),r(16),r(34),r(15),r(9),r(13),r(10),r(4),r(22),r(23),r(57),r(24),r(17),r(85),r(62),r(7);var l=n(r(61)),o=n(r(315)),c=n(r(43)),i=n(r(30)),s=n(r(58));r(41);var d,f=n(r(44)),p=n(r(36)),m=n(r(37)),h=n(r(55)),v=n(r(56)),y=n(r(51)),g=u(r(0)),_=n(r(788)),E=n(r(795)),b=n(r(792)),S=u(r(793)),O=r(186),R=n(r(796)),T=n(r(26)),C=n(r(247)),A=r(14),P=r(52),k=r(878),N=r(832),D=n(r(1425)),w=n(r(438)),L=n(r(994)),I=n(r(1870)),M=n(r(1871));function j(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function x(e){for(var t=1;t0&&void 0!==l[0]?l[0]:{},r=a.silent,n=(0,s.default)(a,["silent"]),u=e.props.store,r&&(u.list.silent=!0),t.next=5,u.fetchList(x(x(x({},e.props.match.params),n),{},{builtin:!0}));case 5:return t.next=7,e.props.store.fetchCount();case 7:u.list.silent=!1;case 8:case"end":return t.stop()}}),t)}))),e.getAllCluster=(0,f.default)(c.default.mark((function t(){var a;return c.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.clusterStore.fetchList({limit:-1});case 2:a=t.sent,e.setState({allClusters:a});case 4:case"end":return t.stop()}}),t)}))),e.renderRestCluster=function(t){var a=g.default.createElement("div",{className:M.default.tipClusterList},t.map((function(t,a){return g.default.createElement(L.default,{key:"".concat(t,"-").concat(a),cluster:t,allClusters:e.state.allClusters})})));return g.default.createElement(O.Tooltip,{content:a,placement:"top"},g.default.createElement("span",{className:M.default.restText},t.length))},e.getColumns=function(){var a=e.props.getFilteredValue;return[{title:t("NAME"),dataIndex:"name",search:!0,render:function(t,a){return g.default.createElement(_.default,{avatar:"/assets/bell_gear_duotone.svg",title:(0,P.getDisplayName)(a),desc:a.description,className:M.default["table-icon"],to:"".concat(e.props.match.url,"/").concat(t)})}},{title:t("POLICY_STATUS"),dataIndex:"enable",filters:e.getEnableFilter(),filteredValue:a("enable"),isHideable:!0,search:!0,width:"16%",render:function(e,a){return g.default.createElement(E.default,{className:M.default.status_icon,type:a.enabled&&JSON.parse(a.enabled)?"active":"disabled",name:a.enabled&&JSON.parse(a.enabled)?t("ENABLED"):t("DISABLED")})}},{title:t("RULE_STATUS"),dataIndex:"state",search:!0,filters:e.getStatus(),isHideable:!0,width:"16%",render:function(e,t){return g.default.createElement(I.default,{rulesStats:t.rulesStats})}},{title:t("CLUSTER"),dataIndex:"clusterSelector",isHideable:!0,with:"24.6%",render:function(a,r){var n=(0,T.default)(r,"_originData.spec.rules",[]),u=[];n.forEach((function(e){(0,T.default)(e,"clusterSelector.inValues",[]).length>0&&(u=u.concat(e.clusterSelector.inValues))}));var l=(0,C.default)(u).slice(0,3),o=(0,C.default)(u).slice(3);return u.length>0?g.default.createElement("div",{className:M.default.clusterLine},l.map((function(t,a){return g.default.createElement(L.default,{key:"".concat(t,"-").concat(a),cluster:t,allClusters:e.state.allClusters})})),o.length>0&&e.renderRestCluster(o)):g.default.createElement(O.Tag,{type:"secondary"},t("ALL_CLUSTERS"))}},{title:t("RECENT_DETECT_TIME"),dataIndex:"lastEvaluation",isHideable:!0,width:"15.8%",render:function(e,t){var a=(0,T.default)(t._originDataWithStatus,"status.lastEvaluation");return g.default.createElement("span",null,a?(0,P.getLocalTime)(a).format("YYYY-MM-DD HH:mm:ss"):"-")}}]},e}return(0,m.default)(n,[{key:"componentDidMount",value:function(){this.getAllCluster()}},{key:"getStatus",value:function(){return k.ALERTING_STATUS.map((function(e){return{text:"disabled"===e?t("DISABLED"):t("ALERT_RULE_".concat(e.toUpperCase())),value:e}}))}},{key:"getEnableFilter",value:function(){return[{text:t("ENABLED"),value:"true"},{text:t("DISABLED"),value:"false"}]}},{key:"getAlertingTypes",value:function(){return N.SEVERITY_LEVEL.map((function(e){return{text:t(e.label),value:e.value}}))}},{key:"render",value:function(){var e=this.props,a=e.bannerProps,r=e.tableProps;return g.default.createElement(S.ListPage,(0,o.default)({},this.props,{getData:this.getData,noWatch:!0}),g.default.createElement(b.default,(0,o.default)({},a,{icon:function(){return g.default.createElement("img",{src:"/assets/bell_gear_duotone.svg"})},tips:this.tips,title:t("BUILT_IN_POLICIES"),description:t("ALERTING_POLICY_DESC")})),g.default.createElement(R.default,(0,o.default)({},r,{enabledActions:this.enabledAction,rowKey:"name",itemActions:this.itemActions,columns:this.getColumns(),tableActions:this.tableActions,onCreate:null})))}},{key:"tips",get:function(){return[{title:t("REQUESTS_FOR_PUSH_AN_ALARM_Q"),description:t("REQUESTS_FOR_PUSH_AN_ALARM_A")}]}},{key:"enabledAction",get:function(){var e=[].concat((0,l.default)(this.props.tableProps.enabledActions),["view"]);return e="custom"===this.state.type?[].concat((0,l.default)(e),["manage","create","edit"]):[].concat((0,l.default)(e),["edit"])}},{key:"itemActions",get:function(){var a=this.props,r=a.trigger,n=a.routing,u=a.match,l=a.name,o=this.state.type;return[{key:"edit",icon:"pen",text:t("EDIT_INFORMATION"),action:"edit",onClick:function(a){r("multi.alerting.baseInfo.edit",{type:o,detail:a,module:e,cluster:u.params.cluster,namespace:u.params.namespace,title:t("EDIT_ALERTING_POLICY"),success:n.query})}},{key:"editYaml",icon:"pen",text:t("EDIT_YAML"),action:"edit",onClick:function(e){return r("multi.alerting.yaml.edit",{type:o,detail:e,cluster:u.params.cluster,namespace:u.params.namespace,title:t("EDIT_ALERTING_POLICY"),success:n.query})}},{key:"editRule",icon:"wrench",text:t("EDIT_ALERT_RULES"),action:"edit",onClick:function(e){r("multi.alerting.rule.edit",{type:o,detail:e,cluster:u.params.cluster,namespace:u.params.namespace,success:n.query})}},{key:"disablePolicy",icon:function(e){return JSON.parse(e.enabled)?"stop":"start"},text:function(e){return JSON.parse(e.enabled)?t("DISABLE"):t("ENABLE")},action:"edit",onClick:function(e){var a=JSON.parse(e.enabled);r(a?"multi.alarm.rule.update":"multi.enable.alarm.rule",{type:o,detail:e,cluster:u.params.cluster,namespace:u.params.namespace,resourceName:l,success:n.query,title:a?t("DISABLE_ALERTING_POLICY"):t("ENABLE_ALERTING_POLICY"),enabled:a})}},{key:"reset",icon:"restart",text:t("RESET"),action:"edit",onClick:function(e){return r("multi.alarm.rule.reset",{type:o,cluster:u.params.cluster,detail:e,success:n.query})}}]}},{key:"tableActions",get:function(){var e=this.props,a=e.tableProps,r=e.trigger,n=e.name,u=e.store,o=e.match,c=e.routing,i=this.state.type,s=(0,A.toJS)(u.list.data),d=(0,A.toJS)(u.list.selectedRowKeys),f=s.filter((function(e){return d.includes(e.name)})).every((function(e){return!JSON.parse(e.enabled)})),p=s.filter((function(e){return d.includes(e.name)})).every((function(e){return JSON.parse(e.enabled)}));return x(x({},a.tableActions),{},{selectActions:[].concat((0,l.default)(a.tableActions.selectActions),[{key:"enable",text:t("ENABLE"),action:"edit",disabled:p,onClick:function(){r("enable.alerting.rule",{type:i,resourceName:n,cluster:o.params.cluster,namespace:o.params.namespace,title:t("ENABLE_ALERTING_POLICY"),enabled:!1,success:c.query,batchMode:!0})}},{key:"disable",text:t("DISABLE"),action:"edit",disabled:f,onClick:function(){r("alerting.rule.update",{type:i,resourceName:n,cluster:o.params.cluster,namespace:o.params.namespace,enabled:!0,success:c.query,batchMode:!0})}}])})}}]),n}(g.Component))||d;a.default=V}).call(this,r(138)(e))},4370:function(e,a,r){"use strict";var n=r(20),u=r(157);r(12),r(5),r(11),r(6),r(18),r(16),r(9),r(13),r(10),r(4),r(23),r(24),r(17),r(62),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(45),r(5),r(11),r(6),r(18),r(28),r(42),r(16),r(34),r(15),r(9),r(13),r(10),r(4),r(22),r(23),r(57),r(24),r(17),r(62),r(7);var l=n(r(315)),o=n(r(43));r(41);var c,i=n(r(44)),s=n(r(30)),d=n(r(36)),f=n(r(37)),p=n(r(55)),m=n(r(56)),h=n(r(51)),v=n(r(795)),y=n(r(790)),g=n(r(880)),_=n(r(792)),E=u(r(793)),b=n(r(796)),S=r(832),O=n(r(451)),R=n(r(26)),T=n(r(994)),C=n(r(0)),A=r(433),P=n(r(1237)),k=n(r(438)),N=r(52),D=r(878),w=r(72),L=n(r(1872));function I(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function M(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.cluster,a=e.namespace,r=this.props.match.params,n=r.cluster,u=r.namespace,l=r.workspace;return t=t||n,a=a||u,"".concat(l?"/".concat(l):"","/clusters/").concat(t).concat(a?"/projects/".concat(a):"")}},{key:"getTableProps",value:function(){return{tableActions:M(M({},this.props.tableProps.tableActions),{},{selectActions:[]}),emptyProps:{desc:t("ALERTING_MESSAGE_EMPTY_DESC")}}}},{key:"getAlertingTypes",value:function(){return S.SEVERITY_LEVEL.map((function(e){return{text:t(e.label),value:e.value}}))}},{key:"getStatus",value:function(){return["pending","firing"].map((function(e){return{text:t("ALERT_RULE_".concat(e.toUpperCase())),value:e}}))}},{key:"render",value:function(){var e=this.props,a=e.bannerProps,r=e.tableProps;return C.default.createElement(E.ListPage,(0,l.default)({},this.props,{getData:this.getData,noWatch:!0}),C.default.createElement(_.default,(0,l.default)({},a,{tips:this.tips,icon:"loudspeaker",title:t("WHIZARD_MONITORING.CUSTOM_ALERTING_PL"),description:t("ALERT_MESSAGE_DESC")})),C.default.createElement(b.default,(0,l.default)({},r,this.getTableProps(),{rowKey:"id",itemActions:[],columns:this.getColumns(),onCreate:this.showCreate,showKeywords:!0})))}},{key:"tips",get:function(){return[{title:t("REQUESTS_FOR_TRIGGER_AN_ALARM_Q"),description:t("REQUESTS_FOR_TRIGGER_AN_ALARM_A")}]}}]),r}(C.default.Component))||c;a.default=x},4371:function(e,a,r){"use strict";var n=r(20),u=r(157);r(12),r(5),r(11),r(6),r(18),r(16),r(9),r(13),r(10),r(4),r(23),r(24),r(17),r(62),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(45),r(5),r(11),r(6),r(18),r(28),r(42),r(16),r(34),r(15),r(9),r(13),r(10),r(4),r(22),r(23),r(57),r(24),r(17),r(62),r(7);var l=n(r(315)),o=n(r(43));r(41);var c,i=n(r(44)),s=n(r(30)),d=n(r(36)),f=n(r(37)),p=n(r(55)),m=n(r(56)),h=n(r(51)),v=n(r(795)),y=n(r(790)),g=n(r(880)),_=n(r(792)),E=u(r(793)),b=n(r(796)),S=r(832),O=n(r(451)),R=n(r(26)),T=n(r(994)),C=n(r(0)),A=r(433),P=n(r(1237)),k=n(r(438)),N=r(52),D=r(878),w=r(72),L=n(r(1872));function I(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function M(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.cluster,a=e.namespace,r=this.props.match.params,n=r.cluster,u=r.namespace,l=r.workspace;return t=t||n,a=a||u,"".concat(l?"/".concat(l):"","/clusters/").concat(t).concat(a?"/projects/".concat(a):"")}},{key:"getTableProps",value:function(){return{tableActions:M(M({},this.props.tableProps.tableActions),{},{selectActions:[]}),emptyProps:{desc:t("ALERTING_MESSAGE_EMPTY_DESC")}}}},{key:"getAlertingTypes",value:function(){return S.SEVERITY_LEVEL.map((function(e){return{text:t(e.label),value:e.value}}))}},{key:"getStatus",value:function(){return["pending","firing"].map((function(e){return{text:t("ALERT_RULE_".concat(e.toUpperCase())),value:e}}))}},{key:"render",value:function(){var e=this.props,a=e.match,r=e.bannerProps,n=e.tableProps,u=a.params.namespace;return C.default.createElement(E.ListPage,(0,l.default)({},this.props,{getData:this.getData,noWatch:!0}),C.default.createElement(_.default,(0,l.default)({},r,{tips:this.tips,tabs:u?{}:this.tabs,icon:"loudspeaker",title:t("WHIZARD_MONITORING.BUILT_IN_ALERTING_PL"),description:t("ALERT_MESSAGE_DESC")})),C.default.createElement(b.default,(0,l.default)({},n,this.getTableProps(),{rowKey:"id",itemActions:[],columns:this.getColumns(),onCreate:this.showCreate,showKeywords:!0})))}},{key:"tips",get:function(){return[{title:t("REQUESTS_FOR_TRIGGER_AN_ALARM_Q"),description:t("REQUESTS_FOR_TRIGGER_AN_ALARM_A")}]}}]),r}(C.default.Component))||c;a.default=x},4372:function(e,a,r){"use strict";var n=r(20),u=r(157);r(12),r(5),r(11),r(6),r(18),r(16),r(9),r(13),r(10),r(4),r(23),r(17),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(45),r(5),r(11),r(6),r(18),r(28),r(42),r(16),r(34),r(15),r(9),r(13),r(10),r(4),r(22),r(23),r(57),r(17),r(7);var l=n(r(315)),o=n(r(43));r(41);var c,i,s=n(r(44)),d=n(r(30)),f=n(r(36)),p=n(r(37)),m=n(r(55)),h=n(r(56)),v=n(r(51)),y=n(r(49)),g=n(r(839)),_=n(r(792)),E=r(14),b=u(r(793)),S=n(r(796)),O=r(72),R=r(186),T=n(r(4373)),C=n(r(0)),A=r(433),P=n(r(4375)),k=n(r(438)),N=r(52),D=n(r(936)),w=n(r(4376));function L(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function I(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},a=t.metric_name,r=(0,R.default)(t,"data.result")||[];return r.forEach((function(t,r){var n=e[r]||{},u=(0,R.default)(t,"value",[]),l=(0,R.default)(t,"metric",{});n[a]=u[1],Object.assign(n,l),e[r]=n})),e}),[])},e}return(0,g.default)(r,[{key:"fetchList",value:(t=(0,h.default)(n.default.mark((function e(){var t,a,r,u,c,i,s,d,f,p,m,h,v,y,g,_,E=this,b=arguments;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=b.length>0&&void 0!==b[0]?b[0]:{},a=t.cluster,r=t.pod,u=t.phase,c=t.pod_ip,i=t.node,s=t.namespace,d=t.limit,f=void 0===d?10:d,p=t.page,m=void 0===p?1:p,h=(0,o.default)(t,["cluster","pod","phase","pod_ip","node","namespace","limit","page"]),this.list.isLoading=!0,v={},a&&(v.cluster=a),s&&(v.namespace=s),r&&(v.pod=r),u&&(v.phase=u),c&&(v.pod_ip=c),i&&(v.node=i),(0,C.default)(v)||(h.custom_filter=Object.entries(v).map((function(e){var t=(0,l.default)(e,2),a=t[0],r=t[1];return E.precise.includes(a)?"".concat(a,'="').concat(r,'"'):"".concat(a,'=~".*').concat(r,'.*"')})).join(",")),h.sortBy&&(this.sort_metric=h.sortBy,delete h.sortBy,this.sort_type=void 0===h.ascending?"desc":"asc",delete h.ascending),f!==this.limit&&(this.limit=Number(f)),m!==this.page&&(this.page=Number(m)),y={type:this.rankRequestTag,page:this.page,limit:this.limit,sort_type:this.sort_type,sort_metric:this.sort_metric},e.next=16,(0,A.to)(request.get(this.fetchUrl,(0,T.default)(y,h)));case 16:return g=e.sent,_=this.handleResult(g),this.total=g.total_item,this.list.data=_,this.list.update(N(N({data:_,total:this.total},h),{},{limit:this.limit,page:this.page,isLoading:!1,filters:v})),e.abrupt("return",_);case 22:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})},{key:"apiVersion",get:function(){return"kapis/monitoring.kubesphere.io/v1beta1"}},{key:"precise",get:function(){return["phase"]}},{key:"fetchUrl",get:function(){return"".concat(this.apiVersion,"/pod_metrics")}},{key:"rankRequestTag",get:function(){return"rank"}},{key:"defaultParams",get:function(){return{type:this.rankRequestTag}}}]),r}(r(a(68)).default),i=(0,O.default)(c.prototype,"page",[P.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 1}}),s=(0,O.default)(c.prototype,"limit",[P.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 10}}),d=(0,O.default)(c.prototype,"sort_type",[P.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return"desc"}}),f=(0,O.default)(c.prototype,"cluster",[P.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),p=(0,O.default)(c.prototype,"sort_metric",[P.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return"pod_status_info"}}),(0,O.default)(c.prototype,"fetchList",[P.action],Object.getOwnPropertyDescriptor(c.prototype,"fetchList"),c.prototype),m=(0,O.default)(c.prototype,"changePagination",[P.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(t,a){var r=t.page,n=t.limit;e.page=r,e.limit=n,e.fetchAll(a)}}}),c);t.default=w},4376:function(e,t,a){e.exports={avatar:"_21er6BS9HgiSzfcwvHodAW",icon:"_174me-_OsbOykXwfIqaCc4",indicator:"_3ZFAO1yLYiAVj9XiPPfXX-",title:"nibjOvK-zQ0cBDxKW3lWB",desc:"_2HPKwaweSs8lxYNis-wbOH"}},4377:function(e,a,r){"use strict";var n=r(20);r(12),r(109),r(5),r(11),r(6),r(86),r(48),r(16),r(9),r(13),r(10),r(4),r(23),r(24),r(17),r(62),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(109),r(45),r(5),r(11),r(6),r(86),r(28),r(48),r(42),r(16),r(34),r(15),r(9),r(13),r(10),r(4),r(23),r(57),r(24),r(17),r(62),r(7);var u,l=n(r(315)),o=n(r(61)),c=n(r(30)),i=n(r(36)),s=n(r(37)),d=n(r(55)),f=n(r(56)),p=n(r(51)),m=n(r(0)),h=r(14),v=r(239),y=n(r(26)),g=n(r(63)),_=r(186),E=n(r(795)),b=r(52),S=r(791),O=n(r(1425)),R=n(r(823)),T=n(r(4378)),C=n(r(4384));function A(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function P(e){for(var t=1;t0?"builtin":"custom"}},{key:"listUrl",get:function(){var e=this.type;return"/whizard-telemetry/metrics/alerting/".concat(e,"-rules")}},{key:"routing",get:function(){return this.props.rootStore.routing}},{key:"resetPolicy",get:function(){var e=this,a=this.props.match,r=(0,h.toJS)(this.store.detail);return{key:"reset",icon:"restart",text:t("RESTORE_DEFAULT_POLICY"),action:"edit",onClick:function(){return e.trigger("alerting.rule.reset",{type:e.type,cluster:a.params.cluster,detail:r,success:e.fetchData})}}}}]),r}(m.default.Component))||u)||u)||u;a.default=N},4378:function(e,t,a){"use strict";a(15);var r=a(20);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=a(317),u=r(a(4379)),l=r(a(4382));t.default=function(e){return[{path:"".concat(e,"/rules"),title:"ALERTING_RULE",component:u.default,exact:!0},{path:"".concat(e,"/messages"),title:"ALERTING_MESSAGE_PL",component:l.default,exact:!0},(0,n.getIndexRoute)({path:e,to:"".concat(e,"/rules"),exact:!0})]}},4379:function(e,t,a){"use strict";var r=a(20);a(12),a(5),a(11),a(6),a(86),a(16),a(9),a(13),a(10),a(4),a(23),a(24),a(17),a(62),a(7),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(12),a(45),a(5),a(11),a(6),a(86),a(28),a(42),a(16),a(34),a(15),a(9),a(13),a(10),a(4),a(22),a(23),a(57),a(24),a(17),a(62),a(7);var n=r(a(43));a(41);var u,l=r(a(44)),o=r(a(30)),c=r(a(36)),i=r(a(37)),s=r(a(55)),d=r(a(56)),f=r(a(51)),p=r(a(0)),m=a(14),h=a(239),v=r(a(26)),y=r(a(438)),g=r(a(4380));function _(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function E(e){for(var t=1;t0?"builtin":"custom"}},{key:"rules",get:function(){return(0,m.toJS)((0,v.default)(this.store,"detail._originDataWithStatus.spec.rules",[]))}}]),a}(p.default.Component))||u)||u;t.default=S},4380:function(e,a,r){"use strict";var n=r(20);r(12),r(11),r(6),r(18),r(48),r(9),r(13),r(10),r(4),r(23),r(24),r(17),r(188),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(45),r(11),r(6),r(18),r(28),r(48),r(42),r(34),r(15),r(9),r(13),r(10),r(4),r(23),r(57),r(24),r(17),r(188),r(7);var u,l=n(r(30)),o=n(r(315)),c=n(r(36)),i=n(r(37)),s=n(r(55)),d=n(r(56)),f=n(r(51)),p=n(r(0)),m=n(r(789)),h=r(239),v=r(186),y=r(14),g=n(r(135)),_=n(r(26)),E=n(r(250)),b=r(72),S=n(r(3)),O=n(r(4381)),R=n(r(1873));function T(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function C(e){for(var t=1;t0&&(s=R.default.createElement(R.default.Fragment,null,i.map((function(a,r,u){var l="".concat(e.renderClusterAliasName(a.cluster)," | ").concat(a.names.length);return R.default.createElement("div",{className:A.default.template_deploy,key:"".concat(a.namespace,"_").concat(r),style:{maxWidth:"276px"}},R.default.createElement("div",null,R.default.createElement("span",{key:r,style:{marginBottom:"4px"}},R.default.createElement(O.default,{key:"".concat(a.cluster,"-").concat(r),cluster:a.cluster,allClusters:n,title:l}))),R.default.createElement("span",{className:A.default.deploy_des,style:{marginBottom:r!==u.length-1?"12px":"0px"}},t("NODES_VALUES",{values:a.names.join(",")})))})))),R.default.createElement("div",{className:A.default.nodeList},c.map((function(a,r){var u=R.default.createElement("div",{className:A.default.template_deploy,index:r},R.default.createElement("span",{className:A.default.deploy_des},t("NODES_VALUES",{values:a.names.join(",")}))),l="".concat(e.renderClusterAliasName(a.cluster)," | ").concat(a.names.length);return R.default.createElement(p.Tooltip,{content:u,placement:"right",key:r},R.default.createElement("div",{key:"".concat(a.cluster,"-").concat(r)},R.default.createElement(O.default,{cluster:a.cluster,allClusters:n,title:l})))})),i.length>0&&R.default.createElement(p.Tooltip,{content:s,placement:"right"},R.default.createElement("div",{className:A.default.restItem},i.length)))}var d=(0,E.default)(c,"cluster"),f=null;return(i=Object.entries(d).slice(3)).length>0&&(f=R.default.createElement(R.default.Fragment,null,i.map((function(a,r){var u=(0,o.default)(a,2),c=u[0],i=u[1],s="".concat(e.renderClusterAliasName(c)," | ").concat(i.reduce((function(e,t){return e+t.names.length}),0));return R.default.createElement("div",{className:A.default.template_deploy,key:r,style:{width:"276px"}},R.default.createElement("div",null,R.default.createElement("span",{style:{marginBottom:"4px"},key:"".concat(c,"-").concat(r)},R.default.createElement(O.default,{cluster:c,allClusters:n,title:s}))),i.map((function(e,a,r){return R.default.createElement("div",{className:A.default.template_deploy,key:"".concat(e.cluster,"_").concat(a),style:{marginBottom:a!==r.length-1?"8px":"0px"},index:a},R.default.createElement("div",{className:A.default.title},R.default.createElement("img",{src:"/assets/alarmProject.svg"}),R.default.createElement("span",null,e.namespace)),R.default.createElement("span",{className:A.default.deploy_des},t(w[l],{values:e.names.join(",")})))})))})))),R.default.createElement("div",{className:A.default.nodeList},Object.entries(d).map((function(a,r){var u=(0,o.default)(a,2),c=u[0],i=u[1];if(r>2)return null;var s=i.map((function(e,a){return R.default.createElement("div",{className:A.default.template_deploy,key:a},R.default.createElement("div",{className:A.default.title},R.default.createElement("img",{src:"/assets/alarmProject.svg"}),R.default.createElement("span",null,e.namespace)),R.default.createElement("span",{className:A.default.deploy_des},t(w[l],{values:e.names.join(",")})))})),d="".concat(e.renderClusterAliasName(c)," | ").concat(i.reduce((function(e,t){return e+t.names.length}),0));return R.default.createElement(p.Tooltip,{content:s,placement:"right"},R.default.createElement("span",{key:"".concat(c,"-").concat(r)},R.default.createElement(O.default,{cluster:c,allClusters:n,title:d})))})),i.length>0&&R.default.createElement(p.Tooltip,{content:f,placement:"right"},R.default.createElement("div",{className:A.default.restItem},i.length)))},e.targetContent=function(){return R.default.createElement(R.default.Fragment,null,e.renderTemplateRuleTarget(),R.default.createElement("div",{className:A.default.desc},t("MONITORING_TARGETS")))},e.renderMonitorTarget=function(){return R.default.createElement("div",{className:A.default.target},"Template"===e.ruleType&&e.targetContent())},e.renderTime=function(){var a=e.props.status,r=(0,_.default)(a,"lastEvaluation",!1);return R.default.createElement("div",{className:A.default.timeLabel},R.default.createElement("span",{className:(0,h.default)(A.default.time,(0,l.default)({},A.default.time_white,e.props.isExpand))},r?(0,T.getLocalTime)(r).format("YYYY-MM-DD HH:mm:ss"):"-"),R.default.createElement("div",{className:A.default.desc},t("RECENT_DETECT_TIME")))},e.renderAlertRule=function(){var a="Custom"===e.ruleType;return R.default.createElement("p",null,R.default.createElement("span",{className:A.default.label},a?t("DURATION"):t("TRIGGER_CONDITION"),":"),R.default.createElement("span",null,e.ruleExpr))},e.renderExtraContent=function(){var a=e.props,r=a.rule,n=a.isExpand,u=(0,_.default)(r,"annotations.message",""),o=(0,_.default)(r,"annotations.description","-"),c=""!==u?u:o;return R.default.createElement("div",{className:(0,h.default)(A.default.itemExtra,(0,l.default)({},A.default.itemExtraShow,n))},R.default.createElement("div",{className:A.default.ms_content},e.renderAlertRule(),R.default.createElement("p",null,R.default.createElement("span",{className:A.default.label},t("RULE_EXPRESSION"),":"),R.default.createElement("span",{className:A.default.ruleExpr},r.expr))),R.default.createElement("div",{className:A.default.ms_content},R.default.createElement("p",null,R.default.createElement("span",{className:A.default.label},t("MESSAGE_SUMMARY"),":"),R.default.createElement("span",null,(0,_.default)(r,"annotations.summary",""))),R.default.createElement("p",null,R.default.createElement("span",{className:A.default.label},t("MESSAGE_DETAILS"),":"),R.default.createElement("span",null,c))))},e}return(0,i.default)(r,[{key:"render",value:function(){var e=this.props.isExpand;return R.default.createElement("div",{className:A.default.item},R.default.createElement("div",{className:(0,h.default)(A.default.content,(0,l.default)({},A.default.expanded,e)),onClick:this.handleExpandClick},this.renderHead(),this.renderMonitorTarget(),this.renderTime(),R.default.createElement(p.Icon,{name:"chevron-down",type:e?"light":"",size:20})),this.renderExtraContent())}},{key:"ruleType",get:function(){var e=this.props.rule,t=(0,_.default)(e,"exprBuilder",{});return(0,b.default)(t)?"Custom":"Template"}},{key:"monitorType",get:function(){var e=this.props.rule;return Object.keys((0,_.default)(e,"exprBuilder",{}))[0]}},{key:"severityConfig",get:function(){return y.SEVERITY_LEVEL.map((function(e){return{value:e.value,label:e.label}}))}},{key:"resourceType",get:function(){var e=this.props.rule;return Object.keys(e.exprBuilder)[0]}},{key:"metricThreshold",get:function(){var e=this.props.rule;return(0,_.default)(e.exprBuilder[this.resourceType],"metricThreshold",{})}},{key:"disabled",get:function(){var e=this.props.rule;return JSON.parse((0,_.default)(e,"disable","false"))}},{key:"ruleExpr",get:function(){var e=this.props.rule,a="Custom"===this.ruleType;if(!e.for)return"-";var r=(0,_.default)(e,"for",""),n=r.slice(0,-1);if(a)return t(N[r.slice(-1)],{num:n});var u=Object.keys(this.metricThreshold)[0],l=Object.keys(this.metricThreshold[u])[0],o="".concat(u,":").concat(l),c=g.RESOURCE_METRICS_CONFIG[this.monitorType][o],i=t("".concat(c.label)).replace(/[((]%[))]/g,"").replace(/\s$/,""),s=c.ruleConfig.filter((function(e){return"thresholds"===e.name}))[0].reverser,d=(0,_.default)(e,"exprBuilder.".concat(this.monitorType,".comparator")),f=(0,_.default)(e,"exprBuilder.".concat(this.monitorType,".metricThreshold.").concat(u,".").concat(l)),p=s(Number(f)),m="core"===c.ruleConfig[1].unit?1===p?t("CORE"):t("CORE_PL"):c.ruleConfig[1].unit,h=e.for.slice(0,-1),v=e.for.slice(-1);return"%"===m?t({s:"ALERT_RULE_TEXT_PERCENT_SECOND",m:"ALERT_RULE_TEXT_PERCENT_MINUTE",h:"ALERT_RULE_TEXT_PERCENT_HOUR"}[v],{alterTypeText:i,comparator:d,thresholds:p,durationValue:h}):t({s:"ALERT_RULE_TEXT_SECOND",m:"ALERT_RULE_TEXT_MINUTE",h:"ALERT_RULE_TEXT_HOUR"}[v],{alterTypeText:i,comparator:d,thresholds:p,unit:m,durationValue:h})}},{key:"hasMonitoring",get:function(){var e=this.props.cluster;return globals.app.hasClusterModule(e,"whizard-monitoring")}}]),r}(R.default.Component))||u)||u)||u;a.default=L},4382:function(e,a,r){"use strict";var n=r(20);r(12),r(5),r(11),r(6),r(86),r(18),r(16),r(9),r(13),r(10),r(4),r(23),r(24),r(17),r(62),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(45),r(5),r(11),r(6),r(86),r(18),r(28),r(42),r(16),r(34),r(15),r(9),r(13),r(10),r(4),r(23),r(57),r(24),r(17),r(62),r(7);var u,l=n(r(315)),o=n(r(30)),c=n(r(36)),i=n(r(37)),s=n(r(55)),d=n(r(56)),f=n(r(51)),p=n(r(0)),m=r(239),h=n(r(26)),v=n(r(451)),y=n(r(63)),g=r(433),_=r(186),E=r(52),b=r(72),S=r(878),O=n(r(1237)),R=n(r(789)),T=n(r(790)),C=n(r(880)),A=n(r(873)),P=n(r(3)),k=n(r(4383));function N(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function D(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.cluster,a=e.namespace,r=this.props.match.params,n=r.cluster,u=r.namespace,l=r.workspace;return t=t||n,a=a||u,"".concat(l?"/".concat(l):"","/clusters/").concat(t).concat(a?"/projects/".concat(a):"")}},{key:"render",value:function(){var e=this.store.list,a=e.data,r=e.isLoading,n=e.filters;return p.default.createElement(R.default,{title:t("ALERTING_MESSAGE_PL"),loading:r},(0,y.default)(a)?p.default.createElement("div",null,t("NO_DATA_DESC")):p.default.createElement(p.default.Fragment,null,p.default.createElement(A.default,{className:k.default.table,filters:n,data:a,name:"Alerting Message",rowKey:"alertname",columns:this.getColumns(),selectedRowKeys:[],selectActions:[],hideHeader:!0,hideFooter:!0}),this.renderFooter()))}},{key:"type",get:function(){return this.props.match.url.indexOf("/builtin-rules")>0?"builtin":"custom"}},{key:"pagination",get:function(){var e=this.state;return{page:e.page,limit:e.limit,total:this.store.list.total}}}]),r}(p.default.Component))||u;a.default=L},4383:function(e,t,a){e.exports={table:"_1vpAixev7ywyaYvkOb-WU7",footer:"_2RGm-1sjSUHG6ko6oB_I7z",pageSizeBox:"_2JbO7AjfnztngjQGQlAAXT",pagesize:"p7LH3fXvH5jpWdmeYfpN5",text:"_3H5Otonnxjzg7f7dus0okX",gap:"_1UBboqmAbRbBAG7ME3mNpV",pageSizeMenu:"_34wu7hl_Y7MHVrijhjMRy7",pageSizeMenuitem:"RJ9D5my0ez_JbvHq4QrDL"}},4384:function(e,t,a){e.exports={icon:"_3RlEv5_bvcbFGzuo-Dh4l5"}},778:function(e,t,a){"use strict";a(15);var r=a(20);a(4),a(22),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(29),a(28),a(4),a(22),a(38),a(32);var n=r(a(43));a(41);var u=r(a(44)),l=r(a(96)),o=a(239),c=a(317),i=a(0),s=r(a(4088)),d=(0,o.inject)("rootStore")((function(e){var t=(0,i.useState)(!1),r=(0,l.default)(t,2),o=r[0],d=r[1],f=function(){var t=(0,u.default)(n.default.mark((function t(){var r,u,l,o;return n.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,a.e(17).then(a.t.bind(null,5757,7));case 2:return r=t.sent,u=r.default,l=new u,t.next=7,l.fetchLicenseByLicenses({extensionName:"whizard-monitoring"});case 7:o=t.sent,(null==o?void 0:o.isAuthorized)&&globals.app.hasKSModule("whizard")?d(!0):(d(!1),e.rootStore.routing.push("/"));case 10:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}();return(0,i.useEffect)((function(){return f(),function(){d(!1)}}),[]),o?(0,c.renderRoutes)(s.default):null}));t.default=d}}]); \ No newline at end of file diff --git a/packages/bootstrap/assets/v3dist/11.880206b6bdcc0d39f015.css b/packages/bootstrap/assets/v3dist/11.bf7ba605993b901bf36a.css similarity index 100% rename from packages/bootstrap/assets/v3dist/11.880206b6bdcc0d39f015.css rename to packages/bootstrap/assets/v3dist/11.bf7ba605993b901bf36a.css diff --git a/packages/bootstrap/assets/v3dist/12.cdecb279dd56fda8cee3.css b/packages/bootstrap/assets/v3dist/12.5966b5a4b14231e7fc97.css similarity index 100% rename from packages/bootstrap/assets/v3dist/12.cdecb279dd56fda8cee3.css rename to packages/bootstrap/assets/v3dist/12.5966b5a4b14231e7fc97.css diff --git a/packages/bootstrap/assets/v3dist/12.fca39111c2120037b96f.js b/packages/bootstrap/assets/v3dist/12.f5c735059a38e95eaae3.js similarity index 96% rename from packages/bootstrap/assets/v3dist/12.fca39111c2120037b96f.js rename to packages/bootstrap/assets/v3dist/12.f5c735059a38e95eaae3.js index a4f59d77b24..ff1141d00e1 100644 --- a/packages/bootstrap/assets/v3dist/12.fca39111c2120037b96f.js +++ b/packages/bootstrap/assets/v3dist/12.f5c735059a38e95eaae3.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[12],{1025:function(e,t,a){"use strict";a(15);var r=a(20);a(5),a(6),a(16),a(9),a(4),a(316),a(23),a(17),a(7),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(45),a(5),a(6),a(28),a(442),a(42),a(16),a(9),a(4),a(316),a(22),a(23),a(57),a(17),a(7);var n=r(a(58)),o=r(a(43));a(41);var c,s,l=r(a(44)),i=r(a(61)),u=r(a(65)),d=r(a(36)),f=r(a(37)),p=r(a(88)),m=r(a(55)),h=r(a(56)),v=r(a(51)),g=r(a(49)),_=(r(a(66)),a(14)),y=r(a(60)),E=r(a(26)),b=r(a(63)),S=r(a(74));function O(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,v.default)(e);if(t){var n=(0,v.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,h.default)(this,a)}}var R=(c=function(e){(0,m.default)(g,e);var t,a,r,c,h,v=O(g);function g(){var e;(0,d.default)(this,g);for(var t=arguments.length,a=new Array(t),r=0;r0&&void 0!==arguments[0]?arguments[0]:{};return"".concat(e.apiVersion).concat(e.getPath(t),"/instances").concat(t.dryRun?"?dryRun=All":"")},e.getResourceUrl=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return"".concat(e.apiVersion).concat(e.getPath(t),"/instances")},e.getResult=function(e){var t=(0,y.default)(e)?e:[],a={};return(0,b.default)(t)||t.forEach((function(e){(0,S.default)(e,"data.values[0]",[Math.ceil(Date.now()/1e3),(0,E.default)(e,"data.measurements[0].value")]),a[e.metric_name]=e})),a},e.getRefreshResult=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=(0,_.toJS)(a);return(0,b.default)(r)?t:(Object.values(t).forEach((function(t){var a=(0,E.default)(t,"metric_name"),n=r[a];if(n){var o=(0,E.default)(t,"data.values[0]",[]),c=(0,E.default)(n,"data.values",[]);(0,S.default)(n,"data.values",e.getNewValues(c,o))}})),r)},e.getNewValues=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],a=(0,b.default)(e)?[]:(0,i.default)(e),r=t||[];return(0,b.default)(r)||(a.length>10&&a.shift(),a.push(r)),a},e}return(0,f.default)(g,[{key:"fetchStatistics",value:(h=(0,l.default)(o.default.mark((function e(){var t,a=arguments;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=a.length>0&&void 0!==a[0]?a[0]:{},e.next=3,request.get("".concat(this.apiVersion).concat(this.getPath(t),"/statistics"));case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e,this)}))),function(){return h.apply(this,arguments)})},{key:"offLine",value:(c=(0,l.default)(o.default.mark((function e(t){var a,r,n;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=t.namespace,r=t.instanceId,n=t._originData,(0,S.default)(n,"spec.enabled",!1),e.next=5,request.put(this.getDetailUrl({namespace:a,name:r}),n);case 5:case"end":return e.stop()}}),e,this)}))),function(e){return c.apply(this,arguments)})},{key:"onLine",value:(r=(0,l.default)(o.default.mark((function e(t){var a,r,n;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=t.namespace,r=t.instanceId,n=t._originData,(0,S.default)(n,"spec.enabled",!0),e.next=5,request.put(this.getDetailUrl({namespace:a,name:r}),n);case 5:case"end":return e.stop()}}),e,this)}))),function(e){return r.apply(this,arguments)})},{key:"fetchMetrics",value:(a=(0,l.default)(o.default.mark((function e(t){var a,r,c,s,l,u,d,f,p,m=arguments;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=t.cluster,r=t.namespace,c=t.name,s=t.autoRefresh,l=void 0!==s&&s,u=(0,n.default)(t,["cluster","namespace","name","autoRefresh"]),d=m.length>1&&void 0!==m[1]?m[1]:{},e.next=4,request.get("".concat(this.getDetailUrl({cluster:a,namespace:r,name:c}),"/metrics/collect"),u);case 4:if(f=e.sent,(0,b.default)(d)){e.next=11;break}return e.next=8,request.get("".concat(this.getDetailUrl({cluster:a,namespace:r,name:c}),"/metrics/collect"),d);case 8:p=e.sent,(0,S.default)(p,"[0].metric_name","jvm.memory.used.metaspace"),f=[].concat((0,i.default)(p),(0,i.default)(f));case 11:return f=this.getResult(f),l&&(f=this.getRefreshResult(f,this.metrics)),this.metrics=f,e.abrupt("return",f);case 15:case"end":return e.stop()}}),e,this)}))),function(e){return a.apply(this,arguments)})},{key:"fetchEnv",value:function(e){var t=e.cluster,a=e.namespace,r=e.instanceId;return request.get("".concat(this.getDetailUrl({cluster:t,namespace:a,name:r}),"/env"),{},{},(function(){return{}}))}},{key:"checkHasMetrics",value:(t=(0,l.default)(o.default.mark((function e(t){var a,r,n,c;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=t.cluster,r=t.namespace,n=t.instanceId,e.next=3,request.get("".concat(this.apiVersion).concat(this.getPath({cluster:a,namespace:r}),"/instances/").concat(n,"/metrics"),{},{},(function(){return!1}));case 3:return c=e.sent,e.abrupt("return",!!c);case 5:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})},{key:"apiVersion",get:function(){return"apis/aggregated.springcloud.kubesphere.io/v1alpha1"}}]),g}(r(a(1053)).default),s=(0,g.default)(c.prototype,"metrics",[_.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),(0,g.default)(c.prototype,"fetchStatistics",[_.action],Object.getOwnPropertyDescriptor(c.prototype,"fetchStatistics"),c.prototype),(0,g.default)(c.prototype,"offLine",[_.action],Object.getOwnPropertyDescriptor(c.prototype,"offLine"),c.prototype),(0,g.default)(c.prototype,"onLine",[_.action],Object.getOwnPropertyDescriptor(c.prototype,"onLine"),c.prototype),(0,g.default)(c.prototype,"fetchMetrics",[_.action],Object.getOwnPropertyDescriptor(c.prototype,"fetchMetrics"),c.prototype),(0,g.default)(c.prototype,"fetchEnv",[_.action],Object.getOwnPropertyDescriptor(c.prototype,"fetchEnv"),c.prototype),(0,g.default)(c.prototype,"checkHasMetrics",[_.action],Object.getOwnPropertyDescriptor(c.prototype,"checkHasMetrics"),c.prototype),c);t.default=R},1238:function(e,a,r){"use strict";var n=r(20),o=r(157);r(12),r(5),r(11),r(6),r(84),r(192),r(9),r(13),r(10),r(4),r(23),r(24),r(17),r(85),r(62),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(45),r(5),r(11),r(6),r(84),r(28),r(192),r(42),r(34),r(15),r(9),r(13),r(10),r(4),r(23),r(57),r(24),r(17),r(85),r(62),r(7);var c,s=n(r(315)),l=n(r(30)),i=n(r(36)),u=n(r(37)),d=n(r(55)),f=n(r(56)),p=n(r(51)),m=o(r(0)),h=r(186),v=n(r(792)),g=r(52),_=r(791),y=r(239),E=n(r(961)),b=n(r(26));function S(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function O(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.cluster,a=e.namespace;return"apis/application.kubesphere.io/v1alpha1/watch/manifests?labelSelector=".concat((0,w.joinSelector)({"kubesphere.io/cluster":globals.app.isMultiCluster?t:null,"kubesphere.io/namespace":a}))},e.getWatchUrl=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.name;return"apis/application.kubesphere.io/v1alpha1/watch/manifests/".concat(t)},(0,l.default)(e,"fetchList",_,(0,d.default)(e)),(0,l.default)(e,"fetchDetail",y,(0,d.default)(e)),e.updateDetailService=function(e,t){if(0!==t.length){var a=(0,D.default)(t,"[0]",{});if(e.app_id===L.RadonDBAppId.ClickHouse)e.services=[{label:"READ_AND_WRITE_ADDRESS",value:"http://".concat(a.address),type:a.type},{label:"READ_AND_WRITE_ADDRESS",value:"http://".concat(a.serviceName,".").concat(a.namespace,":").concat(a.tcpPort),type:"ClusterIP"}];else if(e.app_id===L.RadonDBAppId.MySQL||e.app_id===L.RadonDBAppId.PostgreSQL){e.services=[{label:"READ_AND_WRITE_ADDRESS",value:a.address,type:a.type}];var r=(0,D.default)(t,"[1]");r&&e.services.push({label:"READ_ONLY_ADDRESS",value:r.address,type:r.type})}else if(e.app_id===L.RadonDBAppId.Elasticsearch){var n=(0,D.default)(t,"[1]");if(n){var o=[{label:"READ_AND_WRITE_ADDRESS",value:a.address,type:a.type}];o.push({label:"KIBANA_ADDRESS",value:n.address,type:n.type}),e.services=o}}else if(e.app_id===L.RadonDBAppId.RedisSentinel){var c=(0,D.default)(t,"[1]",{});e.services=[{label:"PRIMARY_ADDRESS",value:a.address,type:a.type},{label:"STANDBY_ADDRESS",value:c.address,type:a.type}]}else if(e.app_id===L.RadonDBAppId.RedisCluster){var s=[],l=t.length,i=t[l-1];if(i.serviceName.includes("proxy")?(t.splice(-1,1),l--):i=null,l>2)s=t.filter((function(e){return"NodePort"===e.type})).map((function(e){var t=(0,D.default)(e,'_originData.metadata.labels["statefulset.kubernetes.io/pod-name"]');return{label:["master","leader"].includes(e.role)?"PRIMARY_ADDRESS":"STANDBY_ADDRESS",value:t?"".concat(e.serviceName,".").concat(t,".").concat(e.namespace,".svc:").concat(e.tcpPort):e.address,type:e.type}}));else{var u=(0,D.default)(t,"[1]",{});s=[{label:"PRIMARY_ADDRESS",value:a.address,type:a.type},{label:"STANDBY_ADDRESS",value:u.address,type:a.type}]}i&&s.unshift({label:"READ_AND_WRITE_ADDRESS",value:i.address,type:i.type}),e.services=s}else if(e.app_id===L.RadonDBAppId.Kafka){var d=[{label:"READ_AND_WRITE_ADDRESS",value:a.address,type:a.type||"ClusterIP"}];"NodePort"===a.type&&d.push({label:"READ_AND_WRITE_ADDRESS",value:"".concat(a.serviceName,".").concat(a.namespace,":").concat(a.tcpPort),type:"NodePort"}),e.services=d}else if(e.app_id===L.RadonDBAppId.OpenSearch&&t.length>1){e.services=[{label:"READ_AND_WRITE_ADDRESS",value:a.address,type:a.type}];var f=(0,D.default)(t,"[1]");f&&e.services.push({label:"DASHBOARD_ADDRESS",value:f.address,type:f.type})}else e.services=[{label:"READ_AND_WRITE_ADDRESS",value:a.address,type:a.type||"ClusterIP"}]}else e.services=[]},(0,l.default)(e,"delete",E,(0,d.default)(e)),(0,l.default)(e,"batchDelete",b,(0,d.default)(e)),(0,l.default)(e,"patch",S,(0,d.default)(e)),(0,l.default)(e,"updateVersion",O,(0,d.default)(e)),(0,l.default)(e,"updateShardsCount",R,(0,d.default)(e)),(0,l.default)(e,"updateStorage",A,(0,d.default)(e)),(0,l.default)(e,"updateSpecifications",k,(0,d.default)(e)),e}return(0,u.default)(a,[{key:"getSecretUrl",value:function(e,t,a){return"/api".concat(globals.app.isMultiCluster&&e?"/clusters/".concat(e):"","/v1/namespaces/").concat(t,"/secrets/").concat(a)}},{key:"updateDetail",value:function(e){var t=e.detail,a=e.namespace,r=e.cluster,n=e.workspace;this.detail=H(H(H({},this.detail),K(t,n)),{},{namespace:a,cluster:r})}},{key:"getECKKibanaUrl",value:function(e,t,a){return"/apis".concat(globals.app.isMultiCluster&&e?"/clusters/".concat(e):"","/kibana.k8s.elastic.co/v1/namespaces/").concat(t,"/kibanas").concat(a?"/".concat(a):"")}},{key:"getLogstashUrl",value:function(e,t,a){return"/apis".concat(globals.app.isMultiCluster&&e?"/clusters/".concat(e):"","/opensearch.opster.io/v1/namespaces/").concat(t,"/logstashes").concat(a?"/".concat(a):"")}}]),a}(M.default),_=(0,h.default)(g.prototype,"fetchList",[N.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return(0,s.default)(n.default.mark((function t(){var a,r,s,l,i,u,d,f,p,m,h,v,g,_,y,E=arguments;return n.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=E.length>0&&void 0!==E[0]?E[0]:{},r=a.limit,s=a.page,l=a.workspace,i=a.cluster,u=a.namespace,d=a.more,f=a.status,p=a.reverse,m=(0,c.default)(a,["limit","page","workspace","cluster","namespace","more","status","reverse"]),e.list.isLoading=!0,h={conditions:(0,w.getFilterString)({status:f||e.defaultStatus})},(0,C.default)(m)||(v=(0,w.getFilterString)(m),h.conditions+=v?",".concat(v):""),r!==1/0&&(h.paging="limit=".concat(r||10,",page=").concat(s||1)),t.next=7,request.get((0,U.getManifestApi)({workspace:l,namespace:u,cluster:i}),h);case 7:return g=t.sent,(_=(g.items||[]).map((function(e){return H(H({},K(e,l)),{},{cluster:i})}))).sort((function(e,t){return m.ascending?(0,x.default)(e.creationTimestamp).isSameOrBefore(t.creationTimestamp)?-1:1:(0,x.default)(e.creationTimestamp).isSameOrBefore(t.creationTimestamp)?1:-1})),y=_.map((function(t){return e.serviceStore.fetchList({cluster:i,namespace:u,chi:t.name,app_id:t.app_id})})),t.next=13,Promise.all(y);case 13:return t.sent.forEach((function(t,a){e.updateDetailService(_[a],t)})),Object.assign(e.list,{data:d?[].concat((0,o.default)(e.list.data),(0,o.default)(_)):_,total:g.total_count||_.length,limit:Number(r)||10,page:Number(s)||1,reverse:p,filters:m,isLoading:!1,selectedRowKeys:[]}),t.abrupt("return",_);case 17:case"end":return t.stop()}}),t)})))}}),y=(0,h.default)(g.prototype,"fetchDetail",[N.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(){var t=(0,s.default)(n.default.mark((function t(a){var r,o,c,s,l,i,u,d,f,p,m,h,v,g,_,y,E,b,S;return n.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=a.workspace,o=a.namespace,c=a.cluster,s=a.id,e.isLoading=!0,t.next=4,request.get((0,U.getManifestApi)({workspace:r,namespace:o,cluster:c,cluster_id:s}));case 4:return l=t.sent,e.updateDetail({detail:l,namespace:o,cluster:c,workspace:r}),t.next=8,e.podStore.fetchList({workspace:r,namespace:o,cluster:c,chi:s,app_id:e.detail.app_id});case 8:return i=t.sent,t.next=11,e.serviceStore.fetchList({cluster:c,namespace:o,chi:s,app_id:e.detail.app_id});case 11:return u=t.sent,t.next=14,request.get("/kapis".concat(globals.app.isMultiCluster?"/clusters/".concat(c):"","/resources.kubesphere.io/v1alpha3/storageclasses?sortBy=createTime"));case 14:if(d=t.sent,f=d.items.map((function(e){return{name:e.metadata.name,allowVolumeExpansion:e.allowVolumeExpansion}})),p=(0,D.default)(f.find((function(t){return t.name===e.detail.storageclass})),"allowVolumeExpansion",!1),m=(0,D.default)(i,"[0].capacity",e.detail.storage),e.detail.app_id!==L.RadonDBAppId.PostgreSQL){t.next=22;break}m=(0,D.default)(i.find((function(e){return e.name.includes("postgresql")})),"capacity",e.detail.storage),t.next=44;break;case 22:if(e.detail.app_id!==L.RadonDBAppId.Elasticsearch){t.next=36;break}return e.detail.realStorages={hot:(0,D.default)(i.find((function(e){return!0===(0,D.default)(e,'metadata.labels["elasticsearch.k8s.elastic.co/node-hot"]')})),"capacity",e.detail.storages.hot),warm:(0,D.default)(i.find((function(e){return!0===(0,D.default)(e,'metadata.labels["elasticsearch.k8s.elastic.co/node-warm"]')})),"capacity",e.detail.storages.warm),cold:(0,D.default)(i.find((function(e){return!0===(0,D.default)(e,'metadata.labels["elasticsearch.k8s.elastic.co/node-cold"]')})),"capacity",e.detail.storages.cold)},h={},t.next=27,request.get(e.getECKKibanaUrl(c,o,s));case 27:h=t.sent,v=(0,D.default)(h,"spec.count",0),e.detail.nodes.kibana=v,g=(0,D.default)(h,"spec.podTemplate.spec.containers[0].resources.requests"),parseInt(g.cpu,10)<100&&(g.cpu="".concat(1e3*parseInt(g.cpu,10),"m")),e.detail.specifications.kibana=g,p=!0,t.next=44;break;case 36:if(e.detail.app_id!==L.RadonDBAppId.OpenSearch){t.next=44;break}return t.next=39,request.get(e.getLogstashUrl(c,o,s));case 39:_=t.sent,e.detail.nodes.logstash=(0,D.default)(_,"spec.replicas",0),y=(0,D.default)(_,"spec.podTemplate.spec.containers[0].resources.requests"),parseInt(y.cpu,10)<100&&(y.cpu="".concat(1e3*parseInt(y.cpu,10),"m")),e.detail.specifications.logstash=y;case 44:if(e.updateDetailService(e.detail,u),E=null,e.detail.app_id!==L.RadonDBAppId.Kafka||!e.detail.tls){t.next=52;break}return t.next=49,request.get(e.getSecretUrl(c,o,"".concat(s,"-cluster-ca-cert")));case 49:b=t.sent,S=window.atob||I.safeAtob,E={cert:S((0,D.default)(b,'data["ca.p12"]',"")),password:S((0,D.default)(b,'data["ca.password"]',"")),validDate:(0,w.getLocalTime)((0,D.default)(b,"metadata.creationTimestamp")).add(3650,"d").format("YYYY.MM.DD")};case 52:e.detail=H(H({},e.detail),{},{allowVolumeExpansion:p,realStorage:m,secret:E}),e.isLoading=!1;case 54:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()}}),E=(0,h.default)(g.prototype,"delete",[N.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(t){var a=t.workspace,r=t.cluster_id,n=t.cluster,o=t.namespace,c=t.name;return e.submitting(request.delete((0,U.getManifestApi)({workspace:a,namespace:o,cluster_id:r||c,cluster:n})))}}}),b=(0,h.default)(g.prototype,"batchDelete",[N.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(t,a){var r=a.workspace,n=a.namespace,o=a.cluster;return e.submitting(Promise.all(t.map((function(e){return request.delete((0,U.getManifestApi)({workspace:r,namespace:n,cluster:o,cluster_id:e}))}))))}}}),S=(0,h.default)(g.prototype,"patch",[N.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(){var t=(0,s.default)(n.default.mark((function t(a,r){var o,c,s,l,i,u;return n.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o=r.workspace,c=r.cluster_id,s=r.cluster,l=r.namespace,i=r.description,t.next=3,request.get((0,U.getManifestApi)({workspace:o,namespace:l,cluster_id:c,cluster:s}));case 3:return(u=t.sent).description=i,u.version+=1,t.next=8,request.put((0,U.getManifestApi)({workspace:o,namespace:l,cluster_id:c,cluster:s}),u);case 8:e.updateDetail({detail:u,namespace:l,cluster:s,workspace:o});case 9:case"end":return t.stop()}}),t)})));return function(e,a){return t.apply(this,arguments)}}()}}),O=(0,h.default)(g.prototype,"updateVersion",[N.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(){var t=(0,s.default)(n.default.mark((function t(a){var r,o,c,s,l,i,u,d,f,p;return n.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=a.cluster,o=a.cluster_id,c=a.workspace,s=a.namespace,t.next=3,request.get((0,U.getManifestApi)({workspace:c,namespace:s,cluster_id:o,cluster:r}));case 3:l=t.sent,i=JSON.parse(l.customResource),t.t0=a.app_id,t.next=t.t0===L.RadonDBAppId.OpenSearch?8:22;break;case 8:return(0,T.default)(i,"spec.general.version","2.8.0"),(0,T.default)(i,"spec.dashboards.version","2.8.0"),(0,T.default)(i,"spec.confMgmt.forceRestart",!0),u=e.getLogstashUrl(r,s,o),t.next=14,request.get(u);case 14:return d=t.sent,f={name:"exporter",resources:{requests:{memory:"400Mi",cpu:"200m"},limits:{memory:"400Mi",cpu:"200m"}}},p=(0,D.default)(d,"spec.podTemplate.spec.containers"),(0,P.default)(p,(function(e){return"exporter"===e.name}))||(p.push(f),(0,T.default)(d,"spec.podTemplate.spec.containers",p)),t.next=21,request.put(u,d);case 21:case 22:return t.abrupt("break",23);case 23:return l.customResource=JSON.stringify(i),l.version+=1,t.next=27,request.put((0,U.getManifestApi)({workspace:c,namespace:s,cluster_id:o,cluster:r}),l);case 27:e.updateDetail({detail:l,namespace:s,cluster:r,workspace:c});case 28:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()}}),R=(0,h.default)(g.prototype,"updateShardsCount",[N.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(){var t=(0,s.default)(n.default.mark((function t(a){var r,c,s,l,i,u,d,f,p,m,h,v,g,_,y,E,b,S,O,R,A,k,C,P;return n.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=a.workspace,c=a.cluster_id,s=a.cluster,l=a.namespace,i=a.shardsCount,u=a.nodeRole,d=a.specifications,f=a.storage,t.next=3,request.get((0,U.getManifestApi)({workspace:r,namespace:l,cluster_id:c,cluster:s}));case 3:p=t.sent,m=JSON.parse(p.customResource),t.t0=e.detail.app_id,t.next=t.t0===L.RadonDBAppId.ClickHouse?8:t.t0===L.RadonDBAppId.PostgreSQL?11:t.t0===L.RadonDBAppId.MySQL?13:t.t0===L.RadonDBAppId.RedisCluster?15:t.t0===L.RadonDBAppId.RedisSentinel?18:t.t0===L.RadonDBAppId.MongoDB?21:t.t0===L.RadonDBAppId.Elasticsearch?23:t.t0===L.RadonDBAppId.Kafka?51:t.t0===L.RadonDBAppId.OpenSearch?53:78;break;case 8:return h=(0,D.default)(m,"spec.configuration.clusters[0].layout"),(0,T.default)(m,"spec.configuration.clusters[0].layout",H(H({},h),{},{shardsCount:i})),t.abrupt("break",79);case 11:return(0,T.default)(m,"spec.postgresql.readwriteinstance.replicas",i),t.abrupt("break",79);case 13:return(0,T.default)(m,"spec.replicas",i),t.abrupt("break",79);case 15:return v=(0,L.getCpuAndMemoryFromSpecifications)(d),"proxy"===u?((0,T.default)(m,"spec.redisProxy.replicas",i),(0,T.default)(m,"spec.redisProxy.resources.requests",v),(0,T.default)(m,"spec.redisProxy.resources.limits",v),i>0&&(0,T.default)(m,"spec.redisProxy.enabled",!0)):((0,T.default)(m,"spec.clusterSize",i),(0,T.default)(m,"spec.redisLeader.replicas",i),(0,T.default)(m,"spec.redisFollower.replicas",i)),t.abrupt("break",79);case 18:return(0,T.default)(m,"spec.clusterSize",i),(0,T.default)(m,"spec.redisReplica.replicas",i),t.abrupt("break",79);case 21:return(0,T.default)(m,"spec.members",i),t.abrupt("break",79);case 23:if(g=(0,L.getCpuAndMemoryFromSpecifications)(d),"kibana"!==u){t.next=36;break}return _=e.getECKKibanaUrl(s,l,c),t.next=28,request.get(_);case 28:return y=t.sent,(0,T.default)(y,"spec.count",i),(0,T.default)(y,"spec.podTemplate.spec.containers[0].resources.requests",g),(0,T.default)(y,"spec.podTemplate.spec.containers[0].resources.limits",g),t.next=34,request.put(_,y);case 34:return e.detail.nodes.kibana=i,t.abrupt("return");case 36:if(E=(0,D.default)(m,"spec.nodeSets",[]),b=E.find((function(e){return e.name.startsWith(u)}))){t.next=46;break}if(S=(0,D.default)(Y.eckYaml.resources,"spec.nodeSets",[]),b=S.find((function(e){return e.name.startsWith(u)}))){t.next=43;break}return t.abrupt("break",79);case 43:b=JSON.parse(JSON.stringify(b)),(0,T.default)(b,"volumeClaimTemplates[0].spec.storageClassName",(0,D.default)(E,"[0].volumeClaimTemplates[0].spec.storageClassName")),(0,T.default)(m,"spec.nodeSets",[].concat((0,o.default)(E),[b]));case 46:return(0,T.default)(b,"count",i),(0,T.default)(b,"podTemplate.spec.containers[0].resources",{limits:g,requests:g}),(0,T.default)(b,"podTemplate.spec.containers[0].env[0].value","-Xms".concat(parseInt(g.memory,10)/2,"g -Xmx").concat(parseInt(g.memory,10)/2,"g")),(0,T.default)(b,"volumeClaimTemplates[0].spec.resources.requests.storage",f),t.abrupt("break",79);case 51:return(0,T.default)(m,"spec.".concat(u,".replicas"),i),t.abrupt("break",79);case 53:if(O=(0,L.getCpuAndMemoryFromSpecifications)(d),"logstash"!==u){t.next=66;break}return R=e.getLogstashUrl(s,l,c),t.next=58,request.get(R);case 58:return A=t.sent,(0,T.default)(A,"spec.replicas",i),(0,T.default)(A,"spec.podTemplate.spec.containers[0].resources",{requests:O,limits:O}),t.next=63,request.put(R,A);case 63:return e.detail.nodes.logstash=i,e.detail=H({},e.detail),t.abrupt("return");case 66:if("dashboard"!==u){t.next=71;break}return i>0&&(0,T.default)(m,"spec.dashboards.enable",!0),(0,T.default)(m,"spec.dashboards.replicas",i),(0,T.default)(m,"spec.dashboards.resources",{requests:O,limits:O}),t.abrupt("break",79);case 71:return k=(0,D.default)(m,"spec.nodePools",[]),(C=k.find((function(e){return(0,D.default)(e,'additionalConfig["node.attr.datatier"]')===u})))||(P=(0,D.default)(k,"[0].persistence.pvc.storageClass"),C=JSON.parse(JSON.stringify(F.opensearchYaml.node)),(0,T.default)(C,'additionalConfig["node.attr.datatier"]',u),(0,T.default)(C,"component","data-node-".concat(u)),(0,T.default)(C,"persistence.pvc.storageClass",P),(0,T.default)(m,"spec.nodePools",[].concat((0,o.default)(k),[C]))),(0,T.default)(C,"replicas",i),(0,T.default)(C,"resources",{limits:O,requests:O}),(0,T.default)(C,"diskSize",f),t.abrupt("break",79);case 78:return t.abrupt("break",79);case 79:return p.customResource=JSON.stringify(m),p.version+=1,t.next=83,request.put((0,U.getManifestApi)({workspace:r,namespace:l,cluster_id:c,cluster:s}),p);case 83:e.updateDetail({detail:p,namespace:l,cluster:s,workspace:r});case 84:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()}}),A=(0,h.default)(g.prototype,"updateStorage",[N.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(){var t=(0,s.default)(n.default.mark((function t(a){var r,o,c,s,l,i,u,d,f,p,m,h;return n.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=a.workspace,o=a.cluster_id,c=a.cluster,s=a.namespace,l=a.storage,i=a.nodeRole,t.next=3,request.get((0,U.getManifestApi)({workspace:r,namespace:s,cluster_id:o,cluster:c}));case 3:u=t.sent,d=JSON.parse(u.customResource),parseFloat(l)<10&&(l="10Gi"),t.t0=e.detail.app_id,t.next=t.t0===L.RadonDBAppId.ClickHouse?9:t.t0===L.RadonDBAppId.PostgreSQL?11:t.t0===L.RadonDBAppId.MySQL?13:t.t0===L.RadonDBAppId.RedisCluster||t.t0===L.RadonDBAppId.RedisSentinel?15:t.t0===L.RadonDBAppId.MongoDB?17:t.t0===L.RadonDBAppId.Elasticsearch?19:t.t0===L.RadonDBAppId.Kafka?23:t.t0===L.RadonDBAppId.OpenSearch?25:29;break;case 9:return(0,T.default)(d,"spec.templates.volumeClaimTemplates[0].spec.resources.requests.storage",l),t.abrupt("break",30);case 11:return(0,T.default)(d,"spec.postgresql.readwriteinstance.volumeClaimTemplates[0].spec.resources.requests.storage",l),t.abrupt("break",30);case 13:return(0,T.default)(d,"spec.persistence.size",l),t.abrupt("break",30);case 15:return(0,T.default)(d,"spec.storage.volumeClaimTemplate.spec.resources.requests.storage",l),t.abrupt("break",30);case 17:return(0,T.default)(d,"spec.statefulSet.spec.volumeClaimTemplates[0].spec.resources.requests.storage",l),t.abrupt("break",30);case 19:return f=(0,D.default)(d,"spec.nodeSets",[]),(p=f.find((function(e){return e.name.startsWith(i)})))&&((0,T.default)(p,"volumeClaimTemplates[0].spec.resources.requests.storage",l),(0,T.default)(p,"name","".concat(i,"-").concat(l.toLowerCase()))),t.abrupt("break",30);case 23:return"kafka"===i?(0,T.default)(d,"spec.kafka.storage.volumes[0].size",l):(0,T.default)(d,"spec.zookeeper.storage.size",l),t.abrupt("break",30);case 25:return m=(0,D.default)(d,"spec.nodePools",[]),h=m.find((function(e){return(0,D.default)(e,'additionalConfig["node.attr.datatier"]')===i})),(0,T.default)(h,"diskSize",l),t.abrupt("break",30);case 29:return t.abrupt("break",30);case 30:return u.customResource=JSON.stringify(d),u.version+=1,t.next=34,request.put((0,U.getManifestApi)({workspace:r,namespace:s,cluster_id:o,cluster:c}),u);case 34:i?(0,T.default)(e.detail,"realStorages[".concat(i,"]"),l):e.detail.realStorage=l,e.updateDetail({detail:u,namespace:s,cluster:c,workspace:r});case 36:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()}}),k=(0,h.default)(g.prototype,"updateSpecifications",[N.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(){var t=(0,s.default)(n.default.mark((function t(a){var r,o,c,s,l,i,u,d,f,p,m,h,v,g,_,y,E;return n.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=a.workspace,o=a.cluster_id,c=a.cluster,s=a.namespace,l=a.specifications,i=a.nodeRole,u=(0,L.getCpuAndMemoryFromSpecifications)(l),t.next=4,request.get((0,U.getManifestApi)({workspace:r,namespace:s,cluster_id:o,cluster:c}));case 4:d=t.sent,f=JSON.parse(d.customResource),t.t0=e.detail.app_id,t.next=t.t0===L.RadonDBAppId.ClickHouse?9:t.t0===L.RadonDBAppId.PostgreSQL?12:t.t0===L.RadonDBAppId.MySQL?14:t.t0===L.RadonDBAppId.RedisCluster?17:t.t0===L.RadonDBAppId.RedisSentinel?19:t.t0===L.RadonDBAppId.MongoDB?22:t.t0===L.RadonDBAppId.Elasticsearch?25:t.t0===L.RadonDBAppId.Kafka?40:t.t0===L.RadonDBAppId.OpenSearch?43:60;break;case 9:return(0,T.default)(f,"spec.templates.podTemplates[0].spec.containers[0].resources.limits",u),(0,T.default)(f,"spec.templates.podTemplates[0].spec.containers[0].resources.requests",u),t.abrupt("break",61);case 12:return(0,T.default)(f,"spec.postgresql.readwriteinstance.podspec.containers[0].resources",{requests:u,limits:u}),t.abrupt("break",61);case 14:return(0,T.default)(f,"spec.mysqlOpts.resources.requests",u),(0,T.default)(f,"spec.mysqlOpts.resources.limits",u),t.abrupt("break",61);case 17:return"proxy"===i?((0,T.default)(f,"spec.redisProxy.resources.requests",u),(0,T.default)(f,"spec.redisProxy.resources.limits",u)):((0,T.default)(f,"spec.kubernetesConfig.resources.requests",u),(0,T.default)(f,"spec.kubernetesConfig.resources.limits",u)),t.abrupt("break",61);case 19:return(0,T.default)(f,"spec.kubernetesConfig.resources.requests",u),(0,T.default)(f,"spec.kubernetesConfig.resources.limits",u),t.abrupt("break",61);case 22:return(0,T.default)(f,"spec.statefulSet.spec.template.spec.containers[0].resources.requests",u),(0,T.default)(f,"spec.statefulSet.spec.template.spec.containers[0].resources.limits",u),t.abrupt("break",61);case 25:if("kibana"!==i){t.next=36;break}return p=e.getECKKibanaUrl(c,s,o),t.next=29,request.get(p);case 29:return m=t.sent,(0,T.default)(m,"spec.podTemplate.spec.containers[0].resources.requests",u),(0,T.default)(m,"spec.podTemplate.spec.containers[0].resources.limits",u),t.next=34,request.put(p,m);case 34:return e.detail.specifications.kibana=u,t.abrupt("return");case 36:return h=(0,D.default)(f,"spec.nodeSets",[]),(v=h.find((function(e){return e.name.startsWith(i)})))&&((0,T.default)(v,"podTemplate.spec.containers[0].resources",{limits:u,requests:u}),(0,T.default)(v,"podTemplate.spec.containers[0].env[0].value","-Xms".concat(parseInt(u.memory,10)/2,"g -Xmx").concat(parseInt(u.memory,10)/2,"g"))),t.abrupt("break",61);case 40:return(0,T.default)(f,"spec.".concat(i,".resources.requests"),u),(0,T.default)(f,"spec.".concat(i,".resources.limits"),u),t.abrupt("break",61);case 43:if("logstash"!==i){t.next=53;break}return g=e.getLogstashUrl(c,s,o),t.next=47,request.get(g);case 47:return _=t.sent,(0,T.default)(_,"spec.podTemplate.spec.containers[0].resources",{requests:u,limits:u}),t.next=51,request.put(g,_);case 51:return e.detail=H({},e.detail),t.abrupt("return");case 53:if("dashboard"!==i){t.next=56;break}return(0,T.default)(f,"spec.dashboards.resources",{requests:u,limits:u}),t.abrupt("break",61);case 56:return y=(0,D.default)(f,"spec.nodePools",[]),E=y.find((function(e){return(0,D.default)(e,'additionalConfig["node.attr.datatier"]')===i})),(0,T.default)(E,"resources",{limits:u,requests:u}),t.abrupt("break",61);case 60:return t.abrupt("break",61);case 61:return d.customResource=JSON.stringify(f),d.version+=1,t.next=65,request.put((0,U.getManifestApi)({workspace:r,namespace:s,cluster_id:o,cluster:c}),d);case 65:e.updateDetail({detail:d,namespace:s,cluster:c,workspace:r});case 66:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()}}),g);t.default=W},1433:function(e,a,r){"use strict";var n=r(20);r(12),r(5),r(11),r(31),r(6),r(84),r(18),r(48),r(16),r(27),r(9),r(13),r(10),r(4),r(23),r(17),r(85),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(45),r(5),r(11),r(31),r(6),r(84),r(18),r(28),r(48),r(42),r(16),r(27),r(34),r(15),r(9),r(13),r(10),r(4),r(22),r(23),r(57),r(17),r(85),r(7);var o=n(r(43)),c=n(r(30)),s=n(r(58));r(41);var l,i,u,d=n(r(44)),f=n(r(65)),p=n(r(36)),m=n(r(37)),h=n(r(88)),v=n(r(55)),g=n(r(56)),_=n(r(51)),y=n(r(49)),E=(n(r(66)),n(r(26))),b=r(14),S=n(r(68)),O=r(434),R=r(815);function A(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function k(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},a=t.cluster,r=t.namespace,n=t.chi,o=t.app_id,c="".concat(e.baseUrl).concat(e.getPath({cluster:a,namespace:r}),"/pods?labelSelector=");return c+=e.getLabelSelector(o,n)},e.getWatchListUrl=function(t){var a=t.namespace,r=t.cluster,n=t.app_id,o=t.chi;return"api/v1/watch/klusters/".concat(r,"/namespaces/").concat(a,"/pods?labelSelector=").concat(e.getLabelSelector(n,o))},(0,f.default)(e,"fetchList",u,(0,h.default)(e)),e}return(0,m.default)(a,[{key:"getPath",value:function(e){var t=e.namespace,a=e.cluster,r="";return globals.app.isMultiCluster&&a&&(r+="/clusters/".concat(a)),r+="/v1",t&&(r+="/namespaces/".concat(t)),r}},{key:"getCapacityUrl",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.cluster,a=e.namespace,r=e.chi,n=e.app_id,o="".concat(this.baseUrl).concat(this.getPath({cluster:t,namespace:a}),"/persistentvolumeclaims?labelSelector=");return o+=this.getLabelSelector(n,r,!0)}},{key:"getLabelSelector",value:function(e,t,a){switch(e){case R.RadonDBAppId.ClickHouse:return"clickhouse.radondb.com/zooKeeper!=zookeeper,clickhouse.radondb.com/chi=".concat(t);case R.RadonDBAppId.PostgreSQL:return"app-name=".concat(t);case R.RadonDBAppId.RedisCluster:case R.RadonDBAppId.RedisSentinel:return"redis.radondb.com/name=".concat(t);case R.RadonDBAppId.Elasticsearch:return"elasticsearch.k8s.elastic.co/cluster-name=".concat(t);case R.RadonDBAppId.Kafka:return"app.kubernetes.io/instance=".concat(t,"".concat(a?"":",strimzi.io/controller=strimzipodset"));default:return"app.kubernetes.io/instance=".concat(t)}}},{key:"baseUrl",get:function(){return"/api"}}]),a}(S.default),i=(0,y.default)(l.prototype,"data",[b.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),u=(0,y.default)(l.prototype,"fetchList",[b.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return(0,d.default)(o.default.mark((function a(){var r,n,c,l,i,u,d,f,p,m,h,v,g,_,y,b,S,A=arguments;return o.default.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return r=A.length>0&&void 0!==A[0]?A[0]:{},n=r.esKibana,c=(0,s.default)(r,["esKibana"]),a.next=3,request.get(e.getUrl(c));case 3:return l=a.sent,a.next=6,request.get(e.getCapacityUrl(c));case 6:if(i=a.sent,e.isLoading=!0,u=c.dataFilters||{},d=u.limit,f=void 0===d?10:d,p=u.page,m=void 0===p?1:p,h=(0,s.default)(u,["limit","page"]),v={items:[]},g={items:[]},!n){a.next=19;break}return _=c.cluster,y=c.namespace,b=c.chi,a.next=15,request.get("".concat(e.baseUrl).concat(e.getPath({cluster:_,namespace:y}),"/pods?labelSelector=common.k8s.elastic.co/type=kibana,kibana.k8s.elastic.co/name=").concat(b));case 15:return v=a.sent,a.next=18,request.get("".concat(e.baseUrl).concat(e.getPath({cluster:_,namespace:y}),"/persistentvolumeclaims?labelSelector=common.k8s.elastic.co/type=kibana,kibana.k8s.elastic.co/name=").concat(b));case 18:g=a.sent;case 19:return S=l.items.concat(v.items||[]).map((function(e){var a=(0,E.default)(e,"metadata.labels.role"),r="",n=["leader","master","LEADER","primary"].includes(a)?t("PRIMARY_NODE"):t("STANDBY_NODE");if(c.app_id===R.RadonDBAppId.PostgreSQL)"autofailover"===(r=(0,E.default)(e,'metadata.labels["node-name"]'))&&(n=t("MANAGEMENT_NODE"));else if(c.app_id===R.RadonDBAppId.RedisSentinel)"master"===(0,E.default)(e,'metadata.labels["redis.radondb.com/role"]')&&(n=t("PRIMARY_NODE")),"sentinel"===a&&(n=t("SENTINEL_NODE"));else if(c.app_id===R.RadonDBAppId.Elasticsearch)"true"===(0,E.default)(e,'metadata.labels["elasticsearch.k8s.elastic.co/node-master"]')?(n=t("PRIMARY_NODE"),r="master"):"true"===(0,E.default)(e,'metadata.labels["elasticsearch.k8s.elastic.co/node-data_hot"]')?(n=t("HOT_NODE"),r="hot"):"true"===(0,E.default)(e,'metadata.labels["elasticsearch.k8s.elastic.co/node-data_warm"]')?(n=t("WARM_NODE"),r="warm"):"true"===(0,E.default)(e,'metadata.labels["elasticsearch.k8s.elastic.co/node-data_cold"]')?(n=t("COLD_NODE"),r="cold"):"kibana"===(0,E.default)(e,'metadata.labels["common.k8s.elastic.co/type"]')&&(n=t("KIBANA_NODE"),r="kibana");else if(c.app_id===R.RadonDBAppId.Kafka)"kafka"===(0,E.default)(e,'metadata.labels["app.kubernetes.io/name"]')?(n=t("KAFKA_NODE"),r="kafka"):"zookeeper"===(0,E.default)(e,'metadata.labels["app.kubernetes.io/name"]')&&(n=t("ZOOKEEPER_NODE"),r="zookeeper");else if(c.app_id===R.RadonDBAppId.OpenSearch){var o=(0,E.default)(e,'metadata.labels["opster.io/opensearch-nodepool"]');"data-node-hot"===o?(n=t("HOT_NODE"),r="hot"):"data-node-warm"===o?(n=t("WARM_NODE"),r="warm"):"data-node-cold"===o?(n=t("COLD_NODE"),r="cold"):"masters"===o&&(n=t("PRIMARY_NODE"),r="master"),(0,E.default)(e,'metadata.labels["opensearch.opster.io/logstash"]')&&(r="logstash",n=t("LOGSTASH_NODE")),(0,E.default)(e,'metadata.labels["opensearch.cluster.dashboards"]')&&(r="dashboard",n=t("DASHBOARD_NODE"),v.items.push(e))}var s="proxy"===(0,E.default)(e,"metadata.labels.redis_setup_type","");s&&(n=t("PROXY_NODE"));var l=(0,O.getPodStatusAndRestartCount)(e);return{name:e.metadata.name,creationTimestamp:e.metadata.creationTimestamp,status:(0,E.default)(l,"type","creating"),ip:e.status.podIP,spec:(0,E.default)(e,"spec.containers[0].resources.limits",{cpu:"",memory:""}),serviceName:e.spec.subdomain,capacity:(0,E.default)(i.items.concat(g.items||[]).find((function(t){return t.metadata.name.includes(e.metadata.name)||t.metadata.name===(0,E.default)(e,"metadata.labels[deployment-name]")})),"status.capacity.storage"),canDelete:c.app_id!==R.RadonDBAppId.ClickHouse,deploymentName:(0,E.default)(e,"metadata.labels[deployment-name]"),noMonitoring:(0,E.default)(v,"items",[]).includes(e),isPredixy:s,roleText:n,nodeRole:r}})).filter((function(e){var t=!0;if(c.app_id===R.RadonDBAppId.Elasticsearch&&e.name.includes("exporter")&&(t=!1),h)for(var a in h)if(e[a]&&!(t=e[a].includes(h[a])))break;return t})),e.list.update(k({data:S.slice((m-1)*f,m*f),total:S.length||0,filters:h,limit:Number(f),page:Number(m),isLoading:!1},e.list.silent?{}:{selectedRowKeys:[]})),e.data=S,e.isLoading=!1,a.abrupt("return",S);case 24:case"end":return a.stop()}}),a)})))}}),l);a.default=D},1441:function(e,t,a){"use strict";a(15);var r=a(20);a(5),a(9),a(4),a(23),a(17),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(45),a(5),a(42),a(9),a(4),a(23),a(57),a(17);var n,o=r(a(36)),c=r(a(37)),s=r(a(55)),l=r(a(56)),i=r(a(51)),u=r(a(49)),d=a(14);function f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,i.default)(e);if(t){var n=(0,i.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,l.default)(this,a)}}var p=(n=function(e){(0,s.default)(a,e);var t=f(a);function a(){var e;(0,o.default)(this,a);for(var r=arguments.length,n=new Array(r),c=0;c0&&void 0!==arguments[0]?arguments[0]:{};return"".concat(e.apiVersion).concat(e.getPath(t),"/services").concat(t.dryRun?"?dryRun=All":"")},e.getResourceUrl=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return"".concat(e.apiVersion).concat(e.getPath(t),"/services")},e}return(0,c.default)(a,[{key:"getNacosConfig",value:function(e){var t=e.cluster,a="apis/clusters/".concat(t,"/aggregated.springcloud.kubesphere.io/v1alpha1/configs/nacos");return request.get(a)}},{key:"apiVersion",get:function(){return"apis/aggregated.springcloud.kubesphere.io/v1alpha1"}}]),a}(r(a(1053)).default),(0,u.default)(n.prototype,"getNacosConfig",[d.action],Object.getOwnPropertyDescriptor(n.prototype,"getNacosConfig"),n.prototype),n);t.default=p},1442:function(e,t,a){"use strict";a(15);var r=a(20);a(5),a(9),a(4),a(23),a(17),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(45),a(5),a(42),a(9),a(4),a(23),a(57),a(17);var n,o=r(a(36)),c=r(a(37)),s=r(a(55)),l=r(a(56)),i=r(a(51)),u=r(a(49)),d=a(14);function f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,i.default)(e);if(t){var n=(0,i.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,l.default)(this,a)}}var p=(n=function(e){(0,s.default)(a,e);var t=f(a);function a(){var e;(0,o.default)(this,a);for(var r=arguments.length,n=new Array(r),c=0;c0&&void 0!==arguments[0]?arguments[0]:{};return"".concat(e.apiVersion).concat(e.getPath(t),"/gateways").concat(t.dryRun?"?dryRun=All":"")},e.getResourceUrl=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return"".concat(e.apiVersion).concat(e.getPath(t),"/gateways")},e.getWatchListUrl=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return"".concat(e.apiVersion,"/watch").concat(e.getPath(t),"/gateways")},e}return(0,c.default)(a,[{key:"scale",value:function(e,t){var a={spec:{deployment:{replicas:t}}};return this.submitting(request.patch(this.getDetailUrl(e),a))}}]),a}(r(a(1053)).default),(0,u.default)(n.prototype,"scale",[d.action],Object.getOwnPropertyDescriptor(n.prototype,"scale"),n.prototype),n);t.default=p},1443:function(e,t,a){e.exports={wrapper:"_1uaaKr3Qydwsg51ILBRYCg",tabs:"_3nJI9guJPMvk12Q7gjPZmU",tab:"_2O3IP_JlAV9AbTpuDHMXIl",on:"dtWNnffgqT6fXfJMluy0E",disc:"rNqC-zU5OV0lmTkB9WeqN",dictitle:"_26zXEdaVS1OkdX0T2prDH0",rulemenu:"_2hk_pGWlc9LZSlUNVZpB_L",rulebody:"_200wgR_dslfHnyTKUfp3CE",rulegroup:"_1aEBcghuz30TE0D3S8j9b1",subtitle:"_1o0TorXdL5BiqInf6gl9xV",disp:"_3gRCidjr27U-JF2kva4mez",row:"_2GRO4qEEEL8YVdvR1abyMa",prow:"_1ZcG7g_ZKJsG2z9VAyV3lg",cell:"_2L-swNbTQv9wN1kfqt6Onb",pcell:"_1y3YJPFi3g8WpOYzgcBbsx",port:"_3IK-Z28rsJJ9d3IbUC984X",avatar:"_3Em1hnqijkxpfnBYfFZO18"}},1444:function(e,t,a){"use strict";var r=a(20);a(12),a(5),a(11),a(6),a(29),a(18),a(16),a(9),a(13),a(10),a(4),a(22),a(23),a(17),a(38),a(7),a(32),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(12),a(45),a(5),a(11),a(6),a(29),a(18),a(28),a(42),a(16),a(34),a(15),a(9),a(13),a(10),a(4),a(22),a(23),a(57),a(17),a(38),a(7),a(32);var n=r(a(43)),o=r(a(30)),c=r(a(58));a(41);var s,l,i,u=r(a(44)),d=r(a(65)),f=r(a(36)),p=r(a(37)),m=r(a(88)),h=r(a(55)),v=r(a(56)),g=r(a(51)),_=r(a(49)),y=(r(a(66)),r(a(26))),E=r(a(74)),b=r(a(198)),S=r(a(63)),O=r(a(855)),R=r(a(480)),A=a(14),k=a(52),T=a(72),D=r(a(105));function C(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function P(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},s=Math.floor((new Date).getTime()/1e3),l=P({queryTime:s,duration:300,step:30,rateInterval:"30s","filters[]":["request_count","request_duration","request_error_count","tcp_sent","tcp_received"],direction:"inbound",reporter:"destination"},c);return"http"===o&&(l.requestProtocol="http"),Promise.all([request.get("kapis/servicemesh.kubesphere.io/v1alpha2".concat(this.getPath({cluster:t,namespace:a}),"/workloads/").concat(r,"/metrics"),l),request.get("kapis/servicemesh.kubesphere.io/v1alpha2".concat(this.getPath({cluster:t,namespace:a}),"/workloads/").concat(n,"/metrics"),l)])}},{key:"fetchHealth",value:function(e){var t=e.cluster,a=e.namespace,r=e.newWorkloadName,n=e.oldWorkloadName,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},c=P({rateInterval:"30s"},o);return Promise.all([request.get("kapis/servicemesh.kubesphere.io/v1alpha2".concat(this.getPath({cluster:t,namespace:a}),"/workloads/").concat(r,"/health"),c),request.get("kapis/servicemesh.kubesphere.io/v1alpha2".concat(this.getPath({cluster:t,namespace:a}),"/workloads/").concat(n,"/health"),c)])}},{key:"fetchComponents",value:(t=(0,u.default)(n.default.mark((function e(t){var a,r,s,l,i,u,d,f,p,m,h,v,g,_,y;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.cluster,s=t.namespace,l=t.labelSelector,i=t.newVersion,u=t.oldVersion,d=t.service,f=t.silent,p=(0,c.default)(t,["cluster","namespace","labelSelector","newVersion","oldVersion","service","silent"]),!f&&(this.isComponentsLoading=!0),s){e.next=5;break}return this.isComponentsLoading=!1,e.abrupt("return");case 5:return m=p,(0,S.default)(l)||(m.labelSelector=l),e.next=9,request.get("api/v1".concat(this.getPath({cluster:r,namespace:s}),"/pods"),m);case 9:h=e.sent,v=h.items.map(D.default.pods),g=(0,O.default)(v,"labels.version"),_=g[i]||[],y=g[u]||[],this.components.data=(a={},(0,o.default)(a,i,{name:d,version:i,pods:_,desire:_.length,available:_.filter((function(e){return"Running"===e.status.phase})).length}),(0,o.default)(a,u,{name:d,version:u,pods:y,desire:y.length,available:y.filter((function(e){return"Running"===e.status.phase})).length}),a),this.isComponentsLoading=!1;case 16:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})},{key:"create",value:function(e,t){var a,r=t.cluster,n=t.namespace;if((0,b.default)(e,"strategy")&&(a=request.post(this.getListUrl({cluster:r,namespace:n}),e.strategy)),(0,b.default)(e,"workload")){var o=(0,y.default)(e,"workload.kind","Deployment"),c=(0,R.default)(T.MODULE_KIND_MAP,(function(e){return e===o}))||"deployments";a.then(request.post("apis/apps/v1".concat(this.getPath({cluster:r,namespace:n}),"/").concat(c),e.workload))}return this.submitting(a)}},{key:"update",value:function(e,t){var a=e.name,r=e.cluster,n=e.namespace,o=e.newWorkloadName,c=e.newVersion,s=e.resourceVersion,l=[],i="";if((0,b.default)(t,"workload")){var u=(0,y.default)(t,"workload.kind","Deployment"),d=(0,R.default)(T.MODULE_KIND_MAP,(function(e){return e===u}))||"deployments";if((i=(0,y.default)(t.workload,"metadata.labels.version"))===c){var f=(0,y.default)(t.workload,"metadata.name");l.push(request.put("apis/apps/v1".concat(this.getPath({cluster:r,namespace:n}),"/").concat(d,"/").concat(f),t.workload))}else l.push(request.delete("apis/apps/v1".concat(this.getPath({cluster:r,namespace:n}),"/").concat(d,"/").concat(o)),request.post("apis/apps/v1".concat(this.getPath({cluster:r,namespace:n}),"/").concat(d),t.workload))}if((0,b.default)(t,"strategy")){if((0,E.default)(t.strategy,"metadata.resourceVersion",s),i&&i!==c)(0,y.default)(t.strategy,"spec.governor")===c&&(0,E.default)(t.strategy,"spec.governor",i),((0,y.default)(t.strategy,"spec.template.spec.http")||(0,y.default)(t.strategy,"spec.template.spec.tcp",[])).forEach((function(e){e.route&&e.route.length>0&&e.route.forEach((function(e){(0,y.default)(e,"destination.subset")===c&&(0,E.default)(e,"destination.subset",i)})),e.mirror&&e.mirror.subset===c&&(e.mirror.subset=i)}));l.push(request.put(this.getDetailUrl({name:a,cluster:r,namespace:n}),t.strategy))}return this.submitting(Promise.all(l))}}]),s}(r(a(68)).default),l=(0,_.default)(s.prototype,"isComponentsLoading",[A.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),i=(0,_.default)(s.prototype,"components",[A.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{data:{}}}}),(0,_.default)(s.prototype,"fetchList",[A.action],Object.getOwnPropertyDescriptor(s.prototype,"fetchList"),s.prototype),(0,_.default)(s.prototype,"fetchMetrics",[A.action],Object.getOwnPropertyDescriptor(s.prototype,"fetchMetrics"),s.prototype),(0,_.default)(s.prototype,"fetchHealth",[A.action],Object.getOwnPropertyDescriptor(s.prototype,"fetchHealth"),s.prototype),(0,_.default)(s.prototype,"fetchComponents",[A.action],Object.getOwnPropertyDescriptor(s.prototype,"fetchComponents"),s.prototype),(0,_.default)(s.prototype,"create",[A.action],Object.getOwnPropertyDescriptor(s.prototype,"create"),s.prototype),(0,_.default)(s.prototype,"update",[A.action],Object.getOwnPropertyDescriptor(s.prototype,"update"),s.prototype),s);t.default=I},1445:function(e,t,a){e.exports={tag:"_3TU-AgwZKhTYBj4DFyGaYd",title:"_369ph_E2DAX2y_NpgwxabT",chart:"_277fRQi2DOGBy4yI3roVrO",chartDetail:"U6o8umlM6uCM_XaU0JaNm",circle:"_1xjLL8SyJTU8mVCMJafm71",leftPane:"_3De3dzq3-ZtBdXNIpWKeK7",selected:"_1Rq06DmTF8zwtDrYhm_Jm4",tip:"_2_wSsLRObqXFZ_kT0eXPhg"}},1446:function(e,t,a){e.exports={wrapper:"NIYOp_3ZpxtucxFOhGDxS",image:"_12zpgu_3ah3oONNKLDWl4c",footer:"_2R2JnOZA8qwhANxwDqziDW",items:"_3HAAkylLBWtyi2Ulicm5mP",item:"_3ap2A7wsdNinxlpfOJWRN8",icon:"_1dvmRmxMSb9SuqZATuQ3M4",iconExtra:"-pMYsB5LXpaiC807PW5sd",title:"_33LJI1QvrcWsEKm2a6JbX1",left:"_3u7seBT_Bxszz6-KADL9rG",right:"_1CV-q62afWGICi54uwkQM-",versions:"_1N38nS5eFjvxklmLdiNBJi",tag:"_10BSpN1wSXatPsR4gumtiH",loading:"_3oncm8IhLXZJiwMH55s8mf",chart:"_20slDQ31DTSOgN5QFZMsWa",chartDetail:"bGmKWnw69cnOMBg1gKklH",circle:"_2au74k5NIUPy1uZMIhmp4j",tip:"_6o9I9WEuv9Q3iooA87p-2"}},1447:function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(18),r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(18),r(42),r(4),r(23),r(57),r(17);var o,c,s,l=n(r(36)),i=n(r(37)),u=n(r(55)),d=n(r(56)),f=n(r(51)),p=n(r(0)),m=n(r(1)),h=n(r(63)),v=r(239),g=r(186),_=n(r(789)),y=n(r(443)),E=r(52),b=n(r(4734)),S=n(r(1910));function O(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,f.default)(e);if(t){var n=(0,f.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,d.default)(this,a)}}var R=(0,v.observer)((s=c=function(e){(0,u.default)(r,e);var a=O(r);function r(){var e;(0,l.default)(this,r);for(var t=arguments.length,n=new Array(t),o=0;o0&&void 0!==arguments[0]?arguments[0]:{},a=t.namespace,r=t.cluster,n=t.name,o="".concat(e.baseUrl).concat(e.getPath({namespace:a,cluster:r}),"/applications");return n?"".concat(o,"/").concat(n):o},e.getDeleteUrl=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=t.workspace,r=t.namespace,n=t.cluster,o=t.name,c="".concat(e.baseUrl).concat(e.getDeletePath({workspace:a,namespace:r,cluster:n}),"/applications");return o?"".concat(c,"/").concat(o):c},(0,l.default)(e,"fetchList",g,(0,d.default)(e)),(0,l.default)(e,"fetchDetail",_,(0,d.default)(e)),(0,l.default)(e,"delete",y,(0,d.default)(e)),(0,l.default)(e,"batchDelete",E,(0,d.default)(e)),e}return(0,u.default)(a,[{key:"getPath",value:function(e){var t=e.cluster,a=e.namespace,r="";return globals.app.isMultiCluster&&t&&(r+="/klusters/".concat(t)),a&&(r+="/namespaces/".concat(a)),r}},{key:"getDeletePath",value:function(e){var t=e.workspace,a=e.cluster,r=e.namespace,n="";return t&&(n+="/workspaces/".concat(t)),globals.app.isMultiCluster&&a&&(n+="/clusters/".concat(a)),r&&(n+="/namespaces/".concat(r)),n}},{key:"baseUrl",get:function(){return"kapis/native.helm/v1alpha1"}}]),a}(k.default),g=(0,h.default)(v.prototype,"fetchList",[R.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return(0,s.default)(n.default.mark((function t(){var a,r,s,l,i,u,d,f,p,m,h,v,g,_,y,E=arguments;return n.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=E.length>0&&void 0!==E[0]?E[0]:{},r=a.limit,s=a.page,l=a.cluster,i=a.namespace,u=a.workspace,d=a.more,f=a.status,p=a.sortBy,m=a.reverse,h=(0,c.default)(a,["limit","page","cluster","namespace","workspace","more","status","sortBy","reverse"]),e.list.isLoading=!0,v={conditions:(0,A.getFilterString)({status:f})||void 0},p||void 0!==m||(p="status_time"),(0,O.default)(h)||(g=(0,A.getFilterString)(h))&&(v.conditions+=",".concat(g)),r!==1/0&&(v.paging="limit=".concat(r||10,",page=").concat(s||1)),p&&(v.orderBy=p),m&&(v.reverse=!0),t.next=10,request.get(e.getUrl({namespace:i,cluster:l}),v);case 10:return _=t.sent,y=(_.items||[]).map((function(e){return C(C({},N(e)),{},{workspace:u,cluster:l})})),Object.assign(e.list,{data:d?[].concat((0,o.default)(e.list.data),(0,o.default)(y)):y,total:_.total_count||0,limit:Number(r)||10,page:Number(s)||1,order:p,reverse:m,filters:h,selectedRowKeys:[]}),e.list.isLoading=!1,t.abrupt("return",y);case 15:case"end":return t.stop()}}),t)})))}}),_=(0,h.default)(v.prototype,"fetchDetail",[R.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(){var t=(0,s.default)(n.default.mark((function t(a){var r,o,c,s,l;return n.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=a.workspace,o=a.namespace,c=a.cluster,s=a.name,e.isLoading=!0,t.next=4,request.get(e.getUrl({namespace:o,cluster:c,name:s}));case 4:l=t.sent,e.detail=C(C({},N(l)),{},{workspace:r,namespace:o,cluster:c}),e.isLoading=!1;case 7:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()}}),y=(0,h.default)(v.prototype,"delete",[R.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(t){var a=t.name,r=t.cluster,n=t.workspace,o=t.zone;return e.submitting(request.delete(e.getDeleteUrl({namespace:o,name:a,cluster:r,workspace:n})))}}}),E=(0,h.default)(v.prototype,"batchDelete",[R.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(t,a){var r=a.namespace,n=a.cluster,o=a.workspace;return e.submitting(Promise.all(t.map((function(t){return request.delete(e.getDeleteUrl({namespace:r,cluster:n,workspace:o,name:t}))}))))}}}),v);t.default=I},1899:function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(4),r(23),r(24),r(17),r(62),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(28),r(42),r(4),r(23),r(57),r(24),r(17),r(62);var o,c=n(r(36)),s=n(r(37)),l=n(r(55)),i=n(r(56)),u=n(r(51)),d=n(r(26)),f=n(r(0)),p=r(239),m=r(317),h=n(r(961)),v=n(r(792)),g=n(r(1609));function _(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,u.default)(e);if(t){var n=(0,u.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,i.default)(this,a)}}var y=(0,p.inject)("rootStore")(o=(0,p.observer)(o=function(e){(0,l.default)(r,e);var a=_(r);function r(){var e;(0,c.default)(this,r);for(var t=arguments.length,n=new Array(t),o=0;o0&&void 0!==arguments[0]?arguments[0]:{};return"".concat(e.listApiVersion).concat(e.getPath(t),"/").concat(e.module)},e}return(0,d.default)(r,[{key:"fetchList",value:(t=(0,i.default)(n.default.mark((function e(){var t,a,r,c,l,i,u,d,f,p=this,m=arguments;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=m.length>0&&void 0!==m[0]?m[0]:{},a=t.cluster,r=t.workspace,c=t.namespace,l=t.more,i=t.devops,u=(0,s.default)(t,["cluster","workspace","namespace","more","devops"]),this.list.isLoading=!0,u.sortBy||void 0!==u.ascending||(u.sortBy=v.LIST_DEFAULT_ORDER[this.module]||"createTime"),u.limit!==1/0&&-1!==u.limit||(u.limit=-1,u.page=1),u.limit=u.limit||10,u.page=u.page||1,e.next=8,request.get(this.getListResourceUrl({cluster:a,workspace:r,namespace:c,devops:i}),this.getFilterParams(u));case 8:return d=e.sent,f=((0,g.default)(d,"items")||[]).map((function(e){return E({cluster:a,namespace:c},p.mapper(e))})),this.list.update(E(E({data:l?[].concat((0,o.default)(this.list.data),(0,o.default)(f)):f,total:d.totalItems||d.total_count||f.length||0},u),{},{limit:Number(u.limit)||10,page:Number(u.page)||1,isLoading:!1},this.list.silent?{}:{selectedRowKeys:[]})),e.abrupt("return",f);case 12:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})},{key:"rollBack",value:function(e,t){e.module;var a=(0,s.default)(e,["module"]);return this.submitting(request.patch(this.getDetailUrl(a),t))}},{key:"listApiVersion",get:function(){return"apis/aggregated.springcloud.kubesphere.io/v1alpha1"}}]),r}(r(a(1053)).default),(0,h.default)(l.prototype,"fetchList",[_.action],Object.getOwnPropertyDescriptor(l.prototype,"fetchList"),l.prototype),(0,h.default)(l.prototype,"rollBack",[_.action],Object.getOwnPropertyDescriptor(l.prototype,"rollBack"),l.prototype),l);t.default=S},1901:function(e,t,a){"use strict";var r=a(20);a(12),a(5),a(11),a(6),a(18),a(27),a(9),a(13),a(10),a(4),a(23),a(17),a(7),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(12),a(45),a(5),a(11),a(6),a(18),a(28),a(42),a(27),a(34),a(15),a(9),a(13),a(10),a(4),a(22),a(23),a(57),a(17),a(7);var n=r(a(43)),o=r(a(61)),c=r(a(30)),s=r(a(58));a(41);var l,i=r(a(44)),u=r(a(36)),d=r(a(37)),f=r(a(55)),p=r(a(56)),m=r(a(51)),h=r(a(49)),v=r(a(26)),g=a(72),_=a(14);function y(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function E(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};return"".concat(e.listApiVersion).concat(e.getPath(t),"/").concat(e.module)},e}return(0,d.default)(r,[{key:"fetchList",value:(t=(0,i.default)(n.default.mark((function e(){var t,a,r,c,l,i,u,d,f,p=this,m=arguments;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=m.length>0&&void 0!==m[0]?m[0]:{},a=t.cluster,r=t.workspace,c=t.namespace,l=t.more,i=t.devops,u=(0,s.default)(t,["cluster","workspace","namespace","more","devops"]),this.list.isLoading=!0,u.sortBy||void 0!==u.ascending||(u.sortBy=g.LIST_DEFAULT_ORDER[this.module]||"createTime"),u.limit!==1/0&&-1!==u.limit||(u.limit=-1,u.page=1),u.limit=u.limit||10,u.page=u.page||1,e.next=8,request.get(this.getListResourceUrl({cluster:a,workspace:r,namespace:c,devops:i}),this.getFilterParams(u));case 8:return d=e.sent,f=((0,v.default)(d,"items")||[]).map((function(e){return E({cluster:a,namespace:c},p.mapper(e))})),this.list.update(E(E({data:l?[].concat((0,o.default)(this.list.data),(0,o.default)(f)):f,total:d.totalItems||d.total_count||f.length||0},u),{},{limit:Number(u.limit)||10,page:Number(u.page)||1,isLoading:!1},this.list.silent?{}:{selectedRowKeys:[]})),e.abrupt("return",f);case 12:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})},{key:"listApiVersion",get:function(){return"apis/aggregated.springcloud.kubesphere.io/v1alpha1"}}]),r}(r(a(1053)).default),(0,h.default)(l.prototype,"fetchList",[_.action],Object.getOwnPropertyDescriptor(l.prototype,"fetchList"),l.prototype),l);t.default=S},1902:function(e,t,a){e.exports={listWrapper:"_306SJ8014hcSqWLICeoQA",item:"WDWTymPoLAk-NQaV-aiJT",col:"_3D8OkQ4Q7A-gzFzxd-vk68",statusBox:"_3qTllmrJpXsLHpT_-vq2bz",taints:"_1QLp3UgzsreIUcdgtIi6PQ",overview:"_1_WQtAn7QzNo8GxtaUlItg",resource:"QKy3dkJINg9lS382QMPIE",name:"_2Bfv6QYK-ju5cdp3QTu_vM",status:"_1pqlIBzzPmu3gQVb79O-Y_",cpu:"_1sKADynqdyHmISVoZg-Ts8",pods:"_4a-eEXscRDVajQp1U3zb8",empty:"_2rmLYtfLiXo3OI9AFcR07S",icon:"_3ylajECHnbMgeDYGzkNFwb",title:"_3c9b_Ta0BkrA6TrJaCxqXI"}},1903:function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(42),r(4),r(23),r(57),r(17);var o,c=n(r(315)),s=n(r(36)),l=n(r(37)),i=n(r(55)),u=n(r(56)),d=n(r(51)),f=n(r(26)),p=n(r(74)),m=n(r(800)),h=n(r(0)),v=r(239),g=r(186),_=n(r(1684)),y=n(r(932)),E=n(r(318)),b=r(52),S=r(72),O=n(r(4672)),R=n(r(4674));function A(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,d.default)(e);if(t){var n=(0,d.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,u.default)(this,a)}}var k=(0,v.observer)(o=function(e){(0,i.default)(r,e);var a=A(r);function r(e){var n;return(0,s.default)(this,r),(n=a.call(this,e)).versionValidator=function(e,a,r){if(!a)return r();var o=(0,f.default)(n.formTemplate,"metadata.labels.app",""),c="".concat(o,"-").concat(a);n.workloadStore.checkName({name:c,namespace:n.namespace,cluster:n.props.cluster}).then((function(a){if(a.exist)return r({message:t("NEW_VERSION_NUMBER_EXIST_DESC",{name:c}),field:e.field});r()}))},n.handleVersionChange=(0,m.default)((function(e){var t=(0,f.default)(n.formTemplate,"metadata.labels.app",""),a="".concat(t,"-").concat(e);(0,p.default)(n.formTemplate,"metadata.name",a),(0,b.mergeLabels)(n.formTemplate,{version:e}),(0,p.default)(n.props.formTemplate,'strategy.metadata.annotations["servicemesh.kubesphere.io/newWorkloadName"]',a)}),200),n.module=(0,f.default)(e.formTemplate,'strategy.metadata.annotations["servicemesh.kubesphere.io/workloadType"]',"deployments"),n.workloadStore=new E.default(n.module),n}return(0,l.default)(r,[{key:"renderReplicasControl",value:function(){return h.default.createElement(g.Column,{className:"is-narrow"},h.default.createElement(g.Form.Item,{className:R.default.narrow,label:t("NEW_VERSION_NUMBER"),desc:t("NEW_VERSION_NUMBER_DESC"),rules:[{required:!0,message:t("NEW_VERSION_NUMBER_EMPTY_DESC")},{pattern:S.PATTERN_COMPONENT_VERSION,message:t("NEW_VERSION_NUMBER_INVALID_DESC")},{validator:this.versionValidator}]},h.default.createElement(g.Input,{name:"metadata.labels.version",onChange:this.handleVersionChange,disabled:this.isEdit,maxLength:16})),h.default.createElement("div",{className:R.default.specify},h.default.createElement(g.Form.Item,null,h.default.createElement(_.default,{name:"spec.replicas"}))))}},{key:"renderContainerList",value:function(){var e=(0,f.default)(this.formTemplate,"".concat(this.prefix,"spec"));return h.default.createElement(g.Column,null,h.default.createElement(g.Form.Item,{rules:[{validator:this.containersValidator}]},h.default.createElement(O.default,{className:R.default.containers,name:"".concat(this.prefix,"spec.containers"),onShow:this.showContainer,onDelete:this.handleDelete,specTemplate:e,disabled:this.isEdit})))}},{key:"render",value:function(){var e=this.props,t=e.formRef,a=e.formProps,r=this.state,n=r.showContainer,o=r.selectContainer;return n?this.renderContainerForm(o):h.default.createElement(g.Form,(0,c.default)({data:this.formTemplate,ref:t},a),h.default.createElement(g.Columns,null,this.renderReplicasControl(),this.renderContainerList()))}},{key:"formTemplate",get:function(){return this.props.formTemplate.workload||{}}},{key:"namespace",get:function(){return(0,f.default)(this.formTemplate,"metadata.namespace")}}]),r}(y.default))||o;a.default=k},1904:function(e,t,a){e.exports={list:"_1y7srBKDMimPCBz1ivcnXL",card:"_1CNnvTpcwGUSGgDJtaTxgE",inputs:"_3JM-KVcZd0CJ9NCBQTJ3r",limits:"_36BBL6z_siYtS2MY-CTltL",limit:"qFBDqsZYRUQVnqH4lnOAL"}},1905:function(e,t,a){"use strict";a(15);var r=a(20);a(4),a(23),a(17),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(45),a(42),a(4),a(23),a(57),a(17);var n,o=r(a(315)),c=r(a(36)),s=r(a(37)),l=r(a(55)),i=r(a(56)),u=r(a(51)),d=r(a(0)),f=a(239),p=r(a(26)),m=r(a(4675)),h=r(a(4686)),v=r(a(4690));function g(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,u.default)(e);if(t){var n=(0,u.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,i.default)(this,a)}}var _={Canary:m.default,Bluegreen:h.default,Mirror:v.default},y=(0,f.observer)(n=function(e){(0,l.default)(a,e);var t=g(a);function a(){return(0,c.default)(this,a),t.apply(this,arguments)}return(0,s.default)(a,[{key:"render",value:function(){var e=this.props,t=e.formRef,a=e.formProps,r=_[this.strategyType];return r?d.default.createElement(r,(0,o.default)({formRef:t,formTemplate:this.formTemplate},a)):null}},{key:"strategyType",get:function(){return(0,p.default)(this.formTemplate,"strategy.spec.type","")}},{key:"formTemplate",get:function(){return this.props.formTemplate}}]),a}(d.default.Component))||n;t.default=y},1906:function(e,a,r){"use strict";var n=r(20);r(12),r(5),r(11),r(6),r(84),r(18),r(16),r(9),r(13),r(10),r(4),r(23),r(24),r(17),r(85),r(62),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.Component=a.default=void 0,r(12),r(45),r(5),r(11),r(6),r(84),r(18),r(28),r(42),r(16),r(34),r(15),r(9),r(13),r(10),r(4),r(23),r(57),r(24),r(17),r(85),r(62),r(7);var o=n(r(30)),c=n(r(36)),s=n(r(37)),l=n(r(55)),i=n(r(56)),u=n(r(51)),d=n(r(63)),f=n(r(0)),p=r(186),m=r(239),h=n(r(240)),v=n(r(833)),g=n(r(4692)),_=n(r(1444)),y=n(r(4702)),E=n(r(1446));function b(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function S(e){for(var t=1;t0&&void 0!==E[0]?E[0]:{},r=a.limit,c=void 0===r?10:r,s=a.page,l=void 0===s?1:s,i=a.workspace,u=a.cluster,d=a.namespace,a.more,a.status,f=a.reverse,p=a.id,m=a.app_id,h=(0,o.default)(a,["limit","page","workspace","cluster","namespace","more","status","reverse","id","app_id"]),e.list.isLoading=!0,v=[],m!==C.RadonDBAppId.PostgreSQL){t.next=10;break}return t.next=6,request.get(e.getUrl({app_id:m,workspace:i,namespace:d,cluster:u,cluster_id:p}));case 6:g=t.sent,v=(0,O.default)(g,"status.backups_list",[]).reverse(),t.next=14;break;case 10:return t.next=12,request.get(e.getUrl({app_id:m,workspace:i,namespace:d,cluster:u,cluster_id:p}));case 12:_=t.sent,v=_.items?_.items.sort((function(e,t){return new Date(t.metadata.creationTimestamp).getTime()-new Date(e.metadata.creationTimestamp).getTime()})):[];case 14:return y=v.map((function(e){return w(w({},L(e,{app_id:m,workspace:i,namespace:d,cluster:u})),{},{cluster:u})})).filter((function(e){return!h.keyword||(0,O.default)(e,"name","").includes(h.keyword)})),Object.assign(e.list,{data:y.slice((l-1)*c,l*c),total:y.length,limit:Number(c)||10,page:Number(l)||1,reverse:f,filters:h,selectedRowKeys:[]}),e.list.isLoading=!1,t.abrupt("return",y);case 18:case"end":return t.stop()}}),t)})))}}),_=(0,m.default)(v.prototype,"add",[S.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(){var t=(0,c.default)(n.default.mark((function t(a){var r,o,c,s,l,i,u,d,f,p,m,h,v,g,_;return n.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:r=a.name,o=a.namespace,c=a.cluster_id,s=a.alias,l=a.image,t.t0=a.app_id,t.next=t.t0===C.RadonDBAppId.MySQL?4:t.t0===C.RadonDBAppId.PostgreSQL?14:38;break;case 4:return i=JSON.parse(JSON.stringify(x)),(0,R.default)(i,"metadata.name","".concat(c.substring(0,30),"-").concat(r)),(0,R.default)(i,"metadata.namespace",o),(0,R.default)(i,'metadata.annotations["kubesphere.io/alias-name"]',s),(0,R.default)(i,"spec.clusterName",c),(0,R.default)(i,'metadata.labels["cluster"]',c),(0,R.default)(i,"spec.image",l),t.next=13,request.post(e.getUrl(a),i);case 13:return t.abrupt("break",39);case 14:return u=window.atob||D.safeAtob,t.next=17,request.get((0,P.getManifestApi)(a));case 17:return d=t.sent,t.next=20,request.get((0,P.getDmpSecrets)({namespace:"dmp-system",cluster_id:"dmp-managed-s3-secret"}));case 20:return f=t.sent,p=u((0,O.default)(f,"data.s3-access-key")),m=u((0,O.default)(f,"data.s3-secret-key")),h=u((0,O.default)(f,"data.pg-s3-bucket")),v=u((0,O.default)(f,"data.s3-endpoint")),g=JSON.parse(d.customResource),_=(0,O.default)(g,"spec.backupCluster.backupToS3.manual.trigger-id",1),(0,R.default)(g,"spec.S3.ACCESS_KEY",p),(0,R.default)(g,"spec.S3.SECRET_KEY",m),(0,R.default)(g,"spec.S3.BUCKET",h),(0,R.default)(g,"spec.S3.ENDPOINT",v),(0,R.default)(g,"spec.S3.PATH","".concat(o,"/backup")),(0,R.default)(g,"spec.backupCluster.backupToS3.manual.trigger-id",_+1),d.customResource=JSON.stringify(g),d.version+=1,t.next=37,request.put((0,P.getManifestApi)(a),d);case 37:case 38:return t.abrupt("break",39);case 39:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()}}),y=(0,m.default)(v.prototype,"delete",[S.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(){var t=(0,c.default)(n.default.mark((function t(a){var r,o,c;return n.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:t.t0=a.app_id,t.next=t.t0===C.RadonDBAppId.MySQL?3:t.t0===C.RadonDBAppId.PostgreSQL?6:17;break;case 3:return t.next=5,request.delete(e.getUrl(a));case 5:return t.abrupt("break",18);case 6:return r=(0,P.getManifestApi)(w(w({},a),{},{cluster_id:a.id})),t.next=9,request.get(r);case 9:return o=t.sent,c=JSON.parse(o.customResource),(0,R.default)(c,"spec.backupToDelete","".concat(Date.now(),"|").concat(a.name)),o.customResource=JSON.stringify(c),o.version+=1,t.next=16,request.put(r,o);case 16:case 17:return t.abrupt("break",18);case 18:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()}}),E=(0,m.default)(v.prototype,"batchDelete",[S.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return function(){var e=(0,c.default)(n.default.mark((function e(t){var a,r,c,s,l,i;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=t.selectedItems,r=void 0===a?[]:a,c=(0,o.default)(t,["selectedItems"]),s=(0,P.getManifestApi)(w(w({},c),{},{cluster_id:c.id})),e.next=4,request.get(s);case 4:l=e.sent,e.t0=c.app_id,e.next=e.t0===C.RadonDBAppId.PostgreSQL?8:15;break;case 8:return i=JSON.parse(l.customResource),(0,R.default)(i,"spec.backupToDelete","".concat(Date.now(),"|").concat(r.map((function(e){return e.name})).join("|"))),l.customResource=JSON.stringify(i),l.version+=1,e.next=14,request.put(s,l);case 14:case 15:return e.abrupt("break",16);case 16:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()}}),b=(0,m.default)(v.prototype,"autoBackup",[S.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return function(){var e=(0,c.default)(n.default.mark((function e(t){var a,r,c,s,l,i,u;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=t.backupSchedule,r=t.retentionTime,c=(0,o.default)(t,["backupSchedule","retentionTime"]),s=(0,P.getManifestApi)(c),e.next=4,request.get(s);case 4:l=e.sent,e.t0=c.app_id,e.next=e.t0===C.RadonDBAppId.PostgreSQL?8:e.t0===C.RadonDBAppId.MySQL?15:22;break;case 8:return i=JSON.parse(l.customResource),""!==a?((0,R.default)(i,"spec.backupCluster.backupToS3.cron.enable",!0),(0,R.default)(i,"spec.backupCluster.backupToS3.cron.schedule",a),(0,R.default)(i,"spec.backupCluster.backupToS3.policy.retention","RECOVERY WINDOW OF ".concat(r," DAYS"))):((0,k.default)(i,"spec.backupCluster.backupToS3.cron"),(0,R.default)(i,"spec.backupCluster.backupToS3.policy.retention","REDUNDANCY 10")),l.customResource=JSON.stringify(i),l.version+=1,e.next=14,request.put(s,l);case 14:return e.abrupt("break",23);case 15:return u=JSON.parse(l.customResource),(0,R.default)(u,"spec.backupSchedule",a?"0 ".concat(a):""),l.customResource=JSON.stringify(u),l.version+=1,e.next=21,request.put(s,l);case 21:case 22:return e.abrupt("break",23);case 23:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()}}),v);t.default=j},1927:function(e,t,a){"use strict";var r=a(20);a(12),a(5),a(11),a(31),a(6),a(84),a(73),a(18),a(87),a(48),a(16),a(27),a(931),a(137),a(98),a(9),a(13),a(10),a(4),a(23),a(24),a(17),a(85),a(64),a(136),a(75),a(818),a(7),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(12),a(249),a(45),a(5),a(11),a(31),a(6),a(84),a(73),a(18),a(28),a(87),a(48),a(191),a(42),a(16),a(159),a(27),a(931),a(137),a(34),a(15),a(98),a(9),a(13),a(10),a(4),a(22),a(23),a(57),a(24),a(193),a(17),a(85),a(64),a(75),a(818),a(7);var n=r(a(58)),o=r(a(96)),c=r(a(30)),s=r(a(43));a(41);var l,i,u,d=r(a(44)),f=r(a(65)),p=r(a(36)),m=r(a(37)),h=r(a(88)),v=r(a(55)),g=r(a(56)),_=r(a(51)),y=r(a(49)),E=(r(a(66)),a(14)),b=r(a(26)),S=r(a(74)),O=r(a(189)),R=r(a(63)),A=r(a(902)),k=r(a(895)),T=r(a(1023)),D=r(a(4787)),C=r(a(4788)),P=r(a(242)),N=r(a(158)),I=r(a(458)),w=a(1245),x=a(815),M=a(4814),L=a(1015),j=a(1093);function U(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function B(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.workspace,a=e.namespace,r=e.cluster,n=e.cluster_id;return(0,L.getManifestApi)({workspace:t,namespace:a,cluster:r,cluster_id:n})},(0,f.default)(e,"fetchList",i,(0,h.default)(e)),(0,f.default)(e,"updateParams",u,(0,h.default)(e)),e.updateCKParams=function(){var t=(0,d.default)(s.default.mark((function t(a){var r,n,o,c,l,i,u,d,f;return s.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=a.workspace,n=a.cluster_id,o=a.cluster,c=a.namespace,l=a.params,t.next=3,request.get(e.getUrl({workspace:r,namespace:c,cluster:o,cluster_id:n}));case 3:if(i=t.sent,u=JSON.parse(i.customResource),!(0,R.default)(l)){t.next=7;break}return t.abrupt("return");case 7:return d=l.max_memory_usage,(f=l.max_server_memory_usage)&&(0,S.default)(u,"spec.configuration.settings.max_server_memory_usage",f),d&&(0,S.default)(u,'spec.configuration.profiles["default/max_memory_usage"]',d),i.customResource=JSON.stringify(u),i.version+=1,t.next=14,request.put(e.getUrl({workspace:r,namespace:c,cluster:o,cluster_id:n}),i);case 14:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),e.updatePGParams=function(){var t=(0,d.default)(s.default.mark((function t(a){var r,n,c,l,i,u,d,f,p,m,h;return s.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=a.workspace,n=a.cluster_id,c=a.cluster,l=a.namespace,i=a.params,t.next=3,request.get(e.getUrl({workspace:r,namespace:l,cluster:c,cluster_id:n}));case 3:if(u=t.sent,d=JSON.parse(u.customResource),f=(0,b.default)(d,"spec.postgresql.configs"),p=e.getPGParamsByConfig(f),55555!==(m=B({},i)).port){t.next=10;break}throw new Error("PG_PORT_FORBIDDEN_ERROR");case 10:return m.port&&m.port!==p.port&&((0,S.default)(d,"spec.services[1].spec.ports[0].port",m.port),(0,S.default)(d,"spec.services[2].spec.ports[0].port",m.port)),["shared_buffers","temp_buffers","work_mem","wal_buffers","maintenance_work_mem","wal_writer_flush_after"].forEach((function(e){m[e]&&(m[e]+="MB")})),["bgwriter_flush_after"].forEach((function(e){m[e]&&(m[e]+="kB")})),h=Object.entries(B(B({},p),m)).map((function(e){var t=(0,o.default)(e,2),a=t[0],r=t[1];return"".concat(a,"=").concat(r)})),(0,S.default)(d,"spec.postgresql.configs",h),u.customResource=JSON.stringify(d),u.version+=1,t.next=21,request.put(e.getUrl({workspace:r,namespace:l,cluster:c,cluster_id:n}),u);case 21:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),e.updateMySQLParams=function(){var t=(0,d.default)(s.default.mark((function t(a){var r,n,o,c,l,i,u,d;return s.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=a.workspace,n=a.cluster_id,o=a.cluster,c=a.namespace,l=a.params,t.next=3,request.get(e.getUrl({workspace:r,namespace:c,cluster:o,cluster_id:n}));case 3:return i=t.sent,u=JSON.parse(i.customResource),d=(0,b.default)(u,"spec.mysqlOpts.mysqlConf"),Object.keys(l).forEach((function(e){l[e]=l[e].toString()})),(0,S.default)(u,"spec.mysqlOpts.mysqlConf",B(B({},d),l)),i.customResource=JSON.stringify(u),i.version+=1,t.next=12,request.put(e.getUrl({workspace:r,namespace:c,cluster:o,cluster_id:n}),i);case 12:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),e.getParamsFromMongoYaml=function(e){return{port:(0,b.default)(e,"spec.additionalMongodConfig.net.port"),oplogSizeMB:(0,b.default)(e,"spec.additionalMongodConfig.replication.oplogSizeMB"),maxIncomingConnections:(0,b.default)(e,"spec.additionalMongodConfig.net.maxIncomingConnections"),cursorTimeoutMillis:(0,b.default)(e,"spec.additionalMongodConfig.setParameter.cursorTimeoutMillis"),profilingMode:(0,b.default)(e,"spec.additionalMongodConfig.operationProfiling.mode"),slowOpThresholdMs:(0,b.default)(e,"spec.additionalMongodConfig.operationProfiling.slowOpThresholdMs"),enableMajorityReadConcern:(0,b.default)(e,"spec.additionalMongodConfig.replication.enableMajorityReadConcern",!0).toString(),commandVerbosity:(0,b.default)(e,"spec.additionalMongodConfig.systemLog.component.command.verbosity",0).toString(),indexVerbosity:(0,b.default)(e,"spec.additionalMongodConfig.systemLog.component.index.verbosity",0).toString(),queryVerbosity:(0,b.default)(e,"spec.additionalMongodConfig.systemLog.component.query.verbosity",0).toString(),networkVerbosity:(0,b.default)(e,"spec.additionalMongodConfig.systemLog.component.network.verbosity",0).toString(),writeVerbosity:(0,b.default)(e,"spec.additionalMongodConfig.systemLog.component.write.verbosity",0).toString()}},e.updateMongoParams=function(){var t=(0,d.default)(s.default.mark((function t(a){var r,n,o,c,l,i,u,d,f,p,m,h,v,g,_,y,E,b,O,R,A;return s.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=a.workspace,n=a.cluster_id,o=a.cluster,c=a.namespace,l=a.params,t.next=3,request.get(e.getUrl({workspace:r,namespace:c,cluster:o,cluster_id:n}));case 3:return i=t.sent,u=JSON.parse(i.customResource),d=e.getParamsFromMongoYaml(u),f=B(B({},d),l),p=f.port,m=f.oplogSizeMB,h=f.maxIncomingConnections,v=f.cursorTimeoutMillis,g=f.profilingMode,_=f.slowOpThresholdMs,y=f.enableMajorityReadConcern,E=f.commandVerbosity,b=f.indexVerbosity,O=f.queryVerbosity,R=f.networkVerbosity,A=f.writeVerbosity,(0,S.default)(u,"spec.additionalMongodConfig.net.port",p),(0,S.default)(u,"spec.additionalMongodConfig.replication.oplogSizeMB",m),(0,S.default)(u,"spec.additionalMongodConfig.net.maxIncomingConnections",h),(0,S.default)(u,"spec.additionalMongodConfig.setParameter.cursorTimeoutMillis",v),(0,S.default)(u,"spec.additionalMongodConfig.operationProfiling.mode",g),(0,S.default)(u,"spec.additionalMongodConfig.operationProfiling.slowOpThresholdMs",_),(0,S.default)(u,"spec.additionalMongodConfig.replication.enableMajorityReadConcern","true"===y),(0,S.default)(u,"spec.additionalMongodConfig.systemLog.component.command.verbosity",Number(E)),(0,S.default)(u,"spec.additionalMongodConfig.systemLog.component.index.verbosity",Number(b)),(0,S.default)(u,"spec.additionalMongodConfig.systemLog.component.query.verbosity",Number(O)),(0,S.default)(u,"spec.additionalMongodConfig.systemLog.component.network.verbosity",Number(R)),(0,S.default)(u,"spec.additionalMongodConfig.systemLog.component.write.verbosity",Number(A)),i.customResource=JSON.stringify(u),i.version+=1,t.next=23,request.put(e.getUrl({workspace:r,namespace:c,cluster:o,cluster_id:n}),i);case 23:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),e.updateECKParams=function(){var t=(0,d.default)(s.default.mark((function t(a){var r,n,o,c,l,i,u;return s.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=a.workspace,n=a.cluster_id,o=a.cluster,c=a.namespace,l=a.params,t.next=3,request.get(e.getUrl({workspace:r,namespace:c,cluster:o,cluster_id:n}));case 3:return i=t.sent,u=JSON.parse(i.customResource),Object.keys(l).forEach((function(e){["action.destructive_requires_name","http.cors.enabled"].includes(e)&&(l[e]="true"===l[e])})),(0,b.default)(u,"spec.nodeSets",[]).forEach((function(e){var t=(0,b.default)(e,"config",{});(0,S.default)(e,"config",B(B({},t),l))})),i.customResource=JSON.stringify(u),i.version+=1,t.next=12,request.put(e.getUrl({workspace:r,namespace:c,cluster:o,cluster_id:n}),i);case 12:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),e.updateLogStashConfig=function(){var t=(0,d.default)(s.default.mark((function t(a,r){var n,o,c,l,i,u,d,f,p,m,h,v,g,_,y;return s.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=r.namespace,o=r.cluster,c=r.cluster_id,l={},i=/^logstash./,(0,k.default)(a,(function(e,t){if(i.test(t)){var r=t.replace(i,"");l[r]=e,delete a[t]}})),!(0,T.default)(l)){t.next=19;break}return t.next=7,e.getLogstashParams({namespace:n,cluster:o,cluster_id:c});case 7:return u=t.sent,d=u.oldConfig,f=u.configMap,p=(0,A.default)({},d.logstash,l),(m=(0,b.default)(p,"jvm",0))&&(h=(0,b.default)(f,"spec.podTemplate.spec.containers[0].resources.limits.memory"),v=(0,w.convertToMebiBytes)(h),g=(0,D.default)(v*(m/100)),(0,S.default)(f,"spec.config.jvm","-Xms".concat(g,"m -Xmx").concat(g,"m")),delete p.jvm),_=[],(0,k.default)(p,(function(e,t){_.push({name:t,value:String(e)})})),(0,S.default)(f,"spec.config.logstashConfig",_),y="apis".concat(globals.app.isMultiCluster&&o?"/clusters/".concat(o):"","/opensearch.opster.io/v1/namespaces/").concat(n,"/logstashes/").concat(c),t.next=19,request.put(y,f);case 19:case"end":return t.stop()}}),t)})));return function(e,a){return t.apply(this,arguments)}}(),e.updateOpenSearchParams=function(){var t=(0,d.default)(s.default.mark((function t(a){var r,n,o,c,l,i,u,d;return s.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=a.workspace,n=a.cluster_id,o=a.cluster,c=a.namespace,l=a.params,t.next=3,request.get(e.getUrl({workspace:r,namespace:c,cluster:o,cluster_id:n}));case 3:return i=t.sent,u=JSON.parse(i.customResource),Object.keys(l).forEach((function(e){["action.destructive_requires_name","http.cors.enabled"].includes(e)&&(l[e]="true"===l[e])})),Object.keys(l).forEach((function(e){["thread_pool.write.queue_size","thread_pool.search.queue_size","action.destructive_requires_name","http.cors.enabled"].includes(e)&&(l[e]=String(l[e]))})),d=(0,b.default)(u,"spec.general.additionalConfig",{}),t.next=10,e.updateLogStashConfig(l,{namespace:c,cluster:o,cluster_id:n});case 10:return(0,S.default)(u,"spec.general.additionalConfig",B(B({},d),l)),i.customResource=JSON.stringify(u),i.version+=1,t.next=15,request.put(e.getUrl({workspace:r,namespace:c,cluster:o,cluster_id:n}),i);case 15:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),e.updateKafkaParams=function(){var t=(0,d.default)(s.default.mark((function t(a){var r,o,c,l,i,u,d,f,p,m,h,v,g,_,y,E,O,R;return s.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=a.workspace,o=a.cluster_id,c=a.cluster,l=a.namespace,i=a.nodeRole,u=a.params,t.next=3,request.get(e.getUrl({workspace:r,namespace:l,cluster:c,cluster_id:o}));case 3:if(d=t.sent,f=JSON.parse(d.customResource),p=u.tls,m=u.authentication,h=u.nodePort,v=u.jmxOptions,g=(0,n.default)(u,["tls","authentication","nodePort","jmxOptions"]),!(_=(0,b.default)(f,"spec.kafka.listeners[0"))){t.next=25;break}if(y=(0,b.default)(_,"authentication.type"),E=m||y,!p){t.next=14;break}if("false"!==p||"tls"!==E){t.next=13;break}throw new Error("KAFKA_EDIT_PARAMS_ERROR");case 13:(0,S.default)(_,"tls","true"===p);case 14:if(!m){t.next=24;break}if("no"!==m){t.next=20;break}delete _.authentication,delete f.spec.kafka.authorization,t.next=24;break;case 20:if("tls"!==m||_.tls){t.next=22;break}throw new Error("KAFKA_EDIT_PARAMS_ERROR");case 22:(0,S.default)(f,"spec.kafka.authorization",(0,b.default)(j.kafkaYaml.resources,"spec.kafka.authorization")),(0,S.default)(_,"authentication.type",m);case 24:h&&(0,S.default)(_,"type","true"===h?"nodeport":"internal");case 25:return Object.keys(g).forEach((function(e){"log.cleaner.enable"===e&&(g[e]="true"===g[e])})),"kafka"===i?(O=(0,b.default)(f,"spec.kafka.config",{}),(0,S.default)(f,"spec.kafka.config",B(B({},O),g)),"password"===v?(0,S.default)(f,"spec.kafka.jmxOptions.authentication.type","password"):"enable"===v?(0,S.default)(f,"spec.kafka.jmxOptions",{}):(0,P.default)(f,"spec.kafka.jmxOptions")):(R=(0,b.default)(f,"spec.zookeeper.config",{}),(0,S.default)(f,"spec.zookeeper.config",B(B({},R),g)),"password"===v?(0,S.default)(f,"spec.zookeeper.jmxOptions.authentication.type","password"):"enable"===v?(0,S.default)(f,"spec.zookeeper.jmxOptions",{}):(0,P.default)(f,"spec.zookeeper.jmxOptions")),d.customResource=JSON.stringify(f),d.version+=1,t.next=31,request.put(e.getUrl({workspace:r,namespace:l,cluster:c,cluster_id:o}),d);case 31:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),e}return(0,m.default)(g,[{key:"getParamsFromYamlJSON",value:(c=(0,d.default)(s.default.mark((function e(t,a){var r,n,c,l,i,u,d,f,p,m,h,v,g,_,y,E,S,O,R,k,T,D,C,P,I,w;return s.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this.app_id=(0,x.getAppIdByKind)(t.kind),e.t0=this.app_id,e.next=e.t0===x.RadonDBAppId.ClickHouse?4:e.t0===x.RadonDBAppId.PostgreSQL?11:e.t0===x.RadonDBAppId.MySQL?16:e.t0===x.RadonDBAppId.MongoDB?17:e.t0===x.RadonDBAppId.RedisCluster||e.t0===x.RadonDBAppId.RedisSentinel?18:e.t0===x.RadonDBAppId.Elasticsearch?26:e.t0===x.RadonDBAppId.Kafka?28:e.t0===x.RadonDBAppId.OpenSearch?38:45;break;case 4:return r=(0,b.default)(t,"spec.templates.serviceTemplates[0].spec.ports"),n=(0,b.default)(t,"spec.configuration.clusters[0].layout"),c=n.replicasCount,l=r.find((function(e){return"http"===e.name})),i=r.find((function(e){return"tcp"===e.name})),u=(0,b.default)(t,"spec.configuration.settings.max_server_memory_usage",18e8),d=(0,b.default)(t,'spec.configuration.profiles["default/max_memory_usage"]',2e8),e.abrupt("return",(0,M.getCKParams)({replicasCount:c,httpPort:l,tcpPort:i,max_server_memory_usage:u,max_memory_usage:d}));case 11:return f=(0,b.default)(t,"spec.postgresql.configs",[]),p=(0,b.default)(t,"spec.autofailover.podspec.containers[0].image",""),m=(0,b.default)(Object.entries(x.PGImage).find((function(e){var t=(0,o.default)(e,2)[1];return p.startsWith(t)})),"[0]"),h=this.getPGParamsByConfig(f),e.abrupt("return",(0,M.getPGParams)(B(B({},h),{},{pgVersion:m})));case 16:return e.abrupt("return",(0,M.getMySQLParams)((0,b.default)(t,"spec.mysqlOpts.mysqlConf")));case 17:return e.abrupt("return",(0,M.getMongoDBParams)(this.getParamsFromMongoYaml(t)));case 18:return e.next=20,this.getRedisParams(a);case 20:if(v=e.sent,"7.0.4"!==(0,b.default)(t,"spec.kubernetesConfig.redisVersion")){e.next=25;break}return g="hostname"===(0,b.default)(t,"spec.kubernetesConfig.endpointType"),e.abrupt("return",(0,M.getRedisParams)(B(B({},v),{},{endpointType:g})));case 25:return e.abrupt("return",(0,M.getRedisParams)(v).slice(1,-1));case 26:return _=(0,b.default)(t,"spec.nodeSets[0].config",{}),e.abrupt("return",(0,M.getECKParams)(_));case 28:return y=a.nodeRole,E=(0,b.default)(t,"spec.".concat(y,".config"),{}),S=(0,b.default)(t,"spec.kafka.listeners[0]",{}),O=S.tls,R=S.authentication?S.authentication.type:"no",k="nodeport"===S.type,T=(0,b.default)(t,"spec.".concat(y,".jmxOptions")),D="disable",D="password"===(0,b.default)(T,"authentication.type")?"password":(0,N.default)(T)?"disable":"enable",e.abrupt("return",(0,M.getKafkaParams)(B(B({},E),{},{tls:O,authentication:R,nodePort:k,jmxOptions:D}),y));case 38:return C=(0,b.default)(t,"spec.general.additionalConfig",{}),e.next=41,this.getLogstashParams(a);case 41:return P=e.sent,I=P.oldConfig,w=(0,A.default)({},I,C),e.abrupt("return",(0,M.getOpenSearchParams)(w));case 45:return e.abrupt("return",[]);case 46:case"end":return e.stop()}}),e,this)}))),function(e,t){return c.apply(this,arguments)})},{key:"getPGParamsByConfig",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.reduce((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",a=t.trim().split("="),r=(0,o.default)(a,2),n=r[0],c=r[1];if(n){var s=Number(c);e[n]=Number.isNaN(s)?c:s}return e}),{})}},{key:"getRedisParams",value:(r=(0,d.default)(s.default.mark((function e(t){var a,r,n,o,c,l;return s.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=t.namespace,r=t.cluster,n=t.cluster_id,o="api".concat(globals.app.isMultiCluster&&r?"/clusters/".concat(r):"","/v1/namespaces/").concat(a,"/configmaps/").concat(n,"-external-config"),e.next=4,request.get(o);case 4:return c=e.sent,l=(0,b.default)(c,'data["redis-external.conf"]',""),e.abrupt("return",this.configMapToObject(l));case 7:case"end":return e.stop()}}),e,this)}))),function(e){return r.apply(this,arguments)})},{key:"getLogstashParams",value:(a=(0,d.default)(s.default.mark((function e(t){var a,r,n,o,c,l,i,u,d,f,p,m,h;return s.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=t.namespace,r=t.cluster,n=t.cluster_id,o="apis".concat(globals.app.isMultiCluster&&r?"/clusters/".concat(r):"","/opensearch.opster.io/v1/namespaces/").concat(a,"/logstashes/").concat(n),e.next=4,request.get(o);case 4:return c=e.sent,l=(0,b.default)(c,"spec.config",{}),i=(0,b.default)(l,"logstashConfig",[]),u=(0,b.default)(l,"jvm",""),d=(0,b.default)(c,"spec.podTemplate.spec.containers[0].resources.limits.memory"),f=(0,w.convertToMebiBytes)(d),p=(0,w.convertJVMToMemoryMebiBytes)(u),m={},(0,k.default)(i,(function(e){var t=(0,b.default)(e,"name",""),a=(0,b.default)(e,"value","");m[t]=a})),(0,S.default)(m,"jvm",(0,C.default)(p/f*100)||50),h=(0,A.default)({},{logstash:m}),e.abrupt("return",{oldConfig:h,configMap:c});case 17:case"end":return e.stop()}}),e)}))),function(e){return a.apply(this,arguments)})},{key:"configMapToObject",value:function(e){var t={};return e.split("\n").forEach((function(e){var a=e.toString().trim().split(" "),r=(0,o.default)(a,2),n=r[0],c=r[1];n&&(t[n]=c)})),t}},{key:"updateRedisParam",value:(t=(0,d.default)(s.default.mark((function e(t){var a,r,n,o,c,l,i,u,d,f,p,m,h,v,g;return s.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=t.workspace,r=t.cluster_id,n=t.cluster,o=t.namespace,c=t.params,l="api".concat(globals.app.isMultiCluster&&n?"/clusters/".concat(n):"","/v1/namespaces/").concat(o,"/configmaps/").concat(r,"-external-config"),e.next=4,request.get(l);case 4:if(i=e.sent,u=(0,b.default)(i,'data["redis-external.conf"]',""),d=this.configMapToObject(u),"number"==typeof(f=c.maxmemory)&&(c.maxmemory="".concat(f,"MB")),"number"==typeof(p=c["repl-backlog-size"])&&(c["repl-backlog-size"]="".concat(p,"mb")),!c.endpointType){e.next=27;break}return e.next=14,request.get(this.getUrl({workspace:a,namespace:o,cluster:n,cluster_id:r}));case 14:if(m=e.sent,h=JSON.parse(m.customResource),"true"!==c.endpointType){e.next=22;break}if(!((0,b.default)(h,"spec.redisProxy.replicas")>0)){e.next=19;break}throw new Error("ENDPOINT_TYPE_ERROR");case 19:(0,S.default)(h,"spec.kubernetesConfig.endpointType","hostname"),e.next=23;break;case 22:(0,S.default)(h,"spec.kubernetesConfig",(0,O.default)((0,b.default)(h,"spec.kubernetesConfig"),"endpointType"));case 23:return m.customResource=JSON.stringify(h),m.version+=1,e.next=27,request.put(this.getUrl({workspace:a,namespace:o,cluster:n,cluster_id:r}),m);case 27:return v=B(B({},d),(0,O.default)(c,"endpointType")),g=Object.entries(v).map((function(e){return e.join(" ")})).join("\n"),(0,S.default)(i,'data["redis-external.conf"]',g),e.next=32,request.put(l,i);case 32:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})}]),g}(I.default),i=(0,y.default)(l.prototype,"fetchList",[E.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(){var t=(0,d.default)(s.default.mark((function t(a){var r,n,o,c,l,i,u,d,f,p;return s.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=a.workspace,n=a.namespace,o=a.cluster,c=a.cluster_id,l=a.keyword,i=a.nodeRole,e.list.isLoading=!0,t.next=4,request.get(e.getUrl({workspace:r,namespace:n,cluster:o,cluster_id:c}));case 4:return u=t.sent,d=JSON.parse(u.customResource),t.next=8,e.getParamsFromYamlJSON(d,{workspace:r,namespace:n,cluster:o,cluster_id:c,nodeRole:i});case 8:f=t.sent,p={},l&&(f=f.filter((function(e){return e.name.includes(l)})),p={keyword:l}),Object.assign(e.list,{data:f,total:f.length,filters:p,isLoading:!1,selectedRowKeys:[]});case 12:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()}}),u=(0,y.default)(l.prototype,"updateParams",[E.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(){var t=(0,d.default)(s.default.mark((function t(a){return s.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:t.t0=e.app_id||a.app_id,t.next=t.t0===x.RadonDBAppId.ClickHouse?3:t.t0===x.RadonDBAppId.PostgreSQL?6:t.t0===x.RadonDBAppId.MySQL?9:t.t0===x.RadonDBAppId.MongoDB?12:t.t0===x.RadonDBAppId.RedisCluster||t.t0===x.RadonDBAppId.RedisSentinel?15:t.t0===x.RadonDBAppId.Elasticsearch?18:t.t0===x.RadonDBAppId.Kafka?21:t.t0===x.RadonDBAppId.OpenSearch?24:27;break;case 3:return t.next=5,e.updateCKParams(a);case 5:return t.abrupt("break",28);case 6:return t.next=8,e.updatePGParams(a);case 8:return t.abrupt("break",28);case 9:return t.next=11,e.updateMySQLParams(a);case 11:return t.abrupt("break",28);case 12:return t.next=14,e.updateMongoParams(a);case 14:return t.abrupt("break",28);case 15:return t.next=17,e.updateRedisParam(a);case 17:return t.abrupt("break",28);case 18:return t.next=20,e.updateECKParams(a);case 20:return t.abrupt("break",28);case 21:return t.next=23,e.updateKafkaParams(a);case 23:return t.abrupt("break",28);case 24:return t.next=26,e.updateOpenSearchParams(a);case 26:case 27:return t.abrupt("break",28);case 28:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()}}),l);t.default=F},1961:function(e,t,a){"use strict";var r=a(20);a(12),a(11),a(6),a(18),a(9),a(13),a(10),a(4),a(316),a(23),a(24),a(17),a(62),a(64),a(7),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(12),a(45),a(11),a(6),a(18),a(28),a(42),a(34),a(15),a(9),a(13),a(10),a(4),a(316),a(23),a(57),a(24),a(193),a(17),a(62),a(64),a(7);var n,o,c=r(a(315)),s=r(a(30)),l=r(a(36)),i=r(a(37)),u=r(a(55)),d=r(a(56)),f=r(a(51)),p=r(a(0)),m=a(239),h=r(a(63)),v=r(a(26)),g=r(a(74)),_=r(a(135)),y=r(a(1023)),E=a(186),b=a(794),S=r(a(4820)),O=a(798),R=a(47),A=a(14),k=r(a(4821)),T=a(815),D=r(a(4823)),C=r(a(4834)),P=a(4835);function N(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function I(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,f.default)(e);if(t){var n=(0,f.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,d.default)(this,a)}}var w=(n=(0,m.inject)("detailStore"),(0,R.withRouter)(o=n(o=(0,m.observer)(o=function(e){(0,u.default)(a,e);var t=I(a);function a(e){var r;return(0,l.default)(this,a),(r=t.call(this,e)).fetchData=function(e){r.step=e.step,r.times=e.times,r.monitorStore.fetchMetrics(function(e){for(var t=1;t0&&void 0!==s[0]?s[0]:{},a=n.props,r=a.limit,c=a.params,e.next=4,n.store.fetchS2IRunRecords(k(k({limit:r},c),t));case 4:n.setAutoRefresh();case 5:case"end":return e.stop()}}),e)}))),n.getPagination=function(){var e=n.store.list;return{page:e.page,limit:e.limit,total:e.total}},n.handleSearch=function(e){n.searchValue=e,n.fetchData({name:e}).then((function(){n.props.onSearch(e)}))},n.handlePage=function(e){n.fetchData({page:e}).then((function(){n.props.onPage(e)}))},n.renderFooter=function(){var e=n.getPagination(),a=e.total,r=e.page,o=e.limit;return v.default.createElement(S.Level,{className:R.default.footer},v.default.createElement(S.LevelLeft,null,t("TOTAL_ITEMS",{num:a})),v.default.createElement(S.LevelRight,null,v.default.createElement(S.Pagination,{page:r,total:a,limit:o,onChange:n.handlePage})))},n.store=new b.default,n}return(0,f.default)(r,[{key:"componentDidMount",value:function(){this.fetchData()}},{key:"componentWillUnmount",value:function(){clearInterval(this.timer)}},{key:"renderContent",value:function(){var e=this,a=this.store.list,r=a.data,n=a.isLoading,o=v.default.createElement("div",{className:R.default.body},(0,E.default)(r)?v.default.createElement("div",{className:R.default.empty},t("NO_DATA")):r.map((function(t){return e.renderItem(t)})));return this.isTable?v.default.createElement(S.Loading,{spinning:n},o):o}},{key:"renderItem",value:function(e){var t=this.store.list.isLoading;return v.default.createElement(O.default,{key:e.name,runDetail:e,loading:t,store:this.store,isB2i:this.props.isB2i})}},{key:"render",value:function(){var e=this.props,t=e.className,a=e.hideFooter;return v.default.createElement("div",{className:(0,y.default)(t,R.default.content)},this.renderContent(),!a&&this.renderFooter())}},{key:"isTable",get:function(){var e=this.props,t=e.hideHeader,a=e.hideFooter;return!t||!a}}]),r}(v.default.Component),l.propTypes={prefix:_.default.string,title:_.default.string,detail:_.default.object,hideHeader:_.default.bool,hideFooter:_.default.bool,onSearch:_.default.func,onRefresh:_.default.func,onPage:_.default.func,limit:_.default.number},l.defaultProps={isB2i:!1,detail:{},hideHeader:!1,hideFooter:!1,onSearch:function(){},onRefresh:function(){},onPage:function(){}},s=i))||s;a.default=D},1976:function(e,a,r){"use strict";r(15);var n=r(20),o=r(157);r(11),r(18),r(10),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(11),r(18),r(10),r(4);var c=o(r(0)),s=n(r(63)),l=r(186),i=n(r(4908)),u=function(e){var a=e.data;return(0,s.default)(a)?c.default.createElement("ul",{className:i.default.annotations},c.default.createElement("li",null,t("NO_DATA"))):c.default.createElement("ul",{className:i.default.annotations},Object.keys(a).filter((function(e){return!(0,s.default)(a[e])})).map((function(e){return c.default.createElement("li",{key:e},c.default.createElement(l.Columns,null,c.default.createElement(l.Column,{className:"is-narrow"},c.default.createElement("p",{style:{width:317}},e)),c.default.createElement(l.Column,null,c.default.createElement("p",null,a[e]))))})))},d=(0,c.memo)(u);a.default=d},1977:function(e,a,r){"use strict";r(15);var n=r(20);r(18),r(16),Object.defineProperty(a,"__esModule",{value:!0}),a.default=function(e){var a,r=e.status,n=e.toEvent,u=null!==(a=null==r?void 0:r.conditions)&&void 0!==a?a:[],d=function(e){return o.default.createElement(c.Icon,{className:"close"===l[e].name?s.default.closeIcon:"",name:l[e].name,size:15,color:{primary:"#fff",secondary:l[e].color}})};return o.default.createElement(c.Tooltip,{content:o.default.createElement("div",null,o.default.createElement("div",null,t("STATUS_INFORMATION")),u.map((function(e,a){return o.default.createElement("div",{className:s.default.textItem,key:a},o.default.createElement("div",{className:s.default.textItemTitle},d(e.status),o.default.createElement("span",null,i[e.type])),o.default.createElement("ul",null,o.default.createElement("li",null,t("STATUS_VALUE",{value:e.status})),o.default.createElement("li",null,e.reason&&t("REASON_VALUE",{value:e.reason})),o.default.createElement("li",null,e.message&&t("MESSAGE_VALUE",{value:e.message}))))})),o.default.createElement(c.Button,{type:"primary",onClick:n,className:"width-full"},t("VIEW_EVENTS"))),placement:"right"},o.default.createElement("div",{className:s.default.container},u.map((function(e,t){return o.default.createElement("div",{className:s.default.item,key:t},d(e.status))}))))},a.STATUS_TITLE=a.ICON_TYPES=void 0,r(18),r(16);var o=n(r(0)),c=r(186),s=n(r(4911)),l={False:{name:"close",color:"#AB2F29"},True:{name:"success",color:"#55BC8A"},Unknown:{name:"question",color:"#E0992C"}};a.ICON_TYPES=l;var i={Ready:t("STRETCH_OBJECT_READY"),Active:t("TRIGGER_ACTIVE"),Fallback:t("RETRACTOR_FALLBACK")};a.STATUS_TITLE=i},4505:function(e,t,a){"use strict";a(15);var r=a(20);a(5),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(5);var n=r(a(61)),o=a(317),c=r(a(4506)),s=r(a(4510)),l=r(a(4511)),i=r(a(4535)),u=r(a(4536)),d=r(a(4537)),f=r(a(4538)),p=r(a(4539)),m=r(a(4540)),h=r(a(4541)),v=r(a(4543)),g=r(a(4544)),_=r(a(4545)),y=r(a(4546)),E=r(a(1899)),b=r(a(4615)),S=r(a(4617)),O=r(a(4619)),R=r(a(4621)),A=r(a(4624)),k=r(a(4625)),T=r(a(4626)),D=r(a(4628)),C=r(a(4634)),P=r(a(4635)),N=r(a(4639)),I=r(a(4640)),w=r(a(4641)),x=r(a(4642)),M=r(a(1798)),L=r(a(1796)),j=r(a(4645)),U=r(a(4648)),B=r(a(4655)),Y=r(a(4658)),F=r(a(4662)),V=r(a(4704)),G=r(a(4919)),H=r(a(4921)),q="/:workspace/clusters/:cluster/projects/:namespace",z=[].concat((0,n.default)((0,V.default)(q)),[{path:q,component:s.default,routes:[].concat((0,n.default)(F.default),[{path:"".concat(q,"/overview"),component:l.default,exact:!0},{path:"".concat(q,"/edgeappsets"),component:B.default,exact:!0},{path:"".concat(q,"/applications/others"),component:d.default,exact:!0},{path:"".concat(q,"/applications/database"),component:c.default,exact:!0},{path:"".concat(q,"/applications/template"),component:u.default,exact:!0},{path:"".concat(q,"/deployments"),component:f.default,exact:!0},{path:"".concat(q,"/statefulsets"),component:p.default,exact:!0},{path:"".concat(q,"/daemonsets"),component:m.default,exact:!0},{path:"".concat(q,"/pods"),component:h.default,exact:!0},{path:"".concat(q,"/jobs"),component:v.default,exact:!0},{path:"".concat(q,"/s2ibuilders"),component:g.default,exact:!0},{path:"".concat(q,"/cronjobs"),component:_.default,exact:!0},{path:"".concat(q,"/services"),component:y.default,exact:!0},{path:"".concat(q,"/grayrelease"),component:E.default,exact:!0},{path:"".concat(q,"/composing"),component:i.default,exact:!0},{path:"".concat(q,"/ingresses"),component:b.default,exact:!0},{path:"".concat(q,"/volumes"),component:S.default,exact:!0},{path:"".concat(q,"/volume-snapshots"),component:O.default,exact:!0},{path:"".concat(q,"/base-info"),component:R.default,exact:!0},{path:"".concat(q,"/networkpolicies"),component:U.default,exact:!0},{path:"".concat(q,"/configmaps"),component:A.default,exact:!0},{path:"".concat(q,"/serviceaccounts"),component:k.default,exact:!0},{path:"".concat(q,"/secrets"),component:T.default,exact:!0},{path:"".concat(q,"/microservices"),component:D.default,exact:!0},{path:"".concat(q,"/configurations"),component:C.default,exact:!0},{path:"".concat(q,"/microservicegateways"),component:P.default,exact:!0},{path:"".concat(q,"/servicerouting"),component:N.default,exact:!0},{path:"".concat(q,"/roles"),component:I.default,exact:!0},{path:"".concat(q,"/members"),component:w.default,exact:!0},{path:"".concat(q,"/log-collections"),component:x.default,exact:!0},{path:"".concat(q,"/gateways"),component:G.default,exact:!0},{path:"".concat(q,"/alert-rules"),component:M.default,exact:!0},{path:"".concat(q,"/alerts"),component:L.default,exact:!0},{path:"".concat(q,"/custom-monitoring"),component:j.default,exact:!0,clusterModule:"whizard-monitoring"},{path:"".concat(q,"/custom-scaling"),component:H.default,exact:!0},{path:"".concat(q,"/node-groups"),component:Y.default,exact:!0},(0,o.getIndexRoute)({path:"".concat(q,"/workloads"),to:"".concat(q,"/deployments"),exact:!0}),(0,o.getIndexRoute)({path:"".concat(q,"/applications"),to:"".concat(q,"/applications/template"),exact:!0}),(0,o.getIndexRoute)({path:q,to:"".concat(q,"/overview"),exact:!0}),(0,o.getIndexRoute)({path:"*",to:"/404",exact:!0})])}]);t.default=z},4506:function(e,a,r){"use strict";var n=r(20),o=r(157);r(12),r(109),r(5),r(11),r(31),r(6),r(84),r(18),r(48),r(16),r(9),r(13),r(10),r(4),r(23),r(24),r(17),r(85),r(62),r(64),r(188),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(109),r(45),r(5),r(11),r(31),r(6),r(84),r(18),r(28),r(48),r(42),r(16),r(34),r(15),r(9),r(13),r(10),r(4),r(23),r(57),r(24),r(17),r(85),r(62),r(64),r(188),r(7);var c,s=n(r(315)),l=n(r(30)),i=n(r(36)),u=n(r(37)),d=n(r(55)),f=n(r(56)),p=n(r(51)),m=n(r(0)),h=r(244),v=n(r(800)),g=n(r(26)),_=r(433),y=r(186),E=n(r(795)),b=n(r(836)),S=n(r(1024)),O=r(793),R=n(r(796)),A=r(52),k=o(r(1428)),T=r(815),D=n(r(1238)),C=n(r(4509));function P(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function N(e){for(var t=1;t1){var o=e.filter((function(e){return"ClusterIP"===e.type})),c=e.filter((function(e){return"NodePort"===e.type}));r=m.default.createElement("div",{className:C.default.tooltips},o.length>0&&m.default.createElement(m.default.Fragment,null,m.default.createElement("div",{className:C.default.tooltipTitle},"ClusterIP"),o.map((function(e){var a=e.label,r=e.value;return m.default.createElement("div",{key:r},m.default.createElement("div",null,t(a),": ",r))}))),c.length>0&&m.default.createElement(m.default.Fragment,null,m.default.createElement("div",{className:C.default.tooltipTitle},"NodePort"),c.map((function(e){var a=e.label,r=e.value;return m.default.createElement("div",{key:r},m.default.createElement("div",null,t(a),": ",r))}))))}return m.default.createElement("div",null,m.default.createElement("span",null,(0,g.default)(e,"[0].value",(0,g.default)(e,"[1].value"))),n>1&&m.default.createElement(y.Tooltip,{content:r,style:{top:"-8px"}},m.default.createElement("span",{className:C.default.tag},n)))}},{title:t("CREATION_TIME_TCAP"),dataIndex:"creationTimestamp",sorter:!0,sortOrder:a("creationTimestamp"),isHideable:!0,width:180,render:function(e,t){return(0,A.getLocalTime)(t.creationTimestamp||t.status_time).format("YYYY-MM-DD HH:mm:ss")}}]},e.renderStatus=function(e,a){return e?a.additional_info?m.default.createElement(y.Tooltip,{content:a.additional_info},m.default.createElement(E.default,{name:t("DATABASE_STATUS_".concat(e.replace(/[-\s]/g,"_").toUpperCase())),type:e,flicker:!0})):m.default.createElement(E.default,{name:t("DATABASE_STATUS_".concat(e.replace(/[-\s]/g,"_").toUpperCase())),type:k.DMPStatus[e]||e,flicker:!0}):"-"},e.showDeploy=function(t,a){var r=e.props,n=r.match,o=r.module,c=r.projectStore,s=r.trigger;return e.props.trigger("openpitrix.db.app.create",{module:o,app_id:a,detail:e.state.appList.find((function(e){return e.app_id===a})),namespace:n.params.namespace,cluster:n.params.cluster,workspace:(0,g.default)(c,"detail.workspace"),routing:e.props.rootStore.routing,success:e.handleFetch,trigger:s})},e.handleFetch=(0,v.default)((function(t){var a=e.props,r=a.store,n=a.getData;if(!r.list.isLoading)return n(N(N(N({},(0,h.parse)(location.search.slice(1))),t),{},{silent:!0}))}),1e3),e.handleWatch=function(t){"Manifest"===t.object.kind&&["MODIFIED","DELETED","ADDED"].includes(t.type)&&e.handleFetch()},e.getApplist=function(){request.get("/kapis/application.kubesphere.io/v2/apps",{orderBy:"create_time",conditions:"status=active,repo_id=repo-helm,category_id=radondb",reverse:!0}).then((function(t){e.setState({appList:t.items})}))},e}return(0,u.default)(r,[{key:"getTableProps",value:function(){var e=this,a=this.props,r=a.tableProps,n=a.store,o=m.default.createElement(y.Menu,{onClick:this.showDeploy},this.state.appList.map((function(e){return m.default.createElement(y.Menu.MenuItem,{key:e.app_id},m.default.createElement(b.default,{width:"16px",style:{marginRight:"8px"},src:e.icon,iconLetter:e.name,iconSize:12}),e.name)}))),c=(0,g.default)(n,"list.data.length",0)>0?"bottomRight":"bottom",s=this.canCreate?[{key:"deploy",type:"control",customDom:m.default.createElement(y.Dropdown,{key:"app-list",className:C.default.appCreate,positionFixed:!0,content:o,placement:c},m.default.createElement(y.Button,{key:"deploy",type:"control",disabled:this.state.appList<1},m.default.createElement("div",{className:C.default.deployButton},m.default.createElement("span",null,t("INSTALL")),m.default.createElement(y.Icon,{name:"caret-down",color:{primary:"#fff",secondary:"#fff"},style:{marginLeft:"4px"}}))))}]:[],l=[{key:"delete",type:"danger",text:t("DELETE"),action:"delete",onClick:function(){return e.props.trigger("resource.batch.delete",N(N({type:"APP",rowKey:r.rowKey,success:e.handleFetch},e.props.match.params),e.props.query))}}];return{tableActions:N(N({},r.tableActions),{},{actions:s,onCreate:null}),selectActions:l,emptyProps:{desc:t("CREATE_APP_TEMPLATE_DESC")},searchType:"keyword"}}},{key:"componentDidMount",value:function(){this.getApplist()}},{key:"render",value:function(){var e=this.props,t=e.bannerProps,a=e.tableProps,r=e.match;return m.default.createElement(O.ListPage,(0,s.default)({},this.props,{onMessage:this.handleWatch}),m.default.createElement(D.default,(0,s.default)({},t,{match:r,type:this.type})),m.default.createElement(R.default,(0,s.default)({className:C.default.DBApps},a,this.getTableProps(),{itemActions:this.itemActions,columns:this.getColumns(),rowKey:"name",alwaysUpdate:!0})))}},{key:"prefix",get:function(){var e=this.props.match.params,t=e.workspace,a=e.cluster,r=e.namespace;return"/".concat(t,"/clusters/").concat(a,"/projects/").concat(r,"/applications/").concat(this.type)}},{key:"canCreate",get:function(){var e=this.props.match.params,t=e.cluster,a=e.namespace;return globals.app.hasPermission({cluster:t,project:a,module:"applications",action:"create"})}},{key:"itemActions",get:function(){var e=this,a=this.props.trigger,r=this.props.match.params,n=r.cluster,o=r.namespace,c=r.workspace;return[{key:"edit",icon:"pen",text:t("EDIT_INFORMATION"),action:"edit",onClick:function(t){return a("openpitrix.db.app.edit",{detail:{cluster:n,namespace:o,workspace:c,cluster_id:t.name,name:t.name,description:t.description},success:e.handleFetch})}},{key:"update",icon:"update",text:t("UPDATE_VERSION"),action:"edit",show:function(e){return!(e.app_id!==T.RadonDBAppId.OpenSearch||!e.databaseVersionText.includes("2.3.0"))},onClick:function(r){return a("openpitrix.db.app.update",{resource:r.name,title:t("UPDATE_VERSION"),detail:{cluster:n,namespace:o,workspace:c,cluster_id:r.name,app_id:r.app_id},success:e.handleFetch})}},{key:"delete",icon:"trash",text:t("DELETE"),action:"delete",onClick:function(t){return a("resource.delete",{type:"APP",detail:{name:t.name,cluster:n,namespace:o,workspace:c},success:e.handleFetch})}}]}}]),r}(m.default.Component))||c;a.default=w},4508:function(e,t,a){"use strict";var r=a(20);a(12),a(5),a(11),a(31),a(6),a(84),a(18),a(320),a(16),a(9),a(13),a(10),a(4),a(23),a(17),a(111),a(85),a(7),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(12),a(45),a(5),a(11),a(31),a(6),a(84),a(18),a(28),a(320),a(42),a(16),a(34),a(15),a(9),a(13),a(10),a(4),a(22),a(23),a(57),a(17),a(111),a(85),a(7);var n=r(a(43)),o=r(a(61)),c=r(a(96)),s=r(a(30));a(41);var l,i,u,d=r(a(44)),f=r(a(65)),p=r(a(36)),m=r(a(37)),h=r(a(88)),v=r(a(55)),g=r(a(56)),_=r(a(51)),y=r(a(49)),E=(r(a(66)),r(a(26))),b=r(a(74)),S=a(14),O=r(a(443)),R=r(a(856)),A=a(815);function k(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function T(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},a=t.namespace,r=t.chi,n=t.app_id,o=t.cluster,c="".concat(e.baseUrl).concat(e.getPath({cluster:o,namespace:a}),"/services?labelSelector=");switch(n){case A.RadonDBAppId.ClickHouse:c="".concat(c,"clickhouse.radondb.com/chi=").concat(r,",clickhouse.radondb.com/Service=chi ");break;case A.RadonDBAppId.MySQL:c="".concat(c,"app.kubernetes.io/instance=").concat(r,",mysql.radondb.com/service-type+in+(leader-service,follower-service)");break;case A.RadonDBAppId.PostgreSQL:c="".concat(c,"app-name=").concat(r);break;case A.RadonDBAppId.RedisCluster:c="".concat(c,"redis.radondb.com/name=").concat(r,",role+in+(leader,follower,proxy)");break;case A.RadonDBAppId.RedisSentinel:c="".concat(c,"redis.radondb.com/name=").concat(r,",redis.radondb.com/role+in+%28master%2Cslave%29");break;case A.RadonDBAppId.Elasticsearch:c="".concat(c,"elasticsearch.k8s.elastic.co/cluster-name=").concat(r);break;case"kibana":c="".concat(c,"common.k8s.elastic.co/type=kibana,kibana.k8s.elastic.co/name=").concat(r);break;case A.RadonDBAppId.OpenSearch:c="".concat(c,"app.kubernetes.io/service=").concat(r);break;default:c="".concat(c,"app.kubernetes.io/instance=").concat(r)}return c},e.dataFormatter=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",a=(0,E.default)(e,"spec.ports[0].port",""),r=e.spec.type,n=(0,E.default)(e,"spec.ports[0].nodePort",""),o=e.metadata.namespace,c=e.metadata.name,s=e.spec.clusterIP;return{serviceName:c,namespace:o,role:(0,E.default)(e,"metadata.labels.role",""),uid:e.metadata.uid,tcpPort:a,httpPort:n,nodeIP:t,type:r,clusterIP:s,address:"NodePort"===r?"".concat(t,":").concat(n):"".concat(c,".").concat(o,":").concat(a),_originData:e}},(0,f.default)(e,"fetchList",u,(0,h.default)(e)),e}return(0,m.default)(a,[{key:"getPath",value:function(e){var t=e.namespace,a=e.cluster,r="";return globals.app.isMultiCluster&&a&&(r+="/clusters/".concat(a)),r+="/v1",t&&(r+="/namespaces/".concat(t)),r}},{key:"baseUrl",get:function(){return"/api"}}]),a}(O.default),i=(0,y.default)(l.prototype,"data",[S.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),u=(0,y.default)(l.prototype,"fetchList",[S.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(){var t=(0,d.default)(n.default.mark((function t(a){var r,s,l,i,u,d,f,p,m,h,v,g,_,y;return n.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.nodeStore.fetchList({cluster:a.cluster,namespace:a.namespace,workspace:a.workspace});case 2:return r=(0,E.default)(e.nodeStore,"list.data[0].ip",location.hostname),s=(0,E.default)(e.nodeStore.list.data.find((function(e){return"master"===(0,E.default)(e,"role[1]")})),"ip",r),t.next=6,request.get(e.getUrl(a));case 6:if(l=t.sent,i=[],i=l.items.map((function(t){return e.dataFormatter(t,s)})),a.app_id!==A.RadonDBAppId.MySQL){t.next=13;break}i.sort((function(e){return e.serviceName.endsWith("leader")?-1:0})),t.next=31;break;case 13:if(a.app_id!==A.RadonDBAppId.PostgreSQL){t.next=18;break}(u=i.find((function(e){return e.serviceName.endsWith("readwrite")})))?(d=i.find((function(e){return e.serviceName.endsWith("standby-readonly")})),i=[u],d&&i.push(d)):i=[],t.next=31;break;case 18:if(a.app_id!==A.RadonDBAppId.MongoDB){t.next=22;break}i=i.filter((function(e){return!e.serviceName.endsWith("arb-svc")})),t.next=31;break;case 22:if(a.app_id!==A.RadonDBAppId.Elasticsearch){t.next=30;break}return t.next=25,request.get(e.getUrl(T(T({},a),{},{app_id:"kibana"})));case 25:f=t.sent,p=f.items.map((function(t){return e.dataFormatter(t,s)})),i=i.filter((function(e){return e.serviceName.endsWith("es-http")})).concat(p),t.next=31;break;case 30:a.app_id===A.RadonDBAppId.RedisCluster?(i=i.filter((function(e){return!("ClusterIP"===e.type&&"None"===e.clusterIP)})),m=i.filter((function(e){return"proxy"===e.role})),h=(0,c.default)(m,1),v=h[0],g=i.filter((function(e){return["master","leader"].includes(e.role)})),_=i.filter((function(e){return["slave","follower"].includes(e.role)})),i=[].concat((0,o.default)(g),(0,o.default)(_)),v&&i.push(v)):a.app_id===A.RadonDBAppId.Kafka?((y=i.find((function(e){return e.serviceName==="".concat(a.chi,"-kafka-external-bootstrap")})))||((y=i.find((function(e){return e.serviceName==="".concat(a.chi,"-kafka-bootstrap")})))?((0,b.default)(y,"tcpPort",9092),(0,b.default)(y,"address","".concat(y.serviceName,".").concat(y.namespace,":").concat(y.tcpPort))):y={}),i=[y]):a.app_id===A.RadonDBAppId.OpenSearch&&(i=i.filter((function(e){return["".concat(a.chi,"-dashboards"),a.chi].includes(e.serviceName)})));case 31:return e.data=i,t.abrupt("return",i);case 33:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()}}),l);t.default=C},4509:function(e,t,a){e.exports={DBApps:"_3-0tmC5ougAAijdgdXVLxt",appCreate:"s7pbKzK7DM6633M7NaihK",deployButton:"_23Ikqf30Vp5V0MKr2gVpMY",tooltips:"_1gRd-xJ4oMIOrNkh9Sqwe2",tooltipTitle:"_1nGcPtm4xUo0acXoJoML88",tag:"_1938FqkHFBzXN_r2XiKL0N"}},4510:function(e,t,a){"use strict";a(15);var r=a(20),n=a(157);a(5),a(11),a(6),a(16),a(4),a(23),a(24),a(17),a(62),a(7),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(45),a(5),a(11),a(6),a(28),a(42),a(16),a(4),a(23),a(57),a(24),a(17),a(62),a(7);var o,c=r(a(36)),s=r(a(37)),l=r(a(55)),i=r(a(56)),u=r(a(51)),d=n(a(0)),f=a(239),p=r(a(26)),m=a(317),h=r(a(445));function v(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,u.default)(e);if(t){var n=(0,u.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,i.default)(this,a)}}var g=(0,f.inject)("rootStore","workspaceStore","projectStore")(o=(0,f.observer)(o=function(e){(0,l.default)(a,e);var t=v(a);function a(e){var r;return(0,c.default)(this,a),(r=t.call(this,e)).workspaceStore=new h.default,r.state={fetchFin:!1},r.handleChange=function(e){return r.props.rootStore.routing.push(e)},r.workspaceStore=new h.default,r}return(0,s.default)(a,[{key:"componentDidMount",value:function(){var e=this.props.match;this.workspaceStore.fetchDetail(e.params)}},{key:"getRoutes",value:function(e){var t=this.props.route,a=t.routes,r=t.path,n=(0,p.default)(e,"[0]",{}),o=(0,p.default)(n.children,"[0].name")||n.name;return o?(a&&a.forEach((function(e){e.path===r&&e.redirect&&(e.redirect.to="".concat(r,"/").concat(o))})),a):[]}},{key:"render",value:function(){var e=this.props.match.params,t=e.workspace,a=e.cluster,r=e.namespace,n=globals.app.getProjectNavs({cluster:a,workspace:t,project:r,licenseInfo:this.licenseInfo,isEdge:this.props.workspaceStore.isEdge});if(""===this.edgeCluster){var o,c,s,l=null==n||null===(o=n[0])||void 0===o||null===(c=o.items)||void 0===c||null===(s=c.filter((function(e){return"settings"===e.name})))||void 0===s?void 0:s[0];l&&(l.children=l.children.filter((function(e){return"node-groups"!==e.name})))}return d.default.createElement(d.default.Fragment,null,(0,m.renderRoutes)(this.getRoutes(n)))}},{key:"edgeCluster",get:function(){return(0,p.default)(this.workspaceStore.detail,"_originData.metadata.labels['cluster-role.kubesphere.io/edge']","")}},{key:"licenseInfo",get:function(){return this.props.rootStore.licenseInfo}}]),a}(d.Component))||o)||o;t.default=g},4511:function(e,a,r){"use strict";var n=r(20);r(12),r(5),r(11),r(6),r(9),r(13),r(10),r(4),r(23),r(24),r(17),r(62),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(45),r(5),r(11),r(6),r(28),r(42),r(34),r(15),r(9),r(13),r(10),r(4),r(23),r(57),r(24),r(17),r(62),r(7);var o,c=n(r(30)),s=n(r(36)),l=n(r(37)),i=n(r(55)),u=n(r(56)),d=n(r(51)),f=n(r(0)),p=r(239),m=r(186),h=n(r(26)),v=n(r(885)),g=r(14),_=n(r(4512)),y=n(r(4513)),E=n(r(4515)),b=n(r(4517)),S=n(r(4519)),O=n(r(4521)),R=n(r(4523)),A=n(r(4525)),k=n(r(4527)),T=n(r(4531));function D(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function C(e){for(var t=1;t5,l=c?a.slice(0,5):a;return k.default.createElement("div",{className:N.default.container},this.renderPanelHeader(),k.default.createElement(_.Loading,{spinning:r},k.default.createElement(k.default.Fragment,null,k.default.createElement("div",{className:N.default.header},k.default.createElement(_.Select,{className:N.default.select,value:o,onChange:this.handleChangeSource,options:this.sourceOptions}),k.default.createElement(_.Select,{className:N.default.select,value:this.store.sort_metric,onChange:this.handleChangeSortMetric,options:this.options})),k.default.createElement("div",{className:N.default.list,style:{height:s&&!c?"auto":"392px"}},this.renderListItems(l,o),s&&k.default.createElement(_.Button,{className:N.default.fold,icon:c?"chevron-down":"chevron-up",onClick:this.toggleFold},c?t("UNFOLD"):t("FOLD"))),k.default.createElement("div",{className:N.default.more},k.default.createElement(_.Button,{onClick:this.showMoreModal},t("VIEW_MORE"))))))}},{key:"cluster",get:function(){return this.props.currentResource.cluster}},{key:"namespace",get:function(){return this.props.currentResource.namespace}},{key:"options",get:function(){return this.store.sort_metric_options.map((function(e){return{value:e,label:t("SORT_BY_".concat(e.toUpperCase()))}}))}},{key:"sourceOptions",get:function(){var e=this.props.isEdge;return[{label:t("WORKLOAD_PL"),value:"workload",isHidden:e},{label:t("DEPLOYMENT_PL"),value:"deployment"},{label:t("STATEFULSET_PL"),value:"statefulset",isHidden:e},{label:t("DAEMONSET_PL"),value:"daemonset",isHidden:e}].filter((function(e){return!e.isHidden}))}}]),r}(k.Component),l=(0,g.default)(s.prototype,"store",[R.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return this.sourceMap[this.state.sourceType].store}}),c=s))||c;a.default=L},4524:function(e,t,a){e.exports={container:"WUp_s1gsgr3xjZE-TLfFy",title:"MNoZg4Uw3ghathQUO2qdn",header:"_3DIgkOu1Z8XQBOuX5B5BmC",select:"_1uhE3pKI5LOTwAz5aKaXut",list:"_1X4T38f6yd41_Mmkb7iXLq",listItem:"_3OESwUwGF8C2r8cGijHadO",textBox:"_2rZn3DZLuvGRkQFYI0Cp07",text:"_1WsQhhK0Q2NkjFsa4sUdHf",label:"_3bvLV4piiuVGDzdqk8LNKo",noLabel:"_3chFFPAM6DHtOQoayA5y84",cpu:"fcQo8oVv314LZAog_r8Jx",fold:"dFUpEkr3fe7F_Vw_73JhR",more:"_3F8y08pFovou8ARGvzXVlh"}},4525:function(e,a,r){"use strict";r(15);var n=r(157),o=r(20);r(5),r(11),r(18),r(192),r(16),Object.defineProperty(a,"__esModule",{value:!0}),a.default=function(e){var a,r,n=e.currentResource,o=n.cluster,_=n.workspace,y=n.namespace,E=(0,i.useState)(0),b=(0,l.default)(E,2),S=b[0],O=b[1],R=(0,i.useState)({data:[]}),A=(0,l.default)(R,2),k=A[0],T=A[1];(0,i.useEffect)((function(){var e=new m.default,t=new h.default;D(t),C(e)}),[]);var D=(0,i.useCallback)(function(){var e=(0,s.default)(c.default.mark((function e(t){return c.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.fetchList({cluster:o,workspace:_,namespace:y,limit:-1});case 2:O(t.list.total);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),[]),C=(0,i.useCallback)(function(){var e=(0,s.default)(c.default.mark((function e(t){var a,r,n;return c.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.fetchList({cluster:o,workspace:_,namespace:y,limit:-1});case 2:a=(0,f.toJS)(t.list),r=a.data.filter((function(e){return void 0!==e.lastLoginTime&&""!==e.lastLoginTime})),n=(0,v.default)(r,(function(e){e.lastLoginTime})).splice(0,3),a.data=n,T((0,f.toJS)(a));case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),[]);return i.default.createElement("div",{className:g.default.container},i.default.createElement("div",{className:g.default.title},t("PROJECT_MEMBERS_AND_ROLES")),i.default.createElement("div",{className:g.default.body},i.default.createElement(d.Loading,{spinning:!1},i.default.createElement(i.default.Fragment,null,i.default.createElement("div",{className:g.default.summary},i.default.createElement("div",{className:g.default.item},i.default.createElement(u.default,{icon:"human",iconSize:40,title:k.total,className:g.default.avatar,desc:1===k.total?t("PROJECT_MEMBER_SCAP"):t("PROJECT_MEMBER_SCAP_PL"),noLink:!0})),i.default.createElement("div",{className:g.default.item},i.default.createElement(u.default,{icon:"role",iconSize:40,title:S,className:g.default.avatar,desc:1===S?t("PROJECT_ROLE_SCAP"):t("PROJECT_ROLE_SCAP_PL"),noLink:!0}))),i.default.createElement("div",{className:g.default.bolderText},t("RECENTLY_LOGGED_IN_MEMBERS")),i.default.createElement("div",{className:g.default.memberList},i.default.createElement("div",{className:g.default.item},null!==(a=null==k||null===(r=k.data)||void 0===r?void 0:r.map((function(e){return i.default.createElement(u.default,{key:e.name,className:g.default.memberListAvatarItem,avatar:e.avatar_url||"/assets/default-user.svg",title:e.name,desc:e.email,noLink:!0})})))&&void 0!==a?a:t("NO_DATA"))),i.default.createElement("div",{className:g.default.more},i.default.createElement(p.Link,{to:"/".concat(_,"/clusters/").concat(o,"/projects/").concat(y,"/members")},i.default.createElement(d.Button,null,t("VIEW_MORE"))))))))},r(5),r(11),r(18),r(192),r(16),r(4),r(22);var c=o(r(43));r(41);var s=o(r(44)),l=o(r(96)),i=n(r(0)),u=o(r(788)),d=r(186),f=r(14),p=r(433),m=o(r(322)),h=o(r(441)),v=o(r(446)),g=o(r(4526))},4526:function(e,t,a){e.exports={container:"_3PyNLKna1UJr9RGqCXq2PN",title:"_36c75SV8VUsbaSkzmcoJJe",summary:"_2jDNzW5aPH0rkDq6Evp0wY",bolderText:"_3oZ257HLpDJNyVLhz1wlOq",item:"_3LVmb3Jpwh_n7D82NQHHOz",memberListAvatarItem:"_2EQzaqbgYPQUUGY_pVhor",more:"RTaiJ5yZDpXcpzO5uW90D",avatar:"_3NvIlrVaMhliCGGQxahanO"}},4527:function(e,a,r){"use strict";var n=r(157),o=r(20);r(12),r(5),r(11),r(6),r(18),r(16),r(98),r(9),r(13),r(10),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=function(e){var a=e.detail,r=e.isLoading,n=e.currentResource,o=n.cluster,v=n.workspace,g=n.namespace,_=(0,l.useState)([]),y=(0,s.default)(_,2),E=y[0],b=y[1];return(0,l.useEffect)((function(){var e=Object.entries(d.ONLY_CPU_MEMORY_QUOTAS_MAP).map((function(e){var t=(0,s.default)(e,2);return function(e){for(var t=1;t-1)return a=e,!1})),a}(e),e)};if("limits.cpu"===a||"requests.cpu"===a)r&&(v=Number((0,d.cpuFormat)(n))/Number((0,d.cpuFormat)(r)),n="".concat((0,d.cpuFormat)(n)," Core"),r="".concat((0,d.cpuFormat)(r)," Core"));else if("limits.memory"===a||"requests.memory"===a)r&&(v=Number((0,d.memoryFormat)(n))/Number((0,d.memoryFormat)(r)),n="".concat((0,d.memoryFormat)(n,"Gi")," Gi"),r="".concat((0,d.memoryFormat)(r,"Gi")," Gi"));else if(r){var E=y(n),b=(0,o.default)(E,2),S=b[0],O=b[1],R=y(r),A=(0,o.default)(R,2),k=A[0],T=A[1];g=S,_=k,v=O/T}v=Math.min(Math.max(v,0),1);var D=a.indexOf("gpu")>-1?"gpu":a,C="gpu"===D?"".concat(D,".limit"):D;return c.default.createElement("div",{className:p.default.quota},c.default.createElement("div",{className:p.default.quotaItem},c.default.createElement(i.Icon,{name:f.ICON_TYPES[D]||"resource",size:40}),c.default.createElement("div",{className:p.default.item},c.default.createElement("div",null,function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return f.ICON_TYPES[D]?t(e.replace(/[. ]/g,"_").toUpperCase()):e}(C)),c.default.createElement("p",null,t("RESOURCE_TYPE_SCAP"))),c.default.createElement("div",{className:p.default.item},c.default.createElement("div",null,function(e){if(_&&!g){var t=f.ICON_TYPES[a]||!h[_]?1:h[_];return"".concat(e/t).concat(e>0?_:"")}return e}(n)),c.default.createElement("p",null,t("USED"))),c.default.createElement("div",{className:p.default.item},c.default.createElement("div",null,(0,l.default)(r)?t("NO_LIMIT_TCAP"):r),c.default.createElement("p",null,t("QUOTA")))),c.default.createElement(u.default,{value:Math.min(v,1),className:p.default.bar,rightText:r?"":t("NO_LIMIT"),text:t("USED_PERCENT",{percent:Number((100*v).toFixed(2))})}))};a.default=v},4529:function(e,t,a){e.exports={quota:"wPXTphh_v2X9WNrzqgEp2",quotaItem:"_1LGCyv1ogf6UGeQWOrXqPh",item:"_39N8hvK9R02dew_Ly7Lk0F",bar:"_1a14YNWybcwkUtp0TtLUbx"}},4530:function(e,t,a){e.exports={container:"_3QcJZz9OQTZg1pRtfi0S_9",title:"_2DVNlEQK6CzxXnKQFB0ete",quotaList:"_1NUnZVruuUa7Evki-XrV1m",more:"_2TZLtWlWRQzWFUpCzBhAE_"}},4531:function(e,a,r){"use strict";r(15);var n=r(157),o=r(20);Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var c=o(r(96)),s=n(r(0)),l=o(r(787)),i=o(r(4532)),u=o(r(4534));function d(e){var a=e.visible,r=void 0===a||a,n=e.onCancel,o=e.currentResource,d=(0,s.useState)(!1),f=(0,c.default)(d,2),p=f[0],m=f[1];(0,s.useEffect)((function(){m(r)}),[r]);var h=(0,s.useCallback)((function(){m(!1),null==n||n()}),[]);return s.default.createElement(l.default,{bodyClassName:u.default.body,title:t("RESOURCE_USAGE_RANKING"),visible:p,onCancel:h,fullScreen:!0,hideFooter:!0},s.default.createElement(i.default,{currentResource:o}))}var f=(0,s.memo)(d);a.default=f},4532:function(e,a,r){"use strict";var n=r(20);r(12),r(5),r(11),r(6),r(84),r(18),r(16),r(9),r(13),r(10),r(4),r(22),r(23),r(24),r(17),r(85),r(64),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(45),r(5),r(11),r(6),r(84),r(18),r(28),r(42),r(16),r(34),r(15),r(9),r(13),r(10),r(4),r(22),r(23),r(57),r(24),r(17),r(85),r(64),r(7);var o,c,s,l,i,u,d=n(r(61)),f=n(r(30)),p=n(r(65)),m=n(r(36)),h=n(r(37)),v=n(r(88)),g=n(r(55)),_=n(r(56)),y=n(r(51)),E=n(r(49)),b=(n(r(66)),n(r(0))),S=r(14),O=r(239),R=n(r(3)),A=n(r(1434)),k=n(r(788)),T=n(r(846)),D=r(186),C=n(r(1047)),P=n(r(886)),N=r(72),I=r(794),w=r(52),x=n(r(987)),M=n(r(4533));function L(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function j(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:"";e.props.store.switch(t,a,r).then((function(){e.props.routing.query()}))},e.getItemDesc=function(a){var r=(0,b.getWorkloadStatus)(a,e.props.module),n=r.status,o=r.reason;return o?f.default.createElement(_.default,{status:n,reason:t(o),data:a}):a.description||"-"},e.getColumns=function(){var a=e.props,r=a.getSortOrder,n=a.getFilteredValue,o=a.module;return[{title:t("NAME"),dataIndex:"name",sorter:!0,sortOrder:r("name"),search:!0,render:function(t,a){return f.default.createElement(m.default,{icon:S.ICON_TYPES[o],iconSize:40,title:(0,E.getDisplayName)(a),desc:e.getItemDesc(a),to:"".concat(e.prefix,"/").concat(o,"/").concat(t)})}},{title:t("STATUS"),dataIndex:"status",filters:e.getStatus(),filteredValue:n("status"),isHideable:!0,search:!0,width:"15%",render:function(e,a){var r=(0,b.getWorkloadStatus)(a,o).status;return f.default.createElement(h.default,{type:r,name:t("CRONJOB_".concat(r.toUpperCase()))})}},{title:t("SCHEDULE"),dataIndex:"spec.schedule",isHideable:!0,width:"15%"},{title:t("CREATION_TIME_TCAP"),dataIndex:"createTime",sorter:!0,sortOrder:r("createTime"),isHideable:!0,width:150,render:function(e){return(0,E.getLocalTime)(e).format("YYYY-MM-DD HH:mm:ss")}}]},e.showCreate=function(){var t=e.props,a=t.match,r=t.module,n=t.projectStore;return e.props.trigger("workload.create",{module:r,projectDetail:n.detail,namespace:a.params.namespace,cluster:a.params.cluster,supportGpuSelect:!0,isProject:!0,isEdge:e.isEdge,k8sVersion:e.k8sVersion,success:function(){return e.props.routing.query()},rootStore:e.props.rootStore})},e}return(0,l.default)(r,[{key:"getStatus",value:function(){return S.CRONJOB_STATUS.map((function(e){return{text:t(e.text),value:e.value}}))}},{key:"render",value:function(){var e=this.props,t=e.bannerProps,a=e.tableProps;return f.default.createElement(g.ListPage,this.props,f.default.createElement(v.default,(0,c.default)({},t,{tabs:this.tabs})),f.default.createElement(y.default,(0,c.default)({},a,{itemActions:this.itemActions,columns:this.getColumns(),onCreate:this.showCreate})))}},{key:"prefix",get:function(){var e=this.props.match.params,t=e.workspace,a=e.namespace,r=e.cluster;return"/".concat(t,"/clusters/").concat(r,"/projects/").concat(a)}},{key:"k8sVersion",get:function(){var e,t,a=this.props.match.params.cluster;return null===(e=globals.clusterConfig)||void 0===e||null===(t=e[a])||void 0===t?void 0:t.k8sVersion}},{key:"isEdge",get:function(){return this.props.workspaceStore.isEdge}},{key:"tabs",get:function(){return{value:this.props.module,onChange:this.handleTabChange,options:[{value:"jobs",label:t("JOB_PL")},{value:"cronjobs",label:t("CRONJOB_PL")}]}}},{key:"itemActions",get:function(){var e=this,a=this.props,r=a.trigger,n=a.name;return[{key:"edit",icon:"pen",text:t("EDIT_INFORMATION"),action:"edit",onClick:function(t){r("resource.baseinfo.edit",{detail:t,k8sVersion:e.k8sVersion,success:function(){return e.props.routing.query()}})}},{key:"editYaml",icon:"pen",text:t("EDIT_YAML"),action:"edit",onClick:function(t){r("resource.yaml.edit",{detail:t,k8sVersion:e.k8sVersion,success:function(){return e.props.routing.query()}})}},{show:function(e){return e.suspend},key:"start",icon:"start",text:t("START"),action:"edit",onClick:function(t){e.handleSwitch(t,!0,e.k8sVersion)}},{show:function(e){return!e.suspend},key:"pause",icon:"stop",text:t("PAUSE"),action:"edit",onClick:function(t){e.handleSwitch(t,!1,e.k8sVersion)}},{key:"delete",icon:"trash",text:t("DELETE"),action:"delete",onClick:function(t){r("resource.delete",{type:n,detail:t,k8sVersion:e.k8sVersion,success:function(){return e.props.routing.query()}})}}]}}]),r}(f.default.Component))||o)||o,k=(0,p.inject)()((function(e){var t,a,r=e.match.params.cluster,n=null===(t=globals.clusterConfig)||void 0===t||null===(a=t[r])||void 0===a?void 0:a.k8sVersion;return f.default.createElement(A,(0,c.default)({k8sVersion:n},e))}));a.default=k},4546:function(e,a,r){"use strict";var n=r(20);r(12),r(109),r(5),r(11),r(6),r(73),r(18),r(16),r(9),r(13),r(10),r(4),r(23),r(24),r(17),r(62),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(109),r(45),r(5),r(11),r(6),r(73),r(18),r(28),r(42),r(16),r(34),r(15),r(9),r(13),r(10),r(4),r(23),r(57),r(24),r(17),r(62),r(7);var o,c=n(r(30)),s=n(r(315)),l=n(r(36)),i=n(r(37)),u=n(r(55)),d=n(r(56)),f=n(r(51)),p=n(r(0)),m=r(239),h=n(r(26)),v=n(r(788)),g=n(r(790)),_=n(r(792)),y=r(793),E=n(r(796)),b=r(186),S=r(52),O=r(72),R=n(r(443)),A=n(r(4547));function k(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function T(e){for(var t=1;t1?t("LOAD_BALANCERS_SCAP"):t("LOAD_BALANCER_SCAP"),a.title=e.loadBalancerIngress.join("; ")),e.externalName?p.default.createElement(g.default,{description:a.des,title:function(){return p.default.createElement(b.Tooltip,{content:e.externalName},p.default.createElement("span",null,a.title))}}):p.default.createElement(g.default,{description:t("".concat(a.des)),title:a.title})},e.showCreate=function(){var t=e.props,a=t.match,r=t.module,n=t.projectStore;return e.props.trigger("service.create",{module:r,projectDetail:n.detail,namespace:a.params.namespace,cluster:a.params.cluster})},e}return(0,i.default)(r,[{key:"render",value:function(){var e=this.state.type,t=this.props,a=t.bannerProps,r=t.tableProps,n=t.match,o=t.workspaceStore.isEdge?{}:{onCreate:this.showCreate};return p.default.createElement(y.ListPage,this.props,p.default.createElement(_.default,(0,s.default)({},a,{tabs:this.tabs,tips:this.tips})),"topology"===e?p.default.createElement(A.default,{match:n}):p.default.createElement(E.default,(0,s.default)({},r,{itemActions:this.itemActions,tableActions:this.tableActions,columns:this.getColumns()},o)))}},{key:"tabs",get:function(){var e=this.props.match.params.cluster;return globals.app.hasClusterModule(e,"network.topology")?{value:this.state.type,onChange:this.handleTabChange,options:[{value:"list",label:t("SERVICE_LIST")},{value:"topology",label:t("SERVICE_TOPOLOGY")}]}:{}}},{key:"tips",get:function(){return[{title:t("SERVICE_TYPES_Q"),description:t("SERVICE_TYPES_A")},{title:t("SCENARIOS_FOR_SERVICES_Q"),description:t("SCENARIOS_FOR_SERVICES_A")}]}},{key:"itemActions",get:function(){var e=this.props,a=e.trigger,r=e.name;return[{key:"edit",icon:"pen",text:t("EDIT_INFORMATION"),action:"edit",onClick:function(e){return a("resource.baseinfo.edit",{detail:e})}},{key:"editYaml",icon:"pen",text:t("EDIT_YAML"),action:"edit",onClick:function(e){return a("resource.yaml.edit",{detail:e})}},{key:"editService",icon:"network-router",text:t("EDIT_SERVICE"),action:"edit",onClick:function(e){return a("service.edit",{detail:e})}},{key:"editGateway",icon:"ip",text:t("EDIT_EXTERNAL_ACCESS"),action:"edit",show:function(e){return e.type===O.SERVICE_TYPES.VirtualIP},onClick:function(e){return a("service.gateway.edit",{detail:e})}},{key:"delete",icon:"trash",text:t("DELETE"),action:"delete",onClick:function(e){return a("service.delete",{type:r,detail:e})}}]}},{key:"tableActions",get:function(){var e=this.props,a=e.tableProps,r=e.name,n=e.rowKey,o=e.trigger;return T(T({},a.tableActions),{},{selectActions:[{key:"delete",type:"danger",text:t("DELETE"),action:"delete",onClick:function(){return o("service.batch.delete",{type:r,rowKey:n})}}]})}}]),r}(p.default.Component))||o)||o;a.default=C},4547:function(e,t,a){"use strict";var r=a(20),n=a(157);a(12),a(5),a(11),a(6),a(18),a(9),a(13),a(10),a(4),a(23),a(24),a(17),a(62),a(7),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(12),a(45),a(5),a(11),a(6),a(18),a(28),a(42),a(34),a(15),a(9),a(13),a(10),a(4),a(23),a(57),a(24),a(17),a(62),a(7);var o,c=r(a(30)),s=r(a(36)),l=r(a(37)),i=r(a(88)),u=r(a(55)),d=r(a(56)),f=r(a(51)),p=n(a(0)),m=r(a(3)),h=a(239),v=a(186),g=a(5762),_=a(892),y=r(a(789)),E=r(a(4548)),b=a(794),S=r(a(4594)),O=r(a(4596)),R=r(a(4598)),A=r(a(4600)),k=r(a(4614));function T(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function D(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};e.store.fetchList(D(D({},e.props.match.params),t))},e.handleChange=function(t){e.setState({type:t},(function(){"auto"===e.state.type?(0,b.startAutoRefresh)((0,i.default)(e),{method:"fetchData",leading:!1,interval:1e4}):(0,b.stopAutoRefresh)((0,i.default)(e))}))},e.handleRefresh=function(){e.fetchData()},e.handleServiceClick=function(t){e.setState((function(e){var a=e.selectService;return{selectService:a&&a.id===t.id?null:t}}))},e.handleDetailClose=function(){e.setState({selectService:null})},e.toggleFullscreen=function(){e.setState((function(e){return{fullscreen:!e.fullscreen}}))},e}return(0,l.default)(a,[{key:"componentDidMount",value:function(){this.fetchData(),this.svg=(0,_.select)("#canvas").call((0,g.zoom)().extent([[0,0],[9999,9999]]).scaleExtent([.1,1.5]).on("zoom",this.handleZoom)),this.transPan=this.svg.select("g.transform")}},{key:"componentWillUnmount",value:function(){(0,b.stopAutoRefresh)(this)}},{key:"render",value:function(){var e=this,t=this.state,a=t.type,r=t.fullscreen,n=t.selectService,o=this.store,s=o.topologies,l=s.nodes,i=void 0===l?[]:l,u=s.edges,d=void 0===u?[]:u,f=o.isLoading;return p.default.createElement(y.default,{className:(0,m.default)((0,c.default)({},k.default.fullscreen,r))},p.default.createElement("div",{className:k.default.toolbar},p.default.createElement(S.default,{value:a,options:this.options,onChange:this.handleChange}),p.default.createElement("div",{className:k.default.right},p.default.createElement(v.Button,{type:"flat",icon:"refresh",onClick:this.handleRefresh}),p.default.createElement(v.Button,{type:"flat",icon:r?"minimize":"maximize",onClick:this.toggleFullscreen}))),p.default.createElement("div",{className:k.default.content},p.default.createElement("svg",{id:"canvas"},p.default.createElement("g",{className:"transform"},p.default.createElement("g",{className:"chart"},d.map((function(e){return p.default.createElement(R.default,{key:e.v+e.w,data:e})})),i.map((function(t){return p.default.createElement(O.default,{key:t.id,data:t,isSelected:n&&n.id===t.id,onClick:e.handleServiceClick})}))))),f&&p.default.createElement(v.Loading,{className:k.default.loading}),!!n&&p.default.createElement(A.default,{data:n,store:this.store,match:this.props.match,onClose:this.handleDetailClose})))}},{key:"options",get:function(){return[{label:"AUTO_REFRESH",icon:"start",value:"auto"},{label:"PAUSE",icon:"pause",value:"pause"}]}}]),a}(p.Component))||o;t.default=P},4548:function(e,t,a){"use strict";a(15);var r=a(20);a(5),a(16),a(9),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(5),a(16),a(9),a(4),a(22);var n=r(a(43));a(41);var o,c,s,l,i=r(a(44)),u=r(a(65)),d=r(a(36)),f=r(a(37)),p=r(a(49)),m=(r(a(66)),r(a(26))),h=a(14),v=a(4549),g=(o=function(){function e(t){var a=this;(0,d.default)(this,e),this.topologies={},(0,u.default)(this,"detail",c,this),(0,u.default)(this,"isLoading",s,this),(0,u.default)(this,"isSubmitting",l,this),this.getListUrl=function(e){return"kapis/network.kubesphere.io/v1alpha2".concat(a.getPath(e),"/topology")},this.getDetailUrl=function(e){return"".concat(a.getListUrl(e),"/").concat(e.name)},this.module=t}var t,a;return(0,f.default)(e,[{key:"getPath",value:function(e){var t=e.cluster,a=e.namespace,r="";return t&&(r+="/klusters/".concat(t)),a&&(r+="/namespaces/".concat(a)),r}},{key:"fetchList",value:(a=(0,i.default)(n.default.mark((function e(t){var a;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.isLoading=!0,e.next=3,request.get(this.getListUrl(t),t);case 3:a=e.sent,this.topologies=(0,v.processTopology)((0,m.default)(a,"nodes",{})),this.isLoading=!1;case 6:case"end":return e.stop()}}),e,this)}))),function(e){return a.apply(this,arguments)})},{key:"fetchDetail",value:(t=(0,i.default)(n.default.mark((function e(t){var a;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.isLoading=!0,e.next=3,request.get(this.getDetailUrl(t));case 3:a=e.sent,this.detail=a,this.isLoading=!1;case 6:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})}]),e}(),c=(0,p.default)(o.prototype,"detail",[h.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),s=(0,p.default)(o.prototype,"isLoading",[h.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),l=(0,p.default)(o.prototype,"isSubmitting",[h.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),(0,p.default)(o.prototype,"fetchList",[h.action],Object.getOwnPropertyDescriptor(o.prototype,"fetchList"),o.prototype),(0,p.default)(o.prototype,"fetchDetail",[h.action],Object.getOwnPropertyDescriptor(o.prototype,"fetchDetail"),o.prototype),o);t.default=g},4549:function(e,t,a){"use strict";var r=a(20);a(12),a(5),a(11),a(31),a(6),a(18),a(137),a(9),a(13),a(10),a(316),a(7),Object.defineProperty(t,"__esModule",{value:!0}),t.processTopology=void 0,a(12),a(5),a(11),a(31),a(6),a(18),a(28),a(137),a(34),a(15),a(9),a(13),a(10),a(4),a(316),a(7);var n=r(a(30)),o=r(a(1891)),c=r(a(1529)),s=r(a(1292)),l=r(a(446));function i(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function u(e){for(var t=1;t0&&(i<1?(p=(0,c.default)(h,(function(e){return e.x})).x,m=(0,s.default)(h,(function(e){return e.y})).y,p&&(p+=200)):(p=(0,s.default)(h,(function(e){return e.x})).x,(m=(0,c.default)(h,(function(e){return e.y})).y)&&(m+=150))),p=p||(a+150)/2,m=m||(r+100)/2;var v,g,_=Math.ceil(Math.sqrt(f.length)),y=0,E=0;d=(d=(0,l.default)(d,(function(e){return e.rank}))).map((function(e){return f.find((function(t){return t.id===e.id}))?(E===_&&(E=0,y+=1),v=200*E+p,g=150*y+m,E+=1,Object.assign(e,{x:v,y:g})):e})),t.width=Math.max(e.width,v+75+50),t.height=Math.max(e.height,g+50+50),t.nodes=d}return t}(d)}},4594:function(e,a,r){"use strict";r(15);var n=r(157),o=r(20);r(5),r(18),r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(18),r(42),r(4),r(23),r(57),r(17);var c=o(r(36)),s=o(r(37)),l=o(r(55)),i=o(r(56)),u=o(r(51)),d=n(r(0)),f=r(186),p=o(r(4595));function m(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,u.default)(e);if(t){var n=(0,u.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,i.default)(this,a)}}var h=function(e){(0,l.default)(r,e);var a=m(r);function r(){var e;(0,c.default)(this,r);for(var t=arguments.length,n=new Array(t),o=0;o2&&void 0!==arguments[2]?arguments[2]:"asc";if(!t)return e;var r=(0,u.default)(e,"".concat(t,".value"));return"asc"===a&&(r=r.reverse()),r}(r,o,c);return f.default.createElement("table",{className:h.default.table},f.default.createElement("thead",null,f.default.createElement("tr",null,a.map((function(t){return f.default.createElement("th",{key:t.id,title:t.label,"data-id":t.id,onClick:e.handleTitleClick},"number"===t.dataType&&t.label.startsWith("#")?"#":t.label,o===t.id&&f.default.createElement(p.Icon,{name:"asc"===c?"caret-down":"caret-up"}))})))),f.default.createElement("tbody",null,s.map((function(t,r){return f.default.createElement("tr",{key:"".concat(t.id,"-").concat(r)},a.map((function(a){var r=e.getValue(t[a.id]);return f.default.createElement("td",{key:a.id,title:r},a.render?a.render(r,t):r)})))}))))}}]),a}(f.Component);t.default=g},4605:function(e,t,a){e.exports={table:"_3_MT8fZBjSbHX5gZjAySbf"}},4606:function(e,t,a){"use strict";var r=a(157),n=a(20);a(12),a(5),a(11),a(6),a(18),a(87),a(27),a(9),a(13),a(10),a(4),a(23),a(17),a(7),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(12),a(45),a(5),a(11),a(6),a(18),a(28),a(87),a(42),a(27),a(34),a(15),a(9),a(13),a(10),a(4),a(23),a(57),a(17),a(7);var o=n(a(30)),c=n(a(61)),s=n(a(36)),l=n(a(37)),i=n(a(55)),u=n(a(56)),d=n(a(51)),f=r(a(0)),p=n(a(26)),m=n(a(63)),h=n(a(4607));function v(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function g(e){for(var t=1;t0){var t=["POD"];e[0].nodes=e[0].nodes.filter((function(e){return-1===t.indexOf(e.label)}))}for(var a=e.length>0?(0,c.default)(e[0].nodes.map((function(e){return{label:e.label,value:e.label,icon:"docker"}}))):[],r=[],n={},o=0;o0?e[0].nodes[0].label:""}},{key:"containers",get:function(){return(0,p.default)(this.props.detail,"children",[]).filter((function(e){return"Containers"===e.label}))}},{key:"cpuMetric",get:function(){var e=this.state.containerName,t=this.monitorStore.data;return""===e?[]:(0,p.default)(t,"".concat(E.cpu_usage,".data.result"))}},{key:"memoryMetric",get:function(){var e=this.state.containerName,t=this.monitorStore.data;return""===e?[]:(0,p.default)(t,"".concat(E.memory_usage,".data.result"))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var a=(0,p.default)(e.detail,"id","");return a!==t.podsId?{containerName:"",podsId:a}:null}}]),a}(f.Component))||o;t.default=b},4610:function(e,t,a){e.exports={container:"_1OCYhwQxIVBiwoZgjC9Vt2",containerSelect:"x2gN32eQq4Fk7DwDRYlMt"}},4611:function(e,t,a){"use strict";a(15);var r=a(157),n=a(20);a(29),a(18),a(4),a(23),a(17),a(32),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(45),a(29),a(18),a(42),a(4),a(23),a(57),a(17),a(32);var o=n(a(36)),c=n(a(37)),s=n(a(55)),l=n(a(56)),i=n(a(51)),u=r(a(0)),d=n(a(26)),f=n(a(63)),p=n(a(1045)),m=n(a(4612));function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,i.default)(e);if(t){var n=(0,i.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,l.default)(this,a)}}var v=function(e){(0,s.default)(a,e);var t=h(a);function a(){return(0,o.default)(this,a),t.apply(this,arguments)}return(0,c.default)(a,[{key:"render",value:function(){var e=(0,d.default)(this.props.detail,"tables",[]);return(0,f.default)(e)?null:e.map((function(e){return u.default.createElement("div",{key:e.id,className:m.default.info},e.rows.map((function(e){return u.default.createElement(p.default,{key:e.id,name:e.entries.label,value:e.entries.value})})))}))}}]),a}(u.Component);t.default=v},4612:function(e,t,a){e.exports={info:"_7d5WNeWa0X-J5GxQTmMvl"}},4613:function(e,t,a){e.exports={wrapper:"lu0R0_JuvYcj7r7Qy0otO",header:"_26TkzcTc5C6Em8vDEeBJEz",icon:"_1NAGSmlNiebgr8p6Cjjxsn",title:"_31yHnayK288K6G7r3t0WIm",close:"BBrUJQnPG4Qc4u1_NstsV",content:"_1SDKhZ-aItpEmZbrbTYtRJ"}},4614:function(e,t,a){e.exports={toolbar:"_2GsMGEQTK2HjeeJMHK207X",right:"_18ABRRL3yE8zHX7GNA-zgr",content:"_1SRN7Iw9zGbVNj2koryPUT",loading:"_3B7Ub5NbMtv9vH9XEk3Jyc",fullscreen:"_2ocL9fqKky1rPQumdGqZaN"}},4615:function(e,a,r){"use strict";r(15);var n=r(20);r(12),r(109),r(5),r(73),r(16),r(4),r(23),r(24),r(17),r(62),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(109),r(45),r(5),r(73),r(28),r(42),r(16),r(4),r(22),r(23),r(57),r(24),r(17),r(62);var o=n(r(315)),c=n(r(43));r(41);var s,l=n(r(44)),i=n(r(36)),u=n(r(37)),d=n(r(55)),f=n(r(56)),p=n(r(51)),m=n(r(0)),h=n(r(63)),v=r(186),g=n(r(240)),_=n(r(788)),y=n(r(790)),E=n(r(789)),b=n(r(792)),S=n(r(796)),O=r(793),R=r(52),A=r(72),k=n(r(917)),T=n(r(834)),D=n(r(4616));function C(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,p.default)(e);if(t){var n=(0,p.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,f.default)(this,a)}}var P=(0,O.withProjectList)({store:new k.default,module:"ingresses",name:"ROUTE"})(s=function(e){(0,d.default)(r,e);var a=C(r);function r(){var e;(0,i.default)(this,r);for(var n=arguments.length,o=new Array(n),s=0;s=3.2&&c.splice(2,0,o),c}},{key:"render",value:function(){var e=this.props,t=e.query,a=e.match,r=e.bannerProps,n=e.tableProps;return v.default.createElement(k.ListPage,this.props,v.default.createElement(A.default,(0,o.default)({},r,{tips:this.tips})),v.default.createElement(T.default,(0,o.default)({},n,{className:"table-2-6",itemActions:this.itemActions,namespace:t.namespace,columns:this.getColumns(),onCreate:this.showCreate,cluster:a.params.cluster})))}},{key:"tips",get:function(){return[{title:t("WHAT_IS_STORAGE_CLASS_Q"),description:t("WHAT_IS_STORAGE_CLASS_A")},{title:t("WHAT_IS_LOCAL_VOLUME_Q"),description:t("WHAT_IS_LOCAL_VOLUME_A")}]}},{key:"itemActions",get:function(){var e=this.props,a=e.trigger,r=e.name;return[{key:"edit",icon:"pen",text:t("EDIT_INFORMATION"),action:"edit",onClick:function(e){return a("resource.baseinfo.edit",{detail:e})}},{key:"editYaml",icon:"pen",text:t("EDIT_YAML"),action:"edit",onClick:function(e){return a("resource.yaml.edit",{detail:e})}},{key:"delete",icon:"trash",text:t("DELETE"),action:"delete",onClick:function(e){return a("resource.delete",{type:r,detail:e})}}]}}]),r}(v.default.Component))||s;a.default=N},4618:function(e,t,a){e.exports={capacity:"_243L3gRj5L4Y9ESqEZMwQ5",pv_content:"_3H1A5jhLvHEPU7G5_KY0o6",yaml:"_2OW8dgKGOIskdPsJxUWKrg",status:"_3XGLspL44wlb4JRFycBpB6"}},4619:function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(18),r(16),r(4),r(23),r(24),r(17),r(62),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(18),r(42),r(16),r(4),r(23),r(57),r(24),r(17),r(62);var o,c=n(r(315)),s=n(r(36)),l=n(r(37)),i=n(r(55)),u=n(r(56)),d=n(r(51)),f=r(186),p=n(r(788)),m=n(r(795)),h=n(r(792)),v=r(793),g=n(r(796)),_=n(r(63)),y=n(r(0)),E=n(r(914)),b=r(52),S=r(72),O=n(r(4620));function R(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,d.default)(e);if(t){var n=(0,d.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,u.default)(this,a)}}var A=(0,v.withProjectList)({store:new E.default,module:"volume-snapshots",authKey:"volumesnapshots",name:"VOLUME_SNAPSHOT"})(o=function(e){(0,i.default)(r,e);var a=R(r);function r(){return(0,s.default)(this,r),a.apply(this,arguments)}return(0,l.default)(r,[{key:"getStatus",value:function(){return S.VOLUME_SNAPSHOT_STATUS.map((function(e){return{text:t(e.text),value:e.value}}))}},{key:"getColumns",value:function(){var e=this,a=this.props.getSortOrder;return[{title:t("NAME"),dataIndex:"name",sortOrder:a("name"),search:!0,sorter:!0,render:function(t,a){return y.default.createElement(p.default,{icon:"snapshot",iconSize:40,to:"".concat(e.props.match.url,"/").concat(t),title:t,desc:a.snapshotClassName})}},{title:t("STATUS"),dataIndex:"status",isHideable:!0,filters:this.getStatus(),search:!0,render:function(e,a){var r=a.errorMessage,n=a.backupStatus;return y.default.createElement("div",{className:O.default.status},y.default.createElement(m.default,{type:n,name:t("CREATE_STATUS_".concat(n.toUpperCase()))})," ",!(0,_.default)(r)&&y.default.createElement(f.Tooltip,{content:r},y.default.createElement(f.Icon,{name:"question"})))}},{title:t("PROJECT"),dataIndex:"namespace",isHideable:!0,render:function(e){return y.default.createElement("div",null,(0,b.showNameAndAlias)(e,"project"))}},{title:t("VOLUME_SNAPSHOT_CONTENT"),dataIndex:"boundVolumeSnapshotContentName",isHideable:!0,render:function(e){return e}},{title:t("CAPACITY"),dataIndex:"restoreSize",isHideable:!0,width:"20%",render:function(e){return e||"-"}},{title:t("CREATION_TIME_TCAP"),dataIndex:"createTime",isHideable:!0,sorter:!0,sortOrder:a("createTime"),width:"20%",render:function(e){return e?(0,b.getLocalTime)(e).format("YYYY-MM-DD HH:mm:ss"):"-"}}]}},{key:"render",value:function(){var e=this.props,t=e.bannerProps,a=e.tableProps;return y.default.createElement(v.ListPage,(0,c.default)({},this.props,{noWatch:!0}),y.default.createElement(h.default,(0,c.default)({},t,{tabs:this.tabs})),y.default.createElement(g.default,(0,c.default)({},a,{itemActions:this.itemActions,columns:this.getColumns(),onCreate:this.showCreate})))}},{key:"itemActions",get:function(){var e=this.props,a=e.trigger,r=e.routing,n=e.name;return[{key:"delete",icon:"trash",text:t("DELETE"),action:"delete",onClick:function(e){return a("resource.delete",{type:n,detail:e,success:r.query})}}]}}]),r}(y.default.Component))||o;a.default=A},4620:function(e,t,a){e.exports={taints:"_2vLaCVxzXLnnQ_T1ttX8Cg",overview:"_1Q_WW2VkvXhYbDUAhp48jH",namespaceFilter:"_2MbiUC9KKqCf8a9u_HI2bZ"}},4621:function(e,a,r){"use strict";var n=r(20);r(12),r(5),r(11),r(31),r(6),r(84),r(73),r(18),r(48),r(192),r(16),r(98),r(9),r(13),r(10),r(4),r(316),r(23),r(24),r(17),r(85),r(62),r(136),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(45),r(5),r(11),r(31),r(6),r(84),r(73),r(18),r(28),r(48),r(192),r(42),r(16),r(34),r(15),r(98),r(9),r(13),r(10),r(4),r(316),r(23),r(57),r(24),r(17),r(85),r(62),r(7);var o,c=n(r(61)),s=n(r(30)),l=n(r(96)),i=n(r(36)),u=n(r(37)),d=n(r(55)),f=n(r(56)),p=n(r(51)),m=n(r(0)),h=r(14),v=r(239),g=n(r(26)),_=n(r(447)),y=n(r(855)),E=r(52),b=n(r(441)),S=n(r(322)),O=n(r(885)),R=n(r(1096)),A=r(791),k=n(r(792)),T=n(r(1219)),D=n(r(866)),C=n(r(4622)),P=n(r(1234)),N=n(r(1233));function I(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function w(e){for(var t=1;t0?a.includes("claims")?o:"".concat(o,"Gi"):void 0,used:a.includes("claims")?n:(0,E.memoryFormat)(n,"Gi")}}))}},{key:"relateStorageClass",get:function(){var e=(0,h.toJS)(this.quotaStore.data),t=(0,g.default)(e,"hard",{}),a=(0,g.default)(e,"used",{}),r=Object.entries(t).filter((function(e){var t=(0,l.default)(e,1)[0];return(0,_.default)(t,M)||(0,_.default)(t,L)})).map((function(e){var t=(0,l.default)(e,2),a=t[0],r=t[1];return(0,s.default)({},a,r)})),n=r.map((function(e){var t=Object.keys(e)[0];return(0,s.default)({},t,(0,g.default)(a,t))})),o={total:(0,c.default)(r),used:(0,c.default)(n)};if(o.total.length>0){var i,u=(0,y.default)((0,c.default)(o.total),(function(e){return Object.keys(e)[0].split(".").slice(1).join(".")}));return i={},(0,s.default)(i,M,(0,g.default)(u,[M],[]).map((function(e){var t=Object.keys(e)[0],a=o.used.filter((function(e){return Object.keys(e)[0]===t}))[0];return{name:t,total:Object.values(e)[0],used:Object.values(a)[0]}}))),(0,s.default)(i,L,(0,g.default)(u,[L],[]).map((function(e){var t=Object.keys(e)[0],a=o.used.filter((function(e){return Object.keys(e)[0]===t}))[0];return{name:t,total:Object.values(e)[0],used:Object.values(a)[0]}}))),i}return{}}},{key:"isClusterManage",get:function(){return globals.app.isPlatformAdmin||globals.app.hasPermission({module:"clusters",action:"manage"})}},{key:"store",get:function(){return this.props.projectStore}},{key:"routing",get:function(){return this.props.rootStore.routing}},{key:"params",get:function(){return(0,g.default)(this.props.match,"params",{})}},{key:"workspace",get:function(){return this.params.workspace}},{key:"isEdge",get:function(){return this.props.workspaceStore.isEdge}},{key:"tips",get:function(){return[{title:t("HOW_TO_USE_QUOTA_Q"),description:t.html("HOW_TO_USE_QUOTA_A")},{title:t("WHAT_ARE_DEFAULT_CONTAINER_QUOTAS_Q"),description:t("WHAT_ARE_DEFAULT_CONTAINER_QUOTAS_A")}]}},{key:"enabledActions",get:function(){return globals.app.getActions(w(w({module:"project-settings"},this.params),{},{project:this.params.namespace}))}},{key:"canViewRoles",get:function(){return globals.app.hasPermission(w(w({module:"roles",action:"view"},this.params),{},{project:this.params.namespace}))}},{key:"canViewMembers",get:function(){return globals.app.hasPermission(w(w({module:"members",action:"view"},this.params),{},{project:this.params.namespace}))}},{key:"itemActions",get:function(){var e=this,a=this.props.rootStore.routing,r=this.store.detail,n=this.limitRangeStore.list.data,o=[{key:"edit",icon:"pen",action:"edit",text:t("EDIT_INFORMATION"),onClick:function(){return e.trigger("resource.baseinfo.edit",{detail:r,success:e.getData})}},{key:"edit-default-resource",icon:"pen",action:"edit",text:t("EDIT_DEFAULT_CONTAINER_QUOTAS"),isHidden:this.isEdge,onClick:function(){return e.trigger("project.default.resource",w(w({},e.props.match.params),{},{store:e.limitRangeStore,detail:n[0],supportGpuSelect:!0,success:function(){return e.limitRangeStore.fetchListByK8s(e.params)}}))}},{key:"delete",icon:"trash",action:"delete",text:t("DELETE_PROJECT"),onClick:function(){return e.trigger("resource.delete",{detail:r,desc:t.html("DELETE_PROJECT_TIP",{resource:r.name}),success:function(){(0,E.removeV4DashboardHistory)(globals.user.username,r.uid),a.push("/workspaces/".concat(e.params.workspace,"/projects"))}})}}];return globals.app.hasPermission({workspace:this.workspace,module:"projects",action:"manage"})&&o.splice(1,0,{key:"edit-quota",icon:"pen",action:"edit",text:t("EDIT_PROJECT_QUOTAS"),isHidden:this.isEdge,onClick:function(){return e.trigger("project.quota.edit",{detail:r,success:function(){return e.quotaStore.fetch(e.params)}})}}),this.isClusterManage&&o.splice(1,0,{key:"edit-annotations",icon:"pen",action:"manage",text:t("EDIT_ANNOTATIONS"),onClick:function(){return e.trigger("resource.annotations.edit",{detail:r,success:e.getData})}}),o}},{key:"enabledItemActions",get:function(){var e=this;return this.itemActions.filter((function(t){return(!t.action||e.enabledActions.includes(t.action))&&!t.isHidden}))}}]),r}(m.default.Component))||o)||o)||o;a.default=U},4622:function(e,a,r){"use strict";r(15);var n=r(20);r(18),r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(18),r(42),r(4),r(23),r(57),r(17);var o=n(r(30)),c=n(r(36)),s=n(r(37)),l=n(r(55)),i=n(r(56)),u=n(r(51)),d=r(186),f=n(r(3)),p=n(r(789)),m=n(r(790)),h=n(r(26)),v=n(r(63)),g=n(r(1216)),_=n(r(0)),y=r(433),E=r(52),b=n(r(4623));function S(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,u.default)(e);if(t){var n=(0,u.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,i.default)(this,a)}}var O=function(e){(0,l.default)(r,e);var a=S(r);function r(){return(0,c.default)(this,r),a.apply(this,arguments)}return(0,s.default)(r,[{key:"renderMoreMenu",value:function(){var e=this.props,t=e.actions,a=e.onMenuClick;return _.default.createElement(d.Menu,{onClick:a},t.map((function(e){return _.default.createElement(d.Menu.MenuItem,{key:e.key},_.default.createElement(d.Icon,{name:e.icon,type:"light"})," ",e.text)})))}},{key:"render",value:function(){var e=this.props,a=e.detail,r=e.workspace,n=e.serviceCount,c=e.memberCount,s=e.roleCount,l=e.actions,i=e.showDetail;return _.default.createElement(p.default,{className:(0,f.default)(b.default.wrapper,(0,o.default)({},b.default.single,!i)),title:t("PROJECT_INFO")},_.default.createElement("div",{className:b.default.header},_.default.createElement(m.default,{icon:"project",title:(0,E.getDomTitle)((0,E.getDisplayNameNew)(a)),description:t("NAME"),ellipsis:!0}),_.default.createElement("div",{className:(0,f.default)(b.default.item,"ellipsis")},_.default.createElement("div",null,_.default.createElement(y.Link,{to:"/workspaces/".concat(r),className:"ellipsis block"},(0,E.showNameAndAlias)(r,"workspace"))),_.default.createElement("p",null,t("WORKSPACE"))),_.default.createElement("div",{className:b.default.item},_.default.createElement("div",null,(0,h.default)(a,"creator")||"-"),_.default.createElement("p",null,t("CREATOR"))),_.default.createElement("div",{className:b.default.item},_.default.createElement("div",null,(0,E.getLocalTime)(a.createTime).format("YYYY-MM-DD HH:mm:ss")),_.default.createElement("p",null,t("CREATION_TIME"))),!(0,v.default)(l)&&_.default.createElement(g.default,{content:this.renderMoreMenu()})),i&&_.default.createElement("div",{className:b.default.content},_.default.createElement("div",{className:b.default.contentItem},_.default.createElement(d.Icon,{name:"appcenter",size:40}),_.default.createElement("div",{className:b.default.item},_.default.createElement("div",null,n),_.default.createElement("p",null,"1"===n?t("SERVICE"):t("SERVICE_PL")))),_.default.createElement("div",{className:b.default.contentItem},_.default.createElement(d.Icon,{name:"role",size:40}),_.default.createElement("div",{className:b.default.item},_.default.createElement("div",null,s),_.default.createElement("p",null,"1"===s?t("PROJECT_ROLE_SCAP"):t("PROJECT_ROLE_SCAP_PL")))),_.default.createElement("div",{className:b.default.contentItem},_.default.createElement(d.Icon,{name:"group",size:40}),_.default.createElement("div",{className:b.default.item},_.default.createElement("div",null,c),_.default.createElement("p",null,1===c?t("PROJECT_MEMBER_SCAP"):t("PROJECT_MEMBER_SCAP_PL"))))))}}]),r}(_.default.Component);a.default=O},4623:function(e,t,a){e.exports={wrapper:"y1eLrGpaohxMQDmsuRFMf",single:"_3rv-wCj02PzvuQG7qSSKZM",header:"_363Ff0hbZt6NBtRrxtkMAZ",item:"_2DA2psiwLtN9ceOhO9r16S",content:"nMtAhiQIHvZlW09dFBhY7",contentItem:"_2NiYmn1-SSZjJzHwbNSDOf",button:"_1mI2OrNuD9gi0be-QgMLGw"}},4624:function(e,a,r){"use strict";r(15);var n=r(20);r(12),r(109),r(5),r(73),r(16),r(10),r(4),r(23),r(24),r(17),r(62),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(109),r(45),r(5),r(73),r(42),r(16),r(10),r(4),r(23),r(57),r(24),r(17),r(62);var o,c=n(r(315)),s=n(r(36)),l=n(r(37)),i=n(r(55)),u=n(r(56)),d=n(r(51)),f=n(r(0)),p=n(r(788)),m=n(r(792)),h=r(793),v=n(r(796)),g=r(52),_=r(72),y=n(r(1e3));function E(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,d.default)(e);if(t){var n=(0,d.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,u.default)(this,a)}}var b=(0,h.withProjectList)({store:new y.default,module:"configmaps",name:"CONFIGMAP"})(o=function(e){(0,i.default)(r,e);var a=E(r);function r(){var e;(0,s.default)(this,r);for(var n=arguments.length,o=new Array(n),c=0;c0&&void 0!==arguments[0]?arguments[0]:{};return"kapis/monitoring.kubesphere.io/v1alpha1".concat(e.getPath(t),"/").concat(e.module)},e}return(0,c.default)(a,[{key:"createGrafana",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.submitting(request.post("/kapis/monitoring.kubesphere.io/v1alpha1/".concat(this.getPath(t),"/dashboards/").concat(e.grafanaDashboardName,"/template"),e))}}]),a}(r(a(68)).default),(0,u.default)(n.prototype,"createGrafana",[d.action],Object.getOwnPropertyDescriptor(n.prototype,"createGrafana"),n.prototype),n);t.default=p},4647:function(e,t,a){e.exports={title:"AB68PnUYdCxRDBPIEIYpP"}},4648:function(e,a,r){"use strict";var n=r(20);r(12),r(11),r(6),r(84),r(16),r(9),r(13),r(10),r(4),r(23),r(24),r(17),r(85),r(62),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(45),r(11),r(6),r(84),r(28),r(42),r(16),r(34),r(15),r(9),r(13),r(10),r(4),r(23),r(57),r(24),r(17),r(85),r(62),r(7);var o,c=n(r(30)),s=n(r(315)),l=n(r(36)),i=n(r(37)),u=n(r(55)),d=n(r(56)),f=n(r(51)),p=n(r(0)),m=r(239),h=n(r(26)),v=n(r(74)),g=r(186),_=n(r(789)),y=n(r(792)),E=n(r(833)),b=r(72),S=r(52),O=n(r(4649)),R=n(r(4652)),A=n(r(4654));function k(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function T(e){for(var t=1;t0&&void 0!==arguments[0])||arguments[0],t={};(0,v.default)(t,'metadata.annotations["kubesphere.io/network-isolate"]',e?"enabled":""),n.projectStore.patch({name:n.namespace,cluster:n.cluster},t).then((function(){n.projectStore.fetchDetail(n.params)}))},n.handleEditNetworkIsolate=function(e){n.toggleNetworkIsolate(e)},n.projectStore=n.props.projectStore,n}return(0,i.default)(r,[{key:"render",value:function(){var e=this.module,a=this.name,r=this.tips,n=this.namespace,o=this.cluster,c=this.workspace,l=this.projectStore.isSubmitting,i="enabled"===(0,h.default)(this.projectStore,'detail.annotations["kubesphere.io/network-isolate"]'),u=this.enabledActions.includes("edit");return p.default.createElement("div",null,p.default.createElement(y.default,{module:e,className:"margin-b12",title:t(a),tips:r(),description:t("NETWORK_ISOLATION_DESC")}),p.default.createElement("div",{className:A.default.subtitle},t(a)),i?p.default.createElement(_.default,{className:A.default.wrapper},p.default.createElement(R.default,(0,s.default)({module:e,networkIsolate:i,onEdit:this.handleEditNetworkIsolate,canEdit:u},this.props)),p.default.createElement(O.default,(0,s.default)({module:e,namespace:n,cluster:o,workspace:c,canEdit:u},this.props))):p.default.createElement(E.default,{icon:b.ICON_TYPES[e],title:t("NETWORK_POLICY_EMP_TITLE"),desc:t("NETWORK_POLICY_EMP_DESC"),className:A.default.eplist,actions:u&&p.default.createElement(g.Button,{type:"control",loading:l,onClick:this.toggleNetworkIsolate},t("ENABLE"))}))}},{key:"params",get:function(){return(0,h.default)(this.props.match,"params",{})}},{key:"namespace",get:function(){return(0,h.default)(this.params,"namespace")}},{key:"cluster",get:function(){return(0,h.default)(this.params,"cluster")}},{key:"workspace",get:function(){return(0,h.default)(this.projectStore,"detail.workspace","")}},{key:"enabledActions",get:function(){return globals.app.getActions(T(T({module:"networkpolicies"},this.params),{},{project:this.params.namespace}))}}]),r}(p.default.Component))||o)||o;a.default=C},4649:function(e,a,r){"use strict";var n=r(20);r(12),r(11),r(6),r(9),r(13),r(10),r(4),r(23),r(17),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(45),r(11),r(6),r(28),r(42),r(34),r(15),r(9),r(13),r(10),r(4),r(23),r(57),r(17),r(7);var o,c=n(r(30)),s=n(r(36)),l=n(r(37)),i=n(r(55)),u=n(r(56)),d=n(r(51)),f=n(r(0)),p=r(239),m=n(r(3)),h=r(186),v=r(791),g=n(r(443)),_=n(r(4650)),y=n(r(4651)),E=n(r(1443));function b(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function S(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.direction,a=(0,i.default)(e,["direction"]),r=n.props,o=r.cluster,c=r.namespace,s=r.workspace,l=["kubesphere.io/policy-traffic=outside"];t&&"all"!==t&&l.push("kubesphere.io/policy-type=".concat(t)),n.outsideStore.fetchListOut(D({cluster:o,namespace:c,workspace:s,limit:10,labelSelector:l.join(",")},a))},n.addIpBlock=function(){n.trigger("network.policies.addIpBlock",D(D({},n.props),{},{success:n.fetchOutside}))},n.editIpBlock=function(e,t){n.trigger("network.policies.editIpBlock",D(D({},n.props),{},{formTemplate:(0,g.toJS)(t._originData),edit:!0,name:e,store:n.outsideStore,success:n.fetchOutside}))},n.viewIpBlock=function(e,t){n.trigger("network.policies.viewIpBlock",D(D({},n.props),{},{formTemplate:(0,g.toJS)(t._originData),edit:!0,name:e,store:n.outsideStore,fetchOutside:n.fetchOutside,success:n.fetchOutside}))},n.handleDelete=function(e){n.trigger("network.policies.delete",D(D({},n.props),{},{ruleName:e,resource:e,store:n.outsideStore,type:"ALLOWLIST_ENTRY",success:n.fetchOutside}))},n.getColumns=function(){var e=n.props,a=e.getSortOrder,r=e.getFilteredValue;return[{title:t("NAME"),dataIndex:"name",sorter:!0,sortOrder:a("name"),search:!0,render:function(e,t){return h.default.createElement(y.default,{onClick:function(){n.viewIpBlock(e,t)},className:k.default.avatar,desc:t.description||"-",title:t.aliasName?"".concat(t.name,"(").concat(t.aliasName,")"):t.name})}},{title:t("TRAFFIC_DIRECTION"),dataIndex:"direction",filters:n.getStatus(),filteredValue:r("direction"),isHideable:!0,search:!0,render:function(e){return h.default.createElement("div",null,"ingress"===e?t("INGRESS"):t("EGRESS"))}},{title:t("NETWORK_SEGMENT_QUANTITY"),dataIndex:"ipBlockNumber",isHideable:!0,search:!0},{title:t("PORT_QUANTITY"),dataIndex:"portsNumber",isHideable:!0,search:!0},{title:t("UPDATE_TIME_TCAP"),dataIndex:"createTime",sorter:!0,sortOrder:a("updateTime"),isHideable:!0,render:function(e){return(0,O.getLocalTime)(e).format("YYYY-MM-DD HH:mm:ss")}}]},n.module=e.module,n.outsideStore=e.store,n}return(0,d.default)(r,[{key:"componentDidMount",value:function(){this.fetchOutside()}},{key:"getStatus",value:function(){return[{text:"ALL",value:"all"},{text:"EGRESS",value:"egress"},{text:"INGRESS",value:"ingress"}].map((function(e){return{text:t(e.text),value:e.value}}))}},{key:"render",value:function(){var e,a=this.props,r=a.canEdit,n=a.tableProps,o=null===(e=this.outsideStore.list.data)||void 0===e?void 0:e.map((function(e){var t=(0,g.toJS)(e._originData),a=(0,_.default)(t,"spec.ingress[0].ports")||(0,_.default)(t,"spec.egress[0].ports")||[],r=(0,_.default)(t,"spec.ingress[0].to")||(0,_.default)(t,"spec.egress[0].to")||(0,_.default)(t,"spec.ingress[0].from")||(0,_.default)(t,"spec.egress[0].from")||[],n=a.length;return D(D({},e),{},{direction:(0,_.default)(t,"spec.ingress[0]")?"ingress":"egress",portsNumber:n,ipBlockNumber:r.length})}));return h.default.createElement(h.default.Fragment,null,h.default.createElement("div",{className:k.default.rulemenu},h.default.createElement("div",null,t("EXTERNAL_ALLOWLIST_TIP")),r&&h.default.createElement(E.Button,{type:"control",onClick:this.addIpBlock},t("ADD_ALLOWLIST_ENTRY"))),h.default.createElement(b.ListPage,(0,s.default)({},this.props,{getData:this.fetchOutside,noWatch:!0}),h.default.createElement(S.default,(0,s.default)({},n,{rowKey:"name",data:o,hideSearch:!0,itemActions:this.itemActions,tableActions:this.tableActions,columns:this.getColumns()}))))}},{key:"itemActions",get:function(){var e=this;return[{key:"edit",icon:"pen",text:t("EDIT"),action:"edit",onClick:function(t){e.editIpBlock(t.name,t)}},{key:"delete",icon:"trash",text:t("DELETE"),action:"delete",onClick:function(t){return e.trigger("resource.delete",{detail:t,type:"ALLOWLIST_ENTRY",store:e.outsideStore,success:e.fetchOutside})}}]}},{key:"tableActions",get:function(){return D(D({},this.props.tableProps.tableActions),{},{onFetch:this.fetchOutside})}}]),r}(h.default.Component))||c)||c)||c)||c;a.default=P},4652:function(e,a,r){"use strict";r(15);var n=r(20);r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(42),r(4),r(23),r(57),r(17);var o,c=n(r(36)),s=n(r(37)),l=n(r(55)),i=n(r(56)),u=n(r(51)),d=n(r(0)),f=r(239),p=r(186),m=r(72),h=r(791),v=n(r(850)),g=n(r(4653));function _(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,u.default)(e);if(t){var n=(0,u.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,i.default)(this,a)}}var y=(0,f.inject)("rootStore")(o=(0,h.trigger)(o=(0,f.observer)(o=function(e){(0,l.default)(r,e);var a=_(r);function r(e){var n;return(0,c.default)(this,r),(n=a.call(this,e)).toggle=function(){var e=n.state.opened;e?n.trigger("network.policies.toggle",{resource:t("DISABLED_PROJECT_NETWORK_ISOLATION"),title:t("DISABLED_PROJECT_NETWORK_ISOLATION"),desc:t.html("DISABLED_RESOURCE_TYPE_DESC",{resource:t("DISABLED_PROJECT_NETWORK_ISOLATION")}),success:function(){n.props.onEdit(!e),n.setState({opened:!e})}}):(n.props.onEdit(!e),n.setState({opened:!e}))},n.state={opened:e.networkIsolate},n}return(0,s.default)(r,[{key:"render",value:function(){var e=this.state.opened,a=this.props,r=a.module,n=a.canEdit;return d.default.createElement("div",{className:g.default.wrapper},d.default.createElement("div",{className:g.default.left},d.default.createElement(p.Icon,{name:m.ICON_TYPES[r],size:40,color:{primary:"#324558",secondary:"#f5a623"}}),d.default.createElement("div",{className:g.default.isolate},d.default.createElement("div",{className:g.default.isolatetitle},t("ENABLED")),d.default.createElement("div",null,t("PROJECT_NETWORK_ISOLATION")))),n&&d.default.createElement(v.default,{className:g.default.switch,text:e?t("ENABLED"):t("DISABLED"),onChange:this.toggle,checked:e}))}}]),r}(d.default.Component))||o)||o)||o;a.default=y},4653:function(e,t,a){e.exports={wrapper:"_2yyqmdLMQV7jExw4-99r2V",left:"_3NfpPZF4t2tLIAFo8aCkod",isolate:"_2Gn52m3ytjk9-uNyzg2pHS",isolatetitle:"_3A7x-YmULSD9DlRZAIcLO7"}},4654:function(e,t,a){e.exports={wrapper:"ggsECpK2-iUDno_sJog6s",subtitle:"_2FnrF0AWM2BVASqvjWI14c",eplist:"_1_D3iOzFw4bLc5I38oh41Q"}},4655:function(e,a,r){"use strict";(function(e){var n=r(20);r(12),r(109),r(5),r(11),r(6),r(9),r(13),r(10),r(4),r(23),r(24),r(17),r(62),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(109),r(45),r(5),r(11),r(6),r(28),r(42),r(34),r(15),r(9),r(13),r(10),r(4),r(22),r(23),r(57),r(24),r(17),r(62),r(7);var o=n(r(315)),c=n(r(43));r(41);var s,l=n(r(44)),i=n(r(30)),u=n(r(36)),d=n(r(37)),f=n(r(55)),p=n(r(56)),m=n(r(51)),h=n(r(0)),v=n(r(26)),g=r(186),_=n(r(240)),y=n(r(796)),E=n(r(1024)),b=n(r(792)),S=r(793),O=r(52),R=n(r(483)),A=n(r(4656));function k(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function T(e){for(var t=1;t=.9&&m.default.createElement(y.Icon,{name:"exclamation"}),m.default.createElement("span",null,"(".concat(r.cpu_used,"/").concat(r.cpu_total," Core)"))),description:t("CPU_USAGE_SCAP")})}},{key:"memory",className:N.default.cpu,render:function(a){var r=e.getRecordMetrics(a,[{type:"memory_used",unit:"Gi"},{type:"memory_total",unit:"Gi"},{type:"memory_utilisation"}]);return m.default.createElement(S.default,{title:m.default.createElement("div",{className:N.default.resource},m.default.createElement("span",null,"".concat(Math.round(100*r.memory_utilisation),"%")),r.memory_utilisation>=.9&&m.default.createElement(y.Icon,{name:"exclamation"}),m.default.createElement("span",null,"(".concat(r.memory_used,"/").concat(r.memory_total," GiB)"))),description:t("MEMORY_USAGE_TCAP")})}},{key:"pods",className:N.default.pods,render:function(a){var r=e.getRecordMetrics(a,[{type:"pod_used"},{type:"pod_total"}]),n=r.pod_total?parseFloat(r.pod_used/r.pod_total):0;return m.default.createElement(S.default,{title:"".concat(Math.round(100*n),"%(").concat(r.pod_used,"/").concat(r.pod_total,")"),description:t("PODS")})}}]},e.renderCPUTooltip=function(e){var a=m.default.createElement("p",null,1===(0,k.cpuFormat)((0,_.default)(e,'annotations["node.kubesphere.io/cpu-limits"]'))?t("CPU_LIMIT_SI",{core:(0,k.cpuFormat)((0,_.default)(e,'annotations["node.kubesphere.io/cpu-limits"]')),percent:(0,_.default)(e,'annotations["node.kubesphere.io/cpu-limits-fraction"]')}):t("CPU_LIMIT_PL",{core:(0,k.cpuFormat)((0,_.default)(e,'annotations["node.kubesphere.io/cpu-limits"]')),percent:(0,_.default)(e,'annotations["node.kubesphere.io/cpu-limits-fraction"]')}));return m.default.createElement(y.Tooltip,{content:a,placement:"top"},m.default.createElement(S.default,{title:1===(0,k.cpuFormat)((0,_.default)(e,'annotations["node.kubesphere.io/cpu-limits"]'))?t("CPU_REQUEST_SI",{core:(0,k.cpuFormat)((0,_.default)(e,'annotations["node.kubesphere.io/cpu-requests"]')),percent:(0,_.default)(e,'annotations["node.kubesphere.io/cpu-requests-fraction"]')}):t("CPU_REQUEST_PL",{core:(0,k.cpuFormat)((0,_.default)(e,'annotations["node.kubesphere.io/cpu-requests"]')),percent:(0,_.default)(e,'annotations["node.kubesphere.io/cpu-requests-fraction"]')}),description:t("RESOURCE_REQUEST")}))},e.renderMemoryTooltip=function(e){var a=m.default.createElement("p",null,t("MEMORY_LIMIT_VALUE",{gib:(0,k.memoryFormat)((0,_.default)(e,'annotations["node.kubesphere.io/memory-limits"]'),"Gi"),percent:(0,_.default)(e,'annotations["node.kubesphere.io/memory-limits-fraction"]')}));return m.default.createElement(y.Tooltip,{content:a,placement:"top"},m.default.createElement(S.default,{title:t("MEMORY_REQUEST_VALUE",{gib:(0,k.memoryFormat)((0,_.default)(e,'annotations["node.kubesphere.io/memory-requests"]'),"Gi"),percent:(0,_.default)(e,'annotations["node.kubesphere.io/memory-requests-fraction"]')}),description:t("RESOURCE_REQUEST")}))},e.renderEmpty=function(){return m.default.createElement("div",{className:N.default.empty},m.default.createElement("div",{className:N.default.icon},m.default.createElement(y.Icon,{name:"edge-node",size:40})),m.default.createElement("div",{className:N.default.title},m.default.createElement("span",null,t("NO_EDGE_CLUSTER")),m.default.createElement("p",null,t("NO_EDGE_CLUSTER_DESC"))))},e}return(0,u.default)(r,[{key:"componentDidMount",value:function(){this.getData()}},{key:"getStatus",value:function(){return A.NODE_STATUS.map((function(e){return{text:t(e.text),value:e.value}}))}},{key:"render",value:function(){var e=this,t=this.store.list,a=t.data,r=t.total,n=t.page,o=t.isLoading;return m.default.createElement(O.default,{wrapperClassName:N.default.listWrapper,data:(0,h.toJS)(a),total:r,page:n,loading:o,onFetch:this.getData,empty:this.renderEmpty()},a.map((function(t,a){return m.default.createElement(P.default,{key:a,data:t,Columns:e.Columns()})})))}},{key:"cluster",get:function(){return this.props.cluster}},{key:"isExpired",get:function(){var e;return(null===(e=globals.licenseInfo)||void 0===e?void 0:e.isExpired)||!1}},{key:"isOverLimit",get:function(){var e;return(null===(e=globals.licenseInfo)||void 0===e?void 0:e.isOverLimit)||!1}},{key:"tips",get:function(){return[{title:t("WHAT_IS_NODE_TAINTS_Q"),description:t("WHAT_IS_NODE_TAINTS_A")}]}}]),r}(m.default.Component))||s;a.default=L},4660:function(e,t,a){"use strict";a(15);var r=a(20);a(18),a(4),a(23),a(17),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(45),a(18),a(42),a(4),a(23),a(57),a(17);var n=r(a(36)),o=r(a(37)),c=r(a(55)),s=r(a(56)),l=r(a(51)),i=r(a(0)),u=r(a(3)),d=r(a(1902));function f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,l.default)(e);if(t){var n=(0,l.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,s.default)(this,a)}}var p=function(e){(0,c.default)(a,e);var t=f(a);function a(){return(0,n.default)(this,a),t.apply(this,arguments)}return(0,o.default)(a,[{key:"render",value:function(){var e=this.props,t=e.data,a=e.Columns;return i.default.createElement("div",{className:d.default.item},a.map((function(e,a){return i.default.createElement("div",{key:a,className:(0,u.default)(d.default.col,e.className)},e.render(t[e.dataIndex],t))})))}}]),a}(i.default.Component);t.default=p},4661:function(e,t,a){},4662:function(e,t,a){"use strict";a(15);var r=a(20);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=a(317),o=r(a(1899)),c=r(a(4663)),s=r(a(1906)),l="/:workspace/clusters/:cluster/projects/:namespace/grayrelease",i=[{name:"cates",title:"RELEASE_MODE_PL",component:c.default},{name:"jobs",title:"RELEASE_TASKS",component:s.default}],u=[{path:l,component:o.default,routes:(0,n.getChildRoutes)(i,l)}];t.default=u},4663:function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(31),r(18),r(4),r(23),r(24),r(17),r(62),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(31),r(18),r(28),r(42),r(4),r(23),r(57),r(24),r(17),r(62);var o,c=n(r(36)),s=n(r(37)),l=n(r(55)),i=n(r(56)),u=n(r(51)),d=n(r(0)),f=r(239),p=r(186),m=n(r(240)),h=n(r(825)),v=r(72),g=n(r(435)),_=n(r(901)),y=n(r(1444)),E=n(r(4664)),b=n(r(4691));function S(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,u.default)(e);if(t){var n=(0,u.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,i.default)(this,a)}}var O=(0,f.inject)("rootStore")(o=(0,f.observer)(o=function(e){(0,l.default)(r,e);var a=S(r);function r(e){var n;return(0,c.default)(this,r),(n=a.call(this,e)).showCreate=function(e){n.setState({showCreateModal:!0,selectType:e.currentTarget.dataset.type})},n.hideCreate=function(){n.setState({showCreateModal:!1,selectType:""})},n.handleCreate=function(e){var a=n.props.match.params,r=a.workspace,o=a.cluster,c=a.namespace;n.store.create(e,{cluster:o,namespace:c}).then((function(){n.hideCreate(),m.default.success({content:t("CREATE_SUCCESSFUL")}),n.routing.push("/".concat(r,"/clusters/").concat(o,"/projects/").concat(c,"/grayrelease/jobs")),_.default.delete("".concat(n.module,"_create_form"))}))},n.state={showCreateModal:!1,selectType:""},n.store=new y.default,n.module="strategies",n.namespace=n.props.match.params.namespace,n.cluster=n.props.match.params.cluster,n}return(0,s.default)(r,[{key:"render",value:function(){var e=this,a=this.state,r=a.showCreateModal,n=a.selectType,o=v.GRAY_RELEASE_CATEGORIES.find((function(e){return e.type===n}))||{};return d.default.createElement("div",null,d.default.createElement("ul",{className:b.default.wrapper},v.GRAY_RELEASE_CATEGORIES.map((function(a){return d.default.createElement("li",{key:a.title},d.default.createElement("div",{className:b.default.content},d.default.createElement("div",{className:b.default.icon},d.default.createElement(p.Icon,{name:a.icon,size:24,type:"light"})),d.default.createElement("div",{className:b.default.text},d.default.createElement("div",{className:"h5"},t(a.title)),d.default.createElement("p",null,t.html(a.desc)))),d.default.createElement("div",{className:b.default.footer},e.canCreate&&d.default.createElement(p.Button,{type:"control","data-type":a.type,onClick:e.showCreate},t("CREATE"))))}))),d.default.createElement(h.default,{title:t("CREATE_".concat(o.title,"_TASK")),module:"grayreleases_".concat(o.type),formTemplate:this.formTemplate,cluster:this.cluster,namespace:this.namespace,store:this.store,visible:r,steps:this.steps,onCancel:this.hideCreate,onOk:this.handleCreate,closable:!0,noCodeEdit:!0}))}},{key:"routing",get:function(){return this.props.rootStore.routing}},{key:"formTemplate",get:function(){return{strategy:g.default[this.module]({namespace:this.namespace,type:this.state.selectType})}}},{key:"steps",get:function(){return E.default}},{key:"canCreate",get:function(){var e=this.props.match.params,t=e.cluster,a=e.workspace,r=e.namespace;return globals.app.hasPermission({cluster:t,workspace:a,project:r,module:"grayscale-release",action:"create"})}}]),r}(d.default.Component))||o)||o;a.default=O},4664:function(e,t,a){"use strict";a(15);var r=a(20);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(a(4665)),o=r(a(4666)),c=r(a(1903)),s=r(a(1905)),l=[{title:"BASIC_INFORMATION",component:n.default,required:!0},{title:"SERVICE_SETTINGS",component:o.default,required:!0},{title:"NEW_VERSION_SETTINGS",component:c.default,required:!0},{title:"STRATEGY_SETTINGS",component:s.default,required:!0}];t.default=l},4665:function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(42),r(4),r(23),r(57),r(17);var o,c=n(r(36)),s=n(r(37)),l=n(r(55)),i=n(r(56)),u=n(r(51)),d=n(r(26)),f=n(r(0)),p=r(239),m=r(72),h=r(186);function v(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,u.default)(e);if(t){var n=(0,u.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,i.default)(this,a)}}var g=(0,p.observer)(o=function(e){(0,l.default)(r,e);var a=v(r);function r(){var e;(0,c.default)(this,r);for(var n=arguments.length,o=new Array(n),s=0;s0?u.default.createElement("span",{className:h.default.right},t("UNFINISHED_GRAY_TASK")):u.default.createElement(m.Button,{className:h.default.right,type:a?"control":"default",loading:n,onClick:this.handleClick},a?t("DESELECT"):t("SELECT"))}},{key:"render",value:function(){var e=this.props.component,a=e.workloads.map((function(e){return(0,f.default)(e,"labels.version")})).filter((function(e){return!(0,p.default)(e)})),r="true"===(0,f.default)(e,'annotations["servicemesh.kubesphere.io/enabled"]');return u.default.createElement("div",{className:h.default.card},u.default.createElement("div",{className:h.default.icon},u.default.createElement(m.Icon,{name:"network-router",size:40}),r&&u.default.createElement("span",{className:h.default.istio},u.default.createElement(m.Icon,{name:"istio",size:16,color:{primary:"#329dce"}}))),u.default.createElement("div",{className:h.default.text},u.default.createElement("div",{className:"h6"},e.name),u.default.createElement("p",null,e.workloadType?t("TYPE_SERVICE_".concat(e.workloadType.toUpperCase())):"")),u.default.createElement("div",{className:h.default.version},u.default.createElement("strong",null,a.join(", ")||"-"),u.default.createElement("p",null,1===a.length?t("VERSION"):t("VERSIONS"))),this.renderActions())}}]),r}(u.default.PureComponent);a.default=g,g.propTypes={component:d.default.object,value:d.default.bool,loading:d.default.bool,onSelect:d.default.func},g.defaultProps={component:{},value:!1,loading:!1,onSelect:function(){}}},4669:function(e,t,a){e.exports={card:"_3vdiLN4Az6-6fCKu8ttzIa",text:"_2C5MPZP86Hmq9uLh1-prt5",version:"_3BdnFvaVFC2V8wsrWb3j1F",right:"_22_hdrLm_dtJeJueL5yCgt",icon:"NrHNPh-9ONr5JnVvXUTCp",istio:"QsKsUbWftNYVLE1oT6Mc"}},4670:function(e,t,a){e.exports={wrapper:"_3jlq6ji_fVJNJXEVJYPoTi"}},4671:function(e,t,a){e.exports={bar:"j7RcImezSmT-OprCulkMk",checkbox:"ZE5YWXYsULV5eiGXfcYP7",formWrapper:"_3ytQ7Vaf_iycMg_bFmBAUm",option:"_34g2-hBf74QtaHOUh6qYBM"}},4672:function(e,t,a){"use strict";a(15);var r=a(20);a(18),a(16),a(4),a(23),a(17),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(45),a(18),a(42),a(16),a(4),a(23),a(57),a(17);var n=r(a(36)),o=r(a(37)),c=r(a(332)),s=r(a(55)),l=r(a(56)),i=r(a(51)),u=r(a(0)),d=r(a(1555)),f=r(a(4673)),p=r(a(1904));function m(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,i.default)(e);if(t){var n=(0,i.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,l.default)(this,a)}}var h=function(e){(0,s.default)(a,e);var t=m(a);function a(){return(0,n.default)(this,a),t.apply(this,arguments)}return(0,o.default)(a,[{key:"renderEmpty",value:function(){return null}},{key:"renderContainers",value:function(){var e=this,t=this.props,a=t.value,r=t.disabled;return u.default.createElement("ul",{className:p.default.list},a.map((function(t){return u.default.createElement(f.default,{container:t,key:t.name,onEdit:e.handleEdit,onDelete:e.handleDelete,disabled:r})})))}},{key:"renderInitContainers",value:function(){var e=this,t=this.props,a=t.specTemplate.initContainers,r=void 0===a?[]:a,n=t.disabled;return r.map((function(t){return u.default.createElement(f.default,{container:t,key:t.name,type:"init",onEdit:e.handleEdit,onDelete:e.handleDelete,disabled:n})}))}},{key:"renderAdd",value:function(){return this.props.disabled?null:(0,c.default)((0,i.default)(a.prototype),"renderAdd",this).call(this)}}]),a}(d.default);t.default=h},4673:function(e,a,r){"use strict";var n=r(20);r(12),r(11),r(6),r(16),r(9),r(13),r(10),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(11),r(6),r(28),r(16),r(34),r(15),r(9),r(13),r(10),r(4),r(7);var o=n(r(30)),c=n(r(0)),s=n(r(1)),l=r(186),i=n(r(812)),u=n(r(1904));function d(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function f(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};t.name&&t.namespace&&this.store.fetchDetail(t).then((function(){var t=(0,A.toJS)(e.store.detail);if("Canary"===t.type&&!t.byContent){var a=(0,v.default)(t,"newRoute.weight",50);e.setState({ratio:a})}e.initWebsocket(t),e.updateTipInfo()}))}},{key:"getWorkLoadDetail",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.silent,a=(0,i.default)(e,["silent"]),r=a.cluster,n=a.namespace,o=a.selector,c=a.hosts,s=a.newVersion,l=a.oldVersion;if(n&&o){var u=(0,w.joinSelector)(o);this.workloadStore.fetchListByK8s({cluster:r,namespace:n,labelSelector:u}),this.store.fetchComponents({cluster:r,namespace:n,service:c,labelSelector:u,newVersion:s,oldVersion:l,silent:t})}}},{key:"renderTitle",value:function(){var e=(0,A.toJS)(this.store.detail),a=x.GRAY_RELEASE_CATEGORIES.find((function(t){return t.type===e.type}))||{};return S.default.createElement("div",{className:B.default.title},S.default.createElement("img",{src:"/assets/default-app.svg",alt:""}),S.default.createElement("div",{className:B.default.text},S.default.createElement("div",{className:"h4"},e.name),S.default.createElement("p",null,t("RELEASE_MODE"),": ",S.default.createElement("strong",null,t("".concat(a.title,"_LOW"))))),this.CanDelete&&S.default.createElement(T.Button,{onClick:this.handleOffline},t("DELETE")))}},{key:"renderComponents",value:function(){var e=(0,A.toJS)(this.store.detail),a=this.store.components.data,r=this.store.isComponentsLoading;if(r)return S.default.createElement("div",null,S.default.createElement("div",{className:B.default.sectionTitle},S.default.createElement("div",null,t("VERSIONS")),S.default.createElement("p",null,t("GRAY_COMPONENT_DESC"))),S.default.createElement(T.Loading,{spinning:r,className:B.default.loading}));var n={showEditModal:this.showEditModal,onTakeover:"Mirror"!==e.type?this.handleTakeover:null,namespace:this.props.detail.namespace,cluster:this.props.detail.cluster,workspace:this.props.detail.workspace,maxLength:Math.min(Math.max((0,v.default)(a,"[".concat(e.newVersion,"].pods.length"),0),(0,v.default)(a,"[".concat(e.oldVersion,"].pods.length"),0)),3),jobDetail:e,workloadType:this.workloadType};return S.default.createElement("div",null,S.default.createElement("div",{className:B.default.sectionTitle},S.default.createElement("div",null,t("VERSIONS")),S.default.createElement("p",null,t("GRAY_COMPONENT_DESC"))),S.default.createElement(T.Columns,null,S.default.createElement(T.Column,null,S.default.createElement(L.default,(0,l.default)({data:a[e.newVersion],pods:(0,A.toJS)((0,v.default)(a,"[".concat(e.newVersion,"].pods"),[])),type:"new",isGovernor:e.governor===e.newVersion},n))),S.default.createElement(T.Column,null,S.default.createElement(L.default,(0,l.default)({data:a[e.oldVersion],pods:(0,A.toJS)((0,v.default)(a,"[".concat(e.oldVersion,"].pods"),[])),type:"old",isGovernor:e.governor===e.oldVersion},n)))))}},{key:"renderTraffic",value:function(){var e=(0,A.toJS)(this.store.detail),a=this.state.ratio,r=(0,v.default)(e,"newRoute.weight");return S.default.createElement(S.default.Fragment,null,S.default.createElement("div",{className:B.default.sectionTitle},S.default.createElement("div",null,t("TRAFFIC_DISTRIBUTION")),S.default.createElement("p",null,t("ALLOCATE_TRAFFIC_DESC"))),S.default.createElement(P.default,{min:0,max:100,value:a,leftContent:e.newVersion,rightContent:e.oldVersion,onChange:this.handleRatioChange}),S.default.createElement(C.default,{visible:a!==r,width:400,title:t("ADJUST_TRAFFIC_DISTRIBUTION"),content:t.html("ADJUST_TRAFFIC_DISTRIBUTION_DESC",{newVersion:e.newVersion,oldVersion:e.oldVersion,ratioNew:a,ratioOld:100-a}),cancelText:t("CANCEL"),confirmText:t("OK"),isSubmitting:this.store.isSubmitting,onCancel:this.handleResetRatio,onConfirm:this.handleConfirmSaveRatio}))}},{key:"renderBluegreen",value:function(){var e=(0,A.toJS)(this.store.detail),a=e.governor||(100===e.oldRoute.weight?e.oldVersion:e.newVersion);return S.default.createElement(S.default.Fragment,null,S.default.createElement("div",{className:B.default.sectionTitle},S.default.createElement("div",null,t("TRAFFIC_DISTRIBUTION")),S.default.createElement("p",null,t("BLUE_GREEN_TRAFFIC_DISTRI_DESC"))),S.default.createElement("div",{className:B.default.barWrapper},S.default.createElement("div",{className:B.default.bar},t("VERSION_TRAFFIC_PERCENT",{version:a,percent:"100"}))))}},{key:"renderMirror",value:function(){var e=(0,A.toJS)(this.store.detail),a=e.governor||(100===e.oldRoute.weight?e.oldVersion:e.newVersion);return S.default.createElement(S.default.Fragment,null,S.default.createElement("div",{className:B.default.sectionTitle},S.default.createElement("div",null,t("TRAFFIC_DISTRIBUTION")),S.default.createElement("p",null,t("TRAFFIC_MIRRORING_TRAFFIC_DISTRI_DESC"))),S.default.createElement("div",{className:B.default.mirror},S.default.createElement("div",{className:B.default.barWrapper},S.default.createElement("div",{className:(0,R.default)(B.default.bar,(0,u.default)({},B.default.mirrorBar,a!==e.newVersion))},t("VERSION_TRAFFIC_PERCENT",{version:e.newVersion,percent:"100"}))),S.default.createElement("div",{className:(0,R.default)(B.default.mirrorIcon,(0,u.default)({},B.default.revertMirrorIcon,a===e.oldVersion))},S.default.createElement("img",{src:"/assets/mirror.svg",alt:""})),S.default.createElement("div",{className:B.default.barWrapper},S.default.createElement("div",{className:(0,R.default)(B.default.bar,(0,u.default)({},B.default.mirrorBar,a!==e.oldVersion))},t("VERSION_TRAFFIC_PERCENT",{version:e.oldVersion,percent:"100"})))))}},{key:"renderContentMatch",value:function(){var e=(0,A.toJS)(this.store.detail),a=this.store.components.data,r=this.store.isComponentsLoading;if(r)return S.default.createElement("div",null,S.default.createElement("div",{className:B.default.sectionTitle},S.default.createElement("div",null,t("REQUEST_PARAMETERS")),S.default.createElement("p",null,t("SPECIFY_REQUEST_PARAMETERS_DESC"))),S.default.createElement(T.Loading,{spinning:r,className:B.default.loading}));var n=(0,v.default)(e,"newRoute.match[0]"),o=a[e.newVersion]||{};if(!n)return null;var c=(0,v.default)(n,"uri",{}),s=(0,v.default)(n,"headers",{}),l=Object.keys(c)[0]||"",i=c[l]||"-",u=s.cookie||{},d=Object.keys(u)[0]||"",f=u[d]||"-",p=s["User-Agent"]||{},m=p.regex&&p.regex.slice(3,p.regex.length-3).split("|").map((function(e){return H[e]?H[e].label:e})).join(", ")||"-",h=Object.keys(s).find((function(e){return!["cookie","User-Agent"].includes(e)})),g=s[h]||{},_=Object.keys(g)[0]||"",y=g[_]||"-";return S.default.createElement(S.default.Fragment,null,S.default.createElement("div",{className:B.default.sectionTitle},S.default.createElement("div",null,t("REQUEST_PARAMETERS")),S.default.createElement("p",null,t("SPECIFY_REQUEST_PARAMETERS_DESC"))),S.default.createElement("div",{className:B.default.matchWrapper},e.governor&&S.default.createElement("div",{className:B.default.governor},S.default.createElement("div",null,S.default.createElement("div",null,S.default.createElement(T.Icon,{name:"appcenter",size:40})),S.default.createElement("div",null,t.html("SERVICE_VERSION_RECEIVE_ALL_TRAFFIC",{version:e.governor})),S.default.createElement("div",null,S.default.createElement(T.Button,{onClick:this.handleRecover},t("RESTORE"))))),S.default.createElement(T.Columns,null,S.default.createElement(T.Column,null,S.default.createElement("ul",null,S.default.createElement("li",null,S.default.createElement(T.Icon,{name:"earth",size:24}),S.default.createElement("strong",null,d?t("COOKIE_".concat(G[d])):t("COOKIE")),f),S.default.createElement("li",null,S.default.createElement(T.Icon,{name:"image",size:24}),S.default.createElement("strong",null,t("OS")),m),S.default.createElement("li",null,S.default.createElement(T.Icon,{name:"pen",size:24}),S.default.createElement("strong",null,_?t("HEADER_".concat(G[_])):t("HEADER")),h?"".concat(h,": ").concat(y):""),S.default.createElement("li",null,S.default.createElement(T.Icon,{name:"ip",size:24}),S.default.createElement("strong",null,l?t("URL_".concat(G[l])):t("URL")),i))),S.default.createElement(T.Column,{className:"is-narrow"},S.default.createElement("div",{className:B.default.matchArrow},S.default.createElement(T.Icon,{name:"update",color:{primary:"#329dce"},size:24}))),S.default.createElement(T.Column,{className:"is-narrow"},S.default.createElement("div",{className:B.default.matchVersion},S.default.createElement("div",null,S.default.createElement("div",null,S.default.createElement(T.Icon,{name:"appcenter",size:40})),S.default.createElement("div",null,S.default.createElement("span",{className:"ks-tag"},e.newVersion)),S.default.createElement("div",null,S.default.createElement("strong",null,e.hosts)),S.default.createElement("p",null,t("REPLICA_COUNT"),": ",S.default.createElement("strong",null,o.available),"/",o.desire)))))))}},{key:"renderPolicy",value:function(){var e=(0,A.toJS)(this.store.detail);return"Canary"===e.type?S.default.createElement("div",{style:{marginTop:20}},e.byContent?this.renderContentMatch():this.renderTraffic()):"Bluegreen"===e.type?S.default.createElement("div",{style:{marginTop:20}},this.renderBluegreen()):"Mirror"===e.type?S.default.createElement("div",{style:{marginTop:20}},this.renderMirror()):null}},{key:"renderMonitor",value:function(){var e=(0,A.toJS)(this.store.detail);return S.default.createElement(j.default,{detail:e,store:this.store})}},{key:"render",value:function(){var e=this.props,a=e.visible,r=e.onCancel,n=this.state,o=n.showEditModal,c=n.tipInfo,s=n.tipType,l=(0,A.toJS)(this.store.detail);return S.default.createElement(D.default,{className:B.default.modal,bodyClassName:B.default.body,headerClassName:B.default.header,title:t("TASK_STATUS"),cancelText:t("CLOSE"),onCancel:r,visible:a,fullScreen:!0},c&&S.default.createElement(T.Alert,{className:"margin-b8",type:s,message:c}),this.renderTitle(),S.default.createElement("div",{className:B.default.wrapper},this.renderComponents(),this.renderPolicy()),S.default.createElement("div",{className:B.default.monitor},this.renderMonitor()),S.default.createElement(U.default,{visible:o,module:"grayreleases",formData:this.formData,cluster:l.cluster,onOk:this.handleComponentEdit,onCancel:this.hideEditModal,isSubmitting:this.store.isSubmitting}))}},{key:"websocket",get:function(){return this.props.rootStore.websocket}},{key:"formData",get:function(){var e=(0,A.toJS)(this.store.detail),t="".concat(e.hosts,"-").concat(e.newVersion),a=(0,A.toJS)(this.workloadStore.list.data).find((function(e){return e.name===t}))||{},r=M.default[this.workloadType]({namespace:e.namespace}),n={strategy:(0,A.toJS)(e._originData),workload:{apiVersion:r.apiVersion,kind:r.kind,metadata:{name:t,namespace:a.namespace,labels:a.labels,annotations:a.annotations},spec:a.spec}};return(0,w.mergeLabels)(n.workload,{version:e.newVersion}),n}},{key:"CanDelete",get:function(){var e=this.store.detail,t=e.cluster,a=e.workspace,r=e.namespace;return globals.app.hasPermission({cluster:t,workspace:a,project:r,module:"grayscale-release",action:"delete"})}}]),r}(S.default.Component),c.propTypes={visible:O.default.bool,detail:O.default.object,onCancel:O.default.func,onDelete:O.default.func},c.defaultProps={visible:!1,detail:{},onCancel:function(){},onDelete:function(){}},o=s))||o)||o;a.default=q},4693:function(e,a,r){"use strict";var n=r(20);r(12),r(5),r(11),r(31),r(6),r(84),r(18),r(16),r(98),r(9),r(13),r(10),r(4),r(316),r(23),r(17),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(45),r(5),r(11),r(31),r(6),r(84),r(18),r(28),r(42),r(16),r(34),r(15),r(98),r(9),r(13),r(10),r(4),r(316),r(23),r(57),r(17),r(7);var o=n(r(30)),c=n(r(96)),s=n(r(36)),l=n(r(37)),i=n(r(55)),u=n(r(56)),d=n(r(51)),f=n(r(0)),p=n(r(1)),m=n(r(3)),h=r(433),v=n(r(837)),g=n(r(26)),_=n(r(63)),y=n(r(194)),E=r(14),b=r(186),S=n(r(989)),O=n(r(4694)),R=n(r(1907));function A(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function k(e){for(var t=1;t0?Number((100*(o[0]-c[0])/o[0]).toFixed(2)):NaN,o[1]>0?Number((100*(o[1]-c[1])/o[1]).toFixed(2)):NaN],l=[(0,v.getMetricData)((0,f.default)(r,"request_duration_millis[0].datapoints",[]),NaN),(0,v.getMetricData)((0,f.default)(n,"request_duration_millis[0].datapoints",[]),NaN)];return[{type:"traffic",name:t("TRAFFIC"),legendData:[e.newVersion,e.oldVersion],data:o.map(b),unit:"RPS",icon:"changing-over",tip:t("TRAFFIC_IN_LAST_FIVE_MINUTES")},{type:"request_success_rate",name:t("SUCCESSFUL_REQUEST_RATE"),legendData:[e.newVersion,e.oldVersion],data:s.map(b),icon:"check",unit:"%"},{type:"request_duration",name:t("REQUEST_LATENCY"),legendData:[e.newVersion,e.oldVersion],data:l.map(b),icon:"timed-task",unit:"ms"}]}},{key:"tcpMetrics",get:function(){var e=this.props.data;if(!e)return[];var a=this.state,r=a.newMetrics,n=a.oldMetrics,o=[(0,v.getMetricData)((0,f.default)(r,"tcp_received[0].datapoints",[]),0),(0,v.getMetricData)((0,f.default)(n,"tcp_received[0].datapoints",[]),0)],c=[(0,v.getMetricData)((0,f.default)(r,"tcp_sent[0].datapoints",[]),0),(0,v.getMetricData)((0,f.default)(n,"tcp_sent[0].datapoints",[]),0)];return[{type:"traffic-in",name:t("TCP_INBOUND_TRAFFIC"),legendData:[e.newVersion,e.oldVersion],data:o.map(b),unit:"B/s",icon:"next"},{type:"traffic-out",name:t("TCP_OUTBOUND_TRAFFIC"),legendData:[e.newVersion,e.oldVersion],data:c.map(b),unit:"B/s",icon:"previous"}]}}]),r}(p.default.Component);a.default=S},4703:function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(16),r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(42),r(16),r(4),r(23),r(57),r(17);var o=n(r(36)),c=n(r(37)),s=n(r(55)),l=n(r(56)),i=n(r(51)),u=n(r(0)),d=n(r(1)),f=r(186),p=r(798),m=n(r(1446));function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,i.default)(e);if(t){var n=(0,i.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,l.default)(this,a)}}var v=function(e){(0,s.default)(r,e);var a=h(r);function r(){var e;(0,o.default)(this,r);for(var t=arguments.length,n=new Array(t),c=0;c0&&void 0!==i[0]?i[0]:{},r=e.props,n=r.detailStore.detail.name,o=r.match.params,s=o.cluster,l=o.namespace,t.next=4,e.store.fetchList(O({cluster:s,namespace:l,labelSelector:"springcloud.kubesphere.io/app=".concat(n)},a));case 4:case"end":return t.stop()}}),t)}))),e}return(0,d.default)(r,[{key:"componentDidMount",value:function(){this.fetchData()}},{key:"componentDidUpdate",value:function(e,t){var a=this.detailStore.detail.enabled;a!==t.enabled&&(this.setState({enabled:a}),this.fetchData())}},{key:"renderContent",value:function(){var e=this,a=this.store.list.data;return h.default.createElement("div",{className:b.default.body},(0,g.default)(a)?h.default.createElement("div",{className:b.default.empty},t("NO_INSTANCE_FOUND")):a.map((function(t){return h.default.createElement(E.default,(0,o.default)({key:t.podName,detail:t},e.props.match.params))})))}},{key:"render",value:function(){var e=this.store.list,a=e.data,r=e.isLoading;return h.default.createElement(_.default,{className:b.default.main,title:t("INSTANCE_PL"),empty:t("NO_INSTANCE_FOUND"),isEmpty:(0,g.default)(a),loading:r},this.renderContent())}}]),r}(h.default.Component))||l)||l;a.default=A},4709:function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(16),r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(42),r(16),r(4),r(23),r(57),r(17);var o=n(r(36)),c=n(r(37)),s=n(r(55)),l=n(r(56)),i=n(r(51)),u=n(r(0)),d=n(r(3)),f=r(433),p=r(186),m=n(r(839)),h=r(52),v=n(r(1908));function g(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,i.default)(e);if(t){var n=(0,i.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,l.default)(this,a)}}var _=function(e){(0,s.default)(r,e);var a=g(r);function r(){return(0,o.default)(this,r),a.apply(this,arguments)}return(0,c.default)(r,[{key:"render",value:function(){var e=this.props,a=e.detail,r=a.enabled,n=a.ip,o=a.port,c=a.podName,s=a.podStartTime,l=a.weight,i=a.instanceId,g=e.workspace,_=e.cluster,y=e.namespace;return u.default.createElement("div",{className:v.default.item},u.default.createElement("div",{className:v.default.icon},u.default.createElement(p.Icon,{name:"pod",size:40}),u.default.createElement(m.default,{className:v.default.indicator,type:r?"running":"stopped",flicker:!0})),u.default.createElement("div",{className:(0,d.default)(v.default.text,v.default.name)},u.default.createElement("div",null,u.default.createElement(f.Link,{className:v.default.title,to:"/".concat(g,"/clusters/").concat(_,"/projects/").concat(y,"/microservice-instances/").concat(c,"/").concat(encodeURIComponent(i))},c)),u.default.createElement("p",null,t("CREATED_AGO",{diff:(0,h.getLocalTime)(s).fromNow()}))),u.default.createElement("div",{className:v.default.text},u.default.createElement("div",null,l),u.default.createElement("p",null,t("WEIGHT"))),u.default.createElement("div",{className:v.default.text},u.default.createElement("div",null,n),u.default.createElement("p",null,t("IP_ADDRESS"))),u.default.createElement("div",{className:v.default.text},u.default.createElement("div",null,o),u.default.createElement("p",null,t("PORT"))))}}]),r}(u.default.Component);a.default=_},4710:function(e,a,r){"use strict";r(15);var n=r(20);r(12),r(109),r(5),r(16),r(4),r(23),r(24),r(17),r(62),r(110),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(109),r(45),r(5),r(42),r(16),r(4),r(23),r(57),r(24),r(17),r(62),r(110);var o,c=n(r(315)),s=n(r(36)),l=n(r(37)),i=n(r(55)),u=n(r(56)),d=n(r(51)),f=n(r(0)),p=n(r(63)),m=r(239),h=r(186),v=n(r(240)),g=r(52),_=n(r(1025)),y=n(r(452)),E=n(r(805)),b=n(r(4711));function S(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,d.default)(e);if(t){var n=(0,d.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,u.default)(this,a)}}var O=(0,m.observer)(o=function(e){(0,i.default)(r,e);var a=S(r);function r(){var e;(0,s.default)(this,r);for(var n=arguments.length,o=new Array(n),c=0;c0&&void 0!==arguments[0]?arguments[0]:{};return f.default.createElement("div",{className:v.default.wrapper},f.default.createElement("ul",null,Object.entries(e).map((function(e){var t=(0,c.default)(e,2),a=t[0],r=t[1];return f.default.createElement("li",{key:a},f.default.createElement("div",{className:"h6"},a),f.default.createElement("pre",{className:v.default.value},r))}))))}},{key:"renderPlacement",value:function(){var e=this.props.match.params,t=e.name,a=e.namespace;return this.store.detail.isFedManaged?f.default.createElement(h.default,{module:this.store.module,name:t,namespace:a}):null}},{key:"render",value:function(){var e=this.store,a=e.detail,r=e.isLoading;return f.default.createElement("div",null,this.renderPlacement(),f.default.createElement(m.default,{title:t("DATA"),loading:r},this.renderContent(a.data)))}}]),r}(f.default.Component))||o)||o;a.default=_},4719:function(e,t,a){e.exports={wrapper:"MmIGU7TxTUZMEQR4HrO_A",value:"_3OCiQozLSfsc6vFANx_hhg"}},4720:function(e,t,a){"use strict";a(15);var r=a(20);a(5),a(18),a(16),a(4),a(23),a(24),a(17),a(62),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(45),a(5),a(18),a(42),a(16),a(4),a(23),a(57),a(24),a(17),a(62);var n,o=r(a(36)),c=r(a(37)),s=r(a(55)),l=r(a(56)),i=r(a(51)),u=r(a(0)),d=a(239),f=r(a(789)),p=r(a(4721));function m(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,i.default)(e);if(t){var n=(0,i.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,l.default)(this,a)}}var h=(0,d.inject)("detailStore","historyStore")(n=(0,d.observer)(n=function(e){(0,s.default)(a,e);var t=m(a);function a(){var e;(0,o.default)(this,a);for(var r=arguments.length,n=new Array(r),c=0;c-1?localStorage.getItem("federated-cluster"):e}},{key:"namespace",get:function(){return this.props.match.params.namespace}},{key:"listUrl",get:function(){var e=this.props.match.params,t=e.workspace,a=e.cluster,r=e.namespace;return t?"/".concat(t,"/clusters/").concat(a,"/projects/").concat(r,"/").concat(this.module):"/clusters/".concat(a,"/").concat(this.module)}},{key:"routing",get:function(){return this.props.rootStore.routing}}]),r}(f.default.Component))||o)||o)||o;a.default=O},4724:function(e,t,a){"use strict";a(15);var r=a(20);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=a(317),o=r(a(821)),c=r(a(4725));t.default=function(e){return[{path:"".concat(e,"/resource-status"),title:"RESOURCE_STATUS",component:c.default,exact:!0},{path:"".concat(e,"/metadata"),title:"METADATA",component:o.default,exact:!0},(0,n.getIndexRoute)({path:e,to:"".concat(e,"/resource-status"),exact:!0})]}},4725:function(e,t,a){"use strict";var r=a(20);a(12),a(5),a(11),a(6),a(84),a(18),a(16),a(9),a(13),a(10),a(4),a(23),a(24),a(17),a(85),a(62),a(7),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(12),a(45),a(5),a(11),a(6),a(84),a(18),a(28),a(42),a(16),a(34),a(15),a(9),a(13),a(10),a(4),a(23),a(57),a(24),a(17),a(85),a(62),a(7);var n,o=r(a(30)),c=r(a(36)),s=r(a(37)),l=r(a(55)),i=r(a(56)),u=r(a(51)),d=r(a(0)),f=a(14),p=a(239),m=r(a(63)),h=r(a(450)),v=r(a(861)),g=r(a(857)),_=r(a(849)),y=r(a(1071)),E=r(a(1221)),b=r(a(4726));function S(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function O(e){for(var t=1;t1?t("LOAD_BALANCERS_SCAP"):t("LOAD_BALANCER_SCAP"),title:a.loadBalancerIngress.join("; ")});return o.default.createElement(c.default,{description:a.specType,title:a.externalName})},r(5),r(11),r(73),r(18),r(4);var o=n(r(0)),c=n(r(790))},4736:function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(6),r(84),r(73),r(18),r(16),r(85),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(5),r(6),r(84),r(73),r(18),r(16),r(4),r(85),r(7);var o=n(r(26)),c=n(r(63)),s=n(r(0)),l=n(r(1)),i=r(433),u=r(186),d=r(52),f=n(r(4737)),p=function(e){var a=e.detail,r=e.gateway,n=e.prefix,l={},p=(0,o.default)(r,"service",[]);if((0,c.default)(p)||null==p||p.forEach((function(e){"http"===e.name&&80!==e.nodePort&&(l.http=e.nodePort),"https"===e.name&&443!==e.nodePort&&(l.https=e.nodePort)})),(0,c.default)(a.rules))return null;var m=a.tls||[],h=(0,d.getDisplayName)(a);return s.default.createElement("div",{className:f.default.card},s.default.createElement("div",{className:f.default.content},s.default.createElement(u.Icon,{name:"loadbalancer",size:40}),s.default.createElement("div",{className:f.default.text},s.default.createElement(i.Link,{to:"".concat(n,"/ingresses/").concat(a.name)},h),s.default.createElement("p",null,t("DOMAIN_NAME_VALUE",{value:a.rules.map((function(e){return e.host})).join(", ")})))),s.default.createElement("ul",{className:f.default.rules},a.rules.map((function(e){var a=m.hosts&&m.hosts.includes(e.host)?"https":"http",r="".concat(a,"://").concat(e.host);return l[a]&&(r="".concat(r,":").concat(l[a])),e.http.paths.map((function(a){return s.default.createElement("li",{key:"".concat(e.host).concat(a.path)},s.default.createElement("span",null,"URL:  "),s.default.createElement("span",null,s.default.createElement("strong",null,r,a.path)),s.default.createElement("a",{href:"".concat(r).concat(a.path),target:"_blank",rel:"noreferrer noopener"},s.default.createElement(u.Button,{className:f.default.access},t("ACCESS_SERVICE"))))}))}))))};p.propTypes={rule:l.default.object};var m=p;a.default=m},4737:function(e,t,a){e.exports={card:"_1cG8fQKm3-Tkqa6zrOyoAt",content:"_2K1EVvQAkTRqBliWP9y_UW",text:"_1y1LWjMboGREreksS8-Bre",rules:"_2flmPvDu28-zUq_VX5ZqEy",access:"yZPxinr4XZvaHAzm7Wr-V",empty:"NmU26TG_b_FLHQfw9ynFW"}},4738:function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(18),r(16),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var o=n(r(315));r(5),r(18),r(16);var c=n(r(26)),s=n(r(0)),l=n(r(1)),i=r(433),u=n(r(790)),d=n(r(1911)),f=function(e){var a=e.volume,r=e.prefix,n=t("STORAGE_CLASS_VALUE",{value:(0,c.default)(a,"storageClassName","-")}),l=[{title:(0,c.default)(a,"capacity","-"),description:t("CAPACITY")},{title:(0,c.default)(a,"accessMode","-"),description:t("ACCESS_MODE_TCAP")}];return s.default.createElement("div",{className:d.default.item},s.default.createElement(u.default,{icon:"storage",title:s.default.createElement(i.Link,{to:"".concat(r,"/volumes/").concat(a.name)},a.name),description:n}),l.map((function(e,t){return s.default.createElement(u.default,(0,o.default)({key:t},e))})))};f.propTypes={container:l.default.object};var p=f;a.default=p},4739:function(e,t,a){e.exports={ports:"_1pZVLp9qAjWNtg0beO2Nnr",card:"_21H0IPfRMqfBUSQXZqjFaQ",content:"_1g_x-Rf6m671ilDIqQ7dij",title:"_3wM7e49lglrGDX6Nvyt8Fb",path:"_1AKuvdVsWBs2vcilYDQefn",access:"_2TU8aTcZX_e1mhZBihzVpA"}},4740:function(e,a,r){"use strict";r(15);var n=r(20);r(16),r(4),r(23),r(24),r(17),r(62),r(110),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(42),r(16),r(4),r(23),r(57),r(24),r(17),r(62),r(110);var o,c=n(r(58)),s=n(r(36)),l=n(r(37)),i=n(r(55)),u=n(r(56)),d=n(r(51)),f=n(r(63)),p=n(r(0)),m=r(239),h=r(186),v=n(r(833)),g=n(r(949)),_=r(845),y=n(r(1912)),E=n(r(4762));function b(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,d.default)(e);if(t){var n=(0,d.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,u.default)(this,a)}}var S=(0,m.inject)("detailStore")(o=(0,m.observer)(o=function(e){(0,i.default)(r,e);var a=b(r);function r(e){var n;return(0,s.default)(this,r),(n=a.call(this,e)).handleRefresh=function(){n.getData()},n.handleAutoFetch=function(){var e=n.state.autoFetch;n.setState({autoFetch:!e},(function(){n.state.autoFetch?n.interval=setInterval((function(){n.getData()}),1e4):n.interval&&clearInterval(n.interval)}))},n.handleLookbackChange=function(e){var t=e.step,a=e.times,r=(0,c.default)(e,["step","times"]),o=(0,_.getTimeRange)({step:(0,_.getMinuteValue)(t),times:a}),s=o.start,l=o.end,i=r.start||s,u=r.end||l,d=Math.floor(u-i);n.setState({duration:d},(function(){n.getData()}))},n.operations=function(){var e=n.state.autoFetch;return p.default.createElement("div",{className:E.default.operations},p.default.createElement(g.default,{className:E.default.timeSelect,onChange:n.handleLookbackChange,showStep:!1,dark:!0,arrowIcon:"chevron-down",step:"1m",times:1}),p.default.createElement(h.Button,{type:"flat",icon:e?"pause":"start",onClick:n.handleAutoFetch}),p.default.createElement(h.Button,{type:"flat",icon:"refresh",onClick:n.handleRefresh}))},n.renderHeader=function(){return p.default.createElement("div",{className:E.default.cardHeader},n.operations(),t("TRAFFIC_MONITORING"))},n.state={isGraphLoading:!0,duration:60,autoFetch:!1},n.store=e.detailStore,n.module=e.module,n}return(0,l.default)(r,[{key:"componentDidMount",value:function(){this.getData()}},{key:"componentWillUnmount",value:function(){this.unmount=!0,this.interval&&clearInterval(this.interval)}},{key:"getData",value:function(){var e=this,t=this.props.match.params,a=t.cluster,r=t.namespace,n=t.name,o=this.state.duration;this.setState({isGraphLoading:!0}),this.store.fetchGraph({cluster:a,namespace:r,app:n,duration:o}).then((function(){e.unmount||e.setState({isGraphLoading:!1})}))}},{key:"renderContent",value:function(){var e=this.state.isGraphLoading,a=this.store.graph,r=a.data,n=a.health;return(0,f.default)(r)||(0,f.default)(r.nodes)?e?p.default.createElement(h.Loading,{className:E.default.loading}):p.default.createElement(v.default,{className:E.default.emptyList,image:"/assets/traffic-management.svg",title:t("NO_DATA"),desc:t("TRAFFIC_MONITORING_UNAVAILABLE_DESC")}):p.default.createElement("div",{className:E.default.main},p.default.createElement(y.default,{className:E.default.graph,data:r,health:n,store:this.store,loading:e,onFetch:this.handleRefresh}))}},{key:"render",value:function(){return p.default.createElement(p.default.Fragment,null,this.renderHeader(),this.renderContent())}}]),r}(p.default.Component))||o)||o;a.default=S},4762:function(e,t,a){e.exports={main:"_2iPG6M7MGzMxbPdbDEWKTS",graph:"_1DNY4Ckxe-2VlpvOswSGWY",tracing:"_1U4YYpaZmy1CDP-SUtxJ2s",cardHeader:"_5WqgHfksXAkqCtNbKg2cp",operations:"_3j3KuCy2m-nw5bx3PSeVbs",timeSelect:"_3cUfdUjfIvXc4idqihXfUw",emptyList:"_1t2nghWnemmp2lgjyfQ4Ql",loading:"_1KcntxCOV8bBEr8KBomL9T"}},4763:function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(4),r(23),r(24),r(17),r(62),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(42),r(4),r(23),r(57),r(24),r(17),r(62);var o,c=n(r(36)),s=n(r(37)),l=n(r(55)),i=n(r(56)),u=n(r(51)),d=n(r(63)),f=n(r(0)),p=r(433),m=r(186),h=r(14),v=r(239),g=r(52),_=n(r(833)),y=r(1906),E=n(r(4764));function b(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,u.default)(e);if(t){var n=(0,u.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,i.default)(this,a)}}var S=(0,v.inject)("detailStore")(o=(0,v.observer)(o=function(e){(0,l.default)(r,e);var a=b(r);function r(e){var t;return(0,c.default)(this,r),(t=a.call(this,e)).detailStore=e.detailStore,t.module=e.module,t}return(0,s.default)(r,[{key:"componentDidMount",value:function(){var e=this;this.disposer=(0,h.when)((function(){return!(0,d.default)(e.detailStore.detail)}),(function(){return e.getData()}))}},{key:"componentWillUnmount",value:function(){this.disposer&&this.disposer()}},{key:"getData",value:function(){var e=(0,h.toJS)(this.detailStore.detail).selector,t={namespace:this.namespace,cluster:this.cluster,labelSelector:(0,g.joinSelector)(e)};this.store.fetchList(t).then()}},{key:"renderEmpty",value:function(){return f.default.createElement(_.default,{icon:"istio",title:t("NO_GRAYSCALE_RELEASE_TASK_FOUND"),desc:t("NO_GRAYSCALE_RELEASE_TASK_FOUND_DESC")})}},{key:"renderHeader",value:function(){var e=this.props.match.params,a=e.cluster,r=e.workspace,n=e.namespace;return f.default.createElement("div",{className:E.default.header},f.default.createElement(m.Columns,null,f.default.createElement(m.Column,null,f.default.createElement("p",{className:E.default.headerTip},t("GRAYSCALE_RELEASE_DESC"))),f.default.createElement(m.Column,{className:"is-narrow"},f.default.createElement(p.Link,{to:"/".concat(r,"/clusters/").concat(a,"/projects/").concat(n,"/grayrelease/cates")},this.canCreate&&f.default.createElement(m.Button,{type:"control"},t("CREATE_GRAYSCALE_RELEASE_TASK"))))))}},{key:"canCreate",get:function(){var e=this.props.match.params,t=e.cluster,a=e.workspace,r=e.namespace;return globals.app.hasPermission({cluster:t,workspace:a,project:r,module:"grayscale-release",action:"create"})}}]),r}(y.Component))||o)||o;a.default=S},4764:function(e,t,a){e.exports={header:"_1NlihNgeoVDB3R-HjKAgoV",headerTip:"_2ewkr_stwSEswFhRlWo0M8"}},4765:function(e,a,r){"use strict";var n=r(20);r(12),r(11),r(6),r(18),r(16),r(9),r(13),r(10),r(4),r(23),r(17),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(45),r(11),r(6),r(18),r(28),r(42),r(16),r(34),r(15),r(9),r(13),r(10),r(4),r(23),r(57),r(17),r(7);var o,c=n(r(58)),s=n(r(30)),l=n(r(36)),i=n(r(37)),u=n(r(55)),d=n(r(56)),f=n(r(51)),p=n(r(63)),m=n(r(0)),h=r(14),v=r(239),g=r(52),_=r(186),y=n(r(1915)),E=n(r(1917)),b=n(r(949)),S=r(845),O=n(r(443)),R=n(r(4775));function A(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function k(e){for(var t=1;t0&&e.setState({serviceName:t[0].name},(function(){return e.fetchTracing()}))}))}}},{key:"renderOperations",value:function(){var e=this.state.query;return m.default.createElement("div",{className:R.default.operations},m.default.createElement(_.Select,{options:this.services,value:this.state.serviceName,prefixIcon:m.default.createElement(_.Icon,{name:"appcenter"}),onChange:this.handleServiceChange,valueRenderer:this.serviceRenderer}),m.default.createElement(b.default,{className:R.default.timeSelect,onChange:this.handleLookbackChange,showStep:!1,dark:!0,arrowIcon:"chevron-down"}),m.default.createElement(_.Select,{value:e.limit,options:this.limitOptions,onChange:this.handleLimitChange}),m.default.createElement(_.Button,{type:"flat",icon:"refresh",onClick:this.handleRefresh}))}},{key:"renderTracing",value:function(){var e=this.detailStore,t=e.tracing,a=e.isTracingLoading,r=this.serviceStore.list,n=r.isLoading,o=r.data;return!n&&(0,p.default)(o)?null:m.default.createElement(y.default,{loading:a,data:t.data,operations:this.renderOperations(),onItemClick:this.showDetailModal})}},{key:"render",value:function(){return m.default.createElement("div",null,this.renderTracing(),m.default.createElement(E.default,{detail:this.state.selectItem,visible:this.state.showDetailModal,onCancel:this.hideDetailModal}))}},{key:"limitOptions",get:function(){return[{label:t("LAST_NUM_RECORDS",{num:5}),value:5},{label:t("LAST_NUM_RECORDS",{num:10}),value:10},{label:t("LAST_NUM_RECORDS",{num:20}),value:20},{label:t("LAST_NUM_RECORDS",{num:50}),value:50}]}},{key:"services",get:function(){return this.serviceStore.list.data.map((function(e){return{label:e.name,value:e.name,type:e.type}}))}}]),r}(m.default.Component))||o)||o;a.default=D},4775:function(e,t,a){e.exports={operations:"_-15riN_1mHwid5aQz6xwZ",timeSelect:"_1jv6axOPYBWD4xXsZgGZBB"}},4776:function(e,a,r){"use strict";var n=r(20);r(12),r(109),r(5),r(11),r(6),r(16),r(9),r(13),r(10),r(4),r(23),r(24),r(17),r(62),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(109),r(45),r(5),r(11),r(6),r(28),r(42),r(16),r(34),r(15),r(9),r(13),r(10),r(4),r(23),r(57),r(24),r(17),r(62),r(7);var o,c=n(r(315)),s=n(r(30)),l=n(r(36)),i=n(r(37)),u=n(r(55)),d=n(r(56)),f=n(r(51)),p=n(r(0)),m=r(14),h=r(239),v=n(r(26)),g=n(r(63)),_=r(186),y=r(52),E=r(791),b=n(r(1206)),S=n(r(836)),O=n(r(795)),R=n(r(805)),A=n(r(4777)),k=n(r(4783));function T(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function D(e){for(var t=1;t0&&m.default.createElement(m.default.Fragment,null,m.default.createElement("div",{style:{margin:"12px 0 4px"}},"CluserIP"),m.default.createElement(I.default,null,s.map((function(e){var a=e.label,r=e.value;return m.default.createElement(I.default.Item,{name:t(a),value:r||"-"})})))),l.length>0&&m.default.createElement(m.default.Fragment,null,m.default.createElement("div",{style:{margin:"12px 0 4px"}},"NodePort"),m.default.createElement(I.default,null,l.map((function(e){var a=e.label,r=e.value;return m.default.createElement(I.default.Item,{name:t(a),value:r||"-"})})))),o&&m.default.createElement(m.default.Fragment,null,m.default.createElement("div",{style:{margin:"24px 0 12px"},className:"h6"},"传输加密"),m.default.createElement(I.default,null,m.default.createElement(I.default.Item,{name:t("CA_CERTIFICATE"),value:o.cert?m.default.createElement("div",{className:M.default.flexRow},m.default.createElement("span",null,"ca.p12"),m.default.createElement("a",{href:URL.createObjectURL(c),download:"ca.p12"},t("DOWNLOAD"))):"-"}),m.default.createElement(I.default.Item,{name:t("CA_PASSWORD"),value:m.default.createElement("div",{className:M.default.flexRow},m.default.createElement("span",null,o.password||"-"),m.default.createElement("a",{href:"#",onClick:function(e){e.preventDefault(),(0,T.copyToClipboard)(o.password).then((function(){E.default.success({content:t("COPY_SUCCESSFUL")})}))}},t("COPY")))}),m.default.createElement(I.default.Item,{name:t("VALIDITY_PERIOD"),value:o.validDate||"-"}))))},e.renderStatus=function(){var a=(0,h.toJS)(e.store.detail),r=a.status;return r?a.additional_info?m.default.createElement(y.Tooltip,{content:a.additional_info},m.default.createElement(N.default,{name:t("DATABASE_STATUS_".concat(r.replace(/[-\s]/g,"_").toUpperCase())),type:O.DMPStatus[r]||r})):m.default.createElement(N.default,{name:t("DATABASE_STATUS_".concat(r.replace(/[-\s]/g,"_").toUpperCase())),type:O.DMPStatus[r]||r,flicker:!0}):"-"},e}return(0,u.default)(r,[{key:"componentDidMount",value:function(){var e=this;this.fetchData().then((function(){e.initWebsocket(),(0,g.default)(e.store,"detail.app_id")===D.RadonDBAppId.Kafka&&e.rebalanceStore.fetchList(e.props.match.params)}))}},{key:"componentWillUnmount",value:function(){this.disposer&&this.disposer(),this.websocket.close()}},{key:"checkAlertRulesPermission",value:function(){var e=this.props.match.params,t=e.cluster,a=e.namespace;return globals.app.hasClusterModule(t,"alerting")&&globals.app.hasPermission({cluster:t,project:a,action:"view",module:"alert-rules"})}},{key:"initWebsocket",value:function(){var e=this,t=this.props.match.params.id,a=this.store.getWatchUrl({name:t});a&&(this.websocket.watch(a),this.disposer=(0,h.reaction)((function(){return e.websocket.message}),(function(t){"Manifest"===t.object.kind&&["MODIFIED","DELETED"].includes(t.type)&&e.fetchData()}),{name:a}))}},{key:"render",value:function(){var e={detailStore:this.store};if(this.store.isLoading&&!this.store.detail.name)return m.default.createElement(y.Loading,{className:"ks-page-loading"});var a=m.default.createElement("label",{className:M.default.icon},m.default.createElement(P.default,{iconLetter:this.store.detail.kind,src:this.store.detail.icon,alt:""})),r=this.store.detail.app_id,n={icon:a,module:this.module,name:(0,b.getDisplayName)(this.store.detail),desc:this.store.detail.description,operations:this.getOperations().filter((function(e){return!e.includeApp||e.includeApp.includes(r)})),attrs:this.getAttrs(),customAttrs:this.getCustomAttrs(),breadcrumbs:[{label:t("APP_PL"),url:this.listUrl}]},o=x.default;this.checkAlertRulesPermission()||(o=x.default.filter((function(e){return!e.path.includes("alerting")})));var c=x.default.find((function(e){return e.path.includes("account")}));return c&&(r===D.RadonDBAppId.Kafka?c.title="KAFKA_USERS":c.title="DATABASE_USERS"),o=o.filter((function(e){return e.excludeApp?!e.excludeApp.includes(r):!e.only||e.only===r})),m.default.createElement(w.default,(0,s.default)({stores:e},n,{routes:o}))}},{key:"module",get:function(){return"applications"}},{key:"name",get:function(){return"APP"}},{key:"listUrl",get:function(){var e=this.props.match.params,t=e.cluster,a=e.workspace,r=e.namespace;return"/".concat(a,"/clusters/").concat(t,"/projects/").concat(r,"/").concat(this.module,"/database")}},{key:"routing",get:function(){return this.props.rootStore.routing}},{key:"showUpdateVersion",get:function(){var e=(0,h.toJS)(this.store.detail);return!(e.app_id!==D.RadonDBAppId.OpenSearch||!e.databaseVersionText.includes("2.3.0"))}}]),r}(m.default.Component))||c)||c)||c;a.default=B},4814:function(e,a,r){"use strict";r(15);var n=r(20);r(18),r(27),r(4),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.getCKParams=function(e){var a=e.replicasCount,r=e.tcpPort,n=e.httpPort,c=e.max_server_memory_usage,s=e.max_memory_usage;return[{key:"replicasCount",name:t("REPLICA_COUNT"),value:a,description:t("DBPARAM_REPLICACOUNT_DESC"),range:{min:1,max:3},disable:!0},{key:"tcpPort",name:t("TCP_PORT"),value:(0,o.default)(r,"port"),description:t("DBPARAM_TCPPORT_DESC"),range:{min:1,max:65535},disable:!0},{key:"httpPort",name:t("HTTP_PORT"),value:(0,o.default)(n,"port"),description:t("DBPARAM_HTTPPORT_DESC"),range:{min:1,max:65535},disable:!0},{key:"max_server_memory_usage",name:"max_server_memory_usage",value:Number(c),description:t("DBPARAM_MAX_SERVER_MEMORY_USAGE"),restart:t("YES"),range:{min:1e9,max:128e9}},{key:"max_memory_usage",name:"max_memory_usage",value:Number(s),description:t("DBPARAM_MAX_MEMORY_USAGE"),restart:t("NO"),range:{min:2e7,max:128e9}}]},a.getPGParams=function(e){return[{key:"database_version",name:t("DBPARAM_DATABASE_VERSION"),value:(0,o.default)(e,"pgVersion","12"),description:t("DBPARAM_DATABASE_VERSION_DESC"),restart:"-",disable:!0},{key:"port",name:"port",value:(0,o.default)(e,"port",5432),description:t("DBPARAM_PG_PORT_DESC"),range:{min:1,max:65534},restart:t("YES")},{key:"fsync",name:"fsync",value:(0,o.default)(e,"fsync",!0).toString(),description:t("DBPARAM_FSYNC_DESC"),restart:t("NO"),type:"select",options:[{label:"true",value:"true"},{label:"false",value:"false"}]},{key:"full_page_writes",name:"full_page_writes",value:(0,o.default)(e,"full_page_writes",!0).toString(),description:t("DBPARAM_FULL_PAGE_WRITES_DESC"),restart:t("NO"),type:"select",options:[{label:"true",value:"true"}]},{key:"wal_compression",name:"wal_compression",value:(0,o.default)(e,"wal_compression",!1).toString(),description:t("DBPARAM_WAL_COMPRESSION_DESC"),restart:t("NO"),type:"select",options:[{label:"true",value:"true"},{label:"false",value:"false"}]},{key:"jit",name:"jit",value:(0,o.default)(e,"jit",!1).toString(),description:t("DBPARAM_JIT_DESC"),restart:t("NO"),type:"select",options:[{label:"true",value:"true"},{label:"false",value:"false"}]},{key:"autovacuum",name:"autovacuum",value:(0,o.default)(e,"autovacuum",!0).toString(),description:t("DBPARAM_AUTOVACUUM_DESC"),restart:t("NO"),type:"select",options:[{label:"true",value:"true"},{label:"false",value:"false"}]},{key:"synchronous_commit",name:"synchronous_commit",value:(0,o.default)(e,"synchronous_commit","on"),description:t("DBPARAM_SYNCHRONOUS_COMMIT_DESC"),restart:t("NO"),type:"select",options:[{label:"off",value:"off"},{label:"local",value:"local"},{label:"on",value:"on"},{label:"remote_write",value:"remote_write"},{label:"remote_apply",value:"remote_apply"}]},{key:"wal_level",name:"wal_level",value:(0,o.default)(e,"wal_level","replica"),description:t("DBPARAM_LOG_WAL_LEVEL_DESC"),restart:t("YES"),type:"select",options:[{label:"replica",value:"replica"},{label:"logical",value:"logical"}]},{key:"temp_buffers",name:"temp_buffers",value:parseInt((0,o.default)(e,"temp_buffers","1MB"),10),description:t("DBPARAM_TEMP_BUFFERS_DESC"),restart:t("NO"),range:{min:1,max:32768}},{key:"work_mem",name:"work_mem",value:parseInt((0,o.default)(e,"work_mem","4MB"),10),description:t("DBPARAM_WORK_MEM_DESC"),range:{min:1,max:1024},restart:t("NO")},{key:"maintenance_work_mem",name:"maintenance_work_mem",value:parseInt((0,o.default)(e,"maintenance_work_mem","64MB"),10),description:t("DBPARAM_MAINTENANCE_WORK_MEM_DESC"),range:{min:64,max:1024},restart:t("NO")},{key:"shared_buffers",name:"shared_buffers",value:parseInt((0,o.default)(e,"shared_buffers","128MB"),10),description:t("DBPARAM_SHARED_BUFFERS_DESC"),range:{min:128,max:10240},restart:t("YES")},{key:"max_connections",name:"max_connections",value:(0,o.default)(e,"max_connections",100),description:t("DBPARAM_MAX_CONNECTIONS_DESC"),range:{min:100,max:262143},restart:t("YES")},{key:"max_worker_processes",name:"max_worker_processes",value:(0,o.default)(e,"max_worker_processes",20),description:t("DBPARAM_WORKER_PROCESSES_DESC"),range:{min:10,max:65536},restart:t("YES")},{key:"wal_writer_delay",name:"wal_writer_delay",value:(0,o.default)(e,"wal_writer_delay",10),description:t("DBPARAM_WAL_WRITER_DELAY_DESC"),range:{min:1,max:1e4},restart:t("NO")},{key:"wal_writer_flush_after",name:"wal_writer_flush_after",value:parseInt((0,o.default)(e,"wal_writer_flush_after","1MB"),10),description:t("DBPARAM_WAL_WRITER_FLUSH_AFTER_DESC"),restart:t("NO"),range:{min:1,max:1024}},{key:"commit_delay",name:"commit_delay",value:(0,o.default)(e,"commit_delay",0),description:t("DBPARAM_COMMIT_DELAY_DESC"),range:{min:0,max:1e5},restart:t("NO")},{key:"commit_siblings",name:"commit_siblings",value:(0,o.default)(e,"commit_siblings",5),description:t("DBPARAM_COMMIT_SIBLINGS_DESC"),range:{min:0,max:1e3},restart:t("NO")},{key:"bgwriter_delay",name:"bgwriter_delay",value:(0,o.default)(e,"bgwriter_delay",10),description:t("DBPARAM_BGWRITER_DELAY_DESC"),range:{min:10,max:1e4},restart:t("NO")},{key:"bgwriter_lru_maxpages",name:"bgwriter_lru_maxpages",value:(0,o.default)(e,"bgwriter_lru_maxpages",1e3),description:t("DBPARAM_BGWRITER_LRU_MAXPAGES_DESC"),range:{min:0,max:1073741823},restart:t("NO")},{key:"bgwriter_flush_after",name:"bgwriter_flush_after",value:parseInt((0,o.default)(e,"bgwriter_flush_after","512KB"),10),description:t("DBPARAM_BGWRITER_FLUSH_AFTER_DESC"),restart:t("NO"),range:{min:0,max:2048}},{key:"statement_timeout",name:"statement_timeout",value:(0,o.default)(e,"statement_timeout",0),description:t("DBPARAM_STATEMENT_TIMEOUT_DESC"),range:{min:0,max:2147483647},restart:t("NO")},{key:"idle_in_transaction_session_timeout",name:"idle_in_transaction_session_timeout",value:(0,o.default)(e,"idle_in_transaction_session_timeout",864e5),description:t("DBPARAM_IDLE_IN_TRANSACTION_SESSION_TIMEOUT_DESC"),range:{min:0,max:2147483647},restart:t("NO")},{key:"log_min_duration_statement",name:"log_min_duration_statement",value:(0,o.default)(e,"log_min_duration_statement",1e4),description:t("DBPARAM_LOG_MIN_DURATION_STATEMENT_DESC"),range:{min:-1,max:2147483647},restart:t("NO")},{key:"checkpoint_timeout",name:"checkpoint_timeout",value:(0,o.default)(e,"checkpoint_timeout",300),description:t("DBPARAM_CHECKPOINT_TIMEOUT_DESC"),range:{min:30,max:86400},restart:t("NO")},{key:"autovacuum_vacuum_cost_delay",name:"autovacuum_vacuum_cost_delay",value:(0,o.default)(e,"autovacuum_vacuum_cost_delay",0),description:t("DBPARAM_AUTOVACUUM_VACUUM_COST_DELAY_DESC"),range:{min:-1,max:100},restart:t("NO")},{key:"autovacuum_vacuum_cost_limit",name:"autovacuum_vacuum_cost_limit",value:(0,o.default)(e,"autovacuum_vacuum_cost_limit",1e4),description:t("DBPARAM_AUTOVACUUM_VACUUM_COST_LIMIT_DESC"),restart:t("NO"),range:{min:-1,max:1e4}},{key:"autovacuum_vacuum_scale_factor",name:"autovacuum_vacuum_scale_factor",value:(0,o.default)(e,"autovacuum_vacuum_scale_factor",.02),description:t("DBPARAM_AUTOVACUUM_VACUUM_SCALE_FACTOR_DESC"),restart:t("NO"),integer:!1,range:{min:.01,max:100}},{key:"autovacuum_analyze_scale_factor",name:"autovacuum_analyze_scale_factor",value:(0,o.default)(e,"autovacuum_analyze_scale_factor",.05),description:t("DBPARAM_AUTOVACUUM_ANALYZE_SCALE_FACTOR_DESC"),restart:t("NO"),integer:!1,range:{min:.01,max:100}},{key:"vacuum_defer_cleanup_age",name:"vacuum_defer_cleanup_age",value:(0,o.default)(e,"vacuum_defer_cleanup_age",1e4),description:t("DBPARAM_VACUUM_DEFER_CLEANUP_AGE_DESC"),restart:t("NO"),range:{min:0,max:1e6}},{key:"seq_page_cost",name:"seq_page_cost",value:(0,o.default)(e,"seq_page_cost",1),description:t("DBPARAM_SEQ_PAGE_COST_DESC"),restart:t("NO"),integer:!1,range:{min:0,max:1e8}},{key:"random_page_cost",name:"random_page_cost",value:(0,o.default)(e,"random_page_cost",1.1),description:t("DBPARAM_RANDOM_PAGE_COST_DESC"),restart:t("NO"),integer:!1,range:{min:0,max:1e8}},{key:"cpu_tuple_cost",name:"cpu_tuple_cost",value:(0,o.default)(e,"cpu_tuple_cost",.01),description:t("DBPARAM_CPU_TUPLE_COST_DESC"),restart:t("NO"),integer:!1,range:{min:0,max:1e8}},{key:"cpu_index_tuple_cost",name:"cpu_index_tuple_cost",value:(0,o.default)(e,"cpu_index_tuple_cost",.005),description:t("DBPARAM_CPU_INDEX_TUPLE_COST_DESC"),restart:t("NO"),integer:!1,range:{min:0,max:1e8}},{key:"log_min_messages",name:"log_min_messages",value:(0,o.default)(e,"log_min_messages","WARNING"),description:t("DBPARAM_LOG_MIN_MESSAGES_DESC"),restart:t("NO"),type:"select",options:c.map((function(e){return{label:e,value:e}}))},{key:"log_statement",name:"log_statement",value:(0,o.default)(e,"log_statement","none"),description:t("DBPARAM_LOG_STATEMENT_DESC"),restart:t("NO"),type:"select",options:[{label:"none",value:"none"},{label:"ddl",value:"ddl"},{label:"mod",value:"mod"},{label:"all",value:"all"}]},{key:"max_wal_senders",name:"max_wal_senders",value:(0,o.default)(e,"max_wal_senders",15),description:t("DBPARAM_MAX_WAL_SENDERS_DESC"),restart:t("YES"),range:{min:10,max:262143}},{key:"max_replication_slots",name:"max_replication_slots",value:(0,o.default)(e,"max_replication_slots",15),description:t("DBPARAM_MAX_REPLICATION_SLOTS_DESC"),restart:t("YES"),range:{min:10,max:262143}}]},a.getMySQLParams=function(e){return[{key:"audit_log_policy",name:"audit_log_policy",value:e.audit_log_policy||"NONE",description:t("DBPARAM_AUDIT_LOG_POLICY_DESC"),restart:t("YES"),type:"select",options:[{label:"ALL",value:"ALL"},{label:"LOGINS",value:"LOGINS"},{label:"QEURIES",value:"QEURIES"},{label:"NONE",value:"NONE"}]},{key:"audit_log_format",name:"audit_log_format",value:e.audit_log_format||"OLD",description:t("DBPARAM_AUDIT_LOG_FORMAT_DESC"),restart:t("YES"),type:"select",options:[{label:"OLD",value:"OLD"},{label:"NEW",value:"NEW"},{label:"JSON",value:"JSON"}]},{key:"audit_log_rotate_on_size",name:"audit_log_rotate_on_size",value:parseInt(e.audit_log_rotate_on_size||104857600,10),description:t("DBPARAM_AUDIT_LOG_ROTATE_ON_SIZE_DESC"),restart:t("YES"),range:{min:20971520,max:2147483648}},{key:"audit_log_rotations",name:"audit_log_rotations",value:e.audit_log_rotations||6,description:t("DBPARAM_AUDIT_LOG_ROTATIONS_DESC"),restart:t("YES"),range:{min:6,max:48}},{key:"default_storage_engine",name:"default_storage_engine",value:e.default_storage_engine||"InnoDB",description:t("DBPARAM_DEFAULT_STORAGE_ENGINE_DESC"),restart:t("YES"),type:"select",options:[{label:"InnoDB",value:"InnoDB"},{label:"TokuDB",value:"TokuDB"}]},{key:"innodb_buffer_pool_size",name:"innodb_buffer_pool_size",value:parseInt((0,o.default)(e,"innodb_buffer_pool_size","-1"),10),description:t("DBPARAM_INNODB_BUFFER_POOL_SIZE_DESC"),restart:t("YES"),range:{min:-1}},{key:"character_set_server",name:"character_set_server",value:(0,o.default)(e,"character_set_server","utf8mb4"),description:t("DBPARAM_CHARACTER_SET_SERVER_DESC"),restart:t("YES"),type:"text"},{key:"expire_logs_days",name:"expire_logs_days",value:parseInt((0,o.default)(e,"expire_logs_days","7"),10),description:t("DBPARAM_EXPIRE_LOGS_DAYS_DESC"),restart:t("YES"),range:{min:0,max:14}},{key:"long_query_time",name:"long_query_time",value:parseInt((0,o.default)(e,"long_query_time","3"),10),description:t("DBPARAM_LONG_QUERY_TIME_DESC"),restart:t("YES"),range:{min:0,max:300}},{key:"max_connections",name:"max_connections",value:parseInt((0,o.default)(e,"max_connections","1024"),10),description:t("DBPARAM_MAX_CONNECTIONS_DESC"),restart:t("YES"),range:{min:1024,max:16384}},{key:"max_connect_errors",name:"max_connect_errors",value:parseInt((0,o.default)(e,"max_connect_errors","655360"),10),description:t("DBPARAM_MAX_CONNECT_ERRORS_DESC"),restart:t("YES"),range:{min:1,max:4294967295}},{key:"wait_timeout",name:"wait_timeout",value:parseInt((0,o.default)(e,"wait_timeout","3600"),10),description:t("DBPARAM_WAIT_TIMEOUT_DESC"),restart:t("YES"),range:{min:1,max:2147483}},{key:"max_allowed_packet",name:"max_allowed_packet",value:parseInt((0,o.default)(e,"max_allowed_packet","1073741824"),10),description:t("DBPARAM_MAX_ALLOWED_PACKET_DESC"),restart:t("YES"),range:{min:1024,max:1073741824}},{key:"slave_parallel_workers",name:"slave_parallel_workers",value:parseInt((0,o.default)(e,"slave_parallel_workers","8"),10),description:t("DBPARAM_SLAVE_PARALLEL_WORKERS_DESC"),restart:t("YES"),range:{min:0,max:1024}},{key:"skip_name_resolve",name:"skip_name_resolve",value:(0,o.default)(e,"skip_name_resolve","0"),description:t("DBPARAM_SKIP_NAME_RESOLVE_DESC"),restart:t("YES"),type:"select",options:[{label:"0",value:"0"},{label:"1",value:"1"}]},{key:"autocommit",name:"autocommit",value:(0,o.default)(e,"autocommit","1"),description:t("DBPARAM_AUTOCOMMIT_DESC"),restart:t("YES"),type:"select",options:[{label:"0",value:"0"},{label:"1",value:"1"}]},{key:"transaction_isolation",name:"transaction_isolation",value:(0,o.default)(e,"transaction_isolation","READ-COMMITTED"),description:t("DBPARAM_TRANSACTION_ISOLATION_DESC"),restart:t("YES"),type:"select",options:[{label:"REPEATABLE-READ",value:"REPEATABLE-READ"},{label:"READ-UNCOMMITTED",value:"READ-UNCOMMITTED"},{label:"READ-COMMITTED",value:"READ-COMMITTED"},{label:"SERIALIZABLE",value:"SERIALIZABLE"}]},{key:"innodb_flush_method",name:"innodb_flush_method",value:(0,o.default)(e,"innodb_flush_method","O_DIRECT"),description:t("DBPARAM_INNODB_FLUSH_METHOD_DESC"),restart:t("YES"),type:"select",options:[{label:"O_DIRECT",value:"O_DIRECT"},{label:"fsync",value:"fsync"}]},{key:"innodb_use_native_aio",name:"innodb_use_native_aio",value:(0,o.default)(e,"innodb_use_native_aio","1"),description:t("DBPARAM_INNODB_USE_NATIVE_AIO_DESC"),restart:t("YES"),type:"select",options:[{label:"0",value:"0"},{label:"1",value:"1"}]}]},a.getMongoDBParams=function(e){return[{key:"port",name:"port",value:(0,o.default)(e,"port",27017),description:t("DBPARAM_MONGODB_PORT_DESC"),restart:t("YES")},{key:"oplogSizeMB",name:"oplogSizeMB",value:(0,o.default)(e,"oplogSizeMB",10240),description:t("DBPARAM_OPLOGSIZEMB_DESC"),range:{min:1024,max:51200},restart:t("NO")},{key:"maxIncomingConnections",name:"maxIncomingConnections",value:(0,o.default)(e,"maxIncomingConnections",1e4),description:t("DBPARAM_MAXINCOMINGCONNECTIONS_DESC"),range:{min:3e3,max:2e4},restart:t("YES")},{key:"cursorTimeoutMillis",name:"cursorTimeoutMillis",value:(0,o.default)(e,"cursorTimeoutMillis",6e5),description:t("DBPARAM_CURSORTIMEOUTMILLIS_DESC"),restart:t("YES")},{key:"profilingMode",name:"profilingMode",value:(0,o.default)(e,"profilingMode","off"),description:t("DBPARAM_PROFILINGMODE_MODE"),restart:t("YES"),type:"select",options:[{label:"off",value:"off"},{label:"slowOp",value:"slowOp"},{label:"all",value:"all"}]},{key:"slowOpThresholdMs",name:"slowOpThresholdMs",value:(0,o.default)(e,"slowOpThresholdMs",100),description:t("DBPARAM_SLOWOPTHRESHOLDMS_DESC"),restart:t("YES")},{key:"enableMajorityReadConcern",name:"enableMajorityReadConcern",value:(0,o.default)(e,"enableMajorityReadConcern","true").toString(),description:t("DBPARAM_ENABLEMAJORITYREADCONCERN_DESC"),restart:t("YES"),type:"select",options:[{label:"true",value:"true"},{label:"false",value:"false"}]},{key:"commandVerbosity",name:"commandVerbosity",value:(0,o.default)(e,"commandVerbosity","0"),description:t("DBPARAM_COMMANDVERBOSITY_DESC"),restart:t("YES"),type:"select",options:[{label:"0",value:"0"},{label:"1",value:"1"}]},{key:"indexVerbosity",name:"indexVerbosity",value:(0,o.default)(e,"indexVerbosity","0"),description:t("DBPARAM_INDEXVERBOSITY_DESC"),restart:t("YES"),type:"select",options:[{label:"0",value:"0"},{label:"1",value:"1"}]},{key:"queryVerbosity",name:"queryVerbosity",value:(0,o.default)(e,"queryVerbosity","0"),description:t("DBPARAM_QUERYVERBOSITY_DESC"),restart:t("YES"),type:"select",options:[{label:"0",value:"0"},{label:"1",value:"1"}]},{key:"networkVerbosity",name:"networkVerbosity",value:(0,o.default)(e,"networkVerbosity","0"),description:t("DBPARAM_NETWORKVERBOSITY_DESC"),restart:t("YES"),type:"select",options:[{label:"0",value:"0"},{label:"1",value:"1"}]},{key:"writeVerbosity",name:"writeVerbosity",value:(0,o.default)(e,"writeVerbosity","0"),description:t("DBPARAM_WRITEVERBOSITY_DESC"),restart:t("YES"),type:"select",options:[{label:"0",value:"0"},{label:"1",value:"1"}]}]},a.getRedisParams=function(e){return[{key:"endpointType",name:t("ENDPOINT_TYPE"),value:(0,o.default)(e,"endpointType","false").toString(),description:t("ENDPOINT_TYPE_DESC"),restart:t("YES"),type:"select",options:[{label:t("ENABLED"),value:"true"},{label:t("DISABLED"),value:"false"}]},{key:"maxmemory",name:"maxmemory",value:parseInt((0,o.default)(e,"maxmemory",0),10),description:t("DBPARAM_MAXMEMORY_DESC"),range:{min:0},restart:t("NO")},{key:"activerehashing",name:"activerehashing",value:(0,o.default)(e,"activerehashing","yes"),description:t("DBPARAM_ACTIVEREHASHING_DESC"),restart:t("NO"),type:"select",options:[{label:"yes",value:"yes"},{label:"no",value:"no"}]},{key:"appendonly",name:"appendonly",value:(0,o.default)(e,"appendonly","yes"),description:t("DBPARAM_APPENDONLY_DESC"),restart:t("NO"),type:"select",options:[{label:"yes",value:"yes"},{label:"no",value:"no"}]},{key:"appendfsync",name:"appendfsync",value:(0,o.default)(e,"appendfsync","everysec"),description:t("DBPARAM_APPENDFSYNC_DESC"),restart:t("NO"),type:"select",options:[{label:"no",value:"no"},{label:"everysec",value:"everysec"},{label:"always",value:"always"}]},{key:"cluster-node-timeout",name:"cluster-node-timeout",value:parseInt((0,o.default)(e,"cluster-node-timeout",15e3),10),description:t("DBPARAM_CLUSTER_NODE_TIMEOUT_DESC"),range:{min:1e3,max:6e6},restart:t("NO")},{key:"latency-monitor-threshold",name:"latency-monitor-threshold",value:parseInt((0,o.default)(e,"latency-monitor-threshold",0),10),description:t("DBPARAM_LATENCY_MONITOR_THRESHOLD_DESC"),range:{min:0},restart:t("NO")},{key:"maxclients",name:"maxclients",value:parseInt((0,o.default)(e,"maxclients",102400),10),description:t("DBPARAM_MAXCLIENTS_DESC"),range:{min:10},restart:t("NO")},{key:"maxmemory-policy",name:"maxmemory-policy",value:(0,o.default)(e,"maxmemory-policy","volatile-lru"),description:t("DBPARAM_MAXMEMORY_POLICY_DESC"),restart:t("NO"),type:"select",options:[{label:"volatile-lru",value:"volatile-lru"},{label:"allkeys-lru",value:"allkeys-lru"},{label:"volatile-random",value:"volatile-random"},{label:"allkeys-random",value:"allkeys-random"},{label:"volatile-ttl",value:"volatile-ttl"},{label:"noevtication",value:"noevtication"}]},{key:"maxmemory-samples",name:"maxmemory-samples",value:parseInt((0,o.default)(e,"maxmemory-samples",3),10),description:t("DBPARAM_MAXMEMORY_SAMPLES_DESC"),range:{min:1,max:100},restart:t("NO")},{key:"min-slaves-max-lag",name:"min-slaves-max-lag",value:parseInt((0,o.default)(e,"min-slaves-max-lag",10),10),description:t("DBPARAM_MIN_SLAVES_MAX_LAG_DESC"),range:{min:0},restart:t("NO")},{key:"min-slaves-to-write",name:"min-slaves-to-write",value:parseInt((0,o.default)(e,"min-slaves-to-write",0),10),description:t("DBPARAM_MIN_SLAVES_TO_WRITE_DESC"),range:{min:0},restart:t("NO")},{key:"no-appendfsync-on-rewrite",name:"no-appendfsync-on-rewrite",value:(0,o.default)(e,"no-appendfsync-on-rewrite","no"),description:t("DBPARAM_NO_APPENDFSYNC_ON_REWRITE_DESC"),restart:t("NO"),type:"select",options:[{label:"yes",value:"yes"},{label:"no",value:"no"}]},{key:"notify-keyspace-events",name:"notify-keyspace-events",value:(0,o.default)(e,"notify-keyspace-events",""),description:t("DBPARAM_NOTIFY_KEYSPACE_EVENTS_DESC"),restart:t("NO")},{key:"repl-backlog-size",name:"repl-backlog-size",value:parseInt((0,o.default)(e,"repl-backlog-size",1),10),description:t("DBPARAM_REPL_BACKLOG_SIZE_DESC"),range:{min:1,max:1024},restart:t("NO")},{key:"repl-backlog-ttl",name:"repl-backlog-ttl",value:parseInt((0,o.default)(e,"repl-backlog-ttl",3600),10),description:t("DBPARAM_REPL_BACKLOG_TTL_DESC"),range:{min:1,max:864e3},restart:t("NO")},{key:"repl-timeout",name:"repl-timeout",value:parseInt((0,o.default)(e,"repl-timeout",60),10),description:t("DBPARAM_REPL_TIMEOUT_DESC"),range:{min:1,max:86400},restart:t("NO")},{key:"set-max-intset-entries",name:"set-max-intset-entries",value:parseInt((0,o.default)(e,"set-max-intset-entries",512),10),description:t("DBPARAM_SET_MAX_INTSET_ENTRIES_DESC"),restart:t("NO")},{key:"slowlog-log-slower-than",name:"slowlog-log-slower-than",value:parseInt((0,o.default)(e,"slowlog-log-slower-than",-1),10),description:t("DBPARAM_SLOWLOG_LOG_SLOWER_THAN_DESC"),range:{min:-1,max:6e7},restart:t("NO")},{key:"slowlog-max-len",name:"slowlog-max-len",value:parseInt((0,o.default)(e,"slowlog-max-len",128),10),description:t("DBPARAM_SLOWLOG_MAX_LEN_DESC"),range:{min:1},restart:t("NO")},{key:"hash-max-ziplist-entries",name:"hash-max-ziplist-entries",value:parseInt((0,o.default)(e,"hash-max-ziplist-entries",512),10),description:t("DBPARAM_HASH_MAX_ZIPLIST_ENTRIES_DESC"),range:{min:0},restart:t("NO")},{key:"hash-max-ziplist-value",name:"hash-max-ziplist-value",value:parseInt((0,o.default)(e,"hash-max-ziplist-value",64),10),description:t("DBPARAM_HASH_MAX_ZIPLIST_VALUE_DESC"),range:{min:0},restart:t("NO")},{key:"list-max-ziplist-entries",name:"list-max-ziplist-entries",value:parseInt((0,o.default)(e,"list-max-ziplist-entries",512),10),description:t("DBPARAM_LIST_MAX_ZIPLIST_ENTRIES_DESC"),range:{min:0},restart:t("NO")},{key:"list-max-ziplist-value",name:"list-max-ziplist-value",value:parseInt((0,o.default)(e,"list-max-ziplist-value",64),10),description:t("DBPARAM_LIST_MAX_ZIPLIST_VALUE_DESC"),range:{min:0},restart:t("NO")},{key:"zset-max-ziplist-entries",name:"zset-max-ziplist-entries",value:parseInt((0,o.default)(e,"zset-max-ziplist-entries",128),10),description:t("DBPARAM_ZSET_MAX_ZIPLIST_ENTRIES_DESC"),range:{min:0},restart:t("NO")},{key:"zset-max-ziplist-value",name:"zset-max-ziplist-value",value:parseInt((0,o.default)(e,"zset-max-ziplist-value",64),10),description:t("DBPARAM_ZSET_MAX_ZIPLIST_VALUE_DESC"),range:{min:0},restart:t("NO")},{key:"lua-time-limit",name:"lua-time-limit",value:parseInt((0,o.default)(e,"lua-time-limit",5e3),10),description:t("DBPARAM_LUA_TIME_LIMIT_DESC"),range:{min:0},restart:t("NO")},{key:"io-threads-do-reads",name:"io-threads-do-reads",value:(0,o.default)(e,"io-threads-do-reads","no"),description:t("DBPARAM_IO_THREADS_DO_READS_DESC"),restart:t("YES"),type:"select",options:[{label:"yes",value:"yes"},{label:"no",value:"no"}]},{key:"io-threads",name:"io-threads",value:parseInt((0,o.default)(e,"io-threads",1),10),description:t("DBPARAM_IO_THREADS_DESC"),range:{min:1,max:100},restart:t("YES")},{key:"logfile",name:"logfile",value:(0,o.default)(e,"logfile","logfile"),description:t("DBPARAM_LOGFILE_DESC"),restart:t("YES"),type:"select",options:[{label:"logfile",value:"logfile"},{label:"stdout",value:"stdout"}]}]},a.getECKParams=function(e){return[{key:"thread_pool.write.queue_size",name:"thread_pool.write.queue_size",value:(0,o.default)(e,'["thread_pool.write.queue_size"]',1e4),description:t("DBPARAM_THREAD_POOL_WRITE_QUEUE_SIZE_DESC"),range:{min:1e3,max:2e4},restart:t("YES")},{key:"thread_pool.search.queue_size",name:"thread_pool.search.queue_size",value:(0,o.default)(e,'["thread_pool.search.queue_size"]',1e3),description:t("DBPARAM_THREAD_POOL_SEARCH_QUEUE_SIZE_DESC"),range:{min:1e3,max:2e4},restart:t("YES")},{key:"action.destructive_requires_name",name:"action.destructive_requires_name",value:(0,o.default)(e,'["action.destructive_requires_name"]',"true").toString(),description:t("DBPARAM_ACTION_DESTRUCTIVE_REQUIRES_NAME_DESC"),restart:t("YES"),type:"select",options:[{label:"true",value:"true"},{label:"false",value:"false"}]},{key:"http.cors.enabled",name:"http.cors.enabled",value:(0,o.default)(e,'["http.cors.enabled"]',"false").toString(),description:t("DBPARAM_HTTP_CORS_ENABLED_DESC"),restart:t("YES"),type:"select",options:[{label:"true",value:"true"},{label:"false",value:"false"}]},{key:"http.cors.allow-origin",name:"http.cors.allow-origin",value:(0,o.default)(e,'["http.cors.allow-origin"]',""),description:t("DBPARAM_HTTP_CORS_ALLOW_ORIGIN_DESC"),restart:t("YES")},{key:"indices.fielddata.cache.size",name:"indices.fielddata.cache.size",value:(0,o.default)(e,'["indices.fielddata.cache.size"]',"-1b"),description:t("DBPARAM_INDICES_FIELDDATA_CACHE_SIZE"),restart:t("YES")},{key:"indices.memory.index_buffer_size",name:"indices.memory.index_buffer_size",value:(0,o.default)(e,'["indices.memory.index_buffer_size"]',"10%"),description:t("DBPARAM_INDICES_MEMORY_INDEX_BUFFER_SIZE_DESC"),restart:t("YES")},{key:"indices.queries.cache.size",name:"indices.queries.cache.size",value:(0,o.default)(e,'["indices.queries.cache.size"]',"10%"),description:t("DBPARAM_INDICES_QUERIES_CACHE_SIZE_DESC"),restart:t("YES")},{key:"indices.requests.cache.size",name:"indices.requests.cache.size",value:(0,o.default)(e,'["indices.requests.cache.size"]',"1%"),description:t("DBPARAM_INDICES_REQUESTS_CACHE_SIZE_DESC"),restart:t("YES")},{key:"reindex.remote.whitelist",name:"reindex.remote.whitelist",value:(0,o.default)(e,'["reindex.remote.whitelist"]',""),description:t("DBPARAM_REINDEX_REMOTE_WHITELIST_DESC"),restart:t("YES")},{key:"cluster.routing.allocation.awareness.attributes",name:"cluster.routing.allocation.awareness.attributes",value:(0,o.default)(e,'["cluster.routing.allocation.awareness.attributes"]',""),description:t("DBPARAM_CLUSTER_ROUTING_ALLOCATION_AWARENESS_ATTRIBUTES_DESC"),restart:t("YES")}]},a.getKafkaParams=function(e,a){if("kafka"===a)return[{key:"num.partitions",name:"num.partitions",value:(0,o.default)(e,"num.partitions",3),description:t("DBPARAM_KAFKA_PARTITIONS_DESC"),range:{min:1,max:1e3},restart:t("YES")},{key:"tls",name:"TLS",value:(0,o.default)(e,"tls","true").toString(),description:t("DBPARAM_KAFKA_TLS_DESC"),restart:t("YES"),type:"select",options:[{label:"true",value:"true"},{label:"false",value:"false"}]},{key:"authentication",name:t("DBPARAM_AUTHENTICATION_TYPE"),value:(0,o.default)(e,"authentication","tls").toString(),description:t("DBPARAM_KAFKA_AUTHENTICATION_TYPE_DESC"),restart:t("YES"),type:"select",options:[{label:t("NO_AUTH"),value:"no"},{label:"TLS",value:"tls"},{label:"SCRAM-SHA-512",value:"scram-sha-512"}]},{key:"nodePort",name:t("DBPARAM_NODE_PORT"),value:(0,o.default)(e,"nodePort","false").toString(),description:t("DBPARAM_NODE_PORT_DESC"),restart:t("YES"),type:"select",options:[{label:"true",value:"true"},{label:"false",value:"false"}]},{key:"log.retention.bytes",name:"log.retention.bytes",value:(0,o.default)(e,'["log.retention.bytes"]',-1),description:t("DBPARAM_LOG_RETENTION_BYTES_DESC"),range:{min:-1,max:2147483647},restart:t("YES")},{key:"log.retention.hours",name:"log.retention.hours",value:(0,o.default)(e,'["log.retention.hours"]',168),description:t("DBPARAM_LOG_RETENTION_HOURS_DESC"),range:{min:1,max:8760},restart:t("YES")},{key:"log.segment.bytes",name:"log.segment.bytes",value:(0,o.default)(e,'["log.segment.bytes"]',1073741824),description:t("DBPARAM_LOG_SEGMENT_BYTES_DESC"),range:{min:1048576,max:2147483647},restart:t("YES")},{key:"log.segment.delete.delay.ms",name:"log.segment.delete.delay.ms",value:(0,o.default)(e,'["log.segment.delete.delay.ms"]',6e4),description:t("DBPARAM_LOG_SEGMENT_DELETE_DELAY_MS_DESC"),range:{min:0},restart:t("YES")},{key:"log.roll.hours",name:"log.roll.hours",value:(0,o.default)(e,'["log.roll.hours"]',168),description:t("DBPARAM_LOG_ROLL_HOURS_DESC"),range:{min:1},restart:t("YES")},{key:"offsets.topic.replication.factor",name:"offsets.topic.replication.factor",value:(0,o.default)(e,'["offsets.topic.replication.factor"]',3),description:t("DBPARAM_OFFSETS_TOPIC_REPLICATION_FACTOR"),range:{min:1,max:100},restart:t("YES")},{key:"log.cleanup.policy",name:"log.cleanup.policy",value:(0,o.default)(e,'["log.cleanup.policy"]',"delete"),description:t("DBPARAM_LOG_CLEANUP_POLICY_DESC"),restart:t("YES"),type:"select",options:[{label:"delete",value:"delete"},{label:"compact",value:"compact"}]},{key:"log.cleaner.enable",name:"log.cleaner.enable",value:(0,o.default)(e,'["log.cleaner.enable"]',"true").toString(),description:t("DBPARAM_LOG_CLEANER_ENABLE_DESC"),restart:t("YES"),type:"select",options:[{label:"true",value:"true"},{label:"false",value:"false"}]},{key:"compression.type",name:"compression.type",value:(0,o.default)(e,'["compression.type"]',"producer"),description:t("DBPARAM_COMPRESSION_TYPE_DESC."),restart:t("YES"),type:"select",options:["uncompressed","zstd","lz4","snappy","gzip","producer"].map((function(e){return{label:e,value:e}}))},{key:"message.max.bytes",name:"message.max.bytes",value:(0,o.default)(e,'["message.max.bytes"]',1e6),description:t("DBPARAM_MESSAGE_MAX_BYTES_DESC"),range:{min:1024,max:2147483647},restart:t("YES")},{key:"num.network.threads",name:"num.network.threads",value:(0,o.default)(e,'["num.network.threads"]',3),description:t("DBPARAM_NUM_NETWORK_THREADS_DESC"),range:{min:1},restart:t("YES")},{key:"num.io.threads",name:"num.io.threads",value:(0,o.default)(e,'["num.io.threads"]',8),description:t("DBPARAM_NUM_IO_THREADS_DESC"),range:{min:1,max:20},restart:t("YES")},{key:"num.recovery.threads.per.data.dir",name:"num.recovery.threads.per.data.dir",value:(0,o.default)(e,'["num.recovery.threads.per.data.dir"]',1),description:t("DBPARAM_NUM_RECOVERY_THREADS_PER_DATA_DIR_DESC"),range:{min:1},restart:t("YES")},{key:"num.replica.fetchers",name:"num.replica.fetchers",value:(0,o.default)(e,'["num.replica.fetchers"]',1),description:t("DBPARAM_NUM_REPLICA_FETCHERS_DESC"),range:{min:1,max:10},restart:t("YES")},{key:"queued.max.requests",name:"queued.max.requests",value:(0,o.default)(e,'["queued.max.requests"]',500),description:t("DBPARAM_QUEUED_MAX_REQUESTS_DESC"),range:{min:1,max:5e3},restart:t("YES")},{key:"replica.lag.time.max.ms",name:"replica.lag.time.max.ms",value:(0,o.default)(e,'["replica.lag.time.max.ms"]',1e4),description:t("DBPARAM_REPLICA_LAG_TIME_MAX_MS_DESC"),range:{min:6e3,max:99999},restart:t("YES")},{key:"group.max.session.timeout.ms",name:"group.max.session.timeout.ms",value:(0,o.default)(e,'["group.max.session.timeout.ms"]',18e5),description:t("DBPARAM_GROUP_MAX_SESSION_TIMEOUT_MS_DESC"),range:{min:0,max:9999999},restart:t("YES")},{key:"group.min.session.timeout.ms",name:"group.min.session.timeout.ms",value:(0,o.default)(e,'["group.min.session.timeout.ms"]',6e3),description:t("DBPARAM_GROUP_MIN_SESSION_TIMEOUT_MS_DESC"),range:{min:0,max:6e4},restart:t("YES")},{key:"auto.create.topics.enable",name:"auto.create.topics.enable",value:(0,o.default)(e,'["auto.create.topics.enable"]',"true").toString(),description:t("DBPARAM_AUTO_CREATE_TOPICS_ENABLE_DESC"),restart:t("YES"),type:"select",options:[{label:"true",value:"true"},{label:"false",value:"false"}]},{key:"min.insync.replicas",name:"min.insync.replicas",value:(0,o.default)(e,'["min.insync.replicas"]',2),description:t("DBPARAM_MIN_INSYNC_REPLICAS_DESC"),range:{min:1,max:6},restart:t("YES")},{key:"default.replication.factor",name:"default.replication.factor",value:(0,o.default)(e,'["default.replication.factors"]',3),description:t("DBPARAM_DEFAULT_REPLICATION_FACTORS_DESC"),range:{min:1,max:6},restart:t("YES")},{key:"jmxOptions",name:"jmxOptions",value:(0,o.default)(e,"jmxOptions","disable"),description:t("DBPARAM_JMXOPTIONS_DESC"),restart:t("YES"),type:"select",options:[{label:"disable",value:"disable"},{label:"enable",value:"enable"},{label:"password",value:"password"}]}];return[{key:"tickTime",name:"tickTime",value:(0,o.default)(e,"tickTime",2e3),range:{min:1,max:1e6},description:t("DBPARAM_TICKTIME_DESC"),restart:t("YES")},{key:"initLimit",name:"initLimit",value:(0,o.default)(e,"initLimit",5),range:{min:1,max:1e6},description:t("DBPARAM_INITLIMIT_DESC"),restart:t("YES")},{key:"syncLimit",name:"syncLimit",value:(0,o.default)(e,"syncLimit",2),range:{min:1,max:1e6},description:t("DBPARAM_SYNCLIMIT_DESC"),restart:t("YES")},{key:"maxClientCnxns",name:"maxClientCnxns",value:(0,o.default)(e,"maxClientCnxns",1e3),range:{min:1,max:1e6},description:t("DBPARAM_MAXCLIENTCNXNS_DESC"),restart:t("YES")},{key:"autopurge.snapRetainCount",name:"autopurge.snapRetainCount",value:(0,o.default)(e,'["autopurge.snapRetainCount"]',3),range:{min:3,max:1e8},description:t("DBPARAM_AUTOPURGE_SNAPRETAINCOUNT_DESC"),restart:t("YES")},{key:"autopurge.purgeInterval",name:"autopurge.purgeInterval",value:(0,o.default)(e,'["autopurge.purgeInterval"]',1),range:{min:0,max:720},description:t("DBPARAM_AUTOPURGE_PURGEINTERVAL_DESC"),restart:t("YES")},{key:"jmxOptions",name:"jmxOptions",value:(0,o.default)(e,"jmxOptions","disable"),description:t("DBPARAM_JMXOPTIONS_DESC"),restart:t("YES"),type:"select",options:[{label:"disable",value:"disable"},{label:"enable",value:"enable"},{label:"password",value:"password"}]}]},a.getOpenSearchParams=function(e){return[{key:"thread_pool.write.queue_size",name:"thread_pool.write.queue_size",value:(0,o.default)(e,'["thread_pool.write.queue_size"]',1e4),description:t("DBPARAM_THREAD_POOL_WRITE_QUEUE_SIZE_DESC"),range:{min:1e3,max:2e4},restart:t("YES")},{key:"thread_pool.search.queue_size",name:"thread_pool.search.queue_size",value:(0,o.default)(e,'["thread_pool.search.queue_size"]',1e3),description:t("DBPARAM_THREAD_POOL_SEARCH_QUEUE_SIZE_DESC"),range:{min:1e3,max:2e4},restart:t("YES")},{key:"action.destructive_requires_name",name:"action.destructive_requires_name",value:(0,o.default)(e,'["action.destructive_requires_name"]',"true").toString(),description:t("DBPARAM_ACTION_DESTRUCTIVE_REQUIRES_NAME_DESC"),restart:t("YES"),type:"select",options:[{label:"true",value:"true"},{label:"false",value:"false"}]},{key:"http.cors.enabled",name:"http.cors.enabled",value:(0,o.default)(e,'["http.cors.enabled"]',"false").toString(),description:t("DBPARAM_HTTP_CORS_ENABLED_DESC"),restart:t("YES"),type:"select",options:[{label:"true",value:"true"},{label:"false",value:"false"}]},{key:"http.cors.allow-origin",name:"http.cors.allow-origin",value:(0,o.default)(e,'["http.cors.allow-origin"]',""),description:t("DBPARAM_HTTP_CORS_ALLOW_ORIGIN_DESC"),restart:t("YES")},{key:"indices.fielddata.cache.size",name:"indices.fielddata.cache.size",value:(0,o.default)(e,'["indices.fielddata.cache.size"]',"-1b"),description:t("DBPARAM_INDICES_FIELDDATA_CACHE_SIZE"),restart:t("YES")},{key:"indices.memory.index_buffer_size",name:"indices.memory.index_buffer_size",value:(0,o.default)(e,'["indices.memory.index_buffer_size"]',"10%"),description:t("DBPARAM_INDICES_MEMORY_INDEX_BUFFER_SIZE_DESC"),restart:t("YES")},{key:"indices.queries.cache.size",name:"indices.queries.cache.size",value:(0,o.default)(e,'["indices.queries.cache.size"]',"10%"),description:t("DBPARAM_INDICES_QUERIES_CACHE_SIZE_DESC"),restart:t("YES")},{key:"indices.requests.cache.size",name:"indices.requests.cache.size",value:(0,o.default)(e,'["indices.requests.cache.size"]',"1%"),description:t("DBPARAM_INDICES_REQUESTS_CACHE_SIZE_DESC"),restart:t("YES")},{key:"reindex.remote.whitelist",name:"reindex.remote.whitelist",value:(0,o.default)(e,'["reindex.remote.whitelist"]',""),description:t("DBPARAM_REINDEX_REMOTE_WHITELIST_DESC"),restart:t("YES")},{key:"logstash.PIPELINE_WORKERS",name:"LOGSTASH_PIPELINE_WORKERS",value:Number((0,o.default)(e,"logstash.PIPELINE_WORKERS",1)),description:t("DBPARAM_PIPELINE_WORKERS_DESC"),range:{min:1},restart:t("YES")},{key:"logstash.PIPELINE_BATCH_SIZE",name:"LOGSTASH_PIPELINE_BATCH_SIZE",value:Number((0,o.default)(e,"logstash.PIPELINE_BATCH_SIZE",125)),description:t("DBPARAM_PIPELINE_BATCH_SIZE_DESC"),range:{min:1},restart:t("YES")},{key:"logstash.PIPELINE_BATCH_DELAY",name:"LOGSTASH_PIPELINE_BATCH_DELAY",value:Number((0,o.default)(e,"logstash.PIPELINE_BATCH_DELAY",50)),description:t("DBPARAM_PIPELINE_BATCH_DELAY_DESC"),range:{min:1},restart:t("YES")},{key:"logstash.PIPELINE_UNSAFE_SHUTDOWN",name:"LOGSTASH_PIPELINE_UNSAFE_SHUTDOWN",value:(0,o.default)(e,"logstash.PIPELINE_UNSAFE_SHUTDOWN","false").toString(),description:t("DBPARAM_PIPELINE_UNSAFE_SHUTDOWN_DESC"),restart:t("YES"),type:"select",options:[{label:"true",value:"true"},{label:"false",value:"false"}]},{key:"logstash.PIPELINE_ORDERED",name:"LOGSTASH_PIPELINE_ORDERED",value:(0,o.default)(e,"logstash.PIPELINE_ORDERED","auto"),description:t("DBPARAM_PIPELINE_ORDERED_DESC"),restart:t("YES"),type:"select",options:[{label:"auto",value:"auto"},{label:"true",value:"true"},{label:"false",value:"false"}]},{key:"logstash.PIPELINE.ECS_COMPATIBILITY",name:"LOGSTASH_PIPELINE.ECS_COMPATIBILITY",value:(0,o.default)(e,'logstash["PIPELINE.ECS_COMPATIBILITY"]',"v8"),description:t("DBPARAM_ECS_COMPATIBILITY_DESC"),restart:t("YES"),type:"select",options:[{label:"disabled",value:"disabled"},{label:"v1",value:"v1"},{label:"v8",value:"v8"}]},{key:"logstash.LOG_LEVEL",name:"LOGSTASH_LOG_LEVEL",value:(0,o.default)(e,"logstash.LOG_LEVEL","info"),description:t("DBPARAM_LOG_LEVEL_DESC"),restart:t("YES"),type:"select",options:[{label:"fatal",value:"fatal"},{label:"error",value:"error"},{label:"warn",value:"warn"},{label:"info",value:"info"},{label:"debug",value:"debug"},{label:"trace",value:"trace"}]},{key:"logstash.LOG_FORMAT",name:"LOGSTASH_LOG_FORMAT",value:(0,o.default)(e,"logstash.LOG_FORMAT","plain"),description:t("DBPARAM_LOG_FORMAT_DESC"),restart:t("YES"),type:"select",options:[{label:"plain",value:"plain"},{label:"json",value:"json"}]},{key:"logstash.jvm",name:"LOGSTASH_JVM",value:Number((0,o.default)(e,"logstash.jvm","50")),description:t("DBPARAM_LOG_JVM_DESC"),range:{min:50,max:75},restart:t("YES")}]},r(45),r(18),r(42),r(27),r(4),r(319),r(17);var o=n(r(26));var c=["DEBUG5","DEBUG","INFO","NOTICE","WARNING","ERROR"]},4815:function(e,t,a){"use strict";var r=a(20);a(12),a(5),a(11),a(6),a(18),a(48),a(27),a(137),a(9),a(13),a(10),a(4),a(23),a(17),a(7),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(12),a(45),a(5),a(11),a(6),a(18),a(28),a(245),a(48),a(442),a(191),a(42),a(159),a(27),a(137),a(34),a(15),a(9),a(13),a(10),a(4),a(22),a(23),a(57),a(17),a(7);var n=r(a(43)),o=r(a(61)),c=r(a(30)),s=r(a(58));a(41);var l,i=r(a(44)),u=r(a(36)),d=r(a(37)),f=r(a(55)),p=r(a(56)),m=r(a(51)),h=r(a(49)),v=r(a(26)),g=r(a(74)),_=a(14),y=r(a(68)),E=a(1015),b=a(1093);function S(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function O(e){for(var t=1;t0&&void 0!==m[0]?m[0]:{},a=t.cluster,t.workspace,r=t.namespace,c=t.more,l=t.id,i=(0,s.default)(t,["cluster","workspace","namespace","more","id"]),this.list.isLoading=!0,i.sortBy="createTime",i.limit!==1/0&&-1!==i.limit||(i.limit=-1,i.page=1),i.limit=i.limit||10,e.next=7,request.get(this.getResourceUrl({cluster:a,namespace:r,id:l}));case 7:return u=e.sent,d=((0,v.default)(u,"items")||[]).reverse().slice(0,3).map((function(e){var t=p.statusMap[(0,E.getStatusFromYaml)(e)]||"Creating";return{cluster:a,namespace:r,status:t,name:(0,v.default)(e,"metadata.name"),creationTimestamp:(0,v.default)(e,"metadata.creationTimestamp"),statusName:p.statusNameMap[t]}})),f=Number(u.total||d.length),this.list.update(O(O({data:c?[].concat((0,o.default)(this.list.data),(0,o.default)(d)):d,total:f},i),{},{limit:Number(i.limit)||10,page:Number(i.page)||1,isLoading:!1},this.list.silent?{}:{selectedRowKeys:[]})),e.abrupt("return",d);case 12:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})},{key:"getYamlFromData",value:function(e){var t=JSON.parse(JSON.stringify(b.kafkaYaml.rebalance));return(0,g.default)(t,"metadata.name","".concat(e,"-").concat(Date.now())),(0,g.default)(t,'metadata.labels["strimzi.io/cluster"]',e),t}},{key:"create",value:function(e){var t=Object.assign({},e),a=this.getYamlFromData(t.id);return delete t.id,request.post(this.getListUrl(t),a)}}]),r}(y.default),(0,h.default)(l.prototype,"fetchList",[_.action],Object.getOwnPropertyDescriptor(l.prototype,"fetchList"),l.prototype),(0,h.default)(l.prototype,"create",[_.action],Object.getOwnPropertyDescriptor(l.prototype,"create"),l.prototype),l);t.default=A},4816:function(e,t,a){"use strict";a(15);var r=a(20);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=a(317),o=a(815),c=r(a(4817)),s=r(a(4856)),l=r(a(4860)),i=r(a(4862)),u=r(a(4867)),d=r(a(4869)),f=r(a(4871)),p="/:workspace/clusters/:cluster/projects/:namespace/applications/database/:id",m=[{path:"".concat(p,"/resource-status"),name:"resource-status",title:"OVERVIEW",component:c.default,exact:!0},{path:"".concat(p,"/monitoring"),title:"MONITORING",component:d.default,exact:!0},{path:"".concat(p,"/alerting"),title:"ALERT_RULE_GROUP_PL",component:u.default,exact:!0},{path:"".concat(p,"/account"),title:"DATABASE_USERS",component:s.default,exact:!0,excludeApp:[o.RadonDBAppId.MongoDB,o.RadonDBAppId.Elasticsearch,o.RadonDBAppId.OpenSearch]},{path:"".concat(p,"/backup"),title:"BACKUPS",component:l.default,exact:!0,excludeApp:[o.RadonDBAppId.ClickHouse,o.RadonDBAppId.RedisSentinel,o.RadonDBAppId.RedisCluster,o.RadonDBAppId.MongoDB,o.RadonDBAppId.Elasticsearch,o.RadonDBAppId.Kafka,o.RadonDBAppId.OpenSearch]},{path:"".concat(p,"/topic"),title:"TOPICS",component:f.default,exact:!0,only:o.RadonDBAppId.Kafka},{path:"".concat(p,"/config"),title:"PARAMETERS",component:i.default,exact:!0},(0,n.getIndexRoute)({path:p,to:"".concat(p,"/resource-status"),exact:!0})];t.default=m},4817:function(e,a,r){"use strict";var n=r(20);r(12),r(5),r(11),r(6),r(84),r(18),r(16),r(9),r(13),r(10),r(4),r(23),r(24),r(17),r(85),r(62),r(64),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(45),r(5),r(11),r(6),r(84),r(18),r(28),r(42),r(16),r(34),r(15),r(9),r(13),r(10),r(4),r(436),r(23),r(57),r(24),r(17),r(85),r(62),r(64),r(7);var o,c,s,l=n(r(30)),i=n(r(36)),u=n(r(37)),d=n(r(55)),f=n(r(56)),p=n(r(51)),m=n(r(0)),h=r(239),v=r(186),g=n(r(243)),_=n(r(789)),y=n(r(795)),E=n(r(836)),b=r(52),S=r(815),O=r(1428),R=n(r(4818)),A=n(r(4855));function k(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function T(e){for(var t=1;t500?t("VALUE_CORES",{value:(0,b.cpuFormat)(f.cpu)}):f.cpu||""," ").concat(f.memory||""," | ").concat(this.store.detail.storages.kafka),desc:t("KAFKA_RESOURCES")},{iconSrc:"/assets/radondb_zookeeper.svg",label:this.store.detail.nodes.zookeeper,desc:1===this.store.detail.nodes.zookeeper?t("ZOOKEEPER_NODE"):t("ZOOKEEPER_NODE_PL")},{iconName:"cpu",label:"".concat(parseFloat(p.cpu)>500?t("VALUE_CORES",{value:(0,b.cpuFormat)(p.cpu)}):p.cpu||""," ").concat(p.memory||""," | ").concat(this.store.detail.storages.zookeeper),desc:t("ZOOKEEPER_RESOURCES")}])}else{if(a===S.RadonDBAppId.ClickHouse)d.push({iconSrc:"/assets/pod.svg",label:o,desc:1===o?t("SHARD"):t("SHARD_PL")}),d.push({iconName:"database",label:i,desc:1===i?t("REPLICA"):t("REPLICA_PL")});else if(a===S.RadonDBAppId.RedisSentinel)d.push({iconSrc:"/assets/pod.svg",label:1,desc:t("PRIMARY_NODE_PL")}),d.push({iconName:"database",label:i,desc:1===i?t("STANDBY_NODE"):t("STANDBY_NODE_PL")});else if(a===S.RadonDBAppId.RedisCluster)d.push({iconSrc:"/assets/pod.svg",label:o,desc:t("PRIMARY_NODE_PL")}),d.push({iconName:"database",label:i,desc:1===i?t("STANDBY_NODE"):t("STANDBY_NODE_PL")});else{var h=a===S.RadonDBAppId.PostgreSQL?o+1:o;d.push({iconSrc:"/assets/pod.svg",label:h,desc:t("NODE_PL")}),d.push({iconName:"database",label:o>0?o-1:o,desc:o-1==1?t("REPLICA"):t("REPLICA_PL")})}d.push({iconName:"cpu",label:"".concat(parseFloat(c)>500?"".concat((0,b.cpuFormat)(c),"Core"):c||""," ").concat(s||""),desc:t("RESOURCES")}),d.push({iconName:"storage",label:l,desc:t("VOLUME")})}return m.default.createElement(_.default,{className:A.default.overview},m.default.createElement("div",null,m.default.createElement("div",{className:A.default.title},t("BASIC_INFORMATION")),m.default.createElement("div",{className:A.default.desc},t("DATABASE_RUNNING_FOR_VALUE",{value:u.toNow(!0)}))),m.default.createElement("div",{className:A.default.info},m.default.createElement("div",{className:A.default.card},m.default.createElement("div",null,r?m.default.createElement(y.default,{name:t("DATABASE_STATUS_".concat(r.replace(/[-\s]/g,"_").toUpperCase())),type:O.DMPStatus[r]||r,flicker:!0}):"-",m.default.createElement("div",{className:A.default.desc},t("STATUS")))),d.map((function(e){var t=e.iconSrc,a=e.iconName,r=e.label,n=e.desc;return m.default.createElement("div",{className:A.default.card,key:"".concat(r).concat(n)},t&&m.default.createElement(E.default,{src:t,iconSize:40}),a&&m.default.createElement(v.Icon,{name:a,size:40}),m.default.createElement("div",{className:A.default.detail},m.default.createElement("div",{className:A.default.label},r),m.default.createElement("div",{className:A.default.desc},n)))}))))}},{key:"render",value:function(){var e=this,t=this.store.detail,a=t.cluster,r=t.namespace,n=t.name,o=t.app_id,c=C.Provider,s=C.Consumer;return m.default.createElement(c,{value:{state:this.state,updateState:function(t){e.setState(T(T({},e.state),t))}}},m.default.createElement(h.Provider,{Consumer:s},this.renderPanel(),m.default.createElement(R.default,{cluster:a,chi:n,namespace:r,prefix:this.prefix,app_id:o,replicasCount:this.store.detail.replicasCount,showDelete:this.hasDeleteAction,deleteNode:this.deleteNode})))}},{key:"prefix",get:function(){var e=this.props.match.params,t=e.workspace,a=e.cluster,r=e.namespace;return"/".concat(t,"/clusters/").concat(a,"/projects/").concat(r)}}]),r}(m.default.Component),c.contextType=C,o=s))||o)||o;a.default=P},4818:function(e,a,r){"use strict";var n=r(20);r(12),r(5),r(11),r(6),r(84),r(18),r(16),r(9),r(13),r(10),r(4),r(23),r(24),r(17),r(62),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=a.DBNODE_STATUS=void 0,r(12),r(45),r(5),r(11),r(6),r(84),r(18),r(28),r(42),r(16),r(34),r(15),r(9),r(13),r(4819),r(10),r(4),r(22),r(23),r(57),r(24),r(17),r(62),r(7);var o=n(r(315)),c=n(r(30)),s=n(r(43));r(41);var l,i,u,d=n(r(44)),f=n(r(36)),p=n(r(37)),m=n(r(55)),h=n(r(56)),v=n(r(51)),g=n(r(0)),_=r(106),y=r(47),E=n(r(3)),b=r(239),S=r(14),O=n(r(854)),R=n(r(26)),A=n(r(1433)),k=n(r(1961)),T=r(815),D=n(r(789)),C=n(r(796)),P=r(793),N=n(r(325)),I=n(r(4854)),w=n(r(1972));function x(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function M(e){for(var t=1;t0?"split-".concat(n):""})),this.renderContent())}}]),r}(g.default.Component))||u)||u)||u)||u);a.default=U},4820:function(e,t,a){"use strict";a(15);var r=a(20);a(5),a(29),a(73),a(18),a(87),a(98),a(9),a(4),a(22),a(23),a(17),a(38),a(32),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(a(43));a(41);var o=r(a(44)),c=r(a(36)),s=r(a(37)),l=r(a(55)),i=r(a(56)),u=r(a(51)),d=r(a(49));a(249),a(45),a(5),a(29),a(73),a(18),a(87),a(191),a(42),a(159),a(98),a(9),a(4),a(22),a(23),a(57),a(17),a(38),a(32);var f,p=r(a(96)),m=r(a(58)),h=a(14),v=a(794);function g(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,u.default)(e);if(t){var n=(0,u.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,i.default)(this,a)}}var _=(f=function(e){(0,l.default)(i,e);var t,a,r=g(i);function i(){var e;(0,c.default)(this,i);for(var t=arguments.length,a=new Array(t),s=0;s0&&void 0!==arguments[0]?arguments[0]:{},t=e.cluster,a=e.namespace,r="";return globals.app.isMultiCluster&&t&&(r+="/klusters/".concat(t)),a&&(r+="/namespaces/".concat(a)),r}},{key:"fetchMetrics",value:(a=(0,o.default)(n.default.mark((function e(t){var a,r,o,c,s,l,i,u,d,f,p;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=t.autoRefresh,r=void 0!==a&&a,o=t.more,c=void 0!==o&&o,s=t.fillZero,l=void 0===s||s,i=t.cluster,u=t.namespace,d=(0,m.default)(t,["autoRefresh","more","fillZero","cluster","namespace"]),r?(d.last=!0,this.isRefreshing=!0):this.isLoading=!0,d.cluster&&(this.cluster=d.cluster),f=this.getParams(d),this.config=f.config.reduce((function(e,t){return e.targets=e.targets.concat(t.targets),e}),{namespace:u,cluster:i,targets:[]}),e.t0=this,e.next=8,this.fetchMetricsAll(f);case 8:return e.t1=e.sent,p=e.t0.getResult.call(e.t0,e.t1),r&&(p=this.getRefreshResult(p,this.data)),c&&(p=this.getMoreResult(p,this.data)),this.data=l?(0,v.fillEmptyMetrics)(f,p):p,this.isLoading=!1,this.isRefreshing=!1,e.abrupt("return",p);case 16:case"end":return e.stop()}}),e,this)}))),function(e){return a.apply(this,arguments)})},{key:"fetchMetricsAll",value:(t=(0,o.default)(n.default.mark((function e(t){var a,r,c,s,l,i,u,d,f,p,m=this;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=t.start,r=t.end,c=t.step,s=this.config,l=s.targets,i=void 0===l?[]:l,u=s.cluster,d=s.namespace,this.timeRange={start:a,end:r},f={ID:++this.requestID,errorMessage:"",metrics:[]},e.prev=4,e.next=7,Promise.all(i.map(function(){var e=(0,o.default)(n.default.mark((function e(t){var o,s;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=t.expr,e.next=3,m.fetchMetric({cluster:u,namespace:d,expr:o,step:c,start:a,end:r});case 3:return s=e.sent,e.abrupt("return",{data:s,target:t});case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()));case 7:p=e.sent,f.metrics=p.reduce((function(e,t){var a=t.data,r=void 0===a?[]:a,n=t.target,o=void 0===n?{}:n,c=o.expr,s=o.refId,l=(null==r?void 0:r.result).map((function(e){var t=e.values,a=void 0===t?[]:t,r=e.metric,n=void 0===r?{}:r,l=y(n)||c,i="".concat(s,".").concat(l);return{values:a,metric:n,target:o,id:i,responseMetricID:l}}));return e.concat(l)}),[]),e.next=14;break;case 11:e.prev=11,e.t0=e.catch(4),f.errorMessage=e.t0.message;case 14:return e.prev=14,f.ID===this.requestID&&(this.metrics=f.metrics,this.errorMessage=f.errorMessage),e.finish(14);case 17:return e.abrupt("return",p);case 18:case"end":return e.stop()}}),e,this,[[4,11,14,17]])}))),function(e){return t.apply(this,arguments)})}]),i}(r(a(845)).default),(0,d.default)(f.prototype,"fetchMetrics",[h.action],Object.getOwnPropertyDescriptor(f.prototype,"fetchMetrics"),f.prototype),(0,d.default)(f.prototype,"fetchMetricsAll",[h.action],Object.getOwnPropertyDescriptor(f.prototype,"fetchMetricsAll"),f.prototype),f);function y(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.__name__,a=(0,m.default)(e,["__name__"]);if(!t)return JSON.stringify(a||{});var r=Object.entries(a||{}).map((function(e){var t=(0,p.default)(e,2),a=t[0],r=t[1];return"".concat(a,'="').concat(r,'"')})),n=r.length?"{".concat(r.join(","),"}"):"";return"".concat(t).concat(n)}t.default=_},4821:function(e,a,r){"use strict";var n=r(20);r(12),r(11),r(6),r(9),r(13),r(10),r(4),r(23),r(17),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(45),r(11),r(6),r(28),r(442),r(42),r(34),r(15),r(9),r(13),r(10),r(4),r(23),r(57),r(17),r(7);var o=n(r(30)),c=n(r(36)),s=n(r(37)),l=n(r(88)),i=n(r(55)),u=n(r(56)),d=n(r(51)),f=n(r(0)),p=n(r(1)),m=n(r(3)),h=n(r(63)),v=n(r(60)),g=n(r(450)),_=r(794),y=r(186),E=n(r(801)),b=n(r(949)),S=n(r(4822));function O(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function R(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},a=e||{},r=a.times,n=a.step,o=a.createTime,c={times:r,step:n};if(o){var s=new Date(o).valueOf()/1e3,l=Date.now()/1e3,i=l-s;switch(!0){case i<=1800:c.times=30,c.step="1m";break;case i<=3600:c.times=60,c.step="1m";break;case i<=18e3:c.times=60,c.step="5m"}}t.params=c},t.fetchData=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=R(R({},t.params),e);t.props.onFetch(a)},t.handleChange=function(e){t.params=e;var a=!e.start&&!e.end&&t.props.enableAutoRefresh;t.setState({enableAutoRefresh:a,autoRefresh:!1},(function(){(0,_.stopAutoRefresh)((0,l.default)(t)),t.fetchData()}))},t.handleRefresh=function(){t.fetchData()},t.handleAutoRefresh=function(){t.setState({autoRefresh:!t.state.autoRefresh},(function(){t.state.autoRefresh?(0,_.startAutoRefresh)((0,l.default)(t)):(0,_.stopAutoRefresh)((0,l.default)(t))}))},t.handleToggle=function(e){t.setState({active:e})},t.state={active:!1,enableAutoRefresh:e.enableAutoRefresh,autoRefresh:!1},t.init(),t}return(0,s.default)(r,[{key:"componentDidUpdate",value:function(e){e.step===this.props.step&&e.times===this.props.times&&e.createTime===this.props.createTime||(this.initParams(this.props),this.fetchData())}},{key:"componentWillUnmount",value:function(){(0,_.stopAutoRefresh)(this)}},{key:"init",value:function(){this.initParams(this.props),this.fetchData()}},{key:"renderAutoRefresh",value:function(){var e=this.state,t=e.enableAutoRefresh,a=e.autoRefresh;return t?f.default.createElement(y.Button,{className:S.default.button,type:"control",icon:a?"pause":"start",iconType:"light",onClick:this.handleAutoRefresh}):null}},{key:"renderCustomActions",value:function(){return this.props.customAction||null}},{key:"renderOperations",value:function(){var e=this.state.active,t=this.params,a=t.step,r=t.times,n=this.props.closeBtn;return f.default.createElement("div",{className:(0,m.default)(S.default.operations,(0,o.default)({},S.default.active,e))},this.props.customSelect||null,f.default.createElement(b.default,{step:a,times:r,onChange:this.handleChange,onToggle:this.handleToggle}),this.renderAutoRefresh(),f.default.createElement(y.Button,{className:S.default.button,type:"control",icon:"refresh",iconType:"light",onClick:this.handleRefresh}),this.renderCustomActions(),n)}},{key:"renderTitle",value:function(){var e=this.props.title||t("MONITORING");return f.default.createElement("div",{className:S.default.title},f.default.createElement("span",null,e),this.renderOperations())}},{key:"renderContent",value:function(){var e=this.props.children;return(0,h.default)(e)||(0,v.default)(e)&&(0,h.default)((0,g.default)(e).filter((function(e){return e})))?null:e}},{key:"render",value:function(){var e=this.props.loading,a=this.state.active;return f.default.createElement(y.Loading,{style:{zIndex:0},spinning:e},f.default.createElement(E.default,{className:(0,m.default)(S.default.card,(0,o.default)({},S.default.showDropDown,a)),title:this.renderTitle(),empty:e?" ":t("NO_MONITORING_DATA"),isEmpty:this.props.isEmpty},f.default.createElement("div",{className:S.default.content},this.renderContent())))}}]),r}(f.default.Component);a.default=k,k.propTypes={title:p.default.string,step:p.default.string,times:p.default.number,createTime:p.default.string,onFetch:p.default.func,loading:p.default.bool,refreshing:p.default.bool,isEmpty:p.default.bool,enableAutoRefresh:p.default.bool,customAction:p.default.oneOfType([p.default.node,p.default.element]),customSelect:p.default.oneOfType([p.default.node,p.default.element])},k.defaultProps={step:"10m",times:30,createTime:"",onFetch:function(){},loading:!1,refreshing:!1,isEmpty:!1,enableAutoRefresh:!0,customAction:""}},4822:function(e,t,a){e.exports={card:"_65_m-_4Ubjwu9QSuJvfzt",title:"_Xd78Z9vissC3z3MsYARn",operations:"hkQOkv4O5PZpDcwI2cWWl",button:"_1lWhAFrlevv8CiN813fzw8",content:"JUQudezMo9M8whf3hhuc5",showDropDown:"_1p7Rp4uYKW2hAUoSs2zLfw"}},4823:function(e,t,a){"use strict";a(15);var r=a(20);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(a(4824)),o=r(a(4825)),c=r(a(4826)),s=r(a(4827)),l=r(a(4828)),i=r(a(4829)),u=r(a(4830)),d=r(a(4831)),f=r(a(4832)),p=r(a(4833)),m={mysql:n.default,ck:o.default,pg:c.default,redis:s.default,mongo:i.default,eck:u.default,predixy:l.default,kafka:d.default,zookeeper:f.default,opensearch:p.default};t.default=m},4824:function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(16),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(5),r(16);var o=n(r(26));var c={getConfig:function(e,t){var a=e.detail,r=a.name,n=a.namespace,o=t.name;return[{colors:["#60acfc","#23c2db","#64d5b2","#d5ec5a","#ffb64e","#fb816d","#d15c7f"],description:"**Max Connections** \n\nMax Connections is the maximum permitted number of simultaneous client connections. By default, this is 151. Increasing this value increases the number of file descriptors that mysqld requires. If the required number of descriptors are not available, the server reduces the value of Max Connections.\n\nmysqld actually permits Max Connections + 1 clients to connect. The extra connection is reserved for use by accounts that have the SUPER privilege, such as root.\n\nMax Used Connections is the maximum number of connections that have been in use simultaneously since the server started.\n\nConnections is the number of connection attempts (successful or not) to the MySQL server.",id:92,lines:!0,targets:[{expr:"mysql_global_status_threads_connected{"+'service="'.concat(r,'-metrics",namespace="').concat(n,'",pod="').concat(o,'"')+"}",legendFormat:"Connections",refId:1,step:"1m"},{expr:"mysql_global_status_max_used_connections{"+'service="'.concat(r,'-metrics",namespace="').concat(n,'",pod="').concat(o,'"')+"}",legendFormat:"Max Used Connections",refId:2,step:"1m"},{expr:"mysql_global_variables_max_connections{"+'service="'.concat(r,'-metrics",namespace="').concat(n,'",pod="').concat(o,'"')+"}",legendFormat:"Max Connections",refId:3,step:"1m"}],title:"MYSQL_CONNECTIONS",type:"graph",yaxes:[{format:"none"}]},{colors:["#60acfc","#23c2db","#64d5b2","#d5ec5a","#ffb64e","#fb816d","#d15c7f"],description:"**MySQL Active Threads**\n\nThreads Connected is the number of open connections, while Threads Running is the number of threads not sleeping.",id:10,lines:!0,targets:[{expr:"max_over_time(mysql_global_status_threads_connected{"+'service="'.concat(r,'-metrics",namespace="').concat(n,'",pod="').concat(o,'"')+"}[3m])",legendFormat:"Peak Threads Connected",refId:1,step:"1m"},{expr:"max_over_time(mysql_global_status_threads_running{"+'service="'.concat(r,'-metrics",namespace="').concat(n,'",pod="').concat(o,'"')+"}[3m])",legendFormat:"Peak Threads Running",refId:2,step:"1m"},{expr:"avg_over_time(mysql_global_status_threads_running{"+'service="'.concat(r,'-metrics",namespace="').concat(n,'",pod="').concat(o,'"')+"}[3m])",legendFormat:"Avg Threads Running",refId:3,step:"1m"}],title:"MYSQL_CLIENT_THREAD_ACTIVITY",type:"graph",yaxes:[{format:"none"}]},{colors:["#60acfc","#23c2db","#64d5b2","#d5ec5a","#ffb64e","#fb816d","#d15c7f"],description:"**MySQL Questions**\n\nThe number of statements executed by the server. This includes only statements sent to the server by clients and not statements executed within stored programs, unlike the Queries used in the QPS calculation. \n\nThis variable does not count the following commands:\n* ``COM_PING``\n* ``COM_STATISTICS``\n* ``COM_STMT_PREPARE``\n* ``COM_STMT_CLOSE``\n* ``COM_STMT_RESET``",id:53,lines:!0,targets:[{expr:"rate(mysql_global_status_questions{"+'service="'.concat(r,'-metrics",namespace="').concat(n,'",pod="').concat(o,'"')+"}[5m])",legendFormat:"Questions",refId:1,step:"1m"}],title:"MYSQL_QUESTIONS",type:"graph",yaxes:[{format:"none"}]},{colors:["#60acfc","#23c2db","#64d5b2","#d5ec5a","#ffb64e","#fb816d","#d15c7f"],description:"**MySQL Thread Cache**\n\nThe thread_cache_size variable sets how many threads the server should cache to reuse. When a client disconnects, the client's threads are put in the cache if the cache is not full. It is autosized in MySQL 5.6.8 and above (capped to 100). Requests for threads are satisfied by reusing threads taken from the cache if possible, and only when the cache is empty is a new thread created.\n\n* *Threads_created*: The number of threads created to handle connections.\n* *Threads_cached*: The number of threads in the thread cache.",id:11,lines:!0,targets:[{expr:"mysql_global_variables_thread_cache_size{"+'service="'.concat(r,'-metrics",namespace="').concat(n,'",pod="').concat(o,'"')+"}",legendFormat:"Thread Cache Size",refId:1,step:"1m"},{expr:"mysql_global_status_threads_cached{"+'service="'.concat(r,'-metrics",namespace="').concat(n,'",pod="').concat(o,'"')+"}",legendFormat:"Threads Cached",refId:2,step:"1m"},{expr:"rate(mysql_global_status_threads_created{"+'service="'.concat(r,'-metrics",namespace="').concat(n,'",pod="').concat(o,'"')+"}[5m])",legendFormat:"Threads Created",refId:3,step:"1m"}],title:"MYSQL_THREAD_CACHE",type:"graph",yaxes:[{format:"none"}]},{colors:["#60acfc","#23c2db","#64d5b2","#d5ec5a","#ffb64e","#fb816d","#d15c7f"],id:22,lines:!0,targets:[{expr:"rate(mysql_global_status_created_tmp_tables{"+'service="'.concat(r,'-metrics",namespace="').concat(n,'",pod="').concat(o,'"')+"}[5m])",legendFormat:"CREATED_TEMP_TABLES",refId:1,step:"1m"},{expr:"rate(mysql_global_status_created_tmp_disk_tables{"+'service="'.concat(r,'-metrics",namespace="').concat(n,'",pod="').concat(o,'"')+"}[5m])",legendFormat:"Created Tmp Disk Tables",refId:2,step:"1m"},{expr:"rate(mysql_global_status_created_tmp_files{"+'service="'.concat(r,'-metrics",namespace="').concat(n,'",pod="').concat(o,'"')+"}[5m])",legendFormat:"Created Tmp Files",refId:3,step:"1m"}],title:"MySQL Temporary Objects",type:"graph",yaxes:[{format:"none"}]},{colors:["#60acfc","#23c2db","#64d5b2","#d5ec5a","#ffb64e","#fb816d","#d15c7f"],description:"**MySQL Select Types**\n\nAs with most relational databases, selecting based on indexes is more efficient than scanning an entire table's data. Here we see the counters for selects not done with indexes.\n\n* ***Select Scan*** is how many queries caused full table scans, in which all the data in the table had to be read and either discarded or returned.\n* ***Select Range*** is how many queries used a range scan, which means MySQL scanned all rows in a given range.\n* ***Select Full Join*** is the number of joins that are not joined on an index, this is usually a huge performance hit.",id:311,lines:!0,targets:[{expr:"rate(mysql_global_status_select_full_join{"+'service="'.concat(r,'-metrics",namespace="').concat(n,'",pod="').concat(o,'"')+"}[5m])",legendFormat:"Select Full Join",refId:1,step:"1m"},{expr:"rate(mysql_global_status_select_full_range_join{"+'service="'.concat(r,'-metrics",namespace="').concat(n,'",pod="').concat(o,'"')+"}[5m])",legendFormat:"Select Full Range Join",refId:2,step:"1m"},{expr:"rate(mysql_global_status_select_range{"+'service="'.concat(r,'-metrics",namespace="').concat(n,'",pod="').concat(o,'"')+"}[5m])",legendFormat:"Select Range",refId:3,step:"1m"},{expr:"rate(mysql_global_status_select_range_check{"+'service="'.concat(r,'-metrics",namespace="').concat(n,'",pod="').concat(o,'"')+"}[5m])",legendFormat:"Select Range Check",refId:4,step:"1m"},{expr:"rate(mysql_global_status_select_scan{"+'service="'.concat(r,'-metrics",namespace="').concat(n,'",pod="').concat(o,'"')+"}[5m])",legendFormat:"Select Scan",refId:5,step:"1m"}],title:"MySQL Select Types",type:"graph",yaxes:[{format:"none"}]},{colors:["#60acfc","#23c2db","#64d5b2","#d5ec5a","#ffb64e","#fb816d","#d15c7f"],description:"**MySQL Sorts**\n\nDue to a query's structure, order, or other requirements, MySQL sorts the rows before returning them. For example, if a table is ordered 1 to 10 but you want the results reversed, MySQL then has to sort the rows to return 10 to 1.\n\nThis graph also shows when sorts had to scan a whole table or a given range of a table in order to return the results and which could not have been sorted via an index.",id:30,lines:!0,targets:[{expr:"rate(mysql_global_status_sort_rows{"+'service="'.concat(r,'-metrics",namespace="').concat(n,'",pod="').concat(o,'"')+"}[5m])",legendFormat:"Sort Rows",refId:1,step:"1m"},{expr:"rate(mysql_global_status_sort_range{"+'service="'.concat(r,'-metrics",namespace="').concat(n,'",pod="').concat(o,'"')+"}[5m])",legendFormat:"Sort Range",refId:2,step:"1m"},{expr:"rate(mysql_global_status_sort_merge_passes{"+'service="'.concat(r,'-metrics",namespace="').concat(n,'",pod="').concat(o,'"')+"}[5m])",legendFormat:"Sort Merge Passes",refId:3,step:"1m"},{expr:"rate(mysql_global_status_sort_scan{"+'service="'.concat(r,'-metrics",namespace="').concat(n,'",pod="').concat(o,'"')+"}[5m])",legendFormat:"Sort Scan",refId:4,step:"1m"}],title:"MySQL Sorts",type:"graph",yaxes:[{format:"none"}]},{colors:["#60acfc","#23c2db","#64d5b2","#d5ec5a","#ffb64e","#fb816d","#d15c7f"],description:"**MySQL Slow Queries**\n\nSlow queries are defined as queries being slower than the long_query_time setting. For example, if you have long_query_time set to 3, all queries that take longer than 3 seconds to complete will show on this graph.",id:48,lines:!0,targets:[{expr:"rate(mysql_global_status_slow_queries{"+'service="'.concat(r,'-metrics",namespace="').concat(n,'",pod="').concat(o,'"')+"}[5m])",legendFormat:"Slow Queries",refId:1,step:"1m"}],title:"MySQL Slow Queries",type:"graph",yaxes:[{format:"none"}]},{colors:["#60acfc","#23c2db","#64d5b2","#d5ec5a","#ffb64e","#fb816d","#d15c7f"],description:"**Aborted Connections**\n\nWhen a given host connects to MySQL and the connection is interrupted in the middle (for example due to bad credentials), MySQL keeps that info in a system table (since 5.6 this table is exposed in performance_schema).\n\nIf the amount of failed requests without a successful connection reaches the value of max_connect_errors, mysqld assumes that something is wrong and blocks the host from further connection.\n\nTo allow connections from that host again, you need to issue the ``FLUSH HOSTS`` statement.",id:47,lines:!0,targets:[{expr:"rate(mysql_global_status_aborted_connects{"+'service="'.concat(r,'-metrics",namespace="').concat(n,'",pod="').concat(o,'"')+"}[5m])",legendFormat:"Aborted Connects (attempts)",refId:1,step:"1m"},{expr:"rate(mysql_global_status_aborted_clients{"+'service="'.concat(r,'-metrics",namespace="').concat(n,'",pod="').concat(o,'"')+"}[5m])",legendFormat:"Aborted Clients (timeout)",refId:2,step:"1m"}],title:"MySQL Aborted Connections",type:"graph",yaxes:[{format:"none"}]},{colors:["#60acfc","#23c2db","#64d5b2","#d5ec5a","#ffb64e","#fb816d","#d15c7f"],description:"**Table Locks**\n\nMySQL takes a number of different locks for varying reasons. In this graph we see how many Table level locks MySQL has requested from the storage engine. In the case of InnoDB, many times the locks could actually be row locks as it only takes table level locks in a few specific cases.\n\nIt is most useful to compare Locks Immediate and Locks Waited. If Locks waited is rising, it means you have lock contention. Otherwise, Locks Immediate rising and falling is normal activity.",id:32,lines:!0,targets:[{expr:"rate(mysql_global_status_table_locks_immediate{"+'service="'.concat(r,'-metrics",namespace="').concat(n,'",pod="').concat(o,'"')+"}[5m])",legendFormat:"Table Locks Immediate",refId:1,step:"1m"},{expr:"rate(mysql_global_status_table_locks_waited{"+'service="'.concat(r,'-metrics",namespace="').concat(n,'",pod="').concat(o,'"')+"}[5m])",legendFormat:"Table Locks Waited",refId:2,step:"1m"}],title:"MySQL Table Locks",type:"graph",yaxes:[{format:"none"}]},{colors:["#60acfc","#23c2db","#64d5b2","#d5ec5a","#ffb64e","#fb816d","#d15c7f"],description:"**MySQL Network Traffic**\n\nHere we can see how much network traffic is generated by MySQL. Outbound is network traffic sent from MySQL and Inbound is network traffic MySQL has received.",id:9,lines:!0,stack:!0,targets:[{expr:"rate(mysql_global_status_bytes_received{"+'service="'.concat(r,'-metrics",namespace="').concat(n,'",pod="').concat(o,'"')+"}[5m])",legendFormat:"Inbound",refId:1,step:"1m"},{expr:"rate(mysql_global_status_bytes_sent{"+'service="'.concat(r,'-metrics",namespace="').concat(n,'",pod="').concat(o,'"')+"}[5m])",legendFormat:"Outbound",refId:2,step:"1m"}],title:"MySQL Network Traffic",type:"graph",yaxes:[{format:"Byte"}]},{bars:!0,colors:["#60acfc","#23c2db","#64d5b2","#d5ec5a","#ffb64e","#fb816d","#d15c7f"],description:"**MySQL Network Usage Hourly**\n\nHere we can see how much network traffic is generated by MySQL per hour. You can use the bar graph to compare data sent by MySQL and data received by MySQL.",id:381,stack:!0,targets:[{expr:"increase(mysql_global_status_bytes_received{"+'service="'.concat(r,'-metrics",namespace="').concat(n,'",pod="').concat(o,'"')+"}[1h])",legendFormat:"Received",refId:1,step:"1m"},{expr:"increase(mysql_global_status_bytes_sent{"+'service="'.concat(r,'-metrics",namespace="').concat(n,'",pod="').concat(o,'"')+"}[1h])",legendFormat:"Sent",refId:2,step:"1m"}],title:"MySQL Network Usage Hourly",type:"graph",yaxes:[{format:"Byte"}]},{colors:["#60acfc","#23c2db","#64d5b2","#d5ec5a","#ffb64e","#fb816d","#d15c7f"],description:"***System Memory***: Total Memory for the system.\\\n***InnoDB Buffer Pool Data***: InnoDB maintains a storage area called the buffer pool for caching data and indexes in memory.\\\n***TokuDB Cache Size***: Similar in function to the InnoDB Buffer Pool, TokuDB will allocate 50% of the installed RAM for its own cache.\\\n***Key Buffer Size***: Index blocks for MYISAM tables are buffered and are shared by all threads. key_buffer_size is the size of the buffer used for index blocks.\\\n***Adaptive Hash Index Size***: When InnoDB notices that some index values are being accessed very frequently, it builds a hash index for them in memory on top of B-Tree indexes.\\\n ***Query Cache Size***: The query cache stores the text of a SELECT statement together with the corresponding result that was sent to the client. The query cache has huge scalability problems in that only one thread can do an operation in the query cache at the same time.\\\n***InnoDB Dictionary Size***: The data dictionary is InnoDB ‘s internal catalog of tables. InnoDB stores the data dictionary on disk, and loads entries into memory while the server is running.\\\n***InnoDB Log Buffer Size***: The MySQL InnoDB log buffer allows transactions to run without having to write the log to disk before the transactions commit.",id:50,lines:!0,stack:!0,targets:[{expr:"node_memory_MemTotal_bytes{"+'service="'.concat(r,'-metrics",namespace="').concat(n,'",pod="').concat(o,'"')+"}",legendFormat:"System Memory",refId:1,step:"1m"},{expr:"mysql_global_status_innodb_page_size{"+'service="'.concat(r,'-metrics",namespace="').concat(n,'",pod="').concat(o,'"')+"}",legendFormat:"InnoDB Buffer Pool Data",refId:2,step:"1m"},{expr:"mysql_global_variables_innodb_log_buffer_size{"+'service="'.concat(r,'-metrics",namespace="').concat(n,'",pod="').concat(o,'"')+"}",legendFormat:"InnoDB Log Buffer Size",refId:3,step:"1m"},{expr:"mysql_global_variables_innodb_additional_mem_pool_size{"+'service="'.concat(r,'-metrics",namespace="').concat(n,'",pod="').concat(o,'"')+"}",legendFormat:"InnoDB Additional Memory Pool Size",refId:4,step:"1m"},{expr:"mysql_global_status_innodb_mem_dictionary{"+'service="'.concat(r,'-metrics",namespace="').concat(n,'",pod="').concat(o,'"')+"}",legendFormat:"InnoDB Dictionary Size",refId:5,step:"1m"},{expr:"mysql_global_variables_key_buffer_size{"+'service="'.concat(r,'-metrics",namespace="').concat(n,'",pod="').concat(o,'"')+"}",legendFormat:"Key Buffer Size",refId:6,step:"1m"},{expr:"mysql_global_variables_query_cache_size{"+'service="'.concat(r,'-metrics",namespace="').concat(n,'",pod="').concat(o,'"')+"}",legendFormat:"Query Cache Size",refId:7,step:"1m"},{expr:"mysql_global_status_innodb_mem_adaptive_hash{"+'service="'.concat(r,'-metrics",namespace="').concat(n,'",pod="').concat(o,'"')+"}",legendFormat:"Adaptive Hash Index Size",refId:8,step:"1m"},{expr:"mysql_global_variables_tokudb_cache_size{"+'service="'.concat(r,'-metrics",namespace="').concat(n,'",pod="').concat(o,'"')+"}",legendFormat:"TokuDB Cache Size",refId:9,step:"1m"}],title:"MySQL Internal Memory Overview",type:"graph",yaxes:[{format:"Byte"}]},{colors:["#60acfc","#23c2db","#64d5b2","#d5ec5a","#ffb64e","#fb816d","#d15c7f"],description:"**Top Command Counters**\n\nThe Com_{{xxx}} statement counter variables indicate the number of times each xxx statement has been executed. There is one status variable for each type of statement. For example, Com_delete and Com_update count [``DELETE``](https://dev.mysql.com/doc/refman/5.7/en/delete.html) and [``UPDATE``](https://dev.mysql.com/doc/refman/5.7/en/update.html) statements, respectively. Com_delete_multi and Com_update_multi are similar but apply to [``DELETE``](https://dev.mysql.com/doc/refman/5.7/en/delete.html) and [``UPDATE``](https://dev.mysql.com/doc/refman/5.7/en/update.html) statements that use multiple-table syntax.",id:14,lines:!0,targets:[{expr:"topk(5, rate(mysql_global_status_commands_total{"+'service="'.concat(r,'-metrics",namespace="').concat(n,'",pod="').concat(o,'"')+"}[5m]))",legendFormat:"Com_{{command}}",refId:1,step:"1m"}],title:"Top Command Counters",type:"graph",yaxes:[{format:"none"}]},{bars:!0,colors:["#60acfc","#23c2db","#64d5b2","#d5ec5a","#ffb64e","#fb816d","#d15c7f"],description:"**Top Command Counters Hourly**\n\nThe Com_{{xxx}} statement counter variables indicate the number of times each xxx statement has been executed. There is one status variable for each type of statement. For example, Com_delete and Com_update count [``DELETE``](https://dev.mysql.com/doc/refman/5.7/en/delete.html) and [``UPDATE``](https://dev.mysql.com/doc/refman/5.7/en/update.html) statements, respectively. Com_delete_multi and Com_update_multi are similar but apply to [``DELETE``](https://dev.mysql.com/doc/refman/5.7/en/delete.html) and [``UPDATE``](https://dev.mysql.com/doc/refman/5.7/en/update.html) statements that use multiple-table syntax.",id:39,stack:!0,targets:[{expr:"topk(5, increase(mysql_global_status_commands_total{"+'service="'.concat(r,'-metrics",namespace="').concat(n,'",pod="').concat(o,'"')+"}[1h]))",legendFormat:"Com_{{command}}",refId:1,step:"1m"}],title:"Top Command Counters Hourly",type:"graph",yaxes:[{format:"none"}]},{colors:["#60acfc","#23c2db","#64d5b2","#d5ec5a","#ffb64e","#fb816d","#d15c7f"],description:"**MySQL Handlers**\n\nHandler statistics are internal statistics on how MySQL is selecting, updating, inserting, and modifying rows, tables, and indexes.\n\nThis is in fact the layer between the Storage Engine and MySQL.\n\n* `read_rnd_next` is incremented when the server performs a full table scan and this is a counter you don't really want to see with a high value.\n* `read_key` is incremented when a read is done with an index.\n* `read_next` is incremented when the storage engine is asked to 'read the next index entry'. A high value means a lot of index scans are being done.",id:8,lines:!0,targets:[{expr:"rate(mysql_global_status_handlers_total{"+'service="'.concat(r,'-metrics",namespace="').concat(n,'",pod="').concat(o,'"')+"}[5m])",legendFormat:"{{handler}}",refId:1,step:"1m"}],title:"MySQL Handlers",type:"graph",yaxes:[{format:"none"}]},{colors:["#60acfc","#23c2db","#64d5b2","#d5ec5a","#ffb64e","#fb816d","#d15c7f"],id:28,lines:!0,targets:[{expr:"rate(mysql_global_status_handlers_total{"+'service="'.concat(r,'-metrics",namespace="').concat(n,'",pod="').concat(o,'"')+"}[5m])",legendFormat:"{{handler}}",refId:1,step:"1m"}],title:"MySQL Transaction Handlers",type:"graph",yaxes:[{format:"none"}]},{colors:["#60acfc","#23c2db","#64d5b2","#d5ec5a","#ffb64e","#fb816d","#d15c7f"],description:"**MySQL Query Cache Memory**\n\nThe query cache has huge scalability problems in that only one thread can do an operation in the query cache at the same time. This serialization is true not only for SELECTs, but also for INSERT/UPDATE/DELETE.\n\nThis also means that the larger the `query_cache_size` is set to, the slower those operations become. In concurrent environments, the MySQL Query Cache quickly becomes a contention point, decreasing performance. MariaDB and AWS Aurora have done work to try and eliminate the query cache contention in their flavors of MySQL, while MySQL 8.0 has eliminated the query cache feature.\n\nThe recommended settings for most environments is to set:\n ``query_cache_type=0``\n ``query_cache_size=0``\n\nNote that while you can dynamically change these values, to completely remove the contention point you have to restart the database.",id:46,lines:!0,targets:[{expr:"mysql_global_status_qcache_free_memory{"+'service="'.concat(r,'-metrics",namespace="').concat(n,'",pod="').concat(o,'"')+"}",legendFormat:"Free Memory",refId:1,step:"1m"},{expr:"mysql_global_variables_query_cache_size{"+'service="'.concat(r,'-metrics",namespace="').concat(n,'",pod="').concat(o,'"')+"}",legendFormat:"Query Cache Size",refId:2,step:"1m"}],title:"MySQL Query Cache Memory",type:"graph",yaxes:[{format:"Byte"}]},{colors:["#60acfc","#23c2db","#64d5b2","#d5ec5a","#ffb64e","#fb816d","#d15c7f"],description:"**MySQL Query Cache Activity**\n\nThe query cache has huge scalability problems in that only one thread can do an operation in the query cache at the same time. This serialization is true not only for SELECTs, but also for INSERT/UPDATE/DELETE.\n\nThis also means that the larger the `query_cache_size` is set to, the slower those operations become. In concurrent environments, the MySQL Query Cache quickly becomes a contention point, decreasing performance. MariaDB and AWS Aurora have done work to try and eliminate the query cache contention in their flavors of MySQL, while MySQL 8.0 has eliminated the query cache feature.\n\nThe recommended settings for most environments is to set:\n``query_cache_type=0``\n``query_cache_size=0``\n\nNote that while you can dynamically change these values, to completely remove the contention point you have to restart the database.",id:45,lines:!0,targets:[{expr:"rate(mysql_global_status_qcache_hits{"+'service="'.concat(r,'-metrics",namespace="').concat(n,'",pod="').concat(o,'"')+"}[5m])",legendFormat:"Hits",refId:1,step:"1m"},{expr:"rate(mysql_global_status_qcache_inserts{"+'service="'.concat(r,'-metrics",namespace="').concat(n,'",pod="').concat(o,'"')+"}[5m])",legendFormat:"Inserts",refId:2,step:"1m"},{expr:"rate(mysql_global_status_qcache_not_cached{"+'service="'.concat(r,'-metrics",namespace="').concat(n,'",pod="').concat(o,'"')+"}[5m])",legendFormat:"Not Cached",refId:3,step:"1m"},{expr:"rate(mysql_global_status_qcache_lowmem_prunes{"+'service="'.concat(r,'-metrics",namespace="').concat(n,'",pod="').concat(o,'"')+"}[5m])",legendFormat:"Prunes",refId:4,step:"1m"},{expr:"mysql_global_status_qcache_queries_in_cache{"+'service="'.concat(r,'-metrics",namespace="').concat(n,'",pod="').concat(o,'"')+"}",legendFormat:"Queries in Cache",refId:5,step:"1m"}],title:"MySQL Query Cache Activity",type:"graph",yaxes:[{format:"none"}]},{colors:["#60acfc","#23c2db","#64d5b2","#d5ec5a","#ffb64e","#fb816d","#d15c7f"],id:43,lines:!0,targets:[{expr:"rate(mysql_global_status_opened_files{"+'service="'.concat(r,'-metrics",namespace="').concat(n,'",pod="').concat(o,'"')+"}[5m])",legendFormat:"Openings",refId:1,step:"1m"}],title:"MySQL File Openings",type:"graph",yaxes:[{format:"none"}]},{colors:["#60acfc","#23c2db","#64d5b2","#d5ec5a","#ffb64e","#fb816d","#d15c7f"],id:41,lines:!0,targets:[{expr:"mysql_global_status_open_files{"+'service="'.concat(r,'-metrics",namespace="').concat(n,'",pod="').concat(o,'"')+"}",legendFormat:"Open Files",refId:1,step:"1m"},{expr:"mysql_global_variables_open_files_limit{"+'service="'.concat(r,'-metrics",namespace="').concat(n,'",pod="').concat(o,'"')+"}",legendFormat:"Open Files Limit",refId:2,step:"1m"},{expr:"mysql_global_status_innodb_num_open_files{"+'service="'.concat(r,'-metrics",namespace="').concat(n,'",pod="').concat(o,'"')+"}",legendFormat:"InnoDB Open Files",refId:3,step:"1m"}],title:"MySQL Open Files",type:"graph",yaxes:[{format:"none"}]},{colors:["#60acfc","#23c2db","#64d5b2","#d5ec5a","#ffb64e","#fb816d","#d15c7f"],description:"**MySQL Table Open Cache Status**\n\nThe recommendation is to set the `table_open_cache_instances` to a loose correlation to virtual CPUs, keeping in mind that more instances means the cache is split more times. If you have a cache set to 500 but it has 10 instances, each cache will only have 50 cached.\n\nThe `table_definition_cache` and `table_open_cache` can be left as default as they are auto-sized MySQL 5.6 and above (ie: do not set them to any value).",id:44,lines:!0,targets:[{expr:"rate(mysql_global_status_opened_tables{"+'service="'.concat(r,'-metrics",namespace="').concat(n,'",pod="').concat(o,'"')+"}[5m])",legendFormat:"Openings",refId:1,step:"1m"},{expr:"rate(mysql_global_status_table_open_cache_hits{"+'service="'.concat(r,'-metrics",namespace="').concat(n,'",pod="').concat(o,'"')+"}[5m])",legendFormat:"Hits",refId:2,step:"1m"},{expr:"rate(mysql_global_status_table_open_cache_misses{"+'service="'.concat(r,'-metrics",namespace="').concat(n,'",pod="').concat(o,'"')+"}[5m])",legendFormat:"Misses",refId:3,step:"1m"},{expr:"rate(mysql_global_status_table_open_cache_overflows{"+'service="'.concat(r,'-metrics",namespace="').concat(n,'",pod="').concat(o,'"')+"}[5m])",legendFormat:"Misses due to Overflows",refId:4,step:"1m"},{expr:"(rate(mysql_global_status_table_open_cache_hits{"+'service="'.concat(r,'-metrics",namespace="').concat(n,'",pod="').concat(o,'"')+"}[5m]))",legendFormat:"Table Open Cache Hit Ratio",refId:5,step:"1m"}],title:"MySQL Table Open Cache Status",type:"graph",yaxes:[{format:"none"}]},{colors:["#60acfc","#23c2db","#64d5b2","#d5ec5a","#ffb64e","#fb816d","#d15c7f"],description:"**MySQL Open Tables**\n\nThe recommendation is to set the `table_open_cache_instances` to a loose correlation to virtual CPUs, keeping in mind that more instances means the cache is split more times. If you have a cache set to 500 but it has 10 instances, each cache will only have 50 cached.\n\nThe `table_definition_cache` and `table_open_cache` can be left as default as they are auto-sized MySQL 5.6 and above (ie: do not set them to any value).",id:42,lines:!0,targets:[{expr:"mysql_global_status_open_tables{"+'service="'.concat(r,'-metrics",namespace="').concat(n,'",pod="').concat(o,'"')+"}",legendFormat:"Open Tables",refId:1,step:"1m"},{expr:"mysql_global_variables_table_open_cache{"+'service="'.concat(r,'-metrics",namespace="').concat(n,'",pod="').concat(o,'"')+"}",legendFormat:"Table Open Cache",refId:2,step:"1m"}],title:"MySQL Open Tables",type:"graph",yaxes:[{format:"none"}]},{colors:["#60acfc","#23c2db","#64d5b2","#d5ec5a","#ffb64e","#fb816d","#d15c7f"],description:"**MySQL Table Definition Cache**\n\nThe recommendation is to set the `table_open_cache_instances` to a loose correlation to virtual CPUs, keeping in mind that more instances means the cache is split more times. If you have a cache set to 500 but it has 10 instances, each cache will only have 50 cached.\n\nThe `table_definition_cache` and `table_open_cache` can be left as default as they are auto-sized MySQL 5.6 and above (ie: do not set them to any value).",id:54,lines:!0,targets:[{expr:"mysql_global_status_open_table_definitions{"+'service="'.concat(r,'-metrics",namespace="').concat(n,'",pod="').concat(o,'"')+"}",legendFormat:"Open Table Definitions",refId:1,step:"1m"},{expr:"mysql_global_variables_table_definition_cache{"+'service="'.concat(r,'-metrics",namespace="').concat(n,'",pod="').concat(o,'"')+"}",legendFormat:"Table Definitions Cache Size",refId:2,step:"1m"},{expr:"rate(mysql_global_status_opened_table_definitions{"+'service="'.concat(r,'-metrics",namespace="').concat(n,'",pod="').concat(o,'"')+"}[5m])",legendFormat:"Opened Table Definitions",refId:3,step:"1m"}],title:"MySQL Table Definition Cache",type:"graph",yaxes:[{format:"none"}]}]},getMonitoringCfgs:function(e){return[{type:"utilisation",title:t("MAX_USED_CONNECTIONS"),legend:[t("MAX_USED_CONNECTIONS")],data:[(0,o.default)(e,"[2].data.result[0]",{})]},{type:"utilisation",title:"THREADS",legend:[t("PEAK_THREADS_CONNECTED"),t("PEAK_THREADS_RUNNING"),t("AVG_THREADS_RUNNING")],data:[(0,o.default)(e,"[4].data.result[0]",{}),(0,o.default)(e,"[5].data.result[0]",{}),(0,o.default)(e,"[6].data.result[0]",{})]},{type:"utilisation",title:t("ABORTED_CONNECTIONS"),legend:[t("ABORTED_CONNECTION_ATTEMPTS"),t("ABORTED_CLIENT_TIMEOUTS")],data:[(0,o.default)(e,"[24].data.result[0]",{}),(0,o.default)(e,"[25].data.result[0]",{})]},{type:"utilisation",title:t("QUESTIONS"),legend:[t("QUESTIONS")],data:[(0,o.default)(e,"[7].data.result[0]",{})]},{type:"utilisation",title:t("SELECT_BY_TYPE"),legend:[t("SELECT_FULL_JOIN"),t("SELECT_FULL_RANGE_JOIN"),t("SELECT_RANGE"),t("SELECT_RANGE_CHECK"),t("SELECT_SCAN")],data:[(0,o.default)(e,"[14].data.result[0]",{}),(0,o.default)(e,"[15].data.result[0]",{}),(0,o.default)(e,"[16].data.result[0]",{}),(0,o.default)(e,"[17].data.result[0]",{}),(0,o.default)(e,"[18].data.result[0]",{})]},{type:"utilisation",title:t("SORT_BY_TYPE"),legend:[t("SORT_ROWS"),t("SORT_RANGE"),t("SORT_MERGE_PASSES"),t("SORT_SCAN")],data:[(0,o.default)(e,"[19].data.result[0]",{}),(0,o.default)(e,"[20].data.result[0]",{}),(0,o.default)(e,"[21].data.result[0]",{}),(0,o.default)(e,"[22].data.result[0]",{})]},{type:"utilisation",title:t("SLOW_QUERIES"),legend:[t("SLOW_QUERIES")],data:[(0,o.default)(e,"[23].data.result[0]",{})]},{type:"utilisation",title:t("TABLE_LOCKS"),legend:[t("TABLE_LOCKS_IMMEDIATE"),t("TABLE_LOCKS_WAITED")],data:[(0,o.default)(e,"[26].data.result[0]",{}),(0,o.default)(e,"[27].data.result[0]",{})]},{type:"utilisation",title:t("TMP_TABLES_AND_FILES"),legend:[t("CREATED_TMP_TABLES"),t("CREATED_TMP_DISK_TABLES"),t("CREATED_TMP_FILES")],data:[(0,o.default)(e,"[11].data.result[0]",{}),(0,o.default)(e,"[12].data.result[0]",{}),(0,o.default)(e,"[13].data.result[0]",{})]},{type:"utilisation",title:t("MYSQL_NETWORK_TRAFFIC"),legend:[t("MYSQL_INBOUND"),t("MYSQL_OUTBOUND")],data:[(0,o.default)(e,"[28].data.result[0]",{}),(0,o.default)(e,"[29].data.result[0]",{})]}]}};a.default=c},4825:function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(18),r(16),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(5),r(18),r(16);var o=n(r(26));var c={getConfig:function(e,t){var a=e.detail.namespace,r=t.name;return[{targets:[{expr:'sum by(hostname) (chi_clickhouse_metric_TCPConnection{namespace="'.concat(a,'",pod="').concat(r,'"})')},{expr:'sum by(hostname) (chi_clickhouse_metric_HTTPConnection{namespace="'.concat(a,'",pod="').concat(r,'"})')}]},{targets:[{expr:'chi_clickhouse_metric_DiskDataBytes{namespace="'.concat(a,'",pod="').concat(r,'"}')}]},{targets:[{expr:'sum by(pod) (irate(chi_clickhouse_event_SelectQuery{namespace="'.concat(a,'",pod="').concat(r,'"}[2m]))')}]},{targets:[{expr:'sum by(pod) (irate(chi_clickhouse_event_Query{namespace="'.concat(a,'",pod="').concat(r,'"}[2m]))')}]},{targets:[{expr:'sum by(pod) (irate(chi_clickhouse_event_InsertedBytes{namespace="'.concat(a,'",pod="').concat(r,'"}[2m]))')}]},{targets:[{expr:'sum by(pod) (irate(chi_clickhouse_event_InsertedRows{namespace="'.concat(a,'",pod="').concat(r,'"}[2m]))')}]},{targets:[{expr:'chi_clickhouse_metric_ReplicasMaxAbsoluteDelay{namespace="'.concat(a,'",pod="').concat(r,'"}')},{expr:'chi_clickhouse_metric_ReplicasMaxRelativeDelay{namespace="'.concat(a,'",pod="').concat(r,'"}')}]},{targets:[{expr:'chi_clickhouse_metric_TotalPartsOfMergeTreeTables{namespace="'.concat(a,'",pod="').concat(r,'"}')}]},{targets:[{expr:'chi_clickhouse_metric_DelayedInserts{namespace="'.concat(a,'",pod="').concat(r,'"}')},{expr:'increase(chi_clickhouse_event_DelayedInserts{namespace="'.concat(a,'",pod="').concat(r,'"}[1m])')},{expr:'increase(chi_clickhouse_event_RejectedInserts{namespace="'.concat(a,'",pod="').concat(r,'"}[1m])')},{expr:'chi_clickhouse_metric_DistributedFilesToInsert{namespace="'.concat(a,'",pod="').concat(r,'"}')}]},{targets:[{expr:'sum by(pod) (irate(chi_clickhouse_event_CompressedReadBufferBytes{namespace="'.concat(a,'",pod="').concat(r,'"}[1m]))')},{expr:'sum by(pod) (irate(chi_clickhouse_event_ReadCompressedBytes{namespace="'.concat(a,'",pod="').concat(r,'"}[1m]))')},{expr:'sum by(pod) (irate(chi_clickhouse_event_ReadBufferFromFileDescriptorReadBytes{namespace="'.concat(a,'",pod="').concat(r,'"}[1m]))')},{expr:'sum by(pod) (irate(chi_clickhouse_event_OSReadBytes{namespace="'.concat(a,'",pod="').concat(r,'"}[1m]))')}]},{targets:[{expr:'chi_clickhouse_metric_MemoryTracking{namespace="'.concat(a,'",pod="').concat(r,'"}')}]},{targets:[{expr:'sum by(pod) (irate(chi_clickhouse_event_ReplicatedDataLoss{namespace="'.concat(a,'",pod="').concat(r,'"}[1m]))')},{expr:'sum by(pod) (irate(chi_clickhouse_event_ReplicatedPartChecks{namespace="'.concat(a,'",pod="').concat(r,'"}[1m]))')},{expr:'sum by(pod) (irate(chi_clickhouse_event_ReplicatedPartChecksFailed{namespace="'.concat(a,'",pod="').concat(r,'"}[1m]))')},{expr:'sum by(pod) (irate(chi_clickhouse_event_ReplicatedPartFetches{namespace="'.concat(a,'",pod="').concat(r,'"}[1m]))')},{expr:'sum by(pod) (irate(chi_clickhouse_event_ReplicatedPartFailedFetches{namespace="'.concat(a,'",pod="').concat(r,'"}[1m]))')},{expr:'sum by(pod) (irate(chi_clickhouse_event_ReplicatedPartFetchesOfMerged{namespace="'.concat(a,'",pod="').concat(r,'"}[1m]))')},{expr:'sum by(pod) (irate(chi_clickhouse_event_ReplicatedPartMerges{namespace="'.concat(a,'",pod="').concat(r,'"}[1m]))')},{expr:'chi_clickhouse_metric_ReplicasMaxQueueSize{namespace="'.concat(a,'",pod="').concat(r,'"}')}]},{targets:[{expr:'sum by(pod) (irate(chi_clickhouse_event_Merge{namespace="'.concat(a,'",pod="').concat(r,'"}[1m]))')}]},{targets:[{expr:'sum by(pod) (irate(chi_clickhouse_event_MergedRows{namespace="'.concat(a,'",pod="').concat(r,'"}[1m]))')}]},{targets:[{expr:'sum by(pod) (irate(chi_clickhouse_event_MergedUncompressedBytes{namespace="'.concat(a,'",pod="').concat(r,'"}[1m]))')}]},{targets:[{expr:'sum by(pod) (chi_clickhouse_table_parts{namespace="'.concat(a,'",pod="').concat(r,'",active="1"})')}]},{targets:[{expr:'sum by(pod) (chi_clickhouse_table_parts{namespace="'.concat(a,'",pod="').concat(r,'",active="0"})')}]},{targets:[{expr:'chi_clickhouse_metric_MaxPartCountForPartition{namespace="'.concat(a,'",pod="').concat(r,'"}')}]},{targets:[{expr:'chi_clickhouse_metric_MemoryCode{namespace="'.concat(a,'",pod="').concat(r,'"}')},{expr:'chi_clickhouse_metric_MemoryResident{namespace="'.concat(a,'",pod="').concat(r,'"}')},{expr:'chi_clickhouse_metric_MemoryShared{namespace="'.concat(a,'",pod="').concat(r,'"}')}]},{targets:[{expr:'chi_clickhouse_metric_MemoryPrimaryKeyBytesAllocated{namespace="'.concat(a,'",pod="').concat(r,'"}')}]},{targets:[{expr:'chi_clickhouse_metric_MemoryDictionaryBytesAllocated{namespace="'.concat(a,'",pod="').concat(r,'"}')}]},{targets:[{expr:'irate(chi_clickhouse_event_MarkCacheHits{namespace="'.concat(a,'",pod="').concat(r,'"}[1m]) / (irate(chi_clickhouse_event_MarkCacheHits{namespace="').concat(a,'",pod="').concat(r,'"}[1m]))')}]},{targets:[{expr:'chi_clickhouse_metric_BackgroundPoolTask{namespace="'.concat(a,'",pod="').concat(r,'"}')},{expr:'chi_clickhouse_metric_BackgroundSchedulePoolTask{namespace="'.concat(a,'",pod="').concat(r,'"}')},{expr:'chi_clickhouse_metric_BackgroundMovePoolTask{namespace="'.concat(a,'",pod="').concat(r,'"}')}]},{targets:[{expr:'sum by (pod) (chi_clickhouse_table_mutations{namespace="'.concat(a,'",pod="').concat(r,'"})')},{expr:'sum by (pod) (chi_clickhouse_table_mutations_parts_to_do{namespace="'.concat(a,'",pod="').concat(r,'"})')}]},{targets:[{expr:'sum by(pod) (irate(chi_clickhouse_event_DiskReadElapsedMicroseconds{namespace="'.concat(a,'",pod=~"').concat(r,'"}[1m]))')},{expr:'sum by(pod) (irate(chi_clickhouse_event_DiskWriteElapsedMicroseconds{namespace="'.concat(a,'",pod=~"').concat(r,'"}[1m]))')},{expr:'sum by(pod) (irate(chi_clickhouse_event_NetworkReceiveElapsedMicroseconds{namespace="'.concat(a,'",pod=~"').concat(r,'"}[1m]))')},{expr:'sum by(pod) (irate(chi_clickhouse_event_NetworkSendElapsedMicroseconds{namespace="'.concat(a,'",pod=~"').concat(r,'"}[1m]))')},{expr:'sum by(pod) (irate(chi_clickhouse_event_RealTimeMicroseconds{namespace="'.concat(a,'",pod=~"').concat(r,'"}[1m]))')},{expr:'sum by(pod) (irate(chi_clickhouse_event_UserTimeMicroseconds{namespace="'.concat(a,'",pod=~"').concat(r,'"}[1m]))')},{expr:'sum by(pod) (irate(chi_clickhouse_event_SystemTimeMicroseconds{namespace="'.concat(a,'",pod=~"').concat(r,'"}[1m]))')},{expr:'sum by(pod) (irate(chi_clickhouse_event_OSIOWaitMicroseconds{namespace="'.concat(a,'",pod=~"').concat(r,'"}[1m]))')},{expr:'sum by(pod) (irate(chi_clickhouse_event_OSCPUWaitMicroseconds{namespace="'.concat(a,'",pod=~"').concat(r,'"}[1m]))')},{expr:'sum by(pod) (irate(chi_clickhouse_event_OSCPUVirtualTimeMicroseconds{namespace="'.concat(a,'",pod=~"').concat(r,'"}[1m]))')}]}]},getMonitoringCfgs:function(e){return[{title:t("CONNECTIONS"),legend:["TCP","HTTP"],data:[(0,o.default)(e,"1.data.result[0]",{}),(0,o.default)(e,"2.data.result[0]",{})]},{title:t("CLICKHOUSE_DATA_SIZE_ON_DISK"),unit:"MB",legend:[t("CLICKHOUSE_DATA_SIZE_ON_DISK")],data:[(0,o.default)(e,"3.data.result[0]",{})]},{title:t("QUERIES"),legend:[t("SELECT_QUERIES"),t("ALL_QUERIES")],data:[(0,o.default)(e,"4.data.result[0]",{}),(0,o.default)(e,"5.data.result[0]",{})]},{title:t("INSERTED_BYTES"),unit:"KiB",legend:(0,o.default)(e,"6.data.result",[]).map((function(){return t("INSERTED_BYTES")})),data:(0,o.default)(e,"6.data.result",[])},{title:t("INSERTED_ROWS"),legend:(0,o.default)(e,"7.data.result",[]).map((function(){return t("INSERTED_ROWS")})),data:(0,o.default)(e,"7.data.result",[])},{title:t("MAXIMUM_REPLICATION_DEPLAY"),legend:[t("RELATIVE_DELAY"),t("ABSOLUTE_DELAY")],unit:"s",data:[(0,o.default)(e,"8.data.result[0]",{}),(0,o.default)(e,"9.data.result[0]",{})]},{title:t("TOTAL_PARTS_OF_MERGETREE_TABLES"),legend:[t("TOTAL_PARTS_OF_MERGETREE_TABLES")],data:[(0,o.default)(e,"10.data.result[0]",{})]},{title:t("DELAYED_REJECTED_INSERTS"),legend:[t("DELAYED_QUERIES"),t("DELAYED_BLOCKS"),t("REJECTED_BLOCKS"),t("DELAYED_DISTRIBUTED_FILES")],data:[(0,o.default)(e,"11.data.result[0]",{}),(0,o.default)(e,"12.data.result[0]",{}),(0,o.default)(e,"13.data.result[0]",{}),(0,o.default)(e,"14.data.result[0]",{})]},{title:t("READ_BYTES"),legend:[t("UNCOMPRESSED"),t("COMPRESSED"),t("FILE_DESCRIPTOR"),t("CLICKHOUSE_OS")],unitType:"memory",data:[(0,o.default)(e,"15.data.result[0]",{}),(0,o.default)(e,"16.data.result[0]",{}),(0,o.default)(e,"17.data.result[0]",{}),(0,o.default)(e,"18.data.result[0]",{})]},{title:t("MEMORY_FOR_QUERIES"),legend:[t("MEMORY_FOR_QUERIES")],unitType:"memory",data:[(0,o.default)(e,"19.data.result[0]",{})]},{title:t("REPLICATION_QUEUE_JOBS"),legend:[t("DATA_LOSS"),t("CHECK"),t("CHECK_FAIL"),t("FETCH"),t("FETCH_FAIL"),t("FETCH_MERGED"),t("REPLICATED_MERGED"),t("MAX_QUEUE_SIZE")],unitType:"memory",data:[(0,o.default)(e,"20.data.result[0]",{}),(0,o.default)(e,"21.data.result[0]",{}),(0,o.default)(e,"22.data.result[0]",{}),(0,o.default)(e,"23.data.result[0]",{}),(0,o.default)(e,"24.data.result[0]",{}),(0,o.default)(e,"25.data.result[0]",{}),(0,o.default)(e,"26.data.result[0]",{}),(0,o.default)(e,"27.data.result[0]",{})]},{title:t("MERGES"),legend:[t("MERGES")],data:[(0,o.default)(e,"28.data.result[0]",{})]},{title:t("MERGED_ROWS"),legend:[t("MERGED_ROWS")],data:[(0,o.default)(e,"29.data.result[0]",{})]},{title:t("MERGED_UNCOMPRESSED_BYTES"),legend:[t("MERGED_UNCOMPRESSED_BYTES")],unitType:"disk",data:[(0,o.default)(e,"30.data.result[0]",{})]},{title:t("ACTIVE_PARTS"),legend:[t("ACTIVE_PARTS")],data:[(0,o.default)(e,"31.data.result[0]",{})]},{title:t("DETACHED_PARTS"),legend:[t("DETACHED_PARTS")],data:[(0,o.default)(e,"32.data.result[0]",{})]},{title:t("MAX_PART_COUNT_FOR_PARTITION"),legend:[t("MAX_PART_COUNT_FOR_PARTITION")],data:[(0,o.default)(e,"33.data.result[0]",{})]},{title:t("CLICKHOUSE_SERVER_PROCESS_MEMORY"),legend:["CODE","RES","SHR"],unitType:"memory",data:[(0,o.default)(e,"34.data.result[0]",{}),(0,o.default)(e,"35.data.result[0]",{}),(0,o.default)(e,"36.data.result[0]",{})]},{title:t("PRIMARY_KEYS_MEMORY"),legend:[t("PRIMARY_KEYS_MEMORY")],unitType:"memory",data:[(0,o.default)(e,"37.data.result[0]",{})]},{title:t("DICTIONARY_MEMORY"),legend:[t("DICTIONARY_MEMORY")],unitType:"memory",data:[(0,o.default)(e,"38.data.result[0]",{})]},{title:t("BACKGROUND_TASKS"),legend:[t("MERGE_MUTATE_FETCH"),t("CLEAN_ALTER_REPLICA_REINIT"),t("MOVES")],unitType:"memory",data:[(0,o.default)(e,"40.data.result[0]",{}),(0,o.default)(e,"41.data.result[0]",{}),(0,o.default)(e,"42.data.result[0]",{})]},{title:t("CPU_TIME_PER_SECOND"),legend:[t("DISK_READ_SYSCALL"),t("DISK_WRITE_SYSCALL"),t("NETWORK_RECEIVE"),t("NETWORK_SEND"),t("REAL_TIME"),t("USER_TIME"),t("SYSTEM_TIME"),t("OS_IO_WAIT"),t("OS_CPU_WAIT"),t("OS_CPU_VIRTUAL")],unit:"µs",data:[(0,o.default)(e,"45.data.result[0]",{}),(0,o.default)(e,"46.data.result[0]",{}),(0,o.default)(e,"47.data.result[0]",{}),(0,o.default)(e,"48.data.result[0]",{}),(0,o.default)(e,"49.data.result[0]",{}),(0,o.default)(e,"50.data.result[0]",{}),(0,o.default)(e,"51.data.result[0]",{}),(0,o.default)(e,"52.data.result[0]",{}),(0,o.default)(e,"53.data.result[0]",{}),(0,o.default)(e,"54.data.result[0]",{})]}]}};a.default=c},4826:function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(18),r(16),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var o=n(r(61));r(5),r(18),r(16);var c=n(r(26));function s(e,t){var a=e.detail.namespace,r=t.name;return[{targets:[{expr:'sum(pg_stat_activity_count{namespace="'.concat(a,'",pod="').concat(r,'",state="active"})')},{expr:'sum(pg_stat_activity_count{namespace="'.concat(a,'",pod="').concat(r,'",state="idle in transaction"})')},{expr:'sum(pg_stat_activity_count{namespace="'.concat(a,'",pod="').concat(r,'",state="idle"})')}]},{targets:[{expr:'(sum(pg_stat_database_numbackends{namespace="'.concat(a,'",pod="').concat(r,'"}) / sum(pg_settings_max_connections{namespace="').concat(a,'",pod="').concat(r,'"}))')}]},{targets:[{expr:'round(sum(pg_stat_database_blks_hit{namespace="'.concat(a,'",pod="').concat(r,'"}) / (sum(pg_stat_database_blks_hit{namespace="').concat(a,'",pod="').concat(r,'"}) + sum(pg_stat_database_blks_read{namespace="').concat(a,'",pod="').concat(r,'"})),0.001)')}]},{targets:[{expr:'pg_stat_database_blks_hit{namespace="'.concat(a,'",pod="').concat(r,'",datname!="template0", datname!="template1",datname!=""} / (pg_stat_database_blks_read{namespace="').concat(a,'",pod="').concat(r,'",datname!="template0", datname!="template1",datname!=""} + pg_stat_database_blks_hit{namespace="').concat(a,'",pod="').concat(r,'",datname!="template0", datname!="template1",datname!=""})')}]},{targets:[{expr:'irate(pg_stat_database_tup_fetched{namespace="'.concat(a,'",pod="').concat(r,'",datname!="template0", datname!="template1",datname!=""}[1m])')},{expr:'irate(pg_stat_database_tup_inserted{namespace="'.concat(a,'",pod="').concat(r,'",datname!="template0", datname!="template1",datname!=""}[1m])')},{expr:'irate(pg_stat_database_tup_updated{namespace="'.concat(a,'",pod="').concat(r,'",datname!="template0", datname!="template1",datname!=""}[1m])')},{expr:'irate(pg_stat_database_tup_deleted{namespace="'.concat(a,'",pod="').concat(r,'",datname!="template0", datname!="template1",datname!=""}[1m])')},{expr:'irate(pg_stat_database_tup_returned{namespace="'.concat(a,'",pod="').concat(r,'",datname!="template0", datname!="template1",datname!=""}[1m])')}]},{targets:[{expr:'irate(pg_stat_database_conflicts{namespace="'.concat(a,'",pod="').concat(r,'",datname!="template0", datname!="template1",datname!=""}[1m])')},{expr:'irate(pg_stat_database_deadlocks{namespace="'.concat(a,'",pod="').concat(r,'",datname!="template0", datname!="template1",datname!=""}[1m])')},{expr:'irate(pg_stat_database_xact_commit{namespace="'.concat(a,'",pod="').concat(r,'",datname!="template0", datname!="template1",datname!=""}[1m])')},{expr:'irate(pg_stat_database_xact_rollback{namespace="'.concat(a,'",pod="').concat(r,'",datname!="template0", datname!="template1",datname!=""}[1m])')}]},{targets:[{expr:'max(pg_stat_activity_max_tx_duration{namespace="'.concat(a,'",pod="').concat(r,'",datname!="template0", datname!="template1",datname!=""}) by (datname)')}]},{targets:[{expr:'pg_locks_count{namespace="'.concat(a,'",pod="').concat(r,'",datname!="template0", datname!="template1",datname!=""} > 0')}]},{targets:[{expr:'pg_database_size_bytes{namespace="'.concat(a,'",pod="').concat(r,'",datname!="template0", datname!="template1",datname!=""}')}]}]}function l(e){return[{title:t("CONNECTIONS"),legend:[t("ACTIVE_CONNECTIONS"),t("IDLE_IN_TRANSACTION"),t("IDLE_CONNECTIONS")],data:[(0,c.default)(e,"[1].data.result[0]",{}),(0,c.default)(e,"[2].data.result[0]",{}),(0,c.default)(e,"[3].data.result[0]",{})]},{title:t("ACTIVE_SESSIONS"),legend:[t("ACTIVE_SESSIONS")],unit:"%",dot:2,data:[(0,c.default)(e,"[4].data.result[0]",{})]},{title:t("CACHE_HIT_RATIO"),legend:[t("CACHE_HIT_RATIO")],unit:"%",dot:2,data:[(0,c.default)(e,"[5].data.result[0]",{})]},{title:t("CACHE_HIT_RATIO_EACH_DATABASE"),legend:(0,c.default)(e,"[6].data.result",[]).map((function(e){return e.metric.datname})),unit:"%",dot:2,data:(0,c.default)(e,"[6].data.result",[])},{title:t("FETCHED_PER_SECOND"),legend:(0,c.default)(e,"[7].data.result",[]).map((function(e){return e.metric.datname})),dot:2,data:(0,c.default)(e,"[7].data.result",[])},{title:t("INSERTED_PER_SECOND"),legend:(0,c.default)(e,"[8].data.result",[]).map((function(e){return e.metric.datname})),dot:2,data:(0,c.default)(e,"[8].data.result",[])},{title:t("UPDATED_PER_SECOND"),legend:(0,c.default)(e,"[9].data.result",[]).map((function(e){return e.metric.datname})),dot:2,data:(0,c.default)(e,"[9].data.result",[])},{title:t("DELETED_PER_SECOND"),legend:(0,c.default)(e,"[10].data.result",[]).map((function(e){return e.metric.datname})),dot:2,data:(0,c.default)(e,"[10].data.result",[])},{title:t("RETURNED_PER_SECOND"),legend:(0,c.default)(e,"[11].data.result",[]).map((function(e){return e.metric.datname})),dot:2,data:(0,c.default)(e,"[11].data.result",[])},{title:t("CONFLICTS_PER_SECOND"),legend:(0,c.default)(e,"[12].data.result",[]).map((function(e){return e.metric.datname})),dot:2,data:(0,c.default)(e,"[12].data.result",[])},{title:t("DEADLOCKS_PER_SECOND"),legend:(0,c.default)(e,"[13].data.result",[]).map((function(e){return e.metric.datname})),dot:2,data:(0,c.default)(e,"[13].data.result",[])},{title:t("COMMITS_PER_SECOND"),legend:(0,c.default)(e,"[14].data.result",[]).map((function(e){return e.metric.datname})),dot:2,data:(0,c.default)(e,"[14].data.result",[])},{title:t("ROLLBACKS_PER_SECOND"),legend:(0,c.default)(e,"[15].data.result",[]).map((function(e){return e.metric.datname})),dot:2,data:(0,c.default)(e,"[15].data.result",[])},{title:t("MAX_TX_DURATION"),legend:(0,c.default)(e,"[15].data.result",[]).map((function(e){return e.metric.datname})),data:(0,c.default)(e,"[16].data.result",[])},{title:t("LOCKS"),legend:(0,c.default)(e,"[17].data.result",[]).map((function(e){return"".concat(e.metric.datname,"-").concat(e.metric.mode)})),data:(0,c.default)(e,"[17].data.result",[])},{title:t("DATABASE_SIZE"),unitType:"disk",legend:(0,c.default)(e,"[18].data.result",[]).map((function(e){return e.metric.datname})),data:(0,c.default)(e,"[18].data.result",[])}]}var i={postgresql:{getConfig:s,getMonitoringCfgs:l},autofailover:{getConfig:function(e,t){var a=e.detail.namespace,r=t.name;return[].concat((0,o.default)(s(e,t)),[{targets:[{expr:'pg_auto_failover_async_count{namespace="'.concat(a,'",pod="').concat(r,'"}')}]},{targets:[{expr:'pg_auto_failover_invalid_count{namespace="'.concat(a,'",pod="').concat(r,'"}')}]},{targets:[{expr:'pg_auto_failover_not_running_count{namespace="'.concat(a,'",pod="').concat(r,'"}')}]},{targets:[{expr:'pg_auto_failover_unhealth_count{namespace="'.concat(a,'",pod="').concat(r,'"}')}]}])},getMonitoringCfgs:function(e){return[{title:t("ASYNC_NODE_NUMBER"),legend:[t("ASYNC_NODE_NUMBER")],data:[(0,c.default)(e,"[19].data.result[0]",{})]},{title:t("INVALID_STATUS_NODE_NUMBER"),legend:[t("INVALID_STATUS_NODE_NUMBER")],data:[(0,c.default)(e,"[20].data.result[0]",{})]},{title:t("NOT_RUNNING_NODE_NUMBER"),legend:[t("NOT_RUNNING_NODE_NUMBER")],data:[(0,c.default)(e,"[21].data.result[0]",{})]},{title:t("UNHEALTH_NODE_NUMBER"),legend:[t("UNHEALTH_NODE_NUMBER")],data:[(0,c.default)(e,"[22].data.result[0]",{})]}].concat(l(e))}}};a.default=i},4827:function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(18),r(16),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(5),r(18),r(16);var o=n(r(26));var c={getConfig:function(e,t){var a=e.detail.namespace,r=t.name;return[{targets:[{expr:'redis_memory_used_bytes{namespace="'.concat(a,'",pod="').concat(r,'"}')},{expr:'redis_memory_max_bytes{namespace="'.concat(a,'",pod="').concat(r,'"}')}]},{targets:[{expr:'redis_memory_used_bytes{namespace="'.concat(a,'",pod="').concat(r,'"} / redis_memory_max_bytes{namespace="').concat(a,'",pod="').concat(r,'"}')}]},{targets:[{expr:'rate(redis_commands_processed_total{namespace="'.concat(a,'",pod="').concat(r,'"}[1m])')}]},{targets:[{expr:'topk(5, irate(redis_commands_total{namespace="'.concat(a,'",pod="').concat(r,'"} [1m]))')}]},{targets:[{expr:'rate(redis_net_input_bytes_total{namespace="'.concat(a,'",pod="').concat(r,'"}[5m])')},{expr:'rate(redis_net_output_bytes_total{namespace="'.concat(a,'",pod="').concat(r,'"}[5m])')}]},{targets:[{expr:'sum (redis_db_keys{namespace="'.concat(a,'",pod="').concat(r,'"}) by (db)')}]},{targets:[{expr:'sum (redis_db_keys{namespace="'.concat(a,'",pod="').concat(r,'"}) - sum (redis_db_keys_expiring{namespace="').concat(a,'",pod="').concat(r,'"})')},{expr:'sum (redis_db_keys_expiring{namespace="'.concat(a,'",pod="').concat(r,'"})')}]},{targets:[{expr:'redis_connected_clients{namespace="'.concat(a,'",pod="').concat(r,'"}')}]},{targets:[{expr:'irate(redis_keyspace_hits_total{namespace="'.concat(a,'",pod="').concat(r,'"}[5m]) * 100')},{expr:'irate(redis_keyspace_misses_total{namespace="'.concat(a,'",pod="').concat(r,'"}[5m]) * 100')}]},{targets:[{expr:'redis_mem_fragmentation_ratio{namespace="'.concat(a,'",pod="').concat(r,'"}')}]},{targets:[{expr:'rate(redis_rejected_connections_total{namespace="'.concat(a,'",pod="').concat(r,'"}[5m])')}]},{targets:[{expr:'redis_evicted_keys_total{namespace="'.concat(a,'",pod="').concat(r,'"}')}]}]},getMonitoringCfgs:function(e){return[{title:t("REDIS_MEMORY_USAGE"),legend:[t("REDIS_USED_MEMORY"),t("REDIS_MAX_MEMORY")],unitType:"memory",data:[(0,o.default)(e,"1.data.result[0]",{}),(0,o.default)(e,"2.data.result[0]",{})]},{title:t("REDIS_MEMORY_USAGE"),unit:"%",dot:2,legend:[t("REDIS_MEMORY_USAGE")],data:[(0,o.default)(e,"3.data.result[0]",{})]},{title:t("COMMANDS_EXECUTED_PER_MINUTE"),legend:[t("COMMANDS_EXECUTED_PER_MINUTE")],data:[(0,o.default)(e,"4.data.result[0]",{})]},{title:t("TOP_5_REDIS_COMMANDS_PER_MINUTE"),dot:2,legend:(0,o.default)(e,"5.data.result",[]).map((function(e){return(0,o.default)(e,"metric.cmd")})),data:(0,o.default)(e,"5.data.result")},{title:t("NETWORK_IO"),unitType:"memory",legend:[t("NETWORK_INPUT_BYTES"),t("NETWORK_OUTPUT_BYTES")],data:[(0,o.default)(e,"6.data.result[0]",{}),(0,o.default)(e,"7.data.result[0]",{})]},{title:t("TOTAL_DB_KEYS"),legend:[t("TOTAL_DB_KEYS")],data:[(0,o.default)(e,"8.data.result[0]",{})]},{title:t("DB_KEYS"),legend:[t("VALID_KEYS"),t("EXPIRED_KEYS")],data:[(0,o.default)(e,"9.data.result[0]",{}),(0,o.default)(e,"10.data.result[0]",{})]},{title:t("CLIENT_COUNT"),legend:[t("CLIENT_COUNT")],data:[(0,o.default)(e,"11.data.result[0]",{})]},{title:t("KEYSPACE"),legend:[t("KEYSPACE_HITS_TOTAL"),t("KEYSPACE_MISSES_TOTAL")],data:[(0,o.default)(e,"12.data.result[0]",{}),(0,o.default)(e,"13.data.result[0]",{})]},{title:t("MEMORY_FRAGMENTATION_RATIO"),legend:[t("MEMORY_FRAGMENTATION_RATIO")],unit:"%",data:[(0,o.default)(e,"14.data.result[0]",{})]},{title:t("REJECTED_CONNECTION_RATIO"),legend:[t("REJECTED_CONNECTION_RATIO")],unit:"%",data:[(0,o.default)(e,"15.data.result[0]",{})]},{title:t("REVICTED_KEY_RATIO"),legend:[t("REVICTED_KEY_RATIO")],data:[(0,o.default)(e,"16.data.result[0]",{})]}]}};a.default=c},4828:function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(16),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(5),r(16);var o=n(r(26));var c={getConfig:function(e,t){var a=e.detail.namespace,r=t.name;return[{targets:[{expr:'predixy_used_memory{namespace="'.concat(a,'",pod="').concat(r,'"}')}]},{targets:[{expr:'predixy_redis_cluster_connections{namespace="'.concat(a,'",pod="').concat(r,'"}')}]},{targets:[{expr:'rate(predixy_redis_cluster_total_recv_client_bytes{namespace="'.concat(a,'",pod="').concat(r,'"}[1m])')},{expr:'rate(predixy_redis_cluster_total_recv_server_bytes{namespace="'.concat(a,'",pod="').concat(r,'"}[1m])')},{expr:'rate(predixy_redis_cluster_total_send_client_bytes{namespace="'.concat(a,'",pod="').concat(r,'"}[1m])')},{expr:'rate(predixy_redis_cluster_total_send_server_bytes{namespace="'.concat(a,'",pod="').concat(r,'"}[1m])')}]},{targets:[{expr:'rate(predixy_total_requests{namespace="'.concat(a,'",pod="').concat(r,'"}[1m])')}]},{targets:[{expr:'count(predixy_redis_cluster_server_connections{namespace="'.concat(a,'",pod="').concat(r,'"})')}]}]},getMonitoringCfgs:function(e){return[{title:t("PREDIXY_MEMORY_USAGE"),legend:[t("PREDIXY_MEMORY_USAGE")],unitType:"memory",data:[(0,o.default)(e,"1.data.result[0]",{})]},{title:t("CLIENT_COUNT"),unit:"%",dot:2,legend:[t("CLIENT_COUNT")],data:[(0,o.default)(e,"2.data.result[0]",{})]},{title:t("NETWORK_IO"),legend:[t("RECV_CLIENT_BYTES"),t("RECV_SERVER_BYTES"),t("SEND_CLIENT_BYTES"),t("SEND_SERVER_BYTES")],data:[(0,o.default)(e,"3.data.result[0]",{}),(0,o.default)(e,"4.data.result[0]",{}),(0,o.default)(e,"5.data.result[0]",{}),(0,o.default)(e,"6.data.result[0]",{})]},{title:t("COMMANDS_EXECUTED_PER_MINUTE"),legend:[t("COMMANDS_EXECUTED_PER_MINUTE")],data:[(0,o.default)(e,"7.data.result[0]",{})]},{title:t("REDIS_CLUSTER_COUNT"),legend:[t("REDIS_CLUSTER_COUNT")],data:[(0,o.default)(e,"8.data.result[0]",{})]}]}};a.default=c},4829:function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(16),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(5),r(16);var o=n(r(26));var c={getConfig:function(e,t){var a=e.detail.namespace,r=t.name;return[{targets:[{expr:'sum(max_over_time(mongodb_opcounters_insert{namespace="'.concat(a,'",pod="').concat(r,'"}[1m]) or vector(0)) - sum(max_over_time(mongodb_opcounters_insert{namespace="').concat(a,'",pod="').concat(r,'"}[1m] offset 1m) or vector(0))')},{expr:'sum(max_over_time(mongodb_opcounters_query{namespace="'.concat(a,'",pod="').concat(r,'"}[1m]) or vector(0)) - sum(max_over_time(mongodb_opcounters_query{namespace="').concat(a,'",pod="').concat(r,'"}[1m] offset 1m) or vector(0))')},{expr:'sum(max_over_time(mongodb_opcounters_update{namespace="'.concat(a,'",pod="').concat(r,'"}[1m]) or vector(0)) - sum(max_over_time(mongodb_opcounters_update{namespace="').concat(a,'",pod="').concat(r,'"}[1m] offset 1m) or vector(0))')},{expr:'sum(max_over_time(mongodb_opcounters_delete{namespace="'.concat(a,'",pod="').concat(r,'"}[1m]) or vector(0)) - sum(max_over_time(mongodb_opcounters_delete{namespace="').concat(a,'",pod="').concat(r,'"}[1m] offset 1m) or vector(0))')},{expr:'sum(max_over_time(mongodb_opcounters_getmore{namespace="'.concat(a,'",pod="').concat(r,'"}[1m]) or vector(0)) - sum(max_over_time(mongodb_opcounters_getmore{namespace="').concat(a,'",pod="').concat(r,'"}[1m] offset 1m) or vector(0))')},{expr:'sum(max_over_time(mongodb_opcounters_command{namespace="'.concat(a,'",pod="').concat(r,'"}[1m]) or vector(0)) - sum(max_over_time(mongodb_opcounters_command{namespace="').concat(a,'",pod="').concat(r,'"}[1m] offset 1m) or vector(0))')}]},{targets:[{expr:'sum(max_over_time(mongodb_opcountersRepl_insert{namespace="'.concat(a,'",pod="').concat(r,'"}[1m]) or vector(0)) - sum(max_over_time(mongodb_opcountersRepl_insert{namespace="').concat(a,'",pod="').concat(r,'"}[1m] offset 1m) or vector(0))')},{expr:'sum(max_over_time(mongodb_opcountersRepl_query{namespace="'.concat(a,'",pod="').concat(r,'"}[1m]) or vector(0)) - sum(max_over_time(mongodb_opcountersRepl_query{namespace="').concat(a,'",pod="').concat(r,'"}[1m] offset 1m) or vector(0))')},{expr:'sum(max_over_time(mongodb_opcountersRepl_update{namespace="'.concat(a,'",pod="').concat(r,'"}[1m]) or vector(0)) - sum(max_over_time(mongodb_opcountersRepl_update{namespace="').concat(a,'",pod="').concat(r,'"}[1m] offset 1m) or vector(0))')},{expr:'sum(max_over_time(mongodb_opcountersRepl_delete{namespace="'.concat(a,'",pod="').concat(r,'"}[1m]) or vector(0)) - sum(max_over_time(mongodb_opcountersRepl_delete{namespace="').concat(a,'",pod="').concat(r,'"}[1m] offset 1m) or vector(0))')},{expr:'sum(max_over_time(mongodb_opcountersRepl_getmore{namespace="'.concat(a,'",pod="').concat(r,'"}[1m]) or vector(0)) - sum(max_over_time(mongodb_opcountersRepl_getmore{namespace="').concat(a,'",pod="').concat(r,'"}[1m] offset 1m) or vector(0))')},{expr:'sum(max_over_time(mongodb_opcountersRepl_command{namespace="'.concat(a,'",pod="').concat(r,'"}[1m]) or vector(0)) - sum(max_over_time(mongodb_opcountersRepl_command{namespace="').concat(a,'",pod="').concat(r,'"}[1m] offset 1m) or vector(0))')}]},{targets:[{expr:'mongodb_connections_current{namespace="'.concat(a,'",pod="').concat(r,'"}')},{expr:'mongodb_connections_totalCreated{namespace="'.concat(a,'",pod="').concat(r,'"}')},{expr:'mongodb_connections_available{namespace="'.concat(a,'",pod="').concat(r,'"}')},{expr:'mongodb_connections_active{namespace="'.concat(a,'",pod="').concat(r,'"}')}]},{targets:[{expr:'mongodb_metrics_cursor_timedOut{namespace="'.concat(a,'",pod="').concat(r,'"}')},{expr:'mongodb_metrics_cursor_open_noTimeout{namespace="'.concat(a,'",pod="').concat(r,'"}')},{expr:'mongodb_metrics_cursor_open_pinned{namespace="'.concat(a,'",pod="').concat(r,'"}')},{expr:'mongodb_metrics_cursor_open_total{namespace="'.concat(a,'",pod="').concat(r,'"}')}]},{targets:[{expr:'mongodb_network_bytesIn{namespace="'.concat(a,'",pod="').concat(r,'"}')},{expr:'mongodb_network_bytesOut{namespace="'.concat(a,'",pod="').concat(r,'"}')}]},{targets:[{expr:'mongodb_wiredTiger_concurrentTransactions_write_out{namespace="'.concat(a,'",pod="').concat(r,'"}')},{expr:'mongodb_wiredTiger_concurrentTransactions_write_available{namespace="'.concat(a,'",pod="').concat(r,'"}')},{expr:'mongodb_wiredTiger_concurrentTransactions_read_out{namespace="'.concat(a,'",pod="').concat(r,'"}')},{expr:'mongodb_wiredTiger_concurrentTransactions_read_available{namespace="'.concat(a,'",pod="').concat(r,'"}')}]},{targets:[{expr:'mongodb_metrics_document_deleted{namespace="'.concat(a,'",pod="').concat(r,'"}')},{expr:'mongodb_metrics_document_inserted{namespace="'.concat(a,'",pod="').concat(r,'"}')},{expr:'mongodb_metrics_document_returned{namespace="'.concat(a,'",pod="').concat(r,'"}')},{expr:'mongodb_metrics_document_updated{namespace="'.concat(a,'",pod="').concat(r,'"}')}]},{targets:[{expr:'mongodb_metrics_queryExecutor_scanned{namespace="'.concat(a,'",pod="').concat(r,'"}')},{expr:'mongodb_metrics_queryExecutor_scannedObjects{namespace="'.concat(a,'",pod="').concat(r,'"}')}]},{targets:[{expr:'mongodb_globalLock_activeClients_total{namespace="'.concat(a,'",pod="').concat(r,'"}')},{expr:'mongodb_globalLock_activeClients_readers{namespace="'.concat(a,'",pod="').concat(r,'"}')},{expr:'mongodb_globalLock_activeClients_writers{namespace="'.concat(a,'",pod="').concat(r,'"}')}]},{targets:[{expr:'mongodb_globalLock_currentQueue_total{namespace="'.concat(a,'",pod="').concat(r,'"}')},{expr:'mongodb_globalLock_currentQueue_readers{namespace="'.concat(a,'",pod="').concat(r,'"}')},{expr:'mongodb_globalLock_currentQueue_writers{namespace="'.concat(a,'",pod="').concat(r,'"}')}]},{targets:[{expr:'mongodb_wiredTiger_cache_tracked_dirty_bytes_in_the_cache{namespace="'.concat(a,'",pod="').concat(r,'"} / mongodb_wiredTiger_cache_maximum_bytes_configured{namespace="').concat(a,'",pod="').concat(r,'"}')},{expr:'mongodb_wiredTiger_cache_bytes_currently_in_the_cache{namespace="'.concat(a,'",pod="').concat(r,'"} / mongodb_wiredTiger_cache_maximum_bytes_configured{namespace="').concat(a,'",pod="').concat(r,'"}')}]}]},getMonitoringCfgs:function(e){return[{title:t("OP_COUNTERS"),legend:[t("OP_INSERT"),t("OP_QUERY"),t("OP_UPDATE"),t("OP_DELETE"),t("OP_GETMORE"),t("OP_COMMAND")],data:[(0,o.default)(e,"1.data.result[0]",{}),(0,o.default)(e,"2.data.result[0]",{}),(0,o.default)(e,"3.data.result[0]",{}),(0,o.default)(e,"4.data.result[0]",{}),(0,o.default)(e,"5.data.result[0]",{}),(0,o.default)(e,"6.data.result[0]",{})]},{title:t("OPREPL_COUNTERS"),legend:[t("OPREPL_INSERT"),t("OPREPL_QUERY"),t("OPREPL_UPDATE"),t("OPREPL_DELETE"),t("OPREPL_GETMORE"),t("OPREPL_COMMAND")],data:[(0,o.default)(e,"7.data.result[0]",{}),(0,o.default)(e,"8.data.result[0]",{}),(0,o.default)(e,"9.data.result[0]",{}),(0,o.default)(e,"10.data.result[0]",{}),(0,o.default)(e,"11.data.result[0]",{}),(0,o.default)(e,"12.data.result[0]",{})]},{title:t("CONNECTIONS"),legend:[t("CONNECTIONS_CURRENT"),t("CONNECTIONS_TOTALCREATED"),t("CONNECTIONS_AVAILABLE"),t("CONNECTIONS_ACTIVE")],data:[(0,o.default)(e,"13.data.result[0]",{}),(0,o.default)(e,"14.data.result[0]",{}),(0,o.default)(e,"15.data.result[0]",{}),(0,o.default)(e,"16.data.result[0]",{})]},{title:t("CURSOR_COUNT"),legend:[t("CURSOR_TIMEDOUT"),t("CURSOR_OPEN_NOTIMEOUT"),t("CURSOR_OPEN_PINNED"),t("CURSOR_OPEN_TOTAL")],data:[(0,o.default)(e,"17.data.result[0]",{}),(0,o.default)(e,"18.data.result[0]",{}),(0,o.default)(e,"19.data.result[0]",{}),(0,o.default)(e,"20.data.result[0]",{})]},{title:t("MONGODB_NETWORK_TRAFFIC"),legend:[t("NETWORK_BYTESIN"),t("NETWORK_BYTESOUT")],unitType:"memory",data:[(0,o.default)(e,"21.data.result[0]",{}),(0,o.default)(e,"22.data.result[0]",{})]},{title:t("WIREDTIGER_OPERATION_COUNT"),legend:[t("WT_WRITE_OUT"),t("WT_WRITE_AVAILABLE"),t("WT_READ_OUT"),t("WT_READ_AVAILABLE")],data:[(0,o.default)(e,"23.data.result[0]",{}),(0,o.default)(e,"24.data.result[0]",{}),(0,o.default)(e,"25.data.result[0]",{}),(0,o.default)(e,"26.data.result[0]",{})]},{title:t("DOC_COUNT"),legend:[t("DOC_DELETED"),t("DOC_INSERTED"),t("DOC_RETURNED"),t("DOC_UPDATED")],data:[(0,o.default)(e,"27.data.result[0]",{}),(0,o.default)(e,"28.data.result[0]",{}),(0,o.default)(e,"29.data.result[0]",{}),(0,o.default)(e,"30.data.result[0]",{})]},{title:t("QUERYEXECUTOR"),legend:[t("SCANNEDKEYS"),t("SCANNEDDOCS")],data:[(0,o.default)(e,"31.data.result[0]",{}),(0,o.default)(e,"32.data.result[0]",{})]},{title:t("ACTIVECLIENTS"),legend:[t("CLIENTS_TOTAL"),t("CLIENTS_READERS"),t("CLIENTS_WRITERS")],data:[(0,o.default)(e,"33.data.result[0]",{}),(0,o.default)(e,"34.data.result[0]",{}),(0,o.default)(e,"35.data.result[0]",{})]},{title:t("QUEUED_OPERATIONS"),legend:[t("QUEUE_TOTAL"),t("QUEUE_READERS"),t("QUEUE_WRITERS")],unitType:"%",data:[(0,o.default)(e,"36.data.result[0]",{}),(0,o.default)(e,"37.data.result[0]",{}),(0,o.default)(e,"38.data.result[0]",{})]},{title:t("WIREDTIGER_CACHE"),legend:[t("WIREDTIGER_CACHE_USAGED"),t("WIREDTIGER_CACHE_DIRTY_USAGE")],unitType:"%",data:[(0,o.default)(e,"39.data.result[0]",{}),(0,o.default)(e,"40.data.result[0]",{})]}]}};a.default=c},4830:function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(16),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(5),r(16);var o=n(r(26));var c={main:{getConfig:function(e){var t=e.detail,a=t.namespace,r=t.name;return[{targets:[{expr:'sum(elasticsearch_cluster_health_task_max_waiting_in_queue_millis{service="'.concat(r,'-es-elasticsearch-exporter",namespace="').concat(a,'"})')}]},{targets:[{expr:'sum(elasticsearch_cluster_health_number_of_in_flight_fetch{service="'.concat(r,'-es-elasticsearch-exporter",namespace="').concat(a,'"})')},{expr:'sum(elasticsearch_cluster_health_number_of_pending_tasks{service="'.concat(r,'-es-elasticsearch-exporter",namespace="').concat(a,'"})')}]},{targets:[{expr:'sum(elasticsearch_cluster_health_number_of_data_nodes{service="'.concat(r,'-es-elasticsearch-exporter",namespace="').concat(a,'"})')},{expr:'sum(elasticsearch_cluster_health_number_of_nodes{service="'.concat(r,'-es-elasticsearch-exporter",namespace="').concat(a,'"})')}]},{targets:[{expr:'sum(elasticsearch_cluster_health_delayed_unassigned_shards{service="'.concat(r,'-es-elasticsearch-exporter",namespace="').concat(a,'"})')},{expr:'sum(elasticsearch_cluster_health_initializing_shards{service="'.concat(r,'-es-elasticsearch-exporter",namespace="').concat(a,'"})')},{expr:'sum(elasticsearch_cluster_health_relocating_shards{service="'.concat(r,'-es-elasticsearch-exporter",namespace="').concat(a,'"})')},{expr:'sum(elasticsearch_cluster_health_unassigned_shards{service="'.concat(r,'-es-elasticsearch-exporter",namespace="').concat(a,'"})')},{expr:'sum(elasticsearch_cluster_health_active_primary_shards{service="'.concat(r,'-es-elasticsearch-exporter",namespace="').concat(a,'"})')},{expr:'sum(elasticsearch_cluster_health_active_shards{service="'.concat(r,'-es-elasticsearch-exporter",namespace="').concat(a,'"})')}]},{targets:[{expr:'sum(elasticsearch_cluster_health_status{service="'.concat(r,'-es-elasticsearch-exporter",namespace="').concat(a,'",color="green"})')},{expr:'sum(elasticsearch_cluster_health_status{service="'.concat(r,'-es-elasticsearch-exporter",namespace="').concat(a,'",color="yellow"})')},{expr:'sum(elasticsearch_cluster_health_status{service="'.concat(r,'-es-elasticsearch-exporter",namespace="').concat(a,'",color="red"})')}]}]},getMonitoringCfgs:function(e){return[{title:t("CLUSTER_TASK_WAITING_TIME"),legend:[t("CLUSTER_TASK_WAITING_TIME")],unit:"ms",data:[(0,o.default)(e,"1.data.result[0]",{})]},{title:t("CLUSTER_TASK_STATUS"),legend:[t("CLUSTER_NUMBER_OF_IN_FLIGHT_FETCH"),t("CLUSTER_NUMBER_OF_PENDING_TASKS")],data:[(0,o.default)(e,"2.data.result[0]",{}),(0,o.default)(e,"3.data.result[0]",{})]},{title:t("CLUSTER_NUMBER_OF_NODES"),legend:[t("CLUSTER_NUMBER_OF_DATA_NODES"),t("CLUSTER_NUMBER_OF_ALL_NODES")],data:[(0,o.default)(e,"4.data.result[0]",{}),(0,o.default)(e,"5.data.result[0]",{})]},{title:t("SHARD_STATUS"),dot:2,legend:[t("CLUSTER_DELAYED_UNASSIGNED_SHARDS"),t("CLUSTER_INITIALIZING_SHARDS"),t("CLUSTER_RELOCATING_SHARDS"),t("CLUSTER_UNASSIGNED_SHARDS"),t("CLUSTER_ACTIVE_PRIMARY_SHARDS"),t("CLUSTER_ACTIVE_SHARDS")],data:[(0,o.default)(e,"6.data.result[0]"),(0,o.default)(e,"7.data.result[0]"),(0,o.default)(e,"8.data.result[0]"),(0,o.default)(e,"9.data.result[0]"),(0,o.default)(e,"10.data.result[0]"),(0,o.default)(e,"11.data.result[0]")]},{title:t("CLUSTER_HEALTH_STATUS"),legend:[t("CLUSTER_HEALTH_STATUS_GREEN"),t("CLUSTER_HEALTH_STATUS_YELLOW"),t("CLUSTER_HEALTH_STATUS_RED")],data:[(0,o.default)(e,"12.data.result[0]",{}),(0,o.default)(e,"13.data.result[0]",{}),(0,o.default)(e,"14.data.result[0]",{})]}]}},pod:{getConfig:function(e,t){var a=e.detail.namespace,r=t.name;return[{targets:[{expr:'round(elasticsearch_jvm_memory_used_bytes{namespace="'.concat(a,'",name="').concat(r,'",area="heap"}/elasticsearch_jvm_memory_max_bytes{namespace="').concat(a,'",name="').concat(r,'",area="heap"},0.001)')}]},{targets:[{expr:'round(elasticsearch_filesystem_data_available_bytes{namespace="'.concat(a,'",name="').concat(r,'"},0.1)')}]},{targets:[{expr:'round(elasticsearch_filesystem_data_free_bytes{namespace="'.concat(a,'",name="').concat(r,'"}/elasticsearch_filesystem_data_size_bytes{namespace="').concat(a,'",name="').concat(r,'"},0.001)')}]},{targets:[{expr:'(elasticsearch_os_cpu_percent{namespace="'.concat(a,'",name="').concat(r,'"}/100)')}]},{targets:[{expr:'elasticsearch_os_load1{namespace="'.concat(a,'",name="').concat(r,'"}')},{expr:'elasticsearch_os_load5{namespace="'.concat(a,'",name="').concat(r,'"}')},{expr:'elasticsearch_os_load15{namespace="'.concat(a,'",name="').concat(r,'"}')}]},{targets:[{expr:'elasticsearch_indices_docs{namespace="'.concat(a,'",name="').concat(r,'"}')},{expr:'elasticsearch_indices_docs_deleted{namespace="'.concat(a,'",name="').concat(r,'"}')}]},{targets:[{expr:'rate(elasticsearch_indices_indexing_index_total{namespace="'.concat(a,'",name="').concat(r,'"}[5m])')}]},{targets:[{expr:'rate(elasticsearch_indices_search_query_total{namespace="'.concat(a,'",name="').concat(r,'"}[5m])')}]},{targets:[{expr:'round(rate(elasticsearch_indices_indexing_index_time_seconds_total{namespace="'.concat(a,'",name="').concat(r,'"}[5m])*1000)')}]},{targets:[{expr:'round(rate(elasticsearch_indices_search_query_time_seconds{namespace="'.concat(a,'",name="').concat(r,'"}[5m])*1000)')}]}]},getMonitoringCfgs:function(e){return[{title:t("HEAP_MEMORY"),legend:[t("JVM_MEMORY_HEAP_USAGE_PER")],unit:"%",dot:"2",data:[(0,o.default)(e,"1.data.result[0]",{})]},{title:t("DATA_AVAILABLE_BYTES"),legend:[t("DATA_AVAILABLE_BYTES")],unitType:"memory",data:[(0,o.default)(e,"2.data.result[0]",{})]},{title:t("DATA_AVAILABLE_PERCENT"),legend:[t("DATA_AVAILABLE_PERCENT")],unit:"%",dot:2,data:[(0,o.default)(e,"3.data.result[0]",{})]},{title:"CPU",legend:[t("ECK_CPU_USAGE")],unit:"%",dot:2,data:[(0,o.default)(e,"4.data.result[0]",{})]},{title:t("OS_LOAD"),legend:[t("OS_LOAD1"),t("OS_LOAD5"),t("OS_LOAD15")],data:[(0,o.default)(e,"5.data.result[0]",{}),(0,o.default)(e,"6.data.result[0]",{}),(0,o.default)(e,"7.data.result[0]",{})]},{title:t("DOC_STATISTICS"),legend:[t("ELASTICSEARCH_INDICES_DOCS"),t("ELASTICSEARCH_INDICES_DOCS_DELETED")],data:[(0,o.default)(e,"8.data.result[0]",{}),(0,o.default)(e,"9.data.result[0]",{})]},{title:t("ELASTICSEARCH_INDICES_INDEXING_INDEX_QPS"),legend:[t("ELASTICSEARCH_INDICES_INDEXING_INDEX_QPS")],data:[(0,o.default)(e,"10.data.result[0]",{})]},{title:t("ELASTICSEARCH_INDICES_SEARCH_QUERY_QPS"),legend:[t("ELASTICSEARCH_INDICES_SEARCH_QUERY_QPS")],data:[(0,o.default)(e,"11.data.result[0]",{})]},{title:t("ELASTICSEARCH_INDICES_INDEXING_TIME_MS"),legend:[t("ELASTICSEARCH_INDICES_INDEXING_TIME_MS")],unit:"ms",data:[(0,o.default)(e,"12.data.result[0]",{})]},{title:t("ELASTICSEARCH_INDICES_SEARCH_TIME_MS"),legend:[t("ELASTICSEARCH_INDICES_SEARCH_TIME_MS")],unit:"ms",data:[(0,o.default)(e,"13.data.result[0]",{})]}]}}};a.default=c},4831:function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(16),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(5),r(16);var o=n(r(26));var c={main:{getConfig:function(e){var t=e.detail,a=t.namespace,r=t.name;return[{targets:[{expr:'count(kafka_server_replicamanager_leadercount{namespace="'.concat(a,'",strimzi_io_cluster="').concat(r,'",job=~"').concat(a,"/").concat(r,'.*"})')}]},{targets:[{expr:'sum(kafka_cluster_partition_underminisr{namespace="'.concat(a,'",strimzi_io_cluster="').concat(r,'",job=~"').concat(a,"/").concat(r,'.*"})')}]},{targets:[{expr:'sum(kafka_controller_kafkacontroller_offlinepartitionscount{namespace="'.concat(a,'",strimzi_io_cluster="').concat(r,'",job=~"').concat(a,"/").concat(r,'.*"})')}]},{targets:[{expr:'sum(irate(kafka_server_brokertopicmetrics_bytesin_total{namespace="'.concat(a,'",strimzi_io_cluster="').concat(r,'",job=~"').concat(a,"/").concat(r,'.*",topic!~"strimzi.cruisecontrol.modeltrainingsamples|strimzi.cruisecontrol.metrics|trainingsamples|__consumer_offsets|__strimzi-topic-operator-kstreams-topic-store-changelog|__strimzi_store_topic|strimzi.cruisecontrol.partitionmetricsamples|"}[2m]))')}]},{targets:[{expr:'sum(irate(kafka_server_brokertopicmetrics_bytesout_total{namespace="'.concat(a,'",strimzi_io_cluster="').concat(r,'",job=~"').concat(a,"/").concat(r,'.*",topic!~"strimzi.cruisecontrol.modeltrainingsamples|strimzi.cruisecontrol.metrics|trainingsamples|__consumer_offsets|__strimzi-topic-operator-kstreams-topic-store-changelog|__strimzi_store_topic|strimzi.cruisecontrol.partitionmetricsamples|"}[2m]))')}]},{targets:[{expr:'sum(irate(kafka_server_brokertopicmetrics_messagesin_total{namespace="'.concat(a,'",strimzi_io_cluster="').concat(r,'",job=~"').concat(a,"/").concat(r,'.*",topic!~"strimzi.cruisecontrol.modeltrainingsamples|strimzi.cruisecontrol.metrics|trainingsamples|__consumer_offsets|__strimzi-topic-operator-kstreams-topic-store-changelog|__strimzi_store_topic|strimzi.cruisecontrol.partitionmetricsamples|"}[2m]))')}]},{targets:[{expr:'sum(irate(kafka_server_brokertopicmetrics_totalproducerequests_total{namespace="'.concat(a,'",strimzi_io_cluster="').concat(r,'",job=~"').concat(a,"/").concat(r,'.*",topic!~"strimzi.cruisecontrol.modeltrainingsamples|strimzi.cruisecontrol.metrics|trainingsamples|__consumer_offsets|__strimzi-topic-operator-kstreams-topic-store-changelog|__strimzi_store_topic|strimzi.cruisecontrol.partitionmetricsamples|"}[2m]))')}]}]},getMonitoringCfgs:function(e){return[{title:t("ONLINE_BROKER_COUNT"),legend:[t("ONLINE_BROKER_COUNT")],data:[(0,o.default)(e,"1.data.result[0]",{})]},{title:t("PARTITIONS_UNDER_MINIMUM_ISR"),legend:[t("PARTITIONS_UNDER_MINIMUM_ISR")],data:[(0,o.default)(e,"2.data.result[0]",{})]},{title:t("OFFLINE_PARTITION_COUNT"),legend:[t("OFFLINE_PARTITION_COUNT")],data:[(0,o.default)(e,"3.data.result[0]",{})]},{title:t("TOPIC_INCOMING_DATA_RATE"),legend:[t("TOPIC_INCOMING_DATA_RATE")],unitType:"traffic",data:[(0,o.default)(e,"4.data.result[0]")]},{title:t("TOPIC_OUTGOING_DATA_RATE"),legend:[t("TOPIC_OUTGOING_DATA_RATE")],unitType:"traffic",data:[(0,o.default)(e,"5.data.result[0]",{})]},{title:t("TOPIC_INCOMING_MESSAGE_RATE"),legend:[t("TOPIC_INCOMING_MESSAGE_RATE")],data:[(0,o.default)(e,"6.data.result[0]",{})]},{title:t("TOPIC_OUTGOING_MESSAGE_RATE"),legend:[t("TOPIC_OUTGOING_MESSAGE_RATE")],data:[(0,o.default)(e,"7.data.result[0]",{})]}]}},pod:{getConfig:function(e,t){var a=e.detail,r=a.namespace,n=a.name,o=t.name;return[{targets:[{expr:'kafka_network_socketserver_networkprocessoravgidle_percent{namespace="'.concat(r,'",strimzi_io_cluster="').concat(n,'",job=~"').concat(r,"/").concat(n,'.*",kubernetes_pod_name=~"').concat(o,'"}')}]},{targets:[{expr:'irate(kafka_server_kafkaserver_linux_disk_write_bytes{namespace="'.concat(r,'",strimzi_io_cluster="').concat(n,'",job=~"').concat(r,"/").concat(n,'.*",kubernetes_pod_name=~"').concat(o,'"}[2m])')}]},{targets:[{expr:'irate(kafka_server_kafkaserver_linux_disk_read_bytes{namespace="'.concat(r,'",strimzi_io_cluster="').concat(n,'",job=~"').concat(r,"/").concat(n,'.*",kubernetes_pod_name=~"').concat(o,'"}[2m])')}]},{targets:[{expr:'sum(container_memory_usage_bytes{namespace="'.concat(r,'",pod=~"').concat(o,'",container="kafka"}) by (pod)')}]},{targets:[{expr:'sum(rate(container_cpu_usage_seconds_total{namespace="'.concat(r,'",pod=~"').concat(o,'",container="kafka"}[5m])) by (pod)')}]},{targets:[{expr:'process_open_fds{namespace="'.concat(r,'",pod=~"').concat(o,'",job=~"').concat(r,"/").concat(n,'.*",container="kafka"}')}]},{targets:[{expr:'sum(jvm_memory_bytes_used{namespace="'.concat(r,'",kubernetes_pod_name=~"').concat(o,'",strimzi_io_name="').concat(n,'-kafka",job=~".*').concat(n,'.*"}) by (kubernetes_pod_name)')}]},{targets:[{expr:'jvm_threads_current{namespace="'.concat(r,'",kubernetes_pod_name=~"').concat(o,'",strimzi_io_name="').concat(n,'-kafka",job=~".*').concat(n,'.*"}')}]},{targets:[{expr:'kubelet_volume_stats_available_bytes{namespace="'.concat(r,'",persistentvolumeclaim=~"data-0-').concat(n,'-kafka-0"}')}]}]},getMonitoringCfgs:function(e){return[{title:t("NETWORK_PROCESSOR_AVG_IDLE_PERCENT"),legend:[t("NETWORK_PROCESSOR_AVG_IDLE_PERCENT")],unit:"%",dot:2,data:[(0,o.default)(e,"1.data.result[0]",{})]},{title:t("DISK_WRITES"),legend:[t("DISK_WRITES")],unitType:"traffic",data:[(0,o.default)(e,"2.data.result[0]",{})]},{title:t("DISK_READS"),legend:[t("DISK_READS")],unitType:"traffic",data:[(0,o.default)(e,"3.data.result[0]",{})]},{title:t("KAFKA_MEMORY_USAGE"),legend:[t("KAFKA_MEMORY_USAGE")],unitType:"memory",data:[(0,o.default)(e,"4.data.result[0]")]},{title:t("KAFKA_CPU_USAGE"),legend:[t("KAFKA_CPU_USAGE")],data:[(0,o.default)(e,"5.data.result[0]",{})]},{title:t("KAFKA_OPEN_FILE_DESC"),legend:[t("KAFKA_OPEN_FILE_DESC")],data:[(0,o.default)(e,"6.data.result[0]",{})]},{title:t("JVM_MEMORY_USAGE"),legend:[t("JVM_MEMORY_USAGE")],unitType:"memory",data:[(0,o.default)(e,"7.data.result[0]",{})]},{title:t("JVM_THREAD_COUNT"),legend:[t("JVM_THREAD_COUNT")],data:[(0,o.default)(e,"8.data.result[0]",{})]},{title:t("AVAILABLE_DISK_SPACE"),legend:[t("AVAILABLE_DISK_SPACE")],unitType:"memory",data:[(0,o.default)(e,"9.data.result[0]",{})]}]}}};a.default=c},4832:function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(48),r(16),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(5),r(48),r(16);var o=n(r(26));var c={main:{getConfig:function(e){var t=e.detail,a=t.namespace,r=t.name;return[{targets:[{expr:'max(zookeeper_quorumsize{namespace="'.concat(a,'",strimzi_io_cluster="').concat(r,'",job=~"').concat(a,"/").concat(r,'.*",strimzi_io_kind="Kafka"})')}]},{targets:[{expr:'avg(zookeeper_inmemorydatatree_nodecount{namespace="'.concat(a,'",strimzi_io_cluster="').concat(r,'",job=~"').concat(a,"/").concat(r,'.*",strimzi_io_kind="Kafka"})')}]},{targets:[{expr:'sum(zookeeper_numaliveconnections{namespace="'.concat(a,'",strimzi_io_cluster="').concat(r,'",job=~"').concat(a,"/").concat(r,'.*",strimzi_io_kind="Kafka"})')}]},{targets:[{expr:'sum(zookeeper_inmemorydatatree_watchcount{namespace="'.concat(a,'",strimzi_io_cluster="').concat(r,'",job=~"').concat(a,"/").concat(r,'.*",strimzi_io_kind="Kafka"})')}]}]},getMonitoringCfgs:function(e){return[{title:t("QUORUM_SIZE"),legend:[t("QUORUM_SIZE")],data:[(0,o.default)(e,"1.data.result[0]",{})]},{title:t("ZNODE_COUNT"),legend:[t("ZNODE_COUNT")],data:[(0,o.default)(e,"2.data.result[0]",{})]},{title:t("ACTIVE_CONNECTIONS"),legend:[t("ACTIVE_CONNECTIONS")],data:[(0,o.default)(e,"3.data.result[0]",{})]},{title:t("WATCHER_COUNT"),legend:[t("WATCHER_COUNT")],data:[(0,o.default)(e,"4.data.result[0]")]}]}},pod:{getConfig:function(e,t){var a=e.detail,r=a.namespace,n=a.name,o=t.name;return[{targets:[{expr:'sum(container_memory_usage_bytes{namespace="'.concat(r,'",pod=~"').concat(o,'",container="zookeeper"}) by (pod)')}]},{targets:[{expr:'sum(rate(container_cpu_usage_seconds_total{namespace="'.concat(r,'",pod=~"').concat(o,'",container="zookeeper"}[5m])) by (pod)')}]},{targets:[{expr:'process_open_fds{namespace="'.concat(r,'",pod=~"').concat(o,'",job=~"').concat(r,"/").concat(n,'.*",container="zookeeper"}')}]},{targets:[{expr:'jvm_threads_current{namespace="'.concat(r,'",kubernetes_pod_name=~"').concat(o,'",strimzi_io_name="').concat(n,'-zookeeper",job=~".*').concat(n,'.*"}')}]},{targets:[{expr:'sum(jvm_memory_bytes_used{namespace="'.concat(r,'",kubernetes_pod_name=~"').concat(o,'",strimzi_io_name="').concat(n,'-zookeeper",job=~".*').concat(n,'.*"}) by (kubernetes_pod_name)')}]},{targets:[{expr:'zookeeper_avgrequestlatency{namespace="'.concat(r,'",job=~"').concat(r,"/").concat(n,'.*",kubernetes_pod_name=~"').concat(o,'"}')}]},{targets:[{expr:'zookeeper_maxrequestlatency{namespace="'.concat(r,'",job=~"').concat(r,"/").concat(n,'.*",kubernetes_pod_name=~"').concat(o,'"}')}]},{targets:[{expr:'kubelet_volume_stats_available_bytes{namespace="'.concat(r,'",persistentvolumeclaim=~"data-').concat(n,"-zookeeper-").concat(o.slice(-1),'"}')}]}]},getMonitoringCfgs:function(e){return[{title:t("ZOOKEEPER_MEMORY_USAGE"),legend:[t("ZOOKEEPER_MEMORY_USAGE")],unitType:"memory",data:[(0,o.default)(e,"1.data.result[0]",{})]},{title:t("ZOOKEEPER_CPU_USAGE"),legend:[t("ZOOKEEPER_CPU_USAGE")],data:[(0,o.default)(e,"2.data.result[0]",{})]},{title:t("OPEN_FILE_DESCRIPTORS"),legend:[t("OPEN_FILE_DESCRIPTORS")],data:[(0,o.default)(e,"3.data.result[0]",{})]},{title:t("JVM_THREAD_COUNT"),legend:[t("JVM_THREAD_COUNT")],data:[(0,o.default)(e,"4.data.result[0]")]},{title:t("JVM_MEMORY_USAGE"),legend:[t("JVM_MEMORY_USAGE")],unitType:"memory",data:[(0,o.default)(e,"5.data.result[0]",{})]},{title:t("REQUEST_LATENCY_AVERAGE"),legend:[t("REQUEST_LATENCY_AVERAGE")],unitType:"second",data:[(0,o.default)(e,"6.data.result[0]",{})]},{title:t("REQUEST_LATENCY_MAXIMUM"),legend:[t("REQUEST_LATENCY_MAXIMUM")],unitType:"second",data:[(0,o.default)(e,"7.data.result[0]",{})]},{title:t("AVAILABLE_DISK_SPACE"),legend:[t("AVAILABLE_DISK_SPACE")],unitType:"memory",data:[(0,o.default)(e,"8.data.result[0]",{})]}]}}};a.default=c},4833:function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(16),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(5),r(16);var o=n(r(26));var c={main:{getConfig:function(e){var t=e.detail,a=t.namespace,r=t.name;return[{targets:[{expr:'opensearch_cluster_task_max_waiting_time_seconds{namespace="'.concat(a,'",pod="').concat(r,'-masters-0"}')}]},{targets:[{expr:'opensearch_cluster_inflight_fetch_number{namespace="'.concat(a,'",pod="').concat(r,'-masters-0"}')},{expr:'opensearch_cluster_pending_tasks_number{namespace="'.concat(a,'",pod="').concat(r,'-masters-0"}')}]},{targets:[{expr:'opensearch_cluster_datanodes_number{namespace="'.concat(a,'",pod="').concat(r,'-masters-0"}')},{expr:'opensearch_cluster_nodes_number{namespace="'.concat(a,'",pod="').concat(r,'-masters-0"}')}]},{targets:[{expr:'round(opensearch_cluster_shards_active_percent{namespace="'.concat(a,'",pod="').concat(r,'-masters-0"} / 100, 0.01)')}]},{targets:[{expr:'opensearch_cluster_shards_number{namespace="'.concat(a,'",pod="').concat(r,'-masters-0",type="initializing"}')},{expr:'opensearch_cluster_shards_number{namespace="'.concat(a,'",pod="').concat(r,'-masters-0",type="relocating"}')},{expr:'opensearch_cluster_shards_number{namespace="'.concat(a,'",pod="').concat(r,'-masters-0",type="unassigned"}')},{expr:'opensearch_cluster_shards_number{namespace="'.concat(a,'",pod="').concat(r,'-masters-0",type="active_primary"}')},{expr:'opensearch_cluster_shards_number{namespace="'.concat(a,'",pod="').concat(r,'-masters-0",type="active"}')}]},{targets:[{expr:'opensearch_cluster_status{namespace="'.concat(a,'",pod="').concat(r,'-masters-0"}')}]}]},getMonitoringCfgs:function(e){return[{title:t("CLUSTER_TASK_WAITING_TIME"),legend:[t("CLUSTER_TASK_WAITING_TIME")],unit:"s",data:[(0,o.default)(e,"1.data.result[0]",{})]},{title:t("CLUSTER_TASK_STATUS"),legend:[t("CLUSTER_NUMBER_OF_IN_FLIGHT_FETCH"),t("CLUSTER_NUMBER_OF_PENDING_TASKS")],data:[(0,o.default)(e,"2.data.result[0]",{}),(0,o.default)(e,"3.data.result[0]",{})]},{title:t("CLUSTER_NUMBER_OF_NODES"),legend:[t("CLUSTER_NUMBER_OF_DATA_NODES"),t("CLUSTER_NUMBER_OF_ALL_NODES")],data:[(0,o.default)(e,"4.data.result[0]",{}),(0,o.default)(e,"5.data.result[0]",{})]},{title:t("CLUSTER_SHARDS_ACTIVE_PERCENT"),legend:[t("CLUSTER_SHARDS_ACTIVE_PERCENT")],unit:"%",dot:2,data:[(0,o.default)(e,"6.data.result[0]",{})]},{title:t("SHARD_STATUS"),legend:[t("CLUSTER_INITIALIZING_SHARDS"),t("CLUSTER_RELOCATING_SHARDS"),t("CLUSTER_UNASSIGNED_SHARDS"),t("CLUSTER_ACTIVE_PRIMARY_SHARDS"),t("CLUSTER_ACTIVE_SHARDS")],data:[(0,o.default)(e,"7.data.result[0]",{}),(0,o.default)(e,"8.data.result[0]",{}),(0,o.default)(e,"9.data.result[0]",{}),(0,o.default)(e,"10.data.result[0]",{}),(0,o.default)(e,"11.data.result[0]",{})]},{title:t("CLUSTER_HEALTH_STATUS"),legend:[t("CLUSTER_HEALTH_STATUS")],data:[(0,o.default)(e,"12.data.result[0]",{})]}]}},pod:{getConfig:function(e,t){var a=e.detail.namespace,r=t.name;return[{targets:[{expr:'round(opensearch_jvm_mem_heap_used_percent{namespace="'.concat(a,'",pod="').concat(r,'"} / 100, 0.01)')}]},{targets:[{expr:'round(opensearch_fs_total_available_bytes{namespace="'.concat(a,'",pod="').concat(r,'"})')}]},{targets:[{expr:'opensearch_fs_total_available_bytes{namespace="'.concat(a,'",pod="').concat(r,'"}/opensearch_fs_total_total_bytes{namespace="').concat(a,'",pod="').concat(r,'"}')}]},{targets:[{expr:'round(opensearch_os_cpu_percent{namespace="'.concat(a,'",pod="').concat(r,'"} /100, 0.01)')}]},{targets:[{expr:'opensearch_os_load_average_one_minute{namespace="'.concat(a,'",pod="').concat(r,'"}')},{expr:'opensearch_os_load_average_five_minutes{namespace="'.concat(a,'",pod="').concat(r,'"}')},{expr:'opensearch_os_load_average_fifteen_minutes{namespace="'.concat(a,'",pod="').concat(r,'"}')}]},{targets:[{expr:'opensearch_indices_doc_number{namespace="'.concat(a,'",pod="').concat(r,'"}')},{expr:'opensearch_indices_doc_deleted_number{namespace="'.concat(a,'",pod="').concat(r,'"}')}]},{targets:[{expr:'opensearch_indices_indexing_index_current_number{namespace="'.concat(a,'", pod="').concat(r,'"}')}]},{targets:[{expr:'opensearch_indices_search_query_current_number{namespace="'.concat(a,'", pod="').concat(r,'"}')}]},{targets:[{expr:'delta(opensearch_indices_indexing_index_time_seconds{namespace="'.concat(a,'", pod="').concat(r,'"}[5m])')}]},{targets:[{expr:'delta(opensearch_indices_search_query_time_seconds{namespace="'.concat(a,'", pod="').concat(r,'"}[5m])')}]}]},getMonitoringCfgs:function(e){return[{title:t("HEAP_MEMORY"),legend:[t("JVM_MEMORY_HEAP_USAGE_PER")],unit:"%",dot:2,data:[(0,o.default)(e,"1.data.result[0]",{})]},{title:t("DATA_AVAILABLE_BYTES"),legend:[t("DATA_AVAILABLE_BYTES")],unitType:"memory",data:[(0,o.default)(e,"2.data.result[0]",{})]},{title:t("DATA_AVAILABLE_PERCENT"),legend:[t("DATA_AVAILABLE_PERCENT")],unit:"%",dot:2,data:[(0,o.default)(e,"3.data.result[0]",{})]},{title:"CPU",legend:[t("ECK_CPU_USAGE")],unit:"%",dot:2,data:[(0,o.default)(e,"4.data.result[0]",{})]},{title:t("OS_LOAD"),legend:[t("OS_LOAD1"),t("OS_LOAD5"),t("OS_LOAD15")],data:[(0,o.default)(e,"5.data.result[0]",{}),(0,o.default)(e,"6.data.result[0]",{}),(0,o.default)(e,"7.data.result[0]",{})]},{title:t("DOC_STATISTICS"),legend:[t("ELASTICSEARCH_INDICES_DOCS"),t("ELASTICSEARCH_INDICES_DOCS_DELETED")],data:[(0,o.default)(e,"8.data.result[0]",{}),(0,o.default)(e,"9.data.result[0]",{})]},{title:t("ELASTICSEARCH_INDICES_INDEXING_INDEX_QPS"),legend:[t("ELASTICSEARCH_INDICES_INDEXING_INDEX_QPS")],data:[(0,o.default)(e,"10.data.result[0]",{})]},{title:t("ELASTICSEARCH_INDICES_SEARCH_QUERY_QPS"),legend:[t("ELASTICSEARCH_INDICES_SEARCH_QUERY_QPS")],data:[(0,o.default)(e,"11.data.result[0]",{})]},{title:t("ELASTICSEARCH_INDICES_INDEXING_TIME_MS"),legend:[t("ELASTICSEARCH_INDICES_INDEXING_TIME_MS")],unit:"s",data:[(0,o.default)(e,"12.data.result[0]",{})]},{title:t("ELASTICSEARCH_INDICES_SEARCH_TIME_MS"),legend:[t("ELASTICSEARCH_INDICES_SEARCH_TIME_MS")],unit:"s",data:[(0,o.default)(e,"13.data.result[0]",{})]}]}},logstash:{getConfig:function(e,t){var a=e.detail.namespace,r=t.name;return[{targets:[{expr:'logstash_stats_jvm_mem_heap_used_bytes{namespace="'.concat(a,'",pod="').concat(r,'"}/logstash_stats_jvm_mem_heap_max_bytes{namespace="').concat(a,'",pod="').concat(r,'"}')}]},{targets:[{expr:'logstash_stats_process_cpu_percent{namespace="'.concat(a,'",pod="').concat(r,'"}*0.01')}]},{targets:[{expr:'logstash_stats_process_cpu_load_average_1m{namespace="'.concat(a,'",pod="').concat(r,'"}')},{expr:'logstash_stats_process_cpu_load_average_5m{namespace="'.concat(a,'",pod="').concat(r,'"}')},{expr:'logstash_stats_process_cpu_load_average_15m{namespace="'.concat(a,'",pod="').concat(r,'"}')}]},{targets:[{expr:'rate(logstash_stats_events_in{namespace="'.concat(a,'",pod="').concat(r,'"}[2m])')},{expr:'rate(logstash_stats_events_filtered{namespace="'.concat(a,'",pod="').concat(r,'"}[2m])')},{expr:'rate(logstash_stats_events_out{namespace="'.concat(a,'",pod="').concat(r,'"}[2m])')}]},{targets:[{expr:'logstash_stats_queue_events_count{namespace="'.concat(a,'",pod="').concat(r,'"}')}]},{targets:[{expr:'logstash_stats_jvm_threads_count{namespace="'.concat(a,'",pod="').concat(r,'"}')}]}]},getMonitoringCfgs:function(e){return[{title:t("OPENSEARCH_HEAP_MEMORY"),legend:[t("OPENSEARCH_HEAP_MEMORY_PER")],unit:"%",dot:2,data:[(0,o.default)(e,"1.data.result[0]",{})]},{title:t("OPENSEARCH_CPU_USAGE"),legend:[t("OPENSEARCH_CPU_USAGE_PER")],unit:"%",dot:2,data:[(0,o.default)(e,"2.data.result[0]",{})]},{title:t("CPU_LOAD"),legend:[t("CPU_LOAD1"),t("CPU_LOAD5"),t("CPU_LOAD15")],data:[(0,o.default)(e,"3.data.result[0]",{}),(0,o.default)(e,"4.data.result[0]",{}),(0,o.default)(e,"5.data.result[0]",{})]},{title:t("EVENTS_STATISTICS"),legend:[t("IN_EVENTS_STATISTICS"),t("FILTERED_EVENTS_STATISTICS"),t("OUT_EVENTS_STATISTICS")],data:[(0,o.default)(e,"6.data.result[0]",{}),(0,o.default)(e,"7.data.result[0]",{}),(0,o.default)(e,"8.data.result[0]",{})]},{title:t("QUEUE_EVENTS_COUNT"),legend:[t("QUEUE_EVENTS_COUNT")],data:[(0,o.default)(e,"9.data.result[0]",{})]},{title:t("JVM_THREADS_COUNT"),legend:[t("JVM_THREADS_COUNT")],data:[(0,o.default)(e,"10.data.result[0]",{})]}]}}};a.default=c},4834:function(e,t,a){e.exports={button:"_22FIaIAalrDvw6HPWCx4Ev",pieChartZone:"_1rJo533Xe-a4cxKBg2vbTM",pieChartCompose:"aBgq2MYPWuFtdzADvOyTZ"}},4835:function(e,t,a){"use strict";a(15);var r=a(20);a(5),Object.defineProperty(t,"__esModule",{value:!0}),t.mergerValues=void 0;var n=r(a(61));a(5),a(160);var o=r(a(4836)),c=r(a(4852)),s=r(a(135)),l=r(a(4853)),i=r(a(806));t.mergerValues=function(e){var t=(0,s.default)(e);return(0,o.default)(c.default,(function(e,t){return Array.isArray(e)?(0,l.default)(e.concat(t),i.default):e})).apply(void 0,(0,n.default)(t))}},4854:function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(84),r(16),r(4),r(23),r(24),r(17),r(85),r(62),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(84),r(42),r(16),r(4),r(23),r(57),r(24),r(17),r(85),r(62);var o,c,s,l=n(r(36)),i=n(r(37)),u=n(r(55)),d=n(r(56)),f=n(r(51)),p=n(r(0)),m=n(r(1)),h=r(186),v=r(433),g=n(r(790)),_=n(r(795)),y=n(r(836)),E=n(r(804)),b=r(52),S=r(434),O=r(791),R=r(815),A=n(r(1972));function k(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,f.default)(e);if(t){var n=(0,f.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,d.default)(this,a)}}var T=(0,O.trigger)(o=(0,v.withRouter)((s=c=function(e){(0,u.default)(r,e);var a=k(r);function r(){return(0,l.default)(this,r),a.apply(this,arguments)}return(0,i.default)(r,[{key:"getDescription",value:function(e){var a=(0,S.getWorkloadStatus)(e,e.module),r=a.status,n=a.reason;if(n)return p.default.createElement(E.default,{status:r,reason:t(n),data:e});var o=e.updateTime,c=e.createTime;return o?t("CREATED_AGO",{diff:(0,b.getLocalTime)(o).fromNow()}):t("CREATED_AGO",{diff:(0,b.getLocalTime)(c).fromNow()})}},{key:"render",value:function(){var e=this.props,a=e.detail,r=e.switchShowMonitor,n=e.app_id;if(!a)return null;var o=a.roleText,c=a.spec.cpu?a.spec.cpu.includes("m")?a.spec.cpu:"".concat(a.spec.cpu,"Core"):"-",s=a.status;return p.default.createElement(v.Link,{to:"".concat(this.prefix,"/").concat(a.name)},p.default.createElement("div",{className:A.default.item},p.default.createElement(g.default,{icon:"pod",title:a.name,description:this.getDescription({createTime:a.creationTimestamp})}),p.default.createElement(g.default,{title:p.default.createElement(_.default,{type:s,name:t(String(s).toUpperCase()),flicker:!0}),description:t("STATUS")}),p.default.createElement(g.default,{title:a.ip,description:t("POD_IP_ADDRESS_SCAP")}),n!==R.RadonDBAppId.ClickHouse&&p.default.createElement(g.default,{title:o,description:t("TYPE")}),p.default.createElement(g.default,{title:"".concat(c," ").concat(a.spec.memory),description:t("RESOURCES")}),p.default.createElement(g.default,{title:a.capacity,description:t("CAPACITY")}),a.noMonitoring?p.default.createElement("div",{className:A.default["monitor-btn"]}):p.default.createElement(g.default,{className:A.default["monitor-btn"],title:p.default.createElement(h.Button,{type:"flat",onClick:r},p.default.createElement(y.default,{src:"/assets/cloudsat.svg",iconSize:16}))})))}},{key:"prefix",get:function(){var e=this.props.match.params,t=e.workspace,a=e.cluster,r=e.namespace,n="/clusters/".concat(a,"/projects/").concat(r,"/pods");return t?"/".concat(t).concat(n):n}}]),r}(p.default.PureComponent),c.propTypes={className:m.default.string,detail:m.default.object,switchShowMonitor:m.default.func,deleteNode:m.default.func,app_id:m.default.string},c.defaultProps={detail:{}},o=s))||o)||o;a.default=T},4855:function(e,t,a){e.exports={overview:"_1fnEV5GTezTAO2J1NJCFKq",title:"_1guWoWd8H4DWntBkj9A5Ug",info:"_2j1zlhy-uQmfOtcORtrmV4",card:"SLCjWxnBFeiGgClaPx_D9",detail:"_1rmZebXPUOrP7hDWV7mYRf",label:"_3eI23drWQTHTOW8EZuzaRM",desc:"_3BhV772zHxeTa7HYP3bXsR"}},4856:function(e,a,r){"use strict";var n=r(20),o=r(157);r(12),r(5),r(11),r(6),r(29),r(18),r(16),r(9),r(13),r(10),r(4),r(23),r(24),r(17),r(38),r(62),r(1973),r(7),r(32),r(1244),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var c=n(r(43));r(41);var s=n(r(44)),l=n(r(315)),i=n(r(30)),u=n(r(36)),d=n(r(37)),f=n(r(55)),p=n(r(56)),m=n(r(51));r(12),r(45),r(5),r(11),r(6),r(29),r(18),r(28),r(42),r(16),r(34),r(15),r(9),r(13),r(10),r(4),r(22),r(23),r(57),r(24),r(17),r(38),r(62),r(1079),r(1973),r(7),r(32),r(1244),r(1921),r(1922),r(1923),r(1924),r(1925);var h,v=n(r(0)),g=n(r(26)),_=n(r(4857)),y=r(186),E=n(r(240)),b=n(r(1024)),S=o(r(793)),O=n(r(796)),R=n(r(4858)),A=n(r(1974)),k=r(1245),T=r(815),D=n(r(4859));function C(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function P(e){for(var t=1;t1?"s":""))}}];default:return r}},e.createAccount=function(){var a=P(P(P({},e.props.match.params),e.props.query),{},{app_id:e.props.detailStore.detail.app_id});return e.props.trigger("openpitrix.db.createAccount",P({icon:"human",title:t("CREATE_USER"),action:e.props.store.add,content:"".concat(t("CREATE_SUCCESSFUL")),nameReplicationValidator:e.props.store.checkUserName,authentication:e.props.detailStore.detail.authentication},a))},e.getData=function(t){var a=e.props.match.params.id;e.props.getData(P(P({},t),{},{cluster_id:a}))},e}return(0,d.default)(r,[{key:"getTableProps",value:function(){var e=this,a=this.props,r=a.tableProps,n=a.detailStore.detail,o=n.isRunning,c=n.authentication,s=n.app_id,l=[{key:"deploy",type:"control",text:t("CREATE"),action:"create",forbidden:!o,onClick:this.createAccount}];o||(l[0].tooltip={message:t("USERCREATION_NOT_ALLOWED"),placement:"bottom"});var i={key:"delete",type:"danger",text:t("DELETE"),action:"delete",onClick:function(){var a=r.data.filter((function(e){return e.root}));(0,_.default)(a,r.selectedRowKeys.map((function(e){return{name:e}})),"name").length>0?E.default.warning({content:t("CANNOT_DELETE_ROOT_USER")}):e.props.trigger("resource.batch.delete",P(P(P({once:!0,type:"USER",rowKey:r.rowKey},e.props.match.params),e.props.query),{},{success:function(){return e.getData(P(P({},e.props.match.params),e.props.query))}}))}};return{tableActions:P(P({},r.tableActions),{},{selectActions:o?[i]:[],actions:s!==T.RadonDBAppId.Kafka||c?l:[],onCreate:null}),emptyProps:{icon:"human",desc:s===T.RadonDBAppId.Kafka?c?t("KAFKA_NO_USER_DESC"):t("NO_AUTHENTICATION_DESC"):t("DATABASE_USERS_EMPTY_DESC")},searchType:"keyword"}}},{key:"componentWillUnmount",value:function(){this.props.store.clear()}},{key:"render",value:function(){var e=this.props.tableProps;return v.default.createElement("div",{className:D.default.account},v.default.createElement(S.ListPage,(0,l.default)({},this.props,{getData:this.getData,noWatch:!0}),v.default.createElement(O.default,(0,l.default)({},e,this.getTableProps(),{itemActions:this.itemActions,columns:this.getColumns(),alwaysUpdate:!0}))))}},{key:"itemActions",get:function(){var e=this,a=this.props,r=a.trigger,n=a.detailStore,o=a.store,l=n.detail,i=l.app_id,u=l.authentication;if(!n.detail.isRunning||i===T.RadonDBAppId.Kafka&&!u)return[];var d=P(P(P({},this.props.match.params),this.props.query),{},{app_id:i});return[{key:"edit",icon:"pen",text:t("EDIT"),action:"edit",onClick:function(e){var a;r("openpitrix.db.createAccount",P({detail:e,title:t("EDIT_USER"),action:(a=(0,s.default)(c.default.mark((function a(r){return c.default.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:if(!e.root){a.next=3;break}return E.default.warning({content:t("CANNOT_EDIT_ROOT_USER")}),a.abrupt("return");case 3:return a.next=5,o.edit(r);case 5:case"end":return a.stop()}}),a)}))),function(e){return a.apply(this,arguments)}),content:e.root?"":"".concat(t("MODIFY_SUCCESSFUL")),nameReplicationValidator:o.checkUserName,authentication:u},d))}},{key:"delete",icon:"trash",text:t("DELETE"),action:"delete",onClick:function(a){a.root?E.default.warning({content:t("CANNOT_DELETE_ROOT_USER")}):r("resource.delete",{type:"USER",title:t("DELETE_USER"),detail:P(P({},a),d),store:e.props.store})}}]}}]),r}(v.default.Component))||h;a.default=w},4858:function(e,t,a){"use strict";var r=a(20);a(12),a(5),a(11),a(31),a(197),a(6),a(84),a(29),a(73),a(18),a(48),a(192),a(16),a(137),a(9),a(13),a(10),a(4),a(22),a(23),a(24),a(17),a(111),a(85),a(38),a(64),a(136),a(818),a(7),a(32),a(110),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(12),a(45),a(5),a(11),a(31),a(197),a(6),a(84),a(29),a(73),a(18),a(28),a(48),a(192),a(859),a(191),a(42),a(16),a(159),a(137),a(34),a(15),a(9),a(13),a(10),a(4),a(22),a(23),a(57),a(24),a(17),a(111),a(85),a(38),a(64),a(818),a(1429),a(7),a(32),a(1430),a(1431),a(1432),a(110);var n=r(a(58)),o=r(a(43));a(41);var c,s,l,i,u,d,f,p=r(a(44)),m=r(a(61)),h=r(a(30)),v=r(a(65)),g=r(a(36)),_=r(a(37)),y=r(a(88)),E=r(a(55)),b=r(a(56)),S=r(a(51)),O=r(a(49)),R=(r(a(66)),a(14)),A=r(a(26)),k=r(a(63)),T=r(a(457)),D=r(a(74)),C=r(a(242)),P=r(a(68)),N=a(440),I=a(52),w=a(815),x=a(1015),M=a(1093);function L(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function j(e){for(var t=1;t50)){o.next=12;break}return clearInterval(r),o.next=9,e.deleteMySQLUser({cluster:n,namespace:s,cluster_id:c,users:[l]});case 9:a({message:"Create Failed"}),o.next=13;break;case 12:"True"===d&&(clearInterval(r),t());case 13:case"end":return o.stop()}}),i)}))),200)}));case 25:case"end":return t.stop()}}),t)})));return function(e,a){return t.apply(this,arguments)}}(),e.deleteMySQLUser=function(){var t=(0,p.default)(o.default.mark((function t(a){var r,n,c,s,l,i;return o.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=a.cluster,n=a.namespace,c=a.cluster_id,s=a.users,l=[],i=[],s.forEach((function(t){l.push(request.delete("".concat(e.getMysqlUsersUrl(r,n),"/").concat(c,"---").concat(e.userNameToMetadataName(t.name)))),i.push(t.name)})),t.next=6,Promise.all(l);case 6:return t.next=8,e.deleteMySQLSecret({cluster:r,namespace:n,cluster_id:c,secretKeys:i});case 8:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),e.editMySQLUser=function(){var t=(0,p.default)(o.default.mark((function t(a){var r,n,c,s,l;return o.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=a.cluster,n=a.cluster_id,c=a.namespace,s=a.user,l=a.oldUser,t.next=3,e.deleteMySQLUser({cluster:r,cluster_id:n,namespace:c,users:[l]});case 3:return t.next=5,e.addMySQLUser({cluster:r,cluster_id:n,namespace:c,user:s});case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),e.getRedisUserList=function(){var t=(0,p.default)(o.default.mark((function t(a){var r,n;return o.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,request.get(e.getRedisUsersUrl(a));case 2:return r=t.sent,n=(0,A.default)(r,'data["aclfile.conf"]',""),t.abrupt("return",e.getUsersFromRedisText(n));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),e}return(0,_.default)(P,[{key:"updateList",value:(O=(0,p.default)(o.default.mark((function e(t){var a,r,n,c,s,l,i,u,d,f,p=arguments;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:a=p.length>1&&void 0!==p[1]?p[1]:{},r=JSON.parse(t.customResource),n=a.page,c=void 0===n?1:n,s=a.limit,l=void 0===s?10:s,i=a.keyword,u=a.namespace,this.app_id=(0,w.getAppIdByKind)(r.kind),d=[],e.t0=this.app_id,e.next=e.t0===w.RadonDBAppId.ClickHouse?8:e.t0===w.RadonDBAppId.PostgreSQL?11:e.t0===w.RadonDBAppId.MySQL?13:e.t0===w.RadonDBAppId.RedisCluster||e.t0===w.RadonDBAppId.RedisSentinel?17:e.t0===w.RadonDBAppId.Kafka?21:25;break;case 8:return f=(0,A.default)(r,"spec.configuration.users",{}),d=Object.keys(f).filter((function(e){return e.endsWith("/password")})).map((function(e){var t=e.replace("/password","");return{name:t,password:f[e],ip:(0,A.default)(f,"".concat(t,"/networks/ip.[0]")),network:(0,A.default)(f,"".concat(t,"/networks/ip.[1]")),namespace:u}})),e.abrupt("break",26);case 11:return d=this.getPGUsersFromYaml(r),e.abrupt("break",26);case 13:return e.next=15,this.getMySQLUserList(a);case 15:return d=e.sent,e.abrupt("break",26);case 17:return e.next=19,this.getRedisUserList(a);case 19:return d=e.sent,e.abrupt("break",26);case 21:return e.next=23,this.getKafkaUserList(a);case 23:return d=e.sent,e.abrupt("break",26);case 25:return e.abrupt("break",26);case 26:this.allUsers=d.slice(),i&&(d=d.filter((function(e){return e.name.includes(i)}))),Object.assign(this.list,{data:d.slice((c-1)*l,c*l),total:d.length,isLoading:!1,limit:l,page:c,filters:i?{keyword:i}:{},selectedRowKeys:[]});case 29:case"end":return e.stop()}}),e,this)}))),function(e){return O.apply(this,arguments)})},{key:"addUserToYamlJSON",value:function(e,t,a){var r=e.name,n=e.password,o=e.network,c=void 0===o?"::/0":o,s=e.ip,l=void 0===s?"127.0.0.1":s,i=e.permission;switch(a){case w.RadonDBAppId.ClickHouse:var u=(0,A.default)(t,"spec.configuration.users",{});return u["".concat(r,"/networks/ip")]=[l,c],u["".concat(r,"/password")]=n,u["".concat(r,"/profile")]="default",u["".concat(r,"/quotas")]="default",t;case w.RadonDBAppId.PostgreSQL:var d={name:r,password:n},f=(0,A.default)(t,"spec.postgresql.users",{admin:[],normal:[]});return"Advanced"===i?f.admin.push(d):f.normal.push(d),(0,D.default)(t,"spec.postgresql.users",f),t;default:return t}}},{key:"deleteUserFromYamlJSON",value:function(e,t,a){var r=e.name;switch(a){case w.RadonDBAppId.ClickHouse:var n=(0,A.default)(t,"spec.configuration.users",{}),o=["/networks/ip","/password","/profile","/quotas"],c=(0,T.default)(n,(function(e,t){return o.map((function(e){return r+e})).includes(t)}));return(0,D.default)(t,"spec.configuration.users",c),t;case w.RadonDBAppId.PostgreSQL:var s=[],l=(s="Advanced"===e.permission?(0,A.default)(t,"spec.postgresql.users.admin",[]):(0,A.default)(t,"spec.postgresql.users.normal",[])).findIndex((function(t){return t.name===e.name}));return l>-1&&s.splice(l,1),t;default:return t}}},{key:"getSecretUrl",value:function(e,t,a){return"/api".concat(globals.app.isMultiCluster&&e?"/clusters/".concat(e):"","/v1/namespaces/").concat(t,"/secrets/").concat(a)}},{key:"getMySQLSecretName",value:function(e){return"".concat(e,"-userpassword-secret")}},{key:"getMysqlUsersUrl",value:function(e,t){return"/apis".concat(globals.app.isMultiCluster&&e?"/clusters/".concat(e):"","/mysql.radondb.com/v1alpha1/namespaces/").concat(t,"/mysqlusers")}},{key:"getMySQLSecretUrl",value:function(e,t,a){return this.getSecretUrl(e,t,this.getMySQLSecretName(a))}},{key:"userNameToMetadataName",value:function(e){return e.toLowerCase().replace(/_/g,"-0-z")}},{key:"getRedisUsersUrl",value:function(e){var t=e.cluster,a=e.namespace,r=e.cluster_id;return"/api".concat(globals.app.isMultiCluster&&t?"/clusters/".concat(t):"","/v1/namespaces/").concat(a,"/configmaps/").concat(r,"-acl-config")}},{key:"getUsersFromRedisText",value:function(e){return e?e.split("\n").map((function(e){var t=e.trim().split(" ");return{name:(0,A.default)(t,"[1]"),password:(0,A.default)(t,"[3]","").substring(1),permission:t.slice(4).join(" ")}})):[]}},{key:"createRedisUserText",value:function(e){var t=e.name,a=e.password,r=e.permission,n=void 0===r?"~* &* +@all":r;return"user ".concat(t," on >").concat(a," ").concat(n)}},{key:"addRedisUser",value:(S=(0,p.default)(o.default.mark((function e(t){var a,r,c,s,l;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=t.user,r=(0,n.default)(t,["user"]),e.next=3,request.get(this.getRedisUsersUrl(r));case 3:return c=e.sent,s=(0,A.default)(c,'data["aclfile.conf"]',""),this.getUsersFromRedisText(s).find((function(e){return e.name===a.name}))||(l=this.createRedisUserText(a),(0,D.default)(c,'data["aclfile.conf"]',s?"".concat(l,"\n").concat(s):l)),e.next=10,request.put(this.getRedisUsersUrl(r),c);case 10:case"end":return e.stop()}}),e,this)}))),function(e){return S.apply(this,arguments)})},{key:"deleteRedisUsers",value:(b=(0,p.default)(o.default.mark((function e(t){var a,r,c,s,l=this;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=t.users,r=(0,n.default)(t,["users"]),e.next=3,request.get(this.getRedisUsersUrl(r));case 3:return c=e.sent,s=(0,A.default)(c,'data["aclfile.conf"]',""),a.forEach((function(e){var t=l.getUsersFromRedisText(s),a=s.split("\n"),r=t.findIndex((function(t){return t.name===e.name}));s&&r>-1&&(a.splice(r,1),s=a.join("\n"))})),(0,D.default)(c,'data["aclfile.conf"]',s),e.next=9,request.put(this.getRedisUsersUrl(r),c);case 9:case"end":return e.stop()}}),e,this)}))),function(e){return b.apply(this,arguments)})},{key:"editRedisUser",value:(h=(0,p.default)(o.default.mark((function e(t){var a,r,c,s,l,i,u,d;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.oldUser,a=t.user,r=(0,n.default)(t,["oldUser","user"]),e.next=3,request.get(this.getRedisUsersUrl(r));case 3:if(c=e.sent,s=(0,A.default)(c,'data["aclfile.conf"]',""),l=this.getUsersFromRedisText(s),i=l.findIndex((function(e){return e.name===a.name})),!(s&&i>-1)){e.next=15;break}return(u=s.split("\n")).splice(i,1),d=this.createRedisUserText(a),u.unshift(d),(0,D.default)(c,'data["aclfile.conf"]',u.join("\n")),e.next=15,request.put(this.getRedisUsersUrl(r),c);case 15:case"end":return e.stop()}}),e,this)}))),function(e){return h.apply(this,arguments)})},{key:"getKafkaUserUrl",value:function(e){var t=e.cluster,a=e.namespace,r=e.name,n=e.cluster_id;return"/apis".concat(globals.app.isMultiCluster&&t?"/clusters/".concat(t):"","/kafka.strimzi.io/v1beta2/namespaces/").concat(a,"/kafkausers").concat(r?"/".concat(r):n?"?labelSelector=strimzi.io/cluster=".concat(n):"")}},{key:"getKafkaUserList",value:(c=(0,p.default)(o.default.mark((function e(t){var a,r,n=this;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,request.get(this.getKafkaUserUrl(t));case 2:return a=e.sent,e.next=5,Promise.all(a.items.map((function(e){return request.get(n.getSecretUrl(t.cluster,t.namespace,e.metadata.name))})));case 5:return r=e.sent,e.abrupt("return",a.items.map((function(e,t){var a=window.atob||N.safeAtob,n=a((0,A.default)(r,"[".concat(t,']data["user.p12"]'),"")),o=n?(0,A.default)(r,"[".concat(t,']data["user.password"]'),""):(0,A.default)(r,"[".concat(t,"]data.password"),"");return{name:e.metadata.name,password:a(o),authentication:e.spec.authentication.type,authorization:e.spec.authorization.type,permissionRules:e.spec.authorization.acls,kafkaUserConfig:(0,A.default)(e,"spec.quotas",{}),cert:n?{value:n,validDate:(0,I.getLocalTime)(e.metadata.creationTimestamp).add(3650,"d").format("YYYY.MM.DD")}:null}})));case 7:case"end":return e.stop()}}),e,this)}))),function(e){return c.apply(this,arguments)})},{key:"addKafkaUser",value:(r=(0,p.default)(o.default.mark((function e(t){var a,r,c;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=t.user,r=(0,n.default)(t,["user"]),c=JSON.parse(JSON.stringify(M.kafkaYaml.user)),(0,D.default)(c,"metadata.name",a.name),(0,D.default)(c,'metadata.labels["strimzi.io/cluster"]',r.cluster_id),(0,D.default)(c,"spec.authentication",{type:a.authentication}),(0,D.default)(c,"spec.authorization",{type:a.authorization,acls:a.permissionRules.map((function(e){return j(j({},e),{},{host:"*"})}))}),(0,k.default)(a.kafkaUserConfig)?(0,C.default)(c,"spec.quotas"):(0,D.default)(c,"spec.quotas",a.kafkaUserConfig),delete r.cluster_id,e.next=10,request.post(this.getKafkaUserUrl(r),c);case 10:case"end":return e.stop()}}),e,this)}))),function(e){return r.apply(this,arguments)})},{key:"editKafkaUser",value:(a=(0,p.default)(o.default.mark((function e(t){var a,r,c,s;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a=t.user,r=t.oldUser,c=(0,n.default)(t,["user","oldUser"]),a.name===r.name){e.next=7;break}return e.next=4,this.deleteKafkaUsers(j({users:[r]},c));case 4:return e.next=6,this.addKafkaUser(j({user:a},c));case 6:return e.abrupt("return");case 7:return e.next=9,request.get(this.getKafkaUserUrl(j({name:a.name},c)));case 9:return s=e.sent,(0,D.default)(s,"spec.authentication",{type:a.authentication}),(0,D.default)(s,"spec.authorization",{type:a.authorization,acls:a.permissionRules.map((function(e){return j(j({},e),{},{host:"*"})}))}),(0,k.default)(a.kafkaUserConfig)?(0,C.default)(s,"spec.quotas"):(0,D.default)(s,"spec.quotas",a.kafkaUserConfig),e.next=15,request.put(this.getKafkaUserUrl(j({name:a.name},c)),s);case 15:case"end":return e.stop()}}),e,this)}))),function(e){return a.apply(this,arguments)})},{key:"deleteKafkaUsers",value:(t=(0,p.default)(o.default.mark((function e(t){var a,r,c=this;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=t.users,r=(0,n.default)(t,["users"]),e.next=3,Promise.all(a.map((function(e){return request.delete(c.getKafkaUserUrl(j(j({},r),{},{name:e.name})))})));case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e)}))),function(e){return t.apply(this,arguments)})}]),P}(P.default),s=(0,O.default)(c.prototype,"fetchList",[R.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(){var t=(0,p.default)(o.default.mark((function t(a){var r;return o.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.list.isLoading=!0,t.next=3,request.get(e.getUrl(a));case 3:return r=t.sent,t.next=6,e.updateList(r,a);case 6:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()}}),l=(0,O.default)(c.prototype,"checkUserName",[R.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(t,a){return t===a||!e.allUsers.find((function(e){return e.name===t}))}}}),i=(0,O.default)(c.prototype,"add",[R.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(){var t=(0,p.default)(o.default.mark((function t(a){var r,n,c,s,l;return o.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,request.get(e.getUrl(a));case 2:r=t.sent,n=JSON.parse(r.customResource),t.t0=a.app_id,t.next=t.t0===w.RadonDBAppId.MySQL?7:t.t0===w.RadonDBAppId.RedisCluster||t.t0===w.RadonDBAppId.RedisSentinel?17:t.t0===w.RadonDBAppId.Kafka?22:36;break;case 7:return c=a.user.name,t.next=10,e.getMySQLSecretCrd(a);case 10:if((s=t.sent).data&&s.data[c]){t.next=16;break}return t.next=14,e.addMySQLUser(a,s);case 14:return t.next=16,e.updateList(r,a);case 16:return t.abrupt("break",44);case 17:return t.next=19,e.addRedisUser(a);case 19:return t.next=21,e.updateList(r,a);case 21:return t.abrupt("break",44);case 22:return t.next=24,e.addKafkaUser(a);case 24:return t.prev=24,(0,D.default)(window,"globals.config.enableErrorNotify",!1),t.next=28,e.updateList(r,a);case 28:t.next=34;break;case 30:return t.prev=30,t.t1=t.catch(24),t.next=34,new Promise((function(t,n){setTimeout((function(){(0,D.default)(window,"globals.config.enableErrorNotify",!0),e.updateList(r,a).then((function(){t()}),(function(e){return n(e)}))}),2e3)}));case 34:return(0,D.default)(window,"globals.config.enableErrorNotify",!0),t.abrupt("break",44);case 36:return l=e.addUserToYamlJSON(a.user,n,e.app_id),r.customResource=JSON.stringify(l),r.version+=1,t.next=41,request.put(e.getUrl(a),r);case 41:return t.next=43,e.updateList(r,a);case 43:return t.abrupt("break",44);case 44:case"end":return t.stop()}}),t,null,[[24,30]])})));return function(e){return t.apply(this,arguments)}}()}}),u=(0,O.default)(c.prototype,"edit",[R.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(){var t=(0,p.default)(o.default.mark((function t(a){var r,n,c;return o.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,request.get(e.getUrl(a));case 2:r=t.sent,t.t0=e.app_id,t.next=t.t0===w.RadonDBAppId.MySQL?6:t.t0===w.RadonDBAppId.RedisCluster||t.t0===w.RadonDBAppId.RedisSentinel?11:t.t0===w.RadonDBAppId.Kafka?16:21;break;case 6:return t.next=8,e.editMySQLUser(a);case 8:return t.next=10,e.updateList(r,a);case 10:return t.abrupt("break",31);case 11:return t.next=13,e.editRedisUser(a);case 13:return t.next=15,e.updateList(r,a);case 15:return t.abrupt("break",31);case 16:return t.next=18,e.editKafkaUser(a);case 18:return t.next=20,e.updateList(r,a);case 20:return t.abrupt("break",31);case 21:return n=JSON.parse(r.customResource),n,c=e.addUserToYamlJSON(a.user,e.deleteUserFromYamlJSON(a.oldUser,n,e.app_id),e.app_id),r.customResource=JSON.stringify(c),r.version+=1,t.next=28,request.put(e.getUrl(a),r);case 28:return t.next=30,e.updateList(r,a);case 30:return t.abrupt("break",31);case 31:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()}}),d=(0,O.default)(c.prototype,"delete",[R.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(){var t=(0,p.default)(o.default.mark((function t(a){var r,n,c;return o.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,request.get(e.getUrl(a));case 2:r=t.sent,t.t0=e.app_id,t.next=t.t0===w.RadonDBAppId.MySQL?6:t.t0===w.RadonDBAppId.RedisCluster||t.t0===w.RadonDBAppId.RedisSentinel?11:t.t0===w.RadonDBAppId.Kafka?16:22;break;case 6:return t.next=8,e.deleteMySQLUser(j(j({},a),{},{users:[a]}));case 8:return t.next=10,e.updateList(r,a);case 10:return t.abrupt("break",31);case 11:return t.next=13,e.deleteRedisUsers(j(j({},a),{},{users:[{name:a.name,password:a.password}]}));case 13:return t.next=15,e.updateList(r,a);case 15:return t.abrupt("break",31);case 16:return t.next=18,e.deleteKafkaUsers(j(j({},a),{},{users:[{name:a.name}]}));case 18:return delete a.name,t.next=21,e.updateList(r,a);case 21:return t.abrupt("break",31);case 22:return n=JSON.parse(r.customResource),c=e.deleteUserFromYamlJSON(a,n,e.app_id),r.customResource=JSON.stringify(c),r.version+=1,t.next=28,request.put(e.getUrl(a),r);case 28:return t.next=30,e.updateList(r,a);case 30:return t.abrupt("break",31);case 31:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()}}),f=(0,O.default)(c.prototype,"batchDelete",[R.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(){var t=(0,p.default)(o.default.mark((function t(a){var r,c,s,l,i;return o.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=a.selectedItems,c=void 0===r?[]:r,s=(0,n.default)(a,["selectedItems"]),t.next=3,request.get(e.getUrl(s));case 3:l=t.sent,t.t0=e.app_id,t.next=t.t0===w.RadonDBAppId.MySQL?7:t.t0===w.RadonDBAppId.RedisCluster||t.t0===w.RadonDBAppId.RedisSentinel?12:t.t0===w.RadonDBAppId.Kafka?15:18;break;case 7:return t.next=9,e.deleteMySQLUser(j(j({},s),{},{users:c}));case 9:return t.next=11,e.updateList(l,s);case 11:return t.abrupt("break",27);case 12:return t.next=14,e.deleteRedisUsers(j(j({},s),{},{users:c}));case 14:return t.abrupt("break",27);case 15:return t.next=17,e.deleteKafkaUsers(j(j({},s),{},{users:c}));case 17:return t.abrupt("break",27);case 18:return i=JSON.parse(l.customResource),c.forEach((function(t){e.deleteUserFromYamlJSON(t,i,e.app_id)})),l.customResource=JSON.stringify(i),l.version+=1,t.next=24,request.put(e.getUrl(s),l);case 24:return t.next=26,e.updateList(l,s);case 26:return t.abrupt("break",27);case 27:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()}}),c);t.default=V},4859:function(e,t,a){e.exports={account:"_1HFVM35BYOkVoGpYanyH4V",bold:"_18QxU4dmDWA3adSzdgfON6"}},4860:function(e,a,r){"use strict";var n=r(20),o=r(157);r(12),r(5),r(11),r(31),r(6),r(84),r(48),r(16),r(190),r(9),r(13),r(10),r(4),r(23),r(24),r(17),r(62),r(188),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(45),r(5),r(11),r(31),r(6),r(84),r(28),r(48),r(42),r(16),r(190),r(34),r(15),r(9),r(13),r(10),r(4),r(22),r(23),r(57),r(24),r(17),r(62),r(188),r(7);var c=n(r(315)),s=n(r(43)),l=n(r(30)),i=n(r(58));r(41);var u,d=n(r(44)),f=n(r(36)),p=n(r(37)),m=n(r(55)),h=n(r(56)),v=n(r(51)),g=n(r(0)),_=n(r(26)),y=n(r(854)),E=n(r(240)),b=r(14),S=r(244),O=n(r(795)),R=o(r(793)),A=n(r(796)),k=r(52),T=n(r(1926)),D=r(815),C=n(r(325)),P=n(r(4861));function N(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function I(e){for(var t=1;t0&&void 0!==c[0]?c[0]:{},r=a.silent,n=(0,i.default)(a,["silent"]),o=e.props.store,r&&(o.list.silent=!0),t.next=5,o.fetchList(I(I(I({},e.props.match.params),n),{},{app_id:e.props.detailStore.detail.app_id}));case 5:o.list.silent=!1;case 6:case"end":return t.stop()}}),t)}))),1e3),e.getColumns=function(){return[{title:t("NAME"),dataIndex:"name",minWidth:"20%"},{title:t("STATUS"),dataIndex:"status",render:function(a){var r=e.props.detailStore;return(0,_.default)(r,"detail.app_id")===D.RadonDBAppId.PostgreSQL?g.default.createElement(O.default,{flicker:!0,type:"available",name:t("AVAILABLE")}):g.default.createElement(O.default,{flicker:!0,type:a,name:t(x[a])})}},{title:t("SIZE_GIB"),dataIndex:"size",render:function(e){var t="-";return e&&(t="string"==typeof e?e:(e/1024/1024/1024).toFixed(2)),t},with:"120px"},{title:t("BACKUP_START_TIME"),dataIndex:"createAt",render:function(e){return e?(0,k.getLocalTime)(e).format("YYYY-MM-DD HH:mm:ss"):"-"}},{title:t("BACKUP_END_TIME"),dataIndex:"completeAt",render:function(e){return e?(0,k.getLocalTime)(e).format("YYYY-MM-DD HH:mm:ss"):"-"}}]},e.showCreate=function(){var a=e.props,r=a.match,n=a.module,o=a.detailStore;return e.props.trigger("openpitrix.db.backup.create",{module:n,cluster:r.params.cluster,namespace:r.params.namespace,workspace:r.params.workspace,title:t("CREATE_BACKUP"),app_id:(0,_.default)(o,"detail.app_id"),cluster_id:r.params.id,image:(0,_.default)(o,"detail.sidecarImage"),success:function(){return e.getData((0,S.parse)(location.search.slice(1)))}})},e}return(0,p.default)(r,[{key:"componentDidMount",value:function(){var e=this;request.get("/kapis/application.kubesphere.io/v2/apps?orderBy=create_time&conditions=status%3Dactive%2Crepo_id%3Drepo-helm%2Ccategory_id%3Dradondb&reverse=true").then((function(t){e.setState({appList:t.items})})),this.isRunning=this.props.detailStore.detail.isRunning,this.initWebsocket()}},{key:"componentDidUpdate",value:function(){var e=this.props.detailStore.detail.isRunning;this.lastIsRunning!==e&&e&&this.getData((0,S.parse)(location.search.slice(1))),this.lastIsRunning=e}},{key:"initWebsocket",value:function(){var e=this,t=this.props.match.params,a=t.cluster,r=t.namespace,n=t.id,o=this.props.store.getWatchListUrl({namespace:r,cluster_id:n,app_id:this.props.detailStore.detail.app_id,cluster:a});o&&r&&(this.websocket.watch(o),this.disposer=(0,b.reaction)((function(){return e.websocket.message}),(function(t){"Backup"===t.object.kind&&["ADDED","MODIFIED","DELETED"].includes(t.type)&&e.getData((0,S.parse)(location.search.slice(1)))})))}},{key:"getTableProps",value:function(){var e=this,a=this.props,r=a.tableProps,n=a.detailStore,o=a.store,c=a.name,s=this.canCreate?[{key:"deploy",type:"control",text:t("CREATE"),action:"create",forbidden:!n.detail.isRunning,onClick:this.showCreate}]:[];n.detail.isRunning||(s[0].tooltip={message:t("BACKUP_NOT_ALLOWED_DESC"),placement:(0,_.default)(o,"list.data.length")?"bottomRight":"bottom"});var l=(0,_.default)(n,"detail.app_id"),i={key:"delete",type:"danger",text:t("DELETE"),action:"delete",onClick:function(){e.props.trigger("resource.batch.delete",I(I({once:l===D.RadonDBAppId.PostgreSQL,type:c,rowKey:r.rowKey},e.props.match.params),{},{app_id:l}))}};return{tableActions:I(I({},r.tableActions),{},{selectActions:n.detail.isRunning?l===D.RadonDBAppId.PostgreSQL?[]:[i]:[],actions:s}),emptyProps:{desc:""},searchType:"keyword"}}},{key:"render",value:function(){var e=this.props.tableProps,t=this.itemActions;return g.default.createElement("div",{className:P.default.backup},g.default.createElement(R.ListPage,(0,c.default)({},this.props,{getData:this.getData,noWatch:!0}),g.default.createElement(A.default,(0,c.default)({},e,this.getTableProps(),{rowKey:"name",itemActions:t,columns:this.getColumns(),alwaysUpdate:!0}))))}},{key:"canCreate",get:function(){var e=this.props.match.params,t=e.cluster,a=e.namespace;return globals.app.hasPermission({cluster:t,project:a,module:"applications",action:"create"})}},{key:"itemActions",get:function(){var e=this,a=this.props,r=a.trigger,n=a.routing,o=a.match,c=a.module,s=a.name,l=a.detailStore,i=l.detail.app_id;return[{key:"edit",icon:"copy",text:t("RESTORE_FROM_BACKUP"),action:"edit",show:function(e){return"Success"===e.status},onClick:function(a){if("Success"===a.status){var n=(0,_.default)(l.detail,"spec.S3"),s=(0,_.default)(l.detail,"name");r("openpitrix.db.app.create",{module:c,app_id:i,detail:e.state.appList.find((function(e){return e.app_id===i})),namespace:o.params.namespace,cluster:o.params.cluster,workspace:o.params.workspace,routing:e.props.rootStore.routing,restoreParams:I(I({},a.restoreParams),{},{backupId:a.name,backupToS3Name:s,S3:n,databaseVersion:l.detail.databaseVersion,nodes:(0,_.default)(a,"nodes"),volume:(0,_.default)(a,"volume"),specifications:(0,_.default)(a,"specifications")}),trigger:r})}else E.default.warning({content:t("BACKUP_IN_PROGRESS_DESC")})}},{key:"delete",icon:"trash",text:t("DELETE"),action:"delete",show:function(){return i!==D.RadonDBAppId.PostgreSQL},onClick:function(t){return r("resource.delete",{type:s,detail:I(I(I({},t),o.params),{},{app_id:l.detail.app_id}),success:n.query,store:e.props.store})}}]}}]),r}(g.default.Component))||u;a.default=M},4861:function(e,t,a){e.exports={backup:"F5aUFXk3RQ-bylkMTo9ru"}},4862:function(e,a,r){"use strict";var n=r(20),o=r(157);r(12),r(5),r(11),r(31),r(6),r(18),r(48),r(16),r(9),r(13),r(10),r(4),r(23),r(24),r(17),r(62),r(188),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(45),r(5),r(11),r(31),r(6),r(18),r(28),r(48),r(42),r(16),r(34),r(15),r(9),r(13),r(10),r(4),r(22),r(23),r(57),r(24),r(17),r(62),r(188),r(7);var c=n(r(315)),s=n(r(43));r(41);var l,i=n(r(44)),u=n(r(30)),d=n(r(36)),f=n(r(37)),p=n(r(55)),m=n(r(56)),h=n(r(51)),v=n(r(0)),g=r(186),_=n(r(240)),y=o(r(793)),E=n(r(796)),b=n(r(1927)),S=n(r(4863)),O=n(r(3)),R=n(r(1974)),A=r(815),k=n(r(74)),T=n(r(26)),D=n(r(158)),C=n(r(63)),P=r(244),N=r(4865),I=n(r(4866));function w(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function x(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.min,a=e.max;return(0,D.default)(t)&&(0,D.default)(a)?null:v.default.createElement("div",null,"".concat((0,D.default)(t)?" ":t,"–").concat((0,D.default)(a)?" ":a))}};switch(e.appId){case A.RadonDBAppId.ClickHouse:return[a,r,n,c];default:return[a,r,n,o,c]}},e.handleChange=function(t){return function(a){(0,k.default)(e.state.data,'["'.concat(t,'"]'),(0,T.default)(a,"target.value",a)),e.forceUpdate()}},e.editParameters=function(){e.setState({editMode:!0})},e.handleConfirm=(0,i.default)(s.default.mark((function a(){var r,n,o,c,l;return s.default.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:if(r=e.props.match.params,n=r.workspace,o=r.namespace,c=r.id,l=r.cluster,!(0,C.default)(e.state.data)){a.next=4;break}return e.handleCancel(),a.abrupt("return");case 4:return a.prev=4,a.next=7,e.props.store.updateParams({workspace:n,namespace:o,cluster_id:c,cluster:l,nodeRole:e.state.nodeRole,params:e.state.data});case 7:a.next=13;break;case 9:return a.prev=9,a.t0=a.catch(4),_.default.error({content:t(a.t0.message)}),a.abrupt("return");case 13:return e.handleCancel(),a.next=16,e.getData((0,P.parse)(location.search.slice(1)));case 16:_.default.success({content:t("MODIFY_SUCCESSFUL")});case 17:case"end":return a.stop()}}),a,null,[[4,9]])}))),e.handleCancel=function(){e.setState({editMode:!1,data:{}})},e.getData=function(t){var a=e.props.match.params,r=a.workspace,n=a.namespace,o=a.id,c=a.cluster;return e.props.store.fetchList(x(x({},t),{},{workspace:r,namespace:n,cluster:c,cluster_id:o,nodeRole:e.state.nodeRole}))},e.getEditTitle=function(){return v.default.createElement(g.Level,null,v.default.createElement(g.LevelLeft,null,v.default.createElement(g.Button,{type:"primary",onClick:e.handleConfirm},t("OK")),v.default.createElement(g.Button,{onClick:e.handleCancel},t("CANCEL"))))},e.rowClassName=function(e){return e.disable?"disable":""},e.handleNodeRoleChange=function(t){e.setState({data:{},nodeRole:t},(function(){e.getData()}))},e}return(0,f.default)(r,[{key:"getTableProps",value:function(){var e=this.props,a=e.tableProps,r=e.detailStore,n=this.canCreate?[{key:"edit",type:"default",text:t("EDIT"),forbidden:!r.detail.isRunning,onClick:this.editParameters}]:[];r.detail.isRunning||(n[0].tooltip={message:t("EDIT_NOT_ALLOWED"),placement:"bottomRight"});var o={tableActions:x(x({},a.tableActions),{},{actions:n,selectActions:null}),emptyProps:{desc:""},searchType:"keyword",alwaysUpdate:!0};return this.state.editMode&&(o.extraProps={title:this.getEditTitle(),rowClassName:this.rowClassName},o.hideHeader=!0),o}},{key:"getCustomFilter",value:function(){switch(this.appId){case A.RadonDBAppId.Kafka:return v.default.createElement(g.Select,{options:N.KafkaOptions,value:this.state.nodeRole,style:{width:200,marginRight:"12px"},onChange:this.handleNodeRoleChange});default:return null}}},{key:"render",value:function(){var e=this.props.tableProps;return v.default.createElement(y.ListPage,(0,c.default)({},this.props,{getData:this.getData,noWatch:!0}),v.default.createElement(E.default,(0,c.default)({},e,this.getTableProps(),{className:(0,O.default)({"params-table-edit":this.state.editMode},I.default.params),itemActions:[],columns:this.getColumns(),hideFooter:!0,customFilter:this.getCustomFilter()})))}},{key:"appId",get:function(){return this.props.store.app_id}},{key:"canCreate",get:function(){var e=this.props.match.params,t=e.cluster,a=e.namespace;return globals.app.hasPermission({cluster:t,project:a,module:"applications",action:"create"})}}]),r}(v.default.Component))||l;a.default=L},4863:function(e,t,a){"use strict";var r=a(20);a(12),a(5),a(11),a(6),a(86),a(27),a(9),a(13),a(10),a(4),a(23),a(17),a(75),a(7),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(12),a(45),a(5),a(11),a(6),a(86),a(28),a(42),a(27),a(34),a(15),a(9),a(13),a(10),a(4),a(23),a(57),a(17),a(75),a(7);var n=r(a(315)),o=r(a(30)),c=r(a(58)),s=r(a(36)),l=r(a(37)),i=r(a(55)),u=r(a(56)),d=r(a(51)),f=r(a(158)),p=r(a(63)),m=r(a(470)),h=r(a(800)),v=r(a(0)),g=r(a(1)),_=r(a(3)),y=a(186),E=r(a(4864));function b(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function S(e){for(var t=1;t0&&-1==="".concat(e.props.value).indexOf(".")||"-"===s&&(0,p.default)(e.props.value))r(s);else{var l=Number(s);isNaN(l)||(!(0,f.default)(o)&&l>o&&(l=o),c||s.startsWith("0")&&!s.startsWith("0.")||l!==Number(s)||"".concat(l)===s||(l=s),!(0,f.default)(l)&&n&&(l="".concat(l).concat(n)),r&&r(l))}},e.debounceHandleChange=(0,h.default)((function(t){var a=e.props,r=a.onChange,n=a.unit,o=a.min,c=a.max,s=a.integer;if((0,p.default)(t)||!s&&t.indexOf(".")>0&&-1==="".concat(e.props.value).indexOf(".")||"-"===t&&(0,p.default)(e.props.value))r(t);else{var l=Number(t);isNaN(l)||(!(0,f.default)(o)&&lc&&(l=c),s||t.startsWith("0")&&!t.startsWith("0.")||l!==Number(t)||"".concat(l)===t||(l=t),!(0,f.default)(l)&&n&&(l="".concat(l).concat(n)),r&&r(l))}}),500),e}return(0,l.default)(a,[{key:"render",value:function(){var e=this.props,t=e.className,a=e.unit,r=e.showUnit,o=e.value,s=e.defaultValue,l=(e.onChange,e.integer,(0,c.default)(e,["className","unit","showUnit","value","defaultValue","onChange","integer"])),i=(0,f.default)(o)?s:o;a&&(i=(0,m.default)(i,a));var u=S(S({type:"text"},l),{},{value:(0,f.default)(i)?"":i,onChange:this.handleChange});return a&&r?v.default.createElement("div",{className:(0,_.default)(t,E.default.withUnit)},v.default.createElement(y.Input,u),v.default.createElement("span",null,a)):v.default.createElement(y.Input,(0,n.default)({className:t},u))}}]),a}(v.default.Component);R.propTypes={unit:g.default.string,showUnit:g.default.bool,value:g.default.oneOfType([g.default.string,g.default.number]),defaultValue:g.default.oneOfType([g.default.string,g.default.number]),min:g.default.number,max:g.default.number,integer:g.default.bool,onChange:g.default.func},R.defaultProps={unit:"",showUnit:!1,integer:!1,onChange:function(){}};var A=R;t.default=A},4864:function(e,t,a){e.exports={withUnit:"_1xayErxJuaugCVf4OR8UQy"}},4865:function(e,a,r){"use strict";r(15);var n=r(20);Object.defineProperty(a,"__esModule",{value:!0}),a.KafkaOptions=void 0;var o=n(r(836)),c=n(r(0)),s=[{label:c.default.createElement(c.default.Fragment,null,c.default.createElement(o.default,{src:"/assets/radondb_kafka.svg",style:{width:"16px",marginRight:"4px"}}),c.default.createElement("span",null,t("KAFKA_PARAMETERS"))),value:"kafka"},{label:c.default.createElement(c.default.Fragment,null,c.default.createElement(o.default,{src:"/assets/radondb_zookeeper.svg",style:{width:"16px",marginRight:"4px"}}),c.default.createElement("span",null,t("ZOOKEEPER_PARAMETERS"))),value:"zookeeper"}];a.KafkaOptions=s},4866:function(e,t,a){e.exports={params:"_3yNPbIt265kOjZ-_lOxYbf"}},4867:function(e,a,r){"use strict";(function(e){var n=r(20),o=r(157);r(12),r(109),r(5),r(187),r(11),r(6),r(84),r(86),r(18),r(16),r(9),r(13),r(10),r(4),r(23),r(24),r(17),r(85),r(62),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(109),r(45),r(5),r(187),r(11),r(6),r(84),r(86),r(18),r(28),r(42),r(16),r(34),r(15),r(9),r(13),r(10),r(4),r(22),r(23),r(57),r(24),r(17),r(85),r(62),r(7);var c=n(r(61)),s=n(r(315)),l=n(r(43)),i=n(r(30)),u=n(r(58));r(41);var d,f=n(r(44)),p=n(r(36)),m=n(r(37)),h=n(r(55)),v=n(r(56)),g=n(r(51)),_=n(r(0)),y=n(r(26)),E=r(14),b=n(r(788)),S=n(r(795)),O=o(r(793)),R=n(r(796)),A=r(52),k=r(878),T=r(832),D=n(r(1727)),C=n(r(1799)),P=n(r(4868));function N(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function I(e){for(var t=1;t0&&void 0!==c[0]?c[0]:{},r=a.silent,n=(0,u.default)(a,["silent"]),o=e.props.store,r&&(o.list.silent=!0),t.next=5,o.fetchList(I(I({},e.props.match.params),n));case 5:o.list.silent=!1;case 6:case"end":return t.stop()}}),t)}))),e.getColumns=function(){var a=e.props,r=a.getFilteredValue,n=a.match,o=n.url.substring(n.url.indexOf("/applications"),-1);return[{title:t("NAME"),dataIndex:"name",search:!0,render:function(e,t){return _.default.createElement(b.default,{avatar:"/assets/bell_gear_duotone.svg",title:(0,A.getDisplayName)(t),desc:t.description,className:P.default["table-icon"],to:"".concat(o,"/alert-rules/").concat(e)})}},{title:t("POLICY_STATUS"),dataIndex:"enable",filters:e.getEnableFilter(),filteredValue:r("enable"),isHideable:!0,search:!0,width:"16%",render:function(e,a){return _.default.createElement(S.default,{className:P.default.status_icon,type:a.enabled&&JSON.parse(a.enabled)?"active":"disabled",name:a.enabled&&JSON.parse(a.enabled)?t("ENABLED"):t("DISABLED")})}},{title:t("RULE_STATUS"),dataIndex:"state",search:!0,filters:e.getStatus(),isHideable:!0,width:"16%",render:function(e,t){return _.default.createElement(C.default,{rulesStats:t.rulesStats})}},{title:t("TIME_SPENT"),dataIndex:"evaluationTime",isHideable:!0,width:"12%",render:function(e){return _.default.createElement("span",null,"-"!==e?t("TIME_S",{num:e}):e)}},{title:t("RECENT_DETECT_TIME"),dataIndex:"lastEvaluation",isHideable:!0,width:"15.8%",render:function(e,t){var a=(0,y.default)(t._originDataWithStatus,"status.lastEvaluation");return _.default.createElement("span",null,a?(0,A.getLocalTime)(a).format("YYYY-MM-DD HH:mm:ss"):"-")}}]},e.showCreate=function(){var a=e.props,r=a.match,n=a.getData,o=a.module,c=a.detailStore;return e.props.trigger("alerting.policy.create",{module:o,cluster:r.params.cluster,namespace:r.params.namespace,title:t("CREATE_ALERTING_POLICY"),app_id:c.detail.app_id,cluster_id:r.params.id,success:n})},e}return(0,m.default)(n,[{key:"componentDidMount",value:function(){var e=this.props.match.params,t=e.cluster;!e.namespace&&this.props.store.fetchCount({cluster:t}),localStorage.setItem("alert-policy-detail-referrer",this.props.match.url)}},{key:"getStatus",value:function(){return k.ALERTING_STATUS.map((function(e){return{text:t("ALERT_RULE_".concat(e.toUpperCase())),value:e}}))}},{key:"getEnableFilter",value:function(){return[{text:t("ENABLED"),value:"true"},{text:t("DISABLED"),value:"false"}]}},{key:"getAlertingTypes",value:function(){return T.SEVERITY_LEVEL.map((function(e){return{text:t(e.label),value:e.value}}))}},{key:"render",value:function(){var e=this.props.tableProps;return _.default.createElement(O.ListPage,(0,s.default)({},this.props,{getData:this.getData,noWatch:!0}),_.default.createElement(R.default,(0,s.default)({},e,{rowKey:"name",itemActions:this.itemActions,columns:this.getColumns(),tableActions:this.tableActions})))}},{key:"itemActions",get:function(){var a=this,r=this.props,n=r.trigger,o=r.routing,c=r.match,s=r.name;return[{key:"edit",icon:"pen",text:t("EDIT_INFORMATION"),action:"edit",onClick:function(r){n("alerting.baseinfo.edit",{detail:r,module:e,cluster:c.params.cluster,namespace:c.params.namespace,title:t("EDIT_ALERTING_POLICY"),success:a.getData})}},{key:"editYaml",icon:"pen",text:t("EDIT_YAML"),action:"edit",onClick:function(e){return n("alerting.yaml.edit",{detail:e,cluster:c.params.cluster,namespace:c.params.namespace,title:t("EDIT_ALERTING_POLICY"),success:a.getData})}},{key:"editRule",icon:"wrench",text:t("EDIT_ALERT_RULES"),action:"edit",onClick:function(e){n("alerting.rule.edit",{detail:e,cluster:c.params.cluster,namespace:c.params.namespace,success:o.query})}},{key:"disablePolicy",icon:function(e){return JSON.parse(e.enabled)?"stop":"start"},text:function(e){return JSON.parse(e.enabled)?t("DISABLE"):t("ENABLE")},action:"edit",onClick:function(e){var a=JSON.parse(e.enabled);n("alerting.rule.update",{detail:e,cluster:c.params.cluster,namespace:c.params.namespace,resourceName:s,success:o.query,title:a?t("DISABLE_ALERTING_POLICY"):t("ENABLE_ALERTING_POLICY"),enabled:a})}},{key:"delete",icon:"trash",text:t("DELETE"),action:"delete",onClick:function(e){return n("alerting.rule.delete",{name:s,cluster:c.params.cluster,namespace:c.params.namespace,detail:e,success:o.query})}}]}},{key:"tableActions",get:function(){var e=this.props,a=e.tableProps,r=e.getData,n=e.trigger,o=e.name,s=e.store,l=e.match,i=e.detailStore,u=(0,E.toJS)(s.list.data),d=(0,E.toJS)(s.list.selectedRowKeys),f=u.filter((function(e){return d.includes(e.name)})).every((function(e){return!JSON.parse(e.enabled)})),p=u.filter((function(e){return d.includes(e.name)})).every((function(e){return JSON.parse(e.enabled)})),m=[{key:"deploy",type:"control",text:t("CREATE"),action:"create",forbidden:!i.detail.isRunning,onClick:this.showCreate}];return i.detail.isRunning||(m[0].tooltip={message:t("ALERTING_POLICY_CREATION_NOT_ALLOWED"),placement:(0,y.default)(s,"list.data.length")?"bottomRight":"bottom"}),I(I({},a.tableActions),{},{actions:m,selectActions:[].concat((0,c.default)(a.tableActions.selectActions),[{key:"enable",text:t("ENABLE"),action:"edit",disabled:p,onClick:function(){n("alerting.rule.update",{resourceName:o,cluster:l.params.cluster,namespace:l.params.namespace,title:t("ENABLE_ALERTING_POLICY"),enabled:!1,success:r,batchMode:!0})}},{key:"disable",text:t("DISABLE"),action:"edit",disabled:f,onClick:function(){n("alerting.rule.update",{resourceName:o,cluster:l.params.cluster,namespace:l.params.namespace,title:t("DISABLE_ALERTING_POLICY"),enabled:!0,success:r,batchMode:!0})}}])})}}]),n}(_.default.Component))||d;a.default=x}).call(this,r(138)(e))},4868:function(e,t,a){e.exports={"table-icon":"_1ZDsG2UdrEfYAB3t_km53m",status_icon:"usLADWmbiVkW64AlURQPz"}},4869:function(e,a,r){"use strict";var n=r(20);r(12),r(5),r(11),r(31),r(6),r(84),r(18),r(16),r(9),r(13),r(10),r(4),r(23),r(24),r(17),r(85),r(62),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(45),r(5),r(11),r(31),r(6),r(84),r(18),r(28),r(42),r(16),r(34),r(15),r(9),r(13),r(10),r(4),r(23),r(57),r(24),r(17),r(85),r(62),r(7);var o,c,s=n(r(61)),l=n(r(30)),i=n(r(36)),u=n(r(37)),d=n(r(55)),f=n(r(56)),p=n(r(51)),m=n(r(0)),h=n(r(26)),v=r(47),g=r(239),_=r(186),y=n(r(874)),E=n(r(1433)),b=n(r(1961)),S=r(815),O=n(r(4870));function R(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function A(e){for(var t=1;t0){if(this.needMainAppId.includes(e))return[this.MainLable].concat((0,s.default)(a.map((function(e){return A(A({},e),{},{label:e.label})}))));if(e===S.RadonDBAppId.Kafka)return[{label:t("ALL_KAFKA_NODES"),value:"kafka"},{label:t("ALL_ZOOKEEPER_NODES"),value:"zookeeper"}].concat((0,s.default)(a.map((function(e){return A(A({},e),{},{label:e.label})}))))}return a}}]),r}(m.default.Component))||c)||c)||c);a.default=T},4870:function(e,t,a){e.exports={loading:"_2rHsiQmBSPxEv5ZYKWM2Na",pods:"_2x_UjL9AEVUgL7SJ1CJbqZ"}},4871:function(e,a,r){"use strict";var n=r(20),o=r(157);r(12),r(11),r(6),r(84),r(18),r(16),r(9),r(13),r(10),r(4),r(23),r(24),r(17),r(62),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(45),r(11),r(6),r(84),r(18),r(28),r(42),r(16),r(34),r(15),r(9),r(13),r(10),r(4),r(22),r(23),r(57),r(24),r(17),r(62),r(7);var c=n(r(315)),s=n(r(43)),l=n(r(30)),i=n(r(58));r(41);var u,d=n(r(44)),f=n(r(36)),p=n(r(37)),m=n(r(55)),h=n(r(56)),v=n(r(51)),g=n(r(0)),_=n(r(26)),y=n(r(854)),E=r(14),b=n(r(795)),S=o(r(793)),O=n(r(796)),R=r(52),A=r(878),k=r(832),T=n(r(4872)),D=n(r(325)),C=n(r(4873));function P(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function N(e){for(var t=1;t0&&void 0!==c[0]?c[0]:{},a=t.silent,r=(0,i.default)(t,["silent"]),o=n.props.store,a&&(o.list.silent=!0),e.next=5,o.fetchList(N(N({},n.props.match.params),r));case 5:o.list.silent=!1;case 6:case"end":return e.stop()}}),e)}))),n.throttleGetData=(0,y.default)(n.getData,1e3),n.getColumns=function(){return[{title:t("NAME"),dataIndex:"name",width:200},{title:t("STATUS"),dataIndex:"status",render:function(e){return g.default.createElement(b.default,{type:e,name:t(e),flicker:!0})}},{title:t("PARTITION_COUNT"),dataIndex:"partitions"},{title:t("REPLICA_COUNT"),dataIndex:"replicas"},{title:t("MESSAGE_RETENTION_TIME"),dataIndex:'config["retention.ms"]',render:function(e){return e?g.default.createElement("span",null,e,"ms"):"-"}},{title:t("CREATION_TIME"),dataIndex:"creationTimestamp",render:function(e){return e?(0,R.getLocalTime)(e).format("YYYY-MM-DD HH:mm:ss"):"-"}}]},n.showCreate=function(){var e=n.props,a=e.match,r=e.getData,o=e.store,c=e.detailStore;return n.props.trigger("openpitrix.db.topic.create",{store:o,cluster:a.params.cluster,namespace:a.params.namespace,title:t("CREATE_TOPIC"),app_id:(0,_.default)(c,"detail.app_id"),kafkaReplicas:(0,_.default)(c,"detail.nodes.kafka"),cluster_id:a.params.id,success:r})},n.websocket=new D.default,n.initWebsocket(),n}return(0,p.default)(r,[{key:"initWebsocket",value:function(){var e=this,t=this.props.match.params,a=t.cluster,r=t.namespace,n=t.id,o=this.props.store.getWatchListUrl({namespace:r,cluster:a,cluster_id:n});o&&r&&(this.websocket.watch(o),this.disposer=(0,E.reaction)((function(){return e.websocket.message}),(function(t){"KafkaTopic"===t.object.kind&&["MODIFIED","DELETED","ADDED"].includes(t.type)&&e.throttleGetData()})))}},{key:"getStatus",value:function(){return A.ALERTING_STATUS.map((function(e){return{text:t("ALERT_RULE_".concat(e.toUpperCase())),value:e}}))}},{key:"getAlertingTypes",value:function(){return k.SEVERITY_LEVEL.map((function(e){return{text:t(e.label),value:e.value}}))}},{key:"getTableProps",value:function(){var e=this,a=this.props,r=a.tableProps,n=a.detailStore,o=a.store,c=[{key:"deploy",type:"control",text:t("CREATE"),action:"create",forbidden:!n.detail.isRunning,onClick:this.showCreate}];n.detail.isRunning||(c[0].tooltip={message:t("TOPIC_CREATION_NOT_ALLOWED"),placement:(0,_.default)(o,"list.data.length")?"bottomRight":"bottom"});var s=[{key:"delete",type:"danger",text:t("DELETE"),action:"delete",onClick:function(){return e.props.trigger("resource.batch.delete",N(N({type:"APP",rowKey:r.rowKey,success:e.getData},e.props.match.params),e.props.query))}}];return{tableActions:N(N({},r.tableActions),{},{selectActions:[],actions:c}),selectActions:s,emptyProps:{title:t("NO_TOPIC_FOUND"),icon:"record",desc:t("TOPIC_EMPTY_DESC")},searchType:"keyword"}}},{key:"render",value:function(){var e=this.props.tableProps,t=this.itemActions;return g.default.createElement("div",{className:C.default.policy},g.default.createElement(S.ListPage,(0,c.default)({},this.props,{getData:this.getData,noWatch:!0}),g.default.createElement(O.default,(0,c.default)({},e,this.getTableProps(),{rowKey:"name",itemActions:t,columns:this.getColumns()}))))}},{key:"itemActions",get:function(){var e=this.props,a=e.trigger,r=e.routing,n=e.match,o=e.getData,c=e.name,s=e.store,l=e.detailStore;return[{key:"edit",icon:"pen",text:t("EDIT"),action:"edit",onClick:function(e){var r=e.name,c=e.partitions,i=e.replicas,u=e.config;return a("openpitrix.db.topic.create",{cluster:n.params.cluster,namespace:n.params.namespace,title:t("EDIT_TOPIC"),detail:N({name:r,partitions:c,replicas:i},u),kafkaReplicas:(0,_.default)(l,"detail.nodes.kafka"),isEdit:!0,store:s,success:o})}},{key:"delete",icon:"trash",text:t("DELETE"),action:"delete",onClick:function(e){return a("resource.delete",{type:c,detail:e,success:r.query})}}]}}]),r}(g.default.Component))||u;a.default=w},4872:function(e,t,a){"use strict";var r=a(20);a(12),a(5),a(11),a(6),a(84),a(18),a(48),a(16),a(27),a(9),a(13),a(10),a(4),a(23),a(17),a(85),a(7),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(12),a(45),a(5),a(11),a(6),a(84),a(18),a(28),a(48),a(191),a(42),a(16),a(159),a(27),a(34),a(15),a(9),a(13),a(10),a(4),a(319),a(22),a(23),a(57),a(17),a(85),a(7);var n=r(a(43)),o=r(a(30)),c=r(a(58));a(41);var s,l,i=r(a(44)),u=r(a(65)),d=r(a(36)),f=r(a(37)),p=r(a(88)),m=r(a(55)),h=r(a(56)),v=r(a(51)),g=r(a(49)),_=(r(a(66)),r(a(26))),y=r(a(74)),E=a(14),b=r(a(68)),S=a(1015),O=a(1093);function R(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function A(e){for(var t=1;t0&&void 0!==g[0]?g[0]:{},a=t.cluster,t.workspace,r=t.namespace,t.more,o=t.id,s=(0,c.default)(t,["cluster","workspace","namespace","more","id"]),l=s.page,i=void 0===l?1:l,u=s.limit,d=void 0===u?10:u,f=s.keyword,this.list.isLoading=!0,s.limit=s.limit||10,e.next=6,request.get(this.getResourceUrl({cluster:a,namespace:r,id:o}));case 6:return p=e.sent,m=((0,_.default)(p,"items")||[]).filter((function(e){return!f||e.metadata.name.includes(f)})).map((function(e){var t=(0,S.getStatusFromYaml)(e);return{cluster:a,namespace:r,name:(0,_.default)(e,"metadata.name"),partitions:(0,_.default)(e,"spec.partitions"),replicas:(0,_.default)(e,"spec.replicas"),config:(0,_.default)(e,"spec.config",{}),creationTimestamp:(0,_.default)(e,"metadata.creationTimestamp"),status:v.statusMap[t]||"Creating"}})),h=Number(p.total||m.length),this.list.update(A({data:m.slice((i-1)*d,i*d),total:h,limit:Number(d)||10,page:Number(i)||1,isLoading:!1,filters:f?{keyword:f}:{}},this.list.silent?{}:{selectedRowKeys:[]})),e.abrupt("return",m);case 11:case"end":return e.stop()}}),e,this)}))),function(){return a.apply(this,arguments)})},{key:"getYamlFromData",value:function(e,t){var a=t.cluster_id,r=JSON.parse(JSON.stringify(O.kafkaYaml.topic)),n=e.name,o=e.partitions,s=e.replicas,l=(0,c.default)(e,["name","partitions","replicas"]);return(0,y.default)(r,"metadata.name",n),(0,y.default)(r,'metadata.labels["strimzi.io/cluster"]',a),(0,y.default)(r,"spec",{partitions:parseInt(o,10),replicas:s,config:l}),r}},{key:"create",value:function(e){var t=e.topic,a=(0,c.default)(e,["topic"]),r=this.getYamlFromData(t,a);return request.post(this.getListUrl(a),r)}},{key:"edit",value:(t=(0,i.default)(n.default.mark((function e(t){var a,r,o,s,l,i,u,d,f;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a=t.topic,r=t.oldTopicName,o=(0,c.default)(t,["topic","oldTopicName"]),s=a.name,l=a.partitions,a.replicas,i=(0,c.default)(a,["name","partitions","replicas"]),s!==r){e.next=13;break}return e.next=5,request.get(this.getDetailUrl(A(A({},o),{},{name:s})));case 5:return u=e.sent,d=(0,_.default)(u,"spec.config",{}),(0,y.default)(u,"spec.config",A(A({},d),i)),(0,y.default)(u,"spec.partitions",parseInt(l,10)),e.next=11,request.patch(this.getDetailUrl(A(A({},o),{},{name:s})),u);case 11:e.next=18;break;case 13:return f=this.getYamlFromData(a,o),e.next=16,this.delete(A(A({},o),{},{name:r}));case 16:return e.next=18,request.post(this.getListUrl(o),f);case 18:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})}]),o}(b.default),l=(0,g.default)(s.prototype,"targetsMetadata",[E.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),(0,g.default)(s.prototype,"fetchList",[E.action],Object.getOwnPropertyDescriptor(s.prototype,"fetchList"),s.prototype),(0,g.default)(s.prototype,"create",[E.action],Object.getOwnPropertyDescriptor(s.prototype,"create"),s.prototype),(0,g.default)(s.prototype,"edit",[E.action],Object.getOwnPropertyDescriptor(s.prototype,"edit"),s.prototype),s);t.default=T},4873:function(e,t,a){e.exports={policy:"_1CLMyM9L5Lqm9wNw2AdC16"}},4874:function(e,t,a){e.exports={icon:"_2TdY7G6Sm3yz4Ym6JmHf18",flexRow:"_2cqSWZz9wp2Tx2LFZcTIha"}},4875:function(e,a,r){"use strict";r(15);var n=r(20);r(12),r(109),r(5),r(16),r(4),r(23),r(24),r(17),r(62),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(109),r(45),r(5),r(28),r(42),r(16),r(4),r(23),r(57),r(24),r(17),r(62);var o,c=n(r(315)),s=n(r(36)),l=n(r(37)),i=n(r(55)),u=n(r(56)),d=n(r(51)),f=n(r(0)),p=r(14),m=r(239),h=n(r(26)),v=n(r(63)),g=r(186),_=r(52),y=r(791),E=n(r(1888)),b=n(r(836)),S=n(r(795)),O=n(r(805)),R=n(r(4876)),A=n(r(4880));function k(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,d.default)(e);if(t){var n=(0,d.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,u.default)(this,a)}}var T=(0,m.inject)("rootStore","projectStore")(o=(0,m.observer)(o=(0,y.trigger)(o=function(e){(0,i.default)(r,e);var a=k(r);function r(){var e;(0,s.default)(this,r);for(var n=arguments.length,o=new Array(n),c=0;c0&&void 0!==s[0]?s[0]:{},r=e.props,o=r.limit,(c=r.params).status="Successful",t.next=5,e.store.fetchS2IRunRecords(_(_({limit:o},c),a));case 5:e.setAutoRefresh();case 6:case"end":return t.stop()}}),t)}))),e}return(0,i.default)(a,[{key:"renderItem",value:function(e){var t=this.store.list.isLoading;return p.default.createElement(v.default,{key:e.name,runDetail:e,loading:t,store:this.store})}}]),a}(h.default))||c;t.default=E},4897:function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(42),r(4),r(23),r(57),r(17);var o,c=n(r(36)),s=n(r(37)),l=n(r(55)),i=n(r(56)),u=n(r(51)),d=n(r(0)),f=r(239),p=r(52),m=r(186),h=n(r(240)),v=r(1376),g=n(r(4898));function _(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,u.default)(e);if(t){var n=(0,u.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,i.default)(this,a)}}var y=(0,f.observer)(o=function(e){(0,l.default)(r,e);var a=_(r);function r(){var e;(0,c.default)(this,r);for(var n=arguments.length,o=new Array(n),s=0;s0&&void 0!==arguments[0]?arguments[0]:[],t=e.map((function(e){return(0,_.default)(e.type)})).join(",");return t}},{title:t("SCALING_OBJECT"),dataIndex:"scaleTargetRef",isHideable:!0,width:"15%",render:function(e){var a,r;return y.default.createElement(m.default,{title:null!==(a=null==e?void 0:e.name)&&void 0!==a?a:"-",description:t(null!==(r=null==e?void 0:e.kind)&&void 0!==r?r:"-")})}},{title:t("MINIMUM_REPLICAS"),dataIndex:"minReplicaCount",isHideable:!0,width:"10%"},{title:t("MAXIMUM_REPLICAS"),dataIndex:"maxReplicaCount",isHideable:!0,width:"10%"},{title:t("CREATION_TIME_TCAP"),dataIndex:"createTime",sorter:!0,sortOrder:n("createTime"),isHideable:!0,width:150,render:function(e){return(0,b.getLocalTime)(e).format("YYYY-MM-DD HH:mm:ss")}}]},a.showCreate=function(){var e=a.props,r=e.match,n=e.module,o=e.getData;return a.props.trigger("customScaling.create",A(A({module:n},r.params),{},{success:o,title:t("CREATE_CUSTOM_SCALING")}))},a}return(0,i.default)(n,[{key:"render",value:function(){var e=this.props,t=e.bannerProps,a=e.tableProps;return y.default.createElement(v.ListPage,(0,c.default)({},this.props,{noWatch:!0}),y.default.createElement(h.default,t),y.default.createElement(g.default,(0,c.default)({},a,{className:"table-2-3",itemActions:this.itemActions,columns:this.getColumns(),onCreate:this.showCreate,searchType:"name"})))}},{key:"itemActions",get:function(){var e=this.props,a=e.getData,r=e.trigger,n=e.name,o=e.match;return[{key:"edit",icon:"pen",text:t("EDIT_INFORMATION"),action:"edit",onClick:function(e){return r("resource.baseinfo.edit",{detail:e,success:a})}},{key:"editYaml",icon:"pen",text:t("EDIT_YAML"),action:"edit",onClick:function(e){return r("resource.yaml.edit",{detail:e,success:a})}},{key:"editScale",icon:"pen",text:t("EDIT_SCALING_SETTINGS"),action:"edit",onClick:function(e){return r("customScaling.edit.setting",A({detail:e,success:a},o.params))}},{key:"delete",icon:"trash",text:t("DELETE"),action:"delete",onClick:function(e){return r("resource.delete",{type:n,detail:e,success:a})}}]}}]),n}(y.default.Component))||o;a.default=T}).call(this,r(69))},781:function(e,t,a){"use strict";var r=a(20),n=a(157);a(12),a(11),a(6),a(29),a(16),a(9),a(13),a(10),a(4),a(22),a(23),a(24),a(17),a(38),a(62),a(7),a(32),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(12),a(45),a(11),a(6),a(29),a(28),a(42),a(16),a(34),a(15),a(9),a(13),a(10),a(4),a(22),a(23),a(57),a(24),a(17),a(38),a(62),a(7),a(32);var o=r(a(43)),c=r(a(30));a(41);var s,l=r(a(44)),i=r(a(36)),u=r(a(37)),d=r(a(55)),f=r(a(56)),p=r(a(51)),m=n(a(0)),h=a(239),v=a(186),g=r(a(74)),_=r(a(241)),y=a(317),E=r(a(439)),b=r(a(438)),S=r(a(445)),O=r(a(4505));function R(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function A(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};return"".concat(e.apiVersion).concat(e.getPath(t),"/instances").concat(t.dryRun?"?dryRun=All":"")},e.getResourceUrl=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return"".concat(e.apiVersion).concat(e.getPath(t),"/instances")},e.getResult=function(e){var t=(0,y.default)(e)?e:[],a={};return(0,b.default)(t)||t.forEach((function(e){(0,S.default)(e,"data.values[0]",[Math.ceil(Date.now()/1e3),(0,E.default)(e,"data.measurements[0].value")]),a[e.metric_name]=e})),a},e.getRefreshResult=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=(0,_.toJS)(a);return(0,b.default)(r)?t:(Object.values(t).forEach((function(t){var a=(0,E.default)(t,"metric_name"),n=r[a];if(n){var o=(0,E.default)(t,"data.values[0]",[]),c=(0,E.default)(n,"data.values",[]);(0,S.default)(n,"data.values",e.getNewValues(c,o))}})),r)},e.getNewValues=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],a=(0,b.default)(e)?[]:(0,i.default)(e),r=t||[];return(0,b.default)(r)||(a.length>10&&a.shift(),a.push(r)),a},e}return(0,f.default)(g,[{key:"fetchStatistics",value:(h=(0,l.default)(o.default.mark((function e(){var t,a=arguments;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=a.length>0&&void 0!==a[0]?a[0]:{},e.next=3,request.get("".concat(this.apiVersion).concat(this.getPath(t),"/statistics"));case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e,this)}))),function(){return h.apply(this,arguments)})},{key:"offLine",value:(c=(0,l.default)(o.default.mark((function e(t){var a,r,n;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=t.namespace,r=t.instanceId,n=t._originData,(0,S.default)(n,"spec.enabled",!1),e.next=5,request.put(this.getDetailUrl({namespace:a,name:r}),n);case 5:case"end":return e.stop()}}),e,this)}))),function(e){return c.apply(this,arguments)})},{key:"onLine",value:(r=(0,l.default)(o.default.mark((function e(t){var a,r,n;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=t.namespace,r=t.instanceId,n=t._originData,(0,S.default)(n,"spec.enabled",!0),e.next=5,request.put(this.getDetailUrl({namespace:a,name:r}),n);case 5:case"end":return e.stop()}}),e,this)}))),function(e){return r.apply(this,arguments)})},{key:"fetchMetrics",value:(a=(0,l.default)(o.default.mark((function e(t){var a,r,c,s,l,u,d,f,p,m=arguments;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=t.cluster,r=t.namespace,c=t.name,s=t.autoRefresh,l=void 0!==s&&s,u=(0,n.default)(t,["cluster","namespace","name","autoRefresh"]),d=m.length>1&&void 0!==m[1]?m[1]:{},e.next=4,request.get("".concat(this.getDetailUrl({cluster:a,namespace:r,name:c}),"/metrics/collect"),u);case 4:if(f=e.sent,(0,b.default)(d)){e.next=11;break}return e.next=8,request.get("".concat(this.getDetailUrl({cluster:a,namespace:r,name:c}),"/metrics/collect"),d);case 8:p=e.sent,(0,S.default)(p,"[0].metric_name","jvm.memory.used.metaspace"),f=[].concat((0,i.default)(p),(0,i.default)(f));case 11:return f=this.getResult(f),l&&(f=this.getRefreshResult(f,this.metrics)),this.metrics=f,e.abrupt("return",f);case 15:case"end":return e.stop()}}),e,this)}))),function(e){return a.apply(this,arguments)})},{key:"fetchEnv",value:function(e){var t=e.cluster,a=e.namespace,r=e.instanceId;return request.get("".concat(this.getDetailUrl({cluster:t,namespace:a,name:r}),"/env"),{},{},(function(){return{}}))}},{key:"checkHasMetrics",value:(t=(0,l.default)(o.default.mark((function e(t){var a,r,n,c;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=t.cluster,r=t.namespace,n=t.instanceId,e.next=3,request.get("".concat(this.apiVersion).concat(this.getPath({cluster:a,namespace:r}),"/instances/").concat(n,"/metrics"),{},{},(function(){return!1}));case 3:return c=e.sent,e.abrupt("return",!!c);case 5:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})},{key:"apiVersion",get:function(){return"apis/aggregated.springcloud.kubesphere.io/v1alpha1"}}]),g}(r(a(1053)).default),s=(0,g.default)(c.prototype,"metrics",[_.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),(0,g.default)(c.prototype,"fetchStatistics",[_.action],Object.getOwnPropertyDescriptor(c.prototype,"fetchStatistics"),c.prototype),(0,g.default)(c.prototype,"offLine",[_.action],Object.getOwnPropertyDescriptor(c.prototype,"offLine"),c.prototype),(0,g.default)(c.prototype,"onLine",[_.action],Object.getOwnPropertyDescriptor(c.prototype,"onLine"),c.prototype),(0,g.default)(c.prototype,"fetchMetrics",[_.action],Object.getOwnPropertyDescriptor(c.prototype,"fetchMetrics"),c.prototype),(0,g.default)(c.prototype,"fetchEnv",[_.action],Object.getOwnPropertyDescriptor(c.prototype,"fetchEnv"),c.prototype),(0,g.default)(c.prototype,"checkHasMetrics",[_.action],Object.getOwnPropertyDescriptor(c.prototype,"checkHasMetrics"),c.prototype),c);t.default=R},1238:function(e,a,r){"use strict";var n=r(20),o=r(157);r(12),r(5),r(11),r(6),r(84),r(192),r(9),r(13),r(10),r(4),r(23),r(24),r(17),r(85),r(62),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(45),r(5),r(11),r(6),r(84),r(28),r(192),r(42),r(34),r(15),r(9),r(13),r(10),r(4),r(23),r(57),r(24),r(17),r(85),r(62),r(7);var c,s=n(r(315)),l=n(r(30)),i=n(r(36)),u=n(r(37)),d=n(r(55)),f=n(r(56)),p=n(r(51)),m=o(r(0)),h=r(186),v=n(r(792)),g=r(52),_=r(791),y=r(239),E=n(r(961)),b=n(r(26));function S(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function O(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.cluster,a=e.namespace;return"apis/application.kubesphere.io/v1alpha1/watch/manifests?labelSelector=".concat((0,w.joinSelector)({"kubesphere.io/cluster":globals.app.isMultiCluster?t:null,"kubesphere.io/namespace":a}))},e.getWatchUrl=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.name;return"apis/application.kubesphere.io/v1alpha1/watch/manifests/".concat(t)},(0,l.default)(e,"fetchList",_,(0,d.default)(e)),(0,l.default)(e,"fetchDetail",y,(0,d.default)(e)),e.updateDetailService=function(e,t){if(0!==t.length){var a=(0,D.default)(t,"[0]",{});if(e.app_id===L.RadonDBAppId.ClickHouse)e.services=[{label:"READ_AND_WRITE_ADDRESS",value:"http://".concat(a.address),type:a.type},{label:"READ_AND_WRITE_ADDRESS",value:"http://".concat(a.serviceName,".").concat(a.namespace,":").concat(a.tcpPort),type:"ClusterIP"}];else if(e.app_id===L.RadonDBAppId.MySQL||e.app_id===L.RadonDBAppId.PostgreSQL){e.services=[{label:"READ_AND_WRITE_ADDRESS",value:a.address,type:a.type}];var r=(0,D.default)(t,"[1]");r&&e.services.push({label:"READ_ONLY_ADDRESS",value:r.address,type:r.type})}else if(e.app_id===L.RadonDBAppId.Elasticsearch){var n=(0,D.default)(t,"[1]");if(n){var o=[{label:"READ_AND_WRITE_ADDRESS",value:a.address,type:a.type}];o.push({label:"KIBANA_ADDRESS",value:n.address,type:n.type}),e.services=o}}else if(e.app_id===L.RadonDBAppId.RedisSentinel){var c=(0,D.default)(t,"[1]",{});e.services=[{label:"PRIMARY_ADDRESS",value:a.address,type:a.type},{label:"STANDBY_ADDRESS",value:c.address,type:a.type}]}else if(e.app_id===L.RadonDBAppId.RedisCluster){var s=[],l=t.length,i=t[l-1];if(i.serviceName.includes("proxy")?(t.splice(-1,1),l--):i=null,l>2)s=t.filter((function(e){return"NodePort"===e.type})).map((function(e){var t=(0,D.default)(e,'_originData.metadata.labels["statefulset.kubernetes.io/pod-name"]');return{label:["master","leader"].includes(e.role)?"PRIMARY_ADDRESS":"STANDBY_ADDRESS",value:t?"".concat(e.serviceName,".").concat(t,".").concat(e.namespace,".svc:").concat(e.tcpPort):e.address,type:e.type}}));else{var u=(0,D.default)(t,"[1]",{});s=[{label:"PRIMARY_ADDRESS",value:a.address,type:a.type},{label:"STANDBY_ADDRESS",value:u.address,type:a.type}]}i&&s.unshift({label:"READ_AND_WRITE_ADDRESS",value:i.address,type:i.type}),e.services=s}else if(e.app_id===L.RadonDBAppId.Kafka){var d=[{label:"READ_AND_WRITE_ADDRESS",value:a.address,type:a.type||"ClusterIP"}];"NodePort"===a.type&&d.push({label:"READ_AND_WRITE_ADDRESS",value:"".concat(a.serviceName,".").concat(a.namespace,":").concat(a.tcpPort),type:"NodePort"}),e.services=d}else if(e.app_id===L.RadonDBAppId.OpenSearch&&t.length>1){e.services=[{label:"READ_AND_WRITE_ADDRESS",value:a.address,type:a.type}];var f=(0,D.default)(t,"[1]");f&&e.services.push({label:"DASHBOARD_ADDRESS",value:f.address,type:f.type})}else e.services=[{label:"READ_AND_WRITE_ADDRESS",value:a.address,type:a.type||"ClusterIP"}]}else e.services=[]},(0,l.default)(e,"delete",E,(0,d.default)(e)),(0,l.default)(e,"batchDelete",b,(0,d.default)(e)),(0,l.default)(e,"patch",S,(0,d.default)(e)),(0,l.default)(e,"updateVersion",O,(0,d.default)(e)),(0,l.default)(e,"updateShardsCount",R,(0,d.default)(e)),(0,l.default)(e,"updateStorage",A,(0,d.default)(e)),(0,l.default)(e,"updateSpecifications",k,(0,d.default)(e)),e}return(0,u.default)(a,[{key:"getSecretUrl",value:function(e,t,a){return"/api".concat(globals.app.isMultiCluster&&e?"/clusters/".concat(e):"","/v1/namespaces/").concat(t,"/secrets/").concat(a)}},{key:"updateDetail",value:function(e){var t=e.detail,a=e.namespace,r=e.cluster,n=e.workspace;this.detail=H(H(H({},this.detail),K(t,n)),{},{namespace:a,cluster:r})}},{key:"getECKKibanaUrl",value:function(e,t,a){return"/apis".concat(globals.app.isMultiCluster&&e?"/clusters/".concat(e):"","/kibana.k8s.elastic.co/v1/namespaces/").concat(t,"/kibanas").concat(a?"/".concat(a):"")}},{key:"getLogstashUrl",value:function(e,t,a){return"/apis".concat(globals.app.isMultiCluster&&e?"/clusters/".concat(e):"","/opensearch.opster.io/v1/namespaces/").concat(t,"/logstashes").concat(a?"/".concat(a):"")}}]),a}(M.default),_=(0,h.default)(g.prototype,"fetchList",[N.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return(0,s.default)(n.default.mark((function t(){var a,r,s,l,i,u,d,f,p,m,h,v,g,_,y,E=arguments;return n.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=E.length>0&&void 0!==E[0]?E[0]:{},r=a.limit,s=a.page,l=a.workspace,i=a.cluster,u=a.namespace,d=a.more,f=a.status,p=a.reverse,m=(0,c.default)(a,["limit","page","workspace","cluster","namespace","more","status","reverse"]),e.list.isLoading=!0,h={conditions:(0,w.getFilterString)({status:f||e.defaultStatus})},(0,C.default)(m)||(v=(0,w.getFilterString)(m),h.conditions+=v?",".concat(v):""),r!==1/0&&(h.paging="limit=".concat(r||10,",page=").concat(s||1)),t.next=7,request.get((0,U.getManifestApi)({workspace:l,namespace:u,cluster:i}),h);case 7:return g=t.sent,(_=(g.items||[]).map((function(e){return H(H({},K(e,l)),{},{cluster:i})}))).sort((function(e,t){return m.ascending?(0,x.default)(e.creationTimestamp).isSameOrBefore(t.creationTimestamp)?-1:1:(0,x.default)(e.creationTimestamp).isSameOrBefore(t.creationTimestamp)?1:-1})),y=_.map((function(t){return e.serviceStore.fetchList({cluster:i,namespace:u,chi:t.name,app_id:t.app_id})})),t.next=13,Promise.all(y);case 13:return t.sent.forEach((function(t,a){e.updateDetailService(_[a],t)})),Object.assign(e.list,{data:d?[].concat((0,o.default)(e.list.data),(0,o.default)(_)):_,total:g.total_count||_.length,limit:Number(r)||10,page:Number(s)||1,reverse:p,filters:m,isLoading:!1,selectedRowKeys:[]}),t.abrupt("return",_);case 17:case"end":return t.stop()}}),t)})))}}),y=(0,h.default)(g.prototype,"fetchDetail",[N.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(){var t=(0,s.default)(n.default.mark((function t(a){var r,o,c,s,l,i,u,d,f,p,m,h,v,g,_,y,E,b,S;return n.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=a.workspace,o=a.namespace,c=a.cluster,s=a.id,e.isLoading=!0,t.next=4,request.get((0,U.getManifestApi)({workspace:r,namespace:o,cluster:c,cluster_id:s}));case 4:return l=t.sent,e.updateDetail({detail:l,namespace:o,cluster:c,workspace:r}),t.next=8,e.podStore.fetchList({workspace:r,namespace:o,cluster:c,chi:s,app_id:e.detail.app_id});case 8:return i=t.sent,t.next=11,e.serviceStore.fetchList({cluster:c,namespace:o,chi:s,app_id:e.detail.app_id});case 11:return u=t.sent,t.next=14,request.get("/kapis".concat(globals.app.isMultiCluster?"/clusters/".concat(c):"","/resources.kubesphere.io/v1alpha3/storageclasses?sortBy=createTime"));case 14:if(d=t.sent,f=d.items.map((function(e){return{name:e.metadata.name,allowVolumeExpansion:e.allowVolumeExpansion}})),p=(0,D.default)(f.find((function(t){return t.name===e.detail.storageclass})),"allowVolumeExpansion",!1),m=(0,D.default)(i,"[0].capacity",e.detail.storage),e.detail.app_id!==L.RadonDBAppId.PostgreSQL){t.next=22;break}m=(0,D.default)(i.find((function(e){return e.name.includes("postgresql")})),"capacity",e.detail.storage),t.next=44;break;case 22:if(e.detail.app_id!==L.RadonDBAppId.Elasticsearch){t.next=36;break}return e.detail.realStorages={hot:(0,D.default)(i.find((function(e){return!0===(0,D.default)(e,'metadata.labels["elasticsearch.k8s.elastic.co/node-hot"]')})),"capacity",e.detail.storages.hot),warm:(0,D.default)(i.find((function(e){return!0===(0,D.default)(e,'metadata.labels["elasticsearch.k8s.elastic.co/node-warm"]')})),"capacity",e.detail.storages.warm),cold:(0,D.default)(i.find((function(e){return!0===(0,D.default)(e,'metadata.labels["elasticsearch.k8s.elastic.co/node-cold"]')})),"capacity",e.detail.storages.cold)},h={},t.next=27,request.get(e.getECKKibanaUrl(c,o,s));case 27:h=t.sent,v=(0,D.default)(h,"spec.count",0),e.detail.nodes.kibana=v,g=(0,D.default)(h,"spec.podTemplate.spec.containers[0].resources.requests"),parseInt(g.cpu,10)<100&&(g.cpu="".concat(1e3*parseInt(g.cpu,10),"m")),e.detail.specifications.kibana=g,p=!0,t.next=44;break;case 36:if(e.detail.app_id!==L.RadonDBAppId.OpenSearch){t.next=44;break}return t.next=39,request.get(e.getLogstashUrl(c,o,s));case 39:_=t.sent,e.detail.nodes.logstash=(0,D.default)(_,"spec.replicas",0),y=(0,D.default)(_,"spec.podTemplate.spec.containers[0].resources.requests"),parseInt(y.cpu,10)<100&&(y.cpu="".concat(1e3*parseInt(y.cpu,10),"m")),e.detail.specifications.logstash=y;case 44:if(e.updateDetailService(e.detail,u),E=null,e.detail.app_id!==L.RadonDBAppId.Kafka||!e.detail.tls){t.next=52;break}return t.next=49,request.get(e.getSecretUrl(c,o,"".concat(s,"-cluster-ca-cert")));case 49:b=t.sent,S=window.atob||I.safeAtob,E={cert:S((0,D.default)(b,'data["ca.p12"]',"")),password:S((0,D.default)(b,'data["ca.password"]',"")),validDate:(0,w.getLocalTime)((0,D.default)(b,"metadata.creationTimestamp")).add(3650,"d").format("YYYY.MM.DD")};case 52:e.detail=H(H({},e.detail),{},{allowVolumeExpansion:p,realStorage:m,secret:E}),e.isLoading=!1;case 54:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()}}),E=(0,h.default)(g.prototype,"delete",[N.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(t){var a=t.workspace,r=t.cluster_id,n=t.cluster,o=t.namespace,c=t.name;return e.submitting(request.delete((0,U.getManifestApi)({workspace:a,namespace:o,cluster_id:r||c,cluster:n})))}}}),b=(0,h.default)(g.prototype,"batchDelete",[N.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(t,a){var r=a.workspace,n=a.namespace,o=a.cluster;return e.submitting(Promise.all(t.map((function(e){return request.delete((0,U.getManifestApi)({workspace:r,namespace:n,cluster:o,cluster_id:e}))}))))}}}),S=(0,h.default)(g.prototype,"patch",[N.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(){var t=(0,s.default)(n.default.mark((function t(a,r){var o,c,s,l,i,u;return n.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o=r.workspace,c=r.cluster_id,s=r.cluster,l=r.namespace,i=r.description,t.next=3,request.get((0,U.getManifestApi)({workspace:o,namespace:l,cluster_id:c,cluster:s}));case 3:return(u=t.sent).description=i,u.version+=1,t.next=8,request.put((0,U.getManifestApi)({workspace:o,namespace:l,cluster_id:c,cluster:s}),u);case 8:e.updateDetail({detail:u,namespace:l,cluster:s,workspace:o});case 9:case"end":return t.stop()}}),t)})));return function(e,a){return t.apply(this,arguments)}}()}}),O=(0,h.default)(g.prototype,"updateVersion",[N.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(){var t=(0,s.default)(n.default.mark((function t(a){var r,o,c,s,l,i,u,d,f,p;return n.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=a.cluster,o=a.cluster_id,c=a.workspace,s=a.namespace,t.next=3,request.get((0,U.getManifestApi)({workspace:c,namespace:s,cluster_id:o,cluster:r}));case 3:l=t.sent,i=JSON.parse(l.customResource),t.t0=a.app_id,t.next=t.t0===L.RadonDBAppId.OpenSearch?8:22;break;case 8:return(0,T.default)(i,"spec.general.version","2.8.0"),(0,T.default)(i,"spec.dashboards.version","2.8.0"),(0,T.default)(i,"spec.confMgmt.forceRestart",!0),u=e.getLogstashUrl(r,s,o),t.next=14,request.get(u);case 14:return d=t.sent,f={name:"exporter",resources:{requests:{memory:"400Mi",cpu:"200m"},limits:{memory:"400Mi",cpu:"200m"}}},p=(0,D.default)(d,"spec.podTemplate.spec.containers"),(0,P.default)(p,(function(e){return"exporter"===e.name}))||(p.push(f),(0,T.default)(d,"spec.podTemplate.spec.containers",p)),t.next=21,request.put(u,d);case 21:case 22:return t.abrupt("break",23);case 23:return l.customResource=JSON.stringify(i),l.version+=1,t.next=27,request.put((0,U.getManifestApi)({workspace:c,namespace:s,cluster_id:o,cluster:r}),l);case 27:e.updateDetail({detail:l,namespace:s,cluster:r,workspace:c});case 28:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()}}),R=(0,h.default)(g.prototype,"updateShardsCount",[N.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(){var t=(0,s.default)(n.default.mark((function t(a){var r,c,s,l,i,u,d,f,p,m,h,v,g,_,y,E,b,S,O,R,A,k,C,P;return n.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=a.workspace,c=a.cluster_id,s=a.cluster,l=a.namespace,i=a.shardsCount,u=a.nodeRole,d=a.specifications,f=a.storage,t.next=3,request.get((0,U.getManifestApi)({workspace:r,namespace:l,cluster_id:c,cluster:s}));case 3:p=t.sent,m=JSON.parse(p.customResource),t.t0=e.detail.app_id,t.next=t.t0===L.RadonDBAppId.ClickHouse?8:t.t0===L.RadonDBAppId.PostgreSQL?11:t.t0===L.RadonDBAppId.MySQL?13:t.t0===L.RadonDBAppId.RedisCluster?15:t.t0===L.RadonDBAppId.RedisSentinel?18:t.t0===L.RadonDBAppId.MongoDB?21:t.t0===L.RadonDBAppId.Elasticsearch?23:t.t0===L.RadonDBAppId.Kafka?51:t.t0===L.RadonDBAppId.OpenSearch?53:78;break;case 8:return h=(0,D.default)(m,"spec.configuration.clusters[0].layout"),(0,T.default)(m,"spec.configuration.clusters[0].layout",H(H({},h),{},{shardsCount:i})),t.abrupt("break",79);case 11:return(0,T.default)(m,"spec.postgresql.readwriteinstance.replicas",i),t.abrupt("break",79);case 13:return(0,T.default)(m,"spec.replicas",i),t.abrupt("break",79);case 15:return v=(0,L.getCpuAndMemoryFromSpecifications)(d),"proxy"===u?((0,T.default)(m,"spec.redisProxy.replicas",i),(0,T.default)(m,"spec.redisProxy.resources.requests",v),(0,T.default)(m,"spec.redisProxy.resources.limits",v),i>0&&(0,T.default)(m,"spec.redisProxy.enabled",!0)):((0,T.default)(m,"spec.clusterSize",i),(0,T.default)(m,"spec.redisLeader.replicas",i),(0,T.default)(m,"spec.redisFollower.replicas",i)),t.abrupt("break",79);case 18:return(0,T.default)(m,"spec.clusterSize",i),(0,T.default)(m,"spec.redisReplica.replicas",i),t.abrupt("break",79);case 21:return(0,T.default)(m,"spec.members",i),t.abrupt("break",79);case 23:if(g=(0,L.getCpuAndMemoryFromSpecifications)(d),"kibana"!==u){t.next=36;break}return _=e.getECKKibanaUrl(s,l,c),t.next=28,request.get(_);case 28:return y=t.sent,(0,T.default)(y,"spec.count",i),(0,T.default)(y,"spec.podTemplate.spec.containers[0].resources.requests",g),(0,T.default)(y,"spec.podTemplate.spec.containers[0].resources.limits",g),t.next=34,request.put(_,y);case 34:return e.detail.nodes.kibana=i,t.abrupt("return");case 36:if(E=(0,D.default)(m,"spec.nodeSets",[]),b=E.find((function(e){return e.name.startsWith(u)}))){t.next=46;break}if(S=(0,D.default)(Y.eckYaml.resources,"spec.nodeSets",[]),b=S.find((function(e){return e.name.startsWith(u)}))){t.next=43;break}return t.abrupt("break",79);case 43:b=JSON.parse(JSON.stringify(b)),(0,T.default)(b,"volumeClaimTemplates[0].spec.storageClassName",(0,D.default)(E,"[0].volumeClaimTemplates[0].spec.storageClassName")),(0,T.default)(m,"spec.nodeSets",[].concat((0,o.default)(E),[b]));case 46:return(0,T.default)(b,"count",i),(0,T.default)(b,"podTemplate.spec.containers[0].resources",{limits:g,requests:g}),(0,T.default)(b,"podTemplate.spec.containers[0].env[0].value","-Xms".concat(parseInt(g.memory,10)/2,"g -Xmx").concat(parseInt(g.memory,10)/2,"g")),(0,T.default)(b,"volumeClaimTemplates[0].spec.resources.requests.storage",f),t.abrupt("break",79);case 51:return(0,T.default)(m,"spec.".concat(u,".replicas"),i),t.abrupt("break",79);case 53:if(O=(0,L.getCpuAndMemoryFromSpecifications)(d),"logstash"!==u){t.next=66;break}return R=e.getLogstashUrl(s,l,c),t.next=58,request.get(R);case 58:return A=t.sent,(0,T.default)(A,"spec.replicas",i),(0,T.default)(A,"spec.podTemplate.spec.containers[0].resources",{requests:O,limits:O}),t.next=63,request.put(R,A);case 63:return e.detail.nodes.logstash=i,e.detail=H({},e.detail),t.abrupt("return");case 66:if("dashboard"!==u){t.next=71;break}return i>0&&(0,T.default)(m,"spec.dashboards.enable",!0),(0,T.default)(m,"spec.dashboards.replicas",i),(0,T.default)(m,"spec.dashboards.resources",{requests:O,limits:O}),t.abrupt("break",79);case 71:return k=(0,D.default)(m,"spec.nodePools",[]),(C=k.find((function(e){return(0,D.default)(e,'additionalConfig["node.attr.datatier"]')===u})))||(P=(0,D.default)(k,"[0].persistence.pvc.storageClass"),C=JSON.parse(JSON.stringify(F.opensearchYaml.node)),(0,T.default)(C,'additionalConfig["node.attr.datatier"]',u),(0,T.default)(C,"component","data-node-".concat(u)),(0,T.default)(C,"persistence.pvc.storageClass",P),(0,T.default)(m,"spec.nodePools",[].concat((0,o.default)(k),[C]))),(0,T.default)(C,"replicas",i),(0,T.default)(C,"resources",{limits:O,requests:O}),(0,T.default)(C,"diskSize",f),t.abrupt("break",79);case 78:return t.abrupt("break",79);case 79:return p.customResource=JSON.stringify(m),p.version+=1,t.next=83,request.put((0,U.getManifestApi)({workspace:r,namespace:l,cluster_id:c,cluster:s}),p);case 83:e.updateDetail({detail:p,namespace:l,cluster:s,workspace:r});case 84:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()}}),A=(0,h.default)(g.prototype,"updateStorage",[N.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(){var t=(0,s.default)(n.default.mark((function t(a){var r,o,c,s,l,i,u,d,f,p,m,h;return n.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=a.workspace,o=a.cluster_id,c=a.cluster,s=a.namespace,l=a.storage,i=a.nodeRole,t.next=3,request.get((0,U.getManifestApi)({workspace:r,namespace:s,cluster_id:o,cluster:c}));case 3:u=t.sent,d=JSON.parse(u.customResource),parseFloat(l)<10&&(l="10Gi"),t.t0=e.detail.app_id,t.next=t.t0===L.RadonDBAppId.ClickHouse?9:t.t0===L.RadonDBAppId.PostgreSQL?11:t.t0===L.RadonDBAppId.MySQL?13:t.t0===L.RadonDBAppId.RedisCluster||t.t0===L.RadonDBAppId.RedisSentinel?15:t.t0===L.RadonDBAppId.MongoDB?17:t.t0===L.RadonDBAppId.Elasticsearch?19:t.t0===L.RadonDBAppId.Kafka?23:t.t0===L.RadonDBAppId.OpenSearch?25:29;break;case 9:return(0,T.default)(d,"spec.templates.volumeClaimTemplates[0].spec.resources.requests.storage",l),t.abrupt("break",30);case 11:return(0,T.default)(d,"spec.postgresql.readwriteinstance.volumeClaimTemplates[0].spec.resources.requests.storage",l),t.abrupt("break",30);case 13:return(0,T.default)(d,"spec.persistence.size",l),t.abrupt("break",30);case 15:return(0,T.default)(d,"spec.storage.volumeClaimTemplate.spec.resources.requests.storage",l),t.abrupt("break",30);case 17:return(0,T.default)(d,"spec.statefulSet.spec.volumeClaimTemplates[0].spec.resources.requests.storage",l),t.abrupt("break",30);case 19:return f=(0,D.default)(d,"spec.nodeSets",[]),(p=f.find((function(e){return e.name.startsWith(i)})))&&((0,T.default)(p,"volumeClaimTemplates[0].spec.resources.requests.storage",l),(0,T.default)(p,"name","".concat(i,"-").concat(l.toLowerCase()))),t.abrupt("break",30);case 23:return"kafka"===i?(0,T.default)(d,"spec.kafka.storage.volumes[0].size",l):(0,T.default)(d,"spec.zookeeper.storage.size",l),t.abrupt("break",30);case 25:return m=(0,D.default)(d,"spec.nodePools",[]),h=m.find((function(e){return(0,D.default)(e,'additionalConfig["node.attr.datatier"]')===i})),(0,T.default)(h,"diskSize",l),t.abrupt("break",30);case 29:return t.abrupt("break",30);case 30:return u.customResource=JSON.stringify(d),u.version+=1,t.next=34,request.put((0,U.getManifestApi)({workspace:r,namespace:s,cluster_id:o,cluster:c}),u);case 34:i?(0,T.default)(e.detail,"realStorages[".concat(i,"]"),l):e.detail.realStorage=l,e.updateDetail({detail:u,namespace:s,cluster:c,workspace:r});case 36:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()}}),k=(0,h.default)(g.prototype,"updateSpecifications",[N.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(){var t=(0,s.default)(n.default.mark((function t(a){var r,o,c,s,l,i,u,d,f,p,m,h,v,g,_,y,E;return n.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=a.workspace,o=a.cluster_id,c=a.cluster,s=a.namespace,l=a.specifications,i=a.nodeRole,u=(0,L.getCpuAndMemoryFromSpecifications)(l),t.next=4,request.get((0,U.getManifestApi)({workspace:r,namespace:s,cluster_id:o,cluster:c}));case 4:d=t.sent,f=JSON.parse(d.customResource),t.t0=e.detail.app_id,t.next=t.t0===L.RadonDBAppId.ClickHouse?9:t.t0===L.RadonDBAppId.PostgreSQL?12:t.t0===L.RadonDBAppId.MySQL?14:t.t0===L.RadonDBAppId.RedisCluster?17:t.t0===L.RadonDBAppId.RedisSentinel?19:t.t0===L.RadonDBAppId.MongoDB?22:t.t0===L.RadonDBAppId.Elasticsearch?25:t.t0===L.RadonDBAppId.Kafka?40:t.t0===L.RadonDBAppId.OpenSearch?43:60;break;case 9:return(0,T.default)(f,"spec.templates.podTemplates[0].spec.containers[0].resources.limits",u),(0,T.default)(f,"spec.templates.podTemplates[0].spec.containers[0].resources.requests",u),t.abrupt("break",61);case 12:return(0,T.default)(f,"spec.postgresql.readwriteinstance.podspec.containers[0].resources",{requests:u,limits:u}),t.abrupt("break",61);case 14:return(0,T.default)(f,"spec.mysqlOpts.resources.requests",u),(0,T.default)(f,"spec.mysqlOpts.resources.limits",u),t.abrupt("break",61);case 17:return"proxy"===i?((0,T.default)(f,"spec.redisProxy.resources.requests",u),(0,T.default)(f,"spec.redisProxy.resources.limits",u)):((0,T.default)(f,"spec.kubernetesConfig.resources.requests",u),(0,T.default)(f,"spec.kubernetesConfig.resources.limits",u)),t.abrupt("break",61);case 19:return(0,T.default)(f,"spec.kubernetesConfig.resources.requests",u),(0,T.default)(f,"spec.kubernetesConfig.resources.limits",u),t.abrupt("break",61);case 22:return(0,T.default)(f,"spec.statefulSet.spec.template.spec.containers[0].resources.requests",u),(0,T.default)(f,"spec.statefulSet.spec.template.spec.containers[0].resources.limits",u),t.abrupt("break",61);case 25:if("kibana"!==i){t.next=36;break}return p=e.getECKKibanaUrl(c,s,o),t.next=29,request.get(p);case 29:return m=t.sent,(0,T.default)(m,"spec.podTemplate.spec.containers[0].resources.requests",u),(0,T.default)(m,"spec.podTemplate.spec.containers[0].resources.limits",u),t.next=34,request.put(p,m);case 34:return e.detail.specifications.kibana=u,t.abrupt("return");case 36:return h=(0,D.default)(f,"spec.nodeSets",[]),(v=h.find((function(e){return e.name.startsWith(i)})))&&((0,T.default)(v,"podTemplate.spec.containers[0].resources",{limits:u,requests:u}),(0,T.default)(v,"podTemplate.spec.containers[0].env[0].value","-Xms".concat(parseInt(u.memory,10)/2,"g -Xmx").concat(parseInt(u.memory,10)/2,"g"))),t.abrupt("break",61);case 40:return(0,T.default)(f,"spec.".concat(i,".resources.requests"),u),(0,T.default)(f,"spec.".concat(i,".resources.limits"),u),t.abrupt("break",61);case 43:if("logstash"!==i){t.next=53;break}return g=e.getLogstashUrl(c,s,o),t.next=47,request.get(g);case 47:return _=t.sent,(0,T.default)(_,"spec.podTemplate.spec.containers[0].resources",{requests:u,limits:u}),t.next=51,request.put(g,_);case 51:return e.detail=H({},e.detail),t.abrupt("return");case 53:if("dashboard"!==i){t.next=56;break}return(0,T.default)(f,"spec.dashboards.resources",{requests:u,limits:u}),t.abrupt("break",61);case 56:return y=(0,D.default)(f,"spec.nodePools",[]),E=y.find((function(e){return(0,D.default)(e,'additionalConfig["node.attr.datatier"]')===i})),(0,T.default)(E,"resources",{limits:u,requests:u}),t.abrupt("break",61);case 60:return t.abrupt("break",61);case 61:return d.customResource=JSON.stringify(f),d.version+=1,t.next=65,request.put((0,U.getManifestApi)({workspace:r,namespace:s,cluster_id:o,cluster:c}),d);case 65:e.updateDetail({detail:d,namespace:s,cluster:c,workspace:r});case 66:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()}}),g);t.default=W},1433:function(e,a,r){"use strict";var n=r(20);r(12),r(5),r(11),r(31),r(6),r(84),r(18),r(48),r(16),r(27),r(9),r(13),r(10),r(4),r(23),r(17),r(85),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(45),r(5),r(11),r(31),r(6),r(84),r(18),r(28),r(48),r(42),r(16),r(27),r(34),r(15),r(9),r(13),r(10),r(4),r(22),r(23),r(57),r(17),r(85),r(7);var o=n(r(43)),c=n(r(30)),s=n(r(58));r(41);var l,i,u,d=n(r(44)),f=n(r(65)),p=n(r(36)),m=n(r(37)),h=n(r(88)),v=n(r(55)),g=n(r(56)),_=n(r(51)),y=n(r(49)),E=(n(r(66)),n(r(26))),b=r(14),S=n(r(68)),O=r(434),R=r(815);function A(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function k(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},a=t.cluster,r=t.namespace,n=t.chi,o=t.app_id,c="".concat(e.baseUrl).concat(e.getPath({cluster:a,namespace:r}),"/pods?labelSelector=");return c+=e.getLabelSelector(o,n)},e.getWatchListUrl=function(t){var a=t.namespace,r=t.cluster,n=t.app_id,o=t.chi;return"api/v1/watch/klusters/".concat(r,"/namespaces/").concat(a,"/pods?labelSelector=").concat(e.getLabelSelector(n,o))},(0,f.default)(e,"fetchList",u,(0,h.default)(e)),e}return(0,m.default)(a,[{key:"getPath",value:function(e){var t=e.namespace,a=e.cluster,r="";return globals.app.isMultiCluster&&a&&(r+="/clusters/".concat(a)),r+="/v1",t&&(r+="/namespaces/".concat(t)),r}},{key:"getCapacityUrl",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.cluster,a=e.namespace,r=e.chi,n=e.app_id,o="".concat(this.baseUrl).concat(this.getPath({cluster:t,namespace:a}),"/persistentvolumeclaims?labelSelector=");return o+=this.getLabelSelector(n,r,!0)}},{key:"getLabelSelector",value:function(e,t,a){switch(e){case R.RadonDBAppId.ClickHouse:return"clickhouse.radondb.com/zooKeeper!=zookeeper,clickhouse.radondb.com/chi=".concat(t);case R.RadonDBAppId.PostgreSQL:return"app-name=".concat(t);case R.RadonDBAppId.RedisCluster:case R.RadonDBAppId.RedisSentinel:return"redis.radondb.com/name=".concat(t);case R.RadonDBAppId.Elasticsearch:return"elasticsearch.k8s.elastic.co/cluster-name=".concat(t);case R.RadonDBAppId.Kafka:return"app.kubernetes.io/instance=".concat(t,"".concat(a?"":",strimzi.io/controller=strimzipodset"));default:return"app.kubernetes.io/instance=".concat(t)}}},{key:"baseUrl",get:function(){return"/api"}}]),a}(S.default),i=(0,y.default)(l.prototype,"data",[b.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),u=(0,y.default)(l.prototype,"fetchList",[b.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return(0,d.default)(o.default.mark((function a(){var r,n,c,l,i,u,d,f,p,m,h,v,g,_,y,b,S,A=arguments;return o.default.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return r=A.length>0&&void 0!==A[0]?A[0]:{},n=r.esKibana,c=(0,s.default)(r,["esKibana"]),a.next=3,request.get(e.getUrl(c));case 3:return l=a.sent,a.next=6,request.get(e.getCapacityUrl(c));case 6:if(i=a.sent,e.isLoading=!0,u=c.dataFilters||{},d=u.limit,f=void 0===d?10:d,p=u.page,m=void 0===p?1:p,h=(0,s.default)(u,["limit","page"]),v={items:[]},g={items:[]},!n){a.next=19;break}return _=c.cluster,y=c.namespace,b=c.chi,a.next=15,request.get("".concat(e.baseUrl).concat(e.getPath({cluster:_,namespace:y}),"/pods?labelSelector=common.k8s.elastic.co/type=kibana,kibana.k8s.elastic.co/name=").concat(b));case 15:return v=a.sent,a.next=18,request.get("".concat(e.baseUrl).concat(e.getPath({cluster:_,namespace:y}),"/persistentvolumeclaims?labelSelector=common.k8s.elastic.co/type=kibana,kibana.k8s.elastic.co/name=").concat(b));case 18:g=a.sent;case 19:return S=l.items.concat(v.items||[]).map((function(e){var a=(0,E.default)(e,"metadata.labels.role"),r="",n=["leader","master","LEADER","primary"].includes(a)?t("PRIMARY_NODE"):t("STANDBY_NODE");if(c.app_id===R.RadonDBAppId.PostgreSQL)"autofailover"===(r=(0,E.default)(e,'metadata.labels["node-name"]'))&&(n=t("MANAGEMENT_NODE"));else if(c.app_id===R.RadonDBAppId.RedisSentinel)"master"===(0,E.default)(e,'metadata.labels["redis.radondb.com/role"]')&&(n=t("PRIMARY_NODE")),"sentinel"===a&&(n=t("SENTINEL_NODE"));else if(c.app_id===R.RadonDBAppId.Elasticsearch)"true"===(0,E.default)(e,'metadata.labels["elasticsearch.k8s.elastic.co/node-master"]')?(n=t("PRIMARY_NODE"),r="master"):"true"===(0,E.default)(e,'metadata.labels["elasticsearch.k8s.elastic.co/node-data_hot"]')?(n=t("HOT_NODE"),r="hot"):"true"===(0,E.default)(e,'metadata.labels["elasticsearch.k8s.elastic.co/node-data_warm"]')?(n=t("WARM_NODE"),r="warm"):"true"===(0,E.default)(e,'metadata.labels["elasticsearch.k8s.elastic.co/node-data_cold"]')?(n=t("COLD_NODE"),r="cold"):"kibana"===(0,E.default)(e,'metadata.labels["common.k8s.elastic.co/type"]')&&(n=t("KIBANA_NODE"),r="kibana");else if(c.app_id===R.RadonDBAppId.Kafka)"kafka"===(0,E.default)(e,'metadata.labels["app.kubernetes.io/name"]')?(n=t("KAFKA_NODE"),r="kafka"):"zookeeper"===(0,E.default)(e,'metadata.labels["app.kubernetes.io/name"]')&&(n=t("ZOOKEEPER_NODE"),r="zookeeper");else if(c.app_id===R.RadonDBAppId.OpenSearch){var o=(0,E.default)(e,'metadata.labels["opster.io/opensearch-nodepool"]');"data-node-hot"===o?(n=t("HOT_NODE"),r="hot"):"data-node-warm"===o?(n=t("WARM_NODE"),r="warm"):"data-node-cold"===o?(n=t("COLD_NODE"),r="cold"):"masters"===o&&(n=t("PRIMARY_NODE"),r="master"),(0,E.default)(e,'metadata.labels["opensearch.opster.io/logstash"]')&&(r="logstash",n=t("LOGSTASH_NODE")),(0,E.default)(e,'metadata.labels["opensearch.cluster.dashboards"]')&&(r="dashboard",n=t("DASHBOARD_NODE"),v.items.push(e))}var s="proxy"===(0,E.default)(e,"metadata.labels.redis_setup_type","");s&&(n=t("PROXY_NODE"));var l=(0,O.getPodStatusAndRestartCount)(e);return{name:e.metadata.name,creationTimestamp:e.metadata.creationTimestamp,status:(0,E.default)(l,"type","creating"),ip:e.status.podIP,spec:(0,E.default)(e,"spec.containers[0].resources.limits",{cpu:"",memory:""}),serviceName:e.spec.subdomain,capacity:(0,E.default)(i.items.concat(g.items||[]).find((function(t){return t.metadata.name.includes(e.metadata.name)||t.metadata.name===(0,E.default)(e,"metadata.labels[deployment-name]")})),"status.capacity.storage"),canDelete:c.app_id!==R.RadonDBAppId.ClickHouse,deploymentName:(0,E.default)(e,"metadata.labels[deployment-name]"),noMonitoring:(0,E.default)(v,"items",[]).includes(e),isPredixy:s,roleText:n,nodeRole:r}})).filter((function(e){var t=!0;if(c.app_id===R.RadonDBAppId.Elasticsearch&&e.name.includes("exporter")&&(t=!1),h)for(var a in h)if(e[a]&&!(t=e[a].includes(h[a])))break;return t})),e.list.update(k({data:S.slice((m-1)*f,m*f),total:S.length||0,filters:h,limit:Number(f),page:Number(m),isLoading:!1},e.list.silent?{}:{selectedRowKeys:[]})),e.data=S,e.isLoading=!1,a.abrupt("return",S);case 24:case"end":return a.stop()}}),a)})))}}),l);a.default=D},1441:function(e,t,a){"use strict";a(15);var r=a(20);a(5),a(9),a(4),a(23),a(17),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(45),a(5),a(42),a(9),a(4),a(23),a(57),a(17);var n,o=r(a(36)),c=r(a(37)),s=r(a(55)),l=r(a(56)),i=r(a(51)),u=r(a(49)),d=a(14);function f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,i.default)(e);if(t){var n=(0,i.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,l.default)(this,a)}}var p=(n=function(e){(0,s.default)(a,e);var t=f(a);function a(){var e;(0,o.default)(this,a);for(var r=arguments.length,n=new Array(r),c=0;c0&&void 0!==arguments[0]?arguments[0]:{};return"".concat(e.apiVersion).concat(e.getPath(t),"/services").concat(t.dryRun?"?dryRun=All":"")},e.getResourceUrl=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return"".concat(e.apiVersion).concat(e.getPath(t),"/services")},e}return(0,c.default)(a,[{key:"getNacosConfig",value:function(e){var t=e.cluster,a="apis/clusters/".concat(t,"/aggregated.springcloud.kubesphere.io/v1alpha1/configs/nacos");return request.get(a)}},{key:"apiVersion",get:function(){return"apis/aggregated.springcloud.kubesphere.io/v1alpha1"}}]),a}(r(a(1053)).default),(0,u.default)(n.prototype,"getNacosConfig",[d.action],Object.getOwnPropertyDescriptor(n.prototype,"getNacosConfig"),n.prototype),n);t.default=p},1442:function(e,t,a){"use strict";a(15);var r=a(20);a(5),a(9),a(4),a(23),a(17),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(45),a(5),a(42),a(9),a(4),a(23),a(57),a(17);var n,o=r(a(36)),c=r(a(37)),s=r(a(55)),l=r(a(56)),i=r(a(51)),u=r(a(49)),d=a(14);function f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,i.default)(e);if(t){var n=(0,i.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,l.default)(this,a)}}var p=(n=function(e){(0,s.default)(a,e);var t=f(a);function a(){var e;(0,o.default)(this,a);for(var r=arguments.length,n=new Array(r),c=0;c0&&void 0!==arguments[0]?arguments[0]:{};return"".concat(e.apiVersion).concat(e.getPath(t),"/gateways").concat(t.dryRun?"?dryRun=All":"")},e.getResourceUrl=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return"".concat(e.apiVersion).concat(e.getPath(t),"/gateways")},e.getWatchListUrl=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return"".concat(e.apiVersion,"/watch").concat(e.getPath(t),"/gateways")},e}return(0,c.default)(a,[{key:"scale",value:function(e,t){var a={spec:{deployment:{replicas:t}}};return this.submitting(request.patch(this.getDetailUrl(e),a))}}]),a}(r(a(1053)).default),(0,u.default)(n.prototype,"scale",[d.action],Object.getOwnPropertyDescriptor(n.prototype,"scale"),n.prototype),n);t.default=p},1443:function(e,t,a){e.exports={wrapper:"_1uaaKr3Qydwsg51ILBRYCg",tabs:"_3nJI9guJPMvk12Q7gjPZmU",tab:"_2O3IP_JlAV9AbTpuDHMXIl",on:"dtWNnffgqT6fXfJMluy0E",disc:"rNqC-zU5OV0lmTkB9WeqN",dictitle:"_26zXEdaVS1OkdX0T2prDH0",rulemenu:"_2hk_pGWlc9LZSlUNVZpB_L",rulebody:"_200wgR_dslfHnyTKUfp3CE",rulegroup:"_1aEBcghuz30TE0D3S8j9b1",subtitle:"_1o0TorXdL5BiqInf6gl9xV",disp:"_3gRCidjr27U-JF2kva4mez",row:"_2GRO4qEEEL8YVdvR1abyMa",prow:"_1ZcG7g_ZKJsG2z9VAyV3lg",cell:"_2L-swNbTQv9wN1kfqt6Onb",pcell:"_1y3YJPFi3g8WpOYzgcBbsx",port:"_3IK-Z28rsJJ9d3IbUC984X",avatar:"_3Em1hnqijkxpfnBYfFZO18"}},1444:function(e,t,a){"use strict";var r=a(20);a(12),a(5),a(11),a(6),a(29),a(18),a(16),a(9),a(13),a(10),a(4),a(22),a(23),a(17),a(38),a(7),a(32),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(12),a(45),a(5),a(11),a(6),a(29),a(18),a(28),a(42),a(16),a(34),a(15),a(9),a(13),a(10),a(4),a(22),a(23),a(57),a(17),a(38),a(7),a(32);var n=r(a(43)),o=r(a(30)),c=r(a(58));a(41);var s,l,i,u=r(a(44)),d=r(a(65)),f=r(a(36)),p=r(a(37)),m=r(a(88)),h=r(a(55)),v=r(a(56)),g=r(a(51)),_=r(a(49)),y=(r(a(66)),r(a(26))),E=r(a(74)),b=r(a(198)),S=r(a(63)),O=r(a(855)),R=r(a(480)),A=a(14),k=a(52),T=a(72),D=r(a(105));function C(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function P(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},s=Math.floor((new Date).getTime()/1e3),l=P({queryTime:s,duration:300,step:30,rateInterval:"30s","filters[]":["request_count","request_duration","request_error_count","tcp_sent","tcp_received"],direction:"inbound",reporter:"destination"},c);return"http"===o&&(l.requestProtocol="http"),Promise.all([request.get("kapis/servicemesh.kubesphere.io/v1alpha2".concat(this.getPath({cluster:t,namespace:a}),"/workloads/").concat(r,"/metrics"),l),request.get("kapis/servicemesh.kubesphere.io/v1alpha2".concat(this.getPath({cluster:t,namespace:a}),"/workloads/").concat(n,"/metrics"),l)])}},{key:"fetchHealth",value:function(e){var t=e.cluster,a=e.namespace,r=e.newWorkloadName,n=e.oldWorkloadName,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},c=P({rateInterval:"30s"},o);return Promise.all([request.get("kapis/servicemesh.kubesphere.io/v1alpha2".concat(this.getPath({cluster:t,namespace:a}),"/workloads/").concat(r,"/health"),c),request.get("kapis/servicemesh.kubesphere.io/v1alpha2".concat(this.getPath({cluster:t,namespace:a}),"/workloads/").concat(n,"/health"),c)])}},{key:"fetchComponents",value:(t=(0,u.default)(n.default.mark((function e(t){var a,r,s,l,i,u,d,f,p,m,h,v,g,_,y;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.cluster,s=t.namespace,l=t.labelSelector,i=t.newVersion,u=t.oldVersion,d=t.service,f=t.silent,p=(0,c.default)(t,["cluster","namespace","labelSelector","newVersion","oldVersion","service","silent"]),!f&&(this.isComponentsLoading=!0),s){e.next=5;break}return this.isComponentsLoading=!1,e.abrupt("return");case 5:return m=p,(0,S.default)(l)||(m.labelSelector=l),e.next=9,request.get("api/v1".concat(this.getPath({cluster:r,namespace:s}),"/pods"),m);case 9:h=e.sent,v=h.items.map(D.default.pods),g=(0,O.default)(v,"labels.version"),_=g[i]||[],y=g[u]||[],this.components.data=(a={},(0,o.default)(a,i,{name:d,version:i,pods:_,desire:_.length,available:_.filter((function(e){return"Running"===e.status.phase})).length}),(0,o.default)(a,u,{name:d,version:u,pods:y,desire:y.length,available:y.filter((function(e){return"Running"===e.status.phase})).length}),a),this.isComponentsLoading=!1;case 16:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})},{key:"create",value:function(e,t){var a,r=t.cluster,n=t.namespace;if((0,b.default)(e,"strategy")&&(a=request.post(this.getListUrl({cluster:r,namespace:n}),e.strategy)),(0,b.default)(e,"workload")){var o=(0,y.default)(e,"workload.kind","Deployment"),c=(0,R.default)(T.MODULE_KIND_MAP,(function(e){return e===o}))||"deployments";a.then(request.post("apis/apps/v1".concat(this.getPath({cluster:r,namespace:n}),"/").concat(c),e.workload))}return this.submitting(a)}},{key:"update",value:function(e,t){var a=e.name,r=e.cluster,n=e.namespace,o=e.newWorkloadName,c=e.newVersion,s=e.resourceVersion,l=[],i="";if((0,b.default)(t,"workload")){var u=(0,y.default)(t,"workload.kind","Deployment"),d=(0,R.default)(T.MODULE_KIND_MAP,(function(e){return e===u}))||"deployments";if((i=(0,y.default)(t.workload,"metadata.labels.version"))===c){var f=(0,y.default)(t.workload,"metadata.name");l.push(request.put("apis/apps/v1".concat(this.getPath({cluster:r,namespace:n}),"/").concat(d,"/").concat(f),t.workload))}else l.push(request.delete("apis/apps/v1".concat(this.getPath({cluster:r,namespace:n}),"/").concat(d,"/").concat(o)),request.post("apis/apps/v1".concat(this.getPath({cluster:r,namespace:n}),"/").concat(d),t.workload))}if((0,b.default)(t,"strategy")){if((0,E.default)(t.strategy,"metadata.resourceVersion",s),i&&i!==c)(0,y.default)(t.strategy,"spec.governor")===c&&(0,E.default)(t.strategy,"spec.governor",i),((0,y.default)(t.strategy,"spec.template.spec.http")||(0,y.default)(t.strategy,"spec.template.spec.tcp",[])).forEach((function(e){e.route&&e.route.length>0&&e.route.forEach((function(e){(0,y.default)(e,"destination.subset")===c&&(0,E.default)(e,"destination.subset",i)})),e.mirror&&e.mirror.subset===c&&(e.mirror.subset=i)}));l.push(request.put(this.getDetailUrl({name:a,cluster:r,namespace:n}),t.strategy))}return this.submitting(Promise.all(l))}}]),s}(r(a(68)).default),l=(0,_.default)(s.prototype,"isComponentsLoading",[A.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),i=(0,_.default)(s.prototype,"components",[A.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{data:{}}}}),(0,_.default)(s.prototype,"fetchList",[A.action],Object.getOwnPropertyDescriptor(s.prototype,"fetchList"),s.prototype),(0,_.default)(s.prototype,"fetchMetrics",[A.action],Object.getOwnPropertyDescriptor(s.prototype,"fetchMetrics"),s.prototype),(0,_.default)(s.prototype,"fetchHealth",[A.action],Object.getOwnPropertyDescriptor(s.prototype,"fetchHealth"),s.prototype),(0,_.default)(s.prototype,"fetchComponents",[A.action],Object.getOwnPropertyDescriptor(s.prototype,"fetchComponents"),s.prototype),(0,_.default)(s.prototype,"create",[A.action],Object.getOwnPropertyDescriptor(s.prototype,"create"),s.prototype),(0,_.default)(s.prototype,"update",[A.action],Object.getOwnPropertyDescriptor(s.prototype,"update"),s.prototype),s);t.default=I},1445:function(e,t,a){e.exports={tag:"_3TU-AgwZKhTYBj4DFyGaYd",title:"_369ph_E2DAX2y_NpgwxabT",chart:"_277fRQi2DOGBy4yI3roVrO",chartDetail:"U6o8umlM6uCM_XaU0JaNm",circle:"_1xjLL8SyJTU8mVCMJafm71",leftPane:"_3De3dzq3-ZtBdXNIpWKeK7",selected:"_1Rq06DmTF8zwtDrYhm_Jm4",tip:"_2_wSsLRObqXFZ_kT0eXPhg"}},1446:function(e,t,a){e.exports={wrapper:"NIYOp_3ZpxtucxFOhGDxS",image:"_12zpgu_3ah3oONNKLDWl4c",footer:"_2R2JnOZA8qwhANxwDqziDW",items:"_3HAAkylLBWtyi2Ulicm5mP",item:"_3ap2A7wsdNinxlpfOJWRN8",icon:"_1dvmRmxMSb9SuqZATuQ3M4",iconExtra:"-pMYsB5LXpaiC807PW5sd",title:"_33LJI1QvrcWsEKm2a6JbX1",left:"_3u7seBT_Bxszz6-KADL9rG",right:"_1CV-q62afWGICi54uwkQM-",versions:"_1N38nS5eFjvxklmLdiNBJi",tag:"_10BSpN1wSXatPsR4gumtiH",loading:"_3oncm8IhLXZJiwMH55s8mf",chart:"_20slDQ31DTSOgN5QFZMsWa",chartDetail:"bGmKWnw69cnOMBg1gKklH",circle:"_2au74k5NIUPy1uZMIhmp4j",tip:"_6o9I9WEuv9Q3iooA87p-2"}},1447:function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(18),r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(18),r(42),r(4),r(23),r(57),r(17);var o,c,s,l=n(r(36)),i=n(r(37)),u=n(r(55)),d=n(r(56)),f=n(r(51)),p=n(r(0)),m=n(r(1)),h=n(r(63)),v=r(239),g=r(186),_=n(r(789)),y=n(r(443)),E=r(52),b=n(r(4735)),S=n(r(1910));function O(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,f.default)(e);if(t){var n=(0,f.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,d.default)(this,a)}}var R=(0,v.observer)((s=c=function(e){(0,u.default)(r,e);var a=O(r);function r(){var e;(0,l.default)(this,r);for(var t=arguments.length,n=new Array(t),o=0;o0&&void 0!==arguments[0]?arguments[0]:{},a=t.namespace,r=t.cluster,n=t.name,o="".concat(e.baseUrl).concat(e.getPath({namespace:a,cluster:r}),"/applications");return n?"".concat(o,"/").concat(n):o},e.getDeleteUrl=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=t.workspace,r=t.namespace,n=t.cluster,o=t.name,c="".concat(e.baseUrl).concat(e.getDeletePath({workspace:a,namespace:r,cluster:n}),"/applications");return o?"".concat(c,"/").concat(o):c},(0,l.default)(e,"fetchList",g,(0,d.default)(e)),(0,l.default)(e,"fetchDetail",_,(0,d.default)(e)),(0,l.default)(e,"delete",y,(0,d.default)(e)),(0,l.default)(e,"batchDelete",E,(0,d.default)(e)),e}return(0,u.default)(a,[{key:"getPath",value:function(e){var t=e.cluster,a=e.namespace,r="";return globals.app.isMultiCluster&&t&&(r+="/klusters/".concat(t)),a&&(r+="/namespaces/".concat(a)),r}},{key:"getDeletePath",value:function(e){var t=e.workspace,a=e.cluster,r=e.namespace,n="";return t&&(n+="/workspaces/".concat(t)),globals.app.isMultiCluster&&a&&(n+="/clusters/".concat(a)),r&&(n+="/namespaces/".concat(r)),n}},{key:"baseUrl",get:function(){return"kapis/native.helm/v1alpha1"}}]),a}(k.default),g=(0,h.default)(v.prototype,"fetchList",[R.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return(0,s.default)(n.default.mark((function t(){var a,r,s,l,i,u,d,f,p,m,h,v,g,_,y,E=arguments;return n.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=E.length>0&&void 0!==E[0]?E[0]:{},r=a.limit,s=a.page,l=a.cluster,i=a.namespace,u=a.workspace,d=a.more,f=a.status,p=a.sortBy,m=a.reverse,h=(0,c.default)(a,["limit","page","cluster","namespace","workspace","more","status","sortBy","reverse"]),e.list.isLoading=!0,v={conditions:(0,A.getFilterString)({status:f})||void 0},p||void 0!==m||(p="status_time"),(0,O.default)(h)||(g=(0,A.getFilterString)(h))&&(v.conditions+=",".concat(g)),r!==1/0&&(v.paging="limit=".concat(r||10,",page=").concat(s||1)),p&&(v.orderBy=p),m&&(v.reverse=!0),t.next=10,request.get(e.getUrl({namespace:i,cluster:l}),v);case 10:return _=t.sent,y=(_.items||[]).map((function(e){return C(C({},N(e)),{},{workspace:u,cluster:l})})),Object.assign(e.list,{data:d?[].concat((0,o.default)(e.list.data),(0,o.default)(y)):y,total:_.total_count||0,limit:Number(r)||10,page:Number(s)||1,order:p,reverse:m,filters:h,selectedRowKeys:[]}),e.list.isLoading=!1,t.abrupt("return",y);case 15:case"end":return t.stop()}}),t)})))}}),_=(0,h.default)(v.prototype,"fetchDetail",[R.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(){var t=(0,s.default)(n.default.mark((function t(a){var r,o,c,s,l;return n.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=a.workspace,o=a.namespace,c=a.cluster,s=a.name,e.isLoading=!0,t.next=4,request.get(e.getUrl({namespace:o,cluster:c,name:s}));case 4:l=t.sent,e.detail=C(C({},N(l)),{},{workspace:r,namespace:o,cluster:c}),e.isLoading=!1;case 7:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()}}),y=(0,h.default)(v.prototype,"delete",[R.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(t){var a=t.name,r=t.cluster,n=t.workspace,o=t.zone;return e.submitting(request.delete(e.getDeleteUrl({namespace:o,name:a,cluster:r,workspace:n})))}}}),E=(0,h.default)(v.prototype,"batchDelete",[R.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(t,a){var r=a.namespace,n=a.cluster,o=a.workspace;return e.submitting(Promise.all(t.map((function(t){return request.delete(e.getDeleteUrl({namespace:r,cluster:n,workspace:o,name:t}))}))))}}}),v);t.default=I},1899:function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(4),r(23),r(24),r(17),r(62),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(28),r(42),r(4),r(23),r(57),r(24),r(17),r(62);var o,c=n(r(36)),s=n(r(37)),l=n(r(55)),i=n(r(56)),u=n(r(51)),d=n(r(26)),f=n(r(0)),p=r(239),m=r(317),h=n(r(961)),v=n(r(792)),g=n(r(1609));function _(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,u.default)(e);if(t){var n=(0,u.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,i.default)(this,a)}}var y=(0,p.inject)("rootStore")(o=(0,p.observer)(o=function(e){(0,l.default)(r,e);var a=_(r);function r(){var e;(0,c.default)(this,r);for(var t=arguments.length,n=new Array(t),o=0;o0&&void 0!==arguments[0]?arguments[0]:{};return"".concat(e.listApiVersion).concat(e.getPath(t),"/").concat(e.module)},e}return(0,d.default)(r,[{key:"fetchList",value:(t=(0,i.default)(n.default.mark((function e(){var t,a,r,c,l,i,u,d,f,p=this,m=arguments;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=m.length>0&&void 0!==m[0]?m[0]:{},a=t.cluster,r=t.workspace,c=t.namespace,l=t.more,i=t.devops,u=(0,s.default)(t,["cluster","workspace","namespace","more","devops"]),this.list.isLoading=!0,u.sortBy||void 0!==u.ascending||(u.sortBy=v.LIST_DEFAULT_ORDER[this.module]||"createTime"),u.limit!==1/0&&-1!==u.limit||(u.limit=-1,u.page=1),u.limit=u.limit||10,u.page=u.page||1,e.next=8,request.get(this.getListResourceUrl({cluster:a,workspace:r,namespace:c,devops:i}),this.getFilterParams(u));case 8:return d=e.sent,f=((0,g.default)(d,"items")||[]).map((function(e){return E({cluster:a,namespace:c},p.mapper(e))})),this.list.update(E(E({data:l?[].concat((0,o.default)(this.list.data),(0,o.default)(f)):f,total:d.totalItems||d.total_count||f.length||0},u),{},{limit:Number(u.limit)||10,page:Number(u.page)||1,isLoading:!1},this.list.silent?{}:{selectedRowKeys:[]})),e.abrupt("return",f);case 12:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})},{key:"rollBack",value:function(e,t){e.module;var a=(0,s.default)(e,["module"]);return this.submitting(request.patch(this.getDetailUrl(a),t))}},{key:"listApiVersion",get:function(){return"apis/aggregated.springcloud.kubesphere.io/v1alpha1"}}]),r}(r(a(1053)).default),(0,h.default)(l.prototype,"fetchList",[_.action],Object.getOwnPropertyDescriptor(l.prototype,"fetchList"),l.prototype),(0,h.default)(l.prototype,"rollBack",[_.action],Object.getOwnPropertyDescriptor(l.prototype,"rollBack"),l.prototype),l);t.default=S},1901:function(e,t,a){"use strict";var r=a(20);a(12),a(5),a(11),a(6),a(18),a(27),a(9),a(13),a(10),a(4),a(23),a(17),a(7),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(12),a(45),a(5),a(11),a(6),a(18),a(28),a(42),a(27),a(34),a(15),a(9),a(13),a(10),a(4),a(22),a(23),a(57),a(17),a(7);var n=r(a(43)),o=r(a(61)),c=r(a(30)),s=r(a(58));a(41);var l,i=r(a(44)),u=r(a(36)),d=r(a(37)),f=r(a(55)),p=r(a(56)),m=r(a(51)),h=r(a(49)),v=r(a(26)),g=a(72),_=a(14);function y(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function E(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};return"".concat(e.listApiVersion).concat(e.getPath(t),"/").concat(e.module)},e}return(0,d.default)(r,[{key:"fetchList",value:(t=(0,i.default)(n.default.mark((function e(){var t,a,r,c,l,i,u,d,f,p=this,m=arguments;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=m.length>0&&void 0!==m[0]?m[0]:{},a=t.cluster,r=t.workspace,c=t.namespace,l=t.more,i=t.devops,u=(0,s.default)(t,["cluster","workspace","namespace","more","devops"]),this.list.isLoading=!0,u.sortBy||void 0!==u.ascending||(u.sortBy=g.LIST_DEFAULT_ORDER[this.module]||"createTime"),u.limit!==1/0&&-1!==u.limit||(u.limit=-1,u.page=1),u.limit=u.limit||10,u.page=u.page||1,e.next=8,request.get(this.getListResourceUrl({cluster:a,workspace:r,namespace:c,devops:i}),this.getFilterParams(u));case 8:return d=e.sent,f=((0,v.default)(d,"items")||[]).map((function(e){return E({cluster:a,namespace:c},p.mapper(e))})),this.list.update(E(E({data:l?[].concat((0,o.default)(this.list.data),(0,o.default)(f)):f,total:d.totalItems||d.total_count||f.length||0},u),{},{limit:Number(u.limit)||10,page:Number(u.page)||1,isLoading:!1},this.list.silent?{}:{selectedRowKeys:[]})),e.abrupt("return",f);case 12:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})},{key:"listApiVersion",get:function(){return"apis/aggregated.springcloud.kubesphere.io/v1alpha1"}}]),r}(r(a(1053)).default),(0,h.default)(l.prototype,"fetchList",[_.action],Object.getOwnPropertyDescriptor(l.prototype,"fetchList"),l.prototype),l);t.default=S},1902:function(e,t,a){e.exports={listWrapper:"_306SJ8014hcSqWLICeoQA",item:"WDWTymPoLAk-NQaV-aiJT",col:"_3D8OkQ4Q7A-gzFzxd-vk68",statusBox:"_3qTllmrJpXsLHpT_-vq2bz",taints:"_1QLp3UgzsreIUcdgtIi6PQ",overview:"_1_WQtAn7QzNo8GxtaUlItg",resource:"QKy3dkJINg9lS382QMPIE",name:"_2Bfv6QYK-ju5cdp3QTu_vM",status:"_1pqlIBzzPmu3gQVb79O-Y_",cpu:"_1sKADynqdyHmISVoZg-Ts8",pods:"_4a-eEXscRDVajQp1U3zb8",empty:"_2rmLYtfLiXo3OI9AFcR07S",icon:"_3ylajECHnbMgeDYGzkNFwb",title:"_3c9b_Ta0BkrA6TrJaCxqXI"}},1903:function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(42),r(4),r(23),r(57),r(17);var o,c=n(r(315)),s=n(r(36)),l=n(r(37)),i=n(r(55)),u=n(r(56)),d=n(r(51)),f=n(r(26)),p=n(r(74)),m=n(r(800)),h=n(r(0)),v=r(239),g=r(186),_=n(r(1684)),y=n(r(932)),E=n(r(318)),b=r(52),S=r(72),O=n(r(4673)),R=n(r(4675));function A(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,d.default)(e);if(t){var n=(0,d.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,u.default)(this,a)}}var k=(0,v.observer)(o=function(e){(0,i.default)(r,e);var a=A(r);function r(e){var n;return(0,s.default)(this,r),(n=a.call(this,e)).versionValidator=function(e,a,r){if(!a)return r();var o=(0,f.default)(n.formTemplate,"metadata.labels.app",""),c="".concat(o,"-").concat(a);n.workloadStore.checkName({name:c,namespace:n.namespace,cluster:n.props.cluster}).then((function(a){if(a.exist)return r({message:t("NEW_VERSION_NUMBER_EXIST_DESC",{name:c}),field:e.field});r()}))},n.handleVersionChange=(0,m.default)((function(e){var t=(0,f.default)(n.formTemplate,"metadata.labels.app",""),a="".concat(t,"-").concat(e);(0,p.default)(n.formTemplate,"metadata.name",a),(0,b.mergeLabels)(n.formTemplate,{version:e}),(0,p.default)(n.props.formTemplate,'strategy.metadata.annotations["servicemesh.kubesphere.io/newWorkloadName"]',a)}),200),n.module=(0,f.default)(e.formTemplate,'strategy.metadata.annotations["servicemesh.kubesphere.io/workloadType"]',"deployments"),n.workloadStore=new E.default(n.module),n}return(0,l.default)(r,[{key:"renderReplicasControl",value:function(){return h.default.createElement(g.Column,{className:"is-narrow"},h.default.createElement(g.Form.Item,{className:R.default.narrow,label:t("NEW_VERSION_NUMBER"),desc:t("NEW_VERSION_NUMBER_DESC"),rules:[{required:!0,message:t("NEW_VERSION_NUMBER_EMPTY_DESC")},{pattern:S.PATTERN_COMPONENT_VERSION,message:t("NEW_VERSION_NUMBER_INVALID_DESC")},{validator:this.versionValidator}]},h.default.createElement(g.Input,{name:"metadata.labels.version",onChange:this.handleVersionChange,disabled:this.isEdit,maxLength:16})),h.default.createElement("div",{className:R.default.specify},h.default.createElement(g.Form.Item,null,h.default.createElement(_.default,{name:"spec.replicas"}))))}},{key:"renderContainerList",value:function(){var e=(0,f.default)(this.formTemplate,"".concat(this.prefix,"spec"));return h.default.createElement(g.Column,null,h.default.createElement(g.Form.Item,{rules:[{validator:this.containersValidator}]},h.default.createElement(O.default,{className:R.default.containers,name:"".concat(this.prefix,"spec.containers"),onShow:this.showContainer,onDelete:this.handleDelete,specTemplate:e,disabled:this.isEdit})))}},{key:"render",value:function(){var e=this.props,t=e.formRef,a=e.formProps,r=this.state,n=r.showContainer,o=r.selectContainer;return n?this.renderContainerForm(o):h.default.createElement(g.Form,(0,c.default)({data:this.formTemplate,ref:t},a),h.default.createElement(g.Columns,null,this.renderReplicasControl(),this.renderContainerList()))}},{key:"formTemplate",get:function(){return this.props.formTemplate.workload||{}}},{key:"namespace",get:function(){return(0,f.default)(this.formTemplate,"metadata.namespace")}}]),r}(y.default))||o;a.default=k},1904:function(e,t,a){e.exports={list:"_1y7srBKDMimPCBz1ivcnXL",card:"_1CNnvTpcwGUSGgDJtaTxgE",inputs:"_3JM-KVcZd0CJ9NCBQTJ3r",limits:"_36BBL6z_siYtS2MY-CTltL",limit:"qFBDqsZYRUQVnqH4lnOAL"}},1905:function(e,t,a){"use strict";a(15);var r=a(20);a(4),a(23),a(17),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(45),a(42),a(4),a(23),a(57),a(17);var n,o=r(a(315)),c=r(a(36)),s=r(a(37)),l=r(a(55)),i=r(a(56)),u=r(a(51)),d=r(a(0)),f=a(239),p=r(a(26)),m=r(a(4676)),h=r(a(4687)),v=r(a(4691));function g(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,u.default)(e);if(t){var n=(0,u.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,i.default)(this,a)}}var _={Canary:m.default,Bluegreen:h.default,Mirror:v.default},y=(0,f.observer)(n=function(e){(0,l.default)(a,e);var t=g(a);function a(){return(0,c.default)(this,a),t.apply(this,arguments)}return(0,s.default)(a,[{key:"render",value:function(){var e=this.props,t=e.formRef,a=e.formProps,r=_[this.strategyType];return r?d.default.createElement(r,(0,o.default)({formRef:t,formTemplate:this.formTemplate},a)):null}},{key:"strategyType",get:function(){return(0,p.default)(this.formTemplate,"strategy.spec.type","")}},{key:"formTemplate",get:function(){return this.props.formTemplate}}]),a}(d.default.Component))||n;t.default=y},1906:function(e,a,r){"use strict";var n=r(20);r(12),r(5),r(11),r(6),r(84),r(18),r(16),r(9),r(13),r(10),r(4),r(23),r(24),r(17),r(85),r(62),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.Component=a.default=void 0,r(12),r(45),r(5),r(11),r(6),r(84),r(18),r(28),r(42),r(16),r(34),r(15),r(9),r(13),r(10),r(4),r(23),r(57),r(24),r(17),r(85),r(62),r(7);var o=n(r(30)),c=n(r(36)),s=n(r(37)),l=n(r(55)),i=n(r(56)),u=n(r(51)),d=n(r(63)),f=n(r(0)),p=r(186),m=r(239),h=n(r(240)),v=n(r(833)),g=n(r(4693)),_=n(r(1444)),y=n(r(4703)),E=n(r(1446));function b(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function S(e){for(var t=1;t0&&void 0!==E[0]?E[0]:{},r=a.limit,c=void 0===r?10:r,s=a.page,l=void 0===s?1:s,i=a.workspace,u=a.cluster,d=a.namespace,a.more,a.status,f=a.reverse,p=a.id,m=a.app_id,h=(0,o.default)(a,["limit","page","workspace","cluster","namespace","more","status","reverse","id","app_id"]),e.list.isLoading=!0,v=[],m!==C.RadonDBAppId.PostgreSQL){t.next=10;break}return t.next=6,request.get(e.getUrl({app_id:m,workspace:i,namespace:d,cluster:u,cluster_id:p}));case 6:g=t.sent,v=(0,O.default)(g,"status.backups_list",[]).reverse(),t.next=14;break;case 10:return t.next=12,request.get(e.getUrl({app_id:m,workspace:i,namespace:d,cluster:u,cluster_id:p}));case 12:_=t.sent,v=_.items?_.items.sort((function(e,t){return new Date(t.metadata.creationTimestamp).getTime()-new Date(e.metadata.creationTimestamp).getTime()})):[];case 14:return y=v.map((function(e){return w(w({},L(e,{app_id:m,workspace:i,namespace:d,cluster:u})),{},{cluster:u})})).filter((function(e){return!h.keyword||(0,O.default)(e,"name","").includes(h.keyword)})),Object.assign(e.list,{data:y.slice((l-1)*c,l*c),total:y.length,limit:Number(c)||10,page:Number(l)||1,reverse:f,filters:h,selectedRowKeys:[]}),e.list.isLoading=!1,t.abrupt("return",y);case 18:case"end":return t.stop()}}),t)})))}}),_=(0,m.default)(v.prototype,"add",[S.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(){var t=(0,c.default)(n.default.mark((function t(a){var r,o,c,s,l,i,u,d,f,p,m,h,v,g,_;return n.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:r=a.name,o=a.namespace,c=a.cluster_id,s=a.alias,l=a.image,t.t0=a.app_id,t.next=t.t0===C.RadonDBAppId.MySQL?4:t.t0===C.RadonDBAppId.PostgreSQL?14:38;break;case 4:return i=JSON.parse(JSON.stringify(x)),(0,R.default)(i,"metadata.name","".concat(c.substring(0,30),"-").concat(r)),(0,R.default)(i,"metadata.namespace",o),(0,R.default)(i,'metadata.annotations["kubesphere.io/alias-name"]',s),(0,R.default)(i,"spec.clusterName",c),(0,R.default)(i,'metadata.labels["cluster"]',c),(0,R.default)(i,"spec.image",l),t.next=13,request.post(e.getUrl(a),i);case 13:return t.abrupt("break",39);case 14:return u=window.atob||D.safeAtob,t.next=17,request.get((0,P.getManifestApi)(a));case 17:return d=t.sent,t.next=20,request.get((0,P.getDmpSecrets)({namespace:"dmp-system",cluster_id:"dmp-managed-s3-secret"}));case 20:return f=t.sent,p=u((0,O.default)(f,"data.s3-access-key")),m=u((0,O.default)(f,"data.s3-secret-key")),h=u((0,O.default)(f,"data.pg-s3-bucket")),v=u((0,O.default)(f,"data.s3-endpoint")),g=JSON.parse(d.customResource),_=(0,O.default)(g,"spec.backupCluster.backupToS3.manual.trigger-id",1),(0,R.default)(g,"spec.S3.ACCESS_KEY",p),(0,R.default)(g,"spec.S3.SECRET_KEY",m),(0,R.default)(g,"spec.S3.BUCKET",h),(0,R.default)(g,"spec.S3.ENDPOINT",v),(0,R.default)(g,"spec.S3.PATH","".concat(o,"/backup")),(0,R.default)(g,"spec.backupCluster.backupToS3.manual.trigger-id",_+1),d.customResource=JSON.stringify(g),d.version+=1,t.next=37,request.put((0,P.getManifestApi)(a),d);case 37:case 38:return t.abrupt("break",39);case 39:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()}}),y=(0,m.default)(v.prototype,"delete",[S.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(){var t=(0,c.default)(n.default.mark((function t(a){var r,o,c;return n.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:t.t0=a.app_id,t.next=t.t0===C.RadonDBAppId.MySQL?3:t.t0===C.RadonDBAppId.PostgreSQL?6:17;break;case 3:return t.next=5,request.delete(e.getUrl(a));case 5:return t.abrupt("break",18);case 6:return r=(0,P.getManifestApi)(w(w({},a),{},{cluster_id:a.id})),t.next=9,request.get(r);case 9:return o=t.sent,c=JSON.parse(o.customResource),(0,R.default)(c,"spec.backupToDelete","".concat(Date.now(),"|").concat(a.name)),o.customResource=JSON.stringify(c),o.version+=1,t.next=16,request.put(r,o);case 16:case 17:return t.abrupt("break",18);case 18:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()}}),E=(0,m.default)(v.prototype,"batchDelete",[S.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return function(){var e=(0,c.default)(n.default.mark((function e(t){var a,r,c,s,l,i;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=t.selectedItems,r=void 0===a?[]:a,c=(0,o.default)(t,["selectedItems"]),s=(0,P.getManifestApi)(w(w({},c),{},{cluster_id:c.id})),e.next=4,request.get(s);case 4:l=e.sent,e.t0=c.app_id,e.next=e.t0===C.RadonDBAppId.PostgreSQL?8:15;break;case 8:return i=JSON.parse(l.customResource),(0,R.default)(i,"spec.backupToDelete","".concat(Date.now(),"|").concat(r.map((function(e){return e.name})).join("|"))),l.customResource=JSON.stringify(i),l.version+=1,e.next=14,request.put(s,l);case 14:case 15:return e.abrupt("break",16);case 16:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()}}),b=(0,m.default)(v.prototype,"autoBackup",[S.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return function(){var e=(0,c.default)(n.default.mark((function e(t){var a,r,c,s,l,i,u;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=t.backupSchedule,r=t.retentionTime,c=(0,o.default)(t,["backupSchedule","retentionTime"]),s=(0,P.getManifestApi)(c),e.next=4,request.get(s);case 4:l=e.sent,e.t0=c.app_id,e.next=e.t0===C.RadonDBAppId.PostgreSQL?8:e.t0===C.RadonDBAppId.MySQL?15:22;break;case 8:return i=JSON.parse(l.customResource),""!==a?((0,R.default)(i,"spec.backupCluster.backupToS3.cron.enable",!0),(0,R.default)(i,"spec.backupCluster.backupToS3.cron.schedule",a),(0,R.default)(i,"spec.backupCluster.backupToS3.policy.retention","RECOVERY WINDOW OF ".concat(r," DAYS"))):((0,k.default)(i,"spec.backupCluster.backupToS3.cron"),(0,R.default)(i,"spec.backupCluster.backupToS3.policy.retention","REDUNDANCY 10")),l.customResource=JSON.stringify(i),l.version+=1,e.next=14,request.put(s,l);case 14:return e.abrupt("break",23);case 15:return u=JSON.parse(l.customResource),(0,R.default)(u,"spec.backupSchedule",a?"0 ".concat(a):""),l.customResource=JSON.stringify(u),l.version+=1,e.next=21,request.put(s,l);case 21:case 22:return e.abrupt("break",23);case 23:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()}}),v);t.default=j},1927:function(e,t,a){"use strict";var r=a(20);a(12),a(5),a(11),a(31),a(6),a(84),a(73),a(18),a(87),a(48),a(16),a(27),a(931),a(137),a(98),a(9),a(13),a(10),a(4),a(23),a(24),a(17),a(85),a(64),a(136),a(75),a(818),a(7),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(12),a(249),a(45),a(5),a(11),a(31),a(6),a(84),a(73),a(18),a(28),a(87),a(48),a(191),a(42),a(16),a(159),a(27),a(931),a(137),a(34),a(15),a(98),a(9),a(13),a(10),a(4),a(22),a(23),a(57),a(24),a(193),a(17),a(85),a(64),a(75),a(818),a(7);var n=r(a(58)),o=r(a(96)),c=r(a(30)),s=r(a(43));a(41);var l,i,u,d=r(a(44)),f=r(a(65)),p=r(a(36)),m=r(a(37)),h=r(a(88)),v=r(a(55)),g=r(a(56)),_=r(a(51)),y=r(a(49)),E=(r(a(66)),a(14)),b=r(a(26)),S=r(a(74)),O=r(a(189)),R=r(a(63)),A=r(a(902)),k=r(a(895)),T=r(a(1023)),D=r(a(4788)),C=r(a(4789)),P=r(a(242)),N=r(a(158)),I=r(a(458)),w=a(1245),x=a(815),M=a(4815),L=a(1015),j=a(1093);function U(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function B(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.workspace,a=e.namespace,r=e.cluster,n=e.cluster_id;return(0,L.getManifestApi)({workspace:t,namespace:a,cluster:r,cluster_id:n})},(0,f.default)(e,"fetchList",i,(0,h.default)(e)),(0,f.default)(e,"updateParams",u,(0,h.default)(e)),e.updateCKParams=function(){var t=(0,d.default)(s.default.mark((function t(a){var r,n,o,c,l,i,u,d,f;return s.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=a.workspace,n=a.cluster_id,o=a.cluster,c=a.namespace,l=a.params,t.next=3,request.get(e.getUrl({workspace:r,namespace:c,cluster:o,cluster_id:n}));case 3:if(i=t.sent,u=JSON.parse(i.customResource),!(0,R.default)(l)){t.next=7;break}return t.abrupt("return");case 7:return d=l.max_memory_usage,(f=l.max_server_memory_usage)&&(0,S.default)(u,"spec.configuration.settings.max_server_memory_usage",f),d&&(0,S.default)(u,'spec.configuration.profiles["default/max_memory_usage"]',d),i.customResource=JSON.stringify(u),i.version+=1,t.next=14,request.put(e.getUrl({workspace:r,namespace:c,cluster:o,cluster_id:n}),i);case 14:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),e.updatePGParams=function(){var t=(0,d.default)(s.default.mark((function t(a){var r,n,c,l,i,u,d,f,p,m,h;return s.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=a.workspace,n=a.cluster_id,c=a.cluster,l=a.namespace,i=a.params,t.next=3,request.get(e.getUrl({workspace:r,namespace:l,cluster:c,cluster_id:n}));case 3:if(u=t.sent,d=JSON.parse(u.customResource),f=(0,b.default)(d,"spec.postgresql.configs"),p=e.getPGParamsByConfig(f),55555!==(m=B({},i)).port){t.next=10;break}throw new Error("PG_PORT_FORBIDDEN_ERROR");case 10:return m.port&&m.port!==p.port&&((0,S.default)(d,"spec.services[1].spec.ports[0].port",m.port),(0,S.default)(d,"spec.services[2].spec.ports[0].port",m.port)),["shared_buffers","temp_buffers","work_mem","wal_buffers","maintenance_work_mem","wal_writer_flush_after"].forEach((function(e){m[e]&&(m[e]+="MB")})),["bgwriter_flush_after"].forEach((function(e){m[e]&&(m[e]+="kB")})),h=Object.entries(B(B({},p),m)).map((function(e){var t=(0,o.default)(e,2),a=t[0],r=t[1];return"".concat(a,"=").concat(r)})),(0,S.default)(d,"spec.postgresql.configs",h),u.customResource=JSON.stringify(d),u.version+=1,t.next=21,request.put(e.getUrl({workspace:r,namespace:l,cluster:c,cluster_id:n}),u);case 21:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),e.updateMySQLParams=function(){var t=(0,d.default)(s.default.mark((function t(a){var r,n,o,c,l,i,u,d;return s.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=a.workspace,n=a.cluster_id,o=a.cluster,c=a.namespace,l=a.params,t.next=3,request.get(e.getUrl({workspace:r,namespace:c,cluster:o,cluster_id:n}));case 3:return i=t.sent,u=JSON.parse(i.customResource),d=(0,b.default)(u,"spec.mysqlOpts.mysqlConf"),Object.keys(l).forEach((function(e){l[e]=l[e].toString()})),(0,S.default)(u,"spec.mysqlOpts.mysqlConf",B(B({},d),l)),i.customResource=JSON.stringify(u),i.version+=1,t.next=12,request.put(e.getUrl({workspace:r,namespace:c,cluster:o,cluster_id:n}),i);case 12:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),e.getParamsFromMongoYaml=function(e){return{port:(0,b.default)(e,"spec.additionalMongodConfig.net.port"),oplogSizeMB:(0,b.default)(e,"spec.additionalMongodConfig.replication.oplogSizeMB"),maxIncomingConnections:(0,b.default)(e,"spec.additionalMongodConfig.net.maxIncomingConnections"),cursorTimeoutMillis:(0,b.default)(e,"spec.additionalMongodConfig.setParameter.cursorTimeoutMillis"),profilingMode:(0,b.default)(e,"spec.additionalMongodConfig.operationProfiling.mode"),slowOpThresholdMs:(0,b.default)(e,"spec.additionalMongodConfig.operationProfiling.slowOpThresholdMs"),enableMajorityReadConcern:(0,b.default)(e,"spec.additionalMongodConfig.replication.enableMajorityReadConcern",!0).toString(),commandVerbosity:(0,b.default)(e,"spec.additionalMongodConfig.systemLog.component.command.verbosity",0).toString(),indexVerbosity:(0,b.default)(e,"spec.additionalMongodConfig.systemLog.component.index.verbosity",0).toString(),queryVerbosity:(0,b.default)(e,"spec.additionalMongodConfig.systemLog.component.query.verbosity",0).toString(),networkVerbosity:(0,b.default)(e,"spec.additionalMongodConfig.systemLog.component.network.verbosity",0).toString(),writeVerbosity:(0,b.default)(e,"spec.additionalMongodConfig.systemLog.component.write.verbosity",0).toString()}},e.updateMongoParams=function(){var t=(0,d.default)(s.default.mark((function t(a){var r,n,o,c,l,i,u,d,f,p,m,h,v,g,_,y,E,b,O,R,A;return s.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=a.workspace,n=a.cluster_id,o=a.cluster,c=a.namespace,l=a.params,t.next=3,request.get(e.getUrl({workspace:r,namespace:c,cluster:o,cluster_id:n}));case 3:return i=t.sent,u=JSON.parse(i.customResource),d=e.getParamsFromMongoYaml(u),f=B(B({},d),l),p=f.port,m=f.oplogSizeMB,h=f.maxIncomingConnections,v=f.cursorTimeoutMillis,g=f.profilingMode,_=f.slowOpThresholdMs,y=f.enableMajorityReadConcern,E=f.commandVerbosity,b=f.indexVerbosity,O=f.queryVerbosity,R=f.networkVerbosity,A=f.writeVerbosity,(0,S.default)(u,"spec.additionalMongodConfig.net.port",p),(0,S.default)(u,"spec.additionalMongodConfig.replication.oplogSizeMB",m),(0,S.default)(u,"spec.additionalMongodConfig.net.maxIncomingConnections",h),(0,S.default)(u,"spec.additionalMongodConfig.setParameter.cursorTimeoutMillis",v),(0,S.default)(u,"spec.additionalMongodConfig.operationProfiling.mode",g),(0,S.default)(u,"spec.additionalMongodConfig.operationProfiling.slowOpThresholdMs",_),(0,S.default)(u,"spec.additionalMongodConfig.replication.enableMajorityReadConcern","true"===y),(0,S.default)(u,"spec.additionalMongodConfig.systemLog.component.command.verbosity",Number(E)),(0,S.default)(u,"spec.additionalMongodConfig.systemLog.component.index.verbosity",Number(b)),(0,S.default)(u,"spec.additionalMongodConfig.systemLog.component.query.verbosity",Number(O)),(0,S.default)(u,"spec.additionalMongodConfig.systemLog.component.network.verbosity",Number(R)),(0,S.default)(u,"spec.additionalMongodConfig.systemLog.component.write.verbosity",Number(A)),i.customResource=JSON.stringify(u),i.version+=1,t.next=23,request.put(e.getUrl({workspace:r,namespace:c,cluster:o,cluster_id:n}),i);case 23:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),e.updateECKParams=function(){var t=(0,d.default)(s.default.mark((function t(a){var r,n,o,c,l,i,u;return s.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=a.workspace,n=a.cluster_id,o=a.cluster,c=a.namespace,l=a.params,t.next=3,request.get(e.getUrl({workspace:r,namespace:c,cluster:o,cluster_id:n}));case 3:return i=t.sent,u=JSON.parse(i.customResource),Object.keys(l).forEach((function(e){["action.destructive_requires_name","http.cors.enabled"].includes(e)&&(l[e]="true"===l[e])})),(0,b.default)(u,"spec.nodeSets",[]).forEach((function(e){var t=(0,b.default)(e,"config",{});(0,S.default)(e,"config",B(B({},t),l))})),i.customResource=JSON.stringify(u),i.version+=1,t.next=12,request.put(e.getUrl({workspace:r,namespace:c,cluster:o,cluster_id:n}),i);case 12:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),e.updateLogStashConfig=function(){var t=(0,d.default)(s.default.mark((function t(a,r){var n,o,c,l,i,u,d,f,p,m,h,v,g,_,y;return s.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=r.namespace,o=r.cluster,c=r.cluster_id,l={},i=/^logstash./,(0,k.default)(a,(function(e,t){if(i.test(t)){var r=t.replace(i,"");l[r]=e,delete a[t]}})),!(0,T.default)(l)){t.next=19;break}return t.next=7,e.getLogstashParams({namespace:n,cluster:o,cluster_id:c});case 7:return u=t.sent,d=u.oldConfig,f=u.configMap,p=(0,A.default)({},d.logstash,l),(m=(0,b.default)(p,"jvm",0))&&(h=(0,b.default)(f,"spec.podTemplate.spec.containers[0].resources.limits.memory"),v=(0,w.convertToMebiBytes)(h),g=(0,D.default)(v*(m/100)),(0,S.default)(f,"spec.config.jvm","-Xms".concat(g,"m -Xmx").concat(g,"m")),delete p.jvm),_=[],(0,k.default)(p,(function(e,t){_.push({name:t,value:String(e)})})),(0,S.default)(f,"spec.config.logstashConfig",_),y="apis".concat(globals.app.isMultiCluster&&o?"/clusters/".concat(o):"","/opensearch.opster.io/v1/namespaces/").concat(n,"/logstashes/").concat(c),t.next=19,request.put(y,f);case 19:case"end":return t.stop()}}),t)})));return function(e,a){return t.apply(this,arguments)}}(),e.updateOpenSearchParams=function(){var t=(0,d.default)(s.default.mark((function t(a){var r,n,o,c,l,i,u,d;return s.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=a.workspace,n=a.cluster_id,o=a.cluster,c=a.namespace,l=a.params,t.next=3,request.get(e.getUrl({workspace:r,namespace:c,cluster:o,cluster_id:n}));case 3:return i=t.sent,u=JSON.parse(i.customResource),Object.keys(l).forEach((function(e){["action.destructive_requires_name","http.cors.enabled"].includes(e)&&(l[e]="true"===l[e])})),Object.keys(l).forEach((function(e){["thread_pool.write.queue_size","thread_pool.search.queue_size","action.destructive_requires_name","http.cors.enabled"].includes(e)&&(l[e]=String(l[e]))})),d=(0,b.default)(u,"spec.general.additionalConfig",{}),t.next=10,e.updateLogStashConfig(l,{namespace:c,cluster:o,cluster_id:n});case 10:return(0,S.default)(u,"spec.general.additionalConfig",B(B({},d),l)),i.customResource=JSON.stringify(u),i.version+=1,t.next=15,request.put(e.getUrl({workspace:r,namespace:c,cluster:o,cluster_id:n}),i);case 15:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),e.updateKafkaParams=function(){var t=(0,d.default)(s.default.mark((function t(a){var r,o,c,l,i,u,d,f,p,m,h,v,g,_,y,E,O,R;return s.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=a.workspace,o=a.cluster_id,c=a.cluster,l=a.namespace,i=a.nodeRole,u=a.params,t.next=3,request.get(e.getUrl({workspace:r,namespace:l,cluster:c,cluster_id:o}));case 3:if(d=t.sent,f=JSON.parse(d.customResource),p=u.tls,m=u.authentication,h=u.nodePort,v=u.jmxOptions,g=(0,n.default)(u,["tls","authentication","nodePort","jmxOptions"]),!(_=(0,b.default)(f,"spec.kafka.listeners[0"))){t.next=25;break}if(y=(0,b.default)(_,"authentication.type"),E=m||y,!p){t.next=14;break}if("false"!==p||"tls"!==E){t.next=13;break}throw new Error("KAFKA_EDIT_PARAMS_ERROR");case 13:(0,S.default)(_,"tls","true"===p);case 14:if(!m){t.next=24;break}if("no"!==m){t.next=20;break}delete _.authentication,delete f.spec.kafka.authorization,t.next=24;break;case 20:if("tls"!==m||_.tls){t.next=22;break}throw new Error("KAFKA_EDIT_PARAMS_ERROR");case 22:(0,S.default)(f,"spec.kafka.authorization",(0,b.default)(j.kafkaYaml.resources,"spec.kafka.authorization")),(0,S.default)(_,"authentication.type",m);case 24:h&&(0,S.default)(_,"type","true"===h?"nodeport":"internal");case 25:return Object.keys(g).forEach((function(e){"log.cleaner.enable"===e&&(g[e]="true"===g[e])})),"kafka"===i?(O=(0,b.default)(f,"spec.kafka.config",{}),(0,S.default)(f,"spec.kafka.config",B(B({},O),g)),"password"===v?(0,S.default)(f,"spec.kafka.jmxOptions.authentication.type","password"):"enable"===v?(0,S.default)(f,"spec.kafka.jmxOptions",{}):(0,P.default)(f,"spec.kafka.jmxOptions")):(R=(0,b.default)(f,"spec.zookeeper.config",{}),(0,S.default)(f,"spec.zookeeper.config",B(B({},R),g)),"password"===v?(0,S.default)(f,"spec.zookeeper.jmxOptions.authentication.type","password"):"enable"===v?(0,S.default)(f,"spec.zookeeper.jmxOptions",{}):(0,P.default)(f,"spec.zookeeper.jmxOptions")),d.customResource=JSON.stringify(f),d.version+=1,t.next=31,request.put(e.getUrl({workspace:r,namespace:l,cluster:c,cluster_id:o}),d);case 31:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),e}return(0,m.default)(g,[{key:"getParamsFromYamlJSON",value:(c=(0,d.default)(s.default.mark((function e(t,a){var r,n,c,l,i,u,d,f,p,m,h,v,g,_,y,E,S,O,R,k,T,D,C,P,I,w;return s.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this.app_id=(0,x.getAppIdByKind)(t.kind),e.t0=this.app_id,e.next=e.t0===x.RadonDBAppId.ClickHouse?4:e.t0===x.RadonDBAppId.PostgreSQL?11:e.t0===x.RadonDBAppId.MySQL?16:e.t0===x.RadonDBAppId.MongoDB?17:e.t0===x.RadonDBAppId.RedisCluster||e.t0===x.RadonDBAppId.RedisSentinel?18:e.t0===x.RadonDBAppId.Elasticsearch?26:e.t0===x.RadonDBAppId.Kafka?28:e.t0===x.RadonDBAppId.OpenSearch?38:45;break;case 4:return r=(0,b.default)(t,"spec.templates.serviceTemplates[0].spec.ports"),n=(0,b.default)(t,"spec.configuration.clusters[0].layout"),c=n.replicasCount,l=r.find((function(e){return"http"===e.name})),i=r.find((function(e){return"tcp"===e.name})),u=(0,b.default)(t,"spec.configuration.settings.max_server_memory_usage",18e8),d=(0,b.default)(t,'spec.configuration.profiles["default/max_memory_usage"]',2e8),e.abrupt("return",(0,M.getCKParams)({replicasCount:c,httpPort:l,tcpPort:i,max_server_memory_usage:u,max_memory_usage:d}));case 11:return f=(0,b.default)(t,"spec.postgresql.configs",[]),p=(0,b.default)(t,"spec.autofailover.podspec.containers[0].image",""),m=(0,b.default)(Object.entries(x.PGImage).find((function(e){var t=(0,o.default)(e,2)[1];return p.startsWith(t)})),"[0]"),h=this.getPGParamsByConfig(f),e.abrupt("return",(0,M.getPGParams)(B(B({},h),{},{pgVersion:m})));case 16:return e.abrupt("return",(0,M.getMySQLParams)((0,b.default)(t,"spec.mysqlOpts.mysqlConf")));case 17:return e.abrupt("return",(0,M.getMongoDBParams)(this.getParamsFromMongoYaml(t)));case 18:return e.next=20,this.getRedisParams(a);case 20:if(v=e.sent,"7.0.4"!==(0,b.default)(t,"spec.kubernetesConfig.redisVersion")){e.next=25;break}return g="hostname"===(0,b.default)(t,"spec.kubernetesConfig.endpointType"),e.abrupt("return",(0,M.getRedisParams)(B(B({},v),{},{endpointType:g})));case 25:return e.abrupt("return",(0,M.getRedisParams)(v).slice(1,-1));case 26:return _=(0,b.default)(t,"spec.nodeSets[0].config",{}),e.abrupt("return",(0,M.getECKParams)(_));case 28:return y=a.nodeRole,E=(0,b.default)(t,"spec.".concat(y,".config"),{}),S=(0,b.default)(t,"spec.kafka.listeners[0]",{}),O=S.tls,R=S.authentication?S.authentication.type:"no",k="nodeport"===S.type,T=(0,b.default)(t,"spec.".concat(y,".jmxOptions")),D="disable",D="password"===(0,b.default)(T,"authentication.type")?"password":(0,N.default)(T)?"disable":"enable",e.abrupt("return",(0,M.getKafkaParams)(B(B({},E),{},{tls:O,authentication:R,nodePort:k,jmxOptions:D}),y));case 38:return C=(0,b.default)(t,"spec.general.additionalConfig",{}),e.next=41,this.getLogstashParams(a);case 41:return P=e.sent,I=P.oldConfig,w=(0,A.default)({},I,C),e.abrupt("return",(0,M.getOpenSearchParams)(w));case 45:return e.abrupt("return",[]);case 46:case"end":return e.stop()}}),e,this)}))),function(e,t){return c.apply(this,arguments)})},{key:"getPGParamsByConfig",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.reduce((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",a=t.trim().split("="),r=(0,o.default)(a,2),n=r[0],c=r[1];if(n){var s=Number(c);e[n]=Number.isNaN(s)?c:s}return e}),{})}},{key:"getRedisParams",value:(r=(0,d.default)(s.default.mark((function e(t){var a,r,n,o,c,l;return s.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=t.namespace,r=t.cluster,n=t.cluster_id,o="api".concat(globals.app.isMultiCluster&&r?"/clusters/".concat(r):"","/v1/namespaces/").concat(a,"/configmaps/").concat(n,"-external-config"),e.next=4,request.get(o);case 4:return c=e.sent,l=(0,b.default)(c,'data["redis-external.conf"]',""),e.abrupt("return",this.configMapToObject(l));case 7:case"end":return e.stop()}}),e,this)}))),function(e){return r.apply(this,arguments)})},{key:"getLogstashParams",value:(a=(0,d.default)(s.default.mark((function e(t){var a,r,n,o,c,l,i,u,d,f,p,m,h;return s.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=t.namespace,r=t.cluster,n=t.cluster_id,o="apis".concat(globals.app.isMultiCluster&&r?"/clusters/".concat(r):"","/opensearch.opster.io/v1/namespaces/").concat(a,"/logstashes/").concat(n),e.next=4,request.get(o);case 4:return c=e.sent,l=(0,b.default)(c,"spec.config",{}),i=(0,b.default)(l,"logstashConfig",[]),u=(0,b.default)(l,"jvm",""),d=(0,b.default)(c,"spec.podTemplate.spec.containers[0].resources.limits.memory"),f=(0,w.convertToMebiBytes)(d),p=(0,w.convertJVMToMemoryMebiBytes)(u),m={},(0,k.default)(i,(function(e){var t=(0,b.default)(e,"name",""),a=(0,b.default)(e,"value","");m[t]=a})),(0,S.default)(m,"jvm",(0,C.default)(p/f*100)||50),h=(0,A.default)({},{logstash:m}),e.abrupt("return",{oldConfig:h,configMap:c});case 17:case"end":return e.stop()}}),e)}))),function(e){return a.apply(this,arguments)})},{key:"configMapToObject",value:function(e){var t={};return e.split("\n").forEach((function(e){var a=e.toString().trim().split(" "),r=(0,o.default)(a,2),n=r[0],c=r[1];n&&(t[n]=c)})),t}},{key:"updateRedisParam",value:(t=(0,d.default)(s.default.mark((function e(t){var a,r,n,o,c,l,i,u,d,f,p,m,h,v,g;return s.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=t.workspace,r=t.cluster_id,n=t.cluster,o=t.namespace,c=t.params,l="api".concat(globals.app.isMultiCluster&&n?"/clusters/".concat(n):"","/v1/namespaces/").concat(o,"/configmaps/").concat(r,"-external-config"),e.next=4,request.get(l);case 4:if(i=e.sent,u=(0,b.default)(i,'data["redis-external.conf"]',""),d=this.configMapToObject(u),"number"==typeof(f=c.maxmemory)&&(c.maxmemory="".concat(f,"MB")),"number"==typeof(p=c["repl-backlog-size"])&&(c["repl-backlog-size"]="".concat(p,"mb")),!c.endpointType){e.next=27;break}return e.next=14,request.get(this.getUrl({workspace:a,namespace:o,cluster:n,cluster_id:r}));case 14:if(m=e.sent,h=JSON.parse(m.customResource),"true"!==c.endpointType){e.next=22;break}if(!((0,b.default)(h,"spec.redisProxy.replicas")>0)){e.next=19;break}throw new Error("ENDPOINT_TYPE_ERROR");case 19:(0,S.default)(h,"spec.kubernetesConfig.endpointType","hostname"),e.next=23;break;case 22:(0,S.default)(h,"spec.kubernetesConfig",(0,O.default)((0,b.default)(h,"spec.kubernetesConfig"),"endpointType"));case 23:return m.customResource=JSON.stringify(h),m.version+=1,e.next=27,request.put(this.getUrl({workspace:a,namespace:o,cluster:n,cluster_id:r}),m);case 27:return v=B(B({},d),(0,O.default)(c,"endpointType")),g=Object.entries(v).map((function(e){return e.join(" ")})).join("\n"),(0,S.default)(i,'data["redis-external.conf"]',g),e.next=32,request.put(l,i);case 32:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})}]),g}(I.default),i=(0,y.default)(l.prototype,"fetchList",[E.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(){var t=(0,d.default)(s.default.mark((function t(a){var r,n,o,c,l,i,u,d,f,p;return s.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=a.workspace,n=a.namespace,o=a.cluster,c=a.cluster_id,l=a.keyword,i=a.nodeRole,e.list.isLoading=!0,t.next=4,request.get(e.getUrl({workspace:r,namespace:n,cluster:o,cluster_id:c}));case 4:return u=t.sent,d=JSON.parse(u.customResource),t.next=8,e.getParamsFromYamlJSON(d,{workspace:r,namespace:n,cluster:o,cluster_id:c,nodeRole:i});case 8:f=t.sent,p={},l&&(f=f.filter((function(e){return e.name.includes(l)})),p={keyword:l}),Object.assign(e.list,{data:f,total:f.length,filters:p,isLoading:!1,selectedRowKeys:[]});case 12:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()}}),u=(0,y.default)(l.prototype,"updateParams",[E.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(){var t=(0,d.default)(s.default.mark((function t(a){return s.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:t.t0=e.app_id||a.app_id,t.next=t.t0===x.RadonDBAppId.ClickHouse?3:t.t0===x.RadonDBAppId.PostgreSQL?6:t.t0===x.RadonDBAppId.MySQL?9:t.t0===x.RadonDBAppId.MongoDB?12:t.t0===x.RadonDBAppId.RedisCluster||t.t0===x.RadonDBAppId.RedisSentinel?15:t.t0===x.RadonDBAppId.Elasticsearch?18:t.t0===x.RadonDBAppId.Kafka?21:t.t0===x.RadonDBAppId.OpenSearch?24:27;break;case 3:return t.next=5,e.updateCKParams(a);case 5:return t.abrupt("break",28);case 6:return t.next=8,e.updatePGParams(a);case 8:return t.abrupt("break",28);case 9:return t.next=11,e.updateMySQLParams(a);case 11:return t.abrupt("break",28);case 12:return t.next=14,e.updateMongoParams(a);case 14:return t.abrupt("break",28);case 15:return t.next=17,e.updateRedisParam(a);case 17:return t.abrupt("break",28);case 18:return t.next=20,e.updateECKParams(a);case 20:return t.abrupt("break",28);case 21:return t.next=23,e.updateKafkaParams(a);case 23:return t.abrupt("break",28);case 24:return t.next=26,e.updateOpenSearchParams(a);case 26:case 27:return t.abrupt("break",28);case 28:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()}}),l);t.default=F},1961:function(e,t,a){"use strict";var r=a(20);a(12),a(11),a(6),a(18),a(9),a(13),a(10),a(4),a(316),a(23),a(24),a(17),a(62),a(64),a(7),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(12),a(45),a(11),a(6),a(18),a(28),a(42),a(34),a(15),a(9),a(13),a(10),a(4),a(316),a(23),a(57),a(24),a(193),a(17),a(62),a(64),a(7);var n,o,c=r(a(315)),s=r(a(30)),l=r(a(36)),i=r(a(37)),u=r(a(55)),d=r(a(56)),f=r(a(51)),p=r(a(0)),m=a(239),h=r(a(63)),v=r(a(26)),g=r(a(74)),_=r(a(135)),y=r(a(1023)),E=a(186),b=a(794),S=r(a(4821)),O=a(798),R=a(47),A=a(14),k=r(a(4822)),T=a(815),D=r(a(4824)),C=r(a(4835)),P=a(4836);function N(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function I(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,f.default)(e);if(t){var n=(0,f.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,d.default)(this,a)}}var w=(n=(0,m.inject)("detailStore"),(0,R.withRouter)(o=n(o=(0,m.observer)(o=function(e){(0,u.default)(a,e);var t=I(a);function a(e){var r;return(0,l.default)(this,a),(r=t.call(this,e)).fetchData=function(e){r.step=e.step,r.times=e.times,r.monitorStore.fetchMetrics(function(e){for(var t=1;t0&&void 0!==s[0]?s[0]:{},a=n.props,r=a.limit,c=a.params,e.next=4,n.store.fetchS2IRunRecords(k(k({limit:r},c),t));case 4:n.setAutoRefresh();case 5:case"end":return e.stop()}}),e)}))),n.getPagination=function(){var e=n.store.list;return{page:e.page,limit:e.limit,total:e.total}},n.handleSearch=function(e){n.searchValue=e,n.fetchData({name:e}).then((function(){n.props.onSearch(e)}))},n.handlePage=function(e){n.fetchData({page:e}).then((function(){n.props.onPage(e)}))},n.renderFooter=function(){var e=n.getPagination(),a=e.total,r=e.page,o=e.limit;return v.default.createElement(S.Level,{className:R.default.footer},v.default.createElement(S.LevelLeft,null,t("TOTAL_ITEMS",{num:a})),v.default.createElement(S.LevelRight,null,v.default.createElement(S.Pagination,{page:r,total:a,limit:o,onChange:n.handlePage})))},n.store=new b.default,n}return(0,f.default)(r,[{key:"componentDidMount",value:function(){this.fetchData()}},{key:"componentWillUnmount",value:function(){clearInterval(this.timer)}},{key:"renderContent",value:function(){var e=this,a=this.store.list,r=a.data,n=a.isLoading,o=v.default.createElement("div",{className:R.default.body},(0,E.default)(r)?v.default.createElement("div",{className:R.default.empty},t("NO_DATA")):r.map((function(t){return e.renderItem(t)})));return this.isTable?v.default.createElement(S.Loading,{spinning:n},o):o}},{key:"renderItem",value:function(e){var t=this.store.list.isLoading;return v.default.createElement(O.default,{key:e.name,runDetail:e,loading:t,store:this.store,isB2i:this.props.isB2i})}},{key:"render",value:function(){var e=this.props,t=e.className,a=e.hideFooter;return v.default.createElement("div",{className:(0,y.default)(t,R.default.content)},this.renderContent(),!a&&this.renderFooter())}},{key:"isTable",get:function(){var e=this.props,t=e.hideHeader,a=e.hideFooter;return!t||!a}}]),r}(v.default.Component),l.propTypes={prefix:_.default.string,title:_.default.string,detail:_.default.object,hideHeader:_.default.bool,hideFooter:_.default.bool,onSearch:_.default.func,onRefresh:_.default.func,onPage:_.default.func,limit:_.default.number},l.defaultProps={isB2i:!1,detail:{},hideHeader:!1,hideFooter:!1,onSearch:function(){},onRefresh:function(){},onPage:function(){}},s=i))||s;a.default=D},1976:function(e,a,r){"use strict";r(15);var n=r(20),o=r(157);r(11),r(18),r(10),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(11),r(18),r(10),r(4);var c=o(r(0)),s=n(r(63)),l=r(186),i=n(r(4909)),u=function(e){var a=e.data;return(0,s.default)(a)?c.default.createElement("ul",{className:i.default.annotations},c.default.createElement("li",null,t("NO_DATA"))):c.default.createElement("ul",{className:i.default.annotations},Object.keys(a).filter((function(e){return!(0,s.default)(a[e])})).map((function(e){return c.default.createElement("li",{key:e},c.default.createElement(l.Columns,null,c.default.createElement(l.Column,{className:"is-narrow"},c.default.createElement("p",{style:{width:317}},e)),c.default.createElement(l.Column,null,c.default.createElement("p",null,a[e]))))})))},d=(0,c.memo)(u);a.default=d},1977:function(e,a,r){"use strict";r(15);var n=r(20);r(18),r(16),Object.defineProperty(a,"__esModule",{value:!0}),a.default=function(e){var a,r=e.status,n=e.toEvent,u=null!==(a=null==r?void 0:r.conditions)&&void 0!==a?a:[],d=function(e){return o.default.createElement(c.Icon,{className:"close"===l[e].name?s.default.closeIcon:"",name:l[e].name,size:15,color:{primary:"#fff",secondary:l[e].color}})};return o.default.createElement(c.Tooltip,{content:o.default.createElement("div",null,o.default.createElement("div",null,t("STATUS_INFORMATION")),u.map((function(e,a){return o.default.createElement("div",{className:s.default.textItem,key:a},o.default.createElement("div",{className:s.default.textItemTitle},d(e.status),o.default.createElement("span",null,i[e.type])),o.default.createElement("ul",null,o.default.createElement("li",null,t("STATUS_VALUE",{value:e.status})),o.default.createElement("li",null,e.reason&&t("REASON_VALUE",{value:e.reason})),o.default.createElement("li",null,e.message&&t("MESSAGE_VALUE",{value:e.message}))))})),o.default.createElement(c.Button,{type:"primary",onClick:n,className:"width-full"},t("VIEW_EVENTS"))),placement:"right"},o.default.createElement("div",{className:s.default.container},u.map((function(e,t){return o.default.createElement("div",{className:s.default.item,key:t},d(e.status))}))))},a.STATUS_TITLE=a.ICON_TYPES=void 0,r(18),r(16);var o=n(r(0)),c=r(186),s=n(r(4912)),l={False:{name:"close",color:"#AB2F29"},True:{name:"success",color:"#55BC8A"},Unknown:{name:"question",color:"#E0992C"}};a.ICON_TYPES=l;var i={Ready:t("STRETCH_OBJECT_READY"),Active:t("TRIGGER_ACTIVE"),Fallback:t("RETRACTOR_FALLBACK")};a.STATUS_TITLE=i},4506:function(e,t,a){"use strict";a(15);var r=a(20);a(5),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(5);var n=r(a(61)),o=a(317),c=r(a(4507)),s=r(a(4511)),l=r(a(4512)),i=r(a(4536)),u=r(a(4537)),d=r(a(4538)),f=r(a(4539)),p=r(a(4540)),m=r(a(4541)),h=r(a(4542)),v=r(a(4544)),g=r(a(4545)),_=r(a(4546)),y=r(a(4547)),E=r(a(1899)),b=r(a(4616)),S=r(a(4618)),O=r(a(4620)),R=r(a(4622)),A=r(a(4625)),k=r(a(4626)),T=r(a(4627)),D=r(a(4629)),C=r(a(4635)),P=r(a(4636)),N=r(a(4640)),I=r(a(4641)),w=r(a(4642)),x=r(a(4643)),M=r(a(1798)),L=r(a(1796)),j=r(a(4646)),U=r(a(4649)),B=r(a(4656)),Y=r(a(4659)),F=r(a(4663)),V=r(a(4705)),G=r(a(4920)),H=r(a(4922)),q="/:workspace/clusters/:cluster/projects/:namespace",z=[].concat((0,n.default)((0,V.default)(q)),[{path:q,component:s.default,routes:[].concat((0,n.default)(F.default),[{path:"".concat(q,"/overview"),component:l.default,exact:!0},{path:"".concat(q,"/edgeappsets"),component:B.default,exact:!0},{path:"".concat(q,"/applications/others"),component:d.default,exact:!0},{path:"".concat(q,"/applications/database"),component:c.default,exact:!0},{path:"".concat(q,"/applications/template"),component:u.default,exact:!0},{path:"".concat(q,"/deployments"),component:f.default,exact:!0},{path:"".concat(q,"/statefulsets"),component:p.default,exact:!0},{path:"".concat(q,"/daemonsets"),component:m.default,exact:!0},{path:"".concat(q,"/pods"),component:h.default,exact:!0},{path:"".concat(q,"/jobs"),component:v.default,exact:!0},{path:"".concat(q,"/s2ibuilders"),component:g.default,exact:!0},{path:"".concat(q,"/cronjobs"),component:_.default,exact:!0},{path:"".concat(q,"/services"),component:y.default,exact:!0},{path:"".concat(q,"/grayrelease"),component:E.default,exact:!0},{path:"".concat(q,"/composing"),component:i.default,exact:!0},{path:"".concat(q,"/ingresses"),component:b.default,exact:!0},{path:"".concat(q,"/volumes"),component:S.default,exact:!0},{path:"".concat(q,"/volume-snapshots"),component:O.default,exact:!0},{path:"".concat(q,"/base-info"),component:R.default,exact:!0},{path:"".concat(q,"/networkpolicies"),component:U.default,exact:!0},{path:"".concat(q,"/configmaps"),component:A.default,exact:!0},{path:"".concat(q,"/serviceaccounts"),component:k.default,exact:!0},{path:"".concat(q,"/secrets"),component:T.default,exact:!0},{path:"".concat(q,"/microservices"),component:D.default,exact:!0},{path:"".concat(q,"/configurations"),component:C.default,exact:!0},{path:"".concat(q,"/microservicegateways"),component:P.default,exact:!0},{path:"".concat(q,"/servicerouting"),component:N.default,exact:!0},{path:"".concat(q,"/roles"),component:I.default,exact:!0},{path:"".concat(q,"/members"),component:w.default,exact:!0},{path:"".concat(q,"/log-collections"),component:x.default,exact:!0},{path:"".concat(q,"/gateways"),component:G.default,exact:!0},{path:"".concat(q,"/alert-rules"),component:M.default,exact:!0},{path:"".concat(q,"/alerts"),component:L.default,exact:!0},{path:"".concat(q,"/custom-monitoring"),component:j.default,exact:!0,clusterModule:"whizard-monitoring"},{path:"".concat(q,"/custom-scaling"),component:H.default,exact:!0},{path:"".concat(q,"/node-groups"),component:Y.default,exact:!0},(0,o.getIndexRoute)({path:"".concat(q,"/workloads"),to:"".concat(q,"/deployments"),exact:!0}),(0,o.getIndexRoute)({path:"".concat(q,"/applications"),to:"".concat(q,"/applications/template"),exact:!0}),(0,o.getIndexRoute)({path:q,to:"".concat(q,"/overview"),exact:!0}),(0,o.getIndexRoute)({path:"*",to:"/404",exact:!0})])}]);t.default=z},4507:function(e,a,r){"use strict";var n=r(20),o=r(157);r(12),r(109),r(5),r(11),r(31),r(6),r(84),r(18),r(48),r(16),r(9),r(13),r(10),r(4),r(23),r(24),r(17),r(85),r(62),r(64),r(188),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(109),r(45),r(5),r(11),r(31),r(6),r(84),r(18),r(28),r(48),r(42),r(16),r(34),r(15),r(9),r(13),r(10),r(4),r(23),r(57),r(24),r(17),r(85),r(62),r(64),r(188),r(7);var c,s=n(r(315)),l=n(r(30)),i=n(r(36)),u=n(r(37)),d=n(r(55)),f=n(r(56)),p=n(r(51)),m=n(r(0)),h=r(244),v=n(r(800)),g=n(r(26)),_=r(433),y=r(186),E=n(r(795)),b=n(r(836)),S=n(r(1024)),O=r(793),R=n(r(796)),A=r(52),k=o(r(1428)),T=r(815),D=n(r(1238)),C=n(r(4510));function P(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function N(e){for(var t=1;t1){var o=e.filter((function(e){return"ClusterIP"===e.type})),c=e.filter((function(e){return"NodePort"===e.type}));r=m.default.createElement("div",{className:C.default.tooltips},o.length>0&&m.default.createElement(m.default.Fragment,null,m.default.createElement("div",{className:C.default.tooltipTitle},"ClusterIP"),o.map((function(e){var a=e.label,r=e.value;return m.default.createElement("div",{key:r},m.default.createElement("div",null,t(a),": ",r))}))),c.length>0&&m.default.createElement(m.default.Fragment,null,m.default.createElement("div",{className:C.default.tooltipTitle},"NodePort"),c.map((function(e){var a=e.label,r=e.value;return m.default.createElement("div",{key:r},m.default.createElement("div",null,t(a),": ",r))}))))}return m.default.createElement("div",null,m.default.createElement("span",null,(0,g.default)(e,"[0].value",(0,g.default)(e,"[1].value"))),n>1&&m.default.createElement(y.Tooltip,{content:r,style:{top:"-8px"}},m.default.createElement("span",{className:C.default.tag},n)))}},{title:t("CREATION_TIME_TCAP"),dataIndex:"creationTimestamp",sorter:!0,sortOrder:a("creationTimestamp"),isHideable:!0,width:180,render:function(e,t){return(0,A.getLocalTime)(t.creationTimestamp||t.status_time).format("YYYY-MM-DD HH:mm:ss")}}]},e.renderStatus=function(e,a){return e?a.additional_info?m.default.createElement(y.Tooltip,{content:a.additional_info},m.default.createElement(E.default,{name:t("DATABASE_STATUS_".concat(e.replace(/[-\s]/g,"_").toUpperCase())),type:e,flicker:!0})):m.default.createElement(E.default,{name:t("DATABASE_STATUS_".concat(e.replace(/[-\s]/g,"_").toUpperCase())),type:k.DMPStatus[e]||e,flicker:!0}):"-"},e.showDeploy=function(t,a){var r=e.props,n=r.match,o=r.module,c=r.projectStore,s=r.trigger;return e.props.trigger("openpitrix.db.app.create",{module:o,app_id:a,detail:e.state.appList.find((function(e){return e.app_id===a})),namespace:n.params.namespace,cluster:n.params.cluster,workspace:(0,g.default)(c,"detail.workspace"),routing:e.props.rootStore.routing,success:e.handleFetch,trigger:s})},e.handleFetch=(0,v.default)((function(t){var a=e.props,r=a.store,n=a.getData;if(!r.list.isLoading)return n(N(N(N({},(0,h.parse)(location.search.slice(1))),t),{},{silent:!0}))}),1e3),e.handleWatch=function(t){"Manifest"===t.object.kind&&["MODIFIED","DELETED","ADDED"].includes(t.type)&&e.handleFetch()},e.getApplist=function(){request.get("/kapis/application.kubesphere.io/v2/apps",{orderBy:"create_time",conditions:"status=active,repo_id=repo-helm,category_id=radondb",reverse:!0}).then((function(t){e.setState({appList:t.items})}))},e}return(0,u.default)(r,[{key:"getTableProps",value:function(){var e=this,a=this.props,r=a.tableProps,n=a.store,o=m.default.createElement(y.Menu,{onClick:this.showDeploy},this.state.appList.map((function(e){return m.default.createElement(y.Menu.MenuItem,{key:e.app_id},m.default.createElement(b.default,{width:"16px",style:{marginRight:"8px"},src:e.icon,iconLetter:e.name,iconSize:12}),e.name)}))),c=(0,g.default)(n,"list.data.length",0)>0?"bottomRight":"bottom",s=this.canCreate?[{key:"deploy",type:"control",customDom:m.default.createElement(y.Dropdown,{key:"app-list",className:C.default.appCreate,positionFixed:!0,content:o,placement:c},m.default.createElement(y.Button,{key:"deploy",type:"control",disabled:this.state.appList<1},m.default.createElement("div",{className:C.default.deployButton},m.default.createElement("span",null,t("INSTALL")),m.default.createElement(y.Icon,{name:"caret-down",color:{primary:"#fff",secondary:"#fff"},style:{marginLeft:"4px"}}))))}]:[],l=[{key:"delete",type:"danger",text:t("DELETE"),action:"delete",onClick:function(){return e.props.trigger("resource.batch.delete",N(N({type:"APP",rowKey:r.rowKey,success:e.handleFetch},e.props.match.params),e.props.query))}}];return{tableActions:N(N({},r.tableActions),{},{actions:s,onCreate:null}),selectActions:l,emptyProps:{desc:t("CREATE_APP_TEMPLATE_DESC")},searchType:"keyword"}}},{key:"componentDidMount",value:function(){this.getApplist()}},{key:"render",value:function(){var e=this.props,t=e.bannerProps,a=e.tableProps,r=e.match;return m.default.createElement(O.ListPage,(0,s.default)({},this.props,{onMessage:this.handleWatch}),m.default.createElement(D.default,(0,s.default)({},t,{match:r,type:this.type})),m.default.createElement(R.default,(0,s.default)({className:C.default.DBApps},a,this.getTableProps(),{itemActions:this.itemActions,columns:this.getColumns(),rowKey:"name",alwaysUpdate:!0})))}},{key:"prefix",get:function(){var e=this.props.match.params,t=e.workspace,a=e.cluster,r=e.namespace;return"/".concat(t,"/clusters/").concat(a,"/projects/").concat(r,"/applications/").concat(this.type)}},{key:"canCreate",get:function(){var e=this.props.match.params,t=e.cluster,a=e.namespace;return globals.app.hasPermission({cluster:t,project:a,module:"applications",action:"create"})}},{key:"itemActions",get:function(){var e=this,a=this.props.trigger,r=this.props.match.params,n=r.cluster,o=r.namespace,c=r.workspace;return[{key:"edit",icon:"pen",text:t("EDIT_INFORMATION"),action:"edit",onClick:function(t){return a("openpitrix.db.app.edit",{detail:{cluster:n,namespace:o,workspace:c,cluster_id:t.name,name:t.name,description:t.description},success:e.handleFetch})}},{key:"update",icon:"update",text:t("UPDATE_VERSION"),action:"edit",show:function(e){return!(e.app_id!==T.RadonDBAppId.OpenSearch||!e.databaseVersionText.includes("2.3.0"))},onClick:function(r){return a("openpitrix.db.app.update",{resource:r.name,title:t("UPDATE_VERSION"),detail:{cluster:n,namespace:o,workspace:c,cluster_id:r.name,app_id:r.app_id},success:e.handleFetch})}},{key:"delete",icon:"trash",text:t("DELETE"),action:"delete",onClick:function(t){return a("resource.delete",{type:"APP",detail:{name:t.name,cluster:n,namespace:o,workspace:c},success:e.handleFetch})}}]}}]),r}(m.default.Component))||c;a.default=w},4509:function(e,t,a){"use strict";var r=a(20);a(12),a(5),a(11),a(31),a(6),a(84),a(18),a(320),a(16),a(9),a(13),a(10),a(4),a(23),a(17),a(111),a(85),a(7),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(12),a(45),a(5),a(11),a(31),a(6),a(84),a(18),a(28),a(320),a(42),a(16),a(34),a(15),a(9),a(13),a(10),a(4),a(22),a(23),a(57),a(17),a(111),a(85),a(7);var n=r(a(43)),o=r(a(61)),c=r(a(96)),s=r(a(30));a(41);var l,i,u,d=r(a(44)),f=r(a(65)),p=r(a(36)),m=r(a(37)),h=r(a(88)),v=r(a(55)),g=r(a(56)),_=r(a(51)),y=r(a(49)),E=(r(a(66)),r(a(26))),b=r(a(74)),S=a(14),O=r(a(443)),R=r(a(856)),A=a(815);function k(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function T(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},a=t.namespace,r=t.chi,n=t.app_id,o=t.cluster,c="".concat(e.baseUrl).concat(e.getPath({cluster:o,namespace:a}),"/services?labelSelector=");switch(n){case A.RadonDBAppId.ClickHouse:c="".concat(c,"clickhouse.radondb.com/chi=").concat(r,",clickhouse.radondb.com/Service=chi ");break;case A.RadonDBAppId.MySQL:c="".concat(c,"app.kubernetes.io/instance=").concat(r,",mysql.radondb.com/service-type+in+(leader-service,follower-service)");break;case A.RadonDBAppId.PostgreSQL:c="".concat(c,"app-name=").concat(r);break;case A.RadonDBAppId.RedisCluster:c="".concat(c,"redis.radondb.com/name=").concat(r,",role+in+(leader,follower,proxy)");break;case A.RadonDBAppId.RedisSentinel:c="".concat(c,"redis.radondb.com/name=").concat(r,",redis.radondb.com/role+in+%28master%2Cslave%29");break;case A.RadonDBAppId.Elasticsearch:c="".concat(c,"elasticsearch.k8s.elastic.co/cluster-name=").concat(r);break;case"kibana":c="".concat(c,"common.k8s.elastic.co/type=kibana,kibana.k8s.elastic.co/name=").concat(r);break;case A.RadonDBAppId.OpenSearch:c="".concat(c,"app.kubernetes.io/service=").concat(r);break;default:c="".concat(c,"app.kubernetes.io/instance=").concat(r)}return c},e.dataFormatter=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",a=(0,E.default)(e,"spec.ports[0].port",""),r=e.spec.type,n=(0,E.default)(e,"spec.ports[0].nodePort",""),o=e.metadata.namespace,c=e.metadata.name,s=e.spec.clusterIP;return{serviceName:c,namespace:o,role:(0,E.default)(e,"metadata.labels.role",""),uid:e.metadata.uid,tcpPort:a,httpPort:n,nodeIP:t,type:r,clusterIP:s,address:"NodePort"===r?"".concat(t,":").concat(n):"".concat(c,".").concat(o,":").concat(a),_originData:e}},(0,f.default)(e,"fetchList",u,(0,h.default)(e)),e}return(0,m.default)(a,[{key:"getPath",value:function(e){var t=e.namespace,a=e.cluster,r="";return globals.app.isMultiCluster&&a&&(r+="/clusters/".concat(a)),r+="/v1",t&&(r+="/namespaces/".concat(t)),r}},{key:"baseUrl",get:function(){return"/api"}}]),a}(O.default),i=(0,y.default)(l.prototype,"data",[S.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),u=(0,y.default)(l.prototype,"fetchList",[S.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(){var t=(0,d.default)(n.default.mark((function t(a){var r,s,l,i,u,d,f,p,m,h,v,g,_,y;return n.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.nodeStore.fetchList({cluster:a.cluster,namespace:a.namespace,workspace:a.workspace});case 2:return r=(0,E.default)(e.nodeStore,"list.data[0].ip",location.hostname),s=(0,E.default)(e.nodeStore.list.data.find((function(e){return"master"===(0,E.default)(e,"role[1]")})),"ip",r),t.next=6,request.get(e.getUrl(a));case 6:if(l=t.sent,i=[],i=l.items.map((function(t){return e.dataFormatter(t,s)})),a.app_id!==A.RadonDBAppId.MySQL){t.next=13;break}i.sort((function(e){return e.serviceName.endsWith("leader")?-1:0})),t.next=31;break;case 13:if(a.app_id!==A.RadonDBAppId.PostgreSQL){t.next=18;break}(u=i.find((function(e){return e.serviceName.endsWith("readwrite")})))?(d=i.find((function(e){return e.serviceName.endsWith("standby-readonly")})),i=[u],d&&i.push(d)):i=[],t.next=31;break;case 18:if(a.app_id!==A.RadonDBAppId.MongoDB){t.next=22;break}i=i.filter((function(e){return!e.serviceName.endsWith("arb-svc")})),t.next=31;break;case 22:if(a.app_id!==A.RadonDBAppId.Elasticsearch){t.next=30;break}return t.next=25,request.get(e.getUrl(T(T({},a),{},{app_id:"kibana"})));case 25:f=t.sent,p=f.items.map((function(t){return e.dataFormatter(t,s)})),i=i.filter((function(e){return e.serviceName.endsWith("es-http")})).concat(p),t.next=31;break;case 30:a.app_id===A.RadonDBAppId.RedisCluster?(i=i.filter((function(e){return!("ClusterIP"===e.type&&"None"===e.clusterIP)})),m=i.filter((function(e){return"proxy"===e.role})),h=(0,c.default)(m,1),v=h[0],g=i.filter((function(e){return["master","leader"].includes(e.role)})),_=i.filter((function(e){return["slave","follower"].includes(e.role)})),i=[].concat((0,o.default)(g),(0,o.default)(_)),v&&i.push(v)):a.app_id===A.RadonDBAppId.Kafka?((y=i.find((function(e){return e.serviceName==="".concat(a.chi,"-kafka-external-bootstrap")})))||((y=i.find((function(e){return e.serviceName==="".concat(a.chi,"-kafka-bootstrap")})))?((0,b.default)(y,"tcpPort",9092),(0,b.default)(y,"address","".concat(y.serviceName,".").concat(y.namespace,":").concat(y.tcpPort))):y={}),i=[y]):a.app_id===A.RadonDBAppId.OpenSearch&&(i=i.filter((function(e){return["".concat(a.chi,"-dashboards"),a.chi].includes(e.serviceName)})));case 31:return e.data=i,t.abrupt("return",i);case 33:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()}}),l);t.default=C},4510:function(e,t,a){e.exports={DBApps:"_3-0tmC5ougAAijdgdXVLxt",appCreate:"s7pbKzK7DM6633M7NaihK",deployButton:"_23Ikqf30Vp5V0MKr2gVpMY",tooltips:"_1gRd-xJ4oMIOrNkh9Sqwe2",tooltipTitle:"_1nGcPtm4xUo0acXoJoML88",tag:"_1938FqkHFBzXN_r2XiKL0N"}},4511:function(e,t,a){"use strict";a(15);var r=a(20),n=a(157);a(5),a(11),a(6),a(16),a(4),a(23),a(24),a(17),a(62),a(7),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(45),a(5),a(11),a(6),a(28),a(42),a(16),a(4),a(23),a(57),a(24),a(17),a(62),a(7);var o,c=r(a(36)),s=r(a(37)),l=r(a(55)),i=r(a(56)),u=r(a(51)),d=n(a(0)),f=a(239),p=r(a(26)),m=a(317),h=r(a(445));function v(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,u.default)(e);if(t){var n=(0,u.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,i.default)(this,a)}}var g=(0,f.inject)("rootStore","workspaceStore","projectStore")(o=(0,f.observer)(o=function(e){(0,l.default)(a,e);var t=v(a);function a(e){var r;return(0,c.default)(this,a),(r=t.call(this,e)).workspaceStore=new h.default,r.state={fetchFin:!1},r.handleChange=function(e){return r.props.rootStore.routing.push(e)},r.workspaceStore=new h.default,r}return(0,s.default)(a,[{key:"componentDidMount",value:function(){var e=this.props.match;this.workspaceStore.fetchDetail(e.params)}},{key:"getRoutes",value:function(e){var t=this.props.route,a=t.routes,r=t.path,n=(0,p.default)(e,"[0]",{}),o=(0,p.default)(n.children,"[0].name")||n.name;return o?(a&&a.forEach((function(e){e.path===r&&e.redirect&&(e.redirect.to="".concat(r,"/").concat(o))})),a):[]}},{key:"render",value:function(){var e=this.props.match.params,t=e.workspace,a=e.cluster,r=e.namespace,n=globals.app.getProjectNavs({cluster:a,workspace:t,project:r,licenseInfo:this.licenseInfo,isEdge:this.props.workspaceStore.isEdge});if(""===this.edgeCluster){var o,c,s,l=null==n||null===(o=n[0])||void 0===o||null===(c=o.items)||void 0===c||null===(s=c.filter((function(e){return"settings"===e.name})))||void 0===s?void 0:s[0];l&&(l.children=l.children.filter((function(e){return"node-groups"!==e.name})))}return d.default.createElement(d.default.Fragment,null,(0,m.renderRoutes)(this.getRoutes(n)))}},{key:"edgeCluster",get:function(){return(0,p.default)(this.workspaceStore.detail,"_originData.metadata.labels['cluster-role.kubesphere.io/edge']","")}},{key:"licenseInfo",get:function(){return this.props.rootStore.licenseInfo}}]),a}(d.Component))||o)||o;t.default=g},4512:function(e,a,r){"use strict";var n=r(20);r(12),r(5),r(11),r(6),r(9),r(13),r(10),r(4),r(23),r(24),r(17),r(62),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(45),r(5),r(11),r(6),r(28),r(42),r(34),r(15),r(9),r(13),r(10),r(4),r(23),r(57),r(24),r(17),r(62),r(7);var o,c=n(r(30)),s=n(r(36)),l=n(r(37)),i=n(r(55)),u=n(r(56)),d=n(r(51)),f=n(r(0)),p=r(239),m=r(186),h=n(r(26)),v=n(r(885)),g=r(14),_=n(r(4513)),y=n(r(4514)),E=n(r(4516)),b=n(r(4518)),S=n(r(4520)),O=n(r(4522)),R=n(r(4524)),A=n(r(4526)),k=n(r(4528)),T=n(r(4532));function D(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function C(e){for(var t=1;t5,l=c?a.slice(0,5):a;return k.default.createElement("div",{className:N.default.container},this.renderPanelHeader(),k.default.createElement(_.Loading,{spinning:r},k.default.createElement(k.default.Fragment,null,k.default.createElement("div",{className:N.default.header},k.default.createElement(_.Select,{className:N.default.select,value:o,onChange:this.handleChangeSource,options:this.sourceOptions}),k.default.createElement(_.Select,{className:N.default.select,value:this.store.sort_metric,onChange:this.handleChangeSortMetric,options:this.options})),k.default.createElement("div",{className:N.default.list,style:{height:s&&!c?"auto":"392px"}},this.renderListItems(l,o),s&&k.default.createElement(_.Button,{className:N.default.fold,icon:c?"chevron-down":"chevron-up",onClick:this.toggleFold},c?t("UNFOLD"):t("FOLD"))),k.default.createElement("div",{className:N.default.more},k.default.createElement(_.Button,{onClick:this.showMoreModal},t("VIEW_MORE"))))))}},{key:"cluster",get:function(){return this.props.currentResource.cluster}},{key:"namespace",get:function(){return this.props.currentResource.namespace}},{key:"options",get:function(){return this.store.sort_metric_options.map((function(e){return{value:e,label:t("SORT_BY_".concat(e.toUpperCase()))}}))}},{key:"sourceOptions",get:function(){var e=this.props.isEdge;return[{label:t("WORKLOAD_PL"),value:"workload",isHidden:e},{label:t("DEPLOYMENT_PL"),value:"deployment"},{label:t("STATEFULSET_PL"),value:"statefulset",isHidden:e},{label:t("DAEMONSET_PL"),value:"daemonset",isHidden:e}].filter((function(e){return!e.isHidden}))}}]),r}(k.Component),l=(0,g.default)(s.prototype,"store",[R.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return this.sourceMap[this.state.sourceType].store}}),c=s))||c;a.default=L},4525:function(e,t,a){e.exports={container:"WUp_s1gsgr3xjZE-TLfFy",title:"MNoZg4Uw3ghathQUO2qdn",header:"_3DIgkOu1Z8XQBOuX5B5BmC",select:"_1uhE3pKI5LOTwAz5aKaXut",list:"_1X4T38f6yd41_Mmkb7iXLq",listItem:"_3OESwUwGF8C2r8cGijHadO",textBox:"_2rZn3DZLuvGRkQFYI0Cp07",text:"_1WsQhhK0Q2NkjFsa4sUdHf",label:"_3bvLV4piiuVGDzdqk8LNKo",noLabel:"_3chFFPAM6DHtOQoayA5y84",cpu:"fcQo8oVv314LZAog_r8Jx",fold:"dFUpEkr3fe7F_Vw_73JhR",more:"_3F8y08pFovou8ARGvzXVlh"}},4526:function(e,a,r){"use strict";r(15);var n=r(157),o=r(20);r(5),r(11),r(18),r(192),r(16),Object.defineProperty(a,"__esModule",{value:!0}),a.default=function(e){var a,r,n=e.currentResource,o=n.cluster,_=n.workspace,y=n.namespace,E=(0,i.useState)(0),b=(0,l.default)(E,2),S=b[0],O=b[1],R=(0,i.useState)({data:[]}),A=(0,l.default)(R,2),k=A[0],T=A[1];(0,i.useEffect)((function(){var e=new m.default,t=new h.default;D(t),C(e)}),[]);var D=(0,i.useCallback)(function(){var e=(0,s.default)(c.default.mark((function e(t){return c.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.fetchList({cluster:o,workspace:_,namespace:y,limit:-1});case 2:O(t.list.total);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),[]),C=(0,i.useCallback)(function(){var e=(0,s.default)(c.default.mark((function e(t){var a,r,n;return c.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.fetchList({cluster:o,workspace:_,namespace:y,limit:-1});case 2:a=(0,f.toJS)(t.list),r=a.data.filter((function(e){return void 0!==e.lastLoginTime&&""!==e.lastLoginTime})),n=(0,v.default)(r,(function(e){e.lastLoginTime})).splice(0,3),a.data=n,T((0,f.toJS)(a));case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),[]);return i.default.createElement("div",{className:g.default.container},i.default.createElement("div",{className:g.default.title},t("PROJECT_MEMBERS_AND_ROLES")),i.default.createElement("div",{className:g.default.body},i.default.createElement(d.Loading,{spinning:!1},i.default.createElement(i.default.Fragment,null,i.default.createElement("div",{className:g.default.summary},i.default.createElement("div",{className:g.default.item},i.default.createElement(u.default,{icon:"human",iconSize:40,title:k.total,className:g.default.avatar,desc:1===k.total?t("PROJECT_MEMBER_SCAP"):t("PROJECT_MEMBER_SCAP_PL"),noLink:!0})),i.default.createElement("div",{className:g.default.item},i.default.createElement(u.default,{icon:"role",iconSize:40,title:S,className:g.default.avatar,desc:1===S?t("PROJECT_ROLE_SCAP"):t("PROJECT_ROLE_SCAP_PL"),noLink:!0}))),i.default.createElement("div",{className:g.default.bolderText},t("RECENTLY_LOGGED_IN_MEMBERS")),i.default.createElement("div",{className:g.default.memberList},i.default.createElement("div",{className:g.default.item},null!==(a=null==k||null===(r=k.data)||void 0===r?void 0:r.map((function(e){return i.default.createElement(u.default,{key:e.name,className:g.default.memberListAvatarItem,avatar:e.avatar_url||"/assets/default-user.svg",title:e.name,desc:e.email,noLink:!0})})))&&void 0!==a?a:t("NO_DATA"))),i.default.createElement("div",{className:g.default.more},i.default.createElement(p.Link,{to:"/".concat(_,"/clusters/").concat(o,"/projects/").concat(y,"/members")},i.default.createElement(d.Button,null,t("VIEW_MORE"))))))))},r(5),r(11),r(18),r(192),r(16),r(4),r(22);var c=o(r(43));r(41);var s=o(r(44)),l=o(r(96)),i=n(r(0)),u=o(r(788)),d=r(186),f=r(14),p=r(433),m=o(r(322)),h=o(r(441)),v=o(r(446)),g=o(r(4527))},4527:function(e,t,a){e.exports={container:"_3PyNLKna1UJr9RGqCXq2PN",title:"_36c75SV8VUsbaSkzmcoJJe",summary:"_2jDNzW5aPH0rkDq6Evp0wY",bolderText:"_3oZ257HLpDJNyVLhz1wlOq",item:"_3LVmb3Jpwh_n7D82NQHHOz",memberListAvatarItem:"_2EQzaqbgYPQUUGY_pVhor",more:"RTaiJ5yZDpXcpzO5uW90D",avatar:"_3NvIlrVaMhliCGGQxahanO"}},4528:function(e,a,r){"use strict";var n=r(157),o=r(20);r(12),r(5),r(11),r(6),r(18),r(16),r(98),r(9),r(13),r(10),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=function(e){var a=e.detail,r=e.isLoading,n=e.currentResource,o=n.cluster,v=n.workspace,g=n.namespace,_=(0,l.useState)([]),y=(0,s.default)(_,2),E=y[0],b=y[1];return(0,l.useEffect)((function(){var e=Object.entries(d.ONLY_CPU_MEMORY_QUOTAS_MAP).map((function(e){var t=(0,s.default)(e,2);return function(e){for(var t=1;t-1)return a=e,!1})),a}(e),e)};if("limits.cpu"===a||"requests.cpu"===a)r&&(v=Number((0,d.cpuFormat)(n))/Number((0,d.cpuFormat)(r)),n="".concat((0,d.cpuFormat)(n)," Core"),r="".concat((0,d.cpuFormat)(r)," Core"));else if("limits.memory"===a||"requests.memory"===a)r&&(v=Number((0,d.memoryFormat)(n))/Number((0,d.memoryFormat)(r)),n="".concat((0,d.memoryFormat)(n,"Gi")," Gi"),r="".concat((0,d.memoryFormat)(r,"Gi")," Gi"));else if(r){var E=y(n),b=(0,o.default)(E,2),S=b[0],O=b[1],R=y(r),A=(0,o.default)(R,2),k=A[0],T=A[1];g=S,_=k,v=O/T}v=Math.min(Math.max(v,0),1);var D=a.indexOf("gpu")>-1?"gpu":a,C="gpu"===D?"".concat(D,".limit"):D;return c.default.createElement("div",{className:p.default.quota},c.default.createElement("div",{className:p.default.quotaItem},c.default.createElement(i.Icon,{name:f.ICON_TYPES[D]||"resource",size:40}),c.default.createElement("div",{className:p.default.item},c.default.createElement("div",null,function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return f.ICON_TYPES[D]?t(e.replace(/[. ]/g,"_").toUpperCase()):e}(C)),c.default.createElement("p",null,t("RESOURCE_TYPE_SCAP"))),c.default.createElement("div",{className:p.default.item},c.default.createElement("div",null,function(e){if(_&&!g){var t=f.ICON_TYPES[a]||!h[_]?1:h[_];return"".concat(e/t).concat(e>0?_:"")}return e}(n)),c.default.createElement("p",null,t("USED"))),c.default.createElement("div",{className:p.default.item},c.default.createElement("div",null,(0,l.default)(r)?t("NO_LIMIT_TCAP"):r),c.default.createElement("p",null,t("QUOTA")))),c.default.createElement(u.default,{value:Math.min(v,1),className:p.default.bar,rightText:r?"":t("NO_LIMIT"),text:t("USED_PERCENT",{percent:Number((100*v).toFixed(2))})}))};a.default=v},4530:function(e,t,a){e.exports={quota:"wPXTphh_v2X9WNrzqgEp2",quotaItem:"_1LGCyv1ogf6UGeQWOrXqPh",item:"_39N8hvK9R02dew_Ly7Lk0F",bar:"_1a14YNWybcwkUtp0TtLUbx"}},4531:function(e,t,a){e.exports={container:"_3QcJZz9OQTZg1pRtfi0S_9",title:"_2DVNlEQK6CzxXnKQFB0ete",quotaList:"_1NUnZVruuUa7Evki-XrV1m",more:"_2TZLtWlWRQzWFUpCzBhAE_"}},4532:function(e,a,r){"use strict";r(15);var n=r(157),o=r(20);Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var c=o(r(96)),s=n(r(0)),l=o(r(787)),i=o(r(4533)),u=o(r(4535));function d(e){var a=e.visible,r=void 0===a||a,n=e.onCancel,o=e.currentResource,d=(0,s.useState)(!1),f=(0,c.default)(d,2),p=f[0],m=f[1];(0,s.useEffect)((function(){m(r)}),[r]);var h=(0,s.useCallback)((function(){m(!1),null==n||n()}),[]);return s.default.createElement(l.default,{bodyClassName:u.default.body,title:t("RESOURCE_USAGE_RANKING"),visible:p,onCancel:h,fullScreen:!0,hideFooter:!0},s.default.createElement(i.default,{currentResource:o}))}var f=(0,s.memo)(d);a.default=f},4533:function(e,a,r){"use strict";var n=r(20);r(12),r(5),r(11),r(6),r(84),r(18),r(16),r(9),r(13),r(10),r(4),r(22),r(23),r(24),r(17),r(85),r(64),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(45),r(5),r(11),r(6),r(84),r(18),r(28),r(42),r(16),r(34),r(15),r(9),r(13),r(10),r(4),r(22),r(23),r(57),r(24),r(17),r(85),r(64),r(7);var o,c,s,l,i,u,d=n(r(61)),f=n(r(30)),p=n(r(65)),m=n(r(36)),h=n(r(37)),v=n(r(88)),g=n(r(55)),_=n(r(56)),y=n(r(51)),E=n(r(49)),b=(n(r(66)),n(r(0))),S=r(14),O=r(239),R=n(r(3)),A=n(r(1434)),k=n(r(788)),T=n(r(846)),D=r(186),C=n(r(1047)),P=n(r(886)),N=r(72),I=r(794),w=r(52),x=n(r(987)),M=n(r(4534));function L(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function j(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:"";e.props.store.switch(t,a,r).then((function(){e.props.routing.query()}))},e.getItemDesc=function(a){var r=(0,b.getWorkloadStatus)(a,e.props.module),n=r.status,o=r.reason;return o?f.default.createElement(_.default,{status:n,reason:t(o),data:a}):a.description||"-"},e.getColumns=function(){var a=e.props,r=a.getSortOrder,n=a.getFilteredValue,o=a.module;return[{title:t("NAME"),dataIndex:"name",sorter:!0,sortOrder:r("name"),search:!0,render:function(t,a){return f.default.createElement(m.default,{icon:S.ICON_TYPES[o],iconSize:40,title:(0,E.getDisplayName)(a),desc:e.getItemDesc(a),to:"".concat(e.prefix,"/").concat(o,"/").concat(t)})}},{title:t("STATUS"),dataIndex:"status",filters:e.getStatus(),filteredValue:n("status"),isHideable:!0,search:!0,width:"15%",render:function(e,a){var r=(0,b.getWorkloadStatus)(a,o).status;return f.default.createElement(h.default,{type:r,name:t("CRONJOB_".concat(r.toUpperCase()))})}},{title:t("SCHEDULE"),dataIndex:"spec.schedule",isHideable:!0,width:"15%"},{title:t("CREATION_TIME_TCAP"),dataIndex:"createTime",sorter:!0,sortOrder:r("createTime"),isHideable:!0,width:150,render:function(e){return(0,E.getLocalTime)(e).format("YYYY-MM-DD HH:mm:ss")}}]},e.showCreate=function(){var t=e.props,a=t.match,r=t.module,n=t.projectStore;return e.props.trigger("workload.create",{module:r,projectDetail:n.detail,namespace:a.params.namespace,cluster:a.params.cluster,supportGpuSelect:!0,isProject:!0,isEdge:e.isEdge,k8sVersion:e.k8sVersion,success:function(){return e.props.routing.query()},rootStore:e.props.rootStore})},e}return(0,l.default)(r,[{key:"getStatus",value:function(){return S.CRONJOB_STATUS.map((function(e){return{text:t(e.text),value:e.value}}))}},{key:"render",value:function(){var e=this.props,t=e.bannerProps,a=e.tableProps;return f.default.createElement(g.ListPage,this.props,f.default.createElement(v.default,(0,c.default)({},t,{tabs:this.tabs})),f.default.createElement(y.default,(0,c.default)({},a,{itemActions:this.itemActions,columns:this.getColumns(),onCreate:this.showCreate})))}},{key:"prefix",get:function(){var e=this.props.match.params,t=e.workspace,a=e.namespace,r=e.cluster;return"/".concat(t,"/clusters/").concat(r,"/projects/").concat(a)}},{key:"k8sVersion",get:function(){var e,t,a=this.props.match.params.cluster;return null===(e=globals.clusterConfig)||void 0===e||null===(t=e[a])||void 0===t?void 0:t.k8sVersion}},{key:"isEdge",get:function(){return this.props.workspaceStore.isEdge}},{key:"tabs",get:function(){return{value:this.props.module,onChange:this.handleTabChange,options:[{value:"jobs",label:t("JOB_PL")},{value:"cronjobs",label:t("CRONJOB_PL")}]}}},{key:"itemActions",get:function(){var e=this,a=this.props,r=a.trigger,n=a.name;return[{key:"edit",icon:"pen",text:t("EDIT_INFORMATION"),action:"edit",onClick:function(t){r("resource.baseinfo.edit",{detail:t,k8sVersion:e.k8sVersion,success:function(){return e.props.routing.query()}})}},{key:"editYaml",icon:"pen",text:t("EDIT_YAML"),action:"edit",onClick:function(t){r("resource.yaml.edit",{detail:t,k8sVersion:e.k8sVersion,success:function(){return e.props.routing.query()}})}},{show:function(e){return e.suspend},key:"start",icon:"start",text:t("START"),action:"edit",onClick:function(t){e.handleSwitch(t,!0,e.k8sVersion)}},{show:function(e){return!e.suspend},key:"pause",icon:"stop",text:t("PAUSE"),action:"edit",onClick:function(t){e.handleSwitch(t,!1,e.k8sVersion)}},{key:"delete",icon:"trash",text:t("DELETE"),action:"delete",onClick:function(t){r("resource.delete",{type:n,detail:t,k8sVersion:e.k8sVersion,success:function(){return e.props.routing.query()}})}}]}}]),r}(f.default.Component))||o)||o,k=(0,p.inject)()((function(e){var t,a,r=e.match.params.cluster,n=null===(t=globals.clusterConfig)||void 0===t||null===(a=t[r])||void 0===a?void 0:a.k8sVersion;return f.default.createElement(A,(0,c.default)({k8sVersion:n},e))}));a.default=k},4547:function(e,a,r){"use strict";var n=r(20);r(12),r(109),r(5),r(11),r(6),r(73),r(18),r(16),r(9),r(13),r(10),r(4),r(23),r(24),r(17),r(62),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(109),r(45),r(5),r(11),r(6),r(73),r(18),r(28),r(42),r(16),r(34),r(15),r(9),r(13),r(10),r(4),r(23),r(57),r(24),r(17),r(62),r(7);var o,c=n(r(30)),s=n(r(315)),l=n(r(36)),i=n(r(37)),u=n(r(55)),d=n(r(56)),f=n(r(51)),p=n(r(0)),m=r(239),h=n(r(26)),v=n(r(788)),g=n(r(790)),_=n(r(792)),y=r(793),E=n(r(796)),b=r(186),S=r(52),O=r(72),R=n(r(443)),A=n(r(4548));function k(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function T(e){for(var t=1;t1?t("LOAD_BALANCERS_SCAP"):t("LOAD_BALANCER_SCAP"),a.title=e.loadBalancerIngress.join("; ")),e.externalName?p.default.createElement(g.default,{description:a.des,title:function(){return p.default.createElement(b.Tooltip,{content:e.externalName},p.default.createElement("span",null,a.title))}}):p.default.createElement(g.default,{description:t("".concat(a.des)),title:a.title})},e.showCreate=function(){var t=e.props,a=t.match,r=t.module,n=t.projectStore;return e.props.trigger("service.create",{module:r,projectDetail:n.detail,namespace:a.params.namespace,cluster:a.params.cluster})},e}return(0,i.default)(r,[{key:"render",value:function(){var e=this.state.type,t=this.props,a=t.bannerProps,r=t.tableProps,n=t.match,o=t.workspaceStore.isEdge?{}:{onCreate:this.showCreate};return p.default.createElement(y.ListPage,this.props,p.default.createElement(_.default,(0,s.default)({},a,{tabs:this.tabs,tips:this.tips})),"topology"===e?p.default.createElement(A.default,{match:n}):p.default.createElement(E.default,(0,s.default)({},r,{itemActions:this.itemActions,tableActions:this.tableActions,columns:this.getColumns()},o)))}},{key:"tabs",get:function(){var e=this.props.match.params.cluster;return globals.app.hasClusterModule(e,"network.topology")?{value:this.state.type,onChange:this.handleTabChange,options:[{value:"list",label:t("SERVICE_LIST")},{value:"topology",label:t("SERVICE_TOPOLOGY")}]}:{}}},{key:"tips",get:function(){return[{title:t("SERVICE_TYPES_Q"),description:t("SERVICE_TYPES_A")},{title:t("SCENARIOS_FOR_SERVICES_Q"),description:t("SCENARIOS_FOR_SERVICES_A")}]}},{key:"itemActions",get:function(){var e=this.props,a=e.trigger,r=e.name;return[{key:"edit",icon:"pen",text:t("EDIT_INFORMATION"),action:"edit",onClick:function(e){return a("resource.baseinfo.edit",{detail:e})}},{key:"editYaml",icon:"pen",text:t("EDIT_YAML"),action:"edit",onClick:function(e){return a("resource.yaml.edit",{detail:e})}},{key:"editService",icon:"network-router",text:t("EDIT_SERVICE"),action:"edit",onClick:function(e){return a("service.edit",{detail:e})}},{key:"editGateway",icon:"ip",text:t("EDIT_EXTERNAL_ACCESS"),action:"edit",show:function(e){return e.type===O.SERVICE_TYPES.VirtualIP},onClick:function(e){return a("service.gateway.edit",{detail:e})}},{key:"delete",icon:"trash",text:t("DELETE"),action:"delete",onClick:function(e){return a("service.delete",{type:r,detail:e})}}]}},{key:"tableActions",get:function(){var e=this.props,a=e.tableProps,r=e.name,n=e.rowKey,o=e.trigger;return T(T({},a.tableActions),{},{selectActions:[{key:"delete",type:"danger",text:t("DELETE"),action:"delete",onClick:function(){return o("service.batch.delete",{type:r,rowKey:n})}}]})}}]),r}(p.default.Component))||o)||o;a.default=C},4548:function(e,t,a){"use strict";var r=a(20),n=a(157);a(12),a(5),a(11),a(6),a(18),a(9),a(13),a(10),a(4),a(23),a(24),a(17),a(62),a(7),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(12),a(45),a(5),a(11),a(6),a(18),a(28),a(42),a(34),a(15),a(9),a(13),a(10),a(4),a(23),a(57),a(24),a(17),a(62),a(7);var o,c=r(a(30)),s=r(a(36)),l=r(a(37)),i=r(a(88)),u=r(a(55)),d=r(a(56)),f=r(a(51)),p=n(a(0)),m=r(a(3)),h=a(239),v=a(186),g=a(5763),_=a(892),y=r(a(789)),E=r(a(4549)),b=a(794),S=r(a(4595)),O=r(a(4597)),R=r(a(4599)),A=r(a(4601)),k=r(a(4615));function T(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function D(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};e.store.fetchList(D(D({},e.props.match.params),t))},e.handleChange=function(t){e.setState({type:t},(function(){"auto"===e.state.type?(0,b.startAutoRefresh)((0,i.default)(e),{method:"fetchData",leading:!1,interval:1e4}):(0,b.stopAutoRefresh)((0,i.default)(e))}))},e.handleRefresh=function(){e.fetchData()},e.handleServiceClick=function(t){e.setState((function(e){var a=e.selectService;return{selectService:a&&a.id===t.id?null:t}}))},e.handleDetailClose=function(){e.setState({selectService:null})},e.toggleFullscreen=function(){e.setState((function(e){return{fullscreen:!e.fullscreen}}))},e}return(0,l.default)(a,[{key:"componentDidMount",value:function(){this.fetchData(),this.svg=(0,_.select)("#canvas").call((0,g.zoom)().extent([[0,0],[9999,9999]]).scaleExtent([.1,1.5]).on("zoom",this.handleZoom)),this.transPan=this.svg.select("g.transform")}},{key:"componentWillUnmount",value:function(){(0,b.stopAutoRefresh)(this)}},{key:"render",value:function(){var e=this,t=this.state,a=t.type,r=t.fullscreen,n=t.selectService,o=this.store,s=o.topologies,l=s.nodes,i=void 0===l?[]:l,u=s.edges,d=void 0===u?[]:u,f=o.isLoading;return p.default.createElement(y.default,{className:(0,m.default)((0,c.default)({},k.default.fullscreen,r))},p.default.createElement("div",{className:k.default.toolbar},p.default.createElement(S.default,{value:a,options:this.options,onChange:this.handleChange}),p.default.createElement("div",{className:k.default.right},p.default.createElement(v.Button,{type:"flat",icon:"refresh",onClick:this.handleRefresh}),p.default.createElement(v.Button,{type:"flat",icon:r?"minimize":"maximize",onClick:this.toggleFullscreen}))),p.default.createElement("div",{className:k.default.content},p.default.createElement("svg",{id:"canvas"},p.default.createElement("g",{className:"transform"},p.default.createElement("g",{className:"chart"},d.map((function(e){return p.default.createElement(R.default,{key:e.v+e.w,data:e})})),i.map((function(t){return p.default.createElement(O.default,{key:t.id,data:t,isSelected:n&&n.id===t.id,onClick:e.handleServiceClick})}))))),f&&p.default.createElement(v.Loading,{className:k.default.loading}),!!n&&p.default.createElement(A.default,{data:n,store:this.store,match:this.props.match,onClose:this.handleDetailClose})))}},{key:"options",get:function(){return[{label:"AUTO_REFRESH",icon:"start",value:"auto"},{label:"PAUSE",icon:"pause",value:"pause"}]}}]),a}(p.Component))||o;t.default=P},4549:function(e,t,a){"use strict";a(15);var r=a(20);a(5),a(16),a(9),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(5),a(16),a(9),a(4),a(22);var n=r(a(43));a(41);var o,c,s,l,i=r(a(44)),u=r(a(65)),d=r(a(36)),f=r(a(37)),p=r(a(49)),m=(r(a(66)),r(a(26))),h=a(14),v=a(4550),g=(o=function(){function e(t){var a=this;(0,d.default)(this,e),this.topologies={},(0,u.default)(this,"detail",c,this),(0,u.default)(this,"isLoading",s,this),(0,u.default)(this,"isSubmitting",l,this),this.getListUrl=function(e){return"kapis/network.kubesphere.io/v1alpha2".concat(a.getPath(e),"/topology")},this.getDetailUrl=function(e){return"".concat(a.getListUrl(e),"/").concat(e.name)},this.module=t}var t,a;return(0,f.default)(e,[{key:"getPath",value:function(e){var t=e.cluster,a=e.namespace,r="";return t&&(r+="/klusters/".concat(t)),a&&(r+="/namespaces/".concat(a)),r}},{key:"fetchList",value:(a=(0,i.default)(n.default.mark((function e(t){var a;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.isLoading=!0,e.next=3,request.get(this.getListUrl(t),t);case 3:a=e.sent,this.topologies=(0,v.processTopology)((0,m.default)(a,"nodes",{})),this.isLoading=!1;case 6:case"end":return e.stop()}}),e,this)}))),function(e){return a.apply(this,arguments)})},{key:"fetchDetail",value:(t=(0,i.default)(n.default.mark((function e(t){var a;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.isLoading=!0,e.next=3,request.get(this.getDetailUrl(t));case 3:a=e.sent,this.detail=a,this.isLoading=!1;case 6:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})}]),e}(),c=(0,p.default)(o.prototype,"detail",[h.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),s=(0,p.default)(o.prototype,"isLoading",[h.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),l=(0,p.default)(o.prototype,"isSubmitting",[h.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),(0,p.default)(o.prototype,"fetchList",[h.action],Object.getOwnPropertyDescriptor(o.prototype,"fetchList"),o.prototype),(0,p.default)(o.prototype,"fetchDetail",[h.action],Object.getOwnPropertyDescriptor(o.prototype,"fetchDetail"),o.prototype),o);t.default=g},4550:function(e,t,a){"use strict";var r=a(20);a(12),a(5),a(11),a(31),a(6),a(18),a(137),a(9),a(13),a(10),a(316),a(7),Object.defineProperty(t,"__esModule",{value:!0}),t.processTopology=void 0,a(12),a(5),a(11),a(31),a(6),a(18),a(28),a(137),a(34),a(15),a(9),a(13),a(10),a(4),a(316),a(7);var n=r(a(30)),o=r(a(1891)),c=r(a(1529)),s=r(a(1292)),l=r(a(446));function i(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function u(e){for(var t=1;t0&&(i<1?(p=(0,c.default)(h,(function(e){return e.x})).x,m=(0,s.default)(h,(function(e){return e.y})).y,p&&(p+=200)):(p=(0,s.default)(h,(function(e){return e.x})).x,(m=(0,c.default)(h,(function(e){return e.y})).y)&&(m+=150))),p=p||(a+150)/2,m=m||(r+100)/2;var v,g,_=Math.ceil(Math.sqrt(f.length)),y=0,E=0;d=(d=(0,l.default)(d,(function(e){return e.rank}))).map((function(e){return f.find((function(t){return t.id===e.id}))?(E===_&&(E=0,y+=1),v=200*E+p,g=150*y+m,E+=1,Object.assign(e,{x:v,y:g})):e})),t.width=Math.max(e.width,v+75+50),t.height=Math.max(e.height,g+50+50),t.nodes=d}return t}(d)}},4595:function(e,a,r){"use strict";r(15);var n=r(157),o=r(20);r(5),r(18),r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(18),r(42),r(4),r(23),r(57),r(17);var c=o(r(36)),s=o(r(37)),l=o(r(55)),i=o(r(56)),u=o(r(51)),d=n(r(0)),f=r(186),p=o(r(4596));function m(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,u.default)(e);if(t){var n=(0,u.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,i.default)(this,a)}}var h=function(e){(0,l.default)(r,e);var a=m(r);function r(){var e;(0,c.default)(this,r);for(var t=arguments.length,n=new Array(t),o=0;o2&&void 0!==arguments[2]?arguments[2]:"asc";if(!t)return e;var r=(0,u.default)(e,"".concat(t,".value"));return"asc"===a&&(r=r.reverse()),r}(r,o,c);return f.default.createElement("table",{className:h.default.table},f.default.createElement("thead",null,f.default.createElement("tr",null,a.map((function(t){return f.default.createElement("th",{key:t.id,title:t.label,"data-id":t.id,onClick:e.handleTitleClick},"number"===t.dataType&&t.label.startsWith("#")?"#":t.label,o===t.id&&f.default.createElement(p.Icon,{name:"asc"===c?"caret-down":"caret-up"}))})))),f.default.createElement("tbody",null,s.map((function(t,r){return f.default.createElement("tr",{key:"".concat(t.id,"-").concat(r)},a.map((function(a){var r=e.getValue(t[a.id]);return f.default.createElement("td",{key:a.id,title:r},a.render?a.render(r,t):r)})))}))))}}]),a}(f.Component);t.default=g},4606:function(e,t,a){e.exports={table:"_3_MT8fZBjSbHX5gZjAySbf"}},4607:function(e,t,a){"use strict";var r=a(157),n=a(20);a(12),a(5),a(11),a(6),a(18),a(87),a(27),a(9),a(13),a(10),a(4),a(23),a(17),a(7),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(12),a(45),a(5),a(11),a(6),a(18),a(28),a(87),a(42),a(27),a(34),a(15),a(9),a(13),a(10),a(4),a(23),a(57),a(17),a(7);var o=n(a(30)),c=n(a(61)),s=n(a(36)),l=n(a(37)),i=n(a(55)),u=n(a(56)),d=n(a(51)),f=r(a(0)),p=n(a(26)),m=n(a(63)),h=n(a(4608));function v(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function g(e){for(var t=1;t0){var t=["POD"];e[0].nodes=e[0].nodes.filter((function(e){return-1===t.indexOf(e.label)}))}for(var a=e.length>0?(0,c.default)(e[0].nodes.map((function(e){return{label:e.label,value:e.label,icon:"docker"}}))):[],r=[],n={},o=0;o0?e[0].nodes[0].label:""}},{key:"containers",get:function(){return(0,p.default)(this.props.detail,"children",[]).filter((function(e){return"Containers"===e.label}))}},{key:"cpuMetric",get:function(){var e=this.state.containerName,t=this.monitorStore.data;return""===e?[]:(0,p.default)(t,"".concat(E.cpu_usage,".data.result"))}},{key:"memoryMetric",get:function(){var e=this.state.containerName,t=this.monitorStore.data;return""===e?[]:(0,p.default)(t,"".concat(E.memory_usage,".data.result"))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var a=(0,p.default)(e.detail,"id","");return a!==t.podsId?{containerName:"",podsId:a}:null}}]),a}(f.Component))||o;t.default=b},4611:function(e,t,a){e.exports={container:"_1OCYhwQxIVBiwoZgjC9Vt2",containerSelect:"x2gN32eQq4Fk7DwDRYlMt"}},4612:function(e,t,a){"use strict";a(15);var r=a(157),n=a(20);a(29),a(18),a(4),a(23),a(17),a(32),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(45),a(29),a(18),a(42),a(4),a(23),a(57),a(17),a(32);var o=n(a(36)),c=n(a(37)),s=n(a(55)),l=n(a(56)),i=n(a(51)),u=r(a(0)),d=n(a(26)),f=n(a(63)),p=n(a(1045)),m=n(a(4613));function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,i.default)(e);if(t){var n=(0,i.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,l.default)(this,a)}}var v=function(e){(0,s.default)(a,e);var t=h(a);function a(){return(0,o.default)(this,a),t.apply(this,arguments)}return(0,c.default)(a,[{key:"render",value:function(){var e=(0,d.default)(this.props.detail,"tables",[]);return(0,f.default)(e)?null:e.map((function(e){return u.default.createElement("div",{key:e.id,className:m.default.info},e.rows.map((function(e){return u.default.createElement(p.default,{key:e.id,name:e.entries.label,value:e.entries.value})})))}))}}]),a}(u.Component);t.default=v},4613:function(e,t,a){e.exports={info:"_7d5WNeWa0X-J5GxQTmMvl"}},4614:function(e,t,a){e.exports={wrapper:"lu0R0_JuvYcj7r7Qy0otO",header:"_26TkzcTc5C6Em8vDEeBJEz",icon:"_1NAGSmlNiebgr8p6Cjjxsn",title:"_31yHnayK288K6G7r3t0WIm",close:"BBrUJQnPG4Qc4u1_NstsV",content:"_1SDKhZ-aItpEmZbrbTYtRJ"}},4615:function(e,t,a){e.exports={toolbar:"_2GsMGEQTK2HjeeJMHK207X",right:"_18ABRRL3yE8zHX7GNA-zgr",content:"_1SRN7Iw9zGbVNj2koryPUT",loading:"_3B7Ub5NbMtv9vH9XEk3Jyc",fullscreen:"_2ocL9fqKky1rPQumdGqZaN"}},4616:function(e,a,r){"use strict";r(15);var n=r(20);r(12),r(109),r(5),r(73),r(16),r(4),r(23),r(24),r(17),r(62),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(109),r(45),r(5),r(73),r(28),r(42),r(16),r(4),r(22),r(23),r(57),r(24),r(17),r(62);var o=n(r(315)),c=n(r(43));r(41);var s,l=n(r(44)),i=n(r(36)),u=n(r(37)),d=n(r(55)),f=n(r(56)),p=n(r(51)),m=n(r(0)),h=n(r(63)),v=r(186),g=n(r(240)),_=n(r(788)),y=n(r(790)),E=n(r(789)),b=n(r(792)),S=n(r(796)),O=r(793),R=r(52),A=r(72),k=n(r(917)),T=n(r(834)),D=n(r(4617));function C(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,p.default)(e);if(t){var n=(0,p.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,f.default)(this,a)}}var P=(0,O.withProjectList)({store:new k.default,module:"ingresses",name:"ROUTE"})(s=function(e){(0,d.default)(r,e);var a=C(r);function r(){var e;(0,i.default)(this,r);for(var n=arguments.length,o=new Array(n),s=0;s=3.2&&c.splice(2,0,o),c}},{key:"render",value:function(){var e=this.props,t=e.query,a=e.match,r=e.bannerProps,n=e.tableProps;return v.default.createElement(k.ListPage,this.props,v.default.createElement(A.default,(0,o.default)({},r,{tips:this.tips})),v.default.createElement(T.default,(0,o.default)({},n,{className:"table-2-6",itemActions:this.itemActions,namespace:t.namespace,columns:this.getColumns(),onCreate:this.showCreate,cluster:a.params.cluster})))}},{key:"tips",get:function(){return[{title:t("WHAT_IS_STORAGE_CLASS_Q"),description:t("WHAT_IS_STORAGE_CLASS_A")},{title:t("WHAT_IS_LOCAL_VOLUME_Q"),description:t("WHAT_IS_LOCAL_VOLUME_A")}]}},{key:"itemActions",get:function(){var e=this.props,a=e.trigger,r=e.name;return[{key:"edit",icon:"pen",text:t("EDIT_INFORMATION"),action:"edit",onClick:function(e){return a("resource.baseinfo.edit",{detail:e})}},{key:"editYaml",icon:"pen",text:t("EDIT_YAML"),action:"edit",onClick:function(e){return a("resource.yaml.edit",{detail:e})}},{key:"delete",icon:"trash",text:t("DELETE"),action:"delete",onClick:function(e){return a("resource.delete",{type:r,detail:e})}}]}}]),r}(v.default.Component))||s;a.default=N},4619:function(e,t,a){e.exports={capacity:"_243L3gRj5L4Y9ESqEZMwQ5",pv_content:"_3H1A5jhLvHEPU7G5_KY0o6",yaml:"_2OW8dgKGOIskdPsJxUWKrg",status:"_3XGLspL44wlb4JRFycBpB6"}},4620:function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(18),r(16),r(4),r(23),r(24),r(17),r(62),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(18),r(42),r(16),r(4),r(23),r(57),r(24),r(17),r(62);var o,c=n(r(315)),s=n(r(36)),l=n(r(37)),i=n(r(55)),u=n(r(56)),d=n(r(51)),f=r(186),p=n(r(788)),m=n(r(795)),h=n(r(792)),v=r(793),g=n(r(796)),_=n(r(63)),y=n(r(0)),E=n(r(914)),b=r(52),S=r(72),O=n(r(4621));function R(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,d.default)(e);if(t){var n=(0,d.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,u.default)(this,a)}}var A=(0,v.withProjectList)({store:new E.default,module:"volume-snapshots",authKey:"volumesnapshots",name:"VOLUME_SNAPSHOT"})(o=function(e){(0,i.default)(r,e);var a=R(r);function r(){return(0,s.default)(this,r),a.apply(this,arguments)}return(0,l.default)(r,[{key:"getStatus",value:function(){return S.VOLUME_SNAPSHOT_STATUS.map((function(e){return{text:t(e.text),value:e.value}}))}},{key:"getColumns",value:function(){var e=this,a=this.props.getSortOrder;return[{title:t("NAME"),dataIndex:"name",sortOrder:a("name"),search:!0,sorter:!0,render:function(t,a){return y.default.createElement(p.default,{icon:"snapshot",iconSize:40,to:"".concat(e.props.match.url,"/").concat(t),title:t,desc:a.snapshotClassName})}},{title:t("STATUS"),dataIndex:"status",isHideable:!0,filters:this.getStatus(),search:!0,render:function(e,a){var r=a.errorMessage,n=a.backupStatus;return y.default.createElement("div",{className:O.default.status},y.default.createElement(m.default,{type:n,name:t("CREATE_STATUS_".concat(n.toUpperCase()))})," ",!(0,_.default)(r)&&y.default.createElement(f.Tooltip,{content:r},y.default.createElement(f.Icon,{name:"question"})))}},{title:t("PROJECT"),dataIndex:"namespace",isHideable:!0,render:function(e){return y.default.createElement("div",null,(0,b.showNameAndAlias)(e,"project"))}},{title:t("VOLUME_SNAPSHOT_CONTENT"),dataIndex:"boundVolumeSnapshotContentName",isHideable:!0,render:function(e){return e}},{title:t("CAPACITY"),dataIndex:"restoreSize",isHideable:!0,width:"20%",render:function(e){return e||"-"}},{title:t("CREATION_TIME_TCAP"),dataIndex:"createTime",isHideable:!0,sorter:!0,sortOrder:a("createTime"),width:"20%",render:function(e){return e?(0,b.getLocalTime)(e).format("YYYY-MM-DD HH:mm:ss"):"-"}}]}},{key:"render",value:function(){var e=this.props,t=e.bannerProps,a=e.tableProps;return y.default.createElement(v.ListPage,(0,c.default)({},this.props,{noWatch:!0}),y.default.createElement(h.default,(0,c.default)({},t,{tabs:this.tabs})),y.default.createElement(g.default,(0,c.default)({},a,{itemActions:this.itemActions,columns:this.getColumns(),onCreate:this.showCreate})))}},{key:"itemActions",get:function(){var e=this.props,a=e.trigger,r=e.routing,n=e.name;return[{key:"delete",icon:"trash",text:t("DELETE"),action:"delete",onClick:function(e){return a("resource.delete",{type:n,detail:e,success:r.query})}}]}}]),r}(y.default.Component))||o;a.default=A},4621:function(e,t,a){e.exports={taints:"_2vLaCVxzXLnnQ_T1ttX8Cg",overview:"_1Q_WW2VkvXhYbDUAhp48jH",namespaceFilter:"_2MbiUC9KKqCf8a9u_HI2bZ"}},4622:function(e,a,r){"use strict";var n=r(20);r(12),r(5),r(11),r(31),r(6),r(84),r(73),r(18),r(48),r(192),r(16),r(98),r(9),r(13),r(10),r(4),r(316),r(23),r(24),r(17),r(85),r(62),r(136),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(45),r(5),r(11),r(31),r(6),r(84),r(73),r(18),r(28),r(48),r(192),r(42),r(16),r(34),r(15),r(98),r(9),r(13),r(10),r(4),r(316),r(23),r(57),r(24),r(17),r(85),r(62),r(7);var o,c=n(r(61)),s=n(r(30)),l=n(r(96)),i=n(r(36)),u=n(r(37)),d=n(r(55)),f=n(r(56)),p=n(r(51)),m=n(r(0)),h=r(14),v=r(239),g=n(r(26)),_=n(r(447)),y=n(r(855)),E=r(52),b=n(r(441)),S=n(r(322)),O=n(r(885)),R=n(r(1096)),A=r(791),k=n(r(792)),T=n(r(1219)),D=n(r(866)),C=n(r(4623)),P=n(r(1234)),N=n(r(1233));function I(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function w(e){for(var t=1;t0?a.includes("claims")?o:"".concat(o,"Gi"):void 0,used:a.includes("claims")?n:(0,E.memoryFormat)(n,"Gi")}}))}},{key:"relateStorageClass",get:function(){var e=(0,h.toJS)(this.quotaStore.data),t=(0,g.default)(e,"hard",{}),a=(0,g.default)(e,"used",{}),r=Object.entries(t).filter((function(e){var t=(0,l.default)(e,1)[0];return(0,_.default)(t,M)||(0,_.default)(t,L)})).map((function(e){var t=(0,l.default)(e,2),a=t[0],r=t[1];return(0,s.default)({},a,r)})),n=r.map((function(e){var t=Object.keys(e)[0];return(0,s.default)({},t,(0,g.default)(a,t))})),o={total:(0,c.default)(r),used:(0,c.default)(n)};if(o.total.length>0){var i,u=(0,y.default)((0,c.default)(o.total),(function(e){return Object.keys(e)[0].split(".").slice(1).join(".")}));return i={},(0,s.default)(i,M,(0,g.default)(u,[M],[]).map((function(e){var t=Object.keys(e)[0],a=o.used.filter((function(e){return Object.keys(e)[0]===t}))[0];return{name:t,total:Object.values(e)[0],used:Object.values(a)[0]}}))),(0,s.default)(i,L,(0,g.default)(u,[L],[]).map((function(e){var t=Object.keys(e)[0],a=o.used.filter((function(e){return Object.keys(e)[0]===t}))[0];return{name:t,total:Object.values(e)[0],used:Object.values(a)[0]}}))),i}return{}}},{key:"isClusterManage",get:function(){return globals.app.isPlatformAdmin||globals.app.hasPermission({module:"clusters",action:"manage"})}},{key:"store",get:function(){return this.props.projectStore}},{key:"routing",get:function(){return this.props.rootStore.routing}},{key:"params",get:function(){return(0,g.default)(this.props.match,"params",{})}},{key:"workspace",get:function(){return this.params.workspace}},{key:"isEdge",get:function(){return this.props.workspaceStore.isEdge}},{key:"tips",get:function(){return[{title:t("HOW_TO_USE_QUOTA_Q"),description:t.html("HOW_TO_USE_QUOTA_A")},{title:t("WHAT_ARE_DEFAULT_CONTAINER_QUOTAS_Q"),description:t("WHAT_ARE_DEFAULT_CONTAINER_QUOTAS_A")}]}},{key:"enabledActions",get:function(){return globals.app.getActions(w(w({module:"project-settings"},this.params),{},{project:this.params.namespace}))}},{key:"canViewRoles",get:function(){return globals.app.hasPermission(w(w({module:"roles",action:"view"},this.params),{},{project:this.params.namespace}))}},{key:"canViewMembers",get:function(){return globals.app.hasPermission(w(w({module:"members",action:"view"},this.params),{},{project:this.params.namespace}))}},{key:"itemActions",get:function(){var e=this,a=this.props.rootStore.routing,r=this.store.detail,n=this.limitRangeStore.list.data,o=[{key:"edit",icon:"pen",action:"edit",text:t("EDIT_INFORMATION"),onClick:function(){return e.trigger("resource.baseinfo.edit",{detail:r,success:e.getData})}},{key:"edit-default-resource",icon:"pen",action:"edit",text:t("EDIT_DEFAULT_CONTAINER_QUOTAS"),isHidden:this.isEdge,onClick:function(){return e.trigger("project.default.resource",w(w({},e.props.match.params),{},{store:e.limitRangeStore,detail:n[0],supportGpuSelect:!0,success:function(){return e.limitRangeStore.fetchListByK8s(e.params)}}))}},{key:"delete",icon:"trash",action:"delete",text:t("DELETE_PROJECT"),onClick:function(){return e.trigger("resource.delete",{detail:r,desc:t.html("DELETE_PROJECT_TIP",{resource:r.name}),success:function(){(0,E.removeV4DashboardHistory)(globals.user.username,r.uid),a.push("/workspaces/".concat(e.params.workspace,"/projects"))}})}}];return globals.app.hasPermission({workspace:this.workspace,module:"projects",action:"manage"})&&o.splice(1,0,{key:"edit-quota",icon:"pen",action:"edit",text:t("EDIT_PROJECT_QUOTAS"),isHidden:this.isEdge,onClick:function(){return e.trigger("project.quota.edit",{detail:r,success:function(){return e.quotaStore.fetch(e.params)}})}}),this.isClusterManage&&o.splice(1,0,{key:"edit-annotations",icon:"pen",action:"manage",text:t("EDIT_ANNOTATIONS"),onClick:function(){return e.trigger("resource.annotations.edit",{detail:r,success:e.getData})}}),o}},{key:"enabledItemActions",get:function(){var e=this;return this.itemActions.filter((function(t){return(!t.action||e.enabledActions.includes(t.action))&&!t.isHidden}))}}]),r}(m.default.Component))||o)||o)||o;a.default=U},4623:function(e,a,r){"use strict";r(15);var n=r(20);r(18),r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(18),r(42),r(4),r(23),r(57),r(17);var o=n(r(30)),c=n(r(36)),s=n(r(37)),l=n(r(55)),i=n(r(56)),u=n(r(51)),d=r(186),f=n(r(3)),p=n(r(789)),m=n(r(790)),h=n(r(26)),v=n(r(63)),g=n(r(1216)),_=n(r(0)),y=r(433),E=r(52),b=n(r(4624));function S(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,u.default)(e);if(t){var n=(0,u.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,i.default)(this,a)}}var O=function(e){(0,l.default)(r,e);var a=S(r);function r(){return(0,c.default)(this,r),a.apply(this,arguments)}return(0,s.default)(r,[{key:"renderMoreMenu",value:function(){var e=this.props,t=e.actions,a=e.onMenuClick;return _.default.createElement(d.Menu,{onClick:a},t.map((function(e){return _.default.createElement(d.Menu.MenuItem,{key:e.key},_.default.createElement(d.Icon,{name:e.icon,type:"light"})," ",e.text)})))}},{key:"render",value:function(){var e=this.props,a=e.detail,r=e.workspace,n=e.serviceCount,c=e.memberCount,s=e.roleCount,l=e.actions,i=e.showDetail;return _.default.createElement(p.default,{className:(0,f.default)(b.default.wrapper,(0,o.default)({},b.default.single,!i)),title:t("PROJECT_INFO")},_.default.createElement("div",{className:b.default.header},_.default.createElement(m.default,{icon:"project",title:(0,E.getDomTitle)((0,E.getDisplayNameNew)(a)),description:t("NAME"),ellipsis:!0}),_.default.createElement("div",{className:(0,f.default)(b.default.item,"ellipsis")},_.default.createElement("div",null,_.default.createElement(y.Link,{to:"/workspaces/".concat(r),className:"ellipsis block"},(0,E.showNameAndAlias)(r,"workspace"))),_.default.createElement("p",null,t("WORKSPACE"))),_.default.createElement("div",{className:b.default.item},_.default.createElement("div",null,(0,h.default)(a,"creator")||"-"),_.default.createElement("p",null,t("CREATOR"))),_.default.createElement("div",{className:b.default.item},_.default.createElement("div",null,(0,E.getLocalTime)(a.createTime).format("YYYY-MM-DD HH:mm:ss")),_.default.createElement("p",null,t("CREATION_TIME"))),!(0,v.default)(l)&&_.default.createElement(g.default,{content:this.renderMoreMenu()})),i&&_.default.createElement("div",{className:b.default.content},_.default.createElement("div",{className:b.default.contentItem},_.default.createElement(d.Icon,{name:"appcenter",size:40}),_.default.createElement("div",{className:b.default.item},_.default.createElement("div",null,n),_.default.createElement("p",null,"1"===n?t("SERVICE"):t("SERVICE_PL")))),_.default.createElement("div",{className:b.default.contentItem},_.default.createElement(d.Icon,{name:"role",size:40}),_.default.createElement("div",{className:b.default.item},_.default.createElement("div",null,s),_.default.createElement("p",null,"1"===s?t("PROJECT_ROLE_SCAP"):t("PROJECT_ROLE_SCAP_PL")))),_.default.createElement("div",{className:b.default.contentItem},_.default.createElement(d.Icon,{name:"group",size:40}),_.default.createElement("div",{className:b.default.item},_.default.createElement("div",null,c),_.default.createElement("p",null,1===c?t("PROJECT_MEMBER_SCAP"):t("PROJECT_MEMBER_SCAP_PL"))))))}}]),r}(_.default.Component);a.default=O},4624:function(e,t,a){e.exports={wrapper:"y1eLrGpaohxMQDmsuRFMf",single:"_3rv-wCj02PzvuQG7qSSKZM",header:"_363Ff0hbZt6NBtRrxtkMAZ",item:"_2DA2psiwLtN9ceOhO9r16S",content:"nMtAhiQIHvZlW09dFBhY7",contentItem:"_2NiYmn1-SSZjJzHwbNSDOf",button:"_1mI2OrNuD9gi0be-QgMLGw"}},4625:function(e,a,r){"use strict";r(15);var n=r(20);r(12),r(109),r(5),r(73),r(16),r(10),r(4),r(23),r(24),r(17),r(62),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(109),r(45),r(5),r(73),r(42),r(16),r(10),r(4),r(23),r(57),r(24),r(17),r(62);var o,c=n(r(315)),s=n(r(36)),l=n(r(37)),i=n(r(55)),u=n(r(56)),d=n(r(51)),f=n(r(0)),p=n(r(788)),m=n(r(792)),h=r(793),v=n(r(796)),g=r(52),_=r(72),y=n(r(1e3));function E(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,d.default)(e);if(t){var n=(0,d.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,u.default)(this,a)}}var b=(0,h.withProjectList)({store:new y.default,module:"configmaps",name:"CONFIGMAP"})(o=function(e){(0,i.default)(r,e);var a=E(r);function r(){var e;(0,s.default)(this,r);for(var n=arguments.length,o=new Array(n),c=0;c0&&void 0!==arguments[0]?arguments[0]:{};return"kapis/monitoring.kubesphere.io/v1alpha1".concat(e.getPath(t),"/").concat(e.module)},e}return(0,c.default)(a,[{key:"createGrafana",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.submitting(request.post("/kapis/monitoring.kubesphere.io/v1alpha1/".concat(this.getPath(t),"/dashboards/").concat(e.grafanaDashboardName,"/template"),e))}}]),a}(r(a(68)).default),(0,u.default)(n.prototype,"createGrafana",[d.action],Object.getOwnPropertyDescriptor(n.prototype,"createGrafana"),n.prototype),n);t.default=p},4648:function(e,t,a){e.exports={title:"AB68PnUYdCxRDBPIEIYpP"}},4649:function(e,a,r){"use strict";var n=r(20);r(12),r(11),r(6),r(84),r(16),r(9),r(13),r(10),r(4),r(23),r(24),r(17),r(85),r(62),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(45),r(11),r(6),r(84),r(28),r(42),r(16),r(34),r(15),r(9),r(13),r(10),r(4),r(23),r(57),r(24),r(17),r(85),r(62),r(7);var o,c=n(r(30)),s=n(r(315)),l=n(r(36)),i=n(r(37)),u=n(r(55)),d=n(r(56)),f=n(r(51)),p=n(r(0)),m=r(239),h=n(r(26)),v=n(r(74)),g=r(186),_=n(r(789)),y=n(r(792)),E=n(r(833)),b=r(72),S=r(52),O=n(r(4650)),R=n(r(4653)),A=n(r(4655));function k(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function T(e){for(var t=1;t0&&void 0!==arguments[0])||arguments[0],t={};(0,v.default)(t,'metadata.annotations["kubesphere.io/network-isolate"]',e?"enabled":""),n.projectStore.patch({name:n.namespace,cluster:n.cluster},t).then((function(){n.projectStore.fetchDetail(n.params)}))},n.handleEditNetworkIsolate=function(e){n.toggleNetworkIsolate(e)},n.projectStore=n.props.projectStore,n}return(0,i.default)(r,[{key:"render",value:function(){var e=this.module,a=this.name,r=this.tips,n=this.namespace,o=this.cluster,c=this.workspace,l=this.projectStore.isSubmitting,i="enabled"===(0,h.default)(this.projectStore,'detail.annotations["kubesphere.io/network-isolate"]'),u=this.enabledActions.includes("edit");return p.default.createElement("div",null,p.default.createElement(y.default,{module:e,className:"margin-b12",title:t(a),tips:r(),description:t("NETWORK_ISOLATION_DESC")}),p.default.createElement("div",{className:A.default.subtitle},t(a)),i?p.default.createElement(_.default,{className:A.default.wrapper},p.default.createElement(R.default,(0,s.default)({module:e,networkIsolate:i,onEdit:this.handleEditNetworkIsolate,canEdit:u},this.props)),p.default.createElement(O.default,(0,s.default)({module:e,namespace:n,cluster:o,workspace:c,canEdit:u},this.props))):p.default.createElement(E.default,{icon:b.ICON_TYPES[e],title:t("NETWORK_POLICY_EMP_TITLE"),desc:t("NETWORK_POLICY_EMP_DESC"),className:A.default.eplist,actions:u&&p.default.createElement(g.Button,{type:"control",loading:l,onClick:this.toggleNetworkIsolate},t("ENABLE"))}))}},{key:"params",get:function(){return(0,h.default)(this.props.match,"params",{})}},{key:"namespace",get:function(){return(0,h.default)(this.params,"namespace")}},{key:"cluster",get:function(){return(0,h.default)(this.params,"cluster")}},{key:"workspace",get:function(){return(0,h.default)(this.projectStore,"detail.workspace","")}},{key:"enabledActions",get:function(){return globals.app.getActions(T(T({module:"networkpolicies"},this.params),{},{project:this.params.namespace}))}}]),r}(p.default.Component))||o)||o;a.default=C},4650:function(e,a,r){"use strict";var n=r(20);r(12),r(11),r(6),r(9),r(13),r(10),r(4),r(23),r(17),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(45),r(11),r(6),r(28),r(42),r(34),r(15),r(9),r(13),r(10),r(4),r(23),r(57),r(17),r(7);var o,c=n(r(30)),s=n(r(36)),l=n(r(37)),i=n(r(55)),u=n(r(56)),d=n(r(51)),f=n(r(0)),p=r(239),m=n(r(3)),h=r(186),v=r(791),g=n(r(443)),_=n(r(4651)),y=n(r(4652)),E=n(r(1443));function b(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function S(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.direction,a=(0,i.default)(e,["direction"]),r=n.props,o=r.cluster,c=r.namespace,s=r.workspace,l=["kubesphere.io/policy-traffic=outside"];t&&"all"!==t&&l.push("kubesphere.io/policy-type=".concat(t)),n.outsideStore.fetchListOut(D({cluster:o,namespace:c,workspace:s,limit:10,labelSelector:l.join(",")},a))},n.addIpBlock=function(){n.trigger("network.policies.addIpBlock",D(D({},n.props),{},{success:n.fetchOutside}))},n.editIpBlock=function(e,t){n.trigger("network.policies.editIpBlock",D(D({},n.props),{},{formTemplate:(0,g.toJS)(t._originData),edit:!0,name:e,store:n.outsideStore,success:n.fetchOutside}))},n.viewIpBlock=function(e,t){n.trigger("network.policies.viewIpBlock",D(D({},n.props),{},{formTemplate:(0,g.toJS)(t._originData),edit:!0,name:e,store:n.outsideStore,fetchOutside:n.fetchOutside,success:n.fetchOutside}))},n.handleDelete=function(e){n.trigger("network.policies.delete",D(D({},n.props),{},{ruleName:e,resource:e,store:n.outsideStore,type:"ALLOWLIST_ENTRY",success:n.fetchOutside}))},n.getColumns=function(){var e=n.props,a=e.getSortOrder,r=e.getFilteredValue;return[{title:t("NAME"),dataIndex:"name",sorter:!0,sortOrder:a("name"),search:!0,render:function(e,t){return h.default.createElement(y.default,{onClick:function(){n.viewIpBlock(e,t)},className:k.default.avatar,desc:t.description||"-",title:t.aliasName?"".concat(t.name,"(").concat(t.aliasName,")"):t.name})}},{title:t("TRAFFIC_DIRECTION"),dataIndex:"direction",filters:n.getStatus(),filteredValue:r("direction"),isHideable:!0,search:!0,render:function(e){return h.default.createElement("div",null,"ingress"===e?t("INGRESS"):t("EGRESS"))}},{title:t("NETWORK_SEGMENT_QUANTITY"),dataIndex:"ipBlockNumber",isHideable:!0,search:!0},{title:t("PORT_QUANTITY"),dataIndex:"portsNumber",isHideable:!0,search:!0},{title:t("UPDATE_TIME_TCAP"),dataIndex:"createTime",sorter:!0,sortOrder:a("updateTime"),isHideable:!0,render:function(e){return(0,O.getLocalTime)(e).format("YYYY-MM-DD HH:mm:ss")}}]},n.module=e.module,n.outsideStore=e.store,n}return(0,d.default)(r,[{key:"componentDidMount",value:function(){this.fetchOutside()}},{key:"getStatus",value:function(){return[{text:"ALL",value:"all"},{text:"EGRESS",value:"egress"},{text:"INGRESS",value:"ingress"}].map((function(e){return{text:t(e.text),value:e.value}}))}},{key:"render",value:function(){var e,a=this.props,r=a.canEdit,n=a.tableProps,o=null===(e=this.outsideStore.list.data)||void 0===e?void 0:e.map((function(e){var t=(0,g.toJS)(e._originData),a=(0,_.default)(t,"spec.ingress[0].ports")||(0,_.default)(t,"spec.egress[0].ports")||[],r=(0,_.default)(t,"spec.ingress[0].to")||(0,_.default)(t,"spec.egress[0].to")||(0,_.default)(t,"spec.ingress[0].from")||(0,_.default)(t,"spec.egress[0].from")||[],n=a.length;return D(D({},e),{},{direction:(0,_.default)(t,"spec.ingress[0]")?"ingress":"egress",portsNumber:n,ipBlockNumber:r.length})}));return h.default.createElement(h.default.Fragment,null,h.default.createElement("div",{className:k.default.rulemenu},h.default.createElement("div",null,t("EXTERNAL_ALLOWLIST_TIP")),r&&h.default.createElement(E.Button,{type:"control",onClick:this.addIpBlock},t("ADD_ALLOWLIST_ENTRY"))),h.default.createElement(b.ListPage,(0,s.default)({},this.props,{getData:this.fetchOutside,noWatch:!0}),h.default.createElement(S.default,(0,s.default)({},n,{rowKey:"name",data:o,hideSearch:!0,itemActions:this.itemActions,tableActions:this.tableActions,columns:this.getColumns()}))))}},{key:"itemActions",get:function(){var e=this;return[{key:"edit",icon:"pen",text:t("EDIT"),action:"edit",onClick:function(t){e.editIpBlock(t.name,t)}},{key:"delete",icon:"trash",text:t("DELETE"),action:"delete",onClick:function(t){return e.trigger("resource.delete",{detail:t,type:"ALLOWLIST_ENTRY",store:e.outsideStore,success:e.fetchOutside})}}]}},{key:"tableActions",get:function(){return D(D({},this.props.tableProps.tableActions),{},{onFetch:this.fetchOutside})}}]),r}(h.default.Component))||c)||c)||c)||c;a.default=P},4653:function(e,a,r){"use strict";r(15);var n=r(20);r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(42),r(4),r(23),r(57),r(17);var o,c=n(r(36)),s=n(r(37)),l=n(r(55)),i=n(r(56)),u=n(r(51)),d=n(r(0)),f=r(239),p=r(186),m=r(72),h=r(791),v=n(r(850)),g=n(r(4654));function _(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,u.default)(e);if(t){var n=(0,u.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,i.default)(this,a)}}var y=(0,f.inject)("rootStore")(o=(0,h.trigger)(o=(0,f.observer)(o=function(e){(0,l.default)(r,e);var a=_(r);function r(e){var n;return(0,c.default)(this,r),(n=a.call(this,e)).toggle=function(){var e=n.state.opened;e?n.trigger("network.policies.toggle",{resource:t("DISABLED_PROJECT_NETWORK_ISOLATION"),title:t("DISABLED_PROJECT_NETWORK_ISOLATION"),desc:t.html("DISABLED_RESOURCE_TYPE_DESC",{resource:t("DISABLED_PROJECT_NETWORK_ISOLATION")}),success:function(){n.props.onEdit(!e),n.setState({opened:!e})}}):(n.props.onEdit(!e),n.setState({opened:!e}))},n.state={opened:e.networkIsolate},n}return(0,s.default)(r,[{key:"render",value:function(){var e=this.state.opened,a=this.props,r=a.module,n=a.canEdit;return d.default.createElement("div",{className:g.default.wrapper},d.default.createElement("div",{className:g.default.left},d.default.createElement(p.Icon,{name:m.ICON_TYPES[r],size:40,color:{primary:"#324558",secondary:"#f5a623"}}),d.default.createElement("div",{className:g.default.isolate},d.default.createElement("div",{className:g.default.isolatetitle},t("ENABLED")),d.default.createElement("div",null,t("PROJECT_NETWORK_ISOLATION")))),n&&d.default.createElement(v.default,{className:g.default.switch,text:e?t("ENABLED"):t("DISABLED"),onChange:this.toggle,checked:e}))}}]),r}(d.default.Component))||o)||o)||o;a.default=y},4654:function(e,t,a){e.exports={wrapper:"_2yyqmdLMQV7jExw4-99r2V",left:"_3NfpPZF4t2tLIAFo8aCkod",isolate:"_2Gn52m3ytjk9-uNyzg2pHS",isolatetitle:"_3A7x-YmULSD9DlRZAIcLO7"}},4655:function(e,t,a){e.exports={wrapper:"ggsECpK2-iUDno_sJog6s",subtitle:"_2FnrF0AWM2BVASqvjWI14c",eplist:"_1_D3iOzFw4bLc5I38oh41Q"}},4656:function(e,a,r){"use strict";(function(e){var n=r(20);r(12),r(109),r(5),r(11),r(6),r(9),r(13),r(10),r(4),r(23),r(24),r(17),r(62),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(109),r(45),r(5),r(11),r(6),r(28),r(42),r(34),r(15),r(9),r(13),r(10),r(4),r(22),r(23),r(57),r(24),r(17),r(62),r(7);var o=n(r(315)),c=n(r(43));r(41);var s,l=n(r(44)),i=n(r(30)),u=n(r(36)),d=n(r(37)),f=n(r(55)),p=n(r(56)),m=n(r(51)),h=n(r(0)),v=n(r(26)),g=r(186),_=n(r(240)),y=n(r(796)),E=n(r(1024)),b=n(r(792)),S=r(793),O=r(52),R=n(r(483)),A=n(r(4657));function k(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function T(e){for(var t=1;t=.9&&m.default.createElement(y.Icon,{name:"exclamation"}),m.default.createElement("span",null,"(".concat(r.cpu_used,"/").concat(r.cpu_total," Core)"))),description:t("CPU_USAGE_SCAP")})}},{key:"memory",className:N.default.cpu,render:function(a){var r=e.getRecordMetrics(a,[{type:"memory_used",unit:"Gi"},{type:"memory_total",unit:"Gi"},{type:"memory_utilisation"}]);return m.default.createElement(S.default,{title:m.default.createElement("div",{className:N.default.resource},m.default.createElement("span",null,"".concat(Math.round(100*r.memory_utilisation),"%")),r.memory_utilisation>=.9&&m.default.createElement(y.Icon,{name:"exclamation"}),m.default.createElement("span",null,"(".concat(r.memory_used,"/").concat(r.memory_total," GiB)"))),description:t("MEMORY_USAGE_TCAP")})}},{key:"pods",className:N.default.pods,render:function(a){var r=e.getRecordMetrics(a,[{type:"pod_used"},{type:"pod_total"}]),n=r.pod_total?parseFloat(r.pod_used/r.pod_total):0;return m.default.createElement(S.default,{title:"".concat(Math.round(100*n),"%(").concat(r.pod_used,"/").concat(r.pod_total,")"),description:t("PODS")})}}]},e.renderCPUTooltip=function(e){var a=m.default.createElement("p",null,1===(0,k.cpuFormat)((0,_.default)(e,'annotations["node.kubesphere.io/cpu-limits"]'))?t("CPU_LIMIT_SI",{core:(0,k.cpuFormat)((0,_.default)(e,'annotations["node.kubesphere.io/cpu-limits"]')),percent:(0,_.default)(e,'annotations["node.kubesphere.io/cpu-limits-fraction"]')}):t("CPU_LIMIT_PL",{core:(0,k.cpuFormat)((0,_.default)(e,'annotations["node.kubesphere.io/cpu-limits"]')),percent:(0,_.default)(e,'annotations["node.kubesphere.io/cpu-limits-fraction"]')}));return m.default.createElement(y.Tooltip,{content:a,placement:"top"},m.default.createElement(S.default,{title:1===(0,k.cpuFormat)((0,_.default)(e,'annotations["node.kubesphere.io/cpu-limits"]'))?t("CPU_REQUEST_SI",{core:(0,k.cpuFormat)((0,_.default)(e,'annotations["node.kubesphere.io/cpu-requests"]')),percent:(0,_.default)(e,'annotations["node.kubesphere.io/cpu-requests-fraction"]')}):t("CPU_REQUEST_PL",{core:(0,k.cpuFormat)((0,_.default)(e,'annotations["node.kubesphere.io/cpu-requests"]')),percent:(0,_.default)(e,'annotations["node.kubesphere.io/cpu-requests-fraction"]')}),description:t("RESOURCE_REQUEST")}))},e.renderMemoryTooltip=function(e){var a=m.default.createElement("p",null,t("MEMORY_LIMIT_VALUE",{gib:(0,k.memoryFormat)((0,_.default)(e,'annotations["node.kubesphere.io/memory-limits"]'),"Gi"),percent:(0,_.default)(e,'annotations["node.kubesphere.io/memory-limits-fraction"]')}));return m.default.createElement(y.Tooltip,{content:a,placement:"top"},m.default.createElement(S.default,{title:t("MEMORY_REQUEST_VALUE",{gib:(0,k.memoryFormat)((0,_.default)(e,'annotations["node.kubesphere.io/memory-requests"]'),"Gi"),percent:(0,_.default)(e,'annotations["node.kubesphere.io/memory-requests-fraction"]')}),description:t("RESOURCE_REQUEST")}))},e.renderEmpty=function(){return m.default.createElement("div",{className:N.default.empty},m.default.createElement("div",{className:N.default.icon},m.default.createElement(y.Icon,{name:"edge-node",size:40})),m.default.createElement("div",{className:N.default.title},m.default.createElement("span",null,t("NO_EDGE_CLUSTER")),m.default.createElement("p",null,t("NO_EDGE_CLUSTER_DESC"))))},e}return(0,u.default)(r,[{key:"componentDidMount",value:function(){this.getData()}},{key:"getStatus",value:function(){return A.NODE_STATUS.map((function(e){return{text:t(e.text),value:e.value}}))}},{key:"render",value:function(){var e=this,t=this.store.list,a=t.data,r=t.total,n=t.page,o=t.isLoading;return m.default.createElement(O.default,{wrapperClassName:N.default.listWrapper,data:(0,h.toJS)(a),total:r,page:n,loading:o,onFetch:this.getData,empty:this.renderEmpty()},a.map((function(t,a){return m.default.createElement(P.default,{key:a,data:t,Columns:e.Columns()})})))}},{key:"cluster",get:function(){return this.props.cluster}},{key:"isExpired",get:function(){var e;return(null===(e=globals.licenseInfo)||void 0===e?void 0:e.isExpired)||!1}},{key:"isOverLimit",get:function(){var e;return(null===(e=globals.licenseInfo)||void 0===e?void 0:e.isOverLimit)||!1}},{key:"tips",get:function(){return[{title:t("WHAT_IS_NODE_TAINTS_Q"),description:t("WHAT_IS_NODE_TAINTS_A")}]}}]),r}(m.default.Component))||s;a.default=L},4661:function(e,t,a){"use strict";a(15);var r=a(20);a(18),a(4),a(23),a(17),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(45),a(18),a(42),a(4),a(23),a(57),a(17);var n=r(a(36)),o=r(a(37)),c=r(a(55)),s=r(a(56)),l=r(a(51)),i=r(a(0)),u=r(a(3)),d=r(a(1902));function f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,l.default)(e);if(t){var n=(0,l.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,s.default)(this,a)}}var p=function(e){(0,c.default)(a,e);var t=f(a);function a(){return(0,n.default)(this,a),t.apply(this,arguments)}return(0,o.default)(a,[{key:"render",value:function(){var e=this.props,t=e.data,a=e.Columns;return i.default.createElement("div",{className:d.default.item},a.map((function(e,a){return i.default.createElement("div",{key:a,className:(0,u.default)(d.default.col,e.className)},e.render(t[e.dataIndex],t))})))}}]),a}(i.default.Component);t.default=p},4662:function(e,t,a){},4663:function(e,t,a){"use strict";a(15);var r=a(20);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=a(317),o=r(a(1899)),c=r(a(4664)),s=r(a(1906)),l="/:workspace/clusters/:cluster/projects/:namespace/grayrelease",i=[{name:"cates",title:"RELEASE_MODE_PL",component:c.default},{name:"jobs",title:"RELEASE_TASKS",component:s.default}],u=[{path:l,component:o.default,routes:(0,n.getChildRoutes)(i,l)}];t.default=u},4664:function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(31),r(18),r(4),r(23),r(24),r(17),r(62),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(31),r(18),r(28),r(42),r(4),r(23),r(57),r(24),r(17),r(62);var o,c=n(r(36)),s=n(r(37)),l=n(r(55)),i=n(r(56)),u=n(r(51)),d=n(r(0)),f=r(239),p=r(186),m=n(r(240)),h=n(r(825)),v=r(72),g=n(r(435)),_=n(r(901)),y=n(r(1444)),E=n(r(4665)),b=n(r(4692));function S(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,u.default)(e);if(t){var n=(0,u.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,i.default)(this,a)}}var O=(0,f.inject)("rootStore")(o=(0,f.observer)(o=function(e){(0,l.default)(r,e);var a=S(r);function r(e){var n;return(0,c.default)(this,r),(n=a.call(this,e)).showCreate=function(e){n.setState({showCreateModal:!0,selectType:e.currentTarget.dataset.type})},n.hideCreate=function(){n.setState({showCreateModal:!1,selectType:""})},n.handleCreate=function(e){var a=n.props.match.params,r=a.workspace,o=a.cluster,c=a.namespace;n.store.create(e,{cluster:o,namespace:c}).then((function(){n.hideCreate(),m.default.success({content:t("CREATE_SUCCESSFUL")}),n.routing.push("/".concat(r,"/clusters/").concat(o,"/projects/").concat(c,"/grayrelease/jobs")),_.default.delete("".concat(n.module,"_create_form"))}))},n.state={showCreateModal:!1,selectType:""},n.store=new y.default,n.module="strategies",n.namespace=n.props.match.params.namespace,n.cluster=n.props.match.params.cluster,n}return(0,s.default)(r,[{key:"render",value:function(){var e=this,a=this.state,r=a.showCreateModal,n=a.selectType,o=v.GRAY_RELEASE_CATEGORIES.find((function(e){return e.type===n}))||{};return d.default.createElement("div",null,d.default.createElement("ul",{className:b.default.wrapper},v.GRAY_RELEASE_CATEGORIES.map((function(a){return d.default.createElement("li",{key:a.title},d.default.createElement("div",{className:b.default.content},d.default.createElement("div",{className:b.default.icon},d.default.createElement(p.Icon,{name:a.icon,size:24,type:"light"})),d.default.createElement("div",{className:b.default.text},d.default.createElement("div",{className:"h5"},t(a.title)),d.default.createElement("p",null,t.html(a.desc)))),d.default.createElement("div",{className:b.default.footer},e.canCreate&&d.default.createElement(p.Button,{type:"control","data-type":a.type,onClick:e.showCreate},t("CREATE"))))}))),d.default.createElement(h.default,{title:t("CREATE_".concat(o.title,"_TASK")),module:"grayreleases_".concat(o.type),formTemplate:this.formTemplate,cluster:this.cluster,namespace:this.namespace,store:this.store,visible:r,steps:this.steps,onCancel:this.hideCreate,onOk:this.handleCreate,closable:!0,noCodeEdit:!0}))}},{key:"routing",get:function(){return this.props.rootStore.routing}},{key:"formTemplate",get:function(){return{strategy:g.default[this.module]({namespace:this.namespace,type:this.state.selectType})}}},{key:"steps",get:function(){return E.default}},{key:"canCreate",get:function(){var e=this.props.match.params,t=e.cluster,a=e.workspace,r=e.namespace;return globals.app.hasPermission({cluster:t,workspace:a,project:r,module:"grayscale-release",action:"create"})}}]),r}(d.default.Component))||o)||o;a.default=O},4665:function(e,t,a){"use strict";a(15);var r=a(20);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(a(4666)),o=r(a(4667)),c=r(a(1903)),s=r(a(1905)),l=[{title:"BASIC_INFORMATION",component:n.default,required:!0},{title:"SERVICE_SETTINGS",component:o.default,required:!0},{title:"NEW_VERSION_SETTINGS",component:c.default,required:!0},{title:"STRATEGY_SETTINGS",component:s.default,required:!0}];t.default=l},4666:function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(42),r(4),r(23),r(57),r(17);var o,c=n(r(36)),s=n(r(37)),l=n(r(55)),i=n(r(56)),u=n(r(51)),d=n(r(26)),f=n(r(0)),p=r(239),m=r(72),h=r(186);function v(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,u.default)(e);if(t){var n=(0,u.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,i.default)(this,a)}}var g=(0,p.observer)(o=function(e){(0,l.default)(r,e);var a=v(r);function r(){var e;(0,c.default)(this,r);for(var n=arguments.length,o=new Array(n),s=0;s0?u.default.createElement("span",{className:h.default.right},t("UNFINISHED_GRAY_TASK")):u.default.createElement(m.Button,{className:h.default.right,type:a?"control":"default",loading:n,onClick:this.handleClick},a?t("DESELECT"):t("SELECT"))}},{key:"render",value:function(){var e=this.props.component,a=e.workloads.map((function(e){return(0,f.default)(e,"labels.version")})).filter((function(e){return!(0,p.default)(e)})),r="true"===(0,f.default)(e,'annotations["servicemesh.kubesphere.io/enabled"]');return u.default.createElement("div",{className:h.default.card},u.default.createElement("div",{className:h.default.icon},u.default.createElement(m.Icon,{name:"network-router",size:40}),r&&u.default.createElement("span",{className:h.default.istio},u.default.createElement(m.Icon,{name:"istio",size:16,color:{primary:"#329dce"}}))),u.default.createElement("div",{className:h.default.text},u.default.createElement("div",{className:"h6"},e.name),u.default.createElement("p",null,e.workloadType?t("TYPE_SERVICE_".concat(e.workloadType.toUpperCase())):"")),u.default.createElement("div",{className:h.default.version},u.default.createElement("strong",null,a.join(", ")||"-"),u.default.createElement("p",null,1===a.length?t("VERSION"):t("VERSIONS"))),this.renderActions())}}]),r}(u.default.PureComponent);a.default=g,g.propTypes={component:d.default.object,value:d.default.bool,loading:d.default.bool,onSelect:d.default.func},g.defaultProps={component:{},value:!1,loading:!1,onSelect:function(){}}},4670:function(e,t,a){e.exports={card:"_3vdiLN4Az6-6fCKu8ttzIa",text:"_2C5MPZP86Hmq9uLh1-prt5",version:"_3BdnFvaVFC2V8wsrWb3j1F",right:"_22_hdrLm_dtJeJueL5yCgt",icon:"NrHNPh-9ONr5JnVvXUTCp",istio:"QsKsUbWftNYVLE1oT6Mc"}},4671:function(e,t,a){e.exports={wrapper:"_3jlq6ji_fVJNJXEVJYPoTi"}},4672:function(e,t,a){e.exports={bar:"j7RcImezSmT-OprCulkMk",checkbox:"ZE5YWXYsULV5eiGXfcYP7",formWrapper:"_3ytQ7Vaf_iycMg_bFmBAUm",option:"_34g2-hBf74QtaHOUh6qYBM"}},4673:function(e,t,a){"use strict";a(15);var r=a(20);a(18),a(16),a(4),a(23),a(17),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(45),a(18),a(42),a(16),a(4),a(23),a(57),a(17);var n=r(a(36)),o=r(a(37)),c=r(a(332)),s=r(a(55)),l=r(a(56)),i=r(a(51)),u=r(a(0)),d=r(a(1555)),f=r(a(4674)),p=r(a(1904));function m(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,i.default)(e);if(t){var n=(0,i.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,l.default)(this,a)}}var h=function(e){(0,s.default)(a,e);var t=m(a);function a(){return(0,n.default)(this,a),t.apply(this,arguments)}return(0,o.default)(a,[{key:"renderEmpty",value:function(){return null}},{key:"renderContainers",value:function(){var e=this,t=this.props,a=t.value,r=t.disabled;return u.default.createElement("ul",{className:p.default.list},a.map((function(t){return u.default.createElement(f.default,{container:t,key:t.name,onEdit:e.handleEdit,onDelete:e.handleDelete,disabled:r})})))}},{key:"renderInitContainers",value:function(){var e=this,t=this.props,a=t.specTemplate.initContainers,r=void 0===a?[]:a,n=t.disabled;return r.map((function(t){return u.default.createElement(f.default,{container:t,key:t.name,type:"init",onEdit:e.handleEdit,onDelete:e.handleDelete,disabled:n})}))}},{key:"renderAdd",value:function(){return this.props.disabled?null:(0,c.default)((0,i.default)(a.prototype),"renderAdd",this).call(this)}}]),a}(d.default);t.default=h},4674:function(e,a,r){"use strict";var n=r(20);r(12),r(11),r(6),r(16),r(9),r(13),r(10),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(11),r(6),r(28),r(16),r(34),r(15),r(9),r(13),r(10),r(4),r(7);var o=n(r(30)),c=n(r(0)),s=n(r(1)),l=r(186),i=n(r(812)),u=n(r(1904));function d(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function f(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};t.name&&t.namespace&&this.store.fetchDetail(t).then((function(){var t=(0,A.toJS)(e.store.detail);if("Canary"===t.type&&!t.byContent){var a=(0,v.default)(t,"newRoute.weight",50);e.setState({ratio:a})}e.initWebsocket(t),e.updateTipInfo()}))}},{key:"getWorkLoadDetail",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.silent,a=(0,i.default)(e,["silent"]),r=a.cluster,n=a.namespace,o=a.selector,c=a.hosts,s=a.newVersion,l=a.oldVersion;if(n&&o){var u=(0,w.joinSelector)(o);this.workloadStore.fetchListByK8s({cluster:r,namespace:n,labelSelector:u}),this.store.fetchComponents({cluster:r,namespace:n,service:c,labelSelector:u,newVersion:s,oldVersion:l,silent:t})}}},{key:"renderTitle",value:function(){var e=(0,A.toJS)(this.store.detail),a=x.GRAY_RELEASE_CATEGORIES.find((function(t){return t.type===e.type}))||{};return S.default.createElement("div",{className:B.default.title},S.default.createElement("img",{src:"/assets/default-app.svg",alt:""}),S.default.createElement("div",{className:B.default.text},S.default.createElement("div",{className:"h4"},e.name),S.default.createElement("p",null,t("RELEASE_MODE"),": ",S.default.createElement("strong",null,t("".concat(a.title,"_LOW"))))),this.CanDelete&&S.default.createElement(T.Button,{onClick:this.handleOffline},t("DELETE")))}},{key:"renderComponents",value:function(){var e=(0,A.toJS)(this.store.detail),a=this.store.components.data,r=this.store.isComponentsLoading;if(r)return S.default.createElement("div",null,S.default.createElement("div",{className:B.default.sectionTitle},S.default.createElement("div",null,t("VERSIONS")),S.default.createElement("p",null,t("GRAY_COMPONENT_DESC"))),S.default.createElement(T.Loading,{spinning:r,className:B.default.loading}));var n={showEditModal:this.showEditModal,onTakeover:"Mirror"!==e.type?this.handleTakeover:null,namespace:this.props.detail.namespace,cluster:this.props.detail.cluster,workspace:this.props.detail.workspace,maxLength:Math.min(Math.max((0,v.default)(a,"[".concat(e.newVersion,"].pods.length"),0),(0,v.default)(a,"[".concat(e.oldVersion,"].pods.length"),0)),3),jobDetail:e,workloadType:this.workloadType};return S.default.createElement("div",null,S.default.createElement("div",{className:B.default.sectionTitle},S.default.createElement("div",null,t("VERSIONS")),S.default.createElement("p",null,t("GRAY_COMPONENT_DESC"))),S.default.createElement(T.Columns,null,S.default.createElement(T.Column,null,S.default.createElement(L.default,(0,l.default)({data:a[e.newVersion],pods:(0,A.toJS)((0,v.default)(a,"[".concat(e.newVersion,"].pods"),[])),type:"new",isGovernor:e.governor===e.newVersion},n))),S.default.createElement(T.Column,null,S.default.createElement(L.default,(0,l.default)({data:a[e.oldVersion],pods:(0,A.toJS)((0,v.default)(a,"[".concat(e.oldVersion,"].pods"),[])),type:"old",isGovernor:e.governor===e.oldVersion},n)))))}},{key:"renderTraffic",value:function(){var e=(0,A.toJS)(this.store.detail),a=this.state.ratio,r=(0,v.default)(e,"newRoute.weight");return S.default.createElement(S.default.Fragment,null,S.default.createElement("div",{className:B.default.sectionTitle},S.default.createElement("div",null,t("TRAFFIC_DISTRIBUTION")),S.default.createElement("p",null,t("ALLOCATE_TRAFFIC_DESC"))),S.default.createElement(P.default,{min:0,max:100,value:a,leftContent:e.newVersion,rightContent:e.oldVersion,onChange:this.handleRatioChange}),S.default.createElement(C.default,{visible:a!==r,width:400,title:t("ADJUST_TRAFFIC_DISTRIBUTION"),content:t.html("ADJUST_TRAFFIC_DISTRIBUTION_DESC",{newVersion:e.newVersion,oldVersion:e.oldVersion,ratioNew:a,ratioOld:100-a}),cancelText:t("CANCEL"),confirmText:t("OK"),isSubmitting:this.store.isSubmitting,onCancel:this.handleResetRatio,onConfirm:this.handleConfirmSaveRatio}))}},{key:"renderBluegreen",value:function(){var e=(0,A.toJS)(this.store.detail),a=e.governor||(100===e.oldRoute.weight?e.oldVersion:e.newVersion);return S.default.createElement(S.default.Fragment,null,S.default.createElement("div",{className:B.default.sectionTitle},S.default.createElement("div",null,t("TRAFFIC_DISTRIBUTION")),S.default.createElement("p",null,t("BLUE_GREEN_TRAFFIC_DISTRI_DESC"))),S.default.createElement("div",{className:B.default.barWrapper},S.default.createElement("div",{className:B.default.bar},t("VERSION_TRAFFIC_PERCENT",{version:a,percent:"100"}))))}},{key:"renderMirror",value:function(){var e=(0,A.toJS)(this.store.detail),a=e.governor||(100===e.oldRoute.weight?e.oldVersion:e.newVersion);return S.default.createElement(S.default.Fragment,null,S.default.createElement("div",{className:B.default.sectionTitle},S.default.createElement("div",null,t("TRAFFIC_DISTRIBUTION")),S.default.createElement("p",null,t("TRAFFIC_MIRRORING_TRAFFIC_DISTRI_DESC"))),S.default.createElement("div",{className:B.default.mirror},S.default.createElement("div",{className:B.default.barWrapper},S.default.createElement("div",{className:(0,R.default)(B.default.bar,(0,u.default)({},B.default.mirrorBar,a!==e.newVersion))},t("VERSION_TRAFFIC_PERCENT",{version:e.newVersion,percent:"100"}))),S.default.createElement("div",{className:(0,R.default)(B.default.mirrorIcon,(0,u.default)({},B.default.revertMirrorIcon,a===e.oldVersion))},S.default.createElement("img",{src:"/assets/mirror.svg",alt:""})),S.default.createElement("div",{className:B.default.barWrapper},S.default.createElement("div",{className:(0,R.default)(B.default.bar,(0,u.default)({},B.default.mirrorBar,a!==e.oldVersion))},t("VERSION_TRAFFIC_PERCENT",{version:e.oldVersion,percent:"100"})))))}},{key:"renderContentMatch",value:function(){var e=(0,A.toJS)(this.store.detail),a=this.store.components.data,r=this.store.isComponentsLoading;if(r)return S.default.createElement("div",null,S.default.createElement("div",{className:B.default.sectionTitle},S.default.createElement("div",null,t("REQUEST_PARAMETERS")),S.default.createElement("p",null,t("SPECIFY_REQUEST_PARAMETERS_DESC"))),S.default.createElement(T.Loading,{spinning:r,className:B.default.loading}));var n=(0,v.default)(e,"newRoute.match[0]"),o=a[e.newVersion]||{};if(!n)return null;var c=(0,v.default)(n,"uri",{}),s=(0,v.default)(n,"headers",{}),l=Object.keys(c)[0]||"",i=c[l]||"-",u=s.cookie||{},d=Object.keys(u)[0]||"",f=u[d]||"-",p=s["User-Agent"]||{},m=p.regex&&p.regex.slice(3,p.regex.length-3).split("|").map((function(e){return H[e]?H[e].label:e})).join(", ")||"-",h=Object.keys(s).find((function(e){return!["cookie","User-Agent"].includes(e)})),g=s[h]||{},_=Object.keys(g)[0]||"",y=g[_]||"-";return S.default.createElement(S.default.Fragment,null,S.default.createElement("div",{className:B.default.sectionTitle},S.default.createElement("div",null,t("REQUEST_PARAMETERS")),S.default.createElement("p",null,t("SPECIFY_REQUEST_PARAMETERS_DESC"))),S.default.createElement("div",{className:B.default.matchWrapper},e.governor&&S.default.createElement("div",{className:B.default.governor},S.default.createElement("div",null,S.default.createElement("div",null,S.default.createElement(T.Icon,{name:"appcenter",size:40})),S.default.createElement("div",null,t.html("SERVICE_VERSION_RECEIVE_ALL_TRAFFIC",{version:e.governor})),S.default.createElement("div",null,S.default.createElement(T.Button,{onClick:this.handleRecover},t("RESTORE"))))),S.default.createElement(T.Columns,null,S.default.createElement(T.Column,null,S.default.createElement("ul",null,S.default.createElement("li",null,S.default.createElement(T.Icon,{name:"earth",size:24}),S.default.createElement("strong",null,d?t("COOKIE_".concat(G[d])):t("COOKIE")),f),S.default.createElement("li",null,S.default.createElement(T.Icon,{name:"image",size:24}),S.default.createElement("strong",null,t("OS")),m),S.default.createElement("li",null,S.default.createElement(T.Icon,{name:"pen",size:24}),S.default.createElement("strong",null,_?t("HEADER_".concat(G[_])):t("HEADER")),h?"".concat(h,": ").concat(y):""),S.default.createElement("li",null,S.default.createElement(T.Icon,{name:"ip",size:24}),S.default.createElement("strong",null,l?t("URL_".concat(G[l])):t("URL")),i))),S.default.createElement(T.Column,{className:"is-narrow"},S.default.createElement("div",{className:B.default.matchArrow},S.default.createElement(T.Icon,{name:"update",color:{primary:"#329dce"},size:24}))),S.default.createElement(T.Column,{className:"is-narrow"},S.default.createElement("div",{className:B.default.matchVersion},S.default.createElement("div",null,S.default.createElement("div",null,S.default.createElement(T.Icon,{name:"appcenter",size:40})),S.default.createElement("div",null,S.default.createElement("span",{className:"ks-tag"},e.newVersion)),S.default.createElement("div",null,S.default.createElement("strong",null,e.hosts)),S.default.createElement("p",null,t("REPLICA_COUNT"),": ",S.default.createElement("strong",null,o.available),"/",o.desire)))))))}},{key:"renderPolicy",value:function(){var e=(0,A.toJS)(this.store.detail);return"Canary"===e.type?S.default.createElement("div",{style:{marginTop:20}},e.byContent?this.renderContentMatch():this.renderTraffic()):"Bluegreen"===e.type?S.default.createElement("div",{style:{marginTop:20}},this.renderBluegreen()):"Mirror"===e.type?S.default.createElement("div",{style:{marginTop:20}},this.renderMirror()):null}},{key:"renderMonitor",value:function(){var e=(0,A.toJS)(this.store.detail);return S.default.createElement(j.default,{detail:e,store:this.store})}},{key:"render",value:function(){var e=this.props,a=e.visible,r=e.onCancel,n=this.state,o=n.showEditModal,c=n.tipInfo,s=n.tipType,l=(0,A.toJS)(this.store.detail);return S.default.createElement(D.default,{className:B.default.modal,bodyClassName:B.default.body,headerClassName:B.default.header,title:t("TASK_STATUS"),cancelText:t("CLOSE"),onCancel:r,visible:a,fullScreen:!0},c&&S.default.createElement(T.Alert,{className:"margin-b8",type:s,message:c}),this.renderTitle(),S.default.createElement("div",{className:B.default.wrapper},this.renderComponents(),this.renderPolicy()),S.default.createElement("div",{className:B.default.monitor},this.renderMonitor()),S.default.createElement(U.default,{visible:o,module:"grayreleases",formData:this.formData,cluster:l.cluster,onOk:this.handleComponentEdit,onCancel:this.hideEditModal,isSubmitting:this.store.isSubmitting}))}},{key:"websocket",get:function(){return this.props.rootStore.websocket}},{key:"formData",get:function(){var e=(0,A.toJS)(this.store.detail),t="".concat(e.hosts,"-").concat(e.newVersion),a=(0,A.toJS)(this.workloadStore.list.data).find((function(e){return e.name===t}))||{},r=M.default[this.workloadType]({namespace:e.namespace}),n={strategy:(0,A.toJS)(e._originData),workload:{apiVersion:r.apiVersion,kind:r.kind,metadata:{name:t,namespace:a.namespace,labels:a.labels,annotations:a.annotations},spec:a.spec}};return(0,w.mergeLabels)(n.workload,{version:e.newVersion}),n}},{key:"CanDelete",get:function(){var e=this.store.detail,t=e.cluster,a=e.workspace,r=e.namespace;return globals.app.hasPermission({cluster:t,workspace:a,project:r,module:"grayscale-release",action:"delete"})}}]),r}(S.default.Component),c.propTypes={visible:O.default.bool,detail:O.default.object,onCancel:O.default.func,onDelete:O.default.func},c.defaultProps={visible:!1,detail:{},onCancel:function(){},onDelete:function(){}},o=s))||o)||o;a.default=q},4694:function(e,a,r){"use strict";var n=r(20);r(12),r(5),r(11),r(31),r(6),r(84),r(18),r(16),r(98),r(9),r(13),r(10),r(4),r(316),r(23),r(17),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(45),r(5),r(11),r(31),r(6),r(84),r(18),r(28),r(42),r(16),r(34),r(15),r(98),r(9),r(13),r(10),r(4),r(316),r(23),r(57),r(17),r(7);var o=n(r(30)),c=n(r(96)),s=n(r(36)),l=n(r(37)),i=n(r(55)),u=n(r(56)),d=n(r(51)),f=n(r(0)),p=n(r(1)),m=n(r(3)),h=r(433),v=n(r(837)),g=n(r(26)),_=n(r(63)),y=n(r(194)),E=r(14),b=r(186),S=n(r(989)),O=n(r(4695)),R=n(r(1907));function A(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function k(e){for(var t=1;t0?Number((100*(o[0]-c[0])/o[0]).toFixed(2)):NaN,o[1]>0?Number((100*(o[1]-c[1])/o[1]).toFixed(2)):NaN],l=[(0,v.getMetricData)((0,f.default)(r,"request_duration_millis[0].datapoints",[]),NaN),(0,v.getMetricData)((0,f.default)(n,"request_duration_millis[0].datapoints",[]),NaN)];return[{type:"traffic",name:t("TRAFFIC"),legendData:[e.newVersion,e.oldVersion],data:o.map(b),unit:"RPS",icon:"changing-over",tip:t("TRAFFIC_IN_LAST_FIVE_MINUTES")},{type:"request_success_rate",name:t("SUCCESSFUL_REQUEST_RATE"),legendData:[e.newVersion,e.oldVersion],data:s.map(b),icon:"check",unit:"%"},{type:"request_duration",name:t("REQUEST_LATENCY"),legendData:[e.newVersion,e.oldVersion],data:l.map(b),icon:"timed-task",unit:"ms"}]}},{key:"tcpMetrics",get:function(){var e=this.props.data;if(!e)return[];var a=this.state,r=a.newMetrics,n=a.oldMetrics,o=[(0,v.getMetricData)((0,f.default)(r,"tcp_received[0].datapoints",[]),0),(0,v.getMetricData)((0,f.default)(n,"tcp_received[0].datapoints",[]),0)],c=[(0,v.getMetricData)((0,f.default)(r,"tcp_sent[0].datapoints",[]),0),(0,v.getMetricData)((0,f.default)(n,"tcp_sent[0].datapoints",[]),0)];return[{type:"traffic-in",name:t("TCP_INBOUND_TRAFFIC"),legendData:[e.newVersion,e.oldVersion],data:o.map(b),unit:"B/s",icon:"next"},{type:"traffic-out",name:t("TCP_OUTBOUND_TRAFFIC"),legendData:[e.newVersion,e.oldVersion],data:c.map(b),unit:"B/s",icon:"previous"}]}}]),r}(p.default.Component);a.default=S},4704:function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(16),r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(42),r(16),r(4),r(23),r(57),r(17);var o=n(r(36)),c=n(r(37)),s=n(r(55)),l=n(r(56)),i=n(r(51)),u=n(r(0)),d=n(r(1)),f=r(186),p=r(798),m=n(r(1446));function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,i.default)(e);if(t){var n=(0,i.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,l.default)(this,a)}}var v=function(e){(0,s.default)(r,e);var a=h(r);function r(){var e;(0,o.default)(this,r);for(var t=arguments.length,n=new Array(t),c=0;c0&&void 0!==i[0]?i[0]:{},r=e.props,n=r.detailStore.detail.name,o=r.match.params,s=o.cluster,l=o.namespace,t.next=4,e.store.fetchList(O({cluster:s,namespace:l,labelSelector:"springcloud.kubesphere.io/app=".concat(n)},a));case 4:case"end":return t.stop()}}),t)}))),e}return(0,d.default)(r,[{key:"componentDidMount",value:function(){this.fetchData()}},{key:"componentDidUpdate",value:function(e,t){var a=this.detailStore.detail.enabled;a!==t.enabled&&(this.setState({enabled:a}),this.fetchData())}},{key:"renderContent",value:function(){var e=this,a=this.store.list.data;return h.default.createElement("div",{className:b.default.body},(0,g.default)(a)?h.default.createElement("div",{className:b.default.empty},t("NO_INSTANCE_FOUND")):a.map((function(t){return h.default.createElement(E.default,(0,o.default)({key:t.podName,detail:t},e.props.match.params))})))}},{key:"render",value:function(){var e=this.store.list,a=e.data,r=e.isLoading;return h.default.createElement(_.default,{className:b.default.main,title:t("INSTANCE_PL"),empty:t("NO_INSTANCE_FOUND"),isEmpty:(0,g.default)(a),loading:r},this.renderContent())}}]),r}(h.default.Component))||l)||l;a.default=A},4710:function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(16),r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(42),r(16),r(4),r(23),r(57),r(17);var o=n(r(36)),c=n(r(37)),s=n(r(55)),l=n(r(56)),i=n(r(51)),u=n(r(0)),d=n(r(3)),f=r(433),p=r(186),m=n(r(839)),h=r(52),v=n(r(1908));function g(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,i.default)(e);if(t){var n=(0,i.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,l.default)(this,a)}}var _=function(e){(0,s.default)(r,e);var a=g(r);function r(){return(0,o.default)(this,r),a.apply(this,arguments)}return(0,c.default)(r,[{key:"render",value:function(){var e=this.props,a=e.detail,r=a.enabled,n=a.ip,o=a.port,c=a.podName,s=a.podStartTime,l=a.weight,i=a.instanceId,g=e.workspace,_=e.cluster,y=e.namespace;return u.default.createElement("div",{className:v.default.item},u.default.createElement("div",{className:v.default.icon},u.default.createElement(p.Icon,{name:"pod",size:40}),u.default.createElement(m.default,{className:v.default.indicator,type:r?"running":"stopped",flicker:!0})),u.default.createElement("div",{className:(0,d.default)(v.default.text,v.default.name)},u.default.createElement("div",null,u.default.createElement(f.Link,{className:v.default.title,to:"/".concat(g,"/clusters/").concat(_,"/projects/").concat(y,"/microservice-instances/").concat(c,"/").concat(encodeURIComponent(i))},c)),u.default.createElement("p",null,t("CREATED_AGO",{diff:(0,h.getLocalTime)(s).fromNow()}))),u.default.createElement("div",{className:v.default.text},u.default.createElement("div",null,l),u.default.createElement("p",null,t("WEIGHT"))),u.default.createElement("div",{className:v.default.text},u.default.createElement("div",null,n),u.default.createElement("p",null,t("IP_ADDRESS"))),u.default.createElement("div",{className:v.default.text},u.default.createElement("div",null,o),u.default.createElement("p",null,t("PORT"))))}}]),r}(u.default.Component);a.default=_},4711:function(e,a,r){"use strict";r(15);var n=r(20);r(12),r(109),r(5),r(16),r(4),r(23),r(24),r(17),r(62),r(110),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(109),r(45),r(5),r(42),r(16),r(4),r(23),r(57),r(24),r(17),r(62),r(110);var o,c=n(r(315)),s=n(r(36)),l=n(r(37)),i=n(r(55)),u=n(r(56)),d=n(r(51)),f=n(r(0)),p=n(r(63)),m=r(239),h=r(186),v=n(r(240)),g=r(52),_=n(r(1025)),y=n(r(452)),E=n(r(805)),b=n(r(4712));function S(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,d.default)(e);if(t){var n=(0,d.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,u.default)(this,a)}}var O=(0,m.observer)(o=function(e){(0,i.default)(r,e);var a=S(r);function r(){var e;(0,s.default)(this,r);for(var n=arguments.length,o=new Array(n),c=0;c0&&void 0!==arguments[0]?arguments[0]:{};return f.default.createElement("div",{className:v.default.wrapper},f.default.createElement("ul",null,Object.entries(e).map((function(e){var t=(0,c.default)(e,2),a=t[0],r=t[1];return f.default.createElement("li",{key:a},f.default.createElement("div",{className:"h6"},a),f.default.createElement("pre",{className:v.default.value},r))}))))}},{key:"renderPlacement",value:function(){var e=this.props.match.params,t=e.name,a=e.namespace;return this.store.detail.isFedManaged?f.default.createElement(h.default,{module:this.store.module,name:t,namespace:a}):null}},{key:"render",value:function(){var e=this.store,a=e.detail,r=e.isLoading;return f.default.createElement("div",null,this.renderPlacement(),f.default.createElement(m.default,{title:t("DATA"),loading:r},this.renderContent(a.data)))}}]),r}(f.default.Component))||o)||o;a.default=_},4720:function(e,t,a){e.exports={wrapper:"MmIGU7TxTUZMEQR4HrO_A",value:"_3OCiQozLSfsc6vFANx_hhg"}},4721:function(e,t,a){"use strict";a(15);var r=a(20);a(5),a(18),a(16),a(4),a(23),a(24),a(17),a(62),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(45),a(5),a(18),a(42),a(16),a(4),a(23),a(57),a(24),a(17),a(62);var n,o=r(a(36)),c=r(a(37)),s=r(a(55)),l=r(a(56)),i=r(a(51)),u=r(a(0)),d=a(239),f=r(a(789)),p=r(a(4722));function m(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,i.default)(e);if(t){var n=(0,i.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,l.default)(this,a)}}var h=(0,d.inject)("detailStore","historyStore")(n=(0,d.observer)(n=function(e){(0,s.default)(a,e);var t=m(a);function a(){var e;(0,o.default)(this,a);for(var r=arguments.length,n=new Array(r),c=0;c-1?localStorage.getItem("federated-cluster"):e}},{key:"namespace",get:function(){return this.props.match.params.namespace}},{key:"listUrl",get:function(){var e=this.props.match.params,t=e.workspace,a=e.cluster,r=e.namespace;return t?"/".concat(t,"/clusters/").concat(a,"/projects/").concat(r,"/").concat(this.module):"/clusters/".concat(a,"/").concat(this.module)}},{key:"routing",get:function(){return this.props.rootStore.routing}}]),r}(f.default.Component))||o)||o)||o;a.default=O},4725:function(e,t,a){"use strict";a(15);var r=a(20);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=a(317),o=r(a(821)),c=r(a(4726));t.default=function(e){return[{path:"".concat(e,"/resource-status"),title:"RESOURCE_STATUS",component:c.default,exact:!0},{path:"".concat(e,"/metadata"),title:"METADATA",component:o.default,exact:!0},(0,n.getIndexRoute)({path:e,to:"".concat(e,"/resource-status"),exact:!0})]}},4726:function(e,t,a){"use strict";var r=a(20);a(12),a(5),a(11),a(6),a(84),a(18),a(16),a(9),a(13),a(10),a(4),a(23),a(24),a(17),a(85),a(62),a(7),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(12),a(45),a(5),a(11),a(6),a(84),a(18),a(28),a(42),a(16),a(34),a(15),a(9),a(13),a(10),a(4),a(23),a(57),a(24),a(17),a(85),a(62),a(7);var n,o=r(a(30)),c=r(a(36)),s=r(a(37)),l=r(a(55)),i=r(a(56)),u=r(a(51)),d=r(a(0)),f=a(14),p=a(239),m=r(a(63)),h=r(a(450)),v=r(a(861)),g=r(a(857)),_=r(a(849)),y=r(a(1071)),E=r(a(1221)),b=r(a(4727));function S(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function O(e){for(var t=1;t1?t("LOAD_BALANCERS_SCAP"):t("LOAD_BALANCER_SCAP"),title:a.loadBalancerIngress.join("; ")});return o.default.createElement(c.default,{description:a.specType,title:a.externalName})},r(5),r(11),r(73),r(18),r(4);var o=n(r(0)),c=n(r(790))},4737:function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(6),r(84),r(73),r(18),r(16),r(85),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(5),r(6),r(84),r(73),r(18),r(16),r(4),r(85),r(7);var o=n(r(26)),c=n(r(63)),s=n(r(0)),l=n(r(1)),i=r(433),u=r(186),d=r(52),f=n(r(4738)),p=function(e){var a=e.detail,r=e.gateway,n=e.prefix,l={},p=(0,o.default)(r,"service",[]);if((0,c.default)(p)||null==p||p.forEach((function(e){"http"===e.name&&80!==e.nodePort&&(l.http=e.nodePort),"https"===e.name&&443!==e.nodePort&&(l.https=e.nodePort)})),(0,c.default)(a.rules))return null;var m=a.tls||[],h=(0,d.getDisplayName)(a);return s.default.createElement("div",{className:f.default.card},s.default.createElement("div",{className:f.default.content},s.default.createElement(u.Icon,{name:"loadbalancer",size:40}),s.default.createElement("div",{className:f.default.text},s.default.createElement(i.Link,{to:"".concat(n,"/ingresses/").concat(a.name)},h),s.default.createElement("p",null,t("DOMAIN_NAME_VALUE",{value:a.rules.map((function(e){return e.host})).join(", ")})))),s.default.createElement("ul",{className:f.default.rules},a.rules.map((function(e){var a=m.hosts&&m.hosts.includes(e.host)?"https":"http",r="".concat(a,"://").concat(e.host);return l[a]&&(r="".concat(r,":").concat(l[a])),e.http.paths.map((function(a){return s.default.createElement("li",{key:"".concat(e.host).concat(a.path)},s.default.createElement("span",null,"URL:  "),s.default.createElement("span",null,s.default.createElement("strong",null,r,a.path)),s.default.createElement("a",{href:"".concat(r).concat(a.path),target:"_blank",rel:"noreferrer noopener"},s.default.createElement(u.Button,{className:f.default.access},t("ACCESS_SERVICE"))))}))}))))};p.propTypes={rule:l.default.object};var m=p;a.default=m},4738:function(e,t,a){e.exports={card:"_1cG8fQKm3-Tkqa6zrOyoAt",content:"_2K1EVvQAkTRqBliWP9y_UW",text:"_1y1LWjMboGREreksS8-Bre",rules:"_2flmPvDu28-zUq_VX5ZqEy",access:"yZPxinr4XZvaHAzm7Wr-V",empty:"NmU26TG_b_FLHQfw9ynFW"}},4739:function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(18),r(16),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var o=n(r(315));r(5),r(18),r(16);var c=n(r(26)),s=n(r(0)),l=n(r(1)),i=r(433),u=n(r(790)),d=n(r(1911)),f=function(e){var a=e.volume,r=e.prefix,n=t("STORAGE_CLASS_VALUE",{value:(0,c.default)(a,"storageClassName","-")}),l=[{title:(0,c.default)(a,"capacity","-"),description:t("CAPACITY")},{title:(0,c.default)(a,"accessMode","-"),description:t("ACCESS_MODE_TCAP")}];return s.default.createElement("div",{className:d.default.item},s.default.createElement(u.default,{icon:"storage",title:s.default.createElement(i.Link,{to:"".concat(r,"/volumes/").concat(a.name)},a.name),description:n}),l.map((function(e,t){return s.default.createElement(u.default,(0,o.default)({key:t},e))})))};f.propTypes={container:l.default.object};var p=f;a.default=p},4740:function(e,t,a){e.exports={ports:"_1pZVLp9qAjWNtg0beO2Nnr",card:"_21H0IPfRMqfBUSQXZqjFaQ",content:"_1g_x-Rf6m671ilDIqQ7dij",title:"_3wM7e49lglrGDX6Nvyt8Fb",path:"_1AKuvdVsWBs2vcilYDQefn",access:"_2TU8aTcZX_e1mhZBihzVpA"}},4741:function(e,a,r){"use strict";r(15);var n=r(20);r(16),r(4),r(23),r(24),r(17),r(62),r(110),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(42),r(16),r(4),r(23),r(57),r(24),r(17),r(62),r(110);var o,c=n(r(58)),s=n(r(36)),l=n(r(37)),i=n(r(55)),u=n(r(56)),d=n(r(51)),f=n(r(63)),p=n(r(0)),m=r(239),h=r(186),v=n(r(833)),g=n(r(949)),_=r(845),y=n(r(1912)),E=n(r(4763));function b(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,d.default)(e);if(t){var n=(0,d.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,u.default)(this,a)}}var S=(0,m.inject)("detailStore")(o=(0,m.observer)(o=function(e){(0,i.default)(r,e);var a=b(r);function r(e){var n;return(0,s.default)(this,r),(n=a.call(this,e)).handleRefresh=function(){n.getData()},n.handleAutoFetch=function(){var e=n.state.autoFetch;n.setState({autoFetch:!e},(function(){n.state.autoFetch?n.interval=setInterval((function(){n.getData()}),1e4):n.interval&&clearInterval(n.interval)}))},n.handleLookbackChange=function(e){var t=e.step,a=e.times,r=(0,c.default)(e,["step","times"]),o=(0,_.getTimeRange)({step:(0,_.getMinuteValue)(t),times:a}),s=o.start,l=o.end,i=r.start||s,u=r.end||l,d=Math.floor(u-i);n.setState({duration:d},(function(){n.getData()}))},n.operations=function(){var e=n.state.autoFetch;return p.default.createElement("div",{className:E.default.operations},p.default.createElement(g.default,{className:E.default.timeSelect,onChange:n.handleLookbackChange,showStep:!1,dark:!0,arrowIcon:"chevron-down",step:"1m",times:1}),p.default.createElement(h.Button,{type:"flat",icon:e?"pause":"start",onClick:n.handleAutoFetch}),p.default.createElement(h.Button,{type:"flat",icon:"refresh",onClick:n.handleRefresh}))},n.renderHeader=function(){return p.default.createElement("div",{className:E.default.cardHeader},n.operations(),t("TRAFFIC_MONITORING"))},n.state={isGraphLoading:!0,duration:60,autoFetch:!1},n.store=e.detailStore,n.module=e.module,n}return(0,l.default)(r,[{key:"componentDidMount",value:function(){this.getData()}},{key:"componentWillUnmount",value:function(){this.unmount=!0,this.interval&&clearInterval(this.interval)}},{key:"getData",value:function(){var e=this,t=this.props.match.params,a=t.cluster,r=t.namespace,n=t.name,o=this.state.duration;this.setState({isGraphLoading:!0}),this.store.fetchGraph({cluster:a,namespace:r,app:n,duration:o}).then((function(){e.unmount||e.setState({isGraphLoading:!1})}))}},{key:"renderContent",value:function(){var e=this.state.isGraphLoading,a=this.store.graph,r=a.data,n=a.health;return(0,f.default)(r)||(0,f.default)(r.nodes)?e?p.default.createElement(h.Loading,{className:E.default.loading}):p.default.createElement(v.default,{className:E.default.emptyList,image:"/assets/traffic-management.svg",title:t("NO_DATA"),desc:t("TRAFFIC_MONITORING_UNAVAILABLE_DESC")}):p.default.createElement("div",{className:E.default.main},p.default.createElement(y.default,{className:E.default.graph,data:r,health:n,store:this.store,loading:e,onFetch:this.handleRefresh}))}},{key:"render",value:function(){return p.default.createElement(p.default.Fragment,null,this.renderHeader(),this.renderContent())}}]),r}(p.default.Component))||o)||o;a.default=S},4763:function(e,t,a){e.exports={main:"_2iPG6M7MGzMxbPdbDEWKTS",graph:"_1DNY4Ckxe-2VlpvOswSGWY",tracing:"_1U4YYpaZmy1CDP-SUtxJ2s",cardHeader:"_5WqgHfksXAkqCtNbKg2cp",operations:"_3j3KuCy2m-nw5bx3PSeVbs",timeSelect:"_3cUfdUjfIvXc4idqihXfUw",emptyList:"_1t2nghWnemmp2lgjyfQ4Ql",loading:"_1KcntxCOV8bBEr8KBomL9T"}},4764:function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(4),r(23),r(24),r(17),r(62),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(42),r(4),r(23),r(57),r(24),r(17),r(62);var o,c=n(r(36)),s=n(r(37)),l=n(r(55)),i=n(r(56)),u=n(r(51)),d=n(r(63)),f=n(r(0)),p=r(433),m=r(186),h=r(14),v=r(239),g=r(52),_=n(r(833)),y=r(1906),E=n(r(4765));function b(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,u.default)(e);if(t){var n=(0,u.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,i.default)(this,a)}}var S=(0,v.inject)("detailStore")(o=(0,v.observer)(o=function(e){(0,l.default)(r,e);var a=b(r);function r(e){var t;return(0,c.default)(this,r),(t=a.call(this,e)).detailStore=e.detailStore,t.module=e.module,t}return(0,s.default)(r,[{key:"componentDidMount",value:function(){var e=this;this.disposer=(0,h.when)((function(){return!(0,d.default)(e.detailStore.detail)}),(function(){return e.getData()}))}},{key:"componentWillUnmount",value:function(){this.disposer&&this.disposer()}},{key:"getData",value:function(){var e=(0,h.toJS)(this.detailStore.detail).selector,t={namespace:this.namespace,cluster:this.cluster,labelSelector:(0,g.joinSelector)(e)};this.store.fetchList(t).then()}},{key:"renderEmpty",value:function(){return f.default.createElement(_.default,{icon:"istio",title:t("NO_GRAYSCALE_RELEASE_TASK_FOUND"),desc:t("NO_GRAYSCALE_RELEASE_TASK_FOUND_DESC")})}},{key:"renderHeader",value:function(){var e=this.props.match.params,a=e.cluster,r=e.workspace,n=e.namespace;return f.default.createElement("div",{className:E.default.header},f.default.createElement(m.Columns,null,f.default.createElement(m.Column,null,f.default.createElement("p",{className:E.default.headerTip},t("GRAYSCALE_RELEASE_DESC"))),f.default.createElement(m.Column,{className:"is-narrow"},f.default.createElement(p.Link,{to:"/".concat(r,"/clusters/").concat(a,"/projects/").concat(n,"/grayrelease/cates")},this.canCreate&&f.default.createElement(m.Button,{type:"control"},t("CREATE_GRAYSCALE_RELEASE_TASK"))))))}},{key:"canCreate",get:function(){var e=this.props.match.params,t=e.cluster,a=e.workspace,r=e.namespace;return globals.app.hasPermission({cluster:t,workspace:a,project:r,module:"grayscale-release",action:"create"})}}]),r}(y.Component))||o)||o;a.default=S},4765:function(e,t,a){e.exports={header:"_1NlihNgeoVDB3R-HjKAgoV",headerTip:"_2ewkr_stwSEswFhRlWo0M8"}},4766:function(e,a,r){"use strict";var n=r(20);r(12),r(11),r(6),r(18),r(16),r(9),r(13),r(10),r(4),r(23),r(17),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(45),r(11),r(6),r(18),r(28),r(42),r(16),r(34),r(15),r(9),r(13),r(10),r(4),r(23),r(57),r(17),r(7);var o,c=n(r(58)),s=n(r(30)),l=n(r(36)),i=n(r(37)),u=n(r(55)),d=n(r(56)),f=n(r(51)),p=n(r(63)),m=n(r(0)),h=r(14),v=r(239),g=r(52),_=r(186),y=n(r(1915)),E=n(r(1917)),b=n(r(949)),S=r(845),O=n(r(443)),R=n(r(4776));function A(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function k(e){for(var t=1;t0&&e.setState({serviceName:t[0].name},(function(){return e.fetchTracing()}))}))}}},{key:"renderOperations",value:function(){var e=this.state.query;return m.default.createElement("div",{className:R.default.operations},m.default.createElement(_.Select,{options:this.services,value:this.state.serviceName,prefixIcon:m.default.createElement(_.Icon,{name:"appcenter"}),onChange:this.handleServiceChange,valueRenderer:this.serviceRenderer}),m.default.createElement(b.default,{className:R.default.timeSelect,onChange:this.handleLookbackChange,showStep:!1,dark:!0,arrowIcon:"chevron-down"}),m.default.createElement(_.Select,{value:e.limit,options:this.limitOptions,onChange:this.handleLimitChange}),m.default.createElement(_.Button,{type:"flat",icon:"refresh",onClick:this.handleRefresh}))}},{key:"renderTracing",value:function(){var e=this.detailStore,t=e.tracing,a=e.isTracingLoading,r=this.serviceStore.list,n=r.isLoading,o=r.data;return!n&&(0,p.default)(o)?null:m.default.createElement(y.default,{loading:a,data:t.data,operations:this.renderOperations(),onItemClick:this.showDetailModal})}},{key:"render",value:function(){return m.default.createElement("div",null,this.renderTracing(),m.default.createElement(E.default,{detail:this.state.selectItem,visible:this.state.showDetailModal,onCancel:this.hideDetailModal}))}},{key:"limitOptions",get:function(){return[{label:t("LAST_NUM_RECORDS",{num:5}),value:5},{label:t("LAST_NUM_RECORDS",{num:10}),value:10},{label:t("LAST_NUM_RECORDS",{num:20}),value:20},{label:t("LAST_NUM_RECORDS",{num:50}),value:50}]}},{key:"services",get:function(){return this.serviceStore.list.data.map((function(e){return{label:e.name,value:e.name,type:e.type}}))}}]),r}(m.default.Component))||o)||o;a.default=D},4776:function(e,t,a){e.exports={operations:"_-15riN_1mHwid5aQz6xwZ",timeSelect:"_1jv6axOPYBWD4xXsZgGZBB"}},4777:function(e,a,r){"use strict";var n=r(20);r(12),r(109),r(5),r(11),r(6),r(16),r(9),r(13),r(10),r(4),r(23),r(24),r(17),r(62),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(109),r(45),r(5),r(11),r(6),r(28),r(42),r(16),r(34),r(15),r(9),r(13),r(10),r(4),r(23),r(57),r(24),r(17),r(62),r(7);var o,c=n(r(315)),s=n(r(30)),l=n(r(36)),i=n(r(37)),u=n(r(55)),d=n(r(56)),f=n(r(51)),p=n(r(0)),m=r(14),h=r(239),v=n(r(26)),g=n(r(63)),_=r(186),y=r(52),E=r(791),b=n(r(1206)),S=n(r(836)),O=n(r(795)),R=n(r(805)),A=n(r(4778)),k=n(r(4784));function T(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function D(e){for(var t=1;t0&&m.default.createElement(m.default.Fragment,null,m.default.createElement("div",{style:{margin:"12px 0 4px"}},"CluserIP"),m.default.createElement(I.default,null,s.map((function(e){var a=e.label,r=e.value;return m.default.createElement(I.default.Item,{name:t(a),value:r||"-"})})))),l.length>0&&m.default.createElement(m.default.Fragment,null,m.default.createElement("div",{style:{margin:"12px 0 4px"}},"NodePort"),m.default.createElement(I.default,null,l.map((function(e){var a=e.label,r=e.value;return m.default.createElement(I.default.Item,{name:t(a),value:r||"-"})})))),o&&m.default.createElement(m.default.Fragment,null,m.default.createElement("div",{style:{margin:"24px 0 12px"},className:"h6"},"传输加密"),m.default.createElement(I.default,null,m.default.createElement(I.default.Item,{name:t("CA_CERTIFICATE"),value:o.cert?m.default.createElement("div",{className:M.default.flexRow},m.default.createElement("span",null,"ca.p12"),m.default.createElement("a",{href:URL.createObjectURL(c),download:"ca.p12"},t("DOWNLOAD"))):"-"}),m.default.createElement(I.default.Item,{name:t("CA_PASSWORD"),value:m.default.createElement("div",{className:M.default.flexRow},m.default.createElement("span",null,o.password||"-"),m.default.createElement("a",{href:"#",onClick:function(e){e.preventDefault(),(0,T.copyToClipboard)(o.password).then((function(){E.default.success({content:t("COPY_SUCCESSFUL")})}))}},t("COPY")))}),m.default.createElement(I.default.Item,{name:t("VALIDITY_PERIOD"),value:o.validDate||"-"}))))},e.renderStatus=function(){var a=(0,h.toJS)(e.store.detail),r=a.status;return r?a.additional_info?m.default.createElement(y.Tooltip,{content:a.additional_info},m.default.createElement(N.default,{name:t("DATABASE_STATUS_".concat(r.replace(/[-\s]/g,"_").toUpperCase())),type:O.DMPStatus[r]||r})):m.default.createElement(N.default,{name:t("DATABASE_STATUS_".concat(r.replace(/[-\s]/g,"_").toUpperCase())),type:O.DMPStatus[r]||r,flicker:!0}):"-"},e}return(0,u.default)(r,[{key:"componentDidMount",value:function(){var e=this;this.fetchData().then((function(){e.initWebsocket(),(0,g.default)(e.store,"detail.app_id")===D.RadonDBAppId.Kafka&&e.rebalanceStore.fetchList(e.props.match.params)}))}},{key:"componentWillUnmount",value:function(){this.disposer&&this.disposer(),this.websocket.close()}},{key:"checkAlertRulesPermission",value:function(){var e=this.props.match.params,t=e.cluster,a=e.namespace;return globals.app.hasClusterModule(t,"alerting")&&globals.app.hasPermission({cluster:t,project:a,action:"view",module:"alert-rules"})}},{key:"initWebsocket",value:function(){var e=this,t=this.props.match.params.id,a=this.store.getWatchUrl({name:t});a&&(this.websocket.watch(a),this.disposer=(0,h.reaction)((function(){return e.websocket.message}),(function(t){"Manifest"===t.object.kind&&["MODIFIED","DELETED"].includes(t.type)&&e.fetchData()}),{name:a}))}},{key:"render",value:function(){var e={detailStore:this.store};if(this.store.isLoading&&!this.store.detail.name)return m.default.createElement(y.Loading,{className:"ks-page-loading"});var a=m.default.createElement("label",{className:M.default.icon},m.default.createElement(P.default,{iconLetter:this.store.detail.kind,src:this.store.detail.icon,alt:""})),r=this.store.detail.app_id,n={icon:a,module:this.module,name:(0,b.getDisplayName)(this.store.detail),desc:this.store.detail.description,operations:this.getOperations().filter((function(e){return!e.includeApp||e.includeApp.includes(r)})),attrs:this.getAttrs(),customAttrs:this.getCustomAttrs(),breadcrumbs:[{label:t("APP_PL"),url:this.listUrl}]},o=x.default;this.checkAlertRulesPermission()||(o=x.default.filter((function(e){return!e.path.includes("alerting")})));var c=x.default.find((function(e){return e.path.includes("account")}));return c&&(r===D.RadonDBAppId.Kafka?c.title="KAFKA_USERS":c.title="DATABASE_USERS"),o=o.filter((function(e){return e.excludeApp?!e.excludeApp.includes(r):!e.only||e.only===r})),m.default.createElement(w.default,(0,s.default)({stores:e},n,{routes:o}))}},{key:"module",get:function(){return"applications"}},{key:"name",get:function(){return"APP"}},{key:"listUrl",get:function(){var e=this.props.match.params,t=e.cluster,a=e.workspace,r=e.namespace;return"/".concat(a,"/clusters/").concat(t,"/projects/").concat(r,"/").concat(this.module,"/database")}},{key:"routing",get:function(){return this.props.rootStore.routing}},{key:"showUpdateVersion",get:function(){var e=(0,h.toJS)(this.store.detail);return!(e.app_id!==D.RadonDBAppId.OpenSearch||!e.databaseVersionText.includes("2.3.0"))}}]),r}(m.default.Component))||c)||c)||c;a.default=B},4815:function(e,a,r){"use strict";r(15);var n=r(20);r(18),r(27),r(4),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.getCKParams=function(e){var a=e.replicasCount,r=e.tcpPort,n=e.httpPort,c=e.max_server_memory_usage,s=e.max_memory_usage;return[{key:"replicasCount",name:t("REPLICA_COUNT"),value:a,description:t("DBPARAM_REPLICACOUNT_DESC"),range:{min:1,max:3},disable:!0},{key:"tcpPort",name:t("TCP_PORT"),value:(0,o.default)(r,"port"),description:t("DBPARAM_TCPPORT_DESC"),range:{min:1,max:65535},disable:!0},{key:"httpPort",name:t("HTTP_PORT"),value:(0,o.default)(n,"port"),description:t("DBPARAM_HTTPPORT_DESC"),range:{min:1,max:65535},disable:!0},{key:"max_server_memory_usage",name:"max_server_memory_usage",value:Number(c),description:t("DBPARAM_MAX_SERVER_MEMORY_USAGE"),restart:t("YES"),range:{min:1e9,max:128e9}},{key:"max_memory_usage",name:"max_memory_usage",value:Number(s),description:t("DBPARAM_MAX_MEMORY_USAGE"),restart:t("NO"),range:{min:2e7,max:128e9}}]},a.getPGParams=function(e){return[{key:"database_version",name:t("DBPARAM_DATABASE_VERSION"),value:(0,o.default)(e,"pgVersion","12"),description:t("DBPARAM_DATABASE_VERSION_DESC"),restart:"-",disable:!0},{key:"port",name:"port",value:(0,o.default)(e,"port",5432),description:t("DBPARAM_PG_PORT_DESC"),range:{min:1,max:65534},restart:t("YES")},{key:"fsync",name:"fsync",value:(0,o.default)(e,"fsync",!0).toString(),description:t("DBPARAM_FSYNC_DESC"),restart:t("NO"),type:"select",options:[{label:"true",value:"true"},{label:"false",value:"false"}]},{key:"full_page_writes",name:"full_page_writes",value:(0,o.default)(e,"full_page_writes",!0).toString(),description:t("DBPARAM_FULL_PAGE_WRITES_DESC"),restart:t("NO"),type:"select",options:[{label:"true",value:"true"}]},{key:"wal_compression",name:"wal_compression",value:(0,o.default)(e,"wal_compression",!1).toString(),description:t("DBPARAM_WAL_COMPRESSION_DESC"),restart:t("NO"),type:"select",options:[{label:"true",value:"true"},{label:"false",value:"false"}]},{key:"jit",name:"jit",value:(0,o.default)(e,"jit",!1).toString(),description:t("DBPARAM_JIT_DESC"),restart:t("NO"),type:"select",options:[{label:"true",value:"true"},{label:"false",value:"false"}]},{key:"autovacuum",name:"autovacuum",value:(0,o.default)(e,"autovacuum",!0).toString(),description:t("DBPARAM_AUTOVACUUM_DESC"),restart:t("NO"),type:"select",options:[{label:"true",value:"true"},{label:"false",value:"false"}]},{key:"synchronous_commit",name:"synchronous_commit",value:(0,o.default)(e,"synchronous_commit","on"),description:t("DBPARAM_SYNCHRONOUS_COMMIT_DESC"),restart:t("NO"),type:"select",options:[{label:"off",value:"off"},{label:"local",value:"local"},{label:"on",value:"on"},{label:"remote_write",value:"remote_write"},{label:"remote_apply",value:"remote_apply"}]},{key:"wal_level",name:"wal_level",value:(0,o.default)(e,"wal_level","replica"),description:t("DBPARAM_LOG_WAL_LEVEL_DESC"),restart:t("YES"),type:"select",options:[{label:"replica",value:"replica"},{label:"logical",value:"logical"}]},{key:"temp_buffers",name:"temp_buffers",value:parseInt((0,o.default)(e,"temp_buffers","1MB"),10),description:t("DBPARAM_TEMP_BUFFERS_DESC"),restart:t("NO"),range:{min:1,max:32768}},{key:"work_mem",name:"work_mem",value:parseInt((0,o.default)(e,"work_mem","4MB"),10),description:t("DBPARAM_WORK_MEM_DESC"),range:{min:1,max:1024},restart:t("NO")},{key:"maintenance_work_mem",name:"maintenance_work_mem",value:parseInt((0,o.default)(e,"maintenance_work_mem","64MB"),10),description:t("DBPARAM_MAINTENANCE_WORK_MEM_DESC"),range:{min:64,max:1024},restart:t("NO")},{key:"shared_buffers",name:"shared_buffers",value:parseInt((0,o.default)(e,"shared_buffers","128MB"),10),description:t("DBPARAM_SHARED_BUFFERS_DESC"),range:{min:128,max:10240},restart:t("YES")},{key:"max_connections",name:"max_connections",value:(0,o.default)(e,"max_connections",100),description:t("DBPARAM_MAX_CONNECTIONS_DESC"),range:{min:100,max:262143},restart:t("YES")},{key:"max_worker_processes",name:"max_worker_processes",value:(0,o.default)(e,"max_worker_processes",20),description:t("DBPARAM_WORKER_PROCESSES_DESC"),range:{min:10,max:65536},restart:t("YES")},{key:"wal_writer_delay",name:"wal_writer_delay",value:(0,o.default)(e,"wal_writer_delay",10),description:t("DBPARAM_WAL_WRITER_DELAY_DESC"),range:{min:1,max:1e4},restart:t("NO")},{key:"wal_writer_flush_after",name:"wal_writer_flush_after",value:parseInt((0,o.default)(e,"wal_writer_flush_after","1MB"),10),description:t("DBPARAM_WAL_WRITER_FLUSH_AFTER_DESC"),restart:t("NO"),range:{min:1,max:1024}},{key:"commit_delay",name:"commit_delay",value:(0,o.default)(e,"commit_delay",0),description:t("DBPARAM_COMMIT_DELAY_DESC"),range:{min:0,max:1e5},restart:t("NO")},{key:"commit_siblings",name:"commit_siblings",value:(0,o.default)(e,"commit_siblings",5),description:t("DBPARAM_COMMIT_SIBLINGS_DESC"),range:{min:0,max:1e3},restart:t("NO")},{key:"bgwriter_delay",name:"bgwriter_delay",value:(0,o.default)(e,"bgwriter_delay",10),description:t("DBPARAM_BGWRITER_DELAY_DESC"),range:{min:10,max:1e4},restart:t("NO")},{key:"bgwriter_lru_maxpages",name:"bgwriter_lru_maxpages",value:(0,o.default)(e,"bgwriter_lru_maxpages",1e3),description:t("DBPARAM_BGWRITER_LRU_MAXPAGES_DESC"),range:{min:0,max:1073741823},restart:t("NO")},{key:"bgwriter_flush_after",name:"bgwriter_flush_after",value:parseInt((0,o.default)(e,"bgwriter_flush_after","512KB"),10),description:t("DBPARAM_BGWRITER_FLUSH_AFTER_DESC"),restart:t("NO"),range:{min:0,max:2048}},{key:"statement_timeout",name:"statement_timeout",value:(0,o.default)(e,"statement_timeout",0),description:t("DBPARAM_STATEMENT_TIMEOUT_DESC"),range:{min:0,max:2147483647},restart:t("NO")},{key:"idle_in_transaction_session_timeout",name:"idle_in_transaction_session_timeout",value:(0,o.default)(e,"idle_in_transaction_session_timeout",864e5),description:t("DBPARAM_IDLE_IN_TRANSACTION_SESSION_TIMEOUT_DESC"),range:{min:0,max:2147483647},restart:t("NO")},{key:"log_min_duration_statement",name:"log_min_duration_statement",value:(0,o.default)(e,"log_min_duration_statement",1e4),description:t("DBPARAM_LOG_MIN_DURATION_STATEMENT_DESC"),range:{min:-1,max:2147483647},restart:t("NO")},{key:"checkpoint_timeout",name:"checkpoint_timeout",value:(0,o.default)(e,"checkpoint_timeout",300),description:t("DBPARAM_CHECKPOINT_TIMEOUT_DESC"),range:{min:30,max:86400},restart:t("NO")},{key:"autovacuum_vacuum_cost_delay",name:"autovacuum_vacuum_cost_delay",value:(0,o.default)(e,"autovacuum_vacuum_cost_delay",0),description:t("DBPARAM_AUTOVACUUM_VACUUM_COST_DELAY_DESC"),range:{min:-1,max:100},restart:t("NO")},{key:"autovacuum_vacuum_cost_limit",name:"autovacuum_vacuum_cost_limit",value:(0,o.default)(e,"autovacuum_vacuum_cost_limit",1e4),description:t("DBPARAM_AUTOVACUUM_VACUUM_COST_LIMIT_DESC"),restart:t("NO"),range:{min:-1,max:1e4}},{key:"autovacuum_vacuum_scale_factor",name:"autovacuum_vacuum_scale_factor",value:(0,o.default)(e,"autovacuum_vacuum_scale_factor",.02),description:t("DBPARAM_AUTOVACUUM_VACUUM_SCALE_FACTOR_DESC"),restart:t("NO"),integer:!1,range:{min:.01,max:100}},{key:"autovacuum_analyze_scale_factor",name:"autovacuum_analyze_scale_factor",value:(0,o.default)(e,"autovacuum_analyze_scale_factor",.05),description:t("DBPARAM_AUTOVACUUM_ANALYZE_SCALE_FACTOR_DESC"),restart:t("NO"),integer:!1,range:{min:.01,max:100}},{key:"vacuum_defer_cleanup_age",name:"vacuum_defer_cleanup_age",value:(0,o.default)(e,"vacuum_defer_cleanup_age",1e4),description:t("DBPARAM_VACUUM_DEFER_CLEANUP_AGE_DESC"),restart:t("NO"),range:{min:0,max:1e6}},{key:"seq_page_cost",name:"seq_page_cost",value:(0,o.default)(e,"seq_page_cost",1),description:t("DBPARAM_SEQ_PAGE_COST_DESC"),restart:t("NO"),integer:!1,range:{min:0,max:1e8}},{key:"random_page_cost",name:"random_page_cost",value:(0,o.default)(e,"random_page_cost",1.1),description:t("DBPARAM_RANDOM_PAGE_COST_DESC"),restart:t("NO"),integer:!1,range:{min:0,max:1e8}},{key:"cpu_tuple_cost",name:"cpu_tuple_cost",value:(0,o.default)(e,"cpu_tuple_cost",.01),description:t("DBPARAM_CPU_TUPLE_COST_DESC"),restart:t("NO"),integer:!1,range:{min:0,max:1e8}},{key:"cpu_index_tuple_cost",name:"cpu_index_tuple_cost",value:(0,o.default)(e,"cpu_index_tuple_cost",.005),description:t("DBPARAM_CPU_INDEX_TUPLE_COST_DESC"),restart:t("NO"),integer:!1,range:{min:0,max:1e8}},{key:"log_min_messages",name:"log_min_messages",value:(0,o.default)(e,"log_min_messages","WARNING"),description:t("DBPARAM_LOG_MIN_MESSAGES_DESC"),restart:t("NO"),type:"select",options:c.map((function(e){return{label:e,value:e}}))},{key:"log_statement",name:"log_statement",value:(0,o.default)(e,"log_statement","none"),description:t("DBPARAM_LOG_STATEMENT_DESC"),restart:t("NO"),type:"select",options:[{label:"none",value:"none"},{label:"ddl",value:"ddl"},{label:"mod",value:"mod"},{label:"all",value:"all"}]},{key:"max_wal_senders",name:"max_wal_senders",value:(0,o.default)(e,"max_wal_senders",15),description:t("DBPARAM_MAX_WAL_SENDERS_DESC"),restart:t("YES"),range:{min:10,max:262143}},{key:"max_replication_slots",name:"max_replication_slots",value:(0,o.default)(e,"max_replication_slots",15),description:t("DBPARAM_MAX_REPLICATION_SLOTS_DESC"),restart:t("YES"),range:{min:10,max:262143}}]},a.getMySQLParams=function(e){return[{key:"audit_log_policy",name:"audit_log_policy",value:e.audit_log_policy||"NONE",description:t("DBPARAM_AUDIT_LOG_POLICY_DESC"),restart:t("YES"),type:"select",options:[{label:"ALL",value:"ALL"},{label:"LOGINS",value:"LOGINS"},{label:"QEURIES",value:"QEURIES"},{label:"NONE",value:"NONE"}]},{key:"audit_log_format",name:"audit_log_format",value:e.audit_log_format||"OLD",description:t("DBPARAM_AUDIT_LOG_FORMAT_DESC"),restart:t("YES"),type:"select",options:[{label:"OLD",value:"OLD"},{label:"NEW",value:"NEW"},{label:"JSON",value:"JSON"}]},{key:"audit_log_rotate_on_size",name:"audit_log_rotate_on_size",value:parseInt(e.audit_log_rotate_on_size||104857600,10),description:t("DBPARAM_AUDIT_LOG_ROTATE_ON_SIZE_DESC"),restart:t("YES"),range:{min:20971520,max:2147483648}},{key:"audit_log_rotations",name:"audit_log_rotations",value:e.audit_log_rotations||6,description:t("DBPARAM_AUDIT_LOG_ROTATIONS_DESC"),restart:t("YES"),range:{min:6,max:48}},{key:"default_storage_engine",name:"default_storage_engine",value:e.default_storage_engine||"InnoDB",description:t("DBPARAM_DEFAULT_STORAGE_ENGINE_DESC"),restart:t("YES"),type:"select",options:[{label:"InnoDB",value:"InnoDB"},{label:"TokuDB",value:"TokuDB"}]},{key:"innodb_buffer_pool_size",name:"innodb_buffer_pool_size",value:parseInt((0,o.default)(e,"innodb_buffer_pool_size","-1"),10),description:t("DBPARAM_INNODB_BUFFER_POOL_SIZE_DESC"),restart:t("YES"),range:{min:-1}},{key:"character_set_server",name:"character_set_server",value:(0,o.default)(e,"character_set_server","utf8mb4"),description:t("DBPARAM_CHARACTER_SET_SERVER_DESC"),restart:t("YES"),type:"text"},{key:"expire_logs_days",name:"expire_logs_days",value:parseInt((0,o.default)(e,"expire_logs_days","7"),10),description:t("DBPARAM_EXPIRE_LOGS_DAYS_DESC"),restart:t("YES"),range:{min:0,max:14}},{key:"long_query_time",name:"long_query_time",value:parseInt((0,o.default)(e,"long_query_time","3"),10),description:t("DBPARAM_LONG_QUERY_TIME_DESC"),restart:t("YES"),range:{min:0,max:300}},{key:"max_connections",name:"max_connections",value:parseInt((0,o.default)(e,"max_connections","1024"),10),description:t("DBPARAM_MAX_CONNECTIONS_DESC"),restart:t("YES"),range:{min:1024,max:16384}},{key:"max_connect_errors",name:"max_connect_errors",value:parseInt((0,o.default)(e,"max_connect_errors","655360"),10),description:t("DBPARAM_MAX_CONNECT_ERRORS_DESC"),restart:t("YES"),range:{min:1,max:4294967295}},{key:"wait_timeout",name:"wait_timeout",value:parseInt((0,o.default)(e,"wait_timeout","3600"),10),description:t("DBPARAM_WAIT_TIMEOUT_DESC"),restart:t("YES"),range:{min:1,max:2147483}},{key:"max_allowed_packet",name:"max_allowed_packet",value:parseInt((0,o.default)(e,"max_allowed_packet","1073741824"),10),description:t("DBPARAM_MAX_ALLOWED_PACKET_DESC"),restart:t("YES"),range:{min:1024,max:1073741824}},{key:"slave_parallel_workers",name:"slave_parallel_workers",value:parseInt((0,o.default)(e,"slave_parallel_workers","8"),10),description:t("DBPARAM_SLAVE_PARALLEL_WORKERS_DESC"),restart:t("YES"),range:{min:0,max:1024}},{key:"skip_name_resolve",name:"skip_name_resolve",value:(0,o.default)(e,"skip_name_resolve","0"),description:t("DBPARAM_SKIP_NAME_RESOLVE_DESC"),restart:t("YES"),type:"select",options:[{label:"0",value:"0"},{label:"1",value:"1"}]},{key:"autocommit",name:"autocommit",value:(0,o.default)(e,"autocommit","1"),description:t("DBPARAM_AUTOCOMMIT_DESC"),restart:t("YES"),type:"select",options:[{label:"0",value:"0"},{label:"1",value:"1"}]},{key:"transaction_isolation",name:"transaction_isolation",value:(0,o.default)(e,"transaction_isolation","READ-COMMITTED"),description:t("DBPARAM_TRANSACTION_ISOLATION_DESC"),restart:t("YES"),type:"select",options:[{label:"REPEATABLE-READ",value:"REPEATABLE-READ"},{label:"READ-UNCOMMITTED",value:"READ-UNCOMMITTED"},{label:"READ-COMMITTED",value:"READ-COMMITTED"},{label:"SERIALIZABLE",value:"SERIALIZABLE"}]},{key:"innodb_flush_method",name:"innodb_flush_method",value:(0,o.default)(e,"innodb_flush_method","O_DIRECT"),description:t("DBPARAM_INNODB_FLUSH_METHOD_DESC"),restart:t("YES"),type:"select",options:[{label:"O_DIRECT",value:"O_DIRECT"},{label:"fsync",value:"fsync"}]},{key:"innodb_use_native_aio",name:"innodb_use_native_aio",value:(0,o.default)(e,"innodb_use_native_aio","1"),description:t("DBPARAM_INNODB_USE_NATIVE_AIO_DESC"),restart:t("YES"),type:"select",options:[{label:"0",value:"0"},{label:"1",value:"1"}]}]},a.getMongoDBParams=function(e){return[{key:"port",name:"port",value:(0,o.default)(e,"port",27017),description:t("DBPARAM_MONGODB_PORT_DESC"),restart:t("YES")},{key:"oplogSizeMB",name:"oplogSizeMB",value:(0,o.default)(e,"oplogSizeMB",10240),description:t("DBPARAM_OPLOGSIZEMB_DESC"),range:{min:1024,max:51200},restart:t("NO")},{key:"maxIncomingConnections",name:"maxIncomingConnections",value:(0,o.default)(e,"maxIncomingConnections",1e4),description:t("DBPARAM_MAXINCOMINGCONNECTIONS_DESC"),range:{min:3e3,max:2e4},restart:t("YES")},{key:"cursorTimeoutMillis",name:"cursorTimeoutMillis",value:(0,o.default)(e,"cursorTimeoutMillis",6e5),description:t("DBPARAM_CURSORTIMEOUTMILLIS_DESC"),restart:t("YES")},{key:"profilingMode",name:"profilingMode",value:(0,o.default)(e,"profilingMode","off"),description:t("DBPARAM_PROFILINGMODE_MODE"),restart:t("YES"),type:"select",options:[{label:"off",value:"off"},{label:"slowOp",value:"slowOp"},{label:"all",value:"all"}]},{key:"slowOpThresholdMs",name:"slowOpThresholdMs",value:(0,o.default)(e,"slowOpThresholdMs",100),description:t("DBPARAM_SLOWOPTHRESHOLDMS_DESC"),restart:t("YES")},{key:"enableMajorityReadConcern",name:"enableMajorityReadConcern",value:(0,o.default)(e,"enableMajorityReadConcern","true").toString(),description:t("DBPARAM_ENABLEMAJORITYREADCONCERN_DESC"),restart:t("YES"),type:"select",options:[{label:"true",value:"true"},{label:"false",value:"false"}]},{key:"commandVerbosity",name:"commandVerbosity",value:(0,o.default)(e,"commandVerbosity","0"),description:t("DBPARAM_COMMANDVERBOSITY_DESC"),restart:t("YES"),type:"select",options:[{label:"0",value:"0"},{label:"1",value:"1"}]},{key:"indexVerbosity",name:"indexVerbosity",value:(0,o.default)(e,"indexVerbosity","0"),description:t("DBPARAM_INDEXVERBOSITY_DESC"),restart:t("YES"),type:"select",options:[{label:"0",value:"0"},{label:"1",value:"1"}]},{key:"queryVerbosity",name:"queryVerbosity",value:(0,o.default)(e,"queryVerbosity","0"),description:t("DBPARAM_QUERYVERBOSITY_DESC"),restart:t("YES"),type:"select",options:[{label:"0",value:"0"},{label:"1",value:"1"}]},{key:"networkVerbosity",name:"networkVerbosity",value:(0,o.default)(e,"networkVerbosity","0"),description:t("DBPARAM_NETWORKVERBOSITY_DESC"),restart:t("YES"),type:"select",options:[{label:"0",value:"0"},{label:"1",value:"1"}]},{key:"writeVerbosity",name:"writeVerbosity",value:(0,o.default)(e,"writeVerbosity","0"),description:t("DBPARAM_WRITEVERBOSITY_DESC"),restart:t("YES"),type:"select",options:[{label:"0",value:"0"},{label:"1",value:"1"}]}]},a.getRedisParams=function(e){return[{key:"endpointType",name:t("ENDPOINT_TYPE"),value:(0,o.default)(e,"endpointType","false").toString(),description:t("ENDPOINT_TYPE_DESC"),restart:t("YES"),type:"select",options:[{label:t("ENABLED"),value:"true"},{label:t("DISABLED"),value:"false"}]},{key:"maxmemory",name:"maxmemory",value:parseInt((0,o.default)(e,"maxmemory",0),10),description:t("DBPARAM_MAXMEMORY_DESC"),range:{min:0},restart:t("NO")},{key:"activerehashing",name:"activerehashing",value:(0,o.default)(e,"activerehashing","yes"),description:t("DBPARAM_ACTIVEREHASHING_DESC"),restart:t("NO"),type:"select",options:[{label:"yes",value:"yes"},{label:"no",value:"no"}]},{key:"appendonly",name:"appendonly",value:(0,o.default)(e,"appendonly","yes"),description:t("DBPARAM_APPENDONLY_DESC"),restart:t("NO"),type:"select",options:[{label:"yes",value:"yes"},{label:"no",value:"no"}]},{key:"appendfsync",name:"appendfsync",value:(0,o.default)(e,"appendfsync","everysec"),description:t("DBPARAM_APPENDFSYNC_DESC"),restart:t("NO"),type:"select",options:[{label:"no",value:"no"},{label:"everysec",value:"everysec"},{label:"always",value:"always"}]},{key:"cluster-node-timeout",name:"cluster-node-timeout",value:parseInt((0,o.default)(e,"cluster-node-timeout",15e3),10),description:t("DBPARAM_CLUSTER_NODE_TIMEOUT_DESC"),range:{min:1e3,max:6e6},restart:t("NO")},{key:"latency-monitor-threshold",name:"latency-monitor-threshold",value:parseInt((0,o.default)(e,"latency-monitor-threshold",0),10),description:t("DBPARAM_LATENCY_MONITOR_THRESHOLD_DESC"),range:{min:0},restart:t("NO")},{key:"maxclients",name:"maxclients",value:parseInt((0,o.default)(e,"maxclients",102400),10),description:t("DBPARAM_MAXCLIENTS_DESC"),range:{min:10},restart:t("NO")},{key:"maxmemory-policy",name:"maxmemory-policy",value:(0,o.default)(e,"maxmemory-policy","volatile-lru"),description:t("DBPARAM_MAXMEMORY_POLICY_DESC"),restart:t("NO"),type:"select",options:[{label:"volatile-lru",value:"volatile-lru"},{label:"allkeys-lru",value:"allkeys-lru"},{label:"volatile-random",value:"volatile-random"},{label:"allkeys-random",value:"allkeys-random"},{label:"volatile-ttl",value:"volatile-ttl"},{label:"noevtication",value:"noevtication"}]},{key:"maxmemory-samples",name:"maxmemory-samples",value:parseInt((0,o.default)(e,"maxmemory-samples",3),10),description:t("DBPARAM_MAXMEMORY_SAMPLES_DESC"),range:{min:1,max:100},restart:t("NO")},{key:"min-slaves-max-lag",name:"min-slaves-max-lag",value:parseInt((0,o.default)(e,"min-slaves-max-lag",10),10),description:t("DBPARAM_MIN_SLAVES_MAX_LAG_DESC"),range:{min:0},restart:t("NO")},{key:"min-slaves-to-write",name:"min-slaves-to-write",value:parseInt((0,o.default)(e,"min-slaves-to-write",0),10),description:t("DBPARAM_MIN_SLAVES_TO_WRITE_DESC"),range:{min:0},restart:t("NO")},{key:"no-appendfsync-on-rewrite",name:"no-appendfsync-on-rewrite",value:(0,o.default)(e,"no-appendfsync-on-rewrite","no"),description:t("DBPARAM_NO_APPENDFSYNC_ON_REWRITE_DESC"),restart:t("NO"),type:"select",options:[{label:"yes",value:"yes"},{label:"no",value:"no"}]},{key:"notify-keyspace-events",name:"notify-keyspace-events",value:(0,o.default)(e,"notify-keyspace-events",""),description:t("DBPARAM_NOTIFY_KEYSPACE_EVENTS_DESC"),restart:t("NO")},{key:"repl-backlog-size",name:"repl-backlog-size",value:parseInt((0,o.default)(e,"repl-backlog-size",1),10),description:t("DBPARAM_REPL_BACKLOG_SIZE_DESC"),range:{min:1,max:1024},restart:t("NO")},{key:"repl-backlog-ttl",name:"repl-backlog-ttl",value:parseInt((0,o.default)(e,"repl-backlog-ttl",3600),10),description:t("DBPARAM_REPL_BACKLOG_TTL_DESC"),range:{min:1,max:864e3},restart:t("NO")},{key:"repl-timeout",name:"repl-timeout",value:parseInt((0,o.default)(e,"repl-timeout",60),10),description:t("DBPARAM_REPL_TIMEOUT_DESC"),range:{min:1,max:86400},restart:t("NO")},{key:"set-max-intset-entries",name:"set-max-intset-entries",value:parseInt((0,o.default)(e,"set-max-intset-entries",512),10),description:t("DBPARAM_SET_MAX_INTSET_ENTRIES_DESC"),restart:t("NO")},{key:"slowlog-log-slower-than",name:"slowlog-log-slower-than",value:parseInt((0,o.default)(e,"slowlog-log-slower-than",-1),10),description:t("DBPARAM_SLOWLOG_LOG_SLOWER_THAN_DESC"),range:{min:-1,max:6e7},restart:t("NO")},{key:"slowlog-max-len",name:"slowlog-max-len",value:parseInt((0,o.default)(e,"slowlog-max-len",128),10),description:t("DBPARAM_SLOWLOG_MAX_LEN_DESC"),range:{min:1},restart:t("NO")},{key:"hash-max-ziplist-entries",name:"hash-max-ziplist-entries",value:parseInt((0,o.default)(e,"hash-max-ziplist-entries",512),10),description:t("DBPARAM_HASH_MAX_ZIPLIST_ENTRIES_DESC"),range:{min:0},restart:t("NO")},{key:"hash-max-ziplist-value",name:"hash-max-ziplist-value",value:parseInt((0,o.default)(e,"hash-max-ziplist-value",64),10),description:t("DBPARAM_HASH_MAX_ZIPLIST_VALUE_DESC"),range:{min:0},restart:t("NO")},{key:"list-max-ziplist-entries",name:"list-max-ziplist-entries",value:parseInt((0,o.default)(e,"list-max-ziplist-entries",512),10),description:t("DBPARAM_LIST_MAX_ZIPLIST_ENTRIES_DESC"),range:{min:0},restart:t("NO")},{key:"list-max-ziplist-value",name:"list-max-ziplist-value",value:parseInt((0,o.default)(e,"list-max-ziplist-value",64),10),description:t("DBPARAM_LIST_MAX_ZIPLIST_VALUE_DESC"),range:{min:0},restart:t("NO")},{key:"zset-max-ziplist-entries",name:"zset-max-ziplist-entries",value:parseInt((0,o.default)(e,"zset-max-ziplist-entries",128),10),description:t("DBPARAM_ZSET_MAX_ZIPLIST_ENTRIES_DESC"),range:{min:0},restart:t("NO")},{key:"zset-max-ziplist-value",name:"zset-max-ziplist-value",value:parseInt((0,o.default)(e,"zset-max-ziplist-value",64),10),description:t("DBPARAM_ZSET_MAX_ZIPLIST_VALUE_DESC"),range:{min:0},restart:t("NO")},{key:"lua-time-limit",name:"lua-time-limit",value:parseInt((0,o.default)(e,"lua-time-limit",5e3),10),description:t("DBPARAM_LUA_TIME_LIMIT_DESC"),range:{min:0},restart:t("NO")},{key:"io-threads-do-reads",name:"io-threads-do-reads",value:(0,o.default)(e,"io-threads-do-reads","no"),description:t("DBPARAM_IO_THREADS_DO_READS_DESC"),restart:t("YES"),type:"select",options:[{label:"yes",value:"yes"},{label:"no",value:"no"}]},{key:"io-threads",name:"io-threads",value:parseInt((0,o.default)(e,"io-threads",1),10),description:t("DBPARAM_IO_THREADS_DESC"),range:{min:1,max:100},restart:t("YES")},{key:"logfile",name:"logfile",value:(0,o.default)(e,"logfile","logfile"),description:t("DBPARAM_LOGFILE_DESC"),restart:t("YES"),type:"select",options:[{label:"logfile",value:"logfile"},{label:"stdout",value:"stdout"}]}]},a.getECKParams=function(e){return[{key:"thread_pool.write.queue_size",name:"thread_pool.write.queue_size",value:(0,o.default)(e,'["thread_pool.write.queue_size"]',1e4),description:t("DBPARAM_THREAD_POOL_WRITE_QUEUE_SIZE_DESC"),range:{min:1e3,max:2e4},restart:t("YES")},{key:"thread_pool.search.queue_size",name:"thread_pool.search.queue_size",value:(0,o.default)(e,'["thread_pool.search.queue_size"]',1e3),description:t("DBPARAM_THREAD_POOL_SEARCH_QUEUE_SIZE_DESC"),range:{min:1e3,max:2e4},restart:t("YES")},{key:"action.destructive_requires_name",name:"action.destructive_requires_name",value:(0,o.default)(e,'["action.destructive_requires_name"]',"true").toString(),description:t("DBPARAM_ACTION_DESTRUCTIVE_REQUIRES_NAME_DESC"),restart:t("YES"),type:"select",options:[{label:"true",value:"true"},{label:"false",value:"false"}]},{key:"http.cors.enabled",name:"http.cors.enabled",value:(0,o.default)(e,'["http.cors.enabled"]',"false").toString(),description:t("DBPARAM_HTTP_CORS_ENABLED_DESC"),restart:t("YES"),type:"select",options:[{label:"true",value:"true"},{label:"false",value:"false"}]},{key:"http.cors.allow-origin",name:"http.cors.allow-origin",value:(0,o.default)(e,'["http.cors.allow-origin"]',""),description:t("DBPARAM_HTTP_CORS_ALLOW_ORIGIN_DESC"),restart:t("YES")},{key:"indices.fielddata.cache.size",name:"indices.fielddata.cache.size",value:(0,o.default)(e,'["indices.fielddata.cache.size"]',"-1b"),description:t("DBPARAM_INDICES_FIELDDATA_CACHE_SIZE"),restart:t("YES")},{key:"indices.memory.index_buffer_size",name:"indices.memory.index_buffer_size",value:(0,o.default)(e,'["indices.memory.index_buffer_size"]',"10%"),description:t("DBPARAM_INDICES_MEMORY_INDEX_BUFFER_SIZE_DESC"),restart:t("YES")},{key:"indices.queries.cache.size",name:"indices.queries.cache.size",value:(0,o.default)(e,'["indices.queries.cache.size"]',"10%"),description:t("DBPARAM_INDICES_QUERIES_CACHE_SIZE_DESC"),restart:t("YES")},{key:"indices.requests.cache.size",name:"indices.requests.cache.size",value:(0,o.default)(e,'["indices.requests.cache.size"]',"1%"),description:t("DBPARAM_INDICES_REQUESTS_CACHE_SIZE_DESC"),restart:t("YES")},{key:"reindex.remote.whitelist",name:"reindex.remote.whitelist",value:(0,o.default)(e,'["reindex.remote.whitelist"]',""),description:t("DBPARAM_REINDEX_REMOTE_WHITELIST_DESC"),restart:t("YES")},{key:"cluster.routing.allocation.awareness.attributes",name:"cluster.routing.allocation.awareness.attributes",value:(0,o.default)(e,'["cluster.routing.allocation.awareness.attributes"]',""),description:t("DBPARAM_CLUSTER_ROUTING_ALLOCATION_AWARENESS_ATTRIBUTES_DESC"),restart:t("YES")}]},a.getKafkaParams=function(e,a){if("kafka"===a)return[{key:"num.partitions",name:"num.partitions",value:(0,o.default)(e,"num.partitions",3),description:t("DBPARAM_KAFKA_PARTITIONS_DESC"),range:{min:1,max:1e3},restart:t("YES")},{key:"tls",name:"TLS",value:(0,o.default)(e,"tls","true").toString(),description:t("DBPARAM_KAFKA_TLS_DESC"),restart:t("YES"),type:"select",options:[{label:"true",value:"true"},{label:"false",value:"false"}]},{key:"authentication",name:t("DBPARAM_AUTHENTICATION_TYPE"),value:(0,o.default)(e,"authentication","tls").toString(),description:t("DBPARAM_KAFKA_AUTHENTICATION_TYPE_DESC"),restart:t("YES"),type:"select",options:[{label:t("NO_AUTH"),value:"no"},{label:"TLS",value:"tls"},{label:"SCRAM-SHA-512",value:"scram-sha-512"}]},{key:"nodePort",name:t("DBPARAM_NODE_PORT"),value:(0,o.default)(e,"nodePort","false").toString(),description:t("DBPARAM_NODE_PORT_DESC"),restart:t("YES"),type:"select",options:[{label:"true",value:"true"},{label:"false",value:"false"}]},{key:"log.retention.bytes",name:"log.retention.bytes",value:(0,o.default)(e,'["log.retention.bytes"]',-1),description:t("DBPARAM_LOG_RETENTION_BYTES_DESC"),range:{min:-1,max:2147483647},restart:t("YES")},{key:"log.retention.hours",name:"log.retention.hours",value:(0,o.default)(e,'["log.retention.hours"]',168),description:t("DBPARAM_LOG_RETENTION_HOURS_DESC"),range:{min:1,max:8760},restart:t("YES")},{key:"log.segment.bytes",name:"log.segment.bytes",value:(0,o.default)(e,'["log.segment.bytes"]',1073741824),description:t("DBPARAM_LOG_SEGMENT_BYTES_DESC"),range:{min:1048576,max:2147483647},restart:t("YES")},{key:"log.segment.delete.delay.ms",name:"log.segment.delete.delay.ms",value:(0,o.default)(e,'["log.segment.delete.delay.ms"]',6e4),description:t("DBPARAM_LOG_SEGMENT_DELETE_DELAY_MS_DESC"),range:{min:0},restart:t("YES")},{key:"log.roll.hours",name:"log.roll.hours",value:(0,o.default)(e,'["log.roll.hours"]',168),description:t("DBPARAM_LOG_ROLL_HOURS_DESC"),range:{min:1},restart:t("YES")},{key:"offsets.topic.replication.factor",name:"offsets.topic.replication.factor",value:(0,o.default)(e,'["offsets.topic.replication.factor"]',3),description:t("DBPARAM_OFFSETS_TOPIC_REPLICATION_FACTOR"),range:{min:1,max:100},restart:t("YES")},{key:"log.cleanup.policy",name:"log.cleanup.policy",value:(0,o.default)(e,'["log.cleanup.policy"]',"delete"),description:t("DBPARAM_LOG_CLEANUP_POLICY_DESC"),restart:t("YES"),type:"select",options:[{label:"delete",value:"delete"},{label:"compact",value:"compact"}]},{key:"log.cleaner.enable",name:"log.cleaner.enable",value:(0,o.default)(e,'["log.cleaner.enable"]',"true").toString(),description:t("DBPARAM_LOG_CLEANER_ENABLE_DESC"),restart:t("YES"),type:"select",options:[{label:"true",value:"true"},{label:"false",value:"false"}]},{key:"compression.type",name:"compression.type",value:(0,o.default)(e,'["compression.type"]',"producer"),description:t("DBPARAM_COMPRESSION_TYPE_DESC."),restart:t("YES"),type:"select",options:["uncompressed","zstd","lz4","snappy","gzip","producer"].map((function(e){return{label:e,value:e}}))},{key:"message.max.bytes",name:"message.max.bytes",value:(0,o.default)(e,'["message.max.bytes"]',1e6),description:t("DBPARAM_MESSAGE_MAX_BYTES_DESC"),range:{min:1024,max:2147483647},restart:t("YES")},{key:"num.network.threads",name:"num.network.threads",value:(0,o.default)(e,'["num.network.threads"]',3),description:t("DBPARAM_NUM_NETWORK_THREADS_DESC"),range:{min:1},restart:t("YES")},{key:"num.io.threads",name:"num.io.threads",value:(0,o.default)(e,'["num.io.threads"]',8),description:t("DBPARAM_NUM_IO_THREADS_DESC"),range:{min:1,max:20},restart:t("YES")},{key:"num.recovery.threads.per.data.dir",name:"num.recovery.threads.per.data.dir",value:(0,o.default)(e,'["num.recovery.threads.per.data.dir"]',1),description:t("DBPARAM_NUM_RECOVERY_THREADS_PER_DATA_DIR_DESC"),range:{min:1},restart:t("YES")},{key:"num.replica.fetchers",name:"num.replica.fetchers",value:(0,o.default)(e,'["num.replica.fetchers"]',1),description:t("DBPARAM_NUM_REPLICA_FETCHERS_DESC"),range:{min:1,max:10},restart:t("YES")},{key:"queued.max.requests",name:"queued.max.requests",value:(0,o.default)(e,'["queued.max.requests"]',500),description:t("DBPARAM_QUEUED_MAX_REQUESTS_DESC"),range:{min:1,max:5e3},restart:t("YES")},{key:"replica.lag.time.max.ms",name:"replica.lag.time.max.ms",value:(0,o.default)(e,'["replica.lag.time.max.ms"]',1e4),description:t("DBPARAM_REPLICA_LAG_TIME_MAX_MS_DESC"),range:{min:6e3,max:99999},restart:t("YES")},{key:"group.max.session.timeout.ms",name:"group.max.session.timeout.ms",value:(0,o.default)(e,'["group.max.session.timeout.ms"]',18e5),description:t("DBPARAM_GROUP_MAX_SESSION_TIMEOUT_MS_DESC"),range:{min:0,max:9999999},restart:t("YES")},{key:"group.min.session.timeout.ms",name:"group.min.session.timeout.ms",value:(0,o.default)(e,'["group.min.session.timeout.ms"]',6e3),description:t("DBPARAM_GROUP_MIN_SESSION_TIMEOUT_MS_DESC"),range:{min:0,max:6e4},restart:t("YES")},{key:"auto.create.topics.enable",name:"auto.create.topics.enable",value:(0,o.default)(e,'["auto.create.topics.enable"]',"true").toString(),description:t("DBPARAM_AUTO_CREATE_TOPICS_ENABLE_DESC"),restart:t("YES"),type:"select",options:[{label:"true",value:"true"},{label:"false",value:"false"}]},{key:"min.insync.replicas",name:"min.insync.replicas",value:(0,o.default)(e,'["min.insync.replicas"]',2),description:t("DBPARAM_MIN_INSYNC_REPLICAS_DESC"),range:{min:1,max:6},restart:t("YES")},{key:"default.replication.factor",name:"default.replication.factor",value:(0,o.default)(e,'["default.replication.factors"]',3),description:t("DBPARAM_DEFAULT_REPLICATION_FACTORS_DESC"),range:{min:1,max:6},restart:t("YES")},{key:"jmxOptions",name:"jmxOptions",value:(0,o.default)(e,"jmxOptions","disable"),description:t("DBPARAM_JMXOPTIONS_DESC"),restart:t("YES"),type:"select",options:[{label:"disable",value:"disable"},{label:"enable",value:"enable"},{label:"password",value:"password"}]}];return[{key:"tickTime",name:"tickTime",value:(0,o.default)(e,"tickTime",2e3),range:{min:1,max:1e6},description:t("DBPARAM_TICKTIME_DESC"),restart:t("YES")},{key:"initLimit",name:"initLimit",value:(0,o.default)(e,"initLimit",5),range:{min:1,max:1e6},description:t("DBPARAM_INITLIMIT_DESC"),restart:t("YES")},{key:"syncLimit",name:"syncLimit",value:(0,o.default)(e,"syncLimit",2),range:{min:1,max:1e6},description:t("DBPARAM_SYNCLIMIT_DESC"),restart:t("YES")},{key:"maxClientCnxns",name:"maxClientCnxns",value:(0,o.default)(e,"maxClientCnxns",1e3),range:{min:1,max:1e6},description:t("DBPARAM_MAXCLIENTCNXNS_DESC"),restart:t("YES")},{key:"autopurge.snapRetainCount",name:"autopurge.snapRetainCount",value:(0,o.default)(e,'["autopurge.snapRetainCount"]',3),range:{min:3,max:1e8},description:t("DBPARAM_AUTOPURGE_SNAPRETAINCOUNT_DESC"),restart:t("YES")},{key:"autopurge.purgeInterval",name:"autopurge.purgeInterval",value:(0,o.default)(e,'["autopurge.purgeInterval"]',1),range:{min:0,max:720},description:t("DBPARAM_AUTOPURGE_PURGEINTERVAL_DESC"),restart:t("YES")},{key:"jmxOptions",name:"jmxOptions",value:(0,o.default)(e,"jmxOptions","disable"),description:t("DBPARAM_JMXOPTIONS_DESC"),restart:t("YES"),type:"select",options:[{label:"disable",value:"disable"},{label:"enable",value:"enable"},{label:"password",value:"password"}]}]},a.getOpenSearchParams=function(e){return[{key:"thread_pool.write.queue_size",name:"thread_pool.write.queue_size",value:(0,o.default)(e,'["thread_pool.write.queue_size"]',1e4),description:t("DBPARAM_THREAD_POOL_WRITE_QUEUE_SIZE_DESC"),range:{min:1e3,max:2e4},restart:t("YES")},{key:"thread_pool.search.queue_size",name:"thread_pool.search.queue_size",value:(0,o.default)(e,'["thread_pool.search.queue_size"]',1e3),description:t("DBPARAM_THREAD_POOL_SEARCH_QUEUE_SIZE_DESC"),range:{min:1e3,max:2e4},restart:t("YES")},{key:"action.destructive_requires_name",name:"action.destructive_requires_name",value:(0,o.default)(e,'["action.destructive_requires_name"]',"true").toString(),description:t("DBPARAM_ACTION_DESTRUCTIVE_REQUIRES_NAME_DESC"),restart:t("YES"),type:"select",options:[{label:"true",value:"true"},{label:"false",value:"false"}]},{key:"http.cors.enabled",name:"http.cors.enabled",value:(0,o.default)(e,'["http.cors.enabled"]',"false").toString(),description:t("DBPARAM_HTTP_CORS_ENABLED_DESC"),restart:t("YES"),type:"select",options:[{label:"true",value:"true"},{label:"false",value:"false"}]},{key:"http.cors.allow-origin",name:"http.cors.allow-origin",value:(0,o.default)(e,'["http.cors.allow-origin"]',""),description:t("DBPARAM_HTTP_CORS_ALLOW_ORIGIN_DESC"),restart:t("YES")},{key:"indices.fielddata.cache.size",name:"indices.fielddata.cache.size",value:(0,o.default)(e,'["indices.fielddata.cache.size"]',"-1b"),description:t("DBPARAM_INDICES_FIELDDATA_CACHE_SIZE"),restart:t("YES")},{key:"indices.memory.index_buffer_size",name:"indices.memory.index_buffer_size",value:(0,o.default)(e,'["indices.memory.index_buffer_size"]',"10%"),description:t("DBPARAM_INDICES_MEMORY_INDEX_BUFFER_SIZE_DESC"),restart:t("YES")},{key:"indices.queries.cache.size",name:"indices.queries.cache.size",value:(0,o.default)(e,'["indices.queries.cache.size"]',"10%"),description:t("DBPARAM_INDICES_QUERIES_CACHE_SIZE_DESC"),restart:t("YES")},{key:"indices.requests.cache.size",name:"indices.requests.cache.size",value:(0,o.default)(e,'["indices.requests.cache.size"]',"1%"),description:t("DBPARAM_INDICES_REQUESTS_CACHE_SIZE_DESC"),restart:t("YES")},{key:"reindex.remote.whitelist",name:"reindex.remote.whitelist",value:(0,o.default)(e,'["reindex.remote.whitelist"]',""),description:t("DBPARAM_REINDEX_REMOTE_WHITELIST_DESC"),restart:t("YES")},{key:"logstash.PIPELINE_WORKERS",name:"LOGSTASH_PIPELINE_WORKERS",value:Number((0,o.default)(e,"logstash.PIPELINE_WORKERS",1)),description:t("DBPARAM_PIPELINE_WORKERS_DESC"),range:{min:1},restart:t("YES")},{key:"logstash.PIPELINE_BATCH_SIZE",name:"LOGSTASH_PIPELINE_BATCH_SIZE",value:Number((0,o.default)(e,"logstash.PIPELINE_BATCH_SIZE",125)),description:t("DBPARAM_PIPELINE_BATCH_SIZE_DESC"),range:{min:1},restart:t("YES")},{key:"logstash.PIPELINE_BATCH_DELAY",name:"LOGSTASH_PIPELINE_BATCH_DELAY",value:Number((0,o.default)(e,"logstash.PIPELINE_BATCH_DELAY",50)),description:t("DBPARAM_PIPELINE_BATCH_DELAY_DESC"),range:{min:1},restart:t("YES")},{key:"logstash.PIPELINE_UNSAFE_SHUTDOWN",name:"LOGSTASH_PIPELINE_UNSAFE_SHUTDOWN",value:(0,o.default)(e,"logstash.PIPELINE_UNSAFE_SHUTDOWN","false").toString(),description:t("DBPARAM_PIPELINE_UNSAFE_SHUTDOWN_DESC"),restart:t("YES"),type:"select",options:[{label:"true",value:"true"},{label:"false",value:"false"}]},{key:"logstash.PIPELINE_ORDERED",name:"LOGSTASH_PIPELINE_ORDERED",value:(0,o.default)(e,"logstash.PIPELINE_ORDERED","auto"),description:t("DBPARAM_PIPELINE_ORDERED_DESC"),restart:t("YES"),type:"select",options:[{label:"auto",value:"auto"},{label:"true",value:"true"},{label:"false",value:"false"}]},{key:"logstash.PIPELINE.ECS_COMPATIBILITY",name:"LOGSTASH_PIPELINE.ECS_COMPATIBILITY",value:(0,o.default)(e,'logstash["PIPELINE.ECS_COMPATIBILITY"]',"v8"),description:t("DBPARAM_ECS_COMPATIBILITY_DESC"),restart:t("YES"),type:"select",options:[{label:"disabled",value:"disabled"},{label:"v1",value:"v1"},{label:"v8",value:"v8"}]},{key:"logstash.LOG_LEVEL",name:"LOGSTASH_LOG_LEVEL",value:(0,o.default)(e,"logstash.LOG_LEVEL","info"),description:t("DBPARAM_LOG_LEVEL_DESC"),restart:t("YES"),type:"select",options:[{label:"fatal",value:"fatal"},{label:"error",value:"error"},{label:"warn",value:"warn"},{label:"info",value:"info"},{label:"debug",value:"debug"},{label:"trace",value:"trace"}]},{key:"logstash.LOG_FORMAT",name:"LOGSTASH_LOG_FORMAT",value:(0,o.default)(e,"logstash.LOG_FORMAT","plain"),description:t("DBPARAM_LOG_FORMAT_DESC"),restart:t("YES"),type:"select",options:[{label:"plain",value:"plain"},{label:"json",value:"json"}]},{key:"logstash.jvm",name:"LOGSTASH_JVM",value:Number((0,o.default)(e,"logstash.jvm","50")),description:t("DBPARAM_LOG_JVM_DESC"),range:{min:50,max:75},restart:t("YES")}]},r(45),r(18),r(42),r(27),r(4),r(319),r(17);var o=n(r(26));var c=["DEBUG5","DEBUG","INFO","NOTICE","WARNING","ERROR"]},4816:function(e,t,a){"use strict";var r=a(20);a(12),a(5),a(11),a(6),a(18),a(48),a(27),a(137),a(9),a(13),a(10),a(4),a(23),a(17),a(7),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(12),a(45),a(5),a(11),a(6),a(18),a(28),a(245),a(48),a(442),a(191),a(42),a(159),a(27),a(137),a(34),a(15),a(9),a(13),a(10),a(4),a(22),a(23),a(57),a(17),a(7);var n=r(a(43)),o=r(a(61)),c=r(a(30)),s=r(a(58));a(41);var l,i=r(a(44)),u=r(a(36)),d=r(a(37)),f=r(a(55)),p=r(a(56)),m=r(a(51)),h=r(a(49)),v=r(a(26)),g=r(a(74)),_=a(14),y=r(a(68)),E=a(1015),b=a(1093);function S(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function O(e){for(var t=1;t0&&void 0!==m[0]?m[0]:{},a=t.cluster,t.workspace,r=t.namespace,c=t.more,l=t.id,i=(0,s.default)(t,["cluster","workspace","namespace","more","id"]),this.list.isLoading=!0,i.sortBy="createTime",i.limit!==1/0&&-1!==i.limit||(i.limit=-1,i.page=1),i.limit=i.limit||10,e.next=7,request.get(this.getResourceUrl({cluster:a,namespace:r,id:l}));case 7:return u=e.sent,d=((0,v.default)(u,"items")||[]).reverse().slice(0,3).map((function(e){var t=p.statusMap[(0,E.getStatusFromYaml)(e)]||"Creating";return{cluster:a,namespace:r,status:t,name:(0,v.default)(e,"metadata.name"),creationTimestamp:(0,v.default)(e,"metadata.creationTimestamp"),statusName:p.statusNameMap[t]}})),f=Number(u.total||d.length),this.list.update(O(O({data:c?[].concat((0,o.default)(this.list.data),(0,o.default)(d)):d,total:f},i),{},{limit:Number(i.limit)||10,page:Number(i.page)||1,isLoading:!1},this.list.silent?{}:{selectedRowKeys:[]})),e.abrupt("return",d);case 12:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})},{key:"getYamlFromData",value:function(e){var t=JSON.parse(JSON.stringify(b.kafkaYaml.rebalance));return(0,g.default)(t,"metadata.name","".concat(e,"-").concat(Date.now())),(0,g.default)(t,'metadata.labels["strimzi.io/cluster"]',e),t}},{key:"create",value:function(e){var t=Object.assign({},e),a=this.getYamlFromData(t.id);return delete t.id,request.post(this.getListUrl(t),a)}}]),r}(y.default),(0,h.default)(l.prototype,"fetchList",[_.action],Object.getOwnPropertyDescriptor(l.prototype,"fetchList"),l.prototype),(0,h.default)(l.prototype,"create",[_.action],Object.getOwnPropertyDescriptor(l.prototype,"create"),l.prototype),l);t.default=A},4817:function(e,t,a){"use strict";a(15);var r=a(20);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=a(317),o=a(815),c=r(a(4818)),s=r(a(4857)),l=r(a(4861)),i=r(a(4863)),u=r(a(4868)),d=r(a(4870)),f=r(a(4872)),p="/:workspace/clusters/:cluster/projects/:namespace/applications/database/:id",m=[{path:"".concat(p,"/resource-status"),name:"resource-status",title:"OVERVIEW",component:c.default,exact:!0},{path:"".concat(p,"/monitoring"),title:"MONITORING",component:d.default,exact:!0},{path:"".concat(p,"/alerting"),title:"ALERT_RULE_GROUP_PL",component:u.default,exact:!0},{path:"".concat(p,"/account"),title:"DATABASE_USERS",component:s.default,exact:!0,excludeApp:[o.RadonDBAppId.MongoDB,o.RadonDBAppId.Elasticsearch,o.RadonDBAppId.OpenSearch]},{path:"".concat(p,"/backup"),title:"BACKUPS",component:l.default,exact:!0,excludeApp:[o.RadonDBAppId.ClickHouse,o.RadonDBAppId.RedisSentinel,o.RadonDBAppId.RedisCluster,o.RadonDBAppId.MongoDB,o.RadonDBAppId.Elasticsearch,o.RadonDBAppId.Kafka,o.RadonDBAppId.OpenSearch]},{path:"".concat(p,"/topic"),title:"TOPICS",component:f.default,exact:!0,only:o.RadonDBAppId.Kafka},{path:"".concat(p,"/config"),title:"PARAMETERS",component:i.default,exact:!0},(0,n.getIndexRoute)({path:p,to:"".concat(p,"/resource-status"),exact:!0})];t.default=m},4818:function(e,a,r){"use strict";var n=r(20);r(12),r(5),r(11),r(6),r(84),r(18),r(16),r(9),r(13),r(10),r(4),r(23),r(24),r(17),r(85),r(62),r(64),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(45),r(5),r(11),r(6),r(84),r(18),r(28),r(42),r(16),r(34),r(15),r(9),r(13),r(10),r(4),r(436),r(23),r(57),r(24),r(17),r(85),r(62),r(64),r(7);var o,c,s,l=n(r(30)),i=n(r(36)),u=n(r(37)),d=n(r(55)),f=n(r(56)),p=n(r(51)),m=n(r(0)),h=r(239),v=r(186),g=n(r(243)),_=n(r(789)),y=n(r(795)),E=n(r(836)),b=r(52),S=r(815),O=r(1428),R=n(r(4819)),A=n(r(4856));function k(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function T(e){for(var t=1;t500?t("VALUE_CORES",{value:(0,b.cpuFormat)(f.cpu)}):f.cpu||""," ").concat(f.memory||""," | ").concat(this.store.detail.storages.kafka),desc:t("KAFKA_RESOURCES")},{iconSrc:"/assets/radondb_zookeeper.svg",label:this.store.detail.nodes.zookeeper,desc:1===this.store.detail.nodes.zookeeper?t("ZOOKEEPER_NODE"):t("ZOOKEEPER_NODE_PL")},{iconName:"cpu",label:"".concat(parseFloat(p.cpu)>500?t("VALUE_CORES",{value:(0,b.cpuFormat)(p.cpu)}):p.cpu||""," ").concat(p.memory||""," | ").concat(this.store.detail.storages.zookeeper),desc:t("ZOOKEEPER_RESOURCES")}])}else{if(a===S.RadonDBAppId.ClickHouse)d.push({iconSrc:"/assets/pod.svg",label:o,desc:1===o?t("SHARD"):t("SHARD_PL")}),d.push({iconName:"database",label:i,desc:1===i?t("REPLICA"):t("REPLICA_PL")});else if(a===S.RadonDBAppId.RedisSentinel)d.push({iconSrc:"/assets/pod.svg",label:1,desc:t("PRIMARY_NODE_PL")}),d.push({iconName:"database",label:i,desc:1===i?t("STANDBY_NODE"):t("STANDBY_NODE_PL")});else if(a===S.RadonDBAppId.RedisCluster)d.push({iconSrc:"/assets/pod.svg",label:o,desc:t("PRIMARY_NODE_PL")}),d.push({iconName:"database",label:i,desc:1===i?t("STANDBY_NODE"):t("STANDBY_NODE_PL")});else{var h=a===S.RadonDBAppId.PostgreSQL?o+1:o;d.push({iconSrc:"/assets/pod.svg",label:h,desc:t("NODE_PL")}),d.push({iconName:"database",label:o>0?o-1:o,desc:o-1==1?t("REPLICA"):t("REPLICA_PL")})}d.push({iconName:"cpu",label:"".concat(parseFloat(c)>500?"".concat((0,b.cpuFormat)(c),"Core"):c||""," ").concat(s||""),desc:t("RESOURCES")}),d.push({iconName:"storage",label:l,desc:t("VOLUME")})}return m.default.createElement(_.default,{className:A.default.overview},m.default.createElement("div",null,m.default.createElement("div",{className:A.default.title},t("BASIC_INFORMATION")),m.default.createElement("div",{className:A.default.desc},t("DATABASE_RUNNING_FOR_VALUE",{value:u.toNow(!0)}))),m.default.createElement("div",{className:A.default.info},m.default.createElement("div",{className:A.default.card},m.default.createElement("div",null,r?m.default.createElement(y.default,{name:t("DATABASE_STATUS_".concat(r.replace(/[-\s]/g,"_").toUpperCase())),type:O.DMPStatus[r]||r,flicker:!0}):"-",m.default.createElement("div",{className:A.default.desc},t("STATUS")))),d.map((function(e){var t=e.iconSrc,a=e.iconName,r=e.label,n=e.desc;return m.default.createElement("div",{className:A.default.card,key:"".concat(r).concat(n)},t&&m.default.createElement(E.default,{src:t,iconSize:40}),a&&m.default.createElement(v.Icon,{name:a,size:40}),m.default.createElement("div",{className:A.default.detail},m.default.createElement("div",{className:A.default.label},r),m.default.createElement("div",{className:A.default.desc},n)))}))))}},{key:"render",value:function(){var e=this,t=this.store.detail,a=t.cluster,r=t.namespace,n=t.name,o=t.app_id,c=C.Provider,s=C.Consumer;return m.default.createElement(c,{value:{state:this.state,updateState:function(t){e.setState(T(T({},e.state),t))}}},m.default.createElement(h.Provider,{Consumer:s},this.renderPanel(),m.default.createElement(R.default,{cluster:a,chi:n,namespace:r,prefix:this.prefix,app_id:o,replicasCount:this.store.detail.replicasCount,showDelete:this.hasDeleteAction,deleteNode:this.deleteNode})))}},{key:"prefix",get:function(){var e=this.props.match.params,t=e.workspace,a=e.cluster,r=e.namespace;return"/".concat(t,"/clusters/").concat(a,"/projects/").concat(r)}}]),r}(m.default.Component),c.contextType=C,o=s))||o)||o;a.default=P},4819:function(e,a,r){"use strict";var n=r(20);r(12),r(5),r(11),r(6),r(84),r(18),r(16),r(9),r(13),r(10),r(4),r(23),r(24),r(17),r(62),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=a.DBNODE_STATUS=void 0,r(12),r(45),r(5),r(11),r(6),r(84),r(18),r(28),r(42),r(16),r(34),r(15),r(9),r(13),r(4820),r(10),r(4),r(22),r(23),r(57),r(24),r(17),r(62),r(7);var o=n(r(315)),c=n(r(30)),s=n(r(43));r(41);var l,i,u,d=n(r(44)),f=n(r(36)),p=n(r(37)),m=n(r(55)),h=n(r(56)),v=n(r(51)),g=n(r(0)),_=r(106),y=r(47),E=n(r(3)),b=r(239),S=r(14),O=n(r(854)),R=n(r(26)),A=n(r(1433)),k=n(r(1961)),T=r(815),D=n(r(789)),C=n(r(796)),P=r(793),N=n(r(325)),I=n(r(4855)),w=n(r(1972));function x(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function M(e){for(var t=1;t0?"split-".concat(n):""})),this.renderContent())}}]),r}(g.default.Component))||u)||u)||u)||u);a.default=U},4821:function(e,t,a){"use strict";a(15);var r=a(20);a(5),a(29),a(73),a(18),a(87),a(98),a(9),a(4),a(22),a(23),a(17),a(38),a(32),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(a(43));a(41);var o=r(a(44)),c=r(a(36)),s=r(a(37)),l=r(a(55)),i=r(a(56)),u=r(a(51)),d=r(a(49));a(249),a(45),a(5),a(29),a(73),a(18),a(87),a(191),a(42),a(159),a(98),a(9),a(4),a(22),a(23),a(57),a(17),a(38),a(32);var f,p=r(a(96)),m=r(a(58)),h=a(14),v=a(794);function g(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,u.default)(e);if(t){var n=(0,u.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,i.default)(this,a)}}var _=(f=function(e){(0,l.default)(i,e);var t,a,r=g(i);function i(){var e;(0,c.default)(this,i);for(var t=arguments.length,a=new Array(t),s=0;s0&&void 0!==arguments[0]?arguments[0]:{},t=e.cluster,a=e.namespace,r="";return globals.app.isMultiCluster&&t&&(r+="/klusters/".concat(t)),a&&(r+="/namespaces/".concat(a)),r}},{key:"fetchMetrics",value:(a=(0,o.default)(n.default.mark((function e(t){var a,r,o,c,s,l,i,u,d,f,p;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=t.autoRefresh,r=void 0!==a&&a,o=t.more,c=void 0!==o&&o,s=t.fillZero,l=void 0===s||s,i=t.cluster,u=t.namespace,d=(0,m.default)(t,["autoRefresh","more","fillZero","cluster","namespace"]),r?(d.last=!0,this.isRefreshing=!0):this.isLoading=!0,d.cluster&&(this.cluster=d.cluster),f=this.getParams(d),this.config=f.config.reduce((function(e,t){return e.targets=e.targets.concat(t.targets),e}),{namespace:u,cluster:i,targets:[]}),e.t0=this,e.next=8,this.fetchMetricsAll(f);case 8:return e.t1=e.sent,p=e.t0.getResult.call(e.t0,e.t1),r&&(p=this.getRefreshResult(p,this.data)),c&&(p=this.getMoreResult(p,this.data)),this.data=l?(0,v.fillEmptyMetrics)(f,p):p,this.isLoading=!1,this.isRefreshing=!1,e.abrupt("return",p);case 16:case"end":return e.stop()}}),e,this)}))),function(e){return a.apply(this,arguments)})},{key:"fetchMetricsAll",value:(t=(0,o.default)(n.default.mark((function e(t){var a,r,c,s,l,i,u,d,f,p,m=this;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=t.start,r=t.end,c=t.step,s=this.config,l=s.targets,i=void 0===l?[]:l,u=s.cluster,d=s.namespace,this.timeRange={start:a,end:r},f={ID:++this.requestID,errorMessage:"",metrics:[]},e.prev=4,e.next=7,Promise.all(i.map(function(){var e=(0,o.default)(n.default.mark((function e(t){var o,s;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=t.expr,e.next=3,m.fetchMetric({cluster:u,namespace:d,expr:o,step:c,start:a,end:r});case 3:return s=e.sent,e.abrupt("return",{data:s,target:t});case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()));case 7:p=e.sent,f.metrics=p.reduce((function(e,t){var a=t.data,r=void 0===a?[]:a,n=t.target,o=void 0===n?{}:n,c=o.expr,s=o.refId,l=(null==r?void 0:r.result).map((function(e){var t=e.values,a=void 0===t?[]:t,r=e.metric,n=void 0===r?{}:r,l=y(n)||c,i="".concat(s,".").concat(l);return{values:a,metric:n,target:o,id:i,responseMetricID:l}}));return e.concat(l)}),[]),e.next=14;break;case 11:e.prev=11,e.t0=e.catch(4),f.errorMessage=e.t0.message;case 14:return e.prev=14,f.ID===this.requestID&&(this.metrics=f.metrics,this.errorMessage=f.errorMessage),e.finish(14);case 17:return e.abrupt("return",p);case 18:case"end":return e.stop()}}),e,this,[[4,11,14,17]])}))),function(e){return t.apply(this,arguments)})}]),i}(r(a(845)).default),(0,d.default)(f.prototype,"fetchMetrics",[h.action],Object.getOwnPropertyDescriptor(f.prototype,"fetchMetrics"),f.prototype),(0,d.default)(f.prototype,"fetchMetricsAll",[h.action],Object.getOwnPropertyDescriptor(f.prototype,"fetchMetricsAll"),f.prototype),f);function y(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.__name__,a=(0,m.default)(e,["__name__"]);if(!t)return JSON.stringify(a||{});var r=Object.entries(a||{}).map((function(e){var t=(0,p.default)(e,2),a=t[0],r=t[1];return"".concat(a,'="').concat(r,'"')})),n=r.length?"{".concat(r.join(","),"}"):"";return"".concat(t).concat(n)}t.default=_},4822:function(e,a,r){"use strict";var n=r(20);r(12),r(11),r(6),r(9),r(13),r(10),r(4),r(23),r(17),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(45),r(11),r(6),r(28),r(442),r(42),r(34),r(15),r(9),r(13),r(10),r(4),r(23),r(57),r(17),r(7);var o=n(r(30)),c=n(r(36)),s=n(r(37)),l=n(r(88)),i=n(r(55)),u=n(r(56)),d=n(r(51)),f=n(r(0)),p=n(r(1)),m=n(r(3)),h=n(r(63)),v=n(r(60)),g=n(r(450)),_=r(794),y=r(186),E=n(r(801)),b=n(r(949)),S=n(r(4823));function O(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function R(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},a=e||{},r=a.times,n=a.step,o=a.createTime,c={times:r,step:n};if(o){var s=new Date(o).valueOf()/1e3,l=Date.now()/1e3,i=l-s;switch(!0){case i<=1800:c.times=30,c.step="1m";break;case i<=3600:c.times=60,c.step="1m";break;case i<=18e3:c.times=60,c.step="5m"}}t.params=c},t.fetchData=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=R(R({},t.params),e);t.props.onFetch(a)},t.handleChange=function(e){t.params=e;var a=!e.start&&!e.end&&t.props.enableAutoRefresh;t.setState({enableAutoRefresh:a,autoRefresh:!1},(function(){(0,_.stopAutoRefresh)((0,l.default)(t)),t.fetchData()}))},t.handleRefresh=function(){t.fetchData()},t.handleAutoRefresh=function(){t.setState({autoRefresh:!t.state.autoRefresh},(function(){t.state.autoRefresh?(0,_.startAutoRefresh)((0,l.default)(t)):(0,_.stopAutoRefresh)((0,l.default)(t))}))},t.handleToggle=function(e){t.setState({active:e})},t.state={active:!1,enableAutoRefresh:e.enableAutoRefresh,autoRefresh:!1},t.init(),t}return(0,s.default)(r,[{key:"componentDidUpdate",value:function(e){e.step===this.props.step&&e.times===this.props.times&&e.createTime===this.props.createTime||(this.initParams(this.props),this.fetchData())}},{key:"componentWillUnmount",value:function(){(0,_.stopAutoRefresh)(this)}},{key:"init",value:function(){this.initParams(this.props),this.fetchData()}},{key:"renderAutoRefresh",value:function(){var e=this.state,t=e.enableAutoRefresh,a=e.autoRefresh;return t?f.default.createElement(y.Button,{className:S.default.button,type:"control",icon:a?"pause":"start",iconType:"light",onClick:this.handleAutoRefresh}):null}},{key:"renderCustomActions",value:function(){return this.props.customAction||null}},{key:"renderOperations",value:function(){var e=this.state.active,t=this.params,a=t.step,r=t.times,n=this.props.closeBtn;return f.default.createElement("div",{className:(0,m.default)(S.default.operations,(0,o.default)({},S.default.active,e))},this.props.customSelect||null,f.default.createElement(b.default,{step:a,times:r,onChange:this.handleChange,onToggle:this.handleToggle}),this.renderAutoRefresh(),f.default.createElement(y.Button,{className:S.default.button,type:"control",icon:"refresh",iconType:"light",onClick:this.handleRefresh}),this.renderCustomActions(),n)}},{key:"renderTitle",value:function(){var e=this.props.title||t("MONITORING");return f.default.createElement("div",{className:S.default.title},f.default.createElement("span",null,e),this.renderOperations())}},{key:"renderContent",value:function(){var e=this.props.children;return(0,h.default)(e)||(0,v.default)(e)&&(0,h.default)((0,g.default)(e).filter((function(e){return e})))?null:e}},{key:"render",value:function(){var e=this.props.loading,a=this.state.active;return f.default.createElement(y.Loading,{style:{zIndex:0},spinning:e},f.default.createElement(E.default,{className:(0,m.default)(S.default.card,(0,o.default)({},S.default.showDropDown,a)),title:this.renderTitle(),empty:e?" ":t("NO_MONITORING_DATA"),isEmpty:this.props.isEmpty},f.default.createElement("div",{className:S.default.content},this.renderContent())))}}]),r}(f.default.Component);a.default=k,k.propTypes={title:p.default.string,step:p.default.string,times:p.default.number,createTime:p.default.string,onFetch:p.default.func,loading:p.default.bool,refreshing:p.default.bool,isEmpty:p.default.bool,enableAutoRefresh:p.default.bool,customAction:p.default.oneOfType([p.default.node,p.default.element]),customSelect:p.default.oneOfType([p.default.node,p.default.element])},k.defaultProps={step:"10m",times:30,createTime:"",onFetch:function(){},loading:!1,refreshing:!1,isEmpty:!1,enableAutoRefresh:!0,customAction:""}},4823:function(e,t,a){e.exports={card:"_65_m-_4Ubjwu9QSuJvfzt",title:"_Xd78Z9vissC3z3MsYARn",operations:"hkQOkv4O5PZpDcwI2cWWl",button:"_1lWhAFrlevv8CiN813fzw8",content:"JUQudezMo9M8whf3hhuc5",showDropDown:"_1p7Rp4uYKW2hAUoSs2zLfw"}},4824:function(e,t,a){"use strict";a(15);var r=a(20);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(a(4825)),o=r(a(4826)),c=r(a(4827)),s=r(a(4828)),l=r(a(4829)),i=r(a(4830)),u=r(a(4831)),d=r(a(4832)),f=r(a(4833)),p=r(a(4834)),m={mysql:n.default,ck:o.default,pg:c.default,redis:s.default,mongo:i.default,eck:u.default,predixy:l.default,kafka:d.default,zookeeper:f.default,opensearch:p.default};t.default=m},4825:function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(16),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(5),r(16);var o=n(r(26));var c={getConfig:function(e,t){var a=e.detail,r=a.name,n=a.namespace,o=t.name;return[{colors:["#60acfc","#23c2db","#64d5b2","#d5ec5a","#ffb64e","#fb816d","#d15c7f"],description:"**Max Connections** \n\nMax Connections is the maximum permitted number of simultaneous client connections. By default, this is 151. Increasing this value increases the number of file descriptors that mysqld requires. If the required number of descriptors are not available, the server reduces the value of Max Connections.\n\nmysqld actually permits Max Connections + 1 clients to connect. The extra connection is reserved for use by accounts that have the SUPER privilege, such as root.\n\nMax Used Connections is the maximum number of connections that have been in use simultaneously since the server started.\n\nConnections is the number of connection attempts (successful or not) to the MySQL server.",id:92,lines:!0,targets:[{expr:"mysql_global_status_threads_connected{"+'service="'.concat(r,'-metrics",namespace="').concat(n,'",pod="').concat(o,'"')+"}",legendFormat:"Connections",refId:1,step:"1m"},{expr:"mysql_global_status_max_used_connections{"+'service="'.concat(r,'-metrics",namespace="').concat(n,'",pod="').concat(o,'"')+"}",legendFormat:"Max Used Connections",refId:2,step:"1m"},{expr:"mysql_global_variables_max_connections{"+'service="'.concat(r,'-metrics",namespace="').concat(n,'",pod="').concat(o,'"')+"}",legendFormat:"Max Connections",refId:3,step:"1m"}],title:"MYSQL_CONNECTIONS",type:"graph",yaxes:[{format:"none"}]},{colors:["#60acfc","#23c2db","#64d5b2","#d5ec5a","#ffb64e","#fb816d","#d15c7f"],description:"**MySQL Active Threads**\n\nThreads Connected is the number of open connections, while Threads Running is the number of threads not sleeping.",id:10,lines:!0,targets:[{expr:"max_over_time(mysql_global_status_threads_connected{"+'service="'.concat(r,'-metrics",namespace="').concat(n,'",pod="').concat(o,'"')+"}[3m])",legendFormat:"Peak Threads Connected",refId:1,step:"1m"},{expr:"max_over_time(mysql_global_status_threads_running{"+'service="'.concat(r,'-metrics",namespace="').concat(n,'",pod="').concat(o,'"')+"}[3m])",legendFormat:"Peak Threads Running",refId:2,step:"1m"},{expr:"avg_over_time(mysql_global_status_threads_running{"+'service="'.concat(r,'-metrics",namespace="').concat(n,'",pod="').concat(o,'"')+"}[3m])",legendFormat:"Avg Threads Running",refId:3,step:"1m"}],title:"MYSQL_CLIENT_THREAD_ACTIVITY",type:"graph",yaxes:[{format:"none"}]},{colors:["#60acfc","#23c2db","#64d5b2","#d5ec5a","#ffb64e","#fb816d","#d15c7f"],description:"**MySQL Questions**\n\nThe number of statements executed by the server. This includes only statements sent to the server by clients and not statements executed within stored programs, unlike the Queries used in the QPS calculation. \n\nThis variable does not count the following commands:\n* ``COM_PING``\n* ``COM_STATISTICS``\n* ``COM_STMT_PREPARE``\n* ``COM_STMT_CLOSE``\n* ``COM_STMT_RESET``",id:53,lines:!0,targets:[{expr:"rate(mysql_global_status_questions{"+'service="'.concat(r,'-metrics",namespace="').concat(n,'",pod="').concat(o,'"')+"}[5m])",legendFormat:"Questions",refId:1,step:"1m"}],title:"MYSQL_QUESTIONS",type:"graph",yaxes:[{format:"none"}]},{colors:["#60acfc","#23c2db","#64d5b2","#d5ec5a","#ffb64e","#fb816d","#d15c7f"],description:"**MySQL Thread Cache**\n\nThe thread_cache_size variable sets how many threads the server should cache to reuse. When a client disconnects, the client's threads are put in the cache if the cache is not full. It is autosized in MySQL 5.6.8 and above (capped to 100). Requests for threads are satisfied by reusing threads taken from the cache if possible, and only when the cache is empty is a new thread created.\n\n* *Threads_created*: The number of threads created to handle connections.\n* *Threads_cached*: The number of threads in the thread cache.",id:11,lines:!0,targets:[{expr:"mysql_global_variables_thread_cache_size{"+'service="'.concat(r,'-metrics",namespace="').concat(n,'",pod="').concat(o,'"')+"}",legendFormat:"Thread Cache Size",refId:1,step:"1m"},{expr:"mysql_global_status_threads_cached{"+'service="'.concat(r,'-metrics",namespace="').concat(n,'",pod="').concat(o,'"')+"}",legendFormat:"Threads Cached",refId:2,step:"1m"},{expr:"rate(mysql_global_status_threads_created{"+'service="'.concat(r,'-metrics",namespace="').concat(n,'",pod="').concat(o,'"')+"}[5m])",legendFormat:"Threads Created",refId:3,step:"1m"}],title:"MYSQL_THREAD_CACHE",type:"graph",yaxes:[{format:"none"}]},{colors:["#60acfc","#23c2db","#64d5b2","#d5ec5a","#ffb64e","#fb816d","#d15c7f"],id:22,lines:!0,targets:[{expr:"rate(mysql_global_status_created_tmp_tables{"+'service="'.concat(r,'-metrics",namespace="').concat(n,'",pod="').concat(o,'"')+"}[5m])",legendFormat:"CREATED_TEMP_TABLES",refId:1,step:"1m"},{expr:"rate(mysql_global_status_created_tmp_disk_tables{"+'service="'.concat(r,'-metrics",namespace="').concat(n,'",pod="').concat(o,'"')+"}[5m])",legendFormat:"Created Tmp Disk Tables",refId:2,step:"1m"},{expr:"rate(mysql_global_status_created_tmp_files{"+'service="'.concat(r,'-metrics",namespace="').concat(n,'",pod="').concat(o,'"')+"}[5m])",legendFormat:"Created Tmp Files",refId:3,step:"1m"}],title:"MySQL Temporary Objects",type:"graph",yaxes:[{format:"none"}]},{colors:["#60acfc","#23c2db","#64d5b2","#d5ec5a","#ffb64e","#fb816d","#d15c7f"],description:"**MySQL Select Types**\n\nAs with most relational databases, selecting based on indexes is more efficient than scanning an entire table's data. Here we see the counters for selects not done with indexes.\n\n* ***Select Scan*** is how many queries caused full table scans, in which all the data in the table had to be read and either discarded or returned.\n* ***Select Range*** is how many queries used a range scan, which means MySQL scanned all rows in a given range.\n* ***Select Full Join*** is the number of joins that are not joined on an index, this is usually a huge performance hit.",id:311,lines:!0,targets:[{expr:"rate(mysql_global_status_select_full_join{"+'service="'.concat(r,'-metrics",namespace="').concat(n,'",pod="').concat(o,'"')+"}[5m])",legendFormat:"Select Full Join",refId:1,step:"1m"},{expr:"rate(mysql_global_status_select_full_range_join{"+'service="'.concat(r,'-metrics",namespace="').concat(n,'",pod="').concat(o,'"')+"}[5m])",legendFormat:"Select Full Range Join",refId:2,step:"1m"},{expr:"rate(mysql_global_status_select_range{"+'service="'.concat(r,'-metrics",namespace="').concat(n,'",pod="').concat(o,'"')+"}[5m])",legendFormat:"Select Range",refId:3,step:"1m"},{expr:"rate(mysql_global_status_select_range_check{"+'service="'.concat(r,'-metrics",namespace="').concat(n,'",pod="').concat(o,'"')+"}[5m])",legendFormat:"Select Range Check",refId:4,step:"1m"},{expr:"rate(mysql_global_status_select_scan{"+'service="'.concat(r,'-metrics",namespace="').concat(n,'",pod="').concat(o,'"')+"}[5m])",legendFormat:"Select Scan",refId:5,step:"1m"}],title:"MySQL Select Types",type:"graph",yaxes:[{format:"none"}]},{colors:["#60acfc","#23c2db","#64d5b2","#d5ec5a","#ffb64e","#fb816d","#d15c7f"],description:"**MySQL Sorts**\n\nDue to a query's structure, order, or other requirements, MySQL sorts the rows before returning them. For example, if a table is ordered 1 to 10 but you want the results reversed, MySQL then has to sort the rows to return 10 to 1.\n\nThis graph also shows when sorts had to scan a whole table or a given range of a table in order to return the results and which could not have been sorted via an index.",id:30,lines:!0,targets:[{expr:"rate(mysql_global_status_sort_rows{"+'service="'.concat(r,'-metrics",namespace="').concat(n,'",pod="').concat(o,'"')+"}[5m])",legendFormat:"Sort Rows",refId:1,step:"1m"},{expr:"rate(mysql_global_status_sort_range{"+'service="'.concat(r,'-metrics",namespace="').concat(n,'",pod="').concat(o,'"')+"}[5m])",legendFormat:"Sort Range",refId:2,step:"1m"},{expr:"rate(mysql_global_status_sort_merge_passes{"+'service="'.concat(r,'-metrics",namespace="').concat(n,'",pod="').concat(o,'"')+"}[5m])",legendFormat:"Sort Merge Passes",refId:3,step:"1m"},{expr:"rate(mysql_global_status_sort_scan{"+'service="'.concat(r,'-metrics",namespace="').concat(n,'",pod="').concat(o,'"')+"}[5m])",legendFormat:"Sort Scan",refId:4,step:"1m"}],title:"MySQL Sorts",type:"graph",yaxes:[{format:"none"}]},{colors:["#60acfc","#23c2db","#64d5b2","#d5ec5a","#ffb64e","#fb816d","#d15c7f"],description:"**MySQL Slow Queries**\n\nSlow queries are defined as queries being slower than the long_query_time setting. For example, if you have long_query_time set to 3, all queries that take longer than 3 seconds to complete will show on this graph.",id:48,lines:!0,targets:[{expr:"rate(mysql_global_status_slow_queries{"+'service="'.concat(r,'-metrics",namespace="').concat(n,'",pod="').concat(o,'"')+"}[5m])",legendFormat:"Slow Queries",refId:1,step:"1m"}],title:"MySQL Slow Queries",type:"graph",yaxes:[{format:"none"}]},{colors:["#60acfc","#23c2db","#64d5b2","#d5ec5a","#ffb64e","#fb816d","#d15c7f"],description:"**Aborted Connections**\n\nWhen a given host connects to MySQL and the connection is interrupted in the middle (for example due to bad credentials), MySQL keeps that info in a system table (since 5.6 this table is exposed in performance_schema).\n\nIf the amount of failed requests without a successful connection reaches the value of max_connect_errors, mysqld assumes that something is wrong and blocks the host from further connection.\n\nTo allow connections from that host again, you need to issue the ``FLUSH HOSTS`` statement.",id:47,lines:!0,targets:[{expr:"rate(mysql_global_status_aborted_connects{"+'service="'.concat(r,'-metrics",namespace="').concat(n,'",pod="').concat(o,'"')+"}[5m])",legendFormat:"Aborted Connects (attempts)",refId:1,step:"1m"},{expr:"rate(mysql_global_status_aborted_clients{"+'service="'.concat(r,'-metrics",namespace="').concat(n,'",pod="').concat(o,'"')+"}[5m])",legendFormat:"Aborted Clients (timeout)",refId:2,step:"1m"}],title:"MySQL Aborted Connections",type:"graph",yaxes:[{format:"none"}]},{colors:["#60acfc","#23c2db","#64d5b2","#d5ec5a","#ffb64e","#fb816d","#d15c7f"],description:"**Table Locks**\n\nMySQL takes a number of different locks for varying reasons. In this graph we see how many Table level locks MySQL has requested from the storage engine. In the case of InnoDB, many times the locks could actually be row locks as it only takes table level locks in a few specific cases.\n\nIt is most useful to compare Locks Immediate and Locks Waited. If Locks waited is rising, it means you have lock contention. Otherwise, Locks Immediate rising and falling is normal activity.",id:32,lines:!0,targets:[{expr:"rate(mysql_global_status_table_locks_immediate{"+'service="'.concat(r,'-metrics",namespace="').concat(n,'",pod="').concat(o,'"')+"}[5m])",legendFormat:"Table Locks Immediate",refId:1,step:"1m"},{expr:"rate(mysql_global_status_table_locks_waited{"+'service="'.concat(r,'-metrics",namespace="').concat(n,'",pod="').concat(o,'"')+"}[5m])",legendFormat:"Table Locks Waited",refId:2,step:"1m"}],title:"MySQL Table Locks",type:"graph",yaxes:[{format:"none"}]},{colors:["#60acfc","#23c2db","#64d5b2","#d5ec5a","#ffb64e","#fb816d","#d15c7f"],description:"**MySQL Network Traffic**\n\nHere we can see how much network traffic is generated by MySQL. Outbound is network traffic sent from MySQL and Inbound is network traffic MySQL has received.",id:9,lines:!0,stack:!0,targets:[{expr:"rate(mysql_global_status_bytes_received{"+'service="'.concat(r,'-metrics",namespace="').concat(n,'",pod="').concat(o,'"')+"}[5m])",legendFormat:"Inbound",refId:1,step:"1m"},{expr:"rate(mysql_global_status_bytes_sent{"+'service="'.concat(r,'-metrics",namespace="').concat(n,'",pod="').concat(o,'"')+"}[5m])",legendFormat:"Outbound",refId:2,step:"1m"}],title:"MySQL Network Traffic",type:"graph",yaxes:[{format:"Byte"}]},{bars:!0,colors:["#60acfc","#23c2db","#64d5b2","#d5ec5a","#ffb64e","#fb816d","#d15c7f"],description:"**MySQL Network Usage Hourly**\n\nHere we can see how much network traffic is generated by MySQL per hour. You can use the bar graph to compare data sent by MySQL and data received by MySQL.",id:381,stack:!0,targets:[{expr:"increase(mysql_global_status_bytes_received{"+'service="'.concat(r,'-metrics",namespace="').concat(n,'",pod="').concat(o,'"')+"}[1h])",legendFormat:"Received",refId:1,step:"1m"},{expr:"increase(mysql_global_status_bytes_sent{"+'service="'.concat(r,'-metrics",namespace="').concat(n,'",pod="').concat(o,'"')+"}[1h])",legendFormat:"Sent",refId:2,step:"1m"}],title:"MySQL Network Usage Hourly",type:"graph",yaxes:[{format:"Byte"}]},{colors:["#60acfc","#23c2db","#64d5b2","#d5ec5a","#ffb64e","#fb816d","#d15c7f"],description:"***System Memory***: Total Memory for the system.\\\n***InnoDB Buffer Pool Data***: InnoDB maintains a storage area called the buffer pool for caching data and indexes in memory.\\\n***TokuDB Cache Size***: Similar in function to the InnoDB Buffer Pool, TokuDB will allocate 50% of the installed RAM for its own cache.\\\n***Key Buffer Size***: Index blocks for MYISAM tables are buffered and are shared by all threads. key_buffer_size is the size of the buffer used for index blocks.\\\n***Adaptive Hash Index Size***: When InnoDB notices that some index values are being accessed very frequently, it builds a hash index for them in memory on top of B-Tree indexes.\\\n ***Query Cache Size***: The query cache stores the text of a SELECT statement together with the corresponding result that was sent to the client. The query cache has huge scalability problems in that only one thread can do an operation in the query cache at the same time.\\\n***InnoDB Dictionary Size***: The data dictionary is InnoDB ‘s internal catalog of tables. InnoDB stores the data dictionary on disk, and loads entries into memory while the server is running.\\\n***InnoDB Log Buffer Size***: The MySQL InnoDB log buffer allows transactions to run without having to write the log to disk before the transactions commit.",id:50,lines:!0,stack:!0,targets:[{expr:"node_memory_MemTotal_bytes{"+'service="'.concat(r,'-metrics",namespace="').concat(n,'",pod="').concat(o,'"')+"}",legendFormat:"System Memory",refId:1,step:"1m"},{expr:"mysql_global_status_innodb_page_size{"+'service="'.concat(r,'-metrics",namespace="').concat(n,'",pod="').concat(o,'"')+"}",legendFormat:"InnoDB Buffer Pool Data",refId:2,step:"1m"},{expr:"mysql_global_variables_innodb_log_buffer_size{"+'service="'.concat(r,'-metrics",namespace="').concat(n,'",pod="').concat(o,'"')+"}",legendFormat:"InnoDB Log Buffer Size",refId:3,step:"1m"},{expr:"mysql_global_variables_innodb_additional_mem_pool_size{"+'service="'.concat(r,'-metrics",namespace="').concat(n,'",pod="').concat(o,'"')+"}",legendFormat:"InnoDB Additional Memory Pool Size",refId:4,step:"1m"},{expr:"mysql_global_status_innodb_mem_dictionary{"+'service="'.concat(r,'-metrics",namespace="').concat(n,'",pod="').concat(o,'"')+"}",legendFormat:"InnoDB Dictionary Size",refId:5,step:"1m"},{expr:"mysql_global_variables_key_buffer_size{"+'service="'.concat(r,'-metrics",namespace="').concat(n,'",pod="').concat(o,'"')+"}",legendFormat:"Key Buffer Size",refId:6,step:"1m"},{expr:"mysql_global_variables_query_cache_size{"+'service="'.concat(r,'-metrics",namespace="').concat(n,'",pod="').concat(o,'"')+"}",legendFormat:"Query Cache Size",refId:7,step:"1m"},{expr:"mysql_global_status_innodb_mem_adaptive_hash{"+'service="'.concat(r,'-metrics",namespace="').concat(n,'",pod="').concat(o,'"')+"}",legendFormat:"Adaptive Hash Index Size",refId:8,step:"1m"},{expr:"mysql_global_variables_tokudb_cache_size{"+'service="'.concat(r,'-metrics",namespace="').concat(n,'",pod="').concat(o,'"')+"}",legendFormat:"TokuDB Cache Size",refId:9,step:"1m"}],title:"MySQL Internal Memory Overview",type:"graph",yaxes:[{format:"Byte"}]},{colors:["#60acfc","#23c2db","#64d5b2","#d5ec5a","#ffb64e","#fb816d","#d15c7f"],description:"**Top Command Counters**\n\nThe Com_{{xxx}} statement counter variables indicate the number of times each xxx statement has been executed. There is one status variable for each type of statement. For example, Com_delete and Com_update count [``DELETE``](https://dev.mysql.com/doc/refman/5.7/en/delete.html) and [``UPDATE``](https://dev.mysql.com/doc/refman/5.7/en/update.html) statements, respectively. Com_delete_multi and Com_update_multi are similar but apply to [``DELETE``](https://dev.mysql.com/doc/refman/5.7/en/delete.html) and [``UPDATE``](https://dev.mysql.com/doc/refman/5.7/en/update.html) statements that use multiple-table syntax.",id:14,lines:!0,targets:[{expr:"topk(5, rate(mysql_global_status_commands_total{"+'service="'.concat(r,'-metrics",namespace="').concat(n,'",pod="').concat(o,'"')+"}[5m]))",legendFormat:"Com_{{command}}",refId:1,step:"1m"}],title:"Top Command Counters",type:"graph",yaxes:[{format:"none"}]},{bars:!0,colors:["#60acfc","#23c2db","#64d5b2","#d5ec5a","#ffb64e","#fb816d","#d15c7f"],description:"**Top Command Counters Hourly**\n\nThe Com_{{xxx}} statement counter variables indicate the number of times each xxx statement has been executed. There is one status variable for each type of statement. For example, Com_delete and Com_update count [``DELETE``](https://dev.mysql.com/doc/refman/5.7/en/delete.html) and [``UPDATE``](https://dev.mysql.com/doc/refman/5.7/en/update.html) statements, respectively. Com_delete_multi and Com_update_multi are similar but apply to [``DELETE``](https://dev.mysql.com/doc/refman/5.7/en/delete.html) and [``UPDATE``](https://dev.mysql.com/doc/refman/5.7/en/update.html) statements that use multiple-table syntax.",id:39,stack:!0,targets:[{expr:"topk(5, increase(mysql_global_status_commands_total{"+'service="'.concat(r,'-metrics",namespace="').concat(n,'",pod="').concat(o,'"')+"}[1h]))",legendFormat:"Com_{{command}}",refId:1,step:"1m"}],title:"Top Command Counters Hourly",type:"graph",yaxes:[{format:"none"}]},{colors:["#60acfc","#23c2db","#64d5b2","#d5ec5a","#ffb64e","#fb816d","#d15c7f"],description:"**MySQL Handlers**\n\nHandler statistics are internal statistics on how MySQL is selecting, updating, inserting, and modifying rows, tables, and indexes.\n\nThis is in fact the layer between the Storage Engine and MySQL.\n\n* `read_rnd_next` is incremented when the server performs a full table scan and this is a counter you don't really want to see with a high value.\n* `read_key` is incremented when a read is done with an index.\n* `read_next` is incremented when the storage engine is asked to 'read the next index entry'. A high value means a lot of index scans are being done.",id:8,lines:!0,targets:[{expr:"rate(mysql_global_status_handlers_total{"+'service="'.concat(r,'-metrics",namespace="').concat(n,'",pod="').concat(o,'"')+"}[5m])",legendFormat:"{{handler}}",refId:1,step:"1m"}],title:"MySQL Handlers",type:"graph",yaxes:[{format:"none"}]},{colors:["#60acfc","#23c2db","#64d5b2","#d5ec5a","#ffb64e","#fb816d","#d15c7f"],id:28,lines:!0,targets:[{expr:"rate(mysql_global_status_handlers_total{"+'service="'.concat(r,'-metrics",namespace="').concat(n,'",pod="').concat(o,'"')+"}[5m])",legendFormat:"{{handler}}",refId:1,step:"1m"}],title:"MySQL Transaction Handlers",type:"graph",yaxes:[{format:"none"}]},{colors:["#60acfc","#23c2db","#64d5b2","#d5ec5a","#ffb64e","#fb816d","#d15c7f"],description:"**MySQL Query Cache Memory**\n\nThe query cache has huge scalability problems in that only one thread can do an operation in the query cache at the same time. This serialization is true not only for SELECTs, but also for INSERT/UPDATE/DELETE.\n\nThis also means that the larger the `query_cache_size` is set to, the slower those operations become. In concurrent environments, the MySQL Query Cache quickly becomes a contention point, decreasing performance. MariaDB and AWS Aurora have done work to try and eliminate the query cache contention in their flavors of MySQL, while MySQL 8.0 has eliminated the query cache feature.\n\nThe recommended settings for most environments is to set:\n ``query_cache_type=0``\n ``query_cache_size=0``\n\nNote that while you can dynamically change these values, to completely remove the contention point you have to restart the database.",id:46,lines:!0,targets:[{expr:"mysql_global_status_qcache_free_memory{"+'service="'.concat(r,'-metrics",namespace="').concat(n,'",pod="').concat(o,'"')+"}",legendFormat:"Free Memory",refId:1,step:"1m"},{expr:"mysql_global_variables_query_cache_size{"+'service="'.concat(r,'-metrics",namespace="').concat(n,'",pod="').concat(o,'"')+"}",legendFormat:"Query Cache Size",refId:2,step:"1m"}],title:"MySQL Query Cache Memory",type:"graph",yaxes:[{format:"Byte"}]},{colors:["#60acfc","#23c2db","#64d5b2","#d5ec5a","#ffb64e","#fb816d","#d15c7f"],description:"**MySQL Query Cache Activity**\n\nThe query cache has huge scalability problems in that only one thread can do an operation in the query cache at the same time. This serialization is true not only for SELECTs, but also for INSERT/UPDATE/DELETE.\n\nThis also means that the larger the `query_cache_size` is set to, the slower those operations become. In concurrent environments, the MySQL Query Cache quickly becomes a contention point, decreasing performance. MariaDB and AWS Aurora have done work to try and eliminate the query cache contention in their flavors of MySQL, while MySQL 8.0 has eliminated the query cache feature.\n\nThe recommended settings for most environments is to set:\n``query_cache_type=0``\n``query_cache_size=0``\n\nNote that while you can dynamically change these values, to completely remove the contention point you have to restart the database.",id:45,lines:!0,targets:[{expr:"rate(mysql_global_status_qcache_hits{"+'service="'.concat(r,'-metrics",namespace="').concat(n,'",pod="').concat(o,'"')+"}[5m])",legendFormat:"Hits",refId:1,step:"1m"},{expr:"rate(mysql_global_status_qcache_inserts{"+'service="'.concat(r,'-metrics",namespace="').concat(n,'",pod="').concat(o,'"')+"}[5m])",legendFormat:"Inserts",refId:2,step:"1m"},{expr:"rate(mysql_global_status_qcache_not_cached{"+'service="'.concat(r,'-metrics",namespace="').concat(n,'",pod="').concat(o,'"')+"}[5m])",legendFormat:"Not Cached",refId:3,step:"1m"},{expr:"rate(mysql_global_status_qcache_lowmem_prunes{"+'service="'.concat(r,'-metrics",namespace="').concat(n,'",pod="').concat(o,'"')+"}[5m])",legendFormat:"Prunes",refId:4,step:"1m"},{expr:"mysql_global_status_qcache_queries_in_cache{"+'service="'.concat(r,'-metrics",namespace="').concat(n,'",pod="').concat(o,'"')+"}",legendFormat:"Queries in Cache",refId:5,step:"1m"}],title:"MySQL Query Cache Activity",type:"graph",yaxes:[{format:"none"}]},{colors:["#60acfc","#23c2db","#64d5b2","#d5ec5a","#ffb64e","#fb816d","#d15c7f"],id:43,lines:!0,targets:[{expr:"rate(mysql_global_status_opened_files{"+'service="'.concat(r,'-metrics",namespace="').concat(n,'",pod="').concat(o,'"')+"}[5m])",legendFormat:"Openings",refId:1,step:"1m"}],title:"MySQL File Openings",type:"graph",yaxes:[{format:"none"}]},{colors:["#60acfc","#23c2db","#64d5b2","#d5ec5a","#ffb64e","#fb816d","#d15c7f"],id:41,lines:!0,targets:[{expr:"mysql_global_status_open_files{"+'service="'.concat(r,'-metrics",namespace="').concat(n,'",pod="').concat(o,'"')+"}",legendFormat:"Open Files",refId:1,step:"1m"},{expr:"mysql_global_variables_open_files_limit{"+'service="'.concat(r,'-metrics",namespace="').concat(n,'",pod="').concat(o,'"')+"}",legendFormat:"Open Files Limit",refId:2,step:"1m"},{expr:"mysql_global_status_innodb_num_open_files{"+'service="'.concat(r,'-metrics",namespace="').concat(n,'",pod="').concat(o,'"')+"}",legendFormat:"InnoDB Open Files",refId:3,step:"1m"}],title:"MySQL Open Files",type:"graph",yaxes:[{format:"none"}]},{colors:["#60acfc","#23c2db","#64d5b2","#d5ec5a","#ffb64e","#fb816d","#d15c7f"],description:"**MySQL Table Open Cache Status**\n\nThe recommendation is to set the `table_open_cache_instances` to a loose correlation to virtual CPUs, keeping in mind that more instances means the cache is split more times. If you have a cache set to 500 but it has 10 instances, each cache will only have 50 cached.\n\nThe `table_definition_cache` and `table_open_cache` can be left as default as they are auto-sized MySQL 5.6 and above (ie: do not set them to any value).",id:44,lines:!0,targets:[{expr:"rate(mysql_global_status_opened_tables{"+'service="'.concat(r,'-metrics",namespace="').concat(n,'",pod="').concat(o,'"')+"}[5m])",legendFormat:"Openings",refId:1,step:"1m"},{expr:"rate(mysql_global_status_table_open_cache_hits{"+'service="'.concat(r,'-metrics",namespace="').concat(n,'",pod="').concat(o,'"')+"}[5m])",legendFormat:"Hits",refId:2,step:"1m"},{expr:"rate(mysql_global_status_table_open_cache_misses{"+'service="'.concat(r,'-metrics",namespace="').concat(n,'",pod="').concat(o,'"')+"}[5m])",legendFormat:"Misses",refId:3,step:"1m"},{expr:"rate(mysql_global_status_table_open_cache_overflows{"+'service="'.concat(r,'-metrics",namespace="').concat(n,'",pod="').concat(o,'"')+"}[5m])",legendFormat:"Misses due to Overflows",refId:4,step:"1m"},{expr:"(rate(mysql_global_status_table_open_cache_hits{"+'service="'.concat(r,'-metrics",namespace="').concat(n,'",pod="').concat(o,'"')+"}[5m]))",legendFormat:"Table Open Cache Hit Ratio",refId:5,step:"1m"}],title:"MySQL Table Open Cache Status",type:"graph",yaxes:[{format:"none"}]},{colors:["#60acfc","#23c2db","#64d5b2","#d5ec5a","#ffb64e","#fb816d","#d15c7f"],description:"**MySQL Open Tables**\n\nThe recommendation is to set the `table_open_cache_instances` to a loose correlation to virtual CPUs, keeping in mind that more instances means the cache is split more times. If you have a cache set to 500 but it has 10 instances, each cache will only have 50 cached.\n\nThe `table_definition_cache` and `table_open_cache` can be left as default as they are auto-sized MySQL 5.6 and above (ie: do not set them to any value).",id:42,lines:!0,targets:[{expr:"mysql_global_status_open_tables{"+'service="'.concat(r,'-metrics",namespace="').concat(n,'",pod="').concat(o,'"')+"}",legendFormat:"Open Tables",refId:1,step:"1m"},{expr:"mysql_global_variables_table_open_cache{"+'service="'.concat(r,'-metrics",namespace="').concat(n,'",pod="').concat(o,'"')+"}",legendFormat:"Table Open Cache",refId:2,step:"1m"}],title:"MySQL Open Tables",type:"graph",yaxes:[{format:"none"}]},{colors:["#60acfc","#23c2db","#64d5b2","#d5ec5a","#ffb64e","#fb816d","#d15c7f"],description:"**MySQL Table Definition Cache**\n\nThe recommendation is to set the `table_open_cache_instances` to a loose correlation to virtual CPUs, keeping in mind that more instances means the cache is split more times. If you have a cache set to 500 but it has 10 instances, each cache will only have 50 cached.\n\nThe `table_definition_cache` and `table_open_cache` can be left as default as they are auto-sized MySQL 5.6 and above (ie: do not set them to any value).",id:54,lines:!0,targets:[{expr:"mysql_global_status_open_table_definitions{"+'service="'.concat(r,'-metrics",namespace="').concat(n,'",pod="').concat(o,'"')+"}",legendFormat:"Open Table Definitions",refId:1,step:"1m"},{expr:"mysql_global_variables_table_definition_cache{"+'service="'.concat(r,'-metrics",namespace="').concat(n,'",pod="').concat(o,'"')+"}",legendFormat:"Table Definitions Cache Size",refId:2,step:"1m"},{expr:"rate(mysql_global_status_opened_table_definitions{"+'service="'.concat(r,'-metrics",namespace="').concat(n,'",pod="').concat(o,'"')+"}[5m])",legendFormat:"Opened Table Definitions",refId:3,step:"1m"}],title:"MySQL Table Definition Cache",type:"graph",yaxes:[{format:"none"}]}]},getMonitoringCfgs:function(e){return[{type:"utilisation",title:t("MAX_USED_CONNECTIONS"),legend:[t("MAX_USED_CONNECTIONS")],data:[(0,o.default)(e,"[2].data.result[0]",{})]},{type:"utilisation",title:"THREADS",legend:[t("PEAK_THREADS_CONNECTED"),t("PEAK_THREADS_RUNNING"),t("AVG_THREADS_RUNNING")],data:[(0,o.default)(e,"[4].data.result[0]",{}),(0,o.default)(e,"[5].data.result[0]",{}),(0,o.default)(e,"[6].data.result[0]",{})]},{type:"utilisation",title:t("ABORTED_CONNECTIONS"),legend:[t("ABORTED_CONNECTION_ATTEMPTS"),t("ABORTED_CLIENT_TIMEOUTS")],data:[(0,o.default)(e,"[24].data.result[0]",{}),(0,o.default)(e,"[25].data.result[0]",{})]},{type:"utilisation",title:t("QUESTIONS"),legend:[t("QUESTIONS")],data:[(0,o.default)(e,"[7].data.result[0]",{})]},{type:"utilisation",title:t("SELECT_BY_TYPE"),legend:[t("SELECT_FULL_JOIN"),t("SELECT_FULL_RANGE_JOIN"),t("SELECT_RANGE"),t("SELECT_RANGE_CHECK"),t("SELECT_SCAN")],data:[(0,o.default)(e,"[14].data.result[0]",{}),(0,o.default)(e,"[15].data.result[0]",{}),(0,o.default)(e,"[16].data.result[0]",{}),(0,o.default)(e,"[17].data.result[0]",{}),(0,o.default)(e,"[18].data.result[0]",{})]},{type:"utilisation",title:t("SORT_BY_TYPE"),legend:[t("SORT_ROWS"),t("SORT_RANGE"),t("SORT_MERGE_PASSES"),t("SORT_SCAN")],data:[(0,o.default)(e,"[19].data.result[0]",{}),(0,o.default)(e,"[20].data.result[0]",{}),(0,o.default)(e,"[21].data.result[0]",{}),(0,o.default)(e,"[22].data.result[0]",{})]},{type:"utilisation",title:t("SLOW_QUERIES"),legend:[t("SLOW_QUERIES")],data:[(0,o.default)(e,"[23].data.result[0]",{})]},{type:"utilisation",title:t("TABLE_LOCKS"),legend:[t("TABLE_LOCKS_IMMEDIATE"),t("TABLE_LOCKS_WAITED")],data:[(0,o.default)(e,"[26].data.result[0]",{}),(0,o.default)(e,"[27].data.result[0]",{})]},{type:"utilisation",title:t("TMP_TABLES_AND_FILES"),legend:[t("CREATED_TMP_TABLES"),t("CREATED_TMP_DISK_TABLES"),t("CREATED_TMP_FILES")],data:[(0,o.default)(e,"[11].data.result[0]",{}),(0,o.default)(e,"[12].data.result[0]",{}),(0,o.default)(e,"[13].data.result[0]",{})]},{type:"utilisation",title:t("MYSQL_NETWORK_TRAFFIC"),legend:[t("MYSQL_INBOUND"),t("MYSQL_OUTBOUND")],data:[(0,o.default)(e,"[28].data.result[0]",{}),(0,o.default)(e,"[29].data.result[0]",{})]}]}};a.default=c},4826:function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(18),r(16),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(5),r(18),r(16);var o=n(r(26));var c={getConfig:function(e,t){var a=e.detail.namespace,r=t.name;return[{targets:[{expr:'sum by(hostname) (chi_clickhouse_metric_TCPConnection{namespace="'.concat(a,'",pod="').concat(r,'"})')},{expr:'sum by(hostname) (chi_clickhouse_metric_HTTPConnection{namespace="'.concat(a,'",pod="').concat(r,'"})')}]},{targets:[{expr:'chi_clickhouse_metric_DiskDataBytes{namespace="'.concat(a,'",pod="').concat(r,'"}')}]},{targets:[{expr:'sum by(pod) (irate(chi_clickhouse_event_SelectQuery{namespace="'.concat(a,'",pod="').concat(r,'"}[2m]))')}]},{targets:[{expr:'sum by(pod) (irate(chi_clickhouse_event_Query{namespace="'.concat(a,'",pod="').concat(r,'"}[2m]))')}]},{targets:[{expr:'sum by(pod) (irate(chi_clickhouse_event_InsertedBytes{namespace="'.concat(a,'",pod="').concat(r,'"}[2m]))')}]},{targets:[{expr:'sum by(pod) (irate(chi_clickhouse_event_InsertedRows{namespace="'.concat(a,'",pod="').concat(r,'"}[2m]))')}]},{targets:[{expr:'chi_clickhouse_metric_ReplicasMaxAbsoluteDelay{namespace="'.concat(a,'",pod="').concat(r,'"}')},{expr:'chi_clickhouse_metric_ReplicasMaxRelativeDelay{namespace="'.concat(a,'",pod="').concat(r,'"}')}]},{targets:[{expr:'chi_clickhouse_metric_TotalPartsOfMergeTreeTables{namespace="'.concat(a,'",pod="').concat(r,'"}')}]},{targets:[{expr:'chi_clickhouse_metric_DelayedInserts{namespace="'.concat(a,'",pod="').concat(r,'"}')},{expr:'increase(chi_clickhouse_event_DelayedInserts{namespace="'.concat(a,'",pod="').concat(r,'"}[1m])')},{expr:'increase(chi_clickhouse_event_RejectedInserts{namespace="'.concat(a,'",pod="').concat(r,'"}[1m])')},{expr:'chi_clickhouse_metric_DistributedFilesToInsert{namespace="'.concat(a,'",pod="').concat(r,'"}')}]},{targets:[{expr:'sum by(pod) (irate(chi_clickhouse_event_CompressedReadBufferBytes{namespace="'.concat(a,'",pod="').concat(r,'"}[1m]))')},{expr:'sum by(pod) (irate(chi_clickhouse_event_ReadCompressedBytes{namespace="'.concat(a,'",pod="').concat(r,'"}[1m]))')},{expr:'sum by(pod) (irate(chi_clickhouse_event_ReadBufferFromFileDescriptorReadBytes{namespace="'.concat(a,'",pod="').concat(r,'"}[1m]))')},{expr:'sum by(pod) (irate(chi_clickhouse_event_OSReadBytes{namespace="'.concat(a,'",pod="').concat(r,'"}[1m]))')}]},{targets:[{expr:'chi_clickhouse_metric_MemoryTracking{namespace="'.concat(a,'",pod="').concat(r,'"}')}]},{targets:[{expr:'sum by(pod) (irate(chi_clickhouse_event_ReplicatedDataLoss{namespace="'.concat(a,'",pod="').concat(r,'"}[1m]))')},{expr:'sum by(pod) (irate(chi_clickhouse_event_ReplicatedPartChecks{namespace="'.concat(a,'",pod="').concat(r,'"}[1m]))')},{expr:'sum by(pod) (irate(chi_clickhouse_event_ReplicatedPartChecksFailed{namespace="'.concat(a,'",pod="').concat(r,'"}[1m]))')},{expr:'sum by(pod) (irate(chi_clickhouse_event_ReplicatedPartFetches{namespace="'.concat(a,'",pod="').concat(r,'"}[1m]))')},{expr:'sum by(pod) (irate(chi_clickhouse_event_ReplicatedPartFailedFetches{namespace="'.concat(a,'",pod="').concat(r,'"}[1m]))')},{expr:'sum by(pod) (irate(chi_clickhouse_event_ReplicatedPartFetchesOfMerged{namespace="'.concat(a,'",pod="').concat(r,'"}[1m]))')},{expr:'sum by(pod) (irate(chi_clickhouse_event_ReplicatedPartMerges{namespace="'.concat(a,'",pod="').concat(r,'"}[1m]))')},{expr:'chi_clickhouse_metric_ReplicasMaxQueueSize{namespace="'.concat(a,'",pod="').concat(r,'"}')}]},{targets:[{expr:'sum by(pod) (irate(chi_clickhouse_event_Merge{namespace="'.concat(a,'",pod="').concat(r,'"}[1m]))')}]},{targets:[{expr:'sum by(pod) (irate(chi_clickhouse_event_MergedRows{namespace="'.concat(a,'",pod="').concat(r,'"}[1m]))')}]},{targets:[{expr:'sum by(pod) (irate(chi_clickhouse_event_MergedUncompressedBytes{namespace="'.concat(a,'",pod="').concat(r,'"}[1m]))')}]},{targets:[{expr:'sum by(pod) (chi_clickhouse_table_parts{namespace="'.concat(a,'",pod="').concat(r,'",active="1"})')}]},{targets:[{expr:'sum by(pod) (chi_clickhouse_table_parts{namespace="'.concat(a,'",pod="').concat(r,'",active="0"})')}]},{targets:[{expr:'chi_clickhouse_metric_MaxPartCountForPartition{namespace="'.concat(a,'",pod="').concat(r,'"}')}]},{targets:[{expr:'chi_clickhouse_metric_MemoryCode{namespace="'.concat(a,'",pod="').concat(r,'"}')},{expr:'chi_clickhouse_metric_MemoryResident{namespace="'.concat(a,'",pod="').concat(r,'"}')},{expr:'chi_clickhouse_metric_MemoryShared{namespace="'.concat(a,'",pod="').concat(r,'"}')}]},{targets:[{expr:'chi_clickhouse_metric_MemoryPrimaryKeyBytesAllocated{namespace="'.concat(a,'",pod="').concat(r,'"}')}]},{targets:[{expr:'chi_clickhouse_metric_MemoryDictionaryBytesAllocated{namespace="'.concat(a,'",pod="').concat(r,'"}')}]},{targets:[{expr:'irate(chi_clickhouse_event_MarkCacheHits{namespace="'.concat(a,'",pod="').concat(r,'"}[1m]) / (irate(chi_clickhouse_event_MarkCacheHits{namespace="').concat(a,'",pod="').concat(r,'"}[1m]))')}]},{targets:[{expr:'chi_clickhouse_metric_BackgroundPoolTask{namespace="'.concat(a,'",pod="').concat(r,'"}')},{expr:'chi_clickhouse_metric_BackgroundSchedulePoolTask{namespace="'.concat(a,'",pod="').concat(r,'"}')},{expr:'chi_clickhouse_metric_BackgroundMovePoolTask{namespace="'.concat(a,'",pod="').concat(r,'"}')}]},{targets:[{expr:'sum by (pod) (chi_clickhouse_table_mutations{namespace="'.concat(a,'",pod="').concat(r,'"})')},{expr:'sum by (pod) (chi_clickhouse_table_mutations_parts_to_do{namespace="'.concat(a,'",pod="').concat(r,'"})')}]},{targets:[{expr:'sum by(pod) (irate(chi_clickhouse_event_DiskReadElapsedMicroseconds{namespace="'.concat(a,'",pod=~"').concat(r,'"}[1m]))')},{expr:'sum by(pod) (irate(chi_clickhouse_event_DiskWriteElapsedMicroseconds{namespace="'.concat(a,'",pod=~"').concat(r,'"}[1m]))')},{expr:'sum by(pod) (irate(chi_clickhouse_event_NetworkReceiveElapsedMicroseconds{namespace="'.concat(a,'",pod=~"').concat(r,'"}[1m]))')},{expr:'sum by(pod) (irate(chi_clickhouse_event_NetworkSendElapsedMicroseconds{namespace="'.concat(a,'",pod=~"').concat(r,'"}[1m]))')},{expr:'sum by(pod) (irate(chi_clickhouse_event_RealTimeMicroseconds{namespace="'.concat(a,'",pod=~"').concat(r,'"}[1m]))')},{expr:'sum by(pod) (irate(chi_clickhouse_event_UserTimeMicroseconds{namespace="'.concat(a,'",pod=~"').concat(r,'"}[1m]))')},{expr:'sum by(pod) (irate(chi_clickhouse_event_SystemTimeMicroseconds{namespace="'.concat(a,'",pod=~"').concat(r,'"}[1m]))')},{expr:'sum by(pod) (irate(chi_clickhouse_event_OSIOWaitMicroseconds{namespace="'.concat(a,'",pod=~"').concat(r,'"}[1m]))')},{expr:'sum by(pod) (irate(chi_clickhouse_event_OSCPUWaitMicroseconds{namespace="'.concat(a,'",pod=~"').concat(r,'"}[1m]))')},{expr:'sum by(pod) (irate(chi_clickhouse_event_OSCPUVirtualTimeMicroseconds{namespace="'.concat(a,'",pod=~"').concat(r,'"}[1m]))')}]}]},getMonitoringCfgs:function(e){return[{title:t("CONNECTIONS"),legend:["TCP","HTTP"],data:[(0,o.default)(e,"1.data.result[0]",{}),(0,o.default)(e,"2.data.result[0]",{})]},{title:t("CLICKHOUSE_DATA_SIZE_ON_DISK"),unit:"MB",legend:[t("CLICKHOUSE_DATA_SIZE_ON_DISK")],data:[(0,o.default)(e,"3.data.result[0]",{})]},{title:t("QUERIES"),legend:[t("SELECT_QUERIES"),t("ALL_QUERIES")],data:[(0,o.default)(e,"4.data.result[0]",{}),(0,o.default)(e,"5.data.result[0]",{})]},{title:t("INSERTED_BYTES"),unit:"KiB",legend:(0,o.default)(e,"6.data.result",[]).map((function(){return t("INSERTED_BYTES")})),data:(0,o.default)(e,"6.data.result",[])},{title:t("INSERTED_ROWS"),legend:(0,o.default)(e,"7.data.result",[]).map((function(){return t("INSERTED_ROWS")})),data:(0,o.default)(e,"7.data.result",[])},{title:t("MAXIMUM_REPLICATION_DEPLAY"),legend:[t("RELATIVE_DELAY"),t("ABSOLUTE_DELAY")],unit:"s",data:[(0,o.default)(e,"8.data.result[0]",{}),(0,o.default)(e,"9.data.result[0]",{})]},{title:t("TOTAL_PARTS_OF_MERGETREE_TABLES"),legend:[t("TOTAL_PARTS_OF_MERGETREE_TABLES")],data:[(0,o.default)(e,"10.data.result[0]",{})]},{title:t("DELAYED_REJECTED_INSERTS"),legend:[t("DELAYED_QUERIES"),t("DELAYED_BLOCKS"),t("REJECTED_BLOCKS"),t("DELAYED_DISTRIBUTED_FILES")],data:[(0,o.default)(e,"11.data.result[0]",{}),(0,o.default)(e,"12.data.result[0]",{}),(0,o.default)(e,"13.data.result[0]",{}),(0,o.default)(e,"14.data.result[0]",{})]},{title:t("READ_BYTES"),legend:[t("UNCOMPRESSED"),t("COMPRESSED"),t("FILE_DESCRIPTOR"),t("CLICKHOUSE_OS")],unitType:"memory",data:[(0,o.default)(e,"15.data.result[0]",{}),(0,o.default)(e,"16.data.result[0]",{}),(0,o.default)(e,"17.data.result[0]",{}),(0,o.default)(e,"18.data.result[0]",{})]},{title:t("MEMORY_FOR_QUERIES"),legend:[t("MEMORY_FOR_QUERIES")],unitType:"memory",data:[(0,o.default)(e,"19.data.result[0]",{})]},{title:t("REPLICATION_QUEUE_JOBS"),legend:[t("DATA_LOSS"),t("CHECK"),t("CHECK_FAIL"),t("FETCH"),t("FETCH_FAIL"),t("FETCH_MERGED"),t("REPLICATED_MERGED"),t("MAX_QUEUE_SIZE")],unitType:"memory",data:[(0,o.default)(e,"20.data.result[0]",{}),(0,o.default)(e,"21.data.result[0]",{}),(0,o.default)(e,"22.data.result[0]",{}),(0,o.default)(e,"23.data.result[0]",{}),(0,o.default)(e,"24.data.result[0]",{}),(0,o.default)(e,"25.data.result[0]",{}),(0,o.default)(e,"26.data.result[0]",{}),(0,o.default)(e,"27.data.result[0]",{})]},{title:t("MERGES"),legend:[t("MERGES")],data:[(0,o.default)(e,"28.data.result[0]",{})]},{title:t("MERGED_ROWS"),legend:[t("MERGED_ROWS")],data:[(0,o.default)(e,"29.data.result[0]",{})]},{title:t("MERGED_UNCOMPRESSED_BYTES"),legend:[t("MERGED_UNCOMPRESSED_BYTES")],unitType:"disk",data:[(0,o.default)(e,"30.data.result[0]",{})]},{title:t("ACTIVE_PARTS"),legend:[t("ACTIVE_PARTS")],data:[(0,o.default)(e,"31.data.result[0]",{})]},{title:t("DETACHED_PARTS"),legend:[t("DETACHED_PARTS")],data:[(0,o.default)(e,"32.data.result[0]",{})]},{title:t("MAX_PART_COUNT_FOR_PARTITION"),legend:[t("MAX_PART_COUNT_FOR_PARTITION")],data:[(0,o.default)(e,"33.data.result[0]",{})]},{title:t("CLICKHOUSE_SERVER_PROCESS_MEMORY"),legend:["CODE","RES","SHR"],unitType:"memory",data:[(0,o.default)(e,"34.data.result[0]",{}),(0,o.default)(e,"35.data.result[0]",{}),(0,o.default)(e,"36.data.result[0]",{})]},{title:t("PRIMARY_KEYS_MEMORY"),legend:[t("PRIMARY_KEYS_MEMORY")],unitType:"memory",data:[(0,o.default)(e,"37.data.result[0]",{})]},{title:t("DICTIONARY_MEMORY"),legend:[t("DICTIONARY_MEMORY")],unitType:"memory",data:[(0,o.default)(e,"38.data.result[0]",{})]},{title:t("BACKGROUND_TASKS"),legend:[t("MERGE_MUTATE_FETCH"),t("CLEAN_ALTER_REPLICA_REINIT"),t("MOVES")],unitType:"memory",data:[(0,o.default)(e,"40.data.result[0]",{}),(0,o.default)(e,"41.data.result[0]",{}),(0,o.default)(e,"42.data.result[0]",{})]},{title:t("CPU_TIME_PER_SECOND"),legend:[t("DISK_READ_SYSCALL"),t("DISK_WRITE_SYSCALL"),t("NETWORK_RECEIVE"),t("NETWORK_SEND"),t("REAL_TIME"),t("USER_TIME"),t("SYSTEM_TIME"),t("OS_IO_WAIT"),t("OS_CPU_WAIT"),t("OS_CPU_VIRTUAL")],unit:"µs",data:[(0,o.default)(e,"45.data.result[0]",{}),(0,o.default)(e,"46.data.result[0]",{}),(0,o.default)(e,"47.data.result[0]",{}),(0,o.default)(e,"48.data.result[0]",{}),(0,o.default)(e,"49.data.result[0]",{}),(0,o.default)(e,"50.data.result[0]",{}),(0,o.default)(e,"51.data.result[0]",{}),(0,o.default)(e,"52.data.result[0]",{}),(0,o.default)(e,"53.data.result[0]",{}),(0,o.default)(e,"54.data.result[0]",{})]}]}};a.default=c},4827:function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(18),r(16),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var o=n(r(61));r(5),r(18),r(16);var c=n(r(26));function s(e,t){var a=e.detail.namespace,r=t.name;return[{targets:[{expr:'sum(pg_stat_activity_count{namespace="'.concat(a,'",pod="').concat(r,'",state="active"})')},{expr:'sum(pg_stat_activity_count{namespace="'.concat(a,'",pod="').concat(r,'",state="idle in transaction"})')},{expr:'sum(pg_stat_activity_count{namespace="'.concat(a,'",pod="').concat(r,'",state="idle"})')}]},{targets:[{expr:'(sum(pg_stat_database_numbackends{namespace="'.concat(a,'",pod="').concat(r,'"}) / sum(pg_settings_max_connections{namespace="').concat(a,'",pod="').concat(r,'"}))')}]},{targets:[{expr:'round(sum(pg_stat_database_blks_hit{namespace="'.concat(a,'",pod="').concat(r,'"}) / (sum(pg_stat_database_blks_hit{namespace="').concat(a,'",pod="').concat(r,'"}) + sum(pg_stat_database_blks_read{namespace="').concat(a,'",pod="').concat(r,'"})),0.001)')}]},{targets:[{expr:'pg_stat_database_blks_hit{namespace="'.concat(a,'",pod="').concat(r,'",datname!="template0", datname!="template1",datname!=""} / (pg_stat_database_blks_read{namespace="').concat(a,'",pod="').concat(r,'",datname!="template0", datname!="template1",datname!=""} + pg_stat_database_blks_hit{namespace="').concat(a,'",pod="').concat(r,'",datname!="template0", datname!="template1",datname!=""})')}]},{targets:[{expr:'irate(pg_stat_database_tup_fetched{namespace="'.concat(a,'",pod="').concat(r,'",datname!="template0", datname!="template1",datname!=""}[1m])')},{expr:'irate(pg_stat_database_tup_inserted{namespace="'.concat(a,'",pod="').concat(r,'",datname!="template0", datname!="template1",datname!=""}[1m])')},{expr:'irate(pg_stat_database_tup_updated{namespace="'.concat(a,'",pod="').concat(r,'",datname!="template0", datname!="template1",datname!=""}[1m])')},{expr:'irate(pg_stat_database_tup_deleted{namespace="'.concat(a,'",pod="').concat(r,'",datname!="template0", datname!="template1",datname!=""}[1m])')},{expr:'irate(pg_stat_database_tup_returned{namespace="'.concat(a,'",pod="').concat(r,'",datname!="template0", datname!="template1",datname!=""}[1m])')}]},{targets:[{expr:'irate(pg_stat_database_conflicts{namespace="'.concat(a,'",pod="').concat(r,'",datname!="template0", datname!="template1",datname!=""}[1m])')},{expr:'irate(pg_stat_database_deadlocks{namespace="'.concat(a,'",pod="').concat(r,'",datname!="template0", datname!="template1",datname!=""}[1m])')},{expr:'irate(pg_stat_database_xact_commit{namespace="'.concat(a,'",pod="').concat(r,'",datname!="template0", datname!="template1",datname!=""}[1m])')},{expr:'irate(pg_stat_database_xact_rollback{namespace="'.concat(a,'",pod="').concat(r,'",datname!="template0", datname!="template1",datname!=""}[1m])')}]},{targets:[{expr:'max(pg_stat_activity_max_tx_duration{namespace="'.concat(a,'",pod="').concat(r,'",datname!="template0", datname!="template1",datname!=""}) by (datname)')}]},{targets:[{expr:'pg_locks_count{namespace="'.concat(a,'",pod="').concat(r,'",datname!="template0", datname!="template1",datname!=""} > 0')}]},{targets:[{expr:'pg_database_size_bytes{namespace="'.concat(a,'",pod="').concat(r,'",datname!="template0", datname!="template1",datname!=""}')}]}]}function l(e){return[{title:t("CONNECTIONS"),legend:[t("ACTIVE_CONNECTIONS"),t("IDLE_IN_TRANSACTION"),t("IDLE_CONNECTIONS")],data:[(0,c.default)(e,"[1].data.result[0]",{}),(0,c.default)(e,"[2].data.result[0]",{}),(0,c.default)(e,"[3].data.result[0]",{})]},{title:t("ACTIVE_SESSIONS"),legend:[t("ACTIVE_SESSIONS")],unit:"%",dot:2,data:[(0,c.default)(e,"[4].data.result[0]",{})]},{title:t("CACHE_HIT_RATIO"),legend:[t("CACHE_HIT_RATIO")],unit:"%",dot:2,data:[(0,c.default)(e,"[5].data.result[0]",{})]},{title:t("CACHE_HIT_RATIO_EACH_DATABASE"),legend:(0,c.default)(e,"[6].data.result",[]).map((function(e){return e.metric.datname})),unit:"%",dot:2,data:(0,c.default)(e,"[6].data.result",[])},{title:t("FETCHED_PER_SECOND"),legend:(0,c.default)(e,"[7].data.result",[]).map((function(e){return e.metric.datname})),dot:2,data:(0,c.default)(e,"[7].data.result",[])},{title:t("INSERTED_PER_SECOND"),legend:(0,c.default)(e,"[8].data.result",[]).map((function(e){return e.metric.datname})),dot:2,data:(0,c.default)(e,"[8].data.result",[])},{title:t("UPDATED_PER_SECOND"),legend:(0,c.default)(e,"[9].data.result",[]).map((function(e){return e.metric.datname})),dot:2,data:(0,c.default)(e,"[9].data.result",[])},{title:t("DELETED_PER_SECOND"),legend:(0,c.default)(e,"[10].data.result",[]).map((function(e){return e.metric.datname})),dot:2,data:(0,c.default)(e,"[10].data.result",[])},{title:t("RETURNED_PER_SECOND"),legend:(0,c.default)(e,"[11].data.result",[]).map((function(e){return e.metric.datname})),dot:2,data:(0,c.default)(e,"[11].data.result",[])},{title:t("CONFLICTS_PER_SECOND"),legend:(0,c.default)(e,"[12].data.result",[]).map((function(e){return e.metric.datname})),dot:2,data:(0,c.default)(e,"[12].data.result",[])},{title:t("DEADLOCKS_PER_SECOND"),legend:(0,c.default)(e,"[13].data.result",[]).map((function(e){return e.metric.datname})),dot:2,data:(0,c.default)(e,"[13].data.result",[])},{title:t("COMMITS_PER_SECOND"),legend:(0,c.default)(e,"[14].data.result",[]).map((function(e){return e.metric.datname})),dot:2,data:(0,c.default)(e,"[14].data.result",[])},{title:t("ROLLBACKS_PER_SECOND"),legend:(0,c.default)(e,"[15].data.result",[]).map((function(e){return e.metric.datname})),dot:2,data:(0,c.default)(e,"[15].data.result",[])},{title:t("MAX_TX_DURATION"),legend:(0,c.default)(e,"[15].data.result",[]).map((function(e){return e.metric.datname})),data:(0,c.default)(e,"[16].data.result",[])},{title:t("LOCKS"),legend:(0,c.default)(e,"[17].data.result",[]).map((function(e){return"".concat(e.metric.datname,"-").concat(e.metric.mode)})),data:(0,c.default)(e,"[17].data.result",[])},{title:t("DATABASE_SIZE"),unitType:"disk",legend:(0,c.default)(e,"[18].data.result",[]).map((function(e){return e.metric.datname})),data:(0,c.default)(e,"[18].data.result",[])}]}var i={postgresql:{getConfig:s,getMonitoringCfgs:l},autofailover:{getConfig:function(e,t){var a=e.detail.namespace,r=t.name;return[].concat((0,o.default)(s(e,t)),[{targets:[{expr:'pg_auto_failover_async_count{namespace="'.concat(a,'",pod="').concat(r,'"}')}]},{targets:[{expr:'pg_auto_failover_invalid_count{namespace="'.concat(a,'",pod="').concat(r,'"}')}]},{targets:[{expr:'pg_auto_failover_not_running_count{namespace="'.concat(a,'",pod="').concat(r,'"}')}]},{targets:[{expr:'pg_auto_failover_unhealth_count{namespace="'.concat(a,'",pod="').concat(r,'"}')}]}])},getMonitoringCfgs:function(e){return[{title:t("ASYNC_NODE_NUMBER"),legend:[t("ASYNC_NODE_NUMBER")],data:[(0,c.default)(e,"[19].data.result[0]",{})]},{title:t("INVALID_STATUS_NODE_NUMBER"),legend:[t("INVALID_STATUS_NODE_NUMBER")],data:[(0,c.default)(e,"[20].data.result[0]",{})]},{title:t("NOT_RUNNING_NODE_NUMBER"),legend:[t("NOT_RUNNING_NODE_NUMBER")],data:[(0,c.default)(e,"[21].data.result[0]",{})]},{title:t("UNHEALTH_NODE_NUMBER"),legend:[t("UNHEALTH_NODE_NUMBER")],data:[(0,c.default)(e,"[22].data.result[0]",{})]}].concat(l(e))}}};a.default=i},4828:function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(18),r(16),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(5),r(18),r(16);var o=n(r(26));var c={getConfig:function(e,t){var a=e.detail.namespace,r=t.name;return[{targets:[{expr:'redis_memory_used_bytes{namespace="'.concat(a,'",pod="').concat(r,'"}')},{expr:'redis_memory_max_bytes{namespace="'.concat(a,'",pod="').concat(r,'"}')}]},{targets:[{expr:'redis_memory_used_bytes{namespace="'.concat(a,'",pod="').concat(r,'"} / redis_memory_max_bytes{namespace="').concat(a,'",pod="').concat(r,'"}')}]},{targets:[{expr:'rate(redis_commands_processed_total{namespace="'.concat(a,'",pod="').concat(r,'"}[1m])')}]},{targets:[{expr:'topk(5, irate(redis_commands_total{namespace="'.concat(a,'",pod="').concat(r,'"} [1m]))')}]},{targets:[{expr:'rate(redis_net_input_bytes_total{namespace="'.concat(a,'",pod="').concat(r,'"}[5m])')},{expr:'rate(redis_net_output_bytes_total{namespace="'.concat(a,'",pod="').concat(r,'"}[5m])')}]},{targets:[{expr:'sum (redis_db_keys{namespace="'.concat(a,'",pod="').concat(r,'"}) by (db)')}]},{targets:[{expr:'sum (redis_db_keys{namespace="'.concat(a,'",pod="').concat(r,'"}) - sum (redis_db_keys_expiring{namespace="').concat(a,'",pod="').concat(r,'"})')},{expr:'sum (redis_db_keys_expiring{namespace="'.concat(a,'",pod="').concat(r,'"})')}]},{targets:[{expr:'redis_connected_clients{namespace="'.concat(a,'",pod="').concat(r,'"}')}]},{targets:[{expr:'irate(redis_keyspace_hits_total{namespace="'.concat(a,'",pod="').concat(r,'"}[5m]) * 100')},{expr:'irate(redis_keyspace_misses_total{namespace="'.concat(a,'",pod="').concat(r,'"}[5m]) * 100')}]},{targets:[{expr:'redis_mem_fragmentation_ratio{namespace="'.concat(a,'",pod="').concat(r,'"}')}]},{targets:[{expr:'rate(redis_rejected_connections_total{namespace="'.concat(a,'",pod="').concat(r,'"}[5m])')}]},{targets:[{expr:'redis_evicted_keys_total{namespace="'.concat(a,'",pod="').concat(r,'"}')}]}]},getMonitoringCfgs:function(e){return[{title:t("REDIS_MEMORY_USAGE"),legend:[t("REDIS_USED_MEMORY"),t("REDIS_MAX_MEMORY")],unitType:"memory",data:[(0,o.default)(e,"1.data.result[0]",{}),(0,o.default)(e,"2.data.result[0]",{})]},{title:t("REDIS_MEMORY_USAGE"),unit:"%",dot:2,legend:[t("REDIS_MEMORY_USAGE")],data:[(0,o.default)(e,"3.data.result[0]",{})]},{title:t("COMMANDS_EXECUTED_PER_MINUTE"),legend:[t("COMMANDS_EXECUTED_PER_MINUTE")],data:[(0,o.default)(e,"4.data.result[0]",{})]},{title:t("TOP_5_REDIS_COMMANDS_PER_MINUTE"),dot:2,legend:(0,o.default)(e,"5.data.result",[]).map((function(e){return(0,o.default)(e,"metric.cmd")})),data:(0,o.default)(e,"5.data.result")},{title:t("NETWORK_IO"),unitType:"memory",legend:[t("NETWORK_INPUT_BYTES"),t("NETWORK_OUTPUT_BYTES")],data:[(0,o.default)(e,"6.data.result[0]",{}),(0,o.default)(e,"7.data.result[0]",{})]},{title:t("TOTAL_DB_KEYS"),legend:[t("TOTAL_DB_KEYS")],data:[(0,o.default)(e,"8.data.result[0]",{})]},{title:t("DB_KEYS"),legend:[t("VALID_KEYS"),t("EXPIRED_KEYS")],data:[(0,o.default)(e,"9.data.result[0]",{}),(0,o.default)(e,"10.data.result[0]",{})]},{title:t("CLIENT_COUNT"),legend:[t("CLIENT_COUNT")],data:[(0,o.default)(e,"11.data.result[0]",{})]},{title:t("KEYSPACE"),legend:[t("KEYSPACE_HITS_TOTAL"),t("KEYSPACE_MISSES_TOTAL")],data:[(0,o.default)(e,"12.data.result[0]",{}),(0,o.default)(e,"13.data.result[0]",{})]},{title:t("MEMORY_FRAGMENTATION_RATIO"),legend:[t("MEMORY_FRAGMENTATION_RATIO")],unit:"%",data:[(0,o.default)(e,"14.data.result[0]",{})]},{title:t("REJECTED_CONNECTION_RATIO"),legend:[t("REJECTED_CONNECTION_RATIO")],unit:"%",data:[(0,o.default)(e,"15.data.result[0]",{})]},{title:t("REVICTED_KEY_RATIO"),legend:[t("REVICTED_KEY_RATIO")],data:[(0,o.default)(e,"16.data.result[0]",{})]}]}};a.default=c},4829:function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(16),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(5),r(16);var o=n(r(26));var c={getConfig:function(e,t){var a=e.detail.namespace,r=t.name;return[{targets:[{expr:'predixy_used_memory{namespace="'.concat(a,'",pod="').concat(r,'"}')}]},{targets:[{expr:'predixy_redis_cluster_connections{namespace="'.concat(a,'",pod="').concat(r,'"}')}]},{targets:[{expr:'rate(predixy_redis_cluster_total_recv_client_bytes{namespace="'.concat(a,'",pod="').concat(r,'"}[1m])')},{expr:'rate(predixy_redis_cluster_total_recv_server_bytes{namespace="'.concat(a,'",pod="').concat(r,'"}[1m])')},{expr:'rate(predixy_redis_cluster_total_send_client_bytes{namespace="'.concat(a,'",pod="').concat(r,'"}[1m])')},{expr:'rate(predixy_redis_cluster_total_send_server_bytes{namespace="'.concat(a,'",pod="').concat(r,'"}[1m])')}]},{targets:[{expr:'rate(predixy_total_requests{namespace="'.concat(a,'",pod="').concat(r,'"}[1m])')}]},{targets:[{expr:'count(predixy_redis_cluster_server_connections{namespace="'.concat(a,'",pod="').concat(r,'"})')}]}]},getMonitoringCfgs:function(e){return[{title:t("PREDIXY_MEMORY_USAGE"),legend:[t("PREDIXY_MEMORY_USAGE")],unitType:"memory",data:[(0,o.default)(e,"1.data.result[0]",{})]},{title:t("CLIENT_COUNT"),unit:"%",dot:2,legend:[t("CLIENT_COUNT")],data:[(0,o.default)(e,"2.data.result[0]",{})]},{title:t("NETWORK_IO"),legend:[t("RECV_CLIENT_BYTES"),t("RECV_SERVER_BYTES"),t("SEND_CLIENT_BYTES"),t("SEND_SERVER_BYTES")],data:[(0,o.default)(e,"3.data.result[0]",{}),(0,o.default)(e,"4.data.result[0]",{}),(0,o.default)(e,"5.data.result[0]",{}),(0,o.default)(e,"6.data.result[0]",{})]},{title:t("COMMANDS_EXECUTED_PER_MINUTE"),legend:[t("COMMANDS_EXECUTED_PER_MINUTE")],data:[(0,o.default)(e,"7.data.result[0]",{})]},{title:t("REDIS_CLUSTER_COUNT"),legend:[t("REDIS_CLUSTER_COUNT")],data:[(0,o.default)(e,"8.data.result[0]",{})]}]}};a.default=c},4830:function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(16),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(5),r(16);var o=n(r(26));var c={getConfig:function(e,t){var a=e.detail.namespace,r=t.name;return[{targets:[{expr:'sum(max_over_time(mongodb_opcounters_insert{namespace="'.concat(a,'",pod="').concat(r,'"}[1m]) or vector(0)) - sum(max_over_time(mongodb_opcounters_insert{namespace="').concat(a,'",pod="').concat(r,'"}[1m] offset 1m) or vector(0))')},{expr:'sum(max_over_time(mongodb_opcounters_query{namespace="'.concat(a,'",pod="').concat(r,'"}[1m]) or vector(0)) - sum(max_over_time(mongodb_opcounters_query{namespace="').concat(a,'",pod="').concat(r,'"}[1m] offset 1m) or vector(0))')},{expr:'sum(max_over_time(mongodb_opcounters_update{namespace="'.concat(a,'",pod="').concat(r,'"}[1m]) or vector(0)) - sum(max_over_time(mongodb_opcounters_update{namespace="').concat(a,'",pod="').concat(r,'"}[1m] offset 1m) or vector(0))')},{expr:'sum(max_over_time(mongodb_opcounters_delete{namespace="'.concat(a,'",pod="').concat(r,'"}[1m]) or vector(0)) - sum(max_over_time(mongodb_opcounters_delete{namespace="').concat(a,'",pod="').concat(r,'"}[1m] offset 1m) or vector(0))')},{expr:'sum(max_over_time(mongodb_opcounters_getmore{namespace="'.concat(a,'",pod="').concat(r,'"}[1m]) or vector(0)) - sum(max_over_time(mongodb_opcounters_getmore{namespace="').concat(a,'",pod="').concat(r,'"}[1m] offset 1m) or vector(0))')},{expr:'sum(max_over_time(mongodb_opcounters_command{namespace="'.concat(a,'",pod="').concat(r,'"}[1m]) or vector(0)) - sum(max_over_time(mongodb_opcounters_command{namespace="').concat(a,'",pod="').concat(r,'"}[1m] offset 1m) or vector(0))')}]},{targets:[{expr:'sum(max_over_time(mongodb_opcountersRepl_insert{namespace="'.concat(a,'",pod="').concat(r,'"}[1m]) or vector(0)) - sum(max_over_time(mongodb_opcountersRepl_insert{namespace="').concat(a,'",pod="').concat(r,'"}[1m] offset 1m) or vector(0))')},{expr:'sum(max_over_time(mongodb_opcountersRepl_query{namespace="'.concat(a,'",pod="').concat(r,'"}[1m]) or vector(0)) - sum(max_over_time(mongodb_opcountersRepl_query{namespace="').concat(a,'",pod="').concat(r,'"}[1m] offset 1m) or vector(0))')},{expr:'sum(max_over_time(mongodb_opcountersRepl_update{namespace="'.concat(a,'",pod="').concat(r,'"}[1m]) or vector(0)) - sum(max_over_time(mongodb_opcountersRepl_update{namespace="').concat(a,'",pod="').concat(r,'"}[1m] offset 1m) or vector(0))')},{expr:'sum(max_over_time(mongodb_opcountersRepl_delete{namespace="'.concat(a,'",pod="').concat(r,'"}[1m]) or vector(0)) - sum(max_over_time(mongodb_opcountersRepl_delete{namespace="').concat(a,'",pod="').concat(r,'"}[1m] offset 1m) or vector(0))')},{expr:'sum(max_over_time(mongodb_opcountersRepl_getmore{namespace="'.concat(a,'",pod="').concat(r,'"}[1m]) or vector(0)) - sum(max_over_time(mongodb_opcountersRepl_getmore{namespace="').concat(a,'",pod="').concat(r,'"}[1m] offset 1m) or vector(0))')},{expr:'sum(max_over_time(mongodb_opcountersRepl_command{namespace="'.concat(a,'",pod="').concat(r,'"}[1m]) or vector(0)) - sum(max_over_time(mongodb_opcountersRepl_command{namespace="').concat(a,'",pod="').concat(r,'"}[1m] offset 1m) or vector(0))')}]},{targets:[{expr:'mongodb_connections_current{namespace="'.concat(a,'",pod="').concat(r,'"}')},{expr:'mongodb_connections_totalCreated{namespace="'.concat(a,'",pod="').concat(r,'"}')},{expr:'mongodb_connections_available{namespace="'.concat(a,'",pod="').concat(r,'"}')},{expr:'mongodb_connections_active{namespace="'.concat(a,'",pod="').concat(r,'"}')}]},{targets:[{expr:'mongodb_metrics_cursor_timedOut{namespace="'.concat(a,'",pod="').concat(r,'"}')},{expr:'mongodb_metrics_cursor_open_noTimeout{namespace="'.concat(a,'",pod="').concat(r,'"}')},{expr:'mongodb_metrics_cursor_open_pinned{namespace="'.concat(a,'",pod="').concat(r,'"}')},{expr:'mongodb_metrics_cursor_open_total{namespace="'.concat(a,'",pod="').concat(r,'"}')}]},{targets:[{expr:'mongodb_network_bytesIn{namespace="'.concat(a,'",pod="').concat(r,'"}')},{expr:'mongodb_network_bytesOut{namespace="'.concat(a,'",pod="').concat(r,'"}')}]},{targets:[{expr:'mongodb_wiredTiger_concurrentTransactions_write_out{namespace="'.concat(a,'",pod="').concat(r,'"}')},{expr:'mongodb_wiredTiger_concurrentTransactions_write_available{namespace="'.concat(a,'",pod="').concat(r,'"}')},{expr:'mongodb_wiredTiger_concurrentTransactions_read_out{namespace="'.concat(a,'",pod="').concat(r,'"}')},{expr:'mongodb_wiredTiger_concurrentTransactions_read_available{namespace="'.concat(a,'",pod="').concat(r,'"}')}]},{targets:[{expr:'mongodb_metrics_document_deleted{namespace="'.concat(a,'",pod="').concat(r,'"}')},{expr:'mongodb_metrics_document_inserted{namespace="'.concat(a,'",pod="').concat(r,'"}')},{expr:'mongodb_metrics_document_returned{namespace="'.concat(a,'",pod="').concat(r,'"}')},{expr:'mongodb_metrics_document_updated{namespace="'.concat(a,'",pod="').concat(r,'"}')}]},{targets:[{expr:'mongodb_metrics_queryExecutor_scanned{namespace="'.concat(a,'",pod="').concat(r,'"}')},{expr:'mongodb_metrics_queryExecutor_scannedObjects{namespace="'.concat(a,'",pod="').concat(r,'"}')}]},{targets:[{expr:'mongodb_globalLock_activeClients_total{namespace="'.concat(a,'",pod="').concat(r,'"}')},{expr:'mongodb_globalLock_activeClients_readers{namespace="'.concat(a,'",pod="').concat(r,'"}')},{expr:'mongodb_globalLock_activeClients_writers{namespace="'.concat(a,'",pod="').concat(r,'"}')}]},{targets:[{expr:'mongodb_globalLock_currentQueue_total{namespace="'.concat(a,'",pod="').concat(r,'"}')},{expr:'mongodb_globalLock_currentQueue_readers{namespace="'.concat(a,'",pod="').concat(r,'"}')},{expr:'mongodb_globalLock_currentQueue_writers{namespace="'.concat(a,'",pod="').concat(r,'"}')}]},{targets:[{expr:'mongodb_wiredTiger_cache_tracked_dirty_bytes_in_the_cache{namespace="'.concat(a,'",pod="').concat(r,'"} / mongodb_wiredTiger_cache_maximum_bytes_configured{namespace="').concat(a,'",pod="').concat(r,'"}')},{expr:'mongodb_wiredTiger_cache_bytes_currently_in_the_cache{namespace="'.concat(a,'",pod="').concat(r,'"} / mongodb_wiredTiger_cache_maximum_bytes_configured{namespace="').concat(a,'",pod="').concat(r,'"}')}]}]},getMonitoringCfgs:function(e){return[{title:t("OP_COUNTERS"),legend:[t("OP_INSERT"),t("OP_QUERY"),t("OP_UPDATE"),t("OP_DELETE"),t("OP_GETMORE"),t("OP_COMMAND")],data:[(0,o.default)(e,"1.data.result[0]",{}),(0,o.default)(e,"2.data.result[0]",{}),(0,o.default)(e,"3.data.result[0]",{}),(0,o.default)(e,"4.data.result[0]",{}),(0,o.default)(e,"5.data.result[0]",{}),(0,o.default)(e,"6.data.result[0]",{})]},{title:t("OPREPL_COUNTERS"),legend:[t("OPREPL_INSERT"),t("OPREPL_QUERY"),t("OPREPL_UPDATE"),t("OPREPL_DELETE"),t("OPREPL_GETMORE"),t("OPREPL_COMMAND")],data:[(0,o.default)(e,"7.data.result[0]",{}),(0,o.default)(e,"8.data.result[0]",{}),(0,o.default)(e,"9.data.result[0]",{}),(0,o.default)(e,"10.data.result[0]",{}),(0,o.default)(e,"11.data.result[0]",{}),(0,o.default)(e,"12.data.result[0]",{})]},{title:t("CONNECTIONS"),legend:[t("CONNECTIONS_CURRENT"),t("CONNECTIONS_TOTALCREATED"),t("CONNECTIONS_AVAILABLE"),t("CONNECTIONS_ACTIVE")],data:[(0,o.default)(e,"13.data.result[0]",{}),(0,o.default)(e,"14.data.result[0]",{}),(0,o.default)(e,"15.data.result[0]",{}),(0,o.default)(e,"16.data.result[0]",{})]},{title:t("CURSOR_COUNT"),legend:[t("CURSOR_TIMEDOUT"),t("CURSOR_OPEN_NOTIMEOUT"),t("CURSOR_OPEN_PINNED"),t("CURSOR_OPEN_TOTAL")],data:[(0,o.default)(e,"17.data.result[0]",{}),(0,o.default)(e,"18.data.result[0]",{}),(0,o.default)(e,"19.data.result[0]",{}),(0,o.default)(e,"20.data.result[0]",{})]},{title:t("MONGODB_NETWORK_TRAFFIC"),legend:[t("NETWORK_BYTESIN"),t("NETWORK_BYTESOUT")],unitType:"memory",data:[(0,o.default)(e,"21.data.result[0]",{}),(0,o.default)(e,"22.data.result[0]",{})]},{title:t("WIREDTIGER_OPERATION_COUNT"),legend:[t("WT_WRITE_OUT"),t("WT_WRITE_AVAILABLE"),t("WT_READ_OUT"),t("WT_READ_AVAILABLE")],data:[(0,o.default)(e,"23.data.result[0]",{}),(0,o.default)(e,"24.data.result[0]",{}),(0,o.default)(e,"25.data.result[0]",{}),(0,o.default)(e,"26.data.result[0]",{})]},{title:t("DOC_COUNT"),legend:[t("DOC_DELETED"),t("DOC_INSERTED"),t("DOC_RETURNED"),t("DOC_UPDATED")],data:[(0,o.default)(e,"27.data.result[0]",{}),(0,o.default)(e,"28.data.result[0]",{}),(0,o.default)(e,"29.data.result[0]",{}),(0,o.default)(e,"30.data.result[0]",{})]},{title:t("QUERYEXECUTOR"),legend:[t("SCANNEDKEYS"),t("SCANNEDDOCS")],data:[(0,o.default)(e,"31.data.result[0]",{}),(0,o.default)(e,"32.data.result[0]",{})]},{title:t("ACTIVECLIENTS"),legend:[t("CLIENTS_TOTAL"),t("CLIENTS_READERS"),t("CLIENTS_WRITERS")],data:[(0,o.default)(e,"33.data.result[0]",{}),(0,o.default)(e,"34.data.result[0]",{}),(0,o.default)(e,"35.data.result[0]",{})]},{title:t("QUEUED_OPERATIONS"),legend:[t("QUEUE_TOTAL"),t("QUEUE_READERS"),t("QUEUE_WRITERS")],unitType:"%",data:[(0,o.default)(e,"36.data.result[0]",{}),(0,o.default)(e,"37.data.result[0]",{}),(0,o.default)(e,"38.data.result[0]",{})]},{title:t("WIREDTIGER_CACHE"),legend:[t("WIREDTIGER_CACHE_USAGED"),t("WIREDTIGER_CACHE_DIRTY_USAGE")],unitType:"%",data:[(0,o.default)(e,"39.data.result[0]",{}),(0,o.default)(e,"40.data.result[0]",{})]}]}};a.default=c},4831:function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(16),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(5),r(16);var o=n(r(26));var c={main:{getConfig:function(e){var t=e.detail,a=t.namespace,r=t.name;return[{targets:[{expr:'sum(elasticsearch_cluster_health_task_max_waiting_in_queue_millis{service="'.concat(r,'-es-elasticsearch-exporter",namespace="').concat(a,'"})')}]},{targets:[{expr:'sum(elasticsearch_cluster_health_number_of_in_flight_fetch{service="'.concat(r,'-es-elasticsearch-exporter",namespace="').concat(a,'"})')},{expr:'sum(elasticsearch_cluster_health_number_of_pending_tasks{service="'.concat(r,'-es-elasticsearch-exporter",namespace="').concat(a,'"})')}]},{targets:[{expr:'sum(elasticsearch_cluster_health_number_of_data_nodes{service="'.concat(r,'-es-elasticsearch-exporter",namespace="').concat(a,'"})')},{expr:'sum(elasticsearch_cluster_health_number_of_nodes{service="'.concat(r,'-es-elasticsearch-exporter",namespace="').concat(a,'"})')}]},{targets:[{expr:'sum(elasticsearch_cluster_health_delayed_unassigned_shards{service="'.concat(r,'-es-elasticsearch-exporter",namespace="').concat(a,'"})')},{expr:'sum(elasticsearch_cluster_health_initializing_shards{service="'.concat(r,'-es-elasticsearch-exporter",namespace="').concat(a,'"})')},{expr:'sum(elasticsearch_cluster_health_relocating_shards{service="'.concat(r,'-es-elasticsearch-exporter",namespace="').concat(a,'"})')},{expr:'sum(elasticsearch_cluster_health_unassigned_shards{service="'.concat(r,'-es-elasticsearch-exporter",namespace="').concat(a,'"})')},{expr:'sum(elasticsearch_cluster_health_active_primary_shards{service="'.concat(r,'-es-elasticsearch-exporter",namespace="').concat(a,'"})')},{expr:'sum(elasticsearch_cluster_health_active_shards{service="'.concat(r,'-es-elasticsearch-exporter",namespace="').concat(a,'"})')}]},{targets:[{expr:'sum(elasticsearch_cluster_health_status{service="'.concat(r,'-es-elasticsearch-exporter",namespace="').concat(a,'",color="green"})')},{expr:'sum(elasticsearch_cluster_health_status{service="'.concat(r,'-es-elasticsearch-exporter",namespace="').concat(a,'",color="yellow"})')},{expr:'sum(elasticsearch_cluster_health_status{service="'.concat(r,'-es-elasticsearch-exporter",namespace="').concat(a,'",color="red"})')}]}]},getMonitoringCfgs:function(e){return[{title:t("CLUSTER_TASK_WAITING_TIME"),legend:[t("CLUSTER_TASK_WAITING_TIME")],unit:"ms",data:[(0,o.default)(e,"1.data.result[0]",{})]},{title:t("CLUSTER_TASK_STATUS"),legend:[t("CLUSTER_NUMBER_OF_IN_FLIGHT_FETCH"),t("CLUSTER_NUMBER_OF_PENDING_TASKS")],data:[(0,o.default)(e,"2.data.result[0]",{}),(0,o.default)(e,"3.data.result[0]",{})]},{title:t("CLUSTER_NUMBER_OF_NODES"),legend:[t("CLUSTER_NUMBER_OF_DATA_NODES"),t("CLUSTER_NUMBER_OF_ALL_NODES")],data:[(0,o.default)(e,"4.data.result[0]",{}),(0,o.default)(e,"5.data.result[0]",{})]},{title:t("SHARD_STATUS"),dot:2,legend:[t("CLUSTER_DELAYED_UNASSIGNED_SHARDS"),t("CLUSTER_INITIALIZING_SHARDS"),t("CLUSTER_RELOCATING_SHARDS"),t("CLUSTER_UNASSIGNED_SHARDS"),t("CLUSTER_ACTIVE_PRIMARY_SHARDS"),t("CLUSTER_ACTIVE_SHARDS")],data:[(0,o.default)(e,"6.data.result[0]"),(0,o.default)(e,"7.data.result[0]"),(0,o.default)(e,"8.data.result[0]"),(0,o.default)(e,"9.data.result[0]"),(0,o.default)(e,"10.data.result[0]"),(0,o.default)(e,"11.data.result[0]")]},{title:t("CLUSTER_HEALTH_STATUS"),legend:[t("CLUSTER_HEALTH_STATUS_GREEN"),t("CLUSTER_HEALTH_STATUS_YELLOW"),t("CLUSTER_HEALTH_STATUS_RED")],data:[(0,o.default)(e,"12.data.result[0]",{}),(0,o.default)(e,"13.data.result[0]",{}),(0,o.default)(e,"14.data.result[0]",{})]}]}},pod:{getConfig:function(e,t){var a=e.detail.namespace,r=t.name;return[{targets:[{expr:'round(elasticsearch_jvm_memory_used_bytes{namespace="'.concat(a,'",name="').concat(r,'",area="heap"}/elasticsearch_jvm_memory_max_bytes{namespace="').concat(a,'",name="').concat(r,'",area="heap"},0.001)')}]},{targets:[{expr:'round(elasticsearch_filesystem_data_available_bytes{namespace="'.concat(a,'",name="').concat(r,'"},0.1)')}]},{targets:[{expr:'round(elasticsearch_filesystem_data_free_bytes{namespace="'.concat(a,'",name="').concat(r,'"}/elasticsearch_filesystem_data_size_bytes{namespace="').concat(a,'",name="').concat(r,'"},0.001)')}]},{targets:[{expr:'(elasticsearch_os_cpu_percent{namespace="'.concat(a,'",name="').concat(r,'"}/100)')}]},{targets:[{expr:'elasticsearch_os_load1{namespace="'.concat(a,'",name="').concat(r,'"}')},{expr:'elasticsearch_os_load5{namespace="'.concat(a,'",name="').concat(r,'"}')},{expr:'elasticsearch_os_load15{namespace="'.concat(a,'",name="').concat(r,'"}')}]},{targets:[{expr:'elasticsearch_indices_docs{namespace="'.concat(a,'",name="').concat(r,'"}')},{expr:'elasticsearch_indices_docs_deleted{namespace="'.concat(a,'",name="').concat(r,'"}')}]},{targets:[{expr:'rate(elasticsearch_indices_indexing_index_total{namespace="'.concat(a,'",name="').concat(r,'"}[5m])')}]},{targets:[{expr:'rate(elasticsearch_indices_search_query_total{namespace="'.concat(a,'",name="').concat(r,'"}[5m])')}]},{targets:[{expr:'round(rate(elasticsearch_indices_indexing_index_time_seconds_total{namespace="'.concat(a,'",name="').concat(r,'"}[5m])*1000)')}]},{targets:[{expr:'round(rate(elasticsearch_indices_search_query_time_seconds{namespace="'.concat(a,'",name="').concat(r,'"}[5m])*1000)')}]}]},getMonitoringCfgs:function(e){return[{title:t("HEAP_MEMORY"),legend:[t("JVM_MEMORY_HEAP_USAGE_PER")],unit:"%",dot:"2",data:[(0,o.default)(e,"1.data.result[0]",{})]},{title:t("DATA_AVAILABLE_BYTES"),legend:[t("DATA_AVAILABLE_BYTES")],unitType:"memory",data:[(0,o.default)(e,"2.data.result[0]",{})]},{title:t("DATA_AVAILABLE_PERCENT"),legend:[t("DATA_AVAILABLE_PERCENT")],unit:"%",dot:2,data:[(0,o.default)(e,"3.data.result[0]",{})]},{title:"CPU",legend:[t("ECK_CPU_USAGE")],unit:"%",dot:2,data:[(0,o.default)(e,"4.data.result[0]",{})]},{title:t("OS_LOAD"),legend:[t("OS_LOAD1"),t("OS_LOAD5"),t("OS_LOAD15")],data:[(0,o.default)(e,"5.data.result[0]",{}),(0,o.default)(e,"6.data.result[0]",{}),(0,o.default)(e,"7.data.result[0]",{})]},{title:t("DOC_STATISTICS"),legend:[t("ELASTICSEARCH_INDICES_DOCS"),t("ELASTICSEARCH_INDICES_DOCS_DELETED")],data:[(0,o.default)(e,"8.data.result[0]",{}),(0,o.default)(e,"9.data.result[0]",{})]},{title:t("ELASTICSEARCH_INDICES_INDEXING_INDEX_QPS"),legend:[t("ELASTICSEARCH_INDICES_INDEXING_INDEX_QPS")],data:[(0,o.default)(e,"10.data.result[0]",{})]},{title:t("ELASTICSEARCH_INDICES_SEARCH_QUERY_QPS"),legend:[t("ELASTICSEARCH_INDICES_SEARCH_QUERY_QPS")],data:[(0,o.default)(e,"11.data.result[0]",{})]},{title:t("ELASTICSEARCH_INDICES_INDEXING_TIME_MS"),legend:[t("ELASTICSEARCH_INDICES_INDEXING_TIME_MS")],unit:"ms",data:[(0,o.default)(e,"12.data.result[0]",{})]},{title:t("ELASTICSEARCH_INDICES_SEARCH_TIME_MS"),legend:[t("ELASTICSEARCH_INDICES_SEARCH_TIME_MS")],unit:"ms",data:[(0,o.default)(e,"13.data.result[0]",{})]}]}}};a.default=c},4832:function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(16),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(5),r(16);var o=n(r(26));var c={main:{getConfig:function(e){var t=e.detail,a=t.namespace,r=t.name;return[{targets:[{expr:'count(kafka_server_replicamanager_leadercount{namespace="'.concat(a,'",strimzi_io_cluster="').concat(r,'",job=~"').concat(a,"/").concat(r,'.*"})')}]},{targets:[{expr:'sum(kafka_cluster_partition_underminisr{namespace="'.concat(a,'",strimzi_io_cluster="').concat(r,'",job=~"').concat(a,"/").concat(r,'.*"})')}]},{targets:[{expr:'sum(kafka_controller_kafkacontroller_offlinepartitionscount{namespace="'.concat(a,'",strimzi_io_cluster="').concat(r,'",job=~"').concat(a,"/").concat(r,'.*"})')}]},{targets:[{expr:'sum(irate(kafka_server_brokertopicmetrics_bytesin_total{namespace="'.concat(a,'",strimzi_io_cluster="').concat(r,'",job=~"').concat(a,"/").concat(r,'.*",topic!~"strimzi.cruisecontrol.modeltrainingsamples|strimzi.cruisecontrol.metrics|trainingsamples|__consumer_offsets|__strimzi-topic-operator-kstreams-topic-store-changelog|__strimzi_store_topic|strimzi.cruisecontrol.partitionmetricsamples|"}[2m]))')}]},{targets:[{expr:'sum(irate(kafka_server_brokertopicmetrics_bytesout_total{namespace="'.concat(a,'",strimzi_io_cluster="').concat(r,'",job=~"').concat(a,"/").concat(r,'.*",topic!~"strimzi.cruisecontrol.modeltrainingsamples|strimzi.cruisecontrol.metrics|trainingsamples|__consumer_offsets|__strimzi-topic-operator-kstreams-topic-store-changelog|__strimzi_store_topic|strimzi.cruisecontrol.partitionmetricsamples|"}[2m]))')}]},{targets:[{expr:'sum(irate(kafka_server_brokertopicmetrics_messagesin_total{namespace="'.concat(a,'",strimzi_io_cluster="').concat(r,'",job=~"').concat(a,"/").concat(r,'.*",topic!~"strimzi.cruisecontrol.modeltrainingsamples|strimzi.cruisecontrol.metrics|trainingsamples|__consumer_offsets|__strimzi-topic-operator-kstreams-topic-store-changelog|__strimzi_store_topic|strimzi.cruisecontrol.partitionmetricsamples|"}[2m]))')}]},{targets:[{expr:'sum(irate(kafka_server_brokertopicmetrics_totalproducerequests_total{namespace="'.concat(a,'",strimzi_io_cluster="').concat(r,'",job=~"').concat(a,"/").concat(r,'.*",topic!~"strimzi.cruisecontrol.modeltrainingsamples|strimzi.cruisecontrol.metrics|trainingsamples|__consumer_offsets|__strimzi-topic-operator-kstreams-topic-store-changelog|__strimzi_store_topic|strimzi.cruisecontrol.partitionmetricsamples|"}[2m]))')}]}]},getMonitoringCfgs:function(e){return[{title:t("ONLINE_BROKER_COUNT"),legend:[t("ONLINE_BROKER_COUNT")],data:[(0,o.default)(e,"1.data.result[0]",{})]},{title:t("PARTITIONS_UNDER_MINIMUM_ISR"),legend:[t("PARTITIONS_UNDER_MINIMUM_ISR")],data:[(0,o.default)(e,"2.data.result[0]",{})]},{title:t("OFFLINE_PARTITION_COUNT"),legend:[t("OFFLINE_PARTITION_COUNT")],data:[(0,o.default)(e,"3.data.result[0]",{})]},{title:t("TOPIC_INCOMING_DATA_RATE"),legend:[t("TOPIC_INCOMING_DATA_RATE")],unitType:"traffic",data:[(0,o.default)(e,"4.data.result[0]")]},{title:t("TOPIC_OUTGOING_DATA_RATE"),legend:[t("TOPIC_OUTGOING_DATA_RATE")],unitType:"traffic",data:[(0,o.default)(e,"5.data.result[0]",{})]},{title:t("TOPIC_INCOMING_MESSAGE_RATE"),legend:[t("TOPIC_INCOMING_MESSAGE_RATE")],data:[(0,o.default)(e,"6.data.result[0]",{})]},{title:t("TOPIC_OUTGOING_MESSAGE_RATE"),legend:[t("TOPIC_OUTGOING_MESSAGE_RATE")],data:[(0,o.default)(e,"7.data.result[0]",{})]}]}},pod:{getConfig:function(e,t){var a=e.detail,r=a.namespace,n=a.name,o=t.name;return[{targets:[{expr:'kafka_network_socketserver_networkprocessoravgidle_percent{namespace="'.concat(r,'",strimzi_io_cluster="').concat(n,'",job=~"').concat(r,"/").concat(n,'.*",kubernetes_pod_name=~"').concat(o,'"}')}]},{targets:[{expr:'irate(kafka_server_kafkaserver_linux_disk_write_bytes{namespace="'.concat(r,'",strimzi_io_cluster="').concat(n,'",job=~"').concat(r,"/").concat(n,'.*",kubernetes_pod_name=~"').concat(o,'"}[2m])')}]},{targets:[{expr:'irate(kafka_server_kafkaserver_linux_disk_read_bytes{namespace="'.concat(r,'",strimzi_io_cluster="').concat(n,'",job=~"').concat(r,"/").concat(n,'.*",kubernetes_pod_name=~"').concat(o,'"}[2m])')}]},{targets:[{expr:'sum(container_memory_usage_bytes{namespace="'.concat(r,'",pod=~"').concat(o,'",container="kafka"}) by (pod)')}]},{targets:[{expr:'sum(rate(container_cpu_usage_seconds_total{namespace="'.concat(r,'",pod=~"').concat(o,'",container="kafka"}[5m])) by (pod)')}]},{targets:[{expr:'process_open_fds{namespace="'.concat(r,'",pod=~"').concat(o,'",job=~"').concat(r,"/").concat(n,'.*",container="kafka"}')}]},{targets:[{expr:'sum(jvm_memory_bytes_used{namespace="'.concat(r,'",kubernetes_pod_name=~"').concat(o,'",strimzi_io_name="').concat(n,'-kafka",job=~".*').concat(n,'.*"}) by (kubernetes_pod_name)')}]},{targets:[{expr:'jvm_threads_current{namespace="'.concat(r,'",kubernetes_pod_name=~"').concat(o,'",strimzi_io_name="').concat(n,'-kafka",job=~".*').concat(n,'.*"}')}]},{targets:[{expr:'kubelet_volume_stats_available_bytes{namespace="'.concat(r,'",persistentvolumeclaim=~"data-0-').concat(n,'-kafka-0"}')}]}]},getMonitoringCfgs:function(e){return[{title:t("NETWORK_PROCESSOR_AVG_IDLE_PERCENT"),legend:[t("NETWORK_PROCESSOR_AVG_IDLE_PERCENT")],unit:"%",dot:2,data:[(0,o.default)(e,"1.data.result[0]",{})]},{title:t("DISK_WRITES"),legend:[t("DISK_WRITES")],unitType:"traffic",data:[(0,o.default)(e,"2.data.result[0]",{})]},{title:t("DISK_READS"),legend:[t("DISK_READS")],unitType:"traffic",data:[(0,o.default)(e,"3.data.result[0]",{})]},{title:t("KAFKA_MEMORY_USAGE"),legend:[t("KAFKA_MEMORY_USAGE")],unitType:"memory",data:[(0,o.default)(e,"4.data.result[0]")]},{title:t("KAFKA_CPU_USAGE"),legend:[t("KAFKA_CPU_USAGE")],data:[(0,o.default)(e,"5.data.result[0]",{})]},{title:t("KAFKA_OPEN_FILE_DESC"),legend:[t("KAFKA_OPEN_FILE_DESC")],data:[(0,o.default)(e,"6.data.result[0]",{})]},{title:t("JVM_MEMORY_USAGE"),legend:[t("JVM_MEMORY_USAGE")],unitType:"memory",data:[(0,o.default)(e,"7.data.result[0]",{})]},{title:t("JVM_THREAD_COUNT"),legend:[t("JVM_THREAD_COUNT")],data:[(0,o.default)(e,"8.data.result[0]",{})]},{title:t("AVAILABLE_DISK_SPACE"),legend:[t("AVAILABLE_DISK_SPACE")],unitType:"memory",data:[(0,o.default)(e,"9.data.result[0]",{})]}]}}};a.default=c},4833:function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(48),r(16),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(5),r(48),r(16);var o=n(r(26));var c={main:{getConfig:function(e){var t=e.detail,a=t.namespace,r=t.name;return[{targets:[{expr:'max(zookeeper_quorumsize{namespace="'.concat(a,'",strimzi_io_cluster="').concat(r,'",job=~"').concat(a,"/").concat(r,'.*",strimzi_io_kind="Kafka"})')}]},{targets:[{expr:'avg(zookeeper_inmemorydatatree_nodecount{namespace="'.concat(a,'",strimzi_io_cluster="').concat(r,'",job=~"').concat(a,"/").concat(r,'.*",strimzi_io_kind="Kafka"})')}]},{targets:[{expr:'sum(zookeeper_numaliveconnections{namespace="'.concat(a,'",strimzi_io_cluster="').concat(r,'",job=~"').concat(a,"/").concat(r,'.*",strimzi_io_kind="Kafka"})')}]},{targets:[{expr:'sum(zookeeper_inmemorydatatree_watchcount{namespace="'.concat(a,'",strimzi_io_cluster="').concat(r,'",job=~"').concat(a,"/").concat(r,'.*",strimzi_io_kind="Kafka"})')}]}]},getMonitoringCfgs:function(e){return[{title:t("QUORUM_SIZE"),legend:[t("QUORUM_SIZE")],data:[(0,o.default)(e,"1.data.result[0]",{})]},{title:t("ZNODE_COUNT"),legend:[t("ZNODE_COUNT")],data:[(0,o.default)(e,"2.data.result[0]",{})]},{title:t("ACTIVE_CONNECTIONS"),legend:[t("ACTIVE_CONNECTIONS")],data:[(0,o.default)(e,"3.data.result[0]",{})]},{title:t("WATCHER_COUNT"),legend:[t("WATCHER_COUNT")],data:[(0,o.default)(e,"4.data.result[0]")]}]}},pod:{getConfig:function(e,t){var a=e.detail,r=a.namespace,n=a.name,o=t.name;return[{targets:[{expr:'sum(container_memory_usage_bytes{namespace="'.concat(r,'",pod=~"').concat(o,'",container="zookeeper"}) by (pod)')}]},{targets:[{expr:'sum(rate(container_cpu_usage_seconds_total{namespace="'.concat(r,'",pod=~"').concat(o,'",container="zookeeper"}[5m])) by (pod)')}]},{targets:[{expr:'process_open_fds{namespace="'.concat(r,'",pod=~"').concat(o,'",job=~"').concat(r,"/").concat(n,'.*",container="zookeeper"}')}]},{targets:[{expr:'jvm_threads_current{namespace="'.concat(r,'",kubernetes_pod_name=~"').concat(o,'",strimzi_io_name="').concat(n,'-zookeeper",job=~".*').concat(n,'.*"}')}]},{targets:[{expr:'sum(jvm_memory_bytes_used{namespace="'.concat(r,'",kubernetes_pod_name=~"').concat(o,'",strimzi_io_name="').concat(n,'-zookeeper",job=~".*').concat(n,'.*"}) by (kubernetes_pod_name)')}]},{targets:[{expr:'zookeeper_avgrequestlatency{namespace="'.concat(r,'",job=~"').concat(r,"/").concat(n,'.*",kubernetes_pod_name=~"').concat(o,'"}')}]},{targets:[{expr:'zookeeper_maxrequestlatency{namespace="'.concat(r,'",job=~"').concat(r,"/").concat(n,'.*",kubernetes_pod_name=~"').concat(o,'"}')}]},{targets:[{expr:'kubelet_volume_stats_available_bytes{namespace="'.concat(r,'",persistentvolumeclaim=~"data-').concat(n,"-zookeeper-").concat(o.slice(-1),'"}')}]}]},getMonitoringCfgs:function(e){return[{title:t("ZOOKEEPER_MEMORY_USAGE"),legend:[t("ZOOKEEPER_MEMORY_USAGE")],unitType:"memory",data:[(0,o.default)(e,"1.data.result[0]",{})]},{title:t("ZOOKEEPER_CPU_USAGE"),legend:[t("ZOOKEEPER_CPU_USAGE")],data:[(0,o.default)(e,"2.data.result[0]",{})]},{title:t("OPEN_FILE_DESCRIPTORS"),legend:[t("OPEN_FILE_DESCRIPTORS")],data:[(0,o.default)(e,"3.data.result[0]",{})]},{title:t("JVM_THREAD_COUNT"),legend:[t("JVM_THREAD_COUNT")],data:[(0,o.default)(e,"4.data.result[0]")]},{title:t("JVM_MEMORY_USAGE"),legend:[t("JVM_MEMORY_USAGE")],unitType:"memory",data:[(0,o.default)(e,"5.data.result[0]",{})]},{title:t("REQUEST_LATENCY_AVERAGE"),legend:[t("REQUEST_LATENCY_AVERAGE")],unitType:"second",data:[(0,o.default)(e,"6.data.result[0]",{})]},{title:t("REQUEST_LATENCY_MAXIMUM"),legend:[t("REQUEST_LATENCY_MAXIMUM")],unitType:"second",data:[(0,o.default)(e,"7.data.result[0]",{})]},{title:t("AVAILABLE_DISK_SPACE"),legend:[t("AVAILABLE_DISK_SPACE")],unitType:"memory",data:[(0,o.default)(e,"8.data.result[0]",{})]}]}}};a.default=c},4834:function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(16),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(5),r(16);var o=n(r(26));var c={main:{getConfig:function(e){var t=e.detail,a=t.namespace,r=t.name;return[{targets:[{expr:'opensearch_cluster_task_max_waiting_time_seconds{namespace="'.concat(a,'",pod="').concat(r,'-masters-0"}')}]},{targets:[{expr:'opensearch_cluster_inflight_fetch_number{namespace="'.concat(a,'",pod="').concat(r,'-masters-0"}')},{expr:'opensearch_cluster_pending_tasks_number{namespace="'.concat(a,'",pod="').concat(r,'-masters-0"}')}]},{targets:[{expr:'opensearch_cluster_datanodes_number{namespace="'.concat(a,'",pod="').concat(r,'-masters-0"}')},{expr:'opensearch_cluster_nodes_number{namespace="'.concat(a,'",pod="').concat(r,'-masters-0"}')}]},{targets:[{expr:'round(opensearch_cluster_shards_active_percent{namespace="'.concat(a,'",pod="').concat(r,'-masters-0"} / 100, 0.01)')}]},{targets:[{expr:'opensearch_cluster_shards_number{namespace="'.concat(a,'",pod="').concat(r,'-masters-0",type="initializing"}')},{expr:'opensearch_cluster_shards_number{namespace="'.concat(a,'",pod="').concat(r,'-masters-0",type="relocating"}')},{expr:'opensearch_cluster_shards_number{namespace="'.concat(a,'",pod="').concat(r,'-masters-0",type="unassigned"}')},{expr:'opensearch_cluster_shards_number{namespace="'.concat(a,'",pod="').concat(r,'-masters-0",type="active_primary"}')},{expr:'opensearch_cluster_shards_number{namespace="'.concat(a,'",pod="').concat(r,'-masters-0",type="active"}')}]},{targets:[{expr:'opensearch_cluster_status{namespace="'.concat(a,'",pod="').concat(r,'-masters-0"}')}]}]},getMonitoringCfgs:function(e){return[{title:t("CLUSTER_TASK_WAITING_TIME"),legend:[t("CLUSTER_TASK_WAITING_TIME")],unit:"s",data:[(0,o.default)(e,"1.data.result[0]",{})]},{title:t("CLUSTER_TASK_STATUS"),legend:[t("CLUSTER_NUMBER_OF_IN_FLIGHT_FETCH"),t("CLUSTER_NUMBER_OF_PENDING_TASKS")],data:[(0,o.default)(e,"2.data.result[0]",{}),(0,o.default)(e,"3.data.result[0]",{})]},{title:t("CLUSTER_NUMBER_OF_NODES"),legend:[t("CLUSTER_NUMBER_OF_DATA_NODES"),t("CLUSTER_NUMBER_OF_ALL_NODES")],data:[(0,o.default)(e,"4.data.result[0]",{}),(0,o.default)(e,"5.data.result[0]",{})]},{title:t("CLUSTER_SHARDS_ACTIVE_PERCENT"),legend:[t("CLUSTER_SHARDS_ACTIVE_PERCENT")],unit:"%",dot:2,data:[(0,o.default)(e,"6.data.result[0]",{})]},{title:t("SHARD_STATUS"),legend:[t("CLUSTER_INITIALIZING_SHARDS"),t("CLUSTER_RELOCATING_SHARDS"),t("CLUSTER_UNASSIGNED_SHARDS"),t("CLUSTER_ACTIVE_PRIMARY_SHARDS"),t("CLUSTER_ACTIVE_SHARDS")],data:[(0,o.default)(e,"7.data.result[0]",{}),(0,o.default)(e,"8.data.result[0]",{}),(0,o.default)(e,"9.data.result[0]",{}),(0,o.default)(e,"10.data.result[0]",{}),(0,o.default)(e,"11.data.result[0]",{})]},{title:t("CLUSTER_HEALTH_STATUS"),legend:[t("CLUSTER_HEALTH_STATUS")],data:[(0,o.default)(e,"12.data.result[0]",{})]}]}},pod:{getConfig:function(e,t){var a=e.detail.namespace,r=t.name;return[{targets:[{expr:'round(opensearch_jvm_mem_heap_used_percent{namespace="'.concat(a,'",pod="').concat(r,'"} / 100, 0.01)')}]},{targets:[{expr:'round(opensearch_fs_total_available_bytes{namespace="'.concat(a,'",pod="').concat(r,'"})')}]},{targets:[{expr:'opensearch_fs_total_available_bytes{namespace="'.concat(a,'",pod="').concat(r,'"}/opensearch_fs_total_total_bytes{namespace="').concat(a,'",pod="').concat(r,'"}')}]},{targets:[{expr:'round(opensearch_os_cpu_percent{namespace="'.concat(a,'",pod="').concat(r,'"} /100, 0.01)')}]},{targets:[{expr:'opensearch_os_load_average_one_minute{namespace="'.concat(a,'",pod="').concat(r,'"}')},{expr:'opensearch_os_load_average_five_minutes{namespace="'.concat(a,'",pod="').concat(r,'"}')},{expr:'opensearch_os_load_average_fifteen_minutes{namespace="'.concat(a,'",pod="').concat(r,'"}')}]},{targets:[{expr:'opensearch_indices_doc_number{namespace="'.concat(a,'",pod="').concat(r,'"}')},{expr:'opensearch_indices_doc_deleted_number{namespace="'.concat(a,'",pod="').concat(r,'"}')}]},{targets:[{expr:'opensearch_indices_indexing_index_current_number{namespace="'.concat(a,'", pod="').concat(r,'"}')}]},{targets:[{expr:'opensearch_indices_search_query_current_number{namespace="'.concat(a,'", pod="').concat(r,'"}')}]},{targets:[{expr:'delta(opensearch_indices_indexing_index_time_seconds{namespace="'.concat(a,'", pod="').concat(r,'"}[5m])')}]},{targets:[{expr:'delta(opensearch_indices_search_query_time_seconds{namespace="'.concat(a,'", pod="').concat(r,'"}[5m])')}]}]},getMonitoringCfgs:function(e){return[{title:t("HEAP_MEMORY"),legend:[t("JVM_MEMORY_HEAP_USAGE_PER")],unit:"%",dot:2,data:[(0,o.default)(e,"1.data.result[0]",{})]},{title:t("DATA_AVAILABLE_BYTES"),legend:[t("DATA_AVAILABLE_BYTES")],unitType:"memory",data:[(0,o.default)(e,"2.data.result[0]",{})]},{title:t("DATA_AVAILABLE_PERCENT"),legend:[t("DATA_AVAILABLE_PERCENT")],unit:"%",dot:2,data:[(0,o.default)(e,"3.data.result[0]",{})]},{title:"CPU",legend:[t("ECK_CPU_USAGE")],unit:"%",dot:2,data:[(0,o.default)(e,"4.data.result[0]",{})]},{title:t("OS_LOAD"),legend:[t("OS_LOAD1"),t("OS_LOAD5"),t("OS_LOAD15")],data:[(0,o.default)(e,"5.data.result[0]",{}),(0,o.default)(e,"6.data.result[0]",{}),(0,o.default)(e,"7.data.result[0]",{})]},{title:t("DOC_STATISTICS"),legend:[t("ELASTICSEARCH_INDICES_DOCS"),t("ELASTICSEARCH_INDICES_DOCS_DELETED")],data:[(0,o.default)(e,"8.data.result[0]",{}),(0,o.default)(e,"9.data.result[0]",{})]},{title:t("ELASTICSEARCH_INDICES_INDEXING_INDEX_QPS"),legend:[t("ELASTICSEARCH_INDICES_INDEXING_INDEX_QPS")],data:[(0,o.default)(e,"10.data.result[0]",{})]},{title:t("ELASTICSEARCH_INDICES_SEARCH_QUERY_QPS"),legend:[t("ELASTICSEARCH_INDICES_SEARCH_QUERY_QPS")],data:[(0,o.default)(e,"11.data.result[0]",{})]},{title:t("ELASTICSEARCH_INDICES_INDEXING_TIME_MS"),legend:[t("ELASTICSEARCH_INDICES_INDEXING_TIME_MS")],unit:"s",data:[(0,o.default)(e,"12.data.result[0]",{})]},{title:t("ELASTICSEARCH_INDICES_SEARCH_TIME_MS"),legend:[t("ELASTICSEARCH_INDICES_SEARCH_TIME_MS")],unit:"s",data:[(0,o.default)(e,"13.data.result[0]",{})]}]}},logstash:{getConfig:function(e,t){var a=e.detail.namespace,r=t.name;return[{targets:[{expr:'logstash_stats_jvm_mem_heap_used_bytes{namespace="'.concat(a,'",pod="').concat(r,'"}/logstash_stats_jvm_mem_heap_max_bytes{namespace="').concat(a,'",pod="').concat(r,'"}')}]},{targets:[{expr:'logstash_stats_process_cpu_percent{namespace="'.concat(a,'",pod="').concat(r,'"}*0.01')}]},{targets:[{expr:'logstash_stats_process_cpu_load_average_1m{namespace="'.concat(a,'",pod="').concat(r,'"}')},{expr:'logstash_stats_process_cpu_load_average_5m{namespace="'.concat(a,'",pod="').concat(r,'"}')},{expr:'logstash_stats_process_cpu_load_average_15m{namespace="'.concat(a,'",pod="').concat(r,'"}')}]},{targets:[{expr:'rate(logstash_stats_events_in{namespace="'.concat(a,'",pod="').concat(r,'"}[2m])')},{expr:'rate(logstash_stats_events_filtered{namespace="'.concat(a,'",pod="').concat(r,'"}[2m])')},{expr:'rate(logstash_stats_events_out{namespace="'.concat(a,'",pod="').concat(r,'"}[2m])')}]},{targets:[{expr:'logstash_stats_queue_events_count{namespace="'.concat(a,'",pod="').concat(r,'"}')}]},{targets:[{expr:'logstash_stats_jvm_threads_count{namespace="'.concat(a,'",pod="').concat(r,'"}')}]}]},getMonitoringCfgs:function(e){return[{title:t("OPENSEARCH_HEAP_MEMORY"),legend:[t("OPENSEARCH_HEAP_MEMORY_PER")],unit:"%",dot:2,data:[(0,o.default)(e,"1.data.result[0]",{})]},{title:t("OPENSEARCH_CPU_USAGE"),legend:[t("OPENSEARCH_CPU_USAGE_PER")],unit:"%",dot:2,data:[(0,o.default)(e,"2.data.result[0]",{})]},{title:t("CPU_LOAD"),legend:[t("CPU_LOAD1"),t("CPU_LOAD5"),t("CPU_LOAD15")],data:[(0,o.default)(e,"3.data.result[0]",{}),(0,o.default)(e,"4.data.result[0]",{}),(0,o.default)(e,"5.data.result[0]",{})]},{title:t("EVENTS_STATISTICS"),legend:[t("IN_EVENTS_STATISTICS"),t("FILTERED_EVENTS_STATISTICS"),t("OUT_EVENTS_STATISTICS")],data:[(0,o.default)(e,"6.data.result[0]",{}),(0,o.default)(e,"7.data.result[0]",{}),(0,o.default)(e,"8.data.result[0]",{})]},{title:t("QUEUE_EVENTS_COUNT"),legend:[t("QUEUE_EVENTS_COUNT")],data:[(0,o.default)(e,"9.data.result[0]",{})]},{title:t("JVM_THREADS_COUNT"),legend:[t("JVM_THREADS_COUNT")],data:[(0,o.default)(e,"10.data.result[0]",{})]}]}}};a.default=c},4835:function(e,t,a){e.exports={button:"_22FIaIAalrDvw6HPWCx4Ev",pieChartZone:"_1rJo533Xe-a4cxKBg2vbTM",pieChartCompose:"aBgq2MYPWuFtdzADvOyTZ"}},4836:function(e,t,a){"use strict";a(15);var r=a(20);a(5),Object.defineProperty(t,"__esModule",{value:!0}),t.mergerValues=void 0;var n=r(a(61));a(5),a(160);var o=r(a(4837)),c=r(a(4853)),s=r(a(135)),l=r(a(4854)),i=r(a(806));t.mergerValues=function(e){var t=(0,s.default)(e);return(0,o.default)(c.default,(function(e,t){return Array.isArray(e)?(0,l.default)(e.concat(t),i.default):e})).apply(void 0,(0,n.default)(t))}},4855:function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(84),r(16),r(4),r(23),r(24),r(17),r(85),r(62),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(84),r(42),r(16),r(4),r(23),r(57),r(24),r(17),r(85),r(62);var o,c,s,l=n(r(36)),i=n(r(37)),u=n(r(55)),d=n(r(56)),f=n(r(51)),p=n(r(0)),m=n(r(1)),h=r(186),v=r(433),g=n(r(790)),_=n(r(795)),y=n(r(836)),E=n(r(804)),b=r(52),S=r(434),O=r(791),R=r(815),A=n(r(1972));function k(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,f.default)(e);if(t){var n=(0,f.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,d.default)(this,a)}}var T=(0,O.trigger)(o=(0,v.withRouter)((s=c=function(e){(0,u.default)(r,e);var a=k(r);function r(){return(0,l.default)(this,r),a.apply(this,arguments)}return(0,i.default)(r,[{key:"getDescription",value:function(e){var a=(0,S.getWorkloadStatus)(e,e.module),r=a.status,n=a.reason;if(n)return p.default.createElement(E.default,{status:r,reason:t(n),data:e});var o=e.updateTime,c=e.createTime;return o?t("CREATED_AGO",{diff:(0,b.getLocalTime)(o).fromNow()}):t("CREATED_AGO",{diff:(0,b.getLocalTime)(c).fromNow()})}},{key:"render",value:function(){var e=this.props,a=e.detail,r=e.switchShowMonitor,n=e.app_id;if(!a)return null;var o=a.roleText,c=a.spec.cpu?a.spec.cpu.includes("m")?a.spec.cpu:"".concat(a.spec.cpu,"Core"):"-",s=a.status;return p.default.createElement(v.Link,{to:"".concat(this.prefix,"/").concat(a.name)},p.default.createElement("div",{className:A.default.item},p.default.createElement(g.default,{icon:"pod",title:a.name,description:this.getDescription({createTime:a.creationTimestamp})}),p.default.createElement(g.default,{title:p.default.createElement(_.default,{type:s,name:t(String(s).toUpperCase()),flicker:!0}),description:t("STATUS")}),p.default.createElement(g.default,{title:a.ip,description:t("POD_IP_ADDRESS_SCAP")}),n!==R.RadonDBAppId.ClickHouse&&p.default.createElement(g.default,{title:o,description:t("TYPE")}),p.default.createElement(g.default,{title:"".concat(c," ").concat(a.spec.memory),description:t("RESOURCES")}),p.default.createElement(g.default,{title:a.capacity,description:t("CAPACITY")}),a.noMonitoring?p.default.createElement("div",{className:A.default["monitor-btn"]}):p.default.createElement(g.default,{className:A.default["monitor-btn"],title:p.default.createElement(h.Button,{type:"flat",onClick:r},p.default.createElement(y.default,{src:"/assets/cloudsat.svg",iconSize:16}))})))}},{key:"prefix",get:function(){var e=this.props.match.params,t=e.workspace,a=e.cluster,r=e.namespace,n="/clusters/".concat(a,"/projects/").concat(r,"/pods");return t?"/".concat(t).concat(n):n}}]),r}(p.default.PureComponent),c.propTypes={className:m.default.string,detail:m.default.object,switchShowMonitor:m.default.func,deleteNode:m.default.func,app_id:m.default.string},c.defaultProps={detail:{}},o=s))||o)||o;a.default=T},4856:function(e,t,a){e.exports={overview:"_1fnEV5GTezTAO2J1NJCFKq",title:"_1guWoWd8H4DWntBkj9A5Ug",info:"_2j1zlhy-uQmfOtcORtrmV4",card:"SLCjWxnBFeiGgClaPx_D9",detail:"_1rmZebXPUOrP7hDWV7mYRf",label:"_3eI23drWQTHTOW8EZuzaRM",desc:"_3BhV772zHxeTa7HYP3bXsR"}},4857:function(e,a,r){"use strict";var n=r(20),o=r(157);r(12),r(5),r(11),r(6),r(29),r(18),r(16),r(9),r(13),r(10),r(4),r(23),r(24),r(17),r(38),r(62),r(1973),r(7),r(32),r(1244),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var c=n(r(43));r(41);var s=n(r(44)),l=n(r(315)),i=n(r(30)),u=n(r(36)),d=n(r(37)),f=n(r(55)),p=n(r(56)),m=n(r(51));r(12),r(45),r(5),r(11),r(6),r(29),r(18),r(28),r(42),r(16),r(34),r(15),r(9),r(13),r(10),r(4),r(22),r(23),r(57),r(24),r(17),r(38),r(62),r(1079),r(1973),r(7),r(32),r(1244),r(1921),r(1922),r(1923),r(1924),r(1925);var h,v=n(r(0)),g=n(r(26)),_=n(r(4858)),y=r(186),E=n(r(240)),b=n(r(1024)),S=o(r(793)),O=n(r(796)),R=n(r(4859)),A=n(r(1974)),k=r(1245),T=r(815),D=n(r(4860));function C(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function P(e){for(var t=1;t1?"s":""))}}];default:return r}},e.createAccount=function(){var a=P(P(P({},e.props.match.params),e.props.query),{},{app_id:e.props.detailStore.detail.app_id});return e.props.trigger("openpitrix.db.createAccount",P({icon:"human",title:t("CREATE_USER"),action:e.props.store.add,content:"".concat(t("CREATE_SUCCESSFUL")),nameReplicationValidator:e.props.store.checkUserName,authentication:e.props.detailStore.detail.authentication},a))},e.getData=function(t){var a=e.props.match.params.id;e.props.getData(P(P({},t),{},{cluster_id:a}))},e}return(0,d.default)(r,[{key:"getTableProps",value:function(){var e=this,a=this.props,r=a.tableProps,n=a.detailStore.detail,o=n.isRunning,c=n.authentication,s=n.app_id,l=[{key:"deploy",type:"control",text:t("CREATE"),action:"create",forbidden:!o,onClick:this.createAccount}];o||(l[0].tooltip={message:t("USERCREATION_NOT_ALLOWED"),placement:"bottom"});var i={key:"delete",type:"danger",text:t("DELETE"),action:"delete",onClick:function(){var a=r.data.filter((function(e){return e.root}));(0,_.default)(a,r.selectedRowKeys.map((function(e){return{name:e}})),"name").length>0?E.default.warning({content:t("CANNOT_DELETE_ROOT_USER")}):e.props.trigger("resource.batch.delete",P(P(P({once:!0,type:"USER",rowKey:r.rowKey},e.props.match.params),e.props.query),{},{success:function(){return e.getData(P(P({},e.props.match.params),e.props.query))}}))}};return{tableActions:P(P({},r.tableActions),{},{selectActions:o?[i]:[],actions:s!==T.RadonDBAppId.Kafka||c?l:[],onCreate:null}),emptyProps:{icon:"human",desc:s===T.RadonDBAppId.Kafka?c?t("KAFKA_NO_USER_DESC"):t("NO_AUTHENTICATION_DESC"):t("DATABASE_USERS_EMPTY_DESC")},searchType:"keyword"}}},{key:"componentWillUnmount",value:function(){this.props.store.clear()}},{key:"render",value:function(){var e=this.props.tableProps;return v.default.createElement("div",{className:D.default.account},v.default.createElement(S.ListPage,(0,l.default)({},this.props,{getData:this.getData,noWatch:!0}),v.default.createElement(O.default,(0,l.default)({},e,this.getTableProps(),{itemActions:this.itemActions,columns:this.getColumns(),alwaysUpdate:!0}))))}},{key:"itemActions",get:function(){var e=this,a=this.props,r=a.trigger,n=a.detailStore,o=a.store,l=n.detail,i=l.app_id,u=l.authentication;if(!n.detail.isRunning||i===T.RadonDBAppId.Kafka&&!u)return[];var d=P(P(P({},this.props.match.params),this.props.query),{},{app_id:i});return[{key:"edit",icon:"pen",text:t("EDIT"),action:"edit",onClick:function(e){var a;r("openpitrix.db.createAccount",P({detail:e,title:t("EDIT_USER"),action:(a=(0,s.default)(c.default.mark((function a(r){return c.default.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:if(!e.root){a.next=3;break}return E.default.warning({content:t("CANNOT_EDIT_ROOT_USER")}),a.abrupt("return");case 3:return a.next=5,o.edit(r);case 5:case"end":return a.stop()}}),a)}))),function(e){return a.apply(this,arguments)}),content:e.root?"":"".concat(t("MODIFY_SUCCESSFUL")),nameReplicationValidator:o.checkUserName,authentication:u},d))}},{key:"delete",icon:"trash",text:t("DELETE"),action:"delete",onClick:function(a){a.root?E.default.warning({content:t("CANNOT_DELETE_ROOT_USER")}):r("resource.delete",{type:"USER",title:t("DELETE_USER"),detail:P(P({},a),d),store:e.props.store})}}]}}]),r}(v.default.Component))||h;a.default=w},4859:function(e,t,a){"use strict";var r=a(20);a(12),a(5),a(11),a(31),a(197),a(6),a(84),a(29),a(73),a(18),a(48),a(192),a(16),a(137),a(9),a(13),a(10),a(4),a(22),a(23),a(24),a(17),a(111),a(85),a(38),a(64),a(136),a(818),a(7),a(32),a(110),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(12),a(45),a(5),a(11),a(31),a(197),a(6),a(84),a(29),a(73),a(18),a(28),a(48),a(192),a(859),a(191),a(42),a(16),a(159),a(137),a(34),a(15),a(9),a(13),a(10),a(4),a(22),a(23),a(57),a(24),a(17),a(111),a(85),a(38),a(64),a(818),a(1429),a(7),a(32),a(1430),a(1431),a(1432),a(110);var n=r(a(58)),o=r(a(43));a(41);var c,s,l,i,u,d,f,p=r(a(44)),m=r(a(61)),h=r(a(30)),v=r(a(65)),g=r(a(36)),_=r(a(37)),y=r(a(88)),E=r(a(55)),b=r(a(56)),S=r(a(51)),O=r(a(49)),R=(r(a(66)),a(14)),A=r(a(26)),k=r(a(63)),T=r(a(457)),D=r(a(74)),C=r(a(242)),P=r(a(68)),N=a(440),I=a(52),w=a(815),x=a(1015),M=a(1093);function L(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function j(e){for(var t=1;t50)){o.next=12;break}return clearInterval(r),o.next=9,e.deleteMySQLUser({cluster:n,namespace:s,cluster_id:c,users:[l]});case 9:a({message:"Create Failed"}),o.next=13;break;case 12:"True"===d&&(clearInterval(r),t());case 13:case"end":return o.stop()}}),i)}))),200)}));case 25:case"end":return t.stop()}}),t)})));return function(e,a){return t.apply(this,arguments)}}(),e.deleteMySQLUser=function(){var t=(0,p.default)(o.default.mark((function t(a){var r,n,c,s,l,i;return o.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=a.cluster,n=a.namespace,c=a.cluster_id,s=a.users,l=[],i=[],s.forEach((function(t){l.push(request.delete("".concat(e.getMysqlUsersUrl(r,n),"/").concat(c,"---").concat(e.userNameToMetadataName(t.name)))),i.push(t.name)})),t.next=6,Promise.all(l);case 6:return t.next=8,e.deleteMySQLSecret({cluster:r,namespace:n,cluster_id:c,secretKeys:i});case 8:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),e.editMySQLUser=function(){var t=(0,p.default)(o.default.mark((function t(a){var r,n,c,s,l;return o.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=a.cluster,n=a.cluster_id,c=a.namespace,s=a.user,l=a.oldUser,t.next=3,e.deleteMySQLUser({cluster:r,cluster_id:n,namespace:c,users:[l]});case 3:return t.next=5,e.addMySQLUser({cluster:r,cluster_id:n,namespace:c,user:s});case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),e.getRedisUserList=function(){var t=(0,p.default)(o.default.mark((function t(a){var r,n;return o.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,request.get(e.getRedisUsersUrl(a));case 2:return r=t.sent,n=(0,A.default)(r,'data["aclfile.conf"]',""),t.abrupt("return",e.getUsersFromRedisText(n));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),e}return(0,_.default)(P,[{key:"updateList",value:(O=(0,p.default)(o.default.mark((function e(t){var a,r,n,c,s,l,i,u,d,f,p=arguments;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:a=p.length>1&&void 0!==p[1]?p[1]:{},r=JSON.parse(t.customResource),n=a.page,c=void 0===n?1:n,s=a.limit,l=void 0===s?10:s,i=a.keyword,u=a.namespace,this.app_id=(0,w.getAppIdByKind)(r.kind),d=[],e.t0=this.app_id,e.next=e.t0===w.RadonDBAppId.ClickHouse?8:e.t0===w.RadonDBAppId.PostgreSQL?11:e.t0===w.RadonDBAppId.MySQL?13:e.t0===w.RadonDBAppId.RedisCluster||e.t0===w.RadonDBAppId.RedisSentinel?17:e.t0===w.RadonDBAppId.Kafka?21:25;break;case 8:return f=(0,A.default)(r,"spec.configuration.users",{}),d=Object.keys(f).filter((function(e){return e.endsWith("/password")})).map((function(e){var t=e.replace("/password","");return{name:t,password:f[e],ip:(0,A.default)(f,"".concat(t,"/networks/ip.[0]")),network:(0,A.default)(f,"".concat(t,"/networks/ip.[1]")),namespace:u}})),e.abrupt("break",26);case 11:return d=this.getPGUsersFromYaml(r),e.abrupt("break",26);case 13:return e.next=15,this.getMySQLUserList(a);case 15:return d=e.sent,e.abrupt("break",26);case 17:return e.next=19,this.getRedisUserList(a);case 19:return d=e.sent,e.abrupt("break",26);case 21:return e.next=23,this.getKafkaUserList(a);case 23:return d=e.sent,e.abrupt("break",26);case 25:return e.abrupt("break",26);case 26:this.allUsers=d.slice(),i&&(d=d.filter((function(e){return e.name.includes(i)}))),Object.assign(this.list,{data:d.slice((c-1)*l,c*l),total:d.length,isLoading:!1,limit:l,page:c,filters:i?{keyword:i}:{},selectedRowKeys:[]});case 29:case"end":return e.stop()}}),e,this)}))),function(e){return O.apply(this,arguments)})},{key:"addUserToYamlJSON",value:function(e,t,a){var r=e.name,n=e.password,o=e.network,c=void 0===o?"::/0":o,s=e.ip,l=void 0===s?"127.0.0.1":s,i=e.permission;switch(a){case w.RadonDBAppId.ClickHouse:var u=(0,A.default)(t,"spec.configuration.users",{});return u["".concat(r,"/networks/ip")]=[l,c],u["".concat(r,"/password")]=n,u["".concat(r,"/profile")]="default",u["".concat(r,"/quotas")]="default",t;case w.RadonDBAppId.PostgreSQL:var d={name:r,password:n},f=(0,A.default)(t,"spec.postgresql.users",{admin:[],normal:[]});return"Advanced"===i?f.admin.push(d):f.normal.push(d),(0,D.default)(t,"spec.postgresql.users",f),t;default:return t}}},{key:"deleteUserFromYamlJSON",value:function(e,t,a){var r=e.name;switch(a){case w.RadonDBAppId.ClickHouse:var n=(0,A.default)(t,"spec.configuration.users",{}),o=["/networks/ip","/password","/profile","/quotas"],c=(0,T.default)(n,(function(e,t){return o.map((function(e){return r+e})).includes(t)}));return(0,D.default)(t,"spec.configuration.users",c),t;case w.RadonDBAppId.PostgreSQL:var s=[],l=(s="Advanced"===e.permission?(0,A.default)(t,"spec.postgresql.users.admin",[]):(0,A.default)(t,"spec.postgresql.users.normal",[])).findIndex((function(t){return t.name===e.name}));return l>-1&&s.splice(l,1),t;default:return t}}},{key:"getSecretUrl",value:function(e,t,a){return"/api".concat(globals.app.isMultiCluster&&e?"/clusters/".concat(e):"","/v1/namespaces/").concat(t,"/secrets/").concat(a)}},{key:"getMySQLSecretName",value:function(e){return"".concat(e,"-userpassword-secret")}},{key:"getMysqlUsersUrl",value:function(e,t){return"/apis".concat(globals.app.isMultiCluster&&e?"/clusters/".concat(e):"","/mysql.radondb.com/v1alpha1/namespaces/").concat(t,"/mysqlusers")}},{key:"getMySQLSecretUrl",value:function(e,t,a){return this.getSecretUrl(e,t,this.getMySQLSecretName(a))}},{key:"userNameToMetadataName",value:function(e){return e.toLowerCase().replace(/_/g,"-0-z")}},{key:"getRedisUsersUrl",value:function(e){var t=e.cluster,a=e.namespace,r=e.cluster_id;return"/api".concat(globals.app.isMultiCluster&&t?"/clusters/".concat(t):"","/v1/namespaces/").concat(a,"/configmaps/").concat(r,"-acl-config")}},{key:"getUsersFromRedisText",value:function(e){return e?e.split("\n").map((function(e){var t=e.trim().split(" ");return{name:(0,A.default)(t,"[1]"),password:(0,A.default)(t,"[3]","").substring(1),permission:t.slice(4).join(" ")}})):[]}},{key:"createRedisUserText",value:function(e){var t=e.name,a=e.password,r=e.permission,n=void 0===r?"~* &* +@all":r;return"user ".concat(t," on >").concat(a," ").concat(n)}},{key:"addRedisUser",value:(S=(0,p.default)(o.default.mark((function e(t){var a,r,c,s,l;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=t.user,r=(0,n.default)(t,["user"]),e.next=3,request.get(this.getRedisUsersUrl(r));case 3:return c=e.sent,s=(0,A.default)(c,'data["aclfile.conf"]',""),this.getUsersFromRedisText(s).find((function(e){return e.name===a.name}))||(l=this.createRedisUserText(a),(0,D.default)(c,'data["aclfile.conf"]',s?"".concat(l,"\n").concat(s):l)),e.next=10,request.put(this.getRedisUsersUrl(r),c);case 10:case"end":return e.stop()}}),e,this)}))),function(e){return S.apply(this,arguments)})},{key:"deleteRedisUsers",value:(b=(0,p.default)(o.default.mark((function e(t){var a,r,c,s,l=this;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=t.users,r=(0,n.default)(t,["users"]),e.next=3,request.get(this.getRedisUsersUrl(r));case 3:return c=e.sent,s=(0,A.default)(c,'data["aclfile.conf"]',""),a.forEach((function(e){var t=l.getUsersFromRedisText(s),a=s.split("\n"),r=t.findIndex((function(t){return t.name===e.name}));s&&r>-1&&(a.splice(r,1),s=a.join("\n"))})),(0,D.default)(c,'data["aclfile.conf"]',s),e.next=9,request.put(this.getRedisUsersUrl(r),c);case 9:case"end":return e.stop()}}),e,this)}))),function(e){return b.apply(this,arguments)})},{key:"editRedisUser",value:(h=(0,p.default)(o.default.mark((function e(t){var a,r,c,s,l,i,u,d;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.oldUser,a=t.user,r=(0,n.default)(t,["oldUser","user"]),e.next=3,request.get(this.getRedisUsersUrl(r));case 3:if(c=e.sent,s=(0,A.default)(c,'data["aclfile.conf"]',""),l=this.getUsersFromRedisText(s),i=l.findIndex((function(e){return e.name===a.name})),!(s&&i>-1)){e.next=15;break}return(u=s.split("\n")).splice(i,1),d=this.createRedisUserText(a),u.unshift(d),(0,D.default)(c,'data["aclfile.conf"]',u.join("\n")),e.next=15,request.put(this.getRedisUsersUrl(r),c);case 15:case"end":return e.stop()}}),e,this)}))),function(e){return h.apply(this,arguments)})},{key:"getKafkaUserUrl",value:function(e){var t=e.cluster,a=e.namespace,r=e.name,n=e.cluster_id;return"/apis".concat(globals.app.isMultiCluster&&t?"/clusters/".concat(t):"","/kafka.strimzi.io/v1beta2/namespaces/").concat(a,"/kafkausers").concat(r?"/".concat(r):n?"?labelSelector=strimzi.io/cluster=".concat(n):"")}},{key:"getKafkaUserList",value:(c=(0,p.default)(o.default.mark((function e(t){var a,r,n=this;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,request.get(this.getKafkaUserUrl(t));case 2:return a=e.sent,e.next=5,Promise.all(a.items.map((function(e){return request.get(n.getSecretUrl(t.cluster,t.namespace,e.metadata.name))})));case 5:return r=e.sent,e.abrupt("return",a.items.map((function(e,t){var a=window.atob||N.safeAtob,n=a((0,A.default)(r,"[".concat(t,']data["user.p12"]'),"")),o=n?(0,A.default)(r,"[".concat(t,']data["user.password"]'),""):(0,A.default)(r,"[".concat(t,"]data.password"),"");return{name:e.metadata.name,password:a(o),authentication:e.spec.authentication.type,authorization:e.spec.authorization.type,permissionRules:e.spec.authorization.acls,kafkaUserConfig:(0,A.default)(e,"spec.quotas",{}),cert:n?{value:n,validDate:(0,I.getLocalTime)(e.metadata.creationTimestamp).add(3650,"d").format("YYYY.MM.DD")}:null}})));case 7:case"end":return e.stop()}}),e,this)}))),function(e){return c.apply(this,arguments)})},{key:"addKafkaUser",value:(r=(0,p.default)(o.default.mark((function e(t){var a,r,c;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=t.user,r=(0,n.default)(t,["user"]),c=JSON.parse(JSON.stringify(M.kafkaYaml.user)),(0,D.default)(c,"metadata.name",a.name),(0,D.default)(c,'metadata.labels["strimzi.io/cluster"]',r.cluster_id),(0,D.default)(c,"spec.authentication",{type:a.authentication}),(0,D.default)(c,"spec.authorization",{type:a.authorization,acls:a.permissionRules.map((function(e){return j(j({},e),{},{host:"*"})}))}),(0,k.default)(a.kafkaUserConfig)?(0,C.default)(c,"spec.quotas"):(0,D.default)(c,"spec.quotas",a.kafkaUserConfig),delete r.cluster_id,e.next=10,request.post(this.getKafkaUserUrl(r),c);case 10:case"end":return e.stop()}}),e,this)}))),function(e){return r.apply(this,arguments)})},{key:"editKafkaUser",value:(a=(0,p.default)(o.default.mark((function e(t){var a,r,c,s;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a=t.user,r=t.oldUser,c=(0,n.default)(t,["user","oldUser"]),a.name===r.name){e.next=7;break}return e.next=4,this.deleteKafkaUsers(j({users:[r]},c));case 4:return e.next=6,this.addKafkaUser(j({user:a},c));case 6:return e.abrupt("return");case 7:return e.next=9,request.get(this.getKafkaUserUrl(j({name:a.name},c)));case 9:return s=e.sent,(0,D.default)(s,"spec.authentication",{type:a.authentication}),(0,D.default)(s,"spec.authorization",{type:a.authorization,acls:a.permissionRules.map((function(e){return j(j({},e),{},{host:"*"})}))}),(0,k.default)(a.kafkaUserConfig)?(0,C.default)(s,"spec.quotas"):(0,D.default)(s,"spec.quotas",a.kafkaUserConfig),e.next=15,request.put(this.getKafkaUserUrl(j({name:a.name},c)),s);case 15:case"end":return e.stop()}}),e,this)}))),function(e){return a.apply(this,arguments)})},{key:"deleteKafkaUsers",value:(t=(0,p.default)(o.default.mark((function e(t){var a,r,c=this;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=t.users,r=(0,n.default)(t,["users"]),e.next=3,Promise.all(a.map((function(e){return request.delete(c.getKafkaUserUrl(j(j({},r),{},{name:e.name})))})));case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e)}))),function(e){return t.apply(this,arguments)})}]),P}(P.default),s=(0,O.default)(c.prototype,"fetchList",[R.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(){var t=(0,p.default)(o.default.mark((function t(a){var r;return o.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.list.isLoading=!0,t.next=3,request.get(e.getUrl(a));case 3:return r=t.sent,t.next=6,e.updateList(r,a);case 6:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()}}),l=(0,O.default)(c.prototype,"checkUserName",[R.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(t,a){return t===a||!e.allUsers.find((function(e){return e.name===t}))}}}),i=(0,O.default)(c.prototype,"add",[R.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(){var t=(0,p.default)(o.default.mark((function t(a){var r,n,c,s,l;return o.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,request.get(e.getUrl(a));case 2:r=t.sent,n=JSON.parse(r.customResource),t.t0=a.app_id,t.next=t.t0===w.RadonDBAppId.MySQL?7:t.t0===w.RadonDBAppId.RedisCluster||t.t0===w.RadonDBAppId.RedisSentinel?17:t.t0===w.RadonDBAppId.Kafka?22:36;break;case 7:return c=a.user.name,t.next=10,e.getMySQLSecretCrd(a);case 10:if((s=t.sent).data&&s.data[c]){t.next=16;break}return t.next=14,e.addMySQLUser(a,s);case 14:return t.next=16,e.updateList(r,a);case 16:return t.abrupt("break",44);case 17:return t.next=19,e.addRedisUser(a);case 19:return t.next=21,e.updateList(r,a);case 21:return t.abrupt("break",44);case 22:return t.next=24,e.addKafkaUser(a);case 24:return t.prev=24,(0,D.default)(window,"globals.config.enableErrorNotify",!1),t.next=28,e.updateList(r,a);case 28:t.next=34;break;case 30:return t.prev=30,t.t1=t.catch(24),t.next=34,new Promise((function(t,n){setTimeout((function(){(0,D.default)(window,"globals.config.enableErrorNotify",!0),e.updateList(r,a).then((function(){t()}),(function(e){return n(e)}))}),2e3)}));case 34:return(0,D.default)(window,"globals.config.enableErrorNotify",!0),t.abrupt("break",44);case 36:return l=e.addUserToYamlJSON(a.user,n,e.app_id),r.customResource=JSON.stringify(l),r.version+=1,t.next=41,request.put(e.getUrl(a),r);case 41:return t.next=43,e.updateList(r,a);case 43:return t.abrupt("break",44);case 44:case"end":return t.stop()}}),t,null,[[24,30]])})));return function(e){return t.apply(this,arguments)}}()}}),u=(0,O.default)(c.prototype,"edit",[R.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(){var t=(0,p.default)(o.default.mark((function t(a){var r,n,c;return o.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,request.get(e.getUrl(a));case 2:r=t.sent,t.t0=e.app_id,t.next=t.t0===w.RadonDBAppId.MySQL?6:t.t0===w.RadonDBAppId.RedisCluster||t.t0===w.RadonDBAppId.RedisSentinel?11:t.t0===w.RadonDBAppId.Kafka?16:21;break;case 6:return t.next=8,e.editMySQLUser(a);case 8:return t.next=10,e.updateList(r,a);case 10:return t.abrupt("break",31);case 11:return t.next=13,e.editRedisUser(a);case 13:return t.next=15,e.updateList(r,a);case 15:return t.abrupt("break",31);case 16:return t.next=18,e.editKafkaUser(a);case 18:return t.next=20,e.updateList(r,a);case 20:return t.abrupt("break",31);case 21:return n=JSON.parse(r.customResource),n,c=e.addUserToYamlJSON(a.user,e.deleteUserFromYamlJSON(a.oldUser,n,e.app_id),e.app_id),r.customResource=JSON.stringify(c),r.version+=1,t.next=28,request.put(e.getUrl(a),r);case 28:return t.next=30,e.updateList(r,a);case 30:return t.abrupt("break",31);case 31:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()}}),d=(0,O.default)(c.prototype,"delete",[R.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(){var t=(0,p.default)(o.default.mark((function t(a){var r,n,c;return o.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,request.get(e.getUrl(a));case 2:r=t.sent,t.t0=e.app_id,t.next=t.t0===w.RadonDBAppId.MySQL?6:t.t0===w.RadonDBAppId.RedisCluster||t.t0===w.RadonDBAppId.RedisSentinel?11:t.t0===w.RadonDBAppId.Kafka?16:22;break;case 6:return t.next=8,e.deleteMySQLUser(j(j({},a),{},{users:[a]}));case 8:return t.next=10,e.updateList(r,a);case 10:return t.abrupt("break",31);case 11:return t.next=13,e.deleteRedisUsers(j(j({},a),{},{users:[{name:a.name,password:a.password}]}));case 13:return t.next=15,e.updateList(r,a);case 15:return t.abrupt("break",31);case 16:return t.next=18,e.deleteKafkaUsers(j(j({},a),{},{users:[{name:a.name}]}));case 18:return delete a.name,t.next=21,e.updateList(r,a);case 21:return t.abrupt("break",31);case 22:return n=JSON.parse(r.customResource),c=e.deleteUserFromYamlJSON(a,n,e.app_id),r.customResource=JSON.stringify(c),r.version+=1,t.next=28,request.put(e.getUrl(a),r);case 28:return t.next=30,e.updateList(r,a);case 30:return t.abrupt("break",31);case 31:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()}}),f=(0,O.default)(c.prototype,"batchDelete",[R.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(){var t=(0,p.default)(o.default.mark((function t(a){var r,c,s,l,i;return o.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=a.selectedItems,c=void 0===r?[]:r,s=(0,n.default)(a,["selectedItems"]),t.next=3,request.get(e.getUrl(s));case 3:l=t.sent,t.t0=e.app_id,t.next=t.t0===w.RadonDBAppId.MySQL?7:t.t0===w.RadonDBAppId.RedisCluster||t.t0===w.RadonDBAppId.RedisSentinel?12:t.t0===w.RadonDBAppId.Kafka?15:18;break;case 7:return t.next=9,e.deleteMySQLUser(j(j({},s),{},{users:c}));case 9:return t.next=11,e.updateList(l,s);case 11:return t.abrupt("break",27);case 12:return t.next=14,e.deleteRedisUsers(j(j({},s),{},{users:c}));case 14:return t.abrupt("break",27);case 15:return t.next=17,e.deleteKafkaUsers(j(j({},s),{},{users:c}));case 17:return t.abrupt("break",27);case 18:return i=JSON.parse(l.customResource),c.forEach((function(t){e.deleteUserFromYamlJSON(t,i,e.app_id)})),l.customResource=JSON.stringify(i),l.version+=1,t.next=24,request.put(e.getUrl(s),l);case 24:return t.next=26,e.updateList(l,s);case 26:return t.abrupt("break",27);case 27:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()}}),c);t.default=V},4860:function(e,t,a){e.exports={account:"_1HFVM35BYOkVoGpYanyH4V",bold:"_18QxU4dmDWA3adSzdgfON6"}},4861:function(e,a,r){"use strict";var n=r(20),o=r(157);r(12),r(5),r(11),r(31),r(6),r(84),r(48),r(16),r(190),r(9),r(13),r(10),r(4),r(23),r(24),r(17),r(62),r(188),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(45),r(5),r(11),r(31),r(6),r(84),r(28),r(48),r(42),r(16),r(190),r(34),r(15),r(9),r(13),r(10),r(4),r(22),r(23),r(57),r(24),r(17),r(62),r(188),r(7);var c=n(r(315)),s=n(r(43)),l=n(r(30)),i=n(r(58));r(41);var u,d=n(r(44)),f=n(r(36)),p=n(r(37)),m=n(r(55)),h=n(r(56)),v=n(r(51)),g=n(r(0)),_=n(r(26)),y=n(r(854)),E=n(r(240)),b=r(14),S=r(244),O=n(r(795)),R=o(r(793)),A=n(r(796)),k=r(52),T=n(r(1926)),D=r(815),C=n(r(325)),P=n(r(4862));function N(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function I(e){for(var t=1;t0&&void 0!==c[0]?c[0]:{},r=a.silent,n=(0,i.default)(a,["silent"]),o=e.props.store,r&&(o.list.silent=!0),t.next=5,o.fetchList(I(I(I({},e.props.match.params),n),{},{app_id:e.props.detailStore.detail.app_id}));case 5:o.list.silent=!1;case 6:case"end":return t.stop()}}),t)}))),1e3),e.getColumns=function(){return[{title:t("NAME"),dataIndex:"name",minWidth:"20%"},{title:t("STATUS"),dataIndex:"status",render:function(a){var r=e.props.detailStore;return(0,_.default)(r,"detail.app_id")===D.RadonDBAppId.PostgreSQL?g.default.createElement(O.default,{flicker:!0,type:"available",name:t("AVAILABLE")}):g.default.createElement(O.default,{flicker:!0,type:a,name:t(x[a])})}},{title:t("SIZE_GIB"),dataIndex:"size",render:function(e){var t="-";return e&&(t="string"==typeof e?e:(e/1024/1024/1024).toFixed(2)),t},with:"120px"},{title:t("BACKUP_START_TIME"),dataIndex:"createAt",render:function(e){return e?(0,k.getLocalTime)(e).format("YYYY-MM-DD HH:mm:ss"):"-"}},{title:t("BACKUP_END_TIME"),dataIndex:"completeAt",render:function(e){return e?(0,k.getLocalTime)(e).format("YYYY-MM-DD HH:mm:ss"):"-"}}]},e.showCreate=function(){var a=e.props,r=a.match,n=a.module,o=a.detailStore;return e.props.trigger("openpitrix.db.backup.create",{module:n,cluster:r.params.cluster,namespace:r.params.namespace,workspace:r.params.workspace,title:t("CREATE_BACKUP"),app_id:(0,_.default)(o,"detail.app_id"),cluster_id:r.params.id,image:(0,_.default)(o,"detail.sidecarImage"),success:function(){return e.getData((0,S.parse)(location.search.slice(1)))}})},e}return(0,p.default)(r,[{key:"componentDidMount",value:function(){var e=this;request.get("/kapis/application.kubesphere.io/v2/apps?orderBy=create_time&conditions=status%3Dactive%2Crepo_id%3Drepo-helm%2Ccategory_id%3Dradondb&reverse=true").then((function(t){e.setState({appList:t.items})})),this.isRunning=this.props.detailStore.detail.isRunning,this.initWebsocket()}},{key:"componentDidUpdate",value:function(){var e=this.props.detailStore.detail.isRunning;this.lastIsRunning!==e&&e&&this.getData((0,S.parse)(location.search.slice(1))),this.lastIsRunning=e}},{key:"initWebsocket",value:function(){var e=this,t=this.props.match.params,a=t.cluster,r=t.namespace,n=t.id,o=this.props.store.getWatchListUrl({namespace:r,cluster_id:n,app_id:this.props.detailStore.detail.app_id,cluster:a});o&&r&&(this.websocket.watch(o),this.disposer=(0,b.reaction)((function(){return e.websocket.message}),(function(t){"Backup"===t.object.kind&&["ADDED","MODIFIED","DELETED"].includes(t.type)&&e.getData((0,S.parse)(location.search.slice(1)))})))}},{key:"getTableProps",value:function(){var e=this,a=this.props,r=a.tableProps,n=a.detailStore,o=a.store,c=a.name,s=this.canCreate?[{key:"deploy",type:"control",text:t("CREATE"),action:"create",forbidden:!n.detail.isRunning,onClick:this.showCreate}]:[];n.detail.isRunning||(s[0].tooltip={message:t("BACKUP_NOT_ALLOWED_DESC"),placement:(0,_.default)(o,"list.data.length")?"bottomRight":"bottom"});var l=(0,_.default)(n,"detail.app_id"),i={key:"delete",type:"danger",text:t("DELETE"),action:"delete",onClick:function(){e.props.trigger("resource.batch.delete",I(I({once:l===D.RadonDBAppId.PostgreSQL,type:c,rowKey:r.rowKey},e.props.match.params),{},{app_id:l}))}};return{tableActions:I(I({},r.tableActions),{},{selectActions:n.detail.isRunning?l===D.RadonDBAppId.PostgreSQL?[]:[i]:[],actions:s}),emptyProps:{desc:""},searchType:"keyword"}}},{key:"render",value:function(){var e=this.props.tableProps,t=this.itemActions;return g.default.createElement("div",{className:P.default.backup},g.default.createElement(R.ListPage,(0,c.default)({},this.props,{getData:this.getData,noWatch:!0}),g.default.createElement(A.default,(0,c.default)({},e,this.getTableProps(),{rowKey:"name",itemActions:t,columns:this.getColumns(),alwaysUpdate:!0}))))}},{key:"canCreate",get:function(){var e=this.props.match.params,t=e.cluster,a=e.namespace;return globals.app.hasPermission({cluster:t,project:a,module:"applications",action:"create"})}},{key:"itemActions",get:function(){var e=this,a=this.props,r=a.trigger,n=a.routing,o=a.match,c=a.module,s=a.name,l=a.detailStore,i=l.detail.app_id;return[{key:"edit",icon:"copy",text:t("RESTORE_FROM_BACKUP"),action:"edit",show:function(e){return"Success"===e.status},onClick:function(a){if("Success"===a.status){var n=(0,_.default)(l.detail,"spec.S3"),s=(0,_.default)(l.detail,"name");r("openpitrix.db.app.create",{module:c,app_id:i,detail:e.state.appList.find((function(e){return e.app_id===i})),namespace:o.params.namespace,cluster:o.params.cluster,workspace:o.params.workspace,routing:e.props.rootStore.routing,restoreParams:I(I({},a.restoreParams),{},{backupId:a.name,backupToS3Name:s,S3:n,databaseVersion:l.detail.databaseVersion,nodes:(0,_.default)(a,"nodes"),volume:(0,_.default)(a,"volume"),specifications:(0,_.default)(a,"specifications")}),trigger:r})}else E.default.warning({content:t("BACKUP_IN_PROGRESS_DESC")})}},{key:"delete",icon:"trash",text:t("DELETE"),action:"delete",show:function(){return i!==D.RadonDBAppId.PostgreSQL},onClick:function(t){return r("resource.delete",{type:s,detail:I(I(I({},t),o.params),{},{app_id:l.detail.app_id}),success:n.query,store:e.props.store})}}]}}]),r}(g.default.Component))||u;a.default=M},4862:function(e,t,a){e.exports={backup:"F5aUFXk3RQ-bylkMTo9ru"}},4863:function(e,a,r){"use strict";var n=r(20),o=r(157);r(12),r(5),r(11),r(31),r(6),r(18),r(48),r(16),r(9),r(13),r(10),r(4),r(23),r(24),r(17),r(62),r(188),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(45),r(5),r(11),r(31),r(6),r(18),r(28),r(48),r(42),r(16),r(34),r(15),r(9),r(13),r(10),r(4),r(22),r(23),r(57),r(24),r(17),r(62),r(188),r(7);var c=n(r(315)),s=n(r(43));r(41);var l,i=n(r(44)),u=n(r(30)),d=n(r(36)),f=n(r(37)),p=n(r(55)),m=n(r(56)),h=n(r(51)),v=n(r(0)),g=r(186),_=n(r(240)),y=o(r(793)),E=n(r(796)),b=n(r(1927)),S=n(r(4864)),O=n(r(3)),R=n(r(1974)),A=r(815),k=n(r(74)),T=n(r(26)),D=n(r(158)),C=n(r(63)),P=r(244),N=r(4866),I=n(r(4867));function w(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function x(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.min,a=e.max;return(0,D.default)(t)&&(0,D.default)(a)?null:v.default.createElement("div",null,"".concat((0,D.default)(t)?" ":t,"–").concat((0,D.default)(a)?" ":a))}};switch(e.appId){case A.RadonDBAppId.ClickHouse:return[a,r,n,c];default:return[a,r,n,o,c]}},e.handleChange=function(t){return function(a){(0,k.default)(e.state.data,'["'.concat(t,'"]'),(0,T.default)(a,"target.value",a)),e.forceUpdate()}},e.editParameters=function(){e.setState({editMode:!0})},e.handleConfirm=(0,i.default)(s.default.mark((function a(){var r,n,o,c,l;return s.default.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:if(r=e.props.match.params,n=r.workspace,o=r.namespace,c=r.id,l=r.cluster,!(0,C.default)(e.state.data)){a.next=4;break}return e.handleCancel(),a.abrupt("return");case 4:return a.prev=4,a.next=7,e.props.store.updateParams({workspace:n,namespace:o,cluster_id:c,cluster:l,nodeRole:e.state.nodeRole,params:e.state.data});case 7:a.next=13;break;case 9:return a.prev=9,a.t0=a.catch(4),_.default.error({content:t(a.t0.message)}),a.abrupt("return");case 13:return e.handleCancel(),a.next=16,e.getData((0,P.parse)(location.search.slice(1)));case 16:_.default.success({content:t("MODIFY_SUCCESSFUL")});case 17:case"end":return a.stop()}}),a,null,[[4,9]])}))),e.handleCancel=function(){e.setState({editMode:!1,data:{}})},e.getData=function(t){var a=e.props.match.params,r=a.workspace,n=a.namespace,o=a.id,c=a.cluster;return e.props.store.fetchList(x(x({},t),{},{workspace:r,namespace:n,cluster:c,cluster_id:o,nodeRole:e.state.nodeRole}))},e.getEditTitle=function(){return v.default.createElement(g.Level,null,v.default.createElement(g.LevelLeft,null,v.default.createElement(g.Button,{type:"primary",onClick:e.handleConfirm},t("OK")),v.default.createElement(g.Button,{onClick:e.handleCancel},t("CANCEL"))))},e.rowClassName=function(e){return e.disable?"disable":""},e.handleNodeRoleChange=function(t){e.setState({data:{},nodeRole:t},(function(){e.getData()}))},e}return(0,f.default)(r,[{key:"getTableProps",value:function(){var e=this.props,a=e.tableProps,r=e.detailStore,n=this.canCreate?[{key:"edit",type:"default",text:t("EDIT"),forbidden:!r.detail.isRunning,onClick:this.editParameters}]:[];r.detail.isRunning||(n[0].tooltip={message:t("EDIT_NOT_ALLOWED"),placement:"bottomRight"});var o={tableActions:x(x({},a.tableActions),{},{actions:n,selectActions:null}),emptyProps:{desc:""},searchType:"keyword",alwaysUpdate:!0};return this.state.editMode&&(o.extraProps={title:this.getEditTitle(),rowClassName:this.rowClassName},o.hideHeader=!0),o}},{key:"getCustomFilter",value:function(){switch(this.appId){case A.RadonDBAppId.Kafka:return v.default.createElement(g.Select,{options:N.KafkaOptions,value:this.state.nodeRole,style:{width:200,marginRight:"12px"},onChange:this.handleNodeRoleChange});default:return null}}},{key:"render",value:function(){var e=this.props.tableProps;return v.default.createElement(y.ListPage,(0,c.default)({},this.props,{getData:this.getData,noWatch:!0}),v.default.createElement(E.default,(0,c.default)({},e,this.getTableProps(),{className:(0,O.default)({"params-table-edit":this.state.editMode},I.default.params),itemActions:[],columns:this.getColumns(),hideFooter:!0,customFilter:this.getCustomFilter()})))}},{key:"appId",get:function(){return this.props.store.app_id}},{key:"canCreate",get:function(){var e=this.props.match.params,t=e.cluster,a=e.namespace;return globals.app.hasPermission({cluster:t,project:a,module:"applications",action:"create"})}}]),r}(v.default.Component))||l;a.default=L},4864:function(e,t,a){"use strict";var r=a(20);a(12),a(5),a(11),a(6),a(86),a(27),a(9),a(13),a(10),a(4),a(23),a(17),a(75),a(7),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(12),a(45),a(5),a(11),a(6),a(86),a(28),a(42),a(27),a(34),a(15),a(9),a(13),a(10),a(4),a(23),a(57),a(17),a(75),a(7);var n=r(a(315)),o=r(a(30)),c=r(a(58)),s=r(a(36)),l=r(a(37)),i=r(a(55)),u=r(a(56)),d=r(a(51)),f=r(a(158)),p=r(a(63)),m=r(a(470)),h=r(a(800)),v=r(a(0)),g=r(a(1)),_=r(a(3)),y=a(186),E=r(a(4865));function b(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function S(e){for(var t=1;t0&&-1==="".concat(e.props.value).indexOf(".")||"-"===s&&(0,p.default)(e.props.value))r(s);else{var l=Number(s);isNaN(l)||(!(0,f.default)(o)&&l>o&&(l=o),c||s.startsWith("0")&&!s.startsWith("0.")||l!==Number(s)||"".concat(l)===s||(l=s),!(0,f.default)(l)&&n&&(l="".concat(l).concat(n)),r&&r(l))}},e.debounceHandleChange=(0,h.default)((function(t){var a=e.props,r=a.onChange,n=a.unit,o=a.min,c=a.max,s=a.integer;if((0,p.default)(t)||!s&&t.indexOf(".")>0&&-1==="".concat(e.props.value).indexOf(".")||"-"===t&&(0,p.default)(e.props.value))r(t);else{var l=Number(t);isNaN(l)||(!(0,f.default)(o)&&lc&&(l=c),s||t.startsWith("0")&&!t.startsWith("0.")||l!==Number(t)||"".concat(l)===t||(l=t),!(0,f.default)(l)&&n&&(l="".concat(l).concat(n)),r&&r(l))}}),500),e}return(0,l.default)(a,[{key:"render",value:function(){var e=this.props,t=e.className,a=e.unit,r=e.showUnit,o=e.value,s=e.defaultValue,l=(e.onChange,e.integer,(0,c.default)(e,["className","unit","showUnit","value","defaultValue","onChange","integer"])),i=(0,f.default)(o)?s:o;a&&(i=(0,m.default)(i,a));var u=S(S({type:"text"},l),{},{value:(0,f.default)(i)?"":i,onChange:this.handleChange});return a&&r?v.default.createElement("div",{className:(0,_.default)(t,E.default.withUnit)},v.default.createElement(y.Input,u),v.default.createElement("span",null,a)):v.default.createElement(y.Input,(0,n.default)({className:t},u))}}]),a}(v.default.Component);R.propTypes={unit:g.default.string,showUnit:g.default.bool,value:g.default.oneOfType([g.default.string,g.default.number]),defaultValue:g.default.oneOfType([g.default.string,g.default.number]),min:g.default.number,max:g.default.number,integer:g.default.bool,onChange:g.default.func},R.defaultProps={unit:"",showUnit:!1,integer:!1,onChange:function(){}};var A=R;t.default=A},4865:function(e,t,a){e.exports={withUnit:"_1xayErxJuaugCVf4OR8UQy"}},4866:function(e,a,r){"use strict";r(15);var n=r(20);Object.defineProperty(a,"__esModule",{value:!0}),a.KafkaOptions=void 0;var o=n(r(836)),c=n(r(0)),s=[{label:c.default.createElement(c.default.Fragment,null,c.default.createElement(o.default,{src:"/assets/radondb_kafka.svg",style:{width:"16px",marginRight:"4px"}}),c.default.createElement("span",null,t("KAFKA_PARAMETERS"))),value:"kafka"},{label:c.default.createElement(c.default.Fragment,null,c.default.createElement(o.default,{src:"/assets/radondb_zookeeper.svg",style:{width:"16px",marginRight:"4px"}}),c.default.createElement("span",null,t("ZOOKEEPER_PARAMETERS"))),value:"zookeeper"}];a.KafkaOptions=s},4867:function(e,t,a){e.exports={params:"_3yNPbIt265kOjZ-_lOxYbf"}},4868:function(e,a,r){"use strict";(function(e){var n=r(20),o=r(157);r(12),r(109),r(5),r(187),r(11),r(6),r(84),r(86),r(18),r(16),r(9),r(13),r(10),r(4),r(23),r(24),r(17),r(85),r(62),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(109),r(45),r(5),r(187),r(11),r(6),r(84),r(86),r(18),r(28),r(42),r(16),r(34),r(15),r(9),r(13),r(10),r(4),r(22),r(23),r(57),r(24),r(17),r(85),r(62),r(7);var c=n(r(61)),s=n(r(315)),l=n(r(43)),i=n(r(30)),u=n(r(58));r(41);var d,f=n(r(44)),p=n(r(36)),m=n(r(37)),h=n(r(55)),v=n(r(56)),g=n(r(51)),_=n(r(0)),y=n(r(26)),E=r(14),b=n(r(788)),S=n(r(795)),O=o(r(793)),R=n(r(796)),A=r(52),k=r(878),T=r(832),D=n(r(1727)),C=n(r(1799)),P=n(r(4869));function N(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function I(e){for(var t=1;t0&&void 0!==c[0]?c[0]:{},r=a.silent,n=(0,u.default)(a,["silent"]),o=e.props.store,r&&(o.list.silent=!0),t.next=5,o.fetchList(I(I({},e.props.match.params),n));case 5:o.list.silent=!1;case 6:case"end":return t.stop()}}),t)}))),e.getColumns=function(){var a=e.props,r=a.getFilteredValue,n=a.match,o=n.url.substring(n.url.indexOf("/applications"),-1);return[{title:t("NAME"),dataIndex:"name",search:!0,render:function(e,t){return _.default.createElement(b.default,{avatar:"/assets/bell_gear_duotone.svg",title:(0,A.getDisplayName)(t),desc:t.description,className:P.default["table-icon"],to:"".concat(o,"/alert-rules/").concat(e)})}},{title:t("POLICY_STATUS"),dataIndex:"enable",filters:e.getEnableFilter(),filteredValue:r("enable"),isHideable:!0,search:!0,width:"16%",render:function(e,a){return _.default.createElement(S.default,{className:P.default.status_icon,type:a.enabled&&JSON.parse(a.enabled)?"active":"disabled",name:a.enabled&&JSON.parse(a.enabled)?t("ENABLED"):t("DISABLED")})}},{title:t("RULE_STATUS"),dataIndex:"state",search:!0,filters:e.getStatus(),isHideable:!0,width:"16%",render:function(e,t){return _.default.createElement(C.default,{rulesStats:t.rulesStats})}},{title:t("TIME_SPENT"),dataIndex:"evaluationTime",isHideable:!0,width:"12%",render:function(e){return _.default.createElement("span",null,"-"!==e?t("TIME_S",{num:e}):e)}},{title:t("RECENT_DETECT_TIME"),dataIndex:"lastEvaluation",isHideable:!0,width:"15.8%",render:function(e,t){var a=(0,y.default)(t._originDataWithStatus,"status.lastEvaluation");return _.default.createElement("span",null,a?(0,A.getLocalTime)(a).format("YYYY-MM-DD HH:mm:ss"):"-")}}]},e.showCreate=function(){var a=e.props,r=a.match,n=a.getData,o=a.module,c=a.detailStore;return e.props.trigger("alerting.policy.create",{module:o,cluster:r.params.cluster,namespace:r.params.namespace,title:t("CREATE_ALERTING_POLICY"),app_id:c.detail.app_id,cluster_id:r.params.id,success:n})},e}return(0,m.default)(n,[{key:"componentDidMount",value:function(){var e=this.props.match.params,t=e.cluster;!e.namespace&&this.props.store.fetchCount({cluster:t}),localStorage.setItem("alert-policy-detail-referrer",this.props.match.url)}},{key:"getStatus",value:function(){return k.ALERTING_STATUS.map((function(e){return{text:t("ALERT_RULE_".concat(e.toUpperCase())),value:e}}))}},{key:"getEnableFilter",value:function(){return[{text:t("ENABLED"),value:"true"},{text:t("DISABLED"),value:"false"}]}},{key:"getAlertingTypes",value:function(){return T.SEVERITY_LEVEL.map((function(e){return{text:t(e.label),value:e.value}}))}},{key:"render",value:function(){var e=this.props.tableProps;return _.default.createElement(O.ListPage,(0,s.default)({},this.props,{getData:this.getData,noWatch:!0}),_.default.createElement(R.default,(0,s.default)({},e,{rowKey:"name",itemActions:this.itemActions,columns:this.getColumns(),tableActions:this.tableActions})))}},{key:"itemActions",get:function(){var a=this,r=this.props,n=r.trigger,o=r.routing,c=r.match,s=r.name;return[{key:"edit",icon:"pen",text:t("EDIT_INFORMATION"),action:"edit",onClick:function(r){n("alerting.baseinfo.edit",{detail:r,module:e,cluster:c.params.cluster,namespace:c.params.namespace,title:t("EDIT_ALERTING_POLICY"),success:a.getData})}},{key:"editYaml",icon:"pen",text:t("EDIT_YAML"),action:"edit",onClick:function(e){return n("alerting.yaml.edit",{detail:e,cluster:c.params.cluster,namespace:c.params.namespace,title:t("EDIT_ALERTING_POLICY"),success:a.getData})}},{key:"editRule",icon:"wrench",text:t("EDIT_ALERT_RULES"),action:"edit",onClick:function(e){n("alerting.rule.edit",{detail:e,cluster:c.params.cluster,namespace:c.params.namespace,success:o.query})}},{key:"disablePolicy",icon:function(e){return JSON.parse(e.enabled)?"stop":"start"},text:function(e){return JSON.parse(e.enabled)?t("DISABLE"):t("ENABLE")},action:"edit",onClick:function(e){var a=JSON.parse(e.enabled);n("alerting.rule.update",{detail:e,cluster:c.params.cluster,namespace:c.params.namespace,resourceName:s,success:o.query,title:a?t("DISABLE_ALERTING_POLICY"):t("ENABLE_ALERTING_POLICY"),enabled:a})}},{key:"delete",icon:"trash",text:t("DELETE"),action:"delete",onClick:function(e){return n("alerting.rule.delete",{name:s,cluster:c.params.cluster,namespace:c.params.namespace,detail:e,success:o.query})}}]}},{key:"tableActions",get:function(){var e=this.props,a=e.tableProps,r=e.getData,n=e.trigger,o=e.name,s=e.store,l=e.match,i=e.detailStore,u=(0,E.toJS)(s.list.data),d=(0,E.toJS)(s.list.selectedRowKeys),f=u.filter((function(e){return d.includes(e.name)})).every((function(e){return!JSON.parse(e.enabled)})),p=u.filter((function(e){return d.includes(e.name)})).every((function(e){return JSON.parse(e.enabled)})),m=[{key:"deploy",type:"control",text:t("CREATE"),action:"create",forbidden:!i.detail.isRunning,onClick:this.showCreate}];return i.detail.isRunning||(m[0].tooltip={message:t("ALERTING_POLICY_CREATION_NOT_ALLOWED"),placement:(0,y.default)(s,"list.data.length")?"bottomRight":"bottom"}),I(I({},a.tableActions),{},{actions:m,selectActions:[].concat((0,c.default)(a.tableActions.selectActions),[{key:"enable",text:t("ENABLE"),action:"edit",disabled:p,onClick:function(){n("alerting.rule.update",{resourceName:o,cluster:l.params.cluster,namespace:l.params.namespace,title:t("ENABLE_ALERTING_POLICY"),enabled:!1,success:r,batchMode:!0})}},{key:"disable",text:t("DISABLE"),action:"edit",disabled:f,onClick:function(){n("alerting.rule.update",{resourceName:o,cluster:l.params.cluster,namespace:l.params.namespace,title:t("DISABLE_ALERTING_POLICY"),enabled:!0,success:r,batchMode:!0})}}])})}}]),n}(_.default.Component))||d;a.default=x}).call(this,r(138)(e))},4869:function(e,t,a){e.exports={"table-icon":"_1ZDsG2UdrEfYAB3t_km53m",status_icon:"usLADWmbiVkW64AlURQPz"}},4870:function(e,a,r){"use strict";var n=r(20);r(12),r(5),r(11),r(31),r(6),r(84),r(18),r(16),r(9),r(13),r(10),r(4),r(23),r(24),r(17),r(85),r(62),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(45),r(5),r(11),r(31),r(6),r(84),r(18),r(28),r(42),r(16),r(34),r(15),r(9),r(13),r(10),r(4),r(23),r(57),r(24),r(17),r(85),r(62),r(7);var o,c,s=n(r(61)),l=n(r(30)),i=n(r(36)),u=n(r(37)),d=n(r(55)),f=n(r(56)),p=n(r(51)),m=n(r(0)),h=n(r(26)),v=r(47),g=r(239),_=r(186),y=n(r(874)),E=n(r(1433)),b=n(r(1961)),S=r(815),O=n(r(4871));function R(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function A(e){for(var t=1;t0){if(this.needMainAppId.includes(e))return[this.MainLable].concat((0,s.default)(a.map((function(e){return A(A({},e),{},{label:e.label})}))));if(e===S.RadonDBAppId.Kafka)return[{label:t("ALL_KAFKA_NODES"),value:"kafka"},{label:t("ALL_ZOOKEEPER_NODES"),value:"zookeeper"}].concat((0,s.default)(a.map((function(e){return A(A({},e),{},{label:e.label})}))))}return a}}]),r}(m.default.Component))||c)||c)||c);a.default=T},4871:function(e,t,a){e.exports={loading:"_2rHsiQmBSPxEv5ZYKWM2Na",pods:"_2x_UjL9AEVUgL7SJ1CJbqZ"}},4872:function(e,a,r){"use strict";var n=r(20),o=r(157);r(12),r(11),r(6),r(84),r(18),r(16),r(9),r(13),r(10),r(4),r(23),r(24),r(17),r(62),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(45),r(11),r(6),r(84),r(18),r(28),r(42),r(16),r(34),r(15),r(9),r(13),r(10),r(4),r(22),r(23),r(57),r(24),r(17),r(62),r(7);var c=n(r(315)),s=n(r(43)),l=n(r(30)),i=n(r(58));r(41);var u,d=n(r(44)),f=n(r(36)),p=n(r(37)),m=n(r(55)),h=n(r(56)),v=n(r(51)),g=n(r(0)),_=n(r(26)),y=n(r(854)),E=r(14),b=n(r(795)),S=o(r(793)),O=n(r(796)),R=r(52),A=r(878),k=r(832),T=n(r(4873)),D=n(r(325)),C=n(r(4874));function P(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function N(e){for(var t=1;t0&&void 0!==c[0]?c[0]:{},a=t.silent,r=(0,i.default)(t,["silent"]),o=n.props.store,a&&(o.list.silent=!0),e.next=5,o.fetchList(N(N({},n.props.match.params),r));case 5:o.list.silent=!1;case 6:case"end":return e.stop()}}),e)}))),n.throttleGetData=(0,y.default)(n.getData,1e3),n.getColumns=function(){return[{title:t("NAME"),dataIndex:"name",width:200},{title:t("STATUS"),dataIndex:"status",render:function(e){return g.default.createElement(b.default,{type:e,name:t(e),flicker:!0})}},{title:t("PARTITION_COUNT"),dataIndex:"partitions"},{title:t("REPLICA_COUNT"),dataIndex:"replicas"},{title:t("MESSAGE_RETENTION_TIME"),dataIndex:'config["retention.ms"]',render:function(e){return e?g.default.createElement("span",null,e,"ms"):"-"}},{title:t("CREATION_TIME"),dataIndex:"creationTimestamp",render:function(e){return e?(0,R.getLocalTime)(e).format("YYYY-MM-DD HH:mm:ss"):"-"}}]},n.showCreate=function(){var e=n.props,a=e.match,r=e.getData,o=e.store,c=e.detailStore;return n.props.trigger("openpitrix.db.topic.create",{store:o,cluster:a.params.cluster,namespace:a.params.namespace,title:t("CREATE_TOPIC"),app_id:(0,_.default)(c,"detail.app_id"),kafkaReplicas:(0,_.default)(c,"detail.nodes.kafka"),cluster_id:a.params.id,success:r})},n.websocket=new D.default,n.initWebsocket(),n}return(0,p.default)(r,[{key:"initWebsocket",value:function(){var e=this,t=this.props.match.params,a=t.cluster,r=t.namespace,n=t.id,o=this.props.store.getWatchListUrl({namespace:r,cluster:a,cluster_id:n});o&&r&&(this.websocket.watch(o),this.disposer=(0,E.reaction)((function(){return e.websocket.message}),(function(t){"KafkaTopic"===t.object.kind&&["MODIFIED","DELETED","ADDED"].includes(t.type)&&e.throttleGetData()})))}},{key:"getStatus",value:function(){return A.ALERTING_STATUS.map((function(e){return{text:t("ALERT_RULE_".concat(e.toUpperCase())),value:e}}))}},{key:"getAlertingTypes",value:function(){return k.SEVERITY_LEVEL.map((function(e){return{text:t(e.label),value:e.value}}))}},{key:"getTableProps",value:function(){var e=this,a=this.props,r=a.tableProps,n=a.detailStore,o=a.store,c=[{key:"deploy",type:"control",text:t("CREATE"),action:"create",forbidden:!n.detail.isRunning,onClick:this.showCreate}];n.detail.isRunning||(c[0].tooltip={message:t("TOPIC_CREATION_NOT_ALLOWED"),placement:(0,_.default)(o,"list.data.length")?"bottomRight":"bottom"});var s=[{key:"delete",type:"danger",text:t("DELETE"),action:"delete",onClick:function(){return e.props.trigger("resource.batch.delete",N(N({type:"APP",rowKey:r.rowKey,success:e.getData},e.props.match.params),e.props.query))}}];return{tableActions:N(N({},r.tableActions),{},{selectActions:[],actions:c}),selectActions:s,emptyProps:{title:t("NO_TOPIC_FOUND"),icon:"record",desc:t("TOPIC_EMPTY_DESC")},searchType:"keyword"}}},{key:"render",value:function(){var e=this.props.tableProps,t=this.itemActions;return g.default.createElement("div",{className:C.default.policy},g.default.createElement(S.ListPage,(0,c.default)({},this.props,{getData:this.getData,noWatch:!0}),g.default.createElement(O.default,(0,c.default)({},e,this.getTableProps(),{rowKey:"name",itemActions:t,columns:this.getColumns()}))))}},{key:"itemActions",get:function(){var e=this.props,a=e.trigger,r=e.routing,n=e.match,o=e.getData,c=e.name,s=e.store,l=e.detailStore;return[{key:"edit",icon:"pen",text:t("EDIT"),action:"edit",onClick:function(e){var r=e.name,c=e.partitions,i=e.replicas,u=e.config;return a("openpitrix.db.topic.create",{cluster:n.params.cluster,namespace:n.params.namespace,title:t("EDIT_TOPIC"),detail:N({name:r,partitions:c,replicas:i},u),kafkaReplicas:(0,_.default)(l,"detail.nodes.kafka"),isEdit:!0,store:s,success:o})}},{key:"delete",icon:"trash",text:t("DELETE"),action:"delete",onClick:function(e){return a("resource.delete",{type:c,detail:e,success:r.query})}}]}}]),r}(g.default.Component))||u;a.default=w},4873:function(e,t,a){"use strict";var r=a(20);a(12),a(5),a(11),a(6),a(84),a(18),a(48),a(16),a(27),a(9),a(13),a(10),a(4),a(23),a(17),a(85),a(7),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(12),a(45),a(5),a(11),a(6),a(84),a(18),a(28),a(48),a(191),a(42),a(16),a(159),a(27),a(34),a(15),a(9),a(13),a(10),a(4),a(319),a(22),a(23),a(57),a(17),a(85),a(7);var n=r(a(43)),o=r(a(30)),c=r(a(58));a(41);var s,l,i=r(a(44)),u=r(a(65)),d=r(a(36)),f=r(a(37)),p=r(a(88)),m=r(a(55)),h=r(a(56)),v=r(a(51)),g=r(a(49)),_=(r(a(66)),r(a(26))),y=r(a(74)),E=a(14),b=r(a(68)),S=a(1015),O=a(1093);function R(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function A(e){for(var t=1;t0&&void 0!==g[0]?g[0]:{},a=t.cluster,t.workspace,r=t.namespace,t.more,o=t.id,s=(0,c.default)(t,["cluster","workspace","namespace","more","id"]),l=s.page,i=void 0===l?1:l,u=s.limit,d=void 0===u?10:u,f=s.keyword,this.list.isLoading=!0,s.limit=s.limit||10,e.next=6,request.get(this.getResourceUrl({cluster:a,namespace:r,id:o}));case 6:return p=e.sent,m=((0,_.default)(p,"items")||[]).filter((function(e){return!f||e.metadata.name.includes(f)})).map((function(e){var t=(0,S.getStatusFromYaml)(e);return{cluster:a,namespace:r,name:(0,_.default)(e,"metadata.name"),partitions:(0,_.default)(e,"spec.partitions"),replicas:(0,_.default)(e,"spec.replicas"),config:(0,_.default)(e,"spec.config",{}),creationTimestamp:(0,_.default)(e,"metadata.creationTimestamp"),status:v.statusMap[t]||"Creating"}})),h=Number(p.total||m.length),this.list.update(A({data:m.slice((i-1)*d,i*d),total:h,limit:Number(d)||10,page:Number(i)||1,isLoading:!1,filters:f?{keyword:f}:{}},this.list.silent?{}:{selectedRowKeys:[]})),e.abrupt("return",m);case 11:case"end":return e.stop()}}),e,this)}))),function(){return a.apply(this,arguments)})},{key:"getYamlFromData",value:function(e,t){var a=t.cluster_id,r=JSON.parse(JSON.stringify(O.kafkaYaml.topic)),n=e.name,o=e.partitions,s=e.replicas,l=(0,c.default)(e,["name","partitions","replicas"]);return(0,y.default)(r,"metadata.name",n),(0,y.default)(r,'metadata.labels["strimzi.io/cluster"]',a),(0,y.default)(r,"spec",{partitions:parseInt(o,10),replicas:s,config:l}),r}},{key:"create",value:function(e){var t=e.topic,a=(0,c.default)(e,["topic"]),r=this.getYamlFromData(t,a);return request.post(this.getListUrl(a),r)}},{key:"edit",value:(t=(0,i.default)(n.default.mark((function e(t){var a,r,o,s,l,i,u,d,f;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a=t.topic,r=t.oldTopicName,o=(0,c.default)(t,["topic","oldTopicName"]),s=a.name,l=a.partitions,a.replicas,i=(0,c.default)(a,["name","partitions","replicas"]),s!==r){e.next=13;break}return e.next=5,request.get(this.getDetailUrl(A(A({},o),{},{name:s})));case 5:return u=e.sent,d=(0,_.default)(u,"spec.config",{}),(0,y.default)(u,"spec.config",A(A({},d),i)),(0,y.default)(u,"spec.partitions",parseInt(l,10)),e.next=11,request.patch(this.getDetailUrl(A(A({},o),{},{name:s})),u);case 11:e.next=18;break;case 13:return f=this.getYamlFromData(a,o),e.next=16,this.delete(A(A({},o),{},{name:r}));case 16:return e.next=18,request.post(this.getListUrl(o),f);case 18:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})}]),o}(b.default),l=(0,g.default)(s.prototype,"targetsMetadata",[E.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),(0,g.default)(s.prototype,"fetchList",[E.action],Object.getOwnPropertyDescriptor(s.prototype,"fetchList"),s.prototype),(0,g.default)(s.prototype,"create",[E.action],Object.getOwnPropertyDescriptor(s.prototype,"create"),s.prototype),(0,g.default)(s.prototype,"edit",[E.action],Object.getOwnPropertyDescriptor(s.prototype,"edit"),s.prototype),s);t.default=T},4874:function(e,t,a){e.exports={policy:"_1CLMyM9L5Lqm9wNw2AdC16"}},4875:function(e,t,a){e.exports={icon:"_2TdY7G6Sm3yz4Ym6JmHf18",flexRow:"_2cqSWZz9wp2Tx2LFZcTIha"}},4876:function(e,a,r){"use strict";r(15);var n=r(20);r(12),r(109),r(5),r(16),r(4),r(23),r(24),r(17),r(62),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(109),r(45),r(5),r(28),r(42),r(16),r(4),r(23),r(57),r(24),r(17),r(62);var o,c=n(r(315)),s=n(r(36)),l=n(r(37)),i=n(r(55)),u=n(r(56)),d=n(r(51)),f=n(r(0)),p=r(14),m=r(239),h=n(r(26)),v=n(r(63)),g=r(186),_=r(52),y=r(791),E=n(r(1888)),b=n(r(836)),S=n(r(795)),O=n(r(805)),R=n(r(4877)),A=n(r(4881));function k(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,d.default)(e);if(t){var n=(0,d.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,u.default)(this,a)}}var T=(0,m.inject)("rootStore","projectStore")(o=(0,m.observer)(o=(0,y.trigger)(o=function(e){(0,i.default)(r,e);var a=k(r);function r(){var e;(0,s.default)(this,r);for(var n=arguments.length,o=new Array(n),c=0;c0&&void 0!==s[0]?s[0]:{},r=e.props,o=r.limit,(c=r.params).status="Successful",t.next=5,e.store.fetchS2IRunRecords(_(_({limit:o},c),a));case 5:e.setAutoRefresh();case 6:case"end":return t.stop()}}),t)}))),e}return(0,i.default)(a,[{key:"renderItem",value:function(e){var t=this.store.list.isLoading;return p.default.createElement(v.default,{key:e.name,runDetail:e,loading:t,store:this.store})}}]),a}(h.default))||c;t.default=E},4898:function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(42),r(4),r(23),r(57),r(17);var o,c=n(r(36)),s=n(r(37)),l=n(r(55)),i=n(r(56)),u=n(r(51)),d=n(r(0)),f=r(239),p=r(52),m=r(186),h=n(r(240)),v=r(1376),g=n(r(4899));function _(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,u.default)(e);if(t){var n=(0,u.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,i.default)(this,a)}}var y=(0,f.observer)(o=function(e){(0,l.default)(r,e);var a=_(r);function r(){var e;(0,c.default)(this,r);for(var n=arguments.length,o=new Array(n),s=0;s0&&void 0!==arguments[0]?arguments[0]:[],t=e.map((function(e){return(0,_.default)(e.type)})).join(",");return t}},{title:t("SCALING_OBJECT"),dataIndex:"scaleTargetRef",isHideable:!0,width:"15%",render:function(e){var a,r;return y.default.createElement(m.default,{title:null!==(a=null==e?void 0:e.name)&&void 0!==a?a:"-",description:t(null!==(r=null==e?void 0:e.kind)&&void 0!==r?r:"-")})}},{title:t("MINIMUM_REPLICAS"),dataIndex:"minReplicaCount",isHideable:!0,width:"10%"},{title:t("MAXIMUM_REPLICAS"),dataIndex:"maxReplicaCount",isHideable:!0,width:"10%"},{title:t("CREATION_TIME_TCAP"),dataIndex:"createTime",sorter:!0,sortOrder:n("createTime"),isHideable:!0,width:150,render:function(e){return(0,b.getLocalTime)(e).format("YYYY-MM-DD HH:mm:ss")}}]},a.showCreate=function(){var e=a.props,r=e.match,n=e.module,o=e.getData;return a.props.trigger("customScaling.create",A(A({module:n},r.params),{},{success:o,title:t("CREATE_CUSTOM_SCALING")}))},a}return(0,i.default)(n,[{key:"render",value:function(){var e=this.props,t=e.bannerProps,a=e.tableProps;return y.default.createElement(v.ListPage,(0,c.default)({},this.props,{noWatch:!0}),y.default.createElement(h.default,t),y.default.createElement(g.default,(0,c.default)({},a,{className:"table-2-3",itemActions:this.itemActions,columns:this.getColumns(),onCreate:this.showCreate,searchType:"name"})))}},{key:"itemActions",get:function(){var e=this.props,a=e.getData,r=e.trigger,n=e.name,o=e.match;return[{key:"edit",icon:"pen",text:t("EDIT_INFORMATION"),action:"edit",onClick:function(e){return r("resource.baseinfo.edit",{detail:e,success:a})}},{key:"editYaml",icon:"pen",text:t("EDIT_YAML"),action:"edit",onClick:function(e){return r("resource.yaml.edit",{detail:e,success:a})}},{key:"editScale",icon:"pen",text:t("EDIT_SCALING_SETTINGS"),action:"edit",onClick:function(e){return r("customScaling.edit.setting",A({detail:e,success:a},o.params))}},{key:"delete",icon:"trash",text:t("DELETE"),action:"delete",onClick:function(e){return r("resource.delete",{type:n,detail:e,success:a})}}]}}]),n}(y.default.Component))||o;a.default=T}).call(this,r(69))},781:function(e,t,a){"use strict";var r=a(20),n=a(157);a(12),a(11),a(6),a(29),a(16),a(9),a(13),a(10),a(4),a(22),a(23),a(24),a(17),a(38),a(62),a(7),a(32),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(12),a(45),a(11),a(6),a(29),a(28),a(42),a(16),a(34),a(15),a(9),a(13),a(10),a(4),a(22),a(23),a(57),a(24),a(17),a(38),a(62),a(7),a(32);var o=r(a(43)),c=r(a(30));a(41);var s,l=r(a(44)),i=r(a(36)),u=r(a(37)),d=r(a(55)),f=r(a(56)),p=r(a(51)),m=n(a(0)),h=a(239),v=a(186),g=r(a(74)),_=r(a(241)),y=a(317),E=r(a(439)),b=r(a(438)),S=r(a(445)),O=r(a(4506));function R(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function A(e){for(var t=1;t=0?parseFloat((s.match(/(?:MSIE |Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]):parseFloat((s.match(/(?:Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]),t.isOldIE=t.isIE&&t.isIE<9,t.isGecko=t.isMozilla=s.match(/ Gecko\/\d+/),t.isOpera="object"==typeof opera&&"[object Opera]"==Object.prototype.toString.call(window.opera),t.isWebKit=parseFloat(s.split("WebKit/")[1])||void 0,t.isChrome=parseFloat(s.split(" Chrome/")[1])||void 0,t.isEdge=parseFloat(s.split(" Edge/")[1])||void 0,t.isAIR=s.indexOf("AdobeAIR")>=0,t.isAndroid=s.indexOf("Android")>=0,t.isChromeOS=s.indexOf(" CrOS ")>=0,t.isIOS=/iPad|iPhone|iPod/.test(s)&&!window.MSStream,t.isIOS&&(t.isMac=!0),t.isMobile=t.isIOS||t.isAndroid})),ace.define("ace/lib/dom",["require","exports","module","ace/lib/useragent"],(function(e,t,i){"use strict";var n=e("./useragent");if(t.buildDom=function e(t,i,n){if("string"==typeof t&&t){var o=document.createTextNode(t);return i&&i.appendChild(o),o}if(!Array.isArray(t))return t&&t.appendChild&&i&&i.appendChild(t),t;if("string"!=typeof t[0]||!t[0]){for(var s=[],r=0;r=1.5,"undefined"!=typeof document){var o=document.createElement("div");t.HI_DPI&&void 0!==o.style.transform&&(t.HAS_CSS_TRANSFORMS=!0),n.isEdge||void 0===o.style.animationName||(t.HAS_CSS_ANIMATION=!0),o=null}t.HAS_CSS_TRANSFORMS?t.translate=function(e,t,i){e.style.transform="translate("+Math.round(t)+"px, "+Math.round(i)+"px)"}:t.translate=function(e,t,i){e.style.top=Math.round(i)+"px",e.style.left=Math.round(t)+"px"}})),ace.define("ace/lib/oop",["require","exports","module"],(function(e,t,i){"use strict";t.inherits=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})},t.mixin=function(e,t){for(var i in t)e[i]=t[i];return e},t.implement=function(e,i){t.mixin(e,i)}})),ace.define("ace/lib/keys",["require","exports","module","ace/lib/oop"],(function(e,t,i){"use strict";var n=e("./oop"),o=function(){var e,t,i={MODIFIER_KEYS:{16:"Shift",17:"Ctrl",18:"Alt",224:"Meta",91:"MetaLeft",92:"MetaRight",93:"ContextMenu"},KEY_MODS:{ctrl:1,alt:2,option:2,shift:4,super:8,meta:8,command:8,cmd:8,control:1},FUNCTION_KEYS:{8:"Backspace",9:"Tab",13:"Return",19:"Pause",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"Print",45:"Insert",46:"Delete",96:"Numpad0",97:"Numpad1",98:"Numpad2",99:"Numpad3",100:"Numpad4",101:"Numpad5",102:"Numpad6",103:"Numpad7",104:"Numpad8",105:"Numpad9","-13":"NumpadEnter",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"Numlock",145:"Scrolllock"},PRINTABLE_KEYS:{32:" ",48:"0",49:"1",50:"2",51:"3",52:"4",53:"5",54:"6",55:"7",56:"8",57:"9",59:";",61:"=",65:"a",66:"b",67:"c",68:"d",69:"e",70:"f",71:"g",72:"h",73:"i",74:"j",75:"k",76:"l",77:"m",78:"n",79:"o",80:"p",81:"q",82:"r",83:"s",84:"t",85:"u",86:"v",87:"w",88:"x",89:"y",90:"z",107:"+",109:"-",110:".",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",111:"/",106:"*"}};for(t in i.FUNCTION_KEYS)e=i.FUNCTION_KEYS[t].toLowerCase(),i[e]=parseInt(t,10);for(t in i.PRINTABLE_KEYS)e=i.PRINTABLE_KEYS[t].toLowerCase(),i[e]=parseInt(t,10);return n.mixin(i,i.MODIFIER_KEYS),n.mixin(i,i.PRINTABLE_KEYS),n.mixin(i,i.FUNCTION_KEYS),i.enter=i.return,i.escape=i.esc,i.del=i.delete,i[173]="-",function(){for(var e=["cmd","ctrl","alt","shift"],t=Math.pow(2,e.length);t--;)i.KEY_MODS[t]=e.filter((function(e){return t&i.KEY_MODS[e]})).join("-")+"-"}(),i.KEY_MODS[0]="",i.KEY_MODS[-1]="input-",i}();n.mixin(t,o),t.keyCodeToString=function(e){var t=o[e];return"string"!=typeof t&&(t=String.fromCharCode(e)),t.toLowerCase()}})),ace.define("ace/lib/event",["require","exports","module","ace/lib/keys","ace/lib/useragent"],(function(e,t,i){"use strict";var n,o=e("./keys"),s=e("./useragent"),r=null,a=0;function c(){return null==n&&function(){n=!1;try{document.createComment("").addEventListener("test",(function(){}),{get passive(){n={passive:!1}}})}catch(e){}}(),n}function l(e,t,i){this.elem=e,this.type=t,this.callback=i}l.prototype.destroy=function(){d(this.elem,this.type,this.callback),this.elem=this.type=this.callback=void 0};var h=t.addListener=function(e,t,i,n){e.addEventListener(t,i,c()),n&&n.$toDestroy.push(new l(e,t,i))},d=t.removeListener=function(e,t,i){e.removeEventListener(t,i,c())};t.stopEvent=function(e){return t.stopPropagation(e),t.preventDefault(e),!1},t.stopPropagation=function(e){e.stopPropagation&&e.stopPropagation()},t.preventDefault=function(e){e.preventDefault&&e.preventDefault()},t.getButton=function(e){return"dblclick"==e.type?0:"contextmenu"==e.type||s.isMac&&e.ctrlKey&&!e.altKey&&!e.shiftKey?2:e.button},t.capture=function(e,t,i){var n=e&&e.ownerDocument||document;function o(e){t&&t(e),i&&i(e),d(n,"mousemove",t),d(n,"mouseup",o),d(n,"dragstart",o)}return h(n,"mousemove",t),h(n,"mouseup",o),h(n,"dragstart",o),o},t.addMouseWheelListener=function(e,t,i){"onmousewheel"in e?h(e,"mousewheel",(function(e){void 0!==e.wheelDeltaX?(e.wheelX=-e.wheelDeltaX/8,e.wheelY=-e.wheelDeltaY/8):(e.wheelX=0,e.wheelY=-e.wheelDelta/8),t(e)}),i):"onwheel"in e?h(e,"wheel",(function(e){switch(e.deltaMode){case e.DOM_DELTA_PIXEL:e.wheelX=.35*e.deltaX||0,e.wheelY=.35*e.deltaY||0;break;case e.DOM_DELTA_LINE:case e.DOM_DELTA_PAGE:e.wheelX=5*(e.deltaX||0),e.wheelY=5*(e.deltaY||0)}t(e)}),i):h(e,"DOMMouseScroll",(function(e){e.axis&&e.axis==e.HORIZONTAL_AXIS?(e.wheelX=5*(e.detail||0),e.wheelY=0):(e.wheelX=0,e.wheelY=5*(e.detail||0)),t(e)}),i)},t.addMultiMouseDownListener=function(e,i,n,o,r){var a,c,l,d=0,u={2:"dblclick",3:"tripleclick",4:"quadclick"};function f(e){if(0!==t.getButton(e)?d=0:e.detail>1?++d>4&&(d=1):d=1,s.isIE){var r=Math.abs(e.clientX-a)>5||Math.abs(e.clientY-c)>5;l&&!r||(d=1),l&&clearTimeout(l),l=setTimeout((function(){l=null}),i[d-1]||600),1==d&&(a=e.clientX,c=e.clientY)}if(e._clicks=d,n[o]("mousedown",e),d>4)d=0;else if(d>1)return n[o](u[d],e)}Array.isArray(e)||(e=[e]),e.forEach((function(e){h(e,"mousedown",f,r)}))};var u=function(e){return 0|(e.ctrlKey?1:0)|(e.altKey?2:0)|(e.shiftKey?4:0)|(e.metaKey?8:0)};function f(e,t,i){var n=u(t);if(!s.isMac&&r){if(t.getModifierState&&(t.getModifierState("OS")||t.getModifierState("Win"))&&(n|=8),r.altGr){if(3==(3&n))return;r.altGr=0}if(18===i||17===i){var c="location"in t?t.location:t.keyLocation;if(17===i&&1===c)1==r[i]&&(a=t.timeStamp);else if(18===i&&3===n&&2===c){t.timeStamp-a<50&&(r.altGr=!0)}}}if((i in o.MODIFIER_KEYS&&(i=-1),!n&&13===i)&&(3===(c="location"in t?t.location:t.keyLocation)&&(e(t,n,-i),t.defaultPrevented)))return;if(s.isChromeOS&&8&n){if(e(t,n,i),t.defaultPrevented)return;n&=-9}return!!(n||i in o.FUNCTION_KEYS||i in o.PRINTABLE_KEYS)&&e(t,n,i)}function g(){r=Object.create(null)}if(t.getModifierString=function(e){return o.KEY_MODS[u(e)]},t.addCommandKeyListener=function(e,i,n){if(s.isOldGecko||s.isOpera&&!("KeyboardEvent"in window)){var o=null;h(e,"keydown",(function(e){o=e.keyCode}),n),h(e,"keypress",(function(e){return f(i,e,o)}),n)}else{var a=null;h(e,"keydown",(function(e){r[e.keyCode]=(r[e.keyCode]||0)+1;var t=f(i,e,e.keyCode);return a=e.defaultPrevented,t}),n),h(e,"keypress",(function(e){a&&(e.ctrlKey||e.altKey||e.shiftKey||e.metaKey)&&(t.stopEvent(e),a=null)}),n),h(e,"keyup",(function(e){r[e.keyCode]=null}),n),r||(g(),h(window,"focus",g))}},"object"==typeof window&&window.postMessage&&!s.isOldIE){var p=1;t.nextTick=function(e,i){i=i||window;var n="zero-timeout-message-"+p++,o=function(s){s.data==n&&(t.stopPropagation(s),d(i,"message",o),e())};h(i,"message",o),i.postMessage(n,"*")}}t.$idleBlocked=!1,t.onIdle=function(e,i){return setTimeout((function i(){t.$idleBlocked?setTimeout(i,100):e()}),i)},t.$idleBlockId=null,t.blockIdle=function(e){t.$idleBlockId&&clearTimeout(t.$idleBlockId),t.$idleBlocked=!0,t.$idleBlockId=setTimeout((function(){t.$idleBlocked=!1}),e||100)},t.nextFrame="object"==typeof window&&(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame),t.nextFrame?t.nextFrame=t.nextFrame.bind(window):t.nextFrame=function(e){setTimeout(e,17)}})),ace.define("ace/range",["require","exports","module"],(function(e,t,i){"use strict";var n=function(e,t,i,n){this.start={row:e,column:t},this.end={row:i,column:n}};(function(){this.isEqual=function(e){return this.start.row===e.start.row&&this.end.row===e.end.row&&this.start.column===e.start.column&&this.end.column===e.end.column},this.toString=function(){return"Range: ["+this.start.row+"/"+this.start.column+"] -> ["+this.end.row+"/"+this.end.column+"]"},this.contains=function(e,t){return 0==this.compare(e,t)},this.compareRange=function(e){var t,i=e.end,n=e.start;return 1==(t=this.compare(i.row,i.column))?1==(t=this.compare(n.row,n.column))?2:0==t?1:0:-1==t?-2:-1==(t=this.compare(n.row,n.column))?-1:1==t?42:0},this.comparePoint=function(e){return this.compare(e.row,e.column)},this.containsRange=function(e){return 0==this.comparePoint(e.start)&&0==this.comparePoint(e.end)},this.intersects=function(e){var t=this.compareRange(e);return-1==t||0==t||1==t},this.isEnd=function(e,t){return this.end.row==e&&this.end.column==t},this.isStart=function(e,t){return this.start.row==e&&this.start.column==t},this.setStart=function(e,t){"object"==typeof e?(this.start.column=e.column,this.start.row=e.row):(this.start.row=e,this.start.column=t)},this.setEnd=function(e,t){"object"==typeof e?(this.end.column=e.column,this.end.row=e.row):(this.end.row=e,this.end.column=t)},this.inside=function(e,t){return 0==this.compare(e,t)&&(!this.isEnd(e,t)&&!this.isStart(e,t))},this.insideStart=function(e,t){return 0==this.compare(e,t)&&!this.isEnd(e,t)},this.insideEnd=function(e,t){return 0==this.compare(e,t)&&!this.isStart(e,t)},this.compare=function(e,t){return this.isMultiLine()||e!==this.start.row?ethis.end.row?1:this.start.row===e?t>=this.start.column?0:-1:this.end.row===e?t<=this.end.column?0:1:0:tthis.end.column?1:0},this.compareStart=function(e,t){return this.start.row==e&&this.start.column==t?-1:this.compare(e,t)},this.compareEnd=function(e,t){return this.end.row==e&&this.end.column==t?1:this.compare(e,t)},this.compareInside=function(e,t){return this.end.row==e&&this.end.column==t?1:this.start.row==e&&this.start.column==t?-1:this.compare(e,t)},this.clipRows=function(e,t){if(this.end.row>t)var i={row:t+1,column:0};else if(this.end.rowt)var o={row:t+1,column:0};else if(this.start.row0;)1&t&&(i+=e),(t>>=1)&&(e+=e);return i};var n=/^\s\s*/,o=/\s\s*$/;t.stringTrimLeft=function(e){return e.replace(n,"")},t.stringTrimRight=function(e){return e.replace(o,"")},t.copyObject=function(e){var t={};for(var i in e)t[i]=e[i];return t},t.copyArray=function(e){for(var t=[],i=0,n=e.length;iDate.now()-50)||(n=!1)},cancel:function(){n=Date.now()}}})),ace.define("ace/keyboard/textinput",["require","exports","module","ace/lib/event","ace/lib/useragent","ace/lib/dom","ace/lib/lang","ace/clipboard","ace/lib/keys"],(function(e,t,i){"use strict";var n=e("../lib/event"),o=e("../lib/useragent"),s=e("../lib/dom"),r=e("../lib/lang"),a=e("../clipboard"),c=o.isChrome<18,l=o.isIE,h=o.isChrome>63,d=e("../lib/keys"),u=d.KEY_MODS,f=o.isIOS,g=f?/\s/:/\n/,p=o.isMobile;t.TextInput=function(e,t){var i=s.createElement("textarea");i.className="ace_text-input",i.setAttribute("wrap","off"),i.setAttribute("autocorrect","off"),i.setAttribute("autocapitalize","off"),i.setAttribute("spellcheck",!1),i.style.opacity="0",e.insertBefore(i,e.firstChild);var m=!1,b=!1,v=!1,w=!1,x="";p||(i.style.fontSize="1px");var y=!1,$=!1,S="",C=0,k=0,M=0;try{var A=document.activeElement===i}catch(e){}n.addListener(i,"blur",(function(e){$||(t.onBlur(e),A=!1)}),t),n.addListener(i,"focus",(function(e){if(!$){if(A=!0,o.isEdge)try{if(!document.hasFocus())return}catch(e){}t.onFocus(e),o.isEdge?setTimeout(L):L()}}),t),this.$focusScroll=!1,this.focus=function(){if(x||h||"browser"==this.$focusScroll)return i.focus({preventScroll:!0});var e=i.style.top;i.style.position="fixed",i.style.top="0px";try{var t=0!=i.getBoundingClientRect().top}catch(e){return}var n=[];if(t)for(var o=i.parentElement;o&&1==o.nodeType;)n.push(o),o.setAttribute("ace_nocontext",!0),o=!o.parentElement&&o.getRootNode?o.getRootNode().host:o.parentElement;i.focus({preventScroll:!0}),t&&n.forEach((function(e){e.removeAttribute("ace_nocontext")})),setTimeout((function(){i.style.position="","0px"==i.style.top&&(i.style.top=e)}),0)},this.blur=function(){i.blur()},this.isFocused=function(){return A},t.on("beforeEndOperation",(function(){var e=t.curOp,n=e&&e.command&&e.command.name;if("insertstring"!=n){var o=n&&(e.docChanged||e.selectionChanged);v&&o&&(S=i.value="",j()),L()}}));var L=f?function(e){if(A&&(!m||e)&&!w){e||(e="");var n="\n ab"+e+"cde fg\n";n!=i.value&&(i.value=S=n);var o=4+(e.length||(t.selection.isEmpty()?0:1));4==C&&k==o||i.setSelectionRange(4,o),C=4,k=o}}:function(){if(!v&&!w&&(A||_)){v=!0;var e=0,n=0,o="";if(t.session){var s=t.selection,r=s.getRange(),a=s.cursor.row;if(e=r.start.column,n=r.end.column,o=t.session.getLine(a),r.start.row!=a){var c=t.session.getLine(a-1);e=r.start.rowa+1?l.length:n,n+=o.length+1,o=o+"\n"+l}else p&&a>0&&(o="\n"+o,n+=1,e+=1);o.length>400&&(e<400&&n<400?o=o.slice(0,400):(o="\n",e==n?e=n=0:(e=0,n=1)))}var h=o+"\n\n";if(h!=S&&(i.value=S=h,C=k=h.length),_&&(C=i.selectionStart,k=i.selectionEnd),k!=n||C!=e||i.selectionEnd!=k)try{i.setSelectionRange(e,n),C=e,k=n}catch(e){}v=!1}};this.resetSelection=L,A&&t.onFocus();var R=null;this.setInputHandler=function(e){R=e},this.getInputHandler=function(){return R};var _=!1,E=function(e,n){if(_&&(_=!1),b)return L(),e&&t.onPaste(e),b=!1,"";for(var s=i.selectionStart,r=i.selectionEnd,a=C,c=S.length-k,l=e,h=e.length-s,d=e.length-r,u=0;a>0&&S[u]==e[u];)u++,a--;for(l=l.slice(u),u=1;c>0&&S.length-u>C-1&&S[S.length-u]==e[e.length-u];)u++,c--;h-=u-1,d-=u-1;var f=l.length-u+1;if(f<0&&(a=-f,f=0),l=l.slice(0,f),!(n||l||h||a||c||d))return"";w=!0;var g=!1;return o.isAndroid&&". "==l&&(l=" ",g=!0),l&&!a&&!c&&!h&&!d||y?t.onTextInput(l):t.onTextInput(l,{extendLeft:a,extendRight:c,restoreStart:h,restoreEnd:d}),w=!1,S=e,C=s,k=r,M=d,g?"\n":l},T=function(e){if(v)return B();if(e&&e.inputType){if("historyUndo"==e.inputType)return t.execCommand("undo");if("historyRedo"==e.inputType)return t.execCommand("redo")}var n=i.value,o=E(n,!0);(n.length>500||g.test(o)||p&&C<1&&C==k)&&L()},O=function(e,t,i){var n=e.clipboardData||window.clipboardData;if(n&&!c){var o=l||i?"Text":"text/plain";try{return t?!1!==n.setData(o,t):n.getData(o)}catch(e){if(!i)return O(e,t,!0)}}},F=function(e,o){var s=t.getCopyText();if(!s)return n.preventDefault(e);O(e,s)?(f&&(L(s),m=s,setTimeout((function(){m=!1}),10)),o?t.onCut():t.onCopy(),n.preventDefault(e)):(m=!0,i.value=s,i.select(),setTimeout((function(){m=!1,L(),o?t.onCut():t.onCopy()})))},U=function(e){F(e,!0)},I=function(e){F(e,!1)},W=function(e){var s=O(e);a.pasteCancelled()||("string"==typeof s?(s&&t.onPaste(s,e),o.isIE&&setTimeout(L),n.preventDefault(e)):(i.value="",b=!0))};n.addCommandKeyListener(i,t.onCommandKey.bind(t),t),n.addListener(i,"select",(function(e){v||(m?m=!1:!function(e){return 0===e.selectionStart&&e.selectionEnd>=S.length&&e.value===S&&S&&e.selectionEnd!==k}(i)?p&&i.selectionStart!=C&&L():(t.selectAll(),L()))}),t),n.addListener(i,"input",T,t),n.addListener(i,"cut",U,t),n.addListener(i,"copy",I,t),n.addListener(i,"paste",W,t),"oncut"in i&&"oncopy"in i&&"onpaste"in i||n.addListener(e,"keydown",(function(e){if((!o.isMac||e.metaKey)&&e.ctrlKey)switch(e.keyCode){case 67:I(e);break;case 86:W(e);break;case 88:U(e)}}),t);var B=function(){if(v&&t.onCompositionUpdate&&!t.$readOnly){if(y)return D();if(v.useTextareaForIME)t.onCompositionUpdate(i.value);else{var e=i.value;E(e),v.markerRange&&(v.context&&(v.markerRange.start.column=v.selectionStart=v.context.compositionStartOffset),v.markerRange.end.column=v.markerRange.start.column+k-v.selectionStart+M)}}},j=function(e){t.onCompositionEnd&&!t.$readOnly&&(v=!1,t.onCompositionEnd(),t.off("mousedown",D),e&&T())};function D(){$=!0,i.blur(),i.focus(),$=!1}var P,H=r.delayedCall(B,50).schedule.bind(null,null);function N(){clearTimeout(P),P=setTimeout((function(){x&&(i.style.cssText=x,x=""),t.renderer.$isMousePressed=!1,t.renderer.$keepTextAreaAtCursor&&t.renderer.$moveTextAreaToCursor()}),0)}n.addListener(i,"compositionstart",(function(e){if(!v&&t.onCompositionStart&&!t.$readOnly&&(v={},!y)){e.data&&(v.useTextareaForIME=!1),setTimeout(B,0),t._signal("compositionStart"),t.on("mousedown",D);var n=t.getSelectionRange();n.end.row=n.start.row,n.end.column=n.start.column,v.markerRange=n,v.selectionStart=C,t.onCompositionStart(v),v.useTextareaForIME?(S=i.value="",C=0,k=0):(i.msGetInputContext&&(v.context=i.msGetInputContext()),i.getInputContext&&(v.context=i.getInputContext()))}}),t),n.addListener(i,"compositionupdate",B,t),n.addListener(i,"keyup",(function(e){27==e.keyCode&&i.value.lengthk&&"\n"==S[s]?r=d.end:nk&&S.slice(0,s).split("\n").length>2?r=d.down:s>k&&" "==S[s-1]?(r=d.right,a=u.option):(s>k||s==k&&k!=C&&n==s)&&(r=d.right),n!==s&&(a|=u.shift),r){if(!t.onCommandKey({},a,r)&&t.commands){r=d.keyCodeToString(r);var c=t.commands.findKeyCommand(a,r);c&&t.execCommand(c)}C=n,k=s,L("")}}};document.addEventListener("selectionchange",s),t.on("destroy",(function(){document.removeEventListener("selectionchange",s)}))}(0,t,i)},t.$setUserAgentForTests=function(e,t){p=e,f=t}})),ace.define("ace/mouse/default_handlers",["require","exports","module","ace/lib/useragent"],(function(e,t,i){"use strict";var n=e("../lib/useragent");function o(e){e.$clickSelection=null;var t=e.editor;t.setDefaultHandler("mousedown",this.onMouseDown.bind(e)),t.setDefaultHandler("dblclick",this.onDoubleClick.bind(e)),t.setDefaultHandler("tripleclick",this.onTripleClick.bind(e)),t.setDefaultHandler("quadclick",this.onQuadClick.bind(e)),t.setDefaultHandler("mousewheel",this.onMouseWheel.bind(e));["select","startSelect","selectEnd","selectAllEnd","selectByWordsEnd","selectByLinesEnd","dragWait","dragWaitEnd","focusWait"].forEach((function(t){e[t]=this[t]}),this),e.selectByLines=this.extendSelectionBy.bind(e,"getLineRange"),e.selectByWords=this.extendSelectionBy.bind(e,"getWordRange")}function s(e,t){if(e.start.row==e.end.row)var i=2*t.column-e.start.column-e.end.column;else if(e.start.row!=e.end.row-1||e.start.column||e.end.column)i=2*t.row-e.start.row-e.end.row;else var i=t.column-4;return i<0?{cursor:e.start,anchor:e.end}:{cursor:e.end,anchor:e.start}}(function(){this.onMouseDown=function(e){var t=e.inSelection(),i=e.getDocumentPosition();this.mousedownEvent=e;var o=this.editor,s=e.getButton();return 0!==s?((o.getSelectionRange().isEmpty()||1==s)&&o.selection.moveToPosition(i),void(2==s&&(o.textInput.onContextMenu(e.domEvent),n.isMozilla||e.preventDefault()))):(this.mousedownEvent.time=Date.now(),!t||o.isFocused()||(o.focus(),!this.$focusTimeout||this.$clickSelection||o.inMultiSelectMode)?(this.captureMouse(e),this.startSelect(i,e.domEvent._clicks>1),e.preventDefault()):(this.setState("focusWait"),void this.captureMouse(e)))},this.startSelect=function(e,t){e=e||this.editor.renderer.screenToTextCoordinates(this.x,this.y);var i=this.editor;this.mousedownEvent&&(this.mousedownEvent.getShiftKey()?i.selection.selectToPosition(e):t||i.selection.moveToPosition(e),t||this.select(),i.renderer.scroller.setCapture&&i.renderer.scroller.setCapture(),i.setStyle("ace_selecting"),this.setState("select"))},this.select=function(){var e,t=this.editor,i=t.renderer.screenToTextCoordinates(this.x,this.y);if(this.$clickSelection){var n=this.$clickSelection.comparePoint(i);if(-1==n)e=this.$clickSelection.end;else if(1==n)e=this.$clickSelection.start;else{var o=s(this.$clickSelection,i);i=o.cursor,e=o.anchor}t.selection.setSelectionAnchor(e.row,e.column)}t.selection.selectToPosition(i),t.renderer.scrollCursorIntoView()},this.extendSelectionBy=function(e){var t,i=this.editor,n=i.renderer.screenToTextCoordinates(this.x,this.y),o=i.selection[e](n.row,n.column);if(this.$clickSelection){var r=this.$clickSelection.comparePoint(o.start),a=this.$clickSelection.comparePoint(o.end);if(-1==r&&a<=0)t=this.$clickSelection.end,o.end.row==n.row&&o.end.column==n.column||(n=o.start);else if(1==a&&r>=0)t=this.$clickSelection.start,o.start.row==n.row&&o.start.column==n.column||(n=o.end);else if(-1==r&&1==a)n=o.end,t=o.start;else{var c=s(this.$clickSelection,n);n=c.cursor,t=c.anchor}i.selection.setSelectionAnchor(t.row,t.column)}i.selection.selectToPosition(n),i.renderer.scrollCursorIntoView()},this.selectEnd=this.selectAllEnd=this.selectByWordsEnd=this.selectByLinesEnd=function(){this.$clickSelection=null,this.editor.unsetStyle("ace_selecting"),this.editor.renderer.scroller.releaseCapture&&this.editor.renderer.scroller.releaseCapture()},this.focusWait=function(){var e,t,i,n,o=(e=this.mousedownEvent.x,t=this.mousedownEvent.y,i=this.x,n=this.y,Math.sqrt(Math.pow(i-e,2)+Math.pow(n-t,2))),s=Date.now();(o>0||s-this.mousedownEvent.time>this.$focusTimeout)&&this.startSelect(this.mousedownEvent.getDocumentPosition())},this.onDoubleClick=function(e){var t=e.getDocumentPosition(),i=this.editor,n=i.session.getBracketRange(t);n?(n.isEmpty()&&(n.start.column--,n.end.column++),this.setState("select")):(n=i.selection.getWordRange(t.row,t.column),this.setState("selectByWords")),this.$clickSelection=n,this.select()},this.onTripleClick=function(e){var t=e.getDocumentPosition(),i=this.editor;this.setState("selectByLines");var n=i.getSelectionRange();n.isMultiLine()&&n.contains(t.row,t.column)?(this.$clickSelection=i.selection.getLineRange(n.start.row),this.$clickSelection.end=i.selection.getLineRange(n.end.row).end):this.$clickSelection=i.selection.getLineRange(t.row),this.select()},this.onQuadClick=function(e){var t=this.editor;t.selectAll(),this.$clickSelection=t.getSelectionRange(),this.setState("selectAll")},this.onMouseWheel=function(e){if(!e.getAccelKey()){e.getShiftKey()&&e.wheelY&&!e.wheelX&&(e.wheelX=e.wheelY,e.wheelY=0);var t=this.editor;this.$lastScroll||(this.$lastScroll={t:0,vx:0,vy:0,allowed:0});var i=this.$lastScroll,n=e.domEvent.timeStamp,o=n-i.t,s=o?e.wheelX/o:i.vx,r=o?e.wheelY/o:i.vy;o<550&&(s=(s+i.vx)/2,r=(r+i.vy)/2);var a=Math.abs(s/r),c=!1;if(a>=1&&t.renderer.isScrollableBy(e.wheelX*e.speed,0)&&(c=!0),a<=1&&t.renderer.isScrollableBy(0,e.wheelY*e.speed)&&(c=!0),c)i.allowed=n;else if(n-i.allowed<550){Math.abs(s)<=1.5*Math.abs(i.vx)&&Math.abs(r)<=1.5*Math.abs(i.vy)?(c=!0,i.allowed=n):i.allowed=0}return i.t=n,i.vx=s,i.vy=r,c?(t.renderer.scrollBy(e.wheelX*e.speed,e.wheelY*e.speed),e.stop()):void 0}}}).call(o.prototype),t.DefaultHandlers=o})),ace.define("ace/tooltip",["require","exports","module","ace/lib/oop","ace/lib/dom"],(function(e,t,i){"use strict";e("./lib/oop");var n=e("./lib/dom");function o(e){this.isOpen=!1,this.$element=null,this.$parentNode=e}(function(){this.$init=function(){return this.$element=n.createElement("div"),this.$element.className="ace_tooltip",this.$element.style.display="none",this.$parentNode.appendChild(this.$element),this.$element},this.getElement=function(){return this.$element||this.$init()},this.setText=function(e){this.getElement().textContent=e},this.setHtml=function(e){this.getElement().innerHTML=e},this.setPosition=function(e,t){this.getElement().style.left=e+"px",this.getElement().style.top=t+"px"},this.setClassName=function(e){n.addCssClass(this.getElement(),e)},this.show=function(e,t,i){null!=e&&this.setText(e),null!=t&&null!=i&&this.setPosition(t,i),this.isOpen||(this.getElement().style.display="block",this.isOpen=!0)},this.hide=function(){this.isOpen&&(this.getElement().style.display="none",this.isOpen=!1)},this.getHeight=function(){return this.getElement().offsetHeight},this.getWidth=function(){return this.getElement().offsetWidth},this.destroy=function(){this.isOpen=!1,this.$element&&this.$element.parentNode&&this.$element.parentNode.removeChild(this.$element)}}).call(o.prototype),t.Tooltip=o})),ace.define("ace/mouse/default_gutter_handler",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/event","ace/tooltip"],(function(e,t,i){"use strict";var n=e("../lib/dom"),o=e("../lib/oop"),s=e("../lib/event"),r=e("../tooltip").Tooltip;function a(e){r.call(this,e)}o.inherits(a,r),function(){this.setPosition=function(e,t){var i=window.innerWidth||document.documentElement.clientWidth,n=window.innerHeight||document.documentElement.clientHeight,o=this.getWidth(),s=this.getHeight();(e+=15)+o>i&&(e-=e+o-i),(t+=15)+s>n&&(t-=20+s),r.prototype.setPosition.call(this,e,t)}}.call(a.prototype),t.GutterHandler=function(e){var t,i,o,r=e.editor,c=r.renderer.$gutterLayer,l=new a(r.container);function h(){t&&(t=clearTimeout(t)),o&&(l.hide(),o=null,r._signal("hideGutterTooltip",l),r.off("mousewheel",h))}function d(e){l.setPosition(e.x,e.y)}e.editor.setDefaultHandler("guttermousedown",(function(t){if(r.isFocused()&&0==t.getButton()&&"foldWidgets"!=c.getRegion(t)){var i=t.getDocumentPosition().row,n=r.session.selection;if(t.getShiftKey())n.selectTo(i,0);else{if(2==t.domEvent.detail)return r.selectAll(),t.preventDefault();e.$clickSelection=r.selection.getLineRange(i)}return e.setState("selectByLines"),e.captureMouse(t),t.preventDefault()}})),e.editor.setDefaultHandler("guttermousemove",(function(s){var a=s.domEvent.target||s.domEvent.srcElement;if(n.hasCssClass(a,"ace_fold-widget"))return h();o&&e.$tooltipFollowsMouse&&d(s),i=s,t||(t=setTimeout((function(){t=null,i&&!e.isMousePressed?function(){var t=i.getDocumentPosition().row,n=c.$annotations[t];if(!n)return h();if(t==r.session.getLength()){var s=r.renderer.pixelToScreenCoordinates(0,i.y).row,a=i.$pos;if(s>r.session.documentToScreenRow(a.row,a.column))return h()}if(o!=n)if(o=n.text.join("
    "),l.setHtml(o),l.show(),r._signal("showGutterTooltip",l),r.on("mousewheel",h),e.$tooltipFollowsMouse)d(i);else{var u=i.domEvent.target.getBoundingClientRect(),f=l.getElement().style;f.left=u.right+"px",f.top=u.bottom+"px"}}():h()}),50))})),s.addListener(r.renderer.$gutter,"mouseout",(function(e){i=null,o&&!t&&(t=setTimeout((function(){t=null,h()}),50))}),r),r.on("changeSession",h)}})),ace.define("ace/mouse/mouse_event",["require","exports","module","ace/lib/event","ace/lib/useragent"],(function(e,t,i){"use strict";var n=e("../lib/event"),o=e("../lib/useragent"),s=t.MouseEvent=function(e,t){this.domEvent=e,this.editor=t,this.x=this.clientX=e.clientX,this.y=this.clientY=e.clientY,this.$pos=null,this.$inSelection=null,this.propagationStopped=!1,this.defaultPrevented=!1};(function(){this.stopPropagation=function(){n.stopPropagation(this.domEvent),this.propagationStopped=!0},this.preventDefault=function(){n.preventDefault(this.domEvent),this.defaultPrevented=!0},this.stop=function(){this.stopPropagation(),this.preventDefault()},this.getDocumentPosition=function(){return this.$pos||(this.$pos=this.editor.renderer.screenToTextCoordinates(this.clientX,this.clientY)),this.$pos},this.inSelection=function(){if(null!==this.$inSelection)return this.$inSelection;var e=this.editor.getSelectionRange();if(e.isEmpty())this.$inSelection=!1;else{var t=this.getDocumentPosition();this.$inSelection=e.contains(t.row,t.column)}return this.$inSelection},this.getButton=function(){return n.getButton(this.domEvent)},this.getShiftKey=function(){return this.domEvent.shiftKey},this.getAccelKey=o.isMac?function(){return this.domEvent.metaKey}:function(){return this.domEvent.ctrlKey}}).call(s.prototype)})),ace.define("ace/mouse/dragdrop_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/lib/useragent"],(function(e,t,i){"use strict";var n=e("../lib/dom"),o=e("../lib/event"),s=e("../lib/useragent");function r(e){var t=e.editor,i=n.createElement("img");i.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",s.isOpera&&(i.style.cssText="width:1px;height:1px;position:fixed;top:0;left:0;z-index:2147483647;opacity:0;");["dragWait","dragWaitEnd","startDrag","dragReadyEnd","onMouseDrag"].forEach((function(t){e[t]=this[t]}),this),t.on("mousedown",this.onMouseDown.bind(e));var r,c,l,h,d,u,f,g,p,m,b,v=t.container,w=0;function x(){var e=u;(function(e,i){var n=Date.now(),o=!i||e.row!=i.row,s=!i||e.column!=i.column;!m||o||s?(t.moveCursorToPosition(e),m=n,b={x:c,y:l}):a(b.x,b.y,c,l)>5?m=null:n-m>=200&&(t.renderer.scrollCursorIntoView(),m=null)})(u=t.renderer.screenToTextCoordinates(c,l),e),function(e,i){var n=Date.now(),o=t.renderer.layerConfig.lineHeight,s=t.renderer.layerConfig.characterWidth,r=t.renderer.scroller.getBoundingClientRect(),a={x:{left:c-r.left,right:r.right-c},y:{top:l-r.top,bottom:r.bottom-l}},h=Math.min(a.x.left,a.x.right),d=Math.min(a.y.top,a.y.bottom),u={row:e.row,column:e.column};h/s<=2&&(u.column+=a.x.left=200&&t.renderer.scrollCursorIntoView(u):p=n:p=null}(u,e)}function y(){d=t.selection.toOrientedRange(),r=t.session.addMarker(d,"ace_selection",t.getSelectionStyle()),t.clearSelection(),t.isFocused()&&t.renderer.$cursorLayer.setBlinking(!1),clearInterval(h),x(),h=setInterval(x,20),w=0,o.addListener(document,"mousemove",C)}function $(){clearInterval(h),t.session.removeMarker(r),r=null,t.selection.fromOrientedRange(d),t.isFocused()&&!g&&t.$resetCursorStyle(),d=null,u=null,w=0,p=null,m=null,o.removeListener(document,"mousemove",C)}this.onDragStart=function(e){if(this.cancelDrag||!v.draggable){var n=this;return setTimeout((function(){n.startSelect(),n.captureMouse(e)}),0),e.preventDefault()}d=t.getSelectionRange();var o=e.dataTransfer;o.effectAllowed=t.getReadOnly()?"copy":"copyMove",s.isOpera&&(t.container.appendChild(i),i.scrollTop=0),o.setDragImage&&o.setDragImage(i,0,0),s.isOpera&&t.container.removeChild(i),o.clearData(),o.setData("Text",t.session.getTextRange()),g=!0,this.setState("drag")},this.onDragEnd=function(e){if(v.draggable=!1,g=!1,this.setState(null),!t.getReadOnly()){var i=e.dataTransfer.dropEffect;f||"move"!=i||t.session.remove(t.getSelectionRange()),t.$resetCursorStyle()}this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle("")},this.onDragEnter=function(e){if(!t.getReadOnly()&&k(e.dataTransfer))return c=e.clientX,l=e.clientY,r||y(),w++,e.dataTransfer.dropEffect=f=M(e),o.preventDefault(e)},this.onDragOver=function(e){if(!t.getReadOnly()&&k(e.dataTransfer))return c=e.clientX,l=e.clientY,r||(y(),w++),null!==S&&(S=null),e.dataTransfer.dropEffect=f=M(e),o.preventDefault(e)},this.onDragLeave=function(e){if(--w<=0&&r)return $(),f=null,o.preventDefault(e)},this.onDrop=function(e){if(u){var i=e.dataTransfer;if(g)switch(f){case"move":d=d.contains(u.row,u.column)?{start:u,end:u}:t.moveText(d,u);break;case"copy":d=t.moveText(d,u,!0)}else{var n=i.getData("Text");d={start:u,end:t.session.insert(u,n)},t.focus(),f=null}return $(),o.preventDefault(e)}},o.addListener(v,"dragstart",this.onDragStart.bind(e),t),o.addListener(v,"dragend",this.onDragEnd.bind(e),t),o.addListener(v,"dragenter",this.onDragEnter.bind(e),t),o.addListener(v,"dragover",this.onDragOver.bind(e),t),o.addListener(v,"dragleave",this.onDragLeave.bind(e),t),o.addListener(v,"drop",this.onDrop.bind(e),t);var S=null;function C(){null==S&&(S=setTimeout((function(){null!=S&&r&&$()}),20))}function k(e){var t=e.types;return!t||Array.prototype.some.call(t,(function(e){return"text/plain"==e||"Text"==e}))}function M(e){var t=["copy","copymove","all","uninitialized"],i=s.isMac?e.altKey:e.ctrlKey,n="uninitialized";try{n=e.dataTransfer.effectAllowed.toLowerCase()}catch(e){}var o="none";return i&&t.indexOf(n)>=0?o="copy":["move","copymove","linkmove","all","uninitialized"].indexOf(n)>=0?o="move":t.indexOf(n)>=0&&(o="copy"),o}}function a(e,t,i,n){return Math.sqrt(Math.pow(i-e,2)+Math.pow(n-t,2))}(function(){this.dragWait=function(){Date.now()-this.mousedownEvent.time>this.editor.getDragDelay()&&this.startDrag()},this.dragWaitEnd=function(){this.editor.container.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()),this.selectEnd()},this.dragReadyEnd=function(e){this.editor.$resetCursorStyle(),this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle(""),this.dragWaitEnd()},this.startDrag=function(){this.cancelDrag=!1;var e=this.editor;e.container.draggable=!0,e.renderer.$cursorLayer.setBlinking(!1),e.setStyle("ace_dragging");var t=s.isWin?"default":"move";e.renderer.setCursorStyle(t),this.setState("dragReady")},this.onMouseDrag=function(e){var t=this.editor.container;s.isIE&&"dragReady"==this.state&&(a(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y)>3&&t.dragDrop());"dragWait"===this.state&&(a(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y)>0&&(t.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition())))},this.onMouseDown=function(e){if(this.$dragEnabled){this.mousedownEvent=e;var t=this.editor,i=e.inSelection(),n=e.getButton();if(1===(e.domEvent.detail||1)&&0===n&&i){if(e.editor.inMultiSelectMode&&(e.getAccelKey()||e.getShiftKey()))return;this.mousedownEvent.time=Date.now();var o=e.domEvent.target||e.domEvent.srcElement;if("unselectable"in o&&(o.unselectable="on"),t.getDragDelay()){if(s.isWebKit)this.cancelDrag=!0,t.container.draggable=!0;this.setState("dragWait")}else this.startDrag();this.captureMouse(e,this.onMouseDrag.bind(this)),e.defaultPrevented=!0}}}}).call(r.prototype),t.DragdropHandler=r})),ace.define("ace/mouse/touch_handler",["require","exports","module","ace/mouse/mouse_event","ace/lib/event","ace/lib/dom"],(function(e,t,i){"use strict";var n=e("./mouse_event").MouseEvent,o=e("../lib/event"),s=e("../lib/dom");t.addTouchListeners=function(e,t){var i,r,a,c,l,h,d,u,f,g="scroll",p=0,m=0,b=0,v=0;function w(){var e=window.navigator&&window.navigator.clipboard,i=!1,n=function(n){var o,r,a=n.target.getAttribute("action");if("more"==a||!i)return i=!i,o=t.getCopyText(),r=t.session.getUndoManager().hasUndo(),void f.replaceChild(s.buildDom(i?["span",!o&&["span",{class:"ace_mobile-button",action:"selectall"},"Select All"],o&&["span",{class:"ace_mobile-button",action:"copy"},"Copy"],o&&["span",{class:"ace_mobile-button",action:"cut"},"Cut"],e&&["span",{class:"ace_mobile-button",action:"paste"},"Paste"],r&&["span",{class:"ace_mobile-button",action:"undo"},"Undo"],["span",{class:"ace_mobile-button",action:"find"},"Find"],["span",{class:"ace_mobile-button",action:"openCommandPallete"},"Pallete"]]:["span"]),f.firstChild);"paste"==a?e.readText().then((function(e){t.execCommand(a,e)})):a&&("cut"!=a&&"copy"!=a||(e?e.writeText(t.getCopyText()):document.execCommand("copy")),t.execCommand(a)),f.firstChild.style.display="none",i=!1,"openCommandPallete"!=a&&t.focus()};f=s.buildDom(["div",{class:"ace_mobile-menu",ontouchstart:function(e){g="menu",e.stopPropagation(),e.preventDefault(),t.textInput.focus()},ontouchend:function(e){e.stopPropagation(),e.preventDefault(),n(e)},onclick:n},["span"],["span",{class:"ace_mobile-button",action:"more"},"..."]],t.container)}function x(){f||w();var e=t.selection.cursor,i=t.renderer.textToScreenCoordinates(e.row,e.column),n=t.renderer.textToScreenCoordinates(0,0).pageX,o=t.renderer.scrollLeft,s=t.container.getBoundingClientRect();f.style.top=i.pageY-s.top-3+"px",i.pageX-s.left1)return clearTimeout(l),l=null,a=-1,void(g="zoom");u=t.$mouseHandler.isMousePressed=!0;var s=t.renderer.layerConfig.lineHeight,h=t.renderer.layerConfig.lineHeight,f=e.timeStamp;c=f;var w=o[0],x=w.clientX,y=w.clientY;Math.abs(i-x)+Math.abs(r-y)>s&&(a=-1),i=e.clientX=x,r=e.clientY=y,b=v=0;var S=new n(e,t);if(d=S.getDocumentPosition(),f-a<500&&1==o.length&&!p)m++,e.preventDefault(),e.button=0,function(){l=null,clearTimeout(l),t.selection.moveToPosition(d);var e=m>=2?t.selection.getLineRange(d.row):t.session.getBracketRange(d);e&&!e.isEmpty()?t.selection.setRange(e):t.selection.selectWord(),g="wait"}();else{m=0;var C=t.selection.cursor,k=t.selection.isEmpty()?C:t.selection.anchor,M=t.renderer.$cursorLayer.getPixelPosition(C,!0),A=t.renderer.$cursorLayer.getPixelPosition(k,!0),L=t.renderer.scroller.getBoundingClientRect(),R=t.renderer.layerConfig.offset,_=t.renderer.scrollLeft,E=function(e,t){return(e/=h)*e+(t=t/s-.75)*t};if(e.clientXO?"cursor":"anchor"),g=O<3.5?"anchor":T<3.5?"cursor":"scroll",l=setTimeout($,450)}a=f}),t),o.addListener(e,"touchend",(function(e){u=t.$mouseHandler.isMousePressed=!1,h&&clearInterval(h),"zoom"==g?(g="",p=0):l?(t.selection.moveToPosition(d),p=0,x()):"scroll"==g?(p+=60,h=setInterval((function(){p--<=0&&(clearInterval(h),h=null),Math.abs(b)<.01&&(b=0),Math.abs(v)<.01&&(v=0),p<20&&(b*=.9),p<20&&(v*=.9);var e=t.session.getScrollTop();t.renderer.scrollBy(10*b,10*v),e==t.session.getScrollTop()&&(p=0)}),10),y()):x(),clearTimeout(l),l=null}),t),o.addListener(e,"touchmove",(function(e){l&&(clearTimeout(l),l=null);var o=e.touches;if(!(o.length>1||"zoom"==g)){var s=o[0],a=i-s.clientX,h=r-s.clientY;if("wait"==g){if(!(a*a+h*h>4))return e.preventDefault();g="cursor"}i=s.clientX,r=s.clientY,e.clientX=s.clientX,e.clientY=s.clientY;var d=e.timeStamp,u=d-c;if(c=d,"scroll"==g){var f=new n(e,t);f.speed=1,f.wheelX=a,f.wheelY=h,10*Math.abs(a)1&&(o=i[i.length-2]);var r=c[t+"Path"];return null==r?r=c.basePath:"/"==n&&(t=n=""),r&&"/"!=r.slice(-1)&&(r+="/"),r+t+n+o+this.get("suffix")},t.setModuleUrl=function(e,t){return c.$moduleUrls[e]=t},t.$loading={},t.loadModule=function(i,n){var o,r;Array.isArray(i)&&(r=i[0],i=i[1]);try{o=e(i)}catch(e){}if(o&&!t.$loading[i])return n&&n(o);if(t.$loading[i]||(t.$loading[i]=[]),t.$loading[i].push(n),!(t.$loading[i].length>1)){var a=function(){e([i],(function(e){t._emit("load.module",{name:i,module:e});var n=t.$loading[i];t.$loading[i]=null,n.forEach((function(t){t&&t(e)}))}))};if(!t.get("packaged"))return a();s.loadScript(t.moduleUrl(i,r),a),l()}};var l=function(){c.basePath||c.workerPath||c.modePath||c.themePath||Object.keys(c.$moduleUrls).length||(console.error("Unable to infer path to ace from script src,","use ace.config.set('basePath', 'path') to enable dynamic loading of modes and themes","or with webpack use ace/webpack-resolver"),l=function(){})};function h(o){if(a&&a.document){c.packaged=o||e.packaged||n.packaged||a.define&&i(1267).packaged;for(var s,r={},l="",h=document.currentScript||document._currentScript,d=(h&&h.ownerDocument||document).getElementsByTagName("script"),u=0;u=e){for(s=d+1;s=e;)s++;for(a=d,c=s-1;a=t.length||2!=(c=i[o-1])&&3!=c||2!=(l=t[o+1])&&3!=l?4:(s&&(l=3),l==c?l:4);case 10:return 2==(c=o>0?i[o-1]:5)&&o+10&&2==i[o-1])return 2;if(s)return 4;for(d=o+1,h=t.length;d=1425&&f<=2303||64286==f;if(c=t[d],g&&(1==c||7==c))return 1}return o<1||5==(c=t[o-1])?4:i[o-1];case 5:return s=!1,r=!0,n;case 6:return a=!0,4;case 13:case 14:case 16:case 17:case 15:s=!1;case 18:return 4}}function g(e){var t=e.charCodeAt(0),i=t>>8;return 0==i?t>191?0:h[t]:5==i?/[\u0591-\u05f4]/.test(e)?1:0:6==i?/[\u0610-\u061a\u064b-\u065f\u06d6-\u06e4\u06e7-\u06ed]/.test(e)?12:/[\u0660-\u0669\u066b-\u066c]/.test(e)?3:1642==t?11:/[\u06f0-\u06f9]/.test(e)?2:7:32==i&&t<=8287?d[255&t]:254==i&&t>=65136?7:4}t.L=0,t.R=1,t.EN=2,t.ON_R=3,t.AN=4,t.R_H=5,t.B=6,t.RLE=7,t.DOT="·",t.doBidiReorder=function(e,i,h){if(e.length<2)return{};var d=e.split(""),p=new Array(d.length),m=new Array(d.length),b=[];n=h?1:0,function(e,t,i,h){var d=n?l:c,u=null,p=null,m=null,b=0,v=null,w=-1,x=null,y=null,$=[];if(!h)for(x=0,h=[];x0)if(16==v){for(x=w;x-1){for(x=w;x=0&&8==h[S];S--)t[S]=n}}(d,b,d.length,i);for(var v=0;v7&&i[v]<13||4===i[v]||18===i[v])?b[v]=t.ON_R:v>0&&"ل"===d[v-1]&&/\u0622|\u0623|\u0625|\u0627/.test(d[v])&&(b[v-1]=b[v]=t.R_H,v++);d[d.length-1]===t.DOT&&(b[d.length-1]=t.B),"‫"===d[0]&&(b[0]=t.RLE);for(v=0;v=0&&(e=this.session.$docRowCache[i])}return e},this.getSplitIndex=function(){var e=0,t=this.session.$screenRowCache;if(t.length)for(var i,n=this.session.$getRowCacheIndex(t,this.currentRow);this.currentRow-e>0&&(i=this.session.$getRowCacheIndex(t,this.currentRow-e-1))===n;)n=i,e++;else e=this.currentRow;return e},this.updateRowLine=function(e,t){void 0===e&&(e=this.getDocumentRow());var i=e===this.session.getLength()-1?this.EOF:this.EOL;if(this.wrapIndent=0,this.line=this.session.getLine(e),this.isRtlDir=this.$isRtl||this.line.charAt(0)===this.RLE,this.session.$useWrapMode){var s=this.session.$wrapData[e];s&&(void 0===t&&(t=this.getSplitIndex()),t>0&&s.length?(this.wrapIndent=s.indent,this.wrapOffset=this.wrapIndent*this.charWidths[n.L],this.line=tt?this.session.getOverwrite()?e:e-1:t,o=n.getVisualFromLogicalIdx(i,this.bidiMap),s=this.bidiMap.bidiLevels,r=0;!this.session.getOverwrite()&&e<=t&&s[o]%2!=0&&o++;for(var a=0;at&&s[o]%2==0&&(r+=this.charWidths[s[o]]),this.wrapIndent&&(r+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset),this.isRtlDir&&(r+=this.rtlLineOffset),r},this.getSelections=function(e,t){var i,n=this.bidiMap,o=n.bidiLevels,s=[],r=0,a=Math.min(e,t)-this.wrapIndent,c=Math.max(e,t)-this.wrapIndent,l=!1,h=!1,d=0;this.wrapIndent&&(r+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);for(var u,f=0;f=a&&ui+s/2;){if(i+=s,n===o.length-1){s=0;break}s=this.charWidths[o[++n]]}return n>0&&o[n-1]%2!=0&&o[n]%2==0?(e0&&o[n-1]%2==0&&o[n]%2!=0?t=1+(e>i?this.bidiMap.logicalFromVisual[n]:this.bidiMap.logicalFromVisual[n-1]):this.isRtlDir&&n===o.length-1&&0===s&&o[n-1]%2==0||!this.isRtlDir&&0===n&&o[n]%2!=0?t=1+this.bidiMap.logicalFromVisual[n]:(n>0&&o[n-1]%2!=0&&0!==s&&n--,t=this.bidiMap.logicalFromVisual[n]),0===t&&this.isRtlDir&&t++,t+this.wrapIndent}}).call(r.prototype),t.BidiHandler=r})),ace.define("ace/selection",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter","ace/range"],(function(e,t,i){"use strict";var n=e("./lib/oop"),o=e("./lib/lang"),s=e("./lib/event_emitter").EventEmitter,r=e("./range").Range,a=function(e){this.session=e,this.doc=e.getDocument(),this.clearSelection(),this.cursor=this.lead=this.doc.createAnchor(0,0),this.anchor=this.doc.createAnchor(0,0),this.$silent=!1;var t=this;this.cursor.on("change",(function(e){t.$cursorChanged=!0,t.$silent||t._emit("changeCursor"),t.$isEmpty||t.$silent||t._emit("changeSelection"),t.$keepDesiredColumnOnChange||e.old.column==e.value.column||(t.$desiredColumn=null)})),this.anchor.on("change",(function(){t.$anchorChanged=!0,t.$isEmpty||t.$silent||t._emit("changeSelection")}))};(function(){n.implement(this,s),this.isEmpty=function(){return this.$isEmpty||this.anchor.row==this.lead.row&&this.anchor.column==this.lead.column},this.isMultiLine=function(){return!this.$isEmpty&&this.anchor.row!=this.cursor.row},this.getCursor=function(){return this.lead.getPosition()},this.setSelectionAnchor=function(e,t){this.$isEmpty=!1,this.anchor.setPosition(e,t)},this.getAnchor=this.getSelectionAnchor=function(){return this.$isEmpty?this.getSelectionLead():this.anchor.getPosition()},this.getSelectionLead=function(){return this.lead.getPosition()},this.isBackwards=function(){var e=this.anchor,t=this.lead;return e.row>t.row||e.row==t.row&&e.column>t.column},this.getRange=function(){var e=this.anchor,t=this.lead;return this.$isEmpty?r.fromPoints(t,t):this.isBackwards()?r.fromPoints(t,e):r.fromPoints(e,t)},this.clearSelection=function(){this.$isEmpty||(this.$isEmpty=!0,this._emit("changeSelection"))},this.selectAll=function(){this.$setSelection(0,0,Number.MAX_VALUE,Number.MAX_VALUE)},this.setRange=this.setSelectionRange=function(e,t){var i=t?e.end:e.start,n=t?e.start:e.end;this.$setSelection(i.row,i.column,n.row,n.column)},this.$setSelection=function(e,t,i,n){if(!this.$silent){var o=this.$isEmpty,s=this.inMultiSelectMode;this.$silent=!0,this.$cursorChanged=this.$anchorChanged=!1,this.anchor.setPosition(e,t),this.cursor.setPosition(i,n),this.$isEmpty=!r.comparePoints(this.anchor,this.cursor),this.$silent=!1,this.$cursorChanged&&this._emit("changeCursor"),(this.$cursorChanged||this.$anchorChanged||o!=this.$isEmpty||s)&&this._emit("changeSelection")}},this.$moveSelection=function(e){var t=this.lead;this.$isEmpty&&this.setSelectionAnchor(t.row,t.column),e.call(this)},this.selectTo=function(e,t){this.$moveSelection((function(){this.moveCursorTo(e,t)}))},this.selectToPosition=function(e){this.$moveSelection((function(){this.moveCursorToPosition(e)}))},this.moveTo=function(e,t){this.clearSelection(),this.moveCursorTo(e,t)},this.moveToPosition=function(e){this.clearSelection(),this.moveCursorToPosition(e)},this.selectUp=function(){this.$moveSelection(this.moveCursorUp)},this.selectDown=function(){this.$moveSelection(this.moveCursorDown)},this.selectRight=function(){this.$moveSelection(this.moveCursorRight)},this.selectLeft=function(){this.$moveSelection(this.moveCursorLeft)},this.selectLineStart=function(){this.$moveSelection(this.moveCursorLineStart)},this.selectLineEnd=function(){this.$moveSelection(this.moveCursorLineEnd)},this.selectFileEnd=function(){this.$moveSelection(this.moveCursorFileEnd)},this.selectFileStart=function(){this.$moveSelection(this.moveCursorFileStart)},this.selectWordRight=function(){this.$moveSelection(this.moveCursorWordRight)},this.selectWordLeft=function(){this.$moveSelection(this.moveCursorWordLeft)},this.getWordRange=function(e,t){if(void 0===t){var i=e||this.lead;e=i.row,t=i.column}return this.session.getWordRange(e,t)},this.selectWord=function(){this.setSelectionRange(this.getWordRange())},this.selectAWord=function(){var e=this.getCursor(),t=this.session.getAWordRange(e.row,e.column);this.setSelectionRange(t)},this.getLineRange=function(e,t){var i,n="number"==typeof e?e:this.lead.row,o=this.session.getFoldLine(n);return o?(n=o.start.row,i=o.end.row):i=n,!0===t?new r(n,0,i,this.session.getLine(i).length):new r(n,0,i+1,0)},this.selectLine=function(){this.setSelectionRange(this.getLineRange())},this.moveCursorUp=function(){this.moveCursorBy(-1,0)},this.moveCursorDown=function(){this.moveCursorBy(1,0)},this.wouldMoveIntoSoftTab=function(e,t,i){var n=e.column,o=e.column+t;return i<0&&(n=e.column-t,o=e.column),this.session.isTabStop(e)&&this.doc.getLine(e.row).slice(n,o).split(" ").length-1==t},this.moveCursorLeft=function(){var e,t=this.lead.getPosition();if(e=this.session.getFoldAt(t.row,t.column,-1))this.moveCursorTo(e.start.row,e.start.column);else if(0===t.column)t.row>0&&this.moveCursorTo(t.row-1,this.doc.getLine(t.row-1).length);else{var i=this.session.getTabSize();this.wouldMoveIntoSoftTab(t,i,-1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,-i):this.moveCursorBy(0,-1)}},this.moveCursorRight=function(){var e,t=this.lead.getPosition();if(e=this.session.getFoldAt(t.row,t.column,1))this.moveCursorTo(e.end.row,e.end.column);else if(this.lead.column==this.doc.getLine(this.lead.row).length)this.lead.row0&&(t.column=n)}}this.moveCursorTo(t.row,t.column)},this.moveCursorFileEnd=function(){var e=this.doc.getLength()-1,t=this.doc.getLine(e).length;this.moveCursorTo(e,t)},this.moveCursorFileStart=function(){this.moveCursorTo(0,0)},this.moveCursorLongWordRight=function(){var e=this.lead.row,t=this.lead.column,i=this.doc.getLine(e),n=i.substring(t);this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0;var o=this.session.getFoldAt(e,t,1);if(o)this.moveCursorTo(o.end.row,o.end.column);else{if(this.session.nonTokenRe.exec(n)&&(t+=this.session.nonTokenRe.lastIndex,this.session.nonTokenRe.lastIndex=0,n=i.substring(t)),t>=i.length)return this.moveCursorTo(e,i.length),this.moveCursorRight(),void(e0&&this.moveCursorWordLeft());this.session.tokenRe.exec(s)&&(i-=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(t,i)}},this.$shortWordEndIndex=function(e){var t,i=0,n=/\s/,o=this.session.tokenRe;if(o.lastIndex=0,this.session.tokenRe.exec(e))i=this.session.tokenRe.lastIndex;else{for(;(t=e[i])&&n.test(t);)i++;if(i<1)for(o.lastIndex=0;(t=e[i])&&!o.test(t);)if(o.lastIndex=0,i++,n.test(t)){if(i>2){i--;break}for(;(t=e[i])&&n.test(t);)i++;if(i>2)break}}return o.lastIndex=0,i},this.moveCursorShortWordRight=function(){var e=this.lead.row,t=this.lead.column,i=this.doc.getLine(e),n=i.substring(t),o=this.session.getFoldAt(e,t,1);if(o)return this.moveCursorTo(o.end.row,o.end.column);if(t==i.length){var s=this.doc.getLength();do{e++,n=this.doc.getLine(e)}while(e0&&/^\s*$/.test(n));i=n.length,/\s+$/.test(n)||(n="")}var s=o.stringReverse(n),r=this.$shortWordEndIndex(s);return this.moveCursorTo(t,i-r)},this.moveCursorWordRight=function(){this.session.$selectLongWords?this.moveCursorLongWordRight():this.moveCursorShortWordRight()},this.moveCursorWordLeft=function(){this.session.$selectLongWords?this.moveCursorLongWordLeft():this.moveCursorShortWordLeft()},this.moveCursorBy=function(e,t){var i,n=this.session.documentToScreenPosition(this.lead.row,this.lead.column);if(0===t&&(0!==e&&(this.session.$bidiHandler.isBidiRow(n.row,this.lead.row)?(i=this.session.$bidiHandler.getPosLeft(n.column),n.column=Math.round(i/this.session.$bidiHandler.charWidths[0])):i=n.column*this.session.$bidiHandler.charWidths[0]),this.$desiredColumn?n.column=this.$desiredColumn:this.$desiredColumn=n.column),0!=e&&this.session.lineWidgets&&this.session.lineWidgets[this.lead.row]){var o=this.session.lineWidgets[this.lead.row];e<0?e-=o.rowsAbove||0:e>0&&(e+=o.rowCount-(o.rowsAbove||0))}var s=this.session.screenToDocumentPosition(n.row+e,n.column,i);0!==e&&0===t&&s.row===this.lead.row&&(s.column,this.lead.column),this.moveCursorTo(s.row,s.column+t,0===t)},this.moveCursorToPosition=function(e){this.moveCursorTo(e.row,e.column)},this.moveCursorTo=function(e,t,i){var n=this.session.getFoldAt(e,t,1);n&&(e=n.start.row,t=n.start.column),this.$keepDesiredColumnOnChange=!0;var o=this.session.getLine(e);/[\uDC00-\uDFFF]/.test(o.charAt(t))&&o.charAt(t-1)&&(this.lead.row==e&&this.lead.column==t+1?t-=1:t+=1),this.lead.setPosition(e,t),this.$keepDesiredColumnOnChange=!1,i||(this.$desiredColumn=null)},this.moveCursorToScreen=function(e,t,i){var n=this.session.screenToDocumentPosition(e,t);this.moveCursorTo(n.row,n.column,i)},this.detach=function(){this.lead.detach(),this.anchor.detach(),this.session=this.doc=null},this.fromOrientedRange=function(e){this.setSelectionRange(e,e.cursor==e.start),this.$desiredColumn=e.desiredColumn||this.$desiredColumn},this.toOrientedRange=function(e){var t=this.getRange();return e?(e.start.column=t.start.column,e.start.row=t.start.row,e.end.column=t.end.column,e.end.row=t.end.row):e=t,e.cursor=this.isBackwards()?e.start:e.end,e.desiredColumn=this.$desiredColumn,e},this.getRangeOfMovements=function(e){var t=this.getCursor();try{e(this);var i=this.getCursor();return r.fromPoints(t,i)}catch(e){return r.fromPoints(t,t)}finally{this.moveCursorToPosition(t)}},this.toJSON=function(){if(this.rangeCount)var e=this.ranges.map((function(e){var t=e.clone();return t.isBackwards=e.cursor==e.start,t}));else(e=this.getRange()).isBackwards=this.isBackwards();return e},this.fromJSON=function(e){if(null==e.start){if(this.rangeList&&e.length>1){this.toSingleRange(e[0]);for(var t=e.length;t--;){var i=r.fromPoints(e[t].start,e[t].end);e[t].isBackwards&&(i.cursor=i.start),this.addRange(i,!0)}return}e=e[0]}this.rangeList&&this.toSingleRange(e),this.setSelectionRange(e,e.isBackwards)},this.isEqual=function(e){if((e.length||this.rangeCount)&&e.length!=this.rangeCount)return!1;if(!e.length||!this.ranges)return this.getRange().isEqual(e);for(var t=this.ranges.length;t--;)if(!this.ranges[t].isEqual(e[t]))return!1;return!0}}).call(a.prototype),t.Selection=a})),ace.define("ace/tokenizer",["require","exports","module","ace/config"],(function(e,t,i){"use strict";var n=e("./config"),o=2e3,s=function(e){for(var t in this.states=e,this.regExps={},this.matchMappings={},this.states){for(var i=this.states[t],n=[],o=0,s=this.matchMappings[t]={defaultToken:"text"},r="g",a=[],c=0;c1?this.$applyToken:l.token),d>1&&(/\\\d/.test(l.regex)?h=l.regex.replace(/\\([0-9]+)/g,(function(e,t){return"\\"+(parseInt(t,10)+o+1)})):(d=1,h=this.removeCapturingGroups(l.regex)),l.splitRegex||"string"==typeof l.token||a.push(l)),s[o]=c,o+=d,n.push(h),l.onMatch||(l.onMatch=null)}}n.length||(s[0]=0,n.push("$")),a.forEach((function(e){e.splitRegex=this.createSplitterRegexp(e.regex,r)}),this),this.regExps[t]=new RegExp("("+n.join(")|(")+")|($)",r)}};(function(){this.$setMaxTokenCount=function(e){o=0|e},this.$applyToken=function(e){var t=this.splitRegex.exec(e).slice(1),i=this.token.apply(this,t);if("string"==typeof i)return[{type:i,value:e}];for(var n=[],o=0,s=i.length;oh){var b=e.substring(h,m-p.length);u.type==f?u.value+=b:(u.type&&l.push(u),u={type:f,value:b})}for(var v=0;vo){for(d>2*e.length&&this.reportError("infinite loop with in ace tokenizer",{startState:t,line:e});h1&&i[0]!==n&&i.unshift("#tmp",n),{tokens:l,state:i.length?i:n}},this.reportError=n.reportError}).call(s.prototype),t.Tokenizer=s})),ace.define("ace/mode/text_highlight_rules",["require","exports","module","ace/lib/lang"],(function(e,t,i){"use strict";var n=e("../lib/lang"),o=function(){this.$rules={start:[{token:"empty_line",regex:"^$"},{defaultToken:"text"}]}};(function(){this.addRules=function(e,t){if(t)for(var i in e){for(var n=e[i],o=0;o=this.$rowTokens.length;){if(this.$row+=1,e||(e=this.$session.getLength()),this.$row>=e)return this.$row=e-1,null;this.$rowTokens=this.$session.getTokens(this.$row),this.$tokenIndex=0}return this.$rowTokens[this.$tokenIndex]},this.getCurrentToken=function(){return this.$rowTokens[this.$tokenIndex]},this.getCurrentTokenRow=function(){return this.$row},this.getCurrentTokenColumn=function(){var e=this.$rowTokens,t=this.$tokenIndex,i=e[t].start;if(void 0!==i)return i;for(i=0;t>0;)i+=e[t-=1].value.length;return i},this.getCurrentTokenPosition=function(){return{row:this.$row,column:this.getCurrentTokenColumn()}},this.getCurrentTokenRange=function(){var e=this.$rowTokens[this.$tokenIndex],t=this.getCurrentTokenColumn();return new n(this.$row,t,this.$row,t+e.value.length)}}).call(o.prototype),t.TokenIterator=o})),ace.define("ace/mode/behaviour/cstyle",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/token_iterator","ace/lib/lang"],(function(e,t,i){"use strict";var n,o=e("../../lib/oop"),s=e("../behaviour").Behaviour,r=e("../../token_iterator").TokenIterator,a=e("../../lib/lang"),c=["text","paren.rparen","rparen","paren","punctuation.operator"],l=["text","paren.rparen","rparen","paren","punctuation.operator","comment"],h={},d={'"':'"',"'":"'"},u=function(e){var t=-1;if(e.multiSelect&&(t=e.selection.index,h.rangeCount!=e.multiSelect.rangeCount&&(h={rangeCount:e.multiSelect.rangeCount})),h[t])return n=h[t];n=h[t]={autoInsertedBrackets:0,autoInsertedRow:-1,autoInsertedLineEnd:"",maybeInsertedBrackets:0,maybeInsertedRow:-1,maybeInsertedLineStart:"",maybeInsertedLineEnd:""}},f=function(e,t,i,n){var o=e.end.row-e.start.row;return{text:i+t+n,selection:[0,e.start.column+1,o,e.end.column+(o?0:1)]}},g=function(e){this.add("braces","insertion",(function(t,i,o,s,r){var c=o.getCursorPosition(),l=s.doc.getLine(c.row);if("{"==r){u(o);var h=o.getSelectionRange(),d=s.doc.getTextRange(h);if(""!==d&&"{"!==d&&o.getWrapBehavioursEnabled())return f(h,d,"{","}");if(g.isSaneInsertion(o,s))return/[\]\}\)]/.test(l[c.column])||o.inMultiSelectMode||e&&e.braces?(g.recordAutoInsert(o,s,"}"),{text:"{}",selection:[1,1]}):(g.recordMaybeInsert(o,s,"{"),{text:"{",selection:[1,1]})}else if("}"==r){if(u(o),"}"==l.substring(c.column,c.column+1))if(null!==s.$findOpeningBracket("}",{column:c.column+1,row:c.row})&&g.isAutoInsertedClosing(c,l,r))return g.popAutoInsertedClosing(),{text:"",selection:[1,1]}}else{if("\n"==r||"\r\n"==r){u(o);var p="";if(g.isMaybeInsertedClosing(c,l)&&(p=a.stringRepeat("}",n.maybeInsertedBrackets),g.clearMaybeInsertedClosing()),"}"===l.substring(c.column,c.column+1)){var m=s.findMatchingBracket({row:c.row,column:c.column+1},"}");if(!m)return null;var b=this.$getIndent(s.getLine(m.row))}else{if(!p)return void g.clearMaybeInsertedClosing();b=this.$getIndent(l)}var v=b+s.getTabString();return{text:"\n"+v+"\n"+b+p,selection:[1,v.length,1,v.length]}}g.clearMaybeInsertedClosing()}})),this.add("braces","deletion",(function(e,t,i,o,s){var r=o.doc.getTextRange(s);if(!s.isMultiLine()&&"{"==r){if(u(i),"}"==o.doc.getLine(s.start.row).substring(s.end.column,s.end.column+1))return s.end.column++,s;n.maybeInsertedBrackets--}})),this.add("parens","insertion",(function(e,t,i,n,o){if("("==o){u(i);var s=i.getSelectionRange(),r=n.doc.getTextRange(s);if(""!==r&&i.getWrapBehavioursEnabled())return f(s,r,"(",")");if(g.isSaneInsertion(i,n))return g.recordAutoInsert(i,n,")"),{text:"()",selection:[1,1]}}else if(")"==o){u(i);var a=i.getCursorPosition(),c=n.doc.getLine(a.row);if(")"==c.substring(a.column,a.column+1))if(null!==n.$findOpeningBracket(")",{column:a.column+1,row:a.row})&&g.isAutoInsertedClosing(a,c,o))return g.popAutoInsertedClosing(),{text:"",selection:[1,1]}}})),this.add("parens","deletion",(function(e,t,i,n,o){var s=n.doc.getTextRange(o);if(!o.isMultiLine()&&"("==s&&(u(i),")"==n.doc.getLine(o.start.row).substring(o.start.column+1,o.start.column+2)))return o.end.column++,o})),this.add("brackets","insertion",(function(e,t,i,n,o){if("["==o){u(i);var s=i.getSelectionRange(),r=n.doc.getTextRange(s);if(""!==r&&i.getWrapBehavioursEnabled())return f(s,r,"[","]");if(g.isSaneInsertion(i,n))return g.recordAutoInsert(i,n,"]"),{text:"[]",selection:[1,1]}}else if("]"==o){u(i);var a=i.getCursorPosition(),c=n.doc.getLine(a.row);if("]"==c.substring(a.column,a.column+1))if(null!==n.$findOpeningBracket("]",{column:a.column+1,row:a.row})&&g.isAutoInsertedClosing(a,c,o))return g.popAutoInsertedClosing(),{text:"",selection:[1,1]}}})),this.add("brackets","deletion",(function(e,t,i,n,o){var s=n.doc.getTextRange(o);if(!o.isMultiLine()&&"["==s&&(u(i),"]"==n.doc.getLine(o.start.row).substring(o.start.column+1,o.start.column+2)))return o.end.column++,o})),this.add("string_dquotes","insertion",(function(e,t,i,n,o){var s=n.$mode.$quotes||d;if(1==o.length&&s[o]){if(this.lineCommentStart&&-1!=this.lineCommentStart.indexOf(o))return;u(i);var r=o,a=i.getSelectionRange(),c=n.doc.getTextRange(a);if(!(""===c||1==c.length&&s[c])&&i.getWrapBehavioursEnabled())return f(a,c,r,r);if(!c){var l=i.getCursorPosition(),h=n.doc.getLine(l.row),g=h.substring(l.column-1,l.column),p=h.substring(l.column,l.column+1),m=n.getTokenAt(l.row,l.column),b=n.getTokenAt(l.row,l.column+1);if("\\"==g&&m&&/escape/.test(m.type))return null;var v,w=m&&/string|escape/.test(m.type),x=!b||/string|escape/.test(b.type);if(p==r)(v=w!==x)&&/string\.end/.test(b.type)&&(v=!1);else{if(w&&!x)return null;if(w&&x)return null;var y=n.$mode.tokenRe;y.lastIndex=0;var $=y.test(g);y.lastIndex=0;var S=y.test(g);if($||S)return null;if(p&&!/[\s;,.})\]\\]/.test(p))return null;var C=h[l.column-2];if(g==r&&(C==r||y.test(C)))return null;v=!0}return{text:v?r+r:"",selection:[1,1]}}}})),this.add("string_dquotes","deletion",(function(e,t,i,n,o){var s=n.$mode.$quotes||d,r=n.doc.getTextRange(o);if(!o.isMultiLine()&&s.hasOwnProperty(r)&&(u(i),n.doc.getLine(o.start.row).substring(o.start.column+1,o.start.column+2)==r))return o.end.column++,o}))};g.isSaneInsertion=function(e,t){var i=e.getCursorPosition(),n=new r(t,i.row,i.column);if(!this.$matchTokenType(n.getCurrentToken()||"text",c)){if(/[)}\]]/.test(e.session.getLine(i.row)[i.column]))return!0;var o=new r(t,i.row,i.column+1);if(!this.$matchTokenType(o.getCurrentToken()||"text",c))return!1}return n.stepForward(),n.getCurrentTokenRow()!==i.row||this.$matchTokenType(n.getCurrentToken()||"text",l)},g.$matchTokenType=function(e,t){return t.indexOf(e.type||e)>-1},g.recordAutoInsert=function(e,t,i){var o=e.getCursorPosition(),s=t.doc.getLine(o.row);this.isAutoInsertedClosing(o,s,n.autoInsertedLineEnd[0])||(n.autoInsertedBrackets=0),n.autoInsertedRow=o.row,n.autoInsertedLineEnd=i+s.substr(o.column),n.autoInsertedBrackets++},g.recordMaybeInsert=function(e,t,i){var o=e.getCursorPosition(),s=t.doc.getLine(o.row);this.isMaybeInsertedClosing(o,s)||(n.maybeInsertedBrackets=0),n.maybeInsertedRow=o.row,n.maybeInsertedLineStart=s.substr(0,o.column)+i,n.maybeInsertedLineEnd=s.substr(o.column),n.maybeInsertedBrackets++},g.isAutoInsertedClosing=function(e,t,i){return n.autoInsertedBrackets>0&&e.row===n.autoInsertedRow&&i===n.autoInsertedLineEnd[0]&&t.substr(e.column)===n.autoInsertedLineEnd},g.isMaybeInsertedClosing=function(e,t){return n.maybeInsertedBrackets>0&&e.row===n.maybeInsertedRow&&t.substr(e.column)===n.maybeInsertedLineEnd&&t.substr(0,e.column)==n.maybeInsertedLineStart},g.popAutoInsertedClosing=function(){n.autoInsertedLineEnd=n.autoInsertedLineEnd.substr(1),n.autoInsertedBrackets--},g.clearMaybeInsertedClosing=function(){n&&(n.maybeInsertedBrackets=0,n.maybeInsertedRow=-1)},o.inherits(g,s),t.CstyleBehaviour=g})),ace.define("ace/unicode",["require","exports","module"],(function(e,t,i){"use strict";for(var n=[48,9,8,25,5,0,2,25,48,0,11,0,5,0,6,22,2,30,2,457,5,11,15,4,8,0,2,0,18,116,2,1,3,3,9,0,2,2,2,0,2,19,2,82,2,138,2,4,3,155,12,37,3,0,8,38,10,44,2,0,2,1,2,1,2,0,9,26,6,2,30,10,7,61,2,9,5,101,2,7,3,9,2,18,3,0,17,58,3,100,15,53,5,0,6,45,211,57,3,18,2,5,3,11,3,9,2,1,7,6,2,2,2,7,3,1,3,21,2,6,2,0,4,3,3,8,3,1,3,3,9,0,5,1,2,4,3,11,16,2,2,5,5,1,3,21,2,6,2,1,2,1,2,1,3,0,2,4,5,1,3,2,4,0,8,3,2,0,8,15,12,2,2,8,2,2,2,21,2,6,2,1,2,4,3,9,2,2,2,2,3,0,16,3,3,9,18,2,2,7,3,1,3,21,2,6,2,1,2,4,3,8,3,1,3,2,9,1,5,1,2,4,3,9,2,0,17,1,2,5,4,2,2,3,4,1,2,0,2,1,4,1,4,2,4,11,5,4,4,2,2,3,3,0,7,0,15,9,18,2,2,7,2,2,2,22,2,9,2,4,4,7,2,2,2,3,8,1,2,1,7,3,3,9,19,1,2,7,2,2,2,22,2,9,2,4,3,8,2,2,2,3,8,1,8,0,2,3,3,9,19,1,2,7,2,2,2,22,2,15,4,7,2,2,2,3,10,0,9,3,3,9,11,5,3,1,2,17,4,23,2,8,2,0,3,6,4,0,5,5,2,0,2,7,19,1,14,57,6,14,2,9,40,1,2,0,3,1,2,0,3,0,7,3,2,6,2,2,2,0,2,0,3,1,2,12,2,2,3,4,2,0,2,5,3,9,3,1,35,0,24,1,7,9,12,0,2,0,2,0,5,9,2,35,5,19,2,5,5,7,2,35,10,0,58,73,7,77,3,37,11,42,2,0,4,328,2,3,3,6,2,0,2,3,3,40,2,3,3,32,2,3,3,6,2,0,2,3,3,14,2,56,2,3,3,66,5,0,33,15,17,84,13,619,3,16,2,25,6,74,22,12,2,6,12,20,12,19,13,12,2,2,2,1,13,51,3,29,4,0,5,1,3,9,34,2,3,9,7,87,9,42,6,69,11,28,4,11,5,11,11,39,3,4,12,43,5,25,7,10,38,27,5,62,2,28,3,10,7,9,14,0,89,75,5,9,18,8,13,42,4,11,71,55,9,9,4,48,83,2,2,30,14,230,23,280,3,5,3,37,3,5,3,7,2,0,2,0,2,0,2,30,3,52,2,6,2,0,4,2,2,6,4,3,3,5,5,12,6,2,2,6,67,1,20,0,29,0,14,0,17,4,60,12,5,0,4,11,18,0,5,0,3,9,2,0,4,4,7,0,2,0,2,0,2,3,2,10,3,3,6,4,5,0,53,1,2684,46,2,46,2,132,7,6,15,37,11,53,10,0,17,22,10,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,31,48,0,470,1,36,5,2,4,6,1,5,85,3,1,3,2,2,89,2,3,6,40,4,93,18,23,57,15,513,6581,75,20939,53,1164,68,45,3,268,4,27,21,31,3,13,13,1,2,24,9,69,11,1,38,8,3,102,3,1,111,44,25,51,13,68,12,9,7,23,4,0,5,45,3,35,13,28,4,64,15,10,39,54,10,13,3,9,7,22,4,1,5,66,25,2,227,42,2,1,3,9,7,11171,13,22,5,48,8453,301,3,61,3,105,39,6,13,4,6,11,2,12,2,4,2,0,2,1,2,1,2,107,34,362,19,63,3,53,41,11,5,15,17,6,13,1,25,2,33,4,2,134,20,9,8,25,5,0,2,25,12,88,4,5,3,5,3,5,3,2],o=0,s=[],r=0;r2?n%l!=l-1:n%l==0})}else{if(!this.blockComment)return!1;var f=this.blockComment.start,g=this.blockComment.end,p=new RegExp("^(\\s*)(?:"+c.escapeRegExp(f)+")"),m=new RegExp("(?:"+c.escapeRegExp(g)+")\\s*$"),b=function(e,t){w(e,t)||s&&!/\S/.test(e)||(o.insertInLine({row:t,column:e.length},g),o.insertInLine({row:t,column:a},f))},v=function(e,t){var i;(i=e.match(m))&&o.removeInLine(t,e.length-i[0].length,e.length),(i=e.match(p))&&o.removeInLine(t,i[1].length,i[0].length)},w=function(e,i){if(p.test(e))return!0;for(var n=t.getTokens(i),o=0;oe.length&&(y=e.length)})),a==1/0&&(a=y,s=!1,r=!1),h&&a%l!=0&&(a=Math.floor(a/l)*l),x(r?v:b)},this.toggleBlockComment=function(e,t,i,n){var o=this.blockComment;if(o){!o.start&&o[0]&&(o=o[0]);var s,r,a=(p=new l(t,n.row,n.column)).getCurrentToken(),c=(t.selection,t.selection.toOrientedRange());if(a&&/comment/.test(a.type)){for(var d,u;a&&/comment/.test(a.type);){if(-1!=(m=a.value.indexOf(o.start))){var f=p.getCurrentTokenRow(),g=p.getCurrentTokenColumn()+m;d=new h(f,g,f,g+o.start.length);break}a=p.stepBackward()}var p;for(a=(p=new l(t,n.row,n.column)).getCurrentToken();a&&/comment/.test(a.type);){var m;if(-1!=(m=a.value.indexOf(o.end))){f=p.getCurrentTokenRow(),g=p.getCurrentTokenColumn()+m;u=new h(f,g,f,g+o.end.length);break}a=p.stepForward()}u&&t.remove(u),d&&(t.remove(d),s=d.start.row,r=-o.start.length)}else r=o.start.length,s=i.start.row,t.insert(i.end,o.end),t.insert(i.start,o.start);c.start.row==s&&(c.start.column+=r),c.end.row==s&&(c.end.column+=r),t.selection.fromOrientedRange(c)}},this.getNextLineIndent=function(e,t,i){return this.$getIndent(t)},this.checkOutdent=function(e,t,i){return!1},this.autoOutdent=function(e,t,i){},this.$getIndent=function(e){return e.match(/^\s*/)[0]},this.createWorker=function(e){return null},this.createModeDelegates=function(e){for(var t in this.$embeds=[],this.$modes={},e)if(e[t]){var i=e[t],o=i.prototype.$id,s=n.$modes[o];s||(n.$modes[o]=s=new i),n.$modes[t]||(n.$modes[t]=s),this.$embeds.push(t),this.$modes[t]=s}var r=["toggleBlockComment","toggleCommentLines","getNextLineIndent","checkOutdent","autoOutdent","transformAction","getCompletions"];for(t=0;tthis.row)){var i=function(t,i,n){var o="insert"==t.action,s=(o?1:-1)*(t.end.row-t.start.row),r=(o?1:-1)*(t.end.column-t.start.column),a=t.start,c=o?a:t.end;if(e(i,a,n))return{row:i.row,column:i.column};if(e(c,i,!n))return{row:i.row+s,column:i.column+(i.row==c.row?r:0)};return{row:a.row,column:a.column}}(t,{row:this.row,column:this.column},this.$insertRight);this.setPosition(i.row,i.column,!0)}},this.setPosition=function(e,t,i){var n;if(n=i?{row:e,column:t}:this.$clipPositionToDocument(e,t),this.row!=n.row||this.column!=n.column){var o={row:this.row,column:this.column};this.row=n.row,this.column=n.column,this._signal("change",{old:o,value:n})}},this.detach=function(){this.document.off("change",this.$onChange)},this.attach=function(e){this.document=e||this.document,this.document.on("change",this.$onChange)},this.$clipPositionToDocument=function(e,t){var i={};return e>=this.document.getLength()?(i.row=Math.max(0,this.document.getLength()-1),i.column=this.document.getLine(i.row).length):e<0?(i.row=0,i.column=0):(i.row=e,i.column=Math.min(this.document.getLine(i.row).length,Math.max(0,t))),t<0&&(i.column=0),i}}).call(s.prototype)})),ace.define("ace/document",["require","exports","module","ace/lib/oop","ace/apply_delta","ace/lib/event_emitter","ace/range","ace/anchor"],(function(e,t,i){"use strict";var n=e("./lib/oop"),o=e("./apply_delta").applyDelta,s=e("./lib/event_emitter").EventEmitter,r=e("./range").Range,a=e("./anchor").Anchor,c=function(e){this.$lines=[""],0===e.length?this.$lines=[""]:Array.isArray(e)?this.insertMergedLines({row:0,column:0},e):this.insert({row:0,column:0},e)};(function(){n.implement(this,s),this.setValue=function(e){var t=this.getLength()-1;this.remove(new r(0,0,t,this.getLine(t).length)),this.insert({row:0,column:0},e)},this.getValue=function(){return this.getAllLines().join(this.getNewLineCharacter())},this.createAnchor=function(e,t){return new a(this,e,t)},0==="aaa".split(/a/).length?this.$split=function(e){return e.replace(/\r\n|\r/g,"\n").split("\n")}:this.$split=function(e){return e.split(/\r\n|\r|\n/)},this.$detectNewLine=function(e){var t=e.match(/^.*?(\r\n|\r|\n)/m);this.$autoNewLine=t?t[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(e){this.$newLineMode!==e&&(this.$newLineMode=e,this._signal("changeNewLineMode"))},this.getNewLineMode=function(){return this.$newLineMode},this.isNewLine=function(e){return"\r\n"==e||"\r"==e||"\n"==e},this.getLine=function(e){return this.$lines[e]||""},this.getLines=function(e,t){return this.$lines.slice(e,t+1)},this.getAllLines=function(){return this.getLines(0,this.getLength())},this.getLength=function(){return this.$lines.length},this.getTextRange=function(e){return this.getLinesForRange(e).join(this.getNewLineCharacter())},this.getLinesForRange=function(e){var t;if(e.start.row===e.end.row)t=[this.getLine(e.start.row).substring(e.start.column,e.end.column)];else{(t=this.getLines(e.start.row,e.end.row))[0]=(t[0]||"").substring(e.start.column);var i=t.length-1;e.end.row-e.start.row==i&&(t[i]=t[i].substring(0,e.end.column))}return t},this.insertLines=function(e,t){return console.warn("Use of document.insertLines is deprecated. Use the insertFullLines method instead."),this.insertFullLines(e,t)},this.removeLines=function(e,t){return console.warn("Use of document.removeLines is deprecated. Use the removeFullLines method instead."),this.removeFullLines(e,t)},this.insertNewLine=function(e){return console.warn("Use of document.insertNewLine is deprecated. Use insertMergedLines(position, ['', '']) instead."),this.insertMergedLines(e,["",""])},this.insert=function(e,t){return this.getLength()<=1&&this.$detectNewLine(t),this.insertMergedLines(e,this.$split(t))},this.insertInLine=function(e,t){var i=this.clippedPos(e.row,e.column),n=this.pos(e.row,e.column+t.length);return this.applyDelta({start:i,end:n,action:"insert",lines:[t]},!0),this.clonePos(n)},this.clippedPos=function(e,t){var i=this.getLength();void 0===e?e=i:e<0?e=0:e>=i&&(e=i-1,t=void 0);var n=this.getLine(e);return null==t&&(t=n.length),{row:e,column:t=Math.min(Math.max(t,0),n.length)}},this.clonePos=function(e){return{row:e.row,column:e.column}},this.pos=function(e,t){return{row:e,column:t}},this.$clipPosition=function(e){var t=this.getLength();return e.row>=t?(e.row=Math.max(0,t-1),e.column=this.getLine(t-1).length):(e.row=Math.max(0,e.row),e.column=Math.min(Math.max(e.column,0),this.getLine(e.row).length)),e},this.insertFullLines=function(e,t){var i=0;(e=Math.min(Math.max(e,0),this.getLength()))0,n=t=0&&this.applyDelta({start:this.pos(e,this.getLine(e).length),end:this.pos(e+1,0),action:"remove",lines:["",""]})},this.replace=function(e,t){return e instanceof r||(e=r.fromPoints(e.start,e.end)),0===t.length&&e.isEmpty()?e.start:t==this.getTextRange(e)?e.end:(this.remove(e),t?this.insert(e.start,t):e.start)},this.applyDeltas=function(e){for(var t=0;t=0;t--)this.revertDelta(e[t])},this.applyDelta=function(e,t){var i="insert"==e.action;(i?e.lines.length<=1&&!e.lines[0]:!r.comparePoints(e.start,e.end))||(i&&e.lines.length>2e4?this.$splitAndapplyLargeDelta(e,2e4):(o(this.$lines,e,t),this._signal("change",e)))},this.$safeApplyDelta=function(e){var t=this.$lines.length;("remove"==e.action&&e.start.row20){i.running=setTimeout(i.$worker,20);break}}i.currentLine=t,-1==n&&(n=t),s<=n&&i.fireUpdateEvent(s,n)}}};(function(){n.implement(this,o),this.setTokenizer=function(e){this.tokenizer=e,this.lines=[],this.states=[],this.start(0)},this.setDocument=function(e){this.doc=e,this.lines=[],this.states=[],this.stop()},this.fireUpdateEvent=function(e,t){var i={first:e,last:t};this._signal("update",{data:i})},this.start=function(e){this.currentLine=Math.min(e||0,this.currentLine,this.doc.getLength()),this.lines.splice(this.currentLine,this.lines.length),this.states.splice(this.currentLine,this.states.length),this.stop(),this.running=setTimeout(this.$worker,700)},this.scheduleStart=function(){this.running||(this.running=setTimeout(this.$worker,700))},this.$updateOnChange=function(e){var t=e.start.row,i=e.end.row-t;if(0===i)this.lines[t]=null;else if("remove"==e.action)this.lines.splice(t,i+1,null),this.states.splice(t,i+1,null);else{var n=Array(i+1);n.unshift(t,1),this.lines.splice.apply(this.lines,n),this.states.splice.apply(this.states,n)}this.currentLine=Math.min(t,this.currentLine,this.doc.getLength()),this.stop()},this.stop=function(){this.running&&clearTimeout(this.running),this.running=!1},this.getTokens=function(e){return this.lines[e]||this.$tokenizeRow(e)},this.getState=function(e){return this.currentLine==e&&this.$tokenizeRow(e),this.states[e]||"start"},this.$tokenizeRow=function(e){var t=this.doc.getLine(e),i=this.states[e-1],n=this.tokenizer.getLineTokens(t,i,e);return this.states[e]+""!=n.state+""?(this.states[e]=n.state,this.lines[e+1]=null,this.currentLine>e+1&&(this.currentLine=e+1)):this.currentLine==e&&(this.currentLine=e+1),this.lines[e]=n.tokens}}).call(s.prototype),t.BackgroundTokenizer=s})),ace.define("ace/search_highlight",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/range"],(function(e,t,i){"use strict";var n=e("./lib/lang"),o=(e("./lib/oop"),e("./range").Range),s=function(e,t,i){this.setRegexp(e),this.clazz=t,this.type=i||"text"};(function(){this.MAX_RANGES=500,this.setRegexp=function(e){this.regExp+""!=e+""&&(this.regExp=e,this.cache=[])},this.update=function(e,t,i,s){if(this.regExp)for(var r=s.firstRow,a=s.lastRow,c=r;c<=a;c++){var l=this.cache[c];null==l&&((l=n.getMatchOffsets(i.getLine(c),this.regExp)).length>this.MAX_RANGES&&(l=l.slice(0,this.MAX_RANGES)),l=l.map((function(e){return new o(c,e.offset,c,e.offset+e.length)})),this.cache[c]=l.length?l:"");for(var h=l.length;h--;)t.drawSingleLineMarker(e,l[h].toScreenRange(i),this.clazz,s)}}}).call(s.prototype),t.SearchHighlight=s})),ace.define("ace/edit_session/fold_line",["require","exports","module","ace/range"],(function(e,t,i){"use strict";var n=e("../range").Range;function o(e,t){this.foldData=e,Array.isArray(t)?this.folds=t:t=this.folds=[t];var i=t[t.length-1];this.range=new n(t[0].start.row,t[0].start.column,i.end.row,i.end.column),this.start=this.range.start,this.end=this.range.end,this.folds.forEach((function(e){e.setFoldLine(this)}),this)}(function(){this.shiftRow=function(e){this.start.row+=e,this.end.row+=e,this.folds.forEach((function(t){t.start.row+=e,t.end.row+=e}))},this.addFold=function(e){if(e.sameRow){if(e.start.rowthis.endRow)throw new Error("Can't add a fold to this FoldLine as it has no connection");this.folds.push(e),this.folds.sort((function(e,t){return-e.range.compareEnd(t.start.row,t.start.column)})),this.range.compareEnd(e.start.row,e.start.column)>0?(this.end.row=e.end.row,this.end.column=e.end.column):this.range.compareStart(e.end.row,e.end.column)<0&&(this.start.row=e.start.row,this.start.column=e.start.column)}else if(e.start.row==this.end.row)this.folds.push(e),this.end.row=e.end.row,this.end.column=e.end.column;else{if(e.end.row!=this.start.row)throw new Error("Trying to add fold to FoldRow that doesn't have a matching row");this.folds.unshift(e),this.start.row=e.start.row,this.start.column=e.start.column}e.foldLine=this},this.containsRow=function(e){return e>=this.start.row&&e<=this.end.row},this.walk=function(e,t,i){var n,o,s=0,r=this.folds,a=!0;null==t&&(t=this.end.row,i=this.end.column);for(var c=0;c0)){var c=n(e,r.start);return 0===a?t&&0!==c?-s-2:s:c>0||0===c&&!t?s:-s-1}}return-s-1},this.add=function(e){var t=!e.isEmpty(),i=this.pointIndex(e.start,t);i<0&&(i=-i-1);var n=this.pointIndex(e.end,t,i);return n<0?n=-n-1:n++,this.ranges.splice(i,n-i,e)},this.addList=function(e){for(var t=[],i=e.length;i--;)t.push.apply(t,this.add(e[i]));return t},this.substractPoint=function(e){var t=this.pointIndex(e);if(t>=0)return this.ranges.splice(t,1)},this.merge=function(){for(var e,t=[],i=this.ranges,o=(i=i.sort((function(e,t){return n(e.start,t.start)})))[0],s=1;s=0},this.containsPoint=function(e){return this.pointIndex(e)>=0},this.rangeAtPoint=function(e){var t=this.pointIndex(e);if(t>=0)return this.ranges[t]},this.clipRows=function(e,t){var i=this.ranges;if(i[0].start.row>t||i[i.length-1].start.row=n)break}if("insert"==e.action)for(var c=o-n,l=-t.column+i.column;rn)break;if(h.start.row==n&&h.start.column>=t.column&&(h.start.column==t.column&&this.$bias<=0||(h.start.column+=l,h.start.row+=c)),h.end.row==n&&h.end.column>=t.column){if(h.end.column==t.column&&this.$bias<0)continue;h.end.column==t.column&&l>0&&rh.start.column&&h.end.column==s[r+1].start.column&&(h.end.column-=l),h.end.column+=l,h.end.row+=c}}else for(c=n-o,l=t.column-i.column;ro)break;h.end.rowt.column)&&(h.end.column=t.column,h.end.row=t.row):(h.end.column+=l,h.end.row+=c):h.end.row>o&&(h.end.row+=c),h.start.rowt.column)&&(h.start.column=t.column,h.start.row=t.row):(h.start.column+=l,h.start.row+=c):h.start.row>o&&(h.start.row+=c)}if(0!=c&&r=e)return o;if(o.end.row>e)return null}return null},this.getNextFoldLine=function(e,t){var i=this.$foldData,n=0;for(t&&(n=i.indexOf(t)),-1==n&&(n=0);n=e)return o}return null},this.getFoldedRowCount=function(e,t){for(var i=this.$foldData,n=t-e+1,o=0;o=t){a=e?n-=t-a:n=0);break}r>=e&&(n-=a>=e?r-a:r-e+1)}return n},this.$addFoldLine=function(e){return this.$foldData.push(e),this.$foldData.sort((function(e,t){return e.start.row-t.start.row})),e},this.addFold=function(e,t){var i,n=this.$foldData,r=!1;e instanceof s?i=e:(i=new s(t,e)).collapseChildren=t.collapseChildren,this.$clipRangeToDocument(i.range);var a=i.start.row,c=i.start.column,l=i.end.row,h=i.end.column,d=this.getFoldAt(a,c,1),u=this.getFoldAt(l,h,-1);if(d&&u==d)return d.addSubFold(i);d&&!d.range.isStart(a,c)&&this.removeFold(d),u&&!u.range.isEnd(l,h)&&this.removeFold(u);var f=this.getFoldsInRange(i.range);f.length>0&&(this.removeFolds(f),i.collapseChildren||f.forEach((function(e){i.addSubFold(e)})));for(var g=0;g0&&this.foldAll(e.start.row+1,e.end.row,e.collapseChildren-1),e.subFolds=[]},this.expandFolds=function(e){e.forEach((function(e){this.expandFold(e)}),this)},this.unfold=function(e,t){var i,o;if(null==e?(i=new n(0,0,this.getLength(),0),null==t&&(t=!0)):i="number"==typeof e?new n(e,0,e,this.getLine(e).length):"row"in e?n.fromPoints(e,e):e,o=this.getFoldsInRangeList(i),0!=t?this.removeFolds(o):this.expandFolds(o),o.length)return o},this.isRowFolded=function(e,t){return!!this.getFoldLine(e,t)},this.getRowFoldEnd=function(e,t){var i=this.getFoldLine(e,t);return i?i.end.row:e},this.getRowFoldStart=function(e,t){var i=this.getFoldLine(e,t);return i?i.start.row:e},this.getFoldDisplayLine=function(e,t,i,n,o){null==n&&(n=e.start.row),null==o&&(o=0),null==t&&(t=e.end.row),null==i&&(i=this.getLine(t).length);var s=this.doc,r="";return e.walk((function(e,t,i,a){if(!(th)break}while(s&&c.test(s.type));s=o.stepBackward()}else s=o.getCurrentToken();return l.end.row=o.getCurrentTokenRow(),l.end.column=o.getCurrentTokenColumn()+s.value.length-2,l}},this.foldAll=function(e,t,i,n){null==i&&(i=1e5);var o=this.foldWidgets;if(o){t=t||this.getLength();for(var s=e=e||0;s=e&&(s=r.end.row,r.collapseChildren=i,this.addFold("...",r))}}},this.foldToLevel=function(e){for(this.foldAll();e-- >0;)this.unfold(null,!1)},this.foldAllComments=function(){var e=this;this.foldAll(null,null,null,(function(t){for(var i=e.getTokens(t),n=0;n=0;){var s=i[o];if(null==s&&(s=i[o]=this.getFoldWidget(o)),"start"==s){var r=this.getFoldWidgetRange(o);if(n||(n=r),r&&r.end.row>=e)break}o--}return{range:-1!==o&&r,firstRange:n}},this.onFoldWidgetClick=function(e,t){var i={children:(t=t.domEvent).shiftKey,all:t.ctrlKey||t.metaKey,siblings:t.altKey};if(!this.$toggleFoldWidget(e,i)){var n=t.target||t.srcElement;n&&/ace_fold-widget/.test(n.className)&&(n.className+=" ace_invalid")}},this.$toggleFoldWidget=function(e,t){if(this.getFoldWidget){var i=this.getFoldWidget(e),n=this.getLine(e),o="end"===i?-1:1,s=this.getFoldAt(e,-1===o?0:n.length,o);if(s)return t.children||t.all?this.removeFold(s):this.expandFold(s),s;var r=this.getFoldWidgetRange(e,!0);if(r&&!r.isMultiLine()&&(s=this.getFoldAt(r.start.row,r.start.column,1))&&r.isEqual(s.range))return this.removeFold(s),s;if(t.siblings){var a=this.getParentFoldRangeData(e);if(a.range)var c=a.range.start.row+1,l=a.range.end.row;this.foldAll(c,l,t.all?1e4:0)}else t.children?(l=r?r.end.row:this.getLength(),this.foldAll(e+1,l,t.all?1e4:0)):r&&(t.all&&(r.collapseChildren=1e4),this.addFold("...",r));return r}},this.toggleFoldWidget=function(e){var t=this.selection.getCursor().row;t=this.getRowFoldStart(t);var i=this.$toggleFoldWidget(t,{});if(!i){var n=this.getParentFoldRangeData(t,!0);if(i=n.range||n.firstRange){t=i.start.row;var o=this.getFoldAt(t,this.getLine(t).length,1);o?this.removeFold(o):this.addFold("...",i)}}},this.updateFoldWidgets=function(e){var t=e.start.row,i=e.end.row-t;if(0===i)this.foldWidgets[t]=null;else if("remove"==e.action)this.foldWidgets.splice(t,i+1,null);else{var n=Array(i+1);n.unshift(t,1),this.foldWidgets.splice.apply(this.foldWidgets,n)}},this.tokenizerUpdateFoldWidgets=function(e){var t=e.data;t.first!=t.last&&this.foldWidgets.length>t.first&&this.foldWidgets.splice(t.first,this.foldWidgets.length)}}})),ace.define("ace/edit_session/bracket_match",["require","exports","module","ace/token_iterator","ace/range"],(function(e,t,i){"use strict";var n=e("../token_iterator").TokenIterator,o=e("../range").Range;t.BracketMatch=function(){this.findMatchingBracket=function(e,t){if(0==e.column)return null;var i=t||this.getLine(e.row).charAt(e.column-1);if(""==i)return null;var n=i.match(/([\(\[\{])|([\)\]\}])/);return n?n[1]?this.$findClosingBracket(n[1],e):this.$findOpeningBracket(n[2],e):null},this.getBracketRange=function(e){var t,i=this.getLine(e.row),n=!0,s=i.charAt(e.column-1),r=s&&s.match(/([\(\[\{])|([\)\]\}])/);if(r||(s=i.charAt(e.column),e={row:e.row,column:e.column+1},r=s&&s.match(/([\(\[\{])|([\)\]\}])/),n=!1),!r)return null;if(r[1]){if(!(a=this.$findClosingBracket(r[1],e)))return null;t=o.fromPoints(e,a),n||(t.end.column++,t.start.column--),t.cursor=t.end}else{var a;if(!(a=this.$findOpeningBracket(r[2],e)))return null;t=o.fromPoints(a,e),n||(t.start.column++,t.end.column--),t.cursor=t.start}return t},this.getMatchingBracketRanges=function(e){var t=this.getLine(e.row),i=t.charAt(e.column-1),n=i&&i.match(/([\(\[\{])|([\)\]\}])/);if(n||(i=t.charAt(e.column),e={row:e.row,column:e.column+1},n=i&&i.match(/([\(\[\{])|([\)\]\}])/)),!n)return null;var s=new o(e.row,e.column-1,e.row,e.column),r=n[1]?this.$findClosingBracket(n[1],e):this.$findOpeningBracket(n[2],e);return r?[s,new o(r.row,r.column,r.row,r.column+1)]:[s]},this.$brackets={")":"(","(":")","]":"[","[":"]","{":"}","}":"{","<":">",">":"<"},this.$findOpeningBracket=function(e,t,i){var o=this.$brackets[e],s=1,r=new n(this,t.row,t.column),a=r.getCurrentToken();if(a||(a=r.stepForward()),a){i||(i=new RegExp("(\\.?"+a.type.replace(".","\\.").replace("rparen",".paren").replace(/\b(?:end)\b/,"(?:start|begin|end)")+")+"));for(var c=t.column-r.getCurrentTokenColumn()-2,l=a.value;;){for(;c>=0;){var h=l.charAt(c);if(h==o){if(0==(s-=1))return{row:r.getCurrentTokenRow(),column:c+r.getCurrentTokenColumn()}}else h==e&&(s+=1);c-=1}do{a=r.stepBackward()}while(a&&!i.test(a.type));if(null==a)break;c=(l=a.value).length-1}return null}},this.$findClosingBracket=function(e,t,i){var o=this.$brackets[e],s=1,r=new n(this,t.row,t.column),a=r.getCurrentToken();if(a||(a=r.stepForward()),a){i||(i=new RegExp("(\\.?"+a.type.replace(".","\\.").replace("lparen",".paren").replace(/\b(?:start|begin)\b/,"(?:start|begin|end)")+")+"));for(var c=t.column-r.getCurrentTokenColumn();;){for(var l=a.value,h=l.length;ci&&(this.$docRowCache.splice(i,t),this.$screenRowCache.splice(i,t))},this.$getRowCacheIndex=function(e,t){for(var i=0,n=e.length-1;i<=n;){var o=i+n>>1,s=e[o];if(t>s)i=o+1;else{if(!(t=t);s++);return(i=n[s])?(i.index=s,i.start=o-i.value.length,i):null},this.setUndoManager=function(e){if(this.$undoManager=e,this.$informUndoManager&&this.$informUndoManager.cancel(),e){var t=this;e.addSession(this),this.$syncInformUndoManager=function(){t.$informUndoManager.cancel(),t.mergeUndoDeltas=!1},this.$informUndoManager=o.delayedCall(this.$syncInformUndoManager)}else this.$syncInformUndoManager=function(){}},this.markUndoGroup=function(){this.$syncInformUndoManager&&this.$syncInformUndoManager()},this.$defaultUndoManager={undo:function(){},redo:function(){},hasUndo:function(){},hasRedo:function(){},reset:function(){},add:function(){},addSelection:function(){},startNewGroup:function(){},addSession:function(){}},this.getUndoManager=function(){return this.$undoManager||this.$defaultUndoManager},this.getTabString=function(){return this.getUseSoftTabs()?o.stringRepeat(" ",this.getTabSize()):"\t"},this.setUseSoftTabs=function(e){this.setOption("useSoftTabs",e)},this.getUseSoftTabs=function(){return this.$useSoftTabs&&!this.$mode.$indentWithTabs},this.setTabSize=function(e){this.setOption("tabSize",e)},this.getTabSize=function(){return this.$tabSize},this.isTabStop=function(e){return this.$useSoftTabs&&e.column%this.$tabSize==0},this.setNavigateWithinSoftTabs=function(e){this.setOption("navigateWithinSoftTabs",e)},this.getNavigateWithinSoftTabs=function(){return this.$navigateWithinSoftTabs},this.$overwrite=!1,this.setOverwrite=function(e){this.setOption("overwrite",e)},this.getOverwrite=function(){return this.$overwrite},this.toggleOverwrite=function(){this.setOverwrite(!this.$overwrite)},this.addGutterDecoration=function(e,t){this.$decorations[e]||(this.$decorations[e]=""),this.$decorations[e]+=" "+t,this._signal("changeBreakpoint",{})},this.removeGutterDecoration=function(e,t){this.$decorations[e]=(this.$decorations[e]||"").replace(" "+t,""),this._signal("changeBreakpoint",{})},this.getBreakpoints=function(){return this.$breakpoints},this.setBreakpoints=function(e){this.$breakpoints=[];for(var t=0;t0&&(n=!!i.charAt(t-1).match(this.tokenRe)),n||(n=!!i.charAt(t).match(this.tokenRe)),n)var o=this.tokenRe;else if(/^\s+$/.test(i.slice(t-1,t+1)))o=/\s/;else o=this.nonTokenRe;var s=t;if(s>0){do{s--}while(s>=0&&i.charAt(s).match(o));s++}for(var r=t;re&&(e=t.screenWidth)})),this.lineWidgetWidth=e},this.$computeWidth=function(e){if(this.$modified||e){if(this.$modified=!1,this.$useWrapMode)return this.screenWidth=this.$wrapLimit;for(var t=this.doc.getAllLines(),i=this.$rowLengthCache,n=0,o=0,s=this.$foldData[o],r=s?s.start.row:1/0,a=t.length,c=0;cr){if((c=s.end.row+1)>=a)break;r=(s=this.$foldData[o++])?s.start.row:1/0}null==i[c]&&(i[c]=this.$getStringScreenWidth(t[c])[0]),i[c]>n&&(n=i[c])}this.screenWidth=n}},this.getLine=function(e){return this.doc.getLine(e)},this.getLines=function(e,t){return this.doc.getLines(e,t)},this.getLength=function(){return this.doc.getLength()},this.getTextRange=function(e){return this.doc.getTextRange(e||this.selection.getRange())},this.insert=function(e,t){return this.doc.insert(e,t)},this.remove=function(e){return this.doc.remove(e)},this.removeFullLines=function(e,t){return this.doc.removeFullLines(e,t)},this.undoChanges=function(e,t){if(e.length){this.$fromUndo=!0;for(var i=e.length-1;-1!=i;i--){var n=e[i];"insert"==n.action||"remove"==n.action?this.doc.revertDelta(n):n.folds&&this.addFolds(n.folds)}!t&&this.$undoSelect&&(e.selectionBefore?this.selection.fromJSON(e.selectionBefore):this.selection.setRange(this.$getUndoSelection(e,!0))),this.$fromUndo=!1}},this.redoChanges=function(e,t){if(e.length){this.$fromUndo=!0;for(var i=0;ie.end.column&&(s.start.column+=l),s.end.row==e.end.row&&s.end.column>e.end.column&&(s.end.column+=l)),r&&s.start.row>=e.end.row&&(s.start.row+=r,s.end.row+=r)}if(s.end=this.insert(s.start,n),o.length){var a=e.start,c=s.start,l=(r=c.row-a.row,c.column-a.column);this.addFolds(o.map((function(e){return(e=e.clone()).start.row==a.row&&(e.start.column+=l),e.end.row==a.row&&(e.end.column+=l),e.start.row+=r,e.end.row+=r,e})))}return s},this.indentRows=function(e,t,i){i=i.replace(/\t/g,this.getTabString());for(var n=e;n<=t;n++)this.doc.insertInLine({row:n,column:0},i)},this.outdentRows=function(e){for(var t=e.collapseRows(),i=new h(0,0,0,0),n=this.getTabSize(),o=t.start.row;o<=t.end.row;++o){var s=this.getLine(o);i.start.row=o,i.end.row=o;for(var r=0;r0){var o;if((o=this.getRowFoldEnd(t+i))>this.doc.getLength()-1)return 0;n=o-t}else{e=this.$clipRowToDocument(e);n=(t=this.$clipRowToDocument(t))-e+1}var s=new h(e,0,t,Number.MAX_VALUE),r=this.getFoldsInRange(s).map((function(e){return(e=e.clone()).start.row+=n,e.end.row+=n,e})),a=0==i?this.doc.getLines(e,t):this.doc.removeFullLines(e,t);return this.doc.insertFullLines(e+n,a),r.length&&this.addFolds(r),n},this.moveLinesUp=function(e,t){return this.$moveLines(e,t,-1)},this.moveLinesDown=function(e,t){return this.$moveLines(e,t,1)},this.duplicateLines=function(e,t){return this.$moveLines(e,t,0)},this.$clipRowToDocument=function(e){return Math.max(0,Math.min(e,this.doc.getLength()-1))},this.$clipColumnToRow=function(e,t){return t<0?0:Math.min(this.doc.getLine(e).length,t)},this.$clipPositionToDocument=function(e,t){if(t=Math.max(0,t),e<0)e=0,t=0;else{var i=this.doc.getLength();e>=i?(e=i-1,t=this.doc.getLine(i-1).length):t=Math.min(this.doc.getLine(e).length,t)}return{row:e,column:t}},this.$clipRangeToDocument=function(e){e.start.row<0?(e.start.row=0,e.start.column=0):e.start.column=this.$clipColumnToRow(e.start.row,e.start.column);var t=this.doc.getLength()-1;return e.end.row>t?(e.end.row=t,e.end.column=this.doc.getLine(t).length):e.end.column=this.$clipColumnToRow(e.end.row,e.end.column),e},this.$wrapLimit=80,this.$useWrapMode=!1,this.$wrapLimitRange={min:null,max:null},this.setUseWrapMode=function(e){if(e!=this.$useWrapMode){if(this.$useWrapMode=e,this.$modified=!0,this.$resetRowCache(0),e){var t=this.getLength();this.$wrapData=Array(t),this.$updateWrapData(0,t-1)}this._signal("changeWrapMode")}},this.getUseWrapMode=function(){return this.$useWrapMode},this.setWrapLimitRange=function(e,t){this.$wrapLimitRange.min===e&&this.$wrapLimitRange.max===t||(this.$wrapLimitRange={min:e,max:t},this.$modified=!0,this.$bidiHandler.markAsDirty(),this.$useWrapMode&&this._signal("changeWrapMode"))},this.adjustWrapLimit=function(e,t){var i=this.$wrapLimitRange;i.max<0&&(i={min:t,max:t});var n=this.$constrainWrapLimit(e,i.min,i.max);return n!=this.$wrapLimit&&n>1&&(this.$wrapLimit=n,this.$modified=!0,this.$useWrapMode&&(this.$updateWrapData(0,this.getLength()-1),this.$resetRowCache(0),this._signal("changeWrapLimit")),!0)},this.$constrainWrapLimit=function(e,t,i){return t&&(e=Math.max(t,e)),i&&(e=Math.min(i,e)),e},this.getWrapLimit=function(){return this.$wrapLimit},this.setWrapLimit=function(e){this.setWrapLimitRange(e,e)},this.getWrapLimitRange=function(){return{min:this.$wrapLimitRange.min,max:this.$wrapLimitRange.max}},this.$updateInternalDataOnChange=function(e){var t=this.$useWrapMode,i=e.action,n=e.start,o=e.end,s=n.row,r=o.row,a=r-s,c=null;if(this.$updating=!0,0!=a)if("remove"===i){this[t?"$wrapData":"$rowLengthCache"].splice(s,a);var l=this.$foldData;c=this.getFoldsInRange(e),this.removeFolds(c);var h=0;if(p=this.getFoldLine(o.row)){p.addRemoveChars(o.row,o.column,n.column-o.column),p.shiftRow(-a);var d=this.getFoldLine(s);d&&d!==p&&(d.merge(p),p=d),h=l.indexOf(p)+1}for(;h=o.row&&p.shiftRow(-a)}r=s}else{var u=Array(a);u.unshift(s,0);var f=t?this.$wrapData:this.$rowLengthCache;f.splice.apply(f,u);l=this.$foldData,h=0;if(p=this.getFoldLine(s)){var g=p.range.compareInside(n.row,n.column);0==g?(p=p.split(n.row,n.column))&&(p.shiftRow(a),p.addRemoveChars(r,0,o.column-n.column)):-1==g&&(p.addRemoveChars(s,0,o.column-n.column),p.shiftRow(a)),h=l.indexOf(p)+1}for(;h=s&&p.shiftRow(a)}}else a=Math.abs(e.start.column-e.end.column),"remove"===i&&(c=this.getFoldsInRange(e),this.removeFolds(c),a=-a),(p=this.getFoldLine(s))&&p.addRemoveChars(s,n.column,a);return t&&this.$wrapData.length!=this.doc.getLength()&&console.error("doc.getLength() and $wrapData.length have to be the same!"),this.$updating=!1,t?this.$updateWrapData(s,r):this.$updateRowLengthCache(s,r),c},this.$updateRowLengthCache=function(e,t,i){this.$rowLengthCache[e]=null,this.$rowLengthCache[t]=null},this.$updateWrapData=function(i,n){var o,s,r=this.doc.getAllLines(),a=this.getTabSize(),c=this.$wrapData,l=this.$wrapLimit,h=i;for(n=Math.min(n,r.length-1);h<=n;)(s=this.getFoldLine(h,s))?(o=[],s.walk(function(i,n,s,a){var c;if(null!=i){(c=this.$getDisplayTokens(i,o.length))[0]=e;for(var l=1;l=4352&&e<=4447||e>=4515&&e<=4519||e>=4602&&e<=4607||e>=9001&&e<=9002||e>=11904&&e<=11929||e>=11931&&e<=12019||e>=12032&&e<=12245||e>=12272&&e<=12283||e>=12288&&e<=12350||e>=12353&&e<=12438||e>=12441&&e<=12543||e>=12549&&e<=12589||e>=12593&&e<=12686||e>=12688&&e<=12730||e>=12736&&e<=12771||e>=12784&&e<=12830||e>=12832&&e<=12871||e>=12880&&e<=13054||e>=13056&&e<=19903||e>=19968&&e<=42124||e>=42128&&e<=42182||e>=43360&&e<=43388||e>=44032&&e<=55203||e>=55216&&e<=55238||e>=55243&&e<=55291||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65106||e>=65108&&e<=65126||e>=65128&&e<=65131||e>=65281&&e<=65376||e>=65504&&e<=65510)}this.$computeWrapSplits=function(i,n,o){if(0==i.length)return[];var s=[],r=i.length,a=0,c=0,l=this.$wrapAsCode,h=this.$indentedSoftWrap,d=n<=Math.max(2*o,8)||!1===h?0:Math.floor(n/2);function u(e){for(var t=e-a,n=a;nn-f;){var g=a+n-f;if(i[g-1]>=10&&i[g]>=10)u(g);else if(i[g]!=e&&i[g]!=t){for(var p=Math.max(g-(n-(n>>2)),a-1);g>p&&i[g]p&&i[g]p&&9==i[g];)g--}else for(;g>p&&i[g]<10;)g--;g>p?u(++g):(2==i[g=a+n]&&g--,u(g-f))}else{for(;g!=a-1&&i[g]!=e;g--);if(g>a){u(g);continue}for(g=a+n;g39&&r<48||r>57&&r<64?o.push(9):r>=4352&&i(r)?o.push(1,2):o.push(1)}return o},this.$getStringScreenWidth=function(e,t,n){if(0==t)return[0,0];var o,s;for(null==t&&(t=1/0),n=n||0,s=0;s=4352&&i(o)?n+=2:n+=1,!(n>t));s++);return[n,s]},this.lineWidgets=null,this.getRowLength=function(e){var t=1;return this.lineWidgets&&(t+=this.lineWidgets[e]&&this.lineWidgets[e].rowCount||0),this.$useWrapMode&&this.$wrapData[e]?this.$wrapData[e].length+t:t},this.getRowLineCount=function(e){return this.$useWrapMode&&this.$wrapData[e]?this.$wrapData[e].length+1:1},this.getRowWrapIndent=function(e){if(this.$useWrapMode){var t=this.screenToDocumentPosition(e,Number.MAX_VALUE),i=this.$wrapData[t.row];return i.length&&i[0]=0){a=l[h],s=this.$docRowCache[h];var u=e>l[d-1]}else u=!d;for(var f=this.getLength()-1,g=this.getNextFoldLine(s),p=g?g.start.row:1/0;a<=e&&!(a+(c=this.getRowLength(s))>e||s>=f);)a+=c,++s>p&&(s=g.end.row+1,p=(g=this.getNextFoldLine(s,g))?g.start.row:1/0),u&&(this.$docRowCache.push(s),this.$screenRowCache.push(a));if(g&&g.start.row<=s)n=this.getFoldDisplayLine(g),s=g.start.row;else{if(a+c<=e||s>f)return{row:f,column:this.getLine(f).length};n=this.getLine(s),g=null}var m=0,b=Math.floor(e-a);if(this.$useWrapMode){var v=this.$wrapData[s];v&&(o=v[b],b>0&&v.length&&(m=v.indent,r=v[b-1]||v[v.length-1],n=n.substring(r)))}return void 0!==i&&this.$bidiHandler.isBidiRow(a+b,s,b)&&(t=this.$bidiHandler.offsetToCol(i)),r+=this.$getStringScreenWidth(n,t-m)[1],this.$useWrapMode&&r>=o&&(r=o-1),g?g.idxToPosition(r):{row:s,column:r}},this.documentToScreenPosition=function(e,t){if(void 0===t)var i=this.$clipPositionToDocument(e.row,e.column);else i=this.$clipPositionToDocument(e,t);e=i.row,t=i.column;var n,o=0,s=null;(n=this.getFoldAt(e,t,1))&&(e=n.start.row,t=n.start.column);var r,a=0,c=this.$docRowCache,l=this.$getRowCacheIndex(c,e),h=c.length;if(h&&l>=0){a=c[l],o=this.$screenRowCache[l];var d=e>c[h-1]}else d=!h;for(var u=this.getNextFoldLine(a),f=u?u.start.row:1/0;a=f){if((r=u.end.row+1)>e)break;f=(u=this.getNextFoldLine(r,u))?u.start.row:1/0}else r=a+1;o+=this.getRowLength(a),a=r,d&&(this.$docRowCache.push(a),this.$screenRowCache.push(o))}var g="";u&&a>=f?(g=this.getFoldDisplayLine(u,e,t),s=u.start.row):(g=this.getLine(e).substring(0,t),s=e);var p=0;if(this.$useWrapMode){var m=this.$wrapData[s];if(m){for(var b=0;g.length>=m[b];)o++,b++;g=g.substring(m[b-1]||0,g.length),p=b>0?m.indent:0}}return this.lineWidgets&&this.lineWidgets[a]&&this.lineWidgets[a].rowsAbove&&(o+=this.lineWidgets[a].rowsAbove),{row:o,column:p+this.$getStringScreenWidth(g)[0]}},this.documentToScreenColumn=function(e,t){return this.documentToScreenPosition(e,t).column},this.documentToScreenRow=function(e,t){return this.documentToScreenPosition(e,t).row},this.getScreenLength=function(){var e=0,t=null;if(this.$useWrapMode)for(var i=this.$wrapData.length,n=0,o=(a=0,(t=this.$foldData[a++])?t.start.row:1/0);no&&(n=t.end.row+1,o=(t=this.$foldData[a++])?t.start.row:1/0)}else{e=this.getLength();for(var r=this.$foldData,a=0;ai);s++);return[n,s]})},this.destroy=function(){this.bgTokenizer&&(this.bgTokenizer.setDocument(null),this.bgTokenizer=null),this.$stopWorker(),this.removeAllListeners(),this.selection.detach()},this.isFullWidth=i}.call(g.prototype),e("./edit_session/folding").Folding.call(g.prototype),e("./edit_session/bracket_match").BracketMatch.call(g.prototype),r.defineOptions(g.prototype,"session",{wrap:{set:function(e){if(e&&"off"!=e?"free"==e?e=!0:"printMargin"==e?e=-1:"string"==typeof e&&(e=parseInt(e,10)||!1):e=!1,this.$wrap!=e)if(this.$wrap=e,e){var t="number"==typeof e?e:null;this.setWrapLimitRange(t,t),this.setUseWrapMode(!0)}else this.setUseWrapMode(!1)},get:function(){return this.getUseWrapMode()?-1==this.$wrap?"printMargin":this.getWrapLimitRange().min?this.$wrap:"free":"off"},handlesSet:!0},wrapMethod:{set:function(e){(e="auto"==e?"text"!=this.$mode.type:"text"!=e)!=this.$wrapAsCode&&(this.$wrapAsCode=e,this.$useWrapMode&&(this.$useWrapMode=!1,this.setUseWrapMode(!0)))},initialValue:"auto"},indentedSoftWrap:{set:function(){this.$useWrapMode&&(this.$useWrapMode=!1,this.setUseWrapMode(!0))},initialValue:!0},firstLineNumber:{set:function(){this._signal("changeBreakpoint")},initialValue:1},useWorker:{set:function(e){this.$useWorker=e,this.$stopWorker(),e&&this.$startWorker()},initialValue:!0},useSoftTabs:{initialValue:!0},tabSize:{set:function(e){(e=parseInt(e))>0&&this.$tabSize!==e&&(this.$modified=!0,this.$rowLengthCache=[],this.$tabSize=e,this._signal("changeTabSize"))},initialValue:4,handlesSet:!0},navigateWithinSoftTabs:{initialValue:!1},foldStyle:{set:function(e){this.setFoldStyle(e)},handlesSet:!0},overwrite:{set:function(e){this._signal("changeOverwrite")},initialValue:!1},newLineMode:{set:function(e){this.doc.setNewLineMode(e)},get:function(){return this.doc.getNewLineMode()},handlesSet:!0},mode:{set:function(e){this.setMode(e)},get:function(){return this.$modeId},handlesSet:!0}}),t.EditSession=g})),ace.define("ace/search",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/range"],(function(e,t,i){"use strict";var n=e("./lib/lang"),o=e("./lib/oop"),s=e("./range").Range,r=function(){this.$options={}};(function(){this.set=function(e){return o.mixin(this.$options,e),this},this.getOptions=function(){return n.copyObject(this.$options)},this.setOptions=function(e){this.$options=e},this.find=function(e){var t=this.$options,i=this.$matchIterator(e,t);if(!i)return!1;var n=null;return i.forEach((function(e,i,o,r){return n=new s(e,i,o,r),!(i==r&&t.start&&t.start.start&&0!=t.skipCurrent&&n.isEqual(t.start))||(n=null,!1)})),n},this.findAll=function(e){var t=this.$options;if(!t.needle)return[];this.$assembleRegExp(t);var i=t.range,o=i?e.getLines(i.start.row,i.end.row):e.doc.getAllLines(),r=[],a=t.re;if(t.$isMultiLine){var c,l=a.length,h=o.length-l;e:for(var d=a.offset||0;d<=h;d++){for(var u=0;up||(r.push(c=new s(d,p,d+l-1,m)),l>2&&(d=d+l-2))}}else for(var b=0;by&&r[u].end.row==i.end.row;)u--;for(r=r.slice(b,u+1),b=0,u=r.length;b=a;i--)if(d(i,Number.MAX_VALUE,e))return;if(0!=t.wrap)for(i=c,a=r.row;i>=a;i--)if(d(i,Number.MAX_VALUE,e))return}};else l=function(e){var i=r.row;if(!d(i,r.column,e)){for(i+=1;i<=c;i++)if(d(i,0,e))return;if(0!=t.wrap)for(i=a,c=r.row;i<=c;i++)if(d(i,0,e))return}};if(t.$isMultiLine)var h=i.length,d=function(t,o,s){var r=n?t-h+1:t;if(!(r<0)){var a=e.getLine(r),c=a.search(i[0]);if(!(!n&&co))return!!s(r,c,r+h-1,d)||void 0}}};else if(n)d=function(t,n,o){var s,r=e.getLine(t),a=[],c=0;for(i.lastIndex=0;s=i.exec(r);){var l=s[0].length;if(c=s.index,!l){if(c>=r.length)break;i.lastIndex=c+=1}if(s.index+l>n)break;a.push(s.index,l)}for(var h=a.length-1;h>=0;h-=2){var d=a[h-1];if(o(t,d,t,d+(l=a[h])))return!0}};else d=function(t,n,o){var s,r,a=e.getLine(t);for(i.lastIndex=n;r=i.exec(a);){var c=r[0].length;if(o(t,s=r.index,t,s+c))return!0;if(!c&&(i.lastIndex=s+=1,s>=a.length))return!1}};return{forEach:l}}}).call(r.prototype),t.Search=r})),ace.define("ace/keyboard/hash_handler",["require","exports","module","ace/lib/keys","ace/lib/useragent"],(function(e,t,i){"use strict";var n=e("../lib/keys"),o=e("../lib/useragent"),s=n.KEY_MODS;function r(e,t){this.platform=t||(o.isMac?"mac":"win"),this.commands={},this.commandKeyBinding={},this.addCommands(e),this.$singleCommand=!0}function a(e,t){r.call(this,e,t),this.$singleCommand=!1}a.prototype=r.prototype,function(){function e(e){return"object"==typeof e&&e.bindKey&&e.bindKey.position||(e.isDefault?-100:0)}this.addCommand=function(e){this.commands[e.name]&&this.removeCommand(e),this.commands[e.name]=e,e.bindKey&&this._buildKeyHash(e)},this.removeCommand=function(e,t){var i=e&&("string"==typeof e?e:e.name);e=this.commands[i],t||delete this.commands[i];var n=this.commandKeyBinding;for(var o in n){var s=n[o];if(s==e)delete n[o];else if(Array.isArray(s)){var r=s.indexOf(e);-1!=r&&(s.splice(r,1),1==s.length&&(n[o]=s[0]))}}},this.bindKey=function(e,t,i){if("object"==typeof e&&e&&(null==i&&(i=e.position),e=e[this.platform]),e)return"function"==typeof t?this.addCommand({exec:t,bindKey:e,name:t.name||e}):void e.split("|").forEach((function(e){var n="";if(-1!=e.indexOf(" ")){var o=e.split(/\s+/);e=o.pop(),o.forEach((function(e){var t=this.parseKeys(e),i=s[t.hashId]+t.key;n+=(n?" ":"")+i,this._addCommandToBinding(n,"chainKeys")}),this),n+=" "}var r=this.parseKeys(e),a=s[r.hashId]+r.key;this._addCommandToBinding(n+a,t,i)}),this)},this._addCommandToBinding=function(t,i,n){var o,s=this.commandKeyBinding;if(i)if(!s[t]||this.$singleCommand)s[t]=i;else{Array.isArray(s[t])?-1!=(o=s[t].indexOf(i))&&s[t].splice(o,1):s[t]=[s[t]],"number"!=typeof n&&(n=e(i));var r=s[t];for(o=0;on)break}r.splice(o,0,i)}else delete s[t]},this.addCommands=function(e){e&&Object.keys(e).forEach((function(t){var i=e[t];if(i){if("string"==typeof i)return this.bindKey(i,t);"function"==typeof i&&(i={exec:i}),"object"==typeof i&&(i.name||(i.name=t),this.addCommand(i))}}),this)},this.removeCommands=function(e){Object.keys(e).forEach((function(t){this.removeCommand(e[t])}),this)},this.bindKeys=function(e){Object.keys(e).forEach((function(t){this.bindKey(t,e[t])}),this)},this._buildKeyHash=function(e){this.bindKey(e.bindKey,e)},this.parseKeys=function(e){var t=e.toLowerCase().split(/[\-\+]([\-\+])?/).filter((function(e){return e})),i=t.pop(),o=n[i];if(n.FUNCTION_KEYS[o])i=n.FUNCTION_KEYS[o].toLowerCase();else{if(!t.length)return{key:i,hashId:-1};if(1==t.length&&"shift"==t[0])return{key:i.toUpperCase(),hashId:-1}}for(var s=0,r=t.length;r--;){var a=n.KEY_MODS[t[r]];if(null==a)return"undefined"!=typeof console&&console.error("invalid modifier "+t[r]+" in "+e),!1;s|=a}return{key:i,hashId:s}},this.findKeyCommand=function(e,t){var i=s[e]+t;return this.commandKeyBinding[i]},this.handleKeyboard=function(e,t,i,n){if(!(n<0)){var o=s[t]+i,r=this.commandKeyBinding[o];return e.$keyChain&&(e.$keyChain+=" "+o,r=this.commandKeyBinding[e.$keyChain]||r),!r||"chainKeys"!=r&&"chainKeys"!=r[r.length-1]?(e.$keyChain&&(t&&4!=t||1!=i.length?(-1==t||n>0)&&(e.$keyChain=""):e.$keyChain=e.$keyChain.slice(0,-o.length-1)),{command:r}):(e.$keyChain=e.$keyChain||o,{command:"null"})}},this.getStatusText=function(e,t){return t.$keyChain||""}}.call(r.prototype),t.HashHandler=r,t.MultiHashHandler=a})),ace.define("ace/commands/command_manager",["require","exports","module","ace/lib/oop","ace/keyboard/hash_handler","ace/lib/event_emitter"],(function(e,t,i){"use strict";var n=e("../lib/oop"),o=e("../keyboard/hash_handler").MultiHashHandler,s=e("../lib/event_emitter").EventEmitter,r=function(e,t){o.call(this,t,e),this.byName=this.commands,this.setDefaultHandler("exec",(function(e){return e.command.exec(e.editor,e.args||{})}))};n.inherits(r,o),function(){n.implement(this,s),this.exec=function(e,t,i){if(Array.isArray(e)){for(var n=e.length;n--;)if(this.exec(e[n],t,i))return!0;return!1}if("string"==typeof e&&(e=this.commands[e]),!e)return!1;if(t&&t.$readOnly&&!e.readOnly)return!1;if(0!=this.$checkCommandState&&e.isAvailable&&!e.isAvailable(t))return!1;var o={editor:t,command:e,args:i};return o.returnValue=this._emit("exec",o),this._signal("afterExec",o),!1!==o.returnValue},this.toggleRecording=function(e){if(!this.$inReplay)return e&&e._emit("changeStatus"),this.recording?(this.macro.pop(),this.off("exec",this.$addCommandToMacro),this.macro.length||(this.macro=this.oldMacro),this.recording=!1):(this.$addCommandToMacro||(this.$addCommandToMacro=function(e){this.macro.push([e.command,e.args])}.bind(this)),this.oldMacro=this.macro,this.macro=[],this.on("exec",this.$addCommandToMacro),this.recording=!0)},this.replay=function(e){if(!this.$inReplay&&this.macro){if(this.recording)return this.toggleRecording(e);try{this.$inReplay=!0,this.macro.forEach((function(t){"string"==typeof t?this.exec(t,e):this.exec(t[0],e,t[1])}),this)}finally{this.$inReplay=!1}}},this.trimMacro=function(e){return e.map((function(e){return"string"!=typeof e[0]&&(e[0]=e[0].name),e[1]||(e=e[0]),e}))}}.call(r.prototype),t.CommandManager=r})),ace.define("ace/commands/default_commands",["require","exports","module","ace/lib/lang","ace/config","ace/range"],(function(e,t,i){"use strict";var n=e("../lib/lang"),o=e("../config"),s=e("../range").Range;function r(e,t){return{win:e,mac:t}}t.commands=[{name:"showSettingsMenu",bindKey:r("Ctrl-,","Command-,"),exec:function(e){o.loadModule("ace/ext/settings_menu",(function(t){t.init(e),e.showSettingsMenu()}))},readOnly:!0},{name:"goToNextError",bindKey:r("Alt-E","F4"),exec:function(e){o.loadModule("./ext/error_marker",(function(t){t.showErrorMarker(e,1)}))},scrollIntoView:"animate",readOnly:!0},{name:"goToPreviousError",bindKey:r("Alt-Shift-E","Shift-F4"),exec:function(e){o.loadModule("./ext/error_marker",(function(t){t.showErrorMarker(e,-1)}))},scrollIntoView:"animate",readOnly:!0},{name:"selectall",description:"Select all",bindKey:r("Ctrl-A","Command-A"),exec:function(e){e.selectAll()},readOnly:!0},{name:"centerselection",description:"Center selection",bindKey:r(null,"Ctrl-L"),exec:function(e){e.centerSelection()},readOnly:!0},{name:"gotoline",description:"Go to line...",bindKey:r("Ctrl-L","Command-L"),exec:function(e,t){"number"!=typeof t||isNaN(t)||e.gotoLine(t),e.prompt({$type:"gotoLine"})},readOnly:!0},{name:"fold",bindKey:r("Alt-L|Ctrl-F1","Command-Alt-L|Command-F1"),exec:function(e){e.session.toggleFold(!1)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"unfold",bindKey:r("Alt-Shift-L|Ctrl-Shift-F1","Command-Alt-Shift-L|Command-Shift-F1"),exec:function(e){e.session.toggleFold(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleFoldWidget",bindKey:r("F2","F2"),exec:function(e){e.session.toggleFoldWidget()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleParentFoldWidget",bindKey:r("Alt-F2","Alt-F2"),exec:function(e){e.session.toggleFoldWidget(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"foldall",description:"Fold all",bindKey:r(null,"Ctrl-Command-Option-0"),exec:function(e){e.session.foldAll()},scrollIntoView:"center",readOnly:!0},{name:"foldAllComments",description:"Fold all comments",bindKey:r(null,"Ctrl-Command-Option-0"),exec:function(e){e.session.foldAllComments()},scrollIntoView:"center",readOnly:!0},{name:"foldOther",description:"Fold other",bindKey:r("Alt-0","Command-Option-0"),exec:function(e){e.session.foldAll(),e.session.unfold(e.selection.getAllRanges())},scrollIntoView:"center",readOnly:!0},{name:"unfoldall",description:"Unfold all",bindKey:r("Alt-Shift-0","Command-Option-Shift-0"),exec:function(e){e.session.unfold()},scrollIntoView:"center",readOnly:!0},{name:"findnext",description:"Find next",bindKey:r("Ctrl-K","Command-G"),exec:function(e){e.findNext()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"findprevious",description:"Find previous",bindKey:r("Ctrl-Shift-K","Command-Shift-G"),exec:function(e){e.findPrevious()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"selectOrFindNext",description:"Select or find next",bindKey:r("Alt-K","Ctrl-G"),exec:function(e){e.selection.isEmpty()?e.selection.selectWord():e.findNext()},readOnly:!0},{name:"selectOrFindPrevious",description:"Select or find previous",bindKey:r("Alt-Shift-K","Ctrl-Shift-G"),exec:function(e){e.selection.isEmpty()?e.selection.selectWord():e.findPrevious()},readOnly:!0},{name:"find",description:"Find",bindKey:r("Ctrl-F","Command-F"),exec:function(e){o.loadModule("ace/ext/searchbox",(function(t){t.Search(e)}))},readOnly:!0},{name:"overwrite",description:"Overwrite",bindKey:"Insert",exec:function(e){e.toggleOverwrite()},readOnly:!0},{name:"selecttostart",description:"Select to start",bindKey:r("Ctrl-Shift-Home","Command-Shift-Home|Command-Shift-Up"),exec:function(e){e.getSelection().selectFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotostart",description:"Go to start",bindKey:r("Ctrl-Home","Command-Home|Command-Up"),exec:function(e){e.navigateFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectup",description:"Select up",bindKey:r("Shift-Up","Shift-Up|Ctrl-Shift-P"),exec:function(e){e.getSelection().selectUp()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golineup",description:"Go line up",bindKey:r("Up","Up|Ctrl-P"),exec:function(e,t){e.navigateUp(t.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttoend",description:"Select to end",bindKey:r("Ctrl-Shift-End","Command-Shift-End|Command-Shift-Down"),exec:function(e){e.getSelection().selectFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotoend",description:"Go to end",bindKey:r("Ctrl-End","Command-End|Command-Down"),exec:function(e){e.navigateFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectdown",description:"Select down",bindKey:r("Shift-Down","Shift-Down|Ctrl-Shift-N"),exec:function(e){e.getSelection().selectDown()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golinedown",description:"Go line down",bindKey:r("Down","Down|Ctrl-N"),exec:function(e,t){e.navigateDown(t.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordleft",description:"Select word left",bindKey:r("Ctrl-Shift-Left","Option-Shift-Left"),exec:function(e){e.getSelection().selectWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordleft",description:"Go to word left",bindKey:r("Ctrl-Left","Option-Left"),exec:function(e){e.navigateWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolinestart",description:"Select to line start",bindKey:r("Alt-Shift-Left","Command-Shift-Left|Ctrl-Shift-A"),exec:function(e){e.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolinestart",description:"Go to line start",bindKey:r("Alt-Left|Home","Command-Left|Home|Ctrl-A"),exec:function(e){e.navigateLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectleft",description:"Select left",bindKey:r("Shift-Left","Shift-Left|Ctrl-Shift-B"),exec:function(e){e.getSelection().selectLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoleft",description:"Go to left",bindKey:r("Left","Left|Ctrl-B"),exec:function(e,t){e.navigateLeft(t.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordright",description:"Select word right",bindKey:r("Ctrl-Shift-Right","Option-Shift-Right"),exec:function(e){e.getSelection().selectWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordright",description:"Go to word right",bindKey:r("Ctrl-Right","Option-Right"),exec:function(e){e.navigateWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolineend",description:"Select to line end",bindKey:r("Alt-Shift-Right","Command-Shift-Right|Shift-End|Ctrl-Shift-E"),exec:function(e){e.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolineend",description:"Go to line end",bindKey:r("Alt-Right|End","Command-Right|End|Ctrl-E"),exec:function(e){e.navigateLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectright",description:"Select right",bindKey:r("Shift-Right","Shift-Right"),exec:function(e){e.getSelection().selectRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoright",description:"Go to right",bindKey:r("Right","Right|Ctrl-F"),exec:function(e,t){e.navigateRight(t.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectpagedown",description:"Select page down",bindKey:"Shift-PageDown",exec:function(e){e.selectPageDown()},readOnly:!0},{name:"pagedown",description:"Page down",bindKey:r(null,"Option-PageDown"),exec:function(e){e.scrollPageDown()},readOnly:!0},{name:"gotopagedown",description:"Go to page down",bindKey:r("PageDown","PageDown|Ctrl-V"),exec:function(e){e.gotoPageDown()},readOnly:!0},{name:"selectpageup",description:"Select page up",bindKey:"Shift-PageUp",exec:function(e){e.selectPageUp()},readOnly:!0},{name:"pageup",description:"Page up",bindKey:r(null,"Option-PageUp"),exec:function(e){e.scrollPageUp()},readOnly:!0},{name:"gotopageup",description:"Go to page up",bindKey:"PageUp",exec:function(e){e.gotoPageUp()},readOnly:!0},{name:"scrollup",description:"Scroll up",bindKey:r("Ctrl-Up",null),exec:function(e){e.renderer.scrollBy(0,-2*e.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"scrolldown",description:"Scroll down",bindKey:r("Ctrl-Down",null),exec:function(e){e.renderer.scrollBy(0,2*e.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"selectlinestart",description:"Select line start",bindKey:"Shift-Home",exec:function(e){e.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectlineend",description:"Select line end",bindKey:"Shift-End",exec:function(e){e.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"togglerecording",description:"Toggle recording",bindKey:r("Ctrl-Alt-E","Command-Option-E"),exec:function(e){e.commands.toggleRecording(e)},readOnly:!0},{name:"replaymacro",description:"Replay macro",bindKey:r("Ctrl-Shift-E","Command-Shift-E"),exec:function(e){e.commands.replay(e)},readOnly:!0},{name:"jumptomatching",description:"Jump to matching",bindKey:r("Ctrl-\\|Ctrl-P","Command-\\"),exec:function(e){e.jumpToMatching()},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"selecttomatching",description:"Select to matching",bindKey:r("Ctrl-Shift-\\|Ctrl-Shift-P","Command-Shift-\\"),exec:function(e){e.jumpToMatching(!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"expandToMatching",description:"Expand to matching",bindKey:r("Ctrl-Shift-M","Ctrl-Shift-M"),exec:function(e){e.jumpToMatching(!0,!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"passKeysToBrowser",description:"Pass keys to browser",bindKey:r(null,null),exec:function(){},passEvent:!0,readOnly:!0},{name:"copy",description:"Copy",exec:function(e){},readOnly:!0},{name:"cut",description:"Cut",exec:function(e){var t=e.$copyWithEmptySelection&&e.selection.isEmpty()?e.selection.getLineRange():e.selection.getRange();e._emit("cut",t),t.isEmpty()||e.session.remove(t),e.clearSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"paste",description:"Paste",exec:function(e,t){e.$handlePaste(t)},scrollIntoView:"cursor"},{name:"removeline",description:"Remove line",bindKey:r("Ctrl-D","Command-D"),exec:function(e){e.removeLines()},scrollIntoView:"cursor",multiSelectAction:"forEachLine"},{name:"duplicateSelection",description:"Duplicate selection",bindKey:r("Ctrl-Shift-D","Command-Shift-D"),exec:function(e){e.duplicateSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"sortlines",description:"Sort lines",bindKey:r("Ctrl-Alt-S","Command-Alt-S"),exec:function(e){e.sortLines()},scrollIntoView:"selection",multiSelectAction:"forEachLine"},{name:"togglecomment",description:"Toggle comment",bindKey:r("Ctrl-/","Command-/"),exec:function(e){e.toggleCommentLines()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"toggleBlockComment",description:"Toggle block comment",bindKey:r("Ctrl-Shift-/","Command-Shift-/"),exec:function(e){e.toggleBlockComment()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"modifyNumberUp",description:"Modify number up",bindKey:r("Ctrl-Shift-Up","Alt-Shift-Up"),exec:function(e){e.modifyNumber(1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"modifyNumberDown",description:"Modify number down",bindKey:r("Ctrl-Shift-Down","Alt-Shift-Down"),exec:function(e){e.modifyNumber(-1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"replace",description:"Replace",bindKey:r("Ctrl-H","Command-Option-F"),exec:function(e){o.loadModule("ace/ext/searchbox",(function(t){t.Search(e,!0)}))}},{name:"undo",description:"Undo",bindKey:r("Ctrl-Z","Command-Z"),exec:function(e){e.undo()}},{name:"redo",description:"Redo",bindKey:r("Ctrl-Shift-Z|Ctrl-Y","Command-Shift-Z|Command-Y"),exec:function(e){e.redo()}},{name:"copylinesup",description:"Copy lines up",bindKey:r("Alt-Shift-Up","Command-Option-Up"),exec:function(e){e.copyLinesUp()},scrollIntoView:"cursor"},{name:"movelinesup",description:"Move lines up",bindKey:r("Alt-Up","Option-Up"),exec:function(e){e.moveLinesUp()},scrollIntoView:"cursor"},{name:"copylinesdown",description:"Copy lines down",bindKey:r("Alt-Shift-Down","Command-Option-Down"),exec:function(e){e.copyLinesDown()},scrollIntoView:"cursor"},{name:"movelinesdown",description:"Move lines down",bindKey:r("Alt-Down","Option-Down"),exec:function(e){e.moveLinesDown()},scrollIntoView:"cursor"},{name:"del",description:"Delete",bindKey:r("Delete","Delete|Ctrl-D|Shift-Delete"),exec:function(e){e.remove("right")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"backspace",description:"Backspace",bindKey:r("Shift-Backspace|Backspace","Ctrl-Backspace|Shift-Backspace|Backspace|Ctrl-H"),exec:function(e){e.remove("left")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"cut_or_delete",description:"Cut or delete",bindKey:r("Shift-Delete",null),exec:function(e){if(!e.selection.isEmpty())return!1;e.remove("left")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestart",description:"Remove to line start",bindKey:r("Alt-Backspace","Command-Backspace"),exec:function(e){e.removeToLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineend",description:"Remove to line end",bindKey:r("Alt-Delete","Ctrl-K|Command-Delete"),exec:function(e){e.removeToLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestarthard",description:"Remove to line start hard",bindKey:r("Ctrl-Shift-Backspace",null),exec:function(e){var t=e.selection.getRange();t.start.column=0,e.session.remove(t)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineendhard",description:"Remove to line end hard",bindKey:r("Ctrl-Shift-Delete",null),exec:function(e){var t=e.selection.getRange();t.end.column=Number.MAX_VALUE,e.session.remove(t)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordleft",description:"Remove word left",bindKey:r("Ctrl-Backspace","Alt-Backspace|Ctrl-Alt-Backspace"),exec:function(e){e.removeWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordright",description:"Remove word right",bindKey:r("Ctrl-Delete","Alt-Delete"),exec:function(e){e.removeWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"outdent",description:"Outdent",bindKey:r("Shift-Tab","Shift-Tab"),exec:function(e){e.blockOutdent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"indent",description:"Indent",bindKey:r("Tab","Tab"),exec:function(e){e.indent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"blockoutdent",description:"Block outdent",bindKey:r("Ctrl-[","Ctrl-["),exec:function(e){e.blockOutdent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"blockindent",description:"Block indent",bindKey:r("Ctrl-]","Ctrl-]"),exec:function(e){e.blockIndent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"insertstring",description:"Insert string",exec:function(e,t){e.insert(t)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"inserttext",description:"Insert text",exec:function(e,t){e.insert(n.stringRepeat(t.text||"",t.times||1))},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"splitline",description:"Split line",bindKey:r(null,"Ctrl-O"),exec:function(e){e.splitLine()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"transposeletters",description:"Transpose letters",bindKey:r("Alt-Shift-X","Ctrl-T"),exec:function(e){e.transposeLetters()},multiSelectAction:function(e){e.transposeSelections(1)},scrollIntoView:"cursor"},{name:"touppercase",description:"To uppercase",bindKey:r("Ctrl-U","Ctrl-U"),exec:function(e){e.toUpperCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"tolowercase",description:"To lowercase",bindKey:r("Ctrl-Shift-U","Ctrl-Shift-U"),exec:function(e){e.toLowerCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"autoindent",description:"Auto Indent",bindKey:r(null,null),exec:function(e){e.autoIndent()},multiSelectAction:"forEachLine",scrollIntoView:"animate"},{name:"expandtoline",description:"Expand to line",bindKey:r("Ctrl-Shift-L","Command-Shift-L"),exec:function(e){var t=e.selection.getRange();t.start.column=t.end.column=0,t.end.row++,e.selection.setRange(t,!1)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"joinlines",description:"Join lines",bindKey:r(null,null),exec:function(e){for(var t=e.selection.isBackwards(),i=t?e.selection.getSelectionLead():e.selection.getSelectionAnchor(),o=t?e.selection.getSelectionAnchor():e.selection.getSelectionLead(),r=e.session.doc.getLine(i.row).length,a=e.session.doc.getTextRange(e.selection.getRange()).replace(/\n\s*/," ").length,c=e.session.doc.getLine(i.row),l=i.row+1;l<=o.row+1;l++){var h=n.stringTrimLeft(n.stringTrimRight(e.session.doc.getLine(l)));0!==h.length&&(h=" "+h),c+=h}o.row+10?(e.selection.moveCursorTo(i.row,i.column),e.selection.selectTo(i.row,i.column+a)):(r=e.session.doc.getLine(i.row).length>r?r+1:r,e.selection.moveCursorTo(i.row,r))},multiSelectAction:"forEach",readOnly:!0},{name:"invertSelection",description:"Invert selection",bindKey:r(null,null),exec:function(e){var t=e.session.doc.getLength()-1,i=e.session.doc.getLine(t).length,n=e.selection.rangeList.ranges,o=[];n.length<1&&(n=[e.selection.getRange()]);for(var r=0;r=o.lastRow||n.end.row<=o.firstRow)&&this.renderer.scrollSelectionIntoView(this.selection.anchor,this.selection.lead)}"animate"==i&&this.renderer.animateScrolling(this.curOp.scrollTop)}var s=this.selection.toJSON();this.curOp.selectionAfter=s,this.$lastSel=this.selection.toJSON(),this.session.getUndoManager().addSelection(s),this.prevOp=this.curOp,this.curOp=null}},this.$mergeableCommands=["backspace","del","insertstring"],this.$historyTracker=function(e){if(this.$mergeUndoDeltas){var t=this.prevOp,i=this.$mergeableCommands,n=t.command&&e.command.name==t.command.name;if("insertstring"==e.command.name){var o=e.args;void 0===this.mergeNextCommand&&(this.mergeNextCommand=!0),n=n&&this.mergeNextCommand&&(!/\s/.test(o)||/\s/.test(t.args)),this.mergeNextCommand=!0}else n=n&&-1!==i.indexOf(e.command.name);"always"!=this.$mergeUndoDeltas&&Date.now()-this.sequenceStartTime>2e3&&(n=!1),n?this.session.mergeUndoDeltas=!0:-1!==i.indexOf(e.command.name)&&(this.sequenceStartTime=Date.now())}},this.setKeyboardHandler=function(e,t){if(e&&"string"==typeof e&&"ace"!=e){this.$keybindingId=e;var i=this;b.loadModule(["keybinding",e],(function(n){i.$keybindingId==e&&i.keyBinding.setKeyboardHandler(n&&n.handler),t&&t()}))}else this.$keybindingId=null,this.keyBinding.setKeyboardHandler(e),t&&t()},this.getKeyboardHandler=function(){return this.keyBinding.getKeyboardHandler()},this.setSession=function(e){if(this.session!=e){this.curOp&&this.endOperation(),this.curOp={};var t=this.session;if(t){this.session.off("change",this.$onDocumentChange),this.session.off("changeMode",this.$onChangeMode),this.session.off("tokenizerUpdate",this.$onTokenizerUpdate),this.session.off("changeTabSize",this.$onChangeTabSize),this.session.off("changeWrapLimit",this.$onChangeWrapLimit),this.session.off("changeWrapMode",this.$onChangeWrapMode),this.session.off("changeFold",this.$onChangeFold),this.session.off("changeFrontMarker",this.$onChangeFrontMarker),this.session.off("changeBackMarker",this.$onChangeBackMarker),this.session.off("changeBreakpoint",this.$onChangeBreakpoint),this.session.off("changeAnnotation",this.$onChangeAnnotation),this.session.off("changeOverwrite",this.$onCursorChange),this.session.off("changeScrollTop",this.$onScrollTopChange),this.session.off("changeScrollLeft",this.$onScrollLeftChange);var i=this.session.getSelection();i.off("changeCursor",this.$onCursorChange),i.off("changeSelection",this.$onSelectionChange)}this.session=e,e?(this.$onDocumentChange=this.onDocumentChange.bind(this),e.on("change",this.$onDocumentChange),this.renderer.setSession(e),this.$onChangeMode=this.onChangeMode.bind(this),e.on("changeMode",this.$onChangeMode),this.$onTokenizerUpdate=this.onTokenizerUpdate.bind(this),e.on("tokenizerUpdate",this.$onTokenizerUpdate),this.$onChangeTabSize=this.renderer.onChangeTabSize.bind(this.renderer),e.on("changeTabSize",this.$onChangeTabSize),this.$onChangeWrapLimit=this.onChangeWrapLimit.bind(this),e.on("changeWrapLimit",this.$onChangeWrapLimit),this.$onChangeWrapMode=this.onChangeWrapMode.bind(this),e.on("changeWrapMode",this.$onChangeWrapMode),this.$onChangeFold=this.onChangeFold.bind(this),e.on("changeFold",this.$onChangeFold),this.$onChangeFrontMarker=this.onChangeFrontMarker.bind(this),this.session.on("changeFrontMarker",this.$onChangeFrontMarker),this.$onChangeBackMarker=this.onChangeBackMarker.bind(this),this.session.on("changeBackMarker",this.$onChangeBackMarker),this.$onChangeBreakpoint=this.onChangeBreakpoint.bind(this),this.session.on("changeBreakpoint",this.$onChangeBreakpoint),this.$onChangeAnnotation=this.onChangeAnnotation.bind(this),this.session.on("changeAnnotation",this.$onChangeAnnotation),this.$onCursorChange=this.onCursorChange.bind(this),this.session.on("changeOverwrite",this.$onCursorChange),this.$onScrollTopChange=this.onScrollTopChange.bind(this),this.session.on("changeScrollTop",this.$onScrollTopChange),this.$onScrollLeftChange=this.onScrollLeftChange.bind(this),this.session.on("changeScrollLeft",this.$onScrollLeftChange),this.selection=e.getSelection(),this.selection.on("changeCursor",this.$onCursorChange),this.$onSelectionChange=this.onSelectionChange.bind(this),this.selection.on("changeSelection",this.$onSelectionChange),this.onChangeMode(),this.onCursorChange(),this.onScrollTopChange(),this.onScrollLeftChange(),this.onSelectionChange(),this.onChangeFrontMarker(),this.onChangeBackMarker(),this.onChangeBreakpoint(),this.onChangeAnnotation(),this.session.getUseWrapMode()&&this.renderer.adjustWrapLimit(),this.renderer.updateFull()):(this.selection=null,this.renderer.setSession(e)),this._signal("changeSession",{session:e,oldSession:t}),this.curOp=null,t&&t._signal("changeEditor",{oldEditor:this}),e&&e._signal("changeEditor",{editor:this}),e&&e.bgTokenizer&&e.bgTokenizer.scheduleStart()}},this.getSession=function(){return this.session},this.setValue=function(e,t){return this.session.doc.setValue(e),t?1==t?this.navigateFileEnd():-1==t&&this.navigateFileStart():this.selectAll(),e},this.getValue=function(){return this.session.getValue()},this.getSelection=function(){return this.selection},this.resize=function(e){this.renderer.onResize(e)},this.setTheme=function(e,t){this.renderer.setTheme(e,t)},this.getTheme=function(){return this.renderer.getTheme()},this.setStyle=function(e){this.renderer.setStyle(e)},this.unsetStyle=function(e){this.renderer.unsetStyle(e)},this.getFontSize=function(){return this.getOption("fontSize")||o.computedStyle(this.container).fontSize},this.setFontSize=function(e){this.setOption("fontSize",e)},this.$highlightBrackets=function(){if(!this.$highlightPending){var e=this;this.$highlightPending=!0,setTimeout((function(){e.$highlightPending=!1;var t=e.session;if(t&&t.bgTokenizer){t.$bracketHighlight&&(t.$bracketHighlight.markerIds.forEach((function(e){t.removeMarker(e)})),t.$bracketHighlight=null);var i=t.getMatchingBracketRanges(e.getCursorPosition());if(!i&&t.$mode.getMatching&&(i=t.$mode.getMatching(e.session)),i){var n="ace_bracket";Array.isArray(i)?1==i.length&&(n="ace_error_bracket"):i=[i],2==i.length&&(0==f.comparePoints(i[0].end,i[1].start)?i=[f.fromPoints(i[0].start,i[1].end)]:0==f.comparePoints(i[0].start,i[1].end)&&(i=[f.fromPoints(i[1].start,i[0].end)])),t.$bracketHighlight={ranges:i,markerIds:i.map((function(e){return t.addMarker(e,n,"text")}))}}}}),50)}},this.$highlightTags=function(){if(!this.$highlightTagPending){var e=this;this.$highlightTagPending=!0,setTimeout((function(){e.$highlightTagPending=!1;var t=e.session;if(t&&t.bgTokenizer){var i=e.getCursorPosition(),n=new v(e.session,i.row,i.column),o=n.getCurrentToken();if(!o||!/\b(?:tag-open|tag-name)/.test(o.type))return t.removeMarker(t.$tagHighlight),void(t.$tagHighlight=null);if(-1===o.type.indexOf("tag-open")||(o=n.stepForward())){var s=o.value,r=o.value,a=0,c=n.stepBackward();if("<"===c.value)do{c=o,(o=n.stepForward())&&(-1!==o.type.indexOf("tag-name")?s===(r=o.value)&&("<"===c.value?a++:""===o.value&&a--)}while(o&&a>=0);else{do{if(o=c,c=n.stepBackward(),o)if(-1!==o.type.indexOf("tag-name"))s===o.value&&("<"===c.value?a++:""===o.value){for(var l=0,h=c;h;){if(-1!==h.type.indexOf("tag-name")&&h.value===s){a--;break}if("<"===h.value)break;h=n.stepBackward(),l++}for(var d=0;d1||(e=!1)),t.$highlightLineMarker&&!e)t.removeMarker(t.$highlightLineMarker.id),t.$highlightLineMarker=null;else if(!t.$highlightLineMarker&&e){var i=new f(e.row,e.column,e.row,1/0);i.id=t.addMarker(i,"ace_active-line","screenLine"),t.$highlightLineMarker=i}else e&&(t.$highlightLineMarker.start.row=e.row,t.$highlightLineMarker.end.row=e.row,t.$highlightLineMarker.start.column=e.column,t._signal("changeBackMarker"))},this.onSelectionChange=function(e){var t=this.session;if(t.$selectionMarker&&t.removeMarker(t.$selectionMarker),t.$selectionMarker=null,this.selection.isEmpty())this.$updateHighlightActiveLine();else{var i=this.selection.getRange(),n=this.getSelectionStyle();t.$selectionMarker=t.addMarker(i,"ace_selection",n)}var o=this.$highlightSelectedWord&&this.$getSelectionHighLightRegexp();this.session.highlight(o),this._signal("changeSelection")},this.$getSelectionHighLightRegexp=function(){var e=this.session,t=this.getSelectionRange();if(!t.isEmpty()&&!t.isMultiLine()){var i=t.start.column,n=t.end.column,o=e.getLine(t.start.row),s=o.substring(i,n);if(!(s.length>5e3)&&/[\w\d]/.test(s)){var r=this.$search.$assembleRegExp({wholeWord:!0,caseSensitive:!0,needle:s}),a=o.substring(i-1,n+1);if(r.test(a))return r}}},this.onChangeFrontMarker=function(){this.renderer.updateFrontMarkers()},this.onChangeBackMarker=function(){this.renderer.updateBackMarkers()},this.onChangeBreakpoint=function(){this.renderer.updateBreakpoints()},this.onChangeAnnotation=function(){this.renderer.setAnnotations(this.session.getAnnotations())},this.onChangeMode=function(e){this.renderer.updateText(),this._emit("changeMode",e)},this.onChangeWrapLimit=function(){this.renderer.updateFull()},this.onChangeWrapMode=function(){this.renderer.onResize(!0)},this.onChangeFold=function(){this.$updateHighlightActiveLine(),this.renderer.updateFull()},this.getSelectedText=function(){return this.session.getTextRange(this.getSelectionRange())},this.getCopyText=function(){var e=this.getSelectedText(),t=this.session.doc.getNewLineCharacter(),i=!1;if(!e&&this.$copyWithEmptySelection){i=!0;for(var n=this.selection.getAllRanges(),o=0;oa.search(/\S|$/)){var c=a.substr(o.column).search(/\S|$/);i.doc.removeInLine(o.row,o.column,o.column+c)}}this.clearSelection();var l=o.column,h=i.getState(o.row),d=(a=i.getLine(o.row),n.checkOutdent(h,a,e));if(i.insert(o,e),s&&s.selection&&(2==s.selection.length?this.selection.setSelectionRange(new f(o.row,l+s.selection[0],o.row,l+s.selection[1])):this.selection.setSelectionRange(new f(o.row+s.selection[0],s.selection[1],o.row+s.selection[2],s.selection[3]))),this.$enableAutoIndent){if(i.getDocument().isNewLine(e)){var u=n.getNextLineIndent(h,a.slice(0,o.column),i.getTabString());i.insert({row:o.row+1,column:0},u)}d&&n.autoOutdent(h,i,o.row)}},this.autoIndent=function(){var e,t,i=this.session,n=i.getMode();if(this.selection.isEmpty())e=0,t=i.doc.getLength()-1;else{var o=this.getSelectionRange();e=o.start.row,t=o.end.row}for(var s,r,a,c="",l="",h="",d=i.getTabString(),u=e;u<=t;u++)u>0&&(c=i.getState(u-1),l=i.getLine(u-1),h=n.getNextLineIndent(c,l,d)),s=i.getLine(u),h!==(r=n.$getIndent(s))&&(r.length>0&&(a=new f(u,0,u,r.length),i.remove(a)),h.length>0&&i.insert({row:u,column:0},h)),n.autoOutdent(c,i,u)},this.onTextInput=function(e,t){if(!t)return this.keyBinding.onTextInput(e);this.startOperation({command:{name:"insertstring"}});var i=this.applyComposition.bind(this,e,t);this.selection.rangeCount?this.forEachSelection(i):i(),this.endOperation()},this.applyComposition=function(e,t){var i;(t.extendLeft||t.extendRight)&&((i=this.selection.getRange()).start.column-=t.extendLeft,i.end.column+=t.extendRight,i.start.column<0&&(i.start.row--,i.start.column+=this.session.getLine(i.start.row).length+1),this.selection.setRange(i),e||i.isEmpty()||this.remove());(!e&&this.selection.isEmpty()||this.insert(e,!0),t.restoreStart||t.restoreEnd)&&((i=this.selection.getRange()).start.column-=t.restoreStart,i.end.column-=t.restoreEnd,this.selection.setRange(i))},this.onCommandKey=function(e,t,i){return this.keyBinding.onCommandKey(e,t,i)},this.setOverwrite=function(e){this.session.setOverwrite(e)},this.getOverwrite=function(){return this.session.getOverwrite()},this.toggleOverwrite=function(){this.session.toggleOverwrite()},this.setScrollSpeed=function(e){this.setOption("scrollSpeed",e)},this.getScrollSpeed=function(){return this.getOption("scrollSpeed")},this.setDragDelay=function(e){this.setOption("dragDelay",e)},this.getDragDelay=function(){return this.getOption("dragDelay")},this.setSelectionStyle=function(e){this.setOption("selectionStyle",e)},this.getSelectionStyle=function(){return this.getOption("selectionStyle")},this.setHighlightActiveLine=function(e){this.setOption("highlightActiveLine",e)},this.getHighlightActiveLine=function(){return this.getOption("highlightActiveLine")},this.setHighlightGutterLine=function(e){this.setOption("highlightGutterLine",e)},this.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},this.setHighlightSelectedWord=function(e){this.setOption("highlightSelectedWord",e)},this.getHighlightSelectedWord=function(){return this.$highlightSelectedWord},this.setAnimatedScroll=function(e){this.renderer.setAnimatedScroll(e)},this.getAnimatedScroll=function(){return this.renderer.getAnimatedScroll()},this.setShowInvisibles=function(e){this.renderer.setShowInvisibles(e)},this.getShowInvisibles=function(){return this.renderer.getShowInvisibles()},this.setDisplayIndentGuides=function(e){this.renderer.setDisplayIndentGuides(e)},this.getDisplayIndentGuides=function(){return this.renderer.getDisplayIndentGuides()},this.setShowPrintMargin=function(e){this.renderer.setShowPrintMargin(e)},this.getShowPrintMargin=function(){return this.renderer.getShowPrintMargin()},this.setPrintMarginColumn=function(e){this.renderer.setPrintMarginColumn(e)},this.getPrintMarginColumn=function(){return this.renderer.getPrintMarginColumn()},this.setReadOnly=function(e){this.setOption("readOnly",e)},this.getReadOnly=function(){return this.getOption("readOnly")},this.setBehavioursEnabled=function(e){this.setOption("behavioursEnabled",e)},this.getBehavioursEnabled=function(){return this.getOption("behavioursEnabled")},this.setWrapBehavioursEnabled=function(e){this.setOption("wrapBehavioursEnabled",e)},this.getWrapBehavioursEnabled=function(){return this.getOption("wrapBehavioursEnabled")},this.setShowFoldWidgets=function(e){this.setOption("showFoldWidgets",e)},this.getShowFoldWidgets=function(){return this.getOption("showFoldWidgets")},this.setFadeFoldWidgets=function(e){this.setOption("fadeFoldWidgets",e)},this.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},this.remove=function(e){this.selection.isEmpty()&&("left"==e?this.selection.selectLeft():this.selection.selectRight());var t=this.getSelectionRange();if(this.getBehavioursEnabled()){var i=this.session,n=i.getState(t.start.row),o=i.getMode().transformAction(n,"deletion",this,i,t);if(0===t.end.column){var s=i.getTextRange(t);if("\n"==s[s.length-1]){var r=i.getLine(t.end.row);/^\s+$/.test(r)&&(t.end.column=r.length)}}o&&(t=o)}this.session.remove(t),this.clearSelection()},this.removeWordRight=function(){this.selection.isEmpty()&&this.selection.selectWordRight(),this.session.remove(this.getSelectionRange()),this.clearSelection()},this.removeWordLeft=function(){this.selection.isEmpty()&&this.selection.selectWordLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},this.removeToLineStart=function(){this.selection.isEmpty()&&this.selection.selectLineStart(),this.selection.isEmpty()&&this.selection.selectLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},this.removeToLineEnd=function(){this.selection.isEmpty()&&this.selection.selectLineEnd();var e=this.getSelectionRange();e.start.column==e.end.column&&e.start.row==e.end.row&&(e.end.column=0,e.end.row++),this.session.remove(e),this.clearSelection()},this.splitLine=function(){this.selection.isEmpty()||(this.session.remove(this.getSelectionRange()),this.clearSelection());var e=this.getCursorPosition();this.insert("\n"),this.moveCursorToPosition(e)},this.transposeLetters=function(){if(this.selection.isEmpty()){var e=this.getCursorPosition(),t=e.column;if(0!==t){var i,n,o=this.session.getLine(e.row);tt.toLowerCase()?1:0}));var o=new f(0,0,0,0);for(n=e.first;n<=e.last;n++){var s=t.getLine(n);o.start.row=n,o.end.row=n,o.end.column=s.length,t.replace(o,i[n-e.first])}},this.toggleCommentLines=function(){var e=this.session.getState(this.getCursorPosition().row),t=this.$getSelectedRows();this.session.getMode().toggleCommentLines(e,this.session,t.first,t.last)},this.toggleBlockComment=function(){var e=this.getCursorPosition(),t=this.session.getState(e.row),i=this.getSelectionRange();this.session.getMode().toggleBlockComment(t,this.session,i,e)},this.getNumberAt=function(e,t){var i=/[\-]?[0-9]+(?:\.[0-9]+)?/g;i.lastIndex=0;for(var n=this.session.getLine(e);i.lastIndex=t)return{value:o[0],start:o.index,end:o.index+o[0].length}}return null},this.modifyNumber=function(e){var t=this.selection.getCursor().row,i=this.selection.getCursor().column,n=new f(t,i-1,t,i),o=this.session.getTextRange(n);if(!isNaN(parseFloat(o))&&isFinite(o)){var s=this.getNumberAt(t,i);if(s){var r=s.value.indexOf(".")>=0?s.start+s.value.indexOf(".")+1:s.end,a=s.start+s.value.length-r,c=parseFloat(s.value);c*=Math.pow(10,a),r!==s.end&&i=a&&r<=c&&(i=t,l.selection.clearSelection(),l.moveCursorTo(e,a+n),l.selection.selectTo(e,c+n)),a=c}));for(var h,d=this.$toggleWordPairs,u=0;uf+1)break;f=g.last}for(h--,a=this.session.$moveLines(u,f,t?0:e),t&&-1==e&&(d=h+1);d<=h;)r[d].moveBy(a,0),d++;t||(a=0),c+=a}o.fromOrientedRange(o.ranges[0]),o.rangeList.attach(this.session),this.inVirtualSelectionMode=!1}},this.$getSelectedRows=function(e){return e=(e||this.getSelectionRange()).collapseRows(),{first:this.session.getRowFoldStart(e.start.row),last:this.session.getRowFoldEnd(e.end.row)}},this.onCompositionStart=function(e){this.renderer.showComposition(e)},this.onCompositionUpdate=function(e){this.renderer.setCompositionText(e)},this.onCompositionEnd=function(){this.renderer.hideComposition()},this.getFirstVisibleRow=function(){return this.renderer.getFirstVisibleRow()},this.getLastVisibleRow=function(){return this.renderer.getLastVisibleRow()},this.isRowVisible=function(e){return e>=this.getFirstVisibleRow()&&e<=this.getLastVisibleRow()},this.isRowFullyVisible=function(e){return e>=this.renderer.getFirstFullyVisibleRow()&&e<=this.renderer.getLastFullyVisibleRow()},this.$getVisibleRowCount=function(){return this.renderer.getScrollBottomRow()-this.renderer.getScrollTopRow()+1},this.$moveByPage=function(e,t){var i=this.renderer,n=this.renderer.layerConfig,o=e*Math.floor(n.height/n.lineHeight);!0===t?this.selection.$moveSelection((function(){this.moveCursorBy(o,0)})):!1===t&&(this.selection.moveCursorBy(o,0),this.selection.clearSelection());var s=i.scrollTop;i.scrollBy(0,o*n.lineHeight),null!=t&&i.scrollCursorIntoView(null,.5),i.animateScrolling(s)},this.selectPageDown=function(){this.$moveByPage(1,!0)},this.selectPageUp=function(){this.$moveByPage(-1,!0)},this.gotoPageDown=function(){this.$moveByPage(1,!1)},this.gotoPageUp=function(){this.$moveByPage(-1,!1)},this.scrollPageDown=function(){this.$moveByPage(1)},this.scrollPageUp=function(){this.$moveByPage(-1)},this.scrollToRow=function(e){this.renderer.scrollToRow(e)},this.scrollToLine=function(e,t,i,n){this.renderer.scrollToLine(e,t,i,n)},this.centerSelection=function(){var e=this.getSelectionRange(),t={row:Math.floor(e.start.row+(e.end.row-e.start.row)/2),column:Math.floor(e.start.column+(e.end.column-e.start.column)/2)};this.renderer.alignCursor(t,.5)},this.getCursorPosition=function(){return this.selection.getCursor()},this.getCursorPositionScreen=function(){return this.session.documentToScreenPosition(this.getCursorPosition())},this.getSelectionRange=function(){return this.selection.getRange()},this.selectAll=function(){this.selection.selectAll()},this.clearSelection=function(){this.selection.clearSelection()},this.moveCursorTo=function(e,t){this.selection.moveCursorTo(e,t)},this.moveCursorToPosition=function(e){this.selection.moveCursorToPosition(e)},this.jumpToMatching=function(e,t){var i=this.getCursorPosition(),n=new v(this.session,i.row,i.column),o=n.getCurrentToken(),s=o||n.stepForward();if(s){var r,a,c=!1,l={},h=i.column-s.start,d={")":"(","(":"(","]":"[","[":"[","{":"{","}":"{"};do{if(s.value.match(/[{}()\[\]]/g)){for(;h=0;--s)this.$tryReplace(i[s],e)&&n++;return this.selection.setSelectionRange(o),n},this.$tryReplace=function(e,t){var i=this.session.getTextRange(e);return null!==(t=this.$search.replace(i,t))?(e.end=this.session.replace(e,t),e):null},this.getLastSearchOptions=function(){return this.$search.getOptions()},this.find=function(e,t,i){t||(t={}),"string"==typeof e||e instanceof RegExp?t.needle=e:"object"==typeof e&&n.mixin(t,e);var o=this.selection.getRange();null==t.needle&&((e=this.session.getTextRange(o)||this.$search.$options.needle)||(o=this.session.getWordRange(o.start.row,o.start.column),e=this.session.getTextRange(o)),this.$search.set({needle:e})),this.$search.set(t),t.start||this.$search.set({start:o});var s=this.$search.find(this.session);return t.preventScroll?s:s?(this.revealRange(s,i),s):(t.backwards?o.start=o.end:o.end=o.start,void this.selection.setRange(o))},this.findNext=function(e,t){this.find({skipCurrent:!0,backwards:!1},e,t)},this.findPrevious=function(e,t){this.find(e,{skipCurrent:!0,backwards:!0},t)},this.revealRange=function(e,t){this.session.unfold(e),this.selection.setSelectionRange(e);var i=this.renderer.scrollTop;this.renderer.scrollSelectionIntoView(e.start,e.end,.5),!1!==t&&this.renderer.animateScrolling(i)},this.undo=function(){this.session.getUndoManager().undo(this.session),this.renderer.scrollCursorIntoView(null,.5)},this.redo=function(){this.session.getUndoManager().redo(this.session),this.renderer.scrollCursorIntoView(null,.5)},this.destroy=function(){this.$toDestroy&&(this.$toDestroy.forEach((function(e){e.destroy()})),this.$toDestroy=null),this.$mouseHandler&&this.$mouseHandler.destroy(),this.renderer.destroy(),this._signal("destroy",this),this.session&&this.session.destroy(),this._$emitInputEvent&&this._$emitInputEvent.cancel(),this.removeAllListeners()},this.setAutoScrollEditorIntoView=function(e){if(e){var t,i=this,n=!1;this.$scrollAnchor||(this.$scrollAnchor=document.createElement("div"));var o=this.$scrollAnchor;o.style.cssText="position:absolute",this.container.insertBefore(o,this.container.firstChild);var s=this.on("changeSelection",(function(){n=!0})),r=this.renderer.on("beforeRender",(function(){n&&(t=i.renderer.container.getBoundingClientRect())})),a=this.renderer.on("afterRender",(function(){if(n&&t&&(i.isFocused()||i.searchBox&&i.searchBox.isFocused())){var e=i.renderer,s=e.$cursorLayer.$pixelPos,r=e.layerConfig,a=s.top-r.offset;null!=(n=s.top>=0&&a+t.top<0||!(s.topwindow.innerHeight)&&null)&&(o.style.top=a+"px",o.style.left=s.left+"px",o.style.height=r.lineHeight+"px",o.scrollIntoView(n)),n=t=null}}));this.setAutoScrollEditorIntoView=function(e){e||(delete this.setAutoScrollEditorIntoView,this.off("changeSelection",s),this.renderer.off("afterRender",a),this.renderer.off("beforeRender",r))}}},this.$resetCursorStyle=function(){var e=this.$cursorStyle||"ace",t=this.renderer.$cursorLayer;t&&(t.setSmoothBlinking(/smooth/.test(e)),t.isBlinking=!this.$readOnly&&"wide"!=e,o.setCssClass(t.element,"ace_slim-cursors",/slim/.test(e)))},this.prompt=function(e,t,i){var n=this;b.loadModule("./ext/prompt",(function(o){o.prompt(n,e,t,i)}))}}.call(x.prototype),b.defineOptions(x.prototype,"editor",{selectionStyle:{set:function(e){this.onSelectionChange(),this._signal("changeSelectionStyle",{data:e})},initialValue:"line"},highlightActiveLine:{set:function(){this.$updateHighlightActiveLine()},initialValue:!0},highlightSelectedWord:{set:function(e){this.$onSelectionChange()},initialValue:!0},readOnly:{set:function(e){this.textInput.setReadOnly(e),this.$resetCursorStyle()},initialValue:!1},copyWithEmptySelection:{set:function(e){this.textInput.setCopyWithEmptySelection(e)},initialValue:!1},cursorStyle:{set:function(e){this.$resetCursorStyle()},values:["ace","slim","smooth","wide"],initialValue:"ace"},mergeUndoDeltas:{values:[!1,!0,"always"],initialValue:!0},behavioursEnabled:{initialValue:!0},wrapBehavioursEnabled:{initialValue:!0},enableAutoIndent:{initialValue:!0},autoScrollEditorIntoView:{set:function(e){this.setAutoScrollEditorIntoView(e)}},keyboardHandler:{set:function(e){this.setKeyboardHandler(e)},get:function(){return this.$keybindingId},handlesSet:!0},value:{set:function(e){this.session.setValue(e)},get:function(){return this.getValue()},handlesSet:!0,hidden:!0},session:{set:function(e){this.setSession(e)},get:function(){return this.session},handlesSet:!0,hidden:!0},showLineNumbers:{set:function(e){this.renderer.$gutterLayer.setShowLineNumbers(e),this.renderer.$loop.schedule(this.renderer.CHANGE_GUTTER),e&&this.$relativeLineNumbers?y.attach(this):y.detach(this)},initialValue:!0},relativeLineNumbers:{set:function(e){this.$showLineNumbers&&e?y.attach(this):y.detach(this)}},placeholder:{set:function(e){this.$updatePlaceholder||(this.$updatePlaceholder=function(){var e=this.session&&(this.renderer.$composition||this.getValue());if(e&&this.renderer.placeholderNode)this.renderer.off("afterRender",this.$updatePlaceholder),o.removeCssClass(this.container,"ace_hasPlaceholder"),this.renderer.placeholderNode.remove(),this.renderer.placeholderNode=null;else if(e||this.renderer.placeholderNode)!e&&this.renderer.placeholderNode&&(this.renderer.placeholderNode.textContent=this.$placeholder||"");else{this.renderer.on("afterRender",this.$updatePlaceholder),o.addCssClass(this.container,"ace_hasPlaceholder");var t=o.createElement("div");t.className="ace_placeholder",t.textContent=this.$placeholder||"",this.renderer.placeholderNode=t,this.renderer.content.appendChild(this.renderer.placeholderNode)}}.bind(this),this.on("input",this.$updatePlaceholder)),this.$updatePlaceholder()}},hScrollBarAlwaysVisible:"renderer",vScrollBarAlwaysVisible:"renderer",highlightGutterLine:"renderer",animatedScroll:"renderer",showInvisibles:"renderer",showPrintMargin:"renderer",printMarginColumn:"renderer",printMargin:"renderer",fadeFoldWidgets:"renderer",showFoldWidgets:"renderer",displayIndentGuides:"renderer",showGutter:"renderer",fontSize:"renderer",fontFamily:"renderer",maxLines:"renderer",minLines:"renderer",scrollPastEnd:"renderer",fixedWidthGutter:"renderer",theme:"renderer",hasCssTransforms:"renderer",maxPixelHeight:"renderer",useTextareaForIME:"renderer",scrollSpeed:"$mouseHandler",dragDelay:"$mouseHandler",dragEnabled:"$mouseHandler",focusTimeout:"$mouseHandler",tooltipFollowsMouse:"$mouseHandler",firstLineNumber:"session",overwrite:"session",newLineMode:"session",useWorker:"session",useSoftTabs:"session",navigateWithinSoftTabs:"session",tabSize:"session",wrap:"session",indentedSoftWrap:"session",foldStyle:"session",mode:"session"});var y={getText:function(e,t){return(Math.abs(e.selection.lead.row-t)||t+1+(t<9?"·":""))+""},getWidth:function(e,t,i){return Math.max(t.toString().length,(i.lastRow+1).toString().length,2)*i.characterWidth},update:function(e,t){t.renderer.$loop.schedule(t.renderer.CHANGE_GUTTER)},attach:function(e){e.renderer.$gutterLayer.$renderer=this,e.on("changeSelection",this.update),this.update(null,e)},detach:function(e){e.renderer.$gutterLayer.$renderer==this&&(e.renderer.$gutterLayer.$renderer=null),e.off("changeSelection",this.update),this.update(null,e)}};t.Editor=x})),ace.define("ace/undomanager",["require","exports","module","ace/range"],(function(e,t,i){"use strict";var n=function(){this.$maxRev=0,this.$fromUndo=!1,this.reset()};(function(){this.addSession=function(e){this.$session=e},this.add=function(e,t,i){this.$fromUndo||e!=this.$lastDelta&&(this.$keepRedoStack||(this.$redoStack.length=0),!1!==t&&this.lastDeltas||(this.lastDeltas=[],this.$undoStack.push(this.lastDeltas),e.id=this.$rev=++this.$maxRev),"remove"!=e.action&&"insert"!=e.action||(this.$lastDelta=e),this.lastDeltas.push(e))},this.addSelection=function(e,t){this.selections.push({value:e,rev:t||this.$rev})},this.startNewGroup=function(){return this.lastDeltas=null,this.$rev},this.markIgnored=function(e,t){null==t&&(t=this.$rev+1);for(var i=this.$undoStack,n=i.length;n--;){var o=i[n][0];if(o.id<=e)break;o.id0},this.canRedo=function(){return this.$redoStack.length>0},this.bookmark=function(e){null==e&&(e=this.$rev),this.mark=e},this.isAtBookmark=function(){return this.$rev===this.mark},this.toJSON=function(){},this.fromJSON=function(){},this.hasUndo=this.canUndo,this.hasRedo=this.canRedo,this.isClean=this.isAtBookmark,this.markClean=this.bookmark,this.$prettyPrint=function(e){return e?a(e):a(this.$undoStack)+"\n---\n"+a(this.$redoStack)}}).call(n.prototype);var o=e("./range").Range,s=o.comparePoints;o.comparePoints;function r(e){return{row:e.row,column:e.column}}function a(e){if(e=e||this,Array.isArray(e))return e.map(a).join("\n");var t="";return e.action?(t="insert"==e.action?"+":"-",t+="["+e.lines+"]"):e.value&&(t=Array.isArray(e.value)?e.value.map(c).join("\n"):c(e.value)),e.start&&(t+=c(e)),(e.id||e.rev)&&(t+="\t("+(e.id||e.rev)+")"),t}function c(e){return e.start.row+":"+e.start.column+"=>"+e.end.row+":"+e.end.column}function l(e,t){var i="insert"==e.action,n="insert"==t.action;if(i&&n)if(s(t.start,e.end)>=0)u(t,e,-1);else{if(!(s(t.start,e.start)<=0))return null;u(e,t,1)}else if(i&&!n)if(s(t.start,e.end)>=0)u(t,e,-1);else{if(!(s(t.end,e.start)<=0))return null;u(e,t,-1)}else if(!i&&n)if(s(t.start,e.start)>=0)u(t,e,1);else{if(!(s(t.start,e.start)<=0))return null;u(e,t,1)}else if(!i&&!n)if(s(t.start,e.start)>=0)u(t,e,1);else{if(!(s(t.end,e.start)<=0))return null;u(e,t,-1)}return[t,e]}function h(e,t){for(var i=e.length;i--;)for(var n=0;n=0?u(e,t,-1):(s(e.start,t.start)<=0||u(e,o.fromPoints(t.start,e.start),-1),u(t,e,1));else if(!i&&n)s(t.start,e.end)>=0?u(t,e,-1):(s(t.start,e.start)<=0||u(t,o.fromPoints(e.start,t.start),-1),u(e,t,1));else if(!i&&!n)if(s(t.start,e.end)>=0)u(t,e,-1);else{var r,a;if(!(s(t.end,e.start)<=0))return s(e.start,t.start)<0&&(r=e,e=g(e,t.start)),s(e.end,t.end)>0&&(a=g(e,t.end)),f(t.end,e.start,e.end,-1),a&&!r&&(e.lines=a.lines,e.start=a.start,e.end=a.end,a=e),[t,r,a].filter(Boolean);u(e,t,-1)}return[t,e]}function u(e,t,i){f(e.start,t.start,t.end,i),f(e.end,t.start,t.end,i)}function f(e,t,i,n){e.row==(1==n?t:i).row&&(e.column+=n*(i.column-t.column)),e.row+=n*(i.row-t.row)}function g(e,t){var i=e.lines,n=e.end;e.end=r(t);var o=e.end.row-e.start.row,s=i.splice(o,i.length),a=o?t.column:t.column-e.start.column;return i.push(s[0].substring(0,a)),s[0]=s[0].substr(a),{start:r(t),end:n,lines:s,action:e.action}}function p(e,t){t=function(e){return{start:r(e.start),end:r(e.end),action:e.action,lines:e.lines.slice()}}(t);for(var i=e.length;i--;){for(var n=e[i],o=0;os&&(c=o.end.row+1,s=(o=t.getNextFoldLine(c,o))?o.start.row:1/0),c>n){for(;this.$lines.getLength()>a+1;)this.$lines.pop();break}(r=this.$lines.get(++a))?r.row=c:(r=this.$lines.createCell(c,e,this.session,l),this.$lines.push(r)),this.$renderCell(r,e,o,c),c++}this._signal("afterRender"),this.$updateGutterWidth(e)},this.$updateGutterWidth=function(e){var t=this.session,i=t.gutterRenderer||this.$renderer,n=t.$firstLineNumber,o=this.$lines.last()?this.$lines.last().text:"";(this.$fixedWidth||t.$useWrapMode)&&(o=t.getLength()+n-1);var s=i?i.getWidth(t,o,e):o.toString().length*e.characterWidth,r=this.$padding||this.$computePadding();(s+=r.left+r.right)===this.gutterWidth||isNaN(s)||(this.gutterWidth=s,this.element.parentNode.style.width=this.element.style.width=Math.ceil(this.gutterWidth)+"px",this._signal("changeGutterWidth",s))},this.$updateCursorRow=function(){if(this.$highlightGutterLine){var e=this.session.selection.getCursor();this.$cursorRow!==e.row&&(this.$cursorRow=e.row)}},this.updateLineHighlight=function(){if(this.$highlightGutterLine){var e=this.session.selection.cursor.row;if(this.$cursorRow=e,!this.$cursorCell||this.$cursorCell.row!=e){this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ",""));var t=this.$lines.cells;this.$cursorCell=null;for(var i=0;i=this.$cursorRow){if(n.row>this.$cursorRow){var o=this.session.getFoldLine(this.$cursorRow);if(!(i>0&&o&&o.start.row==t[i-1].row))break;n=t[i-1]}n.element.className="ace_gutter-active-line "+n.element.className,this.$cursorCell=n;break}}}}},this.scrollLines=function(e){var t=this.config;if(this.config=e,this.$updateCursorRow(),this.$lines.pageChanged(t,e))return this.update(e);this.$lines.moveContainer(e);var i=Math.min(e.lastRow+e.gutterOffset,this.session.getLength()-1),n=this.oldLastRow;if(this.oldLastRow=i,!t||n0;o--)this.$lines.shift();if(n>i)for(o=this.session.getFoldedRowCount(i+1,n);o>0;o--)this.$lines.pop();e.firstRown&&this.$lines.push(this.$renderLines(e,n+1,i)),this.updateLineHighlight(),this._signal("afterRender"),this.$updateGutterWidth(e)},this.$renderLines=function(e,t,i){for(var n=[],o=t,s=this.session.getNextFoldLine(o),r=s?s.start.row:1/0;o>r&&(o=s.end.row+1,r=(s=this.session.getNextFoldLine(o,s))?s.start.row:1/0),!(o>i);){var a=this.$lines.createCell(o,e,this.session,l);this.$renderCell(a,e,s,o),n.push(a),o++}return n},this.$renderCell=function(e,t,i,o){var s=e.element,r=this.session,a=s.childNodes[0],c=s.childNodes[1],l=r.$firstLineNumber,h=r.$breakpoints,d=r.$decorations,u=r.gutterRenderer||this.$renderer,f=this.$showFoldWidgets&&r.foldWidgets,g=i?i.start.row:Number.MAX_VALUE,p="ace_gutter-cell ";if(this.$highlightGutterLine&&(o==this.$cursorRow||i&&o=g&&this.$cursorRow<=i.end.row)&&(p+="ace_gutter-active-line ",this.$cursorCell!=e&&(this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ","")),this.$cursorCell=e)),h[o]&&(p+=h[o]),d[o]&&(p+=d[o]),this.$annotations[o]&&(p+=this.$annotations[o].className),s.className!=p&&(s.className=p),f){var m=f[o];null==m&&(m=f[o]=r.getFoldWidget(o))}if(m){p="ace_fold-widget ace_"+m;"start"==m&&o==g&&oi.right-t.right?"foldWidgets":void 0}}).call(c.prototype),t.Gutter=c})),ace.define("ace/layer/marker",["require","exports","module","ace/range","ace/lib/dom"],(function(e,t,i){"use strict";var n=e("../range").Range,o=e("../lib/dom"),s=function(e){this.element=o.createElement("div"),this.element.className="ace_layer ace_marker-layer",e.appendChild(this.element)};(function(){this.$padding=0,this.setPadding=function(e){this.$padding=e},this.setSession=function(e){this.session=e},this.setMarkers=function(e){this.markers=e},this.elt=function(e,t){var i=-1!=this.i&&this.element.childNodes[this.i];i?this.i++:(i=document.createElement("div"),this.element.appendChild(i),this.i=-1),i.style.cssText=t,i.className=e},this.update=function(e){if(e){var t;for(var i in this.config=e,this.i=0,this.markers){var n=this.markers[i];if(n.range){var o=n.range.clipRows(e.firstRow,e.lastRow);if(!o.isEmpty())if(o=o.toScreenRange(this.session),n.renderer){var s=this.$getTop(o.start.row,e),r=this.$padding+o.start.column*e.characterWidth;n.renderer(t,o,r,s,e)}else"fullLine"==n.type?this.drawFullLineMarker(t,o,n.clazz,e):"screenLine"==n.type?this.drawScreenLineMarker(t,o,n.clazz,e):o.isMultiLine()?"text"==n.type?this.drawTextMarker(t,o,n.clazz,e):this.drawMultiLineMarker(t,o,n.clazz,e):this.drawSingleLineMarker(t,o,n.clazz+" ace_start ace_br15",e)}else n.update(t,this,this.session,e)}if(-1!=this.i)for(;this.iu?4:0)|(l==c?8:0)),o,l==c?0:1,s)},this.drawMultiLineMarker=function(e,t,i,n,o){var s=this.$padding,r=n.lineHeight,a=this.$getTop(t.start.row,n),c=s+t.start.column*n.characterWidth;(o=o||"",this.session.$bidiHandler.isBidiRow(t.start.row))?((l=t.clone()).end.row=l.start.row,l.end.column=this.session.getLine(l.start.row).length,this.drawBidiSingleLineMarker(e,l,i+" ace_br1 ace_start",n,null,o)):this.elt(i+" ace_br1 ace_start","height:"+r+"px;right:0;top:"+a+"px;left:"+c+"px;"+(o||""));if(this.session.$bidiHandler.isBidiRow(t.end.row)){var l;(l=t.clone()).start.row=l.end.row,l.start.column=0,this.drawBidiSingleLineMarker(e,l,i+" ace_br12",n,null,o)}else{a=this.$getTop(t.end.row,n);var h=t.end.column*n.characterWidth;this.elt(i+" ace_br12","height:"+r+"px;width:"+h+"px;top:"+a+"px;left:"+s+"px;"+(o||""))}if(!((r=(t.end.row-t.start.row-1)*n.lineHeight)<=0)){a=this.$getTop(t.start.row+1,n);var d=(t.start.column?1:0)|(t.end.column?0:8);this.elt(i+(d?" ace_br"+d:""),"height:"+r+"px;right:0;top:"+a+"px;left:"+s+"px;"+(o||""))}},this.drawSingleLineMarker=function(e,t,i,n,o,s){if(this.session.$bidiHandler.isBidiRow(t.start.row))return this.drawBidiSingleLineMarker(e,t,i,n,o,s);var r=n.lineHeight,a=(t.end.column+(o||0)-t.start.column)*n.characterWidth,c=this.$getTop(t.start.row,n),l=this.$padding+t.start.column*n.characterWidth;this.elt(i,"height:"+r+"px;width:"+a+"px;top:"+c+"px;left:"+l+"px;"+(s||""))},this.drawBidiSingleLineMarker=function(e,t,i,n,o,s){var r=n.lineHeight,a=this.$getTop(t.start.row,n),c=this.$padding;this.session.$bidiHandler.getSelections(t.start.column,t.end.column).forEach((function(e){this.elt(i,"height:"+r+"px;width:"+e.width+(o||0)+"px;top:"+a+"px;left:"+(c+e.left)+"px;"+(s||""))}),this)},this.drawFullLineMarker=function(e,t,i,n,o){var s=this.$getTop(t.start.row,n),r=n.lineHeight;t.start.row!=t.end.row&&(r+=this.$getTop(t.end.row,n)-s),this.elt(i,"height:"+r+"px;top:"+s+"px;left:0;right:0;"+(o||""))},this.drawScreenLineMarker=function(e,t,i,n,o){var s=this.$getTop(t.start.row,n),r=n.lineHeight;this.elt(i,"height:"+r+"px;top:"+s+"px;left:0;right:0;"+(o||""))}}).call(s.prototype),t.Marker=s})),ace.define("ace/layer/text",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/layer/lines","ace/lib/event_emitter"],(function(e,t,i){"use strict";var n=e("../lib/oop"),o=e("../lib/dom"),s=e("../lib/lang"),r=e("./lines").Lines,a=e("../lib/event_emitter").EventEmitter,c=function(e){this.dom=o,this.element=this.dom.createElement("div"),this.element.className="ace_layer ace_text-layer",e.appendChild(this.element),this.$updateEolChar=this.$updateEolChar.bind(this),this.$lines=new r(this.element)};(function(){n.implement(this,a),this.EOF_CHAR="¶",this.EOL_CHAR_LF="¬",this.EOL_CHAR_CRLF="¤",this.EOL_CHAR=this.EOL_CHAR_LF,this.TAB_CHAR="—",this.SPACE_CHAR="·",this.$padding=0,this.MAX_LINE_LENGTH=1e4,this.$updateEolChar=function(){var e=this.session.doc,t="\n"==e.getNewLineCharacter()&&"windows"!=e.getNewLineMode()?this.EOL_CHAR_LF:this.EOL_CHAR_CRLF;if(this.EOL_CHAR!=t)return this.EOL_CHAR=t,!0},this.setPadding=function(e){this.$padding=e,this.element.style.margin="0 "+e+"px"},this.getLineHeight=function(){return this.$fontMetrics.$characterSize.height||0},this.getCharacterWidth=function(){return this.$fontMetrics.$characterSize.width||0},this.$setFontMetrics=function(e){this.$fontMetrics=e,this.$fontMetrics.on("changeCharacterSize",function(e){this._signal("changeCharacterSize",e)}.bind(this)),this.$pollSizeChanges()},this.checkForSizeChanges=function(){this.$fontMetrics.checkForSizeChanges()},this.$pollSizeChanges=function(){return this.$pollSizeChangesTimer=this.$fontMetrics.$pollSizeChanges()},this.setSession=function(e){this.session=e,e&&this.$computeTabString()},this.showInvisibles=!1,this.showSpaces=!1,this.showTabs=!1,this.showEOL=!1,this.setShowInvisibles=function(e){return this.showInvisibles!=e&&(this.showInvisibles=e,"string"==typeof e?(this.showSpaces=/tab/i.test(e),this.showTabs=/space/i.test(e),this.showEOL=/eol/i.test(e)):this.showSpaces=this.showTabs=this.showEOL=e,this.$computeTabString(),!0)},this.displayIndentGuides=!0,this.setDisplayIndentGuides=function(e){return this.displayIndentGuides!=e&&(this.displayIndentGuides=e,this.$computeTabString(),!0)},this.$tabStrings=[],this.onChangeTabSize=this.$computeTabString=function(){var e=this.session.getTabSize();this.tabSize=e;for(var t=this.$tabStrings=[0],i=1;ih&&(a=c.end.row+1,h=(c=this.session.getNextFoldLine(a,c))?c.start.row:1/0),!(a>o);){var d=s[r++];if(d){this.dom.removeChildren(d),this.$renderLine(d,a,a==h&&c),l&&(d.style.top=this.$lines.computeLineTop(a,e,this.session)+"px");var u=e.lineHeight*this.session.getRowLength(a)+"px";d.style.height!=u&&(l=!0,d.style.height=u)}a++}if(l)for(;r0;o--)this.$lines.shift();if(t.lastRow>e.lastRow)for(o=this.session.getFoldedRowCount(e.lastRow+1,t.lastRow);o>0;o--)this.$lines.pop();e.firstRowt.lastRow&&this.$lines.push(this.$renderLinesFragment(e,t.lastRow+1,e.lastRow))},this.$renderLinesFragment=function(e,t,i){for(var n=[],s=t,r=this.session.getNextFoldLine(s),a=r?r.start.row:1/0;s>a&&(s=r.end.row+1,a=(r=this.session.getNextFoldLine(s,r))?r.start.row:1/0),!(s>i);){var c=this.$lines.createCell(s,e,this.session),l=c.element;this.dom.removeChildren(l),o.setStyle(l.style,"height",this.$lines.computeLineHeight(s,e,this.session)+"px"),o.setStyle(l.style,"top",this.$lines.computeLineTop(s,e,this.session)+"px"),this.$renderLine(l,s,s==a&&r),this.$useLineGroups()?l.className="ace_line_group":l.className="ace_line",n.push(c),s++}return n},this.update=function(e){this.$lines.moveContainer(e),this.config=e;for(var t=e.firstRow,i=e.lastRow,n=this.$lines;n.getLength();)n.pop();n.push(this.$renderLinesFragment(e,t,i))},this.$textToken={text:!0,rparen:!0,lparen:!0},this.$renderToken=function(e,t,i,n){for(var o,r=/(\t)|( +)|([\x00-\x1f\x80-\xa0\xad\u1680\u180E\u2000-\u200f\u2028\u2029\u202F\u205F\uFEFF\uFFF9-\uFFFC]+)|(\u3000)|([\u1100-\u115F\u11A3-\u11A7\u11FA-\u11FF\u2329-\u232A\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFB\u3001-\u303E\u3041-\u3096\u3099-\u30FF\u3105-\u312D\u3131-\u318E\u3190-\u31BA\u31C0-\u31E3\u31F0-\u321E\u3220-\u3247\u3250-\u32FE\u3300-\u4DBF\u4E00-\uA48C\uA490-\uA4C6\uA960-\uA97C\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFAFF\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE66\uFE68-\uFE6B\uFF01-\uFF60\uFFE0-\uFFE6]|[\uD800-\uDBFF][\uDC00-\uDFFF])/g,a=this.dom.createFragment(this.element),c=0;o=r.exec(n);){var l=o[1],h=o[2],d=o[3],u=o[4],f=o[5];if(this.showSpaces||!h){var g=c!=o.index?n.slice(c,o.index):"";if(c=o.index+o[0].length,g&&a.appendChild(this.dom.createTextNode(g,this.element)),l){var p=this.session.getScreenTabSize(t+o.index);a.appendChild(this.$tabStrings[p].cloneNode(!0)),t+=p-1}else if(h){if(this.showSpaces)(b=this.dom.createElement("span")).className="ace_invisible ace_invisible_space",b.textContent=s.stringRepeat(this.SPACE_CHAR,h.length),a.appendChild(b);else a.appendChild(this.com.createTextNode(h,this.element))}else if(d){(b=this.dom.createElement("span")).className="ace_invisible ace_invisible_space ace_invalid",b.textContent=s.stringRepeat(this.SPACE_CHAR,d.length),a.appendChild(b)}else if(u){t+=1,(b=this.dom.createElement("span")).style.width=2*this.config.characterWidth+"px",b.className=this.showSpaces?"ace_cjk ace_invisible ace_invisible_space":"ace_cjk",b.textContent=this.showSpaces?this.SPACE_CHAR:u,a.appendChild(b)}else if(f){t+=1,(b=this.dom.createElement("span")).style.width=2*this.config.characterWidth+"px",b.className="ace_cjk",b.textContent=f,a.appendChild(b)}}}if(a.appendChild(this.dom.createTextNode(c?n.slice(c):n,this.element)),this.$textToken[i.type])e.appendChild(a);else{var m="ace_"+i.type.replace(/\./g," ace_"),b=this.dom.createElement("span");"fold"==i.type&&(b.style.width=i.value.length*this.config.characterWidth+"px"),b.className=m,b.appendChild(a),e.appendChild(b)}return t+n.length},this.renderIndentGuide=function(e,t,i){var n=t.search(this.$indentGuideRe);if(n<=0||n>=i)return t;if(" "==t[0]){for(var o=(n-=n%this.tabSize)/this.tabSize,s=0;s=r;)a=this.$renderToken(c,a,h,d.substring(0,r-n)),d=d.substring(r-n),n=r,c=this.$createLineElement(),e.appendChild(c),c.appendChild(this.dom.createTextNode(s.stringRepeat(" ",i.indent),this.element)),a=0,r=i[++o]||Number.MAX_VALUE;0!=d.length&&(n+=d.length,a=this.$renderToken(c,a,h,d))}}i[i.length-1]>this.MAX_LINE_LENGTH&&this.$renderOverflowMessage(c,a,null,"",!0)},this.$renderSimpleLine=function(e,t){var i=0,n=t[0],o=n.value;this.displayIndentGuides&&(o=this.renderIndentGuide(e,o)),o&&(i=this.$renderToken(e,i,n,o));for(var s=1;sthis.MAX_LINE_LENGTH)return this.$renderOverflowMessage(e,i,n,o);i=this.$renderToken(e,i,n,o)}},this.$renderOverflowMessage=function(e,t,i,n,o){i&&this.$renderToken(e,t,i,n.slice(0,this.MAX_LINE_LENGTH-t));var s=this.dom.createElement("span");s.className="ace_inline_button ace_keyword ace_toggle_wrap",s.textContent=o?"":"",e.appendChild(s)},this.$renderLine=function(e,t,i){if(i||0==i||(i=this.session.getFoldLine(t)),i)var n=this.$getFoldLineTokens(t,i);else n=this.session.getTokens(t);var o=e;if(n.length){var s=this.session.getRowSplitData(t);if(s&&s.length){this.$renderWrappedLine(e,n,s);o=e.lastChild}else{o=e;this.$useLineGroups()&&(o=this.$createLineElement(),e.appendChild(o)),this.$renderSimpleLine(o,n)}}else this.$useLineGroups()&&(o=this.$createLineElement(),e.appendChild(o));if(this.showEOL&&o){i&&(t=i.end.row);var r=this.dom.createElement("span");r.className="ace_invisible ace_invisible_eol",r.textContent=t==this.session.getLength()-1?this.EOF_CHAR:this.EOL_CHAR,o.appendChild(r)}},this.$getFoldLineTokens=function(e,t){var i=this.session,n=[];var o=i.getTokens(e);return t.walk((function(e,t,s,r,a){null!=e?n.push({type:"fold",value:e}):(a&&(o=i.getTokens(t)),o.length&&function(e,t,i){for(var o=0,s=0;s+e[o].value.lengthi-t&&(r=r.substring(0,i-t)),n.push({type:e[o].type,value:r}),s=t+r.length,o+=1);si?n.push({type:e[o].type,value:r.substring(0,i-s)}):n.push(e[o]),s+=r.length,o+=1}}(o,r,s))}),t.end.row,this.session.getLine(t.end.row).length),n},this.$useLineGroups=function(){return this.session.getUseWrapMode()},this.destroy=function(){}}).call(c.prototype),t.Text=c})),ace.define("ace/layer/cursor",["require","exports","module","ace/lib/dom"],(function(e,t,i){"use strict";var n=e("../lib/dom"),o=function(e){this.element=n.createElement("div"),this.element.className="ace_layer ace_cursor-layer",e.appendChild(this.element),this.isVisible=!1,this.isBlinking=!0,this.blinkInterval=1e3,this.smoothBlinking=!1,this.cursors=[],this.cursor=this.addCursor(),n.addCssClass(this.element,"ace_hidden-cursors"),this.$updateCursors=this.$updateOpacity.bind(this)};(function(){this.$updateOpacity=function(e){for(var t=this.cursors,i=t.length;i--;)n.setStyle(t[i].style,"opacity",e?"":"0")},this.$startCssAnimation=function(){for(var e=this.cursors,t=e.length;t--;)e[t].style.animationDuration=this.blinkInterval+"ms";setTimeout(function(){n.addCssClass(this.element,"ace_animate-blinking")}.bind(this))},this.$stopCssAnimation=function(){n.removeCssClass(this.element,"ace_animate-blinking")},this.$padding=0,this.setPadding=function(e){this.$padding=e},this.setSession=function(e){this.session=e},this.setBlinking=function(e){e!=this.isBlinking&&(this.isBlinking=e,this.restartTimer())},this.setBlinkInterval=function(e){e!=this.blinkInterval&&(this.blinkInterval=e,this.restartTimer())},this.setSmoothBlinking=function(e){e!=this.smoothBlinking&&(this.smoothBlinking=e,n.setCssClass(this.element,"ace_smooth-blinking",e),this.$updateCursors(!0),this.restartTimer())},this.addCursor=function(){var e=n.createElement("div");return e.className="ace_cursor",this.element.appendChild(e),this.cursors.push(e),e},this.removeCursor=function(){if(this.cursors.length>1){var e=this.cursors.pop();return e.parentNode.removeChild(e),e}},this.hideCursor=function(){this.isVisible=!1,n.addCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},this.showCursor=function(){this.isVisible=!0,n.removeCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},this.restartTimer=function(){var e=this.$updateCursors;if(clearInterval(this.intervalId),clearTimeout(this.timeoutId),this.$stopCssAnimation(),this.smoothBlinking&&n.removeCssClass(this.element,"ace_smooth-blinking"),e(!0),this.isBlinking&&this.blinkInterval&&this.isVisible)if(this.smoothBlinking&&setTimeout(function(){n.addCssClass(this.element,"ace_smooth-blinking")}.bind(this)),n.HAS_CSS_ANIMATION)this.$startCssAnimation();else{var t=function(){this.timeoutId=setTimeout((function(){e(!1)}),.6*this.blinkInterval)}.bind(this);this.intervalId=setInterval((function(){e(!0),t()}),this.blinkInterval),t()}else this.$stopCssAnimation()},this.getPixelPosition=function(e,t){if(!this.config||!this.session)return{left:0,top:0};e||(e=this.session.selection.getCursor());var i=this.session.documentToScreenPosition(e);return{left:this.$padding+(this.session.$bidiHandler.isBidiRow(i.row,e.row)?this.session.$bidiHandler.getPosLeft(i.column):i.column*this.config.characterWidth),top:(i.row-(t?this.config.firstRowScreen:0))*this.config.lineHeight}},this.isCursorInView=function(e,t){return e.top>=0&&e.tope.height+e.offset||r.top<0)&&i>1)){var a=this.cursors[o++]||this.addCursor(),c=a.style;this.drawCursor?this.drawCursor(a,r,e,t[i],this.session):this.isCursorInView(r,e)?(n.setStyle(c,"display","block"),n.translate(a,r.left,r.top),n.setStyle(c,"width",Math.round(e.characterWidth)+"px"),n.setStyle(c,"height",e.lineHeight+"px")):n.setStyle(c,"display","none")}}for(;this.cursors.length>o;)this.removeCursor();var l=this.session.getOverwrite();this.$setOverwrite(l),this.$pixelPos=r,this.restartTimer()},this.drawCursor=null,this.$setOverwrite=function(e){e!=this.overwrite&&(this.overwrite=e,e?n.addCssClass(this.element,"ace_overwrite-cursors"):n.removeCssClass(this.element,"ace_overwrite-cursors"))},this.destroy=function(){clearInterval(this.intervalId),clearTimeout(this.timeoutId)}}).call(o.prototype),t.Cursor=o})),ace.define("ace/scrollbar",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],(function(e,t,i){"use strict";var n=e("./lib/oop"),o=e("./lib/dom"),s=e("./lib/event"),r=e("./lib/event_emitter").EventEmitter,a=function(e){this.element=o.createElement("div"),this.element.className="ace_scrollbar ace_scrollbar"+this.classSuffix,this.inner=o.createElement("div"),this.inner.className="ace_scrollbar-inner",this.inner.textContent=" ",this.element.appendChild(this.inner),e.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,s.addListener(this.element,"scroll",this.onScroll.bind(this)),s.addListener(this.element,"mousedown",s.preventDefault)};(function(){n.implement(this,r),this.setVisible=function(e){this.element.style.display=e?"":"none",this.isVisible=e,this.coeff=1}}).call(a.prototype);var c=function(e,t){a.call(this,e),this.scrollTop=0,this.scrollHeight=0,t.$scrollbarWidth=this.width=o.scrollbarWidth(e.ownerDocument),this.inner.style.width=this.element.style.width=(this.width||15)+5+"px",this.$minWidth=0};n.inherits(c,a),function(){this.classSuffix="-v",this.onScroll=function(){if(!this.skipEvent){if(this.scrollTop=this.element.scrollTop,1!=this.coeff){var e=this.element.clientHeight/this.scrollHeight;this.scrollTop=this.scrollTop*(1-e)/(this.coeff-e)}this._emit("scroll",{data:this.scrollTop})}this.skipEvent=!1},this.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},this.setHeight=function(e){this.element.style.height=e+"px"},this.setInnerHeight=this.setScrollHeight=function(e){this.scrollHeight=e,e>32768?(this.coeff=32768/e,e=32768):1!=this.coeff&&(this.coeff=1),this.inner.style.height=e+"px"},this.setScrollTop=function(e){this.scrollTop!=e&&(this.skipEvent=!0,this.scrollTop=e,this.element.scrollTop=e*this.coeff)}}.call(c.prototype);var l=function(e,t){a.call(this,e),this.scrollLeft=0,this.height=t.$scrollbarWidth,this.inner.style.height=this.element.style.height=(this.height||15)+5+"px"};n.inherits(l,a),function(){this.classSuffix="-h",this.onScroll=function(){this.skipEvent||(this.scrollLeft=this.element.scrollLeft,this._emit("scroll",{data:this.scrollLeft})),this.skipEvent=!1},this.getHeight=function(){return this.isVisible?this.height:0},this.setWidth=function(e){this.element.style.width=e+"px"},this.setInnerWidth=function(e){this.inner.style.width=e+"px"},this.setScrollWidth=function(e){this.inner.style.width=e+"px"},this.setScrollLeft=function(e){this.scrollLeft!=e&&(this.skipEvent=!0,this.scrollLeft=this.element.scrollLeft=e)}}.call(l.prototype),t.ScrollBar=c,t.ScrollBarV=c,t.ScrollBarH=l,t.VScrollBar=c,t.HScrollBar=l})),ace.define("ace/renderloop",["require","exports","module","ace/lib/event"],(function(e,t,i){"use strict";var n=e("./lib/event"),o=function(e,t){this.onRender=e,this.pending=!1,this.changes=0,this.$recursionLimit=2,this.window=t||window;var i=this;this._flush=function(e){i.pending=!1;var t=i.changes;if(t&&(n.blockIdle(100),i.changes=0,i.onRender(t)),i.changes){if(i.$recursionLimit--<0)return;i.schedule()}else i.$recursionLimit=2}};(function(){this.schedule=function(e){this.changes=this.changes|e,this.changes&&!this.pending&&(n.nextFrame(this._flush),this.pending=!0)},this.clear=function(e){var t=this.changes;return this.changes=0,t}}).call(o.prototype),t.RenderLoop=o})),ace.define("ace/layer/font_metrics",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/lib/event","ace/lib/useragent","ace/lib/event_emitter"],(function(e,t,i){var n=e("../lib/oop"),o=e("../lib/dom"),s=e("../lib/lang"),r=e("../lib/event"),a=e("../lib/useragent"),c=e("../lib/event_emitter").EventEmitter,l="function"==typeof ResizeObserver,h=200,d=t.FontMetrics=function(e){this.el=o.createElement("div"),this.$setMeasureNodeStyles(this.el.style,!0),this.$main=o.createElement("div"),this.$setMeasureNodeStyles(this.$main.style),this.$measureNode=o.createElement("div"),this.$setMeasureNodeStyles(this.$measureNode.style),this.el.appendChild(this.$main),this.el.appendChild(this.$measureNode),e.appendChild(this.el),this.$measureNode.textContent=s.stringRepeat("X",256),this.$characterSize={width:0,height:0},l?this.$addObserver():this.checkForSizeChanges()};(function(){n.implement(this,c),this.$characterSize={width:0,height:0},this.$setMeasureNodeStyles=function(e,t){e.width=e.height="auto",e.left=e.top="0px",e.visibility="hidden",e.position="absolute",e.whiteSpace="pre",a.isIE<8?e["font-family"]="inherit":e.font="inherit",e.overflow=t?"hidden":"visible"},this.checkForSizeChanges=function(e){if(void 0===e&&(e=this.$measureSizes()),e&&(this.$characterSize.width!==e.width||this.$characterSize.height!==e.height)){this.$measureNode.style.fontWeight="bold";var t=this.$measureSizes();this.$measureNode.style.fontWeight="",this.$characterSize=e,this.charSizes=Object.create(null),this.allowBoldFonts=t&&t.width===e.width&&t.height===e.height,this._emit("changeCharacterSize",{data:e})}},this.$addObserver=function(){var e=this;this.$observer=new window.ResizeObserver((function(t){e.checkForSizeChanges()})),this.$observer.observe(this.$measureNode)},this.$pollSizeChanges=function(){if(this.$pollSizeChangesTimer||this.$observer)return this.$pollSizeChangesTimer;var e=this;return this.$pollSizeChangesTimer=r.onIdle((function t(){e.checkForSizeChanges(),r.onIdle(t,500)}),500)},this.setPolling=function(e){e?this.$pollSizeChanges():this.$pollSizeChangesTimer&&(clearInterval(this.$pollSizeChangesTimer),this.$pollSizeChangesTimer=0)},this.$measureSizes=function(e){var t={height:(e||this.$measureNode).clientHeight,width:(e||this.$measureNode).clientWidth/256};return 0===t.width||0===t.height?null:t},this.$measureCharWidth=function(e){return this.$main.textContent=s.stringRepeat(e,256),this.$main.getBoundingClientRect().width/256},this.getCharacterWidth=function(e){var t=this.charSizes[e];return void 0===t&&(t=this.charSizes[e]=this.$measureCharWidth(e)/this.$characterSize.width),t},this.destroy=function(){clearInterval(this.$pollSizeChangesTimer),this.$observer&&this.$observer.disconnect(),this.el&&this.el.parentNode&&this.el.parentNode.removeChild(this.el)},this.$getZoom=function e(t){return t&&t.parentElement?(window.getComputedStyle(t).zoom||1)*e(t.parentElement):1},this.$initTransformMeasureNodes=function(){var e=function(e,t){return["div",{style:"position: absolute;top:"+e+"px;left:"+t+"px;"}]};this.els=o.buildDom([e(0,0),e(h,0),e(0,h),e(h,h)],this.el)},this.transformCoordinates=function(e,t){e&&(e=s(1/this.$getZoom(this.el),e));function i(e,t,i){var n=e[1]*t[0]-e[0]*t[1];return[(-t[1]*i[0]+t[0]*i[1])/n,(+e[1]*i[0]-e[0]*i[1])/n]}function n(e,t){return[e[0]-t[0],e[1]-t[1]]}function o(e,t){return[e[0]+t[0],e[1]+t[1]]}function s(e,t){return[e*t[0],e*t[1]]}function r(e){var t=e.getBoundingClientRect();return[t.left,t.top]}this.els||this.$initTransformMeasureNodes();var a=r(this.els[0]),c=r(this.els[1]),l=r(this.els[2]),d=r(this.els[3]),u=i(n(d,c),n(d,l),n(o(c,l),o(d,a))),f=s(1+u[0],n(c,a)),g=s(1+u[1],n(l,a));if(t){var p=t,m=u[0]*p[0]/h+u[1]*p[1]/h+1,b=o(s(p[0],f),s(p[1],g));return o(s(1/m/h,b),a)}var v=n(e,a),w=i(n(f,s(u[0],v)),n(g,s(u[1],v)),v);return s(h,w)}}).call(d.prototype)})),ace.define("ace/virtual_renderer",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/config","ace/layer/gutter","ace/layer/marker","ace/layer/text","ace/layer/cursor","ace/scrollbar","ace/scrollbar","ace/renderloop","ace/layer/font_metrics","ace/lib/event_emitter","ace/lib/useragent"],(function(e,t,i){"use strict";var n=e("./lib/oop"),o=e("./lib/dom"),s=e("./config"),r=e("./layer/gutter").Gutter,a=e("./layer/marker").Marker,c=e("./layer/text").Text,l=e("./layer/cursor").Cursor,h=e("./scrollbar").HScrollBar,d=e("./scrollbar").VScrollBar,u=e("./renderloop").RenderLoop,f=e("./layer/font_metrics").FontMetrics,g=e("./lib/event_emitter").EventEmitter,p='.ace_br1 {border-top-left-radius : 3px;}.ace_br2 {border-top-right-radius : 3px;}.ace_br3 {border-top-left-radius : 3px; border-top-right-radius: 3px;}.ace_br4 {border-bottom-right-radius: 3px;}.ace_br5 {border-top-left-radius : 3px; border-bottom-right-radius: 3px;}.ace_br6 {border-top-right-radius : 3px; border-bottom-right-radius: 3px;}.ace_br7 {border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px;}.ace_br8 {border-bottom-left-radius : 3px;}.ace_br9 {border-top-left-radius : 3px; border-bottom-left-radius: 3px;}.ace_br10{border-top-right-radius : 3px; border-bottom-left-radius: 3px;}.ace_br11{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br12{border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br13{border-top-left-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br14{border-top-right-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br15{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_editor {position: relative;overflow: hidden;padding: 0;font: 12px/normal \'Monaco\', \'Menlo\', \'Ubuntu Mono\', \'Consolas\', \'source-code-pro\', monospace;direction: ltr;text-align: left;-webkit-tap-highlight-color: rgba(0, 0, 0, 0);}.ace_scroller {position: absolute;overflow: hidden;top: 0;bottom: 0;background-color: inherit;-ms-user-select: none;-moz-user-select: none;-webkit-user-select: none;user-select: none;cursor: text;}.ace_content {position: absolute;box-sizing: border-box;min-width: 100%;contain: style size layout;font-variant-ligatures: no-common-ligatures;}.ace_dragging .ace_scroller:before{position: absolute;top: 0;left: 0;right: 0;bottom: 0;content: \'\';background: rgba(250, 250, 250, 0.01);z-index: 1000;}.ace_dragging.ace_dark .ace_scroller:before{background: rgba(0, 0, 0, 0.01);}.ace_selecting, .ace_selecting * {cursor: text !important;}.ace_gutter {position: absolute;overflow : hidden;width: auto;top: 0;bottom: 0;left: 0;cursor: default;z-index: 4;-ms-user-select: none;-moz-user-select: none;-webkit-user-select: none;user-select: none;contain: style size layout;}.ace_gutter-active-line {position: absolute;left: 0;right: 0;}.ace_scroller.ace_scroll-left {box-shadow: 17px 0 16px -16px rgba(0, 0, 0, 0.4) inset;}.ace_gutter-cell {position: absolute;top: 0;left: 0;right: 0;padding-left: 19px;padding-right: 6px;background-repeat: no-repeat;}.ace_gutter-cell.ace_error {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAABOFBMVEX/////////QRswFAb/Ui4wFAYwFAYwFAaWGAfDRymzOSH/PxswFAb/SiUwFAYwFAbUPRvjQiDllog5HhHdRybsTi3/Tyv9Tir+Syj/UC3////XurebMBIwFAb/RSHbPx/gUzfdwL3kzMivKBAwFAbbvbnhPx66NhowFAYwFAaZJg8wFAaxKBDZurf/RB6mMxb/SCMwFAYwFAbxQB3+RB4wFAb/Qhy4Oh+4QifbNRcwFAYwFAYwFAb/QRzdNhgwFAYwFAbav7v/Uy7oaE68MBK5LxLewr/r2NXewLswFAaxJw4wFAbkPRy2PyYwFAaxKhLm1tMwFAazPiQwFAaUGAb/QBrfOx3bvrv/VC/maE4wFAbRPBq6MRO8Qynew8Dp2tjfwb0wFAbx6eju5+by6uns4uH9/f36+vr/GkHjAAAAYnRSTlMAGt+64rnWu/bo8eAA4InH3+DwoN7j4eLi4xP99Nfg4+b+/u9B/eDs1MD1mO7+4PHg2MXa347g7vDizMLN4eG+Pv7i5evs/v79yu7S3/DV7/498Yv24eH+4ufQ3Ozu/v7+y13sRqwAAADLSURBVHjaZc/XDsFgGIBhtDrshlitmk2IrbHFqL2pvXf/+78DPokj7+Fz9qpU/9UXJIlhmPaTaQ6QPaz0mm+5gwkgovcV6GZzd5JtCQwgsxoHOvJO15kleRLAnMgHFIESUEPmawB9ngmelTtipwwfASilxOLyiV5UVUyVAfbG0cCPHig+GBkzAENHS0AstVF6bacZIOzgLmxsHbt2OecNgJC83JERmePUYq8ARGkJx6XtFsdddBQgZE2nPR6CICZhawjA4Fb/chv+399kfR+MMMDGOQAAAABJRU5ErkJggg==");background-repeat: no-repeat;background-position: 2px center;}.ace_gutter-cell.ace_warning {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAmVBMVEX///8AAAD///8AAAAAAABPSzb/5sAAAAB/blH/73z/ulkAAAAAAAD85pkAAAAAAAACAgP/vGz/rkDerGbGrV7/pkQICAf////e0IsAAAD/oED/qTvhrnUAAAD/yHD/njcAAADuv2r/nz//oTj/p064oGf/zHAAAAA9Nir/tFIAAAD/tlTiuWf/tkIAAACynXEAAAAAAAAtIRW7zBpBAAAAM3RSTlMAABR1m7RXO8Ln31Z36zT+neXe5OzooRDfn+TZ4p3h2hTf4t3k3ucyrN1K5+Xaks52Sfs9CXgrAAAAjklEQVR42o3PbQ+CIBQFYEwboPhSYgoYunIqqLn6/z8uYdH8Vmdnu9vz4WwXgN/xTPRD2+sgOcZjsge/whXZgUaYYvT8QnuJaUrjrHUQreGczuEafQCO/SJTufTbroWsPgsllVhq3wJEk2jUSzX3CUEDJC84707djRc5MTAQxoLgupWRwW6UB5fS++NV8AbOZgnsC7BpEAAAAABJRU5ErkJggg==");background-position: 2px center;}.ace_gutter-cell.ace_info {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAAAAAA6mKC9AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAAJ0Uk5TAAB2k804AAAAPklEQVQY02NgIB68QuO3tiLznjAwpKTgNyDbMegwisCHZUETUZV0ZqOquBpXj2rtnpSJT1AEnnRmL2OgGgAAIKkRQap2htgAAAAASUVORK5CYII=");background-position: 2px center;}.ace_dark .ace_gutter-cell.ace_info {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAAJFBMVEUAAAChoaGAgIAqKiq+vr6tra1ZWVmUlJSbm5s8PDxubm56enrdgzg3AAAAAXRSTlMAQObYZgAAAClJREFUeNpjYMAPdsMYHegyJZFQBlsUlMFVCWUYKkAZMxZAGdxlDMQBAG+TBP4B6RyJAAAAAElFTkSuQmCC");}.ace_scrollbar {contain: strict;position: absolute;right: 0;bottom: 0;z-index: 6;}.ace_scrollbar-inner {position: absolute;cursor: text;left: 0;top: 0;}.ace_scrollbar-v{overflow-x: hidden;overflow-y: scroll;top: 0;}.ace_scrollbar-h {overflow-x: scroll;overflow-y: hidden;left: 0;}.ace_print-margin {position: absolute;height: 100%;}.ace_text-input {position: absolute;z-index: 0;width: 0.5em;height: 1em;opacity: 0;background: transparent;-moz-appearance: none;appearance: none;border: none;resize: none;outline: none;overflow: hidden;font: inherit;padding: 0 1px;margin: 0 -1px;contain: strict;-ms-user-select: text;-moz-user-select: text;-webkit-user-select: text;user-select: text;white-space: pre!important;}.ace_text-input.ace_composition {background: transparent;color: inherit;z-index: 1000;opacity: 1;}.ace_composition_placeholder { color: transparent }.ace_composition_marker { border-bottom: 1px solid;position: absolute;border-radius: 0;margin-top: 1px;}[ace_nocontext=true] {transform: none!important;filter: none!important;clip-path: none!important;mask : none!important;contain: none!important;perspective: none!important;mix-blend-mode: initial!important;z-index: auto;}.ace_layer {z-index: 1;position: absolute;overflow: hidden;word-wrap: normal;white-space: pre;height: 100%;width: 100%;box-sizing: border-box;pointer-events: none;}.ace_gutter-layer {position: relative;width: auto;text-align: right;pointer-events: auto;height: 1000000px;contain: style size layout;}.ace_text-layer {font: inherit !important;position: absolute;height: 1000000px;width: 1000000px;contain: style size layout;}.ace_text-layer > .ace_line, .ace_text-layer > .ace_line_group {contain: style size layout;position: absolute;top: 0;left: 0;right: 0;}.ace_hidpi .ace_text-layer,.ace_hidpi .ace_gutter-layer,.ace_hidpi .ace_content,.ace_hidpi .ace_gutter {contain: strict;will-change: transform;}.ace_hidpi .ace_text-layer > .ace_line, .ace_hidpi .ace_text-layer > .ace_line_group {contain: strict;}.ace_cjk {display: inline-block;text-align: center;}.ace_cursor-layer {z-index: 4;}.ace_cursor {z-index: 4;position: absolute;box-sizing: border-box;border-left: 2px solid;transform: translatez(0);}.ace_multiselect .ace_cursor {border-left-width: 1px;}.ace_slim-cursors .ace_cursor {border-left-width: 1px;}.ace_overwrite-cursors .ace_cursor {border-left-width: 0;border-bottom: 1px solid;}.ace_hidden-cursors .ace_cursor {opacity: 0.2;}.ace_hasPlaceholder .ace_hidden-cursors .ace_cursor {opacity: 0;}.ace_smooth-blinking .ace_cursor {transition: opacity 0.18s;}.ace_animate-blinking .ace_cursor {animation-duration: 1000ms;animation-timing-function: step-end;animation-name: blink-ace-animate;animation-iteration-count: infinite;}.ace_animate-blinking.ace_smooth-blinking .ace_cursor {animation-duration: 1000ms;animation-timing-function: ease-in-out;animation-name: blink-ace-animate-smooth;}@keyframes blink-ace-animate {from, to { opacity: 1; }60% { opacity: 0; }}@keyframes blink-ace-animate-smooth {from, to { opacity: 1; }45% { opacity: 1; }60% { opacity: 0; }85% { opacity: 0; }}.ace_marker-layer .ace_step, .ace_marker-layer .ace_stack {position: absolute;z-index: 3;}.ace_marker-layer .ace_selection {position: absolute;z-index: 5;}.ace_marker-layer .ace_bracket {position: absolute;z-index: 6;}.ace_marker-layer .ace_error_bracket {position: absolute;border-bottom: 1px solid #DE5555;border-radius: 0;}.ace_marker-layer .ace_active-line {position: absolute;z-index: 2;}.ace_marker-layer .ace_selected-word {position: absolute;z-index: 4;box-sizing: border-box;}.ace_line .ace_fold {box-sizing: border-box;display: inline-block;height: 11px;margin-top: -2px;vertical-align: middle;background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACJJREFUeNpi+P//fxgTAwPDBxDxD078RSX+YeEyDFMCIMAAI3INmXiwf2YAAAAASUVORK5CYII=");background-repeat: no-repeat, repeat-x;background-position: center center, top left;color: transparent;border: 1px solid black;border-radius: 2px;cursor: pointer;pointer-events: auto;}.ace_dark .ace_fold {}.ace_fold:hover{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACBJREFUeNpi+P//fz4TAwPDZxDxD5X4i5fLMEwJgAADAEPVDbjNw87ZAAAAAElFTkSuQmCC");}.ace_tooltip {background-color: #FFF;background-image: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.1));border: 1px solid gray;border-radius: 1px;box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);color: black;max-width: 100%;padding: 3px 4px;position: fixed;z-index: 999999;box-sizing: border-box;cursor: default;white-space: pre;word-wrap: break-word;line-height: normal;font-style: normal;font-weight: normal;letter-spacing: normal;pointer-events: none;}.ace_folding-enabled > .ace_gutter-cell {padding-right: 13px;}.ace_fold-widget {box-sizing: border-box;margin: 0 -12px 0 1px;display: none;width: 11px;vertical-align: top;background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42mWKsQ0AMAzC8ixLlrzQjzmBiEjp0A6WwBCSPgKAXoLkqSot7nN3yMwR7pZ32NzpKkVoDBUxKAAAAABJRU5ErkJggg==");background-repeat: no-repeat;background-position: center;border-radius: 3px;border: 1px solid transparent;cursor: pointer;}.ace_folding-enabled .ace_fold-widget {display: inline-block; }.ace_fold-widget.ace_end {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42m3HwQkAMAhD0YzsRchFKI7sAikeWkrxwScEB0nh5e7KTPWimZki4tYfVbX+MNl4pyZXejUO1QAAAABJRU5ErkJggg==");}.ace_fold-widget.ace_closed {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAGCAYAAAAG5SQMAAAAOUlEQVR42jXKwQkAMAgDwKwqKD4EwQ26sSOkVWjgIIHAzPiCgaqiqnJHZnKICBERHN194O5b9vbLuAVRL+l0YWnZAAAAAElFTkSuQmCCXA==");}.ace_fold-widget:hover {border: 1px solid rgba(0, 0, 0, 0.3);background-color: rgba(255, 255, 255, 0.2);box-shadow: 0 1px 1px rgba(255, 255, 255, 0.7);}.ace_fold-widget:active {border: 1px solid rgba(0, 0, 0, 0.4);background-color: rgba(0, 0, 0, 0.05);box-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);}.ace_dark .ace_fold-widget {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHklEQVQIW2P4//8/AzoGEQ7oGCaLLAhWiSwB146BAQCSTPYocqT0AAAAAElFTkSuQmCC");}.ace_dark .ace_fold-widget.ace_end {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAH0lEQVQIW2P4//8/AxQ7wNjIAjDMgC4AxjCVKBirIAAF0kz2rlhxpAAAAABJRU5ErkJggg==");}.ace_dark .ace_fold-widget.ace_closed {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAFCAYAAACAcVaiAAAAHElEQVQIW2P4//+/AxAzgDADlOOAznHAKgPWAwARji8UIDTfQQAAAABJRU5ErkJggg==");}.ace_dark .ace_fold-widget:hover {box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);background-color: rgba(255, 255, 255, 0.1);}.ace_dark .ace_fold-widget:active {box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);}.ace_inline_button {border: 1px solid lightgray;display: inline-block;margin: -1px 8px;padding: 0 5px;pointer-events: auto;cursor: pointer;}.ace_inline_button:hover {border-color: gray;background: rgba(200,200,200,0.2);display: inline-block;pointer-events: auto;}.ace_fold-widget.ace_invalid {background-color: #FFB4B4;border-color: #DE5555;}.ace_fade-fold-widgets .ace_fold-widget {transition: opacity 0.4s ease 0.05s;opacity: 0;}.ace_fade-fold-widgets:hover .ace_fold-widget {transition: opacity 0.05s ease 0.05s;opacity:1;}.ace_underline {text-decoration: underline;}.ace_bold {font-weight: bold;}.ace_nobold .ace_bold {font-weight: normal;}.ace_italic {font-style: italic;}.ace_error-marker {background-color: rgba(255, 0, 0,0.2);position: absolute;z-index: 9;}.ace_highlight-marker {background-color: rgba(255, 255, 0,0.2);position: absolute;z-index: 8;}.ace_mobile-menu {position: absolute;line-height: 1.5;border-radius: 4px;-ms-user-select: none;-moz-user-select: none;-webkit-user-select: none;user-select: none;background: white;box-shadow: 1px 3px 2px grey;border: 1px solid #dcdcdc;color: black;}.ace_dark > .ace_mobile-menu {background: #333;color: #ccc;box-shadow: 1px 3px 2px grey;border: 1px solid #444;}.ace_mobile-button {padding: 2px;cursor: pointer;overflow: hidden;}.ace_mobile-button:hover {background-color: #eee;opacity:1;}.ace_mobile-button:active {background-color: #ddd;}.ace_placeholder {font-family: arial;transform: scale(0.9);transform-origin: left;white-space: pre;opacity: 0.7;margin: 0 10px;}',m=e("./lib/useragent"),b=m.isIE;o.importCssString(p,"ace_editor.css");var v=function(e,t){var i=this;this.container=e||o.createElement("div"),o.addCssClass(this.container,"ace_editor"),o.HI_DPI&&o.addCssClass(this.container,"ace_hidpi"),this.setTheme(t),this.$gutter=o.createElement("div"),this.$gutter.className="ace_gutter",this.container.appendChild(this.$gutter),this.$gutter.setAttribute("aria-hidden",!0),this.scroller=o.createElement("div"),this.scroller.className="ace_scroller",this.container.appendChild(this.scroller),this.content=o.createElement("div"),this.content.className="ace_content",this.scroller.appendChild(this.content),this.$gutterLayer=new r(this.$gutter),this.$gutterLayer.on("changeGutterWidth",this.onGutterResize.bind(this)),this.$markerBack=new a(this.content);var n=this.$textLayer=new c(this.content);this.canvas=n.element,this.$markerFront=new a(this.content),this.$cursorLayer=new l(this.content),this.$horizScroll=!1,this.$vScroll=!1,this.scrollBar=this.scrollBarV=new d(this.container,this),this.scrollBarH=new h(this.container,this),this.scrollBarV.on("scroll",(function(e){i.$scrollAnimation||i.session.setScrollTop(e.data-i.scrollMargin.top)})),this.scrollBarH.on("scroll",(function(e){i.$scrollAnimation||i.session.setScrollLeft(e.data-i.scrollMargin.left)})),this.scrollTop=0,this.scrollLeft=0,this.cursorPos={row:0,column:0},this.$fontMetrics=new f(this.container),this.$textLayer.$setFontMetrics(this.$fontMetrics),this.$textLayer.on("changeCharacterSize",(function(e){i.updateCharacterSize(),i.onResize(!0,i.gutterWidth,i.$size.width,i.$size.height),i._signal("changeCharacterSize",e)})),this.$size={width:0,height:0,scrollerHeight:0,scrollerWidth:0,$dirty:!0},this.layerConfig={width:1,padding:0,firstRow:0,firstRowScreen:0,lastRow:0,lineHeight:0,characterWidth:0,minHeight:1,maxHeight:1,offset:0,height:1,gutterOffset:1},this.scrollMargin={left:0,right:0,top:0,bottom:0,v:0,h:0},this.margin={left:0,right:0,top:0,bottom:0,v:0,h:0},this.$keepTextAreaAtCursor=!m.isIOS,this.$loop=new u(this.$renderChanges.bind(this),this.container.ownerDocument.defaultView),this.$loop.schedule(this.CHANGE_FULL),this.updateCharacterSize(),this.setPadding(4),s.resetOptions(this),s._signal("renderer",this)};(function(){this.CHANGE_CURSOR=1,this.CHANGE_MARKER=2,this.CHANGE_GUTTER=4,this.CHANGE_SCROLL=8,this.CHANGE_LINES=16,this.CHANGE_TEXT=32,this.CHANGE_SIZE=64,this.CHANGE_MARKER_BACK=128,this.CHANGE_MARKER_FRONT=256,this.CHANGE_FULL=512,this.CHANGE_H_SCROLL=1024,n.implement(this,g),this.updateCharacterSize=function(){this.$textLayer.allowBoldFonts!=this.$allowBoldFonts&&(this.$allowBoldFonts=this.$textLayer.allowBoldFonts,this.setStyle("ace_nobold",!this.$allowBoldFonts)),this.layerConfig.characterWidth=this.characterWidth=this.$textLayer.getCharacterWidth(),this.layerConfig.lineHeight=this.lineHeight=this.$textLayer.getLineHeight(),this.$updatePrintMargin(),o.setStyle(this.scroller.style,"line-height",this.lineHeight+"px")},this.setSession=function(e){this.session&&this.session.doc.off("changeNewLineMode",this.onChangeNewLineMode),this.session=e,e&&this.scrollMargin.top&&e.getScrollTop()<=0&&e.setScrollTop(-this.scrollMargin.top),this.$cursorLayer.setSession(e),this.$markerBack.setSession(e),this.$markerFront.setSession(e),this.$gutterLayer.setSession(e),this.$textLayer.setSession(e),e&&(this.$loop.schedule(this.CHANGE_FULL),this.session.$setFontMetrics(this.$fontMetrics),this.scrollBarH.scrollLeft=this.scrollBarV.scrollTop=null,this.onChangeNewLineMode=this.onChangeNewLineMode.bind(this),this.onChangeNewLineMode(),this.session.doc.on("changeNewLineMode",this.onChangeNewLineMode))},this.updateLines=function(e,t,i){if(void 0===t&&(t=1/0),this.$changedLines?(this.$changedLines.firstRow>e&&(this.$changedLines.firstRow=e),this.$changedLines.lastRowthis.layerConfig.lastRow||this.$loop.schedule(this.CHANGE_LINES)},this.onChangeNewLineMode=function(){this.$loop.schedule(this.CHANGE_TEXT),this.$textLayer.$updateEolChar(),this.session.$bidiHandler.setEolChar(this.$textLayer.EOL_CHAR)},this.onChangeTabSize=function(){this.$loop.schedule(this.CHANGE_TEXT|this.CHANGE_MARKER),this.$textLayer.onChangeTabSize()},this.updateText=function(){this.$loop.schedule(this.CHANGE_TEXT)},this.updateFull=function(e){e?this.$renderChanges(this.CHANGE_FULL,!0):this.$loop.schedule(this.CHANGE_FULL)},this.updateFontSize=function(){this.$textLayer.checkForSizeChanges()},this.$changes=0,this.$updateSizeAsync=function(){this.$loop.pending?this.$size.$dirty=!0:this.onResize()},this.onResize=function(e,t,i,n){if(!(this.resizing>2)){this.resizing>0?this.resizing++:this.resizing=e?1:0;var o=this.container;n||(n=o.clientHeight||o.scrollHeight),i||(i=o.clientWidth||o.scrollWidth);var s=this.$updateCachedSize(e,t,i,n);if(!this.$size.scrollerHeight||!i&&!n)return this.resizing=0;e&&(this.$gutterLayer.$padding=null),e?this.$renderChanges(s|this.$changes,!0):this.$loop.schedule(s|this.$changes),this.resizing&&(this.resizing=0),this.scrollBarV.scrollLeft=this.scrollBarV.scrollTop=null}},this.$updateCachedSize=function(e,t,i,n){n-=this.$extraHeight||0;var s=0,r=this.$size,a={width:r.width,height:r.height,scrollerHeight:r.scrollerHeight,scrollerWidth:r.scrollerWidth};if(n&&(e||r.height!=n)&&(r.height=n,s|=this.CHANGE_SIZE,r.scrollerHeight=r.height,this.$horizScroll&&(r.scrollerHeight-=this.scrollBarH.getHeight()),this.scrollBarV.element.style.bottom=this.scrollBarH.getHeight()+"px",s|=this.CHANGE_SCROLL),i&&(e||r.width!=i)){s|=this.CHANGE_SIZE,r.width=i,null==t&&(t=this.$showGutter?this.$gutter.offsetWidth:0),this.gutterWidth=t,o.setStyle(this.scrollBarH.element.style,"left",t+"px"),o.setStyle(this.scroller.style,"left",t+this.margin.left+"px"),r.scrollerWidth=Math.max(0,i-t-this.scrollBarV.getWidth()-this.margin.h),o.setStyle(this.$gutter.style,"left",this.margin.left+"px");var c=this.scrollBarV.getWidth()+"px";o.setStyle(this.scrollBarH.element.style,"right",c),o.setStyle(this.scroller.style,"right",c),o.setStyle(this.scroller.style,"bottom",this.scrollBarH.getHeight()),(this.session&&this.session.getUseWrapMode()&&this.adjustWrapLimit()||e)&&(s|=this.CHANGE_FULL)}return r.$dirty=!i||!n,s&&this._signal("resize",a),s},this.onGutterResize=function(e){var t=this.$showGutter?e:0;t!=this.gutterWidth&&(this.$changes|=this.$updateCachedSize(!0,t,this.$size.width,this.$size.height)),this.session.getUseWrapMode()&&this.adjustWrapLimit()||this.$size.$dirty?this.$loop.schedule(this.CHANGE_FULL):this.$computeLayerConfig()},this.adjustWrapLimit=function(){var e=this.$size.scrollerWidth-2*this.$padding,t=Math.floor(e/this.characterWidth);return this.session.adjustWrapLimit(t,this.$showPrintMargin&&this.$printMarginColumn)},this.setAnimatedScroll=function(e){this.setOption("animatedScroll",e)},this.getAnimatedScroll=function(){return this.$animatedScroll},this.setShowInvisibles=function(e){this.setOption("showInvisibles",e),this.session.$bidiHandler.setShowInvisibles(e)},this.getShowInvisibles=function(){return this.getOption("showInvisibles")},this.getDisplayIndentGuides=function(){return this.getOption("displayIndentGuides")},this.setDisplayIndentGuides=function(e){this.setOption("displayIndentGuides",e)},this.setShowPrintMargin=function(e){this.setOption("showPrintMargin",e)},this.getShowPrintMargin=function(){return this.getOption("showPrintMargin")},this.setPrintMarginColumn=function(e){this.setOption("printMarginColumn",e)},this.getPrintMarginColumn=function(){return this.getOption("printMarginColumn")},this.getShowGutter=function(){return this.getOption("showGutter")},this.setShowGutter=function(e){return this.setOption("showGutter",e)},this.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},this.setFadeFoldWidgets=function(e){this.setOption("fadeFoldWidgets",e)},this.setHighlightGutterLine=function(e){this.setOption("highlightGutterLine",e)},this.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},this.$updatePrintMargin=function(){if(this.$showPrintMargin||this.$printMarginEl){if(!this.$printMarginEl){var e=o.createElement("div");e.className="ace_layer ace_print-margin-layer",this.$printMarginEl=o.createElement("div"),this.$printMarginEl.className="ace_print-margin",e.appendChild(this.$printMarginEl),this.content.insertBefore(e,this.content.firstChild)}var t=this.$printMarginEl.style;t.left=Math.round(this.characterWidth*this.$printMarginColumn+this.$padding)+"px",t.visibility=this.$showPrintMargin?"visible":"hidden",this.session&&-1==this.session.$wrap&&this.adjustWrapLimit()}},this.getContainerElement=function(){return this.container},this.getMouseEventTarget=function(){return this.scroller},this.getTextAreaContainer=function(){return this.container},this.$moveTextAreaToCursor=function(){if(!this.$isMousePressed){var e=this.textarea.style,t=this.$composition;if(this.$keepTextAreaAtCursor||t){var i=this.$cursorLayer.$pixelPos;if(i){t&&t.markerRange&&(i=this.$cursorLayer.getPixelPosition(t.markerRange.start,!0));var n=this.layerConfig,s=i.top,r=i.left;s-=n.offset;var a=t&&t.useTextareaForIME?this.lineHeight:b?0:1;if(s<0||s>n.height-a)o.translate(this.textarea,0,0);else{var c=1,l=this.$size.height-a;if(t)if(t.useTextareaForIME){var h=this.textarea.value;c=this.characterWidth*this.session.$getStringScreenWidth(h)[0]}else s+=this.lineHeight+2;else s+=this.lineHeight;(r-=this.scrollLeft)>this.$size.scrollerWidth-c&&(r=this.$size.scrollerWidth-c),r+=this.gutterWidth+this.margin.left,o.setStyle(e,"height",a+"px"),o.setStyle(e,"width",c+"px"),o.translate(this.textarea,Math.min(r,this.$size.scrollerWidth-c),Math.min(s,l))}}}else o.translate(this.textarea,-100,0)}},this.getFirstVisibleRow=function(){return this.layerConfig.firstRow},this.getFirstFullyVisibleRow=function(){return this.layerConfig.firstRow+(0===this.layerConfig.offset?0:1)},this.getLastFullyVisibleRow=function(){var e=this.layerConfig,t=e.lastRow;return this.session.documentToScreenRow(t,0)*e.lineHeight-this.session.getScrollTop()>e.height-e.lineHeight?t-1:t},this.getLastVisibleRow=function(){return this.layerConfig.lastRow},this.$padding=null,this.setPadding=function(e){this.$padding=e,this.$textLayer.setPadding(e),this.$cursorLayer.setPadding(e),this.$markerFront.setPadding(e),this.$markerBack.setPadding(e),this.$loop.schedule(this.CHANGE_FULL),this.$updatePrintMargin()},this.setScrollMargin=function(e,t,i,n){var o=this.scrollMargin;o.top=0|e,o.bottom=0|t,o.right=0|n,o.left=0|i,o.v=o.top+o.bottom,o.h=o.left+o.right,o.top&&this.scrollTop<=0&&this.session&&this.session.setScrollTop(-o.top),this.updateFull()},this.setMargin=function(e,t,i,n){var o=this.margin;o.top=0|e,o.bottom=0|t,o.right=0|n,o.left=0|i,o.v=o.top+o.bottom,o.h=o.left+o.right,this.$updateCachedSize(!0,this.gutterWidth,this.$size.width,this.$size.height),this.updateFull()},this.getHScrollBarAlwaysVisible=function(){return this.$hScrollBarAlwaysVisible},this.setHScrollBarAlwaysVisible=function(e){this.setOption("hScrollBarAlwaysVisible",e)},this.getVScrollBarAlwaysVisible=function(){return this.$vScrollBarAlwaysVisible},this.setVScrollBarAlwaysVisible=function(e){this.setOption("vScrollBarAlwaysVisible",e)},this.$updateScrollBarV=function(){var e=this.layerConfig.maxHeight,t=this.$size.scrollerHeight;!this.$maxLines&&this.$scrollPastEnd&&(e-=(t-this.lineHeight)*this.$scrollPastEnd,this.scrollTop>e-t&&(e=this.scrollTop+t,this.scrollBarV.scrollTop=null)),this.scrollBarV.setScrollHeight(e+this.scrollMargin.v),this.scrollBarV.setScrollTop(this.scrollTop+this.scrollMargin.top)},this.$updateScrollBarH=function(){this.scrollBarH.setScrollWidth(this.layerConfig.width+2*this.$padding+this.scrollMargin.h),this.scrollBarH.setScrollLeft(this.scrollLeft+this.scrollMargin.left)},this.$frozen=!1,this.freeze=function(){this.$frozen=!0},this.unfreeze=function(){this.$frozen=!1},this.$renderChanges=function(e,t){if(this.$changes&&(e|=this.$changes,this.$changes=0),this.session&&this.container.offsetWidth&&!this.$frozen&&(e||t)){if(this.$size.$dirty)return this.$changes|=e,this.onResize(!0);this.lineHeight||this.$textLayer.checkForSizeChanges(),this._signal("beforeRender",e),this.session&&this.session.$bidiHandler&&this.session.$bidiHandler.updateCharacterWidths(this.$fontMetrics);var i=this.layerConfig;if(e&this.CHANGE_FULL||e&this.CHANGE_SIZE||e&this.CHANGE_TEXT||e&this.CHANGE_LINES||e&this.CHANGE_SCROLL||e&this.CHANGE_H_SCROLL){if(e|=this.$computeLayerConfig()|this.$loop.clear(),i.firstRow!=this.layerConfig.firstRow&&i.firstRowScreen==this.layerConfig.firstRowScreen){var n=this.scrollTop+(i.firstRow-this.layerConfig.firstRow)*this.lineHeight;n>0&&(this.scrollTop=n,e|=this.CHANGE_SCROLL,e|=this.$computeLayerConfig()|this.$loop.clear())}i=this.layerConfig,this.$updateScrollBarV(),e&this.CHANGE_H_SCROLL&&this.$updateScrollBarH(),o.translate(this.content,-this.scrollLeft,-i.offset);var s=i.width+2*this.$padding+"px",r=i.minHeight+"px";o.setStyle(this.content.style,"width",s),o.setStyle(this.content.style,"height",r)}if(e&this.CHANGE_H_SCROLL&&(o.translate(this.content,-this.scrollLeft,-i.offset),this.scroller.className=this.scrollLeft<=0?"ace_scroller":"ace_scroller ace_scroll-left"),e&this.CHANGE_FULL)return this.$changedLines=null,this.$textLayer.update(i),this.$showGutter&&this.$gutterLayer.update(i),this.$markerBack.update(i),this.$markerFront.update(i),this.$cursorLayer.update(i),this.$moveTextAreaToCursor(),void this._signal("afterRender",e);if(e&this.CHANGE_SCROLL)return this.$changedLines=null,e&this.CHANGE_TEXT||e&this.CHANGE_LINES?this.$textLayer.update(i):this.$textLayer.scrollLines(i),this.$showGutter&&(e&this.CHANGE_GUTTER||e&this.CHANGE_LINES?this.$gutterLayer.update(i):this.$gutterLayer.scrollLines(i)),this.$markerBack.update(i),this.$markerFront.update(i),this.$cursorLayer.update(i),this.$moveTextAreaToCursor(),void this._signal("afterRender",e);e&this.CHANGE_TEXT?(this.$changedLines=null,this.$textLayer.update(i),this.$showGutter&&this.$gutterLayer.update(i)):e&this.CHANGE_LINES?(this.$updateLines()||e&this.CHANGE_GUTTER&&this.$showGutter)&&this.$gutterLayer.update(i):e&this.CHANGE_TEXT||e&this.CHANGE_GUTTER?this.$showGutter&&this.$gutterLayer.update(i):e&this.CHANGE_CURSOR&&this.$highlightGutterLine&&this.$gutterLayer.updateLineHighlight(i),e&this.CHANGE_CURSOR&&(this.$cursorLayer.update(i),this.$moveTextAreaToCursor()),e&(this.CHANGE_MARKER|this.CHANGE_MARKER_FRONT)&&this.$markerFront.update(i),e&(this.CHANGE_MARKER|this.CHANGE_MARKER_BACK)&&this.$markerBack.update(i),this._signal("afterRender",e)}else this.$changes|=e},this.$autosize=function(){var e=this.session.getScreenLength()*this.lineHeight,t=this.$maxLines*this.lineHeight,i=Math.min(t,Math.max((this.$minLines||1)*this.lineHeight,e))+this.scrollMargin.v+(this.$extraHeight||0);this.$horizScroll&&(i+=this.scrollBarH.getHeight()),this.$maxPixelHeight&&i>this.$maxPixelHeight&&(i=this.$maxPixelHeight);var n=!(i<=2*this.lineHeight)&&e>t;if(i!=this.desiredHeight||this.$size.height!=this.desiredHeight||n!=this.$vScroll){n!=this.$vScroll&&(this.$vScroll=n,this.scrollBarV.setVisible(n));var o=this.container.clientWidth;this.container.style.height=i+"px",this.$updateCachedSize(!0,this.$gutterWidth,o,i),this.desiredHeight=i,this._signal("autosize")}},this.$computeLayerConfig=function(){var e=this.session,t=this.$size,i=t.height<=2*this.lineHeight,n=this.session.getScreenLength()*this.lineHeight,o=this.$getLongestLine(),s=!i&&(this.$hScrollBarAlwaysVisible||t.scrollerWidth-o-2*this.$padding<0),r=this.$horizScroll!==s;r&&(this.$horizScroll=s,this.scrollBarH.setVisible(s));var a=this.$vScroll;this.$maxLines&&this.lineHeight>1&&this.$autosize();var c=t.scrollerHeight+this.lineHeight,l=!this.$maxLines&&this.$scrollPastEnd?(t.scrollerHeight-this.lineHeight)*this.$scrollPastEnd:0;n+=l;var h=this.scrollMargin;this.session.setScrollTop(Math.max(-h.top,Math.min(this.scrollTop,n-t.scrollerHeight+h.bottom))),this.session.setScrollLeft(Math.max(-h.left,Math.min(this.scrollLeft,o+2*this.$padding-t.scrollerWidth+h.right)));var d=!i&&(this.$vScrollBarAlwaysVisible||t.scrollerHeight-n+l<0||this.scrollTop>h.top),u=a!==d;u&&(this.$vScroll=d,this.scrollBarV.setVisible(d));var f,g,p=this.scrollTop%this.lineHeight,m=Math.ceil(c/this.lineHeight)-1,b=Math.max(0,Math.round((this.scrollTop-p)/this.lineHeight)),v=b+m,w=this.lineHeight;b=e.screenToDocumentRow(b,0);var x=e.getFoldLine(b);x&&(b=x.start.row),f=e.documentToScreenRow(b,0),g=e.getRowLength(b)*w,v=Math.min(e.screenToDocumentRow(v,0),e.getLength()-1),c=t.scrollerHeight+e.getRowLength(v)*w+g,p=this.scrollTop-f*w;var y=0;return(this.layerConfig.width!=o||r)&&(y=this.CHANGE_H_SCROLL),(r||u)&&(y|=this.$updateCachedSize(!0,this.gutterWidth,t.width,t.height),this._signal("scrollbarVisibilityChanged"),u&&(o=this.$getLongestLine())),this.layerConfig={width:o,padding:this.$padding,firstRow:b,firstRowScreen:f,lastRow:v,lineHeight:w,characterWidth:this.characterWidth,minHeight:c,maxHeight:n,offset:p,gutterOffset:w?Math.max(0,Math.ceil((p+t.height-t.scrollerHeight)/w)):0,height:this.$size.scrollerHeight},this.session.$bidiHandler&&this.session.$bidiHandler.setContentWidth(o-this.$padding),y},this.$updateLines=function(){if(this.$changedLines){var e=this.$changedLines.firstRow,t=this.$changedLines.lastRow;this.$changedLines=null;var i=this.layerConfig;if(!(e>i.lastRow+1||tthis.$textLayer.MAX_LINE_LENGTH&&(e=this.$textLayer.MAX_LINE_LENGTH+30),Math.max(this.$size.scrollerWidth-2*this.$padding,Math.round(e*this.characterWidth))},this.updateFrontMarkers=function(){this.$markerFront.setMarkers(this.session.getMarkers(!0)),this.$loop.schedule(this.CHANGE_MARKER_FRONT)},this.updateBackMarkers=function(){this.$markerBack.setMarkers(this.session.getMarkers()),this.$loop.schedule(this.CHANGE_MARKER_BACK)},this.addGutterDecoration=function(e,t){this.$gutterLayer.addGutterDecoration(e,t)},this.removeGutterDecoration=function(e,t){this.$gutterLayer.removeGutterDecoration(e,t)},this.updateBreakpoints=function(e){this.$loop.schedule(this.CHANGE_GUTTER)},this.setAnnotations=function(e){this.$gutterLayer.setAnnotations(e),this.$loop.schedule(this.CHANGE_GUTTER)},this.updateCursor=function(){this.$loop.schedule(this.CHANGE_CURSOR)},this.hideCursor=function(){this.$cursorLayer.hideCursor()},this.showCursor=function(){this.$cursorLayer.showCursor()},this.scrollSelectionIntoView=function(e,t,i){this.scrollCursorIntoView(e,i),this.scrollCursorIntoView(t,i)},this.scrollCursorIntoView=function(e,t,i){if(0!==this.$size.scrollerHeight){var n=this.$cursorLayer.getPixelPosition(e),o=n.left,s=n.top,r=i&&i.top||0,a=i&&i.bottom||0,c=this.$scrollAnimation?this.session.getScrollTop():this.scrollTop;c+r>s?(t&&c+r>s+this.lineHeight&&(s-=t*this.$size.scrollerHeight),0===s&&(s=-this.scrollMargin.top),this.session.setScrollTop(s)):c+this.$size.scrollerHeight-ao?(o=1-this.scrollMargin.top||(t>0&&this.session.getScrollTop()+this.$size.scrollerHeight-this.layerConfig.maxHeight<-1+this.scrollMargin.bottom||(e<0&&this.session.getScrollLeft()>=1-this.scrollMargin.left||(e>0&&this.session.getScrollLeft()+this.$size.scrollerWidth-this.layerConfig.width<-1+this.scrollMargin.right||void 0)))},this.pixelToScreenCoordinates=function(e,t){var i;if(this.$hasCssTransforms){i={top:0,left:0};var n=this.$fontMetrics.transformCoordinates([e,t]);e=n[1]-this.gutterWidth-this.margin.left,t=n[0]}else i=this.scroller.getBoundingClientRect();var o=e+this.scrollLeft-i.left-this.$padding,s=o/this.characterWidth,r=Math.floor((t+this.scrollTop-i.top)/this.lineHeight),a=this.$blockCursor?Math.floor(s):Math.round(s);return{row:r,column:a,side:s-a>0?1:-1,offsetX:o}},this.screenToTextCoordinates=function(e,t){var i;if(this.$hasCssTransforms){i={top:0,left:0};var n=this.$fontMetrics.transformCoordinates([e,t]);e=n[1]-this.gutterWidth-this.margin.left,t=n[0]}else i=this.scroller.getBoundingClientRect();var o=e+this.scrollLeft-i.left-this.$padding,s=o/this.characterWidth,r=this.$blockCursor?Math.floor(s):Math.round(s),a=Math.floor((t+this.scrollTop-i.top)/this.lineHeight);return this.session.screenToDocumentPosition(a,Math.max(r,0),o)},this.textToScreenCoordinates=function(e,t){var i=this.scroller.getBoundingClientRect(),n=this.session.documentToScreenPosition(e,t),o=this.$padding+(this.session.$bidiHandler.isBidiRow(n.row,e)?this.session.$bidiHandler.getPosLeft(n.column):Math.round(n.column*this.characterWidth)),s=n.row*this.lineHeight;return{pageX:i.left+o-this.scrollLeft,pageY:i.top+s-this.scrollTop}},this.visualizeFocus=function(){o.addCssClass(this.container,"ace_focus")},this.visualizeBlur=function(){o.removeCssClass(this.container,"ace_focus")},this.showComposition=function(e){this.$composition=e,e.cssText||(e.cssText=this.textarea.style.cssText),null==e.useTextareaForIME&&(e.useTextareaForIME=this.$useTextareaForIME),this.$useTextareaForIME?(o.addCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText="",this.$moveTextAreaToCursor(),this.$cursorLayer.element.style.display="none"):e.markerId=this.session.addMarker(e.markerRange,"ace_composition_marker","text")},this.setCompositionText=function(e){var t=this.session.selection.cursor;this.addToken(e,"composition_placeholder",t.row,t.column),this.$moveTextAreaToCursor()},this.hideComposition=function(){if(this.$composition){this.$composition.markerId&&this.session.removeMarker(this.$composition.markerId),o.removeCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText=this.$composition.cssText;var e=this.session.selection.cursor;this.removeExtraToken(e.row,e.column),this.$composition=null,this.$cursorLayer.element.style.display=""}},this.addToken=function(e,t,i,n){var o=this.session;o.bgTokenizer.lines[i]=null;var s={type:t,value:e},r=o.getTokens(i);if(null==n)r.push(s);else for(var a=0,c=0;c50&&e.length>this.$doc.getLength()>>1?this.call("setValue",[this.$doc.getValue()]):this.emit("change",{data:e}))}}).call(c.prototype);t.UIWorkerClient=function(e,t,i){var n=null,o=!1,a=Object.create(s),l=[],h=new c({messageBuffer:l,terminate:function(){},postMessage:function(e){l.push(e),n&&(o?setTimeout(d):d())}});h.setEmitSync=function(e){o=e};var d=function(){var e=l.shift();e.command?n[e.command].apply(n,e.args):e.event&&a._signal(e.event,e.data)};return a.postMessage=function(e){h.onMessage({data:e})},a.callback=function(e,t){this.postMessage({type:"call",id:t,data:e})},a.emit=function(e,t){this.postMessage({type:"event",name:e,data:t})},r.loadModule(["worker",t],(function(e){for(n=new e[i](a);l.length;)d()})),h},t.WorkerClient=c,t.createWorker=a})),ace.define("ace/placeholder",["require","exports","module","ace/range","ace/lib/event_emitter","ace/lib/oop"],(function(e,t,i){"use strict";var n=e("./range").Range,o=e("./lib/event_emitter").EventEmitter,s=e("./lib/oop"),r=function(e,t,i,n,o,s){var r=this;this.length=t,this.session=e,this.doc=e.getDocument(),this.mainClass=o,this.othersClass=s,this.$onUpdate=this.onUpdate.bind(this),this.doc.on("change",this.$onUpdate),this.$others=n,this.$onCursorChange=function(){setTimeout((function(){r.onCursorChange()}))},this.$pos=i;var a=e.getUndoManager().$undoStack||e.getUndoManager().$undostack||{length:-1};this.$undoStackDepth=a.length,this.setup(),e.selection.on("changeCursor",this.$onCursorChange)};(function(){s.implement(this,o),this.setup=function(){var e=this,t=this.doc,i=this.session;this.selectionBefore=i.selection.toJSON(),i.selection.inMultiSelectMode&&i.selection.toSingleRange(),this.pos=t.createAnchor(this.$pos.row,this.$pos.column);var o=this.pos;o.$insertRight=!0,o.detach(),o.markerId=i.addMarker(new n(o.row,o.column,o.row,o.column+this.length),this.mainClass,null,!1),this.others=[],this.$others.forEach((function(i){var n=t.createAnchor(i.row,i.column);n.$insertRight=!0,n.detach(),e.others.push(n)})),i.setUndoSelect(!1)},this.showOtherMarkers=function(){if(!this.othersActive){var e=this.session,t=this;this.othersActive=!0,this.others.forEach((function(i){i.markerId=e.addMarker(new n(i.row,i.column,i.row,i.column+t.length),t.othersClass,null,!1)}))}},this.hideOtherMarkers=function(){if(this.othersActive){this.othersActive=!1;for(var e=0;e=this.pos.column&&t.start.column<=this.pos.column+this.length+1,s=t.start.column-this.pos.column;if(this.updateAnchors(e),o&&(this.length+=i),o&&!this.session.$fromUndo)if("insert"===e.action)for(var r=this.others.length-1;r>=0;r--){var a={row:(c=this.others[r]).row,column:c.column+s};this.doc.insertMergedLines(a,e.lines)}else if("remove"===e.action)for(r=this.others.length-1;r>=0;r--){var c;a={row:(c=this.others[r]).row,column:c.column+s};this.doc.remove(new n(a.row,a.column,a.row,a.column-i))}this.$updating=!1,this.updateMarkers()}},this.updateAnchors=function(e){this.pos.onChange(e);for(var t=this.others.length;t--;)this.others[t].onChange(e);this.updateMarkers()},this.updateMarkers=function(){if(!this.$updating){var e=this,t=this.session,i=function(i,o){t.removeMarker(i.markerId),i.markerId=t.addMarker(new n(i.row,i.column,i.row,i.column+e.length),o,null,!1)};i(this.pos,this.mainClass);for(var o=this.others.length;o--;)i(this.others[o],this.othersClass)}},this.onCursorChange=function(e){if(!this.$updating&&this.session){var t=this.session.selection.getCursor();t.row===this.pos.row&&t.column>=this.pos.column&&t.column<=this.pos.column+this.length?(this.showOtherMarkers(),this._emit("cursorEnter",e)):(this.hideOtherMarkers(),this._emit("cursorLeave",e))}},this.detach=function(){this.session.removeMarker(this.pos&&this.pos.markerId),this.hideOtherMarkers(),this.doc.off("change",this.$onUpdate),this.session.selection.off("changeCursor",this.$onCursorChange),this.session.setUndoSelect(!0),this.session=null},this.cancel=function(){if(-1!==this.$undoStackDepth){for(var e=this.session.getUndoManager(),t=(e.$undoStack||e.$undostack).length-this.$undoStackDepth,i=0;i1?e.multiSelect.joinSelections():e.multiSelect.splitIntoLines()},bindKey:{win:"Ctrl-Alt-L",mac:"Ctrl-Alt-L"},readOnly:!0},{name:"splitSelectionIntoLines",description:"Split into lines",exec:function(e){e.multiSelect.splitIntoLines()},readOnly:!0},{name:"alignCursors",description:"Align cursors",exec:function(e){e.alignCursors()},bindKey:{win:"Ctrl-Alt-A",mac:"Ctrl-Alt-A"},scrollIntoView:"cursor"},{name:"findAll",description:"Find all",exec:function(e){e.findAll()},bindKey:{win:"Ctrl-Alt-K",mac:"Ctrl-Alt-G"},scrollIntoView:"cursor",readOnly:!0}],t.multiSelectCommands=[{name:"singleSelection",description:"Single selection",bindKey:"esc",exec:function(e){e.exitMultiSelectMode()},scrollIntoView:"cursor",readOnly:!0,isAvailable:function(e){return e&&e.inMultiSelectMode}}];var n=e("../keyboard/hash_handler").HashHandler;t.keyboardHandler=new n(t.multiSelectCommands)})),ace.define("ace/multi_select",["require","exports","module","ace/range_list","ace/range","ace/selection","ace/mouse/multi_select_handler","ace/lib/event","ace/lib/lang","ace/commands/multi_select_commands","ace/search","ace/edit_session","ace/editor","ace/config"],(function(e,t,i){var n=e("./range_list").RangeList,o=e("./range").Range,s=e("./selection").Selection,r=e("./mouse/multi_select_handler").onMouseDown,a=e("./lib/event"),c=e("./lib/lang"),l=e("./commands/multi_select_commands");t.commands=l.defaultCommands.concat(l.multiSelectCommands);var h=new(0,e("./search").Search);var d=e("./edit_session").EditSession;(function(){this.getSelectionMarkers=function(){return this.$selectionMarkers}}).call(d.prototype),function(){this.ranges=null,this.rangeList=null,this.addRange=function(e,t){if(e){if(!this.inMultiSelectMode&&0===this.rangeCount){var i=this.toOrientedRange();if(this.rangeList.add(i),this.rangeList.add(e),2!=this.rangeList.ranges.length)return this.rangeList.removeAll(),t||this.fromOrientedRange(e);this.rangeList.removeAll(),this.rangeList.add(i),this.$onAddRange(i)}e.cursor||(e.cursor=e.end);var n=this.rangeList.add(e);return this.$onAddRange(e),n.length&&this.$onRemoveRange(n),this.rangeCount>1&&!this.inMultiSelectMode&&(this._signal("multiSelect"),this.inMultiSelectMode=!0,this.session.$undoSelect=!1,this.rangeList.attach(this.session)),t||this.fromOrientedRange(e)}},this.toSingleRange=function(e){e=e||this.ranges[0];var t=this.rangeList.removeAll();t.length&&this.$onRemoveRange(t),e&&this.fromOrientedRange(e)},this.substractPoint=function(e){var t=this.rangeList.substractPoint(e);if(t)return this.$onRemoveRange(t),t[0]},this.mergeOverlappingRanges=function(){var e=this.rangeList.merge();e.length&&this.$onRemoveRange(e)},this.$onAddRange=function(e){this.rangeCount=this.rangeList.ranges.length,this.ranges.unshift(e),this._signal("addRange",{range:e})},this.$onRemoveRange=function(e){if(this.rangeCount=this.rangeList.ranges.length,1==this.rangeCount&&this.inMultiSelectMode){var t=this.rangeList.ranges.pop();e.push(t),this.rangeCount=0}for(var i=e.length;i--;){var n=this.ranges.indexOf(e[i]);this.ranges.splice(n,1)}this._signal("removeRange",{ranges:e}),0===this.rangeCount&&this.inMultiSelectMode&&(this.inMultiSelectMode=!1,this._signal("singleSelect"),this.session.$undoSelect=!0,this.rangeList.detach(this.session)),(t=t||this.ranges[0])&&!t.isEqual(this.getRange())&&this.fromOrientedRange(t)},this.$initRangeList=function(){this.rangeList||(this.rangeList=new n,this.ranges=[],this.rangeCount=0)},this.getAllRanges=function(){return this.rangeCount?this.rangeList.ranges.concat():[this.getRange()]},this.splitIntoLines=function(){for(var e=this.ranges.length?this.ranges:[this.getRange()],t=[],i=0;i1){var e=this.rangeList.ranges,t=e[e.length-1],i=o.fromPoints(e[0].start,t.end);this.toSingleRange(),this.setSelectionRange(i,t.cursor==t.start)}else{var n=this.session.documentToScreenPosition(this.cursor),s=this.session.documentToScreenPosition(this.anchor);this.rectangularRangeBlock(n,s).forEach(this.addRange,this)}},this.rectangularRangeBlock=function(e,t,i){var n=[],s=e.column0;)v--;if(v>0)for(var w=0;n[w].isEmpty();)w++;for(var x=v;x>=w;x--)n[x].isEmpty()&&n.splice(x,1)}return n}}.call(s.prototype);var u=e("./editor").Editor;function f(e){e.$multiselectOnSessionChange||(e.$onAddRange=e.$onAddRange.bind(e),e.$onRemoveRange=e.$onRemoveRange.bind(e),e.$onMultiSelect=e.$onMultiSelect.bind(e),e.$onSingleSelect=e.$onSingleSelect.bind(e),e.$multiselectOnSessionChange=t.onSessionChange.bind(e),e.$checkMultiselectChange=e.$checkMultiselectChange.bind(e),e.$multiselectOnSessionChange(e),e.on("changeSession",e.$multiselectOnSessionChange),e.on("mousedown",r),e.commands.addCommands(l.defaultCommands),function(e){if(!e.textInput)return;var t=e.textInput.getElement(),i=!1;function n(t){i&&(e.renderer.setMouseCursor(""),i=!1)}a.addListener(t,"keydown",(function(t){var o=18==t.keyCode&&!(t.ctrlKey||t.shiftKey||t.metaKey);e.$blockSelectEnabled&&o?i||(e.renderer.setMouseCursor("crosshair"),i=!0):i&&n()}),e),a.addListener(t,"keyup",n,e),a.addListener(t,"blur",n,e)}(e))}(function(){this.updateSelectionMarkers=function(){this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.addSelectionMarker=function(e){e.cursor||(e.cursor=e.end);var t=this.getSelectionStyle();return e.marker=this.session.addMarker(e,"ace_selection",t),this.session.$selectionMarkers.push(e),this.session.selectionMarkerCount=this.session.$selectionMarkers.length,e},this.removeSelectionMarker=function(e){if(e.marker){this.session.removeMarker(e.marker);var t=this.session.$selectionMarkers.indexOf(e);-1!=t&&this.session.$selectionMarkers.splice(t,1),this.session.selectionMarkerCount=this.session.$selectionMarkers.length}},this.removeSelectionMarkers=function(e){for(var t=this.session.$selectionMarkers,i=e.length;i--;){var n=e[i];if(n.marker){this.session.removeMarker(n.marker);var o=t.indexOf(n);-1!=o&&t.splice(o,1)}}this.session.selectionMarkerCount=t.length},this.$onAddRange=function(e){this.addSelectionMarker(e.range),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onRemoveRange=function(e){this.removeSelectionMarkers(e.ranges),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onMultiSelect=function(e){this.inMultiSelectMode||(this.inMultiSelectMode=!0,this.setStyle("ace_multiselect"),this.keyBinding.addKeyboardHandler(l.keyboardHandler),this.commands.setDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers())},this.$onSingleSelect=function(e){this.session.multiSelect.inVirtualMode||(this.inMultiSelectMode=!1,this.unsetStyle("ace_multiselect"),this.keyBinding.removeKeyboardHandler(l.keyboardHandler),this.commands.removeDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers(),this._emit("changeSelection"))},this.$onMultiSelectExec=function(e){var t=e.command,i=e.editor;if(i.multiSelect){if(t.multiSelectAction)"forEach"==t.multiSelectAction?n=i.forEachSelection(t,e.args):"forEachLine"==t.multiSelectAction?n=i.forEachSelection(t,e.args,!0):"single"==t.multiSelectAction?(i.exitMultiSelectMode(),n=t.exec(i,e.args||{})):n=t.multiSelectAction(i,e.args||{});else{var n=t.exec(i,e.args||{});i.multiSelect.addRange(i.multiSelect.toOrientedRange()),i.multiSelect.mergeOverlappingRanges()}return n}},this.forEachSelection=function(e,t,i){if(!this.inVirtualSelectionMode){var n,o=i&&i.keepOrder,r=1==i||i&&i.$byLines,a=this.session,c=this.selection,l=c.rangeList,h=(o?c:l).ranges;if(!h.length)return e.exec?e.exec(this,t||{}):e(this,t||{});var d=c._eventRegistry;c._eventRegistry={};var u=new s(a);this.inVirtualSelectionMode=!0;for(var f=h.length;f--;){if(r)for(;f>0&&h[f].start.row==h[f-1].end.row;)f--;u.fromOrientedRange(h[f]),u.index=f,this.selection=a.selection=u;var g=e.exec?e.exec(this,t||{}):e(this,t||{});n||void 0===g||(n=g),u.toOrientedRange(h[f])}u.detach(),this.selection=a.selection=c,this.inVirtualSelectionMode=!1,c._eventRegistry=d,c.mergeOverlappingRanges(),c.ranges[0]&&c.fromOrientedRange(c.ranges[0]);var p=this.renderer.$scrollAnimation;return this.onCursorChange(),this.onSelectionChange(),p&&p.from==p.to&&this.renderer.animateScrolling(p.from),n}},this.exitMultiSelectMode=function(){this.inMultiSelectMode&&!this.inVirtualSelectionMode&&this.multiSelect.toSingleRange()},this.getSelectedText=function(){var e="";if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){for(var t=this.multiSelect.rangeList.ranges,i=[],n=0;nr&&(r=i.column),nh?e.insert(n,c.stringRepeat(" ",s-h)):e.remove(new o(n.row,n.column,n.row,n.column-s+h)),t.start.column=t.end.column=r,t.start.row=t.end.row=n.row,t.cursor=t.end})),t.fromOrientedRange(i[0]),this.renderer.updateCursor(),this.renderer.updateBackMarkers()}else{var h=this.selection.getRange(),d=h.start.row,u=h.end.row,f=d==u;if(f){var g,p=this.session.getLength();do{g=this.session.getLine(u)}while(/[=:]/.test(g)&&++u0);d<0&&(d=0),u>=p&&(u=p-1)}var m=this.session.removeFullLines(d,u);m=this.$reAlignText(m,f),this.session.insert({row:d,column:0},m.join("\n")+"\n"),f||(h.start.column=0,h.end.column=m[m.length-1].length),this.selection.setRange(h)}},this.$reAlignText=function(e,t){var i,n,o,s=!0,r=!0;return e.map((function(e){var t=e.match(/(\s*)(.*?)(\s*)([=:].*)/);return t?null==i?(i=t[1].length,n=t[2].length,o=t[3].length,t):(i+n+o!=t[1].length+t[2].length+t[3].length&&(r=!1),i!=t[1].length&&(s=!1),i>t[1].length&&(i=t[1].length),nt[3].length&&(o=t[3].length),t):[e]})).map(t?l:s?r?function(e){return e[2]?a(i+n-e[2].length)+e[2]+a(o)+e[4].replace(/^([=:])\s+/,"$1 "):e[0]}:l:function(e){return e[2]?a(i)+e[2]+a(o)+e[4].replace(/^([=:])\s+/,"$1 "):e[0]});function a(e){return c.stringRepeat(" ",e)}function l(e){return e[2]?a(i)+e[2]+a(n-e[2].length+o)+e[4].replace(/^([=:])\s+/,"$1 "):e[0]}}}).call(u.prototype),t.onSessionChange=function(e){var t=e.session;t&&!t.multiSelect&&(t.$selectionMarkers=[],t.selection.$initRangeList(),t.multiSelect=t.selection),this.multiSelect=t&&t.multiSelect;var i=e.oldSession;i&&(i.multiSelect.off("addRange",this.$onAddRange),i.multiSelect.off("removeRange",this.$onRemoveRange),i.multiSelect.off("multiSelect",this.$onMultiSelect),i.multiSelect.off("singleSelect",this.$onSingleSelect),i.multiSelect.lead.off("change",this.$checkMultiselectChange),i.multiSelect.anchor.off("change",this.$checkMultiselectChange)),t&&(t.multiSelect.on("addRange",this.$onAddRange),t.multiSelect.on("removeRange",this.$onRemoveRange),t.multiSelect.on("multiSelect",this.$onMultiSelect),t.multiSelect.on("singleSelect",this.$onSingleSelect),t.multiSelect.lead.on("change",this.$checkMultiselectChange),t.multiSelect.anchor.on("change",this.$checkMultiselectChange)),t&&this.inMultiSelectMode!=t.selection.inMultiSelectMode&&(t.selection.inMultiSelectMode?this.$onMultiSelect():this.$onSingleSelect())},t.MultiSelect=f,e("./config").defineOptions(u.prototype,"editor",{enableMultiselect:{set:function(e){f(this),e?(this.on("changeSession",this.$multiselectOnSessionChange),this.on("mousedown",r)):(this.off("changeSession",this.$multiselectOnSessionChange),this.off("mousedown",r))},value:!0},enableBlockSelect:{set:function(e){this.$blockSelectEnabled=e},value:!0}})})),ace.define("ace/mode/folding/fold_mode",["require","exports","module","ace/range"],(function(e,t,i){"use strict";var n=e("../../range").Range,o=t.FoldMode=function(){};(function(){this.foldingStartMarker=null,this.foldingStopMarker=null,this.getFoldWidget=function(e,t,i){var n=e.getLine(i);return this.foldingStartMarker.test(n)?"start":"markbeginend"==t&&this.foldingStopMarker&&this.foldingStopMarker.test(n)?"end":""},this.getFoldWidgetRange=function(e,t,i){return null},this.indentationBlock=function(e,t,i){var o=/\S/,s=e.getLine(t),r=s.search(o);if(-1!=r){for(var a=i||s.length,c=e.getLength(),l=t,h=t;++tl){var f=e.getLine(h).length;return new n(l,a,h,f)}}},this.openingBracketBlock=function(e,t,i,o,s){var r={row:i,column:o+1},a=e.$findClosingBracket(t,r,s);if(a){var c=e.foldWidgets[a.row];return null==c&&(c=e.getFoldWidget(a.row)),"start"==c&&a.row>r.row&&(a.row--,a.column=e.getLine(a.row).length),n.fromPoints(r,a)}},this.closingBracketBlock=function(e,t,i,o,s){var r={row:i,column:o},a=e.$findOpeningBracket(t,r);if(a)return a.column++,r.column--,n.fromPoints(a,r)}}).call(o.prototype)})),ace.define("ace/theme/textmate",["require","exports","module","ace/lib/dom"],(function(e,t,i){"use strict";t.isDark=!1,t.cssClass="ace-tm",t.cssText='.ace-tm .ace_gutter {background: #f0f0f0;color: #333;}.ace-tm .ace_print-margin {width: 1px;background: #e8e8e8;}.ace-tm .ace_fold {background-color: #6B72E6;}.ace-tm {background-color: #FFFFFF;color: black;}.ace-tm .ace_cursor {color: black;}.ace-tm .ace_invisible {color: rgb(191, 191, 191);}.ace-tm .ace_storage,.ace-tm .ace_keyword {color: blue;}.ace-tm .ace_constant {color: rgb(197, 6, 11);}.ace-tm .ace_constant.ace_buildin {color: rgb(88, 72, 246);}.ace-tm .ace_constant.ace_language {color: rgb(88, 92, 246);}.ace-tm .ace_constant.ace_library {color: rgb(6, 150, 14);}.ace-tm .ace_invalid {background-color: rgba(255, 0, 0, 0.1);color: red;}.ace-tm .ace_support.ace_function {color: rgb(60, 76, 114);}.ace-tm .ace_support.ace_constant {color: rgb(6, 150, 14);}.ace-tm .ace_support.ace_type,.ace-tm .ace_support.ace_class {color: rgb(109, 121, 222);}.ace-tm .ace_keyword.ace_operator {color: rgb(104, 118, 135);}.ace-tm .ace_string {color: rgb(3, 106, 7);}.ace-tm .ace_comment {color: rgb(76, 136, 107);}.ace-tm .ace_comment.ace_doc {color: rgb(0, 102, 255);}.ace-tm .ace_comment.ace_doc.ace_tag {color: rgb(128, 159, 191);}.ace-tm .ace_constant.ace_numeric {color: rgb(0, 0, 205);}.ace-tm .ace_variable {color: rgb(49, 132, 149);}.ace-tm .ace_xml-pe {color: rgb(104, 104, 91);}.ace-tm .ace_entity.ace_name.ace_function {color: #0000A2;}.ace-tm .ace_heading {color: rgb(12, 7, 255);}.ace-tm .ace_list {color:rgb(185, 6, 144);}.ace-tm .ace_meta.ace_tag {color:rgb(0, 22, 142);}.ace-tm .ace_string.ace_regex {color: rgb(255, 0, 0)}.ace-tm .ace_marker-layer .ace_selection {background: rgb(181, 213, 255);}.ace-tm.ace_multiselect .ace_selection.ace_start {box-shadow: 0 0 3px 0px white;}.ace-tm .ace_marker-layer .ace_step {background: rgb(252, 255, 0);}.ace-tm .ace_marker-layer .ace_stack {background: rgb(164, 229, 101);}.ace-tm .ace_marker-layer .ace_bracket {margin: -1px 0 0 -1px;border: 1px solid rgb(192, 192, 192);}.ace-tm .ace_marker-layer .ace_active-line {background: rgba(0, 0, 0, 0.07);}.ace-tm .ace_gutter-active-line {background-color : #dcdcdc;}.ace-tm .ace_marker-layer .ace_selected-word {background: rgb(250, 250, 255);border: 1px solid rgb(200, 200, 250);}.ace-tm .ace_indent-guide {background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==") right repeat-y;}',t.$id="ace/theme/textmate",e("../lib/dom").importCssString(t.cssText,t.cssClass)})),ace.define("ace/line_widgets",["require","exports","module","ace/lib/dom"],(function(e,t,i){"use strict";var n=e("./lib/dom");function o(e){this.session=e,this.session.widgetManager=this,this.session.getRowLength=this.getRowLength,this.session.$getWidgetScreenLength=this.$getWidgetScreenLength,this.updateOnChange=this.updateOnChange.bind(this),this.renderWidgets=this.renderWidgets.bind(this),this.measureWidgets=this.measureWidgets.bind(this),this.session._changedWidgets=[],this.$onChangeEditor=this.$onChangeEditor.bind(this),this.session.on("change",this.updateOnChange),this.session.on("changeFold",this.updateOnFold),this.session.on("changeEditor",this.$onChangeEditor)}(function(){this.getRowLength=function(e){var t;return t=this.lineWidgets&&this.lineWidgets[e]&&this.lineWidgets[e].rowCount||0,this.$useWrapMode&&this.$wrapData[e]?this.$wrapData[e].length+1+t:1+t},this.$getWidgetScreenLength=function(){var e=0;return this.lineWidgets.forEach((function(t){t&&t.rowCount&&!t.hidden&&(e+=t.rowCount)})),e},this.$onChangeEditor=function(e){this.attach(e.editor)},this.attach=function(e){e&&e.widgetManager&&e.widgetManager!=this&&e.widgetManager.detach(),this.editor!=e&&(this.detach(),this.editor=e,e&&(e.widgetManager=this,e.renderer.on("beforeRender",this.measureWidgets),e.renderer.on("afterRender",this.renderWidgets)))},this.detach=function(e){var t=this.editor;if(t){this.editor=null,t.widgetManager=null,t.renderer.off("beforeRender",this.measureWidgets),t.renderer.off("afterRender",this.renderWidgets);var i=this.session.lineWidgets;i&&i.forEach((function(e){e&&e.el&&e.el.parentNode&&(e._inDocument=!1,e.el.parentNode.removeChild(e.el))}))}},this.updateOnFold=function(e,t){var i=t.lineWidgets;if(i&&e.action){for(var n=e.data,o=n.start.row,s=n.end.row,r="add"==e.action,a=o+1;at[i].column&&i++,s.unshift(i,0),t.splice.apply(t,s),this.$updateRows()}}},this.$updateRows=function(){var e=this.session.lineWidgets;if(e){var t=!0;e.forEach((function(e,i){if(e)for(t=!1,e.row=i;e.$oldWidget;)e.$oldWidget.row=i,e=e.$oldWidget})),t&&(this.session.lineWidgets=null)}},this.$registerLineWidget=function(e){this.session.lineWidgets||(this.session.lineWidgets=new Array(this.session.getLength()));var t=this.session.lineWidgets[e.row];return t&&(e.$oldWidget=t,t.el&&t.el.parentNode&&(t.el.parentNode.removeChild(t.el),t._inDocument=!1)),this.session.lineWidgets[e.row]=e,e},this.addLineWidget=function(e){if(this.$registerLineWidget(e),e.session=this.session,!this.editor)return e;var t=this.editor.renderer;e.html&&!e.el&&(e.el=n.createElement("div"),e.el.innerHTML=e.html),e.el&&(n.addCssClass(e.el,"ace_lineWidgetContainer"),e.el.style.position="absolute",e.el.style.zIndex=5,t.container.appendChild(e.el),e._inDocument=!0,e.coverGutter||(e.el.style.zIndex=3),null==e.pixelHeight&&(e.pixelHeight=e.el.offsetHeight)),null==e.rowCount&&(e.rowCount=e.pixelHeight/t.layerConfig.lineHeight);var i=this.session.getFoldAt(e.row,0);if(e.$fold=i,i){var o=this.session.lineWidgets;e.row!=i.end.row||o[i.start.row]?e.hidden=!0:o[i.start.row]=e}return this.session._emit("changeFold",{data:{start:{row:e.row}}}),this.$updateRows(),this.renderWidgets(null,t),this.onWidgetChanged(e),e},this.removeLineWidget=function(e){if(e._inDocument=!1,e.session=null,e.el&&e.el.parentNode&&e.el.parentNode.removeChild(e.el),e.editor&&e.editor.destroy)try{e.editor.destroy()}catch(e){}if(this.session.lineWidgets){var t=this.session.lineWidgets[e.row];if(t==e)this.session.lineWidgets[e.row]=e.$oldWidget,e.$oldWidget&&this.onWidgetChanged(e.$oldWidget);else for(;t;){if(t.$oldWidget==e){t.$oldWidget=e.$oldWidget;break}t=t.$oldWidget}}this.session._emit("changeFold",{data:{start:{row:e.row}}}),this.$updateRows()},this.getWidgetsAtRow=function(e){for(var t=this.session.lineWidgets,i=t&&t[e],n=[];i;)n.push(i),i=i.$oldWidget;return n},this.onWidgetChanged=function(e){this.session._changedWidgets.push(e),this.editor&&this.editor.renderer.updateFull()},this.measureWidgets=function(e,t){var i=this.session._changedWidgets,n=t.layerConfig;if(i&&i.length){for(var o=1/0,s=0;s0&&!n[o];)o--;this.firstRow=i.firstRow,this.lastRow=i.lastRow,t.$cursorLayer.config=i;for(var r=o;r<=s;r++){var a=n[r];if(a&&a.el)if(a.hidden)a.el.style.top=-100-(a.pixelHeight||0)+"px";else{a._inDocument||(a._inDocument=!0,t.container.appendChild(a.el));var c=t.$cursorLayer.getPixelPosition({row:r,column:0},!0).top;a.coverLine||(c+=i.lineHeight*this.session.getRowLineCount(a.row)),a.el.style.top=c-i.offset+"px";var l=a.coverGutter?0:t.gutterWidth;a.fixedWidth||(l-=t.scrollLeft),a.el.style.left=l+"px",a.fullWidth&&a.screenWidth&&(a.el.style.minWidth=i.width+2*i.padding+"px"),a.fixedWidth?a.el.style.right=t.scrollBar.getWidth()+"px":a.el.style.right=""}}}}}).call(o.prototype),t.LineWidgets=o})),ace.define("ace/ext/error_marker",["require","exports","module","ace/line_widgets","ace/lib/dom","ace/range"],(function(e,t,i){"use strict";var n=e("../line_widgets").LineWidgets,o=e("../lib/dom"),s=e("../range").Range;t.showErrorMarker=function(e,t){var i=e.session;i.widgetManager||(i.widgetManager=new n(i),i.widgetManager.attach(e));var r=e.getCursorPosition(),a=r.row,c=i.widgetManager.getWidgetsAtRow(a).filter((function(e){return"errorMarker"==e.type}))[0];c?c.destroy():a-=t;var l,h=function(e,t,i){var n=e.getAnnotations().sort(s.comparePoints);if(n.length){var o=function(e,t,i){for(var n=0,o=e.length-1;n<=o;){var s=n+o>>1,r=i(t,e[s]);if(r>0)n=s+1;else{if(!(r<0))return s;o=s-1}}return-(n+1)}(n,{row:t,column:-1},s.comparePoints);o<0&&(o=-o-1),o>=n.length?o=i>0?0:n.length-1:0===o&&i<0&&(o=n.length-1);var r=n[o];if(r&&i){if(r.row===t){do{r=n[o+=i]}while(r&&r.row===t);if(!r)return n.slice()}var a=[];t=r.row;do{a[i<0?"unshift":"push"](r),r=n[o+=i]}while(r&&r.row==t);return a.length&&a}}}(i,a,t);if(h){var d=h[0];r.column=(d.pos&&"number"!=typeof d.column?d.pos.sc:d.column)||0,r.row=d.row,l=e.renderer.$gutterLayer.$annotations[r.row]}else{if(c)return;l={text:["Looks good!"],className:"ace_ok"}}e.session.unfold(r.row),e.selection.moveToPosition(r);var u={row:r.row,fixedWidth:!0,coverGutter:!0,el:o.createElement("div"),type:"errorMarker"},f=u.el.appendChild(o.createElement("div")),g=u.el.appendChild(o.createElement("div"));g.className="error_widget_arrow "+l.className;var p=e.renderer.$cursorLayer.getPixelPosition(r).left;g.style.left=p+e.renderer.gutterWidth-5+"px",u.el.className="error_widget_wrapper",f.className="error_widget "+l.className,f.innerHTML=l.text.join("
    "),f.appendChild(o.createElement("div"));var m=function(e,t,i){if(0===t&&("esc"===i||"return"===i))return u.destroy(),{command:"null"}};u.destroy=function(){e.$mouseHandler.isMousePressed||(e.keyBinding.removeKeyboardHandler(m),i.widgetManager.removeLineWidget(u),e.off("changeSelection",u.destroy),e.off("changeSession",u.destroy),e.off("mouseup",u.destroy),e.off("change",u.destroy))},e.keyBinding.addKeyboardHandler(m),e.on("changeSelection",u.destroy),e.on("changeSession",u.destroy),e.on("mouseup",u.destroy),e.on("change",u.destroy),e.session.widgetManager.addLineWidget(u),u.el.onmousedown=e.focus.bind(e),e.renderer.scrollCursorIntoView(null,.5,{bottom:u.el.offsetHeight})},o.importCssString(" .error_widget_wrapper { background: inherit; color: inherit; border:none } .error_widget { border-top: solid 2px; border-bottom: solid 2px; margin: 5px 0; padding: 10px 40px; white-space: pre-wrap; } .error_widget.ace_error, .error_widget_arrow.ace_error{ border-color: #ff5a5a } .error_widget.ace_warning, .error_widget_arrow.ace_warning{ border-color: #F1D817 } .error_widget.ace_info, .error_widget_arrow.ace_info{ border-color: #5a5a5a } .error_widget.ace_ok, .error_widget_arrow.ace_ok{ border-color: #5aaa5a } .error_widget_arrow { position: absolute; border: solid 5px; border-top-color: transparent!important; border-right-color: transparent!important; border-left-color: transparent!important; top: -5px; }","")})),ace.define("ace/ace",["require","exports","module","ace/lib/fixoldbrowsers","ace/lib/dom","ace/lib/event","ace/range","ace/editor","ace/edit_session","ace/undomanager","ace/virtual_renderer","ace/worker/worker_client","ace/keyboard/hash_handler","ace/placeholder","ace/multi_select","ace/mode/folding/fold_mode","ace/theme/textmate","ace/ext/error_marker","ace/config"],(function(e,t,n){"use strict";e("./lib/fixoldbrowsers");var o=e("./lib/dom"),s=e("./lib/event"),r=e("./range").Range,a=e("./editor").Editor,c=e("./edit_session").EditSession,l=e("./undomanager").UndoManager,h=e("./virtual_renderer").VirtualRenderer;e("./worker/worker_client"),e("./keyboard/hash_handler"),e("./placeholder"),e("./multi_select"),e("./mode/folding/fold_mode"),e("./theme/textmate"),e("./ext/error_marker"),t.config=e("./config"),t.require=e,t.define=i(1267),t.edit=function(e,i){if("string"==typeof e){var n=e;if(!(e=document.getElementById(n)))throw new Error("ace.edit can't find div #"+n)}if(e&&e.env&&e.env.editor instanceof a)return e.env.editor;var r="";if(e&&/input|textarea/i.test(e.tagName)){var c=e;r=c.value,e=o.createElement("pre"),c.parentNode.replaceChild(e,c)}else e&&(r=e.textContent,e.innerHTML="");var l=t.createEditSession(r),d=new a(new h(e),l,i),u={document:l,editor:d,onResize:d.resize.bind(d,null)};return c&&(u.textarea=c),s.addListener(window,"resize",u.onResize),d.on("destroy",(function(){s.removeListener(window,"resize",u.onResize),u.editor.container.env=null})),d.container.env=d.env=u,d},t.createEditSession=function(e,t){var i=new c(e,t);return i.setUndoManager(new l),i},t.Range=r,t.Editor=a,t.EditSession=c,t.UndoManager=l,t.VirtualRenderer=h,t.version=t.config.version})),ace.require(["ace/ace"],(function(t){for(var i in t&&(t.config.init(!0),t.define=ace.define),window.ace||(window.ace=t),t)t.hasOwnProperty(i)&&(window.ace[i]=t[i]);window.ace.default=window.ace,e&&(e.exports=window.ace)}))}).call(this,i(138)(e))},2006:function(e,t,i){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(e,t)},function(e,t){function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),s=this&&this.__assign||function(){return(s=Object.assign||function(e){for(var t,i=1,n=arguments.length;i0&&e.handleMarkers(y,t);for(n=0;n0&&this.handleMarkers(S);var A=this.editor.$options;l.editorOptions.forEach((function(t){A.hasOwnProperty(t)?e.editor.setOption(t,e.props[t]):e.props[t]&&console.warn("ReactAce: editor option "+t+" was activated but not found. Did you need to import a related tool or did you possibly mispell the option?")})),this.handleOptions(this.props),Array.isArray(y)&&y.forEach((function(t){"string"==typeof t.exec?e.editor.commands.bindKey(t.bindKey,t.exec):e.editor.commands.addCommand(t)})),w&&this.editor.setKeyboardHandler("ace/keyboard/"+w),i&&(this.refEditor.className+=" "+i),x&&x(this.editor),this.editor.resize(),r&&this.editor.focus()},t.prototype.componentDidUpdate=function(e){for(var t=e,i=this.props,n=0;n 0!";if(e!=this.$splits){if(e>this.$splits){for(;this.$splitse;)t=this.$editors[this.$splits-1],this.$container.removeChild(t.container),this.$splits--;this.resize()}},this.getSplits=function(){return this.$splits},this.getEditor=function(e){return this.$editors[e]},this.getCurrentEditor=function(){return this.$cEditor},this.focus=function(){this.$cEditor.focus()},this.blur=function(){this.$cEditor.blur()},this.setTheme=function(e){this.$editors.forEach((function(t){t.setTheme(e)}))},this.setKeyboardHandler=function(e){this.$editors.forEach((function(t){t.setKeyboardHandler(e)}))},this.forEach=function(e,t){this.$editors.forEach(e,t)},this.$fontSize="",this.setFontSize=function(e){this.$fontSize=e,this.forEach((function(t){t.setFontSize(e)}))},this.$cloneSession=function(e){var t=new a(e.getDocument(),e.getMode()),i=e.getUndoManager();return t.setUndoManager(i),t.setTabSize(e.getTabSize()),t.setUseSoftTabs(e.getUseSoftTabs()),t.setOverwrite(e.getOverwrite()),t.setBreakpoints(e.getBreakpoints()),t.setUseWrapMode(e.getUseWrapMode()),t.setUseWorker(e.getUseWorker()),t.setWrapLimitRange(e.$wrapLimitRange.min,e.$wrapLimitRange.max),t.$foldData=e.$cloneFoldData(),t},this.setSession=function(e,t){var i;return i=null==t?this.$cEditor:this.$editors[t],this.$editors.some((function(t){return t.session===e}))&&(e=this.$cloneSession(e)),i.setSession(e),e},this.getOrientation=function(){return this.$orientation},this.setOrientation=function(e){this.$orientation!=e&&(this.$orientation=e,this.resize())},this.resize=function(){var e,t=this.$container.clientWidth,i=this.$container.clientHeight;if(this.$orientation==this.BESIDE)for(var n=t/this.$splits,o=0;oh){var u=e.getLine(d).length;return new o(h,c,d,u)}}}}.call(r.prototype)})),ace.define("ace/mode/toml",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/toml_highlight_rules","ace/mode/folding/ini"],(function(e,t,i){"use strict";var n=e("../lib/oop"),o=e("./text").Mode,s=e("./toml_highlight_rules").TomlHighlightRules,r=e("./folding/ini").FoldMode,a=function(){this.HighlightRules=s,this.foldingRules=new r,this.$behaviour=this.$defaultBehaviour};n.inherits(a,o),function(){this.lineCommentStart="#",this.$id="ace/mode/toml"}.call(a.prototype),t.Mode=a})),ace.require(["ace/mode/toml"],(function(t){e&&(e.exports=t)}))}).call(this,i(138)(e))},5710:function(e,t,i){(function(e){ace.define("ace/mode/yaml_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],(function(e,t,i){"use strict";var n=e("../lib/oop"),o=e("./text_highlight_rules").TextHighlightRules,s=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(e,t,i,n){n=n.replace(/ #.*/,"");var o=/^ *((:\s*)?-(\s*[^|>])?)?/.exec(n)[0].replace(/\S\s*$/,"").length,s=parseInt(/\d+[\s+-]*$/.exec(n));return s?(o+=s-1,this.next="mlString"):this.next="mlStringPre",i.length?(i[0]=this.next,i[1]=o):(i.push(this.next),i.push(o)),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,:\[\]\{\}]+/}],mlStringPre:[{token:"indent",regex:/^ *$/},{token:"indent",regex:/^ */,onMatch:function(e,t,i){return i[1]>=e.length?(this.next="start",i.shift(),i.shift()):(i[1]=e.length-1,this.next=i[0]="mlString"),this.token},next:"mlString"},{defaultToken:"string"}],mlString:[{token:"indent",regex:/^ *$/},{token:"indent",regex:/^ */,onMatch:function(e,t,i){return i[1]>=e.length?(this.next="start",i.splice(0)):this.next="mlString",this.token},next:"mlString"},{token:"string",regex:".+"}]},this.normalizeRules()};n.inherits(s,o),t.YamlHighlightRules=s})),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],(function(e,t,i){"use strict";var n=e("../range").Range,o=function(){};(function(){this.checkOutdent=function(e,t){return!!/^\s+$/.test(e)&&/^\s*\}/.test(t)},this.autoOutdent=function(e,t){var i=e.getLine(t).match(/^(\s*\})/);if(!i)return 0;var o=i[1].length,s=e.findMatchingBracket({row:t,column:o});if(!s||s.row==t)return 0;var r=this.$getIndent(e.getLine(s.row));e.replace(new n(t,0,t,o-1),r)},this.$getIndent=function(e){return e.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,i){"use strict";var n=e("../../lib/oop"),o=e("./fold_mode").FoldMode,s=e("../../range").Range,r=t.FoldMode=function(){};n.inherits(r,o),function(){this.getFoldWidgetRange=function(e,t,i){var n=this.indentationBlock(e,i);if(n)return n;var o=/\S/,r=e.getLine(i),a=r.search(o);if(-1!=a&&"#"==r[a]){for(var c=r.length,l=e.getLength(),h=i,d=i;++ih){var f=e.getLine(d).length;return new s(h,c,d,f)}}},this.getFoldWidget=function(e,t,i){var n=e.getLine(i),o=n.search(/\S/),s=e.getLine(i+1),r=e.getLine(i-1),a=r.search(/\S/),c=s.search(/\S/);if(-1==o)return e.foldWidgets[i-1]=-1!=a&&al)break;var h=this.getFoldWidgetRange(e,"all",t);if(h){if(h.start.row<=s)break;if(h.isMultiLine())t=h.end.row;else if(n==l)break}a=t}}return new o(s,r,a,e.getLine(a).length)},this.getCommentRegionBlock=function(e,t,i){for(var n=t.search(/\s*$/),s=e.getLength(),r=i,a=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,c=1;++ir)return new o(r,n,i,t.length)}}.call(r.prototype)})),ace.define("ace/mode/json5",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/json5_highlight_rules","ace/mode/matching_brace_outdent","ace/mode/behaviour/cstyle","ace/mode/folding/cstyle"],(function(e,t,i){"use strict";var n=e("../lib/oop"),o=e("./text").Mode,s=e("./json5_highlight_rules").Json5HighlightRules,r=e("./matching_brace_outdent").MatchingBraceOutdent,a=e("./behaviour/cstyle").CstyleBehaviour,c=e("./folding/cstyle").FoldMode,l=function(){this.HighlightRules=s,this.$outdent=new r,this.$behaviour=new a,this.foldingRules=new c};n.inherits(l,o),function(){this.lineCommentStart="//",this.blockComment={start:"/*",end:"*/"},this.checkOutdent=function(e,t,i){return this.$outdent.checkOutdent(t,i)},this.autoOutdent=function(e,t,i){this.$outdent.autoOutdent(t,i)},this.$id="ace/mode/json5"}.call(l.prototype),t.Mode=l})),ace.require(["ace/mode/json5"],(function(t){e&&(e.exports=t)}))}).call(this,i(138)(e))},5712:function(e,t,i){(function(e){ace.define("ace/mode/properties_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],(function(e,t,i){"use strict";var n=e("../lib/oop"),o=e("./text_highlight_rules").TextHighlightRules,s=function(){var e=/\\u[0-9a-fA-F]{4}|\\/;this.$rules={start:[{token:"comment",regex:/[!#].*$/},{token:"keyword",regex:/[=:]$/},{token:"keyword",regex:/[=:]/,next:"value"},{token:"constant.language.escape",regex:e},{defaultToken:"variable"}],value:[{regex:/\\$/,token:"string",next:"value"},{regex:/$/,token:"string",next:"start"},{token:"constant.language.escape",regex:e},{defaultToken:"string"}]}};n.inherits(s,o),t.PropertiesHighlightRules=s})),ace.define("ace/mode/properties",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/properties_highlight_rules"],(function(e,t,i){"use strict";var n=e("../lib/oop"),o=e("./text").Mode,s=e("./properties_highlight_rules").PropertiesHighlightRules,r=function(){this.HighlightRules=s,this.$behaviour=this.$defaultBehaviour};n.inherits(r,o),function(){this.$id="ace/mode/properties"}.call(r.prototype),t.Mode=r})),ace.require(["ace/mode/properties"],(function(t){e&&(e.exports=t)}))}).call(this,i(138)(e))},5713:function(e,t,i){(function(e){ace.require(["ace/mode/text"],(function(t){e&&(e.exports=t)}))}).call(this,i(138)(e))},5714:function(e,t,i){(function(e){ace.define("ace/mode/doc_comment_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],(function(e,t,i){"use strict";var n=e("../lib/oop"),o=e("./text_highlight_rules").TextHighlightRules,s=function(){this.$rules={start:[{token:"comment.doc.tag",regex:"@[\\w\\d_]+"},s.getTagRule(),{defaultToken:"comment.doc",caseInsensitive:!0}]}};n.inherits(s,o),s.getTagRule=function(e){return{token:"comment.doc.tag.storage.type",regex:"\\b(?:TODO|FIXME|XXX|HACK)\\b"}},s.getStartRule=function(e){return{token:"comment.doc",regex:"\\/\\*(?=\\*)",next:e}},s.getEndRule=function(e){return{token:"comment.doc",regex:"\\*\\/",next:e}},t.DocCommentHighlightRules=s})),ace.define("ace/mode/javascript_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/doc_comment_highlight_rules","ace/mode/text_highlight_rules"],(function(e,t,i){"use strict";var n=e("../lib/oop"),o=e("./doc_comment_highlight_rules").DocCommentHighlightRules,s=e("./text_highlight_rules").TextHighlightRules,r="[a-zA-Z\\$_¡-￿][a-zA-Z\\d\\$_¡-￿]*",a=function(e){var t=this.createKeywordMapper({"variable.language":"Array|Boolean|Date|Function|Iterator|Number|Object|RegExp|String|Proxy|Namespace|QName|XML|XMLList|ArrayBuffer|Float32Array|Float64Array|Int16Array|Int32Array|Int8Array|Uint16Array|Uint32Array|Uint8Array|Uint8ClampedArray|Error|EvalError|InternalError|RangeError|ReferenceError|StopIteration|SyntaxError|TypeError|URIError|decodeURI|decodeURIComponent|encodeURI|encodeURIComponent|eval|isFinite|isNaN|parseFloat|parseInt|JSON|Math|this|arguments|prototype|window|document",keyword:"const|yield|import|get|set|async|await|break|case|catch|continue|default|delete|do|else|finally|for|function|if|in|of|instanceof|new|return|switch|throw|try|typeof|let|var|while|with|debugger|__parent__|__count__|escape|unescape|with|__proto__|class|enum|extends|super|export|implements|private|public|interface|package|protected|static","storage.type":"const|let|var|function","constant.language":"null|Infinity|NaN|undefined","support.function":"alert","constant.language.boolean":"true|false"},"identifier"),i="\\\\(?:x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|u{[0-9a-fA-F]{1,6}}|[0-2][0-7]{0,2}|3[0-7][0-7]?|[4-7][0-7]?|.)";this.$rules={no_regex:[o.getStartRule("doc-start"),l("no_regex"),{token:"string",regex:"'(?=.)",next:"qstring"},{token:"string",regex:'"(?=.)',next:"qqstring"},{token:"constant.numeric",regex:/0(?:[xX][0-9a-fA-F]+|[oO][0-7]+|[bB][01]+)\b/},{token:"constant.numeric",regex:/(?:\d\d*(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+\b)?/},{token:["storage.type","punctuation.operator","support.function","punctuation.operator","entity.name.function","text","keyword.operator"],regex:"("+r+")(\\.)(prototype)(\\.)("+r+")(\\s*)(=)",next:"function_arguments"},{token:["storage.type","punctuation.operator","entity.name.function","text","keyword.operator","text","storage.type","text","paren.lparen"],regex:"("+r+")(\\.)("+r+")(\\s*)(=)(\\s*)(function)(\\s*)(\\()",next:"function_arguments"},{token:["entity.name.function","text","keyword.operator","text","storage.type","text","paren.lparen"],regex:"("+r+")(\\s*)(=)(\\s*)(function)(\\s*)(\\()",next:"function_arguments"},{token:["storage.type","punctuation.operator","entity.name.function","text","keyword.operator","text","storage.type","text","entity.name.function","text","paren.lparen"],regex:"("+r+")(\\.)("+r+")(\\s*)(=)(\\s*)(function)(\\s+)(\\w+)(\\s*)(\\()",next:"function_arguments"},{token:["storage.type","text","entity.name.function","text","paren.lparen"],regex:"(function)(\\s+)("+r+")(\\s*)(\\()",next:"function_arguments"},{token:["entity.name.function","text","punctuation.operator","text","storage.type","text","paren.lparen"],regex:"("+r+")(\\s*)(:)(\\s*)(function)(\\s*)(\\()",next:"function_arguments"},{token:["text","text","storage.type","text","paren.lparen"],regex:"(:)(\\s*)(function)(\\s*)(\\()",next:"function_arguments"},{token:"keyword",regex:"from(?=\\s*('|\"))"},{token:"keyword",regex:"(?:case|do|else|finally|in|instanceof|return|throw|try|typeof|yield|void)\\b",next:"start"},{token:["support.constant"],regex:/that\b/},{token:["storage.type","punctuation.operator","support.function.firebug"],regex:/(console)(\.)(warn|info|log|error|time|trace|timeEnd|assert)\b/},{token:t,regex:r},{token:"punctuation.operator",regex:/[.](?![.])/,next:"property"},{token:"storage.type",regex:/=>/,next:"start"},{token:"keyword.operator",regex:/--|\+\+|\.{3}|===|==|=|!=|!==|<+=?|>+=?|!|&&|\|\||\?:|[!$%&*+\-~\/^]=?/,next:"start"},{token:"punctuation.operator",regex:/[?:,;.]/,next:"start"},{token:"paren.lparen",regex:/[\[({]/,next:"start"},{token:"paren.rparen",regex:/[\])}]/},{token:"comment",regex:/^#!.*$/}],property:[{token:"text",regex:"\\s+"},{token:["storage.type","punctuation.operator","entity.name.function","text","keyword.operator","text","storage.type","text","entity.name.function","text","paren.lparen"],regex:"("+r+")(\\.)("+r+")(\\s*)(=)(\\s*)(function)(?:(\\s+)(\\w+))?(\\s*)(\\()",next:"function_arguments"},{token:"punctuation.operator",regex:/[.](?![.])/},{token:"support.function",regex:/(s(?:h(?:ift|ow(?:Mod(?:elessDialog|alDialog)|Help))|croll(?:X|By(?:Pages|Lines)?|Y|To)?|t(?:op|rike)|i(?:n|zeToContent|debar|gnText)|ort|u(?:p|b(?:str(?:ing)?)?)|pli(?:ce|t)|e(?:nd|t(?:Re(?:sizable|questHeader)|M(?:i(?:nutes|lliseconds)|onth)|Seconds|Ho(?:tKeys|urs)|Year|Cursor|Time(?:out)?|Interval|ZOptions|Date|UTC(?:M(?:i(?:nutes|lliseconds)|onth)|Seconds|Hours|Date|FullYear)|FullYear|Active)|arch)|qrt|lice|avePreferences|mall)|h(?:ome|andleEvent)|navigate|c(?:har(?:CodeAt|At)|o(?:s|n(?:cat|textual|firm)|mpile)|eil|lear(?:Timeout|Interval)?|a(?:ptureEvents|ll)|reate(?:StyleSheet|Popup|EventObject))|t(?:o(?:GMTString|S(?:tring|ource)|U(?:TCString|pperCase)|Lo(?:caleString|werCase))|est|a(?:n|int(?:Enabled)?))|i(?:s(?:NaN|Finite)|ndexOf|talics)|d(?:isableExternalCapture|ump|etachEvent)|u(?:n(?:shift|taint|escape|watch)|pdateCommands)|j(?:oin|avaEnabled)|p(?:o(?:p|w)|ush|lugins.refresh|a(?:ddings|rse(?:Int|Float)?)|r(?:int|ompt|eference))|e(?:scape|nableExternalCapture|val|lementFromPoint|x(?:p|ec(?:Script|Command)?))|valueOf|UTC|queryCommand(?:State|Indeterm|Enabled|Value)|f(?:i(?:nd|le(?:ModifiedDate|Size|CreatedDate|UpdatedDate)|xed)|o(?:nt(?:size|color)|rward)|loor|romCharCode)|watch|l(?:ink|o(?:ad|g)|astIndexOf)|a(?:sin|nchor|cos|t(?:tachEvent|ob|an(?:2)?)|pply|lert|b(?:s|ort))|r(?:ou(?:nd|teEvents)|e(?:size(?:By|To)|calc|turnValue|place|verse|l(?:oad|ease(?:Capture|Events)))|andom)|g(?:o|et(?:ResponseHeader|M(?:i(?:nutes|lliseconds)|onth)|Se(?:conds|lection)|Hours|Year|Time(?:zoneOffset)?|Da(?:y|te)|UTC(?:M(?:i(?:nutes|lliseconds)|onth)|Seconds|Hours|Da(?:y|te)|FullYear)|FullYear|A(?:ttention|llResponseHeaders)))|m(?:in|ove(?:B(?:y|elow)|To(?:Absolute)?|Above)|ergeAttributes|a(?:tch|rgins|x))|b(?:toa|ig|o(?:ld|rderWidths)|link|ack))\b(?=\()/},{token:"support.function.dom",regex:/(s(?:ub(?:stringData|mit)|plitText|e(?:t(?:NamedItem|Attribute(?:Node)?)|lect))|has(?:ChildNodes|Feature)|namedItem|c(?:l(?:ick|o(?:se|neNode))|reate(?:C(?:omment|DATASection|aption)|T(?:Head|extNode|Foot)|DocumentFragment|ProcessingInstruction|E(?:ntityReference|lement)|Attribute))|tabIndex|i(?:nsert(?:Row|Before|Cell|Data)|tem)|open|delete(?:Row|C(?:ell|aption)|T(?:Head|Foot)|Data)|focus|write(?:ln)?|a(?:dd|ppend(?:Child|Data))|re(?:set|place(?:Child|Data)|move(?:NamedItem|Child|Attribute(?:Node)?)?)|get(?:NamedItem|Element(?:sBy(?:Name|TagName|ClassName)|ById)|Attribute(?:Node)?)|blur)\b(?=\()/},{token:"support.constant",regex:/(s(?:ystemLanguage|cr(?:ipts|ollbars|een(?:X|Y|Top|Left))|t(?:yle(?:Sheets)?|atus(?:Text|bar)?)|ibling(?:Below|Above)|ource|uffixes|e(?:curity(?:Policy)?|l(?:ection|f)))|h(?:istory|ost(?:name)?|as(?:h|Focus))|y|X(?:MLDocument|SLDocument)|n(?:ext|ame(?:space(?:s|URI)|Prop))|M(?:IN_VALUE|AX_VALUE)|c(?:haracterSet|o(?:n(?:structor|trollers)|okieEnabled|lorDepth|mp(?:onents|lete))|urrent|puClass|l(?:i(?:p(?:boardData)?|entInformation)|osed|asses)|alle(?:e|r)|rypto)|t(?:o(?:olbar|p)|ext(?:Transform|Indent|Decoration|Align)|ags)|SQRT(?:1_2|2)|i(?:n(?:ner(?:Height|Width)|put)|ds|gnoreCase)|zIndex|o(?:scpu|n(?:readystatechange|Line)|uter(?:Height|Width)|p(?:sProfile|ener)|ffscreenBuffering)|NEGATIVE_INFINITY|d(?:i(?:splay|alog(?:Height|Top|Width|Left|Arguments)|rectories)|e(?:scription|fault(?:Status|Ch(?:ecked|arset)|View)))|u(?:ser(?:Profile|Language|Agent)|n(?:iqueID|defined)|pdateInterval)|_content|p(?:ixelDepth|ort|ersonalbar|kcs11|l(?:ugins|atform)|a(?:thname|dding(?:Right|Bottom|Top|Left)|rent(?:Window|Layer)?|ge(?:X(?:Offset)?|Y(?:Offset)?))|r(?:o(?:to(?:col|type)|duct(?:Sub)?|mpter)|e(?:vious|fix)))|e(?:n(?:coding|abledPlugin)|x(?:ternal|pando)|mbeds)|v(?:isibility|endor(?:Sub)?|Linkcolor)|URLUnencoded|P(?:I|OSITIVE_INFINITY)|f(?:ilename|o(?:nt(?:Size|Family|Weight)|rmName)|rame(?:s|Element)|gColor)|E|whiteSpace|l(?:i(?:stStyleType|n(?:eHeight|kColor))|o(?:ca(?:tion(?:bar)?|lName)|wsrc)|e(?:ngth|ft(?:Context)?)|a(?:st(?:M(?:odified|atch)|Index|Paren)|yer(?:s|X)|nguage))|a(?:pp(?:MinorVersion|Name|Co(?:deName|re)|Version)|vail(?:Height|Top|Width|Left)|ll|r(?:ity|guments)|Linkcolor|bove)|r(?:ight(?:Context)?|e(?:sponse(?:XML|Text)|adyState))|global|x|m(?:imeTypes|ultiline|enubar|argin(?:Right|Bottom|Top|Left))|L(?:N(?:10|2)|OG(?:10E|2E))|b(?:o(?:ttom|rder(?:Width|RightWidth|BottomWidth|Style|Color|TopWidth|LeftWidth))|ufferDepth|elow|ackground(?:Color|Image)))\b/},{token:"identifier",regex:r},{regex:"",token:"empty",next:"no_regex"}],start:[o.getStartRule("doc-start"),l("start"),{token:"string.regexp",regex:"\\/",next:"regex"},{token:"text",regex:"\\s+|^$",next:"start"},{token:"empty",regex:"",next:"no_regex"}],regex:[{token:"regexp.keyword.operator",regex:"\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"},{token:"string.regexp",regex:"/[sxngimy]*",next:"no_regex"},{token:"invalid",regex:/\{\d+\b,?\d*\}[+*]|[+*$^?][+*]|[$^][?]|\?{3,}/},{token:"constant.language.escape",regex:/\(\?[:=!]|\)|\{\d+\b,?\d*\}|[+*]\?|[()$^+*?.]/},{token:"constant.language.delimiter",regex:/\|/},{token:"constant.language.escape",regex:/\[\^?/,next:"regex_character_class"},{token:"empty",regex:"$",next:"no_regex"},{defaultToken:"string.regexp"}],regex_character_class:[{token:"regexp.charclass.keyword.operator",regex:"\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"},{token:"constant.language.escape",regex:"]",next:"regex"},{token:"constant.language.escape",regex:"-"},{token:"empty",regex:"$",next:"no_regex"},{defaultToken:"string.regexp.charachterclass"}],function_arguments:[{token:"variable.parameter",regex:r},{token:"punctuation.operator",regex:"[, ]+"},{token:"punctuation.operator",regex:"$"},{token:"empty",regex:"",next:"no_regex"}],qqstring:[{token:"constant.language.escape",regex:i},{token:"string",regex:"\\\\$",consumeLineEnd:!0},{token:"string",regex:'"|$',next:"no_regex"},{defaultToken:"string"}],qstring:[{token:"constant.language.escape",regex:i},{token:"string",regex:"\\\\$",consumeLineEnd:!0},{token:"string",regex:"'|$",next:"no_regex"},{defaultToken:"string"}]},e&&e.noES6||(this.$rules.no_regex.unshift({regex:"[{}]",onMatch:function(e,t,i){if(this.next="{"==e?this.nextState:"","{"==e&&i.length)i.unshift("start",t);else if("}"==e&&i.length&&(i.shift(),this.next=i.shift(),-1!=this.next.indexOf("string")||-1!=this.next.indexOf("jsx")))return"paren.quasi.end";return"{"==e?"paren.lparen":"paren.rparen"},nextState:"start"},{token:"string.quasi.start",regex:/`/,push:[{token:"constant.language.escape",regex:i},{token:"paren.quasi.start",regex:/\${/,push:"start"},{token:"string.quasi.end",regex:/`/,next:"pop"},{defaultToken:"string.quasi"}]}),e&&0==e.jsx||c.call(this)),this.embedRules(o,"doc-",[o.getEndRule("no_regex")]),this.normalizeRules()};function c(){var e=r.replace("\\d","\\d\\-"),t={onMatch:function(e,t,i){var n="/"==e.charAt(1)?2:1;return 1==n?(t!=this.nextState?i.unshift(this.next,this.nextState,0):i.unshift(this.next),i[2]++):2==n&&t==this.nextState&&(i[1]--,(!i[1]||i[1]<0)&&(i.shift(),i.shift())),[{type:"meta.tag.punctuation."+(1==n?"":"end-")+"tag-open.xml",value:e.slice(0,n)},{type:"meta.tag.tag-name.xml",value:e.substr(n)}]},regex:"",onMatch:function(e,t,i){return t==i[0]&&i.shift(),2==e.length&&(i[0]==this.nextState&&i[1]--,(!i[1]||i[1]<0)&&i.splice(0,2)),this.next=i[0]||"start",[{type:this.token,value:e}]},nextState:"jsx"},i,l("jsxAttributes"),{token:"entity.other.attribute-name.xml",regex:e},{token:"keyword.operator.attribute-equals.xml",regex:"="},{token:"text.tag-whitespace.xml",regex:"\\s+"},{token:"string.attribute-value.xml",regex:"'",stateName:"jsx_attr_q",push:[{token:"string.attribute-value.xml",regex:"'",next:"pop"},{include:"reference"},{defaultToken:"string.attribute-value.xml"}]},{token:"string.attribute-value.xml",regex:'"',stateName:"jsx_attr_qq",push:[{token:"string.attribute-value.xml",regex:'"',next:"pop"},{include:"reference"},{defaultToken:"string.attribute-value.xml"}]},t],this.$rules.reference=[{token:"constant.language.escape.reference.xml",regex:"(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"}]}function l(e){return[{token:"comment",regex:/\/\*/,next:[o.getTagRule(),{token:"comment",regex:"\\*\\/",next:e||"pop"},{defaultToken:"comment",caseInsensitive:!0}]},{token:"comment",regex:"\\/\\/",next:[o.getTagRule(),{token:"comment",regex:"$|^",next:e||"pop"},{defaultToken:"comment",caseInsensitive:!0}]}]}n.inherits(a,s),t.JavaScriptHighlightRules=a})),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],(function(e,t,i){"use strict";var n=e("../range").Range,o=function(){};(function(){this.checkOutdent=function(e,t){return!!/^\s+$/.test(e)&&/^\s*\}/.test(t)},this.autoOutdent=function(e,t){var i=e.getLine(t).match(/^(\s*\})/);if(!i)return 0;var o=i[1].length,s=e.findMatchingBracket({row:t,column:o});if(!s||s.row==t)return 0;var r=this.$getIndent(e.getLine(s.row));e.replace(new n(t,0,t,o-1),r)},this.$getIndent=function(e){return e.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,i){"use strict";var n=e("../../lib/oop"),o=e("../../range").Range,s=e("./fold_mode").FoldMode,r=t.FoldMode=function(e){e&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+e.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+e.end)))};n.inherits(r,s),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(e,t,i){var n=e.getLine(i);if(this.singleLineBlockCommentRe.test(n)&&!this.startRegionRe.test(n)&&!this.tripleStarBlockCommentRe.test(n))return"";var o=this._getFoldWidgetBase(e,t,i);return!o&&this.startRegionRe.test(n)?"start":o},this.getFoldWidgetRange=function(e,t,i,n){var o,s=e.getLine(i);if(this.startRegionRe.test(s))return this.getCommentRegionBlock(e,s,i);if(o=s.match(this.foldingStartMarker)){var r=o.index;if(o[1])return this.openingBracketBlock(e,o[1],i,r);var a=e.getCommentFoldRange(i,r+o[0].length,1);return a&&!a.isMultiLine()&&(n?a=this.getSectionRange(e,i):"all"!=t&&(a=null)),a}if("markbegin"!==t&&(o=s.match(this.foldingStopMarker))){r=o.index+o[0].length;return o[1]?this.closingBracketBlock(e,o[1],i,r):e.getCommentFoldRange(i,r,-1)}},this.getSectionRange=function(e,t){for(var i=e.getLine(t),n=i.search(/\S/),s=t,r=i.length,a=t+=1,c=e.getLength();++tl)break;var h=this.getFoldWidgetRange(e,"all",t);if(h){if(h.start.row<=s)break;if(h.isMultiLine())t=h.end.row;else if(n==l)break}a=t}}return new o(s,r,a,e.getLine(a).length)},this.getCommentRegionBlock=function(e,t,i){for(var n=t.search(/\s*$/),s=e.getLength(),r=i,a=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,c=1;++ir)return new o(r,n,i,t.length)}}.call(r.prototype)})),ace.define("ace/mode/javascript",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/javascript_highlight_rules","ace/mode/matching_brace_outdent","ace/worker/worker_client","ace/mode/behaviour/cstyle","ace/mode/folding/cstyle"],(function(e,t,i){"use strict";var n=e("../lib/oop"),o=e("./text").Mode,s=e("./javascript_highlight_rules").JavaScriptHighlightRules,r=e("./matching_brace_outdent").MatchingBraceOutdent,a=e("../worker/worker_client").WorkerClient,c=e("./behaviour/cstyle").CstyleBehaviour,l=e("./folding/cstyle").FoldMode,h=function(){this.HighlightRules=s,this.$outdent=new r,this.$behaviour=new c,this.foldingRules=new l};n.inherits(h,o),function(){this.lineCommentStart="//",this.blockComment={start:"/*",end:"*/"},this.$quotes={'"':'"',"'":"'","`":"`"},this.getNextLineIndent=function(e,t,i){var n=this.$getIndent(t),o=this.getTokenizer().getLineTokens(t,e),s=o.tokens,r=o.state;if(s.length&&"comment"==s[s.length-1].type)return n;if("start"==e||"no_regex"==e)(a=t.match(/^.*(?:\bcase\b.*:|[\{\(\[])\s*$/))&&(n+=i);else if("doc-start"==e){if("start"==r||"no_regex"==r)return"";var a;(a=t.match(/^\s*(\/?)\*/))&&(a[1]&&(n+=" "),n+="* ")}return n},this.checkOutdent=function(e,t,i){return this.$outdent.checkOutdent(t,i)},this.autoOutdent=function(e,t,i){this.$outdent.autoOutdent(t,i)},this.createWorker=function(e){var t=new a(["ace"],"ace/mode/javascript_worker","JavaScriptWorker");return t.attachToDocument(e.getDocument()),t.on("annotate",(function(t){e.setAnnotations(t.data)})),t.on("terminate",(function(){e.clearAnnotations()})),t},this.$id="ace/mode/javascript",this.snippetFileId="ace/snippets/javascript"}.call(h.prototype),t.Mode=h})),ace.define("ace/mode/groovy_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/doc_comment_highlight_rules","ace/mode/text_highlight_rules"],(function(e,t,i){"use strict";var n=e("../lib/oop"),o=e("./doc_comment_highlight_rules").DocCommentHighlightRules,s=e("./text_highlight_rules").TextHighlightRules,r=function(){var e=this.createKeywordMapper({"variable.language":"this",keyword:"assert|with|abstract|continue|for|new|switch|assert|default|goto|package|synchronized|boolean|do|if|private|this|break|double|implements|protected|throw|byte|else|import|public|throws|case|enum|instanceof|return|transient|catch|extends|int|short|try|char|final|interface|static|void|class|finally|long|strictfp|volatile|def|float|native|super|while","support.function":"AbstractMethodError|AssertionError|ClassCircularityError|ClassFormatError|Deprecated|EnumConstantNotPresentException|ExceptionInInitializerError|IllegalAccessError|IllegalThreadStateException|InstantiationError|InternalError|NegativeArraySizeException|NoSuchFieldError|Override|Process|ProcessBuilder|SecurityManager|StringIndexOutOfBoundsException|SuppressWarnings|TypeNotPresentException|UnknownError|UnsatisfiedLinkError|UnsupportedClassVersionError|VerifyError|InstantiationException|IndexOutOfBoundsException|ArrayIndexOutOfBoundsException|CloneNotSupportedException|NoSuchFieldException|IllegalArgumentException|NumberFormatException|SecurityException|Void|InheritableThreadLocal|IllegalStateException|InterruptedException|NoSuchMethodException|IllegalAccessException|UnsupportedOperationException|Enum|StrictMath|Package|Compiler|Readable|Runtime|StringBuilder|Math|IncompatibleClassChangeError|NoSuchMethodError|ThreadLocal|RuntimePermission|ArithmeticException|NullPointerException|Long|Integer|Short|Byte|Double|Number|Float|Character|Boolean|StackTraceElement|Appendable|StringBuffer|Iterable|ThreadGroup|Runnable|Thread|IllegalMonitorStateException|StackOverflowError|OutOfMemoryError|VirtualMachineError|ArrayStoreException|ClassCastException|LinkageError|NoClassDefFoundError|ClassNotFoundException|RuntimeException|Exception|ThreadDeath|Error|Throwable|System|ClassLoader|Cloneable|Class|CharSequence|Comparable|String|Object","constant.language":"null|Infinity|NaN|undefined"},"identifier");this.$rules={start:[{token:"comment",regex:"\\/\\/.*$"},o.getStartRule("doc-start"),{token:"comment",regex:"\\/\\*",next:"comment"},{token:"string.regexp",regex:"[/](?:(?:\\[(?:\\\\]|[^\\]])+\\])|(?:\\\\/|[^\\]/]))*[/]\\w*\\s*(?=[).,;]|$)"},{token:"string",regex:'"""',next:"qqstring"},{token:"string",regex:"'''",next:"qstring"},{token:"string",regex:'["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]'},{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:e,regex:"[a-zA-Z_$][a-zA-Z0-9_$]*\\b"},{token:"keyword.operator",regex:"\\?:|\\?\\.|\\*\\.|<=>|=~|==~|\\.@|\\*\\.@|\\.&|as|in|is|!|\\$|%|&|\\*|\\-\\-|\\-|\\+\\+|\\+|~|===|==|=|!=|!==|<=|>=|<<=|>>=|>>>=|<>|<|>|!|&&|\\|\\||\\?\\:|\\*=|%=|\\+=|\\-=|&=|\\^=|\\b(?:in|instanceof|new|delete|typeof|void)"},{token:"lparen",regex:"[[({]"},{token:"rparen",regex:"[\\])}]"},{token:"text",regex:"\\s+"}],comment:[{token:"comment",regex:"\\*\\/",next:"start"},{defaultToken:"comment"}],qqstring:[{token:"constant.language.escape",regex:/\\(?:u[0-9A-Fa-f]{4}|.|$)/},{token:"constant.language.escape",regex:/\$[\w\d]+/},{token:"constant.language.escape",regex:/\$\{[^"\}]+\}?/},{token:"string",regex:'"{3,5}',next:"start"},{token:"string",regex:".+?"}],qstring:[{token:"constant.language.escape",regex:/\\(?:u[0-9A-Fa-f]{4}|.|$)/},{token:"string",regex:"'{3,5}",next:"start"},{token:"string",regex:".+?"}]},this.embedRules(o,"doc-",[o.getEndRule("start")])};n.inherits(r,s),t.GroovyHighlightRules=r})),ace.define("ace/mode/groovy",["require","exports","module","ace/lib/oop","ace/mode/javascript","ace/mode/groovy_highlight_rules"],(function(e,t,i){"use strict";var n=e("../lib/oop"),o=e("./javascript").Mode,s=e("./groovy_highlight_rules").GroovyHighlightRules,r=function(){o.call(this),this.HighlightRules=s};n.inherits(r,o),function(){this.createWorker=function(e){return null},this.$id="ace/mode/groovy"}.call(r.prototype),t.Mode=r})),ace.require(["ace/mode/groovy"],(function(t){e&&(e.exports=t)}))}).call(this,i(138)(e))},5715:function(e,t,i){(function(e){ace.define("ace/theme/chaos",["require","exports","module","ace/lib/dom"],(function(e,t,i){t.isDark=!0,t.cssClass="ace-chaos",t.cssText=".ace-chaos .ace_gutter {background: #141414;color: #595959;border-right: 1px solid #282828;}.ace-chaos .ace_gutter-cell.ace_warning {background-image: none;background: #FC0;border-left: none;padding-left: 0;color: #000;}.ace-chaos .ace_gutter-cell.ace_error {background-position: -6px center;background-image: none;background: #F10;border-left: none;padding-left: 0;color: #000;}.ace-chaos .ace_print-margin {border-left: 1px solid #555;right: 0;background: #1D1D1D;}.ace-chaos {background-color: #161616;color: #E6E1DC;}.ace-chaos .ace_cursor {border-left: 2px solid #FFFFFF;}.ace-chaos .ace_cursor.ace_overwrite {border-left: 0px;border-bottom: 1px solid #FFFFFF;}.ace-chaos .ace_marker-layer .ace_selection {background: #494836;}.ace-chaos .ace_marker-layer .ace_step {background: rgb(198, 219, 174);}.ace-chaos .ace_marker-layer .ace_bracket {margin: -1px 0 0 -1px;border: 1px solid #FCE94F;}.ace-chaos .ace_marker-layer .ace_active-line {background: #333;}.ace-chaos .ace_gutter-active-line {background-color: #222;}.ace-chaos .ace_invisible {color: #404040;}.ace-chaos .ace_keyword {color:#00698F;}.ace-chaos .ace_keyword.ace_operator {color:#FF308F;}.ace-chaos .ace_constant {color:#1EDAFB;}.ace-chaos .ace_constant.ace_language {color:#FDC251;}.ace-chaos .ace_constant.ace_library {color:#8DFF0A;}.ace-chaos .ace_constant.ace_numeric {color:#58C554;}.ace-chaos .ace_invalid {color:#FFFFFF;background-color:#990000;}.ace-chaos .ace_invalid.ace_deprecated {color:#FFFFFF;background-color:#990000;}.ace-chaos .ace_support {color: #999;}.ace-chaos .ace_support.ace_function {color:#00AEEF;}.ace-chaos .ace_function {color:#00AEEF;}.ace-chaos .ace_string {color:#58C554;}.ace-chaos .ace_comment {color:#555;font-style:italic;padding-bottom: 0px;}.ace-chaos .ace_variable {color:#997744;}.ace-chaos .ace_meta.ace_tag {color:#BE53E6;}.ace-chaos .ace_entity.ace_other.ace_attribute-name {color:#FFFF89;}.ace-chaos .ace_markup.ace_underline {text-decoration: underline;}.ace-chaos .ace_fold-widget {text-align: center;}.ace-chaos .ace_fold-widget:hover {color: #777;}.ace-chaos .ace_fold-widget.ace_start,.ace-chaos .ace_fold-widget.ace_end,.ace-chaos .ace_fold-widget.ace_closed{background: none !important;border: none;box-shadow: none;}.ace-chaos .ace_fold-widget.ace_start:after {content: '▾'}.ace-chaos .ace_fold-widget.ace_end:after {content: '▴'}.ace-chaos .ace_fold-widget.ace_closed:after {content: '‣'}.ace-chaos .ace_indent-guide {border-right:1px dotted #333;margin-right:-1px;}.ace-chaos .ace_fold { background: #222; border-radius: 3px; color: #7AF; border: none; }.ace-chaos .ace_fold:hover {background: #CCC; color: #000;}",e("../lib/dom").importCssString(t.cssText,t.cssClass)})),ace.require(["ace/theme/chaos"],(function(t){e&&(e.exports=t)}))}).call(this,i(138)(e))},5716:function(e,t,i){(function(e){ace.define("ace/keyboard/vscode",["require","exports","module","ace/keyboard/hash_handler","ace/config"],(function(e,t,i){"use strict";var n=e("../keyboard/hash_handler").HashHandler,o=e("../config");t.handler=new n,t.handler.$id="ace/keyboard/vscode",t.handler.addCommands([{name:"toggleWordWrap",exec:function(e){var t=e.session.getUseWrapMode();e.session.setUseWrapMode(!t)},readOnly:!0},{name:"navigateToLastEditLocation",exec:function(e){var t=e.session.getUndoManager().$lastDelta,i="remove"==t.action?t.start:t.end;e.moveCursorTo(i.row,i.column),e.clearSelection()}},{name:"replaceAll",exec:function(e){e.searchBox?!0===e.searchBox.active&&!0===e.searchBox.replaceOption.checked&&e.searchBox.replaceAll():o.loadModule("ace/ext/searchbox",(function(t){t.Search(e,!0)}))}},{name:"replaceOne",exec:function(e){e.searchBox?!0===e.searchBox.active&&!0===e.searchBox.replaceOption.checked&&e.searchBox.replace():o.loadModule("ace/ext/searchbox",(function(t){t.Search(e,!0)}))}},{name:"selectAllMatches",exec:function(e){e.searchBox?!0===e.searchBox.active&&e.searchBox.findAll():o.loadModule("ace/ext/searchbox",(function(t){t.Search(e,!1)}))}},{name:"toggleFindCaseSensitive",exec:function(e){o.loadModule("ace/ext/searchbox",(function(t){t.Search(e,!1);var i=e.searchBox;i.caseSensitiveOption.checked=!i.caseSensitiveOption.checked,i.$syncOptions()}))}},{name:"toggleFindInSelection",exec:function(e){o.loadModule("ace/ext/searchbox",(function(t){t.Search(e,!1);var i=e.searchBox;i.searchOption.checked=!i.searchRange,i.setSearchRange(i.searchOption.checked&&i.editor.getSelectionRange()),i.$syncOptions()}))}},{name:"toggleFindRegex",exec:function(e){o.loadModule("ace/ext/searchbox",(function(t){t.Search(e,!1);var i=e.searchBox;i.regExpOption.checked=!i.regExpOption.checked,i.$syncOptions()}))}},{name:"toggleFindWholeWord",exec:function(e){o.loadModule("ace/ext/searchbox",(function(t){t.Search(e,!1);var i=e.searchBox;i.wholeWordOption.checked=!i.wholeWordOption.checked,i.$syncOptions()}))}},{name:"removeSecondaryCursors",exec:function(e){var t=e.selection.ranges;t&&t.length>1?e.selection.toSingleRange(t[t.length-1]):e.selection.clearSelection()}}]),[{bindKey:{mac:"Ctrl-G",win:"Ctrl-G"},name:"gotoline"},{bindKey:{mac:"Command-Shift-L|Command-F2",win:"Ctrl-Shift-L|Ctrl-F2"},name:"findAll"},{bindKey:{mac:"Shift-F8|Shift-Option-F8",win:"Shift-F8|Shift-Alt-F8"},name:"goToPreviousError"},{bindKey:{mac:"F8|Option-F8",win:"F8|Alt-F8"},name:"goToNextError"},{bindKey:{mac:"Command-Shift-P|F1",win:"Ctrl-Shift-P|F1"},name:"openCommandPallete"},{bindKey:{mac:"Command-K|Command-S",win:"Ctrl-K|Ctrl-S"},name:"showKeyboardShortcuts"},{bindKey:{mac:"Shift-Option-Up",win:"Alt-Shift-Up"},name:"copylinesup"},{bindKey:{mac:"Shift-Option-Down",win:"Alt-Shift-Down"},name:"copylinesdown"},{bindKey:{mac:"Command-Shift-K",win:"Ctrl-Shift-K"},name:"removeline"},{bindKey:{mac:"Command-Enter",win:"Ctrl-Enter"},name:"addLineAfter"},{bindKey:{mac:"Command-Shift-Enter",win:"Ctrl-Shift-Enter"},name:"addLineBefore"},{bindKey:{mac:"Command-Shift-\\",win:"Ctrl-Shift-\\"},name:"jumptomatching"},{bindKey:{mac:"Command-]",win:"Ctrl-]"},name:"blockindent"},{bindKey:{mac:"Command-[",win:"Ctrl-["},name:"blockoutdent"},{bindKey:{mac:"Ctrl-PageDown",win:"Alt-PageDown"},name:"pagedown"},{bindKey:{mac:"Ctrl-PageUp",win:"Alt-PageUp"},name:"pageup"},{bindKey:{mac:"Shift-Option-A",win:"Shift-Alt-A"},name:"toggleBlockComment"},{bindKey:{mac:"Option-Z",win:"Alt-Z"},name:"toggleWordWrap"},{bindKey:{mac:"Command-G",win:"F3|Ctrl-K Ctrl-D"},name:"findnext"},{bindKey:{mac:"Command-Shift-G",win:"Shift-F3"},name:"findprevious"},{bindKey:{mac:"Option-Enter",win:"Alt-Enter"},name:"selectAllMatches"},{bindKey:{mac:"Command-D",win:"Ctrl-D"},name:"selectMoreAfter"},{bindKey:{mac:"Command-K Command-D",win:"Ctrl-K Ctrl-D"},name:"selectOrFindNext"},{bindKey:{mac:"Shift-Option-I",win:"Shift-Alt-I"},name:"splitSelectionIntoLines"},{bindKey:{mac:"Command-K M",win:"Ctrl-K M"},name:"modeSelect"},{bindKey:{mac:"Command-Option-[",win:"Ctrl-Shift-["},name:"toggleFoldWidget"},{bindKey:{mac:"Command-Option-]",win:"Ctrl-Shift-]"},name:"toggleFoldWidget"},{bindKey:{mac:"Command-K Command-0",win:"Ctrl-K Ctrl-0"},name:"foldall"},{bindKey:{mac:"Command-K Command-J",win:"Ctrl-K Ctrl-J"},name:"unfoldall"},{bindKey:{mac:"Command-K Command-1",win:"Ctrl-K Ctrl-1"},name:"foldOther"},{bindKey:{mac:"Command-K Command-Q",win:"Ctrl-K Ctrl-Q"},name:"navigateToLastEditLocation"},{bindKey:{mac:"Command-K Command-R|Command-K Command-S",win:"Ctrl-K Ctrl-R|Ctrl-K Ctrl-S"},name:"showKeyboardShortcuts"},{bindKey:{mac:"Command-K Command-X",win:"Ctrl-K Ctrl-X"},name:"trimTrailingSpace"},{bindKey:{mac:"Shift-Down|Command-Shift-Down",win:"Shift-Down|Ctrl-Shift-Down"},name:"selectdown"},{bindKey:{mac:"Shift-Up|Command-Shift-Up",win:"Shift-Up|Ctrl-Shift-Up"},name:"selectup"},{bindKey:{mac:"Command-Alt-Enter",win:"Ctrl-Alt-Enter"},name:"replaceAll"},{bindKey:{mac:"Command-Shift-1",win:"Ctrl-Shift-1"},name:"replaceOne"},{bindKey:{mac:"Option-C",win:"Alt-C"},name:"toggleFindCaseSensitive"},{bindKey:{mac:"Option-L",win:"Alt-L"},name:"toggleFindInSelection"},{bindKey:{mac:"Option-R",win:"Alt-R"},name:"toggleFindRegex"},{bindKey:{mac:"Option-W",win:"Alt-W"},name:"toggleFindWholeWord"},{bindKey:{mac:"Command-L",win:"Ctrl-L"},name:"expandtoline"},{bindKey:{mac:"Shift-Esc",win:"Shift-Esc"},name:"removeSecondaryCursors"}].forEach((function(e){var i=t.handler.commands[e.name];i&&(i.bindKey=e.bindKey),t.handler.bindKey(e.bindKey,i||e.name)}))})),ace.require(["ace/keyboard/vscode"],(function(t){e&&(e.exports=t)}))}).call(this,i(138)(e))},5717:function(e,t,i){(function(e){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,i){"use strict";var n=e("../lib/dom"),o=e("../lib/lang"),s=e("../lib/event"),r='.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;outline: 0;padding: 0;font-size: inherit;margin: 0;line-height: inherit;padding: 0 6px;min-width: 17em;vertical-align: top;min-height: 1.8em;box-sizing: content-box;}.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;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;}',a=e("../keyboard/hash_handler").HashHandler,c=e("../lib/keys");n.importCssString(r,"ace_searchbox");var l=function(e,t,i){var o=n.createElement("div");n.buildDom(["div",{class:"ace_search right"},["span",{action:"hide",class:"ace_searchbtn_close"}],["div",{class:"ace_search_form"},["input",{class:"ace_search_field",placeholder:"Search for",spellcheck:"false"}],["span",{action:"findPrev",class:"ace_searchbtn prev"},"​"],["span",{action:"findNext",class:"ace_searchbtn next"},"​"],["span",{action:"findAll",class:"ace_searchbtn",title:"Alt-Enter"},"All"]],["div",{class:"ace_replace_form"},["input",{class:"ace_search_field",placeholder:"Replace with",spellcheck:"false"}],["span",{action:"replaceAndFindNext",class:"ace_searchbtn"},"Replace"],["span",{action:"replaceAll",class:"ace_searchbtn"},"All"]],["div",{class:"ace_search_options"},["span",{action:"toggleReplace",class:"ace_button",title:"Toggle Replace mode",style:"float:left;margin-top:-2px;padding:0 5px;"},"+"],["span",{class:"ace_search_counter"}],["span",{action:"toggleRegexpMode",class:"ace_button",title:"RegExp Search"},".*"],["span",{action:"toggleCaseSensitive",class:"ace_button",title:"CaseSensitive Search"},"Aa"],["span",{action:"toggleWholeWords",class:"ace_button",title:"Whole Word Search"},"\\b"],["span",{action:"searchInSelection",class:"ace_button",title:"Search In Selection"},"S"]]],o),this.element=o.firstChild,this.setSession=this.setSession.bind(this),this.$init(),this.setEditor(e),n.importCssString(r,"ace_searchbox",e.container)};(function(){this.setEditor=function(e){e.searchBox=this,e.renderer.scroller.appendChild(this.element),this.editor=e},this.setSession=function(e){this.searchRange=null,this.$syncOptions(!0)},this.$initElements=function(e){this.searchBox=e.querySelector(".ace_search_form"),this.replaceBox=e.querySelector(".ace_replace_form"),this.searchOption=e.querySelector("[action=searchInSelection]"),this.replaceOption=e.querySelector("[action=toggleReplace]"),this.regExpOption=e.querySelector("[action=toggleRegexpMode]"),this.caseSensitiveOption=e.querySelector("[action=toggleCaseSensitive]"),this.wholeWordOption=e.querySelector("[action=toggleWholeWords]"),this.searchInput=this.searchBox.querySelector(".ace_search_field"),this.replaceInput=this.replaceBox.querySelector(".ace_search_field"),this.searchCounter=e.querySelector(".ace_search_counter")},this.$init=function(){var e=this.element;this.$initElements(e);var t=this;s.addListener(e,"mousedown",(function(e){setTimeout((function(){t.activeInput.focus()}),0),s.stopPropagation(e)})),s.addListener(e,"click",(function(e){var i=(e.target||e.srcElement).getAttribute("action");i&&t[i]?t[i]():t.$searchBarKb.commands[i]&&t.$searchBarKb.commands[i].exec(t),s.stopPropagation(e)})),s.addCommandKeyListener(e,(function(e,i,n){var o=c.keyCodeToString(n),r=t.$searchBarKb.findKeyCommand(i,o);r&&r.exec&&(r.exec(t),s.stopEvent(e))})),this.$onChange=o.delayedCall((function(){t.find(!1,!1)})),s.addListener(this.searchInput,"input",(function(){t.$onChange.schedule(20)})),s.addListener(this.searchInput,"focus",(function(){t.activeInput=t.searchInput,t.searchInput.value&&t.highlight()})),s.addListener(this.replaceInput,"focus",(function(){t.activeInput=t.replaceInput,t.searchInput.value&&t.highlight()}))},this.$closeSearchBarKb=new a([{bindKey:"Esc",name:"closeSearchBar",exec:function(e){e.searchBox.hide()}}]),this.$searchBarKb=new a,this.$searchBarKb.bindKeys({"Ctrl-f|Command-f":function(e){var t=e.isReplace=!e.isReplace;e.replaceBox.style.display=t?"":"none",e.replaceOption.checked=!1,e.$syncOptions(),e.searchInput.focus()},"Ctrl-H|Command-Option-F":function(e){e.editor.getReadOnly()||(e.replaceOption.checked=!0,e.$syncOptions(),e.replaceInput.focus())},"Ctrl-G|Command-G":function(e){e.findNext()},"Ctrl-Shift-G|Command-Shift-G":function(e){e.findPrev()},esc:function(e){setTimeout((function(){e.hide()}))},Return:function(e){e.activeInput==e.replaceInput&&e.replace(),e.findNext()},"Shift-Return":function(e){e.activeInput==e.replaceInput&&e.replace(),e.findPrev()},"Alt-Return":function(e){e.activeInput==e.replaceInput&&e.replaceAll(),e.findAll()},Tab:function(e){(e.activeInput==e.replaceInput?e.searchInput:e.replaceInput).focus()}}),this.$searchBarKb.addCommands([{name:"toggleRegexpMode",bindKey:{win:"Alt-R|Alt-/",mac:"Ctrl-Alt-R|Ctrl-Alt-/"},exec:function(e){e.regExpOption.checked=!e.regExpOption.checked,e.$syncOptions()}},{name:"toggleCaseSensitive",bindKey:{win:"Alt-C|Alt-I",mac:"Ctrl-Alt-R|Ctrl-Alt-I"},exec:function(e){e.caseSensitiveOption.checked=!e.caseSensitiveOption.checked,e.$syncOptions()}},{name:"toggleWholeWords",bindKey:{win:"Alt-B|Alt-W",mac:"Ctrl-Alt-B|Ctrl-Alt-W"},exec:function(e){e.wholeWordOption.checked=!e.wholeWordOption.checked,e.$syncOptions()}},{name:"toggleReplace",exec:function(e){e.replaceOption.checked=!e.replaceOption.checked,e.$syncOptions()}},{name:"searchInSelection",exec:function(e){e.searchOption.checked=!e.searchRange,e.setSearchRange(e.searchOption.checked&&e.editor.getSelectionRange()),e.$syncOptions()}}]),this.setSearchRange=function(e){this.searchRange=e,e?this.searchRangeMarker=this.editor.session.addMarker(e,"ace_active-line"):this.searchRangeMarker&&(this.editor.session.removeMarker(this.searchRangeMarker),this.searchRangeMarker=null)},this.$syncOptions=function(e){n.setCssClass(this.replaceOption,"checked",this.searchRange),n.setCssClass(this.searchOption,"checked",this.searchOption.checked),this.replaceOption.textContent=this.replaceOption.checked?"-":"+",n.setCssClass(this.regExpOption,"checked",this.regExpOption.checked),n.setCssClass(this.wholeWordOption,"checked",this.wholeWordOption.checked),n.setCssClass(this.caseSensitiveOption,"checked",this.caseSensitiveOption.checked);var t=this.editor.getReadOnly();this.replaceOption.style.display=t?"none":"",this.replaceBox.style.display=this.replaceOption.checked&&!t?"":"none",this.find(!1,!1,e)},this.highlight=function(e){this.editor.session.highlight(e||this.editor.$search.$options.re),this.editor.renderer.updateBackMarkers()},this.find=function(e,t,i){var o=!this.editor.find(this.searchInput.value,{skipCurrent:e,backwards:t,wrap:!0,regExp:this.regExpOption.checked,caseSensitive:this.caseSensitiveOption.checked,wholeWord:this.wholeWordOption.checked,preventScroll:i,range:this.searchRange})&&this.searchInput.value;n.setCssClass(this.searchBox,"ace_nomatch",o),this.editor._emit("findSearchBox",{match:!o}),this.highlight(),this.updateCounter()},this.updateCounter=function(){var e=this.editor,t=e.$search.$options.re,i=0,n=0;if(t){var o=this.searchRange?e.session.getTextRange(this.searchRange):e.getValue(),s=e.session.doc.positionToIndex(e.selection.anchor);this.searchRange&&(s-=e.session.doc.positionToIndex(this.searchRange.start));for(var r,a=t.lastIndex=0;(r=t.exec(o))&&(i++,(a=r.index)<=s&&n++,!(i>999))&&(r[0]||(t.lastIndex=a+=1,!(a>=o.length))););}this.searchCounter.textContent=n+" of "+(i>999?"999+":i)},this.findNext=function(){this.find(!0,!1)},this.findPrev=function(){this.find(!0,!0)},this.findAll=function(){var e=!this.editor.findAll(this.searchInput.value,{regExp:this.regExpOption.checked,caseSensitive:this.caseSensitiveOption.checked,wholeWord:this.wholeWordOption.checked})&&this.searchInput.value;n.setCssClass(this.searchBox,"ace_nomatch",e),this.editor._emit("findSearchBox",{match:!e}),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(e,t){this.active=!0,this.editor.on("changeSession",this.setSession),this.element.style.display="",this.replaceOption.checked=t,e&&(this.searchInput.value=e),this.searchInput.focus(),this.searchInput.select(),this.editor.keyBinding.addKeyboardHandler(this.$closeSearchBarKb),this.$syncOptions(!0)},this.isFocused=function(){var e=document.activeElement;return e==this.searchInput||e==this.replaceInput}}).call(l.prototype),t.SearchBox=l,t.Search=function(e,t){(e.searchBox||new l(e)).show(e.session.getTextRange(),t)}})),ace.require(["ace/ext/searchbox"],(function(t){e&&(e.exports=t)}))}).call(this,i(138)(e))},5718:function(e,t,i){}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[13],{2004:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.editorOptions=["minLines","maxLines","readOnly","highlightActiveLine","tabSize","enableBasicAutocompletion","enableLiveAutocompletion","enableSnippets"];t.editorEvents=["onChange","onFocus","onInput","onBlur","onCopy","onPaste","onSelectionChange","onCursorChange","onScroll","handleOptions","updateRef"];t.getAceInstance=function(){var e;return window.ace?(e=window.ace).acequire=window.ace.require||window.ace.acequire:e=i(2005),e};t.debounce=function(e,t){var i=null;return function(){var n=this,o=arguments;clearTimeout(i),i=setTimeout((function(){e.apply(n,o)}),t)}}},2005:function(e,t,i){(function(e){!function(){var e=function(){return this}();e||"undefined"==typeof window||(e=window);var t=function(e,i,n){"string"==typeof e?(2==arguments.length&&(n=i),t.modules[e]||(t.payloads[e]=n,t.modules[e]=null)):t.original?t.original.apply(this,arguments):(console.error("dropping module because define wasn't a string."),console.trace())};t.modules={},t.payloads={};var i,n,o=function(e,t,i){if("string"==typeof t){var n=a(e,t);if(null!=n)return i&&i(),n}else if("[object Array]"===Object.prototype.toString.call(t)){for(var o=[],r=0,c=t.length;r=0?parseFloat((s.match(/(?:MSIE |Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]):parseFloat((s.match(/(?:Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]),t.isOldIE=t.isIE&&t.isIE<9,t.isGecko=t.isMozilla=s.match(/ Gecko\/\d+/),t.isOpera="object"==typeof opera&&"[object Opera]"==Object.prototype.toString.call(window.opera),t.isWebKit=parseFloat(s.split("WebKit/")[1])||void 0,t.isChrome=parseFloat(s.split(" Chrome/")[1])||void 0,t.isEdge=parseFloat(s.split(" Edge/")[1])||void 0,t.isAIR=s.indexOf("AdobeAIR")>=0,t.isAndroid=s.indexOf("Android")>=0,t.isChromeOS=s.indexOf(" CrOS ")>=0,t.isIOS=/iPad|iPhone|iPod/.test(s)&&!window.MSStream,t.isIOS&&(t.isMac=!0),t.isMobile=t.isIOS||t.isAndroid})),ace.define("ace/lib/dom",["require","exports","module","ace/lib/useragent"],(function(e,t,i){"use strict";var n=e("./useragent");if(t.buildDom=function e(t,i,n){if("string"==typeof t&&t){var o=document.createTextNode(t);return i&&i.appendChild(o),o}if(!Array.isArray(t))return t&&t.appendChild&&i&&i.appendChild(t),t;if("string"!=typeof t[0]||!t[0]){for(var s=[],r=0;r=1.5,"undefined"!=typeof document){var o=document.createElement("div");t.HI_DPI&&void 0!==o.style.transform&&(t.HAS_CSS_TRANSFORMS=!0),n.isEdge||void 0===o.style.animationName||(t.HAS_CSS_ANIMATION=!0),o=null}t.HAS_CSS_TRANSFORMS?t.translate=function(e,t,i){e.style.transform="translate("+Math.round(t)+"px, "+Math.round(i)+"px)"}:t.translate=function(e,t,i){e.style.top=Math.round(i)+"px",e.style.left=Math.round(t)+"px"}})),ace.define("ace/lib/oop",["require","exports","module"],(function(e,t,i){"use strict";t.inherits=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})},t.mixin=function(e,t){for(var i in t)e[i]=t[i];return e},t.implement=function(e,i){t.mixin(e,i)}})),ace.define("ace/lib/keys",["require","exports","module","ace/lib/oop"],(function(e,t,i){"use strict";var n=e("./oop"),o=function(){var e,t,i={MODIFIER_KEYS:{16:"Shift",17:"Ctrl",18:"Alt",224:"Meta",91:"MetaLeft",92:"MetaRight",93:"ContextMenu"},KEY_MODS:{ctrl:1,alt:2,option:2,shift:4,super:8,meta:8,command:8,cmd:8,control:1},FUNCTION_KEYS:{8:"Backspace",9:"Tab",13:"Return",19:"Pause",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"Print",45:"Insert",46:"Delete",96:"Numpad0",97:"Numpad1",98:"Numpad2",99:"Numpad3",100:"Numpad4",101:"Numpad5",102:"Numpad6",103:"Numpad7",104:"Numpad8",105:"Numpad9","-13":"NumpadEnter",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"Numlock",145:"Scrolllock"},PRINTABLE_KEYS:{32:" ",48:"0",49:"1",50:"2",51:"3",52:"4",53:"5",54:"6",55:"7",56:"8",57:"9",59:";",61:"=",65:"a",66:"b",67:"c",68:"d",69:"e",70:"f",71:"g",72:"h",73:"i",74:"j",75:"k",76:"l",77:"m",78:"n",79:"o",80:"p",81:"q",82:"r",83:"s",84:"t",85:"u",86:"v",87:"w",88:"x",89:"y",90:"z",107:"+",109:"-",110:".",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",111:"/",106:"*"}};for(t in i.FUNCTION_KEYS)e=i.FUNCTION_KEYS[t].toLowerCase(),i[e]=parseInt(t,10);for(t in i.PRINTABLE_KEYS)e=i.PRINTABLE_KEYS[t].toLowerCase(),i[e]=parseInt(t,10);return n.mixin(i,i.MODIFIER_KEYS),n.mixin(i,i.PRINTABLE_KEYS),n.mixin(i,i.FUNCTION_KEYS),i.enter=i.return,i.escape=i.esc,i.del=i.delete,i[173]="-",function(){for(var e=["cmd","ctrl","alt","shift"],t=Math.pow(2,e.length);t--;)i.KEY_MODS[t]=e.filter((function(e){return t&i.KEY_MODS[e]})).join("-")+"-"}(),i.KEY_MODS[0]="",i.KEY_MODS[-1]="input-",i}();n.mixin(t,o),t.keyCodeToString=function(e){var t=o[e];return"string"!=typeof t&&(t=String.fromCharCode(e)),t.toLowerCase()}})),ace.define("ace/lib/event",["require","exports","module","ace/lib/keys","ace/lib/useragent"],(function(e,t,i){"use strict";var n,o=e("./keys"),s=e("./useragent"),r=null,a=0;function c(){return null==n&&function(){n=!1;try{document.createComment("").addEventListener("test",(function(){}),{get passive(){n={passive:!1}}})}catch(e){}}(),n}function l(e,t,i){this.elem=e,this.type=t,this.callback=i}l.prototype.destroy=function(){d(this.elem,this.type,this.callback),this.elem=this.type=this.callback=void 0};var h=t.addListener=function(e,t,i,n){e.addEventListener(t,i,c()),n&&n.$toDestroy.push(new l(e,t,i))},d=t.removeListener=function(e,t,i){e.removeEventListener(t,i,c())};t.stopEvent=function(e){return t.stopPropagation(e),t.preventDefault(e),!1},t.stopPropagation=function(e){e.stopPropagation&&e.stopPropagation()},t.preventDefault=function(e){e.preventDefault&&e.preventDefault()},t.getButton=function(e){return"dblclick"==e.type?0:"contextmenu"==e.type||s.isMac&&e.ctrlKey&&!e.altKey&&!e.shiftKey?2:e.button},t.capture=function(e,t,i){var n=e&&e.ownerDocument||document;function o(e){t&&t(e),i&&i(e),d(n,"mousemove",t),d(n,"mouseup",o),d(n,"dragstart",o)}return h(n,"mousemove",t),h(n,"mouseup",o),h(n,"dragstart",o),o},t.addMouseWheelListener=function(e,t,i){"onmousewheel"in e?h(e,"mousewheel",(function(e){void 0!==e.wheelDeltaX?(e.wheelX=-e.wheelDeltaX/8,e.wheelY=-e.wheelDeltaY/8):(e.wheelX=0,e.wheelY=-e.wheelDelta/8),t(e)}),i):"onwheel"in e?h(e,"wheel",(function(e){switch(e.deltaMode){case e.DOM_DELTA_PIXEL:e.wheelX=.35*e.deltaX||0,e.wheelY=.35*e.deltaY||0;break;case e.DOM_DELTA_LINE:case e.DOM_DELTA_PAGE:e.wheelX=5*(e.deltaX||0),e.wheelY=5*(e.deltaY||0)}t(e)}),i):h(e,"DOMMouseScroll",(function(e){e.axis&&e.axis==e.HORIZONTAL_AXIS?(e.wheelX=5*(e.detail||0),e.wheelY=0):(e.wheelX=0,e.wheelY=5*(e.detail||0)),t(e)}),i)},t.addMultiMouseDownListener=function(e,i,n,o,r){var a,c,l,d=0,u={2:"dblclick",3:"tripleclick",4:"quadclick"};function f(e){if(0!==t.getButton(e)?d=0:e.detail>1?++d>4&&(d=1):d=1,s.isIE){var r=Math.abs(e.clientX-a)>5||Math.abs(e.clientY-c)>5;l&&!r||(d=1),l&&clearTimeout(l),l=setTimeout((function(){l=null}),i[d-1]||600),1==d&&(a=e.clientX,c=e.clientY)}if(e._clicks=d,n[o]("mousedown",e),d>4)d=0;else if(d>1)return n[o](u[d],e)}Array.isArray(e)||(e=[e]),e.forEach((function(e){h(e,"mousedown",f,r)}))};var u=function(e){return 0|(e.ctrlKey?1:0)|(e.altKey?2:0)|(e.shiftKey?4:0)|(e.metaKey?8:0)};function f(e,t,i){var n=u(t);if(!s.isMac&&r){if(t.getModifierState&&(t.getModifierState("OS")||t.getModifierState("Win"))&&(n|=8),r.altGr){if(3==(3&n))return;r.altGr=0}if(18===i||17===i){var c="location"in t?t.location:t.keyLocation;if(17===i&&1===c)1==r[i]&&(a=t.timeStamp);else if(18===i&&3===n&&2===c){t.timeStamp-a<50&&(r.altGr=!0)}}}if((i in o.MODIFIER_KEYS&&(i=-1),!n&&13===i)&&(3===(c="location"in t?t.location:t.keyLocation)&&(e(t,n,-i),t.defaultPrevented)))return;if(s.isChromeOS&&8&n){if(e(t,n,i),t.defaultPrevented)return;n&=-9}return!!(n||i in o.FUNCTION_KEYS||i in o.PRINTABLE_KEYS)&&e(t,n,i)}function g(){r=Object.create(null)}if(t.getModifierString=function(e){return o.KEY_MODS[u(e)]},t.addCommandKeyListener=function(e,i,n){if(s.isOldGecko||s.isOpera&&!("KeyboardEvent"in window)){var o=null;h(e,"keydown",(function(e){o=e.keyCode}),n),h(e,"keypress",(function(e){return f(i,e,o)}),n)}else{var a=null;h(e,"keydown",(function(e){r[e.keyCode]=(r[e.keyCode]||0)+1;var t=f(i,e,e.keyCode);return a=e.defaultPrevented,t}),n),h(e,"keypress",(function(e){a&&(e.ctrlKey||e.altKey||e.shiftKey||e.metaKey)&&(t.stopEvent(e),a=null)}),n),h(e,"keyup",(function(e){r[e.keyCode]=null}),n),r||(g(),h(window,"focus",g))}},"object"==typeof window&&window.postMessage&&!s.isOldIE){var p=1;t.nextTick=function(e,i){i=i||window;var n="zero-timeout-message-"+p++,o=function(s){s.data==n&&(t.stopPropagation(s),d(i,"message",o),e())};h(i,"message",o),i.postMessage(n,"*")}}t.$idleBlocked=!1,t.onIdle=function(e,i){return setTimeout((function i(){t.$idleBlocked?setTimeout(i,100):e()}),i)},t.$idleBlockId=null,t.blockIdle=function(e){t.$idleBlockId&&clearTimeout(t.$idleBlockId),t.$idleBlocked=!0,t.$idleBlockId=setTimeout((function(){t.$idleBlocked=!1}),e||100)},t.nextFrame="object"==typeof window&&(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame),t.nextFrame?t.nextFrame=t.nextFrame.bind(window):t.nextFrame=function(e){setTimeout(e,17)}})),ace.define("ace/range",["require","exports","module"],(function(e,t,i){"use strict";var n=function(e,t,i,n){this.start={row:e,column:t},this.end={row:i,column:n}};(function(){this.isEqual=function(e){return this.start.row===e.start.row&&this.end.row===e.end.row&&this.start.column===e.start.column&&this.end.column===e.end.column},this.toString=function(){return"Range: ["+this.start.row+"/"+this.start.column+"] -> ["+this.end.row+"/"+this.end.column+"]"},this.contains=function(e,t){return 0==this.compare(e,t)},this.compareRange=function(e){var t,i=e.end,n=e.start;return 1==(t=this.compare(i.row,i.column))?1==(t=this.compare(n.row,n.column))?2:0==t?1:0:-1==t?-2:-1==(t=this.compare(n.row,n.column))?-1:1==t?42:0},this.comparePoint=function(e){return this.compare(e.row,e.column)},this.containsRange=function(e){return 0==this.comparePoint(e.start)&&0==this.comparePoint(e.end)},this.intersects=function(e){var t=this.compareRange(e);return-1==t||0==t||1==t},this.isEnd=function(e,t){return this.end.row==e&&this.end.column==t},this.isStart=function(e,t){return this.start.row==e&&this.start.column==t},this.setStart=function(e,t){"object"==typeof e?(this.start.column=e.column,this.start.row=e.row):(this.start.row=e,this.start.column=t)},this.setEnd=function(e,t){"object"==typeof e?(this.end.column=e.column,this.end.row=e.row):(this.end.row=e,this.end.column=t)},this.inside=function(e,t){return 0==this.compare(e,t)&&(!this.isEnd(e,t)&&!this.isStart(e,t))},this.insideStart=function(e,t){return 0==this.compare(e,t)&&!this.isEnd(e,t)},this.insideEnd=function(e,t){return 0==this.compare(e,t)&&!this.isStart(e,t)},this.compare=function(e,t){return this.isMultiLine()||e!==this.start.row?ethis.end.row?1:this.start.row===e?t>=this.start.column?0:-1:this.end.row===e?t<=this.end.column?0:1:0:tthis.end.column?1:0},this.compareStart=function(e,t){return this.start.row==e&&this.start.column==t?-1:this.compare(e,t)},this.compareEnd=function(e,t){return this.end.row==e&&this.end.column==t?1:this.compare(e,t)},this.compareInside=function(e,t){return this.end.row==e&&this.end.column==t?1:this.start.row==e&&this.start.column==t?-1:this.compare(e,t)},this.clipRows=function(e,t){if(this.end.row>t)var i={row:t+1,column:0};else if(this.end.rowt)var o={row:t+1,column:0};else if(this.start.row0;)1&t&&(i+=e),(t>>=1)&&(e+=e);return i};var n=/^\s\s*/,o=/\s\s*$/;t.stringTrimLeft=function(e){return e.replace(n,"")},t.stringTrimRight=function(e){return e.replace(o,"")},t.copyObject=function(e){var t={};for(var i in e)t[i]=e[i];return t},t.copyArray=function(e){for(var t=[],i=0,n=e.length;iDate.now()-50)||(n=!1)},cancel:function(){n=Date.now()}}})),ace.define("ace/keyboard/textinput",["require","exports","module","ace/lib/event","ace/lib/useragent","ace/lib/dom","ace/lib/lang","ace/clipboard","ace/lib/keys"],(function(e,t,i){"use strict";var n=e("../lib/event"),o=e("../lib/useragent"),s=e("../lib/dom"),r=e("../lib/lang"),a=e("../clipboard"),c=o.isChrome<18,l=o.isIE,h=o.isChrome>63,d=e("../lib/keys"),u=d.KEY_MODS,f=o.isIOS,g=f?/\s/:/\n/,p=o.isMobile;t.TextInput=function(e,t){var i=s.createElement("textarea");i.className="ace_text-input",i.setAttribute("wrap","off"),i.setAttribute("autocorrect","off"),i.setAttribute("autocapitalize","off"),i.setAttribute("spellcheck",!1),i.style.opacity="0",e.insertBefore(i,e.firstChild);var m=!1,b=!1,v=!1,w=!1,x="";p||(i.style.fontSize="1px");var y=!1,$=!1,S="",C=0,k=0,M=0;try{var A=document.activeElement===i}catch(e){}n.addListener(i,"blur",(function(e){$||(t.onBlur(e),A=!1)}),t),n.addListener(i,"focus",(function(e){if(!$){if(A=!0,o.isEdge)try{if(!document.hasFocus())return}catch(e){}t.onFocus(e),o.isEdge?setTimeout(L):L()}}),t),this.$focusScroll=!1,this.focus=function(){if(x||h||"browser"==this.$focusScroll)return i.focus({preventScroll:!0});var e=i.style.top;i.style.position="fixed",i.style.top="0px";try{var t=0!=i.getBoundingClientRect().top}catch(e){return}var n=[];if(t)for(var o=i.parentElement;o&&1==o.nodeType;)n.push(o),o.setAttribute("ace_nocontext",!0),o=!o.parentElement&&o.getRootNode?o.getRootNode().host:o.parentElement;i.focus({preventScroll:!0}),t&&n.forEach((function(e){e.removeAttribute("ace_nocontext")})),setTimeout((function(){i.style.position="","0px"==i.style.top&&(i.style.top=e)}),0)},this.blur=function(){i.blur()},this.isFocused=function(){return A},t.on("beforeEndOperation",(function(){var e=t.curOp,n=e&&e.command&&e.command.name;if("insertstring"!=n){var o=n&&(e.docChanged||e.selectionChanged);v&&o&&(S=i.value="",j()),L()}}));var L=f?function(e){if(A&&(!m||e)&&!w){e||(e="");var n="\n ab"+e+"cde fg\n";n!=i.value&&(i.value=S=n);var o=4+(e.length||(t.selection.isEmpty()?0:1));4==C&&k==o||i.setSelectionRange(4,o),C=4,k=o}}:function(){if(!v&&!w&&(A||_)){v=!0;var e=0,n=0,o="";if(t.session){var s=t.selection,r=s.getRange(),a=s.cursor.row;if(e=r.start.column,n=r.end.column,o=t.session.getLine(a),r.start.row!=a){var c=t.session.getLine(a-1);e=r.start.rowa+1?l.length:n,n+=o.length+1,o=o+"\n"+l}else p&&a>0&&(o="\n"+o,n+=1,e+=1);o.length>400&&(e<400&&n<400?o=o.slice(0,400):(o="\n",e==n?e=n=0:(e=0,n=1)))}var h=o+"\n\n";if(h!=S&&(i.value=S=h,C=k=h.length),_&&(C=i.selectionStart,k=i.selectionEnd),k!=n||C!=e||i.selectionEnd!=k)try{i.setSelectionRange(e,n),C=e,k=n}catch(e){}v=!1}};this.resetSelection=L,A&&t.onFocus();var R=null;this.setInputHandler=function(e){R=e},this.getInputHandler=function(){return R};var _=!1,E=function(e,n){if(_&&(_=!1),b)return L(),e&&t.onPaste(e),b=!1,"";for(var s=i.selectionStart,r=i.selectionEnd,a=C,c=S.length-k,l=e,h=e.length-s,d=e.length-r,u=0;a>0&&S[u]==e[u];)u++,a--;for(l=l.slice(u),u=1;c>0&&S.length-u>C-1&&S[S.length-u]==e[e.length-u];)u++,c--;h-=u-1,d-=u-1;var f=l.length-u+1;if(f<0&&(a=-f,f=0),l=l.slice(0,f),!(n||l||h||a||c||d))return"";w=!0;var g=!1;return o.isAndroid&&". "==l&&(l=" ",g=!0),l&&!a&&!c&&!h&&!d||y?t.onTextInput(l):t.onTextInput(l,{extendLeft:a,extendRight:c,restoreStart:h,restoreEnd:d}),w=!1,S=e,C=s,k=r,M=d,g?"\n":l},T=function(e){if(v)return B();if(e&&e.inputType){if("historyUndo"==e.inputType)return t.execCommand("undo");if("historyRedo"==e.inputType)return t.execCommand("redo")}var n=i.value,o=E(n,!0);(n.length>500||g.test(o)||p&&C<1&&C==k)&&L()},O=function(e,t,i){var n=e.clipboardData||window.clipboardData;if(n&&!c){var o=l||i?"Text":"text/plain";try{return t?!1!==n.setData(o,t):n.getData(o)}catch(e){if(!i)return O(e,t,!0)}}},F=function(e,o){var s=t.getCopyText();if(!s)return n.preventDefault(e);O(e,s)?(f&&(L(s),m=s,setTimeout((function(){m=!1}),10)),o?t.onCut():t.onCopy(),n.preventDefault(e)):(m=!0,i.value=s,i.select(),setTimeout((function(){m=!1,L(),o?t.onCut():t.onCopy()})))},U=function(e){F(e,!0)},I=function(e){F(e,!1)},W=function(e){var s=O(e);a.pasteCancelled()||("string"==typeof s?(s&&t.onPaste(s,e),o.isIE&&setTimeout(L),n.preventDefault(e)):(i.value="",b=!0))};n.addCommandKeyListener(i,t.onCommandKey.bind(t),t),n.addListener(i,"select",(function(e){v||(m?m=!1:!function(e){return 0===e.selectionStart&&e.selectionEnd>=S.length&&e.value===S&&S&&e.selectionEnd!==k}(i)?p&&i.selectionStart!=C&&L():(t.selectAll(),L()))}),t),n.addListener(i,"input",T,t),n.addListener(i,"cut",U,t),n.addListener(i,"copy",I,t),n.addListener(i,"paste",W,t),"oncut"in i&&"oncopy"in i&&"onpaste"in i||n.addListener(e,"keydown",(function(e){if((!o.isMac||e.metaKey)&&e.ctrlKey)switch(e.keyCode){case 67:I(e);break;case 86:W(e);break;case 88:U(e)}}),t);var B=function(){if(v&&t.onCompositionUpdate&&!t.$readOnly){if(y)return D();if(v.useTextareaForIME)t.onCompositionUpdate(i.value);else{var e=i.value;E(e),v.markerRange&&(v.context&&(v.markerRange.start.column=v.selectionStart=v.context.compositionStartOffset),v.markerRange.end.column=v.markerRange.start.column+k-v.selectionStart+M)}}},j=function(e){t.onCompositionEnd&&!t.$readOnly&&(v=!1,t.onCompositionEnd(),t.off("mousedown",D),e&&T())};function D(){$=!0,i.blur(),i.focus(),$=!1}var P,H=r.delayedCall(B,50).schedule.bind(null,null);function N(){clearTimeout(P),P=setTimeout((function(){x&&(i.style.cssText=x,x=""),t.renderer.$isMousePressed=!1,t.renderer.$keepTextAreaAtCursor&&t.renderer.$moveTextAreaToCursor()}),0)}n.addListener(i,"compositionstart",(function(e){if(!v&&t.onCompositionStart&&!t.$readOnly&&(v={},!y)){e.data&&(v.useTextareaForIME=!1),setTimeout(B,0),t._signal("compositionStart"),t.on("mousedown",D);var n=t.getSelectionRange();n.end.row=n.start.row,n.end.column=n.start.column,v.markerRange=n,v.selectionStart=C,t.onCompositionStart(v),v.useTextareaForIME?(S=i.value="",C=0,k=0):(i.msGetInputContext&&(v.context=i.msGetInputContext()),i.getInputContext&&(v.context=i.getInputContext()))}}),t),n.addListener(i,"compositionupdate",B,t),n.addListener(i,"keyup",(function(e){27==e.keyCode&&i.value.lengthk&&"\n"==S[s]?r=d.end:nk&&S.slice(0,s).split("\n").length>2?r=d.down:s>k&&" "==S[s-1]?(r=d.right,a=u.option):(s>k||s==k&&k!=C&&n==s)&&(r=d.right),n!==s&&(a|=u.shift),r){if(!t.onCommandKey({},a,r)&&t.commands){r=d.keyCodeToString(r);var c=t.commands.findKeyCommand(a,r);c&&t.execCommand(c)}C=n,k=s,L("")}}};document.addEventListener("selectionchange",s),t.on("destroy",(function(){document.removeEventListener("selectionchange",s)}))}(0,t,i)},t.$setUserAgentForTests=function(e,t){p=e,f=t}})),ace.define("ace/mouse/default_handlers",["require","exports","module","ace/lib/useragent"],(function(e,t,i){"use strict";var n=e("../lib/useragent");function o(e){e.$clickSelection=null;var t=e.editor;t.setDefaultHandler("mousedown",this.onMouseDown.bind(e)),t.setDefaultHandler("dblclick",this.onDoubleClick.bind(e)),t.setDefaultHandler("tripleclick",this.onTripleClick.bind(e)),t.setDefaultHandler("quadclick",this.onQuadClick.bind(e)),t.setDefaultHandler("mousewheel",this.onMouseWheel.bind(e));["select","startSelect","selectEnd","selectAllEnd","selectByWordsEnd","selectByLinesEnd","dragWait","dragWaitEnd","focusWait"].forEach((function(t){e[t]=this[t]}),this),e.selectByLines=this.extendSelectionBy.bind(e,"getLineRange"),e.selectByWords=this.extendSelectionBy.bind(e,"getWordRange")}function s(e,t){if(e.start.row==e.end.row)var i=2*t.column-e.start.column-e.end.column;else if(e.start.row!=e.end.row-1||e.start.column||e.end.column)i=2*t.row-e.start.row-e.end.row;else var i=t.column-4;return i<0?{cursor:e.start,anchor:e.end}:{cursor:e.end,anchor:e.start}}(function(){this.onMouseDown=function(e){var t=e.inSelection(),i=e.getDocumentPosition();this.mousedownEvent=e;var o=this.editor,s=e.getButton();return 0!==s?((o.getSelectionRange().isEmpty()||1==s)&&o.selection.moveToPosition(i),void(2==s&&(o.textInput.onContextMenu(e.domEvent),n.isMozilla||e.preventDefault()))):(this.mousedownEvent.time=Date.now(),!t||o.isFocused()||(o.focus(),!this.$focusTimeout||this.$clickSelection||o.inMultiSelectMode)?(this.captureMouse(e),this.startSelect(i,e.domEvent._clicks>1),e.preventDefault()):(this.setState("focusWait"),void this.captureMouse(e)))},this.startSelect=function(e,t){e=e||this.editor.renderer.screenToTextCoordinates(this.x,this.y);var i=this.editor;this.mousedownEvent&&(this.mousedownEvent.getShiftKey()?i.selection.selectToPosition(e):t||i.selection.moveToPosition(e),t||this.select(),i.renderer.scroller.setCapture&&i.renderer.scroller.setCapture(),i.setStyle("ace_selecting"),this.setState("select"))},this.select=function(){var e,t=this.editor,i=t.renderer.screenToTextCoordinates(this.x,this.y);if(this.$clickSelection){var n=this.$clickSelection.comparePoint(i);if(-1==n)e=this.$clickSelection.end;else if(1==n)e=this.$clickSelection.start;else{var o=s(this.$clickSelection,i);i=o.cursor,e=o.anchor}t.selection.setSelectionAnchor(e.row,e.column)}t.selection.selectToPosition(i),t.renderer.scrollCursorIntoView()},this.extendSelectionBy=function(e){var t,i=this.editor,n=i.renderer.screenToTextCoordinates(this.x,this.y),o=i.selection[e](n.row,n.column);if(this.$clickSelection){var r=this.$clickSelection.comparePoint(o.start),a=this.$clickSelection.comparePoint(o.end);if(-1==r&&a<=0)t=this.$clickSelection.end,o.end.row==n.row&&o.end.column==n.column||(n=o.start);else if(1==a&&r>=0)t=this.$clickSelection.start,o.start.row==n.row&&o.start.column==n.column||(n=o.end);else if(-1==r&&1==a)n=o.end,t=o.start;else{var c=s(this.$clickSelection,n);n=c.cursor,t=c.anchor}i.selection.setSelectionAnchor(t.row,t.column)}i.selection.selectToPosition(n),i.renderer.scrollCursorIntoView()},this.selectEnd=this.selectAllEnd=this.selectByWordsEnd=this.selectByLinesEnd=function(){this.$clickSelection=null,this.editor.unsetStyle("ace_selecting"),this.editor.renderer.scroller.releaseCapture&&this.editor.renderer.scroller.releaseCapture()},this.focusWait=function(){var e,t,i,n,o=(e=this.mousedownEvent.x,t=this.mousedownEvent.y,i=this.x,n=this.y,Math.sqrt(Math.pow(i-e,2)+Math.pow(n-t,2))),s=Date.now();(o>0||s-this.mousedownEvent.time>this.$focusTimeout)&&this.startSelect(this.mousedownEvent.getDocumentPosition())},this.onDoubleClick=function(e){var t=e.getDocumentPosition(),i=this.editor,n=i.session.getBracketRange(t);n?(n.isEmpty()&&(n.start.column--,n.end.column++),this.setState("select")):(n=i.selection.getWordRange(t.row,t.column),this.setState("selectByWords")),this.$clickSelection=n,this.select()},this.onTripleClick=function(e){var t=e.getDocumentPosition(),i=this.editor;this.setState("selectByLines");var n=i.getSelectionRange();n.isMultiLine()&&n.contains(t.row,t.column)?(this.$clickSelection=i.selection.getLineRange(n.start.row),this.$clickSelection.end=i.selection.getLineRange(n.end.row).end):this.$clickSelection=i.selection.getLineRange(t.row),this.select()},this.onQuadClick=function(e){var t=this.editor;t.selectAll(),this.$clickSelection=t.getSelectionRange(),this.setState("selectAll")},this.onMouseWheel=function(e){if(!e.getAccelKey()){e.getShiftKey()&&e.wheelY&&!e.wheelX&&(e.wheelX=e.wheelY,e.wheelY=0);var t=this.editor;this.$lastScroll||(this.$lastScroll={t:0,vx:0,vy:0,allowed:0});var i=this.$lastScroll,n=e.domEvent.timeStamp,o=n-i.t,s=o?e.wheelX/o:i.vx,r=o?e.wheelY/o:i.vy;o<550&&(s=(s+i.vx)/2,r=(r+i.vy)/2);var a=Math.abs(s/r),c=!1;if(a>=1&&t.renderer.isScrollableBy(e.wheelX*e.speed,0)&&(c=!0),a<=1&&t.renderer.isScrollableBy(0,e.wheelY*e.speed)&&(c=!0),c)i.allowed=n;else if(n-i.allowed<550){Math.abs(s)<=1.5*Math.abs(i.vx)&&Math.abs(r)<=1.5*Math.abs(i.vy)?(c=!0,i.allowed=n):i.allowed=0}return i.t=n,i.vx=s,i.vy=r,c?(t.renderer.scrollBy(e.wheelX*e.speed,e.wheelY*e.speed),e.stop()):void 0}}}).call(o.prototype),t.DefaultHandlers=o})),ace.define("ace/tooltip",["require","exports","module","ace/lib/oop","ace/lib/dom"],(function(e,t,i){"use strict";e("./lib/oop");var n=e("./lib/dom");function o(e){this.isOpen=!1,this.$element=null,this.$parentNode=e}(function(){this.$init=function(){return this.$element=n.createElement("div"),this.$element.className="ace_tooltip",this.$element.style.display="none",this.$parentNode.appendChild(this.$element),this.$element},this.getElement=function(){return this.$element||this.$init()},this.setText=function(e){this.getElement().textContent=e},this.setHtml=function(e){this.getElement().innerHTML=e},this.setPosition=function(e,t){this.getElement().style.left=e+"px",this.getElement().style.top=t+"px"},this.setClassName=function(e){n.addCssClass(this.getElement(),e)},this.show=function(e,t,i){null!=e&&this.setText(e),null!=t&&null!=i&&this.setPosition(t,i),this.isOpen||(this.getElement().style.display="block",this.isOpen=!0)},this.hide=function(){this.isOpen&&(this.getElement().style.display="none",this.isOpen=!1)},this.getHeight=function(){return this.getElement().offsetHeight},this.getWidth=function(){return this.getElement().offsetWidth},this.destroy=function(){this.isOpen=!1,this.$element&&this.$element.parentNode&&this.$element.parentNode.removeChild(this.$element)}}).call(o.prototype),t.Tooltip=o})),ace.define("ace/mouse/default_gutter_handler",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/event","ace/tooltip"],(function(e,t,i){"use strict";var n=e("../lib/dom"),o=e("../lib/oop"),s=e("../lib/event"),r=e("../tooltip").Tooltip;function a(e){r.call(this,e)}o.inherits(a,r),function(){this.setPosition=function(e,t){var i=window.innerWidth||document.documentElement.clientWidth,n=window.innerHeight||document.documentElement.clientHeight,o=this.getWidth(),s=this.getHeight();(e+=15)+o>i&&(e-=e+o-i),(t+=15)+s>n&&(t-=20+s),r.prototype.setPosition.call(this,e,t)}}.call(a.prototype),t.GutterHandler=function(e){var t,i,o,r=e.editor,c=r.renderer.$gutterLayer,l=new a(r.container);function h(){t&&(t=clearTimeout(t)),o&&(l.hide(),o=null,r._signal("hideGutterTooltip",l),r.off("mousewheel",h))}function d(e){l.setPosition(e.x,e.y)}e.editor.setDefaultHandler("guttermousedown",(function(t){if(r.isFocused()&&0==t.getButton()&&"foldWidgets"!=c.getRegion(t)){var i=t.getDocumentPosition().row,n=r.session.selection;if(t.getShiftKey())n.selectTo(i,0);else{if(2==t.domEvent.detail)return r.selectAll(),t.preventDefault();e.$clickSelection=r.selection.getLineRange(i)}return e.setState("selectByLines"),e.captureMouse(t),t.preventDefault()}})),e.editor.setDefaultHandler("guttermousemove",(function(s){var a=s.domEvent.target||s.domEvent.srcElement;if(n.hasCssClass(a,"ace_fold-widget"))return h();o&&e.$tooltipFollowsMouse&&d(s),i=s,t||(t=setTimeout((function(){t=null,i&&!e.isMousePressed?function(){var t=i.getDocumentPosition().row,n=c.$annotations[t];if(!n)return h();if(t==r.session.getLength()){var s=r.renderer.pixelToScreenCoordinates(0,i.y).row,a=i.$pos;if(s>r.session.documentToScreenRow(a.row,a.column))return h()}if(o!=n)if(o=n.text.join("
    "),l.setHtml(o),l.show(),r._signal("showGutterTooltip",l),r.on("mousewheel",h),e.$tooltipFollowsMouse)d(i);else{var u=i.domEvent.target.getBoundingClientRect(),f=l.getElement().style;f.left=u.right+"px",f.top=u.bottom+"px"}}():h()}),50))})),s.addListener(r.renderer.$gutter,"mouseout",(function(e){i=null,o&&!t&&(t=setTimeout((function(){t=null,h()}),50))}),r),r.on("changeSession",h)}})),ace.define("ace/mouse/mouse_event",["require","exports","module","ace/lib/event","ace/lib/useragent"],(function(e,t,i){"use strict";var n=e("../lib/event"),o=e("../lib/useragent"),s=t.MouseEvent=function(e,t){this.domEvent=e,this.editor=t,this.x=this.clientX=e.clientX,this.y=this.clientY=e.clientY,this.$pos=null,this.$inSelection=null,this.propagationStopped=!1,this.defaultPrevented=!1};(function(){this.stopPropagation=function(){n.stopPropagation(this.domEvent),this.propagationStopped=!0},this.preventDefault=function(){n.preventDefault(this.domEvent),this.defaultPrevented=!0},this.stop=function(){this.stopPropagation(),this.preventDefault()},this.getDocumentPosition=function(){return this.$pos||(this.$pos=this.editor.renderer.screenToTextCoordinates(this.clientX,this.clientY)),this.$pos},this.inSelection=function(){if(null!==this.$inSelection)return this.$inSelection;var e=this.editor.getSelectionRange();if(e.isEmpty())this.$inSelection=!1;else{var t=this.getDocumentPosition();this.$inSelection=e.contains(t.row,t.column)}return this.$inSelection},this.getButton=function(){return n.getButton(this.domEvent)},this.getShiftKey=function(){return this.domEvent.shiftKey},this.getAccelKey=o.isMac?function(){return this.domEvent.metaKey}:function(){return this.domEvent.ctrlKey}}).call(s.prototype)})),ace.define("ace/mouse/dragdrop_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/lib/useragent"],(function(e,t,i){"use strict";var n=e("../lib/dom"),o=e("../lib/event"),s=e("../lib/useragent");function r(e){var t=e.editor,i=n.createElement("img");i.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",s.isOpera&&(i.style.cssText="width:1px;height:1px;position:fixed;top:0;left:0;z-index:2147483647;opacity:0;");["dragWait","dragWaitEnd","startDrag","dragReadyEnd","onMouseDrag"].forEach((function(t){e[t]=this[t]}),this),t.on("mousedown",this.onMouseDown.bind(e));var r,c,l,h,d,u,f,g,p,m,b,v=t.container,w=0;function x(){var e=u;(function(e,i){var n=Date.now(),o=!i||e.row!=i.row,s=!i||e.column!=i.column;!m||o||s?(t.moveCursorToPosition(e),m=n,b={x:c,y:l}):a(b.x,b.y,c,l)>5?m=null:n-m>=200&&(t.renderer.scrollCursorIntoView(),m=null)})(u=t.renderer.screenToTextCoordinates(c,l),e),function(e,i){var n=Date.now(),o=t.renderer.layerConfig.lineHeight,s=t.renderer.layerConfig.characterWidth,r=t.renderer.scroller.getBoundingClientRect(),a={x:{left:c-r.left,right:r.right-c},y:{top:l-r.top,bottom:r.bottom-l}},h=Math.min(a.x.left,a.x.right),d=Math.min(a.y.top,a.y.bottom),u={row:e.row,column:e.column};h/s<=2&&(u.column+=a.x.left=200&&t.renderer.scrollCursorIntoView(u):p=n:p=null}(u,e)}function y(){d=t.selection.toOrientedRange(),r=t.session.addMarker(d,"ace_selection",t.getSelectionStyle()),t.clearSelection(),t.isFocused()&&t.renderer.$cursorLayer.setBlinking(!1),clearInterval(h),x(),h=setInterval(x,20),w=0,o.addListener(document,"mousemove",C)}function $(){clearInterval(h),t.session.removeMarker(r),r=null,t.selection.fromOrientedRange(d),t.isFocused()&&!g&&t.$resetCursorStyle(),d=null,u=null,w=0,p=null,m=null,o.removeListener(document,"mousemove",C)}this.onDragStart=function(e){if(this.cancelDrag||!v.draggable){var n=this;return setTimeout((function(){n.startSelect(),n.captureMouse(e)}),0),e.preventDefault()}d=t.getSelectionRange();var o=e.dataTransfer;o.effectAllowed=t.getReadOnly()?"copy":"copyMove",s.isOpera&&(t.container.appendChild(i),i.scrollTop=0),o.setDragImage&&o.setDragImage(i,0,0),s.isOpera&&t.container.removeChild(i),o.clearData(),o.setData("Text",t.session.getTextRange()),g=!0,this.setState("drag")},this.onDragEnd=function(e){if(v.draggable=!1,g=!1,this.setState(null),!t.getReadOnly()){var i=e.dataTransfer.dropEffect;f||"move"!=i||t.session.remove(t.getSelectionRange()),t.$resetCursorStyle()}this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle("")},this.onDragEnter=function(e){if(!t.getReadOnly()&&k(e.dataTransfer))return c=e.clientX,l=e.clientY,r||y(),w++,e.dataTransfer.dropEffect=f=M(e),o.preventDefault(e)},this.onDragOver=function(e){if(!t.getReadOnly()&&k(e.dataTransfer))return c=e.clientX,l=e.clientY,r||(y(),w++),null!==S&&(S=null),e.dataTransfer.dropEffect=f=M(e),o.preventDefault(e)},this.onDragLeave=function(e){if(--w<=0&&r)return $(),f=null,o.preventDefault(e)},this.onDrop=function(e){if(u){var i=e.dataTransfer;if(g)switch(f){case"move":d=d.contains(u.row,u.column)?{start:u,end:u}:t.moveText(d,u);break;case"copy":d=t.moveText(d,u,!0)}else{var n=i.getData("Text");d={start:u,end:t.session.insert(u,n)},t.focus(),f=null}return $(),o.preventDefault(e)}},o.addListener(v,"dragstart",this.onDragStart.bind(e),t),o.addListener(v,"dragend",this.onDragEnd.bind(e),t),o.addListener(v,"dragenter",this.onDragEnter.bind(e),t),o.addListener(v,"dragover",this.onDragOver.bind(e),t),o.addListener(v,"dragleave",this.onDragLeave.bind(e),t),o.addListener(v,"drop",this.onDrop.bind(e),t);var S=null;function C(){null==S&&(S=setTimeout((function(){null!=S&&r&&$()}),20))}function k(e){var t=e.types;return!t||Array.prototype.some.call(t,(function(e){return"text/plain"==e||"Text"==e}))}function M(e){var t=["copy","copymove","all","uninitialized"],i=s.isMac?e.altKey:e.ctrlKey,n="uninitialized";try{n=e.dataTransfer.effectAllowed.toLowerCase()}catch(e){}var o="none";return i&&t.indexOf(n)>=0?o="copy":["move","copymove","linkmove","all","uninitialized"].indexOf(n)>=0?o="move":t.indexOf(n)>=0&&(o="copy"),o}}function a(e,t,i,n){return Math.sqrt(Math.pow(i-e,2)+Math.pow(n-t,2))}(function(){this.dragWait=function(){Date.now()-this.mousedownEvent.time>this.editor.getDragDelay()&&this.startDrag()},this.dragWaitEnd=function(){this.editor.container.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()),this.selectEnd()},this.dragReadyEnd=function(e){this.editor.$resetCursorStyle(),this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle(""),this.dragWaitEnd()},this.startDrag=function(){this.cancelDrag=!1;var e=this.editor;e.container.draggable=!0,e.renderer.$cursorLayer.setBlinking(!1),e.setStyle("ace_dragging");var t=s.isWin?"default":"move";e.renderer.setCursorStyle(t),this.setState("dragReady")},this.onMouseDrag=function(e){var t=this.editor.container;s.isIE&&"dragReady"==this.state&&(a(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y)>3&&t.dragDrop());"dragWait"===this.state&&(a(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y)>0&&(t.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition())))},this.onMouseDown=function(e){if(this.$dragEnabled){this.mousedownEvent=e;var t=this.editor,i=e.inSelection(),n=e.getButton();if(1===(e.domEvent.detail||1)&&0===n&&i){if(e.editor.inMultiSelectMode&&(e.getAccelKey()||e.getShiftKey()))return;this.mousedownEvent.time=Date.now();var o=e.domEvent.target||e.domEvent.srcElement;if("unselectable"in o&&(o.unselectable="on"),t.getDragDelay()){if(s.isWebKit)this.cancelDrag=!0,t.container.draggable=!0;this.setState("dragWait")}else this.startDrag();this.captureMouse(e,this.onMouseDrag.bind(this)),e.defaultPrevented=!0}}}}).call(r.prototype),t.DragdropHandler=r})),ace.define("ace/mouse/touch_handler",["require","exports","module","ace/mouse/mouse_event","ace/lib/event","ace/lib/dom"],(function(e,t,i){"use strict";var n=e("./mouse_event").MouseEvent,o=e("../lib/event"),s=e("../lib/dom");t.addTouchListeners=function(e,t){var i,r,a,c,l,h,d,u,f,g="scroll",p=0,m=0,b=0,v=0;function w(){var e=window.navigator&&window.navigator.clipboard,i=!1,n=function(n){var o,r,a=n.target.getAttribute("action");if("more"==a||!i)return i=!i,o=t.getCopyText(),r=t.session.getUndoManager().hasUndo(),void f.replaceChild(s.buildDom(i?["span",!o&&["span",{class:"ace_mobile-button",action:"selectall"},"Select All"],o&&["span",{class:"ace_mobile-button",action:"copy"},"Copy"],o&&["span",{class:"ace_mobile-button",action:"cut"},"Cut"],e&&["span",{class:"ace_mobile-button",action:"paste"},"Paste"],r&&["span",{class:"ace_mobile-button",action:"undo"},"Undo"],["span",{class:"ace_mobile-button",action:"find"},"Find"],["span",{class:"ace_mobile-button",action:"openCommandPallete"},"Pallete"]]:["span"]),f.firstChild);"paste"==a?e.readText().then((function(e){t.execCommand(a,e)})):a&&("cut"!=a&&"copy"!=a||(e?e.writeText(t.getCopyText()):document.execCommand("copy")),t.execCommand(a)),f.firstChild.style.display="none",i=!1,"openCommandPallete"!=a&&t.focus()};f=s.buildDom(["div",{class:"ace_mobile-menu",ontouchstart:function(e){g="menu",e.stopPropagation(),e.preventDefault(),t.textInput.focus()},ontouchend:function(e){e.stopPropagation(),e.preventDefault(),n(e)},onclick:n},["span"],["span",{class:"ace_mobile-button",action:"more"},"..."]],t.container)}function x(){f||w();var e=t.selection.cursor,i=t.renderer.textToScreenCoordinates(e.row,e.column),n=t.renderer.textToScreenCoordinates(0,0).pageX,o=t.renderer.scrollLeft,s=t.container.getBoundingClientRect();f.style.top=i.pageY-s.top-3+"px",i.pageX-s.left1)return clearTimeout(l),l=null,a=-1,void(g="zoom");u=t.$mouseHandler.isMousePressed=!0;var s=t.renderer.layerConfig.lineHeight,h=t.renderer.layerConfig.lineHeight,f=e.timeStamp;c=f;var w=o[0],x=w.clientX,y=w.clientY;Math.abs(i-x)+Math.abs(r-y)>s&&(a=-1),i=e.clientX=x,r=e.clientY=y,b=v=0;var S=new n(e,t);if(d=S.getDocumentPosition(),f-a<500&&1==o.length&&!p)m++,e.preventDefault(),e.button=0,function(){l=null,clearTimeout(l),t.selection.moveToPosition(d);var e=m>=2?t.selection.getLineRange(d.row):t.session.getBracketRange(d);e&&!e.isEmpty()?t.selection.setRange(e):t.selection.selectWord(),g="wait"}();else{m=0;var C=t.selection.cursor,k=t.selection.isEmpty()?C:t.selection.anchor,M=t.renderer.$cursorLayer.getPixelPosition(C,!0),A=t.renderer.$cursorLayer.getPixelPosition(k,!0),L=t.renderer.scroller.getBoundingClientRect(),R=t.renderer.layerConfig.offset,_=t.renderer.scrollLeft,E=function(e,t){return(e/=h)*e+(t=t/s-.75)*t};if(e.clientXO?"cursor":"anchor"),g=O<3.5?"anchor":T<3.5?"cursor":"scroll",l=setTimeout($,450)}a=f}),t),o.addListener(e,"touchend",(function(e){u=t.$mouseHandler.isMousePressed=!1,h&&clearInterval(h),"zoom"==g?(g="",p=0):l?(t.selection.moveToPosition(d),p=0,x()):"scroll"==g?(p+=60,h=setInterval((function(){p--<=0&&(clearInterval(h),h=null),Math.abs(b)<.01&&(b=0),Math.abs(v)<.01&&(v=0),p<20&&(b*=.9),p<20&&(v*=.9);var e=t.session.getScrollTop();t.renderer.scrollBy(10*b,10*v),e==t.session.getScrollTop()&&(p=0)}),10),y()):x(),clearTimeout(l),l=null}),t),o.addListener(e,"touchmove",(function(e){l&&(clearTimeout(l),l=null);var o=e.touches;if(!(o.length>1||"zoom"==g)){var s=o[0],a=i-s.clientX,h=r-s.clientY;if("wait"==g){if(!(a*a+h*h>4))return e.preventDefault();g="cursor"}i=s.clientX,r=s.clientY,e.clientX=s.clientX,e.clientY=s.clientY;var d=e.timeStamp,u=d-c;if(c=d,"scroll"==g){var f=new n(e,t);f.speed=1,f.wheelX=a,f.wheelY=h,10*Math.abs(a)1&&(o=i[i.length-2]);var r=c[t+"Path"];return null==r?r=c.basePath:"/"==n&&(t=n=""),r&&"/"!=r.slice(-1)&&(r+="/"),r+t+n+o+this.get("suffix")},t.setModuleUrl=function(e,t){return c.$moduleUrls[e]=t},t.$loading={},t.loadModule=function(i,n){var o,r;Array.isArray(i)&&(r=i[0],i=i[1]);try{o=e(i)}catch(e){}if(o&&!t.$loading[i])return n&&n(o);if(t.$loading[i]||(t.$loading[i]=[]),t.$loading[i].push(n),!(t.$loading[i].length>1)){var a=function(){e([i],(function(e){t._emit("load.module",{name:i,module:e});var n=t.$loading[i];t.$loading[i]=null,n.forEach((function(t){t&&t(e)}))}))};if(!t.get("packaged"))return a();s.loadScript(t.moduleUrl(i,r),a),l()}};var l=function(){c.basePath||c.workerPath||c.modePath||c.themePath||Object.keys(c.$moduleUrls).length||(console.error("Unable to infer path to ace from script src,","use ace.config.set('basePath', 'path') to enable dynamic loading of modes and themes","or with webpack use ace/webpack-resolver"),l=function(){})};function h(o){if(a&&a.document){c.packaged=o||e.packaged||n.packaged||a.define&&i(1267).packaged;for(var s,r={},l="",h=document.currentScript||document._currentScript,d=(h&&h.ownerDocument||document).getElementsByTagName("script"),u=0;u=e){for(s=d+1;s=e;)s++;for(a=d,c=s-1;a=t.length||2!=(c=i[o-1])&&3!=c||2!=(l=t[o+1])&&3!=l?4:(s&&(l=3),l==c?l:4);case 10:return 2==(c=o>0?i[o-1]:5)&&o+10&&2==i[o-1])return 2;if(s)return 4;for(d=o+1,h=t.length;d=1425&&f<=2303||64286==f;if(c=t[d],g&&(1==c||7==c))return 1}return o<1||5==(c=t[o-1])?4:i[o-1];case 5:return s=!1,r=!0,n;case 6:return a=!0,4;case 13:case 14:case 16:case 17:case 15:s=!1;case 18:return 4}}function g(e){var t=e.charCodeAt(0),i=t>>8;return 0==i?t>191?0:h[t]:5==i?/[\u0591-\u05f4]/.test(e)?1:0:6==i?/[\u0610-\u061a\u064b-\u065f\u06d6-\u06e4\u06e7-\u06ed]/.test(e)?12:/[\u0660-\u0669\u066b-\u066c]/.test(e)?3:1642==t?11:/[\u06f0-\u06f9]/.test(e)?2:7:32==i&&t<=8287?d[255&t]:254==i&&t>=65136?7:4}t.L=0,t.R=1,t.EN=2,t.ON_R=3,t.AN=4,t.R_H=5,t.B=6,t.RLE=7,t.DOT="·",t.doBidiReorder=function(e,i,h){if(e.length<2)return{};var d=e.split(""),p=new Array(d.length),m=new Array(d.length),b=[];n=h?1:0,function(e,t,i,h){var d=n?l:c,u=null,p=null,m=null,b=0,v=null,w=-1,x=null,y=null,$=[];if(!h)for(x=0,h=[];x0)if(16==v){for(x=w;x-1){for(x=w;x=0&&8==h[S];S--)t[S]=n}}(d,b,d.length,i);for(var v=0;v7&&i[v]<13||4===i[v]||18===i[v])?b[v]=t.ON_R:v>0&&"ل"===d[v-1]&&/\u0622|\u0623|\u0625|\u0627/.test(d[v])&&(b[v-1]=b[v]=t.R_H,v++);d[d.length-1]===t.DOT&&(b[d.length-1]=t.B),"‫"===d[0]&&(b[0]=t.RLE);for(v=0;v=0&&(e=this.session.$docRowCache[i])}return e},this.getSplitIndex=function(){var e=0,t=this.session.$screenRowCache;if(t.length)for(var i,n=this.session.$getRowCacheIndex(t,this.currentRow);this.currentRow-e>0&&(i=this.session.$getRowCacheIndex(t,this.currentRow-e-1))===n;)n=i,e++;else e=this.currentRow;return e},this.updateRowLine=function(e,t){void 0===e&&(e=this.getDocumentRow());var i=e===this.session.getLength()-1?this.EOF:this.EOL;if(this.wrapIndent=0,this.line=this.session.getLine(e),this.isRtlDir=this.$isRtl||this.line.charAt(0)===this.RLE,this.session.$useWrapMode){var s=this.session.$wrapData[e];s&&(void 0===t&&(t=this.getSplitIndex()),t>0&&s.length?(this.wrapIndent=s.indent,this.wrapOffset=this.wrapIndent*this.charWidths[n.L],this.line=tt?this.session.getOverwrite()?e:e-1:t,o=n.getVisualFromLogicalIdx(i,this.bidiMap),s=this.bidiMap.bidiLevels,r=0;!this.session.getOverwrite()&&e<=t&&s[o]%2!=0&&o++;for(var a=0;at&&s[o]%2==0&&(r+=this.charWidths[s[o]]),this.wrapIndent&&(r+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset),this.isRtlDir&&(r+=this.rtlLineOffset),r},this.getSelections=function(e,t){var i,n=this.bidiMap,o=n.bidiLevels,s=[],r=0,a=Math.min(e,t)-this.wrapIndent,c=Math.max(e,t)-this.wrapIndent,l=!1,h=!1,d=0;this.wrapIndent&&(r+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);for(var u,f=0;f=a&&ui+s/2;){if(i+=s,n===o.length-1){s=0;break}s=this.charWidths[o[++n]]}return n>0&&o[n-1]%2!=0&&o[n]%2==0?(e0&&o[n-1]%2==0&&o[n]%2!=0?t=1+(e>i?this.bidiMap.logicalFromVisual[n]:this.bidiMap.logicalFromVisual[n-1]):this.isRtlDir&&n===o.length-1&&0===s&&o[n-1]%2==0||!this.isRtlDir&&0===n&&o[n]%2!=0?t=1+this.bidiMap.logicalFromVisual[n]:(n>0&&o[n-1]%2!=0&&0!==s&&n--,t=this.bidiMap.logicalFromVisual[n]),0===t&&this.isRtlDir&&t++,t+this.wrapIndent}}).call(r.prototype),t.BidiHandler=r})),ace.define("ace/selection",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter","ace/range"],(function(e,t,i){"use strict";var n=e("./lib/oop"),o=e("./lib/lang"),s=e("./lib/event_emitter").EventEmitter,r=e("./range").Range,a=function(e){this.session=e,this.doc=e.getDocument(),this.clearSelection(),this.cursor=this.lead=this.doc.createAnchor(0,0),this.anchor=this.doc.createAnchor(0,0),this.$silent=!1;var t=this;this.cursor.on("change",(function(e){t.$cursorChanged=!0,t.$silent||t._emit("changeCursor"),t.$isEmpty||t.$silent||t._emit("changeSelection"),t.$keepDesiredColumnOnChange||e.old.column==e.value.column||(t.$desiredColumn=null)})),this.anchor.on("change",(function(){t.$anchorChanged=!0,t.$isEmpty||t.$silent||t._emit("changeSelection")}))};(function(){n.implement(this,s),this.isEmpty=function(){return this.$isEmpty||this.anchor.row==this.lead.row&&this.anchor.column==this.lead.column},this.isMultiLine=function(){return!this.$isEmpty&&this.anchor.row!=this.cursor.row},this.getCursor=function(){return this.lead.getPosition()},this.setSelectionAnchor=function(e,t){this.$isEmpty=!1,this.anchor.setPosition(e,t)},this.getAnchor=this.getSelectionAnchor=function(){return this.$isEmpty?this.getSelectionLead():this.anchor.getPosition()},this.getSelectionLead=function(){return this.lead.getPosition()},this.isBackwards=function(){var e=this.anchor,t=this.lead;return e.row>t.row||e.row==t.row&&e.column>t.column},this.getRange=function(){var e=this.anchor,t=this.lead;return this.$isEmpty?r.fromPoints(t,t):this.isBackwards()?r.fromPoints(t,e):r.fromPoints(e,t)},this.clearSelection=function(){this.$isEmpty||(this.$isEmpty=!0,this._emit("changeSelection"))},this.selectAll=function(){this.$setSelection(0,0,Number.MAX_VALUE,Number.MAX_VALUE)},this.setRange=this.setSelectionRange=function(e,t){var i=t?e.end:e.start,n=t?e.start:e.end;this.$setSelection(i.row,i.column,n.row,n.column)},this.$setSelection=function(e,t,i,n){if(!this.$silent){var o=this.$isEmpty,s=this.inMultiSelectMode;this.$silent=!0,this.$cursorChanged=this.$anchorChanged=!1,this.anchor.setPosition(e,t),this.cursor.setPosition(i,n),this.$isEmpty=!r.comparePoints(this.anchor,this.cursor),this.$silent=!1,this.$cursorChanged&&this._emit("changeCursor"),(this.$cursorChanged||this.$anchorChanged||o!=this.$isEmpty||s)&&this._emit("changeSelection")}},this.$moveSelection=function(e){var t=this.lead;this.$isEmpty&&this.setSelectionAnchor(t.row,t.column),e.call(this)},this.selectTo=function(e,t){this.$moveSelection((function(){this.moveCursorTo(e,t)}))},this.selectToPosition=function(e){this.$moveSelection((function(){this.moveCursorToPosition(e)}))},this.moveTo=function(e,t){this.clearSelection(),this.moveCursorTo(e,t)},this.moveToPosition=function(e){this.clearSelection(),this.moveCursorToPosition(e)},this.selectUp=function(){this.$moveSelection(this.moveCursorUp)},this.selectDown=function(){this.$moveSelection(this.moveCursorDown)},this.selectRight=function(){this.$moveSelection(this.moveCursorRight)},this.selectLeft=function(){this.$moveSelection(this.moveCursorLeft)},this.selectLineStart=function(){this.$moveSelection(this.moveCursorLineStart)},this.selectLineEnd=function(){this.$moveSelection(this.moveCursorLineEnd)},this.selectFileEnd=function(){this.$moveSelection(this.moveCursorFileEnd)},this.selectFileStart=function(){this.$moveSelection(this.moveCursorFileStart)},this.selectWordRight=function(){this.$moveSelection(this.moveCursorWordRight)},this.selectWordLeft=function(){this.$moveSelection(this.moveCursorWordLeft)},this.getWordRange=function(e,t){if(void 0===t){var i=e||this.lead;e=i.row,t=i.column}return this.session.getWordRange(e,t)},this.selectWord=function(){this.setSelectionRange(this.getWordRange())},this.selectAWord=function(){var e=this.getCursor(),t=this.session.getAWordRange(e.row,e.column);this.setSelectionRange(t)},this.getLineRange=function(e,t){var i,n="number"==typeof e?e:this.lead.row,o=this.session.getFoldLine(n);return o?(n=o.start.row,i=o.end.row):i=n,!0===t?new r(n,0,i,this.session.getLine(i).length):new r(n,0,i+1,0)},this.selectLine=function(){this.setSelectionRange(this.getLineRange())},this.moveCursorUp=function(){this.moveCursorBy(-1,0)},this.moveCursorDown=function(){this.moveCursorBy(1,0)},this.wouldMoveIntoSoftTab=function(e,t,i){var n=e.column,o=e.column+t;return i<0&&(n=e.column-t,o=e.column),this.session.isTabStop(e)&&this.doc.getLine(e.row).slice(n,o).split(" ").length-1==t},this.moveCursorLeft=function(){var e,t=this.lead.getPosition();if(e=this.session.getFoldAt(t.row,t.column,-1))this.moveCursorTo(e.start.row,e.start.column);else if(0===t.column)t.row>0&&this.moveCursorTo(t.row-1,this.doc.getLine(t.row-1).length);else{var i=this.session.getTabSize();this.wouldMoveIntoSoftTab(t,i,-1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,-i):this.moveCursorBy(0,-1)}},this.moveCursorRight=function(){var e,t=this.lead.getPosition();if(e=this.session.getFoldAt(t.row,t.column,1))this.moveCursorTo(e.end.row,e.end.column);else if(this.lead.column==this.doc.getLine(this.lead.row).length)this.lead.row0&&(t.column=n)}}this.moveCursorTo(t.row,t.column)},this.moveCursorFileEnd=function(){var e=this.doc.getLength()-1,t=this.doc.getLine(e).length;this.moveCursorTo(e,t)},this.moveCursorFileStart=function(){this.moveCursorTo(0,0)},this.moveCursorLongWordRight=function(){var e=this.lead.row,t=this.lead.column,i=this.doc.getLine(e),n=i.substring(t);this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0;var o=this.session.getFoldAt(e,t,1);if(o)this.moveCursorTo(o.end.row,o.end.column);else{if(this.session.nonTokenRe.exec(n)&&(t+=this.session.nonTokenRe.lastIndex,this.session.nonTokenRe.lastIndex=0,n=i.substring(t)),t>=i.length)return this.moveCursorTo(e,i.length),this.moveCursorRight(),void(e0&&this.moveCursorWordLeft());this.session.tokenRe.exec(s)&&(i-=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(t,i)}},this.$shortWordEndIndex=function(e){var t,i=0,n=/\s/,o=this.session.tokenRe;if(o.lastIndex=0,this.session.tokenRe.exec(e))i=this.session.tokenRe.lastIndex;else{for(;(t=e[i])&&n.test(t);)i++;if(i<1)for(o.lastIndex=0;(t=e[i])&&!o.test(t);)if(o.lastIndex=0,i++,n.test(t)){if(i>2){i--;break}for(;(t=e[i])&&n.test(t);)i++;if(i>2)break}}return o.lastIndex=0,i},this.moveCursorShortWordRight=function(){var e=this.lead.row,t=this.lead.column,i=this.doc.getLine(e),n=i.substring(t),o=this.session.getFoldAt(e,t,1);if(o)return this.moveCursorTo(o.end.row,o.end.column);if(t==i.length){var s=this.doc.getLength();do{e++,n=this.doc.getLine(e)}while(e0&&/^\s*$/.test(n));i=n.length,/\s+$/.test(n)||(n="")}var s=o.stringReverse(n),r=this.$shortWordEndIndex(s);return this.moveCursorTo(t,i-r)},this.moveCursorWordRight=function(){this.session.$selectLongWords?this.moveCursorLongWordRight():this.moveCursorShortWordRight()},this.moveCursorWordLeft=function(){this.session.$selectLongWords?this.moveCursorLongWordLeft():this.moveCursorShortWordLeft()},this.moveCursorBy=function(e,t){var i,n=this.session.documentToScreenPosition(this.lead.row,this.lead.column);if(0===t&&(0!==e&&(this.session.$bidiHandler.isBidiRow(n.row,this.lead.row)?(i=this.session.$bidiHandler.getPosLeft(n.column),n.column=Math.round(i/this.session.$bidiHandler.charWidths[0])):i=n.column*this.session.$bidiHandler.charWidths[0]),this.$desiredColumn?n.column=this.$desiredColumn:this.$desiredColumn=n.column),0!=e&&this.session.lineWidgets&&this.session.lineWidgets[this.lead.row]){var o=this.session.lineWidgets[this.lead.row];e<0?e-=o.rowsAbove||0:e>0&&(e+=o.rowCount-(o.rowsAbove||0))}var s=this.session.screenToDocumentPosition(n.row+e,n.column,i);0!==e&&0===t&&s.row===this.lead.row&&(s.column,this.lead.column),this.moveCursorTo(s.row,s.column+t,0===t)},this.moveCursorToPosition=function(e){this.moveCursorTo(e.row,e.column)},this.moveCursorTo=function(e,t,i){var n=this.session.getFoldAt(e,t,1);n&&(e=n.start.row,t=n.start.column),this.$keepDesiredColumnOnChange=!0;var o=this.session.getLine(e);/[\uDC00-\uDFFF]/.test(o.charAt(t))&&o.charAt(t-1)&&(this.lead.row==e&&this.lead.column==t+1?t-=1:t+=1),this.lead.setPosition(e,t),this.$keepDesiredColumnOnChange=!1,i||(this.$desiredColumn=null)},this.moveCursorToScreen=function(e,t,i){var n=this.session.screenToDocumentPosition(e,t);this.moveCursorTo(n.row,n.column,i)},this.detach=function(){this.lead.detach(),this.anchor.detach(),this.session=this.doc=null},this.fromOrientedRange=function(e){this.setSelectionRange(e,e.cursor==e.start),this.$desiredColumn=e.desiredColumn||this.$desiredColumn},this.toOrientedRange=function(e){var t=this.getRange();return e?(e.start.column=t.start.column,e.start.row=t.start.row,e.end.column=t.end.column,e.end.row=t.end.row):e=t,e.cursor=this.isBackwards()?e.start:e.end,e.desiredColumn=this.$desiredColumn,e},this.getRangeOfMovements=function(e){var t=this.getCursor();try{e(this);var i=this.getCursor();return r.fromPoints(t,i)}catch(e){return r.fromPoints(t,t)}finally{this.moveCursorToPosition(t)}},this.toJSON=function(){if(this.rangeCount)var e=this.ranges.map((function(e){var t=e.clone();return t.isBackwards=e.cursor==e.start,t}));else(e=this.getRange()).isBackwards=this.isBackwards();return e},this.fromJSON=function(e){if(null==e.start){if(this.rangeList&&e.length>1){this.toSingleRange(e[0]);for(var t=e.length;t--;){var i=r.fromPoints(e[t].start,e[t].end);e[t].isBackwards&&(i.cursor=i.start),this.addRange(i,!0)}return}e=e[0]}this.rangeList&&this.toSingleRange(e),this.setSelectionRange(e,e.isBackwards)},this.isEqual=function(e){if((e.length||this.rangeCount)&&e.length!=this.rangeCount)return!1;if(!e.length||!this.ranges)return this.getRange().isEqual(e);for(var t=this.ranges.length;t--;)if(!this.ranges[t].isEqual(e[t]))return!1;return!0}}).call(a.prototype),t.Selection=a})),ace.define("ace/tokenizer",["require","exports","module","ace/config"],(function(e,t,i){"use strict";var n=e("./config"),o=2e3,s=function(e){for(var t in this.states=e,this.regExps={},this.matchMappings={},this.states){for(var i=this.states[t],n=[],o=0,s=this.matchMappings[t]={defaultToken:"text"},r="g",a=[],c=0;c1?this.$applyToken:l.token),d>1&&(/\\\d/.test(l.regex)?h=l.regex.replace(/\\([0-9]+)/g,(function(e,t){return"\\"+(parseInt(t,10)+o+1)})):(d=1,h=this.removeCapturingGroups(l.regex)),l.splitRegex||"string"==typeof l.token||a.push(l)),s[o]=c,o+=d,n.push(h),l.onMatch||(l.onMatch=null)}}n.length||(s[0]=0,n.push("$")),a.forEach((function(e){e.splitRegex=this.createSplitterRegexp(e.regex,r)}),this),this.regExps[t]=new RegExp("("+n.join(")|(")+")|($)",r)}};(function(){this.$setMaxTokenCount=function(e){o=0|e},this.$applyToken=function(e){var t=this.splitRegex.exec(e).slice(1),i=this.token.apply(this,t);if("string"==typeof i)return[{type:i,value:e}];for(var n=[],o=0,s=i.length;oh){var b=e.substring(h,m-p.length);u.type==f?u.value+=b:(u.type&&l.push(u),u={type:f,value:b})}for(var v=0;vo){for(d>2*e.length&&this.reportError("infinite loop with in ace tokenizer",{startState:t,line:e});h1&&i[0]!==n&&i.unshift("#tmp",n),{tokens:l,state:i.length?i:n}},this.reportError=n.reportError}).call(s.prototype),t.Tokenizer=s})),ace.define("ace/mode/text_highlight_rules",["require","exports","module","ace/lib/lang"],(function(e,t,i){"use strict";var n=e("../lib/lang"),o=function(){this.$rules={start:[{token:"empty_line",regex:"^$"},{defaultToken:"text"}]}};(function(){this.addRules=function(e,t){if(t)for(var i in e){for(var n=e[i],o=0;o=this.$rowTokens.length;){if(this.$row+=1,e||(e=this.$session.getLength()),this.$row>=e)return this.$row=e-1,null;this.$rowTokens=this.$session.getTokens(this.$row),this.$tokenIndex=0}return this.$rowTokens[this.$tokenIndex]},this.getCurrentToken=function(){return this.$rowTokens[this.$tokenIndex]},this.getCurrentTokenRow=function(){return this.$row},this.getCurrentTokenColumn=function(){var e=this.$rowTokens,t=this.$tokenIndex,i=e[t].start;if(void 0!==i)return i;for(i=0;t>0;)i+=e[t-=1].value.length;return i},this.getCurrentTokenPosition=function(){return{row:this.$row,column:this.getCurrentTokenColumn()}},this.getCurrentTokenRange=function(){var e=this.$rowTokens[this.$tokenIndex],t=this.getCurrentTokenColumn();return new n(this.$row,t,this.$row,t+e.value.length)}}).call(o.prototype),t.TokenIterator=o})),ace.define("ace/mode/behaviour/cstyle",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/token_iterator","ace/lib/lang"],(function(e,t,i){"use strict";var n,o=e("../../lib/oop"),s=e("../behaviour").Behaviour,r=e("../../token_iterator").TokenIterator,a=e("../../lib/lang"),c=["text","paren.rparen","rparen","paren","punctuation.operator"],l=["text","paren.rparen","rparen","paren","punctuation.operator","comment"],h={},d={'"':'"',"'":"'"},u=function(e){var t=-1;if(e.multiSelect&&(t=e.selection.index,h.rangeCount!=e.multiSelect.rangeCount&&(h={rangeCount:e.multiSelect.rangeCount})),h[t])return n=h[t];n=h[t]={autoInsertedBrackets:0,autoInsertedRow:-1,autoInsertedLineEnd:"",maybeInsertedBrackets:0,maybeInsertedRow:-1,maybeInsertedLineStart:"",maybeInsertedLineEnd:""}},f=function(e,t,i,n){var o=e.end.row-e.start.row;return{text:i+t+n,selection:[0,e.start.column+1,o,e.end.column+(o?0:1)]}},g=function(e){this.add("braces","insertion",(function(t,i,o,s,r){var c=o.getCursorPosition(),l=s.doc.getLine(c.row);if("{"==r){u(o);var h=o.getSelectionRange(),d=s.doc.getTextRange(h);if(""!==d&&"{"!==d&&o.getWrapBehavioursEnabled())return f(h,d,"{","}");if(g.isSaneInsertion(o,s))return/[\]\}\)]/.test(l[c.column])||o.inMultiSelectMode||e&&e.braces?(g.recordAutoInsert(o,s,"}"),{text:"{}",selection:[1,1]}):(g.recordMaybeInsert(o,s,"{"),{text:"{",selection:[1,1]})}else if("}"==r){if(u(o),"}"==l.substring(c.column,c.column+1))if(null!==s.$findOpeningBracket("}",{column:c.column+1,row:c.row})&&g.isAutoInsertedClosing(c,l,r))return g.popAutoInsertedClosing(),{text:"",selection:[1,1]}}else{if("\n"==r||"\r\n"==r){u(o);var p="";if(g.isMaybeInsertedClosing(c,l)&&(p=a.stringRepeat("}",n.maybeInsertedBrackets),g.clearMaybeInsertedClosing()),"}"===l.substring(c.column,c.column+1)){var m=s.findMatchingBracket({row:c.row,column:c.column+1},"}");if(!m)return null;var b=this.$getIndent(s.getLine(m.row))}else{if(!p)return void g.clearMaybeInsertedClosing();b=this.$getIndent(l)}var v=b+s.getTabString();return{text:"\n"+v+"\n"+b+p,selection:[1,v.length,1,v.length]}}g.clearMaybeInsertedClosing()}})),this.add("braces","deletion",(function(e,t,i,o,s){var r=o.doc.getTextRange(s);if(!s.isMultiLine()&&"{"==r){if(u(i),"}"==o.doc.getLine(s.start.row).substring(s.end.column,s.end.column+1))return s.end.column++,s;n.maybeInsertedBrackets--}})),this.add("parens","insertion",(function(e,t,i,n,o){if("("==o){u(i);var s=i.getSelectionRange(),r=n.doc.getTextRange(s);if(""!==r&&i.getWrapBehavioursEnabled())return f(s,r,"(",")");if(g.isSaneInsertion(i,n))return g.recordAutoInsert(i,n,")"),{text:"()",selection:[1,1]}}else if(")"==o){u(i);var a=i.getCursorPosition(),c=n.doc.getLine(a.row);if(")"==c.substring(a.column,a.column+1))if(null!==n.$findOpeningBracket(")",{column:a.column+1,row:a.row})&&g.isAutoInsertedClosing(a,c,o))return g.popAutoInsertedClosing(),{text:"",selection:[1,1]}}})),this.add("parens","deletion",(function(e,t,i,n,o){var s=n.doc.getTextRange(o);if(!o.isMultiLine()&&"("==s&&(u(i),")"==n.doc.getLine(o.start.row).substring(o.start.column+1,o.start.column+2)))return o.end.column++,o})),this.add("brackets","insertion",(function(e,t,i,n,o){if("["==o){u(i);var s=i.getSelectionRange(),r=n.doc.getTextRange(s);if(""!==r&&i.getWrapBehavioursEnabled())return f(s,r,"[","]");if(g.isSaneInsertion(i,n))return g.recordAutoInsert(i,n,"]"),{text:"[]",selection:[1,1]}}else if("]"==o){u(i);var a=i.getCursorPosition(),c=n.doc.getLine(a.row);if("]"==c.substring(a.column,a.column+1))if(null!==n.$findOpeningBracket("]",{column:a.column+1,row:a.row})&&g.isAutoInsertedClosing(a,c,o))return g.popAutoInsertedClosing(),{text:"",selection:[1,1]}}})),this.add("brackets","deletion",(function(e,t,i,n,o){var s=n.doc.getTextRange(o);if(!o.isMultiLine()&&"["==s&&(u(i),"]"==n.doc.getLine(o.start.row).substring(o.start.column+1,o.start.column+2)))return o.end.column++,o})),this.add("string_dquotes","insertion",(function(e,t,i,n,o){var s=n.$mode.$quotes||d;if(1==o.length&&s[o]){if(this.lineCommentStart&&-1!=this.lineCommentStart.indexOf(o))return;u(i);var r=o,a=i.getSelectionRange(),c=n.doc.getTextRange(a);if(!(""===c||1==c.length&&s[c])&&i.getWrapBehavioursEnabled())return f(a,c,r,r);if(!c){var l=i.getCursorPosition(),h=n.doc.getLine(l.row),g=h.substring(l.column-1,l.column),p=h.substring(l.column,l.column+1),m=n.getTokenAt(l.row,l.column),b=n.getTokenAt(l.row,l.column+1);if("\\"==g&&m&&/escape/.test(m.type))return null;var v,w=m&&/string|escape/.test(m.type),x=!b||/string|escape/.test(b.type);if(p==r)(v=w!==x)&&/string\.end/.test(b.type)&&(v=!1);else{if(w&&!x)return null;if(w&&x)return null;var y=n.$mode.tokenRe;y.lastIndex=0;var $=y.test(g);y.lastIndex=0;var S=y.test(g);if($||S)return null;if(p&&!/[\s;,.})\]\\]/.test(p))return null;var C=h[l.column-2];if(g==r&&(C==r||y.test(C)))return null;v=!0}return{text:v?r+r:"",selection:[1,1]}}}})),this.add("string_dquotes","deletion",(function(e,t,i,n,o){var s=n.$mode.$quotes||d,r=n.doc.getTextRange(o);if(!o.isMultiLine()&&s.hasOwnProperty(r)&&(u(i),n.doc.getLine(o.start.row).substring(o.start.column+1,o.start.column+2)==r))return o.end.column++,o}))};g.isSaneInsertion=function(e,t){var i=e.getCursorPosition(),n=new r(t,i.row,i.column);if(!this.$matchTokenType(n.getCurrentToken()||"text",c)){if(/[)}\]]/.test(e.session.getLine(i.row)[i.column]))return!0;var o=new r(t,i.row,i.column+1);if(!this.$matchTokenType(o.getCurrentToken()||"text",c))return!1}return n.stepForward(),n.getCurrentTokenRow()!==i.row||this.$matchTokenType(n.getCurrentToken()||"text",l)},g.$matchTokenType=function(e,t){return t.indexOf(e.type||e)>-1},g.recordAutoInsert=function(e,t,i){var o=e.getCursorPosition(),s=t.doc.getLine(o.row);this.isAutoInsertedClosing(o,s,n.autoInsertedLineEnd[0])||(n.autoInsertedBrackets=0),n.autoInsertedRow=o.row,n.autoInsertedLineEnd=i+s.substr(o.column),n.autoInsertedBrackets++},g.recordMaybeInsert=function(e,t,i){var o=e.getCursorPosition(),s=t.doc.getLine(o.row);this.isMaybeInsertedClosing(o,s)||(n.maybeInsertedBrackets=0),n.maybeInsertedRow=o.row,n.maybeInsertedLineStart=s.substr(0,o.column)+i,n.maybeInsertedLineEnd=s.substr(o.column),n.maybeInsertedBrackets++},g.isAutoInsertedClosing=function(e,t,i){return n.autoInsertedBrackets>0&&e.row===n.autoInsertedRow&&i===n.autoInsertedLineEnd[0]&&t.substr(e.column)===n.autoInsertedLineEnd},g.isMaybeInsertedClosing=function(e,t){return n.maybeInsertedBrackets>0&&e.row===n.maybeInsertedRow&&t.substr(e.column)===n.maybeInsertedLineEnd&&t.substr(0,e.column)==n.maybeInsertedLineStart},g.popAutoInsertedClosing=function(){n.autoInsertedLineEnd=n.autoInsertedLineEnd.substr(1),n.autoInsertedBrackets--},g.clearMaybeInsertedClosing=function(){n&&(n.maybeInsertedBrackets=0,n.maybeInsertedRow=-1)},o.inherits(g,s),t.CstyleBehaviour=g})),ace.define("ace/unicode",["require","exports","module"],(function(e,t,i){"use strict";for(var n=[48,9,8,25,5,0,2,25,48,0,11,0,5,0,6,22,2,30,2,457,5,11,15,4,8,0,2,0,18,116,2,1,3,3,9,0,2,2,2,0,2,19,2,82,2,138,2,4,3,155,12,37,3,0,8,38,10,44,2,0,2,1,2,1,2,0,9,26,6,2,30,10,7,61,2,9,5,101,2,7,3,9,2,18,3,0,17,58,3,100,15,53,5,0,6,45,211,57,3,18,2,5,3,11,3,9,2,1,7,6,2,2,2,7,3,1,3,21,2,6,2,0,4,3,3,8,3,1,3,3,9,0,5,1,2,4,3,11,16,2,2,5,5,1,3,21,2,6,2,1,2,1,2,1,3,0,2,4,5,1,3,2,4,0,8,3,2,0,8,15,12,2,2,8,2,2,2,21,2,6,2,1,2,4,3,9,2,2,2,2,3,0,16,3,3,9,18,2,2,7,3,1,3,21,2,6,2,1,2,4,3,8,3,1,3,2,9,1,5,1,2,4,3,9,2,0,17,1,2,5,4,2,2,3,4,1,2,0,2,1,4,1,4,2,4,11,5,4,4,2,2,3,3,0,7,0,15,9,18,2,2,7,2,2,2,22,2,9,2,4,4,7,2,2,2,3,8,1,2,1,7,3,3,9,19,1,2,7,2,2,2,22,2,9,2,4,3,8,2,2,2,3,8,1,8,0,2,3,3,9,19,1,2,7,2,2,2,22,2,15,4,7,2,2,2,3,10,0,9,3,3,9,11,5,3,1,2,17,4,23,2,8,2,0,3,6,4,0,5,5,2,0,2,7,19,1,14,57,6,14,2,9,40,1,2,0,3,1,2,0,3,0,7,3,2,6,2,2,2,0,2,0,3,1,2,12,2,2,3,4,2,0,2,5,3,9,3,1,35,0,24,1,7,9,12,0,2,0,2,0,5,9,2,35,5,19,2,5,5,7,2,35,10,0,58,73,7,77,3,37,11,42,2,0,4,328,2,3,3,6,2,0,2,3,3,40,2,3,3,32,2,3,3,6,2,0,2,3,3,14,2,56,2,3,3,66,5,0,33,15,17,84,13,619,3,16,2,25,6,74,22,12,2,6,12,20,12,19,13,12,2,2,2,1,13,51,3,29,4,0,5,1,3,9,34,2,3,9,7,87,9,42,6,69,11,28,4,11,5,11,11,39,3,4,12,43,5,25,7,10,38,27,5,62,2,28,3,10,7,9,14,0,89,75,5,9,18,8,13,42,4,11,71,55,9,9,4,48,83,2,2,30,14,230,23,280,3,5,3,37,3,5,3,7,2,0,2,0,2,0,2,30,3,52,2,6,2,0,4,2,2,6,4,3,3,5,5,12,6,2,2,6,67,1,20,0,29,0,14,0,17,4,60,12,5,0,4,11,18,0,5,0,3,9,2,0,4,4,7,0,2,0,2,0,2,3,2,10,3,3,6,4,5,0,53,1,2684,46,2,46,2,132,7,6,15,37,11,53,10,0,17,22,10,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,31,48,0,470,1,36,5,2,4,6,1,5,85,3,1,3,2,2,89,2,3,6,40,4,93,18,23,57,15,513,6581,75,20939,53,1164,68,45,3,268,4,27,21,31,3,13,13,1,2,24,9,69,11,1,38,8,3,102,3,1,111,44,25,51,13,68,12,9,7,23,4,0,5,45,3,35,13,28,4,64,15,10,39,54,10,13,3,9,7,22,4,1,5,66,25,2,227,42,2,1,3,9,7,11171,13,22,5,48,8453,301,3,61,3,105,39,6,13,4,6,11,2,12,2,4,2,0,2,1,2,1,2,107,34,362,19,63,3,53,41,11,5,15,17,6,13,1,25,2,33,4,2,134,20,9,8,25,5,0,2,25,12,88,4,5,3,5,3,5,3,2],o=0,s=[],r=0;r2?n%l!=l-1:n%l==0})}else{if(!this.blockComment)return!1;var f=this.blockComment.start,g=this.blockComment.end,p=new RegExp("^(\\s*)(?:"+c.escapeRegExp(f)+")"),m=new RegExp("(?:"+c.escapeRegExp(g)+")\\s*$"),b=function(e,t){w(e,t)||s&&!/\S/.test(e)||(o.insertInLine({row:t,column:e.length},g),o.insertInLine({row:t,column:a},f))},v=function(e,t){var i;(i=e.match(m))&&o.removeInLine(t,e.length-i[0].length,e.length),(i=e.match(p))&&o.removeInLine(t,i[1].length,i[0].length)},w=function(e,i){if(p.test(e))return!0;for(var n=t.getTokens(i),o=0;oe.length&&(y=e.length)})),a==1/0&&(a=y,s=!1,r=!1),h&&a%l!=0&&(a=Math.floor(a/l)*l),x(r?v:b)},this.toggleBlockComment=function(e,t,i,n){var o=this.blockComment;if(o){!o.start&&o[0]&&(o=o[0]);var s,r,a=(p=new l(t,n.row,n.column)).getCurrentToken(),c=(t.selection,t.selection.toOrientedRange());if(a&&/comment/.test(a.type)){for(var d,u;a&&/comment/.test(a.type);){if(-1!=(m=a.value.indexOf(o.start))){var f=p.getCurrentTokenRow(),g=p.getCurrentTokenColumn()+m;d=new h(f,g,f,g+o.start.length);break}a=p.stepBackward()}var p;for(a=(p=new l(t,n.row,n.column)).getCurrentToken();a&&/comment/.test(a.type);){var m;if(-1!=(m=a.value.indexOf(o.end))){f=p.getCurrentTokenRow(),g=p.getCurrentTokenColumn()+m;u=new h(f,g,f,g+o.end.length);break}a=p.stepForward()}u&&t.remove(u),d&&(t.remove(d),s=d.start.row,r=-o.start.length)}else r=o.start.length,s=i.start.row,t.insert(i.end,o.end),t.insert(i.start,o.start);c.start.row==s&&(c.start.column+=r),c.end.row==s&&(c.end.column+=r),t.selection.fromOrientedRange(c)}},this.getNextLineIndent=function(e,t,i){return this.$getIndent(t)},this.checkOutdent=function(e,t,i){return!1},this.autoOutdent=function(e,t,i){},this.$getIndent=function(e){return e.match(/^\s*/)[0]},this.createWorker=function(e){return null},this.createModeDelegates=function(e){for(var t in this.$embeds=[],this.$modes={},e)if(e[t]){var i=e[t],o=i.prototype.$id,s=n.$modes[o];s||(n.$modes[o]=s=new i),n.$modes[t]||(n.$modes[t]=s),this.$embeds.push(t),this.$modes[t]=s}var r=["toggleBlockComment","toggleCommentLines","getNextLineIndent","checkOutdent","autoOutdent","transformAction","getCompletions"];for(t=0;tthis.row)){var i=function(t,i,n){var o="insert"==t.action,s=(o?1:-1)*(t.end.row-t.start.row),r=(o?1:-1)*(t.end.column-t.start.column),a=t.start,c=o?a:t.end;if(e(i,a,n))return{row:i.row,column:i.column};if(e(c,i,!n))return{row:i.row+s,column:i.column+(i.row==c.row?r:0)};return{row:a.row,column:a.column}}(t,{row:this.row,column:this.column},this.$insertRight);this.setPosition(i.row,i.column,!0)}},this.setPosition=function(e,t,i){var n;if(n=i?{row:e,column:t}:this.$clipPositionToDocument(e,t),this.row!=n.row||this.column!=n.column){var o={row:this.row,column:this.column};this.row=n.row,this.column=n.column,this._signal("change",{old:o,value:n})}},this.detach=function(){this.document.off("change",this.$onChange)},this.attach=function(e){this.document=e||this.document,this.document.on("change",this.$onChange)},this.$clipPositionToDocument=function(e,t){var i={};return e>=this.document.getLength()?(i.row=Math.max(0,this.document.getLength()-1),i.column=this.document.getLine(i.row).length):e<0?(i.row=0,i.column=0):(i.row=e,i.column=Math.min(this.document.getLine(i.row).length,Math.max(0,t))),t<0&&(i.column=0),i}}).call(s.prototype)})),ace.define("ace/document",["require","exports","module","ace/lib/oop","ace/apply_delta","ace/lib/event_emitter","ace/range","ace/anchor"],(function(e,t,i){"use strict";var n=e("./lib/oop"),o=e("./apply_delta").applyDelta,s=e("./lib/event_emitter").EventEmitter,r=e("./range").Range,a=e("./anchor").Anchor,c=function(e){this.$lines=[""],0===e.length?this.$lines=[""]:Array.isArray(e)?this.insertMergedLines({row:0,column:0},e):this.insert({row:0,column:0},e)};(function(){n.implement(this,s),this.setValue=function(e){var t=this.getLength()-1;this.remove(new r(0,0,t,this.getLine(t).length)),this.insert({row:0,column:0},e)},this.getValue=function(){return this.getAllLines().join(this.getNewLineCharacter())},this.createAnchor=function(e,t){return new a(this,e,t)},0==="aaa".split(/a/).length?this.$split=function(e){return e.replace(/\r\n|\r/g,"\n").split("\n")}:this.$split=function(e){return e.split(/\r\n|\r|\n/)},this.$detectNewLine=function(e){var t=e.match(/^.*?(\r\n|\r|\n)/m);this.$autoNewLine=t?t[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(e){this.$newLineMode!==e&&(this.$newLineMode=e,this._signal("changeNewLineMode"))},this.getNewLineMode=function(){return this.$newLineMode},this.isNewLine=function(e){return"\r\n"==e||"\r"==e||"\n"==e},this.getLine=function(e){return this.$lines[e]||""},this.getLines=function(e,t){return this.$lines.slice(e,t+1)},this.getAllLines=function(){return this.getLines(0,this.getLength())},this.getLength=function(){return this.$lines.length},this.getTextRange=function(e){return this.getLinesForRange(e).join(this.getNewLineCharacter())},this.getLinesForRange=function(e){var t;if(e.start.row===e.end.row)t=[this.getLine(e.start.row).substring(e.start.column,e.end.column)];else{(t=this.getLines(e.start.row,e.end.row))[0]=(t[0]||"").substring(e.start.column);var i=t.length-1;e.end.row-e.start.row==i&&(t[i]=t[i].substring(0,e.end.column))}return t},this.insertLines=function(e,t){return console.warn("Use of document.insertLines is deprecated. Use the insertFullLines method instead."),this.insertFullLines(e,t)},this.removeLines=function(e,t){return console.warn("Use of document.removeLines is deprecated. Use the removeFullLines method instead."),this.removeFullLines(e,t)},this.insertNewLine=function(e){return console.warn("Use of document.insertNewLine is deprecated. Use insertMergedLines(position, ['', '']) instead."),this.insertMergedLines(e,["",""])},this.insert=function(e,t){return this.getLength()<=1&&this.$detectNewLine(t),this.insertMergedLines(e,this.$split(t))},this.insertInLine=function(e,t){var i=this.clippedPos(e.row,e.column),n=this.pos(e.row,e.column+t.length);return this.applyDelta({start:i,end:n,action:"insert",lines:[t]},!0),this.clonePos(n)},this.clippedPos=function(e,t){var i=this.getLength();void 0===e?e=i:e<0?e=0:e>=i&&(e=i-1,t=void 0);var n=this.getLine(e);return null==t&&(t=n.length),{row:e,column:t=Math.min(Math.max(t,0),n.length)}},this.clonePos=function(e){return{row:e.row,column:e.column}},this.pos=function(e,t){return{row:e,column:t}},this.$clipPosition=function(e){var t=this.getLength();return e.row>=t?(e.row=Math.max(0,t-1),e.column=this.getLine(t-1).length):(e.row=Math.max(0,e.row),e.column=Math.min(Math.max(e.column,0),this.getLine(e.row).length)),e},this.insertFullLines=function(e,t){var i=0;(e=Math.min(Math.max(e,0),this.getLength()))0,n=t=0&&this.applyDelta({start:this.pos(e,this.getLine(e).length),end:this.pos(e+1,0),action:"remove",lines:["",""]})},this.replace=function(e,t){return e instanceof r||(e=r.fromPoints(e.start,e.end)),0===t.length&&e.isEmpty()?e.start:t==this.getTextRange(e)?e.end:(this.remove(e),t?this.insert(e.start,t):e.start)},this.applyDeltas=function(e){for(var t=0;t=0;t--)this.revertDelta(e[t])},this.applyDelta=function(e,t){var i="insert"==e.action;(i?e.lines.length<=1&&!e.lines[0]:!r.comparePoints(e.start,e.end))||(i&&e.lines.length>2e4?this.$splitAndapplyLargeDelta(e,2e4):(o(this.$lines,e,t),this._signal("change",e)))},this.$safeApplyDelta=function(e){var t=this.$lines.length;("remove"==e.action&&e.start.row20){i.running=setTimeout(i.$worker,20);break}}i.currentLine=t,-1==n&&(n=t),s<=n&&i.fireUpdateEvent(s,n)}}};(function(){n.implement(this,o),this.setTokenizer=function(e){this.tokenizer=e,this.lines=[],this.states=[],this.start(0)},this.setDocument=function(e){this.doc=e,this.lines=[],this.states=[],this.stop()},this.fireUpdateEvent=function(e,t){var i={first:e,last:t};this._signal("update",{data:i})},this.start=function(e){this.currentLine=Math.min(e||0,this.currentLine,this.doc.getLength()),this.lines.splice(this.currentLine,this.lines.length),this.states.splice(this.currentLine,this.states.length),this.stop(),this.running=setTimeout(this.$worker,700)},this.scheduleStart=function(){this.running||(this.running=setTimeout(this.$worker,700))},this.$updateOnChange=function(e){var t=e.start.row,i=e.end.row-t;if(0===i)this.lines[t]=null;else if("remove"==e.action)this.lines.splice(t,i+1,null),this.states.splice(t,i+1,null);else{var n=Array(i+1);n.unshift(t,1),this.lines.splice.apply(this.lines,n),this.states.splice.apply(this.states,n)}this.currentLine=Math.min(t,this.currentLine,this.doc.getLength()),this.stop()},this.stop=function(){this.running&&clearTimeout(this.running),this.running=!1},this.getTokens=function(e){return this.lines[e]||this.$tokenizeRow(e)},this.getState=function(e){return this.currentLine==e&&this.$tokenizeRow(e),this.states[e]||"start"},this.$tokenizeRow=function(e){var t=this.doc.getLine(e),i=this.states[e-1],n=this.tokenizer.getLineTokens(t,i,e);return this.states[e]+""!=n.state+""?(this.states[e]=n.state,this.lines[e+1]=null,this.currentLine>e+1&&(this.currentLine=e+1)):this.currentLine==e&&(this.currentLine=e+1),this.lines[e]=n.tokens}}).call(s.prototype),t.BackgroundTokenizer=s})),ace.define("ace/search_highlight",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/range"],(function(e,t,i){"use strict";var n=e("./lib/lang"),o=(e("./lib/oop"),e("./range").Range),s=function(e,t,i){this.setRegexp(e),this.clazz=t,this.type=i||"text"};(function(){this.MAX_RANGES=500,this.setRegexp=function(e){this.regExp+""!=e+""&&(this.regExp=e,this.cache=[])},this.update=function(e,t,i,s){if(this.regExp)for(var r=s.firstRow,a=s.lastRow,c=r;c<=a;c++){var l=this.cache[c];null==l&&((l=n.getMatchOffsets(i.getLine(c),this.regExp)).length>this.MAX_RANGES&&(l=l.slice(0,this.MAX_RANGES)),l=l.map((function(e){return new o(c,e.offset,c,e.offset+e.length)})),this.cache[c]=l.length?l:"");for(var h=l.length;h--;)t.drawSingleLineMarker(e,l[h].toScreenRange(i),this.clazz,s)}}}).call(s.prototype),t.SearchHighlight=s})),ace.define("ace/edit_session/fold_line",["require","exports","module","ace/range"],(function(e,t,i){"use strict";var n=e("../range").Range;function o(e,t){this.foldData=e,Array.isArray(t)?this.folds=t:t=this.folds=[t];var i=t[t.length-1];this.range=new n(t[0].start.row,t[0].start.column,i.end.row,i.end.column),this.start=this.range.start,this.end=this.range.end,this.folds.forEach((function(e){e.setFoldLine(this)}),this)}(function(){this.shiftRow=function(e){this.start.row+=e,this.end.row+=e,this.folds.forEach((function(t){t.start.row+=e,t.end.row+=e}))},this.addFold=function(e){if(e.sameRow){if(e.start.rowthis.endRow)throw new Error("Can't add a fold to this FoldLine as it has no connection");this.folds.push(e),this.folds.sort((function(e,t){return-e.range.compareEnd(t.start.row,t.start.column)})),this.range.compareEnd(e.start.row,e.start.column)>0?(this.end.row=e.end.row,this.end.column=e.end.column):this.range.compareStart(e.end.row,e.end.column)<0&&(this.start.row=e.start.row,this.start.column=e.start.column)}else if(e.start.row==this.end.row)this.folds.push(e),this.end.row=e.end.row,this.end.column=e.end.column;else{if(e.end.row!=this.start.row)throw new Error("Trying to add fold to FoldRow that doesn't have a matching row");this.folds.unshift(e),this.start.row=e.start.row,this.start.column=e.start.column}e.foldLine=this},this.containsRow=function(e){return e>=this.start.row&&e<=this.end.row},this.walk=function(e,t,i){var n,o,s=0,r=this.folds,a=!0;null==t&&(t=this.end.row,i=this.end.column);for(var c=0;c0)){var c=n(e,r.start);return 0===a?t&&0!==c?-s-2:s:c>0||0===c&&!t?s:-s-1}}return-s-1},this.add=function(e){var t=!e.isEmpty(),i=this.pointIndex(e.start,t);i<0&&(i=-i-1);var n=this.pointIndex(e.end,t,i);return n<0?n=-n-1:n++,this.ranges.splice(i,n-i,e)},this.addList=function(e){for(var t=[],i=e.length;i--;)t.push.apply(t,this.add(e[i]));return t},this.substractPoint=function(e){var t=this.pointIndex(e);if(t>=0)return this.ranges.splice(t,1)},this.merge=function(){for(var e,t=[],i=this.ranges,o=(i=i.sort((function(e,t){return n(e.start,t.start)})))[0],s=1;s=0},this.containsPoint=function(e){return this.pointIndex(e)>=0},this.rangeAtPoint=function(e){var t=this.pointIndex(e);if(t>=0)return this.ranges[t]},this.clipRows=function(e,t){var i=this.ranges;if(i[0].start.row>t||i[i.length-1].start.row=n)break}if("insert"==e.action)for(var c=o-n,l=-t.column+i.column;rn)break;if(h.start.row==n&&h.start.column>=t.column&&(h.start.column==t.column&&this.$bias<=0||(h.start.column+=l,h.start.row+=c)),h.end.row==n&&h.end.column>=t.column){if(h.end.column==t.column&&this.$bias<0)continue;h.end.column==t.column&&l>0&&rh.start.column&&h.end.column==s[r+1].start.column&&(h.end.column-=l),h.end.column+=l,h.end.row+=c}}else for(c=n-o,l=t.column-i.column;ro)break;h.end.rowt.column)&&(h.end.column=t.column,h.end.row=t.row):(h.end.column+=l,h.end.row+=c):h.end.row>o&&(h.end.row+=c),h.start.rowt.column)&&(h.start.column=t.column,h.start.row=t.row):(h.start.column+=l,h.start.row+=c):h.start.row>o&&(h.start.row+=c)}if(0!=c&&r=e)return o;if(o.end.row>e)return null}return null},this.getNextFoldLine=function(e,t){var i=this.$foldData,n=0;for(t&&(n=i.indexOf(t)),-1==n&&(n=0);n=e)return o}return null},this.getFoldedRowCount=function(e,t){for(var i=this.$foldData,n=t-e+1,o=0;o=t){a=e?n-=t-a:n=0);break}r>=e&&(n-=a>=e?r-a:r-e+1)}return n},this.$addFoldLine=function(e){return this.$foldData.push(e),this.$foldData.sort((function(e,t){return e.start.row-t.start.row})),e},this.addFold=function(e,t){var i,n=this.$foldData,r=!1;e instanceof s?i=e:(i=new s(t,e)).collapseChildren=t.collapseChildren,this.$clipRangeToDocument(i.range);var a=i.start.row,c=i.start.column,l=i.end.row,h=i.end.column,d=this.getFoldAt(a,c,1),u=this.getFoldAt(l,h,-1);if(d&&u==d)return d.addSubFold(i);d&&!d.range.isStart(a,c)&&this.removeFold(d),u&&!u.range.isEnd(l,h)&&this.removeFold(u);var f=this.getFoldsInRange(i.range);f.length>0&&(this.removeFolds(f),i.collapseChildren||f.forEach((function(e){i.addSubFold(e)})));for(var g=0;g0&&this.foldAll(e.start.row+1,e.end.row,e.collapseChildren-1),e.subFolds=[]},this.expandFolds=function(e){e.forEach((function(e){this.expandFold(e)}),this)},this.unfold=function(e,t){var i,o;if(null==e?(i=new n(0,0,this.getLength(),0),null==t&&(t=!0)):i="number"==typeof e?new n(e,0,e,this.getLine(e).length):"row"in e?n.fromPoints(e,e):e,o=this.getFoldsInRangeList(i),0!=t?this.removeFolds(o):this.expandFolds(o),o.length)return o},this.isRowFolded=function(e,t){return!!this.getFoldLine(e,t)},this.getRowFoldEnd=function(e,t){var i=this.getFoldLine(e,t);return i?i.end.row:e},this.getRowFoldStart=function(e,t){var i=this.getFoldLine(e,t);return i?i.start.row:e},this.getFoldDisplayLine=function(e,t,i,n,o){null==n&&(n=e.start.row),null==o&&(o=0),null==t&&(t=e.end.row),null==i&&(i=this.getLine(t).length);var s=this.doc,r="";return e.walk((function(e,t,i,a){if(!(th)break}while(s&&c.test(s.type));s=o.stepBackward()}else s=o.getCurrentToken();return l.end.row=o.getCurrentTokenRow(),l.end.column=o.getCurrentTokenColumn()+s.value.length-2,l}},this.foldAll=function(e,t,i,n){null==i&&(i=1e5);var o=this.foldWidgets;if(o){t=t||this.getLength();for(var s=e=e||0;s=e&&(s=r.end.row,r.collapseChildren=i,this.addFold("...",r))}}},this.foldToLevel=function(e){for(this.foldAll();e-- >0;)this.unfold(null,!1)},this.foldAllComments=function(){var e=this;this.foldAll(null,null,null,(function(t){for(var i=e.getTokens(t),n=0;n=0;){var s=i[o];if(null==s&&(s=i[o]=this.getFoldWidget(o)),"start"==s){var r=this.getFoldWidgetRange(o);if(n||(n=r),r&&r.end.row>=e)break}o--}return{range:-1!==o&&r,firstRange:n}},this.onFoldWidgetClick=function(e,t){var i={children:(t=t.domEvent).shiftKey,all:t.ctrlKey||t.metaKey,siblings:t.altKey};if(!this.$toggleFoldWidget(e,i)){var n=t.target||t.srcElement;n&&/ace_fold-widget/.test(n.className)&&(n.className+=" ace_invalid")}},this.$toggleFoldWidget=function(e,t){if(this.getFoldWidget){var i=this.getFoldWidget(e),n=this.getLine(e),o="end"===i?-1:1,s=this.getFoldAt(e,-1===o?0:n.length,o);if(s)return t.children||t.all?this.removeFold(s):this.expandFold(s),s;var r=this.getFoldWidgetRange(e,!0);if(r&&!r.isMultiLine()&&(s=this.getFoldAt(r.start.row,r.start.column,1))&&r.isEqual(s.range))return this.removeFold(s),s;if(t.siblings){var a=this.getParentFoldRangeData(e);if(a.range)var c=a.range.start.row+1,l=a.range.end.row;this.foldAll(c,l,t.all?1e4:0)}else t.children?(l=r?r.end.row:this.getLength(),this.foldAll(e+1,l,t.all?1e4:0)):r&&(t.all&&(r.collapseChildren=1e4),this.addFold("...",r));return r}},this.toggleFoldWidget=function(e){var t=this.selection.getCursor().row;t=this.getRowFoldStart(t);var i=this.$toggleFoldWidget(t,{});if(!i){var n=this.getParentFoldRangeData(t,!0);if(i=n.range||n.firstRange){t=i.start.row;var o=this.getFoldAt(t,this.getLine(t).length,1);o?this.removeFold(o):this.addFold("...",i)}}},this.updateFoldWidgets=function(e){var t=e.start.row,i=e.end.row-t;if(0===i)this.foldWidgets[t]=null;else if("remove"==e.action)this.foldWidgets.splice(t,i+1,null);else{var n=Array(i+1);n.unshift(t,1),this.foldWidgets.splice.apply(this.foldWidgets,n)}},this.tokenizerUpdateFoldWidgets=function(e){var t=e.data;t.first!=t.last&&this.foldWidgets.length>t.first&&this.foldWidgets.splice(t.first,this.foldWidgets.length)}}})),ace.define("ace/edit_session/bracket_match",["require","exports","module","ace/token_iterator","ace/range"],(function(e,t,i){"use strict";var n=e("../token_iterator").TokenIterator,o=e("../range").Range;t.BracketMatch=function(){this.findMatchingBracket=function(e,t){if(0==e.column)return null;var i=t||this.getLine(e.row).charAt(e.column-1);if(""==i)return null;var n=i.match(/([\(\[\{])|([\)\]\}])/);return n?n[1]?this.$findClosingBracket(n[1],e):this.$findOpeningBracket(n[2],e):null},this.getBracketRange=function(e){var t,i=this.getLine(e.row),n=!0,s=i.charAt(e.column-1),r=s&&s.match(/([\(\[\{])|([\)\]\}])/);if(r||(s=i.charAt(e.column),e={row:e.row,column:e.column+1},r=s&&s.match(/([\(\[\{])|([\)\]\}])/),n=!1),!r)return null;if(r[1]){if(!(a=this.$findClosingBracket(r[1],e)))return null;t=o.fromPoints(e,a),n||(t.end.column++,t.start.column--),t.cursor=t.end}else{var a;if(!(a=this.$findOpeningBracket(r[2],e)))return null;t=o.fromPoints(a,e),n||(t.start.column++,t.end.column--),t.cursor=t.start}return t},this.getMatchingBracketRanges=function(e){var t=this.getLine(e.row),i=t.charAt(e.column-1),n=i&&i.match(/([\(\[\{])|([\)\]\}])/);if(n||(i=t.charAt(e.column),e={row:e.row,column:e.column+1},n=i&&i.match(/([\(\[\{])|([\)\]\}])/)),!n)return null;var s=new o(e.row,e.column-1,e.row,e.column),r=n[1]?this.$findClosingBracket(n[1],e):this.$findOpeningBracket(n[2],e);return r?[s,new o(r.row,r.column,r.row,r.column+1)]:[s]},this.$brackets={")":"(","(":")","]":"[","[":"]","{":"}","}":"{","<":">",">":"<"},this.$findOpeningBracket=function(e,t,i){var o=this.$brackets[e],s=1,r=new n(this,t.row,t.column),a=r.getCurrentToken();if(a||(a=r.stepForward()),a){i||(i=new RegExp("(\\.?"+a.type.replace(".","\\.").replace("rparen",".paren").replace(/\b(?:end)\b/,"(?:start|begin|end)")+")+"));for(var c=t.column-r.getCurrentTokenColumn()-2,l=a.value;;){for(;c>=0;){var h=l.charAt(c);if(h==o){if(0==(s-=1))return{row:r.getCurrentTokenRow(),column:c+r.getCurrentTokenColumn()}}else h==e&&(s+=1);c-=1}do{a=r.stepBackward()}while(a&&!i.test(a.type));if(null==a)break;c=(l=a.value).length-1}return null}},this.$findClosingBracket=function(e,t,i){var o=this.$brackets[e],s=1,r=new n(this,t.row,t.column),a=r.getCurrentToken();if(a||(a=r.stepForward()),a){i||(i=new RegExp("(\\.?"+a.type.replace(".","\\.").replace("lparen",".paren").replace(/\b(?:start|begin)\b/,"(?:start|begin|end)")+")+"));for(var c=t.column-r.getCurrentTokenColumn();;){for(var l=a.value,h=l.length;ci&&(this.$docRowCache.splice(i,t),this.$screenRowCache.splice(i,t))},this.$getRowCacheIndex=function(e,t){for(var i=0,n=e.length-1;i<=n;){var o=i+n>>1,s=e[o];if(t>s)i=o+1;else{if(!(t=t);s++);return(i=n[s])?(i.index=s,i.start=o-i.value.length,i):null},this.setUndoManager=function(e){if(this.$undoManager=e,this.$informUndoManager&&this.$informUndoManager.cancel(),e){var t=this;e.addSession(this),this.$syncInformUndoManager=function(){t.$informUndoManager.cancel(),t.mergeUndoDeltas=!1},this.$informUndoManager=o.delayedCall(this.$syncInformUndoManager)}else this.$syncInformUndoManager=function(){}},this.markUndoGroup=function(){this.$syncInformUndoManager&&this.$syncInformUndoManager()},this.$defaultUndoManager={undo:function(){},redo:function(){},hasUndo:function(){},hasRedo:function(){},reset:function(){},add:function(){},addSelection:function(){},startNewGroup:function(){},addSession:function(){}},this.getUndoManager=function(){return this.$undoManager||this.$defaultUndoManager},this.getTabString=function(){return this.getUseSoftTabs()?o.stringRepeat(" ",this.getTabSize()):"\t"},this.setUseSoftTabs=function(e){this.setOption("useSoftTabs",e)},this.getUseSoftTabs=function(){return this.$useSoftTabs&&!this.$mode.$indentWithTabs},this.setTabSize=function(e){this.setOption("tabSize",e)},this.getTabSize=function(){return this.$tabSize},this.isTabStop=function(e){return this.$useSoftTabs&&e.column%this.$tabSize==0},this.setNavigateWithinSoftTabs=function(e){this.setOption("navigateWithinSoftTabs",e)},this.getNavigateWithinSoftTabs=function(){return this.$navigateWithinSoftTabs},this.$overwrite=!1,this.setOverwrite=function(e){this.setOption("overwrite",e)},this.getOverwrite=function(){return this.$overwrite},this.toggleOverwrite=function(){this.setOverwrite(!this.$overwrite)},this.addGutterDecoration=function(e,t){this.$decorations[e]||(this.$decorations[e]=""),this.$decorations[e]+=" "+t,this._signal("changeBreakpoint",{})},this.removeGutterDecoration=function(e,t){this.$decorations[e]=(this.$decorations[e]||"").replace(" "+t,""),this._signal("changeBreakpoint",{})},this.getBreakpoints=function(){return this.$breakpoints},this.setBreakpoints=function(e){this.$breakpoints=[];for(var t=0;t0&&(n=!!i.charAt(t-1).match(this.tokenRe)),n||(n=!!i.charAt(t).match(this.tokenRe)),n)var o=this.tokenRe;else if(/^\s+$/.test(i.slice(t-1,t+1)))o=/\s/;else o=this.nonTokenRe;var s=t;if(s>0){do{s--}while(s>=0&&i.charAt(s).match(o));s++}for(var r=t;re&&(e=t.screenWidth)})),this.lineWidgetWidth=e},this.$computeWidth=function(e){if(this.$modified||e){if(this.$modified=!1,this.$useWrapMode)return this.screenWidth=this.$wrapLimit;for(var t=this.doc.getAllLines(),i=this.$rowLengthCache,n=0,o=0,s=this.$foldData[o],r=s?s.start.row:1/0,a=t.length,c=0;cr){if((c=s.end.row+1)>=a)break;r=(s=this.$foldData[o++])?s.start.row:1/0}null==i[c]&&(i[c]=this.$getStringScreenWidth(t[c])[0]),i[c]>n&&(n=i[c])}this.screenWidth=n}},this.getLine=function(e){return this.doc.getLine(e)},this.getLines=function(e,t){return this.doc.getLines(e,t)},this.getLength=function(){return this.doc.getLength()},this.getTextRange=function(e){return this.doc.getTextRange(e||this.selection.getRange())},this.insert=function(e,t){return this.doc.insert(e,t)},this.remove=function(e){return this.doc.remove(e)},this.removeFullLines=function(e,t){return this.doc.removeFullLines(e,t)},this.undoChanges=function(e,t){if(e.length){this.$fromUndo=!0;for(var i=e.length-1;-1!=i;i--){var n=e[i];"insert"==n.action||"remove"==n.action?this.doc.revertDelta(n):n.folds&&this.addFolds(n.folds)}!t&&this.$undoSelect&&(e.selectionBefore?this.selection.fromJSON(e.selectionBefore):this.selection.setRange(this.$getUndoSelection(e,!0))),this.$fromUndo=!1}},this.redoChanges=function(e,t){if(e.length){this.$fromUndo=!0;for(var i=0;ie.end.column&&(s.start.column+=l),s.end.row==e.end.row&&s.end.column>e.end.column&&(s.end.column+=l)),r&&s.start.row>=e.end.row&&(s.start.row+=r,s.end.row+=r)}if(s.end=this.insert(s.start,n),o.length){var a=e.start,c=s.start,l=(r=c.row-a.row,c.column-a.column);this.addFolds(o.map((function(e){return(e=e.clone()).start.row==a.row&&(e.start.column+=l),e.end.row==a.row&&(e.end.column+=l),e.start.row+=r,e.end.row+=r,e})))}return s},this.indentRows=function(e,t,i){i=i.replace(/\t/g,this.getTabString());for(var n=e;n<=t;n++)this.doc.insertInLine({row:n,column:0},i)},this.outdentRows=function(e){for(var t=e.collapseRows(),i=new h(0,0,0,0),n=this.getTabSize(),o=t.start.row;o<=t.end.row;++o){var s=this.getLine(o);i.start.row=o,i.end.row=o;for(var r=0;r0){var o;if((o=this.getRowFoldEnd(t+i))>this.doc.getLength()-1)return 0;n=o-t}else{e=this.$clipRowToDocument(e);n=(t=this.$clipRowToDocument(t))-e+1}var s=new h(e,0,t,Number.MAX_VALUE),r=this.getFoldsInRange(s).map((function(e){return(e=e.clone()).start.row+=n,e.end.row+=n,e})),a=0==i?this.doc.getLines(e,t):this.doc.removeFullLines(e,t);return this.doc.insertFullLines(e+n,a),r.length&&this.addFolds(r),n},this.moveLinesUp=function(e,t){return this.$moveLines(e,t,-1)},this.moveLinesDown=function(e,t){return this.$moveLines(e,t,1)},this.duplicateLines=function(e,t){return this.$moveLines(e,t,0)},this.$clipRowToDocument=function(e){return Math.max(0,Math.min(e,this.doc.getLength()-1))},this.$clipColumnToRow=function(e,t){return t<0?0:Math.min(this.doc.getLine(e).length,t)},this.$clipPositionToDocument=function(e,t){if(t=Math.max(0,t),e<0)e=0,t=0;else{var i=this.doc.getLength();e>=i?(e=i-1,t=this.doc.getLine(i-1).length):t=Math.min(this.doc.getLine(e).length,t)}return{row:e,column:t}},this.$clipRangeToDocument=function(e){e.start.row<0?(e.start.row=0,e.start.column=0):e.start.column=this.$clipColumnToRow(e.start.row,e.start.column);var t=this.doc.getLength()-1;return e.end.row>t?(e.end.row=t,e.end.column=this.doc.getLine(t).length):e.end.column=this.$clipColumnToRow(e.end.row,e.end.column),e},this.$wrapLimit=80,this.$useWrapMode=!1,this.$wrapLimitRange={min:null,max:null},this.setUseWrapMode=function(e){if(e!=this.$useWrapMode){if(this.$useWrapMode=e,this.$modified=!0,this.$resetRowCache(0),e){var t=this.getLength();this.$wrapData=Array(t),this.$updateWrapData(0,t-1)}this._signal("changeWrapMode")}},this.getUseWrapMode=function(){return this.$useWrapMode},this.setWrapLimitRange=function(e,t){this.$wrapLimitRange.min===e&&this.$wrapLimitRange.max===t||(this.$wrapLimitRange={min:e,max:t},this.$modified=!0,this.$bidiHandler.markAsDirty(),this.$useWrapMode&&this._signal("changeWrapMode"))},this.adjustWrapLimit=function(e,t){var i=this.$wrapLimitRange;i.max<0&&(i={min:t,max:t});var n=this.$constrainWrapLimit(e,i.min,i.max);return n!=this.$wrapLimit&&n>1&&(this.$wrapLimit=n,this.$modified=!0,this.$useWrapMode&&(this.$updateWrapData(0,this.getLength()-1),this.$resetRowCache(0),this._signal("changeWrapLimit")),!0)},this.$constrainWrapLimit=function(e,t,i){return t&&(e=Math.max(t,e)),i&&(e=Math.min(i,e)),e},this.getWrapLimit=function(){return this.$wrapLimit},this.setWrapLimit=function(e){this.setWrapLimitRange(e,e)},this.getWrapLimitRange=function(){return{min:this.$wrapLimitRange.min,max:this.$wrapLimitRange.max}},this.$updateInternalDataOnChange=function(e){var t=this.$useWrapMode,i=e.action,n=e.start,o=e.end,s=n.row,r=o.row,a=r-s,c=null;if(this.$updating=!0,0!=a)if("remove"===i){this[t?"$wrapData":"$rowLengthCache"].splice(s,a);var l=this.$foldData;c=this.getFoldsInRange(e),this.removeFolds(c);var h=0;if(p=this.getFoldLine(o.row)){p.addRemoveChars(o.row,o.column,n.column-o.column),p.shiftRow(-a);var d=this.getFoldLine(s);d&&d!==p&&(d.merge(p),p=d),h=l.indexOf(p)+1}for(;h=o.row&&p.shiftRow(-a)}r=s}else{var u=Array(a);u.unshift(s,0);var f=t?this.$wrapData:this.$rowLengthCache;f.splice.apply(f,u);l=this.$foldData,h=0;if(p=this.getFoldLine(s)){var g=p.range.compareInside(n.row,n.column);0==g?(p=p.split(n.row,n.column))&&(p.shiftRow(a),p.addRemoveChars(r,0,o.column-n.column)):-1==g&&(p.addRemoveChars(s,0,o.column-n.column),p.shiftRow(a)),h=l.indexOf(p)+1}for(;h=s&&p.shiftRow(a)}}else a=Math.abs(e.start.column-e.end.column),"remove"===i&&(c=this.getFoldsInRange(e),this.removeFolds(c),a=-a),(p=this.getFoldLine(s))&&p.addRemoveChars(s,n.column,a);return t&&this.$wrapData.length!=this.doc.getLength()&&console.error("doc.getLength() and $wrapData.length have to be the same!"),this.$updating=!1,t?this.$updateWrapData(s,r):this.$updateRowLengthCache(s,r),c},this.$updateRowLengthCache=function(e,t,i){this.$rowLengthCache[e]=null,this.$rowLengthCache[t]=null},this.$updateWrapData=function(i,n){var o,s,r=this.doc.getAllLines(),a=this.getTabSize(),c=this.$wrapData,l=this.$wrapLimit,h=i;for(n=Math.min(n,r.length-1);h<=n;)(s=this.getFoldLine(h,s))?(o=[],s.walk(function(i,n,s,a){var c;if(null!=i){(c=this.$getDisplayTokens(i,o.length))[0]=e;for(var l=1;l=4352&&e<=4447||e>=4515&&e<=4519||e>=4602&&e<=4607||e>=9001&&e<=9002||e>=11904&&e<=11929||e>=11931&&e<=12019||e>=12032&&e<=12245||e>=12272&&e<=12283||e>=12288&&e<=12350||e>=12353&&e<=12438||e>=12441&&e<=12543||e>=12549&&e<=12589||e>=12593&&e<=12686||e>=12688&&e<=12730||e>=12736&&e<=12771||e>=12784&&e<=12830||e>=12832&&e<=12871||e>=12880&&e<=13054||e>=13056&&e<=19903||e>=19968&&e<=42124||e>=42128&&e<=42182||e>=43360&&e<=43388||e>=44032&&e<=55203||e>=55216&&e<=55238||e>=55243&&e<=55291||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65106||e>=65108&&e<=65126||e>=65128&&e<=65131||e>=65281&&e<=65376||e>=65504&&e<=65510)}this.$computeWrapSplits=function(i,n,o){if(0==i.length)return[];var s=[],r=i.length,a=0,c=0,l=this.$wrapAsCode,h=this.$indentedSoftWrap,d=n<=Math.max(2*o,8)||!1===h?0:Math.floor(n/2);function u(e){for(var t=e-a,n=a;nn-f;){var g=a+n-f;if(i[g-1]>=10&&i[g]>=10)u(g);else if(i[g]!=e&&i[g]!=t){for(var p=Math.max(g-(n-(n>>2)),a-1);g>p&&i[g]p&&i[g]p&&9==i[g];)g--}else for(;g>p&&i[g]<10;)g--;g>p?u(++g):(2==i[g=a+n]&&g--,u(g-f))}else{for(;g!=a-1&&i[g]!=e;g--);if(g>a){u(g);continue}for(g=a+n;g39&&r<48||r>57&&r<64?o.push(9):r>=4352&&i(r)?o.push(1,2):o.push(1)}return o},this.$getStringScreenWidth=function(e,t,n){if(0==t)return[0,0];var o,s;for(null==t&&(t=1/0),n=n||0,s=0;s=4352&&i(o)?n+=2:n+=1,!(n>t));s++);return[n,s]},this.lineWidgets=null,this.getRowLength=function(e){var t=1;return this.lineWidgets&&(t+=this.lineWidgets[e]&&this.lineWidgets[e].rowCount||0),this.$useWrapMode&&this.$wrapData[e]?this.$wrapData[e].length+t:t},this.getRowLineCount=function(e){return this.$useWrapMode&&this.$wrapData[e]?this.$wrapData[e].length+1:1},this.getRowWrapIndent=function(e){if(this.$useWrapMode){var t=this.screenToDocumentPosition(e,Number.MAX_VALUE),i=this.$wrapData[t.row];return i.length&&i[0]=0){a=l[h],s=this.$docRowCache[h];var u=e>l[d-1]}else u=!d;for(var f=this.getLength()-1,g=this.getNextFoldLine(s),p=g?g.start.row:1/0;a<=e&&!(a+(c=this.getRowLength(s))>e||s>=f);)a+=c,++s>p&&(s=g.end.row+1,p=(g=this.getNextFoldLine(s,g))?g.start.row:1/0),u&&(this.$docRowCache.push(s),this.$screenRowCache.push(a));if(g&&g.start.row<=s)n=this.getFoldDisplayLine(g),s=g.start.row;else{if(a+c<=e||s>f)return{row:f,column:this.getLine(f).length};n=this.getLine(s),g=null}var m=0,b=Math.floor(e-a);if(this.$useWrapMode){var v=this.$wrapData[s];v&&(o=v[b],b>0&&v.length&&(m=v.indent,r=v[b-1]||v[v.length-1],n=n.substring(r)))}return void 0!==i&&this.$bidiHandler.isBidiRow(a+b,s,b)&&(t=this.$bidiHandler.offsetToCol(i)),r+=this.$getStringScreenWidth(n,t-m)[1],this.$useWrapMode&&r>=o&&(r=o-1),g?g.idxToPosition(r):{row:s,column:r}},this.documentToScreenPosition=function(e,t){if(void 0===t)var i=this.$clipPositionToDocument(e.row,e.column);else i=this.$clipPositionToDocument(e,t);e=i.row,t=i.column;var n,o=0,s=null;(n=this.getFoldAt(e,t,1))&&(e=n.start.row,t=n.start.column);var r,a=0,c=this.$docRowCache,l=this.$getRowCacheIndex(c,e),h=c.length;if(h&&l>=0){a=c[l],o=this.$screenRowCache[l];var d=e>c[h-1]}else d=!h;for(var u=this.getNextFoldLine(a),f=u?u.start.row:1/0;a=f){if((r=u.end.row+1)>e)break;f=(u=this.getNextFoldLine(r,u))?u.start.row:1/0}else r=a+1;o+=this.getRowLength(a),a=r,d&&(this.$docRowCache.push(a),this.$screenRowCache.push(o))}var g="";u&&a>=f?(g=this.getFoldDisplayLine(u,e,t),s=u.start.row):(g=this.getLine(e).substring(0,t),s=e);var p=0;if(this.$useWrapMode){var m=this.$wrapData[s];if(m){for(var b=0;g.length>=m[b];)o++,b++;g=g.substring(m[b-1]||0,g.length),p=b>0?m.indent:0}}return this.lineWidgets&&this.lineWidgets[a]&&this.lineWidgets[a].rowsAbove&&(o+=this.lineWidgets[a].rowsAbove),{row:o,column:p+this.$getStringScreenWidth(g)[0]}},this.documentToScreenColumn=function(e,t){return this.documentToScreenPosition(e,t).column},this.documentToScreenRow=function(e,t){return this.documentToScreenPosition(e,t).row},this.getScreenLength=function(){var e=0,t=null;if(this.$useWrapMode)for(var i=this.$wrapData.length,n=0,o=(a=0,(t=this.$foldData[a++])?t.start.row:1/0);no&&(n=t.end.row+1,o=(t=this.$foldData[a++])?t.start.row:1/0)}else{e=this.getLength();for(var r=this.$foldData,a=0;ai);s++);return[n,s]})},this.destroy=function(){this.bgTokenizer&&(this.bgTokenizer.setDocument(null),this.bgTokenizer=null),this.$stopWorker(),this.removeAllListeners(),this.selection.detach()},this.isFullWidth=i}.call(g.prototype),e("./edit_session/folding").Folding.call(g.prototype),e("./edit_session/bracket_match").BracketMatch.call(g.prototype),r.defineOptions(g.prototype,"session",{wrap:{set:function(e){if(e&&"off"!=e?"free"==e?e=!0:"printMargin"==e?e=-1:"string"==typeof e&&(e=parseInt(e,10)||!1):e=!1,this.$wrap!=e)if(this.$wrap=e,e){var t="number"==typeof e?e:null;this.setWrapLimitRange(t,t),this.setUseWrapMode(!0)}else this.setUseWrapMode(!1)},get:function(){return this.getUseWrapMode()?-1==this.$wrap?"printMargin":this.getWrapLimitRange().min?this.$wrap:"free":"off"},handlesSet:!0},wrapMethod:{set:function(e){(e="auto"==e?"text"!=this.$mode.type:"text"!=e)!=this.$wrapAsCode&&(this.$wrapAsCode=e,this.$useWrapMode&&(this.$useWrapMode=!1,this.setUseWrapMode(!0)))},initialValue:"auto"},indentedSoftWrap:{set:function(){this.$useWrapMode&&(this.$useWrapMode=!1,this.setUseWrapMode(!0))},initialValue:!0},firstLineNumber:{set:function(){this._signal("changeBreakpoint")},initialValue:1},useWorker:{set:function(e){this.$useWorker=e,this.$stopWorker(),e&&this.$startWorker()},initialValue:!0},useSoftTabs:{initialValue:!0},tabSize:{set:function(e){(e=parseInt(e))>0&&this.$tabSize!==e&&(this.$modified=!0,this.$rowLengthCache=[],this.$tabSize=e,this._signal("changeTabSize"))},initialValue:4,handlesSet:!0},navigateWithinSoftTabs:{initialValue:!1},foldStyle:{set:function(e){this.setFoldStyle(e)},handlesSet:!0},overwrite:{set:function(e){this._signal("changeOverwrite")},initialValue:!1},newLineMode:{set:function(e){this.doc.setNewLineMode(e)},get:function(){return this.doc.getNewLineMode()},handlesSet:!0},mode:{set:function(e){this.setMode(e)},get:function(){return this.$modeId},handlesSet:!0}}),t.EditSession=g})),ace.define("ace/search",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/range"],(function(e,t,i){"use strict";var n=e("./lib/lang"),o=e("./lib/oop"),s=e("./range").Range,r=function(){this.$options={}};(function(){this.set=function(e){return o.mixin(this.$options,e),this},this.getOptions=function(){return n.copyObject(this.$options)},this.setOptions=function(e){this.$options=e},this.find=function(e){var t=this.$options,i=this.$matchIterator(e,t);if(!i)return!1;var n=null;return i.forEach((function(e,i,o,r){return n=new s(e,i,o,r),!(i==r&&t.start&&t.start.start&&0!=t.skipCurrent&&n.isEqual(t.start))||(n=null,!1)})),n},this.findAll=function(e){var t=this.$options;if(!t.needle)return[];this.$assembleRegExp(t);var i=t.range,o=i?e.getLines(i.start.row,i.end.row):e.doc.getAllLines(),r=[],a=t.re;if(t.$isMultiLine){var c,l=a.length,h=o.length-l;e:for(var d=a.offset||0;d<=h;d++){for(var u=0;up||(r.push(c=new s(d,p,d+l-1,m)),l>2&&(d=d+l-2))}}else for(var b=0;by&&r[u].end.row==i.end.row;)u--;for(r=r.slice(b,u+1),b=0,u=r.length;b=a;i--)if(d(i,Number.MAX_VALUE,e))return;if(0!=t.wrap)for(i=c,a=r.row;i>=a;i--)if(d(i,Number.MAX_VALUE,e))return}};else l=function(e){var i=r.row;if(!d(i,r.column,e)){for(i+=1;i<=c;i++)if(d(i,0,e))return;if(0!=t.wrap)for(i=a,c=r.row;i<=c;i++)if(d(i,0,e))return}};if(t.$isMultiLine)var h=i.length,d=function(t,o,s){var r=n?t-h+1:t;if(!(r<0)){var a=e.getLine(r),c=a.search(i[0]);if(!(!n&&co))return!!s(r,c,r+h-1,d)||void 0}}};else if(n)d=function(t,n,o){var s,r=e.getLine(t),a=[],c=0;for(i.lastIndex=0;s=i.exec(r);){var l=s[0].length;if(c=s.index,!l){if(c>=r.length)break;i.lastIndex=c+=1}if(s.index+l>n)break;a.push(s.index,l)}for(var h=a.length-1;h>=0;h-=2){var d=a[h-1];if(o(t,d,t,d+(l=a[h])))return!0}};else d=function(t,n,o){var s,r,a=e.getLine(t);for(i.lastIndex=n;r=i.exec(a);){var c=r[0].length;if(o(t,s=r.index,t,s+c))return!0;if(!c&&(i.lastIndex=s+=1,s>=a.length))return!1}};return{forEach:l}}}).call(r.prototype),t.Search=r})),ace.define("ace/keyboard/hash_handler",["require","exports","module","ace/lib/keys","ace/lib/useragent"],(function(e,t,i){"use strict";var n=e("../lib/keys"),o=e("../lib/useragent"),s=n.KEY_MODS;function r(e,t){this.platform=t||(o.isMac?"mac":"win"),this.commands={},this.commandKeyBinding={},this.addCommands(e),this.$singleCommand=!0}function a(e,t){r.call(this,e,t),this.$singleCommand=!1}a.prototype=r.prototype,function(){function e(e){return"object"==typeof e&&e.bindKey&&e.bindKey.position||(e.isDefault?-100:0)}this.addCommand=function(e){this.commands[e.name]&&this.removeCommand(e),this.commands[e.name]=e,e.bindKey&&this._buildKeyHash(e)},this.removeCommand=function(e,t){var i=e&&("string"==typeof e?e:e.name);e=this.commands[i],t||delete this.commands[i];var n=this.commandKeyBinding;for(var o in n){var s=n[o];if(s==e)delete n[o];else if(Array.isArray(s)){var r=s.indexOf(e);-1!=r&&(s.splice(r,1),1==s.length&&(n[o]=s[0]))}}},this.bindKey=function(e,t,i){if("object"==typeof e&&e&&(null==i&&(i=e.position),e=e[this.platform]),e)return"function"==typeof t?this.addCommand({exec:t,bindKey:e,name:t.name||e}):void e.split("|").forEach((function(e){var n="";if(-1!=e.indexOf(" ")){var o=e.split(/\s+/);e=o.pop(),o.forEach((function(e){var t=this.parseKeys(e),i=s[t.hashId]+t.key;n+=(n?" ":"")+i,this._addCommandToBinding(n,"chainKeys")}),this),n+=" "}var r=this.parseKeys(e),a=s[r.hashId]+r.key;this._addCommandToBinding(n+a,t,i)}),this)},this._addCommandToBinding=function(t,i,n){var o,s=this.commandKeyBinding;if(i)if(!s[t]||this.$singleCommand)s[t]=i;else{Array.isArray(s[t])?-1!=(o=s[t].indexOf(i))&&s[t].splice(o,1):s[t]=[s[t]],"number"!=typeof n&&(n=e(i));var r=s[t];for(o=0;on)break}r.splice(o,0,i)}else delete s[t]},this.addCommands=function(e){e&&Object.keys(e).forEach((function(t){var i=e[t];if(i){if("string"==typeof i)return this.bindKey(i,t);"function"==typeof i&&(i={exec:i}),"object"==typeof i&&(i.name||(i.name=t),this.addCommand(i))}}),this)},this.removeCommands=function(e){Object.keys(e).forEach((function(t){this.removeCommand(e[t])}),this)},this.bindKeys=function(e){Object.keys(e).forEach((function(t){this.bindKey(t,e[t])}),this)},this._buildKeyHash=function(e){this.bindKey(e.bindKey,e)},this.parseKeys=function(e){var t=e.toLowerCase().split(/[\-\+]([\-\+])?/).filter((function(e){return e})),i=t.pop(),o=n[i];if(n.FUNCTION_KEYS[o])i=n.FUNCTION_KEYS[o].toLowerCase();else{if(!t.length)return{key:i,hashId:-1};if(1==t.length&&"shift"==t[0])return{key:i.toUpperCase(),hashId:-1}}for(var s=0,r=t.length;r--;){var a=n.KEY_MODS[t[r]];if(null==a)return"undefined"!=typeof console&&console.error("invalid modifier "+t[r]+" in "+e),!1;s|=a}return{key:i,hashId:s}},this.findKeyCommand=function(e,t){var i=s[e]+t;return this.commandKeyBinding[i]},this.handleKeyboard=function(e,t,i,n){if(!(n<0)){var o=s[t]+i,r=this.commandKeyBinding[o];return e.$keyChain&&(e.$keyChain+=" "+o,r=this.commandKeyBinding[e.$keyChain]||r),!r||"chainKeys"!=r&&"chainKeys"!=r[r.length-1]?(e.$keyChain&&(t&&4!=t||1!=i.length?(-1==t||n>0)&&(e.$keyChain=""):e.$keyChain=e.$keyChain.slice(0,-o.length-1)),{command:r}):(e.$keyChain=e.$keyChain||o,{command:"null"})}},this.getStatusText=function(e,t){return t.$keyChain||""}}.call(r.prototype),t.HashHandler=r,t.MultiHashHandler=a})),ace.define("ace/commands/command_manager",["require","exports","module","ace/lib/oop","ace/keyboard/hash_handler","ace/lib/event_emitter"],(function(e,t,i){"use strict";var n=e("../lib/oop"),o=e("../keyboard/hash_handler").MultiHashHandler,s=e("../lib/event_emitter").EventEmitter,r=function(e,t){o.call(this,t,e),this.byName=this.commands,this.setDefaultHandler("exec",(function(e){return e.command.exec(e.editor,e.args||{})}))};n.inherits(r,o),function(){n.implement(this,s),this.exec=function(e,t,i){if(Array.isArray(e)){for(var n=e.length;n--;)if(this.exec(e[n],t,i))return!0;return!1}if("string"==typeof e&&(e=this.commands[e]),!e)return!1;if(t&&t.$readOnly&&!e.readOnly)return!1;if(0!=this.$checkCommandState&&e.isAvailable&&!e.isAvailable(t))return!1;var o={editor:t,command:e,args:i};return o.returnValue=this._emit("exec",o),this._signal("afterExec",o),!1!==o.returnValue},this.toggleRecording=function(e){if(!this.$inReplay)return e&&e._emit("changeStatus"),this.recording?(this.macro.pop(),this.off("exec",this.$addCommandToMacro),this.macro.length||(this.macro=this.oldMacro),this.recording=!1):(this.$addCommandToMacro||(this.$addCommandToMacro=function(e){this.macro.push([e.command,e.args])}.bind(this)),this.oldMacro=this.macro,this.macro=[],this.on("exec",this.$addCommandToMacro),this.recording=!0)},this.replay=function(e){if(!this.$inReplay&&this.macro){if(this.recording)return this.toggleRecording(e);try{this.$inReplay=!0,this.macro.forEach((function(t){"string"==typeof t?this.exec(t,e):this.exec(t[0],e,t[1])}),this)}finally{this.$inReplay=!1}}},this.trimMacro=function(e){return e.map((function(e){return"string"!=typeof e[0]&&(e[0]=e[0].name),e[1]||(e=e[0]),e}))}}.call(r.prototype),t.CommandManager=r})),ace.define("ace/commands/default_commands",["require","exports","module","ace/lib/lang","ace/config","ace/range"],(function(e,t,i){"use strict";var n=e("../lib/lang"),o=e("../config"),s=e("../range").Range;function r(e,t){return{win:e,mac:t}}t.commands=[{name:"showSettingsMenu",bindKey:r("Ctrl-,","Command-,"),exec:function(e){o.loadModule("ace/ext/settings_menu",(function(t){t.init(e),e.showSettingsMenu()}))},readOnly:!0},{name:"goToNextError",bindKey:r("Alt-E","F4"),exec:function(e){o.loadModule("./ext/error_marker",(function(t){t.showErrorMarker(e,1)}))},scrollIntoView:"animate",readOnly:!0},{name:"goToPreviousError",bindKey:r("Alt-Shift-E","Shift-F4"),exec:function(e){o.loadModule("./ext/error_marker",(function(t){t.showErrorMarker(e,-1)}))},scrollIntoView:"animate",readOnly:!0},{name:"selectall",description:"Select all",bindKey:r("Ctrl-A","Command-A"),exec:function(e){e.selectAll()},readOnly:!0},{name:"centerselection",description:"Center selection",bindKey:r(null,"Ctrl-L"),exec:function(e){e.centerSelection()},readOnly:!0},{name:"gotoline",description:"Go to line...",bindKey:r("Ctrl-L","Command-L"),exec:function(e,t){"number"!=typeof t||isNaN(t)||e.gotoLine(t),e.prompt({$type:"gotoLine"})},readOnly:!0},{name:"fold",bindKey:r("Alt-L|Ctrl-F1","Command-Alt-L|Command-F1"),exec:function(e){e.session.toggleFold(!1)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"unfold",bindKey:r("Alt-Shift-L|Ctrl-Shift-F1","Command-Alt-Shift-L|Command-Shift-F1"),exec:function(e){e.session.toggleFold(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleFoldWidget",bindKey:r("F2","F2"),exec:function(e){e.session.toggleFoldWidget()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleParentFoldWidget",bindKey:r("Alt-F2","Alt-F2"),exec:function(e){e.session.toggleFoldWidget(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"foldall",description:"Fold all",bindKey:r(null,"Ctrl-Command-Option-0"),exec:function(e){e.session.foldAll()},scrollIntoView:"center",readOnly:!0},{name:"foldAllComments",description:"Fold all comments",bindKey:r(null,"Ctrl-Command-Option-0"),exec:function(e){e.session.foldAllComments()},scrollIntoView:"center",readOnly:!0},{name:"foldOther",description:"Fold other",bindKey:r("Alt-0","Command-Option-0"),exec:function(e){e.session.foldAll(),e.session.unfold(e.selection.getAllRanges())},scrollIntoView:"center",readOnly:!0},{name:"unfoldall",description:"Unfold all",bindKey:r("Alt-Shift-0","Command-Option-Shift-0"),exec:function(e){e.session.unfold()},scrollIntoView:"center",readOnly:!0},{name:"findnext",description:"Find next",bindKey:r("Ctrl-K","Command-G"),exec:function(e){e.findNext()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"findprevious",description:"Find previous",bindKey:r("Ctrl-Shift-K","Command-Shift-G"),exec:function(e){e.findPrevious()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"selectOrFindNext",description:"Select or find next",bindKey:r("Alt-K","Ctrl-G"),exec:function(e){e.selection.isEmpty()?e.selection.selectWord():e.findNext()},readOnly:!0},{name:"selectOrFindPrevious",description:"Select or find previous",bindKey:r("Alt-Shift-K","Ctrl-Shift-G"),exec:function(e){e.selection.isEmpty()?e.selection.selectWord():e.findPrevious()},readOnly:!0},{name:"find",description:"Find",bindKey:r("Ctrl-F","Command-F"),exec:function(e){o.loadModule("ace/ext/searchbox",(function(t){t.Search(e)}))},readOnly:!0},{name:"overwrite",description:"Overwrite",bindKey:"Insert",exec:function(e){e.toggleOverwrite()},readOnly:!0},{name:"selecttostart",description:"Select to start",bindKey:r("Ctrl-Shift-Home","Command-Shift-Home|Command-Shift-Up"),exec:function(e){e.getSelection().selectFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotostart",description:"Go to start",bindKey:r("Ctrl-Home","Command-Home|Command-Up"),exec:function(e){e.navigateFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectup",description:"Select up",bindKey:r("Shift-Up","Shift-Up|Ctrl-Shift-P"),exec:function(e){e.getSelection().selectUp()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golineup",description:"Go line up",bindKey:r("Up","Up|Ctrl-P"),exec:function(e,t){e.navigateUp(t.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttoend",description:"Select to end",bindKey:r("Ctrl-Shift-End","Command-Shift-End|Command-Shift-Down"),exec:function(e){e.getSelection().selectFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotoend",description:"Go to end",bindKey:r("Ctrl-End","Command-End|Command-Down"),exec:function(e){e.navigateFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectdown",description:"Select down",bindKey:r("Shift-Down","Shift-Down|Ctrl-Shift-N"),exec:function(e){e.getSelection().selectDown()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golinedown",description:"Go line down",bindKey:r("Down","Down|Ctrl-N"),exec:function(e,t){e.navigateDown(t.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordleft",description:"Select word left",bindKey:r("Ctrl-Shift-Left","Option-Shift-Left"),exec:function(e){e.getSelection().selectWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordleft",description:"Go to word left",bindKey:r("Ctrl-Left","Option-Left"),exec:function(e){e.navigateWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolinestart",description:"Select to line start",bindKey:r("Alt-Shift-Left","Command-Shift-Left|Ctrl-Shift-A"),exec:function(e){e.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolinestart",description:"Go to line start",bindKey:r("Alt-Left|Home","Command-Left|Home|Ctrl-A"),exec:function(e){e.navigateLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectleft",description:"Select left",bindKey:r("Shift-Left","Shift-Left|Ctrl-Shift-B"),exec:function(e){e.getSelection().selectLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoleft",description:"Go to left",bindKey:r("Left","Left|Ctrl-B"),exec:function(e,t){e.navigateLeft(t.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordright",description:"Select word right",bindKey:r("Ctrl-Shift-Right","Option-Shift-Right"),exec:function(e){e.getSelection().selectWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordright",description:"Go to word right",bindKey:r("Ctrl-Right","Option-Right"),exec:function(e){e.navigateWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolineend",description:"Select to line end",bindKey:r("Alt-Shift-Right","Command-Shift-Right|Shift-End|Ctrl-Shift-E"),exec:function(e){e.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolineend",description:"Go to line end",bindKey:r("Alt-Right|End","Command-Right|End|Ctrl-E"),exec:function(e){e.navigateLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectright",description:"Select right",bindKey:r("Shift-Right","Shift-Right"),exec:function(e){e.getSelection().selectRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoright",description:"Go to right",bindKey:r("Right","Right|Ctrl-F"),exec:function(e,t){e.navigateRight(t.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectpagedown",description:"Select page down",bindKey:"Shift-PageDown",exec:function(e){e.selectPageDown()},readOnly:!0},{name:"pagedown",description:"Page down",bindKey:r(null,"Option-PageDown"),exec:function(e){e.scrollPageDown()},readOnly:!0},{name:"gotopagedown",description:"Go to page down",bindKey:r("PageDown","PageDown|Ctrl-V"),exec:function(e){e.gotoPageDown()},readOnly:!0},{name:"selectpageup",description:"Select page up",bindKey:"Shift-PageUp",exec:function(e){e.selectPageUp()},readOnly:!0},{name:"pageup",description:"Page up",bindKey:r(null,"Option-PageUp"),exec:function(e){e.scrollPageUp()},readOnly:!0},{name:"gotopageup",description:"Go to page up",bindKey:"PageUp",exec:function(e){e.gotoPageUp()},readOnly:!0},{name:"scrollup",description:"Scroll up",bindKey:r("Ctrl-Up",null),exec:function(e){e.renderer.scrollBy(0,-2*e.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"scrolldown",description:"Scroll down",bindKey:r("Ctrl-Down",null),exec:function(e){e.renderer.scrollBy(0,2*e.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"selectlinestart",description:"Select line start",bindKey:"Shift-Home",exec:function(e){e.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectlineend",description:"Select line end",bindKey:"Shift-End",exec:function(e){e.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"togglerecording",description:"Toggle recording",bindKey:r("Ctrl-Alt-E","Command-Option-E"),exec:function(e){e.commands.toggleRecording(e)},readOnly:!0},{name:"replaymacro",description:"Replay macro",bindKey:r("Ctrl-Shift-E","Command-Shift-E"),exec:function(e){e.commands.replay(e)},readOnly:!0},{name:"jumptomatching",description:"Jump to matching",bindKey:r("Ctrl-\\|Ctrl-P","Command-\\"),exec:function(e){e.jumpToMatching()},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"selecttomatching",description:"Select to matching",bindKey:r("Ctrl-Shift-\\|Ctrl-Shift-P","Command-Shift-\\"),exec:function(e){e.jumpToMatching(!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"expandToMatching",description:"Expand to matching",bindKey:r("Ctrl-Shift-M","Ctrl-Shift-M"),exec:function(e){e.jumpToMatching(!0,!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"passKeysToBrowser",description:"Pass keys to browser",bindKey:r(null,null),exec:function(){},passEvent:!0,readOnly:!0},{name:"copy",description:"Copy",exec:function(e){},readOnly:!0},{name:"cut",description:"Cut",exec:function(e){var t=e.$copyWithEmptySelection&&e.selection.isEmpty()?e.selection.getLineRange():e.selection.getRange();e._emit("cut",t),t.isEmpty()||e.session.remove(t),e.clearSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"paste",description:"Paste",exec:function(e,t){e.$handlePaste(t)},scrollIntoView:"cursor"},{name:"removeline",description:"Remove line",bindKey:r("Ctrl-D","Command-D"),exec:function(e){e.removeLines()},scrollIntoView:"cursor",multiSelectAction:"forEachLine"},{name:"duplicateSelection",description:"Duplicate selection",bindKey:r("Ctrl-Shift-D","Command-Shift-D"),exec:function(e){e.duplicateSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"sortlines",description:"Sort lines",bindKey:r("Ctrl-Alt-S","Command-Alt-S"),exec:function(e){e.sortLines()},scrollIntoView:"selection",multiSelectAction:"forEachLine"},{name:"togglecomment",description:"Toggle comment",bindKey:r("Ctrl-/","Command-/"),exec:function(e){e.toggleCommentLines()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"toggleBlockComment",description:"Toggle block comment",bindKey:r("Ctrl-Shift-/","Command-Shift-/"),exec:function(e){e.toggleBlockComment()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"modifyNumberUp",description:"Modify number up",bindKey:r("Ctrl-Shift-Up","Alt-Shift-Up"),exec:function(e){e.modifyNumber(1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"modifyNumberDown",description:"Modify number down",bindKey:r("Ctrl-Shift-Down","Alt-Shift-Down"),exec:function(e){e.modifyNumber(-1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"replace",description:"Replace",bindKey:r("Ctrl-H","Command-Option-F"),exec:function(e){o.loadModule("ace/ext/searchbox",(function(t){t.Search(e,!0)}))}},{name:"undo",description:"Undo",bindKey:r("Ctrl-Z","Command-Z"),exec:function(e){e.undo()}},{name:"redo",description:"Redo",bindKey:r("Ctrl-Shift-Z|Ctrl-Y","Command-Shift-Z|Command-Y"),exec:function(e){e.redo()}},{name:"copylinesup",description:"Copy lines up",bindKey:r("Alt-Shift-Up","Command-Option-Up"),exec:function(e){e.copyLinesUp()},scrollIntoView:"cursor"},{name:"movelinesup",description:"Move lines up",bindKey:r("Alt-Up","Option-Up"),exec:function(e){e.moveLinesUp()},scrollIntoView:"cursor"},{name:"copylinesdown",description:"Copy lines down",bindKey:r("Alt-Shift-Down","Command-Option-Down"),exec:function(e){e.copyLinesDown()},scrollIntoView:"cursor"},{name:"movelinesdown",description:"Move lines down",bindKey:r("Alt-Down","Option-Down"),exec:function(e){e.moveLinesDown()},scrollIntoView:"cursor"},{name:"del",description:"Delete",bindKey:r("Delete","Delete|Ctrl-D|Shift-Delete"),exec:function(e){e.remove("right")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"backspace",description:"Backspace",bindKey:r("Shift-Backspace|Backspace","Ctrl-Backspace|Shift-Backspace|Backspace|Ctrl-H"),exec:function(e){e.remove("left")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"cut_or_delete",description:"Cut or delete",bindKey:r("Shift-Delete",null),exec:function(e){if(!e.selection.isEmpty())return!1;e.remove("left")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestart",description:"Remove to line start",bindKey:r("Alt-Backspace","Command-Backspace"),exec:function(e){e.removeToLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineend",description:"Remove to line end",bindKey:r("Alt-Delete","Ctrl-K|Command-Delete"),exec:function(e){e.removeToLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestarthard",description:"Remove to line start hard",bindKey:r("Ctrl-Shift-Backspace",null),exec:function(e){var t=e.selection.getRange();t.start.column=0,e.session.remove(t)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineendhard",description:"Remove to line end hard",bindKey:r("Ctrl-Shift-Delete",null),exec:function(e){var t=e.selection.getRange();t.end.column=Number.MAX_VALUE,e.session.remove(t)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordleft",description:"Remove word left",bindKey:r("Ctrl-Backspace","Alt-Backspace|Ctrl-Alt-Backspace"),exec:function(e){e.removeWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordright",description:"Remove word right",bindKey:r("Ctrl-Delete","Alt-Delete"),exec:function(e){e.removeWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"outdent",description:"Outdent",bindKey:r("Shift-Tab","Shift-Tab"),exec:function(e){e.blockOutdent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"indent",description:"Indent",bindKey:r("Tab","Tab"),exec:function(e){e.indent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"blockoutdent",description:"Block outdent",bindKey:r("Ctrl-[","Ctrl-["),exec:function(e){e.blockOutdent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"blockindent",description:"Block indent",bindKey:r("Ctrl-]","Ctrl-]"),exec:function(e){e.blockIndent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"insertstring",description:"Insert string",exec:function(e,t){e.insert(t)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"inserttext",description:"Insert text",exec:function(e,t){e.insert(n.stringRepeat(t.text||"",t.times||1))},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"splitline",description:"Split line",bindKey:r(null,"Ctrl-O"),exec:function(e){e.splitLine()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"transposeletters",description:"Transpose letters",bindKey:r("Alt-Shift-X","Ctrl-T"),exec:function(e){e.transposeLetters()},multiSelectAction:function(e){e.transposeSelections(1)},scrollIntoView:"cursor"},{name:"touppercase",description:"To uppercase",bindKey:r("Ctrl-U","Ctrl-U"),exec:function(e){e.toUpperCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"tolowercase",description:"To lowercase",bindKey:r("Ctrl-Shift-U","Ctrl-Shift-U"),exec:function(e){e.toLowerCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"autoindent",description:"Auto Indent",bindKey:r(null,null),exec:function(e){e.autoIndent()},multiSelectAction:"forEachLine",scrollIntoView:"animate"},{name:"expandtoline",description:"Expand to line",bindKey:r("Ctrl-Shift-L","Command-Shift-L"),exec:function(e){var t=e.selection.getRange();t.start.column=t.end.column=0,t.end.row++,e.selection.setRange(t,!1)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"joinlines",description:"Join lines",bindKey:r(null,null),exec:function(e){for(var t=e.selection.isBackwards(),i=t?e.selection.getSelectionLead():e.selection.getSelectionAnchor(),o=t?e.selection.getSelectionAnchor():e.selection.getSelectionLead(),r=e.session.doc.getLine(i.row).length,a=e.session.doc.getTextRange(e.selection.getRange()).replace(/\n\s*/," ").length,c=e.session.doc.getLine(i.row),l=i.row+1;l<=o.row+1;l++){var h=n.stringTrimLeft(n.stringTrimRight(e.session.doc.getLine(l)));0!==h.length&&(h=" "+h),c+=h}o.row+10?(e.selection.moveCursorTo(i.row,i.column),e.selection.selectTo(i.row,i.column+a)):(r=e.session.doc.getLine(i.row).length>r?r+1:r,e.selection.moveCursorTo(i.row,r))},multiSelectAction:"forEach",readOnly:!0},{name:"invertSelection",description:"Invert selection",bindKey:r(null,null),exec:function(e){var t=e.session.doc.getLength()-1,i=e.session.doc.getLine(t).length,n=e.selection.rangeList.ranges,o=[];n.length<1&&(n=[e.selection.getRange()]);for(var r=0;r=o.lastRow||n.end.row<=o.firstRow)&&this.renderer.scrollSelectionIntoView(this.selection.anchor,this.selection.lead)}"animate"==i&&this.renderer.animateScrolling(this.curOp.scrollTop)}var s=this.selection.toJSON();this.curOp.selectionAfter=s,this.$lastSel=this.selection.toJSON(),this.session.getUndoManager().addSelection(s),this.prevOp=this.curOp,this.curOp=null}},this.$mergeableCommands=["backspace","del","insertstring"],this.$historyTracker=function(e){if(this.$mergeUndoDeltas){var t=this.prevOp,i=this.$mergeableCommands,n=t.command&&e.command.name==t.command.name;if("insertstring"==e.command.name){var o=e.args;void 0===this.mergeNextCommand&&(this.mergeNextCommand=!0),n=n&&this.mergeNextCommand&&(!/\s/.test(o)||/\s/.test(t.args)),this.mergeNextCommand=!0}else n=n&&-1!==i.indexOf(e.command.name);"always"!=this.$mergeUndoDeltas&&Date.now()-this.sequenceStartTime>2e3&&(n=!1),n?this.session.mergeUndoDeltas=!0:-1!==i.indexOf(e.command.name)&&(this.sequenceStartTime=Date.now())}},this.setKeyboardHandler=function(e,t){if(e&&"string"==typeof e&&"ace"!=e){this.$keybindingId=e;var i=this;b.loadModule(["keybinding",e],(function(n){i.$keybindingId==e&&i.keyBinding.setKeyboardHandler(n&&n.handler),t&&t()}))}else this.$keybindingId=null,this.keyBinding.setKeyboardHandler(e),t&&t()},this.getKeyboardHandler=function(){return this.keyBinding.getKeyboardHandler()},this.setSession=function(e){if(this.session!=e){this.curOp&&this.endOperation(),this.curOp={};var t=this.session;if(t){this.session.off("change",this.$onDocumentChange),this.session.off("changeMode",this.$onChangeMode),this.session.off("tokenizerUpdate",this.$onTokenizerUpdate),this.session.off("changeTabSize",this.$onChangeTabSize),this.session.off("changeWrapLimit",this.$onChangeWrapLimit),this.session.off("changeWrapMode",this.$onChangeWrapMode),this.session.off("changeFold",this.$onChangeFold),this.session.off("changeFrontMarker",this.$onChangeFrontMarker),this.session.off("changeBackMarker",this.$onChangeBackMarker),this.session.off("changeBreakpoint",this.$onChangeBreakpoint),this.session.off("changeAnnotation",this.$onChangeAnnotation),this.session.off("changeOverwrite",this.$onCursorChange),this.session.off("changeScrollTop",this.$onScrollTopChange),this.session.off("changeScrollLeft",this.$onScrollLeftChange);var i=this.session.getSelection();i.off("changeCursor",this.$onCursorChange),i.off("changeSelection",this.$onSelectionChange)}this.session=e,e?(this.$onDocumentChange=this.onDocumentChange.bind(this),e.on("change",this.$onDocumentChange),this.renderer.setSession(e),this.$onChangeMode=this.onChangeMode.bind(this),e.on("changeMode",this.$onChangeMode),this.$onTokenizerUpdate=this.onTokenizerUpdate.bind(this),e.on("tokenizerUpdate",this.$onTokenizerUpdate),this.$onChangeTabSize=this.renderer.onChangeTabSize.bind(this.renderer),e.on("changeTabSize",this.$onChangeTabSize),this.$onChangeWrapLimit=this.onChangeWrapLimit.bind(this),e.on("changeWrapLimit",this.$onChangeWrapLimit),this.$onChangeWrapMode=this.onChangeWrapMode.bind(this),e.on("changeWrapMode",this.$onChangeWrapMode),this.$onChangeFold=this.onChangeFold.bind(this),e.on("changeFold",this.$onChangeFold),this.$onChangeFrontMarker=this.onChangeFrontMarker.bind(this),this.session.on("changeFrontMarker",this.$onChangeFrontMarker),this.$onChangeBackMarker=this.onChangeBackMarker.bind(this),this.session.on("changeBackMarker",this.$onChangeBackMarker),this.$onChangeBreakpoint=this.onChangeBreakpoint.bind(this),this.session.on("changeBreakpoint",this.$onChangeBreakpoint),this.$onChangeAnnotation=this.onChangeAnnotation.bind(this),this.session.on("changeAnnotation",this.$onChangeAnnotation),this.$onCursorChange=this.onCursorChange.bind(this),this.session.on("changeOverwrite",this.$onCursorChange),this.$onScrollTopChange=this.onScrollTopChange.bind(this),this.session.on("changeScrollTop",this.$onScrollTopChange),this.$onScrollLeftChange=this.onScrollLeftChange.bind(this),this.session.on("changeScrollLeft",this.$onScrollLeftChange),this.selection=e.getSelection(),this.selection.on("changeCursor",this.$onCursorChange),this.$onSelectionChange=this.onSelectionChange.bind(this),this.selection.on("changeSelection",this.$onSelectionChange),this.onChangeMode(),this.onCursorChange(),this.onScrollTopChange(),this.onScrollLeftChange(),this.onSelectionChange(),this.onChangeFrontMarker(),this.onChangeBackMarker(),this.onChangeBreakpoint(),this.onChangeAnnotation(),this.session.getUseWrapMode()&&this.renderer.adjustWrapLimit(),this.renderer.updateFull()):(this.selection=null,this.renderer.setSession(e)),this._signal("changeSession",{session:e,oldSession:t}),this.curOp=null,t&&t._signal("changeEditor",{oldEditor:this}),e&&e._signal("changeEditor",{editor:this}),e&&e.bgTokenizer&&e.bgTokenizer.scheduleStart()}},this.getSession=function(){return this.session},this.setValue=function(e,t){return this.session.doc.setValue(e),t?1==t?this.navigateFileEnd():-1==t&&this.navigateFileStart():this.selectAll(),e},this.getValue=function(){return this.session.getValue()},this.getSelection=function(){return this.selection},this.resize=function(e){this.renderer.onResize(e)},this.setTheme=function(e,t){this.renderer.setTheme(e,t)},this.getTheme=function(){return this.renderer.getTheme()},this.setStyle=function(e){this.renderer.setStyle(e)},this.unsetStyle=function(e){this.renderer.unsetStyle(e)},this.getFontSize=function(){return this.getOption("fontSize")||o.computedStyle(this.container).fontSize},this.setFontSize=function(e){this.setOption("fontSize",e)},this.$highlightBrackets=function(){if(!this.$highlightPending){var e=this;this.$highlightPending=!0,setTimeout((function(){e.$highlightPending=!1;var t=e.session;if(t&&t.bgTokenizer){t.$bracketHighlight&&(t.$bracketHighlight.markerIds.forEach((function(e){t.removeMarker(e)})),t.$bracketHighlight=null);var i=t.getMatchingBracketRanges(e.getCursorPosition());if(!i&&t.$mode.getMatching&&(i=t.$mode.getMatching(e.session)),i){var n="ace_bracket";Array.isArray(i)?1==i.length&&(n="ace_error_bracket"):i=[i],2==i.length&&(0==f.comparePoints(i[0].end,i[1].start)?i=[f.fromPoints(i[0].start,i[1].end)]:0==f.comparePoints(i[0].start,i[1].end)&&(i=[f.fromPoints(i[1].start,i[0].end)])),t.$bracketHighlight={ranges:i,markerIds:i.map((function(e){return t.addMarker(e,n,"text")}))}}}}),50)}},this.$highlightTags=function(){if(!this.$highlightTagPending){var e=this;this.$highlightTagPending=!0,setTimeout((function(){e.$highlightTagPending=!1;var t=e.session;if(t&&t.bgTokenizer){var i=e.getCursorPosition(),n=new v(e.session,i.row,i.column),o=n.getCurrentToken();if(!o||!/\b(?:tag-open|tag-name)/.test(o.type))return t.removeMarker(t.$tagHighlight),void(t.$tagHighlight=null);if(-1===o.type.indexOf("tag-open")||(o=n.stepForward())){var s=o.value,r=o.value,a=0,c=n.stepBackward();if("<"===c.value)do{c=o,(o=n.stepForward())&&(-1!==o.type.indexOf("tag-name")?s===(r=o.value)&&("<"===c.value?a++:""===o.value&&a--)}while(o&&a>=0);else{do{if(o=c,c=n.stepBackward(),o)if(-1!==o.type.indexOf("tag-name"))s===o.value&&("<"===c.value?a++:""===o.value){for(var l=0,h=c;h;){if(-1!==h.type.indexOf("tag-name")&&h.value===s){a--;break}if("<"===h.value)break;h=n.stepBackward(),l++}for(var d=0;d1||(e=!1)),t.$highlightLineMarker&&!e)t.removeMarker(t.$highlightLineMarker.id),t.$highlightLineMarker=null;else if(!t.$highlightLineMarker&&e){var i=new f(e.row,e.column,e.row,1/0);i.id=t.addMarker(i,"ace_active-line","screenLine"),t.$highlightLineMarker=i}else e&&(t.$highlightLineMarker.start.row=e.row,t.$highlightLineMarker.end.row=e.row,t.$highlightLineMarker.start.column=e.column,t._signal("changeBackMarker"))},this.onSelectionChange=function(e){var t=this.session;if(t.$selectionMarker&&t.removeMarker(t.$selectionMarker),t.$selectionMarker=null,this.selection.isEmpty())this.$updateHighlightActiveLine();else{var i=this.selection.getRange(),n=this.getSelectionStyle();t.$selectionMarker=t.addMarker(i,"ace_selection",n)}var o=this.$highlightSelectedWord&&this.$getSelectionHighLightRegexp();this.session.highlight(o),this._signal("changeSelection")},this.$getSelectionHighLightRegexp=function(){var e=this.session,t=this.getSelectionRange();if(!t.isEmpty()&&!t.isMultiLine()){var i=t.start.column,n=t.end.column,o=e.getLine(t.start.row),s=o.substring(i,n);if(!(s.length>5e3)&&/[\w\d]/.test(s)){var r=this.$search.$assembleRegExp({wholeWord:!0,caseSensitive:!0,needle:s}),a=o.substring(i-1,n+1);if(r.test(a))return r}}},this.onChangeFrontMarker=function(){this.renderer.updateFrontMarkers()},this.onChangeBackMarker=function(){this.renderer.updateBackMarkers()},this.onChangeBreakpoint=function(){this.renderer.updateBreakpoints()},this.onChangeAnnotation=function(){this.renderer.setAnnotations(this.session.getAnnotations())},this.onChangeMode=function(e){this.renderer.updateText(),this._emit("changeMode",e)},this.onChangeWrapLimit=function(){this.renderer.updateFull()},this.onChangeWrapMode=function(){this.renderer.onResize(!0)},this.onChangeFold=function(){this.$updateHighlightActiveLine(),this.renderer.updateFull()},this.getSelectedText=function(){return this.session.getTextRange(this.getSelectionRange())},this.getCopyText=function(){var e=this.getSelectedText(),t=this.session.doc.getNewLineCharacter(),i=!1;if(!e&&this.$copyWithEmptySelection){i=!0;for(var n=this.selection.getAllRanges(),o=0;oa.search(/\S|$/)){var c=a.substr(o.column).search(/\S|$/);i.doc.removeInLine(o.row,o.column,o.column+c)}}this.clearSelection();var l=o.column,h=i.getState(o.row),d=(a=i.getLine(o.row),n.checkOutdent(h,a,e));if(i.insert(o,e),s&&s.selection&&(2==s.selection.length?this.selection.setSelectionRange(new f(o.row,l+s.selection[0],o.row,l+s.selection[1])):this.selection.setSelectionRange(new f(o.row+s.selection[0],s.selection[1],o.row+s.selection[2],s.selection[3]))),this.$enableAutoIndent){if(i.getDocument().isNewLine(e)){var u=n.getNextLineIndent(h,a.slice(0,o.column),i.getTabString());i.insert({row:o.row+1,column:0},u)}d&&n.autoOutdent(h,i,o.row)}},this.autoIndent=function(){var e,t,i=this.session,n=i.getMode();if(this.selection.isEmpty())e=0,t=i.doc.getLength()-1;else{var o=this.getSelectionRange();e=o.start.row,t=o.end.row}for(var s,r,a,c="",l="",h="",d=i.getTabString(),u=e;u<=t;u++)u>0&&(c=i.getState(u-1),l=i.getLine(u-1),h=n.getNextLineIndent(c,l,d)),s=i.getLine(u),h!==(r=n.$getIndent(s))&&(r.length>0&&(a=new f(u,0,u,r.length),i.remove(a)),h.length>0&&i.insert({row:u,column:0},h)),n.autoOutdent(c,i,u)},this.onTextInput=function(e,t){if(!t)return this.keyBinding.onTextInput(e);this.startOperation({command:{name:"insertstring"}});var i=this.applyComposition.bind(this,e,t);this.selection.rangeCount?this.forEachSelection(i):i(),this.endOperation()},this.applyComposition=function(e,t){var i;(t.extendLeft||t.extendRight)&&((i=this.selection.getRange()).start.column-=t.extendLeft,i.end.column+=t.extendRight,i.start.column<0&&(i.start.row--,i.start.column+=this.session.getLine(i.start.row).length+1),this.selection.setRange(i),e||i.isEmpty()||this.remove());(!e&&this.selection.isEmpty()||this.insert(e,!0),t.restoreStart||t.restoreEnd)&&((i=this.selection.getRange()).start.column-=t.restoreStart,i.end.column-=t.restoreEnd,this.selection.setRange(i))},this.onCommandKey=function(e,t,i){return this.keyBinding.onCommandKey(e,t,i)},this.setOverwrite=function(e){this.session.setOverwrite(e)},this.getOverwrite=function(){return this.session.getOverwrite()},this.toggleOverwrite=function(){this.session.toggleOverwrite()},this.setScrollSpeed=function(e){this.setOption("scrollSpeed",e)},this.getScrollSpeed=function(){return this.getOption("scrollSpeed")},this.setDragDelay=function(e){this.setOption("dragDelay",e)},this.getDragDelay=function(){return this.getOption("dragDelay")},this.setSelectionStyle=function(e){this.setOption("selectionStyle",e)},this.getSelectionStyle=function(){return this.getOption("selectionStyle")},this.setHighlightActiveLine=function(e){this.setOption("highlightActiveLine",e)},this.getHighlightActiveLine=function(){return this.getOption("highlightActiveLine")},this.setHighlightGutterLine=function(e){this.setOption("highlightGutterLine",e)},this.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},this.setHighlightSelectedWord=function(e){this.setOption("highlightSelectedWord",e)},this.getHighlightSelectedWord=function(){return this.$highlightSelectedWord},this.setAnimatedScroll=function(e){this.renderer.setAnimatedScroll(e)},this.getAnimatedScroll=function(){return this.renderer.getAnimatedScroll()},this.setShowInvisibles=function(e){this.renderer.setShowInvisibles(e)},this.getShowInvisibles=function(){return this.renderer.getShowInvisibles()},this.setDisplayIndentGuides=function(e){this.renderer.setDisplayIndentGuides(e)},this.getDisplayIndentGuides=function(){return this.renderer.getDisplayIndentGuides()},this.setShowPrintMargin=function(e){this.renderer.setShowPrintMargin(e)},this.getShowPrintMargin=function(){return this.renderer.getShowPrintMargin()},this.setPrintMarginColumn=function(e){this.renderer.setPrintMarginColumn(e)},this.getPrintMarginColumn=function(){return this.renderer.getPrintMarginColumn()},this.setReadOnly=function(e){this.setOption("readOnly",e)},this.getReadOnly=function(){return this.getOption("readOnly")},this.setBehavioursEnabled=function(e){this.setOption("behavioursEnabled",e)},this.getBehavioursEnabled=function(){return this.getOption("behavioursEnabled")},this.setWrapBehavioursEnabled=function(e){this.setOption("wrapBehavioursEnabled",e)},this.getWrapBehavioursEnabled=function(){return this.getOption("wrapBehavioursEnabled")},this.setShowFoldWidgets=function(e){this.setOption("showFoldWidgets",e)},this.getShowFoldWidgets=function(){return this.getOption("showFoldWidgets")},this.setFadeFoldWidgets=function(e){this.setOption("fadeFoldWidgets",e)},this.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},this.remove=function(e){this.selection.isEmpty()&&("left"==e?this.selection.selectLeft():this.selection.selectRight());var t=this.getSelectionRange();if(this.getBehavioursEnabled()){var i=this.session,n=i.getState(t.start.row),o=i.getMode().transformAction(n,"deletion",this,i,t);if(0===t.end.column){var s=i.getTextRange(t);if("\n"==s[s.length-1]){var r=i.getLine(t.end.row);/^\s+$/.test(r)&&(t.end.column=r.length)}}o&&(t=o)}this.session.remove(t),this.clearSelection()},this.removeWordRight=function(){this.selection.isEmpty()&&this.selection.selectWordRight(),this.session.remove(this.getSelectionRange()),this.clearSelection()},this.removeWordLeft=function(){this.selection.isEmpty()&&this.selection.selectWordLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},this.removeToLineStart=function(){this.selection.isEmpty()&&this.selection.selectLineStart(),this.selection.isEmpty()&&this.selection.selectLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},this.removeToLineEnd=function(){this.selection.isEmpty()&&this.selection.selectLineEnd();var e=this.getSelectionRange();e.start.column==e.end.column&&e.start.row==e.end.row&&(e.end.column=0,e.end.row++),this.session.remove(e),this.clearSelection()},this.splitLine=function(){this.selection.isEmpty()||(this.session.remove(this.getSelectionRange()),this.clearSelection());var e=this.getCursorPosition();this.insert("\n"),this.moveCursorToPosition(e)},this.transposeLetters=function(){if(this.selection.isEmpty()){var e=this.getCursorPosition(),t=e.column;if(0!==t){var i,n,o=this.session.getLine(e.row);tt.toLowerCase()?1:0}));var o=new f(0,0,0,0);for(n=e.first;n<=e.last;n++){var s=t.getLine(n);o.start.row=n,o.end.row=n,o.end.column=s.length,t.replace(o,i[n-e.first])}},this.toggleCommentLines=function(){var e=this.session.getState(this.getCursorPosition().row),t=this.$getSelectedRows();this.session.getMode().toggleCommentLines(e,this.session,t.first,t.last)},this.toggleBlockComment=function(){var e=this.getCursorPosition(),t=this.session.getState(e.row),i=this.getSelectionRange();this.session.getMode().toggleBlockComment(t,this.session,i,e)},this.getNumberAt=function(e,t){var i=/[\-]?[0-9]+(?:\.[0-9]+)?/g;i.lastIndex=0;for(var n=this.session.getLine(e);i.lastIndex=t)return{value:o[0],start:o.index,end:o.index+o[0].length}}return null},this.modifyNumber=function(e){var t=this.selection.getCursor().row,i=this.selection.getCursor().column,n=new f(t,i-1,t,i),o=this.session.getTextRange(n);if(!isNaN(parseFloat(o))&&isFinite(o)){var s=this.getNumberAt(t,i);if(s){var r=s.value.indexOf(".")>=0?s.start+s.value.indexOf(".")+1:s.end,a=s.start+s.value.length-r,c=parseFloat(s.value);c*=Math.pow(10,a),r!==s.end&&i=a&&r<=c&&(i=t,l.selection.clearSelection(),l.moveCursorTo(e,a+n),l.selection.selectTo(e,c+n)),a=c}));for(var h,d=this.$toggleWordPairs,u=0;uf+1)break;f=g.last}for(h--,a=this.session.$moveLines(u,f,t?0:e),t&&-1==e&&(d=h+1);d<=h;)r[d].moveBy(a,0),d++;t||(a=0),c+=a}o.fromOrientedRange(o.ranges[0]),o.rangeList.attach(this.session),this.inVirtualSelectionMode=!1}},this.$getSelectedRows=function(e){return e=(e||this.getSelectionRange()).collapseRows(),{first:this.session.getRowFoldStart(e.start.row),last:this.session.getRowFoldEnd(e.end.row)}},this.onCompositionStart=function(e){this.renderer.showComposition(e)},this.onCompositionUpdate=function(e){this.renderer.setCompositionText(e)},this.onCompositionEnd=function(){this.renderer.hideComposition()},this.getFirstVisibleRow=function(){return this.renderer.getFirstVisibleRow()},this.getLastVisibleRow=function(){return this.renderer.getLastVisibleRow()},this.isRowVisible=function(e){return e>=this.getFirstVisibleRow()&&e<=this.getLastVisibleRow()},this.isRowFullyVisible=function(e){return e>=this.renderer.getFirstFullyVisibleRow()&&e<=this.renderer.getLastFullyVisibleRow()},this.$getVisibleRowCount=function(){return this.renderer.getScrollBottomRow()-this.renderer.getScrollTopRow()+1},this.$moveByPage=function(e,t){var i=this.renderer,n=this.renderer.layerConfig,o=e*Math.floor(n.height/n.lineHeight);!0===t?this.selection.$moveSelection((function(){this.moveCursorBy(o,0)})):!1===t&&(this.selection.moveCursorBy(o,0),this.selection.clearSelection());var s=i.scrollTop;i.scrollBy(0,o*n.lineHeight),null!=t&&i.scrollCursorIntoView(null,.5),i.animateScrolling(s)},this.selectPageDown=function(){this.$moveByPage(1,!0)},this.selectPageUp=function(){this.$moveByPage(-1,!0)},this.gotoPageDown=function(){this.$moveByPage(1,!1)},this.gotoPageUp=function(){this.$moveByPage(-1,!1)},this.scrollPageDown=function(){this.$moveByPage(1)},this.scrollPageUp=function(){this.$moveByPage(-1)},this.scrollToRow=function(e){this.renderer.scrollToRow(e)},this.scrollToLine=function(e,t,i,n){this.renderer.scrollToLine(e,t,i,n)},this.centerSelection=function(){var e=this.getSelectionRange(),t={row:Math.floor(e.start.row+(e.end.row-e.start.row)/2),column:Math.floor(e.start.column+(e.end.column-e.start.column)/2)};this.renderer.alignCursor(t,.5)},this.getCursorPosition=function(){return this.selection.getCursor()},this.getCursorPositionScreen=function(){return this.session.documentToScreenPosition(this.getCursorPosition())},this.getSelectionRange=function(){return this.selection.getRange()},this.selectAll=function(){this.selection.selectAll()},this.clearSelection=function(){this.selection.clearSelection()},this.moveCursorTo=function(e,t){this.selection.moveCursorTo(e,t)},this.moveCursorToPosition=function(e){this.selection.moveCursorToPosition(e)},this.jumpToMatching=function(e,t){var i=this.getCursorPosition(),n=new v(this.session,i.row,i.column),o=n.getCurrentToken(),s=o||n.stepForward();if(s){var r,a,c=!1,l={},h=i.column-s.start,d={")":"(","(":"(","]":"[","[":"[","{":"{","}":"{"};do{if(s.value.match(/[{}()\[\]]/g)){for(;h=0;--s)this.$tryReplace(i[s],e)&&n++;return this.selection.setSelectionRange(o),n},this.$tryReplace=function(e,t){var i=this.session.getTextRange(e);return null!==(t=this.$search.replace(i,t))?(e.end=this.session.replace(e,t),e):null},this.getLastSearchOptions=function(){return this.$search.getOptions()},this.find=function(e,t,i){t||(t={}),"string"==typeof e||e instanceof RegExp?t.needle=e:"object"==typeof e&&n.mixin(t,e);var o=this.selection.getRange();null==t.needle&&((e=this.session.getTextRange(o)||this.$search.$options.needle)||(o=this.session.getWordRange(o.start.row,o.start.column),e=this.session.getTextRange(o)),this.$search.set({needle:e})),this.$search.set(t),t.start||this.$search.set({start:o});var s=this.$search.find(this.session);return t.preventScroll?s:s?(this.revealRange(s,i),s):(t.backwards?o.start=o.end:o.end=o.start,void this.selection.setRange(o))},this.findNext=function(e,t){this.find({skipCurrent:!0,backwards:!1},e,t)},this.findPrevious=function(e,t){this.find(e,{skipCurrent:!0,backwards:!0},t)},this.revealRange=function(e,t){this.session.unfold(e),this.selection.setSelectionRange(e);var i=this.renderer.scrollTop;this.renderer.scrollSelectionIntoView(e.start,e.end,.5),!1!==t&&this.renderer.animateScrolling(i)},this.undo=function(){this.session.getUndoManager().undo(this.session),this.renderer.scrollCursorIntoView(null,.5)},this.redo=function(){this.session.getUndoManager().redo(this.session),this.renderer.scrollCursorIntoView(null,.5)},this.destroy=function(){this.$toDestroy&&(this.$toDestroy.forEach((function(e){e.destroy()})),this.$toDestroy=null),this.$mouseHandler&&this.$mouseHandler.destroy(),this.renderer.destroy(),this._signal("destroy",this),this.session&&this.session.destroy(),this._$emitInputEvent&&this._$emitInputEvent.cancel(),this.removeAllListeners()},this.setAutoScrollEditorIntoView=function(e){if(e){var t,i=this,n=!1;this.$scrollAnchor||(this.$scrollAnchor=document.createElement("div"));var o=this.$scrollAnchor;o.style.cssText="position:absolute",this.container.insertBefore(o,this.container.firstChild);var s=this.on("changeSelection",(function(){n=!0})),r=this.renderer.on("beforeRender",(function(){n&&(t=i.renderer.container.getBoundingClientRect())})),a=this.renderer.on("afterRender",(function(){if(n&&t&&(i.isFocused()||i.searchBox&&i.searchBox.isFocused())){var e=i.renderer,s=e.$cursorLayer.$pixelPos,r=e.layerConfig,a=s.top-r.offset;null!=(n=s.top>=0&&a+t.top<0||!(s.topwindow.innerHeight)&&null)&&(o.style.top=a+"px",o.style.left=s.left+"px",o.style.height=r.lineHeight+"px",o.scrollIntoView(n)),n=t=null}}));this.setAutoScrollEditorIntoView=function(e){e||(delete this.setAutoScrollEditorIntoView,this.off("changeSelection",s),this.renderer.off("afterRender",a),this.renderer.off("beforeRender",r))}}},this.$resetCursorStyle=function(){var e=this.$cursorStyle||"ace",t=this.renderer.$cursorLayer;t&&(t.setSmoothBlinking(/smooth/.test(e)),t.isBlinking=!this.$readOnly&&"wide"!=e,o.setCssClass(t.element,"ace_slim-cursors",/slim/.test(e)))},this.prompt=function(e,t,i){var n=this;b.loadModule("./ext/prompt",(function(o){o.prompt(n,e,t,i)}))}}.call(x.prototype),b.defineOptions(x.prototype,"editor",{selectionStyle:{set:function(e){this.onSelectionChange(),this._signal("changeSelectionStyle",{data:e})},initialValue:"line"},highlightActiveLine:{set:function(){this.$updateHighlightActiveLine()},initialValue:!0},highlightSelectedWord:{set:function(e){this.$onSelectionChange()},initialValue:!0},readOnly:{set:function(e){this.textInput.setReadOnly(e),this.$resetCursorStyle()},initialValue:!1},copyWithEmptySelection:{set:function(e){this.textInput.setCopyWithEmptySelection(e)},initialValue:!1},cursorStyle:{set:function(e){this.$resetCursorStyle()},values:["ace","slim","smooth","wide"],initialValue:"ace"},mergeUndoDeltas:{values:[!1,!0,"always"],initialValue:!0},behavioursEnabled:{initialValue:!0},wrapBehavioursEnabled:{initialValue:!0},enableAutoIndent:{initialValue:!0},autoScrollEditorIntoView:{set:function(e){this.setAutoScrollEditorIntoView(e)}},keyboardHandler:{set:function(e){this.setKeyboardHandler(e)},get:function(){return this.$keybindingId},handlesSet:!0},value:{set:function(e){this.session.setValue(e)},get:function(){return this.getValue()},handlesSet:!0,hidden:!0},session:{set:function(e){this.setSession(e)},get:function(){return this.session},handlesSet:!0,hidden:!0},showLineNumbers:{set:function(e){this.renderer.$gutterLayer.setShowLineNumbers(e),this.renderer.$loop.schedule(this.renderer.CHANGE_GUTTER),e&&this.$relativeLineNumbers?y.attach(this):y.detach(this)},initialValue:!0},relativeLineNumbers:{set:function(e){this.$showLineNumbers&&e?y.attach(this):y.detach(this)}},placeholder:{set:function(e){this.$updatePlaceholder||(this.$updatePlaceholder=function(){var e=this.session&&(this.renderer.$composition||this.getValue());if(e&&this.renderer.placeholderNode)this.renderer.off("afterRender",this.$updatePlaceholder),o.removeCssClass(this.container,"ace_hasPlaceholder"),this.renderer.placeholderNode.remove(),this.renderer.placeholderNode=null;else if(e||this.renderer.placeholderNode)!e&&this.renderer.placeholderNode&&(this.renderer.placeholderNode.textContent=this.$placeholder||"");else{this.renderer.on("afterRender",this.$updatePlaceholder),o.addCssClass(this.container,"ace_hasPlaceholder");var t=o.createElement("div");t.className="ace_placeholder",t.textContent=this.$placeholder||"",this.renderer.placeholderNode=t,this.renderer.content.appendChild(this.renderer.placeholderNode)}}.bind(this),this.on("input",this.$updatePlaceholder)),this.$updatePlaceholder()}},hScrollBarAlwaysVisible:"renderer",vScrollBarAlwaysVisible:"renderer",highlightGutterLine:"renderer",animatedScroll:"renderer",showInvisibles:"renderer",showPrintMargin:"renderer",printMarginColumn:"renderer",printMargin:"renderer",fadeFoldWidgets:"renderer",showFoldWidgets:"renderer",displayIndentGuides:"renderer",showGutter:"renderer",fontSize:"renderer",fontFamily:"renderer",maxLines:"renderer",minLines:"renderer",scrollPastEnd:"renderer",fixedWidthGutter:"renderer",theme:"renderer",hasCssTransforms:"renderer",maxPixelHeight:"renderer",useTextareaForIME:"renderer",scrollSpeed:"$mouseHandler",dragDelay:"$mouseHandler",dragEnabled:"$mouseHandler",focusTimeout:"$mouseHandler",tooltipFollowsMouse:"$mouseHandler",firstLineNumber:"session",overwrite:"session",newLineMode:"session",useWorker:"session",useSoftTabs:"session",navigateWithinSoftTabs:"session",tabSize:"session",wrap:"session",indentedSoftWrap:"session",foldStyle:"session",mode:"session"});var y={getText:function(e,t){return(Math.abs(e.selection.lead.row-t)||t+1+(t<9?"·":""))+""},getWidth:function(e,t,i){return Math.max(t.toString().length,(i.lastRow+1).toString().length,2)*i.characterWidth},update:function(e,t){t.renderer.$loop.schedule(t.renderer.CHANGE_GUTTER)},attach:function(e){e.renderer.$gutterLayer.$renderer=this,e.on("changeSelection",this.update),this.update(null,e)},detach:function(e){e.renderer.$gutterLayer.$renderer==this&&(e.renderer.$gutterLayer.$renderer=null),e.off("changeSelection",this.update),this.update(null,e)}};t.Editor=x})),ace.define("ace/undomanager",["require","exports","module","ace/range"],(function(e,t,i){"use strict";var n=function(){this.$maxRev=0,this.$fromUndo=!1,this.reset()};(function(){this.addSession=function(e){this.$session=e},this.add=function(e,t,i){this.$fromUndo||e!=this.$lastDelta&&(this.$keepRedoStack||(this.$redoStack.length=0),!1!==t&&this.lastDeltas||(this.lastDeltas=[],this.$undoStack.push(this.lastDeltas),e.id=this.$rev=++this.$maxRev),"remove"!=e.action&&"insert"!=e.action||(this.$lastDelta=e),this.lastDeltas.push(e))},this.addSelection=function(e,t){this.selections.push({value:e,rev:t||this.$rev})},this.startNewGroup=function(){return this.lastDeltas=null,this.$rev},this.markIgnored=function(e,t){null==t&&(t=this.$rev+1);for(var i=this.$undoStack,n=i.length;n--;){var o=i[n][0];if(o.id<=e)break;o.id0},this.canRedo=function(){return this.$redoStack.length>0},this.bookmark=function(e){null==e&&(e=this.$rev),this.mark=e},this.isAtBookmark=function(){return this.$rev===this.mark},this.toJSON=function(){},this.fromJSON=function(){},this.hasUndo=this.canUndo,this.hasRedo=this.canRedo,this.isClean=this.isAtBookmark,this.markClean=this.bookmark,this.$prettyPrint=function(e){return e?a(e):a(this.$undoStack)+"\n---\n"+a(this.$redoStack)}}).call(n.prototype);var o=e("./range").Range,s=o.comparePoints;o.comparePoints;function r(e){return{row:e.row,column:e.column}}function a(e){if(e=e||this,Array.isArray(e))return e.map(a).join("\n");var t="";return e.action?(t="insert"==e.action?"+":"-",t+="["+e.lines+"]"):e.value&&(t=Array.isArray(e.value)?e.value.map(c).join("\n"):c(e.value)),e.start&&(t+=c(e)),(e.id||e.rev)&&(t+="\t("+(e.id||e.rev)+")"),t}function c(e){return e.start.row+":"+e.start.column+"=>"+e.end.row+":"+e.end.column}function l(e,t){var i="insert"==e.action,n="insert"==t.action;if(i&&n)if(s(t.start,e.end)>=0)u(t,e,-1);else{if(!(s(t.start,e.start)<=0))return null;u(e,t,1)}else if(i&&!n)if(s(t.start,e.end)>=0)u(t,e,-1);else{if(!(s(t.end,e.start)<=0))return null;u(e,t,-1)}else if(!i&&n)if(s(t.start,e.start)>=0)u(t,e,1);else{if(!(s(t.start,e.start)<=0))return null;u(e,t,1)}else if(!i&&!n)if(s(t.start,e.start)>=0)u(t,e,1);else{if(!(s(t.end,e.start)<=0))return null;u(e,t,-1)}return[t,e]}function h(e,t){for(var i=e.length;i--;)for(var n=0;n=0?u(e,t,-1):(s(e.start,t.start)<=0||u(e,o.fromPoints(t.start,e.start),-1),u(t,e,1));else if(!i&&n)s(t.start,e.end)>=0?u(t,e,-1):(s(t.start,e.start)<=0||u(t,o.fromPoints(e.start,t.start),-1),u(e,t,1));else if(!i&&!n)if(s(t.start,e.end)>=0)u(t,e,-1);else{var r,a;if(!(s(t.end,e.start)<=0))return s(e.start,t.start)<0&&(r=e,e=g(e,t.start)),s(e.end,t.end)>0&&(a=g(e,t.end)),f(t.end,e.start,e.end,-1),a&&!r&&(e.lines=a.lines,e.start=a.start,e.end=a.end,a=e),[t,r,a].filter(Boolean);u(e,t,-1)}return[t,e]}function u(e,t,i){f(e.start,t.start,t.end,i),f(e.end,t.start,t.end,i)}function f(e,t,i,n){e.row==(1==n?t:i).row&&(e.column+=n*(i.column-t.column)),e.row+=n*(i.row-t.row)}function g(e,t){var i=e.lines,n=e.end;e.end=r(t);var o=e.end.row-e.start.row,s=i.splice(o,i.length),a=o?t.column:t.column-e.start.column;return i.push(s[0].substring(0,a)),s[0]=s[0].substr(a),{start:r(t),end:n,lines:s,action:e.action}}function p(e,t){t=function(e){return{start:r(e.start),end:r(e.end),action:e.action,lines:e.lines.slice()}}(t);for(var i=e.length;i--;){for(var n=e[i],o=0;os&&(c=o.end.row+1,s=(o=t.getNextFoldLine(c,o))?o.start.row:1/0),c>n){for(;this.$lines.getLength()>a+1;)this.$lines.pop();break}(r=this.$lines.get(++a))?r.row=c:(r=this.$lines.createCell(c,e,this.session,l),this.$lines.push(r)),this.$renderCell(r,e,o,c),c++}this._signal("afterRender"),this.$updateGutterWidth(e)},this.$updateGutterWidth=function(e){var t=this.session,i=t.gutterRenderer||this.$renderer,n=t.$firstLineNumber,o=this.$lines.last()?this.$lines.last().text:"";(this.$fixedWidth||t.$useWrapMode)&&(o=t.getLength()+n-1);var s=i?i.getWidth(t,o,e):o.toString().length*e.characterWidth,r=this.$padding||this.$computePadding();(s+=r.left+r.right)===this.gutterWidth||isNaN(s)||(this.gutterWidth=s,this.element.parentNode.style.width=this.element.style.width=Math.ceil(this.gutterWidth)+"px",this._signal("changeGutterWidth",s))},this.$updateCursorRow=function(){if(this.$highlightGutterLine){var e=this.session.selection.getCursor();this.$cursorRow!==e.row&&(this.$cursorRow=e.row)}},this.updateLineHighlight=function(){if(this.$highlightGutterLine){var e=this.session.selection.cursor.row;if(this.$cursorRow=e,!this.$cursorCell||this.$cursorCell.row!=e){this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ",""));var t=this.$lines.cells;this.$cursorCell=null;for(var i=0;i=this.$cursorRow){if(n.row>this.$cursorRow){var o=this.session.getFoldLine(this.$cursorRow);if(!(i>0&&o&&o.start.row==t[i-1].row))break;n=t[i-1]}n.element.className="ace_gutter-active-line "+n.element.className,this.$cursorCell=n;break}}}}},this.scrollLines=function(e){var t=this.config;if(this.config=e,this.$updateCursorRow(),this.$lines.pageChanged(t,e))return this.update(e);this.$lines.moveContainer(e);var i=Math.min(e.lastRow+e.gutterOffset,this.session.getLength()-1),n=this.oldLastRow;if(this.oldLastRow=i,!t||n0;o--)this.$lines.shift();if(n>i)for(o=this.session.getFoldedRowCount(i+1,n);o>0;o--)this.$lines.pop();e.firstRown&&this.$lines.push(this.$renderLines(e,n+1,i)),this.updateLineHighlight(),this._signal("afterRender"),this.$updateGutterWidth(e)},this.$renderLines=function(e,t,i){for(var n=[],o=t,s=this.session.getNextFoldLine(o),r=s?s.start.row:1/0;o>r&&(o=s.end.row+1,r=(s=this.session.getNextFoldLine(o,s))?s.start.row:1/0),!(o>i);){var a=this.$lines.createCell(o,e,this.session,l);this.$renderCell(a,e,s,o),n.push(a),o++}return n},this.$renderCell=function(e,t,i,o){var s=e.element,r=this.session,a=s.childNodes[0],c=s.childNodes[1],l=r.$firstLineNumber,h=r.$breakpoints,d=r.$decorations,u=r.gutterRenderer||this.$renderer,f=this.$showFoldWidgets&&r.foldWidgets,g=i?i.start.row:Number.MAX_VALUE,p="ace_gutter-cell ";if(this.$highlightGutterLine&&(o==this.$cursorRow||i&&o=g&&this.$cursorRow<=i.end.row)&&(p+="ace_gutter-active-line ",this.$cursorCell!=e&&(this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ","")),this.$cursorCell=e)),h[o]&&(p+=h[o]),d[o]&&(p+=d[o]),this.$annotations[o]&&(p+=this.$annotations[o].className),s.className!=p&&(s.className=p),f){var m=f[o];null==m&&(m=f[o]=r.getFoldWidget(o))}if(m){p="ace_fold-widget ace_"+m;"start"==m&&o==g&&oi.right-t.right?"foldWidgets":void 0}}).call(c.prototype),t.Gutter=c})),ace.define("ace/layer/marker",["require","exports","module","ace/range","ace/lib/dom"],(function(e,t,i){"use strict";var n=e("../range").Range,o=e("../lib/dom"),s=function(e){this.element=o.createElement("div"),this.element.className="ace_layer ace_marker-layer",e.appendChild(this.element)};(function(){this.$padding=0,this.setPadding=function(e){this.$padding=e},this.setSession=function(e){this.session=e},this.setMarkers=function(e){this.markers=e},this.elt=function(e,t){var i=-1!=this.i&&this.element.childNodes[this.i];i?this.i++:(i=document.createElement("div"),this.element.appendChild(i),this.i=-1),i.style.cssText=t,i.className=e},this.update=function(e){if(e){var t;for(var i in this.config=e,this.i=0,this.markers){var n=this.markers[i];if(n.range){var o=n.range.clipRows(e.firstRow,e.lastRow);if(!o.isEmpty())if(o=o.toScreenRange(this.session),n.renderer){var s=this.$getTop(o.start.row,e),r=this.$padding+o.start.column*e.characterWidth;n.renderer(t,o,r,s,e)}else"fullLine"==n.type?this.drawFullLineMarker(t,o,n.clazz,e):"screenLine"==n.type?this.drawScreenLineMarker(t,o,n.clazz,e):o.isMultiLine()?"text"==n.type?this.drawTextMarker(t,o,n.clazz,e):this.drawMultiLineMarker(t,o,n.clazz,e):this.drawSingleLineMarker(t,o,n.clazz+" ace_start ace_br15",e)}else n.update(t,this,this.session,e)}if(-1!=this.i)for(;this.iu?4:0)|(l==c?8:0)),o,l==c?0:1,s)},this.drawMultiLineMarker=function(e,t,i,n,o){var s=this.$padding,r=n.lineHeight,a=this.$getTop(t.start.row,n),c=s+t.start.column*n.characterWidth;(o=o||"",this.session.$bidiHandler.isBidiRow(t.start.row))?((l=t.clone()).end.row=l.start.row,l.end.column=this.session.getLine(l.start.row).length,this.drawBidiSingleLineMarker(e,l,i+" ace_br1 ace_start",n,null,o)):this.elt(i+" ace_br1 ace_start","height:"+r+"px;right:0;top:"+a+"px;left:"+c+"px;"+(o||""));if(this.session.$bidiHandler.isBidiRow(t.end.row)){var l;(l=t.clone()).start.row=l.end.row,l.start.column=0,this.drawBidiSingleLineMarker(e,l,i+" ace_br12",n,null,o)}else{a=this.$getTop(t.end.row,n);var h=t.end.column*n.characterWidth;this.elt(i+" ace_br12","height:"+r+"px;width:"+h+"px;top:"+a+"px;left:"+s+"px;"+(o||""))}if(!((r=(t.end.row-t.start.row-1)*n.lineHeight)<=0)){a=this.$getTop(t.start.row+1,n);var d=(t.start.column?1:0)|(t.end.column?0:8);this.elt(i+(d?" ace_br"+d:""),"height:"+r+"px;right:0;top:"+a+"px;left:"+s+"px;"+(o||""))}},this.drawSingleLineMarker=function(e,t,i,n,o,s){if(this.session.$bidiHandler.isBidiRow(t.start.row))return this.drawBidiSingleLineMarker(e,t,i,n,o,s);var r=n.lineHeight,a=(t.end.column+(o||0)-t.start.column)*n.characterWidth,c=this.$getTop(t.start.row,n),l=this.$padding+t.start.column*n.characterWidth;this.elt(i,"height:"+r+"px;width:"+a+"px;top:"+c+"px;left:"+l+"px;"+(s||""))},this.drawBidiSingleLineMarker=function(e,t,i,n,o,s){var r=n.lineHeight,a=this.$getTop(t.start.row,n),c=this.$padding;this.session.$bidiHandler.getSelections(t.start.column,t.end.column).forEach((function(e){this.elt(i,"height:"+r+"px;width:"+e.width+(o||0)+"px;top:"+a+"px;left:"+(c+e.left)+"px;"+(s||""))}),this)},this.drawFullLineMarker=function(e,t,i,n,o){var s=this.$getTop(t.start.row,n),r=n.lineHeight;t.start.row!=t.end.row&&(r+=this.$getTop(t.end.row,n)-s),this.elt(i,"height:"+r+"px;top:"+s+"px;left:0;right:0;"+(o||""))},this.drawScreenLineMarker=function(e,t,i,n,o){var s=this.$getTop(t.start.row,n),r=n.lineHeight;this.elt(i,"height:"+r+"px;top:"+s+"px;left:0;right:0;"+(o||""))}}).call(s.prototype),t.Marker=s})),ace.define("ace/layer/text",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/layer/lines","ace/lib/event_emitter"],(function(e,t,i){"use strict";var n=e("../lib/oop"),o=e("../lib/dom"),s=e("../lib/lang"),r=e("./lines").Lines,a=e("../lib/event_emitter").EventEmitter,c=function(e){this.dom=o,this.element=this.dom.createElement("div"),this.element.className="ace_layer ace_text-layer",e.appendChild(this.element),this.$updateEolChar=this.$updateEolChar.bind(this),this.$lines=new r(this.element)};(function(){n.implement(this,a),this.EOF_CHAR="¶",this.EOL_CHAR_LF="¬",this.EOL_CHAR_CRLF="¤",this.EOL_CHAR=this.EOL_CHAR_LF,this.TAB_CHAR="—",this.SPACE_CHAR="·",this.$padding=0,this.MAX_LINE_LENGTH=1e4,this.$updateEolChar=function(){var e=this.session.doc,t="\n"==e.getNewLineCharacter()&&"windows"!=e.getNewLineMode()?this.EOL_CHAR_LF:this.EOL_CHAR_CRLF;if(this.EOL_CHAR!=t)return this.EOL_CHAR=t,!0},this.setPadding=function(e){this.$padding=e,this.element.style.margin="0 "+e+"px"},this.getLineHeight=function(){return this.$fontMetrics.$characterSize.height||0},this.getCharacterWidth=function(){return this.$fontMetrics.$characterSize.width||0},this.$setFontMetrics=function(e){this.$fontMetrics=e,this.$fontMetrics.on("changeCharacterSize",function(e){this._signal("changeCharacterSize",e)}.bind(this)),this.$pollSizeChanges()},this.checkForSizeChanges=function(){this.$fontMetrics.checkForSizeChanges()},this.$pollSizeChanges=function(){return this.$pollSizeChangesTimer=this.$fontMetrics.$pollSizeChanges()},this.setSession=function(e){this.session=e,e&&this.$computeTabString()},this.showInvisibles=!1,this.showSpaces=!1,this.showTabs=!1,this.showEOL=!1,this.setShowInvisibles=function(e){return this.showInvisibles!=e&&(this.showInvisibles=e,"string"==typeof e?(this.showSpaces=/tab/i.test(e),this.showTabs=/space/i.test(e),this.showEOL=/eol/i.test(e)):this.showSpaces=this.showTabs=this.showEOL=e,this.$computeTabString(),!0)},this.displayIndentGuides=!0,this.setDisplayIndentGuides=function(e){return this.displayIndentGuides!=e&&(this.displayIndentGuides=e,this.$computeTabString(),!0)},this.$tabStrings=[],this.onChangeTabSize=this.$computeTabString=function(){var e=this.session.getTabSize();this.tabSize=e;for(var t=this.$tabStrings=[0],i=1;ih&&(a=c.end.row+1,h=(c=this.session.getNextFoldLine(a,c))?c.start.row:1/0),!(a>o);){var d=s[r++];if(d){this.dom.removeChildren(d),this.$renderLine(d,a,a==h&&c),l&&(d.style.top=this.$lines.computeLineTop(a,e,this.session)+"px");var u=e.lineHeight*this.session.getRowLength(a)+"px";d.style.height!=u&&(l=!0,d.style.height=u)}a++}if(l)for(;r0;o--)this.$lines.shift();if(t.lastRow>e.lastRow)for(o=this.session.getFoldedRowCount(e.lastRow+1,t.lastRow);o>0;o--)this.$lines.pop();e.firstRowt.lastRow&&this.$lines.push(this.$renderLinesFragment(e,t.lastRow+1,e.lastRow))},this.$renderLinesFragment=function(e,t,i){for(var n=[],s=t,r=this.session.getNextFoldLine(s),a=r?r.start.row:1/0;s>a&&(s=r.end.row+1,a=(r=this.session.getNextFoldLine(s,r))?r.start.row:1/0),!(s>i);){var c=this.$lines.createCell(s,e,this.session),l=c.element;this.dom.removeChildren(l),o.setStyle(l.style,"height",this.$lines.computeLineHeight(s,e,this.session)+"px"),o.setStyle(l.style,"top",this.$lines.computeLineTop(s,e,this.session)+"px"),this.$renderLine(l,s,s==a&&r),this.$useLineGroups()?l.className="ace_line_group":l.className="ace_line",n.push(c),s++}return n},this.update=function(e){this.$lines.moveContainer(e),this.config=e;for(var t=e.firstRow,i=e.lastRow,n=this.$lines;n.getLength();)n.pop();n.push(this.$renderLinesFragment(e,t,i))},this.$textToken={text:!0,rparen:!0,lparen:!0},this.$renderToken=function(e,t,i,n){for(var o,r=/(\t)|( +)|([\x00-\x1f\x80-\xa0\xad\u1680\u180E\u2000-\u200f\u2028\u2029\u202F\u205F\uFEFF\uFFF9-\uFFFC]+)|(\u3000)|([\u1100-\u115F\u11A3-\u11A7\u11FA-\u11FF\u2329-\u232A\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFB\u3001-\u303E\u3041-\u3096\u3099-\u30FF\u3105-\u312D\u3131-\u318E\u3190-\u31BA\u31C0-\u31E3\u31F0-\u321E\u3220-\u3247\u3250-\u32FE\u3300-\u4DBF\u4E00-\uA48C\uA490-\uA4C6\uA960-\uA97C\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFAFF\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE66\uFE68-\uFE6B\uFF01-\uFF60\uFFE0-\uFFE6]|[\uD800-\uDBFF][\uDC00-\uDFFF])/g,a=this.dom.createFragment(this.element),c=0;o=r.exec(n);){var l=o[1],h=o[2],d=o[3],u=o[4],f=o[5];if(this.showSpaces||!h){var g=c!=o.index?n.slice(c,o.index):"";if(c=o.index+o[0].length,g&&a.appendChild(this.dom.createTextNode(g,this.element)),l){var p=this.session.getScreenTabSize(t+o.index);a.appendChild(this.$tabStrings[p].cloneNode(!0)),t+=p-1}else if(h){if(this.showSpaces)(b=this.dom.createElement("span")).className="ace_invisible ace_invisible_space",b.textContent=s.stringRepeat(this.SPACE_CHAR,h.length),a.appendChild(b);else a.appendChild(this.com.createTextNode(h,this.element))}else if(d){(b=this.dom.createElement("span")).className="ace_invisible ace_invisible_space ace_invalid",b.textContent=s.stringRepeat(this.SPACE_CHAR,d.length),a.appendChild(b)}else if(u){t+=1,(b=this.dom.createElement("span")).style.width=2*this.config.characterWidth+"px",b.className=this.showSpaces?"ace_cjk ace_invisible ace_invisible_space":"ace_cjk",b.textContent=this.showSpaces?this.SPACE_CHAR:u,a.appendChild(b)}else if(f){t+=1,(b=this.dom.createElement("span")).style.width=2*this.config.characterWidth+"px",b.className="ace_cjk",b.textContent=f,a.appendChild(b)}}}if(a.appendChild(this.dom.createTextNode(c?n.slice(c):n,this.element)),this.$textToken[i.type])e.appendChild(a);else{var m="ace_"+i.type.replace(/\./g," ace_"),b=this.dom.createElement("span");"fold"==i.type&&(b.style.width=i.value.length*this.config.characterWidth+"px"),b.className=m,b.appendChild(a),e.appendChild(b)}return t+n.length},this.renderIndentGuide=function(e,t,i){var n=t.search(this.$indentGuideRe);if(n<=0||n>=i)return t;if(" "==t[0]){for(var o=(n-=n%this.tabSize)/this.tabSize,s=0;s=r;)a=this.$renderToken(c,a,h,d.substring(0,r-n)),d=d.substring(r-n),n=r,c=this.$createLineElement(),e.appendChild(c),c.appendChild(this.dom.createTextNode(s.stringRepeat(" ",i.indent),this.element)),a=0,r=i[++o]||Number.MAX_VALUE;0!=d.length&&(n+=d.length,a=this.$renderToken(c,a,h,d))}}i[i.length-1]>this.MAX_LINE_LENGTH&&this.$renderOverflowMessage(c,a,null,"",!0)},this.$renderSimpleLine=function(e,t){var i=0,n=t[0],o=n.value;this.displayIndentGuides&&(o=this.renderIndentGuide(e,o)),o&&(i=this.$renderToken(e,i,n,o));for(var s=1;sthis.MAX_LINE_LENGTH)return this.$renderOverflowMessage(e,i,n,o);i=this.$renderToken(e,i,n,o)}},this.$renderOverflowMessage=function(e,t,i,n,o){i&&this.$renderToken(e,t,i,n.slice(0,this.MAX_LINE_LENGTH-t));var s=this.dom.createElement("span");s.className="ace_inline_button ace_keyword ace_toggle_wrap",s.textContent=o?"":"",e.appendChild(s)},this.$renderLine=function(e,t,i){if(i||0==i||(i=this.session.getFoldLine(t)),i)var n=this.$getFoldLineTokens(t,i);else n=this.session.getTokens(t);var o=e;if(n.length){var s=this.session.getRowSplitData(t);if(s&&s.length){this.$renderWrappedLine(e,n,s);o=e.lastChild}else{o=e;this.$useLineGroups()&&(o=this.$createLineElement(),e.appendChild(o)),this.$renderSimpleLine(o,n)}}else this.$useLineGroups()&&(o=this.$createLineElement(),e.appendChild(o));if(this.showEOL&&o){i&&(t=i.end.row);var r=this.dom.createElement("span");r.className="ace_invisible ace_invisible_eol",r.textContent=t==this.session.getLength()-1?this.EOF_CHAR:this.EOL_CHAR,o.appendChild(r)}},this.$getFoldLineTokens=function(e,t){var i=this.session,n=[];var o=i.getTokens(e);return t.walk((function(e,t,s,r,a){null!=e?n.push({type:"fold",value:e}):(a&&(o=i.getTokens(t)),o.length&&function(e,t,i){for(var o=0,s=0;s+e[o].value.lengthi-t&&(r=r.substring(0,i-t)),n.push({type:e[o].type,value:r}),s=t+r.length,o+=1);si?n.push({type:e[o].type,value:r.substring(0,i-s)}):n.push(e[o]),s+=r.length,o+=1}}(o,r,s))}),t.end.row,this.session.getLine(t.end.row).length),n},this.$useLineGroups=function(){return this.session.getUseWrapMode()},this.destroy=function(){}}).call(c.prototype),t.Text=c})),ace.define("ace/layer/cursor",["require","exports","module","ace/lib/dom"],(function(e,t,i){"use strict";var n=e("../lib/dom"),o=function(e){this.element=n.createElement("div"),this.element.className="ace_layer ace_cursor-layer",e.appendChild(this.element),this.isVisible=!1,this.isBlinking=!0,this.blinkInterval=1e3,this.smoothBlinking=!1,this.cursors=[],this.cursor=this.addCursor(),n.addCssClass(this.element,"ace_hidden-cursors"),this.$updateCursors=this.$updateOpacity.bind(this)};(function(){this.$updateOpacity=function(e){for(var t=this.cursors,i=t.length;i--;)n.setStyle(t[i].style,"opacity",e?"":"0")},this.$startCssAnimation=function(){for(var e=this.cursors,t=e.length;t--;)e[t].style.animationDuration=this.blinkInterval+"ms";setTimeout(function(){n.addCssClass(this.element,"ace_animate-blinking")}.bind(this))},this.$stopCssAnimation=function(){n.removeCssClass(this.element,"ace_animate-blinking")},this.$padding=0,this.setPadding=function(e){this.$padding=e},this.setSession=function(e){this.session=e},this.setBlinking=function(e){e!=this.isBlinking&&(this.isBlinking=e,this.restartTimer())},this.setBlinkInterval=function(e){e!=this.blinkInterval&&(this.blinkInterval=e,this.restartTimer())},this.setSmoothBlinking=function(e){e!=this.smoothBlinking&&(this.smoothBlinking=e,n.setCssClass(this.element,"ace_smooth-blinking",e),this.$updateCursors(!0),this.restartTimer())},this.addCursor=function(){var e=n.createElement("div");return e.className="ace_cursor",this.element.appendChild(e),this.cursors.push(e),e},this.removeCursor=function(){if(this.cursors.length>1){var e=this.cursors.pop();return e.parentNode.removeChild(e),e}},this.hideCursor=function(){this.isVisible=!1,n.addCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},this.showCursor=function(){this.isVisible=!0,n.removeCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},this.restartTimer=function(){var e=this.$updateCursors;if(clearInterval(this.intervalId),clearTimeout(this.timeoutId),this.$stopCssAnimation(),this.smoothBlinking&&n.removeCssClass(this.element,"ace_smooth-blinking"),e(!0),this.isBlinking&&this.blinkInterval&&this.isVisible)if(this.smoothBlinking&&setTimeout(function(){n.addCssClass(this.element,"ace_smooth-blinking")}.bind(this)),n.HAS_CSS_ANIMATION)this.$startCssAnimation();else{var t=function(){this.timeoutId=setTimeout((function(){e(!1)}),.6*this.blinkInterval)}.bind(this);this.intervalId=setInterval((function(){e(!0),t()}),this.blinkInterval),t()}else this.$stopCssAnimation()},this.getPixelPosition=function(e,t){if(!this.config||!this.session)return{left:0,top:0};e||(e=this.session.selection.getCursor());var i=this.session.documentToScreenPosition(e);return{left:this.$padding+(this.session.$bidiHandler.isBidiRow(i.row,e.row)?this.session.$bidiHandler.getPosLeft(i.column):i.column*this.config.characterWidth),top:(i.row-(t?this.config.firstRowScreen:0))*this.config.lineHeight}},this.isCursorInView=function(e,t){return e.top>=0&&e.tope.height+e.offset||r.top<0)&&i>1)){var a=this.cursors[o++]||this.addCursor(),c=a.style;this.drawCursor?this.drawCursor(a,r,e,t[i],this.session):this.isCursorInView(r,e)?(n.setStyle(c,"display","block"),n.translate(a,r.left,r.top),n.setStyle(c,"width",Math.round(e.characterWidth)+"px"),n.setStyle(c,"height",e.lineHeight+"px")):n.setStyle(c,"display","none")}}for(;this.cursors.length>o;)this.removeCursor();var l=this.session.getOverwrite();this.$setOverwrite(l),this.$pixelPos=r,this.restartTimer()},this.drawCursor=null,this.$setOverwrite=function(e){e!=this.overwrite&&(this.overwrite=e,e?n.addCssClass(this.element,"ace_overwrite-cursors"):n.removeCssClass(this.element,"ace_overwrite-cursors"))},this.destroy=function(){clearInterval(this.intervalId),clearTimeout(this.timeoutId)}}).call(o.prototype),t.Cursor=o})),ace.define("ace/scrollbar",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],(function(e,t,i){"use strict";var n=e("./lib/oop"),o=e("./lib/dom"),s=e("./lib/event"),r=e("./lib/event_emitter").EventEmitter,a=function(e){this.element=o.createElement("div"),this.element.className="ace_scrollbar ace_scrollbar"+this.classSuffix,this.inner=o.createElement("div"),this.inner.className="ace_scrollbar-inner",this.inner.textContent=" ",this.element.appendChild(this.inner),e.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,s.addListener(this.element,"scroll",this.onScroll.bind(this)),s.addListener(this.element,"mousedown",s.preventDefault)};(function(){n.implement(this,r),this.setVisible=function(e){this.element.style.display=e?"":"none",this.isVisible=e,this.coeff=1}}).call(a.prototype);var c=function(e,t){a.call(this,e),this.scrollTop=0,this.scrollHeight=0,t.$scrollbarWidth=this.width=o.scrollbarWidth(e.ownerDocument),this.inner.style.width=this.element.style.width=(this.width||15)+5+"px",this.$minWidth=0};n.inherits(c,a),function(){this.classSuffix="-v",this.onScroll=function(){if(!this.skipEvent){if(this.scrollTop=this.element.scrollTop,1!=this.coeff){var e=this.element.clientHeight/this.scrollHeight;this.scrollTop=this.scrollTop*(1-e)/(this.coeff-e)}this._emit("scroll",{data:this.scrollTop})}this.skipEvent=!1},this.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},this.setHeight=function(e){this.element.style.height=e+"px"},this.setInnerHeight=this.setScrollHeight=function(e){this.scrollHeight=e,e>32768?(this.coeff=32768/e,e=32768):1!=this.coeff&&(this.coeff=1),this.inner.style.height=e+"px"},this.setScrollTop=function(e){this.scrollTop!=e&&(this.skipEvent=!0,this.scrollTop=e,this.element.scrollTop=e*this.coeff)}}.call(c.prototype);var l=function(e,t){a.call(this,e),this.scrollLeft=0,this.height=t.$scrollbarWidth,this.inner.style.height=this.element.style.height=(this.height||15)+5+"px"};n.inherits(l,a),function(){this.classSuffix="-h",this.onScroll=function(){this.skipEvent||(this.scrollLeft=this.element.scrollLeft,this._emit("scroll",{data:this.scrollLeft})),this.skipEvent=!1},this.getHeight=function(){return this.isVisible?this.height:0},this.setWidth=function(e){this.element.style.width=e+"px"},this.setInnerWidth=function(e){this.inner.style.width=e+"px"},this.setScrollWidth=function(e){this.inner.style.width=e+"px"},this.setScrollLeft=function(e){this.scrollLeft!=e&&(this.skipEvent=!0,this.scrollLeft=this.element.scrollLeft=e)}}.call(l.prototype),t.ScrollBar=c,t.ScrollBarV=c,t.ScrollBarH=l,t.VScrollBar=c,t.HScrollBar=l})),ace.define("ace/renderloop",["require","exports","module","ace/lib/event"],(function(e,t,i){"use strict";var n=e("./lib/event"),o=function(e,t){this.onRender=e,this.pending=!1,this.changes=0,this.$recursionLimit=2,this.window=t||window;var i=this;this._flush=function(e){i.pending=!1;var t=i.changes;if(t&&(n.blockIdle(100),i.changes=0,i.onRender(t)),i.changes){if(i.$recursionLimit--<0)return;i.schedule()}else i.$recursionLimit=2}};(function(){this.schedule=function(e){this.changes=this.changes|e,this.changes&&!this.pending&&(n.nextFrame(this._flush),this.pending=!0)},this.clear=function(e){var t=this.changes;return this.changes=0,t}}).call(o.prototype),t.RenderLoop=o})),ace.define("ace/layer/font_metrics",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/lib/event","ace/lib/useragent","ace/lib/event_emitter"],(function(e,t,i){var n=e("../lib/oop"),o=e("../lib/dom"),s=e("../lib/lang"),r=e("../lib/event"),a=e("../lib/useragent"),c=e("../lib/event_emitter").EventEmitter,l="function"==typeof ResizeObserver,h=200,d=t.FontMetrics=function(e){this.el=o.createElement("div"),this.$setMeasureNodeStyles(this.el.style,!0),this.$main=o.createElement("div"),this.$setMeasureNodeStyles(this.$main.style),this.$measureNode=o.createElement("div"),this.$setMeasureNodeStyles(this.$measureNode.style),this.el.appendChild(this.$main),this.el.appendChild(this.$measureNode),e.appendChild(this.el),this.$measureNode.textContent=s.stringRepeat("X",256),this.$characterSize={width:0,height:0},l?this.$addObserver():this.checkForSizeChanges()};(function(){n.implement(this,c),this.$characterSize={width:0,height:0},this.$setMeasureNodeStyles=function(e,t){e.width=e.height="auto",e.left=e.top="0px",e.visibility="hidden",e.position="absolute",e.whiteSpace="pre",a.isIE<8?e["font-family"]="inherit":e.font="inherit",e.overflow=t?"hidden":"visible"},this.checkForSizeChanges=function(e){if(void 0===e&&(e=this.$measureSizes()),e&&(this.$characterSize.width!==e.width||this.$characterSize.height!==e.height)){this.$measureNode.style.fontWeight="bold";var t=this.$measureSizes();this.$measureNode.style.fontWeight="",this.$characterSize=e,this.charSizes=Object.create(null),this.allowBoldFonts=t&&t.width===e.width&&t.height===e.height,this._emit("changeCharacterSize",{data:e})}},this.$addObserver=function(){var e=this;this.$observer=new window.ResizeObserver((function(t){e.checkForSizeChanges()})),this.$observer.observe(this.$measureNode)},this.$pollSizeChanges=function(){if(this.$pollSizeChangesTimer||this.$observer)return this.$pollSizeChangesTimer;var e=this;return this.$pollSizeChangesTimer=r.onIdle((function t(){e.checkForSizeChanges(),r.onIdle(t,500)}),500)},this.setPolling=function(e){e?this.$pollSizeChanges():this.$pollSizeChangesTimer&&(clearInterval(this.$pollSizeChangesTimer),this.$pollSizeChangesTimer=0)},this.$measureSizes=function(e){var t={height:(e||this.$measureNode).clientHeight,width:(e||this.$measureNode).clientWidth/256};return 0===t.width||0===t.height?null:t},this.$measureCharWidth=function(e){return this.$main.textContent=s.stringRepeat(e,256),this.$main.getBoundingClientRect().width/256},this.getCharacterWidth=function(e){var t=this.charSizes[e];return void 0===t&&(t=this.charSizes[e]=this.$measureCharWidth(e)/this.$characterSize.width),t},this.destroy=function(){clearInterval(this.$pollSizeChangesTimer),this.$observer&&this.$observer.disconnect(),this.el&&this.el.parentNode&&this.el.parentNode.removeChild(this.el)},this.$getZoom=function e(t){return t&&t.parentElement?(window.getComputedStyle(t).zoom||1)*e(t.parentElement):1},this.$initTransformMeasureNodes=function(){var e=function(e,t){return["div",{style:"position: absolute;top:"+e+"px;left:"+t+"px;"}]};this.els=o.buildDom([e(0,0),e(h,0),e(0,h),e(h,h)],this.el)},this.transformCoordinates=function(e,t){e&&(e=s(1/this.$getZoom(this.el),e));function i(e,t,i){var n=e[1]*t[0]-e[0]*t[1];return[(-t[1]*i[0]+t[0]*i[1])/n,(+e[1]*i[0]-e[0]*i[1])/n]}function n(e,t){return[e[0]-t[0],e[1]-t[1]]}function o(e,t){return[e[0]+t[0],e[1]+t[1]]}function s(e,t){return[e*t[0],e*t[1]]}function r(e){var t=e.getBoundingClientRect();return[t.left,t.top]}this.els||this.$initTransformMeasureNodes();var a=r(this.els[0]),c=r(this.els[1]),l=r(this.els[2]),d=r(this.els[3]),u=i(n(d,c),n(d,l),n(o(c,l),o(d,a))),f=s(1+u[0],n(c,a)),g=s(1+u[1],n(l,a));if(t){var p=t,m=u[0]*p[0]/h+u[1]*p[1]/h+1,b=o(s(p[0],f),s(p[1],g));return o(s(1/m/h,b),a)}var v=n(e,a),w=i(n(f,s(u[0],v)),n(g,s(u[1],v)),v);return s(h,w)}}).call(d.prototype)})),ace.define("ace/virtual_renderer",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/config","ace/layer/gutter","ace/layer/marker","ace/layer/text","ace/layer/cursor","ace/scrollbar","ace/scrollbar","ace/renderloop","ace/layer/font_metrics","ace/lib/event_emitter","ace/lib/useragent"],(function(e,t,i){"use strict";var n=e("./lib/oop"),o=e("./lib/dom"),s=e("./config"),r=e("./layer/gutter").Gutter,a=e("./layer/marker").Marker,c=e("./layer/text").Text,l=e("./layer/cursor").Cursor,h=e("./scrollbar").HScrollBar,d=e("./scrollbar").VScrollBar,u=e("./renderloop").RenderLoop,f=e("./layer/font_metrics").FontMetrics,g=e("./lib/event_emitter").EventEmitter,p='.ace_br1 {border-top-left-radius : 3px;}.ace_br2 {border-top-right-radius : 3px;}.ace_br3 {border-top-left-radius : 3px; border-top-right-radius: 3px;}.ace_br4 {border-bottom-right-radius: 3px;}.ace_br5 {border-top-left-radius : 3px; border-bottom-right-radius: 3px;}.ace_br6 {border-top-right-radius : 3px; border-bottom-right-radius: 3px;}.ace_br7 {border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px;}.ace_br8 {border-bottom-left-radius : 3px;}.ace_br9 {border-top-left-radius : 3px; border-bottom-left-radius: 3px;}.ace_br10{border-top-right-radius : 3px; border-bottom-left-radius: 3px;}.ace_br11{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br12{border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br13{border-top-left-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br14{border-top-right-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br15{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_editor {position: relative;overflow: hidden;padding: 0;font: 12px/normal \'Monaco\', \'Menlo\', \'Ubuntu Mono\', \'Consolas\', \'source-code-pro\', monospace;direction: ltr;text-align: left;-webkit-tap-highlight-color: rgba(0, 0, 0, 0);}.ace_scroller {position: absolute;overflow: hidden;top: 0;bottom: 0;background-color: inherit;-ms-user-select: none;-moz-user-select: none;-webkit-user-select: none;user-select: none;cursor: text;}.ace_content {position: absolute;box-sizing: border-box;min-width: 100%;contain: style size layout;font-variant-ligatures: no-common-ligatures;}.ace_dragging .ace_scroller:before{position: absolute;top: 0;left: 0;right: 0;bottom: 0;content: \'\';background: rgba(250, 250, 250, 0.01);z-index: 1000;}.ace_dragging.ace_dark .ace_scroller:before{background: rgba(0, 0, 0, 0.01);}.ace_selecting, .ace_selecting * {cursor: text !important;}.ace_gutter {position: absolute;overflow : hidden;width: auto;top: 0;bottom: 0;left: 0;cursor: default;z-index: 4;-ms-user-select: none;-moz-user-select: none;-webkit-user-select: none;user-select: none;contain: style size layout;}.ace_gutter-active-line {position: absolute;left: 0;right: 0;}.ace_scroller.ace_scroll-left {box-shadow: 17px 0 16px -16px rgba(0, 0, 0, 0.4) inset;}.ace_gutter-cell {position: absolute;top: 0;left: 0;right: 0;padding-left: 19px;padding-right: 6px;background-repeat: no-repeat;}.ace_gutter-cell.ace_error {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAABOFBMVEX/////////QRswFAb/Ui4wFAYwFAYwFAaWGAfDRymzOSH/PxswFAb/SiUwFAYwFAbUPRvjQiDllog5HhHdRybsTi3/Tyv9Tir+Syj/UC3////XurebMBIwFAb/RSHbPx/gUzfdwL3kzMivKBAwFAbbvbnhPx66NhowFAYwFAaZJg8wFAaxKBDZurf/RB6mMxb/SCMwFAYwFAbxQB3+RB4wFAb/Qhy4Oh+4QifbNRcwFAYwFAYwFAb/QRzdNhgwFAYwFAbav7v/Uy7oaE68MBK5LxLewr/r2NXewLswFAaxJw4wFAbkPRy2PyYwFAaxKhLm1tMwFAazPiQwFAaUGAb/QBrfOx3bvrv/VC/maE4wFAbRPBq6MRO8Qynew8Dp2tjfwb0wFAbx6eju5+by6uns4uH9/f36+vr/GkHjAAAAYnRSTlMAGt+64rnWu/bo8eAA4InH3+DwoN7j4eLi4xP99Nfg4+b+/u9B/eDs1MD1mO7+4PHg2MXa347g7vDizMLN4eG+Pv7i5evs/v79yu7S3/DV7/498Yv24eH+4ufQ3Ozu/v7+y13sRqwAAADLSURBVHjaZc/XDsFgGIBhtDrshlitmk2IrbHFqL2pvXf/+78DPokj7+Fz9qpU/9UXJIlhmPaTaQ6QPaz0mm+5gwkgovcV6GZzd5JtCQwgsxoHOvJO15kleRLAnMgHFIESUEPmawB9ngmelTtipwwfASilxOLyiV5UVUyVAfbG0cCPHig+GBkzAENHS0AstVF6bacZIOzgLmxsHbt2OecNgJC83JERmePUYq8ARGkJx6XtFsdddBQgZE2nPR6CICZhawjA4Fb/chv+399kfR+MMMDGOQAAAABJRU5ErkJggg==");background-repeat: no-repeat;background-position: 2px center;}.ace_gutter-cell.ace_warning {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAmVBMVEX///8AAAD///8AAAAAAABPSzb/5sAAAAB/blH/73z/ulkAAAAAAAD85pkAAAAAAAACAgP/vGz/rkDerGbGrV7/pkQICAf////e0IsAAAD/oED/qTvhrnUAAAD/yHD/njcAAADuv2r/nz//oTj/p064oGf/zHAAAAA9Nir/tFIAAAD/tlTiuWf/tkIAAACynXEAAAAAAAAtIRW7zBpBAAAAM3RSTlMAABR1m7RXO8Ln31Z36zT+neXe5OzooRDfn+TZ4p3h2hTf4t3k3ucyrN1K5+Xaks52Sfs9CXgrAAAAjklEQVR42o3PbQ+CIBQFYEwboPhSYgoYunIqqLn6/z8uYdH8Vmdnu9vz4WwXgN/xTPRD2+sgOcZjsge/whXZgUaYYvT8QnuJaUrjrHUQreGczuEafQCO/SJTufTbroWsPgsllVhq3wJEk2jUSzX3CUEDJC84707djRc5MTAQxoLgupWRwW6UB5fS++NV8AbOZgnsC7BpEAAAAABJRU5ErkJggg==");background-position: 2px center;}.ace_gutter-cell.ace_info {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAAAAAA6mKC9AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAAJ0Uk5TAAB2k804AAAAPklEQVQY02NgIB68QuO3tiLznjAwpKTgNyDbMegwisCHZUETUZV0ZqOquBpXj2rtnpSJT1AEnnRmL2OgGgAAIKkRQap2htgAAAAASUVORK5CYII=");background-position: 2px center;}.ace_dark .ace_gutter-cell.ace_info {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAAJFBMVEUAAAChoaGAgIAqKiq+vr6tra1ZWVmUlJSbm5s8PDxubm56enrdgzg3AAAAAXRSTlMAQObYZgAAAClJREFUeNpjYMAPdsMYHegyJZFQBlsUlMFVCWUYKkAZMxZAGdxlDMQBAG+TBP4B6RyJAAAAAElFTkSuQmCC");}.ace_scrollbar {contain: strict;position: absolute;right: 0;bottom: 0;z-index: 6;}.ace_scrollbar-inner {position: absolute;cursor: text;left: 0;top: 0;}.ace_scrollbar-v{overflow-x: hidden;overflow-y: scroll;top: 0;}.ace_scrollbar-h {overflow-x: scroll;overflow-y: hidden;left: 0;}.ace_print-margin {position: absolute;height: 100%;}.ace_text-input {position: absolute;z-index: 0;width: 0.5em;height: 1em;opacity: 0;background: transparent;-moz-appearance: none;appearance: none;border: none;resize: none;outline: none;overflow: hidden;font: inherit;padding: 0 1px;margin: 0 -1px;contain: strict;-ms-user-select: text;-moz-user-select: text;-webkit-user-select: text;user-select: text;white-space: pre!important;}.ace_text-input.ace_composition {background: transparent;color: inherit;z-index: 1000;opacity: 1;}.ace_composition_placeholder { color: transparent }.ace_composition_marker { border-bottom: 1px solid;position: absolute;border-radius: 0;margin-top: 1px;}[ace_nocontext=true] {transform: none!important;filter: none!important;clip-path: none!important;mask : none!important;contain: none!important;perspective: none!important;mix-blend-mode: initial!important;z-index: auto;}.ace_layer {z-index: 1;position: absolute;overflow: hidden;word-wrap: normal;white-space: pre;height: 100%;width: 100%;box-sizing: border-box;pointer-events: none;}.ace_gutter-layer {position: relative;width: auto;text-align: right;pointer-events: auto;height: 1000000px;contain: style size layout;}.ace_text-layer {font: inherit !important;position: absolute;height: 1000000px;width: 1000000px;contain: style size layout;}.ace_text-layer > .ace_line, .ace_text-layer > .ace_line_group {contain: style size layout;position: absolute;top: 0;left: 0;right: 0;}.ace_hidpi .ace_text-layer,.ace_hidpi .ace_gutter-layer,.ace_hidpi .ace_content,.ace_hidpi .ace_gutter {contain: strict;will-change: transform;}.ace_hidpi .ace_text-layer > .ace_line, .ace_hidpi .ace_text-layer > .ace_line_group {contain: strict;}.ace_cjk {display: inline-block;text-align: center;}.ace_cursor-layer {z-index: 4;}.ace_cursor {z-index: 4;position: absolute;box-sizing: border-box;border-left: 2px solid;transform: translatez(0);}.ace_multiselect .ace_cursor {border-left-width: 1px;}.ace_slim-cursors .ace_cursor {border-left-width: 1px;}.ace_overwrite-cursors .ace_cursor {border-left-width: 0;border-bottom: 1px solid;}.ace_hidden-cursors .ace_cursor {opacity: 0.2;}.ace_hasPlaceholder .ace_hidden-cursors .ace_cursor {opacity: 0;}.ace_smooth-blinking .ace_cursor {transition: opacity 0.18s;}.ace_animate-blinking .ace_cursor {animation-duration: 1000ms;animation-timing-function: step-end;animation-name: blink-ace-animate;animation-iteration-count: infinite;}.ace_animate-blinking.ace_smooth-blinking .ace_cursor {animation-duration: 1000ms;animation-timing-function: ease-in-out;animation-name: blink-ace-animate-smooth;}@keyframes blink-ace-animate {from, to { opacity: 1; }60% { opacity: 0; }}@keyframes blink-ace-animate-smooth {from, to { opacity: 1; }45% { opacity: 1; }60% { opacity: 0; }85% { opacity: 0; }}.ace_marker-layer .ace_step, .ace_marker-layer .ace_stack {position: absolute;z-index: 3;}.ace_marker-layer .ace_selection {position: absolute;z-index: 5;}.ace_marker-layer .ace_bracket {position: absolute;z-index: 6;}.ace_marker-layer .ace_error_bracket {position: absolute;border-bottom: 1px solid #DE5555;border-radius: 0;}.ace_marker-layer .ace_active-line {position: absolute;z-index: 2;}.ace_marker-layer .ace_selected-word {position: absolute;z-index: 4;box-sizing: border-box;}.ace_line .ace_fold {box-sizing: border-box;display: inline-block;height: 11px;margin-top: -2px;vertical-align: middle;background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACJJREFUeNpi+P//fxgTAwPDBxDxD078RSX+YeEyDFMCIMAAI3INmXiwf2YAAAAASUVORK5CYII=");background-repeat: no-repeat, repeat-x;background-position: center center, top left;color: transparent;border: 1px solid black;border-radius: 2px;cursor: pointer;pointer-events: auto;}.ace_dark .ace_fold {}.ace_fold:hover{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACBJREFUeNpi+P//fz4TAwPDZxDxD5X4i5fLMEwJgAADAEPVDbjNw87ZAAAAAElFTkSuQmCC");}.ace_tooltip {background-color: #FFF;background-image: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.1));border: 1px solid gray;border-radius: 1px;box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);color: black;max-width: 100%;padding: 3px 4px;position: fixed;z-index: 999999;box-sizing: border-box;cursor: default;white-space: pre;word-wrap: break-word;line-height: normal;font-style: normal;font-weight: normal;letter-spacing: normal;pointer-events: none;}.ace_folding-enabled > .ace_gutter-cell {padding-right: 13px;}.ace_fold-widget {box-sizing: border-box;margin: 0 -12px 0 1px;display: none;width: 11px;vertical-align: top;background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42mWKsQ0AMAzC8ixLlrzQjzmBiEjp0A6WwBCSPgKAXoLkqSot7nN3yMwR7pZ32NzpKkVoDBUxKAAAAABJRU5ErkJggg==");background-repeat: no-repeat;background-position: center;border-radius: 3px;border: 1px solid transparent;cursor: pointer;}.ace_folding-enabled .ace_fold-widget {display: inline-block; }.ace_fold-widget.ace_end {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42m3HwQkAMAhD0YzsRchFKI7sAikeWkrxwScEB0nh5e7KTPWimZki4tYfVbX+MNl4pyZXejUO1QAAAABJRU5ErkJggg==");}.ace_fold-widget.ace_closed {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAGCAYAAAAG5SQMAAAAOUlEQVR42jXKwQkAMAgDwKwqKD4EwQ26sSOkVWjgIIHAzPiCgaqiqnJHZnKICBERHN194O5b9vbLuAVRL+l0YWnZAAAAAElFTkSuQmCCXA==");}.ace_fold-widget:hover {border: 1px solid rgba(0, 0, 0, 0.3);background-color: rgba(255, 255, 255, 0.2);box-shadow: 0 1px 1px rgba(255, 255, 255, 0.7);}.ace_fold-widget:active {border: 1px solid rgba(0, 0, 0, 0.4);background-color: rgba(0, 0, 0, 0.05);box-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);}.ace_dark .ace_fold-widget {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHklEQVQIW2P4//8/AzoGEQ7oGCaLLAhWiSwB146BAQCSTPYocqT0AAAAAElFTkSuQmCC");}.ace_dark .ace_fold-widget.ace_end {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAH0lEQVQIW2P4//8/AxQ7wNjIAjDMgC4AxjCVKBirIAAF0kz2rlhxpAAAAABJRU5ErkJggg==");}.ace_dark .ace_fold-widget.ace_closed {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAFCAYAAACAcVaiAAAAHElEQVQIW2P4//+/AxAzgDADlOOAznHAKgPWAwARji8UIDTfQQAAAABJRU5ErkJggg==");}.ace_dark .ace_fold-widget:hover {box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);background-color: rgba(255, 255, 255, 0.1);}.ace_dark .ace_fold-widget:active {box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);}.ace_inline_button {border: 1px solid lightgray;display: inline-block;margin: -1px 8px;padding: 0 5px;pointer-events: auto;cursor: pointer;}.ace_inline_button:hover {border-color: gray;background: rgba(200,200,200,0.2);display: inline-block;pointer-events: auto;}.ace_fold-widget.ace_invalid {background-color: #FFB4B4;border-color: #DE5555;}.ace_fade-fold-widgets .ace_fold-widget {transition: opacity 0.4s ease 0.05s;opacity: 0;}.ace_fade-fold-widgets:hover .ace_fold-widget {transition: opacity 0.05s ease 0.05s;opacity:1;}.ace_underline {text-decoration: underline;}.ace_bold {font-weight: bold;}.ace_nobold .ace_bold {font-weight: normal;}.ace_italic {font-style: italic;}.ace_error-marker {background-color: rgba(255, 0, 0,0.2);position: absolute;z-index: 9;}.ace_highlight-marker {background-color: rgba(255, 255, 0,0.2);position: absolute;z-index: 8;}.ace_mobile-menu {position: absolute;line-height: 1.5;border-radius: 4px;-ms-user-select: none;-moz-user-select: none;-webkit-user-select: none;user-select: none;background: white;box-shadow: 1px 3px 2px grey;border: 1px solid #dcdcdc;color: black;}.ace_dark > .ace_mobile-menu {background: #333;color: #ccc;box-shadow: 1px 3px 2px grey;border: 1px solid #444;}.ace_mobile-button {padding: 2px;cursor: pointer;overflow: hidden;}.ace_mobile-button:hover {background-color: #eee;opacity:1;}.ace_mobile-button:active {background-color: #ddd;}.ace_placeholder {font-family: arial;transform: scale(0.9);transform-origin: left;white-space: pre;opacity: 0.7;margin: 0 10px;}',m=e("./lib/useragent"),b=m.isIE;o.importCssString(p,"ace_editor.css");var v=function(e,t){var i=this;this.container=e||o.createElement("div"),o.addCssClass(this.container,"ace_editor"),o.HI_DPI&&o.addCssClass(this.container,"ace_hidpi"),this.setTheme(t),this.$gutter=o.createElement("div"),this.$gutter.className="ace_gutter",this.container.appendChild(this.$gutter),this.$gutter.setAttribute("aria-hidden",!0),this.scroller=o.createElement("div"),this.scroller.className="ace_scroller",this.container.appendChild(this.scroller),this.content=o.createElement("div"),this.content.className="ace_content",this.scroller.appendChild(this.content),this.$gutterLayer=new r(this.$gutter),this.$gutterLayer.on("changeGutterWidth",this.onGutterResize.bind(this)),this.$markerBack=new a(this.content);var n=this.$textLayer=new c(this.content);this.canvas=n.element,this.$markerFront=new a(this.content),this.$cursorLayer=new l(this.content),this.$horizScroll=!1,this.$vScroll=!1,this.scrollBar=this.scrollBarV=new d(this.container,this),this.scrollBarH=new h(this.container,this),this.scrollBarV.on("scroll",(function(e){i.$scrollAnimation||i.session.setScrollTop(e.data-i.scrollMargin.top)})),this.scrollBarH.on("scroll",(function(e){i.$scrollAnimation||i.session.setScrollLeft(e.data-i.scrollMargin.left)})),this.scrollTop=0,this.scrollLeft=0,this.cursorPos={row:0,column:0},this.$fontMetrics=new f(this.container),this.$textLayer.$setFontMetrics(this.$fontMetrics),this.$textLayer.on("changeCharacterSize",(function(e){i.updateCharacterSize(),i.onResize(!0,i.gutterWidth,i.$size.width,i.$size.height),i._signal("changeCharacterSize",e)})),this.$size={width:0,height:0,scrollerHeight:0,scrollerWidth:0,$dirty:!0},this.layerConfig={width:1,padding:0,firstRow:0,firstRowScreen:0,lastRow:0,lineHeight:0,characterWidth:0,minHeight:1,maxHeight:1,offset:0,height:1,gutterOffset:1},this.scrollMargin={left:0,right:0,top:0,bottom:0,v:0,h:0},this.margin={left:0,right:0,top:0,bottom:0,v:0,h:0},this.$keepTextAreaAtCursor=!m.isIOS,this.$loop=new u(this.$renderChanges.bind(this),this.container.ownerDocument.defaultView),this.$loop.schedule(this.CHANGE_FULL),this.updateCharacterSize(),this.setPadding(4),s.resetOptions(this),s._signal("renderer",this)};(function(){this.CHANGE_CURSOR=1,this.CHANGE_MARKER=2,this.CHANGE_GUTTER=4,this.CHANGE_SCROLL=8,this.CHANGE_LINES=16,this.CHANGE_TEXT=32,this.CHANGE_SIZE=64,this.CHANGE_MARKER_BACK=128,this.CHANGE_MARKER_FRONT=256,this.CHANGE_FULL=512,this.CHANGE_H_SCROLL=1024,n.implement(this,g),this.updateCharacterSize=function(){this.$textLayer.allowBoldFonts!=this.$allowBoldFonts&&(this.$allowBoldFonts=this.$textLayer.allowBoldFonts,this.setStyle("ace_nobold",!this.$allowBoldFonts)),this.layerConfig.characterWidth=this.characterWidth=this.$textLayer.getCharacterWidth(),this.layerConfig.lineHeight=this.lineHeight=this.$textLayer.getLineHeight(),this.$updatePrintMargin(),o.setStyle(this.scroller.style,"line-height",this.lineHeight+"px")},this.setSession=function(e){this.session&&this.session.doc.off("changeNewLineMode",this.onChangeNewLineMode),this.session=e,e&&this.scrollMargin.top&&e.getScrollTop()<=0&&e.setScrollTop(-this.scrollMargin.top),this.$cursorLayer.setSession(e),this.$markerBack.setSession(e),this.$markerFront.setSession(e),this.$gutterLayer.setSession(e),this.$textLayer.setSession(e),e&&(this.$loop.schedule(this.CHANGE_FULL),this.session.$setFontMetrics(this.$fontMetrics),this.scrollBarH.scrollLeft=this.scrollBarV.scrollTop=null,this.onChangeNewLineMode=this.onChangeNewLineMode.bind(this),this.onChangeNewLineMode(),this.session.doc.on("changeNewLineMode",this.onChangeNewLineMode))},this.updateLines=function(e,t,i){if(void 0===t&&(t=1/0),this.$changedLines?(this.$changedLines.firstRow>e&&(this.$changedLines.firstRow=e),this.$changedLines.lastRowthis.layerConfig.lastRow||this.$loop.schedule(this.CHANGE_LINES)},this.onChangeNewLineMode=function(){this.$loop.schedule(this.CHANGE_TEXT),this.$textLayer.$updateEolChar(),this.session.$bidiHandler.setEolChar(this.$textLayer.EOL_CHAR)},this.onChangeTabSize=function(){this.$loop.schedule(this.CHANGE_TEXT|this.CHANGE_MARKER),this.$textLayer.onChangeTabSize()},this.updateText=function(){this.$loop.schedule(this.CHANGE_TEXT)},this.updateFull=function(e){e?this.$renderChanges(this.CHANGE_FULL,!0):this.$loop.schedule(this.CHANGE_FULL)},this.updateFontSize=function(){this.$textLayer.checkForSizeChanges()},this.$changes=0,this.$updateSizeAsync=function(){this.$loop.pending?this.$size.$dirty=!0:this.onResize()},this.onResize=function(e,t,i,n){if(!(this.resizing>2)){this.resizing>0?this.resizing++:this.resizing=e?1:0;var o=this.container;n||(n=o.clientHeight||o.scrollHeight),i||(i=o.clientWidth||o.scrollWidth);var s=this.$updateCachedSize(e,t,i,n);if(!this.$size.scrollerHeight||!i&&!n)return this.resizing=0;e&&(this.$gutterLayer.$padding=null),e?this.$renderChanges(s|this.$changes,!0):this.$loop.schedule(s|this.$changes),this.resizing&&(this.resizing=0),this.scrollBarV.scrollLeft=this.scrollBarV.scrollTop=null}},this.$updateCachedSize=function(e,t,i,n){n-=this.$extraHeight||0;var s=0,r=this.$size,a={width:r.width,height:r.height,scrollerHeight:r.scrollerHeight,scrollerWidth:r.scrollerWidth};if(n&&(e||r.height!=n)&&(r.height=n,s|=this.CHANGE_SIZE,r.scrollerHeight=r.height,this.$horizScroll&&(r.scrollerHeight-=this.scrollBarH.getHeight()),this.scrollBarV.element.style.bottom=this.scrollBarH.getHeight()+"px",s|=this.CHANGE_SCROLL),i&&(e||r.width!=i)){s|=this.CHANGE_SIZE,r.width=i,null==t&&(t=this.$showGutter?this.$gutter.offsetWidth:0),this.gutterWidth=t,o.setStyle(this.scrollBarH.element.style,"left",t+"px"),o.setStyle(this.scroller.style,"left",t+this.margin.left+"px"),r.scrollerWidth=Math.max(0,i-t-this.scrollBarV.getWidth()-this.margin.h),o.setStyle(this.$gutter.style,"left",this.margin.left+"px");var c=this.scrollBarV.getWidth()+"px";o.setStyle(this.scrollBarH.element.style,"right",c),o.setStyle(this.scroller.style,"right",c),o.setStyle(this.scroller.style,"bottom",this.scrollBarH.getHeight()),(this.session&&this.session.getUseWrapMode()&&this.adjustWrapLimit()||e)&&(s|=this.CHANGE_FULL)}return r.$dirty=!i||!n,s&&this._signal("resize",a),s},this.onGutterResize=function(e){var t=this.$showGutter?e:0;t!=this.gutterWidth&&(this.$changes|=this.$updateCachedSize(!0,t,this.$size.width,this.$size.height)),this.session.getUseWrapMode()&&this.adjustWrapLimit()||this.$size.$dirty?this.$loop.schedule(this.CHANGE_FULL):this.$computeLayerConfig()},this.adjustWrapLimit=function(){var e=this.$size.scrollerWidth-2*this.$padding,t=Math.floor(e/this.characterWidth);return this.session.adjustWrapLimit(t,this.$showPrintMargin&&this.$printMarginColumn)},this.setAnimatedScroll=function(e){this.setOption("animatedScroll",e)},this.getAnimatedScroll=function(){return this.$animatedScroll},this.setShowInvisibles=function(e){this.setOption("showInvisibles",e),this.session.$bidiHandler.setShowInvisibles(e)},this.getShowInvisibles=function(){return this.getOption("showInvisibles")},this.getDisplayIndentGuides=function(){return this.getOption("displayIndentGuides")},this.setDisplayIndentGuides=function(e){this.setOption("displayIndentGuides",e)},this.setShowPrintMargin=function(e){this.setOption("showPrintMargin",e)},this.getShowPrintMargin=function(){return this.getOption("showPrintMargin")},this.setPrintMarginColumn=function(e){this.setOption("printMarginColumn",e)},this.getPrintMarginColumn=function(){return this.getOption("printMarginColumn")},this.getShowGutter=function(){return this.getOption("showGutter")},this.setShowGutter=function(e){return this.setOption("showGutter",e)},this.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},this.setFadeFoldWidgets=function(e){this.setOption("fadeFoldWidgets",e)},this.setHighlightGutterLine=function(e){this.setOption("highlightGutterLine",e)},this.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},this.$updatePrintMargin=function(){if(this.$showPrintMargin||this.$printMarginEl){if(!this.$printMarginEl){var e=o.createElement("div");e.className="ace_layer ace_print-margin-layer",this.$printMarginEl=o.createElement("div"),this.$printMarginEl.className="ace_print-margin",e.appendChild(this.$printMarginEl),this.content.insertBefore(e,this.content.firstChild)}var t=this.$printMarginEl.style;t.left=Math.round(this.characterWidth*this.$printMarginColumn+this.$padding)+"px",t.visibility=this.$showPrintMargin?"visible":"hidden",this.session&&-1==this.session.$wrap&&this.adjustWrapLimit()}},this.getContainerElement=function(){return this.container},this.getMouseEventTarget=function(){return this.scroller},this.getTextAreaContainer=function(){return this.container},this.$moveTextAreaToCursor=function(){if(!this.$isMousePressed){var e=this.textarea.style,t=this.$composition;if(this.$keepTextAreaAtCursor||t){var i=this.$cursorLayer.$pixelPos;if(i){t&&t.markerRange&&(i=this.$cursorLayer.getPixelPosition(t.markerRange.start,!0));var n=this.layerConfig,s=i.top,r=i.left;s-=n.offset;var a=t&&t.useTextareaForIME?this.lineHeight:b?0:1;if(s<0||s>n.height-a)o.translate(this.textarea,0,0);else{var c=1,l=this.$size.height-a;if(t)if(t.useTextareaForIME){var h=this.textarea.value;c=this.characterWidth*this.session.$getStringScreenWidth(h)[0]}else s+=this.lineHeight+2;else s+=this.lineHeight;(r-=this.scrollLeft)>this.$size.scrollerWidth-c&&(r=this.$size.scrollerWidth-c),r+=this.gutterWidth+this.margin.left,o.setStyle(e,"height",a+"px"),o.setStyle(e,"width",c+"px"),o.translate(this.textarea,Math.min(r,this.$size.scrollerWidth-c),Math.min(s,l))}}}else o.translate(this.textarea,-100,0)}},this.getFirstVisibleRow=function(){return this.layerConfig.firstRow},this.getFirstFullyVisibleRow=function(){return this.layerConfig.firstRow+(0===this.layerConfig.offset?0:1)},this.getLastFullyVisibleRow=function(){var e=this.layerConfig,t=e.lastRow;return this.session.documentToScreenRow(t,0)*e.lineHeight-this.session.getScrollTop()>e.height-e.lineHeight?t-1:t},this.getLastVisibleRow=function(){return this.layerConfig.lastRow},this.$padding=null,this.setPadding=function(e){this.$padding=e,this.$textLayer.setPadding(e),this.$cursorLayer.setPadding(e),this.$markerFront.setPadding(e),this.$markerBack.setPadding(e),this.$loop.schedule(this.CHANGE_FULL),this.$updatePrintMargin()},this.setScrollMargin=function(e,t,i,n){var o=this.scrollMargin;o.top=0|e,o.bottom=0|t,o.right=0|n,o.left=0|i,o.v=o.top+o.bottom,o.h=o.left+o.right,o.top&&this.scrollTop<=0&&this.session&&this.session.setScrollTop(-o.top),this.updateFull()},this.setMargin=function(e,t,i,n){var o=this.margin;o.top=0|e,o.bottom=0|t,o.right=0|n,o.left=0|i,o.v=o.top+o.bottom,o.h=o.left+o.right,this.$updateCachedSize(!0,this.gutterWidth,this.$size.width,this.$size.height),this.updateFull()},this.getHScrollBarAlwaysVisible=function(){return this.$hScrollBarAlwaysVisible},this.setHScrollBarAlwaysVisible=function(e){this.setOption("hScrollBarAlwaysVisible",e)},this.getVScrollBarAlwaysVisible=function(){return this.$vScrollBarAlwaysVisible},this.setVScrollBarAlwaysVisible=function(e){this.setOption("vScrollBarAlwaysVisible",e)},this.$updateScrollBarV=function(){var e=this.layerConfig.maxHeight,t=this.$size.scrollerHeight;!this.$maxLines&&this.$scrollPastEnd&&(e-=(t-this.lineHeight)*this.$scrollPastEnd,this.scrollTop>e-t&&(e=this.scrollTop+t,this.scrollBarV.scrollTop=null)),this.scrollBarV.setScrollHeight(e+this.scrollMargin.v),this.scrollBarV.setScrollTop(this.scrollTop+this.scrollMargin.top)},this.$updateScrollBarH=function(){this.scrollBarH.setScrollWidth(this.layerConfig.width+2*this.$padding+this.scrollMargin.h),this.scrollBarH.setScrollLeft(this.scrollLeft+this.scrollMargin.left)},this.$frozen=!1,this.freeze=function(){this.$frozen=!0},this.unfreeze=function(){this.$frozen=!1},this.$renderChanges=function(e,t){if(this.$changes&&(e|=this.$changes,this.$changes=0),this.session&&this.container.offsetWidth&&!this.$frozen&&(e||t)){if(this.$size.$dirty)return this.$changes|=e,this.onResize(!0);this.lineHeight||this.$textLayer.checkForSizeChanges(),this._signal("beforeRender",e),this.session&&this.session.$bidiHandler&&this.session.$bidiHandler.updateCharacterWidths(this.$fontMetrics);var i=this.layerConfig;if(e&this.CHANGE_FULL||e&this.CHANGE_SIZE||e&this.CHANGE_TEXT||e&this.CHANGE_LINES||e&this.CHANGE_SCROLL||e&this.CHANGE_H_SCROLL){if(e|=this.$computeLayerConfig()|this.$loop.clear(),i.firstRow!=this.layerConfig.firstRow&&i.firstRowScreen==this.layerConfig.firstRowScreen){var n=this.scrollTop+(i.firstRow-this.layerConfig.firstRow)*this.lineHeight;n>0&&(this.scrollTop=n,e|=this.CHANGE_SCROLL,e|=this.$computeLayerConfig()|this.$loop.clear())}i=this.layerConfig,this.$updateScrollBarV(),e&this.CHANGE_H_SCROLL&&this.$updateScrollBarH(),o.translate(this.content,-this.scrollLeft,-i.offset);var s=i.width+2*this.$padding+"px",r=i.minHeight+"px";o.setStyle(this.content.style,"width",s),o.setStyle(this.content.style,"height",r)}if(e&this.CHANGE_H_SCROLL&&(o.translate(this.content,-this.scrollLeft,-i.offset),this.scroller.className=this.scrollLeft<=0?"ace_scroller":"ace_scroller ace_scroll-left"),e&this.CHANGE_FULL)return this.$changedLines=null,this.$textLayer.update(i),this.$showGutter&&this.$gutterLayer.update(i),this.$markerBack.update(i),this.$markerFront.update(i),this.$cursorLayer.update(i),this.$moveTextAreaToCursor(),void this._signal("afterRender",e);if(e&this.CHANGE_SCROLL)return this.$changedLines=null,e&this.CHANGE_TEXT||e&this.CHANGE_LINES?this.$textLayer.update(i):this.$textLayer.scrollLines(i),this.$showGutter&&(e&this.CHANGE_GUTTER||e&this.CHANGE_LINES?this.$gutterLayer.update(i):this.$gutterLayer.scrollLines(i)),this.$markerBack.update(i),this.$markerFront.update(i),this.$cursorLayer.update(i),this.$moveTextAreaToCursor(),void this._signal("afterRender",e);e&this.CHANGE_TEXT?(this.$changedLines=null,this.$textLayer.update(i),this.$showGutter&&this.$gutterLayer.update(i)):e&this.CHANGE_LINES?(this.$updateLines()||e&this.CHANGE_GUTTER&&this.$showGutter)&&this.$gutterLayer.update(i):e&this.CHANGE_TEXT||e&this.CHANGE_GUTTER?this.$showGutter&&this.$gutterLayer.update(i):e&this.CHANGE_CURSOR&&this.$highlightGutterLine&&this.$gutterLayer.updateLineHighlight(i),e&this.CHANGE_CURSOR&&(this.$cursorLayer.update(i),this.$moveTextAreaToCursor()),e&(this.CHANGE_MARKER|this.CHANGE_MARKER_FRONT)&&this.$markerFront.update(i),e&(this.CHANGE_MARKER|this.CHANGE_MARKER_BACK)&&this.$markerBack.update(i),this._signal("afterRender",e)}else this.$changes|=e},this.$autosize=function(){var e=this.session.getScreenLength()*this.lineHeight,t=this.$maxLines*this.lineHeight,i=Math.min(t,Math.max((this.$minLines||1)*this.lineHeight,e))+this.scrollMargin.v+(this.$extraHeight||0);this.$horizScroll&&(i+=this.scrollBarH.getHeight()),this.$maxPixelHeight&&i>this.$maxPixelHeight&&(i=this.$maxPixelHeight);var n=!(i<=2*this.lineHeight)&&e>t;if(i!=this.desiredHeight||this.$size.height!=this.desiredHeight||n!=this.$vScroll){n!=this.$vScroll&&(this.$vScroll=n,this.scrollBarV.setVisible(n));var o=this.container.clientWidth;this.container.style.height=i+"px",this.$updateCachedSize(!0,this.$gutterWidth,o,i),this.desiredHeight=i,this._signal("autosize")}},this.$computeLayerConfig=function(){var e=this.session,t=this.$size,i=t.height<=2*this.lineHeight,n=this.session.getScreenLength()*this.lineHeight,o=this.$getLongestLine(),s=!i&&(this.$hScrollBarAlwaysVisible||t.scrollerWidth-o-2*this.$padding<0),r=this.$horizScroll!==s;r&&(this.$horizScroll=s,this.scrollBarH.setVisible(s));var a=this.$vScroll;this.$maxLines&&this.lineHeight>1&&this.$autosize();var c=t.scrollerHeight+this.lineHeight,l=!this.$maxLines&&this.$scrollPastEnd?(t.scrollerHeight-this.lineHeight)*this.$scrollPastEnd:0;n+=l;var h=this.scrollMargin;this.session.setScrollTop(Math.max(-h.top,Math.min(this.scrollTop,n-t.scrollerHeight+h.bottom))),this.session.setScrollLeft(Math.max(-h.left,Math.min(this.scrollLeft,o+2*this.$padding-t.scrollerWidth+h.right)));var d=!i&&(this.$vScrollBarAlwaysVisible||t.scrollerHeight-n+l<0||this.scrollTop>h.top),u=a!==d;u&&(this.$vScroll=d,this.scrollBarV.setVisible(d));var f,g,p=this.scrollTop%this.lineHeight,m=Math.ceil(c/this.lineHeight)-1,b=Math.max(0,Math.round((this.scrollTop-p)/this.lineHeight)),v=b+m,w=this.lineHeight;b=e.screenToDocumentRow(b,0);var x=e.getFoldLine(b);x&&(b=x.start.row),f=e.documentToScreenRow(b,0),g=e.getRowLength(b)*w,v=Math.min(e.screenToDocumentRow(v,0),e.getLength()-1),c=t.scrollerHeight+e.getRowLength(v)*w+g,p=this.scrollTop-f*w;var y=0;return(this.layerConfig.width!=o||r)&&(y=this.CHANGE_H_SCROLL),(r||u)&&(y|=this.$updateCachedSize(!0,this.gutterWidth,t.width,t.height),this._signal("scrollbarVisibilityChanged"),u&&(o=this.$getLongestLine())),this.layerConfig={width:o,padding:this.$padding,firstRow:b,firstRowScreen:f,lastRow:v,lineHeight:w,characterWidth:this.characterWidth,minHeight:c,maxHeight:n,offset:p,gutterOffset:w?Math.max(0,Math.ceil((p+t.height-t.scrollerHeight)/w)):0,height:this.$size.scrollerHeight},this.session.$bidiHandler&&this.session.$bidiHandler.setContentWidth(o-this.$padding),y},this.$updateLines=function(){if(this.$changedLines){var e=this.$changedLines.firstRow,t=this.$changedLines.lastRow;this.$changedLines=null;var i=this.layerConfig;if(!(e>i.lastRow+1||tthis.$textLayer.MAX_LINE_LENGTH&&(e=this.$textLayer.MAX_LINE_LENGTH+30),Math.max(this.$size.scrollerWidth-2*this.$padding,Math.round(e*this.characterWidth))},this.updateFrontMarkers=function(){this.$markerFront.setMarkers(this.session.getMarkers(!0)),this.$loop.schedule(this.CHANGE_MARKER_FRONT)},this.updateBackMarkers=function(){this.$markerBack.setMarkers(this.session.getMarkers()),this.$loop.schedule(this.CHANGE_MARKER_BACK)},this.addGutterDecoration=function(e,t){this.$gutterLayer.addGutterDecoration(e,t)},this.removeGutterDecoration=function(e,t){this.$gutterLayer.removeGutterDecoration(e,t)},this.updateBreakpoints=function(e){this.$loop.schedule(this.CHANGE_GUTTER)},this.setAnnotations=function(e){this.$gutterLayer.setAnnotations(e),this.$loop.schedule(this.CHANGE_GUTTER)},this.updateCursor=function(){this.$loop.schedule(this.CHANGE_CURSOR)},this.hideCursor=function(){this.$cursorLayer.hideCursor()},this.showCursor=function(){this.$cursorLayer.showCursor()},this.scrollSelectionIntoView=function(e,t,i){this.scrollCursorIntoView(e,i),this.scrollCursorIntoView(t,i)},this.scrollCursorIntoView=function(e,t,i){if(0!==this.$size.scrollerHeight){var n=this.$cursorLayer.getPixelPosition(e),o=n.left,s=n.top,r=i&&i.top||0,a=i&&i.bottom||0,c=this.$scrollAnimation?this.session.getScrollTop():this.scrollTop;c+r>s?(t&&c+r>s+this.lineHeight&&(s-=t*this.$size.scrollerHeight),0===s&&(s=-this.scrollMargin.top),this.session.setScrollTop(s)):c+this.$size.scrollerHeight-ao?(o=1-this.scrollMargin.top||(t>0&&this.session.getScrollTop()+this.$size.scrollerHeight-this.layerConfig.maxHeight<-1+this.scrollMargin.bottom||(e<0&&this.session.getScrollLeft()>=1-this.scrollMargin.left||(e>0&&this.session.getScrollLeft()+this.$size.scrollerWidth-this.layerConfig.width<-1+this.scrollMargin.right||void 0)))},this.pixelToScreenCoordinates=function(e,t){var i;if(this.$hasCssTransforms){i={top:0,left:0};var n=this.$fontMetrics.transformCoordinates([e,t]);e=n[1]-this.gutterWidth-this.margin.left,t=n[0]}else i=this.scroller.getBoundingClientRect();var o=e+this.scrollLeft-i.left-this.$padding,s=o/this.characterWidth,r=Math.floor((t+this.scrollTop-i.top)/this.lineHeight),a=this.$blockCursor?Math.floor(s):Math.round(s);return{row:r,column:a,side:s-a>0?1:-1,offsetX:o}},this.screenToTextCoordinates=function(e,t){var i;if(this.$hasCssTransforms){i={top:0,left:0};var n=this.$fontMetrics.transformCoordinates([e,t]);e=n[1]-this.gutterWidth-this.margin.left,t=n[0]}else i=this.scroller.getBoundingClientRect();var o=e+this.scrollLeft-i.left-this.$padding,s=o/this.characterWidth,r=this.$blockCursor?Math.floor(s):Math.round(s),a=Math.floor((t+this.scrollTop-i.top)/this.lineHeight);return this.session.screenToDocumentPosition(a,Math.max(r,0),o)},this.textToScreenCoordinates=function(e,t){var i=this.scroller.getBoundingClientRect(),n=this.session.documentToScreenPosition(e,t),o=this.$padding+(this.session.$bidiHandler.isBidiRow(n.row,e)?this.session.$bidiHandler.getPosLeft(n.column):Math.round(n.column*this.characterWidth)),s=n.row*this.lineHeight;return{pageX:i.left+o-this.scrollLeft,pageY:i.top+s-this.scrollTop}},this.visualizeFocus=function(){o.addCssClass(this.container,"ace_focus")},this.visualizeBlur=function(){o.removeCssClass(this.container,"ace_focus")},this.showComposition=function(e){this.$composition=e,e.cssText||(e.cssText=this.textarea.style.cssText),null==e.useTextareaForIME&&(e.useTextareaForIME=this.$useTextareaForIME),this.$useTextareaForIME?(o.addCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText="",this.$moveTextAreaToCursor(),this.$cursorLayer.element.style.display="none"):e.markerId=this.session.addMarker(e.markerRange,"ace_composition_marker","text")},this.setCompositionText=function(e){var t=this.session.selection.cursor;this.addToken(e,"composition_placeholder",t.row,t.column),this.$moveTextAreaToCursor()},this.hideComposition=function(){if(this.$composition){this.$composition.markerId&&this.session.removeMarker(this.$composition.markerId),o.removeCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText=this.$composition.cssText;var e=this.session.selection.cursor;this.removeExtraToken(e.row,e.column),this.$composition=null,this.$cursorLayer.element.style.display=""}},this.addToken=function(e,t,i,n){var o=this.session;o.bgTokenizer.lines[i]=null;var s={type:t,value:e},r=o.getTokens(i);if(null==n)r.push(s);else for(var a=0,c=0;c50&&e.length>this.$doc.getLength()>>1?this.call("setValue",[this.$doc.getValue()]):this.emit("change",{data:e}))}}).call(c.prototype);t.UIWorkerClient=function(e,t,i){var n=null,o=!1,a=Object.create(s),l=[],h=new c({messageBuffer:l,terminate:function(){},postMessage:function(e){l.push(e),n&&(o?setTimeout(d):d())}});h.setEmitSync=function(e){o=e};var d=function(){var e=l.shift();e.command?n[e.command].apply(n,e.args):e.event&&a._signal(e.event,e.data)};return a.postMessage=function(e){h.onMessage({data:e})},a.callback=function(e,t){this.postMessage({type:"call",id:t,data:e})},a.emit=function(e,t){this.postMessage({type:"event",name:e,data:t})},r.loadModule(["worker",t],(function(e){for(n=new e[i](a);l.length;)d()})),h},t.WorkerClient=c,t.createWorker=a})),ace.define("ace/placeholder",["require","exports","module","ace/range","ace/lib/event_emitter","ace/lib/oop"],(function(e,t,i){"use strict";var n=e("./range").Range,o=e("./lib/event_emitter").EventEmitter,s=e("./lib/oop"),r=function(e,t,i,n,o,s){var r=this;this.length=t,this.session=e,this.doc=e.getDocument(),this.mainClass=o,this.othersClass=s,this.$onUpdate=this.onUpdate.bind(this),this.doc.on("change",this.$onUpdate),this.$others=n,this.$onCursorChange=function(){setTimeout((function(){r.onCursorChange()}))},this.$pos=i;var a=e.getUndoManager().$undoStack||e.getUndoManager().$undostack||{length:-1};this.$undoStackDepth=a.length,this.setup(),e.selection.on("changeCursor",this.$onCursorChange)};(function(){s.implement(this,o),this.setup=function(){var e=this,t=this.doc,i=this.session;this.selectionBefore=i.selection.toJSON(),i.selection.inMultiSelectMode&&i.selection.toSingleRange(),this.pos=t.createAnchor(this.$pos.row,this.$pos.column);var o=this.pos;o.$insertRight=!0,o.detach(),o.markerId=i.addMarker(new n(o.row,o.column,o.row,o.column+this.length),this.mainClass,null,!1),this.others=[],this.$others.forEach((function(i){var n=t.createAnchor(i.row,i.column);n.$insertRight=!0,n.detach(),e.others.push(n)})),i.setUndoSelect(!1)},this.showOtherMarkers=function(){if(!this.othersActive){var e=this.session,t=this;this.othersActive=!0,this.others.forEach((function(i){i.markerId=e.addMarker(new n(i.row,i.column,i.row,i.column+t.length),t.othersClass,null,!1)}))}},this.hideOtherMarkers=function(){if(this.othersActive){this.othersActive=!1;for(var e=0;e=this.pos.column&&t.start.column<=this.pos.column+this.length+1,s=t.start.column-this.pos.column;if(this.updateAnchors(e),o&&(this.length+=i),o&&!this.session.$fromUndo)if("insert"===e.action)for(var r=this.others.length-1;r>=0;r--){var a={row:(c=this.others[r]).row,column:c.column+s};this.doc.insertMergedLines(a,e.lines)}else if("remove"===e.action)for(r=this.others.length-1;r>=0;r--){var c;a={row:(c=this.others[r]).row,column:c.column+s};this.doc.remove(new n(a.row,a.column,a.row,a.column-i))}this.$updating=!1,this.updateMarkers()}},this.updateAnchors=function(e){this.pos.onChange(e);for(var t=this.others.length;t--;)this.others[t].onChange(e);this.updateMarkers()},this.updateMarkers=function(){if(!this.$updating){var e=this,t=this.session,i=function(i,o){t.removeMarker(i.markerId),i.markerId=t.addMarker(new n(i.row,i.column,i.row,i.column+e.length),o,null,!1)};i(this.pos,this.mainClass);for(var o=this.others.length;o--;)i(this.others[o],this.othersClass)}},this.onCursorChange=function(e){if(!this.$updating&&this.session){var t=this.session.selection.getCursor();t.row===this.pos.row&&t.column>=this.pos.column&&t.column<=this.pos.column+this.length?(this.showOtherMarkers(),this._emit("cursorEnter",e)):(this.hideOtherMarkers(),this._emit("cursorLeave",e))}},this.detach=function(){this.session.removeMarker(this.pos&&this.pos.markerId),this.hideOtherMarkers(),this.doc.off("change",this.$onUpdate),this.session.selection.off("changeCursor",this.$onCursorChange),this.session.setUndoSelect(!0),this.session=null},this.cancel=function(){if(-1!==this.$undoStackDepth){for(var e=this.session.getUndoManager(),t=(e.$undoStack||e.$undostack).length-this.$undoStackDepth,i=0;i1?e.multiSelect.joinSelections():e.multiSelect.splitIntoLines()},bindKey:{win:"Ctrl-Alt-L",mac:"Ctrl-Alt-L"},readOnly:!0},{name:"splitSelectionIntoLines",description:"Split into lines",exec:function(e){e.multiSelect.splitIntoLines()},readOnly:!0},{name:"alignCursors",description:"Align cursors",exec:function(e){e.alignCursors()},bindKey:{win:"Ctrl-Alt-A",mac:"Ctrl-Alt-A"},scrollIntoView:"cursor"},{name:"findAll",description:"Find all",exec:function(e){e.findAll()},bindKey:{win:"Ctrl-Alt-K",mac:"Ctrl-Alt-G"},scrollIntoView:"cursor",readOnly:!0}],t.multiSelectCommands=[{name:"singleSelection",description:"Single selection",bindKey:"esc",exec:function(e){e.exitMultiSelectMode()},scrollIntoView:"cursor",readOnly:!0,isAvailable:function(e){return e&&e.inMultiSelectMode}}];var n=e("../keyboard/hash_handler").HashHandler;t.keyboardHandler=new n(t.multiSelectCommands)})),ace.define("ace/multi_select",["require","exports","module","ace/range_list","ace/range","ace/selection","ace/mouse/multi_select_handler","ace/lib/event","ace/lib/lang","ace/commands/multi_select_commands","ace/search","ace/edit_session","ace/editor","ace/config"],(function(e,t,i){var n=e("./range_list").RangeList,o=e("./range").Range,s=e("./selection").Selection,r=e("./mouse/multi_select_handler").onMouseDown,a=e("./lib/event"),c=e("./lib/lang"),l=e("./commands/multi_select_commands");t.commands=l.defaultCommands.concat(l.multiSelectCommands);var h=new(0,e("./search").Search);var d=e("./edit_session").EditSession;(function(){this.getSelectionMarkers=function(){return this.$selectionMarkers}}).call(d.prototype),function(){this.ranges=null,this.rangeList=null,this.addRange=function(e,t){if(e){if(!this.inMultiSelectMode&&0===this.rangeCount){var i=this.toOrientedRange();if(this.rangeList.add(i),this.rangeList.add(e),2!=this.rangeList.ranges.length)return this.rangeList.removeAll(),t||this.fromOrientedRange(e);this.rangeList.removeAll(),this.rangeList.add(i),this.$onAddRange(i)}e.cursor||(e.cursor=e.end);var n=this.rangeList.add(e);return this.$onAddRange(e),n.length&&this.$onRemoveRange(n),this.rangeCount>1&&!this.inMultiSelectMode&&(this._signal("multiSelect"),this.inMultiSelectMode=!0,this.session.$undoSelect=!1,this.rangeList.attach(this.session)),t||this.fromOrientedRange(e)}},this.toSingleRange=function(e){e=e||this.ranges[0];var t=this.rangeList.removeAll();t.length&&this.$onRemoveRange(t),e&&this.fromOrientedRange(e)},this.substractPoint=function(e){var t=this.rangeList.substractPoint(e);if(t)return this.$onRemoveRange(t),t[0]},this.mergeOverlappingRanges=function(){var e=this.rangeList.merge();e.length&&this.$onRemoveRange(e)},this.$onAddRange=function(e){this.rangeCount=this.rangeList.ranges.length,this.ranges.unshift(e),this._signal("addRange",{range:e})},this.$onRemoveRange=function(e){if(this.rangeCount=this.rangeList.ranges.length,1==this.rangeCount&&this.inMultiSelectMode){var t=this.rangeList.ranges.pop();e.push(t),this.rangeCount=0}for(var i=e.length;i--;){var n=this.ranges.indexOf(e[i]);this.ranges.splice(n,1)}this._signal("removeRange",{ranges:e}),0===this.rangeCount&&this.inMultiSelectMode&&(this.inMultiSelectMode=!1,this._signal("singleSelect"),this.session.$undoSelect=!0,this.rangeList.detach(this.session)),(t=t||this.ranges[0])&&!t.isEqual(this.getRange())&&this.fromOrientedRange(t)},this.$initRangeList=function(){this.rangeList||(this.rangeList=new n,this.ranges=[],this.rangeCount=0)},this.getAllRanges=function(){return this.rangeCount?this.rangeList.ranges.concat():[this.getRange()]},this.splitIntoLines=function(){for(var e=this.ranges.length?this.ranges:[this.getRange()],t=[],i=0;i1){var e=this.rangeList.ranges,t=e[e.length-1],i=o.fromPoints(e[0].start,t.end);this.toSingleRange(),this.setSelectionRange(i,t.cursor==t.start)}else{var n=this.session.documentToScreenPosition(this.cursor),s=this.session.documentToScreenPosition(this.anchor);this.rectangularRangeBlock(n,s).forEach(this.addRange,this)}},this.rectangularRangeBlock=function(e,t,i){var n=[],s=e.column0;)v--;if(v>0)for(var w=0;n[w].isEmpty();)w++;for(var x=v;x>=w;x--)n[x].isEmpty()&&n.splice(x,1)}return n}}.call(s.prototype);var u=e("./editor").Editor;function f(e){e.$multiselectOnSessionChange||(e.$onAddRange=e.$onAddRange.bind(e),e.$onRemoveRange=e.$onRemoveRange.bind(e),e.$onMultiSelect=e.$onMultiSelect.bind(e),e.$onSingleSelect=e.$onSingleSelect.bind(e),e.$multiselectOnSessionChange=t.onSessionChange.bind(e),e.$checkMultiselectChange=e.$checkMultiselectChange.bind(e),e.$multiselectOnSessionChange(e),e.on("changeSession",e.$multiselectOnSessionChange),e.on("mousedown",r),e.commands.addCommands(l.defaultCommands),function(e){if(!e.textInput)return;var t=e.textInput.getElement(),i=!1;function n(t){i&&(e.renderer.setMouseCursor(""),i=!1)}a.addListener(t,"keydown",(function(t){var o=18==t.keyCode&&!(t.ctrlKey||t.shiftKey||t.metaKey);e.$blockSelectEnabled&&o?i||(e.renderer.setMouseCursor("crosshair"),i=!0):i&&n()}),e),a.addListener(t,"keyup",n,e),a.addListener(t,"blur",n,e)}(e))}(function(){this.updateSelectionMarkers=function(){this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.addSelectionMarker=function(e){e.cursor||(e.cursor=e.end);var t=this.getSelectionStyle();return e.marker=this.session.addMarker(e,"ace_selection",t),this.session.$selectionMarkers.push(e),this.session.selectionMarkerCount=this.session.$selectionMarkers.length,e},this.removeSelectionMarker=function(e){if(e.marker){this.session.removeMarker(e.marker);var t=this.session.$selectionMarkers.indexOf(e);-1!=t&&this.session.$selectionMarkers.splice(t,1),this.session.selectionMarkerCount=this.session.$selectionMarkers.length}},this.removeSelectionMarkers=function(e){for(var t=this.session.$selectionMarkers,i=e.length;i--;){var n=e[i];if(n.marker){this.session.removeMarker(n.marker);var o=t.indexOf(n);-1!=o&&t.splice(o,1)}}this.session.selectionMarkerCount=t.length},this.$onAddRange=function(e){this.addSelectionMarker(e.range),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onRemoveRange=function(e){this.removeSelectionMarkers(e.ranges),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onMultiSelect=function(e){this.inMultiSelectMode||(this.inMultiSelectMode=!0,this.setStyle("ace_multiselect"),this.keyBinding.addKeyboardHandler(l.keyboardHandler),this.commands.setDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers())},this.$onSingleSelect=function(e){this.session.multiSelect.inVirtualMode||(this.inMultiSelectMode=!1,this.unsetStyle("ace_multiselect"),this.keyBinding.removeKeyboardHandler(l.keyboardHandler),this.commands.removeDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers(),this._emit("changeSelection"))},this.$onMultiSelectExec=function(e){var t=e.command,i=e.editor;if(i.multiSelect){if(t.multiSelectAction)"forEach"==t.multiSelectAction?n=i.forEachSelection(t,e.args):"forEachLine"==t.multiSelectAction?n=i.forEachSelection(t,e.args,!0):"single"==t.multiSelectAction?(i.exitMultiSelectMode(),n=t.exec(i,e.args||{})):n=t.multiSelectAction(i,e.args||{});else{var n=t.exec(i,e.args||{});i.multiSelect.addRange(i.multiSelect.toOrientedRange()),i.multiSelect.mergeOverlappingRanges()}return n}},this.forEachSelection=function(e,t,i){if(!this.inVirtualSelectionMode){var n,o=i&&i.keepOrder,r=1==i||i&&i.$byLines,a=this.session,c=this.selection,l=c.rangeList,h=(o?c:l).ranges;if(!h.length)return e.exec?e.exec(this,t||{}):e(this,t||{});var d=c._eventRegistry;c._eventRegistry={};var u=new s(a);this.inVirtualSelectionMode=!0;for(var f=h.length;f--;){if(r)for(;f>0&&h[f].start.row==h[f-1].end.row;)f--;u.fromOrientedRange(h[f]),u.index=f,this.selection=a.selection=u;var g=e.exec?e.exec(this,t||{}):e(this,t||{});n||void 0===g||(n=g),u.toOrientedRange(h[f])}u.detach(),this.selection=a.selection=c,this.inVirtualSelectionMode=!1,c._eventRegistry=d,c.mergeOverlappingRanges(),c.ranges[0]&&c.fromOrientedRange(c.ranges[0]);var p=this.renderer.$scrollAnimation;return this.onCursorChange(),this.onSelectionChange(),p&&p.from==p.to&&this.renderer.animateScrolling(p.from),n}},this.exitMultiSelectMode=function(){this.inMultiSelectMode&&!this.inVirtualSelectionMode&&this.multiSelect.toSingleRange()},this.getSelectedText=function(){var e="";if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){for(var t=this.multiSelect.rangeList.ranges,i=[],n=0;nr&&(r=i.column),nh?e.insert(n,c.stringRepeat(" ",s-h)):e.remove(new o(n.row,n.column,n.row,n.column-s+h)),t.start.column=t.end.column=r,t.start.row=t.end.row=n.row,t.cursor=t.end})),t.fromOrientedRange(i[0]),this.renderer.updateCursor(),this.renderer.updateBackMarkers()}else{var h=this.selection.getRange(),d=h.start.row,u=h.end.row,f=d==u;if(f){var g,p=this.session.getLength();do{g=this.session.getLine(u)}while(/[=:]/.test(g)&&++u0);d<0&&(d=0),u>=p&&(u=p-1)}var m=this.session.removeFullLines(d,u);m=this.$reAlignText(m,f),this.session.insert({row:d,column:0},m.join("\n")+"\n"),f||(h.start.column=0,h.end.column=m[m.length-1].length),this.selection.setRange(h)}},this.$reAlignText=function(e,t){var i,n,o,s=!0,r=!0;return e.map((function(e){var t=e.match(/(\s*)(.*?)(\s*)([=:].*)/);return t?null==i?(i=t[1].length,n=t[2].length,o=t[3].length,t):(i+n+o!=t[1].length+t[2].length+t[3].length&&(r=!1),i!=t[1].length&&(s=!1),i>t[1].length&&(i=t[1].length),nt[3].length&&(o=t[3].length),t):[e]})).map(t?l:s?r?function(e){return e[2]?a(i+n-e[2].length)+e[2]+a(o)+e[4].replace(/^([=:])\s+/,"$1 "):e[0]}:l:function(e){return e[2]?a(i)+e[2]+a(o)+e[4].replace(/^([=:])\s+/,"$1 "):e[0]});function a(e){return c.stringRepeat(" ",e)}function l(e){return e[2]?a(i)+e[2]+a(n-e[2].length+o)+e[4].replace(/^([=:])\s+/,"$1 "):e[0]}}}).call(u.prototype),t.onSessionChange=function(e){var t=e.session;t&&!t.multiSelect&&(t.$selectionMarkers=[],t.selection.$initRangeList(),t.multiSelect=t.selection),this.multiSelect=t&&t.multiSelect;var i=e.oldSession;i&&(i.multiSelect.off("addRange",this.$onAddRange),i.multiSelect.off("removeRange",this.$onRemoveRange),i.multiSelect.off("multiSelect",this.$onMultiSelect),i.multiSelect.off("singleSelect",this.$onSingleSelect),i.multiSelect.lead.off("change",this.$checkMultiselectChange),i.multiSelect.anchor.off("change",this.$checkMultiselectChange)),t&&(t.multiSelect.on("addRange",this.$onAddRange),t.multiSelect.on("removeRange",this.$onRemoveRange),t.multiSelect.on("multiSelect",this.$onMultiSelect),t.multiSelect.on("singleSelect",this.$onSingleSelect),t.multiSelect.lead.on("change",this.$checkMultiselectChange),t.multiSelect.anchor.on("change",this.$checkMultiselectChange)),t&&this.inMultiSelectMode!=t.selection.inMultiSelectMode&&(t.selection.inMultiSelectMode?this.$onMultiSelect():this.$onSingleSelect())},t.MultiSelect=f,e("./config").defineOptions(u.prototype,"editor",{enableMultiselect:{set:function(e){f(this),e?(this.on("changeSession",this.$multiselectOnSessionChange),this.on("mousedown",r)):(this.off("changeSession",this.$multiselectOnSessionChange),this.off("mousedown",r))},value:!0},enableBlockSelect:{set:function(e){this.$blockSelectEnabled=e},value:!0}})})),ace.define("ace/mode/folding/fold_mode",["require","exports","module","ace/range"],(function(e,t,i){"use strict";var n=e("../../range").Range,o=t.FoldMode=function(){};(function(){this.foldingStartMarker=null,this.foldingStopMarker=null,this.getFoldWidget=function(e,t,i){var n=e.getLine(i);return this.foldingStartMarker.test(n)?"start":"markbeginend"==t&&this.foldingStopMarker&&this.foldingStopMarker.test(n)?"end":""},this.getFoldWidgetRange=function(e,t,i){return null},this.indentationBlock=function(e,t,i){var o=/\S/,s=e.getLine(t),r=s.search(o);if(-1!=r){for(var a=i||s.length,c=e.getLength(),l=t,h=t;++tl){var f=e.getLine(h).length;return new n(l,a,h,f)}}},this.openingBracketBlock=function(e,t,i,o,s){var r={row:i,column:o+1},a=e.$findClosingBracket(t,r,s);if(a){var c=e.foldWidgets[a.row];return null==c&&(c=e.getFoldWidget(a.row)),"start"==c&&a.row>r.row&&(a.row--,a.column=e.getLine(a.row).length),n.fromPoints(r,a)}},this.closingBracketBlock=function(e,t,i,o,s){var r={row:i,column:o},a=e.$findOpeningBracket(t,r);if(a)return a.column++,r.column--,n.fromPoints(a,r)}}).call(o.prototype)})),ace.define("ace/theme/textmate",["require","exports","module","ace/lib/dom"],(function(e,t,i){"use strict";t.isDark=!1,t.cssClass="ace-tm",t.cssText='.ace-tm .ace_gutter {background: #f0f0f0;color: #333;}.ace-tm .ace_print-margin {width: 1px;background: #e8e8e8;}.ace-tm .ace_fold {background-color: #6B72E6;}.ace-tm {background-color: #FFFFFF;color: black;}.ace-tm .ace_cursor {color: black;}.ace-tm .ace_invisible {color: rgb(191, 191, 191);}.ace-tm .ace_storage,.ace-tm .ace_keyword {color: blue;}.ace-tm .ace_constant {color: rgb(197, 6, 11);}.ace-tm .ace_constant.ace_buildin {color: rgb(88, 72, 246);}.ace-tm .ace_constant.ace_language {color: rgb(88, 92, 246);}.ace-tm .ace_constant.ace_library {color: rgb(6, 150, 14);}.ace-tm .ace_invalid {background-color: rgba(255, 0, 0, 0.1);color: red;}.ace-tm .ace_support.ace_function {color: rgb(60, 76, 114);}.ace-tm .ace_support.ace_constant {color: rgb(6, 150, 14);}.ace-tm .ace_support.ace_type,.ace-tm .ace_support.ace_class {color: rgb(109, 121, 222);}.ace-tm .ace_keyword.ace_operator {color: rgb(104, 118, 135);}.ace-tm .ace_string {color: rgb(3, 106, 7);}.ace-tm .ace_comment {color: rgb(76, 136, 107);}.ace-tm .ace_comment.ace_doc {color: rgb(0, 102, 255);}.ace-tm .ace_comment.ace_doc.ace_tag {color: rgb(128, 159, 191);}.ace-tm .ace_constant.ace_numeric {color: rgb(0, 0, 205);}.ace-tm .ace_variable {color: rgb(49, 132, 149);}.ace-tm .ace_xml-pe {color: rgb(104, 104, 91);}.ace-tm .ace_entity.ace_name.ace_function {color: #0000A2;}.ace-tm .ace_heading {color: rgb(12, 7, 255);}.ace-tm .ace_list {color:rgb(185, 6, 144);}.ace-tm .ace_meta.ace_tag {color:rgb(0, 22, 142);}.ace-tm .ace_string.ace_regex {color: rgb(255, 0, 0)}.ace-tm .ace_marker-layer .ace_selection {background: rgb(181, 213, 255);}.ace-tm.ace_multiselect .ace_selection.ace_start {box-shadow: 0 0 3px 0px white;}.ace-tm .ace_marker-layer .ace_step {background: rgb(252, 255, 0);}.ace-tm .ace_marker-layer .ace_stack {background: rgb(164, 229, 101);}.ace-tm .ace_marker-layer .ace_bracket {margin: -1px 0 0 -1px;border: 1px solid rgb(192, 192, 192);}.ace-tm .ace_marker-layer .ace_active-line {background: rgba(0, 0, 0, 0.07);}.ace-tm .ace_gutter-active-line {background-color : #dcdcdc;}.ace-tm .ace_marker-layer .ace_selected-word {background: rgb(250, 250, 255);border: 1px solid rgb(200, 200, 250);}.ace-tm .ace_indent-guide {background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==") right repeat-y;}',t.$id="ace/theme/textmate",e("../lib/dom").importCssString(t.cssText,t.cssClass)})),ace.define("ace/line_widgets",["require","exports","module","ace/lib/dom"],(function(e,t,i){"use strict";var n=e("./lib/dom");function o(e){this.session=e,this.session.widgetManager=this,this.session.getRowLength=this.getRowLength,this.session.$getWidgetScreenLength=this.$getWidgetScreenLength,this.updateOnChange=this.updateOnChange.bind(this),this.renderWidgets=this.renderWidgets.bind(this),this.measureWidgets=this.measureWidgets.bind(this),this.session._changedWidgets=[],this.$onChangeEditor=this.$onChangeEditor.bind(this),this.session.on("change",this.updateOnChange),this.session.on("changeFold",this.updateOnFold),this.session.on("changeEditor",this.$onChangeEditor)}(function(){this.getRowLength=function(e){var t;return t=this.lineWidgets&&this.lineWidgets[e]&&this.lineWidgets[e].rowCount||0,this.$useWrapMode&&this.$wrapData[e]?this.$wrapData[e].length+1+t:1+t},this.$getWidgetScreenLength=function(){var e=0;return this.lineWidgets.forEach((function(t){t&&t.rowCount&&!t.hidden&&(e+=t.rowCount)})),e},this.$onChangeEditor=function(e){this.attach(e.editor)},this.attach=function(e){e&&e.widgetManager&&e.widgetManager!=this&&e.widgetManager.detach(),this.editor!=e&&(this.detach(),this.editor=e,e&&(e.widgetManager=this,e.renderer.on("beforeRender",this.measureWidgets),e.renderer.on("afterRender",this.renderWidgets)))},this.detach=function(e){var t=this.editor;if(t){this.editor=null,t.widgetManager=null,t.renderer.off("beforeRender",this.measureWidgets),t.renderer.off("afterRender",this.renderWidgets);var i=this.session.lineWidgets;i&&i.forEach((function(e){e&&e.el&&e.el.parentNode&&(e._inDocument=!1,e.el.parentNode.removeChild(e.el))}))}},this.updateOnFold=function(e,t){var i=t.lineWidgets;if(i&&e.action){for(var n=e.data,o=n.start.row,s=n.end.row,r="add"==e.action,a=o+1;at[i].column&&i++,s.unshift(i,0),t.splice.apply(t,s),this.$updateRows()}}},this.$updateRows=function(){var e=this.session.lineWidgets;if(e){var t=!0;e.forEach((function(e,i){if(e)for(t=!1,e.row=i;e.$oldWidget;)e.$oldWidget.row=i,e=e.$oldWidget})),t&&(this.session.lineWidgets=null)}},this.$registerLineWidget=function(e){this.session.lineWidgets||(this.session.lineWidgets=new Array(this.session.getLength()));var t=this.session.lineWidgets[e.row];return t&&(e.$oldWidget=t,t.el&&t.el.parentNode&&(t.el.parentNode.removeChild(t.el),t._inDocument=!1)),this.session.lineWidgets[e.row]=e,e},this.addLineWidget=function(e){if(this.$registerLineWidget(e),e.session=this.session,!this.editor)return e;var t=this.editor.renderer;e.html&&!e.el&&(e.el=n.createElement("div"),e.el.innerHTML=e.html),e.el&&(n.addCssClass(e.el,"ace_lineWidgetContainer"),e.el.style.position="absolute",e.el.style.zIndex=5,t.container.appendChild(e.el),e._inDocument=!0,e.coverGutter||(e.el.style.zIndex=3),null==e.pixelHeight&&(e.pixelHeight=e.el.offsetHeight)),null==e.rowCount&&(e.rowCount=e.pixelHeight/t.layerConfig.lineHeight);var i=this.session.getFoldAt(e.row,0);if(e.$fold=i,i){var o=this.session.lineWidgets;e.row!=i.end.row||o[i.start.row]?e.hidden=!0:o[i.start.row]=e}return this.session._emit("changeFold",{data:{start:{row:e.row}}}),this.$updateRows(),this.renderWidgets(null,t),this.onWidgetChanged(e),e},this.removeLineWidget=function(e){if(e._inDocument=!1,e.session=null,e.el&&e.el.parentNode&&e.el.parentNode.removeChild(e.el),e.editor&&e.editor.destroy)try{e.editor.destroy()}catch(e){}if(this.session.lineWidgets){var t=this.session.lineWidgets[e.row];if(t==e)this.session.lineWidgets[e.row]=e.$oldWidget,e.$oldWidget&&this.onWidgetChanged(e.$oldWidget);else for(;t;){if(t.$oldWidget==e){t.$oldWidget=e.$oldWidget;break}t=t.$oldWidget}}this.session._emit("changeFold",{data:{start:{row:e.row}}}),this.$updateRows()},this.getWidgetsAtRow=function(e){for(var t=this.session.lineWidgets,i=t&&t[e],n=[];i;)n.push(i),i=i.$oldWidget;return n},this.onWidgetChanged=function(e){this.session._changedWidgets.push(e),this.editor&&this.editor.renderer.updateFull()},this.measureWidgets=function(e,t){var i=this.session._changedWidgets,n=t.layerConfig;if(i&&i.length){for(var o=1/0,s=0;s0&&!n[o];)o--;this.firstRow=i.firstRow,this.lastRow=i.lastRow,t.$cursorLayer.config=i;for(var r=o;r<=s;r++){var a=n[r];if(a&&a.el)if(a.hidden)a.el.style.top=-100-(a.pixelHeight||0)+"px";else{a._inDocument||(a._inDocument=!0,t.container.appendChild(a.el));var c=t.$cursorLayer.getPixelPosition({row:r,column:0},!0).top;a.coverLine||(c+=i.lineHeight*this.session.getRowLineCount(a.row)),a.el.style.top=c-i.offset+"px";var l=a.coverGutter?0:t.gutterWidth;a.fixedWidth||(l-=t.scrollLeft),a.el.style.left=l+"px",a.fullWidth&&a.screenWidth&&(a.el.style.minWidth=i.width+2*i.padding+"px"),a.fixedWidth?a.el.style.right=t.scrollBar.getWidth()+"px":a.el.style.right=""}}}}}).call(o.prototype),t.LineWidgets=o})),ace.define("ace/ext/error_marker",["require","exports","module","ace/line_widgets","ace/lib/dom","ace/range"],(function(e,t,i){"use strict";var n=e("../line_widgets").LineWidgets,o=e("../lib/dom"),s=e("../range").Range;t.showErrorMarker=function(e,t){var i=e.session;i.widgetManager||(i.widgetManager=new n(i),i.widgetManager.attach(e));var r=e.getCursorPosition(),a=r.row,c=i.widgetManager.getWidgetsAtRow(a).filter((function(e){return"errorMarker"==e.type}))[0];c?c.destroy():a-=t;var l,h=function(e,t,i){var n=e.getAnnotations().sort(s.comparePoints);if(n.length){var o=function(e,t,i){for(var n=0,o=e.length-1;n<=o;){var s=n+o>>1,r=i(t,e[s]);if(r>0)n=s+1;else{if(!(r<0))return s;o=s-1}}return-(n+1)}(n,{row:t,column:-1},s.comparePoints);o<0&&(o=-o-1),o>=n.length?o=i>0?0:n.length-1:0===o&&i<0&&(o=n.length-1);var r=n[o];if(r&&i){if(r.row===t){do{r=n[o+=i]}while(r&&r.row===t);if(!r)return n.slice()}var a=[];t=r.row;do{a[i<0?"unshift":"push"](r),r=n[o+=i]}while(r&&r.row==t);return a.length&&a}}}(i,a,t);if(h){var d=h[0];r.column=(d.pos&&"number"!=typeof d.column?d.pos.sc:d.column)||0,r.row=d.row,l=e.renderer.$gutterLayer.$annotations[r.row]}else{if(c)return;l={text:["Looks good!"],className:"ace_ok"}}e.session.unfold(r.row),e.selection.moveToPosition(r);var u={row:r.row,fixedWidth:!0,coverGutter:!0,el:o.createElement("div"),type:"errorMarker"},f=u.el.appendChild(o.createElement("div")),g=u.el.appendChild(o.createElement("div"));g.className="error_widget_arrow "+l.className;var p=e.renderer.$cursorLayer.getPixelPosition(r).left;g.style.left=p+e.renderer.gutterWidth-5+"px",u.el.className="error_widget_wrapper",f.className="error_widget "+l.className,f.innerHTML=l.text.join("
    "),f.appendChild(o.createElement("div"));var m=function(e,t,i){if(0===t&&("esc"===i||"return"===i))return u.destroy(),{command:"null"}};u.destroy=function(){e.$mouseHandler.isMousePressed||(e.keyBinding.removeKeyboardHandler(m),i.widgetManager.removeLineWidget(u),e.off("changeSelection",u.destroy),e.off("changeSession",u.destroy),e.off("mouseup",u.destroy),e.off("change",u.destroy))},e.keyBinding.addKeyboardHandler(m),e.on("changeSelection",u.destroy),e.on("changeSession",u.destroy),e.on("mouseup",u.destroy),e.on("change",u.destroy),e.session.widgetManager.addLineWidget(u),u.el.onmousedown=e.focus.bind(e),e.renderer.scrollCursorIntoView(null,.5,{bottom:u.el.offsetHeight})},o.importCssString(" .error_widget_wrapper { background: inherit; color: inherit; border:none } .error_widget { border-top: solid 2px; border-bottom: solid 2px; margin: 5px 0; padding: 10px 40px; white-space: pre-wrap; } .error_widget.ace_error, .error_widget_arrow.ace_error{ border-color: #ff5a5a } .error_widget.ace_warning, .error_widget_arrow.ace_warning{ border-color: #F1D817 } .error_widget.ace_info, .error_widget_arrow.ace_info{ border-color: #5a5a5a } .error_widget.ace_ok, .error_widget_arrow.ace_ok{ border-color: #5aaa5a } .error_widget_arrow { position: absolute; border: solid 5px; border-top-color: transparent!important; border-right-color: transparent!important; border-left-color: transparent!important; top: -5px; }","")})),ace.define("ace/ace",["require","exports","module","ace/lib/fixoldbrowsers","ace/lib/dom","ace/lib/event","ace/range","ace/editor","ace/edit_session","ace/undomanager","ace/virtual_renderer","ace/worker/worker_client","ace/keyboard/hash_handler","ace/placeholder","ace/multi_select","ace/mode/folding/fold_mode","ace/theme/textmate","ace/ext/error_marker","ace/config"],(function(e,t,n){"use strict";e("./lib/fixoldbrowsers");var o=e("./lib/dom"),s=e("./lib/event"),r=e("./range").Range,a=e("./editor").Editor,c=e("./edit_session").EditSession,l=e("./undomanager").UndoManager,h=e("./virtual_renderer").VirtualRenderer;e("./worker/worker_client"),e("./keyboard/hash_handler"),e("./placeholder"),e("./multi_select"),e("./mode/folding/fold_mode"),e("./theme/textmate"),e("./ext/error_marker"),t.config=e("./config"),t.require=e,t.define=i(1267),t.edit=function(e,i){if("string"==typeof e){var n=e;if(!(e=document.getElementById(n)))throw new Error("ace.edit can't find div #"+n)}if(e&&e.env&&e.env.editor instanceof a)return e.env.editor;var r="";if(e&&/input|textarea/i.test(e.tagName)){var c=e;r=c.value,e=o.createElement("pre"),c.parentNode.replaceChild(e,c)}else e&&(r=e.textContent,e.innerHTML="");var l=t.createEditSession(r),d=new a(new h(e),l,i),u={document:l,editor:d,onResize:d.resize.bind(d,null)};return c&&(u.textarea=c),s.addListener(window,"resize",u.onResize),d.on("destroy",(function(){s.removeListener(window,"resize",u.onResize),u.editor.container.env=null})),d.container.env=d.env=u,d},t.createEditSession=function(e,t){var i=new c(e,t);return i.setUndoManager(new l),i},t.Range=r,t.Editor=a,t.EditSession=c,t.UndoManager=l,t.VirtualRenderer=h,t.version=t.config.version})),ace.require(["ace/ace"],(function(t){for(var i in t&&(t.config.init(!0),t.define=ace.define),window.ace||(window.ace=t),t)t.hasOwnProperty(i)&&(window.ace[i]=t[i]);window.ace.default=window.ace,e&&(e.exports=window.ace)}))}).call(this,i(138)(e))},2006:function(e,t,i){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(e,t)},function(e,t){function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),s=this&&this.__assign||function(){return(s=Object.assign||function(e){for(var t,i=1,n=arguments.length;i0&&e.handleMarkers(y,t);for(n=0;n0&&this.handleMarkers(S);var A=this.editor.$options;l.editorOptions.forEach((function(t){A.hasOwnProperty(t)?e.editor.setOption(t,e.props[t]):e.props[t]&&console.warn("ReactAce: editor option "+t+" was activated but not found. Did you need to import a related tool or did you possibly mispell the option?")})),this.handleOptions(this.props),Array.isArray(y)&&y.forEach((function(t){"string"==typeof t.exec?e.editor.commands.bindKey(t.bindKey,t.exec):e.editor.commands.addCommand(t)})),w&&this.editor.setKeyboardHandler("ace/keyboard/"+w),i&&(this.refEditor.className+=" "+i),x&&x(this.editor),this.editor.resize(),r&&this.editor.focus()},t.prototype.componentDidUpdate=function(e){for(var t=e,i=this.props,n=0;n 0!";if(e!=this.$splits){if(e>this.$splits){for(;this.$splitse;)t=this.$editors[this.$splits-1],this.$container.removeChild(t.container),this.$splits--;this.resize()}},this.getSplits=function(){return this.$splits},this.getEditor=function(e){return this.$editors[e]},this.getCurrentEditor=function(){return this.$cEditor},this.focus=function(){this.$cEditor.focus()},this.blur=function(){this.$cEditor.blur()},this.setTheme=function(e){this.$editors.forEach((function(t){t.setTheme(e)}))},this.setKeyboardHandler=function(e){this.$editors.forEach((function(t){t.setKeyboardHandler(e)}))},this.forEach=function(e,t){this.$editors.forEach(e,t)},this.$fontSize="",this.setFontSize=function(e){this.$fontSize=e,this.forEach((function(t){t.setFontSize(e)}))},this.$cloneSession=function(e){var t=new a(e.getDocument(),e.getMode()),i=e.getUndoManager();return t.setUndoManager(i),t.setTabSize(e.getTabSize()),t.setUseSoftTabs(e.getUseSoftTabs()),t.setOverwrite(e.getOverwrite()),t.setBreakpoints(e.getBreakpoints()),t.setUseWrapMode(e.getUseWrapMode()),t.setUseWorker(e.getUseWorker()),t.setWrapLimitRange(e.$wrapLimitRange.min,e.$wrapLimitRange.max),t.$foldData=e.$cloneFoldData(),t},this.setSession=function(e,t){var i;return i=null==t?this.$cEditor:this.$editors[t],this.$editors.some((function(t){return t.session===e}))&&(e=this.$cloneSession(e)),i.setSession(e),e},this.getOrientation=function(){return this.$orientation},this.setOrientation=function(e){this.$orientation!=e&&(this.$orientation=e,this.resize())},this.resize=function(){var e,t=this.$container.clientWidth,i=this.$container.clientHeight;if(this.$orientation==this.BESIDE)for(var n=t/this.$splits,o=0;oh){var u=e.getLine(d).length;return new o(h,c,d,u)}}}}.call(r.prototype)})),ace.define("ace/mode/toml",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/toml_highlight_rules","ace/mode/folding/ini"],(function(e,t,i){"use strict";var n=e("../lib/oop"),o=e("./text").Mode,s=e("./toml_highlight_rules").TomlHighlightRules,r=e("./folding/ini").FoldMode,a=function(){this.HighlightRules=s,this.foldingRules=new r,this.$behaviour=this.$defaultBehaviour};n.inherits(a,o),function(){this.lineCommentStart="#",this.$id="ace/mode/toml"}.call(a.prototype),t.Mode=a})),ace.require(["ace/mode/toml"],(function(t){e&&(e.exports=t)}))}).call(this,i(138)(e))},5711:function(e,t,i){(function(e){ace.define("ace/mode/yaml_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],(function(e,t,i){"use strict";var n=e("../lib/oop"),o=e("./text_highlight_rules").TextHighlightRules,s=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(e,t,i,n){n=n.replace(/ #.*/,"");var o=/^ *((:\s*)?-(\s*[^|>])?)?/.exec(n)[0].replace(/\S\s*$/,"").length,s=parseInt(/\d+[\s+-]*$/.exec(n));return s?(o+=s-1,this.next="mlString"):this.next="mlStringPre",i.length?(i[0]=this.next,i[1]=o):(i.push(this.next),i.push(o)),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,:\[\]\{\}]+/}],mlStringPre:[{token:"indent",regex:/^ *$/},{token:"indent",regex:/^ */,onMatch:function(e,t,i){return i[1]>=e.length?(this.next="start",i.shift(),i.shift()):(i[1]=e.length-1,this.next=i[0]="mlString"),this.token},next:"mlString"},{defaultToken:"string"}],mlString:[{token:"indent",regex:/^ *$/},{token:"indent",regex:/^ */,onMatch:function(e,t,i){return i[1]>=e.length?(this.next="start",i.splice(0)):this.next="mlString",this.token},next:"mlString"},{token:"string",regex:".+"}]},this.normalizeRules()};n.inherits(s,o),t.YamlHighlightRules=s})),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],(function(e,t,i){"use strict";var n=e("../range").Range,o=function(){};(function(){this.checkOutdent=function(e,t){return!!/^\s+$/.test(e)&&/^\s*\}/.test(t)},this.autoOutdent=function(e,t){var i=e.getLine(t).match(/^(\s*\})/);if(!i)return 0;var o=i[1].length,s=e.findMatchingBracket({row:t,column:o});if(!s||s.row==t)return 0;var r=this.$getIndent(e.getLine(s.row));e.replace(new n(t,0,t,o-1),r)},this.$getIndent=function(e){return e.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,i){"use strict";var n=e("../../lib/oop"),o=e("./fold_mode").FoldMode,s=e("../../range").Range,r=t.FoldMode=function(){};n.inherits(r,o),function(){this.getFoldWidgetRange=function(e,t,i){var n=this.indentationBlock(e,i);if(n)return n;var o=/\S/,r=e.getLine(i),a=r.search(o);if(-1!=a&&"#"==r[a]){for(var c=r.length,l=e.getLength(),h=i,d=i;++ih){var f=e.getLine(d).length;return new s(h,c,d,f)}}},this.getFoldWidget=function(e,t,i){var n=e.getLine(i),o=n.search(/\S/),s=e.getLine(i+1),r=e.getLine(i-1),a=r.search(/\S/),c=s.search(/\S/);if(-1==o)return e.foldWidgets[i-1]=-1!=a&&al)break;var h=this.getFoldWidgetRange(e,"all",t);if(h){if(h.start.row<=s)break;if(h.isMultiLine())t=h.end.row;else if(n==l)break}a=t}}return new o(s,r,a,e.getLine(a).length)},this.getCommentRegionBlock=function(e,t,i){for(var n=t.search(/\s*$/),s=e.getLength(),r=i,a=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,c=1;++ir)return new o(r,n,i,t.length)}}.call(r.prototype)})),ace.define("ace/mode/json5",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/json5_highlight_rules","ace/mode/matching_brace_outdent","ace/mode/behaviour/cstyle","ace/mode/folding/cstyle"],(function(e,t,i){"use strict";var n=e("../lib/oop"),o=e("./text").Mode,s=e("./json5_highlight_rules").Json5HighlightRules,r=e("./matching_brace_outdent").MatchingBraceOutdent,a=e("./behaviour/cstyle").CstyleBehaviour,c=e("./folding/cstyle").FoldMode,l=function(){this.HighlightRules=s,this.$outdent=new r,this.$behaviour=new a,this.foldingRules=new c};n.inherits(l,o),function(){this.lineCommentStart="//",this.blockComment={start:"/*",end:"*/"},this.checkOutdent=function(e,t,i){return this.$outdent.checkOutdent(t,i)},this.autoOutdent=function(e,t,i){this.$outdent.autoOutdent(t,i)},this.$id="ace/mode/json5"}.call(l.prototype),t.Mode=l})),ace.require(["ace/mode/json5"],(function(t){e&&(e.exports=t)}))}).call(this,i(138)(e))},5713:function(e,t,i){(function(e){ace.define("ace/mode/properties_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],(function(e,t,i){"use strict";var n=e("../lib/oop"),o=e("./text_highlight_rules").TextHighlightRules,s=function(){var e=/\\u[0-9a-fA-F]{4}|\\/;this.$rules={start:[{token:"comment",regex:/[!#].*$/},{token:"keyword",regex:/[=:]$/},{token:"keyword",regex:/[=:]/,next:"value"},{token:"constant.language.escape",regex:e},{defaultToken:"variable"}],value:[{regex:/\\$/,token:"string",next:"value"},{regex:/$/,token:"string",next:"start"},{token:"constant.language.escape",regex:e},{defaultToken:"string"}]}};n.inherits(s,o),t.PropertiesHighlightRules=s})),ace.define("ace/mode/properties",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/properties_highlight_rules"],(function(e,t,i){"use strict";var n=e("../lib/oop"),o=e("./text").Mode,s=e("./properties_highlight_rules").PropertiesHighlightRules,r=function(){this.HighlightRules=s,this.$behaviour=this.$defaultBehaviour};n.inherits(r,o),function(){this.$id="ace/mode/properties"}.call(r.prototype),t.Mode=r})),ace.require(["ace/mode/properties"],(function(t){e&&(e.exports=t)}))}).call(this,i(138)(e))},5714:function(e,t,i){(function(e){ace.require(["ace/mode/text"],(function(t){e&&(e.exports=t)}))}).call(this,i(138)(e))},5715:function(e,t,i){(function(e){ace.define("ace/mode/doc_comment_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],(function(e,t,i){"use strict";var n=e("../lib/oop"),o=e("./text_highlight_rules").TextHighlightRules,s=function(){this.$rules={start:[{token:"comment.doc.tag",regex:"@[\\w\\d_]+"},s.getTagRule(),{defaultToken:"comment.doc",caseInsensitive:!0}]}};n.inherits(s,o),s.getTagRule=function(e){return{token:"comment.doc.tag.storage.type",regex:"\\b(?:TODO|FIXME|XXX|HACK)\\b"}},s.getStartRule=function(e){return{token:"comment.doc",regex:"\\/\\*(?=\\*)",next:e}},s.getEndRule=function(e){return{token:"comment.doc",regex:"\\*\\/",next:e}},t.DocCommentHighlightRules=s})),ace.define("ace/mode/javascript_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/doc_comment_highlight_rules","ace/mode/text_highlight_rules"],(function(e,t,i){"use strict";var n=e("../lib/oop"),o=e("./doc_comment_highlight_rules").DocCommentHighlightRules,s=e("./text_highlight_rules").TextHighlightRules,r="[a-zA-Z\\$_¡-￿][a-zA-Z\\d\\$_¡-￿]*",a=function(e){var t=this.createKeywordMapper({"variable.language":"Array|Boolean|Date|Function|Iterator|Number|Object|RegExp|String|Proxy|Namespace|QName|XML|XMLList|ArrayBuffer|Float32Array|Float64Array|Int16Array|Int32Array|Int8Array|Uint16Array|Uint32Array|Uint8Array|Uint8ClampedArray|Error|EvalError|InternalError|RangeError|ReferenceError|StopIteration|SyntaxError|TypeError|URIError|decodeURI|decodeURIComponent|encodeURI|encodeURIComponent|eval|isFinite|isNaN|parseFloat|parseInt|JSON|Math|this|arguments|prototype|window|document",keyword:"const|yield|import|get|set|async|await|break|case|catch|continue|default|delete|do|else|finally|for|function|if|in|of|instanceof|new|return|switch|throw|try|typeof|let|var|while|with|debugger|__parent__|__count__|escape|unescape|with|__proto__|class|enum|extends|super|export|implements|private|public|interface|package|protected|static","storage.type":"const|let|var|function","constant.language":"null|Infinity|NaN|undefined","support.function":"alert","constant.language.boolean":"true|false"},"identifier"),i="\\\\(?:x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|u{[0-9a-fA-F]{1,6}}|[0-2][0-7]{0,2}|3[0-7][0-7]?|[4-7][0-7]?|.)";this.$rules={no_regex:[o.getStartRule("doc-start"),l("no_regex"),{token:"string",regex:"'(?=.)",next:"qstring"},{token:"string",regex:'"(?=.)',next:"qqstring"},{token:"constant.numeric",regex:/0(?:[xX][0-9a-fA-F]+|[oO][0-7]+|[bB][01]+)\b/},{token:"constant.numeric",regex:/(?:\d\d*(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+\b)?/},{token:["storage.type","punctuation.operator","support.function","punctuation.operator","entity.name.function","text","keyword.operator"],regex:"("+r+")(\\.)(prototype)(\\.)("+r+")(\\s*)(=)",next:"function_arguments"},{token:["storage.type","punctuation.operator","entity.name.function","text","keyword.operator","text","storage.type","text","paren.lparen"],regex:"("+r+")(\\.)("+r+")(\\s*)(=)(\\s*)(function)(\\s*)(\\()",next:"function_arguments"},{token:["entity.name.function","text","keyword.operator","text","storage.type","text","paren.lparen"],regex:"("+r+")(\\s*)(=)(\\s*)(function)(\\s*)(\\()",next:"function_arguments"},{token:["storage.type","punctuation.operator","entity.name.function","text","keyword.operator","text","storage.type","text","entity.name.function","text","paren.lparen"],regex:"("+r+")(\\.)("+r+")(\\s*)(=)(\\s*)(function)(\\s+)(\\w+)(\\s*)(\\()",next:"function_arguments"},{token:["storage.type","text","entity.name.function","text","paren.lparen"],regex:"(function)(\\s+)("+r+")(\\s*)(\\()",next:"function_arguments"},{token:["entity.name.function","text","punctuation.operator","text","storage.type","text","paren.lparen"],regex:"("+r+")(\\s*)(:)(\\s*)(function)(\\s*)(\\()",next:"function_arguments"},{token:["text","text","storage.type","text","paren.lparen"],regex:"(:)(\\s*)(function)(\\s*)(\\()",next:"function_arguments"},{token:"keyword",regex:"from(?=\\s*('|\"))"},{token:"keyword",regex:"(?:case|do|else|finally|in|instanceof|return|throw|try|typeof|yield|void)\\b",next:"start"},{token:["support.constant"],regex:/that\b/},{token:["storage.type","punctuation.operator","support.function.firebug"],regex:/(console)(\.)(warn|info|log|error|time|trace|timeEnd|assert)\b/},{token:t,regex:r},{token:"punctuation.operator",regex:/[.](?![.])/,next:"property"},{token:"storage.type",regex:/=>/,next:"start"},{token:"keyword.operator",regex:/--|\+\+|\.{3}|===|==|=|!=|!==|<+=?|>+=?|!|&&|\|\||\?:|[!$%&*+\-~\/^]=?/,next:"start"},{token:"punctuation.operator",regex:/[?:,;.]/,next:"start"},{token:"paren.lparen",regex:/[\[({]/,next:"start"},{token:"paren.rparen",regex:/[\])}]/},{token:"comment",regex:/^#!.*$/}],property:[{token:"text",regex:"\\s+"},{token:["storage.type","punctuation.operator","entity.name.function","text","keyword.operator","text","storage.type","text","entity.name.function","text","paren.lparen"],regex:"("+r+")(\\.)("+r+")(\\s*)(=)(\\s*)(function)(?:(\\s+)(\\w+))?(\\s*)(\\()",next:"function_arguments"},{token:"punctuation.operator",regex:/[.](?![.])/},{token:"support.function",regex:/(s(?:h(?:ift|ow(?:Mod(?:elessDialog|alDialog)|Help))|croll(?:X|By(?:Pages|Lines)?|Y|To)?|t(?:op|rike)|i(?:n|zeToContent|debar|gnText)|ort|u(?:p|b(?:str(?:ing)?)?)|pli(?:ce|t)|e(?:nd|t(?:Re(?:sizable|questHeader)|M(?:i(?:nutes|lliseconds)|onth)|Seconds|Ho(?:tKeys|urs)|Year|Cursor|Time(?:out)?|Interval|ZOptions|Date|UTC(?:M(?:i(?:nutes|lliseconds)|onth)|Seconds|Hours|Date|FullYear)|FullYear|Active)|arch)|qrt|lice|avePreferences|mall)|h(?:ome|andleEvent)|navigate|c(?:har(?:CodeAt|At)|o(?:s|n(?:cat|textual|firm)|mpile)|eil|lear(?:Timeout|Interval)?|a(?:ptureEvents|ll)|reate(?:StyleSheet|Popup|EventObject))|t(?:o(?:GMTString|S(?:tring|ource)|U(?:TCString|pperCase)|Lo(?:caleString|werCase))|est|a(?:n|int(?:Enabled)?))|i(?:s(?:NaN|Finite)|ndexOf|talics)|d(?:isableExternalCapture|ump|etachEvent)|u(?:n(?:shift|taint|escape|watch)|pdateCommands)|j(?:oin|avaEnabled)|p(?:o(?:p|w)|ush|lugins.refresh|a(?:ddings|rse(?:Int|Float)?)|r(?:int|ompt|eference))|e(?:scape|nableExternalCapture|val|lementFromPoint|x(?:p|ec(?:Script|Command)?))|valueOf|UTC|queryCommand(?:State|Indeterm|Enabled|Value)|f(?:i(?:nd|le(?:ModifiedDate|Size|CreatedDate|UpdatedDate)|xed)|o(?:nt(?:size|color)|rward)|loor|romCharCode)|watch|l(?:ink|o(?:ad|g)|astIndexOf)|a(?:sin|nchor|cos|t(?:tachEvent|ob|an(?:2)?)|pply|lert|b(?:s|ort))|r(?:ou(?:nd|teEvents)|e(?:size(?:By|To)|calc|turnValue|place|verse|l(?:oad|ease(?:Capture|Events)))|andom)|g(?:o|et(?:ResponseHeader|M(?:i(?:nutes|lliseconds)|onth)|Se(?:conds|lection)|Hours|Year|Time(?:zoneOffset)?|Da(?:y|te)|UTC(?:M(?:i(?:nutes|lliseconds)|onth)|Seconds|Hours|Da(?:y|te)|FullYear)|FullYear|A(?:ttention|llResponseHeaders)))|m(?:in|ove(?:B(?:y|elow)|To(?:Absolute)?|Above)|ergeAttributes|a(?:tch|rgins|x))|b(?:toa|ig|o(?:ld|rderWidths)|link|ack))\b(?=\()/},{token:"support.function.dom",regex:/(s(?:ub(?:stringData|mit)|plitText|e(?:t(?:NamedItem|Attribute(?:Node)?)|lect))|has(?:ChildNodes|Feature)|namedItem|c(?:l(?:ick|o(?:se|neNode))|reate(?:C(?:omment|DATASection|aption)|T(?:Head|extNode|Foot)|DocumentFragment|ProcessingInstruction|E(?:ntityReference|lement)|Attribute))|tabIndex|i(?:nsert(?:Row|Before|Cell|Data)|tem)|open|delete(?:Row|C(?:ell|aption)|T(?:Head|Foot)|Data)|focus|write(?:ln)?|a(?:dd|ppend(?:Child|Data))|re(?:set|place(?:Child|Data)|move(?:NamedItem|Child|Attribute(?:Node)?)?)|get(?:NamedItem|Element(?:sBy(?:Name|TagName|ClassName)|ById)|Attribute(?:Node)?)|blur)\b(?=\()/},{token:"support.constant",regex:/(s(?:ystemLanguage|cr(?:ipts|ollbars|een(?:X|Y|Top|Left))|t(?:yle(?:Sheets)?|atus(?:Text|bar)?)|ibling(?:Below|Above)|ource|uffixes|e(?:curity(?:Policy)?|l(?:ection|f)))|h(?:istory|ost(?:name)?|as(?:h|Focus))|y|X(?:MLDocument|SLDocument)|n(?:ext|ame(?:space(?:s|URI)|Prop))|M(?:IN_VALUE|AX_VALUE)|c(?:haracterSet|o(?:n(?:structor|trollers)|okieEnabled|lorDepth|mp(?:onents|lete))|urrent|puClass|l(?:i(?:p(?:boardData)?|entInformation)|osed|asses)|alle(?:e|r)|rypto)|t(?:o(?:olbar|p)|ext(?:Transform|Indent|Decoration|Align)|ags)|SQRT(?:1_2|2)|i(?:n(?:ner(?:Height|Width)|put)|ds|gnoreCase)|zIndex|o(?:scpu|n(?:readystatechange|Line)|uter(?:Height|Width)|p(?:sProfile|ener)|ffscreenBuffering)|NEGATIVE_INFINITY|d(?:i(?:splay|alog(?:Height|Top|Width|Left|Arguments)|rectories)|e(?:scription|fault(?:Status|Ch(?:ecked|arset)|View)))|u(?:ser(?:Profile|Language|Agent)|n(?:iqueID|defined)|pdateInterval)|_content|p(?:ixelDepth|ort|ersonalbar|kcs11|l(?:ugins|atform)|a(?:thname|dding(?:Right|Bottom|Top|Left)|rent(?:Window|Layer)?|ge(?:X(?:Offset)?|Y(?:Offset)?))|r(?:o(?:to(?:col|type)|duct(?:Sub)?|mpter)|e(?:vious|fix)))|e(?:n(?:coding|abledPlugin)|x(?:ternal|pando)|mbeds)|v(?:isibility|endor(?:Sub)?|Linkcolor)|URLUnencoded|P(?:I|OSITIVE_INFINITY)|f(?:ilename|o(?:nt(?:Size|Family|Weight)|rmName)|rame(?:s|Element)|gColor)|E|whiteSpace|l(?:i(?:stStyleType|n(?:eHeight|kColor))|o(?:ca(?:tion(?:bar)?|lName)|wsrc)|e(?:ngth|ft(?:Context)?)|a(?:st(?:M(?:odified|atch)|Index|Paren)|yer(?:s|X)|nguage))|a(?:pp(?:MinorVersion|Name|Co(?:deName|re)|Version)|vail(?:Height|Top|Width|Left)|ll|r(?:ity|guments)|Linkcolor|bove)|r(?:ight(?:Context)?|e(?:sponse(?:XML|Text)|adyState))|global|x|m(?:imeTypes|ultiline|enubar|argin(?:Right|Bottom|Top|Left))|L(?:N(?:10|2)|OG(?:10E|2E))|b(?:o(?:ttom|rder(?:Width|RightWidth|BottomWidth|Style|Color|TopWidth|LeftWidth))|ufferDepth|elow|ackground(?:Color|Image)))\b/},{token:"identifier",regex:r},{regex:"",token:"empty",next:"no_regex"}],start:[o.getStartRule("doc-start"),l("start"),{token:"string.regexp",regex:"\\/",next:"regex"},{token:"text",regex:"\\s+|^$",next:"start"},{token:"empty",regex:"",next:"no_regex"}],regex:[{token:"regexp.keyword.operator",regex:"\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"},{token:"string.regexp",regex:"/[sxngimy]*",next:"no_regex"},{token:"invalid",regex:/\{\d+\b,?\d*\}[+*]|[+*$^?][+*]|[$^][?]|\?{3,}/},{token:"constant.language.escape",regex:/\(\?[:=!]|\)|\{\d+\b,?\d*\}|[+*]\?|[()$^+*?.]/},{token:"constant.language.delimiter",regex:/\|/},{token:"constant.language.escape",regex:/\[\^?/,next:"regex_character_class"},{token:"empty",regex:"$",next:"no_regex"},{defaultToken:"string.regexp"}],regex_character_class:[{token:"regexp.charclass.keyword.operator",regex:"\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"},{token:"constant.language.escape",regex:"]",next:"regex"},{token:"constant.language.escape",regex:"-"},{token:"empty",regex:"$",next:"no_regex"},{defaultToken:"string.regexp.charachterclass"}],function_arguments:[{token:"variable.parameter",regex:r},{token:"punctuation.operator",regex:"[, ]+"},{token:"punctuation.operator",regex:"$"},{token:"empty",regex:"",next:"no_regex"}],qqstring:[{token:"constant.language.escape",regex:i},{token:"string",regex:"\\\\$",consumeLineEnd:!0},{token:"string",regex:'"|$',next:"no_regex"},{defaultToken:"string"}],qstring:[{token:"constant.language.escape",regex:i},{token:"string",regex:"\\\\$",consumeLineEnd:!0},{token:"string",regex:"'|$",next:"no_regex"},{defaultToken:"string"}]},e&&e.noES6||(this.$rules.no_regex.unshift({regex:"[{}]",onMatch:function(e,t,i){if(this.next="{"==e?this.nextState:"","{"==e&&i.length)i.unshift("start",t);else if("}"==e&&i.length&&(i.shift(),this.next=i.shift(),-1!=this.next.indexOf("string")||-1!=this.next.indexOf("jsx")))return"paren.quasi.end";return"{"==e?"paren.lparen":"paren.rparen"},nextState:"start"},{token:"string.quasi.start",regex:/`/,push:[{token:"constant.language.escape",regex:i},{token:"paren.quasi.start",regex:/\${/,push:"start"},{token:"string.quasi.end",regex:/`/,next:"pop"},{defaultToken:"string.quasi"}]}),e&&0==e.jsx||c.call(this)),this.embedRules(o,"doc-",[o.getEndRule("no_regex")]),this.normalizeRules()};function c(){var e=r.replace("\\d","\\d\\-"),t={onMatch:function(e,t,i){var n="/"==e.charAt(1)?2:1;return 1==n?(t!=this.nextState?i.unshift(this.next,this.nextState,0):i.unshift(this.next),i[2]++):2==n&&t==this.nextState&&(i[1]--,(!i[1]||i[1]<0)&&(i.shift(),i.shift())),[{type:"meta.tag.punctuation."+(1==n?"":"end-")+"tag-open.xml",value:e.slice(0,n)},{type:"meta.tag.tag-name.xml",value:e.substr(n)}]},regex:"",onMatch:function(e,t,i){return t==i[0]&&i.shift(),2==e.length&&(i[0]==this.nextState&&i[1]--,(!i[1]||i[1]<0)&&i.splice(0,2)),this.next=i[0]||"start",[{type:this.token,value:e}]},nextState:"jsx"},i,l("jsxAttributes"),{token:"entity.other.attribute-name.xml",regex:e},{token:"keyword.operator.attribute-equals.xml",regex:"="},{token:"text.tag-whitespace.xml",regex:"\\s+"},{token:"string.attribute-value.xml",regex:"'",stateName:"jsx_attr_q",push:[{token:"string.attribute-value.xml",regex:"'",next:"pop"},{include:"reference"},{defaultToken:"string.attribute-value.xml"}]},{token:"string.attribute-value.xml",regex:'"',stateName:"jsx_attr_qq",push:[{token:"string.attribute-value.xml",regex:'"',next:"pop"},{include:"reference"},{defaultToken:"string.attribute-value.xml"}]},t],this.$rules.reference=[{token:"constant.language.escape.reference.xml",regex:"(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"}]}function l(e){return[{token:"comment",regex:/\/\*/,next:[o.getTagRule(),{token:"comment",regex:"\\*\\/",next:e||"pop"},{defaultToken:"comment",caseInsensitive:!0}]},{token:"comment",regex:"\\/\\/",next:[o.getTagRule(),{token:"comment",regex:"$|^",next:e||"pop"},{defaultToken:"comment",caseInsensitive:!0}]}]}n.inherits(a,s),t.JavaScriptHighlightRules=a})),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],(function(e,t,i){"use strict";var n=e("../range").Range,o=function(){};(function(){this.checkOutdent=function(e,t){return!!/^\s+$/.test(e)&&/^\s*\}/.test(t)},this.autoOutdent=function(e,t){var i=e.getLine(t).match(/^(\s*\})/);if(!i)return 0;var o=i[1].length,s=e.findMatchingBracket({row:t,column:o});if(!s||s.row==t)return 0;var r=this.$getIndent(e.getLine(s.row));e.replace(new n(t,0,t,o-1),r)},this.$getIndent=function(e){return e.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,i){"use strict";var n=e("../../lib/oop"),o=e("../../range").Range,s=e("./fold_mode").FoldMode,r=t.FoldMode=function(e){e&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+e.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+e.end)))};n.inherits(r,s),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(e,t,i){var n=e.getLine(i);if(this.singleLineBlockCommentRe.test(n)&&!this.startRegionRe.test(n)&&!this.tripleStarBlockCommentRe.test(n))return"";var o=this._getFoldWidgetBase(e,t,i);return!o&&this.startRegionRe.test(n)?"start":o},this.getFoldWidgetRange=function(e,t,i,n){var o,s=e.getLine(i);if(this.startRegionRe.test(s))return this.getCommentRegionBlock(e,s,i);if(o=s.match(this.foldingStartMarker)){var r=o.index;if(o[1])return this.openingBracketBlock(e,o[1],i,r);var a=e.getCommentFoldRange(i,r+o[0].length,1);return a&&!a.isMultiLine()&&(n?a=this.getSectionRange(e,i):"all"!=t&&(a=null)),a}if("markbegin"!==t&&(o=s.match(this.foldingStopMarker))){r=o.index+o[0].length;return o[1]?this.closingBracketBlock(e,o[1],i,r):e.getCommentFoldRange(i,r,-1)}},this.getSectionRange=function(e,t){for(var i=e.getLine(t),n=i.search(/\S/),s=t,r=i.length,a=t+=1,c=e.getLength();++tl)break;var h=this.getFoldWidgetRange(e,"all",t);if(h){if(h.start.row<=s)break;if(h.isMultiLine())t=h.end.row;else if(n==l)break}a=t}}return new o(s,r,a,e.getLine(a).length)},this.getCommentRegionBlock=function(e,t,i){for(var n=t.search(/\s*$/),s=e.getLength(),r=i,a=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,c=1;++ir)return new o(r,n,i,t.length)}}.call(r.prototype)})),ace.define("ace/mode/javascript",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/javascript_highlight_rules","ace/mode/matching_brace_outdent","ace/worker/worker_client","ace/mode/behaviour/cstyle","ace/mode/folding/cstyle"],(function(e,t,i){"use strict";var n=e("../lib/oop"),o=e("./text").Mode,s=e("./javascript_highlight_rules").JavaScriptHighlightRules,r=e("./matching_brace_outdent").MatchingBraceOutdent,a=e("../worker/worker_client").WorkerClient,c=e("./behaviour/cstyle").CstyleBehaviour,l=e("./folding/cstyle").FoldMode,h=function(){this.HighlightRules=s,this.$outdent=new r,this.$behaviour=new c,this.foldingRules=new l};n.inherits(h,o),function(){this.lineCommentStart="//",this.blockComment={start:"/*",end:"*/"},this.$quotes={'"':'"',"'":"'","`":"`"},this.getNextLineIndent=function(e,t,i){var n=this.$getIndent(t),o=this.getTokenizer().getLineTokens(t,e),s=o.tokens,r=o.state;if(s.length&&"comment"==s[s.length-1].type)return n;if("start"==e||"no_regex"==e)(a=t.match(/^.*(?:\bcase\b.*:|[\{\(\[])\s*$/))&&(n+=i);else if("doc-start"==e){if("start"==r||"no_regex"==r)return"";var a;(a=t.match(/^\s*(\/?)\*/))&&(a[1]&&(n+=" "),n+="* ")}return n},this.checkOutdent=function(e,t,i){return this.$outdent.checkOutdent(t,i)},this.autoOutdent=function(e,t,i){this.$outdent.autoOutdent(t,i)},this.createWorker=function(e){var t=new a(["ace"],"ace/mode/javascript_worker","JavaScriptWorker");return t.attachToDocument(e.getDocument()),t.on("annotate",(function(t){e.setAnnotations(t.data)})),t.on("terminate",(function(){e.clearAnnotations()})),t},this.$id="ace/mode/javascript",this.snippetFileId="ace/snippets/javascript"}.call(h.prototype),t.Mode=h})),ace.define("ace/mode/groovy_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/doc_comment_highlight_rules","ace/mode/text_highlight_rules"],(function(e,t,i){"use strict";var n=e("../lib/oop"),o=e("./doc_comment_highlight_rules").DocCommentHighlightRules,s=e("./text_highlight_rules").TextHighlightRules,r=function(){var e=this.createKeywordMapper({"variable.language":"this",keyword:"assert|with|abstract|continue|for|new|switch|assert|default|goto|package|synchronized|boolean|do|if|private|this|break|double|implements|protected|throw|byte|else|import|public|throws|case|enum|instanceof|return|transient|catch|extends|int|short|try|char|final|interface|static|void|class|finally|long|strictfp|volatile|def|float|native|super|while","support.function":"AbstractMethodError|AssertionError|ClassCircularityError|ClassFormatError|Deprecated|EnumConstantNotPresentException|ExceptionInInitializerError|IllegalAccessError|IllegalThreadStateException|InstantiationError|InternalError|NegativeArraySizeException|NoSuchFieldError|Override|Process|ProcessBuilder|SecurityManager|StringIndexOutOfBoundsException|SuppressWarnings|TypeNotPresentException|UnknownError|UnsatisfiedLinkError|UnsupportedClassVersionError|VerifyError|InstantiationException|IndexOutOfBoundsException|ArrayIndexOutOfBoundsException|CloneNotSupportedException|NoSuchFieldException|IllegalArgumentException|NumberFormatException|SecurityException|Void|InheritableThreadLocal|IllegalStateException|InterruptedException|NoSuchMethodException|IllegalAccessException|UnsupportedOperationException|Enum|StrictMath|Package|Compiler|Readable|Runtime|StringBuilder|Math|IncompatibleClassChangeError|NoSuchMethodError|ThreadLocal|RuntimePermission|ArithmeticException|NullPointerException|Long|Integer|Short|Byte|Double|Number|Float|Character|Boolean|StackTraceElement|Appendable|StringBuffer|Iterable|ThreadGroup|Runnable|Thread|IllegalMonitorStateException|StackOverflowError|OutOfMemoryError|VirtualMachineError|ArrayStoreException|ClassCastException|LinkageError|NoClassDefFoundError|ClassNotFoundException|RuntimeException|Exception|ThreadDeath|Error|Throwable|System|ClassLoader|Cloneable|Class|CharSequence|Comparable|String|Object","constant.language":"null|Infinity|NaN|undefined"},"identifier");this.$rules={start:[{token:"comment",regex:"\\/\\/.*$"},o.getStartRule("doc-start"),{token:"comment",regex:"\\/\\*",next:"comment"},{token:"string.regexp",regex:"[/](?:(?:\\[(?:\\\\]|[^\\]])+\\])|(?:\\\\/|[^\\]/]))*[/]\\w*\\s*(?=[).,;]|$)"},{token:"string",regex:'"""',next:"qqstring"},{token:"string",regex:"'''",next:"qstring"},{token:"string",regex:'["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]'},{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:e,regex:"[a-zA-Z_$][a-zA-Z0-9_$]*\\b"},{token:"keyword.operator",regex:"\\?:|\\?\\.|\\*\\.|<=>|=~|==~|\\.@|\\*\\.@|\\.&|as|in|is|!|\\$|%|&|\\*|\\-\\-|\\-|\\+\\+|\\+|~|===|==|=|!=|!==|<=|>=|<<=|>>=|>>>=|<>|<|>|!|&&|\\|\\||\\?\\:|\\*=|%=|\\+=|\\-=|&=|\\^=|\\b(?:in|instanceof|new|delete|typeof|void)"},{token:"lparen",regex:"[[({]"},{token:"rparen",regex:"[\\])}]"},{token:"text",regex:"\\s+"}],comment:[{token:"comment",regex:"\\*\\/",next:"start"},{defaultToken:"comment"}],qqstring:[{token:"constant.language.escape",regex:/\\(?:u[0-9A-Fa-f]{4}|.|$)/},{token:"constant.language.escape",regex:/\$[\w\d]+/},{token:"constant.language.escape",regex:/\$\{[^"\}]+\}?/},{token:"string",regex:'"{3,5}',next:"start"},{token:"string",regex:".+?"}],qstring:[{token:"constant.language.escape",regex:/\\(?:u[0-9A-Fa-f]{4}|.|$)/},{token:"string",regex:"'{3,5}",next:"start"},{token:"string",regex:".+?"}]},this.embedRules(o,"doc-",[o.getEndRule("start")])};n.inherits(r,s),t.GroovyHighlightRules=r})),ace.define("ace/mode/groovy",["require","exports","module","ace/lib/oop","ace/mode/javascript","ace/mode/groovy_highlight_rules"],(function(e,t,i){"use strict";var n=e("../lib/oop"),o=e("./javascript").Mode,s=e("./groovy_highlight_rules").GroovyHighlightRules,r=function(){o.call(this),this.HighlightRules=s};n.inherits(r,o),function(){this.createWorker=function(e){return null},this.$id="ace/mode/groovy"}.call(r.prototype),t.Mode=r})),ace.require(["ace/mode/groovy"],(function(t){e&&(e.exports=t)}))}).call(this,i(138)(e))},5716:function(e,t,i){(function(e){ace.define("ace/theme/chaos",["require","exports","module","ace/lib/dom"],(function(e,t,i){t.isDark=!0,t.cssClass="ace-chaos",t.cssText=".ace-chaos .ace_gutter {background: #141414;color: #595959;border-right: 1px solid #282828;}.ace-chaos .ace_gutter-cell.ace_warning {background-image: none;background: #FC0;border-left: none;padding-left: 0;color: #000;}.ace-chaos .ace_gutter-cell.ace_error {background-position: -6px center;background-image: none;background: #F10;border-left: none;padding-left: 0;color: #000;}.ace-chaos .ace_print-margin {border-left: 1px solid #555;right: 0;background: #1D1D1D;}.ace-chaos {background-color: #161616;color: #E6E1DC;}.ace-chaos .ace_cursor {border-left: 2px solid #FFFFFF;}.ace-chaos .ace_cursor.ace_overwrite {border-left: 0px;border-bottom: 1px solid #FFFFFF;}.ace-chaos .ace_marker-layer .ace_selection {background: #494836;}.ace-chaos .ace_marker-layer .ace_step {background: rgb(198, 219, 174);}.ace-chaos .ace_marker-layer .ace_bracket {margin: -1px 0 0 -1px;border: 1px solid #FCE94F;}.ace-chaos .ace_marker-layer .ace_active-line {background: #333;}.ace-chaos .ace_gutter-active-line {background-color: #222;}.ace-chaos .ace_invisible {color: #404040;}.ace-chaos .ace_keyword {color:#00698F;}.ace-chaos .ace_keyword.ace_operator {color:#FF308F;}.ace-chaos .ace_constant {color:#1EDAFB;}.ace-chaos .ace_constant.ace_language {color:#FDC251;}.ace-chaos .ace_constant.ace_library {color:#8DFF0A;}.ace-chaos .ace_constant.ace_numeric {color:#58C554;}.ace-chaos .ace_invalid {color:#FFFFFF;background-color:#990000;}.ace-chaos .ace_invalid.ace_deprecated {color:#FFFFFF;background-color:#990000;}.ace-chaos .ace_support {color: #999;}.ace-chaos .ace_support.ace_function {color:#00AEEF;}.ace-chaos .ace_function {color:#00AEEF;}.ace-chaos .ace_string {color:#58C554;}.ace-chaos .ace_comment {color:#555;font-style:italic;padding-bottom: 0px;}.ace-chaos .ace_variable {color:#997744;}.ace-chaos .ace_meta.ace_tag {color:#BE53E6;}.ace-chaos .ace_entity.ace_other.ace_attribute-name {color:#FFFF89;}.ace-chaos .ace_markup.ace_underline {text-decoration: underline;}.ace-chaos .ace_fold-widget {text-align: center;}.ace-chaos .ace_fold-widget:hover {color: #777;}.ace-chaos .ace_fold-widget.ace_start,.ace-chaos .ace_fold-widget.ace_end,.ace-chaos .ace_fold-widget.ace_closed{background: none !important;border: none;box-shadow: none;}.ace-chaos .ace_fold-widget.ace_start:after {content: '▾'}.ace-chaos .ace_fold-widget.ace_end:after {content: '▴'}.ace-chaos .ace_fold-widget.ace_closed:after {content: '‣'}.ace-chaos .ace_indent-guide {border-right:1px dotted #333;margin-right:-1px;}.ace-chaos .ace_fold { background: #222; border-radius: 3px; color: #7AF; border: none; }.ace-chaos .ace_fold:hover {background: #CCC; color: #000;}",e("../lib/dom").importCssString(t.cssText,t.cssClass)})),ace.require(["ace/theme/chaos"],(function(t){e&&(e.exports=t)}))}).call(this,i(138)(e))},5717:function(e,t,i){(function(e){ace.define("ace/keyboard/vscode",["require","exports","module","ace/keyboard/hash_handler","ace/config"],(function(e,t,i){"use strict";var n=e("../keyboard/hash_handler").HashHandler,o=e("../config");t.handler=new n,t.handler.$id="ace/keyboard/vscode",t.handler.addCommands([{name:"toggleWordWrap",exec:function(e){var t=e.session.getUseWrapMode();e.session.setUseWrapMode(!t)},readOnly:!0},{name:"navigateToLastEditLocation",exec:function(e){var t=e.session.getUndoManager().$lastDelta,i="remove"==t.action?t.start:t.end;e.moveCursorTo(i.row,i.column),e.clearSelection()}},{name:"replaceAll",exec:function(e){e.searchBox?!0===e.searchBox.active&&!0===e.searchBox.replaceOption.checked&&e.searchBox.replaceAll():o.loadModule("ace/ext/searchbox",(function(t){t.Search(e,!0)}))}},{name:"replaceOne",exec:function(e){e.searchBox?!0===e.searchBox.active&&!0===e.searchBox.replaceOption.checked&&e.searchBox.replace():o.loadModule("ace/ext/searchbox",(function(t){t.Search(e,!0)}))}},{name:"selectAllMatches",exec:function(e){e.searchBox?!0===e.searchBox.active&&e.searchBox.findAll():o.loadModule("ace/ext/searchbox",(function(t){t.Search(e,!1)}))}},{name:"toggleFindCaseSensitive",exec:function(e){o.loadModule("ace/ext/searchbox",(function(t){t.Search(e,!1);var i=e.searchBox;i.caseSensitiveOption.checked=!i.caseSensitiveOption.checked,i.$syncOptions()}))}},{name:"toggleFindInSelection",exec:function(e){o.loadModule("ace/ext/searchbox",(function(t){t.Search(e,!1);var i=e.searchBox;i.searchOption.checked=!i.searchRange,i.setSearchRange(i.searchOption.checked&&i.editor.getSelectionRange()),i.$syncOptions()}))}},{name:"toggleFindRegex",exec:function(e){o.loadModule("ace/ext/searchbox",(function(t){t.Search(e,!1);var i=e.searchBox;i.regExpOption.checked=!i.regExpOption.checked,i.$syncOptions()}))}},{name:"toggleFindWholeWord",exec:function(e){o.loadModule("ace/ext/searchbox",(function(t){t.Search(e,!1);var i=e.searchBox;i.wholeWordOption.checked=!i.wholeWordOption.checked,i.$syncOptions()}))}},{name:"removeSecondaryCursors",exec:function(e){var t=e.selection.ranges;t&&t.length>1?e.selection.toSingleRange(t[t.length-1]):e.selection.clearSelection()}}]),[{bindKey:{mac:"Ctrl-G",win:"Ctrl-G"},name:"gotoline"},{bindKey:{mac:"Command-Shift-L|Command-F2",win:"Ctrl-Shift-L|Ctrl-F2"},name:"findAll"},{bindKey:{mac:"Shift-F8|Shift-Option-F8",win:"Shift-F8|Shift-Alt-F8"},name:"goToPreviousError"},{bindKey:{mac:"F8|Option-F8",win:"F8|Alt-F8"},name:"goToNextError"},{bindKey:{mac:"Command-Shift-P|F1",win:"Ctrl-Shift-P|F1"},name:"openCommandPallete"},{bindKey:{mac:"Command-K|Command-S",win:"Ctrl-K|Ctrl-S"},name:"showKeyboardShortcuts"},{bindKey:{mac:"Shift-Option-Up",win:"Alt-Shift-Up"},name:"copylinesup"},{bindKey:{mac:"Shift-Option-Down",win:"Alt-Shift-Down"},name:"copylinesdown"},{bindKey:{mac:"Command-Shift-K",win:"Ctrl-Shift-K"},name:"removeline"},{bindKey:{mac:"Command-Enter",win:"Ctrl-Enter"},name:"addLineAfter"},{bindKey:{mac:"Command-Shift-Enter",win:"Ctrl-Shift-Enter"},name:"addLineBefore"},{bindKey:{mac:"Command-Shift-\\",win:"Ctrl-Shift-\\"},name:"jumptomatching"},{bindKey:{mac:"Command-]",win:"Ctrl-]"},name:"blockindent"},{bindKey:{mac:"Command-[",win:"Ctrl-["},name:"blockoutdent"},{bindKey:{mac:"Ctrl-PageDown",win:"Alt-PageDown"},name:"pagedown"},{bindKey:{mac:"Ctrl-PageUp",win:"Alt-PageUp"},name:"pageup"},{bindKey:{mac:"Shift-Option-A",win:"Shift-Alt-A"},name:"toggleBlockComment"},{bindKey:{mac:"Option-Z",win:"Alt-Z"},name:"toggleWordWrap"},{bindKey:{mac:"Command-G",win:"F3|Ctrl-K Ctrl-D"},name:"findnext"},{bindKey:{mac:"Command-Shift-G",win:"Shift-F3"},name:"findprevious"},{bindKey:{mac:"Option-Enter",win:"Alt-Enter"},name:"selectAllMatches"},{bindKey:{mac:"Command-D",win:"Ctrl-D"},name:"selectMoreAfter"},{bindKey:{mac:"Command-K Command-D",win:"Ctrl-K Ctrl-D"},name:"selectOrFindNext"},{bindKey:{mac:"Shift-Option-I",win:"Shift-Alt-I"},name:"splitSelectionIntoLines"},{bindKey:{mac:"Command-K M",win:"Ctrl-K M"},name:"modeSelect"},{bindKey:{mac:"Command-Option-[",win:"Ctrl-Shift-["},name:"toggleFoldWidget"},{bindKey:{mac:"Command-Option-]",win:"Ctrl-Shift-]"},name:"toggleFoldWidget"},{bindKey:{mac:"Command-K Command-0",win:"Ctrl-K Ctrl-0"},name:"foldall"},{bindKey:{mac:"Command-K Command-J",win:"Ctrl-K Ctrl-J"},name:"unfoldall"},{bindKey:{mac:"Command-K Command-1",win:"Ctrl-K Ctrl-1"},name:"foldOther"},{bindKey:{mac:"Command-K Command-Q",win:"Ctrl-K Ctrl-Q"},name:"navigateToLastEditLocation"},{bindKey:{mac:"Command-K Command-R|Command-K Command-S",win:"Ctrl-K Ctrl-R|Ctrl-K Ctrl-S"},name:"showKeyboardShortcuts"},{bindKey:{mac:"Command-K Command-X",win:"Ctrl-K Ctrl-X"},name:"trimTrailingSpace"},{bindKey:{mac:"Shift-Down|Command-Shift-Down",win:"Shift-Down|Ctrl-Shift-Down"},name:"selectdown"},{bindKey:{mac:"Shift-Up|Command-Shift-Up",win:"Shift-Up|Ctrl-Shift-Up"},name:"selectup"},{bindKey:{mac:"Command-Alt-Enter",win:"Ctrl-Alt-Enter"},name:"replaceAll"},{bindKey:{mac:"Command-Shift-1",win:"Ctrl-Shift-1"},name:"replaceOne"},{bindKey:{mac:"Option-C",win:"Alt-C"},name:"toggleFindCaseSensitive"},{bindKey:{mac:"Option-L",win:"Alt-L"},name:"toggleFindInSelection"},{bindKey:{mac:"Option-R",win:"Alt-R"},name:"toggleFindRegex"},{bindKey:{mac:"Option-W",win:"Alt-W"},name:"toggleFindWholeWord"},{bindKey:{mac:"Command-L",win:"Ctrl-L"},name:"expandtoline"},{bindKey:{mac:"Shift-Esc",win:"Shift-Esc"},name:"removeSecondaryCursors"}].forEach((function(e){var i=t.handler.commands[e.name];i&&(i.bindKey=e.bindKey),t.handler.bindKey(e.bindKey,i||e.name)}))})),ace.require(["ace/keyboard/vscode"],(function(t){e&&(e.exports=t)}))}).call(this,i(138)(e))},5718:function(e,t,i){(function(e){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,i){"use strict";var n=e("../lib/dom"),o=e("../lib/lang"),s=e("../lib/event"),r='.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;outline: 0;padding: 0;font-size: inherit;margin: 0;line-height: inherit;padding: 0 6px;min-width: 17em;vertical-align: top;min-height: 1.8em;box-sizing: content-box;}.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;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;}',a=e("../keyboard/hash_handler").HashHandler,c=e("../lib/keys");n.importCssString(r,"ace_searchbox");var l=function(e,t,i){var o=n.createElement("div");n.buildDom(["div",{class:"ace_search right"},["span",{action:"hide",class:"ace_searchbtn_close"}],["div",{class:"ace_search_form"},["input",{class:"ace_search_field",placeholder:"Search for",spellcheck:"false"}],["span",{action:"findPrev",class:"ace_searchbtn prev"},"​"],["span",{action:"findNext",class:"ace_searchbtn next"},"​"],["span",{action:"findAll",class:"ace_searchbtn",title:"Alt-Enter"},"All"]],["div",{class:"ace_replace_form"},["input",{class:"ace_search_field",placeholder:"Replace with",spellcheck:"false"}],["span",{action:"replaceAndFindNext",class:"ace_searchbtn"},"Replace"],["span",{action:"replaceAll",class:"ace_searchbtn"},"All"]],["div",{class:"ace_search_options"},["span",{action:"toggleReplace",class:"ace_button",title:"Toggle Replace mode",style:"float:left;margin-top:-2px;padding:0 5px;"},"+"],["span",{class:"ace_search_counter"}],["span",{action:"toggleRegexpMode",class:"ace_button",title:"RegExp Search"},".*"],["span",{action:"toggleCaseSensitive",class:"ace_button",title:"CaseSensitive Search"},"Aa"],["span",{action:"toggleWholeWords",class:"ace_button",title:"Whole Word Search"},"\\b"],["span",{action:"searchInSelection",class:"ace_button",title:"Search In Selection"},"S"]]],o),this.element=o.firstChild,this.setSession=this.setSession.bind(this),this.$init(),this.setEditor(e),n.importCssString(r,"ace_searchbox",e.container)};(function(){this.setEditor=function(e){e.searchBox=this,e.renderer.scroller.appendChild(this.element),this.editor=e},this.setSession=function(e){this.searchRange=null,this.$syncOptions(!0)},this.$initElements=function(e){this.searchBox=e.querySelector(".ace_search_form"),this.replaceBox=e.querySelector(".ace_replace_form"),this.searchOption=e.querySelector("[action=searchInSelection]"),this.replaceOption=e.querySelector("[action=toggleReplace]"),this.regExpOption=e.querySelector("[action=toggleRegexpMode]"),this.caseSensitiveOption=e.querySelector("[action=toggleCaseSensitive]"),this.wholeWordOption=e.querySelector("[action=toggleWholeWords]"),this.searchInput=this.searchBox.querySelector(".ace_search_field"),this.replaceInput=this.replaceBox.querySelector(".ace_search_field"),this.searchCounter=e.querySelector(".ace_search_counter")},this.$init=function(){var e=this.element;this.$initElements(e);var t=this;s.addListener(e,"mousedown",(function(e){setTimeout((function(){t.activeInput.focus()}),0),s.stopPropagation(e)})),s.addListener(e,"click",(function(e){var i=(e.target||e.srcElement).getAttribute("action");i&&t[i]?t[i]():t.$searchBarKb.commands[i]&&t.$searchBarKb.commands[i].exec(t),s.stopPropagation(e)})),s.addCommandKeyListener(e,(function(e,i,n){var o=c.keyCodeToString(n),r=t.$searchBarKb.findKeyCommand(i,o);r&&r.exec&&(r.exec(t),s.stopEvent(e))})),this.$onChange=o.delayedCall((function(){t.find(!1,!1)})),s.addListener(this.searchInput,"input",(function(){t.$onChange.schedule(20)})),s.addListener(this.searchInput,"focus",(function(){t.activeInput=t.searchInput,t.searchInput.value&&t.highlight()})),s.addListener(this.replaceInput,"focus",(function(){t.activeInput=t.replaceInput,t.searchInput.value&&t.highlight()}))},this.$closeSearchBarKb=new a([{bindKey:"Esc",name:"closeSearchBar",exec:function(e){e.searchBox.hide()}}]),this.$searchBarKb=new a,this.$searchBarKb.bindKeys({"Ctrl-f|Command-f":function(e){var t=e.isReplace=!e.isReplace;e.replaceBox.style.display=t?"":"none",e.replaceOption.checked=!1,e.$syncOptions(),e.searchInput.focus()},"Ctrl-H|Command-Option-F":function(e){e.editor.getReadOnly()||(e.replaceOption.checked=!0,e.$syncOptions(),e.replaceInput.focus())},"Ctrl-G|Command-G":function(e){e.findNext()},"Ctrl-Shift-G|Command-Shift-G":function(e){e.findPrev()},esc:function(e){setTimeout((function(){e.hide()}))},Return:function(e){e.activeInput==e.replaceInput&&e.replace(),e.findNext()},"Shift-Return":function(e){e.activeInput==e.replaceInput&&e.replace(),e.findPrev()},"Alt-Return":function(e){e.activeInput==e.replaceInput&&e.replaceAll(),e.findAll()},Tab:function(e){(e.activeInput==e.replaceInput?e.searchInput:e.replaceInput).focus()}}),this.$searchBarKb.addCommands([{name:"toggleRegexpMode",bindKey:{win:"Alt-R|Alt-/",mac:"Ctrl-Alt-R|Ctrl-Alt-/"},exec:function(e){e.regExpOption.checked=!e.regExpOption.checked,e.$syncOptions()}},{name:"toggleCaseSensitive",bindKey:{win:"Alt-C|Alt-I",mac:"Ctrl-Alt-R|Ctrl-Alt-I"},exec:function(e){e.caseSensitiveOption.checked=!e.caseSensitiveOption.checked,e.$syncOptions()}},{name:"toggleWholeWords",bindKey:{win:"Alt-B|Alt-W",mac:"Ctrl-Alt-B|Ctrl-Alt-W"},exec:function(e){e.wholeWordOption.checked=!e.wholeWordOption.checked,e.$syncOptions()}},{name:"toggleReplace",exec:function(e){e.replaceOption.checked=!e.replaceOption.checked,e.$syncOptions()}},{name:"searchInSelection",exec:function(e){e.searchOption.checked=!e.searchRange,e.setSearchRange(e.searchOption.checked&&e.editor.getSelectionRange()),e.$syncOptions()}}]),this.setSearchRange=function(e){this.searchRange=e,e?this.searchRangeMarker=this.editor.session.addMarker(e,"ace_active-line"):this.searchRangeMarker&&(this.editor.session.removeMarker(this.searchRangeMarker),this.searchRangeMarker=null)},this.$syncOptions=function(e){n.setCssClass(this.replaceOption,"checked",this.searchRange),n.setCssClass(this.searchOption,"checked",this.searchOption.checked),this.replaceOption.textContent=this.replaceOption.checked?"-":"+",n.setCssClass(this.regExpOption,"checked",this.regExpOption.checked),n.setCssClass(this.wholeWordOption,"checked",this.wholeWordOption.checked),n.setCssClass(this.caseSensitiveOption,"checked",this.caseSensitiveOption.checked);var t=this.editor.getReadOnly();this.replaceOption.style.display=t?"none":"",this.replaceBox.style.display=this.replaceOption.checked&&!t?"":"none",this.find(!1,!1,e)},this.highlight=function(e){this.editor.session.highlight(e||this.editor.$search.$options.re),this.editor.renderer.updateBackMarkers()},this.find=function(e,t,i){var o=!this.editor.find(this.searchInput.value,{skipCurrent:e,backwards:t,wrap:!0,regExp:this.regExpOption.checked,caseSensitive:this.caseSensitiveOption.checked,wholeWord:this.wholeWordOption.checked,preventScroll:i,range:this.searchRange})&&this.searchInput.value;n.setCssClass(this.searchBox,"ace_nomatch",o),this.editor._emit("findSearchBox",{match:!o}),this.highlight(),this.updateCounter()},this.updateCounter=function(){var e=this.editor,t=e.$search.$options.re,i=0,n=0;if(t){var o=this.searchRange?e.session.getTextRange(this.searchRange):e.getValue(),s=e.session.doc.positionToIndex(e.selection.anchor);this.searchRange&&(s-=e.session.doc.positionToIndex(this.searchRange.start));for(var r,a=t.lastIndex=0;(r=t.exec(o))&&(i++,(a=r.index)<=s&&n++,!(i>999))&&(r[0]||(t.lastIndex=a+=1,!(a>=o.length))););}this.searchCounter.textContent=n+" of "+(i>999?"999+":i)},this.findNext=function(){this.find(!0,!1)},this.findPrev=function(){this.find(!0,!0)},this.findAll=function(){var e=!this.editor.findAll(this.searchInput.value,{regExp:this.regExpOption.checked,caseSensitive:this.caseSensitiveOption.checked,wholeWord:this.wholeWordOption.checked})&&this.searchInput.value;n.setCssClass(this.searchBox,"ace_nomatch",e),this.editor._emit("findSearchBox",{match:!e}),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(e,t){this.active=!0,this.editor.on("changeSession",this.setSession),this.element.style.display="",this.replaceOption.checked=t,e&&(this.searchInput.value=e),this.searchInput.focus(),this.searchInput.select(),this.editor.keyBinding.addKeyboardHandler(this.$closeSearchBarKb),this.$syncOptions(!0)},this.isFocused=function(){var e=document.activeElement;return e==this.searchInput||e==this.replaceInput}}).call(l.prototype),t.SearchBox=l,t.Search=function(e,t){(e.searchBox||new l(e)).show(e.session.getTextRange(),t)}})),ace.require(["ace/ext/searchbox"],(function(t){e&&(e.exports=t)}))}).call(this,i(138)(e))},5719:function(e,t,i){}}]); \ No newline at end of file diff --git a/packages/bootstrap/assets/v3dist/13.4be18ac1ae5cf0dee180.css b/packages/bootstrap/assets/v3dist/13.d1c5a84bad8dc4fa546a.css similarity index 100% rename from packages/bootstrap/assets/v3dist/13.4be18ac1ae5cf0dee180.css rename to packages/bootstrap/assets/v3dist/13.d1c5a84bad8dc4fa546a.css diff --git a/packages/bootstrap/assets/v3dist/14.b459dd3850fd78366a67.css b/packages/bootstrap/assets/v3dist/14.2d2149193370b185508c.css similarity index 100% rename from packages/bootstrap/assets/v3dist/14.b459dd3850fd78366a67.css rename to packages/bootstrap/assets/v3dist/14.2d2149193370b185508c.css diff --git a/packages/bootstrap/assets/v3dist/14.61b8fefb7231fe211e79.js b/packages/bootstrap/assets/v3dist/14.7055483c65abad4a4148.js similarity index 96% rename from packages/bootstrap/assets/v3dist/14.61b8fefb7231fe211e79.js rename to packages/bootstrap/assets/v3dist/14.7055483c65abad4a4148.js index 2e5dc9cbdf7..c606dd6d22a 100644 --- a/packages/bootstrap/assets/v3dist/14.61b8fefb7231fe211e79.js +++ b/packages/bootstrap/assets/v3dist/14.7055483c65abad4a4148.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[14],{1077:function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(28),r(42),r(4),r(23),r(57),r(17);var u,o=n(r(36)),l=n(r(37)),i=n(r(55)),c=n(r(56)),s=n(r(51)),f=n(r(0)),d=r(239);n(r(792));function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,s.default)(e);if(t){var n=(0,s.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,c.default)(this,a)}}var m=(0,d.inject)("rootStore")(u=function(e){(0,i.default)(r,e);var a=p(r);function r(){var e;(0,o.default)(this,r);for(var t=arguments.length,n=new Array(t),u=0;u0&&void 0!==arguments[0]?arguments[0]:"";return""!==e?"/theme/static/images/".concat(e):"/theme/static/images"}},{key:"updateTheme",value:function(e){return this.submitting(request.post(this.themePath,e))}},{key:"apiVersion",get:function(){return"/kapis/config.kubesphere.io/v1alpha2"}},{key:"themePath",get:function(){return"".concat(this.apiVersion,"/configs/theme")}}]),a}(r(a(68)).default),u=(0,p.default)(n.prototype,"theme",[m.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),(0,p.default)(n.prototype,"updateTheme",[m.action],Object.getOwnPropertyDescriptor(n.prototype,"updateTheme"),n.prototype),n);t.default=v},5116:function(e,t,a){e.exports={header:"_2JOcoqtC-u6w8ftvT7_BUc",content:"_3V0JNfmSu8j6NYqmnMKPR3",infoContent:"_3i9Aa8IM0kGz9aVceuhPlI",title:"_3aR_ra3boMJyaYNhRsvR68",subTitle:"_1_ITlhQyAry-Ekn_VeHUzQ",iconLogoBox:"_1AjmrEvhp_hkavmUVvFhYY",logo:"_27C43z4B576C-KTdxD2eHu",favicon:"_36mB4faAzNSLPHncVJaRoA",backgroundBox:"ooab6D1rB_NTg4R4LdJ5q",emptyBackground:"_3f2883dYyS-AI-fq0yBlZv",icon:"_3D2PyvELGD7ctl2GorUotd",backgroundImg:"_28K92g0oETDwig1cimlQ4i",image:"_2-kR0HtnVEpARxqkUZWD2J",info:"_1A5ndzO--Hmwev3b5PWNMd",banLink:"_1oDVQmWkZ44SlDACI3ZHA9"}},5117:function(e,a,r){"use strict";r(15);var n=r(157),u=r(20);r(5),r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(42),r(4),r(23),r(57),r(17);var o=u(r(36)),l=u(r(37)),i=u(r(55)),c=u(r(56)),s=u(r(51)),f=n(r(0)),d=r(186),p=u(r(789)),m=u(r(790)),h=u(r(792)),v=u(r(5118)),g=u(r(5120)),y=u(r(5122));function E(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,s.default)(e);if(t){var n=(0,s.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,c.default)(this,a)}}var b=function(e){(0,i.default)(r,e);var a=E(r);function r(){var e;(0,o.default)(this,r);for(var t=arguments.length,n=new Array(t),u=0;u0},e.renderCard=function(a,r){return S.default.createElement("div",{className:F.default.wrapper},r.map((function(r){var n=!1;return a.forEach((function(e){e.name===j.LICENSE_AUTHORIZED_SERVICE_MAP[r.name]&&(n=!0)})),!n&&e.isHideUnauthorizedComponents?"":S.default.createElement("div",{key:r.title,className:(0,O.default)(F.default.wrapperItem,(0,o.default)({},F.default.unAuthored,e.isUnAuthorized||e.isExpired||!n))},S.default.createElement(I.default,{icon:r.avatar,iconSize:40,title:t(r.title),desc:t("FEATURE")}),S.default.createElement("div",{className:F.default.authorizedInfo},S.default.createElement("p",null,t(n?"AUTHORIZED":"UNAUTHORIZED")),S.default.createElement("p",null,t("STATUS"))))})))},e.renderServiceInfo=function(){var a=e.licenseInfo.componentConstraints,r=(0,R.toJS)(a)||[],n=e.isUnAuthorized||e.isExpired?0:r.length,u=r.map((function(e){return e.name}))||[];return S.default.createElement("div",{className:F.default.panel},S.default.createElement("div",{className:F.default.panelTitle},t("AUTHORIZED_FEATURES"),S.default.createElement("span",{className:(0,O.default)((0,o.default)({},F.default.noService,0===n))},n)),S.default.createElement("div",{className:F.default.CardContainer},(!e.isHideUnauthorizedComponents||e.isShowComponents(u,e.PlateformComponent))&&S.default.createElement(S.default.Fragment,null,S.default.createElement("div",{className:F.default.cardTitle},t("PLATFORM_FEATURES")),e.renderCard(r,e.PlateformComponent)),(!e.isHideUnauthorizedComponents||e.isShowComponents(u,e.RandonDBComponent))&&S.default.createElement(S.default.Fragment,null,S.default.createElement("div",{className:F.default.cardTitle},t("RADON_DB_FEATURES")),e.renderCard(r,e.RandonDBComponent))))},e.handleLicenseStatus=function(){return e.isUnAuthorized?"INACTIVATED":"ACTIVATED"},e}return(0,h.default)(r,[{key:"getAuthorizedStatus",value:function(e){return"subscription"===e?this.isExpired?"".concat(t("SUBSCRIPTION_EXPIRES")):"".concat(t("SUBSCRIPTION_IN_PROGRESS")):this.isExpired?"".concat(t("WARRANTY_EXPIRES")):"".concat(t("WARRANTY_PERIOD"))}},{key:"componentDidMount",value:function(){(0,x.default)((0,R.toJS)(this.licenseInfo))&&this.getData()}},{key:"render",value:function(){var e=this.handleLicenseStatus();return S.default.createElement("div",null,S.default.createElement(k.default,{icon:"certification",title:t("LICENSE"),description:t("LICENSE_DESC")}),S.default.createElement(T.default,{title:t("BASIC_INFORMATION")},S.default.createElement("div",{className:F.default.horizonBox},S.default.createElement("div",{className:(0,O.default)(F.default.horizonBox,F.default.item)},S.default.createElement("div",{className:(0,O.default)(F.default.horizonBox,F.default.item)},S.default.createElement("div",{className:F.default.avatarIcon},S.default.createElement(C.Icon,{name:"human",size:40}),S.default.createElement(C.Icon,{className:F.default.badge,name:"certification",size:20,color:{primary:"#fff",secondary:"#36435C"}})),S.default.createElement("div",{className:F.default.avatarText},S.default.createElement("div",{className:F.default.title},t("PRODUCT_SERVICE_AUTHORIZATION")),S.default.createElement("div",{className:F.default.description},S.default.createElement("span",null,t(e)),this.renderTip()))),S.default.createElement(N.default,{className:F.default.item,title:this.licenseInfo.clusterId,description:t("CLUSTER_ID")}),S.default.createElement("div",{className:F.default.item},this.isAdmin&&S.default.createElement(N.default,{title:this.licenseInfo.id,description:t("LICENSE_ID")}))),this.isAdmin&&S.default.createElement(C.Button,{onClick:this.handleLicenseModal},t(this.operationText))),!this.isUnAuthorized&&this.renderLicense()),this.renderServiceInfo())}},{key:"isHideUnauthorizedComponents",get:function(){return globals.config.isHideUnauthorizedComponents}},{key:"isAdmin",get:function(){return globals.app.isPlatformAdmin}},{key:"isUnAuthorized",get:function(){return this.licenseInfo.isUnAuthorized||!1}},{key:"operationText",get:function(){return this.isOverLimit?"ACTIVATE":"UPDATE_LICENSE"}},{key:"dueDate",get:function(){return this.licenseInfo.dueDate||-1}},{key:"isExpired",get:function(){return!!this.licenseInfo.isExpired||!!this.licenseInfo.unExpired&&!(this.dueDate<=30&&this.dueDate>0)}},{key:"isOverLimit",get:function(){return this.isUnAuthorized||this.isExpired}},{key:"PlateformComponent",get:function(){return[{avatar:"edge",title:"EDGE_NODE",name:"Edge"},{avatar:"observability",title:"OBSERVABILITY_CENTER",name:"Observability"},{avatar:"springcloud",title:"Spring Cloud",name:"SpringCloud"}]}},{key:"RandonDBComponent",get:function(){return[{avatar:"mysql",title:"MySQL",name:"MySQL"},{avatar:"postgre-sql",title:"PostgreSQL",name:"PostgreSQL"},{avatar:"click-house",title:"ClickHouse",name:"ClickHouse"},{avatar:"redis",title:"Redis Cluster",name:"Redis Cluster"},{avatar:"redis",title:"Redis Sentinel",name:"Redis Sentinel"},{avatar:"mongo-db",title:"MongoDB",name:"MongoDB"},{avatar:"eck",title:"ECK",name:"ECK"},{avatar:"opensearch",title:"OpenSearch",name:"OpenSearch"},{avatar:"kafka",title:"Kafka",name:"Kafka"}]}}]),r}(S.Component),s=(0,b.default)(c.prototype,"licenseInfo",[R.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return this.props.rootStore.licenseInfo||{}}}),f=(0,b.default)(c.prototype,"getData",[R.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return(0,d.default)(l.default.mark((function t(){var a;return l.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.store.fetchLicense();case 2:a=t.sent,e.licenseInfo=a,e.props.rootStore.setLicense(a);case 5:case"end":return t.stop()}}),t)})))}}),i=c))||i)||i)||i;a.default=z},5124:function(e,t,a){e.exports={horizonBox:"aSOSVwooCxiG_B3OAokSM",item:"_1uo5FIBpJPMWXqxYs16rRX",authorizedStatus:"_72PlO0UzoC_on5UQ4mc7V",avatarIcon:"gEPgN0d7o6Jf_9zNJ98dD",badge:"_2G2qfvYezrHqIFKrdD1b0W",avatarText:"_1q00tYwvNn3IoaG6k4_v7I",title:"_1ZOuoGYuUP5CciBJI7xVuW",description:"zz_4Sg21d43Z6kzTFBU55",content:"_1VKeY_MWROP-fg5sBdpYHX",licenseInfo:"_1Lb6BMpGYQ2eqqsdFUNmBG",panel:"_1D5RVdF6yNGcz7YWBCeVTH",panelTitle:"_3HsqePykwgEHN5PdFBrm7e",noService:"WeI_ksH2bomiGM0v-6RUD",CardContainer:"_35er4Q-ScOqFL-03Id63dA",cardTitle:"_3zt-ZRRTYtcwP_bUWk_rzf",wrapper:"_2xO7vcyv1ddBLB037QY3gW",disabled:"_3au_36fExikK3bnY_woae7",wrapperItem:"_2jSBecL6tULHrv1qgYo1tM",authorizedInfo:"_395EEfZZJZqap6ehbZki1Z",unAuthored:"ijCWvcMfHLYVhB75aj1lx"}},5125:function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(31),r(6),r(10),r(4),r(23),r(17),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(31),r(6),r(42),r(10),r(4),r(22),r(23),r(57),r(17),r(7);var u=n(r(43));r(41);var o,l=n(r(44)),i=n(r(36)),c=n(r(37)),s=n(r(55)),f=n(r(56)),d=n(r(51)),p=n(r(0)),m=r(239),h=n(r(63)),v=n(r(26)),g=n(r(74)),y=n(r(242)),E=n(r(135)),b=n(r(240)),S=n(r(789)),T=n(r(1712)),I=n(r(1077)),N=n(r(1078)),D=n(r(919)),k=r(440),C=n(r(435)),O=(r(186),r(791));function _(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,d.default)(e);if(t){var n=(0,d.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,f.default)(this,a)}}var A="default-email-config",R="global-email-config-secret",M=(0,m.inject)("rootStore")(o=(0,m.observer)(o=(0,O.trigger)(o=function(e){(0,s.default)(r,e);var a=_(r);function r(){var e;(0,i.default)(this,r);for(var n=arguments.length,o=new Array(n),c=0;c0&&void 0!==arguments[0]?arguments[0]:{};return"".concat(e.apiVersion).concat(e.getPath(t),"/notifications/search")},e.getFilterParams=function(e){var t=I({},e);return t.timeRange&&delete t.timeRange,t},e}return(0,p.default)(l,[{key:"fetchList",value:(a=(0,c.default)(n.default.mark((function e(t){var a,r,l,i,c,s,f,d,p=this;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=t.more,r=t.page,l=void 0===r?1:r,i=t.limit,c=void 0===i?10:i,s=(0,o.default)(t,["more","page","limit"]),this.list.isLoading=!0,s.size=c,s.from=(l-1)*c,e.next=6,request.get(this.getResourceUrl(),this.getFilterParams(s));case 6:return f=e.sent,d=((0,E.default)(f,"items")||[]).map((function(e){return I({},p.mapper(e))})),this.list.update(I(I({data:a?[].concat((0,u.default)(this.list.data),(0,u.default)(d)):d,total:f.totalItems||f.total_count||f.total||d.length||0},s),{},{limit:Number(c),page:Number(l),isLoading:!1},this.list.silent?{}:{selectedRowKeys:[]})),e.abrupt("return",d);case 10:case"end":return e.stop()}}),e,this)}))),function(e){return a.apply(this,arguments)})},{key:"fetchClusterList",value:(t=(0,c.default)(n.default.mark((function e(){var t,a,r=this;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,request.get("kapis/tenant.kubesphere.io/v1beta1/clusters");case 2:return t=e.sent,a=((0,E.default)(t,"items")||[]).map((function(e){return I({},r.ClusterMapper(e))})),this.clusters=a,e.abrupt("return",a);case 6:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})},{key:"apiVersion",get:function(){return"kapis/notification.kubesphere.io/v2beta2"}},{key:"ClusterMapper",get:function(){return S.default.clusters||function(e){return e}}}]),l}(r(a(1012)).default),i=(0,y.default)(l.prototype,"clusters",[b.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),(0,y.default)(l.prototype,"fetchList",[b.action],Object.getOwnPropertyDescriptor(l.prototype,"fetchList"),l.prototype),(0,y.default)(l.prototype,"fetchClusterList",[b.action],Object.getOwnPropertyDescriptor(l.prototype,"fetchClusterList"),l.prototype),l);t.default=D},5132:function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(16),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(5),r(16);var u=n(r(0)),o=r(239),l=r(186),i=n(r(895)),c=n(r(5133)),s=(0,o.observer)((function(e){var a=e.cluster,r=e.onChange,n=e.store,o=(0,i.default)(n.clusters,(function(e){return{label:"".concat(t("CLUSTER"),": ").concat(e.name),value:e.name}}));return u.default.createElement(l.Select,{className:c.default.select,value:a,onChange:r,options:o,showTip:!0})}));a.default=s},5133:function(e,t,a){e.exports={select:"_8q6l8PxlcuoFZgOuWDniA"}},5134:function(e,a,r){"use strict";r(15);var n=r(20),u=r(157);r(5),r(187),r(31),r(6),r(29),r(10),r(4),r(22),r(23),r(17),r(38),r(7),r(32),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(187),r(31),r(6),r(29),r(42),r(10),r(4),r(22),r(23),r(57),r(17),r(38),r(7),r(32);var o=n(r(43)),l=n(r(96));r(41);var i,c=n(r(44)),s=n(r(36)),f=n(r(37)),d=n(r(55)),p=n(r(56)),m=n(r(51)),h=u(r(0)),v=n(r(60)),g=n(r(63)),y=n(r(26)),E=n(r(74)),b=n(r(242)),S=n(r(135)),T=r(239),I=n(r(1077)),N=n(r(1720)),D=n(r(789)),k=n(r(240)),C=n(r(888)),O=n(r(919)),_=n(r(1078)),A=n(r(435)),R=r(440);function M(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,m.default)(e);if(t){var n=(0,m.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,p.default)(this,a)}}var w="default-feishu-config",L="global-feishu-receiver",x="global-feishu-config-secret",P=(0,T.observer)(i=function(e){(0,d.default)(r,e);var a=M(r);function r(){var e;(0,s.default)(this,r);for(var n=arguments.length,u=new Array(n),i=0;i0||o.length>0){if(!i)return k.default.error({content:t("PLEASE_ENTER_VALUE_CUSTOM",{value:"AppKey"})}),!1;if(!c)return k.default.error({content:t("PLEASE_ENTER_VALUE_CUSTOM",{value:"AppSecret"})}),!1}if(s||f||!(0,g.default)(n)){if(!s)return k.default.error({content:t("PLEASE_ENTER_VALUE_CUSTOM",{value:"Webhook URL"})}),!1;if(!f&&(0,g.default)(n))return k.default.error({content:t("DINGTALK_CHATBOT_SECURITY_TIP")}),!1}return!0},e.getResource=(0,c.default)(o.default.mark((function t(){var a,r,n,u,i;return o.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Promise.all([e.configStore.getResource({name:w}),e.receiverStore.getResource({name:L}),e.secretStore.getResource({name:x})]);case 2:return a=t.sent,r=(0,l.default)(a,3),n=r[0],u=r[1],i=r[2],t.abrupt("return",{isExitConfig:n,isExitReceiver:u,isExitSecret:i});case 8:case"end":return t.stop()}}),t)}))),e.handleSubmit=function(){var a=(0,c.default)(o.default.mark((function a(r){var n,u,l,i,c,s,f,d,p,m;return o.default.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:if(n=(0,S.default)(r),u=n.config,l=n.receiver,i=n.secret,e.handleVerify(r)){a.next=3;break}return a.abrupt("return");case 3:return c=(0,y.default)(i,"data",{}),Object.keys(c).forEach((function(e){c[e]=(0,R.safeBtoa)(c[e])})),(0,E.default)(u,"spec.feishu.appID.valueFrom.secretKeyRef.key","appkey"),(0,E.default)(u,"spec.feishu.appID.valueFrom.secretKeyRef.name",x),(0,E.default)(u,"spec.feishu.appSecret.valueFrom.secretKeyRef.name",x),(0,E.default)(u,"spec.feishu.appSecret.valueFrom.secretKeyRef.key","appsecret"),(0,E.default)(l,"spec.feishu.chatbot.webhook.valueFrom.secretKeyRef.key","webhook"),(0,E.default)(l,"spec.feishu.chatbot.webhook.valueFrom.secretKeyRef.name",x),(0,E.default)(l,"spec.feishu.chatbot.secret.valueFrom.secretKeyRef.key","chatbotsecret"),(0,E.default)(l,"spec.feishu.chatbot.secret.valueFrom.secretKeyRef.name",x),c.appkey||(0,b.default)(u,"spec.feishu.appID"),c.appsecret||(0,b.default)(u,"spec.feishu.appSecret"),s=(0,y.default)(u,"spec.feishu"),(0,g.default)(s)&&(0,b.default)(u,"spec.feishu"),c.webhook||(0,b.default)(l,"spec.feishu.chatbot.webhook"),c.chatbotsecret||(0,b.default)(l,"spec.feishu.chatbot.secret"),(0,g.default)((0,y.default)(l,"spec.feishu.chatbot.keywords"))&&(0,b.default)(l,"spec.feishu.chatbot.keywords"),(0,g.default)((0,y.default)(l,"spec.feishu.chatbot"))&&(0,b.default)(l,"spec.feishu.chatbot"),a.next=23,e.getResource();case 23:if(f=a.sent,d=f.isExitConfig,p=f.isExitReceiver,m=f.isExitSecret,!d){a.next=32;break}return a.next=30,e.configStore.update({name:w},u);case 30:a.next=35;break;case 32:return(0,b.default)(u,"metadata.resourceVersion"),a.next=35,e.configStore.create(u);case 35:if(!p){a.next=40;break}return a.next=38,e.receiverStore.update({name:L},l);case 38:a.next=43;break;case 40:return(0,E.default)(l,"spec.feishu.enabled",!0),a.next=43,e.receiverStore.create(l);case 43:if(!m){a.next=48;break}return a.next=46,e.secretStore.update({name:x},(0,E.default)(e.secretTemplate,"data",c));case 46:a.next=50;break;case 48:return a.next=50,e.secretStore.create((0,E.default)(e.secretTemplate,"data",c));case 50:return a.next=52,e.fetchData();case 52:k.default.success({content:t("UPDATE_SUCCESSFUL"),duration:1e3});case 53:case"end":return a.stop()}}),a)})));return function(e){return a.apply(this,arguments)}}(),e.onFormClose=function(){e.setState({formData:(0,S.default)(e.formData)})},e}return(0,f.default)(r,[{key:"componentDidMount",value:function(){this.fetchData()}},{key:"render",value:function(){var e=this.state,t=e.isLoading,a=e.formData,r=e.noConfig;return h.default.createElement("div",null,h.default.createElement(I.default,{type:"feishu"}),h.default.createElement(D.default,{loading:t},h.default.createElement(N.default,{data:a,noConfig:r,onCancel:this.onFormClose,onSubmit:this.handleSubmit,onVerify:this.handleVerify,getVerifyFormTemplate:this.getVerifyFormTemplate,isSubmitting:this.receiverStore.isSubmitting})))}},{key:"configFormTemplate",get:function(){return A.default.notificationconfigs({name:w})}},{key:"receiverFormTemplate",get:function(){return A.default.notificationreceivers({name:L,type:"feishu"})}},{key:"secretTemplate",get:function(){return A.default.globalsecret({name:x})}}]),r}(h.Component))||i;a.default=P},5135:function(e,a,r){"use strict";var n=r(20),u=r(157);r(12),r(5),r(11),r(31),r(6),r(16),r(9),r(13),r(10),r(4),r(316),r(23),r(17),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(45),r(5),r(11),r(31),r(6),r(28),r(42),r(16),r(34),r(15),r(9),r(13),r(10),r(4),r(316),r(23),r(57),r(17),r(7);var o,l=n(r(30)),i=n(r(315)),c=n(r(36)),s=n(r(37)),f=n(r(55)),d=n(r(56)),p=n(r(51)),m=u(r(0)),h=u(r(793)),v=n(r(1993)),g=n(r(243)),y=r(239),E=n(r(796)),b=n(r(936)),S=r(791),T=r(72),I=n(r(788)),N=r(52),D=r(894),k=n(r(1994));function C(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function O(e){for(var t=1;t0&&void 0!==o[0]?o[0]:{},r=a.silent,n=(0,c.default)(a,["silent"]),u=e.props.store,r&&(u.list.silent=!0),t.next=5,u.fetchList(C(C({},n),{},{type:"email"}));case 5:u.list.silent=!1;case 6:case"end":return t.stop()}}),t)}))),e}return(0,p.default)(r,[{key:"render",value:function(){var e=this.props.tableProps;return g.default.createElement(y.ListPage,(0,o.default)({},this.props,{getData:this.getData,noWatch:!0}),g.default.createElement(N.default,(0,o.default)({},e,{itemActions:this.itemActions,columns:this.getColumns(),onCreate:this.showCreate})))}},{key:"itemActions",get:function(){var e=this,a=this.props,r=a.trigger,n=a.name;return[{key:"edit",icon:"pen",text:t("EDIT"),action:"edit",onClick:function(t){return e.props.routing.push("/settings/notification-subscription/subscription-mail/detail/".concat(t.name,"/edit"))}},{key:"delete",icon:"trash",text:t("DELETE"),action:"delete",onClick:function(t){return r("resource.delete",{type:n,detail:t,success:e.props.routing.query})}}]}}]),r}(g.Component))||s;a.default=_},5144:function(e,t,a){e.exports={avatar:"_27MUXxpp-T3Q5w015yfHbv"}},5145:function(e,a,r){"use strict";r(15);var n=r(20),u=r(157);r(5),r(84),r(29),r(97),r(16),r(137),r(4),r(22),r(23),r(24),r(17),r(38),r(62),r(32),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(84),r(29),r(28),r(97),r(42),r(16),r(137),r(4),r(22),r(23),r(57),r(24),r(17),r(38),r(62),r(32);var o=n(r(43)),l=n(r(96));r(41);var i,c=n(r(44)),s=n(r(36)),f=n(r(37)),d=n(r(55)),p=n(r(56)),m=n(r(51)),h=u(r(0)),v=r(239),g=n(r(135)),y=n(r(74)),E=n(r(26)),b=n(r(242)),S=n(r(63)),T=r(186),I=n(r(240)),N=n(r(829)),D=n(r(1377)),k=n(r(1713)),C=n(r(888)),O=n(r(1078)),_=n(r(919)),A=n(r(435)),R=r(72),M=n(r(5146)),w=n(r(5147)),L=n(r(1995));function x(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,m.default)(e);if(t){var n=(0,m.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,p.default)(this,a)}}var P=(0,v.inject)("rootStore")(i=function(e){(0,d.default)(r,e);var a=x(r);function r(){var e;(0,s.default)(this,r);for(var n=arguments.length,u=new Array(n),i=0;i0),"Match"===e.operator&&(t=t&&e.regexValue),t},e.itemValidator=function(a,r,n){return r?r.some((function(t){return!e.checkItemValid(t)}))?n({message:t("INVALID_NOTIFICATION_CONDITION")}):void n():n()},e.handleSwitch=function(t){e.setState({enabled:t})},e}return(0,f.default)(r,[{key:"componentDidMount",value:function(){this.fetchData()}},{key:"renderControlAnnotation",value:function(){return h.default.createElement("div",{className:L.default.annotation},h.default.createElement(T.Icon,{name:"question"}),h.default.createElement("p",{className:L.default.desc},t.html("NOTIFICATION_CONDITION_SETTING_TIP")))}},{key:"render",value:function(){var e=this.state,a=e.formData,r=e.isVerifying,n=e.enabled,u=e.isEdit,o=this.receiverStore.isSubmitting;return h.default.createElement("div",null,h.default.createElement("div",{className:L.default.header},t(u?"EDIT_NOTIFICATION_SUBSCRIPTION":"CREATE_NOTIFICATION_SUBSCRIPTION")),h.default.createElement(T.Form,{ref:this.formRef,data:a},h.default.createElement("div",{className:L.default.body},h.default.createElement("div",{className:L.default.row},h.default.createElement("div",{className:L.default.title},t("BASIC_INFORMATION")),h.default.createElement(T.Form.Item,{label:t("NAME"),desc:t("NAME_DESC"),rules:[{required:!0,message:t("WORKSPACE_NAME_EMPTY_DESC")},{pattern:R.PATTERN_NAME,message:t("INVALID_NAME_DESC")}]},h.default.createElement(T.Input,{name:"metadata.name",autoFocus:!0,maxLength:63,disabled:u})),h.default.createElement(T.Form.Item,{label:t("ALIAS"),desc:t("ALIAS_NAME_DESC"),rules:[{pattern:R.PATTERN_ALIAS_NAME,message:t("INVALID_ALIAS_NAME_DESC")}]},h.default.createElement(T.Input,{name:"metadata.annotations['kubesphere.io/alias-name']",maxLength:63})),h.default.createElement(T.Form.Item,{label:t("DESCRIPTION"),desc:t("DESCRIPTION_DESC")},h.default.createElement(T.TextArea,{name:"metadata.annotations['kubesphere.io/description']",maxLength:256,rows:"3"}))),h.default.createElement("div",{className:L.default.row},h.default.createElement("div",{className:L.default.title},t("RECIPIENT_SETTINGS")),h.default.createElement(T.Form.Item,{rules:[{required:!0,message:t("ENTER_RECIPIENT_EMAIL_DESC")}]},h.default.createElement(M.default,{name:"spec.email.to"}))),h.default.createElement("div",{className:L.default.row},h.default.createElement("div",{className:L.default.title},t("NOTIFICATION_RECEIVER")),h.default.createElement(T.Form.Item,null,h.default.createElement(w.default,{name:"spec.email.enabled",text:n?t("ENABLED"):t("DISABLED"),checked:n,onChange:this.handleSwitch}))),h.default.createElement("div",{className:L.default.row},h.default.createElement("div",{className:L.default.title},t("FILTER_CONDITIONS")),h.default.createElement("div",{className:L.default.item},h.default.createElement(T.Form.Item,{rules:[{validator:this.itemValidator,checkOnSubmit:!0}]},h.default.createElement(N.default,{name:"spec.email.alertSelector.matchExpressions",itemType:"object",addText:t("ADD"),checkItemValid:this.checkItemValid,desc:this.renderControlAnnotation()},h.default.createElement(D.default,null))))),h.default.createElement("div",{className:L.default.contentWrapper},h.default.createElement("p",null,t("SEND_TEST_MESSAGE_DESC")),h.default.createElement(T.Button,{className:L.default.action,onClick:this.handleVerify,loading:r},t("SEND_TEST_MESSAGE")))),h.default.createElement("div",{className:L.default.footer},h.default.createElement(T.Button,{onClick:this.onCancel},t("CANCEL")),h.default.createElement(T.Button,{type:"control",loading:o,onClick:this.onSubmit},t("OK")))))}},{key:"receiverFormTemplate",get:function(){var e=A.default.notificationreceivers({type:"email"});return(0,y.default)(e,"spec.email.enabled",!0),e}}]),r}(h.Component))||i;a.default=P},5146:function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(11),r(18),r(97),r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(11),r(18),r(97),r(42),r(4),r(23),r(57),r(24),r(193),r(17);var u=n(r(61)),o=n(r(36)),l=n(r(37)),i=n(r(55)),c=n(r(56)),s=n(r(51)),f=n(r(0)),d=n(r(1)),p=n(r(3)),m=n(r(63)),h=n(r(26)),v=r(186),g=n(r(240)),y=n(r(812)),E=n(r(1060)),b=r(72),S=n(r(322)),T=n(r(1995));function I(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,s.default)(e);if(t){var n=(0,s.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,c.default)(this,a)}}var N=function(e){(0,i.default)(r,e);var a=I(r);function r(){var e;(0,o.default)(this,r);for(var n=arguments.length,l=new Array(n),i=0;in-1)g.default.error({content:t.html("MAX_EAMIL_COUNT",{count:n}),duration:1e3});else if(r.some((function(e){return e===a})))g.default.error({content:t("EMAIL_EXISTS"),duration:1e3});else{if(b.PATTERN_EMAIL.test(a))return!0;g.default.error({content:t("INVALID_EMAIL"),duration:1e3})}else g.default.error({content:t("EMAIL_EMPTY_DESC"),duration:1e3})},e.handleAdd=function(t){var a=e.props,r=a.value;(0,a.onChange)([].concat((0,u.default)(r),[t]))},e.handleDelete=function(t){var a=e.props,r=a.value;(0,a.onChange)(r.filter((function(e){return e!==t})))},e.renderListItem=function(a){return f.default.createElement("div",null,a," ",a===e.userEmail&&f.default.createElement(v.Tag,null,t("CURRENT_USER")))},e}return(0,l.default)(r,[{key:"render",value:function(){var e=this,t=this.props,a=t.value,r=t.className;return f.default.createElement("div",{className:(0,p.default)(T.default.wrapper,r)},f.default.createElement(E.default,{placeholder:"user@example.com",validate:this.validateMail,onAdd:this.handleAdd,showIcon:!0}),!(0,m.default)(a)&&f.default.createElement("div",{className:T.default.listWrapper},f.default.createElement(y.default,null,a.map((function(t){return f.default.createElement(y.default.Item,{key:t,className:T.default.listItem,title:e.renderListItem(t),onDelete:function(){return e.handleDelete(t)}})})))))}},{key:"userEmail",get:function(){return(0,h.default)(globals,"user.email")}}]),r}(f.default.Component);a.default=N,N.propTypes={value:d.default.array,onChange:d.default.func},N.defaultProps={value:[],onChange:function(){}}},5147:function(e,t,a){"use strict";a(15);var r=a(157),n=a(20);a(5),a(4),a(23),a(17),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(45),a(5),a(42),a(4),a(23),a(57),a(17);var u=n(a(30)),o=n(a(36)),l=n(a(37)),i=n(a(55)),c=n(a(56)),s=n(a(51)),f=n(a(63)),d=r(a(0)),p=n(a(1)),m=n(a(3)),h=a(186),v=n(a(5148));function g(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,s.default)(e);if(t){var n=(0,s.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,c.default)(this,a)}}var y=function(e){(0,i.default)(a,e);var t=g(a);function a(){var e;(0,o.default)(this,a);for(var r=arguments.length,n=new Array(r),u=0;u0?c.matchExpressions.map((function(a,r){var n=e.arrayValues2String(a);return p.default.createElement("li",{key:r},p.default.createElement("div",null,p.default.createElement("span",{className:D.default.label},t("LABEL"),":"),p.default.createElement("span",{className:D.default.value},C[a.key]||a.key)),p.default.createElement("div",null,p.default.createElement("span",{className:D.default.label},t("CONDITION_OPERATOR"),":"),p.default.createElement("span",{className:D.default.value},O[a.operator])),p.default.createElement("div",null,p.default.createElement("span",{className:D.default.label},t("VALUE"),":"),p.default.createElement("span",{className:D.default.value},n)))})):p.default.createElement("li",null,t("NO_DATA")))))}},{key:"severities",get:function(){var e={};return T.SEVERITY_LEVEL.forEach((function(a){e[a.value]=t(a.label)})),e}},{key:"listUrl",get:function(){return"/settings/notification-subscription/".concat(this.module)}},{key:"module",get:function(){return"subscription-mail"}},{key:"name",get:function(){return"NOTIFICATION_SUBSCRIPTION"}},{key:"routing",get:function(){return this.props.rootStore.routing}}]),r}(p.Component))||o)||o)||o;a.default=_},5150:function(e,t,a){"use strict";var r=a(20);a(12),a(5),a(187),a(11),a(6),a(84),a(18),a(16),a(9),a(13),a(10),a(4),a(23),a(24),a(17),a(85),a(62),a(7),Object.defineProperty(t,"__esModule",{value:!0}),t.Component=t.default=void 0,a(12),a(45),a(5),a(187),a(11),a(6),a(84),a(18),a(28),a(42),a(16),a(34),a(15),a(9),a(13),a(10),a(4),a(23),a(57),a(24),a(17),a(85),a(62),a(7);var n=r(a(30)),u=r(a(58)),o=r(a(315)),l=r(a(36)),i=r(a(37)),c=r(a(55)),s=r(a(56)),f=r(a(51)),d=r(a(198)),p=r(a(195)),m=r(a(63)),h=r(a(0)),v=a(433),g=a(239),y=a(186),E=r(a(788)),b=r(a(790)),S=r(a(5151)),T=r(a(5153));function I(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function N(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:"";return""!==e?"/theme/static/images/".concat(e):"/theme/static/images"}},{key:"updateTheme",value:function(e){return this.submitting(request.post(this.themePath,e))}},{key:"apiVersion",get:function(){return"/kapis/config.kubesphere.io/v1alpha2"}},{key:"themePath",get:function(){return"".concat(this.apiVersion,"/configs/theme")}}]),a}(r(a(68)).default),u=(0,p.default)(n.prototype,"theme",[m.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),(0,p.default)(n.prototype,"updateTheme",[m.action],Object.getOwnPropertyDescriptor(n.prototype,"updateTheme"),n.prototype),n);t.default=v},5117:function(e,t,a){e.exports={header:"_2JOcoqtC-u6w8ftvT7_BUc",content:"_3V0JNfmSu8j6NYqmnMKPR3",infoContent:"_3i9Aa8IM0kGz9aVceuhPlI",title:"_3aR_ra3boMJyaYNhRsvR68",subTitle:"_1_ITlhQyAry-Ekn_VeHUzQ",iconLogoBox:"_1AjmrEvhp_hkavmUVvFhYY",logo:"_27C43z4B576C-KTdxD2eHu",favicon:"_36mB4faAzNSLPHncVJaRoA",backgroundBox:"ooab6D1rB_NTg4R4LdJ5q",emptyBackground:"_3f2883dYyS-AI-fq0yBlZv",icon:"_3D2PyvELGD7ctl2GorUotd",backgroundImg:"_28K92g0oETDwig1cimlQ4i",image:"_2-kR0HtnVEpARxqkUZWD2J",info:"_1A5ndzO--Hmwev3b5PWNMd",banLink:"_1oDVQmWkZ44SlDACI3ZHA9"}},5118:function(e,a,r){"use strict";r(15);var n=r(157),u=r(20);r(5),r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(42),r(4),r(23),r(57),r(17);var o=u(r(36)),l=u(r(37)),i=u(r(55)),c=u(r(56)),s=u(r(51)),f=n(r(0)),d=r(186),p=u(r(789)),m=u(r(790)),h=u(r(792)),v=u(r(5119)),g=u(r(5121)),y=u(r(5123));function E(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,s.default)(e);if(t){var n=(0,s.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,c.default)(this,a)}}var b=function(e){(0,i.default)(r,e);var a=E(r);function r(){var e;(0,o.default)(this,r);for(var t=arguments.length,n=new Array(t),u=0;u0},e.renderCard=function(a,r){return S.default.createElement("div",{className:F.default.wrapper},r.map((function(r){var n=!1;return a.forEach((function(e){e.name===j.LICENSE_AUTHORIZED_SERVICE_MAP[r.name]&&(n=!0)})),!n&&e.isHideUnauthorizedComponents?"":S.default.createElement("div",{key:r.title,className:(0,O.default)(F.default.wrapperItem,(0,o.default)({},F.default.unAuthored,e.isUnAuthorized||e.isExpired||!n))},S.default.createElement(I.default,{icon:r.avatar,iconSize:40,title:t(r.title),desc:t("FEATURE")}),S.default.createElement("div",{className:F.default.authorizedInfo},S.default.createElement("p",null,t(n?"AUTHORIZED":"UNAUTHORIZED")),S.default.createElement("p",null,t("STATUS"))))})))},e.renderServiceInfo=function(){var a=e.licenseInfo.componentConstraints,r=(0,R.toJS)(a)||[],n=e.isUnAuthorized||e.isExpired?0:r.length,u=r.map((function(e){return e.name}))||[];return S.default.createElement("div",{className:F.default.panel},S.default.createElement("div",{className:F.default.panelTitle},t("AUTHORIZED_FEATURES"),S.default.createElement("span",{className:(0,O.default)((0,o.default)({},F.default.noService,0===n))},n)),S.default.createElement("div",{className:F.default.CardContainer},(!e.isHideUnauthorizedComponents||e.isShowComponents(u,e.PlateformComponent))&&S.default.createElement(S.default.Fragment,null,S.default.createElement("div",{className:F.default.cardTitle},t("PLATFORM_FEATURES")),e.renderCard(r,e.PlateformComponent)),(!e.isHideUnauthorizedComponents||e.isShowComponents(u,e.RandonDBComponent))&&S.default.createElement(S.default.Fragment,null,S.default.createElement("div",{className:F.default.cardTitle},t("RADON_DB_FEATURES")),e.renderCard(r,e.RandonDBComponent))))},e.handleLicenseStatus=function(){return e.isUnAuthorized?"INACTIVATED":"ACTIVATED"},e}return(0,h.default)(r,[{key:"getAuthorizedStatus",value:function(e){return"subscription"===e?this.isExpired?"".concat(t("SUBSCRIPTION_EXPIRES")):"".concat(t("SUBSCRIPTION_IN_PROGRESS")):this.isExpired?"".concat(t("WARRANTY_EXPIRES")):"".concat(t("WARRANTY_PERIOD"))}},{key:"componentDidMount",value:function(){(0,x.default)((0,R.toJS)(this.licenseInfo))&&this.getData()}},{key:"render",value:function(){var e=this.handleLicenseStatus();return S.default.createElement("div",null,S.default.createElement(k.default,{icon:"certification",title:t("LICENSE"),description:t("LICENSE_DESC")}),S.default.createElement(T.default,{title:t("BASIC_INFORMATION")},S.default.createElement("div",{className:F.default.horizonBox},S.default.createElement("div",{className:(0,O.default)(F.default.horizonBox,F.default.item)},S.default.createElement("div",{className:(0,O.default)(F.default.horizonBox,F.default.item)},S.default.createElement("div",{className:F.default.avatarIcon},S.default.createElement(C.Icon,{name:"human",size:40}),S.default.createElement(C.Icon,{className:F.default.badge,name:"certification",size:20,color:{primary:"#fff",secondary:"#36435C"}})),S.default.createElement("div",{className:F.default.avatarText},S.default.createElement("div",{className:F.default.title},t("PRODUCT_SERVICE_AUTHORIZATION")),S.default.createElement("div",{className:F.default.description},S.default.createElement("span",null,t(e)),this.renderTip()))),S.default.createElement(N.default,{className:F.default.item,title:this.licenseInfo.clusterId,description:t("CLUSTER_ID")}),S.default.createElement("div",{className:F.default.item},this.isAdmin&&S.default.createElement(N.default,{title:this.licenseInfo.id,description:t("LICENSE_ID")}))),this.isAdmin&&S.default.createElement(C.Button,{onClick:this.handleLicenseModal},t(this.operationText))),!this.isUnAuthorized&&this.renderLicense()),this.renderServiceInfo())}},{key:"isHideUnauthorizedComponents",get:function(){return globals.config.isHideUnauthorizedComponents}},{key:"isAdmin",get:function(){return globals.app.isPlatformAdmin}},{key:"isUnAuthorized",get:function(){return this.licenseInfo.isUnAuthorized||!1}},{key:"operationText",get:function(){return this.isOverLimit?"ACTIVATE":"UPDATE_LICENSE"}},{key:"dueDate",get:function(){return this.licenseInfo.dueDate||-1}},{key:"isExpired",get:function(){return!!this.licenseInfo.isExpired||!!this.licenseInfo.unExpired&&!(this.dueDate<=30&&this.dueDate>0)}},{key:"isOverLimit",get:function(){return this.isUnAuthorized||this.isExpired}},{key:"PlateformComponent",get:function(){return[{avatar:"edge",title:"EDGE_NODE",name:"Edge"},{avatar:"observability",title:"OBSERVABILITY_CENTER",name:"Observability"},{avatar:"springcloud",title:"Spring Cloud",name:"SpringCloud"}]}},{key:"RandonDBComponent",get:function(){return[{avatar:"mysql",title:"MySQL",name:"MySQL"},{avatar:"postgre-sql",title:"PostgreSQL",name:"PostgreSQL"},{avatar:"click-house",title:"ClickHouse",name:"ClickHouse"},{avatar:"redis",title:"Redis Cluster",name:"Redis Cluster"},{avatar:"redis",title:"Redis Sentinel",name:"Redis Sentinel"},{avatar:"mongo-db",title:"MongoDB",name:"MongoDB"},{avatar:"eck",title:"ECK",name:"ECK"},{avatar:"opensearch",title:"OpenSearch",name:"OpenSearch"},{avatar:"kafka",title:"Kafka",name:"Kafka"}]}}]),r}(S.Component),s=(0,b.default)(c.prototype,"licenseInfo",[R.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return this.props.rootStore.licenseInfo||{}}}),f=(0,b.default)(c.prototype,"getData",[R.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return(0,d.default)(l.default.mark((function t(){var a;return l.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.store.fetchLicense();case 2:a=t.sent,e.licenseInfo=a,e.props.rootStore.setLicense(a);case 5:case"end":return t.stop()}}),t)})))}}),i=c))||i)||i)||i;a.default=z},5125:function(e,t,a){e.exports={horizonBox:"aSOSVwooCxiG_B3OAokSM",item:"_1uo5FIBpJPMWXqxYs16rRX",authorizedStatus:"_72PlO0UzoC_on5UQ4mc7V",avatarIcon:"gEPgN0d7o6Jf_9zNJ98dD",badge:"_2G2qfvYezrHqIFKrdD1b0W",avatarText:"_1q00tYwvNn3IoaG6k4_v7I",title:"_1ZOuoGYuUP5CciBJI7xVuW",description:"zz_4Sg21d43Z6kzTFBU55",content:"_1VKeY_MWROP-fg5sBdpYHX",licenseInfo:"_1Lb6BMpGYQ2eqqsdFUNmBG",panel:"_1D5RVdF6yNGcz7YWBCeVTH",panelTitle:"_3HsqePykwgEHN5PdFBrm7e",noService:"WeI_ksH2bomiGM0v-6RUD",CardContainer:"_35er4Q-ScOqFL-03Id63dA",cardTitle:"_3zt-ZRRTYtcwP_bUWk_rzf",wrapper:"_2xO7vcyv1ddBLB037QY3gW",disabled:"_3au_36fExikK3bnY_woae7",wrapperItem:"_2jSBecL6tULHrv1qgYo1tM",authorizedInfo:"_395EEfZZJZqap6ehbZki1Z",unAuthored:"ijCWvcMfHLYVhB75aj1lx"}},5126:function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(31),r(6),r(10),r(4),r(23),r(17),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(31),r(6),r(42),r(10),r(4),r(22),r(23),r(57),r(17),r(7);var u=n(r(43));r(41);var o,l=n(r(44)),i=n(r(36)),c=n(r(37)),s=n(r(55)),f=n(r(56)),d=n(r(51)),p=n(r(0)),m=r(239),h=n(r(63)),v=n(r(26)),g=n(r(74)),y=n(r(242)),E=n(r(135)),b=n(r(240)),S=n(r(789)),T=n(r(1712)),I=n(r(1077)),N=n(r(1078)),D=n(r(919)),k=r(440),C=n(r(435)),O=(r(186),r(791));function _(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,d.default)(e);if(t){var n=(0,d.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,f.default)(this,a)}}var A="default-email-config",R="global-email-config-secret",M=(0,m.inject)("rootStore")(o=(0,m.observer)(o=(0,O.trigger)(o=function(e){(0,s.default)(r,e);var a=_(r);function r(){var e;(0,i.default)(this,r);for(var n=arguments.length,o=new Array(n),c=0;c0&&void 0!==arguments[0]?arguments[0]:{};return"".concat(e.apiVersion).concat(e.getPath(t),"/notifications/search")},e.getFilterParams=function(e){var t=I({},e);return t.timeRange&&delete t.timeRange,t},e}return(0,p.default)(l,[{key:"fetchList",value:(a=(0,c.default)(n.default.mark((function e(t){var a,r,l,i,c,s,f,d,p=this;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=t.more,r=t.page,l=void 0===r?1:r,i=t.limit,c=void 0===i?10:i,s=(0,o.default)(t,["more","page","limit"]),this.list.isLoading=!0,s.size=c,s.from=(l-1)*c,e.next=6,request.get(this.getResourceUrl(),this.getFilterParams(s));case 6:return f=e.sent,d=((0,E.default)(f,"items")||[]).map((function(e){return I({},p.mapper(e))})),this.list.update(I(I({data:a?[].concat((0,u.default)(this.list.data),(0,u.default)(d)):d,total:f.totalItems||f.total_count||f.total||d.length||0},s),{},{limit:Number(c),page:Number(l),isLoading:!1},this.list.silent?{}:{selectedRowKeys:[]})),e.abrupt("return",d);case 10:case"end":return e.stop()}}),e,this)}))),function(e){return a.apply(this,arguments)})},{key:"fetchClusterList",value:(t=(0,c.default)(n.default.mark((function e(){var t,a,r=this;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,request.get("kapis/tenant.kubesphere.io/v1beta1/clusters");case 2:return t=e.sent,a=((0,E.default)(t,"items")||[]).map((function(e){return I({},r.ClusterMapper(e))})),this.clusters=a,e.abrupt("return",a);case 6:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})},{key:"apiVersion",get:function(){return"kapis/notification.kubesphere.io/v2beta2"}},{key:"ClusterMapper",get:function(){return S.default.clusters||function(e){return e}}}]),l}(r(a(1012)).default),i=(0,y.default)(l.prototype,"clusters",[b.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),(0,y.default)(l.prototype,"fetchList",[b.action],Object.getOwnPropertyDescriptor(l.prototype,"fetchList"),l.prototype),(0,y.default)(l.prototype,"fetchClusterList",[b.action],Object.getOwnPropertyDescriptor(l.prototype,"fetchClusterList"),l.prototype),l);t.default=D},5133:function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(16),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(5),r(16);var u=n(r(0)),o=r(239),l=r(186),i=n(r(895)),c=n(r(5134)),s=(0,o.observer)((function(e){var a=e.cluster,r=e.onChange,n=e.store,o=(0,i.default)(n.clusters,(function(e){return{label:"".concat(t("CLUSTER"),": ").concat(e.name),value:e.name}}));return u.default.createElement(l.Select,{className:c.default.select,value:a,onChange:r,options:o,showTip:!0})}));a.default=s},5134:function(e,t,a){e.exports={select:"_8q6l8PxlcuoFZgOuWDniA"}},5135:function(e,a,r){"use strict";r(15);var n=r(20),u=r(157);r(5),r(187),r(31),r(6),r(29),r(10),r(4),r(22),r(23),r(17),r(38),r(7),r(32),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(187),r(31),r(6),r(29),r(42),r(10),r(4),r(22),r(23),r(57),r(17),r(38),r(7),r(32);var o=n(r(43)),l=n(r(96));r(41);var i,c=n(r(44)),s=n(r(36)),f=n(r(37)),d=n(r(55)),p=n(r(56)),m=n(r(51)),h=u(r(0)),v=n(r(60)),g=n(r(63)),y=n(r(26)),E=n(r(74)),b=n(r(242)),S=n(r(135)),T=r(239),I=n(r(1077)),N=n(r(1720)),D=n(r(789)),k=n(r(240)),C=n(r(888)),O=n(r(919)),_=n(r(1078)),A=n(r(435)),R=r(440);function M(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,m.default)(e);if(t){var n=(0,m.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,p.default)(this,a)}}var w="default-feishu-config",L="global-feishu-receiver",x="global-feishu-config-secret",P=(0,T.observer)(i=function(e){(0,d.default)(r,e);var a=M(r);function r(){var e;(0,s.default)(this,r);for(var n=arguments.length,u=new Array(n),i=0;i0||o.length>0){if(!i)return k.default.error({content:t("PLEASE_ENTER_VALUE_CUSTOM",{value:"AppKey"})}),!1;if(!c)return k.default.error({content:t("PLEASE_ENTER_VALUE_CUSTOM",{value:"AppSecret"})}),!1}if(s||f||!(0,g.default)(n)){if(!s)return k.default.error({content:t("PLEASE_ENTER_VALUE_CUSTOM",{value:"Webhook URL"})}),!1;if(!f&&(0,g.default)(n))return k.default.error({content:t("DINGTALK_CHATBOT_SECURITY_TIP")}),!1}return!0},e.getResource=(0,c.default)(o.default.mark((function t(){var a,r,n,u,i;return o.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Promise.all([e.configStore.getResource({name:w}),e.receiverStore.getResource({name:L}),e.secretStore.getResource({name:x})]);case 2:return a=t.sent,r=(0,l.default)(a,3),n=r[0],u=r[1],i=r[2],t.abrupt("return",{isExitConfig:n,isExitReceiver:u,isExitSecret:i});case 8:case"end":return t.stop()}}),t)}))),e.handleSubmit=function(){var a=(0,c.default)(o.default.mark((function a(r){var n,u,l,i,c,s,f,d,p,m;return o.default.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:if(n=(0,S.default)(r),u=n.config,l=n.receiver,i=n.secret,e.handleVerify(r)){a.next=3;break}return a.abrupt("return");case 3:return c=(0,y.default)(i,"data",{}),Object.keys(c).forEach((function(e){c[e]=(0,R.safeBtoa)(c[e])})),(0,E.default)(u,"spec.feishu.appID.valueFrom.secretKeyRef.key","appkey"),(0,E.default)(u,"spec.feishu.appID.valueFrom.secretKeyRef.name",x),(0,E.default)(u,"spec.feishu.appSecret.valueFrom.secretKeyRef.name",x),(0,E.default)(u,"spec.feishu.appSecret.valueFrom.secretKeyRef.key","appsecret"),(0,E.default)(l,"spec.feishu.chatbot.webhook.valueFrom.secretKeyRef.key","webhook"),(0,E.default)(l,"spec.feishu.chatbot.webhook.valueFrom.secretKeyRef.name",x),(0,E.default)(l,"spec.feishu.chatbot.secret.valueFrom.secretKeyRef.key","chatbotsecret"),(0,E.default)(l,"spec.feishu.chatbot.secret.valueFrom.secretKeyRef.name",x),c.appkey||(0,b.default)(u,"spec.feishu.appID"),c.appsecret||(0,b.default)(u,"spec.feishu.appSecret"),s=(0,y.default)(u,"spec.feishu"),(0,g.default)(s)&&(0,b.default)(u,"spec.feishu"),c.webhook||(0,b.default)(l,"spec.feishu.chatbot.webhook"),c.chatbotsecret||(0,b.default)(l,"spec.feishu.chatbot.secret"),(0,g.default)((0,y.default)(l,"spec.feishu.chatbot.keywords"))&&(0,b.default)(l,"spec.feishu.chatbot.keywords"),(0,g.default)((0,y.default)(l,"spec.feishu.chatbot"))&&(0,b.default)(l,"spec.feishu.chatbot"),a.next=23,e.getResource();case 23:if(f=a.sent,d=f.isExitConfig,p=f.isExitReceiver,m=f.isExitSecret,!d){a.next=32;break}return a.next=30,e.configStore.update({name:w},u);case 30:a.next=35;break;case 32:return(0,b.default)(u,"metadata.resourceVersion"),a.next=35,e.configStore.create(u);case 35:if(!p){a.next=40;break}return a.next=38,e.receiverStore.update({name:L},l);case 38:a.next=43;break;case 40:return(0,E.default)(l,"spec.feishu.enabled",!0),a.next=43,e.receiverStore.create(l);case 43:if(!m){a.next=48;break}return a.next=46,e.secretStore.update({name:x},(0,E.default)(e.secretTemplate,"data",c));case 46:a.next=50;break;case 48:return a.next=50,e.secretStore.create((0,E.default)(e.secretTemplate,"data",c));case 50:return a.next=52,e.fetchData();case 52:k.default.success({content:t("UPDATE_SUCCESSFUL"),duration:1e3});case 53:case"end":return a.stop()}}),a)})));return function(e){return a.apply(this,arguments)}}(),e.onFormClose=function(){e.setState({formData:(0,S.default)(e.formData)})},e}return(0,f.default)(r,[{key:"componentDidMount",value:function(){this.fetchData()}},{key:"render",value:function(){var e=this.state,t=e.isLoading,a=e.formData,r=e.noConfig;return h.default.createElement("div",null,h.default.createElement(I.default,{type:"feishu"}),h.default.createElement(D.default,{loading:t},h.default.createElement(N.default,{data:a,noConfig:r,onCancel:this.onFormClose,onSubmit:this.handleSubmit,onVerify:this.handleVerify,getVerifyFormTemplate:this.getVerifyFormTemplate,isSubmitting:this.receiverStore.isSubmitting})))}},{key:"configFormTemplate",get:function(){return A.default.notificationconfigs({name:w})}},{key:"receiverFormTemplate",get:function(){return A.default.notificationreceivers({name:L,type:"feishu"})}},{key:"secretTemplate",get:function(){return A.default.globalsecret({name:x})}}]),r}(h.Component))||i;a.default=P},5136:function(e,a,r){"use strict";var n=r(20),u=r(157);r(12),r(5),r(11),r(31),r(6),r(16),r(9),r(13),r(10),r(4),r(316),r(23),r(17),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(45),r(5),r(11),r(31),r(6),r(28),r(42),r(16),r(34),r(15),r(9),r(13),r(10),r(4),r(316),r(23),r(57),r(17),r(7);var o,l=n(r(30)),i=n(r(315)),c=n(r(36)),s=n(r(37)),f=n(r(55)),d=n(r(56)),p=n(r(51)),m=u(r(0)),h=u(r(793)),v=n(r(1993)),g=n(r(243)),y=r(239),E=n(r(796)),b=n(r(936)),S=r(791),T=r(72),I=n(r(788)),N=r(52),D=r(894),k=n(r(1994));function C(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function O(e){for(var t=1;t0&&void 0!==o[0]?o[0]:{},r=a.silent,n=(0,c.default)(a,["silent"]),u=e.props.store,r&&(u.list.silent=!0),t.next=5,u.fetchList(C(C({},n),{},{type:"email"}));case 5:u.list.silent=!1;case 6:case"end":return t.stop()}}),t)}))),e}return(0,p.default)(r,[{key:"render",value:function(){var e=this.props.tableProps;return g.default.createElement(y.ListPage,(0,o.default)({},this.props,{getData:this.getData,noWatch:!0}),g.default.createElement(N.default,(0,o.default)({},e,{itemActions:this.itemActions,columns:this.getColumns(),onCreate:this.showCreate})))}},{key:"itemActions",get:function(){var e=this,a=this.props,r=a.trigger,n=a.name;return[{key:"edit",icon:"pen",text:t("EDIT"),action:"edit",onClick:function(t){return e.props.routing.push("/settings/notification-subscription/subscription-mail/detail/".concat(t.name,"/edit"))}},{key:"delete",icon:"trash",text:t("DELETE"),action:"delete",onClick:function(t){return r("resource.delete",{type:n,detail:t,success:e.props.routing.query})}}]}}]),r}(g.Component))||s;a.default=_},5145:function(e,t,a){e.exports={avatar:"_27MUXxpp-T3Q5w015yfHbv"}},5146:function(e,a,r){"use strict";r(15);var n=r(20),u=r(157);r(5),r(84),r(29),r(97),r(16),r(137),r(4),r(22),r(23),r(24),r(17),r(38),r(62),r(32),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(84),r(29),r(28),r(97),r(42),r(16),r(137),r(4),r(22),r(23),r(57),r(24),r(17),r(38),r(62),r(32);var o=n(r(43)),l=n(r(96));r(41);var i,c=n(r(44)),s=n(r(36)),f=n(r(37)),d=n(r(55)),p=n(r(56)),m=n(r(51)),h=u(r(0)),v=r(239),g=n(r(135)),y=n(r(74)),E=n(r(26)),b=n(r(242)),S=n(r(63)),T=r(186),I=n(r(240)),N=n(r(829)),D=n(r(1377)),k=n(r(1713)),C=n(r(888)),O=n(r(1078)),_=n(r(919)),A=n(r(435)),R=r(72),M=n(r(5147)),w=n(r(5148)),L=n(r(1995));function x(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,m.default)(e);if(t){var n=(0,m.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,p.default)(this,a)}}var P=(0,v.inject)("rootStore")(i=function(e){(0,d.default)(r,e);var a=x(r);function r(){var e;(0,s.default)(this,r);for(var n=arguments.length,u=new Array(n),i=0;i0),"Match"===e.operator&&(t=t&&e.regexValue),t},e.itemValidator=function(a,r,n){return r?r.some((function(t){return!e.checkItemValid(t)}))?n({message:t("INVALID_NOTIFICATION_CONDITION")}):void n():n()},e.handleSwitch=function(t){e.setState({enabled:t})},e}return(0,f.default)(r,[{key:"componentDidMount",value:function(){this.fetchData()}},{key:"renderControlAnnotation",value:function(){return h.default.createElement("div",{className:L.default.annotation},h.default.createElement(T.Icon,{name:"question"}),h.default.createElement("p",{className:L.default.desc},t.html("NOTIFICATION_CONDITION_SETTING_TIP")))}},{key:"render",value:function(){var e=this.state,a=e.formData,r=e.isVerifying,n=e.enabled,u=e.isEdit,o=this.receiverStore.isSubmitting;return h.default.createElement("div",null,h.default.createElement("div",{className:L.default.header},t(u?"EDIT_NOTIFICATION_SUBSCRIPTION":"CREATE_NOTIFICATION_SUBSCRIPTION")),h.default.createElement(T.Form,{ref:this.formRef,data:a},h.default.createElement("div",{className:L.default.body},h.default.createElement("div",{className:L.default.row},h.default.createElement("div",{className:L.default.title},t("BASIC_INFORMATION")),h.default.createElement(T.Form.Item,{label:t("NAME"),desc:t("NAME_DESC"),rules:[{required:!0,message:t("WORKSPACE_NAME_EMPTY_DESC")},{pattern:R.PATTERN_NAME,message:t("INVALID_NAME_DESC")}]},h.default.createElement(T.Input,{name:"metadata.name",autoFocus:!0,maxLength:63,disabled:u})),h.default.createElement(T.Form.Item,{label:t("ALIAS"),desc:t("ALIAS_NAME_DESC"),rules:[{pattern:R.PATTERN_ALIAS_NAME,message:t("INVALID_ALIAS_NAME_DESC")}]},h.default.createElement(T.Input,{name:"metadata.annotations['kubesphere.io/alias-name']",maxLength:63})),h.default.createElement(T.Form.Item,{label:t("DESCRIPTION"),desc:t("DESCRIPTION_DESC")},h.default.createElement(T.TextArea,{name:"metadata.annotations['kubesphere.io/description']",maxLength:256,rows:"3"}))),h.default.createElement("div",{className:L.default.row},h.default.createElement("div",{className:L.default.title},t("RECIPIENT_SETTINGS")),h.default.createElement(T.Form.Item,{rules:[{required:!0,message:t("ENTER_RECIPIENT_EMAIL_DESC")}]},h.default.createElement(M.default,{name:"spec.email.to"}))),h.default.createElement("div",{className:L.default.row},h.default.createElement("div",{className:L.default.title},t("NOTIFICATION_RECEIVER")),h.default.createElement(T.Form.Item,null,h.default.createElement(w.default,{name:"spec.email.enabled",text:n?t("ENABLED"):t("DISABLED"),checked:n,onChange:this.handleSwitch}))),h.default.createElement("div",{className:L.default.row},h.default.createElement("div",{className:L.default.title},t("FILTER_CONDITIONS")),h.default.createElement("div",{className:L.default.item},h.default.createElement(T.Form.Item,{rules:[{validator:this.itemValidator,checkOnSubmit:!0}]},h.default.createElement(N.default,{name:"spec.email.alertSelector.matchExpressions",itemType:"object",addText:t("ADD"),checkItemValid:this.checkItemValid,desc:this.renderControlAnnotation()},h.default.createElement(D.default,null))))),h.default.createElement("div",{className:L.default.contentWrapper},h.default.createElement("p",null,t("SEND_TEST_MESSAGE_DESC")),h.default.createElement(T.Button,{className:L.default.action,onClick:this.handleVerify,loading:r},t("SEND_TEST_MESSAGE")))),h.default.createElement("div",{className:L.default.footer},h.default.createElement(T.Button,{onClick:this.onCancel},t("CANCEL")),h.default.createElement(T.Button,{type:"control",loading:o,onClick:this.onSubmit},t("OK")))))}},{key:"receiverFormTemplate",get:function(){var e=A.default.notificationreceivers({type:"email"});return(0,y.default)(e,"spec.email.enabled",!0),e}}]),r}(h.Component))||i;a.default=P},5147:function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(11),r(18),r(97),r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(11),r(18),r(97),r(42),r(4),r(23),r(57),r(24),r(193),r(17);var u=n(r(61)),o=n(r(36)),l=n(r(37)),i=n(r(55)),c=n(r(56)),s=n(r(51)),f=n(r(0)),d=n(r(1)),p=n(r(3)),m=n(r(63)),h=n(r(26)),v=r(186),g=n(r(240)),y=n(r(812)),E=n(r(1060)),b=r(72),S=n(r(322)),T=n(r(1995));function I(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,s.default)(e);if(t){var n=(0,s.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,c.default)(this,a)}}var N=function(e){(0,i.default)(r,e);var a=I(r);function r(){var e;(0,o.default)(this,r);for(var n=arguments.length,l=new Array(n),i=0;in-1)g.default.error({content:t.html("MAX_EAMIL_COUNT",{count:n}),duration:1e3});else if(r.some((function(e){return e===a})))g.default.error({content:t("EMAIL_EXISTS"),duration:1e3});else{if(b.PATTERN_EMAIL.test(a))return!0;g.default.error({content:t("INVALID_EMAIL"),duration:1e3})}else g.default.error({content:t("EMAIL_EMPTY_DESC"),duration:1e3})},e.handleAdd=function(t){var a=e.props,r=a.value;(0,a.onChange)([].concat((0,u.default)(r),[t]))},e.handleDelete=function(t){var a=e.props,r=a.value;(0,a.onChange)(r.filter((function(e){return e!==t})))},e.renderListItem=function(a){return f.default.createElement("div",null,a," ",a===e.userEmail&&f.default.createElement(v.Tag,null,t("CURRENT_USER")))},e}return(0,l.default)(r,[{key:"render",value:function(){var e=this,t=this.props,a=t.value,r=t.className;return f.default.createElement("div",{className:(0,p.default)(T.default.wrapper,r)},f.default.createElement(E.default,{placeholder:"user@example.com",validate:this.validateMail,onAdd:this.handleAdd,showIcon:!0}),!(0,m.default)(a)&&f.default.createElement("div",{className:T.default.listWrapper},f.default.createElement(y.default,null,a.map((function(t){return f.default.createElement(y.default.Item,{key:t,className:T.default.listItem,title:e.renderListItem(t),onDelete:function(){return e.handleDelete(t)}})})))))}},{key:"userEmail",get:function(){return(0,h.default)(globals,"user.email")}}]),r}(f.default.Component);a.default=N,N.propTypes={value:d.default.array,onChange:d.default.func},N.defaultProps={value:[],onChange:function(){}}},5148:function(e,t,a){"use strict";a(15);var r=a(157),n=a(20);a(5),a(4),a(23),a(17),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(45),a(5),a(42),a(4),a(23),a(57),a(17);var u=n(a(30)),o=n(a(36)),l=n(a(37)),i=n(a(55)),c=n(a(56)),s=n(a(51)),f=n(a(63)),d=r(a(0)),p=n(a(1)),m=n(a(3)),h=a(186),v=n(a(5149));function g(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,s.default)(e);if(t){var n=(0,s.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,c.default)(this,a)}}var y=function(e){(0,i.default)(a,e);var t=g(a);function a(){var e;(0,o.default)(this,a);for(var r=arguments.length,n=new Array(r),u=0;u0?c.matchExpressions.map((function(a,r){var n=e.arrayValues2String(a);return p.default.createElement("li",{key:r},p.default.createElement("div",null,p.default.createElement("span",{className:D.default.label},t("LABEL"),":"),p.default.createElement("span",{className:D.default.value},C[a.key]||a.key)),p.default.createElement("div",null,p.default.createElement("span",{className:D.default.label},t("CONDITION_OPERATOR"),":"),p.default.createElement("span",{className:D.default.value},O[a.operator])),p.default.createElement("div",null,p.default.createElement("span",{className:D.default.label},t("VALUE"),":"),p.default.createElement("span",{className:D.default.value},n)))})):p.default.createElement("li",null,t("NO_DATA")))))}},{key:"severities",get:function(){var e={};return T.SEVERITY_LEVEL.forEach((function(a){e[a.value]=t(a.label)})),e}},{key:"listUrl",get:function(){return"/settings/notification-subscription/".concat(this.module)}},{key:"module",get:function(){return"subscription-mail"}},{key:"name",get:function(){return"NOTIFICATION_SUBSCRIPTION"}},{key:"routing",get:function(){return this.props.rootStore.routing}}]),r}(p.Component))||o)||o)||o;a.default=_},5151:function(e,t,a){"use strict";var r=a(20);a(12),a(5),a(187),a(11),a(6),a(84),a(18),a(16),a(9),a(13),a(10),a(4),a(23),a(24),a(17),a(85),a(62),a(7),Object.defineProperty(t,"__esModule",{value:!0}),t.Component=t.default=void 0,a(12),a(45),a(5),a(187),a(11),a(6),a(84),a(18),a(28),a(42),a(16),a(34),a(15),a(9),a(13),a(10),a(4),a(23),a(57),a(24),a(17),a(85),a(62),a(7);var n=r(a(30)),u=r(a(58)),o=r(a(315)),l=r(a(36)),i=r(a(37)),c=r(a(55)),s=r(a(56)),f=r(a(51)),d=r(a(198)),p=r(a(195)),m=r(a(63)),h=r(a(0)),v=a(433),g=a(239),y=a(186),E=r(a(788)),b=r(a(790)),S=r(a(5152)),T=r(a(5154));function I(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function N(e){for(var t=1;t=0}t.isFirefox=!!~n.indexOf("Firefox"),t.isSafari=/^((?!chrome|android).)*safari/i.test(n),t.isMSIE=!!~n.indexOf("MSIE")||!!~n.indexOf("Trident"),t.isMac=o(["Macintosh","MacIntel","MacPPC","Mac68K"],s),t.isIpad="iPad"===s,t.isIphone="iPhone"===s,t.isMSWindows=o(["Windows","Win16","Win32","WinCE"],s),t.isLinux=s.indexOf("Linux")>=0},1252:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addDisposableDomListener=function(e,t,i,r){return e.addEventListener(t,i,r),{dispose:function(){i&&(e.removeEventListener(t,i,r),e=null,i=null)}}}},1253:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.NUL="\0",e.SOH="",e.STX="",e.ETX="",e.EOT="",e.ENQ="",e.ACK="",e.BEL="",e.BS="\b",e.HT="\t",e.LF="\n",e.VT="\v",e.FF="\f",e.CR="\r",e.SO="",e.SI="",e.DLE="",e.DC1="",e.DC2="",e.DC3="",e.DC4="",e.NAK="",e.SYN="",e.ETB="",e.CAN="",e.EM="",e.SUB="",e.ESC="",e.FS="",e.GS="",e.RS="",e.US="",e.SP=" ",e.DEL=""}(t.C0||(t.C0={})),function(e){e.PAD="€",e.HOP="",e.BPH="‚",e.NBH="ƒ",e.IND="„",e.NEL="…",e.SSA="†",e.ESA="‡",e.HTS="ˆ",e.HTJ="‰",e.VTS="Š",e.PLD="‹",e.PLU="Œ",e.RI="",e.SS2="Ž",e.SS3="",e.DCS="",e.PU1="‘",e.PU2="’",e.STS="“",e.CCH="”",e.MW="•",e.SPA="–",e.EPA="—",e.SOS="˜",e.SGCI="™",e.SCI="š",e.CSI="›",e.ST="œ",e.OSC="",e.PM="ž",e.APC="Ÿ"}(t.C1||(t.C1={}))},1254:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(1145),n=i(2008),s=i(922),o=function(){function e(e,t,i,r,n){this._container=e,this._alpha=r,this._colors=n,this._scaledCharWidth=0,this._scaledCharHeight=0,this._scaledCellWidth=0,this._scaledCellHeight=0,this._scaledCharLeft=0,this._scaledCharTop=0,this._currentGlyphIdentifier={chars:"",code:0,bg:0,fg:0,bold:!1,dim:!1,italic:!1},this._canvas=document.createElement("canvas"),this._canvas.classList.add("xterm-"+t+"-layer"),this._canvas.style.zIndex=i.toString(),this._initCanvas(),this._container.appendChild(this._canvas)}return e.prototype.dispose=function(){this._container.removeChild(this._canvas),this._charAtlas&&this._charAtlas.dispose()},e.prototype._initCanvas=function(){this._ctx=this._canvas.getContext("2d",{alpha:this._alpha}),this._alpha||this.clearAll()},e.prototype.onOptionsChanged=function(e){},e.prototype.onBlur=function(e){},e.prototype.onFocus=function(e){},e.prototype.onCursorMove=function(e){},e.prototype.onGridChanged=function(e,t,i){},e.prototype.onSelectionChanged=function(e,t,i,r){void 0===r&&(r=!1)},e.prototype.onThemeChanged=function(e,t){this._refreshCharAtlas(e,t)},e.prototype.setTransparency=function(e,t){if(t!==this._alpha){var i=this._canvas;this._alpha=t,this._canvas=this._canvas.cloneNode(),this._initCanvas(),this._container.replaceChild(this._canvas,i),this._refreshCharAtlas(e,this._colors),this.onGridChanged(e,0,e.rows-1)}},e.prototype._refreshCharAtlas=function(e,t){this._scaledCharWidth<=0&&this._scaledCharHeight<=0||(this._charAtlas=n.acquireCharAtlas(e,t,this._scaledCharWidth,this._scaledCharHeight),this._charAtlas.warmUp())},e.prototype.resize=function(e,t){this._scaledCellWidth=t.scaledCellWidth,this._scaledCellHeight=t.scaledCellHeight,this._scaledCharWidth=t.scaledCharWidth,this._scaledCharHeight=t.scaledCharHeight,this._scaledCharLeft=t.scaledCharLeft,this._scaledCharTop=t.scaledCharTop,this._canvas.width=t.scaledCanvasWidth,this._canvas.height=t.scaledCanvasHeight,this._canvas.style.width=t.canvasWidth+"px",this._canvas.style.height=t.canvasHeight+"px",this._alpha||this.clearAll(),this._refreshCharAtlas(e,this._colors)},e.prototype.fillCells=function(e,t,i,r){this._ctx.fillRect(e*this._scaledCellWidth,t*this._scaledCellHeight,i*this._scaledCellWidth,r*this._scaledCellHeight)},e.prototype.fillBottomLineAtCells=function(e,t,i){void 0===i&&(i=1),this._ctx.fillRect(e*this._scaledCellWidth,(t+1)*this._scaledCellHeight-window.devicePixelRatio-1,i*this._scaledCellWidth,window.devicePixelRatio)},e.prototype.fillLeftLineAtCell=function(e,t){this._ctx.fillRect(e*this._scaledCellWidth,t*this._scaledCellHeight,window.devicePixelRatio,this._scaledCellHeight)},e.prototype.strokeRectAtCell=function(e,t,i,r){this._ctx.lineWidth=window.devicePixelRatio,this._ctx.strokeRect(e*this._scaledCellWidth+window.devicePixelRatio/2,t*this._scaledCellHeight+window.devicePixelRatio/2,i*this._scaledCellWidth-window.devicePixelRatio,r*this._scaledCellHeight-window.devicePixelRatio)},e.prototype.clearAll=function(){this._alpha?this._ctx.clearRect(0,0,this._canvas.width,this._canvas.height):(this._ctx.fillStyle=this._colors.background.css,this._ctx.fillRect(0,0,this._canvas.width,this._canvas.height))},e.prototype.clearCells=function(e,t,i,r){this._alpha?this._ctx.clearRect(e*this._scaledCellWidth,t*this._scaledCellHeight,i*this._scaledCellWidth,r*this._scaledCellHeight):(this._ctx.fillStyle=this._colors.background.css,this._ctx.fillRect(e*this._scaledCellWidth,t*this._scaledCellHeight,i*this._scaledCellWidth,r*this._scaledCellHeight))},e.prototype.fillCharTrueColor=function(e,t,i,r){this._ctx.font=this._getFont(e,!1,!1),this._ctx.textBaseline="top",this._clipRow(e,r),this._ctx.fillText(t[s.CHAR_DATA_CHAR_INDEX],i*this._scaledCellWidth+this._scaledCharLeft,r*this._scaledCellHeight+this._scaledCharTop)},e.prototype.drawChars=function(e,t,i,n,s,o,a,l,h,c,u){a+=e.options.drawBoldTextInBrightColors&&h&&a<8&&a!==r.INVERTED_DEFAULT_COLOR?8:0,this._currentGlyphIdentifier.chars=t,this._currentGlyphIdentifier.code=i,this._currentGlyphIdentifier.bg=l,this._currentGlyphIdentifier.fg=a,this._currentGlyphIdentifier.bold=h&&e.options.enableBold,this._currentGlyphIdentifier.dim=c,this._currentGlyphIdentifier.italic=u,this._charAtlas&&this._charAtlas.draw(this._ctx,this._currentGlyphIdentifier,s*this._scaledCellWidth+this._scaledCharLeft,o*this._scaledCellHeight+this._scaledCharTop)||this._drawUncachedChars(e,t,n,a,s,o,h&&e.options.enableBold,c,u)},e.prototype._drawUncachedChars=function(e,t,i,n,s,o,a,l,h){this._ctx.save(),this._ctx.font=this._getFont(e,a,h),this._ctx.textBaseline="top",n===r.INVERTED_DEFAULT_COLOR?this._ctx.fillStyle=this._colors.background.css:this._ctx.fillStyle=n<256?this._colors.ansi[n].css:this._colors.foreground.css,this._clipRow(e,o),l&&(this._ctx.globalAlpha=r.DIM_OPACITY),this._ctx.fillText(t,s*this._scaledCellWidth+this._scaledCharLeft,o*this._scaledCellHeight+this._scaledCharTop),this._ctx.restore()},e.prototype._clipRow=function(e,t){this._ctx.beginPath(),this._ctx.rect(0,t*this._scaledCellHeight,e.cols*this._scaledCellWidth,this._scaledCellHeight),this._ctx.clip()},e.prototype._getFont=function(e,t,i){return(i?"italic":"")+" "+(t?e.options.fontWeightBold:e.options.fontWeight)+" "+e.options.fontSize*window.devicePixelRatio+"px "+e.options.fontFamily},e}();t.BaseRenderLayer=o},1255:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=l("#ffffff"),n=l("#000000"),s=l("#ffffff"),o=l("#000000"),a={css:"rgba(255, 255, 255, 0.3)",rgba:4294967159};function l(e){return{css:e,rgba:parseInt(e.slice(1),16)<<8|255}}function h(e){var t=e.toString(16);return t.length<2?"0"+t:t}t.DEFAULT_ANSI_COLORS=function(){for(var e=[l("#2e3436"),l("#cc0000"),l("#4e9a06"),l("#c4a000"),l("#3465a4"),l("#75507b"),l("#06989a"),l("#d3d7cf"),l("#555753"),l("#ef2929"),l("#8ae234"),l("#fce94f"),l("#729fcf"),l("#ad7fa8"),l("#34e2e2"),l("#eeeeec")],t=[0,95,135,175,215,255],i=0;i<216;i++){var r=t[i/36%6|0],n=t[i/6%6|0],s=t[i%6];e.push({css:"#"+h(r)+h(n)+h(s),rgba:(r<<24|n<<16|s<<8|255)>>>0})}for(i=0;i<24;i++){var o=8+10*i,a=h(o);e.push({css:"#"+a+a+a,rgba:(o<<24|o<<16|o<<8|255)>>>0})}return e}();var c=function(){function e(e,i){this.allowTransparency=i;var l=e.createElement("canvas");l.width=1,l.height=1,this._ctx=l.getContext("2d"),this._ctx.globalCompositeOperation="copy",this._litmusColor=this._ctx.createLinearGradient(0,0,1,1),this.colors={foreground:r,background:n,cursor:s,cursorAccent:o,selection:a,ansi:t.DEFAULT_ANSI_COLORS.slice()}}return e.prototype.setTheme=function(e){this.colors.foreground=this._parseColor(e.foreground,r),this.colors.background=this._parseColor(e.background,n),this.colors.cursor=this._parseColor(e.cursor,s,!0),this.colors.cursorAccent=this._parseColor(e.cursorAccent,o,!0),this.colors.selection=this._parseColor(e.selection,a,!0),this.colors.ansi[0]=this._parseColor(e.black,t.DEFAULT_ANSI_COLORS[0]),this.colors.ansi[1]=this._parseColor(e.red,t.DEFAULT_ANSI_COLORS[1]),this.colors.ansi[2]=this._parseColor(e.green,t.DEFAULT_ANSI_COLORS[2]),this.colors.ansi[3]=this._parseColor(e.yellow,t.DEFAULT_ANSI_COLORS[3]),this.colors.ansi[4]=this._parseColor(e.blue,t.DEFAULT_ANSI_COLORS[4]),this.colors.ansi[5]=this._parseColor(e.magenta,t.DEFAULT_ANSI_COLORS[5]),this.colors.ansi[6]=this._parseColor(e.cyan,t.DEFAULT_ANSI_COLORS[6]),this.colors.ansi[7]=this._parseColor(e.white,t.DEFAULT_ANSI_COLORS[7]),this.colors.ansi[8]=this._parseColor(e.brightBlack,t.DEFAULT_ANSI_COLORS[8]),this.colors.ansi[9]=this._parseColor(e.brightRed,t.DEFAULT_ANSI_COLORS[9]),this.colors.ansi[10]=this._parseColor(e.brightGreen,t.DEFAULT_ANSI_COLORS[10]),this.colors.ansi[11]=this._parseColor(e.brightYellow,t.DEFAULT_ANSI_COLORS[11]),this.colors.ansi[12]=this._parseColor(e.brightBlue,t.DEFAULT_ANSI_COLORS[12]),this.colors.ansi[13]=this._parseColor(e.brightMagenta,t.DEFAULT_ANSI_COLORS[13]),this.colors.ansi[14]=this._parseColor(e.brightCyan,t.DEFAULT_ANSI_COLORS[14]),this.colors.ansi[15]=this._parseColor(e.brightWhite,t.DEFAULT_ANSI_COLORS[15])},e.prototype._parseColor=function(e,t,i){if(void 0===i&&(i=this.allowTransparency),!e)return t;if(this._ctx.fillStyle=this._litmusColor,this._ctx.fillStyle=e,"string"!=typeof this._ctx.fillStyle)return console.warn("Color: "+e+" is invalid using fallback "+t.css),t;this._ctx.fillRect(0,0,1,1);var r=this._ctx.getImageData(0,0,1,1).data;return i||255===r[3]?{css:e,rgba:(r[0]<<24|r[1]<<16|r[2]<<8|r[3])>>>0}:(console.warn("Color: "+e+" is using transparency, but allowTransparency is false. Using fallback "+t.css+"."),t)},e}();t.ColorManager=c},1462:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(922),n=function(){function e(e,t,i){if(this.isWrapped=!1,this._data=[],this.length=this._data.length,e){t||(t=[0,r.NULL_CELL_CHAR,r.NULL_CELL_WIDTH,r.NULL_CELL_CODE]);for(var n=0;nt[n][1])return!1;for(;n>=r;)if(e>t[i=r+n>>1][1])r=i+1;else{if(!(e=127&&i<160?e.control:r(i,t)?0:function(e){return e>=4352&&(e<=4447||9001===e||9002===e||e>=11904&&e<=42191&&12351!==e||e>=44032&&e<=55203||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65135||e>=65280&&e<=65376||e>=65504&&e<=65510)}(i)?2:1);s[n]=o}return s}();return o<65536?l[o>>4]>>((15&o)<<1)&3:r(a=o,i)?0:a>=131072&&a<=196605||a>=196608&&a<=262141?2:1}}({nul:0,control:0}),t.getStringCellWidth=function(e){for(var i=0,r=0;r=0){if(r.configEquals(c.config,s))return c.atlas;1===c.ownedBy.length?l.splice(o,1):c.ownedBy.splice(h,1);break}}for(o=0;o>>24,n=t.rgba>>>16&255,s=t.rgba>>>8&255,o=0;oe&&r.y1<=t+1||r.y2>e&&r.y2<=t+1||r.y1t+1)&&(this._currentZone&&this._currentZone===r&&(this._currentZone.leaveCallback(),this._currentZone=null),this._zones.splice(i--,1))}0===this._zones.length&&this._deactivate()}},t.prototype._activate=function(){this._areZonesActive||(this._areZonesActive=!0,this._terminal.element.addEventListener("mousemove",this._mouseMoveListener),this._terminal.element.addEventListener("click",this._clickListener))},t.prototype._deactivate=function(){this._areZonesActive&&(this._areZonesActive=!1,this._terminal.element.removeEventListener("mousemove",this._mouseMoveListener),this._terminal.element.removeEventListener("click",this._clickListener))},t.prototype._onMouseMove=function(e){this._lastHoverCoords[0]===e.pageX&&this._lastHoverCoords[1]===e.pageY||(this._onHover(e),this._lastHoverCoords=[e.pageX,e.pageY])},t.prototype._onHover=function(e){var t=this,i=this._findZoneEventAt(e);i!==this._currentZone&&(this._currentZone&&(this._currentZone.leaveCallback(),this._currentZone=null,this._tooltipTimeout&&clearTimeout(this._tooltipTimeout)),i&&(this._currentZone=i,i.hoverCallback&&i.hoverCallback(e),this._tooltipTimeout=setTimeout((function(){return t._onTooltip(e)}),500)))},t.prototype._onTooltip=function(e){this._tooltipTimeout=null;var t=this._findZoneEventAt(e);t&&t.tooltipCallback&&t.tooltipCallback(e)},t.prototype._onMouseDown=function(e){if(this._areZonesActive){var t=this._findZoneEventAt(e);t&&t.willLinkActivate(e)&&(e.preventDefault(),e.stopImmediatePropagation())}},t.prototype._onClick=function(e){var t=this._findZoneEventAt(e);t&&(t.clickCallback(e),e.preventDefault(),e.stopImmediatePropagation())},t.prototype._findZoneEventAt=function(e){var t=this._terminal.mouseHelper.getCoords(e,this._terminal.screenElement,this._terminal.charMeasure,this._terminal.options.lineHeight,this._terminal.cols,this._terminal.rows);if(!t)return null;for(var i=t[0],r=t[1],n=0;n=s.x1&&i=s.x1||r===s.y2&&is.y1&&r0&&void 0!==arguments[0])||arguments[0],t=this.term.textarea,i=void 0===t?{}:t;i.disabled=e}},{key:"getTerminalOpts",value:function(){var e=this.props.terminalOpts;return C(C({},v),e)}},{key:"onTerminalResize",value:function(){window.addEventListener("resize",this.onResize),this.term.on("resize",this.resizeRemoteTerminal)}},{key:"onTerminalKeyPress",value:function(){this.term.on("data",this.sendTerminalInput)}},{key:"removeResizeListener",value:function(){window.removeEventListener("resize",this.onResize)}},{key:"createWS",value:function(){return new m.default(this.props.websocketUrl,{onmessage:this.onWSReceive,onerror:this.onWSError})}},{key:"render",value:function(){return u.default.createElement("kubernetes-container-terminal",{style:{width:"100%",height:"100%",display:"block"},ref:this.containerRef})}}]),i}(u.default.Component);t.default=b,b.propsTypes={terminalOpts:d.default.object,websocketUrl:d.default.string,initText:d.default.string,isEdgeNode:d.default.bool},b.defaultProps={terminalOpts:{},initText:"Connecting...",isEdgeNode:!1}},5720:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(5721),n=i(1465),s=function(){function e(e){this._core=new r.Terminal(e)}return Object.defineProperty(e.prototype,"element",{get:function(){return this._core.element},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"textarea",{get:function(){return this._core.textarea},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rows",{get:function(){return this._core.rows},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"cols",{get:function(){return this._core.cols},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"markers",{get:function(){return this._core.markers},enumerable:!0,configurable:!0}),e.prototype.blur=function(){this._core.blur()},e.prototype.focus=function(){this._core.focus()},e.prototype.on=function(e,t){this._core.on(e,t)},e.prototype.off=function(e,t){this._core.off(e,t)},e.prototype.emit=function(e,t){this._core.emit(e,t)},e.prototype.addDisposableListener=function(e,t){return this._core.addDisposableListener(e,t)},e.prototype.resize=function(e,t){this._core.resize(e,t)},e.prototype.writeln=function(e){this._core.writeln(e)},e.prototype.open=function(e){this._core.open(e)},e.prototype.attachCustomKeyEventHandler=function(e){this._core.attachCustomKeyEventHandler(e)},e.prototype.registerLinkMatcher=function(e,t,i){return this._core.registerLinkMatcher(e,t,i)},e.prototype.deregisterLinkMatcher=function(e){this._core.deregisterLinkMatcher(e)},e.prototype.registerCharacterJoiner=function(e){return this._core.registerCharacterJoiner(e)},e.prototype.deregisterCharacterJoiner=function(e){this._core.deregisterCharacterJoiner(e)},e.prototype.addMarker=function(e){return this._core.addMarker(e)},e.prototype.hasSelection=function(){return this._core.hasSelection()},e.prototype.getSelection=function(){return this._core.getSelection()},e.prototype.clearSelection=function(){this._core.clearSelection()},e.prototype.selectAll=function(){this._core.selectAll()},e.prototype.selectLines=function(e,t){this._core.selectLines(e,t)},e.prototype.dispose=function(){this._core.dispose()},e.prototype.destroy=function(){this._core.destroy()},e.prototype.scrollLines=function(e){this._core.scrollLines(e)},e.prototype.scrollPages=function(e){this._core.scrollPages(e)},e.prototype.scrollToTop=function(){this._core.scrollToTop()},e.prototype.scrollToBottom=function(){this._core.scrollToBottom()},e.prototype.scrollToLine=function(e){this._core.scrollToLine(e)},e.prototype.clear=function(){this._core.clear()},e.prototype.write=function(e){this._core.write(e)},e.prototype.getOption=function(e){return this._core.getOption(e)},e.prototype.setOption=function(e,t){this._core.setOption(e,t)},e.prototype.refresh=function(e,t){this._core.refresh(e,t)},e.prototype.reset=function(){this._core.reset()},e.applyAddon=function(t){t.apply(e)},Object.defineProperty(e,"strings",{get:function(){return n},enumerable:!0,configurable:!0}),e}();t.Terminal=s},5721:function(e,t,i){"use strict";var r,n=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(e,t)},function(e,t){function i(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)});Object.defineProperty(t,"__esModule",{value:!0});var s=i(5722),o=i(922),a=i(5724),l=i(964),h=i(5725),c=i(5726),u=i(1253),_=i(5727),f=i(5730),d=i(5742),p=i(5743),m=i(5746),y=i(1146),C=i(1252),g=i(1465),v=i(2013),b=i(5747),w=i(5748),S=i(1255),E=i(2012),L=i(5749),A=i(2011),x=i(2008),T=i(5750),R=i(5752),M=i(1462),k="undefined"!=typeof window?window.document:null,H=["cols","rows"],D={cols:80,rows:24,convertEol:!1,termName:"xterm",cursorBlink:!1,cursorStyle:"block",bellSound:w.DEFAULT_BELL_SOUND,bellStyle:"none",drawBoldTextInBrightColors:!0,enableBold:!0,experimentalCharAtlas:"static",fontFamily:"courier-new, courier, monospace",fontSize:15,fontWeight:"normal",fontWeightBold:"bold",lineHeight:1,letterSpacing:0,scrollback:1e3,screenKeys:!1,screenReaderMode:!1,debug:!1,macOptionIsMeta:!1,macOptionClickForcesSelection:!1,cancelEvents:!1,disableStdin:!1,useFlowControl:!1,allowTransparency:!1,tabStopWidth:8,theme:null,rightClickSelectsWord:y.isMac,rendererType:"canvas"},O=function(e){function t(t){void 0===t&&(t={});var i=e.call(this)||this;return i.browser=y,i.options=b.clone(t),i._setup(),i}return n(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this),this._customKeyEventHandler=null,x.removeTerminalFromCache(this),this.handler=function(){},this.write=function(){},this.element&&this.element.parentNode&&this.element.parentNode.removeChild(this.element)},t.prototype.destroy=function(){this.dispose()},t.prototype._setup=function(){var e=this;Object.keys(D).forEach((function(t){null!==e.options[t]&&void 0!==e.options[t]||(e.options[t]=D[t])})),this._parent=k?k.body:null,this.cols=this.options.cols,this.rows=this.options.rows,this.options.handler&&this.on("data",this.options.handler),this.cursorState=0,this.cursorHidden=!1,this._customKeyEventHandler=null,this.applicationKeypad=!1,this.applicationCursor=!1,this.originMode=!1,this.insertMode=!1,this.wraparoundMode=!0,this.bracketedPasteMode=!1,this.charset=null,this.gcharset=null,this.glevel=0,this.charsets=[null],this.curAttr=o.DEFAULT_ATTR,this.params=[],this.currentParam=0,this.writeBuffer=[],this._writeInProgress=!1,this._xoffSentToCatchUp=!1,this._userScrolling=!1,this._inputHandler=new _.InputHandler(this),this.register(this._inputHandler),this.renderer=this.renderer||null,this.selectionManager=this.selectionManager||null,this.linkifier=this.linkifier||new d.Linkifier(this),this._mouseZoneManager=this._mouseZoneManager||null,this.soundManager=this.soundManager||new w.SoundManager(this),this.buffers=new s.BufferSet(this),this.selectionManager&&(this.selectionManager.clearSelection(),this.selectionManager.initBuffersListeners())},Object.defineProperty(t.prototype,"buffer",{get:function(){return this.buffers.active},enumerable:!0,configurable:!0}),t.prototype.eraseAttr=function(){return-512&o.DEFAULT_ATTR|511&this.curAttr},t.prototype.focus=function(){this.textarea&&this.textarea.focus()},Object.defineProperty(t.prototype,"isFocused",{get:function(){return k.activeElement===this.textarea},enumerable:!0,configurable:!0}),t.prototype.getOption=function(e){if(!(e in D))throw new Error('No option with key "'+e+'"');return this.options[e]},t.prototype.setOption=function(e,t){if(!(e in D))throw new Error('No option with key "'+e+'"');if(-1!==H.indexOf(e)&&console.error('Option "'+e+'" can only be set in the constructor'),this.options[e]!==t){switch(e){case"bellStyle":t||(t="none");break;case"cursorStyle":t||(t="block");break;case"fontWeight":t||(t="normal");break;case"fontWeightBold":t||(t="bold");break;case"lineHeight":if(t<1)return void console.warn(e+" cannot be less than 1, value: "+t);case"rendererType":t||(t="canvas");break;case"tabStopWidth":if(t<1)return void console.warn(e+" cannot be less than 1, value: "+t);break;case"theme":if(this.renderer)return void this._setTheme(t);break;case"scrollback":if((t=Math.min(t,o.MAX_BUFFER_SIZE))<0)return void console.warn(e+" cannot be less than 0, value: "+t);if(this.options[e]!==t){var i=this.rows+t;if(this.buffer.lines.length>i){var r=this.buffer.lines.length-i,n=this.buffer.ydisp-r<0;this.buffer.lines.trimStart(r),this.buffer.ybase=Math.max(this.buffer.ybase-r,0),this.buffer.ydisp=Math.max(this.buffer.ydisp-r,0),n&&this.refresh(0,this.rows-1)}}}switch(this.options[e]=t,e){case"fontFamily":case"fontSize":this.renderer&&(this.renderer.clear(),this.charMeasure.measure(this.options));break;case"drawBoldTextInBrightColors":case"experimentalCharAtlas":case"enableBold":case"letterSpacing":case"lineHeight":case"fontWeight":case"fontWeightBold":this.renderer&&(this.renderer.clear(),this.renderer.onResize(this.cols,this.rows),this.refresh(0,this.rows-1));case"rendererType":this.renderer&&(this.unregister(this.renderer),this.renderer.dispose(),this.renderer=null),this._setupRenderer(),this.renderer.onCharSizeChanged(),this._theme&&this.renderer.setTheme(this._theme);break;case"scrollback":this.buffers.resize(this.cols,this.rows),this.viewport&&this.viewport.syncScrollArea();break;case"screenReaderMode":t?this._accessibilityManager||(this._accessibilityManager=new L.AccessibilityManager(this)):this._accessibilityManager&&(this._accessibilityManager.dispose(),this._accessibilityManager=null);break;case"tabStopWidth":this.buffers.setupTabStops()}this.renderer&&this.renderer.onOptionsChanged()}},t.prototype._onTextAreaFocus=function(e){this.sendFocus&&this.handler(u.C0.ESC+"[I"),this.updateCursorStyle(e),this.element.classList.add("focus"),this.showCursor(),this.emit("focus")},t.prototype.blur=function(){return this.textarea.blur()},t.prototype._onTextAreaBlur=function(){this.textarea.value="",this.refresh(this.buffer.y,this.buffer.y),this.sendFocus&&this.handler(u.C0.ESC+"[O"),this.element.classList.remove("focus"),this.emit("blur")},t.prototype._initGlobal=function(){var e=this;this._bindKeys(),this.register(C.addDisposableDomListener(this.element,"copy",(function(t){e.hasSelection()&&c.copyHandler(t,e,e.selectionManager)})));var t=function(t){return c.pasteHandler(t,e)};this.register(C.addDisposableDomListener(this.textarea,"paste",t)),this.register(C.addDisposableDomListener(this.element,"paste",t)),y.isFirefox?this.register(C.addDisposableDomListener(this.element,"mousedown",(function(t){2===t.button&&c.rightClickHandler(t,e.textarea,e.selectionManager,e.options.rightClickSelectsWord)}))):this.register(C.addDisposableDomListener(this.element,"contextmenu",(function(t){c.rightClickHandler(t,e.textarea,e.selectionManager,e.options.rightClickSelectsWord)}))),y.isLinux&&this.register(C.addDisposableDomListener(this.element,"auxclick",(function(t){1===t.button&&c.moveTextAreaUnderMouseCursor(t,e.textarea)})))},t.prototype._bindKeys=function(){var e=this,t=this;this.register(C.addDisposableDomListener(this.element,"keydown",(function(e){k.activeElement===this&&t._keyDown(e)}),!0)),this.register(C.addDisposableDomListener(this.element,"keypress",(function(e){k.activeElement===this&&t._keyPress(e)}),!0)),this.register(C.addDisposableDomListener(this.element,"keyup",(function(i){(function(e){return 16===e.keyCode||17===e.keyCode||18===e.keyCode})(i)||e.focus(),t._keyUp(i)}),!0)),this.register(C.addDisposableDomListener(this.textarea,"keydown",(function(t){return e._keyDown(t)}),!0)),this.register(C.addDisposableDomListener(this.textarea,"keypress",(function(t){return e._keyPress(t)}),!0)),this.register(C.addDisposableDomListener(this.textarea,"compositionstart",(function(){return e._compositionHelper.compositionstart()}))),this.register(C.addDisposableDomListener(this.textarea,"compositionupdate",(function(t){return e._compositionHelper.compositionupdate(t)}))),this.register(C.addDisposableDomListener(this.textarea,"compositionend",(function(){return e._compositionHelper.compositionend()}))),this.register(this.addDisposableListener("refresh",(function(){return e._compositionHelper.updateCompositionElements()}))),this.register(this.addDisposableListener("refresh",(function(t){return e._queueLinkification(t.start,t.end)})))},t.prototype.open=function(e){var t=this;if(this._parent=e||this._parent,!this._parent)throw new Error("Terminal requires a parent element.");this._context=this._parent.ownerDocument.defaultView,this._document=this._parent.ownerDocument,this._screenDprMonitor=new A.ScreenDprMonitor,this._screenDprMonitor.setListener((function(){return t.emit("dprchange",window.devicePixelRatio)})),this.register(this._screenDprMonitor),this.element=this._document.createElement("div"),this.element.dir="ltr",this.element.classList.add("terminal"),this.element.classList.add("xterm"),this.element.setAttribute("tabindex","0"),this._parent.appendChild(this.element);var i=k.createDocumentFragment();this._viewportElement=k.createElement("div"),this._viewportElement.classList.add("xterm-viewport"),i.appendChild(this._viewportElement),this._viewportScrollArea=k.createElement("div"),this._viewportScrollArea.classList.add("xterm-scroll-area"),this._viewportElement.appendChild(this._viewportScrollArea),this.screenElement=k.createElement("div"),this.screenElement.classList.add("xterm-screen"),this._helperContainer=k.createElement("div"),this._helperContainer.classList.add("xterm-helpers"),this.screenElement.appendChild(this._helperContainer),i.appendChild(this.screenElement),this._mouseZoneManager=new E.MouseZoneManager(this),this.register(this._mouseZoneManager),this.register(this.addDisposableListener("scroll",(function(){return t._mouseZoneManager.clearAll()}))),this.linkifier.attachToDom(this._mouseZoneManager),this.textarea=k.createElement("textarea"),this.textarea.classList.add("xterm-helper-textarea"),this.textarea.setAttribute("aria-label",g.promptLabel),this.textarea.setAttribute("aria-multiline","false"),this.textarea.setAttribute("autocorrect","off"),this.textarea.setAttribute("autocapitalize","off"),this.textarea.setAttribute("spellcheck","false"),this.textarea.tabIndex=0,this.register(C.addDisposableDomListener(this.textarea,"focus",(function(e){return t._onTextAreaFocus(e)}))),this.register(C.addDisposableDomListener(this.textarea,"blur",(function(){return t._onTextAreaBlur()}))),this._helperContainer.appendChild(this.textarea),this._compositionView=k.createElement("div"),this._compositionView.classList.add("composition-view"),this._compositionHelper=new a.CompositionHelper(this.textarea,this._compositionView,this),this._helperContainer.appendChild(this._compositionView),this.charMeasure=new m.CharMeasure(k,this._helperContainer),this.element.appendChild(i),this._setupRenderer(),this._theme=this.options.theme,this.options.theme=null,this.viewport=new h.Viewport(this,this._viewportElement,this._viewportScrollArea,this.charMeasure),this.viewport.onThemeChanged(this.renderer.colorManager.colors),this.register(this.viewport),this.register(this.addDisposableListener("cursormove",(function(){return t.renderer.onCursorMove()}))),this.register(this.addDisposableListener("resize",(function(){return t.renderer.onResize(t.cols,t.rows)}))),this.register(this.addDisposableListener("blur",(function(){return t.renderer.onBlur()}))),this.register(this.addDisposableListener("focus",(function(){return t.renderer.onFocus()}))),this.register(this.addDisposableListener("dprchange",(function(){return t.renderer.onWindowResize(window.devicePixelRatio)}))),this.register(C.addDisposableDomListener(window,"resize",(function(){return t.renderer.onWindowResize(window.devicePixelRatio)}))),this.register(this.charMeasure.addDisposableListener("charsizechanged",(function(){return t.renderer.onCharSizeChanged()}))),this.register(this.renderer.addDisposableListener("resize",(function(e){return t.viewport.syncScrollArea()}))),this.selectionManager=new p.SelectionManager(this,this.charMeasure),this.register(C.addDisposableDomListener(this.element,"mousedown",(function(e){return t.selectionManager.onMouseDown(e)}))),this.register(this.selectionManager.addDisposableListener("refresh",(function(e){return t.renderer.onSelectionChanged(e.start,e.end,e.columnSelectMode)}))),this.register(this.selectionManager.addDisposableListener("newselection",(function(e){t.textarea.value=e,t.textarea.focus(),t.textarea.select()}))),this.register(this.addDisposableListener("scroll",(function(){t.viewport.syncScrollArea(),t.selectionManager.refresh()}))),this.register(C.addDisposableDomListener(this._viewportElement,"scroll",(function(){return t.selectionManager.refresh()}))),this.mouseHelper=new v.MouseHelper(this.renderer),this.options.screenReaderMode&&(this._accessibilityManager=new L.AccessibilityManager(this)),this.charMeasure.measure(this.options),this.refresh(0,this.rows-1),this._initGlobal(),this.bindMouse()},t.prototype._setupRenderer=function(){switch(this.options.rendererType){case"canvas":this.renderer=new f.Renderer(this,this.options.theme);break;case"dom":this.renderer=new T.DomRenderer(this,this.options.theme);break;default:throw new Error('Unrecognized rendererType "'+this.options.rendererType+'"')}this.register(this.renderer)},t.prototype._setTheme=function(e){this._theme=e;var t=this.renderer.setTheme(e);this.viewport&&this.viewport.onThemeChanged(t)},t.prototype.bindMouse=function(){var e=this,t=this.element,i=this,r=32;function n(e){var t,n;if(t=function(e){var t,r,n,s,o;switch(e.overrideType||e.type){case"mousedown":t=null!==e.button&&void 0!==e.button?+e.button:null!==e.which&&void 0!==e.which?e.which-1:null,y.isMSIE&&(t=1===t?0:4===t?1:t);break;case"mouseup":t=3;break;case"DOMMouseScroll":t=e.detail<0?64:65;break;case"wheel":t=e.wheelDeltaY>0?64:65}r=e.shiftKey?4:0,n=e.metaKey?8:0,s=e.ctrlKey?16:0,o=r|n|s,i.vt200Mouse?o&=s:i.normalMouse||(o=0);return t=32+(o<<2)+t}(e),n=i.mouseHelper.getRawByteCoords(e,i.screenElement,i.charMeasure,i.options.lineHeight,i.cols,i.rows))switch(o(t,n),e.overrideType||e.type){case"mousedown":r=t;break;case"mouseup":r=32}}function s(e,t){if(i.utfMouse){if(2047===t)return void e.push(0);t<127?e.push(t):(t>2047&&(t=2047),e.push(192|t>>6),e.push(128|63&t))}else{if(255===t)return void e.push(0);t>127&&(t=127),e.push(t)}}function o(e,t){if(i._vt300Mouse){e&=3,t.x-=32,t.y-=32;var r=u.C0.ESC+"[24";if(0===e)r+="1";else if(1===e)r+="3";else if(2===e)r+="5";else{if(3===e)return;r+="0"}return r+="~["+t.x+","+t.y+"]\r",void i.handler(r)}if(i._decLocator)return e&=3,t.x-=32,t.y-=32,0===e?e=2:1===e?e=4:2===e?e=6:3===e&&(e=3),void i.handler(u.C0.ESC+"["+e+";"+(3===e?4:0)+";"+t.y+";"+t.x+";"+t.page||"0&w");if(i.urxvtMouse)return t.x-=32,t.y-=32,t.x++,t.y++,void i.handler(u.C0.ESC+"["+e+";"+t.x+";"+t.y+"M");if(i.sgrMouse)return t.x-=32,t.y-=32,void i.handler(u.C0.ESC+"[<"+((3==(3&e)?-4&e:e)-32)+";"+t.x+";"+t.y+(3==(3&e)?"m":"M"));var n=[];s(n,e),s(n,t.x),s(n,t.y),i.handler(u.C0.ESC+"[M"+String.fromCharCode.apply(String,n))}this.register(C.addDisposableDomListener(t,"mousedown",(function(t){if(t.preventDefault(),e.focus(),e.mouseEvents&&!e.selectionManager.shouldForceSelection(t)){if(n(t),e.vt200Mouse)return t.overrideType="mouseup",n(t),e.cancel(t);var s;e.normalMouse&&(s=function(t){e.normalMouse&&function(e){var t=r,n=i.mouseHelper.getRawByteCoords(e,i.screenElement,i.charMeasure,i.options.lineHeight,i.cols,i.rows);n&&o(t+=32,n)}(t)},e._document.addEventListener("mousemove",s));var a=function(t){return e.normalMouse&&!e.x10Mouse&&n(t),s&&(e._document.removeEventListener("mousemove",s),s=null),e._document.removeEventListener("mouseup",a),e.cancel(t)};return e._document.addEventListener("mouseup",a),e.cancel(t)}}))),this.register(C.addDisposableDomListener(t,"wheel",(function(t){if(e.mouseEvents)e.x10Mouse||e._vt300Mouse||e._decLocator||(n(t),t.preventDefault());else if(!e.buffer.hasScrollback){var i=e.viewport.getLinesScrolled(t);if(0===i)return;for(var r=u.C0.ESC+(e.applicationCursor?"O":"[")+(t.deltaY<0?"A":"B"),s="",o=0;o=this.buffer.ybase&&(this._userScrolling=!1);var i=this.buffer.ydisp;this.buffer.ydisp=Math.max(Math.min(this.buffer.ydisp+e,this.buffer.ybase),0),i!==this.buffer.ydisp&&(t||this.emit("scroll",this.buffer.ydisp),this.refresh(0,this.rows-1))},t.prototype.scrollPages=function(e){this.scrollLines(e*(this.rows-1))},t.prototype.scrollToTop=function(){this.scrollLines(-this.buffer.ydisp)},t.prototype.scrollToBottom=function(){this.scrollLines(this.buffer.ybase-this.buffer.ydisp)},t.prototype.scrollToLine=function(e){var t=e-this.buffer.ydisp;0!==t&&this.scrollLines(t)},t.prototype.write=function(e){var t=this;this._isDisposed||e&&(this.writeBuffer.push(e),this.options.useFlowControl&&!this._xoffSentToCatchUp&&this.writeBuffer.length>=5&&(this.handler(u.C0.DC3),this._xoffSentToCatchUp=!0),!this._writeInProgress&&this.writeBuffer.length>0&&(this._writeInProgress=!0,setTimeout((function(){t._innerWrite()}))))},t.prototype._innerWrite=function(){var e=this;this._isDisposed&&(this.writeBuffer=[]);for(var t=this.writeBuffer.splice(0,300);t.length>0;){var i=t.shift();this._xoffSentToCatchUp&&0===t.length&&0===this.writeBuffer.length&&(this.handler(u.C0.DC1),this._xoffSentToCatchUp=!1),this._refreshStart=this.buffer.y,this._refreshEnd=this.buffer.y,this._inputHandler.parse(i),this.updateRange(this.buffer.y),this.refresh(this._refreshStart,this._refreshEnd)}this.writeBuffer.length>0?setTimeout((function(){return e._innerWrite()}),0):this._writeInProgress=!1},t.prototype.writeln=function(e){this.write(e+"\r\n")},t.prototype.attachCustomKeyEventHandler=function(e){this._customKeyEventHandler=e},t.prototype.registerLinkMatcher=function(e,t,i){var r=this.linkifier.registerLinkMatcher(e,t,i);return this.refresh(0,this.rows-1),r},t.prototype.deregisterLinkMatcher=function(e){this.linkifier.deregisterLinkMatcher(e)&&this.refresh(0,this.rows-1)},t.prototype.registerCharacterJoiner=function(e){var t=this.renderer.registerCharacterJoiner(e);return this.refresh(0,this.rows-1),t},t.prototype.deregisterCharacterJoiner=function(e){this.renderer.deregisterCharacterJoiner(e)&&this.refresh(0,this.rows-1)},Object.defineProperty(t.prototype,"markers",{get:function(){return this.buffer.markers},enumerable:!0,configurable:!0}),t.prototype.addMarker=function(e){if(this.buffer===this.buffers.normal)return this.buffer.addMarker(this.buffer.ybase+this.buffer.y+e)},t.prototype.hasSelection=function(){return!!this.selectionManager&&this.selectionManager.hasSelection},t.prototype.getSelection=function(){return this.selectionManager?this.selectionManager.selectionText:""},t.prototype.clearSelection=function(){this.selectionManager&&this.selectionManager.clearSelection()},t.prototype.selectAll=function(){this.selectionManager&&this.selectionManager.selectAll()},t.prototype.selectLines=function(e,t){this.selectionManager&&this.selectionManager.selectLines(e,t)},t.prototype._keyDown=function(e){if(this._customKeyEventHandler&&!1===this._customKeyEventHandler(e))return!1;if(!this._compositionHelper.keydown(e))return this.buffer.ybase!==this.buffer.ydisp&&this.scrollToBottom(),!1;var t=R.evaluateKeyboardEvent(e,this.applicationCursor,this.browser.isMac,this.options.macOptionIsMeta);if(this.updateCursorStyle(e),3===t.type||2===t.type){var i=this.rows-1;return this.scrollLines(2===t.type?-i:i),this.cancel(e,!0)}return 1===t.type&&this.selectAll(),!!this._isThirdLevelShift(this.browser,e)||(t.cancel&&this.cancel(e,!0),!t.key||(this.emit("keydown",e),this.emit("key",t.key,e),this.showCursor(),this.handler(t.key),this.cancel(e,!0)))},t.prototype._isThirdLevelShift=function(e,t){var i=e.isMac&&!this.options.macOptionIsMeta&&t.altKey&&!t.ctrlKey&&!t.metaKey||e.isMSWindows&&t.altKey&&t.ctrlKey&&!t.metaKey;return"keypress"===t.type?i:i&&(!t.keyCode||t.keyCode>47)},t.prototype.setgLevel=function(e){this.glevel=e,this.charset=this.charsets[e]},t.prototype.setgCharset=function(e,t){this.charsets[e]=t,this.glevel===e&&(this.charset=t)},t.prototype._keyUp=function(e){this.updateCursorStyle(e)},t.prototype._keyPress=function(e){var t;if(this._customKeyEventHandler&&!1===this._customKeyEventHandler(e))return!1;if(this.cancel(e),e.charCode)t=e.charCode;else if(null===e.which||void 0===e.which)t=e.keyCode;else{if(0===e.which||0===e.charCode)return!1;t=e.which}return!(!t||(e.altKey||e.ctrlKey||e.metaKey)&&!this._isThirdLevelShift(this.browser,e))&&(t=String.fromCharCode(t),this.emit("keypress",t,e),this.emit("key",t,e),this.showCursor(),this.handler(t),!0)},t.prototype.bell=function(){var e=this;this.emit("bell"),this._soundBell()&&this.soundManager.playBellSound(),this._visualBell()&&(this.element.classList.add("visual-bell-active"),clearTimeout(this._visualBellTimer),this._visualBellTimer=window.setTimeout((function(){e.element.classList.remove("visual-bell-active")}),200))},t.prototype.log=function(e,t){this.options.debug&&this._context.console&&this._context.console.log&&this._context.console.log(e,t)},t.prototype.error=function(e,t){this.options.debug&&this._context.console&&this._context.console.error&&this._context.console.error(e,t)},t.prototype.resize=function(e,t){isNaN(e)||isNaN(t)||(e!==this.cols||t!==this.rows?(e<1&&(e=1),t<1&&(t=1),this.buffers.resize(e,t),this.cols=e,this.rows=t,this.buffers.setupTabStops(this.cols),this.charMeasure&&this.charMeasure.measure(this.options),this.refresh(0,this.rows-1),this.emit("resize",{cols:e,rows:t})):!this.charMeasure||this.charMeasure.width&&this.charMeasure.height||this.charMeasure.measure(this.options))},t.prototype.updateRange=function(e){ethis._refreshEnd&&(this._refreshEnd=e)},t.prototype.maxRange=function(){this._refreshStart=0,this._refreshEnd=this.rows-1},t.prototype.clear=function(){if(0!==this.buffer.ybase||0!==this.buffer.y){this.buffer.lines.set(0,this.buffer.lines.get(this.buffer.ybase+this.buffer.y)),this.buffer.lines.length=1,this.buffer.ydisp=0,this.buffer.ybase=0,this.buffer.y=0;for(var e=1;ethis.buffer.scrollBottom&&(this.buffer.y--,this.scroll()),this.buffer.x>=this.cols&&this.buffer.x--},t.prototype.reverseIndex=function(){if(this.buffer.y===this.buffer.scrollTop){var e=this.buffer.scrollBottom-this.buffer.scrollTop;this.buffer.lines.shiftElements(this.buffer.y+this.buffer.ybase,e,1),this.buffer.lines.set(this.buffer.y+this.buffer.ybase,M.BufferLine.blankLine(this.cols,this.eraseAttr())),this.updateRange(this.buffer.scrollTop),this.updateRange(this.buffer.scrollBottom)}else this.buffer.y--},t.prototype.reset=function(){this.options.rows=this.rows,this.options.cols=this.cols;var e=this._customKeyEventHandler,t=this._inputHandler,i=this.cursorState;this._setup(),this._customKeyEventHandler=e,this._inputHandler=t,this.cursorState=i,this.refresh(0,this.rows-1),this.viewport&&this.viewport.syncScrollArea()},t.prototype.tabSet=function(){this.buffer.tabs[this.buffer.x]=!0},t.prototype.cancel=function(e,t){if(this.options.cancelEvents||t)return e.preventDefault(),e.stopPropagation(),!1},t.prototype.matchColor=function(e,t,i){var r=e<<16|t<<8|i;if(null!==I[r]&&void 0!==I[r])return I[r];for(var n,s,o=1/0,a=-1,l=0;l>>24,n>>>16&255,n>>>8&255))){a=l;break}sthis._length)for(var t=this._length;t=e;n--)this._array[this._getCyclicIndex(n+i.length)]=this._array[this._getCyclicIndex(n)];for(n=0;nthis.maxLength){var s=this._length+i.length-this.maxLength;this._startIndex+=s,this._length=this.maxLength,this.emit("trim",s)}else this._length+=i.length}},t.prototype.trimStart=function(e){e>this._length&&(e=this._length),this._startIndex+=e,this._length-=e,this.emit("trim",e)},t.prototype.shiftElements=function(e,t,i){if(!(t<=0)){if(e<0||e>=this._length)throw new Error("start argument out of range");if(e+i<0)throw new Error("Cannot shift elements in list beyond index 0");if(i>0){for(var r=t-1;r>=0;r--)this.set(e+r+i,this.get(e+r));var n=e+t+i-this._length;if(n>0)for(this._length+=n;this._length>this.maxLength;)this._length--,this._startIndex++,this.emit("trim",1)}else for(r=0;r0&&e._terminal.handler(i)}}),0)},e.prototype.updateCompositionElements=function(e){var t=this;if(this._isComposing){if(this._terminal.buffer.isCursorInViewport){var i=Math.ceil(this._terminal.charMeasure.height*this._terminal.options.lineHeight),r=this._terminal.buffer.y*i,n=this._terminal.buffer.x*this._terminal.charMeasure.width;this._compositionView.style.left=n+"px",this._compositionView.style.top=r+"px",this._compositionView.style.height=i+"px",this._compositionView.style.lineHeight=i+"px";var s=this._compositionView.getBoundingClientRect();this._textarea.style.left=n+"px",this._textarea.style.top=r+"px",this._textarea.style.width=s.width+"px",this._textarea.style.height=s.height+"px",this._textarea.style.lineHeight=s.height+"px"}e||setTimeout((function(){return t.updateCompositionElements(!0)}),0)}},e.prototype._clearTextareaPosition=function(){this._textarea.style.left="",this._textarea.style.top=""},e}();t.CompositionHelper=r},5725:function(e,t,i){"use strict";var r,n=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(e,t)},function(e,t){function i(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)});Object.defineProperty(t,"__esModule",{value:!0});var s=i(1026),o=i(1252),a=function(e){function t(t,i,r,n){var s=e.call(this)||this;return s._terminal=t,s._viewportElement=i,s._scrollArea=r,s._charMeasure=n,s.scrollBarWidth=0,s._currentRowHeight=0,s._lastRecordedBufferLength=0,s._lastRecordedViewportHeight=0,s._lastRecordedBufferHeight=0,s._lastScrollTop=0,s._wheelPartialScroll=0,s._refreshAnimationFrame=null,s._ignoreNextScrollEvent=!1,s.scrollBarWidth=s._viewportElement.offsetWidth-s._scrollArea.offsetWidth||15,s.register(o.addDisposableDomListener(s._viewportElement,"scroll",s._onScroll.bind(s))),setTimeout((function(){return s.syncScrollArea()}),0),s}return n(t,e),t.prototype.onThemeChanged=function(e){this._viewportElement.style.backgroundColor=e.background.css},t.prototype._refresh=function(){var e=this;null===this._refreshAnimationFrame&&(this._refreshAnimationFrame=requestAnimationFrame((function(){return e._innerRefresh()})))},t.prototype._innerRefresh=function(){if(this._charMeasure.height>0){this._currentRowHeight=this._terminal.renderer.dimensions.scaledCellHeight/window.devicePixelRatio,this._lastRecordedViewportHeight=this._viewportElement.offsetHeight;var e=Math.round(this._currentRowHeight*this._lastRecordedBufferLength)+(this._lastRecordedViewportHeight-this._terminal.renderer.dimensions.canvasHeight);this._lastRecordedBufferHeight!==e&&(this._lastRecordedBufferHeight=e,this._scrollArea.style.height=this._lastRecordedBufferHeight+"px")}var t=this._terminal.buffer.ydisp*this._currentRowHeight;this._viewportElement.scrollTop!==t&&(this._ignoreNextScrollEvent=!0,this._viewportElement.scrollTop=t),this._refreshAnimationFrame=null},t.prototype.syncScrollArea=function(){if(this._lastRecordedBufferLength!==this._terminal.buffer.lines.length)return this._lastRecordedBufferLength=this._terminal.buffer.lines.length,void this._refresh();if(this._lastRecordedViewportHeight===this._terminal.renderer.dimensions.canvasHeight){var e=this._terminal.buffer.ydisp*this._currentRowHeight;this._lastScrollTop===e&&this._lastScrollTop===this._viewportElement.scrollTop&&this._terminal.renderer.dimensions.scaledCellHeight/window.devicePixelRatio===this._currentRowHeight||this._refresh()}else this._refresh()},t.prototype._onScroll=function(e){if(this._lastScrollTop=this._viewportElement.scrollTop,this._viewportElement.offsetParent)if(this._ignoreNextScrollEvent)this._ignoreNextScrollEvent=!1;else{var t=Math.round(this._lastScrollTop/this._currentRowHeight)-this._terminal.buffer.ydisp;this._terminal.scrollLines(t,!0)}},t.prototype.onWheel=function(e){var t=this._getPixelsScrolled(e);0!==t&&(this._viewportElement.scrollTop+=t,e.preventDefault())},t.prototype._getPixelsScrolled=function(e){if(0===e.deltaY)return 0;var t=e.deltaY;return e.deltaMode===WheelEvent.DOM_DELTA_LINE?t*=this._currentRowHeight:e.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(t*=this._currentRowHeight*this._terminal.rows),t},t.prototype.getLinesScrolled=function(e){if(0===e.deltaY)return 0;var t=e.deltaY;return e.deltaMode===WheelEvent.DOM_DELTA_PIXEL?(t/=this._currentRowHeight+0,this._wheelPartialScroll+=t,t=Math.floor(Math.abs(this._wheelPartialScroll))*(this._wheelPartialScroll>0?1:-1),this._wheelPartialScroll%=1):e.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(t*=this._terminal.rows),t},t.prototype.onTouchStart=function(e){this._lastTouchY=e.touches[0].pageY},t.prototype.onTouchMove=function(e){var t=this._lastTouchY-e.touches[0].pageY;this._lastTouchY=e.touches[0].pageY,0!==t&&(this._viewportElement.scrollTop+=t,e.preventDefault())},t}(s.Disposable);t.Viewport=a},5726:function(e,t,i){"use strict";function r(e){return e.replace(/\r?\n/g,"\r")}function n(e,t){return t?"[200~"+e+"[201~":e}function s(e,t){t.style.position="fixed",t.style.width="20px",t.style.height="20px",t.style.left=e.clientX-10+"px",t.style.top=e.clientY-10+"px",t.style.zIndex="1000",t.focus(),setTimeout((function(){t.style.position=null,t.style.width=null,t.style.height=null,t.style.left=null,t.style.top=null,t.style.zIndex=null}),200)}Object.defineProperty(t,"__esModule",{value:!0}),t.prepareTextForTerminal=r,t.bracketTextForPaste=n,t.copyHandler=function(e,t,i){t.browser.isMSIE?window.clipboardData.setData("Text",i.selectionText):e.clipboardData.setData("text/plain",i.selectionText),e.preventDefault()},t.pasteHandler=function(e,t){e.stopPropagation();var i=function(i){i=n(i=r(i),t.bracketedPasteMode),t.handler(i),t.textarea.value="",t.emit("paste",i),t.cancel(e)};t.browser.isMSIE?window.clipboardData&&i(window.clipboardData.getData("Text")):e.clipboardData&&i(e.clipboardData.getData("text/plain"))},t.moveTextAreaUnderMouseCursor=s,t.rightClickHandler=function(e,t,i,r){s(e,t),r&&!i.isClickInSelection(e)&&i.selectWordAtCursor(e),t.value=i.selectionText,t.select()}},5727:function(e,t,i){"use strict";var r,n=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(e,t)},function(e,t){function i(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)});Object.defineProperty(t,"__esModule",{value:!0});var s=i(1253),o=i(5728),a=i(922),l=i(2007),h=i(5729),c=i(1026),u=i(1462),_={"(":0,")":1,"*":2,"+":3,"-":1,".":2},f=function(){function e(e){this._terminal=e}return e.prototype.hook=function(e,t,i){this._data=""},e.prototype.put=function(e,t,i){this._data+=e.substring(t,i)},e.prototype.unhook=function(){switch(this._data){case'"q':return this._terminal.handler(s.C0.ESC+'P1$r0"q'+s.C0.ESC+"\\");case'"p':return this._terminal.handler(s.C0.ESC+'P1$r61"p'+s.C0.ESC+"\\");case"r":var e=this._terminal.buffer.scrollTop+1+";"+(this._terminal.buffer.scrollBottom+1)+"r";return this._terminal.handler(s.C0.ESC+"P1$r"+e+s.C0.ESC+"\\");case"m":return this._terminal.handler(s.C0.ESC+"P1$r0m"+s.C0.ESC+"\\");case" q":var t={block:2,underline:4,bar:6}[this._terminal.getOption("cursorStyle")];return t-=this._terminal.getOption("cursorBlink"),this._terminal.handler(s.C0.ESC+"P1$r"+t+" q"+s.C0.ESC+"\\");default:this._terminal.error("Unknown DCS $q %s",this._data),this._terminal.handler(s.C0.ESC+"P0$r"+s.C0.ESC+"\\")}},e}(),d=function(e){function t(t,i){void 0===i&&(i=new h.EscapeSequenceParser);var r=e.call(this)||this;r._terminal=t,r._parser=i,r.register(r._parser),r._surrogateHigh="",r._parser.setCsiHandlerFallback((function(e,t,i){r._terminal.error("Unknown CSI code: ",{collect:e,params:t,flag:String.fromCharCode(i)})})),r._parser.setEscHandlerFallback((function(e,t){r._terminal.error("Unknown ESC code: ",{collect:e,flag:String.fromCharCode(t)})})),r._parser.setExecuteHandlerFallback((function(e){r._terminal.error("Unknown EXECUTE code: ",{code:e})})),r._parser.setOscHandlerFallback((function(e,t){r._terminal.error("Unknown OSC code: ",{identifier:e,data:t})})),r._parser.setPrintHandler((function(e,t,i){return r.print(e,t,i)})),r._parser.setCsiHandler("@",(function(e,t){return r.insertChars(e)})),r._parser.setCsiHandler("A",(function(e,t){return r.cursorUp(e)})),r._parser.setCsiHandler("B",(function(e,t){return r.cursorDown(e)})),r._parser.setCsiHandler("C",(function(e,t){return r.cursorForward(e)})),r._parser.setCsiHandler("D",(function(e,t){return r.cursorBackward(e)})),r._parser.setCsiHandler("E",(function(e,t){return r.cursorNextLine(e)})),r._parser.setCsiHandler("F",(function(e,t){return r.cursorPrecedingLine(e)})),r._parser.setCsiHandler("G",(function(e,t){return r.cursorCharAbsolute(e)})),r._parser.setCsiHandler("H",(function(e,t){return r.cursorPosition(e)})),r._parser.setCsiHandler("I",(function(e,t){return r.cursorForwardTab(e)})),r._parser.setCsiHandler("J",(function(e,t){return r.eraseInDisplay(e)})),r._parser.setCsiHandler("K",(function(e,t){return r.eraseInLine(e)})),r._parser.setCsiHandler("L",(function(e,t){return r.insertLines(e)})),r._parser.setCsiHandler("M",(function(e,t){return r.deleteLines(e)})),r._parser.setCsiHandler("P",(function(e,t){return r.deleteChars(e)})),r._parser.setCsiHandler("S",(function(e,t){return r.scrollUp(e)})),r._parser.setCsiHandler("T",(function(e,t){return r.scrollDown(e,t)})),r._parser.setCsiHandler("X",(function(e,t){return r.eraseChars(e)})),r._parser.setCsiHandler("Z",(function(e,t){return r.cursorBackwardTab(e)})),r._parser.setCsiHandler("`",(function(e,t){return r.charPosAbsolute(e)})),r._parser.setCsiHandler("a",(function(e,t){return r.hPositionRelative(e)})),r._parser.setCsiHandler("b",(function(e,t){return r.repeatPrecedingCharacter(e)})),r._parser.setCsiHandler("c",(function(e,t){return r.sendDeviceAttributes(e,t)})),r._parser.setCsiHandler("d",(function(e,t){return r.linePosAbsolute(e)})),r._parser.setCsiHandler("e",(function(e,t){return r.vPositionRelative(e)})),r._parser.setCsiHandler("f",(function(e,t){return r.hVPosition(e)})),r._parser.setCsiHandler("g",(function(e,t){return r.tabClear(e)})),r._parser.setCsiHandler("h",(function(e,t){return r.setMode(e,t)})),r._parser.setCsiHandler("l",(function(e,t){return r.resetMode(e,t)})),r._parser.setCsiHandler("m",(function(e,t){return r.charAttributes(e)})),r._parser.setCsiHandler("n",(function(e,t){return r.deviceStatus(e,t)})),r._parser.setCsiHandler("p",(function(e,t){return r.softReset(e,t)})),r._parser.setCsiHandler("q",(function(e,t){return r.setCursorStyle(e,t)})),r._parser.setCsiHandler("r",(function(e,t){return r.setScrollRegion(e,t)})),r._parser.setCsiHandler("s",(function(e,t){return r.saveCursor(e)})),r._parser.setCsiHandler("u",(function(e,t){return r.restoreCursor(e)})),r._parser.setExecuteHandler(s.C0.BEL,(function(){return r.bell()})),r._parser.setExecuteHandler(s.C0.LF,(function(){return r.lineFeed()})),r._parser.setExecuteHandler(s.C0.VT,(function(){return r.lineFeed()})),r._parser.setExecuteHandler(s.C0.FF,(function(){return r.lineFeed()})),r._parser.setExecuteHandler(s.C0.CR,(function(){return r.carriageReturn()})),r._parser.setExecuteHandler(s.C0.BS,(function(){return r.backspace()})),r._parser.setExecuteHandler(s.C0.HT,(function(){return r.tab()})),r._parser.setExecuteHandler(s.C0.SO,(function(){return r.shiftOut()})),r._parser.setExecuteHandler(s.C0.SI,(function(){return r.shiftIn()})),r._parser.setExecuteHandler(s.C1.IND,(function(){return r.index()})),r._parser.setExecuteHandler(s.C1.NEL,(function(){return r.nextLine()})),r._parser.setExecuteHandler(s.C1.HTS,(function(){return r.tabSet()})),r._parser.setOscHandler(0,(function(e){return r.setTitle(e)})),r._parser.setOscHandler(2,(function(e){return r.setTitle(e)})),r._parser.setEscHandler("7",(function(){return r.saveCursor([])})),r._parser.setEscHandler("8",(function(){return r.restoreCursor([])})),r._parser.setEscHandler("D",(function(){return r.index()})),r._parser.setEscHandler("E",(function(){return r.nextLine()})),r._parser.setEscHandler("H",(function(){return r.tabSet()})),r._parser.setEscHandler("M",(function(){return r.reverseIndex()})),r._parser.setEscHandler("=",(function(){return r.keypadApplicationMode()})),r._parser.setEscHandler(">",(function(){return r.keypadNumericMode()})),r._parser.setEscHandler("c",(function(){return r.reset()})),r._parser.setEscHandler("n",(function(){return r.setgLevel(2)})),r._parser.setEscHandler("o",(function(){return r.setgLevel(3)})),r._parser.setEscHandler("|",(function(){return r.setgLevel(3)})),r._parser.setEscHandler("}",(function(){return r.setgLevel(2)})),r._parser.setEscHandler("~",(function(){return r.setgLevel(1)})),r._parser.setEscHandler("%@",(function(){return r.selectDefaultCharset()})),r._parser.setEscHandler("%G",(function(){return r.selectDefaultCharset()}));var n=function(e){a._parser.setEscHandler("("+e,(function(){return r.selectCharset("("+e)})),a._parser.setEscHandler(")"+e,(function(){return r.selectCharset(")"+e)})),a._parser.setEscHandler("*"+e,(function(){return r.selectCharset("*"+e)})),a._parser.setEscHandler("+"+e,(function(){return r.selectCharset("+"+e)})),a._parser.setEscHandler("-"+e,(function(){return r.selectCharset("-"+e)})),a._parser.setEscHandler("."+e,(function(){return r.selectCharset("."+e)})),a._parser.setEscHandler("/"+e,(function(){return r.selectCharset("/"+e)}))},a=this;for(var l in o.CHARSETS)n(l);return r._parser.setErrorHandler((function(e){return r._terminal.error("Parsing error: ",e),e})),r._parser.setDcsHandler("$q",new f(r._terminal)),r}return n(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this),this._terminal=null},t.prototype.parse=function(e){if(this._terminal){var t=this._terminal.buffer,i=t.x,r=t.y;this._terminal.debug&&this._terminal.log("data: "+e),this._surrogateHigh&&(e=this._surrogateHigh+e,this._surrogateHigh=""),this._parser.parse(e),(t=this._terminal.buffer).x===i&&t.y===r||this._terminal.emit("cursormove")}},t.prototype.print=function(e,t,i){var r,n,s,o,h=this._terminal.buffer,c=this._terminal.charset,u=this._terminal.options.screenReaderMode,_=this._terminal.cols,f=this._terminal.wraparoundMode,d=this._terminal.insertMode,p=this._terminal.curAttr,m=h.lines.get(h.y+h.ybase);this._terminal.updateRange(h.y);for(var y=t;y=_)if(f)h.x=0,h.y++,h.y>h.scrollBottom?(h.y--,this._terminal.scroll(!0)):h.lines.get(h.y).isWrapped=!0,m=h.lines.get(h.y+h.ybase);else if(2===o)continue;if(d)for(var C=0;Ce.scrollBottom&&(e.y--,this._terminal.scroll()),e.x>=this._terminal.cols&&e.x--,this._terminal.emit("linefeed")},t.prototype.carriageReturn=function(){this._terminal.buffer.x=0},t.prototype.backspace=function(){this._terminal.buffer.x>0&&this._terminal.buffer.x--},t.prototype.tab=function(){var e=this._terminal.buffer.x;this._terminal.buffer.x=this._terminal.buffer.nextStop(),this._terminal.options.screenReaderMode&&this._terminal.emit("a11y.tab",this._terminal.buffer.x-e)},t.prototype.shiftOut=function(){this._terminal.setgLevel(1)},t.prototype.shiftIn=function(){this._terminal.setgLevel(0)},t.prototype.insertChars=function(e){this._terminal.buffer.lines.get(this._terminal.buffer.y+this._terminal.buffer.ybase).insertCells(this._terminal.buffer.x,e[0]||1,[this._terminal.eraseAttr(),a.NULL_CELL_CHAR,a.NULL_CELL_WIDTH,a.NULL_CELL_CODE]),this._terminal.updateRange(this._terminal.buffer.y)},t.prototype.cursorUp=function(e){var t=e[0];t<1&&(t=1),this._terminal.buffer.y-=t,this._terminal.buffer.y<0&&(this._terminal.buffer.y=0)},t.prototype.cursorDown=function(e){var t=e[0];t<1&&(t=1),this._terminal.buffer.y+=t,this._terminal.buffer.y>=this._terminal.rows&&(this._terminal.buffer.y=this._terminal.rows-1),this._terminal.buffer.x>=this._terminal.cols&&this._terminal.buffer.x--},t.prototype.cursorForward=function(e){var t=e[0];t<1&&(t=1),this._terminal.buffer.x+=t,this._terminal.buffer.x>=this._terminal.cols&&(this._terminal.buffer.x=this._terminal.cols-1)},t.prototype.cursorBackward=function(e){var t=e[0];t<1&&(t=1),this._terminal.buffer.x>=this._terminal.cols&&this._terminal.buffer.x--,this._terminal.buffer.x-=t,this._terminal.buffer.x<0&&(this._terminal.buffer.x=0)},t.prototype.cursorNextLine=function(e){var t=e[0];t<1&&(t=1),this._terminal.buffer.y+=t,this._terminal.buffer.y>=this._terminal.rows&&(this._terminal.buffer.y=this._terminal.rows-1),this._terminal.buffer.x=0},t.prototype.cursorPrecedingLine=function(e){var t=e[0];t<1&&(t=1),this._terminal.buffer.y-=t,this._terminal.buffer.y<0&&(this._terminal.buffer.y=0),this._terminal.buffer.x=0},t.prototype.cursorCharAbsolute=function(e){var t=e[0];t<1&&(t=1),this._terminal.buffer.x=t-1},t.prototype.cursorPosition=function(e){var t,i=e[0]-1;t=e.length>=2?e[1]-1:0,i<0?i=0:i>=this._terminal.rows&&(i=this._terminal.rows-1),t<0?t=0:t>=this._terminal.cols&&(t=this._terminal.cols-1),this._terminal.buffer.x=t,this._terminal.buffer.y=i},t.prototype.cursorForwardTab=function(e){for(var t=e[0]||1;t--;)this._terminal.buffer.x=this._terminal.buffer.nextStop()},t.prototype._eraseInBufferLine=function(e,t,i){this._terminal.buffer.lines.get(this._terminal.buffer.ybase+e).replaceCells(t,i,[this._terminal.eraseAttr(),a.NULL_CELL_CHAR,a.NULL_CELL_WIDTH,a.NULL_CELL_CODE])},t.prototype.eraseInDisplay=function(e){var t;switch(e[0]){case 0:for(t=this._terminal.buffer.y,this._terminal.updateRange(t),this._eraseInBufferLine(t++,this._terminal.buffer.x,this._terminal.cols);t0&&(this._terminal.buffer.lines.trimStart(i),this._terminal.buffer.ybase=Math.max(this._terminal.buffer.ybase-i,0),this._terminal.buffer.ydisp=Math.max(this._terminal.buffer.ydisp-i,0),this._terminal.emit("scroll",0))}},t.prototype.eraseInLine=function(e){switch(e[0]){case 0:this._eraseInBufferLine(this._terminal.buffer.y,this._terminal.buffer.x,this._terminal.cols);break;case 1:this._eraseInBufferLine(this._terminal.buffer.y,0,this._terminal.buffer.x+1);break;case 2:this._eraseInBufferLine(this._terminal.buffer.y,0,this._terminal.cols)}this._terminal.updateRange(this._terminal.buffer.y)},t.prototype.insertLines=function(e){var t=e[0];t<1&&(t=1);for(var i=this._terminal.buffer,r=i.y+i.ybase,n=this._terminal.rows-1-i.scrollBottom,s=this._terminal.rows-1+i.ybase-n+1;t--;)i.lines.splice(s-1,1),i.lines.splice(r,0,u.BufferLine.blankLine(this._terminal.cols,this._terminal.eraseAttr()));this._terminal.updateRange(i.y),this._terminal.updateRange(i.scrollBottom)},t.prototype.deleteLines=function(e){var t=e[0];t<1&&(t=1);var i,r=this._terminal.buffer,n=r.y+r.ybase;for(i=this._terminal.rows-1-r.scrollBottom,i=this._terminal.rows-1+r.ybase-i;t--;)r.lines.splice(n,1),r.lines.splice(i,0,u.BufferLine.blankLine(this._terminal.cols,this._terminal.eraseAttr()));this._terminal.updateRange(r.y),this._terminal.updateRange(r.scrollBottom)},t.prototype.deleteChars=function(e){this._terminal.buffer.lines.get(this._terminal.buffer.y+this._terminal.buffer.ybase).deleteCells(this._terminal.buffer.x,e[0]||1,[this._terminal.eraseAttr(),a.NULL_CELL_CHAR,a.NULL_CELL_WIDTH,a.NULL_CELL_CODE]),this._terminal.updateRange(this._terminal.buffer.y)},t.prototype.scrollUp=function(e){for(var t=e[0]||1,i=this._terminal.buffer;t--;)i.lines.splice(i.ybase+i.scrollTop,1),i.lines.splice(i.ybase+i.scrollBottom,0,u.BufferLine.blankLine(this._terminal.cols,a.DEFAULT_ATTR));this._terminal.updateRange(i.scrollTop),this._terminal.updateRange(i.scrollBottom)},t.prototype.scrollDown=function(e,t){if(e.length<2&&!t){for(var i=e[0]||1,r=this._terminal.buffer;i--;)r.lines.splice(r.ybase+r.scrollBottom,1),r.lines.splice(r.ybase+r.scrollBottom,0,u.BufferLine.blankLine(this._terminal.cols,a.DEFAULT_ATTR));this._terminal.updateRange(r.scrollTop),this._terminal.updateRange(r.scrollBottom)}},t.prototype.eraseChars=function(e){this._terminal.buffer.lines.get(this._terminal.buffer.y+this._terminal.buffer.ybase).replaceCells(this._terminal.buffer.x,this._terminal.buffer.x+(e[0]||1),[this._terminal.eraseAttr(),a.NULL_CELL_CHAR,a.NULL_CELL_WIDTH,a.NULL_CELL_CODE])},t.prototype.cursorBackwardTab=function(e){for(var t=e[0]||1,i=this._terminal.buffer;t--;)i.x=i.prevStop()},t.prototype.charPosAbsolute=function(e){var t=e[0];t<1&&(t=1),this._terminal.buffer.x=t-1,this._terminal.buffer.x>=this._terminal.cols&&(this._terminal.buffer.x=this._terminal.cols-1)},t.prototype.hPositionRelative=function(e){var t=e[0];t<1&&(t=1),this._terminal.buffer.x+=t,this._terminal.buffer.x>=this._terminal.cols&&(this._terminal.buffer.x=this._terminal.cols-1)},t.prototype.repeatPrecedingCharacter=function(e){var t=this._terminal.buffer,i=t.lines.get(t.ybase+t.y);i.replaceCells(t.x,t.x+(e[0]||1),i.get(t.x-1)||[a.DEFAULT_ATTR,a.NULL_CELL_CHAR,a.NULL_CELL_WIDTH,a.NULL_CELL_CODE])},t.prototype.sendDeviceAttributes=function(e,t){e[0]>0||(t?">"===t&&(this._terminal.is("xterm")?this._terminal.handler(s.C0.ESC+"[>0;276;0c"):this._terminal.is("rxvt-unicode")?this._terminal.handler(s.C0.ESC+"[>85;95;0c"):this._terminal.is("linux")?this._terminal.handler(e[0]+"c"):this._terminal.is("screen")&&this._terminal.handler(s.C0.ESC+"[>83;40003;0c")):this._terminal.is("xterm")||this._terminal.is("rxvt-unicode")||this._terminal.is("screen")?this._terminal.handler(s.C0.ESC+"[?1;2c"):this._terminal.is("linux")&&this._terminal.handler(s.C0.ESC+"[?6c"))},t.prototype.linePosAbsolute=function(e){var t=e[0];t<1&&(t=1),this._terminal.buffer.y=t-1,this._terminal.buffer.y>=this._terminal.rows&&(this._terminal.buffer.y=this._terminal.rows-1)},t.prototype.vPositionRelative=function(e){var t=e[0];t<1&&(t=1),this._terminal.buffer.y+=t,this._terminal.buffer.y>=this._terminal.rows&&(this._terminal.buffer.y=this._terminal.rows-1),this._terminal.buffer.x>=this._terminal.cols&&this._terminal.buffer.x--},t.prototype.hVPosition=function(e){e[0]<1&&(e[0]=1),e[1]<1&&(e[1]=1),this._terminal.buffer.y=e[0]-1,this._terminal.buffer.y>=this._terminal.rows&&(this._terminal.buffer.y=this._terminal.rows-1),this._terminal.buffer.x=e[1]-1,this._terminal.buffer.x>=this._terminal.cols&&(this._terminal.buffer.x=this._terminal.cols-1)},t.prototype.tabClear=function(e){var t=e[0];t<=0?delete this._terminal.buffer.tabs[this._terminal.buffer.x]:3===t&&(this._terminal.buffer.tabs={})},t.prototype.setMode=function(e,t){if(e.length>1)for(var i=0;i1e3,this._terminal.mouseEvents=!0,this._terminal.element.classList.add("enable-mouse-events"),this._terminal.selectionManager.disable(),this._terminal.log("Binding to mouse events.");break;case 1004:this._terminal.sendFocus=!0;break;case 1005:this._terminal.utfMouse=!0;break;case 1006:this._terminal.sgrMouse=!0;break;case 1015:this._terminal.urxvtMouse=!0;break;case 25:this._terminal.cursorHidden=!1;break;case 1049:case 47:case 1047:this._terminal.buffers.activateAltBuffer(),this._terminal.viewport.syncScrollArea(),this._terminal.showCursor();break;case 2004:this._terminal.bracketedPasteMode=!0}}else switch(e[0]){case 4:this._terminal.insertMode=!0}},t.prototype.resetMode=function(e,t){if(e.length>1)for(var i=0;i>18,n=this._terminal.curAttr>>9&511,s=511&this._terminal.curAttr,o=0;o=30&&t<=37?n=t-30:t>=40&&t<=47?s=t-40:t>=90&&t<=97?n=(t+=8)-90:t>=100&&t<=107?s=(t+=8)-100:0===t?(r=a.DEFAULT_ATTR>>18,n=a.DEFAULT_ATTR>>9&511,s=511&a.DEFAULT_ATTR):1===t?r|=1:3===t?r|=64:4===t?r|=2:5===t?r|=4:7===t?r|=8:8===t?r|=16:2===t?r|=32:22===t?(r&=-2,r&=-33):23===t?r&=-65:24===t?r&=-3:25===t?r&=-5:27===t?r&=-9:28===t?r&=-17:39===t?n=a.DEFAULT_ATTR>>9&511:49===t?s=511&a.DEFAULT_ATTR:38===t?2===e[o+1]?(o+=2,-1===(n=this._terminal.matchColor(255&e[o],255&e[o+1],255&e[o+2]))&&(n=511),o+=2):5===e[o+1]&&(n=t=255&e[o+=2]):48===t?2===e[o+1]?(o+=2,-1===(s=this._terminal.matchColor(255&e[o],255&e[o+1],255&e[o+2]))&&(s=511),o+=2):5===e[o+1]&&(s=t=255&e[o+=2]):100===t?(n=a.DEFAULT_ATTR>>9&511,s=511&a.DEFAULT_ATTR):this._terminal.error("Unknown SGR attribute: %d.",t);this._terminal.curAttr=r<<18|n<<9|s}else this._terminal.curAttr=a.DEFAULT_ATTR},t.prototype.deviceStatus=function(e,t){if(t){if("?"===t)switch(e[0]){case 6:i=this._terminal.buffer.y+1,r=this._terminal.buffer.x+1;this._terminal.emit("data",s.C0.ESC+"[?"+i+";"+r+"R")}}else switch(e[0]){case 5:this._terminal.emit("data",s.C0.ESC+"[0n");break;case 6:var i=this._terminal.buffer.y+1,r=this._terminal.buffer.x+1;this._terminal.emit("data",s.C0.ESC+"["+i+";"+r+"R")}},t.prototype.softReset=function(e,t){"!"===t&&(this._terminal.cursorHidden=!1,this._terminal.insertMode=!1,this._terminal.originMode=!1,this._terminal.wraparoundMode=!0,this._terminal.applicationKeypad=!1,this._terminal.viewport.syncScrollArea(),this._terminal.applicationCursor=!1,this._terminal.buffer.scrollTop=0,this._terminal.buffer.scrollBottom=this._terminal.rows-1,this._terminal.curAttr=a.DEFAULT_ATTR,this._terminal.buffer.x=this._terminal.buffer.y=0,this._terminal.charset=null,this._terminal.glevel=0,this._terminal.charsets=[null])},t.prototype.setCursorStyle=function(e,t){if(" "===t){var i=e[0]<1?1:e[0];switch(i){case 1:case 2:this._terminal.setOption("cursorStyle","block");break;case 3:case 4:this._terminal.setOption("cursorStyle","underline");break;case 5:case 6:this._terminal.setOption("cursorStyle","bar")}var r=i%2==1;this._terminal.setOption("cursorBlink",r)}},t.prototype.setScrollRegion=function(e,t){t||(this._terminal.buffer.scrollTop=(e[0]||1)-1,this._terminal.buffer.scrollBottom=(e[1]&&e[1]<=this._terminal.rows?e[1]:this._terminal.rows)-1,this._terminal.buffer.x=0,this._terminal.buffer.y=0)},t.prototype.saveCursor=function(e){this._terminal.buffer.savedX=this._terminal.buffer.x,this._terminal.buffer.savedY=this._terminal.buffer.y,this._terminal.savedCurAttr=this._terminal.curAttr},t.prototype.restoreCursor=function(e){this._terminal.buffer.x=this._terminal.buffer.savedX||0,this._terminal.buffer.y=this._terminal.buffer.savedY||0,this._terminal.curAttr=this._terminal.savedCurAttr||a.DEFAULT_ATTR},t.prototype.setTitle=function(e){this._terminal.handleTitle(e)},t.prototype.nextLine=function(){this._terminal.buffer.x=0,this.index()},t.prototype.keypadApplicationMode=function(){this._terminal.log("Serial port requested application keypad."),this._terminal.applicationKeypad=!0,this._terminal.viewport&&this._terminal.viewport.syncScrollArea()},t.prototype.keypadNumericMode=function(){this._terminal.log("Switching back to normal keypad."),this._terminal.applicationKeypad=!1,this._terminal.viewport&&this._terminal.viewport.syncScrollArea()},t.prototype.selectDefaultCharset=function(){this._terminal.setgLevel(0),this._terminal.setgCharset(0,o.DEFAULT_CHARSET)},t.prototype.selectCharset=function(e){if(2!==e.length)return this.selectDefaultCharset();"/"!==e[0]&&this._terminal.setgCharset(_[e[0]],o.CHARSETS[e[1]]||o.DEFAULT_CHARSET)},t.prototype.index=function(){this._terminal.index()},t.prototype.tabSet=function(){this._terminal.tabSet()},t.prototype.reverseIndex=function(){this._terminal.reverseIndex()},t.prototype.reset=function(){this._parser.reset(),this._terminal.reset()},t.prototype.setgLevel=function(e){this._terminal.setgLevel(e)},t}(c.Disposable);t.InputHandler=d},5728:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CHARSETS={},t.DEFAULT_CHARSET=t.CHARSETS.B,t.CHARSETS[0]={"`":"◆",a:"▒",b:"\t",c:"\f",d:"\r",e:"\n",f:"°",g:"±",h:"␤",i:"\v",j:"┘",k:"┐",l:"┌",m:"└",n:"┼",o:"⎺",p:"⎻",q:"─",r:"⎼",s:"⎽",t:"├",u:"┤",v:"┴",w:"┬",x:"│",y:"≤",z:"≥","{":"π","|":"≠","}":"£","~":"·"},t.CHARSETS.A={"#":"£"},t.CHARSETS.B=null,t.CHARSETS[4]={"#":"£","@":"¾","[":"ij","\\":"½","]":"|","{":"¨","|":"f","}":"¼","~":"´"},t.CHARSETS.C=t.CHARSETS[5]={"[":"Ä","\\":"Ö","]":"Å","^":"Ü","`":"é","{":"ä","|":"ö","}":"å","~":"ü"},t.CHARSETS.R={"#":"£","@":"à","[":"°","\\":"ç","]":"§","{":"é","|":"ù","}":"è","~":"¨"},t.CHARSETS.Q={"@":"à","[":"â","\\":"ç","]":"ê","^":"î","`":"ô","{":"é","|":"ù","}":"è","~":"û"},t.CHARSETS.K={"@":"§","[":"Ä","\\":"Ö","]":"Ü","{":"ä","|":"ö","}":"ü","~":"ß"},t.CHARSETS.Y={"#":"£","@":"§","[":"°","\\":"ç","]":"é","`":"ù","{":"à","|":"ò","}":"è","~":"ì"},t.CHARSETS.E=t.CHARSETS[6]={"@":"Ä","[":"Æ","\\":"Ø","]":"Å","^":"Ü","`":"ä","{":"æ","|":"ø","}":"å","~":"ü"},t.CHARSETS.Z={"#":"£","@":"§","[":"¡","\\":"Ñ","]":"¿","{":"°","|":"ñ","}":"ç"},t.CHARSETS.H=t.CHARSETS[7]={"@":"É","[":"Ä","\\":"Ö","]":"Å","^":"Ü","`":"é","{":"ä","|":"ö","}":"å","~":"ü"},t.CHARSETS["="]={"#":"ù","@":"à","[":"é","\\":"ç","]":"ê","^":"î",_:"è","`":"ô","{":"ä","|":"ö","}":"ü","~":"û"}},5729:function(e,t,i){"use strict";var r,n=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(e,t)},function(e,t){function i(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)});Object.defineProperty(t,"__esModule",{value:!0});var s=i(1026);function o(e,t){for(var i=t-e,r=new Array(i);i--;)r[i]=--t;return r}var a=function(){function e(e){this.table="undefined"==typeof Uint8Array?new Array(e):new Uint8Array(e)}return e.prototype.add=function(e,t,i,r){this.table[t<<8|e]=(0|i)<<4|(void 0===r?t:r)},e.prototype.addMany=function(e,t,i,r){for(var n=0;n31&&t<128){s=~s?s:d;do{d++}while(d31&&e.charCodeAt(d)<128);d--}else if(4===n&&t>47&&t<57)h[h.length-1]=10*h[h.length-1]+t-48;else{switch((i=t<160?c[n<<8|t]:16)>>4){case 2:s=~s?s:d;break;case 3:~s&&(this._printHandler(e,s,d),s=-1),(_=this._executeHandlers[t])?_():this._executeHandlerFb(t);break;case 0:~s?(this._printHandler(e,s,d),s=-1):~o&&(u.put(e,o,d),o=-1);break;case 1:if(t>159)switch(n){case 0:s=~s?s:d;break;case 8:a+=String.fromCharCode(t),i|=8;break;case 6:i|=6;break;case 11:i|=11;break;case 13:o=~o?o:d,i|=13;break;default:r=!0}else r=!0;if(r){if(this._errorHandler({position:d,code:t,currentState:n,print:s,dcs:o,osc:a,collect:l,params:h,abort:!1}).abort)return;r=!1}break;case 7:(_=this._csiHandlers[t])?_(h,l):this._csiHandlerFb(l,h,t);break;case 8:59===t?h.push(0):h[h.length-1]=10*h[h.length-1]+t-48;break;case 9:l+=String.fromCharCode(t);break;case 10:(_=this._escHandlers[l+String.fromCharCode(t)])?_(l,t):this._escHandlerFb(l,t);break;case 11:~s&&(this._printHandler(e,s,d),s=-1),a="",h=[0],l="",o=-1;break;case 12:(u=this._dcsHandlers[l+String.fromCharCode(t)])||(u=this._dcsHandlerFb),u.hook(l,h,t);break;case 13:o=~o?o:d;break;case 14:u&&(~o&&u.put(e,o,d),u.unhook(),u=null),27===t&&(i|=1),a="",h=[0],l="",o=-1;break;case 4:~s&&(this._printHandler(e,s,d),s=-1),a="";break;case 5:a+=e.charAt(d);break;case 6:if(a&&24!==t&&26!==t){var p=a.indexOf(";");if(-1===p)this._oscHandlerFb(-1,a);else{var m=parseInt(a.substring(0,p)),y=a.substring(p+1);(_=this._oscHandlers[m])?_(y):this._oscHandlerFb(m,y)}}27===t&&(i|=1),a="",h=[0],l="",o=-1}n=15&i}0===n&&~s?this._printHandler(e,s,e.length):13===n&&~o&&u&&u.put(e,o,e.length),this._osc=a,this._collect=l,this._params=h,this._activeDcsHandler=u,this.currentState=n},i}(s.Disposable);t.EscapeSequenceParser=u},5730:function(e,t,i){"use strict";var r,n=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(e,t)},function(e,t){function i(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)});Object.defineProperty(t,"__esModule",{value:!0});var s=i(5731),o=i(5738),a=i(5739),l=i(1255),h=i(5740),c=i(964),u=i(1464),_=i(2011),f=i(5741),d=function(e){function t(t,i){var r=e.call(this)||this;r._terminal=t,r._isPaused=!1,r._needsFullRefresh=!1;var n=r._terminal.options.allowTransparency;if(r.colorManager=new l.ColorManager(document,n),r._characterJoinerRegistry=new f.CharacterJoinerRegistry(t),i&&r.colorManager.setTheme(i),r._renderLayers=[new s.TextRenderLayer(r._terminal.screenElement,0,r.colorManager.colors,r._characterJoinerRegistry,n),new o.SelectionRenderLayer(r._terminal.screenElement,1,r.colorManager.colors),new h.LinkRenderLayer(r._terminal.screenElement,2,r.colorManager.colors,r._terminal),new a.CursorRenderLayer(r._terminal.screenElement,3,r.colorManager.colors)],r.dimensions={scaledCharWidth:null,scaledCharHeight:null,scaledCellWidth:null,scaledCellHeight:null,scaledCharLeft:null,scaledCharTop:null,scaledCanvasWidth:null,scaledCanvasHeight:null,canvasWidth:null,canvasHeight:null,actualCellWidth:null,actualCellHeight:null},r._devicePixelRatio=window.devicePixelRatio,r._updateDimensions(),r.onOptionsChanged(),r._renderDebouncer=new u.RenderDebouncer(r._terminal,r._renderRows.bind(r)),r._screenDprMonitor=new _.ScreenDprMonitor,r._screenDprMonitor.setListener((function(){return r.onWindowResize(window.devicePixelRatio)})),r.register(r._screenDprMonitor),"IntersectionObserver"in window){var c=new IntersectionObserver((function(e){return r.onIntersectionChange(e[0])}),{threshold:0});c.observe(r._terminal.element),r.register({dispose:function(){return c.disconnect()}})}return r}return n(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this),this._renderLayers.forEach((function(e){return e.dispose()}))},t.prototype.onIntersectionChange=function(e){this._isPaused=0===e.intersectionRatio,!this._isPaused&&this._needsFullRefresh&&this._terminal.refresh(0,this._terminal.rows-1)},t.prototype.onWindowResize=function(e){this._devicePixelRatio!==e&&(this._devicePixelRatio=e,this.onResize(this._terminal.cols,this._terminal.rows))},t.prototype.setTheme=function(e){var t=this;return this.colorManager.setTheme(e),this._renderLayers.forEach((function(e){e.onThemeChanged(t._terminal,t.colorManager.colors),e.reset(t._terminal)})),this._isPaused?this._needsFullRefresh=!0:this._terminal.refresh(0,this._terminal.rows-1),this.colorManager.colors},t.prototype.onResize=function(e,t){var i=this;this._updateDimensions(),this._renderLayers.forEach((function(e){return e.resize(i._terminal,i.dimensions)})),this._isPaused?this._needsFullRefresh=!0:this._terminal.refresh(0,this._terminal.rows-1),this._terminal.screenElement.style.width=this.dimensions.canvasWidth+"px",this._terminal.screenElement.style.height=this.dimensions.canvasHeight+"px",this.emit("resize",{width:this.dimensions.canvasWidth,height:this.dimensions.canvasHeight})},t.prototype.onCharSizeChanged=function(){this.onResize(this._terminal.cols,this._terminal.rows)},t.prototype.onBlur=function(){var e=this;this._runOperation((function(t){return t.onBlur(e._terminal)}))},t.prototype.onFocus=function(){var e=this;this._runOperation((function(t){return t.onFocus(e._terminal)}))},t.prototype.onSelectionChanged=function(e,t,i){var r=this;void 0===i&&(i=!1),this._runOperation((function(n){return n.onSelectionChanged(r._terminal,e,t,i)}))},t.prototype.onCursorMove=function(){var e=this;this._runOperation((function(t){return t.onCursorMove(e._terminal)}))},t.prototype.onOptionsChanged=function(){var e=this;this.colorManager.allowTransparency=this._terminal.options.allowTransparency,this._runOperation((function(t){return t.onOptionsChanged(e._terminal)}))},t.prototype.clear=function(){var e=this;this._runOperation((function(t){return t.reset(e._terminal)}))},t.prototype._runOperation=function(e){this._isPaused?this._needsFullRefresh=!0:this._renderLayers.forEach((function(t){return e(t)}))},t.prototype.refreshRows=function(e,t){this._isPaused?this._needsFullRefresh=!0:this._renderDebouncer.refresh(e,t)},t.prototype._renderRows=function(e,t){var i=this;this._renderLayers.forEach((function(r){return r.onGridChanged(i._terminal,e,t)})),this._terminal.emit("refresh",{start:e,end:t})},t.prototype._updateDimensions=function(){this._terminal.charMeasure.width&&this._terminal.charMeasure.height&&(this.dimensions.scaledCharWidth=Math.floor(this._terminal.charMeasure.width*window.devicePixelRatio),this.dimensions.scaledCharHeight=Math.ceil(this._terminal.charMeasure.height*window.devicePixelRatio),this.dimensions.scaledCellHeight=Math.floor(this.dimensions.scaledCharHeight*this._terminal.options.lineHeight),this.dimensions.scaledCharTop=1===this._terminal.options.lineHeight?0:Math.round((this.dimensions.scaledCellHeight-this.dimensions.scaledCharHeight)/2),this.dimensions.scaledCellWidth=this.dimensions.scaledCharWidth+Math.round(this._terminal.options.letterSpacing),this.dimensions.scaledCharLeft=Math.floor(this._terminal.options.letterSpacing/2),this.dimensions.scaledCanvasHeight=this._terminal.rows*this.dimensions.scaledCellHeight,this.dimensions.scaledCanvasWidth=this._terminal.cols*this.dimensions.scaledCellWidth,this.dimensions.canvasHeight=Math.round(this.dimensions.scaledCanvasHeight/window.devicePixelRatio),this.dimensions.canvasWidth=Math.round(this.dimensions.scaledCanvasWidth/window.devicePixelRatio),this.dimensions.actualCellHeight=this.dimensions.canvasHeight/this._terminal.rows,this.dimensions.actualCellWidth=this.dimensions.canvasWidth/this._terminal.cols)},t.prototype.registerCharacterJoiner=function(e){return this._characterJoinerRegistry.registerCharacterJoiner(e)},t.prototype.deregisterCharacterJoiner=function(e){return this._characterJoinerRegistry.deregisterCharacterJoiner(e)},t}(c.EventEmitter);t.Renderer=d},5731:function(e,t,i){"use strict";var r,n=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(e,t)},function(e,t){function i(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)});Object.defineProperty(t,"__esModule",{value:!0});var s=i(922),o=i(1145),a=i(5732),l=function(e){function t(t,i,r,n,s){var o=e.call(this,t,"text",i,s,r)||this;return o._characterOverlapCache={},o._state=new a.GridCache,o._characterJoinerRegistry=n,o}return n(t,e),t.prototype.resize=function(t,i){e.prototype.resize.call(this,t,i);var r=this._getFont(t,!1,!1);this._characterWidth===i.scaledCharWidth&&this._characterFont===r||(this._characterWidth=i.scaledCharWidth,this._characterFont=r,this._characterOverlapCache={}),this._state.clear(),this._state.resize(t.cols,t.rows)},t.prototype.reset=function(e){this._state.clear(),this.clearAll()},t.prototype._forEachCell=function(e,t,i,r,n){for(var a=t;a<=i;a++)for(var l=a+e.buffer.ydisp,h=e.buffer.lines.get(l),c=r?r.getJoinedCharacters(l):[],u=0;u0&&u===c[0][0]){y=!0;var g=c.shift();d=e.buffer.translateBufferLineToString(l,!0,g[0],g[1]),m=g[1]-g[0],f=1/0,C=g[1]-1}!y&&this._isOverlapping(_)&&C>18,b=511&p,w=p>>9&511;if(8&v){var S=b;b=w,256===(w=S)&&(w=o.INVERTED_DEFAULT_COLOR),257===b&&(b=o.INVERTED_DEFAULT_COLOR)}n(f,d,m,u,a,w,b,v),u=C}}},t.prototype._drawBackground=function(e,t,i){var r=this,n=this._ctx,s=e.cols,a=0,l=0,h=null;n.save(),this._forEachCell(e,t,i,null,(function(e,t,i,c,u,_,f,d){var p=null;f===o.INVERTED_DEFAULT_COLOR?p=r._colors.foreground.css:f<256&&(p=r._colors.ansi[f].css),null===h&&(a=c,l=u),u!==l?(n.fillStyle=h,r.fillCells(a,l,s-a,1),a=c,l=u):h!==p&&(n.fillStyle=h,r.fillCells(a,l,c-a,1),a=c,l=u),h=p})),null!==h&&(n.fillStyle=h,this.fillCells(a,l,s-a,1)),n.restore()},t.prototype._drawForeground=function(e,t,i){var r=this;this._forEachCell(e,t,i,this._characterJoinerRegistry,(function(t,i,n,s,a,l,h,c){16&c||(2&c&&(r._ctx.save(),l===o.INVERTED_DEFAULT_COLOR?r._ctx.fillStyle=r._colors.background.css:r._ctx.fillStyle=l<256?r._colors.ansi[l].css:r._colors.foreground.css,r.fillBottomLineAtCells(s,a,n),r._ctx.restore()),r.drawChars(e,i,t,n,s,a,l,h,!!(1&c),!!(32&c),!!(64&c)))}))},t.prototype.onGridChanged=function(e,t,i){0!==this._state.cache.length&&(this._charAtlas&&this._charAtlas.beginFrame(),this.clearCells(0,t,e.cols,i-t+1),this._drawBackground(e,t,i),this._drawForeground(e,t,i))},t.prototype.onOptionsChanged=function(e){this.setTransparency(e,e.options.allowTransparency)},t.prototype._isOverlapping=function(e){if(1!==e[s.CHAR_DATA_WIDTH_INDEX])return!1;if(e[s.CHAR_DATA_CODE_INDEX]<256)return!1;var t=e[s.CHAR_DATA_CHAR_INDEX];if(this._characterOverlapCache.hasOwnProperty(t))return this._characterOverlapCache[t];this._ctx.save(),this._ctx.font=this._characterFont;var i=Math.floor(this._ctx.measureText(t).width)>this._characterWidth;return this._ctx.restore(),this._characterOverlapCache[t]=i,i},t}(i(1254).BaseRenderLayer);t.TextRenderLayer=l},5732:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(){this.cache=[]}return e.prototype.resize=function(e,t){for(var i=0;i=this.capacity)i=this._head,this._unlinkNode(i),delete this._map[i.key],i.key=e,i.value=t,this._map[e]=i;else{var r=this._nodePool;r.length>0?((i=r.pop()).key=e,i.value=t):i={prev:null,next:null,key:e,value:t},this._map[e]=i,this.size++}this._appendNode(i)},e}();t.default=r},5736:function(e,t,i){"use strict";var r,n=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(e,t)},function(e,t){function i(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)});Object.defineProperty(t,"__esModule",{value:!0});var s=function(e){function t(t,i){return e.call(this)||this}return n(t,e),t.prototype.draw=function(e,t,i,r){return!1},t}(i(1463).default);t.default=s},5737:function(e,t,i){"use strict";var r,n=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(e,t)},function(e,t){function i(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)});Object.defineProperty(t,"__esModule",{value:!0});var s=i(1145),o=i(2010),a=i(2009),l=function(e){function t(t,i){var r=e.call(this)||this;return r._document=t,r._config=i,r._canvasFactory=function(e,t){var i=r._document.createElement("canvas");return i.width=e,i.height=t,i},r}return n(t,e),t.prototype._doWarmUp=function(){var e=this,t=a.generateStaticCharAtlasTexture(window,this._canvasFactory,this._config);t instanceof HTMLCanvasElement?this._texture=t:t.then((function(t){e._texture=t}))},t.prototype._isCached=function(e,t){var i=e.code<256,r=e.fg<16,n=e.fg>=256,s=e.bg>=256;return i&&(r||n)&&s&&!e.italic},t.prototype.draw=function(e,t,i,r){if(null===this._texture||void 0===this._texture)return!1;var n=0;if(t.fg<256?n=2+t.fg+(t.bold?16:0):t.bold&&(n=1),!this._isCached(t,n))return!1;e.save();var a=this._config.scaledCharWidth+o.CHAR_ATLAS_CELL_SPACING,l=this._config.scaledCharHeight+o.CHAR_ATLAS_CELL_SPACING;return t.dim&&(e.globalAlpha=s.DIM_OPACITY),e.drawImage(this._texture,t.code*a,n*l,a,this._config.scaledCharHeight,i,r,a,this._config.scaledCharHeight),e.restore(),!0},t}(i(1463).default);t.default=l},5738:function(e,t,i){"use strict";var r,n=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(e,t)},function(e,t){function i(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)});Object.defineProperty(t,"__esModule",{value:!0});var s=function(e){function t(t,i,r){var n=e.call(this,t,"selection",i,!0,r)||this;return n._clearState(),n}return n(t,e),t.prototype._clearState=function(){this._state={start:null,end:null,columnSelectMode:null,ydisp:null}},t.prototype.resize=function(t,i){e.prototype.resize.call(this,t,i),this._clearState()},t.prototype.reset=function(e){this._state.start&&this._state.end&&(this._clearState(),this.clearAll())},t.prototype.onSelectionChanged=function(e,t,i,r){if(this._didStateChange(t,i,r,e.buffer.ydisp)&&(this.clearAll(),t&&i)){var n=t[1]-e.buffer.ydisp,s=i[1]-e.buffer.ydisp,o=Math.max(n,0),a=Math.min(s,e.rows-1);if(!(o>=e.rows||a<0)){if(this._ctx.fillStyle=this._colors.selection.css,r){var l=t[0],h=i[0]-l,c=a-o+1;this.fillCells(l,o,h,c)}else{l=n===o?t[0]:0;var u=o===a?i[0]:e.cols;this.fillCells(l,o,u-l,1);var _=Math.max(a-o-1,0);if(this.fillCells(0,o+1,e.cols,_),o!==a){var f=s===a?i[0]:e.cols;this.fillCells(0,a,f,1)}}this._state.start=[t[0],t[1]],this._state.end=[i[0],i[1]],this._state.columnSelectMode=r,this._state.ydisp=e.buffer.ydisp}}},t.prototype._didStateChange=function(e,t,i,r){return!this._areCoordinatesEqual(e,this._state.start)||!this._areCoordinatesEqual(t,this._state.end)||i!==this._state.columnSelectMode||r!==this._state.ydisp},t.prototype._areCoordinatesEqual=function(e,t){return!(!e||!t)&&(e[0]===t[0]&&e[1]===t[1])},t}(i(1254).BaseRenderLayer);t.SelectionRenderLayer=s},5739:function(e,t,i){"use strict";var r,n=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(e,t)},function(e,t){function i(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)});Object.defineProperty(t,"__esModule",{value:!0});var s=i(922),o=i(1254),a=function(e){function t(t,i,r){var n=e.call(this,t,"cursor",i,!0,r)||this;return n._state={x:null,y:null,isFocused:null,style:null,width:null},n._cursorRenderers={bar:n._renderBarCursor.bind(n),block:n._renderBlockCursor.bind(n),underline:n._renderUnderlineCursor.bind(n)},n}return n(t,e),t.prototype.resize=function(t,i){e.prototype.resize.call(this,t,i),this._state={x:null,y:null,isFocused:null,style:null,width:null}},t.prototype.reset=function(e){this._clearCursor(),this._cursorBlinkStateManager&&(this._cursorBlinkStateManager.dispose(),this._cursorBlinkStateManager=null,this.onOptionsChanged(e))},t.prototype.onBlur=function(e){this._cursorBlinkStateManager&&this._cursorBlinkStateManager.pause(),e.refresh(e.buffer.y,e.buffer.y)},t.prototype.onFocus=function(e){this._cursorBlinkStateManager?this._cursorBlinkStateManager.resume(e):e.refresh(e.buffer.y,e.buffer.y)},t.prototype.onOptionsChanged=function(e){var t=this;e.options.cursorBlink?this._cursorBlinkStateManager||(this._cursorBlinkStateManager=new l(e,(function(){t._render(e,!0)}))):(this._cursorBlinkStateManager&&(this._cursorBlinkStateManager.dispose(),this._cursorBlinkStateManager=null),e.refresh(e.buffer.y,e.buffer.y))},t.prototype.onCursorMove=function(e){this._cursorBlinkStateManager&&this._cursorBlinkStateManager.restartBlinkAnimation(e)},t.prototype.onGridChanged=function(e,t,i){!this._cursorBlinkStateManager||this._cursorBlinkStateManager.isPaused?this._render(e,!1):this._cursorBlinkStateManager.restartBlinkAnimation(e)},t.prototype._render=function(e,t){if(e.cursorState&&!e.cursorHidden){var i=e.buffer.ybase+e.buffer.y,r=i-e.buffer.ydisp;if(r<0||r>=e.rows)this._clearCursor();else{var n=e.buffer.lines.get(i).get(e.buffer.x);if(n){if(!e.isFocused)return this._clearCursor(),this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._renderBlurCursor(e,e.buffer.x,r,n),this._ctx.restore(),this._state.x=e.buffer.x,this._state.y=r,this._state.isFocused=!1,this._state.style=e.options.cursorStyle,void(this._state.width=n[s.CHAR_DATA_WIDTH_INDEX]);if(!this._cursorBlinkStateManager||this._cursorBlinkStateManager.isCursorVisible){if(this._state){if(this._state.x===e.buffer.x&&this._state.y===r&&this._state.isFocused===e.isFocused&&this._state.style===e.options.cursorStyle&&this._state.width===n[s.CHAR_DATA_WIDTH_INDEX])return;this._clearCursor()}this._ctx.save(),this._cursorRenderers[e.options.cursorStyle||"block"](e,e.buffer.x,r,n),this._ctx.restore(),this._state.x=e.buffer.x,this._state.y=r,this._state.isFocused=!1,this._state.style=e.options.cursorStyle,this._state.width=n[s.CHAR_DATA_WIDTH_INDEX]}else this._clearCursor()}}}else this._clearCursor()},t.prototype._clearCursor=function(){this._state&&(this.clearCells(this._state.x,this._state.y,this._state.width,1),this._state={x:null,y:null,isFocused:null,style:null,width:null})},t.prototype._renderBarCursor=function(e,t,i,r){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this.fillLeftLineAtCell(t,i),this._ctx.restore()},t.prototype._renderBlockCursor=function(e,t,i,r){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this.fillCells(t,i,r[s.CHAR_DATA_WIDTH_INDEX],1),this._ctx.fillStyle=this._colors.cursorAccent.css,this.fillCharTrueColor(e,r,t,i),this._ctx.restore()},t.prototype._renderUnderlineCursor=function(e,t,i,r){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this.fillBottomLineAtCells(t,i),this._ctx.restore()},t.prototype._renderBlurCursor=function(e,t,i,r){this._ctx.save(),this._ctx.strokeStyle=this._colors.cursor.css,this.strokeRectAtCell(t,i,r[s.CHAR_DATA_WIDTH_INDEX],1),this._ctx.restore()},t}(o.BaseRenderLayer);t.CursorRenderLayer=a;var l=function(){function e(e,t){this._renderCallback=t,this.isCursorVisible=!0,e.isFocused&&this._restartInterval()}return Object.defineProperty(e.prototype,"isPaused",{get:function(){return!(this._blinkStartTimeout||this._blinkInterval)},enumerable:!0,configurable:!0}),e.prototype.dispose=function(){this._blinkInterval&&(window.clearInterval(this._blinkInterval),this._blinkInterval=null),this._blinkStartTimeout&&(window.clearTimeout(this._blinkStartTimeout),this._blinkStartTimeout=null),this._animationFrame&&(window.cancelAnimationFrame(this._animationFrame),this._animationFrame=null)},e.prototype.restartBlinkAnimation=function(e){var t=this;this.isPaused||(this._animationTimeRestarted=Date.now(),this.isCursorVisible=!0,this._animationFrame||(this._animationFrame=window.requestAnimationFrame((function(){t._renderCallback(),t._animationFrame=null}))))},e.prototype._restartInterval=function(e){var t=this;void 0===e&&(e=600),this._blinkInterval&&window.clearInterval(this._blinkInterval),this._blinkStartTimeout=setTimeout((function(){if(t._animationTimeRestarted){var e=600-(Date.now()-t._animationTimeRestarted);if(t._animationTimeRestarted=null,e>0)return void t._restartInterval(e)}t.isCursorVisible=!1,t._animationFrame=window.requestAnimationFrame((function(){t._renderCallback(),t._animationFrame=null})),t._blinkInterval=setInterval((function(){if(t._animationTimeRestarted){var e=600-(Date.now()-t._animationTimeRestarted);return t._animationTimeRestarted=null,void t._restartInterval(e)}t.isCursorVisible=!t.isCursorVisible,t._animationFrame=window.requestAnimationFrame((function(){t._renderCallback(),t._animationFrame=null}))}),600)}),e)},e.prototype.pause=function(){this.isCursorVisible=!0,this._blinkInterval&&(window.clearInterval(this._blinkInterval),this._blinkInterval=null),this._blinkStartTimeout&&(window.clearTimeout(this._blinkStartTimeout),this._blinkStartTimeout=null),this._animationFrame&&(window.cancelAnimationFrame(this._animationFrame),this._animationFrame=null)},e.prototype.resume=function(e){this._animationTimeRestarted=null,this._restartInterval(),this.restartBlinkAnimation(e)},e}()},5740:function(e,t,i){"use strict";var r,n=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(e,t)},function(e,t){function i(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)});Object.defineProperty(t,"__esModule",{value:!0});var s=i(1254),o=i(1145),a=function(e){function t(t,i,r,n){var s=e.call(this,t,"link",i,!0,r)||this;return s._state=null,n.linkifier.on("linkhover",(function(e){return s._onLinkHover(e)})),n.linkifier.on("linkleave",(function(e){return s._onLinkLeave(e)})),s}return n(t,e),t.prototype.resize=function(t,i){e.prototype.resize.call(this,t,i),this._state=null},t.prototype.reset=function(e){this._clearCurrentLink()},t.prototype._clearCurrentLink=function(){if(this._state){this.clearCells(this._state.x1,this._state.y1,this._state.cols-this._state.x1,1);var e=this._state.y2-this._state.y1-1;e>0&&this.clearCells(0,this._state.y1+1,this._state.cols,e),this.clearCells(0,this._state.y2,this._state.x2,1),this._state=null}},t.prototype._onLinkHover=function(e){if(e.fg===o.INVERTED_DEFAULT_COLOR?this._ctx.fillStyle=this._colors.background.css:e.fg<256?this._ctx.fillStyle=this._colors.ansi[e.fg].css:this._ctx.fillStyle=this._colors.foreground.css,e.y1===e.y2)this.fillBottomLineAtCells(e.x1,e.y1,e.x2-e.x1);else{this.fillBottomLineAtCells(e.x1,e.y1,e.cols-e.x1);for(var t=e.y1+1;t>9,h=0;h>9;if(0!==_){if(f!==l){if(h-s>1)for(var d=this._getJoinedRanges(n,a,o,t,s),p=0;p1)for(d=this._getJoinedRanges(n,a,o,t,s),p=0;p=e.lines.length)){for(var r=e.ydisp+Math.min(this._rowsToLinkify.end,this._terminal.rows)+1,n=Math.ceil(t.OVERSCAN_CHAR_LIMIT/this._terminal.cols),s=this._terminal.buffer.iterator(!1,i,r,n,n);s.hasNext();)for(var o=s.next(),a=0;a=0;t--)if(e.priority<=this._linkMatchers[t].priority)return void this._linkMatchers.splice(t+1,0,e);this._linkMatchers.splice(0,0,e)}else this._linkMatchers.push(e)},t.prototype.deregisterLinkMatcher=function(e){for(var t=0;t>9&511}i.validationCallback?i.validationCallback(l,(function(e){n._rowsTimeoutId||e&&n._addLink(u[1],u[0]-n._terminal.buffer.ydisp,l,i,c)})):h._addLink(u[1],u[0]-h._terminal.buffer.ydisp,l,i,c)},h=this;null!==(r=s.exec(t));){if("break"===l())break}},t.prototype._addLink=function(e,t,i,r,n){var o=this,a=l.getStringCellWidth(i),h=e%this._terminal.cols,c=t+Math.floor(e/this._terminal.cols),u=(h+a)%this._terminal.cols,_=c+Math.floor((h+a)/this._terminal.cols);0===u&&(u=this._terminal.cols,_--),this._mouseZoneManager.add(new s.MouseZone(h+1,c+1,u+1,_+1,(function(e){if(r.handler)return r.handler(e,i);window.open(i,"_blank")}),(function(e){o.emit("linkhover",o._createLinkHoverEvent(h,c,u,_,n)),o._terminal.element.classList.add("xterm-cursor-pointer")}),(function(e){o.emit("linktooltip",o._createLinkHoverEvent(h,c,u,_,n)),r.hoverTooltipCallback&&r.hoverTooltipCallback(e,i)}),(function(){o.emit("linkleave",o._createLinkHoverEvent(h,c,u,_,n)),o._terminal.element.classList.remove("xterm-cursor-pointer"),r.hoverLeaveCallback&&r.hoverLeaveCallback()}),(function(e){return!r.willLinkActivate||r.willLinkActivate(e,i)})))},t.prototype._createLinkHoverEvent=function(e,t,i,r,n){return{x1:e,y1:t,x2:i,y2:r,cols:this._terminal.cols,fg:n}},t.TIME_BEFORE_LINKIFY=200,t.OVERSCAN_CHAR_LIMIT=2e3,t}(o.EventEmitter);t.Linkifier=h},5743:function(e,t,i){"use strict";var r,n=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(e,t)},function(e,t){function i(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)});Object.defineProperty(t,"__esModule",{value:!0});var s=i(2013),o=i(1146),a=i(964),l=i(5744),h=i(922),c=i(5745),u=String.fromCharCode(160),_=new RegExp(u,"g"),f=function(e){function t(t,i){var r=e.call(this)||this;return r._terminal=t,r._charMeasure=i,r._enabled=!0,r._initListeners(),r.enable(),r._model=new l.SelectionModel(t),r._activeSelectionMode=0,r}return n(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this),this._removeMouseDownListeners()},Object.defineProperty(t.prototype,"_buffer",{get:function(){return this._terminal.buffers.active},enumerable:!0,configurable:!0}),t.prototype._initListeners=function(){var e=this;this._mouseMoveListener=function(t){return e._onMouseMove(t)},this._mouseUpListener=function(t){return e._onMouseUp(t)},this._trimListener=function(t){return e._onTrim(t)},this.initBuffersListeners()},t.prototype.initBuffersListeners=function(){var e=this;this._terminal.buffer.lines.on("trim",this._trimListener),this._terminal.buffers.on("activate",(function(t){return e._onBufferActivate(t)}))},t.prototype.disable=function(){this.clearSelection(),this._enabled=!1},t.prototype.enable=function(){this._enabled=!0},Object.defineProperty(t.prototype,"selectionStart",{get:function(){return this._model.finalSelectionStart},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"selectionEnd",{get:function(){return this._model.finalSelectionEnd},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasSelection",{get:function(){var e=this._model.finalSelectionStart,t=this._model.finalSelectionEnd;return!(!e||!t)&&(e[0]!==t[0]||e[1]!==t[1])},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"selectionText",{get:function(){var e=this._model.finalSelectionStart,t=this._model.finalSelectionEnd;if(!e||!t)return"";var i=[];if(3===this._activeSelectionMode){if(e[0]===t[0])return"";for(var r=e[1];r<=t[1];r++){var n=this._buffer.translateBufferLineToString(r,!0,e[0],t[0]);i.push(n)}}else{var s=e[1]===t[1]?t[0]:null;i.push(this._buffer.translateBufferLineToString(e[1],!0,e[0],s));for(r=e[1]+1;r<=t[1]-1;r++){var a=this._buffer.lines.get(r);n=this._buffer.translateBufferLineToString(r,!0);a.isWrapped?i[i.length-1]+=n:i.push(n)}if(e[1]!==t[1]){a=this._buffer.lines.get(t[1]),n=this._buffer.translateBufferLineToString(t[1],!0,0,t[0]);a.isWrapped?i[i.length-1]+=n:i.push(n)}}return i.map((function(e){return e.replace(_," ")})).join(o.isMSWindows?"\r\n":"\n")},enumerable:!0,configurable:!0}),t.prototype.clearSelection=function(){this._model.clearSelection(),this._removeMouseDownListeners(),this.refresh()},t.prototype.refresh=function(e){var t=this;(this._refreshAnimationFrame||(this._refreshAnimationFrame=window.requestAnimationFrame((function(){return t._refresh()}))),o.isLinux&&e)&&(this.selectionText.length&&this.emit("newselection",this.selectionText))},t.prototype._refresh=function(){this._refreshAnimationFrame=null,this.emit("refresh",{start:this._model.finalSelectionStart,end:this._model.finalSelectionEnd,columnSelectMode:3===this._activeSelectionMode})},t.prototype.isClickInSelection=function(e){var t=this._getMouseBufferCoords(e),i=this._model.finalSelectionStart,r=this._model.finalSelectionEnd;return!(!i||!r)&&(t[1]>i[1]&&t[1]i[0]&&t[0]=0&&t<=i?0:(t>i&&(t-=i),t=Math.min(Math.max(t,-50),50),(t/=50)/Math.abs(t)+Math.round(14*t))},t.prototype.shouldForceSelection=function(e){return o.isMac?e.altKey&&this._terminal.options.macOptionClickForcesSelection:e.shiftKey},t.prototype.onMouseDown=function(e){if(this._mouseDownTimeStamp=e.timeStamp,(2!==e.button||!this.hasSelection)&&0===e.button){if(!this._enabled){if(!this.shouldForceSelection(e))return;e.stopPropagation()}e.preventDefault(),this._dragScrollAmount=0,this._enabled&&e.shiftKey?this._onIncrementalClick(e):1===e.detail?this._onSingleClick(e):2===e.detail?this._onDoubleClick(e):3===e.detail&&this._onTripleClick(e),this._addMouseDownListeners(),this.refresh(!0)}},t.prototype._addMouseDownListeners=function(){var e=this;this._terminal.element.ownerDocument.addEventListener("mousemove",this._mouseMoveListener),this._terminal.element.ownerDocument.addEventListener("mouseup",this._mouseUpListener),this._dragScrollIntervalTimer=setInterval((function(){return e._dragScroll()}),50)},t.prototype._removeMouseDownListeners=function(){this._terminal.element.ownerDocument&&(this._terminal.element.ownerDocument.removeEventListener("mousemove",this._mouseMoveListener),this._terminal.element.ownerDocument.removeEventListener("mouseup",this._mouseUpListener)),clearInterval(this._dragScrollIntervalTimer),this._dragScrollIntervalTimer=null},t.prototype._onIncrementalClick=function(e){this._model.selectionStart&&(this._model.selectionEnd=this._getMouseBufferCoords(e))},t.prototype._onSingleClick=function(e){if(this._model.selectionStartLength=0,this._model.isSelectAllActive=!1,this._activeSelectionMode=this.shouldColumnSelect(e)?3:0,this._model.selectionStart=this._getMouseBufferCoords(e),this._model.selectionStart){this._model.selectionEnd=null;var t=this._buffer.lines.get(this._model.selectionStart[1]);if(t)if(!(t.length>=this._model.selectionStart[0]))0===t.get(this._model.selectionStart[0])[h.CHAR_DATA_WIDTH_INDEX]&&this._model.selectionStart[0]++}},t.prototype._onDoubleClick=function(e){var t=this._getMouseBufferCoords(e);t&&(this._activeSelectionMode=1,this._selectWordAt(t,!0))},t.prototype._onTripleClick=function(e){var t=this._getMouseBufferCoords(e);t&&(this._activeSelectionMode=2,this._selectLineAt(t[1]))},t.prototype.shouldColumnSelect=function(e){return e.altKey&&!(o.isMac&&this._terminal.options.macOptionClickForcesSelection)},t.prototype._onMouseMove=function(e){e.stopImmediatePropagation();var t=this._model.selectionEnd?[this._model.selectionEnd[0],this._model.selectionEnd[1]]:null;if(this._model.selectionEnd=this._getMouseBufferCoords(e),this._model.selectionEnd){if(2===this._activeSelectionMode?this._model.selectionEnd[1]0?this._model.selectionEnd[0]=this._terminal.cols:this._dragScrollAmount<0&&(this._model.selectionEnd[0]=0)),this._model.selectionEnd[1]0?(3!==this._activeSelectionMode&&(this._model.selectionEnd[0]=this._terminal.cols),this._model.selectionEnd[1]=Math.min(this._terminal.buffer.ydisp+this._terminal.rows,this._terminal.buffer.lines.length-1)):(3!==this._activeSelectionMode&&(this._model.selectionEnd[0]=0),this._model.selectionEnd[1]=this._terminal.buffer.ydisp),this.refresh())},t.prototype._onMouseUp=function(e){var t=e.timeStamp-this._mouseDownTimeStamp;this._removeMouseDownListeners(),this.selectionText.length<=1&&t<500?new c.AltClickHandler(e,this._terminal).move():this.hasSelection&&this._terminal.emit("selection")},t.prototype._onBufferActivate=function(e){this.clearSelection(),e.inactiveBuffer.lines.off("trim",this._trimListener),e.activeBuffer.lines.on("trim",this._trimListener)},t.prototype._convertViewportColToCharacterIndex=function(e,t){for(var i=t[0],r=0;t[0]>=r;r++){var n=e.get(r);0===n[h.CHAR_DATA_WIDTH_INDEX]?i--:n[h.CHAR_DATA_CHAR_INDEX].length>1&&t[0]!==r&&(i+=n[h.CHAR_DATA_CHAR_INDEX].length-1)}return i},t.prototype.setSelection=function(e,t,i){this._model.clearSelection(),this._removeMouseDownListeners(),this._model.selectionStart=[e,t],this._model.selectionStartLength=i,this.refresh()},t.prototype._getWordAt=function(e,t,i,r){if(void 0===i&&(i=!0),void 0===r&&(r=!0),e[0]>=this._terminal.cols)return null;var n=this._buffer.lines.get(e[1]);if(!n)return null;var s=this._buffer.translateBufferLineToString(e[1],!1),o=this._convertViewportColToCharacterIndex(n,e),a=o,l=e[0]-o,c=0,u=0,_=0,f=0;if(" "===s.charAt(o)){for(;o>0&&" "===s.charAt(o-1);)o--;for(;a1&&(f+=n.get(p)[h.CHAR_DATA_CHAR_INDEX].length-1,a+=n.get(p)[h.CHAR_DATA_CHAR_INDEX].length-1);d>0&&o>0&&!this._isCharWordSeparator(n.get(d-1));){0===(m=n.get(d-1))[h.CHAR_DATA_WIDTH_INDEX]?(c++,d--):m[h.CHAR_DATA_CHAR_INDEX].length>1&&(_+=m[h.CHAR_DATA_CHAR_INDEX].length-1,o-=m[h.CHAR_DATA_CHAR_INDEX].length-1),o--,d--}for(;p1&&(f+=m[h.CHAR_DATA_CHAR_INDEX].length-1,a+=m[h.CHAR_DATA_CHAR_INDEX].length-1),a++,p++}}a++;var y=o+l-c+_,C=Math.min(this._terminal.cols,a-o+c+u-_-f);if(!t&&""===s.slice(o,a).trim())return null;if(i&&0===y&&32!==n.get(0)[h.CHAR_DATA_CODE_INDEX]){var g=this._buffer.lines.get(e[1]-1);if(g&&n.isWrapped&&32!==g.get(this._terminal.cols-1)[h.CHAR_DATA_CODE_INDEX]){var v=this._getWordAt([this._terminal.cols-1,e[1]-1],!1,!0,!1);if(v){var b=this._terminal.cols-v.start;y-=b,C+=b}}}if(r&&y+C===this._terminal.cols&&32!==n.get(this._terminal.cols-1)[h.CHAR_DATA_CODE_INDEX]){var w=this._buffer.lines.get(e[1]+1);if(w&&w.isWrapped&&32!==w.get(0)[h.CHAR_DATA_CODE_INDEX]){var S=this._getWordAt([0,e[1]+1],!1,!1,!0);S&&(C+=S.length)}}return{start:y,length:C}},t.prototype._selectWordAt=function(e,t){var i=this._getWordAt(e,t);if(i){for(;i.start<0;)i.start+=this._terminal.cols,e[1]--;this._model.selectionStart=[i.start,e[1]],this._model.selectionStartLength=i.length}},t.prototype._selectToWordAt=function(e){var t=this._getWordAt(e,!0);if(t){for(var i=e[1];t.start<0;)t.start+=this._terminal.cols,i--;if(!this._model.areSelectionValuesReversed())for(;t.start+t.length>this._terminal.cols;)t.length-=this._terminal.cols,i++;this._model.selectionEnd=[this._model.areSelectionValuesReversed()?t.start:t.start+t.length,i]}},t.prototype._isCharWordSeparator=function(e){return 0!==e[h.CHAR_DATA_WIDTH_INDEX]&&" ()[]{}'\"".indexOf(e[h.CHAR_DATA_CHAR_INDEX])>=0},t.prototype._selectLineAt=function(e){var t=this._buffer.getWrappedRangeForLine(e);this._model.selectionStart=[0,t.first],this._model.selectionEnd=[this._terminal.cols,t.last],this._model.selectionStartLength=0},t}(a.EventEmitter);t.SelectionManager=f},5744:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e){this._terminal=e,this.clearSelection()}return e.prototype.clearSelection=function(){this.selectionStart=null,this.selectionEnd=null,this.isSelectAllActive=!1,this.selectionStartLength=0},Object.defineProperty(e.prototype,"finalSelectionStart",{get:function(){return this.isSelectAllActive?[0,0]:this.selectionEnd&&this.selectionStart&&this.areSelectionValuesReversed()?this.selectionEnd:this.selectionStart},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"finalSelectionEnd",{get:function(){if(this.isSelectAllActive)return[this._terminal.cols,this._terminal.buffer.ybase+this._terminal.rows-1];if(!this.selectionStart)return null;if(!this.selectionEnd||this.areSelectionValuesReversed()){var e=this.selectionStart[0]+this.selectionStartLength;return e>this._terminal.cols?[e%this._terminal.cols,this.selectionStart[1]+Math.floor(e/this._terminal.cols)]:[e,this.selectionStart[1]]}return this.selectionStartLength&&this.selectionEnd[1]===this.selectionStart[1]?[Math.max(this.selectionStart[0]+this.selectionStartLength,this.selectionEnd[0]),this.selectionEnd[1]]:this.selectionEnd},enumerable:!0,configurable:!0}),e.prototype.areSelectionValuesReversed=function(){var e=this.selectionStart,t=this.selectionEnd;return!(!e||!t)&&(e[1]>t[1]||e[1]===t[1]&&e[0]>t[0])},e.prototype.onTrim=function(e){return this.selectionStart&&(this.selectionStart[1]-=e),this.selectionEnd&&(this.selectionEnd[1]-=e),this.selectionEnd&&this.selectionEnd[1]<0?(this.clearSelection(),!0):(this.selectionStart&&this.selectionStart[1]<0&&(this.selectionStart[1]=0),!1)},e}();t.SelectionModel=r},5745:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(1253),n=function(){function e(e,t){var i;this._mouseEvent=e,this._terminal=t,this._lines=this._terminal.buffer.lines,this._startCol=this._terminal.buffer.x,this._startRow=this._terminal.buffer.y;var r=this._terminal.mouseHelper.getCoords(this._mouseEvent,this._terminal.element,this._terminal.charMeasure,this._terminal.options.lineHeight,this._terminal.cols,this._terminal.rows,!1);r&&(i=r.map((function(e){return e-1})),this._endCol=i[0],this._endRow=i[1])}return e.prototype.move=function(){this._mouseEvent.altKey&&void 0!==this._endCol&&void 0!==this._endRow&&this._terminal.handler(this._arrowSequences())},e.prototype._arrowSequences=function(){return this._terminal.buffer.hasScrollback?this._moveHorizontallyOnly():this._resetStartingRow()+this._moveToRequestedRow()+this._moveToRequestedCol()},e.prototype._resetStartingRow=function(){return 0===this._moveToRequestedRow().length?"":s(this._bufferLine(this._startCol,this._startRow,this._startCol,this._startRow-this._wrappedRowsForRow(this._startRow),!1).length,this._sequence("D"))},e.prototype._moveToRequestedRow=function(){var e=this._startRow-this._wrappedRowsForRow(this._startRow),t=this._endRow-this._wrappedRowsForRow(this._endRow);return s(Math.abs(e-t)-this._wrappedRowsCount(),this._sequence(this._verticalDirection()))},e.prototype._moveToRequestedCol=function(){var e;e=this._moveToRequestedRow().length>0?this._endRow-this._wrappedRowsForRow(this._endRow):this._startRow;var t=this._endRow,i=this._horizontalDirection();return s(this._bufferLine(this._startCol,e,this._endCol,t,"C"===i).length,this._sequence(i))},e.prototype._moveHorizontallyOnly=function(){var e=this._horizontalDirection();return s(Math.abs(this._startCol-this._endCol),this._sequence(e))},e.prototype._wrappedRowsCount=function(){for(var e=0,t=this._startRow-this._wrappedRowsForRow(this._startRow),i=this._endRow-this._wrappedRowsForRow(this._endRow),r=0;r=0&&e0?this._endRow-this._wrappedRowsForRow(this._endRow):this._startRow,this._startCol=this._endCol&&ethis._endRow?"A":"B"},e.prototype._bufferLine=function(e,t,i,r,n){for(var s=e,o=t,a="";s!==i||o!==r;)s+=n?1:-1,n&&s>this._terminal.cols-1?(a+=this._terminal.buffer.translateBufferLineToString(o,!1,e,s),s=0,e=0,o++):!n&&s<0&&(a+=this._terminal.buffer.translateBufferLineToString(o,!1,0,e+1),e=s=this._terminal.cols-1,o--);return a+this._terminal.buffer.translateBufferLineToString(o,!1,e,s)},e.prototype._sequence=function(e){var t=this._terminal.applicationCursor?"O":"[";return r.C0.ESC+t+e},e}();function s(e,t){e=Math.floor(e);for(var i="",r=0;re;)this._rowContainer.removeChild(this._rowElements.pop());this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions()},t.prototype._createAccessibilityTreeNode=function(){var e=document.createElement("div");return e.setAttribute("role","listitem"),e.tabIndex=-1,this._refreshRowDimensions(e),e},t.prototype._onTab=function(e){for(var t=0;t0)this._charsToConsume.shift()!==e&&this._announceCharacter(e);else this._announceCharacter(e);"\n"===e&&(this._liveRegionLineCount++,21===this._liveRegionLineCount&&(this._liveRegion.textContent+=s.tooMuchOutput)),o.isMac&&this._liveRegion.textContent&&this._liveRegion.textContent.length>0&&!this._liveRegion.parentNode&&setTimeout((function(){t._accessibilityTreeRoot.appendChild(t._liveRegion)}),0)}},t.prototype._clearLiveRegion=function(){this._liveRegion.textContent="",this._liveRegionLineCount=0,o.isMac&&this._liveRegion.parentNode&&this._accessibilityTreeRoot.removeChild(this._liveRegion)},t.prototype._onKey=function(e){this._clearLiveRegion(),this._charsToConsume.push(e)},t.prototype._refreshRows=function(e,t){this._renderRowsDebouncer.refresh(e,t)},t.prototype._renderRows=function(e,t){for(var i=this._terminal.buffer,r=i.lines.length.toString(),n=e;n<=t;n++){var o=i.translateBufferLineToString(i.ydisp+n,!0),a=(i.ydisp+n+1).toString(),l=this._rowElements[n];l.textContent=0===o.length?s.blankLine:o,l.setAttribute("aria-posinset",a),l.setAttribute("aria-setsize",r)}},t.prototype._refreshRowsDimensions=function(){if(this._terminal.renderer.dimensions.actualCellHeight){this._rowElements.length!==this._terminal.rows&&this._onResize(this._terminal.rows);for(var e=0;et;)this._rowContainer.removeChild(this._rowElements.pop())},t.prototype.onResize=function(e,t){this._refreshRowElements(e,t),this._updateDimensions()},t.prototype.onCharSizeChanged=function(){this._updateDimensions()},t.prototype.onBlur=function(){this._rowContainer.classList.remove("xterm-focus")},t.prototype.onFocus=function(){this._rowContainer.classList.add("xterm-focus")},t.prototype.onSelectionChanged=function(e,t,i){for(;this._selectionContainer.children.length;)this._selectionContainer.removeChild(this._selectionContainer.children[0]);if(e&&t){var r=e[1]-this._terminal.buffer.ydisp,n=t[1]-this._terminal.buffer.ydisp,s=Math.max(r,0),o=Math.min(n,this._terminal.rows-1);if(!(s>=this._terminal.rows||o<0)){var a=document.createDocumentFragment();if(i)a.appendChild(this._createSelectionElement(s,e[0],t[0],o-s+1));else{var l=r===s?e[0]:0,h=s===o?t[0]:this._terminal.cols;a.appendChild(this._createSelectionElement(s,l,h));var c=o-s-1;if(a.appendChild(this._createSelectionElement(s+1,0,this._terminal.cols,c)),s!==o){var u=n===o?t[0]:this._terminal.cols;a.appendChild(this._createSelectionElement(o,0,u))}}this._selectionContainer.appendChild(a)}}},t.prototype._createSelectionElement=function(e,t,i,r){void 0===r&&(r=1);var n=document.createElement("div");return n.style.height=r*this._terminal.charMeasure.height+"px",n.style.top=e*this._terminal.charMeasure.height+"px",n.style.left=t*this._terminal.charMeasure.width+"px",n.style.width=this._terminal.charMeasure.width*(i-t)+"px",n},t.prototype.onCursorMove=function(){},t.prototype.onOptionsChanged=function(){this._updateDimensions(),this.setTheme(void 0),this._terminal.refresh(0,this._terminal.rows-1)},t.prototype.clear=function(){this._rowElements.forEach((function(e){return e.innerHTML=""}))},t.prototype.refreshRows=function(e,t){this._renderDebouncer.refresh(e,t)},t.prototype._renderRows=function(e,t){for(var i=this._terminal,r=i.buffer.ybase+i.buffer.y,n=this._terminal.buffer.x,s=e;s<=t;s++){var o=this._rowElements[s];o.innerHTML="";var a=s+i.buffer.ydisp,l=i.buffer.lines.get(a),h=i.options.cursorStyle;o.appendChild(this._rowFactory.createRow(l,a===r,h,n,i.charMeasure.width,i.cols))}this._terminal.emit("refresh",{start:e,end:t})},Object.defineProperty(t.prototype,"_terminalSelector",{get:function(){return".xterm-dom-renderer-owner-"+this._terminalClass},enumerable:!0,configurable:!0}),t.prototype.registerCharacterJoiner=function(e){return-1},t.prototype.deregisterCharacterJoiner=function(e){return!1},t.prototype._onLinkHover=function(e){this._setCellUnderline(e.x1,e.x2,e.y1,e.y2,e.cols,!0)},t.prototype._onLinkLeave=function(e){this._setCellUnderline(e.x1,e.x2,e.y1,e.y2,e.cols,!1)},t.prototype._setCellUnderline=function(e,t,i,r,n,s){for(;e!==t||i!==r;){this._rowElements[i].children[e].style.textDecoration=s?"underline":"none",0===(e=(e+1)%n)&&i++}},t}(s.EventEmitter);t.DomRenderer=c},5751:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(922);t.BOLD_CLASS="xterm-bold",t.ITALIC_CLASS="xterm-italic",t.CURSOR_CLASS="xterm-cursor",t.CURSOR_STYLE_BLOCK_CLASS="xterm-cursor-block",t.CURSOR_STYLE_BAR_CLASS="xterm-cursor-bar",t.CURSOR_STYLE_UNDERLINE_CLASS="xterm-cursor-underline";var n=function(){function e(e){this._document=e}return e.prototype.createRow=function(e,i,n,s,o,a){for(var l=this._document.createDocumentFragment(),h=0,c=0;c=a)){var u=e.get(c),_=u[r.CHAR_DATA_CHAR_INDEX],f=u[r.CHAR_DATA_ATTR_INDEX],d=u[r.CHAR_DATA_WIDTH_INDEX];if(0!==d){var p=this._document.createElement("span");d>1&&(p.style.width=o*d+"px");var m=f>>18,y=511&f,C=f>>9&511;if(i&&c===s)switch(p.classList.add(t.CURSOR_CLASS),n){case"bar":p.classList.add(t.CURSOR_STYLE_BAR_CLASS);break;case"underline":p.classList.add(t.CURSOR_STYLE_UNDERLINE_CLASS);break;default:p.classList.add(t.CURSOR_STYLE_BLOCK_CLASS)}if(8&m){var g=y;y=C,256===(C=g)&&(C=0),257===y&&(y=15)}1&m&&(C<8&&(C+=8),p.classList.add(t.BOLD_CLASS)),64&m&&p.classList.add(t.ITALIC_CLASS),p.textContent=_,257!==C&&p.classList.add("xterm-fg-"+C),256!==y&&p.classList.add("xterm-bg-"+y),l.appendChild(p),h+=d}}return l},e}();t.DomRendererRowFactory=n},5752:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(1253),n={48:["0",")"],49:["1","!"],50:["2","@"],51:["3","#"],52:["4","$"],53:["5","%"],54:["6","^"],55:["7","&"],56:["8","*"],57:["9","("],186:[";",":"],187:["=","+"],188:[",","<"],189:["-","_"],190:[".",">"],191:["/","?"],192:["`","~"],219:["[","{"],220:["\\","|"],221:["]","}"],222:["'",'"']};t.evaluateKeyboardEvent=function(e,t,i,s){var o={type:0,cancel:!1,key:void 0},a=(e.shiftKey?1:0)|(e.altKey?2:0)|(e.ctrlKey?4:0)|(e.metaKey?8:0);switch(e.keyCode){case 0:"UIKeyInputUpArrow"===e.key?o.key=t?r.C0.ESC+"OA":r.C0.ESC+"[A":"UIKeyInputLeftArrow"===e.key?o.key=t?r.C0.ESC+"OD":r.C0.ESC+"[D":"UIKeyInputRightArrow"===e.key?o.key=t?r.C0.ESC+"OC":r.C0.ESC+"[C":"UIKeyInputDownArrow"===e.key&&(o.key=t?r.C0.ESC+"OB":r.C0.ESC+"[B");break;case 8:if(e.shiftKey){o.key=r.C0.BS;break}if(e.altKey){o.key=r.C0.ESC+r.C0.DEL;break}o.key=r.C0.DEL;break;case 9:if(e.shiftKey){o.key=r.C0.ESC+"[Z";break}o.key=r.C0.HT,o.cancel=!0;break;case 13:o.key=r.C0.CR,o.cancel=!0;break;case 27:o.key=r.C0.ESC,o.cancel=!0;break;case 37:a?(o.key=r.C0.ESC+"[1;"+(a+1)+"D",o.key===r.C0.ESC+"[1;3D"&&(o.key=i?r.C0.ESC+"b":r.C0.ESC+"[1;5D")):o.key=t?r.C0.ESC+"OD":r.C0.ESC+"[D";break;case 39:a?(o.key=r.C0.ESC+"[1;"+(a+1)+"C",o.key===r.C0.ESC+"[1;3C"&&(o.key=i?r.C0.ESC+"f":r.C0.ESC+"[1;5C")):o.key=t?r.C0.ESC+"OC":r.C0.ESC+"[C";break;case 38:a?(o.key=r.C0.ESC+"[1;"+(a+1)+"A",o.key===r.C0.ESC+"[1;3A"&&(o.key=r.C0.ESC+"[1;5A")):o.key=t?r.C0.ESC+"OA":r.C0.ESC+"[A";break;case 40:a?(o.key=r.C0.ESC+"[1;"+(a+1)+"B",o.key===r.C0.ESC+"[1;3B"&&(o.key=r.C0.ESC+"[1;5B")):o.key=t?r.C0.ESC+"OB":r.C0.ESC+"[B";break;case 45:e.shiftKey||e.ctrlKey||(o.key=r.C0.ESC+"[2~");break;case 46:o.key=a?r.C0.ESC+"[3;"+(a+1)+"~":r.C0.ESC+"[3~";break;case 36:o.key=a?r.C0.ESC+"[1;"+(a+1)+"H":t?r.C0.ESC+"OH":r.C0.ESC+"[H";break;case 35:o.key=a?r.C0.ESC+"[1;"+(a+1)+"F":t?r.C0.ESC+"OF":r.C0.ESC+"[F";break;case 33:e.shiftKey?o.type=2:o.key=r.C0.ESC+"[5~";break;case 34:e.shiftKey?o.type=3:o.key=r.C0.ESC+"[6~";break;case 112:o.key=a?r.C0.ESC+"[1;"+(a+1)+"P":r.C0.ESC+"OP";break;case 113:o.key=a?r.C0.ESC+"[1;"+(a+1)+"Q":r.C0.ESC+"OQ";break;case 114:o.key=a?r.C0.ESC+"[1;"+(a+1)+"R":r.C0.ESC+"OR";break;case 115:o.key=a?r.C0.ESC+"[1;"+(a+1)+"S":r.C0.ESC+"OS";break;case 116:o.key=a?r.C0.ESC+"[15;"+(a+1)+"~":r.C0.ESC+"[15~";break;case 117:o.key=a?r.C0.ESC+"[17;"+(a+1)+"~":r.C0.ESC+"[17~";break;case 118:o.key=a?r.C0.ESC+"[18;"+(a+1)+"~":r.C0.ESC+"[18~";break;case 119:o.key=a?r.C0.ESC+"[19;"+(a+1)+"~":r.C0.ESC+"[19~";break;case 120:o.key=a?r.C0.ESC+"[20;"+(a+1)+"~":r.C0.ESC+"[20~";break;case 121:o.key=a?r.C0.ESC+"[21;"+(a+1)+"~":r.C0.ESC+"[21~";break;case 122:o.key=a?r.C0.ESC+"[23;"+(a+1)+"~":r.C0.ESC+"[23~";break;case 123:o.key=a?r.C0.ESC+"[24;"+(a+1)+"~":r.C0.ESC+"[24~";break;default:if(!e.ctrlKey||e.shiftKey||e.altKey||e.metaKey)if(i&&!s||!e.altKey||e.metaKey)i&&!e.altKey&&!e.ctrlKey&&e.metaKey&&65===e.keyCode&&(o.type=1);else{var l=n[e.keyCode],h=l&&l[e.shiftKey?1:0];if(h)o.key=r.C0.ESC+h;else if(e.keyCode>=65&&e.keyCode<=90){var c=e.ctrlKey?e.keyCode-64:e.keyCode+32;o.key=r.C0.ESC+String.fromCharCode(c)}}else e.keyCode>=65&&e.keyCode<=90?o.key=String.fromCharCode(e.keyCode-64):32===e.keyCode?o.key=String.fromCharCode(0):e.keyCode>=51&&e.keyCode<=55?o.key=String.fromCharCode(e.keyCode-51+27):56===e.keyCode?o.key=String.fromCharCode(127):219===e.keyCode?o.key=String.fromCharCode(27):220===e.keyCode?o.key=String.fromCharCode(28):221===e.keyCode&&(o.key=String.fromCharCode(29))}return o}},5753:function(e,t,i){"use strict";function r(e){if(!e.element.parentElement)return null;var t=window.getComputedStyle(e.element.parentElement),i=parseInt(t.getPropertyValue("height")),r=Math.max(0,parseInt(t.getPropertyValue("width"))),n=window.getComputedStyle(e.element),s=i-(parseInt(n.getPropertyValue("padding-top"))+parseInt(n.getPropertyValue("padding-bottom"))),o=r-(parseInt(n.getPropertyValue("padding-right"))+parseInt(n.getPropertyValue("padding-left")))-e._core.viewport.scrollBarWidth;return{cols:Math.floor(o/e._core.renderer.dimensions.actualCellWidth),rows:Math.floor(s/e._core.renderer.dimensions.actualCellHeight)}}function n(e){var t=r(e);t&&(e.rows===t.rows&&e.cols===t.cols||(e._core.renderer.clear(),e.resize(t.cols,t.rows)))}Object.defineProperty(t,"__esModule",{value:!0}),t.proposeGeometry=r,t.fit=n,t.apply=function(e){e.prototype.proposeGeometry=function(){return r(this)},e.prototype.fit=function(){n(this)}}},5754:function(e,t,i){},5755:function(e,t,i){},922:function(e,t,i){"use strict";var r,n=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(e,t)},function(e,t){function i(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)});Object.defineProperty(t,"__esModule",{value:!0});var s=i(5723),o=i(964),a=i(1462);t.DEFAULT_ATTR=131840,t.CHAR_DATA_ATTR_INDEX=0,t.CHAR_DATA_CHAR_INDEX=1,t.CHAR_DATA_WIDTH_INDEX=2,t.CHAR_DATA_CODE_INDEX=3,t.MAX_BUFFER_SIZE=4294967295,t.NULL_CELL_CHAR=" ",t.NULL_CELL_WIDTH=1,t.NULL_CELL_CODE=32;var l=function(){function e(e,t){this._terminal=e,this._hasScrollback=t,this.markers=[],this.clear()}return Object.defineProperty(e.prototype,"hasScrollback",{get:function(){return this._hasScrollback&&this.lines.maxLength>this._terminal.rows},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isCursorInViewport",{get:function(){var e=this.ybase+this.y-this.ydisp;return e>=0&&et.MAX_BUFFER_SIZE?t.MAX_BUFFER_SIZE:i},e.prototype.fillViewportRows=function(){if(0===this.lines.length)for(var e=this._terminal.rows;e--;)this.lines.push(a.BufferLine.blankLine(this._terminal.cols,t.DEFAULT_ATTR))},e.prototype.clear=function(){this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.lines=new s.CircularList(this._getCorrectBufferLength(this._terminal.rows)),this.scrollTop=0,this.scrollBottom=this._terminal.rows-1,this.setupTabStops()},e.prototype.resize=function(e,i){var r=this._getCorrectBufferLength(i);if(r>this.lines.maxLength&&(this.lines.maxLength=r),this.lines.length>0){if(this._terminal.cols0&&this.lines.length<=this.ybase+this.y+o+1?(this.ybase--,o++,this.ydisp>0&&this.ydisp--):this.lines.push(a.BufferLine.blankLine(e,t.DEFAULT_ATTR)));else for(l=this._terminal.rows;l>i;l--)this.lines.length>i+this.ybase&&(this.lines.length>this.ybase+this.y+1?this.lines.pop():(this.ybase++,this.ydisp++));if(r0&&(this.lines.trimStart(h),this.ybase=Math.max(this.ybase-h,0),this.ydisp=Math.max(this.ydisp-h,0)),this.lines.maxLength=r}this.x=Math.min(this.x,e-1),this.y=Math.min(this.y,i-1),o&&(this.y+=o),this.savedY=Math.min(this.savedY,i-1),this.savedX=Math.min(this.savedX,e-1),this.scrollTop=0}this.scrollBottom=i-1},e.prototype.stringIndexToBufferIndex=function(e,i){for(;i;){for(var r=this.lines.get(e),n=0;n=h&&a--,n>h&&l--):c[t.CHAR_DATA_CHAR_INDEX].length>1&&(r>h&&(a+=c[t.CHAR_DATA_CHAR_INDEX].length-1),n>h&&(l+=c[t.CHAR_DATA_CHAR_INDEX].length-1))}if(i){var u=s.search(/\s+$/);if(-1!==u&&(l=Math.min(l,u)),l<=a)return""}return s.substring(a,l)},e.prototype.getWrappedRangeForLine=function(e){for(var t=e,i=e;t>0&&this.lines.get(t).isWrapped;)t--;for(;i+10;);return e>=this._terminal.cols?this._terminal.cols-1:e<0?0:e},e.prototype.nextStop=function(e){for(null==e&&(e=this.x);!this.tabs[++e]&&e=this._terminal.cols?this._terminal.cols-1:e<0?0:e},e.prototype.addMarker=function(e){var t=this,i=new h(e);return this.markers.push(i),i.register(this.lines.addDisposableListener("trim",(function(e){i.line-=e,i.line<0&&i.dispose()}))),i.register(i.addDisposableListener("dispose",(function(){return t._removeMarker(i)}))),i},e.prototype._removeMarker=function(e){this.markers.splice(this.markers.indexOf(e),1)},e.prototype.iterator=function(e,t,i,r,n){return new c(this,e,t,i,r,n)},e}();t.Buffer=l;var h=function(e){function t(i){var r=e.call(this)||this;return r.line=i,r._id=t._nextId++,r.isDisposed=!1,r}return n(t,e),Object.defineProperty(t.prototype,"id",{get:function(){return this._id},enumerable:!0,configurable:!0}),t.prototype.dispose=function(){this.isDisposed||(this.isDisposed=!0,this.emit("dispose"),e.prototype.dispose.call(this))},t._nextId=1,t}(o.EventEmitter);t.Marker=h;var c=function(){function e(e,t,i,r,n,s){void 0===i&&(i=0),void 0===r&&(r=e.lines.length),void 0===n&&(n=0),void 0===s&&(s=0),this._buffer=e,this._trimRight=t,this._startIndex=i,this._endIndex=r,this._startOverscan=n,this._endOverscan=s,this._startIndex<0&&(this._startIndex=0),this._endIndex>this._buffer.lines.length&&(this._endIndex=this._buffer.lines.length),this._current=this._startIndex}return e.prototype.hasNext=function(){return this._currentthis._endIndex+this._endOverscan&&(e.last=this._endIndex+this._endOverscan),e.first=Math.max(e.first,0),e.last=Math.min(e.last,this._buffer.lines.length);for(var t="",i=e.first;i<=e.last;++i)t+=this._buffer.translateBufferLineToString(i,!!this._trimRight&&i===e.last);return this._current=e.last+1,{range:e,content:t}},e}();t.BufferStringIterator=c},964:function(e,t,i){"use strict";var r,n=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(e,t)},function(e,t){function i(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)});Object.defineProperty(t,"__esModule",{value:!0});var s=function(e){function t(){var t=e.call(this)||this;return t._events=t._events||{},t}return n(t,e),t.prototype.on=function(e,t){this._events[e]=this._events[e]||[],this._events[e].push(t)},t.prototype.addDisposableListener=function(e,t){var i=this;this.on(e,t);var r=!1;return{dispose:function(){r||(i.off(e,t),r=!0)}}},t.prototype.off=function(e,t){if(this._events[e])for(var i=this._events[e],r=i.length;r--;)if(i[r]===t)return void i.splice(r,1)},t.prototype.removeAllListeners=function(e){this._events[e]&&delete this._events[e]},t.prototype.emit=function(e){for(var t=[],i=1;i=0}t.isFirefox=!!~n.indexOf("Firefox"),t.isSafari=/^((?!chrome|android).)*safari/i.test(n),t.isMSIE=!!~n.indexOf("MSIE")||!!~n.indexOf("Trident"),t.isMac=o(["Macintosh","MacIntel","MacPPC","Mac68K"],s),t.isIpad="iPad"===s,t.isIphone="iPhone"===s,t.isMSWindows=o(["Windows","Win16","Win32","WinCE"],s),t.isLinux=s.indexOf("Linux")>=0},1252:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addDisposableDomListener=function(e,t,i,r){return e.addEventListener(t,i,r),{dispose:function(){i&&(e.removeEventListener(t,i,r),e=null,i=null)}}}},1253:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.NUL="\0",e.SOH="",e.STX="",e.ETX="",e.EOT="",e.ENQ="",e.ACK="",e.BEL="",e.BS="\b",e.HT="\t",e.LF="\n",e.VT="\v",e.FF="\f",e.CR="\r",e.SO="",e.SI="",e.DLE="",e.DC1="",e.DC2="",e.DC3="",e.DC4="",e.NAK="",e.SYN="",e.ETB="",e.CAN="",e.EM="",e.SUB="",e.ESC="",e.FS="",e.GS="",e.RS="",e.US="",e.SP=" ",e.DEL=""}(t.C0||(t.C0={})),function(e){e.PAD="€",e.HOP="",e.BPH="‚",e.NBH="ƒ",e.IND="„",e.NEL="…",e.SSA="†",e.ESA="‡",e.HTS="ˆ",e.HTJ="‰",e.VTS="Š",e.PLD="‹",e.PLU="Œ",e.RI="",e.SS2="Ž",e.SS3="",e.DCS="",e.PU1="‘",e.PU2="’",e.STS="“",e.CCH="”",e.MW="•",e.SPA="–",e.EPA="—",e.SOS="˜",e.SGCI="™",e.SCI="š",e.CSI="›",e.ST="œ",e.OSC="",e.PM="ž",e.APC="Ÿ"}(t.C1||(t.C1={}))},1254:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(1145),n=i(2008),s=i(922),o=function(){function e(e,t,i,r,n){this._container=e,this._alpha=r,this._colors=n,this._scaledCharWidth=0,this._scaledCharHeight=0,this._scaledCellWidth=0,this._scaledCellHeight=0,this._scaledCharLeft=0,this._scaledCharTop=0,this._currentGlyphIdentifier={chars:"",code:0,bg:0,fg:0,bold:!1,dim:!1,italic:!1},this._canvas=document.createElement("canvas"),this._canvas.classList.add("xterm-"+t+"-layer"),this._canvas.style.zIndex=i.toString(),this._initCanvas(),this._container.appendChild(this._canvas)}return e.prototype.dispose=function(){this._container.removeChild(this._canvas),this._charAtlas&&this._charAtlas.dispose()},e.prototype._initCanvas=function(){this._ctx=this._canvas.getContext("2d",{alpha:this._alpha}),this._alpha||this.clearAll()},e.prototype.onOptionsChanged=function(e){},e.prototype.onBlur=function(e){},e.prototype.onFocus=function(e){},e.prototype.onCursorMove=function(e){},e.prototype.onGridChanged=function(e,t,i){},e.prototype.onSelectionChanged=function(e,t,i,r){void 0===r&&(r=!1)},e.prototype.onThemeChanged=function(e,t){this._refreshCharAtlas(e,t)},e.prototype.setTransparency=function(e,t){if(t!==this._alpha){var i=this._canvas;this._alpha=t,this._canvas=this._canvas.cloneNode(),this._initCanvas(),this._container.replaceChild(this._canvas,i),this._refreshCharAtlas(e,this._colors),this.onGridChanged(e,0,e.rows-1)}},e.prototype._refreshCharAtlas=function(e,t){this._scaledCharWidth<=0&&this._scaledCharHeight<=0||(this._charAtlas=n.acquireCharAtlas(e,t,this._scaledCharWidth,this._scaledCharHeight),this._charAtlas.warmUp())},e.prototype.resize=function(e,t){this._scaledCellWidth=t.scaledCellWidth,this._scaledCellHeight=t.scaledCellHeight,this._scaledCharWidth=t.scaledCharWidth,this._scaledCharHeight=t.scaledCharHeight,this._scaledCharLeft=t.scaledCharLeft,this._scaledCharTop=t.scaledCharTop,this._canvas.width=t.scaledCanvasWidth,this._canvas.height=t.scaledCanvasHeight,this._canvas.style.width=t.canvasWidth+"px",this._canvas.style.height=t.canvasHeight+"px",this._alpha||this.clearAll(),this._refreshCharAtlas(e,this._colors)},e.prototype.fillCells=function(e,t,i,r){this._ctx.fillRect(e*this._scaledCellWidth,t*this._scaledCellHeight,i*this._scaledCellWidth,r*this._scaledCellHeight)},e.prototype.fillBottomLineAtCells=function(e,t,i){void 0===i&&(i=1),this._ctx.fillRect(e*this._scaledCellWidth,(t+1)*this._scaledCellHeight-window.devicePixelRatio-1,i*this._scaledCellWidth,window.devicePixelRatio)},e.prototype.fillLeftLineAtCell=function(e,t){this._ctx.fillRect(e*this._scaledCellWidth,t*this._scaledCellHeight,window.devicePixelRatio,this._scaledCellHeight)},e.prototype.strokeRectAtCell=function(e,t,i,r){this._ctx.lineWidth=window.devicePixelRatio,this._ctx.strokeRect(e*this._scaledCellWidth+window.devicePixelRatio/2,t*this._scaledCellHeight+window.devicePixelRatio/2,i*this._scaledCellWidth-window.devicePixelRatio,r*this._scaledCellHeight-window.devicePixelRatio)},e.prototype.clearAll=function(){this._alpha?this._ctx.clearRect(0,0,this._canvas.width,this._canvas.height):(this._ctx.fillStyle=this._colors.background.css,this._ctx.fillRect(0,0,this._canvas.width,this._canvas.height))},e.prototype.clearCells=function(e,t,i,r){this._alpha?this._ctx.clearRect(e*this._scaledCellWidth,t*this._scaledCellHeight,i*this._scaledCellWidth,r*this._scaledCellHeight):(this._ctx.fillStyle=this._colors.background.css,this._ctx.fillRect(e*this._scaledCellWidth,t*this._scaledCellHeight,i*this._scaledCellWidth,r*this._scaledCellHeight))},e.prototype.fillCharTrueColor=function(e,t,i,r){this._ctx.font=this._getFont(e,!1,!1),this._ctx.textBaseline="top",this._clipRow(e,r),this._ctx.fillText(t[s.CHAR_DATA_CHAR_INDEX],i*this._scaledCellWidth+this._scaledCharLeft,r*this._scaledCellHeight+this._scaledCharTop)},e.prototype.drawChars=function(e,t,i,n,s,o,a,l,h,c,u){a+=e.options.drawBoldTextInBrightColors&&h&&a<8&&a!==r.INVERTED_DEFAULT_COLOR?8:0,this._currentGlyphIdentifier.chars=t,this._currentGlyphIdentifier.code=i,this._currentGlyphIdentifier.bg=l,this._currentGlyphIdentifier.fg=a,this._currentGlyphIdentifier.bold=h&&e.options.enableBold,this._currentGlyphIdentifier.dim=c,this._currentGlyphIdentifier.italic=u,this._charAtlas&&this._charAtlas.draw(this._ctx,this._currentGlyphIdentifier,s*this._scaledCellWidth+this._scaledCharLeft,o*this._scaledCellHeight+this._scaledCharTop)||this._drawUncachedChars(e,t,n,a,s,o,h&&e.options.enableBold,c,u)},e.prototype._drawUncachedChars=function(e,t,i,n,s,o,a,l,h){this._ctx.save(),this._ctx.font=this._getFont(e,a,h),this._ctx.textBaseline="top",n===r.INVERTED_DEFAULT_COLOR?this._ctx.fillStyle=this._colors.background.css:this._ctx.fillStyle=n<256?this._colors.ansi[n].css:this._colors.foreground.css,this._clipRow(e,o),l&&(this._ctx.globalAlpha=r.DIM_OPACITY),this._ctx.fillText(t,s*this._scaledCellWidth+this._scaledCharLeft,o*this._scaledCellHeight+this._scaledCharTop),this._ctx.restore()},e.prototype._clipRow=function(e,t){this._ctx.beginPath(),this._ctx.rect(0,t*this._scaledCellHeight,e.cols*this._scaledCellWidth,this._scaledCellHeight),this._ctx.clip()},e.prototype._getFont=function(e,t,i){return(i?"italic":"")+" "+(t?e.options.fontWeightBold:e.options.fontWeight)+" "+e.options.fontSize*window.devicePixelRatio+"px "+e.options.fontFamily},e}();t.BaseRenderLayer=o},1255:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=l("#ffffff"),n=l("#000000"),s=l("#ffffff"),o=l("#000000"),a={css:"rgba(255, 255, 255, 0.3)",rgba:4294967159};function l(e){return{css:e,rgba:parseInt(e.slice(1),16)<<8|255}}function h(e){var t=e.toString(16);return t.length<2?"0"+t:t}t.DEFAULT_ANSI_COLORS=function(){for(var e=[l("#2e3436"),l("#cc0000"),l("#4e9a06"),l("#c4a000"),l("#3465a4"),l("#75507b"),l("#06989a"),l("#d3d7cf"),l("#555753"),l("#ef2929"),l("#8ae234"),l("#fce94f"),l("#729fcf"),l("#ad7fa8"),l("#34e2e2"),l("#eeeeec")],t=[0,95,135,175,215,255],i=0;i<216;i++){var r=t[i/36%6|0],n=t[i/6%6|0],s=t[i%6];e.push({css:"#"+h(r)+h(n)+h(s),rgba:(r<<24|n<<16|s<<8|255)>>>0})}for(i=0;i<24;i++){var o=8+10*i,a=h(o);e.push({css:"#"+a+a+a,rgba:(o<<24|o<<16|o<<8|255)>>>0})}return e}();var c=function(){function e(e,i){this.allowTransparency=i;var l=e.createElement("canvas");l.width=1,l.height=1,this._ctx=l.getContext("2d"),this._ctx.globalCompositeOperation="copy",this._litmusColor=this._ctx.createLinearGradient(0,0,1,1),this.colors={foreground:r,background:n,cursor:s,cursorAccent:o,selection:a,ansi:t.DEFAULT_ANSI_COLORS.slice()}}return e.prototype.setTheme=function(e){this.colors.foreground=this._parseColor(e.foreground,r),this.colors.background=this._parseColor(e.background,n),this.colors.cursor=this._parseColor(e.cursor,s,!0),this.colors.cursorAccent=this._parseColor(e.cursorAccent,o,!0),this.colors.selection=this._parseColor(e.selection,a,!0),this.colors.ansi[0]=this._parseColor(e.black,t.DEFAULT_ANSI_COLORS[0]),this.colors.ansi[1]=this._parseColor(e.red,t.DEFAULT_ANSI_COLORS[1]),this.colors.ansi[2]=this._parseColor(e.green,t.DEFAULT_ANSI_COLORS[2]),this.colors.ansi[3]=this._parseColor(e.yellow,t.DEFAULT_ANSI_COLORS[3]),this.colors.ansi[4]=this._parseColor(e.blue,t.DEFAULT_ANSI_COLORS[4]),this.colors.ansi[5]=this._parseColor(e.magenta,t.DEFAULT_ANSI_COLORS[5]),this.colors.ansi[6]=this._parseColor(e.cyan,t.DEFAULT_ANSI_COLORS[6]),this.colors.ansi[7]=this._parseColor(e.white,t.DEFAULT_ANSI_COLORS[7]),this.colors.ansi[8]=this._parseColor(e.brightBlack,t.DEFAULT_ANSI_COLORS[8]),this.colors.ansi[9]=this._parseColor(e.brightRed,t.DEFAULT_ANSI_COLORS[9]),this.colors.ansi[10]=this._parseColor(e.brightGreen,t.DEFAULT_ANSI_COLORS[10]),this.colors.ansi[11]=this._parseColor(e.brightYellow,t.DEFAULT_ANSI_COLORS[11]),this.colors.ansi[12]=this._parseColor(e.brightBlue,t.DEFAULT_ANSI_COLORS[12]),this.colors.ansi[13]=this._parseColor(e.brightMagenta,t.DEFAULT_ANSI_COLORS[13]),this.colors.ansi[14]=this._parseColor(e.brightCyan,t.DEFAULT_ANSI_COLORS[14]),this.colors.ansi[15]=this._parseColor(e.brightWhite,t.DEFAULT_ANSI_COLORS[15])},e.prototype._parseColor=function(e,t,i){if(void 0===i&&(i=this.allowTransparency),!e)return t;if(this._ctx.fillStyle=this._litmusColor,this._ctx.fillStyle=e,"string"!=typeof this._ctx.fillStyle)return console.warn("Color: "+e+" is invalid using fallback "+t.css),t;this._ctx.fillRect(0,0,1,1);var r=this._ctx.getImageData(0,0,1,1).data;return i||255===r[3]?{css:e,rgba:(r[0]<<24|r[1]<<16|r[2]<<8|r[3])>>>0}:(console.warn("Color: "+e+" is using transparency, but allowTransparency is false. Using fallback "+t.css+"."),t)},e}();t.ColorManager=c},1462:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(922),n=function(){function e(e,t,i){if(this.isWrapped=!1,this._data=[],this.length=this._data.length,e){t||(t=[0,r.NULL_CELL_CHAR,r.NULL_CELL_WIDTH,r.NULL_CELL_CODE]);for(var n=0;nt[n][1])return!1;for(;n>=r;)if(e>t[i=r+n>>1][1])r=i+1;else{if(!(e=127&&i<160?e.control:r(i,t)?0:function(e){return e>=4352&&(e<=4447||9001===e||9002===e||e>=11904&&e<=42191&&12351!==e||e>=44032&&e<=55203||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65135||e>=65280&&e<=65376||e>=65504&&e<=65510)}(i)?2:1);s[n]=o}return s}();return o<65536?l[o>>4]>>((15&o)<<1)&3:r(a=o,i)?0:a>=131072&&a<=196605||a>=196608&&a<=262141?2:1}}({nul:0,control:0}),t.getStringCellWidth=function(e){for(var i=0,r=0;r=0){if(r.configEquals(c.config,s))return c.atlas;1===c.ownedBy.length?l.splice(o,1):c.ownedBy.splice(h,1);break}}for(o=0;o>>24,n=t.rgba>>>16&255,s=t.rgba>>>8&255,o=0;oe&&r.y1<=t+1||r.y2>e&&r.y2<=t+1||r.y1t+1)&&(this._currentZone&&this._currentZone===r&&(this._currentZone.leaveCallback(),this._currentZone=null),this._zones.splice(i--,1))}0===this._zones.length&&this._deactivate()}},t.prototype._activate=function(){this._areZonesActive||(this._areZonesActive=!0,this._terminal.element.addEventListener("mousemove",this._mouseMoveListener),this._terminal.element.addEventListener("click",this._clickListener))},t.prototype._deactivate=function(){this._areZonesActive&&(this._areZonesActive=!1,this._terminal.element.removeEventListener("mousemove",this._mouseMoveListener),this._terminal.element.removeEventListener("click",this._clickListener))},t.prototype._onMouseMove=function(e){this._lastHoverCoords[0]===e.pageX&&this._lastHoverCoords[1]===e.pageY||(this._onHover(e),this._lastHoverCoords=[e.pageX,e.pageY])},t.prototype._onHover=function(e){var t=this,i=this._findZoneEventAt(e);i!==this._currentZone&&(this._currentZone&&(this._currentZone.leaveCallback(),this._currentZone=null,this._tooltipTimeout&&clearTimeout(this._tooltipTimeout)),i&&(this._currentZone=i,i.hoverCallback&&i.hoverCallback(e),this._tooltipTimeout=setTimeout((function(){return t._onTooltip(e)}),500)))},t.prototype._onTooltip=function(e){this._tooltipTimeout=null;var t=this._findZoneEventAt(e);t&&t.tooltipCallback&&t.tooltipCallback(e)},t.prototype._onMouseDown=function(e){if(this._areZonesActive){var t=this._findZoneEventAt(e);t&&t.willLinkActivate(e)&&(e.preventDefault(),e.stopImmediatePropagation())}},t.prototype._onClick=function(e){var t=this._findZoneEventAt(e);t&&(t.clickCallback(e),e.preventDefault(),e.stopImmediatePropagation())},t.prototype._findZoneEventAt=function(e){var t=this._terminal.mouseHelper.getCoords(e,this._terminal.screenElement,this._terminal.charMeasure,this._terminal.options.lineHeight,this._terminal.cols,this._terminal.rows);if(!t)return null;for(var i=t[0],r=t[1],n=0;n=s.x1&&i=s.x1||r===s.y2&&is.y1&&r0&&void 0!==arguments[0])||arguments[0],t=this.term.textarea,i=void 0===t?{}:t;i.disabled=e}},{key:"getTerminalOpts",value:function(){var e=this.props.terminalOpts;return C(C({},v),e)}},{key:"onTerminalResize",value:function(){window.addEventListener("resize",this.onResize),this.term.on("resize",this.resizeRemoteTerminal)}},{key:"onTerminalKeyPress",value:function(){this.term.on("data",this.sendTerminalInput)}},{key:"removeResizeListener",value:function(){window.removeEventListener("resize",this.onResize)}},{key:"createWS",value:function(){return new m.default(this.props.websocketUrl,{onmessage:this.onWSReceive,onerror:this.onWSError})}},{key:"render",value:function(){return u.default.createElement("kubernetes-container-terminal",{style:{width:"100%",height:"100%",display:"block"},ref:this.containerRef})}}]),i}(u.default.Component);t.default=b,b.propsTypes={terminalOpts:d.default.object,websocketUrl:d.default.string,initText:d.default.string,isEdgeNode:d.default.bool},b.defaultProps={terminalOpts:{},initText:"Connecting...",isEdgeNode:!1}},5721:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(5722),n=i(1465),s=function(){function e(e){this._core=new r.Terminal(e)}return Object.defineProperty(e.prototype,"element",{get:function(){return this._core.element},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"textarea",{get:function(){return this._core.textarea},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rows",{get:function(){return this._core.rows},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"cols",{get:function(){return this._core.cols},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"markers",{get:function(){return this._core.markers},enumerable:!0,configurable:!0}),e.prototype.blur=function(){this._core.blur()},e.prototype.focus=function(){this._core.focus()},e.prototype.on=function(e,t){this._core.on(e,t)},e.prototype.off=function(e,t){this._core.off(e,t)},e.prototype.emit=function(e,t){this._core.emit(e,t)},e.prototype.addDisposableListener=function(e,t){return this._core.addDisposableListener(e,t)},e.prototype.resize=function(e,t){this._core.resize(e,t)},e.prototype.writeln=function(e){this._core.writeln(e)},e.prototype.open=function(e){this._core.open(e)},e.prototype.attachCustomKeyEventHandler=function(e){this._core.attachCustomKeyEventHandler(e)},e.prototype.registerLinkMatcher=function(e,t,i){return this._core.registerLinkMatcher(e,t,i)},e.prototype.deregisterLinkMatcher=function(e){this._core.deregisterLinkMatcher(e)},e.prototype.registerCharacterJoiner=function(e){return this._core.registerCharacterJoiner(e)},e.prototype.deregisterCharacterJoiner=function(e){this._core.deregisterCharacterJoiner(e)},e.prototype.addMarker=function(e){return this._core.addMarker(e)},e.prototype.hasSelection=function(){return this._core.hasSelection()},e.prototype.getSelection=function(){return this._core.getSelection()},e.prototype.clearSelection=function(){this._core.clearSelection()},e.prototype.selectAll=function(){this._core.selectAll()},e.prototype.selectLines=function(e,t){this._core.selectLines(e,t)},e.prototype.dispose=function(){this._core.dispose()},e.prototype.destroy=function(){this._core.destroy()},e.prototype.scrollLines=function(e){this._core.scrollLines(e)},e.prototype.scrollPages=function(e){this._core.scrollPages(e)},e.prototype.scrollToTop=function(){this._core.scrollToTop()},e.prototype.scrollToBottom=function(){this._core.scrollToBottom()},e.prototype.scrollToLine=function(e){this._core.scrollToLine(e)},e.prototype.clear=function(){this._core.clear()},e.prototype.write=function(e){this._core.write(e)},e.prototype.getOption=function(e){return this._core.getOption(e)},e.prototype.setOption=function(e,t){this._core.setOption(e,t)},e.prototype.refresh=function(e,t){this._core.refresh(e,t)},e.prototype.reset=function(){this._core.reset()},e.applyAddon=function(t){t.apply(e)},Object.defineProperty(e,"strings",{get:function(){return n},enumerable:!0,configurable:!0}),e}();t.Terminal=s},5722:function(e,t,i){"use strict";var r,n=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(e,t)},function(e,t){function i(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)});Object.defineProperty(t,"__esModule",{value:!0});var s=i(5723),o=i(922),a=i(5725),l=i(964),h=i(5726),c=i(5727),u=i(1253),_=i(5728),f=i(5731),d=i(5743),p=i(5744),m=i(5747),y=i(1146),C=i(1252),g=i(1465),v=i(2013),b=i(5748),w=i(5749),S=i(1255),E=i(2012),L=i(5750),A=i(2011),x=i(2008),T=i(5751),R=i(5753),M=i(1462),k="undefined"!=typeof window?window.document:null,H=["cols","rows"],D={cols:80,rows:24,convertEol:!1,termName:"xterm",cursorBlink:!1,cursorStyle:"block",bellSound:w.DEFAULT_BELL_SOUND,bellStyle:"none",drawBoldTextInBrightColors:!0,enableBold:!0,experimentalCharAtlas:"static",fontFamily:"courier-new, courier, monospace",fontSize:15,fontWeight:"normal",fontWeightBold:"bold",lineHeight:1,letterSpacing:0,scrollback:1e3,screenKeys:!1,screenReaderMode:!1,debug:!1,macOptionIsMeta:!1,macOptionClickForcesSelection:!1,cancelEvents:!1,disableStdin:!1,useFlowControl:!1,allowTransparency:!1,tabStopWidth:8,theme:null,rightClickSelectsWord:y.isMac,rendererType:"canvas"},O=function(e){function t(t){void 0===t&&(t={});var i=e.call(this)||this;return i.browser=y,i.options=b.clone(t),i._setup(),i}return n(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this),this._customKeyEventHandler=null,x.removeTerminalFromCache(this),this.handler=function(){},this.write=function(){},this.element&&this.element.parentNode&&this.element.parentNode.removeChild(this.element)},t.prototype.destroy=function(){this.dispose()},t.prototype._setup=function(){var e=this;Object.keys(D).forEach((function(t){null!==e.options[t]&&void 0!==e.options[t]||(e.options[t]=D[t])})),this._parent=k?k.body:null,this.cols=this.options.cols,this.rows=this.options.rows,this.options.handler&&this.on("data",this.options.handler),this.cursorState=0,this.cursorHidden=!1,this._customKeyEventHandler=null,this.applicationKeypad=!1,this.applicationCursor=!1,this.originMode=!1,this.insertMode=!1,this.wraparoundMode=!0,this.bracketedPasteMode=!1,this.charset=null,this.gcharset=null,this.glevel=0,this.charsets=[null],this.curAttr=o.DEFAULT_ATTR,this.params=[],this.currentParam=0,this.writeBuffer=[],this._writeInProgress=!1,this._xoffSentToCatchUp=!1,this._userScrolling=!1,this._inputHandler=new _.InputHandler(this),this.register(this._inputHandler),this.renderer=this.renderer||null,this.selectionManager=this.selectionManager||null,this.linkifier=this.linkifier||new d.Linkifier(this),this._mouseZoneManager=this._mouseZoneManager||null,this.soundManager=this.soundManager||new w.SoundManager(this),this.buffers=new s.BufferSet(this),this.selectionManager&&(this.selectionManager.clearSelection(),this.selectionManager.initBuffersListeners())},Object.defineProperty(t.prototype,"buffer",{get:function(){return this.buffers.active},enumerable:!0,configurable:!0}),t.prototype.eraseAttr=function(){return-512&o.DEFAULT_ATTR|511&this.curAttr},t.prototype.focus=function(){this.textarea&&this.textarea.focus()},Object.defineProperty(t.prototype,"isFocused",{get:function(){return k.activeElement===this.textarea},enumerable:!0,configurable:!0}),t.prototype.getOption=function(e){if(!(e in D))throw new Error('No option with key "'+e+'"');return this.options[e]},t.prototype.setOption=function(e,t){if(!(e in D))throw new Error('No option with key "'+e+'"');if(-1!==H.indexOf(e)&&console.error('Option "'+e+'" can only be set in the constructor'),this.options[e]!==t){switch(e){case"bellStyle":t||(t="none");break;case"cursorStyle":t||(t="block");break;case"fontWeight":t||(t="normal");break;case"fontWeightBold":t||(t="bold");break;case"lineHeight":if(t<1)return void console.warn(e+" cannot be less than 1, value: "+t);case"rendererType":t||(t="canvas");break;case"tabStopWidth":if(t<1)return void console.warn(e+" cannot be less than 1, value: "+t);break;case"theme":if(this.renderer)return void this._setTheme(t);break;case"scrollback":if((t=Math.min(t,o.MAX_BUFFER_SIZE))<0)return void console.warn(e+" cannot be less than 0, value: "+t);if(this.options[e]!==t){var i=this.rows+t;if(this.buffer.lines.length>i){var r=this.buffer.lines.length-i,n=this.buffer.ydisp-r<0;this.buffer.lines.trimStart(r),this.buffer.ybase=Math.max(this.buffer.ybase-r,0),this.buffer.ydisp=Math.max(this.buffer.ydisp-r,0),n&&this.refresh(0,this.rows-1)}}}switch(this.options[e]=t,e){case"fontFamily":case"fontSize":this.renderer&&(this.renderer.clear(),this.charMeasure.measure(this.options));break;case"drawBoldTextInBrightColors":case"experimentalCharAtlas":case"enableBold":case"letterSpacing":case"lineHeight":case"fontWeight":case"fontWeightBold":this.renderer&&(this.renderer.clear(),this.renderer.onResize(this.cols,this.rows),this.refresh(0,this.rows-1));case"rendererType":this.renderer&&(this.unregister(this.renderer),this.renderer.dispose(),this.renderer=null),this._setupRenderer(),this.renderer.onCharSizeChanged(),this._theme&&this.renderer.setTheme(this._theme);break;case"scrollback":this.buffers.resize(this.cols,this.rows),this.viewport&&this.viewport.syncScrollArea();break;case"screenReaderMode":t?this._accessibilityManager||(this._accessibilityManager=new L.AccessibilityManager(this)):this._accessibilityManager&&(this._accessibilityManager.dispose(),this._accessibilityManager=null);break;case"tabStopWidth":this.buffers.setupTabStops()}this.renderer&&this.renderer.onOptionsChanged()}},t.prototype._onTextAreaFocus=function(e){this.sendFocus&&this.handler(u.C0.ESC+"[I"),this.updateCursorStyle(e),this.element.classList.add("focus"),this.showCursor(),this.emit("focus")},t.prototype.blur=function(){return this.textarea.blur()},t.prototype._onTextAreaBlur=function(){this.textarea.value="",this.refresh(this.buffer.y,this.buffer.y),this.sendFocus&&this.handler(u.C0.ESC+"[O"),this.element.classList.remove("focus"),this.emit("blur")},t.prototype._initGlobal=function(){var e=this;this._bindKeys(),this.register(C.addDisposableDomListener(this.element,"copy",(function(t){e.hasSelection()&&c.copyHandler(t,e,e.selectionManager)})));var t=function(t){return c.pasteHandler(t,e)};this.register(C.addDisposableDomListener(this.textarea,"paste",t)),this.register(C.addDisposableDomListener(this.element,"paste",t)),y.isFirefox?this.register(C.addDisposableDomListener(this.element,"mousedown",(function(t){2===t.button&&c.rightClickHandler(t,e.textarea,e.selectionManager,e.options.rightClickSelectsWord)}))):this.register(C.addDisposableDomListener(this.element,"contextmenu",(function(t){c.rightClickHandler(t,e.textarea,e.selectionManager,e.options.rightClickSelectsWord)}))),y.isLinux&&this.register(C.addDisposableDomListener(this.element,"auxclick",(function(t){1===t.button&&c.moveTextAreaUnderMouseCursor(t,e.textarea)})))},t.prototype._bindKeys=function(){var e=this,t=this;this.register(C.addDisposableDomListener(this.element,"keydown",(function(e){k.activeElement===this&&t._keyDown(e)}),!0)),this.register(C.addDisposableDomListener(this.element,"keypress",(function(e){k.activeElement===this&&t._keyPress(e)}),!0)),this.register(C.addDisposableDomListener(this.element,"keyup",(function(i){(function(e){return 16===e.keyCode||17===e.keyCode||18===e.keyCode})(i)||e.focus(),t._keyUp(i)}),!0)),this.register(C.addDisposableDomListener(this.textarea,"keydown",(function(t){return e._keyDown(t)}),!0)),this.register(C.addDisposableDomListener(this.textarea,"keypress",(function(t){return e._keyPress(t)}),!0)),this.register(C.addDisposableDomListener(this.textarea,"compositionstart",(function(){return e._compositionHelper.compositionstart()}))),this.register(C.addDisposableDomListener(this.textarea,"compositionupdate",(function(t){return e._compositionHelper.compositionupdate(t)}))),this.register(C.addDisposableDomListener(this.textarea,"compositionend",(function(){return e._compositionHelper.compositionend()}))),this.register(this.addDisposableListener("refresh",(function(){return e._compositionHelper.updateCompositionElements()}))),this.register(this.addDisposableListener("refresh",(function(t){return e._queueLinkification(t.start,t.end)})))},t.prototype.open=function(e){var t=this;if(this._parent=e||this._parent,!this._parent)throw new Error("Terminal requires a parent element.");this._context=this._parent.ownerDocument.defaultView,this._document=this._parent.ownerDocument,this._screenDprMonitor=new A.ScreenDprMonitor,this._screenDprMonitor.setListener((function(){return t.emit("dprchange",window.devicePixelRatio)})),this.register(this._screenDprMonitor),this.element=this._document.createElement("div"),this.element.dir="ltr",this.element.classList.add("terminal"),this.element.classList.add("xterm"),this.element.setAttribute("tabindex","0"),this._parent.appendChild(this.element);var i=k.createDocumentFragment();this._viewportElement=k.createElement("div"),this._viewportElement.classList.add("xterm-viewport"),i.appendChild(this._viewportElement),this._viewportScrollArea=k.createElement("div"),this._viewportScrollArea.classList.add("xterm-scroll-area"),this._viewportElement.appendChild(this._viewportScrollArea),this.screenElement=k.createElement("div"),this.screenElement.classList.add("xterm-screen"),this._helperContainer=k.createElement("div"),this._helperContainer.classList.add("xterm-helpers"),this.screenElement.appendChild(this._helperContainer),i.appendChild(this.screenElement),this._mouseZoneManager=new E.MouseZoneManager(this),this.register(this._mouseZoneManager),this.register(this.addDisposableListener("scroll",(function(){return t._mouseZoneManager.clearAll()}))),this.linkifier.attachToDom(this._mouseZoneManager),this.textarea=k.createElement("textarea"),this.textarea.classList.add("xterm-helper-textarea"),this.textarea.setAttribute("aria-label",g.promptLabel),this.textarea.setAttribute("aria-multiline","false"),this.textarea.setAttribute("autocorrect","off"),this.textarea.setAttribute("autocapitalize","off"),this.textarea.setAttribute("spellcheck","false"),this.textarea.tabIndex=0,this.register(C.addDisposableDomListener(this.textarea,"focus",(function(e){return t._onTextAreaFocus(e)}))),this.register(C.addDisposableDomListener(this.textarea,"blur",(function(){return t._onTextAreaBlur()}))),this._helperContainer.appendChild(this.textarea),this._compositionView=k.createElement("div"),this._compositionView.classList.add("composition-view"),this._compositionHelper=new a.CompositionHelper(this.textarea,this._compositionView,this),this._helperContainer.appendChild(this._compositionView),this.charMeasure=new m.CharMeasure(k,this._helperContainer),this.element.appendChild(i),this._setupRenderer(),this._theme=this.options.theme,this.options.theme=null,this.viewport=new h.Viewport(this,this._viewportElement,this._viewportScrollArea,this.charMeasure),this.viewport.onThemeChanged(this.renderer.colorManager.colors),this.register(this.viewport),this.register(this.addDisposableListener("cursormove",(function(){return t.renderer.onCursorMove()}))),this.register(this.addDisposableListener("resize",(function(){return t.renderer.onResize(t.cols,t.rows)}))),this.register(this.addDisposableListener("blur",(function(){return t.renderer.onBlur()}))),this.register(this.addDisposableListener("focus",(function(){return t.renderer.onFocus()}))),this.register(this.addDisposableListener("dprchange",(function(){return t.renderer.onWindowResize(window.devicePixelRatio)}))),this.register(C.addDisposableDomListener(window,"resize",(function(){return t.renderer.onWindowResize(window.devicePixelRatio)}))),this.register(this.charMeasure.addDisposableListener("charsizechanged",(function(){return t.renderer.onCharSizeChanged()}))),this.register(this.renderer.addDisposableListener("resize",(function(e){return t.viewport.syncScrollArea()}))),this.selectionManager=new p.SelectionManager(this,this.charMeasure),this.register(C.addDisposableDomListener(this.element,"mousedown",(function(e){return t.selectionManager.onMouseDown(e)}))),this.register(this.selectionManager.addDisposableListener("refresh",(function(e){return t.renderer.onSelectionChanged(e.start,e.end,e.columnSelectMode)}))),this.register(this.selectionManager.addDisposableListener("newselection",(function(e){t.textarea.value=e,t.textarea.focus(),t.textarea.select()}))),this.register(this.addDisposableListener("scroll",(function(){t.viewport.syncScrollArea(),t.selectionManager.refresh()}))),this.register(C.addDisposableDomListener(this._viewportElement,"scroll",(function(){return t.selectionManager.refresh()}))),this.mouseHelper=new v.MouseHelper(this.renderer),this.options.screenReaderMode&&(this._accessibilityManager=new L.AccessibilityManager(this)),this.charMeasure.measure(this.options),this.refresh(0,this.rows-1),this._initGlobal(),this.bindMouse()},t.prototype._setupRenderer=function(){switch(this.options.rendererType){case"canvas":this.renderer=new f.Renderer(this,this.options.theme);break;case"dom":this.renderer=new T.DomRenderer(this,this.options.theme);break;default:throw new Error('Unrecognized rendererType "'+this.options.rendererType+'"')}this.register(this.renderer)},t.prototype._setTheme=function(e){this._theme=e;var t=this.renderer.setTheme(e);this.viewport&&this.viewport.onThemeChanged(t)},t.prototype.bindMouse=function(){var e=this,t=this.element,i=this,r=32;function n(e){var t,n;if(t=function(e){var t,r,n,s,o;switch(e.overrideType||e.type){case"mousedown":t=null!==e.button&&void 0!==e.button?+e.button:null!==e.which&&void 0!==e.which?e.which-1:null,y.isMSIE&&(t=1===t?0:4===t?1:t);break;case"mouseup":t=3;break;case"DOMMouseScroll":t=e.detail<0?64:65;break;case"wheel":t=e.wheelDeltaY>0?64:65}r=e.shiftKey?4:0,n=e.metaKey?8:0,s=e.ctrlKey?16:0,o=r|n|s,i.vt200Mouse?o&=s:i.normalMouse||(o=0);return t=32+(o<<2)+t}(e),n=i.mouseHelper.getRawByteCoords(e,i.screenElement,i.charMeasure,i.options.lineHeight,i.cols,i.rows))switch(o(t,n),e.overrideType||e.type){case"mousedown":r=t;break;case"mouseup":r=32}}function s(e,t){if(i.utfMouse){if(2047===t)return void e.push(0);t<127?e.push(t):(t>2047&&(t=2047),e.push(192|t>>6),e.push(128|63&t))}else{if(255===t)return void e.push(0);t>127&&(t=127),e.push(t)}}function o(e,t){if(i._vt300Mouse){e&=3,t.x-=32,t.y-=32;var r=u.C0.ESC+"[24";if(0===e)r+="1";else if(1===e)r+="3";else if(2===e)r+="5";else{if(3===e)return;r+="0"}return r+="~["+t.x+","+t.y+"]\r",void i.handler(r)}if(i._decLocator)return e&=3,t.x-=32,t.y-=32,0===e?e=2:1===e?e=4:2===e?e=6:3===e&&(e=3),void i.handler(u.C0.ESC+"["+e+";"+(3===e?4:0)+";"+t.y+";"+t.x+";"+t.page||"0&w");if(i.urxvtMouse)return t.x-=32,t.y-=32,t.x++,t.y++,void i.handler(u.C0.ESC+"["+e+";"+t.x+";"+t.y+"M");if(i.sgrMouse)return t.x-=32,t.y-=32,void i.handler(u.C0.ESC+"[<"+((3==(3&e)?-4&e:e)-32)+";"+t.x+";"+t.y+(3==(3&e)?"m":"M"));var n=[];s(n,e),s(n,t.x),s(n,t.y),i.handler(u.C0.ESC+"[M"+String.fromCharCode.apply(String,n))}this.register(C.addDisposableDomListener(t,"mousedown",(function(t){if(t.preventDefault(),e.focus(),e.mouseEvents&&!e.selectionManager.shouldForceSelection(t)){if(n(t),e.vt200Mouse)return t.overrideType="mouseup",n(t),e.cancel(t);var s;e.normalMouse&&(s=function(t){e.normalMouse&&function(e){var t=r,n=i.mouseHelper.getRawByteCoords(e,i.screenElement,i.charMeasure,i.options.lineHeight,i.cols,i.rows);n&&o(t+=32,n)}(t)},e._document.addEventListener("mousemove",s));var a=function(t){return e.normalMouse&&!e.x10Mouse&&n(t),s&&(e._document.removeEventListener("mousemove",s),s=null),e._document.removeEventListener("mouseup",a),e.cancel(t)};return e._document.addEventListener("mouseup",a),e.cancel(t)}}))),this.register(C.addDisposableDomListener(t,"wheel",(function(t){if(e.mouseEvents)e.x10Mouse||e._vt300Mouse||e._decLocator||(n(t),t.preventDefault());else if(!e.buffer.hasScrollback){var i=e.viewport.getLinesScrolled(t);if(0===i)return;for(var r=u.C0.ESC+(e.applicationCursor?"O":"[")+(t.deltaY<0?"A":"B"),s="",o=0;o=this.buffer.ybase&&(this._userScrolling=!1);var i=this.buffer.ydisp;this.buffer.ydisp=Math.max(Math.min(this.buffer.ydisp+e,this.buffer.ybase),0),i!==this.buffer.ydisp&&(t||this.emit("scroll",this.buffer.ydisp),this.refresh(0,this.rows-1))},t.prototype.scrollPages=function(e){this.scrollLines(e*(this.rows-1))},t.prototype.scrollToTop=function(){this.scrollLines(-this.buffer.ydisp)},t.prototype.scrollToBottom=function(){this.scrollLines(this.buffer.ybase-this.buffer.ydisp)},t.prototype.scrollToLine=function(e){var t=e-this.buffer.ydisp;0!==t&&this.scrollLines(t)},t.prototype.write=function(e){var t=this;this._isDisposed||e&&(this.writeBuffer.push(e),this.options.useFlowControl&&!this._xoffSentToCatchUp&&this.writeBuffer.length>=5&&(this.handler(u.C0.DC3),this._xoffSentToCatchUp=!0),!this._writeInProgress&&this.writeBuffer.length>0&&(this._writeInProgress=!0,setTimeout((function(){t._innerWrite()}))))},t.prototype._innerWrite=function(){var e=this;this._isDisposed&&(this.writeBuffer=[]);for(var t=this.writeBuffer.splice(0,300);t.length>0;){var i=t.shift();this._xoffSentToCatchUp&&0===t.length&&0===this.writeBuffer.length&&(this.handler(u.C0.DC1),this._xoffSentToCatchUp=!1),this._refreshStart=this.buffer.y,this._refreshEnd=this.buffer.y,this._inputHandler.parse(i),this.updateRange(this.buffer.y),this.refresh(this._refreshStart,this._refreshEnd)}this.writeBuffer.length>0?setTimeout((function(){return e._innerWrite()}),0):this._writeInProgress=!1},t.prototype.writeln=function(e){this.write(e+"\r\n")},t.prototype.attachCustomKeyEventHandler=function(e){this._customKeyEventHandler=e},t.prototype.registerLinkMatcher=function(e,t,i){var r=this.linkifier.registerLinkMatcher(e,t,i);return this.refresh(0,this.rows-1),r},t.prototype.deregisterLinkMatcher=function(e){this.linkifier.deregisterLinkMatcher(e)&&this.refresh(0,this.rows-1)},t.prototype.registerCharacterJoiner=function(e){var t=this.renderer.registerCharacterJoiner(e);return this.refresh(0,this.rows-1),t},t.prototype.deregisterCharacterJoiner=function(e){this.renderer.deregisterCharacterJoiner(e)&&this.refresh(0,this.rows-1)},Object.defineProperty(t.prototype,"markers",{get:function(){return this.buffer.markers},enumerable:!0,configurable:!0}),t.prototype.addMarker=function(e){if(this.buffer===this.buffers.normal)return this.buffer.addMarker(this.buffer.ybase+this.buffer.y+e)},t.prototype.hasSelection=function(){return!!this.selectionManager&&this.selectionManager.hasSelection},t.prototype.getSelection=function(){return this.selectionManager?this.selectionManager.selectionText:""},t.prototype.clearSelection=function(){this.selectionManager&&this.selectionManager.clearSelection()},t.prototype.selectAll=function(){this.selectionManager&&this.selectionManager.selectAll()},t.prototype.selectLines=function(e,t){this.selectionManager&&this.selectionManager.selectLines(e,t)},t.prototype._keyDown=function(e){if(this._customKeyEventHandler&&!1===this._customKeyEventHandler(e))return!1;if(!this._compositionHelper.keydown(e))return this.buffer.ybase!==this.buffer.ydisp&&this.scrollToBottom(),!1;var t=R.evaluateKeyboardEvent(e,this.applicationCursor,this.browser.isMac,this.options.macOptionIsMeta);if(this.updateCursorStyle(e),3===t.type||2===t.type){var i=this.rows-1;return this.scrollLines(2===t.type?-i:i),this.cancel(e,!0)}return 1===t.type&&this.selectAll(),!!this._isThirdLevelShift(this.browser,e)||(t.cancel&&this.cancel(e,!0),!t.key||(this.emit("keydown",e),this.emit("key",t.key,e),this.showCursor(),this.handler(t.key),this.cancel(e,!0)))},t.prototype._isThirdLevelShift=function(e,t){var i=e.isMac&&!this.options.macOptionIsMeta&&t.altKey&&!t.ctrlKey&&!t.metaKey||e.isMSWindows&&t.altKey&&t.ctrlKey&&!t.metaKey;return"keypress"===t.type?i:i&&(!t.keyCode||t.keyCode>47)},t.prototype.setgLevel=function(e){this.glevel=e,this.charset=this.charsets[e]},t.prototype.setgCharset=function(e,t){this.charsets[e]=t,this.glevel===e&&(this.charset=t)},t.prototype._keyUp=function(e){this.updateCursorStyle(e)},t.prototype._keyPress=function(e){var t;if(this._customKeyEventHandler&&!1===this._customKeyEventHandler(e))return!1;if(this.cancel(e),e.charCode)t=e.charCode;else if(null===e.which||void 0===e.which)t=e.keyCode;else{if(0===e.which||0===e.charCode)return!1;t=e.which}return!(!t||(e.altKey||e.ctrlKey||e.metaKey)&&!this._isThirdLevelShift(this.browser,e))&&(t=String.fromCharCode(t),this.emit("keypress",t,e),this.emit("key",t,e),this.showCursor(),this.handler(t),!0)},t.prototype.bell=function(){var e=this;this.emit("bell"),this._soundBell()&&this.soundManager.playBellSound(),this._visualBell()&&(this.element.classList.add("visual-bell-active"),clearTimeout(this._visualBellTimer),this._visualBellTimer=window.setTimeout((function(){e.element.classList.remove("visual-bell-active")}),200))},t.prototype.log=function(e,t){this.options.debug&&this._context.console&&this._context.console.log&&this._context.console.log(e,t)},t.prototype.error=function(e,t){this.options.debug&&this._context.console&&this._context.console.error&&this._context.console.error(e,t)},t.prototype.resize=function(e,t){isNaN(e)||isNaN(t)||(e!==this.cols||t!==this.rows?(e<1&&(e=1),t<1&&(t=1),this.buffers.resize(e,t),this.cols=e,this.rows=t,this.buffers.setupTabStops(this.cols),this.charMeasure&&this.charMeasure.measure(this.options),this.refresh(0,this.rows-1),this.emit("resize",{cols:e,rows:t})):!this.charMeasure||this.charMeasure.width&&this.charMeasure.height||this.charMeasure.measure(this.options))},t.prototype.updateRange=function(e){ethis._refreshEnd&&(this._refreshEnd=e)},t.prototype.maxRange=function(){this._refreshStart=0,this._refreshEnd=this.rows-1},t.prototype.clear=function(){if(0!==this.buffer.ybase||0!==this.buffer.y){this.buffer.lines.set(0,this.buffer.lines.get(this.buffer.ybase+this.buffer.y)),this.buffer.lines.length=1,this.buffer.ydisp=0,this.buffer.ybase=0,this.buffer.y=0;for(var e=1;ethis.buffer.scrollBottom&&(this.buffer.y--,this.scroll()),this.buffer.x>=this.cols&&this.buffer.x--},t.prototype.reverseIndex=function(){if(this.buffer.y===this.buffer.scrollTop){var e=this.buffer.scrollBottom-this.buffer.scrollTop;this.buffer.lines.shiftElements(this.buffer.y+this.buffer.ybase,e,1),this.buffer.lines.set(this.buffer.y+this.buffer.ybase,M.BufferLine.blankLine(this.cols,this.eraseAttr())),this.updateRange(this.buffer.scrollTop),this.updateRange(this.buffer.scrollBottom)}else this.buffer.y--},t.prototype.reset=function(){this.options.rows=this.rows,this.options.cols=this.cols;var e=this._customKeyEventHandler,t=this._inputHandler,i=this.cursorState;this._setup(),this._customKeyEventHandler=e,this._inputHandler=t,this.cursorState=i,this.refresh(0,this.rows-1),this.viewport&&this.viewport.syncScrollArea()},t.prototype.tabSet=function(){this.buffer.tabs[this.buffer.x]=!0},t.prototype.cancel=function(e,t){if(this.options.cancelEvents||t)return e.preventDefault(),e.stopPropagation(),!1},t.prototype.matchColor=function(e,t,i){var r=e<<16|t<<8|i;if(null!==I[r]&&void 0!==I[r])return I[r];for(var n,s,o=1/0,a=-1,l=0;l>>24,n>>>16&255,n>>>8&255))){a=l;break}sthis._length)for(var t=this._length;t=e;n--)this._array[this._getCyclicIndex(n+i.length)]=this._array[this._getCyclicIndex(n)];for(n=0;nthis.maxLength){var s=this._length+i.length-this.maxLength;this._startIndex+=s,this._length=this.maxLength,this.emit("trim",s)}else this._length+=i.length}},t.prototype.trimStart=function(e){e>this._length&&(e=this._length),this._startIndex+=e,this._length-=e,this.emit("trim",e)},t.prototype.shiftElements=function(e,t,i){if(!(t<=0)){if(e<0||e>=this._length)throw new Error("start argument out of range");if(e+i<0)throw new Error("Cannot shift elements in list beyond index 0");if(i>0){for(var r=t-1;r>=0;r--)this.set(e+r+i,this.get(e+r));var n=e+t+i-this._length;if(n>0)for(this._length+=n;this._length>this.maxLength;)this._length--,this._startIndex++,this.emit("trim",1)}else for(r=0;r0&&e._terminal.handler(i)}}),0)},e.prototype.updateCompositionElements=function(e){var t=this;if(this._isComposing){if(this._terminal.buffer.isCursorInViewport){var i=Math.ceil(this._terminal.charMeasure.height*this._terminal.options.lineHeight),r=this._terminal.buffer.y*i,n=this._terminal.buffer.x*this._terminal.charMeasure.width;this._compositionView.style.left=n+"px",this._compositionView.style.top=r+"px",this._compositionView.style.height=i+"px",this._compositionView.style.lineHeight=i+"px";var s=this._compositionView.getBoundingClientRect();this._textarea.style.left=n+"px",this._textarea.style.top=r+"px",this._textarea.style.width=s.width+"px",this._textarea.style.height=s.height+"px",this._textarea.style.lineHeight=s.height+"px"}e||setTimeout((function(){return t.updateCompositionElements(!0)}),0)}},e.prototype._clearTextareaPosition=function(){this._textarea.style.left="",this._textarea.style.top=""},e}();t.CompositionHelper=r},5726:function(e,t,i){"use strict";var r,n=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(e,t)},function(e,t){function i(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)});Object.defineProperty(t,"__esModule",{value:!0});var s=i(1026),o=i(1252),a=function(e){function t(t,i,r,n){var s=e.call(this)||this;return s._terminal=t,s._viewportElement=i,s._scrollArea=r,s._charMeasure=n,s.scrollBarWidth=0,s._currentRowHeight=0,s._lastRecordedBufferLength=0,s._lastRecordedViewportHeight=0,s._lastRecordedBufferHeight=0,s._lastScrollTop=0,s._wheelPartialScroll=0,s._refreshAnimationFrame=null,s._ignoreNextScrollEvent=!1,s.scrollBarWidth=s._viewportElement.offsetWidth-s._scrollArea.offsetWidth||15,s.register(o.addDisposableDomListener(s._viewportElement,"scroll",s._onScroll.bind(s))),setTimeout((function(){return s.syncScrollArea()}),0),s}return n(t,e),t.prototype.onThemeChanged=function(e){this._viewportElement.style.backgroundColor=e.background.css},t.prototype._refresh=function(){var e=this;null===this._refreshAnimationFrame&&(this._refreshAnimationFrame=requestAnimationFrame((function(){return e._innerRefresh()})))},t.prototype._innerRefresh=function(){if(this._charMeasure.height>0){this._currentRowHeight=this._terminal.renderer.dimensions.scaledCellHeight/window.devicePixelRatio,this._lastRecordedViewportHeight=this._viewportElement.offsetHeight;var e=Math.round(this._currentRowHeight*this._lastRecordedBufferLength)+(this._lastRecordedViewportHeight-this._terminal.renderer.dimensions.canvasHeight);this._lastRecordedBufferHeight!==e&&(this._lastRecordedBufferHeight=e,this._scrollArea.style.height=this._lastRecordedBufferHeight+"px")}var t=this._terminal.buffer.ydisp*this._currentRowHeight;this._viewportElement.scrollTop!==t&&(this._ignoreNextScrollEvent=!0,this._viewportElement.scrollTop=t),this._refreshAnimationFrame=null},t.prototype.syncScrollArea=function(){if(this._lastRecordedBufferLength!==this._terminal.buffer.lines.length)return this._lastRecordedBufferLength=this._terminal.buffer.lines.length,void this._refresh();if(this._lastRecordedViewportHeight===this._terminal.renderer.dimensions.canvasHeight){var e=this._terminal.buffer.ydisp*this._currentRowHeight;this._lastScrollTop===e&&this._lastScrollTop===this._viewportElement.scrollTop&&this._terminal.renderer.dimensions.scaledCellHeight/window.devicePixelRatio===this._currentRowHeight||this._refresh()}else this._refresh()},t.prototype._onScroll=function(e){if(this._lastScrollTop=this._viewportElement.scrollTop,this._viewportElement.offsetParent)if(this._ignoreNextScrollEvent)this._ignoreNextScrollEvent=!1;else{var t=Math.round(this._lastScrollTop/this._currentRowHeight)-this._terminal.buffer.ydisp;this._terminal.scrollLines(t,!0)}},t.prototype.onWheel=function(e){var t=this._getPixelsScrolled(e);0!==t&&(this._viewportElement.scrollTop+=t,e.preventDefault())},t.prototype._getPixelsScrolled=function(e){if(0===e.deltaY)return 0;var t=e.deltaY;return e.deltaMode===WheelEvent.DOM_DELTA_LINE?t*=this._currentRowHeight:e.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(t*=this._currentRowHeight*this._terminal.rows),t},t.prototype.getLinesScrolled=function(e){if(0===e.deltaY)return 0;var t=e.deltaY;return e.deltaMode===WheelEvent.DOM_DELTA_PIXEL?(t/=this._currentRowHeight+0,this._wheelPartialScroll+=t,t=Math.floor(Math.abs(this._wheelPartialScroll))*(this._wheelPartialScroll>0?1:-1),this._wheelPartialScroll%=1):e.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(t*=this._terminal.rows),t},t.prototype.onTouchStart=function(e){this._lastTouchY=e.touches[0].pageY},t.prototype.onTouchMove=function(e){var t=this._lastTouchY-e.touches[0].pageY;this._lastTouchY=e.touches[0].pageY,0!==t&&(this._viewportElement.scrollTop+=t,e.preventDefault())},t}(s.Disposable);t.Viewport=a},5727:function(e,t,i){"use strict";function r(e){return e.replace(/\r?\n/g,"\r")}function n(e,t){return t?"[200~"+e+"[201~":e}function s(e,t){t.style.position="fixed",t.style.width="20px",t.style.height="20px",t.style.left=e.clientX-10+"px",t.style.top=e.clientY-10+"px",t.style.zIndex="1000",t.focus(),setTimeout((function(){t.style.position=null,t.style.width=null,t.style.height=null,t.style.left=null,t.style.top=null,t.style.zIndex=null}),200)}Object.defineProperty(t,"__esModule",{value:!0}),t.prepareTextForTerminal=r,t.bracketTextForPaste=n,t.copyHandler=function(e,t,i){t.browser.isMSIE?window.clipboardData.setData("Text",i.selectionText):e.clipboardData.setData("text/plain",i.selectionText),e.preventDefault()},t.pasteHandler=function(e,t){e.stopPropagation();var i=function(i){i=n(i=r(i),t.bracketedPasteMode),t.handler(i),t.textarea.value="",t.emit("paste",i),t.cancel(e)};t.browser.isMSIE?window.clipboardData&&i(window.clipboardData.getData("Text")):e.clipboardData&&i(e.clipboardData.getData("text/plain"))},t.moveTextAreaUnderMouseCursor=s,t.rightClickHandler=function(e,t,i,r){s(e,t),r&&!i.isClickInSelection(e)&&i.selectWordAtCursor(e),t.value=i.selectionText,t.select()}},5728:function(e,t,i){"use strict";var r,n=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(e,t)},function(e,t){function i(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)});Object.defineProperty(t,"__esModule",{value:!0});var s=i(1253),o=i(5729),a=i(922),l=i(2007),h=i(5730),c=i(1026),u=i(1462),_={"(":0,")":1,"*":2,"+":3,"-":1,".":2},f=function(){function e(e){this._terminal=e}return e.prototype.hook=function(e,t,i){this._data=""},e.prototype.put=function(e,t,i){this._data+=e.substring(t,i)},e.prototype.unhook=function(){switch(this._data){case'"q':return this._terminal.handler(s.C0.ESC+'P1$r0"q'+s.C0.ESC+"\\");case'"p':return this._terminal.handler(s.C0.ESC+'P1$r61"p'+s.C0.ESC+"\\");case"r":var e=this._terminal.buffer.scrollTop+1+";"+(this._terminal.buffer.scrollBottom+1)+"r";return this._terminal.handler(s.C0.ESC+"P1$r"+e+s.C0.ESC+"\\");case"m":return this._terminal.handler(s.C0.ESC+"P1$r0m"+s.C0.ESC+"\\");case" q":var t={block:2,underline:4,bar:6}[this._terminal.getOption("cursorStyle")];return t-=this._terminal.getOption("cursorBlink"),this._terminal.handler(s.C0.ESC+"P1$r"+t+" q"+s.C0.ESC+"\\");default:this._terminal.error("Unknown DCS $q %s",this._data),this._terminal.handler(s.C0.ESC+"P0$r"+s.C0.ESC+"\\")}},e}(),d=function(e){function t(t,i){void 0===i&&(i=new h.EscapeSequenceParser);var r=e.call(this)||this;r._terminal=t,r._parser=i,r.register(r._parser),r._surrogateHigh="",r._parser.setCsiHandlerFallback((function(e,t,i){r._terminal.error("Unknown CSI code: ",{collect:e,params:t,flag:String.fromCharCode(i)})})),r._parser.setEscHandlerFallback((function(e,t){r._terminal.error("Unknown ESC code: ",{collect:e,flag:String.fromCharCode(t)})})),r._parser.setExecuteHandlerFallback((function(e){r._terminal.error("Unknown EXECUTE code: ",{code:e})})),r._parser.setOscHandlerFallback((function(e,t){r._terminal.error("Unknown OSC code: ",{identifier:e,data:t})})),r._parser.setPrintHandler((function(e,t,i){return r.print(e,t,i)})),r._parser.setCsiHandler("@",(function(e,t){return r.insertChars(e)})),r._parser.setCsiHandler("A",(function(e,t){return r.cursorUp(e)})),r._parser.setCsiHandler("B",(function(e,t){return r.cursorDown(e)})),r._parser.setCsiHandler("C",(function(e,t){return r.cursorForward(e)})),r._parser.setCsiHandler("D",(function(e,t){return r.cursorBackward(e)})),r._parser.setCsiHandler("E",(function(e,t){return r.cursorNextLine(e)})),r._parser.setCsiHandler("F",(function(e,t){return r.cursorPrecedingLine(e)})),r._parser.setCsiHandler("G",(function(e,t){return r.cursorCharAbsolute(e)})),r._parser.setCsiHandler("H",(function(e,t){return r.cursorPosition(e)})),r._parser.setCsiHandler("I",(function(e,t){return r.cursorForwardTab(e)})),r._parser.setCsiHandler("J",(function(e,t){return r.eraseInDisplay(e)})),r._parser.setCsiHandler("K",(function(e,t){return r.eraseInLine(e)})),r._parser.setCsiHandler("L",(function(e,t){return r.insertLines(e)})),r._parser.setCsiHandler("M",(function(e,t){return r.deleteLines(e)})),r._parser.setCsiHandler("P",(function(e,t){return r.deleteChars(e)})),r._parser.setCsiHandler("S",(function(e,t){return r.scrollUp(e)})),r._parser.setCsiHandler("T",(function(e,t){return r.scrollDown(e,t)})),r._parser.setCsiHandler("X",(function(e,t){return r.eraseChars(e)})),r._parser.setCsiHandler("Z",(function(e,t){return r.cursorBackwardTab(e)})),r._parser.setCsiHandler("`",(function(e,t){return r.charPosAbsolute(e)})),r._parser.setCsiHandler("a",(function(e,t){return r.hPositionRelative(e)})),r._parser.setCsiHandler("b",(function(e,t){return r.repeatPrecedingCharacter(e)})),r._parser.setCsiHandler("c",(function(e,t){return r.sendDeviceAttributes(e,t)})),r._parser.setCsiHandler("d",(function(e,t){return r.linePosAbsolute(e)})),r._parser.setCsiHandler("e",(function(e,t){return r.vPositionRelative(e)})),r._parser.setCsiHandler("f",(function(e,t){return r.hVPosition(e)})),r._parser.setCsiHandler("g",(function(e,t){return r.tabClear(e)})),r._parser.setCsiHandler("h",(function(e,t){return r.setMode(e,t)})),r._parser.setCsiHandler("l",(function(e,t){return r.resetMode(e,t)})),r._parser.setCsiHandler("m",(function(e,t){return r.charAttributes(e)})),r._parser.setCsiHandler("n",(function(e,t){return r.deviceStatus(e,t)})),r._parser.setCsiHandler("p",(function(e,t){return r.softReset(e,t)})),r._parser.setCsiHandler("q",(function(e,t){return r.setCursorStyle(e,t)})),r._parser.setCsiHandler("r",(function(e,t){return r.setScrollRegion(e,t)})),r._parser.setCsiHandler("s",(function(e,t){return r.saveCursor(e)})),r._parser.setCsiHandler("u",(function(e,t){return r.restoreCursor(e)})),r._parser.setExecuteHandler(s.C0.BEL,(function(){return r.bell()})),r._parser.setExecuteHandler(s.C0.LF,(function(){return r.lineFeed()})),r._parser.setExecuteHandler(s.C0.VT,(function(){return r.lineFeed()})),r._parser.setExecuteHandler(s.C0.FF,(function(){return r.lineFeed()})),r._parser.setExecuteHandler(s.C0.CR,(function(){return r.carriageReturn()})),r._parser.setExecuteHandler(s.C0.BS,(function(){return r.backspace()})),r._parser.setExecuteHandler(s.C0.HT,(function(){return r.tab()})),r._parser.setExecuteHandler(s.C0.SO,(function(){return r.shiftOut()})),r._parser.setExecuteHandler(s.C0.SI,(function(){return r.shiftIn()})),r._parser.setExecuteHandler(s.C1.IND,(function(){return r.index()})),r._parser.setExecuteHandler(s.C1.NEL,(function(){return r.nextLine()})),r._parser.setExecuteHandler(s.C1.HTS,(function(){return r.tabSet()})),r._parser.setOscHandler(0,(function(e){return r.setTitle(e)})),r._parser.setOscHandler(2,(function(e){return r.setTitle(e)})),r._parser.setEscHandler("7",(function(){return r.saveCursor([])})),r._parser.setEscHandler("8",(function(){return r.restoreCursor([])})),r._parser.setEscHandler("D",(function(){return r.index()})),r._parser.setEscHandler("E",(function(){return r.nextLine()})),r._parser.setEscHandler("H",(function(){return r.tabSet()})),r._parser.setEscHandler("M",(function(){return r.reverseIndex()})),r._parser.setEscHandler("=",(function(){return r.keypadApplicationMode()})),r._parser.setEscHandler(">",(function(){return r.keypadNumericMode()})),r._parser.setEscHandler("c",(function(){return r.reset()})),r._parser.setEscHandler("n",(function(){return r.setgLevel(2)})),r._parser.setEscHandler("o",(function(){return r.setgLevel(3)})),r._parser.setEscHandler("|",(function(){return r.setgLevel(3)})),r._parser.setEscHandler("}",(function(){return r.setgLevel(2)})),r._parser.setEscHandler("~",(function(){return r.setgLevel(1)})),r._parser.setEscHandler("%@",(function(){return r.selectDefaultCharset()})),r._parser.setEscHandler("%G",(function(){return r.selectDefaultCharset()}));var n=function(e){a._parser.setEscHandler("("+e,(function(){return r.selectCharset("("+e)})),a._parser.setEscHandler(")"+e,(function(){return r.selectCharset(")"+e)})),a._parser.setEscHandler("*"+e,(function(){return r.selectCharset("*"+e)})),a._parser.setEscHandler("+"+e,(function(){return r.selectCharset("+"+e)})),a._parser.setEscHandler("-"+e,(function(){return r.selectCharset("-"+e)})),a._parser.setEscHandler("."+e,(function(){return r.selectCharset("."+e)})),a._parser.setEscHandler("/"+e,(function(){return r.selectCharset("/"+e)}))},a=this;for(var l in o.CHARSETS)n(l);return r._parser.setErrorHandler((function(e){return r._terminal.error("Parsing error: ",e),e})),r._parser.setDcsHandler("$q",new f(r._terminal)),r}return n(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this),this._terminal=null},t.prototype.parse=function(e){if(this._terminal){var t=this._terminal.buffer,i=t.x,r=t.y;this._terminal.debug&&this._terminal.log("data: "+e),this._surrogateHigh&&(e=this._surrogateHigh+e,this._surrogateHigh=""),this._parser.parse(e),(t=this._terminal.buffer).x===i&&t.y===r||this._terminal.emit("cursormove")}},t.prototype.print=function(e,t,i){var r,n,s,o,h=this._terminal.buffer,c=this._terminal.charset,u=this._terminal.options.screenReaderMode,_=this._terminal.cols,f=this._terminal.wraparoundMode,d=this._terminal.insertMode,p=this._terminal.curAttr,m=h.lines.get(h.y+h.ybase);this._terminal.updateRange(h.y);for(var y=t;y=_)if(f)h.x=0,h.y++,h.y>h.scrollBottom?(h.y--,this._terminal.scroll(!0)):h.lines.get(h.y).isWrapped=!0,m=h.lines.get(h.y+h.ybase);else if(2===o)continue;if(d)for(var C=0;Ce.scrollBottom&&(e.y--,this._terminal.scroll()),e.x>=this._terminal.cols&&e.x--,this._terminal.emit("linefeed")},t.prototype.carriageReturn=function(){this._terminal.buffer.x=0},t.prototype.backspace=function(){this._terminal.buffer.x>0&&this._terminal.buffer.x--},t.prototype.tab=function(){var e=this._terminal.buffer.x;this._terminal.buffer.x=this._terminal.buffer.nextStop(),this._terminal.options.screenReaderMode&&this._terminal.emit("a11y.tab",this._terminal.buffer.x-e)},t.prototype.shiftOut=function(){this._terminal.setgLevel(1)},t.prototype.shiftIn=function(){this._terminal.setgLevel(0)},t.prototype.insertChars=function(e){this._terminal.buffer.lines.get(this._terminal.buffer.y+this._terminal.buffer.ybase).insertCells(this._terminal.buffer.x,e[0]||1,[this._terminal.eraseAttr(),a.NULL_CELL_CHAR,a.NULL_CELL_WIDTH,a.NULL_CELL_CODE]),this._terminal.updateRange(this._terminal.buffer.y)},t.prototype.cursorUp=function(e){var t=e[0];t<1&&(t=1),this._terminal.buffer.y-=t,this._terminal.buffer.y<0&&(this._terminal.buffer.y=0)},t.prototype.cursorDown=function(e){var t=e[0];t<1&&(t=1),this._terminal.buffer.y+=t,this._terminal.buffer.y>=this._terminal.rows&&(this._terminal.buffer.y=this._terminal.rows-1),this._terminal.buffer.x>=this._terminal.cols&&this._terminal.buffer.x--},t.prototype.cursorForward=function(e){var t=e[0];t<1&&(t=1),this._terminal.buffer.x+=t,this._terminal.buffer.x>=this._terminal.cols&&(this._terminal.buffer.x=this._terminal.cols-1)},t.prototype.cursorBackward=function(e){var t=e[0];t<1&&(t=1),this._terminal.buffer.x>=this._terminal.cols&&this._terminal.buffer.x--,this._terminal.buffer.x-=t,this._terminal.buffer.x<0&&(this._terminal.buffer.x=0)},t.prototype.cursorNextLine=function(e){var t=e[0];t<1&&(t=1),this._terminal.buffer.y+=t,this._terminal.buffer.y>=this._terminal.rows&&(this._terminal.buffer.y=this._terminal.rows-1),this._terminal.buffer.x=0},t.prototype.cursorPrecedingLine=function(e){var t=e[0];t<1&&(t=1),this._terminal.buffer.y-=t,this._terminal.buffer.y<0&&(this._terminal.buffer.y=0),this._terminal.buffer.x=0},t.prototype.cursorCharAbsolute=function(e){var t=e[0];t<1&&(t=1),this._terminal.buffer.x=t-1},t.prototype.cursorPosition=function(e){var t,i=e[0]-1;t=e.length>=2?e[1]-1:0,i<0?i=0:i>=this._terminal.rows&&(i=this._terminal.rows-1),t<0?t=0:t>=this._terminal.cols&&(t=this._terminal.cols-1),this._terminal.buffer.x=t,this._terminal.buffer.y=i},t.prototype.cursorForwardTab=function(e){for(var t=e[0]||1;t--;)this._terminal.buffer.x=this._terminal.buffer.nextStop()},t.prototype._eraseInBufferLine=function(e,t,i){this._terminal.buffer.lines.get(this._terminal.buffer.ybase+e).replaceCells(t,i,[this._terminal.eraseAttr(),a.NULL_CELL_CHAR,a.NULL_CELL_WIDTH,a.NULL_CELL_CODE])},t.prototype.eraseInDisplay=function(e){var t;switch(e[0]){case 0:for(t=this._terminal.buffer.y,this._terminal.updateRange(t),this._eraseInBufferLine(t++,this._terminal.buffer.x,this._terminal.cols);t0&&(this._terminal.buffer.lines.trimStart(i),this._terminal.buffer.ybase=Math.max(this._terminal.buffer.ybase-i,0),this._terminal.buffer.ydisp=Math.max(this._terminal.buffer.ydisp-i,0),this._terminal.emit("scroll",0))}},t.prototype.eraseInLine=function(e){switch(e[0]){case 0:this._eraseInBufferLine(this._terminal.buffer.y,this._terminal.buffer.x,this._terminal.cols);break;case 1:this._eraseInBufferLine(this._terminal.buffer.y,0,this._terminal.buffer.x+1);break;case 2:this._eraseInBufferLine(this._terminal.buffer.y,0,this._terminal.cols)}this._terminal.updateRange(this._terminal.buffer.y)},t.prototype.insertLines=function(e){var t=e[0];t<1&&(t=1);for(var i=this._terminal.buffer,r=i.y+i.ybase,n=this._terminal.rows-1-i.scrollBottom,s=this._terminal.rows-1+i.ybase-n+1;t--;)i.lines.splice(s-1,1),i.lines.splice(r,0,u.BufferLine.blankLine(this._terminal.cols,this._terminal.eraseAttr()));this._terminal.updateRange(i.y),this._terminal.updateRange(i.scrollBottom)},t.prototype.deleteLines=function(e){var t=e[0];t<1&&(t=1);var i,r=this._terminal.buffer,n=r.y+r.ybase;for(i=this._terminal.rows-1-r.scrollBottom,i=this._terminal.rows-1+r.ybase-i;t--;)r.lines.splice(n,1),r.lines.splice(i,0,u.BufferLine.blankLine(this._terminal.cols,this._terminal.eraseAttr()));this._terminal.updateRange(r.y),this._terminal.updateRange(r.scrollBottom)},t.prototype.deleteChars=function(e){this._terminal.buffer.lines.get(this._terminal.buffer.y+this._terminal.buffer.ybase).deleteCells(this._terminal.buffer.x,e[0]||1,[this._terminal.eraseAttr(),a.NULL_CELL_CHAR,a.NULL_CELL_WIDTH,a.NULL_CELL_CODE]),this._terminal.updateRange(this._terminal.buffer.y)},t.prototype.scrollUp=function(e){for(var t=e[0]||1,i=this._terminal.buffer;t--;)i.lines.splice(i.ybase+i.scrollTop,1),i.lines.splice(i.ybase+i.scrollBottom,0,u.BufferLine.blankLine(this._terminal.cols,a.DEFAULT_ATTR));this._terminal.updateRange(i.scrollTop),this._terminal.updateRange(i.scrollBottom)},t.prototype.scrollDown=function(e,t){if(e.length<2&&!t){for(var i=e[0]||1,r=this._terminal.buffer;i--;)r.lines.splice(r.ybase+r.scrollBottom,1),r.lines.splice(r.ybase+r.scrollBottom,0,u.BufferLine.blankLine(this._terminal.cols,a.DEFAULT_ATTR));this._terminal.updateRange(r.scrollTop),this._terminal.updateRange(r.scrollBottom)}},t.prototype.eraseChars=function(e){this._terminal.buffer.lines.get(this._terminal.buffer.y+this._terminal.buffer.ybase).replaceCells(this._terminal.buffer.x,this._terminal.buffer.x+(e[0]||1),[this._terminal.eraseAttr(),a.NULL_CELL_CHAR,a.NULL_CELL_WIDTH,a.NULL_CELL_CODE])},t.prototype.cursorBackwardTab=function(e){for(var t=e[0]||1,i=this._terminal.buffer;t--;)i.x=i.prevStop()},t.prototype.charPosAbsolute=function(e){var t=e[0];t<1&&(t=1),this._terminal.buffer.x=t-1,this._terminal.buffer.x>=this._terminal.cols&&(this._terminal.buffer.x=this._terminal.cols-1)},t.prototype.hPositionRelative=function(e){var t=e[0];t<1&&(t=1),this._terminal.buffer.x+=t,this._terminal.buffer.x>=this._terminal.cols&&(this._terminal.buffer.x=this._terminal.cols-1)},t.prototype.repeatPrecedingCharacter=function(e){var t=this._terminal.buffer,i=t.lines.get(t.ybase+t.y);i.replaceCells(t.x,t.x+(e[0]||1),i.get(t.x-1)||[a.DEFAULT_ATTR,a.NULL_CELL_CHAR,a.NULL_CELL_WIDTH,a.NULL_CELL_CODE])},t.prototype.sendDeviceAttributes=function(e,t){e[0]>0||(t?">"===t&&(this._terminal.is("xterm")?this._terminal.handler(s.C0.ESC+"[>0;276;0c"):this._terminal.is("rxvt-unicode")?this._terminal.handler(s.C0.ESC+"[>85;95;0c"):this._terminal.is("linux")?this._terminal.handler(e[0]+"c"):this._terminal.is("screen")&&this._terminal.handler(s.C0.ESC+"[>83;40003;0c")):this._terminal.is("xterm")||this._terminal.is("rxvt-unicode")||this._terminal.is("screen")?this._terminal.handler(s.C0.ESC+"[?1;2c"):this._terminal.is("linux")&&this._terminal.handler(s.C0.ESC+"[?6c"))},t.prototype.linePosAbsolute=function(e){var t=e[0];t<1&&(t=1),this._terminal.buffer.y=t-1,this._terminal.buffer.y>=this._terminal.rows&&(this._terminal.buffer.y=this._terminal.rows-1)},t.prototype.vPositionRelative=function(e){var t=e[0];t<1&&(t=1),this._terminal.buffer.y+=t,this._terminal.buffer.y>=this._terminal.rows&&(this._terminal.buffer.y=this._terminal.rows-1),this._terminal.buffer.x>=this._terminal.cols&&this._terminal.buffer.x--},t.prototype.hVPosition=function(e){e[0]<1&&(e[0]=1),e[1]<1&&(e[1]=1),this._terminal.buffer.y=e[0]-1,this._terminal.buffer.y>=this._terminal.rows&&(this._terminal.buffer.y=this._terminal.rows-1),this._terminal.buffer.x=e[1]-1,this._terminal.buffer.x>=this._terminal.cols&&(this._terminal.buffer.x=this._terminal.cols-1)},t.prototype.tabClear=function(e){var t=e[0];t<=0?delete this._terminal.buffer.tabs[this._terminal.buffer.x]:3===t&&(this._terminal.buffer.tabs={})},t.prototype.setMode=function(e,t){if(e.length>1)for(var i=0;i1e3,this._terminal.mouseEvents=!0,this._terminal.element.classList.add("enable-mouse-events"),this._terminal.selectionManager.disable(),this._terminal.log("Binding to mouse events.");break;case 1004:this._terminal.sendFocus=!0;break;case 1005:this._terminal.utfMouse=!0;break;case 1006:this._terminal.sgrMouse=!0;break;case 1015:this._terminal.urxvtMouse=!0;break;case 25:this._terminal.cursorHidden=!1;break;case 1049:case 47:case 1047:this._terminal.buffers.activateAltBuffer(),this._terminal.viewport.syncScrollArea(),this._terminal.showCursor();break;case 2004:this._terminal.bracketedPasteMode=!0}}else switch(e[0]){case 4:this._terminal.insertMode=!0}},t.prototype.resetMode=function(e,t){if(e.length>1)for(var i=0;i>18,n=this._terminal.curAttr>>9&511,s=511&this._terminal.curAttr,o=0;o=30&&t<=37?n=t-30:t>=40&&t<=47?s=t-40:t>=90&&t<=97?n=(t+=8)-90:t>=100&&t<=107?s=(t+=8)-100:0===t?(r=a.DEFAULT_ATTR>>18,n=a.DEFAULT_ATTR>>9&511,s=511&a.DEFAULT_ATTR):1===t?r|=1:3===t?r|=64:4===t?r|=2:5===t?r|=4:7===t?r|=8:8===t?r|=16:2===t?r|=32:22===t?(r&=-2,r&=-33):23===t?r&=-65:24===t?r&=-3:25===t?r&=-5:27===t?r&=-9:28===t?r&=-17:39===t?n=a.DEFAULT_ATTR>>9&511:49===t?s=511&a.DEFAULT_ATTR:38===t?2===e[o+1]?(o+=2,-1===(n=this._terminal.matchColor(255&e[o],255&e[o+1],255&e[o+2]))&&(n=511),o+=2):5===e[o+1]&&(n=t=255&e[o+=2]):48===t?2===e[o+1]?(o+=2,-1===(s=this._terminal.matchColor(255&e[o],255&e[o+1],255&e[o+2]))&&(s=511),o+=2):5===e[o+1]&&(s=t=255&e[o+=2]):100===t?(n=a.DEFAULT_ATTR>>9&511,s=511&a.DEFAULT_ATTR):this._terminal.error("Unknown SGR attribute: %d.",t);this._terminal.curAttr=r<<18|n<<9|s}else this._terminal.curAttr=a.DEFAULT_ATTR},t.prototype.deviceStatus=function(e,t){if(t){if("?"===t)switch(e[0]){case 6:i=this._terminal.buffer.y+1,r=this._terminal.buffer.x+1;this._terminal.emit("data",s.C0.ESC+"[?"+i+";"+r+"R")}}else switch(e[0]){case 5:this._terminal.emit("data",s.C0.ESC+"[0n");break;case 6:var i=this._terminal.buffer.y+1,r=this._terminal.buffer.x+1;this._terminal.emit("data",s.C0.ESC+"["+i+";"+r+"R")}},t.prototype.softReset=function(e,t){"!"===t&&(this._terminal.cursorHidden=!1,this._terminal.insertMode=!1,this._terminal.originMode=!1,this._terminal.wraparoundMode=!0,this._terminal.applicationKeypad=!1,this._terminal.viewport.syncScrollArea(),this._terminal.applicationCursor=!1,this._terminal.buffer.scrollTop=0,this._terminal.buffer.scrollBottom=this._terminal.rows-1,this._terminal.curAttr=a.DEFAULT_ATTR,this._terminal.buffer.x=this._terminal.buffer.y=0,this._terminal.charset=null,this._terminal.glevel=0,this._terminal.charsets=[null])},t.prototype.setCursorStyle=function(e,t){if(" "===t){var i=e[0]<1?1:e[0];switch(i){case 1:case 2:this._terminal.setOption("cursorStyle","block");break;case 3:case 4:this._terminal.setOption("cursorStyle","underline");break;case 5:case 6:this._terminal.setOption("cursorStyle","bar")}var r=i%2==1;this._terminal.setOption("cursorBlink",r)}},t.prototype.setScrollRegion=function(e,t){t||(this._terminal.buffer.scrollTop=(e[0]||1)-1,this._terminal.buffer.scrollBottom=(e[1]&&e[1]<=this._terminal.rows?e[1]:this._terminal.rows)-1,this._terminal.buffer.x=0,this._terminal.buffer.y=0)},t.prototype.saveCursor=function(e){this._terminal.buffer.savedX=this._terminal.buffer.x,this._terminal.buffer.savedY=this._terminal.buffer.y,this._terminal.savedCurAttr=this._terminal.curAttr},t.prototype.restoreCursor=function(e){this._terminal.buffer.x=this._terminal.buffer.savedX||0,this._terminal.buffer.y=this._terminal.buffer.savedY||0,this._terminal.curAttr=this._terminal.savedCurAttr||a.DEFAULT_ATTR},t.prototype.setTitle=function(e){this._terminal.handleTitle(e)},t.prototype.nextLine=function(){this._terminal.buffer.x=0,this.index()},t.prototype.keypadApplicationMode=function(){this._terminal.log("Serial port requested application keypad."),this._terminal.applicationKeypad=!0,this._terminal.viewport&&this._terminal.viewport.syncScrollArea()},t.prototype.keypadNumericMode=function(){this._terminal.log("Switching back to normal keypad."),this._terminal.applicationKeypad=!1,this._terminal.viewport&&this._terminal.viewport.syncScrollArea()},t.prototype.selectDefaultCharset=function(){this._terminal.setgLevel(0),this._terminal.setgCharset(0,o.DEFAULT_CHARSET)},t.prototype.selectCharset=function(e){if(2!==e.length)return this.selectDefaultCharset();"/"!==e[0]&&this._terminal.setgCharset(_[e[0]],o.CHARSETS[e[1]]||o.DEFAULT_CHARSET)},t.prototype.index=function(){this._terminal.index()},t.prototype.tabSet=function(){this._terminal.tabSet()},t.prototype.reverseIndex=function(){this._terminal.reverseIndex()},t.prototype.reset=function(){this._parser.reset(),this._terminal.reset()},t.prototype.setgLevel=function(e){this._terminal.setgLevel(e)},t}(c.Disposable);t.InputHandler=d},5729:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CHARSETS={},t.DEFAULT_CHARSET=t.CHARSETS.B,t.CHARSETS[0]={"`":"◆",a:"▒",b:"\t",c:"\f",d:"\r",e:"\n",f:"°",g:"±",h:"␤",i:"\v",j:"┘",k:"┐",l:"┌",m:"└",n:"┼",o:"⎺",p:"⎻",q:"─",r:"⎼",s:"⎽",t:"├",u:"┤",v:"┴",w:"┬",x:"│",y:"≤",z:"≥","{":"π","|":"≠","}":"£","~":"·"},t.CHARSETS.A={"#":"£"},t.CHARSETS.B=null,t.CHARSETS[4]={"#":"£","@":"¾","[":"ij","\\":"½","]":"|","{":"¨","|":"f","}":"¼","~":"´"},t.CHARSETS.C=t.CHARSETS[5]={"[":"Ä","\\":"Ö","]":"Å","^":"Ü","`":"é","{":"ä","|":"ö","}":"å","~":"ü"},t.CHARSETS.R={"#":"£","@":"à","[":"°","\\":"ç","]":"§","{":"é","|":"ù","}":"è","~":"¨"},t.CHARSETS.Q={"@":"à","[":"â","\\":"ç","]":"ê","^":"î","`":"ô","{":"é","|":"ù","}":"è","~":"û"},t.CHARSETS.K={"@":"§","[":"Ä","\\":"Ö","]":"Ü","{":"ä","|":"ö","}":"ü","~":"ß"},t.CHARSETS.Y={"#":"£","@":"§","[":"°","\\":"ç","]":"é","`":"ù","{":"à","|":"ò","}":"è","~":"ì"},t.CHARSETS.E=t.CHARSETS[6]={"@":"Ä","[":"Æ","\\":"Ø","]":"Å","^":"Ü","`":"ä","{":"æ","|":"ø","}":"å","~":"ü"},t.CHARSETS.Z={"#":"£","@":"§","[":"¡","\\":"Ñ","]":"¿","{":"°","|":"ñ","}":"ç"},t.CHARSETS.H=t.CHARSETS[7]={"@":"É","[":"Ä","\\":"Ö","]":"Å","^":"Ü","`":"é","{":"ä","|":"ö","}":"å","~":"ü"},t.CHARSETS["="]={"#":"ù","@":"à","[":"é","\\":"ç","]":"ê","^":"î",_:"è","`":"ô","{":"ä","|":"ö","}":"ü","~":"û"}},5730:function(e,t,i){"use strict";var r,n=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(e,t)},function(e,t){function i(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)});Object.defineProperty(t,"__esModule",{value:!0});var s=i(1026);function o(e,t){for(var i=t-e,r=new Array(i);i--;)r[i]=--t;return r}var a=function(){function e(e){this.table="undefined"==typeof Uint8Array?new Array(e):new Uint8Array(e)}return e.prototype.add=function(e,t,i,r){this.table[t<<8|e]=(0|i)<<4|(void 0===r?t:r)},e.prototype.addMany=function(e,t,i,r){for(var n=0;n31&&t<128){s=~s?s:d;do{d++}while(d31&&e.charCodeAt(d)<128);d--}else if(4===n&&t>47&&t<57)h[h.length-1]=10*h[h.length-1]+t-48;else{switch((i=t<160?c[n<<8|t]:16)>>4){case 2:s=~s?s:d;break;case 3:~s&&(this._printHandler(e,s,d),s=-1),(_=this._executeHandlers[t])?_():this._executeHandlerFb(t);break;case 0:~s?(this._printHandler(e,s,d),s=-1):~o&&(u.put(e,o,d),o=-1);break;case 1:if(t>159)switch(n){case 0:s=~s?s:d;break;case 8:a+=String.fromCharCode(t),i|=8;break;case 6:i|=6;break;case 11:i|=11;break;case 13:o=~o?o:d,i|=13;break;default:r=!0}else r=!0;if(r){if(this._errorHandler({position:d,code:t,currentState:n,print:s,dcs:o,osc:a,collect:l,params:h,abort:!1}).abort)return;r=!1}break;case 7:(_=this._csiHandlers[t])?_(h,l):this._csiHandlerFb(l,h,t);break;case 8:59===t?h.push(0):h[h.length-1]=10*h[h.length-1]+t-48;break;case 9:l+=String.fromCharCode(t);break;case 10:(_=this._escHandlers[l+String.fromCharCode(t)])?_(l,t):this._escHandlerFb(l,t);break;case 11:~s&&(this._printHandler(e,s,d),s=-1),a="",h=[0],l="",o=-1;break;case 12:(u=this._dcsHandlers[l+String.fromCharCode(t)])||(u=this._dcsHandlerFb),u.hook(l,h,t);break;case 13:o=~o?o:d;break;case 14:u&&(~o&&u.put(e,o,d),u.unhook(),u=null),27===t&&(i|=1),a="",h=[0],l="",o=-1;break;case 4:~s&&(this._printHandler(e,s,d),s=-1),a="";break;case 5:a+=e.charAt(d);break;case 6:if(a&&24!==t&&26!==t){var p=a.indexOf(";");if(-1===p)this._oscHandlerFb(-1,a);else{var m=parseInt(a.substring(0,p)),y=a.substring(p+1);(_=this._oscHandlers[m])?_(y):this._oscHandlerFb(m,y)}}27===t&&(i|=1),a="",h=[0],l="",o=-1}n=15&i}0===n&&~s?this._printHandler(e,s,e.length):13===n&&~o&&u&&u.put(e,o,e.length),this._osc=a,this._collect=l,this._params=h,this._activeDcsHandler=u,this.currentState=n},i}(s.Disposable);t.EscapeSequenceParser=u},5731:function(e,t,i){"use strict";var r,n=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(e,t)},function(e,t){function i(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)});Object.defineProperty(t,"__esModule",{value:!0});var s=i(5732),o=i(5739),a=i(5740),l=i(1255),h=i(5741),c=i(964),u=i(1464),_=i(2011),f=i(5742),d=function(e){function t(t,i){var r=e.call(this)||this;r._terminal=t,r._isPaused=!1,r._needsFullRefresh=!1;var n=r._terminal.options.allowTransparency;if(r.colorManager=new l.ColorManager(document,n),r._characterJoinerRegistry=new f.CharacterJoinerRegistry(t),i&&r.colorManager.setTheme(i),r._renderLayers=[new s.TextRenderLayer(r._terminal.screenElement,0,r.colorManager.colors,r._characterJoinerRegistry,n),new o.SelectionRenderLayer(r._terminal.screenElement,1,r.colorManager.colors),new h.LinkRenderLayer(r._terminal.screenElement,2,r.colorManager.colors,r._terminal),new a.CursorRenderLayer(r._terminal.screenElement,3,r.colorManager.colors)],r.dimensions={scaledCharWidth:null,scaledCharHeight:null,scaledCellWidth:null,scaledCellHeight:null,scaledCharLeft:null,scaledCharTop:null,scaledCanvasWidth:null,scaledCanvasHeight:null,canvasWidth:null,canvasHeight:null,actualCellWidth:null,actualCellHeight:null},r._devicePixelRatio=window.devicePixelRatio,r._updateDimensions(),r.onOptionsChanged(),r._renderDebouncer=new u.RenderDebouncer(r._terminal,r._renderRows.bind(r)),r._screenDprMonitor=new _.ScreenDprMonitor,r._screenDprMonitor.setListener((function(){return r.onWindowResize(window.devicePixelRatio)})),r.register(r._screenDprMonitor),"IntersectionObserver"in window){var c=new IntersectionObserver((function(e){return r.onIntersectionChange(e[0])}),{threshold:0});c.observe(r._terminal.element),r.register({dispose:function(){return c.disconnect()}})}return r}return n(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this),this._renderLayers.forEach((function(e){return e.dispose()}))},t.prototype.onIntersectionChange=function(e){this._isPaused=0===e.intersectionRatio,!this._isPaused&&this._needsFullRefresh&&this._terminal.refresh(0,this._terminal.rows-1)},t.prototype.onWindowResize=function(e){this._devicePixelRatio!==e&&(this._devicePixelRatio=e,this.onResize(this._terminal.cols,this._terminal.rows))},t.prototype.setTheme=function(e){var t=this;return this.colorManager.setTheme(e),this._renderLayers.forEach((function(e){e.onThemeChanged(t._terminal,t.colorManager.colors),e.reset(t._terminal)})),this._isPaused?this._needsFullRefresh=!0:this._terminal.refresh(0,this._terminal.rows-1),this.colorManager.colors},t.prototype.onResize=function(e,t){var i=this;this._updateDimensions(),this._renderLayers.forEach((function(e){return e.resize(i._terminal,i.dimensions)})),this._isPaused?this._needsFullRefresh=!0:this._terminal.refresh(0,this._terminal.rows-1),this._terminal.screenElement.style.width=this.dimensions.canvasWidth+"px",this._terminal.screenElement.style.height=this.dimensions.canvasHeight+"px",this.emit("resize",{width:this.dimensions.canvasWidth,height:this.dimensions.canvasHeight})},t.prototype.onCharSizeChanged=function(){this.onResize(this._terminal.cols,this._terminal.rows)},t.prototype.onBlur=function(){var e=this;this._runOperation((function(t){return t.onBlur(e._terminal)}))},t.prototype.onFocus=function(){var e=this;this._runOperation((function(t){return t.onFocus(e._terminal)}))},t.prototype.onSelectionChanged=function(e,t,i){var r=this;void 0===i&&(i=!1),this._runOperation((function(n){return n.onSelectionChanged(r._terminal,e,t,i)}))},t.prototype.onCursorMove=function(){var e=this;this._runOperation((function(t){return t.onCursorMove(e._terminal)}))},t.prototype.onOptionsChanged=function(){var e=this;this.colorManager.allowTransparency=this._terminal.options.allowTransparency,this._runOperation((function(t){return t.onOptionsChanged(e._terminal)}))},t.prototype.clear=function(){var e=this;this._runOperation((function(t){return t.reset(e._terminal)}))},t.prototype._runOperation=function(e){this._isPaused?this._needsFullRefresh=!0:this._renderLayers.forEach((function(t){return e(t)}))},t.prototype.refreshRows=function(e,t){this._isPaused?this._needsFullRefresh=!0:this._renderDebouncer.refresh(e,t)},t.prototype._renderRows=function(e,t){var i=this;this._renderLayers.forEach((function(r){return r.onGridChanged(i._terminal,e,t)})),this._terminal.emit("refresh",{start:e,end:t})},t.prototype._updateDimensions=function(){this._terminal.charMeasure.width&&this._terminal.charMeasure.height&&(this.dimensions.scaledCharWidth=Math.floor(this._terminal.charMeasure.width*window.devicePixelRatio),this.dimensions.scaledCharHeight=Math.ceil(this._terminal.charMeasure.height*window.devicePixelRatio),this.dimensions.scaledCellHeight=Math.floor(this.dimensions.scaledCharHeight*this._terminal.options.lineHeight),this.dimensions.scaledCharTop=1===this._terminal.options.lineHeight?0:Math.round((this.dimensions.scaledCellHeight-this.dimensions.scaledCharHeight)/2),this.dimensions.scaledCellWidth=this.dimensions.scaledCharWidth+Math.round(this._terminal.options.letterSpacing),this.dimensions.scaledCharLeft=Math.floor(this._terminal.options.letterSpacing/2),this.dimensions.scaledCanvasHeight=this._terminal.rows*this.dimensions.scaledCellHeight,this.dimensions.scaledCanvasWidth=this._terminal.cols*this.dimensions.scaledCellWidth,this.dimensions.canvasHeight=Math.round(this.dimensions.scaledCanvasHeight/window.devicePixelRatio),this.dimensions.canvasWidth=Math.round(this.dimensions.scaledCanvasWidth/window.devicePixelRatio),this.dimensions.actualCellHeight=this.dimensions.canvasHeight/this._terminal.rows,this.dimensions.actualCellWidth=this.dimensions.canvasWidth/this._terminal.cols)},t.prototype.registerCharacterJoiner=function(e){return this._characterJoinerRegistry.registerCharacterJoiner(e)},t.prototype.deregisterCharacterJoiner=function(e){return this._characterJoinerRegistry.deregisterCharacterJoiner(e)},t}(c.EventEmitter);t.Renderer=d},5732:function(e,t,i){"use strict";var r,n=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(e,t)},function(e,t){function i(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)});Object.defineProperty(t,"__esModule",{value:!0});var s=i(922),o=i(1145),a=i(5733),l=function(e){function t(t,i,r,n,s){var o=e.call(this,t,"text",i,s,r)||this;return o._characterOverlapCache={},o._state=new a.GridCache,o._characterJoinerRegistry=n,o}return n(t,e),t.prototype.resize=function(t,i){e.prototype.resize.call(this,t,i);var r=this._getFont(t,!1,!1);this._characterWidth===i.scaledCharWidth&&this._characterFont===r||(this._characterWidth=i.scaledCharWidth,this._characterFont=r,this._characterOverlapCache={}),this._state.clear(),this._state.resize(t.cols,t.rows)},t.prototype.reset=function(e){this._state.clear(),this.clearAll()},t.prototype._forEachCell=function(e,t,i,r,n){for(var a=t;a<=i;a++)for(var l=a+e.buffer.ydisp,h=e.buffer.lines.get(l),c=r?r.getJoinedCharacters(l):[],u=0;u0&&u===c[0][0]){y=!0;var g=c.shift();d=e.buffer.translateBufferLineToString(l,!0,g[0],g[1]),m=g[1]-g[0],f=1/0,C=g[1]-1}!y&&this._isOverlapping(_)&&C>18,b=511&p,w=p>>9&511;if(8&v){var S=b;b=w,256===(w=S)&&(w=o.INVERTED_DEFAULT_COLOR),257===b&&(b=o.INVERTED_DEFAULT_COLOR)}n(f,d,m,u,a,w,b,v),u=C}}},t.prototype._drawBackground=function(e,t,i){var r=this,n=this._ctx,s=e.cols,a=0,l=0,h=null;n.save(),this._forEachCell(e,t,i,null,(function(e,t,i,c,u,_,f,d){var p=null;f===o.INVERTED_DEFAULT_COLOR?p=r._colors.foreground.css:f<256&&(p=r._colors.ansi[f].css),null===h&&(a=c,l=u),u!==l?(n.fillStyle=h,r.fillCells(a,l,s-a,1),a=c,l=u):h!==p&&(n.fillStyle=h,r.fillCells(a,l,c-a,1),a=c,l=u),h=p})),null!==h&&(n.fillStyle=h,this.fillCells(a,l,s-a,1)),n.restore()},t.prototype._drawForeground=function(e,t,i){var r=this;this._forEachCell(e,t,i,this._characterJoinerRegistry,(function(t,i,n,s,a,l,h,c){16&c||(2&c&&(r._ctx.save(),l===o.INVERTED_DEFAULT_COLOR?r._ctx.fillStyle=r._colors.background.css:r._ctx.fillStyle=l<256?r._colors.ansi[l].css:r._colors.foreground.css,r.fillBottomLineAtCells(s,a,n),r._ctx.restore()),r.drawChars(e,i,t,n,s,a,l,h,!!(1&c),!!(32&c),!!(64&c)))}))},t.prototype.onGridChanged=function(e,t,i){0!==this._state.cache.length&&(this._charAtlas&&this._charAtlas.beginFrame(),this.clearCells(0,t,e.cols,i-t+1),this._drawBackground(e,t,i),this._drawForeground(e,t,i))},t.prototype.onOptionsChanged=function(e){this.setTransparency(e,e.options.allowTransparency)},t.prototype._isOverlapping=function(e){if(1!==e[s.CHAR_DATA_WIDTH_INDEX])return!1;if(e[s.CHAR_DATA_CODE_INDEX]<256)return!1;var t=e[s.CHAR_DATA_CHAR_INDEX];if(this._characterOverlapCache.hasOwnProperty(t))return this._characterOverlapCache[t];this._ctx.save(),this._ctx.font=this._characterFont;var i=Math.floor(this._ctx.measureText(t).width)>this._characterWidth;return this._ctx.restore(),this._characterOverlapCache[t]=i,i},t}(i(1254).BaseRenderLayer);t.TextRenderLayer=l},5733:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(){this.cache=[]}return e.prototype.resize=function(e,t){for(var i=0;i=this.capacity)i=this._head,this._unlinkNode(i),delete this._map[i.key],i.key=e,i.value=t,this._map[e]=i;else{var r=this._nodePool;r.length>0?((i=r.pop()).key=e,i.value=t):i={prev:null,next:null,key:e,value:t},this._map[e]=i,this.size++}this._appendNode(i)},e}();t.default=r},5737:function(e,t,i){"use strict";var r,n=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(e,t)},function(e,t){function i(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)});Object.defineProperty(t,"__esModule",{value:!0});var s=function(e){function t(t,i){return e.call(this)||this}return n(t,e),t.prototype.draw=function(e,t,i,r){return!1},t}(i(1463).default);t.default=s},5738:function(e,t,i){"use strict";var r,n=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(e,t)},function(e,t){function i(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)});Object.defineProperty(t,"__esModule",{value:!0});var s=i(1145),o=i(2010),a=i(2009),l=function(e){function t(t,i){var r=e.call(this)||this;return r._document=t,r._config=i,r._canvasFactory=function(e,t){var i=r._document.createElement("canvas");return i.width=e,i.height=t,i},r}return n(t,e),t.prototype._doWarmUp=function(){var e=this,t=a.generateStaticCharAtlasTexture(window,this._canvasFactory,this._config);t instanceof HTMLCanvasElement?this._texture=t:t.then((function(t){e._texture=t}))},t.prototype._isCached=function(e,t){var i=e.code<256,r=e.fg<16,n=e.fg>=256,s=e.bg>=256;return i&&(r||n)&&s&&!e.italic},t.prototype.draw=function(e,t,i,r){if(null===this._texture||void 0===this._texture)return!1;var n=0;if(t.fg<256?n=2+t.fg+(t.bold?16:0):t.bold&&(n=1),!this._isCached(t,n))return!1;e.save();var a=this._config.scaledCharWidth+o.CHAR_ATLAS_CELL_SPACING,l=this._config.scaledCharHeight+o.CHAR_ATLAS_CELL_SPACING;return t.dim&&(e.globalAlpha=s.DIM_OPACITY),e.drawImage(this._texture,t.code*a,n*l,a,this._config.scaledCharHeight,i,r,a,this._config.scaledCharHeight),e.restore(),!0},t}(i(1463).default);t.default=l},5739:function(e,t,i){"use strict";var r,n=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(e,t)},function(e,t){function i(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)});Object.defineProperty(t,"__esModule",{value:!0});var s=function(e){function t(t,i,r){var n=e.call(this,t,"selection",i,!0,r)||this;return n._clearState(),n}return n(t,e),t.prototype._clearState=function(){this._state={start:null,end:null,columnSelectMode:null,ydisp:null}},t.prototype.resize=function(t,i){e.prototype.resize.call(this,t,i),this._clearState()},t.prototype.reset=function(e){this._state.start&&this._state.end&&(this._clearState(),this.clearAll())},t.prototype.onSelectionChanged=function(e,t,i,r){if(this._didStateChange(t,i,r,e.buffer.ydisp)&&(this.clearAll(),t&&i)){var n=t[1]-e.buffer.ydisp,s=i[1]-e.buffer.ydisp,o=Math.max(n,0),a=Math.min(s,e.rows-1);if(!(o>=e.rows||a<0)){if(this._ctx.fillStyle=this._colors.selection.css,r){var l=t[0],h=i[0]-l,c=a-o+1;this.fillCells(l,o,h,c)}else{l=n===o?t[0]:0;var u=o===a?i[0]:e.cols;this.fillCells(l,o,u-l,1);var _=Math.max(a-o-1,0);if(this.fillCells(0,o+1,e.cols,_),o!==a){var f=s===a?i[0]:e.cols;this.fillCells(0,a,f,1)}}this._state.start=[t[0],t[1]],this._state.end=[i[0],i[1]],this._state.columnSelectMode=r,this._state.ydisp=e.buffer.ydisp}}},t.prototype._didStateChange=function(e,t,i,r){return!this._areCoordinatesEqual(e,this._state.start)||!this._areCoordinatesEqual(t,this._state.end)||i!==this._state.columnSelectMode||r!==this._state.ydisp},t.prototype._areCoordinatesEqual=function(e,t){return!(!e||!t)&&(e[0]===t[0]&&e[1]===t[1])},t}(i(1254).BaseRenderLayer);t.SelectionRenderLayer=s},5740:function(e,t,i){"use strict";var r,n=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(e,t)},function(e,t){function i(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)});Object.defineProperty(t,"__esModule",{value:!0});var s=i(922),o=i(1254),a=function(e){function t(t,i,r){var n=e.call(this,t,"cursor",i,!0,r)||this;return n._state={x:null,y:null,isFocused:null,style:null,width:null},n._cursorRenderers={bar:n._renderBarCursor.bind(n),block:n._renderBlockCursor.bind(n),underline:n._renderUnderlineCursor.bind(n)},n}return n(t,e),t.prototype.resize=function(t,i){e.prototype.resize.call(this,t,i),this._state={x:null,y:null,isFocused:null,style:null,width:null}},t.prototype.reset=function(e){this._clearCursor(),this._cursorBlinkStateManager&&(this._cursorBlinkStateManager.dispose(),this._cursorBlinkStateManager=null,this.onOptionsChanged(e))},t.prototype.onBlur=function(e){this._cursorBlinkStateManager&&this._cursorBlinkStateManager.pause(),e.refresh(e.buffer.y,e.buffer.y)},t.prototype.onFocus=function(e){this._cursorBlinkStateManager?this._cursorBlinkStateManager.resume(e):e.refresh(e.buffer.y,e.buffer.y)},t.prototype.onOptionsChanged=function(e){var t=this;e.options.cursorBlink?this._cursorBlinkStateManager||(this._cursorBlinkStateManager=new l(e,(function(){t._render(e,!0)}))):(this._cursorBlinkStateManager&&(this._cursorBlinkStateManager.dispose(),this._cursorBlinkStateManager=null),e.refresh(e.buffer.y,e.buffer.y))},t.prototype.onCursorMove=function(e){this._cursorBlinkStateManager&&this._cursorBlinkStateManager.restartBlinkAnimation(e)},t.prototype.onGridChanged=function(e,t,i){!this._cursorBlinkStateManager||this._cursorBlinkStateManager.isPaused?this._render(e,!1):this._cursorBlinkStateManager.restartBlinkAnimation(e)},t.prototype._render=function(e,t){if(e.cursorState&&!e.cursorHidden){var i=e.buffer.ybase+e.buffer.y,r=i-e.buffer.ydisp;if(r<0||r>=e.rows)this._clearCursor();else{var n=e.buffer.lines.get(i).get(e.buffer.x);if(n){if(!e.isFocused)return this._clearCursor(),this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._renderBlurCursor(e,e.buffer.x,r,n),this._ctx.restore(),this._state.x=e.buffer.x,this._state.y=r,this._state.isFocused=!1,this._state.style=e.options.cursorStyle,void(this._state.width=n[s.CHAR_DATA_WIDTH_INDEX]);if(!this._cursorBlinkStateManager||this._cursorBlinkStateManager.isCursorVisible){if(this._state){if(this._state.x===e.buffer.x&&this._state.y===r&&this._state.isFocused===e.isFocused&&this._state.style===e.options.cursorStyle&&this._state.width===n[s.CHAR_DATA_WIDTH_INDEX])return;this._clearCursor()}this._ctx.save(),this._cursorRenderers[e.options.cursorStyle||"block"](e,e.buffer.x,r,n),this._ctx.restore(),this._state.x=e.buffer.x,this._state.y=r,this._state.isFocused=!1,this._state.style=e.options.cursorStyle,this._state.width=n[s.CHAR_DATA_WIDTH_INDEX]}else this._clearCursor()}}}else this._clearCursor()},t.prototype._clearCursor=function(){this._state&&(this.clearCells(this._state.x,this._state.y,this._state.width,1),this._state={x:null,y:null,isFocused:null,style:null,width:null})},t.prototype._renderBarCursor=function(e,t,i,r){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this.fillLeftLineAtCell(t,i),this._ctx.restore()},t.prototype._renderBlockCursor=function(e,t,i,r){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this.fillCells(t,i,r[s.CHAR_DATA_WIDTH_INDEX],1),this._ctx.fillStyle=this._colors.cursorAccent.css,this.fillCharTrueColor(e,r,t,i),this._ctx.restore()},t.prototype._renderUnderlineCursor=function(e,t,i,r){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this.fillBottomLineAtCells(t,i),this._ctx.restore()},t.prototype._renderBlurCursor=function(e,t,i,r){this._ctx.save(),this._ctx.strokeStyle=this._colors.cursor.css,this.strokeRectAtCell(t,i,r[s.CHAR_DATA_WIDTH_INDEX],1),this._ctx.restore()},t}(o.BaseRenderLayer);t.CursorRenderLayer=a;var l=function(){function e(e,t){this._renderCallback=t,this.isCursorVisible=!0,e.isFocused&&this._restartInterval()}return Object.defineProperty(e.prototype,"isPaused",{get:function(){return!(this._blinkStartTimeout||this._blinkInterval)},enumerable:!0,configurable:!0}),e.prototype.dispose=function(){this._blinkInterval&&(window.clearInterval(this._blinkInterval),this._blinkInterval=null),this._blinkStartTimeout&&(window.clearTimeout(this._blinkStartTimeout),this._blinkStartTimeout=null),this._animationFrame&&(window.cancelAnimationFrame(this._animationFrame),this._animationFrame=null)},e.prototype.restartBlinkAnimation=function(e){var t=this;this.isPaused||(this._animationTimeRestarted=Date.now(),this.isCursorVisible=!0,this._animationFrame||(this._animationFrame=window.requestAnimationFrame((function(){t._renderCallback(),t._animationFrame=null}))))},e.prototype._restartInterval=function(e){var t=this;void 0===e&&(e=600),this._blinkInterval&&window.clearInterval(this._blinkInterval),this._blinkStartTimeout=setTimeout((function(){if(t._animationTimeRestarted){var e=600-(Date.now()-t._animationTimeRestarted);if(t._animationTimeRestarted=null,e>0)return void t._restartInterval(e)}t.isCursorVisible=!1,t._animationFrame=window.requestAnimationFrame((function(){t._renderCallback(),t._animationFrame=null})),t._blinkInterval=setInterval((function(){if(t._animationTimeRestarted){var e=600-(Date.now()-t._animationTimeRestarted);return t._animationTimeRestarted=null,void t._restartInterval(e)}t.isCursorVisible=!t.isCursorVisible,t._animationFrame=window.requestAnimationFrame((function(){t._renderCallback(),t._animationFrame=null}))}),600)}),e)},e.prototype.pause=function(){this.isCursorVisible=!0,this._blinkInterval&&(window.clearInterval(this._blinkInterval),this._blinkInterval=null),this._blinkStartTimeout&&(window.clearTimeout(this._blinkStartTimeout),this._blinkStartTimeout=null),this._animationFrame&&(window.cancelAnimationFrame(this._animationFrame),this._animationFrame=null)},e.prototype.resume=function(e){this._animationTimeRestarted=null,this._restartInterval(),this.restartBlinkAnimation(e)},e}()},5741:function(e,t,i){"use strict";var r,n=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(e,t)},function(e,t){function i(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)});Object.defineProperty(t,"__esModule",{value:!0});var s=i(1254),o=i(1145),a=function(e){function t(t,i,r,n){var s=e.call(this,t,"link",i,!0,r)||this;return s._state=null,n.linkifier.on("linkhover",(function(e){return s._onLinkHover(e)})),n.linkifier.on("linkleave",(function(e){return s._onLinkLeave(e)})),s}return n(t,e),t.prototype.resize=function(t,i){e.prototype.resize.call(this,t,i),this._state=null},t.prototype.reset=function(e){this._clearCurrentLink()},t.prototype._clearCurrentLink=function(){if(this._state){this.clearCells(this._state.x1,this._state.y1,this._state.cols-this._state.x1,1);var e=this._state.y2-this._state.y1-1;e>0&&this.clearCells(0,this._state.y1+1,this._state.cols,e),this.clearCells(0,this._state.y2,this._state.x2,1),this._state=null}},t.prototype._onLinkHover=function(e){if(e.fg===o.INVERTED_DEFAULT_COLOR?this._ctx.fillStyle=this._colors.background.css:e.fg<256?this._ctx.fillStyle=this._colors.ansi[e.fg].css:this._ctx.fillStyle=this._colors.foreground.css,e.y1===e.y2)this.fillBottomLineAtCells(e.x1,e.y1,e.x2-e.x1);else{this.fillBottomLineAtCells(e.x1,e.y1,e.cols-e.x1);for(var t=e.y1+1;t>9,h=0;h>9;if(0!==_){if(f!==l){if(h-s>1)for(var d=this._getJoinedRanges(n,a,o,t,s),p=0;p1)for(d=this._getJoinedRanges(n,a,o,t,s),p=0;p=e.lines.length)){for(var r=e.ydisp+Math.min(this._rowsToLinkify.end,this._terminal.rows)+1,n=Math.ceil(t.OVERSCAN_CHAR_LIMIT/this._terminal.cols),s=this._terminal.buffer.iterator(!1,i,r,n,n);s.hasNext();)for(var o=s.next(),a=0;a=0;t--)if(e.priority<=this._linkMatchers[t].priority)return void this._linkMatchers.splice(t+1,0,e);this._linkMatchers.splice(0,0,e)}else this._linkMatchers.push(e)},t.prototype.deregisterLinkMatcher=function(e){for(var t=0;t>9&511}i.validationCallback?i.validationCallback(l,(function(e){n._rowsTimeoutId||e&&n._addLink(u[1],u[0]-n._terminal.buffer.ydisp,l,i,c)})):h._addLink(u[1],u[0]-h._terminal.buffer.ydisp,l,i,c)},h=this;null!==(r=s.exec(t));){if("break"===l())break}},t.prototype._addLink=function(e,t,i,r,n){var o=this,a=l.getStringCellWidth(i),h=e%this._terminal.cols,c=t+Math.floor(e/this._terminal.cols),u=(h+a)%this._terminal.cols,_=c+Math.floor((h+a)/this._terminal.cols);0===u&&(u=this._terminal.cols,_--),this._mouseZoneManager.add(new s.MouseZone(h+1,c+1,u+1,_+1,(function(e){if(r.handler)return r.handler(e,i);window.open(i,"_blank")}),(function(e){o.emit("linkhover",o._createLinkHoverEvent(h,c,u,_,n)),o._terminal.element.classList.add("xterm-cursor-pointer")}),(function(e){o.emit("linktooltip",o._createLinkHoverEvent(h,c,u,_,n)),r.hoverTooltipCallback&&r.hoverTooltipCallback(e,i)}),(function(){o.emit("linkleave",o._createLinkHoverEvent(h,c,u,_,n)),o._terminal.element.classList.remove("xterm-cursor-pointer"),r.hoverLeaveCallback&&r.hoverLeaveCallback()}),(function(e){return!r.willLinkActivate||r.willLinkActivate(e,i)})))},t.prototype._createLinkHoverEvent=function(e,t,i,r,n){return{x1:e,y1:t,x2:i,y2:r,cols:this._terminal.cols,fg:n}},t.TIME_BEFORE_LINKIFY=200,t.OVERSCAN_CHAR_LIMIT=2e3,t}(o.EventEmitter);t.Linkifier=h},5744:function(e,t,i){"use strict";var r,n=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(e,t)},function(e,t){function i(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)});Object.defineProperty(t,"__esModule",{value:!0});var s=i(2013),o=i(1146),a=i(964),l=i(5745),h=i(922),c=i(5746),u=String.fromCharCode(160),_=new RegExp(u,"g"),f=function(e){function t(t,i){var r=e.call(this)||this;return r._terminal=t,r._charMeasure=i,r._enabled=!0,r._initListeners(),r.enable(),r._model=new l.SelectionModel(t),r._activeSelectionMode=0,r}return n(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this),this._removeMouseDownListeners()},Object.defineProperty(t.prototype,"_buffer",{get:function(){return this._terminal.buffers.active},enumerable:!0,configurable:!0}),t.prototype._initListeners=function(){var e=this;this._mouseMoveListener=function(t){return e._onMouseMove(t)},this._mouseUpListener=function(t){return e._onMouseUp(t)},this._trimListener=function(t){return e._onTrim(t)},this.initBuffersListeners()},t.prototype.initBuffersListeners=function(){var e=this;this._terminal.buffer.lines.on("trim",this._trimListener),this._terminal.buffers.on("activate",(function(t){return e._onBufferActivate(t)}))},t.prototype.disable=function(){this.clearSelection(),this._enabled=!1},t.prototype.enable=function(){this._enabled=!0},Object.defineProperty(t.prototype,"selectionStart",{get:function(){return this._model.finalSelectionStart},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"selectionEnd",{get:function(){return this._model.finalSelectionEnd},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasSelection",{get:function(){var e=this._model.finalSelectionStart,t=this._model.finalSelectionEnd;return!(!e||!t)&&(e[0]!==t[0]||e[1]!==t[1])},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"selectionText",{get:function(){var e=this._model.finalSelectionStart,t=this._model.finalSelectionEnd;if(!e||!t)return"";var i=[];if(3===this._activeSelectionMode){if(e[0]===t[0])return"";for(var r=e[1];r<=t[1];r++){var n=this._buffer.translateBufferLineToString(r,!0,e[0],t[0]);i.push(n)}}else{var s=e[1]===t[1]?t[0]:null;i.push(this._buffer.translateBufferLineToString(e[1],!0,e[0],s));for(r=e[1]+1;r<=t[1]-1;r++){var a=this._buffer.lines.get(r);n=this._buffer.translateBufferLineToString(r,!0);a.isWrapped?i[i.length-1]+=n:i.push(n)}if(e[1]!==t[1]){a=this._buffer.lines.get(t[1]),n=this._buffer.translateBufferLineToString(t[1],!0,0,t[0]);a.isWrapped?i[i.length-1]+=n:i.push(n)}}return i.map((function(e){return e.replace(_," ")})).join(o.isMSWindows?"\r\n":"\n")},enumerable:!0,configurable:!0}),t.prototype.clearSelection=function(){this._model.clearSelection(),this._removeMouseDownListeners(),this.refresh()},t.prototype.refresh=function(e){var t=this;(this._refreshAnimationFrame||(this._refreshAnimationFrame=window.requestAnimationFrame((function(){return t._refresh()}))),o.isLinux&&e)&&(this.selectionText.length&&this.emit("newselection",this.selectionText))},t.prototype._refresh=function(){this._refreshAnimationFrame=null,this.emit("refresh",{start:this._model.finalSelectionStart,end:this._model.finalSelectionEnd,columnSelectMode:3===this._activeSelectionMode})},t.prototype.isClickInSelection=function(e){var t=this._getMouseBufferCoords(e),i=this._model.finalSelectionStart,r=this._model.finalSelectionEnd;return!(!i||!r)&&(t[1]>i[1]&&t[1]i[0]&&t[0]=0&&t<=i?0:(t>i&&(t-=i),t=Math.min(Math.max(t,-50),50),(t/=50)/Math.abs(t)+Math.round(14*t))},t.prototype.shouldForceSelection=function(e){return o.isMac?e.altKey&&this._terminal.options.macOptionClickForcesSelection:e.shiftKey},t.prototype.onMouseDown=function(e){if(this._mouseDownTimeStamp=e.timeStamp,(2!==e.button||!this.hasSelection)&&0===e.button){if(!this._enabled){if(!this.shouldForceSelection(e))return;e.stopPropagation()}e.preventDefault(),this._dragScrollAmount=0,this._enabled&&e.shiftKey?this._onIncrementalClick(e):1===e.detail?this._onSingleClick(e):2===e.detail?this._onDoubleClick(e):3===e.detail&&this._onTripleClick(e),this._addMouseDownListeners(),this.refresh(!0)}},t.prototype._addMouseDownListeners=function(){var e=this;this._terminal.element.ownerDocument.addEventListener("mousemove",this._mouseMoveListener),this._terminal.element.ownerDocument.addEventListener("mouseup",this._mouseUpListener),this._dragScrollIntervalTimer=setInterval((function(){return e._dragScroll()}),50)},t.prototype._removeMouseDownListeners=function(){this._terminal.element.ownerDocument&&(this._terminal.element.ownerDocument.removeEventListener("mousemove",this._mouseMoveListener),this._terminal.element.ownerDocument.removeEventListener("mouseup",this._mouseUpListener)),clearInterval(this._dragScrollIntervalTimer),this._dragScrollIntervalTimer=null},t.prototype._onIncrementalClick=function(e){this._model.selectionStart&&(this._model.selectionEnd=this._getMouseBufferCoords(e))},t.prototype._onSingleClick=function(e){if(this._model.selectionStartLength=0,this._model.isSelectAllActive=!1,this._activeSelectionMode=this.shouldColumnSelect(e)?3:0,this._model.selectionStart=this._getMouseBufferCoords(e),this._model.selectionStart){this._model.selectionEnd=null;var t=this._buffer.lines.get(this._model.selectionStart[1]);if(t)if(!(t.length>=this._model.selectionStart[0]))0===t.get(this._model.selectionStart[0])[h.CHAR_DATA_WIDTH_INDEX]&&this._model.selectionStart[0]++}},t.prototype._onDoubleClick=function(e){var t=this._getMouseBufferCoords(e);t&&(this._activeSelectionMode=1,this._selectWordAt(t,!0))},t.prototype._onTripleClick=function(e){var t=this._getMouseBufferCoords(e);t&&(this._activeSelectionMode=2,this._selectLineAt(t[1]))},t.prototype.shouldColumnSelect=function(e){return e.altKey&&!(o.isMac&&this._terminal.options.macOptionClickForcesSelection)},t.prototype._onMouseMove=function(e){e.stopImmediatePropagation();var t=this._model.selectionEnd?[this._model.selectionEnd[0],this._model.selectionEnd[1]]:null;if(this._model.selectionEnd=this._getMouseBufferCoords(e),this._model.selectionEnd){if(2===this._activeSelectionMode?this._model.selectionEnd[1]0?this._model.selectionEnd[0]=this._terminal.cols:this._dragScrollAmount<0&&(this._model.selectionEnd[0]=0)),this._model.selectionEnd[1]0?(3!==this._activeSelectionMode&&(this._model.selectionEnd[0]=this._terminal.cols),this._model.selectionEnd[1]=Math.min(this._terminal.buffer.ydisp+this._terminal.rows,this._terminal.buffer.lines.length-1)):(3!==this._activeSelectionMode&&(this._model.selectionEnd[0]=0),this._model.selectionEnd[1]=this._terminal.buffer.ydisp),this.refresh())},t.prototype._onMouseUp=function(e){var t=e.timeStamp-this._mouseDownTimeStamp;this._removeMouseDownListeners(),this.selectionText.length<=1&&t<500?new c.AltClickHandler(e,this._terminal).move():this.hasSelection&&this._terminal.emit("selection")},t.prototype._onBufferActivate=function(e){this.clearSelection(),e.inactiveBuffer.lines.off("trim",this._trimListener),e.activeBuffer.lines.on("trim",this._trimListener)},t.prototype._convertViewportColToCharacterIndex=function(e,t){for(var i=t[0],r=0;t[0]>=r;r++){var n=e.get(r);0===n[h.CHAR_DATA_WIDTH_INDEX]?i--:n[h.CHAR_DATA_CHAR_INDEX].length>1&&t[0]!==r&&(i+=n[h.CHAR_DATA_CHAR_INDEX].length-1)}return i},t.prototype.setSelection=function(e,t,i){this._model.clearSelection(),this._removeMouseDownListeners(),this._model.selectionStart=[e,t],this._model.selectionStartLength=i,this.refresh()},t.prototype._getWordAt=function(e,t,i,r){if(void 0===i&&(i=!0),void 0===r&&(r=!0),e[0]>=this._terminal.cols)return null;var n=this._buffer.lines.get(e[1]);if(!n)return null;var s=this._buffer.translateBufferLineToString(e[1],!1),o=this._convertViewportColToCharacterIndex(n,e),a=o,l=e[0]-o,c=0,u=0,_=0,f=0;if(" "===s.charAt(o)){for(;o>0&&" "===s.charAt(o-1);)o--;for(;a1&&(f+=n.get(p)[h.CHAR_DATA_CHAR_INDEX].length-1,a+=n.get(p)[h.CHAR_DATA_CHAR_INDEX].length-1);d>0&&o>0&&!this._isCharWordSeparator(n.get(d-1));){0===(m=n.get(d-1))[h.CHAR_DATA_WIDTH_INDEX]?(c++,d--):m[h.CHAR_DATA_CHAR_INDEX].length>1&&(_+=m[h.CHAR_DATA_CHAR_INDEX].length-1,o-=m[h.CHAR_DATA_CHAR_INDEX].length-1),o--,d--}for(;p1&&(f+=m[h.CHAR_DATA_CHAR_INDEX].length-1,a+=m[h.CHAR_DATA_CHAR_INDEX].length-1),a++,p++}}a++;var y=o+l-c+_,C=Math.min(this._terminal.cols,a-o+c+u-_-f);if(!t&&""===s.slice(o,a).trim())return null;if(i&&0===y&&32!==n.get(0)[h.CHAR_DATA_CODE_INDEX]){var g=this._buffer.lines.get(e[1]-1);if(g&&n.isWrapped&&32!==g.get(this._terminal.cols-1)[h.CHAR_DATA_CODE_INDEX]){var v=this._getWordAt([this._terminal.cols-1,e[1]-1],!1,!0,!1);if(v){var b=this._terminal.cols-v.start;y-=b,C+=b}}}if(r&&y+C===this._terminal.cols&&32!==n.get(this._terminal.cols-1)[h.CHAR_DATA_CODE_INDEX]){var w=this._buffer.lines.get(e[1]+1);if(w&&w.isWrapped&&32!==w.get(0)[h.CHAR_DATA_CODE_INDEX]){var S=this._getWordAt([0,e[1]+1],!1,!1,!0);S&&(C+=S.length)}}return{start:y,length:C}},t.prototype._selectWordAt=function(e,t){var i=this._getWordAt(e,t);if(i){for(;i.start<0;)i.start+=this._terminal.cols,e[1]--;this._model.selectionStart=[i.start,e[1]],this._model.selectionStartLength=i.length}},t.prototype._selectToWordAt=function(e){var t=this._getWordAt(e,!0);if(t){for(var i=e[1];t.start<0;)t.start+=this._terminal.cols,i--;if(!this._model.areSelectionValuesReversed())for(;t.start+t.length>this._terminal.cols;)t.length-=this._terminal.cols,i++;this._model.selectionEnd=[this._model.areSelectionValuesReversed()?t.start:t.start+t.length,i]}},t.prototype._isCharWordSeparator=function(e){return 0!==e[h.CHAR_DATA_WIDTH_INDEX]&&" ()[]{}'\"".indexOf(e[h.CHAR_DATA_CHAR_INDEX])>=0},t.prototype._selectLineAt=function(e){var t=this._buffer.getWrappedRangeForLine(e);this._model.selectionStart=[0,t.first],this._model.selectionEnd=[this._terminal.cols,t.last],this._model.selectionStartLength=0},t}(a.EventEmitter);t.SelectionManager=f},5745:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e){this._terminal=e,this.clearSelection()}return e.prototype.clearSelection=function(){this.selectionStart=null,this.selectionEnd=null,this.isSelectAllActive=!1,this.selectionStartLength=0},Object.defineProperty(e.prototype,"finalSelectionStart",{get:function(){return this.isSelectAllActive?[0,0]:this.selectionEnd&&this.selectionStart&&this.areSelectionValuesReversed()?this.selectionEnd:this.selectionStart},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"finalSelectionEnd",{get:function(){if(this.isSelectAllActive)return[this._terminal.cols,this._terminal.buffer.ybase+this._terminal.rows-1];if(!this.selectionStart)return null;if(!this.selectionEnd||this.areSelectionValuesReversed()){var e=this.selectionStart[0]+this.selectionStartLength;return e>this._terminal.cols?[e%this._terminal.cols,this.selectionStart[1]+Math.floor(e/this._terminal.cols)]:[e,this.selectionStart[1]]}return this.selectionStartLength&&this.selectionEnd[1]===this.selectionStart[1]?[Math.max(this.selectionStart[0]+this.selectionStartLength,this.selectionEnd[0]),this.selectionEnd[1]]:this.selectionEnd},enumerable:!0,configurable:!0}),e.prototype.areSelectionValuesReversed=function(){var e=this.selectionStart,t=this.selectionEnd;return!(!e||!t)&&(e[1]>t[1]||e[1]===t[1]&&e[0]>t[0])},e.prototype.onTrim=function(e){return this.selectionStart&&(this.selectionStart[1]-=e),this.selectionEnd&&(this.selectionEnd[1]-=e),this.selectionEnd&&this.selectionEnd[1]<0?(this.clearSelection(),!0):(this.selectionStart&&this.selectionStart[1]<0&&(this.selectionStart[1]=0),!1)},e}();t.SelectionModel=r},5746:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(1253),n=function(){function e(e,t){var i;this._mouseEvent=e,this._terminal=t,this._lines=this._terminal.buffer.lines,this._startCol=this._terminal.buffer.x,this._startRow=this._terminal.buffer.y;var r=this._terminal.mouseHelper.getCoords(this._mouseEvent,this._terminal.element,this._terminal.charMeasure,this._terminal.options.lineHeight,this._terminal.cols,this._terminal.rows,!1);r&&(i=r.map((function(e){return e-1})),this._endCol=i[0],this._endRow=i[1])}return e.prototype.move=function(){this._mouseEvent.altKey&&void 0!==this._endCol&&void 0!==this._endRow&&this._terminal.handler(this._arrowSequences())},e.prototype._arrowSequences=function(){return this._terminal.buffer.hasScrollback?this._moveHorizontallyOnly():this._resetStartingRow()+this._moveToRequestedRow()+this._moveToRequestedCol()},e.prototype._resetStartingRow=function(){return 0===this._moveToRequestedRow().length?"":s(this._bufferLine(this._startCol,this._startRow,this._startCol,this._startRow-this._wrappedRowsForRow(this._startRow),!1).length,this._sequence("D"))},e.prototype._moveToRequestedRow=function(){var e=this._startRow-this._wrappedRowsForRow(this._startRow),t=this._endRow-this._wrappedRowsForRow(this._endRow);return s(Math.abs(e-t)-this._wrappedRowsCount(),this._sequence(this._verticalDirection()))},e.prototype._moveToRequestedCol=function(){var e;e=this._moveToRequestedRow().length>0?this._endRow-this._wrappedRowsForRow(this._endRow):this._startRow;var t=this._endRow,i=this._horizontalDirection();return s(this._bufferLine(this._startCol,e,this._endCol,t,"C"===i).length,this._sequence(i))},e.prototype._moveHorizontallyOnly=function(){var e=this._horizontalDirection();return s(Math.abs(this._startCol-this._endCol),this._sequence(e))},e.prototype._wrappedRowsCount=function(){for(var e=0,t=this._startRow-this._wrappedRowsForRow(this._startRow),i=this._endRow-this._wrappedRowsForRow(this._endRow),r=0;r=0&&e0?this._endRow-this._wrappedRowsForRow(this._endRow):this._startRow,this._startCol=this._endCol&&ethis._endRow?"A":"B"},e.prototype._bufferLine=function(e,t,i,r,n){for(var s=e,o=t,a="";s!==i||o!==r;)s+=n?1:-1,n&&s>this._terminal.cols-1?(a+=this._terminal.buffer.translateBufferLineToString(o,!1,e,s),s=0,e=0,o++):!n&&s<0&&(a+=this._terminal.buffer.translateBufferLineToString(o,!1,0,e+1),e=s=this._terminal.cols-1,o--);return a+this._terminal.buffer.translateBufferLineToString(o,!1,e,s)},e.prototype._sequence=function(e){var t=this._terminal.applicationCursor?"O":"[";return r.C0.ESC+t+e},e}();function s(e,t){e=Math.floor(e);for(var i="",r=0;re;)this._rowContainer.removeChild(this._rowElements.pop());this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions()},t.prototype._createAccessibilityTreeNode=function(){var e=document.createElement("div");return e.setAttribute("role","listitem"),e.tabIndex=-1,this._refreshRowDimensions(e),e},t.prototype._onTab=function(e){for(var t=0;t0)this._charsToConsume.shift()!==e&&this._announceCharacter(e);else this._announceCharacter(e);"\n"===e&&(this._liveRegionLineCount++,21===this._liveRegionLineCount&&(this._liveRegion.textContent+=s.tooMuchOutput)),o.isMac&&this._liveRegion.textContent&&this._liveRegion.textContent.length>0&&!this._liveRegion.parentNode&&setTimeout((function(){t._accessibilityTreeRoot.appendChild(t._liveRegion)}),0)}},t.prototype._clearLiveRegion=function(){this._liveRegion.textContent="",this._liveRegionLineCount=0,o.isMac&&this._liveRegion.parentNode&&this._accessibilityTreeRoot.removeChild(this._liveRegion)},t.prototype._onKey=function(e){this._clearLiveRegion(),this._charsToConsume.push(e)},t.prototype._refreshRows=function(e,t){this._renderRowsDebouncer.refresh(e,t)},t.prototype._renderRows=function(e,t){for(var i=this._terminal.buffer,r=i.lines.length.toString(),n=e;n<=t;n++){var o=i.translateBufferLineToString(i.ydisp+n,!0),a=(i.ydisp+n+1).toString(),l=this._rowElements[n];l.textContent=0===o.length?s.blankLine:o,l.setAttribute("aria-posinset",a),l.setAttribute("aria-setsize",r)}},t.prototype._refreshRowsDimensions=function(){if(this._terminal.renderer.dimensions.actualCellHeight){this._rowElements.length!==this._terminal.rows&&this._onResize(this._terminal.rows);for(var e=0;et;)this._rowContainer.removeChild(this._rowElements.pop())},t.prototype.onResize=function(e,t){this._refreshRowElements(e,t),this._updateDimensions()},t.prototype.onCharSizeChanged=function(){this._updateDimensions()},t.prototype.onBlur=function(){this._rowContainer.classList.remove("xterm-focus")},t.prototype.onFocus=function(){this._rowContainer.classList.add("xterm-focus")},t.prototype.onSelectionChanged=function(e,t,i){for(;this._selectionContainer.children.length;)this._selectionContainer.removeChild(this._selectionContainer.children[0]);if(e&&t){var r=e[1]-this._terminal.buffer.ydisp,n=t[1]-this._terminal.buffer.ydisp,s=Math.max(r,0),o=Math.min(n,this._terminal.rows-1);if(!(s>=this._terminal.rows||o<0)){var a=document.createDocumentFragment();if(i)a.appendChild(this._createSelectionElement(s,e[0],t[0],o-s+1));else{var l=r===s?e[0]:0,h=s===o?t[0]:this._terminal.cols;a.appendChild(this._createSelectionElement(s,l,h));var c=o-s-1;if(a.appendChild(this._createSelectionElement(s+1,0,this._terminal.cols,c)),s!==o){var u=n===o?t[0]:this._terminal.cols;a.appendChild(this._createSelectionElement(o,0,u))}}this._selectionContainer.appendChild(a)}}},t.prototype._createSelectionElement=function(e,t,i,r){void 0===r&&(r=1);var n=document.createElement("div");return n.style.height=r*this._terminal.charMeasure.height+"px",n.style.top=e*this._terminal.charMeasure.height+"px",n.style.left=t*this._terminal.charMeasure.width+"px",n.style.width=this._terminal.charMeasure.width*(i-t)+"px",n},t.prototype.onCursorMove=function(){},t.prototype.onOptionsChanged=function(){this._updateDimensions(),this.setTheme(void 0),this._terminal.refresh(0,this._terminal.rows-1)},t.prototype.clear=function(){this._rowElements.forEach((function(e){return e.innerHTML=""}))},t.prototype.refreshRows=function(e,t){this._renderDebouncer.refresh(e,t)},t.prototype._renderRows=function(e,t){for(var i=this._terminal,r=i.buffer.ybase+i.buffer.y,n=this._terminal.buffer.x,s=e;s<=t;s++){var o=this._rowElements[s];o.innerHTML="";var a=s+i.buffer.ydisp,l=i.buffer.lines.get(a),h=i.options.cursorStyle;o.appendChild(this._rowFactory.createRow(l,a===r,h,n,i.charMeasure.width,i.cols))}this._terminal.emit("refresh",{start:e,end:t})},Object.defineProperty(t.prototype,"_terminalSelector",{get:function(){return".xterm-dom-renderer-owner-"+this._terminalClass},enumerable:!0,configurable:!0}),t.prototype.registerCharacterJoiner=function(e){return-1},t.prototype.deregisterCharacterJoiner=function(e){return!1},t.prototype._onLinkHover=function(e){this._setCellUnderline(e.x1,e.x2,e.y1,e.y2,e.cols,!0)},t.prototype._onLinkLeave=function(e){this._setCellUnderline(e.x1,e.x2,e.y1,e.y2,e.cols,!1)},t.prototype._setCellUnderline=function(e,t,i,r,n,s){for(;e!==t||i!==r;){this._rowElements[i].children[e].style.textDecoration=s?"underline":"none",0===(e=(e+1)%n)&&i++}},t}(s.EventEmitter);t.DomRenderer=c},5752:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(922);t.BOLD_CLASS="xterm-bold",t.ITALIC_CLASS="xterm-italic",t.CURSOR_CLASS="xterm-cursor",t.CURSOR_STYLE_BLOCK_CLASS="xterm-cursor-block",t.CURSOR_STYLE_BAR_CLASS="xterm-cursor-bar",t.CURSOR_STYLE_UNDERLINE_CLASS="xterm-cursor-underline";var n=function(){function e(e){this._document=e}return e.prototype.createRow=function(e,i,n,s,o,a){for(var l=this._document.createDocumentFragment(),h=0,c=0;c=a)){var u=e.get(c),_=u[r.CHAR_DATA_CHAR_INDEX],f=u[r.CHAR_DATA_ATTR_INDEX],d=u[r.CHAR_DATA_WIDTH_INDEX];if(0!==d){var p=this._document.createElement("span");d>1&&(p.style.width=o*d+"px");var m=f>>18,y=511&f,C=f>>9&511;if(i&&c===s)switch(p.classList.add(t.CURSOR_CLASS),n){case"bar":p.classList.add(t.CURSOR_STYLE_BAR_CLASS);break;case"underline":p.classList.add(t.CURSOR_STYLE_UNDERLINE_CLASS);break;default:p.classList.add(t.CURSOR_STYLE_BLOCK_CLASS)}if(8&m){var g=y;y=C,256===(C=g)&&(C=0),257===y&&(y=15)}1&m&&(C<8&&(C+=8),p.classList.add(t.BOLD_CLASS)),64&m&&p.classList.add(t.ITALIC_CLASS),p.textContent=_,257!==C&&p.classList.add("xterm-fg-"+C),256!==y&&p.classList.add("xterm-bg-"+y),l.appendChild(p),h+=d}}return l},e}();t.DomRendererRowFactory=n},5753:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(1253),n={48:["0",")"],49:["1","!"],50:["2","@"],51:["3","#"],52:["4","$"],53:["5","%"],54:["6","^"],55:["7","&"],56:["8","*"],57:["9","("],186:[";",":"],187:["=","+"],188:[",","<"],189:["-","_"],190:[".",">"],191:["/","?"],192:["`","~"],219:["[","{"],220:["\\","|"],221:["]","}"],222:["'",'"']};t.evaluateKeyboardEvent=function(e,t,i,s){var o={type:0,cancel:!1,key:void 0},a=(e.shiftKey?1:0)|(e.altKey?2:0)|(e.ctrlKey?4:0)|(e.metaKey?8:0);switch(e.keyCode){case 0:"UIKeyInputUpArrow"===e.key?o.key=t?r.C0.ESC+"OA":r.C0.ESC+"[A":"UIKeyInputLeftArrow"===e.key?o.key=t?r.C0.ESC+"OD":r.C0.ESC+"[D":"UIKeyInputRightArrow"===e.key?o.key=t?r.C0.ESC+"OC":r.C0.ESC+"[C":"UIKeyInputDownArrow"===e.key&&(o.key=t?r.C0.ESC+"OB":r.C0.ESC+"[B");break;case 8:if(e.shiftKey){o.key=r.C0.BS;break}if(e.altKey){o.key=r.C0.ESC+r.C0.DEL;break}o.key=r.C0.DEL;break;case 9:if(e.shiftKey){o.key=r.C0.ESC+"[Z";break}o.key=r.C0.HT,o.cancel=!0;break;case 13:o.key=r.C0.CR,o.cancel=!0;break;case 27:o.key=r.C0.ESC,o.cancel=!0;break;case 37:a?(o.key=r.C0.ESC+"[1;"+(a+1)+"D",o.key===r.C0.ESC+"[1;3D"&&(o.key=i?r.C0.ESC+"b":r.C0.ESC+"[1;5D")):o.key=t?r.C0.ESC+"OD":r.C0.ESC+"[D";break;case 39:a?(o.key=r.C0.ESC+"[1;"+(a+1)+"C",o.key===r.C0.ESC+"[1;3C"&&(o.key=i?r.C0.ESC+"f":r.C0.ESC+"[1;5C")):o.key=t?r.C0.ESC+"OC":r.C0.ESC+"[C";break;case 38:a?(o.key=r.C0.ESC+"[1;"+(a+1)+"A",o.key===r.C0.ESC+"[1;3A"&&(o.key=r.C0.ESC+"[1;5A")):o.key=t?r.C0.ESC+"OA":r.C0.ESC+"[A";break;case 40:a?(o.key=r.C0.ESC+"[1;"+(a+1)+"B",o.key===r.C0.ESC+"[1;3B"&&(o.key=r.C0.ESC+"[1;5B")):o.key=t?r.C0.ESC+"OB":r.C0.ESC+"[B";break;case 45:e.shiftKey||e.ctrlKey||(o.key=r.C0.ESC+"[2~");break;case 46:o.key=a?r.C0.ESC+"[3;"+(a+1)+"~":r.C0.ESC+"[3~";break;case 36:o.key=a?r.C0.ESC+"[1;"+(a+1)+"H":t?r.C0.ESC+"OH":r.C0.ESC+"[H";break;case 35:o.key=a?r.C0.ESC+"[1;"+(a+1)+"F":t?r.C0.ESC+"OF":r.C0.ESC+"[F";break;case 33:e.shiftKey?o.type=2:o.key=r.C0.ESC+"[5~";break;case 34:e.shiftKey?o.type=3:o.key=r.C0.ESC+"[6~";break;case 112:o.key=a?r.C0.ESC+"[1;"+(a+1)+"P":r.C0.ESC+"OP";break;case 113:o.key=a?r.C0.ESC+"[1;"+(a+1)+"Q":r.C0.ESC+"OQ";break;case 114:o.key=a?r.C0.ESC+"[1;"+(a+1)+"R":r.C0.ESC+"OR";break;case 115:o.key=a?r.C0.ESC+"[1;"+(a+1)+"S":r.C0.ESC+"OS";break;case 116:o.key=a?r.C0.ESC+"[15;"+(a+1)+"~":r.C0.ESC+"[15~";break;case 117:o.key=a?r.C0.ESC+"[17;"+(a+1)+"~":r.C0.ESC+"[17~";break;case 118:o.key=a?r.C0.ESC+"[18;"+(a+1)+"~":r.C0.ESC+"[18~";break;case 119:o.key=a?r.C0.ESC+"[19;"+(a+1)+"~":r.C0.ESC+"[19~";break;case 120:o.key=a?r.C0.ESC+"[20;"+(a+1)+"~":r.C0.ESC+"[20~";break;case 121:o.key=a?r.C0.ESC+"[21;"+(a+1)+"~":r.C0.ESC+"[21~";break;case 122:o.key=a?r.C0.ESC+"[23;"+(a+1)+"~":r.C0.ESC+"[23~";break;case 123:o.key=a?r.C0.ESC+"[24;"+(a+1)+"~":r.C0.ESC+"[24~";break;default:if(!e.ctrlKey||e.shiftKey||e.altKey||e.metaKey)if(i&&!s||!e.altKey||e.metaKey)i&&!e.altKey&&!e.ctrlKey&&e.metaKey&&65===e.keyCode&&(o.type=1);else{var l=n[e.keyCode],h=l&&l[e.shiftKey?1:0];if(h)o.key=r.C0.ESC+h;else if(e.keyCode>=65&&e.keyCode<=90){var c=e.ctrlKey?e.keyCode-64:e.keyCode+32;o.key=r.C0.ESC+String.fromCharCode(c)}}else e.keyCode>=65&&e.keyCode<=90?o.key=String.fromCharCode(e.keyCode-64):32===e.keyCode?o.key=String.fromCharCode(0):e.keyCode>=51&&e.keyCode<=55?o.key=String.fromCharCode(e.keyCode-51+27):56===e.keyCode?o.key=String.fromCharCode(127):219===e.keyCode?o.key=String.fromCharCode(27):220===e.keyCode?o.key=String.fromCharCode(28):221===e.keyCode&&(o.key=String.fromCharCode(29))}return o}},5754:function(e,t,i){"use strict";function r(e){if(!e.element.parentElement)return null;var t=window.getComputedStyle(e.element.parentElement),i=parseInt(t.getPropertyValue("height")),r=Math.max(0,parseInt(t.getPropertyValue("width"))),n=window.getComputedStyle(e.element),s=i-(parseInt(n.getPropertyValue("padding-top"))+parseInt(n.getPropertyValue("padding-bottom"))),o=r-(parseInt(n.getPropertyValue("padding-right"))+parseInt(n.getPropertyValue("padding-left")))-e._core.viewport.scrollBarWidth;return{cols:Math.floor(o/e._core.renderer.dimensions.actualCellWidth),rows:Math.floor(s/e._core.renderer.dimensions.actualCellHeight)}}function n(e){var t=r(e);t&&(e.rows===t.rows&&e.cols===t.cols||(e._core.renderer.clear(),e.resize(t.cols,t.rows)))}Object.defineProperty(t,"__esModule",{value:!0}),t.proposeGeometry=r,t.fit=n,t.apply=function(e){e.prototype.proposeGeometry=function(){return r(this)},e.prototype.fit=function(){n(this)}}},5755:function(e,t,i){},5756:function(e,t,i){},922:function(e,t,i){"use strict";var r,n=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(e,t)},function(e,t){function i(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)});Object.defineProperty(t,"__esModule",{value:!0});var s=i(5724),o=i(964),a=i(1462);t.DEFAULT_ATTR=131840,t.CHAR_DATA_ATTR_INDEX=0,t.CHAR_DATA_CHAR_INDEX=1,t.CHAR_DATA_WIDTH_INDEX=2,t.CHAR_DATA_CODE_INDEX=3,t.MAX_BUFFER_SIZE=4294967295,t.NULL_CELL_CHAR=" ",t.NULL_CELL_WIDTH=1,t.NULL_CELL_CODE=32;var l=function(){function e(e,t){this._terminal=e,this._hasScrollback=t,this.markers=[],this.clear()}return Object.defineProperty(e.prototype,"hasScrollback",{get:function(){return this._hasScrollback&&this.lines.maxLength>this._terminal.rows},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isCursorInViewport",{get:function(){var e=this.ybase+this.y-this.ydisp;return e>=0&&et.MAX_BUFFER_SIZE?t.MAX_BUFFER_SIZE:i},e.prototype.fillViewportRows=function(){if(0===this.lines.length)for(var e=this._terminal.rows;e--;)this.lines.push(a.BufferLine.blankLine(this._terminal.cols,t.DEFAULT_ATTR))},e.prototype.clear=function(){this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.lines=new s.CircularList(this._getCorrectBufferLength(this._terminal.rows)),this.scrollTop=0,this.scrollBottom=this._terminal.rows-1,this.setupTabStops()},e.prototype.resize=function(e,i){var r=this._getCorrectBufferLength(i);if(r>this.lines.maxLength&&(this.lines.maxLength=r),this.lines.length>0){if(this._terminal.cols0&&this.lines.length<=this.ybase+this.y+o+1?(this.ybase--,o++,this.ydisp>0&&this.ydisp--):this.lines.push(a.BufferLine.blankLine(e,t.DEFAULT_ATTR)));else for(l=this._terminal.rows;l>i;l--)this.lines.length>i+this.ybase&&(this.lines.length>this.ybase+this.y+1?this.lines.pop():(this.ybase++,this.ydisp++));if(r0&&(this.lines.trimStart(h),this.ybase=Math.max(this.ybase-h,0),this.ydisp=Math.max(this.ydisp-h,0)),this.lines.maxLength=r}this.x=Math.min(this.x,e-1),this.y=Math.min(this.y,i-1),o&&(this.y+=o),this.savedY=Math.min(this.savedY,i-1),this.savedX=Math.min(this.savedX,e-1),this.scrollTop=0}this.scrollBottom=i-1},e.prototype.stringIndexToBufferIndex=function(e,i){for(;i;){for(var r=this.lines.get(e),n=0;n=h&&a--,n>h&&l--):c[t.CHAR_DATA_CHAR_INDEX].length>1&&(r>h&&(a+=c[t.CHAR_DATA_CHAR_INDEX].length-1),n>h&&(l+=c[t.CHAR_DATA_CHAR_INDEX].length-1))}if(i){var u=s.search(/\s+$/);if(-1!==u&&(l=Math.min(l,u)),l<=a)return""}return s.substring(a,l)},e.prototype.getWrappedRangeForLine=function(e){for(var t=e,i=e;t>0&&this.lines.get(t).isWrapped;)t--;for(;i+10;);return e>=this._terminal.cols?this._terminal.cols-1:e<0?0:e},e.prototype.nextStop=function(e){for(null==e&&(e=this.x);!this.tabs[++e]&&e=this._terminal.cols?this._terminal.cols-1:e<0?0:e},e.prototype.addMarker=function(e){var t=this,i=new h(e);return this.markers.push(i),i.register(this.lines.addDisposableListener("trim",(function(e){i.line-=e,i.line<0&&i.dispose()}))),i.register(i.addDisposableListener("dispose",(function(){return t._removeMarker(i)}))),i},e.prototype._removeMarker=function(e){this.markers.splice(this.markers.indexOf(e),1)},e.prototype.iterator=function(e,t,i,r,n){return new c(this,e,t,i,r,n)},e}();t.Buffer=l;var h=function(e){function t(i){var r=e.call(this)||this;return r.line=i,r._id=t._nextId++,r.isDisposed=!1,r}return n(t,e),Object.defineProperty(t.prototype,"id",{get:function(){return this._id},enumerable:!0,configurable:!0}),t.prototype.dispose=function(){this.isDisposed||(this.isDisposed=!0,this.emit("dispose"),e.prototype.dispose.call(this))},t._nextId=1,t}(o.EventEmitter);t.Marker=h;var c=function(){function e(e,t,i,r,n,s){void 0===i&&(i=0),void 0===r&&(r=e.lines.length),void 0===n&&(n=0),void 0===s&&(s=0),this._buffer=e,this._trimRight=t,this._startIndex=i,this._endIndex=r,this._startOverscan=n,this._endOverscan=s,this._startIndex<0&&(this._startIndex=0),this._endIndex>this._buffer.lines.length&&(this._endIndex=this._buffer.lines.length),this._current=this._startIndex}return e.prototype.hasNext=function(){return this._currentthis._endIndex+this._endOverscan&&(e.last=this._endIndex+this._endOverscan),e.first=Math.max(e.first,0),e.last=Math.min(e.last,this._buffer.lines.length);for(var t="",i=e.first;i<=e.last;++i)t+=this._buffer.translateBufferLineToString(i,!!this._trimRight&&i===e.last);return this._current=e.last+1,{range:e,content:t}},e}();t.BufferStringIterator=c},964:function(e,t,i){"use strict";var r,n=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(e,t)},function(e,t){function i(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)});Object.defineProperty(t,"__esModule",{value:!0});var s=function(e){function t(){var t=e.call(this)||this;return t._events=t._events||{},t}return n(t,e),t.prototype.on=function(e,t){this._events[e]=this._events[e]||[],this._events[e].push(t)},t.prototype.addDisposableListener=function(e,t){var i=this;this.on(e,t);var r=!1;return{dispose:function(){r||(i.off(e,t),r=!0)}}},t.prototype.off=function(e,t){if(this._events[e])for(var i=this._events[e],r=i.length;r--;)if(i[r]===t)return void i.splice(r,1)},t.prototype.removeAllListeners=function(e){this._events[e]&&delete this._events[e]},t.prototype.emit=function(e){for(var t=[],i=1;i=0&&r.splice(a,1),r};t.arrAdd=function(e,t){var r=e.slice();return-1===r.indexOf(t)&&r.push(t),r};t.posToArr=function(e){return e.split("-")};var u=function(e,t){return"".concat(e,"-").concat(t)};t.getPosition=u;var l=function(e){return e&&e.type&&e.type.isTreeNode};t.isTreeNode=l;var c=function(e){return o(e).filter(l)};t.getNodeChildren=c;var s=function(e,t){!function r(a,o,l){var s=a?a.props.children:e,i=a?u(l.pos,o):0,f=c(s);if(a){var d={node:a,index:o,pos:i,key:a.key||i,parentPos:l.node?l.pos:null};t(d)}n.Children.forEach(f,(function(e,t){r(e,t,{node:a,pos:i})}))}(null)};t.traverseTreeNodes=s;t.mapChildren=function(e,t){var r=o(e).map(t);return 1===r.length?r[0]:r};t.calcSelectedKeys=function(e,t){if(e)return t.multiple?e.slice():e.length?[e[0]]:e};t.convertTreeToEntities=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.initWrapper,a=t.processEntity,n=t.onProcessFinished,o={},u={},l={posEntities:o,keyEntities:u};return r&&(l=r(l)||l),s(e,(function(e){var t=e.node,r=e.index,n=e.pos,c=e.key,s=e.parentPos,i={node:t,index:r,key:c,pos:n};o[n]=i,u[c]=i,i.parent=o[s],i.parent&&(i.parent.children=i.parent.children||[],i.parent.children.push(i)),a&&a(i,l)})),n&&n(l),l};t.conductExpandParent=function(e,t){var r={};return(e||[]).forEach((function(e){!function e(a){if(!r[a]){var n=t[a];if(n){r[a]=!0;var o=n.parent;o&&e(o.key)}}}(e)})),Object.keys(r)};t.getDataAndAria=function(e){return Object.keys(e).reduce((function(t,r){var a=t;return"data-"!==r.substr(0,5)&&"aria-"!==r.substr(0,5)||(a[r]=e[r]),a}),{})}},1879:function(e,t,r){e.exports={userWrapper:"_1_DSXUIddmrce317bVesnR",scrollWrapper:"_3RmABpydi_HaIsEVQPfv7O",empty:"_3IRiVwO3Ga_hzwmja9vZkn",item:"_2R1k6eZF5XuN5Z_VYNSrnv",avatar:"_3Haf5uSfbNIZvhOiTYU_wQ",text:"_2rKvqdP00-aDZ26saG7UJl",tabPanel:"_3fckqAKJLvfi_g7Zecc65O",active:"Kan_4CNGC_U5jWhmFgUK3"}},1881:function(e,t,r){"use strict";r(15);var a=r(20);r(5),r(4),r(23),r(17),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r(45),r(5),r(42),r(4),r(23),r(57),r(17);var n=a(r(36)),o=a(r(55)),u=a(r(56)),l=a(r(51));function c(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,a=(0,l.default)(e);if(t){var n=(0,l.default)(this).constructor;r=Reflect.construct(a,arguments,n)}else r=a.apply(this,arguments);return(0,u.default)(this,r)}}var s=function(e){(0,o.default)(r,e);var t=c(r);function r(){var e;(0,n.default)(this,r);for(var a=arguments.length,o=new Array(a),u=0;u0&&void 0!==arguments[0]?arguments[0]:{},t=n.props,r=t.appId,a=t.versionId,o=t.workspace,u=n.state.cluster;n.store.fetchList(O({app_id:r,version_id:a,workspace:o,cluster:u},e))},n.getPagination=function(){var e=n.store.list;return{page:e.page,limit:e.limit,total:e.total}},n.handleSearch=function(e){n.searchValue=e,n.fetchData({keyword:e})},n.handleRefresh=function(){var e=n.searchValue?{keyword:n.searchValue}:{};n.fetchData(e)},n.handlePage=function(e){n.fetchData({page:e})},n.handleClusterChange=function(e){n.setState({cluster:e},(function(){n.fetchData()}))},n.renderHeader=function(){return d.default.createElement("div",{className:b.default.header},n.renderClusters(),d.default.createElement(y.InputSearch,{className:b.default.search,name:"search",placeholder:t("SEARCH_BY_NAME"),onSearch:n.handleSearch}),d.default.createElement("div",{className:b.default.actions},d.default.createElement(y.Button,{type:"flat",icon:"refresh",onClick:n.handleRefresh})))},n.renderFooter=function(){var e=n.getPagination(),r=e.total,a=e.page,o=e.limit;return d.default.createElement(y.Level,{className:b.default.footer},d.default.createElement(y.LevelLeft,null,t("TOTAL_ITEMS",{num:r})),d.default.createElement(y.LevelRight,null,d.default.createElement(y.Pagination,{page:a,total:r,limit:o,onChange:n.handlePage})))},n.state={uploadModal:!1,cluster:(0,h.default)(e,"clusters[0].name","")},n.store=new _.default,n}return(0,c.default)(a,[{key:"componentDidMount",value:function(){this.fetchData()}},{key:"renderClusters",value:function(){var e=this.props.clusters;if((0,v.default)(e))return null;var t=e.map((function(e){return{label:e.name,value:e.name,disabled:!e.isReady,cluster:e}}));return d.default.createElement(E.default,{clusters:t,cluster:this.state.cluster,onChange:this.handleClusterChange})}},{key:"renderContent",value:function(){var e=this.props.versionId,r=this.store.list,a=r.data;return r.isLoading?d.default.createElement(y.Loading,{className:b.default.loading}):d.default.createElement("div",{className:b.default.body},(0,v.default)(a)?d.default.createElement("div",{className:b.default.empty},t("NO_RESOURCE_FOUND")):a.map((function(t){return d.default.createElement(S.default,{key:t.name,detail:t,showVersion:!e})})))}},{key:"render",value:function(){var e=this.props,r=e.className,a=e.title,n=e.hideHeader,o=e.hideFooter;return d.default.createElement(g.default,{className:(0,p.default)(b.default.main,r),title:a||t("APP_INSTANCES")},d.default.createElement("div",{className:b.default.inner},!n&&this.renderHeader(),this.renderContent(),!o&&this.renderFooter()))}}]),a}(d.default.Component))||o;r.default=P},1883:function(e,t,r){e.exports={main:"_3RsBOPqTSIO9U8W9rw7FXZ",header:"_12Agkrs2qKEvnlsCQuk1P7",search:"_3wEHtyer-RmdQNShfTnjwy",actions:"_2LnUPnba8kGi5ojNnufTwt",footer:"HMFMVptmxZyx8kO6TTV_s",item:"j7bcnGZE6qCsukA72vMci",itemMain:"_3_sYqp1scWFI8xP1zi_C1M",content:"_2OVcaaDJfwLdTObXoW1Qsf",more:"_3Co3dwP_Q9vMPyZrkvWpC3",loading:"_3xRw369cTNAcOPS2tUiGBv",empty:"a73qxVl2KPDTuAaZfRhvz"}},1884:function(e,t,r){e.exports={main:"VCMz8Hvdx9QgwfqLBYxPD",inner:"_2duoQ3UI4nja9dVo5Tg6Gu",header:"_1ujEwOD8918eEmngftbE-m",search:"_2W8Nr8NQnrxEQ2OdUFu5Xc",actions:"_3rEgDuHImvyhfRvoItgVGa",body:"_1XFrIa2I7UREilolWDQxqn",footer:"tgtIGSTEm1TCZFeiKkxfr",item:"_3P8oPqxESDZBnojf9VjE16",itemMain:"_3juNmtluJH9n446teuR_C9",icon:"_1Zvv7LvLsTEIen0tCC3Ilz",status:"XqSQXZRHKWjcLvllQIDuo",content:"_1IAefV34zduIcEv3RyPzF0",more:"_3Y-jHnJCq-JnxpS5CZzSgw",itemExtra:"_3S4VI1sg0-UwM0-oTnhysO",expanded:"_36Bum4cJKwtY3pzfp-wlas",instances:"_3Jb0lzRYd1l_Wzc43lAhgD",loading:"_2s-2yo1WGoImJofeVFj_hy",empty:"_16rfxAHXWQIGauFhE4yfGa"}},4397:function(e,t,r){"use strict";r(15);var a=r(20);r(5),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r(5);var n=a(r(61)),o=r(317),u=a(r(4398)),l=a(r(4399)),c=a(r(4402)),s=a(r(4406)),i=a(r(4407)),f=a(r(4408)),d=a(r(4426)),p=a(r(4428)),m=a(r(4429)),h=a(r(4430)),v=a(r(4432)),y=a(r(4433)),g=a(r(4436)),E=a(r(4437)),_=a(r(4485)),S="/workspaces/:workspace",b=[].concat((0,n.default)(E.default),[{path:S,component:u.default,routes:[].concat((0,n.default)(_.default),[{path:"".concat(S,"/federatedprojects"),component:p.default,exact:!0},{path:"".concat(S,"/projects"),component:d.default,exact:!0},{path:"".concat(S,"/devops"),component:m.default,exact:!0},{path:"".concat(S,"/edge-apps"),component:g.default,exact:!0},{path:"".concat(S,"/apps"),component:h.default,exact:!0},{path:"".concat(S,"/base-info"),component:l.default,exact:!0},{path:"".concat(S,"/repos"),component:v.default,exact:!0},{path:"".concat(S,"/quota"),component:c.default,exact:!0},{path:"".concat(S,"/roles"),component:s.default,exact:!0},{path:"".concat(S,"/members"),component:i.default,exact:!0},{path:"".concat(S,"/groups"),component:f.default,exact:!0},{path:"".concat(S,"/gateways/:component"),component:y.default,exact:!0},(0,o.getIndexRoute)({path:"".concat(S,"/gateways"),to:"".concat(S,"/gateways/workspace"),exact:!0})])}]);t.default=b},4398:function(e,t,r){"use strict";r(15);var a=r(20),n=r(157);r(5),r(4),r(23),r(24),r(17),r(62),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r(45),r(5),r(28),r(42),r(4),r(22),r(23),r(57),r(24),r(17),r(62);var o=a(r(61)),u=a(r(43));r(41);var l,c=a(r(44)),s=a(r(36)),i=a(r(37)),f=a(r(55)),d=a(r(56)),p=a(r(51)),m=a(r(26)),h=r(239),v=n(r(0)),y=a(r(438)),g=r(317);function E(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,a=(0,p.default)(e);if(t){var n=(0,p.default)(this).constructor;r=Reflect.construct(a,arguments,n)}else r=a.apply(this,arguments);return(0,d.default)(this,r)}}var _=(0,h.inject)("rootStore","workspaceStore")(l=(0,h.observer)(l=function(e){(0,f.default)(r,e);var t=E(r);function r(e){var a;return(0,s.default)(this,r),(a=t.call(this,e)).state={fetchFin:!1},a.enterWorkspace=function(){var e=(0,c.default)(u.default.mark((function e(t){return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",a.routing.push("/workspaces/".concat(t,"/")));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),a.store=new y.default,a}return(0,i.default)(r,[{key:"render",value:function(){var e=this.props.route,t=e.routes,r=void 0===t?[]:t,a=e.path,n=this.props.workspaceStore.detail,u=globals.app.getWorkspaceNavs(this.workspace,{isEdge:n.isEdge}),l=(0,m.default)(u,"[0].items[0].name");return v.default.createElement(v.default.Fragment,null,l&&(0,g.renderRoutes)([].concat((0,o.default)(r),[(0,g.getIndexRoute)({path:a,to:"".concat(a,"/").concat(l),exact:!0}),(0,g.getIndexRoute)({path:"*",to:"/404",exact:!0})])))}},{key:"workspace",get:function(){return this.props.match.params.workspace}},{key:"routing",get:function(){return this.props.rootStore.routing}}]),r}(v.Component))||l)||l;t.default=_},4399:function(e,r,a){"use strict";a(15);var n=a(20);a(12),a(109),a(5),a(11),a(31),a(6),a(84),a(18),a(16),a(98),a(4),a(23),a(24),a(17),a(85),a(62),a(7),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,a(12),a(109),a(45),a(5),a(11),a(31),a(6),a(84),a(18),a(28),a(42),a(16),a(98),a(4),a(23),a(57),a(24),a(17),a(85),a(62),a(7);var o,u=n(a(61)),l=n(a(96)),c=n(a(36)),s=n(a(37)),i=n(a(55)),f=n(a(56)),d=n(a(51)),p=a(186),m=n(a(789)),h=n(a(850)),v=n(a(790)),y=n(a(814)),g=n(a(26)),E=n(a(63)),_=n(a(74)),S=a(14),b=a(239),k=n(a(1216)),O=n(a(0)),w=n(a(1133)),P=a(52),C=a(791),D=n(a(4400)),R=n(a(4401));function T(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,a=(0,d.default)(e);if(t){var n=(0,d.default)(this).constructor;r=Reflect.construct(a,arguments,n)}else r=a.apply(this,arguments);return(0,f.default)(this,r)}}var N=(0,b.inject)("rootStore","workspaceStore")(o=(0,b.observer)(o=(0,C.trigger)(o=function(e){(0,i.default)(a,e);var r=T(a);function a(){var e;(0,c.default)(this,a);for(var n=arguments.length,o=new Array(n),s=0;s0&&O.default.createElement(k.default,{className:R.default.manage,content:r})},e}return(0,s.default)(a,[{key:"componentDidMount",value:function(){this.canViewWorkspaceProjects&&this.fetchMetrics()}},{key:"renderBaseInfo",value:function(){var e=this.store.detail,r=this.getResourceOptions();return O.default.createElement(m.default,{title:t("WORKSPACE_INFO")},O.default.createElement("div",{className:R.default.header},O.default.createElement(v.default,{className:R.default.title,icon:"enterprise",title:(0,P.getDomTitle)((0,P.showNameAndAlias)(e)),description:(0,P.getDomTitle)(e.description||t("WORKSPACE")),ellipsis:!0}),O.default.createElement(v.default,{title:e.manager,description:t("MANAGER")}),O.default.createElement(v.default,{title:(0,P.getLocalTime)(e.createTime).format("YYYY-MM-DD HH:mm:ss"),description:t("CREATION_TIME")}),this.renderManageButton()),this.canViewWorkspaceProjects&&O.default.createElement("div",{className:R.default.content},r.filter((function(e){return!e.hidden})).map((function(e){return O.default.createElement(v.default,{key:e.name,icon:e.icon,title:e.value,description:t(e.name)})}))))}},{key:"renderNetwork",value:function(){var e=this,r=this.store.detail;if(!globals.app.isMultiCluster){if(!globals.app.hasKSModule("network"))return null;var a=r.networkIsolation||!1;return O.default.createElement(m.default,{className:R.default.network,title:t("NETWORK_ISOLATION")},O.default.createElement("div",{className:R.default.item},O.default.createElement(v.default,{icon:"firewall",title:t(a?"ON":"OFF"),description:t("WS_NETWORK_ISOLATION")}),this.enabledActionsNetwork.includes("manage")&&O.default.createElement(h.default,{className:R.default.switch,text:t(a?"ON":"OFF"),onChange:this.handleSingleClusterNetworkChange,checked:a})))}var n=(0,S.toJS)(this.store.clusters),o=n.data,u=n.isLoading;return O.default.createElement(m.default,{className:R.default.network,title:t("NETWORK_ISOLATION")},(0,E.default)(o)&&!u&&O.default.createElement("div",{className:R.default.empty},t("NO_CLUSTER_AVAILABLE")),o.map((function(a){var n=(0,g.default)(r,"clusterTemplates[".concat(a.name,"]"))||{},o=(0,g.default)(n,"spec.networkIsolation",r.networkIsolation)||!1;return O.default.createElement("div",{className:R.default.item,key:a.name},O.default.createElement(y.default,{cluster:a,className:R.default.clusterTitle}),O.default.createElement(v.default,{icon:"firewall",title:t(o?"ON":"OFF"),description:t("WS_NETWORK_ISOLATION")}),e.enabledActions.includes("manage")&&((0,g.default)(a,"configz.network")?O.default.createElement(h.default,{className:R.default.switch,text:t(o?"ON":"OFF"),onChange:e.handleNetworkChange(a.name),checked:o}):O.default.createElement("span",{className:R.default.noModule},t("NETWORK_POLICY_UNINSATLLED_DESC"))))})))}},{key:"render",value:function(){return O.default.createElement("div",null,this.renderBaseInfo(),this.renderNetwork())}},{key:"store",get:function(){return this.props.workspaceStore}},{key:"module",get:function(){return"BaseInfo"}},{key:"routing",get:function(){return this.props.rootStore.routing}},{key:"workspace",get:function(){return this.props.match.params.workspace}},{key:"isMultiCluster",get:function(){return!(0,E.default)(this.store.detail.clusters)}},{key:"tips",get:function(){return[{title:t("WORKSPACE_BASE_INFO_Q1"),description:t("WORKSPACE_BASE_INFO_A1")}]}},{key:"enabledActions",get:function(){return globals.app.getActions({module:"workspace-settings",workspace:this.workspace})}},{key:"enabledActionsNetwork",get:function(){return globals.app.getActions({module:"networkpolicies",workspace:this.workspace})}},{key:"canViewWorkspaceProjects",get:function(){return globals.app.hasPermission({module:"projects",action:"view",workspace:this.workspace})}},{key:"enableManageAction",get:function(){var e=this.enabledActions,r=[];return e.includes("manage")&&r.push({actionName:"resource.baseinfo.edit",onClick:this.showEdit,icon:"pen",text:t("EDIT_INFORMATION")}),e.includes("manage")&&"member"!==globals.clusterRole&&r.push({actionName:"workspace.delete",onClick:this.handleDelete,icon:"trash",text:t("DELETE_WORKSPACE")}),r}}]),a}(O.default.Component))||o)||o)||o;r.default=N},4400:function(e,r,a){"use strict";var n=a(20);a(12),a(187),a(11),a(6),a(18),a(9),a(13),a(10),a(4),a(23),a(17),a(7),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,a(12),a(45),a(187),a(11),a(6),a(18),a(28),a(859),a(42),a(34),a(15),a(9),a(13),a(10),a(4),a(23),a(57),a(17),a(7);var o,u,l,c=n(a(30)),s=n(a(36)),i=n(a(37)),f=n(a(55)),d=n(a(56)),p=n(a(51)),m=a(186),h=n(a(787)),v=n(a(830)),y=n(a(800)),g=n(a(26)),E=n(a(241)),_=n(a(242)),S=a(239),b=n(a(1)),k=n(a(0)),O=n(a(322)),w=a(72);function P(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,a)}return r}function C(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,a=(0,p.default)(e);if(t){var n=(0,p.default)(this).constructor;r=Reflect.construct(a,arguments,n)}else r=a.apply(this,arguments);return(0,d.default)(this,r)}}var D=(0,S.observer)((l=u=function(e){(0,f.default)(a,e);var r=C(a);function a(e){var t;return(0,s.default)(this,a),(t=r.call(this,e)).fetchUsers=function(e){return t.userStore.fetchList(function(e){for(var t=1;tt.userStore.list.data.length&&(t.scrolling=!0,t.userStore.fetchList({more:!0,page:t.userStore.list.page+1}).then((function(){t.scrolling=!1})))},t.handleInputChange=(0,y.default)((function(e){e||!t._select?(t._search=!0,t.userStore.fetchList({name:e})):t._select=!1}),300),t.handleChange=function(e){t._select=!0,!e&&t._search&&(t.userStore.fetchList(),t._search=!1)},t.state={formData:(0,v.default)(e.detail._originData)},t.userStore=new O.default,t.fetchUsers(),t}return(0,i.default)(a,[{key:"render",value:function(){var e=this.props,r=e.visible,a=e.isSubmitting,n=e.onCancel,o=this.state.formData;return k.default.createElement(h.default.Form,{data:o,width:691,title:t("EDIT_INFORMATION"),icon:"enterprise",onOk:this.handleOk,okText:t("OK"),onCancel:n,visible:r,isSubmitting:a},k.default.createElement(m.Form.Item,{label:t("NAME"),desc:t("NAME_DESC")},k.default.createElement(m.Input,{name:"metadata.name",disabled:!0})),k.default.createElement(m.Form.Item,{label:t("ALIAS"),desc:t("ALIAS_NAME_DESC"),rules:[{pattern:w.PATTERN_ALIAS_NAME,message:t("INVALID_ALIAS_NAME_DESC")}]},k.default.createElement(m.Input,{name:"metadata.annotations['kubesphere.io/alias-name']",maxLength:63})),k.default.createElement(m.Form.Item,{label:t("ADMINISTRATOR")},k.default.createElement(m.Select,{name:"spec.template.spec.manager",options:this.users,pagination:(0,E.default)(this.userStore.list,["page","limit","total"]),isLoading:this.userStore.list.isLoading,onFetch:this.fetchUsers,defaultValue:globals.user.username,onChange:this.handleChange,searchable:!0})),k.default.createElement(m.Form.Item,{label:t("DESCRIPTION"),desc:t("DESCRIPTION_DESC")},k.default.createElement(m.TextArea,{name:"metadata.annotations['kubesphere.io/description']",maxLength:256,rows:"3"})))}},{key:"users",get:function(){var e=(0,g.default)(this.props.detail,"spec.template.spec.manager"),t=this.userStore.list.data.map((function(e){return{label:e.username,value:e.username}}));return t.every((function(t){return t.value!==e}))&&t.unshift({label:e,value:e}),t}}]),a}(k.default.Component),u.propTypes={detail:b.default.object,visible:b.default.bool,onOk:b.default.func,onCancel:b.default.func,isSubmitting:b.default.bool},u.defaultProps={visible:!1,onOk:function(){},onCancel:function(){},isSubmitting:!1},o=l))||o;r.default=D},4401:function(e,t,r){e.exports={header:"ySm_ubJyVUm8S8LbY2yIF",content:"_139KIcEdEKcJdiKUxOqkBa",tip:"_2Nsgzcsm1k-rqXu_VCsTgU",unbind:"_3Xy-as7N1JZ76WQrIXW9F1",action:"_1k9OCp058x4lIqafSr3xeN",item:"_3nvLCxrnjQ0KCiQeasoj7e",network:"_1jG_6R5BVNP1PJv9PQ6lh_",switch:"_2yn3vw2Pw0_JHStn5v03Hx",clusterTitle:"_2CKiDprsEk_4HcVvgH0rU3",empty:"_2f9pUp6DAKwVHDHqrnBOrX",title:"tvu2xaZOvMMQGFltqJ7xT",noModule:"_2uWU6vMT5mcHI5dpr1JJ4P",manage:"_3d5Sr8q7rZjE2qXijscb7s"}},4402:function(e,r,a){"use strict";a(15);var n=a(20);a(5),a(31),a(84),a(18),a(16),a(4),a(23),a(24),a(17),a(85),a(62),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,a(45),a(5),a(31),a(84),a(18),a(42),a(16),a(4),a(23),a(57),a(24),a(17),a(85),a(62);var o,u=n(a(315)),l=n(a(36)),c=n(a(37)),s=n(a(55)),i=n(a(56)),f=n(a(51)),d=n(a(0)),p=a(14),m=a(239),h=n(a(26)),v=n(a(4403)),y=n(a(4405));function g(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,a=(0,f.default)(e);if(t){var n=(0,f.default)(this).constructor;r=Reflect.construct(a,arguments,n)}else r=a.apply(this,arguments);return(0,i.default)(this,r)}}var E=(0,m.inject)("workspaceStore")(o=function(e){(0,s.default)(a,e);var r=g(a);function a(){var e;(0,l.default)(this,a);for(var t=arguments.length,n=new Array(t),o=0;o0){var s,i=(0,_.default)((0,u.default)(o.total),(function(e){return Object.keys(e)[0].split(".").slice(1).join(".")}));return s={},(0,l.default)(s,L,(0,E.default)(i,[L],[]).map((function(e){var t=Object.keys(e)[0],r=o.used.filter((function(e){return Object.keys(e)[0]===t}))[0];return{name:t,total:Object.values(e)[0],used:Object.values(r)[0]}}))),(0,l.default)(s,U,(0,E.default)(i,[U],[]).map((function(e){var t=Object.keys(e)[0],r=o.used.filter((function(e){return Object.keys(e)[0]===t}))[0];return{name:t,total:Object.values(e)[0],used:Object.values(r)[0]}}))),s}return{}}},{key:"allStorageClass",get:function(){return(0,v.toJS)(this.storageClassStore.list.data)}}]),a}(h.default.Component))||o)||o)||o;r.default=V},4404:function(e,t,r){e.exports={cluster:"_33bgBT87JaEVqJ0uzIjyFv",content:"_26wvITmEcN_9yGRcxyHvtB",actions:"FTCmPDXSK-8qQ7nF3OPEd",disabledTip:"_174Yw8pkPiTR9UrQjf7p84"}},4405:function(e,t,r){e.exports={title:"_2EN2HBaXv57LG6KaZxnUk0"}},4406:function(e,r,a){"use strict";var n=a(20),o=a(157);a(12),a(5),a(11),a(6),a(84),a(48),a(16),a(9),a(13),a(10),a(4),a(23),a(24),a(17),a(85),a(62),a(7),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,a(12),a(45),a(5),a(11),a(6),a(84),a(28),a(48),a(42),a(16),a(34),a(15),a(9),a(13),a(10),a(4),a(23),a(57),a(24),a(17),a(85),a(62),a(7);var u,l=n(a(30)),c=n(a(315)),s=n(a(36)),i=n(a(37)),f=n(a(55)),d=n(a(56)),p=n(a(51)),m=n(a(0)),h=a(14),v=n(a(788)),y=n(a(796)),g=o(a(793)),E=a(52),_=a(72),S=n(a(441));function b(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,a)}return r}function k(e){for(var t=1;t0;return this.enabledActions.includes("manage")?m.default.createElement("div",{className:(0,y.default)(T.default.contentHeader,e&&T.default.hasSelected)},e?this.renderSelectedTitle():this.renderToolBar()):null}},{key:"renderToolBar",value:function(){return m.default.createElement(S.Level,null,m.default.createElement(S.LevelLeft,null),m.default.createElement(S.LevelRight,null,m.default.createElement(S.Button,{type:"flat",onClick:this.handleRefresh},m.default.createElement(S.Icon,{name:"refresh"})),m.default.createElement(S.Button,{type:"control",onClick:this.showEditModal},t("SET_DEPARTMENTS"))))}},{key:"renderSelectedTitle",value:function(){return m.default.createElement(S.Level,null,m.default.createElement(S.LevelLeft,null,1===this.state.selectUserKeys.length?t.html("ADD_MEMBER_TIP_SI",{group:this.state.groupTitle}):t.html("ADD_MEMBER_TIP_PL",{group:this.state.groupTitle})),m.default.createElement(S.LevelRight,null,m.default.createElement(S.Button,{type:"primary",onClick:this.handleAddGroup},t("OK")),m.default.createElement(S.Button,{onClick:this.handleCancelSelect},t("CANCEL"))))}},{key:"render",value:function(){var e=(0,v.toJS)(this.store),r=e.treeData,a=e.rowTreeData,n=e.total,o=e.isLoading,l=this.state,c=l.group,s=l.selectUserKeys,i=l.refreshFlag,f=l.showModal;return m.default.createElement(m.default.Fragment,null,m.default.createElement("div",{className:T.default.wrapper},this.renderTitle(),m.default.createElement("div",{className:T.default.content},m.default.createElement("div",{className:T.default.container},m.default.createElement(D.default,{treeData:r,group:c,total:n,isLoading:!this.silentLoading&&o,onSelect:this.handleSelectTree}),m.default.createElement(R.default,(0,u.default)({groupStore:this.store,userStore:this.userStore,group:c,refreshFlag:i,selectedKeys:s,onSelect:this.handleSelectUser,enabledActions:this.enabledActions},this.props))))),f&&m.default.createElement(C.default,(0,u.default)({visible:f,title:t("SET_DEPARTMENTS"),treeData:r,rowTreeData:a,store:this.store,workspaceStore:this.props.workspaceStore,onCancel:this.hideModal},this.props.match.params)))}},{key:"enabledActions",get:function(){var e=this.props.match.params.workspace;return globals.app.getActions({module:"groups",workspace:e})}}]),a}(m.default.Component))||o)||o;r.default=j},4409:function(e,r,a){"use strict";a(15);var n=a(20);a(4),a(23),a(17),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,a(45),a(42),a(4),a(23),a(57),a(17);var o,u,l,c=n(a(315)),s=n(a(36)),i=n(a(37)),f=n(a(55)),d=n(a(56)),p=n(a(51)),m=n(a(0)),h=n(a(1)),v=a(239),y=n(a(26)),g=n(a(787)),E=n(a(4410)),_=n(a(4413)),S=n(a(4420));function b(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,a=(0,p.default)(e);if(t){var n=(0,p.default)(this).constructor;r=Reflect.construct(a,arguments,n)}else r=a.apply(this,arguments);return(0,d.default)(this,r)}}var k=(0,v.observer)((l=u=function(e){(0,f.default)(a,e);var r=b(a);function a(e){var t;return(0,s.default)(this,a),(t=r.call(this,e)).toggleForm=function(){t.setState((function(e){return{showForm:!e.showForm}}))},t.handleSelect=function(e){t.setState({showForm:!1,groupId:e[0],treeNodeId:e[0]})},t.handleTreeNodeIdChange=function(e){t.setState({treeNodeId:e})},t.store=e.store,t.state={showForm:!1,groupId:"",treeNodeId:"root"},t}return(0,i.default)(a,[{key:"componentDidMount",value:function(){var e=this.props.treeData;(0,y.default)(e[0],"children",[]).length>0?this.setState({groupId:e[0].group_id}):this.setState({showForm:!0})}},{key:"render",value:function(){var e=this.props,r=e.visible,a=e.title,n=e.onCancel,o=e.treeData,u=this.state,l=u.showForm,s=u.groupId,i=u.treeNodeId;return m.default.createElement(g.default,{width:1162,title:a,closable:!1,cancelText:t("CLOSE"),visible:r,onCancel:n,bodyClassName:S.default.modalBody,footerClassName:S.default.modalFooter},m.default.createElement("div",{className:S.default.content},m.default.createElement(E.default,{treeData:o,groupId:this.groupId,onSelect:this.handleSelect}),m.default.createElement(_.default,(0,c.default)({},this.props,{showForm:l,toggleForm:this.toggleForm,onChange:this.handleTreeNodeIdChange,groupId:s,treeNodeId:i}))))}}]),a}(m.default.Component),u.propTypes={visible:h.default.bool,title:h.default.string,onCancel:h.default.func},u.defaultProps={visible:!1},o=l))||o;r.default=k},4410:function(e,r,a){"use strict";var n=a(20);a(12),a(11),a(6),a(9),a(13),a(10),a(4),a(23),a(17),a(7),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,a(12),a(45),a(11),a(6),a(28),a(42),a(34),a(15),a(9),a(13),a(10),a(4),a(23),a(57),a(17),a(7);var o,u,l,c=n(a(30)),s=n(a(36)),i=n(a(37)),f=n(a(55)),d=n(a(56)),p=n(a(51)),m=n(a(1874)),h=a(239),v=n(a(1)),y=n(a(0)),g=a(52),E=n(a(4412));function _(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,a)}return r}function S(e){for(var t=1;t0?y.default.createElement(m.default,{className:E.default.tree,showLine:!0,defaultExpandedKeys:[o||"root"],defaultSelectedKeys:[o||"root"],onSelect:u,treeData:n,processor:{processProps:function(e){return"root"===e.key?S(S({},e),{},{title:(0,g.showNameAndAlias)(e.title,"workspace")}):S(S({},e),{},{title:(0,g.getDisplayName)(e)})}}}):y.default.createElement("p",null,t("NO_DEPARTMENT_TIP"))))}}]),a}(y.default.Component),u.propTypes={treeData:v.default.array},o=l))||o;r.default=k},4411:function(e,t,r){"use strict";r(15),r(22);var a=r(157),n=r(20);r(5),r(11),r(6),r(86),r(18),r(10),r(4),r(23),r(17),r(7),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(r(315)),u=n(r(30)),l=n(r(36)),c=n(r(37)),s=n(r(55)),i=n(r(56)),f=n(r(51)),d=n(r(58));r(45),r(5),r(11),r(6),r(86),r(160),r(18),r(42),r(10),r(4),r(23),r(57),r(17),r(7);var p=n(r(3)),m=n(r(1)),h=a(r(0)),v=n(r(1875)),y=n(r(1876)),g=n(r(1877)),E=r(1878);function _(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,a=(0,f.default)(e);if(t){var n=(0,f.default)(this).constructor;r=Reflect.construct(a,arguments,n)}else r=a.apply(this,arguments);return(0,i.default)(this,r)}}var S=function(e){(0,s.default)(r,e);var t=_(r);function r(){var e;(0,l.default)(this,r);for(var a=arguments.length,n=new Array(a),o=0;o2&&void 0!==arguments[2]?arguments[2]:0,n=e.state,o=n.keyEntities,u=n.expandedKeys,l=void 0===u?[]:u,c=n.selectedKeys,s=void 0===c?[]:c,i=(0,E.getPosition)(a,r),f=t.key||i;return o[f]?h.default.cloneElement(t,{key:f,eventKey:f,pos:i,expanded:-1!==l.indexOf(f),selected:-1!==s.indexOf(f)}):null},e}return(0,c.default)(r,[{key:"getChildContext",value:function(){return{tree:{disabled:this.props.disabled,renderTreeNode:this.renderTreeNode,onNodeClick:this.onNodeClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect}}}},{key:"render",value:function(){var e=this,t=this.props,r=t.className,a=t.showLine,n=this.state.treeNode,l=(0,E.getDataAndAria)(this.props);return h.default.createElement("ul",(0,o.default)({},l,{className:(0,p.default)(y.default.tree,r,(0,u.default)({},y.default.showLine,a)),role:"tree",unselectable:"on"}),(0,E.mapChildren)(n,(function(t,r){return e.renderTreeNode(t,r)})))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var r=t.prevProps,a=e.expandedKeys,n=e.defaultExpandedKeys,o={prevProps:e},u=function(t){return!r&&t in e||!(!r||r[t]===e[t])},l=null;if(u("treeData")?l=function e(t,r){if(!t)return[];var a=(r||{}).processProps,n=void 0===a?function(e){return e}:a;return(Array.isArray(t)?t:[t]).map((function(t){var a=t.children,o=(0,d.default)(t,["children"]),u=e(a,r);return h.default.createElement(g.default,n(o),u)}))}(e.treeData,e.processor):u("children")&&(l=(0,E.toArray)(e.children)),l){o.treeNode=l;var c=(0,E.convertTreeToEntities)(l);o.posEntities=c.posEntities,o.keyEntities=c.keyEntities}var s=o.keyEntities||t.keyEntities;return u("expandedKeys")?o.expandedKeys=r?a:(0,E.conductExpandParent)(a,s):r||(o.expandedKeys=(0,E.conductExpandParent)(n,s)),u("selectedKeys")?o.selectedKeys=(0,E.calcSelectedKeys)(e.selectedKeys,e):!r&&e.defaultSelectedKeys&&(o.selectedKeys=(0,E.calcSelectedKeys)(e.defaultSelectedKeys,e)),o}}]),r}(h.Component);t.default=S,S.popTypes={className:m.default.className,treeData:m.default.array,showLine:m.default.bool,children:m.default.any,defaultExpandedKeys:m.default.arrayOf(m.default.string),defaultSelectedKeys:m.default.arrayOf(m.default.string),toggleNodeSelect:m.default.bool,onSelect:m.default.func,onClick:m.default.func,onExpand:m.default.func,disabled:m.default.bool},S.DefaultProps={showLine:!1,disabled:!1,toggleNodeSelect:!1,defaultExpandedKeys:[],defaultSelectedKeys:[]},S.contextTypes=v.default,S.childContextTypes=v.default},4412:function(e,t,r){e.exports={wrapper:"XWdVrGyDyVjTP6y5MMGS-",treeWrapper:"_2Vpq9xIPtc8ByYb17OEYOB"}},4413:function(e,r,a){"use strict";var n=a(20),o=a(157);a(12),a(5),a(11),a(31),a(6),a(18),a(9),a(13),a(10),a(4),a(23),a(17),a(7),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,a(12),a(45),a(5),a(11),a(31),a(6),a(18),a(28),a(42),a(34),a(15),a(9),a(13),a(10),a(4),a(22),a(23),a(57),a(17),a(7);var u=n(a(315)),l=n(a(30)),c=n(a(43)),s=n(a(61));a(41);var i,f,d,p=n(a(44)),m=n(a(36)),h=n(a(37)),v=n(a(55)),y=n(a(56)),g=n(a(51)),E=n(a(240)),_=n(a(824)),S=n(a(135)),b=n(a(450)),k=n(a(26)),O=n(a(63)),w=n(a(74)),P=n(a(247)),C=a(239),D=n(a(1)),R=o(a(0)),T=a(52),N=a(1746),A=n(a(4414)),j=n(a(4416)),I=n(a(4419));function M(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,a)}return r}function x(e){for(var t=1;t"))})))}},{key:"render",value:function(){var e=this.state,r=e.formTemplate,a=e.mode,n=e.showConfirm,o=e.resource,l=o.group_name,c=o.children,s=e.treeNode,i=e.deleteKeys,f=this.props,d=f.groupId,p=f.showForm,m=(0,O.default)(c)?t.html("DELETE_GROUP_TIP",{group_name:l}):t.html("DELETE_PARENT_GROUP_TIP",{group_name:l});return R.default.createElement("div",{className:I.default.detailWrapper},this.renderBreadcrumbs(),p?R.default.createElement(j.default,(0,u.default)({},this.props,{formTemplate:r,mode:a,groupId:d,onCancel:this.handleCancel,onSave:this.handleSave})):R.default.createElement(A.default,{treeNode:s,deleteKeys:i,onAdd:this.handleAdd,onEdit:this.handleEdit,onDelete:this.handleDelete}),R.default.createElement(_.default,{visible:n,onOk:this.handleConfirm,onCancel:this.hideConfirm,resource:l,desc:m}))}}]),a}(R.Component),f.propTypes={rowTreeData:D.default.object,groupId:D.default.string},i=d))||i;r.default=U},4414:function(e,r,a){"use strict";a(15);var n=a(20);a(84),a(18),a(4),a(23),a(17),a(85),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,a(45),a(84),a(18),a(42),a(4),a(23),a(57),a(17),a(85);var o=n(a(36)),u=n(a(37)),l=n(a(55)),c=n(a(56)),s=n(a(51)),i=n(a(0)),f=n(a(1)),d=n(a(26)),p=a(186),m=n(a(788)),h=a(52),v=n(a(4415));function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,a=(0,s.default)(e);if(t){var n=(0,s.default)(this).constructor;r=Reflect.construct(a,arguments,n)}else r=a.apply(this,arguments);return(0,c.default)(this,r)}}var g=function(e){(0,l.default)(a,e);var r=y(a);function a(){return(0,o.default)(this,a),r.apply(this,arguments)}return(0,u.default)(a,[{key:"renderContent",value:function(){var e=this.props,r=e.treeNode.children,a=void 0===r?[]:r,n=e.deleteKeys,o=e.onEdit,u=e.onDelete;if(a.length>0)return a.map((function(e){var r=e.props||e;return i.default.createElement("div",{className:v.default.item,key:r.group_id},i.default.createElement(m.default,{className:v.default.avatar,icon:"group",iconSize:32,title:(0,h.getDisplayName)({name:r.group_name,aliasName:r.alias_name}),desc:(0,d.default)(r._originData,'metadata.annotations.["kubesphere.io/workspace-role"]')}),i.default.createElement("div",null,i.default.createElement("span",{className:"text-second padding-20"},n.includes(r.group_id)&&t("DELETING")),i.default.createElement(p.Button,{icon:"pen",type:"flat",onClick:function(){return o(r)}}),i.default.createElement(p.Button,{icon:"trash",type:"flat",onClick:function(){return u(r)}})))}))}},{key:"render",value:function(){var e=this.props.onAdd;return i.default.createElement("div",{className:v.default.cardWrapper},this.renderContent(),i.default.createElement("div",{className:v.default.empty,onClick:e},i.default.createElement("span",{className:v.default.icon}),i.default.createElement("span",null,t("CREATE_DEPARTMENT"))))}}]),a}(i.default.Component);r.default=g,g.propTypes={treeNode:f.default.object,onAdd:f.default.func,onEdit:f.default.func,onDelete:f.default.func}},4415:function(e,t,r){e.exports={cardWrapper:"_3wF5NYA-Pi8X_0xsiht8V9",item:"_1qqN7IfnNUInTkOWcdk8ey",avatar:"_3xx69JpMHTSALna5hG8YmR",empty:"_3bZ6AeTCOSxEEm34n0HTdu",icon:"_2F7y69hUXoCD7F961yZ0S5"}},4416:function(e,r,a){"use strict";a(15);var n=a(20);a(18),a(97),a(16),a(9),a(4),a(23),a(17),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,a(45),a(18),a(97),a(42),a(16),a(9),a(4),a(23),a(57),a(17);var o,u,l,c,s=n(a(315)),i=n(a(36)),f=n(a(37)),d=n(a(55)),p=n(a(56)),m=n(a(51)),h=n(a(49)),v=a(186),y=n(a(829)),g=n(a(135)),E=n(a(26)),_=n(a(74)),S=a(14),b=a(239),k=n(a(1)),O=n(a(0)),w=n(a(441)),P=a(52),C=a(72),D=n(a(4417)),R=n(a(1426)),T=n(a(4418));function N(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,a=(0,m.default)(e);if(t){var n=(0,m.default)(this).constructor;r=Reflect.construct(a,arguments,n)}else r=a.apply(this,arguments);return(0,p.default)(this,r)}}var A=(0,b.observer)((c=l=function(e){(0,d.default)(a,e);var r=N(a);function a(e){var n;return(0,i.default)(this,a),(n=r.call(this,e)).nameValidator=function(e,r,a){var o=n.props,u=o.workspace,l=o.mode;if(!r||"edit"===l)return a();n.props.store.checkName({name:r,workspace:u}).then((function(r){if(r.exist)return a({message:t("NAME_EXIST_DESC"),field:e.field});a()}))},n.checkItemValid=function(e){return e.role},n.handleSave=function(){var e=n.props,t=e.onSave,r=e.groupId,a=e.mode,o=(0,g.default)(n.state.formTemplate),u=n.formRef.current;u&&u.validate((function(){r&&(0,_.default)(o,'metadata.labels["iam.kubesphere.io/group-parent"]',r),"edit"===a?t(o,n.props.formTemplate):t(o)}))},n.formRef=O.default.createRef(),n.workspaceStore=e.workspaceStore,n.workspaceRoleStore=new w.default("workspaceroles"),n.state={formTemplate:(0,g.default)(e.formTemplate)},n}return(0,f.default)(a,[{key:"componentDidUpdate",value:function(e){this.props.formTemplate!==e.formTemplate&&this.setState({formTemplate:(0,g.default)(this.props.formTemplate)})}},{key:"componentDidMount",value:function(){this.fetchWorkspaceRoles()}},{key:"fetchWorkspaceRoles",value:function(){this.workspaceRoleStore.fetchList({workspace:this.props.workspace,limit:-1,sortBy:"createTime"})}},{key:"render",value:function(){var e=this.props,r=e.onCancel,a=e.mode,n=this.state.formTemplate;return O.default.createElement("div",{className:R.default.formWrapper},O.default.createElement(v.Form,{data:n,className:R.default.form,ref:this.formRef},O.default.createElement(v.Form.Item,{label:t("NAME"),desc:t("NAME_DESC"),rules:[{required:!0,message:t("NAME_EMPTY_DESC")},{pattern:C.PATTERN_NAME,message:t("INVALID_NAME_DESC")},{validator:this.nameValidator}]},O.default.createElement(v.Input,{name:"metadata.generateName",autoFocus:!0,maxLength:63,autoComplete:"off",disabled:"edit"===a})),O.default.createElement(v.Form.Item,{label:t("ALIAS"),desc:t("ALIAS_NAME_DESC"),rules:[{pattern:C.PATTERN_ALIAS_NAME,message:t("INVALID_ALIAS_NAME_DESC")}]},O.default.createElement(v.Input,{name:"metadata.annotations['kubesphere.io/alias-name']",maxLength:63,autoComplete:"off"})),O.default.createElement(v.Form.Item,{label:t("WORKSPACE_ROLE"),desc:t("GROUP_WORKSPACE_ROLE_DESC")+(this.needUpgrade?t("MEMBER_CLUSTER_UPGRADE_TIP",{version:"v3.1.0"}):"")},O.default.createElement(v.Select,{name:"metadata.annotations['kubesphere.io/workspace-role']",options:this.workspaceRoles,onChange:this.handleRolesChange})),O.default.createElement(v.Form.Group,{label:t("PROJECT_ROLE")},O.default.createElement(v.Form.Item,null,O.default.createElement(y.default,{name:"metadata.annotations['kubesphere.io/project-roles']",itemType:"object",addText:t("ADD_PROJECT"),checkItemValid:this.checkItemValid},O.default.createElement(T.default,(0,s.default)({clusters:this.clusters,showClusterSelect:globals.app.isMultiCluster},this.props))))),globals.app.hasKSModule("devops")&&O.default.createElement(v.Form.Group,{label:t("DEVOPS_PROJECT_ROLE")},O.default.createElement(v.Form.Item,null,O.default.createElement(y.default,{name:"metadata.annotations['kubesphere.io/devops-roles']",itemType:"object",addText:t("ADD_DEVOPS_PROJECT"),checkItemValid:this.checkItemValid},O.default.createElement(D.default,(0,s.default)({clusters:this.clusters,showClusterSelect:globals.app.isMultiCluster},this.props)))))),O.default.createElement("div",{className:R.default.footer},O.default.createElement(v.Button,{onClick:r},t("CANCEL")),O.default.createElement(v.Button,{type:"primary",onClick:this.handleSave},t("OK"))))}},{key:"needUpgrade",get:function(){return this.workspaceStore.clusters.data.some((function(e){return(0,P.compareVersion)(globals.app.isMultiCluster?(0,E.default)(e,"configz.ksVersion",""):(0,E.default)(globals,"ksConfig.ksVersion"),"v3.1.0")<0}))}},{key:"workspaceRoles",get:function(){return this.workspaceRoleStore.list.data.map((function(e){return{label:e.name,value:e.name,item:e}}))}},{key:"clusters",get:function(){return this.workspaceStore.clusters.data.map((function(e){var t=(0,P.compareVersion)(globals.app.isMultiCluster?(0,E.default)(e,"configz.ksVersion",""):(0,E.default)(globals,"ksConfig.ksVersion"),"v3.1.0")<0;return{label:e.name,value:e.name,disabled:!e.isReady||t,needUpgrade:t,item:e}}))}}]),a}(O.default.Component),l.propTypes={workspace:k.default.string,groupId:k.default.string},u=c,(0,h.default)(u.prototype,"workspaceRoles",[S.computed],Object.getOwnPropertyDescriptor(u.prototype,"workspaceRoles"),u.prototype),(0,h.default)(u.prototype,"clusters",[S.computed],Object.getOwnPropertyDescriptor(u.prototype,"clusters"),u.prototype),o=u))||o;r.default=A},4417:function(e,r,a){"use strict";a(15);var n=a(20),o=a(157);a(187),a(11),a(18),a(16),a(9),a(4),a(23),a(17),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,a(45),a(187),a(11),a(18),a(42),a(16),a(9),a(4),a(23),a(57),a(17);var u,l,c,s,i=n(a(36)),f=n(a(37)),d=n(a(55)),p=n(a(56)),m=n(a(51)),h=n(a(49)),v=o(a(0)),y=n(a(1)),g=a(14),E=a(239),_=n(a(806)),S=n(a(63)),b=a(186),k=a(52),O=n(a(441)),w=n(a(323)),P=n(a(1426));function C(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,a=(0,m.default)(e);if(t){var n=(0,m.default)(this).constructor;r=Reflect.construct(a,arguments,n)}else r=a.apply(this,arguments);return(0,p.default)(this,r)}}var D=(0,E.observer)((s=c=function(e){(0,d.default)(a,e);var r=C(a);function a(e){var n;return(0,i.default)(this,a),(n=r.call(this,e)).handleChange=function(){var e=n.state,t=e.cluster,r=e.namespace,a=e.role;n.props.onChange({cluster:t,namespace:r,role:a})},n.handleClusterChange=function(e){n.setState({cluster:e,namespace:"",role:""},(function(){n.handleChange(),n.fetchDevops(),n.devopsRoleStore.list.update({data:[]})}))},n.handleDevopsChange=function(e){n.setState({namespace:e,role:""},(function(){n.handleChange(),n.fetchDevopsRoles()}))},n.handleRoleChange=function(e){n.setState({role:e},(function(){return n.handleChange()}))},n.clusterRenderer=function(e){return v.default.createElement("span",null,v.default.createElement("span",null,(0,k.showNameAndAlias)(e.item)),e.needUpgrade&&v.default.createElement(b.Tooltip,{content:t("CLUSTER_UPGRADE_REQUIRED",{version:"v3.1.0"}),placement:"bottom"},v.default.createElement(b.Icon,{name:"update",className:P.default.tip,color:{primary:"#ffc781",secondary:"#f5a623"}})))},n.devopsStore=new w.default,n.devopsRoleStore=new O.default,n.state={cluster:(0,S.default)(e.value)?"":e.value.cluster,namespace:(0,S.default)(e.value)?"":e.value.namespace,role:(0,S.default)(e.value)?"":e.value.role},n}return(0,f.default)(a,[{key:"componentDidMount",value:function(){this.fetchDevops(),this.fetchDevopsRoles()}},{key:"componentDidUpdate",value:function(e){var t=this;(0,_.default)(e.value,this.props.value)||this.setState({cluster:this.props.value.cluster||"",namespace:this.props.value.namespace||"",role:this.props.value.role||""},(function(){t.fetchDevops(),t.fetchDevopsRoles()}))}},{key:"fetchDevops",value:function(){var e=this.state.cluster,t=this.props.showClusterSelect;!e&&t||this.devopsStore.fetchList({workspace:this.props.workspace,cluster:e,limit:-1,sortBy:"createTime"})}},{key:"fetchDevopsRoles",value:function(){var e=this.state,t=e.cluster,r=e.namespace;r&&this.devopsRoleStore.fetchList({devops:r,cluster:t,limit:-1,sortBy:"createTime"})}},{key:"render",value:function(){var e=this,r=this.props,a=r.clusters,n=r.value,o=r.showClusterSelect,u=this.state,l=u.cluster,c=u.namespace,s=u.role,i=!(0,S.default)(n)&&n.disabled;return v.default.createElement("div",{className:P.default.selectWrapper},o&&v.default.createElement(b.Select,{name:"cluster",value:l,disabled:i,options:a,placeholder:t("CLUSTER"),valueRenderer:function(e){return t("CLUSTER_VALUE",{value:(0,k.showNameAndAlias)(e.item)})},optionRenderer:this.clusterRenderer,prefixIcon:v.default.createElement(b.Icon,{name:"cluster",size:16}),onChange:this.handleClusterChange,showTip:!0}),v.default.createElement(b.Select,{name:"namespace",value:c,disabled:i,options:this.devops,placeholder:" ",valueRenderer:function(r){var a,n=(null===(a=(0,g.toJS)(e.devopsStore.list).data)||void 0===a?void 0:a.filter((function(e){return e.devops===r.value}))[0])||"";return t("PROJECT_VALUE",{value:(0,k.showNameAndAlias)(n)})},prefixIcon:v.default.createElement(b.Icon,{name:"strategy-group",size:16}),onChange:this.handleDevopsChange}),v.default.createElement(b.Select,{name:"role",value:s,disabled:i,options:this.roles,valueRenderer:function(e){return t("DEVOPS_PROJECT_ROLES_VALUE",{value:e.value})},prefixIcon:v.default.createElement(b.Icon,{name:"role",size:16}),placeholder:t("ROLE"),onChange:this.handleRoleChange}))}},{key:"devops",get:function(){var e=this,t=this.props.arrayValue,r=void 0===t?[]:t;return(0,g.toJS)(this.devopsStore.list).data.filter((function(t){return r.every((function(r){return r.cluster!==e.state.cluster||r.namespace!==t.devops}))})).map((function(e){return{label:(0,k.showNameAndAlias)(e),value:e.devops,item:e}}))}},{key:"roles",get:function(){return this.devopsRoleStore.list.data.map((function(e){return{label:e.name,value:e.name,item:e}}))}}]),a}(v.Component),c.propTypes={clusters:y.default.array},l=s,(0,h.default)(l.prototype,"devops",[g.computed],Object.getOwnPropertyDescriptor(l.prototype,"devops"),l.prototype),(0,h.default)(l.prototype,"roles",[g.computed],Object.getOwnPropertyDescriptor(l.prototype,"roles"),l.prototype),u=l))||u;r.default=D},4418:function(e,r,a){"use strict";a(15);var n=a(20),o=a(157);a(187),a(11),a(18),a(16),a(9),a(4),a(23),a(17),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,a(45),a(187),a(11),a(18),a(42),a(16),a(9),a(4),a(23),a(57),a(17);var u,l,c,s,i=n(a(36)),f=n(a(37)),d=n(a(55)),p=n(a(56)),m=n(a(51)),h=n(a(49)),v=o(a(0)),y=n(a(1)),g=a(14),E=a(239),_=n(a(806)),S=n(a(63)),b=a(186),k=a(52),O=n(a(441)),w=n(a(439)),P=n(a(1426));function C(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,a=(0,m.default)(e);if(t){var n=(0,m.default)(this).constructor;r=Reflect.construct(a,arguments,n)}else r=a.apply(this,arguments);return(0,p.default)(this,r)}}var D=(0,E.observer)((s=c=function(e){(0,d.default)(a,e);var r=C(a);function a(e){var n;return(0,i.default)(this,a),(n=r.call(this,e)).handleChange=function(){var e=n.state,t=e.cluster,r=e.namespace,a=e.role;n.props.onChange({cluster:t,namespace:r,role:a})},n.handleClusterChange=function(e){n.setState({cluster:e,namespace:"",role:""},(function(){n.handleChange(),n.fetchProjects(),n.roleStore.list.update({data:[]})}))},n.handleProjectsChange=function(e){n.setState({namespace:e,role:""},(function(){n.handleChange(),n.fetchRoles()}))},n.handleRoleChange=function(e){n.setState({role:e},(function(){return n.handleChange()}))},n.clusterRenderer=function(e){return v.default.createElement("span",null,v.default.createElement("span",null,(0,k.showNameAndAlias)(e.item)),e.needUpgrade&&v.default.createElement(b.Tooltip,{content:t("CLUSTER_UPGRADE_REQUIRED",{version:"v3.1.0"}),placement:"bottom"},v.default.createElement(b.Icon,{name:"update",className:P.default.tip,color:{primary:"#ffc781",secondary:"#f5a623"}})))},n.workspaceStore=e.workspaceStore,n.projectStore=new w.default,n.roleStore=new O.default,n.state={cluster:(0,S.default)(e.value)?"":e.value.cluster,namespace:(0,S.default)(e.value)?"":e.value.namespace,role:(0,S.default)(e.value)?"":e.value.role},n}return(0,f.default)(a,[{key:"componentDidMount",value:function(){this.fetchProjects(),this.fetchRoles()}},{key:"componentDidUpdate",value:function(e){var t=this;(0,_.default)(e.value,this.props.value)||this.setState({cluster:this.props.value.cluster||"",namespace:this.props.value.namespace||"",role:this.props.value.role||""},(function(){t.fetchProjects(),t.fetchRoles()}))}},{key:"fetchProjects",value:function(){var e=this.state.cluster,t=this.props.showClusterSelect;!e&&t||this.projectStore.fetchList({workspace:this.props.workspace,cluster:e,limit:-1,sortBy:"createTime"})}},{key:"fetchRoles",value:function(){var e=this.state,t=e.cluster,r=e.namespace;r&&this.roleStore.fetchList({workspace:this.props.workspace,cluster:t,namespace:r,limit:-1,sortBy:"createTime"})}},{key:"render",value:function(){var e=this,r=this.props,a=r.clusters,n=r.value,o=r.showClusterSelect,u=this.state,l=u.cluster,c=u.namespace,s=u.role,i=!(0,S.default)(n)&&n.disabled;return v.default.createElement("div",{className:P.default.selectWrapper},o&&v.default.createElement(b.Select,{name:"cluster",value:l,disabled:i,options:a,placeholder:t("CLUSTER"),valueRenderer:function(e){return t("CLUSTER_VALUE",{value:(0,k.showNameAndAlias)(e.item)})},optionRenderer:this.clusterRenderer,prefixIcon:v.default.createElement(b.Icon,{name:"cluster",size:16}),onChange:this.handleClusterChange,showTip:!0}),v.default.createElement(b.Select,{name:"namespace",value:c,disabled:i,options:this.projects,placeholder:t("PROJECT"),valueRenderer:function(r){var a=e.projectStore.list.data.filter((function(e){return e.name===r.value}))[0]||"";return t("PROJECT_VALUE",{value:(0,k.showNameAndAlias)(a)})},prefixIcon:v.default.createElement(b.Icon,{name:"project",size:16}),onChange:this.handleProjectsChange}),v.default.createElement(b.Select,{name:"role",value:s,disabled:i,options:this.roles,valueRenderer:function(e){return t("PROJECT_ROLE_VALUE",{value:e.value})},prefixIcon:v.default.createElement(b.Icon,{name:"role",size:16}),placeholder:t("ROLE"),onChange:this.handleRoleChange}))}},{key:"projects",get:function(){var e=this,t=this.props.arrayValue,r=void 0===t?[]:t;return this.projectStore.list.data.filter((function(t){return r.every((function(r){return r.cluster!==e.state.cluster||r.namespace!==t.name}))})).map((function(e){return{label:(0,k.showNameAndAlias)(e),value:e.name,item:e}}))}},{key:"roles",get:function(){return this.roleStore.list.data.map((function(e){return{label:e.name,value:e.name,item:e}}))}}]),a}(v.Component),c.propTypes={clusters:y.default.array},l=s,(0,h.default)(l.prototype,"projects",[g.computed],Object.getOwnPropertyDescriptor(l.prototype,"projects"),l.prototype),(0,h.default)(l.prototype,"roles",[g.computed],Object.getOwnPropertyDescriptor(l.prototype,"roles"),l.prototype),u=l))||u;r.default=D},4419:function(e,t,r){e.exports={detailWrapper:"_1S1C__bXDtYMZ6xPU4u9FD",breadcrumbs:"sXboNxn0VlO0e8ZxzvJ9m",separator:"_2KeuD0ObNijSwq5odIg9DE"}},4420:function(e,t,r){e.exports={modalBody:"_3-5Nz5JgV2fPz1zNyGcO5c",content:"_3EgUH5MLx3S1cM-9DVdDVC",modalFooter:"_3_Z5HTlLEz3aoecExFXAxd"}},4421:function(e,r,a){"use strict";var n=a(20),o=a(157);a(12),a(5),a(11),a(6),a(9),a(13),a(10),a(4),a(23),a(17),a(7),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,a(12),a(45),a(5),a(11),a(6),a(28),a(42),a(34),a(15),a(9),a(13),a(10),a(4),a(23),a(57),a(17),a(7);var u,l,c,s=n(a(30)),i=n(a(36)),f=n(a(37)),d=n(a(55)),p=n(a(56)),m=n(a(51)),h=a(186),v=n(a(1874)),y=n(a(135)),g=n(a(26)),E=n(a(74)),_=a(239),S=n(a(1)),b=o(a(0)),k=a(52),O=n(a(4422));function w(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,a)}return r}function P(e){for(var t=1;t0&&this.renderTree())}}]),a}(b.Component),l.propTypes={treeData:S.default.array,total:S.default.number,isLoading:S.default.bool,onSelect:S.default.func},u=c))||u;r.default=D},4422:function(e,t,r){e.exports={wrapper:"_2iCTOipXFP82e41v-tZzEf",empty:"_3DQ5W3kiOrYnwnIm04s7WS",loading:"_3428Y_KBOws7FcaUlX1sks",treeWrapper:"m0r6YLradu_GH2NXkD7sy"}},4423:function(e,r,a){"use strict";var n=a(20),o=a(157);a(12),a(5),a(11),a(6),a(84),a(18),a(16),a(9),a(13),a(10),a(4),a(23),a(24),a(17),a(85),a(62),a(188),a(7),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,a(12),a(45),a(5),a(11),a(6),a(84),a(18),a(28),a(42),a(16),a(34),a(15),a(9),a(13),a(10),a(4),a(23),a(57),a(24),a(17),a(85),a(62),a(188),a(7);var u,l,c,s=n(a(30)),i=n(a(36)),f=n(a(37)),d=n(a(55)),p=n(a(56)),m=n(a(51)),h=o(a(0)),v=n(a(1)),y=a(239),g=n(a(3)),E=a(14),_=a(186),S=n(a(863)),b=a(791),k=n(a(4424)),O=n(a(1879));function w(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,a)}return r}function P(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=n.state,r=t.group,a=t.search;n.userStore.fetchGroupUser(P(P({},e),{},{notingroup:r,name:a,type:"notingroup",limit:-1}))},n.fetchIngroupData=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=n.state,r=t.group,a=t.search;n.userStore.fetchGroupUser(P(P({},e),{},{ingroup:r,name:a,type:"ingroup",limit:-1}))},n.handleTypeChange=function(e){n.setState({type:e})},n.handleSearch=function(e){n.setState({search:e},(function(){n.fetchIngroupData(),n.fetchNotingroupData()}))},n.handleSelect=function(e){n.props.onSelect(e)},n.handleDelete=function(e){n.trigger("group.user.remove",P({store:n.props.groupStore,detail:(0,E.toJS)(P(P({},e),{},{group:n.state.group})),success:function(){n.fetchIngroupData({page:1}),n.fetchNotingroupData({page:1})}},n.props.match.params))},n.renderPlaceHolder=function(){return h.default.createElement("div",{className:O.default.item},t("DEPARTMENT_EMPTY_DESC"))},n.userStore=e.userStore,n.groupStore=e.groupStore,n.state={type:"ingroup",group:e.group,search:""},n.configs=n.getConfigs(),n}return(0,f.default)(a,[{key:"componentDidUpdate",value:function(e){var t=this;e.refreshFlag===this.props.refreshFlag&&e.group===this.props.group||this.setState({group:this.props.group},(function(){t.fetchIngroupData(),t.fetchNotingroupData()}))}},{key:"renderToolBar",value:function(){var e=this;return h.default.createElement("div",{className:"level"},h.default.createElement("div",{className:"level-left"},h.default.createElement(_.RadioGroup,{mode:"button",value:this.state.type,onChange:this.handleTypeChange},this.configs.map((function(t){var r=t.type,a=t.title;return h.default.createElement(_.RadioButton,{key:r,value:r},a,h.default.createElement(_.Tag,{color:e.getColor(r)},e.getCount(r)))}))),this.state.group&&h.default.createElement(_.InputSearch,{className:O.default.search,onSearch:this.handleSearch,placeholder:t("SEARCH_BY_NAME")})))}},{key:"renderUserItem",value:function(e){var t=this,r=e.type,a=e.onFetch,n=(0,E.toJS)(this.userStore[r]),o=n.data,u=void 0===o?[]:o,l=n.total,c=n.page,s=n.isLoading,i=this.props,f=i.selectedKeys,d=i.enabledActions,p=this.state.group;return p||"ingroup"!==r?h.default.createElement(S.default,{data:u,total:l,page:c,loading:s,onFetch:this[a]},u.map((function(e){return h.default.createElement(k.default,{key:"".concat(r,"-").concat(e.name),type:r,user:e,group:p,groupStore:t.groupStore,enabledActions:d,selected:f.includes(e.name),onSelect:function(){return t.handleSelect(e)},onDelete:function(){return t.handleDelete(e)}})}))):this.renderPlaceHolder()}},{key:"render",value:function(){var e=this,t=this.state.type;return h.default.createElement("div",{className:O.default.userWrapper},this.renderToolBar(),h.default.createElement("div",{className:O.default.scrollWrapper},this.configs.map((function(r){return h.default.createElement("div",{className:(0,g.default)(O.default.tabPanel,t===r.type&&O.default.active),key:r.type},e.renderUserItem(r))}))))}}]),a}(h.Component),l.propTypes={group:v.default.string,enabledActions:v.default.array,selectedKeys:v.default.array,refreshFlag:v.default.bool,onSelect:v.default.func},u=c))||u)||u)||u;r.default=D},4424:function(e,r,a){"use strict";a(15);var n=a(20);a(5),a(11),a(31),a(84),a(73),a(18),a(16),a(4),a(23),a(17),a(85),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,a(45),a(5),a(11),a(31),a(84),a(73),a(18),a(42),a(16),a(4),a(23),a(57),a(17),a(85);var o=n(a(36)),u=n(a(37)),l=n(a(55)),c=n(a(56)),s=n(a(51)),i=a(186),f=n(a(788)),d=n(a(790)),p=a(14),m=n(a(1)),h=n(a(0)),v=n(a(1879));function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,a=(0,s.default)(e);if(t){var n=(0,s.default)(this).constructor;r=Reflect.construct(a,arguments,n)}else r=a.apply(this,arguments);return(0,c.default)(this,r)}}var g=function(e){(0,l.default)(a,e);var r=y(a);function a(){var e;(0,o.default)(this,a);for(var t=arguments.length,n=new Array(t),u=0;u0&&void 0!==i[0]?i[0]:{},a=r.silent,n=(0,c.default)(r,["silent"]),o=e.props.store,a&&(o.list.silent=!0),!(u=e.workspaceStore.cluster)){t.next=11;break}return t.next=7,o.fetchList(M(M({cluster:u},e.props.match.params),n));case 7:if(!((l=o.list.data.map((function(e){return e.name}))).length>0)){t.next=11;break}return t.next=11,e.monitoringStore.fetchMetrics(M(M({cluster:u,resources:l},e.props.match.params),{},{metrics:Object.values((0,C.hideGPUByLicense)(L,u)),last:!0}));case 11:o.list.silent=!1;case 12:case"end":return t.stop()}}),t)}))),e.getLastValue=function(t,r){var a=e.monitoringStore.data,n=((0,_.default)(a,"".concat(r,".data.result"))||[]).find((function(e){return(0,_.default)(e,"metric.namespace")===t.name}));return(0,_.default)(n,"value[1]",0)},e.getCheckboxProps=function(e){return{disabled:"Terminating"===e.status,name:e.name}},e.getColumns=function(){var r=e.props.getSortOrder,a={Active:"ACTIVE",Terminating:"TERMINATING"},n=[{title:t("NAME"),dataIndex:"name",key:"name",sorter:!0,sortOrder:r("name"),render:function(t,r){return E.default.createElement(k.default,{to:"Terminating"===r.status||r.isFedHostNamespace?null:"/".concat(e.workspace,"/clusters/").concat(r.cluster,"/projects/").concat(t),icon:"project",iconSize:40,desc:r.description||"-",title:(0,C.getDisplayNameNew)(r)})}},{title:t("STATUS"),dataIndex:"status",key:"status",isHideable:!0,render:function(e){return E.default.createElement(O.default,{type:e,name:t(a[e]),flicker:!0})}}];return globals.app.hasClusterModule(e.workspaceStore.cluster,"whizard-monitoring")&&n.push({title:t("CPU_USAGE"),key:"namespace_cpu_usage",isHideable:!0,render:function(t){return(0,D.getSuitableValue)(e.getLastValue(t,L.cpu),"cpu","-")}},{title:t("MEMORY_USAGE"),key:"namespace_memory_usage_wo_cache",isHideable:!0,render:function(t){return(0,D.getSuitableValue)(e.getLastValue(t,L.memory),"memory","-")}},{title:t("GPU_USAGE"),key:"namespace_gpu_usage",isHideable:!0,render:function(t){return(0,D.getSuitableValue)(e.getLastValue(t,L.gpu),"gpu","-")}},{title:t("GPU_MEMORY_USAGE"),key:"namespace_gpu_memory_usage",isHideable:!0,render:function(t){return(0,D.getSuitableValue)(e.getLastValue(t,L.gpu_memory),"memory","-")}},{title:t("POD_COUNT"),key:"namespace_pod_count",isHideable:!0,render:function(t){return e.getLastValue(t,L.pod)}}),n.push({title:t("CREATION_TIME_TCAP"),dataIndex:"createTime",isHideable:!0,sorter:!0,render:function(e){return(0,C.getLocalTime)(e).format("YYYY-MM-DD HH:mm:ss")}}),n},e.showCreate=function(){var t=(0,_.default)(e.workspaceStore.detail,"_originData.metadata.labels['cluster-role.kubesphere.io/edge']");e.props.trigger("project.create",M(M({},e.props.match.params),{},{type:t?"edge":"ks",defaultCluster:t||e.workspaceStore.cluster,success:function(t){t&&e.workspaceStore.selectCluster(t),e.getData({silent:!0})}}))},e.renderEdgeCluster=function(){if(!e.isEdgeCluster)return null;var r=e.state,a=r.nodeCount,n=r.nodeGroupCount;return E.default.createElement("div",{className:j.default.EdgeHeader},E.default.createElement(b.Icon,{className:j.default.icon,name:"edge-cluster",size:40}),E.default.createElement(Text,{className:j.default.Item,title:e.edgeCluster,description:t("EDGE_CLUSTER")}),E.default.createElement(Text,{className:j.default.Item,title:n,description:t("NODE_GROUP_COUNT")}),E.default.createElement(Text,{className:j.default.Item,title:a,description:t("EDGE_NODE_COUNT")}))},e}return(0,m.default)(a,[{key:"componentDidMount",value:function(){this.isEdgeCluster&&this.fetchNodeGroupData()}},{key:"renderTitle",value:function(e){return e.isFedHostNamespace?E.default.createElement("span",null,E.default.createElement("span",{className:"margin-r8"},(0,C.getDisplayNameNew)(e)),E.default.createElement(b.Tooltip,{content:t("FED_HOST_NAMESPACE_TIP")},E.default.createElement(b.Icon,{name:"information"}))):(0,C.getDisplayNameNew)(e)}},{key:"render",value:function(){var e=this.props,t=e.match,r=e.tableProps,a=M(M({},t),{},{params:M(M({},t.params),{},{cluster:this.workspaceStore.cluster})}),n=this.monitoringStore.isLoading,o=(0,C.hideGPUByLicense)(this.getColumns(),t.params.cluster);return E.default.createElement(w.ListPage,(0,u.default)({},this.props,{match:a,getData:this.getData,module:"namespaces"}),this.renderEdgeCluster(),E.default.createElement(P.default,(0,u.default)({className:"table-2-7"},r,{itemActions:this.itemActions,columns:o,columnSearch:this.columnSearch,onCreate:this.showCreate},this.clusterProps,{isLoading:r.isLoading||n,getCheckboxProps:this.getCheckboxProps})))}},{key:"tabs",get:function(){return{value:this.props.module,onChange:this.handleTabChange,options:[{value:"projects",label:t("PROJECT_PL")},{value:"federatedprojects",label:t("MULTI_CLUSTER_PROJECT_PL")}]}}},{key:"showFederated",get:function(){return!this.isEdgeCluster&&globals.app.isMultiCluster}},{key:"isClusterManage",get:function(){return globals.app.isPlatformAdmin||globals.app.hasPermission({module:"clusters",action:"manage"})}},{key:"edgeCluster",get:function(){return(0,_.default)(this.workspaceStore.detail,"_originData.metadata.labels['cluster-role.kubesphere.io/edge']","")}},{key:"isEdgeCluster",get:function(){return""!==this.edgeCluster}},{key:"clusters",get:function(){return this.workspaceStore.clusters.data.map((function(e){return{label:e.name,value:e.name,disabled:!e.isReady,cluster:e}}))}},{key:"workspace",get:function(){return this.props.match.params.workspace}},{key:"clusterProps",get:function(){return{clusters:this.clusters,cluster:this.workspaceStore.cluster,onClusterChange:this.handleClusterChange,showClusterSelect:globals.app.isMultiCluster}}},{key:"columnSearch",get:function(){var e=this.workspaceStore.cluster,r=(0,C.compareVersion)((0,C.getClusterVersion)(e),"3.4.0")>=0;return[{dataIndex:"name",title:t("NAME"),search:!0},{dataIndex:"alias",title:t("ALIAS"),search:r}]}},{key:"itemActions",get:function(){var e=this,r=this.props,a=r.trigger,n=r.name;return[{key:"edit",icon:"pen",text:t("EDIT_INFORMATION"),action:"edit",onClick:function(e){return a("resource.baseinfo.edit",{detail:e})}},{key:"edit-annotations",icon:"pen",text:t("EDIT_ANNOTATIONS"),action:"manage",show:function(){return e.isClusterManage},onClick:function(e){return a("resource.annotations.edit",{detail:e})}},{key:"quotaEdit",icon:"pen",text:t("EDIT_QUOTAS"),action:"edit",onClick:function(e){return a("project.quota.edit",{type:t("PROJECT"),detail:e})}},{key:"delete",icon:"trash",text:t("DELETE"),action:"delete",onClick:function(e){return a("resource.delete",{type:n,detail:e})}}]}}]),a}(E.default.Component),(0,g.default)(f.prototype,"clusters",[S.computed],Object.getOwnPropertyDescriptor(f.prototype,"clusters"),f.prototype),i=f))||i;r.default=U},4427:function(e,t,r){e.exports={EdgeHeader:"_1CddyN1JUv2v2Cahe4d5nI",icon:"_3PDD_1O2mycO98jRBM2F04",Item:"_1QGSa9qIcFAHZ_DmeD1ugW"}},4428:function(e,r,a){"use strict";var n=a(20),o=a(157);a(12),a(109),a(5),a(11),a(6),a(18),a(48),a(16),a(9),a(13),a(10),a(4),a(23),a(24),a(17),a(62),a(136),a(7),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,a(12),a(109),a(45),a(5),a(11),a(6),a(18),a(28),a(48),a(42),a(16),a(34),a(15),a(9),a(13),a(10),a(4),a(22),a(23),a(57),a(24),a(17),a(62),a(7);var u=n(a(43));a(41);var l,c,s=n(a(44)),i=n(a(315)),f=n(a(30)),d=n(a(36)),p=n(a(37)),m=n(a(55)),h=n(a(56)),v=n(a(51)),y=n(a(49)),g=n(a(788)),E=n(a(795)),_=n(a(1108)),S=o(a(793)),b=a(14),k=n(a(0)),O=n(a(439)),w=n(a(493)),P=n(a(437)),C=a(52),D=n(a(1139)),R=n(a(26));function T(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,a)}return r}function N(e){for(var t=1;t0&&void 0!==l[0]?l[0]:{},a=r.silent,n=(0,i.default)(r,["silent"]),o=e.props.store,a&&(o.list.silent=!0),!(u=e.state.cluster)){t.next=7;break}return t.next=7,o.fetchList(A(A({cluster:u},e.props.match.params),n));case 7:o.list.silent=!1;case 8:case"end":return t.stop()}}),t)}))),e.getColumns=function(){return[{title:t("NAME"),dataIndex:"name",render:function(t,r){var a="Terminating"===r.status;return C.default.createElement(C.default.Fragment,null,C.default.createElement(_.default,{icon:"strategy-group",iconSize:40,to:r.namespace&&r.cluster&&!a?"/".concat(e.workspace,"/clusters/").concat(r.cluster,"/devops/").concat(r.namespace,"/base-info"):null,desc:r.description||"-",title:(0,R.getDisplayNameNew)(r)}))}},{title:t("STATUS"),dataIndex:"status",isHideable:!0,render:function(e){return C.default.createElement(S.default,{type:e,name:t(e.toUpperCase()),flicker:!0})}},{title:t("CREATOR"),dataIndex:"creator",isHideable:!0,render:function(e){return e||"-"}},{title:t("CREATION_TIME_TCAP"),dataIndex:"createTime",isHideable:!0,sorter:!0,render:function(e){return(0,R.getLocalTime)(e).format("YYYY-MM-DD HH:mm:ss")}}]},e.showCreate=function(){return e.props.trigger("devops.create",A(A({},e.props.match.params),{},{cluster:e.workspaceStore.cluster,success:function(t){t&&e.workspaceStore.selectCluster(t),e.getData({silent:!0})}}))},e.getCheckboxProps=function(e){return{disabled:"Terminating"===e.status,name:e.name}},e}return(0,h.default)(a,[{key:"componentDidMount",value:function(){var e=this;request.get("/apis/kubesphere.io/v1alpha1/extensions/devops").then((function(t){var r,a={},n=(0,O.default)(t,"status.clusterSchedulingStatuses",{});Object.entries(n).forEach((function(e){var t=(0,l.default)(e,2),r=t[0],n=t[1];a[r]="Installed"===(null==n?void 0:n.state)})),e.setState({clusters:a,loading:!1,cluster:null===(r=e.workspaceStore.clusters.data.find((function(e){return e.isReady&&a[e.name]})))||void 0===r?void 0:r.name})}))}},{key:"render",value:function(){var e=this.props,r=e.bannerProps,a=e.tableProps,n=e.match,o=A(A({},n),{},{params:A(A({},n.params),{},{cluster:this.state.cluster})});return C.default.createElement(k.ListPage,(0,u.default)({},this.props,{getData:this.getData,match:o}),C.default.createElement(b.default,(0,u.default)({},r,{description:t("DEVOPS_DESCRIPTION"),tips:this.tips})),C.default.createElement(T.default,(0,u.default)({},a,{className:"table-2-8",itemActions:this.itemActions,tableActions:this.tableActions,columns:this.getColumns(),columnSearch:this.columnSearch,onCreate:this.showCreate,isLoading:a.isLoading&&this.state.loading},this.clusterProps,{getCheckboxProps:this.getCheckboxProps})))}},{key:"itemActions",get:function(){var e=this.props,r=e.trigger,a=e.name;return[{key:"edit",icon:"pen",text:t("EDIT"),action:"edit",onClick:function(e){return r("devops.edit",{detail:e})}},{key:"delete",icon:"trash",text:t("DELETE"),action:"delete",onClick:function(e){r("resource.delete",{title:t("DELETE_DEVOPS_PROJECT"),desc:t.html("DELETE_DEVOPS_PROJECT_TIP",{resource:e.name}),type:a,resource:e.name,detail:e})}}]}},{key:"tips",get:function(){return[{title:t("DEVOPS_TIP_GITOPS_Q"),description:t("DEVOPS_TIP_GITOPS_A")},{title:t("DEVOPS_TIP_TYPE_Q"),description:t("DEVOPS_TIP_TYPE_A")}]}},{key:"workspace",get:function(){return this.props.match.params.workspace}},{key:"clusters",get:function(){var e=this;return(0,w.default)(this.workspaceStore.clusters.data.map((function(t){return{label:t.name,value:t.name,disabled:!t.isReady||!e.state.clusters[t.name],cluster:t}})),"disabled")}},{key:"clusterProps",get:function(){return{clusters:this.clusters,cluster:this.state.cluster,onClusterChange:this.handleClusterChange,showClusterSelect:globals.app.isMultiCluster}}},{key:"tableActions",get:function(){var e=this.props,r=e.tableProps,a=e.trigger;return A(A({},r.tableActions),{},{selectActions:[{key:"delete",type:"danger",text:t("DELETE"),action:"delete",onClick:function(){a("devops.batch.delete",{type:r.name,rowKey:r.rowKey})}}]})}},{key:"columnSearch",get:function(){return[{dataIndex:"name",title:t("NAME"),search:!0},{dataIndex:"alias",title:t("ALIAS"),search:!0}]}}]),a}(C.default.Component),(0,E.default)(d.prototype,"clusters",[P.computed],Object.getOwnPropertyDescriptor(d.prototype,"clusters"),d.prototype),f=d))||f;r.default=I},4430:function(e,r,a){"use strict";var n=a(20),o=a(157);a(12),a(109),a(5),a(11),a(6),a(84),a(16),a(9),a(13),a(10),a(4),a(23),a(24),a(17),a(85),a(62),a(75),a(7),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,a(12),a(109),a(45),a(5),a(11),a(6),a(84),a(28),a(42),a(16),a(34),a(15),a(9),a(13),a(10),a(4),a(23),a(57),a(24),a(17),a(85),a(62),a(75),a(7);var u,l=n(a(315)),c=n(a(30)),s=n(a(36)),i=n(a(37)),f=n(a(55)),d=n(a(56)),p=n(a(51)),m=n(a(0)),h=a(186),v=n(a(795)),y=n(a(1024)),g=n(a(792)),E=n(a(796)),_=o(a(793)),S=a(52),b=a(916),k=n(a(469));function O(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,a)}return r}function w(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:"syncing";return v.default.createElement(S.default,{type:e,name:t("APP_REPO_STATUS_".concat(e.toUpperCase())),flicker:!0})}},{title:t("URL"),dataIndex:"url"}]},e.handleFetch=(0,g.default)((function(t){var r=e.props,a=r.store,n=r.getData;if(!a.list.isLoading)return n(C(C(C({},(0,y.parse)(location.search.slice(1))),t),{},{silent:!0}))}),1e3),e.handleWatch=function(t){"HelmRepo"===t.object.kind&&["MODIFIED","DELETED","ADDED"].includes(t.type)&&e.handleFetch()},e}return(0,d.default)(a,[{key:"render",value:function(){var e=this.props,r=e.bannerProps,a=e.tableProps;return v.default.createElement(O.ListPage,(0,u.default)({},this.props,{onMessage:this.handleWatch}),v.default.createElement(b.default,(0,u.default)({},r,{tips:this.tips,title:t("APP_REPO"),description:t("APP_REPO_DESC")})),v.default.createElement(k.default,(0,u.default)({},a,{tableActions:this.tableActions,itemActions:this.itemActions,columns:this.getColumns(),searchType:"keyword"})))}},{key:"tips",get:function(){return[{title:t("HOW_TO_USE_APP_REPO_Q"),description:t.html("HOW_TO_USE_APP_REPO_A")}]}},{key:"workspace",get:function(){return this.props.match.params.workspace}},{key:"itemActions",get:function(){var e=this,r=this.props,a=r.trigger,n=r.name,o=r.routing;return[{key:"edit",icon:"pen",text:t("EDIT"),action:"edit",onClick:function(t){return a("openpitrix.repo.edit",{detail:t,workspace:e.workspace,success:o.query})}},{key:"delete",icon:"trash",text:t("DELETE"),action:"delete",onClick:function(e){return a("resource.delete",{detail:e,type:n,success:o.query})}}]}},{key:"tableActions",get:function(){var e=this,r=this.props,a=r.trigger,n=r.routing;return C(C({},r.tableProps.tableActions),{},{searchType:"keyword",actions:[{key:"create",type:"control",text:t("ADD"),action:"manage",onClick:function(){return a("openpitrix.repo.add",{workspace:e.workspace,success:n.query})}}],selectActions:[{key:"index",type:"primary",text:t("SYNC"),action:"manage",onClick:this.handleIndex}]})}}]),a}(v.default.Component))||s;r.default=R},4433:function(e,r,a){"use strict";var n=a(20);a(12),a(5),a(11),a(6),a(18),a(16),a(9),a(13),a(10),a(4),a(23),a(24),a(17),a(62),a(7),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,a(12),a(45),a(5),a(11),a(6),a(18),a(28),a(42),a(16),a(34),a(15),a(9),a(13),a(10),a(4),a(22),a(23),a(57),a(24),a(17),a(62),a(7);var o=n(a(315)),u=n(a(43));a(41);var l,c,s,i,f=n(a(44)),d=n(a(30)),p=n(a(65)),m=n(a(36)),h=n(a(37)),v=n(a(88)),y=n(a(55)),g=n(a(56)),E=n(a(51)),_=n(a(49)),S=(n(a(66)),n(a(0))),b=a(239),k=a(14),O=a(791),w=a(186),P=(n(a(792)),n(a(1880))),C=n(a(1819)),D=n(a(834)),R=n(a(26)),T=n(a(4435));function N(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,a)}return r}function A(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};e.projectStore.fetchListByUser(O({workspace:e.workspace,cluster:e.workspaceStore.cluster,username:e.props.detailStore.detail.name},t))},e.handleClusterChange=function(t){e.workspaceStore.selectCluster(t),e.getData()},e}return(0,i.default)(a,[{key:"componentDidMount",value:function(){var e=this;this.workspaceStore.fetchClusters({workspace:this.workspace,limit:-1}).then((function(){e.getData()}))}},{key:"render",value:function(){var e=(0,v.toJS)(this.projectStore.list),r=e.data,a=e.page,n=e.limit,o=e.total,u=e.isLoading,c=e.filters,s={page:a,limit:n,total:o};return h.default.createElement(_.default,{title:t("PROJECTS")},h.default.createElement(E.default,(0,l.default)({className:b.default.table,data:r,columns:this.getColumns(),isLoading:u||this.workspaceStore.clusters.isLoading,onFetch:this.getData,pagination:s},this.clusterProps,{name:"PROJECT",hideSearch:!0,hideCustom:!0,filters:c})))}},{key:"clusters",get:function(){return this.workspaceStore.clusters.data.map((function(e){return{label:e.name,value:e.name,disabled:!e.isReady,cluster:e}}))}},{key:"workspaceStore",get:function(){return this.props.workspaceStore}},{key:"workspace",get:function(){return this.props.match.params.workspace}},{key:"clusterProps",get:function(){return{clusters:this.clusters,cluster:this.workspaceStore.cluster,onClusterChange:this.handleClusterChange,showClusterSelect:globals.app.isMultiCluster}}}]),a}(h.default.Component),(0,m.default)(u.prototype,"clusters",[v.computed],Object.getOwnPropertyDescriptor(u.prototype,"clusters"),u.prototype),o=u))||o)||o;r.default=P},4441:function(e,t,r){e.exports={table:"WRBc98bwWPsApBMpVDYJk"}},4442:function(e,r,a){"use strict";var n=a(20);a(12),a(5),a(11),a(6),a(18),a(16),a(9),a(13),a(10),a(4),a(23),a(24),a(17),a(62),a(7),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,a(12),a(45),a(5),a(11),a(6),a(18),a(28),a(42),a(16),a(34),a(15),a(9),a(13),a(10),a(4),a(23),a(57),a(24),a(17),a(62),a(7);var o,u,l=n(a(315)),c=n(a(30)),s=n(a(36)),i=n(a(37)),f=n(a(55)),d=n(a(56)),p=n(a(51)),m=n(a(49)),h=n(a(0)),v=a(14),y=a(239),g=a(52),E=n(a(1139)),_=n(a(801)),S=n(a(323)),b=n(a(4443));function k(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,a)}return r}function O(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};e.devopsStore.fetchListByUser(O({workspace:e.workspace,cluster:e.workspaceStore.cluster,username:e.props.detailStore.detail.name},t))},e.handleClusterChange=function(t){e.workspaceStore.selectCluster(t),e.getData({filters:{cluster:t}})},e}return(0,i.default)(a,[{key:"componentDidMount",value:function(){var e=this;this.workspaceStore.fetchClusters({workspace:this.workspace,limit:-1}).then((function(){e.getData()}))}},{key:"render",value:function(){var e=(0,v.toJS)(this.devopsStore.list),r=e.data,a=e.isLoading,n=e.page,o=e.limit,u=e.total,c=e.filters,s={page:n,limit:o,total:u};return h.default.createElement(_.default,{title:t("DEVOPS_PROJECTS")},h.default.createElement(E.default,(0,l.default)({className:b.default.table,data:r,columns:this.getColumns(),isLoading:a,onFetch:this.getData},this.clusterProps,{pagination:s,name:"DEVOPS_PROJECT",hideSearch:!0,hideCustom:!0,filters:c})))}},{key:"clusters",get:function(){return this.workspaceStore.clusters.data.map((function(e){return{label:e.name,value:e.name,disabled:!e.isReady,cluster:e}}))}},{key:"workspaceStore",get:function(){return this.props.workspaceStore}},{key:"workspace",get:function(){return this.props.match.params.workspace}},{key:"clusterProps",get:function(){return{clusters:this.clusters,cluster:this.workspaceStore.cluster,onClusterChange:this.handleClusterChange,showClusterSelect:globals.app.isMultiCluster}}}]),a}(h.default.Component),(0,m.default)(u.prototype,"clusters",[v.computed],Object.getOwnPropertyDescriptor(u.prototype,"clusters"),u.prototype),o=u))||o)||o;r.default=P},4443:function(e,t,r){e.exports={table:"_1igO6MeCqz0zQKLfLayoUI"}},4444:function(e,r,a){"use strict";a(15);var n=a(20);a(12),a(109),a(5),a(84),a(48),a(16),a(4),a(23),a(24),a(17),a(85),a(62),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,a(12),a(109),a(45),a(5),a(84),a(28),a(48),a(42),a(16),a(4),a(23),a(57),a(24),a(17),a(85),a(62);var o,u=n(a(315)),l=n(a(36)),c=n(a(37)),s=n(a(55)),i=n(a(56)),f=n(a(51)),d=n(a(0)),p=a(14),m=a(239),h=n(a(63)),v=a(186),y=a(52),g=a(791),E=n(a(441)),_=n(a(899)),S=n(a(4445));function b(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,a=(0,f.default)(e);if(t){var n=(0,f.default)(this).constructor;r=Reflect.construct(a,arguments,n)}else r=a.apply(this,arguments);return(0,i.default)(this,r)}}var k=(0,m.inject)("rootStore")(o=(0,m.observer)(o=(0,g.trigger)(o=function(e){(0,s.default)(a,e);var r=b(a);function a(){var e;(0,l.default)(this,a);for(var n=arguments.length,o=new Array(n),u=0;u0&&void 0!==arguments[0]?arguments[0]:{},t=n.props.match.params,r=t.appId,a=t.workspace,o=n.props.appStore.isAdmin,u=o?k.STORE_QUERY_STATUS:n.store.defaultStatus;n.store.fetchList(C({app_id:r,workspace:a,status:u},e))},n.getPagination=function(){var e=n.store.list;return{page:e.page,limit:e.limit,total:e.total}},n.handleExpandExtra=function(e){var t=(0,g.default)(n.store,"list.data",[]);n.store.list.data=t.map((function(t){return C(C({},t),{},{isExpand:t.version_id===e&&!t.isExpand})}))},n.handleSearch=function(e){n.searchValue=e,n.fetchData({keyword:e})},n.handleRefresh=function(){var e=n.searchValue?{keyword:n.searchValue}:{};n.fetchData(e)},n.handlePage=function(e){n.fetchData({page:e})},n.addVersion=function(){return n.setState({uploadModal:!0})},n.hideModal=function(){return n.setState({uploadModal:!1})},n.handleCreate=function(e){n.store.create(e).then((function(){n.setState({uploadModal:!1}),_.default.success({content:t("CREATE_SUCCESSFUL")}),n.fetchData()}))},n.renderHeader=function(){var e=n.props.appStore.isAdmin;return m.default.createElement("div",{className:w.default.header},m.default.createElement(E.InputSearch,{className:w.default.search,name:"search",placeholder:t("SEARCH_BY_NAME"),onSearch:n.handleSearch}),m.default.createElement("div",{className:w.default.actions},m.default.createElement(E.Button,{type:"flat",icon:"refresh",onClick:n.handleRefresh}),!e&&n.enabledActions.includes("manage")&&m.default.createElement(E.Button,{onClick:n.addVersion},t("UPLOAD_NEW_VERSION")," ")))},n.renderFooter=function(){var e=n.getPagination(),r=e.total,a=e.page,o=e.limit;return m.default.createElement(E.Level,{className:w.default.footer},m.default.createElement(E.LevelLeft,null,t("TOTAL_ITEMS",{num:r})),m.default.createElement(E.LevelRight,null,m.default.createElement(E.Pagination,{page:a,total:r,limit:o,onChange:n.handlePage})))},n.state={uploadModal:!1},n.store=n.props.versionStore,n}return(0,i.default)(a,[{key:"componentDidMount",value:function(){this.fetchData()}},{key:"renderContent",value:function(){var e=this,r=this.store.list,a=r.data,n=r.isLoading,o=this.props,u=o.match.params,l=o.appStore,c=o.clusters,s=l.isAdmin,i=l.detail||{};return n?m.default.createElement(E.Loading,{className:w.default.loading}):m.default.createElement("div",{className:w.default.body},(0,y.default)(a)?m.default.createElement("div",{className:w.default.empty},t("NO_RESOURCE_FOUND")):a.map((function(t){return m.default.createElement(O.default,{key:t.version_id,isAdmin:s,appDetail:i,detail:t,params:u,store:e.store,appStore:l,clusters:c,enabledActions:e.enabledActions,handleExpandExtra:e.handleExpandExtra})})))}},{key:"renderModals",value:function(){var e=this.props.match.params,r=e.appId,a=e.workspace,n=this.store.isSubmitting;return m.default.createElement("div",null,m.default.createElement(b.default,{title:t("UPLOAD_NEW_VERSION"),description:t("UPLOAD_NEW_VERSION_DESC"),icon:"templet",visible:this.state.uploadModal,appId:r,workspace:a,isSubmitting:n,type:"ADD_VERSION",onOk:this.handleCreate,onCancel:this.hideModal}))}},{key:"render",value:function(){var e=this.props,r=e.hideHeader,a=e.hideFooter;return m.default.createElement(S.default,{className:w.default.main,title:t("VERSIONS")},m.default.createElement("div",{className:w.default.inner},!r&&this.renderHeader(),this.renderContent(),!a&&this.renderFooter(),this.renderModals()))}},{key:"enabledActions",get:function(){return this.props.match.params.workspace?globals.app.getActions({workspace:this.props.match.params.workspace,module:"app-templates"}):["manage"]}}]),a}(m.default.Component),u.propTypes={versionStore:v.default.object,appStore:v.default.object,match:v.default.object,hideHeader:v.default.bool,hideFooter:v.default.bool,onSearch:v.default.func,onRefresh:v.default.func,onPage:v.default.func},u.defaultProps={versionStore:{},appStore:{},match:{},hideHeader:!1,hideFooter:!1,onSearch:function(){},onRefresh:function(){},onPage:function(){}},o=l))||o;r.default=R},4454:function(e,r,a){"use strict";var n=a(20);a(12),a(11),a(6),a(84),a(16),a(9),a(13),a(10),a(4),a(23),a(17),a(85),a(7),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,a(12),a(45),a(11),a(6),a(84),a(28),a(42),a(16),a(34),a(15),a(9),a(13),a(10),a(4),a(23),a(57),a(17),a(85),a(7);var o,u,l,c=n(a(30)),s=n(a(36)),i=n(a(37)),f=n(a(55)),d=n(a(56)),p=n(a(51)),m=n(a(0)),h=a(14),v=n(a(1)),y=n(a(3)),g=a(239),E=a(186),_=n(a(240)),S=n(a(824)),b=n(a(1726)),k=n(a(1427)),O=n(a(4455)),w=n(a(4457)),P=n(a(1882)),C=n(a(4460)),D=a(52),R=a(791),T=a(815),N=a(1049),A=a(327),j=n(a(1884));function I(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,a)}return r}function M(e){for(var t=1;t=t})),o=r1)},t("DELETE"))))},n.renderVersionsEmpty=function(){return p.default.createElement(E.default,{icon:"time-backup",title:t("EMPTY_WRAPPER",{resource:t("APP_TEMPLATE_VERSION")}),desc:t("APP_TEMPLATE_VERSION_EMPTY_TIP"),action:p.default.createElement(g.Button,{key:"create",type:"control",onClick:n.handleCreateVersion},t("CREATE"))})},n.renderVersionsItems=function(){var e,r=(null!==(e=n.selectedVersion)&&void 0!==e?e:{}).containers;return p.default.createElement(p.default.Fragment,null,n.renderCardHead(),p.default.createElement(_.default,{className:C.default.card},p.default.createElement(S.default,{value:n.state.selectedVersionKey,options:n.versionOptions,onChange:n.handleVersionChange}),p.default.createElement("div",{className:C.default.containersWrapper},p.default.createElement("div",{className:C.default.containers},(0,v.default)(r)?t("EMPTY_IMAGE_DESC"):r.map((function(e){return p.default.createElement(P.default,{key:e.name,container:e})}))))))},n.store=new w.default,n.state={selectedVersionKey:n.latestVersionName},n}return(0,s.default)(a,[{key:"componentDidMount",value:function(){this.fetchData()}},{key:"componentDidUpdate",value:function(e){var t=e.detailStore.detail.versions,r=this.versions;t.length>r.length&&this.fetchData()}},{key:"render",value:function(){return(0,v.default)(this.versions)?this.renderVersionsEmpty():this.renderVersionsItems()}},{key:"latestVersionName",get:function(){var e=(0,m.toJS)(this.props.detailStore).detail;return(null==e?void 0:e.latestVersion.name)||this.versions[0].name}},{key:"name",get:function(){return this.props.match.params.name}},{key:"cluster",get:function(){var e=this.props.workspaceStore.detail;return(0,h.default)((0,m.toJS)(e),"clusters.[0].name","")}},{key:"workspace",get:function(){return this.props.match.params.workspace}},{key:"versions",get:function(){return(0,m.toJS)(this.store.list.data)}},{key:"selectedVersion",get:function(){var e=this;return this.versions.find((function(t){return t.name===e.state.selectedVersionKey}))}},{key:"versionOptions",get:function(){var e=this;return this.versions.map((function(r){var a=r.name,n=r.createTime;return{value:a,label:p.default.createElement(p.default.Fragment,null,a,a===e.latestVersionName&&p.default.createElement(g.Tag,{type:"warning",className:C.default.latestTag},t("LATEST_VERSION_SCAP"))),icon:"time-backup",description:t("CREATED_TIME",{diff:(0,b.getLocalTime)(n).format("YYYY-MM-DD HH:mm:ss")})}}))}}]),a}(p.default.Component))||u)||u)||u;r.default=R},4476:function(e,r,a){"use strict";a(15);var n=a(20);a(5),a(16),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,a(5),a(16);var o=n(a(0)),u=n(a(1)),l=n(a(26)),c=n(a(63)),s=a(186),i=n(a(812)),f=a(52),d=n(a(4477)),p=function(e){var r,a=e.type,n=void 0===a?"worker":a,u=e.container,p=(0,l.default)(u,"resources.limits",{}),m=(0,l.default)(u,"resources.requests",{});if("istio-proxy"===u.name)return o.default.createElement(i.default.Item,{icon:"istio",title:u.name,description:t("IMAGE_VALUE",{value:u.image})});r=(0,c.default)(p)&&(0,c.default)(m)?o.default.createElement("div",{className:d.default.limits},o.default.createElement(s.Icon,{name:"exclamation"}),o.default.createElement("span",null," ",t("NO_RESOURCE_LIMIT"))):o.default.createElement("div",{className:d.default.limits},(p.cpu||m.cpu)&&o.default.createElement("span",{className:d.default.limit},o.default.createElement(s.Icon,{name:"cpu",size:20}),o.default.createElement("span",null,"".concat(m.cpu?(0,f.cpuFormat)(m.cpu):0," – ").concat(p.cpu?(0,f.cpuFormat)(p.cpu):"∞"))),(p.memory||m.memory)&&o.default.createElement("span",{className:d.default.limit},o.default.createElement(s.Icon,{name:"memory",size:20}),"".concat(m.memory?"".concat((0,f.memoryFormat)(m.memory)," MiB"):0," – ").concat(p.memory?"".concat((0,f.memoryFormat)(p.memory)," MiB"):"∞")));var h="init"===n?o.default.createElement("span",null,u.name,o.default.createElement(s.Tag,{className:"margin-l8",type:"warning"},t("INIT_CONTAINER"))):u.name;return o.default.createElement(i.default.Item,{icon:"docker",title:h,description:t("IMAGE_VALUE",{value:u.image}),extras:r})};p.propTypes={container:u.default.object};var m=p;r.default=m},4477:function(e,t,r){e.exports={limits:"_1y4Yb86L8kGa7SCNmSZt-z",limit:"m_-zPYyE7svZmMl3N5chT"}},4478:function(e,t,r){e.exports={card:"_2PxiVcEv06XFkMlEtjmkFb",cardHead:"_30vpQeeZv_PozIBZjVStTy",actions:"BvZoBNERQVE_hI1Dkz-JY",containersWrapper:"_2JXUJoVjwAdRaf1ZKPeSK",containers:"_1UirWKy1FLUhKnBCXKcXHG",latestTag:"_37lkclOqP_R0XcZr6133rZ"}},4479:function(e,r,a){"use strict";var n=a(20);a(12),a(109),a(5),a(11),a(6),a(18),a(16),a(9),a(13),a(10),a(4),a(23),a(24),a(17),a(62),a(7),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,a(12),a(109),a(45),a(5),a(11),a(6),a(18),a(28),a(42),a(16),a(34),a(15),a(9),a(13),a(10),a(4),a(23),a(57),a(24),a(17),a(62),a(7);var o,u=n(a(30)),l=n(a(58)),c=n(a(36)),s=n(a(37)),i=n(a(55)),f=n(a(56)),d=n(a(51)),p=n(a(0)),m=a(14),h=a(239),v=n(a(26)),y=n(a(199)),g=n(a(241)),E=n(a(4480)),_=a(186),S=a(52),b=a(72),k=a(434),O=n(a(788)),w=n(a(796)),P=n(a(793)),C=n(a(865)),D=n(a(804)),R=n(a(318)),T=n(a(1342)),N=n(a(4484));function A(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,a)}return r}function j(e){for(var t=1;t0?h.default.createElement(h.default.Fragment,null,h.default.createElement(g.default,(0,u.default)({workspace:this.workspace},this.clusterProps)),h.default.createElement(_.default,(0,u.default)({workspace:this.workspace,isEdge:this.workspaceStore.isEdge},this.clusterProps))):this.renderEmpty())}},{key:"workspace",get:function(){return this.props.match.params.workspace}},{key:"clusters",get:function(){return this.workspaceStore.clusters.data}},{key:"clustersOpts",get:function(){return this.clusters.map((function(e){return{label:(0,v.getDisplayNameNew)(e),value:e.name,disabled:!e.isReady,cluster:e}}))}},{key:"clusterProps",get:function(){return{className:y.default.clusterSelector,cluster:this.workspaceStore.cluster,options:this.clustersOpts,onChange:this.handleClusterChange,valueRenderer:this.valueRenderer,optionRenderer:this.optionRenderer,workspaceStore:this.workspaceStore}}}]),a}(h.default.Component))||o)||o;r.default=b},4489:function(e,t,r){e.exports={clusterSelector:"_2CN59clY1qGTKeYHNEaPKx"}},4490:function(e,r,a){"use strict";var n=a(20);a(12),a(5),a(11),a(6),a(9),a(13),a(10),a(4),a(316),a(23),a(17),a(7),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,a(12),a(45),a(5),a(11),a(6),a(28),a(42),a(34),a(15),a(9),a(13),a(10),a(4),a(316),a(23),a(57),a(17),a(7);var o,u=n(a(315)),l=n(a(58)),c=n(a(30)),s=n(a(36)),i=n(a(37)),f=n(a(55)),d=n(a(56)),p=n(a(51)),m=a(239),h=n(a(26)),v=n(a(0)),y=a(186),g=n(a(1133)),E=a(52),_=a(1811);function S(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,a)}return r}function b(e){for(var t=1;t0?f.default.createElement("div",{className:S.default.wrapper},this.renderToolbar(),this.renderList()):f.default.createElement(y.default,{icon:"cluster",title:t("NO_CLUSTER_AVAILABLE"),desc:t("WORKSPACE_NO_CLUSTER_TIP")})}},{key:"renderToolbar",value:function(){var e=this;return f.default.createElement("div",{className:(0,p.default)(S.default.toolbar,S.default.pane__toolbar,S.default.pane)},f.default.createElement("div",{className:S.default.toolbar_filter},f.default.createElement(v.Select,{options:this.clusters,value:this.workspaceStore.cluster,onChange:this.handleClusterChange,valueRenderer:this.valueRenderer,optionRenderer:this.optionRenderer,showTip:!0}),f.default.createElement(v.Select,{value:this.store.sort_metric,onChange:this.store.changeSortMetric,options:this.options}),!this.isEdge&&f.default.createElement("span",{className:S.default.sort_button},f.default.createElement(v.Icon,{name:"desc"===this.store.sort_type?"sort-descending":"sort-ascending",type:"coloured",size:"small",onClick:function(){return e.store.changeSortType()}}))),f.default.createElement("div",{className:S.default.toolbar_buttons},f.default.createElement(v.Button,{onClick:this.export},t("EXPORT"))))}},{key:"renderList",value:function(){return f.default.createElement(v.Loading,{spinning:this.store.isLoading},f.default.createElement("div",null,f.default.createElement(g.default,{store:this.store,cluster:this.workspaceStore.cluster,workspace:this.workspace}),this.renderPagination()))}},{key:"renderPagination",value:function(){var e=this.store,t=e.page,r=e.total_page,a=this.store.limit;return f.default.createElement("div",{className:(0,p.default)(S.default.pane,S.default.pane__pagination)},f.default.createElement(v.Level,null,f.default.createElement(v.LevelLeft,null),f.default.createElement(v.LevelRight,null,f.default.createElement(v.Pagination,{page:t,total:r,limit:a,onChange:this.store.changePagination}))))}},{key:"isEdge",get:function(){return this.workspaceStore.isEdge}},{key:"workspace",get:function(){return(0,m.default)(this.props,"match.params.workspace")}},{key:"clusters",get:function(){return this.workspaceStore.clusters.data.map((function(e){return{label:e.name,value:e.name,disabled:!e.isReady,cluster:e}}))}},{key:"options",get:function(){var e=this;return this.store.sort_metric_options.filter((function(t){return!e.isEdge||"namespace_pvc_bytes_used"!==t})).map((function(e){return{value:e,label:t("SORT_BY_".concat(e.toUpperCase()))}}))}}]),a}(f.default.Component))||o)||o;r.default=k},4497:function(e,t,r){e.exports={wrapper:"XOE-cnCpkLiQnK1LYj76R",pane:"_4eoZyoK8wFINAqkdJQ85x",pane__toolbar:"_3ogot8SmW5Z_9xeDNnNw8J",pane__pagination:"_2-8FIJLuwzuIKSrqxMesHO",title:"_2qPKz_yI2dQANE7cinRpOJ",toolbar:"_2RBEsIiZKKZgDZ3u7LiRAo",toolbar_buttons:"_2GVcDXuuqPn-Rp4lv0T62i",toolbar_filter:"_3bcXJxC0OcAscveuS8z8n-",sort_button:"_1GoQ0ktQ1tHaIYZStCYuNK",table:"_3wbjOUhTYzkXtBKPWT2gII",table_rank:"_3nh1u6G_H7ukc5exwtqOVD",table_no_border:"_33558CkQNEGbVwy7lI_Qpn",rankList_row:"_3VpL4zRLxPNKDne3b1JfS5",rankLink__sort_col:"FenZscoqAaPoaSyYYOCPb"}},4498:function(e,r,a){"use strict";a(15);var n=a(20);a(5),a(18),a(16),a(4),a(23),a(24),a(17),a(62),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,a(45),a(5),a(18),a(42),a(16),a(4),a(23),a(57),a(24),a(17),a(62);var o,u=n(a(36)),l=n(a(37)),c=n(a(55)),s=n(a(56)),i=n(a(51)),f=n(a(0)),d=n(a(63)),p=a(14),m=a(239),h=n(a(833)),v=n(a(890)),y=n(a(4499));function g(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,a=(0,i.default)(e);if(t){var n=(0,i.default)(this).constructor;r=Reflect.construct(a,arguments,n)}else r=a.apply(this,arguments);return(0,s.default)(this,r)}}var E=(0,m.inject)("rootStore","workspaceStore")(o=(0,m.observer)(o=function(e){(0,c.default)(a,e);var r=g(a);function a(){var e;(0,u.default)(this,a);for(var t=arguments.length,n=new Array(t),o=0;o=0&&r.splice(a,1),r};t.arrAdd=function(e,t){var r=e.slice();return-1===r.indexOf(t)&&r.push(t),r};t.posToArr=function(e){return e.split("-")};var u=function(e,t){return"".concat(e,"-").concat(t)};t.getPosition=u;var l=function(e){return e&&e.type&&e.type.isTreeNode};t.isTreeNode=l;var c=function(e){return o(e).filter(l)};t.getNodeChildren=c;var s=function(e,t){!function r(a,o,l){var s=a?a.props.children:e,i=a?u(l.pos,o):0,f=c(s);if(a){var d={node:a,index:o,pos:i,key:a.key||i,parentPos:l.node?l.pos:null};t(d)}n.Children.forEach(f,(function(e,t){r(e,t,{node:a,pos:i})}))}(null)};t.traverseTreeNodes=s;t.mapChildren=function(e,t){var r=o(e).map(t);return 1===r.length?r[0]:r};t.calcSelectedKeys=function(e,t){if(e)return t.multiple?e.slice():e.length?[e[0]]:e};t.convertTreeToEntities=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.initWrapper,a=t.processEntity,n=t.onProcessFinished,o={},u={},l={posEntities:o,keyEntities:u};return r&&(l=r(l)||l),s(e,(function(e){var t=e.node,r=e.index,n=e.pos,c=e.key,s=e.parentPos,i={node:t,index:r,key:c,pos:n};o[n]=i,u[c]=i,i.parent=o[s],i.parent&&(i.parent.children=i.parent.children||[],i.parent.children.push(i)),a&&a(i,l)})),n&&n(l),l};t.conductExpandParent=function(e,t){var r={};return(e||[]).forEach((function(e){!function e(a){if(!r[a]){var n=t[a];if(n){r[a]=!0;var o=n.parent;o&&e(o.key)}}}(e)})),Object.keys(r)};t.getDataAndAria=function(e){return Object.keys(e).reduce((function(t,r){var a=t;return"data-"!==r.substr(0,5)&&"aria-"!==r.substr(0,5)||(a[r]=e[r]),a}),{})}},1879:function(e,t,r){e.exports={userWrapper:"_1_DSXUIddmrce317bVesnR",scrollWrapper:"_3RmABpydi_HaIsEVQPfv7O",empty:"_3IRiVwO3Ga_hzwmja9vZkn",item:"_2R1k6eZF5XuN5Z_VYNSrnv",avatar:"_3Haf5uSfbNIZvhOiTYU_wQ",text:"_2rKvqdP00-aDZ26saG7UJl",tabPanel:"_3fckqAKJLvfi_g7Zecc65O",active:"Kan_4CNGC_U5jWhmFgUK3"}},1881:function(e,t,r){"use strict";r(15);var a=r(20);r(5),r(4),r(23),r(17),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r(45),r(5),r(42),r(4),r(23),r(57),r(17);var n=a(r(36)),o=a(r(55)),u=a(r(56)),l=a(r(51));function c(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,a=(0,l.default)(e);if(t){var n=(0,l.default)(this).constructor;r=Reflect.construct(a,arguments,n)}else r=a.apply(this,arguments);return(0,u.default)(this,r)}}var s=function(e){(0,o.default)(r,e);var t=c(r);function r(){var e;(0,n.default)(this,r);for(var a=arguments.length,o=new Array(a),u=0;u0&&void 0!==arguments[0]?arguments[0]:{},t=n.props,r=t.appId,a=t.versionId,o=t.workspace,u=n.state.cluster;n.store.fetchList(O({app_id:r,version_id:a,workspace:o,cluster:u},e))},n.getPagination=function(){var e=n.store.list;return{page:e.page,limit:e.limit,total:e.total}},n.handleSearch=function(e){n.searchValue=e,n.fetchData({keyword:e})},n.handleRefresh=function(){var e=n.searchValue?{keyword:n.searchValue}:{};n.fetchData(e)},n.handlePage=function(e){n.fetchData({page:e})},n.handleClusterChange=function(e){n.setState({cluster:e},(function(){n.fetchData()}))},n.renderHeader=function(){return d.default.createElement("div",{className:b.default.header},n.renderClusters(),d.default.createElement(y.InputSearch,{className:b.default.search,name:"search",placeholder:t("SEARCH_BY_NAME"),onSearch:n.handleSearch}),d.default.createElement("div",{className:b.default.actions},d.default.createElement(y.Button,{type:"flat",icon:"refresh",onClick:n.handleRefresh})))},n.renderFooter=function(){var e=n.getPagination(),r=e.total,a=e.page,o=e.limit;return d.default.createElement(y.Level,{className:b.default.footer},d.default.createElement(y.LevelLeft,null,t("TOTAL_ITEMS",{num:r})),d.default.createElement(y.LevelRight,null,d.default.createElement(y.Pagination,{page:a,total:r,limit:o,onChange:n.handlePage})))},n.state={uploadModal:!1,cluster:(0,h.default)(e,"clusters[0].name","")},n.store=new _.default,n}return(0,c.default)(a,[{key:"componentDidMount",value:function(){this.fetchData()}},{key:"renderClusters",value:function(){var e=this.props.clusters;if((0,v.default)(e))return null;var t=e.map((function(e){return{label:e.name,value:e.name,disabled:!e.isReady,cluster:e}}));return d.default.createElement(E.default,{clusters:t,cluster:this.state.cluster,onChange:this.handleClusterChange})}},{key:"renderContent",value:function(){var e=this.props.versionId,r=this.store.list,a=r.data;return r.isLoading?d.default.createElement(y.Loading,{className:b.default.loading}):d.default.createElement("div",{className:b.default.body},(0,v.default)(a)?d.default.createElement("div",{className:b.default.empty},t("NO_RESOURCE_FOUND")):a.map((function(t){return d.default.createElement(S.default,{key:t.name,detail:t,showVersion:!e})})))}},{key:"render",value:function(){var e=this.props,r=e.className,a=e.title,n=e.hideHeader,o=e.hideFooter;return d.default.createElement(g.default,{className:(0,p.default)(b.default.main,r),title:a||t("APP_INSTANCES")},d.default.createElement("div",{className:b.default.inner},!n&&this.renderHeader(),this.renderContent(),!o&&this.renderFooter()))}}]),a}(d.default.Component))||o;r.default=P},1883:function(e,t,r){e.exports={main:"_3RsBOPqTSIO9U8W9rw7FXZ",header:"_12Agkrs2qKEvnlsCQuk1P7",search:"_3wEHtyer-RmdQNShfTnjwy",actions:"_2LnUPnba8kGi5ojNnufTwt",footer:"HMFMVptmxZyx8kO6TTV_s",item:"j7bcnGZE6qCsukA72vMci",itemMain:"_3_sYqp1scWFI8xP1zi_C1M",content:"_2OVcaaDJfwLdTObXoW1Qsf",more:"_3Co3dwP_Q9vMPyZrkvWpC3",loading:"_3xRw369cTNAcOPS2tUiGBv",empty:"a73qxVl2KPDTuAaZfRhvz"}},1884:function(e,t,r){e.exports={main:"VCMz8Hvdx9QgwfqLBYxPD",inner:"_2duoQ3UI4nja9dVo5Tg6Gu",header:"_1ujEwOD8918eEmngftbE-m",search:"_2W8Nr8NQnrxEQ2OdUFu5Xc",actions:"_3rEgDuHImvyhfRvoItgVGa",body:"_1XFrIa2I7UREilolWDQxqn",footer:"tgtIGSTEm1TCZFeiKkxfr",item:"_3P8oPqxESDZBnojf9VjE16",itemMain:"_3juNmtluJH9n446teuR_C9",icon:"_1Zvv7LvLsTEIen0tCC3Ilz",status:"XqSQXZRHKWjcLvllQIDuo",content:"_1IAefV34zduIcEv3RyPzF0",more:"_3Y-jHnJCq-JnxpS5CZzSgw",itemExtra:"_3S4VI1sg0-UwM0-oTnhysO",expanded:"_36Bum4cJKwtY3pzfp-wlas",instances:"_3Jb0lzRYd1l_Wzc43lAhgD",loading:"_2s-2yo1WGoImJofeVFj_hy",empty:"_16rfxAHXWQIGauFhE4yfGa"}},4398:function(e,t,r){"use strict";r(15);var a=r(20);r(5),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r(5);var n=a(r(61)),o=r(317),u=a(r(4399)),l=a(r(4400)),c=a(r(4403)),s=a(r(4407)),i=a(r(4408)),f=a(r(4409)),d=a(r(4427)),p=a(r(4429)),m=a(r(4430)),h=a(r(4431)),v=a(r(4433)),y=a(r(4434)),g=a(r(4437)),E=a(r(4438)),_=a(r(4486)),S="/workspaces/:workspace",b=[].concat((0,n.default)(E.default),[{path:S,component:u.default,routes:[].concat((0,n.default)(_.default),[{path:"".concat(S,"/federatedprojects"),component:p.default,exact:!0},{path:"".concat(S,"/projects"),component:d.default,exact:!0},{path:"".concat(S,"/devops"),component:m.default,exact:!0},{path:"".concat(S,"/edge-apps"),component:g.default,exact:!0},{path:"".concat(S,"/apps"),component:h.default,exact:!0},{path:"".concat(S,"/base-info"),component:l.default,exact:!0},{path:"".concat(S,"/repos"),component:v.default,exact:!0},{path:"".concat(S,"/quota"),component:c.default,exact:!0},{path:"".concat(S,"/roles"),component:s.default,exact:!0},{path:"".concat(S,"/members"),component:i.default,exact:!0},{path:"".concat(S,"/groups"),component:f.default,exact:!0},{path:"".concat(S,"/gateways/:component"),component:y.default,exact:!0},(0,o.getIndexRoute)({path:"".concat(S,"/gateways"),to:"".concat(S,"/gateways/workspace"),exact:!0})])}]);t.default=b},4399:function(e,t,r){"use strict";r(15);var a=r(20),n=r(157);r(5),r(4),r(23),r(24),r(17),r(62),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r(45),r(5),r(28),r(42),r(4),r(22),r(23),r(57),r(24),r(17),r(62);var o=a(r(61)),u=a(r(43));r(41);var l,c=a(r(44)),s=a(r(36)),i=a(r(37)),f=a(r(55)),d=a(r(56)),p=a(r(51)),m=a(r(26)),h=r(239),v=n(r(0)),y=a(r(438)),g=r(317);function E(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,a=(0,p.default)(e);if(t){var n=(0,p.default)(this).constructor;r=Reflect.construct(a,arguments,n)}else r=a.apply(this,arguments);return(0,d.default)(this,r)}}var _=(0,h.inject)("rootStore","workspaceStore")(l=(0,h.observer)(l=function(e){(0,f.default)(r,e);var t=E(r);function r(e){var a;return(0,s.default)(this,r),(a=t.call(this,e)).state={fetchFin:!1},a.enterWorkspace=function(){var e=(0,c.default)(u.default.mark((function e(t){return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",a.routing.push("/workspaces/".concat(t,"/")));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),a.store=new y.default,a}return(0,i.default)(r,[{key:"render",value:function(){var e=this.props.route,t=e.routes,r=void 0===t?[]:t,a=e.path,n=this.props.workspaceStore.detail,u=globals.app.getWorkspaceNavs(this.workspace,{isEdge:n.isEdge}),l=(0,m.default)(u,"[0].items[0].name");return v.default.createElement(v.default.Fragment,null,l&&(0,g.renderRoutes)([].concat((0,o.default)(r),[(0,g.getIndexRoute)({path:a,to:"".concat(a,"/").concat(l),exact:!0}),(0,g.getIndexRoute)({path:"*",to:"/404",exact:!0})])))}},{key:"workspace",get:function(){return this.props.match.params.workspace}},{key:"routing",get:function(){return this.props.rootStore.routing}}]),r}(v.Component))||l)||l;t.default=_},4400:function(e,r,a){"use strict";a(15);var n=a(20);a(12),a(109),a(5),a(11),a(31),a(6),a(84),a(18),a(16),a(98),a(4),a(23),a(24),a(17),a(85),a(62),a(7),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,a(12),a(109),a(45),a(5),a(11),a(31),a(6),a(84),a(18),a(28),a(42),a(16),a(98),a(4),a(23),a(57),a(24),a(17),a(85),a(62),a(7);var o,u=n(a(61)),l=n(a(96)),c=n(a(36)),s=n(a(37)),i=n(a(55)),f=n(a(56)),d=n(a(51)),p=a(186),m=n(a(789)),h=n(a(850)),v=n(a(790)),y=n(a(814)),g=n(a(26)),E=n(a(63)),_=n(a(74)),S=a(14),b=a(239),k=n(a(1216)),O=n(a(0)),w=n(a(1133)),P=a(52),C=a(791),D=n(a(4401)),R=n(a(4402));function T(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,a=(0,d.default)(e);if(t){var n=(0,d.default)(this).constructor;r=Reflect.construct(a,arguments,n)}else r=a.apply(this,arguments);return(0,f.default)(this,r)}}var N=(0,b.inject)("rootStore","workspaceStore")(o=(0,b.observer)(o=(0,C.trigger)(o=function(e){(0,i.default)(a,e);var r=T(a);function a(){var e;(0,c.default)(this,a);for(var n=arguments.length,o=new Array(n),s=0;s0&&O.default.createElement(k.default,{className:R.default.manage,content:r})},e}return(0,s.default)(a,[{key:"componentDidMount",value:function(){this.canViewWorkspaceProjects&&this.fetchMetrics()}},{key:"renderBaseInfo",value:function(){var e=this.store.detail,r=this.getResourceOptions();return O.default.createElement(m.default,{title:t("WORKSPACE_INFO")},O.default.createElement("div",{className:R.default.header},O.default.createElement(v.default,{className:R.default.title,icon:"enterprise",title:(0,P.getDomTitle)((0,P.showNameAndAlias)(e)),description:(0,P.getDomTitle)(e.description||t("WORKSPACE")),ellipsis:!0}),O.default.createElement(v.default,{title:e.manager,description:t("MANAGER")}),O.default.createElement(v.default,{title:(0,P.getLocalTime)(e.createTime).format("YYYY-MM-DD HH:mm:ss"),description:t("CREATION_TIME")}),this.renderManageButton()),this.canViewWorkspaceProjects&&O.default.createElement("div",{className:R.default.content},r.filter((function(e){return!e.hidden})).map((function(e){return O.default.createElement(v.default,{key:e.name,icon:e.icon,title:e.value,description:t(e.name)})}))))}},{key:"renderNetwork",value:function(){var e=this,r=this.store.detail;if(!globals.app.isMultiCluster){if(!globals.app.hasKSModule("network"))return null;var a=r.networkIsolation||!1;return O.default.createElement(m.default,{className:R.default.network,title:t("NETWORK_ISOLATION")},O.default.createElement("div",{className:R.default.item},O.default.createElement(v.default,{icon:"firewall",title:t(a?"ON":"OFF"),description:t("WS_NETWORK_ISOLATION")}),this.enabledActionsNetwork.includes("manage")&&O.default.createElement(h.default,{className:R.default.switch,text:t(a?"ON":"OFF"),onChange:this.handleSingleClusterNetworkChange,checked:a})))}var n=(0,S.toJS)(this.store.clusters),o=n.data,u=n.isLoading;return O.default.createElement(m.default,{className:R.default.network,title:t("NETWORK_ISOLATION")},(0,E.default)(o)&&!u&&O.default.createElement("div",{className:R.default.empty},t("NO_CLUSTER_AVAILABLE")),o.map((function(a){var n=(0,g.default)(r,"clusterTemplates[".concat(a.name,"]"))||{},o=(0,g.default)(n,"spec.networkIsolation",r.networkIsolation)||!1;return O.default.createElement("div",{className:R.default.item,key:a.name},O.default.createElement(y.default,{cluster:a,className:R.default.clusterTitle}),O.default.createElement(v.default,{icon:"firewall",title:t(o?"ON":"OFF"),description:t("WS_NETWORK_ISOLATION")}),e.enabledActions.includes("manage")&&((0,g.default)(a,"configz.network")?O.default.createElement(h.default,{className:R.default.switch,text:t(o?"ON":"OFF"),onChange:e.handleNetworkChange(a.name),checked:o}):O.default.createElement("span",{className:R.default.noModule},t("NETWORK_POLICY_UNINSATLLED_DESC"))))})))}},{key:"render",value:function(){return O.default.createElement("div",null,this.renderBaseInfo(),this.renderNetwork())}},{key:"store",get:function(){return this.props.workspaceStore}},{key:"module",get:function(){return"BaseInfo"}},{key:"routing",get:function(){return this.props.rootStore.routing}},{key:"workspace",get:function(){return this.props.match.params.workspace}},{key:"isMultiCluster",get:function(){return!(0,E.default)(this.store.detail.clusters)}},{key:"tips",get:function(){return[{title:t("WORKSPACE_BASE_INFO_Q1"),description:t("WORKSPACE_BASE_INFO_A1")}]}},{key:"enabledActions",get:function(){return globals.app.getActions({module:"workspace-settings",workspace:this.workspace})}},{key:"enabledActionsNetwork",get:function(){return globals.app.getActions({module:"networkpolicies",workspace:this.workspace})}},{key:"canViewWorkspaceProjects",get:function(){return globals.app.hasPermission({module:"projects",action:"view",workspace:this.workspace})}},{key:"enableManageAction",get:function(){var e=this.enabledActions,r=[];return e.includes("manage")&&r.push({actionName:"resource.baseinfo.edit",onClick:this.showEdit,icon:"pen",text:t("EDIT_INFORMATION")}),e.includes("manage")&&"member"!==globals.clusterRole&&r.push({actionName:"workspace.delete",onClick:this.handleDelete,icon:"trash",text:t("DELETE_WORKSPACE")}),r}}]),a}(O.default.Component))||o)||o)||o;r.default=N},4401:function(e,r,a){"use strict";var n=a(20);a(12),a(187),a(11),a(6),a(18),a(9),a(13),a(10),a(4),a(23),a(17),a(7),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,a(12),a(45),a(187),a(11),a(6),a(18),a(28),a(859),a(42),a(34),a(15),a(9),a(13),a(10),a(4),a(23),a(57),a(17),a(7);var o,u,l,c=n(a(30)),s=n(a(36)),i=n(a(37)),f=n(a(55)),d=n(a(56)),p=n(a(51)),m=a(186),h=n(a(787)),v=n(a(830)),y=n(a(800)),g=n(a(26)),E=n(a(241)),_=n(a(242)),S=a(239),b=n(a(1)),k=n(a(0)),O=n(a(322)),w=a(72);function P(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,a)}return r}function C(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,a=(0,p.default)(e);if(t){var n=(0,p.default)(this).constructor;r=Reflect.construct(a,arguments,n)}else r=a.apply(this,arguments);return(0,d.default)(this,r)}}var D=(0,S.observer)((l=u=function(e){(0,f.default)(a,e);var r=C(a);function a(e){var t;return(0,s.default)(this,a),(t=r.call(this,e)).fetchUsers=function(e){return t.userStore.fetchList(function(e){for(var t=1;tt.userStore.list.data.length&&(t.scrolling=!0,t.userStore.fetchList({more:!0,page:t.userStore.list.page+1}).then((function(){t.scrolling=!1})))},t.handleInputChange=(0,y.default)((function(e){e||!t._select?(t._search=!0,t.userStore.fetchList({name:e})):t._select=!1}),300),t.handleChange=function(e){t._select=!0,!e&&t._search&&(t.userStore.fetchList(),t._search=!1)},t.state={formData:(0,v.default)(e.detail._originData)},t.userStore=new O.default,t.fetchUsers(),t}return(0,i.default)(a,[{key:"render",value:function(){var e=this.props,r=e.visible,a=e.isSubmitting,n=e.onCancel,o=this.state.formData;return k.default.createElement(h.default.Form,{data:o,width:691,title:t("EDIT_INFORMATION"),icon:"enterprise",onOk:this.handleOk,okText:t("OK"),onCancel:n,visible:r,isSubmitting:a},k.default.createElement(m.Form.Item,{label:t("NAME"),desc:t("NAME_DESC")},k.default.createElement(m.Input,{name:"metadata.name",disabled:!0})),k.default.createElement(m.Form.Item,{label:t("ALIAS"),desc:t("ALIAS_NAME_DESC"),rules:[{pattern:w.PATTERN_ALIAS_NAME,message:t("INVALID_ALIAS_NAME_DESC")}]},k.default.createElement(m.Input,{name:"metadata.annotations['kubesphere.io/alias-name']",maxLength:63})),k.default.createElement(m.Form.Item,{label:t("ADMINISTRATOR")},k.default.createElement(m.Select,{name:"spec.template.spec.manager",options:this.users,pagination:(0,E.default)(this.userStore.list,["page","limit","total"]),isLoading:this.userStore.list.isLoading,onFetch:this.fetchUsers,defaultValue:globals.user.username,onChange:this.handleChange,searchable:!0})),k.default.createElement(m.Form.Item,{label:t("DESCRIPTION"),desc:t("DESCRIPTION_DESC")},k.default.createElement(m.TextArea,{name:"metadata.annotations['kubesphere.io/description']",maxLength:256,rows:"3"})))}},{key:"users",get:function(){var e=(0,g.default)(this.props.detail,"spec.template.spec.manager"),t=this.userStore.list.data.map((function(e){return{label:e.username,value:e.username}}));return t.every((function(t){return t.value!==e}))&&t.unshift({label:e,value:e}),t}}]),a}(k.default.Component),u.propTypes={detail:b.default.object,visible:b.default.bool,onOk:b.default.func,onCancel:b.default.func,isSubmitting:b.default.bool},u.defaultProps={visible:!1,onOk:function(){},onCancel:function(){},isSubmitting:!1},o=l))||o;r.default=D},4402:function(e,t,r){e.exports={header:"ySm_ubJyVUm8S8LbY2yIF",content:"_139KIcEdEKcJdiKUxOqkBa",tip:"_2Nsgzcsm1k-rqXu_VCsTgU",unbind:"_3Xy-as7N1JZ76WQrIXW9F1",action:"_1k9OCp058x4lIqafSr3xeN",item:"_3nvLCxrnjQ0KCiQeasoj7e",network:"_1jG_6R5BVNP1PJv9PQ6lh_",switch:"_2yn3vw2Pw0_JHStn5v03Hx",clusterTitle:"_2CKiDprsEk_4HcVvgH0rU3",empty:"_2f9pUp6DAKwVHDHqrnBOrX",title:"tvu2xaZOvMMQGFltqJ7xT",noModule:"_2uWU6vMT5mcHI5dpr1JJ4P",manage:"_3d5Sr8q7rZjE2qXijscb7s"}},4403:function(e,r,a){"use strict";a(15);var n=a(20);a(5),a(31),a(84),a(18),a(16),a(4),a(23),a(24),a(17),a(85),a(62),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,a(45),a(5),a(31),a(84),a(18),a(42),a(16),a(4),a(23),a(57),a(24),a(17),a(85),a(62);var o,u=n(a(315)),l=n(a(36)),c=n(a(37)),s=n(a(55)),i=n(a(56)),f=n(a(51)),d=n(a(0)),p=a(14),m=a(239),h=n(a(26)),v=n(a(4404)),y=n(a(4406));function g(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,a=(0,f.default)(e);if(t){var n=(0,f.default)(this).constructor;r=Reflect.construct(a,arguments,n)}else r=a.apply(this,arguments);return(0,i.default)(this,r)}}var E=(0,m.inject)("workspaceStore")(o=function(e){(0,s.default)(a,e);var r=g(a);function a(){var e;(0,l.default)(this,a);for(var t=arguments.length,n=new Array(t),o=0;o0){var s,i=(0,_.default)((0,u.default)(o.total),(function(e){return Object.keys(e)[0].split(".").slice(1).join(".")}));return s={},(0,l.default)(s,L,(0,E.default)(i,[L],[]).map((function(e){var t=Object.keys(e)[0],r=o.used.filter((function(e){return Object.keys(e)[0]===t}))[0];return{name:t,total:Object.values(e)[0],used:Object.values(r)[0]}}))),(0,l.default)(s,U,(0,E.default)(i,[U],[]).map((function(e){var t=Object.keys(e)[0],r=o.used.filter((function(e){return Object.keys(e)[0]===t}))[0];return{name:t,total:Object.values(e)[0],used:Object.values(r)[0]}}))),s}return{}}},{key:"allStorageClass",get:function(){return(0,v.toJS)(this.storageClassStore.list.data)}}]),a}(h.default.Component))||o)||o)||o;r.default=V},4405:function(e,t,r){e.exports={cluster:"_33bgBT87JaEVqJ0uzIjyFv",content:"_26wvITmEcN_9yGRcxyHvtB",actions:"FTCmPDXSK-8qQ7nF3OPEd",disabledTip:"_174Yw8pkPiTR9UrQjf7p84"}},4406:function(e,t,r){e.exports={title:"_2EN2HBaXv57LG6KaZxnUk0"}},4407:function(e,r,a){"use strict";var n=a(20),o=a(157);a(12),a(5),a(11),a(6),a(84),a(48),a(16),a(9),a(13),a(10),a(4),a(23),a(24),a(17),a(85),a(62),a(7),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,a(12),a(45),a(5),a(11),a(6),a(84),a(28),a(48),a(42),a(16),a(34),a(15),a(9),a(13),a(10),a(4),a(23),a(57),a(24),a(17),a(85),a(62),a(7);var u,l=n(a(30)),c=n(a(315)),s=n(a(36)),i=n(a(37)),f=n(a(55)),d=n(a(56)),p=n(a(51)),m=n(a(0)),h=a(14),v=n(a(788)),y=n(a(796)),g=o(a(793)),E=a(52),_=a(72),S=n(a(441));function b(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,a)}return r}function k(e){for(var t=1;t0;return this.enabledActions.includes("manage")?m.default.createElement("div",{className:(0,y.default)(T.default.contentHeader,e&&T.default.hasSelected)},e?this.renderSelectedTitle():this.renderToolBar()):null}},{key:"renderToolBar",value:function(){return m.default.createElement(S.Level,null,m.default.createElement(S.LevelLeft,null),m.default.createElement(S.LevelRight,null,m.default.createElement(S.Button,{type:"flat",onClick:this.handleRefresh},m.default.createElement(S.Icon,{name:"refresh"})),m.default.createElement(S.Button,{type:"control",onClick:this.showEditModal},t("SET_DEPARTMENTS"))))}},{key:"renderSelectedTitle",value:function(){return m.default.createElement(S.Level,null,m.default.createElement(S.LevelLeft,null,1===this.state.selectUserKeys.length?t.html("ADD_MEMBER_TIP_SI",{group:this.state.groupTitle}):t.html("ADD_MEMBER_TIP_PL",{group:this.state.groupTitle})),m.default.createElement(S.LevelRight,null,m.default.createElement(S.Button,{type:"primary",onClick:this.handleAddGroup},t("OK")),m.default.createElement(S.Button,{onClick:this.handleCancelSelect},t("CANCEL"))))}},{key:"render",value:function(){var e=(0,v.toJS)(this.store),r=e.treeData,a=e.rowTreeData,n=e.total,o=e.isLoading,l=this.state,c=l.group,s=l.selectUserKeys,i=l.refreshFlag,f=l.showModal;return m.default.createElement(m.default.Fragment,null,m.default.createElement("div",{className:T.default.wrapper},this.renderTitle(),m.default.createElement("div",{className:T.default.content},m.default.createElement("div",{className:T.default.container},m.default.createElement(D.default,{treeData:r,group:c,total:n,isLoading:!this.silentLoading&&o,onSelect:this.handleSelectTree}),m.default.createElement(R.default,(0,u.default)({groupStore:this.store,userStore:this.userStore,group:c,refreshFlag:i,selectedKeys:s,onSelect:this.handleSelectUser,enabledActions:this.enabledActions},this.props))))),f&&m.default.createElement(C.default,(0,u.default)({visible:f,title:t("SET_DEPARTMENTS"),treeData:r,rowTreeData:a,store:this.store,workspaceStore:this.props.workspaceStore,onCancel:this.hideModal},this.props.match.params)))}},{key:"enabledActions",get:function(){var e=this.props.match.params.workspace;return globals.app.getActions({module:"groups",workspace:e})}}]),a}(m.default.Component))||o)||o;r.default=j},4410:function(e,r,a){"use strict";a(15);var n=a(20);a(4),a(23),a(17),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,a(45),a(42),a(4),a(23),a(57),a(17);var o,u,l,c=n(a(315)),s=n(a(36)),i=n(a(37)),f=n(a(55)),d=n(a(56)),p=n(a(51)),m=n(a(0)),h=n(a(1)),v=a(239),y=n(a(26)),g=n(a(787)),E=n(a(4411)),_=n(a(4414)),S=n(a(4421));function b(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,a=(0,p.default)(e);if(t){var n=(0,p.default)(this).constructor;r=Reflect.construct(a,arguments,n)}else r=a.apply(this,arguments);return(0,d.default)(this,r)}}var k=(0,v.observer)((l=u=function(e){(0,f.default)(a,e);var r=b(a);function a(e){var t;return(0,s.default)(this,a),(t=r.call(this,e)).toggleForm=function(){t.setState((function(e){return{showForm:!e.showForm}}))},t.handleSelect=function(e){t.setState({showForm:!1,groupId:e[0],treeNodeId:e[0]})},t.handleTreeNodeIdChange=function(e){t.setState({treeNodeId:e})},t.store=e.store,t.state={showForm:!1,groupId:"",treeNodeId:"root"},t}return(0,i.default)(a,[{key:"componentDidMount",value:function(){var e=this.props.treeData;(0,y.default)(e[0],"children",[]).length>0?this.setState({groupId:e[0].group_id}):this.setState({showForm:!0})}},{key:"render",value:function(){var e=this.props,r=e.visible,a=e.title,n=e.onCancel,o=e.treeData,u=this.state,l=u.showForm,s=u.groupId,i=u.treeNodeId;return m.default.createElement(g.default,{width:1162,title:a,closable:!1,cancelText:t("CLOSE"),visible:r,onCancel:n,bodyClassName:S.default.modalBody,footerClassName:S.default.modalFooter},m.default.createElement("div",{className:S.default.content},m.default.createElement(E.default,{treeData:o,groupId:this.groupId,onSelect:this.handleSelect}),m.default.createElement(_.default,(0,c.default)({},this.props,{showForm:l,toggleForm:this.toggleForm,onChange:this.handleTreeNodeIdChange,groupId:s,treeNodeId:i}))))}}]),a}(m.default.Component),u.propTypes={visible:h.default.bool,title:h.default.string,onCancel:h.default.func},u.defaultProps={visible:!1},o=l))||o;r.default=k},4411:function(e,r,a){"use strict";var n=a(20);a(12),a(11),a(6),a(9),a(13),a(10),a(4),a(23),a(17),a(7),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,a(12),a(45),a(11),a(6),a(28),a(42),a(34),a(15),a(9),a(13),a(10),a(4),a(23),a(57),a(17),a(7);var o,u,l,c=n(a(30)),s=n(a(36)),i=n(a(37)),f=n(a(55)),d=n(a(56)),p=n(a(51)),m=n(a(1874)),h=a(239),v=n(a(1)),y=n(a(0)),g=a(52),E=n(a(4413));function _(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,a)}return r}function S(e){for(var t=1;t0?y.default.createElement(m.default,{className:E.default.tree,showLine:!0,defaultExpandedKeys:[o||"root"],defaultSelectedKeys:[o||"root"],onSelect:u,treeData:n,processor:{processProps:function(e){return"root"===e.key?S(S({},e),{},{title:(0,g.showNameAndAlias)(e.title,"workspace")}):S(S({},e),{},{title:(0,g.getDisplayName)(e)})}}}):y.default.createElement("p",null,t("NO_DEPARTMENT_TIP"))))}}]),a}(y.default.Component),u.propTypes={treeData:v.default.array},o=l))||o;r.default=k},4412:function(e,t,r){"use strict";r(15),r(22);var a=r(157),n=r(20);r(5),r(11),r(6),r(86),r(18),r(10),r(4),r(23),r(17),r(7),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(r(315)),u=n(r(30)),l=n(r(36)),c=n(r(37)),s=n(r(55)),i=n(r(56)),f=n(r(51)),d=n(r(58));r(45),r(5),r(11),r(6),r(86),r(160),r(18),r(42),r(10),r(4),r(23),r(57),r(17),r(7);var p=n(r(3)),m=n(r(1)),h=a(r(0)),v=n(r(1875)),y=n(r(1876)),g=n(r(1877)),E=r(1878);function _(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,a=(0,f.default)(e);if(t){var n=(0,f.default)(this).constructor;r=Reflect.construct(a,arguments,n)}else r=a.apply(this,arguments);return(0,i.default)(this,r)}}var S=function(e){(0,s.default)(r,e);var t=_(r);function r(){var e;(0,l.default)(this,r);for(var a=arguments.length,n=new Array(a),o=0;o2&&void 0!==arguments[2]?arguments[2]:0,n=e.state,o=n.keyEntities,u=n.expandedKeys,l=void 0===u?[]:u,c=n.selectedKeys,s=void 0===c?[]:c,i=(0,E.getPosition)(a,r),f=t.key||i;return o[f]?h.default.cloneElement(t,{key:f,eventKey:f,pos:i,expanded:-1!==l.indexOf(f),selected:-1!==s.indexOf(f)}):null},e}return(0,c.default)(r,[{key:"getChildContext",value:function(){return{tree:{disabled:this.props.disabled,renderTreeNode:this.renderTreeNode,onNodeClick:this.onNodeClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect}}}},{key:"render",value:function(){var e=this,t=this.props,r=t.className,a=t.showLine,n=this.state.treeNode,l=(0,E.getDataAndAria)(this.props);return h.default.createElement("ul",(0,o.default)({},l,{className:(0,p.default)(y.default.tree,r,(0,u.default)({},y.default.showLine,a)),role:"tree",unselectable:"on"}),(0,E.mapChildren)(n,(function(t,r){return e.renderTreeNode(t,r)})))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var r=t.prevProps,a=e.expandedKeys,n=e.defaultExpandedKeys,o={prevProps:e},u=function(t){return!r&&t in e||!(!r||r[t]===e[t])},l=null;if(u("treeData")?l=function e(t,r){if(!t)return[];var a=(r||{}).processProps,n=void 0===a?function(e){return e}:a;return(Array.isArray(t)?t:[t]).map((function(t){var a=t.children,o=(0,d.default)(t,["children"]),u=e(a,r);return h.default.createElement(g.default,n(o),u)}))}(e.treeData,e.processor):u("children")&&(l=(0,E.toArray)(e.children)),l){o.treeNode=l;var c=(0,E.convertTreeToEntities)(l);o.posEntities=c.posEntities,o.keyEntities=c.keyEntities}var s=o.keyEntities||t.keyEntities;return u("expandedKeys")?o.expandedKeys=r?a:(0,E.conductExpandParent)(a,s):r||(o.expandedKeys=(0,E.conductExpandParent)(n,s)),u("selectedKeys")?o.selectedKeys=(0,E.calcSelectedKeys)(e.selectedKeys,e):!r&&e.defaultSelectedKeys&&(o.selectedKeys=(0,E.calcSelectedKeys)(e.defaultSelectedKeys,e)),o}}]),r}(h.Component);t.default=S,S.popTypes={className:m.default.className,treeData:m.default.array,showLine:m.default.bool,children:m.default.any,defaultExpandedKeys:m.default.arrayOf(m.default.string),defaultSelectedKeys:m.default.arrayOf(m.default.string),toggleNodeSelect:m.default.bool,onSelect:m.default.func,onClick:m.default.func,onExpand:m.default.func,disabled:m.default.bool},S.DefaultProps={showLine:!1,disabled:!1,toggleNodeSelect:!1,defaultExpandedKeys:[],defaultSelectedKeys:[]},S.contextTypes=v.default,S.childContextTypes=v.default},4413:function(e,t,r){e.exports={wrapper:"XWdVrGyDyVjTP6y5MMGS-",treeWrapper:"_2Vpq9xIPtc8ByYb17OEYOB"}},4414:function(e,r,a){"use strict";var n=a(20),o=a(157);a(12),a(5),a(11),a(31),a(6),a(18),a(9),a(13),a(10),a(4),a(23),a(17),a(7),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,a(12),a(45),a(5),a(11),a(31),a(6),a(18),a(28),a(42),a(34),a(15),a(9),a(13),a(10),a(4),a(22),a(23),a(57),a(17),a(7);var u=n(a(315)),l=n(a(30)),c=n(a(43)),s=n(a(61));a(41);var i,f,d,p=n(a(44)),m=n(a(36)),h=n(a(37)),v=n(a(55)),y=n(a(56)),g=n(a(51)),E=n(a(240)),_=n(a(824)),S=n(a(135)),b=n(a(450)),k=n(a(26)),O=n(a(63)),w=n(a(74)),P=n(a(247)),C=a(239),D=n(a(1)),R=o(a(0)),T=a(52),N=a(1746),A=n(a(4415)),j=n(a(4417)),I=n(a(4420));function M(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,a)}return r}function x(e){for(var t=1;t"))})))}},{key:"render",value:function(){var e=this.state,r=e.formTemplate,a=e.mode,n=e.showConfirm,o=e.resource,l=o.group_name,c=o.children,s=e.treeNode,i=e.deleteKeys,f=this.props,d=f.groupId,p=f.showForm,m=(0,O.default)(c)?t.html("DELETE_GROUP_TIP",{group_name:l}):t.html("DELETE_PARENT_GROUP_TIP",{group_name:l});return R.default.createElement("div",{className:I.default.detailWrapper},this.renderBreadcrumbs(),p?R.default.createElement(j.default,(0,u.default)({},this.props,{formTemplate:r,mode:a,groupId:d,onCancel:this.handleCancel,onSave:this.handleSave})):R.default.createElement(A.default,{treeNode:s,deleteKeys:i,onAdd:this.handleAdd,onEdit:this.handleEdit,onDelete:this.handleDelete}),R.default.createElement(_.default,{visible:n,onOk:this.handleConfirm,onCancel:this.hideConfirm,resource:l,desc:m}))}}]),a}(R.Component),f.propTypes={rowTreeData:D.default.object,groupId:D.default.string},i=d))||i;r.default=U},4415:function(e,r,a){"use strict";a(15);var n=a(20);a(84),a(18),a(4),a(23),a(17),a(85),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,a(45),a(84),a(18),a(42),a(4),a(23),a(57),a(17),a(85);var o=n(a(36)),u=n(a(37)),l=n(a(55)),c=n(a(56)),s=n(a(51)),i=n(a(0)),f=n(a(1)),d=n(a(26)),p=a(186),m=n(a(788)),h=a(52),v=n(a(4416));function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,a=(0,s.default)(e);if(t){var n=(0,s.default)(this).constructor;r=Reflect.construct(a,arguments,n)}else r=a.apply(this,arguments);return(0,c.default)(this,r)}}var g=function(e){(0,l.default)(a,e);var r=y(a);function a(){return(0,o.default)(this,a),r.apply(this,arguments)}return(0,u.default)(a,[{key:"renderContent",value:function(){var e=this.props,r=e.treeNode.children,a=void 0===r?[]:r,n=e.deleteKeys,o=e.onEdit,u=e.onDelete;if(a.length>0)return a.map((function(e){var r=e.props||e;return i.default.createElement("div",{className:v.default.item,key:r.group_id},i.default.createElement(m.default,{className:v.default.avatar,icon:"group",iconSize:32,title:(0,h.getDisplayName)({name:r.group_name,aliasName:r.alias_name}),desc:(0,d.default)(r._originData,'metadata.annotations.["kubesphere.io/workspace-role"]')}),i.default.createElement("div",null,i.default.createElement("span",{className:"text-second padding-20"},n.includes(r.group_id)&&t("DELETING")),i.default.createElement(p.Button,{icon:"pen",type:"flat",onClick:function(){return o(r)}}),i.default.createElement(p.Button,{icon:"trash",type:"flat",onClick:function(){return u(r)}})))}))}},{key:"render",value:function(){var e=this.props.onAdd;return i.default.createElement("div",{className:v.default.cardWrapper},this.renderContent(),i.default.createElement("div",{className:v.default.empty,onClick:e},i.default.createElement("span",{className:v.default.icon}),i.default.createElement("span",null,t("CREATE_DEPARTMENT"))))}}]),a}(i.default.Component);r.default=g,g.propTypes={treeNode:f.default.object,onAdd:f.default.func,onEdit:f.default.func,onDelete:f.default.func}},4416:function(e,t,r){e.exports={cardWrapper:"_3wF5NYA-Pi8X_0xsiht8V9",item:"_1qqN7IfnNUInTkOWcdk8ey",avatar:"_3xx69JpMHTSALna5hG8YmR",empty:"_3bZ6AeTCOSxEEm34n0HTdu",icon:"_2F7y69hUXoCD7F961yZ0S5"}},4417:function(e,r,a){"use strict";a(15);var n=a(20);a(18),a(97),a(16),a(9),a(4),a(23),a(17),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,a(45),a(18),a(97),a(42),a(16),a(9),a(4),a(23),a(57),a(17);var o,u,l,c,s=n(a(315)),i=n(a(36)),f=n(a(37)),d=n(a(55)),p=n(a(56)),m=n(a(51)),h=n(a(49)),v=a(186),y=n(a(829)),g=n(a(135)),E=n(a(26)),_=n(a(74)),S=a(14),b=a(239),k=n(a(1)),O=n(a(0)),w=n(a(441)),P=a(52),C=a(72),D=n(a(4418)),R=n(a(1426)),T=n(a(4419));function N(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,a=(0,m.default)(e);if(t){var n=(0,m.default)(this).constructor;r=Reflect.construct(a,arguments,n)}else r=a.apply(this,arguments);return(0,p.default)(this,r)}}var A=(0,b.observer)((c=l=function(e){(0,d.default)(a,e);var r=N(a);function a(e){var n;return(0,i.default)(this,a),(n=r.call(this,e)).nameValidator=function(e,r,a){var o=n.props,u=o.workspace,l=o.mode;if(!r||"edit"===l)return a();n.props.store.checkName({name:r,workspace:u}).then((function(r){if(r.exist)return a({message:t("NAME_EXIST_DESC"),field:e.field});a()}))},n.checkItemValid=function(e){return e.role},n.handleSave=function(){var e=n.props,t=e.onSave,r=e.groupId,a=e.mode,o=(0,g.default)(n.state.formTemplate),u=n.formRef.current;u&&u.validate((function(){r&&(0,_.default)(o,'metadata.labels["iam.kubesphere.io/group-parent"]',r),"edit"===a?t(o,n.props.formTemplate):t(o)}))},n.formRef=O.default.createRef(),n.workspaceStore=e.workspaceStore,n.workspaceRoleStore=new w.default("workspaceroles"),n.state={formTemplate:(0,g.default)(e.formTemplate)},n}return(0,f.default)(a,[{key:"componentDidUpdate",value:function(e){this.props.formTemplate!==e.formTemplate&&this.setState({formTemplate:(0,g.default)(this.props.formTemplate)})}},{key:"componentDidMount",value:function(){this.fetchWorkspaceRoles()}},{key:"fetchWorkspaceRoles",value:function(){this.workspaceRoleStore.fetchList({workspace:this.props.workspace,limit:-1,sortBy:"createTime"})}},{key:"render",value:function(){var e=this.props,r=e.onCancel,a=e.mode,n=this.state.formTemplate;return O.default.createElement("div",{className:R.default.formWrapper},O.default.createElement(v.Form,{data:n,className:R.default.form,ref:this.formRef},O.default.createElement(v.Form.Item,{label:t("NAME"),desc:t("NAME_DESC"),rules:[{required:!0,message:t("NAME_EMPTY_DESC")},{pattern:C.PATTERN_NAME,message:t("INVALID_NAME_DESC")},{validator:this.nameValidator}]},O.default.createElement(v.Input,{name:"metadata.generateName",autoFocus:!0,maxLength:63,autoComplete:"off",disabled:"edit"===a})),O.default.createElement(v.Form.Item,{label:t("ALIAS"),desc:t("ALIAS_NAME_DESC"),rules:[{pattern:C.PATTERN_ALIAS_NAME,message:t("INVALID_ALIAS_NAME_DESC")}]},O.default.createElement(v.Input,{name:"metadata.annotations['kubesphere.io/alias-name']",maxLength:63,autoComplete:"off"})),O.default.createElement(v.Form.Item,{label:t("WORKSPACE_ROLE"),desc:t("GROUP_WORKSPACE_ROLE_DESC")+(this.needUpgrade?t("MEMBER_CLUSTER_UPGRADE_TIP",{version:"v3.1.0"}):"")},O.default.createElement(v.Select,{name:"metadata.annotations['kubesphere.io/workspace-role']",options:this.workspaceRoles,onChange:this.handleRolesChange})),O.default.createElement(v.Form.Group,{label:t("PROJECT_ROLE")},O.default.createElement(v.Form.Item,null,O.default.createElement(y.default,{name:"metadata.annotations['kubesphere.io/project-roles']",itemType:"object",addText:t("ADD_PROJECT"),checkItemValid:this.checkItemValid},O.default.createElement(T.default,(0,s.default)({clusters:this.clusters,showClusterSelect:globals.app.isMultiCluster},this.props))))),globals.app.hasKSModule("devops")&&O.default.createElement(v.Form.Group,{label:t("DEVOPS_PROJECT_ROLE")},O.default.createElement(v.Form.Item,null,O.default.createElement(y.default,{name:"metadata.annotations['kubesphere.io/devops-roles']",itemType:"object",addText:t("ADD_DEVOPS_PROJECT"),checkItemValid:this.checkItemValid},O.default.createElement(D.default,(0,s.default)({clusters:this.clusters,showClusterSelect:globals.app.isMultiCluster},this.props)))))),O.default.createElement("div",{className:R.default.footer},O.default.createElement(v.Button,{onClick:r},t("CANCEL")),O.default.createElement(v.Button,{type:"primary",onClick:this.handleSave},t("OK"))))}},{key:"needUpgrade",get:function(){return this.workspaceStore.clusters.data.some((function(e){return(0,P.compareVersion)(globals.app.isMultiCluster?(0,E.default)(e,"configz.ksVersion",""):(0,E.default)(globals,"ksConfig.ksVersion"),"v3.1.0")<0}))}},{key:"workspaceRoles",get:function(){return this.workspaceRoleStore.list.data.map((function(e){return{label:e.name,value:e.name,item:e}}))}},{key:"clusters",get:function(){return this.workspaceStore.clusters.data.map((function(e){var t=(0,P.compareVersion)(globals.app.isMultiCluster?(0,E.default)(e,"configz.ksVersion",""):(0,E.default)(globals,"ksConfig.ksVersion"),"v3.1.0")<0;return{label:e.name,value:e.name,disabled:!e.isReady||t,needUpgrade:t,item:e}}))}}]),a}(O.default.Component),l.propTypes={workspace:k.default.string,groupId:k.default.string},u=c,(0,h.default)(u.prototype,"workspaceRoles",[S.computed],Object.getOwnPropertyDescriptor(u.prototype,"workspaceRoles"),u.prototype),(0,h.default)(u.prototype,"clusters",[S.computed],Object.getOwnPropertyDescriptor(u.prototype,"clusters"),u.prototype),o=u))||o;r.default=A},4418:function(e,r,a){"use strict";a(15);var n=a(20),o=a(157);a(187),a(11),a(18),a(16),a(9),a(4),a(23),a(17),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,a(45),a(187),a(11),a(18),a(42),a(16),a(9),a(4),a(23),a(57),a(17);var u,l,c,s,i=n(a(36)),f=n(a(37)),d=n(a(55)),p=n(a(56)),m=n(a(51)),h=n(a(49)),v=o(a(0)),y=n(a(1)),g=a(14),E=a(239),_=n(a(806)),S=n(a(63)),b=a(186),k=a(52),O=n(a(441)),w=n(a(323)),P=n(a(1426));function C(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,a=(0,m.default)(e);if(t){var n=(0,m.default)(this).constructor;r=Reflect.construct(a,arguments,n)}else r=a.apply(this,arguments);return(0,p.default)(this,r)}}var D=(0,E.observer)((s=c=function(e){(0,d.default)(a,e);var r=C(a);function a(e){var n;return(0,i.default)(this,a),(n=r.call(this,e)).handleChange=function(){var e=n.state,t=e.cluster,r=e.namespace,a=e.role;n.props.onChange({cluster:t,namespace:r,role:a})},n.handleClusterChange=function(e){n.setState({cluster:e,namespace:"",role:""},(function(){n.handleChange(),n.fetchDevops(),n.devopsRoleStore.list.update({data:[]})}))},n.handleDevopsChange=function(e){n.setState({namespace:e,role:""},(function(){n.handleChange(),n.fetchDevopsRoles()}))},n.handleRoleChange=function(e){n.setState({role:e},(function(){return n.handleChange()}))},n.clusterRenderer=function(e){return v.default.createElement("span",null,v.default.createElement("span",null,(0,k.showNameAndAlias)(e.item)),e.needUpgrade&&v.default.createElement(b.Tooltip,{content:t("CLUSTER_UPGRADE_REQUIRED",{version:"v3.1.0"}),placement:"bottom"},v.default.createElement(b.Icon,{name:"update",className:P.default.tip,color:{primary:"#ffc781",secondary:"#f5a623"}})))},n.devopsStore=new w.default,n.devopsRoleStore=new O.default,n.state={cluster:(0,S.default)(e.value)?"":e.value.cluster,namespace:(0,S.default)(e.value)?"":e.value.namespace,role:(0,S.default)(e.value)?"":e.value.role},n}return(0,f.default)(a,[{key:"componentDidMount",value:function(){this.fetchDevops(),this.fetchDevopsRoles()}},{key:"componentDidUpdate",value:function(e){var t=this;(0,_.default)(e.value,this.props.value)||this.setState({cluster:this.props.value.cluster||"",namespace:this.props.value.namespace||"",role:this.props.value.role||""},(function(){t.fetchDevops(),t.fetchDevopsRoles()}))}},{key:"fetchDevops",value:function(){var e=this.state.cluster,t=this.props.showClusterSelect;!e&&t||this.devopsStore.fetchList({workspace:this.props.workspace,cluster:e,limit:-1,sortBy:"createTime"})}},{key:"fetchDevopsRoles",value:function(){var e=this.state,t=e.cluster,r=e.namespace;r&&this.devopsRoleStore.fetchList({devops:r,cluster:t,limit:-1,sortBy:"createTime"})}},{key:"render",value:function(){var e=this,r=this.props,a=r.clusters,n=r.value,o=r.showClusterSelect,u=this.state,l=u.cluster,c=u.namespace,s=u.role,i=!(0,S.default)(n)&&n.disabled;return v.default.createElement("div",{className:P.default.selectWrapper},o&&v.default.createElement(b.Select,{name:"cluster",value:l,disabled:i,options:a,placeholder:t("CLUSTER"),valueRenderer:function(e){return t("CLUSTER_VALUE",{value:(0,k.showNameAndAlias)(e.item)})},optionRenderer:this.clusterRenderer,prefixIcon:v.default.createElement(b.Icon,{name:"cluster",size:16}),onChange:this.handleClusterChange,showTip:!0}),v.default.createElement(b.Select,{name:"namespace",value:c,disabled:i,options:this.devops,placeholder:" ",valueRenderer:function(r){var a,n=(null===(a=(0,g.toJS)(e.devopsStore.list).data)||void 0===a?void 0:a.filter((function(e){return e.devops===r.value}))[0])||"";return t("PROJECT_VALUE",{value:(0,k.showNameAndAlias)(n)})},prefixIcon:v.default.createElement(b.Icon,{name:"strategy-group",size:16}),onChange:this.handleDevopsChange}),v.default.createElement(b.Select,{name:"role",value:s,disabled:i,options:this.roles,valueRenderer:function(e){return t("DEVOPS_PROJECT_ROLES_VALUE",{value:e.value})},prefixIcon:v.default.createElement(b.Icon,{name:"role",size:16}),placeholder:t("ROLE"),onChange:this.handleRoleChange}))}},{key:"devops",get:function(){var e=this,t=this.props.arrayValue,r=void 0===t?[]:t;return(0,g.toJS)(this.devopsStore.list).data.filter((function(t){return r.every((function(r){return r.cluster!==e.state.cluster||r.namespace!==t.devops}))})).map((function(e){return{label:(0,k.showNameAndAlias)(e),value:e.devops,item:e}}))}},{key:"roles",get:function(){return this.devopsRoleStore.list.data.map((function(e){return{label:e.name,value:e.name,item:e}}))}}]),a}(v.Component),c.propTypes={clusters:y.default.array},l=s,(0,h.default)(l.prototype,"devops",[g.computed],Object.getOwnPropertyDescriptor(l.prototype,"devops"),l.prototype),(0,h.default)(l.prototype,"roles",[g.computed],Object.getOwnPropertyDescriptor(l.prototype,"roles"),l.prototype),u=l))||u;r.default=D},4419:function(e,r,a){"use strict";a(15);var n=a(20),o=a(157);a(187),a(11),a(18),a(16),a(9),a(4),a(23),a(17),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,a(45),a(187),a(11),a(18),a(42),a(16),a(9),a(4),a(23),a(57),a(17);var u,l,c,s,i=n(a(36)),f=n(a(37)),d=n(a(55)),p=n(a(56)),m=n(a(51)),h=n(a(49)),v=o(a(0)),y=n(a(1)),g=a(14),E=a(239),_=n(a(806)),S=n(a(63)),b=a(186),k=a(52),O=n(a(441)),w=n(a(439)),P=n(a(1426));function C(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,a=(0,m.default)(e);if(t){var n=(0,m.default)(this).constructor;r=Reflect.construct(a,arguments,n)}else r=a.apply(this,arguments);return(0,p.default)(this,r)}}var D=(0,E.observer)((s=c=function(e){(0,d.default)(a,e);var r=C(a);function a(e){var n;return(0,i.default)(this,a),(n=r.call(this,e)).handleChange=function(){var e=n.state,t=e.cluster,r=e.namespace,a=e.role;n.props.onChange({cluster:t,namespace:r,role:a})},n.handleClusterChange=function(e){n.setState({cluster:e,namespace:"",role:""},(function(){n.handleChange(),n.fetchProjects(),n.roleStore.list.update({data:[]})}))},n.handleProjectsChange=function(e){n.setState({namespace:e,role:""},(function(){n.handleChange(),n.fetchRoles()}))},n.handleRoleChange=function(e){n.setState({role:e},(function(){return n.handleChange()}))},n.clusterRenderer=function(e){return v.default.createElement("span",null,v.default.createElement("span",null,(0,k.showNameAndAlias)(e.item)),e.needUpgrade&&v.default.createElement(b.Tooltip,{content:t("CLUSTER_UPGRADE_REQUIRED",{version:"v3.1.0"}),placement:"bottom"},v.default.createElement(b.Icon,{name:"update",className:P.default.tip,color:{primary:"#ffc781",secondary:"#f5a623"}})))},n.workspaceStore=e.workspaceStore,n.projectStore=new w.default,n.roleStore=new O.default,n.state={cluster:(0,S.default)(e.value)?"":e.value.cluster,namespace:(0,S.default)(e.value)?"":e.value.namespace,role:(0,S.default)(e.value)?"":e.value.role},n}return(0,f.default)(a,[{key:"componentDidMount",value:function(){this.fetchProjects(),this.fetchRoles()}},{key:"componentDidUpdate",value:function(e){var t=this;(0,_.default)(e.value,this.props.value)||this.setState({cluster:this.props.value.cluster||"",namespace:this.props.value.namespace||"",role:this.props.value.role||""},(function(){t.fetchProjects(),t.fetchRoles()}))}},{key:"fetchProjects",value:function(){var e=this.state.cluster,t=this.props.showClusterSelect;!e&&t||this.projectStore.fetchList({workspace:this.props.workspace,cluster:e,limit:-1,sortBy:"createTime"})}},{key:"fetchRoles",value:function(){var e=this.state,t=e.cluster,r=e.namespace;r&&this.roleStore.fetchList({workspace:this.props.workspace,cluster:t,namespace:r,limit:-1,sortBy:"createTime"})}},{key:"render",value:function(){var e=this,r=this.props,a=r.clusters,n=r.value,o=r.showClusterSelect,u=this.state,l=u.cluster,c=u.namespace,s=u.role,i=!(0,S.default)(n)&&n.disabled;return v.default.createElement("div",{className:P.default.selectWrapper},o&&v.default.createElement(b.Select,{name:"cluster",value:l,disabled:i,options:a,placeholder:t("CLUSTER"),valueRenderer:function(e){return t("CLUSTER_VALUE",{value:(0,k.showNameAndAlias)(e.item)})},optionRenderer:this.clusterRenderer,prefixIcon:v.default.createElement(b.Icon,{name:"cluster",size:16}),onChange:this.handleClusterChange,showTip:!0}),v.default.createElement(b.Select,{name:"namespace",value:c,disabled:i,options:this.projects,placeholder:t("PROJECT"),valueRenderer:function(r){var a=e.projectStore.list.data.filter((function(e){return e.name===r.value}))[0]||"";return t("PROJECT_VALUE",{value:(0,k.showNameAndAlias)(a)})},prefixIcon:v.default.createElement(b.Icon,{name:"project",size:16}),onChange:this.handleProjectsChange}),v.default.createElement(b.Select,{name:"role",value:s,disabled:i,options:this.roles,valueRenderer:function(e){return t("PROJECT_ROLE_VALUE",{value:e.value})},prefixIcon:v.default.createElement(b.Icon,{name:"role",size:16}),placeholder:t("ROLE"),onChange:this.handleRoleChange}))}},{key:"projects",get:function(){var e=this,t=this.props.arrayValue,r=void 0===t?[]:t;return this.projectStore.list.data.filter((function(t){return r.every((function(r){return r.cluster!==e.state.cluster||r.namespace!==t.name}))})).map((function(e){return{label:(0,k.showNameAndAlias)(e),value:e.name,item:e}}))}},{key:"roles",get:function(){return this.roleStore.list.data.map((function(e){return{label:e.name,value:e.name,item:e}}))}}]),a}(v.Component),c.propTypes={clusters:y.default.array},l=s,(0,h.default)(l.prototype,"projects",[g.computed],Object.getOwnPropertyDescriptor(l.prototype,"projects"),l.prototype),(0,h.default)(l.prototype,"roles",[g.computed],Object.getOwnPropertyDescriptor(l.prototype,"roles"),l.prototype),u=l))||u;r.default=D},4420:function(e,t,r){e.exports={detailWrapper:"_1S1C__bXDtYMZ6xPU4u9FD",breadcrumbs:"sXboNxn0VlO0e8ZxzvJ9m",separator:"_2KeuD0ObNijSwq5odIg9DE"}},4421:function(e,t,r){e.exports={modalBody:"_3-5Nz5JgV2fPz1zNyGcO5c",content:"_3EgUH5MLx3S1cM-9DVdDVC",modalFooter:"_3_Z5HTlLEz3aoecExFXAxd"}},4422:function(e,r,a){"use strict";var n=a(20),o=a(157);a(12),a(5),a(11),a(6),a(9),a(13),a(10),a(4),a(23),a(17),a(7),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,a(12),a(45),a(5),a(11),a(6),a(28),a(42),a(34),a(15),a(9),a(13),a(10),a(4),a(23),a(57),a(17),a(7);var u,l,c,s=n(a(30)),i=n(a(36)),f=n(a(37)),d=n(a(55)),p=n(a(56)),m=n(a(51)),h=a(186),v=n(a(1874)),y=n(a(135)),g=n(a(26)),E=n(a(74)),_=a(239),S=n(a(1)),b=o(a(0)),k=a(52),O=n(a(4423));function w(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,a)}return r}function P(e){for(var t=1;t0&&this.renderTree())}}]),a}(b.Component),l.propTypes={treeData:S.default.array,total:S.default.number,isLoading:S.default.bool,onSelect:S.default.func},u=c))||u;r.default=D},4423:function(e,t,r){e.exports={wrapper:"_2iCTOipXFP82e41v-tZzEf",empty:"_3DQ5W3kiOrYnwnIm04s7WS",loading:"_3428Y_KBOws7FcaUlX1sks",treeWrapper:"m0r6YLradu_GH2NXkD7sy"}},4424:function(e,r,a){"use strict";var n=a(20),o=a(157);a(12),a(5),a(11),a(6),a(84),a(18),a(16),a(9),a(13),a(10),a(4),a(23),a(24),a(17),a(85),a(62),a(188),a(7),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,a(12),a(45),a(5),a(11),a(6),a(84),a(18),a(28),a(42),a(16),a(34),a(15),a(9),a(13),a(10),a(4),a(23),a(57),a(24),a(17),a(85),a(62),a(188),a(7);var u,l,c,s=n(a(30)),i=n(a(36)),f=n(a(37)),d=n(a(55)),p=n(a(56)),m=n(a(51)),h=o(a(0)),v=n(a(1)),y=a(239),g=n(a(3)),E=a(14),_=a(186),S=n(a(863)),b=a(791),k=n(a(4425)),O=n(a(1879));function w(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,a)}return r}function P(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=n.state,r=t.group,a=t.search;n.userStore.fetchGroupUser(P(P({},e),{},{notingroup:r,name:a,type:"notingroup",limit:-1}))},n.fetchIngroupData=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=n.state,r=t.group,a=t.search;n.userStore.fetchGroupUser(P(P({},e),{},{ingroup:r,name:a,type:"ingroup",limit:-1}))},n.handleTypeChange=function(e){n.setState({type:e})},n.handleSearch=function(e){n.setState({search:e},(function(){n.fetchIngroupData(),n.fetchNotingroupData()}))},n.handleSelect=function(e){n.props.onSelect(e)},n.handleDelete=function(e){n.trigger("group.user.remove",P({store:n.props.groupStore,detail:(0,E.toJS)(P(P({},e),{},{group:n.state.group})),success:function(){n.fetchIngroupData({page:1}),n.fetchNotingroupData({page:1})}},n.props.match.params))},n.renderPlaceHolder=function(){return h.default.createElement("div",{className:O.default.item},t("DEPARTMENT_EMPTY_DESC"))},n.userStore=e.userStore,n.groupStore=e.groupStore,n.state={type:"ingroup",group:e.group,search:""},n.configs=n.getConfigs(),n}return(0,f.default)(a,[{key:"componentDidUpdate",value:function(e){var t=this;e.refreshFlag===this.props.refreshFlag&&e.group===this.props.group||this.setState({group:this.props.group},(function(){t.fetchIngroupData(),t.fetchNotingroupData()}))}},{key:"renderToolBar",value:function(){var e=this;return h.default.createElement("div",{className:"level"},h.default.createElement("div",{className:"level-left"},h.default.createElement(_.RadioGroup,{mode:"button",value:this.state.type,onChange:this.handleTypeChange},this.configs.map((function(t){var r=t.type,a=t.title;return h.default.createElement(_.RadioButton,{key:r,value:r},a,h.default.createElement(_.Tag,{color:e.getColor(r)},e.getCount(r)))}))),this.state.group&&h.default.createElement(_.InputSearch,{className:O.default.search,onSearch:this.handleSearch,placeholder:t("SEARCH_BY_NAME")})))}},{key:"renderUserItem",value:function(e){var t=this,r=e.type,a=e.onFetch,n=(0,E.toJS)(this.userStore[r]),o=n.data,u=void 0===o?[]:o,l=n.total,c=n.page,s=n.isLoading,i=this.props,f=i.selectedKeys,d=i.enabledActions,p=this.state.group;return p||"ingroup"!==r?h.default.createElement(S.default,{data:u,total:l,page:c,loading:s,onFetch:this[a]},u.map((function(e){return h.default.createElement(k.default,{key:"".concat(r,"-").concat(e.name),type:r,user:e,group:p,groupStore:t.groupStore,enabledActions:d,selected:f.includes(e.name),onSelect:function(){return t.handleSelect(e)},onDelete:function(){return t.handleDelete(e)}})}))):this.renderPlaceHolder()}},{key:"render",value:function(){var e=this,t=this.state.type;return h.default.createElement("div",{className:O.default.userWrapper},this.renderToolBar(),h.default.createElement("div",{className:O.default.scrollWrapper},this.configs.map((function(r){return h.default.createElement("div",{className:(0,g.default)(O.default.tabPanel,t===r.type&&O.default.active),key:r.type},e.renderUserItem(r))}))))}}]),a}(h.Component),l.propTypes={group:v.default.string,enabledActions:v.default.array,selectedKeys:v.default.array,refreshFlag:v.default.bool,onSelect:v.default.func},u=c))||u)||u)||u;r.default=D},4425:function(e,r,a){"use strict";a(15);var n=a(20);a(5),a(11),a(31),a(84),a(73),a(18),a(16),a(4),a(23),a(17),a(85),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,a(45),a(5),a(11),a(31),a(84),a(73),a(18),a(42),a(16),a(4),a(23),a(57),a(17),a(85);var o=n(a(36)),u=n(a(37)),l=n(a(55)),c=n(a(56)),s=n(a(51)),i=a(186),f=n(a(788)),d=n(a(790)),p=a(14),m=n(a(1)),h=n(a(0)),v=n(a(1879));function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,a=(0,s.default)(e);if(t){var n=(0,s.default)(this).constructor;r=Reflect.construct(a,arguments,n)}else r=a.apply(this,arguments);return(0,c.default)(this,r)}}var g=function(e){(0,l.default)(a,e);var r=y(a);function a(){var e;(0,o.default)(this,a);for(var t=arguments.length,n=new Array(t),u=0;u0&&void 0!==i[0]?i[0]:{},a=r.silent,n=(0,c.default)(r,["silent"]),o=e.props.store,a&&(o.list.silent=!0),!(u=e.workspaceStore.cluster)){t.next=11;break}return t.next=7,o.fetchList(M(M({cluster:u},e.props.match.params),n));case 7:if(!((l=o.list.data.map((function(e){return e.name}))).length>0)){t.next=11;break}return t.next=11,e.monitoringStore.fetchMetrics(M(M({cluster:u,resources:l},e.props.match.params),{},{metrics:Object.values((0,C.hideGPUByLicense)(L,u)),last:!0}));case 11:o.list.silent=!1;case 12:case"end":return t.stop()}}),t)}))),e.getLastValue=function(t,r){var a=e.monitoringStore.data,n=((0,_.default)(a,"".concat(r,".data.result"))||[]).find((function(e){return(0,_.default)(e,"metric.namespace")===t.name}));return(0,_.default)(n,"value[1]",0)},e.getCheckboxProps=function(e){return{disabled:"Terminating"===e.status,name:e.name}},e.getColumns=function(){var r=e.props.getSortOrder,a={Active:"ACTIVE",Terminating:"TERMINATING"},n=[{title:t("NAME"),dataIndex:"name",key:"name",sorter:!0,sortOrder:r("name"),render:function(t,r){return E.default.createElement(k.default,{to:"Terminating"===r.status||r.isFedHostNamespace?null:"/".concat(e.workspace,"/clusters/").concat(r.cluster,"/projects/").concat(t),icon:"project",iconSize:40,desc:r.description||"-",title:(0,C.getDisplayNameNew)(r)})}},{title:t("STATUS"),dataIndex:"status",key:"status",isHideable:!0,render:function(e){return E.default.createElement(O.default,{type:e,name:t(a[e]),flicker:!0})}}];return globals.app.hasClusterModule(e.workspaceStore.cluster,"whizard-monitoring")&&n.push({title:t("CPU_USAGE"),key:"namespace_cpu_usage",isHideable:!0,render:function(t){return(0,D.getSuitableValue)(e.getLastValue(t,L.cpu),"cpu","-")}},{title:t("MEMORY_USAGE"),key:"namespace_memory_usage_wo_cache",isHideable:!0,render:function(t){return(0,D.getSuitableValue)(e.getLastValue(t,L.memory),"memory","-")}},{title:t("GPU_USAGE"),key:"namespace_gpu_usage",isHideable:!0,render:function(t){return(0,D.getSuitableValue)(e.getLastValue(t,L.gpu),"gpu","-")}},{title:t("GPU_MEMORY_USAGE"),key:"namespace_gpu_memory_usage",isHideable:!0,render:function(t){return(0,D.getSuitableValue)(e.getLastValue(t,L.gpu_memory),"memory","-")}},{title:t("POD_COUNT"),key:"namespace_pod_count",isHideable:!0,render:function(t){return e.getLastValue(t,L.pod)}}),n.push({title:t("CREATION_TIME_TCAP"),dataIndex:"createTime",isHideable:!0,sorter:!0,render:function(e){return(0,C.getLocalTime)(e).format("YYYY-MM-DD HH:mm:ss")}}),n},e.showCreate=function(){var t=(0,_.default)(e.workspaceStore.detail,"_originData.metadata.labels['cluster-role.kubesphere.io/edge']");e.props.trigger("project.create",M(M({},e.props.match.params),{},{type:t?"edge":"ks",defaultCluster:t||e.workspaceStore.cluster,success:function(t){t&&e.workspaceStore.selectCluster(t),e.getData({silent:!0})}}))},e.renderEdgeCluster=function(){if(!e.isEdgeCluster)return null;var r=e.state,a=r.nodeCount,n=r.nodeGroupCount;return E.default.createElement("div",{className:j.default.EdgeHeader},E.default.createElement(b.Icon,{className:j.default.icon,name:"edge-cluster",size:40}),E.default.createElement(Text,{className:j.default.Item,title:e.edgeCluster,description:t("EDGE_CLUSTER")}),E.default.createElement(Text,{className:j.default.Item,title:n,description:t("NODE_GROUP_COUNT")}),E.default.createElement(Text,{className:j.default.Item,title:a,description:t("EDGE_NODE_COUNT")}))},e}return(0,m.default)(a,[{key:"componentDidMount",value:function(){this.isEdgeCluster&&this.fetchNodeGroupData()}},{key:"renderTitle",value:function(e){return e.isFedHostNamespace?E.default.createElement("span",null,E.default.createElement("span",{className:"margin-r8"},(0,C.getDisplayNameNew)(e)),E.default.createElement(b.Tooltip,{content:t("FED_HOST_NAMESPACE_TIP")},E.default.createElement(b.Icon,{name:"information"}))):(0,C.getDisplayNameNew)(e)}},{key:"render",value:function(){var e=this.props,t=e.match,r=e.tableProps,a=M(M({},t),{},{params:M(M({},t.params),{},{cluster:this.workspaceStore.cluster})}),n=this.monitoringStore.isLoading,o=(0,C.hideGPUByLicense)(this.getColumns(),t.params.cluster);return E.default.createElement(w.ListPage,(0,u.default)({},this.props,{match:a,getData:this.getData,module:"namespaces"}),this.renderEdgeCluster(),E.default.createElement(P.default,(0,u.default)({className:"table-2-7"},r,{itemActions:this.itemActions,columns:o,columnSearch:this.columnSearch,onCreate:this.showCreate},this.clusterProps,{isLoading:r.isLoading||n,getCheckboxProps:this.getCheckboxProps})))}},{key:"tabs",get:function(){return{value:this.props.module,onChange:this.handleTabChange,options:[{value:"projects",label:t("PROJECT_PL")},{value:"federatedprojects",label:t("MULTI_CLUSTER_PROJECT_PL")}]}}},{key:"showFederated",get:function(){return!this.isEdgeCluster&&globals.app.isMultiCluster}},{key:"isClusterManage",get:function(){return globals.app.isPlatformAdmin||globals.app.hasPermission({module:"clusters",action:"manage"})}},{key:"edgeCluster",get:function(){return(0,_.default)(this.workspaceStore.detail,"_originData.metadata.labels['cluster-role.kubesphere.io/edge']","")}},{key:"isEdgeCluster",get:function(){return""!==this.edgeCluster}},{key:"clusters",get:function(){return this.workspaceStore.clusters.data.map((function(e){return{label:e.name,value:e.name,disabled:!e.isReady,cluster:e}}))}},{key:"workspace",get:function(){return this.props.match.params.workspace}},{key:"clusterProps",get:function(){return{clusters:this.clusters,cluster:this.workspaceStore.cluster,onClusterChange:this.handleClusterChange,showClusterSelect:globals.app.isMultiCluster}}},{key:"columnSearch",get:function(){var e=this.workspaceStore.cluster,r=(0,C.compareVersion)((0,C.getClusterVersion)(e),"3.4.0")>=0;return[{dataIndex:"name",title:t("NAME"),search:!0},{dataIndex:"alias",title:t("ALIAS"),search:r}]}},{key:"itemActions",get:function(){var e=this,r=this.props,a=r.trigger,n=r.name;return[{key:"edit",icon:"pen",text:t("EDIT_INFORMATION"),action:"edit",onClick:function(e){return a("resource.baseinfo.edit",{detail:e})}},{key:"edit-annotations",icon:"pen",text:t("EDIT_ANNOTATIONS"),action:"manage",show:function(){return e.isClusterManage},onClick:function(e){return a("resource.annotations.edit",{detail:e})}},{key:"quotaEdit",icon:"pen",text:t("EDIT_QUOTAS"),action:"edit",onClick:function(e){return a("project.quota.edit",{type:t("PROJECT"),detail:e})}},{key:"delete",icon:"trash",text:t("DELETE"),action:"delete",onClick:function(e){return a("resource.delete",{type:n,detail:e})}}]}}]),a}(E.default.Component),(0,g.default)(f.prototype,"clusters",[S.computed],Object.getOwnPropertyDescriptor(f.prototype,"clusters"),f.prototype),i=f))||i;r.default=U},4428:function(e,t,r){e.exports={EdgeHeader:"_1CddyN1JUv2v2Cahe4d5nI",icon:"_3PDD_1O2mycO98jRBM2F04",Item:"_1QGSa9qIcFAHZ_DmeD1ugW"}},4429:function(e,r,a){"use strict";var n=a(20),o=a(157);a(12),a(109),a(5),a(11),a(6),a(18),a(48),a(16),a(9),a(13),a(10),a(4),a(23),a(24),a(17),a(62),a(136),a(7),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,a(12),a(109),a(45),a(5),a(11),a(6),a(18),a(28),a(48),a(42),a(16),a(34),a(15),a(9),a(13),a(10),a(4),a(22),a(23),a(57),a(24),a(17),a(62),a(7);var u=n(a(43));a(41);var l,c,s=n(a(44)),i=n(a(315)),f=n(a(30)),d=n(a(36)),p=n(a(37)),m=n(a(55)),h=n(a(56)),v=n(a(51)),y=n(a(49)),g=n(a(788)),E=n(a(795)),_=n(a(1108)),S=o(a(793)),b=a(14),k=n(a(0)),O=n(a(439)),w=n(a(493)),P=n(a(437)),C=a(52),D=n(a(1139)),R=n(a(26));function T(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,a)}return r}function N(e){for(var t=1;t0&&void 0!==l[0]?l[0]:{},a=r.silent,n=(0,i.default)(r,["silent"]),o=e.props.store,a&&(o.list.silent=!0),!(u=e.state.cluster)){t.next=7;break}return t.next=7,o.fetchList(A(A({cluster:u},e.props.match.params),n));case 7:o.list.silent=!1;case 8:case"end":return t.stop()}}),t)}))),e.getColumns=function(){return[{title:t("NAME"),dataIndex:"name",render:function(t,r){var a="Terminating"===r.status;return C.default.createElement(C.default.Fragment,null,C.default.createElement(_.default,{icon:"strategy-group",iconSize:40,to:r.namespace&&r.cluster&&!a?"/".concat(e.workspace,"/clusters/").concat(r.cluster,"/devops/").concat(r.namespace,"/base-info"):null,desc:r.description||"-",title:(0,R.getDisplayNameNew)(r)}))}},{title:t("STATUS"),dataIndex:"status",isHideable:!0,render:function(e){return C.default.createElement(S.default,{type:e,name:t(e.toUpperCase()),flicker:!0})}},{title:t("CREATOR"),dataIndex:"creator",isHideable:!0,render:function(e){return e||"-"}},{title:t("CREATION_TIME_TCAP"),dataIndex:"createTime",isHideable:!0,sorter:!0,render:function(e){return(0,R.getLocalTime)(e).format("YYYY-MM-DD HH:mm:ss")}}]},e.showCreate=function(){return e.props.trigger("devops.create",A(A({},e.props.match.params),{},{cluster:e.workspaceStore.cluster,success:function(t){t&&e.workspaceStore.selectCluster(t),e.getData({silent:!0})}}))},e.getCheckboxProps=function(e){return{disabled:"Terminating"===e.status,name:e.name}},e}return(0,h.default)(a,[{key:"componentDidMount",value:function(){var e=this;request.get("/apis/kubesphere.io/v1alpha1/extensions/devops").then((function(t){var r,a={},n=(0,O.default)(t,"status.clusterSchedulingStatuses",{});Object.entries(n).forEach((function(e){var t=(0,l.default)(e,2),r=t[0],n=t[1];a[r]="Installed"===(null==n?void 0:n.state)})),e.setState({clusters:a,loading:!1,cluster:null===(r=e.workspaceStore.clusters.data.find((function(e){return e.isReady&&a[e.name]})))||void 0===r?void 0:r.name})}))}},{key:"render",value:function(){var e=this.props,r=e.bannerProps,a=e.tableProps,n=e.match,o=A(A({},n),{},{params:A(A({},n.params),{},{cluster:this.state.cluster})});return C.default.createElement(k.ListPage,(0,u.default)({},this.props,{getData:this.getData,match:o}),C.default.createElement(b.default,(0,u.default)({},r,{description:t("DEVOPS_DESCRIPTION"),tips:this.tips})),C.default.createElement(T.default,(0,u.default)({},a,{className:"table-2-8",itemActions:this.itemActions,tableActions:this.tableActions,columns:this.getColumns(),columnSearch:this.columnSearch,onCreate:this.showCreate,isLoading:a.isLoading&&this.state.loading},this.clusterProps,{getCheckboxProps:this.getCheckboxProps})))}},{key:"itemActions",get:function(){var e=this.props,r=e.trigger,a=e.name;return[{key:"edit",icon:"pen",text:t("EDIT"),action:"edit",onClick:function(e){return r("devops.edit",{detail:e})}},{key:"delete",icon:"trash",text:t("DELETE"),action:"delete",onClick:function(e){r("resource.delete",{title:t("DELETE_DEVOPS_PROJECT"),desc:t.html("DELETE_DEVOPS_PROJECT_TIP",{resource:e.name}),type:a,resource:e.name,detail:e})}}]}},{key:"tips",get:function(){return[{title:t("DEVOPS_TIP_GITOPS_Q"),description:t("DEVOPS_TIP_GITOPS_A")},{title:t("DEVOPS_TIP_TYPE_Q"),description:t("DEVOPS_TIP_TYPE_A")}]}},{key:"workspace",get:function(){return this.props.match.params.workspace}},{key:"clusters",get:function(){var e=this;return(0,w.default)(this.workspaceStore.clusters.data.map((function(t){return{label:t.name,value:t.name,disabled:!t.isReady||!e.state.clusters[t.name],cluster:t}})),"disabled")}},{key:"clusterProps",get:function(){return{clusters:this.clusters,cluster:this.state.cluster,onClusterChange:this.handleClusterChange,showClusterSelect:globals.app.isMultiCluster}}},{key:"tableActions",get:function(){var e=this.props,r=e.tableProps,a=e.trigger;return A(A({},r.tableActions),{},{selectActions:[{key:"delete",type:"danger",text:t("DELETE"),action:"delete",onClick:function(){a("devops.batch.delete",{type:r.name,rowKey:r.rowKey})}}]})}},{key:"columnSearch",get:function(){return[{dataIndex:"name",title:t("NAME"),search:!0},{dataIndex:"alias",title:t("ALIAS"),search:!0}]}}]),a}(C.default.Component),(0,E.default)(d.prototype,"clusters",[P.computed],Object.getOwnPropertyDescriptor(d.prototype,"clusters"),d.prototype),f=d))||f;r.default=I},4431:function(e,r,a){"use strict";var n=a(20),o=a(157);a(12),a(109),a(5),a(11),a(6),a(84),a(16),a(9),a(13),a(10),a(4),a(23),a(24),a(17),a(85),a(62),a(75),a(7),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,a(12),a(109),a(45),a(5),a(11),a(6),a(84),a(28),a(42),a(16),a(34),a(15),a(9),a(13),a(10),a(4),a(23),a(57),a(24),a(17),a(85),a(62),a(75),a(7);var u,l=n(a(315)),c=n(a(30)),s=n(a(36)),i=n(a(37)),f=n(a(55)),d=n(a(56)),p=n(a(51)),m=n(a(0)),h=a(186),v=n(a(795)),y=n(a(1024)),g=n(a(792)),E=n(a(796)),_=o(a(793)),S=a(52),b=a(916),k=n(a(469));function O(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,a)}return r}function w(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:"syncing";return v.default.createElement(S.default,{type:e,name:t("APP_REPO_STATUS_".concat(e.toUpperCase())),flicker:!0})}},{title:t("URL"),dataIndex:"url"}]},e.handleFetch=(0,g.default)((function(t){var r=e.props,a=r.store,n=r.getData;if(!a.list.isLoading)return n(C(C(C({},(0,y.parse)(location.search.slice(1))),t),{},{silent:!0}))}),1e3),e.handleWatch=function(t){"HelmRepo"===t.object.kind&&["MODIFIED","DELETED","ADDED"].includes(t.type)&&e.handleFetch()},e}return(0,d.default)(a,[{key:"render",value:function(){var e=this.props,r=e.bannerProps,a=e.tableProps;return v.default.createElement(O.ListPage,(0,u.default)({},this.props,{onMessage:this.handleWatch}),v.default.createElement(b.default,(0,u.default)({},r,{tips:this.tips,title:t("APP_REPO"),description:t("APP_REPO_DESC")})),v.default.createElement(k.default,(0,u.default)({},a,{tableActions:this.tableActions,itemActions:this.itemActions,columns:this.getColumns(),searchType:"keyword"})))}},{key:"tips",get:function(){return[{title:t("HOW_TO_USE_APP_REPO_Q"),description:t.html("HOW_TO_USE_APP_REPO_A")}]}},{key:"workspace",get:function(){return this.props.match.params.workspace}},{key:"itemActions",get:function(){var e=this,r=this.props,a=r.trigger,n=r.name,o=r.routing;return[{key:"edit",icon:"pen",text:t("EDIT"),action:"edit",onClick:function(t){return a("openpitrix.repo.edit",{detail:t,workspace:e.workspace,success:o.query})}},{key:"delete",icon:"trash",text:t("DELETE"),action:"delete",onClick:function(e){return a("resource.delete",{detail:e,type:n,success:o.query})}}]}},{key:"tableActions",get:function(){var e=this,r=this.props,a=r.trigger,n=r.routing;return C(C({},r.tableProps.tableActions),{},{searchType:"keyword",actions:[{key:"create",type:"control",text:t("ADD"),action:"manage",onClick:function(){return a("openpitrix.repo.add",{workspace:e.workspace,success:n.query})}}],selectActions:[{key:"index",type:"primary",text:t("SYNC"),action:"manage",onClick:this.handleIndex}]})}}]),a}(v.default.Component))||s;r.default=R},4434:function(e,r,a){"use strict";var n=a(20);a(12),a(5),a(11),a(6),a(18),a(16),a(9),a(13),a(10),a(4),a(23),a(24),a(17),a(62),a(7),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,a(12),a(45),a(5),a(11),a(6),a(18),a(28),a(42),a(16),a(34),a(15),a(9),a(13),a(10),a(4),a(22),a(23),a(57),a(24),a(17),a(62),a(7);var o=n(a(315)),u=n(a(43));a(41);var l,c,s,i,f=n(a(44)),d=n(a(30)),p=n(a(65)),m=n(a(36)),h=n(a(37)),v=n(a(88)),y=n(a(55)),g=n(a(56)),E=n(a(51)),_=n(a(49)),S=(n(a(66)),n(a(0))),b=a(239),k=a(14),O=a(791),w=a(186),P=(n(a(792)),n(a(1880))),C=n(a(1819)),D=n(a(834)),R=n(a(26)),T=n(a(4436));function N(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,a)}return r}function A(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};e.projectStore.fetchListByUser(O({workspace:e.workspace,cluster:e.workspaceStore.cluster,username:e.props.detailStore.detail.name},t))},e.handleClusterChange=function(t){e.workspaceStore.selectCluster(t),e.getData()},e}return(0,i.default)(a,[{key:"componentDidMount",value:function(){var e=this;this.workspaceStore.fetchClusters({workspace:this.workspace,limit:-1}).then((function(){e.getData()}))}},{key:"render",value:function(){var e=(0,v.toJS)(this.projectStore.list),r=e.data,a=e.page,n=e.limit,o=e.total,u=e.isLoading,c=e.filters,s={page:a,limit:n,total:o};return h.default.createElement(_.default,{title:t("PROJECTS")},h.default.createElement(E.default,(0,l.default)({className:b.default.table,data:r,columns:this.getColumns(),isLoading:u||this.workspaceStore.clusters.isLoading,onFetch:this.getData,pagination:s},this.clusterProps,{name:"PROJECT",hideSearch:!0,hideCustom:!0,filters:c})))}},{key:"clusters",get:function(){return this.workspaceStore.clusters.data.map((function(e){return{label:e.name,value:e.name,disabled:!e.isReady,cluster:e}}))}},{key:"workspaceStore",get:function(){return this.props.workspaceStore}},{key:"workspace",get:function(){return this.props.match.params.workspace}},{key:"clusterProps",get:function(){return{clusters:this.clusters,cluster:this.workspaceStore.cluster,onClusterChange:this.handleClusterChange,showClusterSelect:globals.app.isMultiCluster}}}]),a}(h.default.Component),(0,m.default)(u.prototype,"clusters",[v.computed],Object.getOwnPropertyDescriptor(u.prototype,"clusters"),u.prototype),o=u))||o)||o;r.default=P},4442:function(e,t,r){e.exports={table:"WRBc98bwWPsApBMpVDYJk"}},4443:function(e,r,a){"use strict";var n=a(20);a(12),a(5),a(11),a(6),a(18),a(16),a(9),a(13),a(10),a(4),a(23),a(24),a(17),a(62),a(7),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,a(12),a(45),a(5),a(11),a(6),a(18),a(28),a(42),a(16),a(34),a(15),a(9),a(13),a(10),a(4),a(23),a(57),a(24),a(17),a(62),a(7);var o,u,l=n(a(315)),c=n(a(30)),s=n(a(36)),i=n(a(37)),f=n(a(55)),d=n(a(56)),p=n(a(51)),m=n(a(49)),h=n(a(0)),v=a(14),y=a(239),g=a(52),E=n(a(1139)),_=n(a(801)),S=n(a(323)),b=n(a(4444));function k(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,a)}return r}function O(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};e.devopsStore.fetchListByUser(O({workspace:e.workspace,cluster:e.workspaceStore.cluster,username:e.props.detailStore.detail.name},t))},e.handleClusterChange=function(t){e.workspaceStore.selectCluster(t),e.getData({filters:{cluster:t}})},e}return(0,i.default)(a,[{key:"componentDidMount",value:function(){var e=this;this.workspaceStore.fetchClusters({workspace:this.workspace,limit:-1}).then((function(){e.getData()}))}},{key:"render",value:function(){var e=(0,v.toJS)(this.devopsStore.list),r=e.data,a=e.isLoading,n=e.page,o=e.limit,u=e.total,c=e.filters,s={page:n,limit:o,total:u};return h.default.createElement(_.default,{title:t("DEVOPS_PROJECTS")},h.default.createElement(E.default,(0,l.default)({className:b.default.table,data:r,columns:this.getColumns(),isLoading:a,onFetch:this.getData},this.clusterProps,{pagination:s,name:"DEVOPS_PROJECT",hideSearch:!0,hideCustom:!0,filters:c})))}},{key:"clusters",get:function(){return this.workspaceStore.clusters.data.map((function(e){return{label:e.name,value:e.name,disabled:!e.isReady,cluster:e}}))}},{key:"workspaceStore",get:function(){return this.props.workspaceStore}},{key:"workspace",get:function(){return this.props.match.params.workspace}},{key:"clusterProps",get:function(){return{clusters:this.clusters,cluster:this.workspaceStore.cluster,onClusterChange:this.handleClusterChange,showClusterSelect:globals.app.isMultiCluster}}}]),a}(h.default.Component),(0,m.default)(u.prototype,"clusters",[v.computed],Object.getOwnPropertyDescriptor(u.prototype,"clusters"),u.prototype),o=u))||o)||o;r.default=P},4444:function(e,t,r){e.exports={table:"_1igO6MeCqz0zQKLfLayoUI"}},4445:function(e,r,a){"use strict";a(15);var n=a(20);a(12),a(109),a(5),a(84),a(48),a(16),a(4),a(23),a(24),a(17),a(85),a(62),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,a(12),a(109),a(45),a(5),a(84),a(28),a(48),a(42),a(16),a(4),a(23),a(57),a(24),a(17),a(85),a(62);var o,u=n(a(315)),l=n(a(36)),c=n(a(37)),s=n(a(55)),i=n(a(56)),f=n(a(51)),d=n(a(0)),p=a(14),m=a(239),h=n(a(63)),v=a(186),y=a(52),g=a(791),E=n(a(441)),_=n(a(899)),S=n(a(4446));function b(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,a=(0,f.default)(e);if(t){var n=(0,f.default)(this).constructor;r=Reflect.construct(a,arguments,n)}else r=a.apply(this,arguments);return(0,i.default)(this,r)}}var k=(0,m.inject)("rootStore")(o=(0,m.observer)(o=(0,g.trigger)(o=function(e){(0,s.default)(a,e);var r=b(a);function a(){var e;(0,l.default)(this,a);for(var n=arguments.length,o=new Array(n),u=0;u0&&void 0!==arguments[0]?arguments[0]:{},t=n.props.match.params,r=t.appId,a=t.workspace,o=n.props.appStore.isAdmin,u=o?k.STORE_QUERY_STATUS:n.store.defaultStatus;n.store.fetchList(C({app_id:r,workspace:a,status:u},e))},n.getPagination=function(){var e=n.store.list;return{page:e.page,limit:e.limit,total:e.total}},n.handleExpandExtra=function(e){var t=(0,g.default)(n.store,"list.data",[]);n.store.list.data=t.map((function(t){return C(C({},t),{},{isExpand:t.version_id===e&&!t.isExpand})}))},n.handleSearch=function(e){n.searchValue=e,n.fetchData({keyword:e})},n.handleRefresh=function(){var e=n.searchValue?{keyword:n.searchValue}:{};n.fetchData(e)},n.handlePage=function(e){n.fetchData({page:e})},n.addVersion=function(){return n.setState({uploadModal:!0})},n.hideModal=function(){return n.setState({uploadModal:!1})},n.handleCreate=function(e){n.store.create(e).then((function(){n.setState({uploadModal:!1}),_.default.success({content:t("CREATE_SUCCESSFUL")}),n.fetchData()}))},n.renderHeader=function(){var e=n.props.appStore.isAdmin;return m.default.createElement("div",{className:w.default.header},m.default.createElement(E.InputSearch,{className:w.default.search,name:"search",placeholder:t("SEARCH_BY_NAME"),onSearch:n.handleSearch}),m.default.createElement("div",{className:w.default.actions},m.default.createElement(E.Button,{type:"flat",icon:"refresh",onClick:n.handleRefresh}),!e&&n.enabledActions.includes("manage")&&m.default.createElement(E.Button,{onClick:n.addVersion},t("UPLOAD_NEW_VERSION")," ")))},n.renderFooter=function(){var e=n.getPagination(),r=e.total,a=e.page,o=e.limit;return m.default.createElement(E.Level,{className:w.default.footer},m.default.createElement(E.LevelLeft,null,t("TOTAL_ITEMS",{num:r})),m.default.createElement(E.LevelRight,null,m.default.createElement(E.Pagination,{page:a,total:r,limit:o,onChange:n.handlePage})))},n.state={uploadModal:!1},n.store=n.props.versionStore,n}return(0,i.default)(a,[{key:"componentDidMount",value:function(){this.fetchData()}},{key:"renderContent",value:function(){var e=this,r=this.store.list,a=r.data,n=r.isLoading,o=this.props,u=o.match.params,l=o.appStore,c=o.clusters,s=l.isAdmin,i=l.detail||{};return n?m.default.createElement(E.Loading,{className:w.default.loading}):m.default.createElement("div",{className:w.default.body},(0,y.default)(a)?m.default.createElement("div",{className:w.default.empty},t("NO_RESOURCE_FOUND")):a.map((function(t){return m.default.createElement(O.default,{key:t.version_id,isAdmin:s,appDetail:i,detail:t,params:u,store:e.store,appStore:l,clusters:c,enabledActions:e.enabledActions,handleExpandExtra:e.handleExpandExtra})})))}},{key:"renderModals",value:function(){var e=this.props.match.params,r=e.appId,a=e.workspace,n=this.store.isSubmitting;return m.default.createElement("div",null,m.default.createElement(b.default,{title:t("UPLOAD_NEW_VERSION"),description:t("UPLOAD_NEW_VERSION_DESC"),icon:"templet",visible:this.state.uploadModal,appId:r,workspace:a,isSubmitting:n,type:"ADD_VERSION",onOk:this.handleCreate,onCancel:this.hideModal}))}},{key:"render",value:function(){var e=this.props,r=e.hideHeader,a=e.hideFooter;return m.default.createElement(S.default,{className:w.default.main,title:t("VERSIONS")},m.default.createElement("div",{className:w.default.inner},!r&&this.renderHeader(),this.renderContent(),!a&&this.renderFooter(),this.renderModals()))}},{key:"enabledActions",get:function(){return this.props.match.params.workspace?globals.app.getActions({workspace:this.props.match.params.workspace,module:"app-templates"}):["manage"]}}]),a}(m.default.Component),u.propTypes={versionStore:v.default.object,appStore:v.default.object,match:v.default.object,hideHeader:v.default.bool,hideFooter:v.default.bool,onSearch:v.default.func,onRefresh:v.default.func,onPage:v.default.func},u.defaultProps={versionStore:{},appStore:{},match:{},hideHeader:!1,hideFooter:!1,onSearch:function(){},onRefresh:function(){},onPage:function(){}},o=l))||o;r.default=R},4455:function(e,r,a){"use strict";var n=a(20);a(12),a(11),a(6),a(84),a(16),a(9),a(13),a(10),a(4),a(23),a(17),a(85),a(7),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,a(12),a(45),a(11),a(6),a(84),a(28),a(42),a(16),a(34),a(15),a(9),a(13),a(10),a(4),a(23),a(57),a(17),a(85),a(7);var o,u,l,c=n(a(30)),s=n(a(36)),i=n(a(37)),f=n(a(55)),d=n(a(56)),p=n(a(51)),m=n(a(0)),h=a(14),v=n(a(1)),y=n(a(3)),g=a(239),E=a(186),_=n(a(240)),S=n(a(824)),b=n(a(1726)),k=n(a(1427)),O=n(a(4456)),w=n(a(4458)),P=n(a(1882)),C=n(a(4461)),D=a(52),R=a(791),T=a(815),N=a(1049),A=a(327),j=n(a(1884));function I(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,a)}return r}function M(e){for(var t=1;t=t})),o=r1)},t("DELETE"))))},n.renderVersionsEmpty=function(){return p.default.createElement(E.default,{icon:"time-backup",title:t("EMPTY_WRAPPER",{resource:t("APP_TEMPLATE_VERSION")}),desc:t("APP_TEMPLATE_VERSION_EMPTY_TIP"),action:p.default.createElement(g.Button,{key:"create",type:"control",onClick:n.handleCreateVersion},t("CREATE"))})},n.renderVersionsItems=function(){var e,r=(null!==(e=n.selectedVersion)&&void 0!==e?e:{}).containers;return p.default.createElement(p.default.Fragment,null,n.renderCardHead(),p.default.createElement(_.default,{className:C.default.card},p.default.createElement(S.default,{value:n.state.selectedVersionKey,options:n.versionOptions,onChange:n.handleVersionChange}),p.default.createElement("div",{className:C.default.containersWrapper},p.default.createElement("div",{className:C.default.containers},(0,v.default)(r)?t("EMPTY_IMAGE_DESC"):r.map((function(e){return p.default.createElement(P.default,{key:e.name,container:e})}))))))},n.store=new w.default,n.state={selectedVersionKey:n.latestVersionName},n}return(0,s.default)(a,[{key:"componentDidMount",value:function(){this.fetchData()}},{key:"componentDidUpdate",value:function(e){var t=e.detailStore.detail.versions,r=this.versions;t.length>r.length&&this.fetchData()}},{key:"render",value:function(){return(0,v.default)(this.versions)?this.renderVersionsEmpty():this.renderVersionsItems()}},{key:"latestVersionName",get:function(){var e=(0,m.toJS)(this.props.detailStore).detail;return(null==e?void 0:e.latestVersion.name)||this.versions[0].name}},{key:"name",get:function(){return this.props.match.params.name}},{key:"cluster",get:function(){var e=this.props.workspaceStore.detail;return(0,h.default)((0,m.toJS)(e),"clusters.[0].name","")}},{key:"workspace",get:function(){return this.props.match.params.workspace}},{key:"versions",get:function(){return(0,m.toJS)(this.store.list.data)}},{key:"selectedVersion",get:function(){var e=this;return this.versions.find((function(t){return t.name===e.state.selectedVersionKey}))}},{key:"versionOptions",get:function(){var e=this;return this.versions.map((function(r){var a=r.name,n=r.createTime;return{value:a,label:p.default.createElement(p.default.Fragment,null,a,a===e.latestVersionName&&p.default.createElement(g.Tag,{type:"warning",className:C.default.latestTag},t("LATEST_VERSION_SCAP"))),icon:"time-backup",description:t("CREATED_TIME",{diff:(0,b.getLocalTime)(n).format("YYYY-MM-DD HH:mm:ss")})}}))}}]),a}(p.default.Component))||u)||u)||u;r.default=R},4477:function(e,r,a){"use strict";a(15);var n=a(20);a(5),a(16),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,a(5),a(16);var o=n(a(0)),u=n(a(1)),l=n(a(26)),c=n(a(63)),s=a(186),i=n(a(812)),f=a(52),d=n(a(4478)),p=function(e){var r,a=e.type,n=void 0===a?"worker":a,u=e.container,p=(0,l.default)(u,"resources.limits",{}),m=(0,l.default)(u,"resources.requests",{});if("istio-proxy"===u.name)return o.default.createElement(i.default.Item,{icon:"istio",title:u.name,description:t("IMAGE_VALUE",{value:u.image})});r=(0,c.default)(p)&&(0,c.default)(m)?o.default.createElement("div",{className:d.default.limits},o.default.createElement(s.Icon,{name:"exclamation"}),o.default.createElement("span",null," ",t("NO_RESOURCE_LIMIT"))):o.default.createElement("div",{className:d.default.limits},(p.cpu||m.cpu)&&o.default.createElement("span",{className:d.default.limit},o.default.createElement(s.Icon,{name:"cpu",size:20}),o.default.createElement("span",null,"".concat(m.cpu?(0,f.cpuFormat)(m.cpu):0," – ").concat(p.cpu?(0,f.cpuFormat)(p.cpu):"∞"))),(p.memory||m.memory)&&o.default.createElement("span",{className:d.default.limit},o.default.createElement(s.Icon,{name:"memory",size:20}),"".concat(m.memory?"".concat((0,f.memoryFormat)(m.memory)," MiB"):0," – ").concat(p.memory?"".concat((0,f.memoryFormat)(p.memory)," MiB"):"∞")));var h="init"===n?o.default.createElement("span",null,u.name,o.default.createElement(s.Tag,{className:"margin-l8",type:"warning"},t("INIT_CONTAINER"))):u.name;return o.default.createElement(i.default.Item,{icon:"docker",title:h,description:t("IMAGE_VALUE",{value:u.image}),extras:r})};p.propTypes={container:u.default.object};var m=p;r.default=m},4478:function(e,t,r){e.exports={limits:"_1y4Yb86L8kGa7SCNmSZt-z",limit:"m_-zPYyE7svZmMl3N5chT"}},4479:function(e,t,r){e.exports={card:"_2PxiVcEv06XFkMlEtjmkFb",cardHead:"_30vpQeeZv_PozIBZjVStTy",actions:"BvZoBNERQVE_hI1Dkz-JY",containersWrapper:"_2JXUJoVjwAdRaf1ZKPeSK",containers:"_1UirWKy1FLUhKnBCXKcXHG",latestTag:"_37lkclOqP_R0XcZr6133rZ"}},4480:function(e,r,a){"use strict";var n=a(20);a(12),a(109),a(5),a(11),a(6),a(18),a(16),a(9),a(13),a(10),a(4),a(23),a(24),a(17),a(62),a(7),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,a(12),a(109),a(45),a(5),a(11),a(6),a(18),a(28),a(42),a(16),a(34),a(15),a(9),a(13),a(10),a(4),a(23),a(57),a(24),a(17),a(62),a(7);var o,u=n(a(30)),l=n(a(58)),c=n(a(36)),s=n(a(37)),i=n(a(55)),f=n(a(56)),d=n(a(51)),p=n(a(0)),m=a(14),h=a(239),v=n(a(26)),y=n(a(199)),g=n(a(241)),E=n(a(4481)),_=a(186),S=a(52),b=a(72),k=a(434),O=n(a(788)),w=n(a(796)),P=n(a(793)),C=n(a(865)),D=n(a(804)),R=n(a(318)),T=n(a(1342)),N=n(a(4485));function A(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,a)}return r}function j(e){for(var t=1;t0?h.default.createElement(h.default.Fragment,null,h.default.createElement(g.default,(0,u.default)({workspace:this.workspace},this.clusterProps)),h.default.createElement(_.default,(0,u.default)({workspace:this.workspace,isEdge:this.workspaceStore.isEdge},this.clusterProps))):this.renderEmpty())}},{key:"workspace",get:function(){return this.props.match.params.workspace}},{key:"clusters",get:function(){return this.workspaceStore.clusters.data}},{key:"clustersOpts",get:function(){return this.clusters.map((function(e){return{label:(0,v.getDisplayNameNew)(e),value:e.name,disabled:!e.isReady,cluster:e}}))}},{key:"clusterProps",get:function(){return{className:y.default.clusterSelector,cluster:this.workspaceStore.cluster,options:this.clustersOpts,onChange:this.handleClusterChange,valueRenderer:this.valueRenderer,optionRenderer:this.optionRenderer,workspaceStore:this.workspaceStore}}}]),a}(h.default.Component))||o)||o;r.default=b},4490:function(e,t,r){e.exports={clusterSelector:"_2CN59clY1qGTKeYHNEaPKx"}},4491:function(e,r,a){"use strict";var n=a(20);a(12),a(5),a(11),a(6),a(9),a(13),a(10),a(4),a(316),a(23),a(17),a(7),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,a(12),a(45),a(5),a(11),a(6),a(28),a(42),a(34),a(15),a(9),a(13),a(10),a(4),a(316),a(23),a(57),a(17),a(7);var o,u=n(a(315)),l=n(a(58)),c=n(a(30)),s=n(a(36)),i=n(a(37)),f=n(a(55)),d=n(a(56)),p=n(a(51)),m=a(239),h=n(a(26)),v=n(a(0)),y=a(186),g=n(a(1133)),E=a(52),_=a(1811);function S(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,a)}return r}function b(e){for(var t=1;t0?f.default.createElement("div",{className:S.default.wrapper},this.renderToolbar(),this.renderList()):f.default.createElement(y.default,{icon:"cluster",title:t("NO_CLUSTER_AVAILABLE"),desc:t("WORKSPACE_NO_CLUSTER_TIP")})}},{key:"renderToolbar",value:function(){var e=this;return f.default.createElement("div",{className:(0,p.default)(S.default.toolbar,S.default.pane__toolbar,S.default.pane)},f.default.createElement("div",{className:S.default.toolbar_filter},f.default.createElement(v.Select,{options:this.clusters,value:this.workspaceStore.cluster,onChange:this.handleClusterChange,valueRenderer:this.valueRenderer,optionRenderer:this.optionRenderer,showTip:!0}),f.default.createElement(v.Select,{value:this.store.sort_metric,onChange:this.store.changeSortMetric,options:this.options}),!this.isEdge&&f.default.createElement("span",{className:S.default.sort_button},f.default.createElement(v.Icon,{name:"desc"===this.store.sort_type?"sort-descending":"sort-ascending",type:"coloured",size:"small",onClick:function(){return e.store.changeSortType()}}))),f.default.createElement("div",{className:S.default.toolbar_buttons},f.default.createElement(v.Button,{onClick:this.export},t("EXPORT"))))}},{key:"renderList",value:function(){return f.default.createElement(v.Loading,{spinning:this.store.isLoading},f.default.createElement("div",null,f.default.createElement(g.default,{store:this.store,cluster:this.workspaceStore.cluster,workspace:this.workspace}),this.renderPagination()))}},{key:"renderPagination",value:function(){var e=this.store,t=e.page,r=e.total_page,a=this.store.limit;return f.default.createElement("div",{className:(0,p.default)(S.default.pane,S.default.pane__pagination)},f.default.createElement(v.Level,null,f.default.createElement(v.LevelLeft,null),f.default.createElement(v.LevelRight,null,f.default.createElement(v.Pagination,{page:t,total:r,limit:a,onChange:this.store.changePagination}))))}},{key:"isEdge",get:function(){return this.workspaceStore.isEdge}},{key:"workspace",get:function(){return(0,m.default)(this.props,"match.params.workspace")}},{key:"clusters",get:function(){return this.workspaceStore.clusters.data.map((function(e){return{label:e.name,value:e.name,disabled:!e.isReady,cluster:e}}))}},{key:"options",get:function(){var e=this;return this.store.sort_metric_options.filter((function(t){return!e.isEdge||"namespace_pvc_bytes_used"!==t})).map((function(e){return{value:e,label:t("SORT_BY_".concat(e.toUpperCase()))}}))}}]),a}(f.default.Component))||o)||o;r.default=k},4498:function(e,t,r){e.exports={wrapper:"XOE-cnCpkLiQnK1LYj76R",pane:"_4eoZyoK8wFINAqkdJQ85x",pane__toolbar:"_3ogot8SmW5Z_9xeDNnNw8J",pane__pagination:"_2-8FIJLuwzuIKSrqxMesHO",title:"_2qPKz_yI2dQANE7cinRpOJ",toolbar:"_2RBEsIiZKKZgDZ3u7LiRAo",toolbar_buttons:"_2GVcDXuuqPn-Rp4lv0T62i",toolbar_filter:"_3bcXJxC0OcAscveuS8z8n-",sort_button:"_1GoQ0ktQ1tHaIYZStCYuNK",table:"_3wbjOUhTYzkXtBKPWT2gII",table_rank:"_3nh1u6G_H7ukc5exwtqOVD",table_no_border:"_33558CkQNEGbVwy7lI_Qpn",rankList_row:"_3VpL4zRLxPNKDne3b1JfS5",rankLink__sort_col:"FenZscoqAaPoaSyYYOCPb"}},4499:function(e,r,a){"use strict";a(15);var n=a(20);a(5),a(18),a(16),a(4),a(23),a(24),a(17),a(62),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,a(45),a(5),a(18),a(42),a(16),a(4),a(23),a(57),a(24),a(17),a(62);var o,u=n(a(36)),l=n(a(37)),c=n(a(55)),s=n(a(56)),i=n(a(51)),f=n(a(0)),d=n(a(63)),p=a(14),m=a(239),h=n(a(833)),v=n(a(890)),y=n(a(4500));function g(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,a=(0,i.default)(e);if(t){var n=(0,i.default)(this).constructor;r=Reflect.construct(a,arguments,n)}else r=a.apply(this,arguments);return(0,s.default)(this,r)}}var E=(0,m.inject)("rootStore","workspaceStore")(o=(0,m.observer)(o=function(e){(0,c.default)(a,e);var r=g(a);function a(){var e;(0,u.default)(this,a);for(var t=arguments.length,n=new Array(t),o=0;o0&&void 0!==i[0]?i[0]:{},n=r.silent,a=(0,u.default)(r,["silent"]),o=e.props.store,s=e.workspaceConfig.requestParams,n&&(o.list.silent=!0),t.next=6,o.fetchList(_(_({},a),s));case 6:o.list.silent=!1;case 7:case"end":return t.stop()}}),t)}))),e}return(0,h.default)(n,[{key:"componentDidMount",value:function(){this.getClusters()}},{key:"showAction",value:function(t){return globals.config.systemWorkspace!==t.name}},{key:"render",value:function(){var t=this.props,e=t.bannerProps,r=t.tableProps,n=this.workspaceConfig,a=n.title,o=n.description,c=this.clusterStore.list.isLoading;return P.default.createElement(w.ListPage,(0,s.default)({},this.props,{getData:this.getData}),P.default.createElement(O.default,(0,s.default)({},e,{title:a,description:o,tabs:this.tabs})),P.default.createElement(k.default,(0,s.default)({className:"table-2-6"},r,{columns:this.getColumns(),columnSearch:this.columnSearch,itemActions:this.itemActions,tableActions:this.tableActions,enabledActions:this.enabledActions,onCreate:this.showCreate,isLoading:r.isLoading||c,onRefresh:this.getClusters,justRefresh:!1})))}},{key:"clusters",get:function(){return this.clusterStore.list.data}},{key:"columnSearch",get:function(){return[{dataIndex:"name",title:t("NAME"),search:!0},{dataIndex:"alias",title:t("ALIAS"),search:!0}]}},{key:"enabledActions",get:function(){return"/access/workspaces"===this.props.location.pathname?globals.app.getActions(_({module:"workspaces"},this.props.match.params)):globals.app.getActions(_({module:"clusters"},this.props.match.params))}},{key:"itemActions",get:function(){var e=this.props,r=e.name,n=e.routing,a=e.trigger;return[{key:"edit",icon:"pen",text:t("EDIT_INFORMATION"),action:"edit",show:this.showAction,onClick:function(t){return a("resource.baseinfo.edit",{detail:t,success:n.query})}},{key:"delete",icon:"trash",text:t("DELETE"),action:"delete",show:this.showAction,onClick:function(t){return a("workspace.delete",{type:r,resource:t.name,detail:t,success:n.query})}}]}},{key:"tableActions",get:function(){var e=this,r=this.props,n=r.tableProps,a=r.trigger,o=r.name;return _(_({},n.tableActions),{},{selectActions:[{key:"delete",type:"danger",text:t("DELETE"),action:"delete",onClick:function(){return a("workspace.batch.delete",{type:o,rowKey:"name"})}}],getCheckboxProps:function(t){return{disabled:!e.showAction(t),name:t.name}}})}},{key:"workspaceConfig",get:function(){var t,e=this.props.match.path;return null!==(t=this.workspaceConfigs.find((function(t){return t.path===e})))&&void 0!==t?t:this.workspaceConfigs[0]}},{key:"tabs",get:function(){var t=this.workspaceConfig.path;return{options:this.workspaceConfigs.map((function(t){return{value:t.path,label:t.title}})),value:t,onChange:this.handleTabChange}}}]),n}(P.default.Component),(0,v.default)(f.prototype,"clusters",[A.computed],Object.getOwnPropertyDescriptor(f.prototype,"clusters"),f.prototype),l=f))||l;r.default=I},4390:function(t,e,r){"use strict";r(15);var n=r(20);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=n(r(4391)),o=n(r(4395)),s=[{path:"".concat("/access","/accounts/:name"),component:a.default},{path:"".concat("/access","/roles/:name"),component:o.default}];e.default=s},4391:function(e,r,n){"use strict";n(15);var a=n(20);n(5),n(84),n(16),n(4),n(23),n(24),n(17),n(85),n(62),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,n(45),n(5),n(84),n(28),n(42),n(16),n(4),n(23),n(57),n(24),n(17),n(85),n(62);var o,s=a(n(315)),c=a(n(36)),i=a(n(37)),u=a(n(55)),l=a(n(56)),f=a(n(51)),d=a(n(0)),p=n(14),h=n(239),m=a(n(26)),g=a(n(63)),y=n(186),v=n(52),b=n(791),E=a(n(322)),O=a(n(899)),S=a(n(4392));function w(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=(0,f.default)(t);if(e){var a=(0,f.default)(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return(0,l.default)(this,r)}}var k=(0,h.inject)("rootStore")(o=(0,h.observer)(o=(0,b.trigger)(o=function(e){(0,u.default)(n,e);var r=w(n);function n(){var e;(0,c.default)(this,n);for(var a=arguments.length,o=new Array(a),s=0;s0&&void 0!==arguments[0]?arguments[0]:{},r=e.store.detail.name;e.store.fetchLoginRecords(O({name:r},t))},e.handlePagination=function(t){e.fetchData({page:t})},e.getColumns=function(){return[{title:t("TIME"),dataIndex:"createTime",render:function(t){return(0,v.getLocalTime)(t).format("YYYY-MM-DD HH:mm:ss")}},{title:t("STATUS"),dataIndex:"spec.success",render:function(e){return d.default.createElement("div",{className:b.default.status},d.default.createElement(y.default,{type:e?"success":"failed"})," ",d.default.createElement("span",null,e?t("SUCCESSFUL"):t("FAILED")))}},{title:t("SOURCE_IP_ADDRESS"),dataIndex:"spec.sourceIP"},{title:t("REASON"),dataIndex:"spec.reason"}]},e}return(0,i.default)(n,[{key:"componentDidMount",value:function(){this.fetchData()}},{key:"renderContent",value:function(){var t=(0,p.toJS)(this.store.records).data;return d.default.createElement(m.Table,{className:b.default.table,dataSource:t,rowKey:"login_time",columns:this.getColumns()})}},{key:"render",value:function(){var e=this.store.records,r=e.page,n=e.total,a=e.limit;return d.default.createElement(g.default,{title:t("LOGIN_HISTORY"),empty:t("NO_LOGIN_HISTORY")},this.renderContent(),n>a&&d.default.createElement("div",{className:"margin-t12 text-right"},d.default.createElement(m.Pagination,{page:r,total:n,limit:a,onChange:this.handlePagination})))}},{key:"store",get:function(){return this.props.detailStore}}]),n}(d.default.Component))||o)||o;r.default=w},4394:function(t,e,r){t.exports={table:"_3ImdJfx5RMcfYKur4H9XOG",status:"_2Vvekd1YEzb-HeO8sQFK8a"}},4395:function(e,r,n){"use strict";n(15);var a=n(20);n(12),n(109),n(5),n(84),n(16),n(4),n(23),n(24),n(17),n(85),n(62),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,n(12),n(109),n(45),n(5),n(84),n(28),n(42),n(16),n(4),n(23),n(57),n(24),n(17),n(85),n(62);var o,s=a(n(315)),c=a(n(36)),i=a(n(37)),u=a(n(55)),l=a(n(56)),f=a(n(51)),d=a(n(0)),p=n(14),h=n(239),m=a(n(63)),g=n(186),y=n(52),v=n(791),b=a(n(441)),E=a(n(899)),O=a(n(4396));function S(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=(0,f.default)(t);if(e){var a=(0,f.default)(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return(0,l.default)(this,r)}}var w=(0,h.inject)("rootStore")(o=(0,h.observer)(o=(0,v.trigger)(o=function(e){(0,u.default)(n,e);var r=S(n);function n(){var e;(0,c.default)(this,n);for(var a=arguments.length,o=new Array(a),s=0;s0&&void 0!==i[0]?i[0]:{},n=r.silent,a=(0,u.default)(r,["silent"]),o=e.props.store,s=e.workspaceConfig.requestParams,n&&(o.list.silent=!0),t.next=6,o.fetchList(_(_({},a),s));case 6:o.list.silent=!1;case 7:case"end":return t.stop()}}),t)}))),e}return(0,h.default)(n,[{key:"componentDidMount",value:function(){this.getClusters()}},{key:"showAction",value:function(t){return globals.config.systemWorkspace!==t.name}},{key:"render",value:function(){var t=this.props,e=t.bannerProps,r=t.tableProps,n=this.workspaceConfig,a=n.title,o=n.description,c=this.clusterStore.list.isLoading;return P.default.createElement(w.ListPage,(0,s.default)({},this.props,{getData:this.getData}),P.default.createElement(O.default,(0,s.default)({},e,{title:a,description:o,tabs:this.tabs})),P.default.createElement(k.default,(0,s.default)({className:"table-2-6"},r,{columns:this.getColumns(),columnSearch:this.columnSearch,itemActions:this.itemActions,tableActions:this.tableActions,enabledActions:this.enabledActions,onCreate:this.showCreate,isLoading:r.isLoading||c,onRefresh:this.getClusters,justRefresh:!1})))}},{key:"clusters",get:function(){return this.clusterStore.list.data}},{key:"columnSearch",get:function(){return[{dataIndex:"name",title:t("NAME"),search:!0},{dataIndex:"alias",title:t("ALIAS"),search:!0}]}},{key:"enabledActions",get:function(){return"/access/workspaces"===this.props.location.pathname?globals.app.getActions(_({module:"workspaces"},this.props.match.params)):globals.app.getActions(_({module:"clusters"},this.props.match.params))}},{key:"itemActions",get:function(){var e=this.props,r=e.name,n=e.routing,a=e.trigger;return[{key:"edit",icon:"pen",text:t("EDIT_INFORMATION"),action:"edit",show:this.showAction,onClick:function(t){return a("resource.baseinfo.edit",{detail:t,success:n.query})}},{key:"delete",icon:"trash",text:t("DELETE"),action:"delete",show:this.showAction,onClick:function(t){return a("workspace.delete",{type:r,resource:t.name,detail:t,success:n.query})}}]}},{key:"tableActions",get:function(){var e=this,r=this.props,n=r.tableProps,a=r.trigger,o=r.name;return _(_({},n.tableActions),{},{selectActions:[{key:"delete",type:"danger",text:t("DELETE"),action:"delete",onClick:function(){return a("workspace.batch.delete",{type:o,rowKey:"name"})}}],getCheckboxProps:function(t){return{disabled:!e.showAction(t),name:t.name}}})}},{key:"workspaceConfig",get:function(){var t,e=this.props.match.path;return null!==(t=this.workspaceConfigs.find((function(t){return t.path===e})))&&void 0!==t?t:this.workspaceConfigs[0]}},{key:"tabs",get:function(){var t=this.workspaceConfig.path;return{options:this.workspaceConfigs.map((function(t){return{value:t.path,label:t.title}})),value:t,onChange:this.handleTabChange}}}]),n}(P.default.Component),(0,v.default)(f.prototype,"clusters",[A.computed],Object.getOwnPropertyDescriptor(f.prototype,"clusters"),f.prototype),l=f))||l;r.default=I},4391:function(t,e,r){"use strict";r(15);var n=r(20);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=n(r(4392)),o=n(r(4396)),s=[{path:"".concat("/access","/accounts/:name"),component:a.default},{path:"".concat("/access","/roles/:name"),component:o.default}];e.default=s},4392:function(e,r,n){"use strict";n(15);var a=n(20);n(5),n(84),n(16),n(4),n(23),n(24),n(17),n(85),n(62),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,n(45),n(5),n(84),n(28),n(42),n(16),n(4),n(23),n(57),n(24),n(17),n(85),n(62);var o,s=a(n(315)),c=a(n(36)),i=a(n(37)),u=a(n(55)),l=a(n(56)),f=a(n(51)),d=a(n(0)),p=n(14),h=n(239),m=a(n(26)),g=a(n(63)),y=n(186),v=n(52),b=n(791),E=a(n(322)),O=a(n(899)),S=a(n(4393));function w(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=(0,f.default)(t);if(e){var a=(0,f.default)(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return(0,l.default)(this,r)}}var k=(0,h.inject)("rootStore")(o=(0,h.observer)(o=(0,b.trigger)(o=function(e){(0,u.default)(n,e);var r=w(n);function n(){var e;(0,c.default)(this,n);for(var a=arguments.length,o=new Array(a),s=0;s0&&void 0!==arguments[0]?arguments[0]:{},r=e.store.detail.name;e.store.fetchLoginRecords(O({name:r},t))},e.handlePagination=function(t){e.fetchData({page:t})},e.getColumns=function(){return[{title:t("TIME"),dataIndex:"createTime",render:function(t){return(0,v.getLocalTime)(t).format("YYYY-MM-DD HH:mm:ss")}},{title:t("STATUS"),dataIndex:"spec.success",render:function(e){return d.default.createElement("div",{className:b.default.status},d.default.createElement(y.default,{type:e?"success":"failed"})," ",d.default.createElement("span",null,e?t("SUCCESSFUL"):t("FAILED")))}},{title:t("SOURCE_IP_ADDRESS"),dataIndex:"spec.sourceIP"},{title:t("REASON"),dataIndex:"spec.reason"}]},e}return(0,i.default)(n,[{key:"componentDidMount",value:function(){this.fetchData()}},{key:"renderContent",value:function(){var t=(0,p.toJS)(this.store.records).data;return d.default.createElement(m.Table,{className:b.default.table,dataSource:t,rowKey:"login_time",columns:this.getColumns()})}},{key:"render",value:function(){var e=this.store.records,r=e.page,n=e.total,a=e.limit;return d.default.createElement(g.default,{title:t("LOGIN_HISTORY"),empty:t("NO_LOGIN_HISTORY")},this.renderContent(),n>a&&d.default.createElement("div",{className:"margin-t12 text-right"},d.default.createElement(m.Pagination,{page:r,total:n,limit:a,onChange:this.handlePagination})))}},{key:"store",get:function(){return this.props.detailStore}}]),n}(d.default.Component))||o)||o;r.default=w},4395:function(t,e,r){t.exports={table:"_3ImdJfx5RMcfYKur4H9XOG",status:"_2Vvekd1YEzb-HeO8sQFK8a"}},4396:function(e,r,n){"use strict";n(15);var a=n(20);n(12),n(109),n(5),n(84),n(16),n(4),n(23),n(24),n(17),n(85),n(62),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,n(12),n(109),n(45),n(5),n(84),n(28),n(42),n(16),n(4),n(23),n(57),n(24),n(17),n(85),n(62);var o,s=a(n(315)),c=a(n(36)),i=a(n(37)),u=a(n(55)),l=a(n(56)),f=a(n(51)),d=a(n(0)),p=n(14),h=n(239),m=a(n(63)),g=n(186),y=n(52),v=n(791),b=a(n(441)),E=a(n(899)),O=a(n(4397));function S(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=(0,f.default)(t);if(e){var a=(0,f.default)(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return(0,l.default)(this,r)}}var w=(0,h.inject)("rootStore")(o=(0,h.observer)(o=(0,v.trigger)(o=function(e){(0,u.default)(n,e);var r=S(n);function n(){var e;(0,c.default)(this,n);for(var a=arguments.length,o=new Array(a),s=0;s",value:">"},{label:">=",value:">="},{label:"<",value:"<"},{label:"<=",value:"<="}];t.SEVERITY_LEVEL=[{type:"critical",prefixIcon:"information",color:{primary:"#fae7e5",secondary:"#ca2621"},label:"CRITICAL_ALERT",value:"critical"},{type:"error",prefixIcon:"information",color:{primary:"#fae7e5",secondary:"#f5a623"},label:"ERROR_ALERT",value:"error"},{className:"tag-ffd939",prefixIcon:"information",color:{primary:"#fae7e5",secondary:"#FFD939"},label:"WARNING_ALERT",value:"warning"},{type:"secondary",prefixIcon:"information",color:{primary:"#fae7e5",secondary:"#79879c"},label:"INFO_ALERT",value:"info"}];var c=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.comparator,a=void 0===t?{}:t,r=e.thresholds,n=void 0===r?{}:r;return[o({name:"comparator",options:u,placeholder:"CONDITION_OPERATOR"},a),o({type:"number",name:"thresholds",placeholder:"THRESHOLD"},n)]};t.getBaseRuleConfig=c;var s=c({thresholds:{min:0}});t.BASE_RULE_CONFIG=s;var i=c({thresholds:{min:0,max:100,unit:"%"}});t.PERCENT_RULE_CONFIG=i;var f=c({thresholds:{min:0,max:1e4,unit:"s"}});t.TIME_RULE_CONFIG=f;var d=c({thresholds:{unit:"core",min:0}});t.CPU_RULE_CONFIG=d;var p=c({thresholds:{unit:"Mi",min:0}});t.MEMORY_RULE_CONFIG=p;var m=c({thresholds:{unit:"GB",min:0}});t.DISK_RULE_CONFIG=m;var v=c({thresholds:{unit:"MB",min:0}});t.DISK_MB_RULE_CONFIG=v;var h=c({thresholds:{unit:"KB/s",min:0}});t.THROUGHPUT_RULE_CONFIG=h;var E=c({thresholds:{unit:"Mbps",min:0,converter:function(e){return e*(Math.pow(1024,2)/8)}}});t.BANDWIDTH_RULE_CONFIG=E;var y=c({thresholds:{unit:"",min:0}});t.ITEM_RULE_CONFIG=y;var g=c({thresholds:{unit:"byte",min:0}});t.BYTE_RULE_CONFIG=g;var b=c({comparator:{disabled:!0,value:"-",options:[{label:"- ",value:"-"}]},thresholds:{disabled:!0,value:"-",type:"text"}});t.disabledRuleConfig=b},,,,,function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(84),r(48),r(4),r(23),r(17),r(85),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(84),r(48),r(42),r(4),r(23),r(57),r(17),r(85);var l,o=n(r(36)),u=n(r(37)),c=n(r(55)),s=n(r(56)),i=n(r(51)),f=n(r(0)),d=r(186),p=n(r(800)),m=n(r(26)),v=n(r(74)),h=r(239),E=r(52),y=r(72),g=n(r(1107)),b=n(r(439));function S(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,i.default)(e);if(t){var n=(0,i.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,s.default)(this,a)}}var _=(0,h.observer)(l=function(e){(0,c.default)(r,e);var a=S(r);function r(){var e;(0,o.default)(this,r);for(var n=arguments.length,l=new Array(n),u=0;ur&&a(Number(u)-1)}},e}return(0,c.default)(a,[{key:"render",value:function(){var e=this.props,t=e.className,a=e.unit,r=e.showUnit,l=e.value,u=e.defaultValue,c=(e.onChange,e.integer,e.showFunc),s=e.style,i=void 0===s?{}:s,f=(0,o.default)(e,["className","unit","showUnit","value","defaultValue","onChange","integer","showFunc","style"]),p=(0,m.default)(l)?u:l;a&&(p=(0,v.default)(p,a));var g=b(b({type:"text"},f),{},{value:(0,m.default)(p)?"":p,onChange:this.handleChange});return a&&r||c?d.default.createElement("div",{className:(0,h.default)(t,y.default.withUnit),style:i},d.default.createElement(E.Input,g),d.default.createElement("div",{className:y.default.funcContainer},d.default.createElement("span",null,a),c&&d.default.createElement("div",{className:y.default.func},d.default.createElement(E.Icon,{name:"chevron-up",clickable:!0,onClick:this.add}),d.default.createElement(E.Icon,{name:"chevron-down",clickable:!0,onClick:this.subtract})))):d.default.createElement(E.Input,(0,n.default)({className:t,style:i},g))}}]),a}(p.default);t.default=_},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,a,r){"use strict";r(15);var n=r(20);Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var l=n(r(0)),o=r(186),u=n(r(787)),c=n(r(2241)),s=function(e){var a=e.onCancel,r=e.title,n=e.visible,s=e.isSubmitting,i=e.desc,f=e.icon;return l.default.createElement(u.default,{width:600,onOk:function(){e.onOk()},okText:t("OK"),onCancel:a,visible:n,isSubmitting:s,hideHeader:!0},l.default.createElement("div",{className:c.default.title},f?l.default.createElement(o.Icon,{name:f,size:20}):l.default.createElement(o.Icon,{name:"information",size:20,className:c.default.icon}),r),l.default.createElement("p",{className:c.default.desc},i))};a.default=s},function(e,t,a){"use strict";var r=a(20);a(12),a(11),a(6),a(9),a(13),a(10),a(7),Object.defineProperty(t,"__esModule",{value:!0}),t.ALL_QUERY_CONFIG=t.ALL_SUMMARY_CONFIG=t.ALL_MESSAGE_CONFIG=t.ALL_METRICS_CONFIG=t.RESOURCE_METRICS_CONFIG=void 0,a(12),a(11),a(6),a(28),a(34),a(15),a(9),a(13),a(10),a(4),a(7);var n,l=r(a(30)),o=a(815),u=r(a(2281)),c=r(a(2282)),s=r(a(2283)),i=r(a(2284)),f=r(a(2285)),d=r(a(2286)),p=r(a(2287)),m=r(a(2288));function v(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function h(e){for(var t=1;t=0?l[a]=e:l.push(e),(0,p.default)(r,"spec.rules",l),n.updateTLS(r),t&&n.updateOverrides(),n.closeModal()},n.handleDelete=function(e){var t=n.props.isFederated,a=n.fedFormTemplate,r=(0,d.default)(a,"spec.rules",[]);r.splice(e,1),(0,p.default)(a,"spec.rules",r),n.updateTLS(a),t&&n.updateOverrides(),n.closeModal()},n.rulesValidator=function(e,a,r){if((0,m.default)(a))return r({message:t("ROUTING_RULE_EMPTY_DESC")});r()},n.state={showRule:!1,selectRuleIndex:-1,gateway:{},oldTemplate:{},isLoading:!1,operation:""},n.secretStore=new O.default,n.serviceStore=new C.default,e.isFederated&&(n.secretStore=new T.default({module:n.secretStore.module}),n.serviceStore=new T.default({module:n.serviceStore.module})),n}return(0,u.default)(r,[{key:"componentDidMount",value:function(){this.secretStore.fetchList({namespace:this.namespace,cluster:this.cluster,limit:-1}),this.serviceStore.fetchList({namespace:this.namespace,cluster:this.cluster,limit:-1,labelSelector:(0,S.joinSelector)(this.props.selector)})}},{key:"updateTLS",value:function(e){var t=(0,d.default)(e,"spec.rules",[]).filter((function(e){return"https"===e.protocol&&e.secretName})).reduce((function(e,t){var a=t.secretName,r=t.host,n=t.clusters,l=e.find((function(e){return e.secretName===a}));return l?(l.hosts=l.hosts||[],-1===l.hosts.indexOf(r)&&l.hosts.push(r)):e.push({hosts:[r],secretName:a,clusters:n}),e}),[]);(0,p.default)(e,"spec.tls",t)}},{key:"updateOverrides",value:function(){var e=[],t=(0,d.default)(this.fedFormTemplate,"spec.rules",[]),a=(0,d.default)(this.fedFormTemplate,"spec.tls",[]);(0,d.default)(this.props.projectDetail,"clusters",[]).forEach((function(r){var n=function(e){return e.filter((function(e){return e.clusters.includes(r.name)})).map((function(e){return(0,v.default)(e,"clusters")}))};e.push({clusterName:r.name,clusterOverrides:[{path:"/spec/rules",value:n(t)},{path:"/spec/tls",value:n(a)}]})})),(0,p.default)(this.formTemplate,"spec.overrides",e)}},{key:"renderRuleForm",value:function(e){var t=this.props,a=t.isFederated,r=t.projectDetail,n=t.namespace,l=t.formTemplate,o=t.detail,u=(0,y.toJS)(this.services),c=(0,y.toJS)(this.secretStore.list).data,s=(0,d.default)(this.fedFormTemplate,"spec.rules[".concat(e,"]"),{});return E.default.createElement(D.default,{data:s,gateway:this.state.gateway,secrets:c,services:u,isFederated:a,projectDetail:r,cluster:this.cluster,detail:o,namespace:n,validData:(0,h.default)((null==l?void 0:l.ingress)||(null==l?void 0:l.Ingress)),onSave:this.handleRule,onCancel:this.closeEditModal})}},{key:"render",value:function(){var e=this.props,t=e.formRef,a=e.isFederated,r=e.projectDetail,n=this.state,l=n.showRule,o=n.selectRuleIndex,u=n.gateway,c=n.isLoading;if(l)return this.renderRuleForm(o);var s=(0,m.default)(u)&&!c;return E.default.createElement(b.Form,{data:this.fedFormTemplate,ref:t},E.default.createElement(b.Form.Item,{rules:[{validator:this.rulesValidator}]},E.default.createElement(R.default,{name:"spec.rules",onShow:this.showRule,onEdit:this.showEdit,onDelete:this.handleDelete,disabled:s,isFederated:a,projectDetail:r})))}},{key:"formTemplate",get:function(){var e=this.props,t=e.formTemplate,a=e.module;return(0,d.default)(t,_.MODULE_KIND_MAP[a],t)}},{key:"fedFormTemplate",get:function(){return this.props.isFederated?(0,d.default)(this.formTemplate,"spec.template"):this.formTemplate}},{key:"cluster",get:function(){return this.props.cluster}},{key:"namespace",get:function(){return(0,d.default)(this.formTemplate,"metadata.namespace")}},{key:"services",get:function(){return this.serviceStore.list.data}}]),r}(E.default.Component),(0,f.default)(l.prototype,"services",[y.computed],Object.getOwnPropertyDescriptor(l.prototype,"services"),l.prototype),l),I=(0,g.observer)(k);a.default=I;var P=k;a.Component=P},,,,,,,,,,,,,,function(e,t,a){"use strict";a(15),Object.defineProperty(t,"__esModule",{value:!0}),t.STORAGE_PLUGIN_ICONS=t.NETWORK_PLUGIN_ICONS=t.NEW_CLUSTER_SPEC=t.IMPORT_EDGE_CLUSTER_SPEC=t.CREATE_EDGE_CLUSTER_SPEC=t.IMPORT_CLUSTER_SPEC=t.DEFAULT_CLUSTER_CONFIG=void 0;t.DEFAULT_CLUSTER_CONFIG={global:{imageRegistry:"registry.cn-beijing.aliyuncs.com"}};t.IMPORT_CLUSTER_SPEC={apiVersion:"cluster.kubesphere.io/v1alpha1",kind:"Cluster",spec:{provider:"",connection:{type:"direct",kubeconfig:""},joinFederation:!0}};t.CREATE_EDGE_CLUSTER_SPEC={apiVersion:"infra.edgewize.io/v1alpha1",kind:"EdgeCluster",spec:{namespace:"",hostCluster:"",advertiseAddress:[],type:"auto",kubeConfig:""},metadata:{name:""}};t.IMPORT_EDGE_CLUSTER_SPEC={apiVersion:"infra.edgewize.io/v1alpha1",kind:"Cluster",spec:{provider:"edgewize",type:"auto",kubeconfig:"",joinFederation:!1}};t.NEW_CLUSTER_SPEC={apiVersion:"kubekey.kubesphere.io/v1alpha1",kind:"Cluster",metadata:{},spec:{hosts:[],roleGroups:{},controlPlaneEndpoint:{domain:"lb.kubesphere.local",address:"",port:6443},kubernetes:{clusterName:"cluster.local",maxPods:110,etcdBackupDir:"/var/backups/kube_etcd",etcdBackupPeriod:30,keepBackupNumber:5},network:{plugin:"calico",kubePodsCIDR:"10.233.64.0/18",kubeServiceCIDR:"10.233.0.0/18",ipipMode:"Always",vxlanMode:"Never",vethMTU:1440},registry:{privateRegistry:""},addons:[{},{}]}};t.NETWORK_PLUGIN_ICONS={calico:"",flannel:"",cilium:""};t.STORAGE_PLUGIN_ICONS={nfs:"vsan"}},,,function(e,t,a){"use strict";a(15);var r=a(20);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.preview,a=e.sidebar,r=e.main;return n.default.createElement("div",{className:l.default.wrapper},n.default.createElement("div",{className:l.default.preview},t," "),n.default.createElement("div",{className:l.default.form},n.default.createElement("div",{className:l.default.sidebar},a),n.default.createElement("div",{className:l.default.resource},r)))};var n=r(a(0)),l=r(a(2828))},function(e,t,a){"use strict";a(15);var r=a(20);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"GraphTextInput",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(t,"ThemeSelector",{enumerable:!0,get:function(){return l.default}});var n=r(a(2829)),l=r(a(2831))},,,,,,,,,,,,,,,function(e,t,a){"use strict";var r=a(20);a(12),a(5),a(11),a(6),a(29),a(73),a(18),a(87),a(98),a(9),a(13),a(10),a(4),a(22),a(24),a(38),a(64),a(7),a(32),a(110),Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.MONITOR_PANEL_TYPE=void 0;var n=r(a(43));a(41);var l=r(a(44)),o=r(a(30)),u=r(a(65)),c=r(a(36)),s=r(a(37)),i=r(a(49));r(a(66));a(12),a(249),a(45),a(5),a(11),a(6),a(29),a(73),a(18),a(28),a(87),a(191),a(159),a(34),a(15),a(98),a(9),a(13),a(10),a(4),a(319),a(22),a(24),a(38),a(64),a(7),a(32),a(110);var f,d,p,m,v,h,E=r(a(96)),y=r(a(58)),g=a(14),b=r(a(26)),S=r(a(195));function _(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function O(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:a.template;a.isObserving||(a.isObserving=!0,a.pollingController=R((function(){var t=e.getTimeRange(),r=t.from,n=t.to;a.fetchMetrics({start:r.valueOf(),end:n.valueOf()})}),{interval:e.refreshMs}),a.disposer=(0,g.reaction)((function(){return{time:e.timeRange,refresh:e.refreshMs,exprs:a.config.targets.map((function(e){return e.expr})),steps:a.config.targets.map((function(e){return e.step}))}}),(function(t){var r=t.refresh;a.metrics=a.metrics.map((function(e){return O(O({},e),{},{values:[]})})),a.pollingController&&a.pollingController.stopPolling(),a.pollingController=R((function(){var t=e.getTimeRange(),r=t.from,n=t.to;a.fetchMetrics({start:r.valueOf(),end:n.valueOf()})}),{interval:r})})))},(0,u.default)(this,"fetchMetrics",h,this),this.fetchMetric=function(){var e=(0,l.default)(n.default.mark((function e(t){var r,l,o,u,c,s,i;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.expr,l=t.step,o=t.start,u=t.end,c=t.cluster,s=t.namespace,r){e.next=3;break}return e.abrupt("return",[]);case 3:return e.next=5,request.get("".concat(a.apiVersion,"/targets/query"),{cluster:c,namespace:s,expr:r,step:l,start:o,end:u},null,(function(e,t){throw new Error(t.message)}));case 5:if(e.t0=e.sent,e.t0){e.next=8;break}e.t0={};case 8:return i=e.t0,e.abrupt("return",(0,b.default)(i,"data.result",[]));case 10:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),this.stopMonitoring=function(){a.isObserving=!1,a.pollingController&&a.pollingController.stopPolling(),a.disposer&&a.disposer()},this.belong=function(e){return a.belongTo=e,a},this.config=t,this.requestID=0}return(0,s.default)(e,[{key:"getPath",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.cluster,a=e.namespace,r="";return t&&(r+="/clusters/".concat(t)),a&&(r+="/namespaces/".concat(a)),r}},{key:"apiVersion",get:function(){return"kapis/monitoring.kubesphere.io/v1beta1"}},{key:"type",get:function(){return this.config.type}},{key:"targets",get:function(){return this.config.targets||[]}},{key:"id",get:function(){return this.config.id}}]),(0,s.default)(e,[{key:"clearMonitorMetrics",value:function(){this.metrics=[]}},{key:"clone",value:function(){return new this.constructor((0,g.toJS)(this.config))}},{key:"formattedMetrics",get:function(){return this.metrics.map((function(e){var t=e.target,a=e.metric,r=e.responseMetricID,n=(0,y.default)(e,["target","metric","responseMetricID"]),l=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if((0,S.default)(e))return e.replace(/\{\{(.*?)\}\}/g,(function(e,a){return t[a]}))}(t.legendFormat,a)||r;return O(O({},n),{},{name:l})}))}}]),e}(),d=(0,i.default)(f.prototype,"errorMessage",[g.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),p=(0,i.default)(f.prototype,"config",[g.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),m=(0,i.default)(f.prototype,"metrics",[g.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),v=(0,i.default)(f.prototype,"timeRange",[g.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{start:0,end:0}}}),(0,i.default)(f.prototype,"type",[g.computed],Object.getOwnPropertyDescriptor(f.prototype,"type"),f.prototype),(0,i.default)(f.prototype,"targets",[g.computed],Object.getOwnPropertyDescriptor(f.prototype,"targets"),f.prototype),(0,i.default)(f.prototype,"clearMonitorMetrics",[g.action],Object.getOwnPropertyDescriptor(f.prototype,"clearMonitorMetrics"),f.prototype),h=(0,i.default)(f.prototype,"fetchMetrics",[g.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(){var t=(0,l.default)(n.default.mark((function t(a){var r,o,u,c,s,i,f,d,p;return n.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=a.start,o=a.end,u=e.config,c=u.targets,s=void 0===c?[]:c,i=u.cluster,f=u.namespace,e.timeRange={start:r,end:o},d={ID:++e.requestID,errorMessage:"",metrics:[]},t.prev=4,t.next=7,Promise.all(s.map(function(){var t=(0,l.default)(n.default.mark((function t(a){var l,u,c;return n.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return l=a.expr,u=a.step,t.next=3,e.fetchMetric({cluster:i,namespace:f,expr:l,step:u,start:parseInt(r/1e3,10),end:parseInt(o/1e3,10)});case 3:return c=t.sent,t.abrupt("return",{data:c,target:a});case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()));case 7:p=t.sent,d.metrics=p.reduce((function(e,t){var a=t.data,r=void 0===a?[]:a,n=t.target,l=void 0===n?{}:n,o=l.expr,u=l.refId,c=r.map((function(e){var t=e.values,a=void 0===t?[]:t,r=e.metric,n=void 0===r?{}:r,c=T(n)||o,s="".concat(u,".").concat(c);return{values:a,metric:n,target:l,id:s,responseMetricID:c}}));return e.concat(c)}),[]),t.next=14;break;case 11:t.prev=11,t.t0=t.catch(4),d.errorMessage=t.t0.message;case 14:return t.prev=14,d.ID===e.requestID&&(e.metrics=d.metrics,e.errorMessage=d.errorMessage),t.finish(14);case 17:case"end":return t.stop()}}),t,null,[[4,11,14,17]])})));return function(e){return t.apply(this,arguments)}}()}}),(0,i.default)(f.prototype,"formattedMetrics",[g.computed],Object.getOwnPropertyDescriptor(f.prototype,"formattedMetrics"),f.prototype),f);function T(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.__name__,a=(0,y.default)(e,["__name__"]);if(!t)return JSON.stringify(a||{});var r=Object.entries(a||{}).map((function(e){var t=(0,E.default)(e,2),a=t[0],r=t[1];return"".concat(a,'="').concat(r,'"')})),n=r.length?"{".concat(r.join(","),"}"):"";return"".concat(t).concat(n)}function R(e,t){var a={timer:null,stopPolling:function(){clearTimeout(a.timer)}};e();return function r(){t.interval&&(a.timer=setTimeout((function(){e(),r()}),t.interval))}(),a}t.default=C},,,,,function(e,t,a){e.exports={wrapper:"_2txp4-htvICs4f6c3rqsX6",contentWrapper:"_1ccZoq2QaWbCEWk-OZo1mE",hidden:"_1ZsdcL3CHNMzvcbO79RwNl"}},function(e,t,a){e.exports={wrapper:"wXHKYRcPKuXFRfyupNjOu",content:"_1GXH8tzUyU5FHWVbgQC2yC",search:"fIGMiznH-KyaGoj2YiJny",cardList:"_1CuokVurLCjDnq4oP4oGRR",emptyText:"_28JJz3Xe4z4rL7-NGN6z_5",emptyTipIcon:"pGMtYHHqbFWHUy30mrUf0",action:"K0VfnE3ZVeXqSI5P0ICCJ",card:"Fe47hou2kTN8vkdsVYJKD"}},function(e,a,r){"use strict";r(15);var n=r(20);r(11),r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(11),r(42),r(4),r(23),r(57),r(17);var l=n(r(36)),o=n(r(37)),u=n(r(55)),c=n(r(56)),s=n(r(51)),i=n(r(0)),f=n(r(1)),d=r(14),p=n(r(830)),m=r(186),v=n(r(787)),h=r(72);function E(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,s.default)(e);if(t){var n=(0,s.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,c.default)(this,a)}}var y=function(e){(0,u.default)(r,e);var a=E(r);function r(e){var t;return(0,l.default)(this,r),(t=a.call(this,e)).handleOk=function(e){var a=t.props,r=a.onOk,n=a.store,l=a.detail,o=n.list,u=(0,d.toJS)(o.selectedRowKeys),c=u?u.filter((function(e){return e!==l.uid})):"";r(e),u&&o.setSelectRowKeys(c)},t.state={formData:(0,p.default)((0,d.toJS)(e.detail._originData||e.detail))},t}return(0,o.default)(r,[{key:"componentDidUpdate",value:function(e){this.props.visible&&this.props.visible!==e.visible&&this.setState({formData:(0,p.default)((0,d.toJS)(this.props.detail._originData||this.props.detail))})}},{key:"render",value:function(){var e=this.props,a=e.visible,r=e.isSubmitting,n=e.onCancel,l=e.hideAlias,o=this.state.formData;return i.default.createElement(v.default.Form,{data:o,width:691,title:t("EDIT_INFORMATION"),icon:"pen",onOk:this.handleOk,okText:t("OK"),onCancel:n,visible:a,isSubmitting:r},i.default.createElement(m.Form.Item,{label:t("NAME")},i.default.createElement(m.Input,{name:"metadata.name",disabled:!0})),!l&&i.default.createElement(m.Form.Item,{label:t("ALIAS"),desc:t("ALIAS_NAME_DESC"),rules:[{pattern:h.PATTERN_ALIAS_NAME,message:t("INVALID_ALIAS_NAME_DESC")}]},i.default.createElement(m.Input,{name:"metadata.annotations['kubesphere.io/alias-name']",maxLength:63})),i.default.createElement(m.Form.Item,{label:t("DESCRIPTION"),desc:t("DESCRIPTION_DESC")},i.default.createElement(m.TextArea,{name:"metadata.annotations['kubesphere.io/description']",maxLength:256})))}}]),r}(i.default.Component);a.default=y,y.propTypes={detail:f.default.object,visible:f.default.bool,onOk:f.default.func,onCancel:f.default.func,isSubmitting:f.default.bool},y.defaultProps={visible:!1,onOk:function(){},onCancel:function(){},isSubmitting:!1}},,,,,,,,,,,,function(e,t,a){e.exports={body:"_1dBSaRblPfBn-mqT_KKE3S",formItem:"iH3qOy_HN_GKp2DHh14E",urlInput:"_2B1OdPUOkMfYykX5QmiCr5",label:"_2qOEiddhpXtxUvsrjH18Jw",desc:"L_NsnJWzaluWmh8TdlMsc",field:"_7hAGFIYgADWKFn3WK0tWD",fieldInput:"_2aknEdLUnkxDuraw2Zn01J",protocol:"_2tM1lMWiP_tnelAVYCnDOu",url:"_3tjuojCcgCMNlIeVz-XkLP",validated:"_1laKRGeL96H0Mm_frK-cu8",validStatus:"d9NK4MMS7VQlOHlThM-P1",access:"_3qhTvuFZpMBckEcXWQT5bi",accessItem:"_22lD7uAdTjGbgCQUZCuEzO",verifyBtn:"yAN3vK16N0HKawleIBS-g",timeInput:"xOQCUWADs79nVpq1YymkB",input:"_2gp7EWD023VrljWknkh8ML",select:"_2XaWi99BOi61P7Hqiyr7ic"}},,function(e,a,r){"use strict";var n=r(20);r(12),r(109),r(11),r(6),r(9),r(13),r(10),r(4),r(23),r(17),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(109),r(45),r(11),r(6),r(28),r(42),r(34),r(15),r(9),r(13),r(10),r(4),r(23),r(57),r(17),r(7);var l=n(r(315)),o=n(r(58)),u=n(r(36)),c=n(r(37)),s=n(r(55)),i=n(r(56)),f=n(r(51)),d=n(r(30)),p=n(r(26)),m=n(r(189)),v=n(r(158)),h=n(r(194)),E=n(r(0)),y=n(r(106)),g=n(r(1264)),b=r(239),S=n(r(1)),_=n(r(3)),O=r(186),C=n(r(836)),T=n(r(790)),R=n(r(3224));function D(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,f.default)(e);if(t){var n=(0,f.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,i.default)(this,a)}}function N(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function k(e){for(var t=1;t0&&(e=(0,f.default)(t,(function(e){return e.key.split(".")[0]}))),w(e)}),[r]);var M=(0,c.useCallback)((function(e){var t={"requests.storage":(0,i.default)(e,["requests.storage"],""),persistentvolumeclaims:(0,i.default)(e,"persistentvolumeclaims","")};T.onChange({actionType:"add",data:m({},t)})})),L=(0,c.useCallback)((function(e){T.onChange(e)}));return c.default.createElement(d.default,{namespace:T.namespace,allStorageClass:n,isWorkspace:(0,i.default)(T,"isWorkspace",!0),availableQuota:T.availableQuota,wsAvailableRequest:null!==(t=T.wsAvailableRequest)&&void 0!==t?t:{},relatedStoragesLimit:null!==(a=T.relatedStoragesLimit)&&void 0!==a?a:[],storageLimitSpec:N,namespaceStorageClass:A,handleWsLimitChange:M,handleRelateVolumeChange:L,renderOutOfLimitTip:p,totalStorageError:h,totalVolumeClaimsError:y,currentRelatedStorageTotal:b,currentRelatedVolumeClaimsTotal:_,addedItems:C})};t.default=v},,function(e,t,a){"use strict";a(15);var r=a(157),n=a(20);a(4),a(23),a(17),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(45),a(42),a(4),a(22),a(23),a(57),a(17);var l=n(a(315)),o=n(a(58)),u=n(a(43));a(41);var c=n(a(44)),s=n(a(36)),i=n(a(37)),f=n(a(55)),d=n(a(56)),p=n(a(51)),m=r(a(0)),v=a(186),h=a(903),E=n(a(1751)),y=n(a(3422));function g(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,p.default)(e);if(t){var n=(0,p.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,d.default)(this,a)}}var b=function(e){(0,f.default)(a,e);var t=g(a);function a(e){var r;return(0,s.default)(this,a),(r=t.call(this,e)).icon="pen",r.handleOk=function(){var e=r.props,t=e.formTemplate,a=e.onOk;r.formRef.current.validate((0,c.default)(u.default.mark((function e(){return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:a(t);case 1:case"end":return e.stop()}}),e)}))))},r.component=E.default,r.formRef=m.createRef(),r}return(0,i.default)(a,[{key:"render",value:function(){var e=this.props,t=e.title,a=e.formTemplate,r=e.store,n=(0,o.default)(e,["title","formTemplate","store"]),u=this.component;return m.createElement(h.Modal,(0,l.default)({width:960},n,{onOk:this.handleOk,title:m.createElement("div",{className:y.default.title},m.createElement(v.Icon,{name:this.icon,className:"margin-r8"}),m.createElement("div",null,t))}),m.createElement("div",{className:y.default.wrapper},m.createElement(u,{formTemplate:a,formRef:this.formRef,isEdit:!0,store:r})))}}]),a}(m.Component);t.default=b},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,a,r){"use strict";r(15);var n=r(20);r(11),r(18),r(48),r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(11),r(18),r(48),r(42),r(4),r(23),r(57),r(24),r(193),r(17);var l=n(r(36)),o=n(r(37)),u=n(r(55)),c=n(r(56)),s=n(r(51)),i=r(186),f=n(r(787)),d=r(832),p=n(r(830)),m=r(14),v=n(r(1)),h=n(r(0)),E=r(72),y=n(r(1081)),g=n(r(2123));function b(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,s.default)(e);if(t){var n=(0,s.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,c.default)(this,a)}}var S=function(e){(0,u.default)(r,e);var a=b(r);function r(e){var n;return(0,l.default)(this,r),(n=a.call(this,e)).handleOk=function(e){var t=n.props,a=t.onOk,r=t.store,l=t.detail,o=r.list,u=(0,m.toJS)(o.selectedRowKeys),c=u?u.filter((function(e){return e!==l.uid})):"";a(e),u&&o.setSelectRowKeys(c)},n.timeValidator=function(e,a,r){var n=a.slice(0,-1);if(!/^[0-9]*$/.test(n))return r({message:t("INVALID_TIME_DESC")});r()},n.state={formData:(0,p.default)((0,m.toJS)(e.detail._originData||e.detail))},n}return(0,o.default)(r,[{key:"componentDidUpdate",value:function(e){this.props.visible&&this.props.visible!==e.visible&&this.setState({formData:(0,p.default)((0,m.toJS)(this.props.detail._originData||this.props.detail))})}},{key:"render",value:function(){var e=this.props,a=e.visible,r=e.isSubmitting,n=e.onCancel,l=this.state.formData;return h.default.createElement(f.default.Form,{data:l,width:691,title:t("EDIT_INFORMATION"),icon:"pen",onOk:this.handleOk,okText:t("OK"),onCancel:n,visible:a,isSubmitting:r},h.default.createElement(i.Form.Item,{label:t("NAME")},h.default.createElement(i.Input,{name:"metadata.name",disabled:!0})),h.default.createElement(i.Form.Item,{label:t("ALIAS"),desc:t("ALIAS_NAME_DESC"),rules:[{pattern:E.PATTERN_ALIAS_NAME,message:t("INVALID_ALIAS_NAME_DESC")}]},h.default.createElement(i.Input,{name:"metadata.annotations['kubesphere.io/alias-name']",maxLength:63})),h.default.createElement(i.Form.Item,{label:t("CHECK_INTERVAL"),desc:t("ALERTING_POLICY_CHECK_INTERVAL_DESC"),rules:[{validator:this.timeValidator}]},h.default.createElement(y.default,{className:g.default.duration,name:"spec.interval",unitOptions:this.durationUnitOptions,defaultValue:this.durationUnitOptions[1].value})),h.default.createElement(i.Form.Item,{label:t("DESCRIPTION"),desc:t("DESCRIPTION_DESC")},h.default.createElement(i.TextArea,{name:"metadata.annotations['kubesphere.io/description']",maxLength:256})))}},{key:"durationUnitOptions",get:function(){return[{label:t("SECONDS"),value:"s"},{label:t("MINUTES"),value:"m"},{label:t("HOURS"),value:"h"}]}},{key:"severities",get:function(){return d.SEVERITY_LEVEL.map((function(e){return{label:t(e.label),value:e.value,level:e}}))}}]),r}(h.default.Component);a.default=S,S.propTypes={detail:v.default.object,visible:v.default.bool,onOk:v.default.func,onCancel:v.default.func,isSubmitting:v.default.bool},S.defaultProps={visible:!1,onOk:function(){},onCancel:function(){},isSubmitting:!1}},function(e,a,r){"use strict";var n=r(20);r(12),r(5),r(11),r(6),r(18),r(16),r(27),r(190),r(9),r(13),r(10),r(4),r(316),r(23),r(17),r(7),r(110),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(45),r(5),r(11),r(6),r(18),r(28),r(191),r(42),r(16),r(159),r(27),r(190),r(34),r(15),r(9),r(13),r(10),r(4),r(316),r(436),r(22),r(23),r(57),r(17),r(7),r(110);var l=n(r(43)),o=n(r(30));r(41);var u=n(r(44)),c=n(r(36)),s=n(r(37)),i=n(r(55)),f=n(r(56)),d=n(r(51)),p=n(r(0)),m=r(186),v=n(r(787)),h=n(r(26)),E=n(r(189)),y=n(r(63)),g=r(798),b=n(r(949)),S=r(845),_=r(923),O=r(794),C=n(r(2240));function T(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function R(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:[];return e.map((function(e){var a=e.prefixIcon,r=e.color,n=e.type,l=e.label,o=e.value,u=e.disabled,c={label:t(l,{value:o}),value:o};return a&&(c.label=m.default.createElement("div",{className:(0,h.default)(D.default.optionLabel,D.default[n])},m.default.createElement(_.Icon,{name:a,size:20,color:r}),c.label)),u&&(c.disabled=u),c}))},n.handleMetricTypeChange=function(e){var t=e.split(":")[0],a=e.split(":")[1],r=n.state,l=r.comparator,o=r.severity,u=r.duration;n.setState({metricType:e,nodeResourceType:t,monitorType:a,thresholds:""},(function(){n.props.onChange({names:n.props.value.names,kind:n.props.value.kind,metricThreshold:(0,c.default)({},t,(0,c.default)({},a,"")),comparator:l,for:u,severity:o})}))},n.handleItemChange=function(e,t){return function(a,r){var l=n.props.onChange,o=(0,E.default)(r)||!r?a:r;"thresholds"===e&&(o=""!==(o=String(o).replace(/([a-zA-Z%/])+$/g,""))?(0,S.default)(o,".")?o:t(Number(o)):""),n.setState((0,c.default)({},e,o),(function(){var t=n.state,a=t.nodeResourceType,r=t.monitorType,u=t.comparator,s=t.duration,i=t.severity,f=(0,y.default)(n.props.value,"metricThreshold.".concat(a,".").concat(r));l({names:n.props.value.names,kind:n.props.value.kind,metricThreshold:(0,c.default)({},a,(0,c.default)({},r,"comparator"===e?f:o)),comparator:"comparator"===e?o:u,for:s,severity:i})}))}},n.handleDurationChange=function(e){var t=n.state,a=t.severity,r=t.nodeResourceType,l=t.monitorType,o=t.comparator,u=(0,y.default)(n.props.value,"metricThreshold.".concat(r,".").concat(l));n.setState({duration:e},(function(){n.props.onChange({names:n.props.value.names,kind:n.props.value.kind,metricThreshold:(0,c.default)({},r,(0,c.default)({},l,u)),for:e,severity:a,comparator:o})}))},n.handleSeverityChange=function(e){var t=n.state,a=t.duration,r=t.nodeResourceType,l=t.monitorType,o=t.comparator,u=(0,y.default)(n.props.value,"metricThreshold.".concat(r,".").concat(l));n.setState({severity:e},(function(){n.props.onChange({names:n.props.value.names,kind:n.props.value.kind,metricThreshold:(0,c.default)({},r,(0,c.default)({},l,u)),for:a,comparator:o,severity:e})}))},n.renderConfigItem=function(){var e,a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=n.props.value,l=n.state,c=l.nodeResourceType,s=l.monitorType,i=a.type,f=a.name,d=a.placeholder,p=a.options,v=void 0===p?[]:p,h=a.converter,E=a.reverser,g=(0,u.default)(a,["type","name","placeholder","options","converter","reverser"]);if(E){var b=(0,y.default)(r,"metricThreshold.".concat(c,".").concat(s),"");e=""!==b?(0,S.default)(b,".")?b:E(Number(b)):""}var C={key:f,className:D.default[f],placeholder:t(d),value:"comparator"===f?n.state.comparator:e,onChange:n.handleItemChange(f,h)};switch(i){default:case"select":var T=n.getSelectOptions(v);return m.default.createElement(_.Select,(0,o.default)({options:T},C,g));case"number":return m.default.createElement(O.default,(0,o.default)({showUnit:!0},C,g))}},n.state=k({metricType:n.getMetricType(e)},n.getStateFromProps(e)),n.metricOps=n.getSelectOptions(n.metricConfig),n}return(0,i.default)(r,[{key:"render",value:function(){var e=this.state,a=e.metricType,r=e.duration,n=e.severity,l=this.ruleConfig;return m.default.createElement("div",{className:D.default.inputs},m.default.createElement("div",{className:D.default.type},m.default.createElement(_.Select,{options:this.metricOps,value:a,onChange:this.handleMetricTypeChange})),l.map(this.renderConfigItem),m.default.createElement(_.Select,{className:D.default.normalSelect,value:r,options:P,onChange:this.handleDurationChange,placeholder:t("DURATION")}),m.default.createElement(T.default,{className:D.default.normalSelect,value:n,options:A,onChange:this.handleSeverityChange,placeholder:t("SEVERITY")}))}},{key:"resourceMetricsConfig",get:function(){var e=this.props.resourceType;return(0,g.default)(C.RESOURCE_METRICS_CONFIG[e||"node"])||{}}},{key:"metricConfig",get:function(){var e=this.props,t=e.isEdge,a=e.resourceType,r=this.resourceMetricsConfig;return Object.entries(r).map((function(e){var t=(0,l.default)(e,2);return k({value:t[0]},t[1])})).filter((function(e){var r=e.value;return!t||"node"!==a||!r.startsWith("disk:")}))}},{key:"selectMetricConfig",get:function(){var e=this.state.metricType;return this.metricConfig.find((function(t){return t.value===e}))}},{key:"ruleConfig",get:function(){return(0,y.default)(this.selectMetricConfig,"ruleConfig")||[]}}]),r}(m.default.Component);w.propTypes={metricConfig:v.default.array,value:v.default.object,isEdge:v.default.bool,onChange:v.default.func},w.defaultProps={metricConfig:[],value:{},onChange:function(){}};var M=w;a.default=M},function(e,a,r){"use strict";var n=r(157),l=r(20);r(12),r(5),r(11),r(6),r(9),r(13),r(10),r(4),r(23),r(17),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(45),r(5),r(11),r(6),r(28),r(42),r(34),r(15),r(9),r(13),r(10),r(4),r(23),r(57),r(17),r(7);var o=l(r(30)),u=l(r(36)),c=l(r(37)),s=l(r(55)),i=l(r(56)),f=l(r(51)),d=n(r(0)),p=l(r(241)),m=r(186),v=l(r(2254));function h(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function E(e){for(var t=1;t0){var a=e.store.list.data.find((function(e){return e.name===t.name}))||e.store.list.data[0],r=(0,E.toJS)(a._originData),n=(0,v.default)(r,"spec.endpoints",[]);n.length>0&&(n.forEach((function(e){e.tlsConfig?e.authType="tlsConfig":e.bearerTokenSecret?e.authType="bearerTokenSecret":e.basicAuth?e.authType="basicAuth":e.authType=""})),r.spec.interval=(0,v.default)(n,"[0].interval"),r.spec.scrapeTimeout=(0,v.default)(n,"[0].scrapeTimeout")),e.setState({formTemplate:r})}},e.handleOk=function(t){var a=e.props,r=a.onOk,n=a.detail,l=(0,v.default)(t,"spec.interval"),o=(0,v.default)(t,"spec.scrapeTimeout");(0,v.default)(t,"spec.endpoints",[]).forEach((function(e){e.interval=l,e.scrapeTimeout=o})),(0,h.default)(t,"spec.selector.matchLabels",n.labels),(0,h.default)(t,"metadata.labels",k(k({},n.labels||{}),{},{"app.kubernetes.io/vendor":"kubesphere"})),r(t)},e.checkItemValid=function(e){return e.port&&e.path&&e.scheme},e}return(0,s.default)(r,[{key:"componentDidMount",value:function(){var e=this,t=this.props,a=t.cluster,r=t.namespace,n=t.detail;this.store.fetchListByK8s({cluster:a,namespace:r,labelSelector:(0,O.joinSelector)(n.labels)}).then((function(){return e.updateFormTemplate()})),this.secretStore.fetchListByK8s({cluster:a,namespace:r})}},{key:"render",value:function(){var e=this.props,a=e.visible,r=e.workspace,n=e.namespace,l=e.cluster,o=e.detail,u=e.isSubmitting,c=e.onCancel,s=this.state.formTemplate;return p.default.createElement(b.default.Form,{icon:"linechart",title:t("EDIT_MONITORING_EXPORTER"),width:960,data:s,visible:a,onOk:this.handleOk,onCancel:c,isSubmitting:u},p.default.createElement("div",{className:D.default.wrapper},p.default.createElement(g.Form.Item,{label:t("PATH_PL")},p.default.createElement(S.default,{className:D.default.endpoints,name:"spec.endpoints",defaultValue:this.defaultEndpoints,checkItemValid:this.checkItemValid,itemType:"object",addText:t("ADD")},p.default.createElement(R.default,{detail:o,secretStore:this.secretStore,cluster:l,namespace:n,workspace:r}))),p.default.createElement("div",{className:D.default.timeout},p.default.createElement(g.Columns,null,p.default.createElement(g.Column,null,p.default.createElement(g.Form.Item,{label:t("COLLECTION_INTERVAL_MIN"),desc:t("COLLECTION_INTERVAL_MIN_DESC")},p.default.createElement(_.default,{name:"spec.interval",defaultValue:"1m",min:0,unit:"m",integer:!0}))),p.default.createElement(g.Column,null,p.default.createElement(g.Form.Item,{label:t("TIMEOUT_PERIOD_S"),desc:t("COLLECTION_TIMEOUT_DESC")},p.default.createElement(_.default,{name:"spec.scrapeTimeout",defaultValue:"10s",min:0,unit:"s",integer:!0})))))))}},{key:"defaultEndpoints",get:function(){return[{scheme:"http",path:"/metrics",authType:""}]}}]),r}(p.Component))||o;a.default=P},,function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(18),r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(18),r(42),r(4),r(23),r(57),r(17);var l=n(r(36)),o=n(r(37)),u=n(r(55)),c=n(r(56)),s=n(r(51)),i=n(r(0)),f=n(r(1)),d=r(186),p=n(r(3)),m=n(r(455)),v=r(433),h=n(r(2687)),E=r(244),y=n(r(2690));function g(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,s.default)(e);if(t){var n=(0,s.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,c.default)(this,a)}}var b=function(e){(0,u.default)(r,e);var a=g(r);function r(){return(0,l.default)(this,r),a.apply(this,arguments)}return(0,o.default)(r,[{key:"renderApps",value:function(){var e=this.props,a=e.workspace,r=e.cluster,n=e.namespace,l=e.apps,o=e.iconName,u=e.showCreateVendor,c=e.isLoading,s=e.itemCls,f=e.disableLink,d=e.onClickAppItem;if(0===l.length&&!c)return i.default.createElement("div",{className:y.default.noApp},i.default.createElement("img",{src:"/assets/empty-card.svg",alt:""}),i.default.createElement("p",null,t("NO_RESOURCE_FOUND")));var m=(0,E.stringify)({workspace:a,cluster:r,namespace:n});return i.default.createElement(i.default.Fragment,null,l.map((function(e){var t="/apps/".concat(e.app_id,"?").concat(m);return f&&d?i.default.createElement("div",{key:e.app_id,className:(0,p.default)(y.default.appItem,s),onClick:function(){return d(e)}},i.default.createElement(h.default,{app:e,showCreateVendor:u,iconName:o})):i.default.createElement(v.Link,{key:e.app_id,className:(0,p.default)(y.default.appItem,s),to:t},i.default.createElement(h.default,{app:e,showCreateVendor:u,iconName:o}))})))}},{key:"render",value:function(){var e=this.props,a=e.apps,r=e.isLoading,n=e.total,l=e.onFetchMore,o=e.title,u=e.className,c=e.appRef;return i.default.createElement("div",{className:(0,p.default)(y.default.appList,u),ref:c},o&&i.default.createElement("p",{className:"apps-title"},o),this.renderApps(),r&&i.default.createElement("div",{className:y.default.loading},i.default.createElement(d.Loading,null)),!r&&a.length0&&void 0!==arguments[0]?arguments[0]:{};return o.default.createElement(c.Button,(0,n.default)({className:(0,u.default)(s.default.wrapper,(0,l.default)({},s.default.danger,"danger"===e.type))},e))};var n=r(a(315)),l=r(a(30)),o=r(a(0)),u=r(a(3)),c=a(186),s=r(a(2806))},function(e,t,a){"use strict";a(15),Object.defineProperty(t,"__esModule",{value:!0}),t.recentTimeRange=t.refreshInterval=void 0;t.refreshInterval=["","3s","5s","10s","30s"];t.recentTimeRange=["30m","1h","5h","12h","24h","7d"]},,function(e,t,a){"use strict";a(15);var r=a(20);a(5),a(827),a(18),a(87),a(16),a(27),a(4),a(23),a(17),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(a(246)),l=r(a(96)),o=r(a(36)),u=r(a(37)),c=r(a(55)),s=r(a(56)),i=r(a(51)),f=r(a(30));a(45),a(5),a(827),a(18),a(87),a(442),a(42),a(16),a(27),a(4),a(319),a(23),a(57),a(17);var d,p=r(a(0)),m=r(a(26)),v=r(a(243)),h=r(a(3)),E=r(a(1033)),y=r(a(900)),g=r(a(869)),b=r(a(912)),S=r(a(929)),_=r(a(870)),O=r(a(871)),C=r(a(2841)),T=r(a(2844));function R(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,i.default)(e);if(t){var n=(0,i.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,s.default)(this,a)}}var D=function(e){var t=e.from,a=e.to,r=e.count,n=parseInt((a-t)/(r+1),10);return Array(r).fill({}).reduce((function(e,a,r){return e.concat(t+n*(r+1))}),[])},N=(d={},(0,f.default)(d,6e4,"mm:ss"),(0,f.default)(d,36e5,"HH:mm"),(0,f.default)(d,864e5,"ddd HH:mm"),(0,f.default)(d,1296e6,"MMM Do"),(0,f.default)(d,"Infinity","MMM YYYY"),d);function k(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Date.now();return(0,v.default)(e).format("YYYY-MM-DD HH:mm:ss")}var I=function(e){(0,c.default)(a,e);var t=R(a);function a(){var e;(0,o.default)(this,a);for(var r=arguments.length,n=new Array(r),l=0;l1&&r?l/(2*n-2):0}},{key:"getTicks",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:5,t=this.getDomain(),a=(0,l.default)(t,2),r=a[0],n=a[1];return D({from:r,to:n,count:e})}},{key:"getDomain",value:function(){var e=this.props.timeRange,t=e.start,a=e.end,r=this.getXAxisExpand();return[t-r,a+r]}},{key:"getTickFormatter",value:function(e){var t=this.getDomain(),a=(0,l.default)(t,2),r=a[0],o=(a[1]-r)/e;for(var u in N)if(o<=Number(u)){var c=function(){var e=N[u];return{v:function(t){return(0,v.default)(t).format(e)}}}();if("object"===(0,n.default)(c))return c.v}}},{key:"render",value:function(){var e=this,t=this.props,a=t.data,r=t.legends,n=t.line,l=t.bar,o=t.cartesianGrid,u=void 0===o||o,c=t.stacked,s=void 0!==c&&c,i=t.yAxis,f=void 0===i||i,d=t.className,m=t.valueFormatter;return p.default.createElement("div",{style:{height:"300px"},className:(0,h.default)(T.default.wrapper,d),ref:this.ref},p.default.createElement(O.default,{debounce:100},p.default.createElement(C.default,{data:a},u&&p.default.createElement(S.default,{vertical:!1}),this.renderTimeXAxis(),f&&p.default.createElement(b.default,{tickFormatter:m,tickLine:null,axisLine:null}),l&&r.map((function(t){return p.default.createElement(E.default,{isAnimationActive:!1,connectNulls:!0,key:"".concat(t.ID," - bar"),name:t.name,dataKey:t.ID,fill:t.color,stroke:t.color,stackId:s?"A":void 0,fillOpacity:t.opacity||1,barSize:e.singleBarSize})})),n&&r.map((function(e){return p.default.createElement(y.default,{isAnimationActive:!1,connectNulls:!0,key:"".concat(e.ID," - area"),name:e.name,dataKey:e.ID,fill:e.color,stroke:e.color,stackId:s?"A":void 0,fillOpacity:e.opacity||.4})})),p.default.createElement(g.default,{wrapperStyle:{zIndex:1e3},formatter:m,labelFormatter:k}))))}},{key:"renderTimeXAxis",value:function(){var e=this.props.xAxis,t=void 0===e||e,a=this.getDomain(),r=this.getTickCount(),n=this.getTicks(r),l=this.getTickFormatter(r),o=this.XAxisShouldPadding?30:0;return p.default.createElement(_.default,{hide:!t,type:"number",dataKey:"time",scale:"time",interval:0,tickLine:null,domain:a,ticks:n,tickFormatter:l,allowDataOverflow:"false",padding:{left:o,right:o}})}},{key:"singleBarSize",get:function(){var e=this.props.legends;return this.XAxisShouldPadding?Math.floor(60/e.length):void 0}},{key:"XAxisShouldPadding",get:function(){var e=this.props,t=e.data,a=e.timeRange,r="YYYY-MM-DD HH:mm:ss";if(1===t.length){var n=(0,v.default)(a.start).format(r),l=(0,v.default)(a.end).format(r),o=(0,v.default)(t[0].time).format(r);return o===n||o===l}return!1}}]),a}(p.default.PureComponent);t.default=I,I.defaultProps={valueFormatter:function(e){return e}}},,function(e,t,a){"use strict";a(15);var r=a(20);a(5),a(18),a(192),a(16),a(4),a(23),a(17),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(45),a(5),a(18),a(192),a(42),a(16),a(4),a(23),a(57),a(17);var n=r(a(61)),l=r(a(36)),o=r(a(37)),u=r(a(55)),c=r(a(56)),s=r(a(51)),i=r(a(0)),f=a(14),d=r(a(135));function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,s.default)(e);if(t){var n=(0,s.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,c.default)(this,a)}}var m=function(e){(0,u.default)(a,e);var t=p(a);function a(){var e;(0,l.default)(this,a);for(var r=arguments.length,o=new Array(r),u=0;u0&&void 0!==arguments[0]?arguments[0]:{},t=e.cluster,a=e.namespace,r="";return t&&(r+="/clusters/".concat(t)),a&&(r+="/namespaces/".concat(a)),r}},{key:"getTimeRange",value:function(){var e=this.time,t=e.from,a=e.to;return{from:(0,D.default)(this.parseGrafanaTime(t)),to:(0,D.default)(this.parseGrafanaTime(a))}}},{key:"refreshMs",get:function(){return this.refresh?(0,k.getMsFromTimeAlias)(this.refresh):0}},{key:"timeRange",get:function(){var e=this.time,t=e.from,a=e.to;return{from:(0,D.default)(this.parseGrafanaTime(t)),to:(0,D.default)(this.parseGrafanaTime(a))}}}]),(0,S.default)(e,[{key:"changeRefreshInterval",value:function(e){this.refresh=e}},{key:"changeTimeRange",value:function(e){var t=e.from,a=e.to;this.time.from=t,this.time.to=a}},{key:"switchEditingMode",value:function(e){this.isEditing=e}},{key:"changeModeToEditing",value:function(){return this.switchEditingMode(!0),this}},{key:"generateMonitorList",value:function(){var e=this.panels.reduce((function(e,t){return e[t.type===P.MONITOR_PANEL_TYPE.TEXT?"textPanels":"otherPanels"].push(t),e}),{textPanels:[],otherPanels:[]}),t=e.textPanels,a=e.otherPanels;this.textMonitors=this.generateTextMonitors(t);var r=this.gennerateGraphMonitorRows(a),n=r.unNameGraphRow,l=r.graphRows;this.unNameGraphRow=n,this.graphMonitorRows=l}},{key:"generateTextMonitors",value:function(e){var t=this,a=e.map((function(e){return new A.default(j(j({},e),{},{namespace:t.namespace,cluster:t.cluster}))}));return new M.default({monitors:a})}},{key:"gennerateGraphMonitorRows",value:function(e){var t=this,a=e.reduce((function(e,a){if(a.type===P.MONITOR_PANEL_TYPE.ROW)return[].concat((0,h.default)(e),[new M.default({config:a})]);var r=new(U[a.type]||P.default)(j(j({},a),{},{namespace:t.namespace,cluster:t.cluster})),n=e.pop();return n.push(r),[].concat((0,h.default)(e),[n])}),[this.unNameGraphRow]),r=(0,E.default)(a);return{unNameGraphRow:r[0],graphRows:r.slice(1)}}},{key:"addNewRow",value:function(){this.graphMonitorRows.push(new M.default({config:{id:this.uidFactory.generateUID(),title:"New Row",type:"row"}}))}},{key:"generateNewTextMonitor",value:function(){var e=new A.default({id:this.uidFactory.generateUID(),title:"",format:"none",type:"singlestat",decimals:0,namespace:this.namespace,cluster:this.cluster,valueName:"last",targets:[{expr:""}]});return e.belong(this.textMonitors),e}},{key:"generatGraphMonitor",value:function(e){var t=e.bars,a=e.lines,r=new w.default({id:this.uidFactory.generateUID(),type:"graph",title:"",lines:a,bars:t,description:"",namespace:this.namespace,cluster:this.cluster,stack:!1,targets:[{expr:"",legendFormat:"",step:"1m",refId:1}],yaxes:[{format:"none",decimals:0}],colors:I.MONITOR_GRAPH_COLORS[0].colors});return r.belong(this.unNameGraphRow),r}},{key:"generatTableMonitor",value:function(){var e=new P.default({id:this.uidFactory.generateUID(),title:"",format:"none",type:"graph",decimals:0,namespaces:this.namespace,cluster:this.cluster,targets:[{expr:""}]});return e.belong(this.unNameGraphRow),e}},{key:"parseGrafanaTime",value:function(e){if(this.isGrafanaTimeFormat(e)){var t=e.replace(/now-?/,""),a=(0,k.getMsFromTimeAlias)(t);return Date.now()-a}return new Date(e).valueOf()}},{key:"isGrafanaTimeFormat",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e.match(/^now$|^now-(\d+[smhd])$/)}},{key:"fetchMetadata",value:(t=(0,v.default)(l.default.mark((function e(){var t,a;return l.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,request.get("kapis/monitoring.kubesphere.io/v1beta1/targets/metadata",{cluster:this.cluster,namespace:this.namespace});case 2:if(e.t0=e.sent,e.t0){e.next=5;break}e.t0={data:[]};case 5:t=e.t0,a=t.data,this.targetsMetadata=a||[];case 8:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})},{key:"toJS",value:function(){var e=this.textMonitors,t=this.unNameGraphRow,a=this.graphMonitorRows,r=[].concat((0,h.default)(t.monitors),(0,h.default)(e.monitors)).map((function(e){return(0,T.default)((0,R.toJS)(e.config),["cluster","namespace"])})),n=a.reduce((function(e,t){var a=t.monitors.map((function(e){return(0,T.default)((0,R.toJS)(e.config),["cluster","namespace"])}));return e.concat(t.config,a)}),[]);return(0,C.default)(this.formTemplate,"spec",Object.assign((0,O.default)(this.formTemplate,"spec",{}),{title:this.title,templatings:this.templatings,refresh:this.refresh,time:(0,R.toJS)(this.time),panels:[].concat((0,h.default)(r),(0,h.default)(n))})),this.formTemplate}}]),e}(),u=(0,_.default)(o.prototype,"title",[R.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),c=(0,_.default)(o.prototype,"refresh",[R.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),s=(0,_.default)(o.prototype,"time",[R.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{from:"now",to:"now"}}}),(0,_.default)(o.prototype,"refreshMs",[R.computed],Object.getOwnPropertyDescriptor(o.prototype,"refreshMs"),o.prototype),(0,_.default)(o.prototype,"timeRange",[R.computed],Object.getOwnPropertyDescriptor(o.prototype,"timeRange"),o.prototype),i=(0,_.default)(o.prototype,"isEditing",[R.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),f=(0,_.default)(o.prototype,"textMonitors",[R.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),d=(0,_.default)(o.prototype,"graphMonitorRows",[R.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),p=(0,_.default)(o.prototype,"targetsMetadata",[R.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),m=(0,_.default)(o.prototype,"changeTitle",[R.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(t){e.title=t}}}),(0,_.default)(o.prototype,"changeRefreshInterval",[R.action],Object.getOwnPropertyDescriptor(o.prototype,"changeRefreshInterval"),o.prototype),(0,_.default)(o.prototype,"changeTimeRange",[R.action],Object.getOwnPropertyDescriptor(o.prototype,"changeTimeRange"),o.prototype),(0,_.default)(o.prototype,"switchEditingMode",[R.action],Object.getOwnPropertyDescriptor(o.prototype,"switchEditingMode"),o.prototype),(0,_.default)(o.prototype,"generateMonitorList",[R.action],Object.getOwnPropertyDescriptor(o.prototype,"generateMonitorList"),o.prototype),o);t.default=F},function(e,t,a){"use strict";a(15);var r=a(157),n=a(20);a(12),a(109),a(5),a(11),a(84),a(18),a(4),a(23),a(17),a(85),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(12),a(109),a(45),a(5),a(11),a(84),a(18),a(42),a(4),a(23),a(57),a(17),a(85);var l=n(a(30)),o=n(a(61)),u=n(a(36)),c=n(a(37)),s=n(a(55)),i=n(a(56)),f=n(a(51)),d=r(a(0)),p=n(a(3)),m=n(a(1)),v=a(186),h=n(a(60)),E=n(a(2913));function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,f.default)(e);if(t){var n=(0,f.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,i.default)(this,a)}}var g=function(e){(0,s.default)(a,e);var t=y(a);function a(){var e;(0,u.default)(this,a);for(var r=arguments.length,n=new Array(r),l=0;l(0,v.default)(n.props.formTemplate,"spec.maxReplicaCount",0)&&r(t("MIN_REPLICA_COUNT_LESS_THAN_MAX")),r()):r(t("PROMETHEUS_MIN_REPLICA_COUNT_DESC"))},n.state={visible:!1,currentTriggerIndex:void 0,currentTrigger:{},fallback:!!(0,v.default)(e.formTemplate,"spec.fallback"),shouldValidate:0},n}return(0,o.default)(r,[{key:"componentDidUpdate",value:function(e,t){var a;t.shouldValidate!==this.state.shouldValidate&&(null===(a=this.minCountRef.current)||void 0===a||a.validate({"spec.minReplicaCount":(0,v.default)(this.props.formTemplate,"spec.minReplicaCount")}))}},{key:"render",value:function(){var e=this,a=this.props,r=a.formRef,n=a.formTemplate,l=this.state,o=l.visible,u=l.currentTrigger;return o?y.default.createElement(S.default,{trigger:(0,m.default)(u),onCancel:this.resetState,onSave:this.onSave}):y.default.createElement(i.Form,{data:n,ref:r},y.default.createElement(i.Columns,null,y.default.createElement(i.Column,null,y.default.createElement(i.Form.Item,{ref:this.minCountRef,label:t("MINIMUM_REPLICAS"),desc:t("SCALE_MINIMUM_REPLICAS_DESC"),rules:[{validator:this.validator}]},y.default.createElement(d.NumberInput,{name:"spec.minReplicaCount",integer:!0,min:0}))),y.default.createElement(i.Column,null,y.default.createElement(i.Form.Item,{label:t("MAXIMUM_REPLICAS"),desc:t("SCALE_MAXIMUM_REPLICAS_DESC")},y.default.createElement(d.NumberInput,{name:"spec.maxReplicaCount",integer:!0,min:0})))),y.default.createElement(i.Columns,null,y.default.createElement(i.Column,null,y.default.createElement(i.Form.Item,{label:t("POLLING_INTERVAL"),desc:t("POLLING_INTERVAL_DESC")},y.default.createElement(d.TimeUnitInput,{name:"spec.pollingInterval",integer:!0,min:0}))),y.default.createElement(i.Column,null,y.default.createElement(i.Form.Item,{label:t("WAITING_TIME"),desc:t("WAITING_TIME_DESC")},y.default.createElement(d.TimeUnitInput,{name:"spec.cooldownPeriod",integer:!0,min:0})))),y.default.createElement(i.Form.Group,{label:t("ROLL_BACK"),desc:t("SCALE_ROLL_BACK_DESC"),checkable:!0,onChange:this.handleFallback,key:this.state.fallback},y.default.createElement("div",{className:"padding-12"},y.default.createElement(i.Columns,null,y.default.createElement(i.Column,null,y.default.createElement(i.Form.Item,{label:t("FAILURE_THRESHOLD"),desc:t("SCALE_FAILURE_THRESHOLD_DESC"),rules:[{required:this.state.fallback,message:t("EMPTY_FAILURE_THRESHOLD")}]},y.default.createElement(d.NumberInput,{name:"spec.fallback.failureThreshold",integer:!0,min:0}))),y.default.createElement(i.Column,null,y.default.createElement(i.Form.Item,{label:t("FALLBACK_NUMBER"),desc:t("FALLBACK_NUMBER_DESC"),rules:[{required:this.state.fallback,message:t("EMPTY_FALLBACK_NUMBER_DESC")}]},y.default.createElement(d.NumberInput,{name:"spec.fallback.replicas",integer:!0,min:0})))))),y.default.createElement("div",{className:g.default.triggerWrapper},y.default.createElement("div",{className:g.default.title},t("TRIGGER_SETTING")),y.default.createElement("div",{className:g.default.desc},t("TRIGGER_SETTING_DESC")),y.default.createElement(i.Form.Item,null,y.default.createElement(_.default,{name:"spec.triggers",onShowTrigger:this.onShowAddTrigger,onShowEdit:this.onShowEdit,onCancel:this.resetState,onChange:function(t){(0,h.default)(n,"spec.triggers",t),e.setState({shouldValidate:e.state.shouldValidate+1})}}))),y.default.createElement(p.default,{className:g.default.advanced},y.default.createElement("div",{className:g.default.checkableText},y.default.createElement(i.Form.Item,null,y.default.createElement(f.default,{name:"spec.advanced.restoreToOriginalReplicaCount",title:t("RESTORE_TO_ORIGINAL_REPLICA_COUNT"),description:t("RESTORE_TO_ORIGINAL_REPLICA_COUNT_DESC")}))),y.default.createElement(i.Form.Group,{label:t("SCALE_BEHAVIOR"),desc:t("SCALE_BEHAVIOR_DESC"),keepDataWhenUnCheck:!0,checkable:!0},y.default.createElement(b.default,{type:"scaleUp",prefix:"spec.advanced.horizontalPodAutoscalerConfig.behavior.scaleUp"}),y.default.createElement(b.default,{type:"scaleDown",prefix:"spec.advanced.horizontalPodAutoscalerConfig.behavior.scaleDown"}))))}}]),r}(y.default.Component);a.default=C},,,,,,function(e,t,a){e.exports={card:"_2OMNiqGgcmhtrdbU8imCvj",action:"_2_wMN8F5TCW7GW6joHCSz_"}},function(e,t,a){e.exports={option:"_37Sc6Br1RJMiXP59t5p3P0"}},,function(e,t,a){"use strict";a(15);var r=a(20);a(4),a(23),a(17),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(45),a(42),a(4),a(23),a(57),a(17);var n=r(a(315)),l=r(a(36)),o=r(a(37)),u=r(a(55)),c=r(a(56)),s=r(a(51)),i=r(a(0)),f=a(186),d=r(a(1542));function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,s.default)(e);if(t){var n=(0,s.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,c.default)(this,a)}}var m=function(e){(0,u.default)(a,e);var t=p(a);function a(){return(0,l.default)(this,a),t.apply(this,arguments)}return(0,o.default)(a,[{key:"render",value:function(){var e=this.props,t=e.formTemplate,a=e.formRef,r=e.formProps,l=e.module,o=e.cluster,u=e.namespace;return i.default.createElement("div",{className:"margin-t12"},i.default.createElement(f.Form,(0,n.default)({data:t,ref:a},r),i.default.createElement(d.default,{formProps:r,data:t,module:l,cluster:o,namespace:u})))}}]),a}(i.default.Component);t.default=m},function(e,t,a){"use strict";var r=a(20);a(12),a(5),a(11),a(6),a(9),a(13),a(10),a(4),a(23),a(17),a(7),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(12),a(45),a(5),a(11),a(6),a(28),a(42),a(34),a(15),a(9),a(13),a(10),a(4),a(23),a(57),a(17),a(7);var n=r(a(315)),l=r(a(30)),o=r(a(36)),u=r(a(37)),c=r(a(88)),s=r(a(55)),i=r(a(56)),f=r(a(51)),d=r(a(0)),p=r(a(26)),m=r(a(63)),v=r(a(189)),h=a(186),E=r(a(932));function y(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function g(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},a=e.props.onOk,r=t.role;a(r)},e.getRoleOptions=function(){return e.props.roles.map((function(e){var a=(0,p.default)(e,"description");return{label:e.name,value:e.name,desc:t(a)}}))},e.optionRenderer=function(e){return m.default.createElement("div",{className:g.default.option},m.default.createElement("div",null,e.label),m.default.createElement("p",null,e.desc))},e}return(0,s.default)(r,[{key:"render",value:function(){var e=this.props,a=e.visible,r=e.onCancel,n=e.isSubmitting,l=e.role;return m.default.createElement(y.default.Form,{width:691,title:t("CHANGE_ROLE"),icon:"role",onOk:this.handleOk,onCancel:r,visible:a,isSubmitting:n},m.default.createElement(E.Form.Item,{label:t("ROLE"),rules:[{required:!0,message:t("SELECT_ROLE_TIP")}]},m.default.createElement(E.Select,{name:"role",optionRenderer:this.optionRenderer,options:this.getRoleOptions(),defaultValue:l})))}}]),r}(m.default.Component),o.propTypes={role:v.default.string,roles:v.default.array,visible:v.default.bool,onOk:v.default.func,onCancel:v.default.func,isSubmitting:v.default.bool},o.defaultProps={role:"",roles:[],visible:!1,isSubmitting:!1,onOk:function(){},onCancel:function(){}},l=u))||l;a.default=S},function(e,t,a){"use strict";a(15);var r=a(20);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(a(974)),l=r(a(932)),o=r(a(971)),u=r(a(1043)),c=[{title:"BASIC_INFORMATION",icon:"cdn",component:n.default,required:!0},{title:"POD_SETTINGS",icon:"docker",component:l.default,required:!0},{title:"STORAGE_SETTINGS",icon:"storage",component:o.default,required:!0},{title:"ADVANCED_SETTINGS",icon:"slider",component:u.default,required:!0}];t.default=c},,,function(e,a,r){"use strict";var n=r(157),l=r(20);r(12),r(109),r(5),r(11),r(6),r(84),r(29),r(73),r(18),r(87),r(97),r(16),r(9),r(13),r(10),r(4),r(24),r(64),r(7),r(32),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(109),r(5),r(11),r(6),r(84),r(160),r(29),r(73),r(18),r(28),r(87),r(97),r(16),r(34),r(15),r(9),r(13),r(10),r(4),r(22),r(24),r(64),r(7),r(32);var o=l(r(43));r(41);var u=l(r(58)),c=l(r(30)),s=l(r(44)),i=l(r(61)),f=l(r(96)),d=n(r(0)),p=r(186),m=l(r(3)),v=l(r(799)),h=l(r(829)),E=l(r(850)),y=l(r(884)),g=l(r(241)),b=l(r(74)),S=l(r(3033)),_=l(r(26)),O=l(r(445)),C=l(r(439)),T=r(52),R=r(72),D=l(r(3034)),N=l(r(3036)),k=l(r(1322));function I(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function P(e){for(var t=1;t0),"Match"===e.operator&&(t=t&&e.regexValue),t},de=function(e,a,r){return a?a.some((function(e){return!fe(e)}))?r({message:t("INVALID_NOTIFICATION_CONDITION")}):void r():r()};return d.default.createElement(p.Form,{ref:a,data:r,onChange:c,className:k.default.editForm},d.default.createElement(E.default,{className:k.default.switch,text:t("EDIT_YAML"),onChange:se,checked:q}),d.default.createElement("div",{className:k.default.editContainer},d.default.createElement("div",null,d.default.createElement(p.Icon,{name:"return",size:20,className:"margin-r4",clickable:!!n,onClick:n}),d.default.createElement("span",{className:k.default.title},t("EDIT_POD_IP_POOL"))),q?d.default.createElement("div",{className:k.default.codeWrapper},d.default.createElement(y.default,{ref:Q,value:F,returnType:"obj",onChange:ue})):d.default.createElement("div",{className:k.default.container},d.default.createElement("div",{style:{display:"none"}},d.default.createElement(p.Form.Item,null,d.default.createElement(p.Input,{name:"isEdge",value:I}))),d.default.createElement("div",{className:(0,m.default)(k.default.card,k.default.editRow)},d.default.createElement(p.Form.Item,{label:t("NETWORK_SEGMENT"),rules:[{required:!0,message:t("ENTER_NETWORK_SEGMENT")}],desc:t("POD_IP_POOL_IP_RANGE")},d.default.createElement(p.Input,{name:"cidr"})),d.default.createElement(p.Form.Item,{label:t("NAME"),rules:[{required:!0,message:t("NAME_EMPTY_DESC")},{pattern:R.PATTERN_NAME,message:t("POD_IP_POOL_NAME_DESC")}],desc:t("POD_IP_POOL_NAME_DESC")},d.default.createElement(p.Input,{name:"name",maxLength:63})),d.default.createElement(p.Form.Item,{label:t("IPPOOL_BLOCK_SIZE"),desc:t("IP_POOL_BLOCK_SIZE_DESC")},d.default.createElement(v.default,{name:"blockSize",min:0,max:32})),(!L||I)&&d.default.createElement(p.Form.Item,{label:t(I?"PROJECT_PL":"WORKSPACE"),desc:t(I?"IPPOOL_ASSIGN_PROJECT_DESC":"IPPOOL_ASSIGN_WORKSPACE_DESC")},d.default.createElement(p.Select,{name:"workspace",options:re,pagination:(0,g.default)(ae,["page","total","limit"]),isLoading:ee,onFetch:le,searchable:!0,clearable:!0,placeholder:" "})),d.default.createElement(p.Form.Item,{label:t("NAT outgoing"),desc:t("NAT_OUTGOING_DESC")},d.default.createElement(p.Select,{options:[{label:t("OPEN"),value:!0},{label:t("CLOSE"),value:!1}],name:"natOutgoing",onChange:function(e){(0,b.default)(r,"natOutgoing",e)}})),d.default.createElement(p.Form.Item,{label:t("ALIAS"),desc:t("ALIAS_NAME_DESC"),rules:[{pattern:R.PATTERN_ALIAS_NAME,message:t("INVALID_ALIAS_NAME_DESC")}]},d.default.createElement(p.Input,{maxLength:63,name:"aliasName"})),d.default.createElement(p.Form.Item,{label:t("DESCRIPTION"),desc:t("DESCRIPTION_DESC")},d.default.createElement(p.TextArea,{maxLength:256,name:"description"}))),d.default.createElement(p.Form.Group,{label:t("SELECT_NODES"),desc:t("SELECT_NODE_DES"),keepDataWhenUnCheck:!0,checkable:!0},d.default.createElement(p.Tabs,{type:"button",activeName:Y,onChange:ie},d.default.createElement(A,{label:t("NODE_RANGE"),name:"node_range"},d.default.createElement(p.Form.Item,null,d.default.createElement(p.Select,{options:[{label:t("ALL"),value:"all()",description:t("SELECT_LABEL_ALL_RESOUCE")},{label:t("ALL_DISABLED"),value:"!all()",description:t("DISABLE_SELECT_NODE")}],name:"nodeSelector",optionRenderer:ne,className:k.default.tabPanel}))),d.default.createElement(A,{label:t("LABEL_SELECT"),name:"label_select"},d.default.createElement(p.Form.Item,{label:t("LABEL"),rules:[{validator:de,checkOnSubmit:!0}]},d.default.createElement(h.default,{name:"nodeSelectorLable",itemType:"object",addText:t("ADD"),checkItemValid:fe,desc:d.default.createElement("div",{className:k.default.annotation},d.default.createElement(p.Icon,{name:"question"}),d.default.createElement("p",{className:k.default.desc},t.html("NOTIFICATION_CONDITION_SETTING_TIP")))},d.default.createElement(N.default,null)))),d.default.createElement(A,{label:t("CUSTOM"),name:"custom"},d.default.createElement(p.Form.Item,{label:t("EXPRESSION")},d.default.createElement(p.TextArea,{className:k.default.tabPanel,name:"nodeSelectorText",placeholder:'a in {"A", "B"} || a not in {"A", "B"} || has(A) || !has(A)'}))))),!l&&d.default.createElement(D.default,{value:(0,g.default)(r,["ipipMode","vxlanMode"]),onChange:function(e){var t=e.ipipMode,a=e.vxlanMode;(0,b.default)(r,"ipipMode",t),(0,b.default)(r,"vxlanMode",a)}}))))};a.default=M},function(e,t,a){e.exports={panel_p:"Yqh06RmBoRyo4EPMas8bQ",panel_s:"dcZ_PAxGuga9-dQ_R2F21",list:"_2y3_DkkZyu00IzO_2f7K0T",sheader:"_3AiwhP8qwgUhqH8LPnE7h1",sbody:"_3IhxAI3DyVi9gF9OH56ieB",cidr:"_1i1AudKOZMc9YALrUQQS_w",cidr_desc:"_2Y96COk5j42afC8WBhITrx",rulerow:"_1n385-u3bi3R_AxmEjXF5f",copy:"GRzd1aYlLJjc7ladECAGF",cidrrow:"_2F6Vl_l7l7oBHC3-FteUB6",error:"_2Rv2uP_LWQnnpK8_zqJ6Q7",errColor:"_2hhhSXsdc04b-WXptqNUWF",addBtn:"k2fG1ygGy-TCFEvSpdn5L",title:"_3qqAkQa-lFclxQniJas3A6",disp:"_28E97ro-MMoMS8FI6jmtFg",dirCheck:"_1INyMtM5lz6S-84-U9Lo8i"}},,,,function(e,t,a){e.exports={modalBody:"_3LmKosR2NgW3SYNGGl5Ja1",body:"_3wmbVDcnvlmKWa7E4MqW3a",title:"_38E3OlJ-EcA4JJwdzhaKjj",content:"_26R0JbcTWq68y4ODw0Tsn5",results:"_13KNhx0UTfuYSgYn-RW962",footer:"_1dt9c7vduVK9_f8YNvbXbr",item:"ShwjIjDUZ2tjNM5OLr4Ab",menu:"_3At_gmqtujAVgKiHEB0s6b",avatar:"_3WFnFWXC3vFQtXy_C5EtN9"}},function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(187),r(11),r(197),r(84),r(18),r(87),r(4),r(23),r(17),r(85),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(187),r(11),r(197),r(84),r(18),r(87),r(42),r(448),r(4),r(23),r(57),r(17),r(85);var l=n(r(30)),o=n(r(61)),u=n(r(36)),c=n(r(37)),s=n(r(55)),i=n(r(56)),f=n(r(51)),d=n(r(0)),p=n(r(1)),m=n(r(3)),v=n(r(26)),h=n(r(63)),E=n(r(158)),y=n(r(247)),g=r(186),b=n(r(3083)),S=n(r(1709));function _(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,f.default)(e);if(t){var n=(0,f.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,i.default)(this,a)}}var O=function(e){(0,s.default)(r,e);var a=_(r);function r(e){var n;return(0,u.default)(this,r),(n=a.call(this,e)).showKeyError=function(e){var t=e.index,a=e.message,r=(0,y.default)([].concat((0,o.default)(n.state.errorKeys),[t]));n.setState({errorKeys:r,errorMsg:a})},n.hideKeyError=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.index,a=t?n.state.errorKeys.filter((function(e){return e!==t})):[];n.setState({errorKeys:a,errorMsg:""})},n.handleAdd=function(){var e=n.props,t=e.value;(0,e.onChange)([].concat((0,o.default)(t),[n.defaultValue]),n.defaultValue)},n.handleChange=function(e,a){var r=n.props,l=r.value,u=r.onChange,c=(0,v.default)(a,"currentTarget.value",a),s=l.findIndex((function(e){return(0,h.default)(e.key)}));if(-1!==s)return n.showKeyError({index:s,message:t("EMPTY_KEY")}),!1;var i=n.commonKeys.includes(c.key);if(l.reduce((function(e,t){return e.key===t.key&&(i=!0),t})),i)return n.showKeyError({index:e,message:t("DUPLICATE_KEYS")}),!1;var f=[];(0,E.default)(l[e])?(f=(0,o.default)(l))[e]=c:f=l.map((function(t,a){return a===e?c:t})),n.hideKeyError({index:e}),u(f)},n.handleSelect=function(e){var t=n.props,a=t.value;(0,t.onSelect)(a[e],e)},n.handleDelete=function(e){var t=n.props,a=t.value,r=t.onChange;n.state.errorKeys.includes(e)&&n.hideKeyError({index:e}),r(a.filter((function(t,a){return a!==e})),a[e])},n.state={errorKeys:[],errorMsg:""},n}return(0,c.default)(r,[{key:"isAddEnable",value:function(){var e=this.props,t=e.value,a=e.checkItemValid,r=this.state.errorKeys;return a?t.every(a):(0,h.default)(r)&&t.every((function(e){return!(0,h.default)(e)}))}},{key:"renderItems",value:function(){var e=this,t=this.props,a=t.value,r=t.onSelect,n=this.state,o=n.errorKeys,u=n.errorMsg;return a.map((function(t,a){return d.default.createElement("div",{key:a,className:(0,m.default)(S.default.inputItem,(0,l.default)({},S.default.errorItem,o.includes(a)))},d.default.createElement(b.default,{value:t||e.defaultValue,disabled:!e.isAddEnable(),onChange:e.handleChange.bind(e,a),onSelect:r&&e.handleSelect.bind(e,a),onDelete:e.handleDelete.bind(e,a)}),d.default.createElement("div",{className:S.default.error},u))}))}},{key:"render",value:function(){var e=this.props.className;return d.default.createElement("div",{className:(0,m.default)(S.default.wrapper,e)},this.renderItems(),d.default.createElement("div",{className:"text-right"},d.default.createElement(g.Button,{className:S.default.add,onClick:this.handleAdd,disabled:!this.isAddEnable()},t("ADD"))))}},{key:"defaultValue",get:function(){return{}}},{key:"commonKeys",get:function(){return this.props.common.map((function(e){return e.key})).filter((function(e){return e}))}}]),r}(d.default.Component);a.default=O,O.propTypes={name:p.default.string,common:p.default.array,value:p.default.array,onChange:p.default.func,checkItemValid:p.default.func},O.defaultProps={name:"",common:[],value:[""],onChange:function(){}}},function(e,t,a){e.exports={wrapper:"_2hrn5wbxI2jsY7exfmVzFH",errorItem:"_31W58zIFRX1O9saFOI6x4I",error:"_30Sh5N4eWp_n22gaC2P3FM",inputItem:"_1yjzijgTlKOp64WGBuvfOo",item:"_3sooMgh3beAV1uQaOpmOxt",inputs:"_1JgwJ_WoRTYC6bT-3V58mE",tips:"_1F6_WzB42ymqfDdQg6zo6R",actions:"_1vi3GhIAi_AW1pstmvuD4z",add:"_26Yju3vipEPXQJKW_DGxxk"}},function(e,t,a){e.exports={body:"_3RwgPGeCeOOduMFEd44ASI",wrapper:"_1JCx9E2tplQfD8l57CrHIk",title:"_1KEovvXekDcG9tkMjMIWmy",subTitle:"_334hw3UpGJoftYa6r6Wb2g",content:"tre555QRya-kDb6XM4o21"}},function(e,a,r){"use strict";var n=r(20);r(12),r(5),r(11),r(6),r(84),r(18),r(16),r(9),r(13),r(10),r(85),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var l=n(r(30)),o=n(r(61));r(12),r(5),r(11),r(6),r(84),r(18),r(28),r(16),r(34),r(15),r(9),r(13),r(10),r(4),r(85),r(7);var u=n(r(0)),c=n(r(247)),s=n(r(1)),i=r(186),f=n(r(828)),d=n(r(3108));function p(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function m(e){for(var t=1;t0&&void 0!==c[0]?c[0]:{},r=e.props,n=r.appId,l=r.versionStore,u=r.fromStore,t.abrupt("return",l.fetchList(P(P({},a),{},{app_id:n,status:u?"active":void 0})));case 3:case"end":return t.stop()}}),t)}))),e.handleVersionChange=function(t){e.props.fileStore.fetch({version_id:t})},e}return(0,d.default)(r,[{key:"renderStaticPlacement",value:function(){var e=this.props,a=e.cluster,r=e.namespace,n=e.workspace;return C.default.createElement("div",{className:N.default.placementWrapper},C.default.createElement("div",{className:N.default.placementContent},C.default.createElement(y.default,{title:(0,T.showNameAndAlias)(n,"workspace"),description:t("WORKSPACE")}),C.default.createElement(y.default,{title:(0,T.showNameAndAlias)(a,"cluster"),description:t("CLUSTER")}),C.default.createElement(y.default,{icon:"project",title:(0,T.showNameAndAlias)(r,"project"),description:t("PROJECT")})))}},{key:"render",value:function(){var e=this.props,a=e.formData,r=e.formRef,n=e.namespace,o=e.versionStore;return C.default.createElement("div",{className:N.default.wrapper},C.default.createElement(E.Form,{data:a,ref:r},C.default.createElement("div",{className:N.default.title},t("BASIC_INFORMATION")),C.default.createElement(E.Columns,null,C.default.createElement(E.Column,null,C.default.createElement(E.Form.Item,{label:t("NAME"),desc:t("CLUSTER_NAME_DESC"),rules:[{required:!0,message:t("NAME_EMPTY_DESC")},{pattern:D.PATTERN_SERVICE_NAME,message:t("CLUSTER_NAME_DESC")}]},C.default.createElement(E.Input,{name:"name",maxLength:32}))),C.default.createElement(E.Column,null,C.default.createElement(E.Form.Item,{label:t("VERSION"),rules:[{required:!0,message:t("VERSION_EMPTY_DESC")}]},C.default.createElement(E.Select,{name:"version_id",options:this.sortedVersions,placeholder:" ",pagination:(0,S.default)(o.list,["page","limit","total"]),isLoading:o.list.isLoading,onFetch:this.fetchVersions,onChange:this.handleVersionChange,optionRenderer:this.versionOptionRender,valueRenderer:this.versionOptionRender})))),C.default.createElement(E.Columns,null,C.default.createElement(E.Column,null,C.default.createElement(E.Form.Item,{label:t("DESCRIPTION"),desc:t("DESCRIPTION_DESC")},C.default.createElement(E.TextArea,{name:"description",maxLength:256}))),C.default.createElement(E.Column,null)),C.default.createElement("br",null),C.default.createElement("div",{className:N.default.title},t("LOCATION")),C.default.createElement("div",{className:N.default.placement},n?this.renderStaticPlacement():C.default.createElement(E.Form.Item,{rules:[{required:!0,message:t("PROJECT_NOT_SELECT_DESC")}]},C.default.createElement(k.default,(0,l.default)({name:"namespace"},this.props))))))}},{key:"sortedVersions",get:function(){var e=this.props.appId,t=g.RadonDBAppIds.includes(e);return this.props.versionStore.list.data.map((function(e){return{label:e.name,value:t?e.name:e.version_id}})).sort((function(e,t){return(0,R.compareVersion)(t.name,e.name)}))}},{key:"latestVersion",get:function(){return(0,b.default)(this.sortedVersions,"[0].value","")}}]),r}(C.default.Component),(0,h.default)(s.prototype,"sortedVersions",[_.computed],Object.getOwnPropertyDescriptor(s.prototype,"sortedVersions"),s.prototype),(0,h.default)(s.prototype,"latestVersion",[_.computed],Object.getOwnPropertyDescriptor(s.prototype,"latestVersion"),s.prototype),c=s))||c;a.default=w},,,,,function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(84),r(18),r(16),r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(84),r(18),r(42),r(16),r(4),r(22),r(23),r(57),r(17);var l=n(r(43));r(41);var o,u,c,s=n(r(44)),i=n(r(36)),f=n(r(37)),d=n(r(55)),p=n(r(56)),m=n(r(51)),v=r(186),h=n(r(799)),E=n(r(26)),y=n(r(63)),g=n(r(74)),b=r(239),S=n(r(0)),_=n(r(960)),O=n(r(1640)),C=r(52),T=r(72),R=n(r(3260)),D=n(r(3262)),N=n(r(3264));function k(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,m.default)(e);if(t){var n=(0,m.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,p.default)(this,a)}}var I=(0,b.observer)((c=u=function(e){(0,d.default)(r,e);var a=k(r);function r(e){var n;return(0,i.default)(this,r),(n=a.call(this,e)).handleChange=function(e){return function(t){var a=n.props.formTemplate;(0,g.default)(a,e,t),n.forceUpdate()}},n.removeCronError=function(){n.state.cronMessage&&n.setState({cronMessage:{}})},n.checkCronScript=function(){var e=(0,s.default)(l.default.mark((function e(a,r,o){var u,c,s,i,f,d,p,m,v;return l.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return u=n.props,c=u.formTemplate,s=u.type,i=c.name,f=c.cluster,d=c.devops,p=r,e.next=5,n.scmStore.checkCronScript({devops:d,script:p,cluster:f,pipeline:"create"===s?void 0:i});case 5:if("error"!==(m=e.sent).result){e.next=10;break}return n.setState({cronMessage:{error:m.message}},(function(){})),o(m.message),e.abrupt("return");case 10:"ok"===m.result&&(v=t("PIPELINE_CRON_DESC",{nextTime:(0,C.getLocalTime)(m.nextTime).format("YYYY-MM-DD HH:mm:ss")}),n.setState({cronMessage:{message:v}}),o());case 11:case"end":return e.stop()}}),e)})));return function(t,a,r){return e.apply(this,arguments)}}(),n.handleScrollToBottom=function(){var e=n.props.formTemplate,t=e.devopsName,a=e.cluster,r=e.devops,l=n.pipelineStore.list,o=l.total,u=l.page;o<=l.limit*u||n.pipelineStore.fetchList({devopsName:t,cluster:a,devops:r,filter:"no-folders",page:u+1})},n.renderDisCarder=function(){var e=n.props.formTemplate,a=(0,E.default)(e,"multi_branch_pipeline");if(e.enable_discarder)return(0,y.default)(a)?S.default.createElement("div",{className:N.default.wrapper},S.default.createElement(v.Columns,null,S.default.createElement(v.Column,null,S.default.createElement(v.Form.Item,{label:t("BUILD_RECORD_RETENTION_PERIOD_DAYS"),desc:t("BUILD_RECORD_RETENTION_PERIOD_DAYS_DESC"),rules:[{pattern:/^(?!0)\d+$/,message:t("BUILD_RECORD_RETENTION_PERIOD_DAYS_INVALID_TIP")}]},S.default.createElement(v.Input,{name:"".concat(n.prefix,".discarder.days_to_keep"),defaultValue:"7"}))),S.default.createElement(v.Column,null,S.default.createElement(v.Form.Item,{label:t("MAXIMUM_BUILD_RECORDS"),desc:t("MAXIMUM_BUILD_RECORDS_DESC"),rules:[{pattern:/^(?!0)\d+$/,message:t("MAXIMUM_BUILD_RECORDS_INVALID_TIP")}]},S.default.createElement(v.Input,{name:"".concat(n.prefix,".discarder.num_to_keep"),defaultValue:"10"}))))):S.default.createElement("div",{className:N.default.wrapper},S.default.createElement(v.Columns,null,S.default.createElement(v.Column,null,S.default.createElement(v.Form.Item,{label:t("BRANCH_RETENTION_PERIOD_DAYS"),desc:t("BRANCH_RETENTION_PERIOD_DAYS_DESC"),rules:[{pattern:/^(?!0)\d+$/,message:t("BUILD_RECORD_RETENTION_PERIOD_DAYS_INVALID_TIP")}]},S.default.createElement(v.Input,{name:"".concat(n.prefix,".discarder.days_to_keep"),defaultValue:"7"}))),S.default.createElement(v.Column,null,S.default.createElement(v.Form.Item,{label:t("MAXIMUM_BRANCHES"),desc:t("MAXIMUM_BRANCHES_DESC"),rules:[{pattern:/^(?!0)\d+$/,message:t("MAXIMUM_BUILD_RECORDS_INVALID_TIP")}]},S.default.createElement(v.Input,{name:"".concat(n.prefix,".discarder.num_to_keep"),defaultValue:"5"})))))},n.scmStore=new O.default,n.pipelineStore=new _.default,n.state={cronMessage:{}},n}return(0,f.default)(r,[{key:"componentDidMount",value:function(){var e=this.props.formTemplate,t=e.devopsName,a=e.cluster,r=e.devops;this.pipelineStore.fetchList({devopsName:t,devops:r,cluster:a,filter:"no-folders"})}},{key:"renderTip",value:function(e){return S.default.createElement(v.Tooltip,{content:e,placement:"right"},S.default.createElement(v.Icon,{name:"question",className:"margin-l12"}))}},{key:"renderNoSource",value:function(){var e=this.props.formTemplate,a=(0,E.default)(e,"enable_timer_trigger"),r=t.html("PIPELINE_SCHEDULE_DESC");return S.default.createElement("div",null,S.default.createElement(v.Form.Item,{desc:t("NO_CONCURRENT_BUILD_DESC")},S.default.createElement(v.Checkbox,{name:"".concat(this.prefix,".disable_concurrent"),checked:(0,E.default)(e,"".concat(this.prefix,".disable_concurrent")),onChange:this.handleChange("".concat(this.prefix,".disable_concurrent"))},t("NO_CONCURRENT_BUILDS"))),S.default.createElement("div",{className:"h6"},S.default.createElement(S.default.Fragment,null,t("BUILD_PARAMETERS"),this.renderTip(t("BUILD_PARAMETERS_TIP")))),S.default.createElement(D.default,{name:"".concat(this.prefix,".parameters"),formTemplate:this.props.formTemplate}),S.default.createElement("div",{className:"h6"},t("BUILD_TRIGGER")),S.default.createElement(v.Form.Item,null,S.default.createElement(v.Checkbox,{name:"enable_timer_trigger",checked:a,onChange:this.handleChange("enable_timer_trigger")},t("BUILD_PERIODICALLY"),this.renderTip(t("BUILD_PERIODICALLY_TIP")))),a&&S.default.createElement("div",{className:N.default.wrapper},S.default.createElement(v.Columns,null,S.default.createElement(v.Column,null,S.default.createElement(v.Form.Item,{label:t("SCHEDULE"),desc:this.state.cronMessage.message||(0,C.learnMoreTip)(r),tip:t("tips_timer_trigger"),rules:[{validator:this.checkCronScript}]},S.default.createElement(v.Input,{name:"".concat(this.prefix,".timer_trigger.cron"),placeholder:" ",onChange:this.removeCronError}))))))}},{key:"renderGitOptions",value:function(){var e=this.props.formTemplate,a="".concat(this.scmPrefix,".git_clone_option.shallow"),r=(0,E.default)(e,a);return S.default.createElement(S.default.Fragment,null,S.default.createElement("div",{className:"h6"},t("CLONE_SETTINGS")),S.default.createElement(v.Form.Item,null,S.default.createElement(v.Checkbox,{checked:r,name:a,onChange:this.handleChange(a)},t("ENABLE_SHALLOW_CLONE"))),r&&S.default.createElement("div",{className:N.default.wrapper},S.default.createElement(v.Columns,null,S.default.createElement(v.Column,null,S.default.createElement(v.Form.Item,{label:t("CLONE_DEPTH")},S.default.createElement(h.default,{name:"".concat(this.scmPrefix,".git_clone_option.depth"),defaultValue:1}))),S.default.createElement(v.Column,null,S.default.createElement(v.Form.Item,{label:t("CLONE_TIMEOUT_PERIOD")},S.default.createElement(h.default,{name:"".concat(this.scmPrefix,".git_clone_option.timeout"),defaultValue:20}))))),S.default.createElement("div",{className:"h6"},"Webhook"),S.default.createElement(v.Form.Item,{label:t("WEBHOOK_PUSH_URL"),desc:t("WEBHOOK_PUSH_DESC")},S.default.createElement("div",{className:"disabled-input"},this.webhookUrl)))}},{key:"renderRegFilter",value:function(){var e=this.props.formTemplate.enable_regex_filter;return S.default.createElement(S.default.Fragment,null,S.default.createElement("div",{className:"h6"},t("FILTER_BY_REGEX")),S.default.createElement(v.Form.Item,null,S.default.createElement(v.Checkbox,{checked:e,name:"enable_regex_filter",onChange:this.handleChange("enable_regex_filter")},t("FILTER_BY_REGEX_DESC"))),e&&S.default.createElement("div",{className:N.default.wrapper},S.default.createElement(v.Form.Item,{label:t("REGEX")},S.default.createElement(v.Input,{name:"".concat(this.scmPrefix,".regex_filter"),defaultValue:".*"}))))}},{key:"renderWithSource",value:function(){var e=this.props.formTemplate,a=(0,E.default)(e,"multi_branch_pipeline.source_type",""),r=e.enable_timer_trigger,n=e.enable_multibranch_job_trigger,l=this.pipelineStore.list.isLoading,o=["git","github","bitbucket_server"].includes(a),u=["git","github","bitbucket_server","gitlab"].includes(a);return S.default.createElement("div",null,"git"!==a&&"svn"!==a?S.default.createElement(S.default.Fragment,null,S.default.createElement("div",{className:"h6"},t("STRATEGY_SETTINGS")),S.default.createElement("div",{className:N.default.wrapper},S.default.createElement(v.Form.Item,null,S.default.createElement(R.default,{sourceType:a,name:"multi_branch_pipeline.".concat(a,"_source")})))):null,u?this.renderRegFilter():null,S.default.createElement("div",{className:"h6"},t("SCRIPT_PATH")),S.default.createElement(v.Form.Item,{label:t("PATH"),desc:t("SCRIPT_PATH_DESC")},S.default.createElement(v.Input,{name:"".concat(this.prefix,".script_path"),defaultValue:"Jenkinsfile"})),S.default.createElement("div",{className:"h6"},t("SCAN_TRIGGER")),S.default.createElement(v.Form.Item,null,S.default.createElement(v.Checkbox,{checked:r,name:"enable_timer_trigger",onChange:this.handleChange("enable_timer_trigger")},t("SCAN_PERIODICALLY"),this.renderTip(t("TIME_TRIGGER_DESC")))),r&&S.default.createElement("div",{className:N.default.wrapper},S.default.createElement(v.Form.Item,{label:t("SCAN_INTERVAL")},S.default.createElement(v.Select,{name:"".concat(this.prefix,".timer_trigger.interval"),options:T.TIMETRIGGERINTERVALS,defaultValue:"svn"===a||"single_svn"===a?"600000":"3600000"}))),S.default.createElement("div",{className:"h6"},t("BUILD_TRIGGER")),S.default.createElement(v.Form.Item,null,S.default.createElement(v.Checkbox,{checked:n,name:"enable_multibranch_job_trigger",onChange:this.handleChange("enable_multibranch_job_trigger")},t("PIPELINE_EVENT_TRIGGER"))),n&&S.default.createElement("div",{className:N.default.wrapper},S.default.createElement(v.Columns,null,S.default.createElement(v.Column,null,S.default.createElement(v.Form.Item,{label:t("WHEN_CREATE_PIPELINE"),desc:t("WHEN_CREATE_PIPELINE_DESC")},S.default.createElement(v.Select,{name:"".concat(this.prefix,".multibranch_job_trigger.create_action_job_to_trigger"),isLoading:l,isLoadingAtBottom:!0,onMenuScrollToBottom:this.handleScrollToBottom,options:this.pipelineLists,placeholder:t("SELECT_PIPELINE_SCAP")}))),S.default.createElement(v.Column,null,S.default.createElement(v.Form.Item,{label:t("WHEN_DELETE_PIPELINE"),desc:t("WHEN_DELETE_PIPELINE_DESC")},S.default.createElement(v.Select,{name:"".concat(this.prefix,".multibranch_job_trigger.delete_action_job_to_trigger"),isLoading:l,isLoadingAtBottom:!0,onMenuScrollToBottom:this.handleScrollToBottom,options:this.pipelineLists,placeholder:t("SELECT_PIPELINE_SCAP")}))))),o?this.renderGitOptions():null)}},{key:"render",value:function(){var e=this.props,a=e.formRef,r=e.formTemplate,n=(0,E.default)(r,"multi_branch_pipeline");return S.default.createElement("div",{className:N.default.advance},S.default.createElement(v.Form,{data:r,ref:a},S.default.createElement("div",{className:"h6"},(0,y.default)(n)?t("BUILD_SETTINGS"):t("BRANCH_SETTINGS")),S.default.createElement(v.Form.Item,null,S.default.createElement(v.Checkbox,{checked:r.enable_discarder,name:"enable_discarder",onChange:this.handleChange("enable_discarder")},(0,y.default)(n)?t("DELETE_OUTDATED_BUILD_RECORDS"):t("DELETE_OUTDATED_BRANCHES"),this.renderTip((0,y.default)(n)?t("DELETE_OUTDATED_BUILD_RECORDS_TIP"):t("DELETE_OUTDATED_BRANCHES_TIP")))),this.renderDisCarder(),(0,y.default)(n)?this.renderNoSource():this.renderWithSource()))}},{key:"sourceType",get:function(){var e=this.props.formTemplate;return(0,E.default)(e,"multi_branch_pipeline.source_type","")}},{key:"prefix",get:function(){return this.sourceType?"multi_branch_pipeline":"pipeline"}},{key:"scmPrefix",get:function(){return"multi_branch_pipeline.".concat(T.REPO_KEY_MAP[this.sourceType])}},{key:"webhookUrl",get:function(){var e=this.props.formTemplate,t=(0,E.default)(e,"".concat(this.scmPrefix,".url"),""),a=(0,E.default)(e,"".concat(this.scmPrefix,".api_uri"),""),r=(0,E.default)(e,"".concat(this.scmPrefix,".owner"),""),n=(0,E.default)(e,"".concat(this.scmPrefix,".repo"),""),l="".concat(a,"/scm/").concat(r,"/").concat(n,".git");switch(this.sourceType){case"bitbucket_server":return"".concat(window.location.protocol,"//").concat(window.location.host,"/devops_webhook/git/?url=").concat(l);case"github":return"".concat(window.location.protocol,"//").concat(window.location.host,"/devops_webhook/").concat(this.sourceType,"/");default:return"".concat(window.location.protocol,"//").concat(window.location.host,"/devops_webhook/git/?url=").concat(t)}}},{key:"pipelineLists",get:function(){return this.pipelineStore.list.data.map((function(e){return{label:e.name,value:e.fullName}}))}}]),r}(S.default.Component),u.defaultProps={type:"create"},o=c))||o;a.default=I},function(e,t,a){e.exports={wrapper:"_9Yk0qNR2FCG_MPOHVb5JL",header:"_2yTyFqoCxQzx3hRKBg6rRu",content:"T-SCFAAauUJ-x1ldEYntT",itemWrapper:"_1_HVr5DcfYh3ao-5xi6WZV",itemTitle:"_17CzlSkNwriw1ibCqf5Bty",delete:"_26CIQvJti4RrsEj55MYDZc"}},function(e,t,a){e.exports={wrapper:"_28_VGcUL3ubpH0qmzQAKfV",header:"_3-qLqDcljl_m43YCxIxJZ3",content:"_12apY-AeTVbwQd6ffG8WxD",itemWrapper:"_1LRPWkPDcmmt4VdZRlrFLS",itemTitle:"_1LBhdFwEbnrlSDmT97sxs-",delete:"_5TmTBPrXcOuz8pGbj7JH2"}},,,,,function(e,a,r){"use strict";r(15);var n=r(20);r(12),r(109),r(16),Object.defineProperty(a,"__esModule",{value:!0}),a.default=function(e){var a=e.option;function r(){var e;return l.default.createElement(o.Form.Item,{label:a.name,desc:a.description,rules:[{required:null!==(e=a.required)&&void 0!==e&&e,message:t("PARAM_REQUIRED")}]},l.default.createElement(o.Input,{name:"paramsForm.".concat(a.name),defaultValue:a.default||""}))}return l.default.createElement("div",{className:u.default.itemWrapper},function(e){var t=null;switch(e){case"string":t=r();break;case"bool":t=l.default.createElement(o.Form.Item,{label:a.name},l.default.createElement(o.RadioGroup,{name:"paramsForm.".concat(a.name),defaultValue:a.default||!1},l.default.createElement(o.Radio,{value:!0},"True"),l.default.createElement(o.Radio,{value:!1},"False")));break;default:t=r()}return t}(a.type))},r(12),r(109),r(16);var l=n(r(0)),o=r(186),u=n(r(1386))},,,function(e,t,a){"use strict";a(15);var r=a(157),n=a(20);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var l=n(a(315)),o=n(a(96)),u=n(a(58)),c=r(a(0)),s=n(a(1040)),i=n(a(1304)),f=function(e){return(0,s.default)(e)?e:""},d=function(e){var t=e.onChange,a=e.value,r=(0,u.default)(e,["onChange","value"]),n=(0,c.useState)(f(a)),s=(0,o.default)(n,2),d=s[0],p=s[1];(0,c.useEffect)((function(){p(f(a))}),[a]);return c.default.createElement(i.default,(0,l.default)({},r,{value:d,onChange:function(e){p(e),t(e)}}))};t.default=d},function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(18),r(87),r(27),r(1201),r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(18),r(87),r(42),r(1201),r(4),r(23),r(57),r(17);var l=n(r(36)),o=n(r(37)),u=n(r(55)),c=n(r(56)),s=n(r(51)),i=n(r(0)),f=n(r(1)),d=n(r(837)),p=n(r(1040)),m=r(186),v=n(r(3346));function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,s.default)(e);if(t){var n=(0,s.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,c.default)(this,a)}}var E=function(e){(0,u.default)(r,e);var a=h(r);function r(e){var t;return(0,l.default)(this,r),(t=a.call(this,e)).triggerChange=function(e){var a=e.right,r=t.props,n=r.marks;(0,r.onChange)(t.getValueFromPercent(n,a))},t.handleResize=function(){t.rect=t.ref.current.getBoundingClientRect()},t.handleMouseDown=function(e){if(document.addEventListener("mouseup",t.handleMouseUp),"slider"===e.target.getAttribute("role"))document.addEventListener("mousemove",t.handleMouseMove),t.type=e.target.dataset.type;else if(t.ref.current.contains(e.target)){var a=(e.x-t.rect.x)/t.rect.width*100;a>t.endPercent&&(a=100),t.triggerChange({right:a})}},t.handleMouseMove=function(e){var a=100*(e.x-t.rect.x)/t.rect.width;return a>t.endPercent&&(a=100),a<0&&(a=0),t.triggerChange({right:a})},t.handleMouseUp=function(){document.removeEventListener("mousemove",t.handleMouseMove)},t.totalWeight=e.marks.reduce((function(e,t){return e+(t.weight||1)}),0)-1,t.endPercent=100*t.totalWeight/(t.totalWeight+1),t.state=t.getStateFromProps(e),t.ref=i.default.createRef(),t}return(0,o.default)(r,[{key:"getValuePercent",value:function(e,t){for(var a=0,r=0;r=e[r+1].value)a+=n/this.totalWeight;else if(t>=e[r].value&&t=r&&l0}));return l.state={roleTemplates:u,roleModules:f,roleTemplatesMap:o,currentModule:f&&f.length>0?f[0].name:"",groupedTemplates:c},l}return(0,f.default)(r,[{key:"renderTabs",value:function(){var e=this,a=this.state,r=a.roleModules,n=void 0===r?[]:r,l=a.currentModule,o=(0,v.default)(globals.user,"lang")||(0,D.getBrowserLang)();return b.default.createElement("div",{className:I.default.tabs},b.default.createElement("div",{className:I.default.title},t("CATEGORIES")),b.default.createElement("div",{className:I.default.tabsWrapper},n.map((function(a){return b.default.createElement("div",{key:a.name,className:(0,S.default)(I.default.tab,(0,c.default)({},I.default.enabled,l===a.name)),onClick:e.handleTabChange,"data-module":a.name},b.default.createElement(T.default,{icon:a.icon,title:a.displayName[o]||a.displayName.en,description:l===a.name?t("CURRENT"):"ENABLED"===a.state?t("AUTHORIZED"):t("UNAUTHORIZED")}),b.default.createElement(R.default,{className:I.default.indicator,type:"ENABLED"===a.state?"running":"disabled"}))}))))}},{key:"renderContent",value:function(){var e=this,a=this.state,r=a.groupedTemplates,n=a.roleTemplates,l=a.roleTemplatesMap,o=a.currentModule,u=(0,y.default)(r[o]||[],"name");return b.default.createElement("div",{className:I.default.content},b.default.createElement("div",{className:I.default.title},t("PERMISSION_PL")),b.default.createElement("div",{className:I.default.contentWrapper},u.map((function(t){return b.default.createElement(N.default,{key:t.name,data:t,roleTemplates:n,roleTemplatesMap:l,onChange:e.handleCheckChange})}))))}},{key:"render",value:function(){var e=this.props,a=e.title,r=e.visible,n=e.onCancel,l=e.isSubmitting;return b.default.createElement(C.default,{title:a||t("EDIT_PERMISSIONS"),icon:"role",onCancel:n,onOk:this.handleOk,visible:r,isSubmitting:l,fullScreen:!0},b.default.createElement("div",{className:I.default.wrapper},this.renderTabs(),this.renderContent()))}}]),r}(b.default.Component),o.propTypes={roleTemplates:O.default.array,formTemplate:O.default.object,visible:O.default.bool,onOk:O.default.func,onCancel:O.default.func,isSubmitting:O.default.bool},o.defaultProps={visible:!1,isSubmitting:!1,onOk:function(){},onCancel:function(){}},l=u))||l;a.default=M},function(e,t,a){e.exports={wrapper:"_1zXt7JS-5wTeq2O3Yyq-JL",title:"_2R6_3gQaWfGc-54ApbjvK6",tabs:"_1sRMn6-7VQwsP-i502ZCQI",tabsWrapper:"_13UODiQ-dkFqD1c7buDIbo",tab:"_13nyoRlsA_NwzkmCiVg_cF",enabled:"_1l3zLl936dTPcn3AIOkq-x",indicator:"_1DujT8XDf3EuRJJ2LydBom",content:"_1tK-XesSh-xcD5WpN9xJnR",contentWrapper:"_29j0loE5wpYw0YS-LWiFTg",checkItem:"_3rhvJqZScieMGWwx8WyyK4",extra:"_1lZdigIdMb29HKGS7xLlDe",tag:"LujNwnnNKKpJOW-0bi7Yj"}},,,function(e,a,r){"use strict";var n=r(20);r(12),r(5),r(11),r(6),r(84),r(97),r(16),r(98),r(9),r(13),r(10),r(4),r(23),r(17),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(45),r(5),r(11),r(6),r(84),r(28),r(97),r(42),r(16),r(34),r(15),r(98),r(9),r(13),r(10),r(4),r(23),r(57),r(17),r(7);var l=n(r(30)),o=n(r(96)),u=n(r(36)),c=n(r(37)),s=n(r(55)),i=n(r(56)),f=n(r(51)),d=n(r(26)),p=n(r(74)),m=n(r(158)),v=n(r(242)),h=n(r(0)),E=r(186),y=r(52),g=r(72),b=n(r(3381)),S=n(r(3383)),_=n(r(3385)),O=n(r(3386));function C(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function T(e){for(var t=1;t=new Date(u).getTime():o>=u)?n(t("TIMERANGE_SELECTOR_MSG")):n()}},e.renderSpecific=function(){return v.createElement(g.Form.Item,{label:t("TIME_RANGE"),desc:t("SELECT_START_TIME_AND_END_TIME"),rules:[{required:!0,message:t("SILENCE_TIME_RANGE_EMPTY_DESC")},{validator:e.validateDateRange(!0)}]},v.createElement(C.default,{type:"date",name:"dateRange"}))},e.renderSilentTime=function(){return v.createElement(g.Form.Item,{label:t("TIME_RANGE"),desc:t("SELECT_START_TIME_AND_END_TIME"),rules:[{required:!0,message:t("SILENCE_TIME_RANGE_EMPTY_DESC")},{validator:e.validateDateRange(!1)}]},v.createElement(C.default,{type:"time",name:"timeRange",disabled:[I,P],minuteStep:59,secondStep:59}))},e.renderDays=function(e){return v.createElement(g.Form.Item,{rules:[{required:!0,message:t("SELECT_DATE")}]},v.createElement(O.default,e))},e.renderWeek=function(){var t,a=e.props.formTemplate;return e.renderDays({name:"week",type:"week",defaultValue:null!==(t=a.week)&&void 0!==t?t:[],multi:!0})},e.renderMonth=function(){var t,a=e.props.formTemplate;return e.renderDays({name:"month",type:"month",defaultValue:null!==(t=a.month)&&void 0!==t?t:[],multi:!0})},e.renderSilentPeriod=function(){return v.createElement(g.Form.Item,{label:t("SILENCE_DATE")},v.createElement(g.Select,{name:"timeType",options:k,defaultValue:e.props.formTemplate.timeType,onChange:function(t){e.handleChange(D({timeType:t},{week:[],month:[]}))}}))},e.renderPeriodic=function(){var t=e.props.formTemplate.timeType;return v.createElement(v.Fragment,null,e.renderSilentPeriod(),2===t&&e.renderWeek(),3===t&&e.renderMonth(),e.renderSilentTime())},e.handleChange=function(t){Object.entries(t).forEach((function(t){y.default.apply(void 0,[e.props.formTemplate].concat((0,u.default)(t)))})),e.forceUpdate()},e.renderSilent=function(){var a=e.props.formTemplate.type;return v.createElement(v.Fragment,null,v.createElement(g.Form.Item,{label:t("TYPE"),desc:t("SILENCE_TIME_TYPE_DESC")},v.createElement(g.Select,{name:"type",options:e.unCustomTypes,defaultValue:a,onChange:function(t){e.handleChange({type:t,duration:null})}})),2===a&&e.renderSpecific(),3===a&&e.renderPeriodic())},e}return(0,f.default)(r,[{key:"render",value:function(){var e=this.props,t=e.formRef,a=e.formTemplate;return v.createElement("div",null,a.isDefaultCron&&v.createElement(T.default,this.tabs),v.createElement("div",{className:_.default.formContainer},v.createElement("div",null,a.isCron?v.createElement(g.Form,{key:a.isCron.toString(),ref:t,data:a},this.renderCron()):v.createElement(g.Form,{ref:t,data:a},this.renderSilent()))))}},{key:"unCustomTypes",get:function(){return this.types.filter((function(e){return 4!==e.value}))}},{key:"tabs",get:function(){var e=this;return{value:this.props.formTemplate.isCron,onChange:function(t){return e.handleChange({isCron:t})},options:[{value:!1,label:t("SILENT_TEMPLATE")},{value:!0,label:t("SILENT_CRON")}]}}}]),r}(v.Component))||o;a.default=A},function(e,a,r){"use strict";r(15);var n=r(157),l=r(20);r(5),r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(42),r(4),r(23),r(57),r(17);var o=l(r(36)),u=l(r(37)),c=l(r(55)),s=l(r(56)),i=l(r(51)),f=r(186),d=n(r(0)),p=r(72);function m(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,i.default)(e);if(t){var n=(0,i.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,s.default)(this,a)}}var v=function(e){(0,c.default)(r,e);var a=m(r);function r(){var e;(0,o.default)(this,r);for(var n=arguments.length,l=new Array(n),u=0;u0),"Match"===e.operator&&(t=t&&e.regexValue),t},e.itemValidator=function(a,r,n){return r?r.some((function(t){return!e.checkItemValid(t)}))?n({message:t("INVALID_SILENCE_CONDITION")}):void n():n()},e}return(0,u.default)(r,[{key:"renderControlAnnotation",value:function(){return f.createElement("div",{className:E.default.annotation},f.createElement(d.Icon,{name:"question"}),f.createElement("p",{className:E.default.desc},t.html("NOTIFICATION_CONDITION_SETTING_TIP")))}},{key:"renderControlSetting",value:function(){return f.createElement("div",{className:E.default.conditionContainer},f.createElement(d.Form.Item,{rules:[{validator:this.itemValidator,checkOnSubmit:!0}]},f.createElement(v.ArrayInput,{name:"matchExpressions",itemType:"object",addText:t("ADD"),checkItemValid:this.checkItemValid,desc:this.renderControlAnnotation()},f.createElement(h.default,null))))}},{key:"render",value:function(){var e=this.props,t=e.formRef,a=e.formTemplate;return f.createElement(d.Form,{ref:t,data:a},f.createElement(d.Form.Item,null,f.createElement(m.TypeSelect,{name:"condition",defaultValue:1,options:g,onChange:this.handleChange})),2===a.condition&&this.renderControlSetting())}}]),r}(f.Component);a.default=b},,function(e,a,r){"use strict";var n=r(20);r(12),r(5),r(11),r(6),r(73),r(18),r(87),r(48),r(98),r(9),r(13),r(10),r(4),r(23),r(24),r(17),r(111),r(136),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var l=n(r(96)),o=n(r(30)),u=n(r(36)),c=n(r(37)),s=n(r(55)),i=n(r(56)),f=n(r(51));r(12),r(45),r(5),r(11),r(6),r(73),r(18),r(28),r(87),r(48),r(191),r(42),r(159),r(34),r(15),r(98),r(9),r(13),r(10),r(4),r(319),r(23),r(57),r(24),r(193),r(17),r(111),r(7);var d,p,m,v=n(r(0)),h=n(r(1)),E=r(186),y=n(r(787)),g=n(r(790)),b=n(r(850)),S=n(r(799)),_=r(239),O=n(r(26)),C=n(r(1753)),T=n(r(1084)),R=n(r(74)),D=n(r(972)),N=n(r(447)),k=n(r(3429)),I=n(r(3431)),P=n(r(3433));function A(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function w(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{limit:10},a=e.props,r=a.namespace,n=a.cluster;e.snapshotStore.fetchList(M(M({},t),{},{namespace:r,cluster:n,status:"ready"})).then((function(){var t=e.snapshotStore.list.data,a=(0,y.default)(t,"[0].name");a&&((0,g.default)(e.context.formData,"spec.dataSource.name",a),e.handeSnapshotChange(a))}))},e.fetchStorageClassDetail=function(){e.storageClassName&&e.storageClassName!==e.snapshotClassStore.detail.name&&e.snapshotClassStore.fetchDetail({cluster:e.props.cluster,name:e.storageClassName})},e.getSnapshotSourceVolumeInfo=function(t){var a=e.props,r=a.namespace,n=a.cluster;return e.volumeStore.fetchDetail({name:t,namespace:r,cluster:n})},e.handeSnapshotChange=function(){var t=(0,u.default)(o.default.mark((function t(a){var r,n;return o.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=e.snapshotStore.list.data,n=(0,S.toJS)(r).find((function(e){return e.name===a}))||{},t.next=4,e.getSnapshotSourceVolumeInfo(n.snapshotSourceName);case 4:(0,g.default)(e.context.formData,"spec.resources.requests.storage",n.restoreSize),(0,g.default)(e.context.formData,"spec.storageClassName",e.volumeStore.detail.storageClassName),(0,g.default)(e.context.formData,"spec.dataSource.kind","VolumeSnapshot"),(0,g.default)(e.context.formData,"spec.dataSource.apiGroup","snapshot.storage.k8s.io"),e.fetchStorageClassDetail();case 9:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),e}return(0,s.default)(r,[{key:"componentDidMount",value:function(){this.storageClassName&&this.fetchStorageClassDetail()}},{key:"render",value:function(){var e=this.snapshotStore.list,a=e.data,r=e.total,n=e.page,l=e.isLoading,o=this.snapshotClassStore.isLoading,u=this.supportedAccessModes;return E.default.createElement(E.default.Fragment,null,E.default.createElement(T.Form.Item,{label:t("VOLUME_SNAPSHOT"),rules:[{required:!0,message:t("PARAM_REQUIRED")}],className:A.default.snapshotContainer},E.default.createElement(x,{className:A.default.snapshots,name:"spec.dataSource.name",snapshots:(0,S.toJS)(a),total:r,page:n,loading:l,onChange:this.handeSnapshotChange,onFetch:this.fetchSnapshots})),this.storageClassName&&E.default.createElement(T.Loading,{spinning:o},E.default.createElement(T.Form.Item,{className:"margin-t12",label:t("ACCESS_MODE"),rules:[{required:!0,message:t("PARAM_REQUIRED")}]},E.default.createElement(O.default,{name:"spec.accessModes[0]",defaultValue:(0,y.default)(u,"[0]")||Object.keys(P.ACCESS_MODES)[0],supportedAccessModes:u}))))}},{key:"storageClassName",get:function(){return(0,y.default)(this.context.formData,"spec.storageClassName")}},{key:"supportedAccessModes",get:function(){return(0,I.safeParseJSON)((0,y.default)(this.snapshotClassStore.detail,'annotations["storageclass.kubesphere.io/supported-access-modes"]',""))}}]),r}(E.Component),v.contextTypes={formData:R.default.object},m=h))||m;function x(e){var a=e.onChange,r=e.snapshots,n=e.total,l=e.page,o=e.loading,u=e.onFetch,c=e.value,s=e.className;return E.default.createElement(b.default,{className:s,data:r,total:n,page:l,loading:o,onFetch:u},r.map((function(e){return E.default.createElement("div",{className:(0,C.default)((0,p.default)({},A.default.selected,e.name===c),A.default.snapshot),key:e.uid,onClick:function(){return a(e.name)}},E.default.createElement(T.Icon,{name:"snapshot",type:e.name===c?"light":"dark",size:40}),E.default.createElement("div",null,E.default.createElement("h3",null,e.name),E.default.createElement("p",null,e.snapshotClassName)),E.default.createElement("div",null,E.default.createElement("h3",null,e.restoreSize||0),E.default.createElement("p",null,t("CAPACITY"))),E.default.createElement("div",null,E.default.createElement("h3",null,e.createTime),E.default.createElement("p",null,t("CREATION_TIME_TCAP"))))})))}a.default=j},function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(31),r(84),r(16),r(4),r(23),r(17),r(85),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(31),r(84),r(42),r(16),r(4),r(23),r(57),r(17),r(85);var l=n(r(36)),o=n(r(37)),u=n(r(55)),c=n(r(56)),s=n(r(51)),i=n(r(0)),f=n(r(135)),d=n(r(26)),p=n(r(74)),m=n(r(242)),v=r(72),h=r(186),E=n(r(816)),y=n(r(1101)),g=n(r(1785)),b=n(r(3613)),S=n(r(3614));function _(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,s.default)(e);if(t){var n=(0,s.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,c.default)(this,a)}}var O=[{icon:"snapshot",value:"snapshot",get label(){return t("CREATE_VOLUME_BY_SNAPSHOT")},get description(){return t("SELECT_SNAPSHOT_TO_CREATE_VOLUME")}},{icon:"database",value:"storageClass",get label(){return t("CREATE_VOLUME_BY_STORAGE_CLASS")},get description(){return t("SELECT_STORAGE_CLASS_CREATE_VOLUME")}},{icon:"meta-data",value:"pv",get label(){return t("BIND_EXISTING_PVC")},get description(){return t("BIND_EXISTING_PVC_DESC")}}],C=function(e){return(0,d.default)(e,"spec.volumeName")?"pv":(0,d.default)(e,"spec.dataSource.name")?"snapshot":"storageClass"},T=function(e){(0,u.default)(r,e);var a=_(r);function r(){var e;(0,l.default)(this,r);for(var t=arguments.length,n=new Array(t),o=0;o0&&void 0!==arguments[0]?arguments[0]:{};D(!0);var a=e.formData,l=(0,f.default)(a,"spec.storageClassName");return n.fetchList(R(R({},t),{},{cluster:e.cluster})).then((function(){var e=(0,E.toJS)(n.list.data);P(e.map((function(e){return{label:e.name,value:e.name}})));var t=e.find((function(e){return l===e.name}))||e.find((function(e){return e.default}))||{};L(t),(0,d.default)(r.PersistentVolume,"spec.csi")||(0,f.default)(r.PersistentVolume,"spec.csi.driver")||!/^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$/.test(t.provisioner)||(0,v.default)(r.PersistentVolume,"spec.csi.driver",t.provisioner),D(!1)}))};(0,g.useEffect)((function(){j()}),[]);var x=n.list||{},U=g.useMemo((function(){var e,t=(e=null,M&&(e=(0,S.safeParseJSON)((0,f.default)(M,'annotations["storageclass.kubesphere.io/supported-access-modes"]',""))),(0,p.default)(e)?[]:e);return(0,d.default)(t)?Object.keys(_.ACCESS_MODES):t}),[M]),F=g.useMemo((function(){return U.map((function(e){return{value:e,label:e}}))}),[U]),V=g.useMemo((function(){return"ReadWriteOnce"in U?["ReadWriteOnce"]:U.slice(0,1)}),[U]);return g.createElement("div",{className:C.default.wrapper},g.createElement(s.Form,{ref:a,data:r.PersistentVolume},g.createElement(s.Columns,null,g.createElement(s.Column,null,g.createElement(s.Form.Item,{label:t("STORAGE_CLASS"),desc:t("VOLUME_STORAGE_CLASS_DESC"),rules:[{required:!0,message:t("PARAM_REQUIRED")}]},g.createElement(s.Select,{name:"spec.storageClassName",defaultValue:M.name,pagination:(0,m.default)(x,["page","limit","total"]),isLoading:x.isLoading,onChange:function(e){var t=n.list.data.find((function(t){return t.name===e}))||{};(0,h.default)(r.PersistentVolume,"spec.accessModes"),(0,f.default)(r.PersistentVolume,"spec.csi")&&(0,v.default)(r.PersistentVolume,"spec.csi.driver",t.provisioner),L(t)},options:I,onFetch:j,searchable:!0,clearable:!0}))),g.createElement(s.Column,null,g.createElement(s.Form.Item,{label:t("ACCESS_MODE"),rules:[{required:!0,message:t("PARAM_REQUIRED")}],desc:t("ACCESS_MODES_DESC")},g.createElement(s.Select,{name:"spec.accessModes",options:F,loading:T,defaultValue:V,multi:!0})))),g.createElement("div",{className:C.default.slider},g.createElement(s.Form.Item,{className:C.default.slider,label:t("VOLUME_CAPACITY"),rules:[{validator:function(e,a,r){return parseInt(a,10)<=0?r({message:t("VOLUME_SIZE_TIP"),field:e.field}):r()}}]},g.createElement(i.default,(0,o.default)({name:"spec.capacity.storage"},function(){var e={min:0,max:2048,defaultValue:"10Gi",step:1,unit:"Gi"},t=Number((0,f.default)(M,"parameters.minSize")),a=Number((0,f.default)(M,"parameters.maxSize")),r=Number((0,f.default)(M,"parameters.stepSize"));isNaN(t)||(e.min=t),isNaN(a)||(e.max=a),isNaN(r)||(e.step=r);for(var n=(e.max/e.step-e.min/e.step)/4,l={},o=0;o<4;o++){var u=Math.floor(n*o)*e.step+e.min;l[u]=0===u?"0":"".concat(u,"Gi")}return l[e.max]="".concat(e.max,"Gi"),e.marks=l,e}(),{withInput:!0})))),g.createElement(s.Columns,null,g.createElement(s.Column,null,g.createElement(s.Form.Item,{label:t("VOLUME_MODE")},g.createElement(s.Select,{name:"spec.volumeMode",options:[{label:t("VOLUME_MODE_FILESYSTEM"),value:"Filesystem"},{label:t("BLOCK"),value:"Block"}]}))),g.createElement(s.Column,null,g.createElement(s.Form.Item,{label:t("RECLAIM_POLICY")},g.createElement(s.Select,{name:"spec.persistentVolumeReclaimPolicy",options:[{label:"Retain",value:"Retain"},{label:"Delete",value:"Delete"}]})))),g.createElement(O.default,{formTemplate:r.PersistentVolume})))}));a.default=D},function(e,a,r){"use strict";var n=r(157),l=r(20);r(12),r(11),r(31),r(6),r(18),r(98),r(9),r(13),r(10),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(11),r(31),r(6),r(18),r(28),r(34),r(15),r(98),r(9),r(13),r(10),r(4),r(7);var o=l(r(30)),u=l(r(96)),c=r(186),s=l(r(135)),i=l(r(26)),f=l(r(63)),d=l(r(74)),p=l(r(242)),m=n(r(0)),v=l(r(842)),h=l(r(2063));function E(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function y(e){for(var t=1;t0)){e.next=7;break}return a=[],v.forEach((function(e){var t=(0,i.default)(e._originData,"metadata.annotations",""),n=(0,i.default)(e._originData,'metadata.annotations["alerting.kubesphere.io/initial-configuration"]',"");if(""!==n){var l=JSON.parse(n),o=(0,d.default)(l,"metadata.annotations",t);a.push(r.update(k(k({},e),{},{type:c}),o))}})),e.next=5,Promise.all(a);case 5:e.next=14;break;case 7:if(""!==(o=(0,i.default)(n._originData,'metadata.annotations["alerting.kubesphere.io/initial-configuration"]',""))){e.next=10;break}return e.abrupt("return");case 10:return s=JSON.parse(o),p=(0,d.default)(s,'metadata.annotations["alerting.kubesphere.io/initial-configuration"]',o),e.next=14,r.update(k(k({},n),{},{type:c}),p);case 14:m.default.success({content:t("RESET_SUCCESSFUL")}),h.default.close(E),u&&u();case 17:case"end":return e.stop()}}),e)}))),function(){return a.apply(this,arguments)}),title:t("RESET_ALERTING_POLICY"),desc:f.length>0?t.html("RESET_MULTIPLE_ALERTING_POLICIES_DESC",{name:f.join(",")}):t("RESET_ALERTING_POLICY_DESC"),modal:_.default})}}};a.default=I},function(e,t,a){e.exports={editor:"_3JQlRh-o6JuniWSRDk3cbe",readOnly:"_1-NRR0ZvVwGhsXzTyFruig"}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,a){e.exports={duration:"-SaLSCfbFV8IwEL3sGldL"}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,a){e.exports={body:"_2wR1cHcoTFPowct6lhS7sm",header:"_1jOqrejT-N_BHHdCQb-0Mn",opts:"iZMjxLb3Eo6Hq9DIXiv0b",time:"_1VVyg3AhHjMJpzBLLXWl5s",refresh:"qyYd8KZQc7CrY6RZPRGB",metricEmpty:"_2Bq7rWkA-A9qLWEUe0UDGi",current:"_2KeSgv26nHtSAyiv2ry3s6",main:"_3mYfaiozhmmBh1g4b3-36p",title:"_19Wuw4SPjjZLpELOQMdDMp",line:"_1uAPor3uobJmIoidRolK-y",value:"_1NNfBFfwOyu5pKlP62ABDz",metric:"_2QKdphcMV0-7S4aBy3GYSH"}},function(e,t,a){e.exports={icon:"_3zoeqnSkF53g0SBCoEq19K",title:"_3cXx0QrPrFQYMxrUWD2eD",desc:"_21s3yDXppxrTySFmLkEatQ"}},function(e,t,a){"use strict";a(15);var r=a(20);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(a(1532)),l=r(a(1151)),o=[{title:"BASIC_INFORMATION",component:n.default,required:!0,icon:"cdn"},{title:"ALERTING_RULE",component:l.default,required:!0,icon:"bell"}];t.default=o},function(e,a,r){"use strict";var n=r(20);r(12),r(11),r(6),r(86),r(29),r(73),r(16),r(9),r(13),r(10),r(4),r(22),r(24),r(38),r(136),r(7),r(32),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(11),r(6),r(86),r(29),r(73),r(28),r(191),r(16),r(159),r(34),r(15),r(9),r(13),r(10),r(4),r(22),r(38),r(7),r(32);var l=n(r(43));r(41);var o=n(r(44)),u=n(r(30)),c=n(r(58)),s=n(r(135)),i=n(r(26)),f=n(r(74)),d=r(14),p=n(r(240)),m=n(r(1080)),v=n(r(787)),h=n(r(824)),E=n(r(825)),y=n(r(1533)),g=n(r(1495)),b=n(r(1496)),S=n(r(1293)),_=r(72),O=n(r(435)),C=n(r(901)),T=n(r(2262)),R=n(r(2263));function D(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function N(e){for(var t=1;t0)){e.next=7;break}return a=[],h.forEach((function(e){var t=(0,i.default)(e._originData,"metadata.annotations",""),n=(0,i.default)(e._originData,'metadata.annotations["alerting.kubesphere.io/initial-configuration"]',"");if(""!==n){var l=JSON.parse(n),o=(0,f.default)(l,"metadata.annotations",t);a.push(r.update(N(N({},e),{},{type:c}),o))}})),e.next=5,Promise.all(a);case 5:e.next=14;break;case 7:if(""!==(o=(0,i.default)(n._originData,'metadata.annotations["alerting.kubesphere.io/initial-configuration"]',""))){e.next=10;break}return e.abrupt("return");case 10:return s=JSON.parse(o),d=(0,f.default)(s,'metadata.annotations["alerting.kubesphere.io/initial-configuration"]',o),e.next=14,r.update(N(N({},n),{},{type:c}),d);case 14:p.default.success({content:t("RESET_SUCCESSFUL")}),v.default.close(E),u&&u();case 17:case"end":return e.stop()}}),e)}))),function(){return a.apply(this,arguments)}),title:m.length>0?t("RESET_MULTIPLE_ALERTING_POLICIES"):t("RESET_ALERTING_POLICY"),desc:m.length>0?t.html("RESET_MULTIPLE_ALERTING_POLICIES_DESC",{name:m.join(",")}):t("RESET_ALERTING_POLICY_DESC"),modal:S.default})}}};a.default=I},function(e,a,r){"use strict";r(15);var n=r(157),l=r(20);r(18),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(18);var o=l(r(96)),u=n(r(0)),c=r(72),s=l(r(26)),i=l(r(2245)),f=l(r(2246)),d=function(e){var a=e.AddRuleClick,r=e.formTemplate,n=e.handleEdit,l=e.handleDisable,d=e.handleDelete,p=e.onEdit,m=(0,u.useState)((0,s.default)(r,"spec.rules",[])),v=(0,o.default)(m,1)[0],h=function(e,t){n(e,t),p&&p()};return u.default.createElement("div",{className:i.default.ruleContainer},v.map((function(t,a){return u.default.createElement(f.default,{rule:t,key:a,handleEdit:function(){return h(a,t)},handleDisable:function(e){return l(a,e)},handleDelete:function(){return d(a)},builtInRule:e.builtInRule})})),!e.builtInRule&&v.length"),metricThreshold:(0,c.default)(r,"exprBuilder.node.metricThreshold",{}),for:(0,c.default)(r,"for","1m"),severity:(0,c.default)(r,"severity","critical")}},disable:(0,c.default)(r,"disable",!1),labels:(0,c.default)(r,"labels")}})),E=(0,o.default)(l,1)[0],y=(0,u.useRef)();(0,u.useImperativeHandle)(a,(function(){return{target:y.current}}));return u.default.createElement(d.Form,{data:E,ref:y},u.default.createElement("div",{className:h.default.label},t("RULE_SETTINGS")),u.default.createElement("div",{className:h.default.contentGroup},u.default.createElement(d.Form.Item,{label:t("RULE_NAME"),desc:t("CUSTOM_RULE_NAME_DESC"),rules:[{required:!0,message:t("RULE_NAME_REQUIRED")}]},u.default.createElement(d.Input,{name:"alert",maxLength:63})),u.default.createElement(m.default,{isEdgeWize:e.isEdgeWize,resourceType:"node",targetName:"exprBuilder.node.names",namespace:e.namespace,cluster:e.cluster,formTemplate:E}),u.default.createElement(d.Form.Item,{label:t("TRIGGER_CONDITION"),rules:[{required:!0,message:t("SET_ACTIVATION_CONDITION_DESC")},{validator:function(e,a,r){if(!a)return r();if((0,s.default)(a.comparator))return r({message:t("OPERATOR_REQUIRED"),field:e.field});if((0,s.default)(a.metricThreshold))return r({message:t("THRESHOLD_REQUIRED"),field:e.field});var n=Object.keys(a.metricThreshold)[0],l=Object.keys(a.metricThreshold[n])[0],o=a.metricThreshold[n][l];return""===o||!o||(0,f.default)(o)?r({message:t("THRESHOLD_REQUIRED"),field:e.field}):(0,i.default)(o,".")?r({message:t("THRESHOLD_INVALID"),field:e.field}):void r()}}]},u.default.createElement(p.default,{resourceType:"node",name:"exprBuilder.node",isEdge:n}))),u.default.createElement(v.default,null),u.default.createElement("div",{className:h.default.label},t("MESSAGE_SETTINGS")),u.default.createElement("div",{className:h.default.contentGroup},u.default.createElement(d.Form.Item,{className:h.default.message,label:t("MESSAGE_SUMMARY"),desc:t("MESSAGE_SUMMARY_DESC"),rules:[{required:!0,message:t("MESSAGE_REQUIRED")}]},u.default.createElement(d.Input,{name:"annotations.summary",maxLength:63})),u.default.createElement(d.Form.Item,{className:h.default.message,label:t("MESSAGE_DETAILS"),desc:t("MESSAGE_DETAILS_DESC")},u.default.createElement(d.TextArea,{name:"annotations.message",maxLength:256}))))},y=(0,u.forwardRef)(E);a.default=y},function(e,t,a){e.exports={inputs:"_N1QK3FSwZyUhmC5jvOfQ",type:"_3O6Tj_XW8-2d_0gkNgidLZ",comparator:"_3BQEWdpKyP0mgOK1FmNQ8l",thresholds:"WhWgUkL7AhyqWObEY28sj",normalSelect:"_2H5F4jdmw4f72x69vMsbXf",optionLabel:"_1KeB3k29XzD3WLjiYFmIQS",slider:"_17HczGprJRLyJeH8J4rvWL",condition_type:"_2zLx0kVpfomH5fkfT6F4Io"}},function(e,t,a){"use strict";a(15);var r=a(20);a(4),a(23),a(17),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(45),a(42),a(4),a(23),a(57),a(17);var n=r(a(36)),l=r(a(37)),o=r(a(55)),u=r(a(56)),c=r(a(51)),s=r(a(0)),i=r(a(1535)),f=r(a(2255));function d(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,c.default)(e);if(t){var n=(0,c.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,u.default)(this,a)}}var p=function(e){(0,o.default)(a,e);var t=d(a);function a(){return(0,n.default)(this,a),t.apply(this,arguments)}return(0,l.default)(a,[{key:"render",value:function(){return this.props.namespace?s.default.createElement(i.default,this.props):s.default.createElement(f.default,this.props)}}]),a}(s.default.Component);t.default=p},function(e,t,a){e.exports={alertRule:"_316Veyextczp08TAHWy-rA"}},function(e,a,r){"use strict";var n=r(157),l=r(20);r(12),r(5),r(11),r(6),r(18),r(16),r(9),r(13),r(10),r(4),r(23),r(17),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(45),r(5),r(11),r(6),r(18),r(28),r(42),r(16),r(34),r(15),r(9),r(13),r(10),r(4),r(23),r(57),r(17),r(7);var o=l(r(30)),u=l(r(36)),c=l(r(37)),s=l(r(55)),i=l(r(56)),f=l(r(51)),d=n(r(0)),p=l(r(241)),m=r(186),v=l(r(856)),h=l(r(1039));function E(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function y(e){for(var t=1;t"),metricThreshold:(0,i.default)(r,"exprBuilder.workload.metricThreshold",{}),for:(0,i.default)(r,"for","1m"),severity:(0,i.default)(r,"severity","critical")},workloadKind:{kind:S[(0,i.default)(r,"exprBuilder.workload.kind","Deployment")],names:(0,i.default)(r,"exprBuilder.workload.names",[])}},disable:(0,i.default)(r,"disable",!1),labels:(0,i.default)(r,"labels")}})),_=(0,u.default)(l,1)[0],O=(0,c.useState)(!1),C=(0,u.default)(O,2),T=C[0],R=C[1],D=(0,c.useState)([]),N=(0,u.default)(D,2),k=N[0],I=N[1],P=(0,c.useRef)({Deployment:n?new v.default("deployments"):new m.default("deployments"),StatefulSet:n?new v.default("statefulsets"):new m.default("statefulsets"),DaemonSet:n?new v.default("daemonsets"):new m.default("daemonsets")}),A=(0,c.useRef)();(0,c.useImperativeHandle)(a,(function(){return{target:A.current}}));var w=(0,c.useCallback)((function(t,a){var r=e.cluster,n=e.namespace,l=P.current[t];R(!0),l.fetchList(function(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:{unit:""},l=a.unit,o=(0,i.default)(g);if((0,f.default)(o,"exprBuilder.thresholds",e.thresholds),(0,f.default)(o,"exprBuilder.comparator",e.comparator),t&&((0,f.default)(o,"exprBuilder.metricType",t),(0,d.default)(r))){var u=(0,s.default)(v.ALL_SUMMARY_CONFIG,t,"").replaceAll("$CLUSTERID",n).replaceAll("$THRESHOLD"," ").replaceAll("$UNIT",l),c=(0,s.default)(v.ALL_MESSAGE_CONFIG,t,"").replaceAll("$CLUSTERID",n).replaceAll("$THRESHOLD"," ").replaceAll("$UNIT",l);(0,f.default)(o,"annotations.summary",u),(0,f.default)(o,"annotations.message",c)}(0,f.default)(o,"for",e.duration),(0,f.default)(o,"severity",e.severity),b(o)}}))),u.default.createElement(h.default,null),u.default.createElement("div",{className:p.default.label},t("MESSAGE_SETTINGS")),u.default.createElement("div",{className:p.default.contentGroup},u.default.createElement(c.Form.Item,{label:t("MESSAGE_SUMMARY"),desc:t("MESSAGE_SUMMARY_DESC"),rules:[{required:!0,message:t("MESSAGE_REQUIRED")}]},u.default.createElement(c.Input,{name:"annotations.summary",maxLength:63})),u.default.createElement(c.Form.Item,{label:t("MESSAGE_DETAILS"),desc:t("MESSAGE_DETAILS_DESC")},u.default.createElement(c.TextArea,{name:"annotations.message",maxLength:256}))))},y=(0,u.forwardRef)(E);a.default=y},function(e,t,a){e.exports={label:"XS1LS4IFOQ8CNQ2AsfMJv",contentGroup:"j3tnwlodcDpj5qv8eo3k8",inputs:"_1iFffDJTXDmoJLjUhAqOwd"}},function(e,a,r){"use strict";var n=r(20);r(12),r(11),r(31),r(6),r(18),r(16),r(27),r(98),r(9),r(13),r(10),r(4),r(23),r(24),r(17),r(64),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var l=n(r(96)),o=n(r(315)),u=n(r(58)),c=n(r(30)),s=n(r(36)),i=n(r(37)),f=n(r(88)),d=n(r(55)),p=n(r(56)),m=n(r(51));r(12),r(45),r(11),r(31),r(6),r(18),r(28),r(42),r(16),r(27),r(34),r(15),r(98),r(9),r(13),r(10),r(4),r(23),r(57),r(24),r(17),r(64),r(7);var v=n(r(0)),h=n(r(1)),E=n(r(3)),y=n(r(76)),g=n(r(26)),b=n(r(135)),S=r(52),_=r(186),O=n(r(799)),C=n(r(1028)),T=n(r(2275)),R=r(930),D=r(1294);function N(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function k(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:[];return e.map((function(e){var a=e.prefixIcon,r=e.color,n=e.type,l=e.label,o=e.value,u=e.disabled,c={label:t(l,{value:o}),value:o};return a&&(c.label=v.default.createElement("div",{className:(0,E.default)(T.default.optionLabel,T.default[n])},v.default.createElement(_.Icon,{name:a,size:20,color:r}),c.label)),u&&(c.disabled=u),c}))},n.handleMetricTypeChange=function(e){var t=n.state,a=t.severity,r=t.duration,l=n.metricConfig.find((function(t){return t.value===e})),o=(0,g.default)(l,"ruleConfig[0].value","");n.setState({metricType:e,thresholds:"",comparator:o},(function(){n.props.handleMetricChange({thresholds:"",comparator:o,severity:a,duration:r},e,{unit:(0,g.default)(l,"ruleConfig[1].unit")})}))},n.handleItemChange=function(e){return(0,S.cacheFunc)(e,(function(t,a){var r=n.props.handleMetricChange,l=(0,y.default)(a)||!a?t:a;"thresholds"===e&&(l=String(l).replace(/([a-zA-Z%/])+$/g,"")),n.setState((0,c.default)({},e,l),(function(){var t=n.state,a=t.comparator,o=t.thresholds,u=t.duration,c=t.severity;r({thresholds:"thresholds"===e?Number(l):o,comparator:"comparator"===e?l:a,duration:u,severity:c})}))}),(0,f.default)(n))},n.handleDurationChange=function(e){var t=n.state,a=t.severity,r=t.thresholds,l=t.comparator;n.setState({duration:e},(function(){n.props.handleMetricChange({thresholds:r,duration:e,severity:a,comparator:l})}))},n.handleSeverityChange=function(e){var t=n.state,a=t.duration,r=t.thresholds,l=t.comparator;n.setState({severity:e},(function(){n.props.handleMetricChange({thresholds:r,duration:a,comparator:l,severity:e})}))},n.renderConfigItem=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=e.type,r=e.name,l=e.placeholder,c=e.options,s=void 0===c?[]:c,i=(e.converter,(0,u.default)(e,["type","name","placeholder","options","converter"])),f={key:r,className:T.default[r],placeholder:t(l),value:(0,g.default)(n.state,r),onChange:n.handleItemChange(r)};switch(a){default:case"select":var d=n.getSelectOptions(s);return v.default.createElement(_.Select,(0,o.default)({options:d},f,i));case"number":return v.default.createElement(O.default,(0,o.default)({showUnit:!0},f,i))}},n.state=k({metricType:e.metricType||n.metricConfig[0].value},n.getStateFromProps(e)),n.metricOps=n.getSelectOptions(n.metricConfig),n}return(0,i.default)(r,[{key:"componentDidMount",value:function(){var e=this;if(!this.props.metricType){var t=this.state,a=t.comparator,r=t.thresholds;this.setState({comparator:a||(0,g.default)(this.ruleConfig,"[0].value",a),thresholds:""!==r?Number(r):(0,g.default)(this.ruleConfig,"[1].value",r)},(function(){e.props.handleMetricChange({thresholds:e.state.thresholds,duration:e.state.duration,severity:e.state.severity,comparator:e.state.comparator},e.state.metricType,{unit:(0,g.default)(e.ruleConfig,"[1].unit")})}))}}},{key:"render",value:function(){var e=this.state,t=e.metricType,a=e.duration,r=e.severity,n=this.ruleConfig;return v.default.createElement("div",{className:T.default.inputs},v.default.createElement(_.Select,{className:T.default.type,options:this.metricOps,value:t,onChange:this.handleMetricTypeChange}),n.map(this.renderConfigItem),v.default.createElement(_.Select,{value:a,options:P,onChange:this.handleDurationChange}),v.default.createElement(C.default,{value:r,options:A,onChange:this.handleSeverityChange}))}},{key:"resourceMetricsConfig",get:function(){var e=this.props.resourceType;return(0,b.default)(D.RESOURCE_METRICS_CONFIG[e])||{}}},{key:"metricConfig",get:function(){var e=this.resourceMetricsConfig;return Object.entries(e).map((function(e){var t=(0,l.default)(e,2);return k({value:t[0]},t[1])}))}},{key:"selectMetricConfig",get:function(){var e=this.state.metricType;return this.metricConfig.find((function(t){return t.value===e}))}},{key:"ruleConfig",get:function(){return(0,g.default)(this.selectMetricConfig,"ruleConfig")||[]}}]),r}(v.default.Component);w.propTypes={value:h.default.object,onChange:h.default.func},w.defaultProps={metricConfig:[],value:{},onChange:function(){}};var M=w;a.default=M},function(e,t,a){e.exports={inputs:"_1ElkAbsvtdzOOkcnK66XzH",type:"_3cqi7bYJMHmrQClJeRoobj",optionLabel:"_2Rm48iWjjbNabO0sdXSIeT",slider:"UOTqYNeayjqXhLKY5L4Nt",condition_type:"_21FGEK2QjdUrcDOZPnqz3c"}},,,,,,function(e,t,a){"use strict";a(15);var r=a(20);a(18),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(a(30));a(18);var l=a(969),o=a(930),u=[{NameZh:"MySQL下线",NameEn:"MySQLIsDown",Expression:'mysql_up{namespace="$NAMESPACE",service="$CLUSTERID-metrics"} == 0',Operator:"N/A",Unit:"N/A",ProposedDuration:"1m",Explain:"MySQL下线",Summary:"RadonDB MySQL 【$CLUSTERID】 MySQL下线",Message:"RadonDB MySQL: $CLUSTERID,MySQL下线。 当前值:{{ $value }}"},{NameZh:"主从复制延迟",NameEn:"MySQLSlaveBehindMaster",Expression:'rate(mysql_slave_status_seconds_behind_master{namespace="$NAMESPACE",service="$CLUSTERID-metrics"}[1m])',Operator:">",Unit:"s",ProposedDuration:"1m",Explain:"从库落后主库$THRESHOLD$UNIT ",Summary:"RadonDB MySQL 【$CLUSTERID】 从库落后主库$THRESHOLD$UNIT ",Message:"RadonDB MySQL: $CLUSTERID,从库落后主库$THRESHOLD$UNIT 。 当前值:{{ $value }}"},{NameZh:"CPU使用率",NameEn:"MySQLCPUUtilization",Expression:'(sum(irate(container_cpu_usage_seconds_total{namespace="$NAMESPACE",pod=~".*$CLUSTERID.*",container!="POD",container!=""}[3m])) by (pod)) / (sum(kube_pod_container_resource_limits{resource="cpu",namespace="$NAMESPACE",pod=~".*$CLUSTERID.*"}) by (pod)) * 100',Operator:">",Unit:"%",ProposedDuration:"1m",Explain:"CPU使用率超过$THRESHOLD$UNIT",Summary:"RadonDB MySQL 【$CLUSTERID】 CPU使用率超过$THRESHOLD$UNIT",Message:"RadonDB MySQL: $CLUSTERID,CPU使用率超过$THRESHOLD$UNIT。 当前值:{{ $value }}"},{NameZh:"内存使用率",NameEn:"MySQLMemUtilization",Expression:'(sum(container_memory_working_set_bytes{namespace="$NAMESPACE",pod=~".*$CLUSTERID.*",container!="POD",container!=""}) by (pod)) / (sum(kube_pod_container_resource_limits{resource="memory",namespace="$NAMESPACE",pod=~".*$CLUSTERID.*"}) by (pod)) * 100',Operator:">",Unit:"%",ProposedDuration:"1m",Explain:"内存使用率超过$THRESHOLD$UNIT",Summary:"RadonDB MySQL 【$CLUSTERID】 内存使用率超过$THRESHOLD$UNIT",Message:"RadonDB MySQL: $CLUSTERID,内存使用率超过$THRESHOLD$UNIT。 当前值:{{ $value }}"},{NameZh:"磁盘使用率",NameEn:"MySQLDisk",Expression:'(kubelet_volume_stats_used_bytes{persistentvolumeclaim=~".*$CLUSTERID.*"} / kubelet_volume_stats_capacity_bytes{persistentvolumeclaim=~".*$CLUSTERID.*"} * 100)',Operator:">",Unit:"%",ProposedDuration:"1m",Explain:"磁盘使用率超过$THRESHOLD$UNIT",Summary:"RadonDB MySQL 【$CLUSTERID】 磁盘使用率超过$THRESHOLD$UNIT",Message:"RadonDB MySQL: $CLUSTERID,磁盘使用率超过$THRESHOLD$UNIT。 当前值:{{ $value }}"},{NameZh:"连接数利用率",NameEn:"MySQLTooManyConnections",Expression:'mysql_global_status_max_used_connections{namespace="$NAMESPACE",service="$CLUSTERID-metrics"} / mysql_global_variables_max_connections{namespace="$NAMESPACE",service="$CLUSTERID-metrics"} * 100',Operator:">",Unit:"%",ProposedDuration:"1m",Explain:"连接数使用超过$THRESHOLD$UNIT",Summary:"RadonDB MySQL 【$CLUSTERID】 连接数使用超过$THRESHOLD$UNIT",Message:"RadonDB MySQL: $CLUSTERID,连接数使用超过$THRESHOLD$UNIT。 当前值:{{ $value }}"}],c={Metric:{MySQLIsDown:{label:"MySQLIsDown",autoComplete:!0,ruleConfig:l.disabledRuleConfig},MySQLSlaveBehindMaster:{label:"MySQLSlaveBehindMaster",ruleConfig:l.TIME_RULE_CONFIG},MySQLCPUUtilization:{label:"MySQLCPUUtilization",ruleConfig:l.PERCENT_RULE_CONFIG},MySQLMemUtilization:{label:"MySQLMemUtilization",ruleConfig:l.PERCENT_RULE_CONFIG},MySQLDisk:{label:"MySQLDisk",ruleConfig:l.PERCENT_RULE_CONFIG},MySQLTooManyConnections:{label:"MySQLTooManyConnections",ruleConfig:l.PERCENT_RULE_CONFIG}},Query:(0,o.arrayToObject)(u.map((function(e){return(0,n.default)({},e.NameEn,e.Expression)}))),Message:(0,o.arrayToObject)(u.map((function(e){return(0,n.default)({},e.NameEn,e.Message)}))),Summary:(0,o.arrayToObject)(u.map((function(e){return(0,n.default)({},e.NameEn,e.Summary)})))};t.default=c},function(e,t,a){"use strict";a(15);var r=a(20);a(18),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(a(30));a(18);var l=a(930),o=a(969),u=[{NameEn:"PGUnhealth",Expression:'pg_auto_failover_unhealth_count{namespace="$NAMESPACE",service="$CLUSTERID-autofailover"} != 0',Operator:"N/A",Unit:"N/A",ProposedDuration:"1m",Summary:"PostgreSQL 节点不健康。",Message:"PostgreSQL 节点不健康。"},{NameEn:"PGAsync",Expression:'pg_auto_failover_async_count{namespace="$NAMESPACE",service="$CLUSTERID-autofailover"} != 0',Operator:">",Unit:"s",ProposedDuration:"1m",Summary:"PostgreSQL 节点出现异步模式。",Message:"PostgreSQL 节点出现异步模式。"},{NameEn:"PGNotRunning",Expression:'pg_auto_failover_not_running_count{namespace="$NAMESPACE",service="$CLUSTERID-autofailover"} != 0',Operator:">",Unit:"s",ProposedDuration:"1m",Summary:"PostgreSQL 未运行。",Message:"PostgreSQL 未运行。"},{NameEn:"PGInvalid",Expression:'pg_auto_failover_not_running_count{namespace="$NAMESPACE",service="$CLUSTERID-autofailover"} != 0 ',Operator:">",Unit:"s",ProposedDuration:"1m",Summary:"PostgreSQL 存在无效节点。",Message:"PostgreSQL 存在无效节点。"},{NameEn:"PGCPUUtilization",Expression:'(sum(irate(container_cpu_usage_seconds_total{namespace="$NAMESPACE",pod=~".*$CLUSTERID-readwriteinstance.*|.*$CLUSTERID-readonlyinstance.*",container="postgresql"}[3m])) by (pod)) / (sum(kube_pod_container_resource_limits{resource="cpu", container="postgresql", namespace="$NAMESPACE",pod=~".*$CLUSTERID-readwriteinstance.*|.*$CLUSTERID-readonlyinstance.*"}) by (pod)) * 100',Operator:">",Unit:"%",ProposedDuration:"1m",Summary:"RadonDB PostgreSQL 【$CLUSTERID】 CPU使用率超过$THRESHOLD$UNIT。",Message:"RadonDB PostgreSQL: $CLUSTERID,CPU使用率超过$THRESHOLD$UNIT。 当前值:{{ $value }}"},{NameEn:"PGMemUtilization",Expression:'(sum(container_memory_working_set_bytes{namespace="$NAMESPACE",pod=~".*$CLUSTERID-readwriteinstance.*|.*$CLUSTERID-readonlyinstance.*",container="postgresql"}) by (pod)) / (sum(kube_pod_container_resource_limits{resource="memory", container="postgresql", namespace="$NAMESPACE", pod=~".*$CLUSTERID-readwriteinstance.*|.*$CLUSTERID-readonlyinstance.*"}) by (pod)) * 100',Operator:">",Unit:"%",ProposedDuration:"1m",Summary:"RadonDB PostgreSQL 【$CLUSTERID】 内存使用率超过$THRESHOLD$UNIT。",Message:"RadonDB PostgreSQL: $CLUSTERID,内存使用率超过$THRESHOLD$UNIT。 当前值:{{ $value }}"},{NameEn:"PGDisk",Expression:'kubelet_volume_stats_used_bytes{persistentvolumeclaim=~".*$CLUSTERID-readwriteinstance.*|.*$CLUSTERID-readonlyinstance.*"} / kubelet_volume_stats_capacity_bytes{persistentvolumeclaim=~".*$CLUSTERID-readwriteinstance.*|.*$CLUSTERID-readonlyinstance.*"} * 100',Operator:">",Unit:"%",ProposedDuration:"1m",Summary:"RadonDB PostgreSQL 【$CLUSTERID】 磁盘使用率超过$THRESHOLD$UNIT。",Message:"RadonDB PostgreSQL: $CLUSTERID,磁盘使用率超过$THRESHOLD$UNIT。 当前值:{{ $value }}"},{NameEn:"PGConnPerc",Expression:'(sum(pg_stat_database_numbackends{namespace="$NAMESPACE",service=~"$CLUSTERID-readwrite|$CLUSTERID-standby-readonly"}) by (pod) / sum(pg_settings_max_connections{namespace="$NAMESPACE",service=~"$CLUSTERID-readwrite|$CLUSTERID-standby-readonly"}) by (pod)) * 100',Operator:">",Unit:"%",ProposedDuration:"1m",Summary:"RadonDB PostgreSQL 【$CLUSTERID】 连接数消耗已超过最大可用连接数的$THRESHOLD$UNIT",Message:"RadonDB PostgreSQL: $CLUSTERID,连接数消耗已超过最大可用连接数的$THRESHOLD$UNIT。 当前值:{{ $value }}"},{NameEn:"PGCacheHitRatio",Expression:'round(100*sum(pg_stat_database_blks_hit{namespace="$NAMESPACE",service=~"$CLUSTERID-readwrite|$CLUSTERID-standby-readonly"}) by(pod) / (sum(pg_stat_database_blks_hit{namespace="$NAMESPACE",service=~"$CLUSTERID-readwrite|$CLUSTERID-standby-readonly"}) by(pod) + sum(pg_stat_database_blks_read{namespace="$NAMESPACE",service=~"$CLUSTERID-readwrite|$CLUSTERID-standby-readonly"}) by(pod)),0.1)',Operator:">",Unit:"%",ProposedDuration:"1m",Summary:"RadonDB PostgreSQL 【$CLUSTERID】 缓存命中率小于$THRESHOLD$UNIT。",Message:"RadonDB PostgreSQL: $CLUSTERID,缓存命中率小于$THRESHOLD$UNIT。 当前值:{{ $value }}"},{NameEn:"MaxTxDuration",Expression:'max(pg_stat_activity_max_tx_duration{namespace="$NAMESPACE",service=~"$CLUSTERID-readwrite|$CLUSTERID-standby-readonly"})',Operator:">",Unit:"%",ProposedDuration:"1m",Summary:"RadonDB PostgreSQL 【$CLUSTERID】 最大事务持续时间超过$THRESHOLD$UNIT。",Message:"RadonDB PostgreSQL: $CLUSTERID,最大事务持续时间超过$THRESHOLD$UNIT。 当前值:{{ $value }}"}],c={Metric:{PGUnhealth:{label:"PGUnhealth",autoComplete:!0,ruleConfig:o.disabledRuleConfig},PGAsync:{label:"PGAsync",ruleConfig:o.disabledRuleConfig},PGNotRunning:{label:"PGNotRunning",ruleConfig:o.disabledRuleConfig},PGInvalid:{label:"PGInvalid",ruleConfig:o.disabledRuleConfig},PGCPUUtilization:{label:"PGCPUUtilization",ruleConfig:o.PERCENT_RULE_CONFIG},PGMemUtilization:{label:"PGMemUtilization",ruleConfig:o.PERCENT_RULE_CONFIG},PGDisk:{label:"PGDisk",autoComplete:!0,ruleConfig:o.PERCENT_RULE_CONFIG},PGConnPerc:{label:"PGConnPerc",ruleConfig:o.PERCENT_RULE_CONFIG},PGCacheHitRatio:{label:"PGCacheHitRatio",ruleConfig:o.PERCENT_RULE_CONFIG},MaxTxDuration:{label:"MaxTxDuration",autoComplete:!0,ruleConfig:o.TIME_RULE_CONFIG}},Query:(0,l.arrayToObject)(u.map((function(e){return(0,n.default)({},e.NameEn,e.Expression)}))),Message:(0,l.arrayToObject)(u.map((function(e){return(0,n.default)({},e.NameEn,e.Message)}))),Summary:(0,l.arrayToObject)(u.map((function(e){return(0,n.default)({},e.NameEn,e.Summary)})))};t.default=c},function(e,t,a){"use strict";a(15);var r=a(20);a(18),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(a(30));a(18);var l=a(930),o=a(969),u=[{NameZh:"ClickHouse服务下线",NameEn:"ClickHouseServerDown",Expression:'chi_clickhouse_metric_fetch_errors{namespace="$NAMESPACE",service="clickhouse-$CLUSTERID",fetch_type="system.metrics"} > 0',Operator:"N/A",Unit:"N/A",ProposedDuration:"1m",Explain:"ClickHouse 无法提供数据库服务",Summary:"RadonDB ClickHouse 【$CLUSTERID】 ClickHouse 无法提供数据库服务",Message:"RadonDB ClickHouse: $CLUSTERID,ClickHouse 无法提供数据库服务。 当前值:{{ $value }}"},{NameZh:"ClickHouse服务重启",NameEn:"ClickHouseServerRestartRecently",Expression:'chi_clickhouse_metric_Uptime{namespace="$NAMESPACE",service="clickhouse-$CLUSTERID"} > 1 < 180',Operator:"N/A",Unit:"N/A",ProposedDuration:"1m",Explain:"clickhouse server进程已在不到3分钟前启动",Summary:"RadonDB ClickHouse 【$CLUSTERID】 clickhouse server进程已在不到3分钟前启动",Message:"RadonDB ClickHouse: $CLUSTERID,clickhouse server进程已在不到3分钟前启动。查看之前的ClickHouse pod日志,以调查重启原因。 当前值:{{ $value }}"},{NameZh:"ClickHouse分布式表文件插入频繁",NameEn:"ClickHouseDistributedFilesToInsertHigh",Expression:'chi_clickhouse_metric_DistributedFilesToInsert{namespace="$NAMESPACE",service="clickhouse-$CLUSTERID"}',Operator:">",Unit:"个",ProposedDuration:"1m",Explain:"clickhouse服务器超过$THRESHOLD$UNIT分布式文件在做插入操作",Summary:"RadonDB ClickHouse 【$CLUSTERID】 clickhouse服务器超过$THRESHOLD$UNIT分布式文件在做插入操作",Message:"RadonDB ClickHouse: $CLUSTERID,clickhouse服务器超过$THRESHOLD$UNIT分布式文件在做插入操作。 当前值:{{ $value }}"},{NameZh:"ClickHouse分布式连接异常",NameEn:"ClickHouseDistributedConnectionExceptions",Expression:'increase(chi_clickhouse_event_DistributedConnectionFailTry{namespace="$NAMESPACE",service="clickhouse-$CLUSTERID"}[1m]) > 0 or increase(chi_clickhouse_event_DistributedConnectionFailAtAll{namespace="$NAMESPACE",service="clickhouse-$CLUSTERID"}[1m]) > 0',Operator:"N/A",Unit:"N/A",ProposedDuration:"1m",Explain:"分布式连接发生异常",Summary:"RadonDB ClickHouse 【$CLUSTERID】 分布式连接发生异常",Message:"RadonDB ClickHouse: $CLUSTERID,分布式连接发生异常。 当前值:{{ $value }}"},{NameZh:"ClickHouse拒绝Insert操作",NameEn:"ClickHouseRejectedInsert",Expression:'increase(chi_clickhouse_event_RejectedInserts{namespace="$NAMESPACE",service="clickhouse-$CLUSTERID"}[1m]) > 0',Operator:"N/A",Unit:"N/A",ProposedDuration:"1m",Explain:"出现拒绝插入异常",Summary:"RadonDB ClickHouse 【$CLUSTERID】 出现拒绝插入异常",Message:"RadonDB ClickHouse: $CLUSTERID,出现拒绝插入异常。 当前值:{{ $value }}"},{NameZh:"ClickHouse低插入元组数",NameEn:"ClickHouseLowInsertedRowsPerQuery",Expression:'increase(chi_clickhouse_event_InsertQuery{namespace="$NAMESPACE",service="clickhouse-$CLUSTERID"}[1m]) > 0 and (increase(chi_clickhouse_event_InsertedRows{namespace="$NAMESPACE",service="clickhouse-$CLUSTERID"}[1m]) / increase(chi_clickhouse_event_InsertQuery{namespace="$NAMESPACE",service="clickhouse-$CLUSTERID"}[1m]) <= 1000)',Operator:"N/A",Unit:"N/A",ProposedDuration:"1m",Explain:"建议增加每次Insert操作的插入元组数",Summary:"RadonDB ClickHouse 【$CLUSTERID】 建议增加每次Insert操作的插入元组数",Message:"RadonDB ClickHouse: $CLUSTERID,建议增加每次Insert操作的插入元组数。 当前值:{{ $value }}"},{NameZh:"ClickHouse慢查询",NameEn:"ClickHouseLongestRunningQuery",Expression:'chi_clickhouse_metric_LongestRunningQuery{namespace="$NAMESPACE",service="clickhouse-$CLUSTERID"} > 600',Operator:"N/A",Unit:"N/A",ProposedDuration:"1m",Explain:"出现了长时间运行的慢查询",Summary:"RadonDB ClickHouse 【$CLUSTERID】 出现了长时间运行的慢查询",Message:"RadonDB ClickHouse: $CLUSTERID,出现了长时间运行的慢查询。 当前值:{{ $value }}"},{NameZh:"ClickHouse抢占查询",NameEn:"ClickHouseQueryPreempted",Expression:'chi_clickhouse_metric_QueryPreempted{namespace="$NAMESPACE",service="clickhouse-$CLUSTERID"} > 0',Operator:"N/A",Unit:"N/A",ProposedDuration:"1m",Explain:"发生了抢占查询",Summary:"RadonDB ClickHouse 【$CLUSTERID】 发生了抢占查询",Message:"RadonDB ClickHouse: $CLUSTERID,发生了抢占查询。 当前值:{{ $value }}"},{NameZh:"ClickHouse太多连接数",NameEn:"ClickHouseTooManyConnections",Expression:'chi_clickhouse_metric_HTTPConnection{namespace="$NAMESPACE",service="clickhouse-$CLUSTERID"} + chi_clickhouse_metric_TCPConnection{namespace="$NAMESPACE",service="clickhouse-$CLUSTERID"} + chi_clickhouse_metric_MySQLConnection{namespace="$NAMESPACE",service="clickhouse-$CLUSTERID"}',Operator:">",Unit:"个",ProposedDuration:"1m",Explain:"总连接数超过了$THRESHOLD$UNIT",Summary:"RadonDB ClickHouse 【$CLUSTERID】 总连接数超过了$THRESHOLD$UNIT",Message:"RadonDB ClickHouse: $CLUSTERID,总连接数超过了$THRESHOLD$UNIT。 当前值:{{ $value }}"},{NameZh:"ClickHouse太多查询",NameEn:"ClickHouseTooManyRunningQueries",Expression:'chi_clickhouse_metric_Query{namespace="$NAMESPACE",service="clickhouse-$CLUSTERID"}',Operator:">",Unit:"个",ProposedDuration:"1m",Explain:"太多运行着的查询,超过了$THRESHOLD$UNIT",Summary:"RadonDB ClickHouse 【$CLUSTERID】 太多运行着的查询,超过了$THRESHOLD$UNIT",Message:"RadonDB ClickHouse: $CLUSTERID,太多运行着的查询,超过了$THRESHOLD$UNIT。 当前值:{{ $value }}"}],c={Metric:{ClickHouseServerDown:{label:"ClickHouseServerDown",autoComplete:!0,ruleConfig:o.disabledRuleConfig},ClickHouseServerRestartRecently:{label:"ClickHouseServerRestartRecently",autoComplete:!0,ruleConfig:o.disabledRuleConfig},ClickHouseDistributedFilesToInsertHigh:{label:"ClickHouseDistributedFilesToInsertHigh",ruleConfig:o.ITEM_RULE_CONFIG},ClickHouseLowInsertedRowsPerQuery:{label:"ClickHouseLowInsertedRowsPerQuery",autoComplete:!0,ruleConfig:o.disabledRuleConfig},ClickHouseLongestRunningQuery:{label:"ClickHouseLongestRunningQuery",autoComplete:!0,ruleConfig:o.disabledRuleConfig},ClickHouseQueryPreempted:{label:"ClickHouseQueryPreempted",autoComplete:!0,ruleConfig:o.disabledRuleConfig},ClickHouseTooManyConnections:{label:"ClickHouseTooManyConnections",ruleConfig:o.ITEM_RULE_CONFIG},ClickHouseTooManyRunningQueries:{label:"ClickHouseTooManyRunningQueries",ruleConfig:o.ITEM_RULE_CONFIG}},Query:(0,l.arrayToObject)(u.map((function(e){return(0,n.default)({},e.NameEn,e.Expression)}))),Message:(0,l.arrayToObject)(u.map((function(e){return(0,n.default)({},e.NameEn,e.Message)}))),Summary:(0,l.arrayToObject)(u.map((function(e){return(0,n.default)({},e.NameEn,e.Summary)})))};t.default=c},function(e,t,a){"use strict";a(15);var r=a(20);a(18),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(a(30));a(18);var l=a(930),o=a(969),u=[{NameZh:"当前连接数过多",NameEn:"MongodbTooManyConnections",Expression:'mongodb_connections_current{namespace="$NAMESPACE",cluster_name="$CLUSTERID"}',Operator:">",Unit:"个",ProposedDuration:"1m",Explain:"当前连接数超过$THRESHOLD$UNIT",Summary:"RadonDB MongoDB 【$CLUSTERID】 当前连接数超过$THRESHOLD$UNIT",Message:"RadonDB MongoDB: $CLUSTERID,当前连接数超过$THRESHOLD$UNIT。 当前值:{{ $value }}"},{NameZh:"当前游标打开数量过多",NameEn:"MongodbTooManyCursors",Expression:'mongodb_metrics_cursor_open_total{namespace="$NAMESPACE",cluster_name="$CLUSTERID"}',Operator:">",Unit:"个",ProposedDuration:"1m",Explain:"当前游标打开数量大于$THRESHOLD$UNIT",Summary:"RadonDB MongoDB 【$CLUSTERID】 当前游标打开数量大于$THRESHOLD$UNIT",Message:"RadonDB MongoDB: $CLUSTERID,当前游标打开数量大于$THRESHOLD$UNIT。 当前值:{{ $value }}"},{NameZh:"当前事务读并发已达到最大值",NameEn:"MongodbMaxTransactionConcurrentRead",Expression:'mongodb_wiredTiger_concurrentTransactions_read_out{namespace="$NAMESPACE",cluster_name="$CLUSTERID"} >= 128',Operator:"N/A",Unit:"N/A",ProposedDuration:"1m",Explain:"当前事务读并发已达到最大值128",Summary:"RadonDB MongoDB 【$CLUSTERID】 当前事务读并发已达到最大值128",Message:"RadonDB MongoDB: $CLUSTERID,当前事务读并发已达到最大值128。 当前值:{{ $value }}"},{NameZh:"当前事务写并发已达到最大值",NameEn:"MongodbMaxTransactionConcurrentWrite",Expression:'mongodb_wiredTiger_concurrentTransactions_write_out{namespace="$NAMESPACE",cluster_name="$CLUSTERID"} >= 128',Operator:"N/A",Unit:"N/A",ProposedDuration:"1m",Explain:"当前事务写并发已达到最大值128",Summary:"RadonDB MongoDB 【$CLUSTERID】 当前事务写并发已达到最大值128",Message:"RadonDB MongoDB: $CLUSTERID,当前事务写并发已达到最大值128。 当前值:{{ $value }}"},{NameZh:"WiredTiger 内存使用达到90%",NameEn:"MongoDBWiredTigerUsageEvition",Expression:'mongodb_wiredTiger_cache_bytes_currently_in_the_cache{namespace="$NAMESPACE",cluster_name="$CLUSTERID"}/mongodb_wiredTiger_cache_maximum_bytes_configured{namespace="$NAMESPACE",cluster_name="$CLUSTERID"} * 100 >= 90',Operator:"N/A",Unit:"N/A",ProposedDuration:"1m",Explain:"WiredTiger 内存使用达到90%",Summary:"RadonDB MongoDB 【$CLUSTERID】 WiredTiger 内存使用达到90%",Message:"RadonDB MongoDB: $CLUSTERID,WiredTiger 内存使用达到90%。 当前值:{{ $value }}"},{NameZh:"WiredTiger 内存脏页达到20%",NameEn:"MongoDBWiredTigerDirtyEvition",Expression:'mongodb_wiredTiger_cache_tracked_dirty_bytes_in_the_cache{namespace="$NAMESPACE",cluster_name="$CLUSTERID"}/mongodb_wiredTiger_cache_maximum_bytes_configured{namespace="$NAMESPACE",cluster_name="$CLUSTERID"} * 100 >= 20',Operator:"N/A",Unit:"N/A",ProposedDuration:"1m",Explain:"WiredTiger 内存脏页达到20%",Summary:"RadonDB MongoDB 【$CLUSTERID】 WiredTiger 内存脏页达到20%",Message:"RadonDB MongoDB: $CLUSTERID,WiredTiger 内存脏页达到20%。 当前值:{{ $value }}"}],c={Metric:{MongodbTooManyConnections:{label:"MongodbTooManyConnections",ruleConfig:o.ITEM_RULE_CONFIG},MongodbTooManyCursors:{label:"MongodbTooManyCursors",ruleConfig:o.ITEM_RULE_CONFIG},MongodbMaxTransactionConcurrentRead:{label:"MongodbMaxTransactionConcurrentRead",autoComplete:!0,ruleConfig:o.disabledRuleConfig},MongodbMaxTransactionConcurrentWrite:{label:"MongodbMaxTransactionConcurrentWrite",autoComplete:!0,ruleConfig:o.disabledRuleConfig},MongoDBWiredTigerUsageEvition:{label:"MongoDBWiredTigerUsageEvition",autoComplete:!0,ruleConfig:o.disabledRuleConfig},MongoDBWiredTigerDirtyEvition:{label:"MongoDBWiredTigerDirtyEvition",autoComplete:!0,ruleConfig:o.disabledRuleConfig}},Query:(0,l.arrayToObject)(u.map((function(e){return(0,n.default)({},e.NameEn,e.Expression)}))),Message:(0,l.arrayToObject)(u.map((function(e){return(0,n.default)({},e.NameEn,e.Message)}))),Summary:(0,l.arrayToObject)(u.map((function(e){return(0,n.default)({},e.NameEn,e.Summary)})))};t.default=c},function(e,t,a){"use strict";a(15);var r=a(20);a(18),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(a(30));a(18);var l=a(969),o=a(930),u=[{NameZh:"Redis连接数过多",NameEn:"Redis Client Usage",Expression:'redis_connected_clients{namespace="$NAMESPACE",service=~".*$CLUSTERID.*"}/redis_config_maxclients{namespace="$NAMESPACE",service=~".*$CLUSTERID.*"}*100',Operator:">",Unit:"%",ProposedDuration:"1m",Explain:"当前连接数使用超过$THRESHOLD$UNIT",Summary:"RadonDB Redis 【$CLUSTERID】 当前连接数使用超过$THRESHOLD$UNIT",Message:"RadonDB Redis: $CLUSTERID,当前连接数使用超过$THRESHOLD$UNIT。 当前值:{{ $value }}"},{NameZh:"被拒绝的Key个数",NameEn:"Evicted Keys",Expression:'redis_evicted_keys_total{namespace="$NAMESPACE",service=~".*$CLUSTERID.*"}',Operator:">",Unit:"个",ProposedDuration:"1m",Explain:"被拒绝的key的个数达到$THRESHOLD$UNIT",Summary:"RadonDB Redis 【$CLUSTERID】 被拒绝的key的个数达到$THRESHOLD$UNIT",Message:"RadonDB Redis: $CLUSTERID,被拒绝的key的个数达到$THRESHOLD$UNIT。 当前值:{{ $value }}"},{NameZh:"内存使用率",NameEn:"Memory Usage",Expression:'redis_memory_used_bytes{namespace="$NAMESPACE",service=~".*$CLUSTERID.*"}/redis_memory_max_bytes{namespace="$NAMESPACE",service=~".*$CLUSTERID.*"}*100',Operator:">",Unit:"%",ProposedDuration:"1m",Explain:"当前内存使用率超过$THRESHOLD$UNIT",Summary:"RadonDB Redis 【$CLUSTERID】 当前内存使用率超过$THRESHOLD$UNIT",Message:"RadonDB Redis: $CLUSTERID,当前内存使用率超过$THRESHOLD$UNIT。 当前值:{{ $value }}"},{NameZh:"阻塞的客户端数",NameEn:"Blocked Clients",Expression:'redis_blocked_clients{namespace="$NAMESPACE",service=~".*$CLUSTERID.*"}',Operator:">",Unit:"个",ProposedDuration:"1m",Explain:"阻塞客户端数超过$THRESHOLD$UNIT",Summary:"RadonDB Redis 【$CLUSTERID】 阻塞客户端数超过$THRESHOLD$UNIT",Message:"RadonDB Redis: $CLUSTERID,阻塞客户端数超过$THRESHOLD$UNIT。 当前值:{{ $value }}"},{NameZh:"拒绝的连接数",NameEn:"Rejected Connections",Expression:'rate(redis_rejected_connections_total{namespace="$NAMESPACE",service=~".*$CLUSTERID.*"}[5m])',Operator:">",Unit:"%",ProposedDuration:"1m",Explain:"拒绝的连接数超过$THRESHOLD$UNIT",Summary:"RadonDB Redis 【$CLUSTERID】 拒绝的连接数超过$THRESHOLD$UNIT",Message:"RadonDB Redis: $CLUSTERID,拒绝的连接数超过$THRESHOLD$UNIT。 当前值:{{ $value }}"},{NameZh:"已使用的rss字节数",NameEn:"Used RSS Bytes",Expression:'redis_memory_used_rss_bytes{namespace="$NAMESPACE",service=~".*$CLUSTERID.*"}',Operator:">",Unit:"byte",ProposedDuration:"1m",Explain:"内存已经使用的内存大小超过$THRESHOLD$UNIT",Summary:"RadonDB Redis 【$CLUSTERID】 内存已经使用的内存大小超过$THRESHOLD$UNIT",Message:"RadonDB Redis: $CLUSTERID,内存已经使用的内存大小超过$THRESHOLD$UNIT。 当前值:{{ $value }}"},{NameZh:"内存碎片率",NameEn:"Memory Fragmentation Ratio",Expression:'redis_mem_fragmentation_ratio{namespace="$NAMESPACE",service=~".*$CLUSTERID.*"} > 1.5 ',Operator:"N/A",Unit:"N/A",ProposedDuration:"1m",Explain:"内存碎片率过大,超过1.5",Summary:"RadonDB Redis 【$CLUSTERID】 内存碎片率过大,超过1.5",Message:"RadonDB Redis: $CLUSTERID,内存碎片率过大,超过1.5。 当前值:{{ $value }}"}],c={Metric:{"Redis Client Usage":{label:"Redis Client Usage",ruleConfig:l.PERCENT_RULE_CONFIG},"Evicted Keys":{label:"Evicted Keys",ruleConfig:l.ITEM_RULE_CONFIG},"Memory Usage":{label:"Memory Usage",ruleConfig:l.PERCENT_RULE_CONFIG},"Blocked Clients":{label:"Blocked Clients",ruleConfig:l.ITEM_RULE_CONFIG},"Rejected Connections":{label:"Rejected Connections",ruleConfig:l.PERCENT_RULE_CONFIG},"Used RSS Bytes":{label:"Used RSS Bytes",ruleConfig:l.BYTE_RULE_CONFIG},"Memory Fragmentation Ratio":{label:"Memory Fragmentation Ratio",autoComplete:!0,ruleConfig:l.disabledRuleConfig}},Query:(0,o.arrayToObject)(u.map((function(e){return(0,n.default)({},e.NameEn,e.Expression)}))),Message:(0,o.arrayToObject)(u.map((function(e){return(0,n.default)({},e.NameEn,e.Message)}))),Summary:(0,o.arrayToObject)(u.map((function(e){return(0,n.default)({},e.NameEn,e.Summary)})))};t.default=c},function(e,t,a){"use strict";a(15);var r=a(20);a(18),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(a(30));a(18);var l=a(969),o=a(930),u=[{NameZh:"集群健康状态为 yellow",NameEn:"ClusterHealthStatusYellow",Expression:'elasticsearch_cluster_health_status{service="$CLUSTERID-es-elasticsearch-exporter",namespace="$NAMESPACE",color="yellow"} == 1',Operator:"N/A",Unit:"N/A",ProposedDuration:"3m",Explain:"集群健康状态为 yellow",Summary:"RadonDB Elasticsearch 【$CLUSTERID】 集群健康状态为 yellow",Message:"RadonDB Elasticsearch: $CLUSTERID,集群健康状态为 yellow。 当前值:{{ $value }}"},{NameZh:"集群健康状态为 red",NameEn:"ClusterHealthStatusRed",Expression:'elasticsearch_cluster_health_status{service="$CLUSTERID-es-elasticsearch-exporter",namespace="$NAMESPACE",color="red"} == 1',Operator:"N/A",Unit:"N/A",ProposedDuration:"3m",Explain:"集群健康状态为 red",Summary:"RadonDB Elasticsearch 【$CLUSTERID】 集群健康状态为 red",Message:"RadonDB Elasticsearch: $CLUSTERID,集群健康状态为 red。 当前值:{{ $value }}"},{NameZh:"堆内存使用率超过85%",NameEn:"HeapMemTooHigh85%",Expression:'max(round(elasticsearch_jvm_memory_used_bytes{service="$CLUSTERID-es-elasticsearch-exporter",namespace="$NAMESPACE",area="heap"}/elasticsearch_jvm_memory_max_bytes{service="$CLUSTERID-es-elasticsearch-exporter",namespace="$NAMESPACE",area="heap"}*100,0.1)) > 85',Operator:"N/A",Unit:"N/A",ProposedDuration:"3m",Explain:"堆内存使用率超过85%",Summary:"RadonDB Elasticsearch 【$CLUSTERID】 堆内存使用率超过85%",Message:"RadonDB Elasticsearch: $CLUSTERID,堆内存使用率超过85%。 当前值:{{ $value }}"},{NameZh:"堆内存使用率超过90%",NameEn:"HeapMemTooHigh90%",Expression:'max(round(elasticsearch_jvm_memory_used_bytes{service="$CLUSTERID-es-elasticsearch-exporter",namespace="$NAMESPACE",area="heap"}/elasticsearch_jvm_memory_max_bytes{service="$CLUSTERID-es-elasticsearch-exporter",namespace="$NAMESPACE",area="heap"}*100,0.1)) > 90',Operator:"N/A",Unit:"N/A",ProposedDuration:"3m",Explain:"堆内存使用率超过90%",Summary:"RadonDB Elasticsearch 【$CLUSTERID】 堆内存使用率超过90%",Message:"RadonDB Elasticsearch: $CLUSTERID,堆内存使用率超过90%。 当前值:{{ $value }}"},{NameZh:"CPU使用率超过90%",NameEn:"CPUUsageOver90%",Expression:'max(elasticsearch_os_cpu_percent{service="$CLUSTERID-es-elasticsearch-exporter",namespace="$NAMESPACE"}) > 90',Operator:"N/A",Unit:"N/A",ProposedDuration:"3m",Explain:"CPU使用率超过90%",Summary:"RadonDB Elasticsearch 【$CLUSTERID】 CPU使用率超过90%",Message:"RadonDB Elasticsearch: $CLUSTERID,CPU使用率超过90%。 当前值:{{ $value }}"},{NameZh:"磁盘可用百分比小于15%",NameEn:"AvailableDiskLessThan15%",Expression:'min(round(elasticsearch_filesystem_data_free_bytes{service="$CLUSTERID-es-elasticsearch-exporter",namespace="$NAMESPACE"}/elasticsearch_filesystem_data_size_bytes{service="$CLUSTERID-es-elasticsearch-exporter",namespace="$NAMESPACE"}*100,0.1)) < 15',Operator:"N/A",Unit:"N/A",ProposedDuration:"1m",Explain:"磁盘可用百分比小于15%",Summary:"RadonDB Elasticsearch 【$CLUSTERID】 磁盘可用百分比小于15%",Message:"RadonDB Elasticsearch: $CLUSTERID,磁盘可用百分比小于15%。 当前值:{{ $value }}"},{NameZh:"磁盘可用百分比小于10%",NameEn:"AvailableDiskLessThan10%",Expression:'min(round(elasticsearch_filesystem_data_free_bytes{service="$CLUSTERID-es-elasticsearch-exporter",namespace="$NAMESPACE"}/elasticsearch_filesystem_data_size_bytes{service="$CLUSTERID-es-elasticsearch-exporter",namespace="$NAMESPACE"}*100,0.1)) < 10',Operator:"N/A",Unit:"N/A",ProposedDuration:"1m",Explain:"磁盘可用百分比小于10%",Summary:"RadonDB Elasticsearch 【$CLUSTERID】 磁盘可用百分比小于10%",Message:"RadonDB Elasticsearch: $CLUSTERID,磁盘可用百分比小于10%。 当前值:{{ $value }}"},{NameZh:"磁盘可用百分比小于5%",NameEn:"AvailableDiskLessThan5%",Expression:'min(round(elasticsearch_filesystem_data_free_bytes{service="$CLUSTERID-es-elasticsearch-exporter",namespace="$NAMESPACE"}/elasticsearch_filesystem_data_size_bytes{service="$CLUSTERID-es-elasticsearch-exporter",namespace="$NAMESPACE"}*100,0.1)) < 5',Operator:"N/A",Unit:"N/A",ProposedDuration:"1m",Explain:"磁盘可用百分比小于5%",Summary:"RadonDB Elasticsearch 【$CLUSTERID】 磁盘可用百分比小于5%",Message:"RadonDB Elasticsearch: $CLUSTERID,磁盘可用百分比小于5%。 当前值:{{ $value }}"}],c={Metric:{ClusterHealthStatusYellow:{label:"ClusterHealthStatusYellow",autoComplete:!0,ruleConfig:l.disabledRuleConfig},ClusterHealthStatusRed:{label:"ClusterHealthStatusRed",autoComplete:!0,ruleConfig:l.disabledRuleConfig},"HeapMemTooHigh85%":{label:"HeapMemTooHigh85%",autoComplete:!0,ruleConfig:l.disabledRuleConfig},"HeapMemTooHigh90%":{label:"HeapMemTooHigh90%",autoComplete:!0,ruleConfig:l.disabledRuleConfig},"CPUUsageOver90%":{label:"CPUUsageOver90%",autoComplete:!0,ruleConfig:l.disabledRuleConfig},"AvailableDiskLessThan15%":{label:"AvailableDiskLessThan15%",autoComplete:!0,ruleConfig:l.disabledRuleConfig},"AvailableDiskLessThan10%":{label:"AvailableDiskLessThan10%",autoComplete:!0,ruleConfig:l.disabledRuleConfig},"AvailableDiskLessThan5%":{label:"AvailableDiskLessThan5%",autoComplete:!0,ruleConfig:l.disabledRuleConfig}},Query:(0,o.arrayToObject)(u.map((function(e){return(0,n.default)({},e.NameEn,e.Expression)}))),Message:(0,o.arrayToObject)(u.map((function(e){return(0,n.default)({},e.NameEn,e.Message)}))),Summary:(0,o.arrayToObject)(u.map((function(e){return(0,n.default)({},e.NameEn,e.Summary)})))};t.default=c},function(e,t,a){"use strict";a(15);var r=a(20);a(18),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(a(30));a(18);var l=a(969),o=a(930),u=[{NameZh:"存在不可用的 partitions",NameEn:"ExistOfflinePartitions",Expression:'sum(kafka_controller_kafkacontroller_offlinepartitionscount{namespace="$NAMESPACE",strimzi_io_cluster="$CLUSTERID"}) > 0',Operator:"N/A",Unit:"N/A",Summary:"存在不可用的partitions。",Message:""},{NameZh:"存在ISR数目小于最小ISR的partitions",NameEn:"ExistPartitionsUnderMinimumISR",Expression:'sum(kafka_cluster_partition_underminisr{namespace="$NAMESPACE",strimzi_io_cluster="$CLUSTERID"}) > 0',Operator:"N/A",Unit:"N/A",ProposedDuration:"3m",Summary:"存在ISR数目小于最小ISR的partitions。",Message:""},{NameZh:"堆内存使用率超过85%",NameEn:"KafkaHeapMemTooHigh85%",Expression:'round(sum(jvm_memory_bytes_used{namespace="$NAMESPACE",strimzi_io_name="$CLUSTERID-kafka"})/sum(jvm_memory_bytes_max{namespace="$NAMESPACE",strimzi_io_name="$CLUSTERID-kafka"})*100,0.1) > 85',Operator:"N/A",Unit:"N/A",ProposedDuration:"3m",Summary:"堆内存使用率超过85%。",Message:""},{NameZh:"磁盘可用百分比小于15%",NameEn:"KafkaAvailableDiskLessThan15%",Expression:'round(sum(kubelet_volume_stats_available_bytes{namespace="$NAMESPACE",persistentvolumeclaim=~"data-0-$CLUSTERID-kafka.*"})/sum(kubelet_volume_stats_capacity_bytes{namespace="$NAMESPACE",persistentvolumeclaim=~"data-0-$CLUSTERID-kafka.*"})*100,0.1) < 15',Operator:"N/A",Unit:"N/A",ProposedDuration:"3m",Summary:"磁盘可用百分比小于15%。",Message:""},{NameZh:"磁盘可用百分比小于10%",NameEn:"KafkaAvailableDiskLessThan10%",Expression:'round(sum(kubelet_volume_stats_available_bytes{namespace="$NAMESPACE",persistentvolumeclaim=~"data-0-$CLUSTERID-kafka.*"})/sum(kubelet_volume_stats_capacity_bytes{namespace="$NAMESPACE",persistentvolumeclaim=~"data-0-$CLUSTERID-kafka.*"})*100,0.1) < 10',Operator:"N/A",Unit:"N/A",ProposedDuration:"3m",Summary:"磁盘可用百分比小于10%。",Message:""},{NameZh:"磁盘可用百分比小于5%",NameEn:"KafkaAvailableDiskLessThan5%",Expression:'round(sum(kubelet_volume_stats_available_bytes{namespace="$NAMESPACE",persistentvolumeclaim=~"data-0-$CLUSTERID-kafka.*"})/sum(kubelet_volume_stats_capacity_bytes{namespace="$NAMESPACE",persistentvolumeclaim=~"data-0-$CLUSTERID-kafka.*"})*100,0.1) < 5',Operator:"N/A",Unit:"N/A",ProposedDuration:"1m",Summary:"磁盘可用百分比小于5%。",Message:""},{NameZh:"平均响应时间超过1000ms",NameEn:"RequestLatencyAverage1s",Expression:'zookeeper_avgrequestlatency{namespace="$NAMESPACE",kubernetes_pod_name=~"$CLUSTERID-zookeeper.*"} > 1000',Operator:"N/A",Unit:"N/A",ProposedDuration:"1m",Summary:"平均响应时间超过1000ms。",Message:""}],c={Metric:{ExistOfflinePartitions:{label:"ExistOfflinePartitions",autoComplete:!0,ruleConfig:l.disabledRuleConfig},ExistPartitionsUnderMinimumISR:{label:"ExistPartitionsUnderMinimumISR",autoComplete:!0,ruleConfig:l.disabledRuleConfig},"KafkaHeapMemTooHigh85%":{label:"HeapMemTooHigh85%",autoComplete:!0,ruleConfig:l.disabledRuleConfig},"KafkaAvailableDiskLessThan15%":{label:"AvailableDiskLessThan15%",autoComplete:!0,ruleConfig:l.disabledRuleConfig},"KafkaAvailableDiskLessThan10%":{label:"AvailableDiskLessThan10%",autoComplete:!0,ruleConfig:l.disabledRuleConfig},"KafkaAvailableDiskLessThan5%":{label:"AvailableDiskLessThan5%",autoComplete:!0,ruleConfig:l.disabledRuleConfig},RequestLatencyAverage1s:{label:"RequestLatencyAverage1s",autoComplete:!0,ruleConfig:l.disabledRuleConfig}},Query:(0,o.arrayToObject)(u.map((function(e){return(0,n.default)({},e.NameEn,e.Expression)}))),Message:(0,o.arrayToObject)(u.map((function(e){return(0,n.default)({},e.NameEn,e.Message)}))),Summary:(0,o.arrayToObject)(u.map((function(e){return(0,n.default)({},e.NameEn,e.Summary)})))};t.default=c},function(e,t,a){"use strict";a(15);var r=a(20);a(18),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(a(30));a(18);var l=a(969),o=a(930),u=[{NameEn:"OpenSearchClusterHealthStatusYellow",Expression:'max(opensearch_cluster_status{service="$CLUSTERID",namespace="$NAMESPACE"})==1',Operator:"N/A",Unit:"N/A",ProposedDuration:"3m",Summary:"RadonDB OpenSearch 【$CLUSTERID】 集群健康状态为 yellow",Message:"RadonDB OpenSearch: $CLUSTERID,集群健康状态为 yellow。 当前值:{{ $value }}"},{NameEn:"OpenSearchClusterHealthStatusRed",Expression:'max(opensearch_cluster_status{service="$CLUSTERID",namespace="$NAMESPACE"})==2',Operator:"N/A",Unit:"N/A",ProposedDuration:"3m",Summary:"RadonDB OpenSearch 【$CLUSTERID】 集群健康状态为 red",Message:"RadonDB OpenSearch: $CLUSTERID,集群健康状态为 red。 当前值:{{ $value }}"},{NameEn:"OpenSearchHeapMemTooHigh85%",Expression:'max(opensearch_jvm_mem_heap_used_percent{service="$CLUSTERID",namespace="$NAMESPACE"})>85',Operator:"N/A",Unit:"N/A",ProposedDuration:"3m",Summary:"RadonDB OpenSearch 【$CLUSTERID】 堆内存使用率超过85%",Message:"RadonDB OpenSearch: $CLUSTERID,堆内存使用率超过85%。 当前值:{{ $value }}"},{NameEn:"OpenSearchHeapMemTooHigh90%",Expression:'max(opensearch_jvm_mem_heap_used_percent{service="$CLUSTERID",namespace="$NAMESPACE"})>90',Operator:"N/A",Unit:"N/A",ProposedDuration:"3m",Summary:"RadonDB OpenSearch 【$CLUSTERID】 堆内存使用率超过90%",Message:"RadonDB OpenSearch: $CLUSTERID,堆内存使用率超过90%。 当前值:{{ $value }}"},{NameEn:"OpenSearchCPUUsageOver90%",Expression:'max(opensearch_os_cpu_percent{service="$CLUSTERID",namespace="$NAMESPACE"})>90',Operator:"N/A",Unit:"N/A",ProposedDuration:"3m",Summary:"RadonDB OpenSearch 【$CLUSTERID】 CPU使用率超过90%",Message:"RadonDB OpenSearch: $CLUSTERID,CPU使用率超过90%。 当前值:{{ $value }}"},{NameEn:"OpenSearchAvailableDiskLessThan15%",Expression:'min(round(opensearch_fs_total_available_bytes{service="$CLUSTERID",namespace="$NAMESPACE"}/opensearch_fs_total_total_bytes{service="$CLUSTERID",namespace="$NAMESPACE"}*100,0.1))<15',Operator:"N/A",Unit:"N/A",ProposedDuration:"1m",Summary:"RadonDB OpenSearch 【$CLUSTERID】 磁盘可用百分比小于15%",Message:"RadonDB OpenSearch: $CLUSTERID,磁盘可用百分比小于15%。 当前值:{{ $value }}"},{NameEn:"OpenSearchAvailableDiskLessThan10%",Expression:'min(round(opensearch_fs_total_available_bytes{service="$CLUSTERID",namespace="$NAMESPACE"}/opensearch_fs_total_total_bytes{service="$CLUSTERID",namespace="$NAMESPACE"}*100,0.1))<10',Operator:"N/A",Unit:"N/A",ProposedDuration:"1m",Summary:"RadonDB OpenSearch 【$CLUSTERID】 磁盘可用百分比小于10%",Message:"RadonDB OpenSearch: $CLUSTERID,磁盘可用百分比小于10%。 当前值:{{ $value }}"},{NameEn:"OpenSearchAvailableDiskLessThan5%",Expression:'min(round(opensearch_fs_total_available_bytes{service="$CLUSTERID",namespace="$NAMESPACE"}/opensearch_fs_total_total_bytes{service="$CLUSTERID",namespace="$NAMESPACE"}*100,0.1))<5',Operator:"N/A",Unit:"N/A",ProposedDuration:"1m",Summary:"RadonDB OpenSearch 【$CLUSTERID】 磁盘可用百分比小于5%",Message:"RadonDB OpenSearch: $CLUSTERID,磁盘可用百分比小于5%。 当前值:{{ $value }}"}],c={Metric:{OpenSearchClusterHealthStatusYellow:{label:"ClusterHealthStatusYellow",autoComplete:!0,ruleConfig:l.disabledRuleConfig},OpenSearchClusterHealthStatusRed:{label:"ClusterHealthStatusRed",autoComplete:!0,ruleConfig:l.disabledRuleConfig},"OpenSearchHeapMemTooHigh85%":{label:"HeapMemTooHigh85%",autoComplete:!0,ruleConfig:l.disabledRuleConfig},"OpenSearchHeapMemTooHigh90%":{label:"HeapMemTooHigh90%",autoComplete:!0,ruleConfig:l.disabledRuleConfig},"OpenSearchCPUUsageOver90%":{label:"CPUUsageOver90%",autoComplete:!0,ruleConfig:l.disabledRuleConfig},"OpenSearchAvailableDiskLessThan15%":{label:"AvailableDiskLessThan15%",autoComplete:!0,ruleConfig:l.disabledRuleConfig},"OpenSearchAvailableDiskLessThan10%":{label:"AvailableDiskLessThan10%",autoComplete:!0,ruleConfig:l.disabledRuleConfig},"OpenSearchAvailableDiskLessThan5%":{label:"AvailableDiskLessThan5%",autoComplete:!0,ruleConfig:l.disabledRuleConfig}},Query:(0,o.arrayToObject)(u.map((function(e){return(0,n.default)({},e.NameEn,e.Expression)}))),Message:(0,o.arrayToObject)(u.map((function(e){return(0,n.default)({},e.NameEn,e.Message)}))),Summary:(0,o.arrayToObject)(u.map((function(e){return(0,n.default)({},e.NameEn,e.Summary)})))};t.default=c},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,a,r){"use strict";var n=r(20);r(12),r(5),r(11),r(6),r(16),r(9),r(13),r(10),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(5),r(11),r(6),r(28),r(16),r(34),r(15),r(9),r(13),r(10),r(4),r(22),r(7);var l=n(r(43));r(41);var o=n(r(44)),u=n(r(30)),c=n(r(58)),s=n(r(26)),i=n(r(74)),f=n(r(63)),d=n(r(189)),p=n(r(240)),m=n(r(787)),v=r(52),h=n(r(435)),E=r(72),y=n(r(1606)),g=n(r(825)),b=n(r(2612)),S=n(r(1609)),_=n(r(1610)),O=n(r(1625)),C=n(r(917)),T=n(r(1179));function R(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function D(e){for(var t=1;t1){a=!0;break}n++}})),a},n.handleGoBack=function(){var e=n.context.resetSubRoute;return e&&e(),n.props.onCancel(),!1},n.handleProtocolChange=function(e){n.setState({protocol:e})},n.handleSubmit=function(e){var t=n.props.onSave,a=n.formRef.current;a&&a.validate((function(){var r=a.getData();t(r),e&&e()}))},n.handleValidator=function(){var e=!1,t=n.formRef.current;return t&&t.validate((function(){e=!0})),e},n.domainValidator=function(e,a,r){var l,o=n.props,u=o.isFederated,c=o.data,s=o.validData,d=o.detail,m=(0,i.default)(d,"clusters",[]).map((function(e){return e.name})),v=!!(null==s||null===(l=s.metadata)||void 0===l?void 0:l.creationTimestamp)?"put":"post";if(!a)return r();var h=n.props.cluster||n.defaultClusters,E=(0,i.default)(s,"metadata.namespace",""),y=(0,i.default)(s,"metadata.name","");u&&((0,f.default)(s,"apiVersion","networking.k8s.io/v1"),(0,f.default)(s,"kind","Ingress"),(0,f.default)(s,"spec",{})),(0,f.default)(s,"spec.rules",[{host:a}]),(null==c?void 0:c.clusters)?Promise.all(c.clusters.map((function(e){return-1===(0,p.default)(m,e)&&(v="post"),n.ingressStore.checkValidDomain({cluster:e,namespace:E,name:y},s,v).then((function(e){return e.exist}))}))).then((function(a){if(a.some((function(e){return e})))return r({message:t("EXIT_DOMAIN_DESC"),field:e.field});r()})):(h=u?"":h,n.ingressStore.checkValidDomain({cluster:h,namespace:E,name:y},s,v).then((function(a){if(a.exist)return r({message:t("EXIT_DOMAIN_DESC"),field:e.field});r()})))},n.state={service:"",protocol:(0,i.default)(e,"data.protocol","http")},n.formRef=m.default.createRef(),n.ingressStore=new S.default,n}return(0,o.default)(r,[{key:"componentDidMount",value:function(){var e=this.context.registerSubRoute;e&&e(this.handleSubmit,this.handleGoBack)}},{key:"getType",value:function(e){var t=(0,i.default)(e,"host");if(!t)return"auto";var a=this.props,r=a.gateway,n=a.projectDetail,l=a.namespace,o=(0,i.default)(e,"http.paths[0].backend.service.name"),u=(0,i.default)(n,'_originData.metadata.labels["kubesphere.io/namespace"]')||l;return t===(r.isHostName?r.defaultIngress:"".concat((0,O.withDot)(o)).concat((0,O.withDot)(u)).concat((0,O.withDot)(r.defaultIngress),"nip.io"))?"auto":"specify"}},{key:"renderForm",value:function(){var e,a,r=this.state.protocol;return m.default.createElement(m.default.Fragment,null,m.default.createElement(E.Form.Item,{label:t("DOMAIN_NAME_TCAP"),key:null===(e=this.props.data)||void 0===e||null===(a=e.clusters)||void 0===a?void 0:a.length,rules:[{required:!0,message:t("DOMAIN_NAME_EMPTY_DESC")},{pattern:_.PATTERN_HOST,message:t("INVALID_DOMAIN_DESC")},{validator:this.domainValidator}]},m.default.createElement(E.Input,{name:"host",autoFocus:!0})),m.default.createElement(E.Form.Item,{label:t("PROTOCOL")},m.default.createElement(E.Select,{name:"protocol",defaultValue:"http",onChange:this.handleProtocolChange,options:this.protocols})),"https"===r&&m.default.createElement(E.Form.Item,{label:t("SECRET")},m.default.createElement(E.Select,{name:"secretName",options:this.secrets,placeholder:" "})),m.default.createElement(E.Form.Item,{label:t("PATH_PL"),rules:[{required:!0,message:t("PATH_EMPTY_DESC")},{validator:this.pathValidator,checkOnSubmit:!0}]},m.default.createElement(y.default,{name:"http.paths",itemType:"object",addText:t("ADD"),checkItemValid:this.checkItemValid},m.default.createElement(g.default,{services:this.props.services}))))}},{key:"render",value:function(){var e=this,a=this.props,r=a.data,n=a.className,l=a.isFederated;return m.default.createElement("div",{className:(0,v.default)(T.default.wrapper,n)},m.default.createElement("div",{className:"h4"},m.default.createElement("a",{className:"custom-icon",onClick:this.handleGoBack},m.default.createElement(b.ReactComponent,null)),t("SET_ROUTING_RULES")),m.default.createElement("div",{className:T.default.formWrapper},m.default.createElement(E.Form,{ref:this.formRef,data:r},l&&m.default.createElement(E.Form.Group,{label:t("CLUSTER")},m.default.createElement(E.Form.Item,null,m.default.createElement(C.default,{name:"clusters",options:this.clusters,defaultValue:this.defaultClusters,onChange:function(){(0,f.default)(r,"host",""),e.forceUpdate()}}))),m.default.createElement(E.Form.Group,{noWrapper:!0},this.renderForm()))))}},{key:"protocols",get:function(){return[{label:"HTTP",value:"http"},{label:"HTTPS",value:"https"}]}},{key:"secrets",get:function(){return this.props.secrets.map((function(e){return{label:e.name,value:e.name}}))}},{key:"clusters",get:function(){return(0,i.default)(this.props,"projectDetail.clusters",[]).slice()}},{key:"clusterNames",get:function(){var e;return null==this||null===(e=this.clusters)||void 0===e?void 0:e.map((function(e){return e.name}))}},{key:"defaultClusters",get:function(){return(0,i.default)(this.props,"projectDetail.clusters",[]).map((function(e){return e.name}))}},{key:"enableAutoGenerated",get:function(){var e=this.props,t=e.isFederated,a=e.gateway;return!t&&!(0,d.default)(a.defaultIngress)}}]),r}(m.default.Component);a.default=D,D.propTypes={data:h.default.object,secrets:h.default.array,services:h.default.array,gateway:h.default.object,onSave:h.default.func,onCancel:h.default.func},D.defaultProps={data:{},secrets:[],services:[],gateway:{},onSave:function(){},onCancel:function(){}},D.contextTypes={registerSubRoute:h.default.func,resetSubRoute:h.default.func}},,,,,function(e,t,a){e.exports={wrapper:"_3--VX5nESZHibBLwCNMfSL",advance:"_2EJlmbhXorbkEHtrN5QqEi",toggle:"_2S7NwpmHoQs9jxrplqTMLA",customFormItem:"_1u5SUDiQDf_eLXCZDmMJJO",formWrapper:"_2dDLG5BZ_t68ckVmZFy-RR",form:"_2YOPmzRJE1x018vTgrvqht"}},function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(16),r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(42),r(16),r(4),r(22),r(23),r(57),r(17);var l=n(r(43));r(41);var o=n(r(44)),u=n(r(36)),c=n(r(37)),s=n(r(55)),i=n(r(56)),f=n(r(51)),d=n(r(0)),p=n(r(26)),m=n(r(63)),v=n(r(895)),h=n(r(74)),E=r(72),y=r(186),g=n(r(834)),b=n(r(2610));function S(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,f.default)(e);if(t){var n=(0,f.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,i.default)(this,a)}}var _=function(e){(0,s.default)(n,e);var a,r=S(n);function n(e){var t;return(0,u.default)(this,n),(t=r.call(this,e)).getGateway=(0,o.default)(l.default.mark((function e(){var a,r,n;return l.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.props.isFederated){e.next=9;break}return a=function(){return t.gatewayStore.getGatewayByProject({namespace:t.namespace,cluster:t.cluster})},t.setState({isLoading:!0}),e.next=5,a();case 5:r=e.sent,(n=r[0]||r[1]||r[2]||{}).serviceMeshEnable&&(0,h.default)(t.formTemplate,'metadata.annotations["nginx.ingress.kubernetes.io/service-upstream"]',"true"),t.setState({gateway:n,isLoading:!1});case 9:case"end":return e.stop()}}),e)}))),t.gatewayStore=new g.default,t.state={ingressNameOption:[]},t}return(0,c.default)(n,[{key:"componentDidMount",value:function(){this.getIngressNameOptions()}},{key:"getIngressNameOptions",value:(a=(0,o.default)(l.default.mark((function e(){var t,a;return l.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.gatewayStore.getNewGatewayByProject({cluster:this.cluster,namespace:this.namespace});case 2:(t=e.sent).length&&this.getGateway(),a=(0,v.default)(t,(function(e){return{label:"".concat(e.ingressClass,"(").concat(e.name,")"),value:e.ingressClass}})),this.setState({ingressNameOption:a});case 6:case"end":return e.stop()}}),e,this)}))),function(){return a.apply(this,arguments)})},{key:"render",value:function(){var e=this.props.formRef,a=this.state.ingressNameOption;return d.default.createElement(y.Form,{data:this.formTemplate,ref:e},!(0,m.default)(a)&&d.default.createElement(y.Form.Item,{label:t("SELECT_INGRESSCLASSNAME")},d.default.createElement(y.Select,{name:"spec.ingressClassName",options:a})),d.default.createElement(y.Form.Group,{label:t("ADD_METADATA"),desc:t("ROUTE_ADD_METADATA_DESC"),keepDataWhenUnCheck:!0,checkable:!0},d.default.createElement(b.default,null)))}},{key:"formTemplate",get:function(){var e=this.props,t=e.formTemplate,a=e.module;return(0,p.default)(t,E.MODULE_KIND_MAP[a],t)}},{key:"cluster",get:function(){return this.props.cluster}},{key:"namespace",get:function(){return this.props.namespace||(0,p.default)(this.formTemplate,"metadata.namespace")}}]),n}(d.default.Component);a.default=_},function(e,a,r){"use strict";r(15);var n=r(20);r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(42),r(4),r(23),r(57),r(17);var l=n(r(36)),o=n(r(37)),u=n(r(55)),c=n(r(56)),s=n(r(51)),i=n(r(0)),f=r(186),d=n(r(1050)),p=n(r(842));function m(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,s.default)(e);if(t){var n=(0,s.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,c.default)(this,a)}}var v=function(e){(0,u.default)(r,e);var a=m(r);function r(){return(0,l.default)(this,r),a.apply(this,arguments)}return(0,o.default)(r,[{key:"render",value:function(){return i.default.createElement(i.default.Fragment,null,i.default.createElement(f.Form.Item,{label:t("ANNOTATION_PL")},i.default.createElement(d.default,{name:"metadata.annotations",addText:t("ADD"),hiddenKeys:globals.config.preservedAnnotations})),i.default.createElement(f.Form.Item,{label:t("LABEL_PL")},i.default.createElement(p.default,{name:"metadata.labels",addText:t("ADD")})))}}]),r}(i.default.Component);a.default=v},,function(e,a,r){"use strict";var n=r(20);r(12),r(5),r(11),r(6),r(9),r(13),r(10),r(4),r(23),r(17),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(45),r(5),r(11),r(6),r(28),r(42),r(34),r(15),r(9),r(13),r(10),r(4),r(23),r(57),r(17),r(7);var l=n(r(58)),o=n(r(36)),u=n(r(37)),c=n(r(55)),s=n(r(56)),i=n(r(51)),f=n(r(30)),d=n(r(0)),p=n(r(1)),m=n(r(3)),v=r(186),h=n(r(787)),E=n(r(2613));function y(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function g(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:"appList",t=arguments.length>1?arguments[1]:void 0;r.setState({selectRepo:t,viewType:e})},r.handleClickApp=function(e){r.setState({viewType:"appDetail",selectApp:e})},r.handleDeploy=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.containerDetail,a=(0,i.default)(e,["containerDetail"]),n=R.default.edgeappsets((0,g.default)(r.props,"namespace")),l=(0,E.default)(t,["metadata","labels","apps.edgewize.io/apptemplate"]),o=(0,E.default)(t,"spec"),u=(0,E.default)(o,"version"),c=(0,y.default)(o,"version");(0,b.default)(n,"spec.appTemplateName",l),(0,b.default)(n,"spec.version",u),(0,b.default)(n,"spec.deploymentTemplate.spec",c),(0,S.default)(n,{spec:{deploymentTemplate:{spec:{template:{spec:{deploymentTemplate:{spec:c}}}}}}}),r.props.trigger("app.template.deploy",P(P(P({},a),(0,g.default)(r.props,["cluster","workspace","namespace"])),{},{formTemplate:n,success:function(){r.props.onOk(),r.props.routing.query()}}))},r.state={selectRepo:"",viewType:"appList",selectApp:null},r}return(0,d.default)(a,[{key:"render",value:function(){var e=this.props,t=e.visible,a=e.onCancel,r=e.cluster,n=void 0===r?"":r,l=e.workspace,o=void 0===l?"":l,u=e.namespace,s=(e.onDeploy,(0,i.default)(e,["visible","onCancel","cluster","workspace","namespace","onDeploy"])),f=this.state,d=f.viewType,p=f.selectApp,m=f.selectRepo;return h.default.createElement(T.default,(0,c.default)({width:1070,className:k.default.modal,bodyClassName:k.default.body,visible:t,onCancel:a,rightScreen:!0,hideHeader:!0,hideFooter:!0},s),h.default.createElement(C.Button,{className:k.default.close,icon:"close",iconType:"light",type:"control",onClick:a}),"appList"===d&&h.default.createElement(D.default,{cluster:n,workspace:o,selectRepo:m,setType:this.setViewType,onClickApp:this.handleClickApp}),"appDetail"===d&&h.default.createElement(N.default,{setType:this.setViewType,app:p,cluster:n,workspace:o,namespace:u,onDeploy:this.handleDeploy}))}}]),a}(h.Component),o.propTypes={cluster:_.default.string,workspace:_.default.string,namespace:_.default.string,visible:_.default.bool,onOk:_.default.func,onCancel:_.default.func},o.defaultProps={workspace:"",visible:!1,onOk:function(){},onCancel:function(){}},l=u))||l;t.default=w},function(e,a,r){"use strict";var n=r(20),l=r(157);r(12),r(11),r(6),r(18),r(16),r(9),r(13),r(10),r(4),r(23),r(24),r(17),r(64),r(188),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(45),r(11),r(6),r(18),r(28),r(859),r(42),r(16),r(34),r(15),r(9),r(13),r(10),r(4),r(22),r(23),r(57),r(24),r(17),r(64),r(188),r(7);var o=n(r(43)),u=n(r(61)),c=n(r(30));r(41);var s,i,f,d=n(r(44)),p=n(r(36)),m=n(r(37)),v=n(r(55)),h=n(r(56)),E=n(r(51)),y=l(r(0)),g=r(14),b=n(r(26)),S=n(r(455)),_=n(r(1)),O=r(239),C=r(186),T=n(r(1627)),R=n(r(1100)),D=r(327),N=n(r(2691));function k(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function I(e){for(var t=1;t0&&void 0!==d[0]?d[0]:{},r=!(d.length>1&&void 0!==d[1])||d[1],n=t.props,l=n.cluster,c=n.workspace,e.next=5,t.appTemplateStore.fetchList(I({page:1,limit:D.STORE_APP_LIMIT,cluster:l,workspace:c},a));case 5:s=t.appTemplateStore,i=s.allTemplates,f=s.list,r?(i.clear(),i.replace(f.data)):i.push.apply(i,(0,u.default)(f.data));case 7:case"end":return e.stop()}}),e)}))),t.formatTemplates=function(e){return e.map((function(e){var t=e.name,a=e.latestVersion;return I(I({},e),{},{app_id:t,latest_app_version:a})}))},t.fetchMoreTemplates=(0,d.default)(o.default.mark((function e(){var a,r;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=t.appTemplateStore.list.page,r=t.state.name,e.next=4,t.fetchTemplates({page:a+1,name:r},!1);case 4:case"end":return e.stop()}}),e)}))),t.handleSearch=function(e){t.setState({name:e}),t.fetchTemplates({name:e})},t.handleRefresh=function(){var e=t.state.name;t.fetchTemplates({name:e})},t.state={selectRepo:e.selectRepo,name:""},t.appTemplateStore=new R.default,t}return(0,m.default)(r,[{key:"componentDidMount",value:function(){this.fetchTemplates()}},{key:"renderHeader",value:function(){return y.default.createElement("div",{className:N.default.header},y.default.createElement("div",{className:N.default.logo},y.default.createElement("img",{src:"/assets/edge-application.svg",alt:""})),y.default.createElement("div",{className:N.default.text},y.default.createElement("h2",null,t("EDGE_APP_TEMPLATES_PL")),y.default.createElement("p",null,t("EDGE_APP_TEMPLATES_MODAL_DESC"))))}},{key:"renderToolbar",value:function(){return y.default.createElement("div",{className:N.default.toolbar},y.default.createElement(C.InputSearch,{onSearch:this.handleSearch,className:N.default.search,placeholder:t("SEARCH")}),y.default.createElement(C.Button,{type:"flat",icon:"refresh",onClick:this.handleRefresh}))}},{key:"render",value:function(){var e=this.appTemplateStore,t=e.allTemplates,a=e.list,r=a.isLoading,n=a.total;return y.default.createElement(y.default.Fragment,null,this.renderHeader(),this.renderToolbar(),y.default.createElement("div",{className:N.default.apps},y.default.createElement(T.default,{itemCls:N.default.appItem,iconName:"appcenter",showCreateVendor:!0,apps:this.formatTemplates((0,g.toJS)(t)),isLoading:r,total:n,onFetchMore:this.fetchMoreTemplates,onClickAppItem:this.props.onClickApp,disableLink:!0})))}},{key:"repoSelectOptions",get:function(){var e=this.repoStore.list.data.map((function(e){var t=e.name;return{value:e.repo_id,label:t}}));return e.unshift({value:null,label:t("CURRENT_WORKSPACE")}),e}},{key:"selectedRepo",get:function(){return this.state.selectRepo||(0,b.default)(this.repoSelectOptions,"[0].value")}}]),r}(y.Component),i.propTypes={workspace:_.default.string,store:_.default.object,onClickApp:_.default.func,fetchTemplates:_.default.func,selectRepo:_.default.string},i.defaultProps={workspace:"",store:{},onClickApp:S.default},s=f))||s;a.default=A},function(e,a,r){"use strict";r(15);var n=r(20);r(12),r(109),r(18),r(16),r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(109),r(45),r(18),r(42),r(16),r(4),r(23),r(57),r(17);var l=n(r(36)),o=n(r(37)),u=n(r(55)),c=n(r(56)),s=n(r(51)),i=n(r(0)),f=n(r(26)),d=n(r(836)),p=r(52),m=n(r(1628)),v=r(186),h=n(r(2689));function E(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,s.default)(e);if(t){var n=(0,s.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,c.default)(this,a)}}var y=function(e){(0,u.default)(r,e);var a=E(r);function r(){return(0,l.default)(this,r),a.apply(this,arguments)}return(0,o.default)(r,[{key:"renderVendor",value:function(){var e=this.props,a=e.app;if(e.showCreateVendor)return t("CREATOR_VALUE",{value:a.creator||"-"});var r=(0,p.safeParseJSON)(a.latest_app_version.maintainers,[]).map((function(e){return e.name}));return t("MAINTAINER_VALUE",{value:r[0]||"-"})}},{key:"render",value:function(){var e=this.props,a=e.app,r=e.iconName,n=(0,f.default)(globals.user,"lang")||(0,p.getBrowserLang)(),l=(0,f.default)(a,"description_".concat(n),a.description);return i.default.createElement("div",{className:h.default.wrapper},i.default.createElement("div",{className:h.default.title},i.default.createElement("span",{className:h.default.icon},r?i.default.createElement(v.Icon,{name:r,size:48}):i.default.createElement(d.default,{iconSize:48,src:a.icon,iconLetter:a.name,alt:""})),i.default.createElement("div",{className:h.default.text},i.default.createElement("div",null,i.default.createElement("strong",null,a.name||"-"),i.default.createElement(m.default,{app:a})),i.default.createElement("p",{className:h.default.desc,title:l||""},l||"-"))),i.default.createElement("div",{className:h.default.bottom},i.default.createElement("span",{className:h.default.vendor},this.renderVendor()),i.default.createElement("span",{className:h.default.version,title:a.latest_app_version.name},t("LATEST_VALUE",{value:a.latest_app_version.name||"-"}))))}}]),r}(i.default.Component);a.default=y},function(e,t,a){e.exports={content:"_3K7XcF23Jr-6yl5gk0sUpA",authorizedTip:"_3wRwZh7wpRb0keKGmC6P9F",authorizedTipTitle:"_37-SrvFOHEgEEq2XbhamIN"}},function(e,t,a){e.exports={wrapper:"_1zF0xPww2LpgxDFbVDQtWc",title:"_2Nq0b4RJcpqibfUTxirGBM",icon:"BqQX23omFu9bVU3UdZO12",text:"SpkoXwVuepyl5mMB85r9s",desc:"_30UPhHVa7pOp-XEWz2eRz_",bottom:"_3ZaAkU1nl0bI9b6j2pMyzm",vendor:"fQ6ZLtTi2AjCEIgH1eLeM",version:"_--5xd3q0U7oxxx1TragFp"}},function(e,t,a){e.exports={appList:"_3e_tmkJx9nmHjU2sjIk5fC",appItem:"_2shYOeim1w7KZ_ArClfUd",noApp:"_2tfdcH8dm5pbWjj8uR2TlS",loading:"_2cilLcQtThJ_7F0QvkSkCB",loadMore:"_2zMYJZr8vU75-lyWEPh98A"}},function(e,t,a){e.exports={apps:"gHiKdb373zSHCpephDrk2",appItem:"_3t8NMH_YscCKdI5DBMf3Tn",header:"_3aBHx84uEw4eeVCnlEc-UL",logo:"_1yV_JzjwsYKqqnyrsKZ58H",text:"_2CmaLzwklz3onRSo8Or1P2",toolbar:"_2NUvpsg4SwNIniSC5FhIMy",search:"_2STk1Dy7lNhGu1RBcYNoFP"}},function(e,a,r){"use strict";var n=r(20),l=r(157);r(12),r(109),r(11),r(31),r(6),r(18),r(16),r(9),r(13),r(10),r(4),r(23),r(17),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(109),r(45),r(11),r(31),r(6),r(18),r(28),r(42),r(16),r(34),r(15),r(9),r(13),r(10),r(4),r(22),r(23),r(57),r(17),r(7);var o=n(r(43)),u=n(r(30));r(41);var c,s,i,f=n(r(44)),d=n(r(36)),p=n(r(37)),m=n(r(55)),v=n(r(56)),h=n(r(51)),E=l(r(0)),y=n(r(243)),g=n(r(63)),b=n(r(199)),S=n(r(1)),_=r(239),O=r(186),C=n(r(435)),T=r(248),R=n(r(816)),D=n(r(932)),N=n(r(483)),k=n(r(1100)),I=n(r(2693)),P=n(r(2695));function A(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function w(e){for(var t=1;t0&&void 0!==r[0]?r[0]:{},e.next=3,t.versionStore.fetchList(w(w({},a),{},{app_id:t.appId,noLimit:!0}));case 3:case"end":return e.stop()}}),e)}))),t.handleTabChange=function(e){t.setState({tab:e})},t.handleClickBack=function(){var e=t.props.app;t.props.setType("appList",e.repo_id)},t.showDeploy=function(){var e=t.props.app,a=e.name,r=e.description,n=t.containerFormRef.current;n&&n.validate((function(){t.props.onDeploy({title:a,description:r||"-",containerDetail:n.getData(),store:t.store})}))},t.handleChangeAppVersion=function(e){t.setState({selectedVersionKey:e})},t.state={tab:"versionInfo",selectedVersionKey:"",showDeploy:!1},t.store=new N.default,t.appTemplateStore=new k.default,t.containerFormRef=E.default.createRef(),t}return(0,p.default)(n,[{key:"componentDidMount",value:(a=(0,f.default)(o.default.mark((function e(){var t;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=this.props.app.latestVersion.name,this.setState({selectedVersionKey:t});case 2:case"end":return e.stop()}}),e,this)}))),function(){return a.apply(this,arguments)})},{key:"componentWillUnmount",value:function(){this.props.setType()}},{key:"renderContainerGroupInfo",value:function(){var e=this.props,a=e.cluster,r=e.namespace;return E.default.createElement("div",{className:P.default.content},E.default.createElement("div",{className:P.default.title},t("VERSION")),E.default.createElement(R.default,{className:"margin-b12",value:this.state.selectedVersionKey,options:this.versionOptions,onChange:this.handleChangeAppVersion}),this.selectedVersion&&E.default.createElement(D.default,{formRef:this.containerFormRef,store:this.appTemplateStore,cluster:a,namespace:r,formTemplate:this.containerFormTemplate,onlyDockerHub:!0,isReadOnlyContainers:!0,isShowAddContainer:!1}))}},{key:"render",value:function(){var e=this.props.app,a=e.name,r=e.description;return E.default.createElement(E.default.Fragment,null,E.default.createElement(I.default,{onClickBack:this.handleClickBack,title:a,desc:r||"-"}),E.default.createElement("div",{className:P.default.bar},E.default.createElement("span",{className:"h6"},t("CONTAINER_GROUP_INFO")),E.default.createElement(O.Button,{type:"control",onClick:this.showDeploy,disabled:(0,g.default)(this.versionOptions)},t("DEPLOYMENT"))),this.renderContainerGroupInfo())}},{key:"appId",get:function(){return this.props.app.name}},{key:"tabs",get:function(){return[{label:t("APP_INFORMATION"),value:"versionInfo"},{label:t("CHART_FILES"),value:"chartFiles"}]}},{key:"versionOptions",get:function(){var e=this.props.app,a=e.versions,r=e.latestVersion;return a.map((function(e){var a=e.name,n=e.createTime;return{value:a,label:E.default.createElement(E.default.Fragment,null,a,a===r.name&&E.default.createElement(O.Tag,{type:"warning",className:P.default.latestTag},t("LATEST_VERSION_SCAP"))),description:(0,y.default)(n).format("YYYY-MM-DD")}}))}},{key:"selectedVersion",get:function(){var e=this.state.selectedVersionKey;return this.props.app.versions.find((function(t){return t.name===e}))}},{key:"containerFormTemplate",get:function(){var e=this.props.namespace,t=C.default.apptemplateversions({name:this.appId});return this.selectedVersion&&(t=(0,T.getVersionFormattedData)(this.selectedVersion)),t=(0,b.default)({metadata:{namespace:e}},t)}}]),n}(E.Component),s.propTypes={app:S.default.object,setType:S.default.func,cluster:S.default.string,workspace:S.default.string,namespace:S.default.string},s.defaultProps={app:{}},c=i))||c;a.default=L},function(e,a,r){"use strict";r(15);var n=r(157),l=r(20);r(5),r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(42),r(4),r(23),r(57),r(17);var o=l(r(36)),u=l(r(37)),c=l(r(55)),s=l(r(56)),i=l(r(51)),f=n(r(0)),d=l(r(1)),p=r(186),m=l(r(2694));function v(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,i.default)(e);if(t){var n=(0,i.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,s.default)(this,a)}}var h=function(e){(0,c.default)(r,e);var a=v(r);function r(){var e;(0,o.default)(this,r);for(var t=arguments.length,n=new Array(t),l=0;l0&&void 0!==l[0]?l[0]:{},r=(0,R.default)(e.formData,"".concat(e.prefix,".name"),""),n=(0,w.inCluster2Default)(r),t.next=5,e.projectStore.fetchList(j(j({},a),{},{cluster:n,type:"user"}));case 5:case"end":return t.stop()}}),t)}))),e.handleClusterChange=function(t){e.fetchNamespaces(),e.setState({name:t});var a=e.clusters.find((function(e){return e.value===t})).server;(0,N.default)(e.formData,"".concat(e.prefix,".server"),a),(0,N.default)(e.formData,"".concat(e.prefix,".namespace"),"")},e.handleSubmit=function(){var t=e.formRef.current;t&&t.validate((function(){Object.assign(e.props.formData,j({},e.formData)),e.setState({showForm:!1,oldFormDate:(0,k.toJS)(e.formData)})}))},e.showForm=function(){e.setState({showForm:!0})},(0,p.default)(e,"hideForm",f,(0,h.default)(e)),e.projectOptionRenderer=function(e){return P.default.createElement("span",{className:M.default.option},e.isFedManaged?P.default.createElement("img",{className:M.default.indicator,src:"/assets/cluster.svg"}):P.default.createElement(S.Icon,{name:"project"}),e.label,e.isFedManaged&&P.default.createElement(S.Tooltip,{content:t("FEDPROJECT_CANNOT_DEPLOY_APP_TIP")},P.default.createElement(S.Icon,{className:M.default.tip,name:"question"})))},e}return(0,v.default)(l,[{key:"componentDidMount",value:function(){this.init()}},{key:"init",value:(r=(0,d.default)(o.default.mark((function e(){var t,a,r,n,l,u;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.setState({initializing:!0}),t=this.formData["".concat(this.prefix)]||{},a=t.cluster,r=t.server,n=t.namespace,e.next=4,this.fetchClusters();case 4:return a?!r&&a&&(l=this.clusters.find((function(e){return e.value===a})),(0,N.default)(this.formData,"".concat(this.prefix,".name"),(0,R.default)(this.clusters,l.value)),(0,N.default)(this.formData,"".concat(this.prefix,".server"),(0,R.default)(this.clusters,l.server))):((0,N.default)(this.formData,"".concat(this.prefix,".name"),(0,R.default)(this.clusters,"[0].value")),(0,N.default)(this.formData,"".concat(this.prefix,".server"),(0,R.default)(this.clusters,"[0].server"))),e.next=7,this.fetchNamespaces();case 7:n||(u=this.namespaces.find((function(e){return!e.disabled}))||{},(0,N.default)(this.formData,"".concat(this.prefix,".namespace"),u.value||"")),Object.assign(this.props.formData,this.formData),this.setState({initializing:!1,oldFormDate:(0,T.default)((0,k.toJS)(this.formData))});case 10:case"end":return e.stop()}}),e,this)}))),function(){return r.apply(this,arguments)})},{key:"fetchClusters",value:(a=(0,d.default)(o.default.mark((function e(){var t;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=this.props.cluster,e.next=3,this.cdStore.getClustersList(t);case 3:case"end":return e.stop()}}),e,this)}))),function(){return a.apply(this,arguments)})},{key:"renderPlacement",value:function(){var e=this.props.formData["".concat(this.prefix)]||{},a=(0,w.inCluster2Default)(e.name);return P.default.createElement("div",{className:M.default.placement},P.default.createElement(O.default,{icon:"cluster",title:(0,w.showNameAndAlias)(a,"cluster"),description:t("CLUSTER")}),P.default.createElement(O.default,{icon:"project",title:(0,w.showNameAndAlias)(e.namespace,"project",{cluster:a}),description:t("PROJECT")}),P.default.createElement(S.Icon,{className:M.default.icon,name:"chevron-down",size:20}))}},{key:"renderForm",value:function(){return P.default.createElement("div",{className:M.default.form},P.default.createElement(S.Form,{ref:this.formRef,type:"inner",data:this.formData},P.default.createElement(S.Columns,null,P.default.createElement(S.Column,null,P.default.createElement(S.Form.Item,{label:t("CLUSTER")},P.default.createElement(S.Select,{name:"".concat(this.prefix,".name"),key:this.state.name,placeholder:" ",options:this.clusters,onChange:this.handleClusterChange,prefixIcon:P.default.createElement(S.Icon,{name:"cluster",size:16}),disabled:!globals.app.isMultiCluster,showTip:!0}))),P.default.createElement(S.Column,null,P.default.createElement(S.Form.Item,{label:t("PROJECT"),rules:[{required:!0,message:t("PROJECT_NOT_SELECT_DESC")}]},P.default.createElement(S.Select,{name:"".concat(this.prefix,".namespace"),placeholder:" ",options:this.namespaces,pagination:(0,D.default)(this.projectStore.list,["page","limit","total"]),isLoading:this.projectStore.list.isLoading,onFetch:this.fetchNamespaces,valueRenderer:this.projectOptionRenderer,optionRenderer:this.projectOptionRenderer,searchable:!0,clearable:!0}))))),P.default.createElement(C.default,{className:M.default.confirm,onOk:this.handleSubmit,onCancel:this.hideForm}))}},{key:"render",value:function(){var e=this.state,a=e.showForm,r=e.initializing;if(a)return this.renderForm();var n=(0,R.default)(this.formData,"".concat(this.prefix,".namespace"),"");return P.default.createElement("div",{className:(0,_.default)(M.default.wrapper,(0,u.default)({},M.default.expand,a)),onClick:this.showForm},n?this.renderPlacement():P.default.createElement("div",{className:M.default.placeholder},r?P.default.createElement(S.Loading,{className:"text-center"}):t("PROJECT_NOT_SELECT_DESC")))}},{key:"prefix",get:function(){return"".concat(this.props.prefix)}},{key:"clusters",get:function(){return this.cdStore.clustersList.map((function(e){return{label:(0,w.showNameAndAlias)((0,w.inCluster2Default)(e.name),"cluster"),value:e.name,server:e.server}}))}},{key:"namespaces",get:function(){return this.projectStore.list.data.filter((function(e){return"Terminating"!==e.status})).map((function(e){return{label:(0,w.showNameAndAlias)(e),value:e.name,disabled:e.isFedManaged||e.isFedHostNamespace,isFedManaged:e.isFedManaged||e.isFedHostNamespace}}))}}]),l}(P.Component),i=(0,b.default)(s.prototype,"formData",[k.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),(0,b.default)(s.prototype,"clusters",[k.computed],Object.getOwnPropertyDescriptor(s.prototype,"clusters"),s.prototype),(0,b.default)(s.prototype,"namespaces",[k.computed],Object.getOwnPropertyDescriptor(s.prototype,"namespaces"),s.prototype),f=(0,b.default)(s.prototype,"hideForm",[k.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(){e.setState({showForm:!1},(function(){e.formData=e.state.oldFormDate,Object.assign(e.props.formData,j({},e.formData))}))}}}),c=s))||c;a.default=U},function(e,t,a){e.exports={wrapper:"_3z2Z9hMemOOjjGphBi-8sh",placeholder:"KK7SUBB92n4Wwek-F2DYR",form:"_3pVLZicpx-Rbr0egCKsLK",confirm:"DslrrnKn_QmqZZLCpJxuA",placement:"_2Q-2XDFS-FUOb9mjjlCrYc",icon:"_1HSRuvA-86V8m58eHsUJvR",option:"Dxyd1qFSZm73dPMUuSqdc",tip:"_3S0tzXh5APNgwIS8ONi0s1"}},function(e,a,r){"use strict";var n=r(20);r(12),r(5),r(11),r(6),r(18),r(16),r(9),r(13),r(10),r(4),r(23),r(17),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(45),r(5),r(11),r(6),r(18),r(28),r(42),r(16),r(34),r(15),r(9),r(13),r(10),r(4),r(22),r(23),r(57),r(17),r(7);var l=n(r(43)),o=n(r(30));r(41);var u=n(r(44)),c=n(r(36)),s=n(r(37)),i=n(r(55)),f=n(r(56)),d=n(r(51)),p=n(r(0)),m=n(r(241)),v=r(186),h=n(r(1109)),E=n(r(2702));function y(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function g(e){for(var t=1;t0&&v.default.createElement(E.Button,{type:"control",onClick:this.handlePrev},t("PREVIOUS")),o=r?f.default.createElement(d.Icon,{name:"success",type:"coloured",size:12}):f.default.createElement(d.Icon,{name:"dot",type:"light",size:12}),f.default.createElement("span",null,t(a.title)))})))}},{key:"formattedStep",get:function(){return this.props.steps.filter((function(e){return!!e.title}))}}]),r}(f.Component);a.default=h},function(e,t,a){e.exports={wrapper:"VcopeKzgXdwSpnCTVNt0h"}},function(e,a,r){"use strict";r(15);var n=r(20);r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(42),r(4),r(23),r(57),r(17);var l=n(r(36)),o=n(r(37)),u=n(r(55)),c=n(r(56)),s=n(r(51)),i=n(r(0)),f=n(r(1)),d=n(r(135)),p=r(186),m=n(r(884)),v=n(r(2713));function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,s.default)(e);if(t){var n=(0,s.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,c.default)(this,a)}}var E=function(e){(0,u.default)(r,e);var a=h(r);function r(e){var t;return(0,l.default)(this,r),(t=a.call(this,e)).data=(0,d.default)(e.formTemplate),t.editor=i.default.createRef(),t}return(0,o.default)(r,[{key:"getData",value:function(){return this.editor.current.getData()}},{key:"render",value:function(){return i.default.createElement("div",{className:v.default.wrapper},i.default.createElement("div",{className:v.default.step},i.default.createElement("div",null,t("EDIT_YAML")),i.default.createElement("p",null,t("CREATE_BY_YAML_DESC"))),i.default.createElement("div",{className:v.default.codeWrapper},i.default.createElement("div",{className:v.default.pane},i.default.createElement("div",{className:v.default.title},i.default.createElement(p.Icon,{name:"coding",size:20}),i.default.createElement("span",null,t("EDIT_YAML"))),i.default.createElement(m.default,{ref:this.editor,className:v.default.editor,value:this.data}))))}}]),r}(i.default.Component);a.default=E,E.propTypes={formTemplate:f.default.object,onOk:f.default.func,isSubmitting:f.default.bool},E.defaultProps={onOk:function(){},isSubmitting:!1}},function(e,t,a){e.exports={wrapper:"_2bLRs43o7z2Z0l0OqV3S3l",step:"_3ABigQDpD_68K0K2-zPwo1",codeWrapper:"_35rMFFtZtEQsJ1XnlGrRIT",pane:"_1IXTMNwey-PU6zqsfimMcO",editor:"_2-LDXYPFV_Swq3SZk8_dTY",title:"_8xagm1IYbXzrlonLdlZLT"}},function(e,t,a){e.exports={modal:"_3udZ9JU41jkQT15SM6VQqy",body:"_3zIqgTb5iRnwYJult2OSjW",wrapper:"_1GY1dBmycuTqs5z5O4U5i1",steps:"_1j6BiFUqlNymOz_lSW28U7",header:"_1y3eAJkaBREv2CFp4dIBeY",headerBottom:"_3srgYWH6bHux51Zn3xQeOG",title:"_3sSfECiQrD_nXjhQGwbY6d",content:"_3_hijI-MOd78wmqLgMzBbx",footer:"_1nQdSbl4yf_TN2MYcxvNhu"}},function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(42),r(4),r(23),r(57),r(17);var l=n(r(36)),o=n(r(37)),u=n(r(55)),c=n(r(56)),s=n(r(51)),i=n(r(0)),f=n(r(1)),d=n(r(135)),p=n(r(74)),m=r(186),v=r(1630),h=n(r(1180)),E=r(1343),y=n(r(2717));function g(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,s.default)(e);if(t){var n=(0,s.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,c.default)(this,a)}}var b=function(e){(0,u.default)(r,e);var a=g(r);function r(){var e;(0,l.default)(this,r);for(var t=arguments.length,n=new Array(t),o=0;o0)return r({message:u.join("; "),field:e.field});r()},n.handleTags=function(e){n.setState({tagsValue:e}),(0,p.default)(n.props.formTemplate,"tags",e)};var l=(0,d.default)(n.props.formTemplate,"tags",[]);return n.state={toggleAdvanced:!1,tagsValue:l},n}return(0,u.default)(r,[{key:"render",value:function(){var e=this.props,a=e.formRef,r=e.formTemplate,n=e.tagsStore.tagsGroup,l=void 0===n?{}:n,o=e.onAddTags,u=this.method;return v.default.createElement("div",{className:b.default.wrapper},v.default.createElement(f.Form,{data:r,ref:a},v.default.createElement(f.Form.Item,{label:t("CLUSTER_NAME"),desc:t("NAME_DESC_LENGTH",{length:60}),rules:[{required:!0,message:t("CLUSTER_NAME_EMPTY")},{pattern:h.PATTERN_NAME,message:t("INVALID_NAME_DESC_LENGTH",{length:60})},{validator:this.nameValidator}]},v.default.createElement(f.Input,{name:"metadata.name",maxLength:60})),v.default.createElement(f.Form.Item,{label:t("ALIAS"),desc:t("ALIAS_NAME_DESC"),rules:[{pattern:h.PATTERN_ALIAS_NAME,message:t("INVALID_ALIAS_NAME_DESC")}]},v.default.createElement(f.Input,{name:"metadata.annotations['kubesphere.io/alias-name']",maxLength:63})),v.default.createElement(f.Form.Item,{label:v.default.createElement("div",{className:b.default.iconTooltip},v.default.createElement("span",null,t("CLUSTER_TAG")),v.default.createElement(f.Tooltip,{content:t("CLUSTER_TAG_TOOLTIP_CONTENT")},v.default.createElement(f.Icon,{name:"question",size:16})))},v.default.createElement("div",{className:b.default.clusterTags},v.default.createElement(E.ClusterTagAdd,{tagsGroup:l,defaultValue:[],value:this.state.tagsValue,name:"tags",onAddTags:o,onChange:this.handleTags}))),v.default.createElement(f.Form.Item,{label:t("PROVIDER"),desc:t("CLUSTER_PROVIDER_DESC")},v.default.createElement(f.Select,{name:"spec.provider",options:h.CLUSTER_PROVIDERS,placeholder:" ",optionRenderer:this.providerOptionRenderer,searchable:!0})),v.default.createElement(f.Form.Item,{label:t("DESCRIPTION"),desc:t("DESCRIPTION_DESC")},v.default.createElement(f.TextArea,{name:"metadata.annotations['kubesphere.io/description']",maxLength:256})),"new"===u&&v.default.createElement(v.default.Fragment,null,v.default.createElement(g.default,{className:b.default.nodesTitle,title:t("NODE_SETTINGS"),description:t("CLUSTER_NODE_SETTINGS_DESC")}),v.default.createElement(f.Form.Item,{rules:[{required:!0,message:t("PLEASE_ADD_AT_LEAST_ONE_CLUSTER_NODE")},{validator:this.nodesValidator}]},v.default.createElement(y.default,{name:"spec.hosts",formTemplate:r}))),v.default.createElement("div",{className:b.default.advanced,onClick:this.toggleAdvanced},v.default.createElement("span",null,t("ADVANCED_SETTINGS")),v.default.createElement(f.Icon,{name:this.state.showAdvanced?"chevron-up":"chevron-down",size:"20"})),this.state.toggleAdvanced&&v.default.createElement(f.Form.Item,{label:v.default.createElement("div",{className:b.default.iconTooltip},v.default.createElement("span",null,t("CLUSTER_LABEL")),v.default.createElement(f.Tooltip,{content:t("CLUSTER_LABEL_TOOLTIP_CONTENT")},v.default.createElement(f.Icon,{name:"question",size:16}))),desc:t("CLUSTER_LABEL_DESC")},v.default.createElement(f.Select,{name:"metadata.labels['cluster.kubesphere.io/group']",options:h.CLUSTER_PRESET_GROUPS,placeholder:" ",optionRenderer:this.groupOptionRenderer,searchable:!0}))))}},{key:"method",get:function(){return(0,d.default)(this.props.formTemplate,"metadata.annotations['kubesphere.io/way-to-add']")}}]),r}(v.default.Component))||l;a.default=_},function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(11),r(6),r(18),r(16),r(4),r(23),r(17),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(11),r(6),r(18),r(28),r(42),r(16),r(4),r(23),r(57),r(17),r(7);var l=n(r(61)),o=n(r(36)),u=n(r(37)),c=n(r(55)),s=n(r(56)),i=n(r(51)),f=n(r(0)),d=n(r(74)),p=n(r(26)),m=n(r(3)),v=n(r(1)),h=n(r(812)),E=n(r(2720)),y=n(r(1631)),g=n(r(1632));function b(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,i.default)(e);if(t){var n=(0,i.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,s.default)(this,a)}}var S=function(e){(0,c.default)(r,e);var a=b(r);function r(){var e;(0,o.default)(this,r);for(var t=arguments.length,n=new Array(t),u=0;u=0?(r[o]=t,n(r)):n([].concat((0,l.default)(r),[t])),e.updateRoleGroups(),e.hideAdd()},e.updateRoleGroups=function(){var t=e.props.formTemplate,a=(0,p.default)(t,"spec.hosts",[]),r={};a.forEach((function(e){e.roles&&e.roles.forEach((function(t){r[t]=r[t]||[],r[t].push(e.name)}))})),r.etcd=r.master,(0,d.default)(t,"spec.roleGroups",r)},e.handleDelete=function(t){var a=e.props,r=a.value;(0,a.onChange)(r.filter((function(e){return e.name!==t.name}))),e.updateRoleGroups()},e}return(0,u.default)(r,[{key:"renderNodes",value:function(){var e=this;return this.props.value.map((function(t,a){return f.default.createElement(E.default,{node:t,key:t.name,index:a,onEdit:e.showEdit,onDelete:e.handleDelete})}))}},{key:"renderAdd",value:function(){return f.default.createElement(h.default.Add,{icon:"add",title:t("ADD_NODE"),description:t("ADD_NODE_TO_THE_CLUSTER"),onClick:this.showAdd})}},{key:"renderModal",value:function(){var e=this.props.value,t=this.state,a=t.showAdd,r=t.selectIndex,n=r>=0?e[r]:void 0;return f.default.createElement(y.default,{visible:a,data:n,onOk:this.handleAdd,onCancel:this.hideAdd})}},{key:"render",value:function(){var e=this.props.className;return f.default.createElement("div",{className:(0,m.default)(g.default.wrapper,e)},this.renderNodes(),this.renderAdd(),this.renderModal())}}]),r}(f.default.Component);a.default=S,S.propTypes={className:v.default.string,name:v.default.string,value:v.default.array,onChange:v.default.func,onDelete:v.default.func},S.defaultProps={className:"",name:"",value:[],readOnlyList:[],specTemplate:{},onChange:function(){}}},function(e,t,a){"use strict";a(15);var r=a(20);a(18),a(16),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(18),a(16);var n=r(a(0)),l=r(a(1)),o=a(186),u=a(72),c=r(a(812)),s=function(e){var t=e.index,a=e.node,r=e.onDelete,l=e.onEdit,s=n.default.createElement("span",null,a.name,a.roles.map((function(e){return n.default.createElement(o.Tag,{key:e,className:"margin-l8",type:u.NODE_ROLE_TAG_TYPE[e]},e)})));return n.default.createElement(c.default.Item,{icon:"nodes",title:s,description:a.address,onDelete:function(){return r(a)},onEdit:function(){return l(t)}})};s.propTypes={node:l.default.object};var i=s;t.default=i},function(e,t,a){"use strict";a(15);var r=a(20);a(12),a(109),Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.className,a=e.title,r=e.description;return n.default.createElement("div",{className:(0,l.default)(o.default.text,t)},n.default.createElement("div",null,a),n.default.createElement("p",null,r))},a(12),a(109);var n=r(a(0)),l=r(a(3)),o=r(a(2722))},function(e,t,a){e.exports={text:"_516bLC4y2eCDP-7u4_h68"}},function(e,t,a){e.exports={wrapper:"_1NNvsOKzvpG4TQpNcfk82r",nodesTitle:"gzd5RQSNJkEmTlh20fpt_",advanced:"_1LUGkOuBopYLmtimgyc8x_",formItem:"_2rS4-K0J9tTDyDPpPETUdF",iconTooltip:"_3wK3EWmKuNT8yWLM2kriP0",clusterTags:"FgjbT7Pql9uy5yeH4XtVg"}},function(e,a,r){"use strict";r(15);var n=r(20);r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(28),r(42),r(4),r(23),r(57),r(17);var l=n(r(36)),o=n(r(37)),u=n(r(55)),c=n(r(56)),s=n(r(51)),i=n(r(0)),f=r(186),d=n(r(790)),p=n(r(884)),m=n(r(26)),v=n(r(2725));function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,s.default)(e);if(t){var n=(0,s.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,c.default)(this,a)}}var E=function(e){(0,u.default)(r,e);var a=h(r);function r(e){var t;return(0,l.default)(this,r),(t=a.call(this,e)).handleTypeChange=function(e){t.setState({connectType:e})},t.state={connectType:(0,m.default)(e.formTemplate,"spec.connection.type","direct")},t}return(0,o.default)(r,[{key:"render",value:function(){var e=this.props,a=e.formRef,r=e.formTemplate,n=this.state.connectType;return i.default.createElement("div",null,i.default.createElement(f.Form,{data:r,ref:a},i.default.createElement(f.Form.Item,{label:t("CONNECTION_MODE"),desc:t("CLUSTER_CONNECT_MODE_DESC")},i.default.createElement(f.Select,{name:"spec.connection.type",options:this.types,onChange:this.handleTypeChange})),"direct"===n&&i.default.createElement("div",{className:v.default.tip},t.html("CLUSTER_DIRECT_IMPORT_TIP")),"direct"===n?i.default.createElement("div",{className:v.default.editorWrapper},i.default.createElement("div",{className:v.default.editor},i.default.createElement("div",{className:v.default.editorTitle},i.default.createElement("div",null,i.default.createElement(f.Icon,{name:"kubernetes",size:20}),t("INPUT_KUBECONFIG"))),i.default.createElement(f.Form.Item,{rules:[{required:!0,message:t("INPUT_KUBECONFIG")}],unControl:!0},i.default.createElement(p.default,{mode:"yaml",name:"spec.connection.kubeconfig",options:this.editOptions})))):i.default.createElement("div",{className:v.default.tip},i.default.createElement(d.default,{title:t("CLUSTER_AGENT_TITLE"),description:t("CLUSTER_AGENT_DESC")}),i.default.createElement("div",{className:"margin-t12"},t.html("CLUSTER_AGENT_IMPORT_TIP")))))}},{key:"types",get:function(){var e=[{label:t("CONNTECT_DIRECT"),value:"direct"}];return globals.app.hasKSModule("tower")&&globals.app.isLicenseAuthorized("tower")&&e.push({label:t("CONNTECT_PROXY"),value:"proxy"}),e}},{key:"editOptions",get:function(){return{width:"100%",height:"100%"}}}]),r}(i.default.Component);a.default=E},function(e,t,a){e.exports={editorWrapper:"_1937BjcVyseLv9DIexIJWG",editor:"_3dm-s3IiWMzYT7kJAfs0sb",editorTitle:"_2xtWVxrXO_EaM9xO19pjBb",tip:"_3wGjRllnO483bHBWlTPvVH",link:"_2oSgKyuIsZA8PujoTg5SLU",banLink:"D8eXHyIVagn58_MMkRq5E"}},function(e,a,r){"use strict";r(15);var n=r(20);r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(42),r(4),r(23),r(57),r(17);var l=n(r(36)),o=n(r(37)),u=n(r(55)),c=n(r(56)),s=n(r(51)),i=n(r(0)),f=r(186),d=n(r(884)),p=n(r(2727));function m(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,s.default)(e);if(t){var n=(0,s.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,c.default)(this,a)}}var v=function(e){(0,u.default)(r,e);var a=m(r);function r(){return(0,l.default)(this,r),a.apply(this,arguments)}return(0,o.default)(r,[{key:"render",value:function(){var e=this.props,a=e.formRef,r=e.formTemplate;return i.default.createElement("div",null,i.default.createElement(f.Form,{data:r,ref:a},i.default.createElement("div",{className:p.default.editorWrapper},i.default.createElement("div",{className:p.default.editor},i.default.createElement(f.Form.Item,{label:t("CLUSTER_CONFIG"),unControl:!0},i.default.createElement(d.default,{mode:"yaml",name:"spec.config",options:this.editOptions}))))))}},{key:"editOptions",get:function(){return{width:"100%",height:"100%"}}}]),r}(i.default.Component);a.default=v},function(e,t,a){e.exports={editorWrapper:"Ma3yI7kh9cSs7I4H_Ksf5",editor:"_3HXgHZRwxXwP-AAfLOMo9v"}},function(e,a,r){"use strict";r(15);var n=r(20);r(12),r(109),r(31),r(6),r(18),r(16),r(9),r(4),r(23),r(17),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(109),r(45),r(31),r(6),r(18),r(42),r(16),r(9),r(4),r(23),r(57),r(17),r(7);var l,o,u=n(r(36)),c=n(r(37)),s=n(r(55)),i=n(r(56)),f=n(r(51)),d=n(r(49)),p=n(r(0)),m=n(r(26)),v=n(r(242)),h=n(r(74)),E=n(r(63)),y=r(14),g=r(239),b=r(186),S=n(r(816)),_=r(1343),O=n(r(2729)),C=n(r(1180)),T=n(r(2730)),R=n(r(2732)),D=n(r(2735));function N(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,f.default)(e);if(t){var n=(0,f.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,i.default)(this,a)}}var k=(0,g.observer)((o=function(e){(0,s.default)(r,e);var a=N(r);function r(e){var t;(0,u.default)(this,r),(t=a.call(this,e)).handleNetworkPluginChange=function(e){var a=t.networkPlugins.find((function(t){return t.value===e})),r=t.state.networkParams;t.setState({networkParams:(0,m.default)(a,"params",[])},(function(){var e=t.state.networkParams,a=t.props.formTemplate;r.forEach((function(e){(0,v.default)(a,"spec.network.".concat(e.name))})),e.forEach((function(e){"default"in e&&(0,h.default)(a,"spec.network.".concat(e.name),e.default)}))}))},t.handleStoragePluginChange=function(e){var a=t.storagePlugins.find((function(t){return t.value===e}));a&&(a.template=a.template||{},(0,h.default)(t.props.formTemplate,"spec.addons[0]",(0,y.toJS)(a.template)),t.setState({storageParams:(0,m.default)(a,"params",[])}))};var n=(0,m.default)(e.formTemplate,"spec.network.plugin"),l=t.networkPlugins.find((function(e){return e.value===n})),o=(0,m.default)(e.formTemplate,"spec.storagePlugin")||(0,m.default)(t.storagePlugins,"[0].value");(0,h.default)(e.formTemplate,"spec.storagePlugin",o);var c=t.storagePlugins.find((function(e){return e.value===o}));return c&&c.template&&(0,E.default)((0,m.default)(e.formTemplate,"spec.addons[0]"))&&(0,h.default)(e.formTemplate,"spec.addons[0]",(0,y.toJS)(c.template)),t.state={networkParams:(0,m.default)(l,"params",[]),storageParams:(0,m.default)(c,"params",[])},t}return(0,c.default)(r,[{key:"render",value:function(){var e=this.props,a=e.formRef,r=e.formTemplate,n=this.state,l=n.networkParams,o=n.storageParams;return p.default.createElement("div",{className:O.default.wrapper},p.default.createElement(C.default,{title:t("CLUSTER_SETTINGS"),description:t("K8S_CLUSTER_SETTINGS_DESC")}),p.default.createElement(b.Form,{className:O.default.form,data:r,ref:a},p.default.createElement(b.Form.Item,{label:t("KUBERNETES_VERSION")},p.default.createElement(S.default,{name:"spec.kubernetes.version",options:this.versions,defaultValue:(0,m.default)(this.versions,"0.value")})),p.default.createElement(b.Form.Item,null,p.default.createElement(T.default,{name:"spec.kubernetes"})),p.default.createElement(b.Form.Item,{label:t("NETWORK_PLUGIN")},p.default.createElement(S.default,{name:"spec.network.plugin",options:this.networkPlugins,onChange:this.handleNetworkPluginChange})),p.default.createElement(b.Form.Item,null,p.default.createElement(R.default,{name:"spec.network",params:l})),p.default.createElement(b.Form.Item,{label:t("DEFAULT_STORAGE_PLUGIN")},p.default.createElement(S.default,{name:"spec.storagePlugin",options:this.storagePlugins,onChange:this.handleStoragePluginChange})),p.default.createElement(b.Form.Item,null,p.default.createElement(D.default,{name:"spec.addons[0]",params:o}))))}},{key:"versions",get:function(){return(0,y.toJS)((0,m.default)(this.props.store.kubekey,"parameters.kubernetes.supportedVersions",[])).map((function(e){return{icon:"kubernetes",label:e,value:e,description:"-"}}))}},{key:"networkPlugins",get:function(){return(0,m.default)(this.props.store.kubekey,"parameters.kubernetes.supportedCNIs",[]).map((function(e){return{label:e.title,value:e.name,icon:_.NETWORK_PLUGIN_ICONS[e.name]||"network",description:t(e.description),params:e.parameters}}))}},{key:"storagePlugins",get:function(){return(0,m.default)(this.props.store.kubekey,"parameters.storagePlugins",[]).map((function(e){return{label:e.title,value:e.name,icon:_.STORAGE_PLUGIN_ICONS[e.name]||"network",description:t(e.description),params:e.parameters,template:e.template}}))}}]),r}(p.default.Component),(0,d.default)(o.prototype,"versions",[y.computed],Object.getOwnPropertyDescriptor(o.prototype,"versions"),o.prototype),(0,d.default)(o.prototype,"networkPlugins",[y.computed],Object.getOwnPropertyDescriptor(o.prototype,"networkPlugins"),o.prototype),(0,d.default)(o.prototype,"storagePlugins",[y.computed],Object.getOwnPropertyDescriptor(o.prototype,"storagePlugins"),o.prototype),l=o))||l;a.default=k},function(e,t,a){e.exports={wrapper:"_3IrA5oEEz7IbkJINUqCtMY",form:"_1ZT8fGgQwTzYmasVKaVuvJ"}},function(e,a,r){"use strict";var n=r(157),l=r(20);r(12),r(5),r(11),r(6),r(9),r(13),r(10),r(4),r(23),r(17),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(45),r(5),r(11),r(6),r(28),r(42),r(34),r(15),r(9),r(13),r(10),r(4),r(23),r(57),r(17),r(7);var o=l(r(30)),u=l(r(36)),c=l(r(37)),s=l(r(55)),i=l(r(56)),f=l(r(51)),d=n(r(0)),p=r(186),m=l(r(787)),v=l(r(799)),h=l(r(2731));function E(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function y(e){for(var t=1;t=h.current)return t=h.current,T(t),E.current=!0,void(d&&d());T(t)}};(0,o.useEffect)((function(){return document.body.addEventListener("mouseup",R),document.body.addEventListener("mousemove",D),function(){document.body.removeEventListener("mouseup",R),document.body.removeEventListener("mousemove",D)}}),[]);var N={borderRadius:s,opacity:b&&C/h.current,width:56+C,transitionDuration:b&&p.current?"0s":".3s"},k={borderRadius:s,height:n-8,transitionDuration:b&&p.current?"0s":".3s",transform:"translateX(".concat(C,"px)")},I={color:"rgb(".concat(121+C/h.current*134,",\n ").concat(135+C/h.current*120,",\n ").concat(156+C/h.current*99,")")};return o.default.createElement("div",{className:u.default.content,style:{width:a}},o.default.createElement("div",{className:u.default.background,style:{borderRadius:s}},o.default.createElement("span",{style:I},i)),o.default.createElement("div",{className:u.default.sliderBox,style:N}),o.default.createElement("div",{style:k,className:u.default.slider,onMouseEnter:function(){E.current||p.current||(S(!0),T(0))},onMouseLeave:function(){E.current||p.current||S(!1)},onMouseDown:function(e){E.current||0!==e.button||(m.current=e.nativeEvent.x||e.touches[0].clientX,p.current=!0)},onMouseUp:R,onMouseMove:D},o.default.createElement("img",{className:u.default.icon,src:"/assets/ksLogo.svg"})))};t.default=c},function(e,t,a){e.exports={content:"_3ZGXa4C-gz0RDQXj2EmfRb",background:"_2Afm8HbEo9uoZgLe37Flrk",sliderBox:"FxlG-8w-UIpj5qcb3zmmc",slider:"_2gwZRUIcVJLKmsligzPF_4",icon:"_29rGCR-XxnuoLP6eEOxGz1"}},function(e,t,a){e.exports={header:"tmOOCtHbIrKeQ8xSIv2AW",body:"_3dos96Ex-qOKvh04j-PRSJ",tipBox:"_2KHHBfH6SnNFZSSDy5LW_P",title:"_21vopnnvetJvmePQAbmgFR",des:"_1lAfacHxGBPDt9NhCtFXMX",cluster:"_3Q_fFn8LLUmDCpOfK-E1Op",clusterTitle:"_3zlj5cSf3XzoPveDCPNMHQ",info:"_18tGPRwG9cadANDu3vQcLS",row:"_1xxy6fYDzBimEnXHK6FxMO",item:"_20q4gTYObZ3ANQ0QlgW0st",label:"_2U44bSqRrXu08gFCaUJqUV",value:"MRn9T8BlsTO7P1dEOthpV",confirmInput:"oWd2ADDZjJyfMRttMvVtm",footer:"_1QKfPS2L1dQ1O14549Kh-J"}},function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(42),r(4),r(23),r(57),r(17);var l,o,u,c=n(r(315)),s=n(r(58)),i=n(r(36)),f=n(r(37)),d=n(r(55)),p=n(r(56)),m=n(r(51)),v=n(r(0)),h=r(186),E=n(r(884)),y=n(r(814)),g=n(r(790)),b=n(r(787)),S=n(r(1)),_=r(239),O=n(r(63)),C=n(r(2756));function T(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,m.default)(e);if(t){var n=(0,m.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,p.default)(this,a)}}var R=(0,_.observer)((u=o=function(e){(0,d.default)(r,e);var a=T(r);function r(){var e;(0,i.default)(this,r);for(var n=arguments.length,l=new Array(n),o=0;o0&&void 0!==arguments[0]?arguments[0]:{},a=n.props,r=a.hasBundled,l=a.detail.name,o=a.getList;(n.setState({loading:!0}),r)&&(t.tags=(null!==(e=t.tags)&&void 0!==e?e:[]).concat(l));var u=I(I({},(0,g.default)(t,"group","tags","__index")),{},{labelSelector:n.getParamsLabel(t)});o(u).then((function(e){n.setState({loading:!1,list:r?e:e.filter((function(e){return!e.tags.find((function(e){return e.name===l}))}))})}))},n.handleAdd=function(e){n.setState((function(t){var a=t.value;return{value:[].concat((0,i.default)(a),[e])}}))},n.handleDelete=function(e){n.setState((function(t){return{value:t.value.filter((function(t){return t.name!==e.name}))}}))},n.handleOk=function(){var e=n.props.onOk;e&&e(n.state.value,!!n.state.hasRemoved.length)},n.handleCancel=function(){var e=n.props,t=e.onCancel,a=e.onOk;n.state.hasRemoved.length?a&&a(n.state.value,!0):t&&t()},n.handleOnUnBind=function(e){var t=n.props.onUnBind;t&&t(e),n.setState({hasRemoved:[].concat((0,i.default)(n.state.hasRemoved),[e.name])})},n.handleReset=function(){n.getList(n.state.filters)},n.clearFilter=function(){n.setState({filters:{}}),n.getList()},n.renderEmpty=function(){var e=n.props.hasBundled;return _.createElement(T.default,{icon:"exclamation",title:t("NO_CLUSTER_FOUND"),desc:null,action:e?null:_.createElement("p",null,t("YOU_CAN_TRY_TO"),_.createElement("span",{className:D.default.action,onClick:n.handleReset,"data-test":"table-empty-refresh"},t("REFRESH_DATA")),t("OR"),_.createElement("span",{className:D.default.action,onClick:n.clearFilter,"data-test":"table-empty-clear-filter"},t("CLEAR_SEARCH_CONDITIONS")))})},n.state={list:[],filters:{},value:[],hasRemoved:[],loading:!1},n.tagsStore=new O.default,n}return(0,d.default)(r,[{key:"componentDidMount",value:function(){this.getList(),this.tagsStore.fetchGroupList()}},{key:"render",value:function(){var e=this,a=this.props,r=a.hasBundled,n=(a.onUnBind,a.detail),l=(0,c.default)(a,["hasBundled","onUnBind","detail"]),o=this.state,s=o.list,i=o.hasRemoved,f=o.loading,d=o.value,p=s.filter((function(e){return!i.includes(e.name)})),m=n&&"[".concat(n.label,":").concat(n.value,"]");return _.createElement(C.Modal,(0,u.default)({width:960},l,{title:r?_.createElement("span",null,t("REMOVE_TAG_FROM_CLUSTERS")," ",m):t("ADD_TAG_TO_CLUSTERS"),onOk:this.handleOk,onCancel:this.handleCancel,hideFooter:r}),_.createElement(h.Alert,{type:"warning",message:t("ADD_TAG_DESC")}),_.createElement("div",{className:D.default.title},t("CLUSTER_PL")),_.createElement("div",null,f&&_.createElement(h.Loading,{size:"large",className:D.default.loading}),_.createElement("div",{className:D.default.bindContainer},!r&&_.createElement(R.default,{placeholder:t("SEARCH_BY_NAME"),columns:this.columns,onChange:function(t){e.setState({filters:t}),e.getList(t)},filters:this.state.filters}),p.map((function(t){var a=I(I({},t),{},{tags:t.tags.map((function(t){return e.tagsStore.tags.find((function(e){return e.name===t.name}))})).filter(Boolean)}),n=a.expiredDay,l=n&&n<0,o=(0,b.default)(d,{uid:a.uid});return _.createElement(N.default,{key:a.uid,data:a,hasBundled:r,isExpired:l,isChecked:o,onAdd:e.handleAdd,onDelete:e.handleDelete,onUnBind:e.handleOnUnBind})})),(0,y.default)(p)&&this.renderEmpty())))}},{key:"columns",get:function(){var e,a;return[{dataIndex:"name",title:t("NAME"),search:!0},{dataIndex:"alias",title:t("ALIAS")},{dataIndex:"group",title:t("TYPE"),search:!0,filters:(null!==(e=this.tagsStore.group)&&void 0!==e?e:[]).map((function(e){return{text:e,value:e}})),renderSearch:function(e){return _.createElement("div",{className:"flex"},_.createElement("div",{className:(0,E.default)(D.default.clusterGroupTag,(0,s.default)({},D.default[e.key],!0))},t("ENV_".concat(e.label.toUpperCase()))),e.label)}},{dataIndex:"tags",title:t("TAG_PL"),filters:(null!==(a=this.tagsStore.tags)&&void 0!==a?a:[]).map((function(e){return{text:"".concat(e.label,":").concat(e.value),value:e.name}})),search:!0,multi:!0,renderSearch:function(e){return _.createElement("div",null,e.label)}}]}}]),r}(_.Component))||o;a.default=A},function(e,t,a){e.exports={bindContainer:"tNOa2EL27AfZiO2ZR8X2N",title:"_27U9qtKLZLLaVaV962NmSl",clusterGroupTag:"asBnEP-QmaK_c2rUi_em1",production:"_1oup3lUa7IHFoiyXgT3MTn",development:"_2vOI0ZGF4Kix3qif4cdDsq",testing:"_1pAhmfcRN1P3di10eJhrD-",demo:"_3BgkAEAOGO_uworLTWtfAQ",loading:"PBENJVDRQo4Ld4LJ4G6Ps",action:"_1cbBeiU9Q3bwhtrTCd8Vvi"}},function(e,a,r){"use strict";r(15);var n=r(20),l=r(157);r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(42),r(4),r(23),r(57),r(17);var o,u,c,s=n(r(30)),i=n(r(36)),f=n(r(37)),d=n(r(55)),p=n(r(56)),m=n(r(51)),v=l(r(0)),h=n(r(1)),E=r(186),y=n(r(3)),g=n(r(814)),b=r(903),S=r(924),_=n(r(2770));function O(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,m.default)(e);if(t){var n=(0,m.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,p.default)(this,a)}}var C=(0,n(r(936)).default)(["chain-off-duotone"])((c=u=function(e){(0,d.default)(r,e);var a=O(r);function r(e){var n;return(0,i.default)(this,r),(n=a.call(this,e)).handleChange=function(e){var t=n.props,a=t.onAdd,r=t.onDelete,l=t.data;e?a&&a(l):r&&r(l)},n.renderPopconfirm=function(){var e=n.props,a=e.onUnBind,r=e.data;return v.createElement("div",null,v.createElement("div",{className:_.default.body},v.createElement("div",{className:_.default.header},v.createElement(E.Icon,{name:"information",type:"green",size:20}),v.createElement("span",null,t("REMOVE_TAG"))),v.createElement("div",{className:_.default.desc},t("REMOVE_TAG_DESC"))),v.createElement("div",{className:_.default.footer},v.createElement(E.Button,null,t("CANCEL")),v.createElement(E.Button,{type:"control",onClick:function(){return a(r)}},t("OK"))))},n.state={},n}return(0,f.default)(r,[{key:"render",value:function(){var e,a,r=this.props,n=r.data,l=r.isExpired,o=r.isChecked,u=r.hasBundled;return v.createElement("li",{className:(0,y.default)(_.default.wrapper,(e={},(0,s.default)(e,_.default.itemWithCheckbox,!u),(0,s.default)(e,_.default.itemWithButton,u),e)),"data-test":"cluster-item"},!u&&v.createElement("div",null,v.createElement(E.Checkbox,{checked:o,disabled:n.tags.length>=5,onChange:this.handleChange})),v.createElement(g.default,{cluster:n,isExpired:l}),v.createElement(b.Text,{title:v.createElement(S.ClusterTagGroup,{empty:"-",data:null!==(a=null==n?void 0:n.tags)&&void 0!==a?a:[]}),description:t("TAG_PL")}),u&&v.createElement("div",null,v.createElement(E.Dropdown,{className:_.default.popconfirm,content:this.renderPopconfirm(),placement:"left"},v.createElement(E.Button,{className:_.default.itemCloseButton},v.createElement(E.Icon,{name:"chain-off-duotone"}))),v.createElement("span",{className:_.default.itemCloseIcon},v.createElement(E.Icon,{name:"chain-off-duotone"}))))}}]),r}(v.Component),u.propTypes={data:h.default.object,isExpired:h.default.bool,isChecked:h.default.bool,hasBundled:h.default.bool,onAdd:h.default.func,onDelete:h.default.func,onUnBind:h.default.func},o=c))||o;a.default=C},function(e,t,a){e.exports={wrapper:"_3TrpZAZ3rgo39zOFZHy8xz",icon:"Zi3B5-Wsb-8T_s2aNJNQq",indicator:"_15a5i-zVfIE2ZvIsIlbMHx",itemWithButton:"_1ezmOe2ce-Ti0CMtdJM-yv",itemWithCheckbox:"EwrSmju5xej7jB6369Iie",itemCloseButton:"_3C8K2FArTgOSTqJcodaziA",itemCloseIcon:"_4puH2z6rvpiySiIfOO-2g",popconfirm:"oUkiKzGAnbQh8iG6baohw",body:"mHrc4zc9iyde_dCL2NmHL",header:"_1IEA6_50QyV57w4Qsr27Is",desc:"_2cNWy8q3JOj7RqEkTJZb3b",footer:"_3KkbOlGfceZx6Dql_Lrl5V"}},,function(e,a,r){"use strict";r(15);var n=r(20),l=r(157);r(11),r(31),r(16),r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(11),r(31),r(42),r(16),r(4),r(23),r(57),r(17);var o,u=n(r(315)),c=n(r(58)),s=n(r(36)),i=n(r(37)),f=n(r(55)),d=n(r(56)),p=n(r(51)),m=l(r(0)),v=r(186),h=r(239),E=r(14),y=r(903),g=r(924),b=n(r(2773));function S(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,p.default)(e);if(t){var n=(0,p.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,d.default)(this,a)}}var _=(0,h.observer)(o=function(e){(0,f.default)(r,e);var a=S(r);function r(e){var t;return(0,s.default)(this,r),(t=a.call(this,e)).handleChange=function(e){t.setState({value:e})},t.handleOk=function(){var e=t.props,a=e.onOk,r=e.defaultValue,n=t.state.value;a((void 0===n?[]:n).filter((function(e){return!r.find((function(t){return t.name===e.name}))})))},t.state={list:e.list,value:e.value},t}return(0,i.default)(r,[{key:"render",value:function(){var e=this.props,a=(e.tagsGroup,e.tags),r=e.onAddTags,n=e.defaultValue,l=void 0===n?[]:n,o=(0,c.default)(e,["tagsGroup","tags","onAddTags","defaultValue"]),s=this.state.value;return m.createElement(y.Modal,(0,u.default)({width:600},o,{onOk:this.handleOk}),m.createElement("div",{className:b.default.wrapper},m.createElement(v.Alert,{type:"info",message:t("ADD_TAG_DESC")}),m.createElement("div",{className:b.default.title},t("ADD_TAGS")),m.createElement(g.ClusterTagAdd,{value:s,tagsGroup:(0,E.toJS)(this.props.store.tagsGroup),onChange:this.handleChange,defaultValue:l,onAddTags:r,tags:a})))}}]),r}(m.Component))||o;a.default=_},function(e,t,a){e.exports={wrapper:"FiDtjjOYi_dnAFmvmrS9j",title:"_1LaxNlg30y7jjTiSh0zwsn"}},function(e,a,r){"use strict";var n=r(20);r(12),r(11),r(6),r(16),r(9),r(13),r(10),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(11),r(6),r(28),r(16),r(34),r(15),r(9),r(13),r(10),r(4),r(22),r(7);var l=n(r(43));r(41);var o=n(r(44)),u=n(r(58)),c=n(r(30)),s=n(r(787)),i=n(r(240)),f=n(r(824)),d=n(r(2775)),p=n(r(435)),m=n(r(135)),v=n(r(26)),h=n(r(74)),E=r(1183);function y(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function g(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.cluster,a=e.namespace,r="";return t&&(r+="/clusters/".concat(t)),a&&(r+="/namespaces/".concat(a)),r}},{key:"fetchLabelSets",value:(t=(0,u.default)(n.default.mark((function e(){var t,a,r,l,o,u=arguments;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=u.length>0&&void 0!==u[0]?u[0]:{},a=Object.assign({},t),e.next=3,request.get("".concat(this.apiVersion).concat(this.getPath({}),"/targets/labelsets"),a);case 3:r=e.sent,l=(0,p.default)(r,"data")||[],o={},l.forEach((function(e){Object.keys(e).forEach((function(t){o[t]=o[t]||[],o[t].includes(e[t])||o[t].push(e[t])}))})),this.labelsets=o;case 8:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})}]),e}(),o=(0,f.default)(l.prototype,"labelsets",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),(0,f.default)(l.prototype,"fetchLabelSets",[d.action],Object.getOwnPropertyDescriptor(l.prototype,"fetchLabelSets"),l.prototype),l);t.default=m},function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(42),r(4),r(23),r(57),r(17);var l,o=n(r(36)),u=n(r(37)),c=n(r(55)),s=n(r(56)),i=n(r(51)),f=n(r(0)),d=r(239),p=n(r(1645));function m(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,i.default)(e);if(t){var n=(0,i.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,s.default)(this,a)}}var v=(0,d.inject)("monitoringStore")(l=(0,d.observer)(l=function(e){(0,c.default)(r,e);var a=m(r);function r(){var e;(0,o.default)(this,r);for(var t=arguments.length,n=new Array(t),l=0;lu?S.default.error({content:t("TIMERANGE_SELECTOR_MSG")}):e.props.onCustomSubmit({startTime:o,endTime:u,interval:l})},e}return(0,i.default)(r,[{key:"render",value:function(){var e=this.state.showDropdown,t=this.props,a=t.format,r=t.timeRange,n=a(t.recent||{},r);return E.default.createElement("div",{className:(0,y.default)(_.default.wrapper,(0,u.default)({},_.default.active,e))},E.default.createElement("div",{className:(0,y.default)(_.default.mask,(0,u.default)({},_.default.active,e)),onClick:this.hideDropdown}),E.default.createElement("div",{className:_.default.content,onClick:this.toggleDropdown},E.default.createElement(g.Icon,{name:"calendar",type:"light"}),E.default.createElement("span",null,n),E.default.createElement(g.Icon,{name:"chevron-down",type:"light"})),this.renderDropDown())}},{key:"renderDropDown",value:function(){return E.default.createElement("div",{className:_.default.dropdown},this.renderRecentOpts(),this.renderCustomOpts())}},{key:"renderRecentOpts",value:function(){var e=this,a=this.props.recentOpts;return E.default.createElement(E.default.Fragment,null,E.default.createElement("div",{className:_.default.title},t("SELECT_TIME_RANGE")),E.default.createElement("div",{className:_.default.recentWrapper},a.map((function(t,a){var r=t.label;return E.default.createElement("span",{onClick:e.handleRecentClick,"data-index":a,key:a},r)}))))}},{key:"renderCustomOpts",value:function(){var e=this.props,a=e.timeRange,r=e.interval,n=e.intervalOpts,l=a.startTime,u=a.endTime,c={enableSeconds:!0,enableTime:!0,dateFormat:"Y-m-d H:i:S"};return E.default.createElement(E.default.Fragment,null,E.default.createElement("div",{className:_.default.title},t("CUSTOM_TIME_RANGE")),E.default.createElement(g.Form,{data:{interval:r,startTime:[l],endTime:[u]},onSubmit:this.handleSubmit},E.default.createElement(g.Form.Item,{label:t("START_TIME")},E.default.createElement(g.DatePicker,(0,o.default)({name:"startTime"},c))),E.default.createElement(g.Form.Item,{label:t("END_TIME")},E.default.createElement(g.DatePicker,(0,o.default)({name:"endTime"},c))),E.default.createElement("div",{className:_.default.footer},(0,v.default)(n)||E.default.createElement(g.Form.Item,{label:t("SAMPLING_INTERVAL")},E.default.createElement(g.Select,{name:"interval",className:_.default.select,options:n})),E.default.createElement("div",null,E.default.createElement(g.Button,{htmlType:"submit"},t("OK"))))))}}]),r}(E.Component);C.propTypes={recent:h.default.object,timeRange:h.default.object,format:h.default.func,recentOpts:h.default.array,interval:h.default.string,intervalOpts:h.default.array,onRecentSelect:h.default.func,onCustomSubmit:h.default.func},C.defaultProps={recent:null,timeRange:{startTime:Date.now(),endTime:Date.now()},format:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=e.count,r=e.unit,n=arguments.length>1?arguments[1]:void 0,l=n.startTime,o=void 0===l?0:l,u=n.endTime,c=void 0===u?0:u;return a?"".concat(t("LAST")," ").concat(a," ").concat(t(r)):"".concat((0,b.default)(o).format("YYYY/MM/DD HH:mm:ss")," ~ ").concat((0,b.default)(c).format("YYYY/MM/DD HH:mm:ss"))},recentOpts:[{label:"Last 5 Minutes",value:{count:5,unit:"Minutes"}}],intervalOpts:[],onRecentSelect:function(){},onCustomSummit:function(){}};var T=C;a.default=T},function(e,t,a){e.exports={wrapper:"_2kNQZvZCCOrdYLr3lW_M0M",active:"_3ze5VvZgAQIFkqqU43TECt",dropdown:"_38qK6AG6_ltW34wzqG2QjC",mask:"_1e1_OUeku7JT9XcEh-uO-Q",content:"zGUNaQOOt-GtiMetfKDgX",title:"_3YE7OaQAST3rEZTGrNXeD2",recentWrapper:"_2FjFhDG37PJi2iTV2HWjv0",footer:"_1_M2ap0yCRe5IW3k3h55YP"}},function(e,t,a){"use strict";a(15);var r=a(20);a(5),a(6),a(18),a(9),a(4),a(23),a(17),a(7),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(45),a(5),a(6),a(18),a(42),a(9),a(4),a(23),a(57),a(17),a(7);var n,l,o=r(a(36)),u=r(a(37)),c=r(a(55)),s=r(a(56)),i=r(a(51)),f=r(a(49)),d=r(a(0)),p=a(239),m=a(14),v=r(a(2820));function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,i.default)(e);if(t){var n=(0,i.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,s.default)(this,a)}}var E=(0,p.inject)("monitoringStore","modalStore")(n=(0,p.observer)((l=function(e){(0,c.default)(a,e);var t=h(a);function a(){var e;(0,o.default)(this,a);for(var r=arguments.length,n=new Array(r),l=0;l1)return"Only queries that return single series/table is supported";if(0===u)return"No Data";var c=(0,d.default)(o,"0.values",[]).map((function(e){var t=(0,l.default)(e,2)[1];return Number(t)})),s=(E[t]||m.avgs)(c)||0;return(m.unitTransformMap[n]||m.unitTransformMap.none)(s,r)}}]),a}(v.default),(0,f.default)(n.prototype,"stat",[p.computed],Object.getOwnPropertyDescriptor(n.prototype,"stat"),n.prototype),n);t.default=y},function(e,t,a){"use strict";var r=a(20);a(12),a(11),a(6),a(29),a(18),a(87),a(16),a(27),a(98),a(9),a(13),a(10),a(4),a(23),a(17),a(7),a(32),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(12),a(45),a(11),a(6),a(29),a(18),a(28),a(87),a(42),a(16),a(27),a(34),a(15),a(98),a(9),a(13),a(10),a(4),a(23),a(57),a(17),a(7),a(32);var n,l=r(a(30)),o=r(a(96)),u=r(a(36)),c=r(a(37)),s=r(a(55)),i=r(a(56)),f=r(a(51)),d=r(a(49)),p=a(14),m=a(794),v=r(a(26)),h=r(a(1362));function E(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,f.default)(e);if(t){var n=(0,f.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,i.default)(this,a)}}var g={avg:m.avgs,last:function(e){return e[e.length-1]},first:function(e){return e[0]},max:function(e){return Math.max.apply(null,e)},min:function(e){return Math.min.apply(null,e)}},b=(n=function(e){(0,s.default)(a,e);var t=y(a);function a(){return(0,u.default)(this,a),t.apply(this,arguments)}return(0,c.default)(a,[{key:"graphData",get:function(){var e=this.metrics.reduce((function(e,t){var a=t.values,r=t.id;return a.forEach((function(t){var a=(0,o.default)(t,2),n=a[0],l=a[1],u=1e3*n,c=e[u]||{};c[r]=Number(l),e[u]=c})),e}),{});return Object.entries(e).map((function(e){var t=(0,o.default)(e,2),a=t[0],r=t[1];return function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},r=a.config,n=void 0===r?{}:r,s=a.monitors,i=void 0===s?[]:s;(0,c.default)(this,e),(0,u.default)(this,"monitors",l,this),(0,u.default)(this,"config",o,this),this.config=n,this.monitors=i.map((function(e){return e.belong(t)}))}return(0,s.default)(e,[{key:"push",value:function(e){return e.belong(this),this.monitors.push(e),this}},{key:"has",value:function(e){return(0,d.default)(this.monitors,e)}},{key:"updateMonitors",value:function(e){this.monitors=e}},{key:"deleteTextMonitorByIndex",value:function(e){this.monitors.splice(e,1)}}]),e}(),l=(0,i.default)(n.prototype,"monitors",[f.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),o=(0,i.default)(n.prototype,"config",[f.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),(0,i.default)(n.prototype,"updateMonitors",[f.action],Object.getOwnPropertyDescriptor(n.prototype,"updateMonitors"),n.prototype),(0,i.default)(n.prototype,"deleteTextMonitorByIndex",[f.action],Object.getOwnPropertyDescriptor(n.prototype,"deleteTextMonitorByIndex"),n.prototype),n);t.default=p},function(e,a,r){"use strict";var n=r(20);r(12),r(5),r(11),r(6),r(9),r(13),r(10),r(4),r(23),r(17),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(45),r(5),r(11),r(6),r(28),r(42),r(34),r(15),r(9),r(13),r(10),r(4),r(22),r(23),r(57),r(17),r(7);var l=n(r(30)),o=n(r(43));r(41);var u=n(r(44)),c=n(r(36)),s=n(r(37)),i=n(r(55)),f=n(r(56)),d=n(r(51)),p=n(r(0)),m=n(r(26)),v=n(r(74)),h=n(r(1644)),E=n(r(2906)),y=n(r(1679)),g=n(r(825)),b=n(r(2911)),S=n(r(1681));function _(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function O(e){for(var t=1;t0)){e.next=4;break}return E.default.error(t("FILE_UPLOAD_ERROR")),e.abrupt("return",Promise.reject(t("FILE_UPLOAD_ERROR")));case 4:if("json"===a.name.slice(a.name.lastIndexOf(".")+1)){e.next=8;break}return E.default.error(t("WRONG_FILE_EXTENSION_NAME",{type:"JSON"})),e.abrupt("return",Promise.reject(t("WRONG_FILE_EXTENSION_NAME",{type:"JSON"})));case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),n.startHandler=function(e){n.setFileStatus(e.uid,{size:e.size,name:e.name,showProgress:!0,showFile:!1,percentage:0,status:"active"})},n.progressHandler=function(e,t){var a=(0,y.default)(e.percent)?Math.round(e.percent):0;n.setFileStatus(t.uid,{size:t.size,percentage:100===a?99:a,status:"active"})},n.successHandler=function(e,a){var r={name:a.name,size:a.size,showProgress:!1,showFile:!0,percentage:100,status:"active"};n.setFileStatus(a.uid,r);var l=new FileReader;l.readAsText(a,"utf8"),l.addEventListener("load",(function(){var e=l.result;n.props.onChange&&n.props.onChange(e)})),E.default.success({content:t("UPLOAD_SUCCESSFUL")})},n.errorHandler=function(e,a,r){n.setFileStatus(r.uid,{size:r.size,showProgress:!0,showFile:!1,status:"exception"}),E.default.error({content:t("UPLOAD_FAILED_MESSAGE")})},n.handleReUpload=function(){Object.keys(n.state.files).forEach((function(e){n.uploader.abort(e)})),n.setState({files:{}}),n.props.onChange(""),n.uploader.onClick()},n.renderProgress=function(e){var a=n.state.files[e];return m.default.createElement("div",{className:_.default.uploadingContent,key:e},m.default.createElement("p",{className:_.default.fileInfo},m.default.createElement("span",{className:_.default.fileName},a.name),m.default.createElement("span",{className:_.default.uploadText},t("UPLOAD_PERCENT",{percent:a.percentage})),m.default.createElement("span",{className:_.default.uploadText},t("FILE_SIZE",{size:(0,b.formatSize)(a.size)}))),m.default.createElement(v.Progress,{status:"primary",className:_.default.progress,percent:a.percentage,strokeWidth:8,key:e,showInfo:!1}))},n.renderFileItem=function(e){var a=n.state.files[e];return m.default.createElement("div",{className:_.default.uploadingContent,key:e},m.default.createElement("p",{className:_.default.fileInfo},m.default.createElement("span",{className:_.default.fileName},a.name),m.default.createElement("span",{className:_.default.uploadText},t("UPLOAD_FULLY")),m.default.createElement("span",{className:_.default.uploadText},t("FILE_SIZE",{size:(0,b.formatSize)(a.size)}))),m.default.createElement(v.Progress,{status:"primary",className:_.default.progress,percent:100,strokeWidth:8,showInfo:!1}))},n.uploaderProps={name:"grafanaDashboard",method:"post",action:n.getUploadUrl,multiple:!1,type:"json",beforeUpload:n.beforeUploadHandler,onStart:n.startHandler,onSuccess:n.successHandler,onProgress:n.progressHandler,onError:n.errorHandler},n.state={files:{}},n}return(0,i.default)(r,[{key:"render",value:function(){var e=this,a=this.state.files,r=Object.keys(a).length;return m.default.createElement("div",null,m.default.createElement("div",{className:_.default.container},m.default.createElement(h.default,(0,l.default)({},this.uploaderProps,{ref:function(t){e.uploader=t}}),m.default.createElement("div",{className:(0,g.default)(_.default.selectContainer,{})},m.default.createElement(v.Icon,{className:_.default.icon,size:40,name:"upload"}),m.default.createElement("p",{className:_.default.title},t("UPLOAD_FROM_LOCAL_TITLE")),m.default.createElement("p",{className:_.default.desc},t("SUPPORT_JSON_FILE"))))),m.default.createElement("div",{className:(0,g.default)(_.default.uploadContainer,(0,c.default)({},_.default.none,!r))},m.default.createElement("span",{className:_.default.icon},m.default.createElement(S.ReactComponent,null)),Object.keys(a).map((function(t){return a[t]?a[t].showProgress?e.renderProgress(t):a[t].showFile?e.renderFileItem(t):null:null})),m.default.createElement(v.Icon,{changeable:!0,name:"trash",onClick:this.handleReUpload,className:_.default.uploadIcon})))}},{key:"getUploadUrl",get:function(){return"/grafana/file"}}]),r}(m.default.Component);a.default=R},function(e,t,a){"use strict";a.r(t),a.d(t,"ReactComponent",(function(){return i}));var r=a(315),n=a.n(r),l=a(0),o=a.n(l),u=o.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.29 18.517h2.646v1.323c0 .73.592 1.323 1.323 1.323H19.84c.73 0 1.323-.592 1.323-1.323V7.936h-3.968c-.73 0-1.323-.592-1.323-1.323V2.645H9.259c-.73 0-1.323.593-1.323 1.323v6.613H5.291V2.645A2.645 2.645 0 017.936 0h10.26l5.612 5.612v15.55a2.645 2.645 0 01-2.645 2.646H7.936a2.645 2.645 0 01-2.645-2.645v-2.646z",fill:"#324558"}),c=o.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1 10.582a1 1 0 00-1 1v5.936a1 1 0 001 1h18a1 1 0 001-1V11.58a1 1 0 00-1-1H1zm7.648 6.41c-.372.28-.874.42-1.504.42-.437 0-.836-.08-1.195-.24-.36-.16-.634-.38-.822-.659a1.686 1.686 0 01-.284-.969H6.02c0 .628.375.942 1.125.942.279 0 .496-.057.652-.17a.553.553 0 00.235-.475c0-.221-.078-.391-.235-.51-.156-.118-.437-.243-.843-.374a5.981 5.981 0 01-.965-.39c-.646-.348-.969-.818-.969-1.41 0-.307.087-.58.26-.822.173-.24.422-.429.746-.564a2.808 2.808 0 011.092-.203c.406 0 .768.073 1.086.22.317.148.564.355.74.624.176.268.264.572.264.914H8.035c0-.26-.082-.463-.246-.608-.164-.144-.395-.216-.692-.216-.286 0-.509.06-.668.181a.573.573 0 00-.238.479c0 .184.093.34.28.464.186.126.46.243.822.352.666.2 1.152.45 1.457.746.304.297.457.667.457 1.11 0 .492-.187.878-.559 1.158zm-5.088.193a2.118 2.118 0 01-.989.227c-.601 0-1.07-.153-1.406-.46-.336-.305-.504-.738-.504-1.298h1.18c0 .278.059.484.176.617.117.133.302.2.554.2a.672.672 0 00.536-.231c.132-.154.199-.373.199-.656v-3.938h1.172v3.938c0 .361-.08.681-.24.959-.16.277-.387.491-.678.642zm8.297.227c.477 0 .9-.115 1.268-.344.368-.23.652-.555.85-.977.197-.422.296-.912.296-1.472v-.254c0-.558-.1-1.05-.302-1.475a2.254 2.254 0 00-.856-.98 2.353 2.353 0 00-1.263-.342c-.474 0-.896.114-1.264.342a2.254 2.254 0 00-.856.98c-.201.426-.302.919-.302 1.479v.28c.002.548.105 1.032.308 1.452.203.42.49.744.86.97.37.227.79.34 1.261.34zm-.921-1.442c.213.32.52.48.921.48.394 0 .696-.154.907-.462.21-.309.317-.759.32-1.35v-.277c0-.597-.107-1.05-.32-1.36-.214-.31-.519-.464-.914-.464-.394 0-.697.153-.91.459-.214.306-.322.754-.325 1.345v.278c0 .58.107 1.03.32 1.351zm4.959 1.364V13.59l2.281 3.743h1.172v-5.688H18.18v3.75l-2.285-3.75h-1.172v5.688h1.172z",fill:"#B6C2CD"}),s=o.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.572 17.412c.367 0 .696-.076.988-.227.291-.151.517-.365.678-.642.16-.278.24-.598.24-.96v-3.937H3.306v3.938c0 .283-.067.502-.2.656a.671.671 0 01-.534.23c-.253 0-.438-.066-.555-.199-.117-.133-.176-.339-.176-.617H.661c0 .56.168.993.504 1.299.336.306.805.459 1.407.459zm4.572 0c.63 0 1.132-.14 1.504-.42.372-.28.559-.666.559-1.159 0-.442-.153-.812-.457-1.109-.305-.297-.79-.546-1.457-.746-.362-.11-.636-.226-.823-.351-.186-.126-.279-.28-.279-.465 0-.198.08-.358.238-.479.16-.121.382-.181.668-.181.297 0 .528.072.692.216.164.145.246.347.246.608h1.172a1.63 1.63 0 00-.264-.914 1.729 1.729 0 00-.74-.623 2.555 2.555 0 00-1.086-.221c-.404 0-.768.068-1.092.203a1.695 1.695 0 00-.746.564c-.173.241-.26.515-.26.823 0 .59.323 1.06.969 1.41.237.127.559.257.965.389.406.131.687.256.844.374.156.119.234.289.234.51a.553.553 0 01-.234.475c-.157.113-.374.17-.653.17-.75 0-1.125-.314-1.125-.942H4.843c0 .368.095.69.284.97.188.278.463.497.822.657.36.16.758.24 1.195.24zm4.713 0c.477 0 .9-.115 1.268-.344.368-.23.652-.555.85-.977.198-.422.296-.913.296-1.472v-.254c0-.558-.1-1.05-.302-1.475a2.254 2.254 0 00-.856-.98 2.353 2.353 0 00-1.263-.342c-.474 0-.896.114-1.264.342a2.254 2.254 0 00-.855.98c-.202.426-.303.919-.303 1.479v.28c.002.548.105 1.032.308 1.452.204.42.49.744.86.97.37.227.79.34 1.261.34zm0-.961c-.4 0-.708-.16-.921-.48-.214-.321-.32-.772-.32-1.352v-.278c.002-.59.11-1.04.324-1.345.213-.306.516-.46.91-.46.396 0 .7.156.914.466.213.31.32.762.32 1.359v.277c-.003.591-.11 1.041-.32 1.35-.211.308-.513.463-.906.463zm4.038.883V13.59l2.281 3.743h1.172v-5.688H18.18v3.75l-2.285-3.75h-1.172v5.688h1.172z",fill:"#324558"}),i=function(e){return o.a.createElement("svg",n()({viewBox:"0 0 24 24",fill:"none",width:"1em",height:"1em"},e),u,c,s)};t.default="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik01LjI5MDY1IDE4LjUxNzRINy45MzU5OVYxOS44NDAxQzcuOTM1OTkgMjAuNTcwNiA4LjUyODE3IDIxLjE2MjcgOS4yNTg2NiAyMS4xNjI3SDE5Ljg0QzIwLjU3MDUgMjEuMTYyNyAyMS4xNjI3IDIwLjU3MDYgMjEuMTYyNyAxOS44NDAxVjcuOTM2MDNIMTcuMTk0N0MxNi40NjQyIDcuOTM2MDMgMTUuODcyIDcuMzQzODUgMTUuODcyIDYuNjEzMzVWMi42NDUzNEg5LjI1ODY2QzguNTI4MTcgMi42NDUzNCA3LjkzNTk5IDMuMjM3NTIgNy45MzU5OSAzLjk2ODAxVjEwLjU4MTRINS4yOTA2NVYyLjY0NTM0QzUuMjkwNjUgMS4xODQzNiA2LjQ3NTAxIDAgNy45MzU5OSAwSDE4LjE5NjRMMjMuODA4IDUuNjExNjJWMjEuMTYyN0MyMy44MDggMjIuNjIzNyAyMi42MjM3IDIzLjgwODEgMjEuMTYyNyAyMy44MDgxSDcuOTM1OTlDNi40NzUwMSAyMy44MDgxIDUuMjkwNjUgMjIuNjIzNyA1LjI5MDY1IDIxLjE2MjdWMTguNTE3NFoiIGZpbGw9IiMzMjQ1NTgiLz4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xIDEwLjU4MTVDMC40NDc3MTUgMTAuNTgxNSAwIDExLjAyOTMgMCAxMS41ODE1VjE3LjUxNzZDMCAxOC4wNjk5IDAuNDQ3NzE1IDE4LjUxNzYgMSAxOC41MTc2SDE5QzE5LjU1MjMgMTguNTE3NiAyMCAxOC4wNjk4IDIwIDE3LjUxNzZWMTEuNTgxNUMyMCAxMS4wMjkzIDE5LjU1MjMgMTAuNTgxNSAxOSAxMC41ODE1SDFaTTguNjQ4MDUgMTYuOTkxN0M4LjI3NTY2IDE3LjI3MTcgNy43NzQzNiAxNy40MTE2IDcuMTQ0MTUgMTcuNDExNkM2LjcwNjY1IDE3LjQxMTYgNi4zMDgyMSAxNy4zMzE1IDUuOTQ4ODMgMTcuMTcxNEM1LjU4OTQ2IDE3LjAxMTIgNS4zMTUzNyAxNi43OTE4IDUuMTI2NTcgMTYuNTEzMkM0LjkzNzc3IDE2LjIzNDUgNC44NDMzNyAxNS45MTE2IDQuODQzMzcgMTUuNTQ0NEg2LjAxOTE1QzYuMDE5MTUgMTYuMTcyIDYuMzk0MTUgMTYuNDg1OCA3LjE0NDE1IDE2LjQ4NThDNy40MjI3OSAxNi40ODU4IDcuNjQwMjQgMTYuNDI5MiA3Ljc5NjQ5IDE2LjMxNTlDNy45NTI3NCAxNi4yMDI2IDguMDMwODcgMTYuMDQ0NCA4LjAzMDg3IDE1Ljg0MTNDOC4wMzA4NyAxNS42MiA3Ljk1Mjc0IDE1LjQ1IDcuNzk2NDkgMTUuMzMxNUM3LjY0MDI0IDE1LjIxMzEgNy4zNTg5OSAxNS4wODgxIDYuOTUyNzQgMTQuOTU2NUM2LjU0NjQ5IDE0LjgyNSA2LjIyNDg4IDE0LjY5NTUgNS45ODc5IDE0LjU2NzlDNS4zNDIwNiAxNC4yMTg5IDUuMDE5MTUgMTMuNzQ4OSA1LjAxOTE1IDEzLjE1NzdDNS4wMTkxNSAxMi44NTA0IDUuMTA1NzQgMTIuNTc2MyA1LjI3ODkxIDEyLjMzNTVDNS40NTIwOSAxMi4wOTQ2IDUuNzAwNzkgMTEuOTA2NCA2LjAyNTAxIDExLjc3MUM2LjM0OTIzIDExLjYzNTYgNi43MTMxNiAxMS41Njc5IDcuMTE2OCAxMS41Njc5QzcuNTIzMDUgMTEuNTY3OSA3Ljg4NTAzIDExLjY0MTQgOC4yMDI3NCAxMS43ODg2QzguNTIwNDUgMTEuOTM1NyA4Ljc2NzE5IDEyLjE0MzQgOC45NDI5NyAxMi40MTE2QzkuMTE4NzYgMTIuNjc5OSA5LjIwNjY1IDEyLjk4NDUgOS4yMDY2NSAxMy4zMjU3SDguMDM0NzdDOC4wMzQ3NyAxMy4wNjUzIDcuOTUyNzQgMTIuODYyOCA3Ljc4ODY4IDEyLjcxODNDNy42MjQ2MiAxMi41NzM3IDcuMzk0MTUgMTIuNTAxNSA3LjA5NzI3IDEyLjUwMTVDNi44MTA4MSAxMi41MDE1IDYuNTg4MTYgMTIuNTYyIDYuNDI5MyAxMi42ODMxQzYuMjcwNDUgMTIuODA0MiA2LjE5MTAyIDEyLjk2MzcgNi4xOTEwMiAxMy4xNjE2QzYuMTkxMDIgMTMuMzQ2NSA2LjI4NDEyIDEzLjUwMTUgNi40NzAzMiAxMy42MjY1QzYuNjU2NTIgMTMuNzUxNSA2LjkzMDYxIDEzLjg2ODcgNy4yOTI1OCAxMy45NzhDNy45NTkyNSAxNC4xNzg2IDguNDQ0OTMgMTQuNDI3MyA4Ljc0OTYyIDE0LjcyNDFDOS4wNTQzIDE1LjAyMSA5LjIwNjY1IDE1LjM5MDggOS4yMDY2NSAxNS44MzM1QzkuMjA2NjUgMTYuMzI1NyA5LjAyMDQ1IDE2LjcxMTggOC42NDgwNSAxNi45OTE3Wk0zLjU1OTc3IDE3LjE4NTFDMy4yNjgxMSAxNy4zMzYxIDIuOTM4NjggMTcuNDExNiAyLjU3MTQ5IDE3LjQxMTZDMS45Njk5MyAxNy40MTE2IDEuNTAxMTggMTcuMjU4NiAxLjE2NTI0IDE2Ljk1MjZDMC44MjkzMDQgMTYuNjQ2NyAwLjY2MTMzNSAxNi4yMTM3IDAuNjYxMzM1IDE1LjY1MzhIMS44NDEwMkMxLjg0MTAyIDE1LjkzMjUgMS44OTk2MiAxNi4xMzgyIDIuMDE2OCAxNi4yNzFDMi4xMzM5OSAxNi40MDM4IDIuMzE4ODkgMTYuNDcwMiAyLjU3MTQ5IDE2LjQ3MDJDMi43OTU0NSAxNi40NzAyIDIuOTczODQgMTYuMzkzNCAzLjEwNjY1IDE2LjIzOThDMy4yMzk0NiAxNi4wODYxIDMuMzA1ODcgMTUuODY3NCAzLjMwNTg3IDE1LjU4MzVWMTEuNjQ2SDQuNDc3NzRWMTUuNTgzNUM0LjQ3Nzc0IDE1Ljk0NTUgNC4zOTc2NiAxNi4yNjUxIDQuMjM3NTEgMTYuNTQyNUM0LjA3NzM1IDE2LjgxOTggMy44NTE0NCAxNy4wMzQgMy41NTk3NyAxNy4xODUxWk0xMS44NTc0IDE3LjQxMTZDMTIuMzM0IDE3LjQxMTYgMTIuNzU2NSAxNy4yOTcgMTMuMTI1IDE3LjA2NzlDMTMuNDkzNSAxNi44Mzg3IDEzLjc3NjcgMTYuNTEzMiAxMy45NzQ2IDE2LjA5MTNDMTQuMTcyNSAxNS42Njk0IDE0LjI3MTUgMTUuMTc4NiAxNC4yNzE1IDE0LjYxODdWMTQuMzY0OEMxNC4yNzE1IDEzLjgwNzUgMTQuMTcwNiAxMy4zMTU5IDEzLjk2ODggMTIuODkwMUMxMy43NjY5IDEyLjQ2NDQgMTMuNDgxOCAxMi4xMzc1IDEzLjExMzMgMTEuOTA5N0MxMi43NDQ4IDExLjY4MTggMTIuMzIzNiAxMS41Njc5IDExLjg0OTYgMTEuNTY3OUMxMS4zNzU3IDExLjU2NzkgMTAuOTU0NCAxMS42ODE4IDEwLjU4NTkgMTEuOTA5N0MxMC4yMTc1IDEyLjEzNzUgOS45MzIzIDEyLjQ2NDQgOS43MzA0OCAxMi44OTAxQzkuNTI4NjUgMTMuMzE1OSA5LjQyNzc0IDEzLjgwODggOS40Mjc3NCAxNC4zNjg3VjE0LjY0OTlDOS40MzAzNSAxNS4xOTY4IDkuNTMzMjEgMTUuNjgwNSA5LjczNjM0IDE2LjEwMTFDOS45Mzk0NiAxNi41MjE3IDEwLjIyNTkgMTYuODQ1MiAxMC41OTU3IDE3LjA3MThDMTAuOTY1NSAxNy4yOTgzIDExLjM4NjEgMTcuNDExNiAxMS44NTc0IDE3LjQxMTZaTTEwLjkzNTYgMTUuOTcwMkMxMS4xNDkxIDE2LjI5MDUgMTEuNDU2NCAxNi40NTA3IDExLjg1NzQgMTYuNDUwN0MxMi4yNTA3IDE2LjQ1MDcgMTIuNTUyNyAxNi4yOTY0IDEyLjc2MzcgMTUuOTg3OEMxMi45NzQ2IDE1LjY3OTIgMTMuMDgxNCAxNS4yMjkzIDEzLjA4NCAxNC42MzgyVjE0LjM2MDhDMTMuMDg0IDEzLjc2NDUgMTIuOTc3MiAxMy4zMTE0IDEyLjc2MzcgMTMuMDAxNUMxMi41NTAxIDEyLjY5MTYgMTIuMjQ1NCAxMi41MzY2IDExLjg0OTYgMTIuNTM2NkMxMS40NTY0IDEyLjUzNjYgMTEuMTUzIDEyLjY4OTYgMTAuOTM5NSAxMi45OTU2QzEwLjcyNTkgMTMuMzAxNiAxMC42MTc4IDEzLjc1MDIgMTAuNjE1MiAxNC4zNDEzVjE0LjYxODdDMTAuNjE1MiAxNS4xOTk0IDEwLjcyMiAxNS42NDk5IDEwLjkzNTYgMTUuOTcwMlpNMTUuODk0OSAxNy4zMzM1VjEzLjU5MTNMMTguMTc2MiAxNy4zMzM1SDE5LjM0ODFWMTEuNjQ2SDE4LjE4MDFWMTUuMzk2TDE1Ljg5NDkgMTEuNjQ2SDE0LjcyMzFWMTcuMzMzNUgxNS44OTQ5WiIgZmlsbD0iI0I2QzJDRCIvPgo8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTIuNTcxNTMgMTcuNDExNkMyLjkzODcyIDE3LjQxMTYgMy4yNjgxNSAxNy4zMzYxIDMuNTU5ODEgMTcuMTg1MUMzLjg1MTQ4IDE3LjAzNCA0LjA3NzM5IDE2LjgxOTggNC4yMzc1NSAxNi41NDI1QzQuMzk3NyAxNi4yNjUxIDQuNDc3NzggMTUuOTQ1NSA0LjQ3Nzc4IDE1LjU4MzVWMTEuNjQ2SDMuMzA1OTFWMTUuNTgzNUMzLjMwNTkxIDE1Ljg2NzQgMy4yMzk1IDE2LjA4NjEgMy4xMDY2OSAxNi4yMzk3QzIuOTczODggMTYuMzkzNCAyLjc5NTQ5IDE2LjQ3MDIgMi41NzE1MyAxNi40NzAyQzIuMzE4OTMgMTYuNDcwMiAyLjEzNDAzIDE2LjQwMzggMi4wMTY4NSAxNi4yNzFDMS44OTk2NiAxNi4xMzgyIDEuODQxMDYgMTUuOTMyNSAxLjg0MTA2IDE1LjY1MzhIMC42NjEzNzdDMC42NjEzNzcgMTYuMjEzNyAwLjgyOTM0NiAxNi42NDY2IDEuMTY1MjggMTYuOTUyNkMxLjUwMTIyIDE3LjI1ODYgMS45Njk5NyAxNy40MTE2IDIuNTcxNTMgMTcuNDExNlpNNy4xNDQxOSAxNy40MTE2QzcuNzc0NCAxNy40MTE2IDguMjc1NyAxNy4yNzE2IDguNjQ4MDkgMTYuOTkxN0M5LjAyMDQ5IDE2LjcxMTggOS4yMDY2OSAxNi4zMjU3IDkuMjA2NjkgMTUuODMzNUM5LjIwNjY5IDE1LjM5MDggOS4wNTQzNCAxNS4wMjEgOC43NDk2NiAxNC43MjQxQzguNDQ0OTcgMTQuNDI3MiA3Ljk1OTI5IDE0LjE3ODUgNy4yOTI2MyAxMy45NzhDNi45MzA2NSAxMy44Njg3IDYuNjU2NTYgMTMuNzUxNSA2LjQ3MDM2IDEzLjYyNjVDNi4yODQxNiAxMy41MDE1IDYuMTkxMDYgMTMuMzQ2NSA2LjE5MTA2IDEzLjE2MTZDNi4xOTEwNiAxMi45NjM3IDYuMjcwNDkgMTIuODA0MiA2LjQyOTM1IDEyLjY4MzFDNi41ODgyIDEyLjU2MiA2LjgxMDg2IDEyLjUwMTUgNy4wOTczMSAxMi41MDE1QzcuMzk0MTkgMTIuNTAxNSA3LjYyNDY2IDEyLjU3MzcgNy43ODg3MiAxMi43MTgzQzcuOTUyNzggMTIuODYyOCA4LjAzNDgxIDEzLjA2NTMgOC4wMzQ4MSAxMy4zMjU3SDkuMjA2NjlDOS4yMDY2OSAxMi45ODQ1IDkuMTE4OCAxMi42Nzk5IDguOTQzMDIgMTIuNDExNkM4Ljc2NzI0IDEyLjE0MzQgOC41MjA0OSAxMS45MzU3IDguMjAyNzggMTEuNzg4NkM3Ljg4NTA3IDExLjY0MTQgNy41MjMxIDExLjU2NzkgNy4xMTY4NSAxMS41Njc5QzYuNzEzMiAxMS41Njc5IDYuMzQ5MjcgMTEuNjM1NiA2LjAyNTA1IDExLjc3MUM1LjcwMDgzIDExLjkwNjQgNS40NTIxMyAxMi4wOTQ2IDUuMjc4OTUgMTIuMzM1NEM1LjEwNTc4IDEyLjU3NjMgNS4wMTkxOSAxMi44NTA0IDUuMDE5MTkgMTMuMTU3N0M1LjAxOTE5IDEzLjc0ODkgNS4zNDIxMSAxNC4yMTg5IDUuOTg3OTQgMTQuNTY3OUM2LjIyNDkyIDE0LjY5NTUgNi41NDY1MyAxNC44MjUgNi45NTI3OCAxNC45NTY1QzcuMzU5MDMgMTUuMDg4MSA3LjY0MDI4IDE1LjIxMzEgNy43OTY1MyAxNS4zMzE1QzcuOTUyNzggMTUuNDUgOC4wMzA5MSAxNS42MiA4LjAzMDkxIDE1Ljg0MTNDOC4wMzA5MSAxNi4wNDQ0IDcuOTUyNzggMTYuMjAyNiA3Ljc5NjUzIDE2LjMxNTlDNy42NDAyOCAxNi40MjkyIDcuNDIyODMgMTYuNDg1OCA3LjE0NDE5IDE2LjQ4NThDNi4zOTQxOSAxNi40ODU4IDYuMDE5MTkgMTYuMTcyIDYuMDE5MTkgMTUuNTQ0NEg0Ljg0MzQxQzQuODQzNDEgMTUuOTExNiA0LjkzNzgxIDE2LjIzNDUgNS4xMjY2MSAxNi41MTMyQzUuMzE1NDEgMTYuNzkxOCA1LjU4OTUgMTcuMDExMiA1Ljk0ODg4IDE3LjE3MTRDNi4zMDgyNSAxNy4zMzE1IDYuNzA2NjkgMTcuNDExNiA3LjE0NDE5IDE3LjQxMTZaTTExLjg1NzUgMTcuNDExNkMxMi4zMzQgMTcuNDExNiAxMi43NTY2IDE3LjI5NyAxMy4xMjUgMTcuMDY3OUMxMy40OTM1IDE2LjgzODcgMTMuNzc2NyAxNi41MTMyIDEzLjk3NDcgMTYuMDkxM0MxNC4xNzI2IDE1LjY2OTQgMTQuMjcxNSAxNS4xNzg1IDE0LjI3MTUgMTQuNjE4N1YxNC4zNjQ3QzE0LjI3MTUgMTMuODA3NSAxNC4xNzA2IDEzLjMxNTkgMTMuOTY4OCAxMi44OTAxQzEzLjc2NyAxMi40NjQ0IDEzLjQ4MTggMTIuMTM3NSAxMy4xMTMzIDExLjkwOTdDMTIuNzQ0OCAxMS42ODE4IDEyLjMyMzYgMTEuNTY3OSAxMS44NDk3IDExLjU2NzlDMTEuMzc1NyAxMS41Njc5IDEwLjk1NDUgMTEuNjgxOCAxMC41ODYgMTEuOTA5N0MxMC4yMTc1IDEyLjEzNzUgOS45MzIzNCAxMi40NjQ0IDkuNzMwNTIgMTIuODkwMUM5LjUyODY5IDEzLjMxNTkgOS40Mjc3OCAxMy44MDg4IDkuNDI3NzggMTQuMzY4N1YxNC42NDk5QzkuNDMwMzkgMTUuMTk2OCA5LjUzMzI1IDE1LjY4MDUgOS43MzYzOCAxNi4xMDExQzkuOTM5NSAxNi41MjE2IDEwLjIyNiAxNi44NDUyIDEwLjU5NTggMTcuMDcxOEMxMC45NjU1IDE3LjI5ODMgMTEuMzg2MSAxNy40MTE2IDExLjg1NzUgMTcuNDExNlpNMTEuODU3NSAxNi40NTA3QzExLjQ1NjQgMTYuNDUwNyAxMS4xNDkxIDE2LjI5MDUgMTAuOTM1NiAxNS45NzAyQzEwLjcyMjEgMTUuNjQ5OSAxMC42MTUzIDE1LjE5OTQgMTAuNjE1MyAxNC42MTg3VjE0LjM0MTNDMTAuNjE3OSAxMy43NTAyIDEwLjcyNiAxMy4zMDE2IDEwLjkzOTUgMTIuOTk1NkMxMS4xNTMgMTIuNjg5NiAxMS40NTY0IDEyLjUzNjYgMTEuODQ5NyAxMi41MzY2QzEyLjI0NTUgMTIuNTM2NiAxMi41NTAyIDEyLjY5MTYgMTIuNzYzNyAxMy4wMDE1QzEyLjk3NzMgMTMuMzExNCAxMy4wODQgMTMuNzY0NSAxMy4wODQgMTQuMzYwOFYxNC42MzgyQzEzLjA4MTQgMTUuMjI5MyAxMi45NzQ3IDE1LjY3OTIgMTIuNzYzNyAxNS45ODc4QzEyLjU1MjggMTYuMjk2NCAxMi4yNTA3IDE2LjQ1MDcgMTEuODU3NSAxNi40NTA3Wk0xNS44OTUgMTcuMzMzNVYxMy41OTEzTDE4LjE3NjIgMTcuMzMzNUgxOS4zNDgxVjExLjY0NkgxOC4xODAxVjE1LjM5NkwxNS44OTUgMTEuNjQ2SDE0LjcyMzFWMTcuMzMzNUgxNS44OTVaIiBmaWxsPSIjMzI0NTU4Ii8+Cjwvc3ZnPgo="},function(e,t,a){e.exports={container:"v7G9tmJJiZiPTjYulk-uk",selectContainer:"_2JbUzk0qVPxow2dv37yVtn",icon:"_3dvVq4Wja1r855of5vz4Vz",title:"_2iY4A3tvAD8fqWCX7YbXzW",desc:"_2Qz6RDrQb0PqcjJChLpZ51",uploadContainer:"_2FoLzMRXXZB1NAvaVl4r1y",uploadingContent:"M6eVRzcbprHTXlq43-qL",fileInfo:"_93kbv_HMX_E4Nb61U_YCJ",fileName:"_3Z0oHIHL6-rqZ80URIlaWt",uploadText:"_2ToMbKmVtBJZXrzMUJsa0A",progress:"_2kNei8kEcBntfnpeptiCS",uploadIcon:"_1QevqqsDTqOPEx8RnmcIon",none:"_3Th3hjQg4wakFUvbxe0l0F"}},function(e,t,a){"use strict";a(15);var r=a(20);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=[{title:"BASIC_INFORMATION",icon:"dashboard",component:r(a(2912)).default,required:!0}];t.default=n},function(e,a,r){"use strict";r(15);var n=r(20);r(12),r(109),r(18),r(16),r(98),r(10),r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(109),r(45),r(18),r(42),r(16),r(98),r(10),r(4),r(23),r(57),r(17);var l,o=n(r(96)),u=n(r(36)),c=n(r(37)),s=n(r(55)),i=n(r(56)),f=n(r(51)),d=n(r(0)),p=r(239),m=n(r(26)),v=n(r(74)),h=n(r(63)),E=n(r(135)),y=r(186),g=n(r(1680)),b=r(72),S=n(r(1681)),_=n(r(2914));function O(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,f.default)(e);if(t){var n=(0,f.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,i.default)(this,a)}}var C=(0,p.observer)(l=function(e){(0,s.default)(r,e);var a=O(r);function r(e){var n;if((0,u.default)(this,r),(n=a.call(this,e)).templateSettingsOpts=Object.entries(n.templateSettings).map((function(e){var a=(0,o.default)(e,2),r=a[0],n=a[1];return{value:r,image:n.logo,label:"Custom"===n.name?t("CUSTOM"):n.name,description:n.description}})),n.nameValidator=function(e,a,r){if(!a)return r();n.props.store.checkName({name:a,namespace:n.props.namespace,cluster:n.props.cluster}).then((function(a){if(a.exist)return r({message:t("NAME_EXIST_DESC"),field:e.field});r()}))},n.handleTemplateChange=function(e){(0,v.default)(n.formTemplate,"spec",(0,m.default)(n.templateSettings,"".concat(e,".settings"),{})),n.forceUpdate()},(0,h.default)(n.formTemplate.spec)){var l=Object.keys(n.templateSettings)[0],c=(0,E.default)(n.templateSettings[l].settings);(0,v.default)(n.formTemplate,"spec",c)}return n}return(0,c.default)(r,[{key:"render",value:function(){var e=this.props.formRef;return d.default.createElement(y.Form,{data:this.formTemplate,ref:e},d.default.createElement(y.Columns,null,d.default.createElement(y.Column,null,d.default.createElement(y.Form.Item,{label:t("NAME"),desc:t("NAME_DESC"),rules:[{required:!0,message:t("NAME_EMPTY_DESC")},{pattern:b.PATTERN_NAME,message:t("INVALID_NAME_DESC")},{validator:this.nameValidator}]},d.default.createElement(y.Input,{name:"metadata.name",autoFocus:!0,maxLength:63}))),d.default.createElement(y.Column,null,d.default.createElement(y.Form.Item,{label:t("DESCRIPTION"),desc:t("DESCRIPTION_DESC")},d.default.createElement(y.TextArea,{name:"metadata.annotations['kubesphere.io/description']",maxLength:256})))),d.default.createElement(y.Form.Item,{label:d.default.createElement("div",{className:_.default.templateLabel},d.default.createElement("h3",null,t("TEMPLATE")),d.default.createElement("p",null,t("CUSTOM_MONITORING_TEMPLATE_DESC")))},d.default.createElement(g.default,{name:"spec.title",className:_.default.templateList,options:this.templateSettingsOpts,onChange:this.handleTemplateChange})))}},{key:"templateSettings",get:function(){return(0,E.default)(S.default)}},{key:"formTemplate",get:function(){var e=this.props,t=e.formTemplate,a=e.module;return(0,m.default)(t,b.MODULE_KIND_MAP[a],t)}}]),r}(d.default.Component))||l;a.default=C},function(e,t,a){e.exports={container:"_9NWeMBAss3j4dAfPXgl7q",selected:"_23vK4ncmS9GHYl5k5YaN4J"}},function(e,t,a){e.exports={templateList:"KSUx0GMOtSywAxVTF3PGQ",templateLabel:"F1e1CyJJ9gzhTQLwN8RyP"}},function(e,a,r){"use strict";var n=r(20);r(12),r(109),r(210),r(11),r(6),r(200),r(29),r(48),r(16),r(9),r(13),r(10),r(4),r(17),r(38),r(7),r(32),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(109),r(210),r(249),r(45),r(11),r(6),r(200),r(160),r(29),r(28),r(48),r(42),r(16),r(34),r(15),r(9),r(13),r(10),r(4),r(24),r(193),r(17),r(38),r(7),r(32);var l=n(r(30)),o=n(r(58)),u=n(r(240)),c=n(r(787)),s=n(r(825)),i=n(r(2916)),f=n(r(2950)),d=n(r(26)),p=n(r(74)),m=n(r(435));function v(e,t){var a;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(a=function(e,t){if(!e)return;if("string"==typeof e)return h(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);"Object"===a&&e.constructor&&(a=e.constructor.name);if("Map"===a||"Set"===a)return Array.from(e);if("Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return h(e,t)}(e))||t&&e&&"number"==typeof e.length){a&&(e=a);var r=0,n=function(){};return{s:n,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var l,o=!0,u=!1;return{s:function(){a=e[Symbol.iterator]()},n:function(){var e=a.next();return o=e.done,e},e:function(e){u=!0,l=e},f:function(){try{o||null==a.return||a.return()}finally{if(u)throw l}}}}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,r=new Array(t);a0){if(new Set(r.map((function(e){return e.type}))).size!==r.length)return void n(t("POLICY_TYPE_DUPLICATED"));r.every((function(t){return e.checkItemValid(t)}))||n(t("EMPTY_POLICY_MESSAGE"))}n()},e.checkItemValid=function(e){return!(0,p.default)(e)&&Object.values(e).every((function(e){return void 0!==e&&""!==e}))},e}return(0,o.default)(r,[{key:"render",value:function(){var e=this.props,a=e.prefix,r="scaleUp"===e.type?"EXPANSION_STRATEGY":"SCALING_STRATEGY";return m.default.createElement("div",{className:v.default.wrapper},m.default.createElement("div",{className:v.default.title},t(r)),m.default.createElement("div",{className:v.default.contentWrapper},m.default.createElement(i.Columns,null,m.default.createElement(i.Column,null,m.default.createElement(i.Form.Item,{label:t("POLICY_PREFERENCE"),desc:t("POLICY_PREFERENCE_DESC")},m.default.createElement(i.Select,{name:"".concat(a,".selectPolicy"),options:[{label:t("TENDS_TO_SCALE_SIGNIFICANTLY"),value:"Max"},{label:t("TENDS_TO_EXPAND_SLIGHTLY"),value:"Min"},{label:t("SCALE_DISABLE"),value:"Disabled"}],defaultValue:"Max"}))),m.default.createElement(i.Column,null,m.default.createElement(i.Form.Item,{label:t("STABILIZATION_WINDOW_SECONDS"),desc:t("STABILIZATION_WINDOW_SECONDS_DESC")},m.default.createElement(d.default,{name:"".concat(a,".stabilizationWindowSeconds"),integer:!0,min:0})))),m.default.createElement("div",{className:v.default.polices},m.default.createElement(i.Form.Group,null,m.default.createElement(i.Form.Item,{rules:[{validator:this.policiesValidator,checkOnSubmit:!0}]},m.default.createElement(f.default,{name:"".concat(a,".policies"),itemType:"object",addText:t("ADD"),checkItemValid:this.checkItemValid},m.default.createElement(h.default,null)))))))}}]),r}(m.default.Component);a.default=y},function(e,t,a){e.exports={wrapper:"jFCoYhpnGhYRcS1QvI2uD",title:"_1gW9vDU9n16HaSVvFzrJvF",contentWrapper:"_1Q43wihGB-cA4A_oU381-F",polices:"_11tysHczkx95E3l_OS1yA9"}},function(e,a,r){"use strict";r(15);var n=r(20);r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(42),r(4),r(23),r(57),r(17);var l=n(r(30)),o=n(r(36)),u=n(r(37)),c=n(r(55)),s=n(r(56)),i=n(r(51)),f=r(186),d=n(r(1098)),p=n(r(799)),m=n(r(800)),v=n(r(0)),h=n(r(2941));function E(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,i.default)(e);if(t){var n=(0,i.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,s.default)(this,a)}}var y=[{label:t("PODS"),value:"Pods"},{label:t("PERCENT"),value:"Percent"}],g=function(e){(0,c.default)(r,e);var a=E(r);function r(e){var t;return(0,o.default)(this,r),(t=a.call(this,e)).triggerChange=(0,m.default)((function(){var e=t.state,a=e.type,r=e.value,n=e.periodSeconds;t.props.onChange({type:a,value:r,periodSeconds:n})}),300),t.handleChange=function(e,a){t.setState((0,l.default)({},a,e),(function(){return t.triggerChange()}))},t.state=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.type,a=e.value,r=e.periodSeconds;return{type:t,value:a,periodSeconds:r}}(e.value),t}return(0,u.default)(r,[{key:"componentDidMount",value:function(){this.triggerChange()}},{key:"render",value:function(){var e=this,a=this.state,r=a.value,n=a.type,l=a.periodSeconds;return v.default.createElement("div",{className:h.default.wrapper},v.default.createElement(d.default,{prefix:t("POLICY_TYPE")},v.default.createElement(f.Select,{name:"type",value:n,options:y,onChange:function(t){return e.handleChange(t,"type")}})),v.default.createElement(d.default,{prefix:t("EXPANSION_VALUE")},v.default.createElement(p.default,{name:"value",value:r,min:0,integer:!0,onChange:function(t){return e.handleChange(t,"value")}})),v.default.createElement(d.default,{prefix:t("ACTIVATION_TIME")},v.default.createElement(p.default,{name:"periodSeconds",integer:!0,min:0,value:l,onChange:function(t){return e.handleChange(t,"periodSeconds")}})))}}]),r}(v.default.Component);a.default=g,g.defaultProps={value:{},onChange:function(){}}},function(e,t,a){e.exports={wrapper:"M54xui62otMloHUrIMpt_",tip:"_3aRuzDuGBQbBlvi2Gucjkc"}},function(e,a,r){"use strict";r(15);var n=r(20);r(84),r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(84),r(42),r(4),r(23),r(57),r(17);var l,o,u,c=n(r(36)),s=n(r(37)),i=n(r(55)),f=n(r(56)),d=n(r(51)),p=n(r(0)),m=n(r(1)),v=n(r(816)),h=r(239),E=r(186),y=r(881),g=r(72),b=n(r(2943)),S=n(r(2944)),_=n(r(2945)),O=n(r(1367));function C(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,d.default)(e);if(t){var n=(0,d.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,f.default)(this,a)}}var T=(0,h.observer)((u=o=function(e){(0,i.default)(r,e);var a=C(r);function r(e){var t;(0,c.default)(this,r),(t=a.call(this,e)).handleGoBack=function(){var e=t.context.resetSubRoute;e&&e(),t.props.onCancel()},t.handleSubmit=function(e){var a=t.props.onSave,r=t.formRef.current;r&&r.validate((function(){var t=r.getData();a(t),e&&e()}))},t.renderTrigger=function(){var e;switch(t.state.triggerType){case"cron":e=p.default.createElement(b.default,null);break;case"prometheus":e=p.default.createElement(S.default,null);break;default:e=p.default.createElement(_.default,null)}return e},t.handleChange=function(e){t.setState({triggerType:e,formData:{}})},t.formRef=p.default.createRef();var n=["cron","prometheus"].includes(e.trigger.type);return t.state={formData:e.trigger,triggerType:e.trigger.type?n?e.trigger.type:"custom":"cron"},t}return(0,s.default)(r,[{key:"componentDidMount",value:function(){var e=this.props.onCancel,t=this.context.registerSubRoute;t&&t(this.handleSubmit,e)}},{key:"render",value:function(){var e=this.state,a=e.formData,r=e.triggerType;return p.default.createElement("div",{className:O.default.wrapper},p.default.createElement("div",{className:"h6"},p.default.createElement("a",{className:"custom-icon",onClick:this.handleGoBack},p.default.createElement(y.ReactComponent,null)),t("ADD_TRIGGER")),p.default.createElement("div",{className:O.default.contentWrapper},p.default.createElement("div",{className:O.default.card},p.default.createElement(E.Form,{data:a,ref:this.formRef},p.default.createElement("div",null,t("TRIGGER_TYPE")),p.default.createElement(E.Form.Item,null,p.default.createElement(v.default,{value:r,options:g.CREATE_TRIGGER_TYPE_OPTIONS,onChange:this.handleChange})),p.default.createElement("div",{className:"form-group"},this.renderTrigger())))))}}]),r}(p.default.Component),o.defaultProps={onSave:function(){},onCancel:function(){}},o.contextTypes={registerSubRoute:m.default.func,resetSubRoute:m.default.func},l=u))||l;a.default=T},function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(42),r(4),r(23),r(57),r(17);var l=n(r(36)),o=n(r(37)),u=n(r(55)),c=n(r(56)),s=n(r(51)),i=n(r(0)),f=r(186),d=r(479),p=n(r(1367));function m(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,s.default)(e);if(t){var n=(0,s.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,c.default)(this,a)}}var v=function(e){(0,u.default)(r,e);var a=m(r);function r(){var e;(0,l.default)(this,r);for(var n=arguments.length,o=new Array(n),u=0;u0){var t=new Map,a=[];return e.forEach((function(a){var r=a.name;if(r){var n=e.filter((function(e){return e.name===r}));t.set(r,n)}})),t.has("*")?a=(0,s.default)(t.get("*")):(t.forEach((function(e){var t=e.length&&e.filter((function(e){return"*"===e.namespace}));t.length>0?a.push(t[0]):a=a.concat(e)})),a)}return e},_={"devops.create":{on:function(e){var a=e.store,r=e.workspace,n=e.success,l=(0,c.default)(e,["store","workspace","success"]),o=m.default.open(b({onOk:function(e){var l=(0,f.default)(e,"spec.placement.cluster");a.create(e,{cluster:l,workspace:r}).then((function(){m.default.close(o),p.default.success({content:t("CREATE_SUCCESSFUL")}),n&&n(l)}))},formTemplate:{},modal:v.default,store:a,workspace:r,hideCluster:!globals.app.isMultiCluster},l))}},"devops.edit":{on:function(e){var a=e.store,r=e.detail,n=e.success,l=(0,c.default)(e,["store","detail","success"]),o=m.default.open(b({onOk:function(e){a.update(r,e).then((function(){m.default.close(o),p.default.success({content:t("UPDATE_SUCCESSFUL")}),n&&n()}))},modal:h.default,detail:r,store:a},l))}},"devops.edit.allowlist":{on:function(e){var a,r=e.store,n=e.detail,u=e.success,s=(0,c.default)(e,["store","detail","success"]),v=m.default.open(b({onOk:(a=(0,o.default)(l.default.mark((function e(a){var o,c,s,h,E;return l.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=(0,i.default)(a),c=(0,f.default)(o,"spec.argo.sourceRepos",[]),s=(0,f.default)(o,"spec.argo.destinations",[]),(h=c.filter((function(e){return"*"===e}))).length>0&&(0,d.default)(o,"spec.argo.sourceRepos",h),E=S(s),(0,d.default)(o,"spec.argo.destinations",E),e.next=9,r.editAllowlist(n,o);case 9:m.default.close(v),p.default.success({content:t("UPDATE_SUCCESSFUL")}),u&&u();case 12:case"end":return e.stop()}}),e)}))),function(e){return a.apply(this,arguments)}),modal:E.default,store:r},s))}},"devops.batch.delete":{on:function(e){var a,r=e.store,n=e.success,u=e.rowKey,s=(0,c.default)(e,["store","success","rowKey"]),i=r.list,f=i.data,d=i.selectedRowKeys,v=f.filter((function(e){return d.includes(e[u])})).map((function(e){return e.name})),h=m.default.open(b({onOk:(a=(0,o.default)(l.default.mark((function e(){var a;return l.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=[],f.forEach((function(e){d.includes(e[u])&&a.push(r.delete(e))})),e.next=4,Promise.all(a);case 4:m.default.close(h),p.default.success({content:t("DELETED_SUCCESSFULLY")}),r.setSelectRowKeys([]),n&&n();case 8:case"end":return e.stop()}}),e)}))),function(){return a.apply(this,arguments)}),title:1===v.length?t("DELETE_DEVOPS_PROJECT"):t("DELETE_MULTIPLE_DEVOPS_PROJECTS"),desc:1===v.length?t.html("DELETE_DEVOPS_PROJECT_TIP",{resource:v.join(", ")}):t.html("DELETE_DEVOPS_PROJECT_TIP_PL",{resource:v.join(", ")}),resource:v.join(", "),modal:y.default,store:r},s))}}};a.default=_},function(e,a,r){"use strict";var n=r(20);r(12),r(11),r(31),r(6),r(18),r(16),r(98),r(9),r(13),r(10),r(4),r(23),r(17),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(45),r(11),r(31),r(6),r(18),r(28),r(42),r(16),r(34),r(15),r(98),r(9),r(13),r(10),r(4),r(23),r(57),r(17),r(7);var l,o,u,c=n(r(96)),s=n(r(30)),i=n(r(36)),f=n(r(37)),d=n(r(55)),p=n(r(56)),m=n(r(51)),v=r(186),h=n(r(787)),E=n(r(814)),y=n(r(26)),g=n(r(63)),b=n(r(972)),S=r(239),_=n(r(1)),O=n(r(0)),C=n(r(445)),T=r(72),R=r(916),D=n(r(528)),N=n(r(2963));function k(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function I(e){for(var t=1;t0){var n=[];a.forEach((function(e){return n.includes(e)?r({message:t("CODE_REPOSITORY_EXIST_DESC")}):e?void n.push(e):r({message:t("REPO_EMPTY_DESC")})}))}r()},e.destinationsValidator=function(e,a,r){if(!a)return r();if(a.length>0){var n=[];a.forEach((function(e){var a=n.find((function(t){return t.namespace===e.namespace&&t.cluster===e.name}));return(0,S.default)(a)?e.name&&!e.namespace?r({message:t("PROJECT_NOT_SELECT_DESC")}):void n.push({namespace:e.namespace,cluster:e.name}):r({message:t("DEPLOYMENT_LOCATION_EXIST_DESC")})}))}r()},e}return(0,i.default)(r,[{key:"componentDidMount",value:function(){this.init()}},{key:"render",value:function(){var e=this.props,a=e.visible,r=e.onCancel,n=e.onOk,l=e.devops,o=e.cluster;return m.default.createElement(y.default.Form,{width:960,title:t("EDIT_ALLOWLIST"),data:this.state.formTemplate,onCancel:r,onOk:n,visible:a,formRef:this.formRef},this.state.isLoading?m.default.createElement(E.Loading,{spinning:this.state.isLoading},m.default.createElement(g.default,{desc:"NO_DATA"})):m.default.createElement(m.default.Fragment,null,m.default.createElement(E.Form.Item,{label:t("CODE_REPO_PL"),rules:[{validator:this.sourceReposValidator}]},m.default.createElement(v.default,{name:"spec.argo.sourceRepos",addText:t("ADD"),itemType:"string",checkItemValid:this.checkItemValid},m.default.createElement(R.default,{devops:l,cluster:o}))),m.default.createElement(E.Form.Item,{label:t("DEPLOYMENT_LOCATION_PL"),rules:[{validator:this.destinationsValidator}]},m.default.createElement(v.default,{name:"spec.argo.destinations",itemType:"object",addText:t("ADD")},m.default.createElement(T.default,{clusters:this.state.clusters,formtemplate:this.state.formTemplate})))))}}]),r}(m.default.Component);a.default=I,I.propTypes={formTemplate:h.default.object,visible:h.default.bool,isSubmitting:h.default.bool,onOk:h.default.func,onCancel:h.default.func},I.defaultProps={formTemplate:{},visible:!1,isSubmitting:!1,onOk:function(){},onCancel:function(){}}},function(e,a,r){"use strict";var n=r(20);r(12),r(5),r(11),r(31),r(6),r(18),r(16),r(9),r(13),r(10),r(4),r(23),r(17),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(45),r(5),r(11),r(31),r(6),r(18),r(28),r(42),r(16),r(34),r(15),r(9),r(13),r(10),r(4),r(22),r(23),r(57),r(17),r(7);var l=n(r(61)),o=n(r(43)),u=n(r(30));r(41);var c,s,i,f,d=n(r(44)),p=n(r(65)),m=n(r(36)),v=n(r(37)),h=n(r(88)),E=n(r(55)),y=n(r(56)),g=n(r(51)),b=n(r(49)),S=(n(r(66)),r(186)),_=n(r(867)),O=n(r(26)),C=n(r(63)),T=n(r(241)),R=n(r(74)),D=r(14),N=r(239),k=n(r(0)),I=n(r(439)),P=r(52),A=n(r(1689));function w(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function M(e){for(var t=1;t0&&void 0!==n[0]?n[0]:{},"*"!==(r=(0,P.inCluster2Default)(e.cluster))){t.next=6;break}e.projectStore.list.update({data:[],isLoading:!1}),t.next=9;break;case 6:if(!r||"*"===r){t.next=9;break}return t.next=9,e.projectStore.fetchList(M(M({cluster:r},a),{},{type:"user"}));case 9:case"end":return t.stop()}}),t)}))),e.projectOptionRenderer=function(e){return k.default.createElement("span",{className:A.default.option},e.isFedManaged?k.default.createElement("img",{className:A.default.indicator,src:"/assets/cluster.svg"}):k.default.createElement(S.Icon,{name:"project"}),e.label,e.isFedManaged&&k.default.createElement(S.Tooltip,{content:t("MULTI_CLUSTER_PROJECT_NOT_FOR_CD")},k.default.createElement(S.Icon,{className:A.default.tip,name:"question"})))},(0,p.default)(e,"handleClusterChange",f,(0,h.default)(e)),e.handleChange=function(t){e.props.onChange(M({},t))},e.checkDestinationsValid=function(e){return!(0,C.default)(e)&&e.name&&e.namespace&&e.server},e}return(0,v.default)(n,[{key:"componentDidMount",value:function(){this.init()}},{key:"init",value:(a=(0,d.default)(o.default.mark((function e(){var t,a,r,n,l,u;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=this.destinations[this.props.index]||{},a=t.name,r=t.namespace,!a){e.next=10;break}return l=this.clusters.find((function(e){return e.value===a}))||{},this.cluster=l.value,(0,R.default)(this.state.formData,"name",(0,O.default)(this.clusters,l.value)),(0,R.default)(this.state.formData,"server",(0,O.default)(this.clusters,l.server)),e.next=8,this.fetchNamespaces();case 8:u=this.namespaces.find((function(e){return e.value===r})),(0,R.default)(this.state.formData,"namespace",null!==(n=null==u?void 0:u.value)&&void 0!==n?n:"");case 10:case"end":return e.stop()}}),e,this)}))),function(){return a.apply(this,arguments)})},{key:"render",value:function(){var e,a=this.props.value;return k.default.createElement(_.default,{value:a,onChange:this.handleChange},k.default.createElement(S.Select,{name:"name",key:null===(e=this.props.value)||void 0===e?void 0:e.name,placeholder:t("CLUSTER"),options:this.clusters,onChange:this.handleClusterChange,prefixIcon:k.default.createElement(S.Icon,{name:"cluster",size:16}),showTip:!0}),k.default.createElement(S.Select,{name:"namespace",placeholder:t("PROJECT"),options:this.namespaces,pagination:(0,T.default)(this.projectStore.list,["page","limit","total"]),isLoading:this.projectStore.list.isLoading,onFetch:this.fetchNamespaces,valueRenderer:this.projectOptionRenderer,optionRenderer:this.projectOptionRenderer,searchable:!0}))}},{key:"clusters",get:function(){return this.props.clusters.map((function(e){return M(M({},e),{},{label:k.default.createElement("span",null,(0,P.showNameAndAlias)(e.label,"cluster"))})}))}},{key:"destinations",get:function(){return(0,O.default)(this.props.formtemplate,"spec.argo.destinations",[])}},{key:"namespaces",get:function(){var e=this.projectStore.list.data.filter((function(e){return"Terminating"!==e.status})).map((function(e){return{label:(0,P.showNameAndAlias)(e),value:e.name,disabled:e.isFedManaged,isFedManaged:e.isFedManaged}}));return this.cluster?[j].concat((0,l.default)(e)):e}}]),n}(k.default.Component),i=(0,b.default)(s.prototype,"cluster",[D.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),(0,b.default)(s.prototype,"clusters",[D.computed],Object.getOwnPropertyDescriptor(s.prototype,"clusters"),s.prototype),f=(0,b.default)(s.prototype,"handleClusterChange",[D.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(){var t=(0,d.default)(o.default.mark((function t(a){var r,n;return o.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.cluster=a,t.next=3,e.fetchNamespaces();case 3:r=e.clusters.find((function(e){return e.value===a})).server,n=e.namespaces[0].value,e.props.onChange({name:a,server:r,namespace:n});case 6:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()}}),c=s))||c;a.default=x},function(e,a,r){"use strict";var n=r(20);r(12),r(5),r(11),r(6),r(18),r(16),r(9),r(13),r(10),r(4),r(23),r(17),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(45),r(5),r(11),r(6),r(18),r(28),r(42),r(16),r(34),r(15),r(9),r(13),r(10),r(4),r(22),r(23),r(57),r(17),r(7);var l=n(r(43)),o=n(r(61)),u=n(r(30));r(41);var c=n(r(44)),s=n(r(36)),i=n(r(37)),f=n(r(55)),d=n(r(56)),p=n(r(51)),m=r(186),v=n(r(241)),h=n(r(0)),E=n(r(1109)),y=n(r(1689));function g(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function b(e){for(var t=1;t-1&&c[i])){e.next=14;break}return e.abrupt("return",l({message:t("PROJECT_NAME_EXISTS_IN_CLUSTER",{cluster:c[i].name}),field:a.field}));case 14:l();case 15:case"end":return e.stop()}}),e)})));return function(t,a,r){return e.apply(this,arguments)}}(),n.valueRenderer=function(e){return P.default.createElement(S.default,{cluster:e.cluster,size:"small",noStatus:!0})},n.optionRenderer=function(e){return P.default.createElement(S.default,{cluster:e.cluster,size:"small",theme:"light",noStatus:!0})},n.handleClusterChange=function(e){if((0,R.default)(n.props.formTemplate,"spec.placement.clusters",(0,D.default)(e,"name")),n.nameRef&&n.nameRef.current){var t="metadata.name";n.formRef&&n.formRef.current&&!(0,T.default)(n.formRef.current.state.errors)&&n.formRef.current.resetValidateResults(t),n.nameRef.current.validate((0,l.default)({},t,(0,C.default)(n.props.formTemplate,t)))}},n.store=e.store,n.formRef=P.default.createRef(),n.nameRef=P.default.createRef(),n}return(0,m.default)(r,[{key:"renderClusters",value:function(){return P.default.createElement(g.Form.Group,{label:t("CLUSTER_PL"),desc:t("PROJECT_CLUSTER_SETTINGS_DESC")},P.default.createElement(g.Form.Item,{rules:[{required:!0,message:t("CLUSTER_EMPTY_DESC")}]},P.default.createElement(_.default,{name:"spec.placement.clusters",addText:t("ADD_CLUSTER"),itemType:"object",onChange:this.handleClusterChange},P.default.createElement(O.default,null,P.default.createElement(g.Select,{name:"name",placeholder:" ",className:w.default.cluster,options:this.clusters,valueRenderer:this.valueRenderer,optionRenderer:this.optionRenderer,showTip:!0})))))}},{key:"render",value:function(){var e=this.props,a=e.visible,r=e.formTemplate,n=e.onOk,l=e.onCancel,o=e.isSubmitting;return P.default.createElement(b.default.Form,{width:960,formRef:this.formRef,bodyClassName:w.default.body,data:r,onCancel:l,onOk:n,visible:a,closable:!1,isSubmitting:o,hideHeader:!0},P.default.createElement("div",{className:w.default.header},P.default.createElement("img",{src:"/assets/project-create.svg",alt:""}),P.default.createElement("div",{className:w.default.title},P.default.createElement("div",null,t("CREATE_MULTI_CLUSTER_PROJECT")),P.default.createElement("p",null,t("CREATE_MULTI_CLUSTER_PROJECT_DESC")))),P.default.createElement("div",{className:w.default.content},P.default.createElement(g.Columns,null,P.default.createElement(g.Column,null,P.default.createElement(g.Form.Item,{label:t("NAME"),desc:t("SERVICE_NAME_DESC"),ref:this.nameRef,rules:[{required:!0,message:t("NAME_EMPTY_DESC")},{pattern:A.PATTERN_SERVICE_NAME,message:t("INVALID_NAME_DESC",{message:t("SERVICE_NAME_DESC")})},{validator:this.nameValidator}]},P.default.createElement(g.Input,{name:"metadata.name",autoFocus:!0,maxLength:63}))),P.default.createElement(g.Column,null,P.default.createElement(g.Form.Item,{label:t("ALIAS"),desc:t("ALIAS_NAME_DESC"),rules:[{pattern:A.PATTERN_ALIAS_NAME,message:t("INVALID_ALIAS_NAME_DESC")}]},P.default.createElement(g.Input,{name:"metadata.annotations['kubesphere.io/alias-name']",maxLength:63})))),P.default.createElement(g.Columns,null,P.default.createElement(g.Column,null,P.default.createElement(g.Form.Item,{label:t("DESCRIPTION"),desc:t("DESCRIPTION_DESC")},P.default.createElement(g.TextArea,{name:"metadata.annotations['kubesphere.io/description']",maxLength:256}))),P.default.createElement(g.Column,null)),this.renderClusters()))}},{key:"networkOptions",get:function(){return[{label:t("OFF"),value:""},{label:t("ON"),value:"enabled"}]}},{key:"clusters",get:function(){return this.props.clusters.map((function(e){return{label:e.name,value:e.name,cluster:e,disabled:!e.isReady}}))}}]),r}(P.default.Component),i.propTypes={formTemplate:I.default.object,visible:I.default.bool,isSubmitting:I.default.bool,clusters:I.default.array,onOk:I.default.func,onCancel:I.default.func},i.defaultProps={formTemplate:{},visible:!1,isSubmitting:!1,onOk:function(){},onCancel:function(){}},s=f,(0,y.default)(s.prototype,"clusters",[N.computed],Object.getOwnPropertyDescriptor(s.prototype,"clusters"),s.prototype),c=s))||c;a.default=L},function(e,t,a){e.exports={body:"_2YFT-UtUl19RnIcDCBLrSX",header:"_2cYVq3DxoJtlCWF7n20jG",title:"_3JeOv7o2Iknp2JVawu8F0D",content:"_3FxY_7mBEqpROSZi3lNiqU",cluster:"ZBb_XLUwlhmbTirefNnWq",toolmessage:"_2Zd1xHbMCz9tv6jdf1MAn2"}},function(e,t,a){"use strict";a(15);var r=a(20);a(4),a(23),a(17),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(45),a(42),a(4),a(23),a(57),a(17);var n=r(a(315)),l=r(a(58)),o=r(a(36)),u=r(a(37)),c=r(a(55)),s=r(a(56)),i=r(a(51)),f=r(a(0)),d=r(a(1)),p=r(a(1123)),m=r(a(2976));function v(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,i.default)(e);if(t){var n=(0,i.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,s.default)(this,a)}}var h=function(e){(0,c.default)(a,e);var t=v(a);function a(){return(0,o.default)(this,a),t.apply(this,arguments)}return(0,u.default)(a,[{key:"render",value:function(){var e=this.props,t=e.module,a=(0,l.default)(e,["module"]);return f.default.createElement(p.default,(0,n.default)({title:"EDIT_SETTINGS",icon:"storage",module:t,forms:this.forms},a))}},{key:"forms",get:function(){return m.default[this.props.module]}}]),a}(f.default.Component);t.default=h,h.propTypes={module:d.default.string},h.defaultProps={module:"deployments"}},,,,function(e,t,a){"use strict";a(15);var r=a(20);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(a(1691)),l=r(a(1692)),o=r(a(1693)),u=r(a(1694)),c=r(a(2977)),s=r(a(2985)),i=r(a(1695)),f={deployments:[{icon:"dashboard",name:"updateStrategy",title:"UPDATE_STRATEGY",component:o.default},{icon:"container",name:"podTemplate",title:"CONTAINER_PL",component:l.default},{icon:"storage",name:"volumeSettings",title:"STORAGE",component:u.default},{icon:"group",name:"deploymentMode",title:"POD_SCHEDULING_RULES",component:n.default},{icon:"forbid-right-duotone",name:"podMode",title:"POD_GRACE_PERIOD",component:i.default},{title:"CLUSTER_DIFF",icon:"blue-green-deployment",name:"Diff Settings",component:c.default}],statefulsets:[{icon:"dashboard",name:"updateStrategy",title:"UPDATE_STRATEGY",component:o.default},{icon:"container",name:"podTemplate",title:"CONTAINER_PL",component:l.default},{icon:"forbid-right-duotone",name:"podMode",title:"POD_GRACE_PERIOD",component:i.default},{icon:"storage",name:"volumeSettings",title:"STORAGE",component:u.default},{title:"CLUSTER_DIFF",icon:"blue-green-deployment",name:"Diff Settings",component:c.default}],service:[{icon:"network-router",name:"editService",title:"SERVICE_SETTINGS",component:s.default},{title:"CLUSTER_DIFF",icon:"blue-green-deployment",name:"Diff Settings",component:c.default}]};t.default=f},function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(6),r(84),r(18),r(16),r(4),r(23),r(17),r(85),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(6),r(84),r(18),r(28),r(42),r(16),r(4),r(23),r(57),r(17),r(85),r(7);var l=n(r(315)),o=n(r(36)),u=n(r(37)),c=n(r(55)),s=n(r(56)),i=n(r(51)),f=n(r(0)),d=n(r(26)),p=n(r(63)),m=n(r(321)),v=n(r(74)),h=r(72),E=r(186),y=n(r(1333)),g=n(r(1611)),b=n(r(1612)),S=n(r(1613)),_=n(r(1614)),O=n(r(1615)),C=n(r(2978)),T=n(r(2980)),R=n(r(1331)),D=n(r(2982));function N(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,i.default)(e);if(t){var n=(0,i.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,s.default)(this,a)}}var k=function(e){(0,c.default)(r,e);var a=N(r);function r(){var e;(0,o.default)(this,r);for(var t=arguments.length,n=new Array(t),l=0;l0){var n=[];a.forEach((function(e){return e.name&&e.port?n.includes(e.name)?r({message:t("PORT_INPUT_DESC")}):e.name&&(e.name.length>63||!S.PATTERN_PORT_NAME.test(e.name))?r({message:t("PORT_NAME_DESC")}):void n.push(e.name):r({message:t("INVALID_PORT")})}))}r()},e.labelsValidator=function(e,a,r){return a?(0,m.default)(a)?r({message:t("ENTER_SELECTOR_TIP")}):(0,b.isValidLabel)(a)?r():r({message:t("LABEL_FORMAT_DESC")}):r()},e}return(0,u.default)(r,[{key:"renderTypeSelect",value:function(){return v.default.createElement(h.Form.Item,{label:t("INTERNAL_ACCESS_MODE")},v.default.createElement(E.default,{className:"margin-b12",value:this.state.serviceType,onChange:this.handleTypeChange,options:this.types}))}},{key:"renderLabelSelector",value:function(){var e=this.props.isFederated;return v.default.createElement(h.Form.Item,{label:t("WORKLOAD_SELECTOR"),rules:[{required:!0,message:t("ENTER_SELECTOR_TIP")},{validator:this.labelsValidator}]},v.default.createElement(_.default,{name:e?"spec.template.spec.selector":"spec.selector",cluster:this.props.cluster,namespace:this.namespace,addText:t("ADD"),isFederated:e,onChange:this.handleLabelsChange}))}},{key:"renderPorts",value:function(){var e=this.props.isFederated;return v.default.createElement(h.Form.Group,{label:t("PORT_PL"),desc:t("SERVICE_PORTS_DESC")},v.default.createElement(h.Form.Item,{rules:[{required:!0,message:t("PORT_EMPTY")},{validator:this.portsValidator,checkOnSubmit:!0}]},v.default.createElement(y.default,{name:e?"spec.template.spec.ports":"spec.ports",itemType:"object",addText:t("ADD_PORT")},v.default.createElement(g.default,null))))}},{key:"render",value:function(){var e=this.props,t=e.formRef,a=e.formProps;return v.default.createElement("div",{className:O.default.wrapper},v.default.createElement(h.Form,(0,l.default)({data:this.formTemplate,ref:t},a),this.renderTypeSelect(),this.renderLabelSelector(),this.renderPorts()))}},{key:"formTemplate",get:function(){var e=this.props,t=e.formTemplate,a=e.module;return(0,f.default)(t,S.MODULE_KIND_MAP[a],t)}},{key:"namespace",get:function(){return(0,f.default)(this.formTemplate,"metadata.namespace")}},{key:"types",get:function(){return[{icon:"cluster",label:t("VIRTUAL_IP_TITLE"),description:t("VIRTUAL_IP_DESC"),value:"virtualIP"},{icon:"blockchain",label:t("INTERNAL_DOMAIN_NAME"),description:t("INTERNAL_DOMAIN_NAME_DESC"),value:"headlessSelector"}]}}]),r}(v.default.Component);a.default=T},function(e,t,a){e.exports={wrapper:"_1d8R2wC-iPUk0mJ0gGdi9g",contentWrapper:"_3YpkzmM-waCXVs2m6v7Jd1",card:"_2TCiSZqKH5Kv9Jot5mNmTY",tabs:"_3CrPTt4KFbhRsB2wWRMg88",label:"_2GCaqlVoPz2mC7DU580ae2"}},function(e,t,a){e.exports={empty:"_3g5fKDY3mes3tmmqImZr6D"}},function(e,t,a){"use strict";a(15);var r=a(20);a(18),a(16),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(18),a(16);var n=r(a(135)),l=r(a(26)),o=r(a(242)),u={namespaces:function(e){var t=(0,l.default)(e,"metadata.name"),a=(0,l.default)(e,"metadata.annotations"),r=(0,l.default)(e,"spec.placement"),u=(0,l.default)(e,"spec.placement.clusters",[]),c=(0,l.default)(e,'metadata.labels["kubesphere.io/workspace"]'),s=(0,n.default)(e);(0,o.default)(s,"apiVersion"),(0,o.default)(s,"kind"),(0,o.default)(s,"metadata.name"),(0,o.default)(s,"spec");var i=u.map((function(e){return{clusterName:e.name,clusterOverrides:[{path:"/metadata/annotations",value:a}]}}));return{apiVersion:"types.kubefed.io/v1beta1",kind:"FederatedNamespace",metadata:{name:t,namespace:t,labels:{"kubesphere.io/workspace":c},annotations:a},spec:{placement:r,template:s,overrides:i}}}};t.default=u},function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(187),r(18),r(97),r(16),r(9),r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(187),r(18),r(97),r(42),r(16),r(9),r(4),r(23),r(57),r(17);var l,o=n(r(61)),u=n(r(36)),c=n(r(37)),s=n(r(55)),i=n(r(56)),f=n(r(51)),d=n(r(49)),p=n(r(0)),m=r(186),v=n(r(829)),h=n(r(867)),E=r(14),y=n(r(787)),g=n(r(74)),b=n(r(861)),S=n(r(26)),_=n(r(814)),O=n(r(2992));function C(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,f.default)(e);if(t){var n=(0,f.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,i.default)(this,a)}}var T=(l=function(e){(0,s.default)(r,e);var a=C(r);function r(){var e;(0,u.default)(this,r);for(var t=arguments.length,n=new Array(t),l=0;l0&&void 0!==arguments[0]?arguments[0]:"";a.setState({configError:e})},a.form=N.default.createRef(),a.editor=N.default.createRef(),a.state={isChecked:JSON.parse((0,C.default)(a.template,"spec.values.controller.integrateKubeSphere.tracing",!1)),configError:"",isCodeMode:!1,versionOption:[],version:""},a}return(0,y.default)(n,[{key:"componentDidMount",value:(a=(0,v.default)(u.default.mark((function e(){return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getNginxVersion();case 2:case"end":return e.stop()}}),e,this)}))),function(){return a.apply(this,arguments)})},{key:"renderYamlEdit",value:function(){return N.default.createElement("div",{className:G.default.codeWrapper},N.default.createElement(P.default,{ref:this.editor,value:this.template}))}},{key:"renderForm",value:function(){var e=this.props,a=e.cluster,r=e.isEdit,n=this.state,l=n.isChecked,o=n.versionOption,u=n.version;return N.default.createElement("div",{className:G.default.wrapper},N.default.createElement(I.Form,{ref:this.form,data:this.template},N.default.createElement(I.Form.Item,{label:t("NGINX_INGRESS_VERSION")},N.default.createElement(I.Select,{options:o,disabled:r,value:u,onChange:this.handleVersionChange})),N.default.createElement(I.Form.Item,{label:"IngressClassName",desc:t("NAME_DESC"),rules:[{required:!0,message:t("NAME_EMPTY_DESC")},{pattern:j.PATTERN_NAME,message:t("INVALID_NAME_DESC")},{validator:this.nameValidator}]},N.default.createElement(I.Input,{name:"spec.values.controller.ingressClassResource.name",maxLength:63,onChange:this.handleIngressClassNameChange})),N.default.createElement(I.Form.Item,null,N.default.createElement(F.default,{name:"spec.values.controller.replicaCount",template:this.template,replicas:(0,C.default)(this.template,"spec.values.controller.replicaCount")})),N.default.createElement(I.Form.Item,{label:t("ACCESS_MODE"),className:G.default.types},N.default.createElement(I.RadioGroup,{name:"spec.values.controller.service.type",mode:"button",buttonWidth:155,onChange:this.handleTypeChange,size:"small"},N.default.createElement(I.RadioButton,{value:"NodePort"},"NodePort"),N.default.createElement(I.RadioButton,{value:"LoadBalancer"},"LoadBalancer"))),N.default.createElement("div",{className:G.default.content},globals.app.hasClusterModule(a,"servicemesh")&&N.default.createElement("div",{className:G.default.wrapperContent},N.default.createElement("div",{className:G.default.toggle},N.default.createElement(I.Toggle,{checked:l,onChange:this.handleToggleChange}),t("TRACING")),N.default.createElement("div",{className:G.default.toggleTip},t.html("GATEWAY_TRACING_TIP"))),"LoadBalancer"===(0,C.default)(this.template,"spec.values.controller.service.type")&&N.default.createElement(N.default.Fragment,null,this.renderLoadBalancerSupport(),N.default.createElement("div",{className:G.default.wrapperContent},N.default.createElement(I.Form.Item,{label:t("ANNOTATION_PL")},N.default.createElement(L.default,{controlled:!0,options:(0,x.toJS)(this.options),className:G.default.objectBg,name:"spec.values.controller.service.annotations",addText:t("ADD")})))),N.default.createElement("div",{className:G.default.wrapperContent},N.default.createElement(I.Form.Item,{label:t("CONFIGURATION_OPTIONS")},N.default.createElement(M.default,{className:G.default.objectBg,name:"spec.values.controller.config",addText:t("ADD"),controlled:!0,onError:this.handleConfigError}))))))}},{key:"render",value:function(){var e=this.props,a=e.visible,r=e.onCancel,n=e.isSubmitting,l=this.state,o=l.configError,u=l.isCodeMode;return N.default.createElement(A.default,{width:960,title:this.renderTitle(),onCancel:r,visible:a,bodyClassName:G.default.modalBody,headerClassName:G.default.modalHead,closable:!1,operations:this.operations(),hideFooter:!0},N.default.createElement("div",{className:G.default.body},u?this.renderYamlEdit():this.renderForm()),N.default.createElement("div",{className:G.default.footer},N.default.createElement(I.Button,{onClick:r,loading:n,disabled:n},t("CANCEL")),N.default.createElement(I.Button,{type:"control",onClick:this.handleOk,loading:n,disabled:n||""!==o},t("OK"))))}}]),n}(N.default.Component),p.propTypes={template:k.default.object,visible:k.default.bool,onOk:k.default.func,onCancel:k.default.func,isSubmitting:k.default.bool},p.defaultProps={template:{},visible:!1,isSubmitting:!1,onOk:function(){},onCancel:function(){}},s=m,i=(0,O.default)(s.prototype,"template",[x.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return this.props.detail||{}}}),f=(0,O.default)(s.prototype,"store",[x.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return this.props.store}}),d=(0,O.default)(s.prototype,"options",[x.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),c=s))||c;a.default=H},function(e,t,a){"use strict";a(15);var r=a(20);a(5),a(16),a(4),a(23),a(17),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(45),a(5),a(42),a(16),a(4),a(23),a(57),a(17);var n=r(a(36)),l=r(a(37)),o=r(a(55)),u=r(a(56)),c=r(a(51)),s=r(a(0)),i=r(a(74)),f=r(a(800)),d=a(186),p=a(239),m=r(a(1306)),v=r(a(2996));function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,c.default)(e);if(t){var n=(0,c.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,u.default)(this,a)}}var E=function(e){(0,o.default)(a,e);var t=h(a);function a(){var e;(0,n.default)(this,a);for(var r=arguments.length,l=new Array(r),o=0;o0&&void 0!==arguments[0]?arguments[0]:{},a=t.props,r=a.workspace,n=a.namespace,l=a.devops;t.userStore.fetchList(R({name:t.state.name,workspace:n||l?r:void 0},e))},t.handleSearch=function(e){t.setState({name:e},t.fetchData)},t.handleSelect=function(e,a){t.setState((function(t){var r=t.members,n=t.newMembers;return{members:[].concat((0,c.default)(r),[e]),newMembers:[].concat((0,c.default)(n),[{username:e,roleRef:a}])}}))},t.handleSubmit=function(){t.props.onOk(t.state.newMembers)},t.userStore=new _.default,t.memberStore=new _.default,t.state={members:[],newMembers:[]},t}return(0,f.default)(r,[{key:"componentDidMount",value:function(){var e=this,t=this.props,a=t.cluster,r=t.workspace,n=t.namespace,l=t.devops;this.memberStore.fetchList({limit:-1,cluster:a,workspace:r,namespace:null!=n?n:l}).then((function(){e.setState({members:e.memberStore.list.data.map((function(e){return e.name}))})}))}},{key:"render",value:function(){var e=this,a=this.props,r=a.visible,n=a.onCancel,l=a.roles,o=a.title,u=a.desc,c=a.searchPlaceholder,s=this.state.members,i=(0,E.toJS)(this.userStore.list),f=i.data,d=void 0===f?[]:f,p=i.total,m=i.page,h=i.isLoading;return v.default.createElement(b.default,{width:691,icon:"pen",onCancel:n,onOk:this.handleSubmit,visible:r,bodyClassName:C.default.modalBody,hideHeader:!0},v.default.createElement("div",{className:C.default.body},v.default.createElement("div",{className:C.default.title},v.default.createElement("div",{className:"h4"},o||t("INVITE_MEMBER")),v.default.createElement("p",null,u||t("INVITE_MEMBER_DESC"))),v.default.createElement("div",{className:C.default.content},v.default.createElement(g.InputSearch,{placeholder:c||t("INVITE_MEMBER_SEARCH_PLACEHOLDER"),onSearch:this.handleSearch}),v.default.createElement("div",{className:C.default.results},v.default.createElement(S.default,{data:d,total:p,page:m,loading:h,onFetch:this.fetchData},d.map((function(t){return v.default.createElement(O.default,{key:t.name,user:t,roles:l,selected:s.includes(t.name),onSelect:e.handleSelect})})))))))}}]),r}(v.default.Component),o.propTypes={roles:h.default.array,visible:h.default.bool,workspace:h.default.string,namespace:h.default.string,cluster:h.default.string,title:h.default.string,desc:h.default.string,searchPlaceholder:h.default.string,onOk:h.default.func,onCancel:h.default.func},o.defaultProps={roles:[],visible:!1,onOk:function(){},onCancel:function(){}},l=u))||l;a.default=N},function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(18),r(16),r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(18),r(42),r(16),r(4),r(23),r(57),r(17);var l=n(r(36)),o=n(r(37)),u=n(r(55)),c=n(r(56)),s=n(r(51)),i=n(r(26)),f=n(r(0)),d=n(r(1)),p=r(186),m=n(r(788)),v=n(r(1697));function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,s.default)(e);if(t){var n=(0,s.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,c.default)(this,a)}}var E=function(e){(0,u.default)(r,e);var a=h(r);function r(){var e;(0,l.default)(this,r);for(var t=arguments.length,n=new Array(t),o=0;o0;if((0,S.default)(l,"status.tunnel")===(0,S.default)(l,"status.allocations"))return r();var u=l.workspace;return o&&u&&a!==u?r({message:t("IPPOOL_ASSIGN_WORKSPACE_CHANGE_WARNING"),field:e.field}):o&&a!==P?r({message:t("IPPOOL_ASSIGN_WORKSPACE_ALLOCATED_WARNING"),field:e.field}):void r()},n.handleSubmit=function(e){var t=n.props.onOk,a={},r=(0,S.default)(e,"metadata.labels['kubesphere.io/workspace']");r===P?((0,O.default)(a,"metadata.labels['kubesphere.io/workspace']",null),(0,O.default)(a,"metadata.labels['ippool.network.kubesphere.io/default']","")):((0,O.default)(a,"metadata.labels['kubesphere.io/workspace']",r||null),(0,O.default)(a,"metadata.labels['ippool.network.kubesphere.io/default']",null)),t(a)},n.formTemplate=(0,b.default)((0,C.toJS)(e.detail._originData)),n.workspaceStore=new N.default,n}return(0,m.default)(r,[{key:"componentDidMount",value:function(){this.props.detail.isDefault&&(0,O.default)(this.formTemplate,"metadata.labels['kubesphere.io/workspace']",P),this.workspaceStore.fetchList({cluster:this.props.cluster})}},{key:"getWorkspaces",value:function(){return[{label:t("ALL"),value:P}].concat((0,u.default)(this.workspaceStore.list.data.map((function(e){return{label:(0,k.showNameAndAlias)(e.name,"workspace"),value:e.name}}))))}},{key:"render",value:function(){var e=this.props.detail,a=(0,S.default)(e,"status.allocations",0)>0,r=e.workspace;return D.default.createElement(g.default.Form,(0,o.default)({title:t("ASSIGN_WORKSPACE"),icon:"enterprise",width:691,data:this.formTemplate},this.props,{onOk:this.handleSubmit}),a&&r?D.default.createElement(y.Alert,{className:"margin-b12",type:"warning",message:t("IPPOOL_ASSIGN_WORKSPACE_ALLOCATED_WARNING")}):D.default.createElement(y.Alert,{className:"margin-b12",type:"info",message:t("IPPOOL_ASSIGN_WORKSPACE_DESC")}),D.default.createElement(y.Form.Item,{label:t("WORKSPACE"),desc:t("SELECT_WORKSPACE_DESC"),rules:[{validator:this.workspaceValidator}]},D.default.createElement(y.Select,{name:"metadata.labels['kubesphere.io/workspace']",options:this.getWorkspaces(),pagination:(0,_.default)(this.workspaceStore.list,["page","total","limit"]),isLoading:this.workspaceStore.list.isLoading,onFetch:this.fetchWorkspaces,searchable:!0,clearable:!0,placeholder:" "})))}}]),r}(D.Component),i.propTypes={detail:R.default.object,visible:R.default.bool,onOk:R.default.func,onCancel:R.default.func},i.defaultProps={detail:{},visible:!1,onOk:function(){},onCancel:function(){}},s=f))||s;a.default=A},function(e,a,r){"use strict";r(15);var n=r(20),l=r(157);r(5),r(18),r(16),r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(18),r(42),r(16),r(4),r(22),r(23),r(57),r(17);var o=n(r(315)),u=n(r(61)),c=n(r(43));r(41);var s,i,f,d=n(r(44)),p=n(r(36)),m=n(r(37)),v=n(r(55)),h=n(r(56)),E=n(r(51)),y=r(186),g=n(r(787)),b=n(r(135)),S=n(r(26)),_=n(r(241)),O=n(r(74)),C=r(14),T=r(239),R=n(r(1)),D=l(r(0)),N=n(r(439)),k=r(52);function I(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,E.default)(e);if(t){var n=(0,E.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,h.default)(this,a)}}var P="",A=(0,T.observer)((f=i=function(e){(0,v.default)(r,e);var a=I(r);function r(e){var n;return(0,p.default)(this,r),(n=a.call(this,e)).fetchProjects=function(){var e=(0,d.default)(c.default.mark((function e(t){return c.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",n.projectStore.fetchList(t));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),n.projectValidator=function(e,a,r){if(!a)return r();var l=n.props.detail,o=(0,S.default)(l,"status.allocations",0)>0;if((0,S.default)(l,"status.tunnel")===(0,S.default)(l,"status.allocations"))return r();var u=l.namespace;return o&&u&&a!==u?r({message:t("IPPOOL_ASSIGN_PROJECT_CHANGE_WARNING"),field:e.field}):o&&a!==P?r({message:t("IPPOOL_ASSIGN_PROJECT_ALLOCATED_WARNING"),field:e.field}):void r()},n.handleSubmit=function(e){var t=n.props.onOk,a={},r=(0,S.default)(e,"metadata.labels['kubesphere.io/namespace']");r===P?((0,O.default)(a,"metadata.labels['kubesphere.io/namespace']",null),(0,O.default)(a,"metadata.labels['ippool.network.kubesphere.io/default']","")):((0,O.default)(a,"metadata.labels['kubesphere.io/namespace']",r||null),(0,O.default)(a,"metadata.labels['ippool.network.kubesphere.io/default']",null)),t(a)},n.formTemplate=(0,b.default)((0,C.toJS)(e.detail._originData)),n.projectStore=new N.default,n}return(0,m.default)(r,[{key:"componentDidMount",value:function(){this.props.detail.isDefault&&(0,O.default)(this.formTemplate,"metadata.labels['kubesphere.io/namespace']",P),this.projectStore.fetchList({cluster:this.props.cluster})}},{key:"getProjects",value:function(){return[{label:t("ALL"),value:P}].concat((0,u.default)(this.projectStore.list.data.map((function(e){return{label:(0,k.showNameAndAlias)(e,"name"),value:e.name}}))))}},{key:"render",value:function(){var e=this.props.detail,a=(0,S.default)(e,"status.allocations",0)>0,r=e.namespace;return D.default.createElement(g.default.Form,(0,o.default)({title:t("ASSIGN_PROJECT"),icon:"enterprise",width:691,data:this.formTemplate},this.props,{onOk:this.handleSubmit}),a&&r?D.default.createElement(y.Alert,{className:"margin-b12",type:"warning",message:t("IPPOOL_ASSIGN_PROJECT_ALLOCATED_WARNING")}):D.default.createElement(y.Alert,{className:"margin-b12",type:"info",message:t("IPPOOL_ASSIGN_PROJECT_DESC")}),D.default.createElement(y.Form.Item,{label:t("PROJECT"),desc:t("SELECT_PROJECT_DESC"),rules:[{validator:this.projectValidator}]},D.default.createElement(y.Select,{name:"metadata.labels['kubesphere.io/namespace']",options:this.getProjects(),pagination:(0,_.default)(this.projectStore.list,["page","total","limit"]),isLoading:this.projectStore.list.isLoading,onFetch:this.fetchProjects,searchable:!0,clearable:!0,placeholder:" "})))}}]),r}(D.Component),i.propTypes={detail:R.default.object,visible:R.default.bool,onOk:R.default.func,onCancel:R.default.func},i.defaultProps={detail:{},visible:!1,onOk:function(){},onCancel:function(){}},s=f))||s;a.default=A},function(e,a,r){"use strict";r(15);var n=r(20),l=r(157);r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(42),r(4),r(23),r(57),r(17);var o,u,c,s=n(r(315)),i=n(r(36)),f=n(r(37)),d=n(r(55)),p=n(r(56)),m=n(r(51)),v=r(186),h=n(r(787)),E=n(r(135)),y=n(r(26)),g=n(r(74)),b=r(14),S=r(239),_=n(r(1)),O=l(r(0));function C(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,m.default)(e);if(t){var n=(0,m.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,p.default)(this,a)}}var T=(0,S.observer)((c=u=function(e){(0,d.default)(r,e);var a=C(r);function r(e){var t;return(0,i.default)(this,r),(t=a.call(this,e)).handleSubmit=function(e){var a=t.props.onOk,r=t.formTemplate,n=e.nodeSelector;(0,g.default)(r,"spec.nodeSelector",n),a(r)},t.formTemplate=(0,E.default)((0,b.toJS)(e.detail._originData)),t.state={nodeSelector:(0,y.default)(e.detail,"nodeSelector","all()")},t}return(0,f.default)(r,[{key:"getOptions",value:function(){return[{label:t("YES"),value:"all()"},{label:t("NO"),value:"!all()"}]}},{key:"render",value:function(){return O.default.createElement(h.default.Form,(0,s.default)({title:t("IPPOOL_AUTO_ASSIGN"),width:691,data:this.state},this.props,{onOk:this.handleSubmit}),O.default.createElement(v.Form.Item,{label:t("IPPOOL_IS_AUTO_ASSIGN")},O.default.createElement(v.Select,{name:"nodeSelector",options:this.getOptions(),clearable:!0,placeholder:" "})))}}]),r}(O.Component),u.propTypes={detail:_.default.object,visible:_.default.bool,onOk:_.default.func,onCancel:_.default.func},u.defaultProps={detail:{},visible:!1,onOk:function(){},onCancel:function(){}},o=c))||o;a.default=T},function(e,a,r){"use strict";var n=r(20);r(12),r(5),r(11),r(6),r(18),r(16),r(137),r(9),r(13),r(10),r(4),r(23),r(17),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(45),r(5),r(11),r(6),r(18),r(28),r(42),r(16),r(137),r(34),r(15),r(9),r(13),r(10),r(4),r(23),r(57),r(17),r(7);var l,o,u,c,s,i,f,d=n(r(315)),p=n(r(30)),m=n(r(65)),v=n(r(36)),h=n(r(37)),E=n(r(88)),y=n(r(55)),g=n(r(56)),b=n(r(51)),S=n(r(49)),_=(n(r(66)),r(186)),O=n(r(3)),C=n(r(787)),T=n(r(789)),R=n(r(74)),D=r(14),N=r(239),k=n(r(0)),I=n(r(443)),P=r(52),A=r(1193),w=n(r(1703));function M(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function L(e){for(var t=1;t0;t&&!o?(r.push({name:e.name}),n.specNameSpaces=(0,D.toJS)(r)):!t&&o&&(n.specNameSpaces=r.filter((function(t){return t.name!==e.name}))),n.psRef.current.handleValueChange("type",null,l)},n.handleServiceChange=function(e,t){var a=(0,E.default)(n),r=a.specCurNameSpace,l=a.specServices,o=a.tabName,u=l.filter((function(t){return t.name===e.name&&t.namespace===r})).length>0;t&&!u?(l.push({name:e.name,namespace:r}),n.specServices=(0,D.toJS)(l)):!t&&u&&(n.specServices=l.filter((function(t){return!(t.name===e.name&&t.namespace===r)}))),n.psRef.current.handleValueChange("type",null,o)},n.handleSave=function(){var e=(0,E.default)(n),t=e.tabName,a=e.specType,r=e.specNameSpaces,l=e.specServices,o=n.props.formTemplate,u="projects"===t?r.map((function(e){return{namespace:e}})):l.map((function(e){return{service:e}}));if(u.length){var c="egress"===a?"to":"from";(0,R.default)(o,"spec.".concat(a,"[0].").concat(c),u),(0,R.default)(o,"metadata.name","policy-".concat(c,"-").concat((0,P.generateId)()))}(0,R.default)(o,'metadata.labels.["kubesphere.io/policy-traffic"]',"inside"),(0,R.default)(o,'metadata.labels.["kubesphere.io/policy-type"]',a),n.props.onOk(o)},n.psValidator=function(e,a,r){var l=(0,E.default)(n),o=l.tabName,u=l.specNameSpaces,c=l.specServices;0===("projects"===o?u.map((function(e){return{namespace:e}})):c.map((function(e){return{service:e}}))).length?r({message:t("EMPTY_RESOURCE_DESC")}):r()},n.projectStore=e.projectStore,n.serviceStore=new I.default,n.specCurNameSpace=e.namespace,n.psRef=k.default.createRef(),n}return(0,h.default)(r,[{key:"componentDidMount",value:function(){var e=this.props,t=e.namespace,a={cluster:e.cluster,limit:-1};this.projectStore.fetchList(L(L({},a),{},{labelSelector:this.ProjectLabelSelector})),this.serviceStore.fetchList(L({namespace:t},a))}},{key:"render",value:function(){var e=this,a=this.projectStore.list,r=this.serviceStore.list,n=Object.assign({},this.props),l=this.specNameSpaces,o=this.specType,u=this.tabName,c=this.specCurNameSpace,s=this.specServices;return k.default.createElement(C.default.Form,(0,d.default)({width:600,title:t("ADD_ALLOWLIST_ENTRY"),closable:!0},n,{onOk:this.handleSave}),k.default.createElement(_.Form.Item,{label:t("TRAFFIC_DIRECTION"),desc:t("INTERNAL_TRAFFIC_DIRECTION_DESC"),rules:[{required:!0,message:t("SELECT_RULE_DIRECTION_TIP")}]},k.default.createElement(_.RadioGroup,{name:"direction",defaultValue:o,wrapClassName:w.default.dirCheck,onChange:function(t){e.specType=t}},k.default.createElement(_.RadioButton,{value:"egress"},k.default.createElement(_.Icon,{name:"upload",size:32}),k.default.createElement("div",null,t("EGRESS"))),k.default.createElement(_.RadioButton,{value:"ingress"},k.default.createElement(_.Icon,{name:"download",size:32}),k.default.createElement("div",null,t("INGRESS"))))),k.default.createElement(_.Form.Item,{label:t("TYPE"),rules:[{validator:this.psValidator}],ref:this.psRef},k.default.createElement(_.RadioGroup,{name:"type",mode:"button",buttonWidth:155,defaultValue:u,onChange:this.handleTabChange,size:"small",rules:[{required:!0}]},k.default.createElement(_.RadioButton,{value:"projects"},t("PROJECT")),k.default.createElement(_.RadioButton,{value:"services"},t("SERVICE")))),k.default.createElement(T.default,{className:(0,O.default)("projects"===u?"block":"hide",w.default.panel_p)},k.default.createElement("ul",{className:w.default.list},a.data.map((function(a){return k.default.createElement("li",{key:a.name},k.default.createElement(_.Checkbox,{value:a.name,checked:l.filter((function(e){return e.name===a.name})).length>0,disabled:a.isFedManaged,onChange:function(t){e.handleNameSpaceChecked(a,t)}},(0,P.showNameAndAlias)(a)),a.isFedManaged&&k.default.createElement(_.Tooltip,{content:t("FED_HOST_NAMESPACE_TIP")},k.default.createElement(_.Icon,{className:w.default.tip,name:"question"})))})))),k.default.createElement(T.default,{className:(0,O.default)("services"===u?"block":"hide",w.default.panel_s)},k.default.createElement("div",{className:w.default.sheader},k.default.createElement(A.ProjectSelect,{cluster:this.props.cluster,defaultValue:c,onChange:this.handleNameSpaceChange,tipMessage:t("FED_HOST_NAMESPACE_TIP"),labelSelector:this.ProjectLabelSelector})),k.default.createElement("div",{className:w.default.sbody},k.default.createElement("ul",{className:w.default.list},r.data.map((function(t){return k.default.createElement("li",{key:t.name},k.default.createElement(_.Checkbox,{value:t.name,checked:s.filter((function(e){return e.name===t.name&&e.namespace===c})).length>0,onChange:function(a){e.handleServiceChange(t,a)}},t.name))}))))))}},{key:"ProjectLabelSelector",get:function(){var e=this.props.workspace;return"!kubesphere.io/devopsproject,kubesphere.io/workspace=".concat(e)}}]),r}(k.default.Component),u=(0,S.default)(o.prototype,"tabName",[D.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return"projects"}}),c=(0,S.default)(o.prototype,"specType",[D.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),s=(0,S.default)(o.prototype,"specNameSpaces",[D.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),i=(0,S.default)(o.prototype,"specCurNameSpace",[D.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),f=(0,S.default)(o.prototype,"specServices",[D.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),l=o))||l)||l;a.default=x},function(e,a,r){"use strict";r(15);var n=r(20);r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(42),r(4),r(23),r(57),r(17);var l=n(r(36)),o=n(r(37)),u=n(r(55)),c=n(r(56)),s=n(r(51)),i=n(r(0)),f=n(r(1)),d=n(r(158)),p=n(r(787)),m=n(r(884));function v(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,s.default)(e);if(t){var n=(0,s.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,c.default)(this,a)}}var h=function(e){(0,u.default)(r,e);var a=v(r);function r(e){var t;return(0,l.default)(this,r),(t=a.call(this,e)).handleOk=function(){var e=t.props,a=e.onOk,r=e.onCancel,n=t.editor.current.getData();(0,d.default)(n)?r():a(n)},t.state={value:{kind:"NetworkPolicy",apiVersion:"networking.k8s.io/v1",metadata:{name:"",namespace:""},spec:{podSelector:{}}}},t.editor=i.default.createRef(),t}return(0,o.default)(r,[{key:"render",value:function(){var e=this.props,a=e.visible,r=e.onCancel,n=e.isSubmitting;return i.default.createElement(p.default,{icon:"firewall",title:t("CREATE_NETWORK_POLICY_TCAP"),description:t("CREATE_NETWORK_POLICY_DESC"),onOk:this.handleOk,onCancel:r,okText:t("OK"),visible:a,isSubmitting:n,width:960},i.default.createElement(m.default,{ref:this.editor,value:this.state.value}))}}]),r}(i.default.Component);a.default=h,h.propTypes={detail:f.default.object,visible:f.default.bool,onOk:f.default.func,onCancel:f.default.func,isSubmitting:f.default.bool,readOnly:f.default.bool},h.defaultProps={visible:!1,isSubmitting:!1,readOnly:!1,detail:{},onOk:function(){},onCancel:function(){}}},function(e,a,r){"use strict";var n=r(20);r(12),r(5),r(11),r(6),r(18),r(48),r(192),r(27),r(137),r(9),r(13),r(10),r(4),r(23),r(17),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(45),r(5),r(11),r(6),r(18),r(28),r(48),r(192),r(42),r(27),r(137),r(34),r(15),r(9),r(13),r(10),r(4),r(23),r(57),r(24),r(193),r(17),r(7);var l,o=n(r(315)),u=n(r(30)),c=n(r(36)),s=n(r(37)),i=n(r(55)),f=n(r(56)),d=n(r(51)),p=n(r(0)),m=r(239),v=n(r(74)),h=n(r(63)),E=n(r(135)),y=r(186),g=n(r(1170)),b=n(r(443)),S=r(72),_=n(r(1703));function O(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function C(e){for(var t=1;t1&&(a.splice(e,1),t.setState(a))},t.addPortRule=function(){var e=t.state.portRules;e.push({port:{value:""},protocol:"TCP"}),t.setState(e)},t.addPortRangeRule=function(){var e=t.state.portRules;e.push({port:{value:""},endPort:{value:""},protocol:"TCP"}),t.setState(e)},t.copyPortRule=function(e){var a=t.state.portRules;a.splice(e,0,(0,E.default)(a[e])),t.setState(a,(function(){t.validPort()}))},t.delPortRule=function(e){var a=t.state.portRules;a.length>1&&(a.splice(e,1),t.setState(a))},t.modifyRule=function(e,a){var r=t.state.portRules,n=r[e];r[e]=C(C({},n),a),t.setState(r,(function(){t.validPort()}))},t.isRepeatCIDR=function(e,t,a){var r=!1;return t.forEach((function(t,n){""!==t.ip.value&&""!==t.mask.value&&a>n&&t.ip.value+t.mask.value===e.ip.value+e.mask.value&&(r=!0)})),r},t.validCIDR=function(){var e=t.state.cidrRules.slice(),a=!0;return e.forEach((function(r,n){var l=t.isRepeatCIDR(r,e,n);r.ip.valid=!(0,h.default)(r.ip.value)&&S.PATTERN_IP.test(r.ip.value)&&!l,r.mask.valid=!(0,h.default)(r.mask.value)&&S.PATTERN_IP_MASK.test(r.mask.value)&&!l&&Number(r.mask.value)>-1&&Number(r.mask.value)<33,r.ip.valid&&r.mask.valid||(a=!1)})),t.setState({cidrRules:e}),a},t.isValidPort=function(e){return""!==e&&/^(?![0])(\d{0,5})$/.test(e)&&e<65536},t.isRepeatPort=function(e,t,a){var r=!1;return t.forEach((function(t,n){var l,o,u;""!==t.port.value&&""!==(null==t||null===(l=t.endPort)||void 0===l?void 0:l.value)&&a>n&&e.protocol+e.port.value+(null==e||null===(o=e.endPort)||void 0===o?void 0:o.value)===t.protocol+t.port.value+(null==t||null===(u=t.endPort)||void 0===u?void 0:u.value)&&(r=!0)})),r},t.validPort=function(){var e=t.state.portRules.slice(),a=!0;return e.forEach((function(r,n){var l=t.isRepeatPort(r,e,n),o=!0;(null==r?void 0:r.endPort)&&Number(r.endPort.value)-Number(r.port.value)<0&&(o=!1),r.port.valid=(0,h.default)(r.port.value)||t.isValidPort(r.port.value)&&!l&&o,(null==r?void 0:r.endPort)&&(r.endPort.valid=(0,h.default)(r.endPort.value)||t.isValidPort(r.endPort.value)&&!l&&o,r.port.valid||r.endPort.valid||(a=!1))})),t.setState({portRules:e}),a},t.validSpecType=function(){var e=t.state.specType;return""===e&&t.setState({specType:!1}),""!==e},t.validFormData=function(){return t.validSpecType()&&t.validCIDR()&&t.validPort()},t.handleSave=function(){var e=t.state,a=e.specType,r=e.cidrRules,n=e.portRules;if(t.validFormData()){var l=t.props.formTemplate,o=n.filter((function(e){return!(0,h.default)(e.port.value)})).map((function(e){var t,a;return{port:+e.port.value,endPort:(null===(t=e.endPort)||void 0===t?void 0:t.value)?+(null===(a=e.endPort)||void 0===a?void 0:a.value):void 0,protocol:e.protocol}})),u=r.filter((function(e){return!(0,h.default)(e.ip.value)&&!(0,h.default)(e.mask.value)})).map((function(e){return{ipBlock:{cidr:"".concat(e.ip.value,"/").concat(e.mask.value)}}})),c="egress"===a?"to":"from";(0,v.default)(l,"spec.".concat(a,"[0].ports"),o),(0,v.default)(l,"spec.".concat(a,"[0].").concat(c),u),(0,v.default)(l,'metadata.labels.["kubesphere.io/policy-traffic"]',"outside"),(0,v.default)(l,'metadata.labels.["kubesphere.io/policy-type"]',a),t.props.onOk(l)}},t.projectStore=e.projectStore,t.serviceStore=new b.default,t.state={specType:e.edit?e.formTemplate.specType:"",specNameSpaces:[],specServices:[],specCurNameSpace:e.namespace,protocols:[{value:"TCP",label:"TCP"},{value:"UDP",label:"UDP"},{value:"SCTP",label:"SCTP"}],cidrRules:e.edit&&e.formTemplate.cidrRules.length>0?e.formTemplate.cidrRules:[{ip:{value:""},mask:{value:""}}],portRules:e.edit&&e.formTemplate.portRules.length>0?e.formTemplate.portRules:[{port:{value:""},protocol:"TCP"}]},t}return(0,s.default)(r,[{key:"render",value:function(){var e=this,a=this.props,r=a.maxNameLength,n=void 0===r?63:r,l=a.formTemplate,u=a.formRef,c=a.edit,s=Object.assign({},this.props),i=this.state,f=i.specType,d=i.protocols,m=i.portRules,v=i.cidrRules,E=!1,b=!1,O=253===n?t("LONG_NAME_DESC"):t("NAME_DESC");return p.default.createElement(g.default.Form,(0,o.default)({width:900,title:c?t("EDIT_ALLOWLIST_ENTRY"):t("ADD_ALLOWLIST_ENTRY"),closable:!0},s,{onOk:this.handleSave,data:l,ref:u}),p.default.createElement(y.Columns,null,p.default.createElement(y.Column,null,p.default.createElement(y.Form.Item,{label:t("NAME"),desc:t("NAME_DESC"),rules:[{required:!0,message:t("NAME_EMPTY_DESC")},{pattern:S.PATTERN_NAME,message:t("INVALID_NAME_DESC",{message:O})}]},p.default.createElement(y.Input,{name:"metadata.name",maxLength:n,disabled:c})))),p.default.createElement(y.Columns,null,p.default.createElement(y.Column,null,p.default.createElement(y.Form.Item,{label:t("ALIAS"),desc:t("ALIAS_NAME_DESC"),rules:[{pattern:S.PATTERN_ALIAS_NAME,message:t("INVALID_ALIAS_NAME_DESC")}]},p.default.createElement(y.Input,{name:"metadata.annotations['kubesphere.io/alias-name']",maxLength:63})))),p.default.createElement(y.Columns,null,p.default.createElement(y.Column,null,p.default.createElement(y.Form.Item,{label:t("DESCRIPTION"),desc:t("DESCRIPTION_DESC")},p.default.createElement(y.TextArea,{name:"metadata.annotations['kubesphere.io/description']",maxLength:256})))),p.default.createElement(y.Form.Item,{label:t("TRAFFIC_DIRECTION"),desc:f?t("EXTERNAL_TRAFFIC_DIRECTION_DESC"):p.default.createElement("span",{className:_.default.errColor},t("SELECT_RULE_DIRECTION_TIP"))},p.default.createElement(y.RadioGroup,{size:"large",name:"direction",defaultValue:f,wrapClassName:_.default.dirCheck,onChange:function(t){return e.setState({specType:t})}},p.default.createElement(y.RadioButton,{value:"egress"},p.default.createElement(y.Icon,{name:"upload",size:32}),p.default.createElement("div",null,t("EGRESS"))),p.default.createElement(y.RadioButton,{value:"ingress"},p.default.createElement(y.Icon,{name:"download",size:32}),p.default.createElement("div",null,t("INGRESS"))))),p.default.createElement("div",{className:_.default.title},t("NETWORK_SEGMENT")),v.map((function(a,r){var n=a.ip,l=a.mask;return!1!==n.valid&&!1!==l.valid||(b=!0),1===v.length&&((0,h.default)(n.value)||(0,h.default)(l.value))&&(b=!0),p.default.createElement("div",{className:_.default.cidrrow,key:"".concat(r," ")},p.default.createElement("div",{className:_.default.cidr},p.default.createElement(y.Input,{name:"cidr-ip",className:!1===n.valid?_.default.error:"",value:n.value,placeholder:t("NETWORK_SEGMENT_EXAMPLE"),onChange:function(t,a){return e.modifyCIDR(r,{ip:{value:a}})},onBlur:e.validCIDR}),p.default.createElement("span",null,"/"),p.default.createElement(y.Input,{name:"cidr-mask",className:!1===l.valid?_.default.error:"",placeholder:"24",value:l.value,onChange:function(t,a){return e.modifyCIDR(r,{mask:{value:a}})},onBlur:e.validCIDR})),p.default.createElement("div",null,p.default.createElement(y.Tooltip,{content:t("ADD_REPLICA")},p.default.createElement(y.Icon,{changeable:!0,clickable:!0,name:"copy",className:_.default.copy,onClick:function(){e.copyCIDRRule(r)}})),p.default.createElement(y.Tooltip,{content:t("DROP")},p.default.createElement(y.Icon,{changeable:!0,clickable:!0,name:"trash",onClick:function(){e.delCIDRRule(r)}}))))})),p.default.createElement("div",{className:_.default.addBtn},p.default.createElement(y.Button,{onClick:this.addCIDRRule},t("ADD_NEW_NETWORK_SEGMENT"))),b&&p.default.createElement("div",{className:_.default.errColor},t("ENTER_VALID_SEGMENT_DESC")),E&&p.default.createElement("div",{className:_.default.errColor},t("ENTER_VALID_PORT_NUMBER_DESC")),p.default.createElement("div",{className:_.default.title},t("PORT_PL")),m.map((function(a,r){var n=a.port,l=a.protocol,o=a.endPort,u=void 0===o?"":o;return!1===n.valid&&(E=!0),p.default.createElement("div",{className:_.default.rulerow,key:"".concat(r," ")},p.default.createElement("div",null,p.default.createElement(y.Select,{name:"proto",value:l,options:d,onChange:function(t){return e.modifyRule(r,{protocol:t})}}),u?p.default.createElement("div",null,p.default.createElement(y.Input,{placeholder:t("PORT_EXAMPLE"),className:!1===n.valid?_.default.error:"",value:n.value,onBlur:e.validPort,onChange:function(t,a){return e.modifyRule(r,{port:{value:a}})}}),p.default.createElement("span",null," - "),p.default.createElement(y.Input,{placeholder:t("PORT_EXAMPLE"),className:!1===u.valid?_.default.error:"",value:u.value,onBlur:e.validPort,onChange:function(t,a){return e.modifyRule(r,{endPort:{value:a}})}})):p.default.createElement(y.Input,{placeholder:t("PORT_EXAMPLE"),className:!1===n.valid?_.default.error:"",value:n.value,onBlur:e.validPort,onChange:function(t,a){return e.modifyRule(r,{port:{value:a}})}})),p.default.createElement("div",null,p.default.createElement(y.Tooltip,{content:t("REPLICA")},p.default.createElement(y.Icon,{changeable:!0,clickable:!0,name:"copy",className:_.default.copy,onClick:function(){e.copyPortRule(r)}})),p.default.createElement(y.Tooltip,{content:t("DROP")},p.default.createElement(y.Icon,{changeable:!0,clickable:!0,name:"trash",onClick:function(){e.delPortRule(r)}}))))})),p.default.createElement("div",{className:_.default.addBtn},p.default.createElement(y.Button,{onClick:this.addPortRangeRule},t("ADD_NEW_PORT_RANGE")),p.default.createElement(y.Button,{onClick:this.addPortRule},t("ADD_NEW_PORT"))),E&&p.default.createElement("div",{className:_.default.errColor},t("ENTER_VALID_PORT_NUMBER_DESC")))}}]),r}(p.default.Component))||l)||l;a.default=R},function(e,a,r){"use strict";var n=r(20);r(12),r(109),r(5),r(11),r(6),r(84),r(18),r(16),r(137),r(9),r(13),r(10),r(4),r(23),r(24),r(17),r(85),r(62),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(109),r(45),r(5),r(11),r(6),r(84),r(18),r(28),r(42),r(16),r(137),r(34),r(15),r(9),r(13),r(10),r(4),r(23),r(57),r(24),r(17),r(85),r(62),r(7);var l,o=n(r(315)),u=n(r(30)),c=n(r(36)),s=n(r(37)),i=n(r(55)),f=n(r(56)),d=n(r(51)),p=n(r(0)),m=r(239),v=n(r(3)),h=r(52),E=n(r(105)),y=r(791),g=n(r(63)),b=n(r(26)),S=r(186),_=n(r(1704)),O=n(r(1170)),C=n(r(3049));function T(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function R(e){for(var t=1;t0)for(var o=(0,y.generateId)(4),u=0,c=new E.Netmask("".concat(e,"/").concat(t)),s=function(){var e=c.toString();l.every((function(t){return t.cidr!==e}))&&l.push({key:"ippool-".concat(o,"-").concat(u),cidr:e,name:"ippool-".concat(o,"-").concat(u),workspace:void 0,blockSize:Number(t)>26?t:26,disabled:!1,ipipMode:"Always",vxlanMode:"Never",natOutgoing:!0,nodeSelector:"all()"}),u+=1,c=c.next()};u(P.blockSize||0)?c<27?26:c:P.blockSize,u.splice(r,1,P);var s=((0,o.default)(u,1)[0]||{}).workspace;if(N&&s)return n.fetchList({cluster:C,page:1,limit:1e3,labelSelector:s?"kubesphere.io/namespace=".concat(s||""):void 0}).then((function(e){var a=(0,y.cidrOverlap)(e,u);if(a)return d.default.error({content:t("CIDR_OVERLAP",{cidr0:a[0],cidr1:a[1]})});j(u),A(null),_({ok:{}})}));j(u),A(null),_({ok:{}})};return P?u.default.createElement(u.default.Fragment,null,u.default.createElement(m.default,{cluster:C,namespace:T,isEdge:N,formRef:a,formTemplate:P,goBack:U,isOutdated:O,hideWorkspace:D,onOk:F}),u.default.createElement(p.default,{className:S.default.confirm,onOk:F,onCancel:U})):u.default.createElement(c.Form,{ref:a,data:r},(x=L,u.default.createElement("div",{className:S.default.container},x.map((function(e){var a,r=(0,b.getOverlayStatus)(e);return u.default.createElement("div",{key:e.key,className:(0,s.default)(S.default.card,S.default.listItem)},u.default.createElement(f.default,{title:(0,y.getDisplayName)(e),icon:g.ICON_TYPES[n.module],description:e.description||"-",className:S.default.info}),!O&&u.default.createElement(f.default,{title:u.default.createElement(i.default,{type:e.disabled?"Disabled":"Running",name:t(e.disabled?"DISABLED":"ENABLED")}),description:t("STATUS")}),u.default.createElement(f.default,{title:e.cidr,description:t("NETWORK_SEGMENT")}),u.default.createElement(f.default,{title:null!==(a=e.blockSize)&&void 0!==a?a:"-",description:t("IPPOOL_BLOCK_SIZE")}),!O&&u.default.createElement(f.default,{title:u.default.createElement("div",null,u.default.createElement("span",{className:"font-bold"},r.type),r.value&&u.default.createElement("span",{style:{marginLeft:"4px"}},"(",r.value,")")),description:t("IPPOOL_OVERLAY_MODE")}),u.default.createElement("div",{className:S.default.workspace}),u.default.createElement("div",{className:S.default.action},u.default.createElement(c.Button,{className:S.default.edit,onClick:function(){return function(e){A((0,v.default)(e)),_({ok:{disabled:!0}})}(e)}},u.default.createElement(c.Icon,{name:"pen",type:"dark",size:16})),!O&&u.default.createElement(c.Tooltip,{content:t("DISABLE_POD_IP_POOL")},u.default.createElement(c.Toggle,{checked:!e.disabled,onChange:function(t){return function(e,t){var a=L.findIndex((function(t){return t.key===e.key})),r=(0,l.default)(L);r[a].disabled=t,j(r)}(e,!t)}}))))})))))};a.default=_},function(e,a,r){"use strict";(function(e){var n=r(20);r(12),r(109),r(11),r(6),r(29),r(73),r(18),r(16),r(9),r(13),r(10),r(4),r(22),r(1705),r(24),r(38),r(136),r(7),r(32),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(109),r(11),r(6),r(29),r(73),r(18),r(28),r(16),r(34),r(15),r(9),r(13),r(10),r(4),r(22),r(1705),r(38),r(7),r(32);var l=n(r(43));r(41);var o=n(r(44)),u=n(r(30)),c=n(r(58)),s=n(r(787)),i=n(r(74)),f=n(r(26)),d=r(14),p=n(r(240)),m=n(r(435)),v=n(r(3056)),h=n(r(3058)),E=r(3059),y=n(r(3061)),g=n(r(3063)),b=n(r(824)),S=n(r(3070)),_=n(r(1698)),O=n(r(3072)),C=n(r(852)),T=n(r(953));function R(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function D(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},a=t.props,r=a.cluster,n=a.workspace,l=a.namespace,o=a.devops;t.userStore.fetchList(D({name:t.state.name,cluster:r,workspace:l||o?n:void 0},e))},t.handleSearch=function(e){t.setState({name:e},t.fetchData)},t.handleSelect=function(e,a){t.setState((function(t){var r=t.members,n=t.newMembers;return{members:[].concat((0,c.default)(r),[e]),newMembers:[].concat((0,c.default)(n),[{username:e,roleRef:a}])}}))},t.handleSubmit=function(){t.props.onOk(t.state.newMembers)},t.userStore=new _.default,t.memberStore=new O.default,t.state={members:[],newMembers:[]},t}return(0,f.default)(r,[{key:"componentDidMount",value:function(){var e=this,t=this.props,a=t.cluster,r=t.group;this.memberStore.fetchChildResource({kind:"members",cluster:a,group:r,limit:"-1"}).then((function(){e.setState({members:e.memberStore.list.data.map((function(e){return e.name}))})}))}},{key:"render",value:function(){var e=this,a=this.props,r=a.visible,n=a.onCancel,l=a.roles,o=a.title,u=a.desc,c=a.searchPlaceholder,s=this.state.members,i=(0,E.toJS)(this.userStore.list),f=i.data,d=void 0===f?[]:f,p=i.total,m=i.page,h=i.isLoading;return v.default.createElement(b.default,{width:691,icon:"pen",onCancel:n,onOk:this.handleSubmit,visible:r,bodyClassName:T.default.modalBody,hideHeader:!0},v.default.createElement("div",{className:T.default.body},v.default.createElement("div",{className:T.default.title},v.default.createElement("div",{className:"h4"},o||t("INVITE_MEMBER")),v.default.createElement("p",null,u||t("INVITE_NODE_GROUP_MEMBER_DESC"))),v.default.createElement("div",{className:T.default.content},v.default.createElement(g.InputSearch,{placeholder:c||t("INVITE_NODE_GROUP_MEMBER_SEARCH_PLACEHOLDER"),onSearch:this.handleSearch}),v.default.createElement("div",{className:T.default.results},v.default.createElement(S.default,{data:d,total:p,page:m,loading:h,onFetch:this.fetchData},d.map((function(t){return v.default.createElement(C.default,{key:t.name,user:t,roles:l,selected:s.includes(t.name),onSelect:e.handleSelect})})))))))}}]),r}(v.default.Component),o.propTypes={roles:h.default.array,visible:h.default.bool,workspace:h.default.string,namespace:h.default.string,cluster:h.default.string,title:h.default.string,desc:h.default.string,searchPlaceholder:h.default.string,onOk:h.default.func,onCancel:h.default.func},o.defaultProps={roles:[],visible:!1,onOk:function(){},onCancel:function(){}},l=u))||l;a.default=k},function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(18),r(16),r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(18),r(42),r(16),r(4),r(23),r(57),r(17);var l=n(r(36)),o=n(r(37)),u=n(r(55)),c=n(r(56)),s=n(r(51)),i=n(r(26)),f=n(r(0)),d=n(r(1)),p=r(186),m=n(r(788)),v=n(r(1707));function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,s.default)(e);if(t){var n=(0,s.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,c.default)(this,a)}}var E=function(e){(0,u.default)(r,e);var a=h(r);function r(){var e;(0,l.default)(this,r);for(var t=arguments.length,n=new Array(t),o=0;o1&&void 0!==arguments[1]?arguments[1]:{};t.setState((function(r){var n=r.nodes,l=(0,u.default)(n);return l.forEach((function(e){var r=t.getTaints(e);a.key&&(0,b.default)(r,(function(e){return e.key===a.key})),(0,b.default)(r,(function(e){return t.commonTaintsKeys.includes(e.key)}))})),{nodes:l,commonTaints:(0,h.default)(e)?[{}]:e}}))}),100),t.handleChange=function(e,a){return(0,O.cacheFunc)("_change_".concat(a),(function(e){t.setState((function(t){var r=t.nodes,n=(0,u.default)(r);return(0,E.default)(n,"[".concat(a,"].taints"),e),{nodes:n}}))}),(0,i.default)(t))},t.handleSelect=function(e){return(0,O.cacheFunc)("_select_".concat(e),(function(e){e.key&&t.setState((function(t){var a=t.nodes,r=t.commonTaints;return a.forEach((function(t){var a=t.taints||[];t.taints=(0,g.default)(a,[e],"key").filter((function(e){return e.key}))})),r.push(e),{nodes:a,commonTaints:r.filter((function(e){return e.key}))}}))}),(0,i.default)(t))},t.state={nodes:e.nodes,commonTaints:t.getCommonTaints(e)},t}return(0,s.default)(r,[{key:"componentDidUpdate",value:function(e){this.props.visible!==e.visible&&this.setState({nodes:this.props.nodes,commonTaints:this.getCommonTaints(this.props)})}},{key:"renderCommonTaints",value:function(){var e=this.state,a=e.nodes,r=e.commonTaints;return(0,h.default)(a)||1===a.length?null:m.default.createElement("div",{className:D.default.node},m.default.createElement("div",{className:D.default.subTitle},t("COMMON_TAINTS")),m.default.createElement(R.default,{value:r,onChange:this.handleChangeAll}))}},{key:"renderNodeTaints",value:function(){var e=this,t=this.state,a=t.nodes,r=t.commonTaints,n=(0,h.default)(a)||1===a.length;return a.map((function(t,a){var l=e.getDifferentTaints(t);return m.default.createElement("div",{key:t.name,className:D.default.node},m.default.createElement("div",{className:D.default.subTitle},t.name),m.default.createElement(R.default,{common:r,value:l,onSelect:n?null:e.handleSelect(a),onChange:e.handleChange(t,a)}))}))}},{key:"render",value:function(){var e=this.props,a=(e.detail,e.onOk,(0,o.default)(e,["detail","onOk"]));return m.default.createElement(T.default.Form,(0,l.default)({width:1162,bodyClassName:D.default.body,title:t("EDIT_TAINTS"),icon:"wrench",okText:t("OK"),onOk:this.handleSubmit},a),m.default.createElement("div",{className:D.default.wrapper},m.default.createElement("div",{className:D.default.title},t("TAINTS")),m.default.createElement(C.Alert,{type:"info",message:t("TAINTS_DESC")}),m.default.createElement("div",{className:D.default.content},this.renderCommonTaints(),this.renderNodeTaints())))}},{key:"commonTaintsKeys",get:function(){return this.state.commonTaints.map((function(e){return e.key}))}}]),r}(m.default.Component);a.default=k,k.propTypes={visible:v.default.bool,nodes:v.default.array,onOk:v.default.func,onCancel:v.default.func},k.defaultProps={visible:!1,nodes:[],onOk:function(){},onCancel:function(){}}},,,function(e,a,r){"use strict";var n=r(157),l=r(20);r(12),r(5),r(11),r(6),r(86),r(18),r(9),r(13),r(10),r(4),r(23),r(17),r(934),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(45),r(5),r(11),r(6),r(86),r(18),r(28),r(42),r(34),r(15),r(9),r(13),r(10),r(4),r(22),r(23),r(57),r(17),r(934),r(7);var o=l(r(43));r(41);var u=l(r(44)),c=l(r(30)),s=l(r(36)),i=l(r(37)),f=l(r(55)),d=l(r(56)),p=l(r(51)),m=n(r(0)),v=l(r(74)),h=l(r(1375)),E=r(186),y=r(1376),g=l(r(240)),b=r(52),S=r(72),_=l(r(787)),O=l(r(3091));function C(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function T(e){for(var t=1;t-1?n({field:a.field,message:D[t](r)}):n():n()}))}}},e.handleLink=function(){var t=e.props,a=t.cluster,r=t.nodegroup,n=e.state.isCheck,l=e.formRef.current;l&&l.validate((0,u.default)(o.default.mark((function t(){var l,u,c;return o.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.setState({loading:!0}),l=T({cluster:a,defaultTaint:n},e.state.formData),r&&(0,v.default)(l,"nodegroup",r),t.next=5,e.store.createEdgeNode(l);case 5:"Failure"!==(u=t.sent).status&&(c=u.data,e.setState({link:c,showLink:!0})),e.setState({loading:!1});case 8:case"end":return t.stop()}}),t)}))))},e.handleCopy=function(){g.default.success({content:t("COPY_SUCCESSFUL")})},e.emptyLink=function(){e.state.link&&e.setState({link:"",showLink:!1})},e.renderLink=function(){var a=e.state,r=a.showLink,n=a.link,l=t.html("EDGENODE_CONFIG_COMMAND_TIP");return r?m.default.createElement("div",{className:O.default.column},m.default.createElement(E.Form.Item,{label:m.default.createElement(m.default.Fragment,null,t("EDGENODE_CONFIG_COMMAND"),m.default.createElement(E.Tooltip,{content:m.default.createElement("span",{className:O.default.installInfo},(0,b.learnMoreTip)(l))},m.default.createElement(E.Icon,{className:O.default.infoIcon,name:"information",size:18}))),desc:t("ADD_EDGE_COMMAND")},m.default.createElement("div",{className:O.default.linkContainer},m.default.createElement("pre",{className:O.default.link},n))),m.default.createElement(y.CopyToClipboard,{text:n,onCopy:e.handleCopy},m.default.createElement(E.Button,null,t("COPY")))):null},e.handleChangeCheck=function(t){e.setState({isCheck:t})},e.runtimeOptions=[{label:"Docker",value:"docker"},{label:"Containerd",value:"containerd"}],e.renderEdgeWizeNodeFormItems=function(){return m.default.createElement(m.default.Fragment,null,m.default.createElement(E.Form.Item,{className:O.default.runtime,label:t("CONTAINER_RUNTIME"),rules:[{required:!0,message:t("CONTAINER_RUNTIME_EMPTY_DESC")}]},m.default.createElement(E.RadioGroup,{name:"runtime",defaultValue:"docker",wrapClassName:"radio-group-button"},e.runtimeOptions.map((function(e){var t=e.value,a=e.label;return m.default.createElement(E.RadioButton,{key:t,value:t},a)})))),m.default.createElement(E.Form.Item,{label:t("IMAGE_REPOSITORY_ADDRESS")},m.default.createElement(E.Input,{name:"imageRepository"})),m.default.createElement("div",{className:O.default.column},m.default.createElement(E.Form.Item,{label:t("NAME"),rules:[{required:!0,message:t("EDGENODE_NAME_EMPTY_DESC")},{pattern:S.PATTERN_NAME,message:t("INVALID_NAME_DESC")},{validator:e.validator("name")}],desc:t("NAME_DESC")},m.default.createElement(E.Input,{name:"name",defaultValue:"edgenode-".concat((0,b.generateId)(4)),onChange:e.emptyLink})),m.default.createElement(E.Button,{className:O.default.edgeValidate,onClick:e.handleLink,loading:e.state.loading},t("VALIDATE"))))},e.renderEdgeNodeFormItems=function(){return m.default.createElement(m.default.Fragment,null,m.default.createElement(E.Form.Item,{label:t("NAME"),rules:[{required:!0,message:t("EDGENODE_NAME_EMPTY_DESC")},{pattern:S.PATTERN_NAME,message:t("INVALID_NAME_DESC")},{validator:e.validator("name")}],desc:t("NAME_DESC")},m.default.createElement(E.Input,{name:"name",maxLength:63,defaultValue:"edgenode-".concat((0,b.generateId)(4)),onChange:e.emptyLink})),m.default.createElement("div",{className:O.default.column},m.default.createElement(E.Button,{className:O.default.edgeValidate,onClick:e.handleLink,loading:e.state.loading},t("VALIDATE"))))},e}return(0,i.default)(r,[{key:"render",value:function(){var e=this.props,a=e.visible,r=e.onOk,n=e.onCancel,l=e.isEdgeWize;return m.default.createElement(_.default,{title:t("ADD_EDGE_NODE"),width:600,visible:a,onOk:r,onCancel:n,hideFooter:!0},m.default.createElement(E.Form,{data:this.state.formData,ref:this.formRef},l?this.renderEdgeWizeNodeFormItems():this.renderEdgeNodeFormItems(),m.default.createElement("div",{className:O.default.column},m.default.createElement(E.Checkbox,{defaultValue:!0,checked:this.state.isCheck,onChange:this.handleChangeCheck},t("ADD_DEFAULT_TAINT",{params:'node-role.kubernetes.io/edge="":NoSchedule'}))),this.renderLink()))}}]),r}(m.Component);a.default=N},,,,function(e,t,a){e.exports={errorMessage:"_3S7-jeydyoFwDpd9pSycVx",linkContainer:"_1ggyEQNMCzuZ-coFwWh3pC",link:"c_iHcRkOuUTw0vHcUCv2d",column:"_3oR2jlvaLkV7X5Pt_HUBWZ",infoIcon:"_1xenl2b6SqpTOis9lh2q2P",installInfo:"k72561gKG-uS6_V9v8-zN",edgeValidate:"zXNjoENWZneCz3uB43FM-",runtime:"_3T5sDaR53b2VxAXhvzBEGY"}},function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(187),r(11),r(84),r(18),r(16),r(4),r(23),r(17),r(85),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(187),r(11),r(84),r(18),r(42),r(16),r(4),r(23),r(57),r(17),r(85);var l=n(r(30)),o=n(r(61)),u=n(r(36)),c=n(r(37)),s=n(r(55)),i=n(r(56)),f=n(r(51)),d=n(r(0)),p=n(r(3)),m=n(r(247)),v=n(r(1)),h=r(186),E=r(983),y=n(r(787)),g=n(r(795)),b=n(r(788)),S=n(r(3093));function _(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,f.default)(e);if(t){var n=(0,f.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,i.default)(this,a)}}var O=function(e){(0,s.default)(r,e);var a=_(r);function r(e){var t;return(0,u.default)(this,r),(t=a.call(this,e)).handleSelectAll=function(){if(t.isSelectedAll)return t.setState({selectedKeys:[]});t.setState({selectedKeys:t.allowedNodes.map((function(e){return e.name}))})},t.handleNodeCheckedChange=function(e,a){var r,n=null!==(r=t.state.selectedKeys)&&void 0!==r?r:[];return e?t.setState({selectedKeys:(0,m.default)([].concat((0,o.default)(n),[a]))}):t.setState({selectedKeys:n.filter((function(e){return e!==a}))})},t.handleOk=function(){var e=t.props.onOk;null==e||e(t.selectedNodes)},t.state={selectedKeys:t.allowedNodes.map((function(e){return e.name}))},t}return(0,c.default)(r,[{key:"render",value:function(){var e=this,a=this.props,r=a.visible,n=a.title,o=a.okText,u=a.onCancel;return d.default.createElement(y.default,{width:600,title:n,visible:r,okText:o,onOk:this.handleOk,onCancel:u},d.default.createElement("div",{className:S.default.banner},d.default.createElement("span",{className:S.default.title},t("EDGE_NODE")),d.default.createElement("span",{onClick:this.handleSelectAll,className:S.default.action},this.isSelectedAll?t("CANCEL_SELECT_ALL"):t("SELECT_ALL"))),d.default.createElement("div",{className:S.default.list},this.allowedNodes.map((function(a){var r=a.name,n=a.nodeIP,o=a.status;return d.default.createElement("div",{key:r,className:(0,p.default)(S.default.node,(0,l.default)({},S.default.active,e.state.selectedKeys.includes(r)))},d.default.createElement(h.Checkbox,{checked:e.state.selectedKeys.includes(r),onChange:function(t){return e.handleNodeCheckedChange(t,r)}}),d.default.createElement(b.default,{className:S.default.content,to:null,icon:"edge-node",iconSize:20,title:(0,E.getAccessNodeDisplayName)(a),desc:n}),d.default.createElement(g.default,{type:o,name:t("NODE_STATUS_".concat(o.toLocaleUpperCase()))}))}))))}},{key:"allowedNodes",get:function(){var e;return null!==(e=this.props.nodes)&&void 0!==e?e:[]}},{key:"isSelectedAll",get:function(){var e=this;return this.allowedNodes.every((function(t){var a=t.name;return e.state.selectedKeys.includes(a)}))}},{key:"selectedNodes",get:function(){var e=this;return this.allowedNodes.filter((function(t){var a=t.name;return e.state.selectedKeys.includes(a)}))}}]),r}(d.default.Component);a.default=O,O.propTypes={detail:v.default.object,visible:v.default.bool,onOk:v.default.func,onCancel:v.default.func,isSubmitting:v.default.bool},O.defaultProps={visible:!1,onOk:function(){},onCancel:function(){},isSubmitting:!1}},function(e,t,a){e.exports={banner:"_3xffvM2XHROBh42U_Nf9gr",action:"nuCNP_IfGqufUHnjpp843",title:"_1zMX4UNFhb7j1VH-4m1IkU",list:"_3lcynLW3pEZOY2n-LnNoa6",active:"_1GR_uekAuiFnWs14U5mtI0",node:"_2xAMNMKIbhRF7URBG2nP1-",content:"D41eZi0b2YjFiBi-S9SAn"}},function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(42),r(4),r(23),r(57),r(17);var l=n(r(36)),o=n(r(37)),u=n(r(55)),c=n(r(56)),s=n(r(51)),i=n(r(0)),f=n(r(1)),d=r(186),p=n(r(787)),m=n(r(3095));function v(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,s.default)(e);if(t){var n=(0,s.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,c.default)(this,a)}}var h=function(e){(0,u.default)(r,e);var a=v(r);function r(){var e;(0,l.default)(this,r);for(var t=arguments.length,n=new Array(t),o=0;o0&&void 0!==arguments[0]?arguments[0]:"appList",t=arguments.length>1?arguments[1]:void 0;r.setState({selectRepo:t,viewType:e})},r.handleClickApp=function(e){r.setState({viewType:"appDetail",selectApp:e})},r.handleDeploy=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};r.props.trigger("openpitrix.template.deploy",R(R(R({},e),(0,y.default)(r.props,["cluster","workspace","namespace"])),{},{success:function(){return r.props.onOk()}}))},r.state={selectRepo:"",viewType:"appList",selectApp:null},r}return(0,d.default)(a,[{key:"render",value:function(){var e=this.props,t=e.visible,a=e.onCancel,r=e.workspace,n=(e.onDeploy,(0,s.default)(e,["visible","onCancel","workspace","onDeploy"])),l=this.state,o=l.viewType,u=l.selectApp,i=l.selectRepo;return h.default.createElement(S.default,(0,c.default)({width:1070,className:C.default.modal,bodyClassName:C.default.body,visible:t,onCancel:a,rightScreen:!0,hideHeader:!0,hideFooter:!0},n),h.default.createElement(b.Button,{className:C.default.close,icon:"close",iconType:"light",type:"control",onClick:a}),"appList"===o&&h.default.createElement(_.default,{workspace:r,selectRepo:i,setType:this.setViewType,onClickApp:this.handleClickApp}),"appDetail"===o&&h.default.createElement(O.default,{setType:this.setViewType,app:u,workspace:r,onDeploy:this.handleDeploy}))}}]),a}(h.Component),o.propTypes={workspace:g.default.string,visible:g.default.bool,onOk:g.default.func,onCancel:g.default.func},o.defaultProps={workspace:"",visible:!1,onOk:function(){},onCancel:function(){}},l=u))||l;t.default=N},function(e,a,r){"use strict";var n=r(20),l=r(157);r(12),r(11),r(6),r(18),r(16),r(9),r(13),r(10),r(4),r(23),r(24),r(17),r(64),r(188),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(45),r(11),r(6),r(18),r(28),r(859),r(42),r(16),r(34),r(15),r(9),r(13),r(10),r(4),r(22),r(23),r(57),r(24),r(17),r(64),r(188),r(7);var o=n(r(61)),u=n(r(43)),c=n(r(30));r(41);var s,i,f,d=n(r(44)),p=n(r(36)),m=n(r(37)),v=n(r(55)),h=n(r(56)),E=n(r(51)),y=l(r(0)),g=r(239),b=n(r(1)),S=n(r(26)),_=n(r(455)),O=r(186),C=n(r(1627)),T=n(r(469)),R=n(r(1380)),D=r(327),N=n(r(3140));function k(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function I(e){for(var t=1;t0&&void 0!==n[0]?n[0]:{},r=t.props.workspace,e.next=4,t.repoStore.fetchList(I({status:"active",noLimit:!0,workspace:r},a));case 4:case"end":return e.stop()}}),e)}))),t.fetchApps=(0,d.default)(u.default.mark((function e(){var a,r,n,l,c,s=arguments;return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=s.length>0&&void 0!==s[0]?s[0]:{},r=!(s.length>1&&void 0!==s[1])||s[1],e.next=4,t.appStore.fetchList(I({page:1,limit:D.STORE_APP_LIMIT,status:t.isFormWorkspace?"":"active",workspace:t.isFormWorkspace?t.props.workspace:"",repo_id:t.selectedRepo},a));case 4:n=t.appStore,l=n.allApps,c=n.list,r?(l.clear(),l.replace(c.data)):l.push.apply(l,(0,o.default)(c.data));case 6:case"end":return e.stop()}}),e)}))),t.fetchMoreApps=(0,d.default)(u.default.mark((function e(){var a;return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=t.appStore.list.page,e.next=3,t.fetchApps({page:a+1},!1);case 3:case"end":return e.stop()}}),e)}))),t.handleSearch=function(e){t.fetchApps({keyword:e})},t.handleRefresh=function(){t.fetchApps()},t.handleChangeRepo=function(e){t.selectedRepo!==e&&t.setState({selectRepo:e},(function(){t.fetchApps()}))},t.state={selectRepo:e.selectRepo},t.appStore=new T.default,t.repoStore=new R.default,t}return(0,m.default)(n,[{key:"componentDidMount",value:(a=(0,d.default)(u.default.mark((function e(){return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.fetchRepos();case 2:if(!(this.repoSelectOptions.length>0)){e.next=5;break}return e.next=5,this.fetchApps();case 5:case"end":return e.stop()}}),e,this)}))),function(){return a.apply(this,arguments)})},{key:"renderHeader",value:function(){return y.default.createElement("div",{className:N.default.header},y.default.createElement("div",{className:N.default.logo},y.default.createElement("img",{src:"/assets/application.svg",alt:""})),y.default.createElement("div",{className:N.default.text},y.default.createElement("h2",null,t("APP_TEMPLATE_PL")),y.default.createElement("p",null,t("APP_TEMPLATES_MODAL_DESC"))))}},{key:"renderToolbar",value:function(){return y.default.createElement("div",{className:N.default.toolbar},y.default.createElement(O.Select,{name:"repo",placeholder:t("SELECT_APP_REPOSITORY"),onChange:this.handleChangeRepo,className:N.default.selectRepos,options:this.repoSelectOptions,value:this.selectedRepo}),y.default.createElement(O.InputSearch,{onSearch:this.handleSearch,className:N.default.search,placeholder:t("SEARCH")}),y.default.createElement(O.Button,{type:"flat",icon:"refresh",onClick:this.handleRefresh}))}},{key:"render",value:function(){var e=this.appStore,t=e.allApps,a=e.list,r=a.isLoading,n=a.total;return y.default.createElement(y.default.Fragment,null,this.renderHeader(),this.renderToolbar(),y.default.createElement("div",{className:N.default.apps},y.default.createElement(C.default,{itemCls:N.default.appItem,apps:t.toJS(),isLoading:r,total:n,onFetchMore:this.fetchMoreApps,onClickAppItem:this.props.onClickApp,disableLink:!0})))}},{key:"isFormWorkspace",get:function(){return!this.selectedRepo}},{key:"repoSelectOptions",get:function(){var e=this.repoStore.list.data.map((function(e){var t=e.name;return{value:e.repo_id,label:t}}));return e.unshift({value:null,label:t("CURRENT_WORKSPACE")}),e}},{key:"selectedRepo",get:function(){return this.state.selectRepo||(0,S.default)(this.repoSelectOptions,"[0].value")}}]),n}(y.Component),i.propTypes={workspace:b.default.string,store:b.default.object,onClickApp:b.default.func,fetchApps:b.default.func,selectRepo:b.default.string},i.defaultProps={workspace:"",store:{},onClickApp:_.default},s=f))||s;a.default=A},function(e,t,a){e.exports={apps:"_1UatQrbMOVzFuohgTg31oP",appItem:"_1M1BO3tpD1NAdxEzt9622l",header:"_2X4awaWFWZe3_0szPQS1tG",logo:"_2VFLGzBVR1DwI0uG14Iij",text:"_180h4OHwH9Gfe3LwWRj5r1",toolbar:"fwgiubvg9GxvkA5OEo1tO",selectRepos:"hUYgP6O2Qv2aSSy9gAShl",search:"_1Qe3PDhi2sBCabmc6Pwcpf"}},function(e,a,r){"use strict";var n=r(20),l=r(157);r(12),r(109),r(11),r(6),r(18),r(16),r(9),r(13),r(10),r(4),r(23),r(17),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(109),r(45),r(11),r(6),r(18),r(28),r(42),r(16),r(34),r(15),r(9),r(13),r(10),r(4),r(22),r(23),r(57),r(17),r(7);var o=n(r(43)),u=n(r(30));r(41);var c,s,i,f=n(r(44)),d=n(r(36)),p=n(r(37)),m=n(r(55)),v=n(r(56)),h=n(r(51)),E=l(r(0)),y=r(239),g=n(r(1)),b=n(r(26)),S=n(r(243)),_=r(186),O=n(r(816)),C=n(r(3142)),T=n(r(1722)),R=n(r(469)),D=n(r(942)),N=n(r(3146)),k=n(r(3148));function I(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function P(e){for(var t=1;t0&&void 0!==r[0]?r[0]:{},e.next=3,t.versionStore.fetchList(P(P({},a),{},{app_id:t.appId,noLimit:!0}));case 3:case"end":return e.stop()}}),e)}))),t.handleTabChange=function(e){t.setState({tab:e})},t.handleClickBack=function(){var e=t.props.app;t.props.setType("appList",e.repo_id)},t.showDeploy=function(){t.props.onDeploy({app:t.appStore.detail,store:t.appStore})},t.handleChangeAppVersion=function(e){t.setState({selectAppVersion:e})},t.state={tab:"versionInfo",selectAppVersion:"",showDeploy:!1},t.appStore=new R.default,t.versionStore=new D.default,t}return(0,p.default)(n,[{key:"componentDidMount",value:(a=(0,f.default)(o.default.mark((function e(){var t;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.fetchVersions();case 2:t=(0,b.default)(this.versionStore,"list.data[0].version_id",""),this.setState((function(){return{selectAppVersion:t}})),this.appStore.fetchDetail({app_id:[this.appId]});case 5:case"end":return e.stop()}}),e,this)}))),function(){return a.apply(this,arguments)})},{key:"componentWillUnmount",value:function(){this.props.setType()}},{key:"renderVersionList",value:function(){return E.default.createElement("div",{className:"margin-b12"},E.default.createElement("div",{className:"h6 margin-b12"},t("VERSION")),E.default.createElement(O.default,{value:this.state.selectAppVersion,options:this.versionOptions,onChange:this.handleChangeAppVersion}))}},{key:"render",value:function(){var e=this.props.app,a=this.state,r=a.selectAppVersion,n=a.tab,l=this.appStore.detail;return E.default.createElement(E.default.Fragment,null,E.default.createElement(N.default,{onClickBack:this.handleClickBack,title:e.name,desc:e.description,icon:e.icon}),E.default.createElement("div",{className:k.default.bar},E.default.createElement(_.RadioGroup,{mode:"button",value:n,options:this.tabs,onChange:this.handleTabChange}),E.default.createElement(_.Button,{type:"control",onClick:this.showDeploy},t("INSTALL"))),E.default.createElement("div",{className:k.default.content},E.default.createElement(_.Columns,null,E.default.createElement(_.Column,null,E.default.createElement(C.default,{appId:this.appId,versionId:r,currentTab:n})),E.default.createElement(_.Column,{className:"is-narrow"},this.renderVersionList(),E.default.createElement(T.default,{app:l})))))}},{key:"appId",get:function(){return this.props.app.app_id}},{key:"tabs",get:function(){return[{label:t("APP_INFORMATION"),value:"versionInfo"},{label:t("CHART_FILES"),value:"chartFiles"}]}},{key:"versionOptions",get:function(){return this.versionStore.list.data.map((function(e){var t=e.version_id,a=e.name,r=e.create_time;return{label:a,description:(0,S.default)(r).format("YYYY-MM-DD"),value:t}}))}}]),n}(E.Component),s.propTypes={app:g.default.object,setType:g.default.func,workspace:g.default.string},s.defaultProps={app:{}},c=i))||c;a.default=w},function(e,a,r){"use strict";r(15);var n=r(20);r(9),r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(42),r(9),r(4),r(23),r(57),r(17);var l,o,u,c,s=n(r(36)),i=n(r(37)),f=n(r(55)),d=n(r(56)),p=n(r(51)),m=n(r(49)),v=n(r(0)),h=n(r(1)),E=r(14),y=r(239),g=r(186),b=n(r(63)),S=n(r(935)),_=n(r(1001)),O=n(r(1721)),C=n(r(3144));function T(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,p.default)(e);if(t){var n=(0,p.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,d.default)(this,a)}}var R=g.Tabs.TabPanel,D=(0,y.observer)((c=u=function(e){(0,f.default)(r,e);var a=T(r);function r(e){var n;return(0,s.default)(this,r),(n=a.call(this,e)).handleTabChange=function(e){n.setState({tab:e})},n.renderReadMe=function(){var e=n.files["README.md"];return e||n.fileStore.isLoading?v.default.createElement(_.default,{source:e}):v.default.createElement("p",{className:C.default.noReadme},t("VERSION_INTRO_EMPTY_DESC"))},n.renderChartFiles=function(){if(!(0,b.default)(n.files)){return v.default.createElement(O.default,{files:(0,E.toJS)(n.files),editorOptions:{options:{readOnly:!0}}})}},n.fileStore=new S.default,n.state={tab:"versionInfo"},n}return(0,i.default)(r,[{key:"componentDidUpdate",value:function(e){var t=this.props.versionId;t!==e.versionId&&this.fetchFile(t)}},{key:"componentDidMount",value:function(){var e=this.props.versionId;this.fetchFile(e)}},{key:"fetchFile",value:function(e){var t=this.props.appId;e&&this.fileStore.fetch({app_id:t,version_id:e})}},{key:"render",value:function(){var e=this.props,a=e.versionId,r=e.currentTab,n=this.state.tab;return a?this.fileStore.isLoading?v.default.createElement(g.Loading,{className:C.default.loading}):"versionInfo"===r?v.default.createElement(v.default.Fragment,null,this.renderReadMe()):"chartFiles"===r?v.default.createElement(v.default.Fragment,null,this.renderChartFiles()):v.default.createElement(g.Tabs,{type:"button",activeName:n,onChange:this.handleTabChange},v.default.createElement(R,{label:t("APP_INTRODUCTION"),name:"versionInfo"},v.default.createElement("div",{className:C.default.wrapper},this.renderReadMe())),v.default.createElement(R,{label:t("CHART_FILES"),name:"chartFiles"},v.default.createElement("div",{className:C.default.wrapper},this.renderChartFiles()))):null}},{key:"files",get:function(){return this.fileStore.files}}]),r}(v.default.Component),u.propTypes={appId:h.default.string,versionId:h.default.string,currentTab:h.default.string},u.defaultProps={currentTab:"",appId:"",versionId:""},o=c,(0,m.default)(o.prototype,"files",[E.computed],Object.getOwnPropertyDescriptor(o.prototype,"files"),o.prototype),l=o))||l;a.default=D},,function(e,t,a){e.exports={wrapper:"_22Uqg9uSekELpB6KOCdXpB",noReadme:"_2op9wgbzpexIMRcDqKNfeb",loading:"_2ycCMmftlBf-UDzqsr_oJG"}},function(e,t,a){e.exports={appBase:"_1I6e4FCt60BefNpkAUBRMO"}},function(e,a,r){"use strict";r(15);var n=r(157),l=r(20);r(5),r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(42),r(4),r(23),r(57),r(17);var o=l(r(36)),u=l(r(37)),c=l(r(55)),s=l(r(56)),i=l(r(51)),f=n(r(0)),d=l(r(1)),p=r(186),m=l(r(836)),v=l(r(3147));function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,i.default)(e);if(t){var n=(0,i.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,s.default)(this,a)}}var E=function(e){(0,c.default)(r,e);var a=h(r);function r(){var e;(0,o.default)(this,r);for(var t=arguments.length,n=new Array(t),l=0;l0&&void 0!==r[0]?r[0]:{},a=n.props.detail,e.abrupt("return",n.versionStore.fetchList(M(M({},t),{},{app_id:a.app_id})));case 3:case"end":return e.stop()}}),e)}))),n.handleVersionChange=function(e){var t=n.props.detail;(0,C.default)(n.state.formData,"version_id",e),n.setState({loadingFile:!0,valuesYaml:""}),n.fileStore.fetch({app_id:t.app_id,version_id:e}).then((function(){n.updateValuesYaml()}))},n.handleYamlChange=function(e){var t=n.state.formData;n.setState({valuesYaml:e},(function(){(0,C.default)(t,"conf",e)}))},n.handleOk=function(){n.props.onOk(n.state.formData)},n.state={currentStep:0,formData:M(M({},(0,T.default)(e.detail,["app_id","cluster_id","description","name","owner","version_id"])),{},{namespace:e.namespace,cluster:e.cluster,workspace:e.workspace}),valuesYaml:"",conf:(0,O.default)(e.detail,"env",""),loadingFile:!1},n.versionStore=new k.default,n.fileStore=new I.default,n}return(0,m.default)(r,[{key:"componentDidMount",value:function(){this.init()}},{key:"init",value:function(){var e=this;this.setState({loadingFile:!0}),this.versionStore.fetchList({app_id:this.props.detail.app_id}),this.fileStore.fetch({app_id:this.props.detail.app_id,version_id:this.state.formData.version_id}).then((function(){e.updateValuesYaml()}))}},{key:"render",value:function(){var e=this.props.detail,a=this.state,r=a.valuesYaml,n=a.conf,o=a.loadingFile;return g.default.createElement(N.default,(0,l.default)({title:t("EDIT_APP_SETTINGS")},this.props,{onOk:this.handleOk,width:1280,okText:t("OK")}),g.default.createElement(R.Columns,null,g.default.createElement(R.Column,null,g.default.createElement("div",{className:A.default.label},t("CURRENT_APP_VERSION")),g.default.createElement(R.Input,{className:"margin-b12",value:e.version.name,readOnly:!0}),g.default.createElement("div",{className:A.default.label},t("CURRENT_APP_SETTINGS_READONLY")),g.default.createElement(R.Loading,{spinning:!1},g.default.createElement(D.default,{mode:"yaml",className:A.default.readOnly,value:n,options:{readOnly:!0}}))),g.default.createElement(R.Column,null,g.default.createElement("div",{className:A.default.label},t("TARGET_APP_VERSION")),g.default.createElement(R.Select,{name:"version_id",className:"margin-b12",value:this.state.formData.version_id,options:this.sortedVersions,placeholder:t("VERSION_EMPTY_DESC"),pagination:(0,T.default)(this.versionStore.list,["page","limit","total"]),isLoading:this.versionStore.list.isLoading,onFetch:this.fetchVersions,onChange:this.handleVersionChange,optionRenderer:this.versionOptionRender,valueRenderer:this.versionOptionRender}),g.default.createElement("div",{className:A.default.label},t("TARGET_APP_SETTINGS")),g.default.createElement(R.Loading,{spinning:o},g.default.createElement(D.default,{mode:"yaml",value:r,onChange:this.handleYamlChange})))))}},{key:"sortedVersions",get:function(){return this.versionStore.list.data.map((function(e){return{label:e.name,value:e.version_id}})).sort((function(e,t){return(0,P.compareVersion)(t.name,e.name)}))}},{key:"latestVersion",get:function(){return(0,O.default)(this.sortedVersions,"[0].value","")}}]),r}(g.default.Component),i.propTypes={visible:b.default.bool,detail:b.default.object,store:b.default.object,cluster:b.default.string,workspace:b.default.string,namespace:b.default.string,onOk:b.default.func,onCancel:b.default.func},i.defaultProps={visible:!1,detail:{},onOk:function(){},onCancel:function(){}},s=f,(0,y.default)(s.prototype,"sortedVersions",[S.computed],Object.getOwnPropertyDescriptor(s.prototype,"sortedVersions"),s.prototype),(0,y.default)(s.prototype,"latestVersion",[S.computed],Object.getOwnPropertyDescriptor(s.prototype,"latestVersion"),s.prototype),c=s))||c;a.default=j},function(e,t,a){e.exports={label:"_3uikzxbVhWftLhURgoCd7X",readOnly:"_3khog5JHAOn8kW0CFIpLvI"}},function(e,a,r){"use strict";var n=r(157),l=r(20);r(12),r(11),r(6),r(48),r(9),r(13),r(10),r(4),r(23),r(24),r(17),r(62),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(45),r(11),r(6),r(28),r(48),r(42),r(34),r(15),r(9),r(13),r(10),r(4),r(436),r(23),r(57),r(24),r(193),r(17),r(62),r(7);var o=l(r(315)),u=l(r(58)),c=l(r(30)),s=l(r(36)),i=l(r(37)),f=l(r(55)),d=l(r(56)),p=l(r(51)),m=n(r(0)),v=l(r(1)),h=l(r(26)),E=r(186),y=l(r(787)),g=l(r(3154)),b=l(r(3155)),S=l(r(1381));function _(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function O(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,p.default)(e);if(t){var n=(0,p.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,d.default)(this,a)}}var C=function(e){(0,f.default)(r,e);var a=O(r);function r(e){var n;return(0,s.default)(this,r),(n=a.call(this,e)).getFormData=function(e){var t="https";if(e&&e.url){var a=e.url.match(/^(.*):\/\//);a[1]&&(t=a[1])}return function(e){for(var t=1;t86400||l<180)?r({message:t("SYNC_INTERVAL_TIP")}):void r():r({message:t("SYNC_INTERVAL_INVALID")}):r()},n.handleSubmit=function(e){n.props.onOk(e).then((function(){n.setState({formData:n.getFormData({})})}))},n.handleCancel=function(){n.props.onCancel(),n.setState({formData:n.getFormData({})})},n.handleUrlValidate=function(e){n.setState({isValid:e.isValid})},n.formRef=m.default.createRef(),n.state={formData:n.getFormData(e.detail)},n}return(0,i.default)(r,[{key:"componentDidUpdate",value:function(e){this.props.detail!==e.detail&&this.setState({formData:this.getFormData(this.props.detail)})}},{key:"render",value:function(){var e=this.props,a=e.detail,r=e.store,n=(e.onOk,e.onCancel,e.workspace),l=(0,u.default)(e,["detail","store","onOk","onCancel","workspace"]),c=a?"EDIT_APP_REPO":"ADD_APP_REPO";return m.default.createElement(y.default.Form,(0,o.default)({bodyClassName:S.default.body,title:t(c),icon:"firewall",width:691,data:this.state.formData,onOk:this.handleSubmit,onCancel:this.handleCancel},l),m.default.createElement(E.Form.Item,{label:t("NAME"),rules:[{required:!0,message:t("NAME_EMPTY_DESC")}]},m.default.createElement(E.Input,{name:"name",autoFocus:!0})),m.default.createElement(b.default,{store:r,workspace:n,formData:this.state.formData,onValidate:this.handleUrlValidate,isSubmitting:this.props.isSubmitting}),m.default.createElement(E.Form.Item,{label:t("SYNC_INTERVAL"),desc:t("SYNC_INTERVAL_DESC"),rules:[{required:!0,message:t("SYNC_PERIOD_EMPTY_DESC")},{validator:this.timeValidator}]},m.default.createElement(g.default,{name:"sync_period"})),m.default.createElement(E.Form.Item,{label:t("DESCRIPTION"),desc:t("DESCRIPTION_DESC")},m.default.createElement(E.TextArea,{name:"description",maxLength:256})))}}]),r}(m.Component);a.default=C,C.propTypes={store:v.default.object,detail:v.default.object,visible:v.default.bool,isSubmitting:v.default.bool,onOk:v.default.func,onCancel:v.default.func},C.defaultProps={visible:!1,isSubmitting:!1,onOk:function(){},onCancel:function(){}}},function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(48),r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(48),r(42),r(4),r(23),r(57),r(17);var l=n(r(36)),o=n(r(37)),u=n(r(55)),c=n(r(56)),s=n(r(51)),i=n(r(0)),f=r(186),d=n(r(1381));function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,s.default)(e);if(t){var n=(0,s.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,c.default)(this,a)}}var m=function(e){(0,u.default)(r,e);var a=p(r);function r(e){var t;return(0,l.default)(this,r),(t=a.call(this,e)).handleChangeValue=function(e,a){var r=t.props.onChange,n=t.state.unit;t.setState({value:a}),r(a?"".concat(a).concat(n):a)},t.handleChangeUnit=function(e){var a=t.props.onChange,r=t.state.value;t.setState({unit:e}),a(r?"".concat(r).concat(e):r)},t.state={value:e.value.slice(0,-1),unit:e.value.slice(-1)},t}return(0,o.default)(r,[{key:"render",value:function(){var e=this.state,t=e.value,a=e.unit;return i.default.createElement("div",{className:d.default.timeInput},i.default.createElement(f.Input,{className:d.default.input,value:t,onChange:this.handleChangeValue}),i.default.createElement(f.Select,{className:d.default.select,value:a,options:this.options,onChange:this.handleChangeUnit}))}},{key:"options",get:function(){return[{label:t("SECONDS"),value:"s"},{label:t("MINUTES"),value:"m"},{label:t("HOURS"),value:"h"}]}}]),r}(i.default.Component);a.default=m},function(e,a,r){"use strict";var n=r(20);r(12),r(5),r(11),r(6),r(16),r(9),r(13),r(10),r(4),r(23),r(139),r(24),r(17),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(249),r(45),r(5),r(11),r(6),r(28),r(191),r(42),r(16),r(159),r(34),r(15),r(9),r(13),r(10),r(4),r(23),r(57),r(139),r(251),r(24),r(252),r(193),r(17),r(7);var l,o,u,c,s,i,f,d,p,m=n(r(30)),v=n(r(65)),h=n(r(36)),E=n(r(88)),y=n(r(37)),g=n(r(55)),b=n(r(56)),S=n(r(51)),_=n(r(49)),O=(n(r(66)),n(r(0))),C=n(r(1)),T=r(14),R=r(239),D=n(r(3156)),N=n(r(63)),k=n(r(26)),I=n(r(74)),P=n(r(972)),A=r(916),w=r(186),M=n(r(1381));function L(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function j(e){for(var t=1;t0&&y.default.createElement(_.Button,{type:"control",onClick:this.handlePrev},t("PREVIOUS")),e0&&void 0!==u[0]?u[0]:{},r=e.state.formData,n=r.workspace,l=r.cluster,!n||!l){t.next=5;break}return t.next=5,e.projectStore.fetchList(w(w({},a),{},{workspace:n,cluster:l,ascending:!0}));case 5:case"end":return t.stop()}}),t)}))),e.handleWorkspaceChange=function(){e.fetchClusters(),(0,C.default)(e.state.formData,"cluster",""),(0,C.default)(e.state.formData,"namespace","")},e.handleClusterChange=function(){e.fetchNamespaces(),(0,C.default)(e.state.formData,"namespace","")},e.handleSubmit=function(){var t=e.formRef.current;t&&t.validate((function(){Object.assign(e.props.formData,w({},e.state.formData)),e.hideForm()}))},e.showForm=function(){e.setState({showForm:!0})},e.hideForm=function(){e.setState({showForm:!1})},e.projectOptionRenderer=function(e){return D.default.createElement("span",{className:P.default.option},e.isFedManaged?D.default.createElement("img",{className:P.default.indicator,src:"/assets/cluster.svg"}):D.default.createElement(E.Icon,{name:"project"}),e.label,e.isFedManaged&&D.default.createElement(E.Tooltip,{content:t("FEDPROJECT_CANNOT_DEPLOY_APP_TIP")},D.default.createElement(E.Icon,{className:P.default.tip,name:"question"})))},e.clusterOptionRenderer=function(e){return D.default.createElement("div",null,D.default.createElement("div",null,e.label),!e.cluster.isReady&&D.default.createElement("div",null,D.default.createElement(g.default,{data:e.cluster,noTip:!0})))},e}return(0,d.default)(c,[{key:"componentDidMount",value:function(){this.init()}},{key:"init",value:(n=(0,i.default)(o.default.mark((function e(){var t,a,r,n,l;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.setState({initializing:!0}),t=this.state.formData,a=t.workspace,r=t.cluster,n=t.namespace,e.next=4,this.fetchWorkspaces();case 4:return a||(0,C.default)(this.state.formData,"workspace",(0,_.default)(this.workspaces,"[0].value")),e.next=7,this.fetchClusters();case 7:return r||(0,C.default)(this.state.formData,"cluster",(0,_.default)(this.clusters,"[0].value")),e.next=10,this.fetchNamespaces();case 10:n||(l=this.namespaces.find((function(e){return!e.disabled}))||{},(0,C.default)(this.state.formData,"namespace",l.value||"")),Object.assign(this.props.formData,this.state.formData),this.setState({initializing:!1});case 13:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"fetchWorkspaces",value:(r=(0,i.default)(o.default.mark((function e(){var t,a=arguments;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=a.length>0&&void 0!==a[0]?a[0]:{},e.next=3,this.workspaceStore.fetchList(w(w({},t),{},{limit:-1,ascending:!0}));case 3:case"end":return e.stop()}}),e,this)}))),function(){return r.apply(this,arguments)})},{key:"fetchClusters",value:(a=(0,i.default)(o.default.mark((function e(){var t,a,r=arguments;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=r.length>0&&void 0!==r[0]?r[0]:{},!(a=this.state.formData.workspace)){e.next=5;break}return e.next=5,this.workspaceStore.fetchClusters(w(w({},t),{},{workspace:a,limit:-1,ascending:!0}));case 5:case"end":return e.stop()}}),e,this)}))),function(){return a.apply(this,arguments)})},{key:"renderPlacement",value:function(){var e=this.props.formData,a=e.namespace,r=e.workspace,n=e.cluster;return D.default.createElement("div",{className:P.default.placement},D.default.createElement(b.default,{className:P.default.text,title:(0,I.showNameAndAlias)(r,"workspace"),description:t("WORKSPACE")}),D.default.createElement(b.default,{className:P.default.text,title:(0,I.showNameAndAlias)(n,"cluster"),description:t("CLUSTER")}),D.default.createElement(b.default,{className:P.default.text,icon:"project",title:(0,I.showNameAndAlias)(a,"project",{cluster:n}),description:t("PROJECT")}),D.default.createElement(E.Icon,{className:P.default.icon,name:"chevron-down",size:20}))}},{key:"renderForm",value:function(){var e=this.props.workspace;return D.default.createElement("div",{className:P.default.form},D.default.createElement(E.Form,{ref:this.formRef,type:"inner",data:this.state.formData},D.default.createElement(E.Columns,null,D.default.createElement(E.Column,null,D.default.createElement(E.Form.Item,{label:t("WORKSPACE")},D.default.createElement(E.Select,{name:"workspace",placeholder:t("WORKSPACE_EMPTY_DESC"),options:this.workspaces,onChange:this.handleWorkspaceChange,prefixIcon:D.default.createElement(E.Icon,{name:"enterprise",size:16}),disabled:!!e}))),D.default.createElement(E.Column,null,D.default.createElement(E.Form.Item,{label:t("CLUSTER")},D.default.createElement(E.Select,{name:"cluster",placeholder:" ",options:this.clusters,onChange:this.handleClusterChange,optionRenderer:this.clusterOptionRenderer,prefixIcon:D.default.createElement(E.Icon,{name:"cluster",size:16}),showTip:!0}))),D.default.createElement(E.Column,null,D.default.createElement(E.Form.Item,{label:t("PROJECT"),rules:[{required:!0,message:t("PROJECT_NOT_SELECT_DESC")}]},D.default.createElement(E.Select,{name:"namespace",placeholder:" ",options:this.namespaces,pagination:(0,O.default)(this.projectStore.list,["page","limit","total"]),isLoading:this.projectStore.list.isLoading,onFetch:this.fetchNamespaces,valueRenderer:this.projectOptionRenderer,optionRenderer:this.projectOptionRenderer,clearable:!0}))))),D.default.createElement(S.default,{className:P.default.confirm,onOk:this.handleSubmit,onCancel:this.hideForm}))}},{key:"render",value:function(){var e=this.state,a=e.showForm,r=e.formData,n=e.initializing;return a?this.renderForm():D.default.createElement("div",{className:(0,y.default)(P.default.wrapper,(0,u.default)({},P.default.expand,a)),onClick:this.showForm},r.namespace?this.renderPlacement():D.default.createElement("div",{className:P.default.placeholder},n?D.default.createElement(E.Loading,{className:"text-center"}):t("PROJECT_NOT_SELECT_DESC")))}},{key:"workspaces",get:function(){return this.workspaceStore.list.data.filter((function(e){return e.name!==globals.config.systemWorkspace})).map((function(e){return{label:(0,I.showNameAndAlias)(e),value:e.name}}))}},{key:"clusters",get:function(){return this.workspaceStore.clusters.data.map((function(e){return{label:(0,I.showNameAndAlias)(e),value:e.name,disabled:!e.isReady,cluster:e}}))}},{key:"namespaces",get:function(){return this.projectStore.list.data.filter((function(e){return"Terminating"!==e.status})).map((function(e){return{label:(0,I.showNameAndAlias)(e),value:e.name,disabled:e.isFedManaged,isFedManaged:e.isFedManaged}}))}}]),c}(D.Component),(0,h.default)(s.prototype,"workspaces",[T.computed],Object.getOwnPropertyDescriptor(s.prototype,"workspaces"),s.prototype),(0,h.default)(s.prototype,"clusters",[T.computed],Object.getOwnPropertyDescriptor(s.prototype,"clusters"),s.prototype),(0,h.default)(s.prototype,"namespaces",[T.computed],Object.getOwnPropertyDescriptor(s.prototype,"namespaces"),s.prototype),c=s))||c;a.default=L},function(e,t,a){e.exports={wrapper:"_1-zzsgQcL6AnKOs_Sxiu20",placeholder:"_1VOZnqeyx9mHYMTD8k_Q3_",form:"_1AI73FeUImn3gHEsO9StyJ",confirm:"_3w7hJkkJRGqAW2U6H4l_3l",placement:"_2RflgzEx5EebIR0t5yYHhq",text:"_3sMJ4G-DVsOmo9TkX6Xlhr",icon:"_19fvfv87icQ9tqCf2bPw6L",option:"_3GsdSpU7z-pczQtQ6zwAgG",tip:"-gsMZiJ2S2gdBb2vcv9oy"}},function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(42),r(4),r(23),r(57),r(17);var l,o=n(r(36)),u=n(r(37)),c=n(r(55)),s=n(r(56)),i=n(r(51)),f=n(r(0)),d=n(r(74)),p=r(14),m=r(239),v=r(186),h=n(r(841)),E=n(r(850)),y=r(52),g=r(894),b=n(r(3192)),S=n(r(3194));function _(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,i.default)(e);if(t){var n=(0,i.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,s.default)(this,a)}}var O=(0,m.observer)(l=function(e){(0,c.default)(r,e);var a=_(r);function r(){var e;(0,o.default)(this,r);for(var t=arguments.length,n=new Array(t),l=0;l1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],o=t.type,u=t.form,c=e.state.value,s="object"===(0,l.default)(t.hidden)?(0,v.default)(c,t.hidden.value,null)===t.hidden.condition:(0,v.default)(c,t.hidden,!1);if(s)return null;if("object"===o){var i=(0,m.default)(t.properties,(function(t,a){return e.renderSchemaForm(t,a,[].concat((0,n.default)(r),[a]))}));if((0,b.default)(i)||i.every((function(e){return!e})))return null;var f=t.properties&&(0,E.default)(t.properties,(function(e){return(0,y.default)(e,"properties")}));return d.default.createElement("div",{key:a,className:f?T.default.parentGroup:T.default.group},t.title&&d.default.createElement("div",{className:T.default.title},t.title),t.description&&d.default.createElement("p",{className:T.default.description},t.description),i)}return u?e.renderFormItem(t,a,r):null},e}return(0,c.default)(a,[{key:"handleFormChange",value:function(e){this.setState({value:e}),this.triggerChange(e)}},{key:"render",value:function(){var e=this.props.schema;return this.renderSchemaForm(e)}}]),a}(d.default.Component);t.default=D,D.propTypes={schema:p.default.object,value:p.default.object,onChange:p.default.func},D.defaultProps={onChange:function(){}}},function(e,t,a){e.exports={group:"_3xTfalXI7Y64g0li2u6vG2",title:"_182KrRnt2udLzkiRSMx9JE",description:"_2839u1rW56wEbtmaeCpjpO",boolean:"_3mnMZpC4gF0oolH9K1bn2W",parentGroup:"HW1rPNOyhUpkrn584aGu-"}},function(e,t,a){e.exports={wrapper:"TLG9iSoooMsoVDmn61N6I",title:"_1eUI0tEXI3u8lHvjGDMO3f",switch:"_32tTvAbdJ_mXTYRvGpAE2n",codeWrapper:"_3uRVlVgjuj0HJpjr9wInob",schemaWrapper:"_3VOv76O-06CKHBW5mIv-lM",loading:"_2ckKN8H46Wi058LIpHKyNF"}},function(e,a,r){"use strict";r(15);var n=r(157),l=r(20);r(18),r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(18),r(42),r(4),r(23),r(57),r(17);var o=l(r(30)),u=l(r(36)),c=l(r(37)),s=l(r(55)),i=l(r(56)),f=l(r(51)),d=n(r(0)),p=l(r(3)),m=l(r(3196));function v(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,f.default)(e);if(t){var n=(0,f.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,i.default)(this,a)}}var h=function(e){(0,s.default)(r,e);var a=v(r);function r(){return(0,u.default)(this,r),a.apply(this,arguments)}return(0,c.default)(r,[{key:"render",value:function(){var e=this.props,a=e.steps,r=e.current;return d.default.createElement("div",{className:m.default.wrapper},a.map((function(e,a){var n;return d.default.createElement("div",{key:e.title},d.default.createElement("span",{className:(0,p.default)(m.default.indicator,(n={},(0,o.default)(n,m.default.fullfill,r>a),(0,o.default)(n,m.default.current,r===a),(0,o.default)(n,m.default.pending,r0?g.default.createElement("ul",null,n.map((function(e,t){return g.default.createElement("li",{key:t},g.default.createElement(D.default,{src:e}))}))):g.default.createElement("p",null,t("NONE"))))}},{key:"renderConfigFiles",value:function(){var e=this.versionStore.detail,t=this.fileStore.files;return g.default.createElement("div",null,g.default.createElement(P.default,{className:j.default.downloadInfo,fileStore:this.fileStore,packageName:this.getPackageName(),updateTime:e.update_time||e.status_time,appId:e.app_id,versionId:e.version_id,hasPackage:!0}),g.default.createElement(I.default,{files:t}))}},{key:"renderFooter",value:function(){var e=this.props,a=e.isSubmitting,r=e.onReject,n=e.onOk;return g.default.createElement("div",{className:j.default.footer},g.default.createElement(O.Button,{type:"danger",onClick:r},t("REJECT")),g.default.createElement(O.Button,{type:"control",loading:a,disabled:a,onClick:n},t("APPROVE")))}},{key:"render",value:function(){var e=this.props,a=e.visible,r=e.canHandle,n=(0,c.default)(e,["visible","canHandle"]),l=(0,T.toJS)(this.versionStore.detail),s=this.state.tab,i=(0,C.default)(this.fileStore,"files",{})["README.md"];return g.default.createElement(R.default,(0,o.default)({bodyClassName:(0,_.default)(j.default.body,(0,u.default)({},j.default.hideFooter,!r)),visible:a},n,{rightScreen:!0,hideFooter:!0}),g.default.createElement(O.Tabs,{type:"button",activeName:s,onChange:this.handleTabChange},g.default.createElement(U,{label:t("APP_INFORMATION"),name:"appInfo"},this.renderBaseInfo()),g.default.createElement(U,{label:t("DOCUMENTATION"),name:"readme"},g.default.createElement(k.default,{readme:i})),g.default.createElement(U,{label:t("CHART_FILES"),name:"configFiles"},this.renderConfigFiles()),g.default.createElement(U,{label:t("UPDATE_LOG"),name:"updateLog"},g.default.createElement(A.default,{description:l.description}))),r&&this.renderFooter())}}]),r}(g.Component),f.propTypes={visible:b.default.bool,canHandle:b.default.bool,detail:b.default.object,onReject:b.default.func,onOk:b.default.func,onCancel:b.default.func},f.defaultProps={visible:!1,canHandle:!1,detail:{},onReject:function(){},onOk:function(){},onCancel:function(){}},i=d))||i;a.default=F},function(e,a,r){"use strict";r(15);var n=r(20);r(12),r(109),r(16),r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(109),r(45),r(42),r(16),r(4),r(23),r(57),r(24),r(193),r(17);var l,o,u,c=n(r(36)),s=n(r(37)),i=n(r(55)),f=n(r(56)),d=n(r(51)),p=n(r(836)),m=n(r(1001)),v=r(239),h=n(r(1)),E=n(r(0)),y=r(52),g=n(r(3201));function b(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,d.default)(e);if(t){var n=(0,d.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,f.default)(this,a)}}var S=(0,v.observer)((u=o=function(e){(0,i.default)(r,e);var a=b(r);function r(){return(0,c.default)(this,r),a.apply(this,arguments)}return(0,s.default)(r,[{key:"renderBase",value:function(){var e=this.props,a=e.detail,r=e.versionName,n=a.home?/^https?:\/\//.test(a.home)?a.home:"http://".concat(a.home):a.home;return E.default.createElement("div",{className:g.default.base},E.default.createElement("div",{className:g.default.title},t("BASIC_INFORMATION")),E.default.createElement("div",{className:g.default.info},E.default.createElement("div",{className:g.default.icon},E.default.createElement(p.default,{src:a.icon,iconLetter:a.name,iconSize:100})),E.default.createElement("div",{className:g.default.words},E.default.createElement("dl",null,E.default.createElement("dd",null,a.name),E.default.createElement("dt",null,t("NAME"))),E.default.createElement("dl",null,E.default.createElement("dd",null,globals.config.showOutSiteLink&&E.default.createElement("a",{href:(0,y.hrefControl)(n),target:"_blank",rel:"noopener noreferrer"},a.home),!a.home&&E.default.createElement("span",null,"-")),E.default.createElement("dt",null,t("SERVICE_PROVIDER_WEBSITE")))),E.default.createElement("div",null,E.default.createElement("dl",null,E.default.createElement("dd",null,r),E.default.createElement("dt",null,t("VERSION"))),E.default.createElement("dl",null,E.default.createElement("dd",null,(0,y.showNameAndAlias)(a.isv,"workspace")),E.default.createElement("dt",null,t("WORKSPACE"))))),E.default.createElement("div",{className:g.default.description},E.default.createElement("dl",null,E.default.createElement("pre",null,a.description||"-"),E.default.createElement("dt",null,t("INTRODUCTION")))),E.default.createElement("div",{className:g.default.title},t("APP_DESCRIPTION")),E.default.createElement("div",null,E.default.createElement(m.default,{source:a.abstraction||t("NONE")})))}},{key:"render",value:function(){return E.default.createElement("div",{className:g.default.main},this.renderBase())}}]),r}(E.default.Component),o.propTypes={detail:h.default.object,versionName:h.default.string},o.defaultProps={detail:{},versionName:""},l=u))||l;a.default=S},function(e,t,a){e.exports={base:"_3RhG54Afc3jTrbfar2yUo0",info:"_2pPSF0uuUVhnDFREH_W1RE",icon:"sN1v3yg2lJsboH2B2H53J",words:"vEULlxo--39bvTHCeQZnd",description:"_1Sv5X8JxKxpsz_-ZoHkVMt",title:"_1PRTS92xyJ2yUX613onuo4",banLink:"VE_ECtfsbM2wxJue7ZAW3"}},function(e,a,r){"use strict";r(15);var n=r(20);r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(42),r(4),r(23),r(57),r(17);var l=n(r(36)),o=n(r(37)),u=n(r(55)),c=n(r(56)),s=n(r(51)),i=n(r(0)),f=n(r(1)),d=n(r(1001)),p=n(r(3203));function m(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,s.default)(e);if(t){var n=(0,s.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,c.default)(this,a)}}var v=function(e){(0,u.default)(r,e);var a=m(r);function r(){return(0,l.default)(this,r),a.apply(this,arguments)}return(0,o.default)(r,[{key:"render",value:function(){var e=this.props.readme;return e?i.default.createElement(d.default,{source:e,className:p.default.markdown}):i.default.createElement("p",null,t("NO_DOCUMENT_FOUND"))}}]),r}(i.default.PureComponent);a.default=v,v.propTypes={readme:f.default.string},v.defaultProps={readme:""}},function(e,t,a){e.exports={markdown:"V_-mqFB-1z1gAg3djZCMg"}},function(e,a,r){"use strict";r(15);var n=r(20);r(18),r(9),r(10),r(4),r(23),r(24),r(17),r(64),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(18),r(191),r(42),r(159),r(9),r(10),r(4),r(23),r(57),r(24),r(17),r(64);var l,o,u,c,s,i=n(r(30)),f=n(r(65)),d=n(r(36)),p=n(r(37)),m=n(r(88)),v=n(r(55)),h=n(r(56)),E=n(r(51)),y=(n(r(66)),n(r(49))),g=n(r(0)),b=r(239),S=r(186),_=r(14),O=r(909),C=n(r(3)),T=n(r(1268)),R=n(r(841)),D=n(r(3205));function N(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,E.default)(e);if(t){var n=(0,E.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,h.default)(this,a)}}var k=(0,b.observer)((o=function(e){(0,v.default)(r,e);var a=N(r);function r(e){var t;return(0,d.default)(this,r),(t=a.call(this,e)).DEFAULT_PREVIEW_FILE="values.yaml",(0,f.default)(t,"changeMode",u,(0,m.default)(t)),(0,f.default)(t,"changeSelectFile",c,(0,m.default)(t)),(0,f.default)(t,"changePreviewType",s,(0,m.default)(t)),t.handleDownload=function(){var e=t.props.files[t.selectFile];"yaml"===t.mode?t.downloadAsYaml(e):"json"===t.mode&&t.downloadAsJSON(e)},(0,_.extendObservable)((0,m.default)(t),{selectFile:t.defaultSelectFile,mode:"yaml"}),t}return(0,p.default)(r,[{key:"downloadAsJSON",value:function(e){var t=this.selectFile.replace(/yaml$/,"json"),a="";try{a=JSON.stringify(T.default.safeLoad(e),null,2)}catch(e){a=e}this.saveAs(a,t)}},{key:"downloadAsYaml",value:function(e){var t=this.selectFile;this.saveAs(e,t)}},{key:"saveAs",value:function(e,t){var a=new Blob([e],{type:"text/plain;charset=utf-8"});(0,O.saveAs)(a,t)}},{key:"render",value:function(){return this.selectFile?g.default.createElement("div",{className:D.default.wrapper},g.default.createElement("div",{className:D.default.topbar},g.default.createElement("div",{className:D.default.icon},g.default.createElement(S.Icon,{name:"coding",size:20}),g.default.createElement("span",null,t("CHART_FILES"))),this.renderFileSelect()),g.default.createElement("div",{className:D.default.edit},this.renderPreviewToolbar(),this.renderPreviewContent())):g.default.createElement("p",null,t("NO_APP_CHART_FILE_FOUND"))}},{key:"renderFileSelect",value:function(){return g.default.createElement(S.Select,{defaultValue:this.selectFile,onChange:this.changeSelectFile,options:this.fileOptions})}},{key:"renderPreviewToolbar",value:function(){return g.default.createElement("div",{className:D.default.toolbar},g.default.createElement(S.Icon,{className:D.default.download,name:"download",size:20,color:{primary:"#fff"},onClick:this.handleDownload,clickable:!0,changeable:!0}))}},{key:"renderPreviewTypeBtn",value:function(e,t){var a=this;return g.default.createElement("span",{className:(0,C.default)(D.default.preview_btn,(0,i.default)({},D.default.active,this.mode===e)),onClick:function(){return a.changePreviewType(e)}},t)}},{key:"renderPreviewContent",value:function(){return g.default.createElement(R.default,{mode:this.mode,value:this.props.files[this.selectFile],options:{readOnly:!0}})}},{key:"fileOptions",get:function(){var e=this.props.files,t=void 0===e?{}:e;return Object.keys(t).map((function(e){return{label:e,value:e}}))}},{key:"defaultSelectFile",get:function(){var e=this.props.files,t=(void 0===e?{}:e)[this.DEFAULT_PREVIEW_FILE],a=this.fileOptions.length?this.fileOptions[0].value:"";return t?this.DEFAULT_PREVIEW_FILE:a}}]),r}(g.default.Component),(0,y.default)(o.prototype,"fileOptions",[_.computed],Object.getOwnPropertyDescriptor(o.prototype,"fileOptions"),o.prototype),(0,y.default)(o.prototype,"defaultSelectFile",[_.computed],Object.getOwnPropertyDescriptor(o.prototype,"defaultSelectFile"),o.prototype),u=(0,y.default)(o.prototype,"changeMode",[_.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(t){e.mode=t}}}),c=(0,y.default)(o.prototype,"changeSelectFile",[_.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(t){e.selectFile=t}}}),s=(0,y.default)(o.prototype,"changePreviewType",[_.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(t){e.mode=t}}}),l=o))||l;a.default=k},function(e,t,a){e.exports={wrapper:"C9RBDezZTSZ9wuANVHPsi",topbar:"_1qDSB0O58SB7_GXNCw7_dc",icon:"_3srqZVcOkSMEixaltbPZi7",edit:"_2jL4KvBNHuC4jU_RiiIi4_",toolbar:"_2_GUQMPwxTWMMjXHWFT_Ka",download:"_3jjk2LxhatXGcY7nGnb2Fl",preview_btn:"_20Qa4VKbEwotZP_JgGCEar",active:"_3QE1zwmNIDX4CN7ZNPOTga"}},function(e,a,r){"use strict";r(15);var n=r(20);r(12),r(109),r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(109),r(45),r(42),r(4),r(23),r(57),r(17);var l=n(r(36)),o=n(r(37)),u=n(r(55)),c=n(r(56)),s=n(r(51)),i=n(r(0)),f=n(r(1)),d=n(r(3207));function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,s.default)(e);if(t){var n=(0,s.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,c.default)(this,a)}}var m=function(e){(0,u.default)(r,e);var a=p(r);function r(){return(0,l.default)(this,r),a.apply(this,arguments)}return(0,o.default)(r,[{key:"render",value:function(){var e=this.props.description;return i.default.createElement("div",{className:d.default.main},i.default.createElement("div",{className:d.default.title},t("UPDATE_LOG")),i.default.createElement("pre",{className:d.default.updateLog},e||t("NO_UPDATE_LOG_DESC")))}}]),r}(i.default.PureComponent);a.default=m,m.propTypes={description:f.default.string},m.defaultProps={description:""}},function(e,t,a){e.exports={main:"_2u4FA6A7MCUfIFe4Z8dqKO",title:"_1xP27HuPsxtLPGTg0MT-St"}},function(e,t,a){e.exports={body:"_2IouoNUd7iTI3nxkqsDwX7",hideFooter:"_3c8gxa4F0ILHsBRr299LfN",downloadInfo:"_3KDp6pP6cAe17QzOMgHY9_",screenshots:"_2hMAd_6nxqkUS9UaXkSw-a",title:"_1CJO5lsaTds2qNIyfcMs4u",footer:"_3qPgJzENw1ErWJvWwB6Ij6"}},function(e,a,r){"use strict";r(15);var n=r(157),l=r(20);r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(42),r(4),r(23),r(57),r(17);var o=l(r(315)),u=l(r(58)),c=l(r(36)),s=l(r(37)),i=l(r(55)),f=l(r(56)),d=l(r(51)),p=n(r(0)),m=l(r(1)),v=r(186),h=l(r(787)),E=l(r(3210));function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,d.default)(e);if(t){var n=(0,d.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,f.default)(this,a)}}var g=function(e){(0,i.default)(r,e);var a=y(r);function r(e){var t;return(0,c.default)(this,r),(t=a.call(this,e)).handleReject=function(){return t.formRef.validate((function(){return t.props.onOk({version_id:t.props.versionId,message:t.state.message})}))},t.changeMessage=function(e){t.setState({message:e})},t.state={message:""},t}return(0,s.default)(r,[{key:"render",value:function(){var e=this,a=this.props,r=a.visible,n=(0,u.default)(a,["visible"]),l={message:this.state.message};return p.default.createElement(h.default,(0,o.default)({width:600,visible:r},n,{onOk:this.handleReject,footerClassName:E.default.footer}),p.default.createElement(v.Form,{data:l,ref:function(t){e.formRef=t},className:E.default.rejectForm},p.default.createElement(v.Form.Item,{rules:[{required:!0,message:t("REJECT_REASON_TIP")}]},p.default.createElement(v.TextArea,{name:"message",onChange:this.changeMessage}))))}}]),r}(p.Component);a.default=g,g.propTypes={versionId:m.default.string,onOk:m.default.func,onCancel:m.default.func},g.defaultProps={versionId:"",onOk:function(){},onCancel:function(){}}},function(e,t,a){e.exports={rejectForm:"_2HRp9_fNHxQCirZ1195MMj",footer:"_2lsP4pTvid2tIQnqGzOeDI"}},function(e,a,r){"use strict";r(15);var n=r(157),l=r(20);r(12),r(109),r(84),r(18),r(16),r(4),r(23),r(17),r(85),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(109),r(45),r(84),r(18),r(42),r(16),r(4),r(23),r(57),r(17),r(85);var o=l(r(315)),u=l(r(30)),c=l(r(58)),s=l(r(36)),i=l(r(37)),f=l(r(55)),d=l(r(56)),p=l(r(51)),m=n(r(0)),v=l(r(1)),h=l(r(3)),E=r(186),y=l(r(806)),g=l(r(787)),b=r(327),S=l(r(3212));function _(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,p.default)(e);if(t){var n=(0,p.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,d.default)(this,a)}}var O=function(e){(0,f.default)(r,e);var a=_(r);function r(e){var n;return(0,s.default)(this,r),(n=a.call(this,e)).changeName=function(e){n.setState({name:e})},n.changeIcon=function(e){n.setState({description:e})},n.nameValidator=function(e,a,r){if(!a)return r();var l=n.props,o=l.detail,u=l.categoryNames;if(a!==o.name&&u.includes(a))return r({message:t("NAME_EXIST_DESC"),field:e.field});r()},n.createOrModify=function(){var e={name:n.state.name,description:n.state.description,locale:"{}"},t=n.props.detail.category_id;t&&(e.category_id=t),n.formRef.validate((function(){n.props.onOk(e)}))},n.onCancel=function(){n.setState({name:"",description:""}),n.props.onCancel()},n.state={name:n.props.detail.name,description:n.props.detail.description},n}return(0,i.default)(r,[{key:"componentDidUpdate",value:function(e){var t=this.props.detail;(0,y.default)(t,e.detail)||this.setState({name:t.name,description:t.description})}},{key:"render",value:function(){var e=this,a=this.props,r=a.visible,n=(0,c.default)(a,["visible"]),l={name:this.state.name,description:this.state.description};return m.default.createElement(g.default,(0,o.default)({width:600,visible:r,footerClassName:S.default.footer},n,{onOk:this.createOrModify,onCancel:this.onCancel}),m.default.createElement(E.Form,{data:l,ref:function(t){e.formRef=t}},m.default.createElement(E.Form.Item,{label:t("NAME"),desc:t("CATEGORY_NAME_DESC"),rules:[{required:!0,message:t("ENTER_CATEGORY_NAME_TIP")},{validator:this.nameValidator}]},m.default.createElement(E.Input,{name:"name",onChange:this.changeName,maxLength:20})),m.default.createElement(E.Form.Item,{label:t("ICON")},m.default.createElement("div",{name:"description",className:S.default.icons,value:l.description},b.CATEGORY_ICONS.map((function(t){return m.default.createElement("label",{key:t,onClick:function(){return e.changeIcon(t)},className:(0,h.default)((0,u.default)({},S.default.active,t===l.description))},m.default.createElement(E.Icon,{name:t,size:20}))}))))))}}]),r}(m.Component);a.default=O,O.propTypes={detail:v.default.object,categoryNames:v.default.array,onOk:v.default.func,onCancel:v.default.func},O.defaultProps={detail:{},categoryNames:[],onOk:function(){},onCancel:function(){}}},function(e,t,a){e.exports={footer:"_2Qp-Oq8oA7HhDGSXylc-1b",icons:"XKu-mU-Dz1wbD5ksgEs7z",active:"_3i5IWpdoNOUzlLf-hGhkbI"}},function(e,a,r){"use strict";r(15);var n=r(157),l=r(20);r(18),r(16),r(137),r(4),r(23),r(24),r(17),r(64),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(18),r(42),r(16),r(137),r(4),r(23),r(57),r(24),r(17),r(64);var o=l(r(61)),u=l(r(315)),c=l(r(36)),s=l(r(37)),i=l(r(55)),f=l(r(56)),d=l(r(51)),p=n(r(0)),m=l(r(1)),v=r(186),h=l(r(787)),E=l(r(3214));function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,d.default)(e);if(t){var n=(0,d.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,f.default)(this,a)}}var g=function(e){(0,i.default)(r,e);var a=y(r);function r(e){var t;return(0,c.default)(this,r),(t=a.call(this,e)).handleChange=function(e){t.setState({categoryId:e})},t.adjustCategory=function(){t.props.onOk({category_id:t.state.categoryId})},t.onCancel=function(){t.setState({categoryId:""}),t.props.onCancel()},t.state={categoryId:t.props.categoryId},t}return(0,s.default)(r,[{key:"render",value:function(){var e=this,a=Object.assign({},this.props),r={category_id:this.state.categoryId};return p.default.createElement(h.default,(0,u.default)({width:600,footerClassName:E.default.footer},a,{onOk:this.adjustCategory,onCancel:this.onCancel}),p.default.createElement(v.Form,{className:E.default.form,data:r,ref:function(t){e.formRef=t}},p.default.createElement(v.Form.Item,{label:t("CHANGE_CATEGORY"),desc:t("CHANGE_CATEGORY_DESC")},p.default.createElement(v.Select,{name:"category_id",options:this.categories,value:this.state.categoryId,onChange:this.handleChange}))))}},{key:"categories",get:function(){return(0,o.default)(this.props.categories.map((function(e){var a=e.name,r=e.category_id;return{label:t("APP_CATE_".concat(a.toUpperCase().replace(/[^A-Z]+/g,"_")),{defaultValue:a}),value:r}})))}}]),r}(p.Component);a.default=g,g.propTypes={categories:m.default.array,categoryId:m.default.string,onOk:m.default.func,onCancel:m.default.func},g.defaultProps={categories:[],categoryId:"",onOk:function(){},onCancel:function(){}}},function(e,t,a){e.exports={footer:"_2TvTf_D-_JM0vtni7wgWQZ",form:"_3wLMP_UWlRBwrQYi452Fek"}},function(e,a,r){"use strict";r(15);var n=r(157),l=r(20);r(11),r(137),r(4),r(23),r(24),r(17),r(64),r(75),r(818),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(11),r(42),r(137),r(4),r(436),r(319),r(22),r(23),r(57),r(24),r(17),r(64),r(75),r(818);var o=l(r(315)),u=l(r(43));r(41);var c=l(r(44)),s=l(r(36)),i=l(r(37)),f=l(r(55)),d=l(r(56)),p=l(r(51)),m=n(r(0)),v=l(r(1)),h=l(r(26)),E=l(r(135)),y=r(186),g=l(r(966)),b=l(r(787)),S=l(r(984)),_=r(815);function O(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,p.default)(e);if(t){var n=(0,p.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,d.default)(this,a)}}var C=function(e){(0,f.default)(r,e);var a=O(r);function r(e){var n;(0,s.default)(this,r),(n=a.call(this,e)).getSliderMax=function(e){return e?(0,h.default)(n.valueSchema,"properties.".concat(e,".properties.volume.sliderMax"),2048):(0,h.default)(n.valueSchema,"properties.volume.sliderMax",2048)},n.onChange=function(e){var a=(0,_.validateStorage)(e,{app_id:n.props.app_id,nodeRole:n.state.nodeRole,max:n.max,oldStorage:n.oldStorage}).message,r=void 0===a?"":a,l=parseFloat(e);l0&&e.trim().startsWith("0")?n.setState({storage:e.replace(/^0*/,""),errorMessage:r}):n.setState({storage:e,errorMessage:r})},n.onRoleChange=function(e){var t=n.props.storages,a=(void 0===t?{}:t)[e]||{};n.oldStorage=a,n.max="zookeeper"===e?100:2048,n.setState({nodeRole:e,storage:a});var r=n.getSliderMax(e);n.max=r},n.onOk=(0,c.default)(u.default.mark((function e(){var t,a,r,l,o;return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!n.state.errorMessage){e.next=2;break}return e.abrupt("return");case 2:return t=n.props,a=t.workspace,r=t.namespace,l=t.cluster,o=t.cluster_id,e.next=5,n.props.store.updateStorage({workspace:a,namespace:r,cluster:l,cluster_id:o,storage:n.state.storage,nodeRole:n.state.nodeRole});case 5:n.props.onOk();case 6:case"end":return e.stop()}}),e)}))),n.onCancel=function(){n.setState({categoryId:""}),n.props.onCancel()},n.generateMarks=function(){for(var e=parseInt((n.max-n.min)/4,10),t={},a=0;a<4;a++){var r=n.min+a*e;t[r]=0===r?r:r+"Gi"}return t[n.max]=n.max+"Gi",t};var l=e.storage,o=e.storages,i=e.nodes,f=e.app_id;n.valueSchema=(0,E.default)(_.ValuesSchema[f]),n.roleOptions=(0,_.getNodeRoleOptions)(f,"storage").filter((function(e){var t=e.value;return!i||i[t]>0}));var d=(0,h.default)(n.roleOptions,"[0].value");return n.state={nodeRole:d,storage:o?o[d]:l,errorMessage:""},n.min=1,n.max=o?n.getSliderMax(d):n.getSliderMax(),n.oldStorage=n.state.storage,n}return(0,i.default)(r,[{key:"render",value:function(){var e=this,a=Object.assign({},this.props),r=this.state,n=r.storage,l=r.errorMessage,u=r.nodeRole,c={storage:n},s=l?{message:l}:null;return m.default.createElement(b.default,(0,o.default)({width:600,footerClassName:S.default.footer},a,{onOk:this.onOk,onCancel:this.onCancel}),m.default.createElement(y.Alert,{className:S.default.alert,type:"warning",message:t("DATABASE_OPERATION_WARNING")}),m.default.createElement(y.Form,{className:S.default.form,data:c,ref:function(t){e.formRef=t}},u&&m.default.createElement(y.Form.Item,{label:t("NODE_ROLE")},m.default.createElement(y.Select,{name:"nodeRole",value:u,defaultValue:u,options:this.roleOptions,onChange:this.onRoleChange})),m.default.createElement(y.Form.Item,{label:t("VOLUME"),error:s},m.default.createElement(g.default,{max:this.max,marks:this.generateMarks(),value:this.state.storage,unit:"Gi",onChange:this.onChange,withInput:!0}))))}}]),r}(m.Component);a.default=C,C.propTypes={storage:v.default.string,onOk:v.default.func,onCancel:v.default.func},C.defaultProps={storage:"10Gi",onOk:function(){},onCancel:function(){}}},function(e,a,r){"use strict";var n=r(157),l=r(20);r(12),r(109),r(5),r(11),r(6),r(84),r(18),r(137),r(9),r(13),r(10),r(4),r(23),r(24),r(17),r(85),r(64),r(75),r(818),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(109),r(45),r(5),r(11),r(6),r(84),r(18),r(28),r(42),r(137),r(34),r(15),r(9),r(13),r(10),r(4),r(436),r(22),r(23),r(57),r(24),r(17),r(85),r(64),r(75),r(818),r(7);var o=l(r(315)),u=l(r(30)),c=l(r(43));r(41);var s=l(r(44)),i=l(r(36)),f=l(r(37)),d=l(r(55)),p=l(r(56)),m=l(r(51)),v=n(r(0)),h=l(r(1)),E=r(186),y=l(r(26)),g=l(r(966)),b=l(r(787)),S=l(r(1199)),_=l(r(984)),O=r(815);function C(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function T(e){for(var t=1;te&&![O.RadonDBAppId.MySQL,O.RadonDBAppId.PostgreSQL,O.RadonDBAppId.RedisCluster,O.RadonDBAppId.RedisSentinel,O.RadonDBAppId.MongoDB,O.RadonDBAppId.Elasticsearch,O.RadonDBAppId.OpenSearch].includes(n.props.app_id)&&(a=t("CANNOT_REDUCE_DATABASE_NODES")),""===e&&(a=t("ENTER_POSITIVE_INTEGER_DESC")),n.setState({shardsCount:e,errorMessage:a})},n.onOk=(0,s.default)(c.default.mark((function e(){var t,a,r,l,o,u,s,i,f,d,p;return c.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=n.props,a=t.workspace,r=t.namespace,l=t.cluster,o=t.cluster_id,u=n.state,s=u.specifications,i=u.nodeRole,f=u.errorMessage,d=u.storageErrorMessage,p=u.storage,!f&&!d){e.next=4;break}return e.abrupt("return");case 4:return e.next=6,n.props.store.updateShardsCount({workspace:a,namespace:r,cluster:l,cluster_id:o,shardsCount:n.state.shardsCount,nodeRole:i,specifications:s,storage:p});case 6:n.props.onOk(n.oldShardsCount>n.state.shardsCount);case 7:case"end":return e.stop()}}),e)}))),n.onCancel=function(){n.props.onCancel()},n.onRoleChange=function(e){var t=n.props,a=t.nodes,r=void 0===a?{}:a,l=t.specificationsObject,o=void 0===l?{}:l,u=t.storages,c=void 0===u?{}:u,s=t.app_id;switch(n.oldShardsCount=r[e],s){case O.RadonDBAppId.Elasticsearch:n.input.range="kibana"===e?{min:0,max:8}:{min:0===n.oldShardsCount?n.oldShardsCount:1,max:200};break;case O.RadonDBAppId.RedisCluster:n.input.range="proxy"===e?{min:0,max:50}:{min:3,max:50};break;case O.RadonDBAppId.Kafka:n.input="zookeeper"===e?{type:"select",title:"NODE_COUNT",description:" ",options:[1,3,5,7,9].map((function(e){return{label:e,value:e}}))}:{type:"integer",title:"NODE_COUNT",range:{min:1,max:100},showFunc:!0};break;case O.RadonDBAppId.OpenSearch:n.input.range="dashboard"===e?{min:0,max:8}:"logstash"===e?{min:0,max:10}:{min:0===n.oldShardsCount?n.oldShardsCount:1,max:200}}var i=o[e]||{},f=i.cpu,d=i.memory;n.setSpecificationsOptions(e);var p=c[e]||{};n.setState({nodeRole:e,shardsCount:r[e],specifications:"".concat(f,", ").concat(d),storage:p,errorMessage:""})},n.onSpecificationsChange=function(e){n.setState({specifications:e})},n.onStorageChange=function(e){var t=(0,O.validateStorage)(e,{app_id:n.props.app_id}).message,a=void 0===t?"":t,r=parseFloat(e);e&&r>0&&e.trim().startsWith("0")?n.setState({storage:e.replace(/^0*/,""),storageErrorMessage:a}):n.setState({storage:e,storageErrorMessage:a})};var l=e.shardsCount,o=e.nodes,u=e.specificationsObject,f=e.storages,d=e.storage,p=e.app_id;n.roleOptions=(0,O.getNodeRoleOptions)(p,"node").map((function(e){return T(T({},e),{},{disabled:void 0===(0,y.default)(o,e.value)})}));var m=(0,y.default)(n.roleOptions,"[0].value",""),v=(u||{})[m]||{},h=v.cpu,E=v.memory;switch(n.state={shardsCount:o?o[m]:l,specifications:"".concat(h||n.props.cpu,", ").concat(E||n.props.memory),storage:f?f[m]:d,nodeRole:m,errorMessage:"",storageErrorMessage:""},p){case O.RadonDBAppId.ClickHouse:n.input={type:"integer",title:"SHARD_COUNT",description:"SHARDS_DESC",range:{min:1,max:100},showFunc:!0};break;case O.RadonDBAppId.MySQL:n.input={type:"select",title:"NODE_COUNT",description:"MYSQL_NODES_DESC",options:[2,3,5].map((function(e){return{label:e,value:e}}))};break;case O.RadonDBAppId.PostgreSQL:n.input={type:"integer",title:"DATA_NODE_COUNT",range:{min:2,max:8},showFunc:!0};break;case O.RadonDBAppId.RedisCluster:n.input={type:"integer",title:"NODE_COUNT",range:{min:3,max:50},showFunc:!0};break;case O.RadonDBAppId.RedisSentinel:n.input={type:"select",title:"NODE_COUNT",description:"REDIS_SENTINEL_NODES_DESC",options:[3,5,7].map((function(e){return{label:e,value:e}}))};break;case O.RadonDBAppId.MongoDB:n.input={type:"select",title:"NODE_COUNT",description:"MONGODB_NODES_DESC",options:[1,3,5,7].map((function(e){return{label:e,value:e}}))};break;case O.RadonDBAppId.Elasticsearch:n.input={type:"integer",title:"NODE_COUNT",range:{min:0===n.oldShardsCount?n.oldShardsCount:1,max:200},showFunc:!0};break;case O.RadonDBAppId.Kafka:n.input={type:"integer",title:"NODE_COUNT",range:{min:3,max:100},showFunc:!0};break;case O.RadonDBAppId.OpenSearch:n.input={type:"integer",title:"NODE_COUNT",range:{min:0===n.oldShardsCount?n.oldShardsCount:1,max:200},showFunc:!0};break;default:n.input={range:{}}}return n.setSpecificationsOptions(m),n.oldShardsCount=n.state.shardsCount,n}return(0,f.default)(r,[{key:"setSpecificationsOptions",value:function(e){this.specificationsOptions=this.props.specificationsObject?O.SpecificationOptionsObject[this.props.app_id][e]:O.SpecificationOptionsObject[this.props.app_id]||O.SpecificationsOptions}},{key:"render",value:function(){var e=Object.assign({},this.props),a=this.input,r=a.description,n=a.type,l=a.title,u=a.options,c=a.range,s=a.showFunc,i=this.state,f=i.errorMessage,d=i.nodeRole,p=i.shardsCount,m=i.storageErrorMessage,h=f?{message:f}:null,y=m?{message:m}:null,O=0===this.oldShardsCount&&0!==this.state.shardsCount,C=O&&!["kibana","proxy","dashboard","logstash"].includes(d);return v.default.createElement(b.default,(0,o.default)({width:600,footerClassName:_.default.footer},e,{onOk:this.onOk,onCancel:this.onCancel}),v.default.createElement(E.Alert,{className:_.default.alert,type:"warning",message:t("DATABASE_OPERATION_WARNING")}),v.default.createElement(E.Form,{className:_.default.form},d&&v.default.createElement(E.Form.Item,{label:t("NODE_ROLE")},v.default.createElement(E.Select,{name:"nodeRole",value:d,defaultValue:d,options:this.roleOptions,onChange:this.onRoleChange})),v.default.createElement(E.Form.Item,{label:t(l),desc:r?t(r):t("NODE_COUNT_DESC",{min:c.min,max:c.max}),error:h},"select"===n?v.default.createElement(E.Select,{value:p,defaultValue:p,onChange:this.handleChange,options:u.map((function(e){return T(T({},e),{},{label:"number"==typeof e.label?e.label:t(e.label)})}))}):v.default.createElement(S.default,{value:p,onChange:this.handleChange,min:c.min,max:c.max,showFunc:s,integer:!0})),O&&v.default.createElement(E.Form.Item,{label:t("RESOURCES"),desc:t("RESOURCES_DESC")},v.default.createElement(E.Select,{name:"specifications",value:this.state.specifications,defaultValue:this.state.specifications,options:this.specificationsOptions,onChange:this.onSpecificationsChange})),C&&v.default.createElement(E.Form.Item,{label:t("VOLUME"),error:y},v.default.createElement(g.default,{max:2048,marks:{0:"0",512:"512 Gi",1024:"1024 Gi",1536:"1536 Gi",2048:"2048 Gi"},value:this.state.storage,unit:"Gi",onChange:this.onStorageChange,withInput:!0}))))}}]),r}(v.Component);a.default=D,D.propTypes={specificationsObject:h.default.object,shardsCount:h.default.number,onOk:h.default.func,onCancel:h.default.func,app_id:h.default.string},D.defaultProps={shardsCount:1,onOk:function(){},onCancel:function(){}}},function(e,t,a){e.exports={withUnit:"_3MkVmyFjamQAHbMfqPEKDP",funcContainer:"_ptAO3HqFm-oaIp8hrkii",func:"_2Z8YdS1HCE46ycS48Ju1fF"}},function(e,a,r){"use strict";var n=r(157),l=r(20);r(12),r(5),r(11),r(6),r(18),r(137),r(9),r(13),r(10),r(4),r(23),r(17),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(45),r(5),r(11),r(6),r(18),r(28),r(42),r(137),r(34),r(15),r(9),r(13),r(10),r(4),r(436),r(22),r(23),r(57),r(17),r(7);var o=l(r(315)),u=l(r(30)),c=l(r(43));r(41);var s=l(r(44)),i=l(r(36)),f=l(r(37)),d=l(r(55)),p=l(r(56)),m=l(r(51)),v=n(r(0)),h=l(r(1)),E=r(186),y=l(r(26)),g=l(r(787)),b=l(r(984)),S=r(815);function _(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function O(e){for(var t=1;t0}));var f=(0,y.default)(t.roleOptions,"[0].value",""),d=l[f]||{},p=d.cpu,m=d.memory;return t.state={specifications:"".concat(p||e.cpu,", ").concat(m||e.memory),nodeRole:f},t.setSpecificationsOptions(f),t}return(0,f.default)(r,[{key:"setSpecificationsOptions",value:function(e){var t=this,a=this.props.app_id;this.specificationsOptions=this.props.specificationsObject?S.SpecificationOptionsObject[a][e]:S.SpecificationOptionsObject[a]||S.SpecificationsOptions,a!==S.RadonDBAppId.RedisCluster&&a!==S.RadonDBAppId.RedisSentinel||(this.specificationsOptions=this.specificationsOptions.map((function(a){var r=(0,S.getCpuAndMemoryFromSpecifications)(a.value),n=r.cpu,l=r.memory,o=(0,y.default)(t.props,'specificationsObject["'.concat(e,'"]'),t.props);return O(O({},a),{},{disabled:parseFloat(n)-1}))},n.onOk=function(){var e=n.props,a=e.action,r=e.detail,l=n.checkDatabase("permission",n.state.detail.permission,M({},n.state.detail));n.formRef.current.validate((0,i.default)(s.default.mark((function e(){var o;return s.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!a){e.next=15;break}if(e.prev=1,o=n.getEmptyResourceNameRuleIndexes(),n.setState({emptyResourceNameRuleIndexes:o}),!(o.length>0)){e.next=6;break}return e.abrupt("return");case 6:return e.next=8,a(M(M({},n.props),{},{user:l,oldUser:r}));case 8:e.next=15;break;case 10:return e.prev=10,e.t0=e.catch(1),e.t0.message&&T.default.error({content:"".concat(t(e.t0.message))}),n.props.onCancel(),e.abrupt("return");case 15:n.props.onOk();case 16:case"end":return e.stop()}}),e,null,[[1,10]])}))))},n.customNameValidator=function(e,t){return n.props.nameReplicationValidator(t,(0,b.default)(n.props,"detail.name"))},n.getFormItems=function(e){return e.map((function(e){var a=e.name,r=e.type,l=e.label,o=e.description,u=e.rules,s=void 0===u?[]:u,i=e.options,f=e.range,d=e.disabled,p="name"===a?[].concat((0,c.default)(s),[{required:!0,validator:n.customNameValidator,message:t("USERNAME_EXISTS")}]):s;switch(r){case"text":return E.default.createElement(C.Form.Item,{key:a,label:t(l),desc:t(o),rules:p||[]},E.default.createElement(C.Input,{name:a,maxLength:f&&f.max?f.max:-1,disabled:d}));case"password":return E.default.createElement(C.Form.Item,{key:a,label:t(l),desc:t(o),rules:p||[]},E.default.createElement(C.InputPassword,{name:a,innerRef:n.passwordRef,maxLength:f&&f.max?f.max:-1,disabled:d}));case"textArea":return E.default.createElement(C.Form.Item,{key:a,label:t(l),desc:t(o),rules:p},E.default.createElement(C.TextArea,{maxLength:256,name:a,disabled:d}));case"select":return E.default.createElement(C.Form.Item,{key:a,label:t(l),desc:t(o),rules:p},E.default.createElement(C.Select,{disabled:d,name:a,options:i}));default:return null}}))},n.onPermissionRuleChange=function(e,t){if(t){var a=n.state.detail.permissionRules;(0,S.default)(a,t,e)}},n.onKafkaUserConfigChange=function(e,t){if(t){var a=n.state.detail.kafkaUserConfig;""===e?(0,_.default)(a,t):(0,S.default)(a,t,e)}},n.addPermissionRule=function(){var e=n.state.detail.permissionRules||[];n.setState({detail:M(M({},n.state.detail),{},{permissionRules:[].concat((0,c.default)(e),[JSON.parse(A.DefaultPermissionRuleString)])})})},n.deletePermissionRule=function(e){var t=n.state.detail.permissionRules||[];t.splice(e-1,1);var a=n.getEmptyResourceNameRuleIndexes(t);n.setState({detail:M({},n.state.detail),emptyResourceNameRuleIndexes:a})};var l=[k.RadonDBAppId.RedisCluster,k.RadonDBAppId.RedisSentinel].includes(e.app_id);return n.state={detail:(0,g.default)((0,y.toJS)(e.detail))||{name:"",password:"",network:"::/0",database:"*",permission:l?"~* &* +@all":"General",host:"%",authentication:"tls",authorization:"simple",permissionRules:e.app_id===k.RadonDBAppId.Kafka?[JSON.parse(A.DefaultPermissionRuleString)]:[],kafkaUserConfig:(e.app_id,k.RadonDBAppId.Kafka,{})},emptyResourceNameRuleIndexes:[],showAuthenticationAlert:e.authentication&&e.authentication!==(0,b.default)(e,"detail.authentication","tls")},n}return(0,p.default)(r,[{key:"componentDidMount",value:function(){var e=this;this.timer=setTimeout((function(){var t=e.passwordRef.current;t&&(t.value=(0,b.default)(e.props,"detail.password",""))}),200)}},{key:"componentWillUnmount",value:function(){this.timer&&clearTimeout(this.timer)}},{key:"renderOtherItems",value:function(e){var a=this;if(e===k.RadonDBAppId.Kafka){var r=this.state.detail,n=r.permissionRules,l=void 0===n?[]:n,o=r.kafkaUserConfig,u=void 0===o?{}:o;return E.default.createElement("div",null,E.default.createElement("div",{className:N.default.otherItems,key:"PermissionRule"},l.map((function(e,t){return E.default.createElement(I.default,{key:"".concat(JSON.stringify(e)).concat(t),permissionRule:e,index:t+1,isEmptyError:a.state.emptyResourceNameRuleIndexes.includes(t),onChange:a.onPermissionRuleChange,canDelete:l.length>1,onDelete:a.deletePermissionRule})})),E.default.createElement("div",{className:N.default.addRuleRow},E.default.createElement("div",null,E.default.createElement(C.Icon,{name:"information",size:16}),E.default.createElement("span",null,t("PERMISSION_RULE_DESC"))),E.default.createElement(C.Button,{onClick:this.addPermissionRule},t("ADD")))),E.default.createElement(R.default,null,E.default.createElement(P.default,{kafkaUserConfig:u,onChange:this.onKafkaUserConfigChange})))}return null}},{key:"render",value:function(){var e=this.props,a=e.app_id,r=e.authentication,n=void 0===r?"":r,l=(0,u.default)(e,["app_id","authentication"]),c=[A.UserName,A.Password];switch(a){case k.RadonDBAppId.ClickHouse:c=A.CKAccount;break;case k.RadonDBAppId.PostgreSQL:c=(0,A.getPGAccount)(!!this.props.detail);break;case k.RadonDBAppId.MySQL:c=A.MySQLAccount;break;case k.RadonDBAppId.RedisCluster:case k.RadonDBAppId.RedisSentinel:c.push({name:"permission",label:"PERMISSIONS",type:"text",description:"ACL_DESC"});break;case k.RadonDBAppId.Kafka:c=A.KafkaAccount}if(this.props.detail){var s=(c=(0,g.default)(c)).find((function(e){return"name"===e.name}));s&&(s.disabled=!0)}return E.default.createElement(D.default,(0,o.default)({width:610,footerClassName:N.default.footer},l,{onOk:this.onOk}),this.state.showAuthenticationAlert&&E.default.createElement(C.Alert,{className:N.default.alert,type:"warning",message:t("AUTHENTICATION_MODE_INCORRECT_ALERT",{cluster:n.toUpperCase(),user:this.state.detail.authentication.toUpperCase()})}),E.default.createElement(C.Form,{className:N.default.form,data:this.state.detail,ref:this.formRef,onChange:this.checkDatabase},this.getFormItems(c),this.renderOtherItems(a)))}}]),r}(E.Component);a.default=j,j.propTypes={detail:O.default.object,onOk:O.default.func,onCancel:O.default.func},j.defaultProps={onOk:function(){},onCancel:function(){}}},function(e,a,r){"use strict";var n=r(20);r(12),r(5),r(11),r(6),r(18),r(9),r(13),r(10),r(4),r(23),r(17),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var l=n(r(30)),o=n(r(246)),u=n(r(36)),c=n(r(37)),s=n(r(55)),i=n(r(56)),f=n(r(51));r(12),r(45),r(5),r(11),r(6),r(18),r(28),r(191),r(42),r(159),r(34),r(15),r(9),r(13),r(10),r(4),r(23),r(57),r(17),r(7);var d=n(r(0)),p=n(r(26)),m=n(r(74)),v=n(r(3)),h=r(186),E=n(r(3221));function y(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function g(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,f.default)(e);if(t){var n=(0,f.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,i.default)(this,a)}}var b=["Read","Write","Delete","Alter","Describe","All","IdempotentWrite","ClusterAction","Create","AlterConfigs","DescribeConfigs"].map((function(e){return{label:e,value:e}})),S=function(e){(0,s.default)(r,e);var a=g(r);function r(e){var n;return(0,u.default)(this,r),(n=a.call(this,e)).handleDetele=function(){n.props.onDelete(n.props.index)},n.onChange=function(e){return function(t){var a=n.props,r=a.index,u=void 0===r?1:r,c=a.onChange;"object"===(0,o.default)(t)&&(t=t.target.value),(0,m.default)(n.state.permissionRule,e,t),n.setState(function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.workspace,a=e.cluster,r=e.namespace;return(0,_.getManifestApi)({workspace:t,cluster:a,namespace:r})},(0,c.default)(e,"fetchDetail",o,(0,f.default)(e)),e}return(0,i.default)(r,[{key:"deploy",value:(t=(0,u.default)(n.default.mark((function e(t,a){var r,l,o,u,c,s,i,f,d,p;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=a.workspace,l=a.namespace,o=a.cluster,u=a.restoreParams,c=t.app_id,s=t.name,i=t.conf,f=t.version_id,d=t.description,i.volume&&parseFloat(i.volume)<10&&(i.volume="10Gi"),(p={name:s,description:d,version:1,appVersion:"",customResource:"{}",relatedResources:[]}).appVersion=f,!l){e.next=39;break}e.t0=c,e.next=e.t0===S.RadonDBAppId.ClickHouse?9:e.t0===S.RadonDBAppId.PostgreSQL?11:e.t0===S.RadonDBAppId.MySQL?13:e.t0===S.RadonDBAppId.RedisCluster?16:e.t0===S.RadonDBAppId.RedisSentinel?19:e.t0===S.RadonDBAppId.MongoDB?22:e.t0===S.RadonDBAppId.Elasticsearch?25:e.t0===S.RadonDBAppId.Kafka?28:e.t0===S.RadonDBAppId.OpenSearch?31:34;break;case 9:return p.customResource=(0,S.mergeCKInstallationData)({name:s,valuesJson:i,namespace:l}),e.abrupt("break",35);case 11:return p.customResource=(0,S.mergePGInstallationData)({name:s,valuesJson:i,namespace:l,restoreParams:u}),e.abrupt("break",35);case 13:return p.customResource=(0,S.mergeMySQLInstallationData)({name:s,valuesJson:i,namespace:l,restoreParams:u}),p.relatedResources=[{name:"secret",data:(0,S.getSecretCrd)({name:s,namespace:l})}],e.abrupt("break",35);case 16:return p.customResource=(0,S.mergeRedisClusterInstallationData)({name:s,namespace:l,valuesJson:i}),p.relatedResources=(0,S.getRedisClusterRelatedResources)({name:s,namespace:l,password:i.password,specifications:i.specifications}),e.abrupt("break",35);case 19:return p.customResource=(0,S.mergeRedisSentinelInstallationData)({name:s,namespace:l,valuesJson:i}),p.relatedResources=(0,S.getRedisSentinelRelatedResources)({name:s,namespace:l,password:i.password,specifications:i.specifications}),e.abrupt("break",35);case 22:return p.customResource=(0,S.mergeMongoDBInstallationData)({name:s,namespace:l,valuesJson:i}),p.relatedResources=(0,S.getMongoDBRelatedResources)({name:s,namespace:l}),e.abrupt("break",35);case 25:return p.customResource=(0,S.mergeECKInstallationData)({name:s,namespace:l,valuesJson:i}),p.relatedResources=(0,S.getECKRelatedResources)({name:s,namespace:l,kibanaValues:i.kibana||{}}),e.abrupt("break",35);case 28:return p.customResource=(0,S.mergeKafkaInstallationData)({name:s,namespace:l,valuesJson:i}),p.relatedResources=(0,S.getKafkaRelatedResources)({namespace:l,name:s}),e.abrupt("break",35);case 31:return p.customResource=(0,S.mergeOpenSearchInstallationData)({name:s,namespace:l,valuesJson:i}),p.relatedResources=(0,S.getOpenSearchRelatedResources)({name:s,namespace:l,logstashValues:i.logstash||{},username:i.username,password:i.password}),e.abrupt("break",35);case 34:return e.abrupt("return");case 35:return e.next=37,this.submitting(request.post(this.getUrl({namespace:l,workspace:r,cluster:o}),p));case 37:return e.next=39,this.alertRuleStore.createDefaultAlert(c,{name:s,namespace:l,cluster:o});case 39:case"end":return e.stop()}}),e,this)}))),function(e,a){return t.apply(this,arguments)})}]),r}(b.default),(0,v.default)(l.prototype,"deploy",[h.action],Object.getOwnPropertyDescriptor(l.prototype,"deploy"),l.prototype),o=(0,v.default)(l.prototype,"fetchDetail",[h.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(){var t=(0,u.default)(n.default.mark((function t(a){var r,l,o,u;return n.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=a.app_id,l=(0,y.default)(globals.user,"lang")||(0,E.getBrowserLang)(),e.isLoading=!0,o="/kapis/application.kubesphere.io/v2/apps/".concat(r),t.next=6,request.get(o);case 6:(u=t.sent).abstraction=(0,y.default)(u,"abstraction_".concat(l),u.abstraction),u.description=(0,y.default)(u,"description_".concat(l),u.description),u.screenshots=(0,y.default)(u,"screenshots_".concat(l),u.screenshots),e.detail=u,e.isLoading=!1;case 12:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()}}),l);t.default=C},,,,,,,function(e,a,r){"use strict";r(15);var n=r(20);r(18),r(48),r(16),r(4),r(23),r(24),r(17),r(188),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(18),r(48),r(42),r(16),r(4),r(23),r(57),r(24),r(17),r(188);var l=n(r(36)),o=n(r(37)),u=n(r(55)),c=n(r(56)),s=n(r(51)),i=n(r(0)),f=n(r(26)),d=r(244),p=r(14),m=n(r(243)),v=r(186),h=n(r(942)),E=n(r(1728)),y=n(r(1722)),g=r(52),b=n(r(3237));function S(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,s.default)(e);if(t){var n=(0,s.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,c.default)(this,a)}}var _=v.Tabs.TabPanel,O=function(e){(0,u.default)(r,e);var a=S(r);function r(e){var t;return(0,l.default)(this,r),(t=a.call(this,e)).handleDeploy=function(){t.props.showDeploy()},t.params=(0,d.parse)(location.search.slice(1))||{},t.htmlOrigBgColor="",t.state={tab:"appInfo",selectAppVersion:"",showDeploy:!1},t.appId=t.props.app_id,t.versionStore=new h.default,t}return(0,o.default)(r,[{key:"componentDidMount",value:function(){this.getData()}},{key:"getData",value:function(){var e=this;this.versionStore.fetchList({app_id:this.appId,status:"active"}).then((function(){var t=(0,f.default)(e.versionStore,"list.data[0].version_id","");e.setState({selectAppVersion:t})}))}},{key:"renderDeployButton",value:function(){var e=this.props.appStore.detail,a=(0,g.isAppIsRadonDBAndAuthorized)(e),r=a.isRadondb,n=a.isSupport,l=r&&!n;return i.default.createElement(v.Tooltip,{content:l?i.default.createElement("div",{className:b.default.authorizedTip},i.default.createElement("div",{className:b.default.authorizedTipTitle},i.default.createElement(v.Icon,{name:"information",color:{primary:"#fff",secondary:"#F5A623"}}),i.default.createElement("span",null,t("APP_UNAUTHORIZED"))),i.default.createElement("p",null,t("APP_UNAUTHORIZED_DESC"))):""},i.default.createElement("div",{className:b.default.deployButton},i.default.createElement(v.Button,{onClick:this.handleDeploy,type:"control",disabled:l},t("INSTALL"))))}},{key:"renderContent",value:function(){var e=this.state.tab,a=this.props.appStore.detail,r=this.versionStore.list.data;return i.default.createElement(v.Tabs,{className:"tabs-new",activeName:e,onChange:this.handleTabChange},i.default.createElement(_,{label:t("APP_INFORMATION"),name:"appInfo"},this.renderDeployButton(),i.default.createElement(v.Columns,null,i.default.createElement(v.Column,{className:"is-9"},i.default.createElement(E.default,{app:a,versions:(0,p.toJS)(r)})),i.default.createElement(v.Column,null,i.default.createElement(y.default,{app:a})))))}},{key:"render",value:function(){return i.default.createElement("div",{className:b.default.main},i.default.createElement("div",{className:b.default.content},this.renderContent()))}},{key:"versionOptions",get:function(){return this.versionStore.list.data.map((function(e){var a=e.version_id,r=e.name,n=e.create_time;return{label:r,description:(0,m.default)(n).format(t("YYYY-MM-DD")),value:a}}))}}]),r}(i.default.Component);a.default=O},,,,function(e,t,a){e.exports={content:"F9cCXv2wjuVST_W7U5zvb",deployButton:"_1DTp0_lcWeecxqs_-It4KA",keywords:"_1A3YmiMHk1xXcfQiwW-ykl",deployModal:"_2Ut2mhc56BgtCHaPbBcvrj",authorizedTip:"_1mGVVHb7CDZ80rcKOYpjMH",authorizedTipTitle:"_3WSM1_DidAthIrad3ItYSB"}},function(e,a,r){"use strict";var n=r(20);r(12),r(5),r(11),r(6),r(84),r(48),r(16),r(9),r(13),r(10),r(4),r(23),r(17),r(85),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(45),r(5),r(11),r(6),r(84),r(28),r(48),r(42),r(16),r(34),r(15),r(9),r(13),r(10),r(4),r(22),r(23),r(57),r(24),r(17),r(85),r(64),r(1092),r(7);var l=n(r(43)),o=n(r(30));r(41);var u,c=n(r(44)),s=n(r(58)),i=n(r(36)),f=n(r(37)),d=n(r(55)),p=n(r(56)),m=n(r(51)),v=n(r(0)),h=n(r(26)),E=r(239),y=r(186),g=n(r(942)),b=n(r(3239)),S=n(r(1725)),_=r(52),O=n(r(3240)),C=n(r(3245)),T=n(r(3247)),R=r(815);function D(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function N(e){for(var t=1;te.stepCount?this.handleNext():this.setState({currentStep:t}))}},{key:"componentWillUnmount",value:function(){document.querySelector("html").style.backgroundColor=this.htmlOrigBgColor}},{key:"fixBodyColor",value:function(){var e=document.querySelector("html");this.htmlOrigBgColor=window.getComputedStyle(e).backgroundColor,e.style.backgroundColor="white"}},{key:"getData",value:(a=(0,c.default)(l.default.mark((function e(){var t,a,r;return l.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.versionStore.fetchList({app_id:this.appId,status:"active"});case 2:t=(0,h.default)(this.versionStore,"list.data[0].version_id",""),a=(0,h.default)(this.versionStore,"list.data[0].name",""),r=this.props.appStore.detail.name,this.fileStore.loadRadonDB({app_id:this.appId,restoreParams:this.props.restoreParams}),this.setState({formData:N(N({},this.state.formData),{},{name:"".concat(r.slice(0,7).toLowerCase().replaceAll(" ","-"),"-").concat((0,_.generateId)()),version_id:this.isRadonDB?a:t})});case 7:case"end":return e.stop()}}),e,this)}))),function(){return a.apply(this,arguments)})},{key:"renderForm",value:function(){var e=this.state,t=e.formData,a=e.currentStep,r=this.steps[a],n=r.component,l={formData:t,fromStore:!0,versionStore:this.versionStore,fileStore:this.fileStore,appId:this.appId};return r.isForm?l.formRef=this.formRef:l.ref=this.formRef,v.default.createElement("div",{className:T.default.form},v.default.createElement(n,l))}},{key:"renderControl",value:function(){var e=this.state.currentStep,a=this.steps.length-1;return v.default.createElement("div",{className:T.default.control},e0)){var a=this.props.formData,r=this.state.valuesJSON,n=a.name,l=a.namespace,o=a.app_id,u=r.version,c="";if(o===g.RadonDBAppId.MySQL&&"5.7"===u&&(l.length>16||n.length>14)){if(l.length>16)return c=t("PROJECT_NAME_EXCEEDS_LIMIT"),void h.default.warning({content:c});if(n.length>14)return c=t("APP_NAME_EXCEED_LIMIT"),void h.default.warning({content:c})}this.updateFormData(),e&&e()}}},{key:"renderSchemaForm",value:function(){var e=this.state,t=e.valuesJSON,a=e.valuesSchema;return f.default.createElement("div",{className:S.default.schemaWrapper},f.default.createElement(b.default,{schema:a,value:t,validatorResult:this.validatorResult,formData:this.props.formData}))}},{key:"render",value:function(){return this.state.loadingFile?f.default.createElement(v.Loading,{className:S.default.loading}):f.default.createElement("div",{className:S.default.wrapper},f.default.createElement("div",{className:S.default.title},f.default.createElement("div",null,t("APP_SETTINGS"))),this.renderSchemaForm())}}]),r}(f.default.Component))||l;a.default=O},function(e,a,r){"use strict";var n=r(20);r(12),r(109),r(5),r(187),r(11),r(6),r(84),r(73),r(18),r(97),r(16),r(9),r(13),r(10),r(4),r(316),r(23),r(24),r(17),r(85),r(64),r(75),r(818),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(109),r(45),r(5),r(187),r(11),r(6),r(84),r(73),r(18),r(28),r(97),r(42),r(16),r(34),r(15),r(9),r(13),r(10),r(4),r(316),r(436),r(319),r(23),r(57),r(24),r(193),r(17),r(85),r(64),r(75),r(818),r(7);var l=n(r(61)),o=n(r(246)),u=n(r(315)),c=n(r(30)),s=n(r(36)),i=n(r(37)),f=n(r(55)),d=n(r(56)),p=n(r(51)),m=n(r(0)),v=n(r(1)),h=n(r(1198)),E=n(r(26)),y=n(r(74)),g=n(r(1158)),b=n(r(198)),S=n(r(63)),_=r(186),O=n(r(790)),C=n(r(3)),T=n(r(966)),R=r(14),D=n(r(1199)),N=n(r(3242)),k=n(r(3243));function I(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function P(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:"",r=4,n=parseInt((t-e)/r,10),l={},o=0;o0&&t.trim().startsWith("0")?f.onChange(t.replace(/^0*/,"")):f.onChange(t)}})):"textArea"===a.render?m.default.createElement(_.TextArea,f):"select"===a.render?"volumeType"===r?m.default.createElement(N.default,(0,u.default)({disabled:a.disabled},f,{cluster:e.props.formData.cluster})):m.default.createElement(_.Select,(0,u.default)({},f,{options:(0,R.toJS)(a.options).map((function(e){return P(P({},e),{},{label:"number"==typeof e.label?e.label:t(e.label)})})),disabled:a.disabled})):"password"===a.render?m.default.createElement(_.InputPassword,(0,u.default)({name:a.name,disabled:a.disabled,autoComplete:"new-password",placeholder:a.placeholder?t(a.placeholder):""},f)):m.default.createElement(_.Input,(0,u.default)({},f,{disabled:a.disabled}));break;case"integer":l=m.default.createElement(D.default,(0,u.default)({},f,{integer:!0,min:a.min,max:a.max,showFunc:a.showFunc,disabled:a.disabled,style:{maxWidth:"455px"}}));break;case"boolean":l=m.default.createElement("div",{className:k.default.boolean},m.default.createElement(_.Toggle,(0,u.default)({},f,{defaultChecked:(0,E.default)(s,n,!1)})),m.default.createElement(O.default,{title:a.title,description:a.description}));break;case"alert":l=m.default.createElement(_.Alert,{className:k.default.alert,icon:"information",message:t(a.content)});break;case"array":l=m.default.createElement(m.default.Fragment,null,"todo");break;default:l=m.default.createElement(m.default.Fragment,null)}var d="";"boolean"!==a.type&&(d=a.tooltipContent?m.default.createElement("div",null,m.default.createElement("span",{style:{verticalAlign:"bottom"}},t(a.title)),m.default.createElement(_.Tooltip,{content:t(a.tooltipContent)},m.default.createElement(_.Icon,{size:20,name:"question"}))):t(a.title));var p="integer"===a.type&&"number"==typeof a.min&&"number"==typeof a.max?"".concat(t(a.description||"")).concat(t("VALUE_RANGE_DESC",{min:a.min,max:a.max})):t(a.description),v=(0,E.default)(i,'["'.concat(n.join("."),'"]')),h=(0,E.default)(e.state.value,"[".concat(n.join(".").replace(r,"version"),"]"));return a.forVersion&&a.forVersion instanceof Array&&!a.forVersion.includes(h)?null:m.default.createElement(_.Form.Item,{key:r,className:a.rowExclusive&&!a.halfRow?"row":"",label:d,desc:p,error:v?{message:v}:null},l)},e.renderSchemaForm=function(a){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],u=a.type,c=e.state.value,s="object"===(0,o.default)(a.hidden)?(0,E.default)(c,a.hidden.value,null)===a.hidden.condition:(0,E.default)(c,a.hidden,!1);if(s)return null;if("object"===u){var i=[],f=[];if((0,h.default)(a.properties,(function(t,a){t.advanced?f.push(e.renderSchemaForm(t,a,[].concat((0,l.default)(n),[a]))):i.push(e.renderSchemaForm(t,a,[].concat((0,l.default)(n),[a])))})),(0,S.default)(i)||i.every((function(e){return!e})))return null;var d=a.properties&&(0,g.default)(a.properties,(function(e){return(0,b.default)(e,"properties")}));return m.default.createElement("div",{key:r,className:d?k.default.parentGroup:k.default.group},a.title&&m.default.createElement("div",{className:k.default.titleContainer},a.icon&&m.default.createElement(_.Icon,{name:a.icon,size:20}),m.default.createElement("div",{className:k.default.title},t(a.title))),a.description&&m.default.createElement("p",{className:k.default.description},t(a.description)),i,f.length>0&&m.default.createElement(m.default.Fragment,null,m.default.createElement("div",{className:k.default.advanced,onClick:e.toggleAdvanced},m.default.createElement("span",null,t("ADVANCED_SETTINGS")),m.default.createElement(_.Icon,{name:e.state.showAdvanced?"chevron-up":"chevron-down",size:"20"})),m.default.createElement("div",null)),e.state.showAdvanced&&f,f.length%2==1&&m.default.createElement("div",{className:"form-item"}))}return m.default.createElement(m.default.Fragment,null,e.renderFormItem(a,r,n),a.halfRow&&m.default.createElement("div",{className:"form-item"}))},e}return(0,i.default)(r,[{key:"handleFormChange",value:function(e){this.setState({value:e})}},{key:"render",value:function(){var e=this.props.schema;return this.renderSchemaForm(e)}}]),r}(m.default.Component);a.default=w,w.propTypes={schema:v.default.object,value:v.default.object,onChange:v.default.func,validatorResult:v.default.object,formData:v.default.object},w.defaultProps={onChange:function(){}}},function(e,t,a){"use strict";a(15);var r=a(20);a(5),a(18),a(16),a(4),a(23),a(17),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(45),a(5),a(18),a(42),a(16),a(4),a(23),a(57),a(17);var n=r(a(315)),l=r(a(36)),o=r(a(37)),u=r(a(55)),c=r(a(56)),s=r(a(51)),i=r(a(0)),f=a(186),d=r(a(26));function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,s.default)(e);if(t){var n=(0,s.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,c.default)(this,a)}}var m=function(e){(0,u.default)(a,e);var t=p(a);function a(){var e;(0,l.default)(this,a);for(var r=arguments.length,n=new Array(r),o=0;oa),(0,o.default)(n,m.default.current,r===a),(0,o.default)(n,m.default.pending,r2&&void 0!==arguments[2]?arguments[2]:"",r=4,n=parseInt((t-e)/r,10),l={},o=0;ol?{error:!0,message:t("INVALID_PARTITION_COUNT_DESC",{min:n,max:l})}:{error:!1}},rules:[{required:!0,message:t("PARAM_REQUIRED")}]},{name:"replicas",label:t("REPLICA_COUNT"),type:"number",range:{min:1,max:e.kafkaReplicas},showFunc:!0,description:t("TOPIC_REPLICA_COUNT_DESC"),disabled:!!e.detail,rules:[{required:!0,message:t("PARAM_REQUIRED")}]}],n.advancedItems=[{name:"cleanup.policy",label:"cleanup.policy",type:"select",description:t("CLEANUP_POLICY_DESC"),options:[{label:t("CLEANUP_POLICY_DELETE"),value:"delete"},{label:t("CLEANUP_POLICY_COMPACT"),value:"compact"}]},{name:"min.insync.replicas",label:"min.insync.replicas",type:"number",description:t("MIN_INSYNC_REPLICAS_DESC"),range:{min:1,max:(0,g.default)(n.state.detail,"replicas",1)},showFunc:!0},{name:"unclean.leader.election.enable",label:"unclean.leader.election.enable",type:"select",description:t("UNCLEAN_LEADER_ELECTION_ENABLE_DESC"),options:[{label:t("TRUE"),value:"true"},{label:t("FALSE"),value:"false"}]},{name:"segment.ms",label:"segment.ms",type:"number",description:t("SEGMENT_MS_DESC"),range:{min:864e5},unit:"ms"},{name:"retention.ms",label:"retention.ms",type:"number",description:t("RETENTION_MS_DESC"),range:{min:-1},unit:"ms"},{name:"retention.bytes",label:"retention.bytes",type:"number",description:t("RETENTION_BYTES_DESC"),range:{min:-1},unit:"byte"},{name:"max.message.bytes",label:"max.message.bytes",type:"number",description:t("MAX_MESSAGE_BYTES_DESC"),range:{min:0},unit:"byte"}],n}return(0,d.default)(r,[{key:"render",value:function(){var e=Object.assign({},this.props);return h.default.createElement(_.default,(0,u.default)({width:600,footerClassName:T.default.footer},e,{onOk:this.onOk,onCancel:this.onCancel}),h.default.createElement(y.Form,{className:T.default.form,data:this.state.detail,ref:this.formRef},this.getFormItems(this.formItems),h.default.createElement("div",{className:T.default.advanced,onClick:this.toggleAdvanced},h.default.createElement("span",null,t("ADVANCED_SETTINGS")),h.default.createElement(y.Icon,{name:this.state.showAdvanced?"chevron-up":"chevron-down",size:"20"})),this.state.showAdvanced&&this.getFormItems(this.advancedItems)))}}]),r}(h.Component);a.default=k,k.propTypes={onOk:E.default.func,onCancel:E.default.func,app_id:E.default.string},k.defaultProps={onOk:function(){},onCancel:function(){}}},function(e,a,r){"use strict";r(15);var n=r(157),l=r(20);r(5),r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(42),r(4),r(23),r(57),r(17);var o=l(r(315)),u=l(r(58)),c=l(r(36)),s=l(r(37)),i=l(r(55)),f=l(r(56)),d=l(r(51)),p=n(r(0)),m=l(r(1)),v=r(186),h=l(r(787)),E=l(r(3254));function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,d.default)(e);if(t){var n=(0,d.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,f.default)(this,a)}}var g=function(e){(0,i.default)(r,e);var a=y(r);function r(){var e;(0,c.default)(this,r);for(var t=arguments.length,n=new Array(t),l=0;l1){var n=(0,p.default)(e.props.value,r[0]);return n?(0,v.default)(n,r[1],a):n=(0,l.default)({},r[1],a),void e.triggerChange(g(g({},e.props.value),{},(0,l.default)({},r[0],n)))}e.triggerChange(g(g({},e.props.value),{},(0,l.default)({},t,a)))}},e}return(0,u.default)(r,[{key:"renderFormItems",value:function(e){var t=null;switch(e){case"discover_branches":t=this.renderBranchesFormItems();break;case"discover_pr_from_origin":t=this.renderPrOriginFormItems();break;case"discover_pr_from_forks":t=this.renderPrForkFormItems();break;default:t=this.renderTagBranchesFormItems()}return t}},{key:"renderTagBranchesFormItems",value:function(){var e=this.props.value;return f.default.createElement("div",null,f.default.createElement(h.Form.Item,{label:t("STRATEGY")},f.default.createElement(h.Select,{name:"discover_tags",defaultValue:e.discover_tags,onChange:this.handleChange("discover_tags"),options:[{label:t("ENABLE_TAG_BRANCH_DISCOVERY"),value:!0},{label:t("DISABLE_TAG_BRANCH_DISCOVERY"),value:!1}]})))}},{key:"renderBranchesFormItems",value:function(){var e=this.props.value;return f.default.createElement("div",null,f.default.createElement(h.Form.Item,{label:t("STRATEGY")},f.default.createElement(h.Select,{name:"discover_branches",defaultValue:e.discover_branches,onChange:this.handleChange("discover_branches"),options:[{label:t("EXCLUDE_PR_BRANCHES"),value:1},{label:t("ONLY_PR_BRANCHES"),value:2},{label:t("ALL_BRANCHES"),value:3}]})))}},{key:"renderPrOriginFormItems",value:function(){var e=this.props.value;return f.default.createElement("div",null,f.default.createElement(h.Form.Item,{label:t("PULL_STRATEGY")},f.default.createElement(h.Select,{name:"discover_pr_from_origin",defaultValue:e.discover_pr_from_origin,onChange:this.handleChange("discover_pr_from_origin"),options:[{label:t("OPTIONS_PR_PARAMS_1"),value:1},{label:t("OPTIONS_PR_PARAMS_2"),value:2},{label:t("OPTIONS_PR_PARAMS_3"),value:3}]})))}},{key:"renderPrForkFormItems",value:function(){var e=this.props.value;return f.default.createElement("div",null,f.default.createElement(h.Columns,null,f.default.createElement(h.Column,null,f.default.createElement(h.Form.Item,{label:t("PULL_STRATEGY")},f.default.createElement(h.Select,{name:"discover_pr_from_forks.strategy",defaultValue:e.discover_pr_from_forks&&e.discover_pr_from_forks.strategy,onChange:this.handleChange("discover_pr_from_forks.strategy"),options:[{label:t("OPTIONS_PR_PARAMS_1"),value:1},{label:t("OPTIONS_PR_PARAMS_2"),value:2},{label:t("OPTIONS_PR_PARAMS_3"),value:3}]}))),f.default.createElement(h.Column,null,f.default.createElement(h.Form.Item,{label:t("TRUSTED_USERS")},f.default.createElement(h.Select,{name:"discover_pr_from_forks.trust",defaultValue:e.discover_pr_from_forks&&e.discover_pr_from_forks.trust,onChange:this.handleChange("discover_pr_from_forks.trust"),options:[{label:t("CONTRIBUTORS"),value:1},{label:t("EVERYONE"),value:2},{label:t("USERS_WITH_PERMISSION"),value:3},{label:t("NOBODY"),value:4}]})))))}},{key:"render",value:function(){var e=this.props,a=e.value,r=e.onDelete,n=e.menuData,l=Object.keys(a)[0];return f.default.createElement("div",{className:E.default.itemWrapper},f.default.createElement("div",{className:E.default.itemTitle},f.default.createElement("p",null,f.default.createElement("strong",null,t(n[l].replace(/\s/g,"_").toUpperCase()))),f.default.createElement(h.Button,{className:E.default.delete,type:"flat",icon:"trash",onClick:r})),l&&this.renderFormItems(l))}}]),r}(f.default.Component);a.default=S,S.propTypes={value:d.default.object,onChange:d.default.func,onDelete:d.default.func},S.defaultProps={value:{},onChange:function(){},onDelete:function(){}}},function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(11),r(18),r(16),r(10),r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(11),r(18),r(42),r(448),r(16),r(10),r(4),r(23),r(57),r(17);var l=n(r(61)),o=n(r(36)),u=n(r(37)),c=n(r(55)),s=n(r(56)),i=n(r(51)),f=n(r(63)),d=n(r(60)),p=n(r(26)),m=n(r(74)),v=n(r(0)),h=n(r(1)),E=r(186),y=r(72),g=n(r(3263)),b=n(r(1732));function S(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,i.default)(e);if(t){var n=(0,i.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,s.default)(this,a)}}var _=function(e){(0,c.default)(r,e);var a=S(r);function r(){var e;(0,o.default)(this,r);for(var t=arguments.length,n=new Array(t),u=0;u=0;a--)if(!(0,S.default)(e[a])&&e[a].indexOf("Finished")>-1)return void(t=!0);if(t)clearInterval(n.refresh),n.refresh=null;else{var r=n.props.params;n.props.store.getRepoScanLogs(r)}},n.handleFetch=(0,s.default)(l.default.mark((function e(){var a;return l.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=n.props.params,e.next=3,n.props.handleScanRepository();case 3:return e.next=5,n.props.store.getRepoScanLogs(a);case 5:y.default.success({content:t("LOGS_OBTAINED_SUCCESSFULLY")});case 6:case"end":return e.stop()}}),e)}))),n.handleDownloadLogs=function(){var e=n.props.store.repositoryLog;n.props.store.saveAsFile(e,"log.txt")},n.formRef=v.default.createRef(),n.refresh=setInterval((function(){n.refreshHandler()}),4e3),n}return(0,f.default)(r,[{key:"componentDidMount",value:function(){var e=this.props.params;this.props.store.getRepoScanLogs(e)}},{key:"componentDidUpdate",value:function(e){if(!e.visible&&this.props.visible){var t=this.props.params;this.props.store.getRepoScanLogs(t)}}},{key:"componentWillUnmount",value:function(){clearInterval(this.refresh)}},{key:"render",value:function(){var e=this.props,a=e.visible,r=e.onCancel,n=this.props.store.repositoryLog;return v.default.createElement(_.default,{width:1160,onCancel:r,visible:a,closable:!1,title:t("REPOSITORY_SCAN_LOGS"),cancelText:t("CLOSE")},v.default.createElement("div",{className:O.default.content},v.default.createElement("div",{className:O.default.btn_group},v.default.createElement(E.Icon,{name:"human",size:20}),this.startBy,v.default.createElement(E.Button,{onClick:this.handleDownloadLogs},t("DOWNLOAD")),v.default.createElement(E.Button,{onClick:this.handleFetch},t("RESCAN"))),v.default.createElement("pre",{className:O.default.pre},n)))}},{key:"startBy",get:function(){var e=this.props.store.repositoryLog.split("\n"),a=(0,b.default)(e,"[0]",""),r=a.match(/^Started by (user )?(.*)?/)||[],n=r[1],l=r[2];return a&&n?t("STARTED_BY_NAME",{name:l}):a&&!n?t("STARTED_BY_NAME",{name:t(l)}):t("STARTED_BY_NAME",{name:"-"})}}]),r}(v.default.Component),u.propTypes={name:h.default.string,branches:h.default.array},u.defaultProps={branches:[],visible:!1,onOk:function(){},onCancel:function(){}},o=c))||o;a.default=T},function(e,t,a){e.exports={content:"_1TtDoHIK3aC3dRiBhRTT0F",btn_group:"_1iXbGXD3S6h6qcpzVlnDq1",pre:"_8f1VfuEP3pLkfRwcKptfp"}},function(e,t,a){"use strict";a(15);var r=a(20);Object.defineProperty(t,"__esModule",{value:!0}),t.PIPELINE_CREATE_STEPS_OLD=t.PIPELINE_CREATE_STEPS=t.PIPELINE_PROJECT_CREATE_STEPS=void 0;var n=r(a(1730)),l=r(a(3325)),o=r(a(3327)),u=r(a(3333)),c=r(a(3334)),s=[{title:"BASIC_INFORMATION",component:l.default,icon:"cdn",required:!0},{title:"ADVANCED_SETTINGS",component:n.default,required:!0}];t.PIPELINE_PROJECT_CREATE_STEPS=s;var i=[{title:"SELECT_TEMPLATE",component:o.default,required:!0},{title:"PARAMETER_CONFIG",component:u.default,required:!0,icon:"slider"}];t.PIPELINE_CREATE_STEPS=i;var f=[{title:"SELECT_TEMPLATE",component:o.default,required:!0},{title:"PARAMETER_CONFIG",component:c.default,required:!0,icon:"slider"}];t.PIPELINE_CREATE_STEPS_OLD=f},function(e,a,r){"use strict";r(15);var n=r(20);r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(42),r(4),r(23),r(57),r(17);var l=n(r(36)),o=n(r(37)),u=n(r(55)),c=n(r(56)),s=n(r(51)),i=r(186),f=n(r(26)),d=n(r(74)),p=n(r(0)),m=r(52),v=r(72),h=r(916),E=r(903),y=n(r(1200)),g=n(r(3326));function b(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,s.default)(e);if(t){var n=(0,s.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,c.default)(this,a)}}var S=function(e){(0,u.default)(r,e);var a=b(r);function r(e){var n;(0,l.default)(this,r),(n=a.call(this,e)).validator=function(e,a,r){if(!a)return r();n.props.store.checkPipelineName({name:a,cluster:n.props.cluster,devops:n.props.devops},(0,h.compareVersion)(n.ksVersion,"3.4.0")<0).then((function(a){if(a.exist)return r({field:e.field,message:t("NAME_EXIST_DESC")});r()}))};var o=e.formTemplate;return n.state={type:(0,f.default)(o,"multi_branch_pipeline",null)?1:0},n}return(0,o.default)(r,[{key:"render",value:function(){var e=this,a=this.props,r=a.formRef,n=a.formTemplate,l=a.devops,o=a.cluster;return p.default.createElement(i.Form,{ref:r,data:n,className:g.default.from},p.default.createElement(i.Columns,null,p.default.createElement(i.Column,null,p.default.createElement(i.Form.Item,{label:t("NAME"),desc:t("NAME_DESC"),rules:[{required:!0,message:t("NAME_EMPTY_DESC")},{pattern:v.PATTERN_NAME,message:t("INVALID_NAME_DESC")},{validator:this.validator}]},p.default.createElement(i.Input,{name:"name",maxLength:63})),p.default.createElement(i.Form.Item,{label:t("DESCRIPTION"),desc:t("DESCRIPTION_DESC")},p.default.createElement(i.TextArea,{name:"description",maxLength:256}))),p.default.createElement(i.Column,null,p.default.createElement(i.Form.Item,{label:t("DEVOPS_PROJECT"),desc:t("PIPELINE_CREATE_DEVOPS_PROJECT_DESC")},p.default.createElement("div",{name:"devopsName",className:"disabled-input"},(0,m.showNameAndAlias)(null==n?void 0:n.devopsName,"devops"))))),p.default.createElement("div",{className:"form-item"},p.default.createElement("label",{className:"form-item-label"},t("PIPELINE_TYPE")),p.default.createElement(E.TypeSelect,{value:this.state.type,onChange:function(t){e.setState({type:t}),(0,d.default)(n,"multi_branch_pipeline",void 0)},name:"pipeline-type",options:[{label:t("PIPELINE_PL"),value:0,icon:"branch",description:t("BRANCH_PIPELINE_DESC")},{label:t("MULTI_BRANCH_PIPELINE"),value:1,icon:"branch",description:t("MULTI_BRANCH_PIPELINE_DESC")}]})),1===this.state.type&&p.default.createElement(i.Form.Item,{label:t("CODE_REPOSITORY_OPTIONAL"),rules:[{required:!0,message:t("CODE_REPOSITORY_REQUIRED_DESC")}]},p.default.createElement(y.default,{name:"multi_branch_pipeline",devops:l,cluster:o,isCreatePipeline:!0,trigger:this.props.trigger})))}},{key:"ksVersion",get:function(){var e=this.props.cluster;return globals.app.isMultiCluster?(0,f.default)(globals,"clusterConfig.".concat(e,".ksVersion")):(0,f.default)(globals,"ksConfig.ksVersion")}}]),r}(p.default.Component);a.default=S},function(e,t,a){e.exports={from:"_3leGyYanySt4QBpWlptmsl"}},function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(42),r(4),r(23),r(57),r(17);var l,o=n(r(36)),u=n(r(37)),c=n(r(55)),s=n(r(56)),i=n(r(51)),f=r(186),d=n(r(74)),p=r(239),m=n(r(3328)),v=n(r(0)),h=n(r(3332));function E(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,i.default)(e);if(t){var n=(0,i.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,s.default)(this,a)}}var y=(0,p.observer)(l=function(e){(0,c.default)(r,e);var a=E(r);function r(){var e;(0,o.default)(this,r);for(var t=arguments.length,n=new Array(t),l=0;l0?i.default.createElement("div",{className:y.default.params_container},S.map((function(e,t){return i.default.createElement(E.default,{key:t,option:e})}))):i.default.createElement("div",{className:y.default.empty},i.default.createElement("div",{className:y.default.icon},i.default.createElement("img",{src:"/assets/pipeline-temp-empty.svg",alt:""})),i.default.createElement("p",null,t("EMPTY_PARAMS_CONFIG"))))))),i.default.createElement(g,{label:t("PREVIEW"),name:"view",disabled:(0,m.default)(S)},i.default.createElement("div",{className:y.default.view},j?i.default.createElement("div",{className:y.default.timeOut},i.default.createElement("div",{className:y.default.icon},i.default.createElement("img",{src:"/assets/pipeline-temp-empty.svg",alt:""})),i.default.createElement("p",null,t("CONNECTION_TIMEOUT"))):i.default.createElement(h.default,{spinning:N},i.default.createElement(f.Form,{data:a,ref:r},i.default.createElement(d.default,{className:y.default.content,jsonData:A}))))))))},r(18),r(28),r(87),r(16),r(10),r(4),r(22);var o=l(r(43));r(41);var u=l(r(44)),c=l(r(96)),s=l(r(58)),i=n(r(0)),f=r(186),d=l(r(1125)),p=l(r(60)),m=l(r(63)),v=l(r(74)),h=l(r(1202)),E=l(r(1737)),y=l(r(1386)),g=f.Tabs.TabPanel},function(e,a,r){"use strict";r(15);var n=r(157),l=r(20);r(18),r(87),r(16),r(10),Object.defineProperty(a,"__esModule",{value:!0}),a.default=function(e){var a=e.formTemplate,r=e.formRef,n=e.store,l=(0,s.default)(e,["formTemplate","formRef","store"]),b=a.params,S=void 0===b?[]:b,_=(0,h.useState)("params"),O=(0,c.default)(_,2),C=O[0],T=O[1],R=(0,h.useState)(!1),D=(0,c.default)(R,2),N=D[0],k=D[1],I=(0,h.useState)({}),P=(0,c.default)(I,2),A=P[0],w=P[1],M=function(){var e=(0,u.default)(o.default.mark((function e(t){var r,u,c,s,i,f,d,p,m;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("view"!==t){e.next=16;break}return r=a.paramsForm,u=void 0===r?{}:r,c=Object.keys(u).reduce((function(e,t){return e.push({name:t,value:u[t]}),e}),[]),k(!0),e.next=6,n.getTempleJenkins(a.template,{parameters:c},{cluster:l.params.cluster});case 6:return s=e.sent,i=l.params,f=i.devops,d=i.name,p=i.cluster,e.next=10,n.checkScriptCompile({devops:f,pipeline:d,value:s,cluster:p});case 10:return e.next=12,n.convertJenkinsFileToJson(s,p);case 12:m=e.sent,w(m),(0,v.default)(a,"jenkinsFile",m),k(!1);case 16:T(t);case 17:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return h.default.createElement("div",{className:E.default.templateParams},h.default.createElement(f.default,{spinning:n.isSubmitting},h.default.createElement(i.Tabs,{type:"button",tabs:C,onChange:M},h.default.createElement(g,{label:t("PARAMETER_CONFIG"),name:"params"},h.default.createElement("div",{className:E.default.container},h.default.createElement("div",{className:E.default.params},h.default.createElement(i.Form,{data:a,ref:r},(0,p.default)(S)&&S.length>0?h.default.createElement("div",{className:E.default.params_container},S.map((function(e,t){return h.default.createElement(y.default,{key:t,option:e})}))):h.default.createElement("div",{className:E.default.empty},h.default.createElement("div",{className:E.default.icon},h.default.createElement("img",{src:"/assets/pipeline-temp-empty.svg",alt:""})),h.default.createElement("p",null,t("EMPTY_PARAMS_CONFIG"))))))),h.default.createElement(g,{label:t("PREVIEW"),name:"view",disabled:(0,m.default)(S)},h.default.createElement("div",{className:E.default.view},h.default.createElement(f.default,{spinning:N},h.default.createElement(i.Form,{data:a,ref:r},h.default.createElement(d.default,{className:E.default.content,jsonData:A}))))))))},r(18),r(28),r(87),r(16),r(10),r(4),r(22);var o=l(r(43));r(41);var u=l(r(44)),c=l(r(96)),s=l(r(58)),i=r(186),f=l(r(1202)),d=l(r(1125)),p=l(r(60)),m=l(r(63)),v=l(r(74)),h=n(r(0)),E=l(r(1386)),y=l(r(1737)),g=i.Tabs.TabPanel},function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(16),r(4),r(22),r(196),r(23),r(24),r(17),r(64),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(42),r(16),r(4),r(22),r(196),r(23),r(57),r(24),r(17),r(64);var l=n(r(43));r(41);var o=n(r(44)),u=n(r(36)),c=n(r(37)),s=n(r(55)),i=n(r(56)),f=n(r(51)),d=n(r(787)),p=n(r(841)),m=n(r(824)),v=n(r(26)),h=n(r(806)),E=n(r(1)),y=n(r(0)),g=n(r(960)),b=r(52),S=n(r(3336));function _(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,f.default)(e);if(t){var n=(0,f.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,i.default)(this,a)}}var O=function(e){(0,s.default)(r,e);var a=_(r);function r(e){var t,n;return(0,u.default)(this,r),(n=a.call(this,e)).showConfirm=function(){var e=n.props.defaultValue,t=n.state.value;(0,h.default)(e,t)?n.props.onCancel():n.setState({isShowConfirm:!0})},n.hideConfirm=function(){n.setState({isShowConfirm:!1})},n.handleCancel=function(){n.hideConfirm(),n.props.onCancel()},n.handleChange=function(e){n.setState({value:e})},n.getEditorInstance=function(e){n.editor=e},n.checkScriptCompile=(0,o.default)(l.default.mark((function e(){var t,a,r,o,u;return l.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.props.params,a=t.devops,r=t.name,o=t.cluster,n.setState({isLoading:!0}),e.next=4,n.store.checkScriptCompile({value:n.newValue,pipeline:r,devops:a,cluster:o},(function(){n.setState({shouldCheckScriptCompile:!1})})).finally((function(){return n.setState({isLoading:!1})}));case 4:if("fail"!==(u=e.sent).status){e.next=9;break}return n.setState({error:{row:u.line-1,column:u.column,type:"error",text:u.message}}),n.forceUpdate(),e.abrupt("return",u);case 9:return n.setState({error:null}),e.abrupt("return",!1);case 11:case"end":return e.stop()}}),e)}))),n.saveJenkins=function(e){var t=n.props.params,a=t.devops,r=t.name,l=t.cluster;n.setState({isLoading:!0});var o=l&&"default"!==l?"/klusters/".concat(l):"";return request.put("/kapis/devops.kubesphere.io/v1alpha3".concat(o,"/namespaces/").concat(a,"/pipelines/").concat(r,"/jenkinsfile?mode=raw"),{data:e},{headers:{"content-type":"application/json"}}).finally((function(){return n.setState({isLoading:!1})}))},n.handleOk=(0,o.default)(l.default.mark((function e(){return l.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n.newValue=n.state.value.replace(/\t/g," "),!n.state.shouldCheckScriptCompile){e.next=7;break}return e.next=4,n.checkScriptCompile();case 4:if(!e.sent){e.next=7;break}return e.abrupt("return");case 7:if(n.isOld){e.next=10;break}return e.next=10,n.saveJenkins(n.newValue);case 10:n.props.onOk(n.newValue);case 11:case"end":return e.stop()}}),e)}))),n.store=new g.default,n.state={value:null!==(t=e.defaultValue)&&void 0!==t?t:"",isLoading:!1,isShowConfirm:!1,shouldCheckScriptCompile:!0},n}return(0,c.default)(r,[{key:"componentDidUpdate",value:function(e){var t=this.props,a=t.visible,r=t.defaultValue;a&&!e.visible&&r&&this.setState({value:r})}},{key:"render",value:function(){var e=this.props,a=e.visible,r=e.isSubmitting,n=this.state,l=n.isShowConfirm,o=n.error,u=n.shouldCheckScriptCompile,c=n.value,s=n.isLoading;return y.default.createElement(y.default.Fragment,null,y.default.createElement(d.default,{icon:"cogwheel",width:900,bodyClassName:S.default.body,isSubmitting:r||s,onCancel:this.showConfirm,onOk:this.handleOk,okButtonType:u?void 0:"danger",okText:u?void 0:"continue",visible:a,closable:!1,maskClosable:!1,title:"Jenkinsfile"},y.default.createElement(y.default.Fragment,null,y.default.createElement(p.default,{className:S.default.codeEditor,name:"script",mode:"groovy",value:c,onChange:this.handleChange,options:o&&{annotations:[o]}}),o&&y.default.createElement("div",{className:S.default.checkResult},y.default.createElement("img",{src:"/assets/error.svg"}),y.default.createElement("span",null,t("JENKINS_LINS_ERROR",{line:o.row+1}))),!u&&y.default.createElement("div",{className:S.default.checkResult},y.default.createElement("img",{src:"/assets/error.svg"}),y.default.createElement("span",null,t("FAILED_CHECK_SCRIPT_COMPILE"))))),y.default.createElement(m.default,{visible:l,onCancel:this.hideConfirm,onOk:this.handleCancel,title:t("CLOSE"),desc:t("CLOSE_JENKINSFILE_EDITOR_TIP")}))}},{key:"ksVersion",get:function(){var e=this.props.params.cluster;return window.parent.globals.app.isMultiCluster?(0,v.default)(window,"parent.globals.clusterConfig.".concat(e,".ksVersion")):(0,v.default)(window,"parent.globals.ksConfig.ksVersion")}},{key:"isOld",get:function(){return(0,b.compareVersion)(this.ksVersion,"3.4.0")<0}}]),r}(y.default.Component);a.default=O,O.propTypes={name:E.default.string,params:E.default.object},O.defaultProps={visible:!1,isSubmitting:!1,onOk:function(){},onCancel:function(){}}},function(e,t,a){e.exports={codeEditor:"FwGVnxxpNbU-YwCj8hrz_",checkResult:"_177fFbaR70Um61ePRL6Q86",body:"_33dDTLMi8Kh16V0VchwicK"}},function(e,a,r){"use strict";var n=r(20);r(12),r(109),r(11),r(6),r(9),r(13),r(10),r(24),r(64),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(109),r(11),r(6),r(28),r(34),r(15),r(9),r(13),r(10),r(4),r(24),r(64),r(7);var l=n(r(30)),o=n(r(58)),u=n(r(787)),c=n(r(240)),s=n(r(3338)),i=n(r(1293));function f(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function d(e){for(var t=1;t1048576*A)){e.next=5;break}return d.default.error(t("UPLOAD_FILE_TOO_LARGE")),e.abrupt("return",Promise.reject(t("UPLOAD_FILE_TOO_LARGE")));case 5:if(n=a.name.slice(a.name.lastIndexOf(".")+1),-1!==R.findIndex((function(e){return e===n}))){e.next=9;break}return d.default.error(t("WRONG_FILE_EXTENSION_NAME",{type:R.join(",")})),e.abrupt("return",Promise.reject(t("WRONG_FILE_EXTENSION_NAME",{type:R.join(",")})));case 9:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),onSuccess:function(a,r){var n=e.onChange,l=new FileReader;if(200===a.code||a.image)return l.readAsDataURL(r),l.addEventListener("load",(function(){var e=l.result;x(e),G(!1),n&&n(a,e)})),d.default.success({content:t("UPLOAD_SUCCESSFUL")});d.default.error({content:t("UPLOAD_PLATFORM_IMAGE_FAILED",{message:a.message||"Internal Server Error"})})},onError:function(a){var r=e.onError;r&&r(),d.default.error({content:t("UPLOAD_PLATFORM_IMAGE_FAILED",{message:a.message||"Internal Server Error"})}),G(!0)}};return i.default.createElement(i.default.Fragment,null,i.default.createElement("div",{className:v.default.container,style:{height:n,width:y}},(J=V?{}:{visibility:"hidden"},i.default.createElement("div",{className:v.default.uploadBox,style:J},i.default.createElement(p.default,(0,o.default)({},q,{ref:W}),i.default.createElement("div",{className:v.default.selectContainer,style:{height:n,width:y}},i.default.createElement(f.Icon,{className:v.default.icon,size:40,name:"upload"}),i.default.createElement("p",{className:v.default.title},w),i.default.createElement("p",{className:v.default.desc},I))))),(!globals.useDefaultTheme||""!==j)&&(K=j||_,Q=""!==globals.theme.background||""!==j,i.default.createElement("div",{className:v.default.imageBox},!V&&i.default.createElement(h.default,{style:(0,m.default)({favicon:{maxHeight:40},logo:{maxHeight:40}},e.name,{}),src:K}),i.default.createElement("div",{className:v.default.overlay},i.default.createElement(f.Tooltip,{content:I,placement:"top",style:{width:400}},i.default.createElement(f.Button,{type:"control",onClick:function(){return W.current.onClick()}},t("UPLOAD"))),N&&Q&&i.default.createElement(f.Button,{onClick:function(){return H(!0)}},t("PREVIEW"))))),z&&function(){var e=j||_;return i.default.createElement(E.default,{logoUrl:C,imagUrl:e,onClick:H})}()));var K,Q;var J},r(197),r(73),r(975),r(48),r(16),r(4),r(22);var o=l(r(315)),u=l(r(43));r(41);var c=l(r(44)),s=l(r(96)),i=n(r(0)),f=r(186),d=l(r(240)),p=l(r(952)),m=l(r(26)),v=l(r(1387)),h=l(r(1738)),E=l(r(3340))},function(e,t,a){"use strict";a(15);var r=a(157),n=a(20);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var l=n(a(96)),o=r(a(0)),u=a(186),c=n(a(3)),s=n(a(1387)),i=function(e){var t=e.imagUrl,a=e.logoUrl,r=e.style,n=e.className,i=e.onClick,f=(0,o.useState)(!0),d=(0,l.default)(f,2),p=d[0],m=d[1],v=globals.config.logo||globals.defaultTheme.logo,h=globals.useDefaultTheme?v:globals.theme.logo,E=""!==a?a:h;return o.default.createElement(o.default.Fragment,null,o.default.createElement("div",{className:(0,c.default)(n,s.default.loadingPreviewImage)},o.default.createElement("div",{className:s.default.preview},o.default.createElement("div",{className:s.default.box},o.default.createElement("div",{className:s.default.image},p&&o.default.createElement(u.Loading,{className:s.default.loading}),o.default.createElement("img",{style:r,src:t,alt:"",onLoad:function(){return m(!1)}}),!p&&o.default.createElement(o.default.Fragment,null,o.default.createElement("img",{className:s.default.logo,src:E}),o.default.createElement("img",{className:s.default.loginForm,src:"/assets/loginForm.svg"}))),!p&&o.default.createElement(u.Icon,{name:"close",className:s.default.cancel,onClick:function(){return i(!1)}})))))};t.default=i},function(e,t,a){e.exports={form:"_117p4N5fmQ3xC2Jt2kqjt3",item:"_3QGGQazz9cLTxnGlDt0_dA",marginTop:"_2-DqDXEz5x0GhYdEsFqQNI"}},function(e,a,r){"use strict";var n=r(20);r(12),r(11),r(6),r(18),r(16),r(9),r(13),r(10),r(4),r(17),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(45),r(11),r(6),r(18),r(28),r(42),r(16),r(34),r(15),r(9),r(13),r(10),r(4),r(22),r(17),r(7);var l=n(r(43));r(41);var o=n(r(44)),u=n(r(30)),c=n(r(58)),s=n(r(26)),i=n(r(74)),f=n(r(457)),d=n(r(63)),p=n(r(240)),m=n(r(787)),v=n(r(3343)),h=n(r(3355)),E=n(r(3358)),y=n(r(3359)),g=n(r(435)),b=r(52),S=n(r(322)),_=n(r(885)),O=n(r(1095));function C(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function T(e){for(var t=1;t0&&void 0!==m[0]?m[0]:{},e.next=3,this.store.checkName({name:t.name,namespace:t.name,cluster:t.cluster});case 3:if(!e.sent.exist){e.next=7;break}return e.next=7,this.store.fetchDetail({name:t.name,namespace:t.name,cluster:t.cluster});case 7:return a=(0,y.toJS)(this.store.detail),e.next=10,this.storageStore.fetchList({cluster:t.cluster});case 10:r=e.sent,n=z({},(0,g.default)(this.workspaceQuotaStore.detail,"spec.quota.hard",{})),l=this.getWorkspaceAvailableStorageConfig(n),u=l.wsAvailableRequest,c=l.wsRelatedStoragesLimit,i=this.getStorageSpec(a,u),f=i.spec,d=i.nsAvailableStorage,this.setState({formTemplate:this.cancelGpuSetting(a),allStorageClass:(0,s.default)(r),spec:f,nsAvailableStorage:d,wsAvailableRequest:u,wsRelatedStoragesLimit:c},(function(){p.setRelateSourceResult()}));case 15:case"end":return e.stop()}}),e,this)}))),function(){return a.apply(this,arguments)})},{key:"getWorkspaceAvailableStorageConfig",value:function(){var e=1/0,t=1/0,a=(0,y.toJS)(this.workspaceQuotaStore.detail),r=(0,g.default)(a,"spec.quota.hard",{}),n=(0,T.default)(r,(function(e,t){return!t.includes(L.STORAGE_CLASS_STORAGE)&&!t.includes(L.STORAGE_CLASS_VOLUME_CLAIMS)})),l=(0,g.default)(r,["requests.storage"],void 0),o=(0,g.default)(r,["persistentvolumeclaims"],void 0);(l&&(e=l=(0,V.memoryFormat)(l,"Gi")),o)&&(t=Number(o));return{wsAvailableRequest:{storage:e,persistentvolumeclaims:t},wsRelatedStoragesLimit:(0,k.default)(Object.entries(n),(function(e){return(0,c.default)(e,1)[0].split(".")[0]}))}}},{key:"render",value:function(){var e=this.props,a=e.detail,r=e.visible,n=e.onCancel,l=e.isFederated,o=e.isSubmitting,u=this.state,c=u.error,s=u.spec,i=u.allStorageClass,f=u.nsAvailableStorage,d=u.wsAvailableRequest,p=u.wsRelatedStoragesLimit,m=u.disableSave,v=u.totalStorageError,E=u.totalVolumeClaimsError,y=u.currentRelatedStorageTotal,g=u.currentRelatedVolumeClaimsTotal,b=u.addedItems;return h.default.createElement(w.default.Form,{width:960,title:t("EDIT_PROJECT_QUOTAS"),icon:"pen",data:this.state.formTemplate,onOk:this.handleOk,onCancel:n,visible:r,isSubmitting:o,disableOk:!!c||m},h.default.createElement("div",{className:B.default.body},h.default.createElement(A.Form.Item,{label:t("NAME")},h.default.createElement(A.Input,{name:"name",defaultValue:a.name,disabled:!0})),h.default.createElement(A.Form.Item,null,h.default.createElement(M.default,this.resourceLimitProps)),h.default.createElement("div",{className:B.default.storageLimit},h.default.createElement(L.default,{namespace:a.name,quota:s,isWorkspace:!1,availableQuota:f,wsAvailableRequest:d,relatedStoragesLimit:p,allStorageClass:i,onChange:this.handleOnChange,renderOutOfLimitTip:v||E,totalStorageError:v,totalVolumeClaimsError:E,currentRelatedStorageTotal:y,currentRelatedVolumeClaimsTotal:g,addedItems:b})),h.default.createElement("div",{className:B.default.label},t("APPLICATION_RESOURCE_QUOTAS")),h.default.createElement(G.default,{data:this.state.formTemplate,isFederated:l})))}},{key:"resourceLimitProps",get:function(){var e=this,a=this.state.formTemplate,r=this.state.leftQuota,n=(0,_.default)(r)?{}:{limits:{cpu:(0,g.default)(r,"limits.cpu"),memory:(0,g.default)(r,"limits.memory")},requests:{cpu:(0,g.default)(r,"requests.cpu"),memory:(0,g.default)(r,"requests.memory")}},l=(0,g.default)(a,"spec.gpu.type",""),o=(0,g.default)(a,"spec.gpu.value",""),u={};return(0,b.default)(u,'["'.concat(l,'"]'),o),{cpuProps:{marks:[{value:0,label:t("NO_REQUEST"),weight:4},{value:1,label:1,weight:4},{value:2,label:2,weight:2},{value:3,label:3,weight:2},{value:4,label:4},{value:5,label:5},{value:6,label:6},{value:7,label:7},{value:8,label:8},{value:1/0,label:t("NO_LIMIT")}]},memoryProps:{marks:[{value:0,label:t("NO_REQUEST"),weight:4},{value:2,label:2,weight:4},{value:4,label:4,weight:2},{value:6,label:6,weight:2},{value:8,label:8},{value:10,label:10},{value:12,label:12},{value:14,label:14},{value:16,label:16},{value:1/0,label:t("NO_LIMIT")}],unit:"Gi",valueFormatter:function(e){return e>0&&e<1?e.toFixed(2):e>1&&e!==1/0?e.toFixed(1):e}},defaultValue:{limits:z({cpu:(0,g.default)(a,'spec.hard["limits.cpu"]'),memory:(0,g.default)(a,'spec.hard["limits.memory"]')},u),requests:z({cpu:(0,g.default)(a,'spec.hard["requests.cpu"]'),memory:(0,g.default)(a,'spec.hard["requests.memory"]')},u)},workspaceLimitProps:n,onChange:function(e){var t;(0,S.default)(a,"spec.hard"),(0,b.default)(a,'spec.hard["limits.cpu"]',(0,g.default)(e,"limits.cpu",null)),(0,b.default)(a,'spec.hard["limits.memory"]',(0,g.default)(e,"limits.memory",null)),(0,b.default)(a,'spec.hard["requests.cpu"]',(0,g.default)(e,"requests.cpu",null)),(0,b.default)(a,'spec.hard["requests.memory"]',(0,g.default)(e,"requests.memory",null));var r=(0,g.default)(e,"requests",{}),n=null===(t=Object.keys(r))||void 0===t?void 0:t.filter((function(e){return e.includes("gpu")})),l=(0,g.default)(n,"0","");l&&(0,b.default)(a,'spec.hard["requests.'.concat(l,'"]'),(0,g.default)(r,l))},onError:function(t){e.setState({error:t})},supportGpuSelect:this.props.supportGpuSelect,omitQuotaCheck:!0}}}]),n}(h.default.Component);a.default=W,W.propTypes={detail:E.default.object,visible:E.default.bool,onOk:E.default.func,onCancel:E.default.func,isSubmitting:E.default.bool},W.defaultProps={visible:!1,isSubmitting:!1,detail:{},onOk:function(){},onCancel:function(){}}},function(e,a,r){"use strict";var n=r(157),l=r(20);r(12),r(5),r(11),r(6),r(48),r(27),r(190),r(9),r(13),r(10),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var o=l(r(315)),u=l(r(30)),c=l(r(96)),s=l(r(58));r(12),r(5),r(11),r(6),r(28),r(48),r(27),r(190),r(34),r(15),r(9),r(13),r(10),r(4),r(7);var i=n(r(0)),f=r(186),d=l(r(1304)),p=l(r(26)),m=l(r(447)),v=l(r(1040)),h=l(r(195)),E=r(52),y=l(r(3)),g=l(r(1740)),b=l(r(3345)),S=l(r(1741)),_=l(r(3347));function O(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function C(e){for(var t=1;t0&&e<1?e.toFixed(2):e>1&&e!==1/0?e.toFixed(1):e},N=function(e){var a=e.storageLimitSpec,r=e.renderOutOfLimitTip,n=void 0!==r&&r,l=e.totalStorageError,O=void 0!==l&&l,N=e.totalVolumeClaimsError,k=void 0!==N&&N,I=(0,s.default)(e,["storageLimitSpec","renderOutOfLimitTip","totalStorageError","totalVolumeClaimsError"]),P=(0,i.useState)(!1),A=(0,c.default)(P,2),w=A[0],M=A[1],L=(0,i.useState)({"requests.storage":"InfinityGi",persistentvolumeclaims:""}),j=(0,c.default)(L,2),x=j[0],U=j[1],F=(0,i.useState)("workspace"),V=(0,c.default)(F,2),G=V[0],B=V[1];(0,i.useEffect)((function(){var e=(0,p.default)(a,["requests.storage"],"InfinityGi"),t={"requests.storage":e,persistentvolumeclaims:(0,p.default)(a,["persistentvolumeclaims"],"")};M("InfinityGi"===e),U(C({},t))}),[a]);var Y,z,H,W,q,K,Q,J,X=i.default.createElement("div",{className:b.default.tipContent},i.default.createElement("div",{className:b.default.warning},t("TOTAL_STORAGE_LIMIT_LESS_THAN_RELATE_RESOURCE")));return i.default.createElement("div",{className:b.default.storageClassBox},i.default.createElement("div",{className:b.default.titleLine},i.default.createElement("div",{className:b.default.icon},i.default.createElement(f.Icon,{name:"storage",size:40})),i.default.createElement("div",null,i.default.createElement("span",{className:b.default.title},t("STORAGE_QUOTA")),i.default.createElement("span",{className:b.default.desc},I.isWorkspace?t("WS_STORAGE_QUOTA_DESC"):t("NS_STORAGE_QUOTA_DESC")))),i.default.createElement("div",{className:b.default.setting},i.default.createElement(f.Tabs,{type:"button",activeName:G,onChange:function(e){return B(e)}},i.default.createElement(T,{label:t("TOTAL_STORAGE_RESOURCE"),name:"workspace"},(K=x["requests.storage"],Q=(0,h.default)(K)?"InfinityGi"===K?1/0:(0,E.memoryFormat)(K,"Gi"):K,J=x.persistentvolumeclaims,i.default.createElement("div",{className:b.default.storageClassBox},i.default.createElement(f.Columns,null,i.default.createElement(f.Column,null,i.default.createElement("div",{className:b.default.slider},i.default.createElement("span",{className:b.default.text},t("VOLUME_TOTAL_CAPACITY",{unit:"Gi"})),i.default.createElement(S.default,{value:w?1/0:Q,marks:R,unit:"Gi",valueFormatter:D,onChange:function(e){return function(e){(0,v.default)(e)?M(!1):M(!0);var t={"requests.storage":isNaN(e)?"InfinityGi":"".concat(e).concat("Gi"),persistentvolumeclaims:(0,p.default)(x,["persistentvolumeclaims"],"")};I.handleWsLimitChange(C({},t))}(e)}})))),i.default.createElement(f.Columns,null,i.default.createElement(f.Column,null,i.default.createElement("span",{className:b.default.text},t("RESOURCE_LIMITS")),i.default.createElement("div",{className:(0,y.default)(b.default.wrapper,(0,u.default)({},b.default.error,O))},i.default.createElement(g.default,{className:b.default.input,min:0,value:w?"":Q,placeholder:w?t("NO_LIMIT"):"",onChange:function(e){return a=t=e,(0,m.default)(t,".")&&(a=Number(t.slice(0,t.length-1))),""!==t&&"-"!==t||(a=1/0),void I.handleWsLimitChange({"requests.storage":"".concat(a,"Gi"),persistentvolumeclaims:(0,p.default)(x,["persistentvolumeclaims"],"")});var t,a}}),i.default.createElement("span",{className:b.default.unit},"Gi"))),i.default.createElement(f.Column,null,i.default.createElement("span",{className:b.default.text},t("VOLUME_MAX_NUM")),i.default.createElement("div",{className:(0,y.default)(b.default.wrapper,(0,u.default)({},b.default.error,k))},i.default.createElement(d.default,{className:b.default.input,min:0,value:J,placeholder:t("NO_LIMIT"),onChange:function(e){return r=t=e,(0,m.default)(t,".")&&(r=Number(t.slice(0,t.length-1))),""!==t&&"-"!==t||(r=""),void I.handleWsLimitChange({"requests.storage":(0,p.default)(a,["requests.storage"]),persistentvolumeclaims:r});var t,r}})))),!I.isWorkspace&&(Y=(0,p.default)(I.wsAvailableRequest,"storage",1/0),z=(0,p.default)(I.wsAvailableRequest,"persistentvolumeclaims",1/0),H=(0,v.default)(Y)?t("STORAGE_VOLUME_LIMIT_HAS_A_LIMIT",{num:Y}):t("STORAGE_VOLUME_LIMIT_NO_LIMIT"),W=(0,v.default)(z)?t("STORAGE_PERSISTENT_VOLUME_HAS_A_LIMIT",{num:z}):t("STORAGE_PERSISTENT_VOLUME_NO_LIMIT"),q="".concat(H,", ").concat(W),i.default.createElement("div",{className:b.default.tipContent},i.default.createElement(f.Alert,{type:"info",title:t("AVAILABLE_QUOTAS"),message:q}))),n&&X))),i.default.createElement(T,{label:t("STORAGE_RELATED_RESOURCE"),name:"related"},i.default.createElement(_.default,(0,o.default)({wsQuotaSpec:x,namespaceStorageClass:I.namespaceStorageClass,onChange:I.handleRelateVolumeChange},I))))))};a.default=N},function(e,t,a){e.exports={body:"_1Zibu60vRfDthPuTtmecl6",quotaItem:"_2B9mfPAIPrv87rpL8gK0Z3",label:"_387XF4DSpyII0xdPCm5Ol-",storageClassBox:"GsUeOovHSpbPHsXrfFSVd",titleLine:"_2b5PjG5EJ76L_CdkwSPf0d",icon:"_2hX0yF-a_71od_SpFGkHPc",title:"_3cGLB1-_7HM9DFtM2TaigR",desc:"_2FnNeo05GhWmAnl1WF1MM0",setting:"_19mHEHTw_bOB7NvvH2ASZE",labelTitle:"_2grZ3IUkiniMD2AXEHolyr",slider:"_277WgEgy_uhoHRu4K8tYrV",wrapper:"_3Ys-12L0fXQ8IAT8TOQMwA",unit:"_2TZjwDYDSzQuS9x7nY2Wos",text:"IUX493SRHJsoFy1nCdpuo",tipContent:"_1PqAcxrcsIzCF2KVhpciIh",warning:"DwT3n4gVdL1CX0m9GWbi8",relatedBox:"_3tHVi0clIheoFTfZ_VAWTr",value:"_1CvMaWz4ZY1zV_f_gqXywE",addQuota:"Ob66euHsOLSyS_BwVPVpw",addBox:"_2OxV92PCBs2dkZd5Qt2usU",addContent:"_2v8rozHDR2mazzNtAk6O4c",closeContent:"_2Z5LKlEGF3nX0OW0XM5GTw",error:"cVDyGh3umWPB0JhKLe8w1"}},function(e,t,a){e.exports={sliderWrapper:"INNBh97y-sYhMpVHkK4Cx",slider:"_3UgYaCslbwFNrg1OHhgtCa",rail:"_1M9nwpLeBwN-yBGjjJS0wK",track:"_9S1TEImvI4d7kGjcNqPN-",handler:"b0ekkTeiTmxUXjH6CcDL6",mark:"_3hurtyaOWHzXYBzgHj0tE",inputWrapper:"_1OHarvGzBe3xdofM0FT4cA",inputGroup:"_3MBu3VVqJNZxy6JdlTFD8l",input:"tY1BQ6yan1T6oqPBCIZSV",error:"_1xlDWH5PHscTddpENrWRA0",label:"_2OHx8yT3Rc_GlstfwtAOqg",inputBox:"_1GlrMZcwurb0PmqkDTfdw",unit:"_2-SWp1Be4AZe-14gP-4L1F",message:"_2GhODRzieuOaggJkAMiQt1"}},function(e,a,r){"use strict";var n=r(157),l=r(20);r(12),r(5),r(11),r(31),r(6),r(86),r(18),r(48),r(16),r(27),r(190),r(98),r(9),r(13),r(10),r(24),r(62),r(64),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var o=l(r(30)),u=l(r(96));r(12),r(5),r(11),r(31),r(6),r(86),r(18),r(28),r(48),r(16),r(27),r(190),r(34),r(15),r(98),r(9),r(13),r(10),r(4),r(24),r(62),r(64),r(7);var c=r(186),s=l(r(3)),i=l(r(799)),f=l(r(447)),d=l(r(26)),p=l(r(1040)),m=n(r(0)),v=r(52),h=r(1388),E=l(r(1741)),y=l(r(1740)),g=l(r(3348)),b=l(r(3349));function S(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function _(e){for(var t=1;t0&&e<1?e.toFixed(2):e>1&&e!==1/0?e.toFixed(1):e}var R=function(e){var a=(0,m.useState)(!1),r=(0,u.default)(a,2),n=r[0],l=r[1],S=(0,m.useState)(_({},C)),R=(0,u.default)(S,2),D=R[0],N=R[1],k=(0,m.useRef)(),I=(0,m.useState)({editItemName:"",isEditMode:!1,storage:0,claims:0}),P=(0,u.default)(I,2),A=P[0],w=P[1],M=(0,m.useState)({limit:"",count:""}),L=(0,u.default)(M,2),j=L[0],x=L[1],U=(0,m.useState)(!1),F=(0,u.default)(U,2),V=F[0],G=F[1],B=(0,m.useState)(!1),Y=(0,u.default)(B,2),z=Y[0],H=Y[1],W=(0,m.useCallback)((function(){n&&k.current.scrollIntoView({behavior:"smooth"})}),[k,n]);(0,m.useEffect)((function(){W()}),[n,V,z]),(0,m.useEffect)((function(){var t=(0,d.default)(e.availableQuota,["storage"],1/0),a=(0,d.default)(e.availableQuota,["persistentvolumeclaims"],1/0),r=(0,d.default)(e.wsQuotaSpec,["persistentvolumeclaims"]),n=(0,d.default)(e.wsQuotaSpec,["requests.storage"]);if(r=""===r?1/0:r,"string"==typeof(n=""===n?1/0:n)){var l=(0,v.memoryFormat)(n,"Gi");n=l||1/0}if(!e.isWorkspace){var o=D.name,c=(0,d.default)(e.relatedStoragesLimit,["".concat(o)],null);if(c){var s=c.filter((function(e){return(0,u.default)(e,1)[0].match("storageclass.storage.k8s.io/requests.storage")})),i=c.filter((function(e){return(0,u.default)(e,1)[0].match("storageclass.storage.k8s.io/persistentvolumeclaims")})),f=1/0,m=1/0;if(s.length>0&&(f=(0,v.memoryFormat)(s[0][1],"Gi")),i.length>0&&(m=Number(i[0][1])),(t-=e.currentRelatedStorageTotal)=0?Math.min(t,n):(0,p.default)(n)?n:1/0,S=Math.min(a,r);x({limit:b,count:S})}),[e.availableQuota,D,n]),(0,m.useEffect)((function(){$(D.persistentvolumeclaims);var e=(0,v.memoryFormat)(D["requests.storage"],"Gi");Z(e=""!==e?e:"Infinity")}),[j]);var q,K,Q,J,X=(0,m.useCallback)((function(e){N(_(_({},D),{},{name:e.name}))}),[D]),Z=function(t){var a=j.limit,r=e.currentRelatedStorageTotal,n=A.isEditMode,l=A.storage,o=(0,v.memoryFormat)(l,"Gi");if("InfinityGi"!==a&&""!==a&&(0,p.default)(t)){var u=Number(a);e.isWorkspace&&(u-=r,!isNaN(o)&&n&&(u+=o)),"string"==typeof a&&(u=Number(a.replace(/[a-zA-Z]/g,""))),G(t>u)}else V&&G(!1)},$=function(t){var a=j.count,r=e.currentRelatedVolumeClaimsTotal,n=A.isEditMode,l=A.claims;if(""!==a&&""!==t){var o=a;e.isWorkspace&&(o-=r,""!==l&&n&&(o+=Number(l))),"string"==typeof a&&(o=a.replace(/[a-zA-Z]/g,"")),Number(t)>o?H(!0):H(!1)}else H(!1)},ee=(0,m.useCallback)((function(){l(!1),N(_({},C)),H(!1),G(!1),w({editItemName:"",isEditMode:!1,storage:0,claims:0})}),[]),te=(0,m.useCallback)((function(){var t;l(!1);var a=D.name,r=D["requests.storage"],n=D.persistentvolumeclaims,u=(t={},(0,o.default)(t,"".concat(a,".").concat(h.STORAGE_CLASS_STORAGE),r),(0,o.default)(t,"".concat(a,".").concat(h.STORAGE_CLASS_VOLUME_CLAIMS),n),t),c=A.isEditMode?{actionType:"edit",originName:A.editItemName,data:_({},u)}:{actionType:"add",data:_({},u)};e.onChange(c),N(C),w({editItemName:"",isEditMode:!1,limit:0,claims:0})}),[D]),ae=(0,m.useCallback)((function(t){var a,r=t.name;e.onChange({actionType:"delete",data:(a={},(0,o.default)(a,"".concat(r,".").concat(h.STORAGE_CLASS_STORAGE),""),(0,o.default)(a,"".concat(r,".").concat(h.STORAGE_CLASS_VOLUME_CLAIMS),""),a)})}),[]),re=(0,m.useCallback)((function(e,t){N({name:e.name,"requests.storage":t.storage,persistentvolumeclaims:t.claims}),w({editItemName:e.name,isEditMode:!0,storage:t.storage,claims:t.claims}),l(!0)}),[]),ne=(0,m.useCallback)((function(){return m.default.createElement("div",{className:g.default.relatedBox},m.default.createElement("div",{className:g.default.list},Object.entries(e.namespaceStorageClass).map((function(a,r){var n=(0,u.default)(a,2),l=n[0],o=n[1],s=e.allStorageClass.find((function(e){return e.name===l})),i="InfinityGi",f="",p=o.filter((function(e){return-1!==e.key.indexOf("requests.storage")}));p.length>0&&(i=p[0].value);var h,E,y,b=o.filter((function(e){return-1!==e.key.indexOf("persistentvolumeclaims")}));return b.length>0&&(f=b[0].value),s&&m.default.createElement("div",{className:g.default.card,key:r},(h=s,E={storage:"InfinityGi"===i?"InfinityGi":"".concat((0,v.memoryFormat)(i,"Gi"),"Gi"),claims:f},y=(0,v.memoryFormat)(E.storage,"Gi"),m.default.createElement(m.default.Fragment,null,m.default.createElement("div",{className:g.default.baseInfo},m.default.createElement("div",{className:g.default.Icon},m.default.createElement(c.Icon,{name:"database",size:40})),m.default.createElement("div",{className:g.default.text},m.default.createElement("p",{className:g.default.label},h.name,h.default&&m.default.createElement("span",{className:g.default.default},t("DEFAULT"))),m.default.createElement("p",{className:g.default.value},t("NAME"))),m.default.createElement("div",{className:g.default.text},m.default.createElement("p",{className:g.default.label},(0,d.default)(e.relatedCount,h.name,0)),m.default.createElement("p",{className:g.default.value},t("VOLUME_COUNT"))),m.default.createElement("div",{className:g.default.iconText},m.default.createElement("div",null,m.default.createElement("p",{className:g.default.label},h.provisioner),m.default.createElement("p",{className:g.default.value},t("PROVISIONER"))),m.default.createElement("div",{className:g.default.opt},m.default.createElement(c.Icon,{name:"trash",size:16,onClick:function(){return ae(h)}}),m.default.createElement(c.Icon,{name:"pen",size:16,onClick:function(){return re(h,E)}})))),m.default.createElement("div",{className:g.default.config},m.default.createElement("span",{className:g.default.config_text},m.default.createElement("span",{className:g.default.value},t("STORAGE_LIMIT"),": "),m.default.createElement("span",{className:g.default.label},"InfinityGi"===E.storage||isNaN(y)?t("NO_LIMIT"):"".concat(y,"Gi"))),m.default.createElement("span",{className:g.default.config_text},m.default.createElement("span",{className:g.default.value},t("STORAGE_CLASS_VOLUME"),": "),m.default.createElement("span",{className:g.default.label},""!==E.claims?E.claims:t("NO_LIMIT")))))))}))),m.default.createElement("div",{className:g.default.addQuota,onClick:function(){return l(!0)}},m.default.createElement("p",{className:g.default.label},t("SELECT_A_STORAGECLASS")),m.default.createElement("p",{className:g.default.value},t("SET_RELATED_STORAGE_CLASS_QUOTA"))))}),[e.namespaceStorageClass]);return n?(q=(0,v.memoryFormat)(D["requests.storage"],"Gi"),K=D.persistentvolumeclaims,Q=isNaN(q)?1/0:q,J=!1,(""===D.name||0===Q||0===K)&&(J=!0),m.default.createElement("div",{className:g.default.addBox},m.default.createElement("div",{className:g.default.addContent,ref:k},m.default.createElement(b.default,{addedItems:e.addedItems,allStorageClass:e.allStorageClass,editName:D.name,editMode:A.isEditMode,onChange:X}),m.default.createElement("div",null,m.default.createElement(c.Columns,null,m.default.createElement(c.Column,null,m.default.createElement("div",{className:g.default.slider},m.default.createElement("span",{className:g.default.text},t("VOLUME_TOTAL_CAPACITY",{unit:"Gi"})),m.default.createElement(E.default,{value:(0,p.default)(q)?Number(q):1/0,marks:O,unit:"Gi",valueFormatter:T,onChange:function(e){return function(e){var t=isNaN(e)?"InfinityGi":"".concat(e).concat("Gi");Z(t),N(_(_({},D),{},{"requests.storage":t}))}(e)}})))),m.default.createElement(c.Columns,null,m.default.createElement(c.Column,null,m.default.createElement("span",{className:g.default.text},t("RESOURCE_LIMITS")),m.default.createElement("div",{className:(0,s.default)(g.default.wrapper,(0,o.default)({},g.default.error,V))},m.default.createElement(y.default,{className:g.default.input,min:0,value:(0,p.default)(q)?q:"",placeholder:(0,p.default)(q)?"":t("NO_LIMIT"),onChange:function(e){return a=t=e,(0,f.default)(t,".")&&(a=Number(t.slice(0,t.length-1))),""!==t&&"-"!==t||(a=1/0),Z(a),void N(_(_({},D),{},{"requests.storage":"".concat(a).concat("Gi")}));var t,a}}),m.default.createElement("span",{className:g.default.unit},"Gi"))),m.default.createElement(c.Column,null,m.default.createElement("span",{className:g.default.text},t("VOLUME_MAX_NUM")),m.default.createElement("div",{className:(0,s.default)(g.default.wrapper,(0,o.default)({},g.default.error,z))},m.default.createElement(i.default,{className:g.default.input,min:0,value:K,placeholder:t("NO_LIMIT"),onChange:function(e){return a=t=e,(0,f.default)(t,".")&&(a=Number(t.slice(0,t.length-1))),""!==t&&"-"!==t||(a=""),$(a),void N(_(_({},D),{},{persistentvolumeclaims:a}));var t,a}}))))),function(){var a=j.limit,r=j.count,n=e.currentRelatedStorageTotal,l=e.currentRelatedVolumeClaimsTotal,o=a,u=r;if(e.isWorkspace){(0,p.default)(a)&&(o-=n),(0,p.default)(r)&&(u-=l);var s=A.isEditMode,i=A.storage,f=A.claims,d=(0,v.memoryFormat)(i,"Gi");(0,p.default)(a)&&s&&!isNaN(d)&&(o+=d),""!==f&&(0,p.default)(r)&&s&&(u+=Number(f))}var h=(0,p.default)(a)?t("STORAGE_VOLUME_LIMIT_HAS_A_LIMIT",{num:o}):t("STORAGE_VOLUME_LIMIT_NO_LIMIT"),E=(0,p.default)(r)?t("STORAGE_PERSISTENT_VOLUME_HAS_A_LIMIT",{num:u}):t("STORAGE_PERSISTENT_VOLUME_NO_LIMIT"),y="".concat(h,", ").concat(E);return m.default.createElement("div",{className:g.default.tipContent},m.default.createElement(c.Alert,{type:"info",title:t("AVAILABLE_QUOTAS"),message:y}),(V||z)&&m.default.createElement("div",{className:g.default.warning},t("REQUEST_EXCEED_AVAILABLE_QUOTA")))}(),m.default.createElement("div",{className:g.default.closeContent},m.default.createElement("div",{className:g.default.icon,onClick:ee},m.default.createElement(c.Icon,{name:"close",size:16})),m.default.createElement("div",{className:(0,s.default)(g.default.icon,(0,o.default)({},g.default.disabled,J||z||V)),onClick:te},m.default.createElement(c.Icon,{name:"check",size:16})))))):ne()};a.default=R},function(e,t,a){e.exports={relatedBox:"_1GGmkso_4IJTkxjrWF32_6",label:"_1CGNqu-q5sfQ050_H30wts",value:"KKbwkLC9KvM1xuHdZVHBw",list:"RdLtbOozPGoubquDaAr3O",card:"_3owbF3meZl7eQCaMwjlyRC",baseInfo:"_3eNCBNEnGHEBCoYOrxEYRn",Icon:"_1668ydHLavkdcsClp6BPDz",text:"_3tYSIDE5E8DLQS1Fpwu63f",default:"_3cN04CNtBKjf8lFfA73-v",iconText:"_1-XxK_YcydUaYulcve3UHw",opt:"_1dQEbMcYDc_524orHLVEEK",config:"etu-pGB83QqKQxJDXo-Sm",config_text:"_1lbPmxNq09U-73j0TaoBgQ",addQuota:"_2HKZQ-LKndrfIztjRwDalI",addBox:"_3WSfp73NfezhHgTmYM4qnb",addContent:"_14unDCHvUsTwbIvUhkQ_vD",wrapper:"_1_w447Hic4nOy-sCH5RDzV",unit:"_3SYBak0N4z7MISs51IM25h",tipContent:"QM2pl7XTGNSX9NTrqJmFa",warning:"_3QnOEHy7BNAOBXqS6JWz1A",closeContent:"_37J22EJXV49Y4H_NAS6KDh",icon:"_2YbiBieUBwoH8Dyg-XrDIu",disabled:"_9VqM3CRNqJWJJ4sz0ijXt",error:"V6cUjfRc1-lPhfqYMb029"}},function(e,a,r){"use strict";var n=r(157),l=r(20);r(12),r(11),r(6),r(86),r(18),r(16),r(9),r(13),r(10),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(11),r(6),r(86),r(18),r(28),r(16),r(34),r(15),r(9),r(13),r(10),r(4),r(7);var o=l(r(30)),u=l(r(96)),c=n(r(0)),s=r(186),i=l(r(3)),f=l(r(63)),d=l(r(3350));function p(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function m(e){for(var t=1;t0?c.default.createElement("div",{className:d.default.list},c.default.createElement("div",{className:d.default.extraContent},b.map((function(e){return c.default.createElement("div",{className:d.default.card,key:e.name,onClick:function(){return y(e)}},g(e))})))):null}));return c.default.createElement("div",{className:d.default.wrapper},_,c.default.createElement(c.default.Fragment,null,!S&&n&&O()))};a.default=v},function(e,t,a){e.exports={addBox:"_2P0f0FwDVpHJ7wtcHg4mZP",Icon:"_2EoBETTKKnmy_fVgMCB9yR",text:"_164oSWx0vc9753lp2Rf8EW",label:"_3Os24eJRt_vq5NdAj6PtUr",default:"_1iDV2CgIhUQCZE-BWJqX03",value:"yp2bvppkb-cW4cXDNXuEr",hover:"_14g5XwSM1u8TqXP18Hl3Ij",list:"_2iNtlWNCQ_kNrIK58DBunO",extraContent:"_3leBkLEhf6uYuWG1Al7lTt",card:"_7YZjcuF7SXPzsBKEKEqhm",wrapper:"_32Jj8ViLQU8hzot9rBIvko",rotate:"JUvzx2dwgkpp6dtYPx2A9"}},function(e,a,r){"use strict";r(15);var n=r(20);r(197),r(6),r(84),r(4),r(23),r(17),r(85),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(197),r(6),r(84),r(28),r(859),r(42),r(4),r(23),r(57),r(17),r(85),r(7);var l=n(r(61)),o=n(r(36)),u=n(r(37)),c=n(r(55)),s=n(r(56)),i=n(r(51)),f=n(r(0)),d=n(r(1114)),p=n(r(26)),m=n(r(63)),v=n(r(74)),h=n(r(189)),E=n(r(158)),y=n(r(199)),g=n(r(241)),b=n(r(457)),S=r(186),_=n(r(829)),O=r(72),C=r(52),T=n(r(3352)),R=r(1742),D=n(r(3353));function N(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,i.default)(e);if(t){var n=(0,i.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,s.default)(this,a)}}var k=function(e){(0,c.default)(r,e);var a=N(r);function r(e){var t;return(0,o.default)(this,r),(t=a.call(this,e)).handleAddQuotaItem=function(e){t.setState({items:e},(function(){var a=(0,p.default)(t.props.data,"spec.hard"),r=(0,g.default)(a,t.omitKeys),n={};e.forEach((function(e){var t=e.module,a=e.value;if(!(0,E.default)(t)){var r=(0,p.default)(O.QUOTAS_MAP,"".concat(t,".name"),t);n["".concat(r)]=a}})),(0,v.default)(t.props.data,"spec.hard",(0,y.default)(n,r))}))},t.checkItemValid=function(e){return!(0,m.default)(e)&&e.module},t.state={items:(0,l.default)(t.getItems(e))},t}return(0,u.default)(r,[{key:"componentDidUpdate",value:function(e){e.data!==this.props.data&&this.setState({items:(0,l.default)(this.getItems(this.props))})}},{key:"getItems",value:function(e){var t=(0,h.default)((0,p.default)(e.data,"spec.hard",{}),this.omitKeys),a=(0,b.default)(t,(function(e,t){return t.includes("requests.storage")||t.includes("persistentvolumeclaims")})),r=[];(0,d.default)(a,(function(e,t){var a={module:R.QUOTAS_KEY_MODULE_MAP[t]||t,value:e};r.push(a)}));var n=r.findIndex((function(e){return"pods"===e.module}));if(n>0){var l=r[0];r[0]=r[n],r[n]=l}return n<0&&r.unshift({module:"pods",value:""}),r}},{key:"render",value:function(){var e=this.state.items;return f.default.createElement("div",{className:D.default.wrapper},f.default.createElement(S.Form.Item,null,f.default.createElement(_.default,{value:e,itemType:"object",addText:t("ADD"),onChange:this.handleAddQuotaItem,checkItemValid:this.checkItemValid},f.default.createElement(T.default,{isFederated:this.props.isFederated}))))}},{key:"omitKeys",get:function(){var e=globals.config.supportGpuType,t=(0,l.default)(C.resourceLimitKey);return e.forEach((function(e){return t.push("limits.".concat(e),"requests.".concat(e))})),t}}]),r}(f.default.Component);a.default=k},function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(11),r(84),r(18),r(10),r(4),r(23),r(17),r(85),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(11),r(84),r(18),r(42),r(10),r(4),r(23),r(57),r(17),r(85);var l=n(r(61)),o=n(r(36)),u=n(r(37)),c=n(r(55)),s=n(r(56)),i=n(r(51)),f=n(r(0)),d=r(186),p=r(72),m=n(r(867)),v=n(r(799)),h=r(1742);function E(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,i.default)(e);if(t){var n=(0,i.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,s.default)(this,a)}}var y=function(e){(0,c.default)(r,e);var a=E(r);function r(){var e;(0,o.default)(this,r);for(var n=arguments.length,l=new Array(n),u=0;u0&&void 0!==arguments[0]?arguments[0]:{},t=P({},e);return Object.keys(e).forEach((function(a){a.endsWith("memory")&&(t[a]=(0,k.memoryFormat)(e[a])),a.endsWith("cpu")&&(t[a]=(0,k.cpuFormat)(e[a]))})),t},t.singleClusterQuota=function(e,a,r){return new Promise((function(n){Promise.all([t.quotaStore.fetch({cluster:r,namespace:a}),t.workspaceQuotaStore.fetchDetail({name:e,workspace:e,cluster:r})]).then((function(e){var a=(0,p.default)(e[1],"hard"),r=(0,p.default)(e[0],"data.hard");n({workspaceQuota:t.availableQuota_memory(a),namespaceQuota:t.availableQuota_memory(r)})}))}))},t.multiClusterQuota=function(e,a){var r=[],n={"limits.cpu":void 0,"limits.memory":void 0};t.props.clusters.forEach((function(n){return r.push(t.singleClusterQuota(e,a,n))})),Promise.all(r).then((function(e){var a=e.map((function(e){return(0,p.default)(e,"workspaceQuota",n)})),r=e.map((function(e){return(0,p.default)(e,"namespaceQuota",n)})),l=e.map((function(e){return(0,h.default)((0,p.default)(e,"namespaceQuota",{}),k.resourceLimitKey)}));t.setState({availableQuota:{workspace:t.transformQuota(a),namespace:P(P({},t.transformQuota(r)),t.transformGpu(l))}})}))},t.transformQuota=function(e){return{"limits.cpu":t.findCpuOrMemoryMin(e,"limits.cpu"),"limits.memory":t.findCpuOrMemoryMin(e,"limits.memory"),"requests.cpu":t.findCpuOrMemoryMin(e,"requests.cpu"),"requests.memory":t.findCpuOrMemoryMin(e,"requests.memory")}},t.findCpuOrMemoryMin=function(e,t){var a=e.map((function(e){return e[t]}));return(0,E.default)(a)},t.transformGpu=function(e){var t=globals.config.supportGpuType,a=e.map((function(e){return(0,g.default)(e,(function(e,a){return t.some((function(e){return(0,b.default)(a,e)}))}))}));return(0,y.default)(a,(function(e,t){var a=(0,p.default)(e,"".concat(Object.keys(t)[0]));return a?Number(a)>Number(Object.values(t)[0])?P(P({},e),t):P({},e):P(P({},e),t)}),{})},t.fetchQuota=(0,o.default)(l.default.mark((function e(){var a,r,n,o,u;return l.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a=t.props,r=a.workspace,n=a.cluster,o=a.namespace,a.isFederated){e.next=8;break}return e.next=4,t.singleClusterQuota(r,o,n);case 4:u=e.sent,t.setState({availableQuota:{workspace:(0,p.default)(u,"workspaceQuota"),namespace:(0,p.default)(u,"namespaceQuota")}}),e.next=9;break;case 8:t.multiClusterQuota(r,o);case 9:case"end":return e.stop()}}),e)}))),t.getQuotaInfo=function(e){return(0,p.default)(t.workspaceQuota,e,void 0)},t.handleOk=function(){(0,t.props.onOk)(t.state.data)},t.handleError=function(e){return t.setState({error:e})},t.getQuotaInfo=function(e){return(0,p.default)(t.workspaceQuota,e,void 0)},t.quotaStore=e.isEdgeWize?new D.default:new T.default,t.workspaceQuotaStore=e.isEdgeWize?new N.default:new R.default,t.state={data:(0,p.default)(e.detail,"limit",{}),error:"",availableQuota:{}},t}return(0,s.default)(r,[{key:"componentDidMount",value:function(){this.fetchQuota()}},{key:"componentDidUpdate",value:function(e){var t=this.props.detail;t.limit&&t.limit!==e.detail.limit&&this.setState({data:t.limit})}},{key:"getGpuLimit",value:function(){return(0,k.gpuLimitsArr)(this.workspaceQuota)}},{key:"render",value:function(){var e=this.props,a=e.visible,r=e.onCancel,n=e.isSubmitting,l=this.state.error;return S.default.createElement(O.default,{width:960,title:t("EDIT_DEFAULT_CONTAINER_QUOTAS"),icon:"firewall",onOk:this.handleOk,onCancel:r,visible:a,isSubmitting:n,disableSubmit:!!l},S.default.createElement(C.default,{defaultValue:this.resourceLimit,onChange:this.handleChange,onError:this.handleError,supportGpuSelect:this.props.supportGpuSelect||!1,workspaceLimitProps:this.workspaceLimitProps}))}},{key:"resourceLimit",get:function(){return{requests:(0,p.default)(this.props.detail,"limit.defaultRequest",{}),limits:(0,p.default)(this.props.detail,"limit.default",{})}}},{key:"workspaceQuota",get:function(){var e=(0,p.default)(this.state,"availableQuota.namespace",{}),t=(0,p.default)(this.state,"availableQuota.workspace",{});return(0,m.default)(e,t,(function(e,t){if(e||t)return(0,v.default)(e)?t:e0&&r.push.apply(r,(0,o.default)(e.getDependencies(r)))),r},e}return(0,c.default)(r,[{key:"render",value:function(){var e=this,a=this.props,r=a.roleTemplates,n=a.roleTemplatesMap,l=a.data,o=l.dependencies.length>0?l.dependencies.map((function(t){return e.getName(n[t])})).filter((function(e){return void 0!==e})):[];return d.default.createElement("div",{className:g.default.checkItem},d.default.createElement(v.Checkbox,{checked:r.includes(l.name),onClick:this.handleCheck}),d.default.createElement(E.default,{title:this.getName(l),onClick:this.handleCheck,description:this.getDesc(l)}),o.length>0&&d.default.createElement("div",{className:g.default.extra},t("DEPENDS_ON"),o.map((function(e){return d.default.createElement(v.Tag,{className:g.default.tag,type:"info",key:e},e)}))))}},{key:"lang",get:function(){return(0,p.default)(globals.user,"lang")||(0,y.getBrowserLang)()}}]),r}(d.Component);a.default=S},function(e,t,a){"use strict";a(15),Object.defineProperty(t,"__esModule",{value:!0}),t.ROLE_MODULES_ICON=t.ROLE_MODULES=void 0;var r={globalroles:[{name:"Clusters Management",icon:"cluster"},{name:"Access Control",icon:"key"},{name:"Apps Management",icon:"openpitrix",hide:!globals.app.enableAppStore},{name:"Platform Settings",icon:"cogwheel"}],workspaceroles:[{name:"Projects Management",icon:"project"},{name:"DevOps Management",icon:"strategy-group",hide:!globals.app.hasKSModule("devops")},{name:"Apps Management",icon:"appcenter",hide:!globals.app.hasKSModule("openpitrix")},{name:"Access Control",icon:"key"},{name:"Workspace Settings",icon:"cogwheel"}],roles:[{name:"Application Workloads",icon:"appcenter"},{name:"Storage Management",icon:"storage"},{name:"Configuration Center",icon:"hammer"},{name:"Monitoring & Alerting",icon:"monitor"},{name:"Access Control",icon:"human"},{name:"Project Settings",icon:"project"}],devopsroles:[{name:"Pipelines Management",icon:"application"},{name:"Continuous Deployments Management",icon:"rocket"},{name:"Code Repositories Management",icon:"code"},{name:"Credentials Management",icon:"key"},{name:"Access Control",icon:"human"},{name:"DevOps Settings",icon:"strategy-group"}],clusterroles:[{name:"Cluster Resources Management",icon:"nodes"},{name:"Project Resources Management",icon:"project"},{name:"Network Management",icon:"earth"},{name:"Storage Management",icon:"database"},{name:"Monitoring & Alerting",icon:"monitor"},{name:"Access Control",icon:"human"},{name:"Cluster Settings",icon:"cluster"}]};t.ROLE_MODULES=r;t.ROLE_MODULES_ICON={"cluster-management":"cluster","access-control":"key","apps-management":"openpitrix","platforms-settings":"cogwheel","projects-management":"project","devOps-management":"strategy-group","workspace-settings":"cogwheel","Application Workloads":"appcenter","storage-management":"storage","configuration-center":"hammer","project-settings":"project"}},function(e,a,r){"use strict";r(15);var n=r(20);r(16),r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(42),r(16),r(4),r(22),r(23),r(57),r(17);var l=n(r(43)),o=n(r(30));r(41);var u,c,s,i=n(r(44)),f=n(r(36)),d=n(r(37)),p=n(r(55)),m=n(r(56)),v=n(r(51)),h=n(r(0)),E=n(r(1)),y=r(239),g=n(r(63)),b=n(r(787)),S=n(r(322)),_=n(r(1745)),O=r(72),C=n(r(3370));function T(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,v.default)(e);if(t){var n=(0,v.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,m.default)(this,a)}}var R=(0,y.observer)((s=c=function(e){(0,p.default)(n,e);var a,r=T(n);function n(e){var t;return(0,f.default)(this,n),(t=r.call(this,e)).state={users:[],groups:{},isLoading:!1},t.store=new S.default,t.groupStore=new _.default,t}return(0,d.default)(n,[{key:"componentDidMount",value:function(){var e=this.props,t=e.visible,a=e.detail;t&&a.name&&this.fetchData()}},{key:"fetchData",value:(a=(0,i.default)(l.default.mark((function e(){var t,a,r,n,u,c,s,i,f;return l.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=this.props,r=a.module,n=a.detail.name,u=a.cluster,c=a.workspace,s=a.namespace,this.setState({isLoading:!0}),e.next=4,this.store.fetchList((t={},(0,o.default)(t,O.ROLE_QUERY_KEY[r],n),(0,o.default)(t,"cluster",u),(0,o.default)(t,"workspace",c),(0,o.default)(t,"namespace",s),(0,o.default)(t,"limit",-1),t));case 4:if(i=e.sent,!(0,g.default)(i)||!c){e.next=10;break}return e.next=8,this.groupStore.getWorkspaceRoleBinding("",{cluster:u,workspace:c,namespace:s,rolename:n});case 8:f=e.sent,this.setState({groups:f});case 10:this.setState({users:i,isLoading:!1});case 11:case"end":return e.stop()}}),e,this)}))),function(){return a.apply(this,arguments)})},{key:"render",value:function(){var e=this.props,a=e.detail,r=e.visible,n=e.onOk,l=e.onCancel,o=e.isSubmitting,u=this.state,c=u.users,s=u.groups,i=u.isLoading;return h.default.createElement(b.default,{width:504,onOk:i||c.length||s.totalItems?null:n,onCancel:l,visible:r,isSubmitting:o,okButtonType:"danger",hideHeader:!0},h.default.createElement("div",{className:C.default.body},h.default.createElement("div",{className:"h5"},t("DELETE_ROLE")),h.default.createElement("p",null,!i&&c.length?t.html("DELETE_ROLE_USER_TIP".concat(1===c.length?"":"_PL"),{count:c.length}):s.totalItems?t.html("DELETE_ROLE_DEPARTMENT_TIP".concat(1===s.totalItems?"":"_PL"),{count:s.totalItems}):t.html("DELETE_ROLE_TIP",{resource:a.name}))))}}]),n}(h.default.Component),c.propTypes={detail:E.default.object,module:E.default.string,visible:E.default.bool,onOk:E.default.func,onCancel:E.default.func,isSubmitting:E.default.bool},c.defaultProps={detail:{},visible:!1,isSubmitting:!1,onOk:function(){},onCancel:function(){}},u=s))||u;a.default=R},function(e,t,a){e.exports={body:"_2OPaWn_o79qbwztkINRFGV"}},function(e,a,r){"use strict";var n=r(20);r(12),r(11),r(6),r(200),r(29),r(18),r(16),r(9),r(13),r(10),r(4),r(316),r(324),r(38),r(7),r(32),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(11),r(6),r(200),r(29),r(18),r(28),r(16),r(34),r(15),r(9),r(13),r(10),r(4),r(316),r(22),r(324),r(38),r(460),r(461),r(462),r(463),r(464),r(465),r(466),r(7),r(32);var l=n(r(43));r(41);var o=n(r(44)),u=n(r(30)),c=n(r(58)),s=n(r(26)),i=n(r(74)),f=n(r(242)),d=n(r(60)),p=n(r(240)),m=n(r(787)),v=n(r(825)),h=n(r(3372)),E=n(r(3373)),y=n(r(3375)),g=n(r(3377)),b=r(72),S=n(r(435)),_=n(r(901)),O=n(r(1606));function C(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function T(e){for(var t=1;t0&&r.length>0&&r.forEach((function(e){var t=a.find((function(t){return t.hosts&&t.hosts.includes(e.host)}));t?(e.protocol="https",e.secretName=t.secretName):e.protocol="http"})),{Ingress:t}}},{key:"render",value:function(){var e=this.props,a=e.visible,r=e.cluster,n=e.isSubmitting,l=e.namespace,o=this.state,u=o.subRoute,c=o.formTemplate;return i.default.createElement(h.default,{width:960,title:t("EDIT_ROUTING_RULES"),icon:"firewall",onOk:this.handleOk,okText:t("OK"),cancelText:(0,v.default)(u)?null:t("PREVIOUS"),onCancel:this.handleCancel,visible:a,isSubmitting:n},i.default.createElement("div",{className:y.default.wrapper},i.default.createElement(E.default,{module:"ingresses",formRef:this.form,formTemplate:c,cluster:r,namespace:l})))}}]),r}(i.default.Component);b.propTypes={detail:f.default.object,visible:f.default.bool,onOk:f.default.func,onCancel:f.default.func,isSubmitting:f.default.bool},b.defaultProps={detail:{},visible:!1,onOk:function(){},onCancel:function(){},isSubmitting:!1},b.childContextTypes={registerSubRoute:f.default.func,resetSubRoute:f.default.func};var S=b;a.default=S},function(e,t,a){e.exports={wrapper:"_2wf3cNZWhIeqht7bbNiU00"}},function(e,a,r){"use strict";r(15);var n=r(20);r(31),r(6),r(84),r(4),r(23),r(17),r(85),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(31),r(6),r(84),r(42),r(4),r(23),r(57),r(17),r(85),r(7);var l=n(r(36)),o=n(r(37)),u=n(r(55)),c=n(r(56)),s=n(r(51)),i=n(r(0)),f=n(r(1)),d=r(14),p=n(r(26)),m=n(r(135)),v=n(r(63)),h=n(r(806)),E=n(r(787)),y=n(r(1329)),g=n(r(3378));function b(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,s.default)(e);if(t){var n=(0,s.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,c.default)(this,a)}}var S=function(e){(0,u.default)(r,e);var a=b(r);function r(e){var t;return(0,l.default)(this,r),(t=a.call(this,e)).registerSubRoute=function(e,a){t.setState({subRoute:{onSave:e,onCancel:a}})},t.resetSubRoute=function(){t.setState({subRoute:{}})},t.handleOk=function(){var e=t.state.subRoute;if(e.onSave)return e.onSave((function(){t.setState({subRoute:{}})}));(0,t.props.onOk)(t.state.formTemplate.Ingress)},t.handleCancel=function(){var e=t.state.subRoute;if(e.onCancel){var a=e.onCancel();if(!a)return;return a(),void t.setState({subRoute:{}})}(0,t.props.onCancel)()},t.formRef=i.default.createRef(),t.state={subRoute:{},formTemplate:t.getFormTemplate((0,d.toJS)(e.detail._originData))},t}return(0,o.default)(r,[{key:"getChildContext",value:function(){return{registerSubRoute:this.registerSubRoute,resetSubRoute:this.resetSubRoute}}}]),(0,o.default)(r,[{key:"componentDidUpdate",value:function(e){(0,h.default)((0,d.toJS)(this.props.detail._originData),(0,d.toJS)(e.detail._originData))||this.setState({formTemplate:this.getFormTemplate((0,d.toJS)(this.props.detail._originData))})}},{key:"getFormTemplate",value:function(e){var t=(0,m.default)(e),a=(0,p.default)(t,"spec.tls",[]),r=(0,p.default)(t,"spec.rules",[]);return a.length>0&&r.length>0&&r.forEach((function(e){var t=a.find((function(t){return t.hosts&&t.hosts.includes(e.host)}));t?(e.protocol="https",e.secretName=t.secretName):e.protocol="http"})),{Ingress:t}}},{key:"render",value:function(){var e=this.props,a=e.visible,r=e.cluster,n=e.isSubmitting,l=e.isFederated,o=e.projectDetail,u=e.detail,c=this.state,s=c.subRoute,f=c.formTemplate;return i.default.createElement(E.default,{width:960,title:t("EDIT_ROUTING_RULES"),icon:"firewall",onOk:this.handleOk,okText:t("OK"),cancelText:(0,v.default)(s)?null:t("PREVIOUS"),onCancel:this.handleCancel,visible:a,isSubmitting:n},i.default.createElement("div",{className:g.default.wrapper},i.default.createElement(y.default,{module:"ingresses",formRef:this.formRef,formTemplate:f,cluster:r,detail:u,isFederated:l,projectDetail:o})))}}]),r}(i.default.Component);S.propTypes={detail:f.default.object,visible:f.default.bool,onOk:f.default.func,onCancel:f.default.func,isSubmitting:f.default.bool},S.defaultProps={detail:{},visible:!1,onOk:function(){},onCancel:function(){},isSubmitting:!1},S.childContextTypes={registerSubRoute:f.default.func,resetSubRoute:f.default.func};var _=S;a.default=_},function(e,t,a){e.exports={wrapper:"_2SvyqGEvoXG9IXqxRtZsU7"}},function(e,a,r){"use strict";var n=r(20);r(12),r(11),r(31),r(6),r(18),r(16),r(9),r(13),r(10),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(11),r(31),r(6),r(18),r(28),r(16),r(34),r(15),r(9),r(13),r(10),r(4),r(22),r(7);var l=n(r(43));r(41);var o=n(r(44)),u=n(r(30)),c=n(r(58)),s=n(r(26)),i=n(r(241)),f=n(r(74)),d=n(r(240)),p=n(r(787)),m=n(r(825)),v=n(r(3380)),h=r(72),E=n(r(435)),y=n(r(901)),g=n(r(3389)),b=n(r(3390));function S(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function _(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=(0,p.toJS)(e._originData);return b({},t)}},{key:"renderSaveBar",value:function(){var e=this.state.subRoute;return(0,m.default)(e)?null:f.default.createElement(h.default,{className:y.default.confirm,onOk:this.handleSubFormSave,onCancel:this.handleSubFormCancel})}},{key:"render",value:function(){var e=this.state,a=e.subRoute,r=e.formTemplate,n=this.props,l=n.visible,o=n.isSubmitting,u=n.onCancel,c=n.isFederated,s=n.disableSelect,i=n.detail,d=n.isEdgeWize;return f.default.createElement(v.default,{width:960,title:t("EDIT_SETTINGS"),icon:"pen",bodyClassName:y.default.body,onOk:this.handleOk,okText:t("OK"),onCancel:u,visible:l,disableSubmit:!(0,m.default)(a),isSubmitting:o},f.default.createElement(E.default,{formTemplate:r,isFederated:c,cluster:i.cluster,mode:"edit",isEdgeWize:d,disableSelect:s}),this.renderSaveBar())}}]),r}(f.default.Component);a.default=_,_.propTypes={isEdgeWize:d.default.bool,detail:d.default.object,visible:d.default.bool,onOk:d.default.func,onCancel:d.default.func,isSubmitting:d.default.bool,disableSelect:d.default.bool},_.defaultProps={detail:{},visible:!1,onOk:function(){},onCancel:function(){},isSubmitting:!1,disableSelect:!1,isEdgeWize:!1},_.childContextTypes={registerSubRoute:d.default.func,resetSubRoute:d.default.func}},function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(18),r(98),r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(18),r(42),r(98),r(4),r(23),r(57),r(17);var l=n(r(96)),o=n(r(36)),u=n(r(37)),c=n(r(55)),s=n(r(56)),i=n(r(51)),f=n(r(0)),d=n(r(189)),p=n(r(812)),m=r(440),v=n(r(3382));function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,i.default)(e);if(t){var n=(0,i.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,s.default)(this,a)}}var E=function(e){(0,c.default)(r,e);var a=h(r);function r(){var e;(0,o.default)(this,r);for(var t=arguments.length,n=new Array(t),l=0;l0&&void 0!==u[0]?u[0]:{},t.next=3,e.hostStore.fetchList(P(P({},n),{},{labelSelector:"cluster-role.kubesphere.io/host=",limit:-1}));case 3:return l=(0,g.toJS)(e.hostStore.list.data).filter((function(e){return Object.keys(e.labels).some((function(e){return e.endsWith("cluster-role.kubesphere.io/host")}))})),t.abrupt("return",null!==(a=null===(r=l[0])||void 0===r?void 0:r.name)&&void 0!==a?a:"host");case 5:case"end":return t.stop()}}),t)}))),e.handleValidate=(0,c.default)(o.default.mark((function t(){var a,r,n,l,u,c,s;return o.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(a=e.props,r=a.cluster,n=a.isFederated,l=a.namespace,u=a.screatName,c=a.fedFormTemplate,!e.validate()){t.next=23;break}if(e.setState({isValidating:!0}),t.t1=e.store,t.t2=c,t.t3=u,t.t4=l,!n){t.next=13;break}return t.next=10,e.getHostName();case 10:t.t5=t.sent,t.next=14;break;case 13:t.t5=r;case 14:return t.t6=t.t5,t.t7={fedFormTemplate:t.t2,name:t.t3,namespace:t.t4,cluster:t.t6},t.next=18,t.t1.validateImageRegistrySecret.call(t.t1,t.t7);case 18:if(t.t0=t.sent,t.t0){t.next=21;break}t.t0={};case 21:s=t.t0,e.setState({validate:s.validate||!1,reason:s.reason||"",isValidating:!1});case 23:case"end":return t.stop()}}),t)}))),e.handleUrlChange=function(t){e.setState({url:t},e.triggerChange),"http"===t.replace(/^(http(s)?:\/\/)?(.*)$/,"$1").replace("://","")&&e.props.onChangeSkipVerify(!0)},e.handleUserNameChange=function(t){e.setState({username:t.target.value},e.triggerChange)},e.handleEmailChange=function(t){e.setState({email:t.target.value},e.triggerChange)},e.handlePasswordChange=function(t){e.setState({password:t.target.value},e.triggerChange)},e}return(0,f.default)(r,[{key:"validate",value:function(){return!!(this.state.url&&this.state.username&&this.state.password)||(this.setState({errorMsg:t("IMAGE_REGISTRY_REQUIRED_DESC")}),!1)}},{key:"renderTip",value:function(){var e=this.state,a=e.errorMsg,r=e.validate,n=e.reason;return a?E.default.createElement(b.Alert,{className:"margin-t12",type:"error",message:a}):r?E.default.createElement(b.Alert,{type:"info",icon:"success",message:t("REGISTRY_SECRET_VER_SUC")}):n?E.default.createElement(b.Alert,{type:"error",title:t("REGISTRY_SECRET_VER_ERR"),message:n}):E.default.createElement(b.Alert,{type:"info",message:t("IMAGE_REGISTRY_VALIDATE_TIP")})}},{key:"renderDefault",value:function(){var e=this.props,a=e.isDefault,r=e.onChangeDefault;return E.default.createElement("div",{className:k.default.defaultContainer},E.default.createElement(b.Toggle,{checed:a,onChange:r,defaultChecked:a}),E.default.createElement("div",null,E.default.createElement("div",{className:k.default.title},t("SET_AS_DEFAULT")),E.default.createElement("div",{className:k.default.desc},t("SET_AS_DEFAULT_REGISTRY_DESC"))))}},{key:"render",value:function(){var e=this.state,a=e.url,r=e.username,n=e.password,l=e.email,o=e.isValidating,u=this.props,c=u.onChangeSkipVerify,s=u.isSkipVerify;return E.default.createElement("div",null,E.default.createElement("input",{name:"username",className:"hidden-input",type:"text",disabled:!0}),E.default.createElement("input",{name:"password",className:"hidden-input",type:"password",disabled:!0}),E.default.createElement(b.Columns,null,E.default.createElement(b.Column,null,E.default.createElement(N.default,{label:t("REGISTRY_ADDRESS_TCAP"),desc:t("REGISTRY_ADDRESS_TIP"),required:!0},E.default.createElement(S.default,{value:a,onChange:this.handleUrlChange}))),E.default.createElement(b.Column,null,E.default.createElement(N.default,{label:t("USERNAME"),required:!0},E.default.createElement(b.Input,{value:r,onChange:this.handleUserNameChange,autoComplete:"nope"})))),!this.isHttp&&E.default.createElement(b.Columns,null,E.default.createElement(b.Column,{className:k.default.skip_verify},E.default.createElement(b.Checkbox,{checked:s,onChange:c},t("SKIP_VERIFY")))),E.default.createElement(b.Columns,null,E.default.createElement(b.Column,null,E.default.createElement(N.default,{label:t("EMAIL")},E.default.createElement(b.Input,{value:l,onChange:this.handleEmailChange}))),E.default.createElement(b.Column,null,E.default.createElement(N.default,{label:t("PASSWORD"),required:!0},E.default.createElement("div",{className:k.default.password},E.default.createElement(b.InputPassword,{type:"password",value:n,onChange:this.handlePasswordChange,autoComplete:"new-password"}),E.default.createElement(b.Button,{onClick:this.handleValidate,loading:o},t("VALIDATE")))))),this.renderDefault(),E.default.createElement("div",{className:k.default.tip},this.renderTip()))}},{key:"isHttp",get:function(){return"http"===this.state.url.replace(/^(http(s)?:\/\/)?(.*)$/,"$1").replace("://","")}}]),r}(E.Component))||u;a.default=w},function(e,t,a){"use strict";a(15);var r=a(157),n=a(20);a(4),a(23),a(17),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(45),a(42),a(4),a(23),a(57),a(17);var l=n(a(36)),o=n(a(37)),u=n(a(55)),c=n(a(56)),s=n(a(51)),i=r(a(0)),f=n(a(1748));function d(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,s.default)(e);if(t){var n=(0,s.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,c.default)(this,a)}}var p=function(e){(0,u.default)(a,e);var t=d(a);function a(){return(0,l.default)(this,a),t.apply(this,arguments)}return(0,o.default)(a,[{key:"render",value:function(){var e=this.props,t=e.label,a=e.desc,r=e.required,n=e.children;return i.default.createElement("div",{className:f.default.wrapper},t&&i.default.createElement("label",{className:f.default.label,htmlFor:name},t,r?i.default.createElement("span",{className:f.default.requiredIcon},"*"):null),i.default.createElement("div",{className:f.default.control},n,a&&i.default.createElement("div",{className:f.default.desc},a)))}}]),a}(i.Component);t.default=p},function(e,t,a){e.exports={body:"ok_C6WKg4I2-lgwUuNM-G",confirm:"_3kOQ-5ctupyU0pPCq4MU3E"}},function(e,t,a){"use strict";a(15);var r=a(20);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=a(52),l=r(a(974)),o=r(a(1747)),u=[{title:"BASIC_INFORMATION",component:(0,n.withProps)(l.default,{maxNameLength:63}),required:!0},{title:"DATA_SETTINGS",component:o.default,required:!0}];t.default=u},function(e,a,r){"use strict";r(15);var n=r(20);r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(42),r(4),r(23),r(57),r(17);var l=n(r(36)),o=n(r(37)),u=n(r(55)),c=n(r(56)),s=n(r(51)),i=n(r(0)),f=n(r(1)),d=r(186),p=n(r(787)),m=n(r(3391));function v(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,s.default)(e);if(t){var n=(0,s.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,c.default)(this,a)}}var h=function(e){(0,u.default)(r,e);var a=v(r);function r(){return(0,l.default)(this,r),a.apply(this,arguments)}return(0,o.default)(r,[{key:"render",value:function(){var e=this.props,a=e.visible,r=e.onCancel,n=e.onOk,l=e.isSubmitting;return i.default.createElement(p.default,{width:520,onOk:n,onCancel:r,visible:a,okText:t("OK"),cancelText:t("CANCEL"),isSubmitting:l,hideHeader:!0},i.default.createElement("div",{className:m.default.body},i.default.createElement("div",{className:"h5"},i.default.createElement(d.Icon,{name:"information",color:{primary:"#ffffff",secondary:"#41b1ea"},size:18}),"  ",t("SET_AS_DEFAULT")),i.default.createElement("p",null,t("SET_AS_DEFAULT_REGISTRY_DESC"))))}}]),r}(i.default.Component);a.default=h,h.propTypes={visible:f.default.bool,onOk:f.default.func,onCancel:f.default.func,isSubmitting:f.default.bool},h.defaultProps={visible:!1,isSubmitting:!1,onOk:function(){},onCancel:function(){}}},function(e,t,a){e.exports={body:"twiD94s0MsB7Hfd8Ws7nW"}},function(e,a,r){"use strict";var n=r(20);r(12),r(11),r(31),r(6),r(84),r(16),r(9),r(13),r(10),r(85),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(11),r(31),r(6),r(84),r(28),r(16),r(34),r(15),r(9),r(13),r(10),r(4),r(22),r(85),r(7);var l=n(r(43));r(41);var o=n(r(44)),u=n(r(30)),c=n(r(58)),s=n(r(26)),i=n(r(63)),f=n(r(74)),d=r(14),p=n(r(240)),m=n(r(787)),v=n(r(825)),h=n(r(3393)),E=n(r(3395)),y=n(r(3398)),g=n(r(1625)),b=n(r(3402)),S=r(72),_=r(3404),O=n(r(901)),C=n(r(435)),T=n(r(1334)),R=n(r(1179)),D=n(r(1389));function N(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function k(e){for(var t=1;t1&&(null===(a=e.timeRange)||void 0===a?void 0:a[(null===(r=e.timeRange)||void 0===r?void 0:r.length)-1])?N(1e3*(0,p.default)(e,"timeRange[0]",0),1e3*(0,p.default)(e,"timeRange[1]",0)):e.duration?e.duration:null}],["spec.schedule",function(e){var t;if(e.isCron)return e.cron;if(3!==e.type)return null;var a=null!==(t=e.timeRange)&&void 0!==t?t:[],r=(0,l.default)(a,2),n=r[0],o=r[1],u=JSON.parse(JSON.stringify((0,y.parseExpression)("0 * * * *").fields));return o&&(n=Math.floor(n/60/60),o=Math.floor(o/60/60),u.hour=[n]),2===e.timeType&&e.week&&e.week.length&&(u.dayOfWeek=e.week),3===e.timeType&&e.month&&e.month.length&&(u.dayOfMonth=e.month),(0,y.fieldsToExpression)(u).stringify()}]];function I(e,t,a){return k.filter((function(e){var t=(0,l.default)(e,1)[0];return!a||a.some((function(e){return t.startsWith(e)}))})),function(e){return function(t,a){return e.reduce((function(e,a){var r,n=(0,l.default)(a,2),o=n[0],u=n[1];return"string"==typeof u&&(r=(0,p.default)(t,u)),"function"==typeof u&&(r=u(t,e)),void 0!==r&&(0,d.default)(e,o,r),e}),a)}}(k)(e,t)}},function(e,t,a){"use strict";a(15);var r=a(20);a(5),a(4),a(23),a(17),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(45),a(5),a(42),a(4),a(23),a(57),a(17);var n,l=r(a(36)),o=r(a(55)),u=r(a(56)),c=r(a(51)),s=r(a(1750)),i=r(a(1390));function f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,c.default)(e);if(t){var n=(0,c.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,u.default)(this,a)}}var d=(0,r(a(936)).default)(["bell-off-duotone"])(n=function(e){(0,o.default)(a,e);var t=f(a);function a(){var e;(0,l.default)(this,a);for(var r=arguments.length,n=new Array(r),o=0;o-1?o.splice(u,1):o.push(e)}else o=[e];l.setState({value:o}),a&&a(o)},l.state={value:Array.from(null!==(r=null!==(n=e.value)&&void 0!==n?n:e.defaultValue)&&void 0!==r?r:[])},l}return(0,c.default)(a,[{key:"render",value:function(){var e=this,t=this.props.type,a=this.state.value,r="zh"===(0,E.default)("lang")?"zh":"en";return p.createElement("div",{className:y.default.wrapper},this.options.map((function(n,l){var u;return p.createElement(m.Button,{className:(0,v.default)(y.default.item,(u={},(0,o.default)(u,y.default.week,"week"===t),(0,o.default)(u,y.default.month,"month"===t),(0,o.default)(u,y.default.enButton,"week"===t&&"zh"!==r),u)),key:l,type:a.includes(n.value)?"control":"default",onClick:function(){return e.handleClick(n.value,n)}},n.label)})))}},{key:"options",get:function(){return"week"===this.props.type?b:S}}]),a}(p.Component))||d;a.default=_},function(e,t,a){e.exports={wrapper:"XZmcIRClmVHOLPXRuiFvg",item:"_3ATYh4oZAXiPyvZAhRjEDk",week:"_3kEoABe-m2t4ezm2s2pI5T",month:"xK5ma088M1lwXtXU4OmtS",enButton:"vD2nGEp1TRRzYsLcbY6qn"}},function(e,t,a){"use strict";a(15);var r=a(157),n=a(20);a(827),a(18),a(4),a(23),a(17),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(45),a(827),a(18),a(42),a(4),a(23),a(57),a(17);var l=n(a(30)),o=n(a(36)),u=n(a(37)),c=n(a(55)),s=n(a(56)),i=n(a(51)),f=r(a(0)),d=a(186),p=n(a(806)),m=n(a(3421));function v(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,i.default)(e);if(t){var n=(0,i.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,s.default)(this,a)}}var h=function(e){(0,c.default)(a,e);var t=v(a);function a(e){var r;(0,o.default)(this,a),(r=t.call(this,e)).handleChange=function(e,t){var a=r.state,n=a.startTime,o=a.endTime,u=r.props.onChange,c=(0,l.default)({startTime:n,endTime:o},e,t);r.setState((0,l.default)({},e,t)),u([c.startTime,c.endTime])},r.renderTimePicker=function(){var e=r.state,t=e.startTime,a=e.endTime;return f.createElement("div",{className:m.default.wrapper},f.createElement(d.Select,{value:t,defaultValue:t,onChange:function(e){return r.handleChange("startTime",e)},options:new Array(24).fill(0).map((function(e,t){return{value:3600*t,label:t<10?"0".concat(t):t}})),clearable:!0,searchable:!1}),f.createElement("span",null,"–"),f.createElement(d.Select,{value:a,defaultValue:a,onChange:function(e){return r.handleChange("endTime",e)},options:new Array(24).fill(0).map((function(e,t){return{value:3600*(t+1),label:t<10?"0".concat(t):t}})),clearable:!0}))},r.renderDatePicker=function(){var e=r.state,t=e.startTime,a=e.endTime;return f.createElement("div",{className:m.default.wrapper},f.createElement(d.DatePicker,{value:t,dateFormat:"Y-m-d H:i:S",onChange:function(e){r.handleChange("startTime",e[0])},enableTime:!0}),f.createElement("span",null,"–"),f.createElement(d.DatePicker,{value:a,dateFormat:"Y-m-d H:i:S",enableTime:!0,onChange:function(e){return r.handleChange("endTime",e[0])}}))};var n=r.props.value,u=void 0===n?[]:n;return r.state={startTime:u[0],endTime:u[1],value:e.value},r}return(0,u.default)(a,[{key:"componentDidUpdate",value:function(e){var t=this.props.value,a=void 0===t?[]:t;(0,p.default)(a,e.value)||(0,p.default)(a,this.state.value)||this.setState({value:a,startTime:a[0],endTime:a[1]})}},{key:"render",value:function(){return"date"===this.props.type?this.renderDatePicker():this.renderTimePicker()}}]),a}(f.Component);t.default=h},function(e,t,a){e.exports={wrapper:"_4Y7QthNjz2h_QCRixWaez",timePicker:"SHh3pyqg08gPiDs1JiP-M",timeInput:"_2wG89BS0l6_fko0YVgH8Z_","is-hover":"_1eWtLiVXH-tZu8fDt6fJXb",isActive:"mMgB1a9fIAeuK9eW5RJzW",timeCloseIcon:"_2P4r9gVOJ3w0jmfDdmrJBk",timeIcon:"r-3lMVm-uygWaJSTU0vAZ",timeContent:"_3LLguW1J-JK5vSqztTVUTA",timeHeader:"_2I64-AObhngFrgHBvlp6Id",timeFields:"_2NnH5NwINte5FTsKIuUeOo",timeItem:"_2Yur1ll1Q_y3B920FlFkmN","is-active":"_1sq9NsV9C-tPDYXqK2XLHE","is-disabled":"_2DmTgBUO1uNvtla6uVTGBS",timeFooter:"_1QgYbx8f-Wrbfso_5wbKM-"}},function(e,t,a){e.exports={wrapper:"_5T9cqusVddZlw43e51Xmi",title:"_d3S2TlF7MtT9KW6k66qi"}},function(e,t,a){"use strict";a(15);var r=a(20);a(5),a(4),a(23),a(17),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(45),a(5),a(42),a(4),a(23),a(57),a(17);var n,l=r(a(36)),o=r(a(55)),u=r(a(56)),c=r(a(51)),s=r(a(1752)),i=r(a(1390));function f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,c.default)(e);if(t){var n=(0,c.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,u.default)(this,a)}}var d=(0,r(a(936)).default)(["bell-off-duotone"])(n=function(e){(0,o.default)(a,e);var t=f(a);function a(){var e;(0,l.default)(this,a);for(var r=arguments.length,n=new Array(r),o=0;o1?s.default.createElement(d.Select,{className:m.default.tailSelect,options:e,value:t,defaultValue:t,onChange:r.handleSelectChange}):s.default.createElement("span",{className:m.default.unit},t)},r.state={unit:e.unit,value:e.value},r}return(0,l.default)(a,[{key:"render",value:function(){var e=this.props,t=e.title,a=e.min,r=e.max,n=e.value;return s.default.createElement(s.default.Fragment,null,""!==t&&s.default.createElement("div",{className:m.default.title},t),s.default.createElement("div",{className:m.default.wrapper},s.default.createElement(p.default,{className:m.default.input,min:a,value:n,max:r,onChange:this.handleInput}),this.renderTail()))}}]),a}(s.default.Component);t.default=h,h.propTypes={onChange:i.default.func,options:i.default.array,value:i.default.string,min:i.default.number,max:i.default.number,unit:i.default.string,title:i.default.string},h.defaultProps={options:[],value:"",min:0,title:"",unit:"",onChange:function(){}}},function(e,t,a){e.exports={title:"_3gCzFcF7fcPTu22LltCShA",wrapper:"_20nfJFuMfJpHOHE9YDPewL",input:"vaY31bEaxpZlAVRmVYPix",tailSelect:"_2XbNfOs7f_36Ovqjfw_HK9",unit:"flR4Dw7LDIWhIn8tDx9jF"}},function(e,t,a){e.exports={wrapper:"_199UmNQHyBJS0ebwEpIGw8",text:"_3UfJ52LH7FrU0bLw8j0O95",switch:"_2fHHkpPHo-8wuOAbtg_-fy",settings:"_2whYmFUOtrDqPfsDr3UVMW",title:"_1fTGAl2lYYfATlfTHgdLWr",container:"_3Q1kslT3zayxpY8R7UfqIL",limit:"_2P6eNTXyz8rvKC5lg8NgeP",checkItem:"_14y0ciRr89j7e_M0WYMQ9w",des:"uDVdwpV_vBYrKbce_FYfE",group:"_44T5XYn5HzVMT8x5tJZXT"}},function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(11),r(18),r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(11),r(18),r(42),r(10),r(4),r(23),r(57),r(17);var l,o,u,c=n(r(36)),s=n(r(37)),i=n(r(55)),f=n(r(56)),d=n(r(51)),p=n(r(0)),m=n(r(1)),v=r(186),h=n(r(787)),E=n(r(26)),y=n(r(158)),g=n(r(195)),b=r(239),S=n(r(3435));function _(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,d.default)(e);if(t){var n=(0,d.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,f.default)(this,a)}}var O=(0,b.observer)((u=o=function(e){(0,i.default)(r,e);var a=_(r);function r(){var e;(0,c.default)(this,r);for(var t=arguments.length,n=new Array(t),l=0;l2147483647?r({message:t("GID_RANGE_TIP"),field:e.field}):void r():r({message:t("ENTER_POSITIVE_INTEGER_DESC"),field:e.field}):r()};return[{_key:"gidMin",validator:e,checkOnSubmit:!0},{_key:"gidMax",validator:e,checkOnSubmit:!0}]}}]),r}(m.default.Component);a.default=_},function(e,t,a){"use strict";a(15);var r=a(20);a(16),a(4),a(23),a(17),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(45),a(42),a(16),a(4),a(23),a(57),a(17);var n=r(a(315)),l=r(a(58)),o=r(a(36)),u=r(a(37)),c=r(a(55)),s=r(a(56)),i=r(a(51)),f=r(a(0)),d=r(a(1)),p=a(186),m=r(a(3443));function v(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,i.default)(e);if(t){var n=(0,i.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,s.default)(this,a)}}var h=function(e){(0,c.default)(a,e);var t=v(a);function a(){return(0,o.default)(this,a),t.apply(this,arguments)}return(0,u.default)(a,[{key:"render",value:function(){var e=this.props,t=e.name,a=e.unit,r=e.onChange,o=(0,l.default)(e,["name","unit","onChange"]);return a?f.default.createElement(f.default.Fragment,null,f.default.createElement("div",{className:m.default.wrapper},f.default.createElement(p.Input,(0,n.default)({name:t,className:m.default.input,onChange:r||null},o)),a&&f.default.createElement("span",{className:m.default.unit},a))):f.default.createElement(p.Input,(0,n.default)({name:t,className:m.default.input,onChange:r||null},o))}}]),a}(f.default.Component);t.default=h,h.propTypes={onChange:d.default.func,unit:d.default.string}},function(e,t,a){e.exports={wrapper:"_2kGVdUbWOxTaeyX4b5Z8Q_",input:"qgxKLrXJOh3vbKAcB-CBG",unit:"_2GAL5LSZYi6CYdKZCidXt9"}},function(e,a,r){"use strict";r(15);var n=r(20);r(11),r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(11),r(42),r(4),r(23),r(57),r(17);var l=n(r(36)),o=n(r(37)),u=n(r(55)),c=n(r(56)),s=n(r(51)),i=n(r(0)),f=n(r(1)),d=r(14),p=n(r(830)),m=r(186),v=n(r(787));function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,s.default)(e);if(t){var n=(0,s.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,c.default)(this,a)}}var E=function(e){(0,u.default)(r,e);var a=h(r);function r(e){var t;return(0,l.default)(this,r),(t=a.call(this,e)).handleOk=function(e){var a=t.props,r=a.onOk,n=a.store,l=a.detail,o=n.list,u=(0,d.toJS)(o.selectedRowKeys),c=u?u.filter((function(e){return e!==l.uid})):"";r(e),u&&o.setSelectRowKeys(c)},t.state={formData:(0,p.default)((0,d.toJS)(e.detail._originData||e.detail))},t}return(0,o.default)(r,[{key:"componentDidUpdate",value:function(e){this.props.visible&&this.props.visible!==e.visible&&this.setState({formData:(0,p.default)((0,d.toJS)(this.props.detail._originData||this.props.detail))})}},{key:"render",value:function(){var e=this.props,a=e.visible,r=e.isSubmitting,n=e.onCancel,l=this.state.formData;return i.default.createElement(v.default.Form,{data:l,width:691,title:t("EDIT_INFORMATION"),icon:"pen",onOk:this.handleOk,okText:t("OK"),onCancel:n,visible:a,isSubmitting:r},i.default.createElement(m.Form.Item,{label:t("NAME")},i.default.createElement(m.Input,{name:"metadata.name",disabled:!0})),i.default.createElement(m.Form.Item,{label:t("ALIAS"),desc:t("ALIAS_DESC")},i.default.createElement(m.Input,{name:"metadata.annotations['kubesphere.io/alias-name']",maxLength:63})),i.default.createElement(m.Form.Item,{label:t("storageclasses")},i.default.createElement(m.Select,{name:'metadata.labels["storage.kubesphere.io/storagetype"]',options:this.options,clearable:!0})),i.default.createElement(m.Form.Item,{label:t("DESCRIPTION"),desc:t("DESCRIPTION_DESC")},i.default.createElement(m.TextArea,{name:"metadata.annotations['kubesphere.io/description']",maxLength:256})))}},{key:"options",get:function(){return[{value:"BlockStorage",label:t("BLOCK_STORAGE")},{value:"ObjectStorage",label:t("OBJECT_STORAGE")},{value:"FileStorage",label:t("FILE_STORAGE")},{value:"Undefined",label:t("UNCLASSIFIED")}]}}]),r}(i.default.Component);a.default=E,E.propTypes={detail:f.default.object,visible:f.default.bool,onOk:f.default.func,onCancel:f.default.func,isSubmitting:f.default.bool},E.defaultProps={visible:!1,onOk:function(){},onCancel:function(){},isSubmitting:!1}},function(e,a,r){"use strict";var n=r(20);r(12),r(11),r(6),r(9),r(13),r(10),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(11),r(6),r(28),r(34),r(15),r(9),r(13),r(10),r(4),r(7);var l=n(r(30)),o=n(r(58)),u=n(r(0)),c=r(186),s=n(r(787)),i=n(r(1756)),f=n(r(1770)),d=n(r(1773)),p=n(r(1068)),m=n(r(1779)),v=n(r(1780));function h(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function E(e){for(var t=1;t0&&void 0!==n[0]?n[0]:{},r=e.state.pagination,e.setState({isLoading:!0,pagination:I(I({},r),{},{page:r.page+1})},(function(){var t=e.state.pagination,r=t.page,n=t.limit,l=e.props,o=I(I({namespace:l.namespace,cluster:l.cluster},a),{},{limit:n*r,page:1,more:!1,sortBy:"createTime"});e.volumeStore.fetchList(o).then((function(){var t=e.volumeStore.list.total;e.setState({pagination:I(I({},e.state.pagination),{},{total:t}),isLoading:!1})}))}));case 3:case"end":return t.stop()}}),t)}))),e.volumeChange=function(t){e.setState({selectedVolume:t},(function(){e.saveVolumeInfo()}))},e.volumeValidator=function(a,r,n){var l=e.state,o=l.allowSnapshot,u=l.volumeInfo;!o&&(0,D.default)(u)&&n({message:t("STORAGECLASS_NOT_ALLOW_CREATE_SNAPSHOT"),field:a.field}),n()},e.optionRenderer=function(a){return h.default.createElement(h.default.Fragment,null,h.default.createElement("div",{className:N.default.option},a.isFedManaged?h.default.createElement("img",{className:N.default.indicator,src:"/assets/cluster.svg"}):h.default.createElement(g.Icon,{type:"light",name:"storage"}),a.label," (",a.namespace,")"),a.isFedManaged&&h.default.createElement(g.Tooltip,{content:e.props.tipMessage||t("FEDPROJECT_RESOURCE_TIP")},h.default.createElement(g.Icon,{className:N.default.tip,name:"question"})))},e.handleOk=function(){var t,a=e.props.onOk,r=e.state,n=r.allowSnapshot,l=r.selectedVolume;e.form.current.validator((function(){if(n){var r=e.form.current.props.data;""!==l&&(t=(0,C.toJS)(e.volumeStore.list.data).filter((function(e){return e.name===l}))[0].namespace),a(I(I({},r),{},{namespace:t}))}}))},e}return(0,d.default)(n,[{key:"componentDidMount",value:function(){this.props.volumeSelect&&(this.fetchList(),this.getSnapShotClassList())}},{key:"getSnapShotClassList",value:function(){var e=this.props,t={namespace:e.namespace,cluster:e.cluster,limit:-1};this.snapShotClassStore.fetchList(t)}},{key:"saveVolumeInfo",value:function(){var e=this,t=this.state.selectedVolume;if(t){var a=(0,C.toJS)(this.volumeStore.list.data).filter((function(e){return e.name===t}))[0];a&&this.setState({volumeInfo:a},(function(){e.getStorageClassInfo()}))}}},{key:"getSnapShotClass",value:function(e){if(e){var t=(0,C.toJS)(this.snapShotClassStore.list.data),a=[];t.forEach((function(t){t.driver===e&&a.push({label:t.name,value:t.name})})),this.setState({snapShotClass:a})}}},{key:"getStorageClassInfo",value:(a=(0,i.default)(l.default.mark((function e(){var t,a,r,n,o,u,c,s=this;return l.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=this.props,a=t.cluster,r=t.namespace,n=this.state.volumeInfo,o=n.storageClassName,e.prev=3,e.next=6,this.storageclass.fetchDetail({cluster:a,namespace:r,name:o});case 6:u=(0,R.default)((0,C.toJS)(this.storageclass).detail.annotations,"storageclass.kubesphere.io/allow-snapshot","false"),this.getSnapShotClass(null===(c=this.storageclass.detail)||void 0===c?void 0:c.provisioner),e.next=13;break;case 10:e.prev=10,e.t0=e.catch(3),u="false";case 13:this.setState({allowSnapshot:JSON.parse(u)},(function(){s.testRef.current.validate({sourceName:s.state.selectedVolume})}));case 14:case"end":return e.stop()}}),e,this,[[3,10]])}))),function(){return a.apply(this,arguments)})},{key:"renderVolumeSelect",value:function(){var e=this.state,a=e.pagination,r=e.isLoading;return h.default.createElement(g.Form.Item,{ref:this.testRef,label:t("PERSISTENT_VOLUME_CLAIM"),rules:[{required:!0,message:t("PVC_NOT_SELECT")},{validator:this.volumeValidator}],desc:t("SELECT_A_VOLUME_DESC")},h.default.createElement(g.Select,{searchable:!0,name:"sourceName",className:N.default.input,options:this.volumeList,pagination:a,onFetch:this.fetchList,onChange:this.volumeChange,isLoading:r,optionRenderer:this.optionRenderer,clearable:!0}))}},{key:"render",value:function(){var e=this.props,a=e.visible,r=e.isSubmitting,n=e.onCancel,l=e.title,o=e.options,u=e.volumeSelect,c=this.state,s=c.snapShotClass,i=c.formData;return h.default.createElement(b.default,{icon:"pen",width:600,title:l,onOk:this.handleOk,onCancel:n,visible:a,isSubmitting:r},h.default.createElement(g.Form,{data:i,ref:this.form},u&&this.renderVolumeSelect(),h.default.createElement(g.Form.Item,{label:t("NAME"),rules:[{required:!0,message:t("NAME_EMPTY_DESC")},{pattern:y.PATTERN_NAME,message:t("INVALID_NAME_DESC",{message:t("LONG_NAME_DESC")})}],desc:t("LONG_NAME_DESC")},h.default.createElement(g.Input,{name:"name",maxLength:253,className:N.default.input})),h.default.createElement(g.Form.Item,{label:t("VOLUME_SNAPSHOT_CLASS"),rules:[{required:!0,message:t("SNAPSHOT_EMPTY_TIP")}],desc:t("SELECT_VOLUME_SNAPSHOT_CLASS_DESC")},h.default.createElement(g.Select,{name:"type",options:u?s:o,placeholder:" ",className:N.default.input}))))}},{key:"volumeList",get:function(){return(0,C.toJS)(this.volumeStore.list.data).map((function(e){return{value:e.name,label:e.name,disabled:!e.inUse||e.isFedManaged,isFedManaged:e.isFedManaged,namespace:e.namespace}}))}}]),n}(h.default.Component),c.propTypes={detail:E.default.object,visible:E.default.bool,onOk:E.default.func,onCancel:E.default.func,isSubmitting:E.default.bool,snapshotOption:E.default.array,volumeSelect:E.default.bool},c.defaultProps={visible:!1,onOk:function(){},onCancel:function(){},isSubmitting:!1,snapshotOption:[],volumeSelect:!1},u=s))||u;a.default=A},function(e,t,a){e.exports={input:"zvTsfyLRc9lqKCZ7OH12O",option:"_3FKGkuuhvdnSIGOarex_36",tip:"_3L7C3cYavlloj_j_uwkS9I"}},function(e,a,r){"use strict";var n=r(157),l=r(20);r(12),r(11),r(6),r(87),r(9),r(13),r(10),r(4),r(23),r(17),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(45),r(11),r(6),r(28),r(87),r(42),r(34),r(15),r(9),r(13),r(10),r(4),r(23),r(57),r(17),r(7);var o=l(r(30)),u=l(r(36)),c=l(r(37)),s=l(r(55)),i=l(r(56)),f=l(r(51)),d=n(r(0)),p=l(r(1084)),m=l(r(1)),v=r(186),h=l(r(787)),E=l(r(966)),y=l(r(3604));function g(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function b(e){for(var t=1;t0&&void 0!==n[0]?n[0]:{},e.next=3,r.fetchList(y(y({},t),{},{status:"available"}));case 3:a=r.list.data.map((function(e){return{label:e.name,value:e.name}})),g(a);case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();(0,p.useEffect)((function(){b()}),[]);var S=r.list;return p.default.createElement(f.Select,(0,l.default)({pagination:(0,v.default)(S,["page","limit","total"]),isLoading:S.isLoading,onChange:function(e){if(e){var a=r.list.data.find((function(t){return t.name===e}));t(e,(0,h.toJS)(a))}else t(e)},options:E,onFetch:b,searchable:!0,clearable:!0},a))}));t.default=g},function(e,t,a){e.exports={wrapper:"_2a9sRw3e8FcMiSbR4y1l_2",action:"_3DAwICPafejRhgveWMIef7"}},function(e,t,a){"use strict";a(15);var r=a(20);Object.defineProperty(t,"__esModule",{value:!0}),t.APPLY_SNAPSHOT_FORM_STEPS=t.default=void 0;var n=r(a(974)),l=r(a(1786)),o=r(a(3616)),u=r(a(3618)),c=[{title:"BASIC_INFORMATION",icon:"cdn",component:n.default,required:!0},{title:"STORAGE_SETTINGS",icon:"storage",component:l.default,required:!0},{title:"ADVANCED_SETTINGS",icon:"slider",component:o.default,required:!0}];t.default=c;var s=[{title:"BASIC_INFORMATION",icon:"cdn",component:n.default,required:!0},{title:"STORAGE_SETTINGS",icon:"storage",component:u.default,required:!0},{title:"ADVANCED_SETTINGS",icon:"slider",component:o.default,required:!0}];t.APPLY_SNAPSHOT_FORM_STEPS=s},function(e,a,r){"use strict";r(15);var n=r(20);r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(42),r(4),r(23),r(57),r(17);var l=n(r(36)),o=n(r(37)),u=n(r(55)),c=n(r(56)),s=n(r(51)),i=n(r(0)),f=n(r(26)),d=r(72),p=r(186),m=n(r(3617));function v(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,s.default)(e);if(t){var n=(0,s.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,c.default)(this,a)}}var h=function(e){(0,u.default)(r,e);var a=v(r);function r(){return(0,l.default)(this,r),a.apply(this,arguments)}return(0,o.default)(r,[{key:"render",value:function(){var e=this.props,a=e.store,r=e.formRef;return i.default.createElement(p.Form,{data:this.fedFormTemplate,ref:r},i.default.createElement(p.Form.Group,{label:t("ADD_METADATA"),desc:t("VOLUME_ADD_METADATA_DESC"),keepDataWhenUnCheck:!0,checkable:!0},i.default.createElement(m.default,{store:a,cluster:this.cluster,namespace:this.namespace,formTemplate:this.fedFormTemplate})))}},{key:"cluster",get:function(){return this.props.cluster}},{key:"namespace",get:function(){return(0,f.default)(this.formTemplate,"metadata.namespace")}},{key:"formTemplate",get:function(){var e=this.props,t=e.formTemplate,a=e.module;return(0,f.default)(t,d.MODULE_KIND_MAP[a],t)}},{key:"fedFormTemplate",get:function(){return this.props.isFederated?(0,f.default)(this.formTemplate,"spec.template"):this.formTemplate}}]),r}(i.default.Component);a.default=h},function(e,a,r){"use strict";r(15);var n=r(20);r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(42),r(4),r(23),r(57),r(17);var l=n(r(36)),o=n(r(37)),u=n(r(55)),c=n(r(56)),s=n(r(51)),i=n(r(0)),f=r(186),d=n(r(842));function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,s.default)(e);if(t){var n=(0,s.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,c.default)(this,a)}}var m=function(e){(0,u.default)(r,e);var a=p(r);function r(){return(0,l.default)(this,r),a.apply(this,arguments)}return(0,o.default)(r,[{key:"render",value:function(){return i.default.createElement(i.default.Fragment,null,i.default.createElement(f.Form.Item,{label:t("LABEL_PL")},i.default.createElement(d.default,{name:"metadata.labels",addText:t("ADD")})),i.default.createElement(f.Form.Item,{label:t("ANNOTATION_PL")},i.default.createElement(d.default,{name:"metadata.annotations",addText:t("ADD")})))}}]),r}(i.default.Component);a.default=m},function(e,a,r){"use strict";r(15);var n=r(20);r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(42),r(4),r(23),r(57),r(17);var l=n(r(36)),o=n(r(37)),u=n(r(55)),c=n(r(56)),s=n(r(51)),i=n(r(0)),f=n(r(26)),d=r(72),p=r(186),m=n(r(1363));function v(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,s.default)(e);if(t){var n=(0,s.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,c.default)(this,a)}}var h=["ReadWriteOnce","ReadOnlyMany","ReadWriteMany"],E=function(e){(0,u.default)(r,e);var a=v(r);function r(){return(0,l.default)(this,r),a.apply(this,arguments)}return(0,o.default)(r,[{key:"render",value:function(){var e=this.props.formRef;return i.default.createElement(p.Form,{data:this.formTemplate,ref:e},i.default.createElement(p.Form.Item,{label:t("ACCESS_MODE_TCAP"),rules:[{required:!0}]},i.default.createElement(m.default,{name:"spec.accessModes[0]",defaultValue:(0,f.default)(h,"[0]",""),supportedAccessModes:h})))}},{key:"formTemplate",get:function(){var e=this.props,t=e.formTemplate,a=e.module;return(0,f.default)(t,d.MODULE_KIND_MAP[a],t)}}]),r}(i.default.Component);a.default=E},function(e,t,a){"use strict";a(15);var r=a(20);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(a(1755)),l=r(a(3620)),o=[{title:"BASIC_INFORMATION",component:n.default,required:!0},{title:"SNAPSHOT_CLASS_SETTINGS",component:l.default,required:!0}];t.default=o},function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(18),r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(18),r(42),r(4),r(23),r(57),r(17);var l,o=n(r(36)),u=n(r(37)),c=n(r(55)),s=n(r(56)),i=n(r(51)),f=n(r(0)),d=n(r(26)),p=n(r(247)),m=r(186),v=r(72),h=n(r(866)),E=r(14);function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,i.default)(e);if(t){var n=(0,i.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,s.default)(this,a)}}var g=(0,r(239).observer)(l=function(e){(0,c.default)(r,e);var a=y(r);function r(){var e;(0,o.default)(this,r);for(var t=arguments.length,n=new Array(t),l=0;l(0,v.default)(e.props.formTemplate,"ingester.replicas")?n({message:t("LOCAL_STORAGE_ERROR_MESSAGE")}):n()},e}return(0,i.default)(r,[{key:"render",value:function(){return m.default.createElement(y.Form.Group,null,m.default.createElement(y.Columns,null,m.default.createElement(y.Column,null,m.default.createElement(y.Form.Item,{label:t("DATA_RETENTION_REPLICA_COUNT"),desc:t("REPLICA_DESC",{resource:t("DATA_RETENTION_LOW"),default:1}),rules:[{validator:this.replicasValidator}]},m.default.createElement(y.Select,{name:"router.replicationFactor",options:this.replicationFactorOpts,defaultValue:1}))),m.default.createElement(y.Column,null,m.default.createElement(y.Form.Item,{label:t("COMPONENT_REPLICA_COUNT"),desc:t("REPLICA_DESC",{resource:t("ROUTER_COMPONENT_LOW"),default:2})},m.default.createElement(g.default,{name:"router.replicas",integer:!0,min:0,defaultValue:2,controls:!0})))),m.default.createElement(y.Columns,null,m.default.createElement(y.Column,null,m.default.createElement(y.Form.Item,{label:t("CONTAINER_QUOTA")},m.default.createElement(b.default,(0,c.default)({name:"router.resources"},this.resourceLimitProps))))))}},{key:"resourceLimitProps",get:function(){var e=this,t=this.props.formTemplate;return{memoryProps:{unit:"Gi"},defaultValue:{limits:{cpu:(0,v.default)(t,'router.resources["limits.cpu"]'),memory:(0,v.default)(t,'router.resources["limits.memory"]')},requests:{cpu:(0,v.default)(t,'router.resources["requests.cpu"]'),memory:(0,v.default)(t,'router.resources["requests.memory"]')}},onError:function(t){e.context.setError(!!t)}}}},{key:"replicationFactorOpts",get:function(){return[1,2,3].map((function(e){return{label:e,value:e}}))}}]),r}(m.default.Component),o.contextTypes={setError:E.PropTypes.func},l=u))||l;a.default=_},function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(42),r(4),r(23),r(57),r(17);var l,o,u,c=n(r(315)),s=n(r(36)),i=n(r(37)),f=n(r(55)),d=n(r(56)),p=n(r(51)),m=n(r(0)),v=n(r(26)),h=r(239),E=r(1),y=r(186),g=n(r(799)),b=n(r(872));function S(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,p.default)(e);if(t){var n=(0,p.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,d.default)(this,a)}}var _=(0,h.observer)((u=o=function(e){(0,f.default)(r,e);var a=S(r);function r(){var e;(0,s.default)(this,r);for(var n=arguments.length,l=new Array(n),o=0;o0&&void 0!==arguments[0]?arguments[0]:{};t.name&&t.namespace&&this.store.fetchDetail(t).then((function(){e.setState({formTemplate:(0,d.toJS)(e.store.detail._originData)})}))}},{key:"renderForm",value:function(){return i.default.createElement(y.default,{formRef:this.formRef,formTemplate:this.state.formTemplate})}},{key:"render",value:function(){var e=this.props,a=e.visible,r=e.isSubmitting,n=e.detail;return i.default.createElement(E.default,{width:1162,title:t("EDIT_SERVICE"),onOk:n.type!==m.SERVICE_TYPES.Unknown?this.handleOk:null,onCancel:this.handleCancel,okText:t("OK"),visible:a,isSubmitting:r},i.default.createElement(h.Loading,{spinning:this.store.isLoading},this.renderForm()))}}]),r}(i.default.Component);a.default=b,b.propTypes={visible:f.default.bool,detail:f.default.object,onOk:f.default.func,onCancel:f.default.func,isSubmitting:f.default.bool},b.defaultProps={visible:!1,detail:{},onOk:function(){},onCancel:function(){},isSubmitting:!1}},function(e,a,r){"use strict";r(15);var n=r(20);r(18),r(10),r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(18),r(42),r(10),r(4),r(23),r(57),r(17);var l=n(r(36)),o=n(r(37)),u=n(r(55)),c=n(r(56)),s=n(r(51)),i=n(r(0)),f=n(r(26)),d=n(r(1338)),p=r(186),m=n(r(1045)),v=n(r(816)),h=n(r(3652));function E(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,s.default)(e);if(t){var n=(0,s.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,c.default)(this,a)}}var y=function(e){(0,u.default)(r,e);var a=E(r);function r(){return(0,l.default)(this,r),a.apply(this,arguments)}return(0,o.default)(r,[{key:"renderName",value:function(){return i.default.createElement(p.Form.Item,{label:t("NAME")},i.default.createElement(p.Input,{name:"metadata.name",disabled:!0}))}},{key:"renderSelectorLabels",value:function(){var e=(0,f.default)(this.props.formTemplate,"spec.selector",{});return i.default.createElement(p.Form.Item,{label:t("SELECTOR")},i.default.createElement("div",{className:h.default.selectors},Object.keys(e).map((function(t){return i.default.createElement(m.default,{key:t,name:t,value:e[t]})}))))}},{key:"renderTypeSelect",value:function(){return i.default.createElement(p.Form.Item,{label:t("INTERNAL_ACCESS_MODE")},i.default.createElement(v.default,{className:"margin-b12",value:this.state.serviceType,onChange:this.handleTypeChange,options:this.types,disabled:!0}))}},{key:"render",value:function(){var e=this.props.formRef;return i.default.createElement("div",{className:h.default.wrapper},i.default.createElement(p.Form,{data:this.formTemplate,ref:e},this.renderName(),this.renderTypeSelect(),this.renderSelectorLabels(),this.renderPorts()))}}]),r}(d.default);a.default=y},function(e,t,a){e.exports={card:"_1RshJt8HTq5HgEme5DfSMo",tabs:"wyrLrVtofUNlEaiwxIeFK",label:"QqDn4rm7cZu-6-D4Z5tTh",selectors:"_3_DdQN134r--ART1Vr6ZI9"}},function(e,t,a){"use strict";a(15);var r=a(20);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=a(52),l=r(a(974)),o=r(a(932)),u=r(a(971)),c=r(a(1043)),s=[{title:"BASIC_INFORMATION",icon:"cdn",component:l.default,required:!0},{title:"POD_SETTINGS",icon:"docker",component:(0,n.withProps)(o.default,{withService:!0}),required:!0},{title:"STORAGE_SETTINGS",icon:"storage",component:u.default,required:!0},{title:"ADVANCED_SETTINGS",icon:"slider",component:c.default,required:!0}];t.default=s},function(e,t,a){"use strict";a(15);var r=a(20);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(a(974)),l=r(a(932)),o=r(a(971)),u=r(a(1043)),c=[{title:"BASIC_INFORMATION",icon:"cdn",component:n.default,required:!0},{title:"POD_SETTINGS",icon:"docker",component:l.default,required:!0},{title:"STORAGE_SETTINGS",icon:"storage",component:o.default,required:!0},{title:"ADVANCED_SETTINGS",icon:"slider",component:u.default,required:!0}];t.default=c},function(e,t,a){"use strict";a(15);var r=a(20);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=a(52),l=r(a(974)),o=r(a(971)),u=r(a(1043)),c=r(a(1787)),s=r(a(1788)),i=[{title:"BASIC_INFORMATION",icon:"cdn",component:(0,n.withProps)(l.default,{maxNameLength:63}),required:!0},{title:"STRATEGY_SETTINGS",icon:"job",component:c.default,required:!0},{title:"POD_SETTINGS",icon:"docker",component:s.default,required:!0},{title:"STORAGE_SETTINGS",icon:"storage",component:o.default,required:!0},{title:"ADVANCED_SETTINGS",icon:"slider",component:u.default,required:!0}];t.default=i},function(e,t,a){"use strict";a(15);var r=a(20);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=a(52),l=r(a(3657)),o=r(a(1787)),u=r(a(1788)),c=r(a(971)),s=r(a(1043)),i=[{title:"BASIC_INFORMATION",icon:"cdn",component:l.default,required:!0},{title:"STRATEGY_SETTINGS",icon:"cron-job",component:(0,n.withProps)(o.default,{prefix:"spec.jobTemplate.spec."}),required:!0},{title:"POD_SETTINGS",icon:"docker",component:(0,n.withProps)(u.default,{prefix:"spec.jobTemplate.spec.template."}),required:!0},{title:"STORAGE_SETTINGS",icon:"storage",component:(0,n.withProps)(c.default,{prefix:"spec.jobTemplate.spec.template."}),required:!0},{title:"ADVANCED_SETTINGS",icon:"slider",component:(0,n.withProps)(s.default,{prefix:"spec.jobTemplate.spec.template."}),required:!0}];t.default=i},function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(48),r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(48),r(42),r(4),r(23),r(57),r(17);var l=n(r(36)),o=n(r(37)),u=n(r(55)),c=n(r(56)),s=n(r(51)),i=r(186),f=n(r(799)),d=n(r(1107)),p=n(r(951)),m=n(r(800)),v=n(r(26)),h=n(r(74)),E=n(r(0)),y=r(52),g=r(72);function b(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,s.default)(e);if(t){var n=(0,s.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,c.default)(this,a)}}var S=function(e){(0,u.default)(r,e);var a=b(r);function r(){var e;(0,l.default)(this,r);for(var n=arguments.length,o=new Array(n),u=0;u1&&f.default.createElement(y.default,{steps:this.steps,current:r})),f.default.createElement("div",{className:S.default.headerBottom}))}},{key:"renderFooter",value:function(){var e=this.props,a=e.onCancel,r=e.isSubmitting,n=this.state.currentStep,l=this.steps.length-1;return f.default.createElement("div",{className:S.default.footer},f.default.createElement("div",{className:S.default.wrapper},f.default.createElement("div",{className:"text-right"},f.default.createElement(m.Button,{onClick:a},t("CANCEL")),n>0&&f.default.createElement(m.Button,{type:"control",onClick:this.handlePrev},t("PREVIOUS")),n=a?f.default.createElement(d.Icon,{name:"success",type:"coloured",size:12}):f.default.createElement(d.Icon,{name:"dot",type:"light",size:12}),f.default.createElement("span",null,t(e.title)))})))}}]),r}(f.Component);a.default=v},function(e,t,a){e.exports={wrapper:"_2dFP1gLucRGN5yjrJBJ0Wr"}},function(e,a,r){"use strict";var n=r(20);r(12),r(187),r(11),r(6),r(18),r(9),r(13),r(10),r(4),r(23),r(17),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(45),r(187),r(11),r(6),r(18),r(28),r(859),r(42),r(34),r(15),r(9),r(13),r(10),r(4),r(23),r(57),r(17),r(7);var l,o=n(r(30)),u=n(r(36)),c=n(r(37)),s=n(r(55)),i=n(r(56)),f=n(r(51)),d=r(186),p=n(r(241)),m=r(239),v=n(r(0)),h=n(r(322)),E=r(72),y=n(r(3663));function g(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function b(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,f.default)(e);if(t){var n=(0,f.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,i.default)(this,a)}}var S=(0,m.observer)(l=function(e){(0,s.default)(r,e);var a=b(r);function r(e){var n;return(0,u.default)(this,r),(n=a.call(this,e)).fetchUsers=function(e){return n.userStore.fetchList(function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};t.clusterStore.fetchList(R(R({limit:-1},e),{},{labelSelector:"cluster-role.kubesphere.io/edge"}))},t.handleEdgeClusterSelectChange=function(e){(0,t.props.onChange)([{name:e}])},t.clearFilter=function(){t.setState({filters:{}}),t.fetchData()},t.handleReset=function(){var e=t.state.filters;t.fetchData(e)},t.clusterStore=new g.default,t.state={filters:{}},t}return(0,s.default)(r,[{key:"componentDidMount",value:function(){this.fetchData()}},{key:"render",value:function(){var e=this,a=t("NO_CLUSTER_AVAILABLE_DESC",{type:t("EDGE_CLUSTER")}),r=this.state.filters,n=(0,m.toJS)(this.clusterStore.list),l=n.data,o=n.isLoading;return(0,v.default)(l)&&(0,v.default)(r)&&!o?p.default.createElement(y.Alert,{type:"warning",message:a}):p.default.createElement("div",{className:C.default.wrapper},p.default.createElement("div",{className:"margin-b12"},p.default.createElement(O.default,{placeholder:t("SEARCH_BY_NAME"),columns:this.columns,onChange:function(t){e.setState({filters:t}),e.fetchData(t)},filters:this.state.filters})),p.default.createElement(y.RadioGroup,{onChange:this.handleEdgeClusterSelectChange},l.map((function(e){return p.default.createElement("div",{key:e.name,className:(0,h.default)(C.default.item,(0,u.default)({},C.default.disabled,!globals.app.isMultiCluster)),"data-cluster":e.name},p.default.createElement(y.Radio,{key:e.name,value:e.name,disabled:!1}),p.default.createElement(_.default,{className:C.default.cluster,cluster:e,isEdgeWize:!0,noTip:!0}),p.default.createElement(b.default,{title:null==e?void 0:e.hostCluster,description:t("HOSTED_IN")}))}))),o&&p.default.createElement(y.Loading,{size:"large",className:C.default.loading}),(0,v.default)(l)&&p.default.createElement(S.default,{icon:"exclamation",title:t("NO_MATCHING_RESULT_FOUND"),desc:null,action:p.default.createElement("p",null,t("YOU_CAN_TRY_TO"),p.default.createElement("span",{className:C.default.action,onClick:this.handleReset,"data-test":"table-empty-refresh"},t("REFRESH_DATA")),t("OR"),p.default.createElement("span",{className:C.default.action,onClick:this.clearFilter,"data-test":"table-empty-clear-filter"},t("CLEAR_SEARCH_CONDITIONS")))}))}},{key:"columns",get:function(){return[{dataIndex:"name",title:t("NAME"),search:!0}]}}]),r}(p.Component))||o;a.default=N},function(e,t,a){e.exports={wrapper:"KJ3Lh4Xk2htaiyMql_3xh",item:"_26cyMRaHtZ3vk5FVgkMoT3",disabled:"_2bShAyoPylsL23eY3auTzE",cluster:"_3mBe0Id71MqWxKG-hvBcue",action:"_14EnWX5Pi3VX9QCgNTka7y",loading:"_2jSG-qG8YjAe7ytoelW_PZ",radios:"rsVd3xIVOvMbuUOa_Y-45"}},function(e,t,a){e.exports={wrapper:"R1Nn-MWwPOaptPi1tXzA6",step:"_2V9cABkYkEUjC4bpDz2wdo",upload:"_2-sPfwB-LHg4P9mpA3WhAJ"}},function(e,t,a){e.exports={modal:"ydx1TCDzXWsap7ThoXdoN",body:"_38XL2I39TDuD1GVvoZW0LQ",wrapper:"_3XK3SFG_epD4pRJnzaf6o3",header:"_1Gu0OlXBfqMPX3Jx1OqhI1",headerBottom:"_3yGJCycuKnmGI8GEnF1HDl",title:"_1fvkT6ZxavCZQF95V0OIAV",steps:"_2QTdt6PzkIwGCb1f8zjB_4",formWrapper:"-HzNn2kxNzffyKGd7DRFU",footer:"_2G9tgA343D1vegacgEoqAc"}},function(e,a,r){"use strict";var n=r(157),l=r(20);r(12),r(11),r(6),r(84),r(29),r(16),r(27),r(190),r(98),r(9),r(13),r(10),r(4),r(23),r(24),r(17),r(324),r(85),r(38),r(136),r(7),r(32),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(45),r(11),r(6),r(84),r(29),r(28),r(42),r(16),r(27),r(190),r(34),r(15),r(98),r(9),r(13),r(10),r(4),r(22),r(23),r(57),r(17),r(324),r(85),r(38),r(460),r(461),r(462),r(463),r(464),r(465),r(466),r(7),r(32);var o=l(r(43));r(41);var u=l(r(44)),c=l(r(96)),s=l(r(61)),i=l(r(30)),f=l(r(36)),d=l(r(37)),p=l(r(55)),m=l(r(56)),v=l(r(51)),h=l(r(0)),E=l(r(1)),y=r(14),g=l(r(26)),b=l(r(74)),S=l(r(1739)),_=l(r(457)),O=l(r(189)),C=r(186),T=l(r(787)),R=l(r(872)),D=r(52),N=l(r(913)),k=l(r(866)),I=n(r(1388)),P=l(r(3671));function A(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function w(e){for(var t=1;t0&&void 0!==v[0]?v[0]:{},a={storage:1/0,persistentvolumeclaims:1/0},e.next=4,this.storageStore.fetchList({cluster:t.cluster});case 4:return r=e.sent,e.next=7,this.store.fetchDetail({name:t.name,workspace:t.name,cluster:t.cluster});case 7:n=(0,y.toJS)(this.store.detail),l=(0,g.default)(n,"status.total.used",{}),u=(0,g.default)(n,"spec.quota.hard",{}),c=(0,g.default)(u,["requests.storage"],null),i=(0,g.default)(u,"persistentvolumeclaims",null),f=(0,g.default)(l,"persistentvolumeclaims","0"),d=(0,g.default)(l,["requests.storage"],"0Gi"),c&&(c=(0,D.memoryFormat)(c,"Gi"),d=(0,D.memoryFormat)(d,"Gi"),a.storage=(0,S.default)(c,d)),i&&(a.persistentvolumeclaims=(0,S.default)(Number(i),Number(f))),p={"requests.storage":c?"".concat(c,"Gi"):"InfinityGi",persistentvolumeclaims:i||""},Object.keys(u).forEach((function(e){(e.includes(I.STORAGE_CLASS_STORAGE)||e.includes(I.STORAGE_CLASS_VOLUME_CLAIMS))&&(p[e]=u[e])})),this.setState({formTemplate:(0,y.toJS)(this.store.detail),spec:p,allStorageClass:(0,s.default)(r),availableQuota:w({},a)},(function(){m.setRelateSourceResult()}));case 19:case"end":return e.stop()}}),e,this)}))),function(){return a.apply(this,arguments)})},{key:"render",value:function(){var e=this.props,a=e.visible,r=e.onCancel,n=e.isSubmitting,l=this.state,o=l.error,u=l.spec,c=l.allStorageClass,s=l.availableQuota,i=l.disableSave,f=l.currentRelatedStorageTotal,d=l.currentRelatedVolumeClaimsTotal,p=l.totalStorageError,m=l.totalVolumeClaimsError,v=l.addedItems;return h.default.createElement(T.default.Form,{width:960,title:t("EDIT_WORKSPACE_QUOTAS"),icon:"pen",data:this.state.formTemplate,onOk:this.handleOk,onCancel:r,visible:a,isSubmitting:n,disableOk:!!o||i},h.default.createElement("div",{className:P.default.body,id:"viewBox"},h.default.createElement(C.Form.Item,null,h.default.createElement(R.default,this.resourceLimitProps)),h.default.createElement(C.Form.Item,null,h.default.createElement(I.default,{quota:u,isWorkspace:!0,availableQuota:s,allStorageClass:c,onChange:this.handleOnChange,renderOutOfLimitTip:p||m,totalStorageError:p,totalVolumeClaimsError:m,currentRelatedStorageTotal:f,currentRelatedVolumeClaimsTotal:d,addedItems:v}))))}},{key:"resourceLimitProps",get:function(){var e=this,a=this.state.formTemplate;return{cpuProps:{marks:[{value:0,label:t("NO_REQUEST"),weight:4},{value:1,label:1,weight:4},{value:2,label:2,weight:2},{value:3,label:3,weight:2},{value:4,label:4},{value:5,label:5},{value:6,label:6},{value:7,label:7},{value:8,label:8},{value:1/0,label:t("NO_LIMIT")}]},memoryProps:{marks:[{value:0,label:t("NO_REQUEST"),weight:4},{value:2,label:2,weight:4},{value:4,label:4,weight:2},{value:6,label:6,weight:2},{value:8,label:8},{value:10,label:10},{value:12,label:12},{value:14,label:14},{value:16,label:16},{value:1/0,label:t("NO_LIMIT")}],unit:"Gi",valueFormatter:function(e){return e>0&&e<1?e.toFixed(2):e>1&&e!==1/0?e.toFixed(1):e}},defaultValue:{limits:{cpu:(0,g.default)(a,'spec.quota.hard["limits.cpu"]'),memory:(0,g.default)(a,'spec.quota.hard["limits.memory"]')},requests:{cpu:(0,g.default)(a,'spec.quota.hard["requests.cpu"]'),memory:(0,g.default)(a,'spec.quota.hard["requests.memory"]')}},onChange:function(e){(0,b.default)(a,'spec.quota.hard["limits.cpu"]',(0,g.default)(e,"limits.cpu",null)),(0,b.default)(a,'spec.quota.hard["limits.memory"]',(0,g.default)(e,"limits.memory",null)),(0,b.default)(a,'spec.quota.hard["requests.cpu"]',(0,g.default)(e,"requests.cpu",null)),(0,b.default)(a,'spec.quota.hard["requests.memory"]',(0,g.default)(e,"requests.memory",null))},onError:function(t){e.setState({error:t})}}}}]),n}(h.default.Component);a.default=L,L.propTypes={detail:E.default.object,visible:E.default.bool,onOk:E.default.func,onCancel:E.default.func,isSubmitting:E.default.bool},L.defaultProps={visible:!1,isSubmitting:!1,detail:{},onOk:function(){},onCancel:function(){}}},function(e,t,a){e.exports={body:"_3gx-epim1LPGcKH75fP9Qu",quotaItem:"_3WPJPpKpsaYoGbWbJfWdgZ",label:"_1Gv6t_kWjdKJhsCfZ6sKDp"}},function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(4),r(23),r(24),r(17),r(136),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(42),r(4),r(23),r(57),r(17);var l=n(r(36)),o=n(r(37)),u=n(r(55)),c=n(r(56)),s=n(r(51)),i=n(r(0)),f=n(r(1)),d=r(186),p=n(r(787)),m=n(r(3673));function v(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,s.default)(e);if(t){var n=(0,s.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,c.default)(this,a)}}var h=function(e){(0,u.default)(r,e);var a=v(r);function r(){var e;(0,l.default)(this,r);for(var t=arguments.length,n=new Array(t),o=0;o",value:">"},{label:">=",value:">="},{label:"<",value:"<"},{label:"<=",value:"<="}];t.SEVERITY_LEVEL=[{type:"critical",prefixIcon:"information",color:{primary:"#fae7e5",secondary:"#ca2621"},label:"CRITICAL_ALERT",value:"critical"},{type:"error",prefixIcon:"information",color:{primary:"#fae7e5",secondary:"#f5a623"},label:"ERROR_ALERT",value:"error"},{className:"tag-ffd939",prefixIcon:"information",color:{primary:"#fae7e5",secondary:"#FFD939"},label:"WARNING_ALERT",value:"warning"},{type:"secondary",prefixIcon:"information",color:{primary:"#fae7e5",secondary:"#79879c"},label:"INFO_ALERT",value:"info"}];var c=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.comparator,a=void 0===t?{}:t,r=e.thresholds,n=void 0===r?{}:r;return[o({name:"comparator",options:u,placeholder:"CONDITION_OPERATOR"},a),o({type:"number",name:"thresholds",placeholder:"THRESHOLD"},n)]};t.getBaseRuleConfig=c;var s=c({thresholds:{min:0}});t.BASE_RULE_CONFIG=s;var i=c({thresholds:{min:0,max:100,unit:"%"}});t.PERCENT_RULE_CONFIG=i;var f=c({thresholds:{min:0,max:1e4,unit:"s"}});t.TIME_RULE_CONFIG=f;var d=c({thresholds:{unit:"core",min:0}});t.CPU_RULE_CONFIG=d;var p=c({thresholds:{unit:"Mi",min:0}});t.MEMORY_RULE_CONFIG=p;var m=c({thresholds:{unit:"GB",min:0}});t.DISK_RULE_CONFIG=m;var v=c({thresholds:{unit:"MB",min:0}});t.DISK_MB_RULE_CONFIG=v;var h=c({thresholds:{unit:"KB/s",min:0}});t.THROUGHPUT_RULE_CONFIG=h;var E=c({thresholds:{unit:"Mbps",min:0,converter:function(e){return e*(Math.pow(1024,2)/8)}}});t.BANDWIDTH_RULE_CONFIG=E;var y=c({thresholds:{unit:"",min:0}});t.ITEM_RULE_CONFIG=y;var g=c({thresholds:{unit:"byte",min:0}});t.BYTE_RULE_CONFIG=g;var b=c({comparator:{disabled:!0,value:"-",options:[{label:"- ",value:"-"}]},thresholds:{disabled:!0,value:"-",type:"text"}});t.disabledRuleConfig=b},,,,,function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(84),r(48),r(4),r(23),r(17),r(85),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(84),r(48),r(42),r(4),r(23),r(57),r(17),r(85);var l,o=n(r(36)),u=n(r(37)),c=n(r(55)),s=n(r(56)),i=n(r(51)),f=n(r(0)),d=r(186),p=n(r(800)),m=n(r(26)),v=n(r(74)),h=r(239),E=r(52),y=r(72),g=n(r(1107)),b=n(r(439));function S(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,i.default)(e);if(t){var n=(0,i.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,s.default)(this,a)}}var _=(0,h.observer)(l=function(e){(0,c.default)(r,e);var a=S(r);function r(){var e;(0,o.default)(this,r);for(var n=arguments.length,l=new Array(n),u=0;ur&&a(Number(u)-1)}},e}return(0,c.default)(a,[{key:"render",value:function(){var e=this.props,t=e.className,a=e.unit,r=e.showUnit,l=e.value,u=e.defaultValue,c=(e.onChange,e.integer,e.showFunc),s=e.style,i=void 0===s?{}:s,f=(0,o.default)(e,["className","unit","showUnit","value","defaultValue","onChange","integer","showFunc","style"]),p=(0,m.default)(l)?u:l;a&&(p=(0,v.default)(p,a));var g=b(b({type:"text"},f),{},{value:(0,m.default)(p)?"":p,onChange:this.handleChange});return a&&r||c?d.default.createElement("div",{className:(0,h.default)(t,y.default.withUnit),style:i},d.default.createElement(E.Input,g),d.default.createElement("div",{className:y.default.funcContainer},d.default.createElement("span",null,a),c&&d.default.createElement("div",{className:y.default.func},d.default.createElement(E.Icon,{name:"chevron-up",clickable:!0,onClick:this.add}),d.default.createElement(E.Icon,{name:"chevron-down",clickable:!0,onClick:this.subtract})))):d.default.createElement(E.Input,(0,n.default)({className:t,style:i},g))}}]),a}(p.default);t.default=_},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,a,r){"use strict";r(15);var n=r(20);Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var l=n(r(0)),o=r(186),u=n(r(787)),c=n(r(2241)),s=function(e){var a=e.onCancel,r=e.title,n=e.visible,s=e.isSubmitting,i=e.desc,f=e.icon;return l.default.createElement(u.default,{width:600,onOk:function(){e.onOk()},okText:t("OK"),onCancel:a,visible:n,isSubmitting:s,hideHeader:!0},l.default.createElement("div",{className:c.default.title},f?l.default.createElement(o.Icon,{name:f,size:20}):l.default.createElement(o.Icon,{name:"information",size:20,className:c.default.icon}),r),l.default.createElement("p",{className:c.default.desc},i))};a.default=s},function(e,t,a){"use strict";var r=a(20);a(12),a(11),a(6),a(9),a(13),a(10),a(7),Object.defineProperty(t,"__esModule",{value:!0}),t.ALL_QUERY_CONFIG=t.ALL_SUMMARY_CONFIG=t.ALL_MESSAGE_CONFIG=t.ALL_METRICS_CONFIG=t.RESOURCE_METRICS_CONFIG=void 0,a(12),a(11),a(6),a(28),a(34),a(15),a(9),a(13),a(10),a(4),a(7);var n,l=r(a(30)),o=a(815),u=r(a(2281)),c=r(a(2282)),s=r(a(2283)),i=r(a(2284)),f=r(a(2285)),d=r(a(2286)),p=r(a(2287)),m=r(a(2288));function v(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function h(e){for(var t=1;t=0?l[a]=e:l.push(e),(0,p.default)(r,"spec.rules",l),n.updateTLS(r),t&&n.updateOverrides(),n.closeModal()},n.handleDelete=function(e){var t=n.props.isFederated,a=n.fedFormTemplate,r=(0,d.default)(a,"spec.rules",[]);r.splice(e,1),(0,p.default)(a,"spec.rules",r),n.updateTLS(a),t&&n.updateOverrides(),n.closeModal()},n.rulesValidator=function(e,a,r){if((0,m.default)(a))return r({message:t("ROUTING_RULE_EMPTY_DESC")});r()},n.state={showRule:!1,selectRuleIndex:-1,gateway:{},oldTemplate:{},isLoading:!1,operation:""},n.secretStore=new O.default,n.serviceStore=new C.default,e.isFederated&&(n.secretStore=new T.default({module:n.secretStore.module}),n.serviceStore=new T.default({module:n.serviceStore.module})),n}return(0,u.default)(r,[{key:"componentDidMount",value:function(){this.secretStore.fetchList({namespace:this.namespace,cluster:this.cluster,limit:-1}),this.serviceStore.fetchList({namespace:this.namespace,cluster:this.cluster,limit:-1,labelSelector:(0,S.joinSelector)(this.props.selector)})}},{key:"updateTLS",value:function(e){var t=(0,d.default)(e,"spec.rules",[]).filter((function(e){return"https"===e.protocol&&e.secretName})).reduce((function(e,t){var a=t.secretName,r=t.host,n=t.clusters,l=e.find((function(e){return e.secretName===a}));return l?(l.hosts=l.hosts||[],-1===l.hosts.indexOf(r)&&l.hosts.push(r)):e.push({hosts:[r],secretName:a,clusters:n}),e}),[]);(0,p.default)(e,"spec.tls",t)}},{key:"updateOverrides",value:function(){var e=[],t=(0,d.default)(this.fedFormTemplate,"spec.rules",[]),a=(0,d.default)(this.fedFormTemplate,"spec.tls",[]);(0,d.default)(this.props.projectDetail,"clusters",[]).forEach((function(r){var n=function(e){return e.filter((function(e){return e.clusters.includes(r.name)})).map((function(e){return(0,v.default)(e,"clusters")}))};e.push({clusterName:r.name,clusterOverrides:[{path:"/spec/rules",value:n(t)},{path:"/spec/tls",value:n(a)}]})})),(0,p.default)(this.formTemplate,"spec.overrides",e)}},{key:"renderRuleForm",value:function(e){var t=this.props,a=t.isFederated,r=t.projectDetail,n=t.namespace,l=t.formTemplate,o=t.detail,u=(0,y.toJS)(this.services),c=(0,y.toJS)(this.secretStore.list).data,s=(0,d.default)(this.fedFormTemplate,"spec.rules[".concat(e,"]"),{});return E.default.createElement(D.default,{data:s,gateway:this.state.gateway,secrets:c,services:u,isFederated:a,projectDetail:r,cluster:this.cluster,detail:o,namespace:n,validData:(0,h.default)((null==l?void 0:l.ingress)||(null==l?void 0:l.Ingress)),onSave:this.handleRule,onCancel:this.closeEditModal})}},{key:"render",value:function(){var e=this.props,t=e.formRef,a=e.isFederated,r=e.projectDetail,n=this.state,l=n.showRule,o=n.selectRuleIndex,u=n.gateway,c=n.isLoading;if(l)return this.renderRuleForm(o);var s=(0,m.default)(u)&&!c;return E.default.createElement(b.Form,{data:this.fedFormTemplate,ref:t},E.default.createElement(b.Form.Item,{rules:[{validator:this.rulesValidator}]},E.default.createElement(R.default,{name:"spec.rules",onShow:this.showRule,onEdit:this.showEdit,onDelete:this.handleDelete,disabled:s,isFederated:a,projectDetail:r})))}},{key:"formTemplate",get:function(){var e=this.props,t=e.formTemplate,a=e.module;return(0,d.default)(t,_.MODULE_KIND_MAP[a],t)}},{key:"fedFormTemplate",get:function(){return this.props.isFederated?(0,d.default)(this.formTemplate,"spec.template"):this.formTemplate}},{key:"cluster",get:function(){return this.props.cluster}},{key:"namespace",get:function(){return(0,d.default)(this.formTemplate,"metadata.namespace")}},{key:"services",get:function(){return this.serviceStore.list.data}}]),r}(E.default.Component),(0,f.default)(l.prototype,"services",[y.computed],Object.getOwnPropertyDescriptor(l.prototype,"services"),l.prototype),l),I=(0,g.observer)(k);a.default=I;var P=k;a.Component=P},,,,,,,,,,,,,,function(e,t,a){"use strict";a(15),Object.defineProperty(t,"__esModule",{value:!0}),t.STORAGE_PLUGIN_ICONS=t.NETWORK_PLUGIN_ICONS=t.NEW_CLUSTER_SPEC=t.IMPORT_EDGE_CLUSTER_SPEC=t.CREATE_EDGE_CLUSTER_SPEC=t.IMPORT_CLUSTER_SPEC=t.DEFAULT_CLUSTER_CONFIG=void 0;t.DEFAULT_CLUSTER_CONFIG={global:{imageRegistry:"registry.cn-beijing.aliyuncs.com"}};t.IMPORT_CLUSTER_SPEC={apiVersion:"cluster.kubesphere.io/v1alpha1",kind:"Cluster",spec:{provider:"",connection:{type:"direct",kubeconfig:""},joinFederation:!0}};t.CREATE_EDGE_CLUSTER_SPEC={apiVersion:"infra.edgewize.io/v1alpha1",kind:"EdgeCluster",spec:{namespace:"",hostCluster:"",advertiseAddress:[],type:"auto",kubeConfig:""},metadata:{name:""}};t.IMPORT_EDGE_CLUSTER_SPEC={apiVersion:"infra.edgewize.io/v1alpha1",kind:"Cluster",spec:{provider:"edgewize",type:"auto",kubeconfig:"",joinFederation:!1}};t.NEW_CLUSTER_SPEC={apiVersion:"kubekey.kubesphere.io/v1alpha1",kind:"Cluster",metadata:{},spec:{hosts:[],roleGroups:{},controlPlaneEndpoint:{domain:"lb.kubesphere.local",address:"",port:6443},kubernetes:{clusterName:"cluster.local",maxPods:110,etcdBackupDir:"/var/backups/kube_etcd",etcdBackupPeriod:30,keepBackupNumber:5},network:{plugin:"calico",kubePodsCIDR:"10.233.64.0/18",kubeServiceCIDR:"10.233.0.0/18",ipipMode:"Always",vxlanMode:"Never",vethMTU:1440},registry:{privateRegistry:""},addons:[{},{}]}};t.NETWORK_PLUGIN_ICONS={calico:"",flannel:"",cilium:""};t.STORAGE_PLUGIN_ICONS={nfs:"vsan"}},,,function(e,t,a){"use strict";a(15);var r=a(20);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.preview,a=e.sidebar,r=e.main;return n.default.createElement("div",{className:l.default.wrapper},n.default.createElement("div",{className:l.default.preview},t," "),n.default.createElement("div",{className:l.default.form},n.default.createElement("div",{className:l.default.sidebar},a),n.default.createElement("div",{className:l.default.resource},r)))};var n=r(a(0)),l=r(a(2828))},function(e,t,a){"use strict";a(15);var r=a(20);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"GraphTextInput",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(t,"ThemeSelector",{enumerable:!0,get:function(){return l.default}});var n=r(a(2829)),l=r(a(2831))},,,,,,,,,,,,,,,function(e,t,a){"use strict";var r=a(20);a(12),a(5),a(11),a(6),a(29),a(73),a(18),a(87),a(98),a(9),a(13),a(10),a(4),a(22),a(24),a(38),a(64),a(7),a(32),a(110),Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.MONITOR_PANEL_TYPE=void 0;var n=r(a(43));a(41);var l=r(a(44)),o=r(a(30)),u=r(a(65)),c=r(a(36)),s=r(a(37)),i=r(a(49));r(a(66));a(12),a(249),a(45),a(5),a(11),a(6),a(29),a(73),a(18),a(28),a(87),a(191),a(159),a(34),a(15),a(98),a(9),a(13),a(10),a(4),a(319),a(22),a(24),a(38),a(64),a(7),a(32),a(110);var f,d,p,m,v,h,E=r(a(96)),y=r(a(58)),g=a(14),b=r(a(26)),S=r(a(195));function _(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function O(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:a.template;a.isObserving||(a.isObserving=!0,a.pollingController=R((function(){var t=e.getTimeRange(),r=t.from,n=t.to;a.fetchMetrics({start:r.valueOf(),end:n.valueOf()})}),{interval:e.refreshMs}),a.disposer=(0,g.reaction)((function(){return{time:e.timeRange,refresh:e.refreshMs,exprs:a.config.targets.map((function(e){return e.expr})),steps:a.config.targets.map((function(e){return e.step}))}}),(function(t){var r=t.refresh;a.metrics=a.metrics.map((function(e){return O(O({},e),{},{values:[]})})),a.pollingController&&a.pollingController.stopPolling(),a.pollingController=R((function(){var t=e.getTimeRange(),r=t.from,n=t.to;a.fetchMetrics({start:r.valueOf(),end:n.valueOf()})}),{interval:r})})))},(0,u.default)(this,"fetchMetrics",h,this),this.fetchMetric=function(){var e=(0,l.default)(n.default.mark((function e(t){var r,l,o,u,c,s,i;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.expr,l=t.step,o=t.start,u=t.end,c=t.cluster,s=t.namespace,r){e.next=3;break}return e.abrupt("return",[]);case 3:return e.next=5,request.get("".concat(a.apiVersion,"/targets/query"),{cluster:c,namespace:s,expr:r,step:l,start:o,end:u},null,(function(e,t){throw new Error(t.message)}));case 5:if(e.t0=e.sent,e.t0){e.next=8;break}e.t0={};case 8:return i=e.t0,e.abrupt("return",(0,b.default)(i,"data.result",[]));case 10:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),this.stopMonitoring=function(){a.isObserving=!1,a.pollingController&&a.pollingController.stopPolling(),a.disposer&&a.disposer()},this.belong=function(e){return a.belongTo=e,a},this.config=t,this.requestID=0}return(0,s.default)(e,[{key:"getPath",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.cluster,a=e.namespace,r="";return t&&(r+="/clusters/".concat(t)),a&&(r+="/namespaces/".concat(a)),r}},{key:"apiVersion",get:function(){return"kapis/monitoring.kubesphere.io/v1beta1"}},{key:"type",get:function(){return this.config.type}},{key:"targets",get:function(){return this.config.targets||[]}},{key:"id",get:function(){return this.config.id}}]),(0,s.default)(e,[{key:"clearMonitorMetrics",value:function(){this.metrics=[]}},{key:"clone",value:function(){return new this.constructor((0,g.toJS)(this.config))}},{key:"formattedMetrics",get:function(){return this.metrics.map((function(e){var t=e.target,a=e.metric,r=e.responseMetricID,n=(0,y.default)(e,["target","metric","responseMetricID"]),l=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if((0,S.default)(e))return e.replace(/\{\{(.*?)\}\}/g,(function(e,a){return t[a]}))}(t.legendFormat,a)||r;return O(O({},n),{},{name:l})}))}}]),e}(),d=(0,i.default)(f.prototype,"errorMessage",[g.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),p=(0,i.default)(f.prototype,"config",[g.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),m=(0,i.default)(f.prototype,"metrics",[g.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),v=(0,i.default)(f.prototype,"timeRange",[g.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{start:0,end:0}}}),(0,i.default)(f.prototype,"type",[g.computed],Object.getOwnPropertyDescriptor(f.prototype,"type"),f.prototype),(0,i.default)(f.prototype,"targets",[g.computed],Object.getOwnPropertyDescriptor(f.prototype,"targets"),f.prototype),(0,i.default)(f.prototype,"clearMonitorMetrics",[g.action],Object.getOwnPropertyDescriptor(f.prototype,"clearMonitorMetrics"),f.prototype),h=(0,i.default)(f.prototype,"fetchMetrics",[g.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(){var t=(0,l.default)(n.default.mark((function t(a){var r,o,u,c,s,i,f,d,p;return n.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=a.start,o=a.end,u=e.config,c=u.targets,s=void 0===c?[]:c,i=u.cluster,f=u.namespace,e.timeRange={start:r,end:o},d={ID:++e.requestID,errorMessage:"",metrics:[]},t.prev=4,t.next=7,Promise.all(s.map(function(){var t=(0,l.default)(n.default.mark((function t(a){var l,u,c;return n.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return l=a.expr,u=a.step,t.next=3,e.fetchMetric({cluster:i,namespace:f,expr:l,step:u,start:parseInt(r/1e3,10),end:parseInt(o/1e3,10)});case 3:return c=t.sent,t.abrupt("return",{data:c,target:a});case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()));case 7:p=t.sent,d.metrics=p.reduce((function(e,t){var a=t.data,r=void 0===a?[]:a,n=t.target,l=void 0===n?{}:n,o=l.expr,u=l.refId,c=r.map((function(e){var t=e.values,a=void 0===t?[]:t,r=e.metric,n=void 0===r?{}:r,c=T(n)||o,s="".concat(u,".").concat(c);return{values:a,metric:n,target:l,id:s,responseMetricID:c}}));return e.concat(c)}),[]),t.next=14;break;case 11:t.prev=11,t.t0=t.catch(4),d.errorMessage=t.t0.message;case 14:return t.prev=14,d.ID===e.requestID&&(e.metrics=d.metrics,e.errorMessage=d.errorMessage),t.finish(14);case 17:case"end":return t.stop()}}),t,null,[[4,11,14,17]])})));return function(e){return t.apply(this,arguments)}}()}}),(0,i.default)(f.prototype,"formattedMetrics",[g.computed],Object.getOwnPropertyDescriptor(f.prototype,"formattedMetrics"),f.prototype),f);function T(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.__name__,a=(0,y.default)(e,["__name__"]);if(!t)return JSON.stringify(a||{});var r=Object.entries(a||{}).map((function(e){var t=(0,E.default)(e,2),a=t[0],r=t[1];return"".concat(a,'="').concat(r,'"')})),n=r.length?"{".concat(r.join(","),"}"):"";return"".concat(t).concat(n)}function R(e,t){var a={timer:null,stopPolling:function(){clearTimeout(a.timer)}};e();return function r(){t.interval&&(a.timer=setTimeout((function(){e(),r()}),t.interval))}(),a}t.default=C},,,,,function(e,t,a){e.exports={wrapper:"_2txp4-htvICs4f6c3rqsX6",contentWrapper:"_1ccZoq2QaWbCEWk-OZo1mE",hidden:"_1ZsdcL3CHNMzvcbO79RwNl"}},function(e,t,a){e.exports={wrapper:"wXHKYRcPKuXFRfyupNjOu",content:"_1GXH8tzUyU5FHWVbgQC2yC",search:"fIGMiznH-KyaGoj2YiJny",cardList:"_1CuokVurLCjDnq4oP4oGRR",emptyText:"_28JJz3Xe4z4rL7-NGN6z_5",emptyTipIcon:"pGMtYHHqbFWHUy30mrUf0",action:"K0VfnE3ZVeXqSI5P0ICCJ",card:"Fe47hou2kTN8vkdsVYJKD"}},function(e,a,r){"use strict";r(15);var n=r(20);r(11),r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(11),r(42),r(4),r(23),r(57),r(17);var l=n(r(36)),o=n(r(37)),u=n(r(55)),c=n(r(56)),s=n(r(51)),i=n(r(0)),f=n(r(1)),d=r(14),p=n(r(830)),m=r(186),v=n(r(787)),h=r(72);function E(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,s.default)(e);if(t){var n=(0,s.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,c.default)(this,a)}}var y=function(e){(0,u.default)(r,e);var a=E(r);function r(e){var t;return(0,l.default)(this,r),(t=a.call(this,e)).handleOk=function(e){var a=t.props,r=a.onOk,n=a.store,l=a.detail,o=n.list,u=(0,d.toJS)(o.selectedRowKeys),c=u?u.filter((function(e){return e!==l.uid})):"";r(e),u&&o.setSelectRowKeys(c)},t.state={formData:(0,p.default)((0,d.toJS)(e.detail._originData||e.detail))},t}return(0,o.default)(r,[{key:"componentDidUpdate",value:function(e){this.props.visible&&this.props.visible!==e.visible&&this.setState({formData:(0,p.default)((0,d.toJS)(this.props.detail._originData||this.props.detail))})}},{key:"render",value:function(){var e=this.props,a=e.visible,r=e.isSubmitting,n=e.onCancel,l=e.hideAlias,o=this.state.formData;return i.default.createElement(v.default.Form,{data:o,width:691,title:t("EDIT_INFORMATION"),icon:"pen",onOk:this.handleOk,okText:t("OK"),onCancel:n,visible:a,isSubmitting:r},i.default.createElement(m.Form.Item,{label:t("NAME")},i.default.createElement(m.Input,{name:"metadata.name",disabled:!0})),!l&&i.default.createElement(m.Form.Item,{label:t("ALIAS"),desc:t("ALIAS_NAME_DESC"),rules:[{pattern:h.PATTERN_ALIAS_NAME,message:t("INVALID_ALIAS_NAME_DESC")}]},i.default.createElement(m.Input,{name:"metadata.annotations['kubesphere.io/alias-name']",maxLength:63})),i.default.createElement(m.Form.Item,{label:t("DESCRIPTION"),desc:t("DESCRIPTION_DESC")},i.default.createElement(m.TextArea,{name:"metadata.annotations['kubesphere.io/description']",maxLength:256})))}}]),r}(i.default.Component);a.default=y,y.propTypes={detail:f.default.object,visible:f.default.bool,onOk:f.default.func,onCancel:f.default.func,isSubmitting:f.default.bool},y.defaultProps={visible:!1,onOk:function(){},onCancel:function(){},isSubmitting:!1}},,,,,,,,,,,,function(e,t,a){e.exports={body:"_1dBSaRblPfBn-mqT_KKE3S",formItem:"iH3qOy_HN_GKp2DHh14E",urlInput:"_2B1OdPUOkMfYykX5QmiCr5",label:"_2qOEiddhpXtxUvsrjH18Jw",desc:"L_NsnJWzaluWmh8TdlMsc",field:"_7hAGFIYgADWKFn3WK0tWD",fieldInput:"_2aknEdLUnkxDuraw2Zn01J",protocol:"_2tM1lMWiP_tnelAVYCnDOu",url:"_3tjuojCcgCMNlIeVz-XkLP",validated:"_1laKRGeL96H0Mm_frK-cu8",validStatus:"d9NK4MMS7VQlOHlThM-P1",access:"_3qhTvuFZpMBckEcXWQT5bi",accessItem:"_22lD7uAdTjGbgCQUZCuEzO",verifyBtn:"yAN3vK16N0HKawleIBS-g",timeInput:"xOQCUWADs79nVpq1YymkB",input:"_2gp7EWD023VrljWknkh8ML",select:"_2XaWi99BOi61P7Hqiyr7ic"}},,function(e,a,r){"use strict";var n=r(20);r(12),r(109),r(11),r(6),r(9),r(13),r(10),r(4),r(23),r(17),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(109),r(45),r(11),r(6),r(28),r(42),r(34),r(15),r(9),r(13),r(10),r(4),r(23),r(57),r(17),r(7);var l=n(r(315)),o=n(r(58)),u=n(r(36)),c=n(r(37)),s=n(r(55)),i=n(r(56)),f=n(r(51)),d=n(r(30)),p=n(r(26)),m=n(r(189)),v=n(r(158)),h=n(r(194)),E=n(r(0)),y=n(r(106)),g=n(r(1264)),b=r(239),S=n(r(1)),_=n(r(3)),O=r(186),C=n(r(836)),T=n(r(790)),R=n(r(3224));function D(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,f.default)(e);if(t){var n=(0,f.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,i.default)(this,a)}}function N(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function k(e){for(var t=1;t0&&(e=(0,f.default)(t,(function(e){return e.key.split(".")[0]}))),w(e)}),[r]);var M=(0,c.useCallback)((function(e){var t={"requests.storage":(0,i.default)(e,["requests.storage"],""),persistentvolumeclaims:(0,i.default)(e,"persistentvolumeclaims","")};T.onChange({actionType:"add",data:m({},t)})})),L=(0,c.useCallback)((function(e){T.onChange(e)}));return c.default.createElement(d.default,{namespace:T.namespace,allStorageClass:n,isWorkspace:(0,i.default)(T,"isWorkspace",!0),availableQuota:T.availableQuota,wsAvailableRequest:null!==(t=T.wsAvailableRequest)&&void 0!==t?t:{},relatedStoragesLimit:null!==(a=T.relatedStoragesLimit)&&void 0!==a?a:[],storageLimitSpec:N,namespaceStorageClass:A,handleWsLimitChange:M,handleRelateVolumeChange:L,renderOutOfLimitTip:p,totalStorageError:h,totalVolumeClaimsError:y,currentRelatedStorageTotal:b,currentRelatedVolumeClaimsTotal:_,addedItems:C})};t.default=v},,function(e,t,a){"use strict";a(15);var r=a(157),n=a(20);a(4),a(23),a(17),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(45),a(42),a(4),a(22),a(23),a(57),a(17);var l=n(a(315)),o=n(a(58)),u=n(a(43));a(41);var c=n(a(44)),s=n(a(36)),i=n(a(37)),f=n(a(55)),d=n(a(56)),p=n(a(51)),m=r(a(0)),v=a(186),h=a(903),E=n(a(1751)),y=n(a(3422));function g(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,p.default)(e);if(t){var n=(0,p.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,d.default)(this,a)}}var b=function(e){(0,f.default)(a,e);var t=g(a);function a(e){var r;return(0,s.default)(this,a),(r=t.call(this,e)).icon="pen",r.handleOk=function(){var e=r.props,t=e.formTemplate,a=e.onOk;r.formRef.current.validate((0,c.default)(u.default.mark((function e(){return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:a(t);case 1:case"end":return e.stop()}}),e)}))))},r.component=E.default,r.formRef=m.createRef(),r}return(0,i.default)(a,[{key:"render",value:function(){var e=this.props,t=e.title,a=e.formTemplate,r=e.store,n=(0,o.default)(e,["title","formTemplate","store"]),u=this.component;return m.createElement(h.Modal,(0,l.default)({width:960},n,{onOk:this.handleOk,title:m.createElement("div",{className:y.default.title},m.createElement(v.Icon,{name:this.icon,className:"margin-r8"}),m.createElement("div",null,t))}),m.createElement("div",{className:y.default.wrapper},m.createElement(u,{formTemplate:a,formRef:this.formRef,isEdit:!0,store:r})))}}]),a}(m.Component);t.default=b},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,a,r){"use strict";r(15);var n=r(20);r(11),r(18),r(48),r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(11),r(18),r(48),r(42),r(4),r(23),r(57),r(24),r(193),r(17);var l=n(r(36)),o=n(r(37)),u=n(r(55)),c=n(r(56)),s=n(r(51)),i=r(186),f=n(r(787)),d=r(832),p=n(r(830)),m=r(14),v=n(r(1)),h=n(r(0)),E=r(72),y=n(r(1081)),g=n(r(2123));function b(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,s.default)(e);if(t){var n=(0,s.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,c.default)(this,a)}}var S=function(e){(0,u.default)(r,e);var a=b(r);function r(e){var n;return(0,l.default)(this,r),(n=a.call(this,e)).handleOk=function(e){var t=n.props,a=t.onOk,r=t.store,l=t.detail,o=r.list,u=(0,m.toJS)(o.selectedRowKeys),c=u?u.filter((function(e){return e!==l.uid})):"";a(e),u&&o.setSelectRowKeys(c)},n.timeValidator=function(e,a,r){var n=a.slice(0,-1);if(!/^[0-9]*$/.test(n))return r({message:t("INVALID_TIME_DESC")});r()},n.state={formData:(0,p.default)((0,m.toJS)(e.detail._originData||e.detail))},n}return(0,o.default)(r,[{key:"componentDidUpdate",value:function(e){this.props.visible&&this.props.visible!==e.visible&&this.setState({formData:(0,p.default)((0,m.toJS)(this.props.detail._originData||this.props.detail))})}},{key:"render",value:function(){var e=this.props,a=e.visible,r=e.isSubmitting,n=e.onCancel,l=this.state.formData;return h.default.createElement(f.default.Form,{data:l,width:691,title:t("EDIT_INFORMATION"),icon:"pen",onOk:this.handleOk,okText:t("OK"),onCancel:n,visible:a,isSubmitting:r},h.default.createElement(i.Form.Item,{label:t("NAME")},h.default.createElement(i.Input,{name:"metadata.name",disabled:!0})),h.default.createElement(i.Form.Item,{label:t("ALIAS"),desc:t("ALIAS_NAME_DESC"),rules:[{pattern:E.PATTERN_ALIAS_NAME,message:t("INVALID_ALIAS_NAME_DESC")}]},h.default.createElement(i.Input,{name:"metadata.annotations['kubesphere.io/alias-name']",maxLength:63})),h.default.createElement(i.Form.Item,{label:t("CHECK_INTERVAL"),desc:t("ALERTING_POLICY_CHECK_INTERVAL_DESC"),rules:[{validator:this.timeValidator}]},h.default.createElement(y.default,{className:g.default.duration,name:"spec.interval",unitOptions:this.durationUnitOptions,defaultValue:this.durationUnitOptions[1].value})),h.default.createElement(i.Form.Item,{label:t("DESCRIPTION"),desc:t("DESCRIPTION_DESC")},h.default.createElement(i.TextArea,{name:"metadata.annotations['kubesphere.io/description']",maxLength:256})))}},{key:"durationUnitOptions",get:function(){return[{label:t("SECONDS"),value:"s"},{label:t("MINUTES"),value:"m"},{label:t("HOURS"),value:"h"}]}},{key:"severities",get:function(){return d.SEVERITY_LEVEL.map((function(e){return{label:t(e.label),value:e.value,level:e}}))}}]),r}(h.default.Component);a.default=S,S.propTypes={detail:v.default.object,visible:v.default.bool,onOk:v.default.func,onCancel:v.default.func,isSubmitting:v.default.bool},S.defaultProps={visible:!1,onOk:function(){},onCancel:function(){},isSubmitting:!1}},function(e,a,r){"use strict";var n=r(20);r(12),r(5),r(11),r(6),r(18),r(16),r(27),r(190),r(9),r(13),r(10),r(4),r(316),r(23),r(17),r(7),r(110),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(45),r(5),r(11),r(6),r(18),r(28),r(191),r(42),r(16),r(159),r(27),r(190),r(34),r(15),r(9),r(13),r(10),r(4),r(316),r(436),r(22),r(23),r(57),r(17),r(7),r(110);var l=n(r(43)),o=n(r(30));r(41);var u=n(r(44)),c=n(r(36)),s=n(r(37)),i=n(r(55)),f=n(r(56)),d=n(r(51)),p=n(r(0)),m=r(186),v=n(r(787)),h=n(r(26)),E=n(r(189)),y=n(r(63)),g=r(798),b=n(r(949)),S=r(845),_=r(923),O=r(794),C=n(r(2240));function T(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function R(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:[];return e.map((function(e){var a=e.prefixIcon,r=e.color,n=e.type,l=e.label,o=e.value,u=e.disabled,c={label:t(l,{value:o}),value:o};return a&&(c.label=m.default.createElement("div",{className:(0,h.default)(D.default.optionLabel,D.default[n])},m.default.createElement(_.Icon,{name:a,size:20,color:r}),c.label)),u&&(c.disabled=u),c}))},n.handleMetricTypeChange=function(e){var t=e.split(":")[0],a=e.split(":")[1],r=n.state,l=r.comparator,o=r.severity,u=r.duration;n.setState({metricType:e,nodeResourceType:t,monitorType:a,thresholds:""},(function(){n.props.onChange({names:n.props.value.names,kind:n.props.value.kind,metricThreshold:(0,c.default)({},t,(0,c.default)({},a,"")),comparator:l,for:u,severity:o})}))},n.handleItemChange=function(e,t){return function(a,r){var l=n.props.onChange,o=(0,E.default)(r)||!r?a:r;"thresholds"===e&&(o=""!==(o=String(o).replace(/([a-zA-Z%/])+$/g,""))?(0,S.default)(o,".")?o:t(Number(o)):""),n.setState((0,c.default)({},e,o),(function(){var t=n.state,a=t.nodeResourceType,r=t.monitorType,u=t.comparator,s=t.duration,i=t.severity,f=(0,y.default)(n.props.value,"metricThreshold.".concat(a,".").concat(r));l({names:n.props.value.names,kind:n.props.value.kind,metricThreshold:(0,c.default)({},a,(0,c.default)({},r,"comparator"===e?f:o)),comparator:"comparator"===e?o:u,for:s,severity:i})}))}},n.handleDurationChange=function(e){var t=n.state,a=t.severity,r=t.nodeResourceType,l=t.monitorType,o=t.comparator,u=(0,y.default)(n.props.value,"metricThreshold.".concat(r,".").concat(l));n.setState({duration:e},(function(){n.props.onChange({names:n.props.value.names,kind:n.props.value.kind,metricThreshold:(0,c.default)({},r,(0,c.default)({},l,u)),for:e,severity:a,comparator:o})}))},n.handleSeverityChange=function(e){var t=n.state,a=t.duration,r=t.nodeResourceType,l=t.monitorType,o=t.comparator,u=(0,y.default)(n.props.value,"metricThreshold.".concat(r,".").concat(l));n.setState({severity:e},(function(){n.props.onChange({names:n.props.value.names,kind:n.props.value.kind,metricThreshold:(0,c.default)({},r,(0,c.default)({},l,u)),for:a,comparator:o,severity:e})}))},n.renderConfigItem=function(){var e,a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=n.props.value,l=n.state,c=l.nodeResourceType,s=l.monitorType,i=a.type,f=a.name,d=a.placeholder,p=a.options,v=void 0===p?[]:p,h=a.converter,E=a.reverser,g=(0,u.default)(a,["type","name","placeholder","options","converter","reverser"]);if(E){var b=(0,y.default)(r,"metricThreshold.".concat(c,".").concat(s),"");e=""!==b?(0,S.default)(b,".")?b:E(Number(b)):""}var C={key:f,className:D.default[f],placeholder:t(d),value:"comparator"===f?n.state.comparator:e,onChange:n.handleItemChange(f,h)};switch(i){default:case"select":var T=n.getSelectOptions(v);return m.default.createElement(_.Select,(0,o.default)({options:T},C,g));case"number":return m.default.createElement(O.default,(0,o.default)({showUnit:!0},C,g))}},n.state=k({metricType:n.getMetricType(e)},n.getStateFromProps(e)),n.metricOps=n.getSelectOptions(n.metricConfig),n}return(0,i.default)(r,[{key:"render",value:function(){var e=this.state,a=e.metricType,r=e.duration,n=e.severity,l=this.ruleConfig;return m.default.createElement("div",{className:D.default.inputs},m.default.createElement("div",{className:D.default.type},m.default.createElement(_.Select,{options:this.metricOps,value:a,onChange:this.handleMetricTypeChange})),l.map(this.renderConfigItem),m.default.createElement(_.Select,{className:D.default.normalSelect,value:r,options:P,onChange:this.handleDurationChange,placeholder:t("DURATION")}),m.default.createElement(T.default,{className:D.default.normalSelect,value:n,options:A,onChange:this.handleSeverityChange,placeholder:t("SEVERITY")}))}},{key:"resourceMetricsConfig",get:function(){var e=this.props.resourceType;return(0,g.default)(C.RESOURCE_METRICS_CONFIG[e||"node"])||{}}},{key:"metricConfig",get:function(){var e=this.props,t=e.isEdge,a=e.resourceType,r=this.resourceMetricsConfig;return Object.entries(r).map((function(e){var t=(0,l.default)(e,2);return k({value:t[0]},t[1])})).filter((function(e){var r=e.value;return!t||"node"!==a||!r.startsWith("disk:")}))}},{key:"selectMetricConfig",get:function(){var e=this.state.metricType;return this.metricConfig.find((function(t){return t.value===e}))}},{key:"ruleConfig",get:function(){return(0,y.default)(this.selectMetricConfig,"ruleConfig")||[]}}]),r}(m.default.Component);w.propTypes={metricConfig:v.default.array,value:v.default.object,isEdge:v.default.bool,onChange:v.default.func},w.defaultProps={metricConfig:[],value:{},onChange:function(){}};var M=w;a.default=M},function(e,a,r){"use strict";var n=r(157),l=r(20);r(12),r(5),r(11),r(6),r(9),r(13),r(10),r(4),r(23),r(17),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(45),r(5),r(11),r(6),r(28),r(42),r(34),r(15),r(9),r(13),r(10),r(4),r(23),r(57),r(17),r(7);var o=l(r(30)),u=l(r(36)),c=l(r(37)),s=l(r(55)),i=l(r(56)),f=l(r(51)),d=n(r(0)),p=l(r(241)),m=r(186),v=l(r(2254));function h(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function E(e){for(var t=1;t0){var a=e.store.list.data.find((function(e){return e.name===t.name}))||e.store.list.data[0],r=(0,E.toJS)(a._originData),n=(0,v.default)(r,"spec.endpoints",[]);n.length>0&&(n.forEach((function(e){e.tlsConfig?e.authType="tlsConfig":e.bearerTokenSecret?e.authType="bearerTokenSecret":e.basicAuth?e.authType="basicAuth":e.authType=""})),r.spec.interval=(0,v.default)(n,"[0].interval"),r.spec.scrapeTimeout=(0,v.default)(n,"[0].scrapeTimeout")),e.setState({formTemplate:r})}},e.handleOk=function(t){var a=e.props,r=a.onOk,n=a.detail,l=(0,v.default)(t,"spec.interval"),o=(0,v.default)(t,"spec.scrapeTimeout");(0,v.default)(t,"spec.endpoints",[]).forEach((function(e){e.interval=l,e.scrapeTimeout=o})),(0,h.default)(t,"spec.selector.matchLabels",n.labels),(0,h.default)(t,"metadata.labels",k(k({},n.labels||{}),{},{"app.kubernetes.io/vendor":"kubesphere"})),r(t)},e.checkItemValid=function(e){return e.port&&e.path&&e.scheme},e}return(0,s.default)(r,[{key:"componentDidMount",value:function(){var e=this,t=this.props,a=t.cluster,r=t.namespace,n=t.detail;this.store.fetchListByK8s({cluster:a,namespace:r,labelSelector:(0,O.joinSelector)(n.labels)}).then((function(){return e.updateFormTemplate()})),this.secretStore.fetchListByK8s({cluster:a,namespace:r})}},{key:"render",value:function(){var e=this.props,a=e.visible,r=e.workspace,n=e.namespace,l=e.cluster,o=e.detail,u=e.isSubmitting,c=e.onCancel,s=this.state.formTemplate;return p.default.createElement(b.default.Form,{icon:"linechart",title:t("EDIT_MONITORING_EXPORTER"),width:960,data:s,visible:a,onOk:this.handleOk,onCancel:c,isSubmitting:u},p.default.createElement("div",{className:D.default.wrapper},p.default.createElement(g.Form.Item,{label:t("PATH_PL")},p.default.createElement(S.default,{className:D.default.endpoints,name:"spec.endpoints",defaultValue:this.defaultEndpoints,checkItemValid:this.checkItemValid,itemType:"object",addText:t("ADD")},p.default.createElement(R.default,{detail:o,secretStore:this.secretStore,cluster:l,namespace:n,workspace:r}))),p.default.createElement("div",{className:D.default.timeout},p.default.createElement(g.Columns,null,p.default.createElement(g.Column,null,p.default.createElement(g.Form.Item,{label:t("COLLECTION_INTERVAL_MIN"),desc:t("COLLECTION_INTERVAL_MIN_DESC")},p.default.createElement(_.default,{name:"spec.interval",defaultValue:"1m",min:0,unit:"m",integer:!0}))),p.default.createElement(g.Column,null,p.default.createElement(g.Form.Item,{label:t("TIMEOUT_PERIOD_S"),desc:t("COLLECTION_TIMEOUT_DESC")},p.default.createElement(_.default,{name:"spec.scrapeTimeout",defaultValue:"10s",min:0,unit:"s",integer:!0})))))))}},{key:"defaultEndpoints",get:function(){return[{scheme:"http",path:"/metrics",authType:""}]}}]),r}(p.Component))||o;a.default=P},,function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(18),r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(18),r(42),r(4),r(23),r(57),r(17);var l=n(r(36)),o=n(r(37)),u=n(r(55)),c=n(r(56)),s=n(r(51)),i=n(r(0)),f=n(r(1)),d=r(186),p=n(r(3)),m=n(r(455)),v=r(433),h=n(r(2687)),E=r(244),y=n(r(2690));function g(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,s.default)(e);if(t){var n=(0,s.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,c.default)(this,a)}}var b=function(e){(0,u.default)(r,e);var a=g(r);function r(){return(0,l.default)(this,r),a.apply(this,arguments)}return(0,o.default)(r,[{key:"renderApps",value:function(){var e=this.props,a=e.workspace,r=e.cluster,n=e.namespace,l=e.apps,o=e.iconName,u=e.showCreateVendor,c=e.isLoading,s=e.itemCls,f=e.disableLink,d=e.onClickAppItem;if(0===l.length&&!c)return i.default.createElement("div",{className:y.default.noApp},i.default.createElement("img",{src:"/assets/empty-card.svg",alt:""}),i.default.createElement("p",null,t("NO_RESOURCE_FOUND")));var m=(0,E.stringify)({workspace:a,cluster:r,namespace:n});return i.default.createElement(i.default.Fragment,null,l.map((function(e){var t="/apps/".concat(e.app_id,"?").concat(m);return f&&d?i.default.createElement("div",{key:e.app_id,className:(0,p.default)(y.default.appItem,s),onClick:function(){return d(e)}},i.default.createElement(h.default,{app:e,showCreateVendor:u,iconName:o})):i.default.createElement(v.Link,{key:e.app_id,className:(0,p.default)(y.default.appItem,s),to:t},i.default.createElement(h.default,{app:e,showCreateVendor:u,iconName:o}))})))}},{key:"render",value:function(){var e=this.props,a=e.apps,r=e.isLoading,n=e.total,l=e.onFetchMore,o=e.title,u=e.className,c=e.appRef;return i.default.createElement("div",{className:(0,p.default)(y.default.appList,u),ref:c},o&&i.default.createElement("p",{className:"apps-title"},o),this.renderApps(),r&&i.default.createElement("div",{className:y.default.loading},i.default.createElement(d.Loading,null)),!r&&a.length0&&void 0!==arguments[0]?arguments[0]:{};return o.default.createElement(c.Button,(0,n.default)({className:(0,u.default)(s.default.wrapper,(0,l.default)({},s.default.danger,"danger"===e.type))},e))};var n=r(a(315)),l=r(a(30)),o=r(a(0)),u=r(a(3)),c=a(186),s=r(a(2806))},function(e,t,a){"use strict";a(15),Object.defineProperty(t,"__esModule",{value:!0}),t.recentTimeRange=t.refreshInterval=void 0;t.refreshInterval=["","3s","5s","10s","30s"];t.recentTimeRange=["30m","1h","5h","12h","24h","7d"]},,function(e,t,a){"use strict";a(15);var r=a(20);a(5),a(827),a(18),a(87),a(16),a(27),a(4),a(23),a(17),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(a(246)),l=r(a(96)),o=r(a(36)),u=r(a(37)),c=r(a(55)),s=r(a(56)),i=r(a(51)),f=r(a(30));a(45),a(5),a(827),a(18),a(87),a(442),a(42),a(16),a(27),a(4),a(319),a(23),a(57),a(17);var d,p=r(a(0)),m=r(a(26)),v=r(a(243)),h=r(a(3)),E=r(a(1033)),y=r(a(900)),g=r(a(869)),b=r(a(912)),S=r(a(929)),_=r(a(870)),O=r(a(871)),C=r(a(2841)),T=r(a(2844));function R(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,i.default)(e);if(t){var n=(0,i.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,s.default)(this,a)}}var D=function(e){var t=e.from,a=e.to,r=e.count,n=parseInt((a-t)/(r+1),10);return Array(r).fill({}).reduce((function(e,a,r){return e.concat(t+n*(r+1))}),[])},N=(d={},(0,f.default)(d,6e4,"mm:ss"),(0,f.default)(d,36e5,"HH:mm"),(0,f.default)(d,864e5,"ddd HH:mm"),(0,f.default)(d,1296e6,"MMM Do"),(0,f.default)(d,"Infinity","MMM YYYY"),d);function k(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Date.now();return(0,v.default)(e).format("YYYY-MM-DD HH:mm:ss")}var I=function(e){(0,c.default)(a,e);var t=R(a);function a(){var e;(0,o.default)(this,a);for(var r=arguments.length,n=new Array(r),l=0;l1&&r?l/(2*n-2):0}},{key:"getTicks",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:5,t=this.getDomain(),a=(0,l.default)(t,2),r=a[0],n=a[1];return D({from:r,to:n,count:e})}},{key:"getDomain",value:function(){var e=this.props.timeRange,t=e.start,a=e.end,r=this.getXAxisExpand();return[t-r,a+r]}},{key:"getTickFormatter",value:function(e){var t=this.getDomain(),a=(0,l.default)(t,2),r=a[0],o=(a[1]-r)/e;for(var u in N)if(o<=Number(u)){var c=function(){var e=N[u];return{v:function(t){return(0,v.default)(t).format(e)}}}();if("object"===(0,n.default)(c))return c.v}}},{key:"render",value:function(){var e=this,t=this.props,a=t.data,r=t.legends,n=t.line,l=t.bar,o=t.cartesianGrid,u=void 0===o||o,c=t.stacked,s=void 0!==c&&c,i=t.yAxis,f=void 0===i||i,d=t.className,m=t.valueFormatter;return p.default.createElement("div",{style:{height:"300px"},className:(0,h.default)(T.default.wrapper,d),ref:this.ref},p.default.createElement(O.default,{debounce:100},p.default.createElement(C.default,{data:a},u&&p.default.createElement(S.default,{vertical:!1}),this.renderTimeXAxis(),f&&p.default.createElement(b.default,{tickFormatter:m,tickLine:null,axisLine:null}),l&&r.map((function(t){return p.default.createElement(E.default,{isAnimationActive:!1,connectNulls:!0,key:"".concat(t.ID," - bar"),name:t.name,dataKey:t.ID,fill:t.color,stroke:t.color,stackId:s?"A":void 0,fillOpacity:t.opacity||1,barSize:e.singleBarSize})})),n&&r.map((function(e){return p.default.createElement(y.default,{isAnimationActive:!1,connectNulls:!0,key:"".concat(e.ID," - area"),name:e.name,dataKey:e.ID,fill:e.color,stroke:e.color,stackId:s?"A":void 0,fillOpacity:e.opacity||.4})})),p.default.createElement(g.default,{wrapperStyle:{zIndex:1e3},formatter:m,labelFormatter:k}))))}},{key:"renderTimeXAxis",value:function(){var e=this.props.xAxis,t=void 0===e||e,a=this.getDomain(),r=this.getTickCount(),n=this.getTicks(r),l=this.getTickFormatter(r),o=this.XAxisShouldPadding?30:0;return p.default.createElement(_.default,{hide:!t,type:"number",dataKey:"time",scale:"time",interval:0,tickLine:null,domain:a,ticks:n,tickFormatter:l,allowDataOverflow:"false",padding:{left:o,right:o}})}},{key:"singleBarSize",get:function(){var e=this.props.legends;return this.XAxisShouldPadding?Math.floor(60/e.length):void 0}},{key:"XAxisShouldPadding",get:function(){var e=this.props,t=e.data,a=e.timeRange,r="YYYY-MM-DD HH:mm:ss";if(1===t.length){var n=(0,v.default)(a.start).format(r),l=(0,v.default)(a.end).format(r),o=(0,v.default)(t[0].time).format(r);return o===n||o===l}return!1}}]),a}(p.default.PureComponent);t.default=I,I.defaultProps={valueFormatter:function(e){return e}}},,function(e,t,a){"use strict";a(15);var r=a(20);a(5),a(18),a(192),a(16),a(4),a(23),a(17),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(45),a(5),a(18),a(192),a(42),a(16),a(4),a(23),a(57),a(17);var n=r(a(61)),l=r(a(36)),o=r(a(37)),u=r(a(55)),c=r(a(56)),s=r(a(51)),i=r(a(0)),f=a(14),d=r(a(135));function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,s.default)(e);if(t){var n=(0,s.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,c.default)(this,a)}}var m=function(e){(0,u.default)(a,e);var t=p(a);function a(){var e;(0,l.default)(this,a);for(var r=arguments.length,o=new Array(r),u=0;u0&&void 0!==arguments[0]?arguments[0]:{},t=e.cluster,a=e.namespace,r="";return t&&(r+="/clusters/".concat(t)),a&&(r+="/namespaces/".concat(a)),r}},{key:"getTimeRange",value:function(){var e=this.time,t=e.from,a=e.to;return{from:(0,D.default)(this.parseGrafanaTime(t)),to:(0,D.default)(this.parseGrafanaTime(a))}}},{key:"refreshMs",get:function(){return this.refresh?(0,k.getMsFromTimeAlias)(this.refresh):0}},{key:"timeRange",get:function(){var e=this.time,t=e.from,a=e.to;return{from:(0,D.default)(this.parseGrafanaTime(t)),to:(0,D.default)(this.parseGrafanaTime(a))}}}]),(0,S.default)(e,[{key:"changeRefreshInterval",value:function(e){this.refresh=e}},{key:"changeTimeRange",value:function(e){var t=e.from,a=e.to;this.time.from=t,this.time.to=a}},{key:"switchEditingMode",value:function(e){this.isEditing=e}},{key:"changeModeToEditing",value:function(){return this.switchEditingMode(!0),this}},{key:"generateMonitorList",value:function(){var e=this.panels.reduce((function(e,t){return e[t.type===P.MONITOR_PANEL_TYPE.TEXT?"textPanels":"otherPanels"].push(t),e}),{textPanels:[],otherPanels:[]}),t=e.textPanels,a=e.otherPanels;this.textMonitors=this.generateTextMonitors(t);var r=this.gennerateGraphMonitorRows(a),n=r.unNameGraphRow,l=r.graphRows;this.unNameGraphRow=n,this.graphMonitorRows=l}},{key:"generateTextMonitors",value:function(e){var t=this,a=e.map((function(e){return new A.default(j(j({},e),{},{namespace:t.namespace,cluster:t.cluster}))}));return new M.default({monitors:a})}},{key:"gennerateGraphMonitorRows",value:function(e){var t=this,a=e.reduce((function(e,a){if(a.type===P.MONITOR_PANEL_TYPE.ROW)return[].concat((0,h.default)(e),[new M.default({config:a})]);var r=new(U[a.type]||P.default)(j(j({},a),{},{namespace:t.namespace,cluster:t.cluster})),n=e.pop();return n.push(r),[].concat((0,h.default)(e),[n])}),[this.unNameGraphRow]),r=(0,E.default)(a);return{unNameGraphRow:r[0],graphRows:r.slice(1)}}},{key:"addNewRow",value:function(){this.graphMonitorRows.push(new M.default({config:{id:this.uidFactory.generateUID(),title:"New Row",type:"row"}}))}},{key:"generateNewTextMonitor",value:function(){var e=new A.default({id:this.uidFactory.generateUID(),title:"",format:"none",type:"singlestat",decimals:0,namespace:this.namespace,cluster:this.cluster,valueName:"last",targets:[{expr:""}]});return e.belong(this.textMonitors),e}},{key:"generatGraphMonitor",value:function(e){var t=e.bars,a=e.lines,r=new w.default({id:this.uidFactory.generateUID(),type:"graph",title:"",lines:a,bars:t,description:"",namespace:this.namespace,cluster:this.cluster,stack:!1,targets:[{expr:"",legendFormat:"",step:"1m",refId:1}],yaxes:[{format:"none",decimals:0}],colors:I.MONITOR_GRAPH_COLORS[0].colors});return r.belong(this.unNameGraphRow),r}},{key:"generatTableMonitor",value:function(){var e=new P.default({id:this.uidFactory.generateUID(),title:"",format:"none",type:"graph",decimals:0,namespaces:this.namespace,cluster:this.cluster,targets:[{expr:""}]});return e.belong(this.unNameGraphRow),e}},{key:"parseGrafanaTime",value:function(e){if(this.isGrafanaTimeFormat(e)){var t=e.replace(/now-?/,""),a=(0,k.getMsFromTimeAlias)(t);return Date.now()-a}return new Date(e).valueOf()}},{key:"isGrafanaTimeFormat",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e.match(/^now$|^now-(\d+[smhd])$/)}},{key:"fetchMetadata",value:(t=(0,v.default)(l.default.mark((function e(){var t,a;return l.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,request.get("kapis/monitoring.kubesphere.io/v1beta1/targets/metadata",{cluster:this.cluster,namespace:this.namespace});case 2:if(e.t0=e.sent,e.t0){e.next=5;break}e.t0={data:[]};case 5:t=e.t0,a=t.data,this.targetsMetadata=a||[];case 8:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})},{key:"toJS",value:function(){var e=this.textMonitors,t=this.unNameGraphRow,a=this.graphMonitorRows,r=[].concat((0,h.default)(t.monitors),(0,h.default)(e.monitors)).map((function(e){return(0,T.default)((0,R.toJS)(e.config),["cluster","namespace"])})),n=a.reduce((function(e,t){var a=t.monitors.map((function(e){return(0,T.default)((0,R.toJS)(e.config),["cluster","namespace"])}));return e.concat(t.config,a)}),[]);return(0,C.default)(this.formTemplate,"spec",Object.assign((0,O.default)(this.formTemplate,"spec",{}),{title:this.title,templatings:this.templatings,refresh:this.refresh,time:(0,R.toJS)(this.time),panels:[].concat((0,h.default)(r),(0,h.default)(n))})),this.formTemplate}}]),e}(),u=(0,_.default)(o.prototype,"title",[R.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),c=(0,_.default)(o.prototype,"refresh",[R.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),s=(0,_.default)(o.prototype,"time",[R.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{from:"now",to:"now"}}}),(0,_.default)(o.prototype,"refreshMs",[R.computed],Object.getOwnPropertyDescriptor(o.prototype,"refreshMs"),o.prototype),(0,_.default)(o.prototype,"timeRange",[R.computed],Object.getOwnPropertyDescriptor(o.prototype,"timeRange"),o.prototype),i=(0,_.default)(o.prototype,"isEditing",[R.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),f=(0,_.default)(o.prototype,"textMonitors",[R.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),d=(0,_.default)(o.prototype,"graphMonitorRows",[R.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),p=(0,_.default)(o.prototype,"targetsMetadata",[R.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),m=(0,_.default)(o.prototype,"changeTitle",[R.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(t){e.title=t}}}),(0,_.default)(o.prototype,"changeRefreshInterval",[R.action],Object.getOwnPropertyDescriptor(o.prototype,"changeRefreshInterval"),o.prototype),(0,_.default)(o.prototype,"changeTimeRange",[R.action],Object.getOwnPropertyDescriptor(o.prototype,"changeTimeRange"),o.prototype),(0,_.default)(o.prototype,"switchEditingMode",[R.action],Object.getOwnPropertyDescriptor(o.prototype,"switchEditingMode"),o.prototype),(0,_.default)(o.prototype,"generateMonitorList",[R.action],Object.getOwnPropertyDescriptor(o.prototype,"generateMonitorList"),o.prototype),o);t.default=F},function(e,t,a){"use strict";a(15);var r=a(157),n=a(20);a(12),a(109),a(5),a(11),a(84),a(18),a(4),a(23),a(17),a(85),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(12),a(109),a(45),a(5),a(11),a(84),a(18),a(42),a(4),a(23),a(57),a(17),a(85);var l=n(a(30)),o=n(a(61)),u=n(a(36)),c=n(a(37)),s=n(a(55)),i=n(a(56)),f=n(a(51)),d=r(a(0)),p=n(a(3)),m=n(a(1)),v=a(186),h=n(a(60)),E=n(a(2913));function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,f.default)(e);if(t){var n=(0,f.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,i.default)(this,a)}}var g=function(e){(0,s.default)(a,e);var t=y(a);function a(){var e;(0,u.default)(this,a);for(var r=arguments.length,n=new Array(r),l=0;l(0,v.default)(n.props.formTemplate,"spec.maxReplicaCount",0)&&r(t("MIN_REPLICA_COUNT_LESS_THAN_MAX")),r()):r(t("PROMETHEUS_MIN_REPLICA_COUNT_DESC"))},n.state={visible:!1,currentTriggerIndex:void 0,currentTrigger:{},fallback:!!(0,v.default)(e.formTemplate,"spec.fallback"),shouldValidate:0},n}return(0,o.default)(r,[{key:"componentDidUpdate",value:function(e,t){var a;t.shouldValidate!==this.state.shouldValidate&&(null===(a=this.minCountRef.current)||void 0===a||a.validate({"spec.minReplicaCount":(0,v.default)(this.props.formTemplate,"spec.minReplicaCount")}))}},{key:"render",value:function(){var e=this,a=this.props,r=a.formRef,n=a.formTemplate,l=this.state,o=l.visible,u=l.currentTrigger;return o?y.default.createElement(S.default,{trigger:(0,m.default)(u),onCancel:this.resetState,onSave:this.onSave}):y.default.createElement(i.Form,{data:n,ref:r},y.default.createElement(i.Columns,null,y.default.createElement(i.Column,null,y.default.createElement(i.Form.Item,{ref:this.minCountRef,label:t("MINIMUM_REPLICAS"),desc:t("SCALE_MINIMUM_REPLICAS_DESC"),rules:[{validator:this.validator}]},y.default.createElement(d.NumberInput,{name:"spec.minReplicaCount",integer:!0,min:0}))),y.default.createElement(i.Column,null,y.default.createElement(i.Form.Item,{label:t("MAXIMUM_REPLICAS"),desc:t("SCALE_MAXIMUM_REPLICAS_DESC")},y.default.createElement(d.NumberInput,{name:"spec.maxReplicaCount",integer:!0,min:0})))),y.default.createElement(i.Columns,null,y.default.createElement(i.Column,null,y.default.createElement(i.Form.Item,{label:t("POLLING_INTERVAL"),desc:t("POLLING_INTERVAL_DESC")},y.default.createElement(d.TimeUnitInput,{name:"spec.pollingInterval",integer:!0,min:0}))),y.default.createElement(i.Column,null,y.default.createElement(i.Form.Item,{label:t("WAITING_TIME"),desc:t("WAITING_TIME_DESC")},y.default.createElement(d.TimeUnitInput,{name:"spec.cooldownPeriod",integer:!0,min:0})))),y.default.createElement(i.Form.Group,{label:t("ROLL_BACK"),desc:t("SCALE_ROLL_BACK_DESC"),checkable:!0,onChange:this.handleFallback,key:this.state.fallback},y.default.createElement("div",{className:"padding-12"},y.default.createElement(i.Columns,null,y.default.createElement(i.Column,null,y.default.createElement(i.Form.Item,{label:t("FAILURE_THRESHOLD"),desc:t("SCALE_FAILURE_THRESHOLD_DESC"),rules:[{required:this.state.fallback,message:t("EMPTY_FAILURE_THRESHOLD")}]},y.default.createElement(d.NumberInput,{name:"spec.fallback.failureThreshold",integer:!0,min:0}))),y.default.createElement(i.Column,null,y.default.createElement(i.Form.Item,{label:t("FALLBACK_NUMBER"),desc:t("FALLBACK_NUMBER_DESC"),rules:[{required:this.state.fallback,message:t("EMPTY_FALLBACK_NUMBER_DESC")}]},y.default.createElement(d.NumberInput,{name:"spec.fallback.replicas",integer:!0,min:0})))))),y.default.createElement("div",{className:g.default.triggerWrapper},y.default.createElement("div",{className:g.default.title},t("TRIGGER_SETTING")),y.default.createElement("div",{className:g.default.desc},t("TRIGGER_SETTING_DESC")),y.default.createElement(i.Form.Item,null,y.default.createElement(_.default,{name:"spec.triggers",onShowTrigger:this.onShowAddTrigger,onShowEdit:this.onShowEdit,onCancel:this.resetState,onChange:function(t){(0,h.default)(n,"spec.triggers",t),e.setState({shouldValidate:e.state.shouldValidate+1})}}))),y.default.createElement(p.default,{className:g.default.advanced},y.default.createElement("div",{className:g.default.checkableText},y.default.createElement(i.Form.Item,null,y.default.createElement(f.default,{name:"spec.advanced.restoreToOriginalReplicaCount",title:t("RESTORE_TO_ORIGINAL_REPLICA_COUNT"),description:t("RESTORE_TO_ORIGINAL_REPLICA_COUNT_DESC")}))),y.default.createElement(i.Form.Group,{label:t("SCALE_BEHAVIOR"),desc:t("SCALE_BEHAVIOR_DESC"),keepDataWhenUnCheck:!0,checkable:!0},y.default.createElement(b.default,{type:"scaleUp",prefix:"spec.advanced.horizontalPodAutoscalerConfig.behavior.scaleUp"}),y.default.createElement(b.default,{type:"scaleDown",prefix:"spec.advanced.horizontalPodAutoscalerConfig.behavior.scaleDown"}))))}}]),r}(y.default.Component);a.default=C},,,,,,function(e,t,a){e.exports={card:"_2OMNiqGgcmhtrdbU8imCvj",action:"_2_wMN8F5TCW7GW6joHCSz_"}},function(e,t,a){e.exports={option:"_37Sc6Br1RJMiXP59t5p3P0"}},,function(e,t,a){"use strict";a(15);var r=a(20);a(4),a(23),a(17),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(45),a(42),a(4),a(23),a(57),a(17);var n=r(a(315)),l=r(a(36)),o=r(a(37)),u=r(a(55)),c=r(a(56)),s=r(a(51)),i=r(a(0)),f=a(186),d=r(a(1542));function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,s.default)(e);if(t){var n=(0,s.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,c.default)(this,a)}}var m=function(e){(0,u.default)(a,e);var t=p(a);function a(){return(0,l.default)(this,a),t.apply(this,arguments)}return(0,o.default)(a,[{key:"render",value:function(){var e=this.props,t=e.formTemplate,a=e.formRef,r=e.formProps,l=e.module,o=e.cluster,u=e.namespace;return i.default.createElement("div",{className:"margin-t12"},i.default.createElement(f.Form,(0,n.default)({data:t,ref:a},r),i.default.createElement(d.default,{formProps:r,data:t,module:l,cluster:o,namespace:u})))}}]),a}(i.default.Component);t.default=m},function(e,t,a){"use strict";var r=a(20);a(12),a(5),a(11),a(6),a(9),a(13),a(10),a(4),a(23),a(17),a(7),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(12),a(45),a(5),a(11),a(6),a(28),a(42),a(34),a(15),a(9),a(13),a(10),a(4),a(23),a(57),a(17),a(7);var n=r(a(315)),l=r(a(30)),o=r(a(36)),u=r(a(37)),c=r(a(88)),s=r(a(55)),i=r(a(56)),f=r(a(51)),d=r(a(0)),p=r(a(26)),m=r(a(63)),v=r(a(189)),h=a(186),E=r(a(932));function y(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function g(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},a=e.props.onOk,r=t.role;a(r)},e.getRoleOptions=function(){return e.props.roles.map((function(e){var a=(0,p.default)(e,"description");return{label:e.name,value:e.name,desc:t(a)}}))},e.optionRenderer=function(e){return m.default.createElement("div",{className:g.default.option},m.default.createElement("div",null,e.label),m.default.createElement("p",null,e.desc))},e}return(0,s.default)(r,[{key:"render",value:function(){var e=this.props,a=e.visible,r=e.onCancel,n=e.isSubmitting,l=e.role;return m.default.createElement(y.default.Form,{width:691,title:t("CHANGE_ROLE"),icon:"role",onOk:this.handleOk,onCancel:r,visible:a,isSubmitting:n},m.default.createElement(E.Form.Item,{label:t("ROLE"),rules:[{required:!0,message:t("SELECT_ROLE_TIP")}]},m.default.createElement(E.Select,{name:"role",optionRenderer:this.optionRenderer,options:this.getRoleOptions(),defaultValue:l})))}}]),r}(m.default.Component),o.propTypes={role:v.default.string,roles:v.default.array,visible:v.default.bool,onOk:v.default.func,onCancel:v.default.func,isSubmitting:v.default.bool},o.defaultProps={role:"",roles:[],visible:!1,isSubmitting:!1,onOk:function(){},onCancel:function(){}},l=u))||l;a.default=S},function(e,t,a){"use strict";a(15);var r=a(20);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(a(974)),l=r(a(932)),o=r(a(971)),u=r(a(1043)),c=[{title:"BASIC_INFORMATION",icon:"cdn",component:n.default,required:!0},{title:"POD_SETTINGS",icon:"docker",component:l.default,required:!0},{title:"STORAGE_SETTINGS",icon:"storage",component:o.default,required:!0},{title:"ADVANCED_SETTINGS",icon:"slider",component:u.default,required:!0}];t.default=c},,,function(e,a,r){"use strict";var n=r(157),l=r(20);r(12),r(109),r(5),r(11),r(6),r(84),r(29),r(73),r(18),r(87),r(97),r(16),r(9),r(13),r(10),r(4),r(24),r(64),r(7),r(32),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(109),r(5),r(11),r(6),r(84),r(160),r(29),r(73),r(18),r(28),r(87),r(97),r(16),r(34),r(15),r(9),r(13),r(10),r(4),r(22),r(24),r(64),r(7),r(32);var o=l(r(43));r(41);var u=l(r(58)),c=l(r(30)),s=l(r(44)),i=l(r(61)),f=l(r(96)),d=n(r(0)),p=r(186),m=l(r(3)),v=l(r(799)),h=l(r(829)),E=l(r(850)),y=l(r(884)),g=l(r(241)),b=l(r(74)),S=l(r(3033)),_=l(r(26)),O=l(r(445)),C=l(r(439)),T=r(52),R=r(72),D=l(r(3034)),N=l(r(3036)),k=l(r(1322));function I(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function P(e){for(var t=1;t0),"Match"===e.operator&&(t=t&&e.regexValue),t},de=function(e,a,r){return a?a.some((function(e){return!fe(e)}))?r({message:t("INVALID_NOTIFICATION_CONDITION")}):void r():r()};return d.default.createElement(p.Form,{ref:a,data:r,onChange:c,className:k.default.editForm},d.default.createElement(E.default,{className:k.default.switch,text:t("EDIT_YAML"),onChange:se,checked:q}),d.default.createElement("div",{className:k.default.editContainer},d.default.createElement("div",null,d.default.createElement(p.Icon,{name:"return",size:20,className:"margin-r4",clickable:!!n,onClick:n}),d.default.createElement("span",{className:k.default.title},t("EDIT_POD_IP_POOL"))),q?d.default.createElement("div",{className:k.default.codeWrapper},d.default.createElement(y.default,{ref:Q,value:F,returnType:"obj",onChange:ue})):d.default.createElement("div",{className:k.default.container},d.default.createElement("div",{style:{display:"none"}},d.default.createElement(p.Form.Item,null,d.default.createElement(p.Input,{name:"isEdge",value:I}))),d.default.createElement("div",{className:(0,m.default)(k.default.card,k.default.editRow)},d.default.createElement(p.Form.Item,{label:t("NETWORK_SEGMENT"),rules:[{required:!0,message:t("ENTER_NETWORK_SEGMENT")}],desc:t("POD_IP_POOL_IP_RANGE")},d.default.createElement(p.Input,{name:"cidr"})),d.default.createElement(p.Form.Item,{label:t("NAME"),rules:[{required:!0,message:t("NAME_EMPTY_DESC")},{pattern:R.PATTERN_NAME,message:t("POD_IP_POOL_NAME_DESC")}],desc:t("POD_IP_POOL_NAME_DESC")},d.default.createElement(p.Input,{name:"name",maxLength:63})),d.default.createElement(p.Form.Item,{label:t("IPPOOL_BLOCK_SIZE"),desc:t("IP_POOL_BLOCK_SIZE_DESC")},d.default.createElement(v.default,{name:"blockSize",min:0,max:32})),(!L||I)&&d.default.createElement(p.Form.Item,{label:t(I?"PROJECT_PL":"WORKSPACE"),desc:t(I?"IPPOOL_ASSIGN_PROJECT_DESC":"IPPOOL_ASSIGN_WORKSPACE_DESC")},d.default.createElement(p.Select,{name:"workspace",options:re,pagination:(0,g.default)(ae,["page","total","limit"]),isLoading:ee,onFetch:le,searchable:!0,clearable:!0,placeholder:" "})),d.default.createElement(p.Form.Item,{label:t("NAT outgoing"),desc:t("NAT_OUTGOING_DESC")},d.default.createElement(p.Select,{options:[{label:t("OPEN"),value:!0},{label:t("CLOSE"),value:!1}],name:"natOutgoing",onChange:function(e){(0,b.default)(r,"natOutgoing",e)}})),d.default.createElement(p.Form.Item,{label:t("ALIAS"),desc:t("ALIAS_NAME_DESC"),rules:[{pattern:R.PATTERN_ALIAS_NAME,message:t("INVALID_ALIAS_NAME_DESC")}]},d.default.createElement(p.Input,{maxLength:63,name:"aliasName"})),d.default.createElement(p.Form.Item,{label:t("DESCRIPTION"),desc:t("DESCRIPTION_DESC")},d.default.createElement(p.TextArea,{maxLength:256,name:"description"}))),d.default.createElement(p.Form.Group,{label:t("SELECT_NODES"),desc:t("SELECT_NODE_DES"),keepDataWhenUnCheck:!0,checkable:!0},d.default.createElement(p.Tabs,{type:"button",activeName:Y,onChange:ie},d.default.createElement(A,{label:t("NODE_RANGE"),name:"node_range"},d.default.createElement(p.Form.Item,null,d.default.createElement(p.Select,{options:[{label:t("ALL"),value:"all()",description:t("SELECT_LABEL_ALL_RESOUCE")},{label:t("ALL_DISABLED"),value:"!all()",description:t("DISABLE_SELECT_NODE")}],name:"nodeSelector",optionRenderer:ne,className:k.default.tabPanel}))),d.default.createElement(A,{label:t("LABEL_SELECT"),name:"label_select"},d.default.createElement(p.Form.Item,{label:t("LABEL"),rules:[{validator:de,checkOnSubmit:!0}]},d.default.createElement(h.default,{name:"nodeSelectorLable",itemType:"object",addText:t("ADD"),checkItemValid:fe,desc:d.default.createElement("div",{className:k.default.annotation},d.default.createElement(p.Icon,{name:"question"}),d.default.createElement("p",{className:k.default.desc},t.html("NOTIFICATION_CONDITION_SETTING_TIP")))},d.default.createElement(N.default,null)))),d.default.createElement(A,{label:t("CUSTOM"),name:"custom"},d.default.createElement(p.Form.Item,{label:t("EXPRESSION")},d.default.createElement(p.TextArea,{className:k.default.tabPanel,name:"nodeSelectorText",placeholder:'a in {"A", "B"} || a not in {"A", "B"} || has(A) || !has(A)'}))))),!l&&d.default.createElement(D.default,{value:(0,g.default)(r,["ipipMode","vxlanMode"]),onChange:function(e){var t=e.ipipMode,a=e.vxlanMode;(0,b.default)(r,"ipipMode",t),(0,b.default)(r,"vxlanMode",a)}}))))};a.default=M},function(e,t,a){e.exports={panel_p:"Yqh06RmBoRyo4EPMas8bQ",panel_s:"dcZ_PAxGuga9-dQ_R2F21",list:"_2y3_DkkZyu00IzO_2f7K0T",sheader:"_3AiwhP8qwgUhqH8LPnE7h1",sbody:"_3IhxAI3DyVi9gF9OH56ieB",cidr:"_1i1AudKOZMc9YALrUQQS_w",cidr_desc:"_2Y96COk5j42afC8WBhITrx",rulerow:"_1n385-u3bi3R_AxmEjXF5f",copy:"GRzd1aYlLJjc7ladECAGF",cidrrow:"_2F6Vl_l7l7oBHC3-FteUB6",error:"_2Rv2uP_LWQnnpK8_zqJ6Q7",errColor:"_2hhhSXsdc04b-WXptqNUWF",addBtn:"k2fG1ygGy-TCFEvSpdn5L",title:"_3qqAkQa-lFclxQniJas3A6",disp:"_28E97ro-MMoMS8FI6jmtFg",dirCheck:"_1INyMtM5lz6S-84-U9Lo8i"}},,,,function(e,t,a){e.exports={modalBody:"_3LmKosR2NgW3SYNGGl5Ja1",body:"_3wmbVDcnvlmKWa7E4MqW3a",title:"_38E3OlJ-EcA4JJwdzhaKjj",content:"_26R0JbcTWq68y4ODw0Tsn5",results:"_13KNhx0UTfuYSgYn-RW962",footer:"_1dt9c7vduVK9_f8YNvbXbr",item:"ShwjIjDUZ2tjNM5OLr4Ab",menu:"_3At_gmqtujAVgKiHEB0s6b",avatar:"_3WFnFWXC3vFQtXy_C5EtN9"}},function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(187),r(11),r(197),r(84),r(18),r(87),r(4),r(23),r(17),r(85),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(187),r(11),r(197),r(84),r(18),r(87),r(42),r(448),r(4),r(23),r(57),r(17),r(85);var l=n(r(30)),o=n(r(61)),u=n(r(36)),c=n(r(37)),s=n(r(55)),i=n(r(56)),f=n(r(51)),d=n(r(0)),p=n(r(1)),m=n(r(3)),v=n(r(26)),h=n(r(63)),E=n(r(158)),y=n(r(247)),g=r(186),b=n(r(3083)),S=n(r(1709));function _(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,f.default)(e);if(t){var n=(0,f.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,i.default)(this,a)}}var O=function(e){(0,s.default)(r,e);var a=_(r);function r(e){var n;return(0,u.default)(this,r),(n=a.call(this,e)).showKeyError=function(e){var t=e.index,a=e.message,r=(0,y.default)([].concat((0,o.default)(n.state.errorKeys),[t]));n.setState({errorKeys:r,errorMsg:a})},n.hideKeyError=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.index,a=t?n.state.errorKeys.filter((function(e){return e!==t})):[];n.setState({errorKeys:a,errorMsg:""})},n.handleAdd=function(){var e=n.props,t=e.value;(0,e.onChange)([].concat((0,o.default)(t),[n.defaultValue]),n.defaultValue)},n.handleChange=function(e,a){var r=n.props,l=r.value,u=r.onChange,c=(0,v.default)(a,"currentTarget.value",a),s=l.findIndex((function(e){return(0,h.default)(e.key)}));if(-1!==s)return n.showKeyError({index:s,message:t("EMPTY_KEY")}),!1;var i=n.commonKeys.includes(c.key);if(l.reduce((function(e,t){return e.key===t.key&&(i=!0),t})),i)return n.showKeyError({index:e,message:t("DUPLICATE_KEYS")}),!1;var f=[];(0,E.default)(l[e])?(f=(0,o.default)(l))[e]=c:f=l.map((function(t,a){return a===e?c:t})),n.hideKeyError({index:e}),u(f)},n.handleSelect=function(e){var t=n.props,a=t.value;(0,t.onSelect)(a[e],e)},n.handleDelete=function(e){var t=n.props,a=t.value,r=t.onChange;n.state.errorKeys.includes(e)&&n.hideKeyError({index:e}),r(a.filter((function(t,a){return a!==e})),a[e])},n.state={errorKeys:[],errorMsg:""},n}return(0,c.default)(r,[{key:"isAddEnable",value:function(){var e=this.props,t=e.value,a=e.checkItemValid,r=this.state.errorKeys;return a?t.every(a):(0,h.default)(r)&&t.every((function(e){return!(0,h.default)(e)}))}},{key:"renderItems",value:function(){var e=this,t=this.props,a=t.value,r=t.onSelect,n=this.state,o=n.errorKeys,u=n.errorMsg;return a.map((function(t,a){return d.default.createElement("div",{key:a,className:(0,m.default)(S.default.inputItem,(0,l.default)({},S.default.errorItem,o.includes(a)))},d.default.createElement(b.default,{value:t||e.defaultValue,disabled:!e.isAddEnable(),onChange:e.handleChange.bind(e,a),onSelect:r&&e.handleSelect.bind(e,a),onDelete:e.handleDelete.bind(e,a)}),d.default.createElement("div",{className:S.default.error},u))}))}},{key:"render",value:function(){var e=this.props.className;return d.default.createElement("div",{className:(0,m.default)(S.default.wrapper,e)},this.renderItems(),d.default.createElement("div",{className:"text-right"},d.default.createElement(g.Button,{className:S.default.add,onClick:this.handleAdd,disabled:!this.isAddEnable()},t("ADD"))))}},{key:"defaultValue",get:function(){return{}}},{key:"commonKeys",get:function(){return this.props.common.map((function(e){return e.key})).filter((function(e){return e}))}}]),r}(d.default.Component);a.default=O,O.propTypes={name:p.default.string,common:p.default.array,value:p.default.array,onChange:p.default.func,checkItemValid:p.default.func},O.defaultProps={name:"",common:[],value:[""],onChange:function(){}}},function(e,t,a){e.exports={wrapper:"_2hrn5wbxI2jsY7exfmVzFH",errorItem:"_31W58zIFRX1O9saFOI6x4I",error:"_30Sh5N4eWp_n22gaC2P3FM",inputItem:"_1yjzijgTlKOp64WGBuvfOo",item:"_3sooMgh3beAV1uQaOpmOxt",inputs:"_1JgwJ_WoRTYC6bT-3V58mE",tips:"_1F6_WzB42ymqfDdQg6zo6R",actions:"_1vi3GhIAi_AW1pstmvuD4z",add:"_26Yju3vipEPXQJKW_DGxxk"}},function(e,t,a){e.exports={body:"_3RwgPGeCeOOduMFEd44ASI",wrapper:"_1JCx9E2tplQfD8l57CrHIk",title:"_1KEovvXekDcG9tkMjMIWmy",subTitle:"_334hw3UpGJoftYa6r6Wb2g",content:"tre555QRya-kDb6XM4o21"}},function(e,a,r){"use strict";var n=r(20);r(12),r(5),r(11),r(6),r(84),r(18),r(16),r(9),r(13),r(10),r(85),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var l=n(r(30)),o=n(r(61));r(12),r(5),r(11),r(6),r(84),r(18),r(28),r(16),r(34),r(15),r(9),r(13),r(10),r(4),r(85),r(7);var u=n(r(0)),c=n(r(247)),s=n(r(1)),i=r(186),f=n(r(828)),d=n(r(3108));function p(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function m(e){for(var t=1;t0&&void 0!==c[0]?c[0]:{},r=e.props,n=r.appId,l=r.versionStore,u=r.fromStore,t.abrupt("return",l.fetchList(P(P({},a),{},{app_id:n,status:u?"active":void 0})));case 3:case"end":return t.stop()}}),t)}))),e.handleVersionChange=function(t){e.props.fileStore.fetch({version_id:t})},e}return(0,d.default)(r,[{key:"renderStaticPlacement",value:function(){var e=this.props,a=e.cluster,r=e.namespace,n=e.workspace;return C.default.createElement("div",{className:N.default.placementWrapper},C.default.createElement("div",{className:N.default.placementContent},C.default.createElement(y.default,{title:(0,T.showNameAndAlias)(n,"workspace"),description:t("WORKSPACE")}),C.default.createElement(y.default,{title:(0,T.showNameAndAlias)(a,"cluster"),description:t("CLUSTER")}),C.default.createElement(y.default,{icon:"project",title:(0,T.showNameAndAlias)(r,"project"),description:t("PROJECT")})))}},{key:"render",value:function(){var e=this.props,a=e.formData,r=e.formRef,n=e.namespace,o=e.versionStore;return C.default.createElement("div",{className:N.default.wrapper},C.default.createElement(E.Form,{data:a,ref:r},C.default.createElement("div",{className:N.default.title},t("BASIC_INFORMATION")),C.default.createElement(E.Columns,null,C.default.createElement(E.Column,null,C.default.createElement(E.Form.Item,{label:t("NAME"),desc:t("CLUSTER_NAME_DESC"),rules:[{required:!0,message:t("NAME_EMPTY_DESC")},{pattern:D.PATTERN_SERVICE_NAME,message:t("CLUSTER_NAME_DESC")}]},C.default.createElement(E.Input,{name:"name",maxLength:32}))),C.default.createElement(E.Column,null,C.default.createElement(E.Form.Item,{label:t("VERSION"),rules:[{required:!0,message:t("VERSION_EMPTY_DESC")}]},C.default.createElement(E.Select,{name:"version_id",options:this.sortedVersions,placeholder:" ",pagination:(0,S.default)(o.list,["page","limit","total"]),isLoading:o.list.isLoading,onFetch:this.fetchVersions,onChange:this.handleVersionChange,optionRenderer:this.versionOptionRender,valueRenderer:this.versionOptionRender})))),C.default.createElement(E.Columns,null,C.default.createElement(E.Column,null,C.default.createElement(E.Form.Item,{label:t("DESCRIPTION"),desc:t("DESCRIPTION_DESC")},C.default.createElement(E.TextArea,{name:"description",maxLength:256}))),C.default.createElement(E.Column,null)),C.default.createElement("br",null),C.default.createElement("div",{className:N.default.title},t("LOCATION")),C.default.createElement("div",{className:N.default.placement},n?this.renderStaticPlacement():C.default.createElement(E.Form.Item,{rules:[{required:!0,message:t("PROJECT_NOT_SELECT_DESC")}]},C.default.createElement(k.default,(0,l.default)({name:"namespace"},this.props))))))}},{key:"sortedVersions",get:function(){var e=this.props.appId,t=g.RadonDBAppIds.includes(e);return this.props.versionStore.list.data.map((function(e){return{label:e.name,value:t?e.name:e.version_id}})).sort((function(e,t){return(0,R.compareVersion)(t.name,e.name)}))}},{key:"latestVersion",get:function(){return(0,b.default)(this.sortedVersions,"[0].value","")}}]),r}(C.default.Component),(0,h.default)(s.prototype,"sortedVersions",[_.computed],Object.getOwnPropertyDescriptor(s.prototype,"sortedVersions"),s.prototype),(0,h.default)(s.prototype,"latestVersion",[_.computed],Object.getOwnPropertyDescriptor(s.prototype,"latestVersion"),s.prototype),c=s))||c;a.default=w},,,,,function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(84),r(18),r(16),r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(84),r(18),r(42),r(16),r(4),r(22),r(23),r(57),r(17);var l=n(r(43));r(41);var o,u,c,s=n(r(44)),i=n(r(36)),f=n(r(37)),d=n(r(55)),p=n(r(56)),m=n(r(51)),v=r(186),h=n(r(799)),E=n(r(26)),y=n(r(63)),g=n(r(74)),b=r(239),S=n(r(0)),_=n(r(960)),O=n(r(1640)),C=r(52),T=r(72),R=n(r(3260)),D=n(r(3262)),N=n(r(3264));function k(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,m.default)(e);if(t){var n=(0,m.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,p.default)(this,a)}}var I=(0,b.observer)((c=u=function(e){(0,d.default)(r,e);var a=k(r);function r(e){var n;return(0,i.default)(this,r),(n=a.call(this,e)).handleChange=function(e){return function(t){var a=n.props.formTemplate;(0,g.default)(a,e,t),n.forceUpdate()}},n.removeCronError=function(){n.state.cronMessage&&n.setState({cronMessage:{}})},n.checkCronScript=function(){var e=(0,s.default)(l.default.mark((function e(a,r,o){var u,c,s,i,f,d,p,m,v;return l.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return u=n.props,c=u.formTemplate,s=u.type,i=c.name,f=c.cluster,d=c.devops,p=r,e.next=5,n.scmStore.checkCronScript({devops:d,script:p,cluster:f,pipeline:"create"===s?void 0:i});case 5:if("error"!==(m=e.sent).result){e.next=10;break}return n.setState({cronMessage:{error:m.message}},(function(){})),o(m.message),e.abrupt("return");case 10:"ok"===m.result&&(v=t("PIPELINE_CRON_DESC",{nextTime:(0,C.getLocalTime)(m.nextTime).format("YYYY-MM-DD HH:mm:ss")}),n.setState({cronMessage:{message:v}}),o());case 11:case"end":return e.stop()}}),e)})));return function(t,a,r){return e.apply(this,arguments)}}(),n.handleScrollToBottom=function(){var e=n.props.formTemplate,t=e.devopsName,a=e.cluster,r=e.devops,l=n.pipelineStore.list,o=l.total,u=l.page;o<=l.limit*u||n.pipelineStore.fetchList({devopsName:t,cluster:a,devops:r,filter:"no-folders",page:u+1})},n.renderDisCarder=function(){var e=n.props.formTemplate,a=(0,E.default)(e,"multi_branch_pipeline");if(e.enable_discarder)return(0,y.default)(a)?S.default.createElement("div",{className:N.default.wrapper},S.default.createElement(v.Columns,null,S.default.createElement(v.Column,null,S.default.createElement(v.Form.Item,{label:t("BUILD_RECORD_RETENTION_PERIOD_DAYS"),desc:t("BUILD_RECORD_RETENTION_PERIOD_DAYS_DESC"),rules:[{pattern:/^(?!0)\d+$/,message:t("BUILD_RECORD_RETENTION_PERIOD_DAYS_INVALID_TIP")}]},S.default.createElement(v.Input,{name:"".concat(n.prefix,".discarder.days_to_keep"),defaultValue:"7"}))),S.default.createElement(v.Column,null,S.default.createElement(v.Form.Item,{label:t("MAXIMUM_BUILD_RECORDS"),desc:t("MAXIMUM_BUILD_RECORDS_DESC"),rules:[{pattern:/^(?!0)\d+$/,message:t("MAXIMUM_BUILD_RECORDS_INVALID_TIP")}]},S.default.createElement(v.Input,{name:"".concat(n.prefix,".discarder.num_to_keep"),defaultValue:"10"}))))):S.default.createElement("div",{className:N.default.wrapper},S.default.createElement(v.Columns,null,S.default.createElement(v.Column,null,S.default.createElement(v.Form.Item,{label:t("BRANCH_RETENTION_PERIOD_DAYS"),desc:t("BRANCH_RETENTION_PERIOD_DAYS_DESC"),rules:[{pattern:/^(?!0)\d+$/,message:t("BUILD_RECORD_RETENTION_PERIOD_DAYS_INVALID_TIP")}]},S.default.createElement(v.Input,{name:"".concat(n.prefix,".discarder.days_to_keep"),defaultValue:"7"}))),S.default.createElement(v.Column,null,S.default.createElement(v.Form.Item,{label:t("MAXIMUM_BRANCHES"),desc:t("MAXIMUM_BRANCHES_DESC"),rules:[{pattern:/^(?!0)\d+$/,message:t("MAXIMUM_BUILD_RECORDS_INVALID_TIP")}]},S.default.createElement(v.Input,{name:"".concat(n.prefix,".discarder.num_to_keep"),defaultValue:"5"})))))},n.scmStore=new O.default,n.pipelineStore=new _.default,n.state={cronMessage:{}},n}return(0,f.default)(r,[{key:"componentDidMount",value:function(){var e=this.props.formTemplate,t=e.devopsName,a=e.cluster,r=e.devops;this.pipelineStore.fetchList({devopsName:t,devops:r,cluster:a,filter:"no-folders"})}},{key:"renderTip",value:function(e){return S.default.createElement(v.Tooltip,{content:e,placement:"right"},S.default.createElement(v.Icon,{name:"question",className:"margin-l12"}))}},{key:"renderNoSource",value:function(){var e=this.props.formTemplate,a=(0,E.default)(e,"enable_timer_trigger"),r=t.html("PIPELINE_SCHEDULE_DESC");return S.default.createElement("div",null,S.default.createElement(v.Form.Item,{desc:t("NO_CONCURRENT_BUILD_DESC")},S.default.createElement(v.Checkbox,{name:"".concat(this.prefix,".disable_concurrent"),checked:(0,E.default)(e,"".concat(this.prefix,".disable_concurrent")),onChange:this.handleChange("".concat(this.prefix,".disable_concurrent"))},t("NO_CONCURRENT_BUILDS"))),S.default.createElement("div",{className:"h6"},S.default.createElement(S.default.Fragment,null,t("BUILD_PARAMETERS"),this.renderTip(t("BUILD_PARAMETERS_TIP")))),S.default.createElement(D.default,{name:"".concat(this.prefix,".parameters"),formTemplate:this.props.formTemplate}),S.default.createElement("div",{className:"h6"},t("BUILD_TRIGGER")),S.default.createElement(v.Form.Item,null,S.default.createElement(v.Checkbox,{name:"enable_timer_trigger",checked:a,onChange:this.handleChange("enable_timer_trigger")},t("BUILD_PERIODICALLY"),this.renderTip(t("BUILD_PERIODICALLY_TIP")))),a&&S.default.createElement("div",{className:N.default.wrapper},S.default.createElement(v.Columns,null,S.default.createElement(v.Column,null,S.default.createElement(v.Form.Item,{label:t("SCHEDULE"),desc:this.state.cronMessage.message||(0,C.learnMoreTip)(r),tip:t("tips_timer_trigger"),rules:[{validator:this.checkCronScript}]},S.default.createElement(v.Input,{name:"".concat(this.prefix,".timer_trigger.cron"),placeholder:" ",onChange:this.removeCronError}))))))}},{key:"renderGitOptions",value:function(){var e=this.props.formTemplate,a="".concat(this.scmPrefix,".git_clone_option.shallow"),r=(0,E.default)(e,a);return S.default.createElement(S.default.Fragment,null,S.default.createElement("div",{className:"h6"},t("CLONE_SETTINGS")),S.default.createElement(v.Form.Item,null,S.default.createElement(v.Checkbox,{checked:r,name:a,onChange:this.handleChange(a)},t("ENABLE_SHALLOW_CLONE"))),r&&S.default.createElement("div",{className:N.default.wrapper},S.default.createElement(v.Columns,null,S.default.createElement(v.Column,null,S.default.createElement(v.Form.Item,{label:t("CLONE_DEPTH")},S.default.createElement(h.default,{name:"".concat(this.scmPrefix,".git_clone_option.depth"),defaultValue:1}))),S.default.createElement(v.Column,null,S.default.createElement(v.Form.Item,{label:t("CLONE_TIMEOUT_PERIOD")},S.default.createElement(h.default,{name:"".concat(this.scmPrefix,".git_clone_option.timeout"),defaultValue:20}))))),S.default.createElement("div",{className:"h6"},"Webhook"),S.default.createElement(v.Form.Item,{label:t("WEBHOOK_PUSH_URL"),desc:t("WEBHOOK_PUSH_DESC")},S.default.createElement("div",{className:"disabled-input"},this.webhookUrl)))}},{key:"renderRegFilter",value:function(){var e=this.props.formTemplate.enable_regex_filter;return S.default.createElement(S.default.Fragment,null,S.default.createElement("div",{className:"h6"},t("FILTER_BY_REGEX")),S.default.createElement(v.Form.Item,null,S.default.createElement(v.Checkbox,{checked:e,name:"enable_regex_filter",onChange:this.handleChange("enable_regex_filter")},t("FILTER_BY_REGEX_DESC"))),e&&S.default.createElement("div",{className:N.default.wrapper},S.default.createElement(v.Form.Item,{label:t("REGEX")},S.default.createElement(v.Input,{name:"".concat(this.scmPrefix,".regex_filter"),defaultValue:".*"}))))}},{key:"renderWithSource",value:function(){var e=this.props.formTemplate,a=(0,E.default)(e,"multi_branch_pipeline.source_type",""),r=e.enable_timer_trigger,n=e.enable_multibranch_job_trigger,l=this.pipelineStore.list.isLoading,o=["git","github","bitbucket_server"].includes(a),u=["git","github","bitbucket_server","gitlab"].includes(a);return S.default.createElement("div",null,"git"!==a&&"svn"!==a?S.default.createElement(S.default.Fragment,null,S.default.createElement("div",{className:"h6"},t("STRATEGY_SETTINGS")),S.default.createElement("div",{className:N.default.wrapper},S.default.createElement(v.Form.Item,null,S.default.createElement(R.default,{sourceType:a,name:"multi_branch_pipeline.".concat(a,"_source")})))):null,u?this.renderRegFilter():null,S.default.createElement("div",{className:"h6"},t("SCRIPT_PATH")),S.default.createElement(v.Form.Item,{label:t("PATH"),desc:t("SCRIPT_PATH_DESC")},S.default.createElement(v.Input,{name:"".concat(this.prefix,".script_path"),defaultValue:"Jenkinsfile"})),S.default.createElement("div",{className:"h6"},t("SCAN_TRIGGER")),S.default.createElement(v.Form.Item,null,S.default.createElement(v.Checkbox,{checked:r,name:"enable_timer_trigger",onChange:this.handleChange("enable_timer_trigger")},t("SCAN_PERIODICALLY"),this.renderTip(t("TIME_TRIGGER_DESC")))),r&&S.default.createElement("div",{className:N.default.wrapper},S.default.createElement(v.Form.Item,{label:t("SCAN_INTERVAL")},S.default.createElement(v.Select,{name:"".concat(this.prefix,".timer_trigger.interval"),options:T.TIMETRIGGERINTERVALS,defaultValue:"svn"===a||"single_svn"===a?"600000":"3600000"}))),S.default.createElement("div",{className:"h6"},t("BUILD_TRIGGER")),S.default.createElement(v.Form.Item,null,S.default.createElement(v.Checkbox,{checked:n,name:"enable_multibranch_job_trigger",onChange:this.handleChange("enable_multibranch_job_trigger")},t("PIPELINE_EVENT_TRIGGER"))),n&&S.default.createElement("div",{className:N.default.wrapper},S.default.createElement(v.Columns,null,S.default.createElement(v.Column,null,S.default.createElement(v.Form.Item,{label:t("WHEN_CREATE_PIPELINE"),desc:t("WHEN_CREATE_PIPELINE_DESC")},S.default.createElement(v.Select,{name:"".concat(this.prefix,".multibranch_job_trigger.create_action_job_to_trigger"),isLoading:l,isLoadingAtBottom:!0,onMenuScrollToBottom:this.handleScrollToBottom,options:this.pipelineLists,placeholder:t("SELECT_PIPELINE_SCAP")}))),S.default.createElement(v.Column,null,S.default.createElement(v.Form.Item,{label:t("WHEN_DELETE_PIPELINE"),desc:t("WHEN_DELETE_PIPELINE_DESC")},S.default.createElement(v.Select,{name:"".concat(this.prefix,".multibranch_job_trigger.delete_action_job_to_trigger"),isLoading:l,isLoadingAtBottom:!0,onMenuScrollToBottom:this.handleScrollToBottom,options:this.pipelineLists,placeholder:t("SELECT_PIPELINE_SCAP")}))))),o?this.renderGitOptions():null)}},{key:"render",value:function(){var e=this.props,a=e.formRef,r=e.formTemplate,n=(0,E.default)(r,"multi_branch_pipeline");return S.default.createElement("div",{className:N.default.advance},S.default.createElement(v.Form,{data:r,ref:a},S.default.createElement("div",{className:"h6"},(0,y.default)(n)?t("BUILD_SETTINGS"):t("BRANCH_SETTINGS")),S.default.createElement(v.Form.Item,null,S.default.createElement(v.Checkbox,{checked:r.enable_discarder,name:"enable_discarder",onChange:this.handleChange("enable_discarder")},(0,y.default)(n)?t("DELETE_OUTDATED_BUILD_RECORDS"):t("DELETE_OUTDATED_BRANCHES"),this.renderTip((0,y.default)(n)?t("DELETE_OUTDATED_BUILD_RECORDS_TIP"):t("DELETE_OUTDATED_BRANCHES_TIP")))),this.renderDisCarder(),(0,y.default)(n)?this.renderNoSource():this.renderWithSource()))}},{key:"sourceType",get:function(){var e=this.props.formTemplate;return(0,E.default)(e,"multi_branch_pipeline.source_type","")}},{key:"prefix",get:function(){return this.sourceType?"multi_branch_pipeline":"pipeline"}},{key:"scmPrefix",get:function(){return"multi_branch_pipeline.".concat(T.REPO_KEY_MAP[this.sourceType])}},{key:"webhookUrl",get:function(){var e=this.props.formTemplate,t=(0,E.default)(e,"".concat(this.scmPrefix,".url"),""),a=(0,E.default)(e,"".concat(this.scmPrefix,".api_uri"),""),r=(0,E.default)(e,"".concat(this.scmPrefix,".owner"),""),n=(0,E.default)(e,"".concat(this.scmPrefix,".repo"),""),l="".concat(a,"/scm/").concat(r,"/").concat(n,".git");switch(this.sourceType){case"bitbucket_server":return"".concat(window.location.protocol,"//").concat(window.location.host,"/devops_webhook/git/?url=").concat(l);case"github":return"".concat(window.location.protocol,"//").concat(window.location.host,"/devops_webhook/").concat(this.sourceType,"/");default:return"".concat(window.location.protocol,"//").concat(window.location.host,"/devops_webhook/git/?url=").concat(t)}}},{key:"pipelineLists",get:function(){return this.pipelineStore.list.data.map((function(e){return{label:e.name,value:e.fullName}}))}}]),r}(S.default.Component),u.defaultProps={type:"create"},o=c))||o;a.default=I},function(e,t,a){e.exports={wrapper:"_9Yk0qNR2FCG_MPOHVb5JL",header:"_2yTyFqoCxQzx3hRKBg6rRu",content:"T-SCFAAauUJ-x1ldEYntT",itemWrapper:"_1_HVr5DcfYh3ao-5xi6WZV",itemTitle:"_17CzlSkNwriw1ibCqf5Bty",delete:"_26CIQvJti4RrsEj55MYDZc"}},function(e,t,a){e.exports={wrapper:"_28_VGcUL3ubpH0qmzQAKfV",header:"_3-qLqDcljl_m43YCxIxJZ3",content:"_12apY-AeTVbwQd6ffG8WxD",itemWrapper:"_1LRPWkPDcmmt4VdZRlrFLS",itemTitle:"_1LBhdFwEbnrlSDmT97sxs-",delete:"_5TmTBPrXcOuz8pGbj7JH2"}},,,,,function(e,a,r){"use strict";r(15);var n=r(20);r(12),r(109),r(16),Object.defineProperty(a,"__esModule",{value:!0}),a.default=function(e){var a=e.option;function r(){var e;return l.default.createElement(o.Form.Item,{label:a.name,desc:a.description,rules:[{required:null!==(e=a.required)&&void 0!==e&&e,message:t("PARAM_REQUIRED")}]},l.default.createElement(o.Input,{name:"paramsForm.".concat(a.name),defaultValue:a.default||""}))}return l.default.createElement("div",{className:u.default.itemWrapper},function(e){var t=null;switch(e){case"string":t=r();break;case"bool":t=l.default.createElement(o.Form.Item,{label:a.name},l.default.createElement(o.RadioGroup,{name:"paramsForm.".concat(a.name),defaultValue:a.default||!1},l.default.createElement(o.Radio,{value:!0},"True"),l.default.createElement(o.Radio,{value:!1},"False")));break;default:t=r()}return t}(a.type))},r(12),r(109),r(16);var l=n(r(0)),o=r(186),u=n(r(1386))},,,function(e,t,a){"use strict";a(15);var r=a(157),n=a(20);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var l=n(a(315)),o=n(a(96)),u=n(a(58)),c=r(a(0)),s=n(a(1040)),i=n(a(1304)),f=function(e){return(0,s.default)(e)?e:""},d=function(e){var t=e.onChange,a=e.value,r=(0,u.default)(e,["onChange","value"]),n=(0,c.useState)(f(a)),s=(0,o.default)(n,2),d=s[0],p=s[1];(0,c.useEffect)((function(){p(f(a))}),[a]);return c.default.createElement(i.default,(0,l.default)({},r,{value:d,onChange:function(e){p(e),t(e)}}))};t.default=d},function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(18),r(87),r(27),r(1201),r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(18),r(87),r(42),r(1201),r(4),r(23),r(57),r(17);var l=n(r(36)),o=n(r(37)),u=n(r(55)),c=n(r(56)),s=n(r(51)),i=n(r(0)),f=n(r(1)),d=n(r(837)),p=n(r(1040)),m=r(186),v=n(r(3346));function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,s.default)(e);if(t){var n=(0,s.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,c.default)(this,a)}}var E=function(e){(0,u.default)(r,e);var a=h(r);function r(e){var t;return(0,l.default)(this,r),(t=a.call(this,e)).triggerChange=function(e){var a=e.right,r=t.props,n=r.marks;(0,r.onChange)(t.getValueFromPercent(n,a))},t.handleResize=function(){t.rect=t.ref.current.getBoundingClientRect()},t.handleMouseDown=function(e){if(document.addEventListener("mouseup",t.handleMouseUp),"slider"===e.target.getAttribute("role"))document.addEventListener("mousemove",t.handleMouseMove),t.type=e.target.dataset.type;else if(t.ref.current.contains(e.target)){var a=(e.x-t.rect.x)/t.rect.width*100;a>t.endPercent&&(a=100),t.triggerChange({right:a})}},t.handleMouseMove=function(e){var a=100*(e.x-t.rect.x)/t.rect.width;return a>t.endPercent&&(a=100),a<0&&(a=0),t.triggerChange({right:a})},t.handleMouseUp=function(){document.removeEventListener("mousemove",t.handleMouseMove)},t.totalWeight=e.marks.reduce((function(e,t){return e+(t.weight||1)}),0)-1,t.endPercent=100*t.totalWeight/(t.totalWeight+1),t.state=t.getStateFromProps(e),t.ref=i.default.createRef(),t}return(0,o.default)(r,[{key:"getValuePercent",value:function(e,t){for(var a=0,r=0;r=e[r+1].value)a+=n/this.totalWeight;else if(t>=e[r].value&&t=r&&l0}));return l.state={roleTemplates:u,roleModules:f,roleTemplatesMap:o,currentModule:f&&f.length>0?f[0].name:"",groupedTemplates:c},l}return(0,f.default)(r,[{key:"renderTabs",value:function(){var e=this,a=this.state,r=a.roleModules,n=void 0===r?[]:r,l=a.currentModule,o=(0,v.default)(globals.user,"lang")||(0,D.getBrowserLang)();return b.default.createElement("div",{className:I.default.tabs},b.default.createElement("div",{className:I.default.title},t("CATEGORIES")),b.default.createElement("div",{className:I.default.tabsWrapper},n.map((function(a){return b.default.createElement("div",{key:a.name,className:(0,S.default)(I.default.tab,(0,c.default)({},I.default.enabled,l===a.name)),onClick:e.handleTabChange,"data-module":a.name},b.default.createElement(T.default,{icon:a.icon,title:a.displayName[o]||a.displayName.en,description:l===a.name?t("CURRENT"):"ENABLED"===a.state?t("AUTHORIZED"):t("UNAUTHORIZED")}),b.default.createElement(R.default,{className:I.default.indicator,type:"ENABLED"===a.state?"running":"disabled"}))}))))}},{key:"renderContent",value:function(){var e=this,a=this.state,r=a.groupedTemplates,n=a.roleTemplates,l=a.roleTemplatesMap,o=a.currentModule,u=(0,y.default)(r[o]||[],"name");return b.default.createElement("div",{className:I.default.content},b.default.createElement("div",{className:I.default.title},t("PERMISSION_PL")),b.default.createElement("div",{className:I.default.contentWrapper},u.map((function(t){return b.default.createElement(N.default,{key:t.name,data:t,roleTemplates:n,roleTemplatesMap:l,onChange:e.handleCheckChange})}))))}},{key:"render",value:function(){var e=this.props,a=e.title,r=e.visible,n=e.onCancel,l=e.isSubmitting;return b.default.createElement(C.default,{title:a||t("EDIT_PERMISSIONS"),icon:"role",onCancel:n,onOk:this.handleOk,visible:r,isSubmitting:l,fullScreen:!0},b.default.createElement("div",{className:I.default.wrapper},this.renderTabs(),this.renderContent()))}}]),r}(b.default.Component),o.propTypes={roleTemplates:O.default.array,formTemplate:O.default.object,visible:O.default.bool,onOk:O.default.func,onCancel:O.default.func,isSubmitting:O.default.bool},o.defaultProps={visible:!1,isSubmitting:!1,onOk:function(){},onCancel:function(){}},l=u))||l;a.default=M},function(e,t,a){e.exports={wrapper:"_1zXt7JS-5wTeq2O3Yyq-JL",title:"_2R6_3gQaWfGc-54ApbjvK6",tabs:"_1sRMn6-7VQwsP-i502ZCQI",tabsWrapper:"_13UODiQ-dkFqD1c7buDIbo",tab:"_13nyoRlsA_NwzkmCiVg_cF",enabled:"_1l3zLl936dTPcn3AIOkq-x",indicator:"_1DujT8XDf3EuRJJ2LydBom",content:"_1tK-XesSh-xcD5WpN9xJnR",contentWrapper:"_29j0loE5wpYw0YS-LWiFTg",checkItem:"_3rhvJqZScieMGWwx8WyyK4",extra:"_1lZdigIdMb29HKGS7xLlDe",tag:"LujNwnnNKKpJOW-0bi7Yj"}},,,function(e,a,r){"use strict";var n=r(20);r(12),r(5),r(11),r(6),r(84),r(97),r(16),r(98),r(9),r(13),r(10),r(4),r(23),r(17),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(45),r(5),r(11),r(6),r(84),r(28),r(97),r(42),r(16),r(34),r(15),r(98),r(9),r(13),r(10),r(4),r(23),r(57),r(17),r(7);var l=n(r(30)),o=n(r(96)),u=n(r(36)),c=n(r(37)),s=n(r(55)),i=n(r(56)),f=n(r(51)),d=n(r(26)),p=n(r(74)),m=n(r(158)),v=n(r(242)),h=n(r(0)),E=r(186),y=r(52),g=r(72),b=n(r(3381)),S=n(r(3383)),_=n(r(3385)),O=n(r(3386));function C(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function T(e){for(var t=1;t=new Date(u).getTime():o>=u)?n(t("TIMERANGE_SELECTOR_MSG")):n()}},e.renderSpecific=function(){return v.createElement(g.Form.Item,{label:t("TIME_RANGE"),desc:t("SELECT_START_TIME_AND_END_TIME"),rules:[{required:!0,message:t("SILENCE_TIME_RANGE_EMPTY_DESC")},{validator:e.validateDateRange(!0)}]},v.createElement(C.default,{type:"date",name:"dateRange"}))},e.renderSilentTime=function(){return v.createElement(g.Form.Item,{label:t("TIME_RANGE"),desc:t("SELECT_START_TIME_AND_END_TIME"),rules:[{required:!0,message:t("SILENCE_TIME_RANGE_EMPTY_DESC")},{validator:e.validateDateRange(!1)}]},v.createElement(C.default,{type:"time",name:"timeRange",disabled:[I,P],minuteStep:59,secondStep:59}))},e.renderDays=function(e){return v.createElement(g.Form.Item,{rules:[{required:!0,message:t("SELECT_DATE")}]},v.createElement(O.default,e))},e.renderWeek=function(){var t,a=e.props.formTemplate;return e.renderDays({name:"week",type:"week",defaultValue:null!==(t=a.week)&&void 0!==t?t:[],multi:!0})},e.renderMonth=function(){var t,a=e.props.formTemplate;return e.renderDays({name:"month",type:"month",defaultValue:null!==(t=a.month)&&void 0!==t?t:[],multi:!0})},e.renderSilentPeriod=function(){return v.createElement(g.Form.Item,{label:t("SILENCE_DATE")},v.createElement(g.Select,{name:"timeType",options:k,defaultValue:e.props.formTemplate.timeType,onChange:function(t){e.handleChange(D({timeType:t},{week:[],month:[]}))}}))},e.renderPeriodic=function(){var t=e.props.formTemplate.timeType;return v.createElement(v.Fragment,null,e.renderSilentPeriod(),2===t&&e.renderWeek(),3===t&&e.renderMonth(),e.renderSilentTime())},e.handleChange=function(t){Object.entries(t).forEach((function(t){y.default.apply(void 0,[e.props.formTemplate].concat((0,u.default)(t)))})),e.forceUpdate()},e.renderSilent=function(){var a=e.props.formTemplate.type;return v.createElement(v.Fragment,null,v.createElement(g.Form.Item,{label:t("TYPE"),desc:t("SILENCE_TIME_TYPE_DESC")},v.createElement(g.Select,{name:"type",options:e.unCustomTypes,defaultValue:a,onChange:function(t){e.handleChange({type:t,duration:null})}})),2===a&&e.renderSpecific(),3===a&&e.renderPeriodic())},e}return(0,f.default)(r,[{key:"render",value:function(){var e=this.props,t=e.formRef,a=e.formTemplate;return v.createElement("div",null,a.isDefaultCron&&v.createElement(T.default,this.tabs),v.createElement("div",{className:_.default.formContainer},v.createElement("div",null,a.isCron?v.createElement(g.Form,{key:a.isCron.toString(),ref:t,data:a},this.renderCron()):v.createElement(g.Form,{ref:t,data:a},this.renderSilent()))))}},{key:"unCustomTypes",get:function(){return this.types.filter((function(e){return 4!==e.value}))}},{key:"tabs",get:function(){var e=this;return{value:this.props.formTemplate.isCron,onChange:function(t){return e.handleChange({isCron:t})},options:[{value:!1,label:t("SILENT_TEMPLATE")},{value:!0,label:t("SILENT_CRON")}]}}}]),r}(v.Component))||o;a.default=A},function(e,a,r){"use strict";r(15);var n=r(157),l=r(20);r(5),r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(42),r(4),r(23),r(57),r(17);var o=l(r(36)),u=l(r(37)),c=l(r(55)),s=l(r(56)),i=l(r(51)),f=r(186),d=n(r(0)),p=r(72);function m(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,i.default)(e);if(t){var n=(0,i.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,s.default)(this,a)}}var v=function(e){(0,c.default)(r,e);var a=m(r);function r(){var e;(0,o.default)(this,r);for(var n=arguments.length,l=new Array(n),u=0;u0),"Match"===e.operator&&(t=t&&e.regexValue),t},e.itemValidator=function(a,r,n){return r?r.some((function(t){return!e.checkItemValid(t)}))?n({message:t("INVALID_SILENCE_CONDITION")}):void n():n()},e}return(0,u.default)(r,[{key:"renderControlAnnotation",value:function(){return f.createElement("div",{className:E.default.annotation},f.createElement(d.Icon,{name:"question"}),f.createElement("p",{className:E.default.desc},t.html("NOTIFICATION_CONDITION_SETTING_TIP")))}},{key:"renderControlSetting",value:function(){return f.createElement("div",{className:E.default.conditionContainer},f.createElement(d.Form.Item,{rules:[{validator:this.itemValidator,checkOnSubmit:!0}]},f.createElement(v.ArrayInput,{name:"matchExpressions",itemType:"object",addText:t("ADD"),checkItemValid:this.checkItemValid,desc:this.renderControlAnnotation()},f.createElement(h.default,null))))}},{key:"render",value:function(){var e=this.props,t=e.formRef,a=e.formTemplate;return f.createElement(d.Form,{ref:t,data:a},f.createElement(d.Form.Item,null,f.createElement(m.TypeSelect,{name:"condition",defaultValue:1,options:g,onChange:this.handleChange})),2===a.condition&&this.renderControlSetting())}}]),r}(f.Component);a.default=b},,function(e,a,r){"use strict";var n=r(20);r(12),r(5),r(11),r(6),r(73),r(18),r(87),r(48),r(98),r(9),r(13),r(10),r(4),r(23),r(24),r(17),r(111),r(136),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var l=n(r(96)),o=n(r(30)),u=n(r(36)),c=n(r(37)),s=n(r(55)),i=n(r(56)),f=n(r(51));r(12),r(45),r(5),r(11),r(6),r(73),r(18),r(28),r(87),r(48),r(191),r(42),r(159),r(34),r(15),r(98),r(9),r(13),r(10),r(4),r(319),r(23),r(57),r(24),r(193),r(17),r(111),r(7);var d,p,m,v=n(r(0)),h=n(r(1)),E=r(186),y=n(r(787)),g=n(r(790)),b=n(r(850)),S=n(r(799)),_=r(239),O=n(r(26)),C=n(r(1753)),T=n(r(1084)),R=n(r(74)),D=n(r(972)),N=n(r(447)),k=n(r(3429)),I=n(r(3431)),P=n(r(3433));function A(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function w(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{limit:10},a=e.props,r=a.namespace,n=a.cluster;e.snapshotStore.fetchList(M(M({},t),{},{namespace:r,cluster:n,status:"ready"})).then((function(){var t=e.snapshotStore.list.data,a=(0,y.default)(t,"[0].name");a&&((0,g.default)(e.context.formData,"spec.dataSource.name",a),e.handeSnapshotChange(a))}))},e.fetchStorageClassDetail=function(){e.storageClassName&&e.storageClassName!==e.snapshotClassStore.detail.name&&e.snapshotClassStore.fetchDetail({cluster:e.props.cluster,name:e.storageClassName})},e.getSnapshotSourceVolumeInfo=function(t){var a=e.props,r=a.namespace,n=a.cluster;return e.volumeStore.fetchDetail({name:t,namespace:r,cluster:n})},e.handeSnapshotChange=function(){var t=(0,u.default)(o.default.mark((function t(a){var r,n;return o.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=e.snapshotStore.list.data,n=(0,S.toJS)(r).find((function(e){return e.name===a}))||{},t.next=4,e.getSnapshotSourceVolumeInfo(n.snapshotSourceName);case 4:(0,g.default)(e.context.formData,"spec.resources.requests.storage",n.restoreSize),(0,g.default)(e.context.formData,"spec.storageClassName",e.volumeStore.detail.storageClassName),(0,g.default)(e.context.formData,"spec.dataSource.kind","VolumeSnapshot"),(0,g.default)(e.context.formData,"spec.dataSource.apiGroup","snapshot.storage.k8s.io"),e.fetchStorageClassDetail();case 9:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),e}return(0,s.default)(r,[{key:"componentDidMount",value:function(){this.storageClassName&&this.fetchStorageClassDetail()}},{key:"render",value:function(){var e=this.snapshotStore.list,a=e.data,r=e.total,n=e.page,l=e.isLoading,o=this.snapshotClassStore.isLoading,u=this.supportedAccessModes;return E.default.createElement(E.default.Fragment,null,E.default.createElement(T.Form.Item,{label:t("VOLUME_SNAPSHOT"),rules:[{required:!0,message:t("PARAM_REQUIRED")}],className:A.default.snapshotContainer},E.default.createElement(x,{className:A.default.snapshots,name:"spec.dataSource.name",snapshots:(0,S.toJS)(a),total:r,page:n,loading:l,onChange:this.handeSnapshotChange,onFetch:this.fetchSnapshots})),this.storageClassName&&E.default.createElement(T.Loading,{spinning:o},E.default.createElement(T.Form.Item,{className:"margin-t12",label:t("ACCESS_MODE"),rules:[{required:!0,message:t("PARAM_REQUIRED")}]},E.default.createElement(O.default,{name:"spec.accessModes[0]",defaultValue:(0,y.default)(u,"[0]")||Object.keys(P.ACCESS_MODES)[0],supportedAccessModes:u}))))}},{key:"storageClassName",get:function(){return(0,y.default)(this.context.formData,"spec.storageClassName")}},{key:"supportedAccessModes",get:function(){return(0,I.safeParseJSON)((0,y.default)(this.snapshotClassStore.detail,'annotations["storageclass.kubesphere.io/supported-access-modes"]',""))}}]),r}(E.Component),v.contextTypes={formData:R.default.object},m=h))||m;function x(e){var a=e.onChange,r=e.snapshots,n=e.total,l=e.page,o=e.loading,u=e.onFetch,c=e.value,s=e.className;return E.default.createElement(b.default,{className:s,data:r,total:n,page:l,loading:o,onFetch:u},r.map((function(e){return E.default.createElement("div",{className:(0,C.default)((0,p.default)({},A.default.selected,e.name===c),A.default.snapshot),key:e.uid,onClick:function(){return a(e.name)}},E.default.createElement(T.Icon,{name:"snapshot",type:e.name===c?"light":"dark",size:40}),E.default.createElement("div",null,E.default.createElement("h3",null,e.name),E.default.createElement("p",null,e.snapshotClassName)),E.default.createElement("div",null,E.default.createElement("h3",null,e.restoreSize||0),E.default.createElement("p",null,t("CAPACITY"))),E.default.createElement("div",null,E.default.createElement("h3",null,e.createTime),E.default.createElement("p",null,t("CREATION_TIME_TCAP"))))})))}a.default=j},function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(31),r(84),r(16),r(4),r(23),r(17),r(85),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(31),r(84),r(42),r(16),r(4),r(23),r(57),r(17),r(85);var l=n(r(36)),o=n(r(37)),u=n(r(55)),c=n(r(56)),s=n(r(51)),i=n(r(0)),f=n(r(135)),d=n(r(26)),p=n(r(74)),m=n(r(242)),v=r(72),h=r(186),E=n(r(816)),y=n(r(1101)),g=n(r(1785)),b=n(r(3613)),S=n(r(3614));function _(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,s.default)(e);if(t){var n=(0,s.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,c.default)(this,a)}}var O=[{icon:"snapshot",value:"snapshot",get label(){return t("CREATE_VOLUME_BY_SNAPSHOT")},get description(){return t("SELECT_SNAPSHOT_TO_CREATE_VOLUME")}},{icon:"database",value:"storageClass",get label(){return t("CREATE_VOLUME_BY_STORAGE_CLASS")},get description(){return t("SELECT_STORAGE_CLASS_CREATE_VOLUME")}},{icon:"meta-data",value:"pv",get label(){return t("BIND_EXISTING_PVC")},get description(){return t("BIND_EXISTING_PVC_DESC")}}],C=function(e){return(0,d.default)(e,"spec.volumeName")?"pv":(0,d.default)(e,"spec.dataSource.name")?"snapshot":"storageClass"},T=function(e){(0,u.default)(r,e);var a=_(r);function r(){var e;(0,l.default)(this,r);for(var t=arguments.length,n=new Array(t),o=0;o0&&void 0!==arguments[0]?arguments[0]:{};D(!0);var a=e.formData,l=(0,f.default)(a,"spec.storageClassName");return n.fetchList(R(R({},t),{},{cluster:e.cluster})).then((function(){var e=(0,E.toJS)(n.list.data);P(e.map((function(e){return{label:e.name,value:e.name}})));var t=e.find((function(e){return l===e.name}))||e.find((function(e){return e.default}))||{};L(t),(0,d.default)(r.PersistentVolume,"spec.csi")||(0,f.default)(r.PersistentVolume,"spec.csi.driver")||!/^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$/.test(t.provisioner)||(0,v.default)(r.PersistentVolume,"spec.csi.driver",t.provisioner),D(!1)}))};(0,g.useEffect)((function(){j()}),[]);var x=n.list||{},U=g.useMemo((function(){var e,t=(e=null,M&&(e=(0,S.safeParseJSON)((0,f.default)(M,'annotations["storageclass.kubesphere.io/supported-access-modes"]',""))),(0,p.default)(e)?[]:e);return(0,d.default)(t)?Object.keys(_.ACCESS_MODES):t}),[M]),F=g.useMemo((function(){return U.map((function(e){return{value:e,label:e}}))}),[U]),V=g.useMemo((function(){return"ReadWriteOnce"in U?["ReadWriteOnce"]:U.slice(0,1)}),[U]);return g.createElement("div",{className:C.default.wrapper},g.createElement(s.Form,{ref:a,data:r.PersistentVolume},g.createElement(s.Columns,null,g.createElement(s.Column,null,g.createElement(s.Form.Item,{label:t("STORAGE_CLASS"),desc:t("VOLUME_STORAGE_CLASS_DESC"),rules:[{required:!0,message:t("PARAM_REQUIRED")}]},g.createElement(s.Select,{name:"spec.storageClassName",defaultValue:M.name,pagination:(0,m.default)(x,["page","limit","total"]),isLoading:x.isLoading,onChange:function(e){var t=n.list.data.find((function(t){return t.name===e}))||{};(0,h.default)(r.PersistentVolume,"spec.accessModes"),(0,f.default)(r.PersistentVolume,"spec.csi")&&(0,v.default)(r.PersistentVolume,"spec.csi.driver",t.provisioner),L(t)},options:I,onFetch:j,searchable:!0,clearable:!0}))),g.createElement(s.Column,null,g.createElement(s.Form.Item,{label:t("ACCESS_MODE"),rules:[{required:!0,message:t("PARAM_REQUIRED")}],desc:t("ACCESS_MODES_DESC")},g.createElement(s.Select,{name:"spec.accessModes",options:F,loading:T,defaultValue:V,multi:!0})))),g.createElement("div",{className:C.default.slider},g.createElement(s.Form.Item,{className:C.default.slider,label:t("VOLUME_CAPACITY"),rules:[{validator:function(e,a,r){return parseInt(a,10)<=0?r({message:t("VOLUME_SIZE_TIP"),field:e.field}):r()}}]},g.createElement(i.default,(0,o.default)({name:"spec.capacity.storage"},function(){var e={min:0,max:2048,defaultValue:"10Gi",step:1,unit:"Gi"},t=Number((0,f.default)(M,"parameters.minSize")),a=Number((0,f.default)(M,"parameters.maxSize")),r=Number((0,f.default)(M,"parameters.stepSize"));isNaN(t)||(e.min=t),isNaN(a)||(e.max=a),isNaN(r)||(e.step=r);for(var n=(e.max/e.step-e.min/e.step)/4,l={},o=0;o<4;o++){var u=Math.floor(n*o)*e.step+e.min;l[u]=0===u?"0":"".concat(u,"Gi")}return l[e.max]="".concat(e.max,"Gi"),e.marks=l,e}(),{withInput:!0})))),g.createElement(s.Columns,null,g.createElement(s.Column,null,g.createElement(s.Form.Item,{label:t("VOLUME_MODE")},g.createElement(s.Select,{name:"spec.volumeMode",options:[{label:t("VOLUME_MODE_FILESYSTEM"),value:"Filesystem"},{label:t("BLOCK"),value:"Block"}]}))),g.createElement(s.Column,null,g.createElement(s.Form.Item,{label:t("RECLAIM_POLICY")},g.createElement(s.Select,{name:"spec.persistentVolumeReclaimPolicy",options:[{label:"Retain",value:"Retain"},{label:"Delete",value:"Delete"}]})))),g.createElement(O.default,{formTemplate:r.PersistentVolume})))}));a.default=D},function(e,a,r){"use strict";var n=r(157),l=r(20);r(12),r(11),r(31),r(6),r(18),r(98),r(9),r(13),r(10),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(11),r(31),r(6),r(18),r(28),r(34),r(15),r(98),r(9),r(13),r(10),r(4),r(7);var o=l(r(30)),u=l(r(96)),c=r(186),s=l(r(135)),i=l(r(26)),f=l(r(63)),d=l(r(74)),p=l(r(242)),m=n(r(0)),v=l(r(842)),h=l(r(2063));function E(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function y(e){for(var t=1;t0)){e.next=7;break}return a=[],v.forEach((function(e){var t=(0,i.default)(e._originData,"metadata.annotations",""),n=(0,i.default)(e._originData,'metadata.annotations["alerting.kubesphere.io/initial-configuration"]',"");if(""!==n){var l=JSON.parse(n),o=(0,d.default)(l,"metadata.annotations",t);a.push(r.update(k(k({},e),{},{type:c}),o))}})),e.next=5,Promise.all(a);case 5:e.next=14;break;case 7:if(""!==(o=(0,i.default)(n._originData,'metadata.annotations["alerting.kubesphere.io/initial-configuration"]',""))){e.next=10;break}return e.abrupt("return");case 10:return s=JSON.parse(o),p=(0,d.default)(s,'metadata.annotations["alerting.kubesphere.io/initial-configuration"]',o),e.next=14,r.update(k(k({},n),{},{type:c}),p);case 14:m.default.success({content:t("RESET_SUCCESSFUL")}),h.default.close(E),u&&u();case 17:case"end":return e.stop()}}),e)}))),function(){return a.apply(this,arguments)}),title:t("RESET_ALERTING_POLICY"),desc:f.length>0?t.html("RESET_MULTIPLE_ALERTING_POLICIES_DESC",{name:f.join(",")}):t("RESET_ALERTING_POLICY_DESC"),modal:_.default})}}};a.default=I},function(e,t,a){e.exports={editor:"_3JQlRh-o6JuniWSRDk3cbe",readOnly:"_1-NRR0ZvVwGhsXzTyFruig"}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,a){e.exports={duration:"-SaLSCfbFV8IwEL3sGldL"}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,a){e.exports={body:"_2wR1cHcoTFPowct6lhS7sm",header:"_1jOqrejT-N_BHHdCQb-0Mn",opts:"iZMjxLb3Eo6Hq9DIXiv0b",time:"_1VVyg3AhHjMJpzBLLXWl5s",refresh:"qyYd8KZQc7CrY6RZPRGB",metricEmpty:"_2Bq7rWkA-A9qLWEUe0UDGi",current:"_2KeSgv26nHtSAyiv2ry3s6",main:"_3mYfaiozhmmBh1g4b3-36p",title:"_19Wuw4SPjjZLpELOQMdDMp",line:"_1uAPor3uobJmIoidRolK-y",value:"_1NNfBFfwOyu5pKlP62ABDz",metric:"_2QKdphcMV0-7S4aBy3GYSH"}},function(e,t,a){e.exports={icon:"_3zoeqnSkF53g0SBCoEq19K",title:"_3cXx0QrPrFQYMxrUWD2eD",desc:"_21s3yDXppxrTySFmLkEatQ"}},function(e,t,a){"use strict";a(15);var r=a(20);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(a(1532)),l=r(a(1151)),o=[{title:"BASIC_INFORMATION",component:n.default,required:!0,icon:"cdn"},{title:"ALERTING_RULE",component:l.default,required:!0,icon:"bell"}];t.default=o},function(e,a,r){"use strict";var n=r(20);r(12),r(11),r(6),r(86),r(29),r(73),r(16),r(9),r(13),r(10),r(4),r(22),r(24),r(38),r(136),r(7),r(32),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(11),r(6),r(86),r(29),r(73),r(28),r(191),r(16),r(159),r(34),r(15),r(9),r(13),r(10),r(4),r(22),r(38),r(7),r(32);var l=n(r(43));r(41);var o=n(r(44)),u=n(r(30)),c=n(r(58)),s=n(r(135)),i=n(r(26)),f=n(r(74)),d=r(14),p=n(r(240)),m=n(r(1080)),v=n(r(787)),h=n(r(824)),E=n(r(825)),y=n(r(1533)),g=n(r(1495)),b=n(r(1496)),S=n(r(1293)),_=r(72),O=n(r(435)),C=n(r(901)),T=n(r(2262)),R=n(r(2263));function D(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function N(e){for(var t=1;t0)){e.next=7;break}return a=[],h.forEach((function(e){var t=(0,i.default)(e._originData,"metadata.annotations",""),n=(0,i.default)(e._originData,'metadata.annotations["alerting.kubesphere.io/initial-configuration"]',"");if(""!==n){var l=JSON.parse(n),o=(0,f.default)(l,"metadata.annotations",t);a.push(r.update(N(N({},e),{},{type:c}),o))}})),e.next=5,Promise.all(a);case 5:e.next=14;break;case 7:if(""!==(o=(0,i.default)(n._originData,'metadata.annotations["alerting.kubesphere.io/initial-configuration"]',""))){e.next=10;break}return e.abrupt("return");case 10:return s=JSON.parse(o),d=(0,f.default)(s,'metadata.annotations["alerting.kubesphere.io/initial-configuration"]',o),e.next=14,r.update(N(N({},n),{},{type:c}),d);case 14:p.default.success({content:t("RESET_SUCCESSFUL")}),v.default.close(E),u&&u();case 17:case"end":return e.stop()}}),e)}))),function(){return a.apply(this,arguments)}),title:m.length>0?t("RESET_MULTIPLE_ALERTING_POLICIES"):t("RESET_ALERTING_POLICY"),desc:m.length>0?t.html("RESET_MULTIPLE_ALERTING_POLICIES_DESC",{name:m.join(",")}):t("RESET_ALERTING_POLICY_DESC"),modal:S.default})}}};a.default=I},function(e,a,r){"use strict";r(15);var n=r(157),l=r(20);r(18),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(18);var o=l(r(96)),u=n(r(0)),c=r(72),s=l(r(26)),i=l(r(2245)),f=l(r(2246)),d=function(e){var a=e.AddRuleClick,r=e.formTemplate,n=e.handleEdit,l=e.handleDisable,d=e.handleDelete,p=e.onEdit,m=(0,u.useState)((0,s.default)(r,"spec.rules",[])),v=(0,o.default)(m,1)[0],h=function(e,t){n(e,t),p&&p()};return u.default.createElement("div",{className:i.default.ruleContainer},v.map((function(t,a){return u.default.createElement(f.default,{rule:t,key:a,handleEdit:function(){return h(a,t)},handleDisable:function(e){return l(a,e)},handleDelete:function(){return d(a)},builtInRule:e.builtInRule})})),!e.builtInRule&&v.length"),metricThreshold:(0,c.default)(r,"exprBuilder.node.metricThreshold",{}),for:(0,c.default)(r,"for","1m"),severity:(0,c.default)(r,"severity","critical")}},disable:(0,c.default)(r,"disable",!1),labels:(0,c.default)(r,"labels")}})),E=(0,o.default)(l,1)[0],y=(0,u.useRef)();(0,u.useImperativeHandle)(a,(function(){return{target:y.current}}));return u.default.createElement(d.Form,{data:E,ref:y},u.default.createElement("div",{className:h.default.label},t("RULE_SETTINGS")),u.default.createElement("div",{className:h.default.contentGroup},u.default.createElement(d.Form.Item,{label:t("RULE_NAME"),desc:t("CUSTOM_RULE_NAME_DESC"),rules:[{required:!0,message:t("RULE_NAME_REQUIRED")}]},u.default.createElement(d.Input,{name:"alert",maxLength:63})),u.default.createElement(m.default,{isEdgeWize:e.isEdgeWize,resourceType:"node",targetName:"exprBuilder.node.names",namespace:e.namespace,cluster:e.cluster,formTemplate:E}),u.default.createElement(d.Form.Item,{label:t("TRIGGER_CONDITION"),rules:[{required:!0,message:t("SET_ACTIVATION_CONDITION_DESC")},{validator:function(e,a,r){if(!a)return r();if((0,s.default)(a.comparator))return r({message:t("OPERATOR_REQUIRED"),field:e.field});if((0,s.default)(a.metricThreshold))return r({message:t("THRESHOLD_REQUIRED"),field:e.field});var n=Object.keys(a.metricThreshold)[0],l=Object.keys(a.metricThreshold[n])[0],o=a.metricThreshold[n][l];return""===o||!o||(0,f.default)(o)?r({message:t("THRESHOLD_REQUIRED"),field:e.field}):(0,i.default)(o,".")?r({message:t("THRESHOLD_INVALID"),field:e.field}):void r()}}]},u.default.createElement(p.default,{resourceType:"node",name:"exprBuilder.node",isEdge:n}))),u.default.createElement(v.default,null),u.default.createElement("div",{className:h.default.label},t("MESSAGE_SETTINGS")),u.default.createElement("div",{className:h.default.contentGroup},u.default.createElement(d.Form.Item,{className:h.default.message,label:t("MESSAGE_SUMMARY"),desc:t("MESSAGE_SUMMARY_DESC"),rules:[{required:!0,message:t("MESSAGE_REQUIRED")}]},u.default.createElement(d.Input,{name:"annotations.summary",maxLength:63})),u.default.createElement(d.Form.Item,{className:h.default.message,label:t("MESSAGE_DETAILS"),desc:t("MESSAGE_DETAILS_DESC")},u.default.createElement(d.TextArea,{name:"annotations.message",maxLength:256}))))},y=(0,u.forwardRef)(E);a.default=y},function(e,t,a){e.exports={inputs:"_N1QK3FSwZyUhmC5jvOfQ",type:"_3O6Tj_XW8-2d_0gkNgidLZ",comparator:"_3BQEWdpKyP0mgOK1FmNQ8l",thresholds:"WhWgUkL7AhyqWObEY28sj",normalSelect:"_2H5F4jdmw4f72x69vMsbXf",optionLabel:"_1KeB3k29XzD3WLjiYFmIQS",slider:"_17HczGprJRLyJeH8J4rvWL",condition_type:"_2zLx0kVpfomH5fkfT6F4Io"}},function(e,t,a){"use strict";a(15);var r=a(20);a(4),a(23),a(17),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(45),a(42),a(4),a(23),a(57),a(17);var n=r(a(36)),l=r(a(37)),o=r(a(55)),u=r(a(56)),c=r(a(51)),s=r(a(0)),i=r(a(1535)),f=r(a(2255));function d(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,c.default)(e);if(t){var n=(0,c.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,u.default)(this,a)}}var p=function(e){(0,o.default)(a,e);var t=d(a);function a(){return(0,n.default)(this,a),t.apply(this,arguments)}return(0,l.default)(a,[{key:"render",value:function(){return this.props.namespace?s.default.createElement(i.default,this.props):s.default.createElement(f.default,this.props)}}]),a}(s.default.Component);t.default=p},function(e,t,a){e.exports={alertRule:"_316Veyextczp08TAHWy-rA"}},function(e,a,r){"use strict";var n=r(157),l=r(20);r(12),r(5),r(11),r(6),r(18),r(16),r(9),r(13),r(10),r(4),r(23),r(17),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(45),r(5),r(11),r(6),r(18),r(28),r(42),r(16),r(34),r(15),r(9),r(13),r(10),r(4),r(23),r(57),r(17),r(7);var o=l(r(30)),u=l(r(36)),c=l(r(37)),s=l(r(55)),i=l(r(56)),f=l(r(51)),d=n(r(0)),p=l(r(241)),m=r(186),v=l(r(856)),h=l(r(1039));function E(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function y(e){for(var t=1;t"),metricThreshold:(0,i.default)(r,"exprBuilder.workload.metricThreshold",{}),for:(0,i.default)(r,"for","1m"),severity:(0,i.default)(r,"severity","critical")},workloadKind:{kind:S[(0,i.default)(r,"exprBuilder.workload.kind","Deployment")],names:(0,i.default)(r,"exprBuilder.workload.names",[])}},disable:(0,i.default)(r,"disable",!1),labels:(0,i.default)(r,"labels")}})),_=(0,u.default)(l,1)[0],O=(0,c.useState)(!1),C=(0,u.default)(O,2),T=C[0],R=C[1],D=(0,c.useState)([]),N=(0,u.default)(D,2),k=N[0],I=N[1],P=(0,c.useRef)({Deployment:n?new v.default("deployments"):new m.default("deployments"),StatefulSet:n?new v.default("statefulsets"):new m.default("statefulsets"),DaemonSet:n?new v.default("daemonsets"):new m.default("daemonsets")}),A=(0,c.useRef)();(0,c.useImperativeHandle)(a,(function(){return{target:A.current}}));var w=(0,c.useCallback)((function(t,a){var r=e.cluster,n=e.namespace,l=P.current[t];R(!0),l.fetchList(function(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:{unit:""},l=a.unit,o=(0,i.default)(g);if((0,f.default)(o,"exprBuilder.thresholds",e.thresholds),(0,f.default)(o,"exprBuilder.comparator",e.comparator),t&&((0,f.default)(o,"exprBuilder.metricType",t),(0,d.default)(r))){var u=(0,s.default)(v.ALL_SUMMARY_CONFIG,t,"").replaceAll("$CLUSTERID",n).replaceAll("$THRESHOLD"," ").replaceAll("$UNIT",l),c=(0,s.default)(v.ALL_MESSAGE_CONFIG,t,"").replaceAll("$CLUSTERID",n).replaceAll("$THRESHOLD"," ").replaceAll("$UNIT",l);(0,f.default)(o,"annotations.summary",u),(0,f.default)(o,"annotations.message",c)}(0,f.default)(o,"for",e.duration),(0,f.default)(o,"severity",e.severity),b(o)}}))),u.default.createElement(h.default,null),u.default.createElement("div",{className:p.default.label},t("MESSAGE_SETTINGS")),u.default.createElement("div",{className:p.default.contentGroup},u.default.createElement(c.Form.Item,{label:t("MESSAGE_SUMMARY"),desc:t("MESSAGE_SUMMARY_DESC"),rules:[{required:!0,message:t("MESSAGE_REQUIRED")}]},u.default.createElement(c.Input,{name:"annotations.summary",maxLength:63})),u.default.createElement(c.Form.Item,{label:t("MESSAGE_DETAILS"),desc:t("MESSAGE_DETAILS_DESC")},u.default.createElement(c.TextArea,{name:"annotations.message",maxLength:256}))))},y=(0,u.forwardRef)(E);a.default=y},function(e,t,a){e.exports={label:"XS1LS4IFOQ8CNQ2AsfMJv",contentGroup:"j3tnwlodcDpj5qv8eo3k8",inputs:"_1iFffDJTXDmoJLjUhAqOwd"}},function(e,a,r){"use strict";var n=r(20);r(12),r(11),r(31),r(6),r(18),r(16),r(27),r(98),r(9),r(13),r(10),r(4),r(23),r(24),r(17),r(64),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var l=n(r(96)),o=n(r(315)),u=n(r(58)),c=n(r(30)),s=n(r(36)),i=n(r(37)),f=n(r(88)),d=n(r(55)),p=n(r(56)),m=n(r(51));r(12),r(45),r(11),r(31),r(6),r(18),r(28),r(42),r(16),r(27),r(34),r(15),r(98),r(9),r(13),r(10),r(4),r(23),r(57),r(24),r(17),r(64),r(7);var v=n(r(0)),h=n(r(1)),E=n(r(3)),y=n(r(76)),g=n(r(26)),b=n(r(135)),S=r(52),_=r(186),O=n(r(799)),C=n(r(1028)),T=n(r(2275)),R=r(930),D=r(1294);function N(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function k(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:[];return e.map((function(e){var a=e.prefixIcon,r=e.color,n=e.type,l=e.label,o=e.value,u=e.disabled,c={label:t(l,{value:o}),value:o};return a&&(c.label=v.default.createElement("div",{className:(0,E.default)(T.default.optionLabel,T.default[n])},v.default.createElement(_.Icon,{name:a,size:20,color:r}),c.label)),u&&(c.disabled=u),c}))},n.handleMetricTypeChange=function(e){var t=n.state,a=t.severity,r=t.duration,l=n.metricConfig.find((function(t){return t.value===e})),o=(0,g.default)(l,"ruleConfig[0].value","");n.setState({metricType:e,thresholds:"",comparator:o},(function(){n.props.handleMetricChange({thresholds:"",comparator:o,severity:a,duration:r},e,{unit:(0,g.default)(l,"ruleConfig[1].unit")})}))},n.handleItemChange=function(e){return(0,S.cacheFunc)(e,(function(t,a){var r=n.props.handleMetricChange,l=(0,y.default)(a)||!a?t:a;"thresholds"===e&&(l=String(l).replace(/([a-zA-Z%/])+$/g,"")),n.setState((0,c.default)({},e,l),(function(){var t=n.state,a=t.comparator,o=t.thresholds,u=t.duration,c=t.severity;r({thresholds:"thresholds"===e?Number(l):o,comparator:"comparator"===e?l:a,duration:u,severity:c})}))}),(0,f.default)(n))},n.handleDurationChange=function(e){var t=n.state,a=t.severity,r=t.thresholds,l=t.comparator;n.setState({duration:e},(function(){n.props.handleMetricChange({thresholds:r,duration:e,severity:a,comparator:l})}))},n.handleSeverityChange=function(e){var t=n.state,a=t.duration,r=t.thresholds,l=t.comparator;n.setState({severity:e},(function(){n.props.handleMetricChange({thresholds:r,duration:a,comparator:l,severity:e})}))},n.renderConfigItem=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=e.type,r=e.name,l=e.placeholder,c=e.options,s=void 0===c?[]:c,i=(e.converter,(0,u.default)(e,["type","name","placeholder","options","converter"])),f={key:r,className:T.default[r],placeholder:t(l),value:(0,g.default)(n.state,r),onChange:n.handleItemChange(r)};switch(a){default:case"select":var d=n.getSelectOptions(s);return v.default.createElement(_.Select,(0,o.default)({options:d},f,i));case"number":return v.default.createElement(O.default,(0,o.default)({showUnit:!0},f,i))}},n.state=k({metricType:e.metricType||n.metricConfig[0].value},n.getStateFromProps(e)),n.metricOps=n.getSelectOptions(n.metricConfig),n}return(0,i.default)(r,[{key:"componentDidMount",value:function(){var e=this;if(!this.props.metricType){var t=this.state,a=t.comparator,r=t.thresholds;this.setState({comparator:a||(0,g.default)(this.ruleConfig,"[0].value",a),thresholds:""!==r?Number(r):(0,g.default)(this.ruleConfig,"[1].value",r)},(function(){e.props.handleMetricChange({thresholds:e.state.thresholds,duration:e.state.duration,severity:e.state.severity,comparator:e.state.comparator},e.state.metricType,{unit:(0,g.default)(e.ruleConfig,"[1].unit")})}))}}},{key:"render",value:function(){var e=this.state,t=e.metricType,a=e.duration,r=e.severity,n=this.ruleConfig;return v.default.createElement("div",{className:T.default.inputs},v.default.createElement(_.Select,{className:T.default.type,options:this.metricOps,value:t,onChange:this.handleMetricTypeChange}),n.map(this.renderConfigItem),v.default.createElement(_.Select,{value:a,options:P,onChange:this.handleDurationChange}),v.default.createElement(C.default,{value:r,options:A,onChange:this.handleSeverityChange}))}},{key:"resourceMetricsConfig",get:function(){var e=this.props.resourceType;return(0,b.default)(D.RESOURCE_METRICS_CONFIG[e])||{}}},{key:"metricConfig",get:function(){var e=this.resourceMetricsConfig;return Object.entries(e).map((function(e){var t=(0,l.default)(e,2);return k({value:t[0]},t[1])}))}},{key:"selectMetricConfig",get:function(){var e=this.state.metricType;return this.metricConfig.find((function(t){return t.value===e}))}},{key:"ruleConfig",get:function(){return(0,g.default)(this.selectMetricConfig,"ruleConfig")||[]}}]),r}(v.default.Component);w.propTypes={value:h.default.object,onChange:h.default.func},w.defaultProps={metricConfig:[],value:{},onChange:function(){}};var M=w;a.default=M},function(e,t,a){e.exports={inputs:"_1ElkAbsvtdzOOkcnK66XzH",type:"_3cqi7bYJMHmrQClJeRoobj",optionLabel:"_2Rm48iWjjbNabO0sdXSIeT",slider:"UOTqYNeayjqXhLKY5L4Nt",condition_type:"_21FGEK2QjdUrcDOZPnqz3c"}},,,,,,function(e,t,a){"use strict";a(15);var r=a(20);a(18),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(a(30));a(18);var l=a(969),o=a(930),u=[{NameZh:"MySQL下线",NameEn:"MySQLIsDown",Expression:'mysql_up{namespace="$NAMESPACE",service="$CLUSTERID-metrics"} == 0',Operator:"N/A",Unit:"N/A",ProposedDuration:"1m",Explain:"MySQL下线",Summary:"RadonDB MySQL 【$CLUSTERID】 MySQL下线",Message:"RadonDB MySQL: $CLUSTERID,MySQL下线。 当前值:{{ $value }}"},{NameZh:"主从复制延迟",NameEn:"MySQLSlaveBehindMaster",Expression:'rate(mysql_slave_status_seconds_behind_master{namespace="$NAMESPACE",service="$CLUSTERID-metrics"}[1m])',Operator:">",Unit:"s",ProposedDuration:"1m",Explain:"从库落后主库$THRESHOLD$UNIT ",Summary:"RadonDB MySQL 【$CLUSTERID】 从库落后主库$THRESHOLD$UNIT ",Message:"RadonDB MySQL: $CLUSTERID,从库落后主库$THRESHOLD$UNIT 。 当前值:{{ $value }}"},{NameZh:"CPU使用率",NameEn:"MySQLCPUUtilization",Expression:'(sum(irate(container_cpu_usage_seconds_total{namespace="$NAMESPACE",pod=~".*$CLUSTERID.*",container!="POD",container!=""}[3m])) by (pod)) / (sum(kube_pod_container_resource_limits{resource="cpu",namespace="$NAMESPACE",pod=~".*$CLUSTERID.*"}) by (pod)) * 100',Operator:">",Unit:"%",ProposedDuration:"1m",Explain:"CPU使用率超过$THRESHOLD$UNIT",Summary:"RadonDB MySQL 【$CLUSTERID】 CPU使用率超过$THRESHOLD$UNIT",Message:"RadonDB MySQL: $CLUSTERID,CPU使用率超过$THRESHOLD$UNIT。 当前值:{{ $value }}"},{NameZh:"内存使用率",NameEn:"MySQLMemUtilization",Expression:'(sum(container_memory_working_set_bytes{namespace="$NAMESPACE",pod=~".*$CLUSTERID.*",container!="POD",container!=""}) by (pod)) / (sum(kube_pod_container_resource_limits{resource="memory",namespace="$NAMESPACE",pod=~".*$CLUSTERID.*"}) by (pod)) * 100',Operator:">",Unit:"%",ProposedDuration:"1m",Explain:"内存使用率超过$THRESHOLD$UNIT",Summary:"RadonDB MySQL 【$CLUSTERID】 内存使用率超过$THRESHOLD$UNIT",Message:"RadonDB MySQL: $CLUSTERID,内存使用率超过$THRESHOLD$UNIT。 当前值:{{ $value }}"},{NameZh:"磁盘使用率",NameEn:"MySQLDisk",Expression:'(kubelet_volume_stats_used_bytes{persistentvolumeclaim=~".*$CLUSTERID.*"} / kubelet_volume_stats_capacity_bytes{persistentvolumeclaim=~".*$CLUSTERID.*"} * 100)',Operator:">",Unit:"%",ProposedDuration:"1m",Explain:"磁盘使用率超过$THRESHOLD$UNIT",Summary:"RadonDB MySQL 【$CLUSTERID】 磁盘使用率超过$THRESHOLD$UNIT",Message:"RadonDB MySQL: $CLUSTERID,磁盘使用率超过$THRESHOLD$UNIT。 当前值:{{ $value }}"},{NameZh:"连接数利用率",NameEn:"MySQLTooManyConnections",Expression:'mysql_global_status_max_used_connections{namespace="$NAMESPACE",service="$CLUSTERID-metrics"} / mysql_global_variables_max_connections{namespace="$NAMESPACE",service="$CLUSTERID-metrics"} * 100',Operator:">",Unit:"%",ProposedDuration:"1m",Explain:"连接数使用超过$THRESHOLD$UNIT",Summary:"RadonDB MySQL 【$CLUSTERID】 连接数使用超过$THRESHOLD$UNIT",Message:"RadonDB MySQL: $CLUSTERID,连接数使用超过$THRESHOLD$UNIT。 当前值:{{ $value }}"}],c={Metric:{MySQLIsDown:{label:"MySQLIsDown",autoComplete:!0,ruleConfig:l.disabledRuleConfig},MySQLSlaveBehindMaster:{label:"MySQLSlaveBehindMaster",ruleConfig:l.TIME_RULE_CONFIG},MySQLCPUUtilization:{label:"MySQLCPUUtilization",ruleConfig:l.PERCENT_RULE_CONFIG},MySQLMemUtilization:{label:"MySQLMemUtilization",ruleConfig:l.PERCENT_RULE_CONFIG},MySQLDisk:{label:"MySQLDisk",ruleConfig:l.PERCENT_RULE_CONFIG},MySQLTooManyConnections:{label:"MySQLTooManyConnections",ruleConfig:l.PERCENT_RULE_CONFIG}},Query:(0,o.arrayToObject)(u.map((function(e){return(0,n.default)({},e.NameEn,e.Expression)}))),Message:(0,o.arrayToObject)(u.map((function(e){return(0,n.default)({},e.NameEn,e.Message)}))),Summary:(0,o.arrayToObject)(u.map((function(e){return(0,n.default)({},e.NameEn,e.Summary)})))};t.default=c},function(e,t,a){"use strict";a(15);var r=a(20);a(18),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(a(30));a(18);var l=a(930),o=a(969),u=[{NameEn:"PGUnhealth",Expression:'pg_auto_failover_unhealth_count{namespace="$NAMESPACE",service="$CLUSTERID-autofailover"} != 0',Operator:"N/A",Unit:"N/A",ProposedDuration:"1m",Summary:"PostgreSQL 节点不健康。",Message:"PostgreSQL 节点不健康。"},{NameEn:"PGAsync",Expression:'pg_auto_failover_async_count{namespace="$NAMESPACE",service="$CLUSTERID-autofailover"} != 0',Operator:">",Unit:"s",ProposedDuration:"1m",Summary:"PostgreSQL 节点出现异步模式。",Message:"PostgreSQL 节点出现异步模式。"},{NameEn:"PGNotRunning",Expression:'pg_auto_failover_not_running_count{namespace="$NAMESPACE",service="$CLUSTERID-autofailover"} != 0',Operator:">",Unit:"s",ProposedDuration:"1m",Summary:"PostgreSQL 未运行。",Message:"PostgreSQL 未运行。"},{NameEn:"PGInvalid",Expression:'pg_auto_failover_not_running_count{namespace="$NAMESPACE",service="$CLUSTERID-autofailover"} != 0 ',Operator:">",Unit:"s",ProposedDuration:"1m",Summary:"PostgreSQL 存在无效节点。",Message:"PostgreSQL 存在无效节点。"},{NameEn:"PGCPUUtilization",Expression:'(sum(irate(container_cpu_usage_seconds_total{namespace="$NAMESPACE",pod=~".*$CLUSTERID-readwriteinstance.*|.*$CLUSTERID-readonlyinstance.*",container="postgresql"}[3m])) by (pod)) / (sum(kube_pod_container_resource_limits{resource="cpu", container="postgresql", namespace="$NAMESPACE",pod=~".*$CLUSTERID-readwriteinstance.*|.*$CLUSTERID-readonlyinstance.*"}) by (pod)) * 100',Operator:">",Unit:"%",ProposedDuration:"1m",Summary:"RadonDB PostgreSQL 【$CLUSTERID】 CPU使用率超过$THRESHOLD$UNIT。",Message:"RadonDB PostgreSQL: $CLUSTERID,CPU使用率超过$THRESHOLD$UNIT。 当前值:{{ $value }}"},{NameEn:"PGMemUtilization",Expression:'(sum(container_memory_working_set_bytes{namespace="$NAMESPACE",pod=~".*$CLUSTERID-readwriteinstance.*|.*$CLUSTERID-readonlyinstance.*",container="postgresql"}) by (pod)) / (sum(kube_pod_container_resource_limits{resource="memory", container="postgresql", namespace="$NAMESPACE", pod=~".*$CLUSTERID-readwriteinstance.*|.*$CLUSTERID-readonlyinstance.*"}) by (pod)) * 100',Operator:">",Unit:"%",ProposedDuration:"1m",Summary:"RadonDB PostgreSQL 【$CLUSTERID】 内存使用率超过$THRESHOLD$UNIT。",Message:"RadonDB PostgreSQL: $CLUSTERID,内存使用率超过$THRESHOLD$UNIT。 当前值:{{ $value }}"},{NameEn:"PGDisk",Expression:'kubelet_volume_stats_used_bytes{persistentvolumeclaim=~".*$CLUSTERID-readwriteinstance.*|.*$CLUSTERID-readonlyinstance.*"} / kubelet_volume_stats_capacity_bytes{persistentvolumeclaim=~".*$CLUSTERID-readwriteinstance.*|.*$CLUSTERID-readonlyinstance.*"} * 100',Operator:">",Unit:"%",ProposedDuration:"1m",Summary:"RadonDB PostgreSQL 【$CLUSTERID】 磁盘使用率超过$THRESHOLD$UNIT。",Message:"RadonDB PostgreSQL: $CLUSTERID,磁盘使用率超过$THRESHOLD$UNIT。 当前值:{{ $value }}"},{NameEn:"PGConnPerc",Expression:'(sum(pg_stat_database_numbackends{namespace="$NAMESPACE",service=~"$CLUSTERID-readwrite|$CLUSTERID-standby-readonly"}) by (pod) / sum(pg_settings_max_connections{namespace="$NAMESPACE",service=~"$CLUSTERID-readwrite|$CLUSTERID-standby-readonly"}) by (pod)) * 100',Operator:">",Unit:"%",ProposedDuration:"1m",Summary:"RadonDB PostgreSQL 【$CLUSTERID】 连接数消耗已超过最大可用连接数的$THRESHOLD$UNIT",Message:"RadonDB PostgreSQL: $CLUSTERID,连接数消耗已超过最大可用连接数的$THRESHOLD$UNIT。 当前值:{{ $value }}"},{NameEn:"PGCacheHitRatio",Expression:'round(100*sum(pg_stat_database_blks_hit{namespace="$NAMESPACE",service=~"$CLUSTERID-readwrite|$CLUSTERID-standby-readonly"}) by(pod) / (sum(pg_stat_database_blks_hit{namespace="$NAMESPACE",service=~"$CLUSTERID-readwrite|$CLUSTERID-standby-readonly"}) by(pod) + sum(pg_stat_database_blks_read{namespace="$NAMESPACE",service=~"$CLUSTERID-readwrite|$CLUSTERID-standby-readonly"}) by(pod)),0.1)',Operator:">",Unit:"%",ProposedDuration:"1m",Summary:"RadonDB PostgreSQL 【$CLUSTERID】 缓存命中率小于$THRESHOLD$UNIT。",Message:"RadonDB PostgreSQL: $CLUSTERID,缓存命中率小于$THRESHOLD$UNIT。 当前值:{{ $value }}"},{NameEn:"MaxTxDuration",Expression:'max(pg_stat_activity_max_tx_duration{namespace="$NAMESPACE",service=~"$CLUSTERID-readwrite|$CLUSTERID-standby-readonly"})',Operator:">",Unit:"%",ProposedDuration:"1m",Summary:"RadonDB PostgreSQL 【$CLUSTERID】 最大事务持续时间超过$THRESHOLD$UNIT。",Message:"RadonDB PostgreSQL: $CLUSTERID,最大事务持续时间超过$THRESHOLD$UNIT。 当前值:{{ $value }}"}],c={Metric:{PGUnhealth:{label:"PGUnhealth",autoComplete:!0,ruleConfig:o.disabledRuleConfig},PGAsync:{label:"PGAsync",ruleConfig:o.disabledRuleConfig},PGNotRunning:{label:"PGNotRunning",ruleConfig:o.disabledRuleConfig},PGInvalid:{label:"PGInvalid",ruleConfig:o.disabledRuleConfig},PGCPUUtilization:{label:"PGCPUUtilization",ruleConfig:o.PERCENT_RULE_CONFIG},PGMemUtilization:{label:"PGMemUtilization",ruleConfig:o.PERCENT_RULE_CONFIG},PGDisk:{label:"PGDisk",autoComplete:!0,ruleConfig:o.PERCENT_RULE_CONFIG},PGConnPerc:{label:"PGConnPerc",ruleConfig:o.PERCENT_RULE_CONFIG},PGCacheHitRatio:{label:"PGCacheHitRatio",ruleConfig:o.PERCENT_RULE_CONFIG},MaxTxDuration:{label:"MaxTxDuration",autoComplete:!0,ruleConfig:o.TIME_RULE_CONFIG}},Query:(0,l.arrayToObject)(u.map((function(e){return(0,n.default)({},e.NameEn,e.Expression)}))),Message:(0,l.arrayToObject)(u.map((function(e){return(0,n.default)({},e.NameEn,e.Message)}))),Summary:(0,l.arrayToObject)(u.map((function(e){return(0,n.default)({},e.NameEn,e.Summary)})))};t.default=c},function(e,t,a){"use strict";a(15);var r=a(20);a(18),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(a(30));a(18);var l=a(930),o=a(969),u=[{NameZh:"ClickHouse服务下线",NameEn:"ClickHouseServerDown",Expression:'chi_clickhouse_metric_fetch_errors{namespace="$NAMESPACE",service="clickhouse-$CLUSTERID",fetch_type="system.metrics"} > 0',Operator:"N/A",Unit:"N/A",ProposedDuration:"1m",Explain:"ClickHouse 无法提供数据库服务",Summary:"RadonDB ClickHouse 【$CLUSTERID】 ClickHouse 无法提供数据库服务",Message:"RadonDB ClickHouse: $CLUSTERID,ClickHouse 无法提供数据库服务。 当前值:{{ $value }}"},{NameZh:"ClickHouse服务重启",NameEn:"ClickHouseServerRestartRecently",Expression:'chi_clickhouse_metric_Uptime{namespace="$NAMESPACE",service="clickhouse-$CLUSTERID"} > 1 < 180',Operator:"N/A",Unit:"N/A",ProposedDuration:"1m",Explain:"clickhouse server进程已在不到3分钟前启动",Summary:"RadonDB ClickHouse 【$CLUSTERID】 clickhouse server进程已在不到3分钟前启动",Message:"RadonDB ClickHouse: $CLUSTERID,clickhouse server进程已在不到3分钟前启动。查看之前的ClickHouse pod日志,以调查重启原因。 当前值:{{ $value }}"},{NameZh:"ClickHouse分布式表文件插入频繁",NameEn:"ClickHouseDistributedFilesToInsertHigh",Expression:'chi_clickhouse_metric_DistributedFilesToInsert{namespace="$NAMESPACE",service="clickhouse-$CLUSTERID"}',Operator:">",Unit:"个",ProposedDuration:"1m",Explain:"clickhouse服务器超过$THRESHOLD$UNIT分布式文件在做插入操作",Summary:"RadonDB ClickHouse 【$CLUSTERID】 clickhouse服务器超过$THRESHOLD$UNIT分布式文件在做插入操作",Message:"RadonDB ClickHouse: $CLUSTERID,clickhouse服务器超过$THRESHOLD$UNIT分布式文件在做插入操作。 当前值:{{ $value }}"},{NameZh:"ClickHouse分布式连接异常",NameEn:"ClickHouseDistributedConnectionExceptions",Expression:'increase(chi_clickhouse_event_DistributedConnectionFailTry{namespace="$NAMESPACE",service="clickhouse-$CLUSTERID"}[1m]) > 0 or increase(chi_clickhouse_event_DistributedConnectionFailAtAll{namespace="$NAMESPACE",service="clickhouse-$CLUSTERID"}[1m]) > 0',Operator:"N/A",Unit:"N/A",ProposedDuration:"1m",Explain:"分布式连接发生异常",Summary:"RadonDB ClickHouse 【$CLUSTERID】 分布式连接发生异常",Message:"RadonDB ClickHouse: $CLUSTERID,分布式连接发生异常。 当前值:{{ $value }}"},{NameZh:"ClickHouse拒绝Insert操作",NameEn:"ClickHouseRejectedInsert",Expression:'increase(chi_clickhouse_event_RejectedInserts{namespace="$NAMESPACE",service="clickhouse-$CLUSTERID"}[1m]) > 0',Operator:"N/A",Unit:"N/A",ProposedDuration:"1m",Explain:"出现拒绝插入异常",Summary:"RadonDB ClickHouse 【$CLUSTERID】 出现拒绝插入异常",Message:"RadonDB ClickHouse: $CLUSTERID,出现拒绝插入异常。 当前值:{{ $value }}"},{NameZh:"ClickHouse低插入元组数",NameEn:"ClickHouseLowInsertedRowsPerQuery",Expression:'increase(chi_clickhouse_event_InsertQuery{namespace="$NAMESPACE",service="clickhouse-$CLUSTERID"}[1m]) > 0 and (increase(chi_clickhouse_event_InsertedRows{namespace="$NAMESPACE",service="clickhouse-$CLUSTERID"}[1m]) / increase(chi_clickhouse_event_InsertQuery{namespace="$NAMESPACE",service="clickhouse-$CLUSTERID"}[1m]) <= 1000)',Operator:"N/A",Unit:"N/A",ProposedDuration:"1m",Explain:"建议增加每次Insert操作的插入元组数",Summary:"RadonDB ClickHouse 【$CLUSTERID】 建议增加每次Insert操作的插入元组数",Message:"RadonDB ClickHouse: $CLUSTERID,建议增加每次Insert操作的插入元组数。 当前值:{{ $value }}"},{NameZh:"ClickHouse慢查询",NameEn:"ClickHouseLongestRunningQuery",Expression:'chi_clickhouse_metric_LongestRunningQuery{namespace="$NAMESPACE",service="clickhouse-$CLUSTERID"} > 600',Operator:"N/A",Unit:"N/A",ProposedDuration:"1m",Explain:"出现了长时间运行的慢查询",Summary:"RadonDB ClickHouse 【$CLUSTERID】 出现了长时间运行的慢查询",Message:"RadonDB ClickHouse: $CLUSTERID,出现了长时间运行的慢查询。 当前值:{{ $value }}"},{NameZh:"ClickHouse抢占查询",NameEn:"ClickHouseQueryPreempted",Expression:'chi_clickhouse_metric_QueryPreempted{namespace="$NAMESPACE",service="clickhouse-$CLUSTERID"} > 0',Operator:"N/A",Unit:"N/A",ProposedDuration:"1m",Explain:"发生了抢占查询",Summary:"RadonDB ClickHouse 【$CLUSTERID】 发生了抢占查询",Message:"RadonDB ClickHouse: $CLUSTERID,发生了抢占查询。 当前值:{{ $value }}"},{NameZh:"ClickHouse太多连接数",NameEn:"ClickHouseTooManyConnections",Expression:'chi_clickhouse_metric_HTTPConnection{namespace="$NAMESPACE",service="clickhouse-$CLUSTERID"} + chi_clickhouse_metric_TCPConnection{namespace="$NAMESPACE",service="clickhouse-$CLUSTERID"} + chi_clickhouse_metric_MySQLConnection{namespace="$NAMESPACE",service="clickhouse-$CLUSTERID"}',Operator:">",Unit:"个",ProposedDuration:"1m",Explain:"总连接数超过了$THRESHOLD$UNIT",Summary:"RadonDB ClickHouse 【$CLUSTERID】 总连接数超过了$THRESHOLD$UNIT",Message:"RadonDB ClickHouse: $CLUSTERID,总连接数超过了$THRESHOLD$UNIT。 当前值:{{ $value }}"},{NameZh:"ClickHouse太多查询",NameEn:"ClickHouseTooManyRunningQueries",Expression:'chi_clickhouse_metric_Query{namespace="$NAMESPACE",service="clickhouse-$CLUSTERID"}',Operator:">",Unit:"个",ProposedDuration:"1m",Explain:"太多运行着的查询,超过了$THRESHOLD$UNIT",Summary:"RadonDB ClickHouse 【$CLUSTERID】 太多运行着的查询,超过了$THRESHOLD$UNIT",Message:"RadonDB ClickHouse: $CLUSTERID,太多运行着的查询,超过了$THRESHOLD$UNIT。 当前值:{{ $value }}"}],c={Metric:{ClickHouseServerDown:{label:"ClickHouseServerDown",autoComplete:!0,ruleConfig:o.disabledRuleConfig},ClickHouseServerRestartRecently:{label:"ClickHouseServerRestartRecently",autoComplete:!0,ruleConfig:o.disabledRuleConfig},ClickHouseDistributedFilesToInsertHigh:{label:"ClickHouseDistributedFilesToInsertHigh",ruleConfig:o.ITEM_RULE_CONFIG},ClickHouseLowInsertedRowsPerQuery:{label:"ClickHouseLowInsertedRowsPerQuery",autoComplete:!0,ruleConfig:o.disabledRuleConfig},ClickHouseLongestRunningQuery:{label:"ClickHouseLongestRunningQuery",autoComplete:!0,ruleConfig:o.disabledRuleConfig},ClickHouseQueryPreempted:{label:"ClickHouseQueryPreempted",autoComplete:!0,ruleConfig:o.disabledRuleConfig},ClickHouseTooManyConnections:{label:"ClickHouseTooManyConnections",ruleConfig:o.ITEM_RULE_CONFIG},ClickHouseTooManyRunningQueries:{label:"ClickHouseTooManyRunningQueries",ruleConfig:o.ITEM_RULE_CONFIG}},Query:(0,l.arrayToObject)(u.map((function(e){return(0,n.default)({},e.NameEn,e.Expression)}))),Message:(0,l.arrayToObject)(u.map((function(e){return(0,n.default)({},e.NameEn,e.Message)}))),Summary:(0,l.arrayToObject)(u.map((function(e){return(0,n.default)({},e.NameEn,e.Summary)})))};t.default=c},function(e,t,a){"use strict";a(15);var r=a(20);a(18),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(a(30));a(18);var l=a(930),o=a(969),u=[{NameZh:"当前连接数过多",NameEn:"MongodbTooManyConnections",Expression:'mongodb_connections_current{namespace="$NAMESPACE",cluster_name="$CLUSTERID"}',Operator:">",Unit:"个",ProposedDuration:"1m",Explain:"当前连接数超过$THRESHOLD$UNIT",Summary:"RadonDB MongoDB 【$CLUSTERID】 当前连接数超过$THRESHOLD$UNIT",Message:"RadonDB MongoDB: $CLUSTERID,当前连接数超过$THRESHOLD$UNIT。 当前值:{{ $value }}"},{NameZh:"当前游标打开数量过多",NameEn:"MongodbTooManyCursors",Expression:'mongodb_metrics_cursor_open_total{namespace="$NAMESPACE",cluster_name="$CLUSTERID"}',Operator:">",Unit:"个",ProposedDuration:"1m",Explain:"当前游标打开数量大于$THRESHOLD$UNIT",Summary:"RadonDB MongoDB 【$CLUSTERID】 当前游标打开数量大于$THRESHOLD$UNIT",Message:"RadonDB MongoDB: $CLUSTERID,当前游标打开数量大于$THRESHOLD$UNIT。 当前值:{{ $value }}"},{NameZh:"当前事务读并发已达到最大值",NameEn:"MongodbMaxTransactionConcurrentRead",Expression:'mongodb_wiredTiger_concurrentTransactions_read_out{namespace="$NAMESPACE",cluster_name="$CLUSTERID"} >= 128',Operator:"N/A",Unit:"N/A",ProposedDuration:"1m",Explain:"当前事务读并发已达到最大值128",Summary:"RadonDB MongoDB 【$CLUSTERID】 当前事务读并发已达到最大值128",Message:"RadonDB MongoDB: $CLUSTERID,当前事务读并发已达到最大值128。 当前值:{{ $value }}"},{NameZh:"当前事务写并发已达到最大值",NameEn:"MongodbMaxTransactionConcurrentWrite",Expression:'mongodb_wiredTiger_concurrentTransactions_write_out{namespace="$NAMESPACE",cluster_name="$CLUSTERID"} >= 128',Operator:"N/A",Unit:"N/A",ProposedDuration:"1m",Explain:"当前事务写并发已达到最大值128",Summary:"RadonDB MongoDB 【$CLUSTERID】 当前事务写并发已达到最大值128",Message:"RadonDB MongoDB: $CLUSTERID,当前事务写并发已达到最大值128。 当前值:{{ $value }}"},{NameZh:"WiredTiger 内存使用达到90%",NameEn:"MongoDBWiredTigerUsageEvition",Expression:'mongodb_wiredTiger_cache_bytes_currently_in_the_cache{namespace="$NAMESPACE",cluster_name="$CLUSTERID"}/mongodb_wiredTiger_cache_maximum_bytes_configured{namespace="$NAMESPACE",cluster_name="$CLUSTERID"} * 100 >= 90',Operator:"N/A",Unit:"N/A",ProposedDuration:"1m",Explain:"WiredTiger 内存使用达到90%",Summary:"RadonDB MongoDB 【$CLUSTERID】 WiredTiger 内存使用达到90%",Message:"RadonDB MongoDB: $CLUSTERID,WiredTiger 内存使用达到90%。 当前值:{{ $value }}"},{NameZh:"WiredTiger 内存脏页达到20%",NameEn:"MongoDBWiredTigerDirtyEvition",Expression:'mongodb_wiredTiger_cache_tracked_dirty_bytes_in_the_cache{namespace="$NAMESPACE",cluster_name="$CLUSTERID"}/mongodb_wiredTiger_cache_maximum_bytes_configured{namespace="$NAMESPACE",cluster_name="$CLUSTERID"} * 100 >= 20',Operator:"N/A",Unit:"N/A",ProposedDuration:"1m",Explain:"WiredTiger 内存脏页达到20%",Summary:"RadonDB MongoDB 【$CLUSTERID】 WiredTiger 内存脏页达到20%",Message:"RadonDB MongoDB: $CLUSTERID,WiredTiger 内存脏页达到20%。 当前值:{{ $value }}"}],c={Metric:{MongodbTooManyConnections:{label:"MongodbTooManyConnections",ruleConfig:o.ITEM_RULE_CONFIG},MongodbTooManyCursors:{label:"MongodbTooManyCursors",ruleConfig:o.ITEM_RULE_CONFIG},MongodbMaxTransactionConcurrentRead:{label:"MongodbMaxTransactionConcurrentRead",autoComplete:!0,ruleConfig:o.disabledRuleConfig},MongodbMaxTransactionConcurrentWrite:{label:"MongodbMaxTransactionConcurrentWrite",autoComplete:!0,ruleConfig:o.disabledRuleConfig},MongoDBWiredTigerUsageEvition:{label:"MongoDBWiredTigerUsageEvition",autoComplete:!0,ruleConfig:o.disabledRuleConfig},MongoDBWiredTigerDirtyEvition:{label:"MongoDBWiredTigerDirtyEvition",autoComplete:!0,ruleConfig:o.disabledRuleConfig}},Query:(0,l.arrayToObject)(u.map((function(e){return(0,n.default)({},e.NameEn,e.Expression)}))),Message:(0,l.arrayToObject)(u.map((function(e){return(0,n.default)({},e.NameEn,e.Message)}))),Summary:(0,l.arrayToObject)(u.map((function(e){return(0,n.default)({},e.NameEn,e.Summary)})))};t.default=c},function(e,t,a){"use strict";a(15);var r=a(20);a(18),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(a(30));a(18);var l=a(969),o=a(930),u=[{NameZh:"Redis连接数过多",NameEn:"Redis Client Usage",Expression:'redis_connected_clients{namespace="$NAMESPACE",service=~".*$CLUSTERID.*"}/redis_config_maxclients{namespace="$NAMESPACE",service=~".*$CLUSTERID.*"}*100',Operator:">",Unit:"%",ProposedDuration:"1m",Explain:"当前连接数使用超过$THRESHOLD$UNIT",Summary:"RadonDB Redis 【$CLUSTERID】 当前连接数使用超过$THRESHOLD$UNIT",Message:"RadonDB Redis: $CLUSTERID,当前连接数使用超过$THRESHOLD$UNIT。 当前值:{{ $value }}"},{NameZh:"被拒绝的Key个数",NameEn:"Evicted Keys",Expression:'redis_evicted_keys_total{namespace="$NAMESPACE",service=~".*$CLUSTERID.*"}',Operator:">",Unit:"个",ProposedDuration:"1m",Explain:"被拒绝的key的个数达到$THRESHOLD$UNIT",Summary:"RadonDB Redis 【$CLUSTERID】 被拒绝的key的个数达到$THRESHOLD$UNIT",Message:"RadonDB Redis: $CLUSTERID,被拒绝的key的个数达到$THRESHOLD$UNIT。 当前值:{{ $value }}"},{NameZh:"内存使用率",NameEn:"Memory Usage",Expression:'redis_memory_used_bytes{namespace="$NAMESPACE",service=~".*$CLUSTERID.*"}/redis_memory_max_bytes{namespace="$NAMESPACE",service=~".*$CLUSTERID.*"}*100',Operator:">",Unit:"%",ProposedDuration:"1m",Explain:"当前内存使用率超过$THRESHOLD$UNIT",Summary:"RadonDB Redis 【$CLUSTERID】 当前内存使用率超过$THRESHOLD$UNIT",Message:"RadonDB Redis: $CLUSTERID,当前内存使用率超过$THRESHOLD$UNIT。 当前值:{{ $value }}"},{NameZh:"阻塞的客户端数",NameEn:"Blocked Clients",Expression:'redis_blocked_clients{namespace="$NAMESPACE",service=~".*$CLUSTERID.*"}',Operator:">",Unit:"个",ProposedDuration:"1m",Explain:"阻塞客户端数超过$THRESHOLD$UNIT",Summary:"RadonDB Redis 【$CLUSTERID】 阻塞客户端数超过$THRESHOLD$UNIT",Message:"RadonDB Redis: $CLUSTERID,阻塞客户端数超过$THRESHOLD$UNIT。 当前值:{{ $value }}"},{NameZh:"拒绝的连接数",NameEn:"Rejected Connections",Expression:'rate(redis_rejected_connections_total{namespace="$NAMESPACE",service=~".*$CLUSTERID.*"}[5m])',Operator:">",Unit:"%",ProposedDuration:"1m",Explain:"拒绝的连接数超过$THRESHOLD$UNIT",Summary:"RadonDB Redis 【$CLUSTERID】 拒绝的连接数超过$THRESHOLD$UNIT",Message:"RadonDB Redis: $CLUSTERID,拒绝的连接数超过$THRESHOLD$UNIT。 当前值:{{ $value }}"},{NameZh:"已使用的rss字节数",NameEn:"Used RSS Bytes",Expression:'redis_memory_used_rss_bytes{namespace="$NAMESPACE",service=~".*$CLUSTERID.*"}',Operator:">",Unit:"byte",ProposedDuration:"1m",Explain:"内存已经使用的内存大小超过$THRESHOLD$UNIT",Summary:"RadonDB Redis 【$CLUSTERID】 内存已经使用的内存大小超过$THRESHOLD$UNIT",Message:"RadonDB Redis: $CLUSTERID,内存已经使用的内存大小超过$THRESHOLD$UNIT。 当前值:{{ $value }}"},{NameZh:"内存碎片率",NameEn:"Memory Fragmentation Ratio",Expression:'redis_mem_fragmentation_ratio{namespace="$NAMESPACE",service=~".*$CLUSTERID.*"} > 1.5 ',Operator:"N/A",Unit:"N/A",ProposedDuration:"1m",Explain:"内存碎片率过大,超过1.5",Summary:"RadonDB Redis 【$CLUSTERID】 内存碎片率过大,超过1.5",Message:"RadonDB Redis: $CLUSTERID,内存碎片率过大,超过1.5。 当前值:{{ $value }}"}],c={Metric:{"Redis Client Usage":{label:"Redis Client Usage",ruleConfig:l.PERCENT_RULE_CONFIG},"Evicted Keys":{label:"Evicted Keys",ruleConfig:l.ITEM_RULE_CONFIG},"Memory Usage":{label:"Memory Usage",ruleConfig:l.PERCENT_RULE_CONFIG},"Blocked Clients":{label:"Blocked Clients",ruleConfig:l.ITEM_RULE_CONFIG},"Rejected Connections":{label:"Rejected Connections",ruleConfig:l.PERCENT_RULE_CONFIG},"Used RSS Bytes":{label:"Used RSS Bytes",ruleConfig:l.BYTE_RULE_CONFIG},"Memory Fragmentation Ratio":{label:"Memory Fragmentation Ratio",autoComplete:!0,ruleConfig:l.disabledRuleConfig}},Query:(0,o.arrayToObject)(u.map((function(e){return(0,n.default)({},e.NameEn,e.Expression)}))),Message:(0,o.arrayToObject)(u.map((function(e){return(0,n.default)({},e.NameEn,e.Message)}))),Summary:(0,o.arrayToObject)(u.map((function(e){return(0,n.default)({},e.NameEn,e.Summary)})))};t.default=c},function(e,t,a){"use strict";a(15);var r=a(20);a(18),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(a(30));a(18);var l=a(969),o=a(930),u=[{NameZh:"集群健康状态为 yellow",NameEn:"ClusterHealthStatusYellow",Expression:'elasticsearch_cluster_health_status{service="$CLUSTERID-es-elasticsearch-exporter",namespace="$NAMESPACE",color="yellow"} == 1',Operator:"N/A",Unit:"N/A",ProposedDuration:"3m",Explain:"集群健康状态为 yellow",Summary:"RadonDB Elasticsearch 【$CLUSTERID】 集群健康状态为 yellow",Message:"RadonDB Elasticsearch: $CLUSTERID,集群健康状态为 yellow。 当前值:{{ $value }}"},{NameZh:"集群健康状态为 red",NameEn:"ClusterHealthStatusRed",Expression:'elasticsearch_cluster_health_status{service="$CLUSTERID-es-elasticsearch-exporter",namespace="$NAMESPACE",color="red"} == 1',Operator:"N/A",Unit:"N/A",ProposedDuration:"3m",Explain:"集群健康状态为 red",Summary:"RadonDB Elasticsearch 【$CLUSTERID】 集群健康状态为 red",Message:"RadonDB Elasticsearch: $CLUSTERID,集群健康状态为 red。 当前值:{{ $value }}"},{NameZh:"堆内存使用率超过85%",NameEn:"HeapMemTooHigh85%",Expression:'max(round(elasticsearch_jvm_memory_used_bytes{service="$CLUSTERID-es-elasticsearch-exporter",namespace="$NAMESPACE",area="heap"}/elasticsearch_jvm_memory_max_bytes{service="$CLUSTERID-es-elasticsearch-exporter",namespace="$NAMESPACE",area="heap"}*100,0.1)) > 85',Operator:"N/A",Unit:"N/A",ProposedDuration:"3m",Explain:"堆内存使用率超过85%",Summary:"RadonDB Elasticsearch 【$CLUSTERID】 堆内存使用率超过85%",Message:"RadonDB Elasticsearch: $CLUSTERID,堆内存使用率超过85%。 当前值:{{ $value }}"},{NameZh:"堆内存使用率超过90%",NameEn:"HeapMemTooHigh90%",Expression:'max(round(elasticsearch_jvm_memory_used_bytes{service="$CLUSTERID-es-elasticsearch-exporter",namespace="$NAMESPACE",area="heap"}/elasticsearch_jvm_memory_max_bytes{service="$CLUSTERID-es-elasticsearch-exporter",namespace="$NAMESPACE",area="heap"}*100,0.1)) > 90',Operator:"N/A",Unit:"N/A",ProposedDuration:"3m",Explain:"堆内存使用率超过90%",Summary:"RadonDB Elasticsearch 【$CLUSTERID】 堆内存使用率超过90%",Message:"RadonDB Elasticsearch: $CLUSTERID,堆内存使用率超过90%。 当前值:{{ $value }}"},{NameZh:"CPU使用率超过90%",NameEn:"CPUUsageOver90%",Expression:'max(elasticsearch_os_cpu_percent{service="$CLUSTERID-es-elasticsearch-exporter",namespace="$NAMESPACE"}) > 90',Operator:"N/A",Unit:"N/A",ProposedDuration:"3m",Explain:"CPU使用率超过90%",Summary:"RadonDB Elasticsearch 【$CLUSTERID】 CPU使用率超过90%",Message:"RadonDB Elasticsearch: $CLUSTERID,CPU使用率超过90%。 当前值:{{ $value }}"},{NameZh:"磁盘可用百分比小于15%",NameEn:"AvailableDiskLessThan15%",Expression:'min(round(elasticsearch_filesystem_data_free_bytes{service="$CLUSTERID-es-elasticsearch-exporter",namespace="$NAMESPACE"}/elasticsearch_filesystem_data_size_bytes{service="$CLUSTERID-es-elasticsearch-exporter",namespace="$NAMESPACE"}*100,0.1)) < 15',Operator:"N/A",Unit:"N/A",ProposedDuration:"1m",Explain:"磁盘可用百分比小于15%",Summary:"RadonDB Elasticsearch 【$CLUSTERID】 磁盘可用百分比小于15%",Message:"RadonDB Elasticsearch: $CLUSTERID,磁盘可用百分比小于15%。 当前值:{{ $value }}"},{NameZh:"磁盘可用百分比小于10%",NameEn:"AvailableDiskLessThan10%",Expression:'min(round(elasticsearch_filesystem_data_free_bytes{service="$CLUSTERID-es-elasticsearch-exporter",namespace="$NAMESPACE"}/elasticsearch_filesystem_data_size_bytes{service="$CLUSTERID-es-elasticsearch-exporter",namespace="$NAMESPACE"}*100,0.1)) < 10',Operator:"N/A",Unit:"N/A",ProposedDuration:"1m",Explain:"磁盘可用百分比小于10%",Summary:"RadonDB Elasticsearch 【$CLUSTERID】 磁盘可用百分比小于10%",Message:"RadonDB Elasticsearch: $CLUSTERID,磁盘可用百分比小于10%。 当前值:{{ $value }}"},{NameZh:"磁盘可用百分比小于5%",NameEn:"AvailableDiskLessThan5%",Expression:'min(round(elasticsearch_filesystem_data_free_bytes{service="$CLUSTERID-es-elasticsearch-exporter",namespace="$NAMESPACE"}/elasticsearch_filesystem_data_size_bytes{service="$CLUSTERID-es-elasticsearch-exporter",namespace="$NAMESPACE"}*100,0.1)) < 5',Operator:"N/A",Unit:"N/A",ProposedDuration:"1m",Explain:"磁盘可用百分比小于5%",Summary:"RadonDB Elasticsearch 【$CLUSTERID】 磁盘可用百分比小于5%",Message:"RadonDB Elasticsearch: $CLUSTERID,磁盘可用百分比小于5%。 当前值:{{ $value }}"}],c={Metric:{ClusterHealthStatusYellow:{label:"ClusterHealthStatusYellow",autoComplete:!0,ruleConfig:l.disabledRuleConfig},ClusterHealthStatusRed:{label:"ClusterHealthStatusRed",autoComplete:!0,ruleConfig:l.disabledRuleConfig},"HeapMemTooHigh85%":{label:"HeapMemTooHigh85%",autoComplete:!0,ruleConfig:l.disabledRuleConfig},"HeapMemTooHigh90%":{label:"HeapMemTooHigh90%",autoComplete:!0,ruleConfig:l.disabledRuleConfig},"CPUUsageOver90%":{label:"CPUUsageOver90%",autoComplete:!0,ruleConfig:l.disabledRuleConfig},"AvailableDiskLessThan15%":{label:"AvailableDiskLessThan15%",autoComplete:!0,ruleConfig:l.disabledRuleConfig},"AvailableDiskLessThan10%":{label:"AvailableDiskLessThan10%",autoComplete:!0,ruleConfig:l.disabledRuleConfig},"AvailableDiskLessThan5%":{label:"AvailableDiskLessThan5%",autoComplete:!0,ruleConfig:l.disabledRuleConfig}},Query:(0,o.arrayToObject)(u.map((function(e){return(0,n.default)({},e.NameEn,e.Expression)}))),Message:(0,o.arrayToObject)(u.map((function(e){return(0,n.default)({},e.NameEn,e.Message)}))),Summary:(0,o.arrayToObject)(u.map((function(e){return(0,n.default)({},e.NameEn,e.Summary)})))};t.default=c},function(e,t,a){"use strict";a(15);var r=a(20);a(18),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(a(30));a(18);var l=a(969),o=a(930),u=[{NameZh:"存在不可用的 partitions",NameEn:"ExistOfflinePartitions",Expression:'sum(kafka_controller_kafkacontroller_offlinepartitionscount{namespace="$NAMESPACE",strimzi_io_cluster="$CLUSTERID"}) > 0',Operator:"N/A",Unit:"N/A",Summary:"存在不可用的partitions。",Message:""},{NameZh:"存在ISR数目小于最小ISR的partitions",NameEn:"ExistPartitionsUnderMinimumISR",Expression:'sum(kafka_cluster_partition_underminisr{namespace="$NAMESPACE",strimzi_io_cluster="$CLUSTERID"}) > 0',Operator:"N/A",Unit:"N/A",ProposedDuration:"3m",Summary:"存在ISR数目小于最小ISR的partitions。",Message:""},{NameZh:"堆内存使用率超过85%",NameEn:"KafkaHeapMemTooHigh85%",Expression:'round(sum(jvm_memory_bytes_used{namespace="$NAMESPACE",strimzi_io_name="$CLUSTERID-kafka"})/sum(jvm_memory_bytes_max{namespace="$NAMESPACE",strimzi_io_name="$CLUSTERID-kafka"})*100,0.1) > 85',Operator:"N/A",Unit:"N/A",ProposedDuration:"3m",Summary:"堆内存使用率超过85%。",Message:""},{NameZh:"磁盘可用百分比小于15%",NameEn:"KafkaAvailableDiskLessThan15%",Expression:'round(sum(kubelet_volume_stats_available_bytes{namespace="$NAMESPACE",persistentvolumeclaim=~"data-0-$CLUSTERID-kafka.*"})/sum(kubelet_volume_stats_capacity_bytes{namespace="$NAMESPACE",persistentvolumeclaim=~"data-0-$CLUSTERID-kafka.*"})*100,0.1) < 15',Operator:"N/A",Unit:"N/A",ProposedDuration:"3m",Summary:"磁盘可用百分比小于15%。",Message:""},{NameZh:"磁盘可用百分比小于10%",NameEn:"KafkaAvailableDiskLessThan10%",Expression:'round(sum(kubelet_volume_stats_available_bytes{namespace="$NAMESPACE",persistentvolumeclaim=~"data-0-$CLUSTERID-kafka.*"})/sum(kubelet_volume_stats_capacity_bytes{namespace="$NAMESPACE",persistentvolumeclaim=~"data-0-$CLUSTERID-kafka.*"})*100,0.1) < 10',Operator:"N/A",Unit:"N/A",ProposedDuration:"3m",Summary:"磁盘可用百分比小于10%。",Message:""},{NameZh:"磁盘可用百分比小于5%",NameEn:"KafkaAvailableDiskLessThan5%",Expression:'round(sum(kubelet_volume_stats_available_bytes{namespace="$NAMESPACE",persistentvolumeclaim=~"data-0-$CLUSTERID-kafka.*"})/sum(kubelet_volume_stats_capacity_bytes{namespace="$NAMESPACE",persistentvolumeclaim=~"data-0-$CLUSTERID-kafka.*"})*100,0.1) < 5',Operator:"N/A",Unit:"N/A",ProposedDuration:"1m",Summary:"磁盘可用百分比小于5%。",Message:""},{NameZh:"平均响应时间超过1000ms",NameEn:"RequestLatencyAverage1s",Expression:'zookeeper_avgrequestlatency{namespace="$NAMESPACE",kubernetes_pod_name=~"$CLUSTERID-zookeeper.*"} > 1000',Operator:"N/A",Unit:"N/A",ProposedDuration:"1m",Summary:"平均响应时间超过1000ms。",Message:""}],c={Metric:{ExistOfflinePartitions:{label:"ExistOfflinePartitions",autoComplete:!0,ruleConfig:l.disabledRuleConfig},ExistPartitionsUnderMinimumISR:{label:"ExistPartitionsUnderMinimumISR",autoComplete:!0,ruleConfig:l.disabledRuleConfig},"KafkaHeapMemTooHigh85%":{label:"HeapMemTooHigh85%",autoComplete:!0,ruleConfig:l.disabledRuleConfig},"KafkaAvailableDiskLessThan15%":{label:"AvailableDiskLessThan15%",autoComplete:!0,ruleConfig:l.disabledRuleConfig},"KafkaAvailableDiskLessThan10%":{label:"AvailableDiskLessThan10%",autoComplete:!0,ruleConfig:l.disabledRuleConfig},"KafkaAvailableDiskLessThan5%":{label:"AvailableDiskLessThan5%",autoComplete:!0,ruleConfig:l.disabledRuleConfig},RequestLatencyAverage1s:{label:"RequestLatencyAverage1s",autoComplete:!0,ruleConfig:l.disabledRuleConfig}},Query:(0,o.arrayToObject)(u.map((function(e){return(0,n.default)({},e.NameEn,e.Expression)}))),Message:(0,o.arrayToObject)(u.map((function(e){return(0,n.default)({},e.NameEn,e.Message)}))),Summary:(0,o.arrayToObject)(u.map((function(e){return(0,n.default)({},e.NameEn,e.Summary)})))};t.default=c},function(e,t,a){"use strict";a(15);var r=a(20);a(18),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(a(30));a(18);var l=a(969),o=a(930),u=[{NameEn:"OpenSearchClusterHealthStatusYellow",Expression:'max(opensearch_cluster_status{service="$CLUSTERID",namespace="$NAMESPACE"})==1',Operator:"N/A",Unit:"N/A",ProposedDuration:"3m",Summary:"RadonDB OpenSearch 【$CLUSTERID】 集群健康状态为 yellow",Message:"RadonDB OpenSearch: $CLUSTERID,集群健康状态为 yellow。 当前值:{{ $value }}"},{NameEn:"OpenSearchClusterHealthStatusRed",Expression:'max(opensearch_cluster_status{service="$CLUSTERID",namespace="$NAMESPACE"})==2',Operator:"N/A",Unit:"N/A",ProposedDuration:"3m",Summary:"RadonDB OpenSearch 【$CLUSTERID】 集群健康状态为 red",Message:"RadonDB OpenSearch: $CLUSTERID,集群健康状态为 red。 当前值:{{ $value }}"},{NameEn:"OpenSearchHeapMemTooHigh85%",Expression:'max(opensearch_jvm_mem_heap_used_percent{service="$CLUSTERID",namespace="$NAMESPACE"})>85',Operator:"N/A",Unit:"N/A",ProposedDuration:"3m",Summary:"RadonDB OpenSearch 【$CLUSTERID】 堆内存使用率超过85%",Message:"RadonDB OpenSearch: $CLUSTERID,堆内存使用率超过85%。 当前值:{{ $value }}"},{NameEn:"OpenSearchHeapMemTooHigh90%",Expression:'max(opensearch_jvm_mem_heap_used_percent{service="$CLUSTERID",namespace="$NAMESPACE"})>90',Operator:"N/A",Unit:"N/A",ProposedDuration:"3m",Summary:"RadonDB OpenSearch 【$CLUSTERID】 堆内存使用率超过90%",Message:"RadonDB OpenSearch: $CLUSTERID,堆内存使用率超过90%。 当前值:{{ $value }}"},{NameEn:"OpenSearchCPUUsageOver90%",Expression:'max(opensearch_os_cpu_percent{service="$CLUSTERID",namespace="$NAMESPACE"})>90',Operator:"N/A",Unit:"N/A",ProposedDuration:"3m",Summary:"RadonDB OpenSearch 【$CLUSTERID】 CPU使用率超过90%",Message:"RadonDB OpenSearch: $CLUSTERID,CPU使用率超过90%。 当前值:{{ $value }}"},{NameEn:"OpenSearchAvailableDiskLessThan15%",Expression:'min(round(opensearch_fs_total_available_bytes{service="$CLUSTERID",namespace="$NAMESPACE"}/opensearch_fs_total_total_bytes{service="$CLUSTERID",namespace="$NAMESPACE"}*100,0.1))<15',Operator:"N/A",Unit:"N/A",ProposedDuration:"1m",Summary:"RadonDB OpenSearch 【$CLUSTERID】 磁盘可用百分比小于15%",Message:"RadonDB OpenSearch: $CLUSTERID,磁盘可用百分比小于15%。 当前值:{{ $value }}"},{NameEn:"OpenSearchAvailableDiskLessThan10%",Expression:'min(round(opensearch_fs_total_available_bytes{service="$CLUSTERID",namespace="$NAMESPACE"}/opensearch_fs_total_total_bytes{service="$CLUSTERID",namespace="$NAMESPACE"}*100,0.1))<10',Operator:"N/A",Unit:"N/A",ProposedDuration:"1m",Summary:"RadonDB OpenSearch 【$CLUSTERID】 磁盘可用百分比小于10%",Message:"RadonDB OpenSearch: $CLUSTERID,磁盘可用百分比小于10%。 当前值:{{ $value }}"},{NameEn:"OpenSearchAvailableDiskLessThan5%",Expression:'min(round(opensearch_fs_total_available_bytes{service="$CLUSTERID",namespace="$NAMESPACE"}/opensearch_fs_total_total_bytes{service="$CLUSTERID",namespace="$NAMESPACE"}*100,0.1))<5',Operator:"N/A",Unit:"N/A",ProposedDuration:"1m",Summary:"RadonDB OpenSearch 【$CLUSTERID】 磁盘可用百分比小于5%",Message:"RadonDB OpenSearch: $CLUSTERID,磁盘可用百分比小于5%。 当前值:{{ $value }}"}],c={Metric:{OpenSearchClusterHealthStatusYellow:{label:"ClusterHealthStatusYellow",autoComplete:!0,ruleConfig:l.disabledRuleConfig},OpenSearchClusterHealthStatusRed:{label:"ClusterHealthStatusRed",autoComplete:!0,ruleConfig:l.disabledRuleConfig},"OpenSearchHeapMemTooHigh85%":{label:"HeapMemTooHigh85%",autoComplete:!0,ruleConfig:l.disabledRuleConfig},"OpenSearchHeapMemTooHigh90%":{label:"HeapMemTooHigh90%",autoComplete:!0,ruleConfig:l.disabledRuleConfig},"OpenSearchCPUUsageOver90%":{label:"CPUUsageOver90%",autoComplete:!0,ruleConfig:l.disabledRuleConfig},"OpenSearchAvailableDiskLessThan15%":{label:"AvailableDiskLessThan15%",autoComplete:!0,ruleConfig:l.disabledRuleConfig},"OpenSearchAvailableDiskLessThan10%":{label:"AvailableDiskLessThan10%",autoComplete:!0,ruleConfig:l.disabledRuleConfig},"OpenSearchAvailableDiskLessThan5%":{label:"AvailableDiskLessThan5%",autoComplete:!0,ruleConfig:l.disabledRuleConfig}},Query:(0,o.arrayToObject)(u.map((function(e){return(0,n.default)({},e.NameEn,e.Expression)}))),Message:(0,o.arrayToObject)(u.map((function(e){return(0,n.default)({},e.NameEn,e.Message)}))),Summary:(0,o.arrayToObject)(u.map((function(e){return(0,n.default)({},e.NameEn,e.Summary)})))};t.default=c},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,a,r){"use strict";var n=r(20);r(12),r(5),r(11),r(6),r(16),r(9),r(13),r(10),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(5),r(11),r(6),r(28),r(16),r(34),r(15),r(9),r(13),r(10),r(4),r(22),r(7);var l=n(r(43));r(41);var o=n(r(44)),u=n(r(30)),c=n(r(58)),s=n(r(26)),i=n(r(74)),f=n(r(63)),d=n(r(189)),p=n(r(240)),m=n(r(787)),v=r(52),h=n(r(435)),E=r(72),y=n(r(1606)),g=n(r(825)),b=n(r(2612)),S=n(r(1609)),_=n(r(1610)),O=n(r(1625)),C=n(r(917)),T=n(r(1179));function R(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function D(e){for(var t=1;t1){a=!0;break}n++}})),a},n.handleGoBack=function(){var e=n.context.resetSubRoute;return e&&e(),n.props.onCancel(),!1},n.handleProtocolChange=function(e){n.setState({protocol:e})},n.handleSubmit=function(e){var t=n.props.onSave,a=n.formRef.current;a&&a.validate((function(){var r=a.getData();t(r),e&&e()}))},n.handleValidator=function(){var e=!1,t=n.formRef.current;return t&&t.validate((function(){e=!0})),e},n.domainValidator=function(e,a,r){var l,o=n.props,u=o.isFederated,c=o.data,s=o.validData,d=o.detail,m=(0,i.default)(d,"clusters",[]).map((function(e){return e.name})),v=!!(null==s||null===(l=s.metadata)||void 0===l?void 0:l.creationTimestamp)?"put":"post";if(!a)return r();var h=n.props.cluster||n.defaultClusters,E=(0,i.default)(s,"metadata.namespace",""),y=(0,i.default)(s,"metadata.name","");u&&((0,f.default)(s,"apiVersion","networking.k8s.io/v1"),(0,f.default)(s,"kind","Ingress"),(0,f.default)(s,"spec",{})),(0,f.default)(s,"spec.rules",[{host:a}]),(null==c?void 0:c.clusters)?Promise.all(c.clusters.map((function(e){return-1===(0,p.default)(m,e)&&(v="post"),n.ingressStore.checkValidDomain({cluster:e,namespace:E,name:y},s,v).then((function(e){return e.exist}))}))).then((function(a){if(a.some((function(e){return e})))return r({message:t("EXIT_DOMAIN_DESC"),field:e.field});r()})):(h=u?"":h,n.ingressStore.checkValidDomain({cluster:h,namespace:E,name:y},s,v).then((function(a){if(a.exist)return r({message:t("EXIT_DOMAIN_DESC"),field:e.field});r()})))},n.state={service:"",protocol:(0,i.default)(e,"data.protocol","http")},n.formRef=m.default.createRef(),n.ingressStore=new S.default,n}return(0,o.default)(r,[{key:"componentDidMount",value:function(){var e=this.context.registerSubRoute;e&&e(this.handleSubmit,this.handleGoBack)}},{key:"getType",value:function(e){var t=(0,i.default)(e,"host");if(!t)return"auto";var a=this.props,r=a.gateway,n=a.projectDetail,l=a.namespace,o=(0,i.default)(e,"http.paths[0].backend.service.name"),u=(0,i.default)(n,'_originData.metadata.labels["kubesphere.io/namespace"]')||l;return t===(r.isHostName?r.defaultIngress:"".concat((0,O.withDot)(o)).concat((0,O.withDot)(u)).concat((0,O.withDot)(r.defaultIngress),"nip.io"))?"auto":"specify"}},{key:"renderForm",value:function(){var e,a,r=this.state.protocol;return m.default.createElement(m.default.Fragment,null,m.default.createElement(E.Form.Item,{label:t("DOMAIN_NAME_TCAP"),key:null===(e=this.props.data)||void 0===e||null===(a=e.clusters)||void 0===a?void 0:a.length,rules:[{required:!0,message:t("DOMAIN_NAME_EMPTY_DESC")},{pattern:_.PATTERN_HOST,message:t("INVALID_DOMAIN_DESC")},{validator:this.domainValidator}]},m.default.createElement(E.Input,{name:"host",autoFocus:!0})),m.default.createElement(E.Form.Item,{label:t("PROTOCOL")},m.default.createElement(E.Select,{name:"protocol",defaultValue:"http",onChange:this.handleProtocolChange,options:this.protocols})),"https"===r&&m.default.createElement(E.Form.Item,{label:t("SECRET")},m.default.createElement(E.Select,{name:"secretName",options:this.secrets,placeholder:" "})),m.default.createElement(E.Form.Item,{label:t("PATH_PL"),rules:[{required:!0,message:t("PATH_EMPTY_DESC")},{validator:this.pathValidator,checkOnSubmit:!0}]},m.default.createElement(y.default,{name:"http.paths",itemType:"object",addText:t("ADD"),checkItemValid:this.checkItemValid},m.default.createElement(g.default,{services:this.props.services}))))}},{key:"render",value:function(){var e=this,a=this.props,r=a.data,n=a.className,l=a.isFederated;return m.default.createElement("div",{className:(0,v.default)(T.default.wrapper,n)},m.default.createElement("div",{className:"h4"},m.default.createElement("a",{className:"custom-icon",onClick:this.handleGoBack},m.default.createElement(b.ReactComponent,null)),t("SET_ROUTING_RULES")),m.default.createElement("div",{className:T.default.formWrapper},m.default.createElement(E.Form,{ref:this.formRef,data:r},l&&m.default.createElement(E.Form.Group,{label:t("CLUSTER")},m.default.createElement(E.Form.Item,null,m.default.createElement(C.default,{name:"clusters",options:this.clusters,defaultValue:this.defaultClusters,onChange:function(){(0,f.default)(r,"host",""),e.forceUpdate()}}))),m.default.createElement(E.Form.Group,{noWrapper:!0},this.renderForm()))))}},{key:"protocols",get:function(){return[{label:"HTTP",value:"http"},{label:"HTTPS",value:"https"}]}},{key:"secrets",get:function(){return this.props.secrets.map((function(e){return{label:e.name,value:e.name}}))}},{key:"clusters",get:function(){return(0,i.default)(this.props,"projectDetail.clusters",[]).slice()}},{key:"clusterNames",get:function(){var e;return null==this||null===(e=this.clusters)||void 0===e?void 0:e.map((function(e){return e.name}))}},{key:"defaultClusters",get:function(){return(0,i.default)(this.props,"projectDetail.clusters",[]).map((function(e){return e.name}))}},{key:"enableAutoGenerated",get:function(){var e=this.props,t=e.isFederated,a=e.gateway;return!t&&!(0,d.default)(a.defaultIngress)}}]),r}(m.default.Component);a.default=D,D.propTypes={data:h.default.object,secrets:h.default.array,services:h.default.array,gateway:h.default.object,onSave:h.default.func,onCancel:h.default.func},D.defaultProps={data:{},secrets:[],services:[],gateway:{},onSave:function(){},onCancel:function(){}},D.contextTypes={registerSubRoute:h.default.func,resetSubRoute:h.default.func}},,,,,function(e,t,a){e.exports={wrapper:"_3--VX5nESZHibBLwCNMfSL",advance:"_2EJlmbhXorbkEHtrN5QqEi",toggle:"_2S7NwpmHoQs9jxrplqTMLA",customFormItem:"_1u5SUDiQDf_eLXCZDmMJJO",formWrapper:"_2dDLG5BZ_t68ckVmZFy-RR",form:"_2YOPmzRJE1x018vTgrvqht"}},function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(16),r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(42),r(16),r(4),r(22),r(23),r(57),r(17);var l=n(r(43));r(41);var o=n(r(44)),u=n(r(36)),c=n(r(37)),s=n(r(55)),i=n(r(56)),f=n(r(51)),d=n(r(0)),p=n(r(26)),m=n(r(63)),v=n(r(895)),h=n(r(74)),E=r(72),y=r(186),g=n(r(834)),b=n(r(2610));function S(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,f.default)(e);if(t){var n=(0,f.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,i.default)(this,a)}}var _=function(e){(0,s.default)(n,e);var a,r=S(n);function n(e){var t;return(0,u.default)(this,n),(t=r.call(this,e)).getGateway=(0,o.default)(l.default.mark((function e(){var a,r,n;return l.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.props.isFederated){e.next=9;break}return a=function(){return t.gatewayStore.getGatewayByProject({namespace:t.namespace,cluster:t.cluster})},t.setState({isLoading:!0}),e.next=5,a();case 5:r=e.sent,(n=r[0]||r[1]||r[2]||{}).serviceMeshEnable&&(0,h.default)(t.formTemplate,'metadata.annotations["nginx.ingress.kubernetes.io/service-upstream"]',"true"),t.setState({gateway:n,isLoading:!1});case 9:case"end":return e.stop()}}),e)}))),t.gatewayStore=new g.default,t.state={ingressNameOption:[]},t}return(0,c.default)(n,[{key:"componentDidMount",value:function(){this.getIngressNameOptions()}},{key:"getIngressNameOptions",value:(a=(0,o.default)(l.default.mark((function e(){var t,a;return l.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.gatewayStore.getNewGatewayByProject({cluster:this.cluster,namespace:this.namespace});case 2:(t=e.sent).length&&this.getGateway(),a=(0,v.default)(t,(function(e){return{label:"".concat(e.ingressClass,"(").concat(e.name,")"),value:e.ingressClass}})),this.setState({ingressNameOption:a});case 6:case"end":return e.stop()}}),e,this)}))),function(){return a.apply(this,arguments)})},{key:"render",value:function(){var e=this.props.formRef,a=this.state.ingressNameOption;return d.default.createElement(y.Form,{data:this.formTemplate,ref:e},!(0,m.default)(a)&&d.default.createElement(y.Form.Item,{label:t("SELECT_INGRESSCLASSNAME")},d.default.createElement(y.Select,{name:"spec.ingressClassName",options:a})),d.default.createElement(y.Form.Group,{label:t("ADD_METADATA"),desc:t("ROUTE_ADD_METADATA_DESC"),keepDataWhenUnCheck:!0,checkable:!0},d.default.createElement(b.default,null)))}},{key:"formTemplate",get:function(){var e=this.props,t=e.formTemplate,a=e.module;return(0,p.default)(t,E.MODULE_KIND_MAP[a],t)}},{key:"cluster",get:function(){return this.props.cluster}},{key:"namespace",get:function(){return this.props.namespace||(0,p.default)(this.formTemplate,"metadata.namespace")}}]),n}(d.default.Component);a.default=_},function(e,a,r){"use strict";r(15);var n=r(20);r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(42),r(4),r(23),r(57),r(17);var l=n(r(36)),o=n(r(37)),u=n(r(55)),c=n(r(56)),s=n(r(51)),i=n(r(0)),f=r(186),d=n(r(1050)),p=n(r(842));function m(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,s.default)(e);if(t){var n=(0,s.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,c.default)(this,a)}}var v=function(e){(0,u.default)(r,e);var a=m(r);function r(){return(0,l.default)(this,r),a.apply(this,arguments)}return(0,o.default)(r,[{key:"render",value:function(){return i.default.createElement(i.default.Fragment,null,i.default.createElement(f.Form.Item,{label:t("ANNOTATION_PL")},i.default.createElement(d.default,{name:"metadata.annotations",addText:t("ADD"),hiddenKeys:globals.config.preservedAnnotations})),i.default.createElement(f.Form.Item,{label:t("LABEL_PL")},i.default.createElement(p.default,{name:"metadata.labels",addText:t("ADD")})))}}]),r}(i.default.Component);a.default=v},,function(e,a,r){"use strict";var n=r(20);r(12),r(5),r(11),r(6),r(9),r(13),r(10),r(4),r(23),r(17),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(45),r(5),r(11),r(6),r(28),r(42),r(34),r(15),r(9),r(13),r(10),r(4),r(23),r(57),r(17),r(7);var l=n(r(58)),o=n(r(36)),u=n(r(37)),c=n(r(55)),s=n(r(56)),i=n(r(51)),f=n(r(30)),d=n(r(0)),p=n(r(1)),m=n(r(3)),v=r(186),h=n(r(787)),E=n(r(2613));function y(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function g(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:"appList",t=arguments.length>1?arguments[1]:void 0;r.setState({selectRepo:t,viewType:e})},r.handleClickApp=function(e){r.setState({viewType:"appDetail",selectApp:e})},r.handleDeploy=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.containerDetail,a=(0,i.default)(e,["containerDetail"]),n=R.default.edgeappsets((0,g.default)(r.props,"namespace")),l=(0,E.default)(t,["metadata","labels","apps.edgewize.io/apptemplate"]),o=(0,E.default)(t,"spec"),u=(0,E.default)(o,"version"),c=(0,y.default)(o,"version");(0,b.default)(n,"spec.appTemplateName",l),(0,b.default)(n,"spec.version",u),(0,b.default)(n,"spec.deploymentTemplate.spec",c),(0,S.default)(n,{spec:{deploymentTemplate:{spec:{template:{spec:{deploymentTemplate:{spec:c}}}}}}}),r.props.trigger("app.template.deploy",P(P(P({},a),(0,g.default)(r.props,["cluster","workspace","namespace"])),{},{formTemplate:n,success:function(){r.props.onOk(),r.props.routing.query()}}))},r.state={selectRepo:"",viewType:"appList",selectApp:null},r}return(0,d.default)(a,[{key:"render",value:function(){var e=this.props,t=e.visible,a=e.onCancel,r=e.cluster,n=void 0===r?"":r,l=e.workspace,o=void 0===l?"":l,u=e.namespace,s=(e.onDeploy,(0,i.default)(e,["visible","onCancel","cluster","workspace","namespace","onDeploy"])),f=this.state,d=f.viewType,p=f.selectApp,m=f.selectRepo;return h.default.createElement(T.default,(0,c.default)({width:1070,className:k.default.modal,bodyClassName:k.default.body,visible:t,onCancel:a,rightScreen:!0,hideHeader:!0,hideFooter:!0},s),h.default.createElement(C.Button,{className:k.default.close,icon:"close",iconType:"light",type:"control",onClick:a}),"appList"===d&&h.default.createElement(D.default,{cluster:n,workspace:o,selectRepo:m,setType:this.setViewType,onClickApp:this.handleClickApp}),"appDetail"===d&&h.default.createElement(N.default,{setType:this.setViewType,app:p,cluster:n,workspace:o,namespace:u,onDeploy:this.handleDeploy}))}}]),a}(h.Component),o.propTypes={cluster:_.default.string,workspace:_.default.string,namespace:_.default.string,visible:_.default.bool,onOk:_.default.func,onCancel:_.default.func},o.defaultProps={workspace:"",visible:!1,onOk:function(){},onCancel:function(){}},l=u))||l;t.default=w},function(e,a,r){"use strict";var n=r(20),l=r(157);r(12),r(11),r(6),r(18),r(16),r(9),r(13),r(10),r(4),r(23),r(24),r(17),r(64),r(188),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(45),r(11),r(6),r(18),r(28),r(859),r(42),r(16),r(34),r(15),r(9),r(13),r(10),r(4),r(22),r(23),r(57),r(24),r(17),r(64),r(188),r(7);var o=n(r(43)),u=n(r(61)),c=n(r(30));r(41);var s,i,f,d=n(r(44)),p=n(r(36)),m=n(r(37)),v=n(r(55)),h=n(r(56)),E=n(r(51)),y=l(r(0)),g=r(14),b=n(r(26)),S=n(r(455)),_=n(r(1)),O=r(239),C=r(186),T=n(r(1627)),R=n(r(1100)),D=r(327),N=n(r(2691));function k(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function I(e){for(var t=1;t0&&void 0!==d[0]?d[0]:{},r=!(d.length>1&&void 0!==d[1])||d[1],n=t.props,l=n.cluster,c=n.workspace,e.next=5,t.appTemplateStore.fetchList(I({page:1,limit:D.STORE_APP_LIMIT,cluster:l,workspace:c},a));case 5:s=t.appTemplateStore,i=s.allTemplates,f=s.list,r?(i.clear(),i.replace(f.data)):i.push.apply(i,(0,u.default)(f.data));case 7:case"end":return e.stop()}}),e)}))),t.formatTemplates=function(e){return e.map((function(e){var t=e.name,a=e.latestVersion;return I(I({},e),{},{app_id:t,latest_app_version:a})}))},t.fetchMoreTemplates=(0,d.default)(o.default.mark((function e(){var a,r;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=t.appTemplateStore.list.page,r=t.state.name,e.next=4,t.fetchTemplates({page:a+1,name:r},!1);case 4:case"end":return e.stop()}}),e)}))),t.handleSearch=function(e){t.setState({name:e}),t.fetchTemplates({name:e})},t.handleRefresh=function(){var e=t.state.name;t.fetchTemplates({name:e})},t.state={selectRepo:e.selectRepo,name:""},t.appTemplateStore=new R.default,t}return(0,m.default)(r,[{key:"componentDidMount",value:function(){this.fetchTemplates()}},{key:"renderHeader",value:function(){return y.default.createElement("div",{className:N.default.header},y.default.createElement("div",{className:N.default.logo},y.default.createElement("img",{src:"/assets/edge-application.svg",alt:""})),y.default.createElement("div",{className:N.default.text},y.default.createElement("h2",null,t("EDGE_APP_TEMPLATES_PL")),y.default.createElement("p",null,t("EDGE_APP_TEMPLATES_MODAL_DESC"))))}},{key:"renderToolbar",value:function(){return y.default.createElement("div",{className:N.default.toolbar},y.default.createElement(C.InputSearch,{onSearch:this.handleSearch,className:N.default.search,placeholder:t("SEARCH")}),y.default.createElement(C.Button,{type:"flat",icon:"refresh",onClick:this.handleRefresh}))}},{key:"render",value:function(){var e=this.appTemplateStore,t=e.allTemplates,a=e.list,r=a.isLoading,n=a.total;return y.default.createElement(y.default.Fragment,null,this.renderHeader(),this.renderToolbar(),y.default.createElement("div",{className:N.default.apps},y.default.createElement(T.default,{itemCls:N.default.appItem,iconName:"appcenter",showCreateVendor:!0,apps:this.formatTemplates((0,g.toJS)(t)),isLoading:r,total:n,onFetchMore:this.fetchMoreTemplates,onClickAppItem:this.props.onClickApp,disableLink:!0})))}},{key:"repoSelectOptions",get:function(){var e=this.repoStore.list.data.map((function(e){var t=e.name;return{value:e.repo_id,label:t}}));return e.unshift({value:null,label:t("CURRENT_WORKSPACE")}),e}},{key:"selectedRepo",get:function(){return this.state.selectRepo||(0,b.default)(this.repoSelectOptions,"[0].value")}}]),r}(y.Component),i.propTypes={workspace:_.default.string,store:_.default.object,onClickApp:_.default.func,fetchTemplates:_.default.func,selectRepo:_.default.string},i.defaultProps={workspace:"",store:{},onClickApp:S.default},s=f))||s;a.default=A},function(e,a,r){"use strict";r(15);var n=r(20);r(12),r(109),r(18),r(16),r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(109),r(45),r(18),r(42),r(16),r(4),r(23),r(57),r(17);var l=n(r(36)),o=n(r(37)),u=n(r(55)),c=n(r(56)),s=n(r(51)),i=n(r(0)),f=n(r(26)),d=n(r(836)),p=r(52),m=n(r(1628)),v=r(186),h=n(r(2689));function E(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,s.default)(e);if(t){var n=(0,s.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,c.default)(this,a)}}var y=function(e){(0,u.default)(r,e);var a=E(r);function r(){return(0,l.default)(this,r),a.apply(this,arguments)}return(0,o.default)(r,[{key:"renderVendor",value:function(){var e=this.props,a=e.app;if(e.showCreateVendor)return t("CREATOR_VALUE",{value:a.creator||"-"});var r=(0,p.safeParseJSON)(a.latest_app_version.maintainers,[]).map((function(e){return e.name}));return t("MAINTAINER_VALUE",{value:r[0]||"-"})}},{key:"render",value:function(){var e=this.props,a=e.app,r=e.iconName,n=(0,f.default)(globals.user,"lang")||(0,p.getBrowserLang)(),l=(0,f.default)(a,"description_".concat(n),a.description);return i.default.createElement("div",{className:h.default.wrapper},i.default.createElement("div",{className:h.default.title},i.default.createElement("span",{className:h.default.icon},r?i.default.createElement(v.Icon,{name:r,size:48}):i.default.createElement(d.default,{iconSize:48,src:a.icon,iconLetter:a.name,alt:""})),i.default.createElement("div",{className:h.default.text},i.default.createElement("div",null,i.default.createElement("strong",null,a.name||"-"),i.default.createElement(m.default,{app:a})),i.default.createElement("p",{className:h.default.desc,title:l||""},l||"-"))),i.default.createElement("div",{className:h.default.bottom},i.default.createElement("span",{className:h.default.vendor},this.renderVendor()),i.default.createElement("span",{className:h.default.version,title:a.latest_app_version.name},t("LATEST_VALUE",{value:a.latest_app_version.name||"-"}))))}}]),r}(i.default.Component);a.default=y},function(e,t,a){e.exports={content:"_3K7XcF23Jr-6yl5gk0sUpA",authorizedTip:"_3wRwZh7wpRb0keKGmC6P9F",authorizedTipTitle:"_37-SrvFOHEgEEq2XbhamIN"}},function(e,t,a){e.exports={wrapper:"_1zF0xPww2LpgxDFbVDQtWc",title:"_2Nq0b4RJcpqibfUTxirGBM",icon:"BqQX23omFu9bVU3UdZO12",text:"SpkoXwVuepyl5mMB85r9s",desc:"_30UPhHVa7pOp-XEWz2eRz_",bottom:"_3ZaAkU1nl0bI9b6j2pMyzm",vendor:"fQ6ZLtTi2AjCEIgH1eLeM",version:"_--5xd3q0U7oxxx1TragFp"}},function(e,t,a){e.exports={appList:"_3e_tmkJx9nmHjU2sjIk5fC",appItem:"_2shYOeim1w7KZ_ArClfUd",noApp:"_2tfdcH8dm5pbWjj8uR2TlS",loading:"_2cilLcQtThJ_7F0QvkSkCB",loadMore:"_2zMYJZr8vU75-lyWEPh98A"}},function(e,t,a){e.exports={apps:"gHiKdb373zSHCpephDrk2",appItem:"_3t8NMH_YscCKdI5DBMf3Tn",header:"_3aBHx84uEw4eeVCnlEc-UL",logo:"_1yV_JzjwsYKqqnyrsKZ58H",text:"_2CmaLzwklz3onRSo8Or1P2",toolbar:"_2NUvpsg4SwNIniSC5FhIMy",search:"_2STk1Dy7lNhGu1RBcYNoFP"}},function(e,a,r){"use strict";var n=r(20),l=r(157);r(12),r(109),r(11),r(31),r(6),r(18),r(16),r(9),r(13),r(10),r(4),r(23),r(17),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(109),r(45),r(11),r(31),r(6),r(18),r(28),r(42),r(16),r(34),r(15),r(9),r(13),r(10),r(4),r(22),r(23),r(57),r(17),r(7);var o=n(r(43)),u=n(r(30));r(41);var c,s,i,f=n(r(44)),d=n(r(36)),p=n(r(37)),m=n(r(55)),v=n(r(56)),h=n(r(51)),E=l(r(0)),y=n(r(243)),g=n(r(63)),b=n(r(199)),S=n(r(1)),_=r(239),O=r(186),C=n(r(435)),T=r(248),R=n(r(816)),D=n(r(932)),N=n(r(483)),k=n(r(1100)),I=n(r(2693)),P=n(r(2695));function A(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function w(e){for(var t=1;t0&&void 0!==r[0]?r[0]:{},e.next=3,t.versionStore.fetchList(w(w({},a),{},{app_id:t.appId,noLimit:!0}));case 3:case"end":return e.stop()}}),e)}))),t.handleTabChange=function(e){t.setState({tab:e})},t.handleClickBack=function(){var e=t.props.app;t.props.setType("appList",e.repo_id)},t.showDeploy=function(){var e=t.props.app,a=e.name,r=e.description,n=t.containerFormRef.current;n&&n.validate((function(){t.props.onDeploy({title:a,description:r||"-",containerDetail:n.getData(),store:t.store})}))},t.handleChangeAppVersion=function(e){t.setState({selectedVersionKey:e})},t.state={tab:"versionInfo",selectedVersionKey:"",showDeploy:!1},t.store=new N.default,t.appTemplateStore=new k.default,t.containerFormRef=E.default.createRef(),t}return(0,p.default)(n,[{key:"componentDidMount",value:(a=(0,f.default)(o.default.mark((function e(){var t;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=this.props.app.latestVersion.name,this.setState({selectedVersionKey:t});case 2:case"end":return e.stop()}}),e,this)}))),function(){return a.apply(this,arguments)})},{key:"componentWillUnmount",value:function(){this.props.setType()}},{key:"renderContainerGroupInfo",value:function(){var e=this.props,a=e.cluster,r=e.namespace;return E.default.createElement("div",{className:P.default.content},E.default.createElement("div",{className:P.default.title},t("VERSION")),E.default.createElement(R.default,{className:"margin-b12",value:this.state.selectedVersionKey,options:this.versionOptions,onChange:this.handleChangeAppVersion}),this.selectedVersion&&E.default.createElement(D.default,{formRef:this.containerFormRef,store:this.appTemplateStore,cluster:a,namespace:r,formTemplate:this.containerFormTemplate,onlyDockerHub:!0,isReadOnlyContainers:!0,isShowAddContainer:!1}))}},{key:"render",value:function(){var e=this.props.app,a=e.name,r=e.description;return E.default.createElement(E.default.Fragment,null,E.default.createElement(I.default,{onClickBack:this.handleClickBack,title:a,desc:r||"-"}),E.default.createElement("div",{className:P.default.bar},E.default.createElement("span",{className:"h6"},t("CONTAINER_GROUP_INFO")),E.default.createElement(O.Button,{type:"control",onClick:this.showDeploy,disabled:(0,g.default)(this.versionOptions)},t("DEPLOYMENT"))),this.renderContainerGroupInfo())}},{key:"appId",get:function(){return this.props.app.name}},{key:"tabs",get:function(){return[{label:t("APP_INFORMATION"),value:"versionInfo"},{label:t("CHART_FILES"),value:"chartFiles"}]}},{key:"versionOptions",get:function(){var e=this.props.app,a=e.versions,r=e.latestVersion;return a.map((function(e){var a=e.name,n=e.createTime;return{value:a,label:E.default.createElement(E.default.Fragment,null,a,a===r.name&&E.default.createElement(O.Tag,{type:"warning",className:P.default.latestTag},t("LATEST_VERSION_SCAP"))),description:(0,y.default)(n).format("YYYY-MM-DD")}}))}},{key:"selectedVersion",get:function(){var e=this.state.selectedVersionKey;return this.props.app.versions.find((function(t){return t.name===e}))}},{key:"containerFormTemplate",get:function(){var e=this.props.namespace,t=C.default.apptemplateversions({name:this.appId});return this.selectedVersion&&(t=(0,T.getVersionFormattedData)(this.selectedVersion)),t=(0,b.default)({metadata:{namespace:e}},t)}}]),n}(E.Component),s.propTypes={app:S.default.object,setType:S.default.func,cluster:S.default.string,workspace:S.default.string,namespace:S.default.string},s.defaultProps={app:{}},c=i))||c;a.default=L},function(e,a,r){"use strict";r(15);var n=r(157),l=r(20);r(5),r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(42),r(4),r(23),r(57),r(17);var o=l(r(36)),u=l(r(37)),c=l(r(55)),s=l(r(56)),i=l(r(51)),f=n(r(0)),d=l(r(1)),p=r(186),m=l(r(2694));function v(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,i.default)(e);if(t){var n=(0,i.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,s.default)(this,a)}}var h=function(e){(0,c.default)(r,e);var a=v(r);function r(){var e;(0,o.default)(this,r);for(var t=arguments.length,n=new Array(t),l=0;l0&&void 0!==l[0]?l[0]:{},r=(0,R.default)(e.formData,"".concat(e.prefix,".name"),""),n=(0,w.inCluster2Default)(r),t.next=5,e.projectStore.fetchList(j(j({},a),{},{cluster:n,type:"user"}));case 5:case"end":return t.stop()}}),t)}))),e.handleClusterChange=function(t){e.fetchNamespaces(),e.setState({name:t});var a=e.clusters.find((function(e){return e.value===t})).server;(0,N.default)(e.formData,"".concat(e.prefix,".server"),a),(0,N.default)(e.formData,"".concat(e.prefix,".namespace"),"")},e.handleSubmit=function(){var t=e.formRef.current;t&&t.validate((function(){Object.assign(e.props.formData,j({},e.formData)),e.setState({showForm:!1,oldFormDate:(0,k.toJS)(e.formData)})}))},e.showForm=function(){e.setState({showForm:!0})},(0,p.default)(e,"hideForm",f,(0,h.default)(e)),e.projectOptionRenderer=function(e){return P.default.createElement("span",{className:M.default.option},e.isFedManaged?P.default.createElement("img",{className:M.default.indicator,src:"/assets/cluster.svg"}):P.default.createElement(S.Icon,{name:"project"}),e.label,e.isFedManaged&&P.default.createElement(S.Tooltip,{content:t("FEDPROJECT_CANNOT_DEPLOY_APP_TIP")},P.default.createElement(S.Icon,{className:M.default.tip,name:"question"})))},e}return(0,v.default)(l,[{key:"componentDidMount",value:function(){this.init()}},{key:"init",value:(r=(0,d.default)(o.default.mark((function e(){var t,a,r,n,l,u;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.setState({initializing:!0}),t=this.formData["".concat(this.prefix)]||{},a=t.cluster,r=t.server,n=t.namespace,e.next=4,this.fetchClusters();case 4:return a?!r&&a&&(l=this.clusters.find((function(e){return e.value===a})),(0,N.default)(this.formData,"".concat(this.prefix,".name"),(0,R.default)(this.clusters,l.value)),(0,N.default)(this.formData,"".concat(this.prefix,".server"),(0,R.default)(this.clusters,l.server))):((0,N.default)(this.formData,"".concat(this.prefix,".name"),(0,R.default)(this.clusters,"[0].value")),(0,N.default)(this.formData,"".concat(this.prefix,".server"),(0,R.default)(this.clusters,"[0].server"))),e.next=7,this.fetchNamespaces();case 7:n||(u=this.namespaces.find((function(e){return!e.disabled}))||{},(0,N.default)(this.formData,"".concat(this.prefix,".namespace"),u.value||"")),Object.assign(this.props.formData,this.formData),this.setState({initializing:!1,oldFormDate:(0,T.default)((0,k.toJS)(this.formData))});case 10:case"end":return e.stop()}}),e,this)}))),function(){return r.apply(this,arguments)})},{key:"fetchClusters",value:(a=(0,d.default)(o.default.mark((function e(){var t;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=this.props.cluster,e.next=3,this.cdStore.getClustersList(t);case 3:case"end":return e.stop()}}),e,this)}))),function(){return a.apply(this,arguments)})},{key:"renderPlacement",value:function(){var e=this.props.formData["".concat(this.prefix)]||{},a=(0,w.inCluster2Default)(e.name);return P.default.createElement("div",{className:M.default.placement},P.default.createElement(O.default,{icon:"cluster",title:(0,w.showNameAndAlias)(a,"cluster"),description:t("CLUSTER")}),P.default.createElement(O.default,{icon:"project",title:(0,w.showNameAndAlias)(e.namespace,"project",{cluster:a}),description:t("PROJECT")}),P.default.createElement(S.Icon,{className:M.default.icon,name:"chevron-down",size:20}))}},{key:"renderForm",value:function(){return P.default.createElement("div",{className:M.default.form},P.default.createElement(S.Form,{ref:this.formRef,type:"inner",data:this.formData},P.default.createElement(S.Columns,null,P.default.createElement(S.Column,null,P.default.createElement(S.Form.Item,{label:t("CLUSTER")},P.default.createElement(S.Select,{name:"".concat(this.prefix,".name"),key:this.state.name,placeholder:" ",options:this.clusters,onChange:this.handleClusterChange,prefixIcon:P.default.createElement(S.Icon,{name:"cluster",size:16}),disabled:!globals.app.isMultiCluster,showTip:!0}))),P.default.createElement(S.Column,null,P.default.createElement(S.Form.Item,{label:t("PROJECT"),rules:[{required:!0,message:t("PROJECT_NOT_SELECT_DESC")}]},P.default.createElement(S.Select,{name:"".concat(this.prefix,".namespace"),placeholder:" ",options:this.namespaces,pagination:(0,D.default)(this.projectStore.list,["page","limit","total"]),isLoading:this.projectStore.list.isLoading,onFetch:this.fetchNamespaces,valueRenderer:this.projectOptionRenderer,optionRenderer:this.projectOptionRenderer,searchable:!0,clearable:!0}))))),P.default.createElement(C.default,{className:M.default.confirm,onOk:this.handleSubmit,onCancel:this.hideForm}))}},{key:"render",value:function(){var e=this.state,a=e.showForm,r=e.initializing;if(a)return this.renderForm();var n=(0,R.default)(this.formData,"".concat(this.prefix,".namespace"),"");return P.default.createElement("div",{className:(0,_.default)(M.default.wrapper,(0,u.default)({},M.default.expand,a)),onClick:this.showForm},n?this.renderPlacement():P.default.createElement("div",{className:M.default.placeholder},r?P.default.createElement(S.Loading,{className:"text-center"}):t("PROJECT_NOT_SELECT_DESC")))}},{key:"prefix",get:function(){return"".concat(this.props.prefix)}},{key:"clusters",get:function(){return this.cdStore.clustersList.map((function(e){return{label:(0,w.showNameAndAlias)((0,w.inCluster2Default)(e.name),"cluster"),value:e.name,server:e.server}}))}},{key:"namespaces",get:function(){return this.projectStore.list.data.filter((function(e){return"Terminating"!==e.status})).map((function(e){return{label:(0,w.showNameAndAlias)(e),value:e.name,disabled:e.isFedManaged||e.isFedHostNamespace,isFedManaged:e.isFedManaged||e.isFedHostNamespace}}))}}]),l}(P.Component),i=(0,b.default)(s.prototype,"formData",[k.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),(0,b.default)(s.prototype,"clusters",[k.computed],Object.getOwnPropertyDescriptor(s.prototype,"clusters"),s.prototype),(0,b.default)(s.prototype,"namespaces",[k.computed],Object.getOwnPropertyDescriptor(s.prototype,"namespaces"),s.prototype),f=(0,b.default)(s.prototype,"hideForm",[k.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(){e.setState({showForm:!1},(function(){e.formData=e.state.oldFormDate,Object.assign(e.props.formData,j({},e.formData))}))}}}),c=s))||c;a.default=U},function(e,t,a){e.exports={wrapper:"_3z2Z9hMemOOjjGphBi-8sh",placeholder:"KK7SUBB92n4Wwek-F2DYR",form:"_3pVLZicpx-Rbr0egCKsLK",confirm:"DslrrnKn_QmqZZLCpJxuA",placement:"_2Q-2XDFS-FUOb9mjjlCrYc",icon:"_1HSRuvA-86V8m58eHsUJvR",option:"Dxyd1qFSZm73dPMUuSqdc",tip:"_3S0tzXh5APNgwIS8ONi0s1"}},function(e,a,r){"use strict";var n=r(20);r(12),r(5),r(11),r(6),r(18),r(16),r(9),r(13),r(10),r(4),r(23),r(17),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(45),r(5),r(11),r(6),r(18),r(28),r(42),r(16),r(34),r(15),r(9),r(13),r(10),r(4),r(22),r(23),r(57),r(17),r(7);var l=n(r(43)),o=n(r(30));r(41);var u=n(r(44)),c=n(r(36)),s=n(r(37)),i=n(r(55)),f=n(r(56)),d=n(r(51)),p=n(r(0)),m=n(r(241)),v=r(186),h=n(r(1109)),E=n(r(2702));function y(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function g(e){for(var t=1;t0&&v.default.createElement(E.Button,{type:"control",onClick:this.handlePrev},t("PREVIOUS")),o=r?f.default.createElement(d.Icon,{name:"success",type:"coloured",size:12}):f.default.createElement(d.Icon,{name:"dot",type:"light",size:12}),f.default.createElement("span",null,t(a.title)))})))}},{key:"formattedStep",get:function(){return this.props.steps.filter((function(e){return!!e.title}))}}]),r}(f.Component);a.default=h},function(e,t,a){e.exports={wrapper:"VcopeKzgXdwSpnCTVNt0h"}},function(e,a,r){"use strict";r(15);var n=r(20);r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(42),r(4),r(23),r(57),r(17);var l=n(r(36)),o=n(r(37)),u=n(r(55)),c=n(r(56)),s=n(r(51)),i=n(r(0)),f=n(r(1)),d=n(r(135)),p=r(186),m=n(r(884)),v=n(r(2713));function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,s.default)(e);if(t){var n=(0,s.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,c.default)(this,a)}}var E=function(e){(0,u.default)(r,e);var a=h(r);function r(e){var t;return(0,l.default)(this,r),(t=a.call(this,e)).data=(0,d.default)(e.formTemplate),t.editor=i.default.createRef(),t}return(0,o.default)(r,[{key:"getData",value:function(){return this.editor.current.getData()}},{key:"render",value:function(){return i.default.createElement("div",{className:v.default.wrapper},i.default.createElement("div",{className:v.default.step},i.default.createElement("div",null,t("EDIT_YAML")),i.default.createElement("p",null,t("CREATE_BY_YAML_DESC"))),i.default.createElement("div",{className:v.default.codeWrapper},i.default.createElement("div",{className:v.default.pane},i.default.createElement("div",{className:v.default.title},i.default.createElement(p.Icon,{name:"coding",size:20}),i.default.createElement("span",null,t("EDIT_YAML"))),i.default.createElement(m.default,{ref:this.editor,className:v.default.editor,value:this.data}))))}}]),r}(i.default.Component);a.default=E,E.propTypes={formTemplate:f.default.object,onOk:f.default.func,isSubmitting:f.default.bool},E.defaultProps={onOk:function(){},isSubmitting:!1}},function(e,t,a){e.exports={wrapper:"_2bLRs43o7z2Z0l0OqV3S3l",step:"_3ABigQDpD_68K0K2-zPwo1",codeWrapper:"_35rMFFtZtEQsJ1XnlGrRIT",pane:"_1IXTMNwey-PU6zqsfimMcO",editor:"_2-LDXYPFV_Swq3SZk8_dTY",title:"_8xagm1IYbXzrlonLdlZLT"}},function(e,t,a){e.exports={modal:"_3udZ9JU41jkQT15SM6VQqy",body:"_3zIqgTb5iRnwYJult2OSjW",wrapper:"_1GY1dBmycuTqs5z5O4U5i1",steps:"_1j6BiFUqlNymOz_lSW28U7",header:"_1y3eAJkaBREv2CFp4dIBeY",headerBottom:"_3srgYWH6bHux51Zn3xQeOG",title:"_3sSfECiQrD_nXjhQGwbY6d",content:"_3_hijI-MOd78wmqLgMzBbx",footer:"_1nQdSbl4yf_TN2MYcxvNhu"}},function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(42),r(4),r(23),r(57),r(17);var l=n(r(36)),o=n(r(37)),u=n(r(55)),c=n(r(56)),s=n(r(51)),i=n(r(0)),f=n(r(1)),d=n(r(135)),p=n(r(74)),m=r(186),v=r(1630),h=n(r(1180)),E=r(1343),y=n(r(2717));function g(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,s.default)(e);if(t){var n=(0,s.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,c.default)(this,a)}}var b=function(e){(0,u.default)(r,e);var a=g(r);function r(){var e;(0,l.default)(this,r);for(var t=arguments.length,n=new Array(t),o=0;o0)return r({message:u.join("; "),field:e.field});r()},n.handleTags=function(e){n.setState({tagsValue:e}),(0,p.default)(n.props.formTemplate,"tags",e)};var l=(0,d.default)(n.props.formTemplate,"tags",[]);return n.state={toggleAdvanced:!1,tagsValue:l},n}return(0,u.default)(r,[{key:"render",value:function(){var e=this.props,a=e.formRef,r=e.formTemplate,n=e.tagsStore.tagsGroup,l=void 0===n?{}:n,o=e.onAddTags,u=this.method;return v.default.createElement("div",{className:b.default.wrapper},v.default.createElement(f.Form,{data:r,ref:a},v.default.createElement(f.Form.Item,{label:t("CLUSTER_NAME"),desc:t("NAME_DESC_LENGTH",{length:60}),rules:[{required:!0,message:t("CLUSTER_NAME_EMPTY")},{pattern:h.PATTERN_NAME,message:t("INVALID_NAME_DESC_LENGTH",{length:60})},{validator:this.nameValidator}]},v.default.createElement(f.Input,{name:"metadata.name",maxLength:60})),v.default.createElement(f.Form.Item,{label:t("ALIAS"),desc:t("ALIAS_NAME_DESC"),rules:[{pattern:h.PATTERN_ALIAS_NAME,message:t("INVALID_ALIAS_NAME_DESC")}]},v.default.createElement(f.Input,{name:"metadata.annotations['kubesphere.io/alias-name']",maxLength:63})),v.default.createElement(f.Form.Item,{label:v.default.createElement("div",{className:b.default.iconTooltip},v.default.createElement("span",null,t("CLUSTER_TAG")),v.default.createElement(f.Tooltip,{content:t("CLUSTER_TAG_TOOLTIP_CONTENT")},v.default.createElement(f.Icon,{name:"question",size:16})))},v.default.createElement("div",{className:b.default.clusterTags},v.default.createElement(E.ClusterTagAdd,{tagsGroup:l,defaultValue:[],value:this.state.tagsValue,name:"tags",onAddTags:o,onChange:this.handleTags}))),v.default.createElement(f.Form.Item,{label:t("PROVIDER"),desc:t("CLUSTER_PROVIDER_DESC")},v.default.createElement(f.Select,{name:"spec.provider",options:h.CLUSTER_PROVIDERS,placeholder:" ",optionRenderer:this.providerOptionRenderer,searchable:!0})),v.default.createElement(f.Form.Item,{label:t("DESCRIPTION"),desc:t("DESCRIPTION_DESC")},v.default.createElement(f.TextArea,{name:"metadata.annotations['kubesphere.io/description']",maxLength:256})),"new"===u&&v.default.createElement(v.default.Fragment,null,v.default.createElement(g.default,{className:b.default.nodesTitle,title:t("NODE_SETTINGS"),description:t("CLUSTER_NODE_SETTINGS_DESC")}),v.default.createElement(f.Form.Item,{rules:[{required:!0,message:t("PLEASE_ADD_AT_LEAST_ONE_CLUSTER_NODE")},{validator:this.nodesValidator}]},v.default.createElement(y.default,{name:"spec.hosts",formTemplate:r}))),v.default.createElement("div",{className:b.default.advanced,onClick:this.toggleAdvanced},v.default.createElement("span",null,t("ADVANCED_SETTINGS")),v.default.createElement(f.Icon,{name:this.state.showAdvanced?"chevron-up":"chevron-down",size:"20"})),this.state.toggleAdvanced&&v.default.createElement(f.Form.Item,{label:v.default.createElement("div",{className:b.default.iconTooltip},v.default.createElement("span",null,t("CLUSTER_LABEL")),v.default.createElement(f.Tooltip,{content:t("CLUSTER_LABEL_TOOLTIP_CONTENT")},v.default.createElement(f.Icon,{name:"question",size:16}))),desc:t("CLUSTER_LABEL_DESC")},v.default.createElement(f.Select,{name:"metadata.labels['cluster.kubesphere.io/group']",options:h.CLUSTER_PRESET_GROUPS,placeholder:" ",optionRenderer:this.groupOptionRenderer,searchable:!0}))))}},{key:"method",get:function(){return(0,d.default)(this.props.formTemplate,"metadata.annotations['kubesphere.io/way-to-add']")}}]),r}(v.default.Component))||l;a.default=_},function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(11),r(6),r(18),r(16),r(4),r(23),r(17),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(11),r(6),r(18),r(28),r(42),r(16),r(4),r(23),r(57),r(17),r(7);var l=n(r(61)),o=n(r(36)),u=n(r(37)),c=n(r(55)),s=n(r(56)),i=n(r(51)),f=n(r(0)),d=n(r(74)),p=n(r(26)),m=n(r(3)),v=n(r(1)),h=n(r(812)),E=n(r(2720)),y=n(r(1631)),g=n(r(1632));function b(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,i.default)(e);if(t){var n=(0,i.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,s.default)(this,a)}}var S=function(e){(0,c.default)(r,e);var a=b(r);function r(){var e;(0,o.default)(this,r);for(var t=arguments.length,n=new Array(t),u=0;u=0?(r[o]=t,n(r)):n([].concat((0,l.default)(r),[t])),e.updateRoleGroups(),e.hideAdd()},e.updateRoleGroups=function(){var t=e.props.formTemplate,a=(0,p.default)(t,"spec.hosts",[]),r={};a.forEach((function(e){e.roles&&e.roles.forEach((function(t){r[t]=r[t]||[],r[t].push(e.name)}))})),r.etcd=r.master,(0,d.default)(t,"spec.roleGroups",r)},e.handleDelete=function(t){var a=e.props,r=a.value;(0,a.onChange)(r.filter((function(e){return e.name!==t.name}))),e.updateRoleGroups()},e}return(0,u.default)(r,[{key:"renderNodes",value:function(){var e=this;return this.props.value.map((function(t,a){return f.default.createElement(E.default,{node:t,key:t.name,index:a,onEdit:e.showEdit,onDelete:e.handleDelete})}))}},{key:"renderAdd",value:function(){return f.default.createElement(h.default.Add,{icon:"add",title:t("ADD_NODE"),description:t("ADD_NODE_TO_THE_CLUSTER"),onClick:this.showAdd})}},{key:"renderModal",value:function(){var e=this.props.value,t=this.state,a=t.showAdd,r=t.selectIndex,n=r>=0?e[r]:void 0;return f.default.createElement(y.default,{visible:a,data:n,onOk:this.handleAdd,onCancel:this.hideAdd})}},{key:"render",value:function(){var e=this.props.className;return f.default.createElement("div",{className:(0,m.default)(g.default.wrapper,e)},this.renderNodes(),this.renderAdd(),this.renderModal())}}]),r}(f.default.Component);a.default=S,S.propTypes={className:v.default.string,name:v.default.string,value:v.default.array,onChange:v.default.func,onDelete:v.default.func},S.defaultProps={className:"",name:"",value:[],readOnlyList:[],specTemplate:{},onChange:function(){}}},function(e,t,a){"use strict";a(15);var r=a(20);a(18),a(16),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(18),a(16);var n=r(a(0)),l=r(a(1)),o=a(186),u=a(72),c=r(a(812)),s=function(e){var t=e.index,a=e.node,r=e.onDelete,l=e.onEdit,s=n.default.createElement("span",null,a.name,a.roles.map((function(e){return n.default.createElement(o.Tag,{key:e,className:"margin-l8",type:u.NODE_ROLE_TAG_TYPE[e]},e)})));return n.default.createElement(c.default.Item,{icon:"nodes",title:s,description:a.address,onDelete:function(){return r(a)},onEdit:function(){return l(t)}})};s.propTypes={node:l.default.object};var i=s;t.default=i},function(e,t,a){"use strict";a(15);var r=a(20);a(12),a(109),Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.className,a=e.title,r=e.description;return n.default.createElement("div",{className:(0,l.default)(o.default.text,t)},n.default.createElement("div",null,a),n.default.createElement("p",null,r))},a(12),a(109);var n=r(a(0)),l=r(a(3)),o=r(a(2722))},function(e,t,a){e.exports={text:"_516bLC4y2eCDP-7u4_h68"}},function(e,t,a){e.exports={wrapper:"_1NNvsOKzvpG4TQpNcfk82r",nodesTitle:"gzd5RQSNJkEmTlh20fpt_",advanced:"_1LUGkOuBopYLmtimgyc8x_",formItem:"_2rS4-K0J9tTDyDPpPETUdF",iconTooltip:"_3wK3EWmKuNT8yWLM2kriP0",clusterTags:"FgjbT7Pql9uy5yeH4XtVg"}},function(e,a,r){"use strict";r(15);var n=r(20);r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(28),r(42),r(4),r(23),r(57),r(17);var l=n(r(36)),o=n(r(37)),u=n(r(55)),c=n(r(56)),s=n(r(51)),i=n(r(0)),f=r(186),d=n(r(790)),p=n(r(884)),m=n(r(26)),v=n(r(2725));function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,s.default)(e);if(t){var n=(0,s.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,c.default)(this,a)}}var E=function(e){(0,u.default)(r,e);var a=h(r);function r(e){var t;return(0,l.default)(this,r),(t=a.call(this,e)).handleTypeChange=function(e){t.setState({connectType:e})},t.state={connectType:(0,m.default)(e.formTemplate,"spec.connection.type","direct")},t}return(0,o.default)(r,[{key:"render",value:function(){var e=this.props,a=e.formRef,r=e.formTemplate,n=this.state.connectType;return i.default.createElement("div",null,i.default.createElement(f.Form,{data:r,ref:a},i.default.createElement(f.Form.Item,{label:t("CONNECTION_MODE"),desc:t("CLUSTER_CONNECT_MODE_DESC")},i.default.createElement(f.Select,{name:"spec.connection.type",options:this.types,onChange:this.handleTypeChange})),"direct"===n&&i.default.createElement("div",{className:v.default.tip},t.html("CLUSTER_DIRECT_IMPORT_TIP")),"direct"===n?i.default.createElement("div",{className:v.default.editorWrapper},i.default.createElement("div",{className:v.default.editor},i.default.createElement("div",{className:v.default.editorTitle},i.default.createElement("div",null,i.default.createElement(f.Icon,{name:"kubernetes",size:20}),t("INPUT_KUBECONFIG"))),i.default.createElement(f.Form.Item,{rules:[{required:!0,message:t("INPUT_KUBECONFIG")}],unControl:!0},i.default.createElement(p.default,{mode:"yaml",name:"spec.connection.kubeconfig",options:this.editOptions})))):i.default.createElement("div",{className:v.default.tip},i.default.createElement(d.default,{title:t("CLUSTER_AGENT_TITLE"),description:t("CLUSTER_AGENT_DESC")}),i.default.createElement("div",{className:"margin-t12"},t.html("CLUSTER_AGENT_IMPORT_TIP")))))}},{key:"types",get:function(){var e=[{label:t("CONNTECT_DIRECT"),value:"direct"}];return globals.app.hasKSModule("tower")&&globals.app.isLicenseAuthorized("tower")&&e.push({label:t("CONNTECT_PROXY"),value:"proxy"}),e}},{key:"editOptions",get:function(){return{width:"100%",height:"100%"}}}]),r}(i.default.Component);a.default=E},function(e,t,a){e.exports={editorWrapper:"_1937BjcVyseLv9DIexIJWG",editor:"_3dm-s3IiWMzYT7kJAfs0sb",editorTitle:"_2xtWVxrXO_EaM9xO19pjBb",tip:"_3wGjRllnO483bHBWlTPvVH",link:"_2oSgKyuIsZA8PujoTg5SLU",banLink:"D8eXHyIVagn58_MMkRq5E"}},function(e,a,r){"use strict";r(15);var n=r(20);r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(42),r(4),r(23),r(57),r(17);var l=n(r(36)),o=n(r(37)),u=n(r(55)),c=n(r(56)),s=n(r(51)),i=n(r(0)),f=r(186),d=n(r(884)),p=n(r(2727));function m(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,s.default)(e);if(t){var n=(0,s.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,c.default)(this,a)}}var v=function(e){(0,u.default)(r,e);var a=m(r);function r(){return(0,l.default)(this,r),a.apply(this,arguments)}return(0,o.default)(r,[{key:"render",value:function(){var e=this.props,a=e.formRef,r=e.formTemplate;return i.default.createElement("div",null,i.default.createElement(f.Form,{data:r,ref:a},i.default.createElement("div",{className:p.default.editorWrapper},i.default.createElement("div",{className:p.default.editor},i.default.createElement(f.Form.Item,{label:t("CLUSTER_CONFIG"),unControl:!0},i.default.createElement(d.default,{mode:"yaml",name:"spec.config",options:this.editOptions}))))))}},{key:"editOptions",get:function(){return{width:"100%",height:"100%"}}}]),r}(i.default.Component);a.default=v},function(e,t,a){e.exports={editorWrapper:"Ma3yI7kh9cSs7I4H_Ksf5",editor:"_3HXgHZRwxXwP-AAfLOMo9v"}},function(e,a,r){"use strict";r(15);var n=r(20);r(12),r(109),r(31),r(6),r(18),r(16),r(9),r(4),r(23),r(17),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(109),r(45),r(31),r(6),r(18),r(42),r(16),r(9),r(4),r(23),r(57),r(17),r(7);var l,o,u=n(r(36)),c=n(r(37)),s=n(r(55)),i=n(r(56)),f=n(r(51)),d=n(r(49)),p=n(r(0)),m=n(r(26)),v=n(r(242)),h=n(r(74)),E=n(r(63)),y=r(14),g=r(239),b=r(186),S=n(r(816)),_=r(1343),O=n(r(2729)),C=n(r(1180)),T=n(r(2730)),R=n(r(2732)),D=n(r(2735));function N(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,f.default)(e);if(t){var n=(0,f.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,i.default)(this,a)}}var k=(0,g.observer)((o=function(e){(0,s.default)(r,e);var a=N(r);function r(e){var t;(0,u.default)(this,r),(t=a.call(this,e)).handleNetworkPluginChange=function(e){var a=t.networkPlugins.find((function(t){return t.value===e})),r=t.state.networkParams;t.setState({networkParams:(0,m.default)(a,"params",[])},(function(){var e=t.state.networkParams,a=t.props.formTemplate;r.forEach((function(e){(0,v.default)(a,"spec.network.".concat(e.name))})),e.forEach((function(e){"default"in e&&(0,h.default)(a,"spec.network.".concat(e.name),e.default)}))}))},t.handleStoragePluginChange=function(e){var a=t.storagePlugins.find((function(t){return t.value===e}));a&&(a.template=a.template||{},(0,h.default)(t.props.formTemplate,"spec.addons[0]",(0,y.toJS)(a.template)),t.setState({storageParams:(0,m.default)(a,"params",[])}))};var n=(0,m.default)(e.formTemplate,"spec.network.plugin"),l=t.networkPlugins.find((function(e){return e.value===n})),o=(0,m.default)(e.formTemplate,"spec.storagePlugin")||(0,m.default)(t.storagePlugins,"[0].value");(0,h.default)(e.formTemplate,"spec.storagePlugin",o);var c=t.storagePlugins.find((function(e){return e.value===o}));return c&&c.template&&(0,E.default)((0,m.default)(e.formTemplate,"spec.addons[0]"))&&(0,h.default)(e.formTemplate,"spec.addons[0]",(0,y.toJS)(c.template)),t.state={networkParams:(0,m.default)(l,"params",[]),storageParams:(0,m.default)(c,"params",[])},t}return(0,c.default)(r,[{key:"render",value:function(){var e=this.props,a=e.formRef,r=e.formTemplate,n=this.state,l=n.networkParams,o=n.storageParams;return p.default.createElement("div",{className:O.default.wrapper},p.default.createElement(C.default,{title:t("CLUSTER_SETTINGS"),description:t("K8S_CLUSTER_SETTINGS_DESC")}),p.default.createElement(b.Form,{className:O.default.form,data:r,ref:a},p.default.createElement(b.Form.Item,{label:t("KUBERNETES_VERSION")},p.default.createElement(S.default,{name:"spec.kubernetes.version",options:this.versions,defaultValue:(0,m.default)(this.versions,"0.value")})),p.default.createElement(b.Form.Item,null,p.default.createElement(T.default,{name:"spec.kubernetes"})),p.default.createElement(b.Form.Item,{label:t("NETWORK_PLUGIN")},p.default.createElement(S.default,{name:"spec.network.plugin",options:this.networkPlugins,onChange:this.handleNetworkPluginChange})),p.default.createElement(b.Form.Item,null,p.default.createElement(R.default,{name:"spec.network",params:l})),p.default.createElement(b.Form.Item,{label:t("DEFAULT_STORAGE_PLUGIN")},p.default.createElement(S.default,{name:"spec.storagePlugin",options:this.storagePlugins,onChange:this.handleStoragePluginChange})),p.default.createElement(b.Form.Item,null,p.default.createElement(D.default,{name:"spec.addons[0]",params:o}))))}},{key:"versions",get:function(){return(0,y.toJS)((0,m.default)(this.props.store.kubekey,"parameters.kubernetes.supportedVersions",[])).map((function(e){return{icon:"kubernetes",label:e,value:e,description:"-"}}))}},{key:"networkPlugins",get:function(){return(0,m.default)(this.props.store.kubekey,"parameters.kubernetes.supportedCNIs",[]).map((function(e){return{label:e.title,value:e.name,icon:_.NETWORK_PLUGIN_ICONS[e.name]||"network",description:t(e.description),params:e.parameters}}))}},{key:"storagePlugins",get:function(){return(0,m.default)(this.props.store.kubekey,"parameters.storagePlugins",[]).map((function(e){return{label:e.title,value:e.name,icon:_.STORAGE_PLUGIN_ICONS[e.name]||"network",description:t(e.description),params:e.parameters,template:e.template}}))}}]),r}(p.default.Component),(0,d.default)(o.prototype,"versions",[y.computed],Object.getOwnPropertyDescriptor(o.prototype,"versions"),o.prototype),(0,d.default)(o.prototype,"networkPlugins",[y.computed],Object.getOwnPropertyDescriptor(o.prototype,"networkPlugins"),o.prototype),(0,d.default)(o.prototype,"storagePlugins",[y.computed],Object.getOwnPropertyDescriptor(o.prototype,"storagePlugins"),o.prototype),l=o))||l;a.default=k},function(e,t,a){e.exports={wrapper:"_3IrA5oEEz7IbkJINUqCtMY",form:"_1ZT8fGgQwTzYmasVKaVuvJ"}},function(e,a,r){"use strict";var n=r(157),l=r(20);r(12),r(5),r(11),r(6),r(9),r(13),r(10),r(4),r(23),r(17),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(45),r(5),r(11),r(6),r(28),r(42),r(34),r(15),r(9),r(13),r(10),r(4),r(23),r(57),r(17),r(7);var o=l(r(30)),u=l(r(36)),c=l(r(37)),s=l(r(55)),i=l(r(56)),f=l(r(51)),d=n(r(0)),p=r(186),m=l(r(787)),v=l(r(799)),h=l(r(2731));function E(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function y(e){for(var t=1;t=h.current)return t=h.current,T(t),E.current=!0,void(d&&d());T(t)}};(0,o.useEffect)((function(){return document.body.addEventListener("mouseup",R),document.body.addEventListener("mousemove",D),function(){document.body.removeEventListener("mouseup",R),document.body.removeEventListener("mousemove",D)}}),[]);var N={borderRadius:s,opacity:b&&C/h.current,width:56+C,transitionDuration:b&&p.current?"0s":".3s"},k={borderRadius:s,height:n-8,transitionDuration:b&&p.current?"0s":".3s",transform:"translateX(".concat(C,"px)")},I={color:"rgb(".concat(121+C/h.current*134,",\n ").concat(135+C/h.current*120,",\n ").concat(156+C/h.current*99,")")};return o.default.createElement("div",{className:u.default.content,style:{width:a}},o.default.createElement("div",{className:u.default.background,style:{borderRadius:s}},o.default.createElement("span",{style:I},i)),o.default.createElement("div",{className:u.default.sliderBox,style:N}),o.default.createElement("div",{style:k,className:u.default.slider,onMouseEnter:function(){E.current||p.current||(S(!0),T(0))},onMouseLeave:function(){E.current||p.current||S(!1)},onMouseDown:function(e){E.current||0!==e.button||(m.current=e.nativeEvent.x||e.touches[0].clientX,p.current=!0)},onMouseUp:R,onMouseMove:D},o.default.createElement("img",{className:u.default.icon,src:"/assets/ksLogo.svg"})))};t.default=c},function(e,t,a){e.exports={content:"_3ZGXa4C-gz0RDQXj2EmfRb",background:"_2Afm8HbEo9uoZgLe37Flrk",sliderBox:"FxlG-8w-UIpj5qcb3zmmc",slider:"_2gwZRUIcVJLKmsligzPF_4",icon:"_29rGCR-XxnuoLP6eEOxGz1"}},function(e,t,a){e.exports={header:"tmOOCtHbIrKeQ8xSIv2AW",body:"_3dos96Ex-qOKvh04j-PRSJ",tipBox:"_2KHHBfH6SnNFZSSDy5LW_P",title:"_21vopnnvetJvmePQAbmgFR",des:"_1lAfacHxGBPDt9NhCtFXMX",cluster:"_3Q_fFn8LLUmDCpOfK-E1Op",clusterTitle:"_3zlj5cSf3XzoPveDCPNMHQ",info:"_18tGPRwG9cadANDu3vQcLS",row:"_1xxy6fYDzBimEnXHK6FxMO",item:"_20q4gTYObZ3ANQ0QlgW0st",label:"_2U44bSqRrXu08gFCaUJqUV",value:"MRn9T8BlsTO7P1dEOthpV",confirmInput:"oWd2ADDZjJyfMRttMvVtm",footer:"_1QKfPS2L1dQ1O14549Kh-J"}},function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(42),r(4),r(23),r(57),r(17);var l,o,u,c=n(r(315)),s=n(r(58)),i=n(r(36)),f=n(r(37)),d=n(r(55)),p=n(r(56)),m=n(r(51)),v=n(r(0)),h=r(186),E=n(r(884)),y=n(r(814)),g=n(r(790)),b=n(r(787)),S=n(r(1)),_=r(239),O=n(r(63)),C=n(r(2756));function T(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,m.default)(e);if(t){var n=(0,m.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,p.default)(this,a)}}var R=(0,_.observer)((u=o=function(e){(0,d.default)(r,e);var a=T(r);function r(){var e;(0,i.default)(this,r);for(var n=arguments.length,l=new Array(n),o=0;o0&&void 0!==arguments[0]?arguments[0]:{},a=n.props,r=a.hasBundled,l=a.detail.name,o=a.getList;(n.setState({loading:!0}),r)&&(t.tags=(null!==(e=t.tags)&&void 0!==e?e:[]).concat(l));var u=I(I({},(0,g.default)(t,"group","tags","__index")),{},{labelSelector:n.getParamsLabel(t)});o(u).then((function(e){n.setState({loading:!1,list:r?e:e.filter((function(e){return!e.tags.find((function(e){return e.name===l}))}))})}))},n.handleAdd=function(e){n.setState((function(t){var a=t.value;return{value:[].concat((0,i.default)(a),[e])}}))},n.handleDelete=function(e){n.setState((function(t){return{value:t.value.filter((function(t){return t.name!==e.name}))}}))},n.handleOk=function(){var e=n.props.onOk;e&&e(n.state.value,!!n.state.hasRemoved.length)},n.handleCancel=function(){var e=n.props,t=e.onCancel,a=e.onOk;n.state.hasRemoved.length?a&&a(n.state.value,!0):t&&t()},n.handleOnUnBind=function(e){var t=n.props.onUnBind;t&&t(e),n.setState({hasRemoved:[].concat((0,i.default)(n.state.hasRemoved),[e.name])})},n.handleReset=function(){n.getList(n.state.filters)},n.clearFilter=function(){n.setState({filters:{}}),n.getList()},n.renderEmpty=function(){var e=n.props.hasBundled;return _.createElement(T.default,{icon:"exclamation",title:t("NO_CLUSTER_FOUND"),desc:null,action:e?null:_.createElement("p",null,t("YOU_CAN_TRY_TO"),_.createElement("span",{className:D.default.action,onClick:n.handleReset,"data-test":"table-empty-refresh"},t("REFRESH_DATA")),t("OR"),_.createElement("span",{className:D.default.action,onClick:n.clearFilter,"data-test":"table-empty-clear-filter"},t("CLEAR_SEARCH_CONDITIONS")))})},n.state={list:[],filters:{},value:[],hasRemoved:[],loading:!1},n.tagsStore=new O.default,n}return(0,d.default)(r,[{key:"componentDidMount",value:function(){this.getList(),this.tagsStore.fetchGroupList()}},{key:"render",value:function(){var e=this,a=this.props,r=a.hasBundled,n=(a.onUnBind,a.detail),l=(0,c.default)(a,["hasBundled","onUnBind","detail"]),o=this.state,s=o.list,i=o.hasRemoved,f=o.loading,d=o.value,p=s.filter((function(e){return!i.includes(e.name)})),m=n&&"[".concat(n.label,":").concat(n.value,"]");return _.createElement(C.Modal,(0,u.default)({width:960},l,{title:r?_.createElement("span",null,t("REMOVE_TAG_FROM_CLUSTERS")," ",m):t("ADD_TAG_TO_CLUSTERS"),onOk:this.handleOk,onCancel:this.handleCancel,hideFooter:r}),_.createElement(h.Alert,{type:"warning",message:t("ADD_TAG_DESC")}),_.createElement("div",{className:D.default.title},t("CLUSTER_PL")),_.createElement("div",null,f&&_.createElement(h.Loading,{size:"large",className:D.default.loading}),_.createElement("div",{className:D.default.bindContainer},!r&&_.createElement(R.default,{placeholder:t("SEARCH_BY_NAME"),columns:this.columns,onChange:function(t){e.setState({filters:t}),e.getList(t)},filters:this.state.filters}),p.map((function(t){var a=I(I({},t),{},{tags:t.tags.map((function(t){return e.tagsStore.tags.find((function(e){return e.name===t.name}))})).filter(Boolean)}),n=a.expiredDay,l=n&&n<0,o=(0,b.default)(d,{uid:a.uid});return _.createElement(N.default,{key:a.uid,data:a,hasBundled:r,isExpired:l,isChecked:o,onAdd:e.handleAdd,onDelete:e.handleDelete,onUnBind:e.handleOnUnBind})})),(0,y.default)(p)&&this.renderEmpty())))}},{key:"columns",get:function(){var e,a;return[{dataIndex:"name",title:t("NAME"),search:!0},{dataIndex:"alias",title:t("ALIAS")},{dataIndex:"group",title:t("TYPE"),search:!0,filters:(null!==(e=this.tagsStore.group)&&void 0!==e?e:[]).map((function(e){return{text:e,value:e}})),renderSearch:function(e){return _.createElement("div",{className:"flex"},_.createElement("div",{className:(0,E.default)(D.default.clusterGroupTag,(0,s.default)({},D.default[e.key],!0))},t("ENV_".concat(e.label.toUpperCase()))),e.label)}},{dataIndex:"tags",title:t("TAG_PL"),filters:(null!==(a=this.tagsStore.tags)&&void 0!==a?a:[]).map((function(e){return{text:"".concat(e.label,":").concat(e.value),value:e.name}})),search:!0,multi:!0,renderSearch:function(e){return _.createElement("div",null,e.label)}}]}}]),r}(_.Component))||o;a.default=A},function(e,t,a){e.exports={bindContainer:"tNOa2EL27AfZiO2ZR8X2N",title:"_27U9qtKLZLLaVaV962NmSl",clusterGroupTag:"asBnEP-QmaK_c2rUi_em1",production:"_1oup3lUa7IHFoiyXgT3MTn",development:"_2vOI0ZGF4Kix3qif4cdDsq",testing:"_1pAhmfcRN1P3di10eJhrD-",demo:"_3BgkAEAOGO_uworLTWtfAQ",loading:"PBENJVDRQo4Ld4LJ4G6Ps",action:"_1cbBeiU9Q3bwhtrTCd8Vvi"}},function(e,a,r){"use strict";r(15);var n=r(20),l=r(157);r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(42),r(4),r(23),r(57),r(17);var o,u,c,s=n(r(30)),i=n(r(36)),f=n(r(37)),d=n(r(55)),p=n(r(56)),m=n(r(51)),v=l(r(0)),h=n(r(1)),E=r(186),y=n(r(3)),g=n(r(814)),b=r(903),S=r(924),_=n(r(2770));function O(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,m.default)(e);if(t){var n=(0,m.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,p.default)(this,a)}}var C=(0,n(r(936)).default)(["chain-off-duotone"])((c=u=function(e){(0,d.default)(r,e);var a=O(r);function r(e){var n;return(0,i.default)(this,r),(n=a.call(this,e)).handleChange=function(e){var t=n.props,a=t.onAdd,r=t.onDelete,l=t.data;e?a&&a(l):r&&r(l)},n.renderPopconfirm=function(){var e=n.props,a=e.onUnBind,r=e.data;return v.createElement("div",null,v.createElement("div",{className:_.default.body},v.createElement("div",{className:_.default.header},v.createElement(E.Icon,{name:"information",type:"green",size:20}),v.createElement("span",null,t("REMOVE_TAG"))),v.createElement("div",{className:_.default.desc},t("REMOVE_TAG_DESC"))),v.createElement("div",{className:_.default.footer},v.createElement(E.Button,null,t("CANCEL")),v.createElement(E.Button,{type:"control",onClick:function(){return a(r)}},t("OK"))))},n.state={},n}return(0,f.default)(r,[{key:"render",value:function(){var e,a,r=this.props,n=r.data,l=r.isExpired,o=r.isChecked,u=r.hasBundled;return v.createElement("li",{className:(0,y.default)(_.default.wrapper,(e={},(0,s.default)(e,_.default.itemWithCheckbox,!u),(0,s.default)(e,_.default.itemWithButton,u),e)),"data-test":"cluster-item"},!u&&v.createElement("div",null,v.createElement(E.Checkbox,{checked:o,disabled:n.tags.length>=5,onChange:this.handleChange})),v.createElement(g.default,{cluster:n,isExpired:l}),v.createElement(b.Text,{title:v.createElement(S.ClusterTagGroup,{empty:"-",data:null!==(a=null==n?void 0:n.tags)&&void 0!==a?a:[]}),description:t("TAG_PL")}),u&&v.createElement("div",null,v.createElement(E.Dropdown,{className:_.default.popconfirm,content:this.renderPopconfirm(),placement:"left"},v.createElement(E.Button,{className:_.default.itemCloseButton},v.createElement(E.Icon,{name:"chain-off-duotone"}))),v.createElement("span",{className:_.default.itemCloseIcon},v.createElement(E.Icon,{name:"chain-off-duotone"}))))}}]),r}(v.Component),u.propTypes={data:h.default.object,isExpired:h.default.bool,isChecked:h.default.bool,hasBundled:h.default.bool,onAdd:h.default.func,onDelete:h.default.func,onUnBind:h.default.func},o=c))||o;a.default=C},function(e,t,a){e.exports={wrapper:"_3TrpZAZ3rgo39zOFZHy8xz",icon:"Zi3B5-Wsb-8T_s2aNJNQq",indicator:"_15a5i-zVfIE2ZvIsIlbMHx",itemWithButton:"_1ezmOe2ce-Ti0CMtdJM-yv",itemWithCheckbox:"EwrSmju5xej7jB6369Iie",itemCloseButton:"_3C8K2FArTgOSTqJcodaziA",itemCloseIcon:"_4puH2z6rvpiySiIfOO-2g",popconfirm:"oUkiKzGAnbQh8iG6baohw",body:"mHrc4zc9iyde_dCL2NmHL",header:"_1IEA6_50QyV57w4Qsr27Is",desc:"_2cNWy8q3JOj7RqEkTJZb3b",footer:"_3KkbOlGfceZx6Dql_Lrl5V"}},,function(e,a,r){"use strict";r(15);var n=r(20),l=r(157);r(11),r(31),r(16),r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(11),r(31),r(42),r(16),r(4),r(23),r(57),r(17);var o,u=n(r(315)),c=n(r(58)),s=n(r(36)),i=n(r(37)),f=n(r(55)),d=n(r(56)),p=n(r(51)),m=l(r(0)),v=r(186),h=r(239),E=r(14),y=r(903),g=r(924),b=n(r(2773));function S(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,p.default)(e);if(t){var n=(0,p.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,d.default)(this,a)}}var _=(0,h.observer)(o=function(e){(0,f.default)(r,e);var a=S(r);function r(e){var t;return(0,s.default)(this,r),(t=a.call(this,e)).handleChange=function(e){t.setState({value:e})},t.handleOk=function(){var e=t.props,a=e.onOk,r=e.defaultValue,n=t.state.value;a((void 0===n?[]:n).filter((function(e){return!r.find((function(t){return t.name===e.name}))})))},t.state={list:e.list,value:e.value},t}return(0,i.default)(r,[{key:"render",value:function(){var e=this.props,a=(e.tagsGroup,e.tags),r=e.onAddTags,n=e.defaultValue,l=void 0===n?[]:n,o=(0,c.default)(e,["tagsGroup","tags","onAddTags","defaultValue"]),s=this.state.value;return m.createElement(y.Modal,(0,u.default)({width:600},o,{onOk:this.handleOk}),m.createElement("div",{className:b.default.wrapper},m.createElement(v.Alert,{type:"info",message:t("ADD_TAG_DESC")}),m.createElement("div",{className:b.default.title},t("ADD_TAGS")),m.createElement(g.ClusterTagAdd,{value:s,tagsGroup:(0,E.toJS)(this.props.store.tagsGroup),onChange:this.handleChange,defaultValue:l,onAddTags:r,tags:a})))}}]),r}(m.Component))||o;a.default=_},function(e,t,a){e.exports={wrapper:"FiDtjjOYi_dnAFmvmrS9j",title:"_1LaxNlg30y7jjTiSh0zwsn"}},function(e,a,r){"use strict";var n=r(20);r(12),r(11),r(6),r(16),r(9),r(13),r(10),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(11),r(6),r(28),r(16),r(34),r(15),r(9),r(13),r(10),r(4),r(22),r(7);var l=n(r(43));r(41);var o=n(r(44)),u=n(r(58)),c=n(r(30)),s=n(r(787)),i=n(r(240)),f=n(r(824)),d=n(r(2775)),p=n(r(435)),m=n(r(135)),v=n(r(26)),h=n(r(74)),E=r(1183);function y(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function g(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.cluster,a=e.namespace,r="";return t&&(r+="/clusters/".concat(t)),a&&(r+="/namespaces/".concat(a)),r}},{key:"fetchLabelSets",value:(t=(0,u.default)(n.default.mark((function e(){var t,a,r,l,o,u=arguments;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=u.length>0&&void 0!==u[0]?u[0]:{},a=Object.assign({},t),e.next=3,request.get("".concat(this.apiVersion).concat(this.getPath({}),"/targets/labelsets"),a);case 3:r=e.sent,l=(0,p.default)(r,"data")||[],o={},l.forEach((function(e){Object.keys(e).forEach((function(t){o[t]=o[t]||[],o[t].includes(e[t])||o[t].push(e[t])}))})),this.labelsets=o;case 8:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})}]),e}(),o=(0,f.default)(l.prototype,"labelsets",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),(0,f.default)(l.prototype,"fetchLabelSets",[d.action],Object.getOwnPropertyDescriptor(l.prototype,"fetchLabelSets"),l.prototype),l);t.default=m},function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(42),r(4),r(23),r(57),r(17);var l,o=n(r(36)),u=n(r(37)),c=n(r(55)),s=n(r(56)),i=n(r(51)),f=n(r(0)),d=r(239),p=n(r(1645));function m(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,i.default)(e);if(t){var n=(0,i.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,s.default)(this,a)}}var v=(0,d.inject)("monitoringStore")(l=(0,d.observer)(l=function(e){(0,c.default)(r,e);var a=m(r);function r(){var e;(0,o.default)(this,r);for(var t=arguments.length,n=new Array(t),l=0;lu?S.default.error({content:t("TIMERANGE_SELECTOR_MSG")}):e.props.onCustomSubmit({startTime:o,endTime:u,interval:l})},e}return(0,i.default)(r,[{key:"render",value:function(){var e=this.state.showDropdown,t=this.props,a=t.format,r=t.timeRange,n=a(t.recent||{},r);return E.default.createElement("div",{className:(0,y.default)(_.default.wrapper,(0,u.default)({},_.default.active,e))},E.default.createElement("div",{className:(0,y.default)(_.default.mask,(0,u.default)({},_.default.active,e)),onClick:this.hideDropdown}),E.default.createElement("div",{className:_.default.content,onClick:this.toggleDropdown},E.default.createElement(g.Icon,{name:"calendar",type:"light"}),E.default.createElement("span",null,n),E.default.createElement(g.Icon,{name:"chevron-down",type:"light"})),this.renderDropDown())}},{key:"renderDropDown",value:function(){return E.default.createElement("div",{className:_.default.dropdown},this.renderRecentOpts(),this.renderCustomOpts())}},{key:"renderRecentOpts",value:function(){var e=this,a=this.props.recentOpts;return E.default.createElement(E.default.Fragment,null,E.default.createElement("div",{className:_.default.title},t("SELECT_TIME_RANGE")),E.default.createElement("div",{className:_.default.recentWrapper},a.map((function(t,a){var r=t.label;return E.default.createElement("span",{onClick:e.handleRecentClick,"data-index":a,key:a},r)}))))}},{key:"renderCustomOpts",value:function(){var e=this.props,a=e.timeRange,r=e.interval,n=e.intervalOpts,l=a.startTime,u=a.endTime,c={enableSeconds:!0,enableTime:!0,dateFormat:"Y-m-d H:i:S"};return E.default.createElement(E.default.Fragment,null,E.default.createElement("div",{className:_.default.title},t("CUSTOM_TIME_RANGE")),E.default.createElement(g.Form,{data:{interval:r,startTime:[l],endTime:[u]},onSubmit:this.handleSubmit},E.default.createElement(g.Form.Item,{label:t("START_TIME")},E.default.createElement(g.DatePicker,(0,o.default)({name:"startTime"},c))),E.default.createElement(g.Form.Item,{label:t("END_TIME")},E.default.createElement(g.DatePicker,(0,o.default)({name:"endTime"},c))),E.default.createElement("div",{className:_.default.footer},(0,v.default)(n)||E.default.createElement(g.Form.Item,{label:t("SAMPLING_INTERVAL")},E.default.createElement(g.Select,{name:"interval",className:_.default.select,options:n})),E.default.createElement("div",null,E.default.createElement(g.Button,{htmlType:"submit"},t("OK"))))))}}]),r}(E.Component);C.propTypes={recent:h.default.object,timeRange:h.default.object,format:h.default.func,recentOpts:h.default.array,interval:h.default.string,intervalOpts:h.default.array,onRecentSelect:h.default.func,onCustomSubmit:h.default.func},C.defaultProps={recent:null,timeRange:{startTime:Date.now(),endTime:Date.now()},format:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=e.count,r=e.unit,n=arguments.length>1?arguments[1]:void 0,l=n.startTime,o=void 0===l?0:l,u=n.endTime,c=void 0===u?0:u;return a?"".concat(t("LAST")," ").concat(a," ").concat(t(r)):"".concat((0,b.default)(o).format("YYYY/MM/DD HH:mm:ss")," ~ ").concat((0,b.default)(c).format("YYYY/MM/DD HH:mm:ss"))},recentOpts:[{label:"Last 5 Minutes",value:{count:5,unit:"Minutes"}}],intervalOpts:[],onRecentSelect:function(){},onCustomSummit:function(){}};var T=C;a.default=T},function(e,t,a){e.exports={wrapper:"_2kNQZvZCCOrdYLr3lW_M0M",active:"_3ze5VvZgAQIFkqqU43TECt",dropdown:"_38qK6AG6_ltW34wzqG2QjC",mask:"_1e1_OUeku7JT9XcEh-uO-Q",content:"zGUNaQOOt-GtiMetfKDgX",title:"_3YE7OaQAST3rEZTGrNXeD2",recentWrapper:"_2FjFhDG37PJi2iTV2HWjv0",footer:"_1_M2ap0yCRe5IW3k3h55YP"}},function(e,t,a){"use strict";a(15);var r=a(20);a(5),a(6),a(18),a(9),a(4),a(23),a(17),a(7),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(45),a(5),a(6),a(18),a(42),a(9),a(4),a(23),a(57),a(17),a(7);var n,l,o=r(a(36)),u=r(a(37)),c=r(a(55)),s=r(a(56)),i=r(a(51)),f=r(a(49)),d=r(a(0)),p=a(239),m=a(14),v=r(a(2820));function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,i.default)(e);if(t){var n=(0,i.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,s.default)(this,a)}}var E=(0,p.inject)("monitoringStore","modalStore")(n=(0,p.observer)((l=function(e){(0,c.default)(a,e);var t=h(a);function a(){var e;(0,o.default)(this,a);for(var r=arguments.length,n=new Array(r),l=0;l1)return"Only queries that return single series/table is supported";if(0===u)return"No Data";var c=(0,d.default)(o,"0.values",[]).map((function(e){var t=(0,l.default)(e,2)[1];return Number(t)})),s=(E[t]||m.avgs)(c)||0;return(m.unitTransformMap[n]||m.unitTransformMap.none)(s,r)}}]),a}(v.default),(0,f.default)(n.prototype,"stat",[p.computed],Object.getOwnPropertyDescriptor(n.prototype,"stat"),n.prototype),n);t.default=y},function(e,t,a){"use strict";var r=a(20);a(12),a(11),a(6),a(29),a(18),a(87),a(16),a(27),a(98),a(9),a(13),a(10),a(4),a(23),a(17),a(7),a(32),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(12),a(45),a(11),a(6),a(29),a(18),a(28),a(87),a(42),a(16),a(27),a(34),a(15),a(98),a(9),a(13),a(10),a(4),a(23),a(57),a(17),a(7),a(32);var n,l=r(a(30)),o=r(a(96)),u=r(a(36)),c=r(a(37)),s=r(a(55)),i=r(a(56)),f=r(a(51)),d=r(a(49)),p=a(14),m=a(794),v=r(a(26)),h=r(a(1362));function E(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,f.default)(e);if(t){var n=(0,f.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,i.default)(this,a)}}var g={avg:m.avgs,last:function(e){return e[e.length-1]},first:function(e){return e[0]},max:function(e){return Math.max.apply(null,e)},min:function(e){return Math.min.apply(null,e)}},b=(n=function(e){(0,s.default)(a,e);var t=y(a);function a(){return(0,u.default)(this,a),t.apply(this,arguments)}return(0,c.default)(a,[{key:"graphData",get:function(){var e=this.metrics.reduce((function(e,t){var a=t.values,r=t.id;return a.forEach((function(t){var a=(0,o.default)(t,2),n=a[0],l=a[1],u=1e3*n,c=e[u]||{};c[r]=Number(l),e[u]=c})),e}),{});return Object.entries(e).map((function(e){var t=(0,o.default)(e,2),a=t[0],r=t[1];return function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},r=a.config,n=void 0===r?{}:r,s=a.monitors,i=void 0===s?[]:s;(0,c.default)(this,e),(0,u.default)(this,"monitors",l,this),(0,u.default)(this,"config",o,this),this.config=n,this.monitors=i.map((function(e){return e.belong(t)}))}return(0,s.default)(e,[{key:"push",value:function(e){return e.belong(this),this.monitors.push(e),this}},{key:"has",value:function(e){return(0,d.default)(this.monitors,e)}},{key:"updateMonitors",value:function(e){this.monitors=e}},{key:"deleteTextMonitorByIndex",value:function(e){this.monitors.splice(e,1)}}]),e}(),l=(0,i.default)(n.prototype,"monitors",[f.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),o=(0,i.default)(n.prototype,"config",[f.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),(0,i.default)(n.prototype,"updateMonitors",[f.action],Object.getOwnPropertyDescriptor(n.prototype,"updateMonitors"),n.prototype),(0,i.default)(n.prototype,"deleteTextMonitorByIndex",[f.action],Object.getOwnPropertyDescriptor(n.prototype,"deleteTextMonitorByIndex"),n.prototype),n);t.default=p},function(e,a,r){"use strict";var n=r(20);r(12),r(5),r(11),r(6),r(9),r(13),r(10),r(4),r(23),r(17),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(45),r(5),r(11),r(6),r(28),r(42),r(34),r(15),r(9),r(13),r(10),r(4),r(22),r(23),r(57),r(17),r(7);var l=n(r(30)),o=n(r(43));r(41);var u=n(r(44)),c=n(r(36)),s=n(r(37)),i=n(r(55)),f=n(r(56)),d=n(r(51)),p=n(r(0)),m=n(r(26)),v=n(r(74)),h=n(r(1644)),E=n(r(2906)),y=n(r(1679)),g=n(r(825)),b=n(r(2911)),S=n(r(1681));function _(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function O(e){for(var t=1;t0)){e.next=4;break}return E.default.error(t("FILE_UPLOAD_ERROR")),e.abrupt("return",Promise.reject(t("FILE_UPLOAD_ERROR")));case 4:if("json"===a.name.slice(a.name.lastIndexOf(".")+1)){e.next=8;break}return E.default.error(t("WRONG_FILE_EXTENSION_NAME",{type:"JSON"})),e.abrupt("return",Promise.reject(t("WRONG_FILE_EXTENSION_NAME",{type:"JSON"})));case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),n.startHandler=function(e){n.setFileStatus(e.uid,{size:e.size,name:e.name,showProgress:!0,showFile:!1,percentage:0,status:"active"})},n.progressHandler=function(e,t){var a=(0,y.default)(e.percent)?Math.round(e.percent):0;n.setFileStatus(t.uid,{size:t.size,percentage:100===a?99:a,status:"active"})},n.successHandler=function(e,a){var r={name:a.name,size:a.size,showProgress:!1,showFile:!0,percentage:100,status:"active"};n.setFileStatus(a.uid,r);var l=new FileReader;l.readAsText(a,"utf8"),l.addEventListener("load",(function(){var e=l.result;n.props.onChange&&n.props.onChange(e)})),E.default.success({content:t("UPLOAD_SUCCESSFUL")})},n.errorHandler=function(e,a,r){n.setFileStatus(r.uid,{size:r.size,showProgress:!0,showFile:!1,status:"exception"}),E.default.error({content:t("UPLOAD_FAILED_MESSAGE")})},n.handleReUpload=function(){Object.keys(n.state.files).forEach((function(e){n.uploader.abort(e)})),n.setState({files:{}}),n.props.onChange(""),n.uploader.onClick()},n.renderProgress=function(e){var a=n.state.files[e];return m.default.createElement("div",{className:_.default.uploadingContent,key:e},m.default.createElement("p",{className:_.default.fileInfo},m.default.createElement("span",{className:_.default.fileName},a.name),m.default.createElement("span",{className:_.default.uploadText},t("UPLOAD_PERCENT",{percent:a.percentage})),m.default.createElement("span",{className:_.default.uploadText},t("FILE_SIZE",{size:(0,b.formatSize)(a.size)}))),m.default.createElement(v.Progress,{status:"primary",className:_.default.progress,percent:a.percentage,strokeWidth:8,key:e,showInfo:!1}))},n.renderFileItem=function(e){var a=n.state.files[e];return m.default.createElement("div",{className:_.default.uploadingContent,key:e},m.default.createElement("p",{className:_.default.fileInfo},m.default.createElement("span",{className:_.default.fileName},a.name),m.default.createElement("span",{className:_.default.uploadText},t("UPLOAD_FULLY")),m.default.createElement("span",{className:_.default.uploadText},t("FILE_SIZE",{size:(0,b.formatSize)(a.size)}))),m.default.createElement(v.Progress,{status:"primary",className:_.default.progress,percent:100,strokeWidth:8,showInfo:!1}))},n.uploaderProps={name:"grafanaDashboard",method:"post",action:n.getUploadUrl,multiple:!1,type:"json",beforeUpload:n.beforeUploadHandler,onStart:n.startHandler,onSuccess:n.successHandler,onProgress:n.progressHandler,onError:n.errorHandler},n.state={files:{}},n}return(0,i.default)(r,[{key:"render",value:function(){var e=this,a=this.state.files,r=Object.keys(a).length;return m.default.createElement("div",null,m.default.createElement("div",{className:_.default.container},m.default.createElement(h.default,(0,l.default)({},this.uploaderProps,{ref:function(t){e.uploader=t}}),m.default.createElement("div",{className:(0,g.default)(_.default.selectContainer,{})},m.default.createElement(v.Icon,{className:_.default.icon,size:40,name:"upload"}),m.default.createElement("p",{className:_.default.title},t("UPLOAD_FROM_LOCAL_TITLE")),m.default.createElement("p",{className:_.default.desc},t("SUPPORT_JSON_FILE"))))),m.default.createElement("div",{className:(0,g.default)(_.default.uploadContainer,(0,c.default)({},_.default.none,!r))},m.default.createElement("span",{className:_.default.icon},m.default.createElement(S.ReactComponent,null)),Object.keys(a).map((function(t){return a[t]?a[t].showProgress?e.renderProgress(t):a[t].showFile?e.renderFileItem(t):null:null})),m.default.createElement(v.Icon,{changeable:!0,name:"trash",onClick:this.handleReUpload,className:_.default.uploadIcon})))}},{key:"getUploadUrl",get:function(){return"/grafana/file"}}]),r}(m.default.Component);a.default=R},function(e,t,a){"use strict";a.r(t),a.d(t,"ReactComponent",(function(){return i}));var r=a(315),n=a.n(r),l=a(0),o=a.n(l),u=o.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.29 18.517h2.646v1.323c0 .73.592 1.323 1.323 1.323H19.84c.73 0 1.323-.592 1.323-1.323V7.936h-3.968c-.73 0-1.323-.592-1.323-1.323V2.645H9.259c-.73 0-1.323.593-1.323 1.323v6.613H5.291V2.645A2.645 2.645 0 017.936 0h10.26l5.612 5.612v15.55a2.645 2.645 0 01-2.645 2.646H7.936a2.645 2.645 0 01-2.645-2.645v-2.646z",fill:"#324558"}),c=o.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1 10.582a1 1 0 00-1 1v5.936a1 1 0 001 1h18a1 1 0 001-1V11.58a1 1 0 00-1-1H1zm7.648 6.41c-.372.28-.874.42-1.504.42-.437 0-.836-.08-1.195-.24-.36-.16-.634-.38-.822-.659a1.686 1.686 0 01-.284-.969H6.02c0 .628.375.942 1.125.942.279 0 .496-.057.652-.17a.553.553 0 00.235-.475c0-.221-.078-.391-.235-.51-.156-.118-.437-.243-.843-.374a5.981 5.981 0 01-.965-.39c-.646-.348-.969-.818-.969-1.41 0-.307.087-.58.26-.822.173-.24.422-.429.746-.564a2.808 2.808 0 011.092-.203c.406 0 .768.073 1.086.22.317.148.564.355.74.624.176.268.264.572.264.914H8.035c0-.26-.082-.463-.246-.608-.164-.144-.395-.216-.692-.216-.286 0-.509.06-.668.181a.573.573 0 00-.238.479c0 .184.093.34.28.464.186.126.46.243.822.352.666.2 1.152.45 1.457.746.304.297.457.667.457 1.11 0 .492-.187.878-.559 1.158zm-5.088.193a2.118 2.118 0 01-.989.227c-.601 0-1.07-.153-1.406-.46-.336-.305-.504-.738-.504-1.298h1.18c0 .278.059.484.176.617.117.133.302.2.554.2a.672.672 0 00.536-.231c.132-.154.199-.373.199-.656v-3.938h1.172v3.938c0 .361-.08.681-.24.959-.16.277-.387.491-.678.642zm8.297.227c.477 0 .9-.115 1.268-.344.368-.23.652-.555.85-.977.197-.422.296-.912.296-1.472v-.254c0-.558-.1-1.05-.302-1.475a2.254 2.254 0 00-.856-.98 2.353 2.353 0 00-1.263-.342c-.474 0-.896.114-1.264.342a2.254 2.254 0 00-.856.98c-.201.426-.302.919-.302 1.479v.28c.002.548.105 1.032.308 1.452.203.42.49.744.86.97.37.227.79.34 1.261.34zm-.921-1.442c.213.32.52.48.921.48.394 0 .696-.154.907-.462.21-.309.317-.759.32-1.35v-.277c0-.597-.107-1.05-.32-1.36-.214-.31-.519-.464-.914-.464-.394 0-.697.153-.91.459-.214.306-.322.754-.325 1.345v.278c0 .58.107 1.03.32 1.351zm4.959 1.364V13.59l2.281 3.743h1.172v-5.688H18.18v3.75l-2.285-3.75h-1.172v5.688h1.172z",fill:"#B6C2CD"}),s=o.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.572 17.412c.367 0 .696-.076.988-.227.291-.151.517-.365.678-.642.16-.278.24-.598.24-.96v-3.937H3.306v3.938c0 .283-.067.502-.2.656a.671.671 0 01-.534.23c-.253 0-.438-.066-.555-.199-.117-.133-.176-.339-.176-.617H.661c0 .56.168.993.504 1.299.336.306.805.459 1.407.459zm4.572 0c.63 0 1.132-.14 1.504-.42.372-.28.559-.666.559-1.159 0-.442-.153-.812-.457-1.109-.305-.297-.79-.546-1.457-.746-.362-.11-.636-.226-.823-.351-.186-.126-.279-.28-.279-.465 0-.198.08-.358.238-.479.16-.121.382-.181.668-.181.297 0 .528.072.692.216.164.145.246.347.246.608h1.172a1.63 1.63 0 00-.264-.914 1.729 1.729 0 00-.74-.623 2.555 2.555 0 00-1.086-.221c-.404 0-.768.068-1.092.203a1.695 1.695 0 00-.746.564c-.173.241-.26.515-.26.823 0 .59.323 1.06.969 1.41.237.127.559.257.965.389.406.131.687.256.844.374.156.119.234.289.234.51a.553.553 0 01-.234.475c-.157.113-.374.17-.653.17-.75 0-1.125-.314-1.125-.942H4.843c0 .368.095.69.284.97.188.278.463.497.822.657.36.16.758.24 1.195.24zm4.713 0c.477 0 .9-.115 1.268-.344.368-.23.652-.555.85-.977.198-.422.296-.913.296-1.472v-.254c0-.558-.1-1.05-.302-1.475a2.254 2.254 0 00-.856-.98 2.353 2.353 0 00-1.263-.342c-.474 0-.896.114-1.264.342a2.254 2.254 0 00-.855.98c-.202.426-.303.919-.303 1.479v.28c.002.548.105 1.032.308 1.452.204.42.49.744.86.97.37.227.79.34 1.261.34zm0-.961c-.4 0-.708-.16-.921-.48-.214-.321-.32-.772-.32-1.352v-.278c.002-.59.11-1.04.324-1.345.213-.306.516-.46.91-.46.396 0 .7.156.914.466.213.31.32.762.32 1.359v.277c-.003.591-.11 1.041-.32 1.35-.211.308-.513.463-.906.463zm4.038.883V13.59l2.281 3.743h1.172v-5.688H18.18v3.75l-2.285-3.75h-1.172v5.688h1.172z",fill:"#324558"}),i=function(e){return o.a.createElement("svg",n()({viewBox:"0 0 24 24",fill:"none",width:"1em",height:"1em"},e),u,c,s)};t.default="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik01LjI5MDY1IDE4LjUxNzRINy45MzU5OVYxOS44NDAxQzcuOTM1OTkgMjAuNTcwNiA4LjUyODE3IDIxLjE2MjcgOS4yNTg2NiAyMS4xNjI3SDE5Ljg0QzIwLjU3MDUgMjEuMTYyNyAyMS4xNjI3IDIwLjU3MDYgMjEuMTYyNyAxOS44NDAxVjcuOTM2MDNIMTcuMTk0N0MxNi40NjQyIDcuOTM2MDMgMTUuODcyIDcuMzQzODUgMTUuODcyIDYuNjEzMzVWMi42NDUzNEg5LjI1ODY2QzguNTI4MTcgMi42NDUzNCA3LjkzNTk5IDMuMjM3NTIgNy45MzU5OSAzLjk2ODAxVjEwLjU4MTRINS4yOTA2NVYyLjY0NTM0QzUuMjkwNjUgMS4xODQzNiA2LjQ3NTAxIDAgNy45MzU5OSAwSDE4LjE5NjRMMjMuODA4IDUuNjExNjJWMjEuMTYyN0MyMy44MDggMjIuNjIzNyAyMi42MjM3IDIzLjgwODEgMjEuMTYyNyAyMy44MDgxSDcuOTM1OTlDNi40NzUwMSAyMy44MDgxIDUuMjkwNjUgMjIuNjIzNyA1LjI5MDY1IDIxLjE2MjdWMTguNTE3NFoiIGZpbGw9IiMzMjQ1NTgiLz4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xIDEwLjU4MTVDMC40NDc3MTUgMTAuNTgxNSAwIDExLjAyOTMgMCAxMS41ODE1VjE3LjUxNzZDMCAxOC4wNjk5IDAuNDQ3NzE1IDE4LjUxNzYgMSAxOC41MTc2SDE5QzE5LjU1MjMgMTguNTE3NiAyMCAxOC4wNjk4IDIwIDE3LjUxNzZWMTEuNTgxNUMyMCAxMS4wMjkzIDE5LjU1MjMgMTAuNTgxNSAxOSAxMC41ODE1SDFaTTguNjQ4MDUgMTYuOTkxN0M4LjI3NTY2IDE3LjI3MTcgNy43NzQzNiAxNy40MTE2IDcuMTQ0MTUgMTcuNDExNkM2LjcwNjY1IDE3LjQxMTYgNi4zMDgyMSAxNy4zMzE1IDUuOTQ4ODMgMTcuMTcxNEM1LjU4OTQ2IDE3LjAxMTIgNS4zMTUzNyAxNi43OTE4IDUuMTI2NTcgMTYuNTEzMkM0LjkzNzc3IDE2LjIzNDUgNC44NDMzNyAxNS45MTE2IDQuODQzMzcgMTUuNTQ0NEg2LjAxOTE1QzYuMDE5MTUgMTYuMTcyIDYuMzk0MTUgMTYuNDg1OCA3LjE0NDE1IDE2LjQ4NThDNy40MjI3OSAxNi40ODU4IDcuNjQwMjQgMTYuNDI5MiA3Ljc5NjQ5IDE2LjMxNTlDNy45NTI3NCAxNi4yMDI2IDguMDMwODcgMTYuMDQ0NCA4LjAzMDg3IDE1Ljg0MTNDOC4wMzA4NyAxNS42MiA3Ljk1Mjc0IDE1LjQ1IDcuNzk2NDkgMTUuMzMxNUM3LjY0MDI0IDE1LjIxMzEgNy4zNTg5OSAxNS4wODgxIDYuOTUyNzQgMTQuOTU2NUM2LjU0NjQ5IDE0LjgyNSA2LjIyNDg4IDE0LjY5NTUgNS45ODc5IDE0LjU2NzlDNS4zNDIwNiAxNC4yMTg5IDUuMDE5MTUgMTMuNzQ4OSA1LjAxOTE1IDEzLjE1NzdDNS4wMTkxNSAxMi44NTA0IDUuMTA1NzQgMTIuNTc2MyA1LjI3ODkxIDEyLjMzNTVDNS40NTIwOSAxMi4wOTQ2IDUuNzAwNzkgMTEuOTA2NCA2LjAyNTAxIDExLjc3MUM2LjM0OTIzIDExLjYzNTYgNi43MTMxNiAxMS41Njc5IDcuMTE2OCAxMS41Njc5QzcuNTIzMDUgMTEuNTY3OSA3Ljg4NTAzIDExLjY0MTQgOC4yMDI3NCAxMS43ODg2QzguNTIwNDUgMTEuOTM1NyA4Ljc2NzE5IDEyLjE0MzQgOC45NDI5NyAxMi40MTE2QzkuMTE4NzYgMTIuNjc5OSA5LjIwNjY1IDEyLjk4NDUgOS4yMDY2NSAxMy4zMjU3SDguMDM0NzdDOC4wMzQ3NyAxMy4wNjUzIDcuOTUyNzQgMTIuODYyOCA3Ljc4ODY4IDEyLjcxODNDNy42MjQ2MiAxMi41NzM3IDcuMzk0MTUgMTIuNTAxNSA3LjA5NzI3IDEyLjUwMTVDNi44MTA4MSAxMi41MDE1IDYuNTg4MTYgMTIuNTYyIDYuNDI5MyAxMi42ODMxQzYuMjcwNDUgMTIuODA0MiA2LjE5MTAyIDEyLjk2MzcgNi4xOTEwMiAxMy4xNjE2QzYuMTkxMDIgMTMuMzQ2NSA2LjI4NDEyIDEzLjUwMTUgNi40NzAzMiAxMy42MjY1QzYuNjU2NTIgMTMuNzUxNSA2LjkzMDYxIDEzLjg2ODcgNy4yOTI1OCAxMy45NzhDNy45NTkyNSAxNC4xNzg2IDguNDQ0OTMgMTQuNDI3MyA4Ljc0OTYyIDE0LjcyNDFDOS4wNTQzIDE1LjAyMSA5LjIwNjY1IDE1LjM5MDggOS4yMDY2NSAxNS44MzM1QzkuMjA2NjUgMTYuMzI1NyA5LjAyMDQ1IDE2LjcxMTggOC42NDgwNSAxNi45OTE3Wk0zLjU1OTc3IDE3LjE4NTFDMy4yNjgxMSAxNy4zMzYxIDIuOTM4NjggMTcuNDExNiAyLjU3MTQ5IDE3LjQxMTZDMS45Njk5MyAxNy40MTE2IDEuNTAxMTggMTcuMjU4NiAxLjE2NTI0IDE2Ljk1MjZDMC44MjkzMDQgMTYuNjQ2NyAwLjY2MTMzNSAxNi4yMTM3IDAuNjYxMzM1IDE1LjY1MzhIMS44NDEwMkMxLjg0MTAyIDE1LjkzMjUgMS44OTk2MiAxNi4xMzgyIDIuMDE2OCAxNi4yNzFDMi4xMzM5OSAxNi40MDM4IDIuMzE4ODkgMTYuNDcwMiAyLjU3MTQ5IDE2LjQ3MDJDMi43OTU0NSAxNi40NzAyIDIuOTczODQgMTYuMzkzNCAzLjEwNjY1IDE2LjIzOThDMy4yMzk0NiAxNi4wODYxIDMuMzA1ODcgMTUuODY3NCAzLjMwNTg3IDE1LjU4MzVWMTEuNjQ2SDQuNDc3NzRWMTUuNTgzNUM0LjQ3Nzc0IDE1Ljk0NTUgNC4zOTc2NiAxNi4yNjUxIDQuMjM3NTEgMTYuNTQyNUM0LjA3NzM1IDE2LjgxOTggMy44NTE0NCAxNy4wMzQgMy41NTk3NyAxNy4xODUxWk0xMS44NTc0IDE3LjQxMTZDMTIuMzM0IDE3LjQxMTYgMTIuNzU2NSAxNy4yOTcgMTMuMTI1IDE3LjA2NzlDMTMuNDkzNSAxNi44Mzg3IDEzLjc3NjcgMTYuNTEzMiAxMy45NzQ2IDE2LjA5MTNDMTQuMTcyNSAxNS42Njk0IDE0LjI3MTUgMTUuMTc4NiAxNC4yNzE1IDE0LjYxODdWMTQuMzY0OEMxNC4yNzE1IDEzLjgwNzUgMTQuMTcwNiAxMy4zMTU5IDEzLjk2ODggMTIuODkwMUMxMy43NjY5IDEyLjQ2NDQgMTMuNDgxOCAxMi4xMzc1IDEzLjExMzMgMTEuOTA5N0MxMi43NDQ4IDExLjY4MTggMTIuMzIzNiAxMS41Njc5IDExLjg0OTYgMTEuNTY3OUMxMS4zNzU3IDExLjU2NzkgMTAuOTU0NCAxMS42ODE4IDEwLjU4NTkgMTEuOTA5N0MxMC4yMTc1IDEyLjEzNzUgOS45MzIzIDEyLjQ2NDQgOS43MzA0OCAxMi44OTAxQzkuNTI4NjUgMTMuMzE1OSA5LjQyNzc0IDEzLjgwODggOS40Mjc3NCAxNC4zNjg3VjE0LjY0OTlDOS40MzAzNSAxNS4xOTY4IDkuNTMzMjEgMTUuNjgwNSA5LjczNjM0IDE2LjEwMTFDOS45Mzk0NiAxNi41MjE3IDEwLjIyNTkgMTYuODQ1MiAxMC41OTU3IDE3LjA3MThDMTAuOTY1NSAxNy4yOTgzIDExLjM4NjEgMTcuNDExNiAxMS44NTc0IDE3LjQxMTZaTTEwLjkzNTYgMTUuOTcwMkMxMS4xNDkxIDE2LjI5MDUgMTEuNDU2NCAxNi40NTA3IDExLjg1NzQgMTYuNDUwN0MxMi4yNTA3IDE2LjQ1MDcgMTIuNTUyNyAxNi4yOTY0IDEyLjc2MzcgMTUuOTg3OEMxMi45NzQ2IDE1LjY3OTIgMTMuMDgxNCAxNS4yMjkzIDEzLjA4NCAxNC42MzgyVjE0LjM2MDhDMTMuMDg0IDEzLjc2NDUgMTIuOTc3MiAxMy4zMTE0IDEyLjc2MzcgMTMuMDAxNUMxMi41NTAxIDEyLjY5MTYgMTIuMjQ1NCAxMi41MzY2IDExLjg0OTYgMTIuNTM2NkMxMS40NTY0IDEyLjUzNjYgMTEuMTUzIDEyLjY4OTYgMTAuOTM5NSAxMi45OTU2QzEwLjcyNTkgMTMuMzAxNiAxMC42MTc4IDEzLjc1MDIgMTAuNjE1MiAxNC4zNDEzVjE0LjYxODdDMTAuNjE1MiAxNS4xOTk0IDEwLjcyMiAxNS42NDk5IDEwLjkzNTYgMTUuOTcwMlpNMTUuODk0OSAxNy4zMzM1VjEzLjU5MTNMMTguMTc2MiAxNy4zMzM1SDE5LjM0ODFWMTEuNjQ2SDE4LjE4MDFWMTUuMzk2TDE1Ljg5NDkgMTEuNjQ2SDE0LjcyMzFWMTcuMzMzNUgxNS44OTQ5WiIgZmlsbD0iI0I2QzJDRCIvPgo8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTIuNTcxNTMgMTcuNDExNkMyLjkzODcyIDE3LjQxMTYgMy4yNjgxNSAxNy4zMzYxIDMuNTU5ODEgMTcuMTg1MUMzLjg1MTQ4IDE3LjAzNCA0LjA3NzM5IDE2LjgxOTggNC4yMzc1NSAxNi41NDI1QzQuMzk3NyAxNi4yNjUxIDQuNDc3NzggMTUuOTQ1NSA0LjQ3Nzc4IDE1LjU4MzVWMTEuNjQ2SDMuMzA1OTFWMTUuNTgzNUMzLjMwNTkxIDE1Ljg2NzQgMy4yMzk1IDE2LjA4NjEgMy4xMDY2OSAxNi4yMzk3QzIuOTczODggMTYuMzkzNCAyLjc5NTQ5IDE2LjQ3MDIgMi41NzE1MyAxNi40NzAyQzIuMzE4OTMgMTYuNDcwMiAyLjEzNDAzIDE2LjQwMzggMi4wMTY4NSAxNi4yNzFDMS44OTk2NiAxNi4xMzgyIDEuODQxMDYgMTUuOTMyNSAxLjg0MTA2IDE1LjY1MzhIMC42NjEzNzdDMC42NjEzNzcgMTYuMjEzNyAwLjgyOTM0NiAxNi42NDY2IDEuMTY1MjggMTYuOTUyNkMxLjUwMTIyIDE3LjI1ODYgMS45Njk5NyAxNy40MTE2IDIuNTcxNTMgMTcuNDExNlpNNy4xNDQxOSAxNy40MTE2QzcuNzc0NCAxNy40MTE2IDguMjc1NyAxNy4yNzE2IDguNjQ4MDkgMTYuOTkxN0M5LjAyMDQ5IDE2LjcxMTggOS4yMDY2OSAxNi4zMjU3IDkuMjA2NjkgMTUuODMzNUM5LjIwNjY5IDE1LjM5MDggOS4wNTQzNCAxNS4wMjEgOC43NDk2NiAxNC43MjQxQzguNDQ0OTcgMTQuNDI3MiA3Ljk1OTI5IDE0LjE3ODUgNy4yOTI2MyAxMy45NzhDNi45MzA2NSAxMy44Njg3IDYuNjU2NTYgMTMuNzUxNSA2LjQ3MDM2IDEzLjYyNjVDNi4yODQxNiAxMy41MDE1IDYuMTkxMDYgMTMuMzQ2NSA2LjE5MTA2IDEzLjE2MTZDNi4xOTEwNiAxMi45NjM3IDYuMjcwNDkgMTIuODA0MiA2LjQyOTM1IDEyLjY4MzFDNi41ODgyIDEyLjU2MiA2LjgxMDg2IDEyLjUwMTUgNy4wOTczMSAxMi41MDE1QzcuMzk0MTkgMTIuNTAxNSA3LjYyNDY2IDEyLjU3MzcgNy43ODg3MiAxMi43MTgzQzcuOTUyNzggMTIuODYyOCA4LjAzNDgxIDEzLjA2NTMgOC4wMzQ4MSAxMy4zMjU3SDkuMjA2NjlDOS4yMDY2OSAxMi45ODQ1IDkuMTE4OCAxMi42Nzk5IDguOTQzMDIgMTIuNDExNkM4Ljc2NzI0IDEyLjE0MzQgOC41MjA0OSAxMS45MzU3IDguMjAyNzggMTEuNzg4NkM3Ljg4NTA3IDExLjY0MTQgNy41MjMxIDExLjU2NzkgNy4xMTY4NSAxMS41Njc5QzYuNzEzMiAxMS41Njc5IDYuMzQ5MjcgMTEuNjM1NiA2LjAyNTA1IDExLjc3MUM1LjcwMDgzIDExLjkwNjQgNS40NTIxMyAxMi4wOTQ2IDUuMjc4OTUgMTIuMzM1NEM1LjEwNTc4IDEyLjU3NjMgNS4wMTkxOSAxMi44NTA0IDUuMDE5MTkgMTMuMTU3N0M1LjAxOTE5IDEzLjc0ODkgNS4zNDIxMSAxNC4yMTg5IDUuOTg3OTQgMTQuNTY3OUM2LjIyNDkyIDE0LjY5NTUgNi41NDY1MyAxNC44MjUgNi45NTI3OCAxNC45NTY1QzcuMzU5MDMgMTUuMDg4MSA3LjY0MDI4IDE1LjIxMzEgNy43OTY1MyAxNS4zMzE1QzcuOTUyNzggMTUuNDUgOC4wMzA5MSAxNS42MiA4LjAzMDkxIDE1Ljg0MTNDOC4wMzA5MSAxNi4wNDQ0IDcuOTUyNzggMTYuMjAyNiA3Ljc5NjUzIDE2LjMxNTlDNy42NDAyOCAxNi40MjkyIDcuNDIyODMgMTYuNDg1OCA3LjE0NDE5IDE2LjQ4NThDNi4zOTQxOSAxNi40ODU4IDYuMDE5MTkgMTYuMTcyIDYuMDE5MTkgMTUuNTQ0NEg0Ljg0MzQxQzQuODQzNDEgMTUuOTExNiA0LjkzNzgxIDE2LjIzNDUgNS4xMjY2MSAxNi41MTMyQzUuMzE1NDEgMTYuNzkxOCA1LjU4OTUgMTcuMDExMiA1Ljk0ODg4IDE3LjE3MTRDNi4zMDgyNSAxNy4zMzE1IDYuNzA2NjkgMTcuNDExNiA3LjE0NDE5IDE3LjQxMTZaTTExLjg1NzUgMTcuNDExNkMxMi4zMzQgMTcuNDExNiAxMi43NTY2IDE3LjI5NyAxMy4xMjUgMTcuMDY3OUMxMy40OTM1IDE2LjgzODcgMTMuNzc2NyAxNi41MTMyIDEzLjk3NDcgMTYuMDkxM0MxNC4xNzI2IDE1LjY2OTQgMTQuMjcxNSAxNS4xNzg1IDE0LjI3MTUgMTQuNjE4N1YxNC4zNjQ3QzE0LjI3MTUgMTMuODA3NSAxNC4xNzA2IDEzLjMxNTkgMTMuOTY4OCAxMi44OTAxQzEzLjc2NyAxMi40NjQ0IDEzLjQ4MTggMTIuMTM3NSAxMy4xMTMzIDExLjkwOTdDMTIuNzQ0OCAxMS42ODE4IDEyLjMyMzYgMTEuNTY3OSAxMS44NDk3IDExLjU2NzlDMTEuMzc1NyAxMS41Njc5IDEwLjk1NDUgMTEuNjgxOCAxMC41ODYgMTEuOTA5N0MxMC4yMTc1IDEyLjEzNzUgOS45MzIzNCAxMi40NjQ0IDkuNzMwNTIgMTIuODkwMUM5LjUyODY5IDEzLjMxNTkgOS40Mjc3OCAxMy44MDg4IDkuNDI3NzggMTQuMzY4N1YxNC42NDk5QzkuNDMwMzkgMTUuMTk2OCA5LjUzMzI1IDE1LjY4MDUgOS43MzYzOCAxNi4xMDExQzkuOTM5NSAxNi41MjE2IDEwLjIyNiAxNi44NDUyIDEwLjU5NTggMTcuMDcxOEMxMC45NjU1IDE3LjI5ODMgMTEuMzg2MSAxNy40MTE2IDExLjg1NzUgMTcuNDExNlpNMTEuODU3NSAxNi40NTA3QzExLjQ1NjQgMTYuNDUwNyAxMS4xNDkxIDE2LjI5MDUgMTAuOTM1NiAxNS45NzAyQzEwLjcyMjEgMTUuNjQ5OSAxMC42MTUzIDE1LjE5OTQgMTAuNjE1MyAxNC42MTg3VjE0LjM0MTNDMTAuNjE3OSAxMy43NTAyIDEwLjcyNiAxMy4zMDE2IDEwLjkzOTUgMTIuOTk1NkMxMS4xNTMgMTIuNjg5NiAxMS40NTY0IDEyLjUzNjYgMTEuODQ5NyAxMi41MzY2QzEyLjI0NTUgMTIuNTM2NiAxMi41NTAyIDEyLjY5MTYgMTIuNzYzNyAxMy4wMDE1QzEyLjk3NzMgMTMuMzExNCAxMy4wODQgMTMuNzY0NSAxMy4wODQgMTQuMzYwOFYxNC42MzgyQzEzLjA4MTQgMTUuMjI5MyAxMi45NzQ3IDE1LjY3OTIgMTIuNzYzNyAxNS45ODc4QzEyLjU1MjggMTYuMjk2NCAxMi4yNTA3IDE2LjQ1MDcgMTEuODU3NSAxNi40NTA3Wk0xNS44OTUgMTcuMzMzNVYxMy41OTEzTDE4LjE3NjIgMTcuMzMzNUgxOS4zNDgxVjExLjY0NkgxOC4xODAxVjE1LjM5NkwxNS44OTUgMTEuNjQ2SDE0LjcyMzFWMTcuMzMzNUgxNS44OTVaIiBmaWxsPSIjMzI0NTU4Ii8+Cjwvc3ZnPgo="},function(e,t,a){e.exports={container:"v7G9tmJJiZiPTjYulk-uk",selectContainer:"_2JbUzk0qVPxow2dv37yVtn",icon:"_3dvVq4Wja1r855of5vz4Vz",title:"_2iY4A3tvAD8fqWCX7YbXzW",desc:"_2Qz6RDrQb0PqcjJChLpZ51",uploadContainer:"_2FoLzMRXXZB1NAvaVl4r1y",uploadingContent:"M6eVRzcbprHTXlq43-qL",fileInfo:"_93kbv_HMX_E4Nb61U_YCJ",fileName:"_3Z0oHIHL6-rqZ80URIlaWt",uploadText:"_2ToMbKmVtBJZXrzMUJsa0A",progress:"_2kNei8kEcBntfnpeptiCS",uploadIcon:"_1QevqqsDTqOPEx8RnmcIon",none:"_3Th3hjQg4wakFUvbxe0l0F"}},function(e,t,a){"use strict";a(15);var r=a(20);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=[{title:"BASIC_INFORMATION",icon:"dashboard",component:r(a(2912)).default,required:!0}];t.default=n},function(e,a,r){"use strict";r(15);var n=r(20);r(12),r(109),r(18),r(16),r(98),r(10),r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(109),r(45),r(18),r(42),r(16),r(98),r(10),r(4),r(23),r(57),r(17);var l,o=n(r(96)),u=n(r(36)),c=n(r(37)),s=n(r(55)),i=n(r(56)),f=n(r(51)),d=n(r(0)),p=r(239),m=n(r(26)),v=n(r(74)),h=n(r(63)),E=n(r(135)),y=r(186),g=n(r(1680)),b=r(72),S=n(r(1681)),_=n(r(2914));function O(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,f.default)(e);if(t){var n=(0,f.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,i.default)(this,a)}}var C=(0,p.observer)(l=function(e){(0,s.default)(r,e);var a=O(r);function r(e){var n;if((0,u.default)(this,r),(n=a.call(this,e)).templateSettingsOpts=Object.entries(n.templateSettings).map((function(e){var a=(0,o.default)(e,2),r=a[0],n=a[1];return{value:r,image:n.logo,label:"Custom"===n.name?t("CUSTOM"):n.name,description:n.description}})),n.nameValidator=function(e,a,r){if(!a)return r();n.props.store.checkName({name:a,namespace:n.props.namespace,cluster:n.props.cluster}).then((function(a){if(a.exist)return r({message:t("NAME_EXIST_DESC"),field:e.field});r()}))},n.handleTemplateChange=function(e){(0,v.default)(n.formTemplate,"spec",(0,m.default)(n.templateSettings,"".concat(e,".settings"),{})),n.forceUpdate()},(0,h.default)(n.formTemplate.spec)){var l=Object.keys(n.templateSettings)[0],c=(0,E.default)(n.templateSettings[l].settings);(0,v.default)(n.formTemplate,"spec",c)}return n}return(0,c.default)(r,[{key:"render",value:function(){var e=this.props.formRef;return d.default.createElement(y.Form,{data:this.formTemplate,ref:e},d.default.createElement(y.Columns,null,d.default.createElement(y.Column,null,d.default.createElement(y.Form.Item,{label:t("NAME"),desc:t("NAME_DESC"),rules:[{required:!0,message:t("NAME_EMPTY_DESC")},{pattern:b.PATTERN_NAME,message:t("INVALID_NAME_DESC")},{validator:this.nameValidator}]},d.default.createElement(y.Input,{name:"metadata.name",autoFocus:!0,maxLength:63}))),d.default.createElement(y.Column,null,d.default.createElement(y.Form.Item,{label:t("DESCRIPTION"),desc:t("DESCRIPTION_DESC")},d.default.createElement(y.TextArea,{name:"metadata.annotations['kubesphere.io/description']",maxLength:256})))),d.default.createElement(y.Form.Item,{label:d.default.createElement("div",{className:_.default.templateLabel},d.default.createElement("h3",null,t("TEMPLATE")),d.default.createElement("p",null,t("CUSTOM_MONITORING_TEMPLATE_DESC")))},d.default.createElement(g.default,{name:"spec.title",className:_.default.templateList,options:this.templateSettingsOpts,onChange:this.handleTemplateChange})))}},{key:"templateSettings",get:function(){return(0,E.default)(S.default)}},{key:"formTemplate",get:function(){var e=this.props,t=e.formTemplate,a=e.module;return(0,m.default)(t,b.MODULE_KIND_MAP[a],t)}}]),r}(d.default.Component))||l;a.default=C},function(e,t,a){e.exports={container:"_9NWeMBAss3j4dAfPXgl7q",selected:"_23vK4ncmS9GHYl5k5YaN4J"}},function(e,t,a){e.exports={templateList:"KSUx0GMOtSywAxVTF3PGQ",templateLabel:"F1e1CyJJ9gzhTQLwN8RyP"}},function(e,a,r){"use strict";var n=r(20);r(12),r(109),r(210),r(11),r(6),r(200),r(29),r(48),r(16),r(9),r(13),r(10),r(4),r(17),r(38),r(7),r(32),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(109),r(210),r(249),r(45),r(11),r(6),r(200),r(160),r(29),r(28),r(48),r(42),r(16),r(34),r(15),r(9),r(13),r(10),r(4),r(24),r(193),r(17),r(38),r(7),r(32);var l=n(r(30)),o=n(r(58)),u=n(r(240)),c=n(r(787)),s=n(r(825)),i=n(r(2916)),f=n(r(2950)),d=n(r(26)),p=n(r(74)),m=n(r(435));function v(e,t){var a;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(a=function(e,t){if(!e)return;if("string"==typeof e)return h(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);"Object"===a&&e.constructor&&(a=e.constructor.name);if("Map"===a||"Set"===a)return Array.from(e);if("Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return h(e,t)}(e))||t&&e&&"number"==typeof e.length){a&&(e=a);var r=0,n=function(){};return{s:n,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var l,o=!0,u=!1;return{s:function(){a=e[Symbol.iterator]()},n:function(){var e=a.next();return o=e.done,e},e:function(e){u=!0,l=e},f:function(){try{o||null==a.return||a.return()}finally{if(u)throw l}}}}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,r=new Array(t);a0){if(new Set(r.map((function(e){return e.type}))).size!==r.length)return void n(t("POLICY_TYPE_DUPLICATED"));r.every((function(t){return e.checkItemValid(t)}))||n(t("EMPTY_POLICY_MESSAGE"))}n()},e.checkItemValid=function(e){return!(0,p.default)(e)&&Object.values(e).every((function(e){return void 0!==e&&""!==e}))},e}return(0,o.default)(r,[{key:"render",value:function(){var e=this.props,a=e.prefix,r="scaleUp"===e.type?"EXPANSION_STRATEGY":"SCALING_STRATEGY";return m.default.createElement("div",{className:v.default.wrapper},m.default.createElement("div",{className:v.default.title},t(r)),m.default.createElement("div",{className:v.default.contentWrapper},m.default.createElement(i.Columns,null,m.default.createElement(i.Column,null,m.default.createElement(i.Form.Item,{label:t("POLICY_PREFERENCE"),desc:t("POLICY_PREFERENCE_DESC")},m.default.createElement(i.Select,{name:"".concat(a,".selectPolicy"),options:[{label:t("TENDS_TO_SCALE_SIGNIFICANTLY"),value:"Max"},{label:t("TENDS_TO_EXPAND_SLIGHTLY"),value:"Min"},{label:t("SCALE_DISABLE"),value:"Disabled"}],defaultValue:"Max"}))),m.default.createElement(i.Column,null,m.default.createElement(i.Form.Item,{label:t("STABILIZATION_WINDOW_SECONDS"),desc:t("STABILIZATION_WINDOW_SECONDS_DESC")},m.default.createElement(d.default,{name:"".concat(a,".stabilizationWindowSeconds"),integer:!0,min:0})))),m.default.createElement("div",{className:v.default.polices},m.default.createElement(i.Form.Group,null,m.default.createElement(i.Form.Item,{rules:[{validator:this.policiesValidator,checkOnSubmit:!0}]},m.default.createElement(f.default,{name:"".concat(a,".policies"),itemType:"object",addText:t("ADD"),checkItemValid:this.checkItemValid},m.default.createElement(h.default,null)))))))}}]),r}(m.default.Component);a.default=y},function(e,t,a){e.exports={wrapper:"jFCoYhpnGhYRcS1QvI2uD",title:"_1gW9vDU9n16HaSVvFzrJvF",contentWrapper:"_1Q43wihGB-cA4A_oU381-F",polices:"_11tysHczkx95E3l_OS1yA9"}},function(e,a,r){"use strict";r(15);var n=r(20);r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(42),r(4),r(23),r(57),r(17);var l=n(r(30)),o=n(r(36)),u=n(r(37)),c=n(r(55)),s=n(r(56)),i=n(r(51)),f=r(186),d=n(r(1098)),p=n(r(799)),m=n(r(800)),v=n(r(0)),h=n(r(2941));function E(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,i.default)(e);if(t){var n=(0,i.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,s.default)(this,a)}}var y=[{label:t("PODS"),value:"Pods"},{label:t("PERCENT"),value:"Percent"}],g=function(e){(0,c.default)(r,e);var a=E(r);function r(e){var t;return(0,o.default)(this,r),(t=a.call(this,e)).triggerChange=(0,m.default)((function(){var e=t.state,a=e.type,r=e.value,n=e.periodSeconds;t.props.onChange({type:a,value:r,periodSeconds:n})}),300),t.handleChange=function(e,a){t.setState((0,l.default)({},a,e),(function(){return t.triggerChange()}))},t.state=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.type,a=e.value,r=e.periodSeconds;return{type:t,value:a,periodSeconds:r}}(e.value),t}return(0,u.default)(r,[{key:"componentDidMount",value:function(){this.triggerChange()}},{key:"render",value:function(){var e=this,a=this.state,r=a.value,n=a.type,l=a.periodSeconds;return v.default.createElement("div",{className:h.default.wrapper},v.default.createElement(d.default,{prefix:t("POLICY_TYPE")},v.default.createElement(f.Select,{name:"type",value:n,options:y,onChange:function(t){return e.handleChange(t,"type")}})),v.default.createElement(d.default,{prefix:t("EXPANSION_VALUE")},v.default.createElement(p.default,{name:"value",value:r,min:0,integer:!0,onChange:function(t){return e.handleChange(t,"value")}})),v.default.createElement(d.default,{prefix:t("ACTIVATION_TIME")},v.default.createElement(p.default,{name:"periodSeconds",integer:!0,min:0,value:l,onChange:function(t){return e.handleChange(t,"periodSeconds")}})))}}]),r}(v.default.Component);a.default=g,g.defaultProps={value:{},onChange:function(){}}},function(e,t,a){e.exports={wrapper:"M54xui62otMloHUrIMpt_",tip:"_3aRuzDuGBQbBlvi2Gucjkc"}},function(e,a,r){"use strict";r(15);var n=r(20);r(84),r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(84),r(42),r(4),r(23),r(57),r(17);var l,o,u,c=n(r(36)),s=n(r(37)),i=n(r(55)),f=n(r(56)),d=n(r(51)),p=n(r(0)),m=n(r(1)),v=n(r(816)),h=r(239),E=r(186),y=r(881),g=r(72),b=n(r(2943)),S=n(r(2944)),_=n(r(2945)),O=n(r(1367));function C(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,d.default)(e);if(t){var n=(0,d.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,f.default)(this,a)}}var T=(0,h.observer)((u=o=function(e){(0,i.default)(r,e);var a=C(r);function r(e){var t;(0,c.default)(this,r),(t=a.call(this,e)).handleGoBack=function(){var e=t.context.resetSubRoute;e&&e(),t.props.onCancel()},t.handleSubmit=function(e){var a=t.props.onSave,r=t.formRef.current;r&&r.validate((function(){var t=r.getData();a(t),e&&e()}))},t.renderTrigger=function(){var e;switch(t.state.triggerType){case"cron":e=p.default.createElement(b.default,null);break;case"prometheus":e=p.default.createElement(S.default,null);break;default:e=p.default.createElement(_.default,null)}return e},t.handleChange=function(e){t.setState({triggerType:e,formData:{}})},t.formRef=p.default.createRef();var n=["cron","prometheus"].includes(e.trigger.type);return t.state={formData:e.trigger,triggerType:e.trigger.type?n?e.trigger.type:"custom":"cron"},t}return(0,s.default)(r,[{key:"componentDidMount",value:function(){var e=this.props.onCancel,t=this.context.registerSubRoute;t&&t(this.handleSubmit,e)}},{key:"render",value:function(){var e=this.state,a=e.formData,r=e.triggerType;return p.default.createElement("div",{className:O.default.wrapper},p.default.createElement("div",{className:"h6"},p.default.createElement("a",{className:"custom-icon",onClick:this.handleGoBack},p.default.createElement(y.ReactComponent,null)),t("ADD_TRIGGER")),p.default.createElement("div",{className:O.default.contentWrapper},p.default.createElement("div",{className:O.default.card},p.default.createElement(E.Form,{data:a,ref:this.formRef},p.default.createElement("div",null,t("TRIGGER_TYPE")),p.default.createElement(E.Form.Item,null,p.default.createElement(v.default,{value:r,options:g.CREATE_TRIGGER_TYPE_OPTIONS,onChange:this.handleChange})),p.default.createElement("div",{className:"form-group"},this.renderTrigger())))))}}]),r}(p.default.Component),o.defaultProps={onSave:function(){},onCancel:function(){}},o.contextTypes={registerSubRoute:m.default.func,resetSubRoute:m.default.func},l=u))||l;a.default=T},function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(42),r(4),r(23),r(57),r(17);var l=n(r(36)),o=n(r(37)),u=n(r(55)),c=n(r(56)),s=n(r(51)),i=n(r(0)),f=r(186),d=r(479),p=n(r(1367));function m(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,s.default)(e);if(t){var n=(0,s.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,c.default)(this,a)}}var v=function(e){(0,u.default)(r,e);var a=m(r);function r(){var e;(0,l.default)(this,r);for(var n=arguments.length,o=new Array(n),u=0;u0){var t=new Map,a=[];return e.forEach((function(a){var r=a.name;if(r){var n=e.filter((function(e){return e.name===r}));t.set(r,n)}})),t.has("*")?a=(0,s.default)(t.get("*")):(t.forEach((function(e){var t=e.length&&e.filter((function(e){return"*"===e.namespace}));t.length>0?a.push(t[0]):a=a.concat(e)})),a)}return e},_={"devops.create":{on:function(e){var a=e.store,r=e.workspace,n=e.success,l=(0,c.default)(e,["store","workspace","success"]),o=m.default.open(b({onOk:function(e){var l=(0,f.default)(e,"spec.placement.cluster");a.create(e,{cluster:l,workspace:r}).then((function(){m.default.close(o),p.default.success({content:t("CREATE_SUCCESSFUL")}),n&&n(l)}))},formTemplate:{},modal:v.default,store:a,workspace:r,hideCluster:!globals.app.isMultiCluster},l))}},"devops.edit":{on:function(e){var a=e.store,r=e.detail,n=e.success,l=(0,c.default)(e,["store","detail","success"]),o=m.default.open(b({onOk:function(e){a.update(r,e).then((function(){m.default.close(o),p.default.success({content:t("UPDATE_SUCCESSFUL")}),n&&n()}))},modal:h.default,detail:r,store:a},l))}},"devops.edit.allowlist":{on:function(e){var a,r=e.store,n=e.detail,u=e.success,s=(0,c.default)(e,["store","detail","success"]),v=m.default.open(b({onOk:(a=(0,o.default)(l.default.mark((function e(a){var o,c,s,h,E;return l.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=(0,i.default)(a),c=(0,f.default)(o,"spec.argo.sourceRepos",[]),s=(0,f.default)(o,"spec.argo.destinations",[]),(h=c.filter((function(e){return"*"===e}))).length>0&&(0,d.default)(o,"spec.argo.sourceRepos",h),E=S(s),(0,d.default)(o,"spec.argo.destinations",E),e.next=9,r.editAllowlist(n,o);case 9:m.default.close(v),p.default.success({content:t("UPDATE_SUCCESSFUL")}),u&&u();case 12:case"end":return e.stop()}}),e)}))),function(e){return a.apply(this,arguments)}),modal:E.default,store:r},s))}},"devops.batch.delete":{on:function(e){var a,r=e.store,n=e.success,u=e.rowKey,s=(0,c.default)(e,["store","success","rowKey"]),i=r.list,f=i.data,d=i.selectedRowKeys,v=f.filter((function(e){return d.includes(e[u])})).map((function(e){return e.name})),h=m.default.open(b({onOk:(a=(0,o.default)(l.default.mark((function e(){var a;return l.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=[],f.forEach((function(e){d.includes(e[u])&&a.push(r.delete(e))})),e.next=4,Promise.all(a);case 4:m.default.close(h),p.default.success({content:t("DELETED_SUCCESSFULLY")}),r.setSelectRowKeys([]),n&&n();case 8:case"end":return e.stop()}}),e)}))),function(){return a.apply(this,arguments)}),title:1===v.length?t("DELETE_DEVOPS_PROJECT"):t("DELETE_MULTIPLE_DEVOPS_PROJECTS"),desc:1===v.length?t.html("DELETE_DEVOPS_PROJECT_TIP",{resource:v.join(", ")}):t.html("DELETE_DEVOPS_PROJECT_TIP_PL",{resource:v.join(", ")}),resource:v.join(", "),modal:y.default,store:r},s))}}};a.default=_},function(e,a,r){"use strict";var n=r(20);r(12),r(11),r(31),r(6),r(18),r(16),r(98),r(9),r(13),r(10),r(4),r(23),r(17),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(45),r(11),r(31),r(6),r(18),r(28),r(42),r(16),r(34),r(15),r(98),r(9),r(13),r(10),r(4),r(23),r(57),r(17),r(7);var l,o,u,c=n(r(96)),s=n(r(30)),i=n(r(36)),f=n(r(37)),d=n(r(55)),p=n(r(56)),m=n(r(51)),v=r(186),h=n(r(787)),E=n(r(814)),y=n(r(26)),g=n(r(63)),b=n(r(972)),S=r(239),_=n(r(1)),O=n(r(0)),C=n(r(445)),T=r(72),R=r(916),D=n(r(528)),N=n(r(2963));function k(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function I(e){for(var t=1;t0){var n=[];a.forEach((function(e){return n.includes(e)?r({message:t("CODE_REPOSITORY_EXIST_DESC")}):e?void n.push(e):r({message:t("REPO_EMPTY_DESC")})}))}r()},e.destinationsValidator=function(e,a,r){if(!a)return r();if(a.length>0){var n=[];a.forEach((function(e){var a=n.find((function(t){return t.namespace===e.namespace&&t.cluster===e.name}));return(0,S.default)(a)?e.name&&!e.namespace?r({message:t("PROJECT_NOT_SELECT_DESC")}):void n.push({namespace:e.namespace,cluster:e.name}):r({message:t("DEPLOYMENT_LOCATION_EXIST_DESC")})}))}r()},e}return(0,i.default)(r,[{key:"componentDidMount",value:function(){this.init()}},{key:"render",value:function(){var e=this.props,a=e.visible,r=e.onCancel,n=e.onOk,l=e.devops,o=e.cluster;return m.default.createElement(y.default.Form,{width:960,title:t("EDIT_ALLOWLIST"),data:this.state.formTemplate,onCancel:r,onOk:n,visible:a,formRef:this.formRef},this.state.isLoading?m.default.createElement(E.Loading,{spinning:this.state.isLoading},m.default.createElement(g.default,{desc:"NO_DATA"})):m.default.createElement(m.default.Fragment,null,m.default.createElement(E.Form.Item,{label:t("CODE_REPO_PL"),rules:[{validator:this.sourceReposValidator}]},m.default.createElement(v.default,{name:"spec.argo.sourceRepos",addText:t("ADD"),itemType:"string",checkItemValid:this.checkItemValid},m.default.createElement(R.default,{devops:l,cluster:o}))),m.default.createElement(E.Form.Item,{label:t("DEPLOYMENT_LOCATION_PL"),rules:[{validator:this.destinationsValidator}]},m.default.createElement(v.default,{name:"spec.argo.destinations",itemType:"object",addText:t("ADD")},m.default.createElement(T.default,{clusters:this.state.clusters,formtemplate:this.state.formTemplate})))))}}]),r}(m.default.Component);a.default=I,I.propTypes={formTemplate:h.default.object,visible:h.default.bool,isSubmitting:h.default.bool,onOk:h.default.func,onCancel:h.default.func},I.defaultProps={formTemplate:{},visible:!1,isSubmitting:!1,onOk:function(){},onCancel:function(){}}},function(e,a,r){"use strict";var n=r(20);r(12),r(5),r(11),r(31),r(6),r(18),r(16),r(9),r(13),r(10),r(4),r(23),r(17),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(45),r(5),r(11),r(31),r(6),r(18),r(28),r(42),r(16),r(34),r(15),r(9),r(13),r(10),r(4),r(22),r(23),r(57),r(17),r(7);var l=n(r(61)),o=n(r(43)),u=n(r(30));r(41);var c,s,i,f,d=n(r(44)),p=n(r(65)),m=n(r(36)),v=n(r(37)),h=n(r(88)),E=n(r(55)),y=n(r(56)),g=n(r(51)),b=n(r(49)),S=(n(r(66)),r(186)),_=n(r(867)),O=n(r(26)),C=n(r(63)),T=n(r(241)),R=n(r(74)),D=r(14),N=r(239),k=n(r(0)),I=n(r(439)),P=r(52),A=n(r(1689));function w(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function M(e){for(var t=1;t0&&void 0!==n[0]?n[0]:{},"*"!==(r=(0,P.inCluster2Default)(e.cluster))){t.next=6;break}e.projectStore.list.update({data:[],isLoading:!1}),t.next=9;break;case 6:if(!r||"*"===r){t.next=9;break}return t.next=9,e.projectStore.fetchList(M(M({cluster:r},a),{},{type:"user"}));case 9:case"end":return t.stop()}}),t)}))),e.projectOptionRenderer=function(e){return k.default.createElement("span",{className:A.default.option},e.isFedManaged?k.default.createElement("img",{className:A.default.indicator,src:"/assets/cluster.svg"}):k.default.createElement(S.Icon,{name:"project"}),e.label,e.isFedManaged&&k.default.createElement(S.Tooltip,{content:t("MULTI_CLUSTER_PROJECT_NOT_FOR_CD")},k.default.createElement(S.Icon,{className:A.default.tip,name:"question"})))},(0,p.default)(e,"handleClusterChange",f,(0,h.default)(e)),e.handleChange=function(t){e.props.onChange(M({},t))},e.checkDestinationsValid=function(e){return!(0,C.default)(e)&&e.name&&e.namespace&&e.server},e}return(0,v.default)(n,[{key:"componentDidMount",value:function(){this.init()}},{key:"init",value:(a=(0,d.default)(o.default.mark((function e(){var t,a,r,n,l,u;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=this.destinations[this.props.index]||{},a=t.name,r=t.namespace,!a){e.next=10;break}return l=this.clusters.find((function(e){return e.value===a}))||{},this.cluster=l.value,(0,R.default)(this.state.formData,"name",(0,O.default)(this.clusters,l.value)),(0,R.default)(this.state.formData,"server",(0,O.default)(this.clusters,l.server)),e.next=8,this.fetchNamespaces();case 8:u=this.namespaces.find((function(e){return e.value===r})),(0,R.default)(this.state.formData,"namespace",null!==(n=null==u?void 0:u.value)&&void 0!==n?n:"");case 10:case"end":return e.stop()}}),e,this)}))),function(){return a.apply(this,arguments)})},{key:"render",value:function(){var e,a=this.props.value;return k.default.createElement(_.default,{value:a,onChange:this.handleChange},k.default.createElement(S.Select,{name:"name",key:null===(e=this.props.value)||void 0===e?void 0:e.name,placeholder:t("CLUSTER"),options:this.clusters,onChange:this.handleClusterChange,prefixIcon:k.default.createElement(S.Icon,{name:"cluster",size:16}),showTip:!0}),k.default.createElement(S.Select,{name:"namespace",placeholder:t("PROJECT"),options:this.namespaces,pagination:(0,T.default)(this.projectStore.list,["page","limit","total"]),isLoading:this.projectStore.list.isLoading,onFetch:this.fetchNamespaces,valueRenderer:this.projectOptionRenderer,optionRenderer:this.projectOptionRenderer,searchable:!0}))}},{key:"clusters",get:function(){return this.props.clusters.map((function(e){return M(M({},e),{},{label:k.default.createElement("span",null,(0,P.showNameAndAlias)(e.label,"cluster"))})}))}},{key:"destinations",get:function(){return(0,O.default)(this.props.formtemplate,"spec.argo.destinations",[])}},{key:"namespaces",get:function(){var e=this.projectStore.list.data.filter((function(e){return"Terminating"!==e.status})).map((function(e){return{label:(0,P.showNameAndAlias)(e),value:e.name,disabled:e.isFedManaged,isFedManaged:e.isFedManaged}}));return this.cluster?[j].concat((0,l.default)(e)):e}}]),n}(k.default.Component),i=(0,b.default)(s.prototype,"cluster",[D.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),(0,b.default)(s.prototype,"clusters",[D.computed],Object.getOwnPropertyDescriptor(s.prototype,"clusters"),s.prototype),f=(0,b.default)(s.prototype,"handleClusterChange",[D.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(){var t=(0,d.default)(o.default.mark((function t(a){var r,n;return o.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.cluster=a,t.next=3,e.fetchNamespaces();case 3:r=e.clusters.find((function(e){return e.value===a})).server,n=e.namespaces[0].value,e.props.onChange({name:a,server:r,namespace:n});case 6:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()}}),c=s))||c;a.default=x},function(e,a,r){"use strict";var n=r(20);r(12),r(5),r(11),r(6),r(18),r(16),r(9),r(13),r(10),r(4),r(23),r(17),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(45),r(5),r(11),r(6),r(18),r(28),r(42),r(16),r(34),r(15),r(9),r(13),r(10),r(4),r(22),r(23),r(57),r(17),r(7);var l=n(r(43)),o=n(r(61)),u=n(r(30));r(41);var c=n(r(44)),s=n(r(36)),i=n(r(37)),f=n(r(55)),d=n(r(56)),p=n(r(51)),m=r(186),v=n(r(241)),h=n(r(0)),E=n(r(1109)),y=n(r(1689));function g(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function b(e){for(var t=1;t-1&&c[i])){e.next=14;break}return e.abrupt("return",l({message:t("PROJECT_NAME_EXISTS_IN_CLUSTER",{cluster:c[i].name}),field:a.field}));case 14:l();case 15:case"end":return e.stop()}}),e)})));return function(t,a,r){return e.apply(this,arguments)}}(),n.valueRenderer=function(e){return P.default.createElement(S.default,{cluster:e.cluster,size:"small",noStatus:!0})},n.optionRenderer=function(e){return P.default.createElement(S.default,{cluster:e.cluster,size:"small",theme:"light",noStatus:!0})},n.handleClusterChange=function(e){if((0,R.default)(n.props.formTemplate,"spec.placement.clusters",(0,D.default)(e,"name")),n.nameRef&&n.nameRef.current){var t="metadata.name";n.formRef&&n.formRef.current&&!(0,T.default)(n.formRef.current.state.errors)&&n.formRef.current.resetValidateResults(t),n.nameRef.current.validate((0,l.default)({},t,(0,C.default)(n.props.formTemplate,t)))}},n.store=e.store,n.formRef=P.default.createRef(),n.nameRef=P.default.createRef(),n}return(0,m.default)(r,[{key:"renderClusters",value:function(){return P.default.createElement(g.Form.Group,{label:t("CLUSTER_PL"),desc:t("PROJECT_CLUSTER_SETTINGS_DESC")},P.default.createElement(g.Form.Item,{rules:[{required:!0,message:t("CLUSTER_EMPTY_DESC")}]},P.default.createElement(_.default,{name:"spec.placement.clusters",addText:t("ADD_CLUSTER"),itemType:"object",onChange:this.handleClusterChange},P.default.createElement(O.default,null,P.default.createElement(g.Select,{name:"name",placeholder:" ",className:w.default.cluster,options:this.clusters,valueRenderer:this.valueRenderer,optionRenderer:this.optionRenderer,showTip:!0})))))}},{key:"render",value:function(){var e=this.props,a=e.visible,r=e.formTemplate,n=e.onOk,l=e.onCancel,o=e.isSubmitting;return P.default.createElement(b.default.Form,{width:960,formRef:this.formRef,bodyClassName:w.default.body,data:r,onCancel:l,onOk:n,visible:a,closable:!1,isSubmitting:o,hideHeader:!0},P.default.createElement("div",{className:w.default.header},P.default.createElement("img",{src:"/assets/project-create.svg",alt:""}),P.default.createElement("div",{className:w.default.title},P.default.createElement("div",null,t("CREATE_MULTI_CLUSTER_PROJECT")),P.default.createElement("p",null,t("CREATE_MULTI_CLUSTER_PROJECT_DESC")))),P.default.createElement("div",{className:w.default.content},P.default.createElement(g.Columns,null,P.default.createElement(g.Column,null,P.default.createElement(g.Form.Item,{label:t("NAME"),desc:t("SERVICE_NAME_DESC"),ref:this.nameRef,rules:[{required:!0,message:t("NAME_EMPTY_DESC")},{pattern:A.PATTERN_SERVICE_NAME,message:t("INVALID_NAME_DESC",{message:t("SERVICE_NAME_DESC")})},{validator:this.nameValidator}]},P.default.createElement(g.Input,{name:"metadata.name",autoFocus:!0,maxLength:63}))),P.default.createElement(g.Column,null,P.default.createElement(g.Form.Item,{label:t("ALIAS"),desc:t("ALIAS_NAME_DESC"),rules:[{pattern:A.PATTERN_ALIAS_NAME,message:t("INVALID_ALIAS_NAME_DESC")}]},P.default.createElement(g.Input,{name:"metadata.annotations['kubesphere.io/alias-name']",maxLength:63})))),P.default.createElement(g.Columns,null,P.default.createElement(g.Column,null,P.default.createElement(g.Form.Item,{label:t("DESCRIPTION"),desc:t("DESCRIPTION_DESC")},P.default.createElement(g.TextArea,{name:"metadata.annotations['kubesphere.io/description']",maxLength:256}))),P.default.createElement(g.Column,null)),this.renderClusters()))}},{key:"networkOptions",get:function(){return[{label:t("OFF"),value:""},{label:t("ON"),value:"enabled"}]}},{key:"clusters",get:function(){return this.props.clusters.map((function(e){return{label:e.name,value:e.name,cluster:e,disabled:!e.isReady}}))}}]),r}(P.default.Component),i.propTypes={formTemplate:I.default.object,visible:I.default.bool,isSubmitting:I.default.bool,clusters:I.default.array,onOk:I.default.func,onCancel:I.default.func},i.defaultProps={formTemplate:{},visible:!1,isSubmitting:!1,onOk:function(){},onCancel:function(){}},s=f,(0,y.default)(s.prototype,"clusters",[N.computed],Object.getOwnPropertyDescriptor(s.prototype,"clusters"),s.prototype),c=s))||c;a.default=L},function(e,t,a){e.exports={body:"_2YFT-UtUl19RnIcDCBLrSX",header:"_2cYVq3DxoJtlCWF7n20jG",title:"_3JeOv7o2Iknp2JVawu8F0D",content:"_3FxY_7mBEqpROSZi3lNiqU",cluster:"ZBb_XLUwlhmbTirefNnWq",toolmessage:"_2Zd1xHbMCz9tv6jdf1MAn2"}},function(e,t,a){"use strict";a(15);var r=a(20);a(4),a(23),a(17),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(45),a(42),a(4),a(23),a(57),a(17);var n=r(a(315)),l=r(a(58)),o=r(a(36)),u=r(a(37)),c=r(a(55)),s=r(a(56)),i=r(a(51)),f=r(a(0)),d=r(a(1)),p=r(a(1123)),m=r(a(2976));function v(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,i.default)(e);if(t){var n=(0,i.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,s.default)(this,a)}}var h=function(e){(0,c.default)(a,e);var t=v(a);function a(){return(0,o.default)(this,a),t.apply(this,arguments)}return(0,u.default)(a,[{key:"render",value:function(){var e=this.props,t=e.module,a=(0,l.default)(e,["module"]);return f.default.createElement(p.default,(0,n.default)({title:"EDIT_SETTINGS",icon:"storage",module:t,forms:this.forms},a))}},{key:"forms",get:function(){return m.default[this.props.module]}}]),a}(f.default.Component);t.default=h,h.propTypes={module:d.default.string},h.defaultProps={module:"deployments"}},,,,function(e,t,a){"use strict";a(15);var r=a(20);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(a(1691)),l=r(a(1692)),o=r(a(1693)),u=r(a(1694)),c=r(a(2977)),s=r(a(2985)),i=r(a(1695)),f={deployments:[{icon:"dashboard",name:"updateStrategy",title:"UPDATE_STRATEGY",component:o.default},{icon:"container",name:"podTemplate",title:"CONTAINER_PL",component:l.default},{icon:"storage",name:"volumeSettings",title:"STORAGE",component:u.default},{icon:"group",name:"deploymentMode",title:"POD_SCHEDULING_RULES",component:n.default},{icon:"forbid-right-duotone",name:"podMode",title:"POD_GRACE_PERIOD",component:i.default},{title:"CLUSTER_DIFF",icon:"blue-green-deployment",name:"Diff Settings",component:c.default}],statefulsets:[{icon:"dashboard",name:"updateStrategy",title:"UPDATE_STRATEGY",component:o.default},{icon:"container",name:"podTemplate",title:"CONTAINER_PL",component:l.default},{icon:"forbid-right-duotone",name:"podMode",title:"POD_GRACE_PERIOD",component:i.default},{icon:"storage",name:"volumeSettings",title:"STORAGE",component:u.default},{title:"CLUSTER_DIFF",icon:"blue-green-deployment",name:"Diff Settings",component:c.default}],service:[{icon:"network-router",name:"editService",title:"SERVICE_SETTINGS",component:s.default},{title:"CLUSTER_DIFF",icon:"blue-green-deployment",name:"Diff Settings",component:c.default}]};t.default=f},function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(6),r(84),r(18),r(16),r(4),r(23),r(17),r(85),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(6),r(84),r(18),r(28),r(42),r(16),r(4),r(23),r(57),r(17),r(85),r(7);var l=n(r(315)),o=n(r(36)),u=n(r(37)),c=n(r(55)),s=n(r(56)),i=n(r(51)),f=n(r(0)),d=n(r(26)),p=n(r(63)),m=n(r(321)),v=n(r(74)),h=r(72),E=r(186),y=n(r(1333)),g=n(r(1611)),b=n(r(1612)),S=n(r(1613)),_=n(r(1614)),O=n(r(1615)),C=n(r(2978)),T=n(r(2980)),R=n(r(1331)),D=n(r(2982));function N(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,i.default)(e);if(t){var n=(0,i.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,s.default)(this,a)}}var k=function(e){(0,c.default)(r,e);var a=N(r);function r(){var e;(0,o.default)(this,r);for(var t=arguments.length,n=new Array(t),l=0;l0){var n=[];a.forEach((function(e){return e.name&&e.port?n.includes(e.name)?r({message:t("PORT_INPUT_DESC")}):e.name&&(e.name.length>63||!S.PATTERN_PORT_NAME.test(e.name))?r({message:t("PORT_NAME_DESC")}):void n.push(e.name):r({message:t("INVALID_PORT")})}))}r()},e.labelsValidator=function(e,a,r){return a?(0,m.default)(a)?r({message:t("ENTER_SELECTOR_TIP")}):(0,b.isValidLabel)(a)?r():r({message:t("LABEL_FORMAT_DESC")}):r()},e}return(0,u.default)(r,[{key:"renderTypeSelect",value:function(){return v.default.createElement(h.Form.Item,{label:t("INTERNAL_ACCESS_MODE")},v.default.createElement(E.default,{className:"margin-b12",value:this.state.serviceType,onChange:this.handleTypeChange,options:this.types}))}},{key:"renderLabelSelector",value:function(){var e=this.props.isFederated;return v.default.createElement(h.Form.Item,{label:t("WORKLOAD_SELECTOR"),rules:[{required:!0,message:t("ENTER_SELECTOR_TIP")},{validator:this.labelsValidator}]},v.default.createElement(_.default,{name:e?"spec.template.spec.selector":"spec.selector",cluster:this.props.cluster,namespace:this.namespace,addText:t("ADD"),isFederated:e,onChange:this.handleLabelsChange}))}},{key:"renderPorts",value:function(){var e=this.props.isFederated;return v.default.createElement(h.Form.Group,{label:t("PORT_PL"),desc:t("SERVICE_PORTS_DESC")},v.default.createElement(h.Form.Item,{rules:[{required:!0,message:t("PORT_EMPTY")},{validator:this.portsValidator,checkOnSubmit:!0}]},v.default.createElement(y.default,{name:e?"spec.template.spec.ports":"spec.ports",itemType:"object",addText:t("ADD_PORT")},v.default.createElement(g.default,null))))}},{key:"render",value:function(){var e=this.props,t=e.formRef,a=e.formProps;return v.default.createElement("div",{className:O.default.wrapper},v.default.createElement(h.Form,(0,l.default)({data:this.formTemplate,ref:t},a),this.renderTypeSelect(),this.renderLabelSelector(),this.renderPorts()))}},{key:"formTemplate",get:function(){var e=this.props,t=e.formTemplate,a=e.module;return(0,f.default)(t,S.MODULE_KIND_MAP[a],t)}},{key:"namespace",get:function(){return(0,f.default)(this.formTemplate,"metadata.namespace")}},{key:"types",get:function(){return[{icon:"cluster",label:t("VIRTUAL_IP_TITLE"),description:t("VIRTUAL_IP_DESC"),value:"virtualIP"},{icon:"blockchain",label:t("INTERNAL_DOMAIN_NAME"),description:t("INTERNAL_DOMAIN_NAME_DESC"),value:"headlessSelector"}]}}]),r}(v.default.Component);a.default=T},function(e,t,a){e.exports={wrapper:"_1d8R2wC-iPUk0mJ0gGdi9g",contentWrapper:"_3YpkzmM-waCXVs2m6v7Jd1",card:"_2TCiSZqKH5Kv9Jot5mNmTY",tabs:"_3CrPTt4KFbhRsB2wWRMg88",label:"_2GCaqlVoPz2mC7DU580ae2"}},function(e,t,a){e.exports={empty:"_3g5fKDY3mes3tmmqImZr6D"}},function(e,t,a){"use strict";a(15);var r=a(20);a(18),a(16),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(18),a(16);var n=r(a(135)),l=r(a(26)),o=r(a(242)),u={namespaces:function(e){var t=(0,l.default)(e,"metadata.name"),a=(0,l.default)(e,"metadata.annotations"),r=(0,l.default)(e,"spec.placement"),u=(0,l.default)(e,"spec.placement.clusters",[]),c=(0,l.default)(e,'metadata.labels["kubesphere.io/workspace"]'),s=(0,n.default)(e);(0,o.default)(s,"apiVersion"),(0,o.default)(s,"kind"),(0,o.default)(s,"metadata.name"),(0,o.default)(s,"spec");var i=u.map((function(e){return{clusterName:e.name,clusterOverrides:[{path:"/metadata/annotations",value:a}]}}));return{apiVersion:"types.kubefed.io/v1beta1",kind:"FederatedNamespace",metadata:{name:t,namespace:t,labels:{"kubesphere.io/workspace":c},annotations:a},spec:{placement:r,template:s,overrides:i}}}};t.default=u},function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(187),r(18),r(97),r(16),r(9),r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(187),r(18),r(97),r(42),r(16),r(9),r(4),r(23),r(57),r(17);var l,o=n(r(61)),u=n(r(36)),c=n(r(37)),s=n(r(55)),i=n(r(56)),f=n(r(51)),d=n(r(49)),p=n(r(0)),m=r(186),v=n(r(829)),h=n(r(867)),E=r(14),y=n(r(787)),g=n(r(74)),b=n(r(861)),S=n(r(26)),_=n(r(814)),O=n(r(2992));function C(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,f.default)(e);if(t){var n=(0,f.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,i.default)(this,a)}}var T=(l=function(e){(0,s.default)(r,e);var a=C(r);function r(){var e;(0,u.default)(this,r);for(var t=arguments.length,n=new Array(t),l=0;l0&&void 0!==arguments[0]?arguments[0]:"";a.setState({configError:e})},a.form=N.default.createRef(),a.editor=N.default.createRef(),a.state={isChecked:JSON.parse((0,C.default)(a.template,"spec.values.controller.integrateKubeSphere.tracing",!1)),configError:"",isCodeMode:!1,versionOption:[],version:""},a}return(0,y.default)(n,[{key:"componentDidMount",value:(a=(0,v.default)(u.default.mark((function e(){return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getNginxVersion();case 2:case"end":return e.stop()}}),e,this)}))),function(){return a.apply(this,arguments)})},{key:"renderYamlEdit",value:function(){return N.default.createElement("div",{className:G.default.codeWrapper},N.default.createElement(P.default,{ref:this.editor,value:this.template}))}},{key:"renderForm",value:function(){var e=this.props,a=e.cluster,r=e.isEdit,n=this.state,l=n.isChecked,o=n.versionOption,u=n.version;return N.default.createElement("div",{className:G.default.wrapper},N.default.createElement(I.Form,{ref:this.form,data:this.template},N.default.createElement(I.Form.Item,{label:t("NGINX_INGRESS_VERSION")},N.default.createElement(I.Select,{options:o,disabled:r,value:u,onChange:this.handleVersionChange})),N.default.createElement(I.Form.Item,{label:"IngressClassName",desc:t("NAME_DESC"),rules:[{required:!0,message:t("NAME_EMPTY_DESC")},{pattern:j.PATTERN_NAME,message:t("INVALID_NAME_DESC")},{validator:this.nameValidator}]},N.default.createElement(I.Input,{name:"spec.values.controller.ingressClassResource.name",maxLength:63,onChange:this.handleIngressClassNameChange})),N.default.createElement(I.Form.Item,null,N.default.createElement(F.default,{name:"spec.values.controller.replicaCount",template:this.template,replicas:(0,C.default)(this.template,"spec.values.controller.replicaCount")})),N.default.createElement(I.Form.Item,{label:t("ACCESS_MODE"),className:G.default.types},N.default.createElement(I.RadioGroup,{name:"spec.values.controller.service.type",mode:"button",buttonWidth:155,onChange:this.handleTypeChange,size:"small"},N.default.createElement(I.RadioButton,{value:"NodePort"},"NodePort"),N.default.createElement(I.RadioButton,{value:"LoadBalancer"},"LoadBalancer"))),N.default.createElement("div",{className:G.default.content},globals.app.hasClusterModule(a,"servicemesh")&&N.default.createElement("div",{className:G.default.wrapperContent},N.default.createElement("div",{className:G.default.toggle},N.default.createElement(I.Toggle,{checked:l,onChange:this.handleToggleChange}),t("TRACING")),N.default.createElement("div",{className:G.default.toggleTip},t.html("GATEWAY_TRACING_TIP"))),"LoadBalancer"===(0,C.default)(this.template,"spec.values.controller.service.type")&&N.default.createElement(N.default.Fragment,null,this.renderLoadBalancerSupport(),N.default.createElement("div",{className:G.default.wrapperContent},N.default.createElement(I.Form.Item,{label:t("ANNOTATION_PL")},N.default.createElement(L.default,{controlled:!0,options:(0,x.toJS)(this.options),className:G.default.objectBg,name:"spec.values.controller.service.annotations",addText:t("ADD")})))),N.default.createElement("div",{className:G.default.wrapperContent},N.default.createElement(I.Form.Item,{label:t("CONFIGURATION_OPTIONS")},N.default.createElement(M.default,{className:G.default.objectBg,name:"spec.values.controller.config",addText:t("ADD"),controlled:!0,onError:this.handleConfigError}))))))}},{key:"render",value:function(){var e=this.props,a=e.visible,r=e.onCancel,n=e.isSubmitting,l=this.state,o=l.configError,u=l.isCodeMode;return N.default.createElement(A.default,{width:960,title:this.renderTitle(),onCancel:r,visible:a,bodyClassName:G.default.modalBody,headerClassName:G.default.modalHead,closable:!1,operations:this.operations(),hideFooter:!0},N.default.createElement("div",{className:G.default.body},u?this.renderYamlEdit():this.renderForm()),N.default.createElement("div",{className:G.default.footer},N.default.createElement(I.Button,{onClick:r,loading:n,disabled:n},t("CANCEL")),N.default.createElement(I.Button,{type:"control",onClick:this.handleOk,loading:n,disabled:n||""!==o},t("OK"))))}}]),n}(N.default.Component),p.propTypes={template:k.default.object,visible:k.default.bool,onOk:k.default.func,onCancel:k.default.func,isSubmitting:k.default.bool},p.defaultProps={template:{},visible:!1,isSubmitting:!1,onOk:function(){},onCancel:function(){}},s=m,i=(0,O.default)(s.prototype,"template",[x.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return this.props.detail||{}}}),f=(0,O.default)(s.prototype,"store",[x.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return this.props.store}}),d=(0,O.default)(s.prototype,"options",[x.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),c=s))||c;a.default=H},function(e,t,a){"use strict";a(15);var r=a(20);a(5),a(16),a(4),a(23),a(17),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(45),a(5),a(42),a(16),a(4),a(23),a(57),a(17);var n=r(a(36)),l=r(a(37)),o=r(a(55)),u=r(a(56)),c=r(a(51)),s=r(a(0)),i=r(a(74)),f=r(a(800)),d=a(186),p=a(239),m=r(a(1306)),v=r(a(2996));function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,c.default)(e);if(t){var n=(0,c.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,u.default)(this,a)}}var E=function(e){(0,o.default)(a,e);var t=h(a);function a(){var e;(0,n.default)(this,a);for(var r=arguments.length,l=new Array(r),o=0;o0&&void 0!==arguments[0]?arguments[0]:{},a=t.props,r=a.workspace,n=a.namespace,l=a.devops;t.userStore.fetchList(R({name:t.state.name,workspace:n||l?r:void 0},e))},t.handleSearch=function(e){t.setState({name:e},t.fetchData)},t.handleSelect=function(e,a){t.setState((function(t){var r=t.members,n=t.newMembers;return{members:[].concat((0,c.default)(r),[e]),newMembers:[].concat((0,c.default)(n),[{username:e,roleRef:a}])}}))},t.handleSubmit=function(){t.props.onOk(t.state.newMembers)},t.userStore=new _.default,t.memberStore=new _.default,t.state={members:[],newMembers:[]},t}return(0,f.default)(r,[{key:"componentDidMount",value:function(){var e=this,t=this.props,a=t.cluster,r=t.workspace,n=t.namespace,l=t.devops;this.memberStore.fetchList({limit:-1,cluster:a,workspace:r,namespace:null!=n?n:l}).then((function(){e.setState({members:e.memberStore.list.data.map((function(e){return e.name}))})}))}},{key:"render",value:function(){var e=this,a=this.props,r=a.visible,n=a.onCancel,l=a.roles,o=a.title,u=a.desc,c=a.searchPlaceholder,s=this.state.members,i=(0,E.toJS)(this.userStore.list),f=i.data,d=void 0===f?[]:f,p=i.total,m=i.page,h=i.isLoading;return v.default.createElement(b.default,{width:691,icon:"pen",onCancel:n,onOk:this.handleSubmit,visible:r,bodyClassName:C.default.modalBody,hideHeader:!0},v.default.createElement("div",{className:C.default.body},v.default.createElement("div",{className:C.default.title},v.default.createElement("div",{className:"h4"},o||t("INVITE_MEMBER")),v.default.createElement("p",null,u||t("INVITE_MEMBER_DESC"))),v.default.createElement("div",{className:C.default.content},v.default.createElement(g.InputSearch,{placeholder:c||t("INVITE_MEMBER_SEARCH_PLACEHOLDER"),onSearch:this.handleSearch}),v.default.createElement("div",{className:C.default.results},v.default.createElement(S.default,{data:d,total:p,page:m,loading:h,onFetch:this.fetchData},d.map((function(t){return v.default.createElement(O.default,{key:t.name,user:t,roles:l,selected:s.includes(t.name),onSelect:e.handleSelect})})))))))}}]),r}(v.default.Component),o.propTypes={roles:h.default.array,visible:h.default.bool,workspace:h.default.string,namespace:h.default.string,cluster:h.default.string,title:h.default.string,desc:h.default.string,searchPlaceholder:h.default.string,onOk:h.default.func,onCancel:h.default.func},o.defaultProps={roles:[],visible:!1,onOk:function(){},onCancel:function(){}},l=u))||l;a.default=N},function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(18),r(16),r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(18),r(42),r(16),r(4),r(23),r(57),r(17);var l=n(r(36)),o=n(r(37)),u=n(r(55)),c=n(r(56)),s=n(r(51)),i=n(r(26)),f=n(r(0)),d=n(r(1)),p=r(186),m=n(r(788)),v=n(r(1697));function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,s.default)(e);if(t){var n=(0,s.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,c.default)(this,a)}}var E=function(e){(0,u.default)(r,e);var a=h(r);function r(){var e;(0,l.default)(this,r);for(var t=arguments.length,n=new Array(t),o=0;o0;if((0,S.default)(l,"status.tunnel")===(0,S.default)(l,"status.allocations"))return r();var u=l.workspace;return o&&u&&a!==u?r({message:t("IPPOOL_ASSIGN_WORKSPACE_CHANGE_WARNING"),field:e.field}):o&&a!==P?r({message:t("IPPOOL_ASSIGN_WORKSPACE_ALLOCATED_WARNING"),field:e.field}):void r()},n.handleSubmit=function(e){var t=n.props.onOk,a={},r=(0,S.default)(e,"metadata.labels['kubesphere.io/workspace']");r===P?((0,O.default)(a,"metadata.labels['kubesphere.io/workspace']",null),(0,O.default)(a,"metadata.labels['ippool.network.kubesphere.io/default']","")):((0,O.default)(a,"metadata.labels['kubesphere.io/workspace']",r||null),(0,O.default)(a,"metadata.labels['ippool.network.kubesphere.io/default']",null)),t(a)},n.formTemplate=(0,b.default)((0,C.toJS)(e.detail._originData)),n.workspaceStore=new N.default,n}return(0,m.default)(r,[{key:"componentDidMount",value:function(){this.props.detail.isDefault&&(0,O.default)(this.formTemplate,"metadata.labels['kubesphere.io/workspace']",P),this.workspaceStore.fetchList({cluster:this.props.cluster})}},{key:"getWorkspaces",value:function(){return[{label:t("ALL"),value:P}].concat((0,u.default)(this.workspaceStore.list.data.map((function(e){return{label:(0,k.showNameAndAlias)(e.name,"workspace"),value:e.name}}))))}},{key:"render",value:function(){var e=this.props.detail,a=(0,S.default)(e,"status.allocations",0)>0,r=e.workspace;return D.default.createElement(g.default.Form,(0,o.default)({title:t("ASSIGN_WORKSPACE"),icon:"enterprise",width:691,data:this.formTemplate},this.props,{onOk:this.handleSubmit}),a&&r?D.default.createElement(y.Alert,{className:"margin-b12",type:"warning",message:t("IPPOOL_ASSIGN_WORKSPACE_ALLOCATED_WARNING")}):D.default.createElement(y.Alert,{className:"margin-b12",type:"info",message:t("IPPOOL_ASSIGN_WORKSPACE_DESC")}),D.default.createElement(y.Form.Item,{label:t("WORKSPACE"),desc:t("SELECT_WORKSPACE_DESC"),rules:[{validator:this.workspaceValidator}]},D.default.createElement(y.Select,{name:"metadata.labels['kubesphere.io/workspace']",options:this.getWorkspaces(),pagination:(0,_.default)(this.workspaceStore.list,["page","total","limit"]),isLoading:this.workspaceStore.list.isLoading,onFetch:this.fetchWorkspaces,searchable:!0,clearable:!0,placeholder:" "})))}}]),r}(D.Component),i.propTypes={detail:R.default.object,visible:R.default.bool,onOk:R.default.func,onCancel:R.default.func},i.defaultProps={detail:{},visible:!1,onOk:function(){},onCancel:function(){}},s=f))||s;a.default=A},function(e,a,r){"use strict";r(15);var n=r(20),l=r(157);r(5),r(18),r(16),r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(18),r(42),r(16),r(4),r(22),r(23),r(57),r(17);var o=n(r(315)),u=n(r(61)),c=n(r(43));r(41);var s,i,f,d=n(r(44)),p=n(r(36)),m=n(r(37)),v=n(r(55)),h=n(r(56)),E=n(r(51)),y=r(186),g=n(r(787)),b=n(r(135)),S=n(r(26)),_=n(r(241)),O=n(r(74)),C=r(14),T=r(239),R=n(r(1)),D=l(r(0)),N=n(r(439)),k=r(52);function I(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,E.default)(e);if(t){var n=(0,E.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,h.default)(this,a)}}var P="",A=(0,T.observer)((f=i=function(e){(0,v.default)(r,e);var a=I(r);function r(e){var n;return(0,p.default)(this,r),(n=a.call(this,e)).fetchProjects=function(){var e=(0,d.default)(c.default.mark((function e(t){return c.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",n.projectStore.fetchList(t));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),n.projectValidator=function(e,a,r){if(!a)return r();var l=n.props.detail,o=(0,S.default)(l,"status.allocations",0)>0;if((0,S.default)(l,"status.tunnel")===(0,S.default)(l,"status.allocations"))return r();var u=l.namespace;return o&&u&&a!==u?r({message:t("IPPOOL_ASSIGN_PROJECT_CHANGE_WARNING"),field:e.field}):o&&a!==P?r({message:t("IPPOOL_ASSIGN_PROJECT_ALLOCATED_WARNING"),field:e.field}):void r()},n.handleSubmit=function(e){var t=n.props.onOk,a={},r=(0,S.default)(e,"metadata.labels['kubesphere.io/namespace']");r===P?((0,O.default)(a,"metadata.labels['kubesphere.io/namespace']",null),(0,O.default)(a,"metadata.labels['ippool.network.kubesphere.io/default']","")):((0,O.default)(a,"metadata.labels['kubesphere.io/namespace']",r||null),(0,O.default)(a,"metadata.labels['ippool.network.kubesphere.io/default']",null)),t(a)},n.formTemplate=(0,b.default)((0,C.toJS)(e.detail._originData)),n.projectStore=new N.default,n}return(0,m.default)(r,[{key:"componentDidMount",value:function(){this.props.detail.isDefault&&(0,O.default)(this.formTemplate,"metadata.labels['kubesphere.io/namespace']",P),this.projectStore.fetchList({cluster:this.props.cluster})}},{key:"getProjects",value:function(){return[{label:t("ALL"),value:P}].concat((0,u.default)(this.projectStore.list.data.map((function(e){return{label:(0,k.showNameAndAlias)(e,"name"),value:e.name}}))))}},{key:"render",value:function(){var e=this.props.detail,a=(0,S.default)(e,"status.allocations",0)>0,r=e.namespace;return D.default.createElement(g.default.Form,(0,o.default)({title:t("ASSIGN_PROJECT"),icon:"enterprise",width:691,data:this.formTemplate},this.props,{onOk:this.handleSubmit}),a&&r?D.default.createElement(y.Alert,{className:"margin-b12",type:"warning",message:t("IPPOOL_ASSIGN_PROJECT_ALLOCATED_WARNING")}):D.default.createElement(y.Alert,{className:"margin-b12",type:"info",message:t("IPPOOL_ASSIGN_PROJECT_DESC")}),D.default.createElement(y.Form.Item,{label:t("PROJECT"),desc:t("SELECT_PROJECT_DESC"),rules:[{validator:this.projectValidator}]},D.default.createElement(y.Select,{name:"metadata.labels['kubesphere.io/namespace']",options:this.getProjects(),pagination:(0,_.default)(this.projectStore.list,["page","total","limit"]),isLoading:this.projectStore.list.isLoading,onFetch:this.fetchProjects,searchable:!0,clearable:!0,placeholder:" "})))}}]),r}(D.Component),i.propTypes={detail:R.default.object,visible:R.default.bool,onOk:R.default.func,onCancel:R.default.func},i.defaultProps={detail:{},visible:!1,onOk:function(){},onCancel:function(){}},s=f))||s;a.default=A},function(e,a,r){"use strict";r(15);var n=r(20),l=r(157);r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(42),r(4),r(23),r(57),r(17);var o,u,c,s=n(r(315)),i=n(r(36)),f=n(r(37)),d=n(r(55)),p=n(r(56)),m=n(r(51)),v=r(186),h=n(r(787)),E=n(r(135)),y=n(r(26)),g=n(r(74)),b=r(14),S=r(239),_=n(r(1)),O=l(r(0));function C(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,m.default)(e);if(t){var n=(0,m.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,p.default)(this,a)}}var T=(0,S.observer)((c=u=function(e){(0,d.default)(r,e);var a=C(r);function r(e){var t;return(0,i.default)(this,r),(t=a.call(this,e)).handleSubmit=function(e){var a=t.props.onOk,r=t.formTemplate,n=e.nodeSelector;(0,g.default)(r,"spec.nodeSelector",n),a(r)},t.formTemplate=(0,E.default)((0,b.toJS)(e.detail._originData)),t.state={nodeSelector:(0,y.default)(e.detail,"nodeSelector","all()")},t}return(0,f.default)(r,[{key:"getOptions",value:function(){return[{label:t("YES"),value:"all()"},{label:t("NO"),value:"!all()"}]}},{key:"render",value:function(){return O.default.createElement(h.default.Form,(0,s.default)({title:t("IPPOOL_AUTO_ASSIGN"),width:691,data:this.state},this.props,{onOk:this.handleSubmit}),O.default.createElement(v.Form.Item,{label:t("IPPOOL_IS_AUTO_ASSIGN")},O.default.createElement(v.Select,{name:"nodeSelector",options:this.getOptions(),clearable:!0,placeholder:" "})))}}]),r}(O.Component),u.propTypes={detail:_.default.object,visible:_.default.bool,onOk:_.default.func,onCancel:_.default.func},u.defaultProps={detail:{},visible:!1,onOk:function(){},onCancel:function(){}},o=c))||o;a.default=T},function(e,a,r){"use strict";var n=r(20);r(12),r(5),r(11),r(6),r(18),r(16),r(137),r(9),r(13),r(10),r(4),r(23),r(17),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(45),r(5),r(11),r(6),r(18),r(28),r(42),r(16),r(137),r(34),r(15),r(9),r(13),r(10),r(4),r(23),r(57),r(17),r(7);var l,o,u,c,s,i,f,d=n(r(315)),p=n(r(30)),m=n(r(65)),v=n(r(36)),h=n(r(37)),E=n(r(88)),y=n(r(55)),g=n(r(56)),b=n(r(51)),S=n(r(49)),_=(n(r(66)),r(186)),O=n(r(3)),C=n(r(787)),T=n(r(789)),R=n(r(74)),D=r(14),N=r(239),k=n(r(0)),I=n(r(443)),P=r(52),A=r(1193),w=n(r(1703));function M(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function L(e){for(var t=1;t0;t&&!o?(r.push({name:e.name}),n.specNameSpaces=(0,D.toJS)(r)):!t&&o&&(n.specNameSpaces=r.filter((function(t){return t.name!==e.name}))),n.psRef.current.handleValueChange("type",null,l)},n.handleServiceChange=function(e,t){var a=(0,E.default)(n),r=a.specCurNameSpace,l=a.specServices,o=a.tabName,u=l.filter((function(t){return t.name===e.name&&t.namespace===r})).length>0;t&&!u?(l.push({name:e.name,namespace:r}),n.specServices=(0,D.toJS)(l)):!t&&u&&(n.specServices=l.filter((function(t){return!(t.name===e.name&&t.namespace===r)}))),n.psRef.current.handleValueChange("type",null,o)},n.handleSave=function(){var e=(0,E.default)(n),t=e.tabName,a=e.specType,r=e.specNameSpaces,l=e.specServices,o=n.props.formTemplate,u="projects"===t?r.map((function(e){return{namespace:e}})):l.map((function(e){return{service:e}}));if(u.length){var c="egress"===a?"to":"from";(0,R.default)(o,"spec.".concat(a,"[0].").concat(c),u),(0,R.default)(o,"metadata.name","policy-".concat(c,"-").concat((0,P.generateId)()))}(0,R.default)(o,'metadata.labels.["kubesphere.io/policy-traffic"]',"inside"),(0,R.default)(o,'metadata.labels.["kubesphere.io/policy-type"]',a),n.props.onOk(o)},n.psValidator=function(e,a,r){var l=(0,E.default)(n),o=l.tabName,u=l.specNameSpaces,c=l.specServices;0===("projects"===o?u.map((function(e){return{namespace:e}})):c.map((function(e){return{service:e}}))).length?r({message:t("EMPTY_RESOURCE_DESC")}):r()},n.projectStore=e.projectStore,n.serviceStore=new I.default,n.specCurNameSpace=e.namespace,n.psRef=k.default.createRef(),n}return(0,h.default)(r,[{key:"componentDidMount",value:function(){var e=this.props,t=e.namespace,a={cluster:e.cluster,limit:-1};this.projectStore.fetchList(L(L({},a),{},{labelSelector:this.ProjectLabelSelector})),this.serviceStore.fetchList(L({namespace:t},a))}},{key:"render",value:function(){var e=this,a=this.projectStore.list,r=this.serviceStore.list,n=Object.assign({},this.props),l=this.specNameSpaces,o=this.specType,u=this.tabName,c=this.specCurNameSpace,s=this.specServices;return k.default.createElement(C.default.Form,(0,d.default)({width:600,title:t("ADD_ALLOWLIST_ENTRY"),closable:!0},n,{onOk:this.handleSave}),k.default.createElement(_.Form.Item,{label:t("TRAFFIC_DIRECTION"),desc:t("INTERNAL_TRAFFIC_DIRECTION_DESC"),rules:[{required:!0,message:t("SELECT_RULE_DIRECTION_TIP")}]},k.default.createElement(_.RadioGroup,{name:"direction",defaultValue:o,wrapClassName:w.default.dirCheck,onChange:function(t){e.specType=t}},k.default.createElement(_.RadioButton,{value:"egress"},k.default.createElement(_.Icon,{name:"upload",size:32}),k.default.createElement("div",null,t("EGRESS"))),k.default.createElement(_.RadioButton,{value:"ingress"},k.default.createElement(_.Icon,{name:"download",size:32}),k.default.createElement("div",null,t("INGRESS"))))),k.default.createElement(_.Form.Item,{label:t("TYPE"),rules:[{validator:this.psValidator}],ref:this.psRef},k.default.createElement(_.RadioGroup,{name:"type",mode:"button",buttonWidth:155,defaultValue:u,onChange:this.handleTabChange,size:"small",rules:[{required:!0}]},k.default.createElement(_.RadioButton,{value:"projects"},t("PROJECT")),k.default.createElement(_.RadioButton,{value:"services"},t("SERVICE")))),k.default.createElement(T.default,{className:(0,O.default)("projects"===u?"block":"hide",w.default.panel_p)},k.default.createElement("ul",{className:w.default.list},a.data.map((function(a){return k.default.createElement("li",{key:a.name},k.default.createElement(_.Checkbox,{value:a.name,checked:l.filter((function(e){return e.name===a.name})).length>0,disabled:a.isFedManaged,onChange:function(t){e.handleNameSpaceChecked(a,t)}},(0,P.showNameAndAlias)(a)),a.isFedManaged&&k.default.createElement(_.Tooltip,{content:t("FED_HOST_NAMESPACE_TIP")},k.default.createElement(_.Icon,{className:w.default.tip,name:"question"})))})))),k.default.createElement(T.default,{className:(0,O.default)("services"===u?"block":"hide",w.default.panel_s)},k.default.createElement("div",{className:w.default.sheader},k.default.createElement(A.ProjectSelect,{cluster:this.props.cluster,defaultValue:c,onChange:this.handleNameSpaceChange,tipMessage:t("FED_HOST_NAMESPACE_TIP"),labelSelector:this.ProjectLabelSelector})),k.default.createElement("div",{className:w.default.sbody},k.default.createElement("ul",{className:w.default.list},r.data.map((function(t){return k.default.createElement("li",{key:t.name},k.default.createElement(_.Checkbox,{value:t.name,checked:s.filter((function(e){return e.name===t.name&&e.namespace===c})).length>0,onChange:function(a){e.handleServiceChange(t,a)}},t.name))}))))))}},{key:"ProjectLabelSelector",get:function(){var e=this.props.workspace;return"!kubesphere.io/devopsproject,kubesphere.io/workspace=".concat(e)}}]),r}(k.default.Component),u=(0,S.default)(o.prototype,"tabName",[D.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return"projects"}}),c=(0,S.default)(o.prototype,"specType",[D.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),s=(0,S.default)(o.prototype,"specNameSpaces",[D.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),i=(0,S.default)(o.prototype,"specCurNameSpace",[D.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),f=(0,S.default)(o.prototype,"specServices",[D.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),l=o))||l)||l;a.default=x},function(e,a,r){"use strict";r(15);var n=r(20);r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(42),r(4),r(23),r(57),r(17);var l=n(r(36)),o=n(r(37)),u=n(r(55)),c=n(r(56)),s=n(r(51)),i=n(r(0)),f=n(r(1)),d=n(r(158)),p=n(r(787)),m=n(r(884));function v(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,s.default)(e);if(t){var n=(0,s.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,c.default)(this,a)}}var h=function(e){(0,u.default)(r,e);var a=v(r);function r(e){var t;return(0,l.default)(this,r),(t=a.call(this,e)).handleOk=function(){var e=t.props,a=e.onOk,r=e.onCancel,n=t.editor.current.getData();(0,d.default)(n)?r():a(n)},t.state={value:{kind:"NetworkPolicy",apiVersion:"networking.k8s.io/v1",metadata:{name:"",namespace:""},spec:{podSelector:{}}}},t.editor=i.default.createRef(),t}return(0,o.default)(r,[{key:"render",value:function(){var e=this.props,a=e.visible,r=e.onCancel,n=e.isSubmitting;return i.default.createElement(p.default,{icon:"firewall",title:t("CREATE_NETWORK_POLICY_TCAP"),description:t("CREATE_NETWORK_POLICY_DESC"),onOk:this.handleOk,onCancel:r,okText:t("OK"),visible:a,isSubmitting:n,width:960},i.default.createElement(m.default,{ref:this.editor,value:this.state.value}))}}]),r}(i.default.Component);a.default=h,h.propTypes={detail:f.default.object,visible:f.default.bool,onOk:f.default.func,onCancel:f.default.func,isSubmitting:f.default.bool,readOnly:f.default.bool},h.defaultProps={visible:!1,isSubmitting:!1,readOnly:!1,detail:{},onOk:function(){},onCancel:function(){}}},function(e,a,r){"use strict";var n=r(20);r(12),r(5),r(11),r(6),r(18),r(48),r(192),r(27),r(137),r(9),r(13),r(10),r(4),r(23),r(17),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(45),r(5),r(11),r(6),r(18),r(28),r(48),r(192),r(42),r(27),r(137),r(34),r(15),r(9),r(13),r(10),r(4),r(23),r(57),r(24),r(193),r(17),r(7);var l,o=n(r(315)),u=n(r(30)),c=n(r(36)),s=n(r(37)),i=n(r(55)),f=n(r(56)),d=n(r(51)),p=n(r(0)),m=r(239),v=n(r(74)),h=n(r(63)),E=n(r(135)),y=r(186),g=n(r(1170)),b=n(r(443)),S=r(72),_=n(r(1703));function O(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function C(e){for(var t=1;t1&&(a.splice(e,1),t.setState(a))},t.addPortRule=function(){var e=t.state.portRules;e.push({port:{value:""},protocol:"TCP"}),t.setState(e)},t.addPortRangeRule=function(){var e=t.state.portRules;e.push({port:{value:""},endPort:{value:""},protocol:"TCP"}),t.setState(e)},t.copyPortRule=function(e){var a=t.state.portRules;a.splice(e,0,(0,E.default)(a[e])),t.setState(a,(function(){t.validPort()}))},t.delPortRule=function(e){var a=t.state.portRules;a.length>1&&(a.splice(e,1),t.setState(a))},t.modifyRule=function(e,a){var r=t.state.portRules,n=r[e];r[e]=C(C({},n),a),t.setState(r,(function(){t.validPort()}))},t.isRepeatCIDR=function(e,t,a){var r=!1;return t.forEach((function(t,n){""!==t.ip.value&&""!==t.mask.value&&a>n&&t.ip.value+t.mask.value===e.ip.value+e.mask.value&&(r=!0)})),r},t.validCIDR=function(){var e=t.state.cidrRules.slice(),a=!0;return e.forEach((function(r,n){var l=t.isRepeatCIDR(r,e,n);r.ip.valid=!(0,h.default)(r.ip.value)&&S.PATTERN_IP.test(r.ip.value)&&!l,r.mask.valid=!(0,h.default)(r.mask.value)&&S.PATTERN_IP_MASK.test(r.mask.value)&&!l&&Number(r.mask.value)>-1&&Number(r.mask.value)<33,r.ip.valid&&r.mask.valid||(a=!1)})),t.setState({cidrRules:e}),a},t.isValidPort=function(e){return""!==e&&/^(?![0])(\d{0,5})$/.test(e)&&e<65536},t.isRepeatPort=function(e,t,a){var r=!1;return t.forEach((function(t,n){var l,o,u;""!==t.port.value&&""!==(null==t||null===(l=t.endPort)||void 0===l?void 0:l.value)&&a>n&&e.protocol+e.port.value+(null==e||null===(o=e.endPort)||void 0===o?void 0:o.value)===t.protocol+t.port.value+(null==t||null===(u=t.endPort)||void 0===u?void 0:u.value)&&(r=!0)})),r},t.validPort=function(){var e=t.state.portRules.slice(),a=!0;return e.forEach((function(r,n){var l=t.isRepeatPort(r,e,n),o=!0;(null==r?void 0:r.endPort)&&Number(r.endPort.value)-Number(r.port.value)<0&&(o=!1),r.port.valid=(0,h.default)(r.port.value)||t.isValidPort(r.port.value)&&!l&&o,(null==r?void 0:r.endPort)&&(r.endPort.valid=(0,h.default)(r.endPort.value)||t.isValidPort(r.endPort.value)&&!l&&o,r.port.valid||r.endPort.valid||(a=!1))})),t.setState({portRules:e}),a},t.validSpecType=function(){var e=t.state.specType;return""===e&&t.setState({specType:!1}),""!==e},t.validFormData=function(){return t.validSpecType()&&t.validCIDR()&&t.validPort()},t.handleSave=function(){var e=t.state,a=e.specType,r=e.cidrRules,n=e.portRules;if(t.validFormData()){var l=t.props.formTemplate,o=n.filter((function(e){return!(0,h.default)(e.port.value)})).map((function(e){var t,a;return{port:+e.port.value,endPort:(null===(t=e.endPort)||void 0===t?void 0:t.value)?+(null===(a=e.endPort)||void 0===a?void 0:a.value):void 0,protocol:e.protocol}})),u=r.filter((function(e){return!(0,h.default)(e.ip.value)&&!(0,h.default)(e.mask.value)})).map((function(e){return{ipBlock:{cidr:"".concat(e.ip.value,"/").concat(e.mask.value)}}})),c="egress"===a?"to":"from";(0,v.default)(l,"spec.".concat(a,"[0].ports"),o),(0,v.default)(l,"spec.".concat(a,"[0].").concat(c),u),(0,v.default)(l,'metadata.labels.["kubesphere.io/policy-traffic"]',"outside"),(0,v.default)(l,'metadata.labels.["kubesphere.io/policy-type"]',a),t.props.onOk(l)}},t.projectStore=e.projectStore,t.serviceStore=new b.default,t.state={specType:e.edit?e.formTemplate.specType:"",specNameSpaces:[],specServices:[],specCurNameSpace:e.namespace,protocols:[{value:"TCP",label:"TCP"},{value:"UDP",label:"UDP"},{value:"SCTP",label:"SCTP"}],cidrRules:e.edit&&e.formTemplate.cidrRules.length>0?e.formTemplate.cidrRules:[{ip:{value:""},mask:{value:""}}],portRules:e.edit&&e.formTemplate.portRules.length>0?e.formTemplate.portRules:[{port:{value:""},protocol:"TCP"}]},t}return(0,s.default)(r,[{key:"render",value:function(){var e=this,a=this.props,r=a.maxNameLength,n=void 0===r?63:r,l=a.formTemplate,u=a.formRef,c=a.edit,s=Object.assign({},this.props),i=this.state,f=i.specType,d=i.protocols,m=i.portRules,v=i.cidrRules,E=!1,b=!1,O=253===n?t("LONG_NAME_DESC"):t("NAME_DESC");return p.default.createElement(g.default.Form,(0,o.default)({width:900,title:c?t("EDIT_ALLOWLIST_ENTRY"):t("ADD_ALLOWLIST_ENTRY"),closable:!0},s,{onOk:this.handleSave,data:l,ref:u}),p.default.createElement(y.Columns,null,p.default.createElement(y.Column,null,p.default.createElement(y.Form.Item,{label:t("NAME"),desc:t("NAME_DESC"),rules:[{required:!0,message:t("NAME_EMPTY_DESC")},{pattern:S.PATTERN_NAME,message:t("INVALID_NAME_DESC",{message:O})}]},p.default.createElement(y.Input,{name:"metadata.name",maxLength:n,disabled:c})))),p.default.createElement(y.Columns,null,p.default.createElement(y.Column,null,p.default.createElement(y.Form.Item,{label:t("ALIAS"),desc:t("ALIAS_NAME_DESC"),rules:[{pattern:S.PATTERN_ALIAS_NAME,message:t("INVALID_ALIAS_NAME_DESC")}]},p.default.createElement(y.Input,{name:"metadata.annotations['kubesphere.io/alias-name']",maxLength:63})))),p.default.createElement(y.Columns,null,p.default.createElement(y.Column,null,p.default.createElement(y.Form.Item,{label:t("DESCRIPTION"),desc:t("DESCRIPTION_DESC")},p.default.createElement(y.TextArea,{name:"metadata.annotations['kubesphere.io/description']",maxLength:256})))),p.default.createElement(y.Form.Item,{label:t("TRAFFIC_DIRECTION"),desc:f?t("EXTERNAL_TRAFFIC_DIRECTION_DESC"):p.default.createElement("span",{className:_.default.errColor},t("SELECT_RULE_DIRECTION_TIP"))},p.default.createElement(y.RadioGroup,{size:"large",name:"direction",defaultValue:f,wrapClassName:_.default.dirCheck,onChange:function(t){return e.setState({specType:t})}},p.default.createElement(y.RadioButton,{value:"egress"},p.default.createElement(y.Icon,{name:"upload",size:32}),p.default.createElement("div",null,t("EGRESS"))),p.default.createElement(y.RadioButton,{value:"ingress"},p.default.createElement(y.Icon,{name:"download",size:32}),p.default.createElement("div",null,t("INGRESS"))))),p.default.createElement("div",{className:_.default.title},t("NETWORK_SEGMENT")),v.map((function(a,r){var n=a.ip,l=a.mask;return!1!==n.valid&&!1!==l.valid||(b=!0),1===v.length&&((0,h.default)(n.value)||(0,h.default)(l.value))&&(b=!0),p.default.createElement("div",{className:_.default.cidrrow,key:"".concat(r," ")},p.default.createElement("div",{className:_.default.cidr},p.default.createElement(y.Input,{name:"cidr-ip",className:!1===n.valid?_.default.error:"",value:n.value,placeholder:t("NETWORK_SEGMENT_EXAMPLE"),onChange:function(t,a){return e.modifyCIDR(r,{ip:{value:a}})},onBlur:e.validCIDR}),p.default.createElement("span",null,"/"),p.default.createElement(y.Input,{name:"cidr-mask",className:!1===l.valid?_.default.error:"",placeholder:"24",value:l.value,onChange:function(t,a){return e.modifyCIDR(r,{mask:{value:a}})},onBlur:e.validCIDR})),p.default.createElement("div",null,p.default.createElement(y.Tooltip,{content:t("ADD_REPLICA")},p.default.createElement(y.Icon,{changeable:!0,clickable:!0,name:"copy",className:_.default.copy,onClick:function(){e.copyCIDRRule(r)}})),p.default.createElement(y.Tooltip,{content:t("DROP")},p.default.createElement(y.Icon,{changeable:!0,clickable:!0,name:"trash",onClick:function(){e.delCIDRRule(r)}}))))})),p.default.createElement("div",{className:_.default.addBtn},p.default.createElement(y.Button,{onClick:this.addCIDRRule},t("ADD_NEW_NETWORK_SEGMENT"))),b&&p.default.createElement("div",{className:_.default.errColor},t("ENTER_VALID_SEGMENT_DESC")),E&&p.default.createElement("div",{className:_.default.errColor},t("ENTER_VALID_PORT_NUMBER_DESC")),p.default.createElement("div",{className:_.default.title},t("PORT_PL")),m.map((function(a,r){var n=a.port,l=a.protocol,o=a.endPort,u=void 0===o?"":o;return!1===n.valid&&(E=!0),p.default.createElement("div",{className:_.default.rulerow,key:"".concat(r," ")},p.default.createElement("div",null,p.default.createElement(y.Select,{name:"proto",value:l,options:d,onChange:function(t){return e.modifyRule(r,{protocol:t})}}),u?p.default.createElement("div",null,p.default.createElement(y.Input,{placeholder:t("PORT_EXAMPLE"),className:!1===n.valid?_.default.error:"",value:n.value,onBlur:e.validPort,onChange:function(t,a){return e.modifyRule(r,{port:{value:a}})}}),p.default.createElement("span",null," - "),p.default.createElement(y.Input,{placeholder:t("PORT_EXAMPLE"),className:!1===u.valid?_.default.error:"",value:u.value,onBlur:e.validPort,onChange:function(t,a){return e.modifyRule(r,{endPort:{value:a}})}})):p.default.createElement(y.Input,{placeholder:t("PORT_EXAMPLE"),className:!1===n.valid?_.default.error:"",value:n.value,onBlur:e.validPort,onChange:function(t,a){return e.modifyRule(r,{port:{value:a}})}})),p.default.createElement("div",null,p.default.createElement(y.Tooltip,{content:t("REPLICA")},p.default.createElement(y.Icon,{changeable:!0,clickable:!0,name:"copy",className:_.default.copy,onClick:function(){e.copyPortRule(r)}})),p.default.createElement(y.Tooltip,{content:t("DROP")},p.default.createElement(y.Icon,{changeable:!0,clickable:!0,name:"trash",onClick:function(){e.delPortRule(r)}}))))})),p.default.createElement("div",{className:_.default.addBtn},p.default.createElement(y.Button,{onClick:this.addPortRangeRule},t("ADD_NEW_PORT_RANGE")),p.default.createElement(y.Button,{onClick:this.addPortRule},t("ADD_NEW_PORT"))),E&&p.default.createElement("div",{className:_.default.errColor},t("ENTER_VALID_PORT_NUMBER_DESC")))}}]),r}(p.default.Component))||l)||l;a.default=R},function(e,a,r){"use strict";var n=r(20);r(12),r(109),r(5),r(11),r(6),r(84),r(18),r(16),r(137),r(9),r(13),r(10),r(4),r(23),r(24),r(17),r(85),r(62),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(109),r(45),r(5),r(11),r(6),r(84),r(18),r(28),r(42),r(16),r(137),r(34),r(15),r(9),r(13),r(10),r(4),r(23),r(57),r(24),r(17),r(85),r(62),r(7);var l,o=n(r(315)),u=n(r(30)),c=n(r(36)),s=n(r(37)),i=n(r(55)),f=n(r(56)),d=n(r(51)),p=n(r(0)),m=r(239),v=n(r(3)),h=r(52),E=n(r(105)),y=r(791),g=n(r(63)),b=n(r(26)),S=r(186),_=n(r(1704)),O=n(r(1170)),C=n(r(3049));function T(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function R(e){for(var t=1;t0)for(var o=(0,y.generateId)(4),u=0,c=new E.Netmask("".concat(e,"/").concat(t)),s=function(){var e=c.toString();l.every((function(t){return t.cidr!==e}))&&l.push({key:"ippool-".concat(o,"-").concat(u),cidr:e,name:"ippool-".concat(o,"-").concat(u),workspace:void 0,blockSize:Number(t)>26?t:26,disabled:!1,ipipMode:"Always",vxlanMode:"Never",natOutgoing:!0,nodeSelector:"all()"}),u+=1,c=c.next()};u(P.blockSize||0)?c<27?26:c:P.blockSize,u.splice(r,1,P);var s=((0,o.default)(u,1)[0]||{}).workspace;if(N&&s)return n.fetchList({cluster:C,page:1,limit:1e3,labelSelector:s?"kubesphere.io/namespace=".concat(s||""):void 0}).then((function(e){var a=(0,y.cidrOverlap)(e,u);if(a)return d.default.error({content:t("CIDR_OVERLAP",{cidr0:a[0],cidr1:a[1]})});j(u),A(null),_({ok:{}})}));j(u),A(null),_({ok:{}})};return P?u.default.createElement(u.default.Fragment,null,u.default.createElement(m.default,{cluster:C,namespace:T,isEdge:N,formRef:a,formTemplate:P,goBack:U,isOutdated:O,hideWorkspace:D,onOk:F}),u.default.createElement(p.default,{className:S.default.confirm,onOk:F,onCancel:U})):u.default.createElement(c.Form,{ref:a,data:r},(x=L,u.default.createElement("div",{className:S.default.container},x.map((function(e){var a,r=(0,b.getOverlayStatus)(e);return u.default.createElement("div",{key:e.key,className:(0,s.default)(S.default.card,S.default.listItem)},u.default.createElement(f.default,{title:(0,y.getDisplayName)(e),icon:g.ICON_TYPES[n.module],description:e.description||"-",className:S.default.info}),!O&&u.default.createElement(f.default,{title:u.default.createElement(i.default,{type:e.disabled?"Disabled":"Running",name:t(e.disabled?"DISABLED":"ENABLED")}),description:t("STATUS")}),u.default.createElement(f.default,{title:e.cidr,description:t("NETWORK_SEGMENT")}),u.default.createElement(f.default,{title:null!==(a=e.blockSize)&&void 0!==a?a:"-",description:t("IPPOOL_BLOCK_SIZE")}),!O&&u.default.createElement(f.default,{title:u.default.createElement("div",null,u.default.createElement("span",{className:"font-bold"},r.type),r.value&&u.default.createElement("span",{style:{marginLeft:"4px"}},"(",r.value,")")),description:t("IPPOOL_OVERLAY_MODE")}),u.default.createElement("div",{className:S.default.workspace}),u.default.createElement("div",{className:S.default.action},u.default.createElement(c.Button,{className:S.default.edit,onClick:function(){return function(e){A((0,v.default)(e)),_({ok:{disabled:!0}})}(e)}},u.default.createElement(c.Icon,{name:"pen",type:"dark",size:16})),!O&&u.default.createElement(c.Tooltip,{content:t("DISABLE_POD_IP_POOL")},u.default.createElement(c.Toggle,{checked:!e.disabled,onChange:function(t){return function(e,t){var a=L.findIndex((function(t){return t.key===e.key})),r=(0,l.default)(L);r[a].disabled=t,j(r)}(e,!t)}}))))})))))};a.default=_},function(e,a,r){"use strict";(function(e){var n=r(20);r(12),r(109),r(11),r(6),r(29),r(73),r(18),r(16),r(9),r(13),r(10),r(4),r(22),r(1705),r(24),r(38),r(136),r(7),r(32),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(109),r(11),r(6),r(29),r(73),r(18),r(28),r(16),r(34),r(15),r(9),r(13),r(10),r(4),r(22),r(1705),r(38),r(7),r(32);var l=n(r(43));r(41);var o=n(r(44)),u=n(r(30)),c=n(r(58)),s=n(r(787)),i=n(r(74)),f=n(r(26)),d=r(14),p=n(r(240)),m=n(r(435)),v=n(r(3056)),h=n(r(3058)),E=r(3059),y=n(r(3061)),g=n(r(3063)),b=n(r(824)),S=n(r(3070)),_=n(r(1698)),O=n(r(3072)),C=n(r(852)),T=n(r(953));function R(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function D(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},a=t.props,r=a.cluster,n=a.workspace,l=a.namespace,o=a.devops;t.userStore.fetchList(D({name:t.state.name,cluster:r,workspace:l||o?n:void 0},e))},t.handleSearch=function(e){t.setState({name:e},t.fetchData)},t.handleSelect=function(e,a){t.setState((function(t){var r=t.members,n=t.newMembers;return{members:[].concat((0,c.default)(r),[e]),newMembers:[].concat((0,c.default)(n),[{username:e,roleRef:a}])}}))},t.handleSubmit=function(){t.props.onOk(t.state.newMembers)},t.userStore=new _.default,t.memberStore=new O.default,t.state={members:[],newMembers:[]},t}return(0,f.default)(r,[{key:"componentDidMount",value:function(){var e=this,t=this.props,a=t.cluster,r=t.group;this.memberStore.fetchChildResource({kind:"members",cluster:a,group:r,limit:"-1"}).then((function(){e.setState({members:e.memberStore.list.data.map((function(e){return e.name}))})}))}},{key:"render",value:function(){var e=this,a=this.props,r=a.visible,n=a.onCancel,l=a.roles,o=a.title,u=a.desc,c=a.searchPlaceholder,s=this.state.members,i=(0,E.toJS)(this.userStore.list),f=i.data,d=void 0===f?[]:f,p=i.total,m=i.page,h=i.isLoading;return v.default.createElement(b.default,{width:691,icon:"pen",onCancel:n,onOk:this.handleSubmit,visible:r,bodyClassName:T.default.modalBody,hideHeader:!0},v.default.createElement("div",{className:T.default.body},v.default.createElement("div",{className:T.default.title},v.default.createElement("div",{className:"h4"},o||t("INVITE_MEMBER")),v.default.createElement("p",null,u||t("INVITE_NODE_GROUP_MEMBER_DESC"))),v.default.createElement("div",{className:T.default.content},v.default.createElement(g.InputSearch,{placeholder:c||t("INVITE_NODE_GROUP_MEMBER_SEARCH_PLACEHOLDER"),onSearch:this.handleSearch}),v.default.createElement("div",{className:T.default.results},v.default.createElement(S.default,{data:d,total:p,page:m,loading:h,onFetch:this.fetchData},d.map((function(t){return v.default.createElement(C.default,{key:t.name,user:t,roles:l,selected:s.includes(t.name),onSelect:e.handleSelect})})))))))}}]),r}(v.default.Component),o.propTypes={roles:h.default.array,visible:h.default.bool,workspace:h.default.string,namespace:h.default.string,cluster:h.default.string,title:h.default.string,desc:h.default.string,searchPlaceholder:h.default.string,onOk:h.default.func,onCancel:h.default.func},o.defaultProps={roles:[],visible:!1,onOk:function(){},onCancel:function(){}},l=u))||l;a.default=k},function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(18),r(16),r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(18),r(42),r(16),r(4),r(23),r(57),r(17);var l=n(r(36)),o=n(r(37)),u=n(r(55)),c=n(r(56)),s=n(r(51)),i=n(r(26)),f=n(r(0)),d=n(r(1)),p=r(186),m=n(r(788)),v=n(r(1707));function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,s.default)(e);if(t){var n=(0,s.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,c.default)(this,a)}}var E=function(e){(0,u.default)(r,e);var a=h(r);function r(){var e;(0,l.default)(this,r);for(var t=arguments.length,n=new Array(t),o=0;o1&&void 0!==arguments[1]?arguments[1]:{};t.setState((function(r){var n=r.nodes,l=(0,u.default)(n);return l.forEach((function(e){var r=t.getTaints(e);a.key&&(0,b.default)(r,(function(e){return e.key===a.key})),(0,b.default)(r,(function(e){return t.commonTaintsKeys.includes(e.key)}))})),{nodes:l,commonTaints:(0,h.default)(e)?[{}]:e}}))}),100),t.handleChange=function(e,a){return(0,O.cacheFunc)("_change_".concat(a),(function(e){t.setState((function(t){var r=t.nodes,n=(0,u.default)(r);return(0,E.default)(n,"[".concat(a,"].taints"),e),{nodes:n}}))}),(0,i.default)(t))},t.handleSelect=function(e){return(0,O.cacheFunc)("_select_".concat(e),(function(e){e.key&&t.setState((function(t){var a=t.nodes,r=t.commonTaints;return a.forEach((function(t){var a=t.taints||[];t.taints=(0,g.default)(a,[e],"key").filter((function(e){return e.key}))})),r.push(e),{nodes:a,commonTaints:r.filter((function(e){return e.key}))}}))}),(0,i.default)(t))},t.state={nodes:e.nodes,commonTaints:t.getCommonTaints(e)},t}return(0,s.default)(r,[{key:"componentDidUpdate",value:function(e){this.props.visible!==e.visible&&this.setState({nodes:this.props.nodes,commonTaints:this.getCommonTaints(this.props)})}},{key:"renderCommonTaints",value:function(){var e=this.state,a=e.nodes,r=e.commonTaints;return(0,h.default)(a)||1===a.length?null:m.default.createElement("div",{className:D.default.node},m.default.createElement("div",{className:D.default.subTitle},t("COMMON_TAINTS")),m.default.createElement(R.default,{value:r,onChange:this.handleChangeAll}))}},{key:"renderNodeTaints",value:function(){var e=this,t=this.state,a=t.nodes,r=t.commonTaints,n=(0,h.default)(a)||1===a.length;return a.map((function(t,a){var l=e.getDifferentTaints(t);return m.default.createElement("div",{key:t.name,className:D.default.node},m.default.createElement("div",{className:D.default.subTitle},t.name),m.default.createElement(R.default,{common:r,value:l,onSelect:n?null:e.handleSelect(a),onChange:e.handleChange(t,a)}))}))}},{key:"render",value:function(){var e=this.props,a=(e.detail,e.onOk,(0,o.default)(e,["detail","onOk"]));return m.default.createElement(T.default.Form,(0,l.default)({width:1162,bodyClassName:D.default.body,title:t("EDIT_TAINTS"),icon:"wrench",okText:t("OK"),onOk:this.handleSubmit},a),m.default.createElement("div",{className:D.default.wrapper},m.default.createElement("div",{className:D.default.title},t("TAINTS")),m.default.createElement(C.Alert,{type:"info",message:t("TAINTS_DESC")}),m.default.createElement("div",{className:D.default.content},this.renderCommonTaints(),this.renderNodeTaints())))}},{key:"commonTaintsKeys",get:function(){return this.state.commonTaints.map((function(e){return e.key}))}}]),r}(m.default.Component);a.default=k,k.propTypes={visible:v.default.bool,nodes:v.default.array,onOk:v.default.func,onCancel:v.default.func},k.defaultProps={visible:!1,nodes:[],onOk:function(){},onCancel:function(){}}},,,function(e,a,r){"use strict";var n=r(157),l=r(20);r(12),r(5),r(11),r(6),r(86),r(18),r(9),r(13),r(10),r(4),r(23),r(17),r(934),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(45),r(5),r(11),r(6),r(86),r(18),r(28),r(42),r(34),r(15),r(9),r(13),r(10),r(4),r(22),r(23),r(57),r(17),r(934),r(7);var o=l(r(43));r(41);var u=l(r(44)),c=l(r(30)),s=l(r(36)),i=l(r(37)),f=l(r(55)),d=l(r(56)),p=l(r(51)),m=n(r(0)),v=l(r(74)),h=l(r(1375)),E=r(186),y=r(1376),g=l(r(240)),b=r(52),S=r(72),_=l(r(787)),O=l(r(3091));function C(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function T(e){for(var t=1;t-1?n({field:a.field,message:D[t](r)}):n():n()}))}}},e.handleLink=function(){var t=e.props,a=t.cluster,r=t.nodegroup,n=e.state.isCheck,l=e.formRef.current;l&&l.validate((0,u.default)(o.default.mark((function t(){var l,u,c;return o.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.setState({loading:!0}),l=T({cluster:a,defaultTaint:n},e.state.formData),r&&(0,v.default)(l,"nodegroup",r),t.next=5,e.store.createEdgeNode(l);case 5:"Failure"!==(u=t.sent).status&&(c=u.data,e.setState({link:c,showLink:!0})),e.setState({loading:!1});case 8:case"end":return t.stop()}}),t)}))))},e.handleCopy=function(){g.default.success({content:t("COPY_SUCCESSFUL")})},e.emptyLink=function(){e.state.link&&e.setState({link:"",showLink:!1})},e.renderLink=function(){var a=e.state,r=a.showLink,n=a.link,l=t.html("EDGENODE_CONFIG_COMMAND_TIP");return r?m.default.createElement("div",{className:O.default.column},m.default.createElement(E.Form.Item,{label:m.default.createElement(m.default.Fragment,null,t("EDGENODE_CONFIG_COMMAND"),m.default.createElement(E.Tooltip,{content:m.default.createElement("span",{className:O.default.installInfo},(0,b.learnMoreTip)(l))},m.default.createElement(E.Icon,{className:O.default.infoIcon,name:"information",size:18}))),desc:t("ADD_EDGE_COMMAND")},m.default.createElement("div",{className:O.default.linkContainer},m.default.createElement("pre",{className:O.default.link},n))),m.default.createElement(y.CopyToClipboard,{text:n,onCopy:e.handleCopy},m.default.createElement(E.Button,null,t("COPY")))):null},e.handleChangeCheck=function(t){e.setState({isCheck:t})},e.runtimeOptions=[{label:"Docker",value:"docker"},{label:"Containerd",value:"containerd"}],e.renderEdgeWizeNodeFormItems=function(){return m.default.createElement(m.default.Fragment,null,m.default.createElement(E.Form.Item,{className:O.default.runtime,label:t("CONTAINER_RUNTIME"),rules:[{required:!0,message:t("CONTAINER_RUNTIME_EMPTY_DESC")}]},m.default.createElement(E.RadioGroup,{name:"runtime",defaultValue:"docker",wrapClassName:"radio-group-button"},e.runtimeOptions.map((function(e){var t=e.value,a=e.label;return m.default.createElement(E.RadioButton,{key:t,value:t},a)})))),m.default.createElement(E.Form.Item,{label:t("IMAGE_REPOSITORY_ADDRESS")},m.default.createElement(E.Input,{name:"imageRepository"})),m.default.createElement("div",{className:O.default.column},m.default.createElement(E.Form.Item,{label:t("NAME"),rules:[{required:!0,message:t("EDGENODE_NAME_EMPTY_DESC")},{pattern:S.PATTERN_NAME,message:t("INVALID_NAME_DESC")},{validator:e.validator("name")}],desc:t("NAME_DESC")},m.default.createElement(E.Input,{name:"name",defaultValue:"edgenode-".concat((0,b.generateId)(4)),onChange:e.emptyLink})),m.default.createElement(E.Button,{className:O.default.edgeValidate,onClick:e.handleLink,loading:e.state.loading},t("VALIDATE"))))},e.renderEdgeNodeFormItems=function(){return m.default.createElement(m.default.Fragment,null,m.default.createElement(E.Form.Item,{label:t("NAME"),rules:[{required:!0,message:t("EDGENODE_NAME_EMPTY_DESC")},{pattern:S.PATTERN_NAME,message:t("INVALID_NAME_DESC")},{validator:e.validator("name")}],desc:t("NAME_DESC")},m.default.createElement(E.Input,{name:"name",maxLength:63,defaultValue:"edgenode-".concat((0,b.generateId)(4)),onChange:e.emptyLink})),m.default.createElement("div",{className:O.default.column},m.default.createElement(E.Button,{className:O.default.edgeValidate,onClick:e.handleLink,loading:e.state.loading},t("VALIDATE"))))},e}return(0,i.default)(r,[{key:"render",value:function(){var e=this.props,a=e.visible,r=e.onOk,n=e.onCancel,l=e.isEdgeWize;return m.default.createElement(_.default,{title:t("ADD_EDGE_NODE"),width:600,visible:a,onOk:r,onCancel:n,hideFooter:!0},m.default.createElement(E.Form,{data:this.state.formData,ref:this.formRef},l?this.renderEdgeWizeNodeFormItems():this.renderEdgeNodeFormItems(),m.default.createElement("div",{className:O.default.column},m.default.createElement(E.Checkbox,{defaultValue:!0,checked:this.state.isCheck,onChange:this.handleChangeCheck},t("ADD_DEFAULT_TAINT",{params:'node-role.kubernetes.io/edge="":NoSchedule'}))),this.renderLink()))}}]),r}(m.Component);a.default=N},,,,function(e,t,a){e.exports={errorMessage:"_3S7-jeydyoFwDpd9pSycVx",linkContainer:"_1ggyEQNMCzuZ-coFwWh3pC",link:"c_iHcRkOuUTw0vHcUCv2d",column:"_3oR2jlvaLkV7X5Pt_HUBWZ",infoIcon:"_1xenl2b6SqpTOis9lh2q2P",installInfo:"k72561gKG-uS6_V9v8-zN",edgeValidate:"zXNjoENWZneCz3uB43FM-",runtime:"_3T5sDaR53b2VxAXhvzBEGY"}},function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(187),r(11),r(84),r(18),r(16),r(4),r(23),r(17),r(85),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(187),r(11),r(84),r(18),r(42),r(16),r(4),r(23),r(57),r(17),r(85);var l=n(r(30)),o=n(r(61)),u=n(r(36)),c=n(r(37)),s=n(r(55)),i=n(r(56)),f=n(r(51)),d=n(r(0)),p=n(r(3)),m=n(r(247)),v=n(r(1)),h=r(186),E=r(983),y=n(r(787)),g=n(r(795)),b=n(r(788)),S=n(r(3093));function _(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,f.default)(e);if(t){var n=(0,f.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,i.default)(this,a)}}var O=function(e){(0,s.default)(r,e);var a=_(r);function r(e){var t;return(0,u.default)(this,r),(t=a.call(this,e)).handleSelectAll=function(){if(t.isSelectedAll)return t.setState({selectedKeys:[]});t.setState({selectedKeys:t.allowedNodes.map((function(e){return e.name}))})},t.handleNodeCheckedChange=function(e,a){var r,n=null!==(r=t.state.selectedKeys)&&void 0!==r?r:[];return e?t.setState({selectedKeys:(0,m.default)([].concat((0,o.default)(n),[a]))}):t.setState({selectedKeys:n.filter((function(e){return e!==a}))})},t.handleOk=function(){var e=t.props.onOk;null==e||e(t.selectedNodes)},t.state={selectedKeys:t.allowedNodes.map((function(e){return e.name}))},t}return(0,c.default)(r,[{key:"render",value:function(){var e=this,a=this.props,r=a.visible,n=a.title,o=a.okText,u=a.onCancel;return d.default.createElement(y.default,{width:600,title:n,visible:r,okText:o,onOk:this.handleOk,onCancel:u},d.default.createElement("div",{className:S.default.banner},d.default.createElement("span",{className:S.default.title},t("EDGE_NODE")),d.default.createElement("span",{onClick:this.handleSelectAll,className:S.default.action},this.isSelectedAll?t("CANCEL_SELECT_ALL"):t("SELECT_ALL"))),d.default.createElement("div",{className:S.default.list},this.allowedNodes.map((function(a){var r=a.name,n=a.nodeIP,o=a.status;return d.default.createElement("div",{key:r,className:(0,p.default)(S.default.node,(0,l.default)({},S.default.active,e.state.selectedKeys.includes(r)))},d.default.createElement(h.Checkbox,{checked:e.state.selectedKeys.includes(r),onChange:function(t){return e.handleNodeCheckedChange(t,r)}}),d.default.createElement(b.default,{className:S.default.content,to:null,icon:"edge-node",iconSize:20,title:(0,E.getAccessNodeDisplayName)(a),desc:n}),d.default.createElement(g.default,{type:o,name:t("NODE_STATUS_".concat(o.toLocaleUpperCase()))}))}))))}},{key:"allowedNodes",get:function(){var e;return null!==(e=this.props.nodes)&&void 0!==e?e:[]}},{key:"isSelectedAll",get:function(){var e=this;return this.allowedNodes.every((function(t){var a=t.name;return e.state.selectedKeys.includes(a)}))}},{key:"selectedNodes",get:function(){var e=this;return this.allowedNodes.filter((function(t){var a=t.name;return e.state.selectedKeys.includes(a)}))}}]),r}(d.default.Component);a.default=O,O.propTypes={detail:v.default.object,visible:v.default.bool,onOk:v.default.func,onCancel:v.default.func,isSubmitting:v.default.bool},O.defaultProps={visible:!1,onOk:function(){},onCancel:function(){},isSubmitting:!1}},function(e,t,a){e.exports={banner:"_3xffvM2XHROBh42U_Nf9gr",action:"nuCNP_IfGqufUHnjpp843",title:"_1zMX4UNFhb7j1VH-4m1IkU",list:"_3lcynLW3pEZOY2n-LnNoa6",active:"_1GR_uekAuiFnWs14U5mtI0",node:"_2xAMNMKIbhRF7URBG2nP1-",content:"D41eZi0b2YjFiBi-S9SAn"}},function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(42),r(4),r(23),r(57),r(17);var l=n(r(36)),o=n(r(37)),u=n(r(55)),c=n(r(56)),s=n(r(51)),i=n(r(0)),f=n(r(1)),d=r(186),p=n(r(787)),m=n(r(3095));function v(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,s.default)(e);if(t){var n=(0,s.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,c.default)(this,a)}}var h=function(e){(0,u.default)(r,e);var a=v(r);function r(){var e;(0,l.default)(this,r);for(var t=arguments.length,n=new Array(t),o=0;o0&&void 0!==arguments[0]?arguments[0]:"appList",t=arguments.length>1?arguments[1]:void 0;r.setState({selectRepo:t,viewType:e})},r.handleClickApp=function(e){r.setState({viewType:"appDetail",selectApp:e})},r.handleDeploy=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};r.props.trigger("openpitrix.template.deploy",R(R(R({},e),(0,y.default)(r.props,["cluster","workspace","namespace"])),{},{success:function(){return r.props.onOk()}}))},r.state={selectRepo:"",viewType:"appList",selectApp:null},r}return(0,d.default)(a,[{key:"render",value:function(){var e=this.props,t=e.visible,a=e.onCancel,r=e.workspace,n=(e.onDeploy,(0,s.default)(e,["visible","onCancel","workspace","onDeploy"])),l=this.state,o=l.viewType,u=l.selectApp,i=l.selectRepo;return h.default.createElement(S.default,(0,c.default)({width:1070,className:C.default.modal,bodyClassName:C.default.body,visible:t,onCancel:a,rightScreen:!0,hideHeader:!0,hideFooter:!0},n),h.default.createElement(b.Button,{className:C.default.close,icon:"close",iconType:"light",type:"control",onClick:a}),"appList"===o&&h.default.createElement(_.default,{workspace:r,selectRepo:i,setType:this.setViewType,onClickApp:this.handleClickApp}),"appDetail"===o&&h.default.createElement(O.default,{setType:this.setViewType,app:u,workspace:r,onDeploy:this.handleDeploy}))}}]),a}(h.Component),o.propTypes={workspace:g.default.string,visible:g.default.bool,onOk:g.default.func,onCancel:g.default.func},o.defaultProps={workspace:"",visible:!1,onOk:function(){},onCancel:function(){}},l=u))||l;t.default=N},function(e,a,r){"use strict";var n=r(20),l=r(157);r(12),r(11),r(6),r(18),r(16),r(9),r(13),r(10),r(4),r(23),r(24),r(17),r(64),r(188),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(45),r(11),r(6),r(18),r(28),r(859),r(42),r(16),r(34),r(15),r(9),r(13),r(10),r(4),r(22),r(23),r(57),r(24),r(17),r(64),r(188),r(7);var o=n(r(61)),u=n(r(43)),c=n(r(30));r(41);var s,i,f,d=n(r(44)),p=n(r(36)),m=n(r(37)),v=n(r(55)),h=n(r(56)),E=n(r(51)),y=l(r(0)),g=r(239),b=n(r(1)),S=n(r(26)),_=n(r(455)),O=r(186),C=n(r(1627)),T=n(r(469)),R=n(r(1380)),D=r(327),N=n(r(3140));function k(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function I(e){for(var t=1;t0&&void 0!==n[0]?n[0]:{},r=t.props.workspace,e.next=4,t.repoStore.fetchList(I({status:"active",noLimit:!0,workspace:r},a));case 4:case"end":return e.stop()}}),e)}))),t.fetchApps=(0,d.default)(u.default.mark((function e(){var a,r,n,l,c,s=arguments;return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=s.length>0&&void 0!==s[0]?s[0]:{},r=!(s.length>1&&void 0!==s[1])||s[1],e.next=4,t.appStore.fetchList(I({page:1,limit:D.STORE_APP_LIMIT,status:t.isFormWorkspace?"":"active",workspace:t.isFormWorkspace?t.props.workspace:"",repo_id:t.selectedRepo},a));case 4:n=t.appStore,l=n.allApps,c=n.list,r?(l.clear(),l.replace(c.data)):l.push.apply(l,(0,o.default)(c.data));case 6:case"end":return e.stop()}}),e)}))),t.fetchMoreApps=(0,d.default)(u.default.mark((function e(){var a;return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=t.appStore.list.page,e.next=3,t.fetchApps({page:a+1},!1);case 3:case"end":return e.stop()}}),e)}))),t.handleSearch=function(e){t.fetchApps({keyword:e})},t.handleRefresh=function(){t.fetchApps()},t.handleChangeRepo=function(e){t.selectedRepo!==e&&t.setState({selectRepo:e},(function(){t.fetchApps()}))},t.state={selectRepo:e.selectRepo},t.appStore=new T.default,t.repoStore=new R.default,t}return(0,m.default)(n,[{key:"componentDidMount",value:(a=(0,d.default)(u.default.mark((function e(){return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.fetchRepos();case 2:if(!(this.repoSelectOptions.length>0)){e.next=5;break}return e.next=5,this.fetchApps();case 5:case"end":return e.stop()}}),e,this)}))),function(){return a.apply(this,arguments)})},{key:"renderHeader",value:function(){return y.default.createElement("div",{className:N.default.header},y.default.createElement("div",{className:N.default.logo},y.default.createElement("img",{src:"/assets/application.svg",alt:""})),y.default.createElement("div",{className:N.default.text},y.default.createElement("h2",null,t("APP_TEMPLATE_PL")),y.default.createElement("p",null,t("APP_TEMPLATES_MODAL_DESC"))))}},{key:"renderToolbar",value:function(){return y.default.createElement("div",{className:N.default.toolbar},y.default.createElement(O.Select,{name:"repo",placeholder:t("SELECT_APP_REPOSITORY"),onChange:this.handleChangeRepo,className:N.default.selectRepos,options:this.repoSelectOptions,value:this.selectedRepo}),y.default.createElement(O.InputSearch,{onSearch:this.handleSearch,className:N.default.search,placeholder:t("SEARCH")}),y.default.createElement(O.Button,{type:"flat",icon:"refresh",onClick:this.handleRefresh}))}},{key:"render",value:function(){var e=this.appStore,t=e.allApps,a=e.list,r=a.isLoading,n=a.total;return y.default.createElement(y.default.Fragment,null,this.renderHeader(),this.renderToolbar(),y.default.createElement("div",{className:N.default.apps},y.default.createElement(C.default,{itemCls:N.default.appItem,apps:t.toJS(),isLoading:r,total:n,onFetchMore:this.fetchMoreApps,onClickAppItem:this.props.onClickApp,disableLink:!0})))}},{key:"isFormWorkspace",get:function(){return!this.selectedRepo}},{key:"repoSelectOptions",get:function(){var e=this.repoStore.list.data.map((function(e){var t=e.name;return{value:e.repo_id,label:t}}));return e.unshift({value:null,label:t("CURRENT_WORKSPACE")}),e}},{key:"selectedRepo",get:function(){return this.state.selectRepo||(0,S.default)(this.repoSelectOptions,"[0].value")}}]),n}(y.Component),i.propTypes={workspace:b.default.string,store:b.default.object,onClickApp:b.default.func,fetchApps:b.default.func,selectRepo:b.default.string},i.defaultProps={workspace:"",store:{},onClickApp:_.default},s=f))||s;a.default=A},function(e,t,a){e.exports={apps:"_1UatQrbMOVzFuohgTg31oP",appItem:"_1M1BO3tpD1NAdxEzt9622l",header:"_2X4awaWFWZe3_0szPQS1tG",logo:"_2VFLGzBVR1DwI0uG14Iij",text:"_180h4OHwH9Gfe3LwWRj5r1",toolbar:"fwgiubvg9GxvkA5OEo1tO",selectRepos:"hUYgP6O2Qv2aSSy9gAShl",search:"_1Qe3PDhi2sBCabmc6Pwcpf"}},function(e,a,r){"use strict";var n=r(20),l=r(157);r(12),r(109),r(11),r(6),r(18),r(16),r(9),r(13),r(10),r(4),r(23),r(17),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(109),r(45),r(11),r(6),r(18),r(28),r(42),r(16),r(34),r(15),r(9),r(13),r(10),r(4),r(22),r(23),r(57),r(17),r(7);var o=n(r(43)),u=n(r(30));r(41);var c,s,i,f=n(r(44)),d=n(r(36)),p=n(r(37)),m=n(r(55)),v=n(r(56)),h=n(r(51)),E=l(r(0)),y=r(239),g=n(r(1)),b=n(r(26)),S=n(r(243)),_=r(186),O=n(r(816)),C=n(r(3142)),T=n(r(1722)),R=n(r(469)),D=n(r(942)),N=n(r(3146)),k=n(r(3148));function I(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function P(e){for(var t=1;t0&&void 0!==r[0]?r[0]:{},e.next=3,t.versionStore.fetchList(P(P({},a),{},{app_id:t.appId,noLimit:!0}));case 3:case"end":return e.stop()}}),e)}))),t.handleTabChange=function(e){t.setState({tab:e})},t.handleClickBack=function(){var e=t.props.app;t.props.setType("appList",e.repo_id)},t.showDeploy=function(){t.props.onDeploy({app:t.appStore.detail,store:t.appStore})},t.handleChangeAppVersion=function(e){t.setState({selectAppVersion:e})},t.state={tab:"versionInfo",selectAppVersion:"",showDeploy:!1},t.appStore=new R.default,t.versionStore=new D.default,t}return(0,p.default)(n,[{key:"componentDidMount",value:(a=(0,f.default)(o.default.mark((function e(){var t;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.fetchVersions();case 2:t=(0,b.default)(this.versionStore,"list.data[0].version_id",""),this.setState((function(){return{selectAppVersion:t}})),this.appStore.fetchDetail({app_id:[this.appId]});case 5:case"end":return e.stop()}}),e,this)}))),function(){return a.apply(this,arguments)})},{key:"componentWillUnmount",value:function(){this.props.setType()}},{key:"renderVersionList",value:function(){return E.default.createElement("div",{className:"margin-b12"},E.default.createElement("div",{className:"h6 margin-b12"},t("VERSION")),E.default.createElement(O.default,{value:this.state.selectAppVersion,options:this.versionOptions,onChange:this.handleChangeAppVersion}))}},{key:"render",value:function(){var e=this.props.app,a=this.state,r=a.selectAppVersion,n=a.tab,l=this.appStore.detail;return E.default.createElement(E.default.Fragment,null,E.default.createElement(N.default,{onClickBack:this.handleClickBack,title:e.name,desc:e.description,icon:e.icon}),E.default.createElement("div",{className:k.default.bar},E.default.createElement(_.RadioGroup,{mode:"button",value:n,options:this.tabs,onChange:this.handleTabChange}),E.default.createElement(_.Button,{type:"control",onClick:this.showDeploy},t("INSTALL"))),E.default.createElement("div",{className:k.default.content},E.default.createElement(_.Columns,null,E.default.createElement(_.Column,null,E.default.createElement(C.default,{appId:this.appId,versionId:r,currentTab:n})),E.default.createElement(_.Column,{className:"is-narrow"},this.renderVersionList(),E.default.createElement(T.default,{app:l})))))}},{key:"appId",get:function(){return this.props.app.app_id}},{key:"tabs",get:function(){return[{label:t("APP_INFORMATION"),value:"versionInfo"},{label:t("CHART_FILES"),value:"chartFiles"}]}},{key:"versionOptions",get:function(){return this.versionStore.list.data.map((function(e){var t=e.version_id,a=e.name,r=e.create_time;return{label:a,description:(0,S.default)(r).format("YYYY-MM-DD"),value:t}}))}}]),n}(E.Component),s.propTypes={app:g.default.object,setType:g.default.func,workspace:g.default.string},s.defaultProps={app:{}},c=i))||c;a.default=w},function(e,a,r){"use strict";r(15);var n=r(20);r(9),r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(42),r(9),r(4),r(23),r(57),r(17);var l,o,u,c,s=n(r(36)),i=n(r(37)),f=n(r(55)),d=n(r(56)),p=n(r(51)),m=n(r(49)),v=n(r(0)),h=n(r(1)),E=r(14),y=r(239),g=r(186),b=n(r(63)),S=n(r(935)),_=n(r(1001)),O=n(r(1721)),C=n(r(3144));function T(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,p.default)(e);if(t){var n=(0,p.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,d.default)(this,a)}}var R=g.Tabs.TabPanel,D=(0,y.observer)((c=u=function(e){(0,f.default)(r,e);var a=T(r);function r(e){var n;return(0,s.default)(this,r),(n=a.call(this,e)).handleTabChange=function(e){n.setState({tab:e})},n.renderReadMe=function(){var e=n.files["README.md"];return e||n.fileStore.isLoading?v.default.createElement(_.default,{source:e}):v.default.createElement("p",{className:C.default.noReadme},t("VERSION_INTRO_EMPTY_DESC"))},n.renderChartFiles=function(){if(!(0,b.default)(n.files)){return v.default.createElement(O.default,{files:(0,E.toJS)(n.files),editorOptions:{options:{readOnly:!0}}})}},n.fileStore=new S.default,n.state={tab:"versionInfo"},n}return(0,i.default)(r,[{key:"componentDidUpdate",value:function(e){var t=this.props.versionId;t!==e.versionId&&this.fetchFile(t)}},{key:"componentDidMount",value:function(){var e=this.props.versionId;this.fetchFile(e)}},{key:"fetchFile",value:function(e){var t=this.props.appId;e&&this.fileStore.fetch({app_id:t,version_id:e})}},{key:"render",value:function(){var e=this.props,a=e.versionId,r=e.currentTab,n=this.state.tab;return a?this.fileStore.isLoading?v.default.createElement(g.Loading,{className:C.default.loading}):"versionInfo"===r?v.default.createElement(v.default.Fragment,null,this.renderReadMe()):"chartFiles"===r?v.default.createElement(v.default.Fragment,null,this.renderChartFiles()):v.default.createElement(g.Tabs,{type:"button",activeName:n,onChange:this.handleTabChange},v.default.createElement(R,{label:t("APP_INTRODUCTION"),name:"versionInfo"},v.default.createElement("div",{className:C.default.wrapper},this.renderReadMe())),v.default.createElement(R,{label:t("CHART_FILES"),name:"chartFiles"},v.default.createElement("div",{className:C.default.wrapper},this.renderChartFiles()))):null}},{key:"files",get:function(){return this.fileStore.files}}]),r}(v.default.Component),u.propTypes={appId:h.default.string,versionId:h.default.string,currentTab:h.default.string},u.defaultProps={currentTab:"",appId:"",versionId:""},o=c,(0,m.default)(o.prototype,"files",[E.computed],Object.getOwnPropertyDescriptor(o.prototype,"files"),o.prototype),l=o))||l;a.default=D},,function(e,t,a){e.exports={wrapper:"_22Uqg9uSekELpB6KOCdXpB",noReadme:"_2op9wgbzpexIMRcDqKNfeb",loading:"_2ycCMmftlBf-UDzqsr_oJG"}},function(e,t,a){e.exports={appBase:"_1I6e4FCt60BefNpkAUBRMO"}},function(e,a,r){"use strict";r(15);var n=r(157),l=r(20);r(5),r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(42),r(4),r(23),r(57),r(17);var o=l(r(36)),u=l(r(37)),c=l(r(55)),s=l(r(56)),i=l(r(51)),f=n(r(0)),d=l(r(1)),p=r(186),m=l(r(836)),v=l(r(3147));function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,i.default)(e);if(t){var n=(0,i.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,s.default)(this,a)}}var E=function(e){(0,c.default)(r,e);var a=h(r);function r(){var e;(0,o.default)(this,r);for(var t=arguments.length,n=new Array(t),l=0;l0&&void 0!==r[0]?r[0]:{},a=n.props.detail,e.abrupt("return",n.versionStore.fetchList(M(M({},t),{},{app_id:a.app_id})));case 3:case"end":return e.stop()}}),e)}))),n.handleVersionChange=function(e){var t=n.props.detail;(0,C.default)(n.state.formData,"version_id",e),n.setState({loadingFile:!0,valuesYaml:""}),n.fileStore.fetch({app_id:t.app_id,version_id:e}).then((function(){n.updateValuesYaml()}))},n.handleYamlChange=function(e){var t=n.state.formData;n.setState({valuesYaml:e},(function(){(0,C.default)(t,"conf",e)}))},n.handleOk=function(){n.props.onOk(n.state.formData)},n.state={currentStep:0,formData:M(M({},(0,T.default)(e.detail,["app_id","cluster_id","description","name","owner","version_id"])),{},{namespace:e.namespace,cluster:e.cluster,workspace:e.workspace}),valuesYaml:"",conf:(0,O.default)(e.detail,"env",""),loadingFile:!1},n.versionStore=new k.default,n.fileStore=new I.default,n}return(0,m.default)(r,[{key:"componentDidMount",value:function(){this.init()}},{key:"init",value:function(){var e=this;this.setState({loadingFile:!0}),this.versionStore.fetchList({app_id:this.props.detail.app_id}),this.fileStore.fetch({app_id:this.props.detail.app_id,version_id:this.state.formData.version_id}).then((function(){e.updateValuesYaml()}))}},{key:"render",value:function(){var e=this.props.detail,a=this.state,r=a.valuesYaml,n=a.conf,o=a.loadingFile;return g.default.createElement(N.default,(0,l.default)({title:t("EDIT_APP_SETTINGS")},this.props,{onOk:this.handleOk,width:1280,okText:t("OK")}),g.default.createElement(R.Columns,null,g.default.createElement(R.Column,null,g.default.createElement("div",{className:A.default.label},t("CURRENT_APP_VERSION")),g.default.createElement(R.Input,{className:"margin-b12",value:e.version.name,readOnly:!0}),g.default.createElement("div",{className:A.default.label},t("CURRENT_APP_SETTINGS_READONLY")),g.default.createElement(R.Loading,{spinning:!1},g.default.createElement(D.default,{mode:"yaml",className:A.default.readOnly,value:n,options:{readOnly:!0}}))),g.default.createElement(R.Column,null,g.default.createElement("div",{className:A.default.label},t("TARGET_APP_VERSION")),g.default.createElement(R.Select,{name:"version_id",className:"margin-b12",value:this.state.formData.version_id,options:this.sortedVersions,placeholder:t("VERSION_EMPTY_DESC"),pagination:(0,T.default)(this.versionStore.list,["page","limit","total"]),isLoading:this.versionStore.list.isLoading,onFetch:this.fetchVersions,onChange:this.handleVersionChange,optionRenderer:this.versionOptionRender,valueRenderer:this.versionOptionRender}),g.default.createElement("div",{className:A.default.label},t("TARGET_APP_SETTINGS")),g.default.createElement(R.Loading,{spinning:o},g.default.createElement(D.default,{mode:"yaml",value:r,onChange:this.handleYamlChange})))))}},{key:"sortedVersions",get:function(){return this.versionStore.list.data.map((function(e){return{label:e.name,value:e.version_id}})).sort((function(e,t){return(0,P.compareVersion)(t.name,e.name)}))}},{key:"latestVersion",get:function(){return(0,O.default)(this.sortedVersions,"[0].value","")}}]),r}(g.default.Component),i.propTypes={visible:b.default.bool,detail:b.default.object,store:b.default.object,cluster:b.default.string,workspace:b.default.string,namespace:b.default.string,onOk:b.default.func,onCancel:b.default.func},i.defaultProps={visible:!1,detail:{},onOk:function(){},onCancel:function(){}},s=f,(0,y.default)(s.prototype,"sortedVersions",[S.computed],Object.getOwnPropertyDescriptor(s.prototype,"sortedVersions"),s.prototype),(0,y.default)(s.prototype,"latestVersion",[S.computed],Object.getOwnPropertyDescriptor(s.prototype,"latestVersion"),s.prototype),c=s))||c;a.default=j},function(e,t,a){e.exports={label:"_3uikzxbVhWftLhURgoCd7X",readOnly:"_3khog5JHAOn8kW0CFIpLvI"}},function(e,a,r){"use strict";var n=r(157),l=r(20);r(12),r(11),r(6),r(48),r(9),r(13),r(10),r(4),r(23),r(24),r(17),r(62),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(45),r(11),r(6),r(28),r(48),r(42),r(34),r(15),r(9),r(13),r(10),r(4),r(436),r(23),r(57),r(24),r(193),r(17),r(62),r(7);var o=l(r(315)),u=l(r(58)),c=l(r(30)),s=l(r(36)),i=l(r(37)),f=l(r(55)),d=l(r(56)),p=l(r(51)),m=n(r(0)),v=l(r(1)),h=l(r(26)),E=r(186),y=l(r(787)),g=l(r(3154)),b=l(r(3155)),S=l(r(1381));function _(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function O(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,p.default)(e);if(t){var n=(0,p.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,d.default)(this,a)}}var C=function(e){(0,f.default)(r,e);var a=O(r);function r(e){var n;return(0,s.default)(this,r),(n=a.call(this,e)).getFormData=function(e){var t="https";if(e&&e.url){var a=e.url.match(/^(.*):\/\//);a[1]&&(t=a[1])}return function(e){for(var t=1;t86400||l<180)?r({message:t("SYNC_INTERVAL_TIP")}):void r():r({message:t("SYNC_INTERVAL_INVALID")}):r()},n.handleSubmit=function(e){n.props.onOk(e).then((function(){n.setState({formData:n.getFormData({})})}))},n.handleCancel=function(){n.props.onCancel(),n.setState({formData:n.getFormData({})})},n.handleUrlValidate=function(e){n.setState({isValid:e.isValid})},n.formRef=m.default.createRef(),n.state={formData:n.getFormData(e.detail)},n}return(0,i.default)(r,[{key:"componentDidUpdate",value:function(e){this.props.detail!==e.detail&&this.setState({formData:this.getFormData(this.props.detail)})}},{key:"render",value:function(){var e=this.props,a=e.detail,r=e.store,n=(e.onOk,e.onCancel,e.workspace),l=(0,u.default)(e,["detail","store","onOk","onCancel","workspace"]),c=a?"EDIT_APP_REPO":"ADD_APP_REPO";return m.default.createElement(y.default.Form,(0,o.default)({bodyClassName:S.default.body,title:t(c),icon:"firewall",width:691,data:this.state.formData,onOk:this.handleSubmit,onCancel:this.handleCancel},l),m.default.createElement(E.Form.Item,{label:t("NAME"),rules:[{required:!0,message:t("NAME_EMPTY_DESC")}]},m.default.createElement(E.Input,{name:"name",autoFocus:!0})),m.default.createElement(b.default,{store:r,workspace:n,formData:this.state.formData,onValidate:this.handleUrlValidate,isSubmitting:this.props.isSubmitting}),m.default.createElement(E.Form.Item,{label:t("SYNC_INTERVAL"),desc:t("SYNC_INTERVAL_DESC"),rules:[{required:!0,message:t("SYNC_PERIOD_EMPTY_DESC")},{validator:this.timeValidator}]},m.default.createElement(g.default,{name:"sync_period"})),m.default.createElement(E.Form.Item,{label:t("DESCRIPTION"),desc:t("DESCRIPTION_DESC")},m.default.createElement(E.TextArea,{name:"description",maxLength:256})))}}]),r}(m.Component);a.default=C,C.propTypes={store:v.default.object,detail:v.default.object,visible:v.default.bool,isSubmitting:v.default.bool,onOk:v.default.func,onCancel:v.default.func},C.defaultProps={visible:!1,isSubmitting:!1,onOk:function(){},onCancel:function(){}}},function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(48),r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(48),r(42),r(4),r(23),r(57),r(17);var l=n(r(36)),o=n(r(37)),u=n(r(55)),c=n(r(56)),s=n(r(51)),i=n(r(0)),f=r(186),d=n(r(1381));function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,s.default)(e);if(t){var n=(0,s.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,c.default)(this,a)}}var m=function(e){(0,u.default)(r,e);var a=p(r);function r(e){var t;return(0,l.default)(this,r),(t=a.call(this,e)).handleChangeValue=function(e,a){var r=t.props.onChange,n=t.state.unit;t.setState({value:a}),r(a?"".concat(a).concat(n):a)},t.handleChangeUnit=function(e){var a=t.props.onChange,r=t.state.value;t.setState({unit:e}),a(r?"".concat(r).concat(e):r)},t.state={value:e.value.slice(0,-1),unit:e.value.slice(-1)},t}return(0,o.default)(r,[{key:"render",value:function(){var e=this.state,t=e.value,a=e.unit;return i.default.createElement("div",{className:d.default.timeInput},i.default.createElement(f.Input,{className:d.default.input,value:t,onChange:this.handleChangeValue}),i.default.createElement(f.Select,{className:d.default.select,value:a,options:this.options,onChange:this.handleChangeUnit}))}},{key:"options",get:function(){return[{label:t("SECONDS"),value:"s"},{label:t("MINUTES"),value:"m"},{label:t("HOURS"),value:"h"}]}}]),r}(i.default.Component);a.default=m},function(e,a,r){"use strict";var n=r(20);r(12),r(5),r(11),r(6),r(16),r(9),r(13),r(10),r(4),r(23),r(139),r(24),r(17),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(249),r(45),r(5),r(11),r(6),r(28),r(191),r(42),r(16),r(159),r(34),r(15),r(9),r(13),r(10),r(4),r(23),r(57),r(139),r(251),r(24),r(252),r(193),r(17),r(7);var l,o,u,c,s,i,f,d,p,m=n(r(30)),v=n(r(65)),h=n(r(36)),E=n(r(88)),y=n(r(37)),g=n(r(55)),b=n(r(56)),S=n(r(51)),_=n(r(49)),O=(n(r(66)),n(r(0))),C=n(r(1)),T=r(14),R=r(239),D=n(r(3156)),N=n(r(63)),k=n(r(26)),I=n(r(74)),P=n(r(972)),A=r(916),w=r(186),M=n(r(1381));function L(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function j(e){for(var t=1;t0&&y.default.createElement(_.Button,{type:"control",onClick:this.handlePrev},t("PREVIOUS")),e0&&void 0!==u[0]?u[0]:{},r=e.state.formData,n=r.workspace,l=r.cluster,!n||!l){t.next=5;break}return t.next=5,e.projectStore.fetchList(w(w({},a),{},{workspace:n,cluster:l,ascending:!0}));case 5:case"end":return t.stop()}}),t)}))),e.handleWorkspaceChange=function(){e.fetchClusters(),(0,C.default)(e.state.formData,"cluster",""),(0,C.default)(e.state.formData,"namespace","")},e.handleClusterChange=function(){e.fetchNamespaces(),(0,C.default)(e.state.formData,"namespace","")},e.handleSubmit=function(){var t=e.formRef.current;t&&t.validate((function(){Object.assign(e.props.formData,w({},e.state.formData)),e.hideForm()}))},e.showForm=function(){e.setState({showForm:!0})},e.hideForm=function(){e.setState({showForm:!1})},e.projectOptionRenderer=function(e){return D.default.createElement("span",{className:P.default.option},e.isFedManaged?D.default.createElement("img",{className:P.default.indicator,src:"/assets/cluster.svg"}):D.default.createElement(E.Icon,{name:"project"}),e.label,e.isFedManaged&&D.default.createElement(E.Tooltip,{content:t("FEDPROJECT_CANNOT_DEPLOY_APP_TIP")},D.default.createElement(E.Icon,{className:P.default.tip,name:"question"})))},e.clusterOptionRenderer=function(e){return D.default.createElement("div",null,D.default.createElement("div",null,e.label),!e.cluster.isReady&&D.default.createElement("div",null,D.default.createElement(g.default,{data:e.cluster,noTip:!0})))},e}return(0,d.default)(c,[{key:"componentDidMount",value:function(){this.init()}},{key:"init",value:(n=(0,i.default)(o.default.mark((function e(){var t,a,r,n,l;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.setState({initializing:!0}),t=this.state.formData,a=t.workspace,r=t.cluster,n=t.namespace,e.next=4,this.fetchWorkspaces();case 4:return a||(0,C.default)(this.state.formData,"workspace",(0,_.default)(this.workspaces,"[0].value")),e.next=7,this.fetchClusters();case 7:return r||(0,C.default)(this.state.formData,"cluster",(0,_.default)(this.clusters,"[0].value")),e.next=10,this.fetchNamespaces();case 10:n||(l=this.namespaces.find((function(e){return!e.disabled}))||{},(0,C.default)(this.state.formData,"namespace",l.value||"")),Object.assign(this.props.formData,this.state.formData),this.setState({initializing:!1});case 13:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"fetchWorkspaces",value:(r=(0,i.default)(o.default.mark((function e(){var t,a=arguments;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=a.length>0&&void 0!==a[0]?a[0]:{},e.next=3,this.workspaceStore.fetchList(w(w({},t),{},{limit:-1,ascending:!0}));case 3:case"end":return e.stop()}}),e,this)}))),function(){return r.apply(this,arguments)})},{key:"fetchClusters",value:(a=(0,i.default)(o.default.mark((function e(){var t,a,r=arguments;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=r.length>0&&void 0!==r[0]?r[0]:{},!(a=this.state.formData.workspace)){e.next=5;break}return e.next=5,this.workspaceStore.fetchClusters(w(w({},t),{},{workspace:a,limit:-1,ascending:!0}));case 5:case"end":return e.stop()}}),e,this)}))),function(){return a.apply(this,arguments)})},{key:"renderPlacement",value:function(){var e=this.props.formData,a=e.namespace,r=e.workspace,n=e.cluster;return D.default.createElement("div",{className:P.default.placement},D.default.createElement(b.default,{className:P.default.text,title:(0,I.showNameAndAlias)(r,"workspace"),description:t("WORKSPACE")}),D.default.createElement(b.default,{className:P.default.text,title:(0,I.showNameAndAlias)(n,"cluster"),description:t("CLUSTER")}),D.default.createElement(b.default,{className:P.default.text,icon:"project",title:(0,I.showNameAndAlias)(a,"project",{cluster:n}),description:t("PROJECT")}),D.default.createElement(E.Icon,{className:P.default.icon,name:"chevron-down",size:20}))}},{key:"renderForm",value:function(){var e=this.props.workspace;return D.default.createElement("div",{className:P.default.form},D.default.createElement(E.Form,{ref:this.formRef,type:"inner",data:this.state.formData},D.default.createElement(E.Columns,null,D.default.createElement(E.Column,null,D.default.createElement(E.Form.Item,{label:t("WORKSPACE")},D.default.createElement(E.Select,{name:"workspace",placeholder:t("WORKSPACE_EMPTY_DESC"),options:this.workspaces,onChange:this.handleWorkspaceChange,prefixIcon:D.default.createElement(E.Icon,{name:"enterprise",size:16}),disabled:!!e}))),D.default.createElement(E.Column,null,D.default.createElement(E.Form.Item,{label:t("CLUSTER")},D.default.createElement(E.Select,{name:"cluster",placeholder:" ",options:this.clusters,onChange:this.handleClusterChange,optionRenderer:this.clusterOptionRenderer,prefixIcon:D.default.createElement(E.Icon,{name:"cluster",size:16}),showTip:!0}))),D.default.createElement(E.Column,null,D.default.createElement(E.Form.Item,{label:t("PROJECT"),rules:[{required:!0,message:t("PROJECT_NOT_SELECT_DESC")}]},D.default.createElement(E.Select,{name:"namespace",placeholder:" ",options:this.namespaces,pagination:(0,O.default)(this.projectStore.list,["page","limit","total"]),isLoading:this.projectStore.list.isLoading,onFetch:this.fetchNamespaces,valueRenderer:this.projectOptionRenderer,optionRenderer:this.projectOptionRenderer,clearable:!0}))))),D.default.createElement(S.default,{className:P.default.confirm,onOk:this.handleSubmit,onCancel:this.hideForm}))}},{key:"render",value:function(){var e=this.state,a=e.showForm,r=e.formData,n=e.initializing;return a?this.renderForm():D.default.createElement("div",{className:(0,y.default)(P.default.wrapper,(0,u.default)({},P.default.expand,a)),onClick:this.showForm},r.namespace?this.renderPlacement():D.default.createElement("div",{className:P.default.placeholder},n?D.default.createElement(E.Loading,{className:"text-center"}):t("PROJECT_NOT_SELECT_DESC")))}},{key:"workspaces",get:function(){return this.workspaceStore.list.data.filter((function(e){return e.name!==globals.config.systemWorkspace})).map((function(e){return{label:(0,I.showNameAndAlias)(e),value:e.name}}))}},{key:"clusters",get:function(){return this.workspaceStore.clusters.data.map((function(e){return{label:(0,I.showNameAndAlias)(e),value:e.name,disabled:!e.isReady,cluster:e}}))}},{key:"namespaces",get:function(){return this.projectStore.list.data.filter((function(e){return"Terminating"!==e.status})).map((function(e){return{label:(0,I.showNameAndAlias)(e),value:e.name,disabled:e.isFedManaged,isFedManaged:e.isFedManaged}}))}}]),c}(D.Component),(0,h.default)(s.prototype,"workspaces",[T.computed],Object.getOwnPropertyDescriptor(s.prototype,"workspaces"),s.prototype),(0,h.default)(s.prototype,"clusters",[T.computed],Object.getOwnPropertyDescriptor(s.prototype,"clusters"),s.prototype),(0,h.default)(s.prototype,"namespaces",[T.computed],Object.getOwnPropertyDescriptor(s.prototype,"namespaces"),s.prototype),c=s))||c;a.default=L},function(e,t,a){e.exports={wrapper:"_1-zzsgQcL6AnKOs_Sxiu20",placeholder:"_1VOZnqeyx9mHYMTD8k_Q3_",form:"_1AI73FeUImn3gHEsO9StyJ",confirm:"_3w7hJkkJRGqAW2U6H4l_3l",placement:"_2RflgzEx5EebIR0t5yYHhq",text:"_3sMJ4G-DVsOmo9TkX6Xlhr",icon:"_19fvfv87icQ9tqCf2bPw6L",option:"_3GsdSpU7z-pczQtQ6zwAgG",tip:"-gsMZiJ2S2gdBb2vcv9oy"}},function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(42),r(4),r(23),r(57),r(17);var l,o=n(r(36)),u=n(r(37)),c=n(r(55)),s=n(r(56)),i=n(r(51)),f=n(r(0)),d=n(r(74)),p=r(14),m=r(239),v=r(186),h=n(r(841)),E=n(r(850)),y=r(52),g=r(894),b=n(r(3192)),S=n(r(3194));function _(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,i.default)(e);if(t){var n=(0,i.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,s.default)(this,a)}}var O=(0,m.observer)(l=function(e){(0,c.default)(r,e);var a=_(r);function r(){var e;(0,o.default)(this,r);for(var t=arguments.length,n=new Array(t),l=0;l1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],o=t.type,u=t.form,c=e.state.value,s="object"===(0,l.default)(t.hidden)?(0,v.default)(c,t.hidden.value,null)===t.hidden.condition:(0,v.default)(c,t.hidden,!1);if(s)return null;if("object"===o){var i=(0,m.default)(t.properties,(function(t,a){return e.renderSchemaForm(t,a,[].concat((0,n.default)(r),[a]))}));if((0,b.default)(i)||i.every((function(e){return!e})))return null;var f=t.properties&&(0,E.default)(t.properties,(function(e){return(0,y.default)(e,"properties")}));return d.default.createElement("div",{key:a,className:f?T.default.parentGroup:T.default.group},t.title&&d.default.createElement("div",{className:T.default.title},t.title),t.description&&d.default.createElement("p",{className:T.default.description},t.description),i)}return u?e.renderFormItem(t,a,r):null},e}return(0,c.default)(a,[{key:"handleFormChange",value:function(e){this.setState({value:e}),this.triggerChange(e)}},{key:"render",value:function(){var e=this.props.schema;return this.renderSchemaForm(e)}}]),a}(d.default.Component);t.default=D,D.propTypes={schema:p.default.object,value:p.default.object,onChange:p.default.func},D.defaultProps={onChange:function(){}}},function(e,t,a){e.exports={group:"_3xTfalXI7Y64g0li2u6vG2",title:"_182KrRnt2udLzkiRSMx9JE",description:"_2839u1rW56wEbtmaeCpjpO",boolean:"_3mnMZpC4gF0oolH9K1bn2W",parentGroup:"HW1rPNOyhUpkrn584aGu-"}},function(e,t,a){e.exports={wrapper:"TLG9iSoooMsoVDmn61N6I",title:"_1eUI0tEXI3u8lHvjGDMO3f",switch:"_32tTvAbdJ_mXTYRvGpAE2n",codeWrapper:"_3uRVlVgjuj0HJpjr9wInob",schemaWrapper:"_3VOv76O-06CKHBW5mIv-lM",loading:"_2ckKN8H46Wi058LIpHKyNF"}},function(e,a,r){"use strict";r(15);var n=r(157),l=r(20);r(18),r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(18),r(42),r(4),r(23),r(57),r(17);var o=l(r(30)),u=l(r(36)),c=l(r(37)),s=l(r(55)),i=l(r(56)),f=l(r(51)),d=n(r(0)),p=l(r(3)),m=l(r(3196));function v(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,f.default)(e);if(t){var n=(0,f.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,i.default)(this,a)}}var h=function(e){(0,s.default)(r,e);var a=v(r);function r(){return(0,u.default)(this,r),a.apply(this,arguments)}return(0,c.default)(r,[{key:"render",value:function(){var e=this.props,a=e.steps,r=e.current;return d.default.createElement("div",{className:m.default.wrapper},a.map((function(e,a){var n;return d.default.createElement("div",{key:e.title},d.default.createElement("span",{className:(0,p.default)(m.default.indicator,(n={},(0,o.default)(n,m.default.fullfill,r>a),(0,o.default)(n,m.default.current,r===a),(0,o.default)(n,m.default.pending,r0?g.default.createElement("ul",null,n.map((function(e,t){return g.default.createElement("li",{key:t},g.default.createElement(D.default,{src:e}))}))):g.default.createElement("p",null,t("NONE"))))}},{key:"renderConfigFiles",value:function(){var e=this.versionStore.detail,t=this.fileStore.files;return g.default.createElement("div",null,g.default.createElement(P.default,{className:j.default.downloadInfo,fileStore:this.fileStore,packageName:this.getPackageName(),updateTime:e.update_time||e.status_time,appId:e.app_id,versionId:e.version_id,hasPackage:!0}),g.default.createElement(I.default,{files:t}))}},{key:"renderFooter",value:function(){var e=this.props,a=e.isSubmitting,r=e.onReject,n=e.onOk;return g.default.createElement("div",{className:j.default.footer},g.default.createElement(O.Button,{type:"danger",onClick:r},t("REJECT")),g.default.createElement(O.Button,{type:"control",loading:a,disabled:a,onClick:n},t("APPROVE")))}},{key:"render",value:function(){var e=this.props,a=e.visible,r=e.canHandle,n=(0,c.default)(e,["visible","canHandle"]),l=(0,T.toJS)(this.versionStore.detail),s=this.state.tab,i=(0,C.default)(this.fileStore,"files",{})["README.md"];return g.default.createElement(R.default,(0,o.default)({bodyClassName:(0,_.default)(j.default.body,(0,u.default)({},j.default.hideFooter,!r)),visible:a},n,{rightScreen:!0,hideFooter:!0}),g.default.createElement(O.Tabs,{type:"button",activeName:s,onChange:this.handleTabChange},g.default.createElement(U,{label:t("APP_INFORMATION"),name:"appInfo"},this.renderBaseInfo()),g.default.createElement(U,{label:t("DOCUMENTATION"),name:"readme"},g.default.createElement(k.default,{readme:i})),g.default.createElement(U,{label:t("CHART_FILES"),name:"configFiles"},this.renderConfigFiles()),g.default.createElement(U,{label:t("UPDATE_LOG"),name:"updateLog"},g.default.createElement(A.default,{description:l.description}))),r&&this.renderFooter())}}]),r}(g.Component),f.propTypes={visible:b.default.bool,canHandle:b.default.bool,detail:b.default.object,onReject:b.default.func,onOk:b.default.func,onCancel:b.default.func},f.defaultProps={visible:!1,canHandle:!1,detail:{},onReject:function(){},onOk:function(){},onCancel:function(){}},i=d))||i;a.default=F},function(e,a,r){"use strict";r(15);var n=r(20);r(12),r(109),r(16),r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(109),r(45),r(42),r(16),r(4),r(23),r(57),r(24),r(193),r(17);var l,o,u,c=n(r(36)),s=n(r(37)),i=n(r(55)),f=n(r(56)),d=n(r(51)),p=n(r(836)),m=n(r(1001)),v=r(239),h=n(r(1)),E=n(r(0)),y=r(52),g=n(r(3201));function b(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,d.default)(e);if(t){var n=(0,d.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,f.default)(this,a)}}var S=(0,v.observer)((u=o=function(e){(0,i.default)(r,e);var a=b(r);function r(){return(0,c.default)(this,r),a.apply(this,arguments)}return(0,s.default)(r,[{key:"renderBase",value:function(){var e=this.props,a=e.detail,r=e.versionName,n=a.home?/^https?:\/\//.test(a.home)?a.home:"http://".concat(a.home):a.home;return E.default.createElement("div",{className:g.default.base},E.default.createElement("div",{className:g.default.title},t("BASIC_INFORMATION")),E.default.createElement("div",{className:g.default.info},E.default.createElement("div",{className:g.default.icon},E.default.createElement(p.default,{src:a.icon,iconLetter:a.name,iconSize:100})),E.default.createElement("div",{className:g.default.words},E.default.createElement("dl",null,E.default.createElement("dd",null,a.name),E.default.createElement("dt",null,t("NAME"))),E.default.createElement("dl",null,E.default.createElement("dd",null,globals.config.showOutSiteLink&&E.default.createElement("a",{href:(0,y.hrefControl)(n),target:"_blank",rel:"noopener noreferrer"},a.home),!a.home&&E.default.createElement("span",null,"-")),E.default.createElement("dt",null,t("SERVICE_PROVIDER_WEBSITE")))),E.default.createElement("div",null,E.default.createElement("dl",null,E.default.createElement("dd",null,r),E.default.createElement("dt",null,t("VERSION"))),E.default.createElement("dl",null,E.default.createElement("dd",null,(0,y.showNameAndAlias)(a.isv,"workspace")),E.default.createElement("dt",null,t("WORKSPACE"))))),E.default.createElement("div",{className:g.default.description},E.default.createElement("dl",null,E.default.createElement("pre",null,a.description||"-"),E.default.createElement("dt",null,t("INTRODUCTION")))),E.default.createElement("div",{className:g.default.title},t("APP_DESCRIPTION")),E.default.createElement("div",null,E.default.createElement(m.default,{source:a.abstraction||t("NONE")})))}},{key:"render",value:function(){return E.default.createElement("div",{className:g.default.main},this.renderBase())}}]),r}(E.default.Component),o.propTypes={detail:h.default.object,versionName:h.default.string},o.defaultProps={detail:{},versionName:""},l=u))||l;a.default=S},function(e,t,a){e.exports={base:"_3RhG54Afc3jTrbfar2yUo0",info:"_2pPSF0uuUVhnDFREH_W1RE",icon:"sN1v3yg2lJsboH2B2H53J",words:"vEULlxo--39bvTHCeQZnd",description:"_1Sv5X8JxKxpsz_-ZoHkVMt",title:"_1PRTS92xyJ2yUX613onuo4",banLink:"VE_ECtfsbM2wxJue7ZAW3"}},function(e,a,r){"use strict";r(15);var n=r(20);r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(42),r(4),r(23),r(57),r(17);var l=n(r(36)),o=n(r(37)),u=n(r(55)),c=n(r(56)),s=n(r(51)),i=n(r(0)),f=n(r(1)),d=n(r(1001)),p=n(r(3203));function m(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,s.default)(e);if(t){var n=(0,s.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,c.default)(this,a)}}var v=function(e){(0,u.default)(r,e);var a=m(r);function r(){return(0,l.default)(this,r),a.apply(this,arguments)}return(0,o.default)(r,[{key:"render",value:function(){var e=this.props.readme;return e?i.default.createElement(d.default,{source:e,className:p.default.markdown}):i.default.createElement("p",null,t("NO_DOCUMENT_FOUND"))}}]),r}(i.default.PureComponent);a.default=v,v.propTypes={readme:f.default.string},v.defaultProps={readme:""}},function(e,t,a){e.exports={markdown:"V_-mqFB-1z1gAg3djZCMg"}},function(e,a,r){"use strict";r(15);var n=r(20);r(18),r(9),r(10),r(4),r(23),r(24),r(17),r(64),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(18),r(191),r(42),r(159),r(9),r(10),r(4),r(23),r(57),r(24),r(17),r(64);var l,o,u,c,s,i=n(r(30)),f=n(r(65)),d=n(r(36)),p=n(r(37)),m=n(r(88)),v=n(r(55)),h=n(r(56)),E=n(r(51)),y=(n(r(66)),n(r(49))),g=n(r(0)),b=r(239),S=r(186),_=r(14),O=r(909),C=n(r(3)),T=n(r(1268)),R=n(r(841)),D=n(r(3205));function N(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,E.default)(e);if(t){var n=(0,E.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,h.default)(this,a)}}var k=(0,b.observer)((o=function(e){(0,v.default)(r,e);var a=N(r);function r(e){var t;return(0,d.default)(this,r),(t=a.call(this,e)).DEFAULT_PREVIEW_FILE="values.yaml",(0,f.default)(t,"changeMode",u,(0,m.default)(t)),(0,f.default)(t,"changeSelectFile",c,(0,m.default)(t)),(0,f.default)(t,"changePreviewType",s,(0,m.default)(t)),t.handleDownload=function(){var e=t.props.files[t.selectFile];"yaml"===t.mode?t.downloadAsYaml(e):"json"===t.mode&&t.downloadAsJSON(e)},(0,_.extendObservable)((0,m.default)(t),{selectFile:t.defaultSelectFile,mode:"yaml"}),t}return(0,p.default)(r,[{key:"downloadAsJSON",value:function(e){var t=this.selectFile.replace(/yaml$/,"json"),a="";try{a=JSON.stringify(T.default.safeLoad(e),null,2)}catch(e){a=e}this.saveAs(a,t)}},{key:"downloadAsYaml",value:function(e){var t=this.selectFile;this.saveAs(e,t)}},{key:"saveAs",value:function(e,t){var a=new Blob([e],{type:"text/plain;charset=utf-8"});(0,O.saveAs)(a,t)}},{key:"render",value:function(){return this.selectFile?g.default.createElement("div",{className:D.default.wrapper},g.default.createElement("div",{className:D.default.topbar},g.default.createElement("div",{className:D.default.icon},g.default.createElement(S.Icon,{name:"coding",size:20}),g.default.createElement("span",null,t("CHART_FILES"))),this.renderFileSelect()),g.default.createElement("div",{className:D.default.edit},this.renderPreviewToolbar(),this.renderPreviewContent())):g.default.createElement("p",null,t("NO_APP_CHART_FILE_FOUND"))}},{key:"renderFileSelect",value:function(){return g.default.createElement(S.Select,{defaultValue:this.selectFile,onChange:this.changeSelectFile,options:this.fileOptions})}},{key:"renderPreviewToolbar",value:function(){return g.default.createElement("div",{className:D.default.toolbar},g.default.createElement(S.Icon,{className:D.default.download,name:"download",size:20,color:{primary:"#fff"},onClick:this.handleDownload,clickable:!0,changeable:!0}))}},{key:"renderPreviewTypeBtn",value:function(e,t){var a=this;return g.default.createElement("span",{className:(0,C.default)(D.default.preview_btn,(0,i.default)({},D.default.active,this.mode===e)),onClick:function(){return a.changePreviewType(e)}},t)}},{key:"renderPreviewContent",value:function(){return g.default.createElement(R.default,{mode:this.mode,value:this.props.files[this.selectFile],options:{readOnly:!0}})}},{key:"fileOptions",get:function(){var e=this.props.files,t=void 0===e?{}:e;return Object.keys(t).map((function(e){return{label:e,value:e}}))}},{key:"defaultSelectFile",get:function(){var e=this.props.files,t=(void 0===e?{}:e)[this.DEFAULT_PREVIEW_FILE],a=this.fileOptions.length?this.fileOptions[0].value:"";return t?this.DEFAULT_PREVIEW_FILE:a}}]),r}(g.default.Component),(0,y.default)(o.prototype,"fileOptions",[_.computed],Object.getOwnPropertyDescriptor(o.prototype,"fileOptions"),o.prototype),(0,y.default)(o.prototype,"defaultSelectFile",[_.computed],Object.getOwnPropertyDescriptor(o.prototype,"defaultSelectFile"),o.prototype),u=(0,y.default)(o.prototype,"changeMode",[_.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(t){e.mode=t}}}),c=(0,y.default)(o.prototype,"changeSelectFile",[_.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(t){e.selectFile=t}}}),s=(0,y.default)(o.prototype,"changePreviewType",[_.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(t){e.mode=t}}}),l=o))||l;a.default=k},function(e,t,a){e.exports={wrapper:"C9RBDezZTSZ9wuANVHPsi",topbar:"_1qDSB0O58SB7_GXNCw7_dc",icon:"_3srqZVcOkSMEixaltbPZi7",edit:"_2jL4KvBNHuC4jU_RiiIi4_",toolbar:"_2_GUQMPwxTWMMjXHWFT_Ka",download:"_3jjk2LxhatXGcY7nGnb2Fl",preview_btn:"_20Qa4VKbEwotZP_JgGCEar",active:"_3QE1zwmNIDX4CN7ZNPOTga"}},function(e,a,r){"use strict";r(15);var n=r(20);r(12),r(109),r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(109),r(45),r(42),r(4),r(23),r(57),r(17);var l=n(r(36)),o=n(r(37)),u=n(r(55)),c=n(r(56)),s=n(r(51)),i=n(r(0)),f=n(r(1)),d=n(r(3207));function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,s.default)(e);if(t){var n=(0,s.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,c.default)(this,a)}}var m=function(e){(0,u.default)(r,e);var a=p(r);function r(){return(0,l.default)(this,r),a.apply(this,arguments)}return(0,o.default)(r,[{key:"render",value:function(){var e=this.props.description;return i.default.createElement("div",{className:d.default.main},i.default.createElement("div",{className:d.default.title},t("UPDATE_LOG")),i.default.createElement("pre",{className:d.default.updateLog},e||t("NO_UPDATE_LOG_DESC")))}}]),r}(i.default.PureComponent);a.default=m,m.propTypes={description:f.default.string},m.defaultProps={description:""}},function(e,t,a){e.exports={main:"_2u4FA6A7MCUfIFe4Z8dqKO",title:"_1xP27HuPsxtLPGTg0MT-St"}},function(e,t,a){e.exports={body:"_2IouoNUd7iTI3nxkqsDwX7",hideFooter:"_3c8gxa4F0ILHsBRr299LfN",downloadInfo:"_3KDp6pP6cAe17QzOMgHY9_",screenshots:"_2hMAd_6nxqkUS9UaXkSw-a",title:"_1CJO5lsaTds2qNIyfcMs4u",footer:"_3qPgJzENw1ErWJvWwB6Ij6"}},function(e,a,r){"use strict";r(15);var n=r(157),l=r(20);r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(42),r(4),r(23),r(57),r(17);var o=l(r(315)),u=l(r(58)),c=l(r(36)),s=l(r(37)),i=l(r(55)),f=l(r(56)),d=l(r(51)),p=n(r(0)),m=l(r(1)),v=r(186),h=l(r(787)),E=l(r(3210));function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,d.default)(e);if(t){var n=(0,d.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,f.default)(this,a)}}var g=function(e){(0,i.default)(r,e);var a=y(r);function r(e){var t;return(0,c.default)(this,r),(t=a.call(this,e)).handleReject=function(){return t.formRef.validate((function(){return t.props.onOk({version_id:t.props.versionId,message:t.state.message})}))},t.changeMessage=function(e){t.setState({message:e})},t.state={message:""},t}return(0,s.default)(r,[{key:"render",value:function(){var e=this,a=this.props,r=a.visible,n=(0,u.default)(a,["visible"]),l={message:this.state.message};return p.default.createElement(h.default,(0,o.default)({width:600,visible:r},n,{onOk:this.handleReject,footerClassName:E.default.footer}),p.default.createElement(v.Form,{data:l,ref:function(t){e.formRef=t},className:E.default.rejectForm},p.default.createElement(v.Form.Item,{rules:[{required:!0,message:t("REJECT_REASON_TIP")}]},p.default.createElement(v.TextArea,{name:"message",onChange:this.changeMessage}))))}}]),r}(p.Component);a.default=g,g.propTypes={versionId:m.default.string,onOk:m.default.func,onCancel:m.default.func},g.defaultProps={versionId:"",onOk:function(){},onCancel:function(){}}},function(e,t,a){e.exports={rejectForm:"_2HRp9_fNHxQCirZ1195MMj",footer:"_2lsP4pTvid2tIQnqGzOeDI"}},function(e,a,r){"use strict";r(15);var n=r(157),l=r(20);r(12),r(109),r(84),r(18),r(16),r(4),r(23),r(17),r(85),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(109),r(45),r(84),r(18),r(42),r(16),r(4),r(23),r(57),r(17),r(85);var o=l(r(315)),u=l(r(30)),c=l(r(58)),s=l(r(36)),i=l(r(37)),f=l(r(55)),d=l(r(56)),p=l(r(51)),m=n(r(0)),v=l(r(1)),h=l(r(3)),E=r(186),y=l(r(806)),g=l(r(787)),b=r(327),S=l(r(3212));function _(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,p.default)(e);if(t){var n=(0,p.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,d.default)(this,a)}}var O=function(e){(0,f.default)(r,e);var a=_(r);function r(e){var n;return(0,s.default)(this,r),(n=a.call(this,e)).changeName=function(e){n.setState({name:e})},n.changeIcon=function(e){n.setState({description:e})},n.nameValidator=function(e,a,r){if(!a)return r();var l=n.props,o=l.detail,u=l.categoryNames;if(a!==o.name&&u.includes(a))return r({message:t("NAME_EXIST_DESC"),field:e.field});r()},n.createOrModify=function(){var e={name:n.state.name,description:n.state.description,locale:"{}"},t=n.props.detail.category_id;t&&(e.category_id=t),n.formRef.validate((function(){n.props.onOk(e)}))},n.onCancel=function(){n.setState({name:"",description:""}),n.props.onCancel()},n.state={name:n.props.detail.name,description:n.props.detail.description},n}return(0,i.default)(r,[{key:"componentDidUpdate",value:function(e){var t=this.props.detail;(0,y.default)(t,e.detail)||this.setState({name:t.name,description:t.description})}},{key:"render",value:function(){var e=this,a=this.props,r=a.visible,n=(0,c.default)(a,["visible"]),l={name:this.state.name,description:this.state.description};return m.default.createElement(g.default,(0,o.default)({width:600,visible:r,footerClassName:S.default.footer},n,{onOk:this.createOrModify,onCancel:this.onCancel}),m.default.createElement(E.Form,{data:l,ref:function(t){e.formRef=t}},m.default.createElement(E.Form.Item,{label:t("NAME"),desc:t("CATEGORY_NAME_DESC"),rules:[{required:!0,message:t("ENTER_CATEGORY_NAME_TIP")},{validator:this.nameValidator}]},m.default.createElement(E.Input,{name:"name",onChange:this.changeName,maxLength:20})),m.default.createElement(E.Form.Item,{label:t("ICON")},m.default.createElement("div",{name:"description",className:S.default.icons,value:l.description},b.CATEGORY_ICONS.map((function(t){return m.default.createElement("label",{key:t,onClick:function(){return e.changeIcon(t)},className:(0,h.default)((0,u.default)({},S.default.active,t===l.description))},m.default.createElement(E.Icon,{name:t,size:20}))}))))))}}]),r}(m.Component);a.default=O,O.propTypes={detail:v.default.object,categoryNames:v.default.array,onOk:v.default.func,onCancel:v.default.func},O.defaultProps={detail:{},categoryNames:[],onOk:function(){},onCancel:function(){}}},function(e,t,a){e.exports={footer:"_2Qp-Oq8oA7HhDGSXylc-1b",icons:"XKu-mU-Dz1wbD5ksgEs7z",active:"_3i5IWpdoNOUzlLf-hGhkbI"}},function(e,a,r){"use strict";r(15);var n=r(157),l=r(20);r(18),r(16),r(137),r(4),r(23),r(24),r(17),r(64),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(18),r(42),r(16),r(137),r(4),r(23),r(57),r(24),r(17),r(64);var o=l(r(61)),u=l(r(315)),c=l(r(36)),s=l(r(37)),i=l(r(55)),f=l(r(56)),d=l(r(51)),p=n(r(0)),m=l(r(1)),v=r(186),h=l(r(787)),E=l(r(3214));function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,d.default)(e);if(t){var n=(0,d.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,f.default)(this,a)}}var g=function(e){(0,i.default)(r,e);var a=y(r);function r(e){var t;return(0,c.default)(this,r),(t=a.call(this,e)).handleChange=function(e){t.setState({categoryId:e})},t.adjustCategory=function(){t.props.onOk({category_id:t.state.categoryId})},t.onCancel=function(){t.setState({categoryId:""}),t.props.onCancel()},t.state={categoryId:t.props.categoryId},t}return(0,s.default)(r,[{key:"render",value:function(){var e=this,a=Object.assign({},this.props),r={category_id:this.state.categoryId};return p.default.createElement(h.default,(0,u.default)({width:600,footerClassName:E.default.footer},a,{onOk:this.adjustCategory,onCancel:this.onCancel}),p.default.createElement(v.Form,{className:E.default.form,data:r,ref:function(t){e.formRef=t}},p.default.createElement(v.Form.Item,{label:t("CHANGE_CATEGORY"),desc:t("CHANGE_CATEGORY_DESC")},p.default.createElement(v.Select,{name:"category_id",options:this.categories,value:this.state.categoryId,onChange:this.handleChange}))))}},{key:"categories",get:function(){return(0,o.default)(this.props.categories.map((function(e){var a=e.name,r=e.category_id;return{label:t("APP_CATE_".concat(a.toUpperCase().replace(/[^A-Z]+/g,"_")),{defaultValue:a}),value:r}})))}}]),r}(p.Component);a.default=g,g.propTypes={categories:m.default.array,categoryId:m.default.string,onOk:m.default.func,onCancel:m.default.func},g.defaultProps={categories:[],categoryId:"",onOk:function(){},onCancel:function(){}}},function(e,t,a){e.exports={footer:"_2TvTf_D-_JM0vtni7wgWQZ",form:"_3wLMP_UWlRBwrQYi452Fek"}},function(e,a,r){"use strict";r(15);var n=r(157),l=r(20);r(11),r(137),r(4),r(23),r(24),r(17),r(64),r(75),r(818),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(11),r(42),r(137),r(4),r(436),r(319),r(22),r(23),r(57),r(24),r(17),r(64),r(75),r(818);var o=l(r(315)),u=l(r(43));r(41);var c=l(r(44)),s=l(r(36)),i=l(r(37)),f=l(r(55)),d=l(r(56)),p=l(r(51)),m=n(r(0)),v=l(r(1)),h=l(r(26)),E=l(r(135)),y=r(186),g=l(r(966)),b=l(r(787)),S=l(r(984)),_=r(815);function O(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,p.default)(e);if(t){var n=(0,p.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,d.default)(this,a)}}var C=function(e){(0,f.default)(r,e);var a=O(r);function r(e){var n;(0,s.default)(this,r),(n=a.call(this,e)).getSliderMax=function(e){return e?(0,h.default)(n.valueSchema,"properties.".concat(e,".properties.volume.sliderMax"),2048):(0,h.default)(n.valueSchema,"properties.volume.sliderMax",2048)},n.onChange=function(e){var a=(0,_.validateStorage)(e,{app_id:n.props.app_id,nodeRole:n.state.nodeRole,max:n.max,oldStorage:n.oldStorage}).message,r=void 0===a?"":a,l=parseFloat(e);l0&&e.trim().startsWith("0")?n.setState({storage:e.replace(/^0*/,""),errorMessage:r}):n.setState({storage:e,errorMessage:r})},n.onRoleChange=function(e){var t=n.props.storages,a=(void 0===t?{}:t)[e]||{};n.oldStorage=a,n.max="zookeeper"===e?100:2048,n.setState({nodeRole:e,storage:a});var r=n.getSliderMax(e);n.max=r},n.onOk=(0,c.default)(u.default.mark((function e(){var t,a,r,l,o;return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!n.state.errorMessage){e.next=2;break}return e.abrupt("return");case 2:return t=n.props,a=t.workspace,r=t.namespace,l=t.cluster,o=t.cluster_id,e.next=5,n.props.store.updateStorage({workspace:a,namespace:r,cluster:l,cluster_id:o,storage:n.state.storage,nodeRole:n.state.nodeRole});case 5:n.props.onOk();case 6:case"end":return e.stop()}}),e)}))),n.onCancel=function(){n.setState({categoryId:""}),n.props.onCancel()},n.generateMarks=function(){for(var e=parseInt((n.max-n.min)/4,10),t={},a=0;a<4;a++){var r=n.min+a*e;t[r]=0===r?r:r+"Gi"}return t[n.max]=n.max+"Gi",t};var l=e.storage,o=e.storages,i=e.nodes,f=e.app_id;n.valueSchema=(0,E.default)(_.ValuesSchema[f]),n.roleOptions=(0,_.getNodeRoleOptions)(f,"storage").filter((function(e){var t=e.value;return!i||i[t]>0}));var d=(0,h.default)(n.roleOptions,"[0].value");return n.state={nodeRole:d,storage:o?o[d]:l,errorMessage:""},n.min=1,n.max=o?n.getSliderMax(d):n.getSliderMax(),n.oldStorage=n.state.storage,n}return(0,i.default)(r,[{key:"render",value:function(){var e=this,a=Object.assign({},this.props),r=this.state,n=r.storage,l=r.errorMessage,u=r.nodeRole,c={storage:n},s=l?{message:l}:null;return m.default.createElement(b.default,(0,o.default)({width:600,footerClassName:S.default.footer},a,{onOk:this.onOk,onCancel:this.onCancel}),m.default.createElement(y.Alert,{className:S.default.alert,type:"warning",message:t("DATABASE_OPERATION_WARNING")}),m.default.createElement(y.Form,{className:S.default.form,data:c,ref:function(t){e.formRef=t}},u&&m.default.createElement(y.Form.Item,{label:t("NODE_ROLE")},m.default.createElement(y.Select,{name:"nodeRole",value:u,defaultValue:u,options:this.roleOptions,onChange:this.onRoleChange})),m.default.createElement(y.Form.Item,{label:t("VOLUME"),error:s},m.default.createElement(g.default,{max:this.max,marks:this.generateMarks(),value:this.state.storage,unit:"Gi",onChange:this.onChange,withInput:!0}))))}}]),r}(m.Component);a.default=C,C.propTypes={storage:v.default.string,onOk:v.default.func,onCancel:v.default.func},C.defaultProps={storage:"10Gi",onOk:function(){},onCancel:function(){}}},function(e,a,r){"use strict";var n=r(157),l=r(20);r(12),r(109),r(5),r(11),r(6),r(84),r(18),r(137),r(9),r(13),r(10),r(4),r(23),r(24),r(17),r(85),r(64),r(75),r(818),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(109),r(45),r(5),r(11),r(6),r(84),r(18),r(28),r(42),r(137),r(34),r(15),r(9),r(13),r(10),r(4),r(436),r(22),r(23),r(57),r(24),r(17),r(85),r(64),r(75),r(818),r(7);var o=l(r(315)),u=l(r(30)),c=l(r(43));r(41);var s=l(r(44)),i=l(r(36)),f=l(r(37)),d=l(r(55)),p=l(r(56)),m=l(r(51)),v=n(r(0)),h=l(r(1)),E=r(186),y=l(r(26)),g=l(r(966)),b=l(r(787)),S=l(r(1199)),_=l(r(984)),O=r(815);function C(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function T(e){for(var t=1;te&&![O.RadonDBAppId.MySQL,O.RadonDBAppId.PostgreSQL,O.RadonDBAppId.RedisCluster,O.RadonDBAppId.RedisSentinel,O.RadonDBAppId.MongoDB,O.RadonDBAppId.Elasticsearch,O.RadonDBAppId.OpenSearch].includes(n.props.app_id)&&(a=t("CANNOT_REDUCE_DATABASE_NODES")),""===e&&(a=t("ENTER_POSITIVE_INTEGER_DESC")),n.setState({shardsCount:e,errorMessage:a})},n.onOk=(0,s.default)(c.default.mark((function e(){var t,a,r,l,o,u,s,i,f,d,p;return c.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=n.props,a=t.workspace,r=t.namespace,l=t.cluster,o=t.cluster_id,u=n.state,s=u.specifications,i=u.nodeRole,f=u.errorMessage,d=u.storageErrorMessage,p=u.storage,!f&&!d){e.next=4;break}return e.abrupt("return");case 4:return e.next=6,n.props.store.updateShardsCount({workspace:a,namespace:r,cluster:l,cluster_id:o,shardsCount:n.state.shardsCount,nodeRole:i,specifications:s,storage:p});case 6:n.props.onOk(n.oldShardsCount>n.state.shardsCount);case 7:case"end":return e.stop()}}),e)}))),n.onCancel=function(){n.props.onCancel()},n.onRoleChange=function(e){var t=n.props,a=t.nodes,r=void 0===a?{}:a,l=t.specificationsObject,o=void 0===l?{}:l,u=t.storages,c=void 0===u?{}:u,s=t.app_id;switch(n.oldShardsCount=r[e],s){case O.RadonDBAppId.Elasticsearch:n.input.range="kibana"===e?{min:0,max:8}:{min:0===n.oldShardsCount?n.oldShardsCount:1,max:200};break;case O.RadonDBAppId.RedisCluster:n.input.range="proxy"===e?{min:0,max:50}:{min:3,max:50};break;case O.RadonDBAppId.Kafka:n.input="zookeeper"===e?{type:"select",title:"NODE_COUNT",description:" ",options:[1,3,5,7,9].map((function(e){return{label:e,value:e}}))}:{type:"integer",title:"NODE_COUNT",range:{min:1,max:100},showFunc:!0};break;case O.RadonDBAppId.OpenSearch:n.input.range="dashboard"===e?{min:0,max:8}:"logstash"===e?{min:0,max:10}:{min:0===n.oldShardsCount?n.oldShardsCount:1,max:200}}var i=o[e]||{},f=i.cpu,d=i.memory;n.setSpecificationsOptions(e);var p=c[e]||{};n.setState({nodeRole:e,shardsCount:r[e],specifications:"".concat(f,", ").concat(d),storage:p,errorMessage:""})},n.onSpecificationsChange=function(e){n.setState({specifications:e})},n.onStorageChange=function(e){var t=(0,O.validateStorage)(e,{app_id:n.props.app_id}).message,a=void 0===t?"":t,r=parseFloat(e);e&&r>0&&e.trim().startsWith("0")?n.setState({storage:e.replace(/^0*/,""),storageErrorMessage:a}):n.setState({storage:e,storageErrorMessage:a})};var l=e.shardsCount,o=e.nodes,u=e.specificationsObject,f=e.storages,d=e.storage,p=e.app_id;n.roleOptions=(0,O.getNodeRoleOptions)(p,"node").map((function(e){return T(T({},e),{},{disabled:void 0===(0,y.default)(o,e.value)})}));var m=(0,y.default)(n.roleOptions,"[0].value",""),v=(u||{})[m]||{},h=v.cpu,E=v.memory;switch(n.state={shardsCount:o?o[m]:l,specifications:"".concat(h||n.props.cpu,", ").concat(E||n.props.memory),storage:f?f[m]:d,nodeRole:m,errorMessage:"",storageErrorMessage:""},p){case O.RadonDBAppId.ClickHouse:n.input={type:"integer",title:"SHARD_COUNT",description:"SHARDS_DESC",range:{min:1,max:100},showFunc:!0};break;case O.RadonDBAppId.MySQL:n.input={type:"select",title:"NODE_COUNT",description:"MYSQL_NODES_DESC",options:[2,3,5].map((function(e){return{label:e,value:e}}))};break;case O.RadonDBAppId.PostgreSQL:n.input={type:"integer",title:"DATA_NODE_COUNT",range:{min:2,max:8},showFunc:!0};break;case O.RadonDBAppId.RedisCluster:n.input={type:"integer",title:"NODE_COUNT",range:{min:3,max:50},showFunc:!0};break;case O.RadonDBAppId.RedisSentinel:n.input={type:"select",title:"NODE_COUNT",description:"REDIS_SENTINEL_NODES_DESC",options:[3,5,7].map((function(e){return{label:e,value:e}}))};break;case O.RadonDBAppId.MongoDB:n.input={type:"select",title:"NODE_COUNT",description:"MONGODB_NODES_DESC",options:[1,3,5,7].map((function(e){return{label:e,value:e}}))};break;case O.RadonDBAppId.Elasticsearch:n.input={type:"integer",title:"NODE_COUNT",range:{min:0===n.oldShardsCount?n.oldShardsCount:1,max:200},showFunc:!0};break;case O.RadonDBAppId.Kafka:n.input={type:"integer",title:"NODE_COUNT",range:{min:3,max:100},showFunc:!0};break;case O.RadonDBAppId.OpenSearch:n.input={type:"integer",title:"NODE_COUNT",range:{min:0===n.oldShardsCount?n.oldShardsCount:1,max:200},showFunc:!0};break;default:n.input={range:{}}}return n.setSpecificationsOptions(m),n.oldShardsCount=n.state.shardsCount,n}return(0,f.default)(r,[{key:"setSpecificationsOptions",value:function(e){this.specificationsOptions=this.props.specificationsObject?O.SpecificationOptionsObject[this.props.app_id][e]:O.SpecificationOptionsObject[this.props.app_id]||O.SpecificationsOptions}},{key:"render",value:function(){var e=Object.assign({},this.props),a=this.input,r=a.description,n=a.type,l=a.title,u=a.options,c=a.range,s=a.showFunc,i=this.state,f=i.errorMessage,d=i.nodeRole,p=i.shardsCount,m=i.storageErrorMessage,h=f?{message:f}:null,y=m?{message:m}:null,O=0===this.oldShardsCount&&0!==this.state.shardsCount,C=O&&!["kibana","proxy","dashboard","logstash"].includes(d);return v.default.createElement(b.default,(0,o.default)({width:600,footerClassName:_.default.footer},e,{onOk:this.onOk,onCancel:this.onCancel}),v.default.createElement(E.Alert,{className:_.default.alert,type:"warning",message:t("DATABASE_OPERATION_WARNING")}),v.default.createElement(E.Form,{className:_.default.form},d&&v.default.createElement(E.Form.Item,{label:t("NODE_ROLE")},v.default.createElement(E.Select,{name:"nodeRole",value:d,defaultValue:d,options:this.roleOptions,onChange:this.onRoleChange})),v.default.createElement(E.Form.Item,{label:t(l),desc:r?t(r):t("NODE_COUNT_DESC",{min:c.min,max:c.max}),error:h},"select"===n?v.default.createElement(E.Select,{value:p,defaultValue:p,onChange:this.handleChange,options:u.map((function(e){return T(T({},e),{},{label:"number"==typeof e.label?e.label:t(e.label)})}))}):v.default.createElement(S.default,{value:p,onChange:this.handleChange,min:c.min,max:c.max,showFunc:s,integer:!0})),O&&v.default.createElement(E.Form.Item,{label:t("RESOURCES"),desc:t("RESOURCES_DESC")},v.default.createElement(E.Select,{name:"specifications",value:this.state.specifications,defaultValue:this.state.specifications,options:this.specificationsOptions,onChange:this.onSpecificationsChange})),C&&v.default.createElement(E.Form.Item,{label:t("VOLUME"),error:y},v.default.createElement(g.default,{max:2048,marks:{0:"0",512:"512 Gi",1024:"1024 Gi",1536:"1536 Gi",2048:"2048 Gi"},value:this.state.storage,unit:"Gi",onChange:this.onStorageChange,withInput:!0}))))}}]),r}(v.Component);a.default=D,D.propTypes={specificationsObject:h.default.object,shardsCount:h.default.number,onOk:h.default.func,onCancel:h.default.func,app_id:h.default.string},D.defaultProps={shardsCount:1,onOk:function(){},onCancel:function(){}}},function(e,t,a){e.exports={withUnit:"_3MkVmyFjamQAHbMfqPEKDP",funcContainer:"_ptAO3HqFm-oaIp8hrkii",func:"_2Z8YdS1HCE46ycS48Ju1fF"}},function(e,a,r){"use strict";var n=r(157),l=r(20);r(12),r(5),r(11),r(6),r(18),r(137),r(9),r(13),r(10),r(4),r(23),r(17),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(45),r(5),r(11),r(6),r(18),r(28),r(42),r(137),r(34),r(15),r(9),r(13),r(10),r(4),r(436),r(22),r(23),r(57),r(17),r(7);var o=l(r(315)),u=l(r(30)),c=l(r(43));r(41);var s=l(r(44)),i=l(r(36)),f=l(r(37)),d=l(r(55)),p=l(r(56)),m=l(r(51)),v=n(r(0)),h=l(r(1)),E=r(186),y=l(r(26)),g=l(r(787)),b=l(r(984)),S=r(815);function _(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function O(e){for(var t=1;t0}));var f=(0,y.default)(t.roleOptions,"[0].value",""),d=l[f]||{},p=d.cpu,m=d.memory;return t.state={specifications:"".concat(p||e.cpu,", ").concat(m||e.memory),nodeRole:f},t.setSpecificationsOptions(f),t}return(0,f.default)(r,[{key:"setSpecificationsOptions",value:function(e){var t=this,a=this.props.app_id;this.specificationsOptions=this.props.specificationsObject?S.SpecificationOptionsObject[a][e]:S.SpecificationOptionsObject[a]||S.SpecificationsOptions,a!==S.RadonDBAppId.RedisCluster&&a!==S.RadonDBAppId.RedisSentinel||(this.specificationsOptions=this.specificationsOptions.map((function(a){var r=(0,S.getCpuAndMemoryFromSpecifications)(a.value),n=r.cpu,l=r.memory,o=(0,y.default)(t.props,'specificationsObject["'.concat(e,'"]'),t.props);return O(O({},a),{},{disabled:parseFloat(n)-1}))},n.onOk=function(){var e=n.props,a=e.action,r=e.detail,l=n.checkDatabase("permission",n.state.detail.permission,M({},n.state.detail));n.formRef.current.validate((0,i.default)(s.default.mark((function e(){var o;return s.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!a){e.next=15;break}if(e.prev=1,o=n.getEmptyResourceNameRuleIndexes(),n.setState({emptyResourceNameRuleIndexes:o}),!(o.length>0)){e.next=6;break}return e.abrupt("return");case 6:return e.next=8,a(M(M({},n.props),{},{user:l,oldUser:r}));case 8:e.next=15;break;case 10:return e.prev=10,e.t0=e.catch(1),e.t0.message&&T.default.error({content:"".concat(t(e.t0.message))}),n.props.onCancel(),e.abrupt("return");case 15:n.props.onOk();case 16:case"end":return e.stop()}}),e,null,[[1,10]])}))))},n.customNameValidator=function(e,t){return n.props.nameReplicationValidator(t,(0,b.default)(n.props,"detail.name"))},n.getFormItems=function(e){return e.map((function(e){var a=e.name,r=e.type,l=e.label,o=e.description,u=e.rules,s=void 0===u?[]:u,i=e.options,f=e.range,d=e.disabled,p="name"===a?[].concat((0,c.default)(s),[{required:!0,validator:n.customNameValidator,message:t("USERNAME_EXISTS")}]):s;switch(r){case"text":return E.default.createElement(C.Form.Item,{key:a,label:t(l),desc:t(o),rules:p||[]},E.default.createElement(C.Input,{name:a,maxLength:f&&f.max?f.max:-1,disabled:d}));case"password":return E.default.createElement(C.Form.Item,{key:a,label:t(l),desc:t(o),rules:p||[]},E.default.createElement(C.InputPassword,{name:a,innerRef:n.passwordRef,maxLength:f&&f.max?f.max:-1,disabled:d}));case"textArea":return E.default.createElement(C.Form.Item,{key:a,label:t(l),desc:t(o),rules:p},E.default.createElement(C.TextArea,{maxLength:256,name:a,disabled:d}));case"select":return E.default.createElement(C.Form.Item,{key:a,label:t(l),desc:t(o),rules:p},E.default.createElement(C.Select,{disabled:d,name:a,options:i}));default:return null}}))},n.onPermissionRuleChange=function(e,t){if(t){var a=n.state.detail.permissionRules;(0,S.default)(a,t,e)}},n.onKafkaUserConfigChange=function(e,t){if(t){var a=n.state.detail.kafkaUserConfig;""===e?(0,_.default)(a,t):(0,S.default)(a,t,e)}},n.addPermissionRule=function(){var e=n.state.detail.permissionRules||[];n.setState({detail:M(M({},n.state.detail),{},{permissionRules:[].concat((0,c.default)(e),[JSON.parse(A.DefaultPermissionRuleString)])})})},n.deletePermissionRule=function(e){var t=n.state.detail.permissionRules||[];t.splice(e-1,1);var a=n.getEmptyResourceNameRuleIndexes(t);n.setState({detail:M({},n.state.detail),emptyResourceNameRuleIndexes:a})};var l=[k.RadonDBAppId.RedisCluster,k.RadonDBAppId.RedisSentinel].includes(e.app_id);return n.state={detail:(0,g.default)((0,y.toJS)(e.detail))||{name:"",password:"",network:"::/0",database:"*",permission:l?"~* &* +@all":"General",host:"%",authentication:"tls",authorization:"simple",permissionRules:e.app_id===k.RadonDBAppId.Kafka?[JSON.parse(A.DefaultPermissionRuleString)]:[],kafkaUserConfig:(e.app_id,k.RadonDBAppId.Kafka,{})},emptyResourceNameRuleIndexes:[],showAuthenticationAlert:e.authentication&&e.authentication!==(0,b.default)(e,"detail.authentication","tls")},n}return(0,p.default)(r,[{key:"componentDidMount",value:function(){var e=this;this.timer=setTimeout((function(){var t=e.passwordRef.current;t&&(t.value=(0,b.default)(e.props,"detail.password",""))}),200)}},{key:"componentWillUnmount",value:function(){this.timer&&clearTimeout(this.timer)}},{key:"renderOtherItems",value:function(e){var a=this;if(e===k.RadonDBAppId.Kafka){var r=this.state.detail,n=r.permissionRules,l=void 0===n?[]:n,o=r.kafkaUserConfig,u=void 0===o?{}:o;return E.default.createElement("div",null,E.default.createElement("div",{className:N.default.otherItems,key:"PermissionRule"},l.map((function(e,t){return E.default.createElement(I.default,{key:"".concat(JSON.stringify(e)).concat(t),permissionRule:e,index:t+1,isEmptyError:a.state.emptyResourceNameRuleIndexes.includes(t),onChange:a.onPermissionRuleChange,canDelete:l.length>1,onDelete:a.deletePermissionRule})})),E.default.createElement("div",{className:N.default.addRuleRow},E.default.createElement("div",null,E.default.createElement(C.Icon,{name:"information",size:16}),E.default.createElement("span",null,t("PERMISSION_RULE_DESC"))),E.default.createElement(C.Button,{onClick:this.addPermissionRule},t("ADD")))),E.default.createElement(R.default,null,E.default.createElement(P.default,{kafkaUserConfig:u,onChange:this.onKafkaUserConfigChange})))}return null}},{key:"render",value:function(){var e=this.props,a=e.app_id,r=e.authentication,n=void 0===r?"":r,l=(0,u.default)(e,["app_id","authentication"]),c=[A.UserName,A.Password];switch(a){case k.RadonDBAppId.ClickHouse:c=A.CKAccount;break;case k.RadonDBAppId.PostgreSQL:c=(0,A.getPGAccount)(!!this.props.detail);break;case k.RadonDBAppId.MySQL:c=A.MySQLAccount;break;case k.RadonDBAppId.RedisCluster:case k.RadonDBAppId.RedisSentinel:c.push({name:"permission",label:"PERMISSIONS",type:"text",description:"ACL_DESC"});break;case k.RadonDBAppId.Kafka:c=A.KafkaAccount}if(this.props.detail){var s=(c=(0,g.default)(c)).find((function(e){return"name"===e.name}));s&&(s.disabled=!0)}return E.default.createElement(D.default,(0,o.default)({width:610,footerClassName:N.default.footer},l,{onOk:this.onOk}),this.state.showAuthenticationAlert&&E.default.createElement(C.Alert,{className:N.default.alert,type:"warning",message:t("AUTHENTICATION_MODE_INCORRECT_ALERT",{cluster:n.toUpperCase(),user:this.state.detail.authentication.toUpperCase()})}),E.default.createElement(C.Form,{className:N.default.form,data:this.state.detail,ref:this.formRef,onChange:this.checkDatabase},this.getFormItems(c),this.renderOtherItems(a)))}}]),r}(E.Component);a.default=j,j.propTypes={detail:O.default.object,onOk:O.default.func,onCancel:O.default.func},j.defaultProps={onOk:function(){},onCancel:function(){}}},function(e,a,r){"use strict";var n=r(20);r(12),r(5),r(11),r(6),r(18),r(9),r(13),r(10),r(4),r(23),r(17),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var l=n(r(30)),o=n(r(246)),u=n(r(36)),c=n(r(37)),s=n(r(55)),i=n(r(56)),f=n(r(51));r(12),r(45),r(5),r(11),r(6),r(18),r(28),r(191),r(42),r(159),r(34),r(15),r(9),r(13),r(10),r(4),r(23),r(57),r(17),r(7);var d=n(r(0)),p=n(r(26)),m=n(r(74)),v=n(r(3)),h=r(186),E=n(r(3221));function y(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function g(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,f.default)(e);if(t){var n=(0,f.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,i.default)(this,a)}}var b=["Read","Write","Delete","Alter","Describe","All","IdempotentWrite","ClusterAction","Create","AlterConfigs","DescribeConfigs"].map((function(e){return{label:e,value:e}})),S=function(e){(0,s.default)(r,e);var a=g(r);function r(e){var n;return(0,u.default)(this,r),(n=a.call(this,e)).handleDetele=function(){n.props.onDelete(n.props.index)},n.onChange=function(e){return function(t){var a=n.props,r=a.index,u=void 0===r?1:r,c=a.onChange;"object"===(0,o.default)(t)&&(t=t.target.value),(0,m.default)(n.state.permissionRule,e,t),n.setState(function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.workspace,a=e.cluster,r=e.namespace;return(0,_.getManifestApi)({workspace:t,cluster:a,namespace:r})},(0,c.default)(e,"fetchDetail",o,(0,f.default)(e)),e}return(0,i.default)(r,[{key:"deploy",value:(t=(0,u.default)(n.default.mark((function e(t,a){var r,l,o,u,c,s,i,f,d,p;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=a.workspace,l=a.namespace,o=a.cluster,u=a.restoreParams,c=t.app_id,s=t.name,i=t.conf,f=t.version_id,d=t.description,i.volume&&parseFloat(i.volume)<10&&(i.volume="10Gi"),(p={name:s,description:d,version:1,appVersion:"",customResource:"{}",relatedResources:[]}).appVersion=f,!l){e.next=39;break}e.t0=c,e.next=e.t0===S.RadonDBAppId.ClickHouse?9:e.t0===S.RadonDBAppId.PostgreSQL?11:e.t0===S.RadonDBAppId.MySQL?13:e.t0===S.RadonDBAppId.RedisCluster?16:e.t0===S.RadonDBAppId.RedisSentinel?19:e.t0===S.RadonDBAppId.MongoDB?22:e.t0===S.RadonDBAppId.Elasticsearch?25:e.t0===S.RadonDBAppId.Kafka?28:e.t0===S.RadonDBAppId.OpenSearch?31:34;break;case 9:return p.customResource=(0,S.mergeCKInstallationData)({name:s,valuesJson:i,namespace:l}),e.abrupt("break",35);case 11:return p.customResource=(0,S.mergePGInstallationData)({name:s,valuesJson:i,namespace:l,restoreParams:u}),e.abrupt("break",35);case 13:return p.customResource=(0,S.mergeMySQLInstallationData)({name:s,valuesJson:i,namespace:l,restoreParams:u}),p.relatedResources=[{name:"secret",data:(0,S.getSecretCrd)({name:s,namespace:l})}],e.abrupt("break",35);case 16:return p.customResource=(0,S.mergeRedisClusterInstallationData)({name:s,namespace:l,valuesJson:i}),p.relatedResources=(0,S.getRedisClusterRelatedResources)({name:s,namespace:l,password:i.password,specifications:i.specifications}),e.abrupt("break",35);case 19:return p.customResource=(0,S.mergeRedisSentinelInstallationData)({name:s,namespace:l,valuesJson:i}),p.relatedResources=(0,S.getRedisSentinelRelatedResources)({name:s,namespace:l,password:i.password,specifications:i.specifications}),e.abrupt("break",35);case 22:return p.customResource=(0,S.mergeMongoDBInstallationData)({name:s,namespace:l,valuesJson:i}),p.relatedResources=(0,S.getMongoDBRelatedResources)({name:s,namespace:l}),e.abrupt("break",35);case 25:return p.customResource=(0,S.mergeECKInstallationData)({name:s,namespace:l,valuesJson:i}),p.relatedResources=(0,S.getECKRelatedResources)({name:s,namespace:l,kibanaValues:i.kibana||{}}),e.abrupt("break",35);case 28:return p.customResource=(0,S.mergeKafkaInstallationData)({name:s,namespace:l,valuesJson:i}),p.relatedResources=(0,S.getKafkaRelatedResources)({namespace:l,name:s}),e.abrupt("break",35);case 31:return p.customResource=(0,S.mergeOpenSearchInstallationData)({name:s,namespace:l,valuesJson:i}),p.relatedResources=(0,S.getOpenSearchRelatedResources)({name:s,namespace:l,logstashValues:i.logstash||{},username:i.username,password:i.password}),e.abrupt("break",35);case 34:return e.abrupt("return");case 35:return e.next=37,this.submitting(request.post(this.getUrl({namespace:l,workspace:r,cluster:o}),p));case 37:return e.next=39,this.alertRuleStore.createDefaultAlert(c,{name:s,namespace:l,cluster:o});case 39:case"end":return e.stop()}}),e,this)}))),function(e,a){return t.apply(this,arguments)})}]),r}(b.default),(0,v.default)(l.prototype,"deploy",[h.action],Object.getOwnPropertyDescriptor(l.prototype,"deploy"),l.prototype),o=(0,v.default)(l.prototype,"fetchDetail",[h.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(){var t=(0,u.default)(n.default.mark((function t(a){var r,l,o,u;return n.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=a.app_id,l=(0,y.default)(globals.user,"lang")||(0,E.getBrowserLang)(),e.isLoading=!0,o="/kapis/application.kubesphere.io/v2/apps/".concat(r),t.next=6,request.get(o);case 6:(u=t.sent).abstraction=(0,y.default)(u,"abstraction_".concat(l),u.abstraction),u.description=(0,y.default)(u,"description_".concat(l),u.description),u.screenshots=(0,y.default)(u,"screenshots_".concat(l),u.screenshots),e.detail=u,e.isLoading=!1;case 12:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()}}),l);t.default=C},,,,,,,function(e,a,r){"use strict";r(15);var n=r(20);r(18),r(48),r(16),r(4),r(23),r(24),r(17),r(188),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(18),r(48),r(42),r(16),r(4),r(23),r(57),r(24),r(17),r(188);var l=n(r(36)),o=n(r(37)),u=n(r(55)),c=n(r(56)),s=n(r(51)),i=n(r(0)),f=n(r(26)),d=r(244),p=r(14),m=n(r(243)),v=r(186),h=n(r(942)),E=n(r(1728)),y=n(r(1722)),g=r(52),b=n(r(3237));function S(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,s.default)(e);if(t){var n=(0,s.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,c.default)(this,a)}}var _=v.Tabs.TabPanel,O=function(e){(0,u.default)(r,e);var a=S(r);function r(e){var t;return(0,l.default)(this,r),(t=a.call(this,e)).handleDeploy=function(){t.props.showDeploy()},t.params=(0,d.parse)(location.search.slice(1))||{},t.htmlOrigBgColor="",t.state={tab:"appInfo",selectAppVersion:"",showDeploy:!1},t.appId=t.props.app_id,t.versionStore=new h.default,t}return(0,o.default)(r,[{key:"componentDidMount",value:function(){this.getData()}},{key:"getData",value:function(){var e=this;this.versionStore.fetchList({app_id:this.appId,status:"active"}).then((function(){var t=(0,f.default)(e.versionStore,"list.data[0].version_id","");e.setState({selectAppVersion:t})}))}},{key:"renderDeployButton",value:function(){var e=this.props.appStore.detail,a=(0,g.isAppIsRadonDBAndAuthorized)(e),r=a.isRadondb,n=a.isSupport,l=r&&!n;return i.default.createElement(v.Tooltip,{content:l?i.default.createElement("div",{className:b.default.authorizedTip},i.default.createElement("div",{className:b.default.authorizedTipTitle},i.default.createElement(v.Icon,{name:"information",color:{primary:"#fff",secondary:"#F5A623"}}),i.default.createElement("span",null,t("APP_UNAUTHORIZED"))),i.default.createElement("p",null,t("APP_UNAUTHORIZED_DESC"))):""},i.default.createElement("div",{className:b.default.deployButton},i.default.createElement(v.Button,{onClick:this.handleDeploy,type:"control",disabled:l},t("INSTALL"))))}},{key:"renderContent",value:function(){var e=this.state.tab,a=this.props.appStore.detail,r=this.versionStore.list.data;return i.default.createElement(v.Tabs,{className:"tabs-new",activeName:e,onChange:this.handleTabChange},i.default.createElement(_,{label:t("APP_INFORMATION"),name:"appInfo"},this.renderDeployButton(),i.default.createElement(v.Columns,null,i.default.createElement(v.Column,{className:"is-9"},i.default.createElement(E.default,{app:a,versions:(0,p.toJS)(r)})),i.default.createElement(v.Column,null,i.default.createElement(y.default,{app:a})))))}},{key:"render",value:function(){return i.default.createElement("div",{className:b.default.main},i.default.createElement("div",{className:b.default.content},this.renderContent()))}},{key:"versionOptions",get:function(){return this.versionStore.list.data.map((function(e){var a=e.version_id,r=e.name,n=e.create_time;return{label:r,description:(0,m.default)(n).format(t("YYYY-MM-DD")),value:a}}))}}]),r}(i.default.Component);a.default=O},,,,function(e,t,a){e.exports={content:"F9cCXv2wjuVST_W7U5zvb",deployButton:"_1DTp0_lcWeecxqs_-It4KA",keywords:"_1A3YmiMHk1xXcfQiwW-ykl",deployModal:"_2Ut2mhc56BgtCHaPbBcvrj",authorizedTip:"_1mGVVHb7CDZ80rcKOYpjMH",authorizedTipTitle:"_3WSM1_DidAthIrad3ItYSB"}},function(e,a,r){"use strict";var n=r(20);r(12),r(5),r(11),r(6),r(84),r(48),r(16),r(9),r(13),r(10),r(4),r(23),r(17),r(85),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(45),r(5),r(11),r(6),r(84),r(28),r(48),r(42),r(16),r(34),r(15),r(9),r(13),r(10),r(4),r(22),r(23),r(57),r(24),r(17),r(85),r(64),r(1092),r(7);var l=n(r(43)),o=n(r(30));r(41);var u,c=n(r(44)),s=n(r(58)),i=n(r(36)),f=n(r(37)),d=n(r(55)),p=n(r(56)),m=n(r(51)),v=n(r(0)),h=n(r(26)),E=r(239),y=r(186),g=n(r(942)),b=n(r(3239)),S=n(r(1725)),_=r(52),O=n(r(3240)),C=n(r(3245)),T=n(r(3247)),R=r(815);function D(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function N(e){for(var t=1;te.stepCount?this.handleNext():this.setState({currentStep:t}))}},{key:"componentWillUnmount",value:function(){document.querySelector("html").style.backgroundColor=this.htmlOrigBgColor}},{key:"fixBodyColor",value:function(){var e=document.querySelector("html");this.htmlOrigBgColor=window.getComputedStyle(e).backgroundColor,e.style.backgroundColor="white"}},{key:"getData",value:(a=(0,c.default)(l.default.mark((function e(){var t,a,r;return l.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.versionStore.fetchList({app_id:this.appId,status:"active"});case 2:t=(0,h.default)(this.versionStore,"list.data[0].version_id",""),a=(0,h.default)(this.versionStore,"list.data[0].name",""),r=this.props.appStore.detail.name,this.fileStore.loadRadonDB({app_id:this.appId,restoreParams:this.props.restoreParams}),this.setState({formData:N(N({},this.state.formData),{},{name:"".concat(r.slice(0,7).toLowerCase().replaceAll(" ","-"),"-").concat((0,_.generateId)()),version_id:this.isRadonDB?a:t})});case 7:case"end":return e.stop()}}),e,this)}))),function(){return a.apply(this,arguments)})},{key:"renderForm",value:function(){var e=this.state,t=e.formData,a=e.currentStep,r=this.steps[a],n=r.component,l={formData:t,fromStore:!0,versionStore:this.versionStore,fileStore:this.fileStore,appId:this.appId};return r.isForm?l.formRef=this.formRef:l.ref=this.formRef,v.default.createElement("div",{className:T.default.form},v.default.createElement(n,l))}},{key:"renderControl",value:function(){var e=this.state.currentStep,a=this.steps.length-1;return v.default.createElement("div",{className:T.default.control},e0)){var a=this.props.formData,r=this.state.valuesJSON,n=a.name,l=a.namespace,o=a.app_id,u=r.version,c="";if(o===g.RadonDBAppId.MySQL&&"5.7"===u&&(l.length>16||n.length>14)){if(l.length>16)return c=t("PROJECT_NAME_EXCEEDS_LIMIT"),void h.default.warning({content:c});if(n.length>14)return c=t("APP_NAME_EXCEED_LIMIT"),void h.default.warning({content:c})}this.updateFormData(),e&&e()}}},{key:"renderSchemaForm",value:function(){var e=this.state,t=e.valuesJSON,a=e.valuesSchema;return f.default.createElement("div",{className:S.default.schemaWrapper},f.default.createElement(b.default,{schema:a,value:t,validatorResult:this.validatorResult,formData:this.props.formData}))}},{key:"render",value:function(){return this.state.loadingFile?f.default.createElement(v.Loading,{className:S.default.loading}):f.default.createElement("div",{className:S.default.wrapper},f.default.createElement("div",{className:S.default.title},f.default.createElement("div",null,t("APP_SETTINGS"))),this.renderSchemaForm())}}]),r}(f.default.Component))||l;a.default=O},function(e,a,r){"use strict";var n=r(20);r(12),r(109),r(5),r(187),r(11),r(6),r(84),r(73),r(18),r(97),r(16),r(9),r(13),r(10),r(4),r(316),r(23),r(24),r(17),r(85),r(64),r(75),r(818),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(109),r(45),r(5),r(187),r(11),r(6),r(84),r(73),r(18),r(28),r(97),r(42),r(16),r(34),r(15),r(9),r(13),r(10),r(4),r(316),r(436),r(319),r(23),r(57),r(24),r(193),r(17),r(85),r(64),r(75),r(818),r(7);var l=n(r(61)),o=n(r(246)),u=n(r(315)),c=n(r(30)),s=n(r(36)),i=n(r(37)),f=n(r(55)),d=n(r(56)),p=n(r(51)),m=n(r(0)),v=n(r(1)),h=n(r(1198)),E=n(r(26)),y=n(r(74)),g=n(r(1158)),b=n(r(198)),S=n(r(63)),_=r(186),O=n(r(790)),C=n(r(3)),T=n(r(966)),R=r(14),D=n(r(1199)),N=n(r(3242)),k=n(r(3243));function I(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function P(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:"",r=4,n=parseInt((t-e)/r,10),l={},o=0;o0&&t.trim().startsWith("0")?f.onChange(t.replace(/^0*/,"")):f.onChange(t)}})):"textArea"===a.render?m.default.createElement(_.TextArea,f):"select"===a.render?"volumeType"===r?m.default.createElement(N.default,(0,u.default)({disabled:a.disabled},f,{cluster:e.props.formData.cluster})):m.default.createElement(_.Select,(0,u.default)({},f,{options:(0,R.toJS)(a.options).map((function(e){return P(P({},e),{},{label:"number"==typeof e.label?e.label:t(e.label)})})),disabled:a.disabled})):"password"===a.render?m.default.createElement(_.InputPassword,(0,u.default)({name:a.name,disabled:a.disabled,autoComplete:"new-password",placeholder:a.placeholder?t(a.placeholder):""},f)):m.default.createElement(_.Input,(0,u.default)({},f,{disabled:a.disabled}));break;case"integer":l=m.default.createElement(D.default,(0,u.default)({},f,{integer:!0,min:a.min,max:a.max,showFunc:a.showFunc,disabled:a.disabled,style:{maxWidth:"455px"}}));break;case"boolean":l=m.default.createElement("div",{className:k.default.boolean},m.default.createElement(_.Toggle,(0,u.default)({},f,{defaultChecked:(0,E.default)(s,n,!1)})),m.default.createElement(O.default,{title:a.title,description:a.description}));break;case"alert":l=m.default.createElement(_.Alert,{className:k.default.alert,icon:"information",message:t(a.content)});break;case"array":l=m.default.createElement(m.default.Fragment,null,"todo");break;default:l=m.default.createElement(m.default.Fragment,null)}var d="";"boolean"!==a.type&&(d=a.tooltipContent?m.default.createElement("div",null,m.default.createElement("span",{style:{verticalAlign:"bottom"}},t(a.title)),m.default.createElement(_.Tooltip,{content:t(a.tooltipContent)},m.default.createElement(_.Icon,{size:20,name:"question"}))):t(a.title));var p="integer"===a.type&&"number"==typeof a.min&&"number"==typeof a.max?"".concat(t(a.description||"")).concat(t("VALUE_RANGE_DESC",{min:a.min,max:a.max})):t(a.description),v=(0,E.default)(i,'["'.concat(n.join("."),'"]')),h=(0,E.default)(e.state.value,"[".concat(n.join(".").replace(r,"version"),"]"));return a.forVersion&&a.forVersion instanceof Array&&!a.forVersion.includes(h)?null:m.default.createElement(_.Form.Item,{key:r,className:a.rowExclusive&&!a.halfRow?"row":"",label:d,desc:p,error:v?{message:v}:null},l)},e.renderSchemaForm=function(a){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],u=a.type,c=e.state.value,s="object"===(0,o.default)(a.hidden)?(0,E.default)(c,a.hidden.value,null)===a.hidden.condition:(0,E.default)(c,a.hidden,!1);if(s)return null;if("object"===u){var i=[],f=[];if((0,h.default)(a.properties,(function(t,a){t.advanced?f.push(e.renderSchemaForm(t,a,[].concat((0,l.default)(n),[a]))):i.push(e.renderSchemaForm(t,a,[].concat((0,l.default)(n),[a])))})),(0,S.default)(i)||i.every((function(e){return!e})))return null;var d=a.properties&&(0,g.default)(a.properties,(function(e){return(0,b.default)(e,"properties")}));return m.default.createElement("div",{key:r,className:d?k.default.parentGroup:k.default.group},a.title&&m.default.createElement("div",{className:k.default.titleContainer},a.icon&&m.default.createElement(_.Icon,{name:a.icon,size:20}),m.default.createElement("div",{className:k.default.title},t(a.title))),a.description&&m.default.createElement("p",{className:k.default.description},t(a.description)),i,f.length>0&&m.default.createElement(m.default.Fragment,null,m.default.createElement("div",{className:k.default.advanced,onClick:e.toggleAdvanced},m.default.createElement("span",null,t("ADVANCED_SETTINGS")),m.default.createElement(_.Icon,{name:e.state.showAdvanced?"chevron-up":"chevron-down",size:"20"})),m.default.createElement("div",null)),e.state.showAdvanced&&f,f.length%2==1&&m.default.createElement("div",{className:"form-item"}))}return m.default.createElement(m.default.Fragment,null,e.renderFormItem(a,r,n),a.halfRow&&m.default.createElement("div",{className:"form-item"}))},e}return(0,i.default)(r,[{key:"handleFormChange",value:function(e){this.setState({value:e})}},{key:"render",value:function(){var e=this.props.schema;return this.renderSchemaForm(e)}}]),r}(m.default.Component);a.default=w,w.propTypes={schema:v.default.object,value:v.default.object,onChange:v.default.func,validatorResult:v.default.object,formData:v.default.object},w.defaultProps={onChange:function(){}}},function(e,t,a){"use strict";a(15);var r=a(20);a(5),a(18),a(16),a(4),a(23),a(17),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(45),a(5),a(18),a(42),a(16),a(4),a(23),a(57),a(17);var n=r(a(315)),l=r(a(36)),o=r(a(37)),u=r(a(55)),c=r(a(56)),s=r(a(51)),i=r(a(0)),f=a(186),d=r(a(26));function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,s.default)(e);if(t){var n=(0,s.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,c.default)(this,a)}}var m=function(e){(0,u.default)(a,e);var t=p(a);function a(){var e;(0,l.default)(this,a);for(var r=arguments.length,n=new Array(r),o=0;oa),(0,o.default)(n,m.default.current,r===a),(0,o.default)(n,m.default.pending,r2&&void 0!==arguments[2]?arguments[2]:"",r=4,n=parseInt((t-e)/r,10),l={},o=0;ol?{error:!0,message:t("INVALID_PARTITION_COUNT_DESC",{min:n,max:l})}:{error:!1}},rules:[{required:!0,message:t("PARAM_REQUIRED")}]},{name:"replicas",label:t("REPLICA_COUNT"),type:"number",range:{min:1,max:e.kafkaReplicas},showFunc:!0,description:t("TOPIC_REPLICA_COUNT_DESC"),disabled:!!e.detail,rules:[{required:!0,message:t("PARAM_REQUIRED")}]}],n.advancedItems=[{name:"cleanup.policy",label:"cleanup.policy",type:"select",description:t("CLEANUP_POLICY_DESC"),options:[{label:t("CLEANUP_POLICY_DELETE"),value:"delete"},{label:t("CLEANUP_POLICY_COMPACT"),value:"compact"}]},{name:"min.insync.replicas",label:"min.insync.replicas",type:"number",description:t("MIN_INSYNC_REPLICAS_DESC"),range:{min:1,max:(0,g.default)(n.state.detail,"replicas",1)},showFunc:!0},{name:"unclean.leader.election.enable",label:"unclean.leader.election.enable",type:"select",description:t("UNCLEAN_LEADER_ELECTION_ENABLE_DESC"),options:[{label:t("TRUE"),value:"true"},{label:t("FALSE"),value:"false"}]},{name:"segment.ms",label:"segment.ms",type:"number",description:t("SEGMENT_MS_DESC"),range:{min:864e5},unit:"ms"},{name:"retention.ms",label:"retention.ms",type:"number",description:t("RETENTION_MS_DESC"),range:{min:-1},unit:"ms"},{name:"retention.bytes",label:"retention.bytes",type:"number",description:t("RETENTION_BYTES_DESC"),range:{min:-1},unit:"byte"},{name:"max.message.bytes",label:"max.message.bytes",type:"number",description:t("MAX_MESSAGE_BYTES_DESC"),range:{min:0},unit:"byte"}],n}return(0,d.default)(r,[{key:"render",value:function(){var e=Object.assign({},this.props);return h.default.createElement(_.default,(0,u.default)({width:600,footerClassName:T.default.footer},e,{onOk:this.onOk,onCancel:this.onCancel}),h.default.createElement(y.Form,{className:T.default.form,data:this.state.detail,ref:this.formRef},this.getFormItems(this.formItems),h.default.createElement("div",{className:T.default.advanced,onClick:this.toggleAdvanced},h.default.createElement("span",null,t("ADVANCED_SETTINGS")),h.default.createElement(y.Icon,{name:this.state.showAdvanced?"chevron-up":"chevron-down",size:"20"})),this.state.showAdvanced&&this.getFormItems(this.advancedItems)))}}]),r}(h.Component);a.default=k,k.propTypes={onOk:E.default.func,onCancel:E.default.func,app_id:E.default.string},k.defaultProps={onOk:function(){},onCancel:function(){}}},function(e,a,r){"use strict";r(15);var n=r(157),l=r(20);r(5),r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(42),r(4),r(23),r(57),r(17);var o=l(r(315)),u=l(r(58)),c=l(r(36)),s=l(r(37)),i=l(r(55)),f=l(r(56)),d=l(r(51)),p=n(r(0)),m=l(r(1)),v=r(186),h=l(r(787)),E=l(r(3254));function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,d.default)(e);if(t){var n=(0,d.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,f.default)(this,a)}}var g=function(e){(0,i.default)(r,e);var a=y(r);function r(){var e;(0,c.default)(this,r);for(var t=arguments.length,n=new Array(t),l=0;l1){var n=(0,p.default)(e.props.value,r[0]);return n?(0,v.default)(n,r[1],a):n=(0,l.default)({},r[1],a),void e.triggerChange(g(g({},e.props.value),{},(0,l.default)({},r[0],n)))}e.triggerChange(g(g({},e.props.value),{},(0,l.default)({},t,a)))}},e}return(0,u.default)(r,[{key:"renderFormItems",value:function(e){var t=null;switch(e){case"discover_branches":t=this.renderBranchesFormItems();break;case"discover_pr_from_origin":t=this.renderPrOriginFormItems();break;case"discover_pr_from_forks":t=this.renderPrForkFormItems();break;default:t=this.renderTagBranchesFormItems()}return t}},{key:"renderTagBranchesFormItems",value:function(){var e=this.props.value;return f.default.createElement("div",null,f.default.createElement(h.Form.Item,{label:t("STRATEGY")},f.default.createElement(h.Select,{name:"discover_tags",defaultValue:e.discover_tags,onChange:this.handleChange("discover_tags"),options:[{label:t("ENABLE_TAG_BRANCH_DISCOVERY"),value:!0},{label:t("DISABLE_TAG_BRANCH_DISCOVERY"),value:!1}]})))}},{key:"renderBranchesFormItems",value:function(){var e=this.props.value;return f.default.createElement("div",null,f.default.createElement(h.Form.Item,{label:t("STRATEGY")},f.default.createElement(h.Select,{name:"discover_branches",defaultValue:e.discover_branches,onChange:this.handleChange("discover_branches"),options:[{label:t("EXCLUDE_PR_BRANCHES"),value:1},{label:t("ONLY_PR_BRANCHES"),value:2},{label:t("ALL_BRANCHES"),value:3}]})))}},{key:"renderPrOriginFormItems",value:function(){var e=this.props.value;return f.default.createElement("div",null,f.default.createElement(h.Form.Item,{label:t("PULL_STRATEGY")},f.default.createElement(h.Select,{name:"discover_pr_from_origin",defaultValue:e.discover_pr_from_origin,onChange:this.handleChange("discover_pr_from_origin"),options:[{label:t("OPTIONS_PR_PARAMS_1"),value:1},{label:t("OPTIONS_PR_PARAMS_2"),value:2},{label:t("OPTIONS_PR_PARAMS_3"),value:3}]})))}},{key:"renderPrForkFormItems",value:function(){var e=this.props.value;return f.default.createElement("div",null,f.default.createElement(h.Columns,null,f.default.createElement(h.Column,null,f.default.createElement(h.Form.Item,{label:t("PULL_STRATEGY")},f.default.createElement(h.Select,{name:"discover_pr_from_forks.strategy",defaultValue:e.discover_pr_from_forks&&e.discover_pr_from_forks.strategy,onChange:this.handleChange("discover_pr_from_forks.strategy"),options:[{label:t("OPTIONS_PR_PARAMS_1"),value:1},{label:t("OPTIONS_PR_PARAMS_2"),value:2},{label:t("OPTIONS_PR_PARAMS_3"),value:3}]}))),f.default.createElement(h.Column,null,f.default.createElement(h.Form.Item,{label:t("TRUSTED_USERS")},f.default.createElement(h.Select,{name:"discover_pr_from_forks.trust",defaultValue:e.discover_pr_from_forks&&e.discover_pr_from_forks.trust,onChange:this.handleChange("discover_pr_from_forks.trust"),options:[{label:t("CONTRIBUTORS"),value:1},{label:t("EVERYONE"),value:2},{label:t("USERS_WITH_PERMISSION"),value:3},{label:t("NOBODY"),value:4}]})))))}},{key:"render",value:function(){var e=this.props,a=e.value,r=e.onDelete,n=e.menuData,l=Object.keys(a)[0];return f.default.createElement("div",{className:E.default.itemWrapper},f.default.createElement("div",{className:E.default.itemTitle},f.default.createElement("p",null,f.default.createElement("strong",null,t(n[l].replace(/\s/g,"_").toUpperCase()))),f.default.createElement(h.Button,{className:E.default.delete,type:"flat",icon:"trash",onClick:r})),l&&this.renderFormItems(l))}}]),r}(f.default.Component);a.default=S,S.propTypes={value:d.default.object,onChange:d.default.func,onDelete:d.default.func},S.defaultProps={value:{},onChange:function(){},onDelete:function(){}}},function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(11),r(18),r(16),r(10),r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(11),r(18),r(42),r(448),r(16),r(10),r(4),r(23),r(57),r(17);var l=n(r(61)),o=n(r(36)),u=n(r(37)),c=n(r(55)),s=n(r(56)),i=n(r(51)),f=n(r(63)),d=n(r(60)),p=n(r(26)),m=n(r(74)),v=n(r(0)),h=n(r(1)),E=r(186),y=r(72),g=n(r(3263)),b=n(r(1732));function S(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,i.default)(e);if(t){var n=(0,i.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,s.default)(this,a)}}var _=function(e){(0,c.default)(r,e);var a=S(r);function r(){var e;(0,o.default)(this,r);for(var t=arguments.length,n=new Array(t),u=0;u=0;a--)if(!(0,S.default)(e[a])&&e[a].indexOf("Finished")>-1)return void(t=!0);if(t)clearInterval(n.refresh),n.refresh=null;else{var r=n.props.params;n.props.store.getRepoScanLogs(r)}},n.handleFetch=(0,s.default)(l.default.mark((function e(){var a;return l.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=n.props.params,e.next=3,n.props.handleScanRepository();case 3:return e.next=5,n.props.store.getRepoScanLogs(a);case 5:y.default.success({content:t("LOGS_OBTAINED_SUCCESSFULLY")});case 6:case"end":return e.stop()}}),e)}))),n.handleDownloadLogs=function(){var e=n.props.store.repositoryLog;n.props.store.saveAsFile(e,"log.txt")},n.formRef=v.default.createRef(),n.refresh=setInterval((function(){n.refreshHandler()}),4e3),n}return(0,f.default)(r,[{key:"componentDidMount",value:function(){var e=this.props.params;this.props.store.getRepoScanLogs(e)}},{key:"componentDidUpdate",value:function(e){if(!e.visible&&this.props.visible){var t=this.props.params;this.props.store.getRepoScanLogs(t)}}},{key:"componentWillUnmount",value:function(){clearInterval(this.refresh)}},{key:"render",value:function(){var e=this.props,a=e.visible,r=e.onCancel,n=this.props.store.repositoryLog;return v.default.createElement(_.default,{width:1160,onCancel:r,visible:a,closable:!1,title:t("REPOSITORY_SCAN_LOGS"),cancelText:t("CLOSE")},v.default.createElement("div",{className:O.default.content},v.default.createElement("div",{className:O.default.btn_group},v.default.createElement(E.Icon,{name:"human",size:20}),this.startBy,v.default.createElement(E.Button,{onClick:this.handleDownloadLogs},t("DOWNLOAD")),v.default.createElement(E.Button,{onClick:this.handleFetch},t("RESCAN"))),v.default.createElement("pre",{className:O.default.pre},n)))}},{key:"startBy",get:function(){var e=this.props.store.repositoryLog.split("\n"),a=(0,b.default)(e,"[0]",""),r=a.match(/^Started by (user )?(.*)?/)||[],n=r[1],l=r[2];return a&&n?t("STARTED_BY_NAME",{name:l}):a&&!n?t("STARTED_BY_NAME",{name:t(l)}):t("STARTED_BY_NAME",{name:"-"})}}]),r}(v.default.Component),u.propTypes={name:h.default.string,branches:h.default.array},u.defaultProps={branches:[],visible:!1,onOk:function(){},onCancel:function(){}},o=c))||o;a.default=T},function(e,t,a){e.exports={content:"_1TtDoHIK3aC3dRiBhRTT0F",btn_group:"_1iXbGXD3S6h6qcpzVlnDq1",pre:"_8f1VfuEP3pLkfRwcKptfp"}},function(e,t,a){"use strict";a(15);var r=a(20);Object.defineProperty(t,"__esModule",{value:!0}),t.PIPELINE_CREATE_STEPS_OLD=t.PIPELINE_CREATE_STEPS=t.PIPELINE_PROJECT_CREATE_STEPS=void 0;var n=r(a(1730)),l=r(a(3325)),o=r(a(3327)),u=r(a(3333)),c=r(a(3334)),s=[{title:"BASIC_INFORMATION",component:l.default,icon:"cdn",required:!0},{title:"ADVANCED_SETTINGS",component:n.default,required:!0}];t.PIPELINE_PROJECT_CREATE_STEPS=s;var i=[{title:"SELECT_TEMPLATE",component:o.default,required:!0},{title:"PARAMETER_CONFIG",component:u.default,required:!0,icon:"slider"}];t.PIPELINE_CREATE_STEPS=i;var f=[{title:"SELECT_TEMPLATE",component:o.default,required:!0},{title:"PARAMETER_CONFIG",component:c.default,required:!0,icon:"slider"}];t.PIPELINE_CREATE_STEPS_OLD=f},function(e,a,r){"use strict";r(15);var n=r(20);r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(42),r(4),r(23),r(57),r(17);var l=n(r(36)),o=n(r(37)),u=n(r(55)),c=n(r(56)),s=n(r(51)),i=r(186),f=n(r(26)),d=n(r(74)),p=n(r(0)),m=r(52),v=r(72),h=r(916),E=r(903),y=n(r(1200)),g=n(r(3326));function b(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,s.default)(e);if(t){var n=(0,s.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,c.default)(this,a)}}var S=function(e){(0,u.default)(r,e);var a=b(r);function r(e){var n;(0,l.default)(this,r),(n=a.call(this,e)).validator=function(e,a,r){if(!a)return r();n.props.store.checkPipelineName({name:a,cluster:n.props.cluster,devops:n.props.devops},(0,h.compareVersion)(n.ksVersion,"3.4.0")<0).then((function(a){if(a.exist)return r({field:e.field,message:t("NAME_EXIST_DESC")});r()}))};var o=e.formTemplate;return n.state={type:(0,f.default)(o,"multi_branch_pipeline",null)?1:0},n}return(0,o.default)(r,[{key:"render",value:function(){var e=this,a=this.props,r=a.formRef,n=a.formTemplate,l=a.devops,o=a.cluster;return p.default.createElement(i.Form,{ref:r,data:n,className:g.default.from},p.default.createElement(i.Columns,null,p.default.createElement(i.Column,null,p.default.createElement(i.Form.Item,{label:t("NAME"),desc:t("NAME_DESC"),rules:[{required:!0,message:t("NAME_EMPTY_DESC")},{pattern:v.PATTERN_NAME,message:t("INVALID_NAME_DESC")},{validator:this.validator}]},p.default.createElement(i.Input,{name:"name",maxLength:63})),p.default.createElement(i.Form.Item,{label:t("DESCRIPTION"),desc:t("DESCRIPTION_DESC")},p.default.createElement(i.TextArea,{name:"description",maxLength:256}))),p.default.createElement(i.Column,null,p.default.createElement(i.Form.Item,{label:t("DEVOPS_PROJECT"),desc:t("PIPELINE_CREATE_DEVOPS_PROJECT_DESC")},p.default.createElement("div",{name:"devopsName",className:"disabled-input"},(0,m.showNameAndAlias)(null==n?void 0:n.devopsName,"devops"))))),p.default.createElement("div",{className:"form-item"},p.default.createElement("label",{className:"form-item-label"},t("PIPELINE_TYPE")),p.default.createElement(E.TypeSelect,{value:this.state.type,onChange:function(t){e.setState({type:t}),(0,d.default)(n,"multi_branch_pipeline",void 0)},name:"pipeline-type",options:[{label:t("PIPELINE_PL"),value:0,icon:"branch",description:t("BRANCH_PIPELINE_DESC")},{label:t("MULTI_BRANCH_PIPELINE"),value:1,icon:"branch",description:t("MULTI_BRANCH_PIPELINE_DESC")}]})),1===this.state.type&&p.default.createElement(i.Form.Item,{label:t("CODE_REPOSITORY_OPTIONAL"),rules:[{required:!0,message:t("CODE_REPOSITORY_REQUIRED_DESC")}]},p.default.createElement(y.default,{name:"multi_branch_pipeline",devops:l,cluster:o,isCreatePipeline:!0,trigger:this.props.trigger})))}},{key:"ksVersion",get:function(){var e=this.props.cluster;return globals.app.isMultiCluster?(0,f.default)(globals,"clusterConfig.".concat(e,".ksVersion")):(0,f.default)(globals,"ksConfig.ksVersion")}}]),r}(p.default.Component);a.default=S},function(e,t,a){e.exports={from:"_3leGyYanySt4QBpWlptmsl"}},function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(42),r(4),r(23),r(57),r(17);var l,o=n(r(36)),u=n(r(37)),c=n(r(55)),s=n(r(56)),i=n(r(51)),f=r(186),d=n(r(74)),p=r(239),m=n(r(3328)),v=n(r(0)),h=n(r(3332));function E(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,i.default)(e);if(t){var n=(0,i.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,s.default)(this,a)}}var y=(0,p.observer)(l=function(e){(0,c.default)(r,e);var a=E(r);function r(){var e;(0,o.default)(this,r);for(var t=arguments.length,n=new Array(t),l=0;l0?i.default.createElement("div",{className:y.default.params_container},S.map((function(e,t){return i.default.createElement(E.default,{key:t,option:e})}))):i.default.createElement("div",{className:y.default.empty},i.default.createElement("div",{className:y.default.icon},i.default.createElement("img",{src:"/assets/pipeline-temp-empty.svg",alt:""})),i.default.createElement("p",null,t("EMPTY_PARAMS_CONFIG"))))))),i.default.createElement(g,{label:t("PREVIEW"),name:"view",disabled:(0,m.default)(S)},i.default.createElement("div",{className:y.default.view},j?i.default.createElement("div",{className:y.default.timeOut},i.default.createElement("div",{className:y.default.icon},i.default.createElement("img",{src:"/assets/pipeline-temp-empty.svg",alt:""})),i.default.createElement("p",null,t("CONNECTION_TIMEOUT"))):i.default.createElement(h.default,{spinning:N},i.default.createElement(f.Form,{data:a,ref:r},i.default.createElement(d.default,{className:y.default.content,jsonData:A}))))))))},r(18),r(28),r(87),r(16),r(10),r(4),r(22);var o=l(r(43));r(41);var u=l(r(44)),c=l(r(96)),s=l(r(58)),i=n(r(0)),f=r(186),d=l(r(1125)),p=l(r(60)),m=l(r(63)),v=l(r(74)),h=l(r(1202)),E=l(r(1737)),y=l(r(1386)),g=f.Tabs.TabPanel},function(e,a,r){"use strict";r(15);var n=r(157),l=r(20);r(18),r(87),r(16),r(10),Object.defineProperty(a,"__esModule",{value:!0}),a.default=function(e){var a=e.formTemplate,r=e.formRef,n=e.store,l=(0,s.default)(e,["formTemplate","formRef","store"]),b=a.params,S=void 0===b?[]:b,_=(0,h.useState)("params"),O=(0,c.default)(_,2),C=O[0],T=O[1],R=(0,h.useState)(!1),D=(0,c.default)(R,2),N=D[0],k=D[1],I=(0,h.useState)({}),P=(0,c.default)(I,2),A=P[0],w=P[1],M=function(){var e=(0,u.default)(o.default.mark((function e(t){var r,u,c,s,i,f,d,p,m;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("view"!==t){e.next=16;break}return r=a.paramsForm,u=void 0===r?{}:r,c=Object.keys(u).reduce((function(e,t){return e.push({name:t,value:u[t]}),e}),[]),k(!0),e.next=6,n.getTempleJenkins(a.template,{parameters:c},{cluster:l.params.cluster});case 6:return s=e.sent,i=l.params,f=i.devops,d=i.name,p=i.cluster,e.next=10,n.checkScriptCompile({devops:f,pipeline:d,value:s,cluster:p});case 10:return e.next=12,n.convertJenkinsFileToJson(s,p);case 12:m=e.sent,w(m),(0,v.default)(a,"jenkinsFile",m),k(!1);case 16:T(t);case 17:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return h.default.createElement("div",{className:E.default.templateParams},h.default.createElement(f.default,{spinning:n.isSubmitting},h.default.createElement(i.Tabs,{type:"button",tabs:C,onChange:M},h.default.createElement(g,{label:t("PARAMETER_CONFIG"),name:"params"},h.default.createElement("div",{className:E.default.container},h.default.createElement("div",{className:E.default.params},h.default.createElement(i.Form,{data:a,ref:r},(0,p.default)(S)&&S.length>0?h.default.createElement("div",{className:E.default.params_container},S.map((function(e,t){return h.default.createElement(y.default,{key:t,option:e})}))):h.default.createElement("div",{className:E.default.empty},h.default.createElement("div",{className:E.default.icon},h.default.createElement("img",{src:"/assets/pipeline-temp-empty.svg",alt:""})),h.default.createElement("p",null,t("EMPTY_PARAMS_CONFIG"))))))),h.default.createElement(g,{label:t("PREVIEW"),name:"view",disabled:(0,m.default)(S)},h.default.createElement("div",{className:E.default.view},h.default.createElement(f.default,{spinning:N},h.default.createElement(i.Form,{data:a,ref:r},h.default.createElement(d.default,{className:E.default.content,jsonData:A}))))))))},r(18),r(28),r(87),r(16),r(10),r(4),r(22);var o=l(r(43));r(41);var u=l(r(44)),c=l(r(96)),s=l(r(58)),i=r(186),f=l(r(1202)),d=l(r(1125)),p=l(r(60)),m=l(r(63)),v=l(r(74)),h=n(r(0)),E=l(r(1386)),y=l(r(1737)),g=i.Tabs.TabPanel},function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(16),r(4),r(22),r(196),r(23),r(24),r(17),r(64),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(42),r(16),r(4),r(22),r(196),r(23),r(57),r(24),r(17),r(64);var l=n(r(43));r(41);var o=n(r(44)),u=n(r(36)),c=n(r(37)),s=n(r(55)),i=n(r(56)),f=n(r(51)),d=n(r(787)),p=n(r(841)),m=n(r(824)),v=n(r(26)),h=n(r(806)),E=n(r(1)),y=n(r(0)),g=n(r(960)),b=r(52),S=n(r(3336));function _(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,f.default)(e);if(t){var n=(0,f.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,i.default)(this,a)}}var O=function(e){(0,s.default)(r,e);var a=_(r);function r(e){var t,n;return(0,u.default)(this,r),(n=a.call(this,e)).showConfirm=function(){var e=n.props.defaultValue,t=n.state.value;(0,h.default)(e,t)?n.props.onCancel():n.setState({isShowConfirm:!0})},n.hideConfirm=function(){n.setState({isShowConfirm:!1})},n.handleCancel=function(){n.hideConfirm(),n.props.onCancel()},n.handleChange=function(e){n.setState({value:e})},n.getEditorInstance=function(e){n.editor=e},n.checkScriptCompile=(0,o.default)(l.default.mark((function e(){var t,a,r,o,u;return l.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.props.params,a=t.devops,r=t.name,o=t.cluster,n.setState({isLoading:!0}),e.next=4,n.store.checkScriptCompile({value:n.newValue,pipeline:r,devops:a,cluster:o},(function(){n.setState({shouldCheckScriptCompile:!1})})).finally((function(){return n.setState({isLoading:!1})}));case 4:if("fail"!==(u=e.sent).status){e.next=9;break}return n.setState({error:{row:u.line-1,column:u.column,type:"error",text:u.message}}),n.forceUpdate(),e.abrupt("return",u);case 9:return n.setState({error:null}),e.abrupt("return",!1);case 11:case"end":return e.stop()}}),e)}))),n.saveJenkins=function(e){var t=n.props.params,a=t.devops,r=t.name,l=t.cluster;n.setState({isLoading:!0});var o=l&&"default"!==l?"/klusters/".concat(l):"";return request.put("/kapis/devops.kubesphere.io/v1alpha3".concat(o,"/namespaces/").concat(a,"/pipelines/").concat(r,"/jenkinsfile?mode=raw"),{data:e},{headers:{"content-type":"application/json"}}).finally((function(){return n.setState({isLoading:!1})}))},n.handleOk=(0,o.default)(l.default.mark((function e(){return l.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n.newValue=n.state.value.replace(/\t/g," "),!n.state.shouldCheckScriptCompile){e.next=7;break}return e.next=4,n.checkScriptCompile();case 4:if(!e.sent){e.next=7;break}return e.abrupt("return");case 7:if(n.isOld){e.next=10;break}return e.next=10,n.saveJenkins(n.newValue);case 10:n.props.onOk(n.newValue);case 11:case"end":return e.stop()}}),e)}))),n.store=new g.default,n.state={value:null!==(t=e.defaultValue)&&void 0!==t?t:"",isLoading:!1,isShowConfirm:!1,shouldCheckScriptCompile:!0},n}return(0,c.default)(r,[{key:"componentDidUpdate",value:function(e){var t=this.props,a=t.visible,r=t.defaultValue;a&&!e.visible&&r&&this.setState({value:r})}},{key:"render",value:function(){var e=this.props,a=e.visible,r=e.isSubmitting,n=this.state,l=n.isShowConfirm,o=n.error,u=n.shouldCheckScriptCompile,c=n.value,s=n.isLoading;return y.default.createElement(y.default.Fragment,null,y.default.createElement(d.default,{icon:"cogwheel",width:900,bodyClassName:S.default.body,isSubmitting:r||s,onCancel:this.showConfirm,onOk:this.handleOk,okButtonType:u?void 0:"danger",okText:u?void 0:"continue",visible:a,closable:!1,maskClosable:!1,title:"Jenkinsfile"},y.default.createElement(y.default.Fragment,null,y.default.createElement(p.default,{className:S.default.codeEditor,name:"script",mode:"groovy",value:c,onChange:this.handleChange,options:o&&{annotations:[o]}}),o&&y.default.createElement("div",{className:S.default.checkResult},y.default.createElement("img",{src:"/assets/error.svg"}),y.default.createElement("span",null,t("JENKINS_LINS_ERROR",{line:o.row+1}))),!u&&y.default.createElement("div",{className:S.default.checkResult},y.default.createElement("img",{src:"/assets/error.svg"}),y.default.createElement("span",null,t("FAILED_CHECK_SCRIPT_COMPILE"))))),y.default.createElement(m.default,{visible:l,onCancel:this.hideConfirm,onOk:this.handleCancel,title:t("CLOSE"),desc:t("CLOSE_JENKINSFILE_EDITOR_TIP")}))}},{key:"ksVersion",get:function(){var e=this.props.params.cluster;return window.parent.globals.app.isMultiCluster?(0,v.default)(window,"parent.globals.clusterConfig.".concat(e,".ksVersion")):(0,v.default)(window,"parent.globals.ksConfig.ksVersion")}},{key:"isOld",get:function(){return(0,b.compareVersion)(this.ksVersion,"3.4.0")<0}}]),r}(y.default.Component);a.default=O,O.propTypes={name:E.default.string,params:E.default.object},O.defaultProps={visible:!1,isSubmitting:!1,onOk:function(){},onCancel:function(){}}},function(e,t,a){e.exports={codeEditor:"FwGVnxxpNbU-YwCj8hrz_",checkResult:"_177fFbaR70Um61ePRL6Q86",body:"_33dDTLMi8Kh16V0VchwicK"}},function(e,a,r){"use strict";var n=r(20);r(12),r(109),r(11),r(6),r(9),r(13),r(10),r(24),r(64),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(109),r(11),r(6),r(28),r(34),r(15),r(9),r(13),r(10),r(4),r(24),r(64),r(7);var l=n(r(30)),o=n(r(58)),u=n(r(787)),c=n(r(240)),s=n(r(3338)),i=n(r(1293));function f(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function d(e){for(var t=1;t1048576*A)){e.next=5;break}return d.default.error(t("UPLOAD_FILE_TOO_LARGE")),e.abrupt("return",Promise.reject(t("UPLOAD_FILE_TOO_LARGE")));case 5:if(n=a.name.slice(a.name.lastIndexOf(".")+1),-1!==R.findIndex((function(e){return e===n}))){e.next=9;break}return d.default.error(t("WRONG_FILE_EXTENSION_NAME",{type:R.join(",")})),e.abrupt("return",Promise.reject(t("WRONG_FILE_EXTENSION_NAME",{type:R.join(",")})));case 9:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),onSuccess:function(a,r){var n=e.onChange,l=new FileReader;if(200===a.code||a.image)return l.readAsDataURL(r),l.addEventListener("load",(function(){var e=l.result;x(e),G(!1),n&&n(a,e)})),d.default.success({content:t("UPLOAD_SUCCESSFUL")});d.default.error({content:t("UPLOAD_PLATFORM_IMAGE_FAILED",{message:a.message||"Internal Server Error"})})},onError:function(a){var r=e.onError;r&&r(),d.default.error({content:t("UPLOAD_PLATFORM_IMAGE_FAILED",{message:a.message||"Internal Server Error"})}),G(!0)}};return i.default.createElement(i.default.Fragment,null,i.default.createElement("div",{className:v.default.container,style:{height:n,width:y}},(J=V?{}:{visibility:"hidden"},i.default.createElement("div",{className:v.default.uploadBox,style:J},i.default.createElement(p.default,(0,o.default)({},q,{ref:W}),i.default.createElement("div",{className:v.default.selectContainer,style:{height:n,width:y}},i.default.createElement(f.Icon,{className:v.default.icon,size:40,name:"upload"}),i.default.createElement("p",{className:v.default.title},w),i.default.createElement("p",{className:v.default.desc},I))))),(!globals.useDefaultTheme||""!==j)&&(K=j||_,Q=""!==globals.theme.background||""!==j,i.default.createElement("div",{className:v.default.imageBox},!V&&i.default.createElement(h.default,{style:(0,m.default)({favicon:{maxHeight:40},logo:{maxHeight:40}},e.name,{}),src:K}),i.default.createElement("div",{className:v.default.overlay},i.default.createElement(f.Tooltip,{content:I,placement:"top",style:{width:400}},i.default.createElement(f.Button,{type:"control",onClick:function(){return W.current.onClick()}},t("UPLOAD"))),N&&Q&&i.default.createElement(f.Button,{onClick:function(){return H(!0)}},t("PREVIEW"))))),z&&function(){var e=j||_;return i.default.createElement(E.default,{logoUrl:C,imagUrl:e,onClick:H})}()));var K,Q;var J},r(197),r(73),r(975),r(48),r(16),r(4),r(22);var o=l(r(315)),u=l(r(43));r(41);var c=l(r(44)),s=l(r(96)),i=n(r(0)),f=r(186),d=l(r(240)),p=l(r(952)),m=l(r(26)),v=l(r(1387)),h=l(r(1738)),E=l(r(3340))},function(e,t,a){"use strict";a(15);var r=a(157),n=a(20);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var l=n(a(96)),o=r(a(0)),u=a(186),c=n(a(3)),s=n(a(1387)),i=function(e){var t=e.imagUrl,a=e.logoUrl,r=e.style,n=e.className,i=e.onClick,f=(0,o.useState)(!0),d=(0,l.default)(f,2),p=d[0],m=d[1],v=globals.config.logo||globals.defaultTheme.logo,h=globals.useDefaultTheme?v:globals.theme.logo,E=""!==a?a:h;return o.default.createElement(o.default.Fragment,null,o.default.createElement("div",{className:(0,c.default)(n,s.default.loadingPreviewImage)},o.default.createElement("div",{className:s.default.preview},o.default.createElement("div",{className:s.default.box},o.default.createElement("div",{className:s.default.image},p&&o.default.createElement(u.Loading,{className:s.default.loading}),o.default.createElement("img",{style:r,src:t,alt:"",onLoad:function(){return m(!1)}}),!p&&o.default.createElement(o.default.Fragment,null,o.default.createElement("img",{className:s.default.logo,src:E}),o.default.createElement("img",{className:s.default.loginForm,src:"/assets/loginForm.svg"}))),!p&&o.default.createElement(u.Icon,{name:"close",className:s.default.cancel,onClick:function(){return i(!1)}})))))};t.default=i},function(e,t,a){e.exports={form:"_117p4N5fmQ3xC2Jt2kqjt3",item:"_3QGGQazz9cLTxnGlDt0_dA",marginTop:"_2-DqDXEz5x0GhYdEsFqQNI"}},function(e,a,r){"use strict";var n=r(20);r(12),r(11),r(6),r(18),r(16),r(9),r(13),r(10),r(4),r(17),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(45),r(11),r(6),r(18),r(28),r(42),r(16),r(34),r(15),r(9),r(13),r(10),r(4),r(22),r(17),r(7);var l=n(r(43));r(41);var o=n(r(44)),u=n(r(30)),c=n(r(58)),s=n(r(26)),i=n(r(74)),f=n(r(457)),d=n(r(63)),p=n(r(240)),m=n(r(787)),v=n(r(3343)),h=n(r(3355)),E=n(r(3358)),y=n(r(3359)),g=n(r(435)),b=r(52),S=n(r(322)),_=n(r(885)),O=n(r(1095));function C(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function T(e){for(var t=1;t0&&void 0!==m[0]?m[0]:{},e.next=3,this.store.checkName({name:t.name,namespace:t.name,cluster:t.cluster});case 3:if(!e.sent.exist){e.next=7;break}return e.next=7,this.store.fetchDetail({name:t.name,namespace:t.name,cluster:t.cluster});case 7:return a=(0,y.toJS)(this.store.detail),e.next=10,this.storageStore.fetchList({cluster:t.cluster});case 10:r=e.sent,n=z({},(0,g.default)(this.workspaceQuotaStore.detail,"spec.quota.hard",{})),l=this.getWorkspaceAvailableStorageConfig(n),u=l.wsAvailableRequest,c=l.wsRelatedStoragesLimit,i=this.getStorageSpec(a,u),f=i.spec,d=i.nsAvailableStorage,this.setState({formTemplate:this.cancelGpuSetting(a),allStorageClass:(0,s.default)(r),spec:f,nsAvailableStorage:d,wsAvailableRequest:u,wsRelatedStoragesLimit:c},(function(){p.setRelateSourceResult()}));case 15:case"end":return e.stop()}}),e,this)}))),function(){return a.apply(this,arguments)})},{key:"getWorkspaceAvailableStorageConfig",value:function(){var e=1/0,t=1/0,a=(0,y.toJS)(this.workspaceQuotaStore.detail),r=(0,g.default)(a,"spec.quota.hard",{}),n=(0,T.default)(r,(function(e,t){return!t.includes(L.STORAGE_CLASS_STORAGE)&&!t.includes(L.STORAGE_CLASS_VOLUME_CLAIMS)})),l=(0,g.default)(r,["requests.storage"],void 0),o=(0,g.default)(r,["persistentvolumeclaims"],void 0);(l&&(e=l=(0,V.memoryFormat)(l,"Gi")),o)&&(t=Number(o));return{wsAvailableRequest:{storage:e,persistentvolumeclaims:t},wsRelatedStoragesLimit:(0,k.default)(Object.entries(n),(function(e){return(0,c.default)(e,1)[0].split(".")[0]}))}}},{key:"render",value:function(){var e=this.props,a=e.detail,r=e.visible,n=e.onCancel,l=e.isFederated,o=e.isSubmitting,u=this.state,c=u.error,s=u.spec,i=u.allStorageClass,f=u.nsAvailableStorage,d=u.wsAvailableRequest,p=u.wsRelatedStoragesLimit,m=u.disableSave,v=u.totalStorageError,E=u.totalVolumeClaimsError,y=u.currentRelatedStorageTotal,g=u.currentRelatedVolumeClaimsTotal,b=u.addedItems;return h.default.createElement(w.default.Form,{width:960,title:t("EDIT_PROJECT_QUOTAS"),icon:"pen",data:this.state.formTemplate,onOk:this.handleOk,onCancel:n,visible:r,isSubmitting:o,disableOk:!!c||m},h.default.createElement("div",{className:B.default.body},h.default.createElement(A.Form.Item,{label:t("NAME")},h.default.createElement(A.Input,{name:"name",defaultValue:a.name,disabled:!0})),h.default.createElement(A.Form.Item,null,h.default.createElement(M.default,this.resourceLimitProps)),h.default.createElement("div",{className:B.default.storageLimit},h.default.createElement(L.default,{namespace:a.name,quota:s,isWorkspace:!1,availableQuota:f,wsAvailableRequest:d,relatedStoragesLimit:p,allStorageClass:i,onChange:this.handleOnChange,renderOutOfLimitTip:v||E,totalStorageError:v,totalVolumeClaimsError:E,currentRelatedStorageTotal:y,currentRelatedVolumeClaimsTotal:g,addedItems:b})),h.default.createElement("div",{className:B.default.label},t("APPLICATION_RESOURCE_QUOTAS")),h.default.createElement(G.default,{data:this.state.formTemplate,isFederated:l})))}},{key:"resourceLimitProps",get:function(){var e=this,a=this.state.formTemplate,r=this.state.leftQuota,n=(0,_.default)(r)?{}:{limits:{cpu:(0,g.default)(r,"limits.cpu"),memory:(0,g.default)(r,"limits.memory")},requests:{cpu:(0,g.default)(r,"requests.cpu"),memory:(0,g.default)(r,"requests.memory")}},l=(0,g.default)(a,"spec.gpu.type",""),o=(0,g.default)(a,"spec.gpu.value",""),u={};return(0,b.default)(u,'["'.concat(l,'"]'),o),{cpuProps:{marks:[{value:0,label:t("NO_REQUEST"),weight:4},{value:1,label:1,weight:4},{value:2,label:2,weight:2},{value:3,label:3,weight:2},{value:4,label:4},{value:5,label:5},{value:6,label:6},{value:7,label:7},{value:8,label:8},{value:1/0,label:t("NO_LIMIT")}]},memoryProps:{marks:[{value:0,label:t("NO_REQUEST"),weight:4},{value:2,label:2,weight:4},{value:4,label:4,weight:2},{value:6,label:6,weight:2},{value:8,label:8},{value:10,label:10},{value:12,label:12},{value:14,label:14},{value:16,label:16},{value:1/0,label:t("NO_LIMIT")}],unit:"Gi",valueFormatter:function(e){return e>0&&e<1?e.toFixed(2):e>1&&e!==1/0?e.toFixed(1):e}},defaultValue:{limits:z({cpu:(0,g.default)(a,'spec.hard["limits.cpu"]'),memory:(0,g.default)(a,'spec.hard["limits.memory"]')},u),requests:z({cpu:(0,g.default)(a,'spec.hard["requests.cpu"]'),memory:(0,g.default)(a,'spec.hard["requests.memory"]')},u)},workspaceLimitProps:n,onChange:function(e){var t;(0,S.default)(a,"spec.hard"),(0,b.default)(a,'spec.hard["limits.cpu"]',(0,g.default)(e,"limits.cpu",null)),(0,b.default)(a,'spec.hard["limits.memory"]',(0,g.default)(e,"limits.memory",null)),(0,b.default)(a,'spec.hard["requests.cpu"]',(0,g.default)(e,"requests.cpu",null)),(0,b.default)(a,'spec.hard["requests.memory"]',(0,g.default)(e,"requests.memory",null));var r=(0,g.default)(e,"requests",{}),n=null===(t=Object.keys(r))||void 0===t?void 0:t.filter((function(e){return e.includes("gpu")})),l=(0,g.default)(n,"0","");l&&(0,b.default)(a,'spec.hard["requests.'.concat(l,'"]'),(0,g.default)(r,l))},onError:function(t){e.setState({error:t})},supportGpuSelect:this.props.supportGpuSelect,omitQuotaCheck:!0}}}]),n}(h.default.Component);a.default=W,W.propTypes={detail:E.default.object,visible:E.default.bool,onOk:E.default.func,onCancel:E.default.func,isSubmitting:E.default.bool},W.defaultProps={visible:!1,isSubmitting:!1,detail:{},onOk:function(){},onCancel:function(){}}},function(e,a,r){"use strict";var n=r(157),l=r(20);r(12),r(5),r(11),r(6),r(48),r(27),r(190),r(9),r(13),r(10),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var o=l(r(315)),u=l(r(30)),c=l(r(96)),s=l(r(58));r(12),r(5),r(11),r(6),r(28),r(48),r(27),r(190),r(34),r(15),r(9),r(13),r(10),r(4),r(7);var i=n(r(0)),f=r(186),d=l(r(1304)),p=l(r(26)),m=l(r(447)),v=l(r(1040)),h=l(r(195)),E=r(52),y=l(r(3)),g=l(r(1740)),b=l(r(3345)),S=l(r(1741)),_=l(r(3347));function O(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function C(e){for(var t=1;t0&&e<1?e.toFixed(2):e>1&&e!==1/0?e.toFixed(1):e},N=function(e){var a=e.storageLimitSpec,r=e.renderOutOfLimitTip,n=void 0!==r&&r,l=e.totalStorageError,O=void 0!==l&&l,N=e.totalVolumeClaimsError,k=void 0!==N&&N,I=(0,s.default)(e,["storageLimitSpec","renderOutOfLimitTip","totalStorageError","totalVolumeClaimsError"]),P=(0,i.useState)(!1),A=(0,c.default)(P,2),w=A[0],M=A[1],L=(0,i.useState)({"requests.storage":"InfinityGi",persistentvolumeclaims:""}),j=(0,c.default)(L,2),x=j[0],U=j[1],F=(0,i.useState)("workspace"),V=(0,c.default)(F,2),G=V[0],B=V[1];(0,i.useEffect)((function(){var e=(0,p.default)(a,["requests.storage"],"InfinityGi"),t={"requests.storage":e,persistentvolumeclaims:(0,p.default)(a,["persistentvolumeclaims"],"")};M("InfinityGi"===e),U(C({},t))}),[a]);var Y,z,H,W,q,K,Q,J,X=i.default.createElement("div",{className:b.default.tipContent},i.default.createElement("div",{className:b.default.warning},t("TOTAL_STORAGE_LIMIT_LESS_THAN_RELATE_RESOURCE")));return i.default.createElement("div",{className:b.default.storageClassBox},i.default.createElement("div",{className:b.default.titleLine},i.default.createElement("div",{className:b.default.icon},i.default.createElement(f.Icon,{name:"storage",size:40})),i.default.createElement("div",null,i.default.createElement("span",{className:b.default.title},t("STORAGE_QUOTA")),i.default.createElement("span",{className:b.default.desc},I.isWorkspace?t("WS_STORAGE_QUOTA_DESC"):t("NS_STORAGE_QUOTA_DESC")))),i.default.createElement("div",{className:b.default.setting},i.default.createElement(f.Tabs,{type:"button",activeName:G,onChange:function(e){return B(e)}},i.default.createElement(T,{label:t("TOTAL_STORAGE_RESOURCE"),name:"workspace"},(K=x["requests.storage"],Q=(0,h.default)(K)?"InfinityGi"===K?1/0:(0,E.memoryFormat)(K,"Gi"):K,J=x.persistentvolumeclaims,i.default.createElement("div",{className:b.default.storageClassBox},i.default.createElement(f.Columns,null,i.default.createElement(f.Column,null,i.default.createElement("div",{className:b.default.slider},i.default.createElement("span",{className:b.default.text},t("VOLUME_TOTAL_CAPACITY",{unit:"Gi"})),i.default.createElement(S.default,{value:w?1/0:Q,marks:R,unit:"Gi",valueFormatter:D,onChange:function(e){return function(e){(0,v.default)(e)?M(!1):M(!0);var t={"requests.storage":isNaN(e)?"InfinityGi":"".concat(e).concat("Gi"),persistentvolumeclaims:(0,p.default)(x,["persistentvolumeclaims"],"")};I.handleWsLimitChange(C({},t))}(e)}})))),i.default.createElement(f.Columns,null,i.default.createElement(f.Column,null,i.default.createElement("span",{className:b.default.text},t("RESOURCE_LIMITS")),i.default.createElement("div",{className:(0,y.default)(b.default.wrapper,(0,u.default)({},b.default.error,O))},i.default.createElement(g.default,{className:b.default.input,min:0,value:w?"":Q,placeholder:w?t("NO_LIMIT"):"",onChange:function(e){return a=t=e,(0,m.default)(t,".")&&(a=Number(t.slice(0,t.length-1))),""!==t&&"-"!==t||(a=1/0),void I.handleWsLimitChange({"requests.storage":"".concat(a,"Gi"),persistentvolumeclaims:(0,p.default)(x,["persistentvolumeclaims"],"")});var t,a}}),i.default.createElement("span",{className:b.default.unit},"Gi"))),i.default.createElement(f.Column,null,i.default.createElement("span",{className:b.default.text},t("VOLUME_MAX_NUM")),i.default.createElement("div",{className:(0,y.default)(b.default.wrapper,(0,u.default)({},b.default.error,k))},i.default.createElement(d.default,{className:b.default.input,min:0,value:J,placeholder:t("NO_LIMIT"),onChange:function(e){return r=t=e,(0,m.default)(t,".")&&(r=Number(t.slice(0,t.length-1))),""!==t&&"-"!==t||(r=""),void I.handleWsLimitChange({"requests.storage":(0,p.default)(a,["requests.storage"]),persistentvolumeclaims:r});var t,r}})))),!I.isWorkspace&&(Y=(0,p.default)(I.wsAvailableRequest,"storage",1/0),z=(0,p.default)(I.wsAvailableRequest,"persistentvolumeclaims",1/0),H=(0,v.default)(Y)?t("STORAGE_VOLUME_LIMIT_HAS_A_LIMIT",{num:Y}):t("STORAGE_VOLUME_LIMIT_NO_LIMIT"),W=(0,v.default)(z)?t("STORAGE_PERSISTENT_VOLUME_HAS_A_LIMIT",{num:z}):t("STORAGE_PERSISTENT_VOLUME_NO_LIMIT"),q="".concat(H,", ").concat(W),i.default.createElement("div",{className:b.default.tipContent},i.default.createElement(f.Alert,{type:"info",title:t("AVAILABLE_QUOTAS"),message:q}))),n&&X))),i.default.createElement(T,{label:t("STORAGE_RELATED_RESOURCE"),name:"related"},i.default.createElement(_.default,(0,o.default)({wsQuotaSpec:x,namespaceStorageClass:I.namespaceStorageClass,onChange:I.handleRelateVolumeChange},I))))))};a.default=N},function(e,t,a){e.exports={body:"_1Zibu60vRfDthPuTtmecl6",quotaItem:"_2B9mfPAIPrv87rpL8gK0Z3",label:"_387XF4DSpyII0xdPCm5Ol-",storageClassBox:"GsUeOovHSpbPHsXrfFSVd",titleLine:"_2b5PjG5EJ76L_CdkwSPf0d",icon:"_2hX0yF-a_71od_SpFGkHPc",title:"_3cGLB1-_7HM9DFtM2TaigR",desc:"_2FnNeo05GhWmAnl1WF1MM0",setting:"_19mHEHTw_bOB7NvvH2ASZE",labelTitle:"_2grZ3IUkiniMD2AXEHolyr",slider:"_277WgEgy_uhoHRu4K8tYrV",wrapper:"_3Ys-12L0fXQ8IAT8TOQMwA",unit:"_2TZjwDYDSzQuS9x7nY2Wos",text:"IUX493SRHJsoFy1nCdpuo",tipContent:"_1PqAcxrcsIzCF2KVhpciIh",warning:"DwT3n4gVdL1CX0m9GWbi8",relatedBox:"_3tHVi0clIheoFTfZ_VAWTr",value:"_1CvMaWz4ZY1zV_f_gqXywE",addQuota:"Ob66euHsOLSyS_BwVPVpw",addBox:"_2OxV92PCBs2dkZd5Qt2usU",addContent:"_2v8rozHDR2mazzNtAk6O4c",closeContent:"_2Z5LKlEGF3nX0OW0XM5GTw",error:"cVDyGh3umWPB0JhKLe8w1"}},function(e,t,a){e.exports={sliderWrapper:"INNBh97y-sYhMpVHkK4Cx",slider:"_3UgYaCslbwFNrg1OHhgtCa",rail:"_1M9nwpLeBwN-yBGjjJS0wK",track:"_9S1TEImvI4d7kGjcNqPN-",handler:"b0ekkTeiTmxUXjH6CcDL6",mark:"_3hurtyaOWHzXYBzgHj0tE",inputWrapper:"_1OHarvGzBe3xdofM0FT4cA",inputGroup:"_3MBu3VVqJNZxy6JdlTFD8l",input:"tY1BQ6yan1T6oqPBCIZSV",error:"_1xlDWH5PHscTddpENrWRA0",label:"_2OHx8yT3Rc_GlstfwtAOqg",inputBox:"_1GlrMZcwurb0PmqkDTfdw",unit:"_2-SWp1Be4AZe-14gP-4L1F",message:"_2GhODRzieuOaggJkAMiQt1"}},function(e,a,r){"use strict";var n=r(157),l=r(20);r(12),r(5),r(11),r(31),r(6),r(86),r(18),r(48),r(16),r(27),r(190),r(98),r(9),r(13),r(10),r(24),r(62),r(64),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var o=l(r(30)),u=l(r(96));r(12),r(5),r(11),r(31),r(6),r(86),r(18),r(28),r(48),r(16),r(27),r(190),r(34),r(15),r(98),r(9),r(13),r(10),r(4),r(24),r(62),r(64),r(7);var c=r(186),s=l(r(3)),i=l(r(799)),f=l(r(447)),d=l(r(26)),p=l(r(1040)),m=n(r(0)),v=r(52),h=r(1388),E=l(r(1741)),y=l(r(1740)),g=l(r(3348)),b=l(r(3349));function S(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function _(e){for(var t=1;t0&&e<1?e.toFixed(2):e>1&&e!==1/0?e.toFixed(1):e}var R=function(e){var a=(0,m.useState)(!1),r=(0,u.default)(a,2),n=r[0],l=r[1],S=(0,m.useState)(_({},C)),R=(0,u.default)(S,2),D=R[0],N=R[1],k=(0,m.useRef)(),I=(0,m.useState)({editItemName:"",isEditMode:!1,storage:0,claims:0}),P=(0,u.default)(I,2),A=P[0],w=P[1],M=(0,m.useState)({limit:"",count:""}),L=(0,u.default)(M,2),j=L[0],x=L[1],U=(0,m.useState)(!1),F=(0,u.default)(U,2),V=F[0],G=F[1],B=(0,m.useState)(!1),Y=(0,u.default)(B,2),z=Y[0],H=Y[1],W=(0,m.useCallback)((function(){n&&k.current.scrollIntoView({behavior:"smooth"})}),[k,n]);(0,m.useEffect)((function(){W()}),[n,V,z]),(0,m.useEffect)((function(){var t=(0,d.default)(e.availableQuota,["storage"],1/0),a=(0,d.default)(e.availableQuota,["persistentvolumeclaims"],1/0),r=(0,d.default)(e.wsQuotaSpec,["persistentvolumeclaims"]),n=(0,d.default)(e.wsQuotaSpec,["requests.storage"]);if(r=""===r?1/0:r,"string"==typeof(n=""===n?1/0:n)){var l=(0,v.memoryFormat)(n,"Gi");n=l||1/0}if(!e.isWorkspace){var o=D.name,c=(0,d.default)(e.relatedStoragesLimit,["".concat(o)],null);if(c){var s=c.filter((function(e){return(0,u.default)(e,1)[0].match("storageclass.storage.k8s.io/requests.storage")})),i=c.filter((function(e){return(0,u.default)(e,1)[0].match("storageclass.storage.k8s.io/persistentvolumeclaims")})),f=1/0,m=1/0;if(s.length>0&&(f=(0,v.memoryFormat)(s[0][1],"Gi")),i.length>0&&(m=Number(i[0][1])),(t-=e.currentRelatedStorageTotal)=0?Math.min(t,n):(0,p.default)(n)?n:1/0,S=Math.min(a,r);x({limit:b,count:S})}),[e.availableQuota,D,n]),(0,m.useEffect)((function(){$(D.persistentvolumeclaims);var e=(0,v.memoryFormat)(D["requests.storage"],"Gi");Z(e=""!==e?e:"Infinity")}),[j]);var q,K,Q,J,X=(0,m.useCallback)((function(e){N(_(_({},D),{},{name:e.name}))}),[D]),Z=function(t){var a=j.limit,r=e.currentRelatedStorageTotal,n=A.isEditMode,l=A.storage,o=(0,v.memoryFormat)(l,"Gi");if("InfinityGi"!==a&&""!==a&&(0,p.default)(t)){var u=Number(a);e.isWorkspace&&(u-=r,!isNaN(o)&&n&&(u+=o)),"string"==typeof a&&(u=Number(a.replace(/[a-zA-Z]/g,""))),G(t>u)}else V&&G(!1)},$=function(t){var a=j.count,r=e.currentRelatedVolumeClaimsTotal,n=A.isEditMode,l=A.claims;if(""!==a&&""!==t){var o=a;e.isWorkspace&&(o-=r,""!==l&&n&&(o+=Number(l))),"string"==typeof a&&(o=a.replace(/[a-zA-Z]/g,"")),Number(t)>o?H(!0):H(!1)}else H(!1)},ee=(0,m.useCallback)((function(){l(!1),N(_({},C)),H(!1),G(!1),w({editItemName:"",isEditMode:!1,storage:0,claims:0})}),[]),te=(0,m.useCallback)((function(){var t;l(!1);var a=D.name,r=D["requests.storage"],n=D.persistentvolumeclaims,u=(t={},(0,o.default)(t,"".concat(a,".").concat(h.STORAGE_CLASS_STORAGE),r),(0,o.default)(t,"".concat(a,".").concat(h.STORAGE_CLASS_VOLUME_CLAIMS),n),t),c=A.isEditMode?{actionType:"edit",originName:A.editItemName,data:_({},u)}:{actionType:"add",data:_({},u)};e.onChange(c),N(C),w({editItemName:"",isEditMode:!1,limit:0,claims:0})}),[D]),ae=(0,m.useCallback)((function(t){var a,r=t.name;e.onChange({actionType:"delete",data:(a={},(0,o.default)(a,"".concat(r,".").concat(h.STORAGE_CLASS_STORAGE),""),(0,o.default)(a,"".concat(r,".").concat(h.STORAGE_CLASS_VOLUME_CLAIMS),""),a)})}),[]),re=(0,m.useCallback)((function(e,t){N({name:e.name,"requests.storage":t.storage,persistentvolumeclaims:t.claims}),w({editItemName:e.name,isEditMode:!0,storage:t.storage,claims:t.claims}),l(!0)}),[]),ne=(0,m.useCallback)((function(){return m.default.createElement("div",{className:g.default.relatedBox},m.default.createElement("div",{className:g.default.list},Object.entries(e.namespaceStorageClass).map((function(a,r){var n=(0,u.default)(a,2),l=n[0],o=n[1],s=e.allStorageClass.find((function(e){return e.name===l})),i="InfinityGi",f="",p=o.filter((function(e){return-1!==e.key.indexOf("requests.storage")}));p.length>0&&(i=p[0].value);var h,E,y,b=o.filter((function(e){return-1!==e.key.indexOf("persistentvolumeclaims")}));return b.length>0&&(f=b[0].value),s&&m.default.createElement("div",{className:g.default.card,key:r},(h=s,E={storage:"InfinityGi"===i?"InfinityGi":"".concat((0,v.memoryFormat)(i,"Gi"),"Gi"),claims:f},y=(0,v.memoryFormat)(E.storage,"Gi"),m.default.createElement(m.default.Fragment,null,m.default.createElement("div",{className:g.default.baseInfo},m.default.createElement("div",{className:g.default.Icon},m.default.createElement(c.Icon,{name:"database",size:40})),m.default.createElement("div",{className:g.default.text},m.default.createElement("p",{className:g.default.label},h.name,h.default&&m.default.createElement("span",{className:g.default.default},t("DEFAULT"))),m.default.createElement("p",{className:g.default.value},t("NAME"))),m.default.createElement("div",{className:g.default.text},m.default.createElement("p",{className:g.default.label},(0,d.default)(e.relatedCount,h.name,0)),m.default.createElement("p",{className:g.default.value},t("VOLUME_COUNT"))),m.default.createElement("div",{className:g.default.iconText},m.default.createElement("div",null,m.default.createElement("p",{className:g.default.label},h.provisioner),m.default.createElement("p",{className:g.default.value},t("PROVISIONER"))),m.default.createElement("div",{className:g.default.opt},m.default.createElement(c.Icon,{name:"trash",size:16,onClick:function(){return ae(h)}}),m.default.createElement(c.Icon,{name:"pen",size:16,onClick:function(){return re(h,E)}})))),m.default.createElement("div",{className:g.default.config},m.default.createElement("span",{className:g.default.config_text},m.default.createElement("span",{className:g.default.value},t("STORAGE_LIMIT"),": "),m.default.createElement("span",{className:g.default.label},"InfinityGi"===E.storage||isNaN(y)?t("NO_LIMIT"):"".concat(y,"Gi"))),m.default.createElement("span",{className:g.default.config_text},m.default.createElement("span",{className:g.default.value},t("STORAGE_CLASS_VOLUME"),": "),m.default.createElement("span",{className:g.default.label},""!==E.claims?E.claims:t("NO_LIMIT")))))))}))),m.default.createElement("div",{className:g.default.addQuota,onClick:function(){return l(!0)}},m.default.createElement("p",{className:g.default.label},t("SELECT_A_STORAGECLASS")),m.default.createElement("p",{className:g.default.value},t("SET_RELATED_STORAGE_CLASS_QUOTA"))))}),[e.namespaceStorageClass]);return n?(q=(0,v.memoryFormat)(D["requests.storage"],"Gi"),K=D.persistentvolumeclaims,Q=isNaN(q)?1/0:q,J=!1,(""===D.name||0===Q||0===K)&&(J=!0),m.default.createElement("div",{className:g.default.addBox},m.default.createElement("div",{className:g.default.addContent,ref:k},m.default.createElement(b.default,{addedItems:e.addedItems,allStorageClass:e.allStorageClass,editName:D.name,editMode:A.isEditMode,onChange:X}),m.default.createElement("div",null,m.default.createElement(c.Columns,null,m.default.createElement(c.Column,null,m.default.createElement("div",{className:g.default.slider},m.default.createElement("span",{className:g.default.text},t("VOLUME_TOTAL_CAPACITY",{unit:"Gi"})),m.default.createElement(E.default,{value:(0,p.default)(q)?Number(q):1/0,marks:O,unit:"Gi",valueFormatter:T,onChange:function(e){return function(e){var t=isNaN(e)?"InfinityGi":"".concat(e).concat("Gi");Z(t),N(_(_({},D),{},{"requests.storage":t}))}(e)}})))),m.default.createElement(c.Columns,null,m.default.createElement(c.Column,null,m.default.createElement("span",{className:g.default.text},t("RESOURCE_LIMITS")),m.default.createElement("div",{className:(0,s.default)(g.default.wrapper,(0,o.default)({},g.default.error,V))},m.default.createElement(y.default,{className:g.default.input,min:0,value:(0,p.default)(q)?q:"",placeholder:(0,p.default)(q)?"":t("NO_LIMIT"),onChange:function(e){return a=t=e,(0,f.default)(t,".")&&(a=Number(t.slice(0,t.length-1))),""!==t&&"-"!==t||(a=1/0),Z(a),void N(_(_({},D),{},{"requests.storage":"".concat(a).concat("Gi")}));var t,a}}),m.default.createElement("span",{className:g.default.unit},"Gi"))),m.default.createElement(c.Column,null,m.default.createElement("span",{className:g.default.text},t("VOLUME_MAX_NUM")),m.default.createElement("div",{className:(0,s.default)(g.default.wrapper,(0,o.default)({},g.default.error,z))},m.default.createElement(i.default,{className:g.default.input,min:0,value:K,placeholder:t("NO_LIMIT"),onChange:function(e){return a=t=e,(0,f.default)(t,".")&&(a=Number(t.slice(0,t.length-1))),""!==t&&"-"!==t||(a=""),$(a),void N(_(_({},D),{},{persistentvolumeclaims:a}));var t,a}}))))),function(){var a=j.limit,r=j.count,n=e.currentRelatedStorageTotal,l=e.currentRelatedVolumeClaimsTotal,o=a,u=r;if(e.isWorkspace){(0,p.default)(a)&&(o-=n),(0,p.default)(r)&&(u-=l);var s=A.isEditMode,i=A.storage,f=A.claims,d=(0,v.memoryFormat)(i,"Gi");(0,p.default)(a)&&s&&!isNaN(d)&&(o+=d),""!==f&&(0,p.default)(r)&&s&&(u+=Number(f))}var h=(0,p.default)(a)?t("STORAGE_VOLUME_LIMIT_HAS_A_LIMIT",{num:o}):t("STORAGE_VOLUME_LIMIT_NO_LIMIT"),E=(0,p.default)(r)?t("STORAGE_PERSISTENT_VOLUME_HAS_A_LIMIT",{num:u}):t("STORAGE_PERSISTENT_VOLUME_NO_LIMIT"),y="".concat(h,", ").concat(E);return m.default.createElement("div",{className:g.default.tipContent},m.default.createElement(c.Alert,{type:"info",title:t("AVAILABLE_QUOTAS"),message:y}),(V||z)&&m.default.createElement("div",{className:g.default.warning},t("REQUEST_EXCEED_AVAILABLE_QUOTA")))}(),m.default.createElement("div",{className:g.default.closeContent},m.default.createElement("div",{className:g.default.icon,onClick:ee},m.default.createElement(c.Icon,{name:"close",size:16})),m.default.createElement("div",{className:(0,s.default)(g.default.icon,(0,o.default)({},g.default.disabled,J||z||V)),onClick:te},m.default.createElement(c.Icon,{name:"check",size:16})))))):ne()};a.default=R},function(e,t,a){e.exports={relatedBox:"_1GGmkso_4IJTkxjrWF32_6",label:"_1CGNqu-q5sfQ050_H30wts",value:"KKbwkLC9KvM1xuHdZVHBw",list:"RdLtbOozPGoubquDaAr3O",card:"_3owbF3meZl7eQCaMwjlyRC",baseInfo:"_3eNCBNEnGHEBCoYOrxEYRn",Icon:"_1668ydHLavkdcsClp6BPDz",text:"_3tYSIDE5E8DLQS1Fpwu63f",default:"_3cN04CNtBKjf8lFfA73-v",iconText:"_1-XxK_YcydUaYulcve3UHw",opt:"_1dQEbMcYDc_524orHLVEEK",config:"etu-pGB83QqKQxJDXo-Sm",config_text:"_1lbPmxNq09U-73j0TaoBgQ",addQuota:"_2HKZQ-LKndrfIztjRwDalI",addBox:"_3WSfp73NfezhHgTmYM4qnb",addContent:"_14unDCHvUsTwbIvUhkQ_vD",wrapper:"_1_w447Hic4nOy-sCH5RDzV",unit:"_3SYBak0N4z7MISs51IM25h",tipContent:"QM2pl7XTGNSX9NTrqJmFa",warning:"_3QnOEHy7BNAOBXqS6JWz1A",closeContent:"_37J22EJXV49Y4H_NAS6KDh",icon:"_2YbiBieUBwoH8Dyg-XrDIu",disabled:"_9VqM3CRNqJWJJ4sz0ijXt",error:"V6cUjfRc1-lPhfqYMb029"}},function(e,a,r){"use strict";var n=r(157),l=r(20);r(12),r(11),r(6),r(86),r(18),r(16),r(9),r(13),r(10),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(11),r(6),r(86),r(18),r(28),r(16),r(34),r(15),r(9),r(13),r(10),r(4),r(7);var o=l(r(30)),u=l(r(96)),c=n(r(0)),s=r(186),i=l(r(3)),f=l(r(63)),d=l(r(3350));function p(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function m(e){for(var t=1;t0?c.default.createElement("div",{className:d.default.list},c.default.createElement("div",{className:d.default.extraContent},b.map((function(e){return c.default.createElement("div",{className:d.default.card,key:e.name,onClick:function(){return y(e)}},g(e))})))):null}));return c.default.createElement("div",{className:d.default.wrapper},_,c.default.createElement(c.default.Fragment,null,!S&&n&&O()))};a.default=v},function(e,t,a){e.exports={addBox:"_2P0f0FwDVpHJ7wtcHg4mZP",Icon:"_2EoBETTKKnmy_fVgMCB9yR",text:"_164oSWx0vc9753lp2Rf8EW",label:"_3Os24eJRt_vq5NdAj6PtUr",default:"_1iDV2CgIhUQCZE-BWJqX03",value:"yp2bvppkb-cW4cXDNXuEr",hover:"_14g5XwSM1u8TqXP18Hl3Ij",list:"_2iNtlWNCQ_kNrIK58DBunO",extraContent:"_3leBkLEhf6uYuWG1Al7lTt",card:"_7YZjcuF7SXPzsBKEKEqhm",wrapper:"_32Jj8ViLQU8hzot9rBIvko",rotate:"JUvzx2dwgkpp6dtYPx2A9"}},function(e,a,r){"use strict";r(15);var n=r(20);r(197),r(6),r(84),r(4),r(23),r(17),r(85),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(197),r(6),r(84),r(28),r(859),r(42),r(4),r(23),r(57),r(17),r(85),r(7);var l=n(r(61)),o=n(r(36)),u=n(r(37)),c=n(r(55)),s=n(r(56)),i=n(r(51)),f=n(r(0)),d=n(r(1114)),p=n(r(26)),m=n(r(63)),v=n(r(74)),h=n(r(189)),E=n(r(158)),y=n(r(199)),g=n(r(241)),b=n(r(457)),S=r(186),_=n(r(829)),O=r(72),C=r(52),T=n(r(3352)),R=r(1742),D=n(r(3353));function N(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,i.default)(e);if(t){var n=(0,i.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,s.default)(this,a)}}var k=function(e){(0,c.default)(r,e);var a=N(r);function r(e){var t;return(0,o.default)(this,r),(t=a.call(this,e)).handleAddQuotaItem=function(e){t.setState({items:e},(function(){var a=(0,p.default)(t.props.data,"spec.hard"),r=(0,g.default)(a,t.omitKeys),n={};e.forEach((function(e){var t=e.module,a=e.value;if(!(0,E.default)(t)){var r=(0,p.default)(O.QUOTAS_MAP,"".concat(t,".name"),t);n["".concat(r)]=a}})),(0,v.default)(t.props.data,"spec.hard",(0,y.default)(n,r))}))},t.checkItemValid=function(e){return!(0,m.default)(e)&&e.module},t.state={items:(0,l.default)(t.getItems(e))},t}return(0,u.default)(r,[{key:"componentDidUpdate",value:function(e){e.data!==this.props.data&&this.setState({items:(0,l.default)(this.getItems(this.props))})}},{key:"getItems",value:function(e){var t=(0,h.default)((0,p.default)(e.data,"spec.hard",{}),this.omitKeys),a=(0,b.default)(t,(function(e,t){return t.includes("requests.storage")||t.includes("persistentvolumeclaims")})),r=[];(0,d.default)(a,(function(e,t){var a={module:R.QUOTAS_KEY_MODULE_MAP[t]||t,value:e};r.push(a)}));var n=r.findIndex((function(e){return"pods"===e.module}));if(n>0){var l=r[0];r[0]=r[n],r[n]=l}return n<0&&r.unshift({module:"pods",value:""}),r}},{key:"render",value:function(){var e=this.state.items;return f.default.createElement("div",{className:D.default.wrapper},f.default.createElement(S.Form.Item,null,f.default.createElement(_.default,{value:e,itemType:"object",addText:t("ADD"),onChange:this.handleAddQuotaItem,checkItemValid:this.checkItemValid},f.default.createElement(T.default,{isFederated:this.props.isFederated}))))}},{key:"omitKeys",get:function(){var e=globals.config.supportGpuType,t=(0,l.default)(C.resourceLimitKey);return e.forEach((function(e){return t.push("limits.".concat(e),"requests.".concat(e))})),t}}]),r}(f.default.Component);a.default=k},function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(11),r(84),r(18),r(10),r(4),r(23),r(17),r(85),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(11),r(84),r(18),r(42),r(10),r(4),r(23),r(57),r(17),r(85);var l=n(r(61)),o=n(r(36)),u=n(r(37)),c=n(r(55)),s=n(r(56)),i=n(r(51)),f=n(r(0)),d=r(186),p=r(72),m=n(r(867)),v=n(r(799)),h=r(1742);function E(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,i.default)(e);if(t){var n=(0,i.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,s.default)(this,a)}}var y=function(e){(0,c.default)(r,e);var a=E(r);function r(){var e;(0,o.default)(this,r);for(var n=arguments.length,l=new Array(n),u=0;u0&&void 0!==arguments[0]?arguments[0]:{},t=P({},e);return Object.keys(e).forEach((function(a){a.endsWith("memory")&&(t[a]=(0,k.memoryFormat)(e[a])),a.endsWith("cpu")&&(t[a]=(0,k.cpuFormat)(e[a]))})),t},t.singleClusterQuota=function(e,a,r){return new Promise((function(n){Promise.all([t.quotaStore.fetch({cluster:r,namespace:a}),t.workspaceQuotaStore.fetchDetail({name:e,workspace:e,cluster:r})]).then((function(e){var a=(0,p.default)(e[1],"hard"),r=(0,p.default)(e[0],"data.hard");n({workspaceQuota:t.availableQuota_memory(a),namespaceQuota:t.availableQuota_memory(r)})}))}))},t.multiClusterQuota=function(e,a){var r=[],n={"limits.cpu":void 0,"limits.memory":void 0};t.props.clusters.forEach((function(n){return r.push(t.singleClusterQuota(e,a,n))})),Promise.all(r).then((function(e){var a=e.map((function(e){return(0,p.default)(e,"workspaceQuota",n)})),r=e.map((function(e){return(0,p.default)(e,"namespaceQuota",n)})),l=e.map((function(e){return(0,h.default)((0,p.default)(e,"namespaceQuota",{}),k.resourceLimitKey)}));t.setState({availableQuota:{workspace:t.transformQuota(a),namespace:P(P({},t.transformQuota(r)),t.transformGpu(l))}})}))},t.transformQuota=function(e){return{"limits.cpu":t.findCpuOrMemoryMin(e,"limits.cpu"),"limits.memory":t.findCpuOrMemoryMin(e,"limits.memory"),"requests.cpu":t.findCpuOrMemoryMin(e,"requests.cpu"),"requests.memory":t.findCpuOrMemoryMin(e,"requests.memory")}},t.findCpuOrMemoryMin=function(e,t){var a=e.map((function(e){return e[t]}));return(0,E.default)(a)},t.transformGpu=function(e){var t=globals.config.supportGpuType,a=e.map((function(e){return(0,g.default)(e,(function(e,a){return t.some((function(e){return(0,b.default)(a,e)}))}))}));return(0,y.default)(a,(function(e,t){var a=(0,p.default)(e,"".concat(Object.keys(t)[0]));return a?Number(a)>Number(Object.values(t)[0])?P(P({},e),t):P({},e):P(P({},e),t)}),{})},t.fetchQuota=(0,o.default)(l.default.mark((function e(){var a,r,n,o,u;return l.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a=t.props,r=a.workspace,n=a.cluster,o=a.namespace,a.isFederated){e.next=8;break}return e.next=4,t.singleClusterQuota(r,o,n);case 4:u=e.sent,t.setState({availableQuota:{workspace:(0,p.default)(u,"workspaceQuota"),namespace:(0,p.default)(u,"namespaceQuota")}}),e.next=9;break;case 8:t.multiClusterQuota(r,o);case 9:case"end":return e.stop()}}),e)}))),t.getQuotaInfo=function(e){return(0,p.default)(t.workspaceQuota,e,void 0)},t.handleOk=function(){(0,t.props.onOk)(t.state.data)},t.handleError=function(e){return t.setState({error:e})},t.getQuotaInfo=function(e){return(0,p.default)(t.workspaceQuota,e,void 0)},t.quotaStore=e.isEdgeWize?new D.default:new T.default,t.workspaceQuotaStore=e.isEdgeWize?new N.default:new R.default,t.state={data:(0,p.default)(e.detail,"limit",{}),error:"",availableQuota:{}},t}return(0,s.default)(r,[{key:"componentDidMount",value:function(){this.fetchQuota()}},{key:"componentDidUpdate",value:function(e){var t=this.props.detail;t.limit&&t.limit!==e.detail.limit&&this.setState({data:t.limit})}},{key:"getGpuLimit",value:function(){return(0,k.gpuLimitsArr)(this.workspaceQuota)}},{key:"render",value:function(){var e=this.props,a=e.visible,r=e.onCancel,n=e.isSubmitting,l=this.state.error;return S.default.createElement(O.default,{width:960,title:t("EDIT_DEFAULT_CONTAINER_QUOTAS"),icon:"firewall",onOk:this.handleOk,onCancel:r,visible:a,isSubmitting:n,disableSubmit:!!l},S.default.createElement(C.default,{defaultValue:this.resourceLimit,onChange:this.handleChange,onError:this.handleError,supportGpuSelect:this.props.supportGpuSelect||!1,workspaceLimitProps:this.workspaceLimitProps}))}},{key:"resourceLimit",get:function(){return{requests:(0,p.default)(this.props.detail,"limit.defaultRequest",{}),limits:(0,p.default)(this.props.detail,"limit.default",{})}}},{key:"workspaceQuota",get:function(){var e=(0,p.default)(this.state,"availableQuota.namespace",{}),t=(0,p.default)(this.state,"availableQuota.workspace",{});return(0,m.default)(e,t,(function(e,t){if(e||t)return(0,v.default)(e)?t:e0&&r.push.apply(r,(0,o.default)(e.getDependencies(r)))),r},e}return(0,c.default)(r,[{key:"render",value:function(){var e=this,a=this.props,r=a.roleTemplates,n=a.roleTemplatesMap,l=a.data,o=l.dependencies.length>0?l.dependencies.map((function(t){return e.getName(n[t])})).filter((function(e){return void 0!==e})):[];return d.default.createElement("div",{className:g.default.checkItem},d.default.createElement(v.Checkbox,{checked:r.includes(l.name),onClick:this.handleCheck}),d.default.createElement(E.default,{title:this.getName(l),onClick:this.handleCheck,description:this.getDesc(l)}),o.length>0&&d.default.createElement("div",{className:g.default.extra},t("DEPENDS_ON"),o.map((function(e){return d.default.createElement(v.Tag,{className:g.default.tag,type:"info",key:e},e)}))))}},{key:"lang",get:function(){return(0,p.default)(globals.user,"lang")||(0,y.getBrowserLang)()}}]),r}(d.Component);a.default=S},function(e,t,a){"use strict";a(15),Object.defineProperty(t,"__esModule",{value:!0}),t.ROLE_MODULES_ICON=t.ROLE_MODULES=void 0;var r={globalroles:[{name:"Clusters Management",icon:"cluster"},{name:"Access Control",icon:"key"},{name:"Apps Management",icon:"openpitrix",hide:!globals.app.enableAppStore},{name:"Platform Settings",icon:"cogwheel"}],workspaceroles:[{name:"Projects Management",icon:"project"},{name:"DevOps Management",icon:"strategy-group",hide:!globals.app.hasKSModule("devops")},{name:"Apps Management",icon:"appcenter",hide:!globals.app.hasKSModule("openpitrix")},{name:"Access Control",icon:"key"},{name:"Workspace Settings",icon:"cogwheel"}],roles:[{name:"Application Workloads",icon:"appcenter"},{name:"Storage Management",icon:"storage"},{name:"Configuration Center",icon:"hammer"},{name:"Monitoring & Alerting",icon:"monitor"},{name:"Access Control",icon:"human"},{name:"Project Settings",icon:"project"}],devopsroles:[{name:"Pipelines Management",icon:"application"},{name:"Continuous Deployments Management",icon:"rocket"},{name:"Code Repositories Management",icon:"code"},{name:"Credentials Management",icon:"key"},{name:"Access Control",icon:"human"},{name:"DevOps Settings",icon:"strategy-group"}],clusterroles:[{name:"Cluster Resources Management",icon:"nodes"},{name:"Project Resources Management",icon:"project"},{name:"Network Management",icon:"earth"},{name:"Storage Management",icon:"database"},{name:"Monitoring & Alerting",icon:"monitor"},{name:"Access Control",icon:"human"},{name:"Cluster Settings",icon:"cluster"}]};t.ROLE_MODULES=r;t.ROLE_MODULES_ICON={"cluster-management":"cluster","access-control":"key","apps-management":"openpitrix","platforms-settings":"cogwheel","projects-management":"project","devOps-management":"strategy-group","workspace-settings":"cogwheel","Application Workloads":"appcenter","storage-management":"storage","configuration-center":"hammer","project-settings":"project"}},function(e,a,r){"use strict";r(15);var n=r(20);r(16),r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(42),r(16),r(4),r(22),r(23),r(57),r(17);var l=n(r(43)),o=n(r(30));r(41);var u,c,s,i=n(r(44)),f=n(r(36)),d=n(r(37)),p=n(r(55)),m=n(r(56)),v=n(r(51)),h=n(r(0)),E=n(r(1)),y=r(239),g=n(r(63)),b=n(r(787)),S=n(r(322)),_=n(r(1745)),O=r(72),C=n(r(3370));function T(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,v.default)(e);if(t){var n=(0,v.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,m.default)(this,a)}}var R=(0,y.observer)((s=c=function(e){(0,p.default)(n,e);var a,r=T(n);function n(e){var t;return(0,f.default)(this,n),(t=r.call(this,e)).state={users:[],groups:{},isLoading:!1},t.store=new S.default,t.groupStore=new _.default,t}return(0,d.default)(n,[{key:"componentDidMount",value:function(){var e=this.props,t=e.visible,a=e.detail;t&&a.name&&this.fetchData()}},{key:"fetchData",value:(a=(0,i.default)(l.default.mark((function e(){var t,a,r,n,u,c,s,i,f;return l.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=this.props,r=a.module,n=a.detail.name,u=a.cluster,c=a.workspace,s=a.namespace,this.setState({isLoading:!0}),e.next=4,this.store.fetchList((t={},(0,o.default)(t,O.ROLE_QUERY_KEY[r],n),(0,o.default)(t,"cluster",u),(0,o.default)(t,"workspace",c),(0,o.default)(t,"namespace",s),(0,o.default)(t,"limit",-1),t));case 4:if(i=e.sent,!(0,g.default)(i)||!c){e.next=10;break}return e.next=8,this.groupStore.getWorkspaceRoleBinding("",{cluster:u,workspace:c,namespace:s,rolename:n});case 8:f=e.sent,this.setState({groups:f});case 10:this.setState({users:i,isLoading:!1});case 11:case"end":return e.stop()}}),e,this)}))),function(){return a.apply(this,arguments)})},{key:"render",value:function(){var e=this.props,a=e.detail,r=e.visible,n=e.onOk,l=e.onCancel,o=e.isSubmitting,u=this.state,c=u.users,s=u.groups,i=u.isLoading;return h.default.createElement(b.default,{width:504,onOk:i||c.length||s.totalItems?null:n,onCancel:l,visible:r,isSubmitting:o,okButtonType:"danger",hideHeader:!0},h.default.createElement("div",{className:C.default.body},h.default.createElement("div",{className:"h5"},t("DELETE_ROLE")),h.default.createElement("p",null,!i&&c.length?t.html("DELETE_ROLE_USER_TIP".concat(1===c.length?"":"_PL"),{count:c.length}):s.totalItems?t.html("DELETE_ROLE_DEPARTMENT_TIP".concat(1===s.totalItems?"":"_PL"),{count:s.totalItems}):t.html("DELETE_ROLE_TIP",{resource:a.name}))))}}]),n}(h.default.Component),c.propTypes={detail:E.default.object,module:E.default.string,visible:E.default.bool,onOk:E.default.func,onCancel:E.default.func,isSubmitting:E.default.bool},c.defaultProps={detail:{},visible:!1,isSubmitting:!1,onOk:function(){},onCancel:function(){}},u=s))||u;a.default=R},function(e,t,a){e.exports={body:"_2OPaWn_o79qbwztkINRFGV"}},function(e,a,r){"use strict";var n=r(20);r(12),r(11),r(6),r(200),r(29),r(18),r(16),r(9),r(13),r(10),r(4),r(316),r(324),r(38),r(7),r(32),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(11),r(6),r(200),r(29),r(18),r(28),r(16),r(34),r(15),r(9),r(13),r(10),r(4),r(316),r(22),r(324),r(38),r(460),r(461),r(462),r(463),r(464),r(465),r(466),r(7),r(32);var l=n(r(43));r(41);var o=n(r(44)),u=n(r(30)),c=n(r(58)),s=n(r(26)),i=n(r(74)),f=n(r(242)),d=n(r(60)),p=n(r(240)),m=n(r(787)),v=n(r(825)),h=n(r(3372)),E=n(r(3373)),y=n(r(3375)),g=n(r(3377)),b=r(72),S=n(r(435)),_=n(r(901)),O=n(r(1606));function C(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function T(e){for(var t=1;t0&&r.length>0&&r.forEach((function(e){var t=a.find((function(t){return t.hosts&&t.hosts.includes(e.host)}));t?(e.protocol="https",e.secretName=t.secretName):e.protocol="http"})),{Ingress:t}}},{key:"render",value:function(){var e=this.props,a=e.visible,r=e.cluster,n=e.isSubmitting,l=e.namespace,o=this.state,u=o.subRoute,c=o.formTemplate;return i.default.createElement(h.default,{width:960,title:t("EDIT_ROUTING_RULES"),icon:"firewall",onOk:this.handleOk,okText:t("OK"),cancelText:(0,v.default)(u)?null:t("PREVIOUS"),onCancel:this.handleCancel,visible:a,isSubmitting:n},i.default.createElement("div",{className:y.default.wrapper},i.default.createElement(E.default,{module:"ingresses",formRef:this.form,formTemplate:c,cluster:r,namespace:l})))}}]),r}(i.default.Component);b.propTypes={detail:f.default.object,visible:f.default.bool,onOk:f.default.func,onCancel:f.default.func,isSubmitting:f.default.bool},b.defaultProps={detail:{},visible:!1,onOk:function(){},onCancel:function(){},isSubmitting:!1},b.childContextTypes={registerSubRoute:f.default.func,resetSubRoute:f.default.func};var S=b;a.default=S},function(e,t,a){e.exports={wrapper:"_2wf3cNZWhIeqht7bbNiU00"}},function(e,a,r){"use strict";r(15);var n=r(20);r(31),r(6),r(84),r(4),r(23),r(17),r(85),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(31),r(6),r(84),r(42),r(4),r(23),r(57),r(17),r(85),r(7);var l=n(r(36)),o=n(r(37)),u=n(r(55)),c=n(r(56)),s=n(r(51)),i=n(r(0)),f=n(r(1)),d=r(14),p=n(r(26)),m=n(r(135)),v=n(r(63)),h=n(r(806)),E=n(r(787)),y=n(r(1329)),g=n(r(3378));function b(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,s.default)(e);if(t){var n=(0,s.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,c.default)(this,a)}}var S=function(e){(0,u.default)(r,e);var a=b(r);function r(e){var t;return(0,l.default)(this,r),(t=a.call(this,e)).registerSubRoute=function(e,a){t.setState({subRoute:{onSave:e,onCancel:a}})},t.resetSubRoute=function(){t.setState({subRoute:{}})},t.handleOk=function(){var e=t.state.subRoute;if(e.onSave)return e.onSave((function(){t.setState({subRoute:{}})}));(0,t.props.onOk)(t.state.formTemplate.Ingress)},t.handleCancel=function(){var e=t.state.subRoute;if(e.onCancel){var a=e.onCancel();if(!a)return;return a(),void t.setState({subRoute:{}})}(0,t.props.onCancel)()},t.formRef=i.default.createRef(),t.state={subRoute:{},formTemplate:t.getFormTemplate((0,d.toJS)(e.detail._originData))},t}return(0,o.default)(r,[{key:"getChildContext",value:function(){return{registerSubRoute:this.registerSubRoute,resetSubRoute:this.resetSubRoute}}}]),(0,o.default)(r,[{key:"componentDidUpdate",value:function(e){(0,h.default)((0,d.toJS)(this.props.detail._originData),(0,d.toJS)(e.detail._originData))||this.setState({formTemplate:this.getFormTemplate((0,d.toJS)(this.props.detail._originData))})}},{key:"getFormTemplate",value:function(e){var t=(0,m.default)(e),a=(0,p.default)(t,"spec.tls",[]),r=(0,p.default)(t,"spec.rules",[]);return a.length>0&&r.length>0&&r.forEach((function(e){var t=a.find((function(t){return t.hosts&&t.hosts.includes(e.host)}));t?(e.protocol="https",e.secretName=t.secretName):e.protocol="http"})),{Ingress:t}}},{key:"render",value:function(){var e=this.props,a=e.visible,r=e.cluster,n=e.isSubmitting,l=e.isFederated,o=e.projectDetail,u=e.detail,c=this.state,s=c.subRoute,f=c.formTemplate;return i.default.createElement(E.default,{width:960,title:t("EDIT_ROUTING_RULES"),icon:"firewall",onOk:this.handleOk,okText:t("OK"),cancelText:(0,v.default)(s)?null:t("PREVIOUS"),onCancel:this.handleCancel,visible:a,isSubmitting:n},i.default.createElement("div",{className:g.default.wrapper},i.default.createElement(y.default,{module:"ingresses",formRef:this.formRef,formTemplate:f,cluster:r,detail:u,isFederated:l,projectDetail:o})))}}]),r}(i.default.Component);S.propTypes={detail:f.default.object,visible:f.default.bool,onOk:f.default.func,onCancel:f.default.func,isSubmitting:f.default.bool},S.defaultProps={detail:{},visible:!1,onOk:function(){},onCancel:function(){},isSubmitting:!1},S.childContextTypes={registerSubRoute:f.default.func,resetSubRoute:f.default.func};var _=S;a.default=_},function(e,t,a){e.exports={wrapper:"_2SvyqGEvoXG9IXqxRtZsU7"}},function(e,a,r){"use strict";var n=r(20);r(12),r(11),r(31),r(6),r(18),r(16),r(9),r(13),r(10),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(11),r(31),r(6),r(18),r(28),r(16),r(34),r(15),r(9),r(13),r(10),r(4),r(22),r(7);var l=n(r(43));r(41);var o=n(r(44)),u=n(r(30)),c=n(r(58)),s=n(r(26)),i=n(r(241)),f=n(r(74)),d=n(r(240)),p=n(r(787)),m=n(r(825)),v=n(r(3380)),h=r(72),E=n(r(435)),y=n(r(901)),g=n(r(3389)),b=n(r(3390));function S(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function _(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=(0,p.toJS)(e._originData);return b({},t)}},{key:"renderSaveBar",value:function(){var e=this.state.subRoute;return(0,m.default)(e)?null:f.default.createElement(h.default,{className:y.default.confirm,onOk:this.handleSubFormSave,onCancel:this.handleSubFormCancel})}},{key:"render",value:function(){var e=this.state,a=e.subRoute,r=e.formTemplate,n=this.props,l=n.visible,o=n.isSubmitting,u=n.onCancel,c=n.isFederated,s=n.disableSelect,i=n.detail,d=n.isEdgeWize;return f.default.createElement(v.default,{width:960,title:t("EDIT_SETTINGS"),icon:"pen",bodyClassName:y.default.body,onOk:this.handleOk,okText:t("OK"),onCancel:u,visible:l,disableSubmit:!(0,m.default)(a),isSubmitting:o},f.default.createElement(E.default,{formTemplate:r,isFederated:c,cluster:i.cluster,mode:"edit",isEdgeWize:d,disableSelect:s}),this.renderSaveBar())}}]),r}(f.default.Component);a.default=_,_.propTypes={isEdgeWize:d.default.bool,detail:d.default.object,visible:d.default.bool,onOk:d.default.func,onCancel:d.default.func,isSubmitting:d.default.bool,disableSelect:d.default.bool},_.defaultProps={detail:{},visible:!1,onOk:function(){},onCancel:function(){},isSubmitting:!1,disableSelect:!1,isEdgeWize:!1},_.childContextTypes={registerSubRoute:d.default.func,resetSubRoute:d.default.func}},function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(18),r(98),r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(18),r(42),r(98),r(4),r(23),r(57),r(17);var l=n(r(96)),o=n(r(36)),u=n(r(37)),c=n(r(55)),s=n(r(56)),i=n(r(51)),f=n(r(0)),d=n(r(189)),p=n(r(812)),m=r(440),v=n(r(3382));function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,i.default)(e);if(t){var n=(0,i.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,s.default)(this,a)}}var E=function(e){(0,c.default)(r,e);var a=h(r);function r(){var e;(0,o.default)(this,r);for(var t=arguments.length,n=new Array(t),l=0;l0&&void 0!==u[0]?u[0]:{},t.next=3,e.hostStore.fetchList(P(P({},n),{},{labelSelector:"cluster-role.kubesphere.io/host=",limit:-1}));case 3:return l=(0,g.toJS)(e.hostStore.list.data).filter((function(e){return Object.keys(e.labels).some((function(e){return e.endsWith("cluster-role.kubesphere.io/host")}))})),t.abrupt("return",null!==(a=null===(r=l[0])||void 0===r?void 0:r.name)&&void 0!==a?a:"host");case 5:case"end":return t.stop()}}),t)}))),e.handleValidate=(0,c.default)(o.default.mark((function t(){var a,r,n,l,u,c,s;return o.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(a=e.props,r=a.cluster,n=a.isFederated,l=a.namespace,u=a.screatName,c=a.fedFormTemplate,!e.validate()){t.next=23;break}if(e.setState({isValidating:!0}),t.t1=e.store,t.t2=c,t.t3=u,t.t4=l,!n){t.next=13;break}return t.next=10,e.getHostName();case 10:t.t5=t.sent,t.next=14;break;case 13:t.t5=r;case 14:return t.t6=t.t5,t.t7={fedFormTemplate:t.t2,name:t.t3,namespace:t.t4,cluster:t.t6},t.next=18,t.t1.validateImageRegistrySecret.call(t.t1,t.t7);case 18:if(t.t0=t.sent,t.t0){t.next=21;break}t.t0={};case 21:s=t.t0,e.setState({validate:s.validate||!1,reason:s.reason||"",isValidating:!1});case 23:case"end":return t.stop()}}),t)}))),e.handleUrlChange=function(t){e.setState({url:t},e.triggerChange),"http"===t.replace(/^(http(s)?:\/\/)?(.*)$/,"$1").replace("://","")&&e.props.onChangeSkipVerify(!0)},e.handleUserNameChange=function(t){e.setState({username:t.target.value},e.triggerChange)},e.handleEmailChange=function(t){e.setState({email:t.target.value},e.triggerChange)},e.handlePasswordChange=function(t){e.setState({password:t.target.value},e.triggerChange)},e}return(0,f.default)(r,[{key:"validate",value:function(){return!!(this.state.url&&this.state.username&&this.state.password)||(this.setState({errorMsg:t("IMAGE_REGISTRY_REQUIRED_DESC")}),!1)}},{key:"renderTip",value:function(){var e=this.state,a=e.errorMsg,r=e.validate,n=e.reason;return a?E.default.createElement(b.Alert,{className:"margin-t12",type:"error",message:a}):r?E.default.createElement(b.Alert,{type:"info",icon:"success",message:t("REGISTRY_SECRET_VER_SUC")}):n?E.default.createElement(b.Alert,{type:"error",title:t("REGISTRY_SECRET_VER_ERR"),message:n}):E.default.createElement(b.Alert,{type:"info",message:t("IMAGE_REGISTRY_VALIDATE_TIP")})}},{key:"renderDefault",value:function(){var e=this.props,a=e.isDefault,r=e.onChangeDefault;return E.default.createElement("div",{className:k.default.defaultContainer},E.default.createElement(b.Toggle,{checed:a,onChange:r,defaultChecked:a}),E.default.createElement("div",null,E.default.createElement("div",{className:k.default.title},t("SET_AS_DEFAULT")),E.default.createElement("div",{className:k.default.desc},t("SET_AS_DEFAULT_REGISTRY_DESC"))))}},{key:"render",value:function(){var e=this.state,a=e.url,r=e.username,n=e.password,l=e.email,o=e.isValidating,u=this.props,c=u.onChangeSkipVerify,s=u.isSkipVerify;return E.default.createElement("div",null,E.default.createElement("input",{name:"username",className:"hidden-input",type:"text",disabled:!0}),E.default.createElement("input",{name:"password",className:"hidden-input",type:"password",disabled:!0}),E.default.createElement(b.Columns,null,E.default.createElement(b.Column,null,E.default.createElement(N.default,{label:t("REGISTRY_ADDRESS_TCAP"),desc:t("REGISTRY_ADDRESS_TIP"),required:!0},E.default.createElement(S.default,{value:a,onChange:this.handleUrlChange}))),E.default.createElement(b.Column,null,E.default.createElement(N.default,{label:t("USERNAME"),required:!0},E.default.createElement(b.Input,{value:r,onChange:this.handleUserNameChange,autoComplete:"nope"})))),!this.isHttp&&E.default.createElement(b.Columns,null,E.default.createElement(b.Column,{className:k.default.skip_verify},E.default.createElement(b.Checkbox,{checked:s,onChange:c},t("SKIP_VERIFY")))),E.default.createElement(b.Columns,null,E.default.createElement(b.Column,null,E.default.createElement(N.default,{label:t("EMAIL")},E.default.createElement(b.Input,{value:l,onChange:this.handleEmailChange}))),E.default.createElement(b.Column,null,E.default.createElement(N.default,{label:t("PASSWORD"),required:!0},E.default.createElement("div",{className:k.default.password},E.default.createElement(b.InputPassword,{type:"password",value:n,onChange:this.handlePasswordChange,autoComplete:"new-password"}),E.default.createElement(b.Button,{onClick:this.handleValidate,loading:o},t("VALIDATE")))))),this.renderDefault(),E.default.createElement("div",{className:k.default.tip},this.renderTip()))}},{key:"isHttp",get:function(){return"http"===this.state.url.replace(/^(http(s)?:\/\/)?(.*)$/,"$1").replace("://","")}}]),r}(E.Component))||u;a.default=w},function(e,t,a){"use strict";a(15);var r=a(157),n=a(20);a(4),a(23),a(17),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(45),a(42),a(4),a(23),a(57),a(17);var l=n(a(36)),o=n(a(37)),u=n(a(55)),c=n(a(56)),s=n(a(51)),i=r(a(0)),f=n(a(1748));function d(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,s.default)(e);if(t){var n=(0,s.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,c.default)(this,a)}}var p=function(e){(0,u.default)(a,e);var t=d(a);function a(){return(0,l.default)(this,a),t.apply(this,arguments)}return(0,o.default)(a,[{key:"render",value:function(){var e=this.props,t=e.label,a=e.desc,r=e.required,n=e.children;return i.default.createElement("div",{className:f.default.wrapper},t&&i.default.createElement("label",{className:f.default.label,htmlFor:name},t,r?i.default.createElement("span",{className:f.default.requiredIcon},"*"):null),i.default.createElement("div",{className:f.default.control},n,a&&i.default.createElement("div",{className:f.default.desc},a)))}}]),a}(i.Component);t.default=p},function(e,t,a){e.exports={body:"ok_C6WKg4I2-lgwUuNM-G",confirm:"_3kOQ-5ctupyU0pPCq4MU3E"}},function(e,t,a){"use strict";a(15);var r=a(20);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=a(52),l=r(a(974)),o=r(a(1747)),u=[{title:"BASIC_INFORMATION",component:(0,n.withProps)(l.default,{maxNameLength:63}),required:!0},{title:"DATA_SETTINGS",component:o.default,required:!0}];t.default=u},function(e,a,r){"use strict";r(15);var n=r(20);r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(42),r(4),r(23),r(57),r(17);var l=n(r(36)),o=n(r(37)),u=n(r(55)),c=n(r(56)),s=n(r(51)),i=n(r(0)),f=n(r(1)),d=r(186),p=n(r(787)),m=n(r(3391));function v(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,s.default)(e);if(t){var n=(0,s.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,c.default)(this,a)}}var h=function(e){(0,u.default)(r,e);var a=v(r);function r(){return(0,l.default)(this,r),a.apply(this,arguments)}return(0,o.default)(r,[{key:"render",value:function(){var e=this.props,a=e.visible,r=e.onCancel,n=e.onOk,l=e.isSubmitting;return i.default.createElement(p.default,{width:520,onOk:n,onCancel:r,visible:a,okText:t("OK"),cancelText:t("CANCEL"),isSubmitting:l,hideHeader:!0},i.default.createElement("div",{className:m.default.body},i.default.createElement("div",{className:"h5"},i.default.createElement(d.Icon,{name:"information",color:{primary:"#ffffff",secondary:"#41b1ea"},size:18}),"  ",t("SET_AS_DEFAULT")),i.default.createElement("p",null,t("SET_AS_DEFAULT_REGISTRY_DESC"))))}}]),r}(i.default.Component);a.default=h,h.propTypes={visible:f.default.bool,onOk:f.default.func,onCancel:f.default.func,isSubmitting:f.default.bool},h.defaultProps={visible:!1,isSubmitting:!1,onOk:function(){},onCancel:function(){}}},function(e,t,a){e.exports={body:"twiD94s0MsB7Hfd8Ws7nW"}},function(e,a,r){"use strict";var n=r(20);r(12),r(11),r(31),r(6),r(84),r(16),r(9),r(13),r(10),r(85),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(11),r(31),r(6),r(84),r(28),r(16),r(34),r(15),r(9),r(13),r(10),r(4),r(22),r(85),r(7);var l=n(r(43));r(41);var o=n(r(44)),u=n(r(30)),c=n(r(58)),s=n(r(26)),i=n(r(63)),f=n(r(74)),d=r(14),p=n(r(240)),m=n(r(787)),v=n(r(825)),h=n(r(3393)),E=n(r(3395)),y=n(r(3398)),g=n(r(1625)),b=n(r(3402)),S=r(72),_=r(3404),O=n(r(901)),C=n(r(435)),T=n(r(1334)),R=n(r(1179)),D=n(r(1389));function N(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function k(e){for(var t=1;t1&&(null===(a=e.timeRange)||void 0===a?void 0:a[(null===(r=e.timeRange)||void 0===r?void 0:r.length)-1])?N(1e3*(0,p.default)(e,"timeRange[0]",0),1e3*(0,p.default)(e,"timeRange[1]",0)):e.duration?e.duration:null}],["spec.schedule",function(e){var t;if(e.isCron)return e.cron;if(3!==e.type)return null;var a=null!==(t=e.timeRange)&&void 0!==t?t:[],r=(0,l.default)(a,2),n=r[0],o=r[1],u=JSON.parse(JSON.stringify((0,y.parseExpression)("0 * * * *").fields));return o&&(n=Math.floor(n/60/60),o=Math.floor(o/60/60),u.hour=[n]),2===e.timeType&&e.week&&e.week.length&&(u.dayOfWeek=e.week),3===e.timeType&&e.month&&e.month.length&&(u.dayOfMonth=e.month),(0,y.fieldsToExpression)(u).stringify()}]];function I(e,t,a){return k.filter((function(e){var t=(0,l.default)(e,1)[0];return!a||a.some((function(e){return t.startsWith(e)}))})),function(e){return function(t,a){return e.reduce((function(e,a){var r,n=(0,l.default)(a,2),o=n[0],u=n[1];return"string"==typeof u&&(r=(0,p.default)(t,u)),"function"==typeof u&&(r=u(t,e)),void 0!==r&&(0,d.default)(e,o,r),e}),a)}}(k)(e,t)}},function(e,t,a){"use strict";a(15);var r=a(20);a(5),a(4),a(23),a(17),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(45),a(5),a(42),a(4),a(23),a(57),a(17);var n,l=r(a(36)),o=r(a(55)),u=r(a(56)),c=r(a(51)),s=r(a(1750)),i=r(a(1390));function f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,c.default)(e);if(t){var n=(0,c.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,u.default)(this,a)}}var d=(0,r(a(936)).default)(["bell-off-duotone"])(n=function(e){(0,o.default)(a,e);var t=f(a);function a(){var e;(0,l.default)(this,a);for(var r=arguments.length,n=new Array(r),o=0;o-1?o.splice(u,1):o.push(e)}else o=[e];l.setState({value:o}),a&&a(o)},l.state={value:Array.from(null!==(r=null!==(n=e.value)&&void 0!==n?n:e.defaultValue)&&void 0!==r?r:[])},l}return(0,c.default)(a,[{key:"render",value:function(){var e=this,t=this.props.type,a=this.state.value,r="zh"===(0,E.default)("lang")?"zh":"en";return p.createElement("div",{className:y.default.wrapper},this.options.map((function(n,l){var u;return p.createElement(m.Button,{className:(0,v.default)(y.default.item,(u={},(0,o.default)(u,y.default.week,"week"===t),(0,o.default)(u,y.default.month,"month"===t),(0,o.default)(u,y.default.enButton,"week"===t&&"zh"!==r),u)),key:l,type:a.includes(n.value)?"control":"default",onClick:function(){return e.handleClick(n.value,n)}},n.label)})))}},{key:"options",get:function(){return"week"===this.props.type?b:S}}]),a}(p.Component))||d;a.default=_},function(e,t,a){e.exports={wrapper:"XZmcIRClmVHOLPXRuiFvg",item:"_3ATYh4oZAXiPyvZAhRjEDk",week:"_3kEoABe-m2t4ezm2s2pI5T",month:"xK5ma088M1lwXtXU4OmtS",enButton:"vD2nGEp1TRRzYsLcbY6qn"}},function(e,t,a){"use strict";a(15);var r=a(157),n=a(20);a(827),a(18),a(4),a(23),a(17),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(45),a(827),a(18),a(42),a(4),a(23),a(57),a(17);var l=n(a(30)),o=n(a(36)),u=n(a(37)),c=n(a(55)),s=n(a(56)),i=n(a(51)),f=r(a(0)),d=a(186),p=n(a(806)),m=n(a(3421));function v(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,i.default)(e);if(t){var n=(0,i.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,s.default)(this,a)}}var h=function(e){(0,c.default)(a,e);var t=v(a);function a(e){var r;(0,o.default)(this,a),(r=t.call(this,e)).handleChange=function(e,t){var a=r.state,n=a.startTime,o=a.endTime,u=r.props.onChange,c=(0,l.default)({startTime:n,endTime:o},e,t);r.setState((0,l.default)({},e,t)),u([c.startTime,c.endTime])},r.renderTimePicker=function(){var e=r.state,t=e.startTime,a=e.endTime;return f.createElement("div",{className:m.default.wrapper},f.createElement(d.Select,{value:t,defaultValue:t,onChange:function(e){return r.handleChange("startTime",e)},options:new Array(24).fill(0).map((function(e,t){return{value:3600*t,label:t<10?"0".concat(t):t}})),clearable:!0,searchable:!1}),f.createElement("span",null,"–"),f.createElement(d.Select,{value:a,defaultValue:a,onChange:function(e){return r.handleChange("endTime",e)},options:new Array(24).fill(0).map((function(e,t){return{value:3600*(t+1),label:t<10?"0".concat(t):t}})),clearable:!0}))},r.renderDatePicker=function(){var e=r.state,t=e.startTime,a=e.endTime;return f.createElement("div",{className:m.default.wrapper},f.createElement(d.DatePicker,{value:t,dateFormat:"Y-m-d H:i:S",onChange:function(e){r.handleChange("startTime",e[0])},enableTime:!0}),f.createElement("span",null,"–"),f.createElement(d.DatePicker,{value:a,dateFormat:"Y-m-d H:i:S",enableTime:!0,onChange:function(e){return r.handleChange("endTime",e[0])}}))};var n=r.props.value,u=void 0===n?[]:n;return r.state={startTime:u[0],endTime:u[1],value:e.value},r}return(0,u.default)(a,[{key:"componentDidUpdate",value:function(e){var t=this.props.value,a=void 0===t?[]:t;(0,p.default)(a,e.value)||(0,p.default)(a,this.state.value)||this.setState({value:a,startTime:a[0],endTime:a[1]})}},{key:"render",value:function(){return"date"===this.props.type?this.renderDatePicker():this.renderTimePicker()}}]),a}(f.Component);t.default=h},function(e,t,a){e.exports={wrapper:"_4Y7QthNjz2h_QCRixWaez",timePicker:"SHh3pyqg08gPiDs1JiP-M",timeInput:"_2wG89BS0l6_fko0YVgH8Z_","is-hover":"_1eWtLiVXH-tZu8fDt6fJXb",isActive:"mMgB1a9fIAeuK9eW5RJzW",timeCloseIcon:"_2P4r9gVOJ3w0jmfDdmrJBk",timeIcon:"r-3lMVm-uygWaJSTU0vAZ",timeContent:"_3LLguW1J-JK5vSqztTVUTA",timeHeader:"_2I64-AObhngFrgHBvlp6Id",timeFields:"_2NnH5NwINte5FTsKIuUeOo",timeItem:"_2Yur1ll1Q_y3B920FlFkmN","is-active":"_1sq9NsV9C-tPDYXqK2XLHE","is-disabled":"_2DmTgBUO1uNvtla6uVTGBS",timeFooter:"_1QgYbx8f-Wrbfso_5wbKM-"}},function(e,t,a){e.exports={wrapper:"_5T9cqusVddZlw43e51Xmi",title:"_d3S2TlF7MtT9KW6k66qi"}},function(e,t,a){"use strict";a(15);var r=a(20);a(5),a(4),a(23),a(17),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(45),a(5),a(42),a(4),a(23),a(57),a(17);var n,l=r(a(36)),o=r(a(55)),u=r(a(56)),c=r(a(51)),s=r(a(1752)),i=r(a(1390));function f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,c.default)(e);if(t){var n=(0,c.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,u.default)(this,a)}}var d=(0,r(a(936)).default)(["bell-off-duotone"])(n=function(e){(0,o.default)(a,e);var t=f(a);function a(){var e;(0,l.default)(this,a);for(var r=arguments.length,n=new Array(r),o=0;o1?s.default.createElement(d.Select,{className:m.default.tailSelect,options:e,value:t,defaultValue:t,onChange:r.handleSelectChange}):s.default.createElement("span",{className:m.default.unit},t)},r.state={unit:e.unit,value:e.value},r}return(0,l.default)(a,[{key:"render",value:function(){var e=this.props,t=e.title,a=e.min,r=e.max,n=e.value;return s.default.createElement(s.default.Fragment,null,""!==t&&s.default.createElement("div",{className:m.default.title},t),s.default.createElement("div",{className:m.default.wrapper},s.default.createElement(p.default,{className:m.default.input,min:a,value:n,max:r,onChange:this.handleInput}),this.renderTail()))}}]),a}(s.default.Component);t.default=h,h.propTypes={onChange:i.default.func,options:i.default.array,value:i.default.string,min:i.default.number,max:i.default.number,unit:i.default.string,title:i.default.string},h.defaultProps={options:[],value:"",min:0,title:"",unit:"",onChange:function(){}}},function(e,t,a){e.exports={title:"_3gCzFcF7fcPTu22LltCShA",wrapper:"_20nfJFuMfJpHOHE9YDPewL",input:"vaY31bEaxpZlAVRmVYPix",tailSelect:"_2XbNfOs7f_36Ovqjfw_HK9",unit:"flR4Dw7LDIWhIn8tDx9jF"}},function(e,t,a){e.exports={wrapper:"_199UmNQHyBJS0ebwEpIGw8",text:"_3UfJ52LH7FrU0bLw8j0O95",switch:"_2fHHkpPHo-8wuOAbtg_-fy",settings:"_2whYmFUOtrDqPfsDr3UVMW",title:"_1fTGAl2lYYfATlfTHgdLWr",container:"_3Q1kslT3zayxpY8R7UfqIL",limit:"_2P6eNTXyz8rvKC5lg8NgeP",checkItem:"_14y0ciRr89j7e_M0WYMQ9w",des:"uDVdwpV_vBYrKbce_FYfE",group:"_44T5XYn5HzVMT8x5tJZXT"}},function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(11),r(18),r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(11),r(18),r(42),r(10),r(4),r(23),r(57),r(17);var l,o,u,c=n(r(36)),s=n(r(37)),i=n(r(55)),f=n(r(56)),d=n(r(51)),p=n(r(0)),m=n(r(1)),v=r(186),h=n(r(787)),E=n(r(26)),y=n(r(158)),g=n(r(195)),b=r(239),S=n(r(3435));function _(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,d.default)(e);if(t){var n=(0,d.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,f.default)(this,a)}}var O=(0,b.observer)((u=o=function(e){(0,i.default)(r,e);var a=_(r);function r(){var e;(0,c.default)(this,r);for(var t=arguments.length,n=new Array(t),l=0;l2147483647?r({message:t("GID_RANGE_TIP"),field:e.field}):void r():r({message:t("ENTER_POSITIVE_INTEGER_DESC"),field:e.field}):r()};return[{_key:"gidMin",validator:e,checkOnSubmit:!0},{_key:"gidMax",validator:e,checkOnSubmit:!0}]}}]),r}(m.default.Component);a.default=_},function(e,t,a){"use strict";a(15);var r=a(20);a(16),a(4),a(23),a(17),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(45),a(42),a(16),a(4),a(23),a(57),a(17);var n=r(a(315)),l=r(a(58)),o=r(a(36)),u=r(a(37)),c=r(a(55)),s=r(a(56)),i=r(a(51)),f=r(a(0)),d=r(a(1)),p=a(186),m=r(a(3443));function v(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,i.default)(e);if(t){var n=(0,i.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,s.default)(this,a)}}var h=function(e){(0,c.default)(a,e);var t=v(a);function a(){return(0,o.default)(this,a),t.apply(this,arguments)}return(0,u.default)(a,[{key:"render",value:function(){var e=this.props,t=e.name,a=e.unit,r=e.onChange,o=(0,l.default)(e,["name","unit","onChange"]);return a?f.default.createElement(f.default.Fragment,null,f.default.createElement("div",{className:m.default.wrapper},f.default.createElement(p.Input,(0,n.default)({name:t,className:m.default.input,onChange:r||null},o)),a&&f.default.createElement("span",{className:m.default.unit},a))):f.default.createElement(p.Input,(0,n.default)({name:t,className:m.default.input,onChange:r||null},o))}}]),a}(f.default.Component);t.default=h,h.propTypes={onChange:d.default.func,unit:d.default.string}},function(e,t,a){e.exports={wrapper:"_2kGVdUbWOxTaeyX4b5Z8Q_",input:"qgxKLrXJOh3vbKAcB-CBG",unit:"_2GAL5LSZYi6CYdKZCidXt9"}},function(e,a,r){"use strict";r(15);var n=r(20);r(11),r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(11),r(42),r(4),r(23),r(57),r(17);var l=n(r(36)),o=n(r(37)),u=n(r(55)),c=n(r(56)),s=n(r(51)),i=n(r(0)),f=n(r(1)),d=r(14),p=n(r(830)),m=r(186),v=n(r(787));function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,s.default)(e);if(t){var n=(0,s.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,c.default)(this,a)}}var E=function(e){(0,u.default)(r,e);var a=h(r);function r(e){var t;return(0,l.default)(this,r),(t=a.call(this,e)).handleOk=function(e){var a=t.props,r=a.onOk,n=a.store,l=a.detail,o=n.list,u=(0,d.toJS)(o.selectedRowKeys),c=u?u.filter((function(e){return e!==l.uid})):"";r(e),u&&o.setSelectRowKeys(c)},t.state={formData:(0,p.default)((0,d.toJS)(e.detail._originData||e.detail))},t}return(0,o.default)(r,[{key:"componentDidUpdate",value:function(e){this.props.visible&&this.props.visible!==e.visible&&this.setState({formData:(0,p.default)((0,d.toJS)(this.props.detail._originData||this.props.detail))})}},{key:"render",value:function(){var e=this.props,a=e.visible,r=e.isSubmitting,n=e.onCancel,l=this.state.formData;return i.default.createElement(v.default.Form,{data:l,width:691,title:t("EDIT_INFORMATION"),icon:"pen",onOk:this.handleOk,okText:t("OK"),onCancel:n,visible:a,isSubmitting:r},i.default.createElement(m.Form.Item,{label:t("NAME")},i.default.createElement(m.Input,{name:"metadata.name",disabled:!0})),i.default.createElement(m.Form.Item,{label:t("ALIAS"),desc:t("ALIAS_DESC")},i.default.createElement(m.Input,{name:"metadata.annotations['kubesphere.io/alias-name']",maxLength:63})),i.default.createElement(m.Form.Item,{label:t("storageclasses")},i.default.createElement(m.Select,{name:'metadata.labels["storage.kubesphere.io/storagetype"]',options:this.options,clearable:!0})),i.default.createElement(m.Form.Item,{label:t("DESCRIPTION"),desc:t("DESCRIPTION_DESC")},i.default.createElement(m.TextArea,{name:"metadata.annotations['kubesphere.io/description']",maxLength:256})))}},{key:"options",get:function(){return[{value:"BlockStorage",label:t("BLOCK_STORAGE")},{value:"ObjectStorage",label:t("OBJECT_STORAGE")},{value:"FileStorage",label:t("FILE_STORAGE")},{value:"Undefined",label:t("UNCLASSIFIED")}]}}]),r}(i.default.Component);a.default=E,E.propTypes={detail:f.default.object,visible:f.default.bool,onOk:f.default.func,onCancel:f.default.func,isSubmitting:f.default.bool},E.defaultProps={visible:!1,onOk:function(){},onCancel:function(){},isSubmitting:!1}},function(e,a,r){"use strict";var n=r(20);r(12),r(11),r(6),r(9),r(13),r(10),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(11),r(6),r(28),r(34),r(15),r(9),r(13),r(10),r(4),r(7);var l=n(r(30)),o=n(r(58)),u=n(r(0)),c=r(186),s=n(r(787)),i=n(r(1756)),f=n(r(1770)),d=n(r(1773)),p=n(r(1068)),m=n(r(1779)),v=n(r(1780));function h(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function E(e){for(var t=1;t0&&void 0!==n[0]?n[0]:{},r=e.state.pagination,e.setState({isLoading:!0,pagination:I(I({},r),{},{page:r.page+1})},(function(){var t=e.state.pagination,r=t.page,n=t.limit,l=e.props,o=I(I({namespace:l.namespace,cluster:l.cluster},a),{},{limit:n*r,page:1,more:!1,sortBy:"createTime"});e.volumeStore.fetchList(o).then((function(){var t=e.volumeStore.list.total;e.setState({pagination:I(I({},e.state.pagination),{},{total:t}),isLoading:!1})}))}));case 3:case"end":return t.stop()}}),t)}))),e.volumeChange=function(t){e.setState({selectedVolume:t},(function(){e.saveVolumeInfo()}))},e.volumeValidator=function(a,r,n){var l=e.state,o=l.allowSnapshot,u=l.volumeInfo;!o&&(0,D.default)(u)&&n({message:t("STORAGECLASS_NOT_ALLOW_CREATE_SNAPSHOT"),field:a.field}),n()},e.optionRenderer=function(a){return h.default.createElement(h.default.Fragment,null,h.default.createElement("div",{className:N.default.option},a.isFedManaged?h.default.createElement("img",{className:N.default.indicator,src:"/assets/cluster.svg"}):h.default.createElement(g.Icon,{type:"light",name:"storage"}),a.label," (",a.namespace,")"),a.isFedManaged&&h.default.createElement(g.Tooltip,{content:e.props.tipMessage||t("FEDPROJECT_RESOURCE_TIP")},h.default.createElement(g.Icon,{className:N.default.tip,name:"question"})))},e.handleOk=function(){var t,a=e.props.onOk,r=e.state,n=r.allowSnapshot,l=r.selectedVolume;e.form.current.validator((function(){if(n){var r=e.form.current.props.data;""!==l&&(t=(0,C.toJS)(e.volumeStore.list.data).filter((function(e){return e.name===l}))[0].namespace),a(I(I({},r),{},{namespace:t}))}}))},e}return(0,d.default)(n,[{key:"componentDidMount",value:function(){this.props.volumeSelect&&(this.fetchList(),this.getSnapShotClassList())}},{key:"getSnapShotClassList",value:function(){var e=this.props,t={namespace:e.namespace,cluster:e.cluster,limit:-1};this.snapShotClassStore.fetchList(t)}},{key:"saveVolumeInfo",value:function(){var e=this,t=this.state.selectedVolume;if(t){var a=(0,C.toJS)(this.volumeStore.list.data).filter((function(e){return e.name===t}))[0];a&&this.setState({volumeInfo:a},(function(){e.getStorageClassInfo()}))}}},{key:"getSnapShotClass",value:function(e){if(e){var t=(0,C.toJS)(this.snapShotClassStore.list.data),a=[];t.forEach((function(t){t.driver===e&&a.push({label:t.name,value:t.name})})),this.setState({snapShotClass:a})}}},{key:"getStorageClassInfo",value:(a=(0,i.default)(l.default.mark((function e(){var t,a,r,n,o,u,c,s=this;return l.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=this.props,a=t.cluster,r=t.namespace,n=this.state.volumeInfo,o=n.storageClassName,e.prev=3,e.next=6,this.storageclass.fetchDetail({cluster:a,namespace:r,name:o});case 6:u=(0,R.default)((0,C.toJS)(this.storageclass).detail.annotations,"storageclass.kubesphere.io/allow-snapshot","false"),this.getSnapShotClass(null===(c=this.storageclass.detail)||void 0===c?void 0:c.provisioner),e.next=13;break;case 10:e.prev=10,e.t0=e.catch(3),u="false";case 13:this.setState({allowSnapshot:JSON.parse(u)},(function(){s.testRef.current.validate({sourceName:s.state.selectedVolume})}));case 14:case"end":return e.stop()}}),e,this,[[3,10]])}))),function(){return a.apply(this,arguments)})},{key:"renderVolumeSelect",value:function(){var e=this.state,a=e.pagination,r=e.isLoading;return h.default.createElement(g.Form.Item,{ref:this.testRef,label:t("PERSISTENT_VOLUME_CLAIM"),rules:[{required:!0,message:t("PVC_NOT_SELECT")},{validator:this.volumeValidator}],desc:t("SELECT_A_VOLUME_DESC")},h.default.createElement(g.Select,{searchable:!0,name:"sourceName",className:N.default.input,options:this.volumeList,pagination:a,onFetch:this.fetchList,onChange:this.volumeChange,isLoading:r,optionRenderer:this.optionRenderer,clearable:!0}))}},{key:"render",value:function(){var e=this.props,a=e.visible,r=e.isSubmitting,n=e.onCancel,l=e.title,o=e.options,u=e.volumeSelect,c=this.state,s=c.snapShotClass,i=c.formData;return h.default.createElement(b.default,{icon:"pen",width:600,title:l,onOk:this.handleOk,onCancel:n,visible:a,isSubmitting:r},h.default.createElement(g.Form,{data:i,ref:this.form},u&&this.renderVolumeSelect(),h.default.createElement(g.Form.Item,{label:t("NAME"),rules:[{required:!0,message:t("NAME_EMPTY_DESC")},{pattern:y.PATTERN_NAME,message:t("INVALID_NAME_DESC",{message:t("LONG_NAME_DESC")})}],desc:t("LONG_NAME_DESC")},h.default.createElement(g.Input,{name:"name",maxLength:253,className:N.default.input})),h.default.createElement(g.Form.Item,{label:t("VOLUME_SNAPSHOT_CLASS"),rules:[{required:!0,message:t("SNAPSHOT_EMPTY_TIP")}],desc:t("SELECT_VOLUME_SNAPSHOT_CLASS_DESC")},h.default.createElement(g.Select,{name:"type",options:u?s:o,placeholder:" ",className:N.default.input}))))}},{key:"volumeList",get:function(){return(0,C.toJS)(this.volumeStore.list.data).map((function(e){return{value:e.name,label:e.name,disabled:!e.inUse||e.isFedManaged,isFedManaged:e.isFedManaged,namespace:e.namespace}}))}}]),n}(h.default.Component),c.propTypes={detail:E.default.object,visible:E.default.bool,onOk:E.default.func,onCancel:E.default.func,isSubmitting:E.default.bool,snapshotOption:E.default.array,volumeSelect:E.default.bool},c.defaultProps={visible:!1,onOk:function(){},onCancel:function(){},isSubmitting:!1,snapshotOption:[],volumeSelect:!1},u=s))||u;a.default=A},function(e,t,a){e.exports={input:"zvTsfyLRc9lqKCZ7OH12O",option:"_3FKGkuuhvdnSIGOarex_36",tip:"_3L7C3cYavlloj_j_uwkS9I"}},function(e,a,r){"use strict";var n=r(157),l=r(20);r(12),r(11),r(6),r(87),r(9),r(13),r(10),r(4),r(23),r(17),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(45),r(11),r(6),r(28),r(87),r(42),r(34),r(15),r(9),r(13),r(10),r(4),r(23),r(57),r(17),r(7);var o=l(r(30)),u=l(r(36)),c=l(r(37)),s=l(r(55)),i=l(r(56)),f=l(r(51)),d=n(r(0)),p=l(r(1084)),m=l(r(1)),v=r(186),h=l(r(787)),E=l(r(966)),y=l(r(3604));function g(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function b(e){for(var t=1;t0&&void 0!==n[0]?n[0]:{},e.next=3,r.fetchList(y(y({},t),{},{status:"available"}));case 3:a=r.list.data.map((function(e){return{label:e.name,value:e.name}})),g(a);case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();(0,p.useEffect)((function(){b()}),[]);var S=r.list;return p.default.createElement(f.Select,(0,l.default)({pagination:(0,v.default)(S,["page","limit","total"]),isLoading:S.isLoading,onChange:function(e){if(e){var a=r.list.data.find((function(t){return t.name===e}));t(e,(0,h.toJS)(a))}else t(e)},options:E,onFetch:b,searchable:!0,clearable:!0},a))}));t.default=g},function(e,t,a){e.exports={wrapper:"_2a9sRw3e8FcMiSbR4y1l_2",action:"_3DAwICPafejRhgveWMIef7"}},function(e,t,a){"use strict";a(15);var r=a(20);Object.defineProperty(t,"__esModule",{value:!0}),t.APPLY_SNAPSHOT_FORM_STEPS=t.default=void 0;var n=r(a(974)),l=r(a(1786)),o=r(a(3616)),u=r(a(3618)),c=[{title:"BASIC_INFORMATION",icon:"cdn",component:n.default,required:!0},{title:"STORAGE_SETTINGS",icon:"storage",component:l.default,required:!0},{title:"ADVANCED_SETTINGS",icon:"slider",component:o.default,required:!0}];t.default=c;var s=[{title:"BASIC_INFORMATION",icon:"cdn",component:n.default,required:!0},{title:"STORAGE_SETTINGS",icon:"storage",component:u.default,required:!0},{title:"ADVANCED_SETTINGS",icon:"slider",component:o.default,required:!0}];t.APPLY_SNAPSHOT_FORM_STEPS=s},function(e,a,r){"use strict";r(15);var n=r(20);r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(42),r(4),r(23),r(57),r(17);var l=n(r(36)),o=n(r(37)),u=n(r(55)),c=n(r(56)),s=n(r(51)),i=n(r(0)),f=n(r(26)),d=r(72),p=r(186),m=n(r(3617));function v(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,s.default)(e);if(t){var n=(0,s.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,c.default)(this,a)}}var h=function(e){(0,u.default)(r,e);var a=v(r);function r(){return(0,l.default)(this,r),a.apply(this,arguments)}return(0,o.default)(r,[{key:"render",value:function(){var e=this.props,a=e.store,r=e.formRef;return i.default.createElement(p.Form,{data:this.fedFormTemplate,ref:r},i.default.createElement(p.Form.Group,{label:t("ADD_METADATA"),desc:t("VOLUME_ADD_METADATA_DESC"),keepDataWhenUnCheck:!0,checkable:!0},i.default.createElement(m.default,{store:a,cluster:this.cluster,namespace:this.namespace,formTemplate:this.fedFormTemplate})))}},{key:"cluster",get:function(){return this.props.cluster}},{key:"namespace",get:function(){return(0,f.default)(this.formTemplate,"metadata.namespace")}},{key:"formTemplate",get:function(){var e=this.props,t=e.formTemplate,a=e.module;return(0,f.default)(t,d.MODULE_KIND_MAP[a],t)}},{key:"fedFormTemplate",get:function(){return this.props.isFederated?(0,f.default)(this.formTemplate,"spec.template"):this.formTemplate}}]),r}(i.default.Component);a.default=h},function(e,a,r){"use strict";r(15);var n=r(20);r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(42),r(4),r(23),r(57),r(17);var l=n(r(36)),o=n(r(37)),u=n(r(55)),c=n(r(56)),s=n(r(51)),i=n(r(0)),f=r(186),d=n(r(842));function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,s.default)(e);if(t){var n=(0,s.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,c.default)(this,a)}}var m=function(e){(0,u.default)(r,e);var a=p(r);function r(){return(0,l.default)(this,r),a.apply(this,arguments)}return(0,o.default)(r,[{key:"render",value:function(){return i.default.createElement(i.default.Fragment,null,i.default.createElement(f.Form.Item,{label:t("LABEL_PL")},i.default.createElement(d.default,{name:"metadata.labels",addText:t("ADD")})),i.default.createElement(f.Form.Item,{label:t("ANNOTATION_PL")},i.default.createElement(d.default,{name:"metadata.annotations",addText:t("ADD")})))}}]),r}(i.default.Component);a.default=m},function(e,a,r){"use strict";r(15);var n=r(20);r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(42),r(4),r(23),r(57),r(17);var l=n(r(36)),o=n(r(37)),u=n(r(55)),c=n(r(56)),s=n(r(51)),i=n(r(0)),f=n(r(26)),d=r(72),p=r(186),m=n(r(1363));function v(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,s.default)(e);if(t){var n=(0,s.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,c.default)(this,a)}}var h=["ReadWriteOnce","ReadOnlyMany","ReadWriteMany"],E=function(e){(0,u.default)(r,e);var a=v(r);function r(){return(0,l.default)(this,r),a.apply(this,arguments)}return(0,o.default)(r,[{key:"render",value:function(){var e=this.props.formRef;return i.default.createElement(p.Form,{data:this.formTemplate,ref:e},i.default.createElement(p.Form.Item,{label:t("ACCESS_MODE_TCAP"),rules:[{required:!0}]},i.default.createElement(m.default,{name:"spec.accessModes[0]",defaultValue:(0,f.default)(h,"[0]",""),supportedAccessModes:h})))}},{key:"formTemplate",get:function(){var e=this.props,t=e.formTemplate,a=e.module;return(0,f.default)(t,d.MODULE_KIND_MAP[a],t)}}]),r}(i.default.Component);a.default=E},function(e,t,a){"use strict";a(15);var r=a(20);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(a(1755)),l=r(a(3620)),o=[{title:"BASIC_INFORMATION",component:n.default,required:!0},{title:"SNAPSHOT_CLASS_SETTINGS",component:l.default,required:!0}];t.default=o},function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(18),r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(18),r(42),r(4),r(23),r(57),r(17);var l,o=n(r(36)),u=n(r(37)),c=n(r(55)),s=n(r(56)),i=n(r(51)),f=n(r(0)),d=n(r(26)),p=n(r(247)),m=r(186),v=r(72),h=n(r(866)),E=r(14);function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,i.default)(e);if(t){var n=(0,i.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,s.default)(this,a)}}var g=(0,r(239).observer)(l=function(e){(0,c.default)(r,e);var a=y(r);function r(){var e;(0,o.default)(this,r);for(var t=arguments.length,n=new Array(t),l=0;l(0,v.default)(e.props.formTemplate,"ingester.replicas")?n({message:t("LOCAL_STORAGE_ERROR_MESSAGE")}):n()},e}return(0,i.default)(r,[{key:"render",value:function(){return m.default.createElement(y.Form.Group,null,m.default.createElement(y.Columns,null,m.default.createElement(y.Column,null,m.default.createElement(y.Form.Item,{label:t("DATA_RETENTION_REPLICA_COUNT"),desc:t("REPLICA_DESC",{resource:t("DATA_RETENTION_LOW"),default:1}),rules:[{validator:this.replicasValidator}]},m.default.createElement(y.Select,{name:"router.replicationFactor",options:this.replicationFactorOpts,defaultValue:1}))),m.default.createElement(y.Column,null,m.default.createElement(y.Form.Item,{label:t("COMPONENT_REPLICA_COUNT"),desc:t("REPLICA_DESC",{resource:t("ROUTER_COMPONENT_LOW"),default:2})},m.default.createElement(g.default,{name:"router.replicas",integer:!0,min:0,defaultValue:2,controls:!0})))),m.default.createElement(y.Columns,null,m.default.createElement(y.Column,null,m.default.createElement(y.Form.Item,{label:t("CONTAINER_QUOTA")},m.default.createElement(b.default,(0,c.default)({name:"router.resources"},this.resourceLimitProps))))))}},{key:"resourceLimitProps",get:function(){var e=this,t=this.props.formTemplate;return{memoryProps:{unit:"Gi"},defaultValue:{limits:{cpu:(0,v.default)(t,'router.resources["limits.cpu"]'),memory:(0,v.default)(t,'router.resources["limits.memory"]')},requests:{cpu:(0,v.default)(t,'router.resources["requests.cpu"]'),memory:(0,v.default)(t,'router.resources["requests.memory"]')}},onError:function(t){e.context.setError(!!t)}}}},{key:"replicationFactorOpts",get:function(){return[1,2,3].map((function(e){return{label:e,value:e}}))}}]),r}(m.default.Component),o.contextTypes={setError:E.PropTypes.func},l=u))||l;a.default=_},function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(42),r(4),r(23),r(57),r(17);var l,o,u,c=n(r(315)),s=n(r(36)),i=n(r(37)),f=n(r(55)),d=n(r(56)),p=n(r(51)),m=n(r(0)),v=n(r(26)),h=r(239),E=r(1),y=r(186),g=n(r(799)),b=n(r(872));function S(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,p.default)(e);if(t){var n=(0,p.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,d.default)(this,a)}}var _=(0,h.observer)((u=o=function(e){(0,f.default)(r,e);var a=S(r);function r(){var e;(0,s.default)(this,r);for(var n=arguments.length,l=new Array(n),o=0;o0&&void 0!==arguments[0]?arguments[0]:{};t.name&&t.namespace&&this.store.fetchDetail(t).then((function(){e.setState({formTemplate:(0,d.toJS)(e.store.detail._originData)})}))}},{key:"renderForm",value:function(){return i.default.createElement(y.default,{formRef:this.formRef,formTemplate:this.state.formTemplate})}},{key:"render",value:function(){var e=this.props,a=e.visible,r=e.isSubmitting,n=e.detail;return i.default.createElement(E.default,{width:1162,title:t("EDIT_SERVICE"),onOk:n.type!==m.SERVICE_TYPES.Unknown?this.handleOk:null,onCancel:this.handleCancel,okText:t("OK"),visible:a,isSubmitting:r},i.default.createElement(h.Loading,{spinning:this.store.isLoading},this.renderForm()))}}]),r}(i.default.Component);a.default=b,b.propTypes={visible:f.default.bool,detail:f.default.object,onOk:f.default.func,onCancel:f.default.func,isSubmitting:f.default.bool},b.defaultProps={visible:!1,detail:{},onOk:function(){},onCancel:function(){},isSubmitting:!1}},function(e,a,r){"use strict";r(15);var n=r(20);r(18),r(10),r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(18),r(42),r(10),r(4),r(23),r(57),r(17);var l=n(r(36)),o=n(r(37)),u=n(r(55)),c=n(r(56)),s=n(r(51)),i=n(r(0)),f=n(r(26)),d=n(r(1338)),p=r(186),m=n(r(1045)),v=n(r(816)),h=n(r(3652));function E(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,s.default)(e);if(t){var n=(0,s.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,c.default)(this,a)}}var y=function(e){(0,u.default)(r,e);var a=E(r);function r(){return(0,l.default)(this,r),a.apply(this,arguments)}return(0,o.default)(r,[{key:"renderName",value:function(){return i.default.createElement(p.Form.Item,{label:t("NAME")},i.default.createElement(p.Input,{name:"metadata.name",disabled:!0}))}},{key:"renderSelectorLabels",value:function(){var e=(0,f.default)(this.props.formTemplate,"spec.selector",{});return i.default.createElement(p.Form.Item,{label:t("SELECTOR")},i.default.createElement("div",{className:h.default.selectors},Object.keys(e).map((function(t){return i.default.createElement(m.default,{key:t,name:t,value:e[t]})}))))}},{key:"renderTypeSelect",value:function(){return i.default.createElement(p.Form.Item,{label:t("INTERNAL_ACCESS_MODE")},i.default.createElement(v.default,{className:"margin-b12",value:this.state.serviceType,onChange:this.handleTypeChange,options:this.types,disabled:!0}))}},{key:"render",value:function(){var e=this.props.formRef;return i.default.createElement("div",{className:h.default.wrapper},i.default.createElement(p.Form,{data:this.formTemplate,ref:e},this.renderName(),this.renderTypeSelect(),this.renderSelectorLabels(),this.renderPorts()))}}]),r}(d.default);a.default=y},function(e,t,a){e.exports={card:"_1RshJt8HTq5HgEme5DfSMo",tabs:"wyrLrVtofUNlEaiwxIeFK",label:"QqDn4rm7cZu-6-D4Z5tTh",selectors:"_3_DdQN134r--ART1Vr6ZI9"}},function(e,t,a){"use strict";a(15);var r=a(20);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=a(52),l=r(a(974)),o=r(a(932)),u=r(a(971)),c=r(a(1043)),s=[{title:"BASIC_INFORMATION",icon:"cdn",component:l.default,required:!0},{title:"POD_SETTINGS",icon:"docker",component:(0,n.withProps)(o.default,{withService:!0}),required:!0},{title:"STORAGE_SETTINGS",icon:"storage",component:u.default,required:!0},{title:"ADVANCED_SETTINGS",icon:"slider",component:c.default,required:!0}];t.default=s},function(e,t,a){"use strict";a(15);var r=a(20);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(a(974)),l=r(a(932)),o=r(a(971)),u=r(a(1043)),c=[{title:"BASIC_INFORMATION",icon:"cdn",component:n.default,required:!0},{title:"POD_SETTINGS",icon:"docker",component:l.default,required:!0},{title:"STORAGE_SETTINGS",icon:"storage",component:o.default,required:!0},{title:"ADVANCED_SETTINGS",icon:"slider",component:u.default,required:!0}];t.default=c},function(e,t,a){"use strict";a(15);var r=a(20);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=a(52),l=r(a(974)),o=r(a(971)),u=r(a(1043)),c=r(a(1787)),s=r(a(1788)),i=[{title:"BASIC_INFORMATION",icon:"cdn",component:(0,n.withProps)(l.default,{maxNameLength:63}),required:!0},{title:"STRATEGY_SETTINGS",icon:"job",component:c.default,required:!0},{title:"POD_SETTINGS",icon:"docker",component:s.default,required:!0},{title:"STORAGE_SETTINGS",icon:"storage",component:o.default,required:!0},{title:"ADVANCED_SETTINGS",icon:"slider",component:u.default,required:!0}];t.default=i},function(e,t,a){"use strict";a(15);var r=a(20);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=a(52),l=r(a(3657)),o=r(a(1787)),u=r(a(1788)),c=r(a(971)),s=r(a(1043)),i=[{title:"BASIC_INFORMATION",icon:"cdn",component:l.default,required:!0},{title:"STRATEGY_SETTINGS",icon:"cron-job",component:(0,n.withProps)(o.default,{prefix:"spec.jobTemplate.spec."}),required:!0},{title:"POD_SETTINGS",icon:"docker",component:(0,n.withProps)(u.default,{prefix:"spec.jobTemplate.spec.template."}),required:!0},{title:"STORAGE_SETTINGS",icon:"storage",component:(0,n.withProps)(c.default,{prefix:"spec.jobTemplate.spec.template."}),required:!0},{title:"ADVANCED_SETTINGS",icon:"slider",component:(0,n.withProps)(s.default,{prefix:"spec.jobTemplate.spec.template."}),required:!0}];t.default=i},function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(48),r(4),r(23),r(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(48),r(42),r(4),r(23),r(57),r(17);var l=n(r(36)),o=n(r(37)),u=n(r(55)),c=n(r(56)),s=n(r(51)),i=r(186),f=n(r(799)),d=n(r(1107)),p=n(r(951)),m=n(r(800)),v=n(r(26)),h=n(r(74)),E=n(r(0)),y=r(52),g=r(72);function b(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,s.default)(e);if(t){var n=(0,s.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,c.default)(this,a)}}var S=function(e){(0,u.default)(r,e);var a=b(r);function r(){var e;(0,l.default)(this,r);for(var n=arguments.length,o=new Array(n),u=0;u1&&f.default.createElement(y.default,{steps:this.steps,current:r})),f.default.createElement("div",{className:S.default.headerBottom}))}},{key:"renderFooter",value:function(){var e=this.props,a=e.onCancel,r=e.isSubmitting,n=this.state.currentStep,l=this.steps.length-1;return f.default.createElement("div",{className:S.default.footer},f.default.createElement("div",{className:S.default.wrapper},f.default.createElement("div",{className:"text-right"},f.default.createElement(m.Button,{onClick:a},t("CANCEL")),n>0&&f.default.createElement(m.Button,{type:"control",onClick:this.handlePrev},t("PREVIOUS")),n=a?f.default.createElement(d.Icon,{name:"success",type:"coloured",size:12}):f.default.createElement(d.Icon,{name:"dot",type:"light",size:12}),f.default.createElement("span",null,t(e.title)))})))}}]),r}(f.Component);a.default=v},function(e,t,a){e.exports={wrapper:"_2dFP1gLucRGN5yjrJBJ0Wr"}},function(e,a,r){"use strict";var n=r(20);r(12),r(187),r(11),r(6),r(18),r(9),r(13),r(10),r(4),r(23),r(17),r(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(45),r(187),r(11),r(6),r(18),r(28),r(859),r(42),r(34),r(15),r(9),r(13),r(10),r(4),r(23),r(57),r(17),r(7);var l,o=n(r(30)),u=n(r(36)),c=n(r(37)),s=n(r(55)),i=n(r(56)),f=n(r(51)),d=r(186),p=n(r(241)),m=r(239),v=n(r(0)),h=n(r(322)),E=r(72),y=n(r(3663));function g(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function b(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,f.default)(e);if(t){var n=(0,f.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,i.default)(this,a)}}var S=(0,m.observer)(l=function(e){(0,s.default)(r,e);var a=b(r);function r(e){var n;return(0,u.default)(this,r),(n=a.call(this,e)).fetchUsers=function(e){return n.userStore.fetchList(function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};t.clusterStore.fetchList(R(R({limit:-1},e),{},{labelSelector:"cluster-role.kubesphere.io/edge"}))},t.handleEdgeClusterSelectChange=function(e){(0,t.props.onChange)([{name:e}])},t.clearFilter=function(){t.setState({filters:{}}),t.fetchData()},t.handleReset=function(){var e=t.state.filters;t.fetchData(e)},t.clusterStore=new g.default,t.state={filters:{}},t}return(0,s.default)(r,[{key:"componentDidMount",value:function(){this.fetchData()}},{key:"render",value:function(){var e=this,a=t("NO_CLUSTER_AVAILABLE_DESC",{type:t("EDGE_CLUSTER")}),r=this.state.filters,n=(0,m.toJS)(this.clusterStore.list),l=n.data,o=n.isLoading;return(0,v.default)(l)&&(0,v.default)(r)&&!o?p.default.createElement(y.Alert,{type:"warning",message:a}):p.default.createElement("div",{className:C.default.wrapper},p.default.createElement("div",{className:"margin-b12"},p.default.createElement(O.default,{placeholder:t("SEARCH_BY_NAME"),columns:this.columns,onChange:function(t){e.setState({filters:t}),e.fetchData(t)},filters:this.state.filters})),p.default.createElement(y.RadioGroup,{onChange:this.handleEdgeClusterSelectChange},l.map((function(e){return p.default.createElement("div",{key:e.name,className:(0,h.default)(C.default.item,(0,u.default)({},C.default.disabled,!globals.app.isMultiCluster)),"data-cluster":e.name},p.default.createElement(y.Radio,{key:e.name,value:e.name,disabled:!1}),p.default.createElement(_.default,{className:C.default.cluster,cluster:e,isEdgeWize:!0,noTip:!0}),p.default.createElement(b.default,{title:null==e?void 0:e.hostCluster,description:t("HOSTED_IN")}))}))),o&&p.default.createElement(y.Loading,{size:"large",className:C.default.loading}),(0,v.default)(l)&&p.default.createElement(S.default,{icon:"exclamation",title:t("NO_MATCHING_RESULT_FOUND"),desc:null,action:p.default.createElement("p",null,t("YOU_CAN_TRY_TO"),p.default.createElement("span",{className:C.default.action,onClick:this.handleReset,"data-test":"table-empty-refresh"},t("REFRESH_DATA")),t("OR"),p.default.createElement("span",{className:C.default.action,onClick:this.clearFilter,"data-test":"table-empty-clear-filter"},t("CLEAR_SEARCH_CONDITIONS")))}))}},{key:"columns",get:function(){return[{dataIndex:"name",title:t("NAME"),search:!0}]}}]),r}(p.Component))||o;a.default=N},function(e,t,a){e.exports={wrapper:"KJ3Lh4Xk2htaiyMql_3xh",item:"_26cyMRaHtZ3vk5FVgkMoT3",disabled:"_2bShAyoPylsL23eY3auTzE",cluster:"_3mBe0Id71MqWxKG-hvBcue",action:"_14EnWX5Pi3VX9QCgNTka7y",loading:"_2jSG-qG8YjAe7ytoelW_PZ",radios:"rsVd3xIVOvMbuUOa_Y-45"}},function(e,t,a){e.exports={wrapper:"R1Nn-MWwPOaptPi1tXzA6",step:"_2V9cABkYkEUjC4bpDz2wdo",upload:"_2-sPfwB-LHg4P9mpA3WhAJ"}},function(e,t,a){e.exports={modal:"ydx1TCDzXWsap7ThoXdoN",body:"_38XL2I39TDuD1GVvoZW0LQ",wrapper:"_3XK3SFG_epD4pRJnzaf6o3",header:"_1Gu0OlXBfqMPX3Jx1OqhI1",headerBottom:"_3yGJCycuKnmGI8GEnF1HDl",title:"_1fvkT6ZxavCZQF95V0OIAV",steps:"_2QTdt6PzkIwGCb1f8zjB_4",formWrapper:"-HzNn2kxNzffyKGd7DRFU",footer:"_2G9tgA343D1vegacgEoqAc"}},function(e,a,r){"use strict";var n=r(157),l=r(20);r(12),r(11),r(6),r(84),r(29),r(16),r(27),r(190),r(98),r(9),r(13),r(10),r(4),r(23),r(24),r(17),r(324),r(85),r(38),r(136),r(7),r(32),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(12),r(45),r(11),r(6),r(84),r(29),r(28),r(42),r(16),r(27),r(190),r(34),r(15),r(98),r(9),r(13),r(10),r(4),r(22),r(23),r(57),r(17),r(324),r(85),r(38),r(460),r(461),r(462),r(463),r(464),r(465),r(466),r(7),r(32);var o=l(r(43));r(41);var u=l(r(44)),c=l(r(96)),s=l(r(61)),i=l(r(30)),f=l(r(36)),d=l(r(37)),p=l(r(55)),m=l(r(56)),v=l(r(51)),h=l(r(0)),E=l(r(1)),y=r(14),g=l(r(26)),b=l(r(74)),S=l(r(1739)),_=l(r(457)),O=l(r(189)),C=r(186),T=l(r(787)),R=l(r(872)),D=r(52),N=l(r(913)),k=l(r(866)),I=n(r(1388)),P=l(r(3671));function A(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function w(e){for(var t=1;t0&&void 0!==v[0]?v[0]:{},a={storage:1/0,persistentvolumeclaims:1/0},e.next=4,this.storageStore.fetchList({cluster:t.cluster});case 4:return r=e.sent,e.next=7,this.store.fetchDetail({name:t.name,workspace:t.name,cluster:t.cluster});case 7:n=(0,y.toJS)(this.store.detail),l=(0,g.default)(n,"status.total.used",{}),u=(0,g.default)(n,"spec.quota.hard",{}),c=(0,g.default)(u,["requests.storage"],null),i=(0,g.default)(u,"persistentvolumeclaims",null),f=(0,g.default)(l,"persistentvolumeclaims","0"),d=(0,g.default)(l,["requests.storage"],"0Gi"),c&&(c=(0,D.memoryFormat)(c,"Gi"),d=(0,D.memoryFormat)(d,"Gi"),a.storage=(0,S.default)(c,d)),i&&(a.persistentvolumeclaims=(0,S.default)(Number(i),Number(f))),p={"requests.storage":c?"".concat(c,"Gi"):"InfinityGi",persistentvolumeclaims:i||""},Object.keys(u).forEach((function(e){(e.includes(I.STORAGE_CLASS_STORAGE)||e.includes(I.STORAGE_CLASS_VOLUME_CLAIMS))&&(p[e]=u[e])})),this.setState({formTemplate:(0,y.toJS)(this.store.detail),spec:p,allStorageClass:(0,s.default)(r),availableQuota:w({},a)},(function(){m.setRelateSourceResult()}));case 19:case"end":return e.stop()}}),e,this)}))),function(){return a.apply(this,arguments)})},{key:"render",value:function(){var e=this.props,a=e.visible,r=e.onCancel,n=e.isSubmitting,l=this.state,o=l.error,u=l.spec,c=l.allStorageClass,s=l.availableQuota,i=l.disableSave,f=l.currentRelatedStorageTotal,d=l.currentRelatedVolumeClaimsTotal,p=l.totalStorageError,m=l.totalVolumeClaimsError,v=l.addedItems;return h.default.createElement(T.default.Form,{width:960,title:t("EDIT_WORKSPACE_QUOTAS"),icon:"pen",data:this.state.formTemplate,onOk:this.handleOk,onCancel:r,visible:a,isSubmitting:n,disableOk:!!o||i},h.default.createElement("div",{className:P.default.body,id:"viewBox"},h.default.createElement(C.Form.Item,null,h.default.createElement(R.default,this.resourceLimitProps)),h.default.createElement(C.Form.Item,null,h.default.createElement(I.default,{quota:u,isWorkspace:!0,availableQuota:s,allStorageClass:c,onChange:this.handleOnChange,renderOutOfLimitTip:p||m,totalStorageError:p,totalVolumeClaimsError:m,currentRelatedStorageTotal:f,currentRelatedVolumeClaimsTotal:d,addedItems:v}))))}},{key:"resourceLimitProps",get:function(){var e=this,a=this.state.formTemplate;return{cpuProps:{marks:[{value:0,label:t("NO_REQUEST"),weight:4},{value:1,label:1,weight:4},{value:2,label:2,weight:2},{value:3,label:3,weight:2},{value:4,label:4},{value:5,label:5},{value:6,label:6},{value:7,label:7},{value:8,label:8},{value:1/0,label:t("NO_LIMIT")}]},memoryProps:{marks:[{value:0,label:t("NO_REQUEST"),weight:4},{value:2,label:2,weight:4},{value:4,label:4,weight:2},{value:6,label:6,weight:2},{value:8,label:8},{value:10,label:10},{value:12,label:12},{value:14,label:14},{value:16,label:16},{value:1/0,label:t("NO_LIMIT")}],unit:"Gi",valueFormatter:function(e){return e>0&&e<1?e.toFixed(2):e>1&&e!==1/0?e.toFixed(1):e}},defaultValue:{limits:{cpu:(0,g.default)(a,'spec.quota.hard["limits.cpu"]'),memory:(0,g.default)(a,'spec.quota.hard["limits.memory"]')},requests:{cpu:(0,g.default)(a,'spec.quota.hard["requests.cpu"]'),memory:(0,g.default)(a,'spec.quota.hard["requests.memory"]')}},onChange:function(e){(0,b.default)(a,'spec.quota.hard["limits.cpu"]',(0,g.default)(e,"limits.cpu",null)),(0,b.default)(a,'spec.quota.hard["limits.memory"]',(0,g.default)(e,"limits.memory",null)),(0,b.default)(a,'spec.quota.hard["requests.cpu"]',(0,g.default)(e,"requests.cpu",null)),(0,b.default)(a,'spec.quota.hard["requests.memory"]',(0,g.default)(e,"requests.memory",null))},onError:function(t){e.setState({error:t})}}}}]),n}(h.default.Component);a.default=L,L.propTypes={detail:E.default.object,visible:E.default.bool,onOk:E.default.func,onCancel:E.default.func,isSubmitting:E.default.bool},L.defaultProps={visible:!1,isSubmitting:!1,detail:{},onOk:function(){},onCancel:function(){}}},function(e,t,a){e.exports={body:"_3gx-epim1LPGcKH75fP9Qu",quotaItem:"_3WPJPpKpsaYoGbWbJfWdgZ",label:"_1Gv6t_kWjdKJhsCfZ6sKDp"}},function(e,a,r){"use strict";r(15);var n=r(20);r(5),r(4),r(23),r(24),r(17),r(136),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,r(45),r(5),r(42),r(4),r(23),r(57),r(17);var l=n(r(36)),o=n(r(37)),u=n(r(55)),c=n(r(56)),s=n(r(51)),i=n(r(0)),f=n(r(1)),d=r(186),p=n(r(787)),m=n(r(3673));function v(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=(0,s.default)(e);if(t){var n=(0,s.default)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return(0,c.default)(this,a)}}var h=function(e){(0,u.default)(r,e);var a=v(r);function r(){var e;(0,l.default)(this,r);for(var t=arguments.length,n=new Array(t),o=0;o0?e.setState({showConfirm:!0}):e.handleConfirm()}))},e.handleConfirm=function(){var t=e.props.onOk,r=e.state,n=r.addWorkspaces,a=r.deleteWorkspaces;t({public:r.isPublic,addWorkspaces:n,deleteWorkspaces:a})},e.hideConfirm=function(){e.setState({showConfirm:!1})},e.handleSearch=function(t){e.fetchWorkspaces({nameAndAlias:t})},e.fetchWorkspaces=function(t){e.workspaceStore.fetchList(C(C({},t),{},{labelSelector:"!cluster-role.kubesphere.io/edge",limit:-1})).then((function(){e.setState({allWorkspaces:(0,_.toJS)(e.workspaceStore.list.data)})}))},e.fetchAuthoredWorkspaces=function(t){var r=e.props.cluster,n=void 0===r?{}:r;e.authoredWorkspaceStore.fetchList(C(C({},t),{},{limit:-1,cluster:n.name})).then((function(){e.setState({authoredWorkspaces:(0,o.default)((0,_.toJS)(e.authoredWorkspaceStore.list.data))})}))},e.handleWorkspaceAuth=function(t){e.setState((function(e){var r=e.authoredWorkspaces;return{authoredWorkspaces:[].concat((0,o.default)(r),[t])}}))},e.handleWorkspaceUnAuth=function(t){var r=e.state.allWorkspaces;e.setState((function(e){var n=e.authoredWorkspaces,a=r.filter((function(e){return e.name===t.name}));return(0,y.default)(a)&&r.push(t),{authoredWorkspaces:n.filter((function(e){return e.name!==t.name})),allWorkspaces:r,showUnAuthTip:!0}}))},e.handlePublicChange=function(t){e.setState({isPublic:t})},e}return(0,c.default)(n,[{key:"componentDidMount",value:function(){this.fetchWorkspaces(),this.fetchAuthoredWorkspaces()}},{key:"render",value:function(){var e=this,r=this.props,n=r.visible,a=r.onCancel,o=this.state,u=o.allWorkspaces,i=o.authoredWorkspaces,c=o.showUnAuthTip,l=o.isPublic,s=o.showConfirm,d=o.deleteWorkspaces,g=d.map((function(e){return e.name})).join(", "),y=1===d.length?t.html("REMOVE_WORKSPACE_CONFIRM_SI",{resource:g}):t.html("REMOVE_WORKSPACE_CONFIRM_PL",{resource:g});return E.default.createElement(p.default,{visible:n,onCancel:a,onOk:this.handleOk,width:960,icon:"key",title:t("EDIT_VISIBILITY"),description:t("EDIT_VISIBILITY_DESC")},!c&&E.default.createElement(f.Alert,{className:"margin-b12",type:"warning",message:t("HOST_CLUSTER_VISIBILITY_WARNING")}),c&&E.default.createElement(f.Alert,{className:"margin-b12",type:"error",message:t("CLUSTER_VISIBILITY_REMOVE_WARNING")}),E.default.createElement("div",{className:b.default.wrapper},E.default.createElement(f.Columns,null,E.default.createElement(f.Column,{className:"is-half"},E.default.createElement("div",{className:b.default.title},t("UNAUTHORIZED")),E.default.createElement("div",{className:b.default.content},E.default.createElement("div",{className:b.default.search},E.default.createElement(h.default,{placeholder:t("SEARCH_BY_NAME"),columns:this.columns,onChange:function(t){e.setState({filters:t}),e.fetchWorkspaces(t)},filters:this.state.filters})),E.default.createElement("div",{className:b.default.list},u.map((function(t){return E.default.createElement(S.default,{key:t.name,data:t,type:"all",onClick:e.handleWorkspaceAuth,disabled:i.find((function(e){return e.name===t.name}))})}))),E.default.createElement("div",{className:b.default.footer},globals.user.globalRules.clusters.includes("manage")&&E.default.createElement(E.default.Fragment,null,E.default.createElement(f.Toggle,{checked:l,onChange:this.handlePublicChange}),E.default.createElement("span",null,t("SET_PUBLIC_CLUSTER")),E.default.createElement(f.Tooltip,{content:t("CLUSTER_VISIBILITY_A2")},E.default.createElement(f.Icon,{name:"information"})))))),E.default.createElement(f.Column,{className:"is-half"},E.default.createElement("div",{className:b.default.title},t("AUTHORIZED")),E.default.createElement("div",{className:b.default.content},E.default.createElement("div",{className:b.default.authedList},i.map((function(t){return E.default.createElement(S.default,{key:t.name,data:t,type:"authed",onClick:e.handleWorkspaceUnAuth})}))),E.default.createElement("div",{className:b.default.footer}))))),E.default.createElement(m.default,{visible:s,onOk:this.handleConfirm,onCancel:this.hideConfirm,resource:g,title:t("REMOVE_WORKSPACE_CONFIRM_TITLE"),desc:y}))}},{key:"columns",get:function(){return[{dataIndex:"name",title:t("NAME"),search:!0},{dataIndex:"alias",title:t("ALIAS"),search:!0}]}}]),n}(E.default.Component);r.default=D},3699:function(e,t,r){e.exports={wrapper:"_1SbLbTFQFqcmexUmc7grjB",title:"_2JIUF6KDW0q8OuRAbzwbFy",content:"_3KsLjWUYDHjA6iBRaPIyOv",search:"qlBBKXQBG5hybwbhVbU-r",list:"_2McNE4ZD_UKTIxC59RzC6L",authedList:"_33baKvp6rG0kolft8ThzKb",footer:"rKEIrcFvmBNM5P5SjduSX"}},3700:function(e,r,n){"use strict";n(15);var a=n(157),o=n(20);n(12),n(109),n(5),n(16),n(4),n(23),n(17),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,n(12),n(109),n(45),n(5),n(42),n(16),n(4),n(23),n(57),n(17);var u=o(n(30)),i=o(n(36)),c=o(n(37)),l=o(n(55)),s=o(n(56)),d=o(n(51)),f=n(186),p=o(n(3)),m=o(n(790)),h=a(n(0)),g=n(52),y=o(n(3701));function v(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,d.default)(e);if(t){var a=(0,d.default)(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return(0,s.default)(this,r)}}var _=function(e){(0,l.default)(n,e);var r=v(n);function n(){var e;(0,i.default)(this,n);for(var t=arguments.length,a=new Array(t),o=0;o0&&void 0!==arguments[0]?arguments[0]:{};a.fetchHostData(e),a.fetchData(e)},a.getParamsLabel=function(e,t){var r=t?"cluster-role.kubesphere.io/host=":"!cluster-role.kubesphere.io/host",n=e.group,a=e.tags,o=void 0===a?[]:a;return n&&(n="cluster.kubesphere.io/group=".concat(n)),o=Array.isArray(o)?o.map((function(e){return"label.cluster.kubesphere.io/".concat(e)})):"cluster.kubesphere.io/group=".concat(o),[n].concat((0,l.default)(o),[r,"!cluster-role.kubesphere.io/edge"]).filter(Boolean).join(",")},a.fetchData=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};a.store.fetchListByUser(U(U({},(0,v.default)(e,"group","tags","__index")),{},{limit:e.limit||10,page:e.page||1,labelSelector:a.getParamsLabel(e,!1)}))},a.fetchHostData=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};a.hostStore.fetchListByUser(U(U({},(0,v.default)(e,"group","tags","__index")),{},{labelSelector:a.getParamsLabel(e,!0),limit:-1}))},a.showAddCluster=function(){a.trigger("cluster.add",{module:"clusters",success:a.routing.push,tagsStore:a.tagsStore,onAddTags:a.showAddTags})},a.handlePagination=function(e){a.fetchData(e)},a.handleRefresh=function(){a.fetchData({page:1})},a.handleSearch=function(e){a.fetchData(e),a.fetchHostData(e)},a.enterCluster=function(){var e=(0,i.default)(u.default.mark((function e(t){return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:a.routing.push("/clusters/".concat(t,"/overview"));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),a.handleBindTags=function(e,t){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],n=a.store.list.data,o=a.state.checked,u=a.hostStore.list.data;a.trigger("cluster.tag.clusterItemTags",{detail:e,defaultValue:t,value:t,success:function(){a.initData(),a.setState({checked:[]})},tagsGroup:a.tagsStore.tagsGroup,store:a.tagsStore,onAddTags:a.showAddTags,tags:r?n.concat(u).filter((function(e){return o.includes(e.name)})):[e]})},a.showAddTags=function(){a.trigger("cluster.tag.add",{success:a.tagsStore.fetchGroupList,store:a.tagsStore})},a.getItemActions=function(e){return[{key:"pen",icon:"pen",text:t("EDIT_INFORMATION"),show:!0,onClick:function(e){a.trigger("resource.baseinfo.edit",{detail:e,modal:A.default,success:a.initData})}},{key:"tag",icon:"add",text:t("ADD_TAGS"),show:"platform-admin"===(0,g.default)(window,"globals.user.globalrole","")||(0,g.default)(window,"globals.user.globalRules.clusters",[]).includes("manage"),onClick:function(e){a.handleBindTags(e,e.tags.map((function(e){return(a.tagsStore.tags||[]).find((function(t){return t.name===e.name}))})).filter(Boolean),!1)}},{key:"edit",icon:"pen",text:t("EDIT_CONFIG"),show:!e.isHost,onClick:function(e){a.trigger("cluster.editConfig",{detail:e,success:a.initData})}},{key:"data",icon:"data",text:t("UPDATE_KUBECONFIG"),show:!e.isHost&&"proxy"!==e.connectionType,onClick:function(e){a.trigger("cluster.updateKubeConfig",{detail:e,success:a.initData})}},{key:"trash",icon:"trash",text:t("REMOVE_CLUSTER"),show:!e.isHost,onClick:function(e){var t;a.trigger("cluster.unbind",{detail:U(U({},e),{},{tags:(null!==(t=e.tags)&&void 0!==t?t:[]).map((function(e){return(a.tagsStore.tags||[]).find((function(t){return t.name===e.name}))})).filter(Boolean)}),success:a.initData})}}].filter((function(e){return e.show}))},a.handleChecked=function(e,t){a.setState((function(r){var n=r.checked;return{checked:t?[].concat((0,l.default)(n),[e]):n.filter((function(t){return t!==e}))}}))},a.handleReset=function(){a.initData(a.state.filters)},a.clearFilter=function(){a.setState({filters:{}}),a.initData()},a.handleSelectAll=function(e){e?a.setState({checked:[].concat((0,l.default)(a.hostStore.list.data.filter((function(e){return e.tags.length<5})).map((function(e){return e.name}))),(0,l.default)(a.store.list.data.filter((function(e){return e.tags.length<5})).map((function(e){return e.name}))))}):a.setState({checked:[]})},a.renderAction=function(){var e,r=a.state,n=r.checked;return r.showCheckbox?(e=0===n.length?{indeterminate:!1,checked:!1}:n.length5,c=u?r.slice(0,5):r;return D.default.createElement("div",{className:L.default.container},this.renderPanelHeader(),D.default.createElement(v.Loading,{spinning:n},D.default.createElement(D.default.Fragment,null,D.default.createElement("div",{className:L.default.header},D.default.createElement(v.Select,{className:L.default.select,value:o,onChange:this.handleChangeSource,options:this.sourceOptions}),D.default.createElement(v.Select,{className:L.default.select,value:this.store.sort_metric,onChange:this.handleChangeMetricType,options:this.options})),D.default.createElement("div",{className:L.default.list,style:{height:i&&!u?"auto":"392px"}},this.renderListItems(c,o),i&&D.default.createElement(v.Button,{className:L.default.fold,icon:u?"chevron-down":"chevron-up",onClick:this.toggleFold},u?t("UNFOLD"):t("FOLD"))),D.default.createElement("div",{className:L.default.more},D.default.createElement(v.Button,{onClick:this.showMoreModal},t("VIEW_MORE"))))))}},{key:"cluster",get:function(){return this.props.cluster}},{key:"options",get:function(){return this.store.sort_metric_options.map((function(e){return{value:e,label:t("SORT_BY_".concat(e.toUpperCase()))}}))}},{key:"sourceOptions",get:function(){return[{label:t("NODES"),value:"node"},{label:t("PODS"),value:"pod"},{label:t("PROJECT_PL"),value:"project"}]}}]),n}(D.Component),c=(0,y.default)(i.prototype,"store",[C.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return this.sourceMap[this.state.sourceType].store}}),u=i))||u;r.default=V},3734:function(e,t,r){e.exports={container:"_2mo2Puhwc8tT6e9PomRdYU",title:"_2WYsLXyHOnbrxXt0OFY1Km",header:"u4rCe6nDLY5vbaq5aXJDQ",select:"_25M1cGJCz3WgAIQhGkQ6JX",list:"RtrNzNpCozOK2jXlZFrPb",listItem:"_3-eBd_RaqO30cf2v7AeZWY",textBox:"_3ODrxke8bqLQHUb7302kOC",text:"_2WxN_xHdXDli_mWcI5oYGV",label:"_3rjIYXMWaltqHcODVaa0ww",noLabel:"_3RSzNTep-_u0G6h5xmtrsE",cpu:"v0DrKUbv1DFqez5KfSlC-",fold:"t2fjcneoLurD1QVIju9nO",more:"_1aPF0hZOOhyo-EPu3G8bIa"}},3735:function(e,r,n){"use strict";var a=n(20),o=n(157);n(12),n(11),n(6),n(87),n(27),n(190),n(9),n(13),n(10),n(4),n(23),n(17),n(7),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,n(12),n(45),n(11),n(6),n(28),n(87),n(42),n(27),n(190),n(34),n(15),n(9),n(13),n(10),n(4),n(22),n(23),n(57),n(17),n(7);var u=a(n(43)),i=a(n(30));n(41);var c,l=a(n(44)),s=a(n(36)),d=a(n(37)),f=a(n(55)),p=a(n(56)),m=a(n(51)),h=n(186),g=a(n(790)),y=a(n(26)),v=n(239),_=o(n(0)),E=a(n(988)),O=n(52),b=n(794),S=a(n(3736));function k(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function C(e){for(var t=1;t0&&void 0!==a[0]?a[0]:{},n=C({last:!0},r),e.next=4,t.apiStore.fetchMetrics(C({metrics:[D.request_latencies_total,D.request_rate]},n));case 4:return e.next=6,t.schedulerStore.fetchMetrics(C({metrics:[D.schedule_attempts_count]},n));case 6:case"end":return e.stop()}}),e)}))),t.getSpecificData=function(e){return((0,y.default)(t.metrics,"".concat(D[e],".data.result"))||[]).reduce((function(e,t){return C(C({},e),{},(0,i.default)({},(0,y.default)(t,"metric.result"),(0,y.default)(t,"value[1]",0)))}),{})};var a=e.cluster;return t.apiStore=new E.default({module:"apiserver",cluster:a}),t.schedulerStore=new E.default({module:"scheduler",cluster:a}),t}return(0,d.default)(n,[{key:"componentDidMount",value:function(){this.fetchData()}},{key:"render",value:function(){var e=this.metrics,r=Number((0,y.default)(e,"".concat(D.request_rate,".data.result[0].value[1]"),0)).toFixed(3),n=(0,b.getValueByUnit)((0,y.default)(e,"".concat(D.request_latencies_total,".data.result[0].value[1]")),"ms"),a=this.getSpecificData("schedule_attempts_count");return _.default.createElement("div",{className:S.default.k8sStatus},_.default.createElement("div",{className:S.default.title},_.default.createElement("p",null,t("KUBERNETES_STATUS"))),_.default.createElement(h.Loading,{spinning:this.schedulerStore.isLoading},_.default.createElement("div",{className:S.default.container},_.default.createElement("div",{className:S.default.level},_.default.createElement(g.default,{title:(0,O.getDomTitle)(t("VALUE_REQUESTS_SECOND",{value:r})),description:t("API_REQUESTS_PER_SECOND")}),_.default.createElement(g.default,{title:(0,O.getDomTitle)("".concat(n," ms")),description:t("API_REQUEST_LATENCY")}),_.default.createElement(g.default,{title:(0,O.getDomTitle)(a.scheduled),description:1===a.scheduled?t("SCHEDULING_OPERATION"):t("SCHEDULING_OPERATIONS")}),_.default.createElement(g.default,{title:(0,O.getDomTitle)(a.unschedulable),description:1===a.unschedulable?t("SCHEDULING_FAILURE"):t("SCHEDULING_FAILURES")})))))}},{key:"metrics",get:function(){var e=this.apiStore.data,t=this.schedulerStore.data;return C(C({},e),t)}}]),n}(_.Component))||c;r.default=A},3736:function(e,t,r){e.exports={k8sStatus:"_165qOBnN9HAs4LrY_LK-d6",title:"_2vFFuGnTwzqjBij8D3BPRc",container:"_20PSSvdZ2gt1lsGGJB4rsS",level:"_2UJuf7ZQGgEclggVm__94Z"}},3737:function(e,r,n){"use strict";n(15);var a=n(20),o=n(157);n(5),n(4),n(316),n(23),n(17),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,n(45),n(5),n(42),n(4),n(316),n(23),n(57),n(17);var u,i,c,l,s=a(n(65)),d=a(n(36)),f=a(n(37)),p=a(n(88)),m=a(n(55)),h=a(n(56)),g=a(n(51)),y=a(n(49)),v=(a(n(66)),o(n(0))),_=n(239),E=a(n(26)),O=n(186),b=a(n(890)),S=n(14),k=n(794),C=a(n(3738)),T=a(n(3741));function D(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,g.default)(e);if(t){var a=(0,g.default)(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return(0,h.default)(this,r)}}var A={cpu_requests:"cluster_pod_cpu_requests_total",cpu_limits:"cluster_pod_cpu_limits_total",cpu_total:"cluster_cpu_total",cpu_requests_non_master:"cluster_pod_cpu_requests_non_master_total",cpu_limits_non_master:"cluster_pod_cpu_limits_non_master_total",cpu_total_non_master:"cluster_cpu_non_master_total",memory_requests:"cluster_pod_memory_requests_total",memorylimits:"cluster_pod_memory_limits_total",memory_total:"cluster_memory_total",memory_requests_non_master:"cluster_pod_memory_requests_non_master_total",memory_limits_non_master:"cluster_pod_memory_limits_non_master_total",memory_total_non_master:"cluster_memory_non_master_total",namespace_cpu_requests:"cluster_namespace_quota_cpu_requests_hard_total",namespace_cpu_limits:"cluster_namespace_quota_cpu_limits_hard_total",namespace_cpu_requests_non_master:"cluster_namespace_quota_cpu_requests_hard_total",namespace_cpu_limits_non_master:"cluster_namespace_quota_cpu_limits_hard_total",namespace_memory_requests:"cluster_namespace_quota_memory_requests_hard_total",namespace_memorylimits:"cluster_namespace_quota_memory_limits_hard_total",namespace_memory_requests_non_master:"cluster_namespace_quota_memory_requests_hard_total",namespace_memorylimits_non_master:"cluster_namespace_quota_memory_limits_hard_total"},N=(0,_.observer)((i=function(e){(0,m.default)(n,e);var r=D(n);function n(){var e;(0,d.default)(this,n);for(var t=arguments.length,a=new Array(t),o=0;o=3.2&&i.splice(2,0,u),i}},{key:"render",value:function(){var e=this.props,t=e.tableProps,r=e.match;return b.default.createElement(v.ListPage,this.props,b.default.createElement(h.default,(0,o.default)({},t,{className:"table-2-6",itemActions:this.itemActions,columns:this.getColumns(),onCreate:this.showCreate,cluster:r.params.cluster,getCheckboxProps:this.getCheckboxProps})))}},{key:"tips",get:function(){return[{title:t("WHAT_IS_STORAGE_CLASS_Q"),description:t("WHAT_IS_STORAGE_CLASS_A")},{title:t("WHAT_IS_LOCAL_VOLUME_Q"),description:t("WHAT_IS_LOCAL_VOLUME_A")}]}},{key:"tabs",get:function(){return{value:"Volume",onChange:this.handleTabChange,options:[{value:"Volume",label:t("PERSISTENT_VOLUME_CLAIM")},{value:"PV",label:t("PV")}]}}},{key:"itemActions",get:function(){var e=this.props,r=e.trigger,n=e.name;return[{key:"edit",icon:"pen",text:t("EDIT_INFORMATION"),action:"edit",show:this.showAction,onClick:function(e){return r("resource.baseinfo.edit",{detail:e})}},{key:"editYaml",icon:"pen",text:t("EDIT_YAML"),action:"edit",show:this.showAction,onClick:function(e){return r("resource.yaml.edit",{detail:e})}},{key:"delete",icon:"trash",text:t("DELETE"),action:"delete",show:this.showAction,onClick:function(e){return r("resource.delete",{type:n,detail:e})}}]}}]),n}(b.default.Component))||i;r.default=P},3766:function(e,t,r){e.exports={mode_title:"g8QlCJy-fQF9buKTjwNsv",question:"U5zHvmvvHdsAuoC5QNq1",pv_content:"_2jBC4N_eKhB_IMAWm0UTuO",yaml:"_345LgwPnsPDsRv68L_cgry"}},3767:function(e,r,n){"use strict";var a=n(20),o=n(157);n(12),n(5),n(11),n(6),n(86),n(73),n(18),n(16),n(9),n(13),n(10),n(4),n(23),n(24),n(17),n(62),n(7),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,n(12),n(45),n(5),n(11),n(6),n(86),n(73),n(18),n(28),n(42),n(16),n(34),n(15),n(9),n(13),n(10),n(4),n(23),n(57),n(24),n(17),n(62),n(7);var u,i=a(n(30)),c=a(n(315)),l=a(n(36)),s=a(n(37)),d=a(n(55)),f=a(n(56)),p=a(n(51)),m=a(n(0)),h=a(n(63)),g=o(n(793)),y=a(n(796)),v=a(n(907)),_=n(52),E=n(186),O=n(434),b=n(72),S=a(n(804)),k=a(n(788)),C=a(n(795)),T=a(n(3768));function D(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function A(e){for(var t=1;t-1},e.getItemDesc=function(e){var t=(0,O.getVolumeStatus)(e);return(0,h.default)(t)?e.storageClassName||"-":m.default.createElement(S.default,{reason:t,data:e,type:"volume"})},e.getCheckboxProps=function(e){return{disabled:e.isFedManaged||["Bound"].indexOf(e.status.phase)>-1,name:e.name}},e.renderAccessTitle=function(){var e=m.default.createElement("div",null,m.default.createElement("div",null,t("RWO_DESC")),m.default.createElement("div",null,t("ROX_DESC")),m.default.createElement("div",null,t("RWX_DESC")));return m.default.createElement("div",{className:T.default.mode_title},t("ACCESS_MODE_TCAP"),m.default.createElement(E.Tooltip,{content:e},m.default.createElement(E.Icon,{name:"question",size:16,className:T.default.question})))},e.mapperAccessMode=function(e){var t=(0,_.map_accessModes)(e);return m.default.createElement("span",null,t.join(","))},e.showCreate=function(){var t=e.props,r=t.match,n=t.module,a=t.getData;(0,t.trigger)("pv.create",{module:n,cluster:r.params.cluster,success:a})},e}return(0,s.default)(n,[{key:"getStatus",value:function(){return b.PV_STATUS.map((function(e){return{text:t(e.text),value:e.value}}))}},{key:"getColumns",value:function(){var e=this,r=this.props,n=r.getSortOrder,a=r.getFilteredValue,o=this.props.match.params.cluster;return[{title:t("NAME"),dataIndex:"name",sortOrder:n("name"),search:!0,sorter:!0,render:function(t,r){return m.default.createElement(k.default,{icon:"storage",iconSize:40,to:"Terminating"===r.phase?"":"/clusters/".concat(o,"/pv/").concat(t),isMultiCluster:r.isFedManaged,desc:e.getItemDesc(r),title:(0,_.getDisplayName)(r)})}},{title:t("STATUS"),dataIndex:"status",isHideable:!0,search:!0,filters:this.getStatus(),filteredValue:a("status"),width:"10.56%",render:function(e){var r=e.phase;return m.default.createElement(C.default,{type:r,name:t("PV_STATUS_".concat(r.toUpperCase()))})}},{title:t("CAPACITY"),dataIndex:"capacity",isHideable:!0,width:"7%",render:function(e){return m.default.createElement("div",null,m.default.createElement("p",null,e))}},{title:this.renderAccessTitle(),dataIndex:"accessModes",isHideable:!1,width:"12.32%",render:function(t){return e.mapperAccessMode(t)}},{title:t("RECLAIM_POLICY"),dataIndex:"_originData",isHideable:!0,width:"7.74%",render:function(e){return e.spec.persistentVolumeReclaimPolicy}},{title:t("CREATION_TIME_TCAP"),dataIndex:"createTime",sorter:!0,sortOrder:n("createTime"),isHideable:!0,width:140,render:function(e){return(0,_.getLocalTime)(e).format("YYYY-MM-DD HH:mm")}}]}},{key:"render",value:function(){var e=this.props,t=e.match,r=e.tableProps;return m.default.createElement(g.ListPage,this.props,m.default.createElement(y.default,(0,c.default)({},r,{itemActions:this.itemActions,tableActions:this.tableActions,columns:this.getColumns(),onCreate:this.showCreate,cluster:t.params.cluster,getCheckboxProps:this.getCheckboxProps,renderProjectSelect:!1,emptyProps:{desc:""}})))}},{key:"itemActions",get:function(){var e=this,r=this.props.trigger;return[{key:"edit",icon:"pen",text:t("EDIT_INFORMATION"),action:"edit",onClick:function(t){return r("resource.baseinfo.edit",{detail:t,success:e.props.getData})}},{key:"editYaml",icon:"pen",text:t("EDIT_YAML"),action:"view",show:this.showAction,onClick:function(t){return r("resource.yaml.edit",{detail:t,success:e.props.getData})}},{key:"delete",icon:"trash",text:t("DELETE"),action:"delete",show:this.showAction,disabled:this.cantDelete,onClick:function(t){return r("pv.delete",A(A({},e.props.tableProps),{},{detail:t,success:e.props.getData}))}}]}},{key:"tableActions",get:function(){var e=this,r=this.props,n=r.trigger;return A(A({},r.tableProps.tableActions),{},{selectActions:[{key:"delete",icon:"trash",text:t("DELETE"),action:"delete",type:"danger",show:this.showAction,onClick:function(){return n("pv.batch.delete",A(A({},e.props.tableProps),{},{success:e.props.getData}))}}]})}}]),n}(m.default.Component))||u;r.default=R},3768:function(e,t,r){e.exports={mode_title:"_2vs_PnSPXebgvBy3nZuegb",question:"_3Y4c2IH7tgyRPkhZQxNA_0",pv_content:"_14XQ8_zmRwCjtgkz04Wzge",yaml:"_2_YhNvXVq70vjV7Tj6V3qY"}},3769:function(e,r,n){"use strict";var a=n(20);n(12),n(5),n(11),n(31),n(6),n(86),n(18),n(97),n(16),n(27),n(9),n(13),n(10),n(4),n(316),n(23),n(24),n(17),n(62),n(7),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,n(12),n(45),n(5),n(11),n(31),n(6),n(86),n(18),n(28),n(97),n(42),n(16),n(27),n(34),n(15),n(9),n(13),n(10),n(4),n(316),n(436),n(22),n(23),n(57),n(24),n(17),n(62),n(7);var o=a(n(315)),u=a(n(43)),i=a(n(30));n(41);var c,l=a(n(44)),s=a(n(36)),d=a(n(37)),f=a(n(55)),p=a(n(56)),m=a(n(51)),h=a(n(0)),g=a(n(63)),y=a(n(26)),v=a(n(158)),_=n(186),E=n(52),O=n(72),b=n(444),S=n(794),k=a(n(856)),C=a(n(973)),T=a(n(1068)),D=n(793),A=a(n(788)),N=a(n(795)),R=a(n(789)),P=a(n(790)),M=a(n(787)),w=a(n(792)),I=a(n(796)),L=n(14),j=a(n(3770));function x(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function U(e){for(var t=1;t=.9&&h.default.createElement(_.Icon,{name:"exclamation"})),description:"".concat(n.cpu_used,"/").concat(n.cpu_total," ").concat(t("CORE_PL"))})}},{title:t("MEMORY_USAGE"),key:"memory",isHideable:!0,render:function(t){var r=e.getRecordMetrics(t,[{type:"memory_used",unit:"Gi"},{type:"memory_total",unit:"Gi"},{type:"memory_utilisation"}]);return h.default.createElement(P.default,{title:h.default.createElement("div",{className:j.default.resource},h.default.createElement("span",null,e.toPercentage(r.memory_utilisation)),r.memory_utilisation>=.9&&h.default.createElement(_.Icon,{name:"exclamation"})),description:"".concat(r.memory_used,"/").concat(r.memory_total," GiB")})}},{title:t("GPU_USAGE"),key:"gpu",isHideable:!0,render:function(t){var r=e.getRecordMetrics(t,[{type:"gpu_used",unit:"Core"},{type:"gpu_total",unit:"Core"},{type:"gpu_utilization"}]);return h.default.createElement(P.default,{title:h.default.createElement("div",{className:j.default.resource},h.default.createElement("span",null,e.toPercentage(r.gpu_utilization)),r.gpu_utilization>=.9&&h.default.createElement(_.Icon,{name:"exclamation"})),description:"".concat(r.gpu_used,"/").concat(r.gpu_total," GPU")})}},{title:t("GPU_MEMORY_USAGE"),key:"gpu_memory",isHideable:!0,render:function(t){var r=e.getRecordMetrics(t,[{type:"gpu_memory_used",unit:"Gi"},{type:"gpu_memory_total",unit:"Gi"},{type:"gpu_memory_utilization"}]);return h.default.createElement(P.default,{title:h.default.createElement("div",{className:j.default.resource},h.default.createElement("span",null,e.toPercentage(r.gpu_memory_utilization)),r.gpu_memory_utilization>=.9&&h.default.createElement(_.Icon,{name:"exclamation"})),description:"".concat(r.gpu_memory_used,"/").concat(r.gpu_memory_total," GiB")})}},{title:t("POD_PL"),key:"pods",isHideable:!0,render:function(t){var r=e.getRecordMetrics(t,[{type:"pod_used"},{type:"pod_total"}]),n=r.pod_total?parseFloat(r.pod_used/r.pod_total):0;return h.default.createElement(P.default,{title:"".concat(e.toPercentage(n)),description:"".concat(r.pod_used,"/").concat(r.pod_total)})}},{title:t("ALLOCATED_CPU"),key:"allocated_resources_cpu",isHideable:!0,render:e.renderCPUTooltip},{title:t("ALLOCATED_MEMORY"),key:"allocated_resources_memory",isHideable:!0,render:e.renderMemoryTooltip}]},e.renderCPUTooltip=function(e){var r=h.default.createElement("p",null,1===(0,E.cpuFormat)((0,y.default)(e,'annotations["node.kubesphere.io/cpu-limits"]'))?t("CPU_LIMIT_SI",{core:(0,E.cpuFormat)((0,y.default)(e,'annotations["node.kubesphere.io/cpu-limits"]')),percent:(0,y.default)(e,'annotations["node.kubesphere.io/cpu-limits-fraction"]')}):t("CPU_LIMIT_PL",{core:(0,E.cpuFormat)((0,y.default)(e,'annotations["node.kubesphere.io/cpu-limits"]')),percent:(0,y.default)(e,'annotations["node.kubesphere.io/cpu-limits-fraction"]')}));return h.default.createElement(_.Tooltip,{content:r,placement:"top"},h.default.createElement(P.default,{title:1===(0,E.cpuFormat)((0,y.default)(e,'annotations["node.kubesphere.io/cpu-requests"]'))?t("CPU_REQUEST_SI",{core:(0,E.cpuFormat)((0,y.default)(e,'annotations["node.kubesphere.io/cpu-requests"]')),percent:(0,y.default)(e,'annotations["node.kubesphere.io/cpu-requests-fraction"]')}):t("CPU_REQUEST_PL",{core:(0,E.cpuFormat)((0,y.default)(e,'annotations["node.kubesphere.io/cpu-requests"]')),percent:(0,y.default)(e,'annotations["node.kubesphere.io/cpu-requests-fraction"]')}),description:t("RESOURCE_REQUEST")}))},e.renderMemoryTooltip=function(e){var r=h.default.createElement("p",null,t("MEMORY_LIMIT_VALUE",{gib:(0,E.memoryFormat)((0,y.default)(e,'annotations["node.kubesphere.io/memory-limits"]'),"Gi"),percent:(0,y.default)(e,'annotations["node.kubesphere.io/memory-limits-fraction"]')}));return h.default.createElement(_.Tooltip,{content:r,placement:"top"},h.default.createElement(P.default,{title:t("MEMORY_REQUEST_VALUE",{gib:(0,E.memoryFormat)((0,y.default)(e,'annotations["node.kubesphere.io/memory-requests"]'),"Gi"),percent:(0,y.default)(e,'annotations["node.kubesphere.io/memory-requests-fraction"]')}),description:t("RESOURCE_REQUEST")}))},e}return(0,d.default)(n,[{key:"componentDidMount",value:function(){this.store.fetchCount(this.props.match.params)}},{key:"toPercentage",value:function(e){var t=(0,v.default)(e)||isNaN(e)?0:Number(e);return"".concat(Math.ceil(100*t),"%")}},{key:"getStatus",value:function(){return O.NODE_STATUS.map((function(e){return{text:t(e.text),value:e.value}}))}},{key:"getRoles",value:function(){return[{text:t("CONTROL_PLANE"),value:"master"},{text:t("WORKER"),value:"worker"}]}},{key:"renderOverview",value:function(){var e=this.store,r=e.masterNum,n=e.list.total;return h.default.createElement(R.default,{className:"margin-b12"},h.default.createElement("div",{className:j.default.overview},h.default.createElement(P.default,{icon:"nodes",title:n,description:1===n?t("NODE_SI"):t("NODE_PL")}),h.default.createElement(P.default,{title:r,description:1===r?t("MASTER_NODE_SI"):t("MASTER_NODE_PL")})))}},{key:"render",value:function(){var e=this.props,r=e.bannerProps,n=e.tableProps,a=this.monitoringStore.isLoading;return h.default.createElement(D.ListPage,(0,o.default)({},this.props,{getData:this.getData,noWatch:!0}),h.default.createElement(w.default,(0,o.default)({},r,{title:t("CLUSTER_NODE_PL"),tips:this.tips})),this.renderOverview(),h.default.createElement(I.default,(0,o.default)({},n,{itemActions:this.itemActions,tableActions:this.tableActions,columns:(0,E.hideGPUByLicense)(this.getColumns(),this.cluster),isLoading:n.isLoading||a})))}},{key:"cluster",get:function(){return this.props.match.params.cluster}},{key:"tips",get:function(){return[{title:t("NODE_TYPES_Q"),description:t("NODE_TYPES_A")},{title:t("WHAT_IS_NODE_TAINTS_Q"),description:t("WHAT_IS_NODE_TAINTS_A")}]}},{key:"itemActions",get:function(){var e=this,r=this.props,n=r.store,a=r.clusterStore,o=r.routing,u=r.trigger,i=r.name;return[{key:"uncordon",icon:"start",text:t("UNCORDON"),action:"edit",show:function(t){return"success"===t.importStatus&&e.getUnschedulable(t)},onClick:function(e){return n.uncordon(e).then(o.query)}},{key:"cordon",icon:"stop",text:t("CORDON"),action:"edit",show:function(t){return"success"===t.importStatus&&!e.getUnschedulable(t)},onClick:function(e){return n.cordon(e).then(o.query)}},{key:"terminal",icon:"terminal",text:t("OPEN_TERMINAL"),action:"edit",show:function(t){return"success"===t.importStatus&&e.getReady(t)},onClick:function(t){return e.handleOpenTerminal(t)}},{key:"logs",icon:"eye",text:t("VIEW_LOG"),action:"edit",show:function(e){return"success"!==e.importStatus},onClick:function(){return u("node.add.log",{detail:(0,L.toJS)(a.detail)})}},{key:"delete",icon:"trash",text:t("DELETE"),action:"delete",show:function(e){return"failed"===e.importStatus},onClick:function(e){return u("resource.delete",{type:i,detail:e,success:o.query})}}]}},{key:"tableActions",get:function(){var e=this.props,r=e.trigger,n=e.routing,a=e.clusterStore,o=e.tableProps,u=[];return a.detail.kkName&&u.push({key:"add",type:"control",text:t("ADD"),action:"create",onClick:function(){return r("node.add",{kkName:a.detail.kkName||"ddd"})}}),U(U({},o.tableActions),{},{actions:u,selectActions:[{key:"taint",type:"default",text:t("EDIT_TAINTS"),action:"edit",onClick:function(){return r("node.taint.batch",{success:n.query})}}]})}}]),n}(h.default.Component))||c;r.default=Y},3770:function(e,t,r){e.exports={taints:"B4t1khP3gUFICAah4YTP5",overview:"_39TiTBliLeivJdhXYoDplZ",resource:"_1f_DIoH3TOaX8dMUSn7UMb",unAuthord:"_29VjReB-cl3AzGmel2f8Vq"}},3771:function(e,r,n){"use strict";var a=n(20);n(12),n(5),n(11),n(6),n(73),n(18),n(97),n(16),n(9),n(13),n(10),n(4),n(23),n(24),n(17),n(62),n(64),n(7),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,n(12),n(45),n(5),n(11),n(6),n(73),n(18),n(28),n(97),n(42),n(16),n(34),n(15),n(9),n(13),n(10),n(4),n(22),n(23),n(57),n(24),n(17),n(62),n(64),n(7);var o=a(n(315)),u=a(n(43)),i=a(n(30));n(41);var c,l=a(n(44)),s=a(n(36)),d=a(n(37)),f=a(n(55)),p=a(n(56)),m=a(n(51)),h=a(n(0)),g=a(n(63)),y=a(n(26)),v=n(186),_=n(52),E=n(72),O=n(444),b=a(n(1175)),S=a(n(973)),k=a(n(1068)),C=n(793),T=a(n(788)),D=a(n(795)),A=a(n(790)),N=a(n(787)),R=a(n(792)),P=a(n(796)),M=a(n(874)),w=n(14),I=a(n(3772));function L(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function j(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:"";e.props.store.switch(t,r,n).then((function(){e.props.routing.query()}))},e.getItemDesc=function(r){var n=(0,S.getWorkloadStatus)(r,e.props.module),a=n.status,o=n.reason;return o?v.default.createElement(y.default,{status:a,reason:t(o),data:r}):r.description||"-"},e.getColumns=function(){var r=e.props,n=r.getSortOrder,a=r.getFilteredValue,o=r.module,u=e.props.match.params.cluster;return[{title:t("NAME"),dataIndex:"name",sorter:!0,sortOrder:n("name"),search:!0,render:function(t,r){return v.default.createElement(p.default,{icon:b.ICON_TYPES[o],iconSize:40,title:(0,O.getDisplayName)(r),desc:e.getItemDesc(r),to:"/clusters/".concat(u,"/projects/").concat(r.namespace,"/").concat(o,"/").concat(t)})}},{title:t("STATUS"),dataIndex:"status",filters:e.getStatus(),filteredValue:a("status"),isHideable:!0,search:!0,width:"15%",render:function(e,r){var n=(0,S.getWorkloadStatus)(r,o).status;return v.default.createElement(m.default,{type:n,name:t("CRONJOB_".concat(n.toUpperCase()))})}},{title:t("PROJECT"),dataIndex:"namespace",isHideable:!0,width:"18%",render:function(e){return v.default.createElement(_.Link,{to:"/clusters/".concat(u,"/projects/").concat(e)},(0,O.showNameAndAlias)(e,"project"))}},{title:t("SCHEDULE"),dataIndex:"spec.schedule",isHideable:!0,width:"15%"},{title:t("CREATION_TIME_TCAP"),dataIndex:"createTime",sorter:!0,sortOrder:n("createTime"),isHideable:!0,width:150,render:function(e){return(0,O.getLocalTime)(e).format("YYYY-MM-DD HH:mm:ss")}}]},e.showCreate=function(){var t,r,n=e.props,a=n.query,o=n.match,u=n.module,i=null===(t=globals.clusterConfig)||void 0===t||null===(r=t[o.params.cluster])||void 0===r?void 0:r.k8sVersion;return e.props.trigger("workload.create",{module:u,namespace:a.namespace,cluster:o.params.cluster,k8sVersion:i,success:function(){return e.props.routing.query()},rootStore:e.props.rootStore})},e}return(0,c.default)(n,[{key:"getStatus",value:function(){return b.CRONJOB_STATUS.map((function(e){return{text:t(e.text),value:e.value}}))}},{key:"render",value:function(){var e=this.props,t=e.match,r=e.bannerProps,n=e.tableProps;return v.default.createElement(g.ListPage,this.props,v.default.createElement(h.default,(0,u.default)({},r,{tabs:this.tabs})),v.default.createElement(f.default,(0,u.default)({},n,{itemActions:this.itemActions,columns:this.getColumns(),onCreate:this.showCreate,cluster:t.params.cluster})))}},{key:"tabs",get:function(){return{value:this.props.module,onChange:this.handleTabChange,options:[{value:"jobs",label:t("JOB_PL")},{value:"cronjobs",label:t("CRONJOB_PL")}]}}},{key:"itemActions",get:function(){var e=this,r=this.props,n=r.trigger,a=r.name;return[{key:"edit",icon:"pen",text:t("EDIT_INFORMATION"),action:"edit",onClick:function(t){var r,a,o=null===(r=globals.clusterConfig)||void 0===r||null===(a=r[null==t?void 0:t.cluster])||void 0===a?void 0:a.k8sVersion;n("resource.baseinfo.edit",{detail:t,k8sVersion:o,success:function(){return e.props.routing.query()}})}},{key:"editYaml",icon:"pen",text:t("EDIT_YAML"),action:"edit",onClick:function(t){var r,a,o=null===(r=globals.clusterConfig)||void 0===r||null===(a=r[null==t?void 0:t.cluster])||void 0===a?void 0:a.k8sVersion;n("resource.yaml.edit",{detail:t,k8sVersion:o,success:function(){return e.props.routing.query()}})}},{show:function(e){return e.suspend},key:"start",icon:"start",text:t("START"),action:"edit",onClick:function(t){var r,n,a=null===(r=globals.clusterConfig)||void 0===r||null===(n=r[null==t?void 0:t.cluster])||void 0===n?void 0:n.k8sVersion;e.handleSwitch(t,!0,a)}},{show:function(e){return!e.suspend},key:"pause",icon:"stop",text:t("PAUSE"),action:"edit",onClick:function(t){var r,n,a=null===(r=globals.clusterConfig)||void 0===r||null===(n=r[null==t?void 0:t.cluster])||void 0===n?void 0:n.k8sVersion;e.handleSwitch(t,!1,a)}},{key:"delete",icon:"trash",text:t("DELETE"),action:"delete",onClick:function(t){var r,o,u=null===(r=globals.clusterConfig)||void 0===r||null===(o=r[null==t?void 0:t.cluster])||void 0===o?void 0:o.k8sVersion;n("resource.delete",{type:a,detail:t,k8sVersion:u,success:function(){return e.props.routing.query()}})}}]}}]),n}(v.default.Component))||o,D=(0,k.inject)()((function(e){var t,r,n=e.match.params.cluster,a=null===(t=globals.clusterConfig)||void 0===t||null===(r=t[n])||void 0===r?void 0:r.k8sVersion;return v.default.createElement(T,(0,u.default)({k8sVersion:a},e))}));r.default=D},3783:function(e,r,n){"use strict";n(15);var a=n(20);n(5),n(18),n(16),n(4),n(23),n(24),n(17),n(62),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,n(45),n(5),n(18),n(42),n(16),n(4),n(23),n(57),n(24),n(17),n(62);var o,u=a(n(315)),i=a(n(36)),c=a(n(37)),l=a(n(55)),s=a(n(56)),d=a(n(51)),f=a(n(0)),p=n(433),m=n(186),h=a(n(839)),g=a(n(792)),y=n(793),v=a(n(804)),_=a(n(810)),E=n(52),O=n(72),b=a(n(452)),S=a(n(936)),k=a(n(3784));function C(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,d.default)(e);if(t){var a=(0,d.default)(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return(0,s.default)(this,r)}}var T=(0,y.withClusterList)({store:new b.default,module:"pods",name:"POD",rowKey:"uid"})(o=(0,S.default)(["event"])(o=function(e){(0,l.default)(n,e);var r=C(n);function n(){var e;(0,i.default)(this,n);for(var a=arguments.length,o=new Array(a),u=0;u1?t("LOAD_BALANCERS_SCAP"):t("LOAD_BALANCER_SCAP"),r.title=e.loadBalancerIngress.join("; ")),e.externalName?E.default.createElement(g.default,{description:r.des,title:function(){return E.default.createElement(p.Tooltip,{content:e.externalName},E.default.createElement("span",null,r.title))}}):E.default.createElement(g.default,{description:t("".concat(r.des)),title:r.title})},e.getColumns=function(){var r=e.props,n=r.getSortOrder,a=r.module,o=e.props.match.params.cluster;return[{title:t("NAME"),dataIndex:"name",sorter:!0,sortOrder:n("name"),search:!0,width:"20%",render:function(e,t){return E.default.createElement(h.default,{icon:k.ICON_TYPES[a],iconSize:40,title:(0,S.getDisplayName)(t),desc:t.description||"-",isMultiCluster:t.isFedManaged,to:"/clusters/".concat(o,"/projects/").concat(t.namespace,"/").concat(a,"/").concat(e)})}},{title:t("PROJECT"),dataIndex:"namespace",isHideable:!0,width:"15%",render:function(e){return E.default.createElement(O.Link,{to:"/clusters/".concat(o,"/projects/").concat(e)},(0,S.showNameAndAlias)(e,"project"))}},{title:t("INTERNAL_ACCESS"),dataIndex:'annotations["kubesphere.io/serviceType"]',isHideable:!0,width:"15%",render:function(e,r){return E.default.createElement(g.default,{title:r.clusterIP||"",description:t("".concat(r.type))})}},{title:t("EXTERNAL_ACCESS"),dataIndex:"specType",isHideable:!0,width:"20%",render:function(t,r){return e.renderExternalService(r)}},{title:t("CREATION_TIME_TCAP"),dataIndex:"createTime",sorter:!0,sortOrder:n("createTime"),isHideable:!0,width:"10%",render:function(e){return(0,S.getLocalTime)(e).format("YYYY-MM-DD HH:mm:ss")}}]},e.showCreate=function(){var t=e.props,r=t.query,n=t.match,a=t.module,o=t.getData;return e.props.trigger("service.simple.create",{module:a,namespace:r.namespace,cluster:n.params.cluster,success:o})},e}return(0,l.default)(n,[{key:"render",value:function(){var e=this.props,t=e.match,r=e.bannerProps,n=e.tableProps;return E.default.createElement(v.ListPage,this.props,E.default.createElement(y.default,r),E.default.createElement(m.default,(0,i.default)({},n,{itemActions:this.itemActions,selectActions:this.selectActions,columns:this.getColumns(),onCreate:this.showCreate,cluster:t.params.cluster,getCheckboxProps:this.getCheckboxProps})))}},{key:"itemActions",get:function(){var e=this,r=this.props,n=r.trigger,a=r.name;return[{key:"edit",icon:"pen",text:t("EDIT_INFORMATION"),action:"edit",show:this.showAction,onClick:function(e){return n("resource.baseinfo.edit",{detail:e})}},{key:"editYaml",icon:"pen",text:t("EDIT_YAML"),action:"edit",show:this.showAction,onClick:function(e){return n("resource.yaml.edit",{detail:e})}},{key:"editService",icon:"network-router",text:t("EDIT_SERVICE"),action:"edit",show:this.showAction,onClick:function(e){return n("service.edit",{detail:e})}},{key:"editGateway",icon:"ip",text:t("EDIT_EXTERNAL_ACCESS"),action:"edit",show:function(t){return e.showAction(t)&&t.type===k.SERVICE_TYPES.VirtualIP},onClick:function(e){return n("service.gateway.edit",{detail:e})}},{key:"delete",icon:"trash",text:t("DELETE"),action:"delete",show:this.showAction,onClick:function(e){return n("service.delete",{type:a,detail:e})}}]}},{key:"selectActions",get:function(){var e=this.props,r=e.tableProps,n=e.trigger,a=e.name;return(0,u.default)((0,_.default)(r,"tableActions.selectActions",{})).filter((function(e){return"delete"!==e.key})).concat([{key:"delete",type:"danger",text:t("DELETE"),action:"delete",onClick:function(){n("service.batch.delete",{type:a,rowKey:"uid"})}}])}}]),n}(E.default.Component))||o;r.default=T},3786:function(e,r,n){"use strict";n(15);var a=n(20);n(12),n(109),n(5),n(73),n(16),n(4),n(23),n(24),n(17),n(62),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,n(12),n(109),n(45),n(5),n(73),n(42),n(16),n(4),n(23),n(57),n(24),n(17),n(62);var o,u=a(n(315)),i=a(n(36)),c=a(n(37)),l=a(n(55)),s=a(n(56)),d=a(n(51)),f=a(n(810)),p=a(n(788)),m=a(n(792)),h=n(793),g=a(n(0)),y=n(433),v=a(n(917)),_=n(52),E=n(72);function O(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,d.default)(e);if(t){var a=(0,d.default)(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return(0,s.default)(this,r)}}var b=(0,h.withClusterList)({store:new v.default,module:"ingresses",name:"ROUTE",rowKey:"uid"})(o=function(e){(0,l.default)(n,e);var r=O(n);function n(){var e;(0,i.default)(this,n);for(var a=arguments.length,o=new Array(a),u=0;u0&&void 0!==arguments[0]?arguments[0]:{};return"kapis/gateway.kubesphere.io/v1alpha2".concat(e.getPath(t),"/").concat(e.module)},e.getFilterParams=function(e){var t=E({},e);return t.uniqueDomainPattern&&(t.fieldSelector="spec.uniqueDomainPattern=".concat(t.uniqueDomainPattern),delete t.uniqueDomainPattern),t.name&&(t.fieldSelector="metadata.name=".concat(t.name),delete t.name),t},e}return(0,d.default)(n,[{key:"checkName",value:function(e,t){return request.get(this.getResourceUrl(e),this.getFilterParams(t),{headers:{"x-check-exist":!0}})}},{key:"fetchList",value:(t=(0,c.default)(a.default.mark((function e(){var t,r,n,i,c,l,s,d,f,p,m=this,h=arguments;return a.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=h.length>0&&void 0!==h[0]?h[0]:{},r=t.cluster,n=t.workspace,i=t.namespace,c=t.more,l=t.devops,s=(0,u.default)(t,["cluster","workspace","namespace","more","devops"]),this.list.isLoading=!0,s.sortBy||void 0!==s.ascending||(s.sortBy=v.LIST_DEFAULT_ORDER[this.module]||"createTime"),s.limit!==1/0&&-1!==s.limit||(s.page=1),s.limit=s.limit||10,s.page=s.page||1,e.next=8,request.get(this.getResourceUrl({cluster:r,workspace:n,namespace:i,devops:l}),this.getFilterParams(s));case 8:return d=e.sent,f=((0,g.default)(d,"items")||[]).map((function(e){return E(E({cluster:r,namespace:i},e),m.mapper(e))})),p=1===Number(s.page)?f.length+(d.metadata.remainingItemCount||0):this.list.total,this.list.update(E(E({data:c?[].concat((0,o.default)(this.list.data),(0,o.default)(f)):f,total:p},s),{},{limit:Number(s.limit)||10,page:Number(s.page)||1,isLoading:!1},this.list.silent?{}:{selectedRowKeys:[]})),e.abrupt("return",f);case 13:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})}]),n}(n(r(68)).default),(0,h.default)(i.prototype,"checkName",[y.action],Object.getOwnPropertyDescriptor(i.prototype,"checkName"),i.prototype),(0,h.default)(i.prototype,"fetchList",[y.action],Object.getOwnPropertyDescriptor(i.prototype,"fetchList"),i.prototype),i);t.default=b},3790:function(e,t,r){e.exports={panel:"FyXk2dppIa5i82ApkI1Ql",routesSetting:"_3UOnCQ8P2oZzf_eNyRK1IA",table:"_228gCjzBUQV2Q4vU2rUrfl"}},3791:function(e,r,n){"use strict";n(15);var a=n(20);n(12),n(109),n(5),n(16),n(10),n(4),n(23),n(24),n(17),n(62),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,n(12),n(109),n(45),n(5),n(42),n(16),n(10),n(4),n(23),n(57),n(24),n(17),n(62);var o,u=a(n(315)),i=a(n(36)),c=a(n(37)),l=a(n(55)),s=a(n(56)),d=a(n(51)),f=a(n(810)),p=a(n(788)),m=n(793),h=a(n(0)),g=n(433),y=a(n(851)),v=n(52),_=n(72),E=a(n(3792));function O(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,d.default)(e);if(t){var a=(0,d.default)(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return(0,s.default)(this,r)}}var b=(0,m.withClusterList)({store:new y.default,module:"secrets",name:"SECRET",rowKey:"uid"})(o=function(e){(0,l.default)(n,e);var r=O(n);function n(){var e;(0,i.default)(this,n);for(var a=arguments.length,o=new Array(a),u=0;u0&&void 0!==arguments[0]?arguments[0]:{};t.monitorStore.fetchMetrics(C({metrics:Object.values(D),step:"60m",times:100},e))},t.monitorStore=new _.default({cluster:e.match.params.cluster}),t.fetchData(),t}return(0,l.default)(n,[{key:"renderChart",value:function(){var e=(0,v.getAreaChartOps)({title:"PROJECT_COUNT",unit:"",legend:["PROJECT_COUNT"],data:(0,y.default)(this.metrics,"".concat(D.namespace_count,".data.result"))});return(0,g.default)(e.data)?null:p.default.createElement(b.SimpleArea,(0,u.default)({width:"100%",bgColor:"transparent"},e))}},{key:"render",value:function(){var e=this.monitorStore,r=e.isLoading,n=e.isRefreshing,a=(0,g.default)(this.metrics);return p.default.createElement(E.Loading,{spinning:r},p.default.createElement(O.default,{className:(0,h.default)(S.default.card,(0,i.default)({},S.default.empty,a)),refreshing:n,empty:t("NO_MONITORING_DATA")},this.renderChart()))}},{key:"metrics",get:function(){return this.monitorStore.data}}]),n}(p.default.Component))||o)||o;r.default=A},3835:function(e,t,r){e.exports={card:"wwlsDBiAjm0q1bmRNgj6o",empty:"_1ad28rokzs4wIzr9i7erxd"}},3836:function(e,t,r){"use strict";r(15);var n=r(20);r(4),r(23),r(24),r(17),r(62),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r(45),r(42),r(4),r(23),r(57),r(24),r(17),r(62);var a=n(r(36)),o=n(r(37)),u=n(r(55)),i=n(r(56)),c=n(r(51)),l=n(r(0)),s=n(r(3837)),d=n(r(3839));function f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,c.default)(e);if(t){var a=(0,c.default)(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return(0,i.default)(this,r)}}var p=function(e){(0,u.default)(r,e);var t=f(r);function r(){return(0,a.default)(this,r),t.apply(this,arguments)}return(0,o.default)(r,[{key:"render",value:function(){return l.default.createElement("div",{className:d.default.wrapper},l.default.createElement(s.default,{cluster:this.props.match.params.cluster}))}}]),r}(l.default.Component);t.default=p},3837:function(e,r,n){"use strict";n(15);var a=n(20);n(18),n(4),n(23),n(17),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,n(45),n(18),n(42),n(4),n(23),n(57),n(17);var o,u=a(n(36)),i=a(n(37)),c=a(n(55)),l=a(n(56)),s=a(n(51)),d=a(n(0)),f=n(239),p=a(n(3)),m=a(n(886)),h=n(186),g=a(n(1130)),y=n(52),v=a(n(1814)),_=a(n(3838));function E(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,s.default)(e);if(t){var a=(0,s.default)(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return(0,l.default)(this,r)}}var O=["namespace_cpu_usage","namespace_memory_usage_wo_cache","namespace_gpu_usage","namespace_gpu_memory_usage","namespace_pod_count","namespace_net_bytes_received","namespace_net_bytes_transmitted"],b=(0,f.observer)(o=function(e){(0,c.default)(n,e);var r=E(n);function n(e){var t;return(0,u.default)(this,n),(t=r.call(this,e)).download=function(){t.store.download("project.usage.rank.json")},t.store=new g.default({limit:10,sort_type:"desc",cluster:e.cluster,sort_metric_options:(0,y.hideGPUByLicense)(O,e.cluster)}),t}return(0,i.default)(n,[{key:"componentDidMount",value:function(){this.store.fetchAll()}},{key:"render",value:function(){return d.default.createElement("div",{className:_.default.wrapper},this.renderToolbar(),this.renderList())}},{key:"renderToolbar",value:function(){var e=this;return d.default.createElement("div",{className:(0,p.default)(_.default.toolbar,_.default.pane__toolbar,_.default.pane)},d.default.createElement("div",{className:_.default.toolbar_filter},d.default.createElement(h.Select,{value:this.store.sort_metric,onChange:this.store.changeSortMetric,options:this.options}),d.default.createElement("span",{className:_.default.sort_button},d.default.createElement(h.Icon,{name:"desc"===this.store.sort_type?"sort-descending":"sort-ascending",type:"coloured",size:"small",onClick:function(){return e.store.changeSortType()}}))),d.default.createElement("div",{className:_.default.toolbar_buttons},d.default.createElement(h.Button,{onClick:this.download},t("EXPORT"))))}},{key:"renderList",value:function(){return d.default.createElement(h.Loading,{spinning:this.store.isLoading},d.default.createElement("div",null,d.default.createElement(v.default,{cluster:this.props.cluster,store:this.store}),this.renderPagination()))}},{key:"renderPagination",value:function(){var e=this.store,t=e.page,r=e.total,n=e.limit;return d.default.createElement("div",{className:(0,p.default)(_.default.pane,_.default.pane__pagination)},d.default.createElement(m.default,{page:t,total:r,limit:n,onChange:this.store.changePagination}))}},{key:"options",get:function(){return this.store.sort_metric_options.map((function(e){return{value:e,label:t("SORT_BY_".concat(e.toUpperCase()))}}))}}]),n}(d.default.Component))||o;r.default=b},3838:function(e,t,r){e.exports={wrapper:"_1CmVFNd0G-zs9E1iHfdivR",pane:"_3Xxq0iOcg5rPC1z0QX4VcZ",pane__toolbar:"_2PEZlO8QdUlfOW_Gg2bFho",pane__pagination:"_3tB6nH6MnNdOJ_hACtTFVh",title:"_3WzAR13ip4gsV70FVDKTdJ",toolbar:"_3QzlZPN09RgS4Y67QlJd09",toolbar_buttons:"_2HATCZlaUbpt610R3YC6_p",toolbar_filter:"_3d9XJJFMH1N7n4BKj6Mkwu",sort_button:"Zm30W-XpLeAnhkrxGKaXD",table:"_1zke06m-W2VOKXFYSeau6f",table_rank:"_2fmtCI2sslMwd4fyo_vmK3",table_no_border:"_1QODthKAirf_FppmVzGK2r",rankList_row:"_36FQnaParFo539EUHrLM3j",rankLink__sort_col:"_1tK0CngMzBLJehA_bn8nmS"}},3839:function(e,t,r){e.exports={wrapper:"wa7tMIrleTBU3e6ZCinRa",pane:"TOMVoOzgz8bnMGaXhMj6v",tabs:"_1XJp5HqlcLBB0vE-AP9V6C",selected:"Bgy3xm4otfT4hHjzR2om-"}},3840:function(e,r,n){"use strict";var a=n(20),o=n(157);n(12),n(5),n(11),n(6),n(16),n(9),n(13),n(10),n(4),n(23),n(24),n(17),n(62),n(7),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,n(12),n(45),n(5),n(11),n(6),n(28),n(42),n(16),n(34),n(15),n(9),n(13),n(10),n(4),n(23),n(57),n(24),n(17),n(62),n(7);var u,i=a(n(315)),c=a(n(30)),l=a(n(36)),s=a(n(37)),d=a(n(55)),f=a(n(56)),p=a(n(51)),m=a(n(0)),h=n(14),g=a(n(788)),y=a(n(795)),v=a(n(792)),_=o(n(793)),E=a(n(796)),O=n(52),b=a(n(322)),S=a(n(441));function k(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function C(e){for(var t=1;t1?E.default.createElement(A.default,{className:D.default.manage,content:r}):t.length>0&&E.default.createElement(f.Button,{className:D.default.singleButton,onClick:function(){return t[0].onClick()}},t[0].text)},e}return(0,i.default)(n,[{key:"componentDidMount",value:function(){this.store.detail.isReady&&this.fetchData(),this.fetchTagGroupList()}},{key:"render",value:function(){var e=this,r=this.store.detail,n=r.provider,a=r.kubernetesVersion,u=r.tags,i=this.getResourceOptions();return E.default.createElement(E.default.Fragment,null,E.default.createElement(g.default,{icon:"cluster",title:t("BASIC_INFORMATION"),description:t("CLUSTER_BASE_INFO_DESC")}),E.default.createElement(m.default,{title:t("CLUSTER_INFORMATION")},E.default.createElement("div",{className:D.default.header},E.default.createElement(h.default,{icon:C.CLUSTER_PROVIDER_ICON[n]||"kubernetes",title:(0,S.getDomTitle)((0,S.getDisplayNameNew)(this.store.detail)),description:t("CLUSTER"),ellipsis:!0}),n&&E.default.createElement(h.default,{title:n,description:t("PROVIDER")}),E.default.createElement(h.default,{title:a||this.store.version,description:t("KUBERNETES_VERSION")}),this.editPromission&&this.renderManageButton()),E.default.createElement("div",{className:D.default.content},i.map((function(e){return E.default.createElement(h.default,{key:e.name,icon:e.icon,title:e.value,description:t(e.name)})})))),E.default.createElement(m.default,{title:t("CLUSTER_TAGS")},u.length>0&&E.default.createElement("div",{className:D.default.tags},u.map((function(t){var r=(e.tagsStore.tags||[]).find((function(e){return e.name===t.name}));return r?E.default.createElement(y.ClusterTagItem,(0,o.default)({},r,{key:r.name})):null})))))}},{key:"store",get:function(){return this.props.clusterStore}},{key:"enabledActions",get:function(){return globals.app.getActions({module:"cluster-settings",cluster:this.props.match.params.cluster})}},{key:"editPromission",get:function(){var e;return null===(e=globals.user.globalRules.clusters)||void 0===e?void 0:e.includes("manage")}},{key:"enableManageAction",get:function(){var e=this.store.detail,r=e.isHost,n=void 0!==r&&r,a="proxy"===e.connectionType,o=this.enabledActions,u=[];return o.includes("edit")&&globals.app.isMultiCluster&&u.push({actionName:"resource.baseinfo.edit",onClick:this.showEdit,icon:"pen",text:t("EDIT_INFORMATION")}),("platform-admin"===(0,v.default)(window,"globals.user.globalrole","")||(0,v.default)(window,"globals.user.globalRules.clusters",[]).includes("manage"))&&u.push({actionName:"cluster.tag.clusterItemTags",onClick:this.showTags,icon:"add",text:t("ADD_TAGS")}),globals.app.isMultiCluster&&!n&&!a&&o.includes("edit")&&u.push({actionName:"cluster.update.kubeconfig",icon:"data",text:t("UPDATE_KUBECONFIG"),onClick:this.updateKubeConfig}),globals.app.isMultiCluster&&o.includes("delete")&&!this.store.detail.isHost&&u.push({actionName:"cluster.unbind",onClick:this.handleUnbind,icon:"trash",text:t("REMOVE_CLUSTER")}),u}}]),n}(E.default.Component))||d)||d)||d;r.default=P},3843:function(e,t,r){e.exports={header:"_2SXq6W7Y5arA1V8ydx3x9k",content:"_3zCn6ZnEb1mjwR_f5JXgA",tip:"lIqFeO0ppH8_MxJdLUlTw",unbind:"_3-xB7xj9NBxURt-nM9E8YT",manage:"_12M4oLKObAdKFXEoaa5wxj",singleButton:"_1HEVP9zq3sERwI9RlCnfHB",tags:"_2ep7i_I3q4CFYM8VacKRGZ"}},3845:function(e,r,n){"use strict";var a=n(20);n(12),n(109),n(5),n(11),n(6),n(84),n(16),n(9),n(13),n(10),n(4),n(23),n(24),n(17),n(85),n(62),n(7),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,n(12),n(109),n(45),n(5),n(11),n(6),n(84),n(28),n(42),n(16),n(34),n(15),n(9),n(13),n(10),n(4),n(22),n(23),n(57),n(24),n(17),n(85),n(62),n(7);var o=a(n(43));n(41);var u,i=a(n(44)),c=a(n(30)),l=a(n(36)),s=a(n(37)),d=a(n(55)),f=a(n(56)),p=a(n(51)),m=n(186),h=a(n(788)),g=a(n(789)),y=a(n(790)),v=a(n(792)),_=a(n(873)),E=a(n(26)),O=n(14),b=n(239),S=a(n(0)),k=a(n(445)),C=n(52),T=n(791),D=a(n(3846));function A(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function N(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:"namespacenetworkpolicies";return(0,d.default)(this,n),e=r.call(this,t),(0,s.default)(e,"list",c,(0,p.default)(e)),e.getResourceUrl=function(t){return"/kapis/networking.k8s.io/v1".concat(e.getPath(t),"/").concat(e.module)},e}return(0,f.default)(n,[{key:"fetchList",value:(t=(0,l.default)(a.default.mark((function e(){var t,r,n,o,i,c,l,s,d,f,p,m,h=this,g=arguments;return a.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=g.length>0&&void 0!==g[0]?g[0]:{},o=n.cluster,i=n.namespace,c=n.page,l=void 0===c?this.list.page:c,s=(0,u.default)(n,["cluster","namespace","page"]),this.list.isLoading=!0,d=s,f=s.name,d.limit?this.list.limit=d.limit:d.limit=this.list.limit,(null===(t=this.list)||void 0===t||null===(r=t.continues)||void 0===r?void 0:r[l])?d.continue=this.list.continues[l]:this.list.continues={1:""},d.page=l,e.next=9,request.get(this.getResourceUrl({cluster:o,namespace:i}),d);case 9:return p=e.sent,m=p.items.map((function(e){return O({cluster:o,namespace:i},h.mapper(e))})),this.list.continues[Number(l)+1]=p.metadata.continue||"",1===Number(l)&&(this.list.total=m.length+(p.metadata.remainingItemCount||0)),f&&(this.list.filters={name:f}),(0,_.extendObservable)(this.list,{data:m,page:Number(l),name:f}),this.list.isLoading=!1,e.abrupt("return",this.list);case 17:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})}]),n}(v.default),c=(0,y.default)(i.prototype,"list",[_.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{data:[],page:1,limit:10,total:0,continues:{1:""},isLoading:!0}}}),(0,y.default)(i.prototype,"fetchList",[_.action],Object.getOwnPropertyDescriptor(i.prototype,"fetchList"),i.prototype),i);t.default=S},3850:function(e,r,n){"use strict";n(6),n(28),n(34),n(15),n(9),n(13),n(10),n(7);var a=n(20),o=n(157);n(12),n(109),n(5),n(11),n(48),n(16),n(27),n(4),n(23),n(24),n(17),n(62),n(188),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,n(12),n(109),n(45),n(5),n(11),n(48),n(42),n(16),n(27),n(4),n(23),n(57),n(24),n(17),n(62),n(188);var u,i=a(n(30)),c=a(n(315)),l=a(n(36)),s=a(n(37)),d=a(n(55)),f=a(n(56)),p=a(n(51)),m=n(186),h=a(n(788)),g=a(n(801)),y=a(n(795)),v=a(n(790)),_=a(n(240)),E=a(n(792)),O=o(n(793)),b=a(n(796)),S=a(n(26)),k=a(n(74)),C=a(n(0)),T=a(n(1316)),D=n(52),A=n(72),N=n(434),R=n(244),P=n(239),M=n(14),w=a(n(3851));function I(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function L(e){for(var t=1;t1&&e.rootStore.routing.query(L(L({},r),{},{page:1}))}),[o]),C.default.createElement(x,(0,c.default)({store:a},e))}));r.default=U},3851:function(e,t,r){e.exports={upload:"_2_3IPi65_G0tYI4auyS45R"}},3852:function(e,r,n){"use strict";n(15);var a=n(20),o=n(157);n(5),n(11),n(84),n(18),n(16),n(9),n(4),n(23),n(24),n(17),n(85),n(62),n(64),n(136),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,n(45),n(5),n(11),n(84),n(18),n(28),n(42),n(16),n(9),n(4),n(22),n(23),n(57),n(24),n(17),n(85),n(62),n(64);var u=a(n(43)),i=a(n(30));n(41);var c,l,s=a(n(44)),d=a(n(36)),f=a(n(37)),p=a(n(55)),m=a(n(56)),h=a(n(51)),g=a(n(49)),y=a(n(0)),v=n(239),_=n(14),E=a(n(3)),O=a(n(26)),b=a(n(135)),S=a(n(1152)),k=a(n(250)),C=n(440),T=n(894),D=n(433),A=n(186),N=a(n(790)),R=a(n(789)),P=a(n(792)),M=a(n(3853)),w=a(n(851)),I=n(52),L=o(n(1403)),j=a(n(3858));function x(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,h.default)(e);if(t){var a=(0,h.default)(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return(0,m.default)(this,r)}}var U=(0,v.inject)("rootStore")(c=(0,v.observer)((l=function(e){(0,p.default)(n,e);var r=x(n);function n(){var e;(0,d.default)(this,n);for(var t=arguments.length,a=new Array(t),o=0;o0&&void 0!==arguments[0]?arguments[0]:{};t.store.fetchList(P(P({},e),{},{limit:10}))},t.handleTabChange=function(){t.routing.push("/clusters")},t.showAddTags=function(){t.trigger("cluster.tag.add",{module:"clusters",success:t.routing.query,store:t.store})},t.store=t.props.store,t.clusterStore=new _.default,t}return(0,l.default)(n,[{key:"getColumns",value:function(){var e=this.props.getSortOrder;return[{title:t("CLUSTER_TAG"),dataIndex:"id",isHideable:!0,render:function(e,t){return m.createElement("div",{className:(0,C.default)(N.default.clusterTagItem)},m.createElement("div",{className:N.default.label},t.label),m.createElement("div",{className:N.default.value},t.value))}},{title:t("CLUSTER"),dataIndex:"clusters",isHideable:!0,render:function(e){return e.length}},{title:t("CREATION_TIME_TCAP"),dataIndex:"createTime",sorter:!0,sortOrder:e("createTime"),isHideable:!0,width:200,render:function(e){return e?(0,T.getLocalTime)(e).format("YYYY-MM-DD HH:mm:ss"):"-"}}]}},{key:"componentDidMount",value:function(){this.initData()}},{key:"renderList",value:function(){var e=this.store.list,r=e.filters,n=e.isLoading,a=e.data,o=e.page,i=this.props.tableProps;return!(0,E.default)(a)||n||!(0,E.default)(r)||1!==o&&o?m.createElement(k.default,(0,u.default)({},i,{data:a,loading:n,enabledActions:w()?["edit","bind","hasBundled","delete","create"]:(0,O.default)(window,"globals.user.globalRules.clusters",[]).includes("manage")?["view","bind","hasBundled"]:["view"],itemActions:this.itemActions,rowKey:"name",tableActions:this.tableActions,columns:this.getColumns(),onCreate:this.showAddTags,searchType:"name"})):m.createElement(S.default,{icon:"tags-duotone",title:t("NO_CLUSTER_TAGS"),desc:t("NO_CLUSTER_TAGS_DESC"),actions:w()?m.createElement(b.Button,{type:"control",onClick:this.showAddTags},t("CREATE")):null})}},{key:"render",value:function(){return m.createElement("div",{className:N.default.wrapper},m.createElement(D.ListPage,this.props,m.createElement(y.default,{className:N.default.banner,icon:"cluster",title:t("CLUSTER_MANAGEMENT"),description:t("CLUSTER_DESC"),tabs:this.tabs}),this.renderList()))}},{key:"authKey",get:function(){return"clusters"}},{key:"routing",get:function(){return this.props.rootStore.routing}},{key:"tableActions",get:function(){var e=this;return P(P({},this.props.tableProps.tableActions),{},{selectActions:[{key:"delete",type:"danger",text:t("DELETE"),action:"delete",onClick:function(){e.trigger("cluster.tag.delete",{type:e.name,detail:e.store.list.data.filter((function(t){return e.store.list.selectedRowKeys.includes(t.name)})),success:e.routing.query})}}]})}},{key:"tabs",get:function(){return{value:"tags",onChange:this.handleTabChange,options:[{value:"clusters",label:t("CLUSTER_PL")},{value:"tags",label:t("CLUSTER_TAGS")}]}}},{key:"itemActions",get:function(){var e=this;return[{key:"edit",icon:"pen",text:t("EDIT"),action:"edit",onClick:function(t){return e.trigger("cluster.tag.edit",{name:t.name,detail:[{key:t.label,value:t.value}],store:e.store,success:e.routing.query})}},{key:"bind",icon:"link",action:"bind",text:t("ADD_TO_CLUSTERS"),onClick:function(t){e.trigger("cluster.tag.bind",{detail:t,getList:e.clusterStore.fetchAllCluster,success:e.routing.query})}},{key:"hasBundled",icon:"eye",text:t("REMOVE_FROM_CLUSTERS"),action:"hasBundled",disabled:function(e){var t;return!(null==e||null===(t=e.clusters)||void 0===t?void 0:t.length)},onClick:function(t){e.trigger("cluster.tag.hasBundled",{detail:t,getList:e.clusterStore.fetchAllCluster,success:e.routing.query})}},{key:"delete",icon:"trash",text:t("DELETE"),action:"delete",onClick:function(t){return e.trigger("cluster.tag.delete",{type:e.name,resource:t.name,detail:t,success:e.routing.query})}}]}}]),n}(m.Component))||p)||p)||p)||p)||p;r.default=I},3867:function(e,t,r){e.exports={banner:"_8MR_jkuxX3BO24ISjg65o",wrapper:"_2_LExZycdD34qPtVII-cl-",clusterTagItem:"_2-621emWvGyt67MEm5v4NS",label:"_1R5k1j8Y_KUzpUHIoj_sqP",value:"Qtmr8FVzhABs8l5KJ_nvB",loading:"_2pXZ8G1tXWMPRfWtv8hzmv"}},3868:function(e,t,r){"use strict";r(15);var n=r(20);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=n(r(1217)),o=n(r(1411)),u=n(r(1222)),i=n(r(1223)),c=n(r(1225)),l=n(r(1226)),s=n(r(1228)),d=n(r(1413)),f=n(r(1414)),p=n(r(1415)),m=n(r(1229)),h=n(r(1230)),g=n(r(1843)),y=n(r(1231)),v=n(r(1418)),_=r(1846),E=n(r(3977)),O=n(r(3981)),b=n(r(1848)),S=n(r(3990)),k=n(r(3991)),C=n(r(4003)),T=n(r(4013)),D=n(r(4035)),A=n(r(4039)),N=n(r(4042)),R=n(r(4046)),P=n(r(4051)),M=n(r(4056)),w=n(r(1235)),I="/clusters/:cluster",L=[{path:"".concat(I,"/nodes/:node"),component:k.default},{path:"".concat(I,"/edgenodes/:node"),component:C.default},{path:"".concat(I,"/customresources/:name"),component:N.default},{path:"".concat(I,"/roles/:name"),component:R.default},{path:["".concat(I,"/alert-rules/builtin/:name"),"".concat(I,"/alert-rules/:name")],component:_.ClusterAlertPolicyDetail},{path:"".concat(I,"/log-collections/:component/:name"),component:P.default},{path:"".concat(I,"/components/:namespace/:name"),component:A.default},{path:"".concat(I,"/gateways/:component/:gatewayName"),component:w.default},{path:"".concat(I,"/storageclasses/:name"),component:D.default},{path:"".concat(I,"/ippools/:name"),component:M.default},{path:"".concat(I,"/pv/:name"),component:b.default},{path:"".concat(I,"/volume-snapshot-content/:name"),component:E.default},{path:"".concat(I,"/volume-snapshot-classes/:name"),component:O.default},{path:"".concat(I,"/projects/:namespace"),component:S.default,routes:[{path:"".concat(I,"/projects/:namespace/deployments/:name"),component:a.default},{path:"".concat(I,"/projects/:namespace/statefulsets/:name"),component:o.default},{path:"".concat(I,"/projects/:namespace/daemonsets/:name"),component:u.default},{path:"".concat(I,"/projects/:namespace/jobs/:name"),component:i.default},{path:"".concat(I,"/projects/:namespace/cronjobs/:name"),component:c.default},{path:"".concat(I,"/projects/:namespace/services/:name"),component:l.default},{path:"".concat(I,"/projects/:namespace/ingresses/:name"),component:s.default},{path:"".concat(I,"/projects/:namespace/secrets/:name"),component:d.default},{path:"".concat(I,"/projects/:namespace/configmaps/:name"),component:f.default},{path:"".concat(I,"/projects/:namespace/serviceaccounts/:name"),component:p.default},{path:"".concat(I,"/projects/:namespace/pods/:podName/containers/:containerName"),component:h.default},{path:"".concat(I,"/projects/:namespace/pods/:podName"),component:m.default},{path:"".concat(I,"/projects/:namespace/volume-snapshots/:name"),component:v.default},{path:"".concat(I,"/projects/:namespace/volumes/:name"),component:y.default},{path:"".concat(I,"/projects/:namespace/networkpolicies/:name"),component:g.default},{path:"".concat(I,"/projects/:namespace"),component:T.default}]}];t.default=L},3977:function(e,r,n){"use strict";n(15);var a=n(20);n(12),n(109),n(5),n(16),n(4),n(23),n(24),n(17),n(62),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,n(12),n(109),n(45),n(5),n(28),n(42),n(16),n(4),n(22),n(23),n(57),n(24),n(17),n(62);var o=a(n(315)),u=a(n(43));n(41);var i,c=a(n(44)),l=a(n(36)),s=a(n(37)),d=a(n(55)),f=a(n(56)),p=a(n(51)),m=a(n(0)),h=a(n(63)),g=n(239),y=n(186),v=a(n(795)),_=n(52),E=n(791),O=a(n(1213)),b=a(n(805)),S=n(471),k=a(n(3978));function C(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,p.default)(e);if(t){var a=(0,p.default)(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return(0,f.default)(this,r)}}var T=(0,g.inject)("rootStore")(i=(0,g.observer)(i=(0,E.trigger)(i=function(e){(0,d.default)(n,e);var r=C(n);function n(){var e;(0,l.default)(this,n);for(var a=arguments.length,o=new Array(a),i=0;i0&&void 0!==arguments[0]?arguments[0]:{},t=a.store.detail,r=t.cluster,n=t.name;e.keyword&&(e.name=e.keyword,delete e.keyword),a.volumeSnapshotStore.fetchList(b({volumeSnapshotClassName:n,cluster:r},e))},a.getColumns=function(){return[{title:t("NAME"),dataIndex:"name",render:function(e,t){return f.default.createElement(g.default,{icon:"snapshot",iconSize:40,title:(0,m.getDisplayName)(t),to:"/clusters/".concat(t.cluster,"/projects/").concat(t.namespace,"/volume-snapshots/").concat(e),desc:t.snapshotClassName,noLink:!0})}},{title:t("STATUS"),dataIndex:"backupStatus",width:"20.5%",render:function(e,r){return f.default.createElement(v.default,{type:r.readyToUse?"ready":"failed",name:r.readyToUse?t("READY"):t("UNREADY")})}},{title:t("CAPACITY"),dataIndex:"restoreSize",width:"20.5%",render:function(e){return e}},{title:t("CREATION_TIME_TCAP"),dataIndex:"createTime",width:"20.5%",render:function(e){return(0,m.getLocalTime)(e).format("YYYY-MM-DD HH:mm:ss")}}]},a.volumeSnapshotStore=e.volumeSnapshotStore||new h.default,a}return(0,c.default)(n,[{key:"componentDidMount",value:function(){this.handleFetch()}},{key:"render",value:function(){var e=this.volumeSnapshotStore.list,r=e.data,n=e.filters,a=e.isLoading,o={total:e.total,page:e.page,limit:e.limit};return f.default.createElement(y.default,{title:t("VOLUME_SNAPSHOT_PL"),loading:a,empty:t("NO_AVAILABLE_RESOURCE_VALUE",{resource:t("VOLUME_SNAPSHOT")}),className:E.default.noPadding},f.default.createElement(_.default,{className:E.default.table,data:r,columns:this.getColumns(),searchType:"name",keyword:n.name,filters:n,placeholder:t("SEARCH_BY_NAME"),pagination:o,isLoading:a,onFetch:this.handleFetch}))}},{key:"store",get:function(){return this.props.detailStore}},{key:"storageClassName",get:function(){return this.store.detail.name}}]),n}(f.default.Component))||o)||o;r.default=k},3984:function(e,t,r){e.exports={noPadding:"_160nVM5I48EClrJRzVwIZM"}},3990:function(e,t,r){"use strict";r(15);var n=r(20),a=r(157);r(29),r(4),r(22),r(23),r(24),r(17),r(38),r(62),r(32),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r(45),r(29),r(42),r(4),r(22),r(23),r(57),r(24),r(17),r(38),r(62),r(32);var o=n(r(43));r(41);var u,i=n(r(44)),c=n(r(36)),l=n(r(37)),s=n(r(55)),d=n(r(56)),f=n(r(51)),p=a(r(0)),m=r(239),h=r(186),g=r(317),y=n(r(439));function v(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,f.default)(e);if(t){var a=(0,f.default)(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return(0,d.default)(this,r)}}var _=(0,m.inject)("rootStore")(u=(0,m.observer)(u=function(e){(0,s.default)(n,e);var t,r=v(n);function n(e){var t;return(0,c.default)(this,n),(t=r.call(this,e)).store=new y.default,t.init(e.match.params),t}return(0,l.default)(n,[{key:"init",value:(t=(0,i.default)(o.default.mark((function e(t){return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.store.initializing=!0,e.next=3,Promise.all([this.store.fetchDetail(t),this.props.rootStore.getRules(t)]);case 3:this.store.initializing=!1;case 4:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})},{key:"render",value:function(){return this.store.initializing?p.default.createElement(h.Loading,{className:"ks-page-loading"}):p.default.createElement(m.Provider,{projectStore:this.store},(0,g.renderRoutes)(this.props.route.routes))}},{key:"project",get:function(){return this.props.match.params.namespace}}]),n}(p.Component))||u)||u;t.default=_},3991:function(e,r,n){"use strict";n(15);var a=n(20);n(12),n(109),n(5),n(86),n(16),n(4),n(23),n(24),n(17),n(62),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,n(12),n(109),n(45),n(5),n(86),n(42),n(16),n(4),n(23),n(57),n(24),n(17),n(62);var o,u=a(n(315)),i=a(n(36)),c=a(n(37)),l=a(n(55)),s=a(n(56)),d=a(n(51)),f=a(n(0)),p=n(14),m=n(239),h=a(n(26)),g=a(n(63)),y=n(186),v=n(52),_=n(444),E=n(791),O=a(n(856)),b=a(n(823)),S=a(n(795)),k=a(n(3992));function C(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,d.default)(e);if(t){var a=(0,d.default)(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return(0,s.default)(this,r)}}var T=(0,m.inject)("rootStore")(o=(0,m.observer)(o=(0,E.trigger)(o=function(e){(0,l.default)(n,e);var r=C(n);function n(){var e;(0,i.default)(this,n);for(var a=arguments.length,o=new Array(a),u=0;u=0;return[{key:"editYaml",type:"default",text:t("EDIT_YAML"),action:"edit",onClick:function(){return e.trigger("resource.yaml.edit",{detail:(0,D.toJS)(e.store.detail),readOnly:!1,success:e.fetchData})}},{key:"setDefault",icon:"pen",text:t("SET_AS_DEFAULT_STORAGE_CLASS"),action:"edit",onClick:function(){return e.trigger("storageclass.set.default",{detail:(0,D.toJS)(e.store.detail),cluster:n,defaultStorageClass:e.defaultStorageClass.name,success:e.fetchData})}},{key:"accessor",icon:function(){return E.default.createElement(E.default.Fragment,null,E.default.createElement("img",{src:"/assets/storageclass-tree.svg",style:{width:"16px",marginRight:"12px"}}))},text:t("SET_AUTHORIZATION_RULES"),action:"edit",show:a&&globals.app.hasKSModule("storage-utils"),onClick:(r=(0,d.default)(u.default.mark((function t(){return u.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.checkAccessorExist();case 2:e.trigger("storageclass.accessor",{storageClassName:(0,O.default)(e.store.detail,"name"),shouldAddCrd:e.state.shouldAddCrd,store:e.accessorStore,detail:(0,D.toJS)(e.accessorStore.detail),cluster:n,success:e.fetchData});case 3:case"end":return t.stop()}}),t)}))),function(){return r.apply(this,arguments)})},{key:"funcManage",icon:"slider",text:t("SET_VOLUME_OPERATIONS"),action:"edit",onClick:function(){return e.trigger("storageclass.volume.function.update",{detail:(0,D.toJS)(e.store.detail),StorageClassStore:e.store,success:e.fetchData})}},{key:"autoResizer",icon:function(){return E.default.createElement(E.default.Fragment,null,E.default.createElement("img",{src:"/assets/storageclass_autoresizer.svg",style:{width:"16px",marginRight:"12px"}}))},text:t("SET_AUTO_EXPANSION"),action:"edit",disabled:!a||!(0,O.default)((0,D.toJS)(e.store.detail),"allowVolumeExpansion",!1),show:globals.app.hasKSModule("storage-utils"),onClick:function(){return e.trigger("storageclass.pvc.autoresizer",{detail:(0,D.toJS)(e.store.detail),StorageClassStore:e.store,success:e.fetchData})}},{key:"delete",icon:"trash",text:t("DELETE"),action:"delete",type:"danger",onClick:function(){return e.trigger("storageclass.delete",{type:e.name,detail:(0,D.toJS)(e.store.detail),accessorStore:e.accessorStore,cluster:n,success:e.returnTolist})}}]},e.getAttrs=function(){var r,n,a=e.store.detail,o=void 0===a?{}:a;return(0,b.default)(o)?null:[{name:t("storageclasses"),value:t(null!==(r=null===(n=L.storageClasses.find((function(e){return e.value===o.storagetype})))||void 0===n?void 0:n.label)&&void 0!==r?r:L.storageClasses[3].label)},{name:t("PROVISIONER"),value:o.provisioner},{name:t("DEFAULT_STORAGE_CLASS"),value:o.default?t("YES"):"-"},{name:t("ALLOW_VOLUME_EXPANSION"),value:o.allowVolumeExpansion?t("TRUE"):t("FALSE")},{name:t("RECLAIM_POLICY"),value:o.reclaimPolicy},{name:t("ALLOW_VOLUME_SNAPSHOT"),value:o.supportSnapshot?t("TRUE"):t("FALSE")}]},e.returnTolist=function(){e.props.rootStore.routing.push(e.listUrl)},e}return(0,m.default)(n,[{key:"componentDidMount",value:function(){var e=this.props.match.params.cluster;this.store.fetchList({limit:-1,cluster:e}),this.fetchData()}},{key:"render",value:function(){var e={detailStore:this.store};if(this.store.isLoading&&!this.store.detail.name)return E.default.createElement(k.Loading,{className:"ks-page-loading"});var r={module:this.module,name:(0,C.getDisplayName)(this.store.detail),desc:this.store.detail.description,operations:this.getOperations(),attrs:this.getAttrs(),breadcrumbs:[{label:t("STORAGE_CLASS_PL"),url:this.listUrl}]};return E.default.createElement(w.default,(0,o.default)({stores:e,routes:I.default},r))}},{key:"defaultStorageClass",get:function(){return(0,D.toJS)(this.store.list).data.find((function(e){return e.default}))||{}}},{key:"name",get:function(){return"STORAGE_CLASS"}},{key:"module",get:function(){return"storageclasses"}},{key:"listUrl",get:function(){var e=this.props.match.params.cluster;return"/clusters/".concat(e,"/storageclasses")}}]),n}(E.default.Component),s=(0,_.default)(l.prototype,"ksVersion",[D.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),l),V=(0,S.inject)("rootStore")((0,S.observer)((0,T.trigger)(z)));r.default=V;var Y=z;r.Component=Y},4036:function(e,t,r){"use strict";r(15);var n=r(20);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=r(317),o=n(r(4037)),u="/clusters/:cluster/storageclasses/:name",i=[{name:"volumes",path:"".concat(u,"/volumes"),title:"PERSISTENT_VOLUME_CLAIM_PL",component:o.default},(0,a.getIndexRoute)({path:u,to:"".concat(u,"/volumes"),exact:!0}),(0,a.getIndexRoute)({path:"*",to:"/404",exact:!0})];t.default=i},4037:function(e,r,n){"use strict";var a=n(20);n(12),n(11),n(6),n(18),n(16),n(9),n(13),n(10),n(4),n(23),n(17),n(7),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,n(12),n(45),n(11),n(6),n(18),n(28),n(42),n(16),n(34),n(15),n(9),n(13),n(10),n(4),n(23),n(57),n(17),n(7);var o,u=a(n(30)),i=a(n(36)),c=a(n(37)),l=a(n(55)),s=a(n(56)),d=a(n(51)),f=a(n(0)),p=n(239),m=n(52),h=a(n(831)),g=a(n(26)),y=n(186),v=a(n(789)),_=a(n(788)),E=a(n(801)),O=a(n(795)),b=a(n(873)),S=a(n(1131)),k=a(n(3)),C=a(n(4038));function T(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function D(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=a.store.detail,r=t.cluster,n=t.name;e.keyword&&(e.name=e.keyword,delete e.keyword),a.volumeStore.fetchList(D({storageClassName:n,cluster:r},e))},a.getColumns=function(){return[{title:t("NAME"),dataIndex:"name",render:function(e,t){return f.default.createElement(_.default,{icon:"storage",title:(0,m.getDisplayName)(t),noLink:!0})}},{title:t("STATUS"),dataIndex:"phase",width:"13%",render:function(e){return f.default.createElement(O.default,{type:e,name:t("VOLUME_STATUS_".concat(e.toUpperCase()))})}},{title:t("CAPACITY"),dataIndex:"capacity",width:"13%",render:function(e){return e||"-"}},{title:t("MOUNT_STATUS"),dataIndex:"inUse",width:"13%",render:function(e,t){return f.default.createElement(S.default,{namespace:t.namespace,cluster:t.cluster,name:t.name})}},{title:t("PROJECT"),dataIndex:"namespace",key:"namespace",width:"13%",customizable:!0,render:function(e){return(0,m.showNameAndAlias)(e,"project")}},{title:t("CREATION_TIME_TCAP"),dataIndex:"createTime",width:"21%",render:function(e){return(0,m.getLocalTime)(e).format("YYYY-MM-DD HH:mm:ss")}}]},a.renderResizeItem=function(e){var t=e.src,r=e.title,n=e.des,a=e.iconName,o=e.key;return f.default.createElement("div",{key:o,className:(0,k.default)(C.default.item,C.default.item_bg)},a?f.default.createElement(y.Icon,{name:a,size:40}):f.default.createElement("img",{src:t,className:C.default.icon}),f.default.createElement("div",null,f.default.createElement("span",{className:C.default.title},r),f.default.createElement("span",{className:C.default.des},n)))},a.renderResize=function(){var e=a.props.detailStore.detail.annotations,r=JSON.parse((0,g.default)(e,"resize.kubesphere.io/enabled","false")),n=JSON.parse((0,g.default)(e,"restart.kubesphere.io/enabled","false")),o=(0,g.default)(e,"resize.kubesphere.io/storage-limit","10000Gi"),u=(0,g.default)(e,"resize.kubesphere.io/threshold","10%"),i=(0,g.default)(e,"resize.kubesphere.io/increase","10%"),c=(0,g.default)(e,"restart.kubesphere.io/max-time","300"),l={title:t("VALUE_TIMEOUT",{value:c}),iconName:"history-duotone",des:t("RESTART_WORKLOAD_AUTOMATICALLY")},s=[{iconName:"storage",title:o,des:t("MAXIMUM_SIZE_SCAP")},{src:"/assets/chart.svg",title:u,des:t("THRESHOLD")},{iconName:"stretch",title:i,des:t("INCREMENT")}];return n&&s.push(l),r&&globals.app.hasKSModule("storage-utils")&&f.default.createElement(v.default,null,f.default.createElement("div",{className:(0,k.default)(C.default.item,C.default.top)},f.default.createElement("img",{src:"/assets/storageclass_autoresizer.svg",className:C.default.icon}),f.default.createElement("div",null,f.default.createElement("span",{className:C.default.title},t("AUTO_EXPANSION")),f.default.createElement("span",{className:C.default.des},t("AUTO_EXPANSION_DESC")))),f.default.createElement("div",{className:C.default.bottom},s.map((function(e,t){return a.renderResizeItem(D(D({},e),{},{key:t}))}))))},a.volumeStore=e.volumeStore||new h.default,a}return(0,c.default)(n,[{key:"componentDidMount",value:function(){this.handleFetch()}},{key:"render",value:function(){var e=this.volumeStore.list,r=e.data,n=e.filters,a=e.isLoading,o={total:e.total,page:e.page,limit:e.limit};return f.default.createElement(f.default.Fragment,null,this.renderResize(),f.default.createElement(E.default,{title:t("PERSISTENT_VOLUME_CLAIM_PL"),loading:a,empty:t("NO_AVAILABLE_RESOURCE_VALUE",{resource:t("PERSISTENT_VOLUME_CLAIM")})},f.default.createElement(b.default,{className:C.default.table,data:r,columns:this.getColumns(),searchType:"name",keyword:n.name,filters:n,placeholder:t("SEARCH_BY_NAME"),pagination:o,isLoading:a,onFetch:this.handleFetch})))}},{key:"store",get:function(){return this.props.detailStore}},{key:"storageClassName",get:function(){return this.store.detail.name}}]),n}(f.default.Component))||o)||o;r.default=N},4038:function(e,t,r){e.exports={table:"_2kjHtHOfFmm6itggAkoQAL",top:"_5cglYSZWbQvrCmvoMyqxP",item:"_21kLc98uyqQuBRc4Q-dyhM",icon:"_1vTN6gl6PThH5CifVSvUo6",title:"_1QIhBOEC_Y-VZV4BPZvjdr",des:"_3NV29u5T-Tku0Cp7CeL7d",bottom:"z1wHL-lLdkBj_ZwzB6voh",item_bg:"_2TzaGW5k734_6hWUzqgCSv"}},4039:function(e,r,n){"use strict";n(15);var a=n(20);n(12),n(109),n(5),n(16),n(4),n(23),n(24),n(17),n(62),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,n(12),n(109),n(45),n(5),n(42),n(16),n(4),n(23),n(57),n(24),n(17),n(62);var o,u=a(n(315)),i=a(n(36)),c=a(n(37)),l=a(n(55)),s=a(n(56)),d=a(n(51)),f=a(n(0)),p=n(239),m=n(186),h=n(52),g=n(434),y=a(n(1807)),v=a(n(795)),_=a(n(823)),E=a(n(4040));function O(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,d.default)(e);if(t){var a=(0,d.default)(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return(0,s.default)(this,r)}}var b=(0,p.inject)("rootStore")(o=(0,p.observer)(o=function(e){(0,l.default)(n,e);var r=O(n);function n(){var e;(0,i.default)(this,n);for(var a=arguments.length,o=new Array(a),u=0;u0&&void 0!==arguments[0]?arguments[0]:{},r=e.props.cluster;return t.name&&(t.nameAndAlias=t.name,delete t.name),e.projectStore.fetchList(S(S({cluster:r},t),{},{limit:-1}))},e.handleOk=function(){var t=e.props.onOk,r=e.state.namespace,n=e.projectStore.list.data.find((function(e){return e.name===r}));t&&(null==t||t(n))},e.projectStore=new y.default,e.state={namespace:""},e}return(0,s.default)(n,[{key:"componentDidMount",value:function(){this.fetchProjects()}},{key:"getProjects",value:function(){var e=this.props.defaultValue,t=this.projectStore.list.data,r=t.filter((function(e){return"Terminating"!==e.status})).map((function(e){return{label:(0,_.showNameAndAlias)(e),value:e.name,disabled:e.isFedManaged,isFedManaged:e.isFedManaged}}));return e&&!t.find((function(t){return t.name===e}))&&r.unshift({label:e,value:e}),r}},{key:"render",value:function(){var e=this.props.onCancel,r=this.state.namespace;return m.default.createElement("div",{className:(0,h.default)(O.default.item)},m.default.createElement(g.Select,{options:this.getProjects(),isLoading:this.projectStore.list.isLoading,onChange:this.handleChange,defaultValue:r}),m.default.createElement("div",{className:O.default.operate},m.default.createElement(g.Button,{type:"control",onClick:this.handleOk},t("OK")),m.default.createElement(g.Button,{onClick:e},t("CANCEL"))))}}]),n}(m.default.Component),u.propTypes={onOk:v.default.func,onCancel:v.default.func},o=i))||o;r.default=C},4068:function(e,t,r){e.exports={item:"_3BPuVvwzk_ge6XiLGhcP6v",operate:"HrIC05qaTJCYxqZGeOZP8"}},4069:function(e,t,r){e.exports={panel:"_2yziRuevY1NN2X0AGAnWlQ",titleWrapper:"MbTA39N9Zn2UUDj-GAUOV",title:"_3Kgi3PGvirCbjpoBiX0lZa"}},4070:function(e,t,r){"use strict";r(15);var n=r(20);r(5),r(4),r(23),r(24),r(17),r(62),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r(45),r(5),r(42),r(4),r(23),r(57),r(24),r(17),r(62);var a,o=n(r(36)),u=n(r(37)),i=n(r(55)),c=n(r(56)),l=n(r(51)),s=n(r(0)),d=r(239),f=n(r(849));function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,l.default)(e);if(t){var a=(0,l.default)(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return(0,c.default)(this,r)}}var m=(0,d.inject)("detailStore")(a=(0,d.observer)(a=function(e){(0,i.default)(r,e);var t=p(r);function r(){var e;(0,o.default)(this,r);for(var n=arguments.length,a=new Array(n),u=0;u0?e.setState({showConfirm:!0}):e.handleConfirm()}))},e.handleConfirm=function(){var t=e.props.onOk,r=e.state,n=r.addWorkspaces,a=r.deleteWorkspaces;t({public:r.isPublic,addWorkspaces:n,deleteWorkspaces:a})},e.hideConfirm=function(){e.setState({showConfirm:!1})},e.handleSearch=function(t){e.fetchWorkspaces({nameAndAlias:t})},e.fetchWorkspaces=function(t){e.workspaceStore.fetchList(C(C({},t),{},{labelSelector:"!cluster-role.kubesphere.io/edge",limit:-1})).then((function(){e.setState({allWorkspaces:(0,_.toJS)(e.workspaceStore.list.data)})}))},e.fetchAuthoredWorkspaces=function(t){var r=e.props.cluster,n=void 0===r?{}:r;e.authoredWorkspaceStore.fetchList(C(C({},t),{},{limit:-1,cluster:n.name})).then((function(){e.setState({authoredWorkspaces:(0,o.default)((0,_.toJS)(e.authoredWorkspaceStore.list.data))})}))},e.handleWorkspaceAuth=function(t){e.setState((function(e){var r=e.authoredWorkspaces;return{authoredWorkspaces:[].concat((0,o.default)(r),[t])}}))},e.handleWorkspaceUnAuth=function(t){var r=e.state.allWorkspaces;e.setState((function(e){var n=e.authoredWorkspaces,a=r.filter((function(e){return e.name===t.name}));return(0,y.default)(a)&&r.push(t),{authoredWorkspaces:n.filter((function(e){return e.name!==t.name})),allWorkspaces:r,showUnAuthTip:!0}}))},e.handlePublicChange=function(t){e.setState({isPublic:t})},e}return(0,c.default)(n,[{key:"componentDidMount",value:function(){this.fetchWorkspaces(),this.fetchAuthoredWorkspaces()}},{key:"render",value:function(){var e=this,r=this.props,n=r.visible,a=r.onCancel,o=this.state,u=o.allWorkspaces,i=o.authoredWorkspaces,c=o.showUnAuthTip,l=o.isPublic,s=o.showConfirm,d=o.deleteWorkspaces,g=d.map((function(e){return e.name})).join(", "),y=1===d.length?t.html("REMOVE_WORKSPACE_CONFIRM_SI",{resource:g}):t.html("REMOVE_WORKSPACE_CONFIRM_PL",{resource:g});return E.default.createElement(p.default,{visible:n,onCancel:a,onOk:this.handleOk,width:960,icon:"key",title:t("EDIT_VISIBILITY"),description:t("EDIT_VISIBILITY_DESC")},!c&&E.default.createElement(f.Alert,{className:"margin-b12",type:"warning",message:t("HOST_CLUSTER_VISIBILITY_WARNING")}),c&&E.default.createElement(f.Alert,{className:"margin-b12",type:"error",message:t("CLUSTER_VISIBILITY_REMOVE_WARNING")}),E.default.createElement("div",{className:b.default.wrapper},E.default.createElement(f.Columns,null,E.default.createElement(f.Column,{className:"is-half"},E.default.createElement("div",{className:b.default.title},t("UNAUTHORIZED")),E.default.createElement("div",{className:b.default.content},E.default.createElement("div",{className:b.default.search},E.default.createElement(h.default,{placeholder:t("SEARCH_BY_NAME"),columns:this.columns,onChange:function(t){e.setState({filters:t}),e.fetchWorkspaces(t)},filters:this.state.filters})),E.default.createElement("div",{className:b.default.list},u.map((function(t){return E.default.createElement(S.default,{key:t.name,data:t,type:"all",onClick:e.handleWorkspaceAuth,disabled:i.find((function(e){return e.name===t.name}))})}))),E.default.createElement("div",{className:b.default.footer},globals.user.globalRules.clusters.includes("manage")&&E.default.createElement(E.default.Fragment,null,E.default.createElement(f.Toggle,{checked:l,onChange:this.handlePublicChange}),E.default.createElement("span",null,t("SET_PUBLIC_CLUSTER")),E.default.createElement(f.Tooltip,{content:t("CLUSTER_VISIBILITY_A2")},E.default.createElement(f.Icon,{name:"information"})))))),E.default.createElement(f.Column,{className:"is-half"},E.default.createElement("div",{className:b.default.title},t("AUTHORIZED")),E.default.createElement("div",{className:b.default.content},E.default.createElement("div",{className:b.default.authedList},i.map((function(t){return E.default.createElement(S.default,{key:t.name,data:t,type:"authed",onClick:e.handleWorkspaceUnAuth})}))),E.default.createElement("div",{className:b.default.footer}))))),E.default.createElement(m.default,{visible:s,onOk:this.handleConfirm,onCancel:this.hideConfirm,resource:g,title:t("REMOVE_WORKSPACE_CONFIRM_TITLE"),desc:y}))}},{key:"columns",get:function(){return[{dataIndex:"name",title:t("NAME"),search:!0},{dataIndex:"alias",title:t("ALIAS"),search:!0}]}}]),n}(E.default.Component);r.default=D},3699:function(e,t,r){e.exports={wrapper:"_1SbLbTFQFqcmexUmc7grjB",title:"_2JIUF6KDW0q8OuRAbzwbFy",content:"_3KsLjWUYDHjA6iBRaPIyOv",search:"qlBBKXQBG5hybwbhVbU-r",list:"_2McNE4ZD_UKTIxC59RzC6L",authedList:"_33baKvp6rG0kolft8ThzKb",footer:"rKEIrcFvmBNM5P5SjduSX"}},3700:function(e,r,n){"use strict";n(15);var a=n(157),o=n(20);n(12),n(109),n(5),n(16),n(4),n(23),n(17),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,n(12),n(109),n(45),n(5),n(42),n(16),n(4),n(23),n(57),n(17);var u=o(n(30)),i=o(n(36)),c=o(n(37)),l=o(n(55)),s=o(n(56)),d=o(n(51)),f=n(186),p=o(n(3)),m=o(n(790)),h=a(n(0)),g=n(52),y=o(n(3701));function v(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,d.default)(e);if(t){var a=(0,d.default)(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return(0,s.default)(this,r)}}var _=function(e){(0,l.default)(n,e);var r=v(n);function n(){var e;(0,i.default)(this,n);for(var t=arguments.length,a=new Array(t),o=0;o0&&void 0!==arguments[0]?arguments[0]:{};a.fetchHostData(e),a.fetchData(e)},a.getParamsLabel=function(e,t){var r=t?"cluster-role.kubesphere.io/host=":"!cluster-role.kubesphere.io/host",n=e.group,a=e.tags,o=void 0===a?[]:a;return n&&(n="cluster.kubesphere.io/group=".concat(n)),o=Array.isArray(o)?o.map((function(e){return"label.cluster.kubesphere.io/".concat(e)})):"cluster.kubesphere.io/group=".concat(o),[n].concat((0,l.default)(o),[r,"!cluster-role.kubesphere.io/edge"]).filter(Boolean).join(",")},a.fetchData=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};a.store.fetchListByUser(z(z({},(0,v.default)(e,"group","tags","__index")),{},{limit:e.limit||10,page:e.page||1,labelSelector:a.getParamsLabel(e,!1)}))},a.fetchHostData=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};a.hostStore.fetchListByUser(z(z({},(0,v.default)(e,"group","tags","__index")),{},{labelSelector:a.getParamsLabel(e,!0),limit:-1}))},a.showAddCluster=function(){a.trigger("cluster.add",{module:"clusters",success:a.routing.push,tagsStore:a.tagsStore,onAddTags:a.showAddTags})},a.handlePagination=function(e){a.fetchData(e)},a.handleRefresh=function(){a.fetchData({page:1})},a.handleSearch=function(e){a.fetchData(e),a.fetchHostData(e)},a.enterCluster=function(){var e=(0,i.default)(u.default.mark((function e(t){return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:a.routing.push("/clusters/".concat(t,"/overview"));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),a.handleBindTags=function(e,t){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],n=a.store.list.data,o=a.state.checked,u=a.hostStore.list.data;a.trigger("cluster.tag.clusterItemTags",{detail:e,defaultValue:t,value:t,success:function(){a.initData(),a.setState({checked:[]})},tagsGroup:a.tagsStore.tagsGroup,store:a.tagsStore,onAddTags:a.showAddTags,tags:r?n.concat(u).filter((function(e){return o.includes(e.name)})):[e]})},a.showAddTags=function(){a.trigger("cluster.tag.add",{success:a.tagsStore.fetchGroupList,store:a.tagsStore})},a.getItemActions=function(e){return[{key:"pen",icon:"pen",text:t("EDIT_INFORMATION"),show:!0,onClick:function(e){a.trigger("resource.baseinfo.edit",{detail:e,modal:A.default,success:a.initData})}},{key:"tag",icon:"add",text:t("ADD_TAGS"),show:"platform-admin"===(0,g.default)(window,"globals.user.globalrole","")||(0,g.default)(window,"globals.user.globalRules.clusters",[]).includes("manage"),onClick:function(e){a.handleBindTags(e,e.tags.map((function(e){return(a.tagsStore.tags||[]).find((function(t){return t.name===e.name}))})).filter(Boolean),!1)}},{key:"edit",icon:"pen",text:t("EDIT_CONFIG"),show:!e.isHost,onClick:function(e){a.trigger("cluster.editConfig",{detail:e,success:a.initData})}},{key:"data",icon:"data",text:t("UPDATE_KUBECONFIG"),show:!e.isHost&&"proxy"!==e.connectionType,onClick:function(e){a.trigger("cluster.updateKubeConfig",{detail:e,success:a.initData})}},{key:"trash",icon:"trash",text:t("REMOVE_CLUSTER"),show:!e.isHost,onClick:function(e){var t;a.trigger("cluster.unbind",{detail:z(z({},e),{},{tags:(null!==(t=e.tags)&&void 0!==t?t:[]).map((function(e){return(a.tagsStore.tags||[]).find((function(t){return t.name===e.name}))})).filter(Boolean)}),success:a.initData})}}].filter((function(e){return e.show}))},a.handleChecked=function(e,t){a.setState((function(r){var n=r.checked;return{checked:t?[].concat((0,l.default)(n),[e]):n.filter((function(t){return t!==e}))}}))},a.handleReset=function(){a.initData(a.state.filters)},a.clearFilter=function(){a.setState({filters:{}}),a.initData()},a.handleSelectAll=function(e){e?a.setState({checked:[].concat((0,l.default)(a.hostStore.list.data.filter((function(e){return e.tags.length<5})).map((function(e){return e.name}))),(0,l.default)(a.store.list.data.filter((function(e){return e.tags.length<5})).map((function(e){return e.name}))))}):a.setState({checked:[]})},a.renderAction=function(){var e,r=a.state,n=r.checked;return r.showCheckbox?(e=0===n.length?{indeterminate:!1,checked:!1}:n.length5,c=u?r.slice(0,5):r;return D.default.createElement("div",{className:L.default.container},this.renderPanelHeader(),D.default.createElement(v.Loading,{spinning:n},D.default.createElement(D.default.Fragment,null,D.default.createElement("div",{className:L.default.header},D.default.createElement(v.Select,{className:L.default.select,value:o,onChange:this.handleChangeSource,options:this.sourceOptions}),D.default.createElement(v.Select,{className:L.default.select,value:this.store.sort_metric,onChange:this.handleChangeMetricType,options:this.options})),D.default.createElement("div",{className:L.default.list,style:{height:i&&!u?"auto":"392px"}},this.renderListItems(c,o),i&&D.default.createElement(v.Button,{className:L.default.fold,icon:u?"chevron-down":"chevron-up",onClick:this.toggleFold},u?t("UNFOLD"):t("FOLD"))),D.default.createElement("div",{className:L.default.more},D.default.createElement(v.Button,{onClick:this.showMoreModal},t("VIEW_MORE"))))))}},{key:"cluster",get:function(){return this.props.cluster}},{key:"options",get:function(){return this.store.sort_metric_options.map((function(e){return{value:e,label:t("SORT_BY_".concat(e.toUpperCase()))}}))}},{key:"sourceOptions",get:function(){return[{label:t("NODES"),value:"node"},{label:t("PODS"),value:"pod"},{label:t("PROJECT_PL"),value:"project"}]}}]),n}(D.Component),c=(0,y.default)(i.prototype,"store",[C.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return this.sourceMap[this.state.sourceType].store}}),u=i))||u;r.default=Y},3735:function(e,t,r){e.exports={container:"_2mo2Puhwc8tT6e9PomRdYU",title:"_2WYsLXyHOnbrxXt0OFY1Km",header:"u4rCe6nDLY5vbaq5aXJDQ",select:"_25M1cGJCz3WgAIQhGkQ6JX",list:"RtrNzNpCozOK2jXlZFrPb",listItem:"_3-eBd_RaqO30cf2v7AeZWY",textBox:"_3ODrxke8bqLQHUb7302kOC",text:"_2WxN_xHdXDli_mWcI5oYGV",label:"_3rjIYXMWaltqHcODVaa0ww",noLabel:"_3RSzNTep-_u0G6h5xmtrsE",cpu:"v0DrKUbv1DFqez5KfSlC-",fold:"t2fjcneoLurD1QVIju9nO",more:"_1aPF0hZOOhyo-EPu3G8bIa"}},3736:function(e,r,n){"use strict";var a=n(20),o=n(157);n(12),n(11),n(6),n(87),n(27),n(190),n(9),n(13),n(10),n(4),n(23),n(17),n(7),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,n(12),n(45),n(11),n(6),n(28),n(87),n(42),n(27),n(190),n(34),n(15),n(9),n(13),n(10),n(4),n(22),n(23),n(57),n(17),n(7);var u=a(n(43)),i=a(n(30));n(41);var c,l=a(n(44)),s=a(n(36)),d=a(n(37)),f=a(n(55)),p=a(n(56)),m=a(n(51)),h=n(186),g=a(n(790)),y=a(n(26)),v=n(239),_=o(n(0)),E=a(n(988)),O=n(52),b=n(794),S=a(n(3737));function k(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function C(e){for(var t=1;t0&&void 0!==a[0]?a[0]:{},n=C({last:!0},r),e.next=4,t.apiStore.fetchMetrics(C({metrics:[D.request_latencies_total,D.request_rate]},n));case 4:return e.next=6,t.schedulerStore.fetchMetrics(C({metrics:[D.schedule_attempts_count]},n));case 6:case"end":return e.stop()}}),e)}))),t.getSpecificData=function(e){return((0,y.default)(t.metrics,"".concat(D[e],".data.result"))||[]).reduce((function(e,t){return C(C({},e),{},(0,i.default)({},(0,y.default)(t,"metric.result"),(0,y.default)(t,"value[1]",0)))}),{})};var a=e.cluster;return t.apiStore=new E.default({module:"apiserver",cluster:a}),t.schedulerStore=new E.default({module:"scheduler",cluster:a}),t}return(0,d.default)(n,[{key:"componentDidMount",value:function(){this.fetchData()}},{key:"render",value:function(){var e=this.metrics,r=Number((0,y.default)(e,"".concat(D.request_rate,".data.result[0].value[1]"),0)).toFixed(3),n=(0,b.getValueByUnit)((0,y.default)(e,"".concat(D.request_latencies_total,".data.result[0].value[1]")),"ms"),a=this.getSpecificData("schedule_attempts_count");return _.default.createElement("div",{className:S.default.k8sStatus},_.default.createElement("div",{className:S.default.title},_.default.createElement("p",null,t("KUBERNETES_STATUS"))),_.default.createElement(h.Loading,{spinning:this.schedulerStore.isLoading},_.default.createElement("div",{className:S.default.container},_.default.createElement("div",{className:S.default.level},_.default.createElement(g.default,{title:(0,O.getDomTitle)(t("VALUE_REQUESTS_SECOND",{value:r})),description:t("API_REQUESTS_PER_SECOND")}),_.default.createElement(g.default,{title:(0,O.getDomTitle)("".concat(n," ms")),description:t("API_REQUEST_LATENCY")}),_.default.createElement(g.default,{title:(0,O.getDomTitle)(a.scheduled),description:1===a.scheduled?t("SCHEDULING_OPERATION"):t("SCHEDULING_OPERATIONS")}),_.default.createElement(g.default,{title:(0,O.getDomTitle)(a.unschedulable),description:1===a.unschedulable?t("SCHEDULING_FAILURE"):t("SCHEDULING_FAILURES")})))))}},{key:"metrics",get:function(){var e=this.apiStore.data,t=this.schedulerStore.data;return C(C({},e),t)}}]),n}(_.Component))||c;r.default=A},3737:function(e,t,r){e.exports={k8sStatus:"_165qOBnN9HAs4LrY_LK-d6",title:"_2vFFuGnTwzqjBij8D3BPRc",container:"_20PSSvdZ2gt1lsGGJB4rsS",level:"_2UJuf7ZQGgEclggVm__94Z"}},3738:function(e,r,n){"use strict";n(15);var a=n(20),o=n(157);n(5),n(4),n(316),n(23),n(17),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,n(45),n(5),n(42),n(4),n(316),n(23),n(57),n(17);var u,i,c,l,s=a(n(65)),d=a(n(36)),f=a(n(37)),p=a(n(88)),m=a(n(55)),h=a(n(56)),g=a(n(51)),y=a(n(49)),v=(a(n(66)),o(n(0))),_=n(239),E=a(n(26)),O=n(186),b=a(n(890)),S=n(14),k=n(794),C=a(n(3739)),T=a(n(3742));function D(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,g.default)(e);if(t){var a=(0,g.default)(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return(0,h.default)(this,r)}}var A={cpu_requests:"cluster_pod_cpu_requests_total",cpu_limits:"cluster_pod_cpu_limits_total",cpu_total:"cluster_cpu_total",cpu_requests_non_master:"cluster_pod_cpu_requests_non_master_total",cpu_limits_non_master:"cluster_pod_cpu_limits_non_master_total",cpu_total_non_master:"cluster_cpu_non_master_total",memory_requests:"cluster_pod_memory_requests_total",memorylimits:"cluster_pod_memory_limits_total",memory_total:"cluster_memory_total",memory_requests_non_master:"cluster_pod_memory_requests_non_master_total",memory_limits_non_master:"cluster_pod_memory_limits_non_master_total",memory_total_non_master:"cluster_memory_non_master_total",namespace_cpu_requests:"cluster_namespace_quota_cpu_requests_hard_total",namespace_cpu_limits:"cluster_namespace_quota_cpu_limits_hard_total",namespace_cpu_requests_non_master:"cluster_namespace_quota_cpu_requests_hard_total",namespace_cpu_limits_non_master:"cluster_namespace_quota_cpu_limits_hard_total",namespace_memory_requests:"cluster_namespace_quota_memory_requests_hard_total",namespace_memorylimits:"cluster_namespace_quota_memory_limits_hard_total",namespace_memory_requests_non_master:"cluster_namespace_quota_memory_requests_hard_total",namespace_memorylimits_non_master:"cluster_namespace_quota_memory_limits_hard_total"},N=(0,_.observer)((i=function(e){(0,m.default)(n,e);var r=D(n);function n(){var e;(0,d.default)(this,n);for(var t=arguments.length,a=new Array(t),o=0;o=3.2&&i.splice(2,0,u),i}},{key:"render",value:function(){var e=this.props,t=e.tableProps,r=e.match;return b.default.createElement(v.ListPage,this.props,b.default.createElement(h.default,(0,o.default)({},t,{className:"table-2-6",itemActions:this.itemActions,columns:this.getColumns(),onCreate:this.showCreate,cluster:r.params.cluster,getCheckboxProps:this.getCheckboxProps})))}},{key:"tips",get:function(){return[{title:t("WHAT_IS_STORAGE_CLASS_Q"),description:t("WHAT_IS_STORAGE_CLASS_A")},{title:t("WHAT_IS_LOCAL_VOLUME_Q"),description:t("WHAT_IS_LOCAL_VOLUME_A")}]}},{key:"tabs",get:function(){return{value:"Volume",onChange:this.handleTabChange,options:[{value:"Volume",label:t("PERSISTENT_VOLUME_CLAIM")},{value:"PV",label:t("PV")}]}}},{key:"itemActions",get:function(){var e=this.props,r=e.trigger,n=e.name;return[{key:"edit",icon:"pen",text:t("EDIT_INFORMATION"),action:"edit",show:this.showAction,onClick:function(e){return r("resource.baseinfo.edit",{detail:e})}},{key:"editYaml",icon:"pen",text:t("EDIT_YAML"),action:"edit",show:this.showAction,onClick:function(e){return r("resource.yaml.edit",{detail:e})}},{key:"delete",icon:"trash",text:t("DELETE"),action:"delete",show:this.showAction,onClick:function(e){return r("resource.delete",{type:n,detail:e})}}]}}]),n}(b.default.Component))||i;r.default=M},3767:function(e,t,r){e.exports={mode_title:"g8QlCJy-fQF9buKTjwNsv",question:"U5zHvmvvHdsAuoC5QNq1",pv_content:"_2jBC4N_eKhB_IMAWm0UTuO",yaml:"_345LgwPnsPDsRv68L_cgry"}},3768:function(e,r,n){"use strict";var a=n(20),o=n(157);n(12),n(5),n(11),n(6),n(86),n(73),n(18),n(16),n(9),n(13),n(10),n(4),n(23),n(24),n(17),n(62),n(7),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,n(12),n(45),n(5),n(11),n(6),n(86),n(73),n(18),n(28),n(42),n(16),n(34),n(15),n(9),n(13),n(10),n(4),n(23),n(57),n(24),n(17),n(62),n(7);var u,i=a(n(30)),c=a(n(315)),l=a(n(36)),s=a(n(37)),d=a(n(55)),f=a(n(56)),p=a(n(51)),m=a(n(0)),h=a(n(63)),g=o(n(793)),y=a(n(796)),v=a(n(907)),_=n(52),E=n(186),O=n(434),b=n(72),S=a(n(804)),k=a(n(788)),C=a(n(795)),T=a(n(3769));function D(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function A(e){for(var t=1;t-1},e.getItemDesc=function(e){var t=(0,O.getVolumeStatus)(e);return(0,h.default)(t)?e.storageClassName||"-":m.default.createElement(S.default,{reason:t,data:e,type:"volume"})},e.getCheckboxProps=function(e){return{disabled:e.isFedManaged||["Bound"].indexOf(e.status.phase)>-1,name:e.name}},e.renderAccessTitle=function(){var e=m.default.createElement("div",null,m.default.createElement("div",null,t("RWO_DESC")),m.default.createElement("div",null,t("ROX_DESC")),m.default.createElement("div",null,t("RWX_DESC")));return m.default.createElement("div",{className:T.default.mode_title},t("ACCESS_MODE_TCAP"),m.default.createElement(E.Tooltip,{content:e},m.default.createElement(E.Icon,{name:"question",size:16,className:T.default.question})))},e.mapperAccessMode=function(e){var t=(0,_.map_accessModes)(e);return m.default.createElement("span",null,t.join(","))},e.showCreate=function(){var t=e.props,r=t.match,n=t.module,a=t.getData;(0,t.trigger)("pv.create",{module:n,cluster:r.params.cluster,success:a})},e}return(0,s.default)(n,[{key:"getStatus",value:function(){return b.PV_STATUS.map((function(e){return{text:t(e.text),value:e.value}}))}},{key:"getColumns",value:function(){var e=this,r=this.props,n=r.getSortOrder,a=r.getFilteredValue,o=this.props.match.params.cluster;return[{title:t("NAME"),dataIndex:"name",sortOrder:n("name"),search:!0,sorter:!0,render:function(t,r){return m.default.createElement(k.default,{icon:"storage",iconSize:40,to:"Terminating"===r.phase?"":"/clusters/".concat(o,"/pv/").concat(t),isMultiCluster:r.isFedManaged,desc:e.getItemDesc(r),title:(0,_.getDisplayName)(r)})}},{title:t("STATUS"),dataIndex:"status",isHideable:!0,search:!0,filters:this.getStatus(),filteredValue:a("status"),width:"10.56%",render:function(e){var r=e.phase;return m.default.createElement(C.default,{type:r,name:t("PV_STATUS_".concat(r.toUpperCase()))})}},{title:t("CAPACITY"),dataIndex:"capacity",isHideable:!0,width:"7%",render:function(e){return m.default.createElement("div",null,m.default.createElement("p",null,e))}},{title:this.renderAccessTitle(),dataIndex:"accessModes",isHideable:!1,width:"12.32%",render:function(t){return e.mapperAccessMode(t)}},{title:t("RECLAIM_POLICY"),dataIndex:"_originData",isHideable:!0,width:"7.74%",render:function(e){return e.spec.persistentVolumeReclaimPolicy}},{title:t("CREATION_TIME_TCAP"),dataIndex:"createTime",sorter:!0,sortOrder:n("createTime"),isHideable:!0,width:140,render:function(e){return(0,_.getLocalTime)(e).format("YYYY-MM-DD HH:mm")}}]}},{key:"render",value:function(){var e=this.props,t=e.match,r=e.tableProps;return m.default.createElement(g.ListPage,this.props,m.default.createElement(y.default,(0,c.default)({},r,{itemActions:this.itemActions,tableActions:this.tableActions,columns:this.getColumns(),onCreate:this.showCreate,cluster:t.params.cluster,getCheckboxProps:this.getCheckboxProps,renderProjectSelect:!1,emptyProps:{desc:""}})))}},{key:"itemActions",get:function(){var e=this,r=this.props.trigger;return[{key:"edit",icon:"pen",text:t("EDIT_INFORMATION"),action:"edit",onClick:function(t){return r("resource.baseinfo.edit",{detail:t,success:e.props.getData})}},{key:"editYaml",icon:"pen",text:t("EDIT_YAML"),action:"view",show:this.showAction,onClick:function(t){return r("resource.yaml.edit",{detail:t,success:e.props.getData})}},{key:"delete",icon:"trash",text:t("DELETE"),action:"delete",show:this.showAction,disabled:this.cantDelete,onClick:function(t){return r("pv.delete",A(A({},e.props.tableProps),{},{detail:t,success:e.props.getData}))}}]}},{key:"tableActions",get:function(){var e=this,r=this.props,n=r.trigger;return A(A({},r.tableProps.tableActions),{},{selectActions:[{key:"delete",icon:"trash",text:t("DELETE"),action:"delete",type:"danger",show:this.showAction,onClick:function(){return n("pv.batch.delete",A(A({},e.props.tableProps),{},{success:e.props.getData}))}}]})}}]),n}(m.default.Component))||u;r.default=R},3769:function(e,t,r){e.exports={mode_title:"_2vs_PnSPXebgvBy3nZuegb",question:"_3Y4c2IH7tgyRPkhZQxNA_0",pv_content:"_14XQ8_zmRwCjtgkz04Wzge",yaml:"_2_YhNvXVq70vjV7Tj6V3qY"}},3770:function(e,r,n){"use strict";var a=n(20);n(12),n(5),n(11),n(31),n(6),n(86),n(18),n(97),n(16),n(27),n(9),n(13),n(10),n(4),n(316),n(23),n(24),n(17),n(62),n(7),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,n(12),n(45),n(5),n(11),n(31),n(6),n(86),n(18),n(28),n(97),n(42),n(16),n(27),n(34),n(15),n(9),n(13),n(10),n(4),n(316),n(436),n(22),n(23),n(57),n(24),n(17),n(62),n(7);var o=a(n(315)),u=a(n(43)),i=a(n(30));n(41);var c,l=a(n(44)),s=a(n(36)),d=a(n(37)),f=a(n(55)),p=a(n(56)),m=a(n(51)),h=a(n(0)),g=a(n(63)),y=a(n(26)),v=a(n(158)),_=n(186),E=n(52),O=n(72),b=n(444),S=n(794),k=a(n(856)),C=a(n(973)),T=a(n(1068)),D=n(793),A=a(n(788)),N=a(n(795)),R=a(n(789)),M=a(n(790)),P=a(n(787)),I=a(n(792)),w=a(n(796)),L=n(14),j=a(n(3771));function x(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function U(e){for(var t=1;t=.9&&h.default.createElement(_.Icon,{name:"exclamation"})),description:"".concat(n.cpu_used,"/").concat(n.cpu_total," ").concat(t("CORE_PL"))})}},{title:t("MEMORY_USAGE"),key:"memory",isHideable:!0,render:function(t){var r=e.getRecordMetrics(t,[{type:"memory_used",unit:"Gi"},{type:"memory_total",unit:"Gi"},{type:"memory_utilisation"}]);return h.default.createElement(M.default,{title:h.default.createElement("div",{className:j.default.resource},h.default.createElement("span",null,e.toPercentage(r.memory_utilisation)),r.memory_utilisation>=.9&&h.default.createElement(_.Icon,{name:"exclamation"})),description:"".concat(r.memory_used,"/").concat(r.memory_total," GiB")})}},{title:t("GPU_USAGE"),key:"gpu",isHideable:!0,render:function(t){var r=e.getRecordMetrics(t,[{type:"gpu_used",unit:"Core"},{type:"gpu_total",unit:"Core"},{type:"gpu_utilization"}]);return h.default.createElement(M.default,{title:h.default.createElement("div",{className:j.default.resource},h.default.createElement("span",null,e.toPercentage(r.gpu_utilization)),r.gpu_utilization>=.9&&h.default.createElement(_.Icon,{name:"exclamation"})),description:"".concat(r.gpu_used,"/").concat(r.gpu_total," GPU")})}},{title:t("GPU_MEMORY_USAGE"),key:"gpu_memory",isHideable:!0,render:function(t){var r=e.getRecordMetrics(t,[{type:"gpu_memory_used",unit:"Gi"},{type:"gpu_memory_total",unit:"Gi"},{type:"gpu_memory_utilization"}]);return h.default.createElement(M.default,{title:h.default.createElement("div",{className:j.default.resource},h.default.createElement("span",null,e.toPercentage(r.gpu_memory_utilization)),r.gpu_memory_utilization>=.9&&h.default.createElement(_.Icon,{name:"exclamation"})),description:"".concat(r.gpu_memory_used,"/").concat(r.gpu_memory_total," GiB")})}},{title:t("POD_PL"),key:"pods",isHideable:!0,render:function(t){var r=e.getRecordMetrics(t,[{type:"pod_used"},{type:"pod_total"}]),n=r.pod_total?parseFloat(r.pod_used/r.pod_total):0;return h.default.createElement(M.default,{title:"".concat(e.toPercentage(n)),description:"".concat(r.pod_used,"/").concat(r.pod_total)})}},{title:t("ALLOCATED_CPU"),key:"allocated_resources_cpu",isHideable:!0,render:e.renderCPUTooltip},{title:t("ALLOCATED_MEMORY"),key:"allocated_resources_memory",isHideable:!0,render:e.renderMemoryTooltip}]},e.renderCPUTooltip=function(e){var r=h.default.createElement("p",null,1===(0,E.cpuFormat)((0,y.default)(e,'annotations["node.kubesphere.io/cpu-limits"]'))?t("CPU_LIMIT_SI",{core:(0,E.cpuFormat)((0,y.default)(e,'annotations["node.kubesphere.io/cpu-limits"]')),percent:(0,y.default)(e,'annotations["node.kubesphere.io/cpu-limits-fraction"]')}):t("CPU_LIMIT_PL",{core:(0,E.cpuFormat)((0,y.default)(e,'annotations["node.kubesphere.io/cpu-limits"]')),percent:(0,y.default)(e,'annotations["node.kubesphere.io/cpu-limits-fraction"]')}));return h.default.createElement(_.Tooltip,{content:r,placement:"top"},h.default.createElement(M.default,{title:1===(0,E.cpuFormat)((0,y.default)(e,'annotations["node.kubesphere.io/cpu-requests"]'))?t("CPU_REQUEST_SI",{core:(0,E.cpuFormat)((0,y.default)(e,'annotations["node.kubesphere.io/cpu-requests"]')),percent:(0,y.default)(e,'annotations["node.kubesphere.io/cpu-requests-fraction"]')}):t("CPU_REQUEST_PL",{core:(0,E.cpuFormat)((0,y.default)(e,'annotations["node.kubesphere.io/cpu-requests"]')),percent:(0,y.default)(e,'annotations["node.kubesphere.io/cpu-requests-fraction"]')}),description:t("RESOURCE_REQUEST")}))},e.renderMemoryTooltip=function(e){var r=h.default.createElement("p",null,t("MEMORY_LIMIT_VALUE",{gib:(0,E.memoryFormat)((0,y.default)(e,'annotations["node.kubesphere.io/memory-limits"]'),"Gi"),percent:(0,y.default)(e,'annotations["node.kubesphere.io/memory-limits-fraction"]')}));return h.default.createElement(_.Tooltip,{content:r,placement:"top"},h.default.createElement(M.default,{title:t("MEMORY_REQUEST_VALUE",{gib:(0,E.memoryFormat)((0,y.default)(e,'annotations["node.kubesphere.io/memory-requests"]'),"Gi"),percent:(0,y.default)(e,'annotations["node.kubesphere.io/memory-requests-fraction"]')}),description:t("RESOURCE_REQUEST")}))},e}return(0,d.default)(n,[{key:"componentDidMount",value:function(){this.store.fetchCount(this.props.match.params)}},{key:"toPercentage",value:function(e){var t=(0,v.default)(e)||isNaN(e)?0:Number(e);return"".concat(Math.ceil(100*t),"%")}},{key:"getStatus",value:function(){return O.NODE_STATUS.map((function(e){return{text:t(e.text),value:e.value}}))}},{key:"getRoles",value:function(){return[{text:t("CONTROL_PLANE"),value:"master"},{text:t("WORKER"),value:"worker"}]}},{key:"renderOverview",value:function(){var e=this.store,r=e.masterNum,n=e.list.total;return h.default.createElement(R.default,{className:"margin-b12"},h.default.createElement("div",{className:j.default.overview},h.default.createElement(M.default,{icon:"nodes",title:n,description:1===n?t("NODE_SI"):t("NODE_PL")}),h.default.createElement(M.default,{title:r,description:1===r?t("MASTER_NODE_SI"):t("MASTER_NODE_PL")})))}},{key:"render",value:function(){var e=this.props,r=e.bannerProps,n=e.tableProps,a=this.monitoringStore.isLoading;return h.default.createElement(D.ListPage,(0,o.default)({},this.props,{getData:this.getData,noWatch:!0}),h.default.createElement(I.default,(0,o.default)({},r,{title:t("CLUSTER_NODE_PL"),tips:this.tips})),this.renderOverview(),h.default.createElement(w.default,(0,o.default)({},n,{itemActions:this.itemActions,tableActions:this.tableActions,columns:(0,E.hideGPUByLicense)(this.getColumns(),this.cluster),isLoading:n.isLoading||a})))}},{key:"cluster",get:function(){return this.props.match.params.cluster}},{key:"tips",get:function(){return[{title:t("NODE_TYPES_Q"),description:t("NODE_TYPES_A")},{title:t("WHAT_IS_NODE_TAINTS_Q"),description:t("WHAT_IS_NODE_TAINTS_A")}]}},{key:"itemActions",get:function(){var e=this,r=this.props,n=r.store,a=r.clusterStore,o=r.routing,u=r.trigger,i=r.name;return[{key:"uncordon",icon:"start",text:t("UNCORDON"),action:"edit",show:function(t){return"success"===t.importStatus&&e.getUnschedulable(t)},onClick:function(e){return n.uncordon(e).then(o.query)}},{key:"cordon",icon:"stop",text:t("CORDON"),action:"edit",show:function(t){return"success"===t.importStatus&&!e.getUnschedulable(t)},onClick:function(e){return n.cordon(e).then(o.query)}},{key:"terminal",icon:"terminal",text:t("OPEN_TERMINAL"),action:"edit",show:function(t){return"success"===t.importStatus&&e.getReady(t)},onClick:function(t){return e.handleOpenTerminal(t)}},{key:"logs",icon:"eye",text:t("VIEW_LOG"),action:"edit",show:function(e){return"success"!==e.importStatus},onClick:function(){return u("node.add.log",{detail:(0,L.toJS)(a.detail)})}},{key:"delete",icon:"trash",text:t("DELETE"),action:"delete",show:function(e){return"failed"===e.importStatus},onClick:function(e){return u("resource.delete",{type:i,detail:e,success:o.query})}}]}},{key:"tableActions",get:function(){var e=this.props,r=e.trigger,n=e.routing,a=e.clusterStore,o=e.tableProps,u=[];return a.detail.kkName&&u.push({key:"add",type:"control",text:t("ADD"),action:"create",onClick:function(){return r("node.add",{kkName:a.detail.kkName||"ddd"})}}),U(U({},o.tableActions),{},{actions:u,selectActions:[{key:"taint",type:"default",text:t("EDIT_TAINTS"),action:"edit",onClick:function(){return r("node.taint.batch",{success:n.query})}}]})}}]),n}(h.default.Component))||c;r.default=V},3771:function(e,t,r){e.exports={taints:"B4t1khP3gUFICAah4YTP5",overview:"_39TiTBliLeivJdhXYoDplZ",resource:"_1f_DIoH3TOaX8dMUSn7UMb",unAuthord:"_29VjReB-cl3AzGmel2f8Vq"}},3772:function(e,r,n){"use strict";var a=n(20);n(12),n(5),n(11),n(6),n(73),n(18),n(97),n(16),n(9),n(13),n(10),n(4),n(23),n(24),n(17),n(62),n(64),n(7),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,n(12),n(45),n(5),n(11),n(6),n(73),n(18),n(28),n(97),n(42),n(16),n(34),n(15),n(9),n(13),n(10),n(4),n(22),n(23),n(57),n(24),n(17),n(62),n(64),n(7);var o=a(n(315)),u=a(n(43)),i=a(n(30));n(41);var c,l=a(n(44)),s=a(n(36)),d=a(n(37)),f=a(n(55)),p=a(n(56)),m=a(n(51)),h=a(n(0)),g=a(n(63)),y=a(n(26)),v=n(186),_=n(52),E=n(72),O=n(444),b=a(n(1175)),S=a(n(973)),k=a(n(1068)),C=n(793),T=a(n(788)),D=a(n(795)),A=a(n(790)),N=a(n(787)),R=a(n(792)),M=a(n(796)),P=a(n(874)),I=n(14),w=a(n(3773));function L(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function j(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:"";e.props.store.switch(t,r,n).then((function(){e.props.routing.query()}))},e.getItemDesc=function(r){var n=(0,S.getWorkloadStatus)(r,e.props.module),a=n.status,o=n.reason;return o?v.default.createElement(y.default,{status:a,reason:t(o),data:r}):r.description||"-"},e.getColumns=function(){var r=e.props,n=r.getSortOrder,a=r.getFilteredValue,o=r.module,u=e.props.match.params.cluster;return[{title:t("NAME"),dataIndex:"name",sorter:!0,sortOrder:n("name"),search:!0,render:function(t,r){return v.default.createElement(p.default,{icon:b.ICON_TYPES[o],iconSize:40,title:(0,O.getDisplayName)(r),desc:e.getItemDesc(r),to:"/clusters/".concat(u,"/projects/").concat(r.namespace,"/").concat(o,"/").concat(t)})}},{title:t("STATUS"),dataIndex:"status",filters:e.getStatus(),filteredValue:a("status"),isHideable:!0,search:!0,width:"15%",render:function(e,r){var n=(0,S.getWorkloadStatus)(r,o).status;return v.default.createElement(m.default,{type:n,name:t("CRONJOB_".concat(n.toUpperCase()))})}},{title:t("PROJECT"),dataIndex:"namespace",isHideable:!0,width:"18%",render:function(e){return v.default.createElement(_.Link,{to:"/clusters/".concat(u,"/projects/").concat(e)},(0,O.showNameAndAlias)(e,"project"))}},{title:t("SCHEDULE"),dataIndex:"spec.schedule",isHideable:!0,width:"15%"},{title:t("CREATION_TIME_TCAP"),dataIndex:"createTime",sorter:!0,sortOrder:n("createTime"),isHideable:!0,width:150,render:function(e){return(0,O.getLocalTime)(e).format("YYYY-MM-DD HH:mm:ss")}}]},e.showCreate=function(){var t,r,n=e.props,a=n.query,o=n.match,u=n.module,i=null===(t=globals.clusterConfig)||void 0===t||null===(r=t[o.params.cluster])||void 0===r?void 0:r.k8sVersion;return e.props.trigger("workload.create",{module:u,namespace:a.namespace,cluster:o.params.cluster,k8sVersion:i,success:function(){return e.props.routing.query()},rootStore:e.props.rootStore})},e}return(0,c.default)(n,[{key:"getStatus",value:function(){return b.CRONJOB_STATUS.map((function(e){return{text:t(e.text),value:e.value}}))}},{key:"render",value:function(){var e=this.props,t=e.match,r=e.bannerProps,n=e.tableProps;return v.default.createElement(g.ListPage,this.props,v.default.createElement(h.default,(0,u.default)({},r,{tabs:this.tabs})),v.default.createElement(f.default,(0,u.default)({},n,{itemActions:this.itemActions,columns:this.getColumns(),onCreate:this.showCreate,cluster:t.params.cluster})))}},{key:"tabs",get:function(){return{value:this.props.module,onChange:this.handleTabChange,options:[{value:"jobs",label:t("JOB_PL")},{value:"cronjobs",label:t("CRONJOB_PL")}]}}},{key:"itemActions",get:function(){var e=this,r=this.props,n=r.trigger,a=r.name;return[{key:"edit",icon:"pen",text:t("EDIT_INFORMATION"),action:"edit",onClick:function(t){var r,a,o=null===(r=globals.clusterConfig)||void 0===r||null===(a=r[null==t?void 0:t.cluster])||void 0===a?void 0:a.k8sVersion;n("resource.baseinfo.edit",{detail:t,k8sVersion:o,success:function(){return e.props.routing.query()}})}},{key:"editYaml",icon:"pen",text:t("EDIT_YAML"),action:"edit",onClick:function(t){var r,a,o=null===(r=globals.clusterConfig)||void 0===r||null===(a=r[null==t?void 0:t.cluster])||void 0===a?void 0:a.k8sVersion;n("resource.yaml.edit",{detail:t,k8sVersion:o,success:function(){return e.props.routing.query()}})}},{show:function(e){return e.suspend},key:"start",icon:"start",text:t("START"),action:"edit",onClick:function(t){var r,n,a=null===(r=globals.clusterConfig)||void 0===r||null===(n=r[null==t?void 0:t.cluster])||void 0===n?void 0:n.k8sVersion;e.handleSwitch(t,!0,a)}},{show:function(e){return!e.suspend},key:"pause",icon:"stop",text:t("PAUSE"),action:"edit",onClick:function(t){var r,n,a=null===(r=globals.clusterConfig)||void 0===r||null===(n=r[null==t?void 0:t.cluster])||void 0===n?void 0:n.k8sVersion;e.handleSwitch(t,!1,a)}},{key:"delete",icon:"trash",text:t("DELETE"),action:"delete",onClick:function(t){var r,o,u=null===(r=globals.clusterConfig)||void 0===r||null===(o=r[null==t?void 0:t.cluster])||void 0===o?void 0:o.k8sVersion;n("resource.delete",{type:a,detail:t,k8sVersion:u,success:function(){return e.props.routing.query()}})}}]}}]),n}(v.default.Component))||o,D=(0,k.inject)()((function(e){var t,r,n=e.match.params.cluster,a=null===(t=globals.clusterConfig)||void 0===t||null===(r=t[n])||void 0===r?void 0:r.k8sVersion;return v.default.createElement(T,(0,u.default)({k8sVersion:a},e))}));r.default=D},3784:function(e,r,n){"use strict";n(15);var a=n(20);n(5),n(18),n(16),n(4),n(23),n(24),n(17),n(62),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,n(45),n(5),n(18),n(42),n(16),n(4),n(23),n(57),n(24),n(17),n(62);var o,u=a(n(315)),i=a(n(36)),c=a(n(37)),l=a(n(55)),s=a(n(56)),d=a(n(51)),f=a(n(0)),p=n(433),m=n(186),h=a(n(839)),g=a(n(792)),y=n(793),v=a(n(804)),_=a(n(810)),E=n(52),O=n(72),b=a(n(452)),S=a(n(936)),k=a(n(3785));function C(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,d.default)(e);if(t){var a=(0,d.default)(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return(0,s.default)(this,r)}}var T=(0,y.withClusterList)({store:new b.default,module:"pods",name:"POD",rowKey:"uid"})(o=(0,S.default)(["event"])(o=function(e){(0,l.default)(n,e);var r=C(n);function n(){var e;(0,i.default)(this,n);for(var a=arguments.length,o=new Array(a),u=0;u1?t("LOAD_BALANCERS_SCAP"):t("LOAD_BALANCER_SCAP"),r.title=e.loadBalancerIngress.join("; ")),e.externalName?E.default.createElement(g.default,{description:r.des,title:function(){return E.default.createElement(p.Tooltip,{content:e.externalName},E.default.createElement("span",null,r.title))}}):E.default.createElement(g.default,{description:t("".concat(r.des)),title:r.title})},e.getColumns=function(){var r=e.props,n=r.getSortOrder,a=r.module,o=e.props.match.params.cluster;return[{title:t("NAME"),dataIndex:"name",sorter:!0,sortOrder:n("name"),search:!0,width:"20%",render:function(e,t){return E.default.createElement(h.default,{icon:k.ICON_TYPES[a],iconSize:40,title:(0,S.getDisplayName)(t),desc:t.description||"-",isMultiCluster:t.isFedManaged,to:"/clusters/".concat(o,"/projects/").concat(t.namespace,"/").concat(a,"/").concat(e)})}},{title:t("PROJECT"),dataIndex:"namespace",isHideable:!0,width:"15%",render:function(e){return E.default.createElement(O.Link,{to:"/clusters/".concat(o,"/projects/").concat(e)},(0,S.showNameAndAlias)(e,"project"))}},{title:t("INTERNAL_ACCESS"),dataIndex:'annotations["kubesphere.io/serviceType"]',isHideable:!0,width:"15%",render:function(e,r){return E.default.createElement(g.default,{title:r.clusterIP||"",description:t("".concat(r.type))})}},{title:t("EXTERNAL_ACCESS"),dataIndex:"specType",isHideable:!0,width:"20%",render:function(t,r){return e.renderExternalService(r)}},{title:t("CREATION_TIME_TCAP"),dataIndex:"createTime",sorter:!0,sortOrder:n("createTime"),isHideable:!0,width:"10%",render:function(e){return(0,S.getLocalTime)(e).format("YYYY-MM-DD HH:mm:ss")}}]},e.showCreate=function(){var t=e.props,r=t.query,n=t.match,a=t.module,o=t.getData;return e.props.trigger("service.simple.create",{module:a,namespace:r.namespace,cluster:n.params.cluster,success:o})},e}return(0,l.default)(n,[{key:"render",value:function(){var e=this.props,t=e.match,r=e.bannerProps,n=e.tableProps;return E.default.createElement(v.ListPage,this.props,E.default.createElement(y.default,r),E.default.createElement(m.default,(0,i.default)({},n,{itemActions:this.itemActions,selectActions:this.selectActions,columns:this.getColumns(),onCreate:this.showCreate,cluster:t.params.cluster,getCheckboxProps:this.getCheckboxProps})))}},{key:"itemActions",get:function(){var e=this,r=this.props,n=r.trigger,a=r.name;return[{key:"edit",icon:"pen",text:t("EDIT_INFORMATION"),action:"edit",show:this.showAction,onClick:function(e){return n("resource.baseinfo.edit",{detail:e})}},{key:"editYaml",icon:"pen",text:t("EDIT_YAML"),action:"edit",show:this.showAction,onClick:function(e){return n("resource.yaml.edit",{detail:e})}},{key:"editService",icon:"network-router",text:t("EDIT_SERVICE"),action:"edit",show:this.showAction,onClick:function(e){return n("service.edit",{detail:e})}},{key:"editGateway",icon:"ip",text:t("EDIT_EXTERNAL_ACCESS"),action:"edit",show:function(t){return e.showAction(t)&&t.type===k.SERVICE_TYPES.VirtualIP},onClick:function(e){return n("service.gateway.edit",{detail:e})}},{key:"delete",icon:"trash",text:t("DELETE"),action:"delete",show:this.showAction,onClick:function(e){return n("service.delete",{type:a,detail:e})}}]}},{key:"selectActions",get:function(){var e=this.props,r=e.tableProps,n=e.trigger,a=e.name;return(0,u.default)((0,_.default)(r,"tableActions.selectActions",{})).filter((function(e){return"delete"!==e.key})).concat([{key:"delete",type:"danger",text:t("DELETE"),action:"delete",onClick:function(){n("service.batch.delete",{type:a,rowKey:"uid"})}}])}}]),n}(E.default.Component))||o;r.default=T},3787:function(e,r,n){"use strict";n(15);var a=n(20);n(12),n(109),n(5),n(73),n(16),n(4),n(23),n(24),n(17),n(62),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,n(12),n(109),n(45),n(5),n(73),n(42),n(16),n(4),n(23),n(57),n(24),n(17),n(62);var o,u=a(n(315)),i=a(n(36)),c=a(n(37)),l=a(n(55)),s=a(n(56)),d=a(n(51)),f=a(n(810)),p=a(n(788)),m=a(n(792)),h=n(793),g=a(n(0)),y=n(433),v=a(n(917)),_=n(52),E=n(72);function O(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,d.default)(e);if(t){var a=(0,d.default)(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return(0,s.default)(this,r)}}var b=(0,h.withClusterList)({store:new v.default,module:"ingresses",name:"ROUTE",rowKey:"uid"})(o=function(e){(0,l.default)(n,e);var r=O(n);function n(){var e;(0,i.default)(this,n);for(var a=arguments.length,o=new Array(a),u=0;u0&&void 0!==arguments[0]?arguments[0]:{};return"kapis/gateway.kubesphere.io/v1alpha2".concat(e.getPath(t),"/").concat(e.module)},e.getFilterParams=function(e){var t=E({},e);return t.uniqueDomainPattern&&(t.fieldSelector="spec.uniqueDomainPattern=".concat(t.uniqueDomainPattern),delete t.uniqueDomainPattern),t.name&&(t.fieldSelector="metadata.name=".concat(t.name),delete t.name),t},e}return(0,d.default)(n,[{key:"checkName",value:function(e,t){return request.get(this.getResourceUrl(e),this.getFilterParams(t),{headers:{"x-check-exist":!0}})}},{key:"fetchList",value:(t=(0,c.default)(a.default.mark((function e(){var t,r,n,i,c,l,s,d,f,p,m=this,h=arguments;return a.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=h.length>0&&void 0!==h[0]?h[0]:{},r=t.cluster,n=t.workspace,i=t.namespace,c=t.more,l=t.devops,s=(0,u.default)(t,["cluster","workspace","namespace","more","devops"]),this.list.isLoading=!0,s.sortBy||void 0!==s.ascending||(s.sortBy=v.LIST_DEFAULT_ORDER[this.module]||"createTime"),s.limit!==1/0&&-1!==s.limit||(s.page=1),s.limit=s.limit||10,s.page=s.page||1,e.next=8,request.get(this.getResourceUrl({cluster:r,workspace:n,namespace:i,devops:l}),this.getFilterParams(s));case 8:return d=e.sent,f=((0,g.default)(d,"items")||[]).map((function(e){return E(E({cluster:r,namespace:i},e),m.mapper(e))})),p=1===Number(s.page)?f.length+(d.metadata.remainingItemCount||0):this.list.total,this.list.update(E(E({data:c?[].concat((0,o.default)(this.list.data),(0,o.default)(f)):f,total:p},s),{},{limit:Number(s.limit)||10,page:Number(s.page)||1,isLoading:!1},this.list.silent?{}:{selectedRowKeys:[]})),e.abrupt("return",f);case 13:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})}]),n}(n(r(68)).default),(0,h.default)(i.prototype,"checkName",[y.action],Object.getOwnPropertyDescriptor(i.prototype,"checkName"),i.prototype),(0,h.default)(i.prototype,"fetchList",[y.action],Object.getOwnPropertyDescriptor(i.prototype,"fetchList"),i.prototype),i);t.default=b},3791:function(e,t,r){e.exports={panel:"FyXk2dppIa5i82ApkI1Ql",routesSetting:"_3UOnCQ8P2oZzf_eNyRK1IA",table:"_228gCjzBUQV2Q4vU2rUrfl"}},3792:function(e,r,n){"use strict";n(15);var a=n(20);n(12),n(109),n(5),n(16),n(10),n(4),n(23),n(24),n(17),n(62),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,n(12),n(109),n(45),n(5),n(42),n(16),n(10),n(4),n(23),n(57),n(24),n(17),n(62);var o,u=a(n(315)),i=a(n(36)),c=a(n(37)),l=a(n(55)),s=a(n(56)),d=a(n(51)),f=a(n(810)),p=a(n(788)),m=n(793),h=a(n(0)),g=n(433),y=a(n(851)),v=n(52),_=n(72),E=a(n(3793));function O(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,d.default)(e);if(t){var a=(0,d.default)(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return(0,s.default)(this,r)}}var b=(0,m.withClusterList)({store:new y.default,module:"secrets",name:"SECRET",rowKey:"uid"})(o=function(e){(0,l.default)(n,e);var r=O(n);function n(){var e;(0,i.default)(this,n);for(var a=arguments.length,o=new Array(a),u=0;u0&&void 0!==arguments[0]?arguments[0]:{};t.monitorStore.fetchMetrics(C({metrics:Object.values(D),step:"60m",times:100},e))},t.monitorStore=new _.default({cluster:e.match.params.cluster}),t.fetchData(),t}return(0,l.default)(n,[{key:"renderChart",value:function(){var e=(0,v.getAreaChartOps)({title:"PROJECT_COUNT",unit:"",legend:["PROJECT_COUNT"],data:(0,y.default)(this.metrics,"".concat(D.namespace_count,".data.result"))});return(0,g.default)(e.data)?null:p.default.createElement(b.SimpleArea,(0,u.default)({width:"100%",bgColor:"transparent"},e))}},{key:"render",value:function(){var e=this.monitorStore,r=e.isLoading,n=e.isRefreshing,a=(0,g.default)(this.metrics);return p.default.createElement(E.Loading,{spinning:r},p.default.createElement(O.default,{className:(0,h.default)(S.default.card,(0,i.default)({},S.default.empty,a)),refreshing:n,empty:t("NO_MONITORING_DATA")},this.renderChart()))}},{key:"metrics",get:function(){return this.monitorStore.data}}]),n}(p.default.Component))||o)||o;r.default=A},3836:function(e,t,r){e.exports={card:"wwlsDBiAjm0q1bmRNgj6o",empty:"_1ad28rokzs4wIzr9i7erxd"}},3837:function(e,t,r){"use strict";r(15);var n=r(20);r(4),r(23),r(24),r(17),r(62),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r(45),r(42),r(4),r(23),r(57),r(24),r(17),r(62);var a=n(r(36)),o=n(r(37)),u=n(r(55)),i=n(r(56)),c=n(r(51)),l=n(r(0)),s=n(r(3838)),d=n(r(3840));function f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,c.default)(e);if(t){var a=(0,c.default)(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return(0,i.default)(this,r)}}var p=function(e){(0,u.default)(r,e);var t=f(r);function r(){return(0,a.default)(this,r),t.apply(this,arguments)}return(0,o.default)(r,[{key:"render",value:function(){return l.default.createElement("div",{className:d.default.wrapper},l.default.createElement(s.default,{cluster:this.props.match.params.cluster}))}}]),r}(l.default.Component);t.default=p},3838:function(e,r,n){"use strict";n(15);var a=n(20);n(18),n(4),n(23),n(17),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,n(45),n(18),n(42),n(4),n(23),n(57),n(17);var o,u=a(n(36)),i=a(n(37)),c=a(n(55)),l=a(n(56)),s=a(n(51)),d=a(n(0)),f=n(239),p=a(n(3)),m=a(n(886)),h=n(186),g=a(n(1130)),y=n(52),v=a(n(1814)),_=a(n(3839));function E(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,s.default)(e);if(t){var a=(0,s.default)(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return(0,l.default)(this,r)}}var O=["namespace_cpu_usage","namespace_memory_usage_wo_cache","namespace_gpu_usage","namespace_gpu_memory_usage","namespace_pod_count","namespace_net_bytes_received","namespace_net_bytes_transmitted"],b=(0,f.observer)(o=function(e){(0,c.default)(n,e);var r=E(n);function n(e){var t;return(0,u.default)(this,n),(t=r.call(this,e)).download=function(){t.store.download("project.usage.rank.json")},t.store=new g.default({limit:10,sort_type:"desc",cluster:e.cluster,sort_metric_options:(0,y.hideGPUByLicense)(O,e.cluster)}),t}return(0,i.default)(n,[{key:"componentDidMount",value:function(){this.store.fetchAll()}},{key:"render",value:function(){return d.default.createElement("div",{className:_.default.wrapper},this.renderToolbar(),this.renderList())}},{key:"renderToolbar",value:function(){var e=this;return d.default.createElement("div",{className:(0,p.default)(_.default.toolbar,_.default.pane__toolbar,_.default.pane)},d.default.createElement("div",{className:_.default.toolbar_filter},d.default.createElement(h.Select,{value:this.store.sort_metric,onChange:this.store.changeSortMetric,options:this.options}),d.default.createElement("span",{className:_.default.sort_button},d.default.createElement(h.Icon,{name:"desc"===this.store.sort_type?"sort-descending":"sort-ascending",type:"coloured",size:"small",onClick:function(){return e.store.changeSortType()}}))),d.default.createElement("div",{className:_.default.toolbar_buttons},d.default.createElement(h.Button,{onClick:this.download},t("EXPORT"))))}},{key:"renderList",value:function(){return d.default.createElement(h.Loading,{spinning:this.store.isLoading},d.default.createElement("div",null,d.default.createElement(v.default,{cluster:this.props.cluster,store:this.store}),this.renderPagination()))}},{key:"renderPagination",value:function(){var e=this.store,t=e.page,r=e.total,n=e.limit;return d.default.createElement("div",{className:(0,p.default)(_.default.pane,_.default.pane__pagination)},d.default.createElement(m.default,{page:t,total:r,limit:n,onChange:this.store.changePagination}))}},{key:"options",get:function(){return this.store.sort_metric_options.map((function(e){return{value:e,label:t("SORT_BY_".concat(e.toUpperCase()))}}))}}]),n}(d.default.Component))||o;r.default=b},3839:function(e,t,r){e.exports={wrapper:"_1CmVFNd0G-zs9E1iHfdivR",pane:"_3Xxq0iOcg5rPC1z0QX4VcZ",pane__toolbar:"_2PEZlO8QdUlfOW_Gg2bFho",pane__pagination:"_3tB6nH6MnNdOJ_hACtTFVh",title:"_3WzAR13ip4gsV70FVDKTdJ",toolbar:"_3QzlZPN09RgS4Y67QlJd09",toolbar_buttons:"_2HATCZlaUbpt610R3YC6_p",toolbar_filter:"_3d9XJJFMH1N7n4BKj6Mkwu",sort_button:"Zm30W-XpLeAnhkrxGKaXD",table:"_1zke06m-W2VOKXFYSeau6f",table_rank:"_2fmtCI2sslMwd4fyo_vmK3",table_no_border:"_1QODthKAirf_FppmVzGK2r",rankList_row:"_36FQnaParFo539EUHrLM3j",rankLink__sort_col:"_1tK0CngMzBLJehA_bn8nmS"}},3840:function(e,t,r){e.exports={wrapper:"wa7tMIrleTBU3e6ZCinRa",pane:"TOMVoOzgz8bnMGaXhMj6v",tabs:"_1XJp5HqlcLBB0vE-AP9V6C",selected:"Bgy3xm4otfT4hHjzR2om-"}},3841:function(e,r,n){"use strict";var a=n(20),o=n(157);n(12),n(5),n(11),n(6),n(16),n(9),n(13),n(10),n(4),n(23),n(24),n(17),n(62),n(7),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,n(12),n(45),n(5),n(11),n(6),n(28),n(42),n(16),n(34),n(15),n(9),n(13),n(10),n(4),n(23),n(57),n(24),n(17),n(62),n(7);var u,i=a(n(315)),c=a(n(30)),l=a(n(36)),s=a(n(37)),d=a(n(55)),f=a(n(56)),p=a(n(51)),m=a(n(0)),h=n(14),g=a(n(788)),y=a(n(795)),v=a(n(792)),_=o(n(793)),E=a(n(796)),O=n(52),b=a(n(322)),S=a(n(441));function k(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function C(e){for(var t=1;t1?E.default.createElement(A.default,{className:D.default.manage,content:r}):t.length>0&&E.default.createElement(f.Button,{className:D.default.singleButton,onClick:function(){return t[0].onClick()}},t[0].text)},e}return(0,i.default)(n,[{key:"componentDidMount",value:function(){this.store.detail.isReady&&this.fetchData(),this.fetchTagGroupList()}},{key:"render",value:function(){var e=this,r=this.store.detail,n=r.provider,a=r.kubernetesVersion,u=r.tags,i=this.getResourceOptions();return E.default.createElement(E.default.Fragment,null,E.default.createElement(g.default,{icon:"cluster",title:t("BASIC_INFORMATION"),description:t("CLUSTER_BASE_INFO_DESC")}),E.default.createElement(m.default,{title:t("CLUSTER_INFORMATION")},E.default.createElement("div",{className:D.default.header},E.default.createElement(h.default,{icon:C.CLUSTER_PROVIDER_ICON[n]||"kubernetes",title:(0,S.getDomTitle)((0,S.getDisplayNameNew)(this.store.detail)),description:t("CLUSTER"),ellipsis:!0}),n&&E.default.createElement(h.default,{title:n,description:t("PROVIDER")}),E.default.createElement(h.default,{title:a||this.store.version,description:t("KUBERNETES_VERSION")}),this.editPromission&&this.renderManageButton()),E.default.createElement("div",{className:D.default.content},i.map((function(e){return E.default.createElement(h.default,{key:e.name,icon:e.icon,title:e.value,description:t(e.name)})})))),E.default.createElement(m.default,{title:t("CLUSTER_TAGS")},u.length>0&&E.default.createElement("div",{className:D.default.tags},u.map((function(t){var r=(e.tagsStore.tags||[]).find((function(e){return e.name===t.name}));return r?E.default.createElement(y.ClusterTagItem,(0,o.default)({},r,{key:r.name})):null})))))}},{key:"store",get:function(){return this.props.clusterStore}},{key:"enabledActions",get:function(){return globals.app.getActions({module:"cluster-settings",cluster:this.props.match.params.cluster})}},{key:"editPromission",get:function(){var e;return null===(e=globals.user.globalRules.clusters)||void 0===e?void 0:e.includes("manage")}},{key:"enableManageAction",get:function(){var e=this.store.detail,r=e.isHost,n=void 0!==r&&r,a="proxy"===e.connectionType,o=this.enabledActions,u=[];return o.includes("edit")&&globals.app.isMultiCluster&&u.push({actionName:"resource.baseinfo.edit",onClick:this.showEdit,icon:"pen",text:t("EDIT_INFORMATION")}),("platform-admin"===(0,v.default)(window,"globals.user.globalrole","")||(0,v.default)(window,"globals.user.globalRules.clusters",[]).includes("manage"))&&u.push({actionName:"cluster.tag.clusterItemTags",onClick:this.showTags,icon:"add",text:t("ADD_TAGS")}),globals.app.isMultiCluster&&!n&&!a&&o.includes("edit")&&u.push({actionName:"cluster.update.kubeconfig",icon:"data",text:t("UPDATE_KUBECONFIG"),onClick:this.updateKubeConfig}),globals.app.isMultiCluster&&o.includes("delete")&&!this.store.detail.isHost&&u.push({actionName:"cluster.unbind",onClick:this.handleUnbind,icon:"trash",text:t("REMOVE_CLUSTER")}),u}}]),n}(E.default.Component))||d)||d)||d;r.default=M},3844:function(e,t,r){e.exports={header:"_2SXq6W7Y5arA1V8ydx3x9k",content:"_3zCn6ZnEb1mjwR_f5JXgA",tip:"lIqFeO0ppH8_MxJdLUlTw",unbind:"_3-xB7xj9NBxURt-nM9E8YT",manage:"_12M4oLKObAdKFXEoaa5wxj",singleButton:"_1HEVP9zq3sERwI9RlCnfHB",tags:"_2ep7i_I3q4CFYM8VacKRGZ"}},3846:function(e,r,n){"use strict";var a=n(20);n(12),n(109),n(5),n(11),n(6),n(84),n(16),n(9),n(13),n(10),n(4),n(23),n(24),n(17),n(85),n(62),n(7),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,n(12),n(109),n(45),n(5),n(11),n(6),n(84),n(28),n(42),n(16),n(34),n(15),n(9),n(13),n(10),n(4),n(22),n(23),n(57),n(24),n(17),n(85),n(62),n(7);var o=a(n(43));n(41);var u,i=a(n(44)),c=a(n(30)),l=a(n(36)),s=a(n(37)),d=a(n(55)),f=a(n(56)),p=a(n(51)),m=n(186),h=a(n(788)),g=a(n(789)),y=a(n(790)),v=a(n(792)),_=a(n(873)),E=a(n(26)),O=n(14),b=n(239),S=a(n(0)),k=a(n(445)),C=n(52),T=n(791),D=a(n(3847));function A(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function N(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:"namespacenetworkpolicies";return(0,d.default)(this,n),e=r.call(this,t),(0,s.default)(e,"list",c,(0,p.default)(e)),e.getResourceUrl=function(t){return"/kapis/networking.k8s.io/v1".concat(e.getPath(t),"/").concat(e.module)},e}return(0,f.default)(n,[{key:"fetchList",value:(t=(0,l.default)(a.default.mark((function e(){var t,r,n,o,i,c,l,s,d,f,p,m,h=this,g=arguments;return a.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=g.length>0&&void 0!==g[0]?g[0]:{},o=n.cluster,i=n.namespace,c=n.page,l=void 0===c?this.list.page:c,s=(0,u.default)(n,["cluster","namespace","page"]),this.list.isLoading=!0,d=s,f=s.name,d.limit?this.list.limit=d.limit:d.limit=this.list.limit,(null===(t=this.list)||void 0===t||null===(r=t.continues)||void 0===r?void 0:r[l])?d.continue=this.list.continues[l]:this.list.continues={1:""},d.page=l,e.next=9,request.get(this.getResourceUrl({cluster:o,namespace:i}),d);case 9:return p=e.sent,m=p.items.map((function(e){return O({cluster:o,namespace:i},h.mapper(e))})),this.list.continues[Number(l)+1]=p.metadata.continue||"",1===Number(l)&&(this.list.total=m.length+(p.metadata.remainingItemCount||0)),f&&(this.list.filters={name:f}),(0,_.extendObservable)(this.list,{data:m,page:Number(l),name:f}),this.list.isLoading=!1,e.abrupt("return",this.list);case 17:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})}]),n}(v.default),c=(0,y.default)(i.prototype,"list",[_.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{data:[],page:1,limit:10,total:0,continues:{1:""},isLoading:!0}}}),(0,y.default)(i.prototype,"fetchList",[_.action],Object.getOwnPropertyDescriptor(i.prototype,"fetchList"),i.prototype),i);t.default=S},3851:function(e,r,n){"use strict";n(6),n(28),n(34),n(15),n(9),n(13),n(10),n(7);var a=n(20),o=n(157);n(12),n(109),n(5),n(11),n(48),n(16),n(27),n(4),n(23),n(24),n(17),n(62),n(188),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,n(12),n(109),n(45),n(5),n(11),n(48),n(42),n(16),n(27),n(4),n(23),n(57),n(24),n(17),n(62),n(188);var u,i=a(n(30)),c=a(n(315)),l=a(n(36)),s=a(n(37)),d=a(n(55)),f=a(n(56)),p=a(n(51)),m=n(186),h=a(n(788)),g=a(n(801)),y=a(n(795)),v=a(n(790)),_=a(n(240)),E=a(n(792)),O=o(n(793)),b=a(n(796)),S=a(n(26)),k=a(n(74)),C=a(n(0)),T=a(n(1316)),D=n(52),A=n(72),N=n(434),R=n(244),M=n(239),P=n(14),I=a(n(3852));function w(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function L(e){for(var t=1;t1&&e.rootStore.routing.query(L(L({},r),{},{page:1}))}),[o]),C.default.createElement(x,(0,c.default)({store:a},e))}));r.default=U},3852:function(e,t,r){e.exports={upload:"_2_3IPi65_G0tYI4auyS45R"}},3853:function(e,r,n){"use strict";n(15);var a=n(20),o=n(157);n(5),n(11),n(84),n(18),n(16),n(9),n(4),n(23),n(24),n(17),n(85),n(62),n(64),n(136),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,n(45),n(5),n(11),n(84),n(18),n(28),n(42),n(16),n(9),n(4),n(22),n(23),n(57),n(24),n(17),n(85),n(62),n(64);var u=a(n(43)),i=a(n(30));n(41);var c,l,s=a(n(44)),d=a(n(36)),f=a(n(37)),p=a(n(55)),m=a(n(56)),h=a(n(51)),g=a(n(49)),y=a(n(0)),v=n(239),_=n(14),E=a(n(3)),O=a(n(26)),b=a(n(135)),S=a(n(1152)),k=a(n(250)),C=n(440),T=n(894),D=n(433),A=n(186),N=a(n(790)),R=a(n(789)),M=a(n(792)),P=a(n(3854)),I=a(n(851)),w=n(52),L=o(n(1403)),j=a(n(3859));function x(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,h.default)(e);if(t){var a=(0,h.default)(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return(0,m.default)(this,r)}}var U=(0,v.inject)("rootStore")(c=(0,v.observer)((l=function(e){(0,p.default)(n,e);var r=x(n);function n(){var e;(0,d.default)(this,n);for(var t=arguments.length,a=new Array(t),o=0;o0&&void 0!==arguments[0]?arguments[0]:{};t.store.fetchList(M(M({},e),{},{limit:10}))},t.handleTabChange=function(){t.routing.push("/clusters")},t.showAddTags=function(){t.trigger("cluster.tag.add",{module:"clusters",success:t.routing.query,store:t.store})},t.store=t.props.store,t.clusterStore=new _.default,t}return(0,l.default)(n,[{key:"getColumns",value:function(){var e=this.props.getSortOrder;return[{title:t("CLUSTER_TAG"),dataIndex:"id",isHideable:!0,render:function(e,t){return m.createElement("div",{className:(0,C.default)(N.default.clusterTagItem)},m.createElement("div",{className:N.default.label},t.label),m.createElement("div",{className:N.default.value},t.value))}},{title:t("CLUSTER"),dataIndex:"clusters",isHideable:!0,render:function(e){return e.length}},{title:t("CREATION_TIME_TCAP"),dataIndex:"createTime",sorter:!0,sortOrder:e("createTime"),isHideable:!0,width:200,render:function(e){return e?(0,T.getLocalTime)(e).format("YYYY-MM-DD HH:mm:ss"):"-"}}]}},{key:"componentDidMount",value:function(){this.initData()}},{key:"renderList",value:function(){var e=this.store.list,r=e.filters,n=e.isLoading,a=e.data,o=e.page,i=this.props.tableProps;return!(0,E.default)(a)||n||!(0,E.default)(r)||1!==o&&o?m.createElement(k.default,(0,u.default)({},i,{data:a,loading:n,enabledActions:I()?["edit","bind","hasBundled","delete","create"]:(0,O.default)(window,"globals.user.globalRules.clusters",[]).includes("manage")?["view","bind","hasBundled"]:["view"],itemActions:this.itemActions,rowKey:"name",tableActions:this.tableActions,columns:this.getColumns(),onCreate:this.showAddTags,searchType:"name"})):m.createElement(S.default,{icon:"tags-duotone",title:t("NO_CLUSTER_TAGS"),desc:t("NO_CLUSTER_TAGS_DESC"),actions:I()?m.createElement(b.Button,{type:"control",onClick:this.showAddTags},t("CREATE")):null})}},{key:"render",value:function(){return m.createElement("div",{className:N.default.wrapper},m.createElement(D.ListPage,this.props,m.createElement(y.default,{className:N.default.banner,icon:"cluster",title:t("CLUSTER_MANAGEMENT"),description:t("CLUSTER_DESC"),tabs:this.tabs}),this.renderList()))}},{key:"authKey",get:function(){return"clusters"}},{key:"routing",get:function(){return this.props.rootStore.routing}},{key:"tableActions",get:function(){var e=this;return M(M({},this.props.tableProps.tableActions),{},{selectActions:[{key:"delete",type:"danger",text:t("DELETE"),action:"delete",onClick:function(){e.trigger("cluster.tag.delete",{type:e.name,detail:e.store.list.data.filter((function(t){return e.store.list.selectedRowKeys.includes(t.name)})),success:e.routing.query})}}]})}},{key:"tabs",get:function(){return{value:"tags",onChange:this.handleTabChange,options:[{value:"clusters",label:t("CLUSTER_PL")},{value:"tags",label:t("CLUSTER_TAGS")}]}}},{key:"itemActions",get:function(){var e=this;return[{key:"edit",icon:"pen",text:t("EDIT"),action:"edit",onClick:function(t){return e.trigger("cluster.tag.edit",{name:t.name,detail:[{key:t.label,value:t.value}],store:e.store,success:e.routing.query})}},{key:"bind",icon:"link",action:"bind",text:t("ADD_TO_CLUSTERS"),onClick:function(t){e.trigger("cluster.tag.bind",{detail:t,getList:e.clusterStore.fetchAllCluster,success:e.routing.query})}},{key:"hasBundled",icon:"eye",text:t("REMOVE_FROM_CLUSTERS"),action:"hasBundled",disabled:function(e){var t;return!(null==e||null===(t=e.clusters)||void 0===t?void 0:t.length)},onClick:function(t){e.trigger("cluster.tag.hasBundled",{detail:t,getList:e.clusterStore.fetchAllCluster,success:e.routing.query})}},{key:"delete",icon:"trash",text:t("DELETE"),action:"delete",onClick:function(t){return e.trigger("cluster.tag.delete",{type:e.name,resource:t.name,detail:t,success:e.routing.query})}}]}}]),n}(m.Component))||p)||p)||p)||p)||p;r.default=w},3868:function(e,t,r){e.exports={banner:"_8MR_jkuxX3BO24ISjg65o",wrapper:"_2_LExZycdD34qPtVII-cl-",clusterTagItem:"_2-621emWvGyt67MEm5v4NS",label:"_1R5k1j8Y_KUzpUHIoj_sqP",value:"Qtmr8FVzhABs8l5KJ_nvB",loading:"_2pXZ8G1tXWMPRfWtv8hzmv"}},3869:function(e,t,r){"use strict";r(15);var n=r(20);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=n(r(1217)),o=n(r(1411)),u=n(r(1222)),i=n(r(1223)),c=n(r(1225)),l=n(r(1226)),s=n(r(1228)),d=n(r(1413)),f=n(r(1414)),p=n(r(1415)),m=n(r(1229)),h=n(r(1230)),g=n(r(1843)),y=n(r(1231)),v=n(r(1418)),_=r(1846),E=n(r(3978)),O=n(r(3982)),b=n(r(1848)),S=n(r(3991)),k=n(r(3992)),C=n(r(4004)),T=n(r(4014)),D=n(r(4036)),A=n(r(4040)),N=n(r(4043)),R=n(r(4047)),M=n(r(4052)),P=n(r(4057)),I=n(r(1235)),w="/clusters/:cluster",L=[{path:"".concat(w,"/nodes/:node"),component:k.default},{path:"".concat(w,"/edgenodes/:node"),component:C.default},{path:"".concat(w,"/customresources/:name"),component:N.default},{path:"".concat(w,"/roles/:name"),component:R.default},{path:["".concat(w,"/alert-rules/builtin/:name"),"".concat(w,"/alert-rules/:name")],component:_.ClusterAlertPolicyDetail},{path:"".concat(w,"/log-collections/:component/:name"),component:M.default},{path:"".concat(w,"/components/:namespace/:name"),component:A.default},{path:"".concat(w,"/gateways/:component/:gatewayName"),component:I.default},{path:"".concat(w,"/storageclasses/:name"),component:D.default},{path:"".concat(w,"/ippools/:name"),component:P.default},{path:"".concat(w,"/pv/:name"),component:b.default},{path:"".concat(w,"/volume-snapshot-content/:name"),component:E.default},{path:"".concat(w,"/volume-snapshot-classes/:name"),component:O.default},{path:"".concat(w,"/projects/:namespace"),component:S.default,routes:[{path:"".concat(w,"/projects/:namespace/deployments/:name"),component:a.default},{path:"".concat(w,"/projects/:namespace/statefulsets/:name"),component:o.default},{path:"".concat(w,"/projects/:namespace/daemonsets/:name"),component:u.default},{path:"".concat(w,"/projects/:namespace/jobs/:name"),component:i.default},{path:"".concat(w,"/projects/:namespace/cronjobs/:name"),component:c.default},{path:"".concat(w,"/projects/:namespace/services/:name"),component:l.default},{path:"".concat(w,"/projects/:namespace/ingresses/:name"),component:s.default},{path:"".concat(w,"/projects/:namespace/secrets/:name"),component:d.default},{path:"".concat(w,"/projects/:namespace/configmaps/:name"),component:f.default},{path:"".concat(w,"/projects/:namespace/serviceaccounts/:name"),component:p.default},{path:"".concat(w,"/projects/:namespace/pods/:podName/containers/:containerName"),component:h.default},{path:"".concat(w,"/projects/:namespace/pods/:podName"),component:m.default},{path:"".concat(w,"/projects/:namespace/volume-snapshots/:name"),component:v.default},{path:"".concat(w,"/projects/:namespace/volumes/:name"),component:y.default},{path:"".concat(w,"/projects/:namespace/networkpolicies/:name"),component:g.default},{path:"".concat(w,"/projects/:namespace"),component:T.default}]}];t.default=L},3978:function(e,r,n){"use strict";n(15);var a=n(20);n(12),n(109),n(5),n(16),n(4),n(23),n(24),n(17),n(62),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,n(12),n(109),n(45),n(5),n(28),n(42),n(16),n(4),n(22),n(23),n(57),n(24),n(17),n(62);var o=a(n(315)),u=a(n(43));n(41);var i,c=a(n(44)),l=a(n(36)),s=a(n(37)),d=a(n(55)),f=a(n(56)),p=a(n(51)),m=a(n(0)),h=a(n(63)),g=n(239),y=n(186),v=a(n(795)),_=n(52),E=n(791),O=a(n(1213)),b=a(n(805)),S=n(471),k=a(n(3979));function C(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,p.default)(e);if(t){var a=(0,p.default)(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return(0,f.default)(this,r)}}var T=(0,g.inject)("rootStore")(i=(0,g.observer)(i=(0,E.trigger)(i=function(e){(0,d.default)(n,e);var r=C(n);function n(){var e;(0,l.default)(this,n);for(var a=arguments.length,o=new Array(a),i=0;i0&&void 0!==arguments[0]?arguments[0]:{},t=a.store.detail,r=t.cluster,n=t.name;e.keyword&&(e.name=e.keyword,delete e.keyword),a.volumeSnapshotStore.fetchList(b({volumeSnapshotClassName:n,cluster:r},e))},a.getColumns=function(){return[{title:t("NAME"),dataIndex:"name",render:function(e,t){return f.default.createElement(g.default,{icon:"snapshot",iconSize:40,title:(0,m.getDisplayName)(t),to:"/clusters/".concat(t.cluster,"/projects/").concat(t.namespace,"/volume-snapshots/").concat(e),desc:t.snapshotClassName,noLink:!0})}},{title:t("STATUS"),dataIndex:"backupStatus",width:"20.5%",render:function(e,r){return f.default.createElement(v.default,{type:r.readyToUse?"ready":"failed",name:r.readyToUse?t("READY"):t("UNREADY")})}},{title:t("CAPACITY"),dataIndex:"restoreSize",width:"20.5%",render:function(e){return e}},{title:t("CREATION_TIME_TCAP"),dataIndex:"createTime",width:"20.5%",render:function(e){return(0,m.getLocalTime)(e).format("YYYY-MM-DD HH:mm:ss")}}]},a.volumeSnapshotStore=e.volumeSnapshotStore||new h.default,a}return(0,c.default)(n,[{key:"componentDidMount",value:function(){this.handleFetch()}},{key:"render",value:function(){var e=this.volumeSnapshotStore.list,r=e.data,n=e.filters,a=e.isLoading,o={total:e.total,page:e.page,limit:e.limit};return f.default.createElement(y.default,{title:t("VOLUME_SNAPSHOT_PL"),loading:a,empty:t("NO_AVAILABLE_RESOURCE_VALUE",{resource:t("VOLUME_SNAPSHOT")}),className:E.default.noPadding},f.default.createElement(_.default,{className:E.default.table,data:r,columns:this.getColumns(),searchType:"name",keyword:n.name,filters:n,placeholder:t("SEARCH_BY_NAME"),pagination:o,isLoading:a,onFetch:this.handleFetch}))}},{key:"store",get:function(){return this.props.detailStore}},{key:"storageClassName",get:function(){return this.store.detail.name}}]),n}(f.default.Component))||o)||o;r.default=k},3985:function(e,t,r){e.exports={noPadding:"_160nVM5I48EClrJRzVwIZM"}},3991:function(e,t,r){"use strict";r(15);var n=r(20),a=r(157);r(29),r(4),r(22),r(23),r(24),r(17),r(38),r(62),r(32),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r(45),r(29),r(42),r(4),r(22),r(23),r(57),r(24),r(17),r(38),r(62),r(32);var o=n(r(43));r(41);var u,i=n(r(44)),c=n(r(36)),l=n(r(37)),s=n(r(55)),d=n(r(56)),f=n(r(51)),p=a(r(0)),m=r(239),h=r(186),g=r(317),y=n(r(439));function v(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,f.default)(e);if(t){var a=(0,f.default)(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return(0,d.default)(this,r)}}var _=(0,m.inject)("rootStore")(u=(0,m.observer)(u=function(e){(0,s.default)(n,e);var t,r=v(n);function n(e){var t;return(0,c.default)(this,n),(t=r.call(this,e)).store=new y.default,t.init(e.match.params),t}return(0,l.default)(n,[{key:"init",value:(t=(0,i.default)(o.default.mark((function e(t){return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.store.initializing=!0,e.next=3,Promise.all([this.store.fetchDetail(t),this.props.rootStore.getRules(t)]);case 3:this.store.initializing=!1;case 4:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})},{key:"render",value:function(){return this.store.initializing?p.default.createElement(h.Loading,{className:"ks-page-loading"}):p.default.createElement(m.Provider,{projectStore:this.store},(0,g.renderRoutes)(this.props.route.routes))}},{key:"project",get:function(){return this.props.match.params.namespace}}]),n}(p.Component))||u)||u;t.default=_},3992:function(e,r,n){"use strict";n(15);var a=n(20);n(12),n(109),n(5),n(86),n(16),n(4),n(23),n(24),n(17),n(62),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,n(12),n(109),n(45),n(5),n(86),n(42),n(16),n(4),n(23),n(57),n(24),n(17),n(62);var o,u=a(n(315)),i=a(n(36)),c=a(n(37)),l=a(n(55)),s=a(n(56)),d=a(n(51)),f=a(n(0)),p=n(14),m=n(239),h=a(n(26)),g=a(n(63)),y=n(186),v=n(52),_=n(444),E=n(791),O=a(n(856)),b=a(n(823)),S=a(n(795)),k=a(n(3993));function C(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,d.default)(e);if(t){var a=(0,d.default)(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return(0,s.default)(this,r)}}var T=(0,m.inject)("rootStore")(o=(0,m.observer)(o=(0,E.trigger)(o=function(e){(0,l.default)(n,e);var r=C(n);function n(){var e;(0,i.default)(this,n);for(var a=arguments.length,o=new Array(a),u=0;u=0;return[{key:"editYaml",type:"default",text:t("EDIT_YAML"),action:"edit",onClick:function(){return e.trigger("resource.yaml.edit",{detail:(0,D.toJS)(e.store.detail),readOnly:!1,success:e.fetchData})}},{key:"setDefault",icon:"pen",text:t("SET_AS_DEFAULT_STORAGE_CLASS"),action:"edit",onClick:function(){return e.trigger("storageclass.set.default",{detail:(0,D.toJS)(e.store.detail),cluster:n,defaultStorageClass:e.defaultStorageClass.name,success:e.fetchData})}},{key:"accessor",icon:function(){return E.default.createElement(E.default.Fragment,null,E.default.createElement("img",{src:"/assets/storageclass-tree.svg",style:{width:"16px",marginRight:"12px"}}))},text:t("SET_AUTHORIZATION_RULES"),action:"edit",show:a&&globals.app.hasKSModule("storage-utils"),onClick:(r=(0,d.default)(u.default.mark((function t(){return u.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.checkAccessorExist();case 2:e.trigger("storageclass.accessor",{storageClassName:(0,O.default)(e.store.detail,"name"),shouldAddCrd:e.state.shouldAddCrd,store:e.accessorStore,detail:(0,D.toJS)(e.accessorStore.detail),cluster:n,success:e.fetchData});case 3:case"end":return t.stop()}}),t)}))),function(){return r.apply(this,arguments)})},{key:"funcManage",icon:"slider",text:t("SET_VOLUME_OPERATIONS"),action:"edit",onClick:function(){return e.trigger("storageclass.volume.function.update",{detail:(0,D.toJS)(e.store.detail),StorageClassStore:e.store,success:e.fetchData})}},{key:"autoResizer",icon:function(){return E.default.createElement(E.default.Fragment,null,E.default.createElement("img",{src:"/assets/storageclass_autoresizer.svg",style:{width:"16px",marginRight:"12px"}}))},text:t("SET_AUTO_EXPANSION"),action:"edit",disabled:!a||!(0,O.default)((0,D.toJS)(e.store.detail),"allowVolumeExpansion",!1),show:globals.app.hasKSModule("storage-utils"),onClick:function(){return e.trigger("storageclass.pvc.autoresizer",{detail:(0,D.toJS)(e.store.detail),StorageClassStore:e.store,success:e.fetchData})}},{key:"delete",icon:"trash",text:t("DELETE"),action:"delete",type:"danger",onClick:function(){return e.trigger("storageclass.delete",{type:e.name,detail:(0,D.toJS)(e.store.detail),accessorStore:e.accessorStore,cluster:n,success:e.returnTolist})}}]},e.getAttrs=function(){var r,n,a=e.store.detail,o=void 0===a?{}:a;return(0,b.default)(o)?null:[{name:t("storageclasses"),value:t(null!==(r=null===(n=L.storageClasses.find((function(e){return e.value===o.storagetype})))||void 0===n?void 0:n.label)&&void 0!==r?r:L.storageClasses[3].label)},{name:t("PROVISIONER"),value:o.provisioner},{name:t("DEFAULT_STORAGE_CLASS"),value:o.default?t("YES"):"-"},{name:t("ALLOW_VOLUME_EXPANSION"),value:o.allowVolumeExpansion?t("TRUE"):t("FALSE")},{name:t("RECLAIM_POLICY"),value:o.reclaimPolicy},{name:t("ALLOW_VOLUME_SNAPSHOT"),value:o.supportSnapshot?t("TRUE"):t("FALSE")}]},e.returnTolist=function(){e.props.rootStore.routing.push(e.listUrl)},e}return(0,m.default)(n,[{key:"componentDidMount",value:function(){var e=this.props.match.params.cluster;this.store.fetchList({limit:-1,cluster:e}),this.fetchData()}},{key:"render",value:function(){var e={detailStore:this.store};if(this.store.isLoading&&!this.store.detail.name)return E.default.createElement(k.Loading,{className:"ks-page-loading"});var r={module:this.module,name:(0,C.getDisplayName)(this.store.detail),desc:this.store.detail.description,operations:this.getOperations(),attrs:this.getAttrs(),breadcrumbs:[{label:t("STORAGE_CLASS_PL"),url:this.listUrl}]};return E.default.createElement(I.default,(0,o.default)({stores:e,routes:w.default},r))}},{key:"defaultStorageClass",get:function(){return(0,D.toJS)(this.store.list).data.find((function(e){return e.default}))||{}}},{key:"name",get:function(){return"STORAGE_CLASS"}},{key:"module",get:function(){return"storageclasses"}},{key:"listUrl",get:function(){var e=this.props.match.params.cluster;return"/clusters/".concat(e,"/storageclasses")}}]),n}(E.default.Component),s=(0,_.default)(l.prototype,"ksVersion",[D.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),l),Y=(0,S.inject)("rootStore")((0,S.observer)((0,T.trigger)(z)));r.default=Y;var V=z;r.Component=V},4037:function(e,t,r){"use strict";r(15);var n=r(20);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=r(317),o=n(r(4038)),u="/clusters/:cluster/storageclasses/:name",i=[{name:"volumes",path:"".concat(u,"/volumes"),title:"PERSISTENT_VOLUME_CLAIM_PL",component:o.default},(0,a.getIndexRoute)({path:u,to:"".concat(u,"/volumes"),exact:!0}),(0,a.getIndexRoute)({path:"*",to:"/404",exact:!0})];t.default=i},4038:function(e,r,n){"use strict";var a=n(20);n(12),n(11),n(6),n(18),n(16),n(9),n(13),n(10),n(4),n(23),n(17),n(7),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,n(12),n(45),n(11),n(6),n(18),n(28),n(42),n(16),n(34),n(15),n(9),n(13),n(10),n(4),n(23),n(57),n(17),n(7);var o,u=a(n(30)),i=a(n(36)),c=a(n(37)),l=a(n(55)),s=a(n(56)),d=a(n(51)),f=a(n(0)),p=n(239),m=n(52),h=a(n(831)),g=a(n(26)),y=n(186),v=a(n(789)),_=a(n(788)),E=a(n(801)),O=a(n(795)),b=a(n(873)),S=a(n(1131)),k=a(n(3)),C=a(n(4039));function T(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function D(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=a.store.detail,r=t.cluster,n=t.name;e.keyword&&(e.name=e.keyword,delete e.keyword),a.volumeStore.fetchList(D({storageClassName:n,cluster:r},e))},a.getColumns=function(){return[{title:t("NAME"),dataIndex:"name",render:function(e,t){return f.default.createElement(_.default,{icon:"storage",title:(0,m.getDisplayName)(t),noLink:!0})}},{title:t("STATUS"),dataIndex:"phase",width:"13%",render:function(e){return f.default.createElement(O.default,{type:e,name:t("VOLUME_STATUS_".concat(e.toUpperCase()))})}},{title:t("CAPACITY"),dataIndex:"capacity",width:"13%",render:function(e){return e||"-"}},{title:t("MOUNT_STATUS"),dataIndex:"inUse",width:"13%",render:function(e,t){return f.default.createElement(S.default,{namespace:t.namespace,cluster:t.cluster,name:t.name})}},{title:t("PROJECT"),dataIndex:"namespace",key:"namespace",width:"13%",customizable:!0,render:function(e){return(0,m.showNameAndAlias)(e,"project")}},{title:t("CREATION_TIME_TCAP"),dataIndex:"createTime",width:"21%",render:function(e){return(0,m.getLocalTime)(e).format("YYYY-MM-DD HH:mm:ss")}}]},a.renderResizeItem=function(e){var t=e.src,r=e.title,n=e.des,a=e.iconName,o=e.key;return f.default.createElement("div",{key:o,className:(0,k.default)(C.default.item,C.default.item_bg)},a?f.default.createElement(y.Icon,{name:a,size:40}):f.default.createElement("img",{src:t,className:C.default.icon}),f.default.createElement("div",null,f.default.createElement("span",{className:C.default.title},r),f.default.createElement("span",{className:C.default.des},n)))},a.renderResize=function(){var e=a.props.detailStore.detail.annotations,r=JSON.parse((0,g.default)(e,"resize.kubesphere.io/enabled","false")),n=JSON.parse((0,g.default)(e,"restart.kubesphere.io/enabled","false")),o=(0,g.default)(e,"resize.kubesphere.io/storage-limit","10000Gi"),u=(0,g.default)(e,"resize.kubesphere.io/threshold","10%"),i=(0,g.default)(e,"resize.kubesphere.io/increase","10%"),c=(0,g.default)(e,"restart.kubesphere.io/max-time","300"),l={title:t("VALUE_TIMEOUT",{value:c}),iconName:"history-duotone",des:t("RESTART_WORKLOAD_AUTOMATICALLY")},s=[{iconName:"storage",title:o,des:t("MAXIMUM_SIZE_SCAP")},{src:"/assets/chart.svg",title:u,des:t("THRESHOLD")},{iconName:"stretch",title:i,des:t("INCREMENT")}];return n&&s.push(l),r&&globals.app.hasKSModule("storage-utils")&&f.default.createElement(v.default,null,f.default.createElement("div",{className:(0,k.default)(C.default.item,C.default.top)},f.default.createElement("img",{src:"/assets/storageclass_autoresizer.svg",className:C.default.icon}),f.default.createElement("div",null,f.default.createElement("span",{className:C.default.title},t("AUTO_EXPANSION")),f.default.createElement("span",{className:C.default.des},t("AUTO_EXPANSION_DESC")))),f.default.createElement("div",{className:C.default.bottom},s.map((function(e,t){return a.renderResizeItem(D(D({},e),{},{key:t}))}))))},a.volumeStore=e.volumeStore||new h.default,a}return(0,c.default)(n,[{key:"componentDidMount",value:function(){this.handleFetch()}},{key:"render",value:function(){var e=this.volumeStore.list,r=e.data,n=e.filters,a=e.isLoading,o={total:e.total,page:e.page,limit:e.limit};return f.default.createElement(f.default.Fragment,null,this.renderResize(),f.default.createElement(E.default,{title:t("PERSISTENT_VOLUME_CLAIM_PL"),loading:a,empty:t("NO_AVAILABLE_RESOURCE_VALUE",{resource:t("PERSISTENT_VOLUME_CLAIM")})},f.default.createElement(b.default,{className:C.default.table,data:r,columns:this.getColumns(),searchType:"name",keyword:n.name,filters:n,placeholder:t("SEARCH_BY_NAME"),pagination:o,isLoading:a,onFetch:this.handleFetch})))}},{key:"store",get:function(){return this.props.detailStore}},{key:"storageClassName",get:function(){return this.store.detail.name}}]),n}(f.default.Component))||o)||o;r.default=N},4039:function(e,t,r){e.exports={table:"_2kjHtHOfFmm6itggAkoQAL",top:"_5cglYSZWbQvrCmvoMyqxP",item:"_21kLc98uyqQuBRc4Q-dyhM",icon:"_1vTN6gl6PThH5CifVSvUo6",title:"_1QIhBOEC_Y-VZV4BPZvjdr",des:"_3NV29u5T-Tku0Cp7CeL7d",bottom:"z1wHL-lLdkBj_ZwzB6voh",item_bg:"_2TzaGW5k734_6hWUzqgCSv"}},4040:function(e,r,n){"use strict";n(15);var a=n(20);n(12),n(109),n(5),n(16),n(4),n(23),n(24),n(17),n(62),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,n(12),n(109),n(45),n(5),n(42),n(16),n(4),n(23),n(57),n(24),n(17),n(62);var o,u=a(n(315)),i=a(n(36)),c=a(n(37)),l=a(n(55)),s=a(n(56)),d=a(n(51)),f=a(n(0)),p=n(239),m=n(186),h=n(52),g=n(434),y=a(n(1807)),v=a(n(795)),_=a(n(823)),E=a(n(4041));function O(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,d.default)(e);if(t){var a=(0,d.default)(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return(0,s.default)(this,r)}}var b=(0,p.inject)("rootStore")(o=(0,p.observer)(o=function(e){(0,l.default)(n,e);var r=O(n);function n(){var e;(0,i.default)(this,n);for(var a=arguments.length,o=new Array(a),u=0;u0&&void 0!==arguments[0]?arguments[0]:{},r=e.props.cluster;return t.name&&(t.nameAndAlias=t.name,delete t.name),e.projectStore.fetchList(S(S({cluster:r},t),{},{limit:-1}))},e.handleOk=function(){var t=e.props.onOk,r=e.state.namespace,n=e.projectStore.list.data.find((function(e){return e.name===r}));t&&(null==t||t(n))},e.projectStore=new y.default,e.state={namespace:""},e}return(0,s.default)(n,[{key:"componentDidMount",value:function(){this.fetchProjects()}},{key:"getProjects",value:function(){var e=this.props.defaultValue,t=this.projectStore.list.data,r=t.filter((function(e){return"Terminating"!==e.status})).map((function(e){return{label:(0,_.showNameAndAlias)(e),value:e.name,disabled:e.isFedManaged,isFedManaged:e.isFedManaged}}));return e&&!t.find((function(t){return t.name===e}))&&r.unshift({label:e,value:e}),r}},{key:"render",value:function(){var e=this.props.onCancel,r=this.state.namespace;return m.default.createElement("div",{className:(0,h.default)(O.default.item)},m.default.createElement(g.Select,{options:this.getProjects(),isLoading:this.projectStore.list.isLoading,onChange:this.handleChange,defaultValue:r}),m.default.createElement("div",{className:O.default.operate},m.default.createElement(g.Button,{type:"control",onClick:this.handleOk},t("OK")),m.default.createElement(g.Button,{onClick:e},t("CANCEL"))))}}]),n}(m.default.Component),u.propTypes={onOk:v.default.func,onCancel:v.default.func},o=i))||o;r.default=C},4069:function(e,t,r){e.exports={item:"_3BPuVvwzk_ge6XiLGhcP6v",operate:"HrIC05qaTJCYxqZGeOZP8"}},4070:function(e,t,r){e.exports={panel:"_2yziRuevY1NN2X0AGAnWlQ",titleWrapper:"MbTA39N9Zn2UUDj-GAUOV",title:"_3Kgi3PGvirCbjpoBiX0lZa"}},4071:function(e,t,r){"use strict";r(15);var n=r(20);r(5),r(4),r(23),r(24),r(17),r(62),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r(45),r(5),r(42),r(4),r(23),r(57),r(24),r(17),r(62);var a,o=n(r(36)),u=n(r(37)),i=n(r(55)),c=n(r(56)),l=n(r(51)),s=n(r(0)),d=r(239),f=n(r(849));function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,l.default)(e);if(t){var a=(0,l.default)(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return(0,c.default)(this,r)}}var m=(0,d.inject)("detailStore")(a=(0,d.observer)(a=function(e){(0,i.default)(r,e);var t=p(r);function r(){var e;(0,o.default)(this,r);for(var n=arguments.length,a=new Array(n),u=0;uspan{margin-left:4px}._1qjLklC2JUMbrIwB1g79Hk{display:-ms-flexbox;display:flex;padding:8px;border-radius:2px;background-color:#fff;-ms-flex-align:center;align-items:center;border:1px solid transparent;-webkit-transition:all .3s ease;-o-transition:all .3s ease;transition:all .3s ease;cursor:pointer}._1qjLklC2JUMbrIwB1g79Hk._1H1hQxC4CBLI54qDMSBxda{opacity:.7}._1qjLklC2JUMbrIwB1g79Hk._1H1hQxC4CBLI54qDMSBxda:hover{-webkit-box-shadow:none;box-shadow:none;border-color:transparent}._1qjLklC2JUMbrIwB1g79Hk ._39HEUMTKtnJRkqWNY8ncIH{-ms-flex:1 1;flex:1 1}._1qjLklC2JUMbrIwB1g79Hk ._29St8pjb_Msm4R7o-VJCEM>div,._1qjLklC2JUMbrIwB1g79Hk ._29St8pjb_Msm4R7o-VJCEM>p{text-align:right}._1qjLklC2JUMbrIwB1g79Hk+._1qjLklC2JUMbrIwB1g79Hk{margin-top:8px}._1qjLklC2JUMbrIwB1g79Hk:hover{-webkit-box-shadow:0 4px 8px 0 rgba(36,46,66,.2);box-shadow:0 4px 8px 0 rgba(36,46,66,.2);border-color:#79879c}.JXASYiU6D6Vir-77S8jPn{-ms-flex:auto;flex:auto;display:-ms-flexbox;display:flex;gap:12px;padding:6px 0 6px 12px;background-color:#eff4f9}.JXASYiU6D6Vir-77S8jPn ._2kZ_paFfCDfS54sVYxO5uP{-ms-flex:1 1;flex:1 1;margin-right:12px}.JXASYiU6D6Vir-77S8jPn .button+.button{margin-left:0}.Bcl945VYxNKukjCmwWYbH{margin-bottom:12px;background-color:#f9fbfd}.Bcl945VYxNKukjCmwWYbH>div:nth-child(2){padding:0 12px}._1akEUPD--PdefXH7mMFzRh{max-width:1400px;padding:40px 20px 0;margin:0 auto}._1akEUPD--PdefXH7mMFzRh p{color:#79879c}._1oOVvfOwX0wdLxlAHCW05L{margin-top:20px;padding-bottom:32px;list-style:none}._1oOVvfOwX0wdLxlAHCW05L .h6{line-height:1.43;margin-bottom:12px}._23AMlY-PP_B8q-EWe9Nusy{display:inline-block;height:20px;padding:0 8px;margin-left:8px;border-radius:10px;background-color:#abb4be;font-weight:500;color:#fff}._1Naiqed2b_IbMjwTPBJalB{height:226px;border-radius:4px;padding:32px 0;-webkit-box-shadow:0 4px 8px 0 rgba(36,46,66,.06);box-shadow:0 4px 8px 0 rgba(36,46,66,.06);background-color:#fff;text-align:center}._1Naiqed2b_IbMjwTPBJalB p{width:586px;margin:20px auto 0}._3q94sgDETrKXBctIlXBfsM{-ms-flex-pack:justify;justify-content:space-between}._3q94sgDETrKXBctIlXBfsM,._3q94sgDETrKXBctIlXBfsM .IBJR_WKxnOiMS6lYLonFG{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}._3q94sgDETrKXBctIlXBfsM .IBJR_WKxnOiMS6lYLonFG{font-family:PingFang SC,Lantinghei SC,Helvetica Neue,Helvetica,Arial,Microsoft YaHei,微软雅黑,STHeitiSC-Light,simsun,宋体,WenQuanYi Zen Hei,WenQuanYi Micro Hei,sans-serif;font-size:12px;font-weight:600;font-style:normal;font-stretch:normal;line-height:1.67;letter-spacing:normal;color:#36435c;cursor:pointer}._3q94sgDETrKXBctIlXBfsM .h6{margin-bottom:0}._3q94sgDETrKXBctIlXBfsM .h6:last-of-type{cursor:pointer}._3jc3swHeh4UBUKxi7Knl9E{position:fixed;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}._1O2jUyZCK5QvwVHX6HFiz5{display:-ms-flexbox;display:flex;padding:10px 20px;gap:20px;background:#262e40;-ms-flex-align:center;align-items:center;border-radius:4px}._1O2jUyZCK5QvwVHX6HFiz5 .button-flat,._1O2jUyZCK5QvwVHX6HFiz5 label.checkbox span.label-value{color:#fff}._1O2jUyZCK5QvwVHX6HFiz5 .button-flat:hover{color:#36435c}._1O2jUyZCK5QvwVHX6HFiz5>div{-ms-flex:0 1;flex:0 1}._1O2jUyZCK5QvwVHX6HFiz5>div:last-of-type{-ms-flex:auto;flex:auto;text-align:right}._18G3PV_M9QmHNm_Pe3L0Bx{display:-ms-inline-flexbox;display:inline-flex;margin-right:8px;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;padding:0 4px;min-width:56px;-ms-flex-pack:center;justify-content:center;gap:4px;height:20px;border-radius:2px;font-weight:600;font-size:12px;line-height:20px}._18G3PV_M9QmHNm_Pe3L0Bx._22np8xSZf0UCnE96S_GI16{background:#ffe1be;color:#8d663e}._18G3PV_M9QmHNm_Pe3L0Bx._2U2V93_vAvEaumL9ON_mvg{background:#242e42;color:#fff}._18G3PV_M9QmHNm_Pe3L0Bx._2i8Gsk7p8U7oR1hmzywLgD{background:#c7deef;color:#326e93}._18G3PV_M9QmHNm_Pe3L0Bx._1GT3lsKPy9_-kGgfpWfFop{background:#c4e6d4;color:#3b747a}.x50n5e8tRjEUlvkd5XuBb{color:#329dce;padding:0 4px;cursor:pointer;font-weight:600}.E0vtK-35j9eQt49Mf6NsA{padding:0;bottom:0!important;max-height:calc(100vh - 100px)}._2Bfr8X-g7qOWhCWvYqdfMP{padding:0;-webkit-box-shadow:none;box-shadow:none}._7jLDaj4UuqLC0FWLjpwWf>div{padding:12px;background-color:#f9fbfd;-webkit-transition:all .3s ease-in-out;-o-transition:all .3s ease-in-out;transition:all .3s ease-in-out;cursor:pointer;border-radius:4px}._7jLDaj4UuqLC0FWLjpwWf>div:first-child{margin-bottom:8px}._7jLDaj4UuqLC0FWLjpwWf>div:hover{background-color:#eff4f9}._7jLDaj4UuqLC0FWLjpwWf>div:active{background-color:#e3e9ef}.BVjeWOWAID34-TEF0b_fR{margin-top:8px}.BVjeWOWAID34-TEF0b_fR ._16Av2PREJGprEr_93DL4X4{margin-bottom:8px;font-size:12px;line-height:1.67;font-family:Roboto,PingFang SC,Lantinghei SC,Helvetica Neue,Helvetica,Arial,Microsoft YaHei,微软雅黑,STHeitiSC-Light,simsun,宋体,WenQuanYi Zen Hei,WenQuanYi Micro Hei,sans-serif;font-style:normal;font-stretch:normal;letter-spacing:normal;font-weight:700;color:#242e42}._1FOMscQVAI8cyABa4Bk5SV{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-direction:row;flex-direction:row}._1FOMscQVAI8cyABa4Bk5SV>div{width:calc(50% - 4px);height:64px;padding:12px;-ms-flex-align:center;align-items:center;margin-right:8px;margin-bottom:8px;background:#f9fbfd;border-radius:4px;overflow:hidden}._1FOMscQVAI8cyABa4Bk5SV>div>div{width:100%}._1FOMscQVAI8cyABa4Bk5SV>div>div div:first-child{-o-text-overflow:ellipsis;text-overflow:ellipsis;white-space:nowrap;word-wrap:normal;overflow:hidden}._1FOMscQVAI8cyABa4Bk5SV>div:nth-child(2n){margin-right:0}._2mo2Puhwc8tT6e9PomRdYU{padding:0;-webkit-box-shadow:none;box-shadow:none}._2mo2Puhwc8tT6e9PomRdYU ._2WYsLXyHOnbrxXt0OFY1Km{display:-ms-flexbox;display:flex;margin-bottom:8px;font-family:PingFang SC,Lantinghei SC,Helvetica Neue,Helvetica,Arial,Microsoft YaHei,微软雅黑,STHeitiSC-Light,simsun,宋体,WenQuanYi Zen Hei,WenQuanYi Micro Hei,sans-serif;font-size:12px;font-weight:600;font-style:normal;font-stretch:normal;line-height:1.67;letter-spacing:normal;color:#36435c;font-size:14px;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:center;align-items:center}._2mo2Puhwc8tT6e9PomRdYU ._2WYsLXyHOnbrxXt0OFY1Km>div{font-size:14px}._2mo2Puhwc8tT6e9PomRdYU ._2WYsLXyHOnbrxXt0OFY1Km .radio-group{height:24px;width:76px;padding:2px;border-radius:4px;border:none;background-color:#e3e9ef}._2mo2Puhwc8tT6e9PomRdYU ._2WYsLXyHOnbrxXt0OFY1Km .radio-group label{min-width:36px;width:36px!important;height:20px;background-color:#e3e9ef;border-radius:2px!important;color:#79879c;padding:0!important}._2mo2Puhwc8tT6e9PomRdYU ._2WYsLXyHOnbrxXt0OFY1Km .radio-group .checked{background:#fff;border-radius:2px;color:#242e42}._2mo2Puhwc8tT6e9PomRdYU .u4rCe6nDLY5vbaq5aXJDQ{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}._2mo2Puhwc8tT6e9PomRdYU .u4rCe6nDLY5vbaq5aXJDQ ._25M1cGJCz3WgAIQhGkQ6JX{-ms-flex:3 1;flex:3 1}._2mo2Puhwc8tT6e9PomRdYU .u4rCe6nDLY5vbaq5aXJDQ ._25M1cGJCz3WgAIQhGkQ6JX:first-child{-ms-flex:2 1;flex:2 1;margin-right:12px}._2mo2Puhwc8tT6e9PomRdYU .RtrNzNpCozOK2jXlZFrPb{position:relative;margin-top:12px;-webkit-transition:all .3s ease;-o-transition:all .3s ease;transition:all .3s ease}._2mo2Puhwc8tT6e9PomRdYU ._3-eBd_RaqO30cf2v7AeZWY{display:-ms-flexbox;display:flex;padding:12px;margin-bottom:8px;background-color:#f9fbfd;-ms-flex-align:center;align-items:center;border-radius:4px}._2mo2Puhwc8tT6e9PomRdYU ._3ODrxke8bqLQHUb7302kOC{width:calc(100% - 182px)}._2mo2Puhwc8tT6e9PomRdYU ._3ODrxke8bqLQHUb7302kOC>div{width:100%}._2mo2Puhwc8tT6e9PomRdYU ._3ODrxke8bqLQHUb7302kOC>div>div:last-child{overflow:hidden;-o-text-overflow:ellipsis;text-overflow:ellipsis;white-space:nowrap}._2mo2Puhwc8tT6e9PomRdYU ._2WxN_xHdXDli_mWcI5oYGV{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}._2mo2Puhwc8tT6e9PomRdYU ._2WxN_xHdXDli_mWcI5oYGV a{max-width:calc(100% - 80px);display:inline-block;overflow:hidden;-o-text-overflow:ellipsis;text-overflow:ellipsis;white-space:nowrap}._2mo2Puhwc8tT6e9PomRdYU ._2WxN_xHdXDli_mWcI5oYGV ._3rjIYXMWaltqHcODVaa0ww{white-space:nowrap;margin-right:0}._2mo2Puhwc8tT6e9PomRdYU ._3RSzNTep-_u0G6h5xmtrsE a{max-width:100%}._2mo2Puhwc8tT6e9PomRdYU .v0DrKUbv1DFqez5KfSlC-{min-width:130px;padding:12px;margin:-12px -12px -12px auto;font-size:16px;font-weight:600;text-align:right}._2mo2Puhwc8tT6e9PomRdYU .t2fjcneoLurD1QVIju9nO{width:100%;height:32px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;background:#f9fbfd;border-radius:4px;border:none;cursor:pointer}._2mo2Puhwc8tT6e9PomRdYU .t2fjcneoLurD1QVIju9nO ._2WxN_xHdXDli_mWcI5oYGV{margin-left:4px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-weight:600;font-size:12px;line-height:20px;color:#36435c}._2mo2Puhwc8tT6e9PomRdYU ._3rjIYXMWaltqHcODVaa0ww{color:#fff;border-radius:4px;background:#36435c;padding:0 .3em;margin:0 .3em}._2mo2Puhwc8tT6e9PomRdYU ._1aPF0hZOOhyo-EPu3G8bIa{margin:12px -12px -12px;padding:12px;border-top:1px solid #ccd3db}._2mo2Puhwc8tT6e9PomRdYU ._1aPF0hZOOhyo-EPu3G8bIa button{width:100%}._165qOBnN9HAs4LrY_LK-d6{margin-top:4px;margin-bottom:8px}._165qOBnN9HAs4LrY_LK-d6 ._2vFFuGnTwzqjBij8D3BPRc{margin-bottom:8px;font-size:12px;line-height:1.67;font-family:Roboto,PingFang SC,Lantinghei SC,Helvetica Neue,Helvetica,Arial,Microsoft YaHei,微软雅黑,STHeitiSC-Light,simsun,宋体,WenQuanYi Zen Hei,WenQuanYi Micro Hei,sans-serif;font-style:normal;font-stretch:normal;letter-spacing:normal;font-weight:700;color:#242e42}._165qOBnN9HAs4LrY_LK-d6 ._20PSSvdZ2gt1lsGGJB4rsS{width:100%}._165qOBnN9HAs4LrY_LK-d6 ._20PSSvdZ2gt1lsGGJB4rsS ._2UJuf7ZQGgEclggVm__94Z{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-direction:row;flex-direction:row}._165qOBnN9HAs4LrY_LK-d6 ._20PSSvdZ2gt1lsGGJB4rsS ._2UJuf7ZQGgEclggVm__94Z>div{width:calc(50% - 4px);height:64px;padding:12px;-ms-flex-align:center;align-items:center;margin-right:8px;margin-bottom:8px;background:#f9fbfd;border-radius:4px}._165qOBnN9HAs4LrY_LK-d6 ._20PSSvdZ2gt1lsGGJB4rsS ._2UJuf7ZQGgEclggVm__94Z>div:nth-child(2n){margin-right:0}._165qOBnN9HAs4LrY_LK-d6 ._20PSSvdZ2gt1lsGGJB4rsS ._2UJuf7ZQGgEclggVm__94Z div:last-child,._165qOBnN9HAs4LrY_LK-d6 ._20PSSvdZ2gt1lsGGJB4rsS ._2UJuf7ZQGgEclggVm__94Z div:nth-last-child(2){margin-bottom:0}._1FfLhAgROftyj0IuUcQI4e{background:#f9fbfd;padding-top:0;margin-bottom:12px;border-radius:4px}._1FfLhAgROftyj0IuUcQI4e:last-child{margin-bottom:0}._1FfLhAgROftyj0IuUcQI4e ._3XEnA-pHA2CNFrAV1LnWJF{display:-ms-flexbox;display:flex;height:175px;background-color:#f9fbfd}._1FfLhAgROftyj0IuUcQI4e ._2CBIhq8TuoMF1r-JDYlLGA{font-size:12px;line-height:1.67;font-family:Roboto,PingFang SC,Lantinghei SC,Helvetica Neue,Helvetica,Arial,Microsoft YaHei,微软雅黑,STHeitiSC-Light,simsun,宋体,WenQuanYi Zen Hei,WenQuanYi Micro Hei,sans-serif;font-style:normal;font-stretch:normal;letter-spacing:normal;font-weight:700;color:#242e42;margin-bottom:12px}._1FfLhAgROftyj0IuUcQI4e ._1_444QYPwve2sPOoNmVVWH{position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%);height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;text-align:center;font-weight:600;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}._1FfLhAgROftyj0IuUcQI4e ._1G7CGL6N9PpdMV6H4PvpwD{width:360px;padding:12px;position:relative}._1FfLhAgROftyj0IuUcQI4e ._1G7CGL6N9PpdMV6H4PvpwD ._3axU54fLqK1Opc2i0QIVAa{width:345px;height:120px;position:absolute;top:44px;left:50%;-webkit-transform:translateX(-50%);-ms-transform:translateX(-50%);transform:translateX(-50%)}._1FfLhAgROftyj0IuUcQI4e ._1G7CGL6N9PpdMV6H4PvpwD ._3axU54fLqK1Opc2i0QIVAa ._1HKFmOmlSy27H88Xcdndw-{position:absolute;top:50%;left:65px;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.gGKFTd29XBoqYhN47F0EN{padding:12px;background:#fff;-webkit-box-shadow:0 4px 8px rgba(36,46,66,.06);box-shadow:0 4px 8px rgba(36,46,66,.06);border-radius:4px;-webkit-transition:all .3s;-o-transition:all .3s;transition:all .3s}.gGKFTd29XBoqYhN47F0EN:hover{-webkit-box-shadow:0 6px 16px 0 rgba(33,43,54,.2);box-shadow:0 6px 16px 0 rgba(33,43,54,.2)}.gGKFTd29XBoqYhN47F0EN .psEkXLBc8Tknh1fcEwq0R{position:relative;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:center;align-items:center;margin-bottom:12px}.gGKFTd29XBoqYhN47F0EN .psEkXLBc8Tknh1fcEwq0R .nnAGEVZwoSGU5FPr3MHhY{font-size:14px;line-height:1.43;font-family:Roboto,PingFang SC,Lantinghei SC,Helvetica Neue,Helvetica,Arial,Microsoft YaHei,微软雅黑,STHeitiSC-Light,simsun,宋体,WenQuanYi Zen Hei,WenQuanYi Micro Hei,sans-serif;font-style:normal;font-stretch:normal;letter-spacing:normal;font-weight:700;color:#242e42}.gGKFTd29XBoqYhN47F0EN .psEkXLBc8Tknh1fcEwq0R ._1rANBkB5gBrmSxmTvCrZES .icon{margin-left:4px;margin-top:-2px}.gGKFTd29XBoqYhN47F0EN .psEkXLBc8Tknh1fcEwq0R>div:last-child label{min-width:96px}.gGKFTd29XBoqYhN47F0EN .psEkXLBc8Tknh1fcEwq0R ._1sGDf57rraXGzxVxlyt5ka{position:absolute;right:0;padding:1px;-webkit-box-sizing:border-box;box-sizing:border-box}.gGKFTd29XBoqYhN47F0EN .psEkXLBc8Tknh1fcEwq0R ._1sGDf57rraXGzxVxlyt5ka .radio-button{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}.gGKFTd29XBoqYhN47F0EN ._3GkrBwSCVOVOLT3cNmYHXR{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}._3AfNjV_69JEh6a-Ki6__ME{padding:12px;background:#fff;-webkit-box-shadow:0 4px 8px rgba(36,46,66,.06);box-shadow:0 4px 8px rgba(36,46,66,.06);border-radius:4px;margin-top:12px;-webkit-transition:all .3s;-o-transition:all .3s;transition:all .3s}._3AfNjV_69JEh6a-Ki6__ME:hover{-webkit-box-shadow:0 6px 16px 0 rgba(33,43,54,.2);box-shadow:0 6px 16px 0 rgba(33,43,54,.2)}._3AfNjV_69JEh6a-Ki6__ME ._1KlUEi5CK7QfxyrYRm_PvN{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:center;align-items:center;margin-bottom:12px}._3AfNjV_69JEh6a-Ki6__ME ._1KlUEi5CK7QfxyrYRm_PvN .wxv8jUlnhu24IEsJ8B4bV{font-size:14px;line-height:1.43;font-family:Roboto,PingFang SC,Lantinghei SC,Helvetica Neue,Helvetica,Arial,Microsoft YaHei,微软雅黑,STHeitiSC-Light,simsun,宋体,WenQuanYi Zen Hei,WenQuanYi Micro Hei,sans-serif;font-style:normal;font-stretch:normal;letter-spacing:normal;font-weight:700;color:#242e42}._3AfNjV_69JEh6a-Ki6__ME ._1KlUEi5CK7QfxyrYRm_PvN ._3LIahHmW7JD-ASZ0_IvGdl{position:relative}._3AfNjV_69JEh6a-Ki6__ME ._1KlUEi5CK7QfxyrYRm_PvN ._3LIahHmW7JD-ASZ0_IvGdl button{min-width:auto}._3AfNjV_69JEh6a-Ki6__ME ._3fZrB3MhmR4IMkudBgI2Hb{margin-bottom:8px}._3AfNjV_69JEh6a-Ki6__ME ._3fZrB3MhmR4IMkudBgI2Hb ._16NEdMhyLw7u5fkRrSHGXu{display:-ms-flexbox;display:flex;margin-bottom:8px}._3AfNjV_69JEh6a-Ki6__ME ._3fZrB3MhmR4IMkudBgI2Hb ._16NEdMhyLw7u5fkRrSHGXu ._1VUPfd9JbUdb-RWTcl3s8Y{cursor:pointer;-ms-flex:1 1;flex:1 1;margin-right:8px;min-width:117px;height:86px;padding:12px;border-radius:4px;background:#f9fbfd;-webkit-transition:all .3s ease;-o-transition:all .3s ease;transition:all .3s ease}._3AfNjV_69JEh6a-Ki6__ME ._3fZrB3MhmR4IMkudBgI2Hb ._16NEdMhyLw7u5fkRrSHGXu ._1VUPfd9JbUdb-RWTcl3s8Y:last-child{margin-right:0}._3AfNjV_69JEh6a-Ki6__ME ._3fZrB3MhmR4IMkudBgI2Hb ._16NEdMhyLw7u5fkRrSHGXu ._1VUPfd9JbUdb-RWTcl3s8Y ._1g96nJUyAxnNVHQpEt-Tu4{color:#79879c;line-height:20px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;margin-bottom:4px;font-weight:600}._3AfNjV_69JEh6a-Ki6__ME ._3fZrB3MhmR4IMkudBgI2Hb ._16NEdMhyLw7u5fkRrSHGXu ._1VUPfd9JbUdb-RWTcl3s8Y ._1g96nJUyAxnNVHQpEt-Tu4 span:nth-child(2){margin:0 8px;-o-text-overflow:ellipsis;text-overflow:ellipsis;white-space:nowrap;word-wrap:normal;overflow:hidden}._3AfNjV_69JEh6a-Ki6__ME ._3fZrB3MhmR4IMkudBgI2Hb ._16NEdMhyLw7u5fkRrSHGXu ._1VUPfd9JbUdb-RWTcl3s8Y ._102usDIj3RFrFQc0qzmjkL{color:#242e42}._3AfNjV_69JEh6a-Ki6__ME ._3fZrB3MhmR4IMkudBgI2Hb ._16NEdMhyLw7u5fkRrSHGXu ._1VUPfd9JbUdb-RWTcl3s8Y ._102usDIj3RFrFQc0qzmjkL span{font-weight:600}._3AfNjV_69JEh6a-Ki6__ME ._3fZrB3MhmR4IMkudBgI2Hb ._16NEdMhyLw7u5fkRrSHGXu ._1VUPfd9JbUdb-RWTcl3s8Y ._102usDIj3RFrFQc0qzmjkL span:first-child{font-size:20px}._3AfNjV_69JEh6a-Ki6__ME ._3fZrB3MhmR4IMkudBgI2Hb ._16NEdMhyLw7u5fkRrSHGXu ._1VUPfd9JbUdb-RWTcl3s8Y ._1jJ2mvEYx3w8f0WNYtBgUn .progress{height:6px}._3AfNjV_69JEh6a-Ki6__ME ._3fZrB3MhmR4IMkudBgI2Hb ._16NEdMhyLw7u5fkRrSHGXu ._1VUPfd9JbUdb-RWTcl3s8Y ._1rMf9_vH9PUUNoTdhRT1CY{background-color:#36435c}._3AfNjV_69JEh6a-Ki6__ME ._3fZrB3MhmR4IMkudBgI2Hb ._16NEdMhyLw7u5fkRrSHGXu .BmAIrTk8YXWlhoCQ3W2RT{background:#242e42}._3AfNjV_69JEh6a-Ki6__ME ._3fZrB3MhmR4IMkudBgI2Hb ._16NEdMhyLw7u5fkRrSHGXu .BmAIrTk8YXWlhoCQ3W2RT ._1g96nJUyAxnNVHQpEt-Tu4,._3AfNjV_69JEh6a-Ki6__ME ._3fZrB3MhmR4IMkudBgI2Hb ._16NEdMhyLw7u5fkRrSHGXu .BmAIrTk8YXWlhoCQ3W2RT ._102usDIj3RFrFQc0qzmjkL{color:#fff}._3AfNjV_69JEh6a-Ki6__ME ._2CnJeYKVn7aTV8NVZDMLte{height:200px}._3AgVoyIMKNanAI4WqrWE-p{font-weight:bolder;color:#fff}._3AgVoyIMKNanAI4WqrWE-p p{white-space:nowrap}._3AgVoyIMKNanAI4WqrWE-p p i{background:#55bc8a;border-radius:50%;width:6px;height:6px;margin-right:7px;display:inline-block}._3AgVoyIMKNanAI4WqrWE-p p:not(:last-child){margin-bottom:5px}._3AgVoyIMKNanAI4WqrWE-p p:last-child{margin-bottom:0}._3AgVoyIMKNanAI4WqrWE-p p:last-child i{background:#eff4f9}._1KXDp6aGvTp3B_76jde76g{padding:12px;background:#fff;border-radius:4px;-webkit-transition:all .3s;-o-transition:all .3s;-webkit-box-shadow:0 4px 8px 0 rgba(36,46,66,.06);box-shadow:0 4px 8px 0 rgba(36,46,66,.06);margin-top:12px;transition:all .3s}._1KXDp6aGvTp3B_76jde76g:hover{-webkit-box-shadow:0 6px 16px 0 rgba(33,43,54,.2);box-shadow:0 6px 16px 0 rgba(33,43,54,.2)}._1KXDp6aGvTp3B_76jde76g .aa63oPBQk4YccjmIB7Tf9{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row}._1KXDp6aGvTp3B_76jde76g .p0KevOJsuDpyFtpWy-Pmd{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:center;align-items:center;margin-bottom:12px}._1KXDp6aGvTp3B_76jde76g .p0KevOJsuDpyFtpWy-Pmd ._3lf4VoLw6TPRzGqQQqqXAy{font-size:14px;line-height:1.43;font-family:Roboto,PingFang SC,Lantinghei SC,Helvetica Neue,Helvetica,Arial,Microsoft YaHei,微软雅黑,STHeitiSC-Light,simsun,宋体,WenQuanYi Zen Hei,WenQuanYi Micro Hei,sans-serif;font-style:normal;font-stretch:normal;letter-spacing:normal;font-weight:700;color:#242e42}._1KXDp6aGvTp3B_76jde76g ._3rWJ6cDNQm7VQRaU1blM4C{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex:1 1;flex:1 1}._1KXDp6aGvTp3B_76jde76g ._3rWJ6cDNQm7VQRaU1blM4C._3MNES7gfSxsOPIJfE685LF{-ms-flex:none;flex:none;width:360px;margin-right:12px;margin-bottom:0}._1KXDp6aGvTp3B_76jde76g ._3rWJ6cDNQm7VQRaU1blM4C ._1Kvjm9p_EFdynInmm0cLW-{background:#f9fbfd;border-radius:4px;padding:12px}._1KXDp6aGvTp3B_76jde76g ._3rWJ6cDNQm7VQRaU1blM4C ._1Kvjm9p_EFdynInmm0cLW-:last-child{margin-right:0;margin-bottom:0}._1KXDp6aGvTp3B_76jde76g ._3rWJ6cDNQm7VQRaU1blM4C ._1Kvjm9p_EFdynInmm0cLW- ._187CCI_SZXINFXBWbawtoj{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;z-index:10;margin-bottom:12px}._1KXDp6aGvTp3B_76jde76g ._3rWJ6cDNQm7VQRaU1blM4C ._1Kvjm9p_EFdynInmm0cLW- ._187CCI_SZXINFXBWbawtoj img{width:40px;height:40px}._1KXDp6aGvTp3B_76jde76g ._3rWJ6cDNQm7VQRaU1blM4C ._1Kvjm9p_EFdynInmm0cLW- ._187CCI_SZXINFXBWbawtoj ._1yqGhF3ibLvdKq8jQ74m5Z{margin-left:10px;font-size:20px}._1KXDp6aGvTp3B_76jde76g ._3rWJ6cDNQm7VQRaU1blM4C ._1Kvjm9p_EFdynInmm0cLW- ._187CCI_SZXINFXBWbawtoj ._1yqGhF3ibLvdKq8jQ74m5Z>p{line-height:24px;font-weight:600;font-size:16px}._1KXDp6aGvTp3B_76jde76g ._3rWJ6cDNQm7VQRaU1blM4C ._1Kvjm9p_EFdynInmm0cLW- ._187CCI_SZXINFXBWbawtoj ._1yqGhF3ibLvdKq8jQ74m5Z>p:last-child{color:#79879c;font-weight:400;font-size:12px}._1KXDp6aGvTp3B_76jde76g ._3rWJ6cDNQm7VQRaU1blM4C ._2P17qQOGvnv6I_q2AIevQu{height:129px;margin-bottom:12px}._1KXDp6aGvTp3B_76jde76g ._3rWJ6cDNQm7VQRaU1blM4C ._2P17qQOGvnv6I_q2AIevQu .TIDiE53zz07X2qn4FWfbn{height:50px;width:100%}._1KXDp6aGvTp3B_76jde76g ._3rWJ6cDNQm7VQRaU1blM4C ._2P17qQOGvnv6I_q2AIevQu ._2OYrYrcLQRhPNLGAvXK7h5{text-align:center;font-weight:600;margin-top:20px}._1KXDp6aGvTp3B_76jde76g ._3rWJ6cDNQm7VQRaU1blM4C ._3VMERMVFngxvFJA_26CjSZ{padding:12px;height:199px;position:relative;margin-bottom:12px}._1KXDp6aGvTp3B_76jde76g ._3rWJ6cDNQm7VQRaU1blM4C ._3VMERMVFngxvFJA_26CjSZ:last-child{margin-bottom:0}._1KXDp6aGvTp3B_76jde76g ._3rWJ6cDNQm7VQRaU1blM4C ._3VMERMVFngxvFJA_26CjSZ ._3O6cFbvaVvKT56AbX_QwpL{font-size:12px;line-height:1.67;font-family:Roboto,PingFang SC,Lantinghei SC,Helvetica Neue,Helvetica,Arial,Microsoft YaHei,微软雅黑,STHeitiSC-Light,simsun,宋体,WenQuanYi Zen Hei,WenQuanYi Micro Hei,sans-serif;font-style:normal;font-stretch:normal;letter-spacing:normal;font-weight:700;color:#242e42;margin-bottom:12px}._1KXDp6aGvTp3B_76jde76g ._3rWJ6cDNQm7VQRaU1blM4C ._3VMERMVFngxvFJA_26CjSZ ._3O6cFbvaVvKT56AbX_QwpL ._1YotQOmdCOkQBRQYot574B{margin-left:4px}._1KXDp6aGvTp3B_76jde76g ._3rWJ6cDNQm7VQRaU1blM4C ._3VMERMVFngxvFJA_26CjSZ ._3QATPh7y3GIIi3exaO4_5Y{width:100%;height:130px;position:absolute;top:28%;left:50%;-webkit-transform:translateX(-50%);-ms-transform:translateX(-50%);transform:translateX(-50%)}._1KXDp6aGvTp3B_76jde76g ._3rWJ6cDNQm7VQRaU1blM4C ._3VMERMVFngxvFJA_26CjSZ ._3QATPh7y3GIIi3exaO4_5Y ._3RmUw3Nkybn2574L0Z3tpa{width:100%;margin-right:20px}._1KXDp6aGvTp3B_76jde76g ._3rWJ6cDNQm7VQRaU1blM4C ._3VMERMVFngxvFJA_26CjSZ ._3QATPh7y3GIIi3exaO4_5Y .bOPidX29Du8n9Vdf6Rkbn{position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%);height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;text-align:center;font-weight:600;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}._1KXDp6aGvTp3B_76jde76g ._3rWJ6cDNQm7VQRaU1blM4C ._3VMERMVFngxvFJA_26CjSZ ._3QATPh7y3GIIi3exaO4_5Y ._3ki2HjqdR-jG5-iwK7mveQ{width:50px;position:absolute;top:50%;left:56px;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);text-align:center}._1KXDp6aGvTp3B_76jde76g ._3rWJ6cDNQm7VQRaU1blM4C ._3VMERMVFngxvFJA_26CjSZ ._3QATPh7y3GIIi3exaO4_5Y ._3ki2HjqdR-jG5-iwK7mveQ p:first-child{font-size:20px;line-height:1.4;font-family:Roboto,PingFang SC,Lantinghei SC,Helvetica Neue,Helvetica,Arial,Microsoft YaHei,微软雅黑,STHeitiSC-Light,simsun,宋体,WenQuanYi Zen Hei,WenQuanYi Micro Hei,sans-serif;font-style:normal;font-stretch:normal;letter-spacing:normal;font-weight:600;color:#242e42;-o-text-overflow:ellipsis;text-overflow:ellipsis;white-space:nowrap;word-wrap:normal;overflow:hidden;line-height:24px}._1KXDp6aGvTp3B_76jde76g ._3rWJ6cDNQm7VQRaU1blM4C ._3VMERMVFngxvFJA_26CjSZ ._3QATPh7y3GIIi3exaO4_5Y ._3ki2HjqdR-jG5-iwK7mveQ p:last-child{font-size:12px;color:#79879c}._1KXDp6aGvTp3B_76jde76g ._3rWJ6cDNQm7VQRaU1blM4C ._3VMERMVFngxvFJA_26CjSZ ._3QATPh7y3GIIi3exaO4_5Y ._1tzQdq-cW2zRl4MEvRpmfk{position:absolute;left:80px;width:120px;height:120px;background:#eff4f9;border-radius:50%;-webkit-transform:translateX(-50%);-ms-transform:translateX(-50%);transform:translateX(-50%);display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}._1KXDp6aGvTp3B_76jde76g ._3rWJ6cDNQm7VQRaU1blM4C ._3VMERMVFngxvFJA_26CjSZ ._3QATPh7y3GIIi3exaO4_5Y ._1tzQdq-cW2zRl4MEvRpmfk>div{width:100px;height:100px;border-radius:50%;background:#f9fbfd}._3TIkcixsbk2rfOzvmSglll{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:center;align-items:center}._3TIkcixsbk2rfOzvmSglll ._2If3z4jEFyrdpEwSOz9Cd0{font-size:20px;line-height:1.4;font-family:Roboto,PingFang SC,Lantinghei SC,Helvetica Neue,Helvetica,Arial,Microsoft YaHei,微软雅黑,STHeitiSC-Light,simsun,宋体,WenQuanYi Zen Hei,WenQuanYi Micro Hei,sans-serif;font-style:normal;font-stretch:normal;letter-spacing:normal;font-weight:600;color:#242e42}._3TIkcixsbk2rfOzvmSglll ._2d8HFTvIeFbq48T_2_INiL{display:-ms-flexbox;display:flex}._3TIkcixsbk2rfOzvmSglll ._2d8HFTvIeFbq48T_2_INiL>button{margin-right:10px}._3TIkcixsbk2rfOzvmSglll ._2d8HFTvIeFbq48T_2_INiL button{border-radius:4px;padding:5px 12px;-webkit-box-shadow:0 2px 16px 0 rgba(35,45,65,.28);box-shadow:0 2px 16px 0 rgba(35,45,65,.28)}._3TIkcixsbk2rfOzvmSglll ._2d8HFTvIeFbq48T_2_INiL button ._1LeQtqOY9e2t9Fxhx4vfwN{position:relative;top:2px;display:inline-block}._3TIkcixsbk2rfOzvmSglll ._2d8HFTvIeFbq48T_2_INiL ._2u2IPfud0Pkfs92q2QRihf{background:#e3e9ef;color:#79879c;border-color:#e3e9ef}._3y79Yhcw03152ck3knp7Sm{margin-top:0}._1oddtKEmBPr2Q78MWdiz8P{padding:12px}._1oddtKEmBPr2Q78MWdiz8P>div:last-child{margin-bottom:0}._1oddtKEmBPr2Q78MWdiz8P ._2k_QK2HXB_eu_JnMgIqnk0{width:100%;height:32px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;background:#f9fbfd;border-radius:4px;margin-bottom:12px;cursor:pointer}._1oddtKEmBPr2Q78MWdiz8P ._2k_QK2HXB_eu_JnMgIqnk0 ._1zkshTewK41i-RbRj0OILz{margin-left:4px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-weight:600;font-size:12px;line-height:20px;color:#36435c}.Bzo6m09_knXXEuHuzNYwz{height:72px;border-radius:4px;padding:12px;background:#242e42;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}._3l_a0hgmxdE69BM0ImrALf .column:first-child{padding-right:5px}._3l_a0hgmxdE69BM0ImrALf .column:last-child{padding-left:5px}.xYCZzciHY43vhVTrp7xSh{padding:12px;margin-bottom:12px;border-radius:4px;background-color:#f9fbfd}._2kmqpwwfGMsHH9oJWvLCE3{padding:12px;border-radius:4px;background-color:#fff}._3MTBbVd_VKS-expBXUCKaT{margin-bottom:12px;font-family:PingFang SC,Lantinghei SC,Helvetica Neue,Helvetica,Arial,Microsoft YaHei,微软雅黑,STHeitiSC-Light,simsun,宋体,WenQuanYi Zen Hei,WenQuanYi Micro Hei,sans-serif;font-size:12px;font-weight:600;font-style:normal;font-stretch:normal;line-height:1.67;letter-spacing:normal;color:#242e42}._3MTBbVd_VKS-expBXUCKaT .icon{margin-top:-2px}._1mVqv7Bvf0EM6_nde2Kyoc{position:relative;padding:20px 0 51px}._1mVqv7Bvf0EM6_nde2Kyoc .D50q03_8jlQUkGn4-ArPR{position:relative;width:100%;height:8px;border-radius:4px;border:1px solid #ccd3db;background-color:#f9fbfd}._1mVqv7Bvf0EM6_nde2Kyoc .D50q03_8jlQUkGn4-ArPR ._3ZgBAbIKm1KQvhHUfK1aOp{position:absolute;left:-1px;top:-1px;bottom:-1px;border-radius:4px;background-color:#479e88}._1mVqv7Bvf0EM6_nde2Kyoc .rqHnXC7ewOYA30eJNVDPX{position:relative;margin:0 60px}._1mVqv7Bvf0EM6_nde2Kyoc .rqHnXC7ewOYA30eJNVDPX>div{position:absolute;top:-12px;-webkit-transform:translateX(-50%);-ms-transform:translateX(-50%);transform:translateX(-50%);min-width:100px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center;font-family:Roboto,PingFang SC,Lantinghei SC,Helvetica Neue,Helvetica,Arial,Microsoft YaHei,微软雅黑,STHeitiSC-Light,simsun,宋体,WenQuanYi Zen Hei,WenQuanYi Micro Hei,sans-serif;font-size:12px;font-weight:400;font-style:normal;font-stretch:normal;line-height:1.67;letter-spacing:normal;color:#79879c}._1mVqv7Bvf0EM6_nde2Kyoc .kdmVG3uMIdl6SzCY33nRO{position:relative;width:16px;height:16px;margin-bottom:7px;border-radius:50%;border:1px solid #ccd3db;background-color:#f9fbfd}._1mVqv7Bvf0EM6_nde2Kyoc .kdmVG3uMIdl6SzCY33nRO._3a8-eYwYQuiJ6UzAKAsl3X{background-color:#479e88;border-color:#3b747a}._1mVqv7Bvf0EM6_nde2Kyoc .kdmVG3uMIdl6SzCY33nRO .icon{position:absolute;top:0;left:0}._1ZYGr32d6j_R5baIgXQazX{position:relative;width:100%}._2ZpzJeyVoDWjVKxqwHGm3g{display:-ms-flexbox;display:flex;padding:12px;border-radius:4px;border:1px solid #ccd3db;background-color:#fff;cursor:pointer}._2ZpzJeyVoDWjVKxqwHGm3g>div{min-width:120px;margin-right:60px}._2ZpzJeyVoDWjVKxqwHGm3g>div:first-of-type{min-width:240px}._2ZpzJeyVoDWjVKxqwHGm3g.jTlJLDldR-XG-iyh-mjK3{margin:0 -6px;padding:12px 16px;background-color:#242e42;border-color:#242e42;z-index:1}._2ZpzJeyVoDWjVKxqwHGm3g.jTlJLDldR-XG-iyh-mjK3>div>div>div,._2ZpzJeyVoDWjVKxqwHGm3g.jTlJLDldR-XG-iyh-mjK3>div>div>p{color:#fff!important}._2ZpzJeyVoDWjVKxqwHGm3g.jTlJLDldR-XG-iyh-mjK3 .kubed-icon-dark{color:hsla(0,0%,100%,.9);fill:hsla(0,0%,100%,.4)}._3f-fp8mhWq2tAQ_YVhTLKe{position:absolute;width:100%;padding:12px;border-radius:0 0 4px 4px;-webkit-box-shadow:0 4px 8px 0 rgba(121,135,156,.2);box-shadow:0 4px 8px 0 rgba(121,135,156,.2);border:1px solid #79879c;border-top-color:#242e42;background-color:#fff;opacity:0;z-index:-1}._3f-fp8mhWq2tAQ_YVhTLKe._28OOucN0W4PlaBPh8Ght1Q{position:relative;opacity:1;z-index:0}._3ic5zBiEYnODK3W48mXCcw{height:400px;padding:12px;border-radius:4px;background-color:#242e42;font-family:Monaco,sans-serif;line-height:2;color:#eff4f9;overflow:auto}.R9IBUiaF5PkTbPyP6RWNd .code{display:inline-block;height:20px;padding:0 4px;border-radius:1px;background-color:#d8dee5;font-family:Monaco,sans-serif;font-size:12px;font-weight:400;font-style:normal;font-stretch:normal;line-height:2;letter-spacing:normal;color:#363e4a;line-height:20px}._1JQ4zn_Cw-dmE1ZDn69Txe{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;position:relative;padding:8px}._1JQ4zn_Cw-dmE1ZDn69Txe .spin{margin-right:18px}._1otAQN1KwOXRV4R1rsL2ya{padding:12px;margin-top:12px;border-radius:4px;background-color:#f9fbfd}._19gcBhB12xSSxmo7Sz-A-A{position:relative;padding:12px;border-radius:4px;border:1px solid #ccd3db;background-color:#fff}._19gcBhB12xSSxmo7Sz-A-A+._19gcBhB12xSSxmo7Sz-A-A{margin-top:8px}._3ssav0j2qS76PABoSIpIg8{position:absolute;top:17px;right:12px}.XPuWslQJNnmvAm5rlLuD_{position:absolute;top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);right:12px}.g8QlCJy-fQF9buKTjwNsv{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.g8QlCJy-fQF9buKTjwNsv .U5zHvmvvHdsAuoC5QNq1{margin-left:6px}._2jBC4N_eKhB_IMAWm0UTuO{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;gap:5px}._2jBC4N_eKhB_IMAWm0UTuO>a{-ms-flex:1 1 auto;flex:1 1 auto;-o-text-overflow:ellipsis;text-overflow:ellipsis;white-space:nowrap;word-wrap:normal;overflow:hidden}._2jBC4N_eKhB_IMAWm0UTuO ._345LgwPnsPDsRv68L_cgry{-webkit-box-sizing:border-box;box-sizing:border-box;opacity:0;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}._2jBC4N_eKhB_IMAWm0UTuO ._345LgwPnsPDsRv68L_cgry:hover{background:#e3e9ef;border-radius:4px;cursor:pointer}.table-row:hover #pvColumn span{opacity:1}._2vs_PnSPXebgvBy3nZuegb{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}._2vs_PnSPXebgvBy3nZuegb ._3Y4c2IH7tgyRPkhZQxNA_0{margin-left:6px}._14XQ8_zmRwCjtgkz04Wzge{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}._14XQ8_zmRwCjtgkz04Wzge ._2_YhNvXVq70vjV7Tj6V3qY{-webkit-box-sizing:border-box;box-sizing:border-box;margin-left:5px;padding:2px;display:none;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}._14XQ8_zmRwCjtgkz04Wzge ._2_YhNvXVq70vjV7Tj6V3qY:hover{background:#e3e9ef;border-radius:4px;cursor:pointer}.table-row:hover{cursor:pointer}.table-row:hover #pvColumn span{display:-ms-flexbox;display:flex}.B4t1khP3gUFICAah4YTP5{display:inline-block;min-width:20px;height:20px;margin-left:8px;padding:0 6px;line-height:20px;border-radius:2px;-webkit-box-shadow:0 4px 8px 0 rgba(36,46,66,.2);box-shadow:0 4px 8px 0 rgba(36,46,66,.2);background-color:#181d28;text-align:center;font-weight:700;color:#fff;cursor:pointer}.B4t1khP3gUFICAah4YTP5:hover{-webkit-box-shadow:none;box-shadow:none}._39TiTBliLeivJdhXYoDplZ{display:-ms-flexbox;display:flex}._39TiTBliLeivJdhXYoDplZ>div{min-width:220px}._1f_DIoH3TOaX8dMUSn7UMb>span{display:inline-block;vertical-align:middle}._1f_DIoH3TOaX8dMUSn7UMb .kubed-icon-dark{color:#fff;fill:#ea4641}._29VjReB-cl3AzGmel2f8Vq{width:32px;height:32px;display:inline-block;line-height:32px;text-align:center;border-radius:50%;background:rgba(245,166,35,.08)}.HoethcQ_rhN4mGKbK1rRH{display:inline-block;min-width:20px;height:20px;margin-left:8px;padding:0 6px;line-height:20px;border-radius:2px;-webkit-box-shadow:0 4px 8px 0 rgba(36,46,66,.2);box-shadow:0 4px 8px 0 rgba(36,46,66,.2);background-color:#181d28;text-align:center;font-weight:700;color:#fff;cursor:pointer}.HoethcQ_rhN4mGKbK1rRH:hover{-webkit-box-shadow:none;box-shadow:none}._2-0e3OqOhUZTSiIln7YHO{display:-ms-flexbox;display:flex}._2-0e3OqOhUZTSiIln7YHO>div{min-width:220px}._2HmdPdvlQ9R5HSNv-z7Xr8>span{display:inline-block;vertical-align:middle}._2HmdPdvlQ9R5HSNv-z7Xr8 .kubed-icon-dark{color:#fff;fill:#ea4641}._3O6k823fCfWBHm-4VH76MN{padding:20px 24px;border-radius:4px;background-color:#fff;-webkit-box-shadow:0 4px 8px 0 rgba(36,46,66,.06);box-shadow:0 4px 8px 0 rgba(36,46,66,.06);-webkit-transition:all .3s ease-in-out;-o-transition:all .3s ease-in-out;transition:all .3s ease-in-out}._3O6k823fCfWBHm-4VH76MN:hover{-webkit-box-shadow:0 6px 16px 0 rgba(33,43,54,.2);box-shadow:0 6px 16px 0 rgba(33,43,54,.2)}._3O6k823fCfWBHm-4VH76MN+._3O6k823fCfWBHm-4VH76MN{margin-top:8px}._3O6k823fCfWBHm-4VH76MN .column{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}._3O6k823fCfWBHm-4VH76MN .h6{line-height:1.71;font-family:Roboto,PingFang SC,Lantinghei SC,Helvetica Neue,Helvetica,Arial,Microsoft YaHei,微软雅黑,STHeitiSC-Light,simsun,宋体,WenQuanYi Zen Hei,WenQuanYi Micro Hei,sans-serif}._3O6k823fCfWBHm-4VH76MN .h6 p{font-size:12px;font-weight:400}._3O6k823fCfWBHm-4VH76MN p{color:#79879c}._3O6k823fCfWBHm-4VH76MN strong{color:#242e42}._1-v5mSMLmxnQo7Tu8omd_Z{position:relative;margin-bottom:20px;border-radius:4px;overflow:hidden;background-color:#fff;-webkit-box-shadow:0 4px 8px 0 rgba(36,46,66,.06);box-shadow:0 4px 8px 0 rgba(36,46,66,.06)}._3FG6c5gZtLtRyuppsme5WY{position:relative;padding:24px 20px;color:#242e42;overflow:hidden}._3FG6c5gZtLtRyuppsme5WY .h4{line-height:1.4;text-shadow:0 4px 8px rgba(36,46,66,.1)}._3FG6c5gZtLtRyuppsme5WY>p{color:#79879c;margin-top:3px}._3FG6c5gZtLtRyuppsme5WY ._1x8pzzm00S4pgPncQM94Nh{position:absolute;top:0;left:0;width:188px}._3FG6c5gZtLtRyuppsme5WY .L7cV3c7hdKq6JtRIgkKlE{position:absolute;top:0;right:0;width:150px}.PwUtcNaXagxdRnj7x31t9{padding:8px 14px;background-color:#eff4f9}.PwUtcNaXagxdRnj7x31t9 .radio-group-button label.radio-button{position:relative;padding:4px 51px 4px 24px}.PwUtcNaXagxdRnj7x31t9 .tag{position:absolute;top:4px;right:5px;height:20px;min-width:32px;border-radius:10px;color:#fff!important;border:none!important;-webkit-box-shadow:0 2px 4px 0 rgba(85,188,138,.36);box-shadow:0 2px 4px 0 rgba(85,188,138,.36)}.gLLpHGp47EN2wrIe50Kvd{margin-bottom:20px}.gLLpHGp47EN2wrIe50Kvd ._1_xaHL38_uU-TZcr3Fpw2n{margin-bottom:12px}.gLLpHGp47EN2wrIe50Kvd ._1_xaHL38_uU-TZcr3Fpw2n>img{height:20px}.hnCTvkjeNtr89Olva-MrQ{display:-ms-flexbox;display:flex}.hnCTvkjeNtr89Olva-MrQ .QQwUZJfYSbbO5IL2O_lym{position:relative;margin-right:12px}.hnCTvkjeNtr89Olva-MrQ .QQwUZJfYSbbO5IL2O_lym ._1kPphabea24-UMspwsiDee{position:absolute;top:28px;right:0}.hnCTvkjeNtr89Olva-MrQ ._3Qr-w3lIIGV50Tlv7bCkkP{font-weight:700;color:#242e42}.hnCTvkjeNtr89Olva-MrQ ._1_C263QNG8-nzlZSpuGBqZ,.hnCTvkjeNtr89Olva-MrQ ._3Qr-w3lIIGV50Tlv7bCkkP{font-size:12px;line-height:1.67;font-family:Roboto,PingFang SC,Lantinghei SC,Helvetica Neue,Helvetica,Arial,Microsoft YaHei,微软雅黑,STHeitiSC-Light,simsun,宋体,WenQuanYi Zen Hei,WenQuanYi Micro Hei,sans-serif;font-style:normal;font-stretch:normal;letter-spacing:normal}.hnCTvkjeNtr89Olva-MrQ ._1_C263QNG8-nzlZSpuGBqZ{font-weight:400;color:#79879c}.FyXk2dppIa5i82ApkI1Ql svg{width:40px;height:40px;margin-right:12px}._3UOnCQ8P2oZzf_eNyRK1IA>div{margin-bottom:unset}._3UOnCQ8P2oZzf_eNyRK1IA>div>div{padding-left:16px}._228gCjzBUQV2Q4vU2rUrfl .table-row td:nth-child(2) svg{width:40px;height:40px}._3uVuUGuC2EHTxXkFjjvcmE,._21OATtg2uOyC5CA0xK8Cgb ._23UpDickjcJr3y2liGaM-4,._23UpDickjcJr3y2liGaM-4{-ms-flex:none;flex:none;font-weight:600;font-size:12px;line-height:20px;color:#fff;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;padding:0 4px;gap:4px;height:20px;background:#242e42;border-radius:2px}._21OATtg2uOyC5CA0xK8Cgb{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;gap:12px}._21OATtg2uOyC5CA0xK8Cgb ._361jFI80H7w8CSY6aff8x4{-o-text-overflow:ellipsis;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}._3i-uxhPvdOU7S87_Y_mDGo{margin-bottom:0}.dcF8cBxuJtvRguAP4tyZY{padding:25px 18px}.iWa6mM_kmem6_FeIMa4Pl{height:100%;margin-bottom:0}.iWa6mM_kmem6_FeIMa4Pl ._3btAUBGyO6S5qH0FSnXeTv ._3L8WX-6mq4GV4pbaROMlGJ{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;margin:0 -3px}.iWa6mM_kmem6_FeIMa4Pl ._3btAUBGyO6S5qH0FSnXeTv ._3L8WX-6mq4GV4pbaROMlGJ ._2UinRAcLgwuDAMGFx7YxbZ{-ms-flex:1 0 250px;flex:1 0 250px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;padding:0 10px;margin:3px;border-radius:4px;background-color:#f9fbfd;overflow:hidden}.iWa6mM_kmem6_FeIMa4Pl ._3btAUBGyO6S5qH0FSnXeTv ._3L8WX-6mq4GV4pbaROMlGJ ._2UinRAcLgwuDAMGFx7YxbZ._1HAzX3NlEQy_mvZTgYwzYN{opacity:.4;cursor:unset!important}.iWa6mM_kmem6_FeIMa4Pl ._3btAUBGyO6S5qH0FSnXeTv ._3L8WX-6mq4GV4pbaROMlGJ ._2UinRAcLgwuDAMGFx7YxbZ._1HAzX3NlEQy_mvZTgYwzYN p{font-size:16px;color:#79879c}.iWa6mM_kmem6_FeIMa4Pl ._3btAUBGyO6S5qH0FSnXeTv ._3L8WX-6mq4GV4pbaROMlGJ._33modxTT0s7VIqxv-YEXZn ._2UinRAcLgwuDAMGFx7YxbZ{-ms-flex:1 0 250px;flex:1 0 250px;-ms-flex-pack:justify;justify-content:space-between;cursor:pointer}.iWa6mM_kmem6_FeIMa4Pl ._3btAUBGyO6S5qH0FSnXeTv ._3L8WX-6mq4GV4pbaROMlGJ._33modxTT0s7VIqxv-YEXZn ._2UinRAcLgwuDAMGFx7YxbZ img{width:94px;height:20px}.iWa6mM_kmem6_FeIMa4Pl ._3btAUBGyO6S5qH0FSnXeTv ._3L8WX-6mq4GV4pbaROMlGJ._33modxTT0s7VIqxv-YEXZn ._2UinRAcLgwuDAMGFx7YxbZ p{height:44px;line-height:44px;font-size:26px;font-weight:600}.iWa6mM_kmem6_FeIMa4Pl ._3btAUBGyO6S5qH0FSnXeTv ._3L8WX-6mq4GV4pbaROMlGJ._33modxTT0s7VIqxv-YEXZn ._2UinRAcLgwuDAMGFx7YxbZ p span{font-size:12px;line-height:20px}.iWa6mM_kmem6_FeIMa4Pl ._3btAUBGyO6S5qH0FSnXeTv ._3L8WX-6mq4GV4pbaROMlGJ.kxr_ctYj8oXbD9VAkJOeH ._2UinRAcLgwuDAMGFx7YxbZ{height:44px}.iWa6mM_kmem6_FeIMa4Pl ._3btAUBGyO6S5qH0FSnXeTv ._3L8WX-6mq4GV4pbaROMlGJ.kxr_ctYj8oXbD9VAkJOeH ._1OmtFwq6wNRWsioVW_CD22{-ms-flex:0 0 1;flex:0 0 1;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;width:24px;height:24px;border-radius:50%;margin-right:12px}.iWa6mM_kmem6_FeIMa4Pl ._3btAUBGyO6S5qH0FSnXeTv ._3L8WX-6mq4GV4pbaROMlGJ.kxr_ctYj8oXbD9VAkJOeH ._1OmtFwq6wNRWsioVW_CD22._2QxcTXrERt_mX8QVqRxkEJ,.iWa6mM_kmem6_FeIMa4Pl ._3btAUBGyO6S5qH0FSnXeTv ._3L8WX-6mq4GV4pbaROMlGJ.kxr_ctYj8oXbD9VAkJOeH ._1OmtFwq6wNRWsioVW_CD22._3Au1Y8qOTFYdO_gsobjOyD{background-color:#55bc8a}.iWa6mM_kmem6_FeIMa4Pl ._3btAUBGyO6S5qH0FSnXeTv ._3L8WX-6mq4GV4pbaROMlGJ.kxr_ctYj8oXbD9VAkJOeH ._1OmtFwq6wNRWsioVW_CD22._2BFyv45uYWQsWKpdoGHxsK,.iWa6mM_kmem6_FeIMa4Pl ._3btAUBGyO6S5qH0FSnXeTv ._3L8WX-6mq4GV4pbaROMlGJ.kxr_ctYj8oXbD9VAkJOeH ._1OmtFwq6wNRWsioVW_CD22._2yMksWvLJFTdIz6XA4wSst{background-color:#f5a623}.iWa6mM_kmem6_FeIMa4Pl ._3btAUBGyO6S5qH0FSnXeTv ._3L8WX-6mq4GV4pbaROMlGJ.kxr_ctYj8oXbD9VAkJOeH ._1OmtFwq6wNRWsioVW_CD22.NnQSs-w924JQVyzrsKDor{background-color:#ca2621}.iWa6mM_kmem6_FeIMa4Pl ._3btAUBGyO6S5qH0FSnXeTv ._3L8WX-6mq4GV4pbaROMlGJ.kxr_ctYj8oXbD9VAkJOeH ._1OmtFwq6wNRWsioVW_CD22.JX1J9FsOwhFbiEW0Ndfkg{background-color:#79879c}.iWa6mM_kmem6_FeIMa4Pl ._3btAUBGyO6S5qH0FSnXeTv ._3L8WX-6mq4GV4pbaROMlGJ.kxr_ctYj8oXbD9VAkJOeH ._2UinRAcLgwuDAMGFx7YxbZ p{font-weight:600;-o-text-overflow:ellipsis;text-overflow:ellipsis;white-space:nowrap;word-wrap:normal;overflow:hidden}._3JNPBRmrvckZ-0ddD430sz{margin:0 -6px;zoom:1}._3JNPBRmrvckZ-0ddD430sz:after{content:".";display:block;clear:both;overflow:hidden;height:0;visibility:hidden}._3JNPBRmrvckZ-0ddD430sz ._211PBa-chb6-SswmEnq_qi{float:left;width:50%;padding:6px}.TcL0IZBZvEALWaAJxOyjq{margin:0 -6px;zoom:1}.TcL0IZBZvEALWaAJxOyjq:after{content:".";display:block;clear:both;overflow:hidden;height:0;visibility:hidden}.TcL0IZBZvEALWaAJxOyjq ._2x_rs3rGZ_x3CzWhr678DG{float:left;width:50%;padding:6px}.TcL0IZBZvEALWaAJxOyjq ._2x_rs3rGZ_x3CzWhr678DG:first-child{width:100%}._166raJC5y_hKM3BLES1zxS{height:190px;padding:0 6px;background-color:#f9fbfd}._19HqLz1uFh_5QO0V5xfiZI{margin:0 -6px;zoom:1}._19HqLz1uFh_5QO0V5xfiZI:after{content:".";display:block;clear:both;overflow:hidden;height:0;visibility:hidden}._19HqLz1uFh_5QO0V5xfiZI ._3YA930Ry5q0idy7W6W7Olz{float:left;width:100%;padding:6px}.sWcV6DTJ_nB-mAR8ayQtO{margin:0 -6px;zoom:1}.sWcV6DTJ_nB-mAR8ayQtO:after{content:".";display:block;clear:both;overflow:hidden;height:0;visibility:hidden}.sWcV6DTJ_nB-mAR8ayQtO ._20J7gX0eLgCDG08z96LldT{float:left;width:50%;padding:6px}.sWcV6DTJ_nB-mAR8ayQtO ._20J7gX0eLgCDG08z96LldT:last-child{width:100%}._2P7PdvezYjRtSEmE29J8Ar{border-radius:4px;-webkit-box-shadow:0 4px 8px 0 rgba(36,46,66,.06);box-shadow:0 4px 8px 0 rgba(36,46,66,.06);background-color:#fff;overflow:hidden}._1DURUYk4FqXRlVLiEK23O1{padding-left:20px;padding-right:20px}.aRdfy8lcLlfL-Y83e6jGD{background-color:#f9fbfd;padding-top:12px;padding-bottom:12px;border-bottom:1px solid #d8dee5}._2eA13_VjA75hvBiAhRlUYV{background-color:#f9fbfd;line-height:56px;-webkit-box-shadow:0 -1px 0 0 #d8dee5;box-shadow:0 -1px 0 0 #d8dee5}.MPxO6uDiB7DbkF0b5iMTu{font-size:14px;font-weight:600;line-height:66px;color:#242e42}._3Z9Ad95QU2iGBj_xxDW3fd:after{content:"";clear:both;display:block}._3QmcC0Hk1xUcNxHR_0EbXW{float:right}.uWPN7S-1sicqgHS-Nsc7-{float:left;display:-ms-flexbox;display:flex}.yvJ2AO-e2ripmTSNwZtqP{display:inline-block;margin-top:7px;margin-left:30px;text-align:center;vertical-align:top;cursor:pointer}._3Z9Ad95QU2iGBj_xxDW3fd .select{width:250px}._3Z9Ad95QU2iGBj_xxDW3fd .select+.select{margin-left:12px}._12Tl8qEZhLLCQSTWy13y8Q._1pyQQOSWX0OLiSRx3H4ynW._2NEj9rhYr8D6hKOtN9QJO0 td{color:#79879c}._12Tl8qEZhLLCQSTWy13y8Q._1pyQQOSWX0OLiSRx3H4ynW._2NEj9rhYr8D6hKOtN9QJO0 table{border-collapse:separate;border-spacing:0 5px}._12Tl8qEZhLLCQSTWy13y8Q._1pyQQOSWX0OLiSRx3H4ynW._2NEj9rhYr8D6hKOtN9QJO0 th{border-bottom:none}._12Tl8qEZhLLCQSTWy13y8Q._1pyQQOSWX0OLiSRx3H4ynW._2NEj9rhYr8D6hKOtN9QJO0 ._1bS8qY9r_xrxLEJd4YDutw h3{font-size:14px;color:#242e42;font-weight:700}._12Tl8qEZhLLCQSTWy13y8Q._1pyQQOSWX0OLiSRx3H4ynW._2NEj9rhYr8D6hKOtN9QJO0 ._1bS8qY9r_xrxLEJd4YDutw td,._12Tl8qEZhLLCQSTWy13y8Q._1pyQQOSWX0OLiSRx3H4ynW._2NEj9rhYr8D6hKOtN9QJO0 ._1bS8qY9r_xrxLEJd4YDutw th{padding:10px 20px;border:none}._12Tl8qEZhLLCQSTWy13y8Q._1pyQQOSWX0OLiSRx3H4ynW._2NEj9rhYr8D6hKOtN9QJO0 ._1bS8qY9r_xrxLEJd4YDutw td{background:#f9fbfd}._12Tl8qEZhLLCQSTWy13y8Q._1pyQQOSWX0OLiSRx3H4ynW._2NEj9rhYr8D6hKOtN9QJO0 ._1bS8qY9r_xrxLEJd4YDutw td:first-child{border-radius:4px 0 0 4px}._12Tl8qEZhLLCQSTWy13y8Q._1pyQQOSWX0OLiSRx3H4ynW._2NEj9rhYr8D6hKOtN9QJO0 ._1bS8qY9r_xrxLEJd4YDutw td:last-child{border-radius:0 4px 4px 0}._12Tl8qEZhLLCQSTWy13y8Q._1pyQQOSWX0OLiSRx3H4ynW._2NEj9rhYr8D6hKOtN9QJO0 ._1bS8qY9r_xrxLEJd4YDutw td._3cPfq94oQC6yhhBgO7gFBj{background:#dbefe2}.wwlsDBiAjm0q1bmRNgj6o{padding:5px 0}.wwlsDBiAjm0q1bmRNgj6o._1ad28rokzs4wIzr9i7erxd>div{top:20px}._1CmVFNd0G-zs9E1iHfdivR{border-radius:4px;-webkit-box-shadow:0 4px 8px 0 rgba(36,46,66,.06);box-shadow:0 4px 8px 0 rgba(36,46,66,.06);background-color:#fff;overflow:hidden}._3Xxq0iOcg5rPC1z0QX4VcZ{padding-left:20px;padding-right:20px}._2PEZlO8QdUlfOW_Gg2bFho{background-color:#f9fbfd;padding-top:12px;padding-bottom:12px;border-bottom:1px solid #d8dee5}._3tB6nH6MnNdOJ_hACtTFVh{background-color:#f9fbfd;line-height:56px;-webkit-box-shadow:0 -1px 0 0 #d8dee5;box-shadow:0 -1px 0 0 #d8dee5}._3WzAR13ip4gsV70FVDKTdJ{font-size:14px;font-weight:600;line-height:66px;color:#242e42}._3QzlZPN09RgS4Y67QlJd09:after{content:"";clear:both;display:block}._2HATCZlaUbpt610R3YC6_p{float:right}._3d9XJJFMH1N7n4BKj6Mkwu{float:left;display:-ms-flexbox;display:flex}.Zm30W-XpLeAnhkrxGKaXD{display:inline-block;margin-top:7px;margin-left:30px;text-align:center;vertical-align:top;cursor:pointer}._3QzlZPN09RgS4Y67QlJd09 .select{width:250px}._3QzlZPN09RgS4Y67QlJd09 .select+.select{margin-left:12px}._1zke06m-W2VOKXFYSeau6f._2fmtCI2sslMwd4fyo_vmK3._1QODthKAirf_FppmVzGK2r td{color:#79879c}._1zke06m-W2VOKXFYSeau6f._2fmtCI2sslMwd4fyo_vmK3._1QODthKAirf_FppmVzGK2r table{border-collapse:separate;border-spacing:0 5px}._1zke06m-W2VOKXFYSeau6f._2fmtCI2sslMwd4fyo_vmK3._1QODthKAirf_FppmVzGK2r th{border-bottom:none}._1zke06m-W2VOKXFYSeau6f._2fmtCI2sslMwd4fyo_vmK3._1QODthKAirf_FppmVzGK2r ._36FQnaParFo539EUHrLM3j h3{font-size:14px;color:#242e42;font-weight:700}._1zke06m-W2VOKXFYSeau6f._2fmtCI2sslMwd4fyo_vmK3._1QODthKAirf_FppmVzGK2r ._36FQnaParFo539EUHrLM3j td,._1zke06m-W2VOKXFYSeau6f._2fmtCI2sslMwd4fyo_vmK3._1QODthKAirf_FppmVzGK2r ._36FQnaParFo539EUHrLM3j th{padding:10 20px;border:none}._1zke06m-W2VOKXFYSeau6f._2fmtCI2sslMwd4fyo_vmK3._1QODthKAirf_FppmVzGK2r ._36FQnaParFo539EUHrLM3j td{background:#f9fbfd}._1zke06m-W2VOKXFYSeau6f._2fmtCI2sslMwd4fyo_vmK3._1QODthKAirf_FppmVzGK2r ._36FQnaParFo539EUHrLM3j td:first-child{border-radius:4px 0 0 4px}._1zke06m-W2VOKXFYSeau6f._2fmtCI2sslMwd4fyo_vmK3._1QODthKAirf_FppmVzGK2r ._36FQnaParFo539EUHrLM3j td:last-child{border-radius:0 4px 4px 0}._1zke06m-W2VOKXFYSeau6f._2fmtCI2sslMwd4fyo_vmK3._1QODthKAirf_FppmVzGK2r ._36FQnaParFo539EUHrLM3j ._1tK0CngMzBLJehA_bn8nmS{background:#dbefe2}.wa7tMIrleTBU3e6ZCinRa{border-radius:4px;-webkit-box-shadow:0 4px 8px 0 rgba(36,46,66,.06);box-shadow:0 4px 8px 0 rgba(36,46,66,.06);background-color:#fff;overflow:hidden;min-height:300px}.TOMVoOzgz8bnMGaXhMj6v{padding:20px}._1XJp5HqlcLBB0vE-AP9V6C{cursor:pointer;padding:2px;border-radius:18px;display:inline-block;background-color:#eff4f9;border:1px solid #d8dee5}._1XJp5HqlcLBB0vE-AP9V6C>span{display:inline-block;line-height:32px;color:#79879c;padding:0 30px}span.Bgy3xm4otfT4hHjzR2om-{border-radius:16px;background-color:#36435c;color:#fff}._2SXq6W7Y5arA1V8ydx3x9k{position:relative;display:-ms-flexbox;display:flex}._2SXq6W7Y5arA1V8ydx3x9k>div{min-width:260px;margin-right:20px}._3zCn6ZnEb1mjwR_f5JXgA{display:-ms-flexbox;display:flex;padding:20px;margin-top:12px;margin-left:-12px;margin-right:-12px;background-color:#f9fbfd}._3zCn6ZnEb1mjwR_f5JXgA>div{width:250px;margin-right:20px}.lIqFeO0ppH8_MxJdLUlTw{margin-bottom:12px}._3-xB7xj9NBxURt-nM9E8YT{position:absolute;top:56px;right:20px}._12M4oLKObAdKFXEoaa5wxj{position:absolute;top:4px;right:6px;height:32px;width:92px;min-width:0!important}._1HEVP9zq3sERwI9RlCnfHB{position:absolute;top:4px;right:6px;height:32px;min-width:92px}._2ep7i_I3q4CFYM8VacKRGZ{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;gap:8px}._2w6hdp2HJmk_fypnMB8LtJ{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}._2w6hdp2HJmk_fypnMB8LtJ button{height:32px}._15y23XCn7gLEvRQ1wRkT2p{margin:12px -12px -12px}._2_3IPi65_G0tYI4auyS45R{min-height:unset}._vi43jp1IhuQ1z5Ok0h7g{font-size:18px;margin-bottom:10px}._vi43jp1IhuQ1z5Ok0h7g svg{margin-right:13px;vertical-align:sub;cursor:pointer}._vi43jp1IhuQ1z5Ok0h7g strong{font-size:.8em}.xkLnfMG-J4SV3jMNs09Ra{border-radius:4px;border:1px solid #e3e9ef;padding:12px;margin:8px;-webkit-box-shadow:0 0 0 8px #f9fbfd;box-shadow:0 0 0 8px #f9fbfd}._4KpY8XoatSiX6KSIelpPx{border-radius:4px;background-color:#f9fbfd;padding:12px}._227xYBidUyS7Co_VCst5pL._3l_3z51HkJawL3fJqcBj-x{opacity:.6;cursor:normal}._227xYBidUyS7Co_VCst5pL{margin:8px;border:1px solid #e3e9ef;border-radius:4px;background-color:#fff;display:grid;grid-template-columns:40px 1fr;grid-gap:20px;padding:14px 20px;cursor:pointer}._227xYBidUyS7Co_VCst5pL:hover{-webkit-box-shadow:0 8px 16px 0 rgba(36,46,66,.08);box-shadow:0 8px 16px 0 rgba(36,46,66,.08)}._227xYBidUyS7Co_VCst5pL h3{line-height:1.5;color:#242e42;font-weight:700;font-size:16px}._227xYBidUyS7Co_VCst5pL p{color:#79879c}._15-kJBHYuBzcVNchgfqXjx{line-height:44px;padding:0 12px;margin-bottom:12px;color:#3391bf;border-radius:4px;background-color:#c6def0}._15-kJBHYuBzcVNchgfqXjx:before{content:"?";border-radius:50%;color:#fff;background:#3391bf;display:inline-block;margin-right:.5em;width:12px;height:12px;line-height:1em;font-size:12px;font-weight:700;text-align:center}.E_TGs1mcrGTpnS6fCHLve{text-align:center;padding:20px}.E_TGs1mcrGTpnS6fCHLve p{font-size:12px;line-height:1.67;color:#79879c;margin-top:20px;margin-bottom:12px}.GDQFBrmFWQgDOgXCXYVBn{position:relative}._3U_QE41nPUA_tmHQ-GnXBZ{position:absolute;bottom:6px;right:12px}._1Spp0J1Fpg5wUQfw135nUu{border-radius:4px;-webkit-box-shadow:0 4px 8px 0 rgba(36,46,66,.06);box-shadow:0 4px 8px 0 rgba(36,46,66,.06);background-color:#fff}._3laeV8sqiN4xp4otZGaW2u{display:-ms-flexbox;display:flex;padding:20px}._3laeV8sqiN4xp4otZGaW2u:hover ._1tvY2b0c_9eqZOhe7p0fHU{color:#55bc8a}._3laeV8sqiN4xp4otZGaW2u>div{min-width:200px;margin-left:20px}._3laeV8sqiN4xp4otZGaW2u>div:first-of-type{-ms-flex:1 1;flex:1 1}.m4_SNQXnKSZC2zYTgw2nP{cursor:pointer;-webkit-transition:all .3s ease;-o-transition:all .3s ease;transition:all .3s ease}.m4_SNQXnKSZC2zYTgw2nP:hover{color:#55bc8a}._8MR_jkuxX3BO24ISjg65o{margin-bottom:20px;background-color:#f9fbfd}._8MR_jkuxX3BO24ISjg65o>div:last-child{padding:6px 12px}._2_LExZycdD34qPtVII-cl-{max-width:1400px;padding:40px 20px 0;margin:0 auto}._2_LExZycdD34qPtVII-cl- p{color:#79879c}._2-621emWvGyt67MEm5v4NS{max-width:calc(100vw - 500px);display:-ms-inline-flexbox;display:inline-flex;height:20px;background:#eff4f9;border-radius:2px;padding:2px;-ms-flex-align:center;align-items:center;font-weight:600;font-size:12px;line-height:20px;gap:6px}._2-621emWvGyt67MEm5v4NS ._1R5k1j8Y_KUzpUHIoj_sqP{background:#242e42;height:16px;padding:2px 4px;color:#fff;display:-ms-flexbox;display:flex;border-radius:2px;-ms-flex-align:center;align-items:center}._2-621emWvGyt67MEm5v4NS ._1R5k1j8Y_KUzpUHIoj_sqP,._2-621emWvGyt67MEm5v4NS .Qtmr8FVzhABs8l5KJ_nvB{-o-text-overflow:ellipsis;text-overflow:ellipsis;white-space:nowrap;word-wrap:normal;overflow:hidden}._2-621emWvGyt67MEm5v4NS .Qtmr8FVzhABs8l5KJ_nvB{padding-right:2px}._2pXZ8G1tXWMPRfWtv8hzmv{position:fixed;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}._1fxvFDRBXomWXMXThPuGiO{display:-ms-flexbox;display:flex}._1fxvFDRBXomWXMXThPuGiO ._2i20s7mRN2aF2FYpKovLCt{min-width:20%;display:-ms-flexbox;display:flex}._1fxvFDRBXomWXMXThPuGiO ._2i20s7mRN2aF2FYpKovLCt ._2od794bHFxQpdtTn7X-fkA{margin-left:12px}._1fxvFDRBXomWXMXThPuGiO ._2i20s7mRN2aF2FYpKovLCt ._2od794bHFxQpdtTn7X-fkA ._27BSz92lxWakrFD9ymm2A3{display:-ms-flexbox;display:flex;font-size:12px;line-height:20px;color:#242e42;-ms-flex-align:center;align-items:center}._1fxvFDRBXomWXMXThPuGiO ._2i20s7mRN2aF2FYpKovLCt ._2od794bHFxQpdtTn7X-fkA ._27BSz92lxWakrFD9ymm2A3 ._3UNOqG8qLUxZlBapo3qr5Z{margin-left:6px}._1fxvFDRBXomWXMXThPuGiO ._2i20s7mRN2aF2FYpKovLCt ._2od794bHFxQpdtTn7X-fkA ._2yKnVC3aGLnopPAOx8d-hn{display:block;font-size:12px;line-height:20px;color:#79879c}._1fxvFDRBXomWXMXThPuGiO ._2i20s7mRN2aF2FYpKovLCt ._2od794bHFxQpdtTn7X-fkA ._2yKnVC3aGLnopPAOx8d-hn ._1zTSWtxQ1s3FuIVK6c_AJd{display:-ms-flexbox;display:flex}._1fxvFDRBXomWXMXThPuGiO ._2i20s7mRN2aF2FYpKovLCt ._2od794bHFxQpdtTn7X-fkA ._2yKnVC3aGLnopPAOx8d-hn ._3UNOqG8qLUxZlBapo3qr5Z{margin-left:6px}._1fxvFDRBXomWXMXThPuGiO ._1EQfuxx1JyPD3obadFjEbe{width:20%;margin-left:107px}._1fxvFDRBXomWXMXThPuGiO ._1EQfuxx1JyPD3obadFjEbe ._27BSz92lxWakrFD9ymm2A3{display:-ms-flexbox;display:flex;font-size:12px;line-height:20px;color:#242e42;-ms-flex-align:center;align-items:center}._1fxvFDRBXomWXMXThPuGiO ._1EQfuxx1JyPD3obadFjEbe ._27BSz92lxWakrFD9ymm2A3 ._3UNOqG8qLUxZlBapo3qr5Z{margin-left:6px}._1fxvFDRBXomWXMXThPuGiO ._1EQfuxx1JyPD3obadFjEbe ._2yKnVC3aGLnopPAOx8d-hn{display:block;font-size:12px;line-height:20px;color:#79879c}._1fxvFDRBXomWXMXThPuGiO ._1EQfuxx1JyPD3obadFjEbe ._2yKnVC3aGLnopPAOx8d-hn ._1zTSWtxQ1s3FuIVK6c_AJd{display:-ms-flexbox;display:flex}._1fxvFDRBXomWXMXThPuGiO ._1EQfuxx1JyPD3obadFjEbe ._2yKnVC3aGLnopPAOx8d-hn ._3UNOqG8qLUxZlBapo3qr5Z{margin-left:6px}.WFEYMWanZFc5X5ji7EDzw{margin-top:12px;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}.WFEYMWanZFc5X5ji7EDzw ._11Nc11agNjqy5SvwpHgDnb{width:32.5%;height:64px;padding:17px;background:#f9fbfd;border-radius:4px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.WFEYMWanZFc5X5ji7EDzw ._11Nc11agNjqy5SvwpHgDnb ._3iZaDwgdoUnaHTHBRCk0Uo{margin-left:12px}.WFEYMWanZFc5X5ji7EDzw ._11Nc11agNjqy5SvwpHgDnb ._3iZaDwgdoUnaHTHBRCk0Uo ._27BSz92lxWakrFD9ymm2A3{display:-ms-flexbox;display:flex;font-size:12px;line-height:20px;color:#242e42;-ms-flex-align:center;align-items:center}.WFEYMWanZFc5X5ji7EDzw ._11Nc11agNjqy5SvwpHgDnb ._3iZaDwgdoUnaHTHBRCk0Uo ._27BSz92lxWakrFD9ymm2A3 ._3UNOqG8qLUxZlBapo3qr5Z{margin-left:6px}.WFEYMWanZFc5X5ji7EDzw ._11Nc11agNjqy5SvwpHgDnb ._3iZaDwgdoUnaHTHBRCk0Uo ._2yKnVC3aGLnopPAOx8d-hn{display:block;font-size:12px;line-height:20px;color:#79879c}.WFEYMWanZFc5X5ji7EDzw ._11Nc11agNjqy5SvwpHgDnb ._3iZaDwgdoUnaHTHBRCk0Uo ._2yKnVC3aGLnopPAOx8d-hn ._1zTSWtxQ1s3FuIVK6c_AJd{display:-ms-flexbox;display:flex}.WFEYMWanZFc5X5ji7EDzw ._11Nc11agNjqy5SvwpHgDnb ._3iZaDwgdoUnaHTHBRCk0Uo ._2yKnVC3aGLnopPAOx8d-hn ._3UNOqG8qLUxZlBapo3qr5Z{margin-left:6px}._160nVM5I48EClrJRzVwIZM{padding:0}._3gY1SwAB3Qyzo33NcoETa2{display:-ms-inline-flexbox;display:inline-flex;padding:12px;border-radius:4px;background-color:#f9fbfd}._3gY1SwAB3Qyzo33NcoETa2 ._3XS03qiViW-ikPky4F7m_x{position:relative;margin-right:12px}._2heWfhm7p3vRjks91Lxqps,._2VlaH5DM4vl23eEoRXmg0V{position:absolute;top:28px;right:0;border-radius:50%}._2heWfhm7p3vRjks91Lxqps{background-color:#55bc8a}._2VlaH5DM4vl23eEoRXmg0V{background-color:#f5a623}._33OfSfo5noeVvDTt0pECNi{padding:12px 24px;border-radius:60px;background-color:#eff4f9;border:1px solid #ccd3db}._33OfSfo5noeVvDTt0pECNi+._33OfSfo5noeVvDTt0pECNi{margin-top:8px}._33OfSfo5noeVvDTt0pECNi p{font-family:Roboto,PingFang SC,Lantinghei SC,Helvetica Neue,Helvetica,Arial,Microsoft YaHei,微软雅黑,STHeitiSC-Light,simsun,宋体,WenQuanYi Zen Hei,WenQuanYi Micro Hei,sans-serif;font-size:14px;line-height:1.43}._33OfSfo5noeVvDTt0pECNi span{font-size:12px;line-height:1.67;color:#79879c;margin-right:8px}._2JLcedz0mAjNBgUVbRpAlV{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;margin:-6px}._2JLcedz0mAjNBgUVbRpAlV>div{width:50%;padding:6px}@media (min-width:1366px){._2JLcedz0mAjNBgUVbRpAlV>div{-ms-flex:1 1;flex:1 1;width:auto}}._2izO-GxzIDv54VNolZBX0N{padding:0}._1Ip9txFboGAHGxjdTg1JDy{display:-ms-flexbox;display:flex}._1Ip9txFboGAHGxjdTg1JDy>div{min-width:200px;margin-right:20px}.v93LP2ROQDO2QGQL3qZvm{display:grid;grid-template-columns:repeat(3,1fr);grid-column-gap:12px;grid-row-gap:12px}.Kh3LUefQi7XfqAml1jJcj{display:-ms-inline-flexbox;display:inline-flex;padding:12px;border-radius:4px;background-color:#f9fbfd}.Kh3LUefQi7XfqAml1jJcj ._3iy83CfEy08rg9_-QKFkq7{position:relative;margin-right:12px}._3eJAVhQ8al4C0aso0N6wDI,._17SNYe2bxLoE0pvH1a2aDg{position:absolute;top:28px;right:0;border-radius:50%}._17SNYe2bxLoE0pvH1a2aDg{background-color:#55bc8a}._3eJAVhQ8al4C0aso0N6wDI{background-color:#f5a623}._1Ens6X0pfcZc-RZ6-o7rji{padding:12px 24px;border-radius:60px;background-color:#eff4f9;border:1px solid #ccd3db}._1Ens6X0pfcZc-RZ6-o7rji+._1Ens6X0pfcZc-RZ6-o7rji{margin-top:8px}._1Ens6X0pfcZc-RZ6-o7rji p{font-family:Roboto,PingFang SC,Lantinghei SC,Helvetica Neue,Helvetica,Arial,Microsoft YaHei,微软雅黑,STHeitiSC-Light,simsun,宋体,WenQuanYi Zen Hei,WenQuanYi Micro Hei,sans-serif;font-size:14px;line-height:1.43}._1Ens6X0pfcZc-RZ6-o7rji span{font-size:12px;line-height:1.67;color:#79879c;margin-right:8px}.ZmLO9iLSnLt1J6Gz4uKwS{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;margin:-6px}.ZmLO9iLSnLt1J6Gz4uKwS>div{width:50%;padding:6px}@media (min-width:1366px){.ZmLO9iLSnLt1J6Gz4uKwS>div{-ms-flex:1 1;flex:1 1;width:auto}}.lyqB5tNGCKuC1h5-5HtLB{padding:0}._1JOW87aTOtJJdxN1fWMTGb{display:-ms-flexbox;display:flex}._1JOW87aTOtJJdxN1fWMTGb>div{min-width:200px;margin-right:20px}._1DY4TX4djJSe-gKH5iAwVJ{display:grid;grid-template-columns:repeat(3,1fr);grid-column-gap:12px;grid-row-gap:12px}._1jdNGCQmXYoAXu4jdd0HNQ .detail-page-nav,._1jdNGCQmXYoAXu4jdd0HNQ .detail-page-sider{display:none!important}._1jdNGCQmXYoAXu4jdd0HNQ .detail-page-content{padding:0!important}._2cmfLkh2-73OlEHQZ0JznP{display:-ms-flexbox;display:flex;margin-top:12px}.Eh3sYZ8Yv_OZPh6LmU4ij{position:relative;width:326px;padding:8px;border-radius:2px;background-color:#242e42;margin-right:12px}._1pASR0wnOOZ188jGyMPDDu{padding:32px 0;text-align:center}._1pASR0wnOOZ188jGyMPDDu ._36P6BNJUIu_o_9LugrstnV{display:inline-block;padding:10px;border-radius:100px 0 100px 100px;background-color:#eff4f9}._1pASR0wnOOZ188jGyMPDDu ._2hrgMPH6R-G9psZHUOvDko{margin-top:12px}._1pASR0wnOOZ188jGyMPDDu ._2hrgMPH6R-G9psZHUOvDko>div{font-size:14px;font-weight:600;line-height:20px}._1pASR0wnOOZ188jGyMPDDu ._2hrgMPH6R-G9psZHUOvDko>p{margin:0 auto;width:520px;color:#79879c}._2kjHtHOfFmm6itggAkoQAL{-webkit-box-shadow:none;box-shadow:none;margin:0 -20px -20px}._5cglYSZWbQvrCmvoMyqxP{margin-bottom:12px}._21kLc98uyqQuBRc4Q-dyhM{display:-ms-flexbox;display:flex}._21kLc98uyqQuBRc4Q-dyhM ._1vTN6gl6PThH5CifVSvUo6{margin-right:12px;width:40px;height:40px}._21kLc98uyqQuBRc4Q-dyhM span{display:block}._1QIhBOEC_Y-VZV4BPZvjdr{font-weight:600;font-size:12px;line-height:20px;color:#242e42}._3NV29u5T-Tku0Cp7CeL7d{font-weight:400;font-size:12px;line-height:20px;color:#79879c}.z1wHL-lLdkBj_ZwzB6voh{display:-ms-flexbox;display:flex}._2TzaGW5k734_6hWUzqgCSv{background:#f9fbfd;border-radius:4px;padding:12px;-ms-flex:1 1;flex:1 1;margin-right:12px}._2TzaGW5k734_6hWUzqgCSv:last-of-type{margin-right:0}._2jttfh7kRfWWvaOvcR-zmM{font-family:PingFang SC,Lantinghei SC,Helvetica Neue,Helvetica,Arial,Microsoft YaHei,微软雅黑,STHeitiSC-Light,simsun,宋体,WenQuanYi Zen Hei,WenQuanYi Micro Hei,sans-serif;font-size:12px;font-weight:600;font-style:normal;font-stretch:normal;line-height:1.67;letter-spacing:normal;color:#36435c;margin-bottom:12px}._1fcFwLiMNf2V7HyrLmivLq{background:#f9fbfd;padding:12px}._1fcFwLiMNf2V7HyrLmivLq li.V_5vTiOowYSB3wAuDhlip{background:#fff;line-height:36px;padding-left:11px;padding-right:11px;margin:4px;border-radius:4px}._3OH5gauRQWhyK_uriQN9S9{vertical-align:sub;margin-right:.5em}._21Nur-ML8E1lmqmL3lRt3i{padding:12px;border-radius:4px;background-color:#f9fbfd}._1bL8xFnk72nG93G57IoCla{display:-ms-flexbox;display:flex;padding:12px;border:1px solid #ccd3db;border-radius:4px;background-color:#fff}._1bL8xFnk72nG93G57IoCla+._1bL8xFnk72nG93G57IoCla{margin-top:8px}._1bL8xFnk72nG93G57IoCla>div{margin-right:20px;min-width:20%}._1bL8xFnk72nG93G57IoCla>div:first-of-type{-ms-flex:1 1;flex:1 1}._18lwhh8wev9Vr_5zWvrNMe{font-size:14px;line-height:1.43;font-family:Roboto,PingFang SC,Lantinghei SC,Helvetica Neue,Helvetica,Arial,Microsoft YaHei,微软雅黑,STHeitiSC-Light,simsun,宋体,WenQuanYi Zen Hei,WenQuanYi Micro Hei,sans-serif;font-style:normal;font-stretch:normal;letter-spacing:normal;font-weight:700;color:#79879c}._2dcq7NHXgEwsUW4m8Fk48L{position:relative;padding:11px 12px;margin-bottom:12px;border-radius:4px;border:1px dashed #ccd3db;background-color:#fff;cursor:pointer;-webkit-transition:all .3s ease-in-out;-o-transition:all .3s ease-in-out;transition:all .3s ease-in-out}._2dcq7NHXgEwsUW4m8Fk48L._1HejuFRyIzWvFM3f0-NMFy{display:-ms-flexbox;display:flex}._2dcq7NHXgEwsUW4m8Fk48L:hover{-webkit-box-shadow:0 4px 8px 0 rgba(36,46,66,.2);box-shadow:0 4px 8px 0 rgba(36,46,66,.2);border-color:#79879c}._3BPuVvwzk_ge6XiLGhcP6v{display:-ms-flexbox;display:flex;position:relative;padding:11px 12px;margin-bottom:8px;border-radius:4px;background-color:#fff;border:1px solid #ccd3db;-webkit-transition:all .3s ease-in-out;-o-transition:all .3s ease-in-out;transition:all .3s ease-in-out}._3BPuVvwzk_ge6XiLGhcP6v .HrIC05qaTJCYxqZGeOZP8{margin-left:12px}._2yziRuevY1NN2X0AGAnWlQ{background:#fff;padding:12px;border-radius:4px;-webkit-box-shadow:0 4px 8px 0 rgba(36,46,66,.06);box-shadow:0 4px 8px 0 rgba(36,46,66,.06)}.MbTA39N9Zn2UUDj-GAUOV{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:center;align-items:center}._3Kgi3PGvirCbjpoBiX0lZa{margin-bottom:8px;font-family:PingFang SC,Lantinghei SC,Helvetica Neue,Helvetica,Arial,Microsoft YaHei,微软雅黑,STHeitiSC-Light,simsun,宋体,WenQuanYi Zen Hei,WenQuanYi Micro Hei,sans-serif;font-size:12px;font-weight:600;font-style:normal;font-stretch:normal;line-height:1.67;letter-spacing:normal;color:#36435c} \ No newline at end of file diff --git a/packages/bootstrap/assets/v3dist/4.c2561906266126f6e1b9.css b/packages/bootstrap/assets/v3dist/4.c2561906266126f6e1b9.css new file mode 100644 index 00000000000..af2518a6e09 --- /dev/null +++ b/packages/bootstrap/assets/v3dist/4.c2561906266126f6e1b9.css @@ -0,0 +1 @@ +._1SbLbTFQFqcmexUmc7grjB{padding:12px;border-radius:4px;background-color:#f9fbfd}._2JIUF6KDW0q8OuRAbzwbFy{margin-bottom:8px;font-family:PingFang SC,Lantinghei SC,Helvetica Neue,Helvetica,Arial,Microsoft YaHei,微软雅黑,STHeitiSC-Light,simsun,宋体,WenQuanYi Zen Hei,WenQuanYi Micro Hei,sans-serif;font-size:12px;font-weight:600;font-style:normal;font-stretch:normal;line-height:1.67;letter-spacing:normal;color:#36435c}._3KsLjWUYDHjA6iBRaPIyOv{border-radius:3px;border:1px solid #ccd3db;background-color:#eff4f9;overflow:hidden}.qlBBKXQBG5hybwbhVbU-r{padding:8px;background-color:#fff}._2McNE4ZD_UKTIxC59RzC6L{padding:8px;max-height:calc(100vh - 388px);min-height:352px;overflow-y:scroll}._33baKvp6rG0kolft8ThzKb{padding:8px;max-height:calc(100vh - 340px);min-height:400px;overflow-y:scroll}.rKEIrcFvmBNM5P5SjduSX{height:32px;padding:6px 8px;background-color:#fff;border-top:1px solid #ccd3db;-webkit-box-sizing:border-box;box-sizing:border-box}.rKEIrcFvmBNM5P5SjduSX>span{margin-left:4px}._1qjLklC2JUMbrIwB1g79Hk{display:-ms-flexbox;display:flex;padding:8px;border-radius:2px;background-color:#fff;-ms-flex-align:center;align-items:center;border:1px solid transparent;-webkit-transition:all .3s ease;-o-transition:all .3s ease;transition:all .3s ease;cursor:pointer}._1qjLklC2JUMbrIwB1g79Hk._1H1hQxC4CBLI54qDMSBxda{opacity:.7}._1qjLklC2JUMbrIwB1g79Hk._1H1hQxC4CBLI54qDMSBxda:hover{-webkit-box-shadow:none;box-shadow:none;border-color:transparent}._1qjLklC2JUMbrIwB1g79Hk ._39HEUMTKtnJRkqWNY8ncIH{-ms-flex:1 1;flex:1 1}._1qjLklC2JUMbrIwB1g79Hk ._29St8pjb_Msm4R7o-VJCEM>div,._1qjLklC2JUMbrIwB1g79Hk ._29St8pjb_Msm4R7o-VJCEM>p{text-align:right}._1qjLklC2JUMbrIwB1g79Hk+._1qjLklC2JUMbrIwB1g79Hk{margin-top:8px}._1qjLklC2JUMbrIwB1g79Hk:hover{-webkit-box-shadow:0 4px 8px 0 rgba(36,46,66,.2);box-shadow:0 4px 8px 0 rgba(36,46,66,.2);border-color:#79879c}.JXASYiU6D6Vir-77S8jPn{-ms-flex:auto;flex:auto;display:-ms-flexbox;display:flex;gap:12px;padding:6px 0 6px 12px;background-color:#eff4f9}.JXASYiU6D6Vir-77S8jPn ._2kZ_paFfCDfS54sVYxO5uP{-ms-flex:1 1;flex:1 1;margin-right:12px}.JXASYiU6D6Vir-77S8jPn .button+.button{margin-left:0}.Bcl945VYxNKukjCmwWYbH{margin-bottom:12px;background-color:#f9fbfd}.Bcl945VYxNKukjCmwWYbH>div:nth-child(2){padding:0 12px}._1akEUPD--PdefXH7mMFzRh{max-width:1400px;padding:40px 20px 0;margin:0 auto}._1akEUPD--PdefXH7mMFzRh p{color:#79879c}._1oOVvfOwX0wdLxlAHCW05L{margin-top:20px;padding-bottom:32px;list-style:none}._1oOVvfOwX0wdLxlAHCW05L .h6{line-height:1.43;margin-bottom:12px}._23AMlY-PP_B8q-EWe9Nusy{display:inline-block;height:20px;padding:0 8px;margin-left:8px;border-radius:10px;background-color:#abb4be;font-weight:500;color:#fff}._1Naiqed2b_IbMjwTPBJalB{height:226px;border-radius:4px;padding:32px 0;-webkit-box-shadow:0 4px 8px 0 rgba(36,46,66,.06);box-shadow:0 4px 8px 0 rgba(36,46,66,.06);background-color:#fff;text-align:center}._1Naiqed2b_IbMjwTPBJalB p{width:586px;margin:20px auto 0}._3q94sgDETrKXBctIlXBfsM{-ms-flex-pack:justify;justify-content:space-between}._3q94sgDETrKXBctIlXBfsM,._3q94sgDETrKXBctIlXBfsM .IBJR_WKxnOiMS6lYLonFG{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}._3q94sgDETrKXBctIlXBfsM .IBJR_WKxnOiMS6lYLonFG{font-family:PingFang SC,Lantinghei SC,Helvetica Neue,Helvetica,Arial,Microsoft YaHei,微软雅黑,STHeitiSC-Light,simsun,宋体,WenQuanYi Zen Hei,WenQuanYi Micro Hei,sans-serif;font-size:12px;font-weight:600;font-style:normal;font-stretch:normal;line-height:1.67;letter-spacing:normal;color:#36435c;cursor:pointer}._3q94sgDETrKXBctIlXBfsM .h6{margin-bottom:0}._3q94sgDETrKXBctIlXBfsM .h6:last-of-type{cursor:pointer}._3jc3swHeh4UBUKxi7Knl9E{position:fixed;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}._1O2jUyZCK5QvwVHX6HFiz5{display:-ms-flexbox;display:flex;padding:10px 20px;gap:20px;background:#262e40;-ms-flex-align:center;align-items:center;border-radius:4px}._1O2jUyZCK5QvwVHX6HFiz5 .button-flat,._1O2jUyZCK5QvwVHX6HFiz5 label.checkbox span.label-value{color:#fff}._1O2jUyZCK5QvwVHX6HFiz5 .button-flat:hover{color:#36435c}._1O2jUyZCK5QvwVHX6HFiz5>div{-ms-flex:0 1;flex:0 1}._1O2jUyZCK5QvwVHX6HFiz5>div:last-of-type{-ms-flex:auto;flex:auto;text-align:right}._18G3PV_M9QmHNm_Pe3L0Bx{display:-ms-inline-flexbox;display:inline-flex;margin-right:8px;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;padding:0 4px;min-width:56px;-ms-flex-pack:center;justify-content:center;gap:4px;height:20px;border-radius:2px;font-weight:600;font-size:12px;line-height:20px}._18G3PV_M9QmHNm_Pe3L0Bx._22np8xSZf0UCnE96S_GI16{background:#ffe1be;color:#8d663e}._18G3PV_M9QmHNm_Pe3L0Bx._2U2V93_vAvEaumL9ON_mvg{background:#242e42;color:#fff}._18G3PV_M9QmHNm_Pe3L0Bx._2i8Gsk7p8U7oR1hmzywLgD{background:#c7deef;color:#326e93}._18G3PV_M9QmHNm_Pe3L0Bx._1GT3lsKPy9_-kGgfpWfFop{background:#c4e6d4;color:#3b747a}.x50n5e8tRjEUlvkd5XuBb{color:#329dce;padding:0 4px;cursor:pointer;font-weight:600}._1c1F0O1nmQ9CHaDvTjXhUC{border-radius:4px;padding:12px 0;background:#c7deef}.CDKRKVIc0Cee1qd5xIRRb{position:relative;gap:8px;overflow:hidden}.CDKRKVIc0Cee1qd5xIRRb,.CDKRKVIc0Cee1qd5xIRRb ._3OAe8C6kziNfnBoyf2zGzN{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.CDKRKVIc0Cee1qd5xIRRb ._3OAe8C6kziNfnBoyf2zGzN{position:absolute;top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);left:20px;-ms-flex-pack:center;justify-content:center}.CDKRKVIc0Cee1qd5xIRRb ._1QnNQR94F3Z35Qte36VdvO{font-family:Roboto,PingFang SC,Lantinghei SC,Helvetica Neue,Helvetica,Arial,Microsoft YaHei,微软雅黑,STHeitiSC-Light,simsun,宋体,WenQuanYi Zen Hei,WenQuanYi Micro Hei,sans-serif;font-size:12px;font-weight:400;font-style:normal;font-stretch:normal;line-height:1.67;letter-spacing:normal;color:#326e93;margin-left:48px}.E0vtK-35j9eQt49Mf6NsA{padding:0;bottom:0!important;max-height:calc(100vh - 100px)}._2Bfr8X-g7qOWhCWvYqdfMP{padding:0;-webkit-box-shadow:none;box-shadow:none}._7jLDaj4UuqLC0FWLjpwWf>div{padding:12px;background-color:#f9fbfd;-webkit-transition:all .3s ease-in-out;-o-transition:all .3s ease-in-out;transition:all .3s ease-in-out;cursor:pointer;border-radius:4px}._7jLDaj4UuqLC0FWLjpwWf>div:first-child{margin-bottom:8px}._7jLDaj4UuqLC0FWLjpwWf>div:hover{background-color:#eff4f9}._7jLDaj4UuqLC0FWLjpwWf>div:active{background-color:#e3e9ef}.BVjeWOWAID34-TEF0b_fR{margin-top:8px}.BVjeWOWAID34-TEF0b_fR ._16Av2PREJGprEr_93DL4X4{margin-bottom:8px;font-size:12px;line-height:1.67;font-family:Roboto,PingFang SC,Lantinghei SC,Helvetica Neue,Helvetica,Arial,Microsoft YaHei,微软雅黑,STHeitiSC-Light,simsun,宋体,WenQuanYi Zen Hei,WenQuanYi Micro Hei,sans-serif;font-style:normal;font-stretch:normal;letter-spacing:normal;font-weight:700;color:#242e42}._1FOMscQVAI8cyABa4Bk5SV{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-direction:row;flex-direction:row}._1FOMscQVAI8cyABa4Bk5SV>div{width:calc(50% - 4px);height:64px;padding:12px;-ms-flex-align:center;align-items:center;margin-right:8px;margin-bottom:8px;background:#f9fbfd;border-radius:4px;overflow:hidden}._1FOMscQVAI8cyABa4Bk5SV>div>div{width:100%}._1FOMscQVAI8cyABa4Bk5SV>div>div div:first-child{-o-text-overflow:ellipsis;text-overflow:ellipsis;white-space:nowrap;word-wrap:normal;overflow:hidden}._1FOMscQVAI8cyABa4Bk5SV>div:nth-child(2n){margin-right:0}._2mo2Puhwc8tT6e9PomRdYU{padding:0;-webkit-box-shadow:none;box-shadow:none}._2mo2Puhwc8tT6e9PomRdYU ._2WYsLXyHOnbrxXt0OFY1Km{display:-ms-flexbox;display:flex;margin-bottom:8px;font-family:PingFang SC,Lantinghei SC,Helvetica Neue,Helvetica,Arial,Microsoft YaHei,微软雅黑,STHeitiSC-Light,simsun,宋体,WenQuanYi Zen Hei,WenQuanYi Micro Hei,sans-serif;font-size:12px;font-weight:600;font-style:normal;font-stretch:normal;line-height:1.67;letter-spacing:normal;color:#36435c;font-size:14px;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:center;align-items:center}._2mo2Puhwc8tT6e9PomRdYU ._2WYsLXyHOnbrxXt0OFY1Km>div{font-size:14px}._2mo2Puhwc8tT6e9PomRdYU ._2WYsLXyHOnbrxXt0OFY1Km .radio-group{height:24px;width:76px;padding:2px;border-radius:4px;border:none;background-color:#e3e9ef}._2mo2Puhwc8tT6e9PomRdYU ._2WYsLXyHOnbrxXt0OFY1Km .radio-group label{min-width:36px;width:36px!important;height:20px;background-color:#e3e9ef;border-radius:2px!important;color:#79879c;padding:0!important}._2mo2Puhwc8tT6e9PomRdYU ._2WYsLXyHOnbrxXt0OFY1Km .radio-group .checked{background:#fff;border-radius:2px;color:#242e42}._2mo2Puhwc8tT6e9PomRdYU .u4rCe6nDLY5vbaq5aXJDQ{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}._2mo2Puhwc8tT6e9PomRdYU .u4rCe6nDLY5vbaq5aXJDQ ._25M1cGJCz3WgAIQhGkQ6JX{-ms-flex:3 1;flex:3 1}._2mo2Puhwc8tT6e9PomRdYU .u4rCe6nDLY5vbaq5aXJDQ ._25M1cGJCz3WgAIQhGkQ6JX:first-child{-ms-flex:2 1;flex:2 1;margin-right:12px}._2mo2Puhwc8tT6e9PomRdYU .RtrNzNpCozOK2jXlZFrPb{position:relative;margin-top:12px;-webkit-transition:all .3s ease;-o-transition:all .3s ease;transition:all .3s ease}._2mo2Puhwc8tT6e9PomRdYU ._3-eBd_RaqO30cf2v7AeZWY{display:-ms-flexbox;display:flex;padding:12px;margin-bottom:8px;background-color:#f9fbfd;-ms-flex-align:center;align-items:center;border-radius:4px}._2mo2Puhwc8tT6e9PomRdYU ._3ODrxke8bqLQHUb7302kOC{width:calc(100% - 182px)}._2mo2Puhwc8tT6e9PomRdYU ._3ODrxke8bqLQHUb7302kOC>div{width:100%}._2mo2Puhwc8tT6e9PomRdYU ._3ODrxke8bqLQHUb7302kOC>div>div:last-child{overflow:hidden;-o-text-overflow:ellipsis;text-overflow:ellipsis;white-space:nowrap}._2mo2Puhwc8tT6e9PomRdYU ._2WxN_xHdXDli_mWcI5oYGV{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}._2mo2Puhwc8tT6e9PomRdYU ._2WxN_xHdXDli_mWcI5oYGV a{max-width:calc(100% - 80px);display:inline-block;overflow:hidden;-o-text-overflow:ellipsis;text-overflow:ellipsis;white-space:nowrap}._2mo2Puhwc8tT6e9PomRdYU ._2WxN_xHdXDli_mWcI5oYGV ._3rjIYXMWaltqHcODVaa0ww{white-space:nowrap;margin-right:0}._2mo2Puhwc8tT6e9PomRdYU ._3RSzNTep-_u0G6h5xmtrsE a{max-width:100%}._2mo2Puhwc8tT6e9PomRdYU .v0DrKUbv1DFqez5KfSlC-{min-width:130px;padding:12px;margin:-12px -12px -12px auto;font-size:16px;font-weight:600;text-align:right}._2mo2Puhwc8tT6e9PomRdYU .t2fjcneoLurD1QVIju9nO{width:100%;height:32px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;background:#f9fbfd;border-radius:4px;border:none;cursor:pointer}._2mo2Puhwc8tT6e9PomRdYU .t2fjcneoLurD1QVIju9nO ._2WxN_xHdXDli_mWcI5oYGV{margin-left:4px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-weight:600;font-size:12px;line-height:20px;color:#36435c}._2mo2Puhwc8tT6e9PomRdYU ._3rjIYXMWaltqHcODVaa0ww{color:#fff;border-radius:4px;background:#36435c;padding:0 .3em;margin:0 .3em}._2mo2Puhwc8tT6e9PomRdYU ._1aPF0hZOOhyo-EPu3G8bIa{margin:12px -12px -12px;padding:12px;border-top:1px solid #ccd3db}._2mo2Puhwc8tT6e9PomRdYU ._1aPF0hZOOhyo-EPu3G8bIa button{width:100%}._165qOBnN9HAs4LrY_LK-d6{margin-top:4px;margin-bottom:8px}._165qOBnN9HAs4LrY_LK-d6 ._2vFFuGnTwzqjBij8D3BPRc{margin-bottom:8px;font-size:12px;line-height:1.67;font-family:Roboto,PingFang SC,Lantinghei SC,Helvetica Neue,Helvetica,Arial,Microsoft YaHei,微软雅黑,STHeitiSC-Light,simsun,宋体,WenQuanYi Zen Hei,WenQuanYi Micro Hei,sans-serif;font-style:normal;font-stretch:normal;letter-spacing:normal;font-weight:700;color:#242e42}._165qOBnN9HAs4LrY_LK-d6 ._20PSSvdZ2gt1lsGGJB4rsS{width:100%}._165qOBnN9HAs4LrY_LK-d6 ._20PSSvdZ2gt1lsGGJB4rsS ._2UJuf7ZQGgEclggVm__94Z{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-direction:row;flex-direction:row}._165qOBnN9HAs4LrY_LK-d6 ._20PSSvdZ2gt1lsGGJB4rsS ._2UJuf7ZQGgEclggVm__94Z>div{width:calc(50% - 4px);height:64px;padding:12px;-ms-flex-align:center;align-items:center;margin-right:8px;margin-bottom:8px;background:#f9fbfd;border-radius:4px}._165qOBnN9HAs4LrY_LK-d6 ._20PSSvdZ2gt1lsGGJB4rsS ._2UJuf7ZQGgEclggVm__94Z>div:nth-child(2n){margin-right:0}._165qOBnN9HAs4LrY_LK-d6 ._20PSSvdZ2gt1lsGGJB4rsS ._2UJuf7ZQGgEclggVm__94Z div:last-child,._165qOBnN9HAs4LrY_LK-d6 ._20PSSvdZ2gt1lsGGJB4rsS ._2UJuf7ZQGgEclggVm__94Z div:nth-last-child(2){margin-bottom:0}._1FfLhAgROftyj0IuUcQI4e{background:#f9fbfd;padding-top:0;margin-bottom:12px;border-radius:4px}._1FfLhAgROftyj0IuUcQI4e:last-child{margin-bottom:0}._1FfLhAgROftyj0IuUcQI4e ._3XEnA-pHA2CNFrAV1LnWJF{display:-ms-flexbox;display:flex;height:175px;background-color:#f9fbfd}._1FfLhAgROftyj0IuUcQI4e ._2CBIhq8TuoMF1r-JDYlLGA{font-size:12px;line-height:1.67;font-family:Roboto,PingFang SC,Lantinghei SC,Helvetica Neue,Helvetica,Arial,Microsoft YaHei,微软雅黑,STHeitiSC-Light,simsun,宋体,WenQuanYi Zen Hei,WenQuanYi Micro Hei,sans-serif;font-style:normal;font-stretch:normal;letter-spacing:normal;font-weight:700;color:#242e42;margin-bottom:12px}._1FfLhAgROftyj0IuUcQI4e ._1_444QYPwve2sPOoNmVVWH{position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%);height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;text-align:center;font-weight:600;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}._1FfLhAgROftyj0IuUcQI4e ._1G7CGL6N9PpdMV6H4PvpwD{width:360px;padding:12px;position:relative}._1FfLhAgROftyj0IuUcQI4e ._1G7CGL6N9PpdMV6H4PvpwD ._3axU54fLqK1Opc2i0QIVAa{width:345px;height:120px;position:absolute;top:44px;left:50%;-webkit-transform:translateX(-50%);-ms-transform:translateX(-50%);transform:translateX(-50%)}._1FfLhAgROftyj0IuUcQI4e ._1G7CGL6N9PpdMV6H4PvpwD ._3axU54fLqK1Opc2i0QIVAa ._1HKFmOmlSy27H88Xcdndw-{position:absolute;top:50%;left:65px;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.gGKFTd29XBoqYhN47F0EN{padding:12px;background:#fff;-webkit-box-shadow:0 4px 8px rgba(36,46,66,.06);box-shadow:0 4px 8px rgba(36,46,66,.06);border-radius:4px;-webkit-transition:all .3s;-o-transition:all .3s;transition:all .3s}.gGKFTd29XBoqYhN47F0EN:hover{-webkit-box-shadow:0 6px 16px 0 rgba(33,43,54,.2);box-shadow:0 6px 16px 0 rgba(33,43,54,.2)}.gGKFTd29XBoqYhN47F0EN .psEkXLBc8Tknh1fcEwq0R{position:relative;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:center;align-items:center;margin-bottom:12px}.gGKFTd29XBoqYhN47F0EN .psEkXLBc8Tknh1fcEwq0R .nnAGEVZwoSGU5FPr3MHhY{font-size:14px;line-height:1.43;font-family:Roboto,PingFang SC,Lantinghei SC,Helvetica Neue,Helvetica,Arial,Microsoft YaHei,微软雅黑,STHeitiSC-Light,simsun,宋体,WenQuanYi Zen Hei,WenQuanYi Micro Hei,sans-serif;font-style:normal;font-stretch:normal;letter-spacing:normal;font-weight:700;color:#242e42}.gGKFTd29XBoqYhN47F0EN .psEkXLBc8Tknh1fcEwq0R ._1rANBkB5gBrmSxmTvCrZES .icon{margin-left:4px;margin-top:-2px}.gGKFTd29XBoqYhN47F0EN .psEkXLBc8Tknh1fcEwq0R>div:last-child label{min-width:96px}.gGKFTd29XBoqYhN47F0EN .psEkXLBc8Tknh1fcEwq0R ._1sGDf57rraXGzxVxlyt5ka{position:absolute;right:0;padding:1px;-webkit-box-sizing:border-box;box-sizing:border-box}.gGKFTd29XBoqYhN47F0EN .psEkXLBc8Tknh1fcEwq0R ._1sGDf57rraXGzxVxlyt5ka .radio-button{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}.gGKFTd29XBoqYhN47F0EN ._3GkrBwSCVOVOLT3cNmYHXR{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}._3AfNjV_69JEh6a-Ki6__ME{padding:12px;background:#fff;-webkit-box-shadow:0 4px 8px rgba(36,46,66,.06);box-shadow:0 4px 8px rgba(36,46,66,.06);border-radius:4px;margin-top:12px;-webkit-transition:all .3s;-o-transition:all .3s;transition:all .3s}._3AfNjV_69JEh6a-Ki6__ME:hover{-webkit-box-shadow:0 6px 16px 0 rgba(33,43,54,.2);box-shadow:0 6px 16px 0 rgba(33,43,54,.2)}._3AfNjV_69JEh6a-Ki6__ME ._1KlUEi5CK7QfxyrYRm_PvN{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:center;align-items:center;margin-bottom:12px}._3AfNjV_69JEh6a-Ki6__ME ._1KlUEi5CK7QfxyrYRm_PvN .wxv8jUlnhu24IEsJ8B4bV{font-size:14px;line-height:1.43;font-family:Roboto,PingFang SC,Lantinghei SC,Helvetica Neue,Helvetica,Arial,Microsoft YaHei,微软雅黑,STHeitiSC-Light,simsun,宋体,WenQuanYi Zen Hei,WenQuanYi Micro Hei,sans-serif;font-style:normal;font-stretch:normal;letter-spacing:normal;font-weight:700;color:#242e42}._3AfNjV_69JEh6a-Ki6__ME ._1KlUEi5CK7QfxyrYRm_PvN ._3LIahHmW7JD-ASZ0_IvGdl{position:relative}._3AfNjV_69JEh6a-Ki6__ME ._1KlUEi5CK7QfxyrYRm_PvN ._3LIahHmW7JD-ASZ0_IvGdl button{min-width:auto}._3AfNjV_69JEh6a-Ki6__ME ._3fZrB3MhmR4IMkudBgI2Hb{margin-bottom:8px}._3AfNjV_69JEh6a-Ki6__ME ._3fZrB3MhmR4IMkudBgI2Hb ._16NEdMhyLw7u5fkRrSHGXu{display:-ms-flexbox;display:flex;margin-bottom:8px}._3AfNjV_69JEh6a-Ki6__ME ._3fZrB3MhmR4IMkudBgI2Hb ._16NEdMhyLw7u5fkRrSHGXu ._1VUPfd9JbUdb-RWTcl3s8Y{cursor:pointer;-ms-flex:1 1;flex:1 1;margin-right:8px;min-width:117px;height:86px;padding:12px;border-radius:4px;background:#f9fbfd;-webkit-transition:all .3s ease;-o-transition:all .3s ease;transition:all .3s ease}._3AfNjV_69JEh6a-Ki6__ME ._3fZrB3MhmR4IMkudBgI2Hb ._16NEdMhyLw7u5fkRrSHGXu ._1VUPfd9JbUdb-RWTcl3s8Y:last-child{margin-right:0}._3AfNjV_69JEh6a-Ki6__ME ._3fZrB3MhmR4IMkudBgI2Hb ._16NEdMhyLw7u5fkRrSHGXu ._1VUPfd9JbUdb-RWTcl3s8Y ._1g96nJUyAxnNVHQpEt-Tu4{color:#79879c;line-height:20px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;margin-bottom:4px;font-weight:600}._3AfNjV_69JEh6a-Ki6__ME ._3fZrB3MhmR4IMkudBgI2Hb ._16NEdMhyLw7u5fkRrSHGXu ._1VUPfd9JbUdb-RWTcl3s8Y ._1g96nJUyAxnNVHQpEt-Tu4 span:nth-child(2){margin:0 8px;-o-text-overflow:ellipsis;text-overflow:ellipsis;white-space:nowrap;word-wrap:normal;overflow:hidden}._3AfNjV_69JEh6a-Ki6__ME ._3fZrB3MhmR4IMkudBgI2Hb ._16NEdMhyLw7u5fkRrSHGXu ._1VUPfd9JbUdb-RWTcl3s8Y ._102usDIj3RFrFQc0qzmjkL{color:#242e42}._3AfNjV_69JEh6a-Ki6__ME ._3fZrB3MhmR4IMkudBgI2Hb ._16NEdMhyLw7u5fkRrSHGXu ._1VUPfd9JbUdb-RWTcl3s8Y ._102usDIj3RFrFQc0qzmjkL span{font-weight:600}._3AfNjV_69JEh6a-Ki6__ME ._3fZrB3MhmR4IMkudBgI2Hb ._16NEdMhyLw7u5fkRrSHGXu ._1VUPfd9JbUdb-RWTcl3s8Y ._102usDIj3RFrFQc0qzmjkL span:first-child{font-size:20px}._3AfNjV_69JEh6a-Ki6__ME ._3fZrB3MhmR4IMkudBgI2Hb ._16NEdMhyLw7u5fkRrSHGXu ._1VUPfd9JbUdb-RWTcl3s8Y ._1jJ2mvEYx3w8f0WNYtBgUn .progress{height:6px}._3AfNjV_69JEh6a-Ki6__ME ._3fZrB3MhmR4IMkudBgI2Hb ._16NEdMhyLw7u5fkRrSHGXu ._1VUPfd9JbUdb-RWTcl3s8Y ._1rMf9_vH9PUUNoTdhRT1CY{background-color:#36435c}._3AfNjV_69JEh6a-Ki6__ME ._3fZrB3MhmR4IMkudBgI2Hb ._16NEdMhyLw7u5fkRrSHGXu .BmAIrTk8YXWlhoCQ3W2RT{background:#242e42}._3AfNjV_69JEh6a-Ki6__ME ._3fZrB3MhmR4IMkudBgI2Hb ._16NEdMhyLw7u5fkRrSHGXu .BmAIrTk8YXWlhoCQ3W2RT ._1g96nJUyAxnNVHQpEt-Tu4,._3AfNjV_69JEh6a-Ki6__ME ._3fZrB3MhmR4IMkudBgI2Hb ._16NEdMhyLw7u5fkRrSHGXu .BmAIrTk8YXWlhoCQ3W2RT ._102usDIj3RFrFQc0qzmjkL{color:#fff}._3AfNjV_69JEh6a-Ki6__ME ._2CnJeYKVn7aTV8NVZDMLte{height:200px}._3AgVoyIMKNanAI4WqrWE-p{font-weight:bolder;color:#fff}._3AgVoyIMKNanAI4WqrWE-p p{white-space:nowrap}._3AgVoyIMKNanAI4WqrWE-p p i{background:#55bc8a;border-radius:50%;width:6px;height:6px;margin-right:7px;display:inline-block}._3AgVoyIMKNanAI4WqrWE-p p:not(:last-child){margin-bottom:5px}._3AgVoyIMKNanAI4WqrWE-p p:last-child{margin-bottom:0}._3AgVoyIMKNanAI4WqrWE-p p:last-child i{background:#eff4f9}._1KXDp6aGvTp3B_76jde76g{padding:12px;background:#fff;border-radius:4px;-webkit-transition:all .3s;-o-transition:all .3s;-webkit-box-shadow:0 4px 8px 0 rgba(36,46,66,.06);box-shadow:0 4px 8px 0 rgba(36,46,66,.06);margin-top:12px;transition:all .3s}._1KXDp6aGvTp3B_76jde76g:hover{-webkit-box-shadow:0 6px 16px 0 rgba(33,43,54,.2);box-shadow:0 6px 16px 0 rgba(33,43,54,.2)}._1KXDp6aGvTp3B_76jde76g .aa63oPBQk4YccjmIB7Tf9{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row}._1KXDp6aGvTp3B_76jde76g .p0KevOJsuDpyFtpWy-Pmd{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:center;align-items:center;margin-bottom:12px}._1KXDp6aGvTp3B_76jde76g .p0KevOJsuDpyFtpWy-Pmd ._3lf4VoLw6TPRzGqQQqqXAy{font-size:14px;line-height:1.43;font-family:Roboto,PingFang SC,Lantinghei SC,Helvetica Neue,Helvetica,Arial,Microsoft YaHei,微软雅黑,STHeitiSC-Light,simsun,宋体,WenQuanYi Zen Hei,WenQuanYi Micro Hei,sans-serif;font-style:normal;font-stretch:normal;letter-spacing:normal;font-weight:700;color:#242e42}._1KXDp6aGvTp3B_76jde76g ._3rWJ6cDNQm7VQRaU1blM4C{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex:1 1;flex:1 1}._1KXDp6aGvTp3B_76jde76g ._3rWJ6cDNQm7VQRaU1blM4C._3MNES7gfSxsOPIJfE685LF{-ms-flex:none;flex:none;width:360px;margin-right:12px;margin-bottom:0}._1KXDp6aGvTp3B_76jde76g ._3rWJ6cDNQm7VQRaU1blM4C ._1Kvjm9p_EFdynInmm0cLW-{background:#f9fbfd;border-radius:4px;padding:12px}._1KXDp6aGvTp3B_76jde76g ._3rWJ6cDNQm7VQRaU1blM4C ._1Kvjm9p_EFdynInmm0cLW-:last-child{margin-right:0;margin-bottom:0}._1KXDp6aGvTp3B_76jde76g ._3rWJ6cDNQm7VQRaU1blM4C ._1Kvjm9p_EFdynInmm0cLW- ._187CCI_SZXINFXBWbawtoj{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;z-index:10;margin-bottom:12px}._1KXDp6aGvTp3B_76jde76g ._3rWJ6cDNQm7VQRaU1blM4C ._1Kvjm9p_EFdynInmm0cLW- ._187CCI_SZXINFXBWbawtoj img{width:40px;height:40px}._1KXDp6aGvTp3B_76jde76g ._3rWJ6cDNQm7VQRaU1blM4C ._1Kvjm9p_EFdynInmm0cLW- ._187CCI_SZXINFXBWbawtoj ._1yqGhF3ibLvdKq8jQ74m5Z{margin-left:10px;font-size:20px}._1KXDp6aGvTp3B_76jde76g ._3rWJ6cDNQm7VQRaU1blM4C ._1Kvjm9p_EFdynInmm0cLW- ._187CCI_SZXINFXBWbawtoj ._1yqGhF3ibLvdKq8jQ74m5Z>p{line-height:24px;font-weight:600;font-size:16px}._1KXDp6aGvTp3B_76jde76g ._3rWJ6cDNQm7VQRaU1blM4C ._1Kvjm9p_EFdynInmm0cLW- ._187CCI_SZXINFXBWbawtoj ._1yqGhF3ibLvdKq8jQ74m5Z>p:last-child{color:#79879c;font-weight:400;font-size:12px}._1KXDp6aGvTp3B_76jde76g ._3rWJ6cDNQm7VQRaU1blM4C ._2P17qQOGvnv6I_q2AIevQu{height:129px;margin-bottom:12px}._1KXDp6aGvTp3B_76jde76g ._3rWJ6cDNQm7VQRaU1blM4C ._2P17qQOGvnv6I_q2AIevQu .TIDiE53zz07X2qn4FWfbn{height:50px;width:100%}._1KXDp6aGvTp3B_76jde76g ._3rWJ6cDNQm7VQRaU1blM4C ._2P17qQOGvnv6I_q2AIevQu ._2OYrYrcLQRhPNLGAvXK7h5{text-align:center;font-weight:600;margin-top:20px}._1KXDp6aGvTp3B_76jde76g ._3rWJ6cDNQm7VQRaU1blM4C ._3VMERMVFngxvFJA_26CjSZ{padding:12px;height:199px;position:relative;margin-bottom:12px}._1KXDp6aGvTp3B_76jde76g ._3rWJ6cDNQm7VQRaU1blM4C ._3VMERMVFngxvFJA_26CjSZ:last-child{margin-bottom:0}._1KXDp6aGvTp3B_76jde76g ._3rWJ6cDNQm7VQRaU1blM4C ._3VMERMVFngxvFJA_26CjSZ ._3O6cFbvaVvKT56AbX_QwpL{font-size:12px;line-height:1.67;font-family:Roboto,PingFang SC,Lantinghei SC,Helvetica Neue,Helvetica,Arial,Microsoft YaHei,微软雅黑,STHeitiSC-Light,simsun,宋体,WenQuanYi Zen Hei,WenQuanYi Micro Hei,sans-serif;font-style:normal;font-stretch:normal;letter-spacing:normal;font-weight:700;color:#242e42;margin-bottom:12px}._1KXDp6aGvTp3B_76jde76g ._3rWJ6cDNQm7VQRaU1blM4C ._3VMERMVFngxvFJA_26CjSZ ._3O6cFbvaVvKT56AbX_QwpL ._1YotQOmdCOkQBRQYot574B{margin-left:4px}._1KXDp6aGvTp3B_76jde76g ._3rWJ6cDNQm7VQRaU1blM4C ._3VMERMVFngxvFJA_26CjSZ ._3QATPh7y3GIIi3exaO4_5Y{width:100%;height:130px;position:absolute;top:28%;left:50%;-webkit-transform:translateX(-50%);-ms-transform:translateX(-50%);transform:translateX(-50%)}._1KXDp6aGvTp3B_76jde76g ._3rWJ6cDNQm7VQRaU1blM4C ._3VMERMVFngxvFJA_26CjSZ ._3QATPh7y3GIIi3exaO4_5Y ._3RmUw3Nkybn2574L0Z3tpa{width:100%;margin-right:20px}._1KXDp6aGvTp3B_76jde76g ._3rWJ6cDNQm7VQRaU1blM4C ._3VMERMVFngxvFJA_26CjSZ ._3QATPh7y3GIIi3exaO4_5Y .bOPidX29Du8n9Vdf6Rkbn{position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%);height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;text-align:center;font-weight:600;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}._1KXDp6aGvTp3B_76jde76g ._3rWJ6cDNQm7VQRaU1blM4C ._3VMERMVFngxvFJA_26CjSZ ._3QATPh7y3GIIi3exaO4_5Y ._3ki2HjqdR-jG5-iwK7mveQ{width:50px;position:absolute;top:50%;left:56px;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);text-align:center}._1KXDp6aGvTp3B_76jde76g ._3rWJ6cDNQm7VQRaU1blM4C ._3VMERMVFngxvFJA_26CjSZ ._3QATPh7y3GIIi3exaO4_5Y ._3ki2HjqdR-jG5-iwK7mveQ p:first-child{font-size:20px;line-height:1.4;font-family:Roboto,PingFang SC,Lantinghei SC,Helvetica Neue,Helvetica,Arial,Microsoft YaHei,微软雅黑,STHeitiSC-Light,simsun,宋体,WenQuanYi Zen Hei,WenQuanYi Micro Hei,sans-serif;font-style:normal;font-stretch:normal;letter-spacing:normal;font-weight:600;color:#242e42;-o-text-overflow:ellipsis;text-overflow:ellipsis;white-space:nowrap;word-wrap:normal;overflow:hidden;line-height:24px}._1KXDp6aGvTp3B_76jde76g ._3rWJ6cDNQm7VQRaU1blM4C ._3VMERMVFngxvFJA_26CjSZ ._3QATPh7y3GIIi3exaO4_5Y ._3ki2HjqdR-jG5-iwK7mveQ p:last-child{font-size:12px;color:#79879c}._1KXDp6aGvTp3B_76jde76g ._3rWJ6cDNQm7VQRaU1blM4C ._3VMERMVFngxvFJA_26CjSZ ._3QATPh7y3GIIi3exaO4_5Y ._1tzQdq-cW2zRl4MEvRpmfk{position:absolute;left:80px;width:120px;height:120px;background:#eff4f9;border-radius:50%;-webkit-transform:translateX(-50%);-ms-transform:translateX(-50%);transform:translateX(-50%);display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}._1KXDp6aGvTp3B_76jde76g ._3rWJ6cDNQm7VQRaU1blM4C ._3VMERMVFngxvFJA_26CjSZ ._3QATPh7y3GIIi3exaO4_5Y ._1tzQdq-cW2zRl4MEvRpmfk>div{width:100px;height:100px;border-radius:50%;background:#f9fbfd}._3TIkcixsbk2rfOzvmSglll{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:center;align-items:center}._3TIkcixsbk2rfOzvmSglll ._2If3z4jEFyrdpEwSOz9Cd0{font-size:20px;line-height:1.4;font-family:Roboto,PingFang SC,Lantinghei SC,Helvetica Neue,Helvetica,Arial,Microsoft YaHei,微软雅黑,STHeitiSC-Light,simsun,宋体,WenQuanYi Zen Hei,WenQuanYi Micro Hei,sans-serif;font-style:normal;font-stretch:normal;letter-spacing:normal;font-weight:600;color:#242e42}._3TIkcixsbk2rfOzvmSglll ._2d8HFTvIeFbq48T_2_INiL{display:-ms-flexbox;display:flex}._3TIkcixsbk2rfOzvmSglll ._2d8HFTvIeFbq48T_2_INiL>button{margin-right:10px}._3TIkcixsbk2rfOzvmSglll ._2d8HFTvIeFbq48T_2_INiL button{border-radius:4px;padding:5px 12px;-webkit-box-shadow:0 2px 16px 0 rgba(35,45,65,.28);box-shadow:0 2px 16px 0 rgba(35,45,65,.28)}._3TIkcixsbk2rfOzvmSglll ._2d8HFTvIeFbq48T_2_INiL button ._1LeQtqOY9e2t9Fxhx4vfwN{position:relative;top:2px;display:inline-block}._3TIkcixsbk2rfOzvmSglll ._2d8HFTvIeFbq48T_2_INiL ._2u2IPfud0Pkfs92q2QRihf{background:#e3e9ef;color:#79879c;border-color:#e3e9ef}._3y79Yhcw03152ck3knp7Sm{margin-top:0}._1oddtKEmBPr2Q78MWdiz8P{padding:12px}._1oddtKEmBPr2Q78MWdiz8P>div:last-child{margin-bottom:0}._1oddtKEmBPr2Q78MWdiz8P ._2k_QK2HXB_eu_JnMgIqnk0{width:100%;height:32px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;background:#f9fbfd;border-radius:4px;margin-bottom:12px;cursor:pointer}._1oddtKEmBPr2Q78MWdiz8P ._2k_QK2HXB_eu_JnMgIqnk0 ._1zkshTewK41i-RbRj0OILz{margin-left:4px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-weight:600;font-size:12px;line-height:20px;color:#36435c}.Bzo6m09_knXXEuHuzNYwz{height:72px;border-radius:4px;padding:12px;background:#242e42;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}._3l_a0hgmxdE69BM0ImrALf .column:first-child{padding-right:5px}._3l_a0hgmxdE69BM0ImrALf .column:last-child{padding-left:5px}.xYCZzciHY43vhVTrp7xSh{padding:12px;margin-bottom:12px;border-radius:4px;background-color:#f9fbfd}._2kmqpwwfGMsHH9oJWvLCE3{padding:12px;border-radius:4px;background-color:#fff}._3MTBbVd_VKS-expBXUCKaT{margin-bottom:12px;font-family:PingFang SC,Lantinghei SC,Helvetica Neue,Helvetica,Arial,Microsoft YaHei,微软雅黑,STHeitiSC-Light,simsun,宋体,WenQuanYi Zen Hei,WenQuanYi Micro Hei,sans-serif;font-size:12px;font-weight:600;font-style:normal;font-stretch:normal;line-height:1.67;letter-spacing:normal;color:#242e42}._3MTBbVd_VKS-expBXUCKaT .icon{margin-top:-2px}._1mVqv7Bvf0EM6_nde2Kyoc{position:relative;padding:20px 0 51px}._1mVqv7Bvf0EM6_nde2Kyoc .D50q03_8jlQUkGn4-ArPR{position:relative;width:100%;height:8px;border-radius:4px;border:1px solid #ccd3db;background-color:#f9fbfd}._1mVqv7Bvf0EM6_nde2Kyoc .D50q03_8jlQUkGn4-ArPR ._3ZgBAbIKm1KQvhHUfK1aOp{position:absolute;left:-1px;top:-1px;bottom:-1px;border-radius:4px;background-color:#479e88}._1mVqv7Bvf0EM6_nde2Kyoc .rqHnXC7ewOYA30eJNVDPX{position:relative;margin:0 60px}._1mVqv7Bvf0EM6_nde2Kyoc .rqHnXC7ewOYA30eJNVDPX>div{position:absolute;top:-12px;-webkit-transform:translateX(-50%);-ms-transform:translateX(-50%);transform:translateX(-50%);min-width:100px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center;font-family:Roboto,PingFang SC,Lantinghei SC,Helvetica Neue,Helvetica,Arial,Microsoft YaHei,微软雅黑,STHeitiSC-Light,simsun,宋体,WenQuanYi Zen Hei,WenQuanYi Micro Hei,sans-serif;font-size:12px;font-weight:400;font-style:normal;font-stretch:normal;line-height:1.67;letter-spacing:normal;color:#79879c}._1mVqv7Bvf0EM6_nde2Kyoc .kdmVG3uMIdl6SzCY33nRO{position:relative;width:16px;height:16px;margin-bottom:7px;border-radius:50%;border:1px solid #ccd3db;background-color:#f9fbfd}._1mVqv7Bvf0EM6_nde2Kyoc .kdmVG3uMIdl6SzCY33nRO._3a8-eYwYQuiJ6UzAKAsl3X{background-color:#479e88;border-color:#3b747a}._1mVqv7Bvf0EM6_nde2Kyoc .kdmVG3uMIdl6SzCY33nRO .icon{position:absolute;top:0;left:0}._1ZYGr32d6j_R5baIgXQazX{position:relative;width:100%}._2ZpzJeyVoDWjVKxqwHGm3g{display:-ms-flexbox;display:flex;padding:12px;border-radius:4px;border:1px solid #ccd3db;background-color:#fff;cursor:pointer}._2ZpzJeyVoDWjVKxqwHGm3g>div{min-width:120px;margin-right:60px}._2ZpzJeyVoDWjVKxqwHGm3g>div:first-of-type{min-width:240px}._2ZpzJeyVoDWjVKxqwHGm3g.jTlJLDldR-XG-iyh-mjK3{margin:0 -6px;padding:12px 16px;background-color:#242e42;border-color:#242e42;z-index:1}._2ZpzJeyVoDWjVKxqwHGm3g.jTlJLDldR-XG-iyh-mjK3>div>div>div,._2ZpzJeyVoDWjVKxqwHGm3g.jTlJLDldR-XG-iyh-mjK3>div>div>p{color:#fff!important}._2ZpzJeyVoDWjVKxqwHGm3g.jTlJLDldR-XG-iyh-mjK3 .kubed-icon-dark{color:hsla(0,0%,100%,.9);fill:hsla(0,0%,100%,.4)}._3f-fp8mhWq2tAQ_YVhTLKe{position:absolute;width:100%;padding:12px;border-radius:0 0 4px 4px;-webkit-box-shadow:0 4px 8px 0 rgba(121,135,156,.2);box-shadow:0 4px 8px 0 rgba(121,135,156,.2);border:1px solid #79879c;border-top-color:#242e42;background-color:#fff;opacity:0;z-index:-1}._3f-fp8mhWq2tAQ_YVhTLKe._28OOucN0W4PlaBPh8Ght1Q{position:relative;opacity:1;z-index:0}._3ic5zBiEYnODK3W48mXCcw{height:400px;padding:12px;border-radius:4px;background-color:#242e42;font-family:Monaco,sans-serif;line-height:2;color:#eff4f9;overflow:auto}.R9IBUiaF5PkTbPyP6RWNd .code{display:inline-block;height:20px;padding:0 4px;border-radius:1px;background-color:#d8dee5;font-family:Monaco,sans-serif;font-size:12px;font-weight:400;font-style:normal;font-stretch:normal;line-height:2;letter-spacing:normal;color:#363e4a;line-height:20px}._1JQ4zn_Cw-dmE1ZDn69Txe{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;position:relative;padding:8px}._1JQ4zn_Cw-dmE1ZDn69Txe .spin{margin-right:18px}._1otAQN1KwOXRV4R1rsL2ya{padding:12px;margin-top:12px;border-radius:4px;background-color:#f9fbfd}._19gcBhB12xSSxmo7Sz-A-A{position:relative;padding:12px;border-radius:4px;border:1px solid #ccd3db;background-color:#fff}._19gcBhB12xSSxmo7Sz-A-A+._19gcBhB12xSSxmo7Sz-A-A{margin-top:8px}._3ssav0j2qS76PABoSIpIg8{position:absolute;top:17px;right:12px}.XPuWslQJNnmvAm5rlLuD_{position:absolute;top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);right:12px}.g8QlCJy-fQF9buKTjwNsv{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.g8QlCJy-fQF9buKTjwNsv .U5zHvmvvHdsAuoC5QNq1{margin-left:6px}._2jBC4N_eKhB_IMAWm0UTuO{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;gap:5px}._2jBC4N_eKhB_IMAWm0UTuO>a{-ms-flex:1 1 auto;flex:1 1 auto;-o-text-overflow:ellipsis;text-overflow:ellipsis;white-space:nowrap;word-wrap:normal;overflow:hidden}._2jBC4N_eKhB_IMAWm0UTuO ._345LgwPnsPDsRv68L_cgry{-webkit-box-sizing:border-box;box-sizing:border-box;opacity:0;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}._2jBC4N_eKhB_IMAWm0UTuO ._345LgwPnsPDsRv68L_cgry:hover{background:#e3e9ef;border-radius:4px;cursor:pointer}.table-row:hover #pvColumn span{opacity:1}._2vs_PnSPXebgvBy3nZuegb{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}._2vs_PnSPXebgvBy3nZuegb ._3Y4c2IH7tgyRPkhZQxNA_0{margin-left:6px}._14XQ8_zmRwCjtgkz04Wzge{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}._14XQ8_zmRwCjtgkz04Wzge ._2_YhNvXVq70vjV7Tj6V3qY{-webkit-box-sizing:border-box;box-sizing:border-box;margin-left:5px;padding:2px;display:none;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}._14XQ8_zmRwCjtgkz04Wzge ._2_YhNvXVq70vjV7Tj6V3qY:hover{background:#e3e9ef;border-radius:4px;cursor:pointer}.table-row:hover{cursor:pointer}.table-row:hover #pvColumn span{display:-ms-flexbox;display:flex}.B4t1khP3gUFICAah4YTP5{display:inline-block;min-width:20px;height:20px;margin-left:8px;padding:0 6px;line-height:20px;border-radius:2px;-webkit-box-shadow:0 4px 8px 0 rgba(36,46,66,.2);box-shadow:0 4px 8px 0 rgba(36,46,66,.2);background-color:#181d28;text-align:center;font-weight:700;color:#fff;cursor:pointer}.B4t1khP3gUFICAah4YTP5:hover{-webkit-box-shadow:none;box-shadow:none}._39TiTBliLeivJdhXYoDplZ{display:-ms-flexbox;display:flex}._39TiTBliLeivJdhXYoDplZ>div{min-width:220px}._1f_DIoH3TOaX8dMUSn7UMb>span{display:inline-block;vertical-align:middle}._1f_DIoH3TOaX8dMUSn7UMb .kubed-icon-dark{color:#fff;fill:#ea4641}._29VjReB-cl3AzGmel2f8Vq{width:32px;height:32px;display:inline-block;line-height:32px;text-align:center;border-radius:50%;background:rgba(245,166,35,.08)}.HoethcQ_rhN4mGKbK1rRH{display:inline-block;min-width:20px;height:20px;margin-left:8px;padding:0 6px;line-height:20px;border-radius:2px;-webkit-box-shadow:0 4px 8px 0 rgba(36,46,66,.2);box-shadow:0 4px 8px 0 rgba(36,46,66,.2);background-color:#181d28;text-align:center;font-weight:700;color:#fff;cursor:pointer}.HoethcQ_rhN4mGKbK1rRH:hover{-webkit-box-shadow:none;box-shadow:none}._2-0e3OqOhUZTSiIln7YHO{display:-ms-flexbox;display:flex}._2-0e3OqOhUZTSiIln7YHO>div{min-width:220px}._2HmdPdvlQ9R5HSNv-z7Xr8>span{display:inline-block;vertical-align:middle}._2HmdPdvlQ9R5HSNv-z7Xr8 .kubed-icon-dark{color:#fff;fill:#ea4641}._3O6k823fCfWBHm-4VH76MN{padding:20px 24px;border-radius:4px;background-color:#fff;-webkit-box-shadow:0 4px 8px 0 rgba(36,46,66,.06);box-shadow:0 4px 8px 0 rgba(36,46,66,.06);-webkit-transition:all .3s ease-in-out;-o-transition:all .3s ease-in-out;transition:all .3s ease-in-out}._3O6k823fCfWBHm-4VH76MN:hover{-webkit-box-shadow:0 6px 16px 0 rgba(33,43,54,.2);box-shadow:0 6px 16px 0 rgba(33,43,54,.2)}._3O6k823fCfWBHm-4VH76MN+._3O6k823fCfWBHm-4VH76MN{margin-top:8px}._3O6k823fCfWBHm-4VH76MN .column{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}._3O6k823fCfWBHm-4VH76MN .h6{line-height:1.71;font-family:Roboto,PingFang SC,Lantinghei SC,Helvetica Neue,Helvetica,Arial,Microsoft YaHei,微软雅黑,STHeitiSC-Light,simsun,宋体,WenQuanYi Zen Hei,WenQuanYi Micro Hei,sans-serif}._3O6k823fCfWBHm-4VH76MN .h6 p{font-size:12px;font-weight:400}._3O6k823fCfWBHm-4VH76MN p{color:#79879c}._3O6k823fCfWBHm-4VH76MN strong{color:#242e42}._1-v5mSMLmxnQo7Tu8omd_Z{position:relative;margin-bottom:20px;border-radius:4px;overflow:hidden;background-color:#fff;-webkit-box-shadow:0 4px 8px 0 rgba(36,46,66,.06);box-shadow:0 4px 8px 0 rgba(36,46,66,.06)}._3FG6c5gZtLtRyuppsme5WY{position:relative;padding:24px 20px;color:#242e42;overflow:hidden}._3FG6c5gZtLtRyuppsme5WY .h4{line-height:1.4;text-shadow:0 4px 8px rgba(36,46,66,.1)}._3FG6c5gZtLtRyuppsme5WY>p{color:#79879c;margin-top:3px}._3FG6c5gZtLtRyuppsme5WY ._1x8pzzm00S4pgPncQM94Nh{position:absolute;top:0;left:0;width:188px}._3FG6c5gZtLtRyuppsme5WY .L7cV3c7hdKq6JtRIgkKlE{position:absolute;top:0;right:0;width:150px}.PwUtcNaXagxdRnj7x31t9{padding:8px 14px;background-color:#eff4f9}.PwUtcNaXagxdRnj7x31t9 .radio-group-button label.radio-button{position:relative;padding:4px 51px 4px 24px}.PwUtcNaXagxdRnj7x31t9 .tag{position:absolute;top:4px;right:5px;height:20px;min-width:32px;border-radius:10px;color:#fff!important;border:none!important;-webkit-box-shadow:0 2px 4px 0 rgba(85,188,138,.36);box-shadow:0 2px 4px 0 rgba(85,188,138,.36)}.gLLpHGp47EN2wrIe50Kvd{margin-bottom:20px}.gLLpHGp47EN2wrIe50Kvd ._1_xaHL38_uU-TZcr3Fpw2n{margin-bottom:12px}.gLLpHGp47EN2wrIe50Kvd ._1_xaHL38_uU-TZcr3Fpw2n>img{height:20px}.hnCTvkjeNtr89Olva-MrQ{display:-ms-flexbox;display:flex}.hnCTvkjeNtr89Olva-MrQ .QQwUZJfYSbbO5IL2O_lym{position:relative;margin-right:12px}.hnCTvkjeNtr89Olva-MrQ .QQwUZJfYSbbO5IL2O_lym ._1kPphabea24-UMspwsiDee{position:absolute;top:28px;right:0}.hnCTvkjeNtr89Olva-MrQ ._3Qr-w3lIIGV50Tlv7bCkkP{font-weight:700;color:#242e42}.hnCTvkjeNtr89Olva-MrQ ._1_C263QNG8-nzlZSpuGBqZ,.hnCTvkjeNtr89Olva-MrQ ._3Qr-w3lIIGV50Tlv7bCkkP{font-size:12px;line-height:1.67;font-family:Roboto,PingFang SC,Lantinghei SC,Helvetica Neue,Helvetica,Arial,Microsoft YaHei,微软雅黑,STHeitiSC-Light,simsun,宋体,WenQuanYi Zen Hei,WenQuanYi Micro Hei,sans-serif;font-style:normal;font-stretch:normal;letter-spacing:normal}.hnCTvkjeNtr89Olva-MrQ ._1_C263QNG8-nzlZSpuGBqZ{font-weight:400;color:#79879c}.FyXk2dppIa5i82ApkI1Ql svg{width:40px;height:40px;margin-right:12px}._3UOnCQ8P2oZzf_eNyRK1IA>div{margin-bottom:unset}._3UOnCQ8P2oZzf_eNyRK1IA>div>div{padding-left:16px}._228gCjzBUQV2Q4vU2rUrfl .table-row td:nth-child(2) svg{width:40px;height:40px}._3uVuUGuC2EHTxXkFjjvcmE,._21OATtg2uOyC5CA0xK8Cgb ._23UpDickjcJr3y2liGaM-4,._23UpDickjcJr3y2liGaM-4{-ms-flex:none;flex:none;font-weight:600;font-size:12px;line-height:20px;color:#fff;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;padding:0 4px;gap:4px;height:20px;background:#242e42;border-radius:2px}._21OATtg2uOyC5CA0xK8Cgb{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;gap:12px}._21OATtg2uOyC5CA0xK8Cgb ._361jFI80H7w8CSY6aff8x4{-o-text-overflow:ellipsis;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}._3i-uxhPvdOU7S87_Y_mDGo{margin-bottom:0}.dcF8cBxuJtvRguAP4tyZY{padding:25px 18px}.iWa6mM_kmem6_FeIMa4Pl{height:100%;margin-bottom:0}.iWa6mM_kmem6_FeIMa4Pl ._3btAUBGyO6S5qH0FSnXeTv ._3L8WX-6mq4GV4pbaROMlGJ{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;margin:0 -3px}.iWa6mM_kmem6_FeIMa4Pl ._3btAUBGyO6S5qH0FSnXeTv ._3L8WX-6mq4GV4pbaROMlGJ ._2UinRAcLgwuDAMGFx7YxbZ{-ms-flex:1 0 250px;flex:1 0 250px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;padding:0 10px;margin:3px;border-radius:4px;background-color:#f9fbfd;overflow:hidden}.iWa6mM_kmem6_FeIMa4Pl ._3btAUBGyO6S5qH0FSnXeTv ._3L8WX-6mq4GV4pbaROMlGJ ._2UinRAcLgwuDAMGFx7YxbZ._1HAzX3NlEQy_mvZTgYwzYN{opacity:.4;cursor:unset!important}.iWa6mM_kmem6_FeIMa4Pl ._3btAUBGyO6S5qH0FSnXeTv ._3L8WX-6mq4GV4pbaROMlGJ ._2UinRAcLgwuDAMGFx7YxbZ._1HAzX3NlEQy_mvZTgYwzYN p{font-size:16px;color:#79879c}.iWa6mM_kmem6_FeIMa4Pl ._3btAUBGyO6S5qH0FSnXeTv ._3L8WX-6mq4GV4pbaROMlGJ._33modxTT0s7VIqxv-YEXZn ._2UinRAcLgwuDAMGFx7YxbZ{-ms-flex:1 0 250px;flex:1 0 250px;-ms-flex-pack:justify;justify-content:space-between;cursor:pointer}.iWa6mM_kmem6_FeIMa4Pl ._3btAUBGyO6S5qH0FSnXeTv ._3L8WX-6mq4GV4pbaROMlGJ._33modxTT0s7VIqxv-YEXZn ._2UinRAcLgwuDAMGFx7YxbZ img{width:94px;height:20px}.iWa6mM_kmem6_FeIMa4Pl ._3btAUBGyO6S5qH0FSnXeTv ._3L8WX-6mq4GV4pbaROMlGJ._33modxTT0s7VIqxv-YEXZn ._2UinRAcLgwuDAMGFx7YxbZ p{height:44px;line-height:44px;font-size:26px;font-weight:600}.iWa6mM_kmem6_FeIMa4Pl ._3btAUBGyO6S5qH0FSnXeTv ._3L8WX-6mq4GV4pbaROMlGJ._33modxTT0s7VIqxv-YEXZn ._2UinRAcLgwuDAMGFx7YxbZ p span{font-size:12px;line-height:20px}.iWa6mM_kmem6_FeIMa4Pl ._3btAUBGyO6S5qH0FSnXeTv ._3L8WX-6mq4GV4pbaROMlGJ.kxr_ctYj8oXbD9VAkJOeH ._2UinRAcLgwuDAMGFx7YxbZ{height:44px}.iWa6mM_kmem6_FeIMa4Pl ._3btAUBGyO6S5qH0FSnXeTv ._3L8WX-6mq4GV4pbaROMlGJ.kxr_ctYj8oXbD9VAkJOeH ._1OmtFwq6wNRWsioVW_CD22{-ms-flex:0 0 1;flex:0 0 1;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;width:24px;height:24px;border-radius:50%;margin-right:12px}.iWa6mM_kmem6_FeIMa4Pl ._3btAUBGyO6S5qH0FSnXeTv ._3L8WX-6mq4GV4pbaROMlGJ.kxr_ctYj8oXbD9VAkJOeH ._1OmtFwq6wNRWsioVW_CD22._2QxcTXrERt_mX8QVqRxkEJ,.iWa6mM_kmem6_FeIMa4Pl ._3btAUBGyO6S5qH0FSnXeTv ._3L8WX-6mq4GV4pbaROMlGJ.kxr_ctYj8oXbD9VAkJOeH ._1OmtFwq6wNRWsioVW_CD22._3Au1Y8qOTFYdO_gsobjOyD{background-color:#55bc8a}.iWa6mM_kmem6_FeIMa4Pl ._3btAUBGyO6S5qH0FSnXeTv ._3L8WX-6mq4GV4pbaROMlGJ.kxr_ctYj8oXbD9VAkJOeH ._1OmtFwq6wNRWsioVW_CD22._2BFyv45uYWQsWKpdoGHxsK,.iWa6mM_kmem6_FeIMa4Pl ._3btAUBGyO6S5qH0FSnXeTv ._3L8WX-6mq4GV4pbaROMlGJ.kxr_ctYj8oXbD9VAkJOeH ._1OmtFwq6wNRWsioVW_CD22._2yMksWvLJFTdIz6XA4wSst{background-color:#f5a623}.iWa6mM_kmem6_FeIMa4Pl ._3btAUBGyO6S5qH0FSnXeTv ._3L8WX-6mq4GV4pbaROMlGJ.kxr_ctYj8oXbD9VAkJOeH ._1OmtFwq6wNRWsioVW_CD22.NnQSs-w924JQVyzrsKDor{background-color:#ca2621}.iWa6mM_kmem6_FeIMa4Pl ._3btAUBGyO6S5qH0FSnXeTv ._3L8WX-6mq4GV4pbaROMlGJ.kxr_ctYj8oXbD9VAkJOeH ._1OmtFwq6wNRWsioVW_CD22.JX1J9FsOwhFbiEW0Ndfkg{background-color:#79879c}.iWa6mM_kmem6_FeIMa4Pl ._3btAUBGyO6S5qH0FSnXeTv ._3L8WX-6mq4GV4pbaROMlGJ.kxr_ctYj8oXbD9VAkJOeH ._2UinRAcLgwuDAMGFx7YxbZ p{font-weight:600;-o-text-overflow:ellipsis;text-overflow:ellipsis;white-space:nowrap;word-wrap:normal;overflow:hidden}._3JNPBRmrvckZ-0ddD430sz{margin:0 -6px;zoom:1}._3JNPBRmrvckZ-0ddD430sz:after{content:".";display:block;clear:both;overflow:hidden;height:0;visibility:hidden}._3JNPBRmrvckZ-0ddD430sz ._211PBa-chb6-SswmEnq_qi{float:left;width:50%;padding:6px}.TcL0IZBZvEALWaAJxOyjq{margin:0 -6px;zoom:1}.TcL0IZBZvEALWaAJxOyjq:after{content:".";display:block;clear:both;overflow:hidden;height:0;visibility:hidden}.TcL0IZBZvEALWaAJxOyjq ._2x_rs3rGZ_x3CzWhr678DG{float:left;width:50%;padding:6px}.TcL0IZBZvEALWaAJxOyjq ._2x_rs3rGZ_x3CzWhr678DG:first-child{width:100%}._166raJC5y_hKM3BLES1zxS{height:190px;padding:0 6px;background-color:#f9fbfd}._19HqLz1uFh_5QO0V5xfiZI{margin:0 -6px;zoom:1}._19HqLz1uFh_5QO0V5xfiZI:after{content:".";display:block;clear:both;overflow:hidden;height:0;visibility:hidden}._19HqLz1uFh_5QO0V5xfiZI ._3YA930Ry5q0idy7W6W7Olz{float:left;width:100%;padding:6px}.sWcV6DTJ_nB-mAR8ayQtO{margin:0 -6px;zoom:1}.sWcV6DTJ_nB-mAR8ayQtO:after{content:".";display:block;clear:both;overflow:hidden;height:0;visibility:hidden}.sWcV6DTJ_nB-mAR8ayQtO ._20J7gX0eLgCDG08z96LldT{float:left;width:50%;padding:6px}.sWcV6DTJ_nB-mAR8ayQtO ._20J7gX0eLgCDG08z96LldT:last-child{width:100%}._2P7PdvezYjRtSEmE29J8Ar{border-radius:4px;-webkit-box-shadow:0 4px 8px 0 rgba(36,46,66,.06);box-shadow:0 4px 8px 0 rgba(36,46,66,.06);background-color:#fff;overflow:hidden}._1DURUYk4FqXRlVLiEK23O1{padding-left:20px;padding-right:20px}.aRdfy8lcLlfL-Y83e6jGD{background-color:#f9fbfd;padding-top:12px;padding-bottom:12px;border-bottom:1px solid #d8dee5}._2eA13_VjA75hvBiAhRlUYV{background-color:#f9fbfd;line-height:56px;-webkit-box-shadow:0 -1px 0 0 #d8dee5;box-shadow:0 -1px 0 0 #d8dee5}.MPxO6uDiB7DbkF0b5iMTu{font-size:14px;font-weight:600;line-height:66px;color:#242e42}._3Z9Ad95QU2iGBj_xxDW3fd:after{content:"";clear:both;display:block}._3QmcC0Hk1xUcNxHR_0EbXW{float:right}.uWPN7S-1sicqgHS-Nsc7-{float:left;display:-ms-flexbox;display:flex}.yvJ2AO-e2ripmTSNwZtqP{display:inline-block;margin-top:7px;margin-left:30px;text-align:center;vertical-align:top;cursor:pointer}._3Z9Ad95QU2iGBj_xxDW3fd .select{width:250px}._3Z9Ad95QU2iGBj_xxDW3fd .select+.select{margin-left:12px}._12Tl8qEZhLLCQSTWy13y8Q._1pyQQOSWX0OLiSRx3H4ynW._2NEj9rhYr8D6hKOtN9QJO0 td{color:#79879c}._12Tl8qEZhLLCQSTWy13y8Q._1pyQQOSWX0OLiSRx3H4ynW._2NEj9rhYr8D6hKOtN9QJO0 table{border-collapse:separate;border-spacing:0 5px}._12Tl8qEZhLLCQSTWy13y8Q._1pyQQOSWX0OLiSRx3H4ynW._2NEj9rhYr8D6hKOtN9QJO0 th{border-bottom:none}._12Tl8qEZhLLCQSTWy13y8Q._1pyQQOSWX0OLiSRx3H4ynW._2NEj9rhYr8D6hKOtN9QJO0 ._1bS8qY9r_xrxLEJd4YDutw h3{font-size:14px;color:#242e42;font-weight:700}._12Tl8qEZhLLCQSTWy13y8Q._1pyQQOSWX0OLiSRx3H4ynW._2NEj9rhYr8D6hKOtN9QJO0 ._1bS8qY9r_xrxLEJd4YDutw td,._12Tl8qEZhLLCQSTWy13y8Q._1pyQQOSWX0OLiSRx3H4ynW._2NEj9rhYr8D6hKOtN9QJO0 ._1bS8qY9r_xrxLEJd4YDutw th{padding:10px 20px;border:none}._12Tl8qEZhLLCQSTWy13y8Q._1pyQQOSWX0OLiSRx3H4ynW._2NEj9rhYr8D6hKOtN9QJO0 ._1bS8qY9r_xrxLEJd4YDutw td{background:#f9fbfd}._12Tl8qEZhLLCQSTWy13y8Q._1pyQQOSWX0OLiSRx3H4ynW._2NEj9rhYr8D6hKOtN9QJO0 ._1bS8qY9r_xrxLEJd4YDutw td:first-child{border-radius:4px 0 0 4px}._12Tl8qEZhLLCQSTWy13y8Q._1pyQQOSWX0OLiSRx3H4ynW._2NEj9rhYr8D6hKOtN9QJO0 ._1bS8qY9r_xrxLEJd4YDutw td:last-child{border-radius:0 4px 4px 0}._12Tl8qEZhLLCQSTWy13y8Q._1pyQQOSWX0OLiSRx3H4ynW._2NEj9rhYr8D6hKOtN9QJO0 ._1bS8qY9r_xrxLEJd4YDutw td._3cPfq94oQC6yhhBgO7gFBj{background:#dbefe2}.wwlsDBiAjm0q1bmRNgj6o{padding:5px 0}.wwlsDBiAjm0q1bmRNgj6o._1ad28rokzs4wIzr9i7erxd>div{top:20px}._1CmVFNd0G-zs9E1iHfdivR{border-radius:4px;-webkit-box-shadow:0 4px 8px 0 rgba(36,46,66,.06);box-shadow:0 4px 8px 0 rgba(36,46,66,.06);background-color:#fff;overflow:hidden}._3Xxq0iOcg5rPC1z0QX4VcZ{padding-left:20px;padding-right:20px}._2PEZlO8QdUlfOW_Gg2bFho{background-color:#f9fbfd;padding-top:12px;padding-bottom:12px;border-bottom:1px solid #d8dee5}._3tB6nH6MnNdOJ_hACtTFVh{background-color:#f9fbfd;line-height:56px;-webkit-box-shadow:0 -1px 0 0 #d8dee5;box-shadow:0 -1px 0 0 #d8dee5}._3WzAR13ip4gsV70FVDKTdJ{font-size:14px;font-weight:600;line-height:66px;color:#242e42}._3QzlZPN09RgS4Y67QlJd09:after{content:"";clear:both;display:block}._2HATCZlaUbpt610R3YC6_p{float:right}._3d9XJJFMH1N7n4BKj6Mkwu{float:left;display:-ms-flexbox;display:flex}.Zm30W-XpLeAnhkrxGKaXD{display:inline-block;margin-top:7px;margin-left:30px;text-align:center;vertical-align:top;cursor:pointer}._3QzlZPN09RgS4Y67QlJd09 .select{width:250px}._3QzlZPN09RgS4Y67QlJd09 .select+.select{margin-left:12px}._1zke06m-W2VOKXFYSeau6f._2fmtCI2sslMwd4fyo_vmK3._1QODthKAirf_FppmVzGK2r td{color:#79879c}._1zke06m-W2VOKXFYSeau6f._2fmtCI2sslMwd4fyo_vmK3._1QODthKAirf_FppmVzGK2r table{border-collapse:separate;border-spacing:0 5px}._1zke06m-W2VOKXFYSeau6f._2fmtCI2sslMwd4fyo_vmK3._1QODthKAirf_FppmVzGK2r th{border-bottom:none}._1zke06m-W2VOKXFYSeau6f._2fmtCI2sslMwd4fyo_vmK3._1QODthKAirf_FppmVzGK2r ._36FQnaParFo539EUHrLM3j h3{font-size:14px;color:#242e42;font-weight:700}._1zke06m-W2VOKXFYSeau6f._2fmtCI2sslMwd4fyo_vmK3._1QODthKAirf_FppmVzGK2r ._36FQnaParFo539EUHrLM3j td,._1zke06m-W2VOKXFYSeau6f._2fmtCI2sslMwd4fyo_vmK3._1QODthKAirf_FppmVzGK2r ._36FQnaParFo539EUHrLM3j th{padding:10 20px;border:none}._1zke06m-W2VOKXFYSeau6f._2fmtCI2sslMwd4fyo_vmK3._1QODthKAirf_FppmVzGK2r ._36FQnaParFo539EUHrLM3j td{background:#f9fbfd}._1zke06m-W2VOKXFYSeau6f._2fmtCI2sslMwd4fyo_vmK3._1QODthKAirf_FppmVzGK2r ._36FQnaParFo539EUHrLM3j td:first-child{border-radius:4px 0 0 4px}._1zke06m-W2VOKXFYSeau6f._2fmtCI2sslMwd4fyo_vmK3._1QODthKAirf_FppmVzGK2r ._36FQnaParFo539EUHrLM3j td:last-child{border-radius:0 4px 4px 0}._1zke06m-W2VOKXFYSeau6f._2fmtCI2sslMwd4fyo_vmK3._1QODthKAirf_FppmVzGK2r ._36FQnaParFo539EUHrLM3j ._1tK0CngMzBLJehA_bn8nmS{background:#dbefe2}.wa7tMIrleTBU3e6ZCinRa{border-radius:4px;-webkit-box-shadow:0 4px 8px 0 rgba(36,46,66,.06);box-shadow:0 4px 8px 0 rgba(36,46,66,.06);background-color:#fff;overflow:hidden;min-height:300px}.TOMVoOzgz8bnMGaXhMj6v{padding:20px}._1XJp5HqlcLBB0vE-AP9V6C{cursor:pointer;padding:2px;border-radius:18px;display:inline-block;background-color:#eff4f9;border:1px solid #d8dee5}._1XJp5HqlcLBB0vE-AP9V6C>span{display:inline-block;line-height:32px;color:#79879c;padding:0 30px}span.Bgy3xm4otfT4hHjzR2om-{border-radius:16px;background-color:#36435c;color:#fff}._2SXq6W7Y5arA1V8ydx3x9k{position:relative;display:-ms-flexbox;display:flex}._2SXq6W7Y5arA1V8ydx3x9k>div{min-width:260px;margin-right:20px}._3zCn6ZnEb1mjwR_f5JXgA{display:-ms-flexbox;display:flex;padding:20px;margin-top:12px;margin-left:-12px;margin-right:-12px;background-color:#f9fbfd}._3zCn6ZnEb1mjwR_f5JXgA>div{width:250px;margin-right:20px}.lIqFeO0ppH8_MxJdLUlTw{margin-bottom:12px}._3-xB7xj9NBxURt-nM9E8YT{position:absolute;top:56px;right:20px}._12M4oLKObAdKFXEoaa5wxj{position:absolute;top:4px;right:6px;height:32px;width:92px;min-width:0!important}._1HEVP9zq3sERwI9RlCnfHB{position:absolute;top:4px;right:6px;height:32px;min-width:92px}._2ep7i_I3q4CFYM8VacKRGZ{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;gap:8px}._2w6hdp2HJmk_fypnMB8LtJ{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}._2w6hdp2HJmk_fypnMB8LtJ button{height:32px}._15y23XCn7gLEvRQ1wRkT2p{margin:12px -12px -12px}._2_3IPi65_G0tYI4auyS45R{min-height:unset}._vi43jp1IhuQ1z5Ok0h7g{font-size:18px;margin-bottom:10px}._vi43jp1IhuQ1z5Ok0h7g svg{margin-right:13px;vertical-align:sub;cursor:pointer}._vi43jp1IhuQ1z5Ok0h7g strong{font-size:.8em}.xkLnfMG-J4SV3jMNs09Ra{border-radius:4px;border:1px solid #e3e9ef;padding:12px;margin:8px;-webkit-box-shadow:0 0 0 8px #f9fbfd;box-shadow:0 0 0 8px #f9fbfd}._4KpY8XoatSiX6KSIelpPx{border-radius:4px;background-color:#f9fbfd;padding:12px}._227xYBidUyS7Co_VCst5pL._3l_3z51HkJawL3fJqcBj-x{opacity:.6;cursor:normal}._227xYBidUyS7Co_VCst5pL{margin:8px;border:1px solid #e3e9ef;border-radius:4px;background-color:#fff;display:grid;grid-template-columns:40px 1fr;grid-gap:20px;padding:14px 20px;cursor:pointer}._227xYBidUyS7Co_VCst5pL:hover{-webkit-box-shadow:0 8px 16px 0 rgba(36,46,66,.08);box-shadow:0 8px 16px 0 rgba(36,46,66,.08)}._227xYBidUyS7Co_VCst5pL h3{line-height:1.5;color:#242e42;font-weight:700;font-size:16px}._227xYBidUyS7Co_VCst5pL p{color:#79879c}._15-kJBHYuBzcVNchgfqXjx{line-height:44px;padding:0 12px;margin-bottom:12px;color:#3391bf;border-radius:4px;background-color:#c6def0}._15-kJBHYuBzcVNchgfqXjx:before{content:"?";border-radius:50%;color:#fff;background:#3391bf;display:inline-block;margin-right:.5em;width:12px;height:12px;line-height:1em;font-size:12px;font-weight:700;text-align:center}.E_TGs1mcrGTpnS6fCHLve{text-align:center;padding:20px}.E_TGs1mcrGTpnS6fCHLve p{font-size:12px;line-height:1.67;color:#79879c;margin-top:20px;margin-bottom:12px}.GDQFBrmFWQgDOgXCXYVBn{position:relative}._3U_QE41nPUA_tmHQ-GnXBZ{position:absolute;bottom:6px;right:12px}._1Spp0J1Fpg5wUQfw135nUu{border-radius:4px;-webkit-box-shadow:0 4px 8px 0 rgba(36,46,66,.06);box-shadow:0 4px 8px 0 rgba(36,46,66,.06);background-color:#fff}._3laeV8sqiN4xp4otZGaW2u{display:-ms-flexbox;display:flex;padding:20px}._3laeV8sqiN4xp4otZGaW2u:hover ._1tvY2b0c_9eqZOhe7p0fHU{color:#55bc8a}._3laeV8sqiN4xp4otZGaW2u>div{min-width:200px;margin-left:20px}._3laeV8sqiN4xp4otZGaW2u>div:first-of-type{-ms-flex:1 1;flex:1 1}.m4_SNQXnKSZC2zYTgw2nP{cursor:pointer;-webkit-transition:all .3s ease;-o-transition:all .3s ease;transition:all .3s ease}.m4_SNQXnKSZC2zYTgw2nP:hover{color:#55bc8a}._8MR_jkuxX3BO24ISjg65o{margin-bottom:20px;background-color:#f9fbfd}._8MR_jkuxX3BO24ISjg65o>div:last-child{padding:6px 12px}._2_LExZycdD34qPtVII-cl-{max-width:1400px;padding:40px 20px 0;margin:0 auto}._2_LExZycdD34qPtVII-cl- p{color:#79879c}._2-621emWvGyt67MEm5v4NS{max-width:calc(100vw - 500px);display:-ms-inline-flexbox;display:inline-flex;height:20px;background:#eff4f9;border-radius:2px;padding:2px;-ms-flex-align:center;align-items:center;font-weight:600;font-size:12px;line-height:20px;gap:6px}._2-621emWvGyt67MEm5v4NS ._1R5k1j8Y_KUzpUHIoj_sqP{background:#242e42;height:16px;padding:2px 4px;color:#fff;display:-ms-flexbox;display:flex;border-radius:2px;-ms-flex-align:center;align-items:center}._2-621emWvGyt67MEm5v4NS ._1R5k1j8Y_KUzpUHIoj_sqP,._2-621emWvGyt67MEm5v4NS .Qtmr8FVzhABs8l5KJ_nvB{-o-text-overflow:ellipsis;text-overflow:ellipsis;white-space:nowrap;word-wrap:normal;overflow:hidden}._2-621emWvGyt67MEm5v4NS .Qtmr8FVzhABs8l5KJ_nvB{padding-right:2px}._2pXZ8G1tXWMPRfWtv8hzmv{position:fixed;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}._1fxvFDRBXomWXMXThPuGiO{display:-ms-flexbox;display:flex}._1fxvFDRBXomWXMXThPuGiO ._2i20s7mRN2aF2FYpKovLCt{min-width:20%;display:-ms-flexbox;display:flex}._1fxvFDRBXomWXMXThPuGiO ._2i20s7mRN2aF2FYpKovLCt ._2od794bHFxQpdtTn7X-fkA{margin-left:12px}._1fxvFDRBXomWXMXThPuGiO ._2i20s7mRN2aF2FYpKovLCt ._2od794bHFxQpdtTn7X-fkA ._27BSz92lxWakrFD9ymm2A3{display:-ms-flexbox;display:flex;font-size:12px;line-height:20px;color:#242e42;-ms-flex-align:center;align-items:center}._1fxvFDRBXomWXMXThPuGiO ._2i20s7mRN2aF2FYpKovLCt ._2od794bHFxQpdtTn7X-fkA ._27BSz92lxWakrFD9ymm2A3 ._3UNOqG8qLUxZlBapo3qr5Z{margin-left:6px}._1fxvFDRBXomWXMXThPuGiO ._2i20s7mRN2aF2FYpKovLCt ._2od794bHFxQpdtTn7X-fkA ._2yKnVC3aGLnopPAOx8d-hn{display:block;font-size:12px;line-height:20px;color:#79879c}._1fxvFDRBXomWXMXThPuGiO ._2i20s7mRN2aF2FYpKovLCt ._2od794bHFxQpdtTn7X-fkA ._2yKnVC3aGLnopPAOx8d-hn ._1zTSWtxQ1s3FuIVK6c_AJd{display:-ms-flexbox;display:flex}._1fxvFDRBXomWXMXThPuGiO ._2i20s7mRN2aF2FYpKovLCt ._2od794bHFxQpdtTn7X-fkA ._2yKnVC3aGLnopPAOx8d-hn ._3UNOqG8qLUxZlBapo3qr5Z{margin-left:6px}._1fxvFDRBXomWXMXThPuGiO ._1EQfuxx1JyPD3obadFjEbe{width:20%;margin-left:107px}._1fxvFDRBXomWXMXThPuGiO ._1EQfuxx1JyPD3obadFjEbe ._27BSz92lxWakrFD9ymm2A3{display:-ms-flexbox;display:flex;font-size:12px;line-height:20px;color:#242e42;-ms-flex-align:center;align-items:center}._1fxvFDRBXomWXMXThPuGiO ._1EQfuxx1JyPD3obadFjEbe ._27BSz92lxWakrFD9ymm2A3 ._3UNOqG8qLUxZlBapo3qr5Z{margin-left:6px}._1fxvFDRBXomWXMXThPuGiO ._1EQfuxx1JyPD3obadFjEbe ._2yKnVC3aGLnopPAOx8d-hn{display:block;font-size:12px;line-height:20px;color:#79879c}._1fxvFDRBXomWXMXThPuGiO ._1EQfuxx1JyPD3obadFjEbe ._2yKnVC3aGLnopPAOx8d-hn ._1zTSWtxQ1s3FuIVK6c_AJd{display:-ms-flexbox;display:flex}._1fxvFDRBXomWXMXThPuGiO ._1EQfuxx1JyPD3obadFjEbe ._2yKnVC3aGLnopPAOx8d-hn ._3UNOqG8qLUxZlBapo3qr5Z{margin-left:6px}.WFEYMWanZFc5X5ji7EDzw{margin-top:12px;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}.WFEYMWanZFc5X5ji7EDzw ._11Nc11agNjqy5SvwpHgDnb{width:32.5%;height:64px;padding:17px;background:#f9fbfd;border-radius:4px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.WFEYMWanZFc5X5ji7EDzw ._11Nc11agNjqy5SvwpHgDnb ._3iZaDwgdoUnaHTHBRCk0Uo{margin-left:12px}.WFEYMWanZFc5X5ji7EDzw ._11Nc11agNjqy5SvwpHgDnb ._3iZaDwgdoUnaHTHBRCk0Uo ._27BSz92lxWakrFD9ymm2A3{display:-ms-flexbox;display:flex;font-size:12px;line-height:20px;color:#242e42;-ms-flex-align:center;align-items:center}.WFEYMWanZFc5X5ji7EDzw ._11Nc11agNjqy5SvwpHgDnb ._3iZaDwgdoUnaHTHBRCk0Uo ._27BSz92lxWakrFD9ymm2A3 ._3UNOqG8qLUxZlBapo3qr5Z{margin-left:6px}.WFEYMWanZFc5X5ji7EDzw ._11Nc11agNjqy5SvwpHgDnb ._3iZaDwgdoUnaHTHBRCk0Uo ._2yKnVC3aGLnopPAOx8d-hn{display:block;font-size:12px;line-height:20px;color:#79879c}.WFEYMWanZFc5X5ji7EDzw ._11Nc11agNjqy5SvwpHgDnb ._3iZaDwgdoUnaHTHBRCk0Uo ._2yKnVC3aGLnopPAOx8d-hn ._1zTSWtxQ1s3FuIVK6c_AJd{display:-ms-flexbox;display:flex}.WFEYMWanZFc5X5ji7EDzw ._11Nc11agNjqy5SvwpHgDnb ._3iZaDwgdoUnaHTHBRCk0Uo ._2yKnVC3aGLnopPAOx8d-hn ._3UNOqG8qLUxZlBapo3qr5Z{margin-left:6px}._160nVM5I48EClrJRzVwIZM{padding:0}._3gY1SwAB3Qyzo33NcoETa2{display:-ms-inline-flexbox;display:inline-flex;padding:12px;border-radius:4px;background-color:#f9fbfd}._3gY1SwAB3Qyzo33NcoETa2 ._3XS03qiViW-ikPky4F7m_x{position:relative;margin-right:12px}._2heWfhm7p3vRjks91Lxqps,._2VlaH5DM4vl23eEoRXmg0V{position:absolute;top:28px;right:0;border-radius:50%}._2heWfhm7p3vRjks91Lxqps{background-color:#55bc8a}._2VlaH5DM4vl23eEoRXmg0V{background-color:#f5a623}._33OfSfo5noeVvDTt0pECNi{padding:12px 24px;border-radius:60px;background-color:#eff4f9;border:1px solid #ccd3db}._33OfSfo5noeVvDTt0pECNi+._33OfSfo5noeVvDTt0pECNi{margin-top:8px}._33OfSfo5noeVvDTt0pECNi p{font-family:Roboto,PingFang SC,Lantinghei SC,Helvetica Neue,Helvetica,Arial,Microsoft YaHei,微软雅黑,STHeitiSC-Light,simsun,宋体,WenQuanYi Zen Hei,WenQuanYi Micro Hei,sans-serif;font-size:14px;line-height:1.43}._33OfSfo5noeVvDTt0pECNi span{font-size:12px;line-height:1.67;color:#79879c;margin-right:8px}._2JLcedz0mAjNBgUVbRpAlV{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;margin:-6px}._2JLcedz0mAjNBgUVbRpAlV>div{width:50%;padding:6px}@media (min-width:1366px){._2JLcedz0mAjNBgUVbRpAlV>div{-ms-flex:1 1;flex:1 1;width:auto}}._2izO-GxzIDv54VNolZBX0N{padding:0}._1Ip9txFboGAHGxjdTg1JDy{display:-ms-flexbox;display:flex}._1Ip9txFboGAHGxjdTg1JDy>div{min-width:200px;margin-right:20px}.v93LP2ROQDO2QGQL3qZvm{display:grid;grid-template-columns:repeat(3,1fr);grid-column-gap:12px;grid-row-gap:12px}.Kh3LUefQi7XfqAml1jJcj{display:-ms-inline-flexbox;display:inline-flex;padding:12px;border-radius:4px;background-color:#f9fbfd}.Kh3LUefQi7XfqAml1jJcj ._3iy83CfEy08rg9_-QKFkq7{position:relative;margin-right:12px}._3eJAVhQ8al4C0aso0N6wDI,._17SNYe2bxLoE0pvH1a2aDg{position:absolute;top:28px;right:0;border-radius:50%}._17SNYe2bxLoE0pvH1a2aDg{background-color:#55bc8a}._3eJAVhQ8al4C0aso0N6wDI{background-color:#f5a623}._1Ens6X0pfcZc-RZ6-o7rji{padding:12px 24px;border-radius:60px;background-color:#eff4f9;border:1px solid #ccd3db}._1Ens6X0pfcZc-RZ6-o7rji+._1Ens6X0pfcZc-RZ6-o7rji{margin-top:8px}._1Ens6X0pfcZc-RZ6-o7rji p{font-family:Roboto,PingFang SC,Lantinghei SC,Helvetica Neue,Helvetica,Arial,Microsoft YaHei,微软雅黑,STHeitiSC-Light,simsun,宋体,WenQuanYi Zen Hei,WenQuanYi Micro Hei,sans-serif;font-size:14px;line-height:1.43}._1Ens6X0pfcZc-RZ6-o7rji span{font-size:12px;line-height:1.67;color:#79879c;margin-right:8px}.ZmLO9iLSnLt1J6Gz4uKwS{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;margin:-6px}.ZmLO9iLSnLt1J6Gz4uKwS>div{width:50%;padding:6px}@media (min-width:1366px){.ZmLO9iLSnLt1J6Gz4uKwS>div{-ms-flex:1 1;flex:1 1;width:auto}}.lyqB5tNGCKuC1h5-5HtLB{padding:0}._1JOW87aTOtJJdxN1fWMTGb{display:-ms-flexbox;display:flex}._1JOW87aTOtJJdxN1fWMTGb>div{min-width:200px;margin-right:20px}._1DY4TX4djJSe-gKH5iAwVJ{display:grid;grid-template-columns:repeat(3,1fr);grid-column-gap:12px;grid-row-gap:12px}._1jdNGCQmXYoAXu4jdd0HNQ .detail-page-nav,._1jdNGCQmXYoAXu4jdd0HNQ .detail-page-sider{display:none!important}._1jdNGCQmXYoAXu4jdd0HNQ .detail-page-content{padding:0!important}._2cmfLkh2-73OlEHQZ0JznP{display:-ms-flexbox;display:flex;margin-top:12px}.Eh3sYZ8Yv_OZPh6LmU4ij{position:relative;width:326px;padding:8px;border-radius:2px;background-color:#242e42;margin-right:12px}._1pASR0wnOOZ188jGyMPDDu{padding:32px 0;text-align:center}._1pASR0wnOOZ188jGyMPDDu ._36P6BNJUIu_o_9LugrstnV{display:inline-block;padding:10px;border-radius:100px 0 100px 100px;background-color:#eff4f9}._1pASR0wnOOZ188jGyMPDDu ._2hrgMPH6R-G9psZHUOvDko{margin-top:12px}._1pASR0wnOOZ188jGyMPDDu ._2hrgMPH6R-G9psZHUOvDko>div{font-size:14px;font-weight:600;line-height:20px}._1pASR0wnOOZ188jGyMPDDu ._2hrgMPH6R-G9psZHUOvDko>p{margin:0 auto;width:520px;color:#79879c}._2kjHtHOfFmm6itggAkoQAL{-webkit-box-shadow:none;box-shadow:none;margin:0 -20px -20px}._5cglYSZWbQvrCmvoMyqxP{margin-bottom:12px}._21kLc98uyqQuBRc4Q-dyhM{display:-ms-flexbox;display:flex}._21kLc98uyqQuBRc4Q-dyhM ._1vTN6gl6PThH5CifVSvUo6{margin-right:12px;width:40px;height:40px}._21kLc98uyqQuBRc4Q-dyhM span{display:block}._1QIhBOEC_Y-VZV4BPZvjdr{font-weight:600;font-size:12px;line-height:20px;color:#242e42}._3NV29u5T-Tku0Cp7CeL7d{font-weight:400;font-size:12px;line-height:20px;color:#79879c}.z1wHL-lLdkBj_ZwzB6voh{display:-ms-flexbox;display:flex}._2TzaGW5k734_6hWUzqgCSv{background:#f9fbfd;border-radius:4px;padding:12px;-ms-flex:1 1;flex:1 1;margin-right:12px}._2TzaGW5k734_6hWUzqgCSv:last-of-type{margin-right:0}._2jttfh7kRfWWvaOvcR-zmM{font-family:PingFang SC,Lantinghei SC,Helvetica Neue,Helvetica,Arial,Microsoft YaHei,微软雅黑,STHeitiSC-Light,simsun,宋体,WenQuanYi Zen Hei,WenQuanYi Micro Hei,sans-serif;font-size:12px;font-weight:600;font-style:normal;font-stretch:normal;line-height:1.67;letter-spacing:normal;color:#36435c;margin-bottom:12px}._1fcFwLiMNf2V7HyrLmivLq{background:#f9fbfd;padding:12px}._1fcFwLiMNf2V7HyrLmivLq li.V_5vTiOowYSB3wAuDhlip{background:#fff;line-height:36px;padding-left:11px;padding-right:11px;margin:4px;border-radius:4px}._3OH5gauRQWhyK_uriQN9S9{vertical-align:sub;margin-right:.5em}._21Nur-ML8E1lmqmL3lRt3i{padding:12px;border-radius:4px;background-color:#f9fbfd}._1bL8xFnk72nG93G57IoCla{display:-ms-flexbox;display:flex;padding:12px;border:1px solid #ccd3db;border-radius:4px;background-color:#fff}._1bL8xFnk72nG93G57IoCla+._1bL8xFnk72nG93G57IoCla{margin-top:8px}._1bL8xFnk72nG93G57IoCla>div{margin-right:20px;min-width:20%}._1bL8xFnk72nG93G57IoCla>div:first-of-type{-ms-flex:1 1;flex:1 1}._18lwhh8wev9Vr_5zWvrNMe{font-size:14px;line-height:1.43;font-family:Roboto,PingFang SC,Lantinghei SC,Helvetica Neue,Helvetica,Arial,Microsoft YaHei,微软雅黑,STHeitiSC-Light,simsun,宋体,WenQuanYi Zen Hei,WenQuanYi Micro Hei,sans-serif;font-style:normal;font-stretch:normal;letter-spacing:normal;font-weight:700;color:#79879c}._2dcq7NHXgEwsUW4m8Fk48L{position:relative;padding:11px 12px;margin-bottom:12px;border-radius:4px;border:1px dashed #ccd3db;background-color:#fff;cursor:pointer;-webkit-transition:all .3s ease-in-out;-o-transition:all .3s ease-in-out;transition:all .3s ease-in-out}._2dcq7NHXgEwsUW4m8Fk48L._1HejuFRyIzWvFM3f0-NMFy{display:-ms-flexbox;display:flex}._2dcq7NHXgEwsUW4m8Fk48L:hover{-webkit-box-shadow:0 4px 8px 0 rgba(36,46,66,.2);box-shadow:0 4px 8px 0 rgba(36,46,66,.2);border-color:#79879c}._3BPuVvwzk_ge6XiLGhcP6v{display:-ms-flexbox;display:flex;position:relative;padding:11px 12px;margin-bottom:8px;border-radius:4px;background-color:#fff;border:1px solid #ccd3db;-webkit-transition:all .3s ease-in-out;-o-transition:all .3s ease-in-out;transition:all .3s ease-in-out}._3BPuVvwzk_ge6XiLGhcP6v .HrIC05qaTJCYxqZGeOZP8{margin-left:12px}._2yziRuevY1NN2X0AGAnWlQ{background:#fff;padding:12px;border-radius:4px;-webkit-box-shadow:0 4px 8px 0 rgba(36,46,66,.06);box-shadow:0 4px 8px 0 rgba(36,46,66,.06)}.MbTA39N9Zn2UUDj-GAUOV{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:center;align-items:center}._3Kgi3PGvirCbjpoBiX0lZa{margin-bottom:8px;font-family:PingFang SC,Lantinghei SC,Helvetica Neue,Helvetica,Arial,Microsoft YaHei,微软雅黑,STHeitiSC-Light,simsun,宋体,WenQuanYi Zen Hei,WenQuanYi Micro Hei,sans-serif;font-size:12px;font-weight:600;font-style:normal;font-stretch:normal;line-height:1.67;letter-spacing:normal;color:#36435c} \ No newline at end of file diff --git a/packages/bootstrap/assets/v3dist/6.f11fb9fc542cde1c5aa0.css b/packages/bootstrap/assets/v3dist/6.b05610b5e4adbcc67cda.css similarity index 100% rename from packages/bootstrap/assets/v3dist/6.f11fb9fc542cde1c5aa0.css rename to packages/bootstrap/assets/v3dist/6.b05610b5e4adbcc67cda.css diff --git a/packages/bootstrap/assets/v3dist/6.8a227655269ca86f6419.js b/packages/bootstrap/assets/v3dist/6.cf147b3fd7cc9c45a3c4.js similarity index 97% rename from packages/bootstrap/assets/v3dist/6.8a227655269ca86f6419.js rename to packages/bootstrap/assets/v3dist/6.cf147b3fd7cc9c45a3c4.js index 4f437a75598..120398fe0dd 100644 --- a/packages/bootstrap/assets/v3dist/6.8a227655269ca86f6419.js +++ b/packages/bootstrap/assets/v3dist/6.cf147b3fd7cc9c45a3c4.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[6],{1143:function(e,t,r){"use strict";r(15);var n=r(20);r(4),r(23),r(24),r(17),r(62),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r(45),r(42),r(4),r(23),r(57),r(24),r(17),r(62);var a,o,i=n(r(36)),l=n(r(37)),s=n(r(55)),u=n(r(56)),c=n(r(51)),d=r(433),f=r(239),p=r(899);function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,c.default)(e);if(t){var a=(0,c.default)(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return(0,u.default)(this,r)}}var m=(a=(0,f.inject)("rootStore"),(0,d.withRouter)(o=a(o=function(e){(0,s.default)(r,e);var t=h(r);function r(){return(0,i.default)(this,r),t.apply(this,arguments)}return(0,l.default)(r,[{key:"enabledActions",get:function(){var e=this.props.match.params,t=e.cluster,r=e.devops;return globals.app.getActions({module:this.props.module,cluster:t,devops:r})}}]),r}(p.Component))||o)||o);t.default=m},1144:function(e,t,r){"use strict";r.r(t),r.d(t,"ReactComponent",(function(){return s}));var n=r(315),a=r.n(n),o=r(0),i=r.n(o),l=i.a.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M19 8.143a2.577 2.577 0 00-2.6-2.572 2.586 2.586 0 00-2.509 1.898 2.55 2.55 0 001.209 2.885v.386c-.026.669-.299 1.26-.819 1.774-.52.515-1.118.785-1.794.81-1.079.026-1.924.206-2.6.579v-6.12a2.55 2.55 0 001.209-2.886A2.586 2.586 0 008.587 3 2.566 2.566 0 006 5.571c.006.914.5 1.755 1.3 2.212v8.434c-.767.45-1.3 1.273-1.3 2.212A2.577 2.577 0 008.6 21c1.443 0 2.6-1.144 2.6-2.571 0-.682-.26-1.286-.689-1.749.117-.077.624-.527.767-.604.325-.142.728-.219 1.222-.219 1.365-.064 2.535-.578 3.575-1.607s1.56-2.546 1.625-3.883h-.026C18.467 9.904 19 9.081 19 8.143zM8.6 4.029c.858 0 1.56.707 1.56 1.542 0 .836-.715 1.543-1.56 1.543-.845 0-1.56-.707-1.56-1.543 0-.835.715-1.542 1.56-1.542zm0 15.955c-.858 0-1.56-.707-1.56-1.543 0-.835.715-1.542 1.56-1.542.845 0 1.56.707 1.56 1.542 0 .836-.715 1.543-1.56 1.543zM16.4 9.7c-.858 0-1.56-.708-1.56-1.543 0-.836.715-1.543 1.56-1.543.845 0 1.56.707 1.56 1.543 0 .835-.715 1.543-1.56 1.543z"}),s=function(e){return i.a.createElement("svg",a()({viewBox:"0 0 24 24",width:"1em",height:"1em"},e),l)};t.default="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0Ij4KICAgIDxwYXRoIGZpbGw9ImN1cnJlbnRDb2xvciIgZmlsbC1ydWxlPSJldmVub2RkIiBkPSJNMTkgOC4xNDNhMi41NzcgMi41NzcgMCAwIDAtMi42LTIuNTcyIDIuNTg2IDIuNTg2IDAgMCAwLTIuNTA5IDEuODk4IDIuNTUgMi41NSAwIDAgMCAxLjIwOSAyLjg4NXYuMzg2Yy0uMDI2LjY2OS0uMjk5IDEuMjYtLjgxOSAxLjc3NC0uNTIuNTE1LTEuMTE4Ljc4NS0xLjc5NC44MS0xLjA3OS4wMjYtMS45MjQuMjA2LTIuNi41Nzl2LTYuMTJhMi41NSAyLjU1IDAgMCAwIDEuMjA5LTIuODg2QTIuNTg2IDIuNTg2IDAgMCAwIDguNTg3IDMgMi41NjYgMi41NjYgMCAwIDAgNiA1LjU3MWMuMDA2LjkxNC41IDEuNzU1IDEuMyAyLjIxMnY4LjQzNGMtLjc2Ny40NS0xLjMgMS4yNzMtMS4zIDIuMjEyQTIuNTc3IDIuNTc3IDAgMCAwIDguNiAyMWMxLjQ0MyAwIDIuNi0xLjE0NCAyLjYtMi41NzEgMC0uNjgyLS4yNi0xLjI4Ni0uNjg5LTEuNzQ5LjExNy0uMDc3LjYyNC0uNTI3Ljc2Ny0uNjA0LjMyNS0uMTQyLjcyOC0uMjE5IDEuMjIyLS4yMTkgMS4zNjUtLjA2NCAyLjUzNS0uNTc4IDMuNTc1LTEuNjA3czEuNTYtMi41NDYgMS42MjUtMy44ODNoLS4wMjZDMTguNDY3IDkuOTA0IDE5IDkuMDgxIDE5IDguMTQzek04LjYgNC4wMjljLjg1OCAwIDEuNTYuNzA3IDEuNTYgMS41NDIgMCAuODM2LS43MTUgMS41NDMtMS41NiAxLjU0My0uODQ1IDAtMS41Ni0uNzA3LTEuNTYtMS41NDMgMC0uODM1LjcxNS0xLjU0MiAxLjU2LTEuNTQyem0wIDE1Ljk1NWMtLjg1OCAwLTEuNTYtLjcwNy0xLjU2LTEuNTQzIDAtLjgzNS43MTUtMS41NDIgMS41Ni0xLjU0Mi44NDUgMCAxLjU2LjcwNyAxLjU2IDEuNTQyIDAgLjgzNi0uNzE1IDEuNTQzLTEuNTYgMS41NDN6TTE2LjQgOS43Yy0uODU4IDAtMS41Ni0uNzA4LTEuNTYtMS41NDMgMC0uODM2LjcxNS0xLjU0MyAxLjU2LTEuNTQzLjg0NSAwIDEuNTYuNzA3IDEuNTYgMS41NDMgMCAuODM1LS43MTUgMS41NDMtMS41NiAxLjU0M3oiLz4KPC9zdmc+Cg=="},1251:function(e,r,n){"use strict";n(15);var a=n(20);n(4),n(23),n(17),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,n(45),n(42),n(4),n(23),n(57),n(17);var o=a(n(36)),i=a(n(37)),l=a(n(55)),s=a(n(56)),u=a(n(51)),c=a(n(0)),d=a(n(3)),f=a(n(5043));function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,u.default)(e);if(t){var a=(0,u.default)(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return(0,s.default)(this,r)}}var h=function(e){(0,l.default)(n,e);var r=p(n);function n(){return(0,o.default)(this,n),r.apply(this,arguments)}return(0,i.default)(n,[{key:"render",value:function(){var e=this.props,r=e.score,n=e.className;return void 0===r?c.default.createElement("span",null,c.default.createElement("span",{className:(0,d.default)(f.default.icon,f.default.nostatus,n)}),t("NO_STATUS")):r<=30?c.default.createElement("span",null,c.default.createElement("span",{className:(0,d.default)(f.default.icon,f.default.error,n)}),t("WARNING")):r>30&&r<=80?c.default.createElement("span",null,c.default.createElement("span",{className:(0,d.default)(f.default.icon,f.default.subhealth,n)}),t("SUB_HEALTHY")):c.default.createElement("span",null,c.default.createElement("span",{className:(0,d.default)(f.default.icon,f.default.health,n)}),t("HEALTHY"))}}]),n}(c.default.Component);r.default=h},1459:function(e,r,n){"use strict";n(15);var a=n(157),o=n(20);n(4),n(23),n(17),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,n(45),n(42),n(4),n(23),n(57),n(17);var i=o(n(30)),l=o(n(36)),s=o(n(37)),u=o(n(55)),c=o(n(56)),d=o(n(51)),f=a(n(0)),p=o(n(1)),h=o(n(3)),m=o(n(5048));function v(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,d.default)(e);if(t){var a=(0,d.default)(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return(0,c.default)(this,r)}}var g=function(e){(0,u.default)(n,e);var r=v(n);function n(){return(0,l.default)(this,n),r.apply(this,arguments)}return(0,s.default)(n,[{key:"render",value:function(){var e=this.props,r=e.className,n=e.type,a=e.label,o=e.hasLabel,l=e.noBolder;return n?f.default.createElement("span",{className:(0,h.default)(m.default.status,(0,i.default)({},m.default.noBolder,l))},f.default.createElement("span",{className:(0,h.default)(m.default.status_icon,m.default[n.toLowerCase()],r)}),o&&t(a.toUpperCase())):"-"}}]),n}(f.PureComponent);r.default=g,g.propTypes={label:p.default.string,className:p.default.string,type:p.default.string,hasLabel:p.default.bool},g.defaultProps={type:"",label:"",hasLabel:!0}},1460:function(e,t,r){e.exports={blocker:"_13DzfBLFOcl0PkbaYOX_IL",rotate:"Qt2BndoO7EUdKwtN-hOtc",critical:"_34RT_yUY674mzuDu7R7SnE",info:"_293s8VCmuIgat-ocKVjiz8",major:"II1m5ywwwPjr4B9x4osmH",minor:"_1vir6Nk49PjpnZlBgElG-m",codeStatus:"_3vyWO-g1aIhi8WEUkqeDoi",status:"_2nb5BAvBLIBf1XeSRTohxv",type:"RSzYbc7X9wi3VPpAnBKvl",header:"_21iug7B2oBnbaMYUk1cbE-",title:"_3HJdy7bqoFMJ9OL9oD6fme",details:"_1EFtU6SxsqVpw9uEq6R7yq",content:"A-eoLIpA2_gligbYaPB7S",fileTitle:"nIhyXf2HKwkqzKczKwmLl",errorCard:"_3p5QrKOD_gQ7OYFVdM2p43",message:"_30aQZH0JvWk6-pz3ASP2ED","card-blocker":"_10H_dISVCyQUnX7DzaCw5t","card-critical":"_8-u2ig-VJ7fMfEopMHsl0","card-minor":"_3bLDFrnmI5omxaXpuslvI","card-info":"Dz7-_HLWnP9yOJx6SSb6H",titleShowMore:"_35etf_t4zY_L3qi074fSZV",displayAll:"_21pNhW5rKygDrZfFUrzhbB"}},1984:function(e,t,r){"use strict";r(15);var n=r(20);r(16),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r(16);var a=r(186),o=n(r(321)),i=n(r(0)),l=r(52),s=r(72),u=r(143),c=n(r(5047)),d=function(e){var t=(0,o.default)(e.clustersDetail,"name"),r=e.destination,n=void 0===r?{}:r;(0,u.useEventValue)(u.eventKeys.HOST_CLUSTER_CHANGE,"");var d=t[(0,l.inCluster2Default)(n.name)]||{},f=n.namespace||"";return i.default.createElement("div",{className:c.default.wrapper},i.default.createElement("div",{className:c.default.tags},i.default.createElement(a.Tag,{key:d.name,type:s.CLUSTER_GROUP_TAG_TYPE[d.group]},i.default.createElement(a.Icon,{name:s.CLUSTER_PROVIDER_ICON[d.provider]||"kubernetes",size:16,type:"light"}),d.name?(0,l.showNameAndAlias)((0,l.inCluster2Default)(d.name),"cluster"):"default"),i.default.createElement("span",null,i.default.createElement(a.Icon,{name:"project",size:16,type:"dark"}),(0,l.showNameAndAlias)(f,"project"))))};t.default=d},1985:function(e,t,r){e.exports={table:"_2kRLkEVOqCUKzBIAdE_83T",card_content:"_3kRPEz6by7LmYIGQYPiu1y",icon:"_1SjrfgQTyLeQm9FP_xJP27",info:"_3HKXpm5f2PQvmQUhwyH_WF",name:"_2fx0MeyPaBwvI7QGcSuPS_",desc:"_3ReQfIWiUSifiPUFAe05f0"}},1986:function(e,r,n){"use strict";var a=n(20);n(12),n(5),n(11),n(6),n(18),n(87),n(48),n(16),n(27),n(9),n(13),n(10),n(4),n(23),n(24),n(17),n(136),n(75),n(7),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,n(12),n(45),n(5),n(11),n(6),n(160),n(18),n(28),n(87),n(48),n(191),n(42),n(16),n(159),n(27),n(34),n(15),n(9),n(13),n(10),n(4),n(319),n(22),n(23),n(57),n(17),n(75),n(7);var o=a(n(30)),i=a(n(43)),l=a(n(58));n(41);var s,u,c,d,f,p,h,m,v,g,y,b,E,S,D=a(n(44)),_=a(n(65)),k=a(n(36)),O=a(n(37)),w=a(n(88)),N=a(n(55)),P=a(n(56)),R=a(n(51)),C=a(n(49)),I=(a(n(66)),a(n(189))),L=a(n(60)),T=a(n(26)),A=a(n(63)),j=n(909),x=n(14),M=a(n(240)),U=n(52),F=a(n(323)),B=a(n(960));function Y(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function H(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"default.txt",r=new Blob([e],{type:"text/plain;charset=utf-8"});(0,j.saveAs)(r,t)},e.pipelineStore=new B.default,e}return(0,O.default)(z,[{key:"getUrl",value:function(e){var t=e.cluster,r=e.devops,n=e.name;return"".concat(this.getDevopsUrlV2({cluster:t,devops:r}),"pipelines/").concat(decodeURIComponent(n),"/")}},{key:"getRunUrl",value:function(e){var t=e.cluster,r=e.devops,n=e.name,a=e.branch,o=e.runId;return"".concat(this.getUrl({cluster:t,devops:r,name:n})).concat(a?"branches/".concat(encodeURIComponent(a),"/"):"","runs/").concat(o,"/")}},{key:"getCommits",value:(F=(0,D.default)(i.default.mark((function e(t){var r,n,a,o,s,u,c,d,f,p,h,m;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.name,n=t.branch,a=t.runName,o=t.devops,t.workspace,s=t.cluster,u=(0,l.default)(t,["name","branch","runName","devops","workspace","cluster"]),r=decodeURIComponent(r),c=u.page,d=u.limit,f=void 0===d?10:d,this.runDetail.id){e.next=6;break}return e.next=6,this.getRunDetail({devops:o,cluster:s,runName:a});case 6:return this.commitsList.isLoading=!0,e.next=9,request.get("".concat(this.getRunUrl({cluster:s,devops:o,name:r,branch:n,runId:this.runDetail.id})),{start:(c-1)*f||0,limit:f});case 9:p=e.sent,h=[],p.changeSet&&(0,L.default)(p.changeSet)?h=p.changeSet.map((function(e){return{commitId:(0,T.default)(e,"commitId"),startTime:(0,T.default)(e,"timestamp"),url:(0,T.default)(e,"url"),author:(0,T.default)(e,"author.fullName"),title:(0,T.default)(e,"msg")}})):p.pullRequest&&(m={commitId:(0,T.default)(p,"commitId"),startTime:(0,T.default)(p,"startTime"),url:(0,T.default)(p,"pullRequest.url"),author:(0,T.default)(p,"pullRequest.author"),title:(0,T.default)(p,"pullRequest.title")},h.push(m)),this.commitsList={data:h,limit:f,total:h.length,page:parseInt(c,10)||1,filters:(0,I.default)(u,"devops"),isLoading:!1,selectedRowKeys:[]};case 13:case"end":return e.stop()}}),e,this)}))),function(e){return F.apply(this,arguments)})},{key:"getArtifacts",value:(C=(0,D.default)(i.default.mark((function e(t){var r,n,a,o,s,u,c,d,f,p;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.devops,n=t.name,a=t.runName,o=t.branch,s=t.cluster,t.workspace,u=(0,l.default)(t,["devops","name","runName","branch","cluster","workspace"]),n=decodeURIComponent(n),c=u.page,d=u.limit,f=void 0===d?10:d,this.runDetail.id){e.next=6;break}return e.next=6,this.getRunDetail({devops:r,cluster:s,runName:a});case 6:return this.artifactsList.isLoading=!0,e.next=9,request.get("".concat(this.getRunUrl({cluster:s,devops:r,name:n,branch:o,runId:this.runDetail.id}),"artifacts/"),{start:(c-1)*f||0,limit:f});case 9:p=e.sent,this.artifactsList={data:p||[],pipeline:n,pipelineRun:a,total:p.length,limit:f,page:parseInt(c,10)||1,filters:(0,I.default)(u,"devops"),isLoading:!1,selectedRowKeys:[]};case 11:case"end":return e.stop()}}),e,this)}))),function(e){return C.apply(this,arguments)})},{key:"getNodesStatus",value:(R=(0,D.default)(i.default.mark((function e(t){var r,n,a,o,l,s,u=this;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.devops,n=t.name,a=t.branch,o=t.cluster,n=decodeURIComponent(n),this.getNodesStatusLoading=!0,e.next=5,request.get("".concat(this.getBaseUrl({cluster:o,namespace:r}),"pipelineruns/").concat(this.runDetail.name,"/nodedetails"));case 5:if(l=e.sent,(0,L.default)(l)){e.next=9;break}return this.getNodesStatusLoading=!1,e.abrupt("return");case 9:s=!(0,A.default)(l),this.nodesStatus=s?l.reduce((function(e,t,r){if(t.causeOfBlockage=u.runDetail.causeOfBlockage,"STAGE"===t.type){if(l[r+1]&&"PARALLEL"===l[r+1].type)return e.push([]),e;e.push(t)}else Array.isArray(e[e.length-1])?e[e.length-1].push(t):e.push([t]);return e}),[]):[],(!l||l.length<1)&&this.getRunStatusLogs({devops:r,name:n,branch:a,runId:this.runDetail.id,cluster:o}),this.getNodesStatusLoading=!1;case 13:case"end":return e.stop()}}),e,this)}))),function(e){return R.apply(this,arguments)})},{key:"getRunDetail",value:(P=(0,D.default)(i.default.mark((function e(t){var r,n,a,o,l=this;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.devops,n=t.cluster,a=t.runName,e.next=3,request.get("".concat(this.getBaseUrl({cluster:n,namespace:r}),"pipelineruns/").concat(a),null,null,function(){var e=(0,D.default)(i.default.mark((function e(r){var n;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(404!==r.status){e.next=6;break}return e.next=3,l.pipelineStore.fetchDetail(t);case 3:return n=e.sent,l.runDetail=n.latestRun||{},e.abrupt("return",(0,x.toJS)(l.runDetail));case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());case 3:o=e.sent,this.runDetail=H(H({},(0,U.safeParseJSON)((0,T.default)(o,"metadata.annotations.['devops.kubesphere.io/jenkins-pipelinerun-status']"))),{},{name:(0,T.default)(o,"metadata.name"),_originData:o}),this.isLoading=!1;case 6:case"end":return e.stop()}}),e,this)}))),function(e){return P.apply(this,arguments)})},{key:"replay",value:(s=(0,D.default)(i.default.mark((function e(t,r){var n,a,o,l;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.devops,a=t.name,o=t.branch,l=t.cluster,e.next=3,request.post("".concat(this.getRunUrl({cluster:l,devops:n,name:a,branch:o,runId:r||this.runDetail.id}),"replay"));case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e,this)}))),function(e,t){return s.apply(this,arguments)})},{key:"getRunStatusLogs",value:(o=(0,D.default)(i.default.mark((function e(t){var r,n,a,o,l,s,u,c,d,f,p=this,h=arguments;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.devops,n=t.name,a=t.branch,o=t.runId,l=t.cluster,h.length>1&&void 0!==h[1]&&h[1]&&(this.logSize=0,this.runStartDetailLogs="",this.hasMore=!1),!this.overflow){e.next=11;break}return e.next=6,request.get("".concat(this.getRunUrl({cluster:l,devops:r,name:n,branch:a,runId:o}),"log/?thresholdInKB=150"));case 6:s=e.sent,this.hasMore=!0,this.lastDetailLogs="\n\n*****************************************************************\n* The log is too large, please download it to view the details. *\n* *\n* The following is the latest 150KB log. *\n*****************************************************************\n\n".concat(s),e.next=20;break;case 11:return u=this.logSize,c=u?"?start=".concat(u):"",e.next=15,request.get("".concat(this.getRunUrl({cluster:l,devops:r,name:n,branch:a,runId:o}),"log/").concat(c),{},{headers:{"x-with-headers":!0}});case 15:d=e.sent,(f=d.headers.get("x-text-size"))?(this.logSize=Number(f),this.hasMore=Boolean(d.headers.get("x-more-data"))):(this.logSize+=Number(d.headers.get("x-text-size")),this.hasMore=Boolean(d.headers.get("x-more-data"))),this.overflow=Boolean(d.headers.get("X-File-Size-Limit-Out"))||this.logSize>=10485760,d.text().then((function(e){if(0!==u){var t=p.runStartDetailLogs.slice(-100).split("\n");t.length>=2?(t.pop(),t.length&&t.pop().startsWith("Finished:")||(p.runStartDetailLogs+=e)):p.runStartDetailLogs+=e}else p.runStartDetailLogs=e}));case 20:case"end":return e.stop()}}),e,this)}))),function(e){return o.apply(this,arguments)})},{key:"handleJumpFullLogs",value:function(e){var t=e.devops,r=e.name,n=e.branch,a=e.cluster;r=decodeURIComponent(r);var o=(0,U.getClusterUrl)("".concat(window.location.protocol,"//").concat(window.location.host,"/").concat(this.getRunUrl({cluster:a,devops:t,name:r,branch:n,runId:this.runDetail.id}),"log/?start=0"));window.open(o)}},{key:"handleDownloadLogs",value:(a=(0,D.default)(i.default.mark((function e(t){var r,n,a,o,l,s;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=t.devops,n=t.name,a=t.branch,o=t.cluster,n=decodeURIComponent(n),l=(0,U.getClusterUrl)("".concat(window.location.protocol,"//").concat(window.location.host,"/").concat(this.getRunUrl({cluster:o,devops:r,name:n,branch:a,runId:this.runDetail.id}),"log/?start=0&download=true")),(s=document.createElement("a")).href=l,s.download="".concat(n,"-").concat(this.runDetail.id,"-").concat(this.runDetail.name,".log"),s.headers={"x-add-res-header":JSON.stringify({"Content-Disposition":"attachment; filename=".concat(n,"-").concat(this.runDetail.name,".log")})},s.click();case 8:case"end":return e.stop()}}),e,this)}))),function(e){return a.apply(this,arguments)})},{key:"handleProceed",value:(n=(0,D.default)(i.default.mark((function e(r){var n,a,o,l,s,u,c,d;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=r.parameters,a=r.devops,o=r.name,l=r.nodeId,s=r.branch,u=r.cluster,c=r.stepId,d=r.inputId,e.next=3,request.post("".concat(this.getRunUrl({cluster:u,devops:a,name:o,branch:s,runId:this.runDetail.id}),"nodes/").concat(l,"/steps/").concat(c,"/"),{id:d,parameters:n},null,(function(e){if(400===e.status)return M.default.error({content:t("Sorry, you don't have the permission to do this.")}),!0}));case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})},{key:"handleBreak",value:(r=(0,D.default)(i.default.mark((function e(t){var r,n,a,o,l,s,u;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.devops,n=t.name,a=t.nodeId,o=t.branch,l=t.stepId,s=t.inputId,u=t.cluster,e.next=3,request.post("".concat(this.getRunUrl({cluster:u,devops:r,name:n,branch:o,runId:this.runDetail.id}),"nodes/").concat(a,"/steps/").concat(l,"/"),{id:s,abort:!0});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e,this)}))),function(e){return r.apply(this,arguments)})},{key:"runDetailLogs",get:function(){return this.runStartDetailLogs+this.lastDetailLogs}}]),z}(F.default),u=(0,C.default)(s.prototype,"detail",[x.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),c=(0,C.default)(s.prototype,"devops",[x.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),d=(0,C.default)(s.prototype,"commitsList",[x.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{data:[],page:1,limit:10,total:0,order:"",reverse:!1,filters:{},isLoading:!0}}}),f=(0,C.default)(s.prototype,"artifactsList",[x.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{data:[],page:1,limit:10,total:0,order:"",reverse:!1,filters:{},isLoading:!0}}}),p=(0,C.default)(s.prototype,"isLoading",[x.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),h=(0,C.default)(s.prototype,"getNodesStatusLoading",[x.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),m=(0,C.default)(s.prototype,"nodesStatus",[x.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),v=(0,C.default)(s.prototype,"runDetail",[x.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),g=(0,C.default)(s.prototype,"runStartDetailLogs",[x.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),y=(0,C.default)(s.prototype,"logSize",[x.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),b=(0,C.default)(s.prototype,"overflow",[x.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),E=(0,C.default)(s.prototype,"hasMore",[x.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),S=(0,C.default)(s.prototype,"lastDetailLogs",[x.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),(0,C.default)(s.prototype,"runDetailLogs",[x.computed],Object.getOwnPropertyDescriptor(s.prototype,"runDetailLogs"),s.prototype),(0,C.default)(s.prototype,"getCommits",[x.action],Object.getOwnPropertyDescriptor(s.prototype,"getCommits"),s.prototype),(0,C.default)(s.prototype,"getArtifacts",[x.action],Object.getOwnPropertyDescriptor(s.prototype,"getArtifacts"),s.prototype),(0,C.default)(s.prototype,"getNodesStatus",[x.action],Object.getOwnPropertyDescriptor(s.prototype,"getNodesStatus"),s.prototype),(0,C.default)(s.prototype,"getRunDetail",[x.action],Object.getOwnPropertyDescriptor(s.prototype,"getRunDetail"),s.prototype),(0,C.default)(s.prototype,"getRunStatusLogs",[x.action],Object.getOwnPropertyDescriptor(s.prototype,"getRunStatusLogs"),s.prototype),s);r.default=z},1987:function(e,t,r){e.exports={container:"_35WQzILk2k5A-TNfwYc_Yu",dialogTitle:"_1HnTmMa63mLPJxN-kG6XQ8",left:"_2XPYd3NGh15jZRYWm5MNuU",right:"_3bKVu0q_0smLvLQ_xG_Cv5",cutTitle:"ujjupzCK4LMn0keQ15_R8",activeTitle:"_2296EshHppYY33xDrhOYkt",leftTab:"_1kG5fSh5j7HcCSYKps6oTh",leftTab__active:"_1IuH08t3ULSDQt0OqOGwBK",header:"_2Tookjj2Zw9AgDikbYKJgg",stageContainer:"_3GP4euDRBvjXvD0nK9K-r_",logContainer:"onNirjkuD2zuU4-stBH7e",LogItem:"_1HiUEMOLNi-k2C1DaLfIDk",LogItem__title:"_3Mx5xDEpJpN64NOn7P22sS",logitem_status:"wuI80Au-XWNGZUq-w40Ws",LogItem_content:"lOqJTK8ZNeB12AT7uaQXu",logs_container:"_2Vmm2M8PYlz2yPzrtbc7b"}},1988:function(e,t,r){e.exports={content:"_2GZWNwDmCMaUPILAUqPNQf",totalResult:"NBt7KR1xy9O8EawT3vX2",icon:"bz27u9MKO5MCTXeL-tJVR",otherCards:"_1rtnO6pnjP7HJRT0QGouIq",resultCard:"_15y85A7WyXG0tLQtqF7fax",title:"_2m2EwcYwfu9p6-CO4u0fah",value:"_2fh_XN43MPIMM0V9x1RSAV",unit:"_3bIiaxdLQLPwa4eam-lmZ_",success:"z32XC06-_4svuDjqBkmAz",error:"_1knC_oFwHb1CGb5_vEcgo9",A:"_1SiVVmpdCPUHST_165zQf9",B:"_2PpecDw-rYu6sMpW5eRcV",C:"_1cGPrOnT-V5vNe6maN_jp6",D:"_152jN-TAnzt_qQbaldEyqd",logo:"_25dzrJDupH8xequ0ccrNoC"}},1989:function(e,r,n){"use strict";n(15);var a=n(157),o=n(20);n(4),n(23),n(17),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,n(45),n(42),n(4),n(23),n(57),n(17);var i=o(n(36)),l=o(n(37)),s=o(n(55)),u=o(n(56)),c=o(n(51)),d=a(n(0)),f=o(n(1)),p=o(n(3)),h=o(n(1460));function m(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,c.default)(e);if(t){var a=(0,c.default)(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return(0,u.default)(this,r)}}var v=function(e){(0,s.default)(n,e);var r=m(n);function n(){return(0,i.default)(this,n),r.apply(this,arguments)}return(0,l.default)(n,[{key:"render",value:function(){var e=this.props,r=e.errorClass,n=e.className;return d.default.createElement("span",{className:h.default.codeStatus},d.default.createElement("span",{className:(0,p.default)("codequality-icon",h.default[r],n)}),t(r.toUpperCase()))}}]),n}(d.PureComponent);r.default=v,v.propTypes={errorClass:f.default.string,className:f.default.string},v.defaultProps={errorClass:"",className:""}},1990:function(e,r,n){"use strict";n(15);var a=n(157),o=n(20);n(5),n(84),n(18),n(16),n(4),n(23),n(24),n(17),n(85),n(62),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,n(45),n(5),n(84),n(18),n(42),n(16),n(4),n(23),n(57),n(24),n(17),n(85),n(62);var i=o(n(36)),l=o(n(37)),s=o(n(55)),u=o(n(56)),c=o(n(51)),d=a(n(0)),f=n(14),p=n(239),h=n(433),m=n(186),v=o(n(1251)),g=n(1144),y=o(n(5105));function b(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,c.default)(e);if(t){var a=(0,c.default)(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return(0,u.default)(this,r)}}var E=function(e){(0,s.default)(n,e);var r=b(n);function n(){return(0,i.default)(this,n),r.apply(this,arguments)}return(0,l.default)(n,[{key:"renderBaseInfo",value:function(){var e=this.props.detailStore.detail;return d.default.createElement(m.Columns,{className:y.default.baseInfo},d.default.createElement(m.Column,{className:y.default.baseInfo__item},d.default.createElement("div",{className:y.default.dashboardValue},d.default.createElement(v.default,{score:e.weatherScore})),d.default.createElement("div",{className:y.default.dashboardLable},t("HEALTH_STATUS_SCAP"))),this.isMultibranch?d.default.createElement(m.Column,{className:y.default.baseInfo__item},d.default.createElement("div",{className:y.default.dashboardValue},d.default.createElement(g.ReactComponent,{style:{width:"20px",height:"20px"}})," ",e.totalNumberOfBranches||"-"),d.default.createElement("div",{className:y.default.dashboardLable},e.totalNumberOfBranches&&1===e.totalNumberOfBranches?t("BRANCH_SI"):t("BRANCH_PL"))):null,d.default.createElement(m.Column,{className:y.default.baseInfo__item}))}},{key:"renderNavLink",value:function(e){var r=e.name,n=e.title,a=this.props,o=a.detailStore,i=a.sonarqubeStore,l=this.enabledActions.includes("edit");if(!r)return null;if(o&&i){if((!l||this.isMultibranch)&&"pipeline"===r)return null;if(!i.detail.totalStatus&&"code-quality"===r)return null;if(!this.isMultibranch&&"branch"===r)return null;if(!o.detail.totalNumberOfPullRequests&&"pull-request"===r)return null}return d.default.createElement(h.NavLink,{key:r,className:y.default.navItem,activeClassName:y.default.active,to:"".concat(this.props.match.url,"/").concat(r)},t(n))}},{key:"render",value:function(){var e=this,t=this.props.route;return d.default.createElement(d.default.Fragment,null,this.renderBaseInfo(),d.default.createElement("div",{className:y.default.nav},t.routes.map((function(t){return e.renderNavLink(t)}))))}},{key:"enabledActions",get:function(){var e=this.props.match.params,t=e.cluster,r=e.devops;return globals.app.getActions({module:"pipelines",cluster:t,devops:r})}},{key:"isMultibranch",get:function(){var e=this.props.detailStore;return(0,f.toJS)(e.detail.isMultiBranch)}}]),n}(d.Component);E.defaultProps={module:""};var S=(0,p.inject)("rootStore")((0,p.observer)(E));r.default=S},1991:function(e,t,r){"use strict";r(15);var n=r(20);r(5),r(18),r(16),r(4),r(22),r(196),r(23),r(17),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r(45),r(5),r(18),r(42),r(16),r(4),r(22),r(196),r(23),r(57),r(17);var a=n(r(43));r(41);var o,i,l,s,u=n(r(44)),c=n(r(65)),d=n(r(36)),f=n(r(88)),p=n(r(55)),h=n(r(56)),m=n(r(51)),v=n(r(49)),g=(n(r(66)),n(r(60))),y=r(14),b=n(r(105));function E(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,m.default)(e);if(t){var a=(0,m.default)(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return(0,h.default)(this,r)}}var S=(o=function(e){(0,p.default)(r,e);var t=E(r);function r(){var e;(0,d.default)(this,r);for(var n=arguments.length,a=new Array(n),o=0;o=0;return[{dataIndex:"name",title:t("NAME"),search:!0},{dataIndex:"alias",title:t("ALIAS"),search:a}]}}]),n}(E.default.Component))||o)||o;r.default=I},5035:function(e,r,n){"use strict";n(15);var a=n(20);n(12),n(109),n(5),n(16),n(4),n(23),n(17),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,n(12),n(109),n(45),n(5),n(42),n(16),n(4),n(23),n(57),n(17);var o=a(n(30)),i=a(n(36)),l=a(n(37)),s=a(n(55)),u=a(n(56)),c=a(n(51)),d=a(n(3)),f=a(n(812)),p=a(n(0)),h=n(52),m=a(n(5036));function v(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,c.default)(e);if(t){var a=(0,c.default)(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return(0,u.default)(this,r)}}var g=function(e){(0,s.default)(n,e);var r=v(n);function n(){var e;(0,i.default)(this,n);for(var t=arguments.length,a=new Array(t),o=0;o0&&void 0!==arguments[0]?arguments[0]:"Unknown";return w.default.createElement(T.default,{type:e,label:t(e)})}},{title:t("SYNC_STATUS"),dataIndex:"syncStatus",filters:e.getSyncStatus(),filteredValue:a("syncStatus"),search:!0,width:"20%",render:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Unknown";return w.default.createElement(T.default,{type:e,label:e})}},{title:t("DEPLOY_LOCATION"),dataIndex:"destination",isHideable:!0,width:"20%",render:function(t){return w.default.createElement(L.default,{destination:t,clustersDetail:e.clusters})}},{title:t("UPDATE_TIME_TCAP"),dataIndex:"updateTime",sorter:!0,sortOrder:n("updateTime"),isHideable:!0,width:"20%",render:function(e,t){var r=(0,D.default)(t,"status.reconciledAt");return r?(0,R.getLocalTime)(r).format("YYYY-MM-DD HH:mm:ss"):"-"}}]},e.handleFilter=function(t){var r=e.props.store.list.filters;Object.keys(r).forEach((function(e){Object.values(t).includes(r[e])&&(t[e]="")})),e.handleFetch(t)},e.renderStatusCard=function(){var t=e.props.store.list.filters,r=e.props.store.summary,n=r.total,a=void 0===n?0:n,o=r.healthStatus,i=void 0===o?{}:o,l=[{title:"HEALTHY",color:"#55BC8A",used:i.Healthy||0,total:a,icon:"/assets/cd/health.svg",label:"HEALTH_STATUS"},{title:"DEGRADED",color:"#CA2621",used:i.Degraded||0,total:a,icon:"/assets/cd/degraded.svg",label:"HEALTH_STATUS"},{title:"PROGRESSING",color:"#F5A623",used:i.Progressing||0,total:a,icon:"/assets/cd/progressing.svg",label:"HEALTH_STATUS"}];return w.default.createElement("div",{className:A.default.warper__item},l.map((function(r){return w.default.createElement(I.default,{item:r,key:r.title,type:"healthStatus",click:e.handleFilter,label:r.label,filters:t})})))},e.renderSyncStatusCard=function(){var t=e.props.store.list.filters,r=e.props.store.summary,n=r.total,a=void 0===n?0:n,o=r.syncStatus,i=void 0===o?{}:o,l=[{title:"SYNCED",color:"#55BC8A",used:i.Synced||0,total:a,icon:"/assets/cd/synced.svg",label:"SYNC_STATUS"},{title:"OUTOFSYNC",filterValue:"OutOfSync",color:"#F5A623",used:i.OutOfSync||0,total:a,icon:"/assets/cd/outofsync.svg",label:"SYNC_STATUS"},{title:"UNKNOWN",color:"#36435C",used:i.Unknown||0,total:a,icon:"/assets/cd/unknown.svg",label:"SYNC_STATUS"}];return w.default.createElement("div",{className:A.default.warper__item},l.map((function(r){return w.default.createElement(I.default,{item:r,type:"syncStatus",key:r.title,click:e.handleFilter,label:r.label,filters:t})})))},e}return(0,p.default)(n,[{key:"componentDidMount",value:function(){this.clusterStore.fetchList({limit:-1}),this.getData()}},{key:"renderContent",value:function(){var e=this,r=this.props.tableProps,n=(0,O.toJS)(this.props.store.list),a=n.filters,o=n.selectedRowKeys,l=n.isLoading,s=n.total,u=(0,_.default)(a,["limit","page"]),c={onSelectRowKeys:this.props.store.setSelectRowKeys,selectedRowKeys:o,selectActions:[{key:"delete",type:"danger",text:t("DELETE"),action:"delete",onClick:function(){return e.props.trigger("cd.batch.delete",{rowKey:"name",devops:e.devops,cluster:e.cluster,success:function(){setTimeout((function(){e.handleFetch()}),1e3)}})}}]},d=this.enabledActions.includes("create")?this.handleCreate:null,f=!1===l&&0===s&&Object.keys(u).length<=0;return w.default.createElement(S.default,(0,i.default)({rowKey:"name"},r,{columns:this.getColumns(),onCreate:d,onFetch:this.handleFetch,tableActions:c,itemActions:this.itemActions,isLoading:l,showEmpty:f,enabledActions:this.enabledActions}))}},{key:"render",value:function(){var e=this.props.bannerProps;return w.default.createElement(E.ListPage,(0,i.default)({},this.props,{getData:this.getData}),w.default.createElement(b.default,e),w.default.createElement("div",null,!this.hideSummary&&w.default.createElement("div",{className:A.default.status__container},w.default.createElement("div",{className:A.default.warper__container},this.renderStatusCard()),w.default.createElement("div",{className:A.default.warper__container},this.renderSyncStatusCard())),this.renderContent()))}},{key:"clusters",get:function(){return this.clusterStore.list.data}},{key:"enabledActions",get:function(){return globals.app.getActions({module:"applications",cluster:this.cluster,devops:this.devops})}},{key:"devops",get:function(){return this.props.match.params.devops}},{key:"cluster",get:function(){return this.props.match.params.cluster}},{key:"workspace",get:function(){return this.props.match.params.workspace}},{key:"prefix",get:function(){return this.props.match.url.endsWith("/"),this.props.match.url}},{key:"routing",get:function(){return this.props.rootStore.routing}},{key:"hideSummary",get:function(){var e=(0,O.toJS)(this.props.store.summary),t=e.healthStatus,r=void 0===t?{}:t,n=e.syncStatus,a=void 0===n?{}:n;return[].concat(Object.values(r)).concat(Object.values(a)).every((function(e){return!e}))}},{key:"itemActions",get:function(){var e=this,r=this.props,n=r.trigger,a=r.routing;return[{key:"edit",icon:"pen",text:t("EDIT_INFORMATION"),action:"edit",onClick:function(t){n("resource.baseinfo.edit",{detail:x(x({},t),{},{cluster:e.cluster}),success:a.query})}},{key:"yaml",icon:"pen",text:t("EDIT_YAML"),action:"edit",onClick:function(t){n("resource.yaml.edit",{detail:x(x({},t),{},{cluster:e.cluster}),success:a.query})}},{key:"sync",icon:"changing-over",text:t("SYNC"),action:"edit",onClick:function(t){e.handleSync(t)}},{key:"delete",icon:"trash",text:t("DELETE"),action:"delete",onClick:function(t){n("cd.delete",{type:"CONTINUOUS_DEPLOYMENT",detail:t,cluster:e.cluster,success:a.query})}}]}}]),n}(w.default.Component),(0,g.default)(c.prototype,"clusters",[O.computed],Object.getOwnPropertyDescriptor(c.prototype,"clusters"),c.prototype),u=c))||u;r.default=U},5045:function(e,r,n){"use strict";n(15);var a=n(157),o=n(20);n(6),n(10),n(7),Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(e){var r=e.click,n=e.item,a=e.type,o=e.filters,m=(0,s.useState)(!1),v=(0,l.default)(m,2),g=v[0],y=v[1],b=n.title,E=n.color,S=n.filterValue,D=n.used,_=n.total,k=n.icon,O=n.label;return(0,s.useEffect)((function(){(0,f.default)(o)?y(!1):(y(!1),Object.keys(o).forEach((function(e){a===e&&o[e]===(S||(0,p.capitalize)(b))&&y(!0)})))}),[o]),s.default.createElement("div",{className:(0,d.default)(h.default.content,(0,i.default)({},h.default["content--checked"],g)),onClick:function(){y(!g),r((0,i.default)({},a,S||(0,p.capitalize)(b)))}},s.default.createElement("div",{className:h.default.chart},s.default.createElement(u.PieChart,{width:64,height:64,innerRadius:"75%",outerRadius:"115%",data:[{name:"Used",itemStyle:{fill:E},value:D},{name:"Left",itemStyle:{fill:"#EFF4F9"},value:_-D}]}),s.default.createElement("img",{className:h.default.innerIcon,src:k,alt:""})),s.default.createElement("div",{className:h.default.info},s.default.createElement("p",{className:h.default.label},t("".concat(O))),s.default.createElement(c.Radio,{className:(0,d.default)(h.default.radio,(0,i.default)({},h.default["radio--show"],g)),checked:g}),s.default.createElement("p",{className:h.default.type},t(b)),s.default.createElement("p",{className:h.default.number},s.default.createElement("span",{className:h.default.master},D),"/",s.default.createElement("span",null,_))))},n(6),n(10),n(4),n(7);var i=o(n(30)),l=o(n(96)),s=a(n(0)),u=n(798),c=n(186),d=o(n(3)),f=o(n(63)),p=n(52),h=o(n(5046))},5046:function(e,t,r){e.exports={content:"_3rbvLxgxar-1IXEnt7uXsv",info:"_1aKSZORI6fIwi-0XcGTt4g",radio:"_31WiuV5i5qqd7huDXoSta2","content--checked":"_2ck3PC62TuQ0VBCr4wT0Lq",chart:"t9qyn804bLHyqbuqqIVpF",innerIcon:"_1RoP3whI8yVaFftrDDDcGK","radio--show":"_3wu35PWdBZIS8LYSksbZVA",label:"_1MMJ5AoDMc--UUq3xm-ng4",type:"UCNB0wUPam3YH8CCM7lEd",number:"-qfmbebzKsuh_9f9pXzkS",master:"_2OvbKVu7MWU8S_Xmelk71f"}},5047:function(e,t,r){e.exports={tags:"rXo5-VrF2SoJPw4YTJ49n"}},5048:function(e,t,r){e.exports={status:"_1i44s-mkio269MZkQooCA-",noBolder:"_1PYdlTizmu4a-7vtA3SGVB",status_icon:"_1Fc4a9R1_fpPTYh8ZZCnsL",synced:"EHypTO3aVqoSZHjqxFeRM",pruneskipped:"_1y3YUdYQhmCrRQEQC3Vbro",outofsync:"_3PatraCDMneKvGdCyDMvqF",syncfailed:"ArN9LRm53CRNjkzXWoe4Y",unknown:"_1KFsPRlIVt0iTX2q-SlIex",healthy:"_38Bn86ot3T09d_CEbksKAi",degraded:"ulbHb6MIg2KuMGDWUcPdF",progressing:"_2LgiBXp2kDTVB1L8CeNBkz",suspended:"TAPJ97Ue7MfgbqW9_GmVG",missing:"_2-RicBgupjxvlNMuDmPIKT"}},5049:function(e,t,r){e.exports={status__container:"DSexb7d0T5aof2FHL0GTJ",warper__container:"_3T1AJfVjhTgE_eU2vFnMj1",warper__item:"_1kKcKpGvcV2eck1NGzsmYf"}},5050:function(e,r,n){"use strict";var a=n(20),o=n(157);n(12),n(109),n(5),n(11),n(6),n(84),n(9),n(13),n(10),n(4),n(23),n(24),n(17),n(111),n(85),n(62),n(7),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,n(12),n(109),n(45),n(5),n(11),n(6),n(84),n(28),n(42),n(34),n(15),n(9),n(13),n(10),n(4),n(22),n(23),n(57),n(24),n(17),n(111),n(85),n(62),n(7);var i=a(n(315)),l=a(n(43)),s=a(n(30));n(41);var u,c=a(n(44)),d=a(n(36)),f=a(n(37)),p=a(n(55)),h=a(n(56)),m=a(n(51)),v=a(n(0)),g=n(14),y=o(n(793)),b=a(n(788)),E=a(n(792)),S=a(n(1109)),D=a(n(796)),_=n(52),k=a(n(189)),O=a(n(5051));function w(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function N(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"default.txt",r=new Blob([e],{type:"text/plain;charset=utf-8"});(0,j.saveAs)(r,t)},e}return(0,R.default)(ue,[{key:"getPipelineUrl",value:function(e){var t=e.cluster,r=e.devops,n=e.name;return"".concat(this.getDevopsUrlV2({cluster:t,devops:r||this.devops}),"pipelines/").concat(decodeURIComponent(n),"/")}},{key:"fetchList",value:(le=(0,w.default)(a.default.mark((function e(){var t,r,n,o,l,s,u,c,d,f,p,h,m,v,g=this,y=arguments;return a.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=y.length>0&&void 0!==y[0]?y[0]:{},r=t.devops,t.workspace,n=t.devopsName,o=t.silent,l=t.cluster,s=(0,i.default)(t,["devops","workspace","devopsName","silent","cluster"]),o||(this.list.isLoading=!0),u=s.page,c=s.limit,d=s.name,f=s.filter,p=d?"".concat(encodeURIComponent(d)):void 0,h="".concat(this.getBaseUrl({cluster:l,devops:r}),"pipelines"),e.next=7,request.get(h,{page:u||1,limit:c||10,name:p,filter:f||void 0},{params:K({},s)});case 7:m=e.sent,v=m.items.map((function(e){return K({},g.mapper(e))})),this.setDevops(r),this.devopsName=n,this.list={data:v||[],total:m.totalItems||0,limit:parseInt(c,10)||10,page:parseInt(u,10)||1,filters:(0,B.default)(s,"devops"),selectedRowKeys:[],isLoading:!1};case 12:case"end":return e.stop()}}),e,this)}))),function(){return le.apply(this,arguments)})},{key:"fetchDetail",value:(ie=(0,w.default)(a.default.mark((function e(t){var r,n,o,i,l,s;return a.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.cluster,n=t.name,o=t.isSilent,i=t.devops,o||(this.isLoading=!0),e.next=4,request.get("".concat(this.getBaseUrl({devops:i,cluster:r})).concat(this.module,"/").concat(n));case 4:return l=e.sent,s=this.mapper(l),this.setPipelineConfig(l),this.detail=s,this.isLoading=!1,e.abrupt("return",s);case 10:case"end":return e.stop()}}),e,this)}))),function(e){return ie.apply(this,arguments)})},{key:"checkPipelineName",value:(oe=(0,w.default)(a.default.mark((function e(t){var r,n,o;return a.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.name,n=t.cluster,o=t.devops,e.next=3,request.get(this.getPipelineUrl({cluster:n,name:r,devops:o}),{},{headers:{"x-check-exist":!0}});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e,this)}))),function(e){return oe.apply(this,arguments)})},{key:"getJenkinsFile",value:(ae=(0,w.default)(a.default.mark((function e(t){var r,n,o,i,l;return a.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.cluster,n=t.name,o=t.devops,this.pipelineJsonData.isLoading=!0,i=decodeURIComponent(n),!(0,F.default)(this.detail)){e.next=6;break}return e.next=6,this.fetchDetail({cluster:r,name:i,devops:o});case 6:return this.jenkinsfile=(0,M.default)(this.pipelineConfig,"spec.pipeline.jenkinsfile",""),e.next=9,this.convertJenkinsFileToJson((0,H.toJS)(this.jenkinsfile),r);case 9:l=e.sent,this.pipelineJsonData={pipelineJson:l,isLoading:!1};case 11:case"end":return e.stop()}}),e,this)}))),function(e){return ae.apply(this,arguments)})},{key:"convertJenkinsFileToJson",value:(ne=(0,w.default)(a.default.mark((function e(t,r){var n;return a.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t){e.next=5;break}return e.next=3,request.post("".concat(this.getDevopsUrlV2({cluster:r}),"tojson"),{jenkinsfile:t},W);case 3:return n=e.sent,e.abrupt("return",n.data);case 5:case"end":return e.stop()}}),e,this)}))),function(e,t){return ne.apply(this,arguments)})},{key:"getPullRequest",value:(re=(0,w.default)(a.default.mark((function e(t){var r,n,o,l,s,u,c,d,f;return a.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.name,n=t.devops,t.workspace,o=t.cluster,l=(0,i.default)(t,["name","devops","workspace","cluster"]),s=decodeURIComponent(r),u=l.page,c=l.limit,d=void 0===c?10:c,!(0,F.default)(this.detail)){e.next=6;break}return e.next=6,this.fetchDetail({name:s,devops:n});case 6:return e.next=8,request.get("".concat(this.getBaseUrl({cluster:o,namespace:n}),"pipelines/").concat(decodeURIComponent(r),"/branches"),{filter:"pull-requests",page:u||1,limit:d});case 8:f=e.sent,Array.isArray(f.items)&&f.items.forEach((function(e){e.id=e.latestRun.endTime})),this.pullRequestList={data:f.items||[],total:f.totalItems||0,limit:d,page:parseInt(u,10)||1,filters:(0,B.default)(l,"devops"),isLoading:!1,selectedRowKeys:[]};case 11:case"end":return e.stop()}}),e,this)}))),function(e){return re.apply(this,arguments)})},{key:"getBranches",value:(te=(0,w.default)(a.default.mark((function e(t){var r,n,o,l,s,u,c,d,f,p;return a.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.cluster,n=t.devops,o=t.name,l=t.branch,s=(0,i.default)(t,["cluster","devops","name","branch"]),u=decodeURIComponent(o),c=s.page,d=s.limit,f=void 0===d?10:d,!(0,F.default)(this.detail)){e.next=6;break}return e.next=6,this.fetchDetail({cluster:r,name:u,devops:n});case 6:return e.next=8,request.get("".concat(this.getBaseUrl({cluster:r,namespace:n}),"pipelines/").concat(decodeURIComponent(o),"/branches"),{filter:"origin",page:c||1,limit:f,branch:encodeURIComponent(l)});case 8:p=e.sent,this.branchList={data:p.items||[],limit:f,total:p.totalItems||0,page:parseInt(c,10)||1,filters:(0,B.default)(s,"devops"),isLoading:!1,selectedRowKeys:[]};case 10:case"end":return e.stop()}}),e,this)}))),function(e){return te.apply(this,arguments)})},{key:"getActivities",value:(ee=(0,w.default)(a.default.mark((function e(t){var r,n,o,l,s,u,c,d,f,p,h,m;return a.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.name,n=t.branch,o=t.devops,l=t.cluster,s=t.backward,u=void 0!==s&&s,c=(0,i.default)(t,["name","branch","devops","cluster","backward"]),r=decodeURIComponent(r),d=c.page,f=c.limit,p=void 0===f?10:f,!(0,F.default)(this.detail)){e.next=6;break}return e.next=6,this.fetchDetail({cluster:l,name:r,devops:o});case 6:return h={page:d||1,limit:p,branch:n,backward:u},d<0&&(delete h.page,delete h.limit),e.next=10,request.get("".concat(this.getBaseUrl({cluster:l,namespace:o}),"pipelines/").concat(r,"/pipelineruns"),K({},h));case 10:return m=e.sent,(0,U.default)(m)&&(m=m.filter((function(e){return e._links}))),!1===u&&!(0,F.default)(m)&&(0,U.default)(m.items)&&(m.items=m.items.map((function(e){return K(K({},(0,J.safeParseJSON)((0,M.default)(e,"metadata.annotations.['devops.kubesphere.io/jenkins-pipelinerun-status']"))),{},{uid:e.metadata.uid,_originData:e})}))),this.activityList={limit:p,data:m.items||[],total:m.totalItems||0,page:parseInt(d,10)||1,filters:(0,B.default)(c,"devops"),isLoading:!1,selectedRowKeys:[]},e.abrupt("return",m.items);case 15:case"end":return e.stop()}}),e,this)}))),function(e){return ee.apply(this,arguments)})},{key:"getBranchDetail",value:($=(0,w.default)(a.default.mark((function e(t){var r,n,o,i,l;return a.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.devops,n=t.cluster,o=t.name,i=t.branch,e.prev=1,e.next=4,request.get("".concat(this.getBaseUrl({cluster:n,namespace:r}),"pipelines/").concat(decodeURIComponent(o),"/branches/").concat(encodeURIComponent(i)));case 4:return(l=e.sent).name&&(this.branchDetail=l),e.abrupt("return",l);case 9:return e.prev=9,e.t0=e.catch(1),e.abrupt("return",[]);case 12:case"end":return e.stop()}}),e,this,[[1,9]])}))),function(e){return $.apply(this,arguments)})},{key:"handleActivityReplay",value:(Z=(0,w.default)(a.default.mark((function e(t){var r,n,o,i;return a.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.url,n=t.devops,o=t.name,i=t.cluster,e.next=3,request.post("".concat(this.getPipelineUrl({cluster:i,devops:n,name:o})).concat(r,"/replay/"));case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e,this)}))),function(e){return Z.apply(this,arguments)})},{key:"handleActivityStop",value:(X=(0,w.default)(a.default.mark((function e(t){var r,n,o,i;return a.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.url,n=t.devops,o=t.name,i=t.cluster,e.next=3,request.post("".concat(this.getPipelineUrl({cluster:i,devops:n,name:o})).concat(r,"/stop/?blocking=true&timeOutInSecs=10"));case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e,this)}))),function(e){return X.apply(this,arguments)})},{key:"runBranch",value:(Q=(0,w.default)(a.default.mark((function e(t){var r,n,o,i,l,s,u,c=this;return a.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.cluster,n=t.devops,o=t.name,i=t.branch,l=t.parameters,s="".concat(this.getBaseUrl({cluster:r,namespace:n}),"pipelines/").concat(o,"/pipelineruns").concat(i?"?branch=".concat(encodeURIComponent(i)):""),u=(0,F.default)(l)?{parameters:[]}:{parameters:l},e.next=5,request.post(s,u).then((function(){setTimeout((function(){c.fetchDetail({cluster:r,devops:n,name:o,isSilent:!0})}),1e3)}));case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e,this)}))),function(e){return Q.apply(this,arguments)})},{key:"getPipeLineConfig",value:function(){var e=(0,x.default)((0,H.toJS)(this.pipelineConfig));return delete(e=K(K({},(0,H.toJS)(e.spec)),(0,H.toJS)(e))).spec,delete e.kind,delete e.apiVersion,e}},{key:"setDevops",value:function(e){this.devops=e}},{key:"createPipeline",value:(V=(0,w.default)(a.default.mark((function e(t){var r,n,o,i;return a.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.data,n=t.devops,o=t.cluster,r.kind="Pipeline",r.apiVersion="devops.kubesphere.io/v1alpha3",i="".concat(this.getBaseUrl({devops:n,cluster:o}),"pipelines"),e.next=6,request.post(i,r);case 6:return e.abrupt("return",e.sent);case 7:case"end":return e.stop()}}),e,this)}))),function(e){return V.apply(this,arguments)})},{key:"updatePipeline",value:(q=(0,w.default)(a.default.mark((function e(t){var r,n,o,i,l;return a.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.cluster,n=t.data,o=t.devops,n.kind="Pipeline",n.apiVersion="devops.kubesphere.io/v1alpha3",i="".concat(this.getBaseUrl({devops:o,cluster:r}),"pipelines/").concat(n.metadata.name),e.next=6,request.put(i,n);case 6:return l=e.sent,this.setPipelineConfig(l),e.abrupt("return",l);case 9:case"end":return e.stop()}}),e,this)}))),function(e){return q.apply(this,arguments)})},{key:"updateJenkinsFile",value:function(e,t){var r=(0,x.default)((0,H.toJS)(this.pipelineConfig));return(0,Y.default)(r,"spec.pipeline.jenkinsfile",e),this.updatePipeline({data:r,devops:t.devops,cluster:t.cluster})}},{key:"delete",value:(A=(0,w.default)(a.default.mark((function e(t){var r,n,o,i;return a.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.name,n=t.devops,o=t.cluster,i="".concat(this.getBaseUrl({devops:n,cluster:o}),"pipelines/").concat(r),e.next=4,request.delete(i);case 4:return e.abrupt("return",e.sent);case 5:case"end":return e.stop()}}),e,this)}))),function(e){return A.apply(this,arguments)})},{key:"scanRepository",value:(T=(0,w.default)(a.default.mark((function e(t){var r,n,o,i;return a.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.devops,n=t.name,o=t.cluster,i={},e.next=4,request.defaults({method:"POST",url:"".concat(this.getPipelineUrl({cluster:o,devops:r||this.devops,name:n||this.detail.name}),"scan"),options:i,handler:function(e){return e.text().then((function(){if(e.redirected)return"Scan success"}))}});case 4:return e.abrupt("return",e.sent);case 5:case"end":return e.stop()}}),e,this)}))),function(e){return T.apply(this,arguments)})},{key:"getRepoScanLogs",value:(L=(0,w.default)(a.default.mark((function e(t){var r,n,o,i;return a.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.devops,n=t.name,o=t.cluster,e.next=3,request.get("".concat(this.getPipelineUrl({cluster:o,name:n,devops:r}),"consolelog"));case 3:i=e.sent,this.repositoryLog=i;case 5:case"end":return e.stop()}}),e,this)}))),function(e){return L.apply(this,arguments)})},{key:"checkCron",value:(l=(0,w.default)(a.default.mark((function e(t){return a.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,request.get("".concat(this.getDevopsUrlV2(),"check/cron?value=").concat(t));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)}))),function(e){return l.apply(this,arguments)})},{key:"checkScriptCompile",value:(o=(0,w.default)(a.default.mark((function e(t){var r,n,o,i;return a.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.devops,n=t.pipeline,o=t.value,i=t.cluster,e.abrupt("return",this.submitting(request.post("".concat(this.getPipelineUrl({cluster:i,name:n,devops:r}),"checkScriptCompile"),{value:o},W)));case 2:case"end":return e.stop()}}),e,this)}))),function(e){return o.apply(this,arguments)})},{key:"getBranchLists",value:(n=(0,w.default)(a.default.mark((function e(t){var r,n,o,l,s,u,c;return a.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.devops,n=t.name,t.workspace,o=t.cluster,l=(0,i.default)(t,["devops","name","workspace","cluster"]),s=l.page,u=l.limit,c=void 0===u?10:u,e.next=4,request.get("".concat(this.getPipelineUrl({cluster:o,name:n,devops:r}),"branches/"),{filter:"origin",start:(s-1)*c||0,limit:c});case 4:return e.abrupt("return",e.sent);case 5:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})},{key:"getPipelineTemplateList",value:(r=(0,w.default)(a.default.mark((function e(t){var r,n,o,i;return a.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r="zh"===(0,z.default)("lang")?"ZH":"EN",e.next=3,request.get("".concat(this.getBaseUrl(t),"clustertemplates?limit=100"));case 3:return n=e.sent,o=n.items,i=(void 0===o?[]:o).map((function(e){var t={},n=(0,M.default)(e,"metadata.annotations",{}),a=n["devops.kubesphere.io/icon"];return t.type=e.metadata.name,t.desc=n["devops.kubesphere.io/description".concat(r)]||n["devops.kubesphere.io/descriptionEN"],t.title=n["devops.kubesphere.io/displayName".concat(r)]||n["devops.kubesphere.io/displayNameEN"]||n.displayNameEN,t.image=a&&a.indexOf("http")>-1?a:"/assets/pipeline/".concat(a),t.parameters=(0,M.default)(e,"spec.parameters",[]),t})),e.abrupt("return",i);case 7:case"end":return e.stop()}}),e,this)}))),function(e){return r.apply(this,arguments)})},{key:"getTempleJenkins",value:(t=(0,w.default)(a.default.mark((function e(t,r,n){var o,i;return a.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,request.post("".concat(this.getBaseUrl(n),"clustertemplates/").concat(t,"/render"),r);case 2:return o=e.sent,i=(0,M.default)(o,'metadata.annotations["devops.kubesphere.io/render-result"]',""),e.abrupt("return",i);case 5:case"end":return e.stop()}}),e,this)}))),function(e,r,n){return t.apply(this,arguments)})}]),ue}(q.default),s=(0,A.default)(l.prototype,"pipelineConfig",[H.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),u=(0,A.default)(l.prototype,"originalList",[H.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),c=(0,A.default)(l.prototype,"list",[H.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{data:[],page:1,limit:10,total:0,order:"",reverse:!1,filters:{},isLoading:!0}}}),d=(0,A.default)(l.prototype,"branchList",[H.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{data:[],page:1,limit:10,total:0,order:"",reverse:!1,filters:{},isLoading:!0}}}),f=(0,A.default)(l.prototype,"activityList",[H.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{data:[],page:1,limit:10,total:0,order:"",reverse:!1,filters:{},isLoading:!0}}}),p=(0,A.default)(l.prototype,"pullRequestList",[H.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{data:[],page:1,limit:10,total:0,order:"",reverse:!1,filters:{},isLoading:!0,selectedRowKeys:[]}}}),h=(0,A.default)(l.prototype,"credentialsList",[H.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{data:[],total:0,isLoading:!0}}}),m=(0,A.default)(l.prototype,"detail",[H.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),v=(0,A.default)(l.prototype,"isLoading",[H.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),g=(0,A.default)(l.prototype,"notFound",[H.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),y=(0,A.default)(l.prototype,"repositoryLog",[H.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),b=(0,A.default)(l.prototype,"pipelineJsonData",[H.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{pipelineJson:{},isLoading:!0}}}),E=(0,A.default)(l.prototype,"branchDetail",[H.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),S=(0,A.default)(l.prototype,"jenkinsfile",[H.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),D=(0,A.default)(l.prototype,"devops",[H.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),_=(0,A.default)(l.prototype,"devopsName",[H.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),(0,A.default)(l.prototype,"fetchList",[H.action],Object.getOwnPropertyDescriptor(l.prototype,"fetchList"),l.prototype),(0,A.default)(l.prototype,"fetchDetail",[H.action],Object.getOwnPropertyDescriptor(l.prototype,"fetchDetail"),l.prototype),k=(0,A.default)(l.prototype,"setPipelineConfig",[H.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(t){e.pipelineConfig=t}}}),O=(0,A.default)(l.prototype,"setSelectRowKeys",[H.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(t){e.list.selectedRowKeys.replace(t)}}}),(0,A.default)(l.prototype,"checkPipelineName",[H.action],Object.getOwnPropertyDescriptor(l.prototype,"checkPipelineName"),l.prototype),(0,A.default)(l.prototype,"getJenkinsFile",[H.action],Object.getOwnPropertyDescriptor(l.prototype,"getJenkinsFile"),l.prototype),(0,A.default)(l.prototype,"convertJenkinsFileToJson",[H.action],Object.getOwnPropertyDescriptor(l.prototype,"convertJenkinsFileToJson"),l.prototype),(0,A.default)(l.prototype,"getPullRequest",[H.action],Object.getOwnPropertyDescriptor(l.prototype,"getPullRequest"),l.prototype),(0,A.default)(l.prototype,"getBranches",[H.action],Object.getOwnPropertyDescriptor(l.prototype,"getBranches"),l.prototype),(0,A.default)(l.prototype,"getActivities",[H.action],Object.getOwnPropertyDescriptor(l.prototype,"getActivities"),l.prototype),(0,A.default)(l.prototype,"getBranchDetail",[H.action],Object.getOwnPropertyDescriptor(l.prototype,"getBranchDetail"),l.prototype),(0,A.default)(l.prototype,"getPipeLineConfig",[H.action],Object.getOwnPropertyDescriptor(l.prototype,"getPipeLineConfig"),l.prototype),(0,A.default)(l.prototype,"setDevops",[H.action],Object.getOwnPropertyDescriptor(l.prototype,"setDevops"),l.prototype),(0,A.default)(l.prototype,"createPipeline",[H.action],Object.getOwnPropertyDescriptor(l.prototype,"createPipeline"),l.prototype),(0,A.default)(l.prototype,"updatePipeline",[H.action],Object.getOwnPropertyDescriptor(l.prototype,"updatePipeline"),l.prototype),(0,A.default)(l.prototype,"updateJenkinsFile",[H.action],Object.getOwnPropertyDescriptor(l.prototype,"updateJenkinsFile"),l.prototype),(0,A.default)(l.prototype,"delete",[H.action],Object.getOwnPropertyDescriptor(l.prototype,"delete"),l.prototype),(0,A.default)(l.prototype,"scanRepository",[H.action],Object.getOwnPropertyDescriptor(l.prototype,"scanRepository"),l.prototype),l);t.default=Q},5070:function(e,t,r){"use strict";r(15);var n=r(20);r(31),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=n(r(96));r(31),r(4);var o=r(52),i=r(317),l=r(5071),s=n(r(5104)),u=n(r(5106)),c=n(r(5107)),d="/:workspace/clusters/:cluster/devops/:devops/pipelines/:name",f="".concat(d,"/branch/:branch"),p="".concat(f,"/run/:runName"),h="".concat(d,"/run/:runName"),m=[{name:"pipeline",title:"PIPELINE_CONFIGURATION",getComponent:function(e){return[[function(e){return(0,o.compareVersion)(e,"3.4.0")<0},l.PipelineOld],[function(){return!0},l.Pipeline]].find((function(t){return(0,(0,a.default)(t,1)[0])(e)}))[1]}},{name:"code-quality",title:"CODE_CHECK",component:l.CodeQuality},{name:"activity",title:"RUN_RECORDS",component:l.Activity},{name:"branch",title:"BRANCH_PL",component:l.Branch},{name:"pull-request",title:"PULL_REQUEST_PL",component:l.PullRequest}],v=[{name:"activity",title:"RUN_RECORDS",component:l.Activity},{name:"code-quality",title:"CODE_CHECK",component:l.CodeQuality}],g=[{name:"task-status",title:"TASK_STATUS",component:l.TaskStatus},{name:"build-parameters",title:"BUILD_PARAMETERS",component:l.Parameters},{name:"commit",title:"COMMIT_PL",component:l.Commit},{name:"artifacts",title:"ARTIFACT_PL",component:l.Artifacts},{name:"events",title:"EVENT_PL",component:l.Events}],y=[{path:p,component:c.default,routes:(0,i.getChildRoutes)(g,p)},{path:h,component:c.default,routes:(0,i.getChildRoutes)(g,h)},{path:f,component:s.default,routes:(0,i.getChildRoutes)(v,f)},{path:d,component:u.default,routes:(0,i.getChildRoutes)(m,d)}];t.default=y},5071:function(e,t,r){"use strict";r(15);var n=r(20);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Branch",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"Pipeline",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"PipelineOld",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"PullRequest",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"Activity",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(t,"TaskStatus",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"Commit",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"Artifacts",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(t,"CodeQuality",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(t,"Events",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(t,"Parameters",{enumerable:!0,get:function(){return h.default}});var a=n(r(5072)),o=n(r(5073)),i=n(r(5075)),l=n(r(5077)),s=n(r(5079)),u=n(r(5080)),c=n(r(5093)),d=n(r(5094)),f=n(r(5095)),p=n(r(5100)),h=n(r(5101))},5072:function(e,r,n){"use strict";var a=n(20);n(12),n(5),n(11),n(6),n(84),n(48),n(16),n(9),n(13),n(10),n(4),n(23),n(24),n(17),n(85),n(62),n(188),n(7),n(110),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,n(12),n(45),n(5),n(11),n(6),n(84),n(28),n(48),n(42),n(16),n(34),n(15),n(9),n(13),n(10),n(4),n(22),n(23),n(57),n(24),n(17),n(85),n(62),n(188),n(7),n(110);var o=a(n(30)),i=a(n(43));n(41);var l,s=a(n(44)),u=a(n(36)),c=a(n(37)),d=a(n(55)),f=a(n(56)),p=a(n(51)),h=a(n(26)),m=a(n(189)),v=a(n(63)),g=a(n(0)),y=n(14),b=n(239),E=n(244),S=a(n(1423)),D=n(186),_=a(n(240)),k=a(n(921)),O=a(n(1251)),w=n(52),N=n(434),P=n(1144),R=a(n(796)),C=a(n(963)),I=a(n(3));function L(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function T(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:"",r=e.props.match.params,n=r.devops,a=r.name,o=r.cluster;clearTimeout(e.store.timer);var i=o&&"default"!==o?"/klusters/".concat(o):"";request.put("/kapis/devops.kubesphere.io/v1alpha3".concat(i,"/namespaces/").concat(n,"/pipelines/").concat(a,"/jenkinsfile?mode=raw"),{data:t},{headers:{"content-type":"application/json"}}).then(e.handleRefresh)},e.handleEditorPipelineModal=function(t,r){var n=e.store.pipelineJsonData,a=e.props.match.params;e.trigger("pipeline.pipelineCreate",{store:e.store,jsonData:(0,E.toJS)(n.pipelineJson),onCancel:r,params:a,trigger:function(){var t;(t=e).trigger.apply(t,arguments)},success:function(){var t=a.devops,r=a.name;localStorage.removeItem("".concat(globals.user.username,"-").concat(t,"-").concat(r)),e.handleRefresh()}})},e.handleJenkinsFileModal=function(t,r){var n=e.store.pipelineConfig,a=e.props.match.params;e.trigger("pipeline.jenkins",{store:e.store,defaultValue:(0,E.toJS)(n.spec.pipeline.jenkinsfile),onCancel:r,params:a,success:function(){var t=a.devops,r=a.name;localStorage.removeItem("".concat(globals.user.username,"-").concat(t,"-").concat(r)),e.handleRefresh()}})},e.getData=(0,s.default)(o.default.mark((function t(){var r,n;return o.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=e.props.match.params,n=decodeURIComponent(r.name),t.next=4,e.store.getJenkinsFile(w(w({},r),{},{name:n}));case 4:e.store.getActivities(r),e.jenkinsFileMode&&e.handleRefresh();case 6:case"end":return t.stop()}}),t)}))),e.handleRefresh=(0,s.default)(o.default.mark((function t(){var r,n;return o.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=e.props.match.params,n=decodeURIComponent(r.name),t.next=4,e.store.getJenkinsFile(w(w({},r),{},{name:n}),!0);case 4:e.jenkinsFileMode&&e.store.fetchDetailUntilEditModeNull(w(w({},r),{},{name:n})).then((function(t){e.store.detail=t,e.store.setPipelineConfig(t._originData)}));case 5:case"end":return t.stop()}}),t)}))),e.handleRunning=(0,y.default)((0,s.default)(o.default.mark((function t(){var r,n,a,i;return o.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=e.props.match.params,t.next=3,e.store.fetchDetail(r);case 3:n=e.store.detail,a=!(0,b.default)((0,E.toJS)(n.branchNames)),i=!(0,b.default)((0,E.toJS)(n.parameters)),a||i?e.trigger("pipeline.params",{devops:r.devops,cluster:r.cluster,params:r,branches:(0,E.toJS)(n.branchNames),disabledBrancheNames:(0,E.toJS)(n.disabledBranchNames),parameters:(0,E.toJS)(n.parameters),success:function(){e.props.rootStore.routing.push("./activity")}}):e.handleRunSubmit();case 7:case"end":return t.stop()}}),t)}))),500),e.handleRunSubmit=function(){var t=(0,s.default)(o.default.mark((function t(r,n){var a,i,l,s;return o.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=e.store.detail,i=e.props.match.params,l=i.devops,s=i.cluster,t.next=4,e.store.runBranch({name:a.name,branch:n,parameters:r,cluster:s,devops:l});case 4:e.props.rootStore.routing.push("./activity");case 5:case"end":return t.stop()}}),t)})));return function(e,r){return t.apply(this,arguments)}}(),e}return(0,c.default)(n,[{key:"componentDidMount",value:function(){!this.isMultibranch&&this.editable?this.getData():this.props.rootStore.routing.push("./activity")}},{key:"renderBtnGroup",value:function(){if(this.editable)return D.default.createElement("div",{className:k.default.pipelineCard__btnGroup},"json"===this.jenkinsFileMode?D.default.createElement(h.Tooltip,{content:t("JENKINS_UNAVAILABLE")},D.default.createElement(h.Button,{className:k.default["btn-disabled"]},t("EDIT_JENKINSFILE"))):D.default.createElement(h.Button,{onClick:this.handleJenkinsFileModal},t("EDIT_JENKINSFILE")),"raw"===this.jenkinsFileMode?D.default.createElement(h.Tooltip,{content:t("JENKINS_UNAVAILABLE")},D.default.createElement(h.Button,{className:k.default["btn-disabled"]},t("EDIT_PIPELINE"))):D.default.createElement(h.Button,{onClick:this.handleEditorPipelineModal},t("EDIT_PIPELINE")),D.default.createElement(h.Button,{type:"control",onClick:this.handleRunning},t("RUN")))}},{key:"renderPipeLineContent",value:function(){var e=this.store.pipelineJsonData,r=e.pipelineJson;return e.isLoading?D.default.createElement(h.Loading,{spinning:!0},D.default.createElement("div",{className:k.default.pipelineCard})):this.jenkinsFileMode&&"raw"===this.jenkinsFileMode?D.default.createElement(v.default,{desc:t("JENKINS_UNAVAILABLE")},this.editable&&D.default.createElement(D.default.Fragment,null,D.default.createElement(h.Button,{onClick:this.handleJenkinsFileModal,disabled:"json"===this.jenkinsFileMode},t("EDIT_JENKINSFILE")),D.default.createElement(h.Button,{type:"control",onClick:this.handleRunning},t("RUN")))):r&&"failure"===r.result||!this.isValidated?D.default.createElement(v.default,{desc:t("INVALID_JENKINSFILE_TIP")},this.editable&&D.default.createElement(D.default.Fragment,null,D.default.createElement(h.Button,{onClick:this.handleJenkinsFileModal,disabled:"json"===this.jenkinsFileMode},t("EDIT_JENKINSFILE")),D.default.createElement(h.Button,{type:"control",onClick:this.handleRunning},t("RUN")))):(0,b.default)((0,E.toJS)(r))||!this.jenkinsFile?D.default.createElement(v.default,{desc:t("NO_PIPELINE_CONFIG_FILE_TIP")},this.editable&&D.default.createElement(D.default.Fragment,null,D.default.createElement(h.Button,{onClick:this.handleJenkinsFileModal,disabled:"json"===this.jenkinsFileMode},t("EDIT_JENKINSFILE")),D.default.createElement(h.Button,{type:"control",onClick:this.handlePipelineModal,disabled:"raw"===this.jenkinsFileMode},t("EDIT_PIPELINE")))):D.default.createElement("div",{className:k.default.pipelineCard},D.default.createElement("div",{className:k.default.pipelineCard__toolbar},this.renderBtnGroup()),D.default.createElement("div",{className:k.default.pipelineCard__main},D.default.createElement(g.default,{jsonData:r})))}},{key:"render",value:function(){return D.default.createElement("div",null,this.renderPipeLineContent())}},{key:"enabledActions",get:function(){var e=this.props.match.params,t=e.cluster,r=e.devops;return globals.app.getActions({module:"pipelines",cluster:t,devops:r})}},{key:"editable",get:function(){return this.enabledActions.includes("edit")}},{key:"jenkinsFileMode",get:function(){return this.store.pipelineConfig.metadata.annotations["pipeline.devops.kubesphere.io/jenkinsfile.edit.mode"]}},{key:"isValidated",get:function(){return"failure"!==this.store.pipelineConfig.metadata.annotations["pipeline.devops.kubesphere.io/jenkinsfile.validate"]}},{key:"jenkinsFile",get:function(){var e=this.store.pipelineConfig;return(0,E.toJS)(e.spec.pipeline.jenkinsfile)}},{key:"isMultibranch",get:function(){var e=this.props.detailStore;return(0,E.toJS)(e.detail.isMultiBranch)}}]),n}(D.default.Component))||l)||l)||l;r.default=P},5074:function(e,t,r){e.exports={pipelineCard:"_1QFjNwGDuN8t9MAIvO2DoY",pipelineCard__toolbar:"_1fCHzREeVMKbCgIC2LzrXb",icon:"_3lL8K1nNCnwDbe_zgSfsdL","btn-disabled":"VB_cSYTGpvaW0GPCUnagO",pipelineCard__btnGroup:"_2Q4jPcuRq7sl6FH05oON1Q",pipelineCard__main:"zhBNotW1xoiqvp-fuAnWt"}},5075:function(e,r,n){"use strict";n(15);var a=n(20);n(5),n(84),n(16),n(4),n(23),n(24),n(17),n(85),n(62),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,n(45),n(5),n(84),n(28),n(42),n(16),n(4),n(22),n(23),n(57),n(24),n(17),n(85),n(62);var o=a(n(43));n(41);var i,l=a(n(44)),s=a(n(36)),u=a(n(37)),c=a(n(55)),d=a(n(56)),f=a(n(51)),p=n(186),h=a(n(963)),m=a(n(1125)),v=a(n(800)),g=a(n(63)),y=n(14),b=n(239),E=a(n(0)),S=n(791),D=a(n(5076));function _(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,f.default)(e);if(t){var a=(0,f.default)(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return(0,d.default)(this,r)}}var k=(0,b.inject)("rootStore","detailStore")(i=(0,b.observer)(i=(0,S.trigger)(i=function(e){(0,c.default)(n,e);var r=_(n);function n(){var e;(0,s.default)(this,n);for(var a=arguments.length,i=new Array(a),u=0;u0,s={total:n,page:a,limit:o},u=(0,h.default)(i,"page","workspace");return l&&!i.page?f.default.createElement(w.default,{name:this.name}):f.default.createElement(O.default,{data:(0,v.toJS)(t),columns:this.getColumns(),rowKey:"displayName",filters:u,pagination:s,isLoading:r,onFetch:this.handleFetch,hideSearch:!0})}},{key:"isRuning",get:function(){var e=(0,p.default)((0,v.toJS)(this.store),"pullRequestList.data",[]).filter((function(e){var t=(0,p.default)(e,"latestRun.state");return t&&"FINISHED"!==t&&"PAUSED"!==t}));return!(0,m.default)(e)}},{key:"routing",get:function(){return this.props.rootStore.routing}},{key:"prefix",get:function(){var e=this.props.match.params,t=e.workspace,r=e.devops,n=e.name,a=e.cluster;return"/".concat(t,"/clusters/").concat(a,"/devops/").concat(r,"/pipelines/").concat(n)}}]),n}(f.default.Component))||o)||o;r.default=I},5078:function(e,t,r){e.exports={itemNameDisabled:"_1imWThkNtbXZSBAEQgwMK"}},5079:function(e,r,n){"use strict";var a=n(20);n(12),n(5),n(11),n(6),n(84),n(73),n(48),n(16),n(9),n(13),n(10),n(4),n(23),n(24),n(17),n(85),n(62),n(64),n(188),n(136),n(7),n(110),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,n(12),n(45),n(5),n(11),n(6),n(84),n(73),n(28),n(48),n(42),n(16),n(34),n(15),n(9),n(13),n(10),n(4),n(22),n(23),n(57),n(24),n(17),n(85),n(62),n(64),n(188),n(7),n(110);var o=a(n(61)),i=a(n(43));n(41);var l,s=a(n(44)),u=a(n(30)),c=a(n(36)),d=a(n(37)),f=a(n(55)),p=a(n(56)),h=a(n(51)),m=a(n(0)),v=a(n(26)),g=a(n(189)),y=a(n(800)),b=a(n(63)),E=n(433),S=n(14),D=n(244),_=n(239),k=n(186),O=a(n(240)),w=n(52),N=a(n(921)),P=n(434),R=n(1144),C=n(791),I=a(n(796)),L=a(n(963)),T=a(n(960));function A(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function j(e){for(var t=1;t5242880)&&(this.stepLogData.hasMore=!1,this.stepLogData.log+="\n\n***************************************************************** \n* * \n* The log is too large, please download it to view the details. *\n* * \n***************************************************************** \n ");case 9:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})}]),n}(n(r(323)).default),i=(0,v.default)(o.prototype,"stepLogData",[y.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{log:"",start:0,hasMore:!1}}}),l=(0,v.default)(o.prototype,"handleResetStepLog",[y.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(){e.stepLogData={log:"",start:0,hasMore:!1}}}}),o);t.default=E},5090:function(e,r,n){"use strict";n(15);var a=n(20);n(5),n(86),n(9),n(4),n(23),n(24),n(17),n(136),n(110),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,n(45),n(5),n(86),n(42),n(9),n(4),n(22),n(23),n(57),n(24),n(17),n(136),n(110);var o=a(n(43));n(41);var i,l,s=a(n(44)),u=a(n(36)),c=a(n(37)),d=a(n(55)),f=a(n(56)),p=a(n(51)),h=a(n(49)),m=a(n(0)),v=n(14),g=n(239),y=n(186),b=a(n(5091));function E(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,p.default)(e);if(t){var a=(0,p.default)(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return(0,f.default)(this,r)}}var S=(0,g.observer)((l=function(e){(0,d.default)(n,e);var r=E(n);function n(){var e;(0,u.default)(this,n);for(var a=arguments.length,i=new Array(a),l=0;l0&&void 0!==arguments[0]&&arguments[0],t=this.props.params;this.store.getRunStatusLogs(t,e)}},{key:"componentDidMount",value:function(){this.handleGetLogs()}},{key:"componentWillUnmount",value:function(){clearInterval(this.logRefreshInterval)}},{key:"render",value:function(){var e=this.store.runDetailLogs;return m.default.createElement("div",{className:b.default.logs_container},m.default.createElement("div",{className:b.default.log,ref:this.ref},this.renderOperations(),m.default.createElement("pre",{className:b.default.LogItem_content},e)))}},{key:"isLogFinish",get:function(){if(this.store.overflow)return!0;for(var e=this.store.runDetailLogs.split("\n"),t=e.length-1,r=0,n=!1;r<2;)n=e[t]&&e[t].indexOf("Finished")>-1,t--,r++;return n}}]),n}(m.default.Component),(0,h.default)(l.prototype,"getPipelineIndexLog",[v.action],Object.getOwnPropertyDescriptor(l.prototype,"getPipelineIndexLog"),l.prototype),(0,h.default)(l.prototype,"isLogFinish",[v.computed],Object.getOwnPropertyDescriptor(l.prototype,"isLogFinish"),l.prototype),i=l))||i;r.default=S},5091:function(e,t,r){e.exports={logs_container:"_1a-zP9_2YDUkWD-6LJkS9c",log:"_7SKszFrl5ToySuqKb58u_",operations:"QVvKuNdaSqvfGkf6g4REX",split:"q-xnWS4mmEgTxiHJB-Mje"}},5092:function(e,t,r){e.exports={pipelineCard:"_15Io83PX3ThKRG-aELylW-",pipelineCard__tab:"_3618Tf5Fsa2rvv2BDhJxih",pipelineCard_content:"bIQp-H7_AePWnP-iqbWXS",pipelineCard_pipeline_content:"d8kWWAlfJhFL8fYgY8Nvk",pipelineCard__toolbar:"_2-2rg2XNK4zLkGIDllkyh",icon:"_3Kbhn58kNwzcDj56uGaotu",pipelineCard__btnGroup:"_1s6pPyPc-w54dHQomyI86W",pipelineCard__main:"_2jX4VRaYREStNMY3wXj5EN",footer:"_2trt1J67jrYmriGPqLKZDV",running_tips:"_2KW8xeUQEVlEv60ExnekFN",runningIcon:"_1UVLjnaxVf-hr4kl8rQxkm",rotate:"Dacx0RATJmtvUY10xbkIq",QueuedIcon:"_2RuQE76Kv9oKvrUnVEZMkX",breath:"_1GD36aiJGyeNr3qUQuodKa",card:"_118Qk5exDgXSaS3rqlSgX0",title:"CqPIRnLO2E1dTMGYHHyNQ",desc:"_2SC0de7wLtaphQs2_5YQYo"}},5093:function(e,r,n){"use strict";var a=n(20);n(12),n(5),n(11),n(6),n(48),n(16),n(9),n(13),n(10),n(4),n(23),n(24),n(17),n(62),n(188),n(7),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,n(12),n(45),n(5),n(11),n(6),n(28),n(48),n(42),n(16),n(34),n(15),n(9),n(13),n(10),n(4),n(23),n(57),n(24),n(17),n(62),n(188),n(7);var o,i=a(n(30)),l=a(n(36)),s=a(n(37)),u=a(n(55)),c=a(n(56)),d=a(n(51)),f=a(n(0)),p=a(n(189)),h=n(14),m=n(239),v=n(244),g=n(52),y=a(n(796)),b=a(n(963));function E(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function S(e){for(var t=1;t1e3?parseFloat(r.totalCode/1e3).toFixed(2):r.totalCode,f=r.totalCode>1e3?"K":"";return d.default.createElement("div",{className:b.default.otherCards},d.default.createElement(y.default,{title:t("CODE_LINE_COUNT"),value:c,unit:f,url:"".concat(e.sonarqubeOrigin,"/component_measures?id=").concat(u,"&metric=ncloc")}),d.default.createElement(y.default,{hasIcon:!0,title:t("BUG_PL"),value:a,unit:"",resultClass:n,url:"".concat(e.sonarqubeOrigin,"/project/issues?id=").concat(u,"&resolved=false&types=BUG")}),d.default.createElement(y.default,{hasIcon:!0,title:t("VULNERABILITY_PL"),value:i,unit:"",resultClass:o,url:"".concat(e.sonarqubeOrigin,"/project/issues?id=").concat(u,"&resolved=false&types=VULNERABILITY")}),d.default.createElement(y.default,{hasIcon:!0,title:t("CODE_SMELL_PL"),value:l,unit:"",url:"".concat(e.sonarqubeOrigin,"/project/issues?id=").concat(u,"&resolved=false&types=CODE_SMELL")}),d.default.createElement(y.default,{hasIcon:!0,title:t("COVERAGE"),value:s,unit:"%",url:"".concat(e.sonarqubeOrigin,"/component_measures?id=").concat(u,"&metric=coverage")}))},e.renderLogo=function(){return d.default.createElement("span",{onClick:e.goToSonarqube,className:b.default.logo})},e}return(0,l.default)(n,[{key:"render",value:function(){return this.props.loading?null:d.default.createElement(m.default,{title:t("TEST_RESULTS"),operations:this.renderLogo()},d.default.createElement("div",{className:b.default.content},this.renderTotalResult(),this.renderOtherResults()))}},{key:"sonarqubeOrigin",get:function(){var e=this.props.detail.sonarqubeDashboardUrl;return(0,h.default)(globals,"config.devops.sonarqubeURL")||(0,g.parseUrl)(e).origin}}]),n}(d.default.Component);S.propTypes={detail:f.default.object,loading:f.default.bool};var D=S;r.default=D},5097:function(e,t,r){"use strict";r(15);var n=r(20);r(4),r(23),r(17),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r(45),r(42),r(4),r(319),r(23),r(57),r(17);var a=n(r(36)),o=n(r(37)),i=n(r(55)),l=n(r(56)),s=n(r(51)),u=n(r(0)),c=r(186),d=n(r(1988));function f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,s.default)(e);if(t){var a=(0,s.default)(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return(0,l.default)(this,r)}}var p=["A","B","C","D"],h=function(e){(0,i.default)(r,e);var t=f(r);function r(){return(0,a.default)(this,r),t.apply(this,arguments)}return(0,o.default)(r,[{key:"render",value:function(){var e=this.props,t=e.hasIcon,r=e.title,n=e.value,a=e.resultClass,o=e.unit,i=e.url,l=p[parseInt(a,10)-1];return u.default.createElement("div",{className:d.default.resultCard},u.default.createElement("p",{className:d.default.title},t?u.default.createElement(c.Icon,{name:"debug",size:20}):null,r,a?u.default.createElement("span",{className:d.default[l]},l):null),u.default.createElement("p",{className:d.default.value},i?u.default.createElement("a",{href:i,target:"_blank",rel:"noreferrer noopener"},u.default.createElement("span",null,n)):u.default.createElement("span",null,n),u.default.createElement("span",{className:d.default.unit},o)))}}]),r}(u.default.PureComponent);t.default=h,h.defaultProps={hasIcon:!1,title:"-",value:0,url:""}},5098:function(e,r,n){"use strict";n(15);var a=n(20);n(18),n(4),n(23),n(17),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,n(45),n(18),n(42),n(4),n(23),n(57),n(17);var o=a(n(36)),i=a(n(37)),l=a(n(55)),s=a(n(56)),u=a(n(51)),c=a(n(0)),d=a(n(1)),f=a(n(26)),p=a(n(801)),h=n(52),m=a(n(5099)),v=a(n(1989)),g=a(n(1460));function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,u.default)(e);if(t){var a=(0,u.default)(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return(0,s.default)(this,r)}}var b=function(e){(0,l.default)(n,e);var r=y(n);function n(e){var a;(0,o.default)(this,n),(a=r.call(this,e)).showMore=function(){a.setState({showMore:!0})},a.renderTitle=function(){var e=a.props.detail,r=e.critical,n=e.major,o=e.minor,i=e.info,l=e.blocker;return c.default.createElement("div",{className:g.default.header},c.default.createElement("span",{className:g.default.title},t("ISSUE_PL")),c.default.createElement("div",{className:g.default.details},c.default.createElement("span",null,c.default.createElement(v.default,{errorClass:"blocker"}),l||0),c.default.createElement("span",null,c.default.createElement(v.default,{errorClass:"critical"}),r||0),c.default.createElement("span",null,c.default.createElement(v.default,{errorClass:"major"}),n||0),c.default.createElement("span",null,c.default.createElement(v.default,{errorClass:"minor"}),o||0),c.default.createElement("span",null,c.default.createElement(v.default,{errorClass:"info"}),i||0)))},a.renderIssue=function(e,t){var r=a.props.issues;if(a.state.showMore&&t>10)return null;var n=0===t||e.component!==r[t-1].component;return c.default.createElement(m.default,{key:t,hasTitle:n,issue:e,origin:a.sonarqubeOrigin})},a.renderMoreBtn=function(){return a.state.showMore?null:c.default.createElement("p",{className:g.default.titleShowMore},t("DISPLAY_ONLY_LAST_TEN"),",",c.default.createElement("span",{onClick:a.showMore},t("DISPLAY_ALL")))};var i=e.issues.length<=10;return a.state={showMore:i},a}return(0,i.default)(n,[{key:"sonarqubeOrigin",get:function(){var e=this.props.detail.sonarqubeDashboardUrl;return(0,f.default)(globals,"config.devops.sonarqubeURL")||(0,h.parseUrl)(e).origin}}]),(0,i.default)(n,[{key:"render",value:function(){var e=this,r=this.props,n=r.loading,a=r.issues;return n?null:a.length?c.default.createElement(p.default,{title:this.renderTitle(),operations:this.renderMoreBtn()},c.default.createElement("div",{className:g.default.content},a.map((function(t,r){return e.renderIssue(t,r)})),this.state.showMore?null:c.default.createElement("div",{className:g.default.displayAll,onClick:this.showMore},t("DISPLAY_ALL")))):null}}]),n}(c.default.Component);b.propTypes={issues:d.default.array,loading:d.default.bool},b.defaultProps={issues:[]};var E=b;r.default=E},5099:function(e,r,n){"use strict";n(15);var a=n(20);n(5),n(4),n(23),n(17),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,n(45),n(5),n(42),n(4),n(23),n(57),n(17);var o=a(n(36)),i=a(n(37)),l=a(n(55)),s=a(n(56)),u=a(n(51)),c=a(n(0)),d=a(n(1)),f=a(n(3)),p=n(186),h=a(n(1989)),m=a(n(1460));function v(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,u.default)(e);if(t){var a=(0,u.default)(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return(0,s.default)(this,r)}}var g=function(e){(0,l.default)(n,e);var r=v(n);function n(){var e;(0,o.default)(this,n);for(var a=arguments.length,i=new Array(a),l=0;l30&&r<=80?c.default.createElement("span",null,c.default.createElement("span",{className:(0,d.default)(f.default.icon,f.default.subhealth,n)}),t("SUB_HEALTHY")):c.default.createElement("span",null,c.default.createElement("span",{className:(0,d.default)(f.default.icon,f.default.health,n)}),t("HEALTHY"))}}]),n}(c.default.Component);r.default=h},1459:function(e,r,n){"use strict";n(15);var a=n(157),o=n(20);n(4),n(23),n(17),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,n(45),n(42),n(4),n(23),n(57),n(17);var i=o(n(30)),l=o(n(36)),s=o(n(37)),u=o(n(55)),c=o(n(56)),d=o(n(51)),f=a(n(0)),p=o(n(1)),h=o(n(3)),m=o(n(5049));function v(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,d.default)(e);if(t){var a=(0,d.default)(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return(0,c.default)(this,r)}}var g=function(e){(0,u.default)(n,e);var r=v(n);function n(){return(0,l.default)(this,n),r.apply(this,arguments)}return(0,s.default)(n,[{key:"render",value:function(){var e=this.props,r=e.className,n=e.type,a=e.label,o=e.hasLabel,l=e.noBolder;return n?f.default.createElement("span",{className:(0,h.default)(m.default.status,(0,i.default)({},m.default.noBolder,l))},f.default.createElement("span",{className:(0,h.default)(m.default.status_icon,m.default[n.toLowerCase()],r)}),o&&t(a.toUpperCase())):"-"}}]),n}(f.PureComponent);r.default=g,g.propTypes={label:p.default.string,className:p.default.string,type:p.default.string,hasLabel:p.default.bool},g.defaultProps={type:"",label:"",hasLabel:!0}},1460:function(e,t,r){e.exports={blocker:"_13DzfBLFOcl0PkbaYOX_IL",rotate:"Qt2BndoO7EUdKwtN-hOtc",critical:"_34RT_yUY674mzuDu7R7SnE",info:"_293s8VCmuIgat-ocKVjiz8",major:"II1m5ywwwPjr4B9x4osmH",minor:"_1vir6Nk49PjpnZlBgElG-m",codeStatus:"_3vyWO-g1aIhi8WEUkqeDoi",status:"_2nb5BAvBLIBf1XeSRTohxv",type:"RSzYbc7X9wi3VPpAnBKvl",header:"_21iug7B2oBnbaMYUk1cbE-",title:"_3HJdy7bqoFMJ9OL9oD6fme",details:"_1EFtU6SxsqVpw9uEq6R7yq",content:"A-eoLIpA2_gligbYaPB7S",fileTitle:"nIhyXf2HKwkqzKczKwmLl",errorCard:"_3p5QrKOD_gQ7OYFVdM2p43",message:"_30aQZH0JvWk6-pz3ASP2ED","card-blocker":"_10H_dISVCyQUnX7DzaCw5t","card-critical":"_8-u2ig-VJ7fMfEopMHsl0","card-minor":"_3bLDFrnmI5omxaXpuslvI","card-info":"Dz7-_HLWnP9yOJx6SSb6H",titleShowMore:"_35etf_t4zY_L3qi074fSZV",displayAll:"_21pNhW5rKygDrZfFUrzhbB"}},1984:function(e,t,r){"use strict";r(15);var n=r(20);r(16),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r(16);var a=r(186),o=n(r(321)),i=n(r(0)),l=r(52),s=r(72),u=r(143),c=n(r(5048)),d=function(e){var t=(0,o.default)(e.clustersDetail,"name"),r=e.destination,n=void 0===r?{}:r;(0,u.useEventValue)(u.eventKeys.HOST_CLUSTER_CHANGE,"");var d=t[(0,l.inCluster2Default)(n.name)]||{},f=n.namespace||"";return i.default.createElement("div",{className:c.default.wrapper},i.default.createElement("div",{className:c.default.tags},i.default.createElement(a.Tag,{key:d.name,type:s.CLUSTER_GROUP_TAG_TYPE[d.group]},i.default.createElement(a.Icon,{name:s.CLUSTER_PROVIDER_ICON[d.provider]||"kubernetes",size:16,type:"light"}),d.name?(0,l.showNameAndAlias)((0,l.inCluster2Default)(d.name),"cluster"):"default"),i.default.createElement("span",null,i.default.createElement(a.Icon,{name:"project",size:16,type:"dark"}),(0,l.showNameAndAlias)(f,"project"))))};t.default=d},1985:function(e,t,r){e.exports={table:"_2kRLkEVOqCUKzBIAdE_83T",card_content:"_3kRPEz6by7LmYIGQYPiu1y",icon:"_1SjrfgQTyLeQm9FP_xJP27",info:"_3HKXpm5f2PQvmQUhwyH_WF",name:"_2fx0MeyPaBwvI7QGcSuPS_",desc:"_3ReQfIWiUSifiPUFAe05f0"}},1986:function(e,r,n){"use strict";var a=n(20);n(12),n(5),n(11),n(6),n(18),n(87),n(48),n(16),n(27),n(9),n(13),n(10),n(4),n(23),n(24),n(17),n(136),n(75),n(7),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,n(12),n(45),n(5),n(11),n(6),n(160),n(18),n(28),n(87),n(48),n(191),n(42),n(16),n(159),n(27),n(34),n(15),n(9),n(13),n(10),n(4),n(319),n(22),n(23),n(57),n(17),n(75),n(7);var o=a(n(30)),i=a(n(43)),l=a(n(58));n(41);var s,u,c,d,f,p,h,m,v,g,y,b,E,S,D=a(n(44)),_=a(n(65)),k=a(n(36)),O=a(n(37)),w=a(n(88)),N=a(n(55)),P=a(n(56)),R=a(n(51)),C=a(n(49)),I=(a(n(66)),a(n(189))),L=a(n(60)),T=a(n(26)),A=a(n(63)),j=n(909),x=n(14),M=a(n(240)),U=n(52),F=a(n(323)),B=a(n(960));function Y(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function H(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"default.txt",r=new Blob([e],{type:"text/plain;charset=utf-8"});(0,j.saveAs)(r,t)},e.pipelineStore=new B.default,e}return(0,O.default)(z,[{key:"getUrl",value:function(e){var t=e.cluster,r=e.devops,n=e.name;return"".concat(this.getDevopsUrlV2({cluster:t,devops:r}),"pipelines/").concat(decodeURIComponent(n),"/")}},{key:"getRunUrl",value:function(e){var t=e.cluster,r=e.devops,n=e.name,a=e.branch,o=e.runId;return"".concat(this.getUrl({cluster:t,devops:r,name:n})).concat(a?"branches/".concat(encodeURIComponent(a),"/"):"","runs/").concat(o,"/")}},{key:"getCommits",value:(F=(0,D.default)(i.default.mark((function e(t){var r,n,a,o,s,u,c,d,f,p,h,m;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.name,n=t.branch,a=t.runName,o=t.devops,t.workspace,s=t.cluster,u=(0,l.default)(t,["name","branch","runName","devops","workspace","cluster"]),r=decodeURIComponent(r),c=u.page,d=u.limit,f=void 0===d?10:d,this.runDetail.id){e.next=6;break}return e.next=6,this.getRunDetail({devops:o,cluster:s,runName:a});case 6:return this.commitsList.isLoading=!0,e.next=9,request.get("".concat(this.getRunUrl({cluster:s,devops:o,name:r,branch:n,runId:this.runDetail.id})),{start:(c-1)*f||0,limit:f});case 9:p=e.sent,h=[],p.changeSet&&(0,L.default)(p.changeSet)?h=p.changeSet.map((function(e){return{commitId:(0,T.default)(e,"commitId"),startTime:(0,T.default)(e,"timestamp"),url:(0,T.default)(e,"url"),author:(0,T.default)(e,"author.fullName"),title:(0,T.default)(e,"msg")}})):p.pullRequest&&(m={commitId:(0,T.default)(p,"commitId"),startTime:(0,T.default)(p,"startTime"),url:(0,T.default)(p,"pullRequest.url"),author:(0,T.default)(p,"pullRequest.author"),title:(0,T.default)(p,"pullRequest.title")},h.push(m)),this.commitsList={data:h,limit:f,total:h.length,page:parseInt(c,10)||1,filters:(0,I.default)(u,"devops"),isLoading:!1,selectedRowKeys:[]};case 13:case"end":return e.stop()}}),e,this)}))),function(e){return F.apply(this,arguments)})},{key:"getArtifacts",value:(C=(0,D.default)(i.default.mark((function e(t){var r,n,a,o,s,u,c,d,f,p;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.devops,n=t.name,a=t.runName,o=t.branch,s=t.cluster,t.workspace,u=(0,l.default)(t,["devops","name","runName","branch","cluster","workspace"]),n=decodeURIComponent(n),c=u.page,d=u.limit,f=void 0===d?10:d,this.runDetail.id){e.next=6;break}return e.next=6,this.getRunDetail({devops:r,cluster:s,runName:a});case 6:return this.artifactsList.isLoading=!0,e.next=9,request.get("".concat(this.getRunUrl({cluster:s,devops:r,name:n,branch:o,runId:this.runDetail.id}),"artifacts/"),{start:(c-1)*f||0,limit:f});case 9:p=e.sent,this.artifactsList={data:p||[],pipeline:n,pipelineRun:a,total:p.length,limit:f,page:parseInt(c,10)||1,filters:(0,I.default)(u,"devops"),isLoading:!1,selectedRowKeys:[]};case 11:case"end":return e.stop()}}),e,this)}))),function(e){return C.apply(this,arguments)})},{key:"getNodesStatus",value:(R=(0,D.default)(i.default.mark((function e(t){var r,n,a,o,l,s,u=this;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.devops,n=t.name,a=t.branch,o=t.cluster,n=decodeURIComponent(n),this.getNodesStatusLoading=!0,e.next=5,request.get("".concat(this.getBaseUrl({cluster:o,namespace:r}),"pipelineruns/").concat(this.runDetail.name,"/nodedetails"));case 5:if(l=e.sent,(0,L.default)(l)){e.next=9;break}return this.getNodesStatusLoading=!1,e.abrupt("return");case 9:s=!(0,A.default)(l),this.nodesStatus=s?l.reduce((function(e,t,r){if(t.causeOfBlockage=u.runDetail.causeOfBlockage,"STAGE"===t.type){if(l[r+1]&&"PARALLEL"===l[r+1].type)return e.push([]),e;e.push(t)}else Array.isArray(e[e.length-1])?e[e.length-1].push(t):e.push([t]);return e}),[]):[],(!l||l.length<1)&&this.getRunStatusLogs({devops:r,name:n,branch:a,runId:this.runDetail.id,cluster:o}),this.getNodesStatusLoading=!1;case 13:case"end":return e.stop()}}),e,this)}))),function(e){return R.apply(this,arguments)})},{key:"getRunDetail",value:(P=(0,D.default)(i.default.mark((function e(t){var r,n,a,o,l=this;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.devops,n=t.cluster,a=t.runName,e.next=3,request.get("".concat(this.getBaseUrl({cluster:n,namespace:r}),"pipelineruns/").concat(a),null,null,function(){var e=(0,D.default)(i.default.mark((function e(r){var n;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(404!==r.status){e.next=6;break}return e.next=3,l.pipelineStore.fetchDetail(t);case 3:return n=e.sent,l.runDetail=n.latestRun||{},e.abrupt("return",(0,x.toJS)(l.runDetail));case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());case 3:o=e.sent,this.runDetail=H(H({},(0,U.safeParseJSON)((0,T.default)(o,"metadata.annotations.['devops.kubesphere.io/jenkins-pipelinerun-status']"))),{},{name:(0,T.default)(o,"metadata.name"),_originData:o}),this.isLoading=!1;case 6:case"end":return e.stop()}}),e,this)}))),function(e){return P.apply(this,arguments)})},{key:"replay",value:(s=(0,D.default)(i.default.mark((function e(t,r){var n,a,o,l;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.devops,a=t.name,o=t.branch,l=t.cluster,e.next=3,request.post("".concat(this.getRunUrl({cluster:l,devops:n,name:a,branch:o,runId:r||this.runDetail.id}),"replay"));case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e,this)}))),function(e,t){return s.apply(this,arguments)})},{key:"getRunStatusLogs",value:(o=(0,D.default)(i.default.mark((function e(t){var r,n,a,o,l,s,u,c,d,f,p=this,h=arguments;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.devops,n=t.name,a=t.branch,o=t.runId,l=t.cluster,h.length>1&&void 0!==h[1]&&h[1]&&(this.logSize=0,this.runStartDetailLogs="",this.hasMore=!1),!this.overflow){e.next=11;break}return e.next=6,request.get("".concat(this.getRunUrl({cluster:l,devops:r,name:n,branch:a,runId:o}),"log/?thresholdInKB=150"));case 6:s=e.sent,this.hasMore=!0,this.lastDetailLogs="\n\n*****************************************************************\n* The log is too large, please download it to view the details. *\n* *\n* The following is the latest 150KB log. *\n*****************************************************************\n\n".concat(s),e.next=20;break;case 11:return u=this.logSize,c=u?"?start=".concat(u):"",e.next=15,request.get("".concat(this.getRunUrl({cluster:l,devops:r,name:n,branch:a,runId:o}),"log/").concat(c),{},{headers:{"x-with-headers":!0}});case 15:d=e.sent,(f=d.headers.get("x-text-size"))?(this.logSize=Number(f),this.hasMore=Boolean(d.headers.get("x-more-data"))):(this.logSize+=Number(d.headers.get("x-text-size")),this.hasMore=Boolean(d.headers.get("x-more-data"))),this.overflow=Boolean(d.headers.get("X-File-Size-Limit-Out"))||this.logSize>=10485760,d.text().then((function(e){if(0!==u){var t=p.runStartDetailLogs.slice(-100).split("\n");t.length>=2?(t.pop(),t.length&&t.pop().startsWith("Finished:")||(p.runStartDetailLogs+=e)):p.runStartDetailLogs+=e}else p.runStartDetailLogs=e}));case 20:case"end":return e.stop()}}),e,this)}))),function(e){return o.apply(this,arguments)})},{key:"handleJumpFullLogs",value:function(e){var t=e.devops,r=e.name,n=e.branch,a=e.cluster;r=decodeURIComponent(r);var o=(0,U.getClusterUrl)("".concat(window.location.protocol,"//").concat(window.location.host,"/").concat(this.getRunUrl({cluster:a,devops:t,name:r,branch:n,runId:this.runDetail.id}),"log/?start=0"));window.open(o)}},{key:"handleDownloadLogs",value:(a=(0,D.default)(i.default.mark((function e(t){var r,n,a,o,l,s;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=t.devops,n=t.name,a=t.branch,o=t.cluster,n=decodeURIComponent(n),l=(0,U.getClusterUrl)("".concat(window.location.protocol,"//").concat(window.location.host,"/").concat(this.getRunUrl({cluster:o,devops:r,name:n,branch:a,runId:this.runDetail.id}),"log/?start=0&download=true")),(s=document.createElement("a")).href=l,s.download="".concat(n,"-").concat(this.runDetail.id,"-").concat(this.runDetail.name,".log"),s.headers={"x-add-res-header":JSON.stringify({"Content-Disposition":"attachment; filename=".concat(n,"-").concat(this.runDetail.name,".log")})},s.click();case 8:case"end":return e.stop()}}),e,this)}))),function(e){return a.apply(this,arguments)})},{key:"handleProceed",value:(n=(0,D.default)(i.default.mark((function e(r){var n,a,o,l,s,u,c,d;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=r.parameters,a=r.devops,o=r.name,l=r.nodeId,s=r.branch,u=r.cluster,c=r.stepId,d=r.inputId,e.next=3,request.post("".concat(this.getRunUrl({cluster:u,devops:a,name:o,branch:s,runId:this.runDetail.id}),"nodes/").concat(l,"/steps/").concat(c,"/"),{id:d,parameters:n},null,(function(e){if(400===e.status)return M.default.error({content:t("Sorry, you don't have the permission to do this.")}),!0}));case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})},{key:"handleBreak",value:(r=(0,D.default)(i.default.mark((function e(t){var r,n,a,o,l,s,u;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.devops,n=t.name,a=t.nodeId,o=t.branch,l=t.stepId,s=t.inputId,u=t.cluster,e.next=3,request.post("".concat(this.getRunUrl({cluster:u,devops:r,name:n,branch:o,runId:this.runDetail.id}),"nodes/").concat(a,"/steps/").concat(l,"/"),{id:s,abort:!0});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e,this)}))),function(e){return r.apply(this,arguments)})},{key:"runDetailLogs",get:function(){return this.runStartDetailLogs+this.lastDetailLogs}}]),z}(F.default),u=(0,C.default)(s.prototype,"detail",[x.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),c=(0,C.default)(s.prototype,"devops",[x.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),d=(0,C.default)(s.prototype,"commitsList",[x.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{data:[],page:1,limit:10,total:0,order:"",reverse:!1,filters:{},isLoading:!0}}}),f=(0,C.default)(s.prototype,"artifactsList",[x.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{data:[],page:1,limit:10,total:0,order:"",reverse:!1,filters:{},isLoading:!0}}}),p=(0,C.default)(s.prototype,"isLoading",[x.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),h=(0,C.default)(s.prototype,"getNodesStatusLoading",[x.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),m=(0,C.default)(s.prototype,"nodesStatus",[x.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),v=(0,C.default)(s.prototype,"runDetail",[x.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),g=(0,C.default)(s.prototype,"runStartDetailLogs",[x.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),y=(0,C.default)(s.prototype,"logSize",[x.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),b=(0,C.default)(s.prototype,"overflow",[x.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),E=(0,C.default)(s.prototype,"hasMore",[x.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),S=(0,C.default)(s.prototype,"lastDetailLogs",[x.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),(0,C.default)(s.prototype,"runDetailLogs",[x.computed],Object.getOwnPropertyDescriptor(s.prototype,"runDetailLogs"),s.prototype),(0,C.default)(s.prototype,"getCommits",[x.action],Object.getOwnPropertyDescriptor(s.prototype,"getCommits"),s.prototype),(0,C.default)(s.prototype,"getArtifacts",[x.action],Object.getOwnPropertyDescriptor(s.prototype,"getArtifacts"),s.prototype),(0,C.default)(s.prototype,"getNodesStatus",[x.action],Object.getOwnPropertyDescriptor(s.prototype,"getNodesStatus"),s.prototype),(0,C.default)(s.prototype,"getRunDetail",[x.action],Object.getOwnPropertyDescriptor(s.prototype,"getRunDetail"),s.prototype),(0,C.default)(s.prototype,"getRunStatusLogs",[x.action],Object.getOwnPropertyDescriptor(s.prototype,"getRunStatusLogs"),s.prototype),s);r.default=z},1987:function(e,t,r){e.exports={container:"_35WQzILk2k5A-TNfwYc_Yu",dialogTitle:"_1HnTmMa63mLPJxN-kG6XQ8",left:"_2XPYd3NGh15jZRYWm5MNuU",right:"_3bKVu0q_0smLvLQ_xG_Cv5",cutTitle:"ujjupzCK4LMn0keQ15_R8",activeTitle:"_2296EshHppYY33xDrhOYkt",leftTab:"_1kG5fSh5j7HcCSYKps6oTh",leftTab__active:"_1IuH08t3ULSDQt0OqOGwBK",header:"_2Tookjj2Zw9AgDikbYKJgg",stageContainer:"_3GP4euDRBvjXvD0nK9K-r_",logContainer:"onNirjkuD2zuU4-stBH7e",LogItem:"_1HiUEMOLNi-k2C1DaLfIDk",LogItem__title:"_3Mx5xDEpJpN64NOn7P22sS",logitem_status:"wuI80Au-XWNGZUq-w40Ws",LogItem_content:"lOqJTK8ZNeB12AT7uaQXu",logs_container:"_2Vmm2M8PYlz2yPzrtbc7b"}},1988:function(e,t,r){e.exports={content:"_2GZWNwDmCMaUPILAUqPNQf",totalResult:"NBt7KR1xy9O8EawT3vX2",icon:"bz27u9MKO5MCTXeL-tJVR",otherCards:"_1rtnO6pnjP7HJRT0QGouIq",resultCard:"_15y85A7WyXG0tLQtqF7fax",title:"_2m2EwcYwfu9p6-CO4u0fah",value:"_2fh_XN43MPIMM0V9x1RSAV",unit:"_3bIiaxdLQLPwa4eam-lmZ_",success:"z32XC06-_4svuDjqBkmAz",error:"_1knC_oFwHb1CGb5_vEcgo9",A:"_1SiVVmpdCPUHST_165zQf9",B:"_2PpecDw-rYu6sMpW5eRcV",C:"_1cGPrOnT-V5vNe6maN_jp6",D:"_152jN-TAnzt_qQbaldEyqd",logo:"_25dzrJDupH8xequ0ccrNoC"}},1989:function(e,r,n){"use strict";n(15);var a=n(157),o=n(20);n(4),n(23),n(17),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,n(45),n(42),n(4),n(23),n(57),n(17);var i=o(n(36)),l=o(n(37)),s=o(n(55)),u=o(n(56)),c=o(n(51)),d=a(n(0)),f=o(n(1)),p=o(n(3)),h=o(n(1460));function m(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,c.default)(e);if(t){var a=(0,c.default)(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return(0,u.default)(this,r)}}var v=function(e){(0,s.default)(n,e);var r=m(n);function n(){return(0,i.default)(this,n),r.apply(this,arguments)}return(0,l.default)(n,[{key:"render",value:function(){var e=this.props,r=e.errorClass,n=e.className;return d.default.createElement("span",{className:h.default.codeStatus},d.default.createElement("span",{className:(0,p.default)("codequality-icon",h.default[r],n)}),t(r.toUpperCase()))}}]),n}(d.PureComponent);r.default=v,v.propTypes={errorClass:f.default.string,className:f.default.string},v.defaultProps={errorClass:"",className:""}},1990:function(e,r,n){"use strict";n(15);var a=n(157),o=n(20);n(5),n(84),n(18),n(16),n(4),n(23),n(24),n(17),n(85),n(62),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,n(45),n(5),n(84),n(18),n(42),n(16),n(4),n(23),n(57),n(24),n(17),n(85),n(62);var i=o(n(36)),l=o(n(37)),s=o(n(55)),u=o(n(56)),c=o(n(51)),d=a(n(0)),f=n(14),p=n(239),h=n(433),m=n(186),v=o(n(1251)),g=n(1144),y=o(n(5106));function b(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,c.default)(e);if(t){var a=(0,c.default)(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return(0,u.default)(this,r)}}var E=function(e){(0,s.default)(n,e);var r=b(n);function n(){return(0,i.default)(this,n),r.apply(this,arguments)}return(0,l.default)(n,[{key:"renderBaseInfo",value:function(){var e=this.props.detailStore.detail;return d.default.createElement(m.Columns,{className:y.default.baseInfo},d.default.createElement(m.Column,{className:y.default.baseInfo__item},d.default.createElement("div",{className:y.default.dashboardValue},d.default.createElement(v.default,{score:e.weatherScore})),d.default.createElement("div",{className:y.default.dashboardLable},t("HEALTH_STATUS_SCAP"))),this.isMultibranch?d.default.createElement(m.Column,{className:y.default.baseInfo__item},d.default.createElement("div",{className:y.default.dashboardValue},d.default.createElement(g.ReactComponent,{style:{width:"20px",height:"20px"}})," ",e.totalNumberOfBranches||"-"),d.default.createElement("div",{className:y.default.dashboardLable},e.totalNumberOfBranches&&1===e.totalNumberOfBranches?t("BRANCH_SI"):t("BRANCH_PL"))):null,d.default.createElement(m.Column,{className:y.default.baseInfo__item}))}},{key:"renderNavLink",value:function(e){var r=e.name,n=e.title,a=this.props,o=a.detailStore,i=a.sonarqubeStore,l=this.enabledActions.includes("edit");if(!r)return null;if(o&&i){if((!l||this.isMultibranch)&&"pipeline"===r)return null;if(!i.detail.totalStatus&&"code-quality"===r)return null;if(!this.isMultibranch&&"branch"===r)return null;if(!o.detail.totalNumberOfPullRequests&&"pull-request"===r)return null}return d.default.createElement(h.NavLink,{key:r,className:y.default.navItem,activeClassName:y.default.active,to:"".concat(this.props.match.url,"/").concat(r)},t(n))}},{key:"render",value:function(){var e=this,t=this.props.route;return d.default.createElement(d.default.Fragment,null,this.renderBaseInfo(),d.default.createElement("div",{className:y.default.nav},t.routes.map((function(t){return e.renderNavLink(t)}))))}},{key:"enabledActions",get:function(){var e=this.props.match.params,t=e.cluster,r=e.devops;return globals.app.getActions({module:"pipelines",cluster:t,devops:r})}},{key:"isMultibranch",get:function(){var e=this.props.detailStore;return(0,f.toJS)(e.detail.isMultiBranch)}}]),n}(d.Component);E.defaultProps={module:""};var S=(0,p.inject)("rootStore")((0,p.observer)(E));r.default=S},1991:function(e,t,r){"use strict";r(15);var n=r(20);r(5),r(18),r(16),r(4),r(22),r(196),r(23),r(17),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r(45),r(5),r(18),r(42),r(16),r(4),r(22),r(196),r(23),r(57),r(17);var a=n(r(43));r(41);var o,i,l,s,u=n(r(44)),c=n(r(65)),d=n(r(36)),f=n(r(88)),p=n(r(55)),h=n(r(56)),m=n(r(51)),v=n(r(49)),g=(n(r(66)),n(r(60))),y=r(14),b=n(r(105));function E(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,m.default)(e);if(t){var a=(0,m.default)(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return(0,h.default)(this,r)}}var S=(o=function(e){(0,p.default)(r,e);var t=E(r);function r(){var e;(0,d.default)(this,r);for(var n=arguments.length,a=new Array(n),o=0;o=0;return[{dataIndex:"name",title:t("NAME"),search:!0},{dataIndex:"alias",title:t("ALIAS"),search:a}]}}]),n}(E.default.Component))||o)||o;r.default=I},5036:function(e,r,n){"use strict";n(15);var a=n(20);n(12),n(109),n(5),n(16),n(4),n(23),n(17),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,n(12),n(109),n(45),n(5),n(42),n(16),n(4),n(23),n(57),n(17);var o=a(n(30)),i=a(n(36)),l=a(n(37)),s=a(n(55)),u=a(n(56)),c=a(n(51)),d=a(n(3)),f=a(n(812)),p=a(n(0)),h=n(52),m=a(n(5037));function v(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,c.default)(e);if(t){var a=(0,c.default)(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return(0,u.default)(this,r)}}var g=function(e){(0,s.default)(n,e);var r=v(n);function n(){var e;(0,i.default)(this,n);for(var t=arguments.length,a=new Array(t),o=0;o0&&void 0!==arguments[0]?arguments[0]:"Unknown";return w.default.createElement(T.default,{type:e,label:t(e)})}},{title:t("SYNC_STATUS"),dataIndex:"syncStatus",filters:e.getSyncStatus(),filteredValue:a("syncStatus"),search:!0,width:"20%",render:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Unknown";return w.default.createElement(T.default,{type:e,label:e})}},{title:t("DEPLOY_LOCATION"),dataIndex:"destination",isHideable:!0,width:"20%",render:function(t){return w.default.createElement(L.default,{destination:t,clustersDetail:e.clusters})}},{title:t("UPDATE_TIME_TCAP"),dataIndex:"updateTime",sorter:!0,sortOrder:n("updateTime"),isHideable:!0,width:"20%",render:function(e,t){var r=(0,D.default)(t,"status.reconciledAt");return r?(0,R.getLocalTime)(r).format("YYYY-MM-DD HH:mm:ss"):"-"}}]},e.handleFilter=function(t){var r=e.props.store.list.filters;Object.keys(r).forEach((function(e){Object.values(t).includes(r[e])&&(t[e]="")})),e.handleFetch(t)},e.renderStatusCard=function(){var t=e.props.store.list.filters,r=e.props.store.summary,n=r.total,a=void 0===n?0:n,o=r.healthStatus,i=void 0===o?{}:o,l=[{title:"HEALTHY",color:"#55BC8A",used:i.Healthy||0,total:a,icon:"/assets/cd/health.svg",label:"HEALTH_STATUS"},{title:"DEGRADED",color:"#CA2621",used:i.Degraded||0,total:a,icon:"/assets/cd/degraded.svg",label:"HEALTH_STATUS"},{title:"PROGRESSING",color:"#F5A623",used:i.Progressing||0,total:a,icon:"/assets/cd/progressing.svg",label:"HEALTH_STATUS"}];return w.default.createElement("div",{className:A.default.warper__item},l.map((function(r){return w.default.createElement(I.default,{item:r,key:r.title,type:"healthStatus",click:e.handleFilter,label:r.label,filters:t})})))},e.renderSyncStatusCard=function(){var t=e.props.store.list.filters,r=e.props.store.summary,n=r.total,a=void 0===n?0:n,o=r.syncStatus,i=void 0===o?{}:o,l=[{title:"SYNCED",color:"#55BC8A",used:i.Synced||0,total:a,icon:"/assets/cd/synced.svg",label:"SYNC_STATUS"},{title:"OUTOFSYNC",filterValue:"OutOfSync",color:"#F5A623",used:i.OutOfSync||0,total:a,icon:"/assets/cd/outofsync.svg",label:"SYNC_STATUS"},{title:"UNKNOWN",color:"#36435C",used:i.Unknown||0,total:a,icon:"/assets/cd/unknown.svg",label:"SYNC_STATUS"}];return w.default.createElement("div",{className:A.default.warper__item},l.map((function(r){return w.default.createElement(I.default,{item:r,type:"syncStatus",key:r.title,click:e.handleFilter,label:r.label,filters:t})})))},e}return(0,p.default)(n,[{key:"componentDidMount",value:function(){this.clusterStore.fetchList({limit:-1}),this.getData()}},{key:"renderContent",value:function(){var e=this,r=this.props.tableProps,n=(0,O.toJS)(this.props.store.list),a=n.filters,o=n.selectedRowKeys,l=n.isLoading,s=n.total,u=(0,_.default)(a,["limit","page"]),c={onSelectRowKeys:this.props.store.setSelectRowKeys,selectedRowKeys:o,selectActions:[{key:"delete",type:"danger",text:t("DELETE"),action:"delete",onClick:function(){return e.props.trigger("cd.batch.delete",{rowKey:"name",devops:e.devops,cluster:e.cluster,success:function(){setTimeout((function(){e.handleFetch()}),1e3)}})}}]},d=this.enabledActions.includes("create")?this.handleCreate:null,f=!1===l&&0===s&&Object.keys(u).length<=0;return w.default.createElement(S.default,(0,i.default)({rowKey:"name"},r,{columns:this.getColumns(),onCreate:d,onFetch:this.handleFetch,tableActions:c,itemActions:this.itemActions,isLoading:l,showEmpty:f,enabledActions:this.enabledActions}))}},{key:"render",value:function(){var e=this.props.bannerProps;return w.default.createElement(E.ListPage,(0,i.default)({},this.props,{getData:this.getData}),w.default.createElement(b.default,e),w.default.createElement("div",null,!this.hideSummary&&w.default.createElement("div",{className:A.default.status__container},w.default.createElement("div",{className:A.default.warper__container},this.renderStatusCard()),w.default.createElement("div",{className:A.default.warper__container},this.renderSyncStatusCard())),this.renderContent()))}},{key:"clusters",get:function(){return this.clusterStore.list.data}},{key:"enabledActions",get:function(){return globals.app.getActions({module:"applications",cluster:this.cluster,devops:this.devops})}},{key:"devops",get:function(){return this.props.match.params.devops}},{key:"cluster",get:function(){return this.props.match.params.cluster}},{key:"workspace",get:function(){return this.props.match.params.workspace}},{key:"prefix",get:function(){return this.props.match.url.endsWith("/"),this.props.match.url}},{key:"routing",get:function(){return this.props.rootStore.routing}},{key:"hideSummary",get:function(){var e=(0,O.toJS)(this.props.store.summary),t=e.healthStatus,r=void 0===t?{}:t,n=e.syncStatus,a=void 0===n?{}:n;return[].concat(Object.values(r)).concat(Object.values(a)).every((function(e){return!e}))}},{key:"itemActions",get:function(){var e=this,r=this.props,n=r.trigger,a=r.routing;return[{key:"edit",icon:"pen",text:t("EDIT_INFORMATION"),action:"edit",onClick:function(t){n("resource.baseinfo.edit",{detail:x(x({},t),{},{cluster:e.cluster}),success:a.query})}},{key:"yaml",icon:"pen",text:t("EDIT_YAML"),action:"edit",onClick:function(t){n("resource.yaml.edit",{detail:x(x({},t),{},{cluster:e.cluster}),success:a.query})}},{key:"sync",icon:"changing-over",text:t("SYNC"),action:"edit",onClick:function(t){e.handleSync(t)}},{key:"delete",icon:"trash",text:t("DELETE"),action:"delete",onClick:function(t){n("cd.delete",{type:"CONTINUOUS_DEPLOYMENT",detail:t,cluster:e.cluster,success:a.query})}}]}}]),n}(w.default.Component),(0,g.default)(c.prototype,"clusters",[O.computed],Object.getOwnPropertyDescriptor(c.prototype,"clusters"),c.prototype),u=c))||u;r.default=U},5046:function(e,r,n){"use strict";n(15);var a=n(157),o=n(20);n(6),n(10),n(7),Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(e){var r=e.click,n=e.item,a=e.type,o=e.filters,m=(0,s.useState)(!1),v=(0,l.default)(m,2),g=v[0],y=v[1],b=n.title,E=n.color,S=n.filterValue,D=n.used,_=n.total,k=n.icon,O=n.label;return(0,s.useEffect)((function(){(0,f.default)(o)?y(!1):(y(!1),Object.keys(o).forEach((function(e){a===e&&o[e]===(S||(0,p.capitalize)(b))&&y(!0)})))}),[o]),s.default.createElement("div",{className:(0,d.default)(h.default.content,(0,i.default)({},h.default["content--checked"],g)),onClick:function(){y(!g),r((0,i.default)({},a,S||(0,p.capitalize)(b)))}},s.default.createElement("div",{className:h.default.chart},s.default.createElement(u.PieChart,{width:64,height:64,innerRadius:"75%",outerRadius:"115%",data:[{name:"Used",itemStyle:{fill:E},value:D},{name:"Left",itemStyle:{fill:"#EFF4F9"},value:_-D}]}),s.default.createElement("img",{className:h.default.innerIcon,src:k,alt:""})),s.default.createElement("div",{className:h.default.info},s.default.createElement("p",{className:h.default.label},t("".concat(O))),s.default.createElement(c.Radio,{className:(0,d.default)(h.default.radio,(0,i.default)({},h.default["radio--show"],g)),checked:g}),s.default.createElement("p",{className:h.default.type},t(b)),s.default.createElement("p",{className:h.default.number},s.default.createElement("span",{className:h.default.master},D),"/",s.default.createElement("span",null,_))))},n(6),n(10),n(4),n(7);var i=o(n(30)),l=o(n(96)),s=a(n(0)),u=n(798),c=n(186),d=o(n(3)),f=o(n(63)),p=n(52),h=o(n(5047))},5047:function(e,t,r){e.exports={content:"_3rbvLxgxar-1IXEnt7uXsv",info:"_1aKSZORI6fIwi-0XcGTt4g",radio:"_31WiuV5i5qqd7huDXoSta2","content--checked":"_2ck3PC62TuQ0VBCr4wT0Lq",chart:"t9qyn804bLHyqbuqqIVpF",innerIcon:"_1RoP3whI8yVaFftrDDDcGK","radio--show":"_3wu35PWdBZIS8LYSksbZVA",label:"_1MMJ5AoDMc--UUq3xm-ng4",type:"UCNB0wUPam3YH8CCM7lEd",number:"-qfmbebzKsuh_9f9pXzkS",master:"_2OvbKVu7MWU8S_Xmelk71f"}},5048:function(e,t,r){e.exports={tags:"rXo5-VrF2SoJPw4YTJ49n"}},5049:function(e,t,r){e.exports={status:"_1i44s-mkio269MZkQooCA-",noBolder:"_1PYdlTizmu4a-7vtA3SGVB",status_icon:"_1Fc4a9R1_fpPTYh8ZZCnsL",synced:"EHypTO3aVqoSZHjqxFeRM",pruneskipped:"_1y3YUdYQhmCrRQEQC3Vbro",outofsync:"_3PatraCDMneKvGdCyDMvqF",syncfailed:"ArN9LRm53CRNjkzXWoe4Y",unknown:"_1KFsPRlIVt0iTX2q-SlIex",healthy:"_38Bn86ot3T09d_CEbksKAi",degraded:"ulbHb6MIg2KuMGDWUcPdF",progressing:"_2LgiBXp2kDTVB1L8CeNBkz",suspended:"TAPJ97Ue7MfgbqW9_GmVG",missing:"_2-RicBgupjxvlNMuDmPIKT"}},5050:function(e,t,r){e.exports={status__container:"DSexb7d0T5aof2FHL0GTJ",warper__container:"_3T1AJfVjhTgE_eU2vFnMj1",warper__item:"_1kKcKpGvcV2eck1NGzsmYf"}},5051:function(e,r,n){"use strict";var a=n(20),o=n(157);n(12),n(109),n(5),n(11),n(6),n(84),n(9),n(13),n(10),n(4),n(23),n(24),n(17),n(111),n(85),n(62),n(7),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,n(12),n(109),n(45),n(5),n(11),n(6),n(84),n(28),n(42),n(34),n(15),n(9),n(13),n(10),n(4),n(22),n(23),n(57),n(24),n(17),n(111),n(85),n(62),n(7);var i=a(n(315)),l=a(n(43)),s=a(n(30));n(41);var u,c=a(n(44)),d=a(n(36)),f=a(n(37)),p=a(n(55)),h=a(n(56)),m=a(n(51)),v=a(n(0)),g=n(14),y=o(n(793)),b=a(n(788)),E=a(n(792)),S=a(n(1109)),D=a(n(796)),_=n(52),k=a(n(189)),O=a(n(5052));function w(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function N(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"default.txt",r=new Blob([e],{type:"text/plain;charset=utf-8"});(0,j.saveAs)(r,t)},e}return(0,R.default)(ue,[{key:"getPipelineUrl",value:function(e){var t=e.cluster,r=e.devops,n=e.name;return"".concat(this.getDevopsUrlV2({cluster:t,devops:r||this.devops}),"pipelines/").concat(decodeURIComponent(n),"/")}},{key:"fetchList",value:(le=(0,w.default)(a.default.mark((function e(){var t,r,n,o,l,s,u,c,d,f,p,h,m,v,g=this,y=arguments;return a.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=y.length>0&&void 0!==y[0]?y[0]:{},r=t.devops,t.workspace,n=t.devopsName,o=t.silent,l=t.cluster,s=(0,i.default)(t,["devops","workspace","devopsName","silent","cluster"]),o||(this.list.isLoading=!0),u=s.page,c=s.limit,d=s.name,f=s.filter,p=d?"".concat(encodeURIComponent(d)):void 0,h="".concat(this.getBaseUrl({cluster:l,devops:r}),"pipelines"),e.next=7,request.get(h,{page:u||1,limit:c||10,name:p,filter:f||void 0},{params:K({},s)});case 7:m=e.sent,v=m.items.map((function(e){return K({},g.mapper(e))})),this.setDevops(r),this.devopsName=n,this.list={data:v||[],total:m.totalItems||0,limit:parseInt(c,10)||10,page:parseInt(u,10)||1,filters:(0,B.default)(s,"devops"),selectedRowKeys:[],isLoading:!1};case 12:case"end":return e.stop()}}),e,this)}))),function(){return le.apply(this,arguments)})},{key:"fetchDetail",value:(ie=(0,w.default)(a.default.mark((function e(t){var r,n,o,i,l,s;return a.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.cluster,n=t.name,o=t.isSilent,i=t.devops,o||(this.isLoading=!0),e.next=4,request.get("".concat(this.getBaseUrl({devops:i,cluster:r})).concat(this.module,"/").concat(n));case 4:return l=e.sent,s=this.mapper(l),this.setPipelineConfig(l),this.detail=s,this.isLoading=!1,e.abrupt("return",s);case 10:case"end":return e.stop()}}),e,this)}))),function(e){return ie.apply(this,arguments)})},{key:"checkPipelineName",value:(oe=(0,w.default)(a.default.mark((function e(t){var r,n,o;return a.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.name,n=t.cluster,o=t.devops,e.next=3,request.get(this.getPipelineUrl({cluster:n,name:r,devops:o}),{},{headers:{"x-check-exist":!0}});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e,this)}))),function(e){return oe.apply(this,arguments)})},{key:"getJenkinsFile",value:(ae=(0,w.default)(a.default.mark((function e(t){var r,n,o,i,l;return a.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.cluster,n=t.name,o=t.devops,this.pipelineJsonData.isLoading=!0,i=decodeURIComponent(n),!(0,F.default)(this.detail)){e.next=6;break}return e.next=6,this.fetchDetail({cluster:r,name:i,devops:o});case 6:return this.jenkinsfile=(0,M.default)(this.pipelineConfig,"spec.pipeline.jenkinsfile",""),e.next=9,this.convertJenkinsFileToJson((0,H.toJS)(this.jenkinsfile),r);case 9:l=e.sent,this.pipelineJsonData={pipelineJson:l,isLoading:!1};case 11:case"end":return e.stop()}}),e,this)}))),function(e){return ae.apply(this,arguments)})},{key:"convertJenkinsFileToJson",value:(ne=(0,w.default)(a.default.mark((function e(t,r){var n;return a.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t){e.next=5;break}return e.next=3,request.post("".concat(this.getDevopsUrlV2({cluster:r}),"tojson"),{jenkinsfile:t},W);case 3:return n=e.sent,e.abrupt("return",n.data);case 5:case"end":return e.stop()}}),e,this)}))),function(e,t){return ne.apply(this,arguments)})},{key:"getPullRequest",value:(re=(0,w.default)(a.default.mark((function e(t){var r,n,o,l,s,u,c,d,f;return a.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.name,n=t.devops,t.workspace,o=t.cluster,l=(0,i.default)(t,["name","devops","workspace","cluster"]),s=decodeURIComponent(r),u=l.page,c=l.limit,d=void 0===c?10:c,!(0,F.default)(this.detail)){e.next=6;break}return e.next=6,this.fetchDetail({name:s,devops:n});case 6:return e.next=8,request.get("".concat(this.getBaseUrl({cluster:o,namespace:n}),"pipelines/").concat(decodeURIComponent(r),"/branches"),{filter:"pull-requests",page:u||1,limit:d});case 8:f=e.sent,Array.isArray(f.items)&&f.items.forEach((function(e){e.id=e.latestRun.endTime})),this.pullRequestList={data:f.items||[],total:f.totalItems||0,limit:d,page:parseInt(u,10)||1,filters:(0,B.default)(l,"devops"),isLoading:!1,selectedRowKeys:[]};case 11:case"end":return e.stop()}}),e,this)}))),function(e){return re.apply(this,arguments)})},{key:"getBranches",value:(te=(0,w.default)(a.default.mark((function e(t){var r,n,o,l,s,u,c,d,f,p;return a.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.cluster,n=t.devops,o=t.name,l=t.branch,s=(0,i.default)(t,["cluster","devops","name","branch"]),u=decodeURIComponent(o),c=s.page,d=s.limit,f=void 0===d?10:d,!(0,F.default)(this.detail)){e.next=6;break}return e.next=6,this.fetchDetail({cluster:r,name:u,devops:n});case 6:return e.next=8,request.get("".concat(this.getBaseUrl({cluster:r,namespace:n}),"pipelines/").concat(decodeURIComponent(o),"/branches"),{filter:"origin",page:c||1,limit:f,branch:encodeURIComponent(l)});case 8:p=e.sent,this.branchList={data:p.items||[],limit:f,total:p.totalItems||0,page:parseInt(c,10)||1,filters:(0,B.default)(s,"devops"),isLoading:!1,selectedRowKeys:[]};case 10:case"end":return e.stop()}}),e,this)}))),function(e){return te.apply(this,arguments)})},{key:"getActivities",value:(ee=(0,w.default)(a.default.mark((function e(t){var r,n,o,l,s,u,c,d,f,p,h,m;return a.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.name,n=t.branch,o=t.devops,l=t.cluster,s=t.backward,u=void 0!==s&&s,c=(0,i.default)(t,["name","branch","devops","cluster","backward"]),r=decodeURIComponent(r),d=c.page,f=c.limit,p=void 0===f?10:f,!(0,F.default)(this.detail)){e.next=6;break}return e.next=6,this.fetchDetail({cluster:l,name:r,devops:o});case 6:return h={page:d||1,limit:p,branch:n,backward:u},d<0&&(delete h.page,delete h.limit),e.next=10,request.get("".concat(this.getBaseUrl({cluster:l,namespace:o}),"pipelines/").concat(r,"/pipelineruns"),K({},h));case 10:return m=e.sent,(0,U.default)(m)&&(m=m.filter((function(e){return e._links}))),!1===u&&!(0,F.default)(m)&&(0,U.default)(m.items)&&(m.items=m.items.map((function(e){return K(K({},(0,J.safeParseJSON)((0,M.default)(e,"metadata.annotations.['devops.kubesphere.io/jenkins-pipelinerun-status']"))),{},{uid:e.metadata.uid,_originData:e})}))),this.activityList={limit:p,data:m.items||[],total:m.totalItems||0,page:parseInt(d,10)||1,filters:(0,B.default)(c,"devops"),isLoading:!1,selectedRowKeys:[]},e.abrupt("return",m.items);case 15:case"end":return e.stop()}}),e,this)}))),function(e){return ee.apply(this,arguments)})},{key:"getBranchDetail",value:($=(0,w.default)(a.default.mark((function e(t){var r,n,o,i,l;return a.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.devops,n=t.cluster,o=t.name,i=t.branch,e.prev=1,e.next=4,request.get("".concat(this.getBaseUrl({cluster:n,namespace:r}),"pipelines/").concat(decodeURIComponent(o),"/branches/").concat(encodeURIComponent(i)));case 4:return(l=e.sent).name&&(this.branchDetail=l),e.abrupt("return",l);case 9:return e.prev=9,e.t0=e.catch(1),e.abrupt("return",[]);case 12:case"end":return e.stop()}}),e,this,[[1,9]])}))),function(e){return $.apply(this,arguments)})},{key:"handleActivityReplay",value:(Z=(0,w.default)(a.default.mark((function e(t){var r,n,o,i;return a.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.url,n=t.devops,o=t.name,i=t.cluster,e.next=3,request.post("".concat(this.getPipelineUrl({cluster:i,devops:n,name:o})).concat(r,"/replay/"));case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e,this)}))),function(e){return Z.apply(this,arguments)})},{key:"handleActivityStop",value:(X=(0,w.default)(a.default.mark((function e(t){var r,n,o,i;return a.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.url,n=t.devops,o=t.name,i=t.cluster,e.next=3,request.post("".concat(this.getPipelineUrl({cluster:i,devops:n,name:o})).concat(r,"/stop/?blocking=true&timeOutInSecs=10"));case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e,this)}))),function(e){return X.apply(this,arguments)})},{key:"runBranch",value:(Q=(0,w.default)(a.default.mark((function e(t){var r,n,o,i,l,s,u,c=this;return a.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.cluster,n=t.devops,o=t.name,i=t.branch,l=t.parameters,s="".concat(this.getBaseUrl({cluster:r,namespace:n}),"pipelines/").concat(o,"/pipelineruns").concat(i?"?branch=".concat(encodeURIComponent(i)):""),u=(0,F.default)(l)?{parameters:[]}:{parameters:l},e.next=5,request.post(s,u).then((function(){setTimeout((function(){c.fetchDetail({cluster:r,devops:n,name:o,isSilent:!0})}),1e3)}));case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e,this)}))),function(e){return Q.apply(this,arguments)})},{key:"getPipeLineConfig",value:function(){var e=(0,x.default)((0,H.toJS)(this.pipelineConfig));return delete(e=K(K({},(0,H.toJS)(e.spec)),(0,H.toJS)(e))).spec,delete e.kind,delete e.apiVersion,e}},{key:"setDevops",value:function(e){this.devops=e}},{key:"createPipeline",value:(V=(0,w.default)(a.default.mark((function e(t){var r,n,o,i;return a.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.data,n=t.devops,o=t.cluster,r.kind="Pipeline",r.apiVersion="devops.kubesphere.io/v1alpha3",i="".concat(this.getBaseUrl({devops:n,cluster:o}),"pipelines"),e.next=6,request.post(i,r);case 6:return e.abrupt("return",e.sent);case 7:case"end":return e.stop()}}),e,this)}))),function(e){return V.apply(this,arguments)})},{key:"updatePipeline",value:(q=(0,w.default)(a.default.mark((function e(t){var r,n,o,i,l;return a.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.cluster,n=t.data,o=t.devops,n.kind="Pipeline",n.apiVersion="devops.kubesphere.io/v1alpha3",i="".concat(this.getBaseUrl({devops:o,cluster:r}),"pipelines/").concat(n.metadata.name),e.next=6,request.put(i,n);case 6:return l=e.sent,this.setPipelineConfig(l),e.abrupt("return",l);case 9:case"end":return e.stop()}}),e,this)}))),function(e){return q.apply(this,arguments)})},{key:"updateJenkinsFile",value:function(e,t){var r=(0,x.default)((0,H.toJS)(this.pipelineConfig));return(0,Y.default)(r,"spec.pipeline.jenkinsfile",e),this.updatePipeline({data:r,devops:t.devops,cluster:t.cluster})}},{key:"delete",value:(A=(0,w.default)(a.default.mark((function e(t){var r,n,o,i;return a.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.name,n=t.devops,o=t.cluster,i="".concat(this.getBaseUrl({devops:n,cluster:o}),"pipelines/").concat(r),e.next=4,request.delete(i);case 4:return e.abrupt("return",e.sent);case 5:case"end":return e.stop()}}),e,this)}))),function(e){return A.apply(this,arguments)})},{key:"scanRepository",value:(T=(0,w.default)(a.default.mark((function e(t){var r,n,o,i;return a.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.devops,n=t.name,o=t.cluster,i={},e.next=4,request.defaults({method:"POST",url:"".concat(this.getPipelineUrl({cluster:o,devops:r||this.devops,name:n||this.detail.name}),"scan"),options:i,handler:function(e){return e.text().then((function(){if(e.redirected)return"Scan success"}))}});case 4:return e.abrupt("return",e.sent);case 5:case"end":return e.stop()}}),e,this)}))),function(e){return T.apply(this,arguments)})},{key:"getRepoScanLogs",value:(L=(0,w.default)(a.default.mark((function e(t){var r,n,o,i;return a.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.devops,n=t.name,o=t.cluster,e.next=3,request.get("".concat(this.getPipelineUrl({cluster:o,name:n,devops:r}),"consolelog"));case 3:i=e.sent,this.repositoryLog=i;case 5:case"end":return e.stop()}}),e,this)}))),function(e){return L.apply(this,arguments)})},{key:"checkCron",value:(l=(0,w.default)(a.default.mark((function e(t){return a.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,request.get("".concat(this.getDevopsUrlV2(),"check/cron?value=").concat(t));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)}))),function(e){return l.apply(this,arguments)})},{key:"checkScriptCompile",value:(o=(0,w.default)(a.default.mark((function e(t){var r,n,o,i;return a.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.devops,n=t.pipeline,o=t.value,i=t.cluster,e.abrupt("return",this.submitting(request.post("".concat(this.getPipelineUrl({cluster:i,name:n,devops:r}),"checkScriptCompile"),{value:o},W)));case 2:case"end":return e.stop()}}),e,this)}))),function(e){return o.apply(this,arguments)})},{key:"getBranchLists",value:(n=(0,w.default)(a.default.mark((function e(t){var r,n,o,l,s,u,c;return a.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.devops,n=t.name,t.workspace,o=t.cluster,l=(0,i.default)(t,["devops","name","workspace","cluster"]),s=l.page,u=l.limit,c=void 0===u?10:u,e.next=4,request.get("".concat(this.getPipelineUrl({cluster:o,name:n,devops:r}),"branches/"),{filter:"origin",start:(s-1)*c||0,limit:c});case 4:return e.abrupt("return",e.sent);case 5:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})},{key:"getPipelineTemplateList",value:(r=(0,w.default)(a.default.mark((function e(t){var r,n,o,i;return a.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r="zh"===(0,z.default)("lang")?"ZH":"EN",e.next=3,request.get("".concat(this.getBaseUrl(t),"clustertemplates?limit=100"));case 3:return n=e.sent,o=n.items,i=(void 0===o?[]:o).map((function(e){var t={},n=(0,M.default)(e,"metadata.annotations",{}),a=n["devops.kubesphere.io/icon"];return t.type=e.metadata.name,t.desc=n["devops.kubesphere.io/description".concat(r)]||n["devops.kubesphere.io/descriptionEN"],t.title=n["devops.kubesphere.io/displayName".concat(r)]||n["devops.kubesphere.io/displayNameEN"]||n.displayNameEN,t.image=a&&a.indexOf("http")>-1?a:"/assets/pipeline/".concat(a),t.parameters=(0,M.default)(e,"spec.parameters",[]),t})),e.abrupt("return",i);case 7:case"end":return e.stop()}}),e,this)}))),function(e){return r.apply(this,arguments)})},{key:"getTempleJenkins",value:(t=(0,w.default)(a.default.mark((function e(t,r,n){var o,i;return a.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,request.post("".concat(this.getBaseUrl(n),"clustertemplates/").concat(t,"/render"),r);case 2:return o=e.sent,i=(0,M.default)(o,'metadata.annotations["devops.kubesphere.io/render-result"]',""),e.abrupt("return",i);case 5:case"end":return e.stop()}}),e,this)}))),function(e,r,n){return t.apply(this,arguments)})}]),ue}(q.default),s=(0,A.default)(l.prototype,"pipelineConfig",[H.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),u=(0,A.default)(l.prototype,"originalList",[H.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),c=(0,A.default)(l.prototype,"list",[H.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{data:[],page:1,limit:10,total:0,order:"",reverse:!1,filters:{},isLoading:!0}}}),d=(0,A.default)(l.prototype,"branchList",[H.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{data:[],page:1,limit:10,total:0,order:"",reverse:!1,filters:{},isLoading:!0}}}),f=(0,A.default)(l.prototype,"activityList",[H.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{data:[],page:1,limit:10,total:0,order:"",reverse:!1,filters:{},isLoading:!0}}}),p=(0,A.default)(l.prototype,"pullRequestList",[H.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{data:[],page:1,limit:10,total:0,order:"",reverse:!1,filters:{},isLoading:!0,selectedRowKeys:[]}}}),h=(0,A.default)(l.prototype,"credentialsList",[H.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{data:[],total:0,isLoading:!0}}}),m=(0,A.default)(l.prototype,"detail",[H.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),v=(0,A.default)(l.prototype,"isLoading",[H.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),g=(0,A.default)(l.prototype,"notFound",[H.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),y=(0,A.default)(l.prototype,"repositoryLog",[H.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),b=(0,A.default)(l.prototype,"pipelineJsonData",[H.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{pipelineJson:{},isLoading:!0}}}),E=(0,A.default)(l.prototype,"branchDetail",[H.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),S=(0,A.default)(l.prototype,"jenkinsfile",[H.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),D=(0,A.default)(l.prototype,"devops",[H.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),_=(0,A.default)(l.prototype,"devopsName",[H.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),(0,A.default)(l.prototype,"fetchList",[H.action],Object.getOwnPropertyDescriptor(l.prototype,"fetchList"),l.prototype),(0,A.default)(l.prototype,"fetchDetail",[H.action],Object.getOwnPropertyDescriptor(l.prototype,"fetchDetail"),l.prototype),k=(0,A.default)(l.prototype,"setPipelineConfig",[H.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(t){e.pipelineConfig=t}}}),O=(0,A.default)(l.prototype,"setSelectRowKeys",[H.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(t){e.list.selectedRowKeys.replace(t)}}}),(0,A.default)(l.prototype,"checkPipelineName",[H.action],Object.getOwnPropertyDescriptor(l.prototype,"checkPipelineName"),l.prototype),(0,A.default)(l.prototype,"getJenkinsFile",[H.action],Object.getOwnPropertyDescriptor(l.prototype,"getJenkinsFile"),l.prototype),(0,A.default)(l.prototype,"convertJenkinsFileToJson",[H.action],Object.getOwnPropertyDescriptor(l.prototype,"convertJenkinsFileToJson"),l.prototype),(0,A.default)(l.prototype,"getPullRequest",[H.action],Object.getOwnPropertyDescriptor(l.prototype,"getPullRequest"),l.prototype),(0,A.default)(l.prototype,"getBranches",[H.action],Object.getOwnPropertyDescriptor(l.prototype,"getBranches"),l.prototype),(0,A.default)(l.prototype,"getActivities",[H.action],Object.getOwnPropertyDescriptor(l.prototype,"getActivities"),l.prototype),(0,A.default)(l.prototype,"getBranchDetail",[H.action],Object.getOwnPropertyDescriptor(l.prototype,"getBranchDetail"),l.prototype),(0,A.default)(l.prototype,"getPipeLineConfig",[H.action],Object.getOwnPropertyDescriptor(l.prototype,"getPipeLineConfig"),l.prototype),(0,A.default)(l.prototype,"setDevops",[H.action],Object.getOwnPropertyDescriptor(l.prototype,"setDevops"),l.prototype),(0,A.default)(l.prototype,"createPipeline",[H.action],Object.getOwnPropertyDescriptor(l.prototype,"createPipeline"),l.prototype),(0,A.default)(l.prototype,"updatePipeline",[H.action],Object.getOwnPropertyDescriptor(l.prototype,"updatePipeline"),l.prototype),(0,A.default)(l.prototype,"updateJenkinsFile",[H.action],Object.getOwnPropertyDescriptor(l.prototype,"updateJenkinsFile"),l.prototype),(0,A.default)(l.prototype,"delete",[H.action],Object.getOwnPropertyDescriptor(l.prototype,"delete"),l.prototype),(0,A.default)(l.prototype,"scanRepository",[H.action],Object.getOwnPropertyDescriptor(l.prototype,"scanRepository"),l.prototype),l);t.default=Q},5071:function(e,t,r){"use strict";r(15);var n=r(20);r(31),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=n(r(96));r(31),r(4);var o=r(52),i=r(317),l=r(5072),s=n(r(5105)),u=n(r(5107)),c=n(r(5108)),d="/:workspace/clusters/:cluster/devops/:devops/pipelines/:name",f="".concat(d,"/branch/:branch"),p="".concat(f,"/run/:runName"),h="".concat(d,"/run/:runName"),m=[{name:"pipeline",title:"PIPELINE_CONFIGURATION",getComponent:function(e){return[[function(e){return(0,o.compareVersion)(e,"3.4.0")<0},l.PipelineOld],[function(){return!0},l.Pipeline]].find((function(t){return(0,(0,a.default)(t,1)[0])(e)}))[1]}},{name:"code-quality",title:"CODE_CHECK",component:l.CodeQuality},{name:"activity",title:"RUN_RECORDS",component:l.Activity},{name:"branch",title:"BRANCH_PL",component:l.Branch},{name:"pull-request",title:"PULL_REQUEST_PL",component:l.PullRequest}],v=[{name:"activity",title:"RUN_RECORDS",component:l.Activity},{name:"code-quality",title:"CODE_CHECK",component:l.CodeQuality}],g=[{name:"task-status",title:"TASK_STATUS",component:l.TaskStatus},{name:"build-parameters",title:"BUILD_PARAMETERS",component:l.Parameters},{name:"commit",title:"COMMIT_PL",component:l.Commit},{name:"artifacts",title:"ARTIFACT_PL",component:l.Artifacts},{name:"events",title:"EVENT_PL",component:l.Events}],y=[{path:p,component:c.default,routes:(0,i.getChildRoutes)(g,p)},{path:h,component:c.default,routes:(0,i.getChildRoutes)(g,h)},{path:f,component:s.default,routes:(0,i.getChildRoutes)(v,f)},{path:d,component:u.default,routes:(0,i.getChildRoutes)(m,d)}];t.default=y},5072:function(e,t,r){"use strict";r(15);var n=r(20);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Branch",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"Pipeline",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"PipelineOld",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"PullRequest",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"Activity",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(t,"TaskStatus",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"Commit",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"Artifacts",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(t,"CodeQuality",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(t,"Events",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(t,"Parameters",{enumerable:!0,get:function(){return h.default}});var a=n(r(5073)),o=n(r(5074)),i=n(r(5076)),l=n(r(5078)),s=n(r(5080)),u=n(r(5081)),c=n(r(5094)),d=n(r(5095)),f=n(r(5096)),p=n(r(5101)),h=n(r(5102))},5073:function(e,r,n){"use strict";var a=n(20);n(12),n(5),n(11),n(6),n(84),n(48),n(16),n(9),n(13),n(10),n(4),n(23),n(24),n(17),n(85),n(62),n(188),n(7),n(110),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,n(12),n(45),n(5),n(11),n(6),n(84),n(28),n(48),n(42),n(16),n(34),n(15),n(9),n(13),n(10),n(4),n(22),n(23),n(57),n(24),n(17),n(85),n(62),n(188),n(7),n(110);var o=a(n(30)),i=a(n(43));n(41);var l,s=a(n(44)),u=a(n(36)),c=a(n(37)),d=a(n(55)),f=a(n(56)),p=a(n(51)),h=a(n(26)),m=a(n(189)),v=a(n(63)),g=a(n(0)),y=n(14),b=n(239),E=n(244),S=a(n(1423)),D=n(186),_=a(n(240)),k=a(n(921)),O=a(n(1251)),w=n(52),N=n(434),P=n(1144),R=a(n(796)),C=a(n(963)),I=a(n(3));function L(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function T(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:"",r=e.props.match.params,n=r.devops,a=r.name,o=r.cluster;clearTimeout(e.store.timer);var i=o&&"default"!==o?"/klusters/".concat(o):"";request.put("/kapis/devops.kubesphere.io/v1alpha3".concat(i,"/namespaces/").concat(n,"/pipelines/").concat(a,"/jenkinsfile?mode=raw"),{data:t},{headers:{"content-type":"application/json"}}).then(e.handleRefresh)},e.handleEditorPipelineModal=function(t,r){var n=e.store.pipelineJsonData,a=e.props.match.params;e.trigger("pipeline.pipelineCreate",{store:e.store,jsonData:(0,E.toJS)(n.pipelineJson),onCancel:r,params:a,trigger:function(){var t;(t=e).trigger.apply(t,arguments)},success:function(){var t=a.devops,r=a.name;localStorage.removeItem("".concat(globals.user.username,"-").concat(t,"-").concat(r)),e.handleRefresh()}})},e.handleJenkinsFileModal=function(t,r){var n=e.store.pipelineConfig,a=e.props.match.params;e.trigger("pipeline.jenkins",{store:e.store,defaultValue:(0,E.toJS)(n.spec.pipeline.jenkinsfile),onCancel:r,params:a,success:function(){var t=a.devops,r=a.name;localStorage.removeItem("".concat(globals.user.username,"-").concat(t,"-").concat(r)),e.handleRefresh()}})},e.getData=(0,s.default)(o.default.mark((function t(){var r,n;return o.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=e.props.match.params,n=decodeURIComponent(r.name),t.next=4,e.store.getJenkinsFile(w(w({},r),{},{name:n}));case 4:e.store.getActivities(r),e.jenkinsFileMode&&e.handleRefresh();case 6:case"end":return t.stop()}}),t)}))),e.handleRefresh=(0,s.default)(o.default.mark((function t(){var r,n;return o.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=e.props.match.params,n=decodeURIComponent(r.name),t.next=4,e.store.getJenkinsFile(w(w({},r),{},{name:n}),!0);case 4:e.jenkinsFileMode&&e.store.fetchDetailUntilEditModeNull(w(w({},r),{},{name:n})).then((function(t){e.store.detail=t,e.store.setPipelineConfig(t._originData)}));case 5:case"end":return t.stop()}}),t)}))),e.handleRunning=(0,y.default)((0,s.default)(o.default.mark((function t(){var r,n,a,i;return o.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=e.props.match.params,t.next=3,e.store.fetchDetail(r);case 3:n=e.store.detail,a=!(0,b.default)((0,E.toJS)(n.branchNames)),i=!(0,b.default)((0,E.toJS)(n.parameters)),a||i?e.trigger("pipeline.params",{devops:r.devops,cluster:r.cluster,params:r,branches:(0,E.toJS)(n.branchNames),disabledBrancheNames:(0,E.toJS)(n.disabledBranchNames),parameters:(0,E.toJS)(n.parameters),success:function(){e.props.rootStore.routing.push("./activity")}}):e.handleRunSubmit();case 7:case"end":return t.stop()}}),t)}))),500),e.handleRunSubmit=function(){var t=(0,s.default)(o.default.mark((function t(r,n){var a,i,l,s;return o.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=e.store.detail,i=e.props.match.params,l=i.devops,s=i.cluster,t.next=4,e.store.runBranch({name:a.name,branch:n,parameters:r,cluster:s,devops:l});case 4:e.props.rootStore.routing.push("./activity");case 5:case"end":return t.stop()}}),t)})));return function(e,r){return t.apply(this,arguments)}}(),e}return(0,c.default)(n,[{key:"componentDidMount",value:function(){!this.isMultibranch&&this.editable?this.getData():this.props.rootStore.routing.push("./activity")}},{key:"renderBtnGroup",value:function(){if(this.editable)return D.default.createElement("div",{className:k.default.pipelineCard__btnGroup},"json"===this.jenkinsFileMode?D.default.createElement(h.Tooltip,{content:t("JENKINS_UNAVAILABLE")},D.default.createElement(h.Button,{className:k.default["btn-disabled"]},t("EDIT_JENKINSFILE"))):D.default.createElement(h.Button,{onClick:this.handleJenkinsFileModal},t("EDIT_JENKINSFILE")),"raw"===this.jenkinsFileMode?D.default.createElement(h.Tooltip,{content:t("JENKINS_UNAVAILABLE")},D.default.createElement(h.Button,{className:k.default["btn-disabled"]},t("EDIT_PIPELINE"))):D.default.createElement(h.Button,{onClick:this.handleEditorPipelineModal},t("EDIT_PIPELINE")),D.default.createElement(h.Button,{type:"control",onClick:this.handleRunning},t("RUN")))}},{key:"renderPipeLineContent",value:function(){var e=this.store.pipelineJsonData,r=e.pipelineJson;return e.isLoading?D.default.createElement(h.Loading,{spinning:!0},D.default.createElement("div",{className:k.default.pipelineCard})):this.jenkinsFileMode&&"raw"===this.jenkinsFileMode?D.default.createElement(v.default,{desc:t("JENKINS_UNAVAILABLE")},this.editable&&D.default.createElement(D.default.Fragment,null,D.default.createElement(h.Button,{onClick:this.handleJenkinsFileModal,disabled:"json"===this.jenkinsFileMode},t("EDIT_JENKINSFILE")),D.default.createElement(h.Button,{type:"control",onClick:this.handleRunning},t("RUN")))):r&&"failure"===r.result||!this.isValidated?D.default.createElement(v.default,{desc:t("INVALID_JENKINSFILE_TIP")},this.editable&&D.default.createElement(D.default.Fragment,null,D.default.createElement(h.Button,{onClick:this.handleJenkinsFileModal,disabled:"json"===this.jenkinsFileMode},t("EDIT_JENKINSFILE")),D.default.createElement(h.Button,{type:"control",onClick:this.handleRunning},t("RUN")))):(0,b.default)((0,E.toJS)(r))||!this.jenkinsFile?D.default.createElement(v.default,{desc:t("NO_PIPELINE_CONFIG_FILE_TIP")},this.editable&&D.default.createElement(D.default.Fragment,null,D.default.createElement(h.Button,{onClick:this.handleJenkinsFileModal,disabled:"json"===this.jenkinsFileMode},t("EDIT_JENKINSFILE")),D.default.createElement(h.Button,{type:"control",onClick:this.handlePipelineModal,disabled:"raw"===this.jenkinsFileMode},t("EDIT_PIPELINE")))):D.default.createElement("div",{className:k.default.pipelineCard},D.default.createElement("div",{className:k.default.pipelineCard__toolbar},this.renderBtnGroup()),D.default.createElement("div",{className:k.default.pipelineCard__main},D.default.createElement(g.default,{jsonData:r})))}},{key:"render",value:function(){return D.default.createElement("div",null,this.renderPipeLineContent())}},{key:"enabledActions",get:function(){var e=this.props.match.params,t=e.cluster,r=e.devops;return globals.app.getActions({module:"pipelines",cluster:t,devops:r})}},{key:"editable",get:function(){return this.enabledActions.includes("edit")}},{key:"jenkinsFileMode",get:function(){return this.store.pipelineConfig.metadata.annotations["pipeline.devops.kubesphere.io/jenkinsfile.edit.mode"]}},{key:"isValidated",get:function(){return"failure"!==this.store.pipelineConfig.metadata.annotations["pipeline.devops.kubesphere.io/jenkinsfile.validate"]}},{key:"jenkinsFile",get:function(){var e=this.store.pipelineConfig;return(0,E.toJS)(e.spec.pipeline.jenkinsfile)}},{key:"isMultibranch",get:function(){var e=this.props.detailStore;return(0,E.toJS)(e.detail.isMultiBranch)}}]),n}(D.default.Component))||l)||l)||l;r.default=P},5075:function(e,t,r){e.exports={pipelineCard:"_1QFjNwGDuN8t9MAIvO2DoY",pipelineCard__toolbar:"_1fCHzREeVMKbCgIC2LzrXb",icon:"_3lL8K1nNCnwDbe_zgSfsdL","btn-disabled":"VB_cSYTGpvaW0GPCUnagO",pipelineCard__btnGroup:"_2Q4jPcuRq7sl6FH05oON1Q",pipelineCard__main:"zhBNotW1xoiqvp-fuAnWt"}},5076:function(e,r,n){"use strict";n(15);var a=n(20);n(5),n(84),n(16),n(4),n(23),n(24),n(17),n(85),n(62),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,n(45),n(5),n(84),n(28),n(42),n(16),n(4),n(22),n(23),n(57),n(24),n(17),n(85),n(62);var o=a(n(43));n(41);var i,l=a(n(44)),s=a(n(36)),u=a(n(37)),c=a(n(55)),d=a(n(56)),f=a(n(51)),p=n(186),h=a(n(963)),m=a(n(1125)),v=a(n(800)),g=a(n(63)),y=n(14),b=n(239),E=a(n(0)),S=n(791),D=a(n(5077));function _(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,f.default)(e);if(t){var a=(0,f.default)(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return(0,d.default)(this,r)}}var k=(0,b.inject)("rootStore","detailStore")(i=(0,b.observer)(i=(0,S.trigger)(i=function(e){(0,c.default)(n,e);var r=_(n);function n(){var e;(0,s.default)(this,n);for(var a=arguments.length,i=new Array(a),u=0;u0,s={total:n,page:a,limit:o},u=(0,h.default)(i,"page","workspace");return l&&!i.page?f.default.createElement(w.default,{name:this.name}):f.default.createElement(O.default,{data:(0,v.toJS)(t),columns:this.getColumns(),rowKey:"displayName",filters:u,pagination:s,isLoading:r,onFetch:this.handleFetch,hideSearch:!0})}},{key:"isRuning",get:function(){var e=(0,p.default)((0,v.toJS)(this.store),"pullRequestList.data",[]).filter((function(e){var t=(0,p.default)(e,"latestRun.state");return t&&"FINISHED"!==t&&"PAUSED"!==t}));return!(0,m.default)(e)}},{key:"routing",get:function(){return this.props.rootStore.routing}},{key:"prefix",get:function(){var e=this.props.match.params,t=e.workspace,r=e.devops,n=e.name,a=e.cluster;return"/".concat(t,"/clusters/").concat(a,"/devops/").concat(r,"/pipelines/").concat(n)}}]),n}(f.default.Component))||o)||o;r.default=I},5079:function(e,t,r){e.exports={itemNameDisabled:"_1imWThkNtbXZSBAEQgwMK"}},5080:function(e,r,n){"use strict";var a=n(20);n(12),n(5),n(11),n(6),n(84),n(73),n(48),n(16),n(9),n(13),n(10),n(4),n(23),n(24),n(17),n(85),n(62),n(64),n(188),n(136),n(7),n(110),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,n(12),n(45),n(5),n(11),n(6),n(84),n(73),n(28),n(48),n(42),n(16),n(34),n(15),n(9),n(13),n(10),n(4),n(22),n(23),n(57),n(24),n(17),n(85),n(62),n(64),n(188),n(7),n(110);var o=a(n(61)),i=a(n(43));n(41);var l,s=a(n(44)),u=a(n(30)),c=a(n(36)),d=a(n(37)),f=a(n(55)),p=a(n(56)),h=a(n(51)),m=a(n(0)),v=a(n(26)),g=a(n(189)),y=a(n(800)),b=a(n(63)),E=n(433),S=n(14),D=n(244),_=n(239),k=n(186),O=a(n(240)),w=n(52),N=a(n(921)),P=n(434),R=n(1144),C=n(791),I=a(n(796)),L=a(n(963)),T=a(n(960));function A(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function j(e){for(var t=1;t5242880)&&(this.stepLogData.hasMore=!1,this.stepLogData.log+="\n\n***************************************************************** \n* * \n* The log is too large, please download it to view the details. *\n* * \n***************************************************************** \n ");case 9:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})}]),n}(n(r(323)).default),i=(0,v.default)(o.prototype,"stepLogData",[y.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{log:"",start:0,hasMore:!1}}}),l=(0,v.default)(o.prototype,"handleResetStepLog",[y.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(){e.stepLogData={log:"",start:0,hasMore:!1}}}}),o);t.default=E},5091:function(e,r,n){"use strict";n(15);var a=n(20);n(5),n(86),n(9),n(4),n(23),n(24),n(17),n(136),n(110),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,n(45),n(5),n(86),n(42),n(9),n(4),n(22),n(23),n(57),n(24),n(17),n(136),n(110);var o=a(n(43));n(41);var i,l,s=a(n(44)),u=a(n(36)),c=a(n(37)),d=a(n(55)),f=a(n(56)),p=a(n(51)),h=a(n(49)),m=a(n(0)),v=n(14),g=n(239),y=n(186),b=a(n(5092));function E(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,p.default)(e);if(t){var a=(0,p.default)(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return(0,f.default)(this,r)}}var S=(0,g.observer)((l=function(e){(0,d.default)(n,e);var r=E(n);function n(){var e;(0,u.default)(this,n);for(var a=arguments.length,i=new Array(a),l=0;l0&&void 0!==arguments[0]&&arguments[0],t=this.props.params;this.store.getRunStatusLogs(t,e)}},{key:"componentDidMount",value:function(){this.handleGetLogs()}},{key:"componentWillUnmount",value:function(){clearInterval(this.logRefreshInterval)}},{key:"render",value:function(){var e=this.store.runDetailLogs;return m.default.createElement("div",{className:b.default.logs_container},m.default.createElement("div",{className:b.default.log,ref:this.ref},this.renderOperations(),m.default.createElement("pre",{className:b.default.LogItem_content},e)))}},{key:"isLogFinish",get:function(){if(this.store.overflow)return!0;for(var e=this.store.runDetailLogs.split("\n"),t=e.length-1,r=0,n=!1;r<2;)n=e[t]&&e[t].indexOf("Finished")>-1,t--,r++;return n}}]),n}(m.default.Component),(0,h.default)(l.prototype,"getPipelineIndexLog",[v.action],Object.getOwnPropertyDescriptor(l.prototype,"getPipelineIndexLog"),l.prototype),(0,h.default)(l.prototype,"isLogFinish",[v.computed],Object.getOwnPropertyDescriptor(l.prototype,"isLogFinish"),l.prototype),i=l))||i;r.default=S},5092:function(e,t,r){e.exports={logs_container:"_1a-zP9_2YDUkWD-6LJkS9c",log:"_7SKszFrl5ToySuqKb58u_",operations:"QVvKuNdaSqvfGkf6g4REX",split:"q-xnWS4mmEgTxiHJB-Mje"}},5093:function(e,t,r){e.exports={pipelineCard:"_15Io83PX3ThKRG-aELylW-",pipelineCard__tab:"_3618Tf5Fsa2rvv2BDhJxih",pipelineCard_content:"bIQp-H7_AePWnP-iqbWXS",pipelineCard_pipeline_content:"d8kWWAlfJhFL8fYgY8Nvk",pipelineCard__toolbar:"_2-2rg2XNK4zLkGIDllkyh",icon:"_3Kbhn58kNwzcDj56uGaotu",pipelineCard__btnGroup:"_1s6pPyPc-w54dHQomyI86W",pipelineCard__main:"_2jX4VRaYREStNMY3wXj5EN",footer:"_2trt1J67jrYmriGPqLKZDV",running_tips:"_2KW8xeUQEVlEv60ExnekFN",runningIcon:"_1UVLjnaxVf-hr4kl8rQxkm",rotate:"Dacx0RATJmtvUY10xbkIq",QueuedIcon:"_2RuQE76Kv9oKvrUnVEZMkX",breath:"_1GD36aiJGyeNr3qUQuodKa",card:"_118Qk5exDgXSaS3rqlSgX0",title:"CqPIRnLO2E1dTMGYHHyNQ",desc:"_2SC0de7wLtaphQs2_5YQYo"}},5094:function(e,r,n){"use strict";var a=n(20);n(12),n(5),n(11),n(6),n(48),n(16),n(9),n(13),n(10),n(4),n(23),n(24),n(17),n(62),n(188),n(7),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,n(12),n(45),n(5),n(11),n(6),n(28),n(48),n(42),n(16),n(34),n(15),n(9),n(13),n(10),n(4),n(23),n(57),n(24),n(17),n(62),n(188),n(7);var o,i=a(n(30)),l=a(n(36)),s=a(n(37)),u=a(n(55)),c=a(n(56)),d=a(n(51)),f=a(n(0)),p=a(n(189)),h=n(14),m=n(239),v=n(244),g=n(52),y=a(n(796)),b=a(n(963));function E(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function S(e){for(var t=1;t1e3?parseFloat(r.totalCode/1e3).toFixed(2):r.totalCode,f=r.totalCode>1e3?"K":"";return d.default.createElement("div",{className:b.default.otherCards},d.default.createElement(y.default,{title:t("CODE_LINE_COUNT"),value:c,unit:f,url:"".concat(e.sonarqubeOrigin,"/component_measures?id=").concat(u,"&metric=ncloc")}),d.default.createElement(y.default,{hasIcon:!0,title:t("BUG_PL"),value:a,unit:"",resultClass:n,url:"".concat(e.sonarqubeOrigin,"/project/issues?id=").concat(u,"&resolved=false&types=BUG")}),d.default.createElement(y.default,{hasIcon:!0,title:t("VULNERABILITY_PL"),value:i,unit:"",resultClass:o,url:"".concat(e.sonarqubeOrigin,"/project/issues?id=").concat(u,"&resolved=false&types=VULNERABILITY")}),d.default.createElement(y.default,{hasIcon:!0,title:t("CODE_SMELL_PL"),value:l,unit:"",url:"".concat(e.sonarqubeOrigin,"/project/issues?id=").concat(u,"&resolved=false&types=CODE_SMELL")}),d.default.createElement(y.default,{hasIcon:!0,title:t("COVERAGE"),value:s,unit:"%",url:"".concat(e.sonarqubeOrigin,"/component_measures?id=").concat(u,"&metric=coverage")}))},e.renderLogo=function(){return d.default.createElement("span",{onClick:e.goToSonarqube,className:b.default.logo})},e}return(0,l.default)(n,[{key:"render",value:function(){return this.props.loading?null:d.default.createElement(m.default,{title:t("TEST_RESULTS"),operations:this.renderLogo()},d.default.createElement("div",{className:b.default.content},this.renderTotalResult(),this.renderOtherResults()))}},{key:"sonarqubeOrigin",get:function(){var e=this.props.detail.sonarqubeDashboardUrl;return(0,h.default)(globals,"config.devops.sonarqubeURL")||(0,g.parseUrl)(e).origin}}]),n}(d.default.Component);S.propTypes={detail:f.default.object,loading:f.default.bool};var D=S;r.default=D},5098:function(e,t,r){"use strict";r(15);var n=r(20);r(4),r(23),r(17),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r(45),r(42),r(4),r(319),r(23),r(57),r(17);var a=n(r(36)),o=n(r(37)),i=n(r(55)),l=n(r(56)),s=n(r(51)),u=n(r(0)),c=r(186),d=n(r(1988));function f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,s.default)(e);if(t){var a=(0,s.default)(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return(0,l.default)(this,r)}}var p=["A","B","C","D"],h=function(e){(0,i.default)(r,e);var t=f(r);function r(){return(0,a.default)(this,r),t.apply(this,arguments)}return(0,o.default)(r,[{key:"render",value:function(){var e=this.props,t=e.hasIcon,r=e.title,n=e.value,a=e.resultClass,o=e.unit,i=e.url,l=p[parseInt(a,10)-1];return u.default.createElement("div",{className:d.default.resultCard},u.default.createElement("p",{className:d.default.title},t?u.default.createElement(c.Icon,{name:"debug",size:20}):null,r,a?u.default.createElement("span",{className:d.default[l]},l):null),u.default.createElement("p",{className:d.default.value},i?u.default.createElement("a",{href:i,target:"_blank",rel:"noreferrer noopener"},u.default.createElement("span",null,n)):u.default.createElement("span",null,n),u.default.createElement("span",{className:d.default.unit},o)))}}]),r}(u.default.PureComponent);t.default=h,h.defaultProps={hasIcon:!1,title:"-",value:0,url:""}},5099:function(e,r,n){"use strict";n(15);var a=n(20);n(18),n(4),n(23),n(17),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,n(45),n(18),n(42),n(4),n(23),n(57),n(17);var o=a(n(36)),i=a(n(37)),l=a(n(55)),s=a(n(56)),u=a(n(51)),c=a(n(0)),d=a(n(1)),f=a(n(26)),p=a(n(801)),h=n(52),m=a(n(5100)),v=a(n(1989)),g=a(n(1460));function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,u.default)(e);if(t){var a=(0,u.default)(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return(0,s.default)(this,r)}}var b=function(e){(0,l.default)(n,e);var r=y(n);function n(e){var a;(0,o.default)(this,n),(a=r.call(this,e)).showMore=function(){a.setState({showMore:!0})},a.renderTitle=function(){var e=a.props.detail,r=e.critical,n=e.major,o=e.minor,i=e.info,l=e.blocker;return c.default.createElement("div",{className:g.default.header},c.default.createElement("span",{className:g.default.title},t("ISSUE_PL")),c.default.createElement("div",{className:g.default.details},c.default.createElement("span",null,c.default.createElement(v.default,{errorClass:"blocker"}),l||0),c.default.createElement("span",null,c.default.createElement(v.default,{errorClass:"critical"}),r||0),c.default.createElement("span",null,c.default.createElement(v.default,{errorClass:"major"}),n||0),c.default.createElement("span",null,c.default.createElement(v.default,{errorClass:"minor"}),o||0),c.default.createElement("span",null,c.default.createElement(v.default,{errorClass:"info"}),i||0)))},a.renderIssue=function(e,t){var r=a.props.issues;if(a.state.showMore&&t>10)return null;var n=0===t||e.component!==r[t-1].component;return c.default.createElement(m.default,{key:t,hasTitle:n,issue:e,origin:a.sonarqubeOrigin})},a.renderMoreBtn=function(){return a.state.showMore?null:c.default.createElement("p",{className:g.default.titleShowMore},t("DISPLAY_ONLY_LAST_TEN"),",",c.default.createElement("span",{onClick:a.showMore},t("DISPLAY_ALL")))};var i=e.issues.length<=10;return a.state={showMore:i},a}return(0,i.default)(n,[{key:"sonarqubeOrigin",get:function(){var e=this.props.detail.sonarqubeDashboardUrl;return(0,f.default)(globals,"config.devops.sonarqubeURL")||(0,h.parseUrl)(e).origin}}]),(0,i.default)(n,[{key:"render",value:function(){var e=this,r=this.props,n=r.loading,a=r.issues;return n?null:a.length?c.default.createElement(p.default,{title:this.renderTitle(),operations:this.renderMoreBtn()},c.default.createElement("div",{className:g.default.content},a.map((function(t,r){return e.renderIssue(t,r)})),this.state.showMore?null:c.default.createElement("div",{className:g.default.displayAll,onClick:this.showMore},t("DISPLAY_ALL")))):null}}]),n}(c.default.Component);b.propTypes={issues:d.default.array,loading:d.default.bool},b.defaultProps={issues:[]};var E=b;r.default=E},5100:function(e,r,n){"use strict";n(15);var a=n(20);n(5),n(4),n(23),n(17),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,n(45),n(5),n(42),n(4),n(23),n(57),n(17);var o=a(n(36)),i=a(n(37)),l=a(n(55)),s=a(n(56)),u=a(n(51)),c=a(n(0)),d=a(n(1)),f=a(n(3)),p=n(186),h=a(n(1989)),m=a(n(1460));function v(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,u.default)(e);if(t){var a=(0,u.default)(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return(0,s.default)(this,r)}}var g=function(e){(0,l.default)(n,e);var r=v(n);function n(){var e;(0,o.default)(this,n);for(var a=arguments.length,i=new Array(a),l=0;l0&&void 0!==arguments[0]?arguments[0]:{},a=(0,h.default)(t,"nodeStatus",""),n=(0,h.default)(t,"createTime",""),r=(0,h.default)(t,"agentUpdateTime",""),o=(0,h.default)(t,"agentInfo.modules.nodeInfo",{}),i=(0,h.default)(t,"taskList.tasks",[]),u=o.alias,l=o.nodeIP,c=o.hostName,s=o.description,d=o.systemHardInfo,f=(0,h.default)(t,"agentInfo.modules.nodeInfo.tags.versionList",{}),p=(0,h.default)(d,"os",""),m=(0,h.default)(d,"arch",""),y=(0,h.default)(d,"osVersion",""),_=(0,h.default)(d,"timesync",""),E=(0,h.default)(d,"kernelRelease",""),b=(null!==(e=(0,h.default)(o,"systemSoftInfo.softInfo",[]))&&void 0!==e?e:[]).filter((function(e){return"uninstalled"!==e.installationStatus})),S=(0,v.getContainerEngineSofts)(b),O=(0,v.getEdgeSofts)(b);return{name:c,arch:m,alias:u,status:a,nodeIP:l,osType:p,taskList:i,timesync:_,edgeSofts:O,osVersion:y,createTime:n,description:s,versionList:f,kernelVersion:E,agentUpdateTime:r,containerEngineSofts:S,specification:(0,g.default)(d)?"-":(0,v.getNodeSpecification)(d)}}},{key:"fetchList",value:(a=(0,l.default)(r.default.mark((function e(){var t,a,n,o,u,l,c,s,d,f,p,m=this,g=arguments;return r.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=g.length>0&&void 0!==g[0]?g[0]:{},n=a.silentLoading,o=a.cluster,u=a.limit,l=void 0===u?10:u,c=a.page,s=void 0===c?1:c,d=(0,i.default)(a,["silentLoading","cluster","limit","page"]),!(g.length>1?g[1]:void 0)&&n||(this.list.isLoading=!0),l===1/0||-1===l?(d.limit=-1,d.page=1):(d.limit=l,d.page=s),e.next=6,request.get("".concat(this.apiVersion).concat(this.getPath({cluster:o}),"/").concat(this.module),d);case 6:return f=e.sent,p=(0,h.default)(f,"data.items",[]).map((function(e){return E(E({},m.mapper(e)),{},{cluster:o})})),this.list.update(E({data:p,total:null==f||null===(t=f.data)||void 0===t?void 0:t.totalItems,limit:Number(d.limit),page:Number(d.page),isLoading:!1},this.list.silent?{}:{selectedRowKeys:[]})),e.abrupt("return",p);case 10:case"end":return e.stop()}}),e,this)}))),function(){return a.apply(this,arguments)})},{key:"fetchDetail",value:(t=(0,l.default)(r.default.mark((function e(t,a){var n,o,i,u,l,c;return r.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.cluster,o=t.name,a&&(this.isLoading=!0),i={limit:10,page:1,nodeName:o},e.next=5,request.get("".concat(this.apiVersion).concat(this.getPath({cluster:n}),"/").concat(this.module),i);case 5:return u=e.sent,l=(0,h.default)(u,"data.items.[0]"),c=E(E({},this.mapper(l)),{},{cluster:n}),this.detail=c,this.isLoading=!1,e.abrupt("return",c);case 11:case"end":return e.stop()}}),e,this)}))),function(e,a){return t.apply(this,arguments)})},{key:"nodeRegister",value:function(e){var t="".concat(this.apiVersion).concat(this.getPath({cluster:e.clusterName}),"/").concat(this.module,"/register");return this.submitting(request.post(t,e))}},{key:"patchNode",value:function(e,t){var a="".concat(this.apiVersion).concat(this.getPath({cluster:e}),"/").concat(this.module,"/tasks");return request.post(a,t)}},{key:"apiVersion",get:function(){return"kapis/ota.edgewize.io/v1alpha1"}}]),o}(n(a(1039)).default),(0,m.default)(u.prototype,"mapper",[y.action],Object.getOwnPropertyDescriptor(u.prototype,"mapper"),u.prototype),(0,m.default)(u.prototype,"fetchList",[y.action],Object.getOwnPropertyDescriptor(u.prototype,"fetchList"),u.prototype),(0,m.default)(u.prototype,"fetchDetail",[y.action],Object.getOwnPropertyDescriptor(u.prototype,"fetchDetail"),u.prototype),(0,m.default)(u.prototype,"nodeRegister",[y.action],Object.getOwnPropertyDescriptor(u.prototype,"nodeRegister"),u.prototype),(0,m.default)(u.prototype,"patchNode",[y.action],Object.getOwnPropertyDescriptor(u.prototype,"patchNode"),u.prototype),u);t.default=S},1999:function(e,t,a){e.exports={header:"_1dtSSEAZZ6i6k8qHu0b9Zr",search:"_2XrdLxtFQDa12evnk4mX-0",actions:"_1R9ZAeZSYt7rpNXuVDVHMt",item:"_1qzHpkk2vTvc2aTCp97SDH",content:"_33_QIBmXr8IIB9kZDh-iCT",head:"_2Lp7QI0d6Hk0ZPaynFR6OC",headIcon:"xGiSZyOA982BtorplFzPQ",headLine:"_2kmHtQw8aGHx9cjLW7PkIs",severity:"_2b1l9tw0lgDBS1X-gStCNg",statusLine:"_1np7kgamHbmPy9mEzmmp3x",target:"_1k_Kp7POmfehKP9YXqwuE3",timeLabel:"_3RliTXiOSiFw3qlc0bho4q",time:"AzpGNicS5AfTk9WmP3d-_",time_white:"X6g4wb8zdviz5_sZQsupB",title:"_1kRMPhDnB-Z0GuSFY9p4bX",desc:"_22v7rZ_BLbmJanDShJs-z5",expanded:"_3AqrQ6m2lP-vU1FIEg_T1k",itemExtra:"_3v1A-2912_P5C1Nilyp9Uf",ms_content:"_2u3T53m-OP2QC-qjtg5wL3",ruleExpr:"YmM1pYCslrfMrE5u-pbXx",label:"gOR7QElm-46YMGNdKs_dG",value:"S7RDhqwsNoRz3CVwBkvN2",itemExtraShow:"_3wcF7y1ifEdCqPkQNmRAd9",status_disabled:"_3E3qiiTY8UPksnZV38Hr7S",status_pending:"Klc2prjxVLU3pQzWurV3l",status_firing:"_1D-ovgKVuvozv-TBLyC_M9",status_inactive:"_3WanQn9TymPniJ7kgpEZkl",info_disabled:"_1WTz8nAyEoZYzNbQIry2GB",info_pending:"_2pZGHT52XFF58kyIUB6H7Y",info_firing:"crQzDWpkF3jIjtlOQzZ3T",info_inactive:"_3C0DHoHNm01q91OiTAlf1P",critical:"_1TNKz_qZT7XJXW6cqyPhra",error:"Ev8-y2tGEFf27TMzwhJKj",footer:"_3n-Mp25-HUWl3E9OQ5VqV9",pageSizeBox:"_2j2lmlWad1y86enW5FnR0S",pagesize:"_3qQlfKSFdQ6OK7tCryq3mI",text:"_2A5oOZLluEyJIkGRbYuod4",gap:"_2dEs2IrRMr7UAj0lBu0gnm",pageSizeMenu:"_1E7zOFq2Uqxq4uCs1tr5F_",pageSizeMenuitem:"_3PASTmHE3QRBPjuyMNlu96"}},5163:function(e,t,a){"use strict";a(15);var n=a(20);a(5),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(5);var r=n(a(61)),o=a(317),i=n(a(5164)),u=n(a(5166)),l=n(a(5170)),c=n(a(5172)),s=n(a(5175)),d=n(a(5176)),f=n(a(5177)),p=n(a(5179)),m=n(a(5180)),h=n(a(5183)),g=n(a(5187)),y=n(a(5188)),v=n(a(5189)),_=n(a(5190)),E=n(a(5191)),b=n(a(5204)),S=n(a(5205)),O=n(a(5206)),k=n(a(5207)),T=n(a(5209)),C=n(a(5214)),N=n(a(5215)),A=n(a(5259)),R=n(a(5260)),D=n(a(2002)),P="/v2/edgewize/clusters/:cluster",w=[{path:"/v2/edgewize",component:h.default,exact:!0},{path:"/workspaces/:workspace/v2/edgewize",component:h.default,exact:!0},{path:"/v2/edgewize/create",component:R.default,exact:!0},{path:P,component:v.default,routes:[].concat((0,r.default)(N.default),[{component:_.default,routes:[{path:"".concat(P,"/fota"),component:m.default,exact:!0},{path:"".concat(P,"/nodes"),component:k.default,exact:!0},{path:"".concat(P,"/node-groups"),component:c.default,exact:!0},{path:"".concat(P,"/projects"),component:s.default,exact:!0},{path:"".concat(P,"/deployments"),component:S.default,exact:!0},{path:"".concat(P,"/statefulsets"),component:O.default,exact:!0},{path:"".concat(P,"/daemonsets"),component:b.default,exact:!0},{path:"".concat(P,"/jobs"),component:d.default,exact:!0},{path:"".concat(P,"/cronjobs"),component:y.default,exact:!0},{path:"".concat(P,"/pods"),component:f.default,exact:!0},{path:"".concat(P,"/services"),component:g.default,exact:!0},{path:"".concat(P,"/secrets"),component:l.default,exact:!0},{path:"".concat(P,"/configmaps"),component:p.default,exact:!0},{path:"".concat(P,"/resource-usage"),component:E.default},{path:"".concat(P,"/alerts"),component:i.default,exact:!0},{path:"".concat(P,"/rule-group"),component:u.default,exact:!0},{path:"".concat(P,"/base-info"),component:T.default,exact:!0},{path:"".concat(P,"/members"),component:C.default,exact:!0},{path:"".concat(P,"/roles"),component:A.default,exact:!0},{path:"".concat(P,"/edgeippool"),component:D.default,exact:!0},(0,o.getIndexRoute)({path:P,to:"".concat(P,"/fota"),exact:!0}),(0,o.getIndexRoute)({path:"".concat(P,"/workloads"),to:"".concat(P,"/deployments"),exact:!0})]}])}];t.default=w},5164:function(e,a,n){"use strict";var r=n(20),o=n(157);n(12),n(5),n(11),n(31),n(6),n(86),n(18),n(16),n(9),n(13),n(10),n(4),n(23),n(24),n(17),n(62),n(188),n(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,n(12),n(45),n(5),n(11),n(31),n(6),n(86),n(18),n(28),n(42),n(16),n(34),n(15),n(9),n(13),n(10),n(4),n(23),n(57),n(24),n(17),n(62),n(188),n(7);var i,u=r(n(315)),l=r(n(30)),c=r(n(36)),s=r(n(37)),d=r(n(55)),f=r(n(56)),p=r(n(51)),m=r(n(0)),h=r(n(3)),g=r(n(451)),y=r(n(26)),v=n(433),_=r(n(796)),E=r(n(792)),b=r(n(795)),S=r(n(790)),O=o(n(793)),k=r(n(1151)),T=n(72),C=n(878),N=n(52),A=n(832),R=r(n(1996)),D=r(n(5165));function P(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,n)}return a}function w(e){for(var t=1;t0?"builtin":"custom"},e.handleTabChange=function(t){e.setState({type:t},(function(){e.props.store.list.reset(),e.getData()}))},e.getData=function(t){e.props.store.fetchList(w(w(w({},e.props.match.params),t),{},{sortBy:"activeAt",type:e.state.type}))},e.getResourceType=function(e){var a=(0,g.default)(e);return t("ALERT_TYPE",{type:t(a)})},e.getColumns=function(){var a=e.props,n=a.getFilteredValue,r=a.getSortOrder;return[{title:t("MESSAGE"),dataIndex:"name",render:function(e,t){return m.default.createElement(S.default,{icon:"loudspeaker",title:(0,y.default)(t,"annotations.summary"),description:(0,y.default)(t,"annotations.message")||(0,y.default)(t,"annotations.description","-")})}},{title:t("STATUS"),dataIndex:"state",filters:e.getStatus(),filteredValue:n("state"),isHideable:!0,search:!0,width:"12%",render:function(e){return m.default.createElement(b.default,{type:e,name:t("ALERT_RULE_".concat(e.toUpperCase()),{defaultValue:e})})}},{title:t("SEVERITY"),dataIndex:"labels.severity",filters:e.getAlertingTypes(),filteredValue:n("labels.severity"),isHideable:!0,search:!0,width:"12%",render:function(e){var a=k.default.find((function(t){return t.value===e}));return a?m.default.createElement("span",{style:{backgroundColor:a.bgColor,color:a.color,fontWeight:600,padding:"0px 4px"}},t(a.label)):"-"}},{title:t("ALERTING_POLICY"),dataIndex:"ruleName",isHideable:!0,width:"12%",render:function(t,a){var n=(0,y.default)(a,"labels.rule_group");return m.default.createElement(v.Link,{to:"builtin"===e.state.type?"".concat(e.getPrefix(),"/alert-rules/builtin/").concat(n):"".concat(e.getPrefix(),"/alert-rules/").concat(n)},n)}},{title:t("MONITORING_TARGET"),dataIndex:"labels",isHideable:!0,width:"16%",render:function(a){var n=(0,C.getAlertingResource)(a),r=n.module,o=n.name,i=n.namespace;return r?"hpas"===r?m.default.createElement("span",null,t(T.MODULE_KIND_MAP[r]),": ",o):m.default.createElement(v.Link,{to:"".concat(e.getPrefix({namespace:i}),"/").concat(r,"/").concat(o)},t(T.MODULE_KIND_MAP[r]),": ",o):"-"}},{title:t("TRIGGER_TIME"),dataIndex:"activeAt",isHideable:!0,width:200,sorter:!0,sortOrder:r("activeAt"),render:function(e){return(0,N.getLocalTime)(e).format("YYYY-MM-DD HH:mm:ss")}}]},e}return(0,s.default)(n,[{key:"componentDidMount",value:function(){var e=this.props.match.params,t=e.cluster;!e.namespace&&this.props.store.fetchCount({cluster:t})}},{key:"getPrefix",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.cluster,a=e.namespace,n=this.props.match.params,r=n.cluster,o=n.namespace,i=n.workspace;return t=t||r,a=a||o,"/v2/edgewize".concat(i?"/".concat(i):"","/clusters/").concat(t).concat(a?"/projects/".concat(a):"")}},{key:"getTableProps",value:function(){return{tableActions:w(w({},this.props.tableProps.tableActions),{},{selectActions:[]}),emptyProps:{desc:t("ALERTING_MESSAGE_EMPTY_DESC")}}}},{key:"getAlertingTypes",value:function(){return A.SEVERITY_LEVEL.map((function(e){return{text:t(e.label),value:e.value}}))}},{key:"getStatus",value:function(){return["pending","firing"].map((function(e){return{text:t("ALERT_RULE_".concat(e.toUpperCase())),value:e}}))}},{key:"render",value:function(){var e=this.props,a=e.bannerProps,n=e.tableProps;return m.default.createElement(O.ListPage,(0,u.default)({},this.props,{getData:this.getData,noWatch:!0}),m.default.createElement(E.default,(0,u.default)({},a,{tips:this.tips,tabs:this.tabs,icon:"loudspeaker",title:t("ALERTING_MESSAGE_PL"),description:t("ALERT_MESSAGE_DESC"),className:(0,h.default)(D.default.tab_button,a.className)})),m.default.createElement(_.default,(0,u.default)({},n,this.getTableProps(),{rowKey:"id",itemActions:[],columns:this.getColumns()})))}},{key:"tabs",get:function(){var e=this.props.match.params.namespace;globals.app.hasKSModule("whizard"),(0,y.default)(globals,"ksConfig.multicluster",!1);if(e)return{};var a={value:this.state.type,onChange:this.handleTabChange,options:[{value:"custom",label:t("ALERTS_FROM_CUSTOM_POLICIES"),count:this.props.store.ruleCount}]};(0,N.checkComponentAuthorized)({componentName:"whizard",componentConstraints:(0,y.default)(globals,"licenseInfo.componentConstraints",[])});return a}},{key:"tips",get:function(){return[{title:t("REQUESTS_FOR_TRIGGER_AN_ALARM_Q"),description:t("REQUESTS_FOR_TRIGGER_AN_ALARM_A")}]}}]),n}(m.default.Component))||i;a.default=x},5165:function(e,t,a){e.exports={tab_button:"_3TwronK3Y8Qo-B879UAiYJ"}},5166:function(e,a,n){"use strict";(function(e){var r=n(20),o=n(157);n(12),n(109),n(5),n(187),n(11),n(6),n(84),n(86),n(18),n(16),n(9),n(13),n(10),n(4),n(23),n(24),n(17),n(85),n(62),n(188),n(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,n(12),n(109),n(45),n(5),n(187),n(11),n(6),n(84),n(86),n(18),n(28),n(42),n(16),n(34),n(15),n(9),n(13),n(10),n(4),n(22),n(23),n(57),n(24),n(17),n(85),n(62),n(188),n(7);var i=r(n(61)),u=r(n(315)),l=r(n(43)),c=r(n(30)),s=r(n(58));n(41);var d,f=r(n(44)),p=r(n(36)),m=r(n(37)),h=r(n(55)),g=r(n(56)),y=r(n(51)),v=r(n(0)),_=n(14),E=r(n(26)),b=r(n(3)),S=r(n(788)),O=r(n(795)),k=r(n(792)),T=o(n(793)),C=r(n(796)),N=n(878),A=r(n(1997)),R=n(832),D=n(52),P=r(n(5167)),w=r(n(5169));function I(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,n)}return a}function x(e){for(var t=1;t0?"builtin":"custom"},e.handleTabChange=function(t){e.setState({type:t},(function(){e.props.store.list.reset(),e.getData()}))},e.getData=(0,f.default)(l.default.mark((function t(){var a,n,r,o,i=arguments;return l.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=i.length>0&&void 0!==i[0]?i[0]:{},n=a.silent,r=(0,s.default)(a,["silent"]),o=e.props.store,n&&(o.list.silent=!0),t.next=5,o.fetchList(x(x(x({},e.props.match.params),r),{},{type:e.state.type}));case 5:o.list.silent=!1;case 6:case"end":return t.stop()}}),t)}))),e.getColumns=function(){var a=e.props.getFilteredValue;return[{title:t("NAME"),dataIndex:"name",search:!0,render:function(t,a){return v.default.createElement(S.default,{avatar:"/assets/bell_gear_duotone.svg",title:(0,D.getDisplayName)(a),desc:a.description,className:w.default["table-icon"],to:"builtin"===e.state.type?"".concat(e.props.match.url,"/builtin/").concat(a.name):"".concat(e.props.match.url,"/").concat(t)})}},{title:t("POLICY_STATUS"),dataIndex:"enable",filters:e.getEnableFilter(),filteredValue:a("enable"),isHideable:!0,search:!0,width:"16%",render:function(e,a){return v.default.createElement(O.default,{className:w.default.status_icon,type:a.enabled&&JSON.parse(a.enabled)?"active":"disabled",name:a.enabled&&JSON.parse(a.enabled)?t("ENABLED"):t("DISABLED")})}},{title:t("RULE_STATUS"),dataIndex:"state",search:!0,filters:e.getStatus(),isHideable:!0,width:"16%",render:function(e,t){return v.default.createElement(P.default,{rulesStats:t.rulesStats})}},{title:t("TIME_SPENT"),dataIndex:"evaluationTime",isHideable:!0,width:"12%",render:function(e){return v.default.createElement("span",null,"-"!==e?t("TIME_S",{num:e}):e)}},{title:t("RECENT_DETECT_TIME"),dataIndex:"lastEvaluation",isHideable:!0,width:"15.8%",render:function(e,t){var a=(0,E.default)(t._originDataWithStatus,"status.lastEvaluation");return v.default.createElement("span",null,a?(0,D.getLocalTime)(a).format("YYYY-MM-DD HH:mm:ss"):"-")}}]},e.showCreate=function(){var a=e.props,n=a.match,r=a.routing,o=a.module;return e.props.trigger("alerting.policy.create",{module:o,isEdgeWize:!0,cluster:n.params.cluster,namespace:n.params.namespace,title:t("CREATE_ALERTING_POLICY"),success:r.query})},e}return(0,m.default)(r,[{key:"componentDidMount",value:function(){var e=this.props.match.params,t=e.cluster;!e.namespace&&this.props.store.fetchCount({cluster:t}),localStorage.removeItem("alert-policy-detail-referrer")}},{key:"getStatus",value:function(){return N.ALERTING_STATUS.map((function(e){return{text:t("ALERT_RULE_".concat(e.toUpperCase())),value:e}}))}},{key:"getEnableFilter",value:function(){return[{text:t("ENABLED"),value:"true"},{text:t("DISABLED"),value:"false"}]}},{key:"getAlertingTypes",value:function(){return R.SEVERITY_LEVEL.map((function(e){return{text:t(e.label),value:e.value}}))}},{key:"render",value:function(){var e=this.props,t=e.bannerProps,a=e.tableProps,n=this.showCreate,r=this.tableActions;return"builtin"===this.state.type&&(r.selectActions=r.selectActions.filter((function(e){return"delete"!==e.action})).concat(this.resetPolicy),n=null),v.default.createElement(T.ListPage,(0,u.default)({},this.props,{getData:this.getData,noWatch:!0}),v.default.createElement(k.default,(0,u.default)({},t,{icon:function(){return v.default.createElement("img",{src:"/assets/bell_gear_duotone.svg"})},tips:this.tips,tabs:this.tabs,className:(0,b.default)(w.default.tab_button,t.className)})),v.default.createElement(C.default,(0,u.default)({},a,{rowKey:"name",itemActions:this.itemActions,columns:this.getColumns(),tableActions:r,onCreate:n})))}},{key:"tabs",get:function(){var e=this.props.match.params.namespace;globals.app.hasKSModule("whizard"),(0,E.default)(globals,"ksConfig.multicluster",!1);if(e)return{};var a={value:this.state.type,onChange:this.handleTabChange,options:[{value:"custom",label:t("CUSTOM_POLICIES"),count:this.props.store.ruleCount}]};(0,D.checkComponentAuthorized)({componentName:"whizard",componentConstraints:(0,E.default)(globals,"licenseInfo.componentConstraints",[])});return a}},{key:"tips",get:function(){return[{title:t("REQUESTS_FOR_PUSH_AN_ALARM_Q"),description:t("REQUESTS_FOR_PUSH_AN_ALARM_A")}]}},{key:"itemActions",get:function(){var a=this.props,n=a.trigger,r=a.routing,o=a.match,i=a.name,u=this.state.type,l=[{key:"edit",icon:"pen",text:t("EDIT_INFORMATION"),action:"edit",onClick:function(a){n("alerting.baseinfo.edit",{type:u,detail:a,module:e,cluster:o.params.cluster,namespace:o.params.namespace,title:t("EDIT_ALERTING_POLICY"),success:r.query})}},{key:"editYaml",icon:"pen",text:t("EDIT_YAML"),action:"edit",onClick:function(e){return n("alerting.yaml.edit",{type:u,detail:e,cluster:o.params.cluster,namespace:o.params.namespace,title:t("EDIT_ALERTING_POLICY"),success:r.query})}},{key:"editRule",icon:"wrench",text:t("EDIT_ALERT_RULES"),action:"edit",onClick:function(e){n("alerting.rule.edit",{type:u,detail:e,isEdgeWize:!0,cluster:o.params.cluster,namespace:o.params.namespace,success:r.query})}},{key:"disablePolicy",icon:function(e){return JSON.parse(e.enabled)?"stop":"start"},text:function(e){return JSON.parse(e.enabled)?t("DISABLE"):t("ENABLE")},action:"edit",onClick:function(e){var a=JSON.parse(e.enabled);n(a?"alerting.rule.update":"enable.alerting.rule",{type:u,detail:e,cluster:o.params.cluster,namespace:o.params.namespace,resourceName:i,success:r.query,title:a?t("DISABLE_ALERTING_POLICY"):t("ENABLE_ALERTING_POLICY"),enabled:a})}}];return"builtin"===u?l.push(this.resetPolicy):l.push({key:"delete",icon:"trash",text:t("DELETE"),action:"delete",onClick:function(e){return n("alerting.rule.delete",{type:u,name:i,cluster:o.params.cluster,namespace:o.params.namespace,detail:e,success:r.query})}}),l}},{key:"tableActions",get:function(){var e=this.props,a=e.tableProps,n=e.trigger,r=e.name,o=e.store,u=e.match,l=e.routing,c=this.state.type,s=(0,_.toJS)(o.list.data),d=(0,_.toJS)(o.list.selectedRowKeys),f=s.filter((function(e){return d.includes(e.name)})).every((function(e){return!JSON.parse(e.enabled)})),p=s.filter((function(e){return d.includes(e.name)})).every((function(e){return JSON.parse(e.enabled)}));return x(x({},a.tableActions),{},{selectActions:[].concat((0,i.default)(a.tableActions.selectActions),[{key:"enable",text:t("ENABLE"),action:"edit",disabled:p,onClick:function(){n("enable.alerting.rule",{type:c,resourceName:r,cluster:u.params.cluster,namespace:u.params.namespace,title:t("ENABLE_ALERTING_POLICY"),enabled:!1,success:l.query,batchMode:!0})}},{key:"disable",text:t("DISABLE"),action:"edit",disabled:f,onClick:function(){n("alerting.rule.update",{type:c,resourceName:r,cluster:u.params.cluster,namespace:u.params.namespace,enabled:!0,success:l.query,batchMode:!0})}}])})}},{key:"resetPolicy",get:function(){var e=this.props,a=e.match,n=e.trigger,r=e.routing,o=this.state.type;return{key:"reset",icon:"restart",text:t("RESET"),action:"edit",onClick:function(e){return n("alerting.rule.reset",{type:o,cluster:a.params.cluster,detail:e,success:r.query})}}}}]),r}(v.default.Component))||d;a.default=L}).call(this,n(138)(e))},5167:function(e,a,n){"use strict";n(15);var r=n(20);n(18),n(98),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var o=r(n(30)),i=r(n(96));n(18),n(98);var u=r(n(0)),l=n(186),c=r(n(3)),s=r(n(5168)),d=function(e){var a=e.rulesStats,n={pending:t("ALERT_RULE_PENDING"),inactive:t("ALERT_RULE_INACTIVE"),firing:t("ALERT_RULE_FIRING"),disabled:t("DISABLED")},r=Object.entries(a).map((function(e){var t=(0,i.default)(e,2),a=t[0],r=t[1];return{label:n[a],type:a,value:r}}));return u.default.createElement(l.Tooltip,{content:u.default.createElement(u.default.Fragment,null,r.map((function(e,t){return u.default.createElement("div",{key:t,className:(0,c.default)(s.default.tipContent,[s.default[e.type]],(0,o.default)({},s.default.disabled,0===e.value))},u.default.createElement("span",null,e.label),u.default.createElement("span",null,e.value))}))),placement:"right"},u.default.createElement("ul",{className:s.default.statusBox},r.map((function(e,t){return u.default.createElement("li",{key:t,className:(0,c.default)([s.default["li-".concat(e.type)]],(0,o.default)({},s.default.iconDisabled,0===e.value))},e.value)}))))};a.default=d},5168:function(e,t,a){e.exports={statusBox:"_1ifBF6uR3piHmnGKy2KeOF",tipContent:"_3l80VIQfA1pKw9v6EiYkzK","li-inactive":"_3ecrJy4W7YhbEEsiLO5ENs","li-pending":"_3_PsZRK47V8kEpDYsaJyvu","li-firing":"_2ihayyQZ2h2THkmoV93dw7","li-disabled":"_3O2bP5_W6mtZSuiIRB9ogv",pending:"Qododr5F_fjRDdxajUxgI",inactive:"_3B_vcVe6pcr-JTxv5Kbq9R",firing:"_2RlAl_U2bFzsRhmPwSoevW",disabled:"_1bpqcIWHC4pCdP3mpABoYm",iconDisabled:"_1HhVa4_F79hgktZOZgAAlA"}},5169:function(e,t,a){e.exports={wrapper:"_3zs_CJyIWC71XuROA_HGK_",header:"_1Wy5h4COvZNxR87_drxa2v",banner:"_3T4NcsqU688GRDEPiT9neu",toolbar:"_3skWeeDoFMfgVdcHEuZE20",keyword:"_3Zc1VKV1bygx_F9RC2WrDN",loading:"_2LSD5jajUtejwRMR0ZNi-j",bottomLine:"_1fR9vfeSt10x5s8i0KPflb","table-icon":"_2nbD58szANtmvukQz-QYk6",status_icon:"_1PC_QEU_4OzIdAGjMHG3oe",tab_button:"_3TpcGtc6krQu0FH_SROs9a"}},5170:function(e,a,n){"use strict";n(15);var r=n(20);n(12),n(109),n(5),n(16),n(10),n(4),n(23),n(24),n(17),n(62),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,n(12),n(109),n(45),n(5),n(42),n(16),n(10),n(4),n(23),n(57),n(24),n(17),n(62);var o,i=r(n(315)),u=r(n(36)),l=r(n(37)),c=r(n(55)),s=r(n(56)),d=r(n(51)),f=r(n(0)),p=n(433),m=r(n(788)),h=r(n(792)),g=n(793),y=r(n(810)),v=r(n(933)),_=n(52),E=n(72),b=r(n(5171));function S(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,n=(0,d.default)(e);if(t){var r=(0,d.default)(this).constructor;a=Reflect.construct(n,arguments,r)}else a=n.apply(this,arguments);return(0,s.default)(this,a)}}var O=(0,g.withClusterList)({store:new v.default,module:"secrets",name:"SECRET",rowKey:"uid"})(o=function(e){(0,c.default)(n,e);var a=S(n);function n(){var e;(0,u.default)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i0&&p.default.createElement("span",null,">"," "),p.default.createElement("span",null,e),l[t]&&p.default.createElement("span",null,"(",l[t],")"))})));return p.default.createElement(v.Tooltip,{content:c,placement:"bottom"},p.default.createElement("span",null,p.default.createElement("span",null,"".concat((0,h.default)(u))),(0,h.default)(l)&&p.default.createElement("span",null,"(","".concat((0,h.default)(l)),")")))}return"-"}},{title:t("CREATION_TIME_TCAP"),dataIndex:"createTime",sorter:!0,sortOrder:a("createTime"),isHideable:!0,width:"17.8%",render:function(e){return(0,b.getLocalTime)(e).format("YYYY-MM-DD HH:mm:ss")}}]},r.showCreate=function(){r.props.trigger("node.group.create",A(A({store:r.nodeTreeStore,module:r.props.module},r.props.match.params),{},{success:function(){return r.props.getData()}}))},r.state={tab:"list"},r}return(0,c.default)(n,[{key:"renderContent",value:function(){if("tree"===this.state.tab){var e=this.props.match.params.cluster;return p.default.createElement(T.NodeTree,(0,i.default)({cluster:e},this.props))}var t=this.props.tableProps;return p.default.createElement(E.default,(0,i.default)({},t,{columns:this.getColumns(),itemActions:this.itemActions,onCreate:this.showCreate,searchType:"name"}))}},{key:"render",value:function(){var e=this.props.bannerProps;return p.default.createElement(S.ListPage,(0,i.default)({},this.props,{noWatch:!0}),p.default.createElement(y.default,(0,i.default)({},e,{icon:"node-group",tabs:this.tabs})),this.renderContent())}},{key:"tabs",get:function(){return{value:this.state.tab,onChange:this.handleTabChange,options:[{value:"list",label:t("NODE_GROUP_LIST")},{value:"tree",label:t("NODE_GROUP_TREE")}]}}},{key:"itemActions",get:function(){var e=this.props,a=e.trigger,n=e.name,r=e.getData,o=e.match;return[{key:"edit",icon:"pen",text:t("EDIT_INFORMATION"),action:"edit",show:this.showAction,onClick:function(e){return a("node.group.baseinfo.edit",A(A({detail:e},o.params),{},{success:r}))}},{key:"delete",icon:"trash",text:t("DELETE"),action:"delete",show:this.showAction,onClick:function(e){a("resource.delete",{type:n,detail:e,success:r})}}]}}]),n}(p.default.Component))||o;a.default=D},5173:function(e,a,n){"use strict";var r=n(157),o=n(20);n(12),n(109),n(5),n(11),n(6),n(18),n(16),n(9),n(13),n(10),n(24),n(62),n(188),n(7),Object.defineProperty(a,"__esModule",{value:!0}),a.NodeTree=A,a.default=void 0;var i=o(n(315)),u=o(n(43));n(41);var l=o(n(30)),c=o(n(44)),s=o(n(96));n(12),n(109),n(5),n(11),n(6),n(18),n(28),n(859),n(16),n(34),n(15),n(9),n(13),n(10),n(4),n(22),n(24),n(62),n(188),n(7);var d=r(n(0)),f=o(n(26)),p=o(n(63)),m=n(433),h=o(n(3)),g=n(186),y=o(n(240)),v=o(n(1176)),_=o(n(953)),E=o(n(1318)),b=n(5174),S=o(n(1584)),O=o(n(1320));function k(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,n)}return a}function T(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:[];return null==t||t.forEach((function(t){var n,r;(a.push(t.metadata.name),null===(n=t.spec)||void 0===n?void 0:n.children)&&e(null===(r=t.spec)||void 0===r?void 0:r.children,a)})),a}(A);I(e)}else I([])}),[G,A]),(0,d.useEffect)((function(){!function(){(null==this?void 0:this.props)&&(this.props=e)}(),W()}),[]),d.default.createElement(g.Columns,{className:O.default["node-tree"]},d.default.createElement(g.Column,{className:(0,h.default)(O.default["node-tree-left"],"is-4")},d.default.createElement("div",{className:O.default["node-tree-bg"]},d.default.createElement(g.InputSearch,{className:O.default.search,name:"search",value:L.searchValue,placeholder:t("SEARCH_BY_NAME"),onChange:function(e,t){j({searchValue:t,page:1})},autoComplete:"off"}),d.default.createElement("div",null,d.default.createElement("div",{className:(0,h.default)(O.default["node-group__tree-item"],O.default["node-group__tree-item-margin"])},d.default.createElement("img",{className:O.default.icon,width:20,src:"/assets/disk_group.svg",alt:""}),d.default.createElement("span",{className:O.default["node-group__tree-item-title"],onClick:W},"全部节点组"),d.default.createElement("img",{className:O.default["node-group__tree-item-icon-hover"],name:G?"sort-ascending":"sort-descending",width:20,src:"/assets/".concat(G?"close_all":"expand_all",".svg"),onClick:function(){return Y(!G)},alt:""}),d.default.createElement("span",{className:O.default["node-group__tree-item-add"]},d.default.createElement(g.Icon,{onClick:function(){e.trigger("node.group.create",T(T({store:C,module:e.module},e.match.params),{},{success:function(){W()}}))},className:O.default["node-group__tree-item-icon-hover"],type:"light",name:"add",size:20}))),d.default.createElement(E.default,{treeData:A,expandedKeys:w,onSelect:function(e){B(e),C.setSelectRowKeys([e])},autoExpandParent:G,renderMenu:function(a){var n,r=[d.default.createElement(g.Menu.MenuItem,{key:"edit"},t("EDIT_INFORMATION"))];return(null===(n=a.spec.children)||void 0===n?void 0:n.length)||(r.unshift(d.default.createElement(g.Menu.MenuItem,{key:"move"},t("MOVE_NODE_GROUP_TREE"))),r.push(d.default.createElement(g.Menu.MenuItem,{key:"delete"},t("DELETE")))),d.default.createElement(g.Dropdown,{content:d.default.createElement(g.Menu,{onClick:function(t,n){switch(n){case"delete":!function(e){J.apply(this,arguments)}(a);break;case"move":!function(t){var a;e.trigger("node.group.tree.move",T(T({},e.match.params),{},{onOk:(a=(0,c.default)(u.default.mark((function e(a){return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",C.moveTreeNode({cluster:v,nodetree:t.key,params:[{op:"replace",path:"/spec/parent",value:a}]}));case 1:case"end":return e.stop()}}),e)}))),function(e){return a.apply(this,arguments)}),required:!1,visible:!0,success:W}))}(a);break;case"edit":!function(e){q.apply(this,arguments)}(a)}}},r.map((function(e){return e})))},d.default.createElement(g.Icon,{name:"more",size:"20"}))},filterName:L.searchValue})))),d.default.createElement(g.Column,{className:O.default["node-tree-right"]},!(0,p.default)(V)&&d.default.createElement(S.default,{handleBindIp:function(){var t;e.trigger("edge.nodegroup.ippool.add",T(T({module:"ippools"},l),{},{group:null===(t=V.metadata)||void 0===t?void 0:t.name,store:N,success:function(e){var t;W(),(null===(t=V.metadata)||void 0===t?void 0:t.annotations)&&(V.metadata.annotations["infra.kubesphere.io/ippool-".concat(e.namespace)]=e.ippool)}}))},cluster:v,detail:V,renderBtn:d.default.createElement(g.Button,null,d.default.createElement(m.Link,{to:"/node-groups/clusters/".concat(v,"/").concat(null==V||null===(a=V.metadata)||void 0===a?void 0:a.name,"/nodes?path=").concat(o.pathname),className:"ellipsis block"},t("管理节点组")))}),d.default.createElement(b.EdgewizeNodeTable,(0,i.default)({ref:r},e,{node:V,cluster:v,itemActions:[{key:"delete",icon:"trash",text:t("UNBOUND_NODE_GROUP"),action:"delete",onClick:(n=(0,c.default)(u.default.mark((function t(a){var n,o;return u.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,C.checkNodeGroupEdgeNode({cluster:v,nodegroup:V.key,name:a.metadata.name});case 2:if((o=t.sent).metadata.annotations["apps.edgewize.io/drain-nodegroup"]===(null===(n=V.metadata)||void 0===n?void 0:n.name)){t.next=6;break}return y.default.error("无法移出该节点,节点上存在 非系统项目空间的 pod"),t.abrupt("return");case 6:e.trigger("edgeNode.unbound.nodeGroup",{resource:a.metadata.name,params:{cluster:v,nodegroup:V.key,name:a.metadata.name,params:o},store:C,success:function(){var e,t;null===(e=r.current)||void 0===e||null===(t=e.getData)||void 0===t||t.call(e)}});case 7:case"end":return t.stop()}}),t)}))),function(e){return n.apply(this,arguments)})}]}))))}var R=A;a.default=R},5174:function(e,a,n){"use strict";var r=n(157),o=n(20);n(12),n(5),n(11),n(31),n(6),n(18),n(16),n(9),n(13),n(10),n(24),n(62),n(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=a.EdgewizeNodeTable=void 0,n(12),n(5),n(11),n(31),n(6),n(18),n(28),n(16),n(34),n(15),n(9),n(13),n(10),n(4),n(436),n(22),n(24),n(62),n(7);var i=o(n(43)),u=o(n(30));n(41);var l=o(n(315)),c=o(n(44)),s=o(n(96)),d=r(n(0)),f=o(n(26)),p=o(n(63)),m=n(186),h=o(n(796)),g=o(n(788)),y=o(n(795)),v=o(n(790)),_=n(444),E=n(72),b=n(794),S=o(n(954)),O=o(n(953)),k=o(n(1585));function T(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,n)}return a}function C(e){for(var t=1;t=.9&&d.default.createElement(m.Icon,{name:"exclamation"})),description:"".concat(t.cpu_used,"/").concat(t.cpu_total," Core")})}},{title:t("MEMORY"),key:"memory",isHideable:!0,render:function(e){var t=F(e,[{type:"memory_used",unit:"Gi"},{type:"memory_total",unit:"Gi"},{type:"memory_utilisation"}]);return d.default.createElement(v.default,{title:d.default.createElement("div",{className:k.default.resource},d.default.createElement("span",null,"".concat(Math.round(100*t.memory_utilisation),"%")),t.memory_utilisation>=.9&&d.default.createElement(m.Icon,{name:"exclamation"})),description:"".concat(t.memory_used,"/").concat(t.memory_total," GiB")})}},{title:t("POD_PL"),key:"pods",isHideable:!0,render:function(e){var t=F(e,[{type:"pod_used"},{type:"pod_total"}]),a=t.pod_total?parseFloat(t.pod_used/t.pod_total):0;return d.default.createElement(v.default,{title:"".concat(Math.round(100*a),"%"),description:"".concat(t.pod_used,"/").concat(t.pod_total)})}},{title:t("FROM_NODE_GROUP"),dataIndex:"nodegroup",isHideable:!1,search:!1,render:function(e,t){var a=(t||{}).metadata;return(null==a?void 0:a.labels["apps.edgewize.io/nodegroup"])||""}}],isLoading:null==U?void 0:U.isLoading}))}));a.EdgewizeNodeTable=R;var D=R;a.default=D},5175:function(e,a,n){"use strict";var r=n(20),o=n(157);n(12),n(109),n(5),n(11),n(31),n(6),n(16),n(9),n(13),n(10),n(4),n(23),n(24),n(17),n(62),n(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,n(12),n(109),n(45),n(5),n(11),n(31),n(6),n(28),n(42),n(16),n(34),n(15),n(9),n(13),n(10),n(4),n(22),n(23),n(57),n(24),n(17),n(62),n(7);var i=r(n(315)),u=r(n(43)),l=r(n(30)),c=r(n(58));n(41);var s,d=r(n(44)),f=r(n(36)),p=r(n(37)),m=r(n(55)),h=r(n(56)),g=r(n(51)),y=r(n(0)),v=r(n(26)),_=r(n(189)),E=r(n(788)),b=r(n(795)),S=r(n(792)),O=r(n(796)),k=o(n(793)),T=n(52),C=n(794),N=r(n(970)),A=r(n(1197)),R=n(1195);function D(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,n)}return a}function P(e){for(var t=1;t0&&void 0!==i[0]?i[0]:{},n=a.silent,r=(0,c.default)(a,["silent"]),e.query=r,r.type=r.type||"user",e.type=r.type,o=e.props.store,n&&(o.list.silent=!0),t.next=8,o.fetchList(P(P({},e.props.match.params),r));case 8:o.list.silent=!1;case 9:case"end":return t.stop()}}),t)}))),e.getLastValue=function(t,a){var n=e.monitoringStore.data,r=((0,v.default)(n,"".concat(a,".data.result"))||[]).find((function(e){return(0,v.default)(e,"metric.namespace")===t.name}));return(0,v.default)(r,"value[1]",0)},e.getColumns=function(){var a=e.props,n=a.getSortOrder,r=a.prefix;return[{title:t("NAME"),dataIndex:"name",sorter:!0,sortOrder:n("name"),render:function(e,t){return y.default.createElement(E.default,{to:"Terminating"===t.status?null:"".concat(r,"/").concat(e),icon:"project",iconSize:40,isMultiCluster:t.isFedHostNamespace,desc:t.description||"-",title:(0,T.getDisplayName)(t)})}},{title:t("STATUS"),dataIndex:"status",isHideable:!0,render:function(e){return y.default.createElement(b.default,{type:e,name:t(e.toUpperCase()),flicker:!0})}},{title:t("WORKSPACE"),dataIndex:"workspace",isHideable:!0},{title:t("CPU_USAGE"),key:"namespace_cpu_usage",isHideable:!0,render:function(t){return(0,C.getSuitableValue)(e.getLastValue(t,R.MetricTypes.cpu),"cpu","-")}},{title:t("MEMORY_USAGE"),key:"namespace_memory_usage_wo_cache",isHideable:!0,render:function(t){return(0,C.getSuitableValue)(e.getLastValue(t,R.MetricTypes.memory),"memory","-")}},{title:t("GPU_USAGE"),key:"namespace_gpu_usage",isHideable:!0,render:function(t){return(0,C.getSuitableValue)(e.getLastValue(t,R.MetricTypes.gpu),"gpu","-")}},{title:t("GPU_MEMORY_USAGE"),key:"namespace_gpu_memory_usage",isHideable:!0,render:function(t){return(0,C.getSuitableValue)(e.getLastValue(t,R.MetricTypes.gpu_memory),"memory","-")}},{title:t("POD_PL"),key:"namespace_pod_count",isHideable:!0,render:function(t){return e.getLastValue(t,R.MetricTypes.pod)}}]},e.handleFetch=function(t,a){e.props.routing.query(P(P({},t),{},{type:e.type}),a)},e.handleTabChange=function(t){var a=e.props.match.params.cluster;e.props.routing.push("/v2/edgewize/clusters/".concat(a,"/projects?type=").concat(t))},e.showAction=function(e){return!e.isFedManaged},e.showCreate=function(){return e.props.trigger("project.create",P(P({},e.props.match.params),{},{isEdgeWize:!0,success:function(){return e.getData()}}))},e}return(0,p.default)(n,[{key:"render",value:function(){var e=this.props,t=e.bannerProps,a=e.tableProps,n=this.monitoringStore.isLoading,r=(0,T.hideGPUByLicense)(this.getColumns(),this.cluster);return y.default.createElement(k.ListPage,(0,i.default)({},this.props,{getData:this.getData,module:"namespaces"}),y.default.createElement(S.default,(0,i.default)({},t,{tabs:this.tabs})),y.default.createElement(O.default,(0,i.default)({},a,{itemActions:this.itemActions,tableActions:this.tableActions,columns:r,onCreate:"system"===this.type?null:this.showCreate,isLoading:a.isLoading||n,searchType:"name"})))}},{key:"itemActions",get:function(){var e=this,a=this.props,n=a.trigger,r=a.routing,o=a.name;return[{key:"edit",icon:"pen",text:t("EDIT_INFORMATION"),action:"edit",show:this.showAction,onClick:function(e){return n("resource.baseinfo.edit",{detail:(0,_.default)(e,"workspace"),success:r.query})}},{key:"edit-annotations",icon:"pen",text:t("EDIT_ANNOTATIONS"),action:"manage",show:function(t){return t.workspace!==globals.config.systemWorkspace&&e.showAction(t)},onClick:function(e){return n("resource.annotations.edit",{detail:e})}},{key:"modify",icon:"restart",text:t("ASSIGN_WORKSPACE"),action:"manage",show:function(t){return!t.workspace&&e.showAction(t)},onClick:function(e){return n("project.assignworkspace",{isEdge:!0,detail:e,success:r.query})}},{key:"delete",icon:"trash",text:t("DELETE"),action:"delete",show:function(t){return t.workspace!==globals.config.systemWorkspace&&e.showAction(t)},onClick:function(e){return n("resource.delete",{type:o,resource:e.name,detail:(0,_.default)(e,"workspace"),success:r.query})}}]}},{key:"tabs",get:function(){return{value:this.type||"user",onChange:this.handleTabChange,options:[{value:"user",label:t("USER_PROJECTS")},{value:"system",label:t("SYSTEM_PROJECTS")}]}}},{key:"tableActions",get:function(){return P(P({},this.props.tableProps.tableActions),{},{onFetch:this.handleFetch})}},{key:"cluster",get:function(){return this.props.match.params.cluster}}]),n}(y.default.Component))||s;a.default=I},5176:function(e,a,n){"use strict";n(15);var r=n(20);n(12),n(109),n(5),n(18),n(16),n(4),n(23),n(24),n(17),n(62),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,n(12),n(109),n(45),n(5),n(18),n(28),n(42),n(16),n(4),n(23),n(57),n(24),n(17),n(62);var o,i=r(n(315)),u=r(n(36)),l=r(n(37)),c=r(n(55)),s=r(n(56)),d=r(n(51)),f=r(n(0)),p=n(433),m=r(n(788)),h=r(n(792)),g=n(793),y=r(n(1069)),v=r(n(804)),_=r(n(810)),E=n(52),b=n(434),S=n(72),O=r(n(858));function k(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,n=(0,d.default)(e);if(t){var r=(0,d.default)(this).constructor;a=Reflect.construct(n,arguments,r)}else a=n.apply(this,arguments);return(0,s.default)(this,a)}}var T=(0,g.withClusterList)({store:new O.default("jobs"),module:"jobs",name:"JOB",rowKey:"uid"})(o=function(e){(0,c.default)(n,e);var a=k(n);function n(){var e;(0,u.default)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i0&&void 0!==arguments[0]?arguments[0]:{},t=e.isFirst,a=(0,c.default)(e,["isFirst"]),n=r.store.list,o=n.limit,i=n.page;r.store.fetchList(j(j(j({limit:o,page:i},r.props.match.params),r.state.filters),a),t)},r.handleRegistry=function(){r.trigger("node.edge.register",{cluster:r.cluster,store:r.store,success:r.getData})},r.handleManageNodes=function(){r.setState({isManaging:!r.state.isManaging})},r.changeUnmanagedNodesFilter=function(e){r.setState({filters:e?{status:"unmanaged"}:{}}),r.handleFetch({status:e?"unmanaged":""})},r.handleCardCheckChange=function(e,t){var a,n=null!==(a=r.state.selectedKeys)&&void 0!==a?a:[];r.setState({selectedKeys:e?(0,O.default)([].concat((0,u.default)(n),[t])):n.filter((function(e){return e!==t}))})},r.handleCancelSelect=function(){r.setState({selectedKeys:[],isManaging:!1})},r.handleSelectAll=function(e){if(e)return r.setState({selectedKeys:r.allAllowedNodes.map((function(e){return e.name}))});r.setState({selectedKeys:[]})},r.handleFilterInput=function(e){(0,S.default)(e,r.state.filters)||(r.setState({filters:e}),r.handleFetch(e,!0))},r.clearFilter=function(){r.setState({filters:{}}),r.handleFetch({},!0)},r.handleFetch=function(e){r.getData(e)},r.handleManage=function(){r.selectedNodes.every(r.canManage)?r.trigger("node.batch.manage",{cluster:r.cluster,selectedNodes:r.selectedNodes,success:function(){r.setState({selectedKeys:[]}),r.getData()}}):r.trigger("node.filter.confirm",{title:t("BATCH_ACTION",{action:t("ACCESS_MANAGE")}),okText:t("NEXT_OP",{action:t("ACCESS_MANAGE")}),nodes:r.selectedNodes.filter(r.canManage),nextStep:function(e){r.trigger("node.batch.manage",{cluster:r.cluster,selectedNodes:e,success:function(){r.setState({selectedKeys:[]}),r.getData()}})}})},r.handleDelete=function(){r.selectedNodes.every(r.canDelete)?r.trigger("node.batch.delete",{cluster:r.cluster,type:"ACCESS_NODE",selectedNodes:r.selectedNodes,resource:r.state.selectedKeys.join(", "),success:function(){r.setState({selectedKeys:[]}),r.getData()}}):r.trigger("node.filter.confirm",{title:t("BATCH_ACTION",{action:t("DELETE")}),okText:t("NEXT_OP",{action:t("DELETE")}),nodes:r.selectedNodes.filter(r.canDelete),nextStep:function(e){r.trigger("node.batch.delete",{cluster:r.cluster,type:"ACCESS_NODE",selectedNodes:e,resource:e.map((function(e){return e.name})).join(", "),success:function(){r.setState({selectedKeys:[]}),r.getData()}})}})},r.handleCancelManaged=function(){r.selectedNodes.every(r.canCancelManaged)?r.trigger("node.batch.cancel.managed",{cluster:r.cluster,selectedNodes:r.selectedNodes,success:function(){r.setState({selectedKeys:[]}),r.getData()}}):r.trigger("node.filter.confirm",{title:t("BATCH_ACTION",{action:t("CANCEL_MANAGED")}),okText:t("NEXT_OP",{action:t("CANCEL_MANAGED")}),nodes:r.selectedNodes.filter(r.canCancelManaged),nextStep:function(e){r.trigger("node.batch.cancel.managed",{cluster:r.cluster,selectedNodes:e,success:function(){r.setState({selectedKeys:[]}),r.getData()}})}})},r.handleEditSoftInfo=function(){if(r.selectedNodes.every(r.canEditSoftInfo)){var e=r.selectedNodes[0].versionList;r.trigger("node.batch.softInfo",{cluster:r.cluster,versionList:e,batchMode:!0,formData:{containerEngineSofts:[],edgeSofts:[]},selectedNodes:r.selectedNodes,success:function(){r.setState({selectedKeys:[],isManaging:!1}),r.getData()}})}else r.trigger("node.filter.confirm",{title:t("BATCH_ACTION",{action:t("EDIT_SOFTWARE_INFO")}),okText:t("NEXT_OP",{action:t("EDIT_SOFTWARE_INFO")}),nodes:r.selectedNodes.filter(r.canEditSoftInfo),nextStep:function(e){var t=e[0].versionList;r.trigger("node.batch.softInfo",{cluster:r.cluster,versionList:t,batchMode:!0,formData:{containerEngineSofts:[],edgeSofts:[]},selectedNodes:e,success:function(){r.setState({selectedKeys:[],isManaging:!1}),r.getData()}})}})},r.handleCardLink=function(e){"registering"!==e.status&&r.routing.push("".concat(r.prefix,"/").concat(e.name))},r.batchActions=function(){return h.default.createElement(h.default.Fragment,null,h.default.createElement(k.Checkbox,{checked:r.allAllowedNodes.every((function(e){var t=e.name;return r.state.selectedKeys.includes(t)})),onChange:r.handleSelectAll},h.default.createElement("span",{className:M.default.selectAll},t("SELECT_ALL"))),h.default.createElement(k.Button,{key:"delete",type:"danger",disabled:!r.selectedNodes.some(r.canDelete),onClick:r.handleDelete,"data-test":"table-batch-delete"},t("DELETE")),h.default.createElement(k.Button,{key:"cancel_managed",type:"danger",disabled:!r.selectedNodes.some(r.canCancelManaged),onClick:r.handleCancelManaged,"data-test":"table-cancel-manage"},t("CANCEL_MANAGED")),h.default.createElement(k.Button,{key:"access_manage",disabled:!r.selectedNodes.some(r.canManage),onClick:r.handleManage,"data-test":"table-access-manage"},t("ACCESS_MANAGE")),h.default.createElement(k.Button,{key:"edit_software_info",disabled:!r.selectedNodes.some(r.canEditSoftInfo),onClick:r.handleEditSoftInfo,"data-test":"table-edit-software-info"},t("EDIT_SOFTWARE_INFO")))},r.renderActions=function(){if(r.enabledActions.includes("create"))return h.default.createElement(k.Button,{key:"register",type:"control",onClick:r.handleRegistry,"data-test":"table-register"},t("REGISTER"))},r.renderToolbar=function(){return h.default.createElement(k.Level,{className:M.default.toolbar},h.default.createElement(k.LevelItem,null,h.default.createElement(x.default,{className:M.default.search,columns:r.filterColumns,filters:r.state.filters,onChange:r.handleFilterInput})),h.default.createElement(k.LevelRight,{style:{marginLeft:"12px"}},h.default.createElement(k.Button,{type:"flat",icon:"refresh",onClick:function(){return r.handleFetch(r.state.filters)},"data-test":"table-refresh"}),r.renderActions()))},r.renderBatchActions=function(){var e=r.state.isManaging;return h.default.createElement(k.Level,{style:{marginBottom:"8px"},className:(0,g.default)((0,l.default)({},M.default.batchActions,e))},h.default.createElement(k.LevelLeft,null,e?r.batchActions():h.default.createElement("div",{onClick:r.handleManageNodes,className:M.default.batchBtn},h.default.createElement(k.Icon,{name:"cogwheel"}),t("BATCH_ACCESS_NODE"))),h.default.createElement(k.LevelRight,null,e?h.default.createElement(k.Button,{type:"flat",className:M.default.cancelSelect,onClick:r.handleCancelSelect,"data-test":"table-cancel-select"},t("DESELECT")):h.default.createElement(k.Checkbox,{onChange:r.changeUnmanagedNodesFilter},t("NODE_STATUS_UNMANAGED"))))},r.renderSoftwareAvatar=function(e,a){var n=e.name,r=e.softIcon,o=e.status,u=e.title,l=e.softwares,c=e.edgeSoft;return h.default.createElement(k.Tooltip,{key:"".concat(n,"_").concat(a),className:M.default.statusTip,content:h.default.createElement(h.default.Fragment,null,h.default.createElement("strong",null,t("STATUS_INFORMATION")),l?l.map((function(e){var a=e.status,n=e.title;return h.default.createElement("div",{key:n},h.default.createElement("p",{className:M.default.info},h.default.createElement(k.Icon,(0,A.getSoftStatus)(a)),n),h.default.createElement("p",{className:M.default.statusInfo},t("STATUS_VALUE",{value:t("NODE_SOFT_STATUS_".concat(a.toLocaleUpperCase()))})))})):h.default.createElement(h.default.Fragment,null,h.default.createElement("p",{className:M.default.info},h.default.createElement(k.Icon,(0,A.getSoftStatus)(o)),u),h.default.createElement("p",{className:M.default.statusInfo},t("STATUS_VALUE",{value:t("NODE_SOFT_STATUS_".concat(o.toLocaleUpperCase()))}))))},h.default.createElement("div",{className:M.default.flex},h.default.createElement("div",{className:M.default.software},h.default.createElement(k.Icon,{name:r,size:20}),h.default.createElement(k.Icon,(0,i.default)({size:12,className:M.default.softwareStatus},(0,A.getSoftStatus)(o)))),c&&h.default.createElement("div",{className:M.default.connect})))},r.renderEdgeSofts=function(e){return(0,b.default)(e)?r.renderSoftwareAvatar({name:"edge-soft",title:t("EDGE_SOFT"),softIcon:"turn-dot-delta-duotone",status:"uninstalled"}):e.map((function(e){var a=e.name,n=e.installationStatus;return r.renderSoftwareAvatar({name:a,title:t("SOFT",{value:a}),softIcon:(0,A.getSoftIconName)(a),status:n,edgeSoft:!0})}))},r.renderContainerEngineSofts=function(e){if((0,b.default)(e))return r.renderSoftwareAvatar({key:"container-engine",title:t("CONTAINER_ENGINE"),softIcon:"turn-dot-duotone",status:"uninstalled"});if(1===e.length){var a=e[0],n=a.name,o=a.installationStatus;return r.renderSoftwareAvatar({name:n,title:t("SOFT",{value:n}),softIcon:(0,A.getSoftIconName)(n),status:o})}return r.renderSoftwareAvatar({key:"container-engine",title:t("CONTAINER_ENGINE"),softIcon:"turn-dot-duotone",status:"installed",softwares:e.map((function(e){var a=e.name,n=e.installationStatus;return{name:a,title:t("SOFT",{value:a}),softIcon:(0,A.getSoftIconName)(a),status:n}}))})},r.renderNoMatchDataTips=function(){return h.default.createElement("div",{className:M.default.emptyText},h.default.createElement("span",{className:M.default.emptyTipIcon},h.default.createElement(k.Icon,{name:"exclamation",size:48})),h.default.createElement("div",null,t("NO_MATCHING_RESULT_FOUND")),h.default.createElement("p",null,t("YOU_CAN_TRY_TO"),h.default.createElement("span",{className:M.default.action,onClick:function(){return r.handleFetch(r.state.filters,!0)},"data-test":"table-empty-refresh"},t("REFRESH_DATA")),t("OR"),h.default.createElement("span",{className:M.default.action,onClick:r.clearFilter,"data-test":"table-empty-clear-filter"},t("CLEAR_SEARCH_CONDITIONS"))))},r.renderNodeCards=function(){var e=r.store.list,a=e.isLoading,n=e.data;return a||(0,b.default)(n)?h.default.createElement("div",{className:M.default.emptyText},r.renderNoMatchDataTips()):h.default.createElement("div",{className:M.default.nodeCards},(0,y.toJS)(n).map((function(e,a){var n=e.name,o=e.status,i=e.nodeIP,u=e.edgeSofts,c=e.containerEngineSofts,s="registering"===o;return h.default.createElement("div",{key:"".concat(n,"_").concat(a),className:(0,g.default)(M.default.card,(0,l.default)({},M.default.notAllowed,s))},h.default.createElement("div",{className:M.default.operators},h.default.createElement("div",{className:M.default.avatar},h.default.createElement(k.Icon,{name:"edge-node",size:40}),r.state.isManaging&&h.default.createElement(k.Checkbox,{className:M.default.checkBox,checked:r.state.selectedKeys.includes(n),disabled:r.enabledActions,onChange:function(e){r.handleCardCheckChange(e,n)}})),!s&&r.renderMoreMenu(e)),h.default.createElement("div",{className:(0,g.default)(M.default.title,(0,l.default)({},M.default.notAllowed,s)),onClick:function(){return r.handleCardLink(e)}},(0,A.getAccessNodeDisplayName)(e)),h.default.createElement("div",{className:M.default.desc},i),h.default.createElement(R.default,{className:M.default.status,type:o,name:t("NODE_STATUS_".concat(o.toLocaleUpperCase()))}),h.default.createElement("div",{className:M.default.softwares},r.renderContainerEngineSofts(c),h.default.createElement("div",{className:M.default.edgeSofts},r.renderEdgeSofts(u))))})))},r.getItemActions=function(e){var a=e.status;if("registering"===a)return[];if("registerFail"===a)return[{key:"reRegister",icon:"login-left-duotone",text:t("RE_REGISTER"),action:"edit",onClick:function(e){r.trigger("node.edge.register",{cluster:r.cluster,detail:e,title:t("RE_REGISTER"),reRegister:!0,success:r.getData})}},{key:"delete",icon:"trash",text:t("DELETE"),action:"delete",onClick:function(e){r.trigger("resource.delete",{type:"ACCESS_NODE",detail:e,resource:e.name,onOk:function(){var t=[{nodeName:e.name,taskName:"del_node"}];return r.store.patchNode(r.cluster,t)},success:function(){r.setState({selectedKeys:[]}),T.default.success(t("DELETED_SUCCESSFULLY")),r.getData()}})}}];var n=[{key:"edit",icon:"pen",text:t("EDIT_INFORMATION"),action:"edit",show:"registerFail"!==a,onClick:function(e){return r.trigger("node.baseinfo.edit",{detail:e,success:r.getData})}},{key:"editSoftwareInfo",icon:"pen",text:t("EDIT_SOFTWARE_INFO"),action:"edit",show:["registerFail","unmanaged"].includes(a),onClick:function(e){var t=e.name,a=e.edgeSofts,n=e.versionList,o=e.containerEngineSofts;r.trigger("node.softInfo",{cluster:r.cluster,nodeName:t,versionList:n,formData:{containerEngineSofts:o,edgeSofts:a},success:r.getData})}},{key:"syncTime",icon:"loading-circle-duotone",text:t("SYNC_TIME"),action:"edit",onClick:function(e){return r.trigger("node.sync.time",{detail:e,success:r.getData})}}];return"unmanaged"===a?n.concat([{key:"manage",icon:"download-box-2-duotone",text:t("ACCESS_MANAGE"),action:"edit",onClick:function(e){return r.trigger("node.edge.manage",{detail:e,success:r.getData})}},{key:"delete",icon:"trash",text:t("DELETE"),action:"delete",onClick:function(e){r.trigger("resource.delete",{type:"ACCESS_NODE",detail:e,resource:e.name,onOk:function(){var t=[{nodeName:e.name,taskName:"del_node"}];return r.store.patchNode(r.cluster,t)},success:function(){r.setState({selectedKeys:[]}),T.default.success(t("DELETED_SUCCESSFULLY")),r.getData()}})}}]):n.concat([{key:"cancelManage",icon:"trash",text:t("CANCEL_MANAGED"),action:"delete",onClick:function(e){return r.trigger("resource.delete",{title:t("CANCEL_MANAGED"),type:"ACCESS_NODE",detail:e,resource:e.name,onOk:function(){var t=[{nodeName:e.name,taskName:"cancel_managed"}];return r.store.patchNode(r.cluster,t)},success:function(){T.default.success({content:t("CANCEL_MANAGED_SUCCESSFULLY")}),r.getData}})}}])},r.renderItemActions=function(e){var t=r.getItemActions(e).filter((function(e){return r.enabledActions.includes(e.action)}));return(0,b.default)(t)?null:t.map((function(t,a){var n=t.key,r=t.text,o=t.icon,i=t.onClick;return h.default.createElement("div",{key:"".concat(n,"_").concat(a),onClick:function(){return null==i?void 0:i(e)},className:M.default.menuItem},h.default.createElement(k.Icon,{name:o}),h.default.createElement("span",null,r))}))},r.renderMoreMenu=function(e){var t=r.renderItemActions(e);return(0,b.default)(r.enabledActions)||(0,b.default)(t)?null:h.default.createElement(k.Dropdown,{placement:"bottomRight",modifiers:{preventOverflow:{boundariesElement:"viewport"}},content:h.default.createElement("div",{className:M.default.menu},t)},h.default.createElement(k.Button,{type:"flat",className:M.default.more},h.default.createElement(k.Icon,{name:"more"})))},r.renderPagination=function(){var e=r.store.list,t=e.page,a=e.total,n=e.limit;return h.default.createElement(w.default,{page:t,total:a,limit:n,onChange:r.handleFetch})},r.renderList=function(){return(0,b.default)(r.allAllowedNodes)&&(0,b.default)(r.state.filters)?h.default.createElement(P.default,{icon:"edge-node",title:t("EMPTY_WRAPPER",{resource:t("EDGE_NODE")}),desc:t("NODE_ACCESS_EMPTY_DESC"),action:r.renderActions()}):h.default.createElement(k.Loading,{spinning:r.store.list.isLoading},h.default.createElement(h.default.Fragment,null,r.renderToolbar(),r.enabledActions.includes("edit")&&r.renderBatchActions(),r.renderNodeCards(),r.renderPagination()))},!(0,_.default)(r.edgeClusterNavs,(function(e){var t=(0,E.default)(e,"items");return(0,_.default)(t,["name","nodes"])}))){var o=e.location.pathname.replace("fota","node-groups");e.history.replace(o)}return r.store=new I.default,r.state={isLoading:!1,isManaging:!1,filters:{},selectedKeys:[]},r}return(0,d.default)(n,[{key:"componentDidMount",value:function(){this.getData({isFirst:!0}),(0,N.startAutoRefresh)(this,{method:"getData",leading:!1,interval:5e3})}},{key:"componentWillUnmount",value:function(){(0,N.stopAutoRefresh)(this)}},{key:"render",value:function(){return h.default.createElement(h.default.Fragment,null,h.default.createElement(D.default,{className:M.default.banner,icon:"edge-fota",title:t("NODE_ACCESS_PL"),description:t("NODE_ACCESS_DESC")}),this.renderList())}},{key:"routing",get:function(){return this.props.rootStore.routing}},{key:"cluster",get:function(){return this.props.match.params.cluster}},{key:"edgeClusterNavs",get:function(){return globals.app.getEdgeCalculationNavs(this.cluster)}},{key:"filterColumns",get:function(){var e=[{text:t("NODE_STATUS_REGISTERING"),value:"registering"},{text:t("NODE_STATUS_REGISTERFAIL"),value:"registerFail"},{text:t("NODE_STATUS_RUNNING"),value:"running"},{text:t("NODE_STATUS_WARNING"),value:"warning"},{text:t("NODE_STATUS_UNMANAGED"),value:"unmanaged"},{text:t("NODE_STATUS_UNSCHEDULABLE"),value:"unschedulable"}];return[{dataIndex:"nodeName",title:t("NAME"),search:!0},{dataIndex:"status",title:t("STATUS"),search:!0,filters:e}]}},{key:"prefix",get:function(){return"/v2/edgewize/clusters/".concat(this.cluster,"/fota")}},{key:"allAllowedNodes",get:function(){return(0,y.toJS)(this.store.list.data)}},{key:"selectedNodes",get:function(){var e=this;return(0,y.toJS)(this.store.list.data).filter((function(t){var a=t.name;return e.state.selectedKeys.includes(a)}))}},{key:"enabledActions",get:function(){var e=this.props.match.params;return globals.app.getActions(j({module:"nodes"},e))}}]),n}(h.default.Component))||o)||o)||o;a.default=z},5181:function(e,t,a){"use strict";a(15);var n=a(20);a(4),a(23),a(17),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(45),a(42),a(4),a(23),a(57),a(17);var r=n(a(36)),o=n(a(37)),i=n(a(55)),u=n(a(56)),l=n(a(51)),c=n(a(0)),s=n(a(1)),d=n(a(806)),f=n(a(915));function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,n=(0,l.default)(e);if(t){var r=(0,l.default)(this).constructor;a=Reflect.construct(n,arguments,r)}else a=n.apply(this,arguments);return(0,u.default)(this,a)}}var m=function(e){(0,i.default)(a,e);var t=p(a);function a(){return(0,r.default)(this,a),t.apply(this,arguments)}return(0,o.default)(a,[{key:"shouldComponentUpdate",value:function(e){var t=this.props.filters;return!(0,d.default)(t,e.filters)}},{key:"render",value:function(){return c.default.createElement(f.default,this.props)}}]),a}(c.default.Component);t.default=m,m.propTypes={className:s.default.string,columns:s.default.array.isRequired,filters:s.default.object.isRequired,onChange:s.default.func.isRequired}},5182:function(e,t,a){e.exports={banner:"_120aAclmohEJDefGl8wO-U",loading:"bgW65Pfc6UCS7QjbQG1hW",toolbar:"_25x5bYmMBVDAgqD5_6H9_Z",operators:"VWNzl2AtH1gu7vFsQPZlV",batchActions:"f4gLRu2zs--Q4dXYfB0dg",selectAll:"pdM6TO89ZNy9uKqG7vhE5",batchBtn:"QmKzsU8NRbMn9-c1xWyrp",unmanagedNodes:"_2rvJxF6zDRhJ9wa0CO-Vkt",nodeCards:"_3dzDaODBcirwPkoWeGmmcq",notAllowed:"_2jHpDZxDGZ9flIMlMJmXrc",card:"hkN4jpRB1_lsQZwLGrKkF",avatar:"_1SFLzNoU75s_3Scs3k4E0G",checkBox:"_2YnStu0FSR5h25WAxHhm1N",title:"_1PvEPuT4VK5Aw4zfzazHtG",desc:"_2_813SAMqEE6RxKKn3hUYG",status:"Ko5ps9XohK-sVRDb44g5D",inners:"_3Gu_vfDdwJx0ecHl239M6N",softwares:"tr3A6xAbOR8vAI4V2naLU",flex:"am7Gfc2Fa3v1q44eEYtvK",edgeSofts:"_27hPNppX-HjZOR8DaLFSpU",connect:"_3oVKX5eOXk5r8qEEj5FjwO",cancelSelect:"_1ZEPTZridaBX6fG13LHc9K",software:"oe6ttll26NkGkLQd0aAIR",softwareStatus:"oz93fg-ETLjx6bXQtal-k",statusTip:"_2gjoo7At5q_3gRebAxAa61",info:"_1K09AsnYEq59Qij-5UOxZ-",statusInfo:"_3fQAVfzJvl8zQqCIFVhNF1",menu:"_1rf9E-ukbu86GgtexNdXWA",menuItem:"u5kadt6oK_tPU5WRgdVvk",emptyText:"Cv-9qvc3c0QvsvImUyBOz",emptyTipIcon:"_3H_roUWYg-eEdvnzxspi8y",action:"_11KFg95hQ8giX04M5B8xPz",more:"_3zqWn5QClhjOLJS7KqvKRC"}},5183:function(e,a,n){"use strict";var r=n(20);n(12),n(5),n(11),n(31),n(6),n(84),n(73),n(18),n(16),n(9),n(13),n(10),n(4),n(23),n(17),n(85),n(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,n(12),n(45),n(5),n(11),n(31),n(6),n(84),n(160),n(73),n(18),n(28),n(191),n(42),n(16),n(159),n(34),n(15),n(9),n(13),n(10),n(4),n(22),n(23),n(57),n(17),n(85),n(7);var o=r(n(43));n(41);var i,u=r(n(44)),l=r(n(30)),c=r(n(61)),s=r(n(36)),d=r(n(37)),f=r(n(55)),p=r(n(56)),m=r(n(51)),h=r(n(0)),g=n(14),y=n(239),v=r(n(26)),_=r(n(63)),E=r(n(189)),b=r(n(446)),S=r(n(854)),O=n(186),k=n(52),T=n(791),C=r(n(105)),N=r(n(438)),A=r(n(955)),R=r(n(325)),D=r(n(1400)),P=r(n(792)),w=r(n(833)),I=r(n(874)),x=r(n(886)),M=r(n(915)),L=r(n(1047)),j=r(n(5184)),U=r(n(5186));function z(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,n)}return a}function G(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};r.fetchHostData(e),r.fetchMemberData(e),r.fetchData(e)},r.getClusterParamsLabel=function(e,t){var a=t?"cluster-role.kubesphere.io/host=":"!cluster-role.kubesphere.io/host",n=e.group,r=e.tags,o=void 0===r?[]:r;return n&&(n="cluster.kubesphere.io/group=".concat(n)),o=Array.isArray(o)?o.map((function(e){return"label.cluster.kubesphere.io/".concat(e)})):"cluster.kubesphere.io/group=".concat(o),[n].concat((0,c.default)(o),[a,"!cluster-role.kubesphere.io/edge"]).filter(Boolean).join(",")},r.fetchData=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};r.store.fetchList(G(G({},(0,E.default)(e,"group","tags","__index")),{},{limit:e.limit||10,labelSelector:"cluster-role.kubesphere.io/edge"}))},r.fetchMemberData=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};r.memberStore.fetchListByUser(G(G({},(0,E.default)(e,"group","tags","__index")),{},{limit:-1,labelSelector:r.getClusterParamsLabel(e,!1)}))},r.fetchHostData=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};r.hostStore.fetchListByUser(G(G({},(0,E.default)(e,"group","tags","__index")),{},{labelSelector:r.getClusterParamsLabel(e,!0),limit:-1}))},r.handlePagination=function(e){r.fetchData(e)},r.handleRefresh=function(){r.fetchData({page:1})},r.handleSearch=function(e){r.fetchData(e),r.fetchHostData(e)},r.enterEdgewizeCluster=function(){var e=(0,u.default)(o.default.mark((function e(t){return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r.routing.push("/v2/edgewize/clusters/".concat(t,"/nodes"));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),r.showAddCluster=function(){r.trigger("edge.cluster.add",{module:"clusters",title:t("CREATE_EDGEWIZE_CLUSTER"),hostedInOptions:r.hostedInOptions,success:function(){r.routing.push(),r.initData()}})},r.getItemActions=function(e){return[{key:"pen",icon:"pen",text:t("EDIT_INFORMATION"),show:!0,onClick:function(e){r.trigger("resource.baseinfo.edit",{detail:e,modal:j.default,hostedInOptions:r.hostedInOptions,success:r.initData})}},{key:"data",icon:"data",text:t("VIEW_KUBECONFIG"),show:!1,onClick:function(e){r.trigger("cluster.viewKubeConfig",{detail:e,isEdgeWize:!0,success:r.initData})}},{key:"trash",icon:"trash",text:t("DELETE_CLUSTER"),show:!0,onClick:function(e){r.trigger("cluster.unbind",{detail:G(G({},e),{},{tags:(e.tags||[]).map((function(e){return(r.tagsStore.tags||[]).find((function(t){return t.name===e.name}))})).filter(Boolean)}),isEdgeWize:!0,success:r.initData})}}].filter((function(e){return e.show}))},r.handleReset=function(){r.initData(r.state.filters)},r.clearFilter=function(){r.setState({filters:{}}),r.initData()},r.handleColumnsHide=function(e){r.setState({hideColumns:e},(function(){var e=(0,k.safeParseJSON)(localStorage.getItem("hide-columns"),{});e[F]=r.state.hideColumns,localStorage.setItem("hide-columns",JSON.stringify(e))}))},r.handleFilterChange=function(e){r.setState({filters:e}),r.handleSearch(e)};var i=(0,v.default)((0,k.safeParseJSON)(localStorage.getItem("hide-columns"),{}),F,[]);return r.store=new A.default,r.hostStore=new N.default,r.memberStore=new N.default,r.state={filters:{},hideColumns:i},r}return(0,d.default)(n,[{key:"componentDidMount",value:function(){this.initData(),this.websocket=new R.default,this.initWebsocket()}},{key:"componentWillUnmount",value:function(){this.disposer&&this.disposer()}},{key:"initWebsocket",value:function(){var e=this,t=(0,k.getHostClusterName)();this.websocket.watch("/apis/cluster.kubesphere.io/v1alpha1/watch/clusters"),this.fetchData=(0,S.default)(this.fetchData,500),this.disposer=(0,g.reaction)((function(){return e.websocket.message}),(function(a){if("Cluster"===a.object.kind){var n=C.default.clusters(a.object);"MODIFIED"===a.type&&e.store.list.updateItem(n),"ADDED"!==a.type||n.name===t||(0,g.toJS)(e.store.list.data).find((function(e){return e.name===n.name}))||e.store.list.addItem(n),"DELETED"===a.type&&e.store.list.deleteItem(n)}}))}},{key:"renderListDataNotFound",value:function(){return h.default.createElement(I.default,{icon:"exclamation",title:t("NO_MATCHING_RESULT_FOUND"),desc:null,action:h.default.createElement("p",null,t("YOU_CAN_TRY_TO"),h.default.createElement("span",{className:U.default.emptyAction,onClick:this.handleReset,"data-test":"table-empty-refresh"},t("REFRESH_DATA")),t("OR"),h.default.createElement("span",{className:U.default.emptyAction,onClick:this.clearFilter,"data-test":"table-empty-clear-filter"},t("CLEAR_SEARCH_CONDITIONS")))})}},{key:"renderEmptyList",value:function(){return h.default.createElement(w.default,{icon:"cluster",title:t("NO_CLUSTER_TIP"),desc:t("NO_CLUSTER_TIP_DESC"),actions:this.isOperation?h.default.createElement(O.Button,{type:"control",onClick:this.showAddCluster},t("ADD_CLUSTER")):null})}},{key:"renderList",value:function(){var e=this,t=this.store.list,a=t.data,n=t.page,r=t.total,o=t.limit,i=this.state.hideColumns,u=(0,b.default)(a,(function(e){return e.expiredDay}));return(0,_.default)(a)?(0,_.default)(this.state.filters)?this.renderEmptyList():this.renderListDataNotFound():h.default.createElement("ul",{className:U.default.cards},!(0,_.default)(u)&&h.default.createElement("div",null,u.map((function(t){return h.default.createElement(D.default,{isEdgeWize:!0,key:t.name,data:t,onEnter:e.enterEdgewizeCluster,isOperation:e.isOperation,itemActions:e.getItemActions(t),hideColumns:i})})),h.default.createElement("div",{className:"text-right margin-t12"},h.default.createElement(x.default,{page:n,total:r,limit:o,onChange:this.handlePagination}))))}},{key:"renderSearch",value:function(){var e=this.state.hideColumns;return h.default.createElement("div",{className:U.default.searchPanel},h.default.createElement(M.default,{placeholder:t("SEARCH_BY_NAME"),columns:this.filterColumns,onChange:this.handleFilterChange,filters:this.state.filters}),h.default.createElement(O.Button,{type:"flat",icon:"refresh",onClick:this.handleRefresh,"data-test":"cluster-refresh"}),h.default.createElement(L.default,{className:U.default.columnMenu,title:t("CUSTOM_COLUMNS"),columns:this.clusterColumns,value:e,onChange:this.handleColumnsHide}),this.enabledActions.includes("create")&&h.default.createElement(O.Button,{type:"control",onClick:this.showAddCluster,"data-test":"edgewize-cluster-create"},t("CREATE_EDGEWIZE_CLUSTER")))}},{key:"render",value:function(){var e=this.store.list.isLoading;return h.default.createElement("div",{className:U.default.wrapper},h.default.createElement(P.default,{className:U.default.banner,icon:"edge-cluster",title:t("EDGEWIZE_MANAGEMENT"),description:t("EDGEWIZE_MANAGEMENT_DESC"),tabs:this.tabs,tabsActions:this.renderSearch()}),e?h.default.createElement(O.Loading,{className:U.default.loading}):this.renderList())}},{key:"authKey",get:function(){return"clusters"}},{key:"tabs",get:function(){return{value:"clusters",options:[]}}},{key:"filterColumns",get:function(){return[{dataIndex:"name",title:t("NAME"),search:!0}]}},{key:"clusterColumns",get:function(){return[{title:t("CLUSTER_NAME"),dataIndex:"name"},{title:t("NODE_COUNT"),dataIndex:"nodeCount",isHideable:!0},{title:t("KUBERNETES_VERSION"),dataIndex:"version",isHideable:!0},{title:t("HOSTED_IN"),dataIndex:"hostCluster",isHideable:!0},{title:t("CREATION_TIME"),dataIndex:"createTime",isHideable:!0}]}},{key:"enabledActions",get:function(){return globals.app.getActions({module:this.authKey})}},{key:"isOperation",get:function(){return this.enabledActions.includes("create")}},{key:"routing",get:function(){return this.props.rootStore.routing}},{key:"hostedInOptions",get:function(){if(globals.app.isMultiCluster){var e=[];return(0,_.default)((0,g.toJS)(this.hostStore.list.data))||e.push({label:t("HOST_CLUSTER"),options:(0,g.toJS)(this.hostStore.list.data).map((function(e){var t=e.name;return{label:t,value:t}}))}),(0,_.default)((0,g.toJS)(this.memberStore.list.data))||e.push({label:t("MEMBER_CLUSTER"),options:(0,g.toJS)(this.memberStore.list.data).map((function(e){var t=e.name;return{label:t,value:t}}))}),e}}}]),n}(h.default.Component))||i)||i)||i;a.default=H},5184:function(e,a,n){"use strict";n(15);var r=n(20);n(16),n(4),n(23),n(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,n(45),n(42),n(16),n(4),n(23),n(57),n(17);var o=r(n(315)),i=r(n(36)),u=r(n(37)),l=r(n(55)),c=r(n(56)),s=r(n(51)),d=r(n(0)),f=n(14),p=r(n(830)),m=r(n(1)),h=r(n(787)),g=r(n(1633)),y=r(n(5185));function v(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,n=(0,s.default)(e);if(t){var r=(0,s.default)(this).constructor;a=Reflect.construct(n,arguments,r)}else a=n.apply(this,arguments);return(0,c.default)(this,a)}}var _=function(e){(0,l.default)(n,e);var a=v(n);function n(e){var t;return(0,i.default)(this,n),(t=a.call(this,e)).handleOk=function(){var e=t.props.onOk,a=t.formRef.current;null==e||e(a.getData())},t.formRef=d.default.createRef(),t.formTemplateData=(0,p.default)((0,f.toJS)(e.detail._originData)),t}return(0,u.default)(n,[{key:"render",value:function(){var e=this.props,a=e.visible,n=e.isSubmitting,r=e.onCancel;return d.default.createElement(h.default,{width:691,title:t("EDIT_INFORMATION"),description:t("EDIT_CLUSTER_INFO_DESC"),icon:"cluster",okText:t("OK"),onOk:this.handleOk,onCancel:r,visible:a,isSubmitting:n},d.default.createElement(g.default,(0,o.default)({},this.props,{isEdit:!0,formRef:this.formRef,formTemplate:this.formTemplateData,onOk:this.handleOk,className:y.default.editForm})))}},{key:"isMultiCluster",get:function(){return globals.app.isMultiCluster}},{key:"clusterName",get:function(){return this.formTemplateData.metadata.name}},{key:"options",get:function(){var e=this.props.hostedInOptions;return!this.isMultiCluster&&this.clusterName?[{label:this.clusterName,value:this.clusterName}]:e}}]),n}(d.default.Component);a.default=_,_.propTypes={detail:m.default.object,visible:m.default.bool,onOk:m.default.func,onCancel:m.default.func,isEdit:m.default.bool,isSubmitting:m.default.bool},_.defaultProps={visible:!1,isEdit:!1,onOk:function(){},onCancel:function(){},isSubmitting:!1}},5185:function(e,t,a){e.exports={editForm:"_3C9ReB8lgP4VHd4kW5ntN4"}},5186:function(e,t,a){e.exports={searchPanel:"_1Rw29JFUkK3eggqbOSAG4C",search:"_13tvMYzWCovTyJFZ69Mrq6",banner:"_306-At1hJfEdBdukKk02BM",wrapper:"_1kyvVhOjwVAT07LIgrIW4x",cards:"_2N0Xziba4msOtEu4FOrU_3",total:"_20BmCIxjYZQbVIOqq2EsVD",noData:"h_R36WYsCa61LUVXwB83T",title:"_3bbuwNwMiv3F3ac_dcmrCH",batchManage:"_3Bsxk-s7yX_q6WKUtgtMBj",loading:"_1FKNwtG86uOVvgiAk1_3Lr",action:"_19zD045lPYiYMl7NYRUfQF",clusterGroupTag:"_23Ibi3vICXh_Hw_b4ynuJd",production:"_1XKELE7vePTkiL_UN0dSbi",development:"eUxyYWO4c8hmfHqvvL8LB",testing:"-lZYywCf9kKcQTXtnuh2M",demo:"_283Aj0gD4CBZDkOWRGXabK",emptyAction:"_2-RCSIUUn_fPbGlNSUdAK6"}},5187:function(e,a,n){"use strict";n(15);var r=n(20);n(12),n(109),n(5),n(11),n(73),n(18),n(16),n(4),n(23),n(24),n(17),n(62),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,n(12),n(109),n(45),n(5),n(11),n(73),n(18),n(42),n(16),n(4),n(23),n(57),n(24),n(17),n(62);var o,i=r(n(315)),u=r(n(36)),l=r(n(37)),c=r(n(55)),s=r(n(56)),d=r(n(51)),f=r(n(0)),p=n(433),m=n(186),h=r(n(788)),g=r(n(790)),y=r(n(792)),v=n(793),_=r(n(810)),E=n(52),b=n(72),S=r(n(1091));function O(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,n=(0,d.default)(e);if(t){var r=(0,d.default)(this).constructor;a=Reflect.construct(n,arguments,r)}else a=n.apply(this,arguments);return(0,s.default)(this,a)}}var k=(0,v.withClusterList)({store:new S.default,module:"services",name:"SERVICE",rowKey:"uid"})(o=function(e){(0,c.default)(n,e);var a=O(n);function n(){var e;(0,u.default)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i1?t("LOAD_BALANCERS_SCAP"):t("LOAD_BALANCER_SCAP"),a.title=e.loadBalancerIngress.join("; ")),e.externalName?f.default.createElement(g.default,{description:a.des,title:function(){return f.default.createElement(m.Tooltip,{content:e.externalName},f.default.createElement("span",null,a.title))}}):f.default.createElement(g.default,{description:t("".concat(a.des)),title:a.title})},e.getColumns=function(){var a=e.props,n=a.getSortOrder,r=a.module,o=e.props.match.params.cluster;return[{title:t("NAME"),dataIndex:"name",sorter:!0,sortOrder:n("name"),search:!0,width:"20%",render:function(e,t){return f.default.createElement(h.default,{icon:b.ICON_TYPES[r],iconSize:40,title:(0,E.getDisplayName)(t),desc:t.description||"-",isMultiCluster:t.isFedManaged,to:"/v2/edgewize/clusters/".concat(o,"/projects/").concat(t.namespace,"/").concat(r,"/").concat(e)})}},{title:t("PROJECT"),dataIndex:"namespace",isHideable:!0,width:"15%",render:function(e){return f.default.createElement(p.Link,{to:"/v2/edgewize/clusters/".concat(o,"/projects/").concat(e)},e)}},{title:t("INTERNAL_ACCESS"),dataIndex:'annotations["kubesphere.io/serviceType"]',isHideable:!0,width:"15%",render:function(e,a){return f.default.createElement(g.default,{title:a.clusterIP||"",description:t("".concat(a.type))})}},{title:t("EXTERNAL_ACCESS"),dataIndex:"specType",isHideable:!0,width:"20%",render:function(t,a){return e.renderExternalService(a)}},{title:t("CREATION_TIME_TCAP"),dataIndex:"createTime",sorter:!0,sortOrder:n("createTime"),isHideable:!0,width:"10%",render:function(e){return(0,E.getLocalTime)(e).format("YYYY-MM-DD HH:mm:ss")}}]},e.showCreate=function(){var t=e.props,a=t.query,n=t.match,r=t.module,o=t.getData;return e.props.trigger("service.simple.create",{module:r,isEdgeWize:!0,namespace:a.namespace,cluster:n.params.cluster,success:o})},e}return(0,l.default)(n,[{key:"render",value:function(){var e=this.props,t=e.match,a=e.bannerProps,n=e.tableProps;return f.default.createElement(v.ListPage,this.props,f.default.createElement(y.default,a),f.default.createElement(_.default,(0,i.default)({},n,{itemActions:this.itemActions,columns:this.getColumns(),cluster:t.params.cluster,getCheckboxProps:this.getCheckboxProps})))}},{key:"itemActions",get:function(){var e=this,a=this.props,n=a.trigger,r=a.name;return[{key:"edit",icon:"pen",text:t("EDIT_INFORMATION"),action:"edit",show:this.showAction,onClick:function(e){return n("resource.baseinfo.edit",{detail:e})}},{key:"editYaml",icon:"pen",text:t("EDIT_YAML"),action:"edit",show:this.showAction,onClick:function(e){return n("resource.yaml.edit",{detail:e})}},{key:"editService",icon:"network-router",text:t("EDIT_SERVICE"),action:"edit",show:this.showAction,onClick:function(e){return n("service.edit",{detail:e,isEdgeWize:!0})}},{key:"editGateway",icon:"ip",text:t("EDIT_EXTERNAL_ACCESS"),action:"edit",show:function(t){return e.showAction(t)&&t.type===b.SERVICE_TYPES.VirtualIP},onClick:function(e){return n("service.gateway.edit",{detail:e,isEdgeWize:!0})}},{key:"delete",icon:"trash",text:t("DELETE"),action:"delete",show:this.showAction,onClick:function(e){return n("resource.delete",{type:r,detail:e})}}]}}]),n}(f.default.Component))||o;a.default=k},5188:function(e,a,n){"use strict";n(15);var r=n(20);n(12),n(109),n(5),n(18),n(16),n(4),n(23),n(24),n(17),n(62),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,n(12),n(109),n(45),n(5),n(18),n(28),n(42),n(16),n(4),n(23),n(57),n(24),n(17),n(62);var o,i=r(n(315)),u=r(n(36)),l=r(n(37)),c=r(n(55)),s=r(n(56)),d=r(n(51)),f=r(n(0)),p=n(433),m=r(n(788)),h=r(n(795)),g=r(n(792)),y=n(793),v=r(n(804)),_=r(n(810)),E=n(52),b=n(434),S=n(72),O=r(n(858));function k(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,n=(0,d.default)(e);if(t){var r=(0,d.default)(this).constructor;a=Reflect.construct(n,arguments,r)}else a=n.apply(this,arguments);return(0,s.default)(this,a)}}var T=(0,y.withClusterList)({store:new O.default("cronjobs"),module:"cronjobs",name:"CRONJOB",rowKey:"uid"})(o=function(e){(0,c.default)(n,e);var a=k(n);function n(){var e;(0,u.default)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i1&&void 0!==arguments[1]?arguments[1]:"";return isNaN(e)?"-":"".concat(e," ").concat(t)}},{key:"render",value:function(){var e=this.props,t=e.theme,a=e.store,n=e.cluster,r=this.props.store.data,o=(0,m.hideGPUByLicense)(this.columns,n);return d.default.createElement(h.default,{rowKey:"namespace",theme:t,columns:o,store:a,dataSource:r.toJS(),emptyText:d.default.createElement(y.default,null)})}},{key:"prefix",get:function(){var e=this.props,t=e.workspace,a=e.cluster;return t?"/".concat(t,"/clusters/").concat(a,"/projects"):(0,m.isEdgeWizePage)()?"/v2/edgewize/clusters/".concat(a,"/projects"):"/clusters/".concat(a,"/projects")}}]),n}(d.default.Component))||o)||o;a.default=_},5202:function(e,t,a){e.exports={wrapper:"_e5fmdJWnJ0QOQZJcCVUn",pane:"_1eJxJG0aVZtYyz3GDR_ZR_",pane__toolbar:"j1zwlJVD42xGeaYh7dK4i",pane__pagination:"_2HmdHospbTYFJI9TlaR34l",title:"_1k1gAmEYjCqP7BrSiENkh6",toolbar:"_1FWU5qUC8uuujJw6d2l65x",toolbar_buttons:"_2LIzJ64kqvBLuZZE61UvP7",toolbar_filter:"_2Z8Trv-1eNjdlaX8r5WZST",sort_button:"uoSjuNhFB8P8g3tMb3Lxk",table:"_19GZKNCZYjDNKSNnF7cNeH",table_rank:"_3iqV5YZScGpLLHwZ0HZbEZ",table_no_border:"ShtMcJ1EGg_b4SA5fgyV7",rankList_row:"_26zYIroWfOqZKnyRv1Yx7J",rankLink__sort_col:"_37lju7-H5Pp-RNF4l1X1FM"}},5203:function(e,t,a){e.exports={wrapper:"_1avbBwdk0YDRcmr2lKxT_s",pane:"_2k4E0DPmYnUKa820YSBXTA",tabs:"_2FS1EN8g7vjL7CzoUmGKmC",selected:"_1WHzTov_2_-DO-ExFAK9gE"}},5204:function(e,a,n){"use strict";n(15);var r=n(20);n(12),n(109),n(5),n(18),n(16),n(4),n(23),n(24),n(17),n(62),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,n(12),n(109),n(45),n(5),n(18),n(28),n(42),n(16),n(4),n(23),n(57),n(24),n(17),n(62);var o,i=r(n(61)),u=r(n(315)),l=r(n(36)),c=r(n(37)),s=r(n(55)),d=r(n(56)),f=r(n(51)),p=r(n(0)),m=r(n(26)),h=n(433),g=r(n(788)),y=r(n(792)),v=n(793),_=r(n(865)),E=r(n(804)),b=r(n(810)),S=n(434),O=n(52),k=n(72),T=r(n(858));function C(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,n=(0,f.default)(e);if(t){var r=(0,f.default)(this).constructor;a=Reflect.construct(n,arguments,r)}else a=n.apply(this,arguments);return(0,d.default)(this,a)}}var N=(0,v.withClusterList)({store:new T.default("daemonsets"),module:"daemonsets",name:"DAEMONSET",rowKey:"uid"})(o=function(e){(0,s.default)(n,e);var a=C(n);function n(){var e;(0,l.default)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i=.9&&h.default.createElement(_.Icon,{name:"exclamation"})),description:"".concat(a.cpu_used,"/").concat(a.cpu_total," Core")})}},{title:t("MEMORY"),key:"memory",isHideable:!0,render:function(t){var a=e.getRecordMetrics(t,[{type:"memory_used",unit:"Gi"},{type:"memory_total",unit:"Gi"},{type:"memory_utilisation"}]);return h.default.createElement(C.default,{title:h.default.createElement("div",{className:I.default.resource},h.default.createElement("span",null,"".concat(Math.round(100*a.memory_utilisation),"%")),a.memory_utilisation>=.9&&h.default.createElement(_.Icon,{name:"exclamation"})),description:"".concat(a.memory_used,"/").concat(a.memory_total," GiB")})}},{title:t("POD_PL"),key:"pods",isHideable:!0,render:function(t){var a=e.getRecordMetrics(t,[{type:"pod_used"},{type:"pod_total"}]),n=a.pod_total?parseFloat(a.pod_used/a.pod_total):0;return h.default.createElement(C.default,{title:"".concat(Math.round(100*n),"%"),description:"".concat(a.pod_used,"/").concat(a.pod_total)})}},{title:t("NODE_GROUP_PL"),dataIndex:"nodegroup",isHideable:!1,search:!1,render:function(e,t){return t.labels["apps.edgewize.io/nodegroup"]||""}}]},e.showCreate=function(){var t=e.props,a=t.query,n=t.match,r=t.module;return e.props.trigger("workload.create",{module:r,isEdgeWize:!0,namespace:a.namespace,cluster:n.params.cluster})},e}return(0,d.default)(n,[{key:"getStatus",value:function(){return R.NODE_STATUS.map((function(e){return{text:t(e.text),value:e.value}}))}},{key:"render",value:function(){var e=this.props,a=e.bannerProps,n=e.tableProps;return h.default.createElement(N.ListPage,(0,o.default)({},this.props,{getData:this.getData,noWatch:!0}),h.default.createElement(b.default,(0,o.default)({},a,{title:t("EDGE_NODE_PL"),icon:"edge-node",tips:this.tips})),h.default.createElement(E.default,(0,o.default)({},n,{onCreate:this.showCreate,itemActions:this.itemActions,tableActions:this.tableActions,columns:this.getColumns(),isLoading:n.isLoading})))}},{key:"cluster",get:function(){return this.props.match.params.cluster}},{key:"isExpired",get:function(){return!1}},{key:"isOverLimit",get:function(){return!1}},{key:"itemActions",get:function(){var e=this,a=this.props,n=a.store,r=a.clusterStore,o=a.routing,i=a.trigger,u=a.name;return[{key:"edit",icon:"pen",text:t("EDIT"),action:"edit",onClick:function(e){return i("resource.baseinfo.edit",{detail:e,success:o.query})}},{key:"uncordon",icon:"start",text:t("UNCORDON"),action:"edit",show:function(e){return"success"===e.importStatus&&e.unschedulable},onClick:function(e){return n.uncordon(e).then(o.query)}},{key:"cordon",icon:"stop",text:t("CORDON"),action:"edit",show:function(e){return"success"===e.importStatus&&!e.unschedulable},onClick:function(e){return n.cordon(e).then(o.query)}},{key:"terminal",icon:"terminal",text:t("OPEN_TERMINAL"),action:"edit",show:function(t){return"success"===t.importStatus&&e.getReady(t)},onClick:function(t){return e.handleOpenTerminal(t)}},{key:"nodegroup",icon:"restart",text:t("BOUND_NODE_GROUP"),action:"edit",show:function(e){return""===(0,y.default)(e,'labels["apps.edgewize.io/nodegroup"]',"")},onClick:function(t){return i("bound.node.group",{detail:t,cluster:e.cluster,success:e.getData})}},{key:"logs",icon:"eye",text:t("VIEW_LOG"),action:"edit",show:function(e){return"success"!==e.importStatus},onClick:function(){return i("node.add.log",{detail:(0,g.toJS)(r.detail),isEdgeWize:!0})}},{key:"delete",icon:"trash",text:t("DELETE"),action:"delete",show:function(e){return"failed"===e.importStatus},onClick:function(e){return i("resource.delete",{type:u,detail:e,success:o.query})}}]}},{key:"tableActions",get:function(){var e=this,a=this.props,n=a.trigger,r=a.routing,o=a.tableProps,i=[];i.push({key:"add",type:"control",text:t("ADD"),action:"create",tooltip:void 0,forbidden:!1,onClick:function(){return n("node.edge.add",{cluster:e.cluster,store:e.store,isEdgeWize:!0})}});var u=(0,g.toJS)(this.store.list),l=u.data,c=u.selectedRowKeys,s=null==l?void 0:l.find((function(e){var t;return(null==e||null===(t=e.labels)||void 0===t?void 0:t["apps.edgewize.io/nodegroup"])&&(null==c?void 0:c.includes(e.name))}));return M(M({},o.tableActions),{},{actions:i,selectActions:[{key:"taint",type:"default",text:t("EDIT_TAINTS"),action:"edit",onClick:function(){return n("node.taint.batch",{success:r.query})}},{key:"nodegroup",icon:"restart",text:t("BOUND_NODE_GROUP"),action:"edit",disabled:!!s,show:function(e){return""===(0,y.default)(e,'labels["apps.edgewize.io/nodegroup"]',"")},onClick:function(){return n("bound.node.group",{cluster:e.cluster,success:e.getData})}}]})}},{key:"tips",get:function(){return[{title:t("WHAT_IS_NODE_TAINTS_Q"),description:t("WHAT_IS_NODE_TAINTS_A")}]}}]),n}(h.default.Component))||l;a.default=U},5208:function(e,t,a){e.exports={taints:"vPrV6PEs5hvmijmtArMc1",overview:"_2eG7fE4qm3Q3CL4aFykyAi",resource:"_5xiDlxpP50TQM_7KhctwB"}},5209:function(e,a,n){"use strict";n(15);var r=n(20);n(5),n(11),n(31),n(84),n(18),n(16),n(4),n(316),n(23),n(24),n(17),n(85),n(62),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,n(45),n(5),n(11),n(31),n(84),n(18),n(28),n(42),n(16),n(4),n(316),n(23),n(57),n(24),n(17),n(85),n(62);var o,i=r(n(36)),u=r(n(37)),l=r(n(55)),c=r(n(56)),s=r(n(51)),d=r(n(26)),f=r(n(0)),p=n(239),m=n(186),h=r(n(789)),g=r(n(790)),y=r(n(792)),v=n(52),_=n(791),E=n(794),b=r(n(890)),S=r(n(945)),O=r(n(438)),k=r(n(5210)),T=r(n(5211)),C=r(n(5213));function N(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,n=(0,s.default)(e);if(t){var r=(0,s.default)(this).constructor;a=Reflect.construct(n,arguments,r)}else a=n.apply(this,arguments);return(0,c.default)(this,a)}}var A={cpu_usage:"cluster_cpu_total",memory_usage:"cluster_memory_total",gpu_usage:"cluster_gpu_usage",gpu_memory_usage:"cluster_gpu_memory_usage",disk_size_usage:"cluster_disk_size_capacity",node_count:"cluster_node_total"},R=(0,p.inject)("rootStore")(o=(0,p.observer)(o=(0,_.trigger)(o=function(e){(0,l.default)(n,e);var a=N(n);function n(){var e;(0,i.default)(this,n);for(var r=arguments.length,o=new Array(r),u=0;u1?f.default.createElement(T.default,{className:C.default.manage,content:a}):t.length>0&&f.default.createElement(m.Button,{className:C.default.singleButton,onClick:function(){return t[0].onClick()}},t[0].text)},e}return(0,u.default)(n,[{key:"componentDidMount",value:function(){this.fetchData()}},{key:"render",value:function(){var e=this.store.detail.kubernetesVersion,a=this.getResourceOptions();return f.default.createElement(f.default.Fragment,null,f.default.createElement(y.default,{icon:"cdn",title:t("BASIC_INFORMATION"),description:t("CLUSTER_BASE_INFO_DESC")}),f.default.createElement(h.default,{title:t("CLUSTER_INFORMATION")},f.default.createElement("div",{className:C.default.header},f.default.createElement(g.default,{icon:"edge-node",title:(0,v.getDisplayName)(this.store.detail),description:t("EDGE_CLUSTER")}),f.default.createElement(g.default,{title:e||this.store.version,description:t("KUBERNETES_VERSION")}),this.editPromission&&this.renderManageButton()),f.default.createElement("div",{className:C.default.content},a.map((function(e){return f.default.createElement(g.default,{key:e.name,icon:e.icon,title:e.value,description:t(e.name)})})))))}},{key:"store",get:function(){return this.clusterStore}},{key:"enabledActions",get:function(){return globals.app.getActions({module:"cluster-settings",cluster:this.props.match.params.cluster})}},{key:"editPromission",get:function(){var e;return null===(e=globals.user.globalRules.clusters)||void 0===e?void 0:e.includes("manage")}},{key:"enableManageAction",get:function(){return[{actionName:"resource.baseinfo.edit",onClick:this.showEdit,icon:"pen",text:t("EDIT_INFORMATION")}]}}]),n}(f.default.Component))||o)||o)||o;a.default=R},5210:function(e,a,n){"use strict";n(15);var r=n(20);n(31),n(18),n(16),n(4),n(23),n(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,n(45),n(31),n(18),n(42),n(16),n(4),n(23),n(57),n(17);var o=r(n(36)),i=r(n(37)),u=r(n(55)),l=r(n(56)),c=r(n(51)),s=r(n(0)),d=r(n(26)),f=r(n(1)),p=r(n(830)),m=n(186),h=r(n(787)),g=n(14),y=n(72);function v(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,n=(0,c.default)(e);if(t){var r=(0,c.default)(this).constructor;a=Reflect.construct(n,arguments,r)}else a=n.apply(this,arguments);return(0,l.default)(this,a)}}var _=function(e){(0,u.default)(n,e);var a=v(n);function n(e){var r;return(0,o.default)(this,n),(r=a.call(this,e)).groupOptionRenderer=function(e){return s.default.createElement(s.default.Fragment,null,s.default.createElement(m.Tag,{type:y.CLUSTER_GROUP_TAG_TYPE[e.value]},t("ENV_".concat(e.label.toUpperCase()))),"  ",e.label)},r.providerOptionRenderer=function(e){return s.default.createElement(s.default.Fragment,null,s.default.createElement(m.Icon,{name:e.icon,type:"light",size:20}),e.label)},r.handleOk=function(e){(0,r.props.onOk)(e)},r.handleRegionSelect=function(e){r.setState({region:e})},r.state={region:(0,d.default)(e.detail,'metadata.labels["topology.kubernetes.io/region"]',""),formData:(0,p.default)((0,g.toJS)(e.detail._originData))},r}return(0,i.default)(n,[{key:"render",value:function(){var e=this.props,a=e.visible,n=e.isSubmitting,r=e.onCancel,o=this.state.formData;return s.default.createElement(h.default.Form,{data:o,width:691,title:t("EDIT_INFORMATION"),description:t("EDIT_CLUSTER_INFO_DESC"),icon:"cluster",onOk:this.handleOk,okText:t("OK"),onCancel:r,visible:a,isSubmitting:n},s.default.createElement(m.Form.Item,{label:t("CLUSTER_NAME"),desc:t("NAME_DESC")},s.default.createElement(m.Input,{name:"metadata.name",disabled:!0})),s.default.createElement(m.Form.Item,{label:t("DESCRIPTION"),desc:t("DESCRIPTION_DESC")},s.default.createElement(m.TextArea,{name:"metadata.annotations['kubesphere.io/description']",maxLength:256})))}},{key:"regions",get:function(){return(0,d.default)(globals.config,"regionZones",[]).map((function(e){return{label:e.alias,value:e.name}}))}},{key:"zones",get:function(){var e=this,t=(0,d.default)(globals.config,"regionZones",[]).find((function(t){return t.name===e.state.region}));return t&&t.zones?t.zones.map((function(e){return{label:e.alias,value:e.name}})):[]}}]),n}(s.default.Component);a.default=_,_.propTypes={detail:f.default.object,visible:f.default.bool,onOk:f.default.func,onCancel:f.default.func,isSubmitting:f.default.bool},_.defaultProps={visible:!1,onOk:function(){},onCancel:function(){},isSubmitting:!1}},5211:function(e,a,n){"use strict";n(15);var r=n(157),o=n(20);Object.defineProperty(a,"__esModule",{value:!0}),a.default=function(e){var a=e.className,n=void 0===a?"":a,r=e.content,o=(0,u.useState)(!0),d=(0,i.default)(o,2),f=d[0],p=d[1];return u.default.createElement("div",{className:(0,c.default)(s.default.manage,n)},u.default.createElement(l.Dropdown,{theme:"dark",content:r,trigger:"click",placement:"bottomRight",onClick:function(){return p(!f)}},u.default.createElement("div",{className:s.default.button},u.default.createElement("span",null,t("MANAGE")),u.default.createElement(l.Icon,{name:f?"caret-down":"caret-up",type:"dark"}))))};var i=o(n(96)),u=r(n(0)),l=n(186),c=o(n(3)),s=o(n(5212))},5212:function(e,t,a){e.exports={manage:"_1O2d_xKFhPOBZ771CH2E1o",button:"_1EZifAFmYeUjyOiG4fxwXC"}},5213:function(e,t,a){e.exports={header:"_2UlMIR4rJkP07aE6AxE6c5",content:"hqTgeqYbmFi5a2C59o2Ar",tip:"_8dnO4vN9_srhaHqur5a7t",unbind:"_2a5V2c8M9tko1wORYs7TQq",manage:"_2xE0Qi4HWwzjYqQP5p3gPz",singleButton:"_1ojbkCTiEJ_i7AalX38tbo",tags:"_1cXZDj8Bn4RXnM8Ph0DYO0"}},5214:function(e,a,n){"use strict";var r=n(20),o=n(157);n(12),n(5),n(11),n(6),n(16),n(9),n(13),n(10),n(4),n(23),n(24),n(17),n(62),n(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,n(12),n(45),n(5),n(11),n(6),n(28),n(42),n(16),n(34),n(15),n(9),n(13),n(10),n(4),n(23),n(57),n(24),n(17),n(62),n(7);var i,u=r(n(315)),l=r(n(30)),c=r(n(36)),s=r(n(37)),d=r(n(55)),f=r(n(56)),p=r(n(51)),m=r(n(0)),h=n(14),g=r(n(788)),y=r(n(795)),v=r(n(792)),_=o(n(793)),E=r(n(796)),b=n(52),S=r(n(322)),O=r(n(441));function k(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,n)}return a}function T(e){for(var t=1;t1}},{key:"nodegroup",get:function(){return(0,_.default)(this.store.detail,'labels.["apps.edgewize.io/nodegroup"]',"")}},{key:"nodegroupEdgeNodeParams",get:function(){var e=this.props.match.params,t=e.cluster,a=e.node;return{cluster:t,nodegroup:this.nodegroup,name:a}}},{key:"breadcrumb",get:function(){var e={label:t("EDGE_NODE_PL"),url:this.listUrl};return this.canViewEvents?e:this.nodegroup?{label:t("NODE_ADMINISTRATION_PL"),url:"/node-groups/clusters/".concat(this.cluster,"/").concat(this.nodegroup,"/nodes")}:e}}]),n}(g.default.Component))||l)||l)||l;a.default=w},5228:function(e,t,a){"use strict";a(15);var n=a(20);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(317),o=n(a(821)),i=n(a(5229)),u=n(a(5230)),l=n(a(5231)),c=n(a(5232)),s="/v2/edgewize/clusters/:cluster/nodes/:node",d=[{path:"".concat(s,"/status"),title:"RUNNING_STATUS",component:c.default,exact:!0},{path:"".concat(s,"/pods"),title:"POD_PL",component:i.default,exact:!0},{path:"".concat(s,"/metadata"),title:"METADATA",component:o.default,exact:!0},{path:"".concat(s,"/monitors"),title:"MONITORING",component:l.default,exact:!0,clusterModule:"whizard-monitoring"},{path:"".concat(s,"/events"),title:"EVENT_PL",component:u.default,exact:!0},(0,r.getIndexRoute)({path:s,to:"".concat(s,"/status"),exact:!0})];t.default=d},5229:function(e,t,a){"use strict";a(15);var n=a(20);a(5),a(4),a(23),a(24),a(17),a(62),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(45),a(5),a(42),a(4),a(23),a(57),a(24),a(17),a(62);var r,o=n(a(36)),i=n(a(37)),u=n(a(55)),l=n(a(56)),c=n(a(51)),s=n(a(0)),d=a(239),f=n(a(849));function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,n=(0,c.default)(e);if(t){var r=(0,c.default)(this).constructor;a=Reflect.construct(n,arguments,r)}else a=n.apply(this,arguments);return(0,l.default)(this,a)}}var m=(0,d.inject)("detailStore")(r=(0,d.observer)(r=function(e){(0,u.default)(a,e);var t=p(a);function a(){var e;(0,o.default)(this,a);for(var n=arguments.length,r=new Array(n),i=0;i0?"builtin":""}},{key:"listUrl",get:function(){var e=localStorage.getItem("alert-policy-detail-referrer");if(e)return e;var t=this.props.match.params,a=t.cluster,n=t.namespace,r=t.workspace,o=this.type;return"/v2/edgewize".concat(r?"/".concat(r):"","/clusters/").concat(a).concat(n?"/projects/".concat(n):"","/rule-group").concat(o?"?type=".concat(o):"")}},{key:"routing",get:function(){return this.props.rootStore.routing}},{key:"resetPolicy",get:function(){var e=this,a=this.props.match,n=(0,m.toJS)(this.store.detail);return{key:"reset",icon:"restart",text:t("RESET"),action:"edit",onClick:function(){return e.trigger("alerting.rule.reset",{type:e.type,cluster:a.params.cluster,detail:n,success:e.fetchData})}}}}]),n}(p.default.Component))||o)||o)||o;a.default=R},5239:function(e,t,a){"use strict";a(15);var n=a(20);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(317),o=n(a(5240)),i=n(a(5243));t.default=function(e){return[{path:"".concat(e,"/rules"),title:"ALERTING_RULE",component:o.default,exact:!0},{path:"".concat(e,"/messages"),title:"ALERTING_MESSAGE_PL",component:i.default,exact:!0},(0,r.getIndexRoute)({path:e,to:"".concat(e,"/rules"),exact:!0})]}},5240:function(e,t,a){"use strict";var n=a(20);a(12),a(5),a(11),a(6),a(86),a(16),a(9),a(13),a(10),a(4),a(23),a(24),a(17),a(62),a(7),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(12),a(45),a(5),a(11),a(6),a(86),a(28),a(42),a(16),a(34),a(15),a(9),a(13),a(10),a(4),a(23),a(57),a(24),a(17),a(62),a(7);var r,o=n(a(30)),i=n(a(36)),u=n(a(37)),l=n(a(55)),c=n(a(56)),s=n(a(51)),d=n(a(0)),f=a(14),p=a(239),m=n(a(26)),h=n(a(5241));function g(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,n)}return a}function y(e){for(var t=1;t0?"builtin":""}},{key:"rules",get:function(){return(0,f.toJS)((0,m.default)(this.store,"detail._originDataWithStatus.spec.rules",[]))}}]),a}(d.default.Component))||r)||r;t.default=_},5241:function(e,a,n){"use strict";var r=n(20);n(12),n(11),n(6),n(18),n(48),n(9),n(13),n(10),n(4),n(23),n(24),n(17),n(188),n(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,n(12),n(45),n(11),n(6),n(18),n(28),n(48),n(42),n(34),n(15),n(9),n(13),n(10),n(4),n(23),n(57),n(24),n(17),n(188),n(7);var o,i=r(n(30)),u=r(n(315)),l=r(n(36)),c=r(n(37)),s=r(n(55)),d=r(n(56)),f=r(n(51)),p=r(n(0)),m=n(14),h=r(n(3)),g=n(239),y=r(n(135)),v=r(n(26)),_=r(n(250)),E=n(186),b=r(n(789)),S=n(72),O=r(n(5242)),k=r(n(1999));function T(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,n)}return a}function C(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.cluster,a=e.namespace,n=this.props.match.params,r=n.cluster,o=n.namespace,i=n.workspace;return t=t||r,a=a||o,"".concat(i?"/".concat(i):"","/clusters/").concat(t).concat(a?"/projects/".concat(a):"")}},{key:"render",value:function(){var e=this.store.list,a=e.data,n=e.isLoading,r=e.filters;return p.default.createElement(b.default,{title:t("ALERTING_MESSAGE_PL"),loading:n},(0,_.default)(a)?p.default.createElement("div",null,t("NO_DATA_DESC")):p.default.createElement(p.default.Fragment,null,p.default.createElement(O.default,{className:R.default.table,filters:r,data:a,name:"Alerting Message",rowKey:"value",columns:this.getColumns(),selectedRowKeys:[],selectActions:[],hideHeader:!0,hideFooter:!0}),this.renderFooter()))}},{key:"type",get:function(){return this.props.match.url.indexOf("alert-rules/builtin")>0?"builtin":""}},{key:"pagination",get:function(){var e=this.state;return{page:e.page,limit:e.limit,total:this.store.list.total}}}]),n}(p.default.Component))||o;a.default=I},5244:function(e,t,a){e.exports={table:"AG_qM41gf6QH6rWrxxX1I",footer:"bJwbNqt-nsyyNbpbx6tO0",pageSizeBox:"DKz1C7wmIoV0NdR3gvIhI",pagesize:"_2HQRF4QyzRCk6oOPVhiZuP",text:"IEe-JLXtS86SfykLWhqpW",gap:"_iYAtpzgrxIVf5HBe6P_4",pageSizeMenu:"_29fm1z6RupXOKBkGtWkpDg",pageSizeMenuitem:"c1A1KCKi7BaRCLW5SXUUS"}},5245:function(e,t,a){e.exports={icon:"_3przOWA8oS6hX0Lex0ZtXg"}},5246:function(e,a,n){"use strict";n(15);var r=n(20);n(12),n(109),n(5),n(84),n(16),n(4),n(23),n(24),n(17),n(85),n(62),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,n(12),n(109),n(45),n(5),n(84),n(28),n(42),n(16),n(4),n(23),n(57),n(24),n(17),n(85),n(62);var o,i=r(n(315)),u=r(n(36)),l=r(n(37)),c=r(n(55)),s=r(n(56)),d=r(n(51)),f=r(n(0)),p=n(14),m=n(239),h=r(n(26)),g=r(n(63)),y=n(186),v=n(52),_=n(791),E=r(n(441)),b=r(n(823)),S=r(n(5247));function O(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,n=(0,d.default)(e);if(t){var r=(0,d.default)(this).constructor;a=Reflect.construct(n,arguments,r)}else a=n.apply(this,arguments);return(0,s.default)(this,a)}}var k=(0,m.inject)("rootStore")(o=(0,m.observer)(o=(0,_.trigger)(o=function(e){(0,c.default)(n,e);var a=O(n);function n(){var e;(0,u.default)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i0&&void 0!==arguments[0]?arguments[0]:{},a=(0,h.default)(t,"nodeStatus",""),n=(0,h.default)(t,"createTime",""),r=(0,h.default)(t,"agentUpdateTime",""),o=(0,h.default)(t,"agentInfo.modules.nodeInfo",{}),i=(0,h.default)(t,"taskList.tasks",[]),u=o.alias,l=o.nodeIP,c=o.hostName,s=o.description,d=o.systemHardInfo,f=(0,h.default)(t,"agentInfo.modules.nodeInfo.tags.versionList",{}),p=(0,h.default)(d,"os",""),m=(0,h.default)(d,"arch",""),y=(0,h.default)(d,"osVersion",""),_=(0,h.default)(d,"timesync",""),E=(0,h.default)(d,"kernelRelease",""),b=(null!==(e=(0,h.default)(o,"systemSoftInfo.softInfo",[]))&&void 0!==e?e:[]).filter((function(e){return"uninstalled"!==e.installationStatus})),S=(0,v.getContainerEngineSofts)(b),O=(0,v.getEdgeSofts)(b);return{name:c,arch:m,alias:u,status:a,nodeIP:l,osType:p,taskList:i,timesync:_,edgeSofts:O,osVersion:y,createTime:n,description:s,versionList:f,kernelVersion:E,agentUpdateTime:r,containerEngineSofts:S,specification:(0,g.default)(d)?"-":(0,v.getNodeSpecification)(d)}}},{key:"fetchList",value:(a=(0,l.default)(r.default.mark((function e(){var t,a,n,o,u,l,c,s,d,f,p,m=this,g=arguments;return r.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=g.length>0&&void 0!==g[0]?g[0]:{},n=a.silentLoading,o=a.cluster,u=a.limit,l=void 0===u?10:u,c=a.page,s=void 0===c?1:c,d=(0,i.default)(a,["silentLoading","cluster","limit","page"]),!(g.length>1?g[1]:void 0)&&n||(this.list.isLoading=!0),l===1/0||-1===l?(d.limit=-1,d.page=1):(d.limit=l,d.page=s),e.next=6,request.get("".concat(this.apiVersion).concat(this.getPath({cluster:o}),"/").concat(this.module),d);case 6:return f=e.sent,p=(0,h.default)(f,"data.items",[]).map((function(e){return E(E({},m.mapper(e)),{},{cluster:o})})),this.list.update(E({data:p,total:null==f||null===(t=f.data)||void 0===t?void 0:t.totalItems,limit:Number(d.limit),page:Number(d.page),isLoading:!1},this.list.silent?{}:{selectedRowKeys:[]})),e.abrupt("return",p);case 10:case"end":return e.stop()}}),e,this)}))),function(){return a.apply(this,arguments)})},{key:"fetchDetail",value:(t=(0,l.default)(r.default.mark((function e(t,a){var n,o,i,u,l,c;return r.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.cluster,o=t.name,a&&(this.isLoading=!0),i={limit:10,page:1,nodeName:o},e.next=5,request.get("".concat(this.apiVersion).concat(this.getPath({cluster:n}),"/").concat(this.module),i);case 5:return u=e.sent,l=(0,h.default)(u,"data.items.[0]"),c=E(E({},this.mapper(l)),{},{cluster:n}),this.detail=c,this.isLoading=!1,e.abrupt("return",c);case 11:case"end":return e.stop()}}),e,this)}))),function(e,a){return t.apply(this,arguments)})},{key:"nodeRegister",value:function(e){var t="".concat(this.apiVersion).concat(this.getPath({cluster:e.clusterName}),"/").concat(this.module,"/register");return this.submitting(request.post(t,e))}},{key:"patchNode",value:function(e,t){var a="".concat(this.apiVersion).concat(this.getPath({cluster:e}),"/").concat(this.module,"/tasks");return request.post(a,t)}},{key:"apiVersion",get:function(){return"kapis/ota.edgewize.io/v1alpha1"}}]),o}(n(a(1039)).default),(0,m.default)(u.prototype,"mapper",[y.action],Object.getOwnPropertyDescriptor(u.prototype,"mapper"),u.prototype),(0,m.default)(u.prototype,"fetchList",[y.action],Object.getOwnPropertyDescriptor(u.prototype,"fetchList"),u.prototype),(0,m.default)(u.prototype,"fetchDetail",[y.action],Object.getOwnPropertyDescriptor(u.prototype,"fetchDetail"),u.prototype),(0,m.default)(u.prototype,"nodeRegister",[y.action],Object.getOwnPropertyDescriptor(u.prototype,"nodeRegister"),u.prototype),(0,m.default)(u.prototype,"patchNode",[y.action],Object.getOwnPropertyDescriptor(u.prototype,"patchNode"),u.prototype),u);t.default=S},1999:function(e,t,a){e.exports={header:"_1dtSSEAZZ6i6k8qHu0b9Zr",search:"_2XrdLxtFQDa12evnk4mX-0",actions:"_1R9ZAeZSYt7rpNXuVDVHMt",item:"_1qzHpkk2vTvc2aTCp97SDH",content:"_33_QIBmXr8IIB9kZDh-iCT",head:"_2Lp7QI0d6Hk0ZPaynFR6OC",headIcon:"xGiSZyOA982BtorplFzPQ",headLine:"_2kmHtQw8aGHx9cjLW7PkIs",severity:"_2b1l9tw0lgDBS1X-gStCNg",statusLine:"_1np7kgamHbmPy9mEzmmp3x",target:"_1k_Kp7POmfehKP9YXqwuE3",timeLabel:"_3RliTXiOSiFw3qlc0bho4q",time:"AzpGNicS5AfTk9WmP3d-_",time_white:"X6g4wb8zdviz5_sZQsupB",title:"_1kRMPhDnB-Z0GuSFY9p4bX",desc:"_22v7rZ_BLbmJanDShJs-z5",expanded:"_3AqrQ6m2lP-vU1FIEg_T1k",itemExtra:"_3v1A-2912_P5C1Nilyp9Uf",ms_content:"_2u3T53m-OP2QC-qjtg5wL3",ruleExpr:"YmM1pYCslrfMrE5u-pbXx",label:"gOR7QElm-46YMGNdKs_dG",value:"S7RDhqwsNoRz3CVwBkvN2",itemExtraShow:"_3wcF7y1ifEdCqPkQNmRAd9",status_disabled:"_3E3qiiTY8UPksnZV38Hr7S",status_pending:"Klc2prjxVLU3pQzWurV3l",status_firing:"_1D-ovgKVuvozv-TBLyC_M9",status_inactive:"_3WanQn9TymPniJ7kgpEZkl",info_disabled:"_1WTz8nAyEoZYzNbQIry2GB",info_pending:"_2pZGHT52XFF58kyIUB6H7Y",info_firing:"crQzDWpkF3jIjtlOQzZ3T",info_inactive:"_3C0DHoHNm01q91OiTAlf1P",critical:"_1TNKz_qZT7XJXW6cqyPhra",error:"Ev8-y2tGEFf27TMzwhJKj",footer:"_3n-Mp25-HUWl3E9OQ5VqV9",pageSizeBox:"_2j2lmlWad1y86enW5FnR0S",pagesize:"_3qQlfKSFdQ6OK7tCryq3mI",text:"_2A5oOZLluEyJIkGRbYuod4",gap:"_2dEs2IrRMr7UAj0lBu0gnm",pageSizeMenu:"_1E7zOFq2Uqxq4uCs1tr5F_",pageSizeMenuitem:"_3PASTmHE3QRBPjuyMNlu96"}},5164:function(e,t,a){"use strict";a(15);var n=a(20);a(5),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(5);var r=n(a(61)),o=a(317),i=n(a(5165)),u=n(a(5167)),l=n(a(5171)),c=n(a(5173)),s=n(a(5176)),d=n(a(5177)),f=n(a(5178)),p=n(a(5180)),m=n(a(5181)),h=n(a(5184)),g=n(a(5188)),y=n(a(5189)),v=n(a(5190)),_=n(a(5191)),E=n(a(5192)),b=n(a(5205)),S=n(a(5206)),O=n(a(5207)),k=n(a(5208)),T=n(a(5210)),C=n(a(5215)),N=n(a(5216)),A=n(a(5260)),R=n(a(5261)),D=n(a(2002)),P="/v2/edgewize/clusters/:cluster",w=[{path:"/v2/edgewize",component:h.default,exact:!0},{path:"/workspaces/:workspace/v2/edgewize",component:h.default,exact:!0},{path:"/v2/edgewize/create",component:R.default,exact:!0},{path:P,component:v.default,routes:[].concat((0,r.default)(N.default),[{component:_.default,routes:[{path:"".concat(P,"/fota"),component:m.default,exact:!0},{path:"".concat(P,"/nodes"),component:k.default,exact:!0},{path:"".concat(P,"/node-groups"),component:c.default,exact:!0},{path:"".concat(P,"/projects"),component:s.default,exact:!0},{path:"".concat(P,"/deployments"),component:S.default,exact:!0},{path:"".concat(P,"/statefulsets"),component:O.default,exact:!0},{path:"".concat(P,"/daemonsets"),component:b.default,exact:!0},{path:"".concat(P,"/jobs"),component:d.default,exact:!0},{path:"".concat(P,"/cronjobs"),component:y.default,exact:!0},{path:"".concat(P,"/pods"),component:f.default,exact:!0},{path:"".concat(P,"/services"),component:g.default,exact:!0},{path:"".concat(P,"/secrets"),component:l.default,exact:!0},{path:"".concat(P,"/configmaps"),component:p.default,exact:!0},{path:"".concat(P,"/resource-usage"),component:E.default},{path:"".concat(P,"/alerts"),component:i.default,exact:!0},{path:"".concat(P,"/rule-group"),component:u.default,exact:!0},{path:"".concat(P,"/base-info"),component:T.default,exact:!0},{path:"".concat(P,"/members"),component:C.default,exact:!0},{path:"".concat(P,"/roles"),component:A.default,exact:!0},{path:"".concat(P,"/edgeippool"),component:D.default,exact:!0},(0,o.getIndexRoute)({path:P,to:"".concat(P,"/fota"),exact:!0}),(0,o.getIndexRoute)({path:"".concat(P,"/workloads"),to:"".concat(P,"/deployments"),exact:!0})]}])}];t.default=w},5165:function(e,a,n){"use strict";var r=n(20),o=n(157);n(12),n(5),n(11),n(31),n(6),n(86),n(18),n(16),n(9),n(13),n(10),n(4),n(23),n(24),n(17),n(62),n(188),n(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,n(12),n(45),n(5),n(11),n(31),n(6),n(86),n(18),n(28),n(42),n(16),n(34),n(15),n(9),n(13),n(10),n(4),n(23),n(57),n(24),n(17),n(62),n(188),n(7);var i,u=r(n(315)),l=r(n(30)),c=r(n(36)),s=r(n(37)),d=r(n(55)),f=r(n(56)),p=r(n(51)),m=r(n(0)),h=r(n(3)),g=r(n(451)),y=r(n(26)),v=n(433),_=r(n(796)),E=r(n(792)),b=r(n(795)),S=r(n(790)),O=o(n(793)),k=r(n(1151)),T=n(72),C=n(878),N=n(52),A=n(832),R=r(n(1996)),D=r(n(5166));function P(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,n)}return a}function w(e){for(var t=1;t0?"builtin":"custom"},e.handleTabChange=function(t){e.setState({type:t},(function(){e.props.store.list.reset(),e.getData()}))},e.getData=function(t){e.props.store.fetchList(w(w(w({},e.props.match.params),t),{},{sortBy:"activeAt",type:e.state.type}))},e.getResourceType=function(e){var a=(0,g.default)(e);return t("ALERT_TYPE",{type:t(a)})},e.getColumns=function(){var a=e.props,n=a.getFilteredValue,r=a.getSortOrder;return[{title:t("MESSAGE"),dataIndex:"name",render:function(e,t){return m.default.createElement(S.default,{icon:"loudspeaker",title:(0,y.default)(t,"annotations.summary"),description:(0,y.default)(t,"annotations.message")||(0,y.default)(t,"annotations.description","-")})}},{title:t("STATUS"),dataIndex:"state",filters:e.getStatus(),filteredValue:n("state"),isHideable:!0,search:!0,width:"12%",render:function(e){return m.default.createElement(b.default,{type:e,name:t("ALERT_RULE_".concat(e.toUpperCase()),{defaultValue:e})})}},{title:t("SEVERITY"),dataIndex:"labels.severity",filters:e.getAlertingTypes(),filteredValue:n("labels.severity"),isHideable:!0,search:!0,width:"12%",render:function(e){var a=k.default.find((function(t){return t.value===e}));return a?m.default.createElement("span",{style:{backgroundColor:a.bgColor,color:a.color,fontWeight:600,padding:"0px 4px"}},t(a.label)):"-"}},{title:t("ALERTING_POLICY"),dataIndex:"ruleName",isHideable:!0,width:"12%",render:function(t,a){var n=(0,y.default)(a,"labels.rule_group");return m.default.createElement(v.Link,{to:"builtin"===e.state.type?"".concat(e.getPrefix(),"/alert-rules/builtin/").concat(n):"".concat(e.getPrefix(),"/alert-rules/").concat(n)},n)}},{title:t("MONITORING_TARGET"),dataIndex:"labels",isHideable:!0,width:"16%",render:function(a){var n=(0,C.getAlertingResource)(a),r=n.module,o=n.name,i=n.namespace;return r?"hpas"===r?m.default.createElement("span",null,t(T.MODULE_KIND_MAP[r]),": ",o):m.default.createElement(v.Link,{to:"".concat(e.getPrefix({namespace:i}),"/").concat(r,"/").concat(o)},t(T.MODULE_KIND_MAP[r]),": ",o):"-"}},{title:t("TRIGGER_TIME"),dataIndex:"activeAt",isHideable:!0,width:200,sorter:!0,sortOrder:r("activeAt"),render:function(e){return(0,N.getLocalTime)(e).format("YYYY-MM-DD HH:mm:ss")}}]},e}return(0,s.default)(n,[{key:"componentDidMount",value:function(){var e=this.props.match.params,t=e.cluster;!e.namespace&&this.props.store.fetchCount({cluster:t})}},{key:"getPrefix",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.cluster,a=e.namespace,n=this.props.match.params,r=n.cluster,o=n.namespace,i=n.workspace;return t=t||r,a=a||o,"/v2/edgewize".concat(i?"/".concat(i):"","/clusters/").concat(t).concat(a?"/projects/".concat(a):"")}},{key:"getTableProps",value:function(){return{tableActions:w(w({},this.props.tableProps.tableActions),{},{selectActions:[]}),emptyProps:{desc:t("ALERTING_MESSAGE_EMPTY_DESC")}}}},{key:"getAlertingTypes",value:function(){return A.SEVERITY_LEVEL.map((function(e){return{text:t(e.label),value:e.value}}))}},{key:"getStatus",value:function(){return["pending","firing"].map((function(e){return{text:t("ALERT_RULE_".concat(e.toUpperCase())),value:e}}))}},{key:"render",value:function(){var e=this.props,a=e.bannerProps,n=e.tableProps;return m.default.createElement(O.ListPage,(0,u.default)({},this.props,{getData:this.getData,noWatch:!0}),m.default.createElement(E.default,(0,u.default)({},a,{tips:this.tips,tabs:this.tabs,icon:"loudspeaker",title:t("ALERTING_MESSAGE_PL"),description:t("ALERT_MESSAGE_DESC"),className:(0,h.default)(D.default.tab_button,a.className)})),m.default.createElement(_.default,(0,u.default)({},n,this.getTableProps(),{rowKey:"id",itemActions:[],columns:this.getColumns()})))}},{key:"tabs",get:function(){var e=this.props.match.params.namespace;globals.app.hasKSModule("whizard"),(0,y.default)(globals,"ksConfig.multicluster",!1);if(e)return{};var a={value:this.state.type,onChange:this.handleTabChange,options:[{value:"custom",label:t("ALERTS_FROM_CUSTOM_POLICIES"),count:this.props.store.ruleCount}]};(0,N.checkComponentAuthorized)({componentName:"whizard",componentConstraints:(0,y.default)(globals,"licenseInfo.componentConstraints",[])});return a}},{key:"tips",get:function(){return[{title:t("REQUESTS_FOR_TRIGGER_AN_ALARM_Q"),description:t("REQUESTS_FOR_TRIGGER_AN_ALARM_A")}]}}]),n}(m.default.Component))||i;a.default=x},5166:function(e,t,a){e.exports={tab_button:"_3TwronK3Y8Qo-B879UAiYJ"}},5167:function(e,a,n){"use strict";(function(e){var r=n(20),o=n(157);n(12),n(109),n(5),n(187),n(11),n(6),n(84),n(86),n(18),n(16),n(9),n(13),n(10),n(4),n(23),n(24),n(17),n(85),n(62),n(188),n(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,n(12),n(109),n(45),n(5),n(187),n(11),n(6),n(84),n(86),n(18),n(28),n(42),n(16),n(34),n(15),n(9),n(13),n(10),n(4),n(22),n(23),n(57),n(24),n(17),n(85),n(62),n(188),n(7);var i=r(n(61)),u=r(n(315)),l=r(n(43)),c=r(n(30)),s=r(n(58));n(41);var d,f=r(n(44)),p=r(n(36)),m=r(n(37)),h=r(n(55)),g=r(n(56)),y=r(n(51)),v=r(n(0)),_=n(14),E=r(n(26)),b=r(n(3)),S=r(n(788)),O=r(n(795)),k=r(n(792)),T=o(n(793)),C=r(n(796)),N=n(878),A=r(n(1997)),R=n(832),D=n(52),P=r(n(5168)),w=r(n(5170));function I(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,n)}return a}function x(e){for(var t=1;t0?"builtin":"custom"},e.handleTabChange=function(t){e.setState({type:t},(function(){e.props.store.list.reset(),e.getData()}))},e.getData=(0,f.default)(l.default.mark((function t(){var a,n,r,o,i=arguments;return l.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=i.length>0&&void 0!==i[0]?i[0]:{},n=a.silent,r=(0,s.default)(a,["silent"]),o=e.props.store,n&&(o.list.silent=!0),t.next=5,o.fetchList(x(x(x({},e.props.match.params),r),{},{type:e.state.type}));case 5:o.list.silent=!1;case 6:case"end":return t.stop()}}),t)}))),e.getColumns=function(){var a=e.props.getFilteredValue;return[{title:t("NAME"),dataIndex:"name",search:!0,render:function(t,a){return v.default.createElement(S.default,{avatar:"/assets/bell_gear_duotone.svg",title:(0,D.getDisplayName)(a),desc:a.description,className:w.default["table-icon"],to:"builtin"===e.state.type?"".concat(e.props.match.url,"/builtin/").concat(a.name):"".concat(e.props.match.url,"/").concat(t)})}},{title:t("POLICY_STATUS"),dataIndex:"enable",filters:e.getEnableFilter(),filteredValue:a("enable"),isHideable:!0,search:!0,width:"16%",render:function(e,a){return v.default.createElement(O.default,{className:w.default.status_icon,type:a.enabled&&JSON.parse(a.enabled)?"active":"disabled",name:a.enabled&&JSON.parse(a.enabled)?t("ENABLED"):t("DISABLED")})}},{title:t("RULE_STATUS"),dataIndex:"state",search:!0,filters:e.getStatus(),isHideable:!0,width:"16%",render:function(e,t){return v.default.createElement(P.default,{rulesStats:t.rulesStats})}},{title:t("TIME_SPENT"),dataIndex:"evaluationTime",isHideable:!0,width:"12%",render:function(e){return v.default.createElement("span",null,"-"!==e?t("TIME_S",{num:e}):e)}},{title:t("RECENT_DETECT_TIME"),dataIndex:"lastEvaluation",isHideable:!0,width:"15.8%",render:function(e,t){var a=(0,E.default)(t._originDataWithStatus,"status.lastEvaluation");return v.default.createElement("span",null,a?(0,D.getLocalTime)(a).format("YYYY-MM-DD HH:mm:ss"):"-")}}]},e.showCreate=function(){var a=e.props,n=a.match,r=a.routing,o=a.module;return e.props.trigger("alerting.policy.create",{module:o,isEdgeWize:!0,cluster:n.params.cluster,namespace:n.params.namespace,title:t("CREATE_ALERTING_POLICY"),success:r.query})},e}return(0,m.default)(r,[{key:"componentDidMount",value:function(){var e=this.props.match.params,t=e.cluster;!e.namespace&&this.props.store.fetchCount({cluster:t}),localStorage.removeItem("alert-policy-detail-referrer")}},{key:"getStatus",value:function(){return N.ALERTING_STATUS.map((function(e){return{text:t("ALERT_RULE_".concat(e.toUpperCase())),value:e}}))}},{key:"getEnableFilter",value:function(){return[{text:t("ENABLED"),value:"true"},{text:t("DISABLED"),value:"false"}]}},{key:"getAlertingTypes",value:function(){return R.SEVERITY_LEVEL.map((function(e){return{text:t(e.label),value:e.value}}))}},{key:"render",value:function(){var e=this.props,t=e.bannerProps,a=e.tableProps,n=this.showCreate,r=this.tableActions;return"builtin"===this.state.type&&(r.selectActions=r.selectActions.filter((function(e){return"delete"!==e.action})).concat(this.resetPolicy),n=null),v.default.createElement(T.ListPage,(0,u.default)({},this.props,{getData:this.getData,noWatch:!0}),v.default.createElement(k.default,(0,u.default)({},t,{icon:function(){return v.default.createElement("img",{src:"/assets/bell_gear_duotone.svg"})},tips:this.tips,tabs:this.tabs,className:(0,b.default)(w.default.tab_button,t.className)})),v.default.createElement(C.default,(0,u.default)({},a,{rowKey:"name",itemActions:this.itemActions,columns:this.getColumns(),tableActions:r,onCreate:n})))}},{key:"tabs",get:function(){var e=this.props.match.params.namespace;globals.app.hasKSModule("whizard"),(0,E.default)(globals,"ksConfig.multicluster",!1);if(e)return{};var a={value:this.state.type,onChange:this.handleTabChange,options:[{value:"custom",label:t("CUSTOM_POLICIES"),count:this.props.store.ruleCount}]};(0,D.checkComponentAuthorized)({componentName:"whizard",componentConstraints:(0,E.default)(globals,"licenseInfo.componentConstraints",[])});return a}},{key:"tips",get:function(){return[{title:t("REQUESTS_FOR_PUSH_AN_ALARM_Q"),description:t("REQUESTS_FOR_PUSH_AN_ALARM_A")}]}},{key:"itemActions",get:function(){var a=this.props,n=a.trigger,r=a.routing,o=a.match,i=a.name,u=this.state.type,l=[{key:"edit",icon:"pen",text:t("EDIT_INFORMATION"),action:"edit",onClick:function(a){n("alerting.baseinfo.edit",{type:u,detail:a,module:e,cluster:o.params.cluster,namespace:o.params.namespace,title:t("EDIT_ALERTING_POLICY"),success:r.query})}},{key:"editYaml",icon:"pen",text:t("EDIT_YAML"),action:"edit",onClick:function(e){return n("alerting.yaml.edit",{type:u,detail:e,cluster:o.params.cluster,namespace:o.params.namespace,title:t("EDIT_ALERTING_POLICY"),success:r.query})}},{key:"editRule",icon:"wrench",text:t("EDIT_ALERT_RULES"),action:"edit",onClick:function(e){n("alerting.rule.edit",{type:u,detail:e,isEdgeWize:!0,cluster:o.params.cluster,namespace:o.params.namespace,success:r.query})}},{key:"disablePolicy",icon:function(e){return JSON.parse(e.enabled)?"stop":"start"},text:function(e){return JSON.parse(e.enabled)?t("DISABLE"):t("ENABLE")},action:"edit",onClick:function(e){var a=JSON.parse(e.enabled);n(a?"alerting.rule.update":"enable.alerting.rule",{type:u,detail:e,cluster:o.params.cluster,namespace:o.params.namespace,resourceName:i,success:r.query,title:a?t("DISABLE_ALERTING_POLICY"):t("ENABLE_ALERTING_POLICY"),enabled:a})}}];return"builtin"===u?l.push(this.resetPolicy):l.push({key:"delete",icon:"trash",text:t("DELETE"),action:"delete",onClick:function(e){return n("alerting.rule.delete",{type:u,name:i,cluster:o.params.cluster,namespace:o.params.namespace,detail:e,success:r.query})}}),l}},{key:"tableActions",get:function(){var e=this.props,a=e.tableProps,n=e.trigger,r=e.name,o=e.store,u=e.match,l=e.routing,c=this.state.type,s=(0,_.toJS)(o.list.data),d=(0,_.toJS)(o.list.selectedRowKeys),f=s.filter((function(e){return d.includes(e.name)})).every((function(e){return!JSON.parse(e.enabled)})),p=s.filter((function(e){return d.includes(e.name)})).every((function(e){return JSON.parse(e.enabled)}));return x(x({},a.tableActions),{},{selectActions:[].concat((0,i.default)(a.tableActions.selectActions),[{key:"enable",text:t("ENABLE"),action:"edit",disabled:p,onClick:function(){n("enable.alerting.rule",{type:c,resourceName:r,cluster:u.params.cluster,namespace:u.params.namespace,title:t("ENABLE_ALERTING_POLICY"),enabled:!1,success:l.query,batchMode:!0})}},{key:"disable",text:t("DISABLE"),action:"edit",disabled:f,onClick:function(){n("alerting.rule.update",{type:c,resourceName:r,cluster:u.params.cluster,namespace:u.params.namespace,enabled:!0,success:l.query,batchMode:!0})}}])})}},{key:"resetPolicy",get:function(){var e=this.props,a=e.match,n=e.trigger,r=e.routing,o=this.state.type;return{key:"reset",icon:"restart",text:t("RESET"),action:"edit",onClick:function(e){return n("alerting.rule.reset",{type:o,cluster:a.params.cluster,detail:e,success:r.query})}}}}]),r}(v.default.Component))||d;a.default=L}).call(this,n(138)(e))},5168:function(e,a,n){"use strict";n(15);var r=n(20);n(18),n(98),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var o=r(n(30)),i=r(n(96));n(18),n(98);var u=r(n(0)),l=n(186),c=r(n(3)),s=r(n(5169)),d=function(e){var a=e.rulesStats,n={pending:t("ALERT_RULE_PENDING"),inactive:t("ALERT_RULE_INACTIVE"),firing:t("ALERT_RULE_FIRING"),disabled:t("DISABLED")},r=Object.entries(a).map((function(e){var t=(0,i.default)(e,2),a=t[0],r=t[1];return{label:n[a],type:a,value:r}}));return u.default.createElement(l.Tooltip,{content:u.default.createElement(u.default.Fragment,null,r.map((function(e,t){return u.default.createElement("div",{key:t,className:(0,c.default)(s.default.tipContent,[s.default[e.type]],(0,o.default)({},s.default.disabled,0===e.value))},u.default.createElement("span",null,e.label),u.default.createElement("span",null,e.value))}))),placement:"right"},u.default.createElement("ul",{className:s.default.statusBox},r.map((function(e,t){return u.default.createElement("li",{key:t,className:(0,c.default)([s.default["li-".concat(e.type)]],(0,o.default)({},s.default.iconDisabled,0===e.value))},e.value)}))))};a.default=d},5169:function(e,t,a){e.exports={statusBox:"_1ifBF6uR3piHmnGKy2KeOF",tipContent:"_3l80VIQfA1pKw9v6EiYkzK","li-inactive":"_3ecrJy4W7YhbEEsiLO5ENs","li-pending":"_3_PsZRK47V8kEpDYsaJyvu","li-firing":"_2ihayyQZ2h2THkmoV93dw7","li-disabled":"_3O2bP5_W6mtZSuiIRB9ogv",pending:"Qododr5F_fjRDdxajUxgI",inactive:"_3B_vcVe6pcr-JTxv5Kbq9R",firing:"_2RlAl_U2bFzsRhmPwSoevW",disabled:"_1bpqcIWHC4pCdP3mpABoYm",iconDisabled:"_1HhVa4_F79hgktZOZgAAlA"}},5170:function(e,t,a){e.exports={wrapper:"_3zs_CJyIWC71XuROA_HGK_",header:"_1Wy5h4COvZNxR87_drxa2v",banner:"_3T4NcsqU688GRDEPiT9neu",toolbar:"_3skWeeDoFMfgVdcHEuZE20",keyword:"_3Zc1VKV1bygx_F9RC2WrDN",loading:"_2LSD5jajUtejwRMR0ZNi-j",bottomLine:"_1fR9vfeSt10x5s8i0KPflb","table-icon":"_2nbD58szANtmvukQz-QYk6",status_icon:"_1PC_QEU_4OzIdAGjMHG3oe",tab_button:"_3TpcGtc6krQu0FH_SROs9a"}},5171:function(e,a,n){"use strict";n(15);var r=n(20);n(12),n(109),n(5),n(16),n(10),n(4),n(23),n(24),n(17),n(62),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,n(12),n(109),n(45),n(5),n(42),n(16),n(10),n(4),n(23),n(57),n(24),n(17),n(62);var o,i=r(n(315)),u=r(n(36)),l=r(n(37)),c=r(n(55)),s=r(n(56)),d=r(n(51)),f=r(n(0)),p=n(433),m=r(n(788)),h=r(n(792)),g=n(793),y=r(n(810)),v=r(n(933)),_=n(52),E=n(72),b=r(n(5172));function S(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,n=(0,d.default)(e);if(t){var r=(0,d.default)(this).constructor;a=Reflect.construct(n,arguments,r)}else a=n.apply(this,arguments);return(0,s.default)(this,a)}}var O=(0,g.withClusterList)({store:new v.default,module:"secrets",name:"SECRET",rowKey:"uid"})(o=function(e){(0,c.default)(n,e);var a=S(n);function n(){var e;(0,u.default)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i0&&p.default.createElement("span",null,">"," "),p.default.createElement("span",null,e),l[t]&&p.default.createElement("span",null,"(",l[t],")"))})));return p.default.createElement(v.Tooltip,{content:c,placement:"bottom"},p.default.createElement("span",null,p.default.createElement("span",null,"".concat((0,h.default)(u))),(0,h.default)(l)&&p.default.createElement("span",null,"(","".concat((0,h.default)(l)),")")))}return"-"}},{title:t("CREATION_TIME_TCAP"),dataIndex:"createTime",sorter:!0,sortOrder:a("createTime"),isHideable:!0,width:"17.8%",render:function(e){return(0,b.getLocalTime)(e).format("YYYY-MM-DD HH:mm:ss")}}]},r.showCreate=function(){r.props.trigger("node.group.create",A(A({store:r.nodeTreeStore,module:r.props.module},r.props.match.params),{},{success:function(){return r.props.getData()}}))},r.state={tab:"list"},r}return(0,c.default)(n,[{key:"renderContent",value:function(){if("tree"===this.state.tab){var e=this.props.match.params.cluster;return p.default.createElement(T.NodeTree,(0,i.default)({cluster:e},this.props))}var t=this.props.tableProps;return p.default.createElement(E.default,(0,i.default)({},t,{columns:this.getColumns(),itemActions:this.itemActions,onCreate:this.showCreate,searchType:"name"}))}},{key:"render",value:function(){var e=this.props.bannerProps;return p.default.createElement(S.ListPage,(0,i.default)({},this.props,{noWatch:!0}),p.default.createElement(y.default,(0,i.default)({},e,{icon:"node-group",tabs:this.tabs})),this.renderContent())}},{key:"tabs",get:function(){return{value:this.state.tab,onChange:this.handleTabChange,options:[{value:"list",label:t("NODE_GROUP_LIST")},{value:"tree",label:t("NODE_GROUP_TREE")}]}}},{key:"itemActions",get:function(){var e=this.props,a=e.trigger,n=e.name,r=e.getData,o=e.match;return[{key:"edit",icon:"pen",text:t("EDIT_INFORMATION"),action:"edit",show:this.showAction,onClick:function(e){return a("node.group.baseinfo.edit",A(A({detail:e},o.params),{},{success:r}))}},{key:"delete",icon:"trash",text:t("DELETE"),action:"delete",show:this.showAction,onClick:function(e){a("resource.delete",{type:n,detail:e,success:r})}}]}}]),n}(p.default.Component))||o;a.default=D},5174:function(e,a,n){"use strict";var r=n(157),o=n(20);n(12),n(109),n(5),n(11),n(6),n(18),n(16),n(9),n(13),n(10),n(24),n(62),n(188),n(7),Object.defineProperty(a,"__esModule",{value:!0}),a.NodeTree=A,a.default=void 0;var i=o(n(315)),u=o(n(43));n(41);var l=o(n(30)),c=o(n(44)),s=o(n(96));n(12),n(109),n(5),n(11),n(6),n(18),n(28),n(859),n(16),n(34),n(15),n(9),n(13),n(10),n(4),n(22),n(24),n(62),n(188),n(7);var d=r(n(0)),f=o(n(26)),p=o(n(63)),m=n(433),h=o(n(3)),g=n(186),y=o(n(240)),v=o(n(1176)),_=o(n(953)),E=o(n(1318)),b=n(5175),S=o(n(1584)),O=o(n(1320));function k(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,n)}return a}function T(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:[];return null==t||t.forEach((function(t){var n,r;(a.push(t.metadata.name),null===(n=t.spec)||void 0===n?void 0:n.children)&&e(null===(r=t.spec)||void 0===r?void 0:r.children,a)})),a}(A);I(e)}else I([])}),[G,A]),(0,d.useEffect)((function(){!function(){(null==this?void 0:this.props)&&(this.props=e)}(),W()}),[]),d.default.createElement(g.Columns,{className:O.default["node-tree"]},d.default.createElement(g.Column,{className:(0,h.default)(O.default["node-tree-left"],"is-4")},d.default.createElement("div",{className:O.default["node-tree-bg"]},d.default.createElement(g.InputSearch,{className:O.default.search,name:"search",value:L.searchValue,placeholder:t("SEARCH_BY_NAME"),onChange:function(e,t){j({searchValue:t,page:1})},autoComplete:"off"}),d.default.createElement("div",null,d.default.createElement("div",{className:(0,h.default)(O.default["node-group__tree-item"],O.default["node-group__tree-item-margin"])},d.default.createElement("img",{className:O.default.icon,width:20,src:"/assets/disk_group.svg",alt:""}),d.default.createElement("span",{className:O.default["node-group__tree-item-title"],onClick:W},"全部节点组"),d.default.createElement("img",{className:O.default["node-group__tree-item-icon-hover"],name:G?"sort-ascending":"sort-descending",width:20,src:"/assets/".concat(G?"close_all":"expand_all",".svg"),onClick:function(){return Y(!G)},alt:""}),d.default.createElement("span",{className:O.default["node-group__tree-item-add"]},d.default.createElement(g.Icon,{onClick:function(){e.trigger("node.group.create",T(T({store:C,module:e.module},e.match.params),{},{success:function(){W()}}))},className:O.default["node-group__tree-item-icon-hover"],type:"light",name:"add",size:20}))),d.default.createElement(E.default,{treeData:A,expandedKeys:w,onSelect:function(e){B(e),C.setSelectRowKeys([e])},autoExpandParent:G,renderMenu:function(a){var n,r=[d.default.createElement(g.Menu.MenuItem,{key:"edit"},t("EDIT_INFORMATION"))];return(null===(n=a.spec.children)||void 0===n?void 0:n.length)||(r.unshift(d.default.createElement(g.Menu.MenuItem,{key:"move"},t("MOVE_NODE_GROUP_TREE"))),r.push(d.default.createElement(g.Menu.MenuItem,{key:"delete"},t("DELETE")))),d.default.createElement(g.Dropdown,{content:d.default.createElement(g.Menu,{onClick:function(t,n){switch(n){case"delete":!function(e){J.apply(this,arguments)}(a);break;case"move":!function(t){var a;e.trigger("node.group.tree.move",T(T({},e.match.params),{},{onOk:(a=(0,c.default)(u.default.mark((function e(a){return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",C.moveTreeNode({cluster:v,nodetree:t.key,params:[{op:"replace",path:"/spec/parent",value:a}]}));case 1:case"end":return e.stop()}}),e)}))),function(e){return a.apply(this,arguments)}),required:!1,visible:!0,success:W}))}(a);break;case"edit":!function(e){q.apply(this,arguments)}(a)}}},r.map((function(e){return e})))},d.default.createElement(g.Icon,{name:"more",size:"20"}))},filterName:L.searchValue})))),d.default.createElement(g.Column,{className:O.default["node-tree-right"]},!(0,p.default)(V)&&d.default.createElement(S.default,{handleBindIp:function(){var t;e.trigger("edge.nodegroup.ippool.add",T(T({module:"ippools"},l),{},{group:null===(t=V.metadata)||void 0===t?void 0:t.name,store:N,success:function(e){var t;W(),(null===(t=V.metadata)||void 0===t?void 0:t.annotations)&&(V.metadata.annotations["infra.kubesphere.io/ippool-".concat(e.namespace)]=e.ippool)}}))},cluster:v,detail:V,renderBtn:d.default.createElement(g.Button,null,d.default.createElement(m.Link,{to:"/node-groups/clusters/".concat(v,"/").concat(null==V||null===(a=V.metadata)||void 0===a?void 0:a.name,"/nodes?path=").concat(o.pathname),className:"ellipsis block"},t("管理节点组")))}),d.default.createElement(b.EdgewizeNodeTable,(0,i.default)({ref:r},e,{node:V,cluster:v,itemActions:[{key:"delete",icon:"trash",text:t("UNBOUND_NODE_GROUP"),action:"delete",onClick:(n=(0,c.default)(u.default.mark((function t(a){var n,o;return u.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,C.checkNodeGroupEdgeNode({cluster:v,nodegroup:V.key,name:a.metadata.name});case 2:if((o=t.sent).metadata.annotations["apps.edgewize.io/drain-nodegroup"]===(null===(n=V.metadata)||void 0===n?void 0:n.name)){t.next=6;break}return y.default.error("无法移出该节点,节点上存在 非系统项目空间的 pod"),t.abrupt("return");case 6:e.trigger("edgeNode.unbound.nodeGroup",{resource:a.metadata.name,params:{cluster:v,nodegroup:V.key,name:a.metadata.name,params:o},store:C,success:function(){var e,t;null===(e=r.current)||void 0===e||null===(t=e.getData)||void 0===t||t.call(e)}});case 7:case"end":return t.stop()}}),t)}))),function(e){return n.apply(this,arguments)})}]}))))}var R=A;a.default=R},5175:function(e,a,n){"use strict";var r=n(157),o=n(20);n(12),n(5),n(11),n(31),n(6),n(18),n(16),n(9),n(13),n(10),n(24),n(62),n(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=a.EdgewizeNodeTable=void 0,n(12),n(5),n(11),n(31),n(6),n(18),n(28),n(16),n(34),n(15),n(9),n(13),n(10),n(4),n(436),n(22),n(24),n(62),n(7);var i=o(n(43)),u=o(n(30));n(41);var l=o(n(315)),c=o(n(44)),s=o(n(96)),d=r(n(0)),f=o(n(26)),p=o(n(63)),m=n(186),h=o(n(796)),g=o(n(788)),y=o(n(795)),v=o(n(790)),_=n(444),E=n(72),b=n(794),S=o(n(954)),O=o(n(953)),k=o(n(1585));function T(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,n)}return a}function C(e){for(var t=1;t=.9&&d.default.createElement(m.Icon,{name:"exclamation"})),description:"".concat(t.cpu_used,"/").concat(t.cpu_total," Core")})}},{title:t("MEMORY"),key:"memory",isHideable:!0,render:function(e){var t=F(e,[{type:"memory_used",unit:"Gi"},{type:"memory_total",unit:"Gi"},{type:"memory_utilisation"}]);return d.default.createElement(v.default,{title:d.default.createElement("div",{className:k.default.resource},d.default.createElement("span",null,"".concat(Math.round(100*t.memory_utilisation),"%")),t.memory_utilisation>=.9&&d.default.createElement(m.Icon,{name:"exclamation"})),description:"".concat(t.memory_used,"/").concat(t.memory_total," GiB")})}},{title:t("POD_PL"),key:"pods",isHideable:!0,render:function(e){var t=F(e,[{type:"pod_used"},{type:"pod_total"}]),a=t.pod_total?parseFloat(t.pod_used/t.pod_total):0;return d.default.createElement(v.default,{title:"".concat(Math.round(100*a),"%"),description:"".concat(t.pod_used,"/").concat(t.pod_total)})}},{title:t("FROM_NODE_GROUP"),dataIndex:"nodegroup",isHideable:!1,search:!1,render:function(e,t){var a=(t||{}).metadata;return(null==a?void 0:a.labels["apps.edgewize.io/nodegroup"])||""}}],isLoading:null==U?void 0:U.isLoading}))}));a.EdgewizeNodeTable=R;var D=R;a.default=D},5176:function(e,a,n){"use strict";var r=n(20),o=n(157);n(12),n(109),n(5),n(11),n(31),n(6),n(16),n(9),n(13),n(10),n(4),n(23),n(24),n(17),n(62),n(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,n(12),n(109),n(45),n(5),n(11),n(31),n(6),n(28),n(42),n(16),n(34),n(15),n(9),n(13),n(10),n(4),n(22),n(23),n(57),n(24),n(17),n(62),n(7);var i=r(n(315)),u=r(n(43)),l=r(n(30)),c=r(n(58));n(41);var s,d=r(n(44)),f=r(n(36)),p=r(n(37)),m=r(n(55)),h=r(n(56)),g=r(n(51)),y=r(n(0)),v=r(n(26)),_=r(n(189)),E=r(n(788)),b=r(n(795)),S=r(n(792)),O=r(n(796)),k=o(n(793)),T=n(52),C=n(794),N=r(n(970)),A=r(n(1197)),R=n(1195);function D(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,n)}return a}function P(e){for(var t=1;t0&&void 0!==i[0]?i[0]:{},n=a.silent,r=(0,c.default)(a,["silent"]),e.query=r,r.type=r.type||"user",e.type=r.type,o=e.props.store,n&&(o.list.silent=!0),t.next=8,o.fetchList(P(P({},e.props.match.params),r));case 8:o.list.silent=!1;case 9:case"end":return t.stop()}}),t)}))),e.getLastValue=function(t,a){var n=e.monitoringStore.data,r=((0,v.default)(n,"".concat(a,".data.result"))||[]).find((function(e){return(0,v.default)(e,"metric.namespace")===t.name}));return(0,v.default)(r,"value[1]",0)},e.getColumns=function(){var a=e.props,n=a.getSortOrder,r=a.prefix;return[{title:t("NAME"),dataIndex:"name",sorter:!0,sortOrder:n("name"),render:function(e,t){return y.default.createElement(E.default,{to:"Terminating"===t.status?null:"".concat(r,"/").concat(e),icon:"project",iconSize:40,isMultiCluster:t.isFedHostNamespace,desc:t.description||"-",title:(0,T.getDisplayName)(t)})}},{title:t("STATUS"),dataIndex:"status",isHideable:!0,render:function(e){return y.default.createElement(b.default,{type:e,name:t(e.toUpperCase()),flicker:!0})}},{title:t("WORKSPACE"),dataIndex:"workspace",isHideable:!0},{title:t("CPU_USAGE"),key:"namespace_cpu_usage",isHideable:!0,render:function(t){return(0,C.getSuitableValue)(e.getLastValue(t,R.MetricTypes.cpu),"cpu","-")}},{title:t("MEMORY_USAGE"),key:"namespace_memory_usage_wo_cache",isHideable:!0,render:function(t){return(0,C.getSuitableValue)(e.getLastValue(t,R.MetricTypes.memory),"memory","-")}},{title:t("GPU_USAGE"),key:"namespace_gpu_usage",isHideable:!0,render:function(t){return(0,C.getSuitableValue)(e.getLastValue(t,R.MetricTypes.gpu),"gpu","-")}},{title:t("GPU_MEMORY_USAGE"),key:"namespace_gpu_memory_usage",isHideable:!0,render:function(t){return(0,C.getSuitableValue)(e.getLastValue(t,R.MetricTypes.gpu_memory),"memory","-")}},{title:t("POD_PL"),key:"namespace_pod_count",isHideable:!0,render:function(t){return e.getLastValue(t,R.MetricTypes.pod)}}]},e.handleFetch=function(t,a){e.props.routing.query(P(P({},t),{},{type:e.type}),a)},e.handleTabChange=function(t){var a=e.props.match.params.cluster;e.props.routing.push("/v2/edgewize/clusters/".concat(a,"/projects?type=").concat(t))},e.showAction=function(e){return!e.isFedManaged},e.showCreate=function(){return e.props.trigger("project.create",P(P({},e.props.match.params),{},{isEdgeWize:!0,success:function(){return e.getData()}}))},e}return(0,p.default)(n,[{key:"render",value:function(){var e=this.props,t=e.bannerProps,a=e.tableProps,n=this.monitoringStore.isLoading,r=(0,T.hideGPUByLicense)(this.getColumns(),this.cluster);return y.default.createElement(k.ListPage,(0,i.default)({},this.props,{getData:this.getData,module:"namespaces"}),y.default.createElement(S.default,(0,i.default)({},t,{tabs:this.tabs})),y.default.createElement(O.default,(0,i.default)({},a,{itemActions:this.itemActions,tableActions:this.tableActions,columns:r,onCreate:"system"===this.type?null:this.showCreate,isLoading:a.isLoading||n,searchType:"name"})))}},{key:"itemActions",get:function(){var e=this,a=this.props,n=a.trigger,r=a.routing,o=a.name;return[{key:"edit",icon:"pen",text:t("EDIT_INFORMATION"),action:"edit",show:this.showAction,onClick:function(e){return n("resource.baseinfo.edit",{detail:(0,_.default)(e,"workspace"),success:r.query})}},{key:"edit-annotations",icon:"pen",text:t("EDIT_ANNOTATIONS"),action:"manage",show:function(t){return t.workspace!==globals.config.systemWorkspace&&e.showAction(t)},onClick:function(e){return n("resource.annotations.edit",{detail:e})}},{key:"modify",icon:"restart",text:t("ASSIGN_WORKSPACE"),action:"manage",show:function(t){return!t.workspace&&e.showAction(t)},onClick:function(e){return n("project.assignworkspace",{isEdge:!0,detail:e,success:r.query})}},{key:"delete",icon:"trash",text:t("DELETE"),action:"delete",show:function(t){return t.workspace!==globals.config.systemWorkspace&&e.showAction(t)},onClick:function(e){return n("resource.delete",{type:o,resource:e.name,detail:(0,_.default)(e,"workspace"),success:r.query})}}]}},{key:"tabs",get:function(){return{value:this.type||"user",onChange:this.handleTabChange,options:[{value:"user",label:t("USER_PROJECTS")},{value:"system",label:t("SYSTEM_PROJECTS")}]}}},{key:"tableActions",get:function(){return P(P({},this.props.tableProps.tableActions),{},{onFetch:this.handleFetch})}},{key:"cluster",get:function(){return this.props.match.params.cluster}}]),n}(y.default.Component))||s;a.default=I},5177:function(e,a,n){"use strict";n(15);var r=n(20);n(12),n(109),n(5),n(18),n(16),n(4),n(23),n(24),n(17),n(62),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,n(12),n(109),n(45),n(5),n(18),n(28),n(42),n(16),n(4),n(23),n(57),n(24),n(17),n(62);var o,i=r(n(315)),u=r(n(36)),l=r(n(37)),c=r(n(55)),s=r(n(56)),d=r(n(51)),f=r(n(0)),p=n(433),m=r(n(788)),h=r(n(792)),g=n(793),y=r(n(1069)),v=r(n(804)),_=r(n(810)),E=n(52),b=n(434),S=n(72),O=r(n(858));function k(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,n=(0,d.default)(e);if(t){var r=(0,d.default)(this).constructor;a=Reflect.construct(n,arguments,r)}else a=n.apply(this,arguments);return(0,s.default)(this,a)}}var T=(0,g.withClusterList)({store:new O.default("jobs"),module:"jobs",name:"JOB",rowKey:"uid"})(o=function(e){(0,c.default)(n,e);var a=k(n);function n(){var e;(0,u.default)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i0&&void 0!==arguments[0]?arguments[0]:{},t=e.isFirst,a=(0,c.default)(e,["isFirst"]),n=r.store.list,o=n.limit,i=n.page;r.store.fetchList(j(j(j({limit:o,page:i},r.props.match.params),r.state.filters),a),t)},r.handleRegistry=function(){r.trigger("node.edge.register",{cluster:r.cluster,store:r.store,success:r.getData})},r.handleManageNodes=function(){r.setState({isManaging:!r.state.isManaging})},r.changeUnmanagedNodesFilter=function(e){r.setState({filters:e?{status:"unmanaged"}:{}}),r.handleFetch({status:e?"unmanaged":""})},r.handleCardCheckChange=function(e,t){var a,n=null!==(a=r.state.selectedKeys)&&void 0!==a?a:[];r.setState({selectedKeys:e?(0,O.default)([].concat((0,u.default)(n),[t])):n.filter((function(e){return e!==t}))})},r.handleCancelSelect=function(){r.setState({selectedKeys:[],isManaging:!1})},r.handleSelectAll=function(e){if(e)return r.setState({selectedKeys:r.allAllowedNodes.map((function(e){return e.name}))});r.setState({selectedKeys:[]})},r.handleFilterInput=function(e){(0,S.default)(e,r.state.filters)||(r.setState({filters:e}),r.handleFetch(e,!0))},r.clearFilter=function(){r.setState({filters:{}}),r.handleFetch({},!0)},r.handleFetch=function(e){r.getData(e)},r.handleManage=function(){r.selectedNodes.every(r.canManage)?r.trigger("node.batch.manage",{cluster:r.cluster,selectedNodes:r.selectedNodes,success:function(){r.setState({selectedKeys:[]}),r.getData()}}):r.trigger("node.filter.confirm",{title:t("BATCH_ACTION",{action:t("ACCESS_MANAGE")}),okText:t("NEXT_OP",{action:t("ACCESS_MANAGE")}),nodes:r.selectedNodes.filter(r.canManage),nextStep:function(e){r.trigger("node.batch.manage",{cluster:r.cluster,selectedNodes:e,success:function(){r.setState({selectedKeys:[]}),r.getData()}})}})},r.handleDelete=function(){r.selectedNodes.every(r.canDelete)?r.trigger("node.batch.delete",{cluster:r.cluster,type:"ACCESS_NODE",selectedNodes:r.selectedNodes,resource:r.state.selectedKeys.join(", "),success:function(){r.setState({selectedKeys:[]}),r.getData()}}):r.trigger("node.filter.confirm",{title:t("BATCH_ACTION",{action:t("DELETE")}),okText:t("NEXT_OP",{action:t("DELETE")}),nodes:r.selectedNodes.filter(r.canDelete),nextStep:function(e){r.trigger("node.batch.delete",{cluster:r.cluster,type:"ACCESS_NODE",selectedNodes:e,resource:e.map((function(e){return e.name})).join(", "),success:function(){r.setState({selectedKeys:[]}),r.getData()}})}})},r.handleCancelManaged=function(){r.selectedNodes.every(r.canCancelManaged)?r.trigger("node.batch.cancel.managed",{cluster:r.cluster,selectedNodes:r.selectedNodes,success:function(){r.setState({selectedKeys:[]}),r.getData()}}):r.trigger("node.filter.confirm",{title:t("BATCH_ACTION",{action:t("CANCEL_MANAGED")}),okText:t("NEXT_OP",{action:t("CANCEL_MANAGED")}),nodes:r.selectedNodes.filter(r.canCancelManaged),nextStep:function(e){r.trigger("node.batch.cancel.managed",{cluster:r.cluster,selectedNodes:e,success:function(){r.setState({selectedKeys:[]}),r.getData()}})}})},r.handleEditSoftInfo=function(){if(r.selectedNodes.every(r.canEditSoftInfo)){var e=r.selectedNodes[0].versionList;r.trigger("node.batch.softInfo",{cluster:r.cluster,versionList:e,batchMode:!0,formData:{containerEngineSofts:[],edgeSofts:[]},selectedNodes:r.selectedNodes,success:function(){r.setState({selectedKeys:[],isManaging:!1}),r.getData()}})}else r.trigger("node.filter.confirm",{title:t("BATCH_ACTION",{action:t("EDIT_SOFTWARE_INFO")}),okText:t("NEXT_OP",{action:t("EDIT_SOFTWARE_INFO")}),nodes:r.selectedNodes.filter(r.canEditSoftInfo),nextStep:function(e){var t=e[0].versionList;r.trigger("node.batch.softInfo",{cluster:r.cluster,versionList:t,batchMode:!0,formData:{containerEngineSofts:[],edgeSofts:[]},selectedNodes:e,success:function(){r.setState({selectedKeys:[],isManaging:!1}),r.getData()}})}})},r.handleCardLink=function(e){"registering"!==e.status&&r.routing.push("".concat(r.prefix,"/").concat(e.name))},r.batchActions=function(){return h.default.createElement(h.default.Fragment,null,h.default.createElement(k.Checkbox,{checked:r.allAllowedNodes.every((function(e){var t=e.name;return r.state.selectedKeys.includes(t)})),onChange:r.handleSelectAll},h.default.createElement("span",{className:M.default.selectAll},t("SELECT_ALL"))),h.default.createElement(k.Button,{key:"delete",type:"danger",disabled:!r.selectedNodes.some(r.canDelete),onClick:r.handleDelete,"data-test":"table-batch-delete"},t("DELETE")),h.default.createElement(k.Button,{key:"cancel_managed",type:"danger",disabled:!r.selectedNodes.some(r.canCancelManaged),onClick:r.handleCancelManaged,"data-test":"table-cancel-manage"},t("CANCEL_MANAGED")),h.default.createElement(k.Button,{key:"access_manage",disabled:!r.selectedNodes.some(r.canManage),onClick:r.handleManage,"data-test":"table-access-manage"},t("ACCESS_MANAGE")),h.default.createElement(k.Button,{key:"edit_software_info",disabled:!r.selectedNodes.some(r.canEditSoftInfo),onClick:r.handleEditSoftInfo,"data-test":"table-edit-software-info"},t("EDIT_SOFTWARE_INFO")))},r.renderActions=function(){if(r.enabledActions.includes("create"))return h.default.createElement(k.Button,{key:"register",type:"control",onClick:r.handleRegistry,"data-test":"table-register"},t("REGISTER"))},r.renderToolbar=function(){return h.default.createElement(k.Level,{className:M.default.toolbar},h.default.createElement(k.LevelItem,null,h.default.createElement(x.default,{className:M.default.search,columns:r.filterColumns,filters:r.state.filters,onChange:r.handleFilterInput})),h.default.createElement(k.LevelRight,{style:{marginLeft:"12px"}},h.default.createElement(k.Button,{type:"flat",icon:"refresh",onClick:function(){return r.handleFetch(r.state.filters)},"data-test":"table-refresh"}),r.renderActions()))},r.renderBatchActions=function(){var e=r.state.isManaging;return h.default.createElement(k.Level,{style:{marginBottom:"8px"},className:(0,g.default)((0,l.default)({},M.default.batchActions,e))},h.default.createElement(k.LevelLeft,null,e?r.batchActions():h.default.createElement("div",{onClick:r.handleManageNodes,className:M.default.batchBtn},h.default.createElement(k.Icon,{name:"cogwheel"}),t("BATCH_ACCESS_NODE"))),h.default.createElement(k.LevelRight,null,e?h.default.createElement(k.Button,{type:"flat",className:M.default.cancelSelect,onClick:r.handleCancelSelect,"data-test":"table-cancel-select"},t("DESELECT")):h.default.createElement(k.Checkbox,{onChange:r.changeUnmanagedNodesFilter},t("NODE_STATUS_UNMANAGED"))))},r.renderSoftwareAvatar=function(e,a){var n=e.name,r=e.softIcon,o=e.status,u=e.title,l=e.softwares,c=e.edgeSoft;return h.default.createElement(k.Tooltip,{key:"".concat(n,"_").concat(a),className:M.default.statusTip,content:h.default.createElement(h.default.Fragment,null,h.default.createElement("strong",null,t("STATUS_INFORMATION")),l?l.map((function(e){var a=e.status,n=e.title;return h.default.createElement("div",{key:n},h.default.createElement("p",{className:M.default.info},h.default.createElement(k.Icon,(0,A.getSoftStatus)(a)),n),h.default.createElement("p",{className:M.default.statusInfo},t("STATUS_VALUE",{value:t("NODE_SOFT_STATUS_".concat(a.toLocaleUpperCase()))})))})):h.default.createElement(h.default.Fragment,null,h.default.createElement("p",{className:M.default.info},h.default.createElement(k.Icon,(0,A.getSoftStatus)(o)),u),h.default.createElement("p",{className:M.default.statusInfo},t("STATUS_VALUE",{value:t("NODE_SOFT_STATUS_".concat(o.toLocaleUpperCase()))}))))},h.default.createElement("div",{className:M.default.flex},h.default.createElement("div",{className:M.default.software},h.default.createElement(k.Icon,{name:r,size:20}),h.default.createElement(k.Icon,(0,i.default)({size:12,className:M.default.softwareStatus},(0,A.getSoftStatus)(o)))),c&&h.default.createElement("div",{className:M.default.connect})))},r.renderEdgeSofts=function(e){return(0,b.default)(e)?r.renderSoftwareAvatar({name:"edge-soft",title:t("EDGE_SOFT"),softIcon:"turn-dot-delta-duotone",status:"uninstalled"}):e.map((function(e){var a=e.name,n=e.installationStatus;return r.renderSoftwareAvatar({name:a,title:t("SOFT",{value:a}),softIcon:(0,A.getSoftIconName)(a),status:n,edgeSoft:!0})}))},r.renderContainerEngineSofts=function(e){if((0,b.default)(e))return r.renderSoftwareAvatar({key:"container-engine",title:t("CONTAINER_ENGINE"),softIcon:"turn-dot-duotone",status:"uninstalled"});if(1===e.length){var a=e[0],n=a.name,o=a.installationStatus;return r.renderSoftwareAvatar({name:n,title:t("SOFT",{value:n}),softIcon:(0,A.getSoftIconName)(n),status:o})}return r.renderSoftwareAvatar({key:"container-engine",title:t("CONTAINER_ENGINE"),softIcon:"turn-dot-duotone",status:"installed",softwares:e.map((function(e){var a=e.name,n=e.installationStatus;return{name:a,title:t("SOFT",{value:a}),softIcon:(0,A.getSoftIconName)(a),status:n}}))})},r.renderNoMatchDataTips=function(){return h.default.createElement("div",{className:M.default.emptyText},h.default.createElement("span",{className:M.default.emptyTipIcon},h.default.createElement(k.Icon,{name:"exclamation",size:48})),h.default.createElement("div",null,t("NO_MATCHING_RESULT_FOUND")),h.default.createElement("p",null,t("YOU_CAN_TRY_TO"),h.default.createElement("span",{className:M.default.action,onClick:function(){return r.handleFetch(r.state.filters,!0)},"data-test":"table-empty-refresh"},t("REFRESH_DATA")),t("OR"),h.default.createElement("span",{className:M.default.action,onClick:r.clearFilter,"data-test":"table-empty-clear-filter"},t("CLEAR_SEARCH_CONDITIONS"))))},r.renderNodeCards=function(){var e=r.store.list,a=e.isLoading,n=e.data;return a||(0,b.default)(n)?h.default.createElement("div",{className:M.default.emptyText},r.renderNoMatchDataTips()):h.default.createElement("div",{className:M.default.nodeCards},(0,y.toJS)(n).map((function(e,a){var n=e.name,o=e.status,i=e.nodeIP,u=e.edgeSofts,c=e.containerEngineSofts,s="registering"===o;return h.default.createElement("div",{key:"".concat(n,"_").concat(a),className:(0,g.default)(M.default.card,(0,l.default)({},M.default.notAllowed,s))},h.default.createElement("div",{className:M.default.operators},h.default.createElement("div",{className:M.default.avatar},h.default.createElement(k.Icon,{name:"edge-node",size:40}),r.state.isManaging&&h.default.createElement(k.Checkbox,{className:M.default.checkBox,checked:r.state.selectedKeys.includes(n),disabled:r.enabledActions,onChange:function(e){r.handleCardCheckChange(e,n)}})),!s&&r.renderMoreMenu(e)),h.default.createElement("div",{className:(0,g.default)(M.default.title,(0,l.default)({},M.default.notAllowed,s)),onClick:function(){return r.handleCardLink(e)}},(0,A.getAccessNodeDisplayName)(e)),h.default.createElement("div",{className:M.default.desc},i),h.default.createElement(R.default,{className:M.default.status,type:o,name:t("NODE_STATUS_".concat(o.toLocaleUpperCase()))}),h.default.createElement("div",{className:M.default.softwares},r.renderContainerEngineSofts(c),h.default.createElement("div",{className:M.default.edgeSofts},r.renderEdgeSofts(u))))})))},r.getItemActions=function(e){var a=e.status;if("registering"===a)return[];if("registerFail"===a)return[{key:"reRegister",icon:"login-left-duotone",text:t("RE_REGISTER"),action:"edit",onClick:function(e){r.trigger("node.edge.register",{cluster:r.cluster,detail:e,title:t("RE_REGISTER"),reRegister:!0,success:r.getData})}},{key:"delete",icon:"trash",text:t("DELETE"),action:"delete",onClick:function(e){r.trigger("resource.delete",{type:"ACCESS_NODE",detail:e,resource:e.name,onOk:function(){var t=[{nodeName:e.name,taskName:"del_node"}];return r.store.patchNode(r.cluster,t)},success:function(){r.setState({selectedKeys:[]}),T.default.success(t("DELETED_SUCCESSFULLY")),r.getData()}})}}];var n=[{key:"edit",icon:"pen",text:t("EDIT_INFORMATION"),action:"edit",show:"registerFail"!==a,onClick:function(e){return r.trigger("node.baseinfo.edit",{detail:e,success:r.getData})}},{key:"editSoftwareInfo",icon:"pen",text:t("EDIT_SOFTWARE_INFO"),action:"edit",show:["registerFail","unmanaged"].includes(a),onClick:function(e){var t=e.name,a=e.edgeSofts,n=e.versionList,o=e.containerEngineSofts;r.trigger("node.softInfo",{cluster:r.cluster,nodeName:t,versionList:n,formData:{containerEngineSofts:o,edgeSofts:a},success:r.getData})}},{key:"syncTime",icon:"loading-circle-duotone",text:t("SYNC_TIME"),action:"edit",onClick:function(e){return r.trigger("node.sync.time",{detail:e,success:r.getData})}}];return"unmanaged"===a?n.concat([{key:"manage",icon:"download-box-2-duotone",text:t("ACCESS_MANAGE"),action:"edit",onClick:function(e){return r.trigger("node.edge.manage",{detail:e,success:r.getData})}},{key:"delete",icon:"trash",text:t("DELETE"),action:"delete",onClick:function(e){r.trigger("resource.delete",{type:"ACCESS_NODE",detail:e,resource:e.name,onOk:function(){var t=[{nodeName:e.name,taskName:"del_node"}];return r.store.patchNode(r.cluster,t)},success:function(){r.setState({selectedKeys:[]}),T.default.success(t("DELETED_SUCCESSFULLY")),r.getData()}})}}]):n.concat([{key:"cancelManage",icon:"trash",text:t("CANCEL_MANAGED"),action:"delete",onClick:function(e){return r.trigger("resource.delete",{title:t("CANCEL_MANAGED"),type:"ACCESS_NODE",detail:e,resource:e.name,onOk:function(){var t=[{nodeName:e.name,taskName:"cancel_managed"}];return r.store.patchNode(r.cluster,t)},success:function(){T.default.success({content:t("CANCEL_MANAGED_SUCCESSFULLY")}),r.getData}})}}])},r.renderItemActions=function(e){var t=r.getItemActions(e).filter((function(e){return r.enabledActions.includes(e.action)}));return(0,b.default)(t)?null:t.map((function(t,a){var n=t.key,r=t.text,o=t.icon,i=t.onClick;return h.default.createElement("div",{key:"".concat(n,"_").concat(a),onClick:function(){return null==i?void 0:i(e)},className:M.default.menuItem},h.default.createElement(k.Icon,{name:o}),h.default.createElement("span",null,r))}))},r.renderMoreMenu=function(e){var t=r.renderItemActions(e);return(0,b.default)(r.enabledActions)||(0,b.default)(t)?null:h.default.createElement(k.Dropdown,{placement:"bottomRight",modifiers:{preventOverflow:{boundariesElement:"viewport"}},content:h.default.createElement("div",{className:M.default.menu},t)},h.default.createElement(k.Button,{type:"flat",className:M.default.more},h.default.createElement(k.Icon,{name:"more"})))},r.renderPagination=function(){var e=r.store.list,t=e.page,a=e.total,n=e.limit;return h.default.createElement(w.default,{page:t,total:a,limit:n,onChange:r.handleFetch})},r.renderList=function(){return(0,b.default)(r.allAllowedNodes)&&(0,b.default)(r.state.filters)?h.default.createElement(P.default,{icon:"edge-node",title:t("EMPTY_WRAPPER",{resource:t("EDGE_NODE")}),desc:t("NODE_ACCESS_EMPTY_DESC"),action:r.renderActions()}):h.default.createElement(k.Loading,{spinning:r.store.list.isLoading},h.default.createElement(h.default.Fragment,null,r.renderToolbar(),r.enabledActions.includes("edit")&&r.renderBatchActions(),r.renderNodeCards(),r.renderPagination()))},!(0,_.default)(r.edgeClusterNavs,(function(e){var t=(0,E.default)(e,"items");return(0,_.default)(t,["name","nodes"])}))){var o=e.location.pathname.replace("fota","node-groups");e.history.replace(o)}return r.store=new I.default,r.state={isLoading:!1,isManaging:!1,filters:{},selectedKeys:[]},r}return(0,d.default)(n,[{key:"componentDidMount",value:function(){this.getData({isFirst:!0}),(0,N.startAutoRefresh)(this,{method:"getData",leading:!1,interval:5e3})}},{key:"componentWillUnmount",value:function(){(0,N.stopAutoRefresh)(this)}},{key:"render",value:function(){return h.default.createElement(h.default.Fragment,null,h.default.createElement(D.default,{className:M.default.banner,icon:"edge-fota",title:t("NODE_ACCESS_PL"),description:t("NODE_ACCESS_DESC")}),this.renderList())}},{key:"routing",get:function(){return this.props.rootStore.routing}},{key:"cluster",get:function(){return this.props.match.params.cluster}},{key:"edgeClusterNavs",get:function(){return globals.app.getEdgeCalculationNavs(this.cluster)}},{key:"filterColumns",get:function(){var e=[{text:t("NODE_STATUS_REGISTERING"),value:"registering"},{text:t("NODE_STATUS_REGISTERFAIL"),value:"registerFail"},{text:t("NODE_STATUS_RUNNING"),value:"running"},{text:t("NODE_STATUS_WARNING"),value:"warning"},{text:t("NODE_STATUS_UNMANAGED"),value:"unmanaged"},{text:t("NODE_STATUS_UNSCHEDULABLE"),value:"unschedulable"}];return[{dataIndex:"nodeName",title:t("NAME"),search:!0},{dataIndex:"status",title:t("STATUS"),search:!0,filters:e}]}},{key:"prefix",get:function(){return"/v2/edgewize/clusters/".concat(this.cluster,"/fota")}},{key:"allAllowedNodes",get:function(){return(0,y.toJS)(this.store.list.data)}},{key:"selectedNodes",get:function(){var e=this;return(0,y.toJS)(this.store.list.data).filter((function(t){var a=t.name;return e.state.selectedKeys.includes(a)}))}},{key:"enabledActions",get:function(){var e=this.props.match.params;return globals.app.getActions(j({module:"nodes"},e))}}]),n}(h.default.Component))||o)||o)||o;a.default=z},5182:function(e,t,a){"use strict";a(15);var n=a(20);a(4),a(23),a(17),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(45),a(42),a(4),a(23),a(57),a(17);var r=n(a(36)),o=n(a(37)),i=n(a(55)),u=n(a(56)),l=n(a(51)),c=n(a(0)),s=n(a(1)),d=n(a(806)),f=n(a(915));function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,n=(0,l.default)(e);if(t){var r=(0,l.default)(this).constructor;a=Reflect.construct(n,arguments,r)}else a=n.apply(this,arguments);return(0,u.default)(this,a)}}var m=function(e){(0,i.default)(a,e);var t=p(a);function a(){return(0,r.default)(this,a),t.apply(this,arguments)}return(0,o.default)(a,[{key:"shouldComponentUpdate",value:function(e){var t=this.props.filters;return!(0,d.default)(t,e.filters)}},{key:"render",value:function(){return c.default.createElement(f.default,this.props)}}]),a}(c.default.Component);t.default=m,m.propTypes={className:s.default.string,columns:s.default.array.isRequired,filters:s.default.object.isRequired,onChange:s.default.func.isRequired}},5183:function(e,t,a){e.exports={banner:"_120aAclmohEJDefGl8wO-U",loading:"bgW65Pfc6UCS7QjbQG1hW",toolbar:"_25x5bYmMBVDAgqD5_6H9_Z",operators:"VWNzl2AtH1gu7vFsQPZlV",batchActions:"f4gLRu2zs--Q4dXYfB0dg",selectAll:"pdM6TO89ZNy9uKqG7vhE5",batchBtn:"QmKzsU8NRbMn9-c1xWyrp",unmanagedNodes:"_2rvJxF6zDRhJ9wa0CO-Vkt",nodeCards:"_3dzDaODBcirwPkoWeGmmcq",notAllowed:"_2jHpDZxDGZ9flIMlMJmXrc",card:"hkN4jpRB1_lsQZwLGrKkF",avatar:"_1SFLzNoU75s_3Scs3k4E0G",checkBox:"_2YnStu0FSR5h25WAxHhm1N",title:"_1PvEPuT4VK5Aw4zfzazHtG",desc:"_2_813SAMqEE6RxKKn3hUYG",status:"Ko5ps9XohK-sVRDb44g5D",inners:"_3Gu_vfDdwJx0ecHl239M6N",softwares:"tr3A6xAbOR8vAI4V2naLU",flex:"am7Gfc2Fa3v1q44eEYtvK",edgeSofts:"_27hPNppX-HjZOR8DaLFSpU",connect:"_3oVKX5eOXk5r8qEEj5FjwO",cancelSelect:"_1ZEPTZridaBX6fG13LHc9K",software:"oe6ttll26NkGkLQd0aAIR",softwareStatus:"oz93fg-ETLjx6bXQtal-k",statusTip:"_2gjoo7At5q_3gRebAxAa61",info:"_1K09AsnYEq59Qij-5UOxZ-",statusInfo:"_3fQAVfzJvl8zQqCIFVhNF1",menu:"_1rf9E-ukbu86GgtexNdXWA",menuItem:"u5kadt6oK_tPU5WRgdVvk",emptyText:"Cv-9qvc3c0QvsvImUyBOz",emptyTipIcon:"_3H_roUWYg-eEdvnzxspi8y",action:"_11KFg95hQ8giX04M5B8xPz",more:"_3zqWn5QClhjOLJS7KqvKRC"}},5184:function(e,a,n){"use strict";var r=n(20);n(12),n(5),n(11),n(31),n(6),n(84),n(73),n(18),n(16),n(9),n(13),n(10),n(4),n(23),n(17),n(85),n(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,n(12),n(45),n(5),n(11),n(31),n(6),n(84),n(160),n(73),n(18),n(28),n(191),n(42),n(16),n(159),n(34),n(15),n(9),n(13),n(10),n(4),n(22),n(23),n(57),n(17),n(85),n(7);var o=r(n(43));n(41);var i,u=r(n(44)),l=r(n(30)),c=r(n(61)),s=r(n(36)),d=r(n(37)),f=r(n(55)),p=r(n(56)),m=r(n(51)),h=r(n(0)),g=n(14),y=n(239),v=r(n(26)),_=r(n(63)),E=r(n(189)),b=r(n(446)),S=r(n(854)),O=n(186),k=n(52),T=n(791),C=r(n(105)),N=r(n(438)),A=r(n(955)),R=r(n(325)),D=r(n(1400)),P=r(n(792)),w=r(n(833)),I=r(n(874)),x=r(n(886)),M=r(n(915)),L=r(n(1047)),j=r(n(5185)),U=r(n(5187));function z(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,n)}return a}function G(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};r.fetchHostData(e),r.fetchMemberData(e),r.fetchData(e)},r.getClusterParamsLabel=function(e,t){var a=t?"cluster-role.kubesphere.io/host=":"!cluster-role.kubesphere.io/host",n=e.group,r=e.tags,o=void 0===r?[]:r;return n&&(n="cluster.kubesphere.io/group=".concat(n)),o=Array.isArray(o)?o.map((function(e){return"label.cluster.kubesphere.io/".concat(e)})):"cluster.kubesphere.io/group=".concat(o),[n].concat((0,c.default)(o),[a,"!cluster-role.kubesphere.io/edge"]).filter(Boolean).join(",")},r.fetchData=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};r.store.fetchList(G(G({},(0,E.default)(e,"group","tags","__index")),{},{limit:e.limit||10,labelSelector:"cluster-role.kubesphere.io/edge"}))},r.fetchMemberData=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};r.memberStore.fetchListByUser(G(G({},(0,E.default)(e,"group","tags","__index")),{},{limit:-1,labelSelector:r.getClusterParamsLabel(e,!1)}))},r.fetchHostData=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};r.hostStore.fetchListByUser(G(G({},(0,E.default)(e,"group","tags","__index")),{},{labelSelector:r.getClusterParamsLabel(e,!0),limit:-1}))},r.handlePagination=function(e){r.fetchData(e)},r.handleRefresh=function(){r.fetchData({page:1})},r.handleSearch=function(e){r.fetchData(e),r.fetchHostData(e)},r.enterEdgewizeCluster=function(){var e=(0,u.default)(o.default.mark((function e(t){return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r.routing.push("/v2/edgewize/clusters/".concat(t,"/nodes"));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),r.showAddCluster=function(){r.trigger("edge.cluster.add",{module:"clusters",title:t("CREATE_EDGEWIZE_CLUSTER"),hostedInOptions:r.hostedInOptions,success:function(){r.routing.push(),r.initData()}})},r.getItemActions=function(e){return[{key:"pen",icon:"pen",text:t("EDIT_INFORMATION"),show:!0,onClick:function(e){r.trigger("resource.baseinfo.edit",{detail:e,modal:j.default,hostedInOptions:r.hostedInOptions,success:r.initData})}},{key:"data",icon:"data",text:t("VIEW_KUBECONFIG"),show:!1,onClick:function(e){r.trigger("cluster.viewKubeConfig",{detail:e,isEdgeWize:!0,success:r.initData})}},{key:"trash",icon:"trash",text:t("DELETE_CLUSTER"),show:!0,onClick:function(e){r.trigger("cluster.unbind",{detail:G(G({},e),{},{tags:(e.tags||[]).map((function(e){return(r.tagsStore.tags||[]).find((function(t){return t.name===e.name}))})).filter(Boolean)}),isEdgeWize:!0,success:r.initData})}}].filter((function(e){return e.show}))},r.handleReset=function(){r.initData(r.state.filters)},r.clearFilter=function(){r.setState({filters:{}}),r.initData()},r.handleColumnsHide=function(e){r.setState({hideColumns:e},(function(){var e=(0,k.safeParseJSON)(localStorage.getItem("hide-columns"),{});e[F]=r.state.hideColumns,localStorage.setItem("hide-columns",JSON.stringify(e))}))},r.handleFilterChange=function(e){r.setState({filters:e}),r.handleSearch(e)};var i=(0,v.default)((0,k.safeParseJSON)(localStorage.getItem("hide-columns"),{}),F,[]);return r.store=new A.default,r.hostStore=new N.default,r.memberStore=new N.default,r.state={filters:{},hideColumns:i},r}return(0,d.default)(n,[{key:"componentDidMount",value:function(){this.initData(),this.websocket=new R.default,this.initWebsocket()}},{key:"componentWillUnmount",value:function(){this.disposer&&this.disposer()}},{key:"initWebsocket",value:function(){var e=this,t=(0,k.getHostClusterName)();this.websocket.watch("/apis/cluster.kubesphere.io/v1alpha1/watch/clusters"),this.fetchData=(0,S.default)(this.fetchData,500),this.disposer=(0,g.reaction)((function(){return e.websocket.message}),(function(a){if("Cluster"===a.object.kind){var n=C.default.clusters(a.object);"MODIFIED"===a.type&&e.store.list.updateItem(n),"ADDED"!==a.type||n.name===t||(0,g.toJS)(e.store.list.data).find((function(e){return e.name===n.name}))||e.store.list.addItem(n),"DELETED"===a.type&&e.store.list.deleteItem(n)}}))}},{key:"renderListDataNotFound",value:function(){return h.default.createElement(I.default,{icon:"exclamation",title:t("NO_MATCHING_RESULT_FOUND"),desc:null,action:h.default.createElement("p",null,t("YOU_CAN_TRY_TO"),h.default.createElement("span",{className:U.default.emptyAction,onClick:this.handleReset,"data-test":"table-empty-refresh"},t("REFRESH_DATA")),t("OR"),h.default.createElement("span",{className:U.default.emptyAction,onClick:this.clearFilter,"data-test":"table-empty-clear-filter"},t("CLEAR_SEARCH_CONDITIONS")))})}},{key:"renderEmptyList",value:function(){return h.default.createElement(w.default,{icon:"cluster",title:t("NO_CLUSTER_TIP"),desc:t("NO_CLUSTER_TIP_DESC"),actions:this.isOperation?h.default.createElement(O.Button,{type:"control",onClick:this.showAddCluster},t("ADD_CLUSTER")):null})}},{key:"renderList",value:function(){var e=this,t=this.store.list,a=t.data,n=t.page,r=t.total,o=t.limit,i=this.state.hideColumns,u=(0,b.default)(a,(function(e){return e.expiredDay}));return(0,_.default)(a)?(0,_.default)(this.state.filters)?this.renderEmptyList():this.renderListDataNotFound():h.default.createElement("ul",{className:U.default.cards},!(0,_.default)(u)&&h.default.createElement("div",null,u.map((function(t){return h.default.createElement(D.default,{isEdgeWize:!0,key:t.name,data:t,onEnter:e.enterEdgewizeCluster,isOperation:e.isOperation,itemActions:e.getItemActions(t),hideColumns:i})})),h.default.createElement("div",{className:"text-right margin-t12"},h.default.createElement(x.default,{page:n,total:r,limit:o,onChange:this.handlePagination}))))}},{key:"renderSearch",value:function(){var e=this.state.hideColumns;return h.default.createElement("div",{className:U.default.searchPanel},h.default.createElement(M.default,{placeholder:t("SEARCH_BY_NAME"),columns:this.filterColumns,onChange:this.handleFilterChange,filters:this.state.filters}),h.default.createElement(O.Button,{type:"flat",icon:"refresh",onClick:this.handleRefresh,"data-test":"cluster-refresh"}),h.default.createElement(L.default,{className:U.default.columnMenu,title:t("CUSTOM_COLUMNS"),columns:this.clusterColumns,value:e,onChange:this.handleColumnsHide}),this.enabledActions.includes("create")&&h.default.createElement(O.Button,{type:"control",onClick:this.showAddCluster,"data-test":"edgewize-cluster-create"},t("CREATE_EDGEWIZE_CLUSTER")))}},{key:"render",value:function(){var e=this.store.list.isLoading;return h.default.createElement("div",{className:U.default.wrapper},h.default.createElement(P.default,{className:U.default.banner,icon:"edge-cluster",title:t("EDGEWIZE_MANAGEMENT"),description:t("EDGEWIZE_MANAGEMENT_DESC"),tabs:this.tabs,tabsActions:this.renderSearch()}),e?h.default.createElement(O.Loading,{className:U.default.loading}):this.renderList())}},{key:"authKey",get:function(){return"clusters"}},{key:"tabs",get:function(){return{value:"clusters",options:[]}}},{key:"filterColumns",get:function(){return[{dataIndex:"name",title:t("NAME"),search:!0}]}},{key:"clusterColumns",get:function(){return[{title:t("CLUSTER_NAME"),dataIndex:"name"},{title:t("NODE_COUNT"),dataIndex:"nodeCount",isHideable:!0},{title:t("KUBERNETES_VERSION"),dataIndex:"version",isHideable:!0},{title:t("HOSTED_IN"),dataIndex:"hostCluster",isHideable:!0},{title:t("CREATION_TIME"),dataIndex:"createTime",isHideable:!0}]}},{key:"enabledActions",get:function(){return globals.app.getActions({module:this.authKey})}},{key:"isOperation",get:function(){return this.enabledActions.includes("create")}},{key:"routing",get:function(){return this.props.rootStore.routing}},{key:"hostedInOptions",get:function(){if(globals.app.isMultiCluster){var e=[];return(0,_.default)((0,g.toJS)(this.hostStore.list.data))||e.push({label:t("HOST_CLUSTER"),options:(0,g.toJS)(this.hostStore.list.data).map((function(e){var t=e.name;return{label:t,value:t}}))}),(0,_.default)((0,g.toJS)(this.memberStore.list.data))||e.push({label:t("MEMBER_CLUSTER"),options:(0,g.toJS)(this.memberStore.list.data).map((function(e){var t=e.name;return{label:t,value:t}}))}),e}}}]),n}(h.default.Component))||i)||i)||i;a.default=H},5185:function(e,a,n){"use strict";n(15);var r=n(20);n(16),n(4),n(23),n(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,n(45),n(42),n(16),n(4),n(23),n(57),n(17);var o=r(n(315)),i=r(n(36)),u=r(n(37)),l=r(n(55)),c=r(n(56)),s=r(n(51)),d=r(n(0)),f=n(14),p=r(n(830)),m=r(n(1)),h=r(n(787)),g=r(n(1633)),y=r(n(5186));function v(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,n=(0,s.default)(e);if(t){var r=(0,s.default)(this).constructor;a=Reflect.construct(n,arguments,r)}else a=n.apply(this,arguments);return(0,c.default)(this,a)}}var _=function(e){(0,l.default)(n,e);var a=v(n);function n(e){var t;return(0,i.default)(this,n),(t=a.call(this,e)).handleOk=function(){var e=t.props.onOk,a=t.formRef.current;null==e||e(a.getData())},t.formRef=d.default.createRef(),t.formTemplateData=(0,p.default)((0,f.toJS)(e.detail._originData)),t}return(0,u.default)(n,[{key:"render",value:function(){var e=this.props,a=e.visible,n=e.isSubmitting,r=e.onCancel;return d.default.createElement(h.default,{width:691,title:t("EDIT_INFORMATION"),description:t("EDIT_CLUSTER_INFO_DESC"),icon:"cluster",okText:t("OK"),onOk:this.handleOk,onCancel:r,visible:a,isSubmitting:n},d.default.createElement(g.default,(0,o.default)({},this.props,{isEdit:!0,formRef:this.formRef,formTemplate:this.formTemplateData,onOk:this.handleOk,className:y.default.editForm})))}},{key:"isMultiCluster",get:function(){return globals.app.isMultiCluster}},{key:"clusterName",get:function(){return this.formTemplateData.metadata.name}},{key:"options",get:function(){var e=this.props.hostedInOptions;return!this.isMultiCluster&&this.clusterName?[{label:this.clusterName,value:this.clusterName}]:e}}]),n}(d.default.Component);a.default=_,_.propTypes={detail:m.default.object,visible:m.default.bool,onOk:m.default.func,onCancel:m.default.func,isEdit:m.default.bool,isSubmitting:m.default.bool},_.defaultProps={visible:!1,isEdit:!1,onOk:function(){},onCancel:function(){},isSubmitting:!1}},5186:function(e,t,a){e.exports={editForm:"_3C9ReB8lgP4VHd4kW5ntN4"}},5187:function(e,t,a){e.exports={searchPanel:"_1Rw29JFUkK3eggqbOSAG4C",search:"_13tvMYzWCovTyJFZ69Mrq6",banner:"_306-At1hJfEdBdukKk02BM",wrapper:"_1kyvVhOjwVAT07LIgrIW4x",cards:"_2N0Xziba4msOtEu4FOrU_3",total:"_20BmCIxjYZQbVIOqq2EsVD",noData:"h_R36WYsCa61LUVXwB83T",title:"_3bbuwNwMiv3F3ac_dcmrCH",batchManage:"_3Bsxk-s7yX_q6WKUtgtMBj",loading:"_1FKNwtG86uOVvgiAk1_3Lr",action:"_19zD045lPYiYMl7NYRUfQF",clusterGroupTag:"_23Ibi3vICXh_Hw_b4ynuJd",production:"_1XKELE7vePTkiL_UN0dSbi",development:"eUxyYWO4c8hmfHqvvL8LB",testing:"-lZYywCf9kKcQTXtnuh2M",demo:"_283Aj0gD4CBZDkOWRGXabK",emptyAction:"_2-RCSIUUn_fPbGlNSUdAK6"}},5188:function(e,a,n){"use strict";n(15);var r=n(20);n(12),n(109),n(5),n(11),n(73),n(18),n(16),n(4),n(23),n(24),n(17),n(62),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,n(12),n(109),n(45),n(5),n(11),n(73),n(18),n(42),n(16),n(4),n(23),n(57),n(24),n(17),n(62);var o,i=r(n(315)),u=r(n(36)),l=r(n(37)),c=r(n(55)),s=r(n(56)),d=r(n(51)),f=r(n(0)),p=n(433),m=n(186),h=r(n(788)),g=r(n(790)),y=r(n(792)),v=n(793),_=r(n(810)),E=n(52),b=n(72),S=r(n(1091));function O(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,n=(0,d.default)(e);if(t){var r=(0,d.default)(this).constructor;a=Reflect.construct(n,arguments,r)}else a=n.apply(this,arguments);return(0,s.default)(this,a)}}var k=(0,v.withClusterList)({store:new S.default,module:"services",name:"SERVICE",rowKey:"uid"})(o=function(e){(0,c.default)(n,e);var a=O(n);function n(){var e;(0,u.default)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i1?t("LOAD_BALANCERS_SCAP"):t("LOAD_BALANCER_SCAP"),a.title=e.loadBalancerIngress.join("; ")),e.externalName?f.default.createElement(g.default,{description:a.des,title:function(){return f.default.createElement(m.Tooltip,{content:e.externalName},f.default.createElement("span",null,a.title))}}):f.default.createElement(g.default,{description:t("".concat(a.des)),title:a.title})},e.getColumns=function(){var a=e.props,n=a.getSortOrder,r=a.module,o=e.props.match.params.cluster;return[{title:t("NAME"),dataIndex:"name",sorter:!0,sortOrder:n("name"),search:!0,width:"20%",render:function(e,t){return f.default.createElement(h.default,{icon:b.ICON_TYPES[r],iconSize:40,title:(0,E.getDisplayName)(t),desc:t.description||"-",isMultiCluster:t.isFedManaged,to:"/v2/edgewize/clusters/".concat(o,"/projects/").concat(t.namespace,"/").concat(r,"/").concat(e)})}},{title:t("PROJECT"),dataIndex:"namespace",isHideable:!0,width:"15%",render:function(e){return f.default.createElement(p.Link,{to:"/v2/edgewize/clusters/".concat(o,"/projects/").concat(e)},e)}},{title:t("INTERNAL_ACCESS"),dataIndex:'annotations["kubesphere.io/serviceType"]',isHideable:!0,width:"15%",render:function(e,a){return f.default.createElement(g.default,{title:a.clusterIP||"",description:t("".concat(a.type))})}},{title:t("EXTERNAL_ACCESS"),dataIndex:"specType",isHideable:!0,width:"20%",render:function(t,a){return e.renderExternalService(a)}},{title:t("CREATION_TIME_TCAP"),dataIndex:"createTime",sorter:!0,sortOrder:n("createTime"),isHideable:!0,width:"10%",render:function(e){return(0,E.getLocalTime)(e).format("YYYY-MM-DD HH:mm:ss")}}]},e.showCreate=function(){var t=e.props,a=t.query,n=t.match,r=t.module,o=t.getData;return e.props.trigger("service.simple.create",{module:r,isEdgeWize:!0,namespace:a.namespace,cluster:n.params.cluster,success:o})},e}return(0,l.default)(n,[{key:"render",value:function(){var e=this.props,t=e.match,a=e.bannerProps,n=e.tableProps;return f.default.createElement(v.ListPage,this.props,f.default.createElement(y.default,a),f.default.createElement(_.default,(0,i.default)({},n,{itemActions:this.itemActions,columns:this.getColumns(),cluster:t.params.cluster,getCheckboxProps:this.getCheckboxProps})))}},{key:"itemActions",get:function(){var e=this,a=this.props,n=a.trigger,r=a.name;return[{key:"edit",icon:"pen",text:t("EDIT_INFORMATION"),action:"edit",show:this.showAction,onClick:function(e){return n("resource.baseinfo.edit",{detail:e})}},{key:"editYaml",icon:"pen",text:t("EDIT_YAML"),action:"edit",show:this.showAction,onClick:function(e){return n("resource.yaml.edit",{detail:e})}},{key:"editService",icon:"network-router",text:t("EDIT_SERVICE"),action:"edit",show:this.showAction,onClick:function(e){return n("service.edit",{detail:e,isEdgeWize:!0})}},{key:"editGateway",icon:"ip",text:t("EDIT_EXTERNAL_ACCESS"),action:"edit",show:function(t){return e.showAction(t)&&t.type===b.SERVICE_TYPES.VirtualIP},onClick:function(e){return n("service.gateway.edit",{detail:e,isEdgeWize:!0})}},{key:"delete",icon:"trash",text:t("DELETE"),action:"delete",show:this.showAction,onClick:function(e){return n("resource.delete",{type:r,detail:e})}}]}}]),n}(f.default.Component))||o;a.default=k},5189:function(e,a,n){"use strict";n(15);var r=n(20);n(12),n(109),n(5),n(18),n(16),n(4),n(23),n(24),n(17),n(62),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,n(12),n(109),n(45),n(5),n(18),n(28),n(42),n(16),n(4),n(23),n(57),n(24),n(17),n(62);var o,i=r(n(315)),u=r(n(36)),l=r(n(37)),c=r(n(55)),s=r(n(56)),d=r(n(51)),f=r(n(0)),p=n(433),m=r(n(788)),h=r(n(795)),g=r(n(792)),y=n(793),v=r(n(804)),_=r(n(810)),E=n(52),b=n(434),S=n(72),O=r(n(858));function k(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,n=(0,d.default)(e);if(t){var r=(0,d.default)(this).constructor;a=Reflect.construct(n,arguments,r)}else a=n.apply(this,arguments);return(0,s.default)(this,a)}}var T=(0,y.withClusterList)({store:new O.default("cronjobs"),module:"cronjobs",name:"CRONJOB",rowKey:"uid"})(o=function(e){(0,c.default)(n,e);var a=k(n);function n(){var e;(0,u.default)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i1&&void 0!==arguments[1]?arguments[1]:"";return isNaN(e)?"-":"".concat(e," ").concat(t)}},{key:"render",value:function(){var e=this.props,t=e.theme,a=e.store,n=e.cluster,r=this.props.store.data,o=(0,m.hideGPUByLicense)(this.columns,n);return d.default.createElement(h.default,{rowKey:"namespace",theme:t,columns:o,store:a,dataSource:r.toJS(),emptyText:d.default.createElement(y.default,null)})}},{key:"prefix",get:function(){var e=this.props,t=e.workspace,a=e.cluster;return t?"/".concat(t,"/clusters/").concat(a,"/projects"):(0,m.isEdgeWizePage)()?"/v2/edgewize/clusters/".concat(a,"/projects"):"/clusters/".concat(a,"/projects")}}]),n}(d.default.Component))||o)||o;a.default=_},5203:function(e,t,a){e.exports={wrapper:"_e5fmdJWnJ0QOQZJcCVUn",pane:"_1eJxJG0aVZtYyz3GDR_ZR_",pane__toolbar:"j1zwlJVD42xGeaYh7dK4i",pane__pagination:"_2HmdHospbTYFJI9TlaR34l",title:"_1k1gAmEYjCqP7BrSiENkh6",toolbar:"_1FWU5qUC8uuujJw6d2l65x",toolbar_buttons:"_2LIzJ64kqvBLuZZE61UvP7",toolbar_filter:"_2Z8Trv-1eNjdlaX8r5WZST",sort_button:"uoSjuNhFB8P8g3tMb3Lxk",table:"_19GZKNCZYjDNKSNnF7cNeH",table_rank:"_3iqV5YZScGpLLHwZ0HZbEZ",table_no_border:"ShtMcJ1EGg_b4SA5fgyV7",rankList_row:"_26zYIroWfOqZKnyRv1Yx7J",rankLink__sort_col:"_37lju7-H5Pp-RNF4l1X1FM"}},5204:function(e,t,a){e.exports={wrapper:"_1avbBwdk0YDRcmr2lKxT_s",pane:"_2k4E0DPmYnUKa820YSBXTA",tabs:"_2FS1EN8g7vjL7CzoUmGKmC",selected:"_1WHzTov_2_-DO-ExFAK9gE"}},5205:function(e,a,n){"use strict";n(15);var r=n(20);n(12),n(109),n(5),n(18),n(16),n(4),n(23),n(24),n(17),n(62),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,n(12),n(109),n(45),n(5),n(18),n(28),n(42),n(16),n(4),n(23),n(57),n(24),n(17),n(62);var o,i=r(n(61)),u=r(n(315)),l=r(n(36)),c=r(n(37)),s=r(n(55)),d=r(n(56)),f=r(n(51)),p=r(n(0)),m=r(n(26)),h=n(433),g=r(n(788)),y=r(n(792)),v=n(793),_=r(n(865)),E=r(n(804)),b=r(n(810)),S=n(434),O=n(52),k=n(72),T=r(n(858));function C(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,n=(0,f.default)(e);if(t){var r=(0,f.default)(this).constructor;a=Reflect.construct(n,arguments,r)}else a=n.apply(this,arguments);return(0,d.default)(this,a)}}var N=(0,v.withClusterList)({store:new T.default("daemonsets"),module:"daemonsets",name:"DAEMONSET",rowKey:"uid"})(o=function(e){(0,s.default)(n,e);var a=C(n);function n(){var e;(0,l.default)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i=.9&&h.default.createElement(_.Icon,{name:"exclamation"})),description:"".concat(a.cpu_used,"/").concat(a.cpu_total," Core")})}},{title:t("MEMORY"),key:"memory",isHideable:!0,render:function(t){var a=e.getRecordMetrics(t,[{type:"memory_used",unit:"Gi"},{type:"memory_total",unit:"Gi"},{type:"memory_utilisation"}]);return h.default.createElement(C.default,{title:h.default.createElement("div",{className:I.default.resource},h.default.createElement("span",null,"".concat(Math.round(100*a.memory_utilisation),"%")),a.memory_utilisation>=.9&&h.default.createElement(_.Icon,{name:"exclamation"})),description:"".concat(a.memory_used,"/").concat(a.memory_total," GiB")})}},{title:t("POD_PL"),key:"pods",isHideable:!0,render:function(t){var a=e.getRecordMetrics(t,[{type:"pod_used"},{type:"pod_total"}]),n=a.pod_total?parseFloat(a.pod_used/a.pod_total):0;return h.default.createElement(C.default,{title:"".concat(Math.round(100*n),"%"),description:"".concat(a.pod_used,"/").concat(a.pod_total)})}},{title:t("NODE_GROUP_PL"),dataIndex:"nodegroup",isHideable:!1,search:!1,render:function(e,t){return t.labels["apps.edgewize.io/nodegroup"]||""}}]},e.showCreate=function(){var t=e.props,a=t.query,n=t.match,r=t.module;return e.props.trigger("workload.create",{module:r,isEdgeWize:!0,namespace:a.namespace,cluster:n.params.cluster})},e}return(0,d.default)(n,[{key:"getStatus",value:function(){return R.NODE_STATUS.map((function(e){return{text:t(e.text),value:e.value}}))}},{key:"render",value:function(){var e=this.props,a=e.bannerProps,n=e.tableProps;return h.default.createElement(N.ListPage,(0,o.default)({},this.props,{getData:this.getData,noWatch:!0}),h.default.createElement(b.default,(0,o.default)({},a,{title:t("EDGE_NODE_PL"),icon:"edge-node",tips:this.tips})),h.default.createElement(E.default,(0,o.default)({},n,{onCreate:this.showCreate,itemActions:this.itemActions,tableActions:this.tableActions,columns:this.getColumns(),isLoading:n.isLoading})))}},{key:"cluster",get:function(){return this.props.match.params.cluster}},{key:"isExpired",get:function(){return!1}},{key:"isOverLimit",get:function(){return!1}},{key:"itemActions",get:function(){var e=this,a=this.props,n=a.store,r=a.clusterStore,o=a.routing,i=a.trigger,u=a.name;return[{key:"edit",icon:"pen",text:t("EDIT"),action:"edit",onClick:function(e){return i("resource.baseinfo.edit",{detail:e,success:o.query})}},{key:"uncordon",icon:"start",text:t("UNCORDON"),action:"edit",show:function(e){return"success"===e.importStatus&&e.unschedulable},onClick:function(e){return n.uncordon(e).then(o.query)}},{key:"cordon",icon:"stop",text:t("CORDON"),action:"edit",show:function(e){return"success"===e.importStatus&&!e.unschedulable},onClick:function(e){return n.cordon(e).then(o.query)}},{key:"terminal",icon:"terminal",text:t("OPEN_TERMINAL"),action:"edit",show:function(t){return"success"===t.importStatus&&e.getReady(t)},onClick:function(t){return e.handleOpenTerminal(t)}},{key:"nodegroup",icon:"restart",text:t("BOUND_NODE_GROUP"),action:"edit",show:function(e){return""===(0,y.default)(e,'labels["apps.edgewize.io/nodegroup"]',"")},onClick:function(t){return i("bound.node.group",{detail:t,cluster:e.cluster,success:e.getData})}},{key:"logs",icon:"eye",text:t("VIEW_LOG"),action:"edit",show:function(e){return"success"!==e.importStatus},onClick:function(){return i("node.add.log",{detail:(0,g.toJS)(r.detail),isEdgeWize:!0})}},{key:"delete",icon:"trash",text:t("DELETE"),action:"delete",show:function(e){return"failed"===e.importStatus},onClick:function(e){return i("resource.delete",{type:u,detail:e,success:o.query})}}]}},{key:"tableActions",get:function(){var e=this,a=this.props,n=a.trigger,r=a.routing,o=a.tableProps,i=[];i.push({key:"add",type:"control",text:t("ADD"),action:"create",tooltip:void 0,forbidden:!1,onClick:function(){return n("node.edge.add",{cluster:e.cluster,store:e.store,isEdgeWize:!0})}});var u=(0,g.toJS)(this.store.list),l=u.data,c=u.selectedRowKeys,s=null==l?void 0:l.find((function(e){var t;return(null==e||null===(t=e.labels)||void 0===t?void 0:t["apps.edgewize.io/nodegroup"])&&(null==c?void 0:c.includes(e.name))}));return M(M({},o.tableActions),{},{actions:i,selectActions:[{key:"taint",type:"default",text:t("EDIT_TAINTS"),action:"edit",onClick:function(){return n("node.taint.batch",{success:r.query})}},{key:"nodegroup",icon:"restart",text:t("BOUND_NODE_GROUP"),action:"edit",disabled:!!s,show:function(e){return""===(0,y.default)(e,'labels["apps.edgewize.io/nodegroup"]',"")},onClick:function(){return n("bound.node.group",{cluster:e.cluster,success:e.getData})}}]})}},{key:"tips",get:function(){return[{title:t("WHAT_IS_NODE_TAINTS_Q"),description:t("WHAT_IS_NODE_TAINTS_A")}]}}]),n}(h.default.Component))||l;a.default=U},5209:function(e,t,a){e.exports={taints:"vPrV6PEs5hvmijmtArMc1",overview:"_2eG7fE4qm3Q3CL4aFykyAi",resource:"_5xiDlxpP50TQM_7KhctwB"}},5210:function(e,a,n){"use strict";n(15);var r=n(20);n(5),n(11),n(31),n(84),n(18),n(16),n(4),n(316),n(23),n(24),n(17),n(85),n(62),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,n(45),n(5),n(11),n(31),n(84),n(18),n(28),n(42),n(16),n(4),n(316),n(23),n(57),n(24),n(17),n(85),n(62);var o,i=r(n(36)),u=r(n(37)),l=r(n(55)),c=r(n(56)),s=r(n(51)),d=r(n(26)),f=r(n(0)),p=n(239),m=n(186),h=r(n(789)),g=r(n(790)),y=r(n(792)),v=n(52),_=n(791),E=n(794),b=r(n(890)),S=r(n(945)),O=r(n(438)),k=r(n(5211)),T=r(n(5212)),C=r(n(5214));function N(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,n=(0,s.default)(e);if(t){var r=(0,s.default)(this).constructor;a=Reflect.construct(n,arguments,r)}else a=n.apply(this,arguments);return(0,c.default)(this,a)}}var A={cpu_usage:"cluster_cpu_total",memory_usage:"cluster_memory_total",gpu_usage:"cluster_gpu_usage",gpu_memory_usage:"cluster_gpu_memory_usage",disk_size_usage:"cluster_disk_size_capacity",node_count:"cluster_node_total"},R=(0,p.inject)("rootStore")(o=(0,p.observer)(o=(0,_.trigger)(o=function(e){(0,l.default)(n,e);var a=N(n);function n(){var e;(0,i.default)(this,n);for(var r=arguments.length,o=new Array(r),u=0;u1?f.default.createElement(T.default,{className:C.default.manage,content:a}):t.length>0&&f.default.createElement(m.Button,{className:C.default.singleButton,onClick:function(){return t[0].onClick()}},t[0].text)},e}return(0,u.default)(n,[{key:"componentDidMount",value:function(){this.fetchData()}},{key:"render",value:function(){var e=this.store.detail.kubernetesVersion,a=this.getResourceOptions();return f.default.createElement(f.default.Fragment,null,f.default.createElement(y.default,{icon:"cdn",title:t("BASIC_INFORMATION"),description:t("CLUSTER_BASE_INFO_DESC")}),f.default.createElement(h.default,{title:t("CLUSTER_INFORMATION")},f.default.createElement("div",{className:C.default.header},f.default.createElement(g.default,{icon:"edge-node",title:(0,v.getDisplayName)(this.store.detail),description:t("EDGE_CLUSTER")}),f.default.createElement(g.default,{title:e||this.store.version,description:t("KUBERNETES_VERSION")}),this.editPromission&&this.renderManageButton()),f.default.createElement("div",{className:C.default.content},a.map((function(e){return f.default.createElement(g.default,{key:e.name,icon:e.icon,title:e.value,description:t(e.name)})})))))}},{key:"store",get:function(){return this.clusterStore}},{key:"enabledActions",get:function(){return globals.app.getActions({module:"cluster-settings",cluster:this.props.match.params.cluster})}},{key:"editPromission",get:function(){var e;return null===(e=globals.user.globalRules.clusters)||void 0===e?void 0:e.includes("manage")}},{key:"enableManageAction",get:function(){return[{actionName:"resource.baseinfo.edit",onClick:this.showEdit,icon:"pen",text:t("EDIT_INFORMATION")}]}}]),n}(f.default.Component))||o)||o)||o;a.default=R},5211:function(e,a,n){"use strict";n(15);var r=n(20);n(31),n(18),n(16),n(4),n(23),n(17),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,n(45),n(31),n(18),n(42),n(16),n(4),n(23),n(57),n(17);var o=r(n(36)),i=r(n(37)),u=r(n(55)),l=r(n(56)),c=r(n(51)),s=r(n(0)),d=r(n(26)),f=r(n(1)),p=r(n(830)),m=n(186),h=r(n(787)),g=n(14),y=n(72);function v(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,n=(0,c.default)(e);if(t){var r=(0,c.default)(this).constructor;a=Reflect.construct(n,arguments,r)}else a=n.apply(this,arguments);return(0,l.default)(this,a)}}var _=function(e){(0,u.default)(n,e);var a=v(n);function n(e){var r;return(0,o.default)(this,n),(r=a.call(this,e)).groupOptionRenderer=function(e){return s.default.createElement(s.default.Fragment,null,s.default.createElement(m.Tag,{type:y.CLUSTER_GROUP_TAG_TYPE[e.value]},t("ENV_".concat(e.label.toUpperCase()))),"  ",e.label)},r.providerOptionRenderer=function(e){return s.default.createElement(s.default.Fragment,null,s.default.createElement(m.Icon,{name:e.icon,type:"light",size:20}),e.label)},r.handleOk=function(e){(0,r.props.onOk)(e)},r.handleRegionSelect=function(e){r.setState({region:e})},r.state={region:(0,d.default)(e.detail,'metadata.labels["topology.kubernetes.io/region"]',""),formData:(0,p.default)((0,g.toJS)(e.detail._originData))},r}return(0,i.default)(n,[{key:"render",value:function(){var e=this.props,a=e.visible,n=e.isSubmitting,r=e.onCancel,o=this.state.formData;return s.default.createElement(h.default.Form,{data:o,width:691,title:t("EDIT_INFORMATION"),description:t("EDIT_CLUSTER_INFO_DESC"),icon:"cluster",onOk:this.handleOk,okText:t("OK"),onCancel:r,visible:a,isSubmitting:n},s.default.createElement(m.Form.Item,{label:t("CLUSTER_NAME"),desc:t("NAME_DESC")},s.default.createElement(m.Input,{name:"metadata.name",disabled:!0})),s.default.createElement(m.Form.Item,{label:t("DESCRIPTION"),desc:t("DESCRIPTION_DESC")},s.default.createElement(m.TextArea,{name:"metadata.annotations['kubesphere.io/description']",maxLength:256})))}},{key:"regions",get:function(){return(0,d.default)(globals.config,"regionZones",[]).map((function(e){return{label:e.alias,value:e.name}}))}},{key:"zones",get:function(){var e=this,t=(0,d.default)(globals.config,"regionZones",[]).find((function(t){return t.name===e.state.region}));return t&&t.zones?t.zones.map((function(e){return{label:e.alias,value:e.name}})):[]}}]),n}(s.default.Component);a.default=_,_.propTypes={detail:f.default.object,visible:f.default.bool,onOk:f.default.func,onCancel:f.default.func,isSubmitting:f.default.bool},_.defaultProps={visible:!1,onOk:function(){},onCancel:function(){},isSubmitting:!1}},5212:function(e,a,n){"use strict";n(15);var r=n(157),o=n(20);Object.defineProperty(a,"__esModule",{value:!0}),a.default=function(e){var a=e.className,n=void 0===a?"":a,r=e.content,o=(0,u.useState)(!0),d=(0,i.default)(o,2),f=d[0],p=d[1];return u.default.createElement("div",{className:(0,c.default)(s.default.manage,n)},u.default.createElement(l.Dropdown,{theme:"dark",content:r,trigger:"click",placement:"bottomRight",onClick:function(){return p(!f)}},u.default.createElement("div",{className:s.default.button},u.default.createElement("span",null,t("MANAGE")),u.default.createElement(l.Icon,{name:f?"caret-down":"caret-up",type:"dark"}))))};var i=o(n(96)),u=r(n(0)),l=n(186),c=o(n(3)),s=o(n(5213))},5213:function(e,t,a){e.exports={manage:"_1O2d_xKFhPOBZ771CH2E1o",button:"_1EZifAFmYeUjyOiG4fxwXC"}},5214:function(e,t,a){e.exports={header:"_2UlMIR4rJkP07aE6AxE6c5",content:"hqTgeqYbmFi5a2C59o2Ar",tip:"_8dnO4vN9_srhaHqur5a7t",unbind:"_2a5V2c8M9tko1wORYs7TQq",manage:"_2xE0Qi4HWwzjYqQP5p3gPz",singleButton:"_1ojbkCTiEJ_i7AalX38tbo",tags:"_1cXZDj8Bn4RXnM8Ph0DYO0"}},5215:function(e,a,n){"use strict";var r=n(20),o=n(157);n(12),n(5),n(11),n(6),n(16),n(9),n(13),n(10),n(4),n(23),n(24),n(17),n(62),n(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,n(12),n(45),n(5),n(11),n(6),n(28),n(42),n(16),n(34),n(15),n(9),n(13),n(10),n(4),n(23),n(57),n(24),n(17),n(62),n(7);var i,u=r(n(315)),l=r(n(30)),c=r(n(36)),s=r(n(37)),d=r(n(55)),f=r(n(56)),p=r(n(51)),m=r(n(0)),h=n(14),g=r(n(788)),y=r(n(795)),v=r(n(792)),_=o(n(793)),E=r(n(796)),b=n(52),S=r(n(322)),O=r(n(441));function k(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,n)}return a}function T(e){for(var t=1;t1}},{key:"nodegroup",get:function(){return(0,_.default)(this.store.detail,'labels.["apps.edgewize.io/nodegroup"]',"")}},{key:"nodegroupEdgeNodeParams",get:function(){var e=this.props.match.params,t=e.cluster,a=e.node;return{cluster:t,nodegroup:this.nodegroup,name:a}}},{key:"breadcrumb",get:function(){var e={label:t("EDGE_NODE_PL"),url:this.listUrl};return this.canViewEvents?e:this.nodegroup?{label:t("NODE_ADMINISTRATION_PL"),url:"/node-groups/clusters/".concat(this.cluster,"/").concat(this.nodegroup,"/nodes")}:e}}]),n}(g.default.Component))||l)||l)||l;a.default=w},5229:function(e,t,a){"use strict";a(15);var n=a(20);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(317),o=n(a(821)),i=n(a(5230)),u=n(a(5231)),l=n(a(5232)),c=n(a(5233)),s="/v2/edgewize/clusters/:cluster/nodes/:node",d=[{path:"".concat(s,"/status"),title:"RUNNING_STATUS",component:c.default,exact:!0},{path:"".concat(s,"/pods"),title:"POD_PL",component:i.default,exact:!0},{path:"".concat(s,"/metadata"),title:"METADATA",component:o.default,exact:!0},{path:"".concat(s,"/monitors"),title:"MONITORING",component:l.default,exact:!0,clusterModule:"whizard-monitoring"},{path:"".concat(s,"/events"),title:"EVENT_PL",component:u.default,exact:!0},(0,r.getIndexRoute)({path:s,to:"".concat(s,"/status"),exact:!0})];t.default=d},5230:function(e,t,a){"use strict";a(15);var n=a(20);a(5),a(4),a(23),a(24),a(17),a(62),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(45),a(5),a(42),a(4),a(23),a(57),a(24),a(17),a(62);var r,o=n(a(36)),i=n(a(37)),u=n(a(55)),l=n(a(56)),c=n(a(51)),s=n(a(0)),d=a(239),f=n(a(849));function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,n=(0,c.default)(e);if(t){var r=(0,c.default)(this).constructor;a=Reflect.construct(n,arguments,r)}else a=n.apply(this,arguments);return(0,l.default)(this,a)}}var m=(0,d.inject)("detailStore")(r=(0,d.observer)(r=function(e){(0,u.default)(a,e);var t=p(a);function a(){var e;(0,o.default)(this,a);for(var n=arguments.length,r=new Array(n),i=0;i0?"builtin":""}},{key:"listUrl",get:function(){var e=localStorage.getItem("alert-policy-detail-referrer");if(e)return e;var t=this.props.match.params,a=t.cluster,n=t.namespace,r=t.workspace,o=this.type;return"/v2/edgewize".concat(r?"/".concat(r):"","/clusters/").concat(a).concat(n?"/projects/".concat(n):"","/rule-group").concat(o?"?type=".concat(o):"")}},{key:"routing",get:function(){return this.props.rootStore.routing}},{key:"resetPolicy",get:function(){var e=this,a=this.props.match,n=(0,m.toJS)(this.store.detail);return{key:"reset",icon:"restart",text:t("RESET"),action:"edit",onClick:function(){return e.trigger("alerting.rule.reset",{type:e.type,cluster:a.params.cluster,detail:n,success:e.fetchData})}}}}]),n}(p.default.Component))||o)||o)||o;a.default=R},5240:function(e,t,a){"use strict";a(15);var n=a(20);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(317),o=n(a(5241)),i=n(a(5244));t.default=function(e){return[{path:"".concat(e,"/rules"),title:"ALERTING_RULE",component:o.default,exact:!0},{path:"".concat(e,"/messages"),title:"ALERTING_MESSAGE_PL",component:i.default,exact:!0},(0,r.getIndexRoute)({path:e,to:"".concat(e,"/rules"),exact:!0})]}},5241:function(e,t,a){"use strict";var n=a(20);a(12),a(5),a(11),a(6),a(86),a(16),a(9),a(13),a(10),a(4),a(23),a(24),a(17),a(62),a(7),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a(12),a(45),a(5),a(11),a(6),a(86),a(28),a(42),a(16),a(34),a(15),a(9),a(13),a(10),a(4),a(23),a(57),a(24),a(17),a(62),a(7);var r,o=n(a(30)),i=n(a(36)),u=n(a(37)),l=n(a(55)),c=n(a(56)),s=n(a(51)),d=n(a(0)),f=a(14),p=a(239),m=n(a(26)),h=n(a(5242));function g(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,n)}return a}function y(e){for(var t=1;t0?"builtin":""}},{key:"rules",get:function(){return(0,f.toJS)((0,m.default)(this.store,"detail._originDataWithStatus.spec.rules",[]))}}]),a}(d.default.Component))||r)||r;t.default=_},5242:function(e,a,n){"use strict";var r=n(20);n(12),n(11),n(6),n(18),n(48),n(9),n(13),n(10),n(4),n(23),n(24),n(17),n(188),n(7),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,n(12),n(45),n(11),n(6),n(18),n(28),n(48),n(42),n(34),n(15),n(9),n(13),n(10),n(4),n(23),n(57),n(24),n(17),n(188),n(7);var o,i=r(n(30)),u=r(n(315)),l=r(n(36)),c=r(n(37)),s=r(n(55)),d=r(n(56)),f=r(n(51)),p=r(n(0)),m=n(14),h=r(n(3)),g=n(239),y=r(n(135)),v=r(n(26)),_=r(n(250)),E=n(186),b=r(n(789)),S=n(72),O=r(n(5243)),k=r(n(1999));function T(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,n)}return a}function C(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.cluster,a=e.namespace,n=this.props.match.params,r=n.cluster,o=n.namespace,i=n.workspace;return t=t||r,a=a||o,"".concat(i?"/".concat(i):"","/clusters/").concat(t).concat(a?"/projects/".concat(a):"")}},{key:"render",value:function(){var e=this.store.list,a=e.data,n=e.isLoading,r=e.filters;return p.default.createElement(b.default,{title:t("ALERTING_MESSAGE_PL"),loading:n},(0,_.default)(a)?p.default.createElement("div",null,t("NO_DATA_DESC")):p.default.createElement(p.default.Fragment,null,p.default.createElement(O.default,{className:R.default.table,filters:r,data:a,name:"Alerting Message",rowKey:"value",columns:this.getColumns(),selectedRowKeys:[],selectActions:[],hideHeader:!0,hideFooter:!0}),this.renderFooter()))}},{key:"type",get:function(){return this.props.match.url.indexOf("alert-rules/builtin")>0?"builtin":""}},{key:"pagination",get:function(){var e=this.state;return{page:e.page,limit:e.limit,total:this.store.list.total}}}]),n}(p.default.Component))||o;a.default=I},5245:function(e,t,a){e.exports={table:"AG_qM41gf6QH6rWrxxX1I",footer:"bJwbNqt-nsyyNbpbx6tO0",pageSizeBox:"DKz1C7wmIoV0NdR3gvIhI",pagesize:"_2HQRF4QyzRCk6oOPVhiZuP",text:"IEe-JLXtS86SfykLWhqpW",gap:"_iYAtpzgrxIVf5HBe6P_4",pageSizeMenu:"_29fm1z6RupXOKBkGtWkpDg",pageSizeMenuitem:"c1A1KCKi7BaRCLW5SXUUS"}},5246:function(e,t,a){e.exports={icon:"_3przOWA8oS6hX0Lex0ZtXg"}},5247:function(e,a,n){"use strict";n(15);var r=n(20);n(12),n(109),n(5),n(84),n(16),n(4),n(23),n(24),n(17),n(85),n(62),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,n(12),n(109),n(45),n(5),n(84),n(28),n(42),n(16),n(4),n(23),n(57),n(24),n(17),n(85),n(62);var o,i=r(n(315)),u=r(n(36)),l=r(n(37)),c=r(n(55)),s=r(n(56)),d=r(n(51)),f=r(n(0)),p=n(14),m=n(239),h=r(n(26)),g=r(n(63)),y=n(186),v=n(52),_=n(791),E=r(n(441)),b=r(n(823)),S=r(n(5248));function O(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,n=(0,d.default)(e);if(t){var r=(0,d.default)(this).constructor;a=Reflect.construct(n,arguments,r)}else a=n.apply(this,arguments);return(0,s.default)(this,a)}}var k=(0,m.inject)("rootStore")(o=(0,m.observer)(o=(0,_.trigger)(o=function(e){(0,c.default)(n,e);var a=O(n);function n(){var e;(0,u.default)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i0&&void 0!==arguments[0]?arguments[0]:{},r=t.state,a=r.cluster,n=r.pods;(0,g.default)(n)||e.cluster!==a?t.resourceStore.fetchSortedMetrics(w(w({},t.resourceParams),{},{cluster:e.cluster,metrics:[A.cpu_usage],limit:6})).then((function(r){var a=((0,E.default)(r[A.cpu_usage],"data.result")||[]).map((function(e){return(0,E.default)(e,"metric.pod")}));t.setState({pods:a,cluster:e.cluster},(function(){t.fetchMetrics(w({resources:a},e))}))})):t.fetchMetrics(w({resources:n},e))},t.fetchMetrics=function(e){t.monitorStore.fetchMetrics(w(w({resources:[],metrics:Object.values((0,S.hideGPUByLicense)(A,t.state.cluster))},t.resourceParams),e))},t.getMonitoringCfgs=function(){return[{type:"cpu",title:"CPU_USAGE",unitType:"cpu",metricType:A.cpu_usage},{type:"memory",title:"MEMORY_USAGE",unitType:"memory",metricType:A.memory_usage},{type:"gpu",title:"GPU_USAGE",unitType:"gpu",metricType:A.gpu_usage},{type:"gpu_memory",title:"GPU_MEMORY_USAGE",unitType:"memory",metricType:A.gpu_memory_usage},{type:"bandwidth",title:"OUTBOUND_TRAFFIC",unitType:"bandwidth",metricType:A.net_transmitted},{type:"bandwidth",title:"INBOUND_TRAFFIC",unitType:"bandwidth",metricType:A.net_received}]},t.showMultipleModal=function(e){return(0,S.cacheFunc)("_showMultipleModal_".concat(e.title),(function(){t.setState({showMultipleModal:!0,selectItem:w(w({},e),{},{legend:["USAGE"]})})}),(0,s.default)(t))},t.hideMultipleModal=function(){t.setState({showMultipleModal:!1,selectItem:{}})},t.state={showMultipleModal:!1,selectItem:{},pods:[],cluster:""},t.monitorStore=new O.default,t.resourceStore=new O.default,t}return(0,i.default)(a,[{key:"renderCard",value:function(){var e=this,r=this.store.detail,a=r.createTime,n=r.clusters,o=this.monitorStore,u=o.isLoading,l=o.isRefreshing,i=(0,S.hideGPUByLicense)(this.getMonitoringCfgs(),this.state.cluster),s=this.isMore;return m.default.createElement(C.Controller,{createTime:a,onFetch:this.fetchData,loading:u,refreshing:l,clusters:n,isEmpty:(0,g.default)(this.metrics),isFederated:!0},s&&m.default.createElement(k.Alert,{message:t.html("MONITORING_ALERT_DESC"),type:"info"}),i.map((function(r){r.data=(0,E.default)(e.metrics,"".concat(r.metricType,".data.result"))||[{values:(0,_.getZeroValues)()}],r.legend=r.data.map((function(e,t){return(0,E.default)(e,"metric.pod","pod".concat(t))})),r.workload_kind=e.monitoringModule;var a=(0,_.getAreaChartOps)(r);return m.default.createElement("div",{key:r.title,className:(0,y.default)(T.default.item)},s&&m.default.createElement("div",{className:T.default.more,onClick:e.showMultipleModal(r)},t("VIEW_ALL_REPLICAS")),m.default.createElement(b.MultiArea,(0,c.default)({width:"100%"},a)))})))}},{key:"renderModal",value:function(){var e=this.state,t=e.showMultipleModal,r=e.selectItem,a=this.store.detail,n=a.name,o=a.namespace;return m.default.createElement("div",null,m.default.createElement(R.default,{visible:t,module:this.monitoringModule,name:n,namespace:o,config:r,onCancel:this.hideMultipleModal}))}},{key:"render",value:function(){return m.default.createElement("div",null,this.renderCard(),this.renderModal())}},{key:"store",get:function(){return this.props.detailStore}},{key:"monitoringModule",get:function(){return j[this.store.module]}},{key:"metrics",get:function(){return this.monitorStore.data}},{key:"resourceParams",get:function(){var e=this.store.detail,t=e.namespace,r=e.name;return{namespace:t,workload_kind:this.monitoringModule,workload_name:r}}},{key:"isMore",get:function(){return((0,E.default)((0,h.toJS)(this.resourceStore.sort),"data[".concat(A.cpu_usage,"].data.result"))||[]).length>5}}]),a}(m.default.Component))||o)||o;r.default=N},4922:function(e,t,r){"use strict";r(15);var a=r(20);r(5),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r(5);var n=a(r(61)),o=r(317),c=a(r(4923)),u=a(r(4924)),l=a(r(4939)),i=a(r(4940)),s=a(r(4942)),f=a(r(4943)),d=a(r(4944)),p=a(r(4945)),m=a(r(4947)),h=a(r(4952)),v=a(r(4953)),y=a(r(4954)),g=a(r(4960)),E=a(r(4963)),S=a(r(4964)),_="/:workspace/federatedprojects/:namespace",O=[].concat((0,n.default)((0,S.default)(_)),[{path:_,component:c.default,routes:[{path:"".concat(_,"/overview"),component:u.default,exact:!0},{path:"".concat(_,"/applications"),component:l.default,exact:!0},{path:"".concat(_,"/deployments"),component:i.default,exact:!0},{path:"".concat(_,"/statefulsets"),component:s.default,exact:!0},{path:"".concat(_,"/services"),component:f.default,exact:!0},{path:"".concat(_,"/ingresses"),component:d.default,exact:!0},{path:"".concat(_,"/volumes"),component:p.default,exact:!0},{path:"".concat(_,"/base-info"),component:m.default,exact:!0},{path:"".concat(_,"/configmaps"),component:h.default,exact:!0},{path:"".concat(_,"/secrets"),component:v.default,exact:!0},{path:"".concat(_,"/quota"),component:y.default,exact:!0},{path:"".concat(_,"/gateways"),component:E.default,exact:!0},{path:"".concat(_,"/log-collections"),component:g.default,exact:!0},(0,o.getIndexRoute)({path:"".concat(_,"/workloads"),to:"".concat(_,"/deployments"),exact:!0}),(0,o.getIndexRoute)({path:_,to:"".concat(_,"/overview"),exact:!0}),(0,o.getIndexRoute)({path:"*",to:"/404",exact:!0})]}]);t.default=O},4923:function(e,t,r){"use strict";r(15);var a=r(20),n=r(157);r(4),r(23),r(24),r(17),r(62),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r(45),r(28),r(42),r(4),r(23),r(57),r(24),r(17),r(62);var o,c=a(r(36)),u=a(r(37)),l=a(r(55)),i=a(r(56)),s=a(r(51)),f=r(239),d=n(r(0)),p=a(r(438)),m=r(317);function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,a=(0,s.default)(e);if(t){var n=(0,s.default)(this).constructor;r=Reflect.construct(a,arguments,n)}else r=a.apply(this,arguments);return(0,i.default)(this,r)}}var v=(0,f.inject)("rootStore","projectStore")(o=(0,f.observer)(o=function(e){(0,l.default)(r,e);var t=h(r);function r(e){var a;return(0,c.default)(this,r),(a=t.call(this,e)).state={fetchFin:!1},a.handleChange=function(e){return a.routing.push(e)},a.store=new p.default,a}return(0,u.default)(r,[{key:"render",value:function(){var e=this.props.route;return d.default.createElement(d.default.Fragment,null,(0,m.renderRoutes)(e.routes))}},{key:"project",get:function(){return this.props.match.params.namespace}},{key:"routing",get:function(){return this.props.rootStore.routing}}]),r}(d.Component))||o)||o;t.default=v},4924:function(e,r,a){"use strict";var n=a(20);a(12),a(5),a(11),a(6),a(84),a(18),a(16),a(9),a(13),a(10),a(4),a(23),a(24),a(17),a(85),a(62),a(7),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,a(12),a(45),a(5),a(11),a(6),a(84),a(18),a(28),a(42),a(16),a(34),a(15),a(9),a(13),a(10),a(4),a(23),a(57),a(24),a(17),a(85),a(62),a(7);var o,c=n(a(30)),u=n(a(315)),l=n(a(36)),i=n(a(37)),s=n(a(55)),f=n(a(56)),d=n(a(51)),p=a(186),m=n(a(26)),h=a(14),v=a(239),y=n(a(0)),g=a(52),E=n(a(4925)),S=n(a(4927)),_=n(a(4929)),O=n(a(4937));function k(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,a)}return r}function b(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};n.fetchMetrics(),n.overviewStore.fetchResourceStatus(w(w(w({},e),n.props.match.params),{},{cluster:n.props.cluster}))},n.fetchMetrics=function(e){var t=n.state,r=t.resourceType,a=t.range;"application"===r?n.appResourceMonitorStore.fetchMetrics(w(w(w({},n.props.match.params),{},{cluster:n.props.cluster,metrics:A,step:"".concat(Math.floor(a/10),"s"),times:10,fillZero:!0},e),{},{autoRefresh:!1})):n.physicalResourceMonitorStore.fetchMetrics(w(w(w({},n.props.match.params),{},{cluster:n.props.cluster,metrics:(0,O.hideGPUByLicense)(j,n.props.cluster),step:"".concat(Math.floor(a/40),"s"),times:40,fillZero:!0},e),{},{autoRefresh:!1}))},n.getResourceData=function(){var e=(0,v.toJS)(n.overviewStore.resource),t=e.quota,r=void 0===t?{}:t,a=e.status,o=void 0===a?{}:a,c=r.used||{};return[{key:"deployments",icon:k.ICON_TYPES.deployments,name:"DEPLOYMENT",routeName:"deployments",num:c["count/deployments.apps"],warnNum:o.deployments,metric:"namespace_deployment_count"},{key:"statefulsets",icon:k.ICON_TYPES.statefulsets,name:"STATEFULSET",routeName:"statefulsets",num:c["count/statefulsets.apps"],warnNum:o.statefulsets,metric:"namespace_statefulset_count"},{key:"volumes",icon:k.ICON_TYPES.volumes,name:"PERSISTENT_VOLUME_CLAIM",routeName:"volumes",num:c.persistentvolumeclaims||c["count/persistentvolumeclaims"],warnNum:o["persistent-volume-claims"],metric:"namespace_pvc_count"},{key:"services",icon:k.ICON_TYPES.services,name:"SERVICE",routeName:"services",num:c["count/services"],metric:"namespace_service_count"},{key:"ingresses",icon:k.ICON_TYPES.ingresses,name:"ROUTE",routeName:"ingresses",num:c["count/ingresses.extensions"],metric:"namespace_ingresses_extensions_count"}]},n.handleResouceTypeChange=function(e){n.setState({resourceType:e},(function(){n.fetchMetrics()}))},n.handleRangeChange=function(e){n.setState({range:e},(function(){n.fetchMetrics()}))},n.clusterRenderer=function(e){return t("CLUSTER_VALUE",{value:e.label})},n.state={resourceType:"application",range:43200},n.overviewStore=new _.default,n.appResourceMonitorStore=new S.default,n.physicalResourceMonitorStore=new S.default,n.fetchData(),n}return(0,i.default)(a,[{key:"componentDidUpdate",value:function(e){(0,E.default)(e.match.params,this.props.match.params)&&this.props.cluster===e.cluster||this.fetchData()}},{key:"componentDidMount",value:function(){(0,b.startAutoRefresh)(this,{method:"fetchMetrics",interval:1e4,leading:!1})}},{key:"componentWillUnmount",value:function(){(0,b.stopAutoRefresh)(this)}},{key:"renderApplicationResource",value:function(){var e=this,t=(0,v.toJS)(this.overviewStore.resource).isLoading,r=this.appResourceMonitorStore,a=r.data,n=r.isLoading,o=r.isRefreshing,u=this.getResourceData();return g.default.createElement(p.Loading,{spinning:t},g.default.createElement("div",{className:R.default.resources},u.filter((function(e){return!e.disabled})).map((function(t){return g.default.createElement(C.default,(0,c.default)({},e.props.match.params,t,{metrics:(0,h.default)(a,"".concat(t.metric,".data.result")),isMetricsLoading:n||o}))}))))}},{key:"renderPhysicalResource",value:function(){var e=this,r=this.physicalResourceMonitorStore,a=r.data,n=r.isLoading,o=r.isRefreshing,c=this.timeOptions.find((function(t){return t.value===e.state.range}))||{};return g.default.createElement("div",null,g.default.createElement(T.default,{type:"cpu",title:t("CPU_USAGE_TIME",{time:c.label}),metrics:(0,h.default)(a,"namespace_cpu_usage.data.result"),isLoading:n||o,showDay:c.value>=172800}),g.default.createElement(T.default,{type:"memory",title:t("MEMORY_USAGE_TIME",{time:c.label}),metrics:(0,h.default)(a,"namespace_memory_usage_wo_cache.data.result"),isLoading:n||o,showDay:c.value>=172800}))}},{key:"renderHeader",value:function(){var e=this.props,r=e.cluster,a=e.clusters,n=e.onClusterChange;return g.default.createElement("div",{className:R.default.header},g.default.createElement(p.RadioGroup,{mode:"button",value:this.state.resourceType,onChange:this.handleResouceTypeChange,size:"small"},g.default.createElement(p.RadioButton,{value:"application"},t("APPLICATION_RESOURCE_PL")),g.default.createElement(p.RadioButton,{value:"physical"},t("PHYSICAL_RESOURCE_PL"))),g.default.createElement(p.Select,{className:R.default.timeSelect,defaultValue:this.state.range,options:this.timeOptions,onChange:this.handleRangeChange}),g.default.createElement(p.Select,{className:R.default.cluster,value:r,options:a,onChange:n,valueRenderer:this.clusterRenderer,showTip:!0}))}},{key:"render",value:function(){var e=this.state.resourceType;return g.default.createElement(m.default,{className:R.default.wrapper,title:t("RESOURCE_STATUS")},this.renderHeader(),"application"===e?this.renderApplicationResource():this.renderPhysicalResource())}},{key:"routing",get:function(){return this.props.rootStore.routing}},{key:"namespace",get:function(){return(0,h.default)(this.props.match,"params.namespace")}},{key:"timeOptions",get:function(){return[{label:t("LAST_TIME_H",{num:1}),value:3600},{label:t("LAST_TIME_H",{num:2}),value:7200},{label:t("LAST_TIME_H",{num:5}),value:18e3},{label:t("LAST_TIME_H",{num:12}),value:43200},{label:t("LAST_TIME_D",{num:1}),value:86400},{label:t("LAST_TIME_D",{num:2}),value:172800},{label:t("LAST_TIME_D",{num:3}),value:259200},{label:t("LAST_TIME_D",{num:7}),value:604800}]}}]),a}(g.default.Component))||o)||o;r.default=N},4930:function(e,r,a){"use strict";a(15);var n=a(20);a(5),a(16),a(4),a(23),a(17),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,a(45),a(5),a(28),a(42),a(16),a(4),a(23),a(57),a(17);var o,c,u,l=n(a(315)),i=n(a(30)),s=n(a(36)),f=n(a(37)),d=n(a(55)),p=n(a(56)),m=n(a(51)),h=n(a(0)),v=a(239),y=n(a(1)),g=n(a(3)),E=n(a(194)),S=a(186),_=a(794),O=n(a(4931)),k=n(a(4932));function b(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,a=(0,m.default)(e);if(t){var n=(0,m.default)(this).constructor;r=Reflect.construct(a,arguments,n)}else r=a.apply(this,arguments);return(0,p.default)(this,r)}}var C=(0,v.inject)("rootStore")(o=(0,v.observer)((u=c=function(e){(0,d.default)(a,e);var r=b(a);function a(){var e;(0,s.default)(this,a);for(var t=arguments.length,n=new Array(t),o=0;o99?h.default.createElement("div",{className:k.default.skip},"..."):r;return r>0?h.default.createElement("div",{className:k.default.warn},h.default.createElement(S.Tooltip,{className:k.default.tips,content:t("RESOURCE_WARNING_TIPS",{warnNum:r,tipName:t("".concat(a,"_PL"))})},h.default.createElement("div",{onClick:this.handleWarnClick},n))):null}},{key:"render",value:function(){var e=this.props,r=e.className,a=e.icon,n=e.iconSize,o=e.name,c=e.routeName,u=e.num,s=e.metrics,f=e.onClick,d=(0,_.getAreaChartOps)({title:"",unit:"",legend:["COUNT"],data:s});return h.default.createElement("div",{"data-name":o,className:(0,g.default)(k.default.card,r)},h.default.createElement("div",{className:k.default.icon},h.default.createElement(S.Icon,{name:a,size:n}),this.renderWarn()),h.default.createElement("div",{className:(0,g.default)(k.default.info,(0,i.default)({},k.default.cursor,c||f)),onClick:this.handleClick},h.default.createElement("strong",null,u),h.default.createElement("span",null,"1"===u?t(o):t("".concat(o,"_PL")))),h.default.createElement(O.default,(0,l.default)({width:330,height:44,bgColor:"transparent"},d)))}},{key:"routing",get:function(){return this.props.rootStore.routing}},{key:"prefix",get:function(){var e=this.props,t=e.namespace,r=e.workspace;return"/".concat(r,"/federatedprojects/").concat(t)}}]),a}(h.default.Component),c.propTypes={className:y.default.string,icon:y.default.string,iconSize:y.default.number,name:y.default.string,namespace:y.default.string,routeName:y.default.string,num:y.default.oneOfType([y.default.number,y.default.string]),warnNum:y.default.number,onClick:y.default.func},c.defaultProps={icon:"appcenter",iconSize:40,name:"deployment",namespace:"default",routeName:"",num:0,warnNum:0},o=u))||o)||o;r.default=C},4931:function(e,t,r){"use strict";r(15);var a=r(20);r(827),r(11),r(18),r(10),r(4),r(23),r(17),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r(45),r(827),r(11),r(18),r(42),r(10),r(4),r(23),r(57),r(17);var n=a(r(36)),o=a(r(37)),c=a(r(55)),u=a(r(56)),l=a(r(51)),i=a(r(0)),s=a(r(1)),f=r(72),d=a(r(900)),p=a(r(869)),m=a(r(870)),h=a(r(947)),v=a(r(929)),y=a(r(871)),g=a(r(862));function E(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,a=(0,l.default)(e);if(t){var n=(0,l.default)(this).constructor;r=Reflect.construct(a,arguments,n)}else r=a.apply(this,arguments);return(0,u.default)(this,r)}}var S=function(e){(0,c.default)(r,e);var t=E(r);function r(){return(0,n.default)(this,r),t.apply(this,arguments)}return(0,o.default)(r,[{key:"getVeticalPoints",value:function(){var e=this.props.width,t=(e-10)/10;return Array(10).fill("").map((function(e,r){return 5+t*r}))}},{key:"renderArea",value:function(){var e=this.props,t=e.unit,r=e.areaColors,a={stroke:"#55bc8a",strokeWidth:1,fill:"#fff",fillOpacity:1};return this.series.map((function(e,n){var o=f.COLORS_MAP[r[n]];return i.default.createElement(d.default,{key:e,dataKey:e,stroke:o,fillOpacity:"0.1",fill:o,unit:t,dot:a})}))}},{key:"render",value:function(){var e=this.props,t=e.width,r=e.height,a=e.xKey,n=e.data;return i.default.createElement(y.default,{width:t,height:r,debounce:1},i.default.createElement(h.default,{data:n},i.default.createElement(m.default,{dataKey:a,hide:!0}),i.default.createElement(p.default,{wrapperStyle:{zIndex:1e3},content:i.default.createElement(g.default,null)}),i.default.createElement(v.default,{strokeDasharray:"3 6",horizontal:!1,verticalPoints:this.getVeticalPoints()}),this.renderArea()))}},{key:"series",get:function(){var e=this.props,t=e.xKey,r=e.data;return Object.keys(r[0]||{}).filter((function(e){return e!==t}))}}]),r}(i.default.Component);t.default=S,S.propTypes={width:s.default.oneOfType([s.default.string,s.default.number]),height:s.default.oneOfType([s.default.string,s.default.number]),xKey:s.default.string,unit:s.default.string,data:s.default.array,bgColor:s.default.string,areaColors:s.default.array},S.defaultProps={width:180,height:56,xKey:"time",unit:"",bgColor:f.COLORS_MAP.lightest,areaColors:["green","blue","yellow","red"],data:[]}},4932:function(e,t,r){e.exports={card:"_1aK9M2ABK--zrWKxtSjitf",icon:"_3YStaQCgjfHrr2KxC-qWMb",warn:"_3XD-urPTP4b5kQFF25P1J3",tips:"_2wOcbgucGsMTTwMP340_w3",skip:"_2aj89OYDD2fNhMuJdOsLks",info:"_3NX2xvd1JmwoMSQCsNAUZl",cursor:"_2gjwCxV06MFwZ28jZgAfB0"}},4933:function(e,t,r){e.exports={wrapper:"lhAYr_BvqflK6AH06NHDs",header:"fVrL2jWvbuvVpeFLdHh-5",timeSelect:"YQNUYGZd1XHRdL2_iF1TK",cluster:"_12WK-EhzeFn2BXYZ1E4kwL"}},4934:function(e,t,r){"use strict";r(15);var a=r(20);r(27),r(4),r(23),r(17),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r(45),r(42),r(27),r(4),r(23),r(57),r(17);var n=a(r(315)),o=a(r(36)),c=a(r(37)),u=a(r(55)),l=a(r(56)),i=a(r(51)),s=a(r(0)),f=r(52),d=r(794),p=a(r(4935)),m=a(r(4936));function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,a=(0,i.default)(e);if(t){var n=(0,i.default)(this).constructor;r=Reflect.construct(a,arguments,n)}else r=a.apply(this,arguments);return(0,l.default)(this,r)}}var v=function(e){(0,u.default)(r,e);var t=h(r);function r(){return(0,o.default)(this,r),t.apply(this,arguments)}return(0,c.default)(r,[{key:"render",value:function(){var e=this.props,t=e.type,r=e.title,a=e.metrics,o=e.showDay,c=(0,d.getAreaChartOps)({title:r,unitType:t,legend:["COUNT"],data:a,xFormatter:function(e){return(0,f.getLocalTime)(1e3*Number(e)).format(o?"MM-DD HH:mm":"HH:mm")}});return s.default.createElement("div",{className:m.default.wrapper},s.default.createElement("div",{className:m.default.chartWrapper},s.default.createElement("div",{className:m.default.title},r),s.default.createElement("div",{className:m.default.chart},s.default.createElement(p.default,(0,n.default)({width:"100%",height:120,bgColor:"transparent"},c)))))}}]),r}(s.default.Component);t.default=v},4935:function(e,t,r){"use strict";r(15);var a=r(20);r(5),r(827),r(11),r(18),r(10),r(4),r(23),r(17),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r(45),r(5),r(827),r(11),r(18),r(42),r(10),r(4),r(23),r(57),r(17);var n=a(r(36)),o=a(r(37)),c=a(r(55)),u=a(r(56)),l=a(r(51)),i=a(r(0)),s=a(r(1)),f=r(72),d=a(r(900)),p=a(r(869)),m=a(r(912)),h=a(r(870)),v=a(r(947)),y=a(r(929)),g=a(r(871)),E=a(r(862));function S(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,a=(0,l.default)(e);if(t){var n=(0,l.default)(this).constructor;r=Reflect.construct(a,arguments,n)}else r=a.apply(this,arguments);return(0,u.default)(this,r)}}var _=function(e){(0,c.default)(r,e);var t=S(r);function r(){return(0,n.default)(this,r),t.apply(this,arguments)}return(0,o.default)(r,[{key:"render",value:function(){var e=this.props,t=e.x,r=e.y,a=e.payload;return i.default.createElement("g",{transform:"translate(".concat(t,",").concat(r,")")},i.default.createElement("text",{x:0,y:0,dy:12,fill:"#79879c",textAnchor:"middle"},a.value))}}]),r}(i.default.PureComponent),O=function(e){(0,c.default)(r,e);var t=S(r);function r(){return(0,n.default)(this,r),t.apply(this,arguments)}return(0,o.default)(r,[{key:"getHorizontalPoints",value:function(){var e=this.props.height,t=(e-30-6)/4;return Array(4).fill("").map((function(e,r){return 30+t*r}))}},{key:"renderArea",value:function(){var e=this.props,t=e.unit,r=e.areaColors;return this.series.map((function(e,a){var n=f.COLORS_MAP[r[a]];return i.default.createElement(d.default,{key:e,dataKey:e,stroke:n,fillOpacity:"1",fill:"url(#colorPv)",unit:t})}))}},{key:"render",value:function(){var e=this.props,t=e.width,r=e.height,a=e.xKey,n=e.data;return i.default.createElement(g.default,{width:t,height:r,debounce:1},i.default.createElement(v.default,{data:n,margin:{top:32,left:16,right:16,bottom:0}},i.default.createElement("defs",null,i.default.createElement("linearGradient",{id:"colorPv",x1:"0",y1:"0",x2:"0",y2:"1"},i.default.createElement("stop",{offset:"5%",stopColor:"#55bc8a",stopOpacity:.2}),i.default.createElement("stop",{offset:"95%",stopColor:"#55bc8a",stopOpacity:0}))),i.default.createElement(y.default,{vertical:!1,stroke:"#36435c",strokeDasharray:"2 2",horizontalPoints:this.getHorizontalPoints()}),i.default.createElement(h.default,{dataKey:a,axisLine:!1,tickLine:!1,height:30,interval:"preserveStart",tick:i.default.createElement(_,null),minTickGap:20}),i.default.createElement(m.default,{hide:!0,type:"number",domain:[function(e){return 0-Math.abs(e)},function(e){return 1.6*e}]}),i.default.createElement(p.default,{wrapperStyle:{zIndex:1e3},content:i.default.createElement(E.default,null)}),this.renderArea()))}},{key:"series",get:function(){var e=this.props,t=e.xKey,r=e.data;return Object.keys(r[0]||{}).filter((function(e){return e!==t}))}}]),r}(i.default.Component);t.default=O,O.propTypes={width:s.default.oneOfType([s.default.string,s.default.number]),height:s.default.oneOfType([s.default.string,s.default.number]),xKey:s.default.string,unit:s.default.string,data:s.default.array,bgColor:s.default.string,areaColors:s.default.array},O.defaultProps={width:180,height:56,xKey:"time",unit:"",bgColor:f.COLORS_MAP.lightest,areaColors:["green","blue","yellow","red"],data:[]}},4936:function(e,t,r){e.exports={wrapper:"_2R06eiyotdeGIx5OLhFonz",chartWrapper:"_29Puefj9SAxjkMV22wykzX",chart:"_2eHSIdMS6vT3QPzHyRq6Jw",title:"_1iV5AwK5s6o9oLhbG6ft6A"}},4937:function(e,r,a){"use strict";a(15);var n=a(20);a(5),a(18),a(48),a(190),a(4),a(23),a(24),a(17),a(62),a(64),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,a(45),a(5),a(18),a(48),a(42),a(190),a(4),a(23),a(57),a(24),a(17),a(62),a(64);var o,c=n(a(36)),u=n(a(37)),l=n(a(55)),i=n(a(56)),s=n(a(51)),f=a(186),d=n(a(789)),p=n(a(26)),m=n(a(63)),h=a(14),v=a(239),y=n(a(0)),g=n(a(837)),E=a(433),S=n(a(1434)),_=a(52),O=a(794),k=n(a(4938));function b(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,a=(0,s.default)(e);if(t){var n=(0,s.default)(this).constructor;r=Reflect.construct(a,arguments,n)}else r=a.apply(this,arguments);return(0,i.default)(this,r)}}var C={workload_cpu_usage:"cpu",workload_memory_usage_wo_cache:"memory",workload_net_bytes_transmitted:"bandwidth",workload_net_bytes_received:"bandwidth"},R=(0,v.inject)("rootStore")(o=(0,v.observer)(o=function(e){(0,l.default)(a,e);var r=b(a);function a(e){var n;return(0,c.default)(this,a),(n=r.call(this,e)).clusterRenderer=function(e){return y.default.createElement("span",null,t("CLUSTER_VALUE",{value:(0,_.showNameAndAlias)(e.value,"cluster",{},!0)}))},n.store=new S.default({cluster:e.cluster,namespaces:(0,p.default)(e.match,"params.namespace")}),n}return(0,u.default)(a,[{key:"componentDidMount",value:function(){this.store.fetchAll()}},{key:"componentDidUpdate",value:function(e){(0,g.default)(e.match.params,this.props.match.params)&&this.props.cluster===e.cluster||(this.store.cluster=this.props.cluster,this.store.namespaces=(0,p.default)(this.props.match,"params.namespace"),this.store.fetchAll())}},{key:"getWorkloadLink",value:function(e){var t=e.workload_type;if("Pod"!==t){var r=e.workload,a=(void 0===r?"":r).replace(/\w+:/,""),n=this.props.match.params,o=n.workspace,c=n.namespace;return{deployment:"/".concat(o,"/federatedprojects/").concat(c,"/deployments/").concat(a),statefulset:"/".concat(o,"/federatedprojects/").concat(c,"/statefulsets/").concat(a),daemonset:"/".concat(o,"/federatedprojects/").concat(c,"/daemonsets/").concat(a)}[t]}}},{key:"renderHeader",value:function(){var e=this.props,t=e.cluster,r=e.clusters,a=e.onClusterChange;return y.default.createElement("div",{className:k.default.header},y.default.createElement(f.Select,{className:k.default.select,value:t,options:r,onChange:a,valueRenderer:this.clusterRenderer,showTip:!0}),y.default.createElement(f.Select,{className:k.default.select,value:this.store.sort_metric,onChange:this.store.changeSortMetric,options:this.options}))}},{key:"renderEmpty",value:function(){return y.default.createElement("div",{className:k.default.empty},y.default.createElement(f.Icon,{name:"backup",size:32}),y.default.createElement("div",null,t("NO_DATA")))}},{key:"renderContent",value:function(){var e=this,r=(0,h.toJS)(this.store.data);return!this.store.isLoading&&(0,m.default)(r)?this.renderEmpty():y.default.createElement("div",{className:k.default.content},r.slice(0,5).map((function(a){var n,o={deployment:"backup",dtatefulset:"stateful-set",dataaemonset:"deamon-set",pod:"pod",default:"backup"},c=e.getWorkloadLink(a),u=a.workload.replace(/\w+:/,""),l=100*a[e.store.sort_metric]/r[0][e.store.sort_metric],i=(0,O.getSuitableUnit)(a[e.store.sort_metric],C[e.store.sort_metric]),s=(0,O.getValueByUnit)(a[e.store.sort_metric],i)||0,d=(0,_.coreUnitTS)(s,i);return y.default.createElement("div",{className:k.default.app,key:"".concat(a.workload_type,"-").concat(u)},y.default.createElement("div",{className:k.default.appContent},y.default.createElement(f.Icon,{name:o[a.workload_type]||o.Default,type:"dark",size:40}),y.default.createElement("div",{className:k.default.text},y.default.createElement("div",{className:"relative","data-tooltip":u},y.default.createElement("div",null,c?y.default.createElement(E.Link,{to:c},u):u)),y.default.createElement("p",null,t(null===(n=a.workload_type)||void 0===n?void 0:n.toUpperCase()))),y.default.createElement("div",{className:k.default.value},s,y.default.createElement("span",{style:{fontSize:12}}," ",t(d)))),y.default.createElement("div",{className:k.default.background,style:{width:"".concat(l.toFixed(2),"%")}}))})))}},{key:"render",value:function(){return y.default.createElement(d.default,{className:k.default.wrapper,title:t("TOP_5_FOR_RESOURCE_USAGE")},this.renderHeader(),this.renderContent())}},{key:"options",get:function(){return this.store.sort_metric_options.map((function(e){return{value:e,label:t("SORT_BY_".concat(e.toUpperCase()))}}))}}]),a}(y.default.Component))||o)||o;r.default=R},4938:function(e,t,r){e.exports={wrapper:"ALy60QWv9PJIlLpSJ93tc",header:"_14neEM1YWcy8Yl_HhRXBZ9",title:"_3rcJ-P4KglVtAGgB47VOBC",select:"_1trHAxO9VXo4shhZWhZYRD",app:"_65oCruiMj4nUJACfdPg73",value:"_3L2-Jvn7GOtsJBEIGhLbAs",appContent:"W5UocK9-pHzxLPhMojqCP",text:"_3GdnxTROCHfv5IKMzw0yhW",background:"_2lDLZkYMWHYxOFFEZZYilE",empty:"JDSFBvlabhdgjVzNCAOt9"}},4939:function(e,r,a){"use strict";var n=a(20);a(12),a(5),a(11),a(6),a(84),a(73),a(18),a(16),a(9),a(13),a(10),a(4),a(23),a(24),a(17),a(85),a(62),a(7),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,a(12),a(45),a(5),a(11),a(6),a(84),a(73),a(18),a(28),a(42),a(16),a(34),a(15),a(9),a(13),a(10),a(4),a(23),a(57),a(24),a(17),a(85),a(62),a(7);var o,c=n(a(30)),u=n(a(315)),l=n(a(36)),i=n(a(37)),s=n(a(55)),f=n(a(56)),d=n(a(51)),p=n(a(0)),m=n(a(26)),h=a(239),v=a(14),y=n(a(795)),g=n(a(788)),E=a(793),S=n(a(796)),_=n(a(792)),O=n(a(1108)),k=a(52),b=n(a(437)),C=n(a(961));function R(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,a)}return r}function T(e){for(var t=1;t3&&h.default.createElement("div",{className:M.default.folder},h.default.createElement(b.Button,{icon:r?"chevron-down":"chevron-up",onClick:this.toggleFold},r?t("UNFOLD"):t("FOLD"))))}},{key:"allSpec",get:function(){var e=this.store.data,t=(0,E.default)(e,"hard",{}),r=Object.values(R.QUOTAS_MAP).map((function(e){return e.name})),a=Object.keys(t).filter((function(e){return-1===r.indexOf(e)})).map((function(e){return[e,{name:e,type:"userDefined"}]}));return Object.entries(R.QUOTAS_MAP).concat(a).map((function(t){var r,a=(0,u.default)(t,2),n=a[0],o=a[1];return{key:n,name:n,total:(0,E.default)(e,'hard["'.concat(o.name,'"]')),used:(0,E.default)(e,'used["'.concat(o.name,'"]'),0),left:(0,E.default)(e,'left["'.concat(o.name,'"]')),type:null!==(r=null==o?void 0:o.type)&&void 0!==r?r:"system"}})).filter((function(e){var t=e.total,r=e.used,a=e.name;return!(!t&&!Number(r)&&-1===L.indexOf(a))}))}},{key:"allStorageClass",get:function(){return(0,v.toJS)(this.storageClassStore.list.data)}},{key:"items",get:function(){return this.allSpec.filter((function(e){return-1===e.name.indexOf(U[0])&&-1===e.name.indexOf(U[1])}))}},{key:"storageLimit",get:function(){return this.allSpec.filter((function(e){return-1!==e.name.indexOf(U[0])||-1!==e.name.indexOf(U[1])}))}},{key:"storageClassResource",get:function(){var e=(0,v.toJS)(this.store.data),t=e.hard,r=e.used;return U.map((function(e){var a=(0,E.default)(t,[e],e.includes("claims")?"0":"0Gi"),n=(0,E.default)(r,[e],e.includes("claims")?"0":"0Gi"),o=e.includes("claims")?a:(0,C.memoryFormat)(a,"Gi");return{key:e,name:e,total:o>0?e.includes("claims")?o:"".concat(o,"Gi"):void 0,used:e.includes("claims")?n:(0,C.memoryFormat)(n,"Gi")}}))}},{key:"relateStorageClass",get:function(){var e=(0,v.toJS)(this.store.data),t=(0,E.default)(e,"hard",{}),r=(0,E.default)(e,"used",{}),a=Object.entries(t).filter((function(e){var t=(0,u.default)(e,1)[0];return(0,S.default)(t,Y)||(0,S.default)(t,F)})).map((function(e){var t=(0,u.default)(e,2),r=t[0],a=t[1];return(0,i.default)({},r,a)})),n=a.map((function(e){var t=Object.keys(e)[0];return(0,i.default)({},t,(0,E.default)(r,t))})),o={total:(0,c.default)(a),used:(0,c.default)(n)};if(o.total.length>0){var l,s=(0,_.default)((0,c.default)(o.total),(function(e){return Object.keys(e)[0].split(".").slice(1).join(".")}));return l={},(0,i.default)(l,Y,(0,E.default)(s,[Y],[]).map((function(e){var t=Object.keys(e)[0],r=o.used.filter((function(e){return Object.keys(e)[0]===t}))[0];return{name:t,total:Object.values(e)[0],used:Object.values(r)[0]}}))),(0,i.default)(l,F,(0,E.default)(s,[F],[]).map((function(e){var t=Object.keys(e)[0],r=o.used.filter((function(e){return Object.keys(e)[0]===t}))[0];return{name:t,total:Object.values(e)[0],used:Object.values(r)[0]}}))),l}return{}}}]),a}(h.default.Component))||o)||o)||o;r.default=G},4956:function(e,r,a){"use strict";a(15);var n=a(20);a(5),a(84),a(86),a(16),a(27),a(190),a(24),a(85),a(64),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,a(5),a(84),a(86),a(16),a(27),a(190),a(24),a(85),a(64);var o=n(a(0)),c=n(a(158)),u=a(186),l=n(a(1044)),i=a(52),s=a(72),f=n(a(4957)),d=function(e){var r,a=e.name,n=e.total,d=e.used,p=e.type,m=0;"limits.cpu"===a||"requests.cpu"===a?n&&(m=Number((0,i.cpuFormat)(d))/Number((0,i.cpuFormat)(n)),d="".concat((0,i.cpuFormat)(d)," Core"),n="".concat((0,i.cpuFormat)(n)," Core")):"limits.memory"===a||"requests.memory"===a?n&&(m=Number((0,i.memoryFormat)(d))/Number((0,i.memoryFormat)(n)),d="".concat((0,i.memoryFormat)(d,"Gi")," Gi"),n="".concat((0,i.memoryFormat)(n,"Gi")," Gi")):n&&(m=Number(d)/Number(n)),m=Math.min(Math.max(m,0),1);var h=a.indexOf("gpu")>-1?"gpu":a,v="gpu"===h?"".concat(h,".limit"):h,y=a.indexOf("gpu")>-1?s.ICON_TYPES.gpu:null!==(r=s.ICON_TYPES[a])&&void 0!==r?r:"resource";return o.default.createElement("div",{className:f.default.quota},o.default.createElement(u.Icon,{name:y,size:40}),o.default.createElement("div",{className:f.default.item},o.default.createElement("div",null,function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",r=arguments.length>1?arguments[1]:void 0;return"userDefined"!==r||e.includes("gpu")?t(e.replace(/[. ]/g,"_").toUpperCase()):e}(v,p)),o.default.createElement("p",null,t("RESOURCE_TYPE_SCAP"))),o.default.createElement("div",{className:f.default.item},o.default.createElement("div",null,d),o.default.createElement("p",null,t("USED"))),o.default.createElement("div",{className:f.default.item},o.default.createElement("div",null,(0,c.default)(n)?t("NO_LIMIT_TCAP"):n),o.default.createElement("p",null,t("RESOURCE_LIMIT"))),o.default.createElement("div",{className:f.default.item,style:{flex:3}},o.default.createElement("div",null,t("USAGE")),o.default.createElement(l.default,{value:Math.min(m,1),className:f.default.bar,rightText:n?"":t("NO_LIMIT_TCAP"),text:"".concat(t("USED")," ").concat(Number((100*m).toFixed(2)),"%")})))};r.default=d},4957:function(e,t,r){e.exports={quota:"_3aPySvZFwKu_aUOuXKtt74",item:"_1I77wNxk4MpwyW4BbGhuWc",bar:"_20tiwfV8cet9kU4Rdqy-5W"}},4958:function(e,t,r){e.exports={cluster:"_367EWtp2wSigDOnEmf2wJ1",content:"_3viW1x9EZrOJRuO9ZV0ET3",fold:"_1NbZfknGRDsuW3_iIyJJqu",actions:"oVUaKu42SlFyUhxdx-1fg",folder:"VIGCh0w9Q5Nq0WhR95pi-"}},4959:function(e,t,r){e.exports={title:"_20BGuNk4qt2X7yCCXLVwpk"}},4960:function(e,r,a){"use strict";a(15);var n=a(20);a(84),a(16),a(4),a(23),a(24),a(17),a(85),a(62),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,a(45),a(84),a(42),a(16),a(4),a(23),a(57),a(24),a(17),a(85),a(62);var o,c=n(a(36)),u=n(a(37)),l=n(a(55)),i=n(a(56)),s=n(a(51)),f=n(a(0)),d=a(239),p=n(a(63)),m=n(a(792)),h=n(a(4961));function v(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,a=(0,s.default)(e);if(t){var n=(0,s.default)(this).constructor;r=Reflect.construct(a,arguments,n)}else r=a.apply(this,arguments);return(0,i.default)(this,r)}}var y=(0,d.inject)("rootStore","projectStore")(o=(0,d.observer)(o=function(e){(0,l.default)(a,e);var r=v(a);function a(){return(0,c.default)(this,a),r.apply(this,arguments)}return(0,u.default)(a,[{key:"render",value:function(){var e=this.store.detail.name;return f.default.createElement("div",null,f.default.createElement(m.default,{icon:"log",title:t("LOG_COLLECTION"),description:t("DISK_LOG_COLLECTION_DESC"),tips:this.tips}),!this.disabledLoggingSideCar&&f.default.createElement(h.default,{namespace:e,actions:this.enableActions}))}},{key:"store",get:function(){return this.props.projectStore}},{key:"namespace",get:function(){return this.props.match.params.namespace}},{key:"cluster",get:function(){return this.props.match.params.cluster}},{key:"enableActions",get:function(){return globals.app.getActions({module:"project-settings",project:this.namespace,fedproject:!0,cluster:this.cluster})}},{key:"disabledLoggingSideCar",get:function(){return!(0,p.default)(globals.config.disabledLoggingSidecarNamespace)&&globals.config.disabledLoggingSidecarNamespace.includes(this.namespace)}},{key:"tips",get:function(){return[{title:t("COLLECT_LOGS_ON_VOLUMES_Q"),description:t("COLLECT_LOGS_ON_VOLUMES_A")}]}}]),a}(f.default.Component))||o)||o;r.default=y},4961:function(e,r,a){"use strict";a(15);var n=a(20);a(5),a(84),a(16),a(4),a(23),a(17),a(85),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,a(45),a(5),a(84),a(42),a(16),a(4),a(23),a(57),a(17),a(85);var o,c=n(a(36)),u=n(a(37)),l=n(a(55)),i=n(a(56)),s=n(a(51)),f=n(a(0)),d=n(a(3)),p=n(a(26)),m=n(a(74)),h=a(239),v=a(186),y=n(a(850)),g=n(a(789)),E=n(a(787)),S=n(a(437)),_=n(a(4962));function O(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,a=(0,s.default)(e);if(t){var n=(0,s.default)(this).constructor;r=Reflect.construct(a,arguments,n)}else r=a.apply(this,arguments);return(0,i.default)(this,r)}}var k=(0,h.observer)(o=function(e){(0,l.default)(a,e);var r=O(a);function a(){var e;(0,c.default)(this,a);for(var t=arguments.length,n=new Array(t),o=0;o0&&e.setState({serviceName:t[0].name},(function(){return e.fetchTracing()}))}))}}},{key:"renderOperations",value:function(){var e=this.state.query;return h.default.createElement("div",{className:P.default.operations},h.default.createElement(S.Select,{options:this.services,value:this.state.serviceName,prefixIcon:h.default.createElement(S.Icon,{name:"appcenter"}),onChange:this.handleServiceChange,valueRenderer:this.serviceRenderer}),h.default.createElement(C.default,{className:P.default.timeSelect,dark:!0,onChange:this.handleLookbackChange,showStep:!1,arrowIcon:"chevron-down"}),h.default.createElement(S.Select,{value:e.limit,options:this.limitOptions,onChange:this.handleLimitChange}),h.default.createElement(S.Button,{type:"flat",icon:"refresh",onClick:this.handleRefresh}))}},{key:"renderTracing",value:function(){var e=this.state.cluster,r=this.resourceStore,a=r.tracing,n=r.isTracingLoading,o=this.serviceStore.list,c=o.isLoading,u=o.data,l=this.getServiceMeshEnabled(e);return e&&l?!c&&(0,p.default)(u)?null:h.default.createElement(O.default,{loading:n,data:a.data,operations:this.renderOperations(),onItemClick:this.showDetailModal}):h.default.createElement(_.default,{image:"/assets/traffic-management.svg",title:t("TRACING_UNAVAILABLE"),desc:t("APPLICATION_GOVERNANCE_NOT_ENABLED")})}},{key:"render",value:function(){var e=this.props.projectStore.detail.clusters;return h.default.createElement("div",null,h.default.createElement(b.default,{value:this.state.cluster,options:e,onChange:this.handleClusterChange,extra:this.renderMicroServiceTip}),this.renderTracing(),h.default.createElement(k.default,{detail:this.state.selectItem,visible:this.state.showDetailModal,onCancel:this.hideDetailModal}))}},{key:"limitOptions",get:function(){return[{label:t("LAST_NUM_RECORDS",{num:5}),value:5},{label:t("LAST_NUM_RECORDS",{num:10}),value:10},{label:t("LAST_NUM_RECORDS",{num:20}),value:20},{label:t("LAST_NUM_RECORDS",{num:50}),value:50}]}},{key:"services",get:function(){return this.serviceStore.list.data.map((function(e){return{label:e.name,value:e.name,type:e.type}}))}}]),a}(h.default.Component))||o)||o;r.default=j},4982:function(e,t,r){e.exports={operations:"_2fBARiAJfc0bUaFE4VVXcr",timeSelect:"_7qmxRpeY2a6F31i4lij_w",tag:"_3CFHSBCbScJIVlfHH4u_w7"}},4983:function(e,r,a){"use strict";var n=a(20);a(12),a(109),a(5),a(11),a(6),a(18),a(16),a(9),a(13),a(10),a(4),a(23),a(24),a(17),a(62),a(7),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,a(12),a(109),a(45),a(5),a(11),a(6),a(18),a(28),a(42),a(16),a(34),a(15),a(9),a(13),a(10),a(4),a(22),a(23),a(57),a(24),a(17),a(62),a(7);var o=n(a(315)),c=n(a(43)),u=n(a(30));a(41);var l,i=n(a(44)),s=n(a(36)),f=n(a(37)),d=n(a(55)),p=n(a(56)),m=n(a(51)),h=a(186),v=n(a(63)),y=a(14),g=a(239),E=n(a(805)),S=n(a(0)),_=n(a(437)),O=n(a(318)),k=a(52),b=a(791),C=n(a(4984));function R(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,a)}return r}function T(e){for(var t=1;t6&&p.default.createElement(g.Icon,{name:"more",className:k.default.more,size:28,color:f>6?{primary:"#f5a623",secondary:"#f5a623"}:{primary:"#479e88",secondary:"#479e88"}})),o&&p.default.createElement("div",{className:k.default.control},p.default.createElement(g.Icon,{name:"add",type:"light",size:24,clickable:!0,onClick:this.handleAdd}),p.default.createElement(g.Icon,{name:"substract",type:"light",size:24,clickable:!0,onClick:this.handleSubStract}))))}}]),r}(p.Component))||c;t.default=C},4986:function(e,r,a){"use strict";a(15);var n=a(20),o=a(157);a(5),a(827),a(18),a(16),a(4),a(23),a(17),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,a(45),a(5),a(827),a(18),a(42),a(16),a(4),a(22),a(23),a(57),a(17);var c=n(a(43));a(41);var u,l=n(a(44)),i=n(a(36)),s=n(a(37)),f=n(a(55)),d=n(a(56)),p=n(a(51)),m=o(a(0)),h=a(14),v=a(239),y=n(a(26)),g=n(a(800)),E=a(186),S=n(a(814)),_=n(a(804)),O=a(434),k=n(a(325)),b=n(a(3)),C=n(a(1250));function R(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,a=(0,p.default)(e);if(t){var n=(0,p.default)(this).constructor;r=Reflect.construct(a,arguments,n)}else r=a.apply(this,arguments);return(0,d.default)(this,r)}}var T=(0,v.observer)(u=function(e){(0,f.default)(a,e);var r=R(a);function a(){var e;(0,i.default)(this,a);for(var t=arguments.length,n=new Array(t),o=0;o6&&m.default.createElement(E.Icon,{name:"more",className:C.default.more,size:28,color:f>6?{primary:"#f5a623",secondary:"#f5a623"}:{primary:"#479e88",secondary:"#479e88"}}))),m.default.createElement("div",{className:C.default.weight,onClick:this.stopPropagation},m.default.createElement(E.Icon,{name:"add",type:"light",size:20,clickable:!0,onClick:this.handleAdd}),m.default.createElement("span",{className:C.default.value},m.default.createElement("span",{className:C.default.spanText},this.getWeight),m.default.createElement("span",{className:C.default.subText}," ",t("WEIGHT"))),m.default.createElement(E.Icon,{name:"substract",type:"light",size:20,clickable:!0,onClick:this.handleSubStract})))}},{key:"getWeight",get:function(){var e=this.props,t=e.store,r=e.cluster;return(0,y.default)(t.deployedScheduleTemplate,"spec.clusters.".concat(r.name,".weight"),0)}}]),a}(m.Component))||u;r.default=T},4987:function(e,r,a){"use strict";a(15);var n=a(157),o=a(20);a(16),a(27),a(4),a(23),a(17),a(110),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var c=o(a(36)),u=o(a(37)),l=o(a(55)),i=o(a(56)),s=o(a(51));a(45),a(42),a(16),a(27),a(4),a(23),a(57),a(24),a(193),a(17),a(110);var f=n(a(0)),d=o(a(1102)),p=o(a(1250));function m(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,a=(0,s.default)(e);if(t){var n=(0,s.default)(this).constructor;r=Reflect.construct(a,arguments,n)}else r=a.apply(this,arguments);return(0,i.default)(this,r)}}var h=function(e){(0,l.default)(a,e);var r=m(a);function a(e){var t;(0,c.default)(this,a),(t=r.call(this,e)).handleScale=function(e){var r=e.target.value;(/^\+?[1-9][0-9]*$/.test(r)||""===r)&&t.setState({desire:r,seconds:5},(function(){t.showConfirm()}))},t.showConfirm=function(){t.setState({showConfirm:!0},(function(){t.startTimer()}))},t.startTimer=function(){t.timer&&t.stopTimer(),t.updateTime()},t.stopTimer=function(){clearTimeout(t.timer),t.timer=null},t.updateTime=function(){var e=t.state.seconds;t.timer=setTimeout((function(){e>0?t.setState({seconds:e-1},(function(){t.updateTime()})):(t.handleConfirm(),t.handleCancel())}),1e3)},t.handleConfirm=function(){t.props.onChange(t.state.desire),t.hideConfirm()},t.handleCancel=function(){t.setState({desire:t.props.desire},(function(){t.hideConfirm()}))},t.hideConfirm=function(){t.setState({showConfirm:!1},(function(){t.stopTimer()}))};var n=e.desire;return t.state={prevPropDesire:n,desire:n,seconds:5,showConfirm:!1},t}return(0,u.default)(a,[{key:"componentWillUnmount",value:function(){this.stopTimer()}},{key:"render",value:function(){var e=this.props.name,r=this.state,a=r.desire,n=r.showConfirm,o=r.seconds;return f.default.createElement(f.default.Fragment,null,f.default.createElement("div",{className:p.default.replicasInput},f.default.createElement("input",{name:e,value:a,onChange:this.handleScale})),f.default.createElement(d.default,{visible:n,width:400,title:t("ADJUST_REPLICAS"),content:t.html("REPLICAS_SCALE_NOTIFY_CONTENT",{num:Number(a)}),cancelText:t("REPLICAS_SCALE_NOTIFY_CANCEL"),confirmText:t("REPLICAS_SCALE_NOTIFY_CONFIRM",{seconds:o}),onCancel:this.handleCancel,onConfirm:this.handleConfirm}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){if(e.desire!==t.prevPropDesire){var r=(a=e.desire,Number(a||0));return{prevPropDesire:r,desire:r}}var a;return null}}]),a}(f.Component);r.default=h},4988:function(e,t,r){e.exports={deployment_codeResource:"_2v3CnaMI4WQFjBr1rH10IK"}},4989:function(e,t,r){e.exports={item:"_3xQ6tn2XzgaF-fxJRZeGll",more:"_2kE7aMEkAa23Y-oMSAo89T"}},4990:function(e,r,a){"use strict";var n=a(20);a(12),a(109),a(5),a(11),a(6),a(18),a(16),a(9),a(13),a(10),a(4),a(23),a(24),a(17),a(62),a(7),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,a(12),a(109),a(45),a(5),a(11),a(6),a(18),a(28),a(42),a(16),a(34),a(15),a(9),a(13),a(10),a(4),a(22),a(23),a(57),a(24),a(17),a(62),a(7);var o=n(a(315)),c=n(a(43)),u=n(a(30));a(41);var l,i=n(a(44)),s=n(a(36)),f=n(a(37)),d=n(a(55)),p=n(a(56)),m=n(a(51)),h=a(186),v=n(a(63)),y=a(14),g=a(239),E=n(a(805)),S=n(a(0)),_=n(a(437)),O=n(a(318)),k=a(52),b=a(791),C=n(a(4991));function R(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,a)}return r}function T(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};return d.default.createElement("div",{className:y.default.tlsWrapper},d.default.createElement("div",{className:y.default.tlsItem},d.default.createElement("div",{className:"h6"},t("CREDENTIAL_SI")),d.default.createElement("pre",null,this.convert(e["tls.crt"],"tls.crt"))),d.default.createElement("div",{className:y.default.tlsItem},d.default.createElement("div",{className:"h6"},t("PRIVATE_KEY_TCAP")),d.default.createElement("pre",null,this.convert(e["tls.key"],"tls.key"))))}},{key:"renderImageRepositorySecret",value:function(e){var r=this,a=e[".dockerconfigjson"];return a&&a.auths?d.default.createElement("div",{className:y.default.imageWrapper},d.default.createElement("ul",null,Object.entries(a.auths).map((function(e){var n=(0,c.default)(e,1)[0];return d.default.createElement("li",{key:n},d.default.createElement("div",{className:"h6"},d.default.createElement(m.Icon,{name:"earth"}),n),d.default.createElement("ul",null,d.default.createElement("li",null,d.default.createElement("span",null,t(".dockerconfigjson"),":"),d.default.createElement("span",null,r.convert(JSON.stringify(a),".dockerconfigjson")))))})))):null}},{key:"renderDefault",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return d.default.createElement("div",{className:y.default.defaultWrapper},d.default.createElement("ul",null,Object.entries(t).map((function(t){var r=(0,c.default)(t,2),a=r[0],n=r[1];return d.default.createElement("li",{key:a},d.default.createElement("span",null,a,":"),d.default.createElement("span",null,d.default.createElement("pre",null,e.convert(n,a))))}))))}},{key:"renderBasicAuth",value:function(){var e=this,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return d.default.createElement("div",{className:y.default.defaultWrapper},d.default.createElement("ul",null,Object.entries(r).map((function(r){var a=(0,c.default)(r,2),n=a[0],o=a[1];return d.default.createElement("li",{key:n},d.default.createElement("span",null,t(n.toUpperCase()),":"),d.default.createElement("span",null,d.default.createElement("pre",null,e.convert(o,n))))}))))}},{key:"renderContent",value:function(e){if(!e.type)return null;var t=null;switch(e.type){case"kubernetes.io/tls":t=this.renderTLS(e.data);break;case"kubernetes.io/dockerconfigjson":t=this.renderImageRepositorySecret(e.data);break;case"kubernetes.io/basic-auth":t=this.renderBasicAuth(e.data);break;default:t=this.renderDefault(e.data)}return t}},{key:"renderOperations",value:function(){var e=this.state.showSecret;return d.default.createElement(m.Button,{type:"flat",icon:e?"eye-closed":"eye",onClick:this.changeSecretState})}},{key:"render",value:function(){var e=this.store.detail,r=void 0===e?{}:e;return d.default.createElement(h.default,{title:t("DATA"),operations:this.renderOperations()},this.renderContent(r))}},{key:"originData",get:function(){var e,t;return null!==(e=null===(t=this.store.detail._originData)||void 0===t?void 0:t.data)&&void 0!==e?e:{}}}]),a}(d.default.Component))||o)||o;r.default=E},5025:function(e,t,r){e.exports={defaultWrapper:"_2dy4CtwnVPBdVDSZHW9BOl",tlsWrapper:"iJYavjSaC9ppprl7BQSi8",tlsItem:"_2v7AIMJ0uI9fm8cKo5w1-x",imageWrapper:"_1Uipq-ALr1lKHarcyPzNTP"}},5026:function(e,r,a){"use strict";a(15);var n=a(20);a(12),a(109),a(5),a(16),a(4),a(23),a(24),a(17),a(62),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,a(12),a(109),a(45),a(5),a(28),a(42),a(16),a(4),a(23),a(57),a(24),a(17),a(62);var o,c=n(a(315)),u=n(a(36)),l=n(a(37)),i=n(a(55)),s=n(a(56)),f=n(a(51)),d=a(186),p=n(a(63)),m=a(14),h=a(239),v=n(a(805)),y=n(a(0)),g=n(a(437)),E=a(52),S=a(791),_=n(a(5027));function O(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,a=(0,f.default)(e);if(t){var n=(0,f.default)(this).constructor;r=Reflect.construct(a,arguments,n)}else r=a.apply(this,arguments);return(0,s.default)(this,r)}}var k=(0,h.inject)("rootStore")(o=(0,h.observer)(o=(0,S.trigger)(o=function(e){(0,i.default)(a,e);var r=O(a);function a(){var e;(0,u.default)(this,a);for(var n=arguments.length,o=new Array(n),c=0;c0&&void 0!==arguments[0]?arguments[0]:{};return d.default.createElement("div",{className:h.default.wrapper},d.default.createElement("ul",null,Object.entries(e).map((function(e){var t=(0,c.default)(e,2),r=t[0],a=t[1];return d.default.createElement("li",{key:r},d.default.createElement("div",{className:"h6"},r),d.default.createElement("pre",{className:h.default.value},a))}))))}},{key:"render",value:function(){var e=this.store,r=e.detail,a=e.isLoading;return d.default.createElement(m.default,{title:t("DATA"),loading:a},this.renderContent(r.data))}}]),a}(d.default.Component))||o)||o;r.default=y},5029:function(e,t,r){e.exports={wrapper:"_28vsYz12ZPwpoPNgzqPOo9",value:"-jWVKnn0uXD_hecvNvLnq"}},782:function(e,t,r){"use strict";var a=r(20),n=r(157);r(12),r(11),r(6),r(29),r(73),r(18),r(16),r(9),r(13),r(10),r(4),r(22),r(23),r(24),r(17),r(38),r(62),r(7),r(32),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r(12),r(45),r(11),r(6),r(29),r(73),r(18),r(28),r(42),r(16),r(34),r(15),r(9),r(13),r(10),r(4),r(22),r(23),r(57),r(24),r(17),r(38),r(62),r(7),r(32);var o=a(r(43)),c=a(r(30));r(41);var u,l=a(r(44)),i=a(r(36)),s=a(r(37)),f=a(r(55)),d=a(r(56)),p=a(r(51)),m=n(r(0)),h=a(r(74)),v=r(14),y=r(239),g=r(186),E=r(317),S=a(r(437)),_=a(r(438)),O=a(r(4922));function k(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,a)}return r}function b(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},r=t.state,a=r.cluster,n=r.pods;(0,g.default)(n)||e.cluster!==a?t.resourceStore.fetchSortedMetrics(w(w({},t.resourceParams),{},{cluster:e.cluster,metrics:[A.cpu_usage],limit:6})).then((function(r){var a=((0,E.default)(r[A.cpu_usage],"data.result")||[]).map((function(e){return(0,E.default)(e,"metric.pod")}));t.setState({pods:a,cluster:e.cluster},(function(){t.fetchMetrics(w({resources:a},e))}))})):t.fetchMetrics(w({resources:n},e))},t.fetchMetrics=function(e){t.monitorStore.fetchMetrics(w(w({resources:[],metrics:Object.values((0,S.hideGPUByLicense)(A,t.state.cluster))},t.resourceParams),e))},t.getMonitoringCfgs=function(){return[{type:"cpu",title:"CPU_USAGE",unitType:"cpu",metricType:A.cpu_usage},{type:"memory",title:"MEMORY_USAGE",unitType:"memory",metricType:A.memory_usage},{type:"gpu",title:"GPU_USAGE",unitType:"gpu",metricType:A.gpu_usage},{type:"gpu_memory",title:"GPU_MEMORY_USAGE",unitType:"memory",metricType:A.gpu_memory_usage},{type:"bandwidth",title:"OUTBOUND_TRAFFIC",unitType:"bandwidth",metricType:A.net_transmitted},{type:"bandwidth",title:"INBOUND_TRAFFIC",unitType:"bandwidth",metricType:A.net_received}]},t.showMultipleModal=function(e){return(0,S.cacheFunc)("_showMultipleModal_".concat(e.title),(function(){t.setState({showMultipleModal:!0,selectItem:w(w({},e),{},{legend:["USAGE"]})})}),(0,s.default)(t))},t.hideMultipleModal=function(){t.setState({showMultipleModal:!1,selectItem:{}})},t.state={showMultipleModal:!1,selectItem:{},pods:[],cluster:""},t.monitorStore=new O.default,t.resourceStore=new O.default,t}return(0,i.default)(a,[{key:"renderCard",value:function(){var e=this,r=this.store.detail,a=r.createTime,n=r.clusters,o=this.monitorStore,u=o.isLoading,l=o.isRefreshing,i=(0,S.hideGPUByLicense)(this.getMonitoringCfgs(),this.state.cluster),s=this.isMore;return m.default.createElement(C.Controller,{createTime:a,onFetch:this.fetchData,loading:u,refreshing:l,clusters:n,isEmpty:(0,g.default)(this.metrics),isFederated:!0},s&&m.default.createElement(k.Alert,{message:t.html("MONITORING_ALERT_DESC"),type:"info"}),i.map((function(r){r.data=(0,E.default)(e.metrics,"".concat(r.metricType,".data.result"))||[{values:(0,_.getZeroValues)()}],r.legend=r.data.map((function(e,t){return(0,E.default)(e,"metric.pod","pod".concat(t))})),r.workload_kind=e.monitoringModule;var a=(0,_.getAreaChartOps)(r);return m.default.createElement("div",{key:r.title,className:(0,y.default)(T.default.item)},s&&m.default.createElement("div",{className:T.default.more,onClick:e.showMultipleModal(r)},t("VIEW_ALL_REPLICAS")),m.default.createElement(b.MultiArea,(0,c.default)({width:"100%"},a)))})))}},{key:"renderModal",value:function(){var e=this.state,t=e.showMultipleModal,r=e.selectItem,a=this.store.detail,n=a.name,o=a.namespace;return m.default.createElement("div",null,m.default.createElement(R.default,{visible:t,module:this.monitoringModule,name:n,namespace:o,config:r,onCancel:this.hideMultipleModal}))}},{key:"render",value:function(){return m.default.createElement("div",null,this.renderCard(),this.renderModal())}},{key:"store",get:function(){return this.props.detailStore}},{key:"monitoringModule",get:function(){return j[this.store.module]}},{key:"metrics",get:function(){return this.monitorStore.data}},{key:"resourceParams",get:function(){var e=this.store.detail,t=e.namespace,r=e.name;return{namespace:t,workload_kind:this.monitoringModule,workload_name:r}}},{key:"isMore",get:function(){return((0,E.default)((0,h.toJS)(this.resourceStore.sort),"data[".concat(A.cpu_usage,"].data.result"))||[]).length>5}}]),a}(m.default.Component))||o)||o;r.default=N},4923:function(e,t,r){"use strict";r(15);var a=r(20);r(5),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r(5);var n=a(r(61)),o=r(317),c=a(r(4924)),u=a(r(4925)),l=a(r(4940)),i=a(r(4941)),s=a(r(4943)),f=a(r(4944)),d=a(r(4945)),p=a(r(4946)),m=a(r(4948)),h=a(r(4953)),v=a(r(4954)),y=a(r(4955)),g=a(r(4961)),E=a(r(4964)),S=a(r(4965)),_="/:workspace/federatedprojects/:namespace",O=[].concat((0,n.default)((0,S.default)(_)),[{path:_,component:c.default,routes:[{path:"".concat(_,"/overview"),component:u.default,exact:!0},{path:"".concat(_,"/applications"),component:l.default,exact:!0},{path:"".concat(_,"/deployments"),component:i.default,exact:!0},{path:"".concat(_,"/statefulsets"),component:s.default,exact:!0},{path:"".concat(_,"/services"),component:f.default,exact:!0},{path:"".concat(_,"/ingresses"),component:d.default,exact:!0},{path:"".concat(_,"/volumes"),component:p.default,exact:!0},{path:"".concat(_,"/base-info"),component:m.default,exact:!0},{path:"".concat(_,"/configmaps"),component:h.default,exact:!0},{path:"".concat(_,"/secrets"),component:v.default,exact:!0},{path:"".concat(_,"/quota"),component:y.default,exact:!0},{path:"".concat(_,"/gateways"),component:E.default,exact:!0},{path:"".concat(_,"/log-collections"),component:g.default,exact:!0},(0,o.getIndexRoute)({path:"".concat(_,"/workloads"),to:"".concat(_,"/deployments"),exact:!0}),(0,o.getIndexRoute)({path:_,to:"".concat(_,"/overview"),exact:!0}),(0,o.getIndexRoute)({path:"*",to:"/404",exact:!0})]}]);t.default=O},4924:function(e,t,r){"use strict";r(15);var a=r(20),n=r(157);r(4),r(23),r(24),r(17),r(62),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r(45),r(28),r(42),r(4),r(23),r(57),r(24),r(17),r(62);var o,c=a(r(36)),u=a(r(37)),l=a(r(55)),i=a(r(56)),s=a(r(51)),f=r(239),d=n(r(0)),p=a(r(438)),m=r(317);function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,a=(0,s.default)(e);if(t){var n=(0,s.default)(this).constructor;r=Reflect.construct(a,arguments,n)}else r=a.apply(this,arguments);return(0,i.default)(this,r)}}var v=(0,f.inject)("rootStore","projectStore")(o=(0,f.observer)(o=function(e){(0,l.default)(r,e);var t=h(r);function r(e){var a;return(0,c.default)(this,r),(a=t.call(this,e)).state={fetchFin:!1},a.handleChange=function(e){return a.routing.push(e)},a.store=new p.default,a}return(0,u.default)(r,[{key:"render",value:function(){var e=this.props.route;return d.default.createElement(d.default.Fragment,null,(0,m.renderRoutes)(e.routes))}},{key:"project",get:function(){return this.props.match.params.namespace}},{key:"routing",get:function(){return this.props.rootStore.routing}}]),r}(d.Component))||o)||o;t.default=v},4925:function(e,r,a){"use strict";var n=a(20);a(12),a(5),a(11),a(6),a(84),a(18),a(16),a(9),a(13),a(10),a(4),a(23),a(24),a(17),a(85),a(62),a(7),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,a(12),a(45),a(5),a(11),a(6),a(84),a(18),a(28),a(42),a(16),a(34),a(15),a(9),a(13),a(10),a(4),a(23),a(57),a(24),a(17),a(85),a(62),a(7);var o,c=n(a(30)),u=n(a(315)),l=n(a(36)),i=n(a(37)),s=n(a(55)),f=n(a(56)),d=n(a(51)),p=a(186),m=n(a(26)),h=a(14),v=a(239),y=n(a(0)),g=a(52),E=n(a(4926)),S=n(a(4928)),_=n(a(4930)),O=n(a(4938));function k(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,a)}return r}function b(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};n.fetchMetrics(),n.overviewStore.fetchResourceStatus(w(w(w({},e),n.props.match.params),{},{cluster:n.props.cluster}))},n.fetchMetrics=function(e){var t=n.state,r=t.resourceType,a=t.range;"application"===r?n.appResourceMonitorStore.fetchMetrics(w(w(w({},n.props.match.params),{},{cluster:n.props.cluster,metrics:A,step:"".concat(Math.floor(a/10),"s"),times:10,fillZero:!0},e),{},{autoRefresh:!1})):n.physicalResourceMonitorStore.fetchMetrics(w(w(w({},n.props.match.params),{},{cluster:n.props.cluster,metrics:(0,O.hideGPUByLicense)(j,n.props.cluster),step:"".concat(Math.floor(a/40),"s"),times:40,fillZero:!0},e),{},{autoRefresh:!1}))},n.getResourceData=function(){var e=(0,v.toJS)(n.overviewStore.resource),t=e.quota,r=void 0===t?{}:t,a=e.status,o=void 0===a?{}:a,c=r.used||{};return[{key:"deployments",icon:k.ICON_TYPES.deployments,name:"DEPLOYMENT",routeName:"deployments",num:c["count/deployments.apps"],warnNum:o.deployments,metric:"namespace_deployment_count"},{key:"statefulsets",icon:k.ICON_TYPES.statefulsets,name:"STATEFULSET",routeName:"statefulsets",num:c["count/statefulsets.apps"],warnNum:o.statefulsets,metric:"namespace_statefulset_count"},{key:"volumes",icon:k.ICON_TYPES.volumes,name:"PERSISTENT_VOLUME_CLAIM",routeName:"volumes",num:c.persistentvolumeclaims||c["count/persistentvolumeclaims"],warnNum:o["persistent-volume-claims"],metric:"namespace_pvc_count"},{key:"services",icon:k.ICON_TYPES.services,name:"SERVICE",routeName:"services",num:c["count/services"],metric:"namespace_service_count"},{key:"ingresses",icon:k.ICON_TYPES.ingresses,name:"ROUTE",routeName:"ingresses",num:c["count/ingresses.extensions"],metric:"namespace_ingresses_extensions_count"}]},n.handleResouceTypeChange=function(e){n.setState({resourceType:e},(function(){n.fetchMetrics()}))},n.handleRangeChange=function(e){n.setState({range:e},(function(){n.fetchMetrics()}))},n.clusterRenderer=function(e){return t("CLUSTER_VALUE",{value:e.label})},n.state={resourceType:"application",range:43200},n.overviewStore=new _.default,n.appResourceMonitorStore=new S.default,n.physicalResourceMonitorStore=new S.default,n.fetchData(),n}return(0,i.default)(a,[{key:"componentDidUpdate",value:function(e){(0,E.default)(e.match.params,this.props.match.params)&&this.props.cluster===e.cluster||this.fetchData()}},{key:"componentDidMount",value:function(){(0,b.startAutoRefresh)(this,{method:"fetchMetrics",interval:1e4,leading:!1})}},{key:"componentWillUnmount",value:function(){(0,b.stopAutoRefresh)(this)}},{key:"renderApplicationResource",value:function(){var e=this,t=(0,v.toJS)(this.overviewStore.resource).isLoading,r=this.appResourceMonitorStore,a=r.data,n=r.isLoading,o=r.isRefreshing,u=this.getResourceData();return g.default.createElement(p.Loading,{spinning:t},g.default.createElement("div",{className:R.default.resources},u.filter((function(e){return!e.disabled})).map((function(t){return g.default.createElement(C.default,(0,c.default)({},e.props.match.params,t,{metrics:(0,h.default)(a,"".concat(t.metric,".data.result")),isMetricsLoading:n||o}))}))))}},{key:"renderPhysicalResource",value:function(){var e=this,r=this.physicalResourceMonitorStore,a=r.data,n=r.isLoading,o=r.isRefreshing,c=this.timeOptions.find((function(t){return t.value===e.state.range}))||{};return g.default.createElement("div",null,g.default.createElement(T.default,{type:"cpu",title:t("CPU_USAGE_TIME",{time:c.label}),metrics:(0,h.default)(a,"namespace_cpu_usage.data.result"),isLoading:n||o,showDay:c.value>=172800}),g.default.createElement(T.default,{type:"memory",title:t("MEMORY_USAGE_TIME",{time:c.label}),metrics:(0,h.default)(a,"namespace_memory_usage_wo_cache.data.result"),isLoading:n||o,showDay:c.value>=172800}))}},{key:"renderHeader",value:function(){var e=this.props,r=e.cluster,a=e.clusters,n=e.onClusterChange;return g.default.createElement("div",{className:R.default.header},g.default.createElement(p.RadioGroup,{mode:"button",value:this.state.resourceType,onChange:this.handleResouceTypeChange,size:"small"},g.default.createElement(p.RadioButton,{value:"application"},t("APPLICATION_RESOURCE_PL")),g.default.createElement(p.RadioButton,{value:"physical"},t("PHYSICAL_RESOURCE_PL"))),g.default.createElement(p.Select,{className:R.default.timeSelect,defaultValue:this.state.range,options:this.timeOptions,onChange:this.handleRangeChange}),g.default.createElement(p.Select,{className:R.default.cluster,value:r,options:a,onChange:n,valueRenderer:this.clusterRenderer,showTip:!0}))}},{key:"render",value:function(){var e=this.state.resourceType;return g.default.createElement(m.default,{className:R.default.wrapper,title:t("RESOURCE_STATUS")},this.renderHeader(),"application"===e?this.renderApplicationResource():this.renderPhysicalResource())}},{key:"routing",get:function(){return this.props.rootStore.routing}},{key:"namespace",get:function(){return(0,h.default)(this.props.match,"params.namespace")}},{key:"timeOptions",get:function(){return[{label:t("LAST_TIME_H",{num:1}),value:3600},{label:t("LAST_TIME_H",{num:2}),value:7200},{label:t("LAST_TIME_H",{num:5}),value:18e3},{label:t("LAST_TIME_H",{num:12}),value:43200},{label:t("LAST_TIME_D",{num:1}),value:86400},{label:t("LAST_TIME_D",{num:2}),value:172800},{label:t("LAST_TIME_D",{num:3}),value:259200},{label:t("LAST_TIME_D",{num:7}),value:604800}]}}]),a}(g.default.Component))||o)||o;r.default=N},4931:function(e,r,a){"use strict";a(15);var n=a(20);a(5),a(16),a(4),a(23),a(17),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,a(45),a(5),a(28),a(42),a(16),a(4),a(23),a(57),a(17);var o,c,u,l=n(a(315)),i=n(a(30)),s=n(a(36)),f=n(a(37)),d=n(a(55)),p=n(a(56)),m=n(a(51)),h=n(a(0)),v=a(239),y=n(a(1)),g=n(a(3)),E=n(a(194)),S=a(186),_=a(794),O=n(a(4932)),k=n(a(4933));function b(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,a=(0,m.default)(e);if(t){var n=(0,m.default)(this).constructor;r=Reflect.construct(a,arguments,n)}else r=a.apply(this,arguments);return(0,p.default)(this,r)}}var C=(0,v.inject)("rootStore")(o=(0,v.observer)((u=c=function(e){(0,d.default)(a,e);var r=b(a);function a(){var e;(0,s.default)(this,a);for(var t=arguments.length,n=new Array(t),o=0;o99?h.default.createElement("div",{className:k.default.skip},"..."):r;return r>0?h.default.createElement("div",{className:k.default.warn},h.default.createElement(S.Tooltip,{className:k.default.tips,content:t("RESOURCE_WARNING_TIPS",{warnNum:r,tipName:t("".concat(a,"_PL"))})},h.default.createElement("div",{onClick:this.handleWarnClick},n))):null}},{key:"render",value:function(){var e=this.props,r=e.className,a=e.icon,n=e.iconSize,o=e.name,c=e.routeName,u=e.num,s=e.metrics,f=e.onClick,d=(0,_.getAreaChartOps)({title:"",unit:"",legend:["COUNT"],data:s});return h.default.createElement("div",{"data-name":o,className:(0,g.default)(k.default.card,r)},h.default.createElement("div",{className:k.default.icon},h.default.createElement(S.Icon,{name:a,size:n}),this.renderWarn()),h.default.createElement("div",{className:(0,g.default)(k.default.info,(0,i.default)({},k.default.cursor,c||f)),onClick:this.handleClick},h.default.createElement("strong",null,u),h.default.createElement("span",null,"1"===u?t(o):t("".concat(o,"_PL")))),h.default.createElement(O.default,(0,l.default)({width:330,height:44,bgColor:"transparent"},d)))}},{key:"routing",get:function(){return this.props.rootStore.routing}},{key:"prefix",get:function(){var e=this.props,t=e.namespace,r=e.workspace;return"/".concat(r,"/federatedprojects/").concat(t)}}]),a}(h.default.Component),c.propTypes={className:y.default.string,icon:y.default.string,iconSize:y.default.number,name:y.default.string,namespace:y.default.string,routeName:y.default.string,num:y.default.oneOfType([y.default.number,y.default.string]),warnNum:y.default.number,onClick:y.default.func},c.defaultProps={icon:"appcenter",iconSize:40,name:"deployment",namespace:"default",routeName:"",num:0,warnNum:0},o=u))||o)||o;r.default=C},4932:function(e,t,r){"use strict";r(15);var a=r(20);r(827),r(11),r(18),r(10),r(4),r(23),r(17),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r(45),r(827),r(11),r(18),r(42),r(10),r(4),r(23),r(57),r(17);var n=a(r(36)),o=a(r(37)),c=a(r(55)),u=a(r(56)),l=a(r(51)),i=a(r(0)),s=a(r(1)),f=r(72),d=a(r(900)),p=a(r(869)),m=a(r(870)),h=a(r(947)),v=a(r(929)),y=a(r(871)),g=a(r(862));function E(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,a=(0,l.default)(e);if(t){var n=(0,l.default)(this).constructor;r=Reflect.construct(a,arguments,n)}else r=a.apply(this,arguments);return(0,u.default)(this,r)}}var S=function(e){(0,c.default)(r,e);var t=E(r);function r(){return(0,n.default)(this,r),t.apply(this,arguments)}return(0,o.default)(r,[{key:"getVeticalPoints",value:function(){var e=this.props.width,t=(e-10)/10;return Array(10).fill("").map((function(e,r){return 5+t*r}))}},{key:"renderArea",value:function(){var e=this.props,t=e.unit,r=e.areaColors,a={stroke:"#55bc8a",strokeWidth:1,fill:"#fff",fillOpacity:1};return this.series.map((function(e,n){var o=f.COLORS_MAP[r[n]];return i.default.createElement(d.default,{key:e,dataKey:e,stroke:o,fillOpacity:"0.1",fill:o,unit:t,dot:a})}))}},{key:"render",value:function(){var e=this.props,t=e.width,r=e.height,a=e.xKey,n=e.data;return i.default.createElement(y.default,{width:t,height:r,debounce:1},i.default.createElement(h.default,{data:n},i.default.createElement(m.default,{dataKey:a,hide:!0}),i.default.createElement(p.default,{wrapperStyle:{zIndex:1e3},content:i.default.createElement(g.default,null)}),i.default.createElement(v.default,{strokeDasharray:"3 6",horizontal:!1,verticalPoints:this.getVeticalPoints()}),this.renderArea()))}},{key:"series",get:function(){var e=this.props,t=e.xKey,r=e.data;return Object.keys(r[0]||{}).filter((function(e){return e!==t}))}}]),r}(i.default.Component);t.default=S,S.propTypes={width:s.default.oneOfType([s.default.string,s.default.number]),height:s.default.oneOfType([s.default.string,s.default.number]),xKey:s.default.string,unit:s.default.string,data:s.default.array,bgColor:s.default.string,areaColors:s.default.array},S.defaultProps={width:180,height:56,xKey:"time",unit:"",bgColor:f.COLORS_MAP.lightest,areaColors:["green","blue","yellow","red"],data:[]}},4933:function(e,t,r){e.exports={card:"_1aK9M2ABK--zrWKxtSjitf",icon:"_3YStaQCgjfHrr2KxC-qWMb",warn:"_3XD-urPTP4b5kQFF25P1J3",tips:"_2wOcbgucGsMTTwMP340_w3",skip:"_2aj89OYDD2fNhMuJdOsLks",info:"_3NX2xvd1JmwoMSQCsNAUZl",cursor:"_2gjwCxV06MFwZ28jZgAfB0"}},4934:function(e,t,r){e.exports={wrapper:"lhAYr_BvqflK6AH06NHDs",header:"fVrL2jWvbuvVpeFLdHh-5",timeSelect:"YQNUYGZd1XHRdL2_iF1TK",cluster:"_12WK-EhzeFn2BXYZ1E4kwL"}},4935:function(e,t,r){"use strict";r(15);var a=r(20);r(27),r(4),r(23),r(17),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r(45),r(42),r(27),r(4),r(23),r(57),r(17);var n=a(r(315)),o=a(r(36)),c=a(r(37)),u=a(r(55)),l=a(r(56)),i=a(r(51)),s=a(r(0)),f=r(52),d=r(794),p=a(r(4936)),m=a(r(4937));function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,a=(0,i.default)(e);if(t){var n=(0,i.default)(this).constructor;r=Reflect.construct(a,arguments,n)}else r=a.apply(this,arguments);return(0,l.default)(this,r)}}var v=function(e){(0,u.default)(r,e);var t=h(r);function r(){return(0,o.default)(this,r),t.apply(this,arguments)}return(0,c.default)(r,[{key:"render",value:function(){var e=this.props,t=e.type,r=e.title,a=e.metrics,o=e.showDay,c=(0,d.getAreaChartOps)({title:r,unitType:t,legend:["COUNT"],data:a,xFormatter:function(e){return(0,f.getLocalTime)(1e3*Number(e)).format(o?"MM-DD HH:mm":"HH:mm")}});return s.default.createElement("div",{className:m.default.wrapper},s.default.createElement("div",{className:m.default.chartWrapper},s.default.createElement("div",{className:m.default.title},r),s.default.createElement("div",{className:m.default.chart},s.default.createElement(p.default,(0,n.default)({width:"100%",height:120,bgColor:"transparent"},c)))))}}]),r}(s.default.Component);t.default=v},4936:function(e,t,r){"use strict";r(15);var a=r(20);r(5),r(827),r(11),r(18),r(10),r(4),r(23),r(17),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r(45),r(5),r(827),r(11),r(18),r(42),r(10),r(4),r(23),r(57),r(17);var n=a(r(36)),o=a(r(37)),c=a(r(55)),u=a(r(56)),l=a(r(51)),i=a(r(0)),s=a(r(1)),f=r(72),d=a(r(900)),p=a(r(869)),m=a(r(912)),h=a(r(870)),v=a(r(947)),y=a(r(929)),g=a(r(871)),E=a(r(862));function S(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,a=(0,l.default)(e);if(t){var n=(0,l.default)(this).constructor;r=Reflect.construct(a,arguments,n)}else r=a.apply(this,arguments);return(0,u.default)(this,r)}}var _=function(e){(0,c.default)(r,e);var t=S(r);function r(){return(0,n.default)(this,r),t.apply(this,arguments)}return(0,o.default)(r,[{key:"render",value:function(){var e=this.props,t=e.x,r=e.y,a=e.payload;return i.default.createElement("g",{transform:"translate(".concat(t,",").concat(r,")")},i.default.createElement("text",{x:0,y:0,dy:12,fill:"#79879c",textAnchor:"middle"},a.value))}}]),r}(i.default.PureComponent),O=function(e){(0,c.default)(r,e);var t=S(r);function r(){return(0,n.default)(this,r),t.apply(this,arguments)}return(0,o.default)(r,[{key:"getHorizontalPoints",value:function(){var e=this.props.height,t=(e-30-6)/4;return Array(4).fill("").map((function(e,r){return 30+t*r}))}},{key:"renderArea",value:function(){var e=this.props,t=e.unit,r=e.areaColors;return this.series.map((function(e,a){var n=f.COLORS_MAP[r[a]];return i.default.createElement(d.default,{key:e,dataKey:e,stroke:n,fillOpacity:"1",fill:"url(#colorPv)",unit:t})}))}},{key:"render",value:function(){var e=this.props,t=e.width,r=e.height,a=e.xKey,n=e.data;return i.default.createElement(g.default,{width:t,height:r,debounce:1},i.default.createElement(v.default,{data:n,margin:{top:32,left:16,right:16,bottom:0}},i.default.createElement("defs",null,i.default.createElement("linearGradient",{id:"colorPv",x1:"0",y1:"0",x2:"0",y2:"1"},i.default.createElement("stop",{offset:"5%",stopColor:"#55bc8a",stopOpacity:.2}),i.default.createElement("stop",{offset:"95%",stopColor:"#55bc8a",stopOpacity:0}))),i.default.createElement(y.default,{vertical:!1,stroke:"#36435c",strokeDasharray:"2 2",horizontalPoints:this.getHorizontalPoints()}),i.default.createElement(h.default,{dataKey:a,axisLine:!1,tickLine:!1,height:30,interval:"preserveStart",tick:i.default.createElement(_,null),minTickGap:20}),i.default.createElement(m.default,{hide:!0,type:"number",domain:[function(e){return 0-Math.abs(e)},function(e){return 1.6*e}]}),i.default.createElement(p.default,{wrapperStyle:{zIndex:1e3},content:i.default.createElement(E.default,null)}),this.renderArea()))}},{key:"series",get:function(){var e=this.props,t=e.xKey,r=e.data;return Object.keys(r[0]||{}).filter((function(e){return e!==t}))}}]),r}(i.default.Component);t.default=O,O.propTypes={width:s.default.oneOfType([s.default.string,s.default.number]),height:s.default.oneOfType([s.default.string,s.default.number]),xKey:s.default.string,unit:s.default.string,data:s.default.array,bgColor:s.default.string,areaColors:s.default.array},O.defaultProps={width:180,height:56,xKey:"time",unit:"",bgColor:f.COLORS_MAP.lightest,areaColors:["green","blue","yellow","red"],data:[]}},4937:function(e,t,r){e.exports={wrapper:"_2R06eiyotdeGIx5OLhFonz",chartWrapper:"_29Puefj9SAxjkMV22wykzX",chart:"_2eHSIdMS6vT3QPzHyRq6Jw",title:"_1iV5AwK5s6o9oLhbG6ft6A"}},4938:function(e,r,a){"use strict";a(15);var n=a(20);a(5),a(18),a(48),a(190),a(4),a(23),a(24),a(17),a(62),a(64),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,a(45),a(5),a(18),a(48),a(42),a(190),a(4),a(23),a(57),a(24),a(17),a(62),a(64);var o,c=n(a(36)),u=n(a(37)),l=n(a(55)),i=n(a(56)),s=n(a(51)),f=a(186),d=n(a(789)),p=n(a(26)),m=n(a(63)),h=a(14),v=a(239),y=n(a(0)),g=n(a(837)),E=a(433),S=n(a(1434)),_=a(52),O=a(794),k=n(a(4939));function b(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,a=(0,s.default)(e);if(t){var n=(0,s.default)(this).constructor;r=Reflect.construct(a,arguments,n)}else r=a.apply(this,arguments);return(0,i.default)(this,r)}}var C={workload_cpu_usage:"cpu",workload_memory_usage_wo_cache:"memory",workload_net_bytes_transmitted:"bandwidth",workload_net_bytes_received:"bandwidth"},R=(0,v.inject)("rootStore")(o=(0,v.observer)(o=function(e){(0,l.default)(a,e);var r=b(a);function a(e){var n;return(0,c.default)(this,a),(n=r.call(this,e)).clusterRenderer=function(e){return y.default.createElement("span",null,t("CLUSTER_VALUE",{value:(0,_.showNameAndAlias)(e.value,"cluster",{},!0)}))},n.store=new S.default({cluster:e.cluster,namespaces:(0,p.default)(e.match,"params.namespace")}),n}return(0,u.default)(a,[{key:"componentDidMount",value:function(){this.store.fetchAll()}},{key:"componentDidUpdate",value:function(e){(0,g.default)(e.match.params,this.props.match.params)&&this.props.cluster===e.cluster||(this.store.cluster=this.props.cluster,this.store.namespaces=(0,p.default)(this.props.match,"params.namespace"),this.store.fetchAll())}},{key:"getWorkloadLink",value:function(e){var t=e.workload_type;if("Pod"!==t){var r=e.workload,a=(void 0===r?"":r).replace(/\w+:/,""),n=this.props.match.params,o=n.workspace,c=n.namespace;return{deployment:"/".concat(o,"/federatedprojects/").concat(c,"/deployments/").concat(a),statefulset:"/".concat(o,"/federatedprojects/").concat(c,"/statefulsets/").concat(a),daemonset:"/".concat(o,"/federatedprojects/").concat(c,"/daemonsets/").concat(a)}[t]}}},{key:"renderHeader",value:function(){var e=this.props,t=e.cluster,r=e.clusters,a=e.onClusterChange;return y.default.createElement("div",{className:k.default.header},y.default.createElement(f.Select,{className:k.default.select,value:t,options:r,onChange:a,valueRenderer:this.clusterRenderer,showTip:!0}),y.default.createElement(f.Select,{className:k.default.select,value:this.store.sort_metric,onChange:this.store.changeSortMetric,options:this.options}))}},{key:"renderEmpty",value:function(){return y.default.createElement("div",{className:k.default.empty},y.default.createElement(f.Icon,{name:"backup",size:32}),y.default.createElement("div",null,t("NO_DATA")))}},{key:"renderContent",value:function(){var e=this,r=(0,h.toJS)(this.store.data);return!this.store.isLoading&&(0,m.default)(r)?this.renderEmpty():y.default.createElement("div",{className:k.default.content},r.slice(0,5).map((function(a){var n,o={deployment:"backup",dtatefulset:"stateful-set",dataaemonset:"deamon-set",pod:"pod",default:"backup"},c=e.getWorkloadLink(a),u=a.workload.replace(/\w+:/,""),l=100*a[e.store.sort_metric]/r[0][e.store.sort_metric],i=(0,O.getSuitableUnit)(a[e.store.sort_metric],C[e.store.sort_metric]),s=(0,O.getValueByUnit)(a[e.store.sort_metric],i)||0,d=(0,_.coreUnitTS)(s,i);return y.default.createElement("div",{className:k.default.app,key:"".concat(a.workload_type,"-").concat(u)},y.default.createElement("div",{className:k.default.appContent},y.default.createElement(f.Icon,{name:o[a.workload_type]||o.Default,type:"dark",size:40}),y.default.createElement("div",{className:k.default.text},y.default.createElement("div",{className:"relative","data-tooltip":u},y.default.createElement("div",null,c?y.default.createElement(E.Link,{to:c},u):u)),y.default.createElement("p",null,t(null===(n=a.workload_type)||void 0===n?void 0:n.toUpperCase()))),y.default.createElement("div",{className:k.default.value},s,y.default.createElement("span",{style:{fontSize:12}}," ",t(d)))),y.default.createElement("div",{className:k.default.background,style:{width:"".concat(l.toFixed(2),"%")}}))})))}},{key:"render",value:function(){return y.default.createElement(d.default,{className:k.default.wrapper,title:t("TOP_5_FOR_RESOURCE_USAGE")},this.renderHeader(),this.renderContent())}},{key:"options",get:function(){return this.store.sort_metric_options.map((function(e){return{value:e,label:t("SORT_BY_".concat(e.toUpperCase()))}}))}}]),a}(y.default.Component))||o)||o;r.default=R},4939:function(e,t,r){e.exports={wrapper:"ALy60QWv9PJIlLpSJ93tc",header:"_14neEM1YWcy8Yl_HhRXBZ9",title:"_3rcJ-P4KglVtAGgB47VOBC",select:"_1trHAxO9VXo4shhZWhZYRD",app:"_65oCruiMj4nUJACfdPg73",value:"_3L2-Jvn7GOtsJBEIGhLbAs",appContent:"W5UocK9-pHzxLPhMojqCP",text:"_3GdnxTROCHfv5IKMzw0yhW",background:"_2lDLZkYMWHYxOFFEZZYilE",empty:"JDSFBvlabhdgjVzNCAOt9"}},4940:function(e,r,a){"use strict";var n=a(20);a(12),a(5),a(11),a(6),a(84),a(73),a(18),a(16),a(9),a(13),a(10),a(4),a(23),a(24),a(17),a(85),a(62),a(7),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,a(12),a(45),a(5),a(11),a(6),a(84),a(73),a(18),a(28),a(42),a(16),a(34),a(15),a(9),a(13),a(10),a(4),a(23),a(57),a(24),a(17),a(85),a(62),a(7);var o,c=n(a(30)),u=n(a(315)),l=n(a(36)),i=n(a(37)),s=n(a(55)),f=n(a(56)),d=n(a(51)),p=n(a(0)),m=n(a(26)),h=a(239),v=a(14),y=n(a(795)),g=n(a(788)),E=a(793),S=n(a(796)),_=n(a(792)),O=n(a(1108)),k=a(52),b=n(a(437)),C=n(a(961));function R(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,a)}return r}function T(e){for(var t=1;t3&&h.default.createElement("div",{className:M.default.folder},h.default.createElement(b.Button,{icon:r?"chevron-down":"chevron-up",onClick:this.toggleFold},r?t("UNFOLD"):t("FOLD"))))}},{key:"allSpec",get:function(){var e=this.store.data,t=(0,E.default)(e,"hard",{}),r=Object.values(R.QUOTAS_MAP).map((function(e){return e.name})),a=Object.keys(t).filter((function(e){return-1===r.indexOf(e)})).map((function(e){return[e,{name:e,type:"userDefined"}]}));return Object.entries(R.QUOTAS_MAP).concat(a).map((function(t){var r,a=(0,u.default)(t,2),n=a[0],o=a[1];return{key:n,name:n,total:(0,E.default)(e,'hard["'.concat(o.name,'"]')),used:(0,E.default)(e,'used["'.concat(o.name,'"]'),0),left:(0,E.default)(e,'left["'.concat(o.name,'"]')),type:null!==(r=null==o?void 0:o.type)&&void 0!==r?r:"system"}})).filter((function(e){var t=e.total,r=e.used,a=e.name;return!(!t&&!Number(r)&&-1===L.indexOf(a))}))}},{key:"allStorageClass",get:function(){return(0,v.toJS)(this.storageClassStore.list.data)}},{key:"items",get:function(){return this.allSpec.filter((function(e){return-1===e.name.indexOf(U[0])&&-1===e.name.indexOf(U[1])}))}},{key:"storageLimit",get:function(){return this.allSpec.filter((function(e){return-1!==e.name.indexOf(U[0])||-1!==e.name.indexOf(U[1])}))}},{key:"storageClassResource",get:function(){var e=(0,v.toJS)(this.store.data),t=e.hard,r=e.used;return U.map((function(e){var a=(0,E.default)(t,[e],e.includes("claims")?"0":"0Gi"),n=(0,E.default)(r,[e],e.includes("claims")?"0":"0Gi"),o=e.includes("claims")?a:(0,C.memoryFormat)(a,"Gi");return{key:e,name:e,total:o>0?e.includes("claims")?o:"".concat(o,"Gi"):void 0,used:e.includes("claims")?n:(0,C.memoryFormat)(n,"Gi")}}))}},{key:"relateStorageClass",get:function(){var e=(0,v.toJS)(this.store.data),t=(0,E.default)(e,"hard",{}),r=(0,E.default)(e,"used",{}),a=Object.entries(t).filter((function(e){var t=(0,u.default)(e,1)[0];return(0,S.default)(t,Y)||(0,S.default)(t,F)})).map((function(e){var t=(0,u.default)(e,2),r=t[0],a=t[1];return(0,i.default)({},r,a)})),n=a.map((function(e){var t=Object.keys(e)[0];return(0,i.default)({},t,(0,E.default)(r,t))})),o={total:(0,c.default)(a),used:(0,c.default)(n)};if(o.total.length>0){var l,s=(0,_.default)((0,c.default)(o.total),(function(e){return Object.keys(e)[0].split(".").slice(1).join(".")}));return l={},(0,i.default)(l,Y,(0,E.default)(s,[Y],[]).map((function(e){var t=Object.keys(e)[0],r=o.used.filter((function(e){return Object.keys(e)[0]===t}))[0];return{name:t,total:Object.values(e)[0],used:Object.values(r)[0]}}))),(0,i.default)(l,F,(0,E.default)(s,[F],[]).map((function(e){var t=Object.keys(e)[0],r=o.used.filter((function(e){return Object.keys(e)[0]===t}))[0];return{name:t,total:Object.values(e)[0],used:Object.values(r)[0]}}))),l}return{}}}]),a}(h.default.Component))||o)||o)||o;r.default=G},4957:function(e,r,a){"use strict";a(15);var n=a(20);a(5),a(84),a(86),a(16),a(27),a(190),a(24),a(85),a(64),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,a(5),a(84),a(86),a(16),a(27),a(190),a(24),a(85),a(64);var o=n(a(0)),c=n(a(158)),u=a(186),l=n(a(1044)),i=a(52),s=a(72),f=n(a(4958)),d=function(e){var r,a=e.name,n=e.total,d=e.used,p=e.type,m=0;"limits.cpu"===a||"requests.cpu"===a?n&&(m=Number((0,i.cpuFormat)(d))/Number((0,i.cpuFormat)(n)),d="".concat((0,i.cpuFormat)(d)," Core"),n="".concat((0,i.cpuFormat)(n)," Core")):"limits.memory"===a||"requests.memory"===a?n&&(m=Number((0,i.memoryFormat)(d))/Number((0,i.memoryFormat)(n)),d="".concat((0,i.memoryFormat)(d,"Gi")," Gi"),n="".concat((0,i.memoryFormat)(n,"Gi")," Gi")):n&&(m=Number(d)/Number(n)),m=Math.min(Math.max(m,0),1);var h=a.indexOf("gpu")>-1?"gpu":a,v="gpu"===h?"".concat(h,".limit"):h,y=a.indexOf("gpu")>-1?s.ICON_TYPES.gpu:null!==(r=s.ICON_TYPES[a])&&void 0!==r?r:"resource";return o.default.createElement("div",{className:f.default.quota},o.default.createElement(u.Icon,{name:y,size:40}),o.default.createElement("div",{className:f.default.item},o.default.createElement("div",null,function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",r=arguments.length>1?arguments[1]:void 0;return"userDefined"!==r||e.includes("gpu")?t(e.replace(/[. ]/g,"_").toUpperCase()):e}(v,p)),o.default.createElement("p",null,t("RESOURCE_TYPE_SCAP"))),o.default.createElement("div",{className:f.default.item},o.default.createElement("div",null,d),o.default.createElement("p",null,t("USED"))),o.default.createElement("div",{className:f.default.item},o.default.createElement("div",null,(0,c.default)(n)?t("NO_LIMIT_TCAP"):n),o.default.createElement("p",null,t("RESOURCE_LIMIT"))),o.default.createElement("div",{className:f.default.item,style:{flex:3}},o.default.createElement("div",null,t("USAGE")),o.default.createElement(l.default,{value:Math.min(m,1),className:f.default.bar,rightText:n?"":t("NO_LIMIT_TCAP"),text:"".concat(t("USED")," ").concat(Number((100*m).toFixed(2)),"%")})))};r.default=d},4958:function(e,t,r){e.exports={quota:"_3aPySvZFwKu_aUOuXKtt74",item:"_1I77wNxk4MpwyW4BbGhuWc",bar:"_20tiwfV8cet9kU4Rdqy-5W"}},4959:function(e,t,r){e.exports={cluster:"_367EWtp2wSigDOnEmf2wJ1",content:"_3viW1x9EZrOJRuO9ZV0ET3",fold:"_1NbZfknGRDsuW3_iIyJJqu",actions:"oVUaKu42SlFyUhxdx-1fg",folder:"VIGCh0w9Q5Nq0WhR95pi-"}},4960:function(e,t,r){e.exports={title:"_20BGuNk4qt2X7yCCXLVwpk"}},4961:function(e,r,a){"use strict";a(15);var n=a(20);a(84),a(16),a(4),a(23),a(24),a(17),a(85),a(62),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,a(45),a(84),a(42),a(16),a(4),a(23),a(57),a(24),a(17),a(85),a(62);var o,c=n(a(36)),u=n(a(37)),l=n(a(55)),i=n(a(56)),s=n(a(51)),f=n(a(0)),d=a(239),p=n(a(63)),m=n(a(792)),h=n(a(4962));function v(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,a=(0,s.default)(e);if(t){var n=(0,s.default)(this).constructor;r=Reflect.construct(a,arguments,n)}else r=a.apply(this,arguments);return(0,i.default)(this,r)}}var y=(0,d.inject)("rootStore","projectStore")(o=(0,d.observer)(o=function(e){(0,l.default)(a,e);var r=v(a);function a(){return(0,c.default)(this,a),r.apply(this,arguments)}return(0,u.default)(a,[{key:"render",value:function(){var e=this.store.detail.name;return f.default.createElement("div",null,f.default.createElement(m.default,{icon:"log",title:t("LOG_COLLECTION"),description:t("DISK_LOG_COLLECTION_DESC"),tips:this.tips}),!this.disabledLoggingSideCar&&f.default.createElement(h.default,{namespace:e,actions:this.enableActions}))}},{key:"store",get:function(){return this.props.projectStore}},{key:"namespace",get:function(){return this.props.match.params.namespace}},{key:"cluster",get:function(){return this.props.match.params.cluster}},{key:"enableActions",get:function(){return globals.app.getActions({module:"project-settings",project:this.namespace,fedproject:!0,cluster:this.cluster})}},{key:"disabledLoggingSideCar",get:function(){return!(0,p.default)(globals.config.disabledLoggingSidecarNamespace)&&globals.config.disabledLoggingSidecarNamespace.includes(this.namespace)}},{key:"tips",get:function(){return[{title:t("COLLECT_LOGS_ON_VOLUMES_Q"),description:t("COLLECT_LOGS_ON_VOLUMES_A")}]}}]),a}(f.default.Component))||o)||o;r.default=y},4962:function(e,r,a){"use strict";a(15);var n=a(20);a(5),a(84),a(16),a(4),a(23),a(17),a(85),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,a(45),a(5),a(84),a(42),a(16),a(4),a(23),a(57),a(17),a(85);var o,c=n(a(36)),u=n(a(37)),l=n(a(55)),i=n(a(56)),s=n(a(51)),f=n(a(0)),d=n(a(3)),p=n(a(26)),m=n(a(74)),h=a(239),v=a(186),y=n(a(850)),g=n(a(789)),E=n(a(787)),S=n(a(437)),_=n(a(4963));function O(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,a=(0,s.default)(e);if(t){var n=(0,s.default)(this).constructor;r=Reflect.construct(a,arguments,n)}else r=a.apply(this,arguments);return(0,i.default)(this,r)}}var k=(0,h.observer)(o=function(e){(0,l.default)(a,e);var r=O(a);function a(){var e;(0,c.default)(this,a);for(var t=arguments.length,n=new Array(t),o=0;o0&&e.setState({serviceName:t[0].name},(function(){return e.fetchTracing()}))}))}}},{key:"renderOperations",value:function(){var e=this.state.query;return h.default.createElement("div",{className:P.default.operations},h.default.createElement(S.Select,{options:this.services,value:this.state.serviceName,prefixIcon:h.default.createElement(S.Icon,{name:"appcenter"}),onChange:this.handleServiceChange,valueRenderer:this.serviceRenderer}),h.default.createElement(C.default,{className:P.default.timeSelect,dark:!0,onChange:this.handleLookbackChange,showStep:!1,arrowIcon:"chevron-down"}),h.default.createElement(S.Select,{value:e.limit,options:this.limitOptions,onChange:this.handleLimitChange}),h.default.createElement(S.Button,{type:"flat",icon:"refresh",onClick:this.handleRefresh}))}},{key:"renderTracing",value:function(){var e=this.state.cluster,r=this.resourceStore,a=r.tracing,n=r.isTracingLoading,o=this.serviceStore.list,c=o.isLoading,u=o.data,l=this.getServiceMeshEnabled(e);return e&&l?!c&&(0,p.default)(u)?null:h.default.createElement(O.default,{loading:n,data:a.data,operations:this.renderOperations(),onItemClick:this.showDetailModal}):h.default.createElement(_.default,{image:"/assets/traffic-management.svg",title:t("TRACING_UNAVAILABLE"),desc:t("APPLICATION_GOVERNANCE_NOT_ENABLED")})}},{key:"render",value:function(){var e=this.props.projectStore.detail.clusters;return h.default.createElement("div",null,h.default.createElement(b.default,{value:this.state.cluster,options:e,onChange:this.handleClusterChange,extra:this.renderMicroServiceTip}),this.renderTracing(),h.default.createElement(k.default,{detail:this.state.selectItem,visible:this.state.showDetailModal,onCancel:this.hideDetailModal}))}},{key:"limitOptions",get:function(){return[{label:t("LAST_NUM_RECORDS",{num:5}),value:5},{label:t("LAST_NUM_RECORDS",{num:10}),value:10},{label:t("LAST_NUM_RECORDS",{num:20}),value:20},{label:t("LAST_NUM_RECORDS",{num:50}),value:50}]}},{key:"services",get:function(){return this.serviceStore.list.data.map((function(e){return{label:e.name,value:e.name,type:e.type}}))}}]),a}(h.default.Component))||o)||o;r.default=j},4983:function(e,t,r){e.exports={operations:"_2fBARiAJfc0bUaFE4VVXcr",timeSelect:"_7qmxRpeY2a6F31i4lij_w",tag:"_3CFHSBCbScJIVlfHH4u_w7"}},4984:function(e,r,a){"use strict";var n=a(20);a(12),a(109),a(5),a(11),a(6),a(18),a(16),a(9),a(13),a(10),a(4),a(23),a(24),a(17),a(62),a(7),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,a(12),a(109),a(45),a(5),a(11),a(6),a(18),a(28),a(42),a(16),a(34),a(15),a(9),a(13),a(10),a(4),a(22),a(23),a(57),a(24),a(17),a(62),a(7);var o=n(a(315)),c=n(a(43)),u=n(a(30));a(41);var l,i=n(a(44)),s=n(a(36)),f=n(a(37)),d=n(a(55)),p=n(a(56)),m=n(a(51)),h=a(186),v=n(a(63)),y=a(14),g=a(239),E=n(a(805)),S=n(a(0)),_=n(a(437)),O=n(a(318)),k=a(52),b=a(791),C=n(a(4985));function R(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,a)}return r}function T(e){for(var t=1;t6&&p.default.createElement(g.Icon,{name:"more",className:k.default.more,size:28,color:f>6?{primary:"#f5a623",secondary:"#f5a623"}:{primary:"#479e88",secondary:"#479e88"}})),o&&p.default.createElement("div",{className:k.default.control},p.default.createElement(g.Icon,{name:"add",type:"light",size:24,clickable:!0,onClick:this.handleAdd}),p.default.createElement(g.Icon,{name:"substract",type:"light",size:24,clickable:!0,onClick:this.handleSubStract}))))}}]),r}(p.Component))||c;t.default=C},4987:function(e,r,a){"use strict";a(15);var n=a(20),o=a(157);a(5),a(827),a(18),a(16),a(4),a(23),a(17),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,a(45),a(5),a(827),a(18),a(42),a(16),a(4),a(22),a(23),a(57),a(17);var c=n(a(43));a(41);var u,l=n(a(44)),i=n(a(36)),s=n(a(37)),f=n(a(55)),d=n(a(56)),p=n(a(51)),m=o(a(0)),h=a(14),v=a(239),y=n(a(26)),g=n(a(800)),E=a(186),S=n(a(814)),_=n(a(804)),O=a(434),k=n(a(325)),b=n(a(3)),C=n(a(1250));function R(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,a=(0,p.default)(e);if(t){var n=(0,p.default)(this).constructor;r=Reflect.construct(a,arguments,n)}else r=a.apply(this,arguments);return(0,d.default)(this,r)}}var T=(0,v.observer)(u=function(e){(0,f.default)(a,e);var r=R(a);function a(){var e;(0,i.default)(this,a);for(var t=arguments.length,n=new Array(t),o=0;o6&&m.default.createElement(E.Icon,{name:"more",className:C.default.more,size:28,color:f>6?{primary:"#f5a623",secondary:"#f5a623"}:{primary:"#479e88",secondary:"#479e88"}}))),m.default.createElement("div",{className:C.default.weight,onClick:this.stopPropagation},m.default.createElement(E.Icon,{name:"add",type:"light",size:20,clickable:!0,onClick:this.handleAdd}),m.default.createElement("span",{className:C.default.value},m.default.createElement("span",{className:C.default.spanText},this.getWeight),m.default.createElement("span",{className:C.default.subText}," ",t("WEIGHT"))),m.default.createElement(E.Icon,{name:"substract",type:"light",size:20,clickable:!0,onClick:this.handleSubStract})))}},{key:"getWeight",get:function(){var e=this.props,t=e.store,r=e.cluster;return(0,y.default)(t.deployedScheduleTemplate,"spec.clusters.".concat(r.name,".weight"),0)}}]),a}(m.Component))||u;r.default=T},4988:function(e,r,a){"use strict";a(15);var n=a(157),o=a(20);a(16),a(27),a(4),a(23),a(17),a(110),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var c=o(a(36)),u=o(a(37)),l=o(a(55)),i=o(a(56)),s=o(a(51));a(45),a(42),a(16),a(27),a(4),a(23),a(57),a(24),a(193),a(17),a(110);var f=n(a(0)),d=o(a(1102)),p=o(a(1250));function m(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,a=(0,s.default)(e);if(t){var n=(0,s.default)(this).constructor;r=Reflect.construct(a,arguments,n)}else r=a.apply(this,arguments);return(0,i.default)(this,r)}}var h=function(e){(0,l.default)(a,e);var r=m(a);function a(e){var t;(0,c.default)(this,a),(t=r.call(this,e)).handleScale=function(e){var r=e.target.value;(/^\+?[1-9][0-9]*$/.test(r)||""===r)&&t.setState({desire:r,seconds:5},(function(){t.showConfirm()}))},t.showConfirm=function(){t.setState({showConfirm:!0},(function(){t.startTimer()}))},t.startTimer=function(){t.timer&&t.stopTimer(),t.updateTime()},t.stopTimer=function(){clearTimeout(t.timer),t.timer=null},t.updateTime=function(){var e=t.state.seconds;t.timer=setTimeout((function(){e>0?t.setState({seconds:e-1},(function(){t.updateTime()})):(t.handleConfirm(),t.handleCancel())}),1e3)},t.handleConfirm=function(){t.props.onChange(t.state.desire),t.hideConfirm()},t.handleCancel=function(){t.setState({desire:t.props.desire},(function(){t.hideConfirm()}))},t.hideConfirm=function(){t.setState({showConfirm:!1},(function(){t.stopTimer()}))};var n=e.desire;return t.state={prevPropDesire:n,desire:n,seconds:5,showConfirm:!1},t}return(0,u.default)(a,[{key:"componentWillUnmount",value:function(){this.stopTimer()}},{key:"render",value:function(){var e=this.props.name,r=this.state,a=r.desire,n=r.showConfirm,o=r.seconds;return f.default.createElement(f.default.Fragment,null,f.default.createElement("div",{className:p.default.replicasInput},f.default.createElement("input",{name:e,value:a,onChange:this.handleScale})),f.default.createElement(d.default,{visible:n,width:400,title:t("ADJUST_REPLICAS"),content:t.html("REPLICAS_SCALE_NOTIFY_CONTENT",{num:Number(a)}),cancelText:t("REPLICAS_SCALE_NOTIFY_CANCEL"),confirmText:t("REPLICAS_SCALE_NOTIFY_CONFIRM",{seconds:o}),onCancel:this.handleCancel,onConfirm:this.handleConfirm}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){if(e.desire!==t.prevPropDesire){var r=(a=e.desire,Number(a||0));return{prevPropDesire:r,desire:r}}var a;return null}}]),a}(f.Component);r.default=h},4989:function(e,t,r){e.exports={deployment_codeResource:"_2v3CnaMI4WQFjBr1rH10IK"}},4990:function(e,t,r){e.exports={item:"_3xQ6tn2XzgaF-fxJRZeGll",more:"_2kE7aMEkAa23Y-oMSAo89T"}},4991:function(e,r,a){"use strict";var n=a(20);a(12),a(109),a(5),a(11),a(6),a(18),a(16),a(9),a(13),a(10),a(4),a(23),a(24),a(17),a(62),a(7),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,a(12),a(109),a(45),a(5),a(11),a(6),a(18),a(28),a(42),a(16),a(34),a(15),a(9),a(13),a(10),a(4),a(22),a(23),a(57),a(24),a(17),a(62),a(7);var o=n(a(315)),c=n(a(43)),u=n(a(30));a(41);var l,i=n(a(44)),s=n(a(36)),f=n(a(37)),d=n(a(55)),p=n(a(56)),m=n(a(51)),h=a(186),v=n(a(63)),y=a(14),g=a(239),E=n(a(805)),S=n(a(0)),_=n(a(437)),O=n(a(318)),k=a(52),b=a(791),C=n(a(4992));function R(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,a)}return r}function T(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};return d.default.createElement("div",{className:y.default.tlsWrapper},d.default.createElement("div",{className:y.default.tlsItem},d.default.createElement("div",{className:"h6"},t("CREDENTIAL_SI")),d.default.createElement("pre",null,this.convert(e["tls.crt"],"tls.crt"))),d.default.createElement("div",{className:y.default.tlsItem},d.default.createElement("div",{className:"h6"},t("PRIVATE_KEY_TCAP")),d.default.createElement("pre",null,this.convert(e["tls.key"],"tls.key"))))}},{key:"renderImageRepositorySecret",value:function(e){var r=this,a=e[".dockerconfigjson"];return a&&a.auths?d.default.createElement("div",{className:y.default.imageWrapper},d.default.createElement("ul",null,Object.entries(a.auths).map((function(e){var n=(0,c.default)(e,1)[0];return d.default.createElement("li",{key:n},d.default.createElement("div",{className:"h6"},d.default.createElement(m.Icon,{name:"earth"}),n),d.default.createElement("ul",null,d.default.createElement("li",null,d.default.createElement("span",null,t(".dockerconfigjson"),":"),d.default.createElement("span",null,r.convert(JSON.stringify(a),".dockerconfigjson")))))})))):null}},{key:"renderDefault",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return d.default.createElement("div",{className:y.default.defaultWrapper},d.default.createElement("ul",null,Object.entries(t).map((function(t){var r=(0,c.default)(t,2),a=r[0],n=r[1];return d.default.createElement("li",{key:a},d.default.createElement("span",null,a,":"),d.default.createElement("span",null,d.default.createElement("pre",null,e.convert(n,a))))}))))}},{key:"renderBasicAuth",value:function(){var e=this,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return d.default.createElement("div",{className:y.default.defaultWrapper},d.default.createElement("ul",null,Object.entries(r).map((function(r){var a=(0,c.default)(r,2),n=a[0],o=a[1];return d.default.createElement("li",{key:n},d.default.createElement("span",null,t(n.toUpperCase()),":"),d.default.createElement("span",null,d.default.createElement("pre",null,e.convert(o,n))))}))))}},{key:"renderContent",value:function(e){if(!e.type)return null;var t=null;switch(e.type){case"kubernetes.io/tls":t=this.renderTLS(e.data);break;case"kubernetes.io/dockerconfigjson":t=this.renderImageRepositorySecret(e.data);break;case"kubernetes.io/basic-auth":t=this.renderBasicAuth(e.data);break;default:t=this.renderDefault(e.data)}return t}},{key:"renderOperations",value:function(){var e=this.state.showSecret;return d.default.createElement(m.Button,{type:"flat",icon:e?"eye-closed":"eye",onClick:this.changeSecretState})}},{key:"render",value:function(){var e=this.store.detail,r=void 0===e?{}:e;return d.default.createElement(h.default,{title:t("DATA"),operations:this.renderOperations()},this.renderContent(r))}},{key:"originData",get:function(){var e,t;return null!==(e=null===(t=this.store.detail._originData)||void 0===t?void 0:t.data)&&void 0!==e?e:{}}}]),a}(d.default.Component))||o)||o;r.default=E},5026:function(e,t,r){e.exports={defaultWrapper:"_2dy4CtwnVPBdVDSZHW9BOl",tlsWrapper:"iJYavjSaC9ppprl7BQSi8",tlsItem:"_2v7AIMJ0uI9fm8cKo5w1-x",imageWrapper:"_1Uipq-ALr1lKHarcyPzNTP"}},5027:function(e,r,a){"use strict";a(15);var n=a(20);a(12),a(109),a(5),a(16),a(4),a(23),a(24),a(17),a(62),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,a(12),a(109),a(45),a(5),a(28),a(42),a(16),a(4),a(23),a(57),a(24),a(17),a(62);var o,c=n(a(315)),u=n(a(36)),l=n(a(37)),i=n(a(55)),s=n(a(56)),f=n(a(51)),d=a(186),p=n(a(63)),m=a(14),h=a(239),v=n(a(805)),y=n(a(0)),g=n(a(437)),E=a(52),S=a(791),_=n(a(5028));function O(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,a=(0,f.default)(e);if(t){var n=(0,f.default)(this).constructor;r=Reflect.construct(a,arguments,n)}else r=a.apply(this,arguments);return(0,s.default)(this,r)}}var k=(0,h.inject)("rootStore")(o=(0,h.observer)(o=(0,S.trigger)(o=function(e){(0,i.default)(a,e);var r=O(a);function a(){var e;(0,u.default)(this,a);for(var n=arguments.length,o=new Array(n),c=0;c0&&void 0!==arguments[0]?arguments[0]:{};return d.default.createElement("div",{className:h.default.wrapper},d.default.createElement("ul",null,Object.entries(e).map((function(e){var t=(0,c.default)(e,2),r=t[0],a=t[1];return d.default.createElement("li",{key:r},d.default.createElement("div",{className:"h6"},r),d.default.createElement("pre",{className:h.default.value},a))}))))}},{key:"render",value:function(){var e=this.store,r=e.detail,a=e.isLoading;return d.default.createElement(m.default,{title:t("DATA"),loading:a},this.renderContent(r.data))}}]),a}(d.default.Component))||o)||o;r.default=y},5030:function(e,t,r){e.exports={wrapper:"_28vsYz12ZPwpoPNgzqPOo9",value:"-jWVKnn0uXD_hecvNvLnq"}},782:function(e,t,r){"use strict";var a=r(20),n=r(157);r(12),r(11),r(6),r(29),r(73),r(18),r(16),r(9),r(13),r(10),r(4),r(22),r(23),r(24),r(17),r(38),r(62),r(7),r(32),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r(12),r(45),r(11),r(6),r(29),r(73),r(18),r(28),r(42),r(16),r(34),r(15),r(9),r(13),r(10),r(4),r(22),r(23),r(57),r(24),r(17),r(38),r(62),r(7),r(32);var o=a(r(43)),c=a(r(30));r(41);var u,l=a(r(44)),i=a(r(36)),s=a(r(37)),f=a(r(55)),d=a(r(56)),p=a(r(51)),m=n(r(0)),h=a(r(74)),v=r(14),y=r(239),g=r(186),E=r(317),S=a(r(437)),_=a(r(438)),O=a(r(4923));function k(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,a)}return r}function b(e){for(var t=1;t + + + diff --git a/packages/bootstrap/assets/v3dist/locale-en.1838ad844cee4e01bf6a.json b/packages/bootstrap/assets/v3dist/locale-en.48d7a85f01548ffe2bf8.json similarity index 99% rename from packages/bootstrap/assets/v3dist/locale-en.1838ad844cee4e01bf6a.json rename to packages/bootstrap/assets/v3dist/locale-en.48d7a85f01548ffe2bf8.json index 3bc74b62330..cda92dcee56 100644 --- a/packages/bootstrap/assets/v3dist/locale-en.1838ad844cee4e01bf6a.json +++ b/packages/bootstrap/assets/v3dist/locale-en.48d7a85f01548ffe2bf8.json @@ -1 +1 @@ -{"DELETE_CUSTOM_SCALING_WITH_WORKLOAD":"Associated custom scaling policies will be deleted after the workload is deleted.","ENT_TITLE":"KubeSphere Enterprise","KS_QKCP_DESCRIPTION":"KubeSphere Enterprise is an enterprise-grade container platform developed by QingCloud based on the open-source KubeSphere platform.","ABOUT_KUBESPHERE_ENTERPRISE":"About KubeSphere Enterprise","KUBESPHERE_CLOUD_DESC":"KubeSphere Cloud builds a Kubernetes-centric digital ecosystem to provide customers with enterprise-level cloud-native services of high quality. It offers KubeSphere Backup, Inspector, and Lite to help you manage, protect, and deliver production-ready applications more efficiently.","APP_AUTHORIZED":"Authorized","APP_UNAUTHORIZED":"Unauthorized","APP_UNAUTHORIZED_DESC":"This app is unauthorized.","VIEW_EVENTS":"View Events","GPU_MEMORY":"Graphics memory","EDIT_TAGS":"Edit Tags","ADD_TAGS":"Add Tags","GPU_TEMP":"GPU Temperature","GPU_ENERGY_USAGE":"GPU Power (W)","GPU_ENERGY_NO_PERCENT_TCAP":"GPU Power","GPU_MEMORY_USAGE_STATUS":"Graphics Memory Usage","NODE_GPU_MEMORY_USAGED":"Used","NODE_GPU_MEMORY_UNUSAGED":"Available","ENT_CLUSTER_GATEWAY_DESC":"Set up and manage the configuration of the external network access gateway and service management in the cluster, workspace and project.","ENT_CLUSTER_ENABLE_GATEWAY_DESC":"Before creating a route, you need to enable the external network access portal, that is, the gateway. This step is to create the corresponding route controller to forward requests to the back-end service.","WORKSPACE_GATEWAY_PL":"Workspace Gateways","WORKSPACE_GATEWAY_NOT_ENABLED":"Workspace Gateway Not Enabled","ENT_WORKSPACE_ENABLE_GATEWAY_DESC":"The workspace gateway cannot be set on the cluster management page. If you need to set it, go to the corresponding workspace.","ENT_PROJECT_ENABLE_GATEWAY_DESC":"The project gateway cannot be set on the cluster management page. If you need to set it, go to the corresponding project.","OPENSEARCH_DESC":"You can use the OpenSearch log receiver to ingest log data into an OpenSearch database. To use this feature, you need to deploy OpenSearch in advance.","LOG_COLLECTION_OS_URL_TIPS":"IP address or hostname of the target OpenSearch instance.","LOG_COLLECTION_OS_USER_TIPS":"Username for accessing OpenSearch.","LOG_COLLECTION_OS_PASSWORD_TIPS":"Password for accessing OpenSearch.","BATCH_MANAGE":"Batch Manage","HAS_SAME_TAG":"The tag already exists. Please select another tag.","CLUSTER_REPEATED_TAGS_DESC":"The tag keys must be unique for each cluster.","CLUSTER_MAX_TAGS_DESC":"Each cluster is allowed to carry a maximum of 5 tags.","EMPTY_TAG_LABEL_DESC":"Please enter the tag key.","EMPTY_TAG_VALUE_DESC":"Please enter the tag value.","HAS_ADD_TAGS":"Added Tags","CLUSTER_TYPE_DESC":"Select a type to identify the purpose of the cluster.","DELETE_CLUSTER_SWIPE_DESC":"I understand the risks of this operation.","DELETE_CLUSTER_NOTIFICATION_CONFIGURAITON":"Delete all notification configuration data in the cluster","REMOVE_CLUSTER_TIP_C":"After the cluster is removed, multi-cluster configuration data in the cluster will not be cleared automatically. Uninstalling KubeSphere or deleting related resources may cause user data loss. You must manually clear the multi-cluster configuration data in the removed cluster by refering to the \"Remove a Member Cluster\" section in the KubeSphere Enterprise Cluster Management Guide.","CLUSTER_TAG":"Cluster Tag","CLUSTER_TAGS":"Cluster Tags","NO_CLUSTER_TAGS":"No Cluster Tag Found","NO_CLUSTER_TAGS_DESC":"Please create a cluster tag.","CLUSTER_TAG_ADD_HELP":"You can create tags if no tags meet the requirements.","CLUSTER_TAG_TOOLTIP_CONTENT":"Only one tag value of the same tag key can be bound on the same cluster. Each cluster can bind up to 5 tags. ","CLUSTER_LABEL":"Cluster ID","CLUSTER_LABEL_DESC":"Identifies the purpose of the cluster. ","CLUSTER_LABEL_TOOLTIP_CONTENT":"It is recommended to identify the cluster by label, and the \"cluster identification\" function will be removed in subsequent versions, please use it with caution. ","TAG_PL":"Tags","CREATE_TAGS":"Create Tags","CREATE_TAGS_DESC":"The keys of different tags can be the same.","ENT_CLUSTER_TAG_DESC":"The key and value cannot be empty. The maximum length is 63 characters.","CLUSTER_TAG_EMPTY_DESC":"Please add a tag.","DELETE_MULTIPLE_TAGS":"Delete Multiple Tags","DELETE_TAG":"Delete Tag","DELETE_CLUSTER_TAG_DESC":"Deleted tags will be removed from all clusters.","DELETE_CLUSTER_TAG_CONFIRM_DESC":"Please enter the tag key and value {resource} to confirm that you understand the risks of this operation.","DELETE_CLUSTER_TAGS_CONFIRM_DESC":"Please enter the tag keys and values {resource} to confirm that you understand the risks of this operation.","EDIT_TAG":"Edit Tag","ADD_TO_CLUSTERS":"Add to Clusters","ADD_TAG_TO_CLUSTERS":"Add Tag to Clusters","ADD_TAG_DESC":"The tag keys must be unique for each cluster. New tags do not overwrite existing tags.","ADD_TAG_SUCCESSFUL":"The tag was added successfully.","REMOVE_FROM_CLUSTERS":"Remove from Clusters","REMOVE_TAG_FROM_CLUSTERS":"Remove Tag from Clusters","REMOVE_TAG":"Remove Tag","REMOVE_TAG_DESC":"Are you sure you want remove the tag from the cluster?","REMOVE_TAG_SUCCESSFUL":"The tag was removed successfully.","NO_CLUSTER_FOUND":"No Cluster Found","NAME_DESC_LENGTH":"The name can contain only lowercase letters, numbers, and hyphens (-), and must start and end with a lowercase letter or number. The maximum length is {length} characters.","INVALID_NAME_DESC_LENGTH":"Invalid name. The name can contain only lowercase letters, numbers, and hyphens (-), and must start and end with a lowercase letter or number. The maximum length is {length} characters.","DEFAULT_IMAGE_REGISTRY":"Default image registry","DEFAULT_IMAGE_REGISTRY_TCAP":"Default Image Registry","SET_AS_DEFAULT":"Set as Default","SET_AS_DEFAULT_REGISTRY_DESC":"Set the image registry as the default image registry. Unless otherwise specified, the system uses images from the default image registry to create containers. Only one default image registry is allowed in each project.","SET_DEFAULT_REGISTRY_SUCCESSFUL":"The registry was set as the default image registry successfully.","ACTIVATION_CONDITION_SCAP":"Activation condition","ALERTING_RULE_NAME":"Alerting Name","REFERENCE":"Reference","NO_MONITOR_METRIC":"The alert rule is inactive and no monitoring data is available.","DISABLE_MULTIPLE_ALERTING_POLICIES":"Disable Multiple Rule Groups","ENABLE_ALERTING_POLICY":"Enable Rule Group","ENABLE_MULTIPLE_ALERTING_POLICIES":"Enable Multiple Rule Groups","DISABLE_ALARM_TIP":"After the rule group is disabled, the system will stop generating alerts for the monitored resources. Exercise caution when performing this operation.","RESET_MULTIPLE_ALERTING_POLICIES":"Reset Multiple Rule Groups","RESET_MULTIPLE_ALERTING_POLICIES_DESC":"Are you sure you want to reset the rule groups {name}?","RESET_SUCCESSFUL":"Reset successfully.","BUILT_IN_POLICIES_TOOLTIP":"After the Whizard Observability Center is enabled, please log in as a user assigned the platform-admin role and manage default rule groups in the Whizard Observability Center.","Rule":"Rule","RULES_LIST_EMPTY":"Please set an alert rule.","DURATION_REQUIRED":"Please set the duration.","OPERATOR_REQUIRED":"Please set the operator.","NETWORK_BANDWIDTH":"Network Bandwidth","FUNCTION_UPGRADE":"Enhanced Features","FUNCTION_UPGRADE_DESC":"This cluster does not support disabling and migration of pod IP pools and editing of the Overlay mode. If you need to use these features, please upgrade the cluster to KubeSphere Enterprise 3.4.0 or later.","IPPOOL_OVERLAY_MODE":"Overlay Mode","IPPOOL_BLOCK_SIZE":"IP Pool Block Size","EDIT_OVERLAY":"Edit Overlay Mode","FEATURE_UPGRADE":"Feature Upgrade","IPPOOL_USED_TIP":"The pod IP pool is used by pods, so you cannot assign a workspace or delete the IP pool. If there are pods using the pod IP pool, you need to assign other pod IP pools to the pods or delete the pods.","IP_POOL_RANGE":"IP Pool Range","EDIT_POD_IP_POOL":"Edit Pod IP Pool","ENTER_NETWORK_SEGMENT":"Please enter a network segment.","POD_IP_POOL_IP_RANGE":"The IP range of the pod IP pool.","POD_IP_POOL_NAME_DESC":"It can contain only lowercase letters, numbers, and hyphens (-), and must start and end with a number or lowercase letter. The maximum length is 63 characters.","IPIP_MODE":"IPIP Mode","IPIP_MODE_REQUIRED":"Please select an IPIP mode.","IPIP_MODE_DESC":"Create an IP in IP tunnel on each node to enable communication between containers. You can either set the IPIP or the VXLAN mode. If you set the values of the IPIP and the VXLAN modes to Never, BGP mode will be used.","CONFIGURATION_MODE":"Configuration Mode","VXLAN_MODE":"VXLAN Mode","VXLAN_MODE_REQUIRED":"Please select a VXLAN mode.","VXLAN_MODE_DESC":"Create a VXLAN tunnel on each node to enable communication between containers. You can either set the IPIP or the VXLAN mode. If you set the values of the IPIP and the VXLAN modes to Never, BGP mode will be used.","IP_POOL_BLOCK_SIZE_DESC":"The CIDR size of the block used to allocate IP addresses.","NAT_OUTGOING_DESC":"Collapse IPPool communication through NAT","OPEN_NAT_OUTGOING":"Open NAT outgoing","CLOSE_NAT_OUTGOING":"Close NAT outgoing","OPEN":"Open","OPENED":"Opened","CLOSED":"Closed","OPENED_SUCCESSFUL":"Open Successful","CLOSED_SUCCESSFUL":"Close Successful","SELECT_NODE_DES":"Use the label selector to match the appropriate nodes for the IP pool.","SELECT_LABEL_ALL_RESOUCE":"Matches all resources in the tag selection range.","ALL_DISABLED":"Disable All","DISABLE_SELECT_NODE":"Disable Select Node","NODE_RANGE":"Node Range","LABEL_SELECT":"Label Select","EDIT_OVERLAY_MODE":"Edit Overlay Mode","DISABLE_POD_IP_POOL":"Disable Pod IP Pool","DISABLE_POD_IP_POOL_DESC":"After disabling the container group IP pool, the allocation of IP addresses will not continue, nor will it affect the network of container groups that have already been assigned IP addresses. When migrating container group IPs, the number of available addresses in the new IP pool cannot be less than the IP addresses used by the current IP pool. After the migration is completed, the workload will be restarted. Disabling the ip pool automatically unbinds the project. Exercise caution when performing this operation.","MIGRATE_POD_IP_POOL":"Migrate Pod IP Pool","MIGRATE_POD_IP_POOL_DESC":"Migrate the pod that has been assigned an IP address to a new pod IP pool.","SELECT_POD_IP_POOL":"Please select a pod IP pool.","MIGRATE_POD_IP_POOL_TIP":"The IP address of the pod will be allocated according to the selected pod IP pool.","SELECT_POD_IP_POOL_DESC":"Please select a pod IP pool.","IPPOOL_AUTO_ASSIGN":"Automatic allocation","IPPOOL_IS_AUTO_ASSIGN":"Automatically allocate or not","CREATED_AGO":"Created {diff}","UPDATED_AGO":"Updated {diff}","GPU_USAGE_SCAP":"GPU usage","GPU_MEMORY_USAGE_SCAP":"Graphics memory usage","QUOTA_USAGE":"Usage","PROJECT_CONFIG_QUOTAS_TIP":"Only data of projects with resource limits and requests is displayed.","APPLICATION_CLUSTER_QUOTA_STATISTICS":"Cluster Quota Statistics","CPU_QUOTA":"CPU Quota","MEMORY_QUOTA":"Memory Quota","SORT_BY_NODE_GPU_UTILIZATION":"Sort by GPU usage (%)","SORT_BY_NODE_GPU_MEMORY_UTILIZATION":"Sort by graphics memory usage (%)","SORT_BY_NAMESPACE_GPU_USAGE":"Sort by GPU usage","SORT_BY_NAMESPACE_GPU_MEMORY_USAGE":"Sort by graphics memory usage","SORT_BY_WORKLOAD_GPU_USAGE":"Sort by GPU usage","SORT_BY_WORKLOAD_GPU_MEMORY_USAGE":"Sort by graphics memory usage","SORT_BY_WORKSPACE_GPU_USAGE":"Sort by GPU usage","SORT_BY_WORKSPACE_GPU_MEMORY_USAGE":"Sort by graphics memory usage","SORT_BY_NODE_GPU_USAGE":"Sort by GPU usage","SORT_BY_NODE_GPU_MEMORY_USAGE":"Sort by graphics memory usage","SORT_BY_CLUSTER_GPU_USAGE":"Sort by GPU usage","SORT_BY_CLUSTER_GPU_MEMORY_USAGE":"Sort by graphics memory usage","NODE_RESOURCE_USAGE":"Node Resource Usage","USED_VALUE_CORES_PERCENTAGE":"Used: {value, plural, =1 {1 core} other {# cores}} ({percentage})","USED_VALUE_UNIT_PERCENTAGE":"Used: {value} {unit} ({percentage})","TOTAL_VALUE_CORES":"Total: {value, plural, =1 {1 core} other {# cores}}","TOTAL_VALUE_UNIT":"Total: {value} {unit}","ENT_ENABLE_GATEWAY_TIP":"To use the gateway, please configure the gateway in the cluster, workspace or project.","ANNOTATION_FORMAT_DESC":"The annotation key can contain only letters, numbers, hyphens (-), underscores (_), slashes (/), and dots (.), and must start and end with a letter or number. The maximum length is 63 characters (if the key contains a domain name, the maximum length is 253 characters).","BLOCK":"Block","DRIVER":"Driver","DRIVER_REQUIRED":"Please enter a driver","DRIVER_FORMAT_ERROR":"Driver format error, only lowercase letters, numbers, hyphens and dots are supported","DRIVER_PLACEHOLDER":"For example: csi.example.com","FSTYPE_PLACEHOLDER":"For example: ext4","VOLUME_ATTRIBUTES":"Volume Attributes","NODE_EXPAND_KEY":"Node Expand Key","NODE_PUBLISH_KEY":"Node Publish Key","NODE_STAGING_KEY":"Node Staging Key","CONTROLLER_EXPAND_KEY":"Controller Expand Key","CONTROLLER_PUBLISH_KEY":"Controller Publish Key","PATH_TYPE":"Path Type","ANY_PATH":"Any path, no need to check the target path","DIRECTORY_OR_CREATE":"A directory, if it does not exist, create it automatically","FILE_OR_CREATE":"A file, if it does not exist, create it automatically","DIRECTORY_EXIST":"An existing directory","FILE_EXIST":"An existing file","SOCKET_EXIST":"An existing socket","CHARACTER_DEVICE_EXIST":"An existing character device","BLOCK_DEVICE_EXIST":"An existing block device","SERVER_IP_ADDRESS":"Server IP Address","SECRET_INFO":"Secret Information","BIND_EXISTING_PVC":"Bind existing persistent volume","BIND_EXISTING_PVC_DESC":"Select an existing persistent volume to create a volume.","PV_STATUS_FREED":"Released","PV_EMPTY_DESC":"If no persistent volume meets the requirements, please contact the cluster administrator to create one.","PLEASE_SELECT_PERSISTENT_VOLUME":"Please select a persistent volume","ADMIN_CREATE_PV_DESC":"If no persistent volume meets the requirements, you can create a persistent volume.","UNCLASSIFIED":"Unclassified","FILE_STORAGE":"File Storage","BLOCK_STORAGE":"Block Storage","storageclasses":"Storage Classes","EDGE_GPU_MEMORY_USAGE_SCAP":"GPU memory usage","NPU_USAGE_SCAP":"NPU usage","NPU_MEMORY_USAGE_SCAP":"NPU memory usage","NPU_USAGE":"NPU usage","NPU_MEMORY_USAGE":"NPU memory usage","EDGE_GPU_MEMORY_USAGE":"GPU memory usage","EDGE_GPU_MEMORY_UTILIZATION":"GPU memory usage (%)","EDGE_GPU_MEMORY_USAGE_STATUS":"GPU memory usage status","EDGE_NODE_GPU_MEMORY_USAGED":"Memory used,","EDGE_NODE_GPU_MEMORY_UNUSAGED":"Free video memory","NPU_TEMP":"NPU temperature","NPU_ENERGY_NO_PERCENT_TCAP":"NPU Power","NPU_VOLTAGE":"NPU voltage","NPU_MEMORY_USAGE_STATUS":"NPU video memory usage status","EDGE_NODE_NPU_MEMORY_USAGED":"NPU video memory used,","EDGE_NODE_NPU_MEMORY_UNUSAGED":"Unused NPU video memory,","NPU_HEALTH_STATUS":"NPU health status","APPLICATION_RESOURCE_QUOTAS":"Application Resource Quotas","UNAUTHORIZED_FEATURE":"Unauthorized Feature","UNAUTHORIZED_FEATURE_DESC":"This feature is unauthorized. Please update the license to use this feature.","ADMIN_INACTIVATED_LICENSE_DESC":"KubeSphere Enterprise is not activated. Please activate KubeSphere Enterprise.","INACTIVATED_LICENSE_DESC":"KubeSphere Enterprise is not activated. Please contact a platform administrator to activate KubeSphere Enterprise.","ADMIN_SUB_EXPIRED_LICENSE_DESC":"The subscription has expired. To try the full version of KubeSphere Enterprise, update the license.","SUB_EXPIRED_LICENSE_DESC":"The subscription has expired. Please contact a platform administrator to update the license.","ADMIN_MA_EXPIRED_LICENSE_DESC":"The warranty has expired.","MA_EXPIRED_LICENSE_DESC":"The warranty has expired. Please contact a platform administrator to extend the warranty.","ADMIN_UPDATE_LICENSE_DESC":"The {type} service will expire in {day, plural, =1 {1 day} other {# days}}. ","UPDATE_LICENSE_DESC":"The {type} service will expire in {day, plural, =1 {1 day} other {# days}}. To try the full version of KubeSphere Enterprise, contact a platform administrator to update the license.","ADMIN_OVER_RESOURCE_LICENSE_LIMIT":"The managed resources exceed the scope of authorization, so you cannot manage existing resources and create new resources. To try the full version of KubeSphere Enterprise, update the license.","OVER_RESOURCE_LICENSE_LIMIT":"The managed resources exceed the scope of authorization, so you cannot manage existing resources and create new resources. To try the full version of KubeSphere Enterprise, contact a platform administrator to update the license.","ACTIVATE":"Activate","ADMIN_AUTHORIZED_INVALID_LICENSE_DESC":"Invalid license. Please update the license or contact KubeSphere technical support.","AUTHORIZED_INVALID_LICENSE_DESC":"Invalid license. Please contact a platform administrator to update the license.","EXPIRED_INVALID_LICENSE_DESC":"The license has expired. Please contact a platform administrator to update the license.","ADMIN_EXPIRED_INVALID_LICENSE_DESC":"The license has expired. Please update the license.","PLATFORM_FEATURES":"Platform Features","RADON_DB_FEATURES":"RadonDB Features","PASSWORD_CHARACTERS":"Contain at least 1 special character (~!@#$%^&*()-_=+\\|[{}];:'\",<.>/? or space).","I_AGREE_TO_THE":"I agree to the","TITLE_USERNAME":"{title} Username","TITLE_LOG_IN":"{title} Log In","NOTIFICATION_SUBSCRIPTION":"Notification Subscription","NOTIFICATION_SUBSCRIPTION_LOW":"Notification Subscription","NOTIFICATION_SUBSCRIPTION_DESC":"You can configure multiple recipients with different filter conditions for the same notification channel. ","NOTIFICATION_RECEIVER_EMPTY_DESC":"A notification subscription can be created. ","EDIT_NOTIFICATION_SUBSCRIPTION":"Edit Notification Subscription","CREATE_NOTIFICATION_SUBSCRIPTION":"Create Notification Subscription","NOTIFICATION_SUBSCRIPTION_DETAIL":"Notification Subscription Details","NOTIFICATION_SUBSCRIPTION_TOTAL":"Number of subscription accounts","NOTIFICATION_SUBSCRIPTION_ACCOUNT":"Notification Subscription Account","NOTIFICATION_EMAIL_SUBSCRIPTION_DESC":"Email notification subscription settings can be set by going to the notification subscription settings page. ","ADD_EMAIL_NOTIFICATION_SUBSCRIPTION":"Add email notification subscription","NOTIFICATION_RECEIVER_STATUS":"Notification reception status","NOTIFICATION_RECEIVER":"Notification receipt","NOTIFICATION_SUBSCRIPTION_PL":"Notification Subscription","NOTIFICATION_SUBSCRIPTION_EMPTY_DESC":"Please crate a notification subscription","NOTIFICATION_ENABLED":"Notification Enabled","NOTIFICATION_DISABLED":"Notification Disabled","ENABLE_SUCCESSFUL":"Enabled successfully.","NODE_TARGET_REPEAT":"Repeated monitoring target. Please select another monitoring target.","DEPLOYMENTS_VALUES":"Deployments: {values}","STATEFULSETS_VALUES":"Statefulsets: {values}","DAEMONSETS_VALUES":"Daemonsets: {values}","WORKLOADS_VALUES":"Workloads: {values}","RULE_NAME_REQUIRED":"Please enter a rule name.","MONITOR_TARGET_EMPTY":"Please select a monitoring target.","ALARM_TARGET_REPEAT":"Monitoring targets cannot be duplicated. Please select another monitoring target.","CLUSTER_FIELD_EMPTY":"Please select a cluster.","SELECT_A_TARGET_NODE":"Please select a node.","SET_NAMESPACE_BELONGS_TO":"Please select a project.","NAME_SPACE_REPEAT":"Projects cannot be duplicated. Please select another project.","THRESHOLD_INVALID":"Please enter a valid metric threshold.","SEVERITY_REQUIRED":"Please select an alert severity.","ALERT_RULE_REQUIRED":"Please enter a rule expression.","MESSAGE_REQUIRED":"Please enter message summary.","RULE_LABEL_SETTING":"Label setting","RULE_LABEL_SETTING_DESC":"Filter conditions can be specified in the receiver configuration to filter related labels. ","INCORRECT_KEY_DESC":"The key value is incorrect","MONITOR_TARGET_CLUSTER_DELETED_DESC":"The selected cluster contains a cluster that has been removed, please select again","CLUSTER_DELETED":"The cluster has been removed","DATA_ACCESS":"Data Access","DATA_QUERY":"Data Query","LONG_TERM_STORAGE":"Long-Term Storage","RULE_CALCULATION":"Ruler","CONTAINER_QUOTA":"Container Quotas","GATEWAY_COMPONENT_LOW":"Store Gateway","COMPONENT_REPLICA_COUNT":"Component Replicas","REPLICA_DESC":"Set the number of replicas of {resource}, and the default value is {default}.","DATA_ROUTER":"Router","DATA_RETENTION_LOW":"data rentetion","DATA_RETENTION_REPLICA_COUNT":"Data Retention Replicas","ROUTER_COMPONENT_LOW":"Router","LOCAL_STORAGE":"Local Storage","LOCAL_STORAGE_LOW":"local storage","LOCAL_STORAGE_TIME":"Local Data Storage Duration (Days)","LOCAL_STORAGE_TIME_DESC":"Set the storage duration of local data. The value at least 3, and the default value is 7.","LOCAL_STORAGE_ERROR_MESSAGE":"The number of replicas of the local storage component cannot be smaller than the number of data retention replicas.","BASIC_SETTING":"Basic Settings","CACHE_SETTING":"Cache Settings","QUERY_COMPONENT_LOW":"query component","CACHE_COMPONENT_LOW":"cache component","LONG_TERM_STORAGE_TIPS":"Please configure the parameters of object storage first, and then configure the parameters of the gateway, period, and downsampling.","STORAGE_NOT_ENABLED":"Long-term storage not enabled","STORAGE_ENABLE_GATEWAY_DESC":"After enabling long-term storage, you can configure component parameters for object storage, gateway, retention period, and downsampling.","OBJECT_STORAGE":"Object Storage","OBJECT_STORAGE_TIPS":"Please configure the parameters of the object storage first.","COMPACTOR":"Compator","STORE_GATEWAY":"Store Gateway","COMPRESSION_DOWNSAMPLING":"Compression and Downsampling","BUCKET":"Bucket","BUCKET_NAME_DESC":"The name of the s3 object storage bucket.","BUCKET_NAME_EMPTY_TIP":"Please enter the bucket name.","REGION":"Region","REGION_DESC":"The geographic region where you created the bucket.","ENDPOINT_DESC":"The AWS S3 object storage address to connect to.","ENDPOINT_EMPTY_TIP":"Please enter the endpoint.","ACCESS_KEY":"Access Key","ACCESS_KEY_DESC":"AWS account access key ID.","ACCESS_KEY_EMPTY_TIP":"Please enter the Access Key.","SECRET_KEY_DESC":"The secret associated with the AWS Access Key ID.","SECRET_KEY_EMPTY_TIP":"Please enter the Secret Key.","HTTP_PROTOCOL":"HTTP protocol","HTTP_PROTOCOL_DESC":"Use of insecure HTTP protocol.","ADD_STORAGE_CLASS":"Add storage class","ADD_STORAGE_CLASS_DESC":"Add user metadata for object storage.","OBJECT_STORAGE_PARAMETERS":"Object Storage Parameters","HTTP_CONFIGURATION":"HTTP configuration","HTTP_CONFIGURATION_DESC":"Configure the HTTP client that the receiver uses to communicate with the HTTP-based API service.","TLS_CERTIFICATE":"TLS certificate","TLS_CERTIFICATE_VERIFY":"Verify TLS certificate","TLS_CERTIFICATE_VERIFY_DESC":"Prove your identity or indicate that you are authorized to access an online service by submitting a digital certificate.","TLS_CONNECTION":"TLS connection","CA_CERTIFICATE_DESC":"The CA file used to verify the server certificate.","CERT_CERTIFICATE":"Cert file","CERT_CERTIFICATE_DESC":"Certificate file for client certificate authentication to the server.","KEY_FILE":"Key","KEY_FILE_DESC":"The key file used for client certificate authentication to the server.","SERVER_NAME_DESC":"ServerName extension to indicate the name of the server.","SERVER_CERTIFICATE_VERFICATION":"Server certificate verification","SERVER_CERTIFICATE_VERFICATION_DESC":"Prove your identity or indicate that you are authorized to access an online service by submitting a digital certificate.","RETENTION_RAW":"Raw data storage duration (days)","RETENTION_RAW_DESC":"Raw data storage duration. The raw data will be deleted after the duration expires.","RETENTION_FIVE_MIN":"5m downsampled data storage duration (days)","RETENTION_FIVE_MIN_DESC":"Specifies the data storage duration for downsampling to 5-minute intervals of data points.","RETENTION_ONE_HOUR":"1h downsampled data storage duration (days)","RETENTION_ONE_HOUR_DESC":"Specifies the data storage duration for downsampling to 1-hour intervals of data points.","DISABLE_STORAGE":"Disable long-term storage","DISABLE_STORAGE_DESC":"Are you sure to disable long term storage? After disabling, the object storage configuration will be removed, and the monitoring data will be retained but no longer queried.","ALERT_MANAGEMENT":"Alert Management","SELECT_CLUSTER":"Select Clusters","CUSTOM_PANEL_DESC":"Select clusters to be monitored.","WHIZARD_MONITORING.BUILT_IN_ALERTING_PL":"Built-in Alerts","WHIZARD_MONITORING.CUSTOM_ALERTING_PL":"Custom Alerts","WHIZARD_MONITORING.RESOURCE_RANKING_PL":"Resource Ranking","WHIZARD_MONITORING.RESOURCE_RANKING_DESC":"Resource Ranking displays the rankings of cluster resource usage.","WHIZARD_MONITORING.RESOURCE_MONITORING":"Resource Monitoring","WHIZARD_MONITORING.MULTI_CLUSTER_MONITOR":"Multi-cluster Monitoring","WHIZARD_MONITORING.PACK_UP":"Collapse","WHIZARD_MONITORING.UNFOLD":"Expand","WHIZARD_MONITORING.COLLAPSE_CLUSTER_LIST":"Collapse cluster list","WHIZARD_MONITORING.UNFOLD_CLUSTER_LIST":"Expand cluster List","WHIZARD_MONITORING.RESOURCE_FILTER":"Resource Query","WHIZARD_MONITORING.OBSERVABILITY_ALL_CLUSTERS":"All Clusters","WHIZARD_MONITORING.SUCCEEDED":"Succeeded","PERSISTENT_VOLUME_CLAIM_LOW_PL":"Persistent volume claims","GRAPHICS_MEMORY_USAGE":"Graphics Memory Usage","QUOTA_REQUEST":"Request","QUOTA_LIMIT":"Limit","QUOTA_TOTAL":"Total","CPU_QUOTA_USAGE":"Allocated CPU Resource","MEMORY_QUOTA_USAGE":"Allocated Memory Resource","QUOTA_ALLOCATED":"Allocated","VALUE_CORES":"{value, plural, =1 {1 core} other {# cores}}","VALUE_UNIT":"{value} {unit}","ALLOCATED_TOTAL":"Allocated/Total","CLUSTER_ROLES_AND_MEMBERS":"Cluster Members and Roles","CLUSTER_MEMBER_SCAP":"Cluster member","CLUSTER_MEMBERS_SCAP":"Cluster members","CLUSTER_ROLE_SCAP":"Cluster role","CLUSTER_ROLES_SCAP":"Cluster roles","OBSERVABILITY_CENTER":"Whizard Observability Center","DISTRIBUTED_OBSERVABILITY_CENTER_DESC":"Unified monitoring dashboard that provides metrics of all clusters managed by the platform.","GLOBAL_ALERTS":"Global Alerts","GLOBAL_ALERTS_TOOLTIP":"Only the alarms of the selected cluster are collected","NONE_ALERT":"No Alert Found","ALERT_EMPTY_DESC":"No global alert is found in the clusters.","SORT_BY_CLUSTER_CPU_USAGE":"Sort by CPU usage","SORT_BY_CLUSTER_CPU_UTILISATION":"Sort by CPU usage (%)","SORT_BY_CLUSTER_MEMORY_USAGE_WO_CACHE":"Sort by memory usage","SORT_BY_CLUSTER_MEMORY_UTILISATION":"Sort by memory usage (%)","SORT_BY_CLUSTER_DISK_SIZE_USAGE":"Sort by disk usage","SORT_BY_CLUSTER_DISK_SIZE_UTILISATION":"Sort by disk usage (%)","SORT_BY_CLUSTER_POD_COUNT":"Sort by number of pods","SORT_BY_CLUSTER_POD_UTILISATION":"Sort by pod quota usage (%)","SORT_BY_NODE_POD_COUNT":"Sort by number of pods","SORT_BY_NODE_CPU_USAGE":"Sort by CPU usage","SORT_BY_NODE_MEMORY_USAGE_WO_CACHE":"Sort by memory usage","SORT_BY_NODE_LOAD5":"Sort by 5-minute CPU load average","SORT_BY_NODE_LOAD15":"Sort by 15-minute CPU load average","SORT_BY_POD_CPU_USAGE":"Sort by CPU usage","SORT_BY_POD_CPU_USED_REQUESTS_UTILISATION":"Sort by allocated CPU request (%)","SORT_BY_POD_CPU_USED_LIMITS_UTILISATION":"Sort by allocated CPU limit (%)","SORT_BY_POD_MEMORY_USAGE_WO_CACHE":"Sort by memory usage","SORT_BY_POD_MEMORY_USED_REQUESTS_UTILISATION":"Sort by allocated memory request (%)","SORT_BY_POD_MEMORY_USED_LIMITS_UTILISATION":"Sort by allocated memory limit (%)","SORT_BY_POD_NET_BYTES_TRANSMITTED":"Sort by outbound traffic","SORT_BY_POD_NET_BYTES_RECEIVED":"Sort by inbound traffic","SORT_BY_POD_PVC_BYTES_USAGE":"Sort by persistent volume usage","SORT_BY_POD_PVC_BYTES_UTILISATION":"Sort by persistent volume usage (%)","SORT_BY_NAMESPACE_CPU_USED_REQUESTS_UTILISATION":"Sort by allocated CPU request (%)","SORT_BY_NAMESPACE_CPU_USED_LIMITS_UTILISATION":"Sort by allocated CPU limit (%)","SORT_BY_NAMESPACE_MEMORY_USED_REQUESTS_UTILISATION":"Sort by allocated memory request (%)","SORT_BY_NAMESPACE_MEMORY_USED_LIMITS_UTILISATION":"Sort by allocated memory limit (%)","SORT_BY_NAMESPACE_PVC_BYTES_USED":"Sort by persistent volume usage","SORT_BY_NAMESPACE_PVC_COUNT":"Sort by number of pods","SORT_BY_POD_GPU_USAGE":"Sort by GPU usage","SORT_BY_POD_GPU_MEMORY_USAGE":"Sort by graphics memory usage","CPU_USAGE_TCAP":"CPU Usage","CPU_UTILISATION_TCAP":"CPU Usage (%)","MEMORY_USAGE_TCAP":"Memory Usage","MEMORY_UTILISATION_TCAP":"Memory Usage (%)","DISK_SIZE_USAGE_TCAP":"Disk Usage","DISK_SIZE_UTILISATION_TCAP":"Disk Usage (%)","POD_COUNT_TCAP":"Pods","NODE_POD_UTILISATION_TCAP":"Pod Quota Usage (%)","NODE_LOAD1_TCAP":"Average CPU Load (1 min)","NODE_LOAD5_TCAP":"Average CPU Load (5 min)","NODE_LOAD15_TCAP":"Average CPU Load (15 min)","INODE_USAGE_TCAP":"Inode Usage (%)","METER_NET_RECEIVED_USAGE_TCAP":"Inbound Traffic","METER_NET_TRANSMITTED_USAGE_TCAP":"Outbound Traffic","CPU_USED_REQUESTS_UTILISATION_TCAP":"Allocated CPU Request (%)","CPU_USED_LIMITS_UTILISATION_TCAP":"Allocated CPU Limit (%)","MEMORY_USED_REQUESTS_UTILISATION_TCAP":"Allocated Memory Request (%)","MEMORY_USED_LIMITS_UTILISATION_TCAP":"Allocated Memory Limit (%)","PVC_BYTES_USED_TCAP":"Persistent Volume Usage","PVC_BYTES_UTILISATION_TCAP":"Persistent Volume Usage (%)","POD_UTILISATION_TCAP":"Pod Quota Usage (%)","GPU_USAGE":"GPU Usage","GPU_UTILIZATION":"GPU Usage (%)","GPU_MEMORY_USAGE":"Graphics Memory Usage","GPU_MEMORY_USAGE_TCAP":"Graphics Memory Usage","GPU_MEMORY_UTILIZATION":"Graphics Memory Usage (%)","NODE_GPU_UTILIZATION":"GPU Usage (%)","NODE_GPU_MEMORY_UTILIZATION":"Graphics Memory Usage (%)","GPU_USAGE_TCAP":"GPU Usage","SORT_BY_DESC":"Descending","SORT_BY_ASC":"Ascending","OOM_KILL_PODS":"OOM killed pods","PENDING_PODS":"Pending pods","EVICTED_PODS":"Evicted pods","QOS_GUARANTEED":"Guaranteed: For every container in a pod, the CPU/memory request and limit are equal.","QOS_BURSTABLE":"Burstable: Criteria of Guaranteed is not met and at least one container has a request or limit.","QOS_BESTEFFORT":"BestEffort: No requests or limits are set.","COMPONENT_PARAMETER_CONFIG":"Component Settings","LICENSE":"License","LICENSE_DESC":"View information about the current license and update the license when necessary.","ACTIVATED":"Activated","INACTIVATED":"Not activated","EXPIRED":"Expired","LICENSE_ID":"License ID","AUTHORIZED_ORGANIZATION":"Authorized organization","AUTHORIZATION_TYPE":"Authorization type","AUTHORIZED_STATUS":"Authorized status","ACTIVATION_TYPE":"Activation type","WARRANTY":"Warranty","WARRANTY_PERIOD":"Under warranty","WARRANTY_EXPIRES":"Warranty expired","SUBSCRIPTION":"Subscription","SUBSCRIPTION_IN_PROGRESS":"Subscribed","SUBSCRIPTION_EXPIRES":"Subscription expired","PERMANENT_AUTHORIZATION":"Permanent Authorization","ACTIVATION_TIME":"Activation time","UPDATE_LICENSE":"Update License","ACTIVATION_CODE":"Activation Code","OBTAIN_ACTIVATION_CODE":"Obtain Activation Code","OBTAIN_ACTIVATION_CODE_DESC":"Visit {title} to obtain the license.","INVALID_LICENSE":"Invalid License","PRODUCT_SERVICE_AUTHORIZATION":"KubeSphere Enterprise Authorization","INVALID_ACTIVATION_CODE_DESC":"Invalid activation code. Please enter a Base64 string in JSON format.","EMPTY_LICENSE":"Invalid license.","INVALID_SIGNATURE":"Invalid signature.","FORMAT_ERROR":"Invalid activation code. Please enter a Base64 string in JSON format.","AUTHORIZED_FEATURES":"Authorized Features","FEATURE":"Feature","CURRENT_USER":"Current user","ADD_CURRENT_USER":"Add current user","NOTIFICATION_HISTORY":"Notification History","NOTIFICATION_HISTORY_PL":"Notification History","NOTIFICATION_HISTORY_DESC":"View notifications that have been sent to users.","ALERTING_NAME_TCAP":"Alert Name","ALERTING_TYPE_TCAP":"Alert Type","ALERTING_SEVERITY_TCAP":"Alert Severity","NOTIFICATION_MESSAGE":"Message","NOTIFICATION_TIME":"Notification Time","METRIC_ALERT":"Metric alert","EVENT_ALERT":"Event alert","AUDIT_ALERT":"Audit alert","LOGGING_ALERT":"Logging alert","ALERT_RESOLVED":"Resolved","NOTIFICATION_SETTINGS":"Notification Settings","SILENCE_POLICY":"Silence Policy","SILENCE_POLICY_LOW":"silence policy","SILENCE_POLICY_PL":"Silence Policies","SILENCE_POLICY_DESC":"Set the system not to send notifications under certain circumstances.","SILENCE_TIME":"Silence Time","CONTINUOUS_SILENCE":"Silent continuously","PERIODIC_SILENCE":"Silent periodically","SPECIFIC_TIME_RANGE_SILENCE":"Silent during time range","CUSTOM_SILENCE":"Silent based on cron expression","SILENCE_CONDITIONS":"Silence Conditions","ALL_SILENT_NOTIFICATIONS":"Silent for all notifications","CUSTOM_SILENT_NOTIFICATIONS":"Custom silence conditions","EDIT_SILENCE_CONDITIONS":"Edit Silence Conditions","EDIT_SILENCE_TIME":"Edit Silence Time","CREATE_SILENCE_POLICY_SUCCESSFULLY":"Created successfully.","EDIT_SILENCE_POLICY_SUCCESSFULLY":"Updated successfully.","CREATE_SILENCE_POLICY":"Create Silence Policy","ALL_SILENT_NOTIFICATIONS_TCAP":"Silent for All Notifications","ALL_SILENT_NOTIFICATIONS_DESC":"The silence policy applies to all notifications.","CUSTOM_SILENT_NOTIFICATIONS_TCAP":"Custom Silence Conditions","CUSTOM_SILENT_NOTIFICATIONS_DESC":"The silence policy applies only to notifications that meet specified conditions.","INVALID_SILENCE_CONDITION":"Please set a correct silence condition.","SILENT_TEMPLATE":"Template","SILENCE_TIME_TYPE_DESC":"Notifications that meet the silence conditions will be silenced during the specified time range.","SILENT_CRON":"Cron Expression","SILENCE_TIME_RANGE_EMPTY_DESC":"Please set the time range during which notifications are silenced.","SELECT_START_TIME_AND_END_TIME":"Select the start time and end time during which notifications are silenced.","SILENCE_DATE":"Date","SELECT_DATE":"Please select a date.","SILENCE_EVERY_DAY":"Every day","SILENCE_EVERY_WEEK":"Every week","SILENCE_EVERY_MONTH":"Every month","MONDAY":"Monday","TUESDAY":"Tuesday","WEDNESDAY":"Wednesday","THURSDAY":"Thursday","FRIDAY":"Friday","SATURDAY":"Saturday","SUNDAY":"Sunday","DAY":"day","HOUR":"Hour","MINUTE":"Minute","SECOND":"Second","CRON_EXPRESSION":"Cron Expression","CRON_EXPRESSION_DESC":"Enter a cron expression to specify the silence period.","CRON_EXPRESSION_REQUIRE_DESC":"Please enter a cron expression.","CRON_EXPRESSION_ERROR_DESC":"Invalid cron expression. Please enter a valid cron expression.","EVERY_DAY_TIMERANGE":"Every day: {timeRange}","EVERY_WEEK_DAYS_TIMERANGE":"Every week: {days} [{timeRange}]","EVERY_MONTH_DAYS_TIMERANGE":"Every month: {days} [{timeRange}]","NOTIFICATION_LANGUAGE":"Notification Language","NOTIFICATION_LANGUAGE_DESC":"Set the language of keys in notifications. Notifications are provided as key-value pairs.","NOTIFICATION_SIMPLIFIED_CHINESE_DESC":"Use simplified Chinese keys in notifications.","NOTIFICATION_ENGLISH_DESC":"Use English keys in notifications.","NOTIFICATION_LANGUAGE_CHANGE_SUCCESS":"Changed successfully.","PLATFORM_LOGO":"Platform Logo","PLATFORM_LOGO_REQUIRED":"Please upload a platform logo.","BROWSER_FAVICON":"Browser Favicon","BROWSER_FAVICON_REQUIRED":"Please upload a platform favicon.","LOGIN_BACKGROUND":"Login Page Background Image","NO_BACKGROUND":"No Background Image Found","NO_BACKGROUND_TIP":"Please click \"Customize Platform Information\" to upload a background image.","MODIFY_PLATFORM_INFO":"Customize Platform Information","PLATFORM_TITLE_TCAP":"Platform Title","PLATFORM_DESCRIPTION_TCAP":"Platform Description","PLATFORM_TITLE_TIP":"The platform title can contain any characters. The maximum length is 63 characters.","TITLE_EMPTY_TIP":"Please enter a platform title.","PLATFORM_LOGO_DESC":"The image format can be SVG, PNG, or JPG, the image file size cannot exceed 2 MB, and the recommended image resolution is 200 x 40 pixels.","BROWSER_FAVICON_DESC":"The image format can be ICO, SVG, PNG, or JPG, the image file size cannot exceed 2 MB, the recommended image resolution is 40 x 40 pixels, and the recommended aspect ratio is 1:1.","LOGIN_BACKGROUND_DESC":"The image format can be SVG, PNG, or JPG, the image file size cannot exceed 2 MB, and the recommended image resolution is 1920 x 1080 pixels.","UPLOAD_PLATFORM_IMAGE_FAILED":"Upload failed. {message}","UPLOAD_FILE_TOO_LARGE":"The image file size cannot exceed 2 MB. Please select another image file.","RESET_PLATFORM_INFO":"Reset Platform Information","RESET_PLATFORM_INFO_TIP":"Are you sure you want to reset the platform information?","SCALING_OBJECT":"Scalable Objects","LAST_SCALING_TIME":"Update Time","POLLING_INTERVAL":"Polling Interval","WAITING_TIME":"Waiting Time","TIME_ZONE":"Time zone","CORN_DESC":"Auto scaling according to the cron plan. ","SCALING_CUSTOM_DESC":"Auto scaling according to custom metrics. ","TOGGLER_PARAMS":"Trigger Parameters","TOGGLER_AUTHOR":"Trigger Authentication","INDICATOR_NAME":"Metric","EXPRESSION":"Expression","SCALING_Prometheus_DESC":"Auto scaling according to Prometheus. ","INDICATOR_TYPE":"Indicator type","TRIGGER":"Trigger","LABEL_KEY_VALUE_CANNOT_BE_EMPTY":"The key and value of the type cannot be empty.","TRIGGER_AUTHENTICATION_KEY_EQ_NAME":"The key of the trigger authentication must be name.","CUSTOM_SCALING_PL":"Custom Scaling","CUSTOM_SCALING_LOW":"Custom scaling","CUSTOM_SCALING_DESC":"Custom scaling automatically scales pods on demand to help optimize resource usage and costs. ","CUSTOM_SCALING_EMPTY_DESC":"Please create custom scaling.","CUSTOM_SCALING":"Custom Scaling","SCALER":"Scaler","STRETCH_OBJECT_READY":"ScaledObject Ready","TRIGGER_ACTIVE":"Active Triggers","RETRACTOR_FALLBACK":"Rollback","STRETCH_OBJECT_READY_DESC":"Whether the ScaledObject is ready for scaling","TRIGGER_ACTIVE_DESC":"Whether the ScaledObject has been scaled","RETRACTOR_FALLBACK_DESC":"Whether the scaler is able to fetch metrics from the source","EDIT_SCALING_SETTINGS":"Edit Scaling","SCALING_SETTINGS":"Scaling Settings","DISABLE_REPLICAS_SETTING":"Disable the number of replicas setting","WORKLOAD_SCALING_TOOL_TIP":"The horizontal autoscaling policy of pods with custom metrics has been set.","EDIT_CUSTOM_SCALING":"Edit Custom Scaling","ENV_CONTAINER":"env source container","ADD_WORKLOAD":"Add Workload","ADD_WORKLOAD_DESC":"Set up deployments and stateful replica sets as custom ScaledObjects.","EMPTY_SCALING_OBJECT_MESSAGE":"The scaledObject cannot be empty","PERCENT":"Percentage","EXPANSION_VALUE":"Scale-Up Value","STABILIZATION_WINDOW_SECONDS":"Stablization Window (s)","STABILIZATION_WINDOW_SECONDS_DESC":"The stabilization window is used to restrict the fluctuation of replicas count when the metrics used for scaling keep fluctuating.","POLICY_TYPE":"Policy Type","POLICY_PREFERENCE":"Policy Preference","POLICY_PREFERENCE_DESC":"The scaler adopts different policies according to your preference.","POLICY_TYPE_DUPLICATED":"Cannot configure multiple policies of the same type. ","TENDS_TO_SCALE_SIGNIFICANTLY":"Scale greatly","TENDS_TO_EXPAND_SLIGHTLY":"Scale slightly","SCALE_DISABLE":"Disable","EXPANSION_STRATEGY":"Scale-Up Policy","SCALING_STRATEGY":"Scale-Down Policy","EMPTY_POLICY_MESSAGE":"The configuration of the policy cannot be empty. ","TIME_ZONE_DESC":"Set the minimum number of container group replicas allowed, the default value is 0. ","REPLICAS_DESIRED_CRON_TRIGGER_DESC":"Number of replicas to which the resources must be scaled between the time range when a cron schedule starts and ends.","CRON_START":"Start","CRON_END":"End","CRON_START_DESC":" Cron expression directing the start of the cron schedule.","CRON_END_DESC":"Cron expression directing the end of the cron schedule.","EMPTY_TYPE_TRIGGER":"The value of type cannot be null.","ADD_TRIGGER":"Add Trigger","ADD_TRIGGER_DESC":"Add triggers according to the required metrics.","TRIGGER_TYPE":"Trigger Type","PROMETHUS_ADDRESS":"Promethus service address.","INDICATOR_NAME_PROMETHUS_DESC":"If multiple triggers are used, metric names must be unique. ","EXPRESSION_PROMETHUS_DESC":"Set the query expression.","THRESHOLD_PROMETHUS_DESC":"Set the threshold when the trigger start scaling.","SCALE_MINIMUM_REPLICAS_DESC":"Set the minimum number of pod replicas allowed, and the default value is 0.","SCALE_MAXIMUM_REPLICAS_DESC":"Set the maximum number of pod replicas allowed, and the default value is 1.","POLLING_INTERVAL_DESC":"Check the time interval for each trigger. By default, KEDA will check every trigger source on every ScaledObject every 30 seconds.","WAITING_TIME_DESC":"The period to wait after the last trigger reported active before scaling the resource back to 0. The default is 5 minutes (300 seconds). ","SCALE_ROLL_BACK_DESC":"Define the number of replicas to roll back if the scaler is faulty.","SCALE_FAILURE_THRESHOLD_DESC":"Limit the consecutive periods of time when each scaler fails to fetch metrics from its source.","EMPTY_FAILURE_THRESHOLD":"The failure threshold cannot be empty. ","FALLBACK_NUMBER":"Rollback Replicas","FALLBACK_NUMBER_DESC":"Number of rollback replicas after scaler failures exceed the threshold.","EMPTY_FALLBACK_NUMBER_DESC":"The number of rollback replicas cannot be empty.","TRIGGER_SETTING":"Trigger Settings","TRIGGER_SETTING_DESC":"Set the trigger for custom metrics.","RESTORE_TO_ORIGINAL_REPLICA_COUNT":"Restore to the original number of replicas","RESTORE_TO_ORIGINAL_REPLICA_COUNT_DESC":"Specify whether the number of replicas should be restored to the original after the target ScaledObject has been deleted. By default, the number of replicas equals to the number when the ScaledObject has been deleted.","SCALE_BEHAVIOR":"Scaling Behavior","SCALE_BEHAVIOR_DESC":"Configure the scaling behavior of the target ScaledObject.","CREATE_CUSTOM_SCALING":"Create Custom Scaling","CRON_TIME_ZONE_DESC":"One of the acceptable values in the IANA Time Zone Database.","PROMETHEUS_MIN_REPLICA_COUNT_DESC":"If the type the trigger is Prometheus, the minimum number of replicas must be greater than 0.","MIN_REPLICA_COUNT_LESS_THAN_MAX":"The minimum number of replicas cannot be greater than the maximum number of replicas.","RADONDB_APPS":"RadonDB Apps","RADONDB_APPS_DESC":"The RadonDB cloud-native apps provide enterprise-grade database services and products including relational databases, distributed databases, time series and analytical databases, and NoSQL databases.","WHAT_ARE_RADONDB_APPS":"What are RadonDB apps?","ACCESS_ADDRESS_PL":"Access Addresses","DATABASE_STATUS_FAILED":"Failed","DATABASE_STATUS_RUNNING":"Running","DATABASE_STATUS_UPDATING":"Updating","DATABASE_STATUS_CREATING":"Creating","DATABASE_STATUS_TRUE_NOTREADY":"Not ready","DATABASE_STATUS_TRUE_READY":"Ready","DATABASE_STATUS_CREATE_FAILED":"Creation failed","DATABASE_STATUS_UPDATE_FAILED":"Update failed","DATABASE_STATUS_DELETED":"Deleted","DATABASE_STATUS_COMPLETED":"Completed","DATABASE_STATUS_TERMINATING":"Terminating","READ_AND_WRITE_ADDRESS":"Read and Write Address","READ_ONLY_ADDRESS":"Read Only Address","KIBANA_ADDRESS":"Kibana Address","DASHBOARD_ADDRESS":"Dashboard Address","PRIMARY_ADDRESS":"Primary Address","STANDBY_ADDRESS":"Standby Address","DATABASE_OPERATION_WARNING":"This operation may interrupt the database service. Please perform this operation during off-peak hours.","VOLUME":"Volume","NODE_ROLE":"Node Role","CANNOT_REDUCE_VOLUME_SIZE":"The volume size cannot be reduced.","SCALE_OUT":"Scale Out","CANNOT_REDUCE_DATABASE_NODES":"The number of database nodes cannot be reduced.","MYSQL_NODES_DESC":"Number of database nodes. The value can be 2, 3, or 5.","REDIS_SENTINEL_NODES_DESC":"Number of database nodes. The value can be 3, 5, or 7.","MONGODB_NODES_DESC":"Number of database nodes.","NODE_COUNT_DESC":"Number of database nodes. The value range is {min} to {max}.","ADJUST_RESOURCES":"Adjust Resources","RESOURCES":"Resources","RESOURCES_DESC":"Set the CPU and memory resources allocated to the database service.","CORE_GIB":"{core, plural, =1 {1 core} other {# cores}}, {gib} GiB","BACK_UP":"Back Up","BACKUP_NAME_DESC":"The name can contain only lowercase letters, numbers, and hyphens (-), and must start with a lowercase letter. The maximum length is 24 characters.","INVALID_BACKUP_NAME_DESC":"Invalid name. The name can contain only lowercase letters, numbers, and hyphens (-), and must start with a lowercase letter. The maximum length is 24 characters.","BACKUP_NAME_EMPTY_DESC":"Please enter a backup name.","BACKUP_WARNING":"The backup process may cause pressure on database services. Please perform this operation during off-peak hours.","BACKUP_COMFIRM_TIP":"Are you sure you want to create a backup?","BACKUP_POSTGRE_SQL_TIP":"Ten backups are retained by default. If a retention policy is set during scheduled backup, the scheduled backup policy will be used first.","SET_AUTO_BACKUP":"Set Auto Backup","BACKUP_TIME":"Backup Time","BACKUP_DATE":"Backup Date","BACKUP_SCHEDULED_DELETE":"Delete Regularly","BACKUP_RETENTION_DAYS":"Retention Period","BACKUP_DAY":"Days","BACKUP_RETENTION_DAYS_ERROR":"The retention period must be set.","BACKUP_DATE_ERROR":"The backup date must be set.","REBALANCE_NODES":"Rebalance Nodes","POSTGRESQL_NODES_DESC":"The value range is 1 to 8.","REBALANCE_SUCCESS":"Rebalanced successfully.","REBALANCE_FAILED":"Rebalancing failed.","REBALANCING":"Rebalancing","START_REBALANCING":"Start Rebalancing","REBALANCING_HISTORY":"Rebalancing History","REBALANCING_IN_PROGRESS_DESC":"Node rebalancing is in progress. Please wait until node rebalancing is complete.","KAFKA_OPERATION_WARNING":"This operation may interrupt the Kafka service. Please perform this operation during off-peak hours.","UPDATE_VERSION":"Upgrade Version","UPDATE_VERSION_DESC":"Are you sure you want to upgrade this resource?","SHARD":"Shard","SHARD_PL":"Shards","PROXY_NODE":"Proxy node","NODE_IP_ADDRESS_SCAP":"Node IP address","NODE_PORT":"Node port","NO_DATABASE_CONNECTION_AVAILABLE":"No Database Connection Available","MANAGEMENT_NODE":"Management node","PRIMARY_NODE":"Primary node","PRIMARY_NODE_PL":"Primary nodes","HOT_NODE":"Hot node","HOT_NODE_PL":"Hot nodes","WARM_NODE":"Warm node","WARM_NODE_PL":"Warm nodes","COLD_NODE":"Cold node","COLD_NODE_PL":"Code nodes","KIBANA_NODE":"Kibana node","KIBANA_NODE_PL":"Kibana nodes","KAFKA_NODE":"Kafka node","KAFKA_NODE_PL":"Kafka nodes","KAFKA_RESOURCES":"Kafka resources","ZOOKEEPER_NODE":"ZooKeeper node","ZOOKEEPER_NODE_PL":"ZooKeeper nodes","LOGSTASH_NODE":"Logstash node","DASHBOARD_NODE":"Dashboard node","ZOOKEEPER_RESOURCES":"ZooKeeper resources","STANDBY_NODE":"Standby node","STANDBY_NODE_PL":"Standby nodes","SENTINEL_NODE":"Sentinel node","DATABASE_RUNNING_FOR_VALUE":"The database has been running for {value}.","BACKUPS":"Backups","BACKUP":"Backup","BACKUP_LOW":"backup","BACKUP_PL":"Backups","RESTORE_FROM_BACKUP":"Restore from Backup","BACKUP_IN_PROGRESS_DESC":"Cluster backup is in progress.","SIZE_GIB":"Size (GiB)","BACKUP_START_TIME":"Backup Start Time","BACKUP_END_TIME":"Backup End Time","CREATE_BACKUP":"Create Backup","BACKUP_NOT_ALLOWED_DESC":"Data backup is not allowed currently.","DATABASE_USERS":"Database Users","DATABASE_USERS_EMPTY_DESC":"Create a user to access the database.","NO_AUTHENTICATION_DESC":"The authentication type of the database cluster is \"No authentication\". To control uesr access permissions, please change the value of \"Authentication Type\" on the \"Parameters\" tab.","KAFKA_USERS":"Kafka Users","USERCREATION_NOT_ALLOWED":"User creation is not allowed currently.","CANNOT_EDIT_ROOT_USER":"This user is the root user and cannot be edited.","CANNOT_DELETE_ROOT_USER":"This user is the root user and cannot be deleted.","SECRET_KEY":"Secret Key","USER_CERTIFICATE":"User Certificate","VALIDITY_PERIOD":"Validity Period","CA_CERTIFICATE":"CA Certificate","CA_PASSWORD":"CA Password","AUTHORIZATION_RULE":"Authorization Rule","KAFKA_NO_AUTHENTICATION_DESC":"The authentication type of the Kafka cluster is \"No authentication\". To control user access permissions, please change the value of \"Authentication Type\" on the \"Parameters\" tab.","KAFKA_NO_USER_DESC":"Create a user to access Kafka.","DELETE_USER":"Delete User","DATABASE_USERNAME_DESC":"The username can contain only uppercase letters, lowercase letters, numbers, and underscores (_), and must start with an uppercase or lowercase letter. The length must be 2 to 26 characters.","INVALID_DATABASE_USERNAME_DESC":"Invalid username. The username can contain only uppercase letters, lowercase letters, numbers, and underscores (_), and must start with an uppercase or lowercase letter. The length must be 2 to 26 characters.","PG_USERNAME_DESC":"The username can contain only lowercase letters, numbers, and underscores (_), and must start with a lowercase letter. The length must be 2 to 26 characters.","INVALID_PG_USERNAME_DESC":"Invalid username. The username can contain only lowercase letters, numbers, and underscores (_), and must start with a lowercase letter. The length must be 2 to 26 characters.","DATABASE_PASSWORD_DESC":"The password must contain at least one uppercase letter, one lowercase letter, one number, and one special character (!@#$%^&*_+-=). The length must be 8 to 32 characters.","DATABASE_PASSWORD_CHARACTERS":"The password must contain at least one special character (!@#$%^&*_+-=).","DATABASE_PASSWORD_CHARACTERS_EXCLUDE":"Special characters in the password can only be !@#$%^&*_+-=.","INVALID_DATABASE_PASSWORD_DESC":"Invalid password. The password must contain at least one uppercase letter, one lowercase letter, one number, and one special character (!@#$%^&*_+-=). The length must be 8 to 32 characters.","USERNAME_FORBIDDEN_STRINGS":"The username cannot be root or start with radondb_.","USERNAME_CANNOT_BE_PROGRES":"The username cannot be postgres, pgautofailover_monitor, or pgautofailover_replicator.","USERNAME_CANNOT_BE_CLICKHOUSE":"The username cannot be clickhouse_operator.","KAFKA_USERNAME_DESC":"The username can contain only lowercase letters and numbers. The maximum length is 64 characters.","PERMISSIONS":"Permissions","GENERAL_PERMISSIONS":"General permissions","ADVANCED_PERMISSIONS":"Advanced permissions","AUTHENTICATION_MODE":"Authentication Mode","AUTHENTICATION_MODE_INCORRECT_DESC":"The authentication mode is inconsistent with that of the database cluster. The user cannot access the database cluster.","AUTHENTICATION_MODE_INCORRECT_ALERT":"The authentication mode of the database cluster is {cluster}. If the authentication mode of the user is set to {user}, the user cannot access the database cluster.","AUTHORIZATION_MODE":"Authorization Mode","SIMPLE_AUTHORIZATION":"Simple authorization","AUTHORIZATION_MODE_DESC":"Currently, only simple authorization is supported.","AUTHORIZED_DATABASES":"Authorized Databases","AUTHORIZED_DATABASES_DESC":"Databases that the user can access. Enter * (all databases) or a database name.","AUTHORIZED_HOSTS":"Authorized Hosts","AUTHORIZED_HOSTS_DESC":"Hosts that the user can access. Enter % (all hosts), an IP address, or multiple IP addresses separated by commas (,).","PERMISSION_RULE":"Permission Rule","PERMISSION_RULE_DESC":"You can add multiple permission rules for the user.","RESOURCE_TYPE_DESC":"Resource type to which the rule applies.","RESOURCE_MATCHING_MODE":"Resource Matching Mode","RESOURCE_MATCHING_MODE_DESC":"Matching mode for resource names.","PREFIX_DESC":"Prefix matching, applies the rule to all resources whose names start with this value.","LITERAL_DESC":"Literal matching, can be set to *, indicating that the rule applies to all resources.","PREFIX":"Prefix","LITERAL":"Literal","OPERATION":"Operation","OPERATION_DESC":"Select an operation to which the rule applies.","DATABASE_OPERATION_READ":"Read","DATABASE_OPERATION_WRITE":"Write","DATABASE_OPERATION_DELETE":"Delete","DATABASE_OPERATION_ALTER":"Alter","DATABASE_OPERATION_DESCRIBE":"Describe","DATABASE_OPERATION_ALL":"All","DATABASE_OPERATION_IDEMPOTENTWRITE":"Idempotent write","DATABASE_OPERATION_CLUSTERACTION":"Cluster action","DATABASE_OPERATION_CREATE":"Create","DATABASE_OPERATION_ALTERCONFIGS":"Alter configs","DATABASE_OPERATION_DESCRIBECONFIGS":"Describe configs","ALLOW":"Allow","RULE_TYPE_DESC":"Currently, the rule type can only be \"Allow\".","GROUP":"Group","TRANSACTION_ID":"Transaction ID","ACL_DESC":"Set ACL to control permissions of the user according to official Redis rules.","TOPICS":"Topics","MESSAGE_RETENTION_TIME":"Message Retention Time","EDIT_TOPIC":"Edit Topic","TOPIC_CREATION_NOT_ALLOWED":"Topic creation is not allowed currently.","NO_TOPIC_FOUND":"No Topic Found","TOPIC_EMPTY_DESC":"Please create a topic.","CREATE_TOPIC":"Create Topic","TOPIC_NAME_DESC":"The name can contain only lowercase letters, numbers, and hyphens (-), and must start with a lowercase letter. The maximum length is 24 characters.","INVALID_TOPIC_NAME_DESC":"Invalid name. The name can contain only lowercase letters, numbers, point (.), and hyphens (-), and must start with a lowercase letter. The maximum length is 100 characters.","TOPIC_NAME_EMPTY_DESC":"Please enter a topic name.","PARTITION_COUNT":"Partitions","COMPACT":"Compact","INVALID_PARTITION_COUNT_DESC":"Invalid number of partitions. The value cannot be less than {min} or greater than {max}.","TOPIC_REPLICA_COUNT_DESC":"The number of replicas cannot exceed the number of nodes in the Kafka cluster.","CLEANUP_POLICY_DESC":"Whether to delete outdated logs or compress logs by key (Kafka Connect needs to use the compact mode).","CLEANUP_POLICY_DELETE":"Delete","CLEANUP_POLICY_COMPACT":"Compact","MIN_INSYNC_REPLICAS_DESC":"Minimum number of replicas when request.required.acks of the producer is set to 1.","UNCLEAN_LEADER_ELECTION_ENABLE_DESC":"Whether to allow a replica that does not belong to the ISR to be elected as a leader.","SEGMENT_MS_DESC":"Maximum time in milliseconds before a segment is rolled out. The minimum value is 86400000.","RETENTION_MS_DESC":"Time in milliseconds before deleting a log file.","RETENTION_BYTES_DESC":"Maximum size of a log before deleting it. If both retention.ms and retention.bytes are set, the log will be deleted when either of the thresholds is reached. The value -1 indicates that all logs are retained.","MAX_MESSAGE_BYTES_DESC":"Maximum message size at the topic level. If no value is provided, the instance-leval maximum message size 1 MB is used.","ALERT_RULE_GROUP_PL":"Alert Rule Groups","PARAMETER":"Parameter","RANGE":"Range","AUTO_RESTART":"Auto Restart","ALERTING_POLICY_CREATION_NOT_ALLOWED":"Alert rule group creation is not allowed currently.","EDIT_NOT_ALLOWED":"Parameter editing is not allowed currently.","DBPARAM_DATABASE_VERSION":"Kernel Version","DBPARAM_DATABASE_VERSION_DESC":"Database kernel version.","DBPARAM_FSYNC_DESC":"Whether the PostgreSQL server will ensure (if possible) that updates are physically written to disks.","DBPARAM_SHARED_BUFFERS_DESC":"Memory in MB used by the database server as shared buffers.","DBPARAM_TEMP_BUFFERS_DESC":"Maximum size of memory in MB used by each database session as temporary buffers.","DBPARAM_WORK_MEM_DESC":"Maximum size of memory in MB used by query operations before data is written to temporary disk files.","DBPARAM_MAX_WAL_SENDERS_DESC":"Maximum number of WAL sender processes that run simultaneously.","DBPARAM_LOG_MIN_DURATION_STATEMENT_DESC":"Minimum execution time in milliseconds of logged statements.","DBPARAM_MAX_CONNECTIONS_DESC":"Maximum number of concurrent connections.","DBPARAM_WORKER_PROCESSES_DESC":"Maximum number of concurrent worker processes.","DBPARAM_CHECKPOINT_TIMEOUT_DESC":"Maximum interval in seconds between automatic WAL checkpoints.","DBPARAM_AUTOVACUUM_VACUUM_COST_DELAY_DESC":"Cost delay value in milliseconds for autovacuum operations.","DBPARAM_AUTOVACUUM_VACUUM_COST_LIMIT_DESC":"Cost limit value for autovacuum operations.","DBPARAM_AUTOVACUUM_ANALYZE_SCALE_FACTOR_DESC":"Fraction of the table size that triggers an ANALYZE operation of autovacuum.","DBPARAM_AUTOVACUUM_VACUUM_SCALE_FACTOR_DESC":"Fraction of the table size that triggers a VACUUM operation of autovacuum.","DBPARAM_VACUUM_DEFER_CLEANUP_AGE_DESC":"Delay of VACUUM and HOT cleanup operations, measured by the number of transactions.","DBPARAM_SEQ_PAGE_COST_DESC":"The planner's estimate of the cost of a sequential disk page fetch.","DBPARAM_RANDOM_PAGE_COST_DESC":"The planner's estimate of the cost of a non-sequential disk page fetch.","DBPARAM_CPU_TUPLE_COST_DESC":"The planner's estimate of the cost of processing each row during a query.","DBPARAM_CPU_INDEX_TUPLE_COST_DESC":"The planner's estimate of the cost of processing each index entry during an index scan.","DBPARAM_BGWRITER_DELAY_DESC":"Sleep time in milliseconds between activity rounds of the background writer.","DBPARAM_WAL_WRITER_DELAY_DESC":"Sleep time in milliseconds between activity rounds of the WAL writer.","DBPARAM_WAL_WRITER_FLUSH_AFTER_DESC":"Amount of WAL in MB written by the WAL writer that triggers a flush.","DBPARAM_FULL_PAGE_WRITES_DESC":"Whether to set the PostgreSQL server to write the entire content of each disk page to WAL during the first modification of that page after a checkpoint.","DBPARAM_WAL_COMPRESSION_DESC":"Whether to set the PostgreSQL server to compress full pages written to WAL when full_page_writes is on or during a base backup.","DBPARAM_SYNCHRONOUS_COMMIT_DESC":"Amount of WAL processing that needs to be completed before the database server returns a sucess indication to the client.","DBPARAM_MAINTENANCE_WORK_MEM_DESC":"Maximum amount of memory in MB to be used for maintenance operations such as VACUUM, CREATE INDEX and ALTER TABLE ADD FOREIGN KEY.","DBPARAM_MAX_REPLICATION_SLOTS_DESC":"Maximum number of replication slots. Changing the value will cause the database service to restart.","DBPARAM_AUTOVACUUM_DESC":"Whether the server should run the autovacuum launcher daemon.","DBPARAM_VACUUM_COST_DELAY_DESC":"Amount of time that the process will sleep when the cost limit has been exceeded.","DBPARAM_AUTOVACUUM_NAPTIME_DESC":"Minimum delay between autovacuum runs on any given database.","DBPARAM_COMMIT_DELAY_DESC":"Delay in microseconds between transaction commit and flushing WAL to disks.","DBPARAM_COMMIT_SIBLINGS_DESC":"Minimum number of concurrent open transactions before performing commit_delay.","DBPARAM_LOG_MIN_MESSAGES_DESC":"Levels of messages that are written to the server log.","DBPARAM_BGWRITER_LRU_MAXPAGES_DESC":"Maximum number of LRU pages to be flushed by the background writer per round.","DBPARAM_BGWRITER_FLUSH_AFTER_DESC":"Whenever more than this amount of data (in KB) has been written by the background writer, attempts to force the OS to issue these writes to the underlying storage.","DBPARAM_STATEMENT_TIMEOUT_DESC":"Maximum allowed duration in microseconds of any statement. Statements that take more than this amount of time will be aborted.","DBPARAM_IDLE_IN_TRANSACTION_SESSION_TIMEOUT_DESC":"Maximum allowed idle time in microseconds between queries in a transaction. Sessions that have been idle for more than this amount of time will be terminated.","DBPARAM_LOG_STATEMENT_DESC":"Types of SQL statements to be logged.","DBPARAM_LOG_WAL_LEVEL_DESC":"Level of information written to the WAL.","DBPARAM_PG_PORT_DESC":"Port number that the PostgreSQL server listens on. The value cannot be 55555.","PG_PORT_FORBIDDEN_ERROR":"The port number cannot be 55555.","DBPARAM_JIT_DESC":"Whether JIT compilation (if available) can be used by PostgreSQL.","DBPARAM_AUDIT_LOG_POLICY_DESC":"Policy adopted by the audit log plugin when writing events to its log file.","DBPARAM_AUDIT_LOG_FORMAT_DESC":"Audit log file format.","DBPARAM_AUDIT_LOG_ROTATE_ON_SIZE_DESC":"Size of a single audit log file. If the value is not a multiple of 4096, the value is truncated to the nearest multiple of 4096.","DBPARAM_AUDIT_LOG_ROTATIONS_DESC":"Maximum number of audit log files.","DBPARAM_DEFAULT_STORAGE_ENGINE_DESC":"Default storage engine.","DBPARAM_INNODB_BUFFER_POOL_SIZE_DESC":"Buffer pool size. 80% of the memory can be allocated at most. If the value is set to -1, 60% of the memory is allocated. The value is always increased to an integer multiple of (innodb_buffer_pool_chunk_size x innodb_buffer_pool_instances).","DBPARAM_CHARACTER_SET_SERVER_DESC":"Default character set of the database server.","DBPARAM_EXPIRE_LOGS_DAYS_DESC":"Retention period of binary log files.","DBPARAM_LONG_QUERY_TIME_DESC":"Slow query time threshold. SQL statements that take more time than the value of this parameter are considered to be slow queries.","DBPARAM_MAX_CONNECT_ERRORS_DESC":"Maximum number of consecutive connection failures allowed before the database server blocks further connections from a host.","DBPARAM_WAIT_TIMEOUT_DESC":"Maximum number of seconds the database server waits for activity on a noninteractive connection before closing it.","DBPARAM_MAX_ALLOWED_PACKET_DESC":"Maximum packet size. If the value is not a multiple of 1024, the value will be truncated to a multiple of 1024. If you need to change the value, ensure that the value is less than or equal to the value of slave_pending_jobs_size_max. Otherwise, replication between the primary and standby nodes may become abnormal.","DBPARAM_SLAVE_PARALLEL_WORKERS_DESC":"Number of parallel replication threads.","DBPARAM_SKIP_NAME_RESOLVE_DESC":"Whether to forbid domain name resolution.","DBPARAM_AUTOCOMMIT_DESC":"Whether to enable the autocommit mode.","DBPARAM_TRANSACTION_ISOLATION_DESC":"Transaction isolation level.","DBPARAM_INNODB_FLUSH_METHOD_DESC":"InnoDB file flushing method.","DBPARAM_INNODB_USE_NATIVE_AIO_DESC":"Whether InnoDB uses the Linux asynchronous I/O subsystem.","DBPARAM_MONGODB_PORT_DESC":"Port number that the MongoDB server listens on.","DBPARAM_OPLOGSIZEMB_DESC":"Maximum size in MB of the oplog file.","DBPARAM_MAXINCOMINGCONNECTIONS_DESC":"Maximum number of simultaneous connections that mongos or mongod will accept.","DBPARAM_CURSORTIMEOUTMILLIS_DESC":"Expiration threshold in milliseconds for idle cursors before MongoDB removes them.","DBPARAM_PROFILINGMODE_MODE":"Whether to enable the profiling mode.","DBPARAM_SLOWOPTHRESHOLDMS_DESC":"Slow operation time threshold. Operations that take more time than the value of this parameter are considered to be slow operations.","DBPARAM_ENABLEMAJORITYREADCONCERN_DESC":"Whether to use the secure read policy. Changing the value will cause the database service to restart.","DBPARAM_COMMANDVERBOSITY_DESC":"Log message verbosity level for components related to commands.","DBPARAM_INDEXVERBOSITY_DESC":"Log message verbosity level for components related to indexing operations.","DBPARAM_QUERYVERBOSITY_DESC":"Log message verbosity level for components related to query operations.","DBPARAM_NETWORKVERBOSITY_DESC":"Log message verbosity level for components related to networking operations.","DBPARAM_WRITEVERBOSITY_DESC":"Log message verbosity level for components related to write operations.","DBPARAM_MAXMEMORY_DESC":"Maximum size of memory in MB avaiable to Redis.","DBPARAM_ACTIVEREHASHING_DESC":"Whether to enable active rehashing to save memory.","DBPARAM_APPENDONLY_DESC":"Whether to enable AOF persistence.","DBPARAM_APPENDFSYNC_DESC":"AOF sync policy.","DBPARAM_CLUSTER_NODE_TIMEOUT_DESC":"Maximum amount of time in milliseconds a Redis cluster node can be unavailable before it is considered failed.","DBPARAM_LATENCY_MONITOR_THRESHOLD_DESC":"Slow operation time threshold in milliseconds. Operations that take more time than the value of this parameter will be logged. The value 0 indicates that this feature is disabled.","DBPARAM_MAXCLIENTS_DESC":"Maximum number of client connections. The value 0 (default) indicates that the number of client connections is not limited.","DBPARAM_MAXMEMORY_POLICY_DESC":"Policy adopted by Redis when the amount of memory used by Redis reaches the limit.","DBPARAM_MAXMEMORY_SAMPLES_DESC":"Number of samples used for the Redis eviction algorithm when the amount of memory used by Redis reaches the limit.","DBPARAM_MIN_SLAVES_MAX_LAG_DESC":"The primary database allows write operations only when at least min-slaves-to-write standby databases exist and the network delays of the standby databases do not exceed the value of this parameter.","DBPARAM_MIN_SLAVES_TO_WRITE_DESC":"See the decription of min-slaves-max-lag.","DBPARAM_NO_APPENDFSYNC_ON_REWRITE_DESC":"Whether to block fsync() calls when a BGSAVE or BGREWRITEAOF operation is in progress.","DBPARAM_NOTIFY_KEYSPACE_EVENTS_DESC":"Types of notifications sent by Redis.","DBPARAM_REPL_BACKLOG_SIZE_DESC":"Size of replication backlog.","DBPARAM_REPL_BACKLOG_TTL_DESC":"Retention period of replication backlog.","DBPARAM_REPL_TIMEOUT_DESC":"Replication timeout interval.","DBPARAM_SET_MAX_INTSET_ENTRIES_DESC":"Intset encoding is used when a set consists entirely of Base10 64-bit signed integers and the number of elements in the set does not exceed the value of this parameter. ","DBPARAM_SLOWLOG_LOG_SLOWER_THAN_DESC":"Maximum operation execution time in microseconds. Operations that exceed the value of this parameter will be recorded in the slowlog.","DBPARAM_SLOWLOG_MAX_LEN_DESC":"Maximum length of the slowlog.","DBPARAM_HASH_MAX_ZIPLIST_ENTRIES_DESC":"Ziplist encoding is used when a hash object satisfies both of the following conditions: a) The length in bytes of each key and each value of the hash object does not exceed the hash-max-ziplist-value value; b) The number of key-value pairs in the hash object does not exceed the hash-max-ziplist-entries value.","DBPARAM_HASH_MAX_ZIPLIST_VALUE_DESC":"See the description of hash-max-ziplist-entries.","DBPARAM_LIST_MAX_ZIPLIST_ENTRIES_DESC":"Ziplist encoding is used when a list object satisfies both of the following conditions: a) The length in bytes of each element of the list object does not exceed the list-max-ziplist-value value; b) The number of elements in the list object does not exceed the list-max-ziplist-entries value.","DBPARAM_LIST_MAX_ZIPLIST_VALUE_DESC":"See the description of list-max-ziplist-entries.","DBPARAM_ZSET_MAX_ZIPLIST_ENTRIES_DESC":"Ziplist encoding is used when a zset object satisfies both of the following conditions: a) The length in bytes of each element of the zset object does not exceed the zset-max-ziplist-value value; b) The number of elements in the zset object does not exceed the zset-max-ziplist-entries value.","DBPARAM_ZSET_MAX_ZIPLIST_VALUE_DESC":"See the description of zset-max-ziplist-entries.","DBPARAM_LUA_TIME_LIMIT_DESC":"Lua script timeout limit in milliseconds. 0 or a negative value indicates that no timeout limit is used.","DBPARAM_IO_THREADS_DO_READS_DESC":"Whether to enable multi-thread reading.","DBPARAM_IO_THREADS_DESC":"Number of I/O threads.","DBPARAM_LOGFILE_DESC":"Whether to export log information to stdout or a log file.","DBPARAM_THREAD_POOL_WRITE_QUEUE_SIZE_DESC":"Write queue size of the thread pool.","DBPARAM_THREAD_POOL_SEARCH_QUEUE_SIZE_DESC":"Search queue size of the thread pool.","DBPARAM_ACTION_DESTRUCTIVE_REQUIRES_NAME_DESC":"Whether to forbid wildcards and _all during index deletion. You can set this parameter to false to allow wildcards and _all.","DBPARAM_HTTP_CORS_ENABLED_DESC":"Whether to enable cross-origin resource sharing.","DBPARAM_HTTP_CORS_ALLOW_ORIGIN_DESC":"Origins that can be used for cross-origin resource sharing.","DBPARAM_INDICES_FIELDDATA_CACHE_SIZE":"Maximum amount of heap space that can be used as the field datata cache.","DBPARAM_INDICES_MEMORY_INDEX_BUFFER_SIZE_DESC":"Size of heap space allocated to a node to be used as the indexing buffer shared across all shards. The value can be a percentage or byte size.","DBPARAM_INDICES_QUERIES_CACHE_SIZE_DESC":"Memory size for the filter cache. Accepts either a percentage value such as 5% or an exact value such as 512mb. The default value is 10%.","DBPARAM_INDICES_REQUESTS_CACHE_SIZE_DESC":"Size of the shard request cache managed at the node level. The default value is 1% of the heap space.","DBPARAM_REINDEX_REMOTE_WHITELIST_DESC":"Addresses of remote Elasticsearch nodes to be whitelisted so that reindexing is allowed. You can separate multiple addresses by commas (for example, otherhost:9200, 192.168.1.*:9200, localhost:*).","DBPARAM_CLUSTER_ROUTING_ALLOCATION_AWARENESS_ATTRIBUTES_DESC":"Attributes used for shard allocation awareness. The possible values are k8s_node_name and zone and you can separate two values by a comma.","DBPARAM_REPLICACOUNT_DESC":"Number of replicas for each shard. The value cannot be changed after the database cluster is created and the default value is 2.","DBPARAM_TCPPORT_DESC":"TCP port of the database cluster. The default value is 9000.","DBPARAM_HTTPPORT_DESC":"HTTP port of the database cluster. The default value is 8123.","DBPARAM_MAX_SERVER_MEMORY_USAGE":"Maximum amount of memory in bytes available to the ClickHouse server.","DBPARAM_MAX_MEMORY_USAGE":"Maximum amount of memory in bytes available to a single query of the ClickHouse server.","DBPARAM_AUTHENTICATION_TYPE":"Authentication Type","KAFKA_PARAMETERS":"Kafka parameters","KAFKA_USER_PARAMETERS":"User Quotas","ZOOKEEPER_PARAMETERS":"ZooKeeper parameters","KAFKA_EDIT_PARAMS_ERROR":"Failed to set parameters. When Authentication Type is set to TLS, TLS cannot be set to false.","DBPARAM_KAFKA_TLS_DESC":"Whether to enable TLS encryption.","DBPARAM_KAFKA_AUTHENTICATION_TYPE_DESC":"Authentication type of Kafka.","DBPARAM_NODE_PORT":"Node Port","DBPARAM_NODE_PORT_DESC":"Whether to enable KubeSphere node port for external access.","DBPARAM_LOG_RETENTION_BYTES_DESC":"Maximum size in bytes of a partition. The deletion policy will be triggered if a partition exceeds the limit.","DBPARAM_LOG_RETENTION_HOURS_DESC":"Maximum retention time in hours of a log file before deleting it.","DBPARAM_LOG_SEGMENT_BYTES_DESC":"Maximum size in bytes of a segment file.","DBPARAM_LOG_SEGMENT_DELETE_DELAY_MS_DESC":"Amount of time to wait before deleting a segment file.","DBPARAM_LOG_ROLL_HOURS_DESC":"Maximum time in hours before a new segment is rolled out.","DBPARAM_OFFSETS_TOPIC_REPLICATION_FACTOR":"Replication factor for the offsets topic (set higher to ensure availability). Internal topic creation will fail until the cluster size meets this replication factor requirement.","DBPARAM_LOG_CLEANUP_POLICY_DESC":"Default cleanup policy for segments beyond the retention window. The possible values are delete and compact and you can separate two values by a comma.","DBPARAM_LOG_CLEANER_ENABLE_DESC":"Whether to enable the log cleaner process on the server.","DBPARAM_COMPRESSION_TYPE_DESC":"Compression type of a topic.","DBPARAM_MESSAGE_MAX_BYTES_DESC":"Maximum size in bytes of a record batch.","DBPARAM_NUM_NETWORK_THREADS_DESC":"Number of threads that the server uses for receiving requests from the network and sending responses to the network.","DBPARAM_NUM_IO_THREADS_DESC":"Number of threads that the server uses for processing requests, which may include disk I/O.","DBPARAM_NUM_RECOVERY_THREADS_PER_DATA_DIR_DESC":"Number of threads per data directory to be used for log recovery at startup and flushing at shutdown.","DBPARAM_NUM_REPLICA_FETCHERS_DESC":"Number of fetcher threads used to replicate messages from a source broker.","DBPARAM_QUEUED_MAX_REQUESTS_DESC":"Number of queued requests allowed before blocking the network threads.","DBPARAM_REPLICA_LAG_TIME_MAX_MS_DESC":"If a follower has not sent any fetch requests or has not consumed up to the leaders log end offset for at least this time, the leader will remove the follower from the ISR.","DBPARAM_GROUP_MAX_SESSION_TIMEOUT_MS_DESC":"Maximum allowed session timeout for registered consumers.","DBPARAM_GROUP_MIN_SESSION_TIMEOUT_MS_DESC":"Minimum allowed session timeout for registered consumers.","DBPARAM_AUTO_CREATE_TOPICS_ENABLE_DESC":"Whether to enable automatic topic creation.","DBPARAM_MIN_INSYNC_REPLICAS_DESC":"Minimum number of replicas in the ISR set.","DBPARAM_DEFAULT_REPLICATION_FACTORS_DESC":"Default replication factor.","DBPARAM_TICKTIME_DESC":"Basic time unit in milliseconds used by ZooKeeper. It is used for heartbeats and the minimum session timeout will be twice the tickTime.","DBPARAM_INITLIMIT_DESC":"Maximum number of ticks allowed for a follower to connect to and sync data with the leader.","DBPARAM_SYNCLIMIT_DESC":"Maximum number of ticks allowed for a follower to sync data. If the synchronization process exceeds the limit, the follower will be discarded.","DBPARAM_MAXCLIENTCNXNS_DESC":"Maximum number of concurrent connections at the socket level that a single client (identified by IP address) can make to a single member of the ZooKeeper ensemble. This is used to prevent certain classes of DoS attacks such as file descriptor exhaustion.","DBPARAM_AUTOPURGE_SNAPRETAINCOUNT_DESC":"Number of most recent snapshots and the corresponding transaction logs retained when the ZooKeeper auto purge feature is enabled.","DBPARAM_AUTOPURGE_PURGEINTERVAL_DESC":"Interval in hours of auto purge operations. The value 0 indicates that auto purge is disabled.","KAFKA_USER_RESOURCE_NAME_EMPTY_ERROR":"Please enter a resource name.","DBPARAM_KAFKA_PARTITIONS_DESC":"Default number of topic partitions","DBPARAM_PRODUCER_BYTERATE_DESC":"The quota on the maximum number of bytes per second that each client group in the group can produce to the broker before being throttled. range ({min}-{max})","DBPARAM_CONSUMER_BYTERATE_DESC":"The quota on the maximum number of bytes per second that each client group in the group can consume from the broker before being throttled. range ({min}-{max})","DBPARAM_REAUSET_PERCENTAGE_DESC":"Maximum CPU utilization quota for each client group. range ({min}-{max})","DBPARAM_CONTROLLER_MUTATION_DESC":"The rate quota for create topic requests, create partition requests, and delete topic requests. range ({min}-{max})","ACTIVE_CONNECTIONS":"Active Connections","ACTIVE_SESSIONS":"Active Sessions","IDLE_IN_TRANSACTION":"Idle in Transaction","IDLE_CONNECTIONS":"Idle Connections","CACHE_HIT_RATIO":"Cache Hit Ratio","CACHE_HIT_RATIO_EACH_DATABASE":"Cache Hit Ratio of Each Database","ACTIVITY":"Activity","CONNECTIONS":"Connections","DATABASE_SIZE":"Database Size","QUERY_DURATION":"Query Duration","FETCHED_PER_SECOND":"Fetched Rows per Second","INSERTED_PER_SECOND":"Inserted Rows per Second","UPDATED_PER_SECOND":"Updated Rows per Second","DELETED_PER_SECOND":"Deleted Rows per Second","RETURNED_PER_SECOND":"Returned Rows per Second","KEY_COUNTERS":"Key Counters","CONFLICTS_PER_SECOND":"Conflicts per Second","DEADLOCKS_PER_SECOND":"Deadlocks per Second","COMMITS_PER_SECOND":"Commits per Second","ROLLBACKS_PER_SECOND":"Rollbacks per Second","MAX_TX_DURATION":"Maximum Transaction Duration","LOCKS":"Locks","ASYNC_NODE_NUMBER":"Async Nodes","INVALID_STATUS_NODE_NUMBER":"Invalid Nodes","NOT_RUNNING_NODE_NUMBER":"Not Running Nodes","UNHEALTH_NODE_NUMBER":"Unhealthy Nodes","DBPARAM_JMXOPTIONS_DESC":"disable, do not enable JMX; enable, enable JMX; password, enable JMX with password authentication","CLICKHOUSE_DATA_SIZE_ON_DISK":"MergeTree Table Data Size","QUERIES":"Queries","SELECT_QUERIES":"SELECT Queries","ALL_QUERIES":"All Queries","INSERTED_BYTES":"Inserted Data","INSERTED_ROWS":"Inserted Rows","MAXIMUM_REPLICATION_DEPLAY":"Maximum Replication Delay","RELATIVE_DELAY":"Relative Delay","ABSOLUTE_DELAY":"Absolute Delay","TOTAL_PARTS_OF_MERGETREE_TABLES":"Total Parts of MergeTree Tables","DELAYED_REJECTED_INSERTS":"Delay/Rejected Inserts","DELAYED_QUERIES":"Delayed Queries","DELAYED_BLOCKS":"Delayed Blocks","REJECTED_BLOCKS":"Rejected Blocks","DELAYED_DISTRIBUTED_FILES":"Delayed Distributed Files","READ_BYTES":"Read Bytes","UNCOMPRESSED":"Uncompressed","COMPRESSED":"Compressed","FILE_DESCRIPTOR":"File Descriptor","CLICKHOUSE_OS":"OS","MEMORY_FOR_QUERIES":"Memory for Queries","REPLICATION_QUEUE_JOBS":"Replication Queue Jobs","DATA_LOSS":"Data Loss","CHECK":"Checks","CHECK_FAIL":"Failed Checks","FETCH":"Fetches","FETCH_FAIL":"Failed Fetches","FETCH_MERGED":"Merged Part Fetches","REPLICATED_MERGED":"Successful Merges","MAX_QUEUE_SIZE":"Maximum Queue Size","MERGES":"Merges","MERGED_ROWS":"Merged Rows","MERGED_UNCOMPRESSED_BYTES":"Merged Uncompressed Bytes","ACTIVE_PARTS":"Active Parts","DETACHED_PARTS":"Detached Parts","MAX_PART_COUNT_FOR_PARTITION":"Maximum Parts for Partition","CLICKHOUSE_SERVER_PROCESS_MEMORY":"clickhouse-server Process Memory","PRIMARY_KEYS_MEMORY":"Memory for Primary Keys","DICTIONARY_MEMORY":"Dictionary Memory","MARKS_CACHE_HIT_RATE":"Mark Cache Hit Ratio","BACKGROUND_TASKS":"Background Tasks","MERGE_MUTATE_FETCH":"Merge/Mutate/Fetch","CLEAN_ALTER_REPLICA_REINIT":"Clean/Alter/Replica Re-init","MOVES":"Move","MUTATIONS":"Mutations","PARTS_TO_DO":"Parts to Do","CPU_TIME_PER_SECOND":"CPU Time per Second","DISK_READ_SYSCALL":"Disk Read Syscall","DISK_WRITE_SYSCALL":"Disk Write Syscall","NETWORK_RECEIVE":"Network Receive","NETWORK_SEND":"Network Send","REAL_TIME":"Real Time","USER_TIME":"User Time","SYSTEM_TIME":"System Time","OS_IO_WAIT":"OS I/O Wait","OS_CPU_WAIT":"OS CPU Wait","OS_CPU_VIRTUAL":"OS CPU Virtual Time","MAX_USED_CONNECTIONS":"Maximum Used Connections","THREADS":"Threads","PEAK_THREADS_CONNECTED":"Peak Threads Connected","PEAK_THREADS_RUNNING":"Peak Threads Running","AVG_THREADS_RUNNING":"Average Threads Running","ABORTED_CONNECTIONS":"Aborted Connections","ABORTED_CONNECTION_ATTEMPTS":"Aborted Connection Attempts","ABORTED_CLIENT_TIMEOUTS":"Client Timeouts","QUESTIONS":"Questions","SELECT_BY_TYPE":"Selects","SELECT_FULL_JOIN":"Select Full Join","SELECT_FULL_RANGE_JOIN":"Select Full Range Join","SELECT_RANGE":"Select Range","SELECT_FULL_RANGE":"Select Full Range","SELECT_RANGE_CHECK":"Select Range Check","SELECT_SCAN":"Select Scan","SORT_BY_TYPE":"Sorts","SORT_ROWS":"Sort Rows","SORT_RANGE":"Sort Range","SORT_MERGE_PASSES":"Sort Merge Passes","SORT_SCAN":"Sort Scan","SLOW_QUERIES":"Slow Queries","TABLE_LOCKS":"Table Locks","TABLE_LOCKS_IMMEDIATE":"Table Locks Immediate","TABLE_LOCKS_WAITED":"Table Locks Waited","TMP_TABLES_AND_FILES":"Temporary Tables and Files","CREATED_TMP_TABLES":"Created Temporary Tables","CREATED_TMP_DISK_TABLES":"Created Temporary Disk Tables","CREATED_TMP_FILES":"Created Temporary Files","MYSQL_NETWORK_TRAFFIC":"Network Traffic","MYSQL_INBOUND":"Inbound","MYSQL_OUTBOUND":"Outbound","CLUSTER_TASK_WAITING_TIME":"Cluster Task Waiting Time","CLUSTER_TASK_STATUS":"Cluster Task Status","CLUSTER_NUMBER_OF_IN_FLIGHT_FETCH":"In-Flight Fetches","CLUSTER_NUMBER_OF_PENDING_TASKS":"Pending Tasks","CLUSTER_NUMBER_OF_NODES":"Nodes","CLUSTER_NUMBER_OF_DATA_NODES":"Data Nodes","CLUSTER_NUMBER_OF_ALL_NODES":"All Nodes","SHARD_STATUS":"Shard Status","CLUSTER_DELAYED_UNASSIGNED_SHARDS":"Delayed Unassigned Shards","CLUSTER_INITIALIZING_SHARDS":"Initializing Shards","CLUSTER_RELOCATING_SHARDS":"Relocating Shards","CLUSTER_UNASSIGNED_SHARDS":"Unassigned Shards","CLUSTER_ACTIVE_PRIMARY_SHARDS":"Active Primary Shards","CLUSTER_ACTIVE_SHARDS":"Active Shards","CLUSTER_HEALTH_STATUS":"Cluster Health Status","CLUSTER_HEALTH_STATUS_GREEN":"Green","CLUSTER_HEALTH_STATUS_YELLOW":"Yellow","CLUSTER_HEALTH_STATUS_RED":"Red","HEAP_MEMORY":"Heap Memory","JVM_MEMORY_HEAP_USAGE_PER":"JVM Memory Heap Usage","DATA_AVAILABLE_BYTES":"Available Disk Space","DATA_AVAILABLE_PERCENT":"Available Disk Percentage","ECK_CPU_USAGE":"CPU Usage","OS_LOAD":"OS Load","OS_LOAD1":"OS Load (1 minute)","OS_LOAD5":"OS Load (5 minutes)","OS_LOAD15":"OS Load (15 minutes)","DOC_STATISTICS":"Doc Statistics","ELASTICSEARCH_INDICES_DOCS":"Docs","ELASTICSEARCH_INDICES_DOCS_DELETED":"Deleted Docs","ELASTICSEARCH_INDICES_INDEXING_INDEX_QPS":"Indexing QPS","ELASTICSEARCH_INDICES_SEARCH_QUERY_QPS":"Search QPS","ELASTICSEARCH_INDICES_INDEXING_TIME_MS":"Indexing Time","ELASTICSEARCH_INDICES_SEARCH_TIME_MS":"Search Time","CLUSTER_SHARDS_ACTIVE_PERCENT":"Active Shards","ONLINE_BROKER_COUNT":"Online Brokers","PARTITIONS_UNDER_MINIMUM_ISR":"Partitions Under Minium ISR","OFFLINE_PARTITION_COUNT":"Offline Partitions","TOPIC_INCOMING_DATA_RATE":"Incoming Bytes per Second","TOPIC_OUTGOING_DATA_RATE":"Outgoing Bytes per Second","TOPIC_INCOMING_MESSAGE_RATE":"Incoming Messages per Second","KAFKA_OPEN_FILE_DESC":"Open File Descriptors","TOPIC_OUTGOING_MESSAGE_RATE":"Total Produce Request Rate","NETWORK_PROCESSOR_AVG_IDLE_PERCENT":"Idle Network Processor Ratio","DISK_WRITES":"Disk Write","DISK_READS":"Disk Read","KAFKA_MEMORY_USAGE":"Memory Usage","KAFKA_CPU_USAGE":"CPU Usage","JVM_MEMORY_USAGE":"JVM Memory Usage","JVM_THREAD_COUNT":"JVM Threads","AVAILABLE_DISK_SPACE":"Available Disk Space","ALL_KAFKA_NODES":"All Kafka nodes","ALL_ZOOKEEPER_NODES":"All ZooKeeper nodes","OP_COUNTERS":"Operations","OP_INSERT":"Insert","OP_QUERY":"Query","OP_UPDATE":"Update","OP_DELETE":"Delete","OP_GETMORE":"Get More","OP_COMMAND":"Total","OPREPL_COUNTERS":"Replica Set Operations","OPREPL_INSERT":"Insert","OPREPL_QUERY":"Query","OPREPL_UPDATE":"Update","OPREPL_DELETE":"Delete","OPREPL_GETMORE":"Get More","OPREPL_COMMAND":"Total","CONNECTIONS_CURRENT":"Current","CONNECTIONS_TOTALCREATED":"Total Created","CONNECTIONS_AVAILABLE":"Available","CONNECTIONS_ACTIVE":"Active","CURSOR_COUNT":"Cursors","CURSOR_TIMEDOUT":"Timeout","CURSOR_OPEN_NOTIMEOUT":"No Timout","CURSOR_OPEN_PINNED":"Pinned","CURSOR_OPEN_TOTAL":"Total","MONGODB_NETWORK_TRAFFIC":"Network Traffic","NETWORK_BYTESIN":"Inbound Traffic","NETWORK_BYTESOUT":"Outbound Traffic","WIREDTIGER_OPERATION_COUNT":"WiredTiger Operations","WT_WRITE_OUT":"Concurrent Write Operations","WT_WRITE_AVAILABLE":"Available Concurrent Write Operations","WT_READ_OUT":"Concurrent Read Operations","WT_READ_AVAILABLE":"Available Concurrent Read Operations","DOC_COUNT":"Docs","DOC_DELETED":"Deleted Docs","DOC_INSERTED":"Inserted Docs","DOC_RETURNED":"Returned Docs","DOC_UPDATED":"Updated Docs","QUERYEXECUTOR":"Query Executor Metrics","SCANNEDKEYS":"Scanned Keys","SCANNEDDOCS":"Scanned Docs","ACTIVECLIENTS":"Active Clients","CLIENTS_TOTAL":"Total Clients","CLIENTS_READERS":"Read Clients","CLIENTS_WRITERS":"Write Clients","QUEUED_OPERATIONS":"Queued Requests","QUEUE_TOTAL":"Total","QUEUE_READERS":"Queued Read Requests","QUEUE_WRITERS":"Queued Write Requests","WIREDTIGER_CACHE":"WiredTiger Cache","WIREDTIGER_CACHE_USAGED":"Cache Usage","WIREDTIGER_CACHE_DIRTY_USAGE":"Dirty Data Ratio","OPENSEARCH_HEAP_MEMORY":"Heap Memory","OPENSEARCH_HEAP_MEMORY_PER":"Heap Memory Usage","OPENSEARCH_CPU_USAGE":"CPU Usage Percentage","OPENSEARCH_CPU_USAGE_PER":"CPU Usage","CPU_LOAD":"CPU Load","CPU_LOAD1":"CPU Load (1 minute)","CPU_LOAD5":"CPU Load (5 minutes)","CPU_LOAD15":"CPU Load (15 minutes)","EVENTS_STATISTICS":"Event Statistics","IN_EVENTS_STATISTICS":"Inbound Events","FILTERED_EVENTS_STATISTICS":"Filtered Events","OUT_EVENTS_STATISTICS":"Outbound Events","QUEUE_EVENTS_COUNT":"Events in Queue","JVM_THREADS_COUNT":"JVM Threads Count","DBPARAM_PIPELINE_WORKERS_DESC":"Number of Worker Threads","DBPARAM_PIPELINE_BATCH_SIZE_DESC":"Maximum number of events processed per batch by worker threads. Larger numbers consume more memory and require JVM heap adjustments.","DBPARAM_PIPELINE_BATCH_DELAY_DESC":"Maximum time in milliseconds that worker threads wait for a full batch before processing. ","DBPARAM_PIPELINE_UNSAFE_SHUTDOWN_DESC":"Whether to allow pipeline shutdown when events are still being processed.","DBPARAM_PIPELINE_ORDERED_DESC":"Pipeline event ordering setting. \"auto\" for automatic ordering, \"true\" for ordering with a single worker thread, \"false\" for no ordering.","DBPARAM_ECS_COMPATIBILITY_DESC":"Default value to use if the plugin supports ECS compatibility.","DBPARAM_LOG_LEVEL_DESC":"Logging Level","DBPARAM_LOG_FORMAT_DESC":"Logging Format","DBPARAM_LOG_JVM_DESC":"JVM heap size, typically set to 50%-75% of available memory. Defaults to 50% of available memory.","PREDIXY_MEMORY_USAGE":"Memory Usage","CLIENT_COUNT":"Clients","RECV_CLIENT_BYTES":"Bytes per Minute from Client","RECV_SERVER_BYTES":"Bytes per Minute from Server","SEND_CLIENT_BYTES":"Bytes per Minute to Client","SEND_SERVER_BYTES":"Bytes per Minute to Server","COMMANDS_EXECUTED_PER_MINUTE":"Commands Executed per Minute","REDIS_CLUSTER_COUNT":"Redis Clusters","REDIS_MEMORY_USAGE":"Memory Usage","REDIS_USED_MEMORY":"Used","REDIS_MAX_MEMORY":"Total","NETWORK_IO":"Network I/O","NETWORK_INPUT_BYTES":"Received Bytes (5 minutes)","NETWORK_OUTPUT_BYTES":"Sent Bytes (5 minutes)","TOP_5_REDIS_COMMANDS_PER_MINUTE":"Top 5 Commands per Minute","TOTAL_DB_KEYS":"Total Database Keys","DB_KEYS":"Database Keys","VALID_KEYS":"Valid Keys","EXPIRED_KEYS":"Expired Keys","KEYSPACE":"Keyspace","KEYSPACE_HITS_TOTAL":"Total Hits","KEYSPACE_MISSES_TOTAL":"Total Misses","MEMORY_FRAGMENTATION_RATIO":"Memory Fragmentation Ratio","REJECTED_CONNECTION_RATIO":"Ratio of Rejected Connections","REVICTED_KEY_RATIO":"Revicted Keys","QUORUM_SIZE":"Quorum","ZNODE_COUNT":"Znodes","WATCHER_COUNT":"Watchers","ZOOKEEPER_MEMORY_USAGE":"Memory Usage","ZOOKEEPER_CPU_USAGE":"CPU Usage","OPEN_FILE_DESCRIPTORS":"Open File Descriptors","REQUEST_LATENCY_AVERAGE":"Average Request Latency","REQUEST_LATENCY_MAXIMUM":"Maximum Request Latency","SHARD_COUNT":"Shards","SHARDS_DESC":"Number of shards. The value range is 1 to 100.","CK_REPLICAS_DESC":"Number of replicas for each shard. The value range is 1 to 3.","HTTP_PORT":"HTTP Port","HTTP_PORT_DESC":"The value range is 0 to 65535.","DATABASE_STORAGE_CLASS_DESC":"If no storage classs meets the requirements, please contact a platform administrator to create a storage class.","DATABASE_NODE_TIP":"A database node is a logical database instance rather than a physical server.","VALUE_RANGE_DESC":"The value range is {min} to {max}.","VALUE_MUST_BE_INTEGER":"The value must be an interger.","VALUE_CANNOT_BE_GREATER_THAN_VALUE":"The value cannot be greater than {max}.","VALUE_CANNOT_BE_LESS_THAN_20":"The value cannot be less than 20.","DATA_NODE_COUNT":"Data Nodes","STANDBY_DATABASE_COUNT":"Standby Databases","PROJECT_NAME_EXCEEDS_LIMIT":"The project name for MySQL 5.7 cannot exceed 16 characters.","APP_NAME_EXCEED_LIMIT":"The app name for MySQL 5.7 cannot exceed 14 characters.","DATABASE_KERNEL_VERSION_DESC":"Select the database version.","STANDBY_DATABASE_COUNT_DESC":"Number of standby databases. The value can be 1, 2, or 4.","VALUE_CANNOT_BE_LESS_THAN_10":"The value cannot be less than 10.","PRIMARY_NODE_SETTINGS":"Primary Node Settings","PRIMARY_NODE_RESOURCES_DESC":"Set the CPU and memory resources allocated to each primary node.","PRIMARY_NODE_COUNT":"Primary Nodes","PRIMARY_NODE_COUNT_DESC":"Set the number of primary nodes.","HOT_NODE_SETTINGS":"Hot Node Settings","HOT_NODE_RESOURCES_DESC":"Set the CPU and memory resources allocated to each hot node.","HOT_NODE_COUNT":"Hot Nodes","WARM_NODE_SETTINGS":"Warm Node Settings","WARM_NODE_RESOURCES_DESC":"Set the CPU and memory resources allocated to each warm node.","WARM_NODE_COUNT":"Warm Nodes","COLD_NODE_SETTINGS":"Cold Node Settings","COLD_NODE_RESOURCES_DESC":"Set the CPU and memory resources allocated to each cold node.","COLD_NODE_COUNT":"Cold Nodes","KIBANA_NODE_SETTINGS":"Kibana Node Settings","KIBANA_NODE_RESOURCES_DESC":"Set the CPU and memory resources allocated to each Kibana node.","KIBANA_NODE_COUNT":"Kibana Nodes","VOLUMN_PERSIST":"The size of the volume on the primary node is 20 GiB and cannot be modified.","REDIS_NODE":"Redis node","REDIS_NODE_COUNT":"Redis Nodes","REDIS_NODE_COUNT_DESC":"Number of nodes in the Redis cluster.","PROXY_NODE_COUNT":"Proxy Nodes","PROXY_NODE_RESOURCES":"Proxy Node Resources","ENDPOINT_TYPE":"External Access","ENDPOINT_TYPE_DESC":"Whether to use domain names to access database shards from outside the KubeSphere cluster.","ENDPOINT_TYPE_ERROR":"Before enabling this feature, ensure that no proxy nodes exist in the database cluster.","REDIS_PASSWORD_DESC":"The password can contain only uppercase letters, lowercase letters, numbers, and special characters (!@#$%^&*()./;). The length must be 6 to 31 characters.","INVALID_REDIS_PASSWORD_DESC":"Invalid password. The password can contain only uppercase letters, lowercase letters, numbers, and special characters (!@#$%^&*()./;). The length must be 6 to 31 characters.","VOLUME_CAPACITY_CANNOT_REDUCE":"The volume size cannot be reduced.","KAFKA_SETTINGS":"Kafka Settings","KAFKA_NODE_RESOURCES_DESC":"Set the CPU and memory resources allocated to each Kafka node.","KAFKA_VERSION":"Kafka Version","KAFKA_NODE_COUNT":"Kafka Nodes","ZOOKEEPER_SETTINGS":"ZooKeeper Settings","ZOOKEEPER_NODE_RESOURCES_DESC":"Set the CPU and memory resources allocated to each ZooKeeper node.","ZOOKEEPER_NODE_COUNT":"ZooKeeper Nodes","DASHBOARD_NODE_SETTINGS":"Dashboard Node Settings","DASHBOARD_NODE_RESOURCES_DESC":"Set the CPU and memory resources allocated to each dashboard node.","DASHOBOARD_NODE_COUNT":"Dashboard Nodes","LOGSTASH_NODE_SETTINGS":"Logstash Node Settings","LOGSTASH_NODE_RESOURCES_DESC":"Set the CPU and memory resources allocated to each Logstash node.","LOGSTASH_NODE_COUNT":"Logstash Nodes","MONGODB_NODE_COUNT_DESC":"Number of database nodes.","OTHER_APP_EMPTY_DESC":"This page shows apps that you installed by running the helm command.","OTHER_APP_PL":"Other Apps","UPLOAD_FAILED_MESSAGE":"Upload failed. {message}","GPU_USAGE_TIME":"GPU Usage ({time})","GPU_MEMORY_USAGE_TIME":"Graphics Memory Usage ({time})","PVC_USAGE_TOOLTIP_MESSAGE":"Persistent volume usage of the current project (the data may be inaccurate if file storage is used).","PROJECT_MEMBERS_AND_ROLES":"Project Members and Roles","RECENTLY_LOGGED_IN_MEMBERS":"Recently Logged In Users","PROJECT_ALERTS":"Project Alerts","ENT_CLUSTER_GATEWAY_GUIDE_DESC":"If the cluster gateway, workspace gateway and project gateway exist at the same time, the project gateway cannot be enabled after it is disabled. You are advised to used either the cluster gateway or workspace gateway.","WORKSPACE_GATEWAY_GUIDE_DESC":"If the workspace gateway and project gateway both exist, the project gateway cannot be enabled after it is disabled. You are advised to used either the workspace gateway or project gateway.","ROLL_BACK_MICROSERVICE_CONFIGURATION":"Roll Back Microservice Configuration","ROLLBACK_SUCCESSFUL":"Rolled back successfully.","HISTORICAL_VERSIONS":"Historical Versions","CONFIGURATION_CONTNET_TYPE":"Data ({type})","SQ_CONFIGURATION":"Microservice Configuration","SQ_CONFIGURATION_PL":"Microservice Configurations","SQ_CONFIGURATION_DESC":"Microservice configurations store key-value data to be used by microservices. You can use microservice configurations to separate a microservice from its configuration data.","SQ_CONFIGURATION_EMPTY_DESC":"Please create a microservice configuration. ","CONFIGURATION_STATUS_SUCCEEDED":"Published","CONFIGURATION_STATUS_FAILED":"Failed","CONFIGURATION_STATUS_":"Updating","DATA_ID":"Data ID","CREATE_CONFIGURATION":"Create Microservice Configuration","CONFIGURATION_CONTENT":"Data","CONFIGURATION_CONTENT_EMPTY_DESC":"Please enter configuration data.","EDIT_CONFIGURATION":"Edit Microservice Configuration","ORIGINAL_CONFIGURATION_CONTENT_READONLY":"Original Data (read-only)","CURRENT_CONFIGURATION_CONTENT":"New Data","REPLICATE":"Replicate","REPLICATE_CONFIGURATION_NAME":"Replicate Microservice Configuration {name}","SQ_CONFIGURATION_LOW":"microservice configuration","MICROSERVICE_GATEWAY":"Microservice Gateway","MICROSERVICE_GATEWAY_PL":"Microservice Gateways","MICROSERVICE_GATEWAY_DESC":"The microservice gateway forwards requests to microservices according to microservice routes so that microservices can be accessed by other microservices or clients.","MICROSERVICE_GATEWAY_EMPTY_DESC":"No Microservice Gateway Found","MICROSERVICE_GATEWAY_EMPTY_TIP":"Please create a microservice gateway.","GATEWAY_TYPE":"Gateway type","MICROSERVICE_GATEWAY_STATUS_RUNNING":"Running","MICROSERVICE_GATEWAY_STATUS_UPDATING":"Updating","MICROSERVICE_GATEWAY_STATUS_STOPPED":"Stopped","MICROSERVICE_GATEWAY_STATUS_":"Creating","CREATE_MICROSERVICE_GATEWAY":"Create Microservice Gateway","GATEWAY_IMAGE_EMPTY_DESC":"Please set the container image used to create the microservice gateway.","REPLICA_COUNT_EMPTY_DESC":"Please enter the number of replicas of the microservice gateway.","EDIT_MICROSERVICE_GATEWAY":"Edit Microservice Gateway","MICROSERVICE_GATEWAY_LOW":"microservice gateway","MICROSERVICE_ROUTE":"Microservice Route","MICROSERVICE_ROUTE_LOW":"microservice route","MICROSERVICE_ROUTE_PL":"Microservice Routes","MICROSERVICE_ROUTE_DESC":"The microservice gateway forwards requests to microservices according to microservice routes so that microservices can be accessed by other microservices or clients.","MICROSERVICE_ROUTE_EMPTY_DESC":"Please create a microservice route. Before creating a microservice route, ensure that a microservice gateway is available.","CREATE_MICROSERVICE_ROUTE":"Create Microservice Route","MICROSERVICE_ORDER":"Order","MICROSERVICE_ORDER_DESC":"Priority of the microservice route. A smaller number indicates higher priority.","MICROSERVICE_ROUTE_URL_DESC":"URL of a microservice.","PREDICATE":"Predicate","MICROSERVICE_ROUTE_FILTER":"Filter","EDIT_MICROSERVICE_ROUTE":"Edit Microservice Route","NO_INSTANCE_FOUND":"No Instance Found","MICROSERVICE_INSTANCE_PL":"Instances","MICROSERVICE_INSTANCE_STATUS":"Instance Status","MICROSERVICE_INSTANCE_ID":"Instance ID","SPRING_CLOUD_METADATA":"Spring Cloud Metadata","POD_METADATA":"Pod Metadata","SPRING_CLOUD_MONITORING":"Spring Cloud Monitoring","JVM_THREADS_LIVE":"Active Threads","JVM_THREADS_DAEMON":"Daemons","JVM_THREADS_PEAK":"Peak Threads","JVM_MEMORY_USED":"Used","JVM_MEMORY_COMMITTED":"Available","JVM_MEMORY_MAX":"Maximum","JVM_MEMORY_USED_METASPACE":"Initial","SPRING_BOOT_CONFIGURATION_INFOMATION":"Spring Boot Environment Variables {resources}","PROPERTY_NOT_SET":"No Environment Variable Found","POD_ENVIRONMENT_VARIABLE":"Pod Environment Variables","SPRING_CLOUD":"Spring Cloud","MICROSERVICE":"Microservice","MICROSERVICE_PL":"Microservices","MICROSERVICE_DESC":"In the Spring Cloud architecture, you can build a large scale application composed of multiple microservices. Microservices handle requests from clients. Each microservice contains one or more instances and each instance is a replica of the microservice.","WHAT_IS_SERVICE_REGISTRATION_CENTER_Q":"What is the service registry?","WHAT_IS_SERVICE_REGISTRATION_CENTER_A":"The service registry is the core functional component of the Spring Cloud microservice architecture. The service registry stores information about microservices and mapping between microservices and microservice addresses.","SERVICE_REGISTRY":"Service Registry","SERVICE_REGISTRY_ADDRESS":"Service registry address","DOWNLOAD_SAMPLE_CONFIGURATION":"Download Sample Configuration","INSTANCE":"Instance","INSTANCE_PL":"Instances","HEALTHY_INSTANCE":"Healthy instance","HEALTHY_INSTANCE_PL":"Healthy instances","MICROSERVICE_INSTANCE_COUNT":"Instances","MICROSERVICE_HEALTHY_INSTANCE_COUNT":"Healthy Instances","HEALTH_PROTECTION_TRIGGERED":"Health Protection Triggered","MICROSERVICE_EMPTY_DESC":"Please create a microservice.","SPRING_CLOUD_PROJECT_NOT_LABEL":"Spring Cloud stock project","SPRING_CLOUD_PROJECT_NOT_LABEL_DESC":"Whether to enable Spring Cloud under this project","OPEN_PROJECT_SPRING_CLOUD":"Enable Spring Cloud","MICROSERVICE_INSTANCE_STATUS_RUNNING":"Running","MICROSERVICE_INSTANCE_STATUS_OFFLINE":"Offline","EDIT_WEIGHT":"Edit Weight","INSTANCE_WEIGHT_DESC":"Weight of the microservice instance.","TAKE_ONLINE":"Take Online","TAKE_ONLINE_SUCCESS":"Take Online Success","CREATE_MICROSERVICE":"Create Microservice","ASC_EXPORT":"Ascending","DESC_EXPORT":"Descending","LOG_EXPORT":"Log Export","END_USER_SOFTWARE_LICENSE_AGREEMENT":"End User Software License Agreement","END_USER_SOFTWARE_LICENSE_AGREEMENT_LINK":"End User Software License Agreement","PLEASE_AGREE_USER_SOFTWARE_LICENSE_AGREEMENT":"Please agree to the End User Software License Agreement.","WORKSPACE_GATEWAY_DESC":"Set up and manage the configuration of the external network access gateway and service management in the workspace and project.","WORKSPACE_GATEWAY":"Workspace Gateway","WORKSPACE_GATEWAY_LOW":"workspace gateway","PROJECT_ENABLE_GATEWAY_DESC_WS":"If you need to set up a project gateway, please go to the corresponding project to open it.","CLUSTER_GATEWAY_GUIDE_DESC_WS":"If the cluster gateway and workspace gateway both exist, the workspace gateway cannot be enabled after it is disabled. You are advised to used either the cluster gateway or workspace gateway.","CLUSTER_NOT_SUPPORT_WORKSPACE_GATEWAY":"This cluster does not support this feature. If you need to use this feature, please upgrade the cluster to KubeSphere Enterprise 3.4.0 or later.","STORAGE_RELATED_RESOURCE_LIMIT":"Limit on Resources Bound with Storage Class","TOTAL_STORAGE_CLASS":"Total Storage Classes","LIMITED_STORAGE_CLASS":"Number of Limited Storage Classes","RELATED_RESOURCE_QUOTA":"Bound Resource Quota","REQUESTS_STORAGE":"PVC Limit","PERSISTENTVOLUMECLAIMS":"PVC","TOTAL_STORAGE_RESOURCE":"Total Storage Resources","STORAGE_RELATED_RESOURCE":"Storage Class Bound Resources","TOTAL_STORAGE_LIMIT_LESS_THAN_RELATE_RESOURCE":"The total limit of storage resources cannot be less than that of bound resources.","VOLUME_TOTAL_CAPACITY":"Total Capacity of PVCs ({unit})","VOLUME_MAX_NUM":"Total PVCs","SET_RELATED_STORAGE_CLASS_QUOTA":"Set the quota for the PVC bound with the storage class.","SELECT_STORAGE_CLASS":"Select Storage Class","STORAGE_QUOTA":"Storage Resource Quota","WS_STORAGE_QUOTA_DESC":"Limit the the total amount of storage resources under the workspace.","NS_STORAGE_QUOTA_DESC":"Limit the the total amount of storage resources under the project.","STORAGE_VOLUME_LIMIT_NO_LIMIT":"Resource limits: no limit on the PVC capacity","STORAGE_VOLUME_LIMIT_HAS_A_LIMIT":"Resource limits: PVC capacity {num} Gi","STORAGE_PERSISTENT_VOLUME_NO_LIMIT":"No limit on the number of PVCs.","STORAGE_PERSISTENT_VOLUME_HAS_A_LIMIT":"number of PVCs {num}","STORAGE_LIMIT":"PVC capacity limit","STORAGE_CLASS_VOLUME":"Number of PVCs","SELECT_A_STORAGECLASS":"Select Storage Class","VOLUME_COUNT":"Bound PVCs","SELECT_ADD_CLUSTER_METHOD":"Choose how to add a cluster","SELECT_ADD_CLUSTER_METHOD_DESC":"Support for adding new clusters and importing existing clusters.","CLUSTER_NODE_SETTINGS_DESC":"add the nodes for the cluster","K8S_CLUSTER_SETTINGS_DESC":"Initially configure the new Kubernetes cluster.","CLUSTER_MAX_PODS_DESC":"maxPods is the number of pods that can run on this Kubelet. [Default: 110].","KUBE_PODS_CIDR_DESC":"The pod running on the node allocates IP addresses from the node's pod CIDR range.","KUBE_SERVICE_CIDR_DESC":"IP address range assigned to the service.","CLUSTER_COMPONENTS_DESC":"Customize the service components of the cluster.","CLUSTER_ADVANCED_SETTINGS_DESC":"You can configure the services you need according to your needs.","CLUSTER_PRIVATE_REGISTRY_DESC":"Configure a private registry for the cluster. The cluster will use this registry to pull all the required mirrors.","CLUSTER_CONTROLPLANE_ENDPOINT":"Cluster Access EndPoint","CLUSTER_CONTROLPLANE_ENDPOINT_DESC":"Directly communicate with the cluster through the authorized cluster access address, and generate kubeconfig for the cluster to access the cluster.","CLUSTER_ETCD_BACKUP_DESC":"Make regular backup settings for etcd","CLUSTER_ETCD_BACKUP_DIR_DESC":"The location to store etcd backups files on etcd host machines.","CLUSTER_ETCD_BACKUP_PERIOD_DESC":"Period of running backup etcd job, the unit is minutes.","CLUSTER_ETCD_BACKUP_NUMBER_DESC":"How many backup replicas to keep.","CLUSTER_KUBESPHERE_SETTINGS_DESC":"Customized settings for KubeSphere","MASTER_NODE_COUNT_TIP":"The number of Master nodes needs to be 1 or 3","WORKER_NODE_COUNT_TIP":"The number of Worker nodes is at least 1","HOW_TO_ADD":"How to Add","DOMAIN":"Domain","NODE_ROLE_EMPTY_DESC":"Please set the role of the node in the cluster.","EXTERNAL_IP":"External IP Address","SSH_KEY_TCAP":"SSH Key","SSH_KEY_SCAP":"SSH key","SSH_AUTH_MODE":"SSH Authentication Mode","NODE_INTERNAL_IP_DESC":"Set the internal IP address of the node in the KubeSphere cluster.","NODE_INTERNAL_IP_EMPTY_DESC":"Please set the internal IP address of the node in the KubeSphere cluster.","NODE_ROLE_DESC":"Set the role of the node in the cluster.","NODE_EXTERNAL_IP_DESC":"Enter the node IP address and port number used for SSH login.","NODE_EXTERNAL_IP_EMPTY_DESC":"Please enter the node IP address and port number used for SSH login.","SSH_AUTH_MODE_DESC":"Select an SSH authentication mode.","NODE_USERNAME_DESC":"Enter the username used for SSH login.","NODE_PASSWORD_DESC":"Enter the password used for SSH login.","ADD_NODE_TO_THE_CLUSTER":"Add node to the cluster","WORKSPACE_CLUSTERS_DESC":"The cluster information shows how cluster resources are used in the workspace.","DEVOPS_PROJECT_NUMBER":"DevOps Projects","PROJECT_NUMBER":"Projects","VIEW_WORKSPACE":"View Workspace","MEMBERS":"Members","PRIVATE_REGISTRY":"Private Registry","ALERT_TYPE":"{type} Alert","CURRENT_VERSION":"Current version","UPGRADE":"Upgrade","DAYS":"days","WEEKS":"weeks","FILE_OVERSIZED_TIP":"The file size must be less than 2 MB.","NEW_CLUSTER":"New Cluster","IMPORT_CLUSTER":"Import Cluster","NODE_SETTINGS":"Node Settings","PLEASE_ADD_AT_LEAST_ONE_CLUSTER_NODE":"Please add at least one cluster node","NETWORK_PLUGIN":"Network Plugin","MAX_PODS":"Max Pods","PODS_CIDR":"Pods CIDR","SERVICE_CIDR":"Service CIDR","DEFAULT_STORAGE_PLUGIN":"Default Storage Plugin","PRIVATE_REGISTRY_CONFIGURATION":"Private Registry Configuration","ETCD_BACKUP":"etcd Backup","ETCD_BACKUP_DIR":"etcd Backup Dir","ETCD_BACKUP_PERIOD":"etcd Backup Period","KEEP_BACKUP_NUMBER":"Keep Backup Number","KUBESPHERE_SETTINGS":"KubeSphere Settings","ADD_NODE_TYPE":"Add Node Type","NODE_TYPE_DESCRIPTION_DEC":"The description will help users to select nodes types and use the cluster.","TYPE_NAME":"Type Name","REPO_URL":"Repository URL","REVISION_ID":"Revision ID","CONFIGURE":"Configure","CURRENT_THIRD_PARTY_LOGIN_CONFIGURATIONS":"Current third-party login configurations","NOT_CONFIGURED":"not configured","PLEASE_INPUT_CLIENT_ID":"Please input client ID.","PLEASE_INPUT_SERVER_ADDRESS":"Please input server address.","PROTOCOL_TYPE":"Protocol Type","SERVER_ADDRESS":"Server Address","THIRD_PARTY_LOGIN":"Third-party Login","THIRD_PARTY_LOGIN_DESC":"When a third part service is used for login, users need to enter related information. After that, a local user will be created which is associated with the user for the secure login in the environment.","THIRD_PARTY_LOGIN_Q":"What third parties are supported for login?","THIRD_PARTY_LOGIN_A":"LDAP, AD, OAuth and Github OAuth are supported.","OAUTH_DESC":"OAuth is an open standard that provides an easy and secure way for users to grant access to their resources.","GITHUB_OAUTH_DESC":"GitHub OAuth grants access based on organization membership.","CLIENT_ID":"Client ID","HOW_TO_OBTAIN_A_GITHUB_CLIENT_ID":"How to obtain a GitHub Client ID?","CLIENT_SECRET":"Client Secret","MODIFY_MEMBER_ROLE":"Modify Member Role","KS_DESCRIPTION":"KubeSphere is an open-source project aiming to provide enterprise-grade multi-tenant container platform on top of Kubernetes, the current mainstream container orchestration platform. It provides easy-to-use interface and wizard-style operations, reducing the learning curve and operating cost of Kubernetes in terms of the daily work of development, test and maintenance.","REPS_ADDRESS":"GitHub","ISSUE_FEEDBACK":"Feedback","PART_IN_DISCUSSION":"Discussion","CODE_CONTRIBUTE":"Contribution","GITHUB_STAR":"Star","DESELECT_RESOURCE_FIRST":"Please deselect {resource} first.","NO_AUTHORIZED_USER_DESC":"This role has not been assigned to any user.","PLATFORM_ROLE_PL":"Platform Roles","PLATFORM_ROLE_EMPTY_DESC":"Please create a platform role.","ROLE_USERS_MANAGER":"Manage all users on the KubeSphere platform.","ROLE_WORKSPACES_MANAGER":"Manage all workspaces on the KubeSphere platform.","ROLE_PLATFORM_ADMIN":"Manage all resources on the KubeSphere platform.","ROLE_PLATFORM_REGULAR":"Cannot access any resources before joining a workspace.","ROLE_PLATFORM_SELF_PROVISIONER":"Create workspaces and become an administrator of the created workspaces.","CREATION_TIME_TCAP":"Creation Time","CREATE_PLATFORM_ROLE":"Create Platform Role","PERMIGROUP_CLUSTERS_MANAGEMENT":"Clusters","PERMISSION_CLUSTERS_VIEW":"Cluster Viewing","PERMISSION_CLUSTERS_VIEW_DESC":"View all clusters and cluster resources.","PERMISSION_CLUSTERS_MANAGEMENT":"Cluster Management","PERMISSION_CLUSTERS_MANAGEMENT_DESC":"Create clusters, delete clusters, and manage resources in all clusters.","PERMIGROUP_ACCESS_CONTROL":"Access Control","PERMISSION_WORKSPACES_VIEW":"Workspace Viewing","PERMISSION_WORKSPACES_VIEW_DESC":"View workspaces.","PERMISSION_WORKSPACES_MANAGEMENT":"Workspace Management","PERMISSION_WORKSPACES_MANAGEMENT_DESC":"Create, edit, delete, and view workspaces.","PERMISSION_WORKSPACES_CREATE":"Workspace Creation","PERMISSION_WORKSPACES_CREATE_DESC":"Create workspaces and become an administrator of the created workspaces.","PERMISSION_USERS_VIEW":"User Viewing","PERMISSION_USERS_VIEW_DESC":"View users.","PERMISSION_USERS_MANAGEMENT":"User Management","PERMISSION_USERS_MANAGEMENT_DESC":"Create, edit, and delete users.","PERMISSION_ROLES_VIEW":"Role Viewing","PERMISSION_ROLES_VIEW_DESC":"View platform roles.","PERMISSION_ROLES_MANAGEMENT":"Role Management","PERMISSION_ROLES_MANAGEMENT_DESC":"Create, edit, and delete platform roles.","PERMIGROUP_APPS_MANAGEMENT":"Apps","PERMISSION_APP_TEMPLATES_VIEW":"App Viewing","PERMISSION_APP_TEMPLATES_VIEW_DESC":"View the platform App Store.","PERMISSION_APP_TEMPLATES_MANAGEMENT":"App Template Management","PERMISSION_APP_TEMPLATES_MANAGEMENT_DESC":"Manage the platform App Store and life cycles of cloud-native applications.","PERMIGROUP_PLATFORM_SETTINGS":"Platform Settings","PERMISSION_PLATFORM_SETTINGS_MANAGEMENT":"Platform Settings Management","PERMISSION_PLATFORM_SETTINGS_MANAGEMENT_DESC":"View and edit settings of the KubeSphere platform.","DELETING_PRESET_ROLES_NOT_ALLOWED":"Preset roles cannot be deleted.","CONFIRM_PASSWORD_TIP":"Please enter the new password again.","CHANGE_PASSWORD":"Change Password","NEW_PASSWORD":"New Password","PASSWORD_STRENGTH":"Password Strength","PASSWORD_STRENGTH_DESC":"Avoid using weak passwords or passwords of other accounts.","TIME":"Time","SOURCE_IP_ADDRESS":"Source IP Address","LOGIN_HISTORY":"Login History","NO_LOGIN_HISTORY":"No login history is found.","SUCCESSFUL":"Successful","FAILED":"Failed","USER_DESC":"Manage users and their roles.","USER_PL":"Users","NOT_LOGIN_YET":"Not logged in yet","USER_EMPTY_DESC":"Please create a user.","USER_ACTIVE":"Active","USER_AUTHLIMITEXCEEDED":"Login restricted","USER_PENDING":"Pending","USER_DISABLED":"Disabled","LAST_LOGIN":"Last Login","USERNAME_DESC":"The username can contain only lowercase letters, numbers, hyphens (-), and dots (.), and must start and end with a lowercase letter or number. The maximum length is 32 characters.","PASSWORD_DESC":"The password must contain at least one number, one lowercase letter, one uppercase letter, and one special character (~!@#$%^&*()-_=+\\|[{}];:'\",<.>/? or space). The length must be 8 to 64 characters.","PASSWORD_INVALID_DESC":"Invalid password. The password must contain at least one number, one lowercase letter, and one uppercase letter. The length must be 8 to 64 characters.","PLATFORM_ROLE_DESC":"Set the role of the user on the KubeSphere platform.","USER_SETTING_EMAIL_DESC":"The email address can be used to log in to the KubeSphere web console.","USERNAME_EXISTS":"The username already exists. Please enter another username.","USERNAME_EMPTY_DESC":"Please enter a username.","PLATFORM_ROLE":"Platform Role","CREATE_USER":"Create User","EMAIL":"Email","EMAIL_EXISTS":"The email address already exists. Please enter another email address.","USERNAME_INVALID":"Invalid username. {message}","USERNAME":"Username","PASSWORD":"Password","EDIT_USER":"Edit User","USER_LOW":"user","DELETING_CURRENT_USER_NOT_ALLOWED":"The current user cannot be deleted.","WORKSPACE_PL":"Workspaces","WORKSPACE_DESC":"A workspace is an isolated logical unit used to organize projects and DevOps projects, manage resource access, and share information within your team.","KS_WORKSPACE_PL":"KS Workspaces","KS_WORKSPACE_DESC":"A KS workspace is an isolated logical unit used to organize projects and DevOps projects, manage resource access, and share information within your team.","EDGE_WORKSPACE_PL":"Edge Workspaces","EDGE_WORKSPACE_DESC":"A edge workspace is an isolated logical unit used to organize projects and DevOps projects, manage resource access, and share information within your team.","CLUSTER_PL":"Clusters","ALL_CLUSTERS":"All Clusters","CREATE_WORKSPACE":"Create Workspace","CREATE_KS_WORKSPACE":"Create KS Workspace","CREATE_EDGE_WORKSPACE":"Create Edge Workspace","WORKSPACE_NAME_EMPTY_DESC":"Please enter a workspace name.","WORKSPACE_CREATE_DESC":"Set the basic information about the workspace.","ADMINISTRATOR":"Administrator","WORKSPACE_NAME_EXISTS_DESC":"The workspace name already exists.","INVALID_WORKSPACE_NAME":"Invalid workspace name.","SELECT_CLUSTERS_DESC":"Select clusters to be used in the workspace.","NO_CLUSTER_AVAILABLE":"No Cluster Available","NO_CLUSTER_AVAILABLE_DESC":"No cluster is available. After the workspace is created, please contact the platform or cluster administrator to authorize a cluster to the workspace.","WORKSPACE_NO_CLUSTER_TIP":"Please contact the platform or cluster administrator to authorize a cluster to the workspace.","AVAILABLE_CLUSTERS":"Available Clusters","CLUSTER_SETTINGS_LIMIT_DESC":"Please select at least one cluster.","CLUSTER_SETTINGS":"Cluster Settings","SELECT_HOST_CLUSTER_WARNING":"The current system is a multi-cluster system. Please avoid creating resources in the host cluster if possible. Excessive loads in the host cluster will decrease the stability of the multi-cluster system.","DELETE_WORKSPACE":"Delete Workspace","WORKSPACE_LOW":"workspace","BACK":"Back","AGREE":"Agree","APP_DEPLOY_AGREEMENT":"Deployment Agreement","APP_DEPLOY_AGREEMENT_DESC_1":"You must abide by the open-source agreement of the application.","APP_DEPLOY_AGREEMENT_DESC_2":"Any consequences arising from your deployment of the application shall be borne by you. For support services, please contact the developer.","DO_NOT_REMIND_AGAIN":"Do not remind me again","LOCATION":"Location","CLUSTER_NAME_DESC":"The name can contain only lowercase letters, numbers, and hyphens (-), must start with a lowercase letter, and must end with a lowercase letter or number. The maximum length is 32 characters.","FEDPROJECT_CANNOT_DEPLOY_APP_TIP":"The app cannot be deployed in a multi-cluster project.","LATEST_VERSION_SCAP":"Latest version","WORKSPACE_EMPTY_DESC":"Please select a workspace","VERSION_EMPTY_DESC":"Please select a version.","HELM_APP_SCHEMA_FORM_TIP":"You can customize the app settings in a GUI form or a YAML file. Settings in the GUI form and those in the YAML file are independent of each other.","DEPLOYED_SUCCESSFUL":"Installed successfully.","APP_INFORMATION":"App Information","VERSION_NUMBER":"Version Number","APP_SCREENSHOTS":"App Screenshots","CATEGORY_COLON":"Category:","HOMEPAGE_COLON":"Homepage:","RELEASE_DATE_COLON":"Release Date:","APP_ID_COLON":"App ID:","SOURCE_CODE_ADDRESS_COLON":"Source Code Address:","APP_VERSIONS_TITLE":"Versions (only the latest 10 versions will be displayed)","MAINTAINER_COLON":"Maintainer:","VERSIONS":"Versions","KEYWORDS":"Keywords","NONE":"None","APP_INTRODUCTION":"App Introduction","APP_DETAILS":"App Details","NO_DOCUMENT_DESC":"No documentation is found.","VERSION_INTRO_EMPTY_DESC":"No introduction to this version is found.","CHART_FILES":"Chart Files","NO_APP_CHART_FILE_FOUND":"No chart file of the app is found.","APP_STORE":"App Store","HOME_APP_STORE_DESC":"The official App Store of KubeSphere provides deployment and management features that allow users to quickly deploy apps with one click based on app templates.","DISCOVER":"Discover","NEW_APPS":"New Apps","APP_CATE_ALL":"All","APP_CATE_UNCATEGORIZED":"Uncategorized","APP_CATE_MESSAGE_QUEUEING":"Message Queuing","APP_CATE_IMAGE_REGISTRY":"Image Registry","APP_CATE_PROMETHEUS_EXPORTER":"Prometheus Exporter","APP_CATE_WEB_SERVER":"Web Server","APP_CATE_NETWORKING":"Networking","APP_CATE_DATABASE_CACHE":"Database & Cache","APP_CATE_STORAGE":"Storage","MAINTAINER_VALUE":"Maintainer: {value}","LATEST_VALUE":"Latest: {value}","TOTAL_CATE_COUNT":"Total Apps: {total}","SEARCH_BY_NAME":"Search by name","APP_SETTINGS":"App Settings","APP_CATEGORY_PL":"App Categories","APP_CATEGORIES_DESC":"Manage categories of apps released to the App Store. You can create, edit, delete, and change app categories.","ALL_CATEGORIES_VALUE":"All Categories ({value})","APP_CATEGORY_EMPTY_DESC":"No apps belong to the category.","ENTER_CATEGORY_NAME_TIP":"Please enter a category name.","CATEGORY_NAME_DESC":"The name can contain any characters and the maximum length is 20 characters.","DELETE_CATEGORY_DESC":"Are you sure you want to delete the category {name}?","CHANGED_SUCCESSFULLY":"Changed successfully.","CHANGE_CATEGORY":"Change Category","CHANGE_CATEGORY_DESC":"The app category determines the classification of the app in the App Store.","APP_DETAILS_DESC":"View details of the app to be released.","INTRODUCTION":"Introduction","SERVICE_PROVIDER_WEBSITE":"Service provider website","APP_DESCRIPTION":"App Description","DOCUMENTATION":"Documentation","NO_DOCUMENT_FOUND":"No Documentation Found","UPDATE_TIME_COLON":"Update time: ","UPDATE_LOG":"Update Log","NO_UPDATE_LOG_DESC":"No update log is found.","REJECT":"Reject","REJECT_REASON_DESC":"Enter reasons for rejection of the app review.","REJECT_REASON_TIP":"Please enter at least one reason for rejection.","REJECT_SUCCESSFUL":"Rejected successfully.","APPROVE":"Approve","RELEASE_SUCCESSFUL":"Released successfully.","APP_REVIEW":"App Review","APP_REVIEW_DESC":"Review apps to be released to the App Store.","NEW_SUBMIT":"New","APP_REVIEW_EMPTY_DESC":"Please create an app template in a workspace and submit the app template for review.","APP_STATUS_TO_BE_REVIEWED":"To be reviewed","APP_STATUS_PASSED":"Approved","APP_STATUS_SUSPENDED":"Suspended","APP_STATUS_REJECTED":"Rejected","APP_STATUS_IN_REVIEW":"Reviewing","OPERATOR":"Operator","APP_REVIEW_UNPROCESSED_EMPTY_DESC":"No App Needs to Be Reviewed","SUSPEND":"Suspend","APP_NOTE":"Note","SUSPEND_SUCCESSFUL":"Suspended successfully.","RELEASE":"Release","ACTIVATE_SUCCESSFUL":"Released successfully.","APP_ID":"App ID","CATEGORY":"Category","TYPE":"Type","DEVELOPER":"Developer","NO_VERSION_INFO_DESC":"No version information is found.","ACTIVATE_VERSION":"Activate Version","CANCEL_SUBMISSION":"Cancel Submission","SUSPEND_VERSION":"Suspend Version","APP_SUSPEND_TIP":"The app {name} cannot be deployed from the App Store after it is suspended. Are you sure you want to suspend it?","APP_RECOVER_TIP":"The app {name} and the suspended versions will be displayed again in the App Store. Are you sure you want to activate it now?","REJECTION_REASON":"Rejection Reason","RELEASE_RECORD":"Release Record","RELEASE_RECORD_EMPTY_DESC":"No release record is found.","APPS":"Apps","APP_STORE_MANAGEMENT":"App Store Management","APP_STORE_DESC":"Manage apps in the App Store. You can view app information, release apps, and suspend apps.","APP_CATEGORY":"App Category","APP_EMPTY_DESC":"Please create an app template in a workspace and release it to the App Store.","CRONJOB_EMPTY_DESC":"Please create a cronjob.","EVERY_DAY":"0 0 * * * (every day)","EVERY_HOUR":"0 * * * * (every hour)","EVERY_MONTH":"0 0 1 * * (every month)","EVERY_WEEK":"0 0 * * 0 (every week)","PAUSE":"Pause","START":"Start","DAEMONSETS":"Daemonsets","DAEMONSET_EMPTY_DESC":"Please create a daemonset.","MIN_READY_SECONDS":"Minimum Running Time for Pod Readiness (s)","MAX_UNAVAILABLE_PODS":"Maximum Unavailable Pods","ROLLING_UPDATE_SETTINGS":"Rolling Update Settings","MAX_UNAVAILABLE_PODS_DESC":"Maximum number or percentage of unavailable pod replicas allowed during the update process.","MIN_READY_SECONDS_DESC":"Minimum stable running time required for a pod replica to be considered ready.","MIN_READY_SECONDS_EMPTY":"Please set the minimum stable running time required for a pod replica to be considered ready.","MAX_UNAVAILABLE_EMPTY":"Please set the maximum number or percentage of unavailable pod replicas allowed during the update process.","FAILURE_THRESHOLD":"Failure Threshold","HTTP_REQUEST":"HTTP Request","INITIAL_DELAY_S":"Initial Delay (s)","INITIAL_DELAY_TIMEOUT_VALUE":"{delay}s initial delay, {timeout}s timeout period","PROBE_TIME":"{delay}s delay, {timeout}s timeout","TIMEOUT_PERIOD_S":"Timeout (s)","CHECK_INTERVAL_S":"Check Interval (s)","SUCCESS_THRESHOLD":"Success Threshold","INITIAL_DELAY_DESC":"Delay time before the probe is initiated after container startup. The value must be an integer and the minimum value is 0.","TIMEOUT_PERIOD_DESC":"Timeout period after which the probe times out and is considered failed. The value must be an integer and the minimum value is 1.","CHECK_INTERVAL_DESC":"Interval between check attempts. The value must be an integer and the minimum value is 1.","SUCCESS_THRESHOLD_DESC":"Minimum number of consecutive successes for the probe to be considered successful after having failed. The minimum value is 1 and the value must be 1 for liveness and startup probes.","FAILURE_THRESHOLD_DESC":"Minimum number of consecutive failures for the probe to be considered failed after having succeeded. The minimum value is 1.","PROBE_COMMAND_EMPTY":"Please enter at least one command.","TCP_PORT":"TCP Port","MOUNT_PATH_IN_USE":"The mount path is already in use. Please enter another mount path.","CREATOR":"Creator","NO":"No","EDIT_CONTAINER":"Edit Container","MULTI_CLUSTER_RESOURCE_TIP":"The current resource is deployed across multiple clusters. You can click a cluster to view the resource settings in the cluster.","NODE":"Node","SERIAL_NUMBER":"Serial number","CREATED_TIME":"Created at {diff}","EVENT_PL":"Events","EVENT_NORMAL":"Normal","EVENT_WARNING":"Warning","APPLICATION_WORKLOAD_PL":"Application Workloads","WORKLOAD_PL":"Workloads","DEPLOYMENTS":"Deployments","UPDATE_TIME_TCAP":"Update Time","ALL_PROJECTS":"All projects","SHOW_NUM":"Show: {num}","SELECT_PROJECT_DESC":"Select a project in which the resource is to be created.","PROJECT_NOT_SELECT_DESC":"Please select a project.","BASIC_INFORMATION":"Basic Information","NAME":"Name","FEDPROJECT_RESOURCE_TIP":"To create workload resources in a multi-cluster project, go to the Workloads page in the multi-cluster project.","FINISHED":"Done","NOT_SET":"To do","CURRENT":"Current","PROJECT":"Project","PREVIOUS":"Previous","NOTE":"Note","IMAGE":"Image","IMAGE_VALUE":"Image: {value}","PORT_NUMBER_EMPTY":"Please enter a port number.","USER":"User","VOLUME_NAME_EXIST":"The volume name already exists.","SELECT_TYPE":"Select {type}","SPECIFY_SUBPATH":"Specify Subpath","SPECIFY_SUBPATH_TIP":"Specify a volume subpath to be mounted to the container.","MOUNT_PATH":"Mount path","MOUNT_PATH_NOT_SPECIFIED":"Please select a key to be mounted and the mount path of the key.","MOUNT_PATH_EMPTY":"Please enter a mount path.","MOUNT_PATH_REPEATED":"The mount path is duplicated.","NETWORK_SEGMENT_SCAP":"Network segment","AVAILABLE_ADDRESSES":"Available addresses","POD_IP_POOL":"Pod IP Pool","SUBPATH":"Subpath","ANNOTATION_PL":"Annotations","CREATE_SUCCESSFUL":"Created successfully.","STOP":"Stop","STOP_TITLE_SI":"Stop {type}","STOP_TITLE_PL":"Stop Multiple {type}","STOP_DESC":"Are you sure you want to stop the resource?","END_TIME":"End Time","SN_NO":"No.","START_TIME":"Start Time","NODE_IP_ADDRESS":"Node IP Address","CLUSTER":"Cluster","CONTAINER_PL":"Containers","PROBE_PL":"Probes","HOOK_PL":"Hooks","CONTAINER_LOGS_NOT_SUPPORTED":"The container does not support real-time logs currently. Please try again later.","CONTAINER_LOGS":"Container Logs","COMMAND":"Command","IMAGE_ID":"Image ID","IMAGE_PULL_POLICY":"Image Pull Policy","CONTAINER_DETAILS_PAGE_SCAP":"Container details page.","CPU_VALUE":"CPU: {value, plural, =1 {1 core} other {# cores}}","MEMORY_VALUE":"Memory: {value}","NVIDIA_COM_GPU_VALUE":"GPU: {value}","LOADING":"Loading...","RESOURCE_LIMITS":"Resource Limits","RESOURCE_REQUESTS":"Resource Requests","TERMINAL":"Terminal","RESTART_PL":"Restarts","RESTART":"Restart","STORAGE_DEVICES":"Storage Devices","LIVENESS_PROBE":"Liveness Probe","READINESS_PROBE":"Readiness Probe","STARTUP_PROBE":"Startup Probe","REQUEST_TYPE":"Request type","NO_LOG_DATA_FOUND":"No Log Data Found","NO_LOG_DATA_FOUND_TIP":"No log data is found.","VOLUME_PL":"Volumes","TYPE_CONFIGMAP":"Volume type: configmap","TYPE_SECRET":"Volume type: secret","TYPE_EMPTYDIR":"Volume type: emptyDir","TYPE_HOSTPATH":"Volume type: host path","REASON_VALUE":"Reason: {value}","MESSAGE_VALUE":"Message: {value}","UPDATED_AT_VALUE":"Updated At: {value}","NO_MONITORING_DATA":"No Monitoring Data","OUTBOUND":"Outbound","INBOUND":"Inbound","POD_PL":"Pods","NODE_IP":"{node} ({ip})","WAITING":"Waiting","POD_LOW":"pod","PENDING":"Pending","SERVICE_VALUE":"Service: {value}","PROTOCOL_VALUE":"Protocol: {value}","ROUTE_DESC":"An ingress provides a way to aggregate services. You can expose the internal services outside the cluster through an externally accessible IP address.","PREREQUESTS_FOR_USE_ROUTE_Q":"What are the prerequisites for using ingresses?","PREREQUESTS_FOR_USE_ROUTE_A":"To use ingresses, you need to contact the project administrator to set the gateway for the project.","ACCESS_TYPES_OF_ROUTE_Q":"What are the external access modes of ingresses?","ACCESS_TYPES_OF_ROUTE_A":"KubeSphere ingresses support the NodePort and LoadBalancer external access modes.","ROUTE_PL":"Ingresses","GATEWAY_ADDRESS_TCAP":"Gateway Address","ROUTE_EMPTY_DESC":"Please create an ingress.","ADD_ROUTING_RULE_DESC":"Add a routing rule to map domain name paths to services.","ADD_ROUTING_RULE":"Add Routing Rule","ROUTING_RULE_EMPTY_DESC":"Please add at least one routing rule.","PATH_EMPTY_DESC":"Please add at least one path.","AUTO_GENERATE_TCAP":"Auto Generate","DOMAIN_NAME_TCAP":"Domain Name","DOMAIN_NAME_EMPTY_DESC":"Please enter a domain name.","INVALID_DOMAIN_DESC":"Invalid domain name.","INVALID_PATH_DESC":"Invalid path.","MODE_TCAP":"Mode","PATH_PL":"Paths","PATH_SERVICE_TIP":"Service","SET_ROUTING_RULES":"Set Routing Rules","SPECIFY_DOMAIN_TCAP":"Specify Domain","NO_GATEWAY_DESC":"To use Auto Generate, please contact the project administrator to set the gateway access mode in Gateway Settings of the project.","PATH":"Path","PROTOCOL":"Protocol","PORT":"Port","PORT_VALUE":"Port: {value}","CERTIFICATE":"Certificate","EDIT_ROUTING_RULES":"Edit Routing Rules","EDIT_ANNOTATIONS":"Edit Annotations","ROUTE_LOW":"ingress","PLEASE_INSTALL_GATEWAY":"Please install the KubeSphere gateway extension component and configure the cluster agent before trying again.","ROUTE_SETTING_DESC":"Based on ingresses, Ingress Utils provides multiple practical extension capabilities, such as domain name reuse validation.","ROUTE_SETTING_EMPT":"No domain name requires reuse validation","ROUTE_SETTING_EMPTY_DESC":"After adding a domain name, uniqueness validation will be conducted on the domain name when creating or editing an ingress. Domain Name Reuse Validation only applies to the current cluster and does not affect the existing ingresses.","CREATE_DOMAIN_NAME":"Add domain name","CREATE_DOMAIN_NAME_DES":"Wildcard characters can be used to match domain names.","INVALID_CREATE_DOMAIN_NAME":"This domain name already exists. Please enter another domain name.","DOMAIN_NAME_DESC":"Please set a domain name","INVALID_DOMAIN_NAME":"Domain Name Reuse Validation","ROUTE_SETTING":"Domain name","ROUTE_SETTING_PL":"Ingress Utils","ROUTE_SETTING_LOW":"Domain name","DELETE_MULTIPLE_ROUTE_SETTING":"Batch delete domain names","EXIT_DOMAIN_DESC":"This domain name or its subdomain name has been used in the project of the current cluster. Please change the domain name to a different one.","CUSTOM_SERVICE":"Custom Service","VIRTUAL_IP":"VirtualIP","CONTAINER_PORT_SCAP":"Container port","SERVICE_PORT_SCAP":"Service port","NO_AVAILABLE_RESOURCE_VALUE":"No Available {resource}","NO_RESOURCE_FOUND":"No Resource Found","REVISION_RECORD":"Revision record","SERVICE_PL":"Services","SERVICE_DESC":"Services provide an abstract way to expose applications running on a pod as network services.","SERVICE_EMPTY_DESC":"Please create a service.","UNKNOWN":"Unknown","EXTERNAL_ACCESS":"External Access","INTERNAL_ACCESS":"Internal Access","UNKNOWN_SERVICE_TYPE":"Unknown Service Type","SERVICE":"Service","SERVICE_LOW":"service","INTERNAL_ACCESS_MODE":"Internal Access Mode","CREATE_SERVICE":"Create Service","SERVICE_NAME_DESC":"The name can contain only lowercase letters, numbers, and hyphens (-), must start with a lowercase letter, and must end with a lowercase letter or number. The maximum length is 63 characters.","VIRTUAL_IP_TITLE":"Virtual IP Address","INTERNAL_DOMAIN_NAME":"Internal Domain Name","CONTAINER_PORT":"Container Port","INVALID_PORT":"Invalid port.","PORT_EMPTY":"Please set at least one port.","ENTER_SELECTOR_TIP":"Please set a workload selector.","Ports":"Ports","SPECIFY_WORKLOAD":"Specify Workload","SELECT_WORKLOAD_DESC":"Use labels of a workload as the selector.","VIRTUAL_IP_DESC":"A virtual IP address is assigned to the service. The service can be accessed within the cluster through the virtual IP address.","INTERNAL_DOMAIN_NAME_DESC":"No IP address is assigned to the service. The service can be accessed within the cluster through the cluster DNS mechanism.","SERVICE_PORTS_DESC":"Set the container ports and service ports.","NO_WORKLOAD_MATCH_SELECTOR":"The current selector matches no workload.","WORKLOADS_MATCH_SELECTOR_SI":"The current selector ({selector}) matches {count} workload.","WORKLOADS_MATCH_SELECTOR_PL":"The current selector ({selector}) matches {count} workloads.","WORKLOAD_SELECTOR":"Workload Selector","SERVICE_SETTINGS":"Service Settings","TOTAL_WORKLOADS_VALUE":"Total Workloads: {count}","OPENELB_NOT_READY":"OpenELB is not installed. Please install OpenELB.","SESSION_PERSISTENCE":"Session Persistence","MAXIMUM_STICKINESS_DURATION":"Maximum Stickiness Duration (s)","SESSION_PERSISTENCE_DESC":"Set the system to forward all requests from the same client to the same pod within a specified duration.","SERVICE_EXTERNAL_ACCESS_DESC":"Set the method for accessing the service from outside the cluster.","ACCESS_NODEPORT_TIP":"Use a port of the cluster nodes to access the service.","ACCESS_LOADBALANCER_TIP":"Use a load balancer to access the service.","WORKLOAD_ANNOTATIONS":"Workload Annotations","LABEL_FORMAT_DESC":"The key and value of a label can contain only letters, numbers, hyphens (-), underscores (_), and dots (.), and must start and end with a letter or number. The maximum length of each key and each value is 63 characters (if the key contains a domain name, the maximum length is 253 characters).","STATEFULSETS":"Statefulsets","INVALID_ALIAS_NAME_DESC":"Invalid alias name. The alias name can contain only letters, numbers, and hyphens (-), and cannot start or end with a hyphen. The maximum length is 63 characters.","NODES":"Nodes","DISK":"Disk","CLUSTER_INFORMATION":"Cluster Information","CLUSTER_NAME":"Cluster Name","EDIT_CLUSTER_INFO_DESC":"Edit basic information about the cluster.","REMOVE_CLUSTER":"Remove Cluster","REMOVE_CLUSTER_DESC":"After the cluster is removed, KubeSphere will not be able to manage the cluster. Resources in the cluster will not be deleted. Enter the cluster name {name} to confirm that you understand the risks of this operation.","REMOVE_SUCCESS":"Removed successfully.","CLUSTER_MEMBER_PL":"Cluster Members","CLUSTER_MEMBER":"Cluster Member","INVITE_CLUSTER_MEMBER_DESC":"Invite users to the cluster.","PERMIGROUP_NETWORK_MANAGEMENT":"Network","PERMISSION_NETWORK_RESOURCES_VIEW":"Network Resource Viewing","PERMISSION_NETWORK_RESOURCES_MANAGEMENT":"Network Resource Management","PERMIGROUP_PROJECT_RESOURCES_MANAGEMENT":"Project Resources","PERMISSION_PROJECT_RESOURCES_VIEW":"Project Resource Viewing","PERMISSION_PROJECT_RESOURCES_MANAGEMENT":"Project Resource Management","PERMISSION_STORAGECLASSES_VIEW":"Storage Class Viewing","PERMISSION_STORAGECLASSES_MANAGEMENT":"Storage Class Management","PERMISSION_VOLUME_SNAPSHOT_CLASSES_VIEW":"Volume Snapshot Class Viewing","PERMISSION_VOLUME_SNAPSHOT_CLASSES_MANAGEMENT":"Volume Snapshot Class Management","PERMIGROUP_CLUSTER_RESOURCES_MANAGEMENT":"Cluster Resources","PERMISSION_CRD_VIEW":"Custom Resource Definition Viewing","PERMISSION_CRD_MANAGEMENT":"Custom Resource Definition Management","PERMISSION_NODES_VIEW":"Node Viewing","PERMISSION_NODES_MANAGEMENT":"Node Management","PERMISSION_COMPONENTS_VIEW":"System Component Viewing","PERMIGROUP_CLUSTER_SETTINGS":"Cluster Settings","PERMISSION_CLUSTER_SETTINGS_VIEW":"Cluster Settings Viewing","PERMISSION_CLUSTER_SETTINGS_MANAGEMENT":"Cluster Settings Management","PERMISSION_CLUSTER_MONITORING_VIEW":"Monitoring Information Viewing","PERMISSION_CLUSTER_MONITORING_MANAGEMENT":"Monitoring Information Management","PERMISSION_CLUSTER_ROLES_VIEW":"Role Viewing","PERMISSION_CLUSTER_ROLES_MANAGEMENT":"Role Management","PERMISSION_CLUSTER_MEMBERS_VIEW":"Member Viewing","PERMISSION_CLUSTER_MEMBERS_MANAGEMENT":"Member Management","CLUSTER_ROLE":"Cluster Role","CLUSTER_ROLE_PL":"Cluster Roles","CLUSTER_ROLE_DESC":"This module allows you to manage the access of users within a cluster.","ROLE_CLUSTER_VIEWER":"View all resources in the cluster.","ROLE_CLUSTER_ADMIN":"Manage all resources in the cluster.","CLUSTER_VISIBILITY":"Cluster Visibility","EDIT_VISIBILITY_DESC":"Edit the cluster visibility in workspaces.","UNAUTHORIZED":"Unauthorized","CLUSTER_VISIBILITY_DESC":"Cluster visibility controls the cluster authorization to workspaces. After a cluster is authorized to workspaces, you can view and manage the cluster resources in the workspaces.","CLUSTER_VISIBILITY_Q1":"How do I authorize a cluster to specific workspaces?","CLUSTER_VISIBILITY_A1":"You can assign a cluster to specific workspaces by clicking Edit Visibility.","CLUSTER_VISIBILITY_Q2":"What are public clusters?","CLUSTER_VISIBILITY_A2":"Public clusters can be accessed by all platform users. Users can create and schedule resources on public clusters.","WORKSPACE":"Workspace","CLUSTER_VISIBILITY_SCAP":"Cluster visibility","AUTHORIZATION_TIME_TCAP":"Authorization Time","EDIT_VISIBILITY":"Edit Visibility","AUTHORIZED":"Authorized","SET_PUBLIC_CLUSTER":"Set as Public Cluster","HOST_CLUSTER_VISIBILITY_WARNING":"The stability of the multi-cluster system will decrease if the host cluster is overloaded. Exercise caution when assigning the host cluster to workspaces.","CLUSTER_VISIBILITY_REMOVE_WARNING":"After the authorization for a workspace to use the cluster is removed, all resources of the workspace on the cluster will be deleted.","REMOVE_WORKSPACE_CONFIRM_TITLE":"Remove Authorization","REMOVE_WORKSPACE_CONFIRM_SI":"Enter the workspace name {resource} to confirm that you understand the risks of this operation.","REMOVE_WORKSPACE_CONFIRM_PL":"Enter the workspace names {resource} to confirm that you understand the risks of this operation.","GATEWAY_LOW":"gateway","REQUEST_COUNT":"Requests","NETWORK_TRAFFIC":"Network Traffic","CONNECTION_COUNT":"Connections","FAILED_REQUEST_COUNT":"Failed Requests","AVERAGE_LATENCY":"Average Latency","P_FIFTY_LATENCY":"P50 Latency","P_NINETY_FIVE_LATENCY":"P95 Latency","P_NINETY_NINE_LATENCY":"P99 Latency","FOUR_XX_REQUEST_COUNT":"4XX Requests","FIVE_XX_REQUEST_COUNT":"5XX Requests","TOTAL_REQUESTS":"Total Requests","SUCCESSFUL_REQUESTS":"Successful Requests","CONFIGURATION_OPTIONS":"Configuration Options","GATEWAY_LOGS":"Gateway Logs","LOGGING_DISABLED":"Logging Disabled","REFRESH_INTERVAL_VALUE":"Refresh interval: {value}s","EXPORT_LOGS":"Export Logs","GATEWAY_SETTINGS":"Gateway Settings","CLUSTER_GATEWAY_DESC":"Set up and manage the configuration of the external network access gateway and service management in the cluster.","CLUSTER_GATEWAY_NOT_ENABLED":"Cluster Gateway Not Enabled","CLUSTER_ENABLE_GATEWAY_DESC":"Please enable the cluster gateway.","CLUSTER_GATEWAY":"Cluster Gateway","GATEWAY_ADDRESS_SCAP":"Gateway address","LOAD_BALANCER_PROVIDER_SCAP":"Load balancer provider","ENABLE_GATEWAY":"Enable Gateway","GATEWAY_TRACING_TIP":"If ingresses cannot be accessed after Tracing is enabled, please add the annotation nginx.ingress.kubernetes.io/service-upstream: true to the ingress.","NGINX_INGRESS_VERSION":"Nginx ingress version","VIEW_DETAILS":"View Details","DISABLE":"Disable","DISABLE_GATEWAY":"Disable Gateway","DISABLE_GATEWAY_TIP":"Are you sure you want to disable the gateway?","DISABLE_SUCCESSFUL":"Disabled successfully.","EDIT":"Edit","EDIT_TITLE":"Edit {title}","UPDATE":"Update","UPDATED_GATEWAY_TITLE":"Update Gateway","UPDATE_GATEWAY_DESC":"The current gateway can be updated.","PROJECT_GATEWAY_PL":"Project Gateways","PROJECT_GATEWAY_NOT_ENABLED":"Project Gateway Not Enabled","PROJECT_ENABLE_GATEWAY_DESC":"Please enable the project gateway.","REPLICA_COUNT":"Replicas","NODE_PORTS":"Node Ports","PROJECT_GATEWAY_LOW":"project gateway","DISABLE_MULTIPLE_GATEWAYS":"Disable Multiple Gateways","EDIT_LOG_RECEIVER":"Edit Log Receiver","INDEX_PREFIX":"Index Prefix","LOG_RECEIVER":"Log Receiver","LOG_RECEIVER_LOW":"Log Receiver","CHANGE_STATUS":"Change Status","LOG_COLLECTION_ENABLE_TIPS":"The new status requires about 1 minute to take effect.","SELECT_STATUS_TIP":"Select a status","ADDRESS":"Address","LOG_RECEIVER_PL":"Log Receivers","LOG_COLLECTION_DESC":"The system collects standard output (stdout) and standard error (stderr) logs from each container and sends them to one or more target services.","ADD_LOG_RECEIVER":"Add Log Receiver","LOG_COLLECTION_TIPS":"You can add one log receiver for each type.","ES_DESC":"Elasticsearch is a distributed, RESTful search and analytics engine.","KAFKA_DESC":"Kafka is a popular open-source, stream-processing platform.","FLUENTD_DESC":"Fluentd is an open-source data collector for unified logging layer.","LOG_COLLECTION_ES_URL_TIPS":"The built-in Elasticsearch service is used by default. You can also enter the IP address of Elasticsearch independently deployed inside or outside the cluster.","LOG_COLLECTION_ES_INDEX_TIPS":"Use the index prefix to speed up queries. The index prefix is automatically generated in -- format.","ADDRESS_VALUE":"Address: {value}","TOPIC":"Topic","ADD_SERVICE_ADDRESS":"Add","SERVICE_ADDRESS":"Service Address","ENTER_SERVICE_ADDRESS":"Please enter a service address.","INVALID_SERVICE_ADDRESS":"Please enter a correct service address.","SERVICE_ADDRESS_EXIST":"The service address already exists. Please enter another service address.","EXAMPLE_VALUE":"Example: {value}","LOG_COLLECTION_FLUENTD_URL_TIPS":"Enter the address of the Fluentd service that receives logs.","EMPTY_LOG_COLLECTIONS":"No log receiver is found. You can add log receivers and send logs to external log receivers.","RESOURCE_EVENTS":"Resource Events","AUDIT_LOGS":"Audit Logs","NO_CLUSTER_TIP":"Please add at least one cluster.","CLUSTER_NAME_EMPTY":"Please enter a cluster name.","ADD_CLUSTER":"Add Cluster","TAG":"Tag","CLUSTER_TAG_DESC":"Select a tag to identify the purpose of the cluster.","CLUSTER_PROVIDER_DESC":"Select the provider of the cluster infrastructure.","CONNECTION_SETTINGS":"Connection Settings","CLUSTER_CONFIG":"Cluster Configuration","EDIT_CONFIG":"Edit Configuration","CLUSTER_CONFIG_IMAGE_REGISTRY_TIP":"Please modify the image registry address to your actual one. The default is KubeSphere's official online registry. Ensure you can access it","CONNECTION_MODE":"Connection Mode","CLUSTER_CONNECT_MODE_DESC":"Directly connect to the cluster or use an agent.","CONNTECT_DIRECT":"Direct connection","CONNTECT_PROXY":"Agent connection","INPUT_KUBECONFIG":"Member Cluster kubeconfig","CLUSTER_DIRECT_IMPORT_TIP":"The multi-cluster control plane of KubeSphere connects to the member cluster through the kubeconfig provided. For this method, the host cluster must be able to directly access the member cluster through the server address in the kubeconfig.

    This method generally applies to the scenarios like the following:
    1. The host cluster and the member cluster are in the same internal network.
    2. The network of both the host cluster and the member cluster is connected through VPN or other technologies (e.g. Tunneling).
    3. The server address in the kubeconfig can be accessed through public network.","CLUSTER_AGENT_IMPORT_TIP":"The KubeSphere control plane connects to the member cluster through a proxy. The control plane runs a public proxy service, which is connected to a client component created by the member cluster. Thus, a reserve proxy is created. For this method, the control plane and the member cluster do not need to be in the same network. The apiserver address of the member cluster does not need to be exposed. However, network performance may be affected.

    This method generally applies to the scenarios like the following:
    1. The host cluster and the member cluster are not in the same network.
    2. The network of both the host cluster and the member cluster cannot be connected through VPN or other technologies (e.g. Tunneling).
    3. Network performance deficiencies within clusters can be accepted.","CLUSTER_AGENT_TITLE":"Please add the member cluster based on the agent provided in the cluster.","CLUSTER_AGENT_DESC":"A corresponding agent needs to be set in the cluster.","HOW_TO_GET_KUBECONFIG":"How do I obtain kubeconfig?","HOST_CLUSTER_TCAP":"Host Cluster","HOST_CLUSTER_PL_TCAP":"Host Clusters","MEMBER_CLUSTER_TCAP_PL":"Member Clusters","CLUSTER_CONDITION_INITIALIZED":"Initialized","CLUSTER_CONDITION_AGENTAVAILABLE":"Agent Available","CLUSTER_CONDITION_FEDERATED":"Federated","CLUSTER_CONDITION_EXTERNALACCESSREADY":"External Access Ready","CLUSTER_CONDITION_READY":"Cluster Ready","CLUSTER_CONDITION_SCHEDULABLE":"Cluster Scheduling","CLUSTER_CONDITION_OPENPITRIXRUNTIMEREADY":"App Store Ready","CLUSTER_CONDITION_KUBECONFIGCERTEXPIRESINSEVENDAYS":"kubeconfig About to Expire","NODE_COUNT":"Nodes","ENV_PRODUCTION":"Production","ENV_DEVELOPMENT":"Development","ENV_TESTING":"Testing","ENV_DEMO":"Demo","UPDATE_KUBECONFIG":"Update kubeconfig","KUBE_CONFIG_IS_EXPIRED":"KubeConfig has expired","EXPIRE_DATE":"Expiration Time","LAST_KUBE_CONFIG_EXPIRED":"KubeConfig expires in {count} days","VALIDATION_FAILED":"Validation failed.","NO_CLUSTER_TIP_DESC":"A cluster is a group of nodes (physical or virtual machines) running KubeSphere.","RISK_WARNING":"Risk Warning","REMOVE_CLUSTER_TIP_A":"After the cluster is removed, resources in the cluster will not be cleared automatically.","REMOVE_CLUSTER_TIP_B":"After the cluster is removed, multi-cluster configuration data in the cluster will not be cleared automatically. Uninstalling KubeSphere or deleting related resources may cause user data loss. You must manually clear the multi-cluster configuration data in the removed cluster by refering to the official KubeSphere documentation.","CLUSTER_CONFIRM_TEXT":"I understand the risks of removing the cluster","ENTER_CLUSTER_NAME":"This operation cannot be undone. Enter the cluster name {name} to confirm that you understand the risks of this operation.","CONFIGMAP_DESC":"A configmap is often used to store configuration information needed for workloads. Many applications will read the information from configuration files, command line parameters, or environment variables.","FIELDS":"Fields","EDIT_YAML":"Edit YAML","ENTER_CONFIG_VALUE_DESC":"Enter the value of the mapping configuration field or use the content from the file.","CONFIG_FIELD_DESC":"The unique value of the key mapped by the configuration field.","CONFIGURATION":"Configuration","SECRET_PL":"Secrets","SECRET_DESC":"A secret is an object that contains a small amount of sensitive data such as a password, a token, or a key.","SECRET_FIELD_COUNT":"Fields","SECRET_EMPTY_DESC":"Please create a secret.","SECRET":"Secret","DATA_SETTINGS":"Data Settings","IMAGE_REGISTRY_INFORMATION":"Image registry information","TLS_INFORMATION":"TLS information","USERNAME_PASSWORD":"Username and password","ADD_DATA_TCAP":"Add Data","ADD_DATA_DESC":"Add a key-value pair.","REGISTRY_ADDRESS_TIP":"Set a registry address, for example, docker.io.","IMAGE_REGISTRY_REQUIRED_DESC":"Please set the registry address, username, and password.","CREDENTIAL_NAME_EMPTY_DESC":"Please enter a credential name.","ENTER_PRIVATE_KEY_DESC":"Please enter a private key.","ENTER_DATA_DESC":"Please add data.","PRIVATE_KEY_TCAP":"Private Key","REGISTRY_ADDRESS_TCAP":"Registry Address","SKIP_VERIFY":"Skip certificate verification","REGISTRY_SECRET_VER_ERR":"Registry verification failed.","REGISTRY_SECRET_VER_SUC":"The registry is available.","SECRET_NO_CHINESE_CODE_DESC":"The key of the secret must consist of alphanumeric characters, hyphens (-), underscores (_), or periods (.).","SECRET_TYPE_DESC":"Select a secret type.","IMAGE_REGISTRY_VALIDATE_TIP":"Please validate the username and password before creating the image registry secret.","DATA_KEY":"Key","DATA_VALUE":"Value","DEFAULT":"Default","USERNAME_AND_PASSWORD":"Username and password","DATA":"Data","EDIT_DATA_TCAP":"Edit Data","KUBECONFIG_SETTINGS":"kubeconfig Settings","CUSTOM_RESOURCE_PL":"Custom Resources","PROJECT_DEVOPS_PROJECT":"Project/DevOps Project","CUSTOM_RESOURCE":"Custom Resource","CUSTOM_RESOURCE_LOW":"custom resource","CRD":"CRD","CRD_PL":"CRDs","CRD_LOW":"CRD","CRD_DESC":"A Custom Resource Definition (CRD) extends Kubernetes by allowing users to create any kind of custom resources. Users can use these CRD objects as they do for built-in resources.","CRD_EMPTY_DESC":"Please create a CRD.","KIND_TCAP":"Kind","SCOPE_TCAP":"Scope","ALERTING_MESSAGE_PL":"Alerts","ALERT_MESSAGE_DESC":"Alerts are generated when resource metrics meet conditions configured in rule groups.","ALERTS_FROM_CUSTOM_POLICIES":"From Custom Rules","ALERTS_FROM_BUILT_IN_POLICIES":"From Built-in Rules","TRIGGER_TIME":"Trigger Time","ALERTING_MESSAGE_EMPTY_DESC":"No alert is found in the current cluster.","MONITORING_TARGET":"Monitoring Target","DURATION":"Duration","VIEW_METRIC_DATA":"View metric data","ALERTING_RULE":"Alert Rules","MONITORING_TARGETS_SCAP":"Monitoring targets","TRIGGER_CONDITION_SCAP":"Trigger condition","METRIC_MONITORING":"Metric Monitoring","ALERT_MONITORING":"Alert Monitoring","NOTIFICATION_SUMMARY_COLON":"Summary: ","DETAILS_COLON":"Details: ","NODES_VALUES":"Nodes: {values}","TRIGGER_CONDITION":"Trigger Condition","MESSAGE_SUMMARY":"Summary","MESSAGE_DETAILS":"Details","VIEW_METRIC_DATA_TCAP":"View Metric Data","ALERT_RULE_TEXT_PERCENT_SECOND":"{alterTypeText} {comparator} {thresholds}% for {durationValue, plural, =1 {1 second} other {# seconds}}","ALERT_RULE_TEXT_PERCENT_MINUTE":"{alterTypeText} {comparator} {thresholds}% for {durationValue, plural, =1 {1 minute} other {# minutes}}","ALERT_RULE_TEXT_PERCENT_HOUR":"{alterTypeText} {comparator} {thresholds}% for {durationValue, plural, =1 {1 hour} other {# hours}}","ALERT_RULE_TEXT_SECOND":"{alterTypeText} {comparator} {thresholds} {unit} for {durationValue, plural, =1 {1 second} other {# seconds}}","ALERT_RULE_TEXT_MINUTE":"{alterTypeText} {comparator} {thresholds} {unit} for {durationValue, plural, =1 {1 minute} other {# minutes}}","ALERT_RULE_TEXT_HOUR":"{alterTypeText} {comparator} {thresholds} {unit} for {durationValue, plural, =1 {1 hour} other {# hours}}","CPU_UTILIZATION_NO_PERCENT_TCAP":"CPU Usage","CPU_LOAD_1_TCAP":"1-Minute CPU Load Average","CPU_LOAD_5_TCAP":"5-Minute CPU Load Average","CPU_LOAD_15_TCAP":"15-Minute CPU Load Average","MEMORY_UTILIZATION_NO_PERCENT_TCAP":"Memory Usage","MEMORY_AVAILABLE_TCAP":"Available Memory","DATA_SEND_RATE_TCAP":"Network Data Sending Rate","DATA_RECEIVE_RATE_TCAP":"Network Data Receiving Rate","DISK_SPACE_UTILIZATION_NO_PERCENT_TCAP":"Local Disk Usage","DISK_SPACE_AVAILABLE_TCAP":"Available Local Disk Space","INODE_UTILIZATION_NO_PERCENT_TCAP":"Inode Usage","DISK_READ_IOPS_TCAP":"Local Disk Read IOPS","DISK_WRITE_IOPS_TCAP":"Local Disk Write IOPS","DISK_READ_THROUGHPUT_TCAP":"Local Disk Read Throughput","DISK_WRITE_THROUGHPUT_TCAP":"Local Disk Write Throughput","UNAVAILABLE_POD_RATIO_NO_PERCENT_TCAP":"Unavailable Pod Ratio","POD_QUOTA_UTILIZATION_NO_PERCENT_TCAP":"Pod Quota Usage","MEMORY_USAGE_WO_CACHE_TCAP":"Memory Usage Without Cache","UNAVAILABLE_WORKLOAD_REPLICA_RATIO_NO_PERCENT_TCAP":"Unavailable Replica Ratio","THRESHOLD_VALUE":"Threshold: {value}","NO_DATA_DESC":"No Data Found","ALERTING_POLICY_PL":"Rule Groups","ALERTING_POLICY_DESC":"A rule group contains alert rules used to monitor cluster resources.","REQUESTS_FOR_TRIGGER_AN_ALARM_Q":"How are alerts generated?","REQUESTS_FOR_TRIGGER_AN_ALARM_A":"You need to create a rule group and set alert rules. The system will generate alerts when resource metrics meet conditions configured in rule groups.","CUSTOM_POLICIES":"Custom Rule Groups","BUILT_IN_POLICIES":"Built-in Rule Groups","ALERTING_POLICY_EMPTY_DESC":"Please create a rule group.","ALERT_RULE_INACTIVE":"Inactive","ALERT_RULE_PENDING":"Pending","ALERT_RULE_FIRING":"Firing","ALERT_RULE_DISABLED":"Disabled","POLICY_STATUS":"Rule Group Status","RULE_STATUS":"Rule Status","TIME_SPENT":"Time Spent","RECENT_DETECT_TIME":"Last Check","EDIT_ALERT_RULES":"Edit Alert Rules","RESET":"Reset","SEVERITY":"Severity","CREATE_ALERTING_POLICY":"Create Rule Group","CRITICAL_ALERT":"Critical","ERROR_ALERT":"Error","WARNING_ALERT":"Warning","INFO_ALERT":"Info","INVALID_TIME_DESC":"Invalid value. Please enter 0 or a positive integer.","ALIAS":"Alias","DURATION_MIN":"Duration (minutes)","ALERT_DURATION":"Set the system to wait for a certain duration and check whether the alert situation persists before firing an alert.","LONG_NAME_DESC":"The name can contain only lowercase letters, numbers, and hyphens (-), and must start and end with a lowercase letter or number. The maximum length is 253 characters.","NAME_EXIST_DESC":"The name already exists. Please enter another name.","ALIAS_NAME_DESC":"The alias name can contain only letters, numbers, and hyphens (-), and cannot start or end with a hyphen. The maximum length is 63 characters.","CHECK_INTERVAL":"Check Interval","ALERTING_POLICY_CHECK_INTERVAL_DESC":"Set the interval between metric checks. The default value is 1 minute.","ADD_ALERTING_RULE":"Add Alert Rule","ADD_ALERTING_RULE_DESC":"Add an alert rule to the rule group.","ENABLE_RULE":"Enable Rule","DISABLE_RULE":"Disable Rule","RULE_NAME":"Rule Name","CUSTOM_RULE_NAME_DESC":"The rule name can contain any characters. The maximum length is 63 characters.","LASTING_MINUTES":"For {minutes, plural, =1 {1 minute} other {# minutes}}","THRESHOLD_REQUIRED":"Please enter a metric threshold.","MESSAGE_SUMMARY_DESC":"The message summary can contain any characters. The maximum length is 63 characters.","MESSAGE_DETAILS_DESC":"The message details can contain any characters. The maximum length is 256 characters.","RULE_TEMPLATE":"Rule Template","RULE_SETTINGS":"Rule Settings","MONITORING_TARGETS":"Monitoring Targets","SET_ACTIVATION_CONDITION_DESC":"Please set a trigger condition.","THRESHOLD":"Threshold","UNAVAILABLE_POD_RATIO":"Unavailable pod ratio (%)","POD_QUOTA_UTILIZATION_SCAP":"Pod quota usage (%)","CPU_USAGE_SCAP":"CPU usage","CPU_UTILIZATION_SCAP":"CPU usage (%)","CPU_LOAD_1":"1-minute CPU load average","CPU_LOAD_5":"5-minute CPU load average","CPU_LOAD_15":"15-minute CPU load average","MEMORY_AVAILABLE":"Available memory","MEMORY_UTILIZATION_SCAP":"Memory usage (%)","DISK_SPACE_AVAILABLE":"Available local disk space","DISK_SPACE_UTILIZATION":"Local disk usage (%)","INODE_UTILIZATION":"Inode usage (%)","DISK_READ_IOPS":"Local disk read IOPS","DISK_WRITE_IOPS":"Local disk write IOPS","DISK_READ_THROUGHPUT":"Local disk read throughput","DISK_WRITE_THROUGHPUT":"Local disk write throughput","DATA_RECEIVE_RATE":"Network data receiving rate","DATA_SEND_RATE":"Network data sending rate","MEMORY_USAGE_SCAP":"Memory usage","MEMORY_USAGE_WO_CACHE_SCAP":"Memory usage without cache","UNAVAILABLE_WORKLOAD_REPLICA_RATIO":"Unavailable replica ratio (%)","SELECT_NODE_TIP":"Please select at least one cluster node.","CUSTOM_RULE":"Custom Rule","RULE_EXPRESSION":"Rule Expression","ENTER_RULE_EXPRESSION":"Please enter a rule expression.","ALERT_RULE_EXPRESSION_DESC":"You can define a custom rule using PromQL statements.","ALERT_FUNCTIONS":"Functions","ALERT_METRICS":"Metrics","ALERT_LABELS":"Labels","ALERT_RATE_RANGES":"Rate Ranges","ALERTING_MESSAGE":"Alert","MESSAGE_SETTINGS":"Message Settings","NOTIFICATION_SUMMARY":"Summary","NOTIFICATION_DETAILS":"Details","EDIT_ALERTING_POLICY":"Edit Rule Group","DISABLE_ALERTING_POLICY":"Disable Rule Group","ALERTING_POLICY":"Rule Group","ALERTING_POLICY_LOW":"rule group","RESET_ALERTING_POLICY":"Reset Rule Group","RESET_ALERTING_POLICY_DESC":"Are you sure you want to reset the rule group?","APPLICATION_RESOURCE_PL":"Application Resources","MONITORING_APPLICATION_DESC":"Application resources provide the monitoring data of application resource usage and usage ranking.","CUSTOM_TIME_RANGE":"Customize Time Range","ACCOUNTS":"Accounts","DEVOPS_PROJECT_PL":"DevOps Projects","SAMPLING_INTERVAL":"Sampling Interval","KUBE_SUN":"Sun.","KUBE_MON":"Mon.","KUBE_TUE":"Tue.","KUBE_WED":"Wed.","KUBE_THU":"Thu.","KUBE_FRI":"Fri.","KUBE_SAT":"Sat.","KUBE_SUNDAY":"Sunday","KUBE_MONDAY":"Monday","KUBE_TUESDAY":"Tuesday","KUBE_WEDNESDAY":"Wednesday","KUBE_THURSDAY":"Thursday","KUBE_FRIDAY":"Friday","KUBE_SATURDAY":"Saturday","KUBE_JAN":"Jan.","KUBE_FEB":"Feb.","KUBE_MAR":"Mar.","KUBE_APR":"Apr.","KUBE_MAY":"May.","KUBE_JUN":"Jun.","KUBE_JUL":"Jul.","KUBE_AUG":"Aug.","KUBE_SEP":"Sep.","KUBE_OCT":"Oct.","KUBE_NOV":"Nov.","KUBE_DEC":"Dec.","KUBE_JAN_LH":"January","KUBE_FEB_LH":"February","KUBE_MAR_LH":"March","KUBE_APR_LH":"April","KUBE_MAY_LH":"May","KUBE_JUN_LH":"June","KUBE_JUL_LH":"July","KUBE_AUG_LH":"August","KUBE_SEP_LH":"September","KUBE_OCT_LH":"October","KUBE_NOV_LH":"November","KUBE_DEC_LH":"December","APPLICATION_RESOURCE_USAGE":"Application Resource Usage","DEPLOYMENT":"Deployment","DEPLOYMENT_PL":"Deployments","DEPLOYMENT_LOW":"deployment","STATEFULSET":"Statefulset","STATEFULSET_PL":"Statefulsets","STATEFULSET_LOW":"statefulset","DAEMONSET":"Daemonset","DAEMONSET_PL":"Daemonsets","DAEMONSET_LOW":"daemonset","DEPLOYMENTS_VALUE":"Deployments: {value}","STATEFULSETS_VALUE":"Statefulsets: {value}","DAEMONSETS_VALUE":"Daemonsets: {value}","RUNNING_PODS":"Running Pods","ROUTE":"Ingress","PROJECT_PL":"Projects","PROJECT_COUNT":"Projects","USAGE_RANKING":"Usage Ranking","QUOTA_VALUE":"Quota: {value}","OUTBOUND_TRAFFIC":"Outbound Traffic","INBOUND_TRAFFIC":"Inbound Traffic","SORT_BY_NAMESPACE_CPU_USAGE":"Sort by CPU usage","SORT_BY_NAMESPACE_POD_COUNT":"Sort by pod quota usage (%)","SORT_BY_NAMESPACE_NET_BYTES_RECEIVED":"Sort by inbound traffic","SORT_BY_NAMESPACE_NET_BYTES_TRANSMITTED":"Sort by outbound traffic","MONITORING_AND_ALERTING":"Monitoring & Alerting","CLUSTER_STATUS":"Cluster Status","MONITORING_CLUSTER_DESC":"Cluster status displays the overview and details of cluster resources. You can view the monitoring data and the usage ranking of cluster resources.","CLUSTER_NODE_STATUS":"Cluster Node Status","ALL_NODES":"All nodes","ONLINE_NODES":"Online nodes","NODE_ONLINE_STATUS":"Node Online Status","TIMES_PER_SECOND":"times/s","COMPONENT_STATUS":"Component Status","CONTROLLER_MANAGER":"Controller Manager","KUBERNETES_SCHEDULER":"Kubernetes Scheduler","CLUSTER_RESOURCE_USAGE":"Cluster Resource Usage","POD_COUNT":"Pods","COUNT":"Count","PODS":"Pods","SERVICE_STATUS":"Service Status","ETCD_MONITORING":"etcd Monitoring","DB_SIZE":"DB Size","RAFT_PROPOSAL":"Raft Proposal","ETCD_STATUS":"Service Status","ETCD_PROPOSAL":"Raft Proposal","ETCD_DB_SIZE":"DB Size","ETCD_CLIENT_TRAFFIC":"Client Traffic","TITLE_UNIT":"{title} ({unit})","AVERAGE":"Average","PROPOSAL_COMMITTED":"Committed","PROPOSAL_APPLIED":"Applied","PROPOSAL_FAILED":"Failed","PROPOSAL_PENDING":"Pending","SERVICE_COMPONENT_MONITORING":"Service Component Monitoring","SCHEDULE_ATTEMPTS":"Scheduling Attempts","SCHEDULING_RATE":"Scheduling Rate","REQUEST":"Request","REQUEST_PER_SECOND":"Requests per Second","SCHEDULER":"Scheduler","TOTAL_AVERAGE":"Total","SUCCESS":"Success","ERROR":"Error","FAILURE":"Failure","REQUEST_LATENCY_TCAP":"Request Latency","REQUEST_RATE":"Request Rate","SCHEDULE_ATTEMPTS_TCAP":"Scheduling Attempts","SCHEDULING_RATE_TCAP":"Scheduling Rate","API_SERVER":"API Server","SELECT_TIME_RANGE":"Select Time Range","LAST_TIME":"Last {value}","LAST_TIME_M":"{num, plural, =1 {Last 1 minute} other{Last # minutes}}","LAST_TIME_H":"{num, plural, =1 {Last 1 hour} other{Last # hours}}","LAST_TIME_D":"{num, plural, =1 {Last 1 day} other{Last # days}}","TIMERANGE_SELECTOR_MSG":"The end time must be later than the start time.","TIMERANGE_SELECTOR_ERROR_MSG":"Please confirm whether the selected time range is appropriate!","PHYSICAL_RESOURCES_MONITORING":"Physical Resource Monitoring","INODE_USAGE":"Inode Usage","DISK_USAGE":"Disk Usage","DISK_USAGE_DETAILS":"Disk Usage Details","AVERAGE_CPU_LOAD":"Average CPU Load","DISK_THROUGHPUT":"Disk Throughput","POD_STATUS":"Pod Status","COMPLETED":"Completed","WARNING":"Warning","READ":"Read","WRITE":"Write","RUNNING":"Running","TIME_M":"{num, plural, =1 {1 minute} other{# minutes}}","TIME_H":"{num, plural, =1 {1 hour} other{# hours}}","TIME_D":"{num, plural, =1 {1 day} other{# days}}","EXTERNAL_ETCD":"External etcd","DB_FSYNC":"DB Fsync","GRPC_STREAM_MESSAGES":"gRPC Stream Message","CLIENT_TRAFFIC":"Client Traffic","RECEIVED":"Received","SENT":"Sent","WAL_FSYNC":"WAL Fsync","ETCD_LEADER_TITLE":"Leader exists","ETCD_CHANGES_TITLE":"Leader changes in 1 h","NODE_IP_ADDRESS_VALUE":"Node IP Address: {value}","API_SERVER_MONITORING":"API Server Monitoring","REQUEST_LATENCY":"Request Latency","REQUEST_LATENCY_MS":"Request Latency (ms)","REST_CREATE":"CREATE","REST_DELETE":"DELETE","REST_DELETECOLLECTION":"DELETECOLLECTION","REST_GET":"GET","REST_POST":"POST","REST_PATCH":"PATCH","REST_PUT":"PUT","REST_UPDATE":"UPDATE","REST_LIST":"LIST","SCHEDULER_MONITORING":"Scheduler Monitoring","SCHEDULING_LATENCY":"Scheduling Latency","RESOURCE_USAGE_RANKING":"Resource Usage Ranking","SORT_BY_NODE_CPU_UTILISATION":"Sort by CPU usage (%)","SORT_BY_NODE_MEMORY_UTILISATION":"Sort by memory usage (%)","SORT_BY_NODE_DISK_SIZE_UTILISATION":"Sort by disk usage (%)","SORT_BY_NODE_POD_UTILISATION":"Sort by pod usage","SORT_BY_NODE_DISK_INODE_UTILISATION":"Sort by inode usage","SORT_BY_NODE_LOAD1":"Sort by 1-minute CPU load average","SORT_BY_NAMESPACE_MEMORY_USAGE_WO_CACHE":"Sort by memory usage","POD_USAGE":"Pod Usage","EXPORT":"Export","CUSTOM_MONITORING":"Custom Monitoring","CUSTOM_MONITORING_DASHBOARD":"Custom Monitoring Dashboard","CUSTOM_MONITORING_DASHBOARD_PL":"Custom Monitoring Dashboards","CUSTOM_MONITORING_DASHBOARD_EMPTY_DESC":"Please create a custom monitoring dashboard.","CUSTOM_MONITORING_DASHBOARD_DESC":"Custom monitoring provides application monitoring templates. You can customize monitoring dashboards based on your needs.","TEMPLATE":"Template","CREATE_CUSTOM_MONITORING_DASHBOARD":"Create Custom Monitoring Dashboard","MONITORING_TEMPLATE":"Monitoring Template","CUSTOM_MONITORING_TEMPLATE_DESC":"Select a default template, upload a template, or customize a template to generate a custom monitoring dashboard.","UPLOAD_GRAFANA_DASHBOARD":"Upload Grafana Dashboard","SUPPORT_JSON_FILE":"Only files in JSON format are supported.","UPLOAD_GRAFANA_URL":"Upload a Grafana dashboard from URL.","UPLOAD_FROM_LOCAL_TITLE":"Select or Drag a File","FILE_UPLOAD_ERROR":"Only one file can be uploaded.","UPLOAD_FILE_TIP":"Please upload a file.","ENTER_GRAFANA_URL":"Please enter a Grafana dashboard URL.","UPLOAD_FROM_LOCAL_STORAGE":"Upload from Local Storage","UPLOAD_FROM_URL":"Upload from URL","DASHBOARD_TITILE":"Dashboard title","APPLICABLE_SCENE":"Applicable Scenario","BASE_LINE_CHART":"Base Line Chart","STACK_LINE_CHART":"Stacked Area Chart","BASE_LINE_CHART_DESC":"A line chart is mainly used to visualize a trend or change in data over time. It is very useful for displaying a series of two-dimensional continuous data, such as website traffic or product prices.","STACK_LINE_CHART_DESC":"A stacked area chart is a special kind of area charts that can be used to compare multiple variables in an interval. It is very useful when multiple data series are available as you can analyze the relation of each group to the whole chart and display their respective proportion.","LINE_CHART_DESC":"A line chart is mainly used to visualize a trend or change in data over time.","BASE_BAR_CHART":"Base Bar Chart","STACK_BAR_CHART":"Stacked Bar Chart","BAR_CHART_DESC":"A bar chart is the most common type of charts. It presents different categorical data with horizontal or vertical bars with heights or lengths proportional to the values that they represent.","BASE_BAR_CHART_DESC":"One axis of the base bar chart features the categories being compared, while the other axis represents the value of each.","STACK_BAR_CHART_DESC":"A stacked bar chart is an extension of bar charts. A standard bar chart compares individual data points with each other while in a stacked bar chart, parts of the data are adjacent or stacked. It can be used to present the total amount of a category as well as its sub-amounts (proportion). Therefore, it is very helpful for examining part-to-whole relations.","CUSTOM_DISPLAY_MODAL_DESC":"Customize the table display style according to your needs","THRESHOLD_FILL_DESC":"You can set a threshold and the style can be changed automatically after the threshold is exceeded.","ADD_MONITOR_ITEM":"Add Monitoring Item","ADD_MONITOR_ROW":"Add Monitoring Group","CHART_TYPES":"Chart Types","GRAPH_TYPES":"Graph Types","LINE_CHART":"Line Chart","BAR_CHART":"Bar Chart","SELECT_CHART_TYPE":"Select a Chart Type","SELECT_CHART_TYPE_MODAL_DESC":"Select a customized chart type","SINGLE_STATE_CHART":"Real-time Text","DISPLAY_POSITION":"Display Position","EMPTY_CHART_PLACEHOLDER":"The chart is displayed here.","DISPLAY_FORMAT":"Display Format","FIELD_NAME":"Field Name","COLUMN_NAME":"Column Name","GRAPH_NAME":"Chart Name","DECIMALS":"Decimal Places","TABLE":"Table","TABLE_SETTINGS":"Table Settings","VALUE_FOMATER":"Value Format","PER_PAGE_LINES":"Lines Per Page","CUSTOM_DISPLAY_STYLE":"Display Style","DATA_TYPE":"Data Type","Y_AXIS":"Y Axis","GRAPH_COLORS":"Chart Colors","SINGLE_GRAPH_TYPE_NAME":"Basic Chart","SINGLE_GRAPH_TYPE":"The most common chart type","STACKED_GRAPH_TYPE":"Stacked Chart","STACKED_GRAPH_TYPE_DESC":"Useful for displaying part-to-whole relations","MONITOR_TYPE_NO_SUPPORT":"The type is not supported currently","MONITOR_METRIC":"Monitoring Metric","METRIC_NAME":"Metric Name","DEBUGB_DATA":"Debugging Data","TIME_FORMAT":"Time Format","HIGHT_RULES":"Highlighting Rules","EDIT_TEMPLATE":"Edit Template","SAVE_TEMPLATE":"Save Template","THRESHOLD_FILL":"Threshold Settings","UNIT":"Unit","COOL_COLORS":"Cool Colors","WARM_COLORS":"Warm Colors","DEFAULT_COLORS":"Default Colors","LAST":"Last","SECOND_TIME":"{count, plural, =1 {1 second} other{# seconds}}","MINUTE_TIME":"{count, plural, =1 {1 minute} other{# minutes}}","HOUR_TIME":"{count, plural, =1 {1 hour} other{# hours}}","DAY_TIME":"{count, plural, =1 {1 day} other{# days}}","WEEK_TIME":"{count, plural, =1 {1 week} other{# weeks}}","NO_REFRESHING":"No refreshing","INTERVAL":"Interval","CUSTOM_MONITORING_DASHBOARD_LOW":"custom monitoring dashbord","EGRESS_RULES":"Egress Rules","DESTINATION":"Destination","LABEL":"Label","INGRESS_RULES":"Ingress Rules","NETWORK_POLICY":"Network Policy","NETWORK_POLICY_PL":"Network Policies","NETWORK_POLICY_DESC":"The network policy configuration allows network isolation within the same cluster, which means firewalls can be set up between certain instances (pods).","NETWORK_POLICY_Q":"How do I use a network policy better?","NETWORK_POLICY_A":"We have identified several common use cases based on actual scenarios, and you can refer to the documentation for more information.","NETWORK_POLICY_Q1":"What are the requirements on the CNI plugin for implementing a network policy?","NETWORK_POLICY_A1":"Make sure that the CNI network plugin used by the cluster supports Network Policies. A number of CNI network plugins support Network Policies, including Calico, Cilium, Kube-router, Romana, and Weave Net.","NETWORK_POLICY_EMPTY_DESC":"Please create a network policy.","CREATE_NETWORK_POLICY_TCAP":"Create Network Policy","CREATE_BTN":"Create","CREATE_NETWORK_POLICY_DESC":"The network policy is configured to allow network isolation within the same cluster, namely, the ability to build a firewall between certain instances (pods).","NETWORK_POLICY_LOW":"network policy","NETWORK":"Network","START_IP_ADDRESS":"Start IP Address","END_IP_ADDRESS":"End IP Address","MASK":"Mask","WORKSPACES":"Workspaces","MANAGER":"Manager","IPPOOL_WORKSPACE_EMPTY_TIP":"No workspace is using this pod IP pool.","NAMESPACE_PL":"Project","ADD_IPPOOLL_NAMESPACE":"Add project","ADD_IPPOOLL_NAMESPACE_DESC":"Assign IP Pool to new project","REMOVEALL_IPPOOLL_NAMESPACE":"Remove all","REMOVEALL_IPPOOLL_NAMESPACE_PROJECT":"Remove all items","REMOVEALL_IPPOOLL_NAMESPACE_PROJECT_DESC":"After the project is removed, it will no longer be subject to IP Pool resource allocation restrictions","POD_IP_POOL_PL":"Pod IP Pools","POD_IP_POOL_DESC":"Pod IP pools is used to manage the pod network address space in the cluster. You can create pod IP pools based on your needs.","IPPOOL_USAGE_Q":"How do I manage a pod network using a pod IP pool?","IPPOOL_USAGE_A":"A pod IP pool is used to manage the pod network address space, and the address spaces between different pod IP pools cannot overlap. When creating a workload, you can select a specific pod IP pool to assign IP addresses from this pod IP pool to the created pods.","IPPOOL_USAGE_A_1":"An IP pool is used to manage the network address space of pods, and the address space between each IP pool cannot overlap. When creating a project, you can specify an IP pool in the annotation, so that pods created in the project will be assigned IPs from the specified IP pool.","POD_IP_POOL_EMPTY_DESC":"Please create a pod IP pool.","TOTAL_VALUE":"Total: {value}","ALL":"All","NOT_ASSIGNED":"Not assigned","CREATE_POD_IP_POOL":"Create Pod IP Pool","CIDR_OVERLAP":"{cidr0} and {cidr1} overlaped","NETWORK_SEGMENT":"Network Segment","USED_IP_ADDRESSES":"Used IP Addresses","QUANTITY":"Quantity","IP_POOL_CREATE_DESC":"Pod IP Pools to be Created","IP_ADDRESS_EMPTY_DESC":"Please enter an IP address.","MASK_TIP":"Please enter a mask.","ENTER_NETWORK_SEGMENT_TIP":"Please enter a network segment.","IP_POOL_NUM_TIP":"Please enter the number of pod IP pools to be created.","IP_POOL_CREATE_COUNT_DESC":"Up to 10 pod IP pools can be created at the same time.","INVALID_IP_DESC":"Invalid IP address format.","IPPOOL_ASSIGN_WORKSPACE_DESC":"Assign the pod IP pool to a workspace.","IPPOOL_ASSIGN_WORKSPACE_ALLOCATED_WARNING":"The pod IP pool is in use and cannot be assigned to another specific workspace.","IPPOOL_ASSIGN_WORKSPACE_CHANGE_WARNING":"The pod IP pool is in use with a specific workspace assigned. The workspace cannot be changed.","ASSIGN_WORKSPACE":"Assign Workspace","SELECT_WORKSPACE_DESC":"Select a workspace.","POD_IP_POOL_LOW":"pod IP pool","ADD_EDGE_IPPOOL":"Add a container group IP address pool ","ADD_EDGE_IPPOOL_DES":"Adds a container group IP pool to a resource. ","ADD_IPPOOL_EMPTY_DES_ADMIN":"If no container group IP pool meets the requirements, you can ","ADD_IPPOOL_EMPTY_DES":"If no container group IP address pool meets the requirements, contact the administrator to create a container group IP address pool ","SELECTED_IPPOOLS":"{number} IP pools have been selected ","CLUSTER_IPPOOL_EMPTY_DES":" No available container group IP address pool is found in the current cluster. ","ATTRIBUTES":"Attributes","ARCHITECTURE":"Architecture","OS_VERSION":"OS Version","OS_TYPE":"OS Type","LINUX":"Linux","KERNEL_VERSION":"Kernel Version","CONTAINER_RUNTIME":"Container Runtime","KUBELET_VERSION":"kubelet Version","KUBE_PROXY_VERSION":"kube-proxy Version","IP_ADDRESS":"IP Address","SCHEDULABLE":"Schedulable","YES":"Yes","EDIT_LABELS":"Edit Labels","LABEL_PL":"Labels","TAINTS":"Taints","EDIT_TAINTS":"Edit Taints","TAINTS_DESC":"Add taints to nodes so that pods are not scheduled to the nodes or not scheduled to the nodes if possible. After you add taints to nodes, you can set tolerations on a pod to allow the pod to be scheduled to nodes with certain taints.","COMMON_TAINTS":"Common Taints","NOSCHEDULE":"Prevent scheduling","PREFERNOSCHEDULE":"Prevent scheduling if possible","NOEXECUTE":"Prevent scheduling and evict existing pods","TAINT_SELECT_TIPS":"Join Common Taints","TAINTS_TIPS":"Prevent scheduling
    Prevents the container group from being scheduled to the node.

    Prevent scheduling as much as possible
    Prevent container groups from being scheduled to nodes as much as possible.

    Prevent scheduling and evict existing container groups
    Prevent container groups from being scheduled to a node and evict existing container groups on the node. ","TAINT_DELETE_TIP":"Delete taint","RESOURCE_USAGE":"Resource Usage","MAXIMUM_PODS":"Maximum Pods","MAXIMUM_PODS_SCAP":"Maximum pods","DISK_USAGE_SCAP":"Disk usage","MEMORY_REQUEST_SCAP":"Memory request","MEMORY_LIMIT_SCAP":"Memory limit","CPU_REQUEST_SCAP":"CPU request","CPU_LIMIT_SCAP":"CPU limit","ALLOCATED_RESOURCES":"Allocated Resources","RUNNING_STATUS":"Running Status","HEALTH_STATUS":"Health Status","NODE_NETWORKUNAVAILABLE":"Network Availability","NODE_NETWORKUNAVAILABLE_DESC":"Whether the network status of the node is normal.","NODE_MEMORYPRESSURE":"Memory Pressure","NODE_MEMORYPRESSURE_DESC":"Whether the remaining memory of the node is less than the threshold.","NODE_DISKPRESSURE":"Disk Pressure","NODE_DISKPRESSURE_DESC":"Whether the ramaining disk space or inodes of the node is less than the threshold.","NODE_PIDPRESSURE":"PID Pressure","NODE_PIDPRESSURE_DESC":"Whether the number of processes allowed to be created on the node is less the threshold.","NODE_READY":"Readiness","NODE_READY_DESC":"Whether the node is ready to accept pods.","LAST_HEARTBEAT_VALUE":"Last Heartbeat: {value}","NO_TAINTS_TIPS":"No taint is found.","POLICY":"Policy","READY_VALUE":"Ready: {readyCount}/{total}","STATUS_VALUE":"Status: {value}","USAGE":"Usage","OUT":"Out","IN":"In","CLUSTER_NODE_PL":"Cluster Nodes","CLUSTER_NODE":"Cluster Node","CLUSTER_NODE_DESC":"Cluster nodes are basic servers of the KubeSphere cluster. You can manage cluster nodes on this page.","NODE_TYPES_Q":"What are the types of cluster nodes?","NODE_TYPES_A":"Nodes are classified into control plane nodes and worker nodes.","WHAT_IS_NODE_TAINTS_Q":"What are node taints?","WHAT_IS_NODE_TAINTS_A":"Taints allow a node to repel certain pods. Taints and tolerations work together to ensure that pods are not scheduled onto inappropriate nodes.","LEARN_MORE":"Learn More","NODE_SI":"Node","NODE_PL":"Nodes","MASTER_NODE_SI":"Control plane node","MASTER_NODE_PL":"Control plane nodes","WORKER_NODE_SI":"Worker node","WORKER_NODE_PL":"Worker nodes","KUBE_OPERATE":"Sort","KUBE_ASCENDING_ORDER":"Ascending","KUBE_DESCENDING_ORDER":"Descending","KUBE_FILTER":"Filter","SEARCH":"Search","ADD_NODE":"Add Node","NODE_STATUS_UNSCHEDULABLE":"Unschedulable","NODE_STATUS_RUNNING":"Running","NODE_STATUS_WARNING":"Warning","NODE_STATUS_PENDING":"Creating","NODE_STATUS_FAILED":"Failed","CLUSTER_NODE_EMPTY_DESC":"Please add a node to the cluster.","NODE_NAME_EMPTY_DESC":"Please set a name for the node.","CPU_USAGE":"CPU Usage","MEMORY_USAGE":"Memory Usage","CONTROL_PLANE":"Control plane","WORKER":"Worker","ALLOCATED_CPU":"Allocated CPU","ALLOCATED_MEMORY":"Allocated Memory","CPU_LIMIT_SI":"Resource limit: {core} core ({percent})","CPU_LIMIT_PL":"Resource limit: {core} cores ({percent})","CPU_REQUEST_SI":"{core} core ({percent})","CPU_REQUEST_PL":"{core} cores ({percent})","CORE_PL":"cores","CPU_CORE_PERCENT_SI":"{core} core ({percent})","CPU_CORE_PERCENT_PL":"{core} cores ({percent})","MEMORY_GIB_PERCENT":"{gib} GiB ({percent})","MEMORY_LIMIT_VALUE":"Resource limit: {gib} GiB ({percent})","MEMORY_REQUEST_VALUE":"{gib} GiB ({percent})","RESOURCE_REQUEST":"Resource request","CORDON":"Cordon","UNCORDON":"Uncordon","OPEN_TERMINAL":"Open Terminal","CUSTOM_COLUMNS":"Customize Columns","NO_MATCHING_RESULT_FOUND":"No Matching Result Found","STATUS":"Status","TOTAL_ITEMS":"Total: {num}","YOU_CAN_TRY_TO":"You can try","REFRESH_DATA":"refreshing data","CLEAR_SEARCH_CONDITIONS":"clearing search conditions","DUPLICATE_KEYS":"The key already exists. Please enter another key.","EMPTY_KEY":"Please enter a key.","LATEST_UPDATE_VALUE":"Latest update: {value}","EDGE_NODE_PL":"Edge Nodes","EDGE_NODE_DESC":"Edge nodes are servers deployed outside the KubeSphere cluster. You can add edge nodes to the KubeSphere cluster to manage them.","EDGE_NODE_EMPTY_DESC":"Please add an edge node to the cluster.","AGENT":"Agent","EDGE":"Edge node","ADD":"Add","ADD_EDGE_NODE":"Add Edge Node","EDGENODE_CONFIG_COMMAND":"Edge Node Configuration Command","ADD_EDGE_COMMAND":"Run the above command on your edge node to configure it.","IN_USE_Node_IP":"The IP address {ip} is in use. Please enter another IP address.","IN_USE_Node_NAME":"The node name {name} already exists. Please enter another name.","EDGENODE_NAME_EMPTY_DESC":"Please set a name for the edge node.","EDGENODE_CONFIG_COMMAND_TIP":"Before running the command, you must install a container runtime such as Docker or containerd on your edge node. Learn More","ADD_DEFAULT_TAINT":"Add the default taint {params}","EDGE_NODE":"Edge Node","INTERNAL_IP_ADDRESS":"Internal IP Address","EDGENODE_INTERNAL_IP_DESC":"Set the internal IP address of the edge node in the KubeSphere cluster.","EDGENODE_INTERNAL_IP_EMPTY_DESC":"Please set the internal IP address of the edge node in the KubeSphere cluster.","COPY_SUCCESSFUL":"Copied successfully.","LOGS":"Logs","VIEW_LOG":"View Log","EDGE_LIST_NOT_HOST_TITLE":"The current cluster is unavailable","EDGE_LIST_NOT_HOST_TITLE_DESC":"Edge nodes can only be used in the main cluster for now","HOST_CLUSTER":"Host cluster","MEMBER_CLUSTER":"Member cluster","PROVIDER":"Provider","KUBERNETES_VERSION":"Kubernetes version","KUBESPHERE_VERSION":"KubeSphere version","VISIBILITY_PARTIAL":"Visible to Some Workspaces","VISIBILITY_PUBLIC":"Visible to All Workspaces","CLUSTER_BASE_INFO_DESC":"Basic information provides an overview of the cluster. You can view and edit cluster information.","MEMORY":"Memory","TOTAL":"Total","USED":"Used","TOOLS":"Tools","KUBECTL_DESC":"Command line tool used to control the current cluster.","KUBECONFIG_DESC":"File used to configure the access information about the current cluster.","KUBERNETES_STATUS":"Kubernetes Status","API_REQUESTS_PER_SECOND":"API requests per second","VALUE_REQUESTS_SECOND":"{value, plural, =1 {1 request} other {# requests}}/s","API_REQUEST_LATENCY":"API request latency","SCHEDULING_OPERATIONS":"Scheduling operations","SCHEDULING_OPERATION":"Scheduling operation","SCHEDULING_FAILURES":"Scheduling failures","SCHEDULING_FAILURE":"Scheduling failure","VIEW_MORE":"View More","NODE_CPU_UTILISATION":"CPU usage","NODE_LOAD1":"Average CPU load (1 min)","NODE_MEMORY_UTILISATION":"Memory usage","NODE_DISK_SIZE_UTILISATION":"Disk usage","NODE_DISK_INODE_UTILISATION":"Inode usage","NODE_POD_UTILISATION":"Pod usage","WAIT_FOR_CLUSTER":"Waiting for the cluster to join...","WAIT_FOR_CLUSTER_DESC":"The cluster is unavailable. Perform the following steps to add the cluster.","CLUSTER_AGENT_TIP_1":"1. Log in to the cluster over SSH and run the vi agent.yaml command to create a configuration file.","CLUSTER_AGENT_TIP_2":"2. Copy the following information to the agent.yaml file.","CLUSTER_AGENT_TIP_3":"3. Run the kubectl create -f agent.yaml command to add the cluster.","CLUSTER_AGENT_TIP_3_DESC":"This operation may take a while. Please wait until the cluster status is updated.","CREATING_CLUSTER":"Creating the cluster...","CREATING_CLUSTER_DESC":"The cluster is being created and is currently unavailable.","CLUSTER_INIT_FAILED":"Cluster initialization failed.","CLUSTER_CREATION_PROGRESS":"Cluster Creation Progress","FETCHING_LOGS":"Fetching logs...","CURRENT_STEP":"Current step: {step}","CLUSTER_CREATION_PROGRESS_TIP":"Depending on the cluster size and infrastructure environment, cluster creation may take 30 to 60 minutes.","GATEWAY":"Gateway","GATEWAY_NOT_ENABLED":"Gateway Not Enabled","ENABLE_GATEWAY_TIP":"To use the gateway, please configure the gateway in the cluster or the project.","QUOTA_PL":"Quotas","PROJECT_DESC":"Projects are used to group resources and control the resource management permissions of different users.","SYSTEM_PROJECTS":"System Projects","USER_PROJECTS":"User Projects","EMPTY_WRAPPER":"No {resource} Found","TERMINATING":"Terminating","ACTIVE":"Active","PROJECT_ADMINISTRATOR":"Project Administrator","PROJECT_ADMINISTRATOR_DESC":"Select a user in the workspace as the project administrator.","PROJECT_ASSIGN_DESC":"After the project is assigned to a workspace, the workspace cannot be changed.","CREATE_PROJECT_DESC":"Create a project to group resources and control the resource management permissions of different users.","PROJECT_NAME_DESC":"The name can contain only lowercase letters, numbers, and hyphens (-), must start with a lowercase letter, and must end with a lowercase letter or number. The maximum length is 63 characters.","PROJECT_NAME_INVALID_DESC":"Invalid name. The name can contain only lowercase letters, numbers, and hyphens (-), must start with a lowercase letter, and must end with a lowercase letter or number. The maximum length is 63 characters.","CANCEL":"Cancel","CREATE_NAME":"Create {name}","DESCRIPTION":"Description","NAME_VALIDATION_FAILED":"The name cannot start with kube-, which is reserved for the Kubernetes system.","PROJECT_NAME_EXIST_DESC":"The name already exists. Please enter another name. Project names must be unique on the entire platform.","NAME_EMPTY_DESC":"Please set a name.","OK":"OK","NAME_DESC":"The name can contain only lowercase letters, numbers, and hyphens (-), and must start and end with a lowercase letter or number. The maximum length is 63 characters.","DESCRIPTION_DESC":"The description can contain any characters and the maximum length is 256 characters.","ALIAS_DESC":"The alias name can contain only letters, numbers, and hyphens (-), and cannot start or end with a hyphen. The maximum length is 63 characters.","EDIT_INFORMATION":"Edit Information","DELETE_TITLE_SI":"Delete {type}","DELETE_TITLE_PL":"Delete Multiple {type}","DELETE":"Delete","PROJECT_LOW":"project","DELETED_SUCCESSFULLY":"Deleted successfully.","STOP_SUCCESS_DESC":"Stopped successfully.","DELETE_RESOURCE_TYPE_DESC_SI":"Enter the {type} name {resource} to confirm that you understand the risks of this operation.","DELETE_RESOURCE_TYPE_DESC_PL":"Enter the {type} names {resource} to confirm that you understand the risks of this operation.","DELETE_RESOURCE_TYPE_DESC_GW":"Enter the {type} names {resource} to confirm that you understand the risks of this operation.","DISABLED_RESOURCE_TYPE_DESC":"Enter the {resource} to confirm that you understand the risks of this operation.","VOLUME_EXPAND_TIP":"The persistent volume claim has been mounted to a workload. Expanding the persistent volume claim will cause the workload to restart and business will be interrupted for a short while.","MOUNTED_PODS":"Mounted Pods","SNAPSHOT_PL":"Snapshots","STORAGE":"Storage","PERSISTENT_VOLUME_CLAIM_DESC":"Persistent volume claims define storage requirements. The system creates persistent volumes according to persistent volume claims.","PERSISTENT_VOLUME_CLAIM":"Persistent Volume Claim","PERSISTENT_VOLUME_CLAIM_PL":"Persistent Volume Claims","WHAT_IS_STORAGE_CLASS_Q":"What is a storage class?","WHAT_IS_STORAGE_CLASS_A":"A storage class is a storage type configured by the cluster administrator. Different storage classes provide cluster users with different types of volumes.","WHAT_IS_LOCAL_VOLUME_Q":"What is a local volume?","WHAT_IS_LOCAL_VOLUME_A":"A local volume is a volume created in the local file system of the cluster.","VOLUME_STATUS_BOUND":"Bound","VOLUME_STATUS_LOST":"Lost","VOLUME_STATUS_PENDING":"Pending","VOLUME_STATUS_TERMINATING":"Terminating","VOLUME_STATUS_UPDATING":"Updating","VOLUME_CONDITION_FILESYSTEMRESIZEPENDING":"Disk Expanding","PERSISTENT_VOLUME_CLAIM_EMPTY_DESC":"Please create a persistent volume claim.","PERSISTENT_VOLUME_EMPTY_DESC":"Please create a persistent volume.","MOUNT_STATUS":"Mount Status","MOUNTED":"Mounted","NOT_MOUNTED":"Not mounted","ACCESS_MODE_TCAP":"Access Mode","RWO_DESC":"RWO: Single-node read and write","ROX_DESC":"ROX: Multi-node readonly","RWX_DESC":"RWX: Multi-node read and write","ACCESS_MODE_RWO":"RWO: Single-node read and write","ACCESS_MODE_ROX":"ROX: Multi-node readonly","ACCESS_MODE_RWX":"RWX: Multi-node read and write","CREATE":"Create","CREATE_PERSISTENT_VOLUME_CLAIM":"Create Persistent Volume Claim","CREATION_METHOD":"Creation Method","CREATE_VOLUME_BY_STORAGE_CLASS":"From Storage Class","CREATE_VOLUME_BY_SNAPSHOT":"From Volume Snapshot","SELECT_SNAPSHOT_TO_CREATE_VOLUME":"Select a snapshot to create a volume.","SELECT_STORAGE_CLASS_CREATE_VOLUME":"Select a storage class to create a volume.","VOLUME_CAPACITY":"Volume Capacity","PARAM_REQUIRED":"This parameter is required.","VOLUME_SIZE_TIP":"The volume capacity must be greater than 0.","VOLUME_STORAGE_CLASS_DESC":"Select a storage class to create a volume of a specific type.","PERSISTENT_VOLUME_CLAIM_LOW":"persistent volume claim","VOLUME_HANDLE":"Volume Handle","VOLUME_MODE":"Volume Mode","VOLUME_MODE_FILESYSTEM":"File system","VOLUME_MODE_BLOCK":"Block device","STORAGE_CLASS_VALUE":"Storage class: {value}","PERSISTENT_VOLUME":"Persistent Volume","PERSISTENT_VOLUME_PL":"Persistent Volumes","PERSISTENT_VOLUME_LOW":"persistent volume","PV_STATUS_AVAILABLE":"Available","PV_STATUS_BOUND":"Bound","PV_STATUS_RELEASED":"Released","PV_STATUS_FAILED":"Failed","RECYCLING_STRATEGY":"Recycling Strategy","VOLUME_EMPTY_DESC":"Please bind a persistent volume claim to a workload.","TRUE":"True","FALSE":"False","SET_DEFAULT_STORAGE_CLASS_TITLE":"Set as Default Storage Class","SET_AS_DEFAULT_STORAGE_CLASS":"Set as Default Storage Class","STORAGE_CLASS_SET_DEFAULT_DESC":"After the default storage class is set, the system will create volumes of this class by default if no special requirement is added. Only one default storage class is allowed in a KubeSphere cluster.","SET_AUTHORIZATION_RULES":"Set Authorization Rules","AUTHORIZATION_RULES":"Authorization Rules","AUTHORIZATION_RULES_DESC":"Set authorization rules so that the storage class can be accessed only in specific projects and workspaces.","AUTHORIZATION_NOT_SUPPORT":"The cluster currently does not support this feature. Please upgrade KubeSphere to v3.3.0 or later, or manually install storageclass-accessor.","OPERATOR_IN":"In","OPERATOR_NOT_IN":"Not in","SET_VOLUME_OPERATIONS":"Set Volume Operations","VOLUME_CLONING":"Volume Cloning","VOLUME_CLONING_DESC":"Allow users to clone volumes.","VOLUME_SNAPSHOT_CREATION":"Volume Snapshot Creation","VOLUME_SNAPSHOT_CREATION_DESC":"Allow users to create volume snapshots.","VOLUME_EXPANSION_DESC":"Allow users to expand volumes. Volumes can only be expanded and cannot be shrunk.","SET_VOLUME_OPERATIONS_TIP":"The following settings only control whether users are allowed to perform the operations on the web console. Whether persistent volumes created based on the storage class actually support the operations depends on the backend storage system.","SET_AUTO_EXPANSION":"Set Auto Expansion","AUTO_EXPANSION":"Auto Expansion","AUTO_EXPANSION_DESC":"Set the system to automatically expand volumes when the remaining volume space is lower than a threshold.","AUTO_EXPANSION_SETTINGS":"Auto Expansion Settings","MAXIMUM_SIZE":"Maximum Size","INCREMENT":"Increment","INCREMENT_DESC":"Set the volume size increment according to the CSI pluggin of the storage class.","RESTART_WORKLOAD_AUTOMATICALLY":"Restart workload automatically","RESTART_WORKLOAD_AUTOMATICALLY_DESC":"The system automatically checks volume status to determine whether the workload needs to be restarted.","RESTART_WORKLOAD_AUTOMATICALLY_TIP":"If the volume is not expanded successfully when the timeout period expires, the system will add the \"restart.kubesphere.io/skip\" annotation to the workload so that the workload is not restarted any more. To enable the automatic restart function for the workload again, you need to manually delete the annotation on the workload.","MAXIMUM_SIZE_SCAP":"Maximum size","VALUE_TIMEOUT":"{value}s (timeout)","PVC_COUNT":"PVCs","STORAGE_CLASS_PL":"Storage Classes","STORAGE_CLASS_DESC":"Storage classes support dynamic volume provisioning, allowing administrators to create new storage volumes on demand.","STORAGE_CLASS_EMPTY_DESC":"Please create a storage class.","DEFAULT_STORAGE_CLASS":"Default Storage Class","ALLOW_VOLUME_SNAPSHOT":"Volume Snapshot Allowed","ALLOW_VOLUME_CLONE":"Volume Clone Allowed","ALLOW_VOLUME_EXPANSION":"Volume Expansion Allowed","CHOOSE_STORAGE_SYSTEM_TIP":"Select Storage System","PROVISIONER_DEPENDENCE_DESC":"You need to deploy a plugin in your storage system before it provides services.","QINGCLOUD_CSI_DESC":"Use QingCloud CSI as the underlying storage plugin.","CUSTOM":"Custom","VOLUME_EXPANSION":"Volume Expansion","RECLAIM_POLICY":"Reclaim Policy","ACCESS_MODE":"Access Mode","ACCESS_MODES_DESC":"Select one or more access modes supported by the storage class.","STORAGE_SYSTEM":"Storage System","VOLUME_BINDING_MODE":"Volume Binding Mode","IMMEDIATE_BINDING":"Immediate binding","BINDING_WAIT":"Delayed binding","MAXSIZE":"Maximum Size","MINSIZE":"Minimum Size","STEPSIZE":"Step Size","FSTYPE":"File System Type","QINGCLOUD_CSI_TYPE_DESC":"On QingCloud Public Cloud Platform, 0 means high performance volume; 2 high capacity volume; 3 ultra-high performance volume; 5 enterprise server SAN (NeonSAN); 100 standard volume; 200 enterprise SSD.","CREATE_VOLUME_MAX_SIZE":"Maximum size of the volume.","CREATE_VOLUME_STEP_SIZE":"Step size of the volume.","CREATE_VOLUME_MIN_SIZE":"Minimum size of the volume.","VOLUME_FS_TYPE":"Supports ext3, ext4, and xfs. The default type is ext4.","QINGCLOUD_VOLUME_TAGS_DESC":"Add tags to the storage volume. Use commas to separate multiple tags.","GID_RANGE_TIP":"The value cannot be less than 2000 or greater than 2147483647.","GLUSTERFS_RESTURL_DESC":"Heketi REST URL that provisions volumes.","GLUSTERFS_ID_DESC":"Gluster cluster ID.","GLUSTERFS_RESTAUTHENABLED_DESC":"Gluster enables authentication to the REST server.","GLUSTERFS_RESTUSER_DESC":"Username of Gluster REST service or Heketi service.","GLUSTERFS_SECRET_NAMESPACE_DESC":"Namespace of the Heketi user secret.","GLUSTERFS_SECRET_NAME_DESC":"Name of the Heketi user secret.","GLUSTERFS_GID_MIN_DESC":"Minimum GID of the volume.","GLUSTERFS_GID_MAX_DESC":"Maximum GID of the volume.","GLUSTERFS_VOLUME_TYPE_DESC":"Type of volume. The value can be none, replicate:, or disperse::. If the volume type is not set, the default volume type is replicate:3.","RESTURL":"REST URL","CLUSTER_ID":"Cluster ID","REST_AUTH_ENABLED":"REST Authentication","REST_USER":"REST User","VOLUME_TYPE":"Volume Type","SECRET_NAME":"Secret Name","REST_AUTH_TRUE":"True","SECRET_NAMESPACE":"Secret Namespace","GID_MIN":"Minimum GID","GID_MAX":"Maximum GID","CEPHRBD_MONITORS_DESC":"IP address of Ceph monitors.","CEPHRBD_ADMIN_ID_DESC":"Ceph client ID that is capable of creating images in the pool.","CEPHRBD_ADMIN_SECRET_NAME_DESC":"Secret name of adminid.","CEPHRBD_ADMIN_SECRET_NAMESPACE_DESC":"The namespace for adminSecretName.","CEPHRBD_POOL_DESC":"Name of the Ceph RBD pool.","CEPHRBD_USERID_DESC":"Ceph client ID that is used to map the RBD image. Default is the same as adminId.","CEPHRBD_USER_SECRET_NAME_DESC":"The name of Ceph secret for userId to map RBD image.","CEPHRBD_USER_SECRET_NAMESPACE_DESC":"The namespace for userSecretName","CEPHRBD_FS_TYPE_DESC":"File system type of the storage volume.","CEPHRBD_IMAGE_FORMAT_DESC":"Option of the Ceph volume. The value can be \"1\" or \"2\". imageFeatures needs to be filled when you set imageFormat to \"2\".","CEPHRBD_IMAGE_FEATURES_DESC":"Additional function of the Ceph cluster. The value should only be set when you set imageFormat to \"2\".","CEPH_MONITOR_IP":"IP address and port number","STORAGE_CLASS_SETTINGS":"Storage Class Settings","PARAMETERS":"Parameters","STORAGE_CLASS":"Storage Class","STORAGE_CLASS_LOW":"storage class","STORAGE_CLASS_DELETE_DESC":"Deleting the volume snapshot class may affect the normal use of volume snapshots. Are you sure you want to delete the volume snapshot class?","STORAGE_CLASS_DELETE_DESC_PL":"Deleting the volume snapshot class may affect the normal use of volume snapshots. Enter the {type} names {resource} to confirm that you understand the risks of this operation.","VOLUME_SNAPSHOT_CLASS_PL":"Volume Snapshot Classes","VOLUME_SNAPSHOT_CLASS":"Volume Snapshot Class","VOLUME_SNAPSHOT_CLASS_DESC":"Volume snapshot classes provide a way for administrators to define storage types used for volume snapshots.","VOLUME_SNAPSHOT_CLASS_EMPTY_DESC":"Please create a volume snapshot class.","SNAPSHOT_CLASS_SETTINGS":"Volume Snapshot Class Settings","SNAPSHOT_CLASS_PROVISIONER_DESC":"Enter the name of a CSI plugin.","SNAPSHOT_CLASS_PROVISIONER_EMPTY_DESC":"Please enter the name of a CSI plugin.","VOLUME_SNAPSHOT_CLASS_LOW":"volume snapshot class","DELETE_VOLUME_SNAPSHOT_CLASS":"Delete Volume Snapshot Class","SNAPSHOT_HANDLE":"Snapshot Handle","VOLUME_SNAPSHOT_CONTENT":"Volume Snapshot Content","VOLUME_SNAPSHOT_CONTENT_PL":"Volume Snapshot Contents","VOLUME_SNAPSHOT_CONTENT_LOW":"volume snapshot content","VOLUME_SNAPSHOT_CONTENT_EMPTY_DESC":"Please create a volume snapshot.","READY":"Ready","UNREADY":"Unready","UNSCHEDULABLE":"Unschedulable","DELETION_POLICY":"Deletion Policy","CREATE_VOLUME":"Create Volume","SNAPSHOT_CLASS_NOT_EXIST_TITLE":"Volume Snapshot Class Not Found","SNAPSHOT_CLASS_NOT_EXIST":"The volume snapshot class of the volume snapshot does not exist.","STORAGE_CLASS_SCAP":"Storage class","DATA_SOURCE":"Data Source","VOLUME_SNAPSHOT":"Volume Snapshot","VOLUME_SNAPSHOT_PL":"Volume Snapshots","VOLUME_SNAPSHOT_DESC":"A volume snapshot is the copy of a volume at a specific point in time. It can be used to provision a new volume with data pre-populated by the snapshot or restore a volume to its previous state that is captured by the snapshot.","WHAT_IS_VOLUME_SNAPSHOT_CLASS_Q":"What is a volume snapshot class?","WHAT_IS_VOLUME_SNAPSHOT_CLASS_A":"A volume snapshot class defines the storage types used to create a volume snapshot.","WHAT_IS_VOLUME_SNAPSHOT_CONTENT_Q":"What is a volume snapshot content?","WHAT_IS_VOLUME_SNAPSHOT_CONTENT_A":"A volume snapshot content is a resource that represents the content of a volume snapshot.","SELECT_A_VOLUME_DESC":"Select a persistent volume claim to create a snapshot.","SELECT_VOLUME_SNAPSHOT_CLASS_DESC":"Select a snapshot class to create a snapshot of a specific type.","VOLUME_SNAPSHOT_EMPTY_DESC":"Please create a volume snapshot.","VOLUME_SNAPSHOT_STATUS_CREATING":"Creating","VOLUME_SNAPSHOT_STATUS_FAILED":"Creation failed","VOLUME_SNAPSHOT_STATUS_READY":"Created successfully","VOLUME_SNAPSHOT_STATUS_DELETING":"Deleting","CREATE_STATUS_SUCCESS":"Created successfully","CREATE_STATUS_UPDATING":"Creating","CREATE_STATUS_FAILED":"Creation failed","CREATE_STATUS_DELETING":"Deleting","VOLUME_SNAPSHOT_LOW":"volume snapshot","STORAGECLASS_NOT_ALLOW_CREATE_SNAPSHOT":"The storage class of the persistent volume claim does not support snapshot creation. Please select another persistent volume claim.","SYSTEM_COMPONENT_PL":"System Components","SERVICE_COMPONENTS_DESC":"System components are software components in the KubeSphere system, which provide various functions. You can view the running status of services components on this page.","STOPPED":"Stopped","RUNNING_TIME":"Running time","KS_CONSOLE_DESC":"Provides KubeSphere console services.","KS_APISERVER_DESC":"Provides REST APIs for cluster management. This component is also used for communication between cluster components and cluster security control.","OPENLDAP_DESC":"Stores and manages user information in a centralized manner.","REDIS_DESC":"Open-source, in-memory data structure store, which is used as a database, cache, and message broker.","TOWER_DESC":"Tool used for network connection between clusters over proxy.","KS_CONTROLLER_MANAGER_DESC":"Implements service logic. This component creates permissions when a workspace is created and generates Istio configuration for service strategies.","COREDNS_DESC":"Provides the service discovery function for the Kubernetes cluster.","METRICS_SERVER_DESC":"Kubernetes monitoring component that collects metrics from kubelet of each node.","KUBE_SCHEDULER_DESC":"Kubernetes scheduler that assigns pods to appropriate nodes.","KUBE_SCHEDULER_SVC_DESC":"Kubernetes scheduler that assigns pods to appropriate nodes.","KUBE_CONTROLLER_MANAGER_SVC_DESC":"Daemon that embeds the core control loops shipped with Kubernetes.","JAEGER_COLLECTOR_DESC":"Collects sidecar data. The sidecar of Istio is jaeger-agent.","JAEGER_COLLECTOR_HEADLESS_DESC":"Collects sidecar data. The sidecar of Istio is jaeger-agent.","JAEGER_QUERY_DESC":"Accepts query requests, retrieves traces from the backend storage system, and displays the data on the web UI.","JAEGER_OPERATOR_METRICS_DESC":"Provides monitoring metrics for Operator.","MONITORING":"Monitoring","PROMETHEUS_K8S_DESC":"Provides monitoring data of nodes, workloads, and API objects.","NODE_EXPORTER_DESC":"Provides monitoring data of all cluster nodes for Prometheus.","KUBE_STATE_METRICS_DESC":"Listens on the Kubernetes API server to obtain the status of cluster API objects such as nodes, workloads, and pods, and generates monitoring data for Prometheus.","PROMETHEUS_OPERATED_DESC":"Service corresponding to all Prometheus instances, which is used internally by Prometheus Operator.","PROMETHEUS_OPERATOR_DESC":"Manages Prometheus instances.","ALERTMANAGER_OPERATED_DESC":"Alertmanager service used for integrating Alertmanager with Prometheus.","ALERTMANAGER_MAIN_DESC":"Alertmanager Web UI service.","NOTIFICATION_MANAGER_SVC_DESC":"Provides interfaces for sending notifications such as emails, WeChat messages, and Slack messages.","NOTIFICATION_MANAGER_CONTROLLER_METRICS_DESC":"Provides internal monitoring data for Notification Manager Controller.","LOGGING":"Logging","ELASTICSEARCH_LOGGING_DATA_DESC":"Provides Elasticsearch services such as data storage, backup, and searching.","ELASTICSEARCH_LOGGING_DISCOVERY_DESC":"Provides Elasticsearch cluster management services.","LOGSIDECAR_INJECTOR_ADMISSION_DESC":"Automatically injects sidecar containers into pods for disk log collection.","KS_EVENTS_ADMISSION_DESC":"Provides the authentication webhook for event rule management.","KS_EVENTS_RULER_DESC":"Event rule engine service that provides filtering and alerting features.","KUBE_AUDITING_WEBHOOK_SVC_DESC":"Used for audit collection, comparison, persistence, and alerting.","S2IOPERATOR_METRICS_SERVICE_DESC":"S2I monitoring service that provides basic monitoring data.","WEBHOOK_SERVER_SERVICE_DESC":"Provides the default values and authentication webhook for S2I.","CODE_REPO_PL":"Code Repositories","CODE_REPO_LOW":"code cepository","CODE_REPO":"Code Repository","CODE_REPO_DESC":"Manage code repositories based on Git.","CODE_REPO_EMPTY_DESC":"Import a code repository from GitHub, GitLab, or Bitbucket. You can also use Git to directly pull source code.","IMPORT_CODE_REPO":"Import Code Repository","EDIT_CODE_REPO":"Edit Code Repository","LATEST_SYNC_STATUS":"Latest sync status","CURRENT_SYNC_STATUS":"Current sync status","SYNC_STRATEGY":"Sync strategy","AUTO_SYNC":"Auto Sync","MANUAL_SYNC":"Manual Sync","END_TIME_SCAP":"End time","SYNC_RESULT_PL":"Sync Results","SYNC_RESULT":"Sync Result","SYNC_RESULT_EMPTY_DESC":"No sync result is found.","CONTINUOUS_DEPLOYMENT_PL":"Continuous Deployments","CONTINUOUS_DEPLOYMENT_DESC":"Manage continuous deployments to continuously deploy resources by using GitOps. ","CONTINUOUS_DEPLOYMENT_EMPTY_DESC":"Please create a continuous deployment.","DEGRADED":"Degraded","PROGRESSING":"Progressing","SYNCED":"Synced","MISSING":"Missing","SUSPENDED":"Suspended","OUTOFSYNC":"Out of sync","DEPLOY_LOCATION":"Deployment Location","NEED_TO_SYNC_REPO":"Need to sync repo","CREATE_CONTINUOUS_DEPLOYMENT":"Create Continuous Deployment","CD_SELECT_CODE_REPO_DESC":"Select a code repository.","DEPLOYMENT_SETTINGS":"Deployment Settings","CODE_REPOSITORY_SETTINGS":"Code Repository Settings","SYNC_STRATEGY_TCAP":"Sync Strategy","AUTO_SYNC_DESC":"Automatically trigger application sync when there is a difference between the manifest in Git and the real-time state of the deployed resources, according to the set sync options.","PRUNE_RESOURCES":"Prune resources","SELF_HEAL":"Self-heal","MANIFEST_FILE_PATH":"Manifest File Path","DIRECTORY_RECURSE":"Directory recurse","REPO_EMPTY_DESC":"Please select a code repository.","VALUES_FILES":"Values Files","VALUES_FROM":"Values From","STORAGE_NAMESPACE":"Storage Namespace","TEST":"Test","REVISIONS_DESC":"Git repository commit ID, branch, or tag. For example: \"master\", \"v1.2.0\", \"0a1b2c3\", or \"HEAD\".","MANIFEST_FILE_PATH_DESC":"Manifest file path, for example: \"deployments/nginx\" or \"deployments/\"","MANUAL_SYNC_DESC":"Sync according to custom rules.","PRUNE_RESOURCES_DESC":"If selected, resources that do not exist in Git will be deleted during automatic sync. If not selected, resources in the cluster will not be deleted when automatic sync is triggered.","SELF_HEAL_DESC":"If selected, when there is a deviation between the defined state in Git and the deployed resources, the defined state in Git will be enforced. If not selected, automatic sync will not be triggered when changes are made to the deployed resources.","FOREGROUND_DESC":"Delete dependent resources first, then delete the main resource.","BACKGROUND_DESC":"Delete the main resource first, then delete the dependent resource.","ORPHAN_DESC":"Delete the main resource and leave the dependent resource as an orphan.","SKIP_SCHEMA_VALIDATION_DESC":"Skip kubectl validation. Add the --validate=false flag when kubectl applies the object.","AUTO_CREATE_PROJECT_DESC":"Automatically create a project for application resources when the project does not exist.","PRUNE_LAST_DESC":"Clean up resources after other resources are deployed and healthy.","APPLY_OUT_OF_SYNC_ONLY_DESC":"Only apply resources that are out of sync.","CONTINUOUS_DEPLOYMENT":"Continuous Deployment","CONTINUOUS_DEPLOYMENT_LOW":"continuous deployment","DELETE_CONTINUOUS_DEPLOYMENT_DESC_SI":"You are about to delete the continuous deployment {resource}.
    Please confirm whether to delete resources created by the continuous deployment.","DELETE_CONTINUOUS_DEPLOYMENT_DESC_PL":"You are about to delete the continuous deployments {resource}.
    Please confirm whether to delete resources created by the continuous deployments.","NO_CONTINUOUS_DEPLOYMENT_RELATED_RESOURCE_DESC":"No resource created by the continuous deployment is found.","DELETE_MULTIPLE_CONTINUOUS_DEPLOYMENT":"Delete Multiple Continuous Deployments","DELETE_CONTINUOUS_DEPLOYMENT":"Delete Continuous Deployment","DELETE_CONTINUOUS_DEPLOYMENT_RELATE_DESC":"Delete resources created by {resourceName}","SYNC":"Sync","SYNC_RESOURCE":"Sync Resource","REVISION":"Revision","REVISION_DESC":"Set a branch or tag of the code repository.","PRUNE":"Prune","DRY_RUN":"Dry run","APPLY_ONLY":"Apply only","FORCE":"Force","SYNC_SETTINGS":"Sync Settings","SKIP_SCHEMA_VALIDATION":"Skip schema validation","AUTO_CREATE_PROJECT":"Auto create project","PRUNE_LAST":"Prune last","APPLY_OUT_OF_SYNC_ONLY":"Apply out of sync only","PRUNE_PROPAGATION_POLICY":"Prune Propagation Policy","REPLACE_RESOURCE":"Replace Resource","REPLACE_RESOURCE_DESC":"Replace resources that already exist.","EMPTY_CD_TITLE":"No Continuous Deployment Found","SYNC_TRIGGERED":"Resource sync was triggered successfully.","PARAMETER_SETTINGS":"Parameter Settings","AUTO_PARAMETER":"Auto","AUTO_PARAMETER_DESC":"Set automatically.","HELM_PARAMETER":"Helm","HELM_PARAMETER_DESC":"Set Helm parameter.","KUSTOMIZE_PARAMETER":"Kustomize","KUSTOMIZE_PARAMETER_DESC":"Set Kustomize parameters.","PASS_CREDENTIALS":"Pass Credentials","IGNORE_MISSING_VALUE_FILES":"Ignore Missing Value Files","SKIP_CRDS":"Skip Crds","RELEASE_NAME":"Release Name","VALUE_FILES":"Value Files","FORCE_STRING":"Force String","FILE_PARAMETERS":"File Parameters","NAME_PREFIX":"Name Prefix","NAME_SUFFIX":"Name Suffix","IMAGES":"Images","COMMON_LABELS":"Common Labels","COMMON_ANNOTATIONS":"Common Annotations","DEVOPS_PROJECT_SETTINGS":"DevOps Project Settings","DEVOPS_DESCRIPTION":"A DevOps project is a separate namespace where a set of pipelines is defined. Users can group their pipelines themselves (for example, project type and organization type).","DEVOPS_PROJECT_ROLE_SCAP":"DevOps project role","DEVOPS_PROJECT_SCAP":"DevOps project","DEVOPS_PROJECT_MEMBER_SCAP":"DevOps project member","DEVOPS_PROJECT_MEMBER_PL_SCAP":"DevOps project members","DEVOPS_PROJECT_ROLE_PL_SCAP":"DevOps project roles","CD_ALLOWLIST":"Continuous Deployment Allowlist","CD_ALLOWLIST_SCAP":"Continuous deployment allowlist","DEPLOYMENT_LOCATION_PL":"Deployment Locations","ENABLE_ALLOWLIST":"Enable Allowlist","EDIT_ALLOWLIST":"Edit Allowlist","EMPTY_ALLOWLIST_TITLE":"Continuous Deployment Allowlist Disabled","ALLOWLIST_EMPTY_DESC":"Enable the allowlist so that only specific code repositories and deployment locations can be used for continuous deployment.","MULTI_CLUSTER_PROJECT_NOT_FOR_CD":"Multi-cluster projects cannot be used for continuous deployment.","CODE_REPOSITORY_EXIST_DESC":"The code repository already exists. Please select another code repository.","DEPLOYMENT_LOCATION_EXIST_DESC":"The deployment location already exists. Please set another deployment location.","CODE_REPOSITORY_NOT_SELECTED":"No code repositories are selected.","RESOURCE_DEPLOYMENT_LOCATION_NOT_SELECTED":"No resource deployment locations are selected.","ALL_CODE_REPOSITORIES":"All code repositories","ALL_RESOURCE_DEPLOYMENT_LOCATIONS":"All resource deployment locations","CREDENTIAL_LOW":"credential","DETAILS":"Details","TYPE_VALUE":"Type: {value}","RECORD":"Record","CREDENTIAL_PL":"Credentials","DEVOPS_CREDENTIALS_DESC":"Credentials are objects that contain some sensitive data, such as username and password, SSH key and Token. They are used to provide authentication for pulling code, pushing/pulling images, executing SSH scripts, etc. when a pipeline is running.","CREDENTIAL_EMPTY_DESC":"Please create a credential.","CREATE_CREDENTIAL":"Create Credential","CREDENTIAL_NAME_EXIST_DESC":"The credential name already exists. Please enter another name.","CREDENTIAL_TYPE_USERNAME_PASSWORD":"Username and password","CREDENTIAL_TYPE_SSH":"SSH key","PRIVATE_KEY":"Private Key","PASSPHRASE":"Passphrase","CREDENTIAL_TYPE_SECRET_TEXT":"Access token","CREDENTIAL_TYPE_KUBECONFIG":"kubeconfig","PASSWORD_TOKEN":"Password/Token","KUBECONFIG_CONTENT_DESC":"The default content is the kubeconfig settings of the current user.","CONTENT":"Content","DEVOPS_PROJECT_MEMBER":"DevOps Project Member","DEVOPS_PROJECT_MEMBER_PL":"DevOps Project Members","DEVOPS_PROJECT_MEM_DESC":"Manage and assign roles to project members.","DEVOPS_PROJECT_MEMBER_EMPTY_DESC":"Please invite a member of the current workspace to the DevOps project.","INVITE_MEMBER_DESC_DEVOPS":"Invite members of the current workspace to the DevOps project.","HOW_TO_INVITE_MEMBER_Q":"How do I invite members to the project?","HOW_TO_INVITE_MEMBER_A":"The project administrator or users who have permission to invite project members can invite workspace members to the project.","NO_PERMISSION":"No Permission Found","DEVOPS_PROJECT_ROLE_PL":"DevOps Project Roles","DEVOPS_PROJECT_ROLES_DESC":"The project roles define the permissions that users have under the current DevOps project.","DEVOPS_PROJECT_ROLE_EMPTY_DESC":"Please create a DevOps project role.","ROLE_DEVOPS_VIEWER":"View all resources in the DevOps project.","ROLE_DEVOPS_OPERATOR":"Create credentials in the DevOps project.","ROLE_DEVOPS_ADMIN":"Manage all resources in the DevOps project.","EDIT_PERMISSIONS":"Edit Permissions","CREATE_ROLE":"Create Role","CATEGORIES":"Categories","DEPENDS_ON":"Depends on: ","PERMIGROUP_PIPELINES_MANAGEMENT":"Pipelines","PERMISSION_PIPELINES_VIEW":"Pipeline Viewing","PERMISSION_PIPELINES_VIEW_DESC":"View DevOps project pipelines and download artifacts.","PERMISSION_PIPELINES_MANAGEMENT":"Pipeline Management","PERMISSION_PIPELINES_MANAGEMENT_DESC":"Create, edit, and delete DevOps project pipelines.","PERMISSION_PIPELINERUNS_VIEW":"Pipeline Run Record Viewing","PERMISSION_PIPELINERUNS_VIEW_DESC":"View pipeline run records in the DevOps project.","PERMISSION_PIPELINERUNS_MANAGEMENT":"Pipeline Run Record Management","PERMISSION_PIPELINERUNS_MANAGEMENT_DESC":"View, edit, and delete pipeline run records in the DevOps project.","PERMIGROUP_CREDENTIALS_MANAGEMENT":"Credentials","PERMISSION_CREDENTIALS_VIEW":"Credential Viewing","PERMISSION_CREDENTIALS_VIEW_DESC":"View and use DevOps credentials.","PERMISSION_CREDENTIALS_MANAGEMENT":"Credential Management","PERMISSION_CREDENTIALS_MANAGEMENT_DESC":"Create, edit, and delete DevOps credentials.","PERMIGROUP_DEVOPS_SETTINGS":"Project Settings","PERMISSION_DEVOPS_SETTINGS":"Project Settings Management","PERMISSION_DEVOPS_SETTINGS_DESC":"Manage DevOps project settings.","PERMIGROUP_CONTINUOUS_DEPLOYMENTS_MANAGEMENT":"Continuous Deployments","PERMISSION_CONTINUOUS_DEPLOYMENTS_VIEW":"Continuous Deployment Viewing","PERMISSION_CONTINUOUS_DEPLOYMENTS_VIEW_DESC":"View continuous deployments in the DevOps project.","PERMISSION_CONTINUOUS_DEPLOYMENTS_MANAGEMENT":"Continuous Deployment Management","PERMISSION_CONTINUOUS_DEPLOYMENTS_MANAGEMENT_DESC":"Manage continuous deployments in the DevOps project.","PERMIGROUP_CODE_REPOSITORIES_MANAGEMENT":"Code Repositories","PERMISSION_CODE_REPOSITORIES_VIEW":"Code Repository Viewing","PERMISSION_CODE_REPOSITORIES_VIEW_DESC":"View code repositories in the DevOps project.","PERMISSION_CODE_REPOSITORIES_MANAGEMENT":"Code Repository Management","PERMISSION_CODE_REPOSITORIES_MANAGEMENT_DESC":"Manage code repositories in the DevOps project.","CODE_REPOSITORY":"Code Repository","TASK_STATUS":"Task Status","NOT_RUNNING":"Not running","QUEUED":"Queued","ABORTED":"Aborted","UNSTABLE":"Unstable","SKIPPED":"Skipped","NOT_BUILT":"Not built","SYNC_STATUS":"Sync Status","DEVOPS_PROJECT":"DevOps Project","SCAN_REPO_SUCCESSFUL":"Repository scan was triggered successfully.","VIEW_SCAN_LOGS":"View Scan Logs","STARTED_BY_NAME":"Started By: {name}","REPOSITORY_SCAN_LOGS":"Repository Scan Logs","RESCAN":"Rescan","LOGS_OBTAINED_SUCCESSFULLY":"The logs were obtained successfully.","HEALTH_STATUS_SCAP":"Health status","PIPELINE_QUEUED_TITLE":"About to Complete Initialization","INITIALIZING_PIPELINE":"Pipeline Initializing","PIPELINE_PREPARE_DESC":"Preparing the environment...","INITIALIZING_PIPELINE_DESC":"Please wait until the pipeline initialization is complete.","TASK_FAILED_NOT_OPERATIONAL":"The stage has failed and is not operational.","NO_PIPELINE_CONFIG_FILE_TIP":"No pipeline configuration file is found.","EDIT_PIPELINE":"Edit Pipeline","JENKINS_UNAVAILABLE":"Jenkins is unready.","AGENT_TYPE_DESC":"The agent section specifies\n where the entire Pipeline or a particular stage will be executed in the Jenkins environment,\n depending on where the Agent part is placed.\n This part must be defined at the top level within the pipeline block,\n but the stage level usage is optional. ","NOT_VALID_REPO":"Code repo is not valid and cannot be created","CREATE_PIPELINE_DESC":"Build, test and deploy with Pipelines","CI":"Continuous Integration (CI)","CI_DESC":"Continuous integration (CI) is the process of automatically detecting, pulling, building, and (in most cases) unit testing after source code changes.","CICD":"Continuous Integration & Delivery (CI/CD)","CICD_DESC":"Continuous deployment (CD) refers to the idea of automatically providing the release version in the continuous delivery pipeline to end users. According to the user's installation method, automatic deployment in the cloud environment, app upgrades (such as apps on mobile phones), website updates, or only the list of available versions.","CUSTOM_PIPELIEN":"Custom Pipeline","CUSTOM_PIPELIEN_DESC":"You can select the tasks you need to customize the contents of the pipeline.","CC":"CC","CREDENTIAL_NAME":"Credential Name","REMOTE_REPOSITORY_URL":"Remote Repository URL","SCM":"SCM","INPUT_MESSAGE_DESC":"This message will be displayed in the pipeline running state.","KUBERNETES_DEPLOY_DESC":"Deploy resources on a Kubernetes cluster.\n In a continuous integration or continuous deployment environment,\n only those resources that need to be updated regularly should be placed in the deployment step.\n Therefore, this step is mostly used to process the deployment of such resources.","KUBERNETES_DEPLOY_DESC_MORE":"
    \n \n
  • Distribution without kubectl
  • \n
  • Variable substitution in Jenkinsfile, Dynamic deployment is possible.
  • \n
  • Support for pulling docker images from private image repositories
  • \n \n
    \n
  • Configuration
  • \n
  • Key
  • \n
  • Deploy
  • \n
  • Dave Process Set
  • \n
  • App Routing
  • \n
  • Namespace
  • \n
  • Task
  • \n
  • Service
  • \n
  • Replica Set
  • \n
  • \n Replication\n Controller (rolling updates are not supported, and use deployment if you want to use rolling updates)\n
  • ","STAGE":"Stage","KUBERNETES_DEPLOY_DEPRECATED_TIP":"This step will be deprecated in subsequent versions, and it is recommended that you consider other alternatives.","ORIGINAL_IMAGE_ADDRESS":"Original Image Address","NEW_IMAGE_ADDRESS":"New Image Address","NEW_IMAGE_TAG":"New Image Tag","CD_STEP_DESC":"Update image information using continuous deployment.","UPDATE_CD_TITLE":"Continuous Deployment of Updates","EDIT_JENKINSFILE":"Edit Jenkinsfile","CLOSE_JENKINSFILE_EDITOR_TIP":"Are you sure to close the Jenkinsfile editor?","PIPELINE_RUN_LOGS":"Pipeline Run Logs","VIEW_LOGS":"View Logs","DURATION_VALUE":"Duration: {value}","DOWNLOAD_LOGS":"Download Logs","START_REAL_TIME_LOG":"Enable real-time logs","STOP_REAL_TIME_LOG":"Disable real-time logs","RUN_RECORDS":"Run Records","RUN":"Run","ACTIVITY_EMPTY_TIP":"The pipeline has not been run.","COMMIT":"Commit","LAST_MESSAGE":"Last Message","RUN_ID":"Run ID","STOP_PIPELINE_SUCCESSFUL":"The pipeline was stopped successfully.","INVALID_JENKINSFILE_TIP":"The current Jenkinsfile is not a standard declarative Jenkinsfile and graphical display is unavailable.","PAUSED":"Paused","SET_PARAMETERS":"Set Parameters","PARAMS_DESC":"The following parameters are generated based on the pipeline settings or\n the parameters section of the Jenkinsfile, which are entered according to operational requirements.","PIPELINE_RUN_START_SI":"Starts to run the pipeline...","PIPELINE_RUN_START_PL":"Starts to run the pipelines...","BREAK":"Break","PROCEED":"Proceed","WAITING_FOR_INPUT":"Waiting for input...","CANCELLED_IN_REVIEW":"Cancelled in review","STEPS_COMPLETE_TOTAL":"Steps: {complete}/{total}","COMMIT_PL":"Commits","AUTHOR":"Author","NO_COMMIT_FOUND":"No Commit Found.","ARTIFACT_PL":"Artifacts","NO_ARTIFACT_FOUND_TIP":"No artifact is found.","SIZE":"Size","BRANCH_SI":"Branch","BRANCH_PL":"Branches","SCAN_REPOSITORY":"Scan Repository","PIPELINE":"Pipeline","NO_BRANCHES_FOUND":"No Branches Found","CODE_CHECK":"Code Check","BUG_PL":"Bugs","VULNERABILITY_PL":"Vulnerabilities","CODE_SMELL_PL":"Code Smells","CODE_LINE_COUNT":"Code Lines","COVERAGE":"Coverage","TEST_RESULTS":"Results","ISSUE_PL":"Issues","CRITICAL":"Critical","MAJOR":"Major","MINOR":"Minor","DISPLAY_ALL":"Display All","DISPLAY_ONLY_LAST_TEN":"Only the last 10 issues are displayed.","LINE_VALUE":"Line: {value}","PASSED":"Passed","PULL_REQUEST_PL":"Pull Requests","FAILED_CHECK_SCRIPT_COMPILE":"Failed to check script compiling. If you want to skip the step, click Continue.","IMPORT_FROM_CODE_REPO":"Import From Code Repository","General":"General","Container":"Container","Review":"Review","URL":"URL","Credential Name":"Credential Name","Branch":"Branch","SVN URL":"SVN URL","The message to print":"Message to Print","Shell command line":"Shell command line","Body":"Body","Variable":"Variable","KeyFile Variable":"KeyFile Variable","Passphrase Variable":"Passphrase Variable","Artifacts Location":"Artifacts Location","Time":"Time","Unit":"Unit","Groovy script":"Groovy script","Target Pipeline Name":"Target Pipeline Name","Quiet Period":"Quiet Period","Wait For Completion":"Wait for completion","Propagate Errors":"Propagate errors","Error Message":"Error Message","Test Results Location":"Location of Test Results","Allow Empty Results":"Allow empty results","Keep Long Output":"Retain long output","Skip Publishing Checks":"Skip publishing checks","Retry Count":"Retry Times","Message":"Message","Submitter":"Submitter","Config Name":"Configuration Item","AbortPipeline if quality gate status is not green":"Abort the pipeline if quality gate status is not green","Container Name":"Container Name","Continuous Deployments":"Continuous Deployment","Original Image Address":"Original Image Address","New Image Address":"New Image Address","New Image Tag":"New Image Tag","Credential":"Credential","PIPELINE_CONFIGURATION":"Pipeline Configurations","Replay":"Replay","BRANCH_DISABLED_NOT_REPLAY":"The branch has been disabled and cannot be replayed.","RUN_LOGS":"Run Logs","VIEW_FULL_LOG":"View Full Logs","VIEW_REAL_TIME_LOG":"View Real-time Logs","PIPELINE_LOG":"Pipeline Logs","NO_BUILD_PARAMETERS":"Not found build parameters.","PIPELINE_PL":"Pipelines","HEALTH":"Health","PULL_REQUEST_COUNT":"Pull Requests","MULTI_BRANCH_PIPELINE":"Multi-branch Pipeline","HEALTHY":"Healthy","SUB_HEALTHY":"Sub-healthy","NO_STATUS":"No status","BRANCH_COUNT":"Branches","PIPELINE_EMPTY_DESC":"Please create a pipeline.","BATCH_RUN_SUCCESS_SI":"The pipeline was run successfully.","BATCH_RUN_SUCCESS_PL":"The pipelines were run successfully.","BATCH_RUN_UNSUPPORTED_DESC":"Multi-branch pipelines cannot run in a batch.","COPY":"Copy","COPY_PIPELINE":"Copy Pipeline","PIPELINE_NAME_DESC":"The name of the pipeline. Pipelines in the same project must have different names.","PIPELINE_NAME_TIP":"Please enter a pipeline name.","CREATE_PIPELINE":"Create Pipeline","GO_CREATE_REPO_ACTION":"No code repository is available. Please create a code repository.","PIPELINE_TYPE":"Pipeline Type","SELECT_CODE_REPOSITORY":"Select Code Repository","BRANCH_PIPELINE_DESC":"Describe the software build process with visual orchestration or Jenkinsfile.","MULTI_BRANCH_PIPELINE_DESC":"Create a series of pipelines for each branch detected in the source code management (SCM) repository.","PIPELINE_CREATE_DEVOPS_PROJECT_DESC":"Select the DevOps project to which the pipeline belongs.","CODE_REPOSITORY_OPTIONAL":"Code Repository (optional)","CODE_REPOSITORY_REQUIRED":"Code Repository","CODE_REPOSITORY_REQUIRED_DESC":"Please select a code repository.","GO_CREATE_REPO":"No code repository is available. Please create a code repository.","CODE_REPO_EXISTS":"code repository already exists","SELECT_CODE_REPO_DESC":"Select a code repository to be used by the pipeline.","RESELECT":"Reselect","CREDENTIAL_SI":"Credential","CREDENTIAL":"Credential","PIPELINE_CREDENTIAL_EMPTY_TIP":"Please select a credential.","SELECT_CREDENTIAL_DESC":"Select a credential used to access a code repository.","GITHUB_CREDENTIAL_EMPTY":"Please set a GitHub credential.","INCORRECT_GITHUB_TOKEN_DESC":"Incorrect GitHub token.\n \n Obtain GitHub Token\n ","LOAD_MORE":"Load More","NO_REPO_FOUND_DESC":"No code repository is found.","GITLAB_SERVER_ADDRESS":"GitLab Server Address","GITLAB_SERVER_EMPTY_TIP":"Please enter the address of a GitLab server.","PROJECT_GROUP_OWNER":"Project Group/Owner","PROJECT_GROUP_OWNER_EMPTY_TIP":"Please enter the name of a GitLab project group or project owner.","REPOSITORY_NAME":"Code Repository","REPOSITORY_NAME_EMPTY_TIP":"Please enter the name of a code repository.","BITBUCKET_SERVER_ADDRESS":"Bitbucket Server Address","BITBUCKET_SERVER_EMPTY_TIP":"Please enter the address of a Bitbucket server.","INCORRECT_USERNAME_OR_PASSWORD":"Incorrect username or password.","BITBUCKET_SERVER_CREDENTIAL_EMPTY":"Please set a Bitbucket server and credential.","BITBUCKET_ADDRESS_EMPTY_TIP":"Please enter the address of a Bitbucket server.","BITBUCKET_ADDRESS_INVALID_TIP":"Invalid Bitbucket server address.","CODE_REPOSITORY_ADDRESS_DESC":"Use a repository that contains a Jenkinsfile.","CODE_REPOSITORY_ADDRESS_EMPTY_TIP":"Please enter the address of a code repository.","CODE_REPOSITORY_ADDRESS":"Code Repository URL","SINGLE_SVN":"Single-branch SVN","SVN":"SVN","BRANCH_EXCLUDED":"Excluded Branches","BRANCH_INCLUDED":"Included Branches","DELETE_OUTDATED_BRANCHES":"Delete outdated branches (true, false)","DELETE_OUTDATED_BRANCHES_TIP":"Set the system to automatically delete outdated branches to save disk space.","BRANCH_SETTINGS":"Branch Settings","BRANCH_RETENTION_PERIOD_DAYS":"Deleted Branch Retention Period (days)","MAXIMUM_BRANCHES":"Maximum Deleted Branches","BRANCH_RETENTION_PERIOD_DAYS_DESC":"Branches that exceed the retention period are deleted. The default value is 7.","MAXIMUM_BRANCHES_DESC":"When the number of branches exceeds the maximum number allowed, the earliest branch is deleted. The default value is 5.","ADD_STRATEGY":"Add Strategy","DISCOVER_TAG_BRANCHES":"Discover Tags","DISCOVER_BRANCHES":"Discover Branches","ALL_BRANCHES":"Include all branches","ONLY_PR_BRANCHES":"Include only branches filed as PRs","EXCLUDE_PR_BRANCHES":"Exclude branches filed as PRs","ENABLE_TAG_BRANCH_DISCOVERY":"Enable tag discovery","DISABLE_TAG_BRANCH_DISCOVERY":"Disable tag discovery","PULL_STRATEGY":"Pull Strategy","OPTIONS_PR_PARAMS_1":"Pull the code with the PR merged","OPTIONS_PR_PARAMS_2":"Pull the code at the point of the PR","OPTIONS_PR_PARAMS_3":"Create two pipelines respectively","REGEX":"Regular Expression","FILTER_BY_REGEX":"Filter by Regex","FILTER_BY_REGEX_DESC":"Use a regular expression to filter branches, PRs, and tags","SCRIPT_PATH":"Script Path","SCRIPT_PATH_DESC":"Set the path of the Jenkinsfile in the code repository.","SCAN_TRIGGER":"Scan Trigger","SCAN_PERIODICALLY":"Scan periodically","TIME_TRIGGER_DESC":"Scan the code repository periodically.","SCAN_INTERVAL":"Scan Interval","SELECT_PIPELINE_SCAP":"Select pipeline","WHEN_DELETE_PIPELINE_DESC":"When a pipeline is deleted, the tasks in the specified pipeline are automatically triggered.","WHEN_CREATE_PIPELINE_DESC":"When a new pipeline is created, the tasks in the specified pipeline are automatically triggered.","PIPELINE_EVENT_TRIGGER":"Trigger through pipeline events","WHEN_CREATE_PIPELINE":"Trigger on Pipeline Creation","WHEN_DELETE_PIPELINE":"Trigger on Pipeline Deletion","CLONE_SETTINGS":"Clone Settings","CLONE_TIMEOUT_PERIOD":"Clone Timeout Period (min)","CLONE_DEPTH":"Clone Depth","ENABLE_SHALLOW_CLONE":"Enable shallow clone","WEBHOOK_PUSH_URL":"Webhook Push URL","WEBHOOK_PUSH_DESC":"Push a message to this URL to trigger a scan of the repository. ","TRUSTED_USERS":"Trusted User","CONTRIBUTORS":"Contributors","EVERYONE":"Everyone","NOBODY":"None","USERS_WITH_PERMISSION":"Users with the admin or write permission","OPTIONS":"Options","BUILD_SETTINGS":"Build Settings","DELETE_OUTDATED_BUILD_RECORDS":"Delete outdated build records","DELETE_OUTDATED_BUILD_RECORDS_TIP":"Set the system to automatically delete outdated build records including console output, archived artifacts, and metadata to save disk space.","BUILD_RECORD_RETENTION_PERIOD_DAYS":"Build Record Retention Period (days)","BUILD_RECORD_RETENTION_PERIOD_DAYS_DESC":"Build records that exceed the retention period are deleted. The default value is 7.","BUILD_RECORD_RETENTION_PERIOD_DAYS_INVALID_TIP":"The retention period must be a positive integer.","MAXIMUM_BUILD_RECORDS":"Maximum Build Records","MAXIMUM_BUILD_RECORDS_DESC":"When the number of build records exceeds the maximum number allowed, the earliest build record is deleted. The default value is 10.","MAXIMUM_BUILD_RECORDS_INVALID_TIP":"The maximum number of build records must be a positive integer.","NO_CONCURRENT_BUILDS":"No concurrent builds","NO_CONCURRENT_BUILD_DESC":"Set the the pipeline to run only one build task at a time.","BUILD_PARAMETERS":"Build Parameters","BUILD_PARAMETERS_TIP":"Pass build parameters to the pipeline.","PARAMS_STRING":"String","PIPELINE_PARAM_DEFAULT_DESC":"Set the default value of the parameter. You can change the value before manually running the pipeline.","PARAMS_TEXT":"Multi-line string","PARAMS_TEXT_TCAP":"Multi-line String","PARAMETER_DESCRIPTION_DESC":"Set the parameter description.","PARAMS_BOOLEAN":"Boolean","PARAMS_CHOICE":"Options","CHOICE_PARAM_OPTION_DESC":"Enter an option in each line. The first line is used as the default option.","PARAMS_PASSWORD":"Password","BUILD_TRIGGER":"Build Trigger","BUILD_PERIODICALLY":"Build periodically","BUILD_PERIODICALLY_TIP":"Set the pipeline to periodically run build tasks.","PIPELINE_CRON_DESC":"The pipeline will be run at {nextTime} next time.","PIPELINE_SCHEDULE_DESC":"Enter a CRON expression to set a schedule.","DEFAULT_VALUE":"Default Value","PARAMETER_NAME_EMPTY_DESC":"Please set the parameter name.","SELECT_TEMPLATE":"Select template","PARAMETER_CONFIG":"Parameter configuration","PREVIEW":"Preview","EMPTY_PARAMS_CONFIG":"This operation does not require parameter configuration.","PIPELINE_VALIDATOR_DESC":"Please select a pipeline template.","USER_GUIDE":"User Guide","API_DOCUMENT":"API Docuement","INPUT_USERNAME_OR_EMAIL_TIP":"Please enter your username or email.","LOG_IN":"Log In","LOG_IN_WITH_TITLE":"Log in with {title}","LOG_OUT":"Log Out","ABOUT":"About","USERNAME_OR_EMAIL":"Username or Email","WELCOME":"Welcome","INTERNAL_SERVER_ERROR_TIP":"An unepected error occurred. Please refresh your page.","TOO_MANY_FAILURES":"The number of consecutive login failures has exceeded the limit. Please try again later.","FAILED_TO_ACCESS_BACKEND":"Failed to access the backend services.","FAILED_TO_ACCESS_API_SERVER":"Failed to access the API server.","LOGIN_AGAIN_DESC":"The session has timed out or the user has logged in elsewhere. Please log in again.","CHANGE_PASSWORD_TIP":"You are logging in for the first time. Please change your password.","SUBMIT":"Submit","CHANGE_PASSWORD_LATER":"Change Password Later","PASSWORD_MUST":"Your password must:","PASSWORD_LETTER":"Contain at least 1 uppercase letter and 1 lowercase letter.","PASSWORD_NUMBER":"Contain at least 1 number.","PASSWORD_LENGTH":"Contain at least 8 characters.","SET_EMAIL_AND_USERNAME":"Set Email and Username","APPLICATION_GOVERNANCE_SCAP":"Application governance","NO_SERVICE_FOUND":"No Service Found","GATEWAY_IP_ADDRESS":"Gateway IP address","GATEWAY_ACCESS_MODE":"Gateway access mode","NODE_PORTS_SCAP":"Node ports","LOAD_BALANCER_SCAP":"Load balancer","LOAD_BALANCERS_SCAP":"Load balancers","TRAFFIC_MANAGEMENT":"Traffic Management","APPLICATION_GOVERNANCE_ENABLED":"Application governance enabled","APPLICATION_GOVERNANCE_DISABLED":"Application governance disabled","NAME_VALUE":"Name: {value}","CONTAINER_PORT_VALUE":"Container Port: {value}","PLEASE_USE_RELATIVE_PATH":"Please use a relative path.","RELATIVE_PATH_NOT_SUPPORT":"Unsupported relative path format.","MOUNT_PATH_INCORRECT":"Incorrect mount path.","REASON":"Reason","WORKLOAD_DESC":"Workloads are used to handle service requests and can contain one or more pods. System functions such as logging and monitoring are also implemented by workloads.","DEPLOYMENT_EMPTY_DESC":"Please create a deployment.","UPDATING":"Updating","NEXT":"Next","INVALID_PROJECT":"Invalid project.","REPLICA_SCHEDULING_MODE":"Replica Scheduling Mode","SPECIFY_REPLICAS":"Specify Replicas","WEIGHTS":"Weights","SPECIFY_WEIGHTS":"Specify Weights","SPECIFY_WEIGHTS_DESC":"Set the total number of pod replicas and a weight for each cluster. The pod replicas will be scheduled to the clusters according to the weights.","SPECIFY_REPLICAS_DESC":"Manually set the number of pod replicas in each cluster.","REPLICA_LOW_SI":"replica","REPLICA_LOW_PL":"replicas","WEIGHT":"Weight","TOTAL_REPLICAS":"Total Replicas","COST":"Cost","ADD_CONTAINER":"Add Container","ADD_CONTAINER_DESC":"Customize container settings to create a container.","CONTAINERS":"Containers","IMAGE_TIME_SIZE_LAYER":"Updated {time}","IMAGE_DESC":"To use a private image registry, you need to first create an image registry secret.","IMAGE_PLACEHOLDER":"Image name or path such as nginx:latest","IMAGE_EMPTY":"Please set an image.","ENTER_POSITIVE_INTEGER_DESC":"Please enter a positive integer.","TOTAL_REPLICAS_EMPTY_DESC":"Please enter the total number of pod replicas in all clusters.","CONTAINER_NAME":"Container Name","CONTAINER_TYPE":"Container Type","USE_DEFAULT_PORTS":"Use Default Ports","USE_IMAGE_DEFAULT_PORTS":"Use Default Port of Images","NO_DEFAULT_PORT":"No default ports config","REGISTRY":"Registry","SET_IMAGE_DESC":"Set an image for the container.","WORKER_CONTAINER":"Worker container","CONTAINER_RESOURCE_LIMIT_TIP":"Set the resource limits and requests of the container so that the container is scheduled to appropriate nodes.","GPU_TYPE":"GPU Type","GPU_LIMIT":"GPU Limit","NVIDIA_COM_GPU":"NVIDIA GPU","NO_LIMIT":"No limit","NO_REQUEST":"No request","NO_RESOURCE_LIMIT":"No resource limit","IGNORE_AND_RETRY":"Ignore and Try Again","AVAILABLE_QUOTAS":"Available Quotas","PORT_SETTINGS":"Port Settings","ISTIO_PROTOCOL_TIP":"Select the protocol used by the service to fully utilize the Application Governance function. For example, select HTTP for an HTTP service.","REQUIRED":"Required","IMAGE_PULL_POLICY_ALWAYS":"Pull Image Always","IMAGE_PULL_POLICY_NEVER":"Use Local Image Only","IMAGE_PULL_POLICY_ALWAYS_DESC":"Pulls an image always when the pod is created or updated.","IMAGE_PULL_POLICY_IFNOTPRESENT_DESC":"Pulls an image only when the required image does not exist locally.","IMAGE_PULL_POLICY_NEVER_DESC":"Uses a local image only. The container will become abnormal if the required image does not exist locally.","IMAGE_PULL_POLICY_IFNOTPRESENT":"Use Local Image First","LIVENESS_CHECK":"Liveness Check","READINESS_CHECK":"Readiness Check","STARTUP_CHECK":"Startup Check","LIVENESS_CHECK_DESC":"Checks whether the container is alive.","READINESS_CHECK_DESC":"Checks whether the container is ready to process requests.","STARTUP_CHECK_DESC":"Checks whether the container is started successfully.","ADD_PROBE":"Add Probe","COMMANDS":"Commands","HEALTH_CHECK":"Health Check","STARTUP_CHECK_TIP":"Kubernetes v1.18 or later is required.","HTTP_PATH_EMPTY":"Please set a path for the HTTP check.","LIFECYCLE_MANAGEMENT":"Lifecycle Management","LIFECYCLE_MANAGEMENT_DESC":"Add actions to be performed after the container is started or before it is stopped for environment preparation or graceful shutdown.","POSTSTART_ACTION":"Post-start Action","PRESTOP_ACTION":"Pre-stop Action","POSTSTART_ACTION_DESC":"Add an action to be performed after the container is started.","PRESTOP_ACTION_DESC":"Add an action to be performed before the container is stopped.","ADD_ACTION":"Add Action","ADD_ENVIRONMENT_VARIABLE":"Add Environment Variable","KEY_IN_RESOURCE":"Key in resource","LABEL_TYPE":"{label} ({type})","RESOURCE":"Resource","CREATE_CONFIGMAP_SECRET_DESC":"If no configmap or secret meets the requirements, you can","CREATE_CONFIG":"create a configmap","OR":"or","CREATE_SECRET":"create a secret.","DEFAULT_REPOSITORY":"Default Registry","SET_DEFAULT_REPOSITORY":"Set Default Registry","SET_AS_DEFAULT_REPOSITORY_DESC":"Set the image registry as the default image registry. Unless otherwise specified, the system uses images from the default image registry to create application workloads. Only one default image registry is allowed in each project.","SET_AS_DEFAULT_REPOSITORY":"Set as Default","SET_DEFAULT_REPO_SUCCESSFUL":"Default repository set successfully","CONTAINER_SECURITY_CONTEXT":"Container Security Context","CONTAINER_SECURITY_CONTEXT_DESC":"Customize the privilege settings of the container.","PRIVILEGED_MODE":"Privileged Mode","PRIVILEGED_MODE_DESC":"Runs container processes as the root user of the host.","ALLOW_PRIVILEGE_ESCALATION":"Allow Privilege Escalation","ALLOW_PRIVILEGE_ESCALATION_DESC":"Allows container processes to acquire more privileges than the parent process. This option is enabled by default when the privileged mode is enabled.","ROOT_DIRECTORY_READONLY":"Root Directory Read-Only","ROOT_DIRECTORY_READONLY_DESC":"Sets the root directory of the container file system to read-only.","USER_AND_USER_GROUP":"User and User Group","USER_GROUP":"User Group","RUN_AS_NON_ROOT":"Run as Non-root","RUN_AS_NON_ROOT_DESC":"Checks whether the container is to be run by the root user before starting the container. If yes, the container will not be started.","RUN_AS_USER_DESC":"UID to run the entrypoint of the container process. The default value is the UID specified in the image metadata.","RUN_AS_USER_GROUP_DESC":"GID to run the entrypoint of the container process. The default value is the container runtime default GID.","SELINUX_CONTEXT":"SELinux Context","CAPABILITIES":"Capabilities","DROP":"Drop","ACCESS_CONTROL":"Access Control","LEVEL":"Level","SYNC_HOST_TIMEZONE_DESC":"Synchronize the time zone of the container with that of the host.","SYNC_HOST_TIMEZONE":"Synchronize Host Timezone","UPDATE_STRATEGY":"Update Strategy","ROLLING_UPDATE_RECOMMENDED":"Rolling Update (recommended)","SIMULTANEOUS_UPDATE":"Simultaneous Update","ROLLINGUPDATE_DESC":"Gradually replaces old pod replicas with new ones. The service is not interrupted during the update process.","SIMULTANEOUS_UPDATE_DESC":"Deletes all existing pod replicas before creating new ones. The service is interrupted during the update process.","ENTER_INTEGER_OR_PERCENTAGE":"Please enter an integer or percentage.","MAX_EXTRA_EMPTY":"Please set the maximum number or percentage of extra pod replicas allowed during the update process.","POD_SECURITY_CONTEXT":"Pod Security Context","POD_SECURITY_CONTEXT_DESC":"Customize the pod privilege settings.","POD_SECURITY_CONTEXT_TIP":"If User, User Group, and SELinux Context settings are defined in both pod Security Context and Container Security Context, the Container Security Context settings will override the Pod Security Context settings.","POD_SCHEDULING_RULES":"Pod Scheduling Rules","POD_SCHEDULING_RULES_DESC":"Specify the rules for scheduling the pod replicas to nodes.","DEFAULT_RULES":"Default Rules","DEFAULT_RULES_DESC":"Schedules the pod replicas to nodes according to default rules.","DECENTRALIZED_SCHEDULING":"Decentralized Scheduling","CUSTOM_RULES":"Custom Rules","CUSTOM_RULES_DESC":"Schedules the pod replicas to nodes according to custom rules.","DECENTRALIZED_SCHEDULING_DESC":"Schedules the pod replicas to different nodes if possible.","CENTRALIZED_SCHEDULING_DESC":"Schedules the pod replicas to the same node if possible.","CENTRALIZED_SCHEDULING":"Centralized Scheduling","SCHEDULE_WITH_TARGET":"Schedule with target","SCHEDULE_AWAY_FROM_TARGET":"Schedule away from target","MATCH_IF_POSSIBLE":"Match if possible","MUST_MATCH":"Must match","TARGET":"Target","STRATEGY":"Strategy","POD_GRACE_PERIOD":"Pod Grace Period","POD_GRACE_PERIOD_DESC":"Set the waiting time before Pod terminates, after which Pod will be forcibly terminated.","TERMINATION_GRACEPERIOD_SECONDS":"Termination GracePeriod Seconds (s)","ADD_METADATA":"Add Metadata","POD_ADD_METADATA_DESC":"Add metadata to the pod replicas.","STORAGE_SETTINGS":"Storage Settings","READ_ONLY_LOW":"read-only","READ_AND_WRITE_LOW":"read and write","MOUNT_VOLUME":"Mount Volume","WORKLOAD_MOUNT_VOLUME_DESC":"Mount an persistent volume, temporary volume, or HostPath volume to the containers.","SELECT_PERSISITENT_VOLUME_CLAIM":"Select Persistent Volume Claim","SELECT_PERSISITENT_VOLUME_CLAIM_DESC":"Mount a persistent volume created according to the persistent volume claim to the containers.","CAPACITY":"Capacity","PVC_NOT_SELECT":"Please select a persistent volume claim.","TEMPORARY_VOLUME":"Temporary Volume","VOLUME_NAME":"Volume Name","VOLUME_NAME_EMPTY":"Please set a name for the volume.","HOST_PATH_EMPTY":"Please set a host path for the volume.","CONTAINER_NOT_SELECTED":"Please mount the volume to at least one container.","NOT_MOUNT":"Not mounted","HOSTPATH_VOLUME":"HostPath Volume","HOSTPATH_TIP":"Use a HostPath volume to mount a file or directory in the host file system to the containers.","HOST_PATH":"Host Path","READ_AND_WRITE":"Read and write","READ_ONLY":"Read-only","MOUNT_CONFIGMAP_OR_SECRET":"Mount Configmap or Secret","MOUNT_CONFIGMAP_OR_SECRET_DESC":"Mount a configmap or secret to the containers.","CONFIGMAP":"Configmap","SELECT_CONFIGMAP_DESC":"Mount a configmap to the containers.","READ_WRITE_MOUNT_EMPTY":"Please specify the volume access mode and mount path.","SELECT_SPECIFIC_KEYS":"Select Specific Keys","SELECT_SPECIFIC_KEYS_DESC":"Select specific keys to be mounted to the containers.","SELECT_SECRET_DESC":"Mount a secret to the containers.","CONFIGMAP_NOT_SELECT":"Please select a configmap.","SECRET_NOT_SELECT":"Please select a secret.","NO_AVAILABLE_RESOURCE":"No Available Resource","SELECT_NODES":"Select Nodes","SELECT_NODES_DESC":"Assign pod replicas to specific nodes. You can use labels to select nodes or manually specify a node.","ADD_NODE_SELECTOR":"Add Node Selector","ADD_METADATA_DESC":"Add metadata to the resource.","KEY":"Key","VALUE":"Value","ADVANCED_SETTINGS":"Advanced Settings","DUPLICATE_LABELS":"Duplicate labels cannot be added.","WORKLOAD_SPECIFY_NODE_DESC":"Assign pod replicas to a specific node.","CLUSTER_DIFF":"Cluster Differences","CLUSTER_DIFF_CONTAINER_SETTINGS_DESC":"Use different container settings in different clusters.","CLUSTER_DIFF_PORT_SETTINGS_DESC":"Set different ports for containers in different clusters.","CLUSTER_DIFF_ENVIRONMENT_VARIABLES_DESC":"Set different environment variables for containers in different clusters.","CONTAINER_IMAGE":"Container Image","ROUTE_ADD_METADATA_DESC":"Add metadata to the ingress.","SELECT_INGRESSCLASSNAME":"Select IngressClassName","ACCESS_INFORMATION":"Access Information","VIRTUAL_IP_ADDRESS":"Virtual IP address","INTERNAL_DOMAIN_NAME_SCAP":"Internal domain name","NODE_PORT_SCAP":"Node port","SERVICE_TYPE_TCAP":"Service Type","SELECT_SERVICE_TYPE":"Select Service Type","ADD_PORT":"Add Port","EMPTY_LABEL_DESC":"Please add a label.","SPECIFY_NODE":"Specify Node","SPECIFY_NODE_DESC":"Specify a node that needs to be associated with the service.","MAXIMUM_STICKINESS_DURATION_DESC":"Set a maximum stickiness duration. The value range is 0 to 86400 and the default value is 10800.","SERVICE_ADD_METADATA_DESC":"Add metadata to the service.","STATEFULSET_EMPTY_DESC":"Please create a statefulset.","POD_SETTINGS":"Pod Settings","POD_REPLICAS":"Pod Replicas","ONDELETE":"Update on Deletion","ONDELETE_DESC":"Updates pod replicas only when they are manually deleted.","PARTITION_ORDINAL":"Ordinal for Dividing Pod Replicas","PARTITION_ORDINAL_DESC":"Set an ordinal to divide the pod replicas into two groups. When the statefulset is updated, only pod replicas with an ordinal greater than or equal to the value of this parameter are updated.","PVC_NAME_PREFIX":"PVC Name Prefix","PVC_NAME_PREFIX_DESC":"Prefix of persistent volume claim names. The prefix can contain only lowercase letters, numbers, and hyphens (-), and must start and end with a lowercase letter or number. The maximum length is 253 characters.","PVC_NAME_PREFIX_EMPTY":"Please enter the prefix of persistent volume claim names.","INVALID_PVC_NAME_PREFIX":"Invalid prefix. The prefix can contain only lowercase letters, numbers, and hyphens (-), and must start and end with a lowercase letter or number. The maximum length is 253 characters.","PVC_NAME_PREFIX_EXISTS":"The prefix already exists. Please enter another prefix.","ADD_PERSISTENT_VOLUME_CLAIM_TEMPLATE":"Add Persistent Volume Claim Template","ADD_PERSISTENT_VOLUME_CLAIM_TEMPLATE_DESC":"Add a persistent volume claim template to mount a persistent volume to each pod of the statefulset.","VOLUME_CAPACITY_TCAP":"Volume Capacity","MOUNT_PATH_TCAP":"Mount Path","VOLUME_TEMPLATES":"Volume Templates","SERVICE_PORT":"Service Port","SERVICE_PORT_VALUE":"Service Port: {value}","VOLUME_TEMPLATE_SETTINGS":"Volume Template Settings","CLUSTER_VOLUME_DIFF_DESC":"Use different storage settings in different clusters.","CONFIGMAP_EMPTY_DESC":"Please create a configmap.","MULTI_CLUSTER_PROJECT_EMPTY_DESC":"Please create a multi-cluster project.","MULTI_CLUSTER_PROJECT_LOW":"multi-cluster project","MULTI_CLUSTER_PROJECT_SCAP":"Multi-cluster project","VOLUME_MONITORING_TIP":"The storage system needs to have real volume quota control capabilities to output real and accurate data. Storage systems built based on host path, local pv, and open source nfs server usually do not have this capability. Daha Fazla Bilgi Edinin","MOUNT_INFORMATION":"Mount Information","VOLUME_ADD_METADATA_DESC":"Add metadata to the volume.","PROJECT_NAME":"Project name","NO_REQUEST_TCAP":"No Request","NO_LIMIT_TCAP":"No Limit","CPU_REQUEST_LOW":"CPU request","CPU_LIMIT_LOW":"CPU limit","CPU_REQUEST_CORE":"{value} Core","CPU_LIMIT_CORE":"{value} Core","MEMORY_REQUEST_MIB":"{value} Mi","MEMORY_LIMIT_MIB":"{value} Mi","DELETE_PROJECT":"Delete Project","CREATION_TIME":"Creation time","FOLD":"Fold","UNFOLD":"Unfold","PLATFORM":"Platform","CLUSTER_MANAGEMENT":"Cluster Management","CLUSTER_DESC":"Unified management of multiple clusters and their basic resources, components, and application resources.","ACCESS_CONTROL_DESC":"Unified management of workspaces, users, and roles.","APP_STORE_MANAGEMENT_DESC":"Unified lifecycle management of cloud native applications including their release, activation, and suspension.","PLATFORM_SETTINGS_DESC":"Customized platform settings including basic information and notification configurations.","NOTIFICATION_MANAGEMENT":"Notification Management","NOTIFICATION_CHANNELS":"Notification Channels","NOTIFICATION_CHANNELS_DESC":"Notify users through multiple channels when resource metrics meet conditions configured in rule groups.","MAIL_TITLE":"Email","MAIL_DESC":"Send notifications to email addresses.","INVALID_PORT_DESC":"Please enter a valid port number.","ENTER_PORT_NUMBER":"Please enter a port number.","ALERTING_NAME":"Alert name","ALERTING_SEVERITY":"Alert severity","ADDRESS_EMPTY_DESC":"Please enter an address.","EMAIL_EMPTY_DESC":"Please enter an email address.","SERVER_SETTINGS":"Server Settings","RECIPIENT_SETTINGS":"Recipient Settings","FILTER_CONDITIONS":"Filter Conditions","CONTAINER":"Container","VALUES":"Values","CONDITION_OPERATOR":"Operator","NOTIFICATION_CONDITION_SETTING_TIP":"The Contain and Not contain operators require one or more values. You can press Enter to set multiple values.","NOTIFICATION_CONDITION_SETTINGS_DESC":"Set the system to send only alerts that meet the conditions.","CONTAIN":"Contain","NOT_CONTAIN":"Not contain","EXIST":"Exist","NOT_EXIST":"Not exist","PATTERN_TAG_INVALID_TIP":"Invalid label. The label can contain only uppercase and lowercase letters, numbers, hyphens (-), underscores (_), and dots (.), and must begin and end with an uppercase or lowercase letter or number.","PATTERN_TAG_VALUE_INVALID_TIP":"Invalid value. The value can only contain uppercase and lowercase letters, numbers, hyphens (-), underscores (_) and dots (.) and must begin and end with an uppercase or lowercase letter or number and be a maximum of 63 characters.","INVALID_NOTIFICATION_CONDITION":"Please enter a correct notification condition.","SEND_TEST_MESSAGE":"Send Test Message","SEND_TEST_MESSAGE_DESC":"Send a test message to verify that the notification channel is working properly.","SEND_TEST_MESSAGE_SUCCESS_DESC":"Verified successfully. A test message has been sent.","SMTP_SERVER_ADDRESS":"SMTP Server Address","USE_SSL_SECURE_CONNECTION":"Use SSL secure connection","SENDER_EMAIL":"Sender Email Address","INVALID_EMAIL":"Invalid email address format.","INVALID_ADDRESS_DESC":"Please enter a valid address.","MAX_EAMIL_COUNT":"You can add a maximum of {count} emails.","SMTP_USER":"SMTP Username","SMTP_PASSWORD":"SMTP Password","ENTER_PASSWORD_TIP":"Please enter a password.","ENTER_RECIPIENT_EMAIL_DESC":"Please add at lease one email address.","INVALID_EMAIL_ADDRESS_DESC":"Incorrect email format.","SMTP_USER_EMPTY_DESC":"Please enter an SMTP username.","ADDED_SUCCESS_DESC":"Added successfully.","POD":"Pod","UPDATE_SUCCESSFUL":"Updated successfully.","FEISHU":"Feishu","FEISHU_TITLE":"Feishu","FEISHU_DESC":"Send notifications to Feishu users.","PLEASE_ENTER_APP_ID":"Please enter an app ID.","USER_ID":"User ID","DEPARTMENT_ID":"Department ID","FEISHU_RECEIPIENT_SETTINGS_DESC":"To receive notifications, please set at least one user ID or department ID.","FEISHU_SECRET":"Secret","DINGTALK_TITLE":"DingTalk","DINGTALK":"DingTalk","DINGTALK_DESC":"Send notifications to DingTalk users.","PLEASE_ENTER_APP_KEY":"Please enter an app key.","PLEASE_ENTER_APP_SECRET":"Please enter an app secret.","PLEASE_ENTER_CHAT_ID":"Please enter a chat ID.","PLEASE_ENTER_WEBHOOK_URL":"Please enter a webhook URL.","CHAT_SETTINGS":"Chat Settings","CHAT_ID_TIP":"Contact the DingTalk administrator to obtain the chat ID.","DINGTALK_SETTING_TIP":"Please set up a chat or group chatbot.","ENTER_CHAT_ID_DESC":"Please enter a chat ID.","MAX_CID_COUNT":"You can add a maximum of {count} chat IDs.","CHAT_ID_EXISTS":"The chat ID already exists. Please add another chat ID.","CHATBOT_SETTINGS":"Chatbot Settings","KEYWORDS_LIST":"Added Keywords","DINGTALK_CHATBOT_SECURITY_TIP":"Please enter a secret or keyword.","ENTER_KEYWORD_DESC":"Please enter a keyword.","MAX_KEYWORD_COUNT":"You can add a maximum of {count} keywords.","KEYWORD_EXISTS":"The keyword already exists. Please add another keyword.","EMPTY_KEYWORDS_DESC":"No keyword is added.","WECOM":"WeCom","WECOM_TITLE":"WeCom","WECOM_DESC":"Send notifications to WeCom users.","RECIPIENT_SETTINGS_TIP":"Enter at least one user ID, department ID, or tag ID.","ENTER_WECOM_CORP_ID_DESC":"Please enter a corp ID.","ENTER_WECOM_AGENT_ID_DESC":"Please enter an app agent ID.","ENTER_WECOM_SECRET_DESC":"Please enter an app secret.","TOUSER_LIST":"Added User IDs","EMPTY_TOUSER_DESC":"No user ID is added.","ENTER_TOUSER_TIP":"Please enter a user ID.","TOUSER_EXISTS":"The user ID already exists. Please enter another user ID.","MAX_TOUSER_COUNT":"You can add a maximum of {count} user IDs.","TOPARTY_LIST":"Added Department IDs","EMPTY_TOPARTY_DESC":"No department ID is added.","ENTER_TOPARTY_TIP":"Please enter a department ID.","TOPARTY_EXISTS":"The department ID already exists. Please enter another department ID.","MAX_TOPARTY_COUNT":"You can add a maximum of {count} department IDs.","TOTAG_LIST":"Added Tag IDs","EMPTY_TOTAG_DESC":"No tag ID is added.","ENTER_TOTAG_TIP":"Please enter a tag ID.","TOTAG_EXISTS":"The tag ID already exists. Please enter another tag ID.","MAX_TOTAG_COUNT":"You can add a maximum of {count} tag IDs.","ATUSERS_LIST":"Added User ID","EMPTY_ATUSERS_DESC":"No user ID is added.","WHIZARD_NOTIFICATION.PHONE_NUMBER":"手機號","ATMOBILES_LIST":"Mobiles","EMPTY_ATMOBILES_DESC":"No Mobile is added.","SLACK":"Slack","SLACK_TITLE":"Slack","SLACK_DESC":"Send notifications to Slack users.","SLACK_TOKEN":"Slack Token","SLACK_TOKEN_DESC":"Please enter a Slack token.","SLACK_CHANNEL":"Slack Channel","CHANNEL_SETTINGS":"Slack Channel Settings","ADDED_CHANNELS":"Added Slack Channels","EMPTY_CHANNEL_DESC":"No Slack channel is added.","ADD_CHANNEL_TIP":"Please add a Slack channel.","CHANNEL_EXISTS":"The Slack channel already exists. Please add another Slack channel.","MAX_CHANNEL_COUNT":"You can add a maximum of {count} Slack channels.","WEBHOOK":"Webhook","WEBHOOK_TITLE":"Webhook","WEBHOOK_DESC":"Send notifications to a webhook.","WEBHOOK_URL_DESC":"Please enter a webhook URL.","AUTHENTICATION_TYPE":"Authentication Type","AUTHENTICATION_TYPE_DESC":"Please select an authentication type.","SKIP_TLS_VERFICATION":"Skip TLS verification (insecure)","BASIC_AUTH":"Basic authentication","NO_AUTH":"No authentication","BEARER_TOKEN":"Bearer token","TOKEN":"Token","WEBHOOK_USERNAME_EMPTY_DESC":"Please enter a username.","WEBHOOK_PASSWORD_EMPTY_DESC":"Please enter a password.","WEBHOOK_TOKEN_EMPTY_DESC":"Please enter a token.","PLATFORM_INFO_DESC":"Overview of the platform information. You can view and customize the platform information.","HOW_TO_MODIFY_PLATFORM_INFO":"How do I customize platform information?","PLATFORM_INFORMATION":"Platform Information","PLATFORM_DESCRIPTION":"Platform description","PLATFORM_TITLE":"Platform title","PLATFORM_ADDRESS":"Platform address","PLATFORM_SETTINGS":"Platform Settings","ADD_SERVICE":"Add Service","ADD_ROUTE":"Add Ingress","SERVICE_ADDED_SUCCESSFULLY":"The service was added successfully.","WORKLOAD_TYPE_DEPLOYMENTS":"Deployment","WORKLOAD_TYPE_DAEMONSETS":"Daemonset","WORKLOAD_TYPE_STATEFULSETS":"Statefulset","TRAFFIC_MONITORING":"Traffic Monitoring","TRAFFIC_MONITORING_UNAVAILABLE_DESC":"The app has not received requests for a long time. Please try again later.","TRAFFIC_ENTRY":"Traffic Entry","NO_DATA":"No Data","REFRESH":"Refresh","SUCCESS_RATE":"Success rate","TRAFFIC_RPS":"Traffic (RPS)","BANDWIDTH":"Bandwidth","HTTP_INBOUND_TRAFFIC":"HTTP Inbound Traffic","HTTP_OUTBOUND_TRAFFIC":"HTTP Outbound Traffic","TRAFFIC_POLICIES":"Traffic Policies","LOAD_BALANCING":"Load Balancing","LOAD_BALANCING_ALGORITHM":"Load Balancing Algorithm","LB_UNSPECIFIED":"Unspecified","LB_LEAST_REQUEST":"Least Request","LB_PASSTHROUGH":"Pass Through","LB_ROUND_ROBIN":"Round robin","LB_LEAST_CONN":"Least connection","LB_RANDOM":"Random","LB_ALG_DESC":"Round robin: Distributes client requests to backends in rotation.
    Least connection: Randomly selects two healthy backends and sends client requests to the one with fewer connections.
    Random: Sends client requests to a backend randomly selected from all healthy backends.","HASH_BASED_ON_HTTP_HEADER":"Hash based on HTTP header","HASH_BASED_ON_HTTP_COOKIE":"Hash based on HTTP cookie","HASH_BASED_ON_SOURCE_IP_ADDRESS":"Hash based on source IP address","HASH_BASED_ON_RINGHASH":"The ring/modulo hash load balancer implements consistent hashing to backend hosts.","HASH_BASED_ON_MAGLEV":"The Maglev load balancer implements consistent hashing to backend hosts.","HTTP_HEADER":"HTTP Header","HTTP_COOKIE":"HTTP Cookie","CONNECTION_POOL":"Connection Pool","CONNECTION_POOL_TIP":"Creates a fixed number of connection objects for the application and stores them in a connection pool for reuse. A connection object is retrieved from the connection pool for each request and returned to the pool after use.","MAXIMUM_CONNECTIONS":"Maximum Connections","MAXIMUM_CONNECTIONS_DESC":"Maximum of number of HTTP1 or TCP connections to a destination backend.","MAXIMUM_REQUESTS_PER_CONNECTION":"Maximum Requests per Connection","MAXIMUM_REQUESTS_PER_CONNECTION_DESC":"Maximum number of requests per connection to a backend.","TRAFFIC_MONITORING_MAXIMUM_RETRIES":"Maximum Retries","TRAFFIC_MONITORING_MAXIMUM_RETRIES_DESC":"Maximum number of retries for requests.","CONNECTION_TIMEOUT":"Connection Timeout","CONNECTION_TIMEOUT_DESC":"TCP connection timeout period.","MAXIMUM_REQUESTS":"Maximum Requests","MAXIMUM_PENDING_REQUESTS":"Maximum Pending Requests","CIRCUIT_BREAKER":"Circuit Breaker","CIRCUIT_BREAKER_DESC":"If a service cannot be accessed and the specified criteria are met, the ciruit breaker marks the service as unavailable and returns error response to clients directly for a specified period of time.","CONSECUTIVE_FIVEXX_ERRORS":"Consecutive 5XX Errors","CONSECUTIVE_FIVEXX_ERRORS_DESC":"Number of 5XX errors before a backend is ejected from the connection pool.","INSPECTION_INTERVAL_S":"Inspection Interval (s)","INSPECTION_INTERVAL_S_DESC":"Interval between two backend inspections.","MAXIUM_EJECTION_RATIO":"Maximum Ejection Ratio (%)","MAXIUM_EJECTION_RATIO_DESC":"Maximum percentage of backends that can be ejected.","BASE_EJECTION_TIME_S":"Base Ejection Time (s)","BASE_EJECTION_TIME_S_DESC":"Maximum ejection duration.","UPDATED_AT_VALUE_SCAP":"Updated at {value}","METHOD":"Method","TRAFFIC_MANAGEMENT_UNAVAILABLE":"Traffic Management Unavailable","APPLICATION_GOVERNANCE_NOT_ENABLED":"Please enable Application Governance.","CREATE_GRAYSCALE_RELEASE_TASK":"Create Grayscale Release Task","GRAYSCALE_RELEASE_DESC":"Grayscale release represents an important method of application iteration in the production environment. You can choose different release methods for the smooth transition as you upgrade your applications to a new version.","NO_GRAYSCALE_RELEASE_TASK_FOUND":"No Grayscale Release Task Found","NO_GRAYSCALE_RELEASE_TASK_FOUND_DESC":"Please create a grayscale release task.","TYPE_SERVICE_DEPLOYMENT":"Type: stateless service (deployment)","TYPE_SERVICE_STATEFULSET":"Type: stateful service (statefulset)","TRACING":"Tracing","TRACING_NO_DATA_DESC":"Please change the search conditions and try again.","NUM_SPAN_SI":"{num} span","NUM_SPAN_PL":"{num} spans","NUM_ERROR_SI":"{num} error","NUM_ERROR_PL":"{num} errors","LAST_NUM_RECORDS":"Last {num} records","PROCESS":"Process","SERVICES_AND_OPERATIONS":"Services & Operations","TRACING_UNAVAILABLE":"Tracing Unavailable","CALLED_SERVICES":"Called Services","CALLED_DEPTH":"Call Depth","COMPOSED_APP_PL":"Composed Apps","NO_COMPOSED_APP_FOUND":"No Composed App Found","COMPOSED_APP_EMPTY_DESC":"Please create a composed app.","STATEFUL_SERVICE":"Stateful Service","STATELESS_SERVICE":"Stateless Service","CREATE_COMPOSED_APP":"Create Composed App","SAVE_FORM_TIP":"Please save the current settings first.","YAML_FILE":"YAML File","CREATE_BY_YAML_DESC":"Customize the settings in the YAML file.","APPLICATION_GOVERNANCE":"Application Governance","VERSION_DESC":"The version can contain only lowercase letters and numbers. The maximum length is 16 characters.","APPLICATION_GOVERNANCE_DESC":"Enable Application Governace to use the Traffic Monitoring, Grayscale Release, and Tracing features for the app.","APP_BASIC_INFORMATION_DESC":"Set the basic information about the app.","APP_SELECT_SERVICE_TYPE_DESC":"Create a stateless or stateful service.","STATEFUL_SERVICE_DESC":"Create a service and a statefulset.","STATELESS_SERVICE_DESC":"Create a service and a Deployment.","APPLICATION_SERVICE_DESC":"Add stateful or stateless services to the app based on your requirements.","APP_CREATE_SERVICE_DESC":"Create a service for the app.","ROUTE_SETTINGS":"Ingress Settings","ROUTING_RULES":"Routing Rules","ROUTE_SETTINGS_DESC":"Set routing rules for the app.","ADD_ROUTE_SUCCESS":"The ingress was added successfully.","CURRENT_APP_SETTINGS_READONLY":"Current App Settings (read-only)","TARGET_APP_SETTINGS":"Target App Settings","TARGET_APP_VERSION":"Target App Version","CURRENT_APP_VERSION":"Current App Version","EDIT_APP_SETTINGS":"Edit App Settings","UPDATED_TIME":"Updated at {value}","APP_TEMPLATE":"App Template","NO_APP_DESC_FOUND":"No app description found.","TEMPLATE_BASED_APP_PL":"Template-Based Apps","APPLICATIONS_DESC":"An app provides users with comprehensive business functions in one package. App templates in KubeSphere are built on the Helm packaging specification. They are delivered through a unified public or private Helm repository. An app is composed of one or more Kubernetes objects including workloads, services and ingresses.","APP_PL":"Apps","APP_TYPES_Q":"What app types does KubeSphere support?","APP_TYPES_A":"KubeSphere supports templated-based apps and composed apps. Template-based apps are created from You can deploy apps from the KubeSphere App Store or an app template. Composed apps are customized by users.","HOW_TO_USE_APP_GOVERN_Q":"How do I use Application Governance?","HOW_TO_USE_APP_GOVERN_A":"You can enable Application Governance when you create a composed app.","DEPLOY_SAMPLE_APP":"Deploy Sample App","NO_TEMPLATE_BASED_APP_FOUND":"No Template-Based App Found","TEMPLATE_BASED_APP_EMPTY_DESC":"Please create an app from the KubeSphere App Store or an app template.","APP":"App","VERSION":"Version","CREATING":"Creating","UPGRADING":"Created","DELETING":"Deleting","CREATE_APP":"Create App","CREATE_APP_DESC":"Create an app from the KubeSphere App Store or an app template.","FROM_APP_STORE":"From App Store","FROM_APP_TEMPLATE":"From App Template","FROM_APP_STORE_DESC":"Create an app from the KubeSphere App Store.","SELECT_APP_REPOSITORY":"Select app repository","CURRENT_WORKSPACE":"Current workspace","FROM_APP_TEMPLATE_DESC":"Create an app from an app template in the current workspace or in a remote app repository.","APP_TEMPLATES_MODAL_DESC":"Select the current workspace or a remote app repository from the drop-down list to view the available app templates.","APP_LOW":"app","CRONJOBS":"Cronjobs","CRONJOB_DESC":"Cronjobs manage jobs on a time-based schedule and can be used to perform periodic or recurring tasks.","CRONJOB_PAUSED":"Paused","CRONJOB_RUNNING":"Running","CRONJOB_FAILED":"Failed","SCHEDULE":"Schedule","ENTER_SCHEDULE_TIP":"Please select a schedule.","CRONJOB_CRON_DESC":"Set a schedule for the cronjob. KubeSphere uses UTC by default and you need to adjust the schedule according to your time zone.","MAXIMUM_DELAY":"Maximum Start Delay (s)","SUCCESSFUL_JOBS_RETAINED":"Successful Jobs Retained","FAILED_JOBS_RETAINED":"Failed Jobs Retained","CONCURRENCY_POLICY":"Concurrency Policy","MAXIMUM_DELAY_DESC":"Maximum delay before starting a scheduled job when the job is missed for certain reasons.","CONCURRENCY_POLICY_DESC":"Policy adopted by the system when multiple jobs of the cronjob overlap with each other.","FAILED_JOBS_RETAINED_DESC":"Number of failed jobs allowed to be retained. The default value is 1.","SUCCESSFUL_JOBS_RETAINED_DESC":"Number of successful jobs allowed to be retained. The default value is 3.","RUN_JOBS_CONCURRENTLY":"Run jobs concurrently","SKIP_NEW_JOB":"Skip new job","SKIP_OLD_JOB":"Skip old job","STRATEGY_SETTINGS":"Strategy Settings","MAXIMUM_RETRIES":"Maximum Retries","MAXIMUM_RETRIES_DESC":"Maximum number of retries before the job is marked as failed. The default value is 6.","PARALLEL_PODS_DESC":"Number of pods that run in parallel in the job.","COMPLETE_PODS_DESC":"Number of complete pods required for the job to be marked as complete.","MAXIMUM_DURATION_DESC":"Maximum duration of the job. The job is terminated when it reaches the maximum duration.","PARALLEL_PODS":"Parallel Pods","COMPLETE_PODS":"Complete Pods","MAXIMUM_DURATION":"Maximum Duration (s)","RESTART_POLICY":"Restart Policy","RESTART_POLICY_DESC":"Select the policy adopted by the system when a container in the pod exits abnormally.","CRONJOB_PL":"Cronjobs","CRONJOB_LOW":"cronjob","REVISION_RECORDS_DESC":"A revision record is generated after the workload is created or modified, which can be used to roll back the workload settings. A maximum of 10 revision records can be retained.","ENVIRONMENT_VARIABLE":"Environment Variable","CONTAINER_SETTINGS_DESC":"Set the image, name, type, and computing resources of the container.","PORT_SETTINGS_DESC":"Set the ports used for accessing the container.","HEALTH_CHECKER_DESC":"Add probes to check the container health status regularly.","STARTUP_COMMAND":"Start Command","STARTUP_COMMAND_DESC":"Customize the command run by the container upon startup. By default, the container runs the default image command.","CONTAINER_COMMAND_DESC":"Startup command of the container.","CONTAINER_ARGUMENT_DESC":"Parameters of the startup command. Use commas to separate multiple parameters.","CONTAINER_ENVIRONMENT_DESC":"Add environment variables to the container.","PROBE_COMMAND_DESC":"Use commas to separate multiple commands.","IGNORE_CERT_WARN_DESC":"Ignoring certificate verification may cause password disclosure.","CERT_ERROR":"Certificate error.","ROLL_BACK":"Roll Back","CURRENT_REVISION_RECORD":"Current Revision Record","TARGET_REVISION_EMPTY_DESC":"Please select a target revision record.","TARGET_REVISION_RECORD":"Target Revision Record","CONFIGURE_AUTOSCALING_DESC":"Set the system to automatically adjust the number of pod replicas based on target CPU usage and target memory usage.","EDIT_AUTOSCALING":"Edit Autoscaling","TARGET_CPU_USAGE_UNIT":"Target CPU Usage (%)","AUTOSCALING":"Autoscaling","RESOURCE_NAME":"Resource Name","TARGET_CPU_USAGE_DESC":"The system automatically decreases/increases the number of pod replicas when the actual CPU usage is higher/lower than the target.","TARGET_MEMORY_USAGE_DESC":"The system automatically decreases/increases the number of pod replicas when the actual memory usage is higher/lower than the target.","MINIMUM_REPLICAS_DESC":"Set the minimum number of pod replicas allowed. The default value is 1.","MAXIMUM_REPLICAS_DESC":"Set the maximum number of pod replicas allowed. The default value is 1.","TARGET_MEMORY_USAGE_UNIT":"Target Memory Usage (MiB)","MINIMUM_REPLICAS":"Minimum Replicas","MAXIMUM_REPLICAS":"Maximum Replicas","EDIT_SETTINGS":"Edit Settings","FROM_CONFIGMAP":"From configmap","FROM_SECRET":"From secret","BATCH_REFERENCE":"Batch Reference","BATCH_REFERENCE_DESC":"Reference multiple keys in a configmap or secret.","DESELECT_ALL":"Deselect all","KEY_PL":"Keys","RULE_NOT_COMPLETE":"Please set a complete rule.","REVISION_RECORDS":"Revision Records","CONFIG_FILE":"Configuration File","COMPARE_WITH":"Compared with the previous record {version}","REPLICAS_DESIRED":"Desired","REPLICAS_CURRENT":"Current","ADJUST_REPLICAS":"Adjust Replicas","REPLICAS_SCALE_NOTIFY_CONTENT":"Are you sure you want to change the number of pod replicas to {num}?","REPLICAS_SCALE_NOTIFY_CONFIRM":"OK ({seconds}s)","REPLICAS_SCALE_NOTIFY_CANCEL":"Cancel","TARGET_MEMORY_USAGE":"Target Memory Usage","TARGET_CPU_USAGE":"Target CPU Usage","TARGET_CURRENT":"{target} (Current: {current})","NOT_ENABLE":"{resource} Not Enabled","CONTAINER_LOG_NOT_ENABLED":"Container Log is not enabled.","BUILD_LOG":"Build Log","TASK":"Task","IN_PROGRESS":"in progress","IMAGE_BUILDING":"Image Building","HAS_FAILED":"has failed","VIEW_ALL_REPLICAS":"View All Replicas","SHOW_SELECTED_ONLY":"Show Selected Only","MONITORING_SELECT_LIMIT_MSG":"A maximum of 10 resources can be selected.","MONITORING_ALERT_DESC":"Information about a maximum of five pod replicas are displayed by default. You can click View All Replicas to view information about all pod replicas.","CURRENT_VALUE":"Current: {value}","ENVIRONMENT_VARIABLE_PL":"Environment Variables","EVENT_AGE":"Occurred","EVENT_AGE_DATA":"{lastTime}
    ({count} times over {duration})","EVENT_AGE_DATA_TWICE":"{lastTime}
    (twice over {duration})","SOURCE":"Source","HPA_SET_TIP":"Horizontal pod autoscaling has been set.","WORKLOAD_EMPTY_DESC":"Please create a workload.","INVALID_IMAGE":"Invalid image.","INVALID_NAME_DESC":"Invalid name. The name can contain only lowercase letters, numbers, and hyphens (-), and must start and end with a lowercase letter or number. The maximum length is 63 characters.","NO_IMAGE_FOUND":"No Image Found","CONTAINER_EMPTY_DESC":"Please add at least one worker container.","RESOURC_QUOTAS_UNSET":"Resource Quotas Unset","INSUFFICENT_RESOURCES":"Insufficent Resources","REMAINING_QUOTAS":"Remaining Quotas","ENVIRONMENT_INVALID_TIP":"The key of an environment variable can contain only letters, numbers, underscores (_), hyphens (-), and periods (.), and must not start with a number.","ENVIRONMENT_CANNOT_BE_EMPTY":"Please set a key for the environment variable.","WORKLOAD_PORT_NAME_DESC":"The port name can contain only lowercase letters, numbers and hyphens (-), and must start with a lowercase letter and end with a lowercase letter or number. The maximum length is 15 characters.","MAX_EXTRA_PODS_DESC":"Maximum number or percentage of extra pods allowed during the update process.","MAX_EXTRA_PODS":"Maximum Extra Pods","AVAILABLE":"Available","IN_USER":"In use","ACCESS_MODE_SCAP":"Access mode","PVC_OR_TEMPLATE_EMPTY":"You have enabled Collect Logs on Volumes. Please add at least one persistent volume, temperary volume, or persistent volume claim template and specify the path of container logs.","PVC_EMPTY":"You have enabled Collect Logs on Volumes. Please add at least one persistent volume or temperary volume and specify the path of container logs.","PROJECT_COLLECT_SAVED_DISABLED_DESC":"To enable this function, you need to enable Collect Logs on Volumes in Project Settings.","COLLECT_LOGS_ON_VOLUMES_DESC":"Allow the system to collect container logs saved on volumes. To use this function, you need to mount a volume in read and write mode to a container and set the container to export logs to the volume.","CONTAINER_LOG_PATH":"Container log path","CONTAINER_LOG_PATH_TIP":"Container log path relative to the volume mount path. Globbing patterns are supported. You can used commas (,) to separate multiple paths.

    Example
    When the volume mount path is /data, log/*.log indicates that the container log files are all .log files in the /data/log directory.","RECREATE_CONFIRM_DESC":"Are you sure you want to re-create the {type} {resource}? The pod replicas will be updated according to the update strategy and the service will be interrupted.","NO_WORKLOAD_RELATED_RESOURCE_DESC":"No resource related to the workload is found.","SELECT_ALL":"Select All","DELETE_WORKLOAD_DESC_SI":"You are about to delete the workload {resource}.
    Do you want to also delete the resource related to the workload?","DELETE_WORKLOAD_DESC_PL":"You are about to delete the workloads {resource}.
    Do you want to also delete the resources related to the workloads?","DELETE_WORKLOAD":"Delete Workload","DELETE_MULTIPLE_WORKLOADS":"Delete Multiple Workloads","DELETE_APP_RESOURCE_TIP":"The resource is managed by {app}, which may affect the normal use of this app if the resource is deleted. Please enter the {type} name {resource} to make sure you understand the risks associated with the operation.","STOP_APP_RESOURCE_TIP":"The resource is managed by {app}, which may affect the normal use of this app if the resource is stopped. Please enter the {type} name {resource} to make sure you understand the risks associated with the operation.","MORE":"More","VIEW_YAML":"View YAML","JOB_PL":"Jobs","JOB_DESC":"Jobs are used to perform short-lived, one-off tasks. A job creates one or more pods and ensures that a specific number of pods successfully terminate.","JOB_EMPTY_DESC":"Please create a job.","JOB_COMPLETED":"Completed","JOB_FAILED":"Failed","JOB_RUNNING":"Running","LAST_RUN_TIME":"Last Run Time","RESTART_POLICY_NEVER_DESC":"Re-create pod","RESTART_POLICY_ONFAILURE_DESC":"Restart container","RERUN":"Rerun","JOB":"Job","JOB_LOW":"job","QOS_CLASS":"QoS Class","NODE_NAME":"Node Name","POD_IP_ADDRESS":"Pod IP Address","JOB_UNFINISHED":"Unfinished","TERMINATED":"Terminated","SCHEDULED_TO_NODE":"Scheduled to {value}","SCHEDULING_NOT_SUCCESSFUL":"Scheduling Not Successful","SCHEDULING_INFORMATION":"Scheduling Information","SCHEDULING_RESULT":"Scheduling Result","POD_SCHEDULING_METHOD":"Pod Scheduling Method","POD_ASSIGNED_DESC":"The system schedules a pod to a node with sufficient available resources based on the resource requests of the Pod.","STATUS_INFORMATION":"Status Information","WORKLOAD_CONDITION_AVAILABLE":"Available","WORKLOAD_CONDITION_PROGRESSING":"Progressing","NOT_SUCCESSFUL":"Not successful","CURRENT_STATUS":"Current status","POD_CONDITION_INITIALIZED":"Initialized","POD_CONDITION_INITIALIZED_DESC":"Starts all init containers in the pod.","POD_CONDITION_READY":"Pod Ready","POD_CONDITION_READY_DESC":"Starts running the pod and allows the pod to be accessed.","POD_CONDITION_CONTAINERSREADY":"Containers Ready","POD_CONDITION_CONTAINERSREADY_DESC":"Starts all containers in the pod.","POD_CONDITION_PODSCHEDULED":"Pod Scheduled","POD_CONDITION_PODSCHEDULED_DESC":"Schedules the pod to a node in the cluster.","POD_DESC":"A pod is the basic execution unit of a Kubernetes application, representing the smallest and simplest unit in the Kubernetes object model that you create or deploy.","POD_EMPTY_DESC":"Please create a pod.","DOMAIN_NAME_VALUE":"Domain Name: {value}","PATH_VALUE":"Path: {value}","RULES":"Rules","ROUTE_PATH_VALUE":"Path: {value}","ROUTE_SERVICE_VALUE":"Service: {value}","ROUTE_PORT_VALUE":"Port: {value}","SERVICE_COLON":"Service: ","ACCESS_SERVICE":"Access Service","UNABLE_TO_ACCESS":"Unable to access service","UNABLE_TO_ACCESS_TIP":"Make sure that domain name resolution policies have been configured in your DNS server or the hosts file of your client machine.","CERTIFICATE_VALUE":"Certificate: {value}","PATH_EXIST":"Duplicate paths exist.","ENDPOINT":"Endpoint","SESSION_AFFINITY":"Session Affinity","EDIT_EXTERNAL_ACCESS":"Edit External Access","EDIT_MONITORING_EXPORTER":"Edit Monitoring Exporter","EDIT_SERVICE":"Edit Service","ACCESS_NONE_TIP":"Internet access is not supported. The service can be accessed only within the cluster.","EXTERNAL_SERVICE":"External Service","COLLECTION_INTERVAL_MIN":"Collection Interval (min)","COLLECTION_INTERVAL_MIN_DESC":"Interval in minutes between two metric collection operations. The default value is 1.","COLLECTION_TIMEOUT_DESC":"Timeout interval in seconds of each collection operation. The default value is 10.","SELECT_AUTHENTICATION_METHOD":"Select Authentication Method","SELECT_AUTHENTICATION_METHOD_DESC":"Select the authentication method used during metric collection.","NO_AUTHENTICATION_TCAP":"No Authentication","NO_AUTHENTICATION_TIP":"Authentication is not used during metric collection.","CREATE_A_NEW_SECRET":"Create a new secret","REFRESH_SECRETS":"refresh secrets.","CERTIFICATE_AUTHORITY":"Certificate Authority","SERVER_NAME":"Server Name","TLS_SETTINGS_TCAP":"TLS Settings","BEARER_TOKEN_TCAP":"Bearer Token","BASIC_AUTHENTICATION_TCAP":"Basic Authentication","EXTERNAL_IP_ADDRESS":"External IP Address","MONITORING_EXPORTER":"Monitoring Exporter","MONITORING_EXPORTER_VALUE":"Monitoring exporter: {value}","PORT_PL":"Ports","SERVICE_NODE_PORT_DESC":"If your client machine is on the same network as the cluster, you can use : to access the service.","IMAGE_BUILDING_FAILED":"Image building failed","IMAGE_BUILDING_SUCCESSFUL":"Image building successful","BUILDING_IMAGE":"Building image","SERVICE_MONITORING_EXPORTER":"Service Monitoring Exporter","EXPORTER_SERVICE_PORTS":"Exporter Service Ports","SCRAPE_INTERVAL_MIN":"Scrape Interval (Min)","SERVICE_TYPES_Q":"What service types does KubeSphere support?","SERVICE_TYPES_A":"KubeSphere supports stateless services and stateful services. Pod replicas in a stateless service share the same volume, while each pod replica in a stateful service has an independent volume.","SCENARIOS_FOR_SERVICES_Q":"What are the use cases of stateless services and stateful services?","SCENARIOS_FOR_SERVICES_A":"Stateless services applies to scenarios where data persistence is not required, such as Nginx and Tomcat. Stateful services applies to scenarios where data persistence is required, such as MySQL databases, Kafka, and Zookeeper.","SERVICE_TYPE":"Service Type","SERVICE_LIST":"Service List","SERVICE_TYPE_STATEFULSERVICE":"Stateful Service","SERVICE_TYPE_STATELESSSERVICE":"Stateless Service","SERVICE_TYPE_EXTERNALSERVICE":"External Service","HEADLESS":"Headless","EXTERNALNAME":"ExternalName","CREATE_SERVICE_DESC":"Select a service creation method.","SELECT_SERVICE_TYPE_DESC":"Create a stateless or stateful service, or map a service to an external service.","SERVICE_FROM_CODE":"Create Service from Source Code","SERVICE_FROM_ARTIFACT":"Create Service from Artifact","SERVICE_FROM_CODE_DESC":"Build an image from existing source code and deploy the image.","SERVICE_FROM_ARTIFACT_DESC":"Build an image from an existing artifact and deploy the image.","CUSTOMIZE_SERVICE":"Customize Service","CUSTOMIZE_SERVICE_DESC":"Specify workloads or edit a YAML configuration file to create a service.","PORT_INPUT_DESC":"The port name already exists. Please enter another name.","PORT_NAME_DESC":"The port name can contain only lowercase letters, numbers, and hyphens (-) and must start and end with a lowercase letter or number. The maximum length is 63 characters.","CREATE_EXTERNAL_SERVICE_DESC":"Create a service and map it to an external service.","CREATE_EXTERNAL_SERVICE":"Create External Service","EXTERNAL_SERVICE_ADDRESS_EMPTY_DESC":"Please enter the domain name of an external service.","EXTERNAL_SERVICE_ADDRESS":"External Service Address","EXTERNAL_SERVICE_ADDRESS_DESC":"Enter the domain name of an external service.","JAVA":"Java","NODEJS":"Node.js","PYTHON":"Python","LANGUAGE_TYPE_VALUE":"Language Type: {value}","CONTAINER_SETTINGS":"Container Settings","ARTIFACT_TYPE_VALUE":"Artifact Type: {value}","BINARY":"Binary","SPECIFY_WORKLOAD_TO_CREATE_SERVICE":"Specify Workload to Create Service","EDIT_YAML_TO_CREATE_SERVICE":"Edit YAML to Create Service","SPECIFY_WORKLOAD_DESC":"Create a service by using one or more existing workloads.","NO_RELATED_RESOURCE_FOUND":"No Related Resource Found","NO_SERVICE_RELATED_RESOURCE_DESC":"No resource related to the service is found.","DELETE_SERVICE_DESC":"You are about to delete the service(s) {resource}. Please confirm whether to delete the associated resource?","DELETE_SERVICE_DESC_PL":"You are about to delete the services {resource}.
    Do you want to also delete the following resources related to the services?","DELETE_SERVICE_DESC_SI":"You are about to delete the service {resource}.
    Do you want to also delete the following resource related to the service?","DELETE_SERVICE":"Delete Service","DELETE_MULTIPLE_SERVICES":"Delete Multiple Services","SERVICE_TOPOLOGY":"Service Topology","AUTO_REFRESH":"Auto Refresh","POD_COUNT_VALUE":"Pods: {value}","SELECTOR":"Selector","RECREATE":"Re-create","RECREATE_SUCCESS_DESC":"Re-created successfully.","STATEFULSETS_LOW":"Statefulsets","STATEFULSETS_PL":"Statefulsets","PARTITION_ORDINAL_EMPTY":"Please set a ordinal for dividing pod replicas.","CONFIGMAP_PL":"Configmaps","CONFIGMAPS":"Configmaps","CONFIGMAP_LOW":"configmap","SECRET_LOW":"secret","SERVICE_ACCOUNT_PROJECT_ROLE_DESC":"Select the role of the service account in the current project.","SERVICE_ACCOUNT":"Service Account","SECRET_VALUE":"Secret: {value}","SERVICEACCOUNT_KUBECONFIG_DESC":"Download the kubeconfig.yaml file to provide other apps with an account that can access the current project. If the apps to use the kubeconfig.yaml file are deployed outside the current cluster, you need to change the value of clusters:cluster:server to the Kubernetes API server address exposed to the outside.","SERVICE_ACCOUNT_PL":"Service Accounts","SERVICE_ACCOUNT_DESC":"A service account provides the processes that run in a pod with an identity that can be used to access the API server.","SERVICE_ACCOUNT_EMPTY_DESC":"Please create a service account.","INVALID_YAML_FILE_FORMAT":"Invalid YAML file format.","PROJECT_ROLE_SI":"Project Role","SELECT_PROJECT_ROLE_DESC":"Select a project role to specify permissions.","CHANGE_ROLE":"Change Role","SERVICE_ACCOUNT_LOW":"service account","GRAYSCALE_RELEASE":"Grayscale Release","BLUE_GREEN_DEPLOYMENT":"Blue-Green Deployment","CANARY_RELEASE":"Canary Release","TRAFFIC_MIRRORING":"Traffic Mirroring","BLUE_GREEN_DEPLOYMENT_DESC":"Send service traffic to the new version for testing. If the new version does not function properly, you can immediately switch service traffic to the old version.","CANARY_RELEASE_DESC":"Allocate service traffic among the new version and old version to both test the new version and ensure service continuity.","TRAFFIC_MIRRORING_DESC":"Send a copy of service traffic to the new version for testing without actually exposing the new version.","CREATE_BLUE_GREEN_DEPLOYMENT_TASK":"Create Blue-Green Deployment Task","DESELECT":"Deselect","SELECT":"Select","SELECT_GRAY_COMPONENT_TIP":"Please select a service.","REPLICA":"Replica","ADD_REPLICA":"Add Replica","REPLICA_PL":"Replicas","GRAYSCALE_REPLICAS_DESC":"Pod replicas in the new version","SELECT_VERSION":"Select Version","BLUE_GREEN_STRATEGY_DESC":"Select a version to take over all service traffic.","TAKE_OFFLINE":"Take Offline","TAKE_OFFLINE_SUCCESS":"Take Offline Success","TAKE_OVER":"Take Over","GRAYSCALE_VERSION":"Version: {version}","CREATE_CANARY_RELEASE_TASK":"Create Canary Release Task","UNFINISHED_GRAY_TASK":"Grayscale release in progress","NO_WORKLOAD_FOUND_TIP":"No workload found","NO_SERVICE_MESH_TIP":"Application governance is disabled for the app and grayscale release is unavailable.","GRAY_APP_NAME":"App: {name}","UNSUPPORTED_WORKLOAD_TYPE":"Workload type not supported","VERSION_EXISTS":"The version code already exists. Please enter another version code.","NEW_VERSION_NUMBER_EXIST_DESC":"The workload {name} already exists. Please enter another version code.","INIT_CONTAINER":"Init container","INIT_CONTAINER_VALUE":"Init Container: {value}","CONTAINER_VALUE":"Container: {value}","GRAYSCALE_IMAGE":"Image: {image}","NEW_VERSION_NUMBER":"New Version Number","NEW_VERSION_NUMBER_EMPTY_DESC":"Please enter a new version number.","NEW_VERSION_SETTINGS":"New Version Settings","NEW_VERSION_NUMBER_DESC":"The new version number can contain only lowercase letters and numbers. The maximum length is 16 characters.","NEW_VERSION_NUMBER_INVALID_DESC":"Invalid new version number. The new version number can contain only lowercase letters and numbers. The maximum length is 16 characters.","KEY_EQ_VALUE":"Key=Value","HEADER":"Header","CLIENT_OS":"Client OS","COOKIE":"Cookie","SPECIFY_REQUEST_PARAMETERS_DESC":"Requests that meet the following conditions are sent to the new version.","POLICY_REQUEST_CONTENT_TIP":"The Specify Request Parameters function supports only HTTP, HTTPS, and gRPG requests.","SPECIFY_REQUEST_PARAMETERS":"Specify Request Parameters","REQUEST_PARAMETERS":"Request Parameters","EXACT_MATCH":"Exact match","PREFIX_MATCH":"Prefix match","REGEX_MATCH":"Regex match","CANARY_BY_TRAFFIC_DESC":"{ratio}% of traffic bound for the service {component} is sent to the new version {newVersion}.","SPECIFY_TRAFFIC_DISTRIBUTION":"Specify Traffic Distribution","TRAFFIC":"Traffic","TRAFFIC_DISTRIBUTION":"Traffic Distribution","CREATE_TRAFFIC_MIRRORING_TASK":"Create Traffic Mirroring Task","PREREQUEST_FOR_USE_GRAYRELEASE_Q":"What are the prerequisites for implementing grayscale release?","PREREQUEST_FOR_USE_GRAYRELEASE_A":"Before implementing grayscale release, you need to create a composed app and enable application governance for the app.","RELEASE_TASKS":"Release Tasks","TCP_INBOUND_TRAFFIC":"TCP Inbound Traffic","TCP_OUTBOUND_TRAFFIC":"TCP Outbound Traffic","NO_DATA_SCAP":"No data","REPLICA_COUNT_LOW":"replicas","MIRROR_POLICY_DESC":"A copy of service traffic is sent to the new version for testing. Only the old version is exposed and the new version is not exposed.","BLUE_GREEN_DEPLOYMENT_LOW":"blue-green deployment","BLUE_GREEN_TRAFFIC_DISTRI_DESC":"The new version or old version receives all traffic.","TRAFFIC_LOW":"traffic","VERSION_TRAFFIC_PERCENT":"{version} traffic {percent}%","OFFLINE":"Offline","OFFLINE_TIP":"No service traffic is sent to this version. You can take the version online to make it take over all traffic.","CANARY_RELEASE_LOW":"canary release","ADJUST_TRAFFIC_DISTRIBUTION_DESC":"Are you sure you want to send {ratioNew}% of traffic to the new version {newVersion} and {ratioOld}% to the old version {oldVersion}?","ALLOCATE_TRAFFIC_DESC":"Move the slider to set the proportion of traffic sent to the new version and that sent to the old version.","COOKIE_EXACT_MATCH":"Cookie (exact match)","COOKIE_REGEX_MATCH":"Cookie (regex match)","HEADER_EXACT_MATCH":"Header (exact match)","HEADER_REGEX_MATCH":"Header (regex match)","URL_PREFIX_MATCH":"URL (prefix match)","URL_EXACT_MATCH":"URL (regex match)","OS":"OS","SERVICE_VERSION_RECEIVE_ALL_TRAFFIC":"The version {version} has taken over all traffic.","RESTORE":"Restore","SUCCESSFUL_REQUEST_RATE":"Successful Request Rate","TRAFFIC_IN_LAST_FIVE_MINUTES":"Traffic in last five minutes.","DELETE_GRAYSCALE_RELEASE_TASK_DESC":"Please select a version to take over all traffic before deleting the grayscale release task.","GRAY_COMPONENT_DESC":"Information about the new version being tested and the old version.","TRAFFIC_MIRRORING_LOW":"traffic mirroring","MIRRORED_TRAFFIC":"Mirrored traffic","MIRRORED_TRAFFIC_TIP":"Traffic mirroring does not actually expose the new version.","RELEASE_MODE_PL":"Release Modes","RELEASE_MODE":"Release mode","NEW_VERSION_TAKEOVER_DESC":"The new version {newVersion} is receiving all traffic. If you delete the current grayscale release task, the old version {oldVersion} will be also be deleted.","OLD_VERSION_TAKEOVER_DESC":"The old version {oldVersion} is receiving all traffic. If you delete the current grayscale release task, the new version {newVersion} will be also be deleted.","GRAYSCALE_REPLICA_SI":"Replica: {count}","GRAYSCALE_REPLICA_PL":"Replicas: {count}","TRAFFIC_MIRRORING_TRAFFIC_DISTRI_DESC":"A copy of traffic is sent to the new version for testing.","EDIT_GRAYSCALE_RELEASE_TASK":"Edit Grayscale Release Task","ADJUST_TRAFFIC_DISTRIBUTION":"Adjust Traffic Distribution","COPIED_SUCCESSFUL":"Copied successfully.","BUILDER_IMAGE":"Builder Image","PULL_POLICY":"Pull Policy","REMOTE_TRIGGER":"Remote Trigger","S2I_UPDATE_WORKLOAD":"Update workload after image building is successful","S2I_UPDATA_WORKLOAD_DESC":"After the image is rebuilt successfully, workloads that use the image will be updated.","IMAGE_BUILDER":"Image Builder","IMAGE_BUILDER_LOW":"image builder","JOB_RECORDS":"Job Records","LAST_BUILD_ENVIRONMENT":"Last Build Environment","BUILDER_IMAGE_SCAP":"Builder image","FILE_SIZE":"File size: {size}","DOWNLOAD_ARTIFACT":"Download Artifact","ARTIFACT_FILE":"Artifact File","LOG_MODULE_NOT_INSTALLED":"The logging module is not installed.","LOADING_DOTS":"Loading...","IMAGE_NAME_SCAP":"Image name","IMAGE_SIZE_SCAP":"Image size","IMAGE_NAME_BUILDING":"Image: {name}/Building","IMAGE_NAME_FAILED":"Image: {name}/Failed","IMAGE_NAME_SUCCESSFUL":"Image: {name}/Successful","LAST_MESSAGE_SCAP":"Last message","START_TIME_SCAP":"Start time","SOURCE_URL":"Source URL","NEW_TAG":"New Tag","NEW_TAG_DESC":"Enter the tag of the new image","IMAGE_ARTIFACTS":"Image Artifacts","RELEASE_TIME_SCAP":"Release time","PULL_COMMAND_SCAP":"Pull command","IMAGE_BUILDER_PL":"Image Builders","IMAGE_BUILDER_DESC":"Image Builder is a tool that builds container images from source code or artifacts. You can build container images from source code or artifacts through simple configurations.","IMAGE_BUILDER_EMPTY_DESC":"Please create an image builder.","NOT_RUNNING_YET":"Not run yet","BUILDING":"Building","S2I":"Source-to-image","B2I":"Artifact-to-image","BUILD_IMAGE_FOR_SERVICE":"Build image for service {service}.","BUILD_MODE":"Build Mode","CONTAINERD_RUNTIME_NOT_SUPPORTED":"The containerd runtime does not support this feature.","S2I_DESC":"Select a source code language.","IMAGE_FROM_S2I":"Build Image from Source Code","IMAGE_FROM_B2I":"Build Image from Artifact","B2I_DESC":"Select an artifact file type.","EMPTY_IMAGE_TYPE_DESC":"Please select a language or artifact type.","CODE_REPOSITORY_URL":"Code Repository URL","CODE_REPOSITORY_BRANCH":"Code Repository Branch","CODE_REPOSITORY_KEY":"Code Repository Key","CODE_REPOSITORY_URL_DESC":"Enter the address of the source code repository. Currently, only Git repositories are supported.","CODE_REPOSITORY_KEY_DESC":"Select the secret that contains the code repository key if a private code repository is used.","IMAGE_NAME":"Image Name","IMAGE_TAG":"Image Tag","TARGET_IMAGE_REPOSITORY":"Target Image Registry","S2I_IMAGE_NAME_DESC":"The name can contain only lowercase letters, numbers, hyphens (-), dots (.), slashes (/), and colons (:), and must start and end with a lowercase letter or number.","S2I_TARGET_IMAGE_REPOSITORY_DESC":"Select an image registry for storing the image to be created. If no image registry is available, you need to create an image registry secret.","TRIGGER_TOKEN":"Trigger Token","INVALID_TRIGGER_TOKEN_DESC":"Invalid token. The token can contain only uppercase letters, lowercase letters, and numbers.","TRIGGER_TOKEN_DESC":"Set a token used to authenticate a client against KubeSphere. You can set a client to automatically trigger image building on KubeSphere over a webhook. The token can contain only uppercase letters, lowercase letters, and numbers.","CODE_RELATIVE_PATH":"Code Relative Path","CODE_RELATIVE_PATH_DESC":"Set the relative path of the code in the code repository. The default path is /.","S2I_ENVIRONMENT_DESC":"Set environment variables to control the runtime behavior of the image.","UPLOAD_ARTIFACT_FILE":"Upload Artifact File","UPLOAD_PERCENT":"Uploaded: {percent}%","UPLOAD_FULLY":"Uploaded: 100%","UPLOAD_FAILED":"Upload failed.","ARTIFACT_FILE_EMPTY_DESC":"Please upload an artifact file.","B2I_DEFAULT_DESC":"Upload an artifact file.","JAR_DESC":"Upload an artifact file in JAR format.","WAR_DESC":"Upload an artifact file in WAR format.","BUILD_ENVIRONMENT":"Build Environment","CODE_REPOSITORY_KEY_NOT_REQUIRED":"The current code repository does not require a key.","FILE_SIZE_VALUE":"File size: {value}","FILE_UPLOADED_TIP":"File uploaded successfully.","WRONG_FILE_EXTENSION_NAME":"The selected file type does not match. Please select the {type} type.","IMAGE_NAME_EMPTY_DESC":"Please enter an image name.","IMAGE_TAG_EMPTY_DESC":"Please enter an image tag.","TARGET_IMAGE_REPOSITORY_EMPTY_DESC":"Please set a target image registry.","REQUESTS_FOR_PUSH_AN_ALARM_Q":"How do I receive alerts if an alerting policy is triggered?","REQUESTS_FOR_PUSH_AN_ALARM_A":"The platform administrator needs to select a notification method and configure the server corresponding to the method.","HOW_TO_SUPRESS_AN_ALARM_Q":"How do I suppress alerts?","HOW_TO_SUPRESS_AN_ALARM_A":"You can set alerting policies at different levels. Each level corresponds to an alerting interval.","SELECT_WORKLOAD_TIP":"Please select at least one workload.","KUBE_NO_AVAILABLE_DATA":"No Data","EDIT_QUOTAS":"Edit Quotas","QUOTA":"Quota","PROJECT_QUOTAS_NOT_SET":"Project Quotas Not Set","PROJECT_QUOTAS_DESC":"Project quotas specify the number of available CPU and memory resources and the maximum number of application resources such as pods, deployments, and services allowed in the project.","DEFAULT_CONTAINER_QUOTAS_NOT_SET":"Default Container Quotas Not Set","DEFAULT_CONTAINER_QUOTAS_DESC":"Default container quotas specify the default CPU request, CPU limit, memory request, and memory limit of containers created in the project.","APPLICATION_RESOURCE_COUNT":"Application Resources","SELECT_RESOURCE_TIP":"Select a resource or enter a resource name","NUMBER_OF_PODS":"Number of pods","NUMBER_OF_DEPLOYMENTS":"Number of deployments","NUMBER_OF_STATEFULSETS":"Number of statefulsets","NUMBER_OF_DAEMONSETS":"Number of daemonsets","NUMBER_OF_JOBS":"Number of jobs","NUMBER_OF_CRONJOBS":"Number of cronjobs","NUMBER_OF_VOLUMES":"Number of persistent volume claims","NUMBER_OF_SERVICES":"Number of services","NUMBER_OF_ROUTES":"Number of ingresses","NUMBER_OF_SECRETS":"Number of secrets","NUMBER_OF_CONFIGMAPS":"Number of configmaps","INSTALLED_APPS":"Installed Apps","RESOURCE_STATUS":"Resource Status","RESOURCE_WARNING_TIPS":"Abnormal {tipName}: {warnNum}","PHYSICAL_RESOURCE_PL":"Physical Resources","CPU_USAGE_TIME":"CPU Usage ({time})","MEMORY_USAGE_TIME":"Memory Usage ({time})","TIPS":"Tips","HOW_TO_INVITE_USERS":"How do I invite users to the current project?","HOW_TO_SET_PROJECT_GATEWAY":"How do I set the project gateway?","TOP_5_FOR_RSC_USAGE":"Top 5 for Resource Usage","TOP_5_FOR_RESOURCE_USAGE":"Top 5 for Resource Usage","SORT_BY_WORKLOAD_CPU_USAGE":"Sort by CPU usage","SORT_BY_WORKLOAD_MEMORY_USAGE_WO_CACHE":"Sort by memory usage","SORT_BY_WORKLOAD_NET_BYTES_TRANSMITTED":"Sort by outbound traffic","SORT_BY_WORKLOAD_NET_BYTES_RECEIVED":"Sort by inbound traffic","PROJECT_SETTINGS":"Project Settings","HOW_TO_USE_QUOTA_Q":"How do I use resource quotas?","HOW_TO_USE_QUOTA_A":"Resource quotas are a mechanism used to limit the resource usage. You can edit project resource quotas and default container quotas by clicking Edit Project.","WHAT_ARE_DEFAULT_CONTAINER_QUOTAS_Q":"What are default container quotas?","WHAT_ARE_DEFAULT_CONTAINER_QUOTAS_A":"Default container quotas specify the default CPU request, CPU limit, memory request, and memory limit of containers created in the project.","PROJECT_BASIC_INFO_DESC":"Basic information provides an overview of the project. You can view the project information and default container quotas.","EDIT_PROJECT_QUOTA":"Edit Project Quota","PROJECT_REMAINING_QUOTAS":"Project Remaining Quotas","WORKSPACE_REMAINING_QUOTAS":"Workspace Remaining Quotas","GPU_TYPE_SCAP":"GPU type","GPU_LIMIT_SCAP":"GPU limit","REQUEST_EXCEED_WORKSPACE":"Resource requests and limits cannot exceed workspace resource limits.","REQUEST_EXCEED_LIMIT":"Resource requests cannot be greater than resource limits.","REQUEST_EXCEED_AVAILABLE_QUOTA":"Insufficient resources.","DELETE_PROJECT_TIP":"Enter the project name {resource} to confirm that you understand the risks of this operation.","MANAGE":"Manage","PROJECT_INFO":"Project Information","EDIT_PROJECT_QUOTAS":"Edit Project Quotas","PROJECT_ROLE_SCAP":"Project role","PROJECT_ROLE_SCAP_PL":"Project roles","PROJECT_MEMBER_SCAP":"Project member","PROJECT_MEMBER_SCAP_PL":"Project members","DEFAULT_CONTAINER_QUOTA_PL":"Default Container Quotas","EDIT_DEFAULT_CONTAINER_QUOTAS":"Edit Default Container Quotas","LIMITS_CPU":"CPU Limit","LIMITS_MEMORY":"Memory Limit","REQUESTS_CPU":"CPU Request","REQUESTS_MEMORY":"Memory Request","PROJECT_QUOTA_PL":"Project Quotas","RESOURCE_TYPE_SCAP":"Resource type","JOBS":"Jobs","VOLUMES":"Volumes","SERVICES":"Services","ROUTES":"Ingresses","SECRETS":"Secrets","PROJECT_GATEWAY_DESC":"Set up and manage the configuration of the external network access gateway and service management in the project.","PROJECT_GATEWAY":"Project Gateway","PROJECT_GATEWAY_EMPTY_DESC":"Please create a project gateway.","ENABLE_GATEWAY_DESC":"Enable the gateway controller to forward traffic to different services based on domain names and paths configured in ingresses.","LOAD_BALANCER_PROVIDER":"Load Balancer Provider","GATEWAY_UPDATING_TIP":"Updating the gateway. Please try again later.","CLUSTER_GATEWAY_GUIDE_DESC":"If the cluster gateway and project gateway both exist, the project gateway cannot be enabled after it is disabled. You are advised to used either the cluster gateway or project gateway.","LOG_COLLECTION":"Log Collection","DISK_LOG_COLLECTION_DESC":"The Log Collection function allows the system to collect container logs saved on volumes and send the logs to standard output.","COLLECT_LOGS_ON_VOLUMES_Q":"How do I collect logs on volumes?","COLLECT_LOGS_ON_VOLUMES_A":"To collect logs on volumes, you need to mount a volume in read and write mode to a container and set the container to export logs to the volume.","COLLECT_LOGS_ON_VOLUMES":"Collect Logs on Volumes","DISABLE_LOG_COLLECTION":"Disable Log Collection","DISABLE_LOG_COLLECTION_TIP":"Are you sure you want to disable log collection? You need to restart the pod replicas to make the change take effect.","LOG_COLLECTION_ENABLED_DESC":"After this function is enabled or disabled, you need to restart the pod replicas to make the change take effect.","DISABLED":"Disabled","ENABLED":"Enabled","NETWORK_ISOLATION_DESC":"By configuring network isolation, users can control traffic between pods within the same workspace and traffic from outside to implement application isolation and enhance application security.","NETWORK_ISOLATION_Q":"How do I use network isolation better?","NETWORK_ISOLATION_Q1":"What are the requirements on the CNI plugin for implementing network isolation?","NETWORK_ISOLATION":"Network Isolation","ENABLE":"Enable","PROJECT_NETWORK_ISOLATION":"Project network isolation","DISABLED_PROJECT_NETWORK_ISOLATION":"Disabled project network isolation","NETWORK_POLICY_EMP_TITLE":"Network Isolation Not Enabled","NETWORK_POLICY_EMP_DESC":"After the project network access is enabled, other projects will be unable to access the project. But you can allow projects, services, and external IP addresses to access this project based on your needs.","INTERNAL_ALLOWLIST":"Internal Allowlist","INTERNAL_ALLOWLIST_TIP":"Add projects and services in the workspace to the allowlist.","INTERNAL_EGRESS_DESC":"Pods in the current project are allowed to access pods of the following services and projects.","INTERNAL_INGRESS_DESC":"Pods in the current project are allowed to be accessed by pods of the following services and projects.","INTERNAL_ALLOWLIST_DESC":"Allow pods in the current project to communicate with pods in other projects of the current workspace.","EMPTY_RESOURCE_DESC":"Please select at least one project or service.","EXTERNAL_ALLOWLIST":"External Allowlist","EXTERNAL_ALLOWLIST_TIP":"Add network segments and ports outside the workspace to the allowlist.","EXTERNAL_ALLOWLIST_DESC":"Allow pods in the current project to communicate with specific network segments and ports outside the workspace.","NETWORK_SEGMENT_EXAMPLE":"Example: 10.0.0.0","PORT_EXAMPLE":"Example: 80","EXTERNAL_EGRESS_DESC":"Pods in the current project are allowed to access the following network segments and ports.","EXTERNAL_INGRESS_DESC":"Pods in the current project are allowed to be accessed by the following network segments and ports.","SELECT_RULE_DIRECTION_TIP":"Please select a traffic direction.","ENTER_VALID_SEGMENT_DESC":"Please enter valid network segment.","ENTER_VALID_PORT_NUMBER_DESC":"Please enter a valid port number.","ADD_ALLOWLIST_ENTRY":"Add Allowlist Entry","EDIT_ALLOWLIST_ENTRY":"Add Allowlist Entry","EXTERNAL_TRAFFIC_DIRECTION_DESC":"Egress indicates the direction from the current project to outside the workspace. Ingress indicates the direction from outside the workspace to the current project.","TRAFFIC_DIRECTION":"Traffic Direction","NETWORK_SEGMENT_DESC":"Set a network segment (CIDR is supported).","EGRESS":"Egress","INGRESS":"Ingress","INTERNAL_TRAFFIC_DIRECTION_DESC":"Egress indicates the direction from the current project to other projects. Ingress indicates the direction from other projects to the current project.","ALLOWLIST_ENTRY":"Allowlist Entry","ALLOWLIST_ENTRY_PL":"Allowlist Entry","ALLOWLIST_ENTRY_DETAIL":"Allowlist Entry Detail","ALLOWLIST_ENTRY_LOW":"allowlist entry","ADD_NEW_NETWORK_SEGMENT":"Add","ADD_NEW_PORT":"Add Port","ADD_NEW_PORT_RANGE":"Add Port Aange","PORT_RANGE":"Port Range","NETWORK_SEGMENT_QUANTITY":"Network Segment Quantity","PORT_QUANTITY":"Port Quantity","ALLOWLIST_ENTRY_EMPTY_DESC":"Create allowlist entry","PROJECT_MEMBER":"Project Member","PROJECT_MEMBER_PL":"Project Members","PROJECT_MEMBER_DESC":"Project members can view or manage project resources. The project administrator can invite members who belong to the workspace to the project and manage project members.","REMOVE":"Remove","INVITE_MEMBER_DESC":"Invite members of the current workspace to the project.","PROJECT_MEMBER_EMPTY_DESC":"Please invite a member of the current workspace to the project.","INVITE_MEMBER_SEARCH_PLACEHOLDER":"Enter a username to invite members","ASSIGN_ROLE":"Assign Role","PERMISSION_PL":"Permissions","AUTHORIZED_USER_PL":"Authorized Users","PROJECT_ROLE_PL":"Project Roles","PROJECT_ROLE_DESC":"Project roles define the permissions of project members.","ROLE_PROJECT_ADMIN":"Manage all resources in the project.","ROLE_PROJECT_REGULAR":"Manage resources other than users and roles in the project.","ROLE_PROJECT_VIEWER":"View all resources in the project.","ROLE_PROJECT_OPERATOR":"Manage resources other than users and roles in the project.","PROJECT_ROLE_EMPTY_DESC":"Please create a project role.","PERMIGROUP_APPLICATION_WORKLOADS":"Application Workloads","PERMISSION_APPLICATION_WORKLOADS_VIEW":"Application Workload Viewing","PERMISSION_APPLICATION_WORKLOADS_VIEW_DESC":"View resources such as applications, services, workloads, jobs, grayscale release tasks, and image builders in the project.","PERMISSION_APPLICATION_WORKLOADS_MANAGEMENT":"Application Workload Management","PERMISSION_APPLICATION_WORKLOADS_MANAGEMENT_DESC":"Create, edit, and delete resources such as applications, services, workloads, jobs, grayscale release tasks, and image builders in the project.","PERMIGROUP_STORAGE_MANAGEMENT":"Storage","PERMISSION_VOLUME_SNAPSHOTS_VIEW":"Volume Snapshot Viewing","PERMISSION_VOLUME_SNAPSHOTS_VIEW_DESC":"View volume snapshots in the project.","PERMISSION_VOLUME_SNAPSHOTS_MANAGEMENT":"Volume Snapshot Management","PERMISSION_VOLUME_SNAPSHOTS_MANAGEMENT_DESC":"Create, edit, and delete volume snapshots in the project.","PERMISSION_VOLUMES_VIEW":"Persistent Volume Claim Viewing","PERMISSION_VOLUMES_VIEW_DESC":"View persistent volume claims in the project.","PERMISSION_VOLUMES_MANAGEMENT":"Persistent Volume Claim Management","PERMISSION_VOLUMES_MANAGEMENT_DESC":"Create, edit, and delete persistent volume claims in the project.","PERMIGROUP_CONFIGURATION_CENTER":"Configuration","PERMISSION_CONFIGMAPS_VIEW":"Configmap Viewing","PERMISSION_CONFIGMAPS_VIEW_DESC":"View configmaps in the project.","PERMISSION_CONFIGMAPS_MANAGEMENT":"Configmap Management","PERMISSION_CONFIGMAPS_MANAGEMENT_DESC":"Create, edit, and delete configmaps in the project.","PERMISSION_SECRETS_VIEW":"Secret Viewing","PERMISSION_SECRETS_VIEW_DESC":"View secrets in the project.","PERMISSION_SECRETS_MANAGEMENT":"Secret Management","PERMISSION_SECRETS_MANAGEMENT_DESC":"Create, edit, and delete secrets in the project.","PERMISSION_SERVICEACCOUNT_VIEW":"Service Account Viewing","PERMISSION_SERVICEACCOUNT_VIEW_DESC":"View service accounts in the project.","PERMISSION_SERVICEACCOUNT_MANAGEMENT":"Service Account Management","PERMISSION_SERVICEACCOUNT_MANAGEMENT_DESC":"Create, edit, and delete service accounts in the project.","PERMIGROUP_MONITORING_ALERTING":"Monitoring & Alerting","PERMISSION_ALERTING_MESSAGES_VIEW":"Alert Viewing","PERMISSION_ALERTING_MESSAGES_VIEW_DESC":"View alerts in the project.","PERMISSION_ALERTING_MESSAGES_MANAGEMENT":"Alert Management","PERMISSION_ALERTING_MESSAGES_MANAGEMENT_DESC":"Comment on and delete alerts in the project.","PERMISSION_ALERTING_POLICIES_VIEW":"Rule Group Viewing","PERMISSION_ALERTING_POLICIES_VIEW_DESC":"View rule groups in the project.","PERMISSION_ALERTING_POLICIES_MANAGEMENT":"Rule Group Management","PERMISSION_ALERTING_POLICIES_MANAGEMENT_DESC":"Create, edit, and delete rule groups in the project.","PERMISSION_CUSTOM_MONITORING_VIEW":"Custom Monitoring Viewing","PERMISSION_CUSTOM_MONITORING_VIEW_DESC":"View custom monitoring dashboards in the project.","PERMISSION_CUSTOM_MONITORING_MANAGEMENT":"Custom Monitoring Management","PERMISSION_CUSTOM_MONITORING_MANAGEMENT_DESC":"Create, edit, and delete custom monitoring dashboards in the project.","PERMISSION_PROJECT_MEMBERS_VIEW":"Member Viewing","PERMISSION_PROJECT_MEMBERS_VIEW_DESC":"View project members.","PERMISSION_PROJECT_MEMBERS_MANAGEMENT":"Member Management","PERMISSION_PROJECT_MEMBERS_MANAGEMENT_DESC":"Invite, edit, and remove project members.","PERMISSION_PROJECT_ROLES_VIEW":"Role Viewing","PERMISSION_PROJECT_ROLES_VIEW_DESC":"View project roles.","PERMISSION_PROJECT_ROLES_MANAGEMENT":"Role Management","PERMISSION_PROJECT_ROLES_MANAGEMENT_DESC":"Create, edit, and delete project roles except preset roles.","PERMIGROUP_PROJECT_SETTINGS":"Project Settings","PERMISSION_PROJECT_SETTINGS":"Project Settings Management","PERMISSION_PROJECT_SETTINGS_DESC":"Manage project settings including project basic information, external access settings, network policies, resource quotas, and log collection settings.","DELETE_ROLE":"Delete Role","DELETE_ROLE_TIP":"Are you sure you want to delete the role {resource}?","DELETE_ROLE_USER_TIP_PL":"The role is authorized to {count} users. Please delete the users or change the roles of the user first.","DELETE_ROLE_USER_TIP":"The role is authorized to {count} user. Please delete the user or change the role of the user first.","DELETE_ROLE_DEPARTMENT_TIP_PL":"The role is authorized to {count} departments. Please delete the departments or change the roles of the departments first.","DELETE_ROLE_DEPARTMENT_TIP":"The role is authorized to {count} department. Please delete the department or change the role of the department first.","CLONE_VOLUME":"Clone Volume","CLONE":"Clone","CREATE_SNAPSHOT":"Create Snapshot","SNAPSHOT_EMPTY_TIP":"Please select a volume snapshot class.","EXPAND_VOLUME":"Expand Volume","EXPAND":"Expand","PROVISIONER":"Provisioner","AVAILABLE_CAPACITY":"Available capacity","POD_IP_ADDRESS_SCAP":"Pod IP address","TOTAL_CAPACITY":"Total capacity","TECHNICAL_SUPPORT":"Technical Support","LEARN_MORE_CONTACT_US":"For more cloud-native technology empowerment services, please Contact Us.","COMMUNITY_SUPPORT":"Community Support","FORUM":"Forum","TICKET_SUPPORT":"Ticket Support","TICKET_SUPPORT_DESC":"Professional cloud-native development team and container service delivery team with more than 10 years of public and private cloud support experience and in-depth understanding of industries, providing comprehensive technical support including installation, troubleshooting, recovery, and other professional services.","CONTACT_US":"Contact Us","KUBESPHERE_ENTERPRISE_CAPTION":"KubeSphere Enterprise","KUBE_SPHERE_ENTERPRISE_DESC":"KubeSphere Enterprise is an enterprise-grade container platform developed by QingCloud based on the open-source KubeSphere platform. Compared with the open-source edition, KubeSphere Enterprise enhances capabilities for enterprise quantitative operations, large-scale cluster O&M, and security hardening, and extends multiple key features such as microservice governance and app management. The KubeSphere Enterprise Extension Marketplace provides enterprise-grade extensions to meet requirements of various business scenarios, with expert solutions and technical support from QingCloud.","KSE_FEATURE_1":"Empowers enterprise digital transformation towards quantitative operations","KSE_FEATURE_2":"Enhances large-scale federated cluster O&M","KSE_FEATURE_3":"Provides full lifecycle security protection","KSE_PLATFORM_VERSION":"Platform Version: {version}","KUBESPHERE_CLOUD_CAPTION":"KubeSphere Cloud","KSC_FEATURE_BACKUP":"KubeSphere Backup","KSC_FEATURE_BACKUP_APP_DESC":"Application-level data protection","KSC_FEATURE_BACKUP_DATA_DESC":"Assured data consistency","KSC_FEATURE_BACKUP_CLOUD_DESC":"Unified management across clouds","KSC_FEATURE_INSPECTION":"KubeSphere Inspection","KSC_FEATURE_INSPECTION_VULN_DESC":"Comprehensive vulnerability scanning","KSC_FEATURE_INSPECTION_SECURITY_DESC":"System security hardening","KSC_FEATURE_INSPECTION_BEST_DESC":"Best practice guidance","KSC_FEATURE_LIGHTWEIGHT":"KubeSphere Lite","KSC_FEATURE_LIGHTWEIGHT_START_DESC":"Cluster setup in seconds","KSC_FEATURE_LIGHTWEIGHT_KS_DESC":"Out-of-the-box KubeSphere cluster","KSC_FEATURE_LIGHTWEIGHT_TEST_DESC":"Ideal for testing and demonstration","START_NOW":"Start Now","START_REAL_TIME_AUDIT_LOG":"Pause real-time audit logs","STOP_REAL_TIME_AUDIT_LOG":"View real-time audit logs","TIME_S":"{num, plural, =1 {1 second} other {# seconds}}","AUDIT_LOG_COUNT":"Audit Logs","RESOURCE_NAME_AND_TYPE":"Resource Type & Name","VERB":"Verb","STATUS_CODE":"Status Code","SUBRESOURCE":"Subresource","TOTAL_AUDITING_TODAY":"A total of {auditing} audit log entries have been collected today.","NO_AUDIT_LOG_TODAY":"No Audit Log Collected Today","AUDIT_LOG_TREND_LAST_TWELVE_HOURS":"Audit log trend in the last 12 hours","START_TIME_VALUE":"Start Time: {value}","NO_DATA_AUTHORIZED":"No Data Authorized","NO_DATA_AUTHORIZED_DESC":"Please contact an administrator to obtain data authorization.","TIME_RANGE_LAST":"Time range: last {value}","TIME_RANGE_RANGE":"Time range: {startTime} – {endTime}","AUDIT_LOGS_12H":"Audit logs in the last 12 hours","AUDIT_LOG_WORKSPACE_TIP":"Enter a workspace name to search for audit logs.","AUDIT_LOG_PROJECT_TIP":"Enter a project name to search for audit logs.","AUDIT_LOG_RESOURCE_NAME_TIP":"Enter a resource name to search for audit logs.","AUDIT_LOG_RESOURCE_TYPE_TIP":"Enter a resource type to search for audit logs.","AUDIT_LOG_VERB_TIP":"Enter a verb to search for audit logs.","AUDIT_LOG_STATUS_CODE_TIP":"Enter a status code to search for audit logs.","AUDIT_LOG_OPERATOR_TIP":"Enter an operator to search for audit logs.","AUDIT_LOG_SOURCE_IP_ADDRESS_TIP":"Enter a source IP address to search for audit logs.","SEARCH_BY_VERB":"Search by Verb","SEARCH_BY_STATUS_CODE":"Search by Status Code","SEARCH_BY_OPERATOR":"Search by Operator","SEARCH_BY_SOURCE_IP_ADDRESS":"Search by Source IP Address","ENABLE_AUDIT_LOG_COLLECTION_DESC":"You need to enable audit log collection if it is disabled.","KEYWORD":"Keyword","EXACT_QUERY":"Exact Query","FUZZY_QUERY":"Fuzzy Query","TIME_TOPOLOGY":"Time Topology ","SEARCH_RESULTS":"Search Results","DISPLAY":"Display","HIDE":"Hide","STOP_REAL_TIME_CONTAINER_LOG":"Pause real-time container logs","START_REAL_TIME_CONTAINER_LOG":"View real-time container logs","REFRESH_RATE_COLON":"Refresh Rate: ","CONTAINER_LOG_COUNT":"Container Logs","LOG":"Log","CONTAINER_LOG_SOURCE":"Container Log Source","TOTAL_LOGS_TODAY":"A total of {logs} log entries from {containers} containers have been collected today.","WORKLOAD":"Workload","TIME_RANGE_SCAP":"Time range","QUERYING_RULES":"Querying Rules","CONTAINER_LOGS_12H":"Container logs in the last 12 hours","CONTAINER_LOG_KEYWORD_TIP":"Enter a keyword to search for container logs.","CONTAINER_LOG_PROJECT_TIP":"Enter a project name to search for container logs.","CONTAINER_LOG_WORKLOAD_TIP":"Enter a workload name to search for container logs.","CONTAINER_LOG_CONTAINER_TIP":"Enter a container name to search for container logs.","CONTAINER_LOG_POD_TIP":"Enter a pod name to search for container logs.","SEARCH_BY_KEYWORD":"Search by Keyword","SEARCH_BY_PROJECT":"Search by Project","SEARCH_BY_WORKLOAD":"Search by Workload","SEARCH_BY_POD":"Search by Pod","SEARCH_BY_CONTAINER":"Search by Container","TIME_RANGE":"Time Range","DOWNLOAD":"Download","KUBECONFIG_TIP":"\n

    Configuration Method

    \n

    Configure the access information about the current cluster by using kubeconfig file.

    \n ","HIDE_HELP_INFORMATION":"Hide Help Information","KUBECTL_TIP":"\n

    Command Tips

    \n

    You can refer to the following kubestl commands.

    \n

    Customized Output

    \n
      \n
    • View more information about a pod
    • \n
    \n

    kubectl get pod <pod-name> -o wide

    \n
      \n
    • View pod details in YAML format
    • \n
    \n

    kubectl get pod <pod-name> -o yaml

    \n

    Operations

    \n

    Create Resources

    \n
      \n
    • Create a service by using a YAML configuration file
    • \n
    \n

    kubectl create -f my-service.yaml

    \n
      \n
    • Create resources by using all YAML, YML, and JSON files in a directory
    • \n
    \n

    kubectl create -f <directory>

    \n

    View Resources

    \n
      \n
    • View all pods
    • \n
    \n

    kubectl get pods

    \n
      \n
    • View all services
    • \n
    \n

    kubectl get services

    \n

    View Resource Details

    \n
      \n
    • View node details
    • \n
    \n

    kubectl describe nodes <node-name>

    \n
      \n
    • View pod details
    • \n
    \n

    kubectl describe pods <pod-name>

    \n ","OPEN_TERMINAL_DESC":"Ensure that the web socket settings on the proxy server is correct.","TOOLBOX":"Toolbox","TOOLBOX_DESC":"Provides cluster analysis and control tools.","DETAIL_NOT_FOUND_DESC":"No related resources were found. Return to {title}","ANALYSIS_TOOLS":"Analysis Tools","VIEW_KUBE_CONFIG":"View or download the kubeconfig file of the current cluster.","CONTAINER_LOG_SEARCH_DESC":"A multi-dimensional container log search tool for resources.","RESOURCE_EVENT_SEARCH_DESC":"A multi-dimensional resource event search tool for resources.","AUDIT_LOG_DESC":"A multi-dimensional audit log search tool for resources.","RESOURCE_CONSUMPTION_STATISTICS":"Resource Consumption Statistics","METERING_AND_BILLING_DESC":"View resource consumption of clusters and workspaces.","CONTAINER_LOG_SEARCH":"Container Log Search","RESOURCE_EVENT_SEARCH":"Resource Event Search","AUDIT_LOG_SEARCH":"Audit Log Search","CONTROL_TOOL":"Control Tool","TOOLBOX_SHIFT_TIPS":" 👻 Press \"shift+left click\" to open kubectl in a new browser window.","THIRD_PARTY_TOOLS":"Third-Party Tools","METERING_NOT_ENABLED_DESC":"This module is not enabled.","NO_METER_DATA":"No resource consumption data is found.","EXPORT_BILL":"Export consumption records in CSV file format.","TOTAL_COST":"Total Cost ({unit})","PRICE_CONFIG_DESC":"The price information has not been configured.","METER_CPU_USAGE":"CPU Usage","METER_MEMORY_USAGE":"Memory Usage","METER_VOLUME_USAGE":"Volume Usage","METER_NET_RECEIVED_USAGE":"Inbound Traffic Usage","METER_NET_TRANSMITTED_USAGE":"Outbound Traffic Usage","NET_RECEIVED":"Inbound Traffic","NET_TRANSMITTED":"Outbound Traffic","COMPOSING_APP":"Composed app","CLUSTER_NODE_SCAP":"Cluster node","POD_SCAP":"Pod","APP_TEMPLATE_SCAP":"App template","COMPOSING_APP_SCAP":"Composed app","DEPLOYMENT_SCAP":"Deployment","STATEFULSET_SCAP":"Statefulset","DAEMONSET_SCAP":"Daemonset","WORKSPACE_SCAP":"Workspace","CLUSTER_SCAP":"Cluster","PROJECT_SCAP":"Project","SERVICE_SCAP":"Service","HOST_CLUSTER_SCAP":"Host cluster","MEMBER_CLUSTER_SCAP":"Member cluster","CONSUMPTION_HISTORY":"Consumption History","BILLING_CYCLE":"Billing Cycle","CONSUMER_TRENDS":"Cost Trends","AVERAGE_USAGE":"Average Usage","TOTAL_CONSUMPTION":"Total Consumption","TOTAL_CONSUMPTION_Q":"What is total consumption?","TOTAL_CONSUMPTION_A":"Total consumption is the sum of resource usage per sampling point in the current billing cycle.","TIMERANGE_MORE_30DAY_MSG":"If the interval between the end time and the start time is greater than 30 days, the minimum sampling interval should be 1 day.","MAXIMUM_USAGE":"Maximum Usage","MINIMUM_USAGE":"Minimum Usage","RESOURCE_TYPE":"Resource Type","CURRRENT_RESOURCE_CONSUMPTION":"Current Consumption","METER_RESOURCE_DESC":"Resource consumption in 1 h","ADD_CLUSTER_FOR_WORKSPACE":"Please authorize a cluster to this workspace.","RESOURCE_CONSUMPTION_DESC":"Select a category to view the resource consumption information.","CLUSTER_CONSUMPTION":"Cluster Resource Consumption","CLUSTER_CONSUMPTION_DESC":"View the consumption information of cluster resources.","CLUSTER_RESOURCE_CONSUMPTION_DESC":"Consumption of resources such as CPU, memory, and volumes of clusters","CLUSTER_NODE_CONSUMPTION_DESC":"Consumption of resources such as CPU, memory, and volumes of cluster nodes","CLUSTER_POD_CONSUMPTION_DESC":"Consumption of CPU and memory of pods in nodes","CURRENT_RESOURCE_CONSUMPTION":"Current Resource Consumption","VIEW":"View","CONSUMPTION_SINCE_CREATION":"has consumed the following resources since it is created.","PRICE":"Price","WORKSPACE_CONSUMPTION":"Workspace Resource Consumption","WORKSPACE_CONSUMPTION_DESC":"View the consumption information of workspace resources.","WORKSPACE_RESOURCE_CONSUMPTION_DESC":"Consumption of resources such as CPU, memory, and volumes of workspaces","WORKSPACE_PROJECT_CONSUMPTION_DESC":"Consumption of resources such as CPU, memory, and volumes of projects in workspaces","PROJECT_CONSUMPTION_DESC":"Consumption of CPU and memory of apps, services and pods in projects","STOP_REAL_TIME_RESOURCE_EVENT":"Pause real-time resource events","START_REAL_TIME_RESOURCE_EVENT":"View real-time resource events","RESOURCE_EVENT_COUNT":"Resource Events","METADATA":"Metadata","EARLIEST_START_TIME":"Earliest Start Time","LATEST_START_TIME":"Latest Start Time","TOTAL_EVENTS_TODAY":"A total of {events} resource events were collected today.","NO_RESOURCE_EVENTS_TODAY":"No Resource Events Collected Today","RESOURCE_EVENTS_12H":"Resource events in the last 12 hours","RESOURCE_EVENT_WORKSPACE_TIP":"Enter a workspace name to search for container logs.","RESOURCE_EVENT_PROJECT_TIP":"Enter a project name to search for container logs.","RESOURCE_EVENT_RESOURCE_TYPE_TIP":"Enter a resource type to search for container logs.","RESOURCE_EVENT_RESOURCE_NAME_TIP":"Enter a resource name to search for container logs.","RESOURCE_EVENT_MESSAGE_TIP":"Enter a message to search for resource events.","RESOURCE_EVENT_CATEGORY_TIP":"Enter a category name to search for container logs.","RESOURCE_EVENT_REASON_TIP":"Enter a reason to search for container logs.","SEARCH_BY_MESSAGE":"Search by Message","SEARCH_BY_WORKSPACE":"Search by Workspace","SEARCH_BY_RESOURCE_TYPE":"Search by Resource Type","SEARCH_BY_RESOURCE_NAME":"Search by Resource Name","SEARCH_BY_REASON":"Search by Reason","SEARCH_BY_CATEGORY":"Search by Category","EMAIL_DESC":"The email address can be used to log in to the KubeSphere web console.","LANGUAGE":"Language","USER_SETTINGS":"User Settings","CLOSE":"Close","CONTENT_NOT_SAVED_TIPS":"content has been modified but not saved","SAVE_EDIT_HINTS":"please confirm that the modified content is correct, you can save the settings or cancel the settings.","PASSWORD_SETTINGS":"Password Settings","PASSWORD_EMPTY_DESC":"Please set a password.","CURRENT_PASSWORD":"Current Password","ENTER_CURRENT_PASSWORD_TIP":"Please enter the current password.","CONFIRM_PASSWORD":"Confirm Password","PASSWORD_NOT_SAME_DESC":"New Password and Confirm Password must be the same.","ENTER_CURRENT_PASSWORD_DESC":"To change the password, you must first enter the current password.","WORKBENCH":"Workbench","DASHBOARD_TITLE":"Hello {username}","LAST_LOGIN_TIME":"Last login: ","USER_DASHBOARD_EMPTY_TITLE":"You do not belong to any workspace.","USER_DASHBOARD_EMPTY_DESC":"Please contact a workspace administrator to invite you to join a workspace.","LAST_UPDATE_TIME":"Last update time","PLATFORM_VERSION":"Platform version","PLATFORM_RESOURCES":"Platform Resources","APP_TEMPLATE_SCAP_PL":"App templates","RECENT_ACCESS":"Recent Access","MULTI_CLUSTER_DEPLOYMENT":"Multi-cluster Project","WORKBENCH_PROJECT":"Project","WORKBENCH_WORKSPACE":"Workspace","WORKBENCH_DEVOPS":"DevOps project","WORKBENCH_MULTI_CLUSTER_PROJECT":"Multi-cluster project","WORKBENCH_CLUSTER":"Cluster","NOT_FOUND_DESC":"The resource was not found. The system will return to Workbench in {time}s.","MULTI_CLUSTER_PROJECT_TIP":"The project is deployed across multiple clusters.","NO_HISTORY_TITLE":"No Recently Accessed Resource Found","NO_HISTORY_DESC":"You can access platform resources.","ADD_TO_QUICK_ACCESS":"Add to Quick Access","CANCEL_QUICK_ACCESS":"Cancel Quick Access","MESSAGE":"Message","APP_REPOSITORY_PL":"App Repositories","APP_REPO":"App Repositories","HOW_TO_USE_APP_REPO_Q":"How do I use an app repository?","HOW_TO_USE_APP_REPO_A":"You need to go to your project in the workspace. When you deploy a new app, select From App Template and then choose an app repository in the drop-down list to deploy an app in the repository.","APP_REPO_DESC":"An app repository is a repository used to store application templates. You can add an app repository to deploy and manage its applications.","APP_REPOSITORY_EMPTY_DESC":"Please add an app repository.","APP_REPO_STATUS_SUCCESSFUL":"Successful","APP_REPO_STATUS_FAILED":"Failed","APP_REPO_STATUS_SYNCING":"Syncing","ADD_APP_REPO":"Add App Repository","VALIDATE":"Validate","SYNC_INTERVAL":"Sync Interval","SYNC_INTERVAL_DESC":"Set a synchronization interval. The value range is 3 minutes to 24 hours. The default value 0 indicates no synchronization.","SYNC_PERIOD_EMPTY_DESC":"Please set a synchronization interval.","SYNC_INTERVAL_INVALID":"Invalid value. Please enter 0 or a positive integer. ","APP_REPO_URL_DESC":"The URL needs to be validated before you add or edit an app repository.","SYNC_INTERVAL_TIP":"The value range is 3 minutes to 24 hours. Please enter a valid value.","SECONDS":"Seconds","MINUTES":"Minutes","HOURS":"Hours","UNRECOGNIZED_URL":"Unrecognized URL.","INVALID_CREDENTIAL_FORMAT":"Invalid credential format.","MISSING_ACCESS_KEY_ID":"Missing access key ID.","MISSING_SECRET_ACCESS_KEY":"Missing secret access key.","S_THREE_ACCESS_DENIED":"S3 access denied.","INVALID_URL_FORMAT":"Invalid URL format.","INVALID_HTTP_SCHEME":"Invalid HTTP scheme.","HTTP_ACCESS_DENIED":"HTTP access denied.","INVALID_HTTPS_SCHEME":"Invalid HTTPS scheme.","INVALID_TYPE":"Invalid type.","INVALID_PROVIDERS":"Invalid providers.","INVALID_REPO_URL":"Invalid repository URL.","INVALID_S_THREE_SCHEME":"Invalid S3 scheme.","ACCESS_KEY_ID":"Access Key ID","SECRET_ACCESS_KEY":"Secret Access Key","EDIT_APP_REPO":"Edit App Repository","INVALID_URL_DESC":"Invalid URL.","VALID_URL_DESC":"Valid URL.","APP_REPOSITORY":"App Repository","APP_REPOSITORY_LOW":"app repository","MODIFY_SUCCESSFUL":"Modified successfully.","SERVICE_PROVIDER_WEBSITE_DESC":"Official website address of the service provider.","WRONG_ADDRESS_TIP":"Incorrect address format. Please enter a correct address.","APP_NAME_DESC":"The name can contain any characters and the maximum length is 20 characters.","APP_DESCRIPTION_DESC":"The description can contain any characters and the maximum length is 120 characters.","APP_ICON_FORMAT":"Format: PNG or JPG","APP_ICON_SIZE":"Size: 96 x 96 pixels","CHOOSE_APP_CATEGORY_DESC":"Select a category for the app.","EDIT_APP_DESC":"Edit the basic information of the app template.","ICON":"Icon","SERVICE_PROVIDER_WEBSITE_TCAP":"Service Provider Website","START_EDITING":"Start editing...","SCREENSHOTS_COLON":"Screenshots: ","DELETE_ALL":"Delete All","ADD_VERSION_SUCCESSFUL":"The version was added successfully.","UPLOAD_PACKAGE_OK_NOTE":"The version already exists. Please upload another version.","UPLOAD_NEW_VERSION":"Upload Version","UPLOAD_NEW_VERSION_DESC":"Upload a new version of the app template.","DELETE_APP_TEMPLATE_DESC":"Enter the app template name {resource} to confirm that you understand the risks of this operation.","DELETE_APP_TEMPLATE_VERSIONS_DESC":"Enter the app template name {resource} to confirm that you understand the risks of this operation. Before deleting the app template, you must delete all versions of the template.","APP_TEMPLATE_LOW":"app template","APP_STATUS_SUBMITTED":"Submitted","APP_STATUS_NOT_SUBMITTED":"Not submitted","VERSION_INFO":"Version Information","INSTALL":"Install","SUBMIT_FOR_REVIEW":"Submit for Review","DOWNLOAD_SUCCESSFUL":"Downloaded successfully.","VERSION_DELETE_TIP":"Are you sure you want to delete the version {name}?","VERSION_SUBMIT_TIP":"Are you sure you want to submit the version {name} for release?","VERSION_CANCEL_TIP":"Are you sure you want to cancel the submission of the version {name}?","VERSION_RELEASE_TIP":"Users can view and deploy the version {name} in the App Store after it is released. Are you sure you want to release it?","VERSION_SUSPEND_TIP":"The version {name} will not be displayed in the App Store after it is suspended. Are you sure you want to suspend it?","VERSION_RECOVER_TIP":"The version {name} will be displayed in the App Store after it is recovered. Are you sure you want to recover it?","UPDATE_TIME_SCAP":"Update time","VIEW_IN_STORE":"View in Store","UPLOAD_AGAIN_TIP":"An error occurred. Please try again.","ENTER_VERSION_NUMBER_TIP":"Please enter a version number.","SUBMIT_REVIEW_DESC":"Submit the app template for review before releasing it to the App Store.","APP_LEARN_MORE":"Learn More","INVALID_VERSION_TIP":"Please enter a correct version number.","TEST_STEPS":"Test Steps","VERSION_SUBMIT_TEST_STEPS":"1. All dependent charts have been submitted.
    2. The static analysis has been passed (helm lint).
    3. The app can be started using default values (helm install). All pods are in running state and all services have at least one endpoint.
    4. The images used have no security vulnerabilities.
    5. Upgrade is supported.
    6. Custom application configuration is supported.
    7. Do not use the alpha features of Kubernetes.
    8. Detailed documentation is provided, including app introduction, prereauisites, and custom parameter configurations.
    ","VERSION_SUBMIT_NOTE":"Please make sure your app has met the following requirements before submission:","UPDATE_LOG_DESC":"Enter detailed information about the app updates.","SUBMIT_SUCCESSFUL":"Submitted successfully.","CANCEL_SUCCESSFUL":"Canceled successfully.","APP_INSTANCES":"App Instances","APP_TEMPLATE_PL":"App Templates","APPS_MANAGEMENT":"App Management","UPLOAD_TEMPLATE":"Upload Template","APP_TEMPLATE_DESC":"KubeSphere provides full lifecycle management for apps. You can upload or create new app templates and test them quickly. In addition, you can publish your apps to the App Store so that other users can deploy with one click.","DEVELOP_APP_DESC":"You can upload Helm charts or use the resource orchestration tool provided by KubeSphere to develop app templates.","DEVELOP_APP_TITLE":"How do I develop app templates?","HOW_PUBLISH_APP_TITLE":"How do I release apps to the App Store?","HOW_PUBLISH_APP_DESC":"You can upload Helm charts as app templates to workspaces. The apps will be released to the App Store after they are approved.","APP_STATUS_ACTIVE":"Released","APP_STATUS_DRAFT":"Unreleased","APP_STATUS_SUSPENDING":"Suspending","APP_TEMPLATE_EMPTY_DESC":"Please create an app template.","LATEST_VERSION":"Latest Version","CREATE_APP_TEMPLATE":"Create App Template","CREATE_APP_TEMPLATE_DESC":"The lightweight, portable, and self-contained software packaging technology enables applications to run almost anywhere in the same way.","APP_CREATE_GUIDE":"See the development guide Helm Specifications.","UPLOAD":"Upload","UPLOAD_HELM_TITLE":"Upload Helm Chart","UPLOAD_HELM_CHART_DESC":"Upload an existing Helm chart.","HELM_CHART_FORMAT_DESC":"Supports tar.gz and tgz formats.","UPLOAD_ICON":"Upload Icon","UPLOAD_SUCCESSFUL":"Uploaded successfully.","UPLOADING":"Uploading","FILE_MAX_SIZE_ICON":"The maximum size of the icon is 96 x 96 pixels.","FILE_MAX_SCREENSHOTS":"The snapshot size cannot exceed 2 MB.","APP_ICON_NOTE":"Upload a JPG or PNG image of 96 x 96 pixels.","MISS_FILE_NOTE":"The file {file} was not found.","LICENSE_FILE_DESC":"License agreement in text format.","CHART_FILE_DESC":"YAML file that describes basic information about the chart such as the name and version.","README_FILE_DESC":"App introduction.","REQUIREMENTS_FILE_DESC":"File that describes dependencies of the chart.","VALUES_FILE_DESC":"Default configuration file of the chart.","CHARTS_FILE_DESC":"Directory that contains dependencies of the chart.","TEMPLATES_FILE_DESC":"Directory that contains deployment template files.","NOTES_FILE_DESC":"User instructions.","INCORRECT_FILE":"Incorrect file? ","TRY_AGAIN":"Try Again","FILE_MAX_ICON_DESC":"The icon size should not exceed 20 KB. Please try again.","HOMEPAGE":"Homepage","OPTIONAL":"Optional","DEVOPS_TIP_GITOPS_Q":"How do I get started with DevOps?","DEVOPS_TIP_GITOPS_A":"You can start using DevOps by creating a pipeline that is associated with the code repository and deploying steps with Kubernetes.","DEVOPS_TIP_TYPE_Q":"Which code repositories are supported by pipelines?","DEVOPS_TIP_TYPE_A":"Pipelines support code repositories of Git, GitHub, Gitlab, SVN, and Bitbucket.","DEVOPS_PROJECT_EMPTY_DESC":"Please create a DevOps project.","CREATE_DEVOPS_PROJECT":"Create DevOps Project","DEVOPS_PROJECT_CREATE_DESC":"DevOps is a separate namespace that defines a set of pipelines. Users can group their pipelines themselves (for example, project type and organization type).","DEVOPS_BASEINFO_DESC":"Please set the basic information of the DevOps project","PATTERN_NAME_INVALID_TIP":"Invalid name. The name can contain only lowercase letters, numbers, and hyphens (-).","NO_DEVOPS_INSTALL":"DevOps not installed","DEVOPS_ADMIN_DESC":"Select a project member as the project administrator.","DELETE_MULTIPLE_DEVOPS_PROJECTS":"Delete Multiple DevOps Projects","DELETE_DEVOPS_PROJECT":"Delete DevOps Project","DELETE_DEVOPS_PROJECT_TIP":"Enter the DevOps project name {resource} to confirm that you understand the risks of this operation.","DELETE_DEVOPS_PROJECT_TIP_PL":"Enter the DevOps project names {resource} to confirm that you understand the risks of this operation.","HOW_TO_APPLY_MORE_CLUSTER_Q":"How do I apply for more clusters for the workspace?","HOW_TO_APPLY_MORE_CLUSTER_A":"Contact the platform or cluster administrator to apply for more clusters.","OVERVIEW":"Overview","WORKSPACE_OVERVIEW_DESC":"View the resource status of the workspace.","ROLE_PL":"Roles","PHYSICAL_RESOURCES":"Physical Resources","CRONJOB":"Cronjob","CLUSTER_VALUE":"Cluster: {value}","SORT_BY_WORKSPACE_MEMORY_USAGE":"Sort by memory usage","SORT_BY_WORKSPACE_MEMORY_USAGE_WO_CACHE":"Sort by memory usage","SORT_BY_WORKSPACE_POD_COUNT":"Sort by pod quota usage (%)","SORT_BY_WORKSPACE_CPU_USAGE":"Sort by CPU usage","SORT_BY_WORKSPACE_NET_BYTES_TRANSMITTED":"Sort by outbound traffic","SORT_BY_WORKSPACE_NET_BYTES_RECEIVED":"Sort by inbound traffic","PROJECT_EMPTY_DESC":"Please create a project.","CREATE_PROJECT":"Create Project","CREATE_MULTI_CLUSTER_PROJECT":"Create Multi-cluster Project","CREATE_MULTI_CLUSTER_PROJECT_DESC":"A multi-cluster project runs across different clusters, which helps you to build a container environment for rapid iteration of applications and achieve high availability.","MULTI_CLUSTER_PROJECT_PL":"Multi-cluster Projects","FED_HOST_NAMESPACE_TIP":"Do not change resources in this project because it is related to a multi-cluster project.","MULTI_CLUSTER_PROJECT":"Multi-cluster Project","PROJECT_NAME_EXISTS_IN_HOST":"The project name already exists in the host cluster. Please enter another project name.","SELECT_CLUSTER_DESC":"Select the cluster in which the project is to be created.","CLUSTER_EMPTY_DESC":"Please select a cluster.","PROJECT_NAME_EXISTS_IN_CLUSTER":"The project name already exists in the {cluster} cluster. Please enter another project name.","PROJECT_CLUSTER_SETTINGS_DESC":"Select at least one cluster for the project. If you select multiple clusters, a project with the same name will be created in the host cluster.","FEDPROJECT_CANNOT_ADD_CLUSTER":"No cluster is available.","WORKSPACE_SETTINGS":"Workspace Settings","WORKSPACE_BASIC_INFO_DESC":"Basic information provides the overview of the workspace. You can view the basic information of the workspace.","WORKSPACE_BASE_INFO_Q1":"How do I apply for more clusters for the workspace?","WORKSPACE_BASE_INFO_A1":"Contact the platform or cluster administrator to apply for more clusters.","WORKSPACE_INFO":"Workspace Information","WORKSPACE_MEMBER_TCAP":"Workspace member","WORKSPACE_MEMBER_TCAP_PL":"Workspace members","WS_MEMBER_SCAP":"Workspace member","WS_MEMBER_SCAP_PL":"Workspace members","DEVOPS_PROJECT_TCAP":"DevOps project","DEVOPS_PROJECT_TCAP_PL":"DevOps projects","DEVOPS_PROJECT_LOW":"DevOps project","DEVOPS_PROJECT_LOW_PL":"DevOps projects","PROJECTS":"Projects","ON":"On","OFF":"Off","WS_NETWORK_ISOLATION":"Workspace network isolation","NETWORK_POLICY_UNINSATLLED_DESC":"The network policy component is not installed in this cluster.","DELETE_DESC":"Are you sure you want to delete the resource? The resource cannot be restored after it is deleted.","DELETE_WORKSPACE_PROJECTS_DESC":"Delete projects in the workspace","DELETE_WORKSPACE_DESC":"The workspace cannot be restored after it is deleted and all resources in the workspace will be removed.","DELETE_WORKSPACE_TIP":"Are you sure you want to delete the workspace {resource}? The workspace cannot be restored after it is deleted and all resources in the workspace will be removed.","DEPARTMENT_PL":"Departments","DEPARTMENT_DESC":"A department in a workspace is a logical unit used for permission control. You can set a workspace role, multiple project roles, and multiple DevOps project roles in a department, and assign users to the department to control user permissions in batches.","NOT_ASSIGNED_TCAP":"Not Assigned","ADD_MEMBER_TIP_SI":"Are you sure you want to assign the user to the department {group}?","ADD_MEMBER_TIP_PL":"Are you sure you want to assign the users to the department {group}?","ASSIGNED":"Assigned","DEPARTMENT":"Department","SET_DEPARTMENTS":"Set Departments","DEPARTMENT_EMPTY_DESC":"No Department Available","NO_DEPARTMENT_TIP":"No department available. Please create a department on the right.","CREATE_DEPARTMENT":"Create Department","DELETE_GROUP_TIP":"Are you sure you want to delete the department {group_name}? The associated roles will be unbound from the users.","DELETE_PARENT_GROUP_TIP":"Are you sure you want to delete the department {group_name}? Its subdepartments will also be deleted and the associated roles will be unbound from the users.","PROJECT_VALUE":"Project: {value}","PROJECT_ROLE_VALUE":"Project role: {value}","DEVOPS_VALUE":"DevOps project: {value}","DEVOPS_PROJECT_ROLES_VALUE":"DevOps project role: {value}","WORKSPACE_ROLE":"Workspace Role","GROUP_WORKSPACE_ROLE_DESC":"The workspace role will be assigned to all members in the department.","MEMBER_CLUSTER_UPGRADE_TIP":"Member clusters with versions earlier than {version} do not support this function. Please upgrade the member clusters to {version} or later.","PROJECT_ROLE":"Project Role","SELECT_ROLE_TIP":"Please select a role.","ADD_PROJECT":"Add Project","CLUSTER_UPGRADE_REQUIRED":"The current KubeSphere version does not support this feature. Please upgrade KubeSphere to {version} or later.","DEVOPS_PROJECT_ROLE":"DevOps Project Role","ADD_DEVOPS_PROJECT":"Add DevOps Project","DEVOPS_PROJECTS":"DevOps Projects","WORKSPACE_MEMBERS":"Workspace Members","WORKSPACE_MEMBER_PL":"Workspace Members","WORKSPACE_MEMBER_DESC":"Workspace members can view or manage workspace resources. You can manage members and control their permissions in the workspace.","WORKSPACE_MEMBER_EMPTY_DESC":"Please invite a user to the workspace.","ROLE":"Role","REMOVE_MEMBER":"Remove Member","REMOVE_MULTIPLE_MEMBERS":"Remove Multiple Members","REMOVE_MULTIPLE_MEMBERS_TIP":"Enter the usernames {resource} to confirm that you understand the risks of this operation.","INVITE_WORKSPACE_MEMBER_DESC":"Invite users to the workspace.","INVITE_MEMBER":"Invite Member","INVITE":"Invite","INVITED_SUCCESSFULLY":"Invited successfully.","REMOVE_MEMBER_TIP":"Enter the username {resource} to confirm that you understand the risks of this operation.","WORKSPACE_QUOTA_PL":"Workspace Quotas","WORKSPACE_QUOTAS_DESC":"Workspace quotas are used to control the total resource usage of all projects and DevOps projects in a workspace.","RESOURCE_QUOTA_PL":"Resource Quotas","USED_PERCENT":"Used: {percent}%","RESOURCE_LIMIT":"Resource limit","EDIT_WORKSPACE_QUOTAS":"Edit Workspace Quotas","CPU_REQUEST":"CPU Request","CPU_LIMIT":"CPU Limit","MEMORY_REQUEST":"Memory Request","MEMORY_LIMIT":"Memory Limit","WORKSPACE_ROLE_PL":"Workspace Roles","WORKSPACE_ROLE_DESC":"The role of a workspace member determines the permissions of the member in the workspace.","WORKSPACE_ROLE_EMPTY_DESC":"Please create a workspace role.","ROLE_WORKSPACE_ADMIN":"Manage all resources in the workspace.","ROLE_WORKSPACE_REGULAR":"View workspace settings.","ROLE_WORKSPACE_VIEWER":"View all resources in the workspace.","ROLE_WORKSPACE_SELF_PROVISIONER":"View workspace settings, manage app templates, and create projects and DevOps projects.","CREATE_WORKSPACE_ROLE":"Create Workspace Role","WORKSPACE_ROLE_NAME_TIP":"The role name is used as the unique identifier of the role.","NEXT_STEP":"Next Step","NEXT_STEP_DESC":"You need to further edit permissions of the role.","PERMIGROUP_PROJECTS_MANAGEMENT":"Projects","PERMISSION_PROJECTS_VIEW":"Project Viewing","PERMISSION_PROJECTS_VIEW_DESC":"View all projects in the workspace.","PERMISSION_PROJECTS_MANAGEMENT":"Project Management","PERMISSION_PROJECTS_MANAGEMENT_DESC":"Create, edit, and delete projects in the workspace.","PERMISSION_PROJECTS_CREATE":"Project Creation","PERMISSION_PROJECTS_CREATE_DESC":"Create projects and become an administrator of the created projects.","PERMIGROUP_DEVOPS_MANAGEMENT":"DevOps Projects","PERMISSION_DEVOPS_VIEW":"DevOps Project Viewing","PERMISSION_DEVOPS_VIEW_DESC":"View all DevOps projects in the workspace.","PERMISSION_DEVOPS_MANAGEMENT":"DevOps Project Management","PERMISSION_DEVOPS_MANAGEMENT_DESC":"Create, edit, and delete DevOps projects in the workspace.","PERMISSION_DEVOPS_CREATE":"DevOps Project Creation","PERMISSION_DEVOPS_CREATE_DESC":"Create DevOps projects and become an administrator of the created DevOps projects.","PERMISSION_APPS_MANAGEMENT":"App Management","PERMISSION_WORKSPACE_APP_REPOS_VIEW":"App Repository Viewing","PERMISSION_WORKSPACE_APP_REPOS_VIEW_DESC":"View app repositories in the workspace.","PERMISSION_WORKSPACE_APP_REPOS_MANAGEMENT":"App Repository Management","PERMISSION_WORKSPACE_APP_REPOS_MANAGEMENT_DESC":"Create, edit, and delete app repositories in the workspace.","PERMISSION_WORKSPACE_APP_TEMPLATES_VIEW":"App Template Viewing","PERMISSION_WORKSPACE_APP_TEMPLATES_VIEW_DESC":"View app templates in the workspace.","PERMISSION_WORKSPACE_APP_TEMPLATES_MANAGEMENT":"App Template Management","PERMISSION_WORKSPACE_APP_TEMPLATES_MANAGEMENT_DESC":"Upload, edit, and delete workspace app templates, and release and delete apps in the platform App Store.","PERMISSION_WORKSPACE_GROUPS_VIEW":"Department Viewing","PERMISSION_WORKSPACE_GROUPS_VIEW_DESC":"View the structure and members of workspace departments.","PERMISSION_WORKSPACE_GROUPS_MANAGEMENT":"Department Management","PERMISSION_WORKSPACE_GROUPS_MANAGEMENT_DESC":"Manage the structure, members, and permissions of workspace departments.","PERMISSION_WORKSPACE_MEMBERS_VIEW":"Member Viewing","PERMISSION_WORKSPACE_MEMBERS_VIEW_DESC":"View workspace members.","PERMISSION_WORKSPACE_MEMBERS_MANAGEMENT":"Member Management","PERMISSION_WORKSPACE_MEMBERS_MANAGEMENT_DESC":"Invite, edit, and delete workspace members.","PERMISSION_WORKSPACE_ROLES_VIEW":"Role Viewing","PERMISSION_WORKSPACE_ROLES_VIEW_DESC":"View workspace roles.","PERMISSION_WORKSPACE_ROLES_MANAGEMENT":"Role Management","PERMISSION_WORKSPACE_ROLES_MANAGEMENT_DESC":"Create, edit, and delete workspace roles except system preset roles.","PERMIGROUP_WORKSPACE_SETTINGS":"Workspace Settings","PERMISSION_WORKSPACE_SETTINGS_VIEW":"Workspace Settings Viewing","PERMISSION_WORKSPACE_SETTINGS_VIEW_DESC":"View workspace settings.","PERMISSION_WORKSPACE_SETTINGS_MANAGEMENT":"Workspace Settings Management","PERMISSION_WORKSPACE_SETTINGS_MANAGEMENT_DESC":"Manage workspace settings and edit workspace information and network policies.","NODE_GROUP_PL":"Node Group","EDGEWIZE_COMPUTING":"EdgeWize Computing","EDGEWIZE_COMPUTING_DESC":"Unified management and monitoring of edge multi-clusters and their basic resources, and resource usage.","EDGEWIZE_MANAGEMENT":"Edge Cluster Management","EDGEWIZE_MANAGEMENT_DESC":"Unified management and monitoring of edge multi-clusters and their basic resources, and resource usage.","EDGEWIZE_MONITORING":"Edge Cluster Monitoring","HOSTED_IN":"Hosted In","HOSTED_IN_DESC":"Please select a KubeSphere cluster to manage this edge cluster.","HOSTED_IN_EMPTY":"","CREATE_EDGEWIZE_CLUSTER":"Create Edge Cluster","VIEW_KUBECONFIG":"View KubeConfig","DELETE_CLUSTER":"Delete cluster","REMOVE_EDGEWIZE_TIP_A":"After the edge cluster is removed, resources in the edge cluster will not be cleared automatically.","REMOVE_EDGEWIZE_TIP_B":"After the edge cluster is removed, multi-cluster configuration data in the edge cluster will not be cleared automatically. Uninstalling KubeSphere or deleting related resources may cause user data loss. ","DELETE_EDGE_CLUSTER_NOTIFICATION_CONFIGURAITON":"Delete all notification configuration data in the edge cluster","EDGE_APPLICATION_WORKLOAD_PL":"Edge Application loads","EDGE_MONITORING_AND_ALERTING":"Edge Monitoring & Alerting","EDGE_CLUSTER":"Edge Cluster","EDGE_CLUSTER_PL":"Edge Cluster","EDGE_CLUSTER_DESC":"","ADVERTISE_ADDRESS":"Advertise Address","ADVERTISE_ADDRESS_DESC":"Set the public address of the KubeEdge component of the edge cluster, which supports IP addresses or domain names.","RESOURCE_USAGE_DESC":"You can view the ranking of cluster node usage and project usage.","NODE_USAGE_RANKING":"Node Usage Ranking","PROJECTS_USAGE_RANKING":"Projects Usage Ranking","SORT_BY_EDGE_NODE_CPU_USAGE":"Sort by CPU usage","SORT_BY_EDGE_NODE_CPU_UTILISATION":"Sort by CPU usage (%)","SORT_BY_EDGE_NODE_MEMORY_UTILISATION":"Sort by memory usage (%)","SORT_BY_EDGE_NODE_DISK_SIZE_UTILISATION":"Sort by disk usage (%)","SORT_BY_EDGE_NODE_POD_UTILISATION":"Ordenar mediante el uso de pod","SORT_BY_EDGE_NODE_DISK_INODE_UTILISATION":"Ordenar por inodo Utilización","SORT_BY_EDGE_NODE_LOAD1":"Sort by 1-minute CPU load average","SORT_BY_EDGE_NODE_MEMORY_USAGE_WO_CACHE":"Sort by memory usage","SORT_BY_EDGE_NODE_LOAD5":"Sort by 5-minute CPU load average","SORT_BY_EDGE_NODE_LOAD15":"Sort by 15-minute CPU load average","SORT_BY_EDGE_NAMESPACE_CPU_USED_LIMITS_UTILISATION":"Sort by allocated CPU limit (%)","SORT_BY_EDGE_NAMESPACE_CPU_USED_REQUESTS_UTILISATION":"Sort by allocated CPU request (%)","SORT_BY_EDGE_NAMESPACE_MEMORY_USAGE_WO_CACHE":"Ordenar por uso de memoria","SORT_BY_EDGE_NAMESPACE_MEMORY_USED_LIMITS_UTILISATION":"Sort by allocated memory limit (%)","SORT_BY_EDGE_NAMESPACE_MEMORY_USED_REQUESTS_UTILISATION":"Sort by allocated memory request (%)","SORT_BY_EDGE_NAMESPACE_POD_COUNT":"Sort by pod quota usage (%)","SORT_BY_EDGE_NAMESPACE_NET_BYTES_RECEIVED":"Sort by inbound traffic","SORT_BY_EDGE_NAMESPACE_NET_BYTES_TRANSMITTED":"Sort by outbound traffic","SORT_BY_EDGE_NAMESPACE_PVC_BYTES_USED":"Sort by persistent volume usage","SORT_BY_EDGE_NAMESPACE_PVC_COUNT":"Sort by number of pods","SORT_BY_EDGE_EDGE_NAMESPACE_CPU_USAGE":"Sort by CPU usage","CONTAINER_RUNTIME_EMPTY_DESC":"Please select a container runtime","IMAGE_REPOSITORY_ADDRESS":"Image repository address","IMAGE_REPOSITORY_ADDRESS_EMPTY_DESC":"Please enter the address of image repository","NODE_ACCESS_PL":"Node access","NODE_ADMINISTRATION_PL":"Node administration","abortPipeline":"abortPipeline","Absolute duration":"Absolute duration","Add another credential":"Add another credential","Add conditions":"Add conditions","Add nesting conditions":"Add nesting conditions","Add nesting steps":"Add nesting steps","Add Parallel Stage":"Add Parallel Stage","Add Step":"Add Step","archiveArtifacts":"archiveArtifacts","Are you sure to close this pipeline Editor ?":"Are you sure to close this pipeline Editor ?","artifacts":"artifacts","Authentication Token":"Authentication Token","Automatically generated by GitHub":"Automatically generated by GitHub","bcc":"bcc","BEHAVIORAL_STRATEGY":"Behavioral Strategy","blocker":"blocker","BLOCKER":"Blocker","NOTICE":"Notice","Branches":"Branches","branch success":"branch success","@somebody to help review":"@somebody to help review","Send messages by email":"Send messages by email","Send messages in the build":"Send messages in the build","Change Current Directory":"Change Current Directory","Chinese is not allowed in the pipeline configuration":"Chinese is not allowed in the pipeline configuration","Clean when aborted":"Clean when aborted","Clean Workspace":"Clean Workspace","Code Quality Check":"Code Quality Check","COMMIT_ID":"Commit ID","Config File Path":"Config File Path","config name":"config name","configs":"configs","Configuration error":"Configuration error","container":"container","Continue":"Continue","credential Id":"credential Id","Credential Id":"Credential Id","credentialsId":"credentialsId","critical":"critical","Current branch name must match the input value":"Current branch name must match the input value","defaultValue -1 means not to discard":"defaultValue -1 means not to discard","Delete all resources of the deployment file":"Delete all resources of the deployment file","Deploy resources to the Kubernetes cluster":"Deploy resources to the Kubernetes cluster","Didn't pass":"Didn't pass","dir":"dir","Discard":"Discard","Discover branches from repository":"Discover branches from repository","DISCOVER_PR_FROM_FORKS":"Discover PRs from Forks","DISCOVER_PR_FROM_ORIGIN":"Discover PRs from Origin","Discover pull requests from forks":"Discover pull requests from forks","Discover pull requests from origin":"Discover pull requests from origin","Docker Container Registry Credentials":"Docker Container Registry Credentials","Docker Registry URL":"Docker Registry URL","dockerCredentials":"dockerCredentials","Drag and drop tasks to sort":"Drag and drop tasks to sort","Duration":"Duration","echo":"echo","Edit Config":"Edit Config","Edit Credential":"Edit Credential","Enable Variable Substitution in Config":"Enable Variable Substitution in Config","enableConfigSubstitution":"enableConfigSubstitution","Enter an expression":"Enter an expression","Environment name":"Environment name","Executes the code inside the block with a determined time out limit.":"Executes the code inside the block with a determined time out limit.","expression":"expression","Failure":"Failure","For accessing GitHub":"For accessing GitHub","get token":"get token","info":"info","input":"input","Inspection results do not affect subsequent tasks":"Inspection results do not affect subsequent tasks","instance failed to match at least one schema":"instance failed to match at least one schema","Internal nested conditions only need to satisfy one":"Internal nested conditions only need to satisfy one","Internal nesting conditions must be matched":"Internal nesting conditions must be matched","Jenkinsfile syntax error, message":"Jenkinsfile syntax error, message","key File Variable":"key File Variable","keyFileVariable":"keyFileVariable","Kubeconfig Variable":"Kubeconfig Variable","Kubernetes Namespace for Secret":"Kubernetes Namespace for Secret","Kubernetes Secrets":"Kubernetes Secrets","Line":"Line","Load credentials into environment variables":"Load credentials into environment variables","Load the sonarqube configuration provided by Jenkins into the Pipeline.":"Load the sonarqube configuration provided by Jenkins into the Pipeline.","mail":"mail","major":"major","minor":"minor","Missing one or more required properties: 'name'":"Missing one or more required properties: 'name'","Negative prefix":"Negative prefix","NO_BRANCH_FOUND_TIP":"No branch is found.","No need":"No need","Normal":"Normal","Not Build":"Not Build","Not fail build":"Not fail build","not support edit nested stage":"not support edit nested stage","passphrase Variable":"passphrase Variable","passphraseVariable":"passphraseVariable","Password Variable":"Password Variable","passwordVariable":"passwordVariable","PIPELINE_LOW":"pipeline","Pipeline Configuration":"Pipeline Configuration","Pipeline List":"Pipeline List","pipeline syntax error":"pipeline syntax error","Please add at least one step.":"Please add at least one step.","Please input images name":"Please input images name","Please input the credential name.":"Please input the credential name.","Press enter for the next":"Press enter for the next","Print message":"Print message","Pull code by Git":"Pull code by Git","Pull code by SVN":"Pull code by SVN","Queue":"Queue","Recipient":"Recipient","Registry Credentials":"Registry Credentials","remote":"remote","Run Pipeline":"Run Pipeline","Save Artifact":"Save Artifact","Repo Scanned Successfully":"Repo Scanned Successfully","WEBHOOK_PUSH":"Webhook Push","secretName":"secretName","secretNamespace":"secretNamespace","SELECT_THIS_REPOSITORY":"Select This Repository","Sender":"Sender","sh":"sh","Shell commands can be executed in the container":"Shell commands can be executed in the container","Show Advanced Settings":"Show Advanced Settings","show yaml editor":"show yaml editor","sonar is the default config name.":"sonar is the default config name.","Sorry, you don't have the permission to do this.":"Sorry, you don't have the permission to do this.","Specify a container to add nested tasks to execute inside the container":"Specify a container to add nested tasks to execute inside the container","Start the follow-up task after the inspection":"Start the follow-up task after the inspection","Started By":"Started By","Subject":"Subject","submitter":"submitter","submitterParameter":"submitterParameter","Text Variable":"Text Variable","The conditions required to implement the current phase (optional).":"The conditions required to implement the current phase (optional).","The environment variable entered before running the pipeline is match the current value.":"The environment variable entered before running the pipeline is match the current value.","The label on which to run the Pipeline or individual stage":"The label on which to run the Pipeline or individual stage","This name has been used.":"This name has been used.","Time Used":"Time Used","Timeout":"Timeout","timeout":"timeout","Timeout after no activity in logs for this block":"Timeout after no activity in logs for this block","timer":"timer","TRIGGER_REMOTE_BUILD":"Trigger a remote build (for example, using a script)","Unnamed":"Unnamed","Use the following URL to remotely triggerworkbench the build":"Use the following URL to remotely triggerworkbench the build","User types that can trigger builds":"User types that can trigger builds","username or group name, multiple values ​​used, separated":"username or group name, multiple values ​​used, separated","Username Variable":"Username Variable","usernameVariable":"usernameVariable","waitForQualityGate":"waitForQualityGate","Webhook":"Webhook","withCredentials":"withCredentials","withSonarQubeEnv":"withSonarQubeEnv","Wrong Token":"Wrong Token","You can execute shell commands or windows batch commands in the build.":"You can execute shell commands or windows batch commands in the build.","PIPELINE_DESC":"A pipeline is an extensible set of tools that can be combined\n to achieve continuous integration and continuous delivery.\n You can create and manage pipelines on this page.","username_password":"Username and password","login_Plateform":"Login platform","CREDENTIALS_DESC":"Credentials are objects that contain some sensitive data,\n such as username and password, SSH key and Token.\n They are used to provide authentication for pulling code,\n pushing/pulling images, executing SSH scripts, etc. when a pipeline is running.","AUTHENTICATION_TOKEN_TIP":"Enable this option if you need to\n trigger a build by accessing a predefined URL.\n A typical use of this feature is to trigger through the source code\n management system's hook script.\n You need to provide an authorization token in the form of a string so that\n only the person with the authorization token can trigger the remote build.","CRON_TIP":"This field follows the cron syntax (slightly different).\n Specifically, each line contains 5 fields separated by tabs or spaces.\n minutes: the first few minutes of an hour (0-59)\n hours: the first few hours of the day (0-23)\n the days of the month: the first few days of a month (1-31 )\n Month: The first few days of the first few days (0-12), the first few days of the week (0-12),\n 0 and 7 are Sundays. ","PIPELINES_BASEINFO_DESC":"Please enter the basic information of the pipeline.","PIPELINE_ADVANCE_SETTINGS_DESC":"Configure a complex behavior policy for the pipeline (Optional).","CREDENTIALS_CREATE_DESC":"Create credentials for DevOps projects","CHECKOUT_DESC":"Pull code; often used to pull non-git code, such as svn.","PRIVATE_IMAGE_DESC":"To deploy from a private image repository,\n you need to create a mirrored repository and then pull the image. ","AUTHENTICATION_TOKEN_DESC":"Use the following URL to remotely trigger the build:\n JENKINS_URL / job / JOB_NAME / build? Token =TOKEN_NAME or /buildWithParameters?\n Token = TOKEN_NAME You can choose to append &cause=reason to provide the text that\n will be included in the build reason for the record. ","PIPELINE_NO_CONFIG":"The relevant configuration file was not found in the current pipeline","EDIT_CREDENTIAL_DESC":"The following form will not display the original credential information. The original information will be overwritten by any new input.","pipeline_conditions":"Conditions","CODE_SMELL":"Code Smell","BUG":"Bug","VULNERABILITY":"Vulnerability","SECURITY_HOTSPOT":"Security Hotspot","PIPELINE_CREATE_DESC":"Pipeline's task execution will begin after the initialization is complete.","PIPELINE_QUEUED_DESC":"You need to wait for the agent to start and execute the pipeline (note that if the agent has not started for a long time, please check the agent configuration and cluster resources).","waitForQualityGate_desc":"Code quality check standards are derived from SonarQube's Quality Gate. If you need to customize the standards, go to SonarQube settings.","REVIEW_DESC":"When the pipeline runs here, this task will be suspended, and you can choose to continue or terminate after the review.","INPUT_DESC":"When the pipeline runs here, the task will be suspended, and the creator and @somebody can choose to continue or terminate the pipeline.","LoadPrevData_Desc":"It was detected that this pipeline was not successfully edited last time. Is the last data loaded to continue editing?","withSonarQubeEnv_DESC":"Quickly locate potential or obvious errors in your code","waitForQualityGate_DESC":"Executed after performing code analysis","script_DESC":"Execute groovy script","pipeline_owner":"The owner of the DevOps project, with the highest authorization of the project, can perform all operations","pipeline_maintainer":"The maintainer of the DevOps project can perform credentials and pipeline configuration in the DevOps project","pipeline_developer":"The developer of the DevOps project can trigger and view the pipeline","pipeline_reporter":"The Observer of the DevOps project can only view the resources of the project","PATTERN_PIPELINE_NAME_VALID_NAME_TIP":"Invalid name (Support uppercase and lowercase letters, numbers, '_' and '-')","GET_GITHUB_TOKEN_DESC":"For accessing GitHub\n \n Get Token\n ","PIPELINES_FOOTER_SEE_MORE":"Go to the branch details page to see more.","JENKINS_LINS_ERROR":"has syntax error at line {line}.","Invalid credential ID":"Invalid credential ID","Batch Run Fail":"Batch Run Failed","Run Start":"Start Running","Choose a Pipeline Template":"Choose a Pipeline Template","DEVOPS_PROJECT_DESC":"DevOps projects are used to group resources and control the resource management permissions of different users."} \ No newline at end of file +{"DELETE_CUSTOM_SCALING_WITH_WORKLOAD":"Associated custom scaling policies will be deleted after the workload is deleted.","ENT_TITLE":"KubeSphere Enterprise","KS_QKCP_DESCRIPTION":"KubeSphere Enterprise is an enterprise-grade container platform developed by QingCloud based on the open-source KubeSphere platform.","ABOUT_KUBESPHERE_ENTERPRISE":"About KubeSphere Enterprise","KUBESPHERE_CLOUD_DESC":"KubeSphere Cloud builds a Kubernetes-centric digital ecosystem to provide customers with enterprise-level cloud-native services of high quality. It offers KubeSphere Backup, Inspector, and Lite to help you manage, protect, and deliver production-ready applications more efficiently.","APP_AUTHORIZED":"Authorized","APP_UNAUTHORIZED":"Unauthorized","APP_UNAUTHORIZED_DESC":"This app is unauthorized.","VIEW_EVENTS":"View Events","GPU_MEMORY":"Graphics memory","EDIT_TAGS":"Edit Tags","ADD_TAGS":"Add Tags","GPU_TEMP":"GPU Temperature","GPU_ENERGY_USAGE":"GPU Power (W)","GPU_ENERGY_NO_PERCENT_TCAP":"GPU Power","GPU_MEMORY_USAGE_STATUS":"Graphics Memory Usage","NODE_GPU_MEMORY_USAGED":"Used","NODE_GPU_MEMORY_UNUSAGED":"Available","ENT_CLUSTER_GATEWAY_DESC":"Set up and manage the configuration of the external network access gateway and service management in the cluster, workspace and project.","ENT_CLUSTER_ENABLE_GATEWAY_DESC":"Before creating a route, you need to enable the external network access portal, that is, the gateway. This step is to create the corresponding route controller to forward requests to the back-end service.","WORKSPACE_GATEWAY_PL":"Workspace Gateways","WORKSPACE_GATEWAY_NOT_ENABLED":"Workspace Gateway Not Enabled","ENT_WORKSPACE_ENABLE_GATEWAY_DESC":"The workspace gateway cannot be set on the cluster management page. If you need to set it, go to the corresponding workspace.","ENT_PROJECT_ENABLE_GATEWAY_DESC":"The project gateway cannot be set on the cluster management page. If you need to set it, go to the corresponding project.","OPENSEARCH_DESC":"You can use the OpenSearch log receiver to ingest log data into an OpenSearch database. To use this feature, you need to deploy OpenSearch in advance.","LOG_COLLECTION_OS_URL_TIPS":"IP address or hostname of the target OpenSearch instance.","LOG_COLLECTION_OS_USER_TIPS":"Username for accessing OpenSearch.","LOG_COLLECTION_OS_PASSWORD_TIPS":"Password for accessing OpenSearch.","BATCH_MANAGE":"Batch Manage","HAS_SAME_TAG":"The tag already exists. Please select another tag.","CLUSTER_REPEATED_TAGS_DESC":"The tag keys must be unique for each cluster.","CLUSTER_MAX_TAGS_DESC":"Each cluster is allowed to carry a maximum of 5 tags.","EMPTY_TAG_LABEL_DESC":"Please enter the tag key.","EMPTY_TAG_VALUE_DESC":"Please enter the tag value.","HAS_ADD_TAGS":"Added Tags","CLUSTER_TYPE_DESC":"Select a type to identify the purpose of the cluster.","DELETE_CLUSTER_SWIPE_DESC":"I understand the risks of this operation.","DELETE_CLUSTER_NOTIFICATION_CONFIGURAITON":"Delete all notification configuration data in the cluster","REMOVE_CLUSTER_TIP_C":"After the cluster is removed, multi-cluster configuration data in the cluster will not be cleared automatically. Uninstalling KubeSphere or deleting related resources may cause user data loss. You must manually clear the multi-cluster configuration data in the removed cluster by refering to the \"Remove a Member Cluster\" section in the KubeSphere Enterprise Cluster Management Guide.","CLUSTER_TAG":"Cluster Tag","CLUSTER_TAGS":"Cluster Tags","NO_CLUSTER_TAGS":"No Cluster Tag Found","NO_CLUSTER_TAGS_DESC":"Please create a cluster tag.","CLUSTER_TAG_ADD_HELP":"You can create tags if no tags meet the requirements.","CLUSTER_TAG_TOOLTIP_CONTENT":"Only one tag value of the same tag key can be bound on the same cluster. Each cluster can bind up to 5 tags. ","CLUSTER_LABEL":"Cluster ID","CLUSTER_LABEL_DESC":"Identifies the purpose of the cluster. ","CLUSTER_LABEL_TOOLTIP_CONTENT":"It is recommended to identify the cluster by label, and the \"cluster identification\" function will be removed in subsequent versions, please use it with caution. ","TAG_PL":"Tags","CREATE_TAGS":"Create Tags","CREATE_TAGS_DESC":"The keys of different tags can be the same.","ENT_CLUSTER_TAG_DESC":"The key and value cannot be empty. The maximum length is 63 characters.","CLUSTER_TAG_EMPTY_DESC":"Please add a tag.","DELETE_MULTIPLE_TAGS":"Delete Multiple Tags","DELETE_TAG":"Delete Tag","DELETE_CLUSTER_TAG_DESC":"Deleted tags will be removed from all clusters.","DELETE_CLUSTER_TAG_CONFIRM_DESC":"Please enter the tag key and value {resource} to confirm that you understand the risks of this operation.","DELETE_CLUSTER_TAGS_CONFIRM_DESC":"Please enter the tag keys and values {resource} to confirm that you understand the risks of this operation.","EDIT_TAG":"Edit Tag","ADD_TO_CLUSTERS":"Add to Clusters","ADD_TAG_TO_CLUSTERS":"Add Tag to Clusters","ADD_TAG_DESC":"The tag keys must be unique for each cluster. New tags do not overwrite existing tags.","ADD_TAG_SUCCESSFUL":"The tag was added successfully.","REMOVE_FROM_CLUSTERS":"Remove from Clusters","REMOVE_TAG_FROM_CLUSTERS":"Remove Tag from Clusters","REMOVE_TAG":"Remove Tag","REMOVE_TAG_DESC":"Are you sure you want remove the tag from the cluster?","REMOVE_TAG_SUCCESSFUL":"The tag was removed successfully.","NO_CLUSTER_FOUND":"No Cluster Found","NAME_DESC_LENGTH":"The name can contain only lowercase letters, numbers, and hyphens (-), and must start and end with a lowercase letter or number. The maximum length is {length} characters.","INVALID_NAME_DESC_LENGTH":"Invalid name. The name can contain only lowercase letters, numbers, and hyphens (-), and must start and end with a lowercase letter or number. The maximum length is {length} characters.","DEFAULT_IMAGE_REGISTRY":"Default image registry","DEFAULT_IMAGE_REGISTRY_TCAP":"Default Image Registry","SET_AS_DEFAULT":"Set as Default","SET_AS_DEFAULT_REGISTRY_DESC":"Set the image registry as the default image registry. Unless otherwise specified, the system uses images from the default image registry to create containers. Only one default image registry is allowed in each project.","SET_DEFAULT_REGISTRY_SUCCESSFUL":"The registry was set as the default image registry successfully.","ACTIVATION_CONDITION_SCAP":"Activation condition","ALERTING_RULE_NAME":"Alerting Name","REFERENCE":"Reference","NO_MONITOR_METRIC":"The alert rule is inactive and no monitoring data is available.","DISABLE_MULTIPLE_ALERTING_POLICIES":"Disable Multiple Rule Groups","ENABLE_ALERTING_POLICY":"Enable Rule Group","ENABLE_MULTIPLE_ALERTING_POLICIES":"Enable Multiple Rule Groups","DISABLE_ALARM_TIP":"After the rule group is disabled, the system will stop generating alerts for the monitored resources. Exercise caution when performing this operation.","RESET_MULTIPLE_ALERTING_POLICIES":"Reset Multiple Rule Groups","RESET_MULTIPLE_ALERTING_POLICIES_DESC":"Are you sure you want to reset the rule groups {name}?","RESET_SUCCESSFUL":"Reset successfully.","BUILT_IN_POLICIES_TOOLTIP":"After the Whizard Observability Center is enabled, please log in as a user assigned the platform-admin role and manage default rule groups in the Whizard Observability Center.","Rule":"Rule","RULES_LIST_EMPTY":"Please set an alert rule.","DURATION_REQUIRED":"Please set the duration.","OPERATOR_REQUIRED":"Please set the operator.","NETWORK_BANDWIDTH":"Network Bandwidth","FUNCTION_UPGRADE":"Enhanced Features","FUNCTION_UPGRADE_DESC":"This cluster does not support disabling and migration of pod IP pools and editing of the Overlay mode. If you need to use these features, please upgrade the cluster to KubeSphere Enterprise 3.4.0 or later.","IPPOOL_OVERLAY_MODE":"Overlay Mode","IPPOOL_BLOCK_SIZE":"IP Pool Block Size","EDIT_OVERLAY":"Edit Overlay Mode","FEATURE_UPGRADE":"Feature Upgrade","IPPOOL_USED_TIP":"The pod IP pool is used by pods, so you cannot assign a workspace or delete the IP pool. If there are pods using the pod IP pool, you need to assign other pod IP pools to the pods or delete the pods.","IP_POOL_RANGE":"IP Pool Range","EDIT_POD_IP_POOL":"Edit Pod IP Pool","ENTER_NETWORK_SEGMENT":"Please enter a network segment.","POD_IP_POOL_IP_RANGE":"The IP range of the pod IP pool.","POD_IP_POOL_NAME_DESC":"It can contain only lowercase letters, numbers, and hyphens (-), and must start and end with a number or lowercase letter. The maximum length is 63 characters.","IPIP_MODE":"IPIP Mode","IPIP_MODE_REQUIRED":"Please select an IPIP mode.","IPIP_MODE_DESC":"Create an IP in IP tunnel on each node to enable communication between containers. You can either set the IPIP or the VXLAN mode. If you set the values of the IPIP and the VXLAN modes to Never, BGP mode will be used.","CONFIGURATION_MODE":"Configuration Mode","VXLAN_MODE":"VXLAN Mode","VXLAN_MODE_REQUIRED":"Please select a VXLAN mode.","VXLAN_MODE_DESC":"Create a VXLAN tunnel on each node to enable communication between containers. You can either set the IPIP or the VXLAN mode. If you set the values of the IPIP and the VXLAN modes to Never, BGP mode will be used.","IP_POOL_BLOCK_SIZE_DESC":"The CIDR size of the block used to allocate IP addresses.","NAT_OUTGOING_DESC":"Collapse IPPool communication through NAT","OPEN_NAT_OUTGOING":"Open NAT outgoing","CLOSE_NAT_OUTGOING":"Close NAT outgoing","OPEN":"Open","OPENED":"Opened","CLOSED":"Closed","OPENED_SUCCESSFUL":"Open Successful","CLOSED_SUCCESSFUL":"Close Successful","SELECT_NODE_DES":"Use the label selector to match the appropriate nodes for the IP pool.","SELECT_LABEL_ALL_RESOUCE":"Matches all resources in the tag selection range.","ALL_DISABLED":"Disable All","DISABLE_SELECT_NODE":"Disable Select Node","NODE_RANGE":"Node Range","LABEL_SELECT":"Label Select","EDIT_OVERLAY_MODE":"Edit Overlay Mode","DISABLE_POD_IP_POOL":"Disable Pod IP Pool","DISABLE_POD_IP_POOL_DESC":"After disabling the container group IP pool, the allocation of IP addresses will not continue, nor will it affect the network of container groups that have already been assigned IP addresses. When migrating container group IPs, the number of available addresses in the new IP pool cannot be less than the IP addresses used by the current IP pool. After the migration is completed, the workload will be restarted. Disabling the ip pool automatically unbinds the project. Exercise caution when performing this operation.","MIGRATE_POD_IP_POOL":"Migrate Pod IP Pool","MIGRATE_POD_IP_POOL_DESC":"Migrate the pod that has been assigned an IP address to a new pod IP pool.","SELECT_POD_IP_POOL":"Please select a pod IP pool.","MIGRATE_POD_IP_POOL_TIP":"The IP address of the pod will be allocated according to the selected pod IP pool.","SELECT_POD_IP_POOL_DESC":"Please select a pod IP pool.","IPPOOL_AUTO_ASSIGN":"Automatic allocation","IPPOOL_IS_AUTO_ASSIGN":"Automatically allocate or not","CREATED_AGO":"Created {diff}","UPDATED_AGO":"Updated {diff}","GPU_USAGE_SCAP":"GPU usage","GPU_MEMORY_USAGE_SCAP":"Graphics memory usage","QUOTA_USAGE":"Usage","PROJECT_CONFIG_QUOTAS_TIP":"Only data of projects with resource limits and requests is displayed.","APPLICATION_CLUSTER_QUOTA_STATISTICS":"Cluster Quota Statistics","CPU_QUOTA":"CPU Quota","MEMORY_QUOTA":"Memory Quota","SORT_BY_NODE_GPU_UTILIZATION":"Sort by GPU usage (%)","SORT_BY_NODE_GPU_MEMORY_UTILIZATION":"Sort by graphics memory usage (%)","SORT_BY_NAMESPACE_GPU_USAGE":"Sort by GPU usage","SORT_BY_NAMESPACE_GPU_MEMORY_USAGE":"Sort by graphics memory usage","SORT_BY_WORKLOAD_GPU_USAGE":"Sort by GPU usage","SORT_BY_WORKLOAD_GPU_MEMORY_USAGE":"Sort by graphics memory usage","SORT_BY_WORKSPACE_GPU_USAGE":"Sort by GPU usage","SORT_BY_WORKSPACE_GPU_MEMORY_USAGE":"Sort by graphics memory usage","SORT_BY_NODE_GPU_USAGE":"Sort by GPU usage","SORT_BY_NODE_GPU_MEMORY_USAGE":"Sort by graphics memory usage","SORT_BY_CLUSTER_GPU_USAGE":"Sort by GPU usage","SORT_BY_CLUSTER_GPU_MEMORY_USAGE":"Sort by graphics memory usage","NODE_RESOURCE_USAGE":"Node Resource Usage","USED_VALUE_CORES_PERCENTAGE":"Used: {value, plural, =1 {1 core} other {# cores}} ({percentage})","USED_VALUE_UNIT_PERCENTAGE":"Used: {value} {unit} ({percentage})","TOTAL_VALUE_CORES":"Total: {value, plural, =1 {1 core} other {# cores}}","TOTAL_VALUE_UNIT":"Total: {value} {unit}","ENT_ENABLE_GATEWAY_TIP":"To use the gateway, please configure the gateway in the cluster, workspace or project.","ANNOTATION_FORMAT_DESC":"The annotation key can contain only letters, numbers, hyphens (-), underscores (_), slashes (/), and dots (.), and must start and end with a letter or number. The maximum length is 63 characters (if the key contains a domain name, the maximum length is 253 characters).","BLOCK":"Block","DRIVER":"Driver","DRIVER_REQUIRED":"Please enter a driver","DRIVER_FORMAT_ERROR":"Driver format error, only lowercase letters, numbers, hyphens and dots are supported","DRIVER_PLACEHOLDER":"For example: csi.example.com","FSTYPE_PLACEHOLDER":"For example: ext4","VOLUME_ATTRIBUTES":"Volume Attributes","NODE_EXPAND_KEY":"Node Expand Key","NODE_PUBLISH_KEY":"Node Publish Key","NODE_STAGING_KEY":"Node Staging Key","CONTROLLER_EXPAND_KEY":"Controller Expand Key","CONTROLLER_PUBLISH_KEY":"Controller Publish Key","PATH_TYPE":"Path Type","ANY_PATH":"Any path, no need to check the target path","DIRECTORY_OR_CREATE":"A directory, if it does not exist, create it automatically","FILE_OR_CREATE":"A file, if it does not exist, create it automatically","DIRECTORY_EXIST":"An existing directory","FILE_EXIST":"An existing file","SOCKET_EXIST":"An existing socket","CHARACTER_DEVICE_EXIST":"An existing character device","BLOCK_DEVICE_EXIST":"An existing block device","SERVER_IP_ADDRESS":"Server IP Address","SECRET_INFO":"Secret Information","BIND_EXISTING_PVC":"Bind existing persistent volume","BIND_EXISTING_PVC_DESC":"Select an existing persistent volume to create a volume.","PV_STATUS_FREED":"Released","PV_EMPTY_DESC":"If no persistent volume meets the requirements, please contact the cluster administrator to create one.","PLEASE_SELECT_PERSISTENT_VOLUME":"Please select a persistent volume","ADMIN_CREATE_PV_DESC":"If no persistent volume meets the requirements, you can create a persistent volume.","UNCLASSIFIED":"Unclassified","FILE_STORAGE":"File Storage","BLOCK_STORAGE":"Block Storage","storageclasses":"Storage Classes","EDGE_GPU_MEMORY_USAGE_SCAP":"GPU memory usage","NPU_USAGE_SCAP":"NPU usage","NPU_MEMORY_USAGE_SCAP":"NPU memory usage","NPU_USAGE":"NPU usage","NPU_MEMORY_USAGE":"NPU memory usage","EDGE_GPU_MEMORY_USAGE":"GPU memory usage","EDGE_GPU_MEMORY_UTILIZATION":"GPU memory usage (%)","EDGE_GPU_MEMORY_USAGE_STATUS":"GPU memory usage status","EDGE_NODE_GPU_MEMORY_USAGED":"Memory used,","EDGE_NODE_GPU_MEMORY_UNUSAGED":"Free video memory","NPU_TEMP":"NPU temperature","NPU_ENERGY_NO_PERCENT_TCAP":"NPU Power","NPU_VOLTAGE":"NPU voltage","NPU_MEMORY_USAGE_STATUS":"NPU video memory usage status","EDGE_NODE_NPU_MEMORY_USAGED":"NPU video memory used,","EDGE_NODE_NPU_MEMORY_UNUSAGED":"Unused NPU video memory,","NPU_HEALTH_STATUS":"NPU health status","APPLICATION_RESOURCE_QUOTAS":"Application Resource Quotas","UNAUTHORIZED_FEATURE":"Unauthorized Feature","UNAUTHORIZED_FEATURE_DESC":"This feature is unauthorized. Please update the license to use this feature.","ADMIN_INACTIVATED_LICENSE_DESC":"KubeSphere Enterprise is not activated. Please activate KubeSphere Enterprise.","INACTIVATED_LICENSE_DESC":"KubeSphere Enterprise is not activated. Please contact a platform administrator to activate KubeSphere Enterprise.","ADMIN_SUB_EXPIRED_LICENSE_DESC":"The subscription has expired. To try the full version of KubeSphere Enterprise, update the license.","SUB_EXPIRED_LICENSE_DESC":"The subscription has expired. Please contact a platform administrator to update the license.","ADMIN_MA_EXPIRED_LICENSE_DESC":"The warranty has expired.","MA_EXPIRED_LICENSE_DESC":"The warranty has expired. Please contact a platform administrator to extend the warranty.","ADMIN_UPDATE_LICENSE_DESC":"The {type} service will expire in {day, plural, =1 {1 day} other {# days}}. ","UPDATE_LICENSE_DESC":"The {type} service will expire in {day, plural, =1 {1 day} other {# days}}. To try the full version of KubeSphere Enterprise, contact a platform administrator to update the license.","ADMIN_OVER_RESOURCE_LICENSE_LIMIT":"The managed resources exceed the scope of authorization, so you cannot manage existing resources and create new resources. To try the full version of KubeSphere Enterprise, update the license.","OVER_RESOURCE_LICENSE_LIMIT":"The managed resources exceed the scope of authorization, so you cannot manage existing resources and create new resources. To try the full version of KubeSphere Enterprise, contact a platform administrator to update the license.","ACTIVATE":"Activate","ADMIN_AUTHORIZED_INVALID_LICENSE_DESC":"Invalid license. Please update the license or contact KubeSphere technical support.","AUTHORIZED_INVALID_LICENSE_DESC":"Invalid license. Please contact a platform administrator to update the license.","EXPIRED_INVALID_LICENSE_DESC":"The license has expired. Please contact a platform administrator to update the license.","ADMIN_EXPIRED_INVALID_LICENSE_DESC":"The license has expired. Please update the license.","PLATFORM_FEATURES":"Platform Features","RADON_DB_FEATURES":"RadonDB Features","PASSWORD_CHARACTERS":"Contain at least 1 special character (~!@#$%^&*()-_=+\\|[{}];:'\",<.>/? or space).","I_AGREE_TO_THE":"I agree to the","TITLE_USERNAME":"{title} Username","TITLE_LOG_IN":"{title} Log In","NOTIFICATION_SUBSCRIPTION":"Notification Subscription","NOTIFICATION_SUBSCRIPTION_LOW":"Notification Subscription","NOTIFICATION_SUBSCRIPTION_DESC":"You can configure multiple recipients with different filter conditions for the same notification channel. ","NOTIFICATION_RECEIVER_EMPTY_DESC":"A notification subscription can be created. ","EDIT_NOTIFICATION_SUBSCRIPTION":"Edit Notification Subscription","CREATE_NOTIFICATION_SUBSCRIPTION":"Create Notification Subscription","NOTIFICATION_SUBSCRIPTION_DETAIL":"Notification Subscription Details","NOTIFICATION_SUBSCRIPTION_TOTAL":"Number of subscription accounts","NOTIFICATION_SUBSCRIPTION_ACCOUNT":"Notification Subscription Account","NOTIFICATION_EMAIL_SUBSCRIPTION_DESC":"Email notification subscription settings can be set by going to the notification subscription settings page. ","ADD_EMAIL_NOTIFICATION_SUBSCRIPTION":"Add email notification subscription","NOTIFICATION_RECEIVER_STATUS":"Notification reception status","NOTIFICATION_RECEIVER":"Notification receipt","NOTIFICATION_SUBSCRIPTION_PL":"Notification Subscription","NOTIFICATION_SUBSCRIPTION_EMPTY_DESC":"Please crate a notification subscription","NOTIFICATION_ENABLED":"Notification Enabled","NOTIFICATION_DISABLED":"Notification Disabled","ENABLE_SUCCESSFUL":"Enabled successfully.","NODE_TARGET_REPEAT":"Repeated monitoring target. Please select another monitoring target.","DEPLOYMENTS_VALUES":"Deployments: {values}","STATEFULSETS_VALUES":"Statefulsets: {values}","DAEMONSETS_VALUES":"Daemonsets: {values}","WORKLOADS_VALUES":"Workloads: {values}","RULE_NAME_REQUIRED":"Please enter a rule name.","MONITOR_TARGET_EMPTY":"Please select a monitoring target.","ALARM_TARGET_REPEAT":"Monitoring targets cannot be duplicated. Please select another monitoring target.","CLUSTER_FIELD_EMPTY":"Please select a cluster.","SELECT_A_TARGET_NODE":"Please select a node.","SET_NAMESPACE_BELONGS_TO":"Please select a project.","NAME_SPACE_REPEAT":"Projects cannot be duplicated. Please select another project.","THRESHOLD_INVALID":"Please enter a valid metric threshold.","SEVERITY_REQUIRED":"Please select an alert severity.","ALERT_RULE_REQUIRED":"Please enter a rule expression.","MESSAGE_REQUIRED":"Please enter message summary.","RULE_LABEL_SETTING":"Label setting","RULE_LABEL_SETTING_DESC":"Filter conditions can be specified in the receiver configuration to filter related labels. ","INCORRECT_KEY_DESC":"The key value is incorrect","MONITOR_TARGET_CLUSTER_DELETED_DESC":"The selected cluster contains a cluster that has been removed, please select again","CLUSTER_DELETED":"The cluster has been removed","DATA_ACCESS":"Data Access","DATA_QUERY":"Data Query","LONG_TERM_STORAGE":"Long-Term Storage","RULE_CALCULATION":"Ruler","CONTAINER_QUOTA":"Container Quotas","GATEWAY_COMPONENT_LOW":"Store Gateway","COMPONENT_REPLICA_COUNT":"Component Replicas","REPLICA_DESC":"Set the number of replicas of {resource}, and the default value is {default}.","DATA_ROUTER":"Router","DATA_RETENTION_LOW":"data rentetion","DATA_RETENTION_REPLICA_COUNT":"Data Retention Replicas","ROUTER_COMPONENT_LOW":"Router","LOCAL_STORAGE":"Local Storage","LOCAL_STORAGE_LOW":"local storage","LOCAL_STORAGE_TIME":"Local Data Storage Duration (Days)","LOCAL_STORAGE_TIME_DESC":"Set the storage duration of local data. The value at least 3, and the default value is 7.","LOCAL_STORAGE_ERROR_MESSAGE":"The number of replicas of the local storage component cannot be smaller than the number of data retention replicas.","BASIC_SETTING":"Basic Settings","CACHE_SETTING":"Cache Settings","QUERY_COMPONENT_LOW":"query component","CACHE_COMPONENT_LOW":"cache component","LONG_TERM_STORAGE_TIPS":"Please configure the parameters of object storage first, and then configure the parameters of the gateway, period, and downsampling.","STORAGE_NOT_ENABLED":"Long-term storage not enabled","STORAGE_ENABLE_GATEWAY_DESC":"After enabling long-term storage, you can configure component parameters for object storage, gateway, retention period, and downsampling.","OBJECT_STORAGE":"Object Storage","OBJECT_STORAGE_TIPS":"Please configure the parameters of the object storage first.","COMPACTOR":"Compator","STORE_GATEWAY":"Store Gateway","COMPRESSION_DOWNSAMPLING":"Compression and Downsampling","BUCKET":"Bucket","BUCKET_NAME_DESC":"The name of the s3 object storage bucket.","BUCKET_NAME_EMPTY_TIP":"Please enter the bucket name.","REGION":"Region","REGION_DESC":"The geographic region where you created the bucket.","ENDPOINT_DESC":"The AWS S3 object storage address to connect to.","ENDPOINT_EMPTY_TIP":"Please enter the endpoint.","ACCESS_KEY":"Access Key","ACCESS_KEY_DESC":"AWS account access key ID.","ACCESS_KEY_EMPTY_TIP":"Please enter the Access Key.","SECRET_KEY_DESC":"The secret associated with the AWS Access Key ID.","SECRET_KEY_EMPTY_TIP":"Please enter the Secret Key.","HTTP_PROTOCOL":"HTTP protocol","HTTP_PROTOCOL_DESC":"Use of insecure HTTP protocol.","ADD_STORAGE_CLASS":"Add storage class","ADD_STORAGE_CLASS_DESC":"Add user metadata for object storage.","OBJECT_STORAGE_PARAMETERS":"Object Storage Parameters","HTTP_CONFIGURATION":"HTTP configuration","HTTP_CONFIGURATION_DESC":"Configure the HTTP client that the receiver uses to communicate with the HTTP-based API service.","TLS_CERTIFICATE":"TLS certificate","TLS_CERTIFICATE_VERIFY":"Verify TLS certificate","TLS_CERTIFICATE_VERIFY_DESC":"Prove your identity or indicate that you are authorized to access an online service by submitting a digital certificate.","TLS_CONNECTION":"TLS connection","CA_CERTIFICATE_DESC":"The CA file used to verify the server certificate.","CERT_CERTIFICATE":"Cert file","CERT_CERTIFICATE_DESC":"Certificate file for client certificate authentication to the server.","KEY_FILE":"Key","KEY_FILE_DESC":"The key file used for client certificate authentication to the server.","SERVER_NAME_DESC":"ServerName extension to indicate the name of the server.","SERVER_CERTIFICATE_VERFICATION":"Server certificate verification","SERVER_CERTIFICATE_VERFICATION_DESC":"Prove your identity or indicate that you are authorized to access an online service by submitting a digital certificate.","RETENTION_RAW":"Raw data storage duration (days)","RETENTION_RAW_DESC":"Raw data storage duration. The raw data will be deleted after the duration expires.","RETENTION_FIVE_MIN":"5m downsampled data storage duration (days)","RETENTION_FIVE_MIN_DESC":"Specifies the data storage duration for downsampling to 5-minute intervals of data points.","RETENTION_ONE_HOUR":"1h downsampled data storage duration (days)","RETENTION_ONE_HOUR_DESC":"Specifies the data storage duration for downsampling to 1-hour intervals of data points.","DISABLE_STORAGE":"Disable long-term storage","DISABLE_STORAGE_DESC":"Are you sure to disable long term storage? After disabling, the object storage configuration will be removed, and the monitoring data will be retained but no longer queried.","ALERT_MANAGEMENT":"Alert Management","SELECT_CLUSTER":"Select Clusters","CUSTOM_PANEL_DESC":"Select clusters to be monitored.","WHIZARD_MONITORING.BUILT_IN_ALERTING_PL":"Built-in Alerts","WHIZARD_MONITORING.CUSTOM_ALERTING_PL":"Custom Alerts","WHIZARD_MONITORING.RESOURCE_RANKING_PL":"Resource Ranking","WHIZARD_MONITORING.RESOURCE_RANKING_DESC":"Resource Ranking displays the rankings of cluster resource usage.","WHIZARD_MONITORING.RESOURCE_MONITORING":"Resource Monitoring","WHIZARD_MONITORING.MULTI_CLUSTER_MONITOR":"Multi-cluster Monitoring","WHIZARD_MONITORING.PACK_UP":"Collapse","WHIZARD_MONITORING.UNFOLD":"Expand","WHIZARD_MONITORING.COLLAPSE_CLUSTER_LIST":"Collapse cluster list","WHIZARD_MONITORING.UNFOLD_CLUSTER_LIST":"Expand cluster List","WHIZARD_MONITORING.RESOURCE_FILTER":"Resource Query","WHIZARD_MONITORING.OBSERVABILITY_ALL_CLUSTERS":"All Clusters","WHIZARD_MONITORING.SUCCEEDED":"Succeeded","PERSISTENT_VOLUME_CLAIM_LOW_PL":"Persistent volume claims","GRAPHICS_MEMORY_USAGE":"Graphics Memory Usage","QUOTA_REQUEST":"Request","QUOTA_LIMIT":"Limit","QUOTA_TOTAL":"Total","CPU_QUOTA_USAGE":"Allocated CPU Resource","MEMORY_QUOTA_USAGE":"Allocated Memory Resource","QUOTA_ALLOCATED":"Allocated","VALUE_CORES":"{value, plural, =1 {1 core} other {# cores}}","VALUE_UNIT":"{value} {unit}","ALLOCATED_TOTAL":"Allocated/Total","CLUSTER_ROLES_AND_MEMBERS":"Cluster Members and Roles","CLUSTER_MEMBER_SCAP":"Cluster member","CLUSTER_MEMBERS_SCAP":"Cluster members","CLUSTER_ROLE_SCAP":"Cluster role","CLUSTER_ROLES_SCAP":"Cluster roles","OBSERVABILITY_CENTER":"Whizard Observability Center","DISTRIBUTED_OBSERVABILITY_CENTER_DESC":"Unified monitoring dashboard that provides metrics of all clusters managed by the platform.","GLOBAL_ALERTS":"Global Alerts","GLOBAL_ALERTS_TOOLTIP":"Only the alarms of the selected cluster are collected","NONE_ALERT":"No Alert Found","ALERT_EMPTY_DESC":"No global alert is found in the clusters.","SORT_BY_CLUSTER_CPU_USAGE":"Sort by CPU usage","SORT_BY_CLUSTER_CPU_UTILISATION":"Sort by CPU usage (%)","SORT_BY_CLUSTER_MEMORY_USAGE_WO_CACHE":"Sort by memory usage","SORT_BY_CLUSTER_MEMORY_UTILISATION":"Sort by memory usage (%)","SORT_BY_CLUSTER_DISK_SIZE_USAGE":"Sort by disk usage","SORT_BY_CLUSTER_DISK_SIZE_UTILISATION":"Sort by disk usage (%)","SORT_BY_CLUSTER_POD_COUNT":"Sort by number of pods","SORT_BY_CLUSTER_POD_UTILISATION":"Sort by pod quota usage (%)","SORT_BY_NODE_POD_COUNT":"Sort by number of pods","SORT_BY_NODE_CPU_USAGE":"Sort by CPU usage","SORT_BY_NODE_MEMORY_USAGE_WO_CACHE":"Sort by memory usage","SORT_BY_NODE_LOAD5":"Sort by 5-minute CPU load average","SORT_BY_NODE_LOAD15":"Sort by 15-minute CPU load average","SORT_BY_POD_CPU_USAGE":"Sort by CPU usage","SORT_BY_POD_CPU_USED_REQUESTS_UTILISATION":"Sort by allocated CPU request (%)","SORT_BY_POD_CPU_USED_LIMITS_UTILISATION":"Sort by allocated CPU limit (%)","SORT_BY_POD_MEMORY_USAGE_WO_CACHE":"Sort by memory usage","SORT_BY_POD_MEMORY_USED_REQUESTS_UTILISATION":"Sort by allocated memory request (%)","SORT_BY_POD_MEMORY_USED_LIMITS_UTILISATION":"Sort by allocated memory limit (%)","SORT_BY_POD_NET_BYTES_TRANSMITTED":"Sort by outbound traffic","SORT_BY_POD_NET_BYTES_RECEIVED":"Sort by inbound traffic","SORT_BY_POD_PVC_BYTES_USAGE":"Sort by persistent volume usage","SORT_BY_POD_PVC_BYTES_UTILISATION":"Sort by persistent volume usage (%)","SORT_BY_NAMESPACE_CPU_USED_REQUESTS_UTILISATION":"Sort by allocated CPU request (%)","SORT_BY_NAMESPACE_CPU_USED_LIMITS_UTILISATION":"Sort by allocated CPU limit (%)","SORT_BY_NAMESPACE_MEMORY_USED_REQUESTS_UTILISATION":"Sort by allocated memory request (%)","SORT_BY_NAMESPACE_MEMORY_USED_LIMITS_UTILISATION":"Sort by allocated memory limit (%)","SORT_BY_NAMESPACE_PVC_BYTES_USED":"Sort by persistent volume usage","SORT_BY_NAMESPACE_PVC_COUNT":"Sort by number of pods","SORT_BY_POD_GPU_USAGE":"Sort by GPU usage","SORT_BY_POD_GPU_MEMORY_USAGE":"Sort by graphics memory usage","CPU_USAGE_TCAP":"CPU Usage","CPU_UTILISATION_TCAP":"CPU Usage (%)","MEMORY_USAGE_TCAP":"Memory Usage","MEMORY_UTILISATION_TCAP":"Memory Usage (%)","DISK_SIZE_USAGE_TCAP":"Disk Usage","DISK_SIZE_UTILISATION_TCAP":"Disk Usage (%)","POD_COUNT_TCAP":"Pods","NODE_POD_UTILISATION_TCAP":"Pod Quota Usage (%)","NODE_LOAD1_TCAP":"Average CPU Load (1 min)","NODE_LOAD5_TCAP":"Average CPU Load (5 min)","NODE_LOAD15_TCAP":"Average CPU Load (15 min)","INODE_USAGE_TCAP":"Inode Usage (%)","METER_NET_RECEIVED_USAGE_TCAP":"Inbound Traffic","METER_NET_TRANSMITTED_USAGE_TCAP":"Outbound Traffic","CPU_USED_REQUESTS_UTILISATION_TCAP":"Allocated CPU Request (%)","CPU_USED_LIMITS_UTILISATION_TCAP":"Allocated CPU Limit (%)","MEMORY_USED_REQUESTS_UTILISATION_TCAP":"Allocated Memory Request (%)","MEMORY_USED_LIMITS_UTILISATION_TCAP":"Allocated Memory Limit (%)","PVC_BYTES_USED_TCAP":"Persistent Volume Usage","PVC_BYTES_UTILISATION_TCAP":"Persistent Volume Usage (%)","POD_UTILISATION_TCAP":"Pod Quota Usage (%)","GPU_USAGE":"GPU Usage","GPU_UTILIZATION":"GPU Usage (%)","GPU_MEMORY_USAGE":"Graphics Memory Usage","GPU_MEMORY_USAGE_TCAP":"Graphics Memory Usage","GPU_MEMORY_UTILIZATION":"Graphics Memory Usage (%)","NODE_GPU_UTILIZATION":"GPU Usage (%)","NODE_GPU_MEMORY_UTILIZATION":"Graphics Memory Usage (%)","GPU_USAGE_TCAP":"GPU Usage","SORT_BY_DESC":"Descending","SORT_BY_ASC":"Ascending","OOM_KILL_PODS":"OOM killed pods","PENDING_PODS":"Pending pods","EVICTED_PODS":"Evicted pods","QOS_GUARANTEED":"Guaranteed: For every container in a pod, the CPU/memory request and limit are equal.","QOS_BURSTABLE":"Burstable: Criteria of Guaranteed is not met and at least one container has a request or limit.","QOS_BESTEFFORT":"BestEffort: No requests or limits are set.","COMPONENT_PARAMETER_CONFIG":"Component Settings","LICENSE":"License","LICENSE_DESC":"View information about the current license and update the license when necessary.","ACTIVATED":"Activated","INACTIVATED":"Not activated","EXPIRED":"Expired","LICENSE_ID":"License ID","AUTHORIZED_ORGANIZATION":"Authorized organization","AUTHORIZATION_TYPE":"Authorization type","AUTHORIZED_STATUS":"Authorized status","ACTIVATION_TYPE":"Activation type","WARRANTY":"Warranty","WARRANTY_PERIOD":"Under warranty","WARRANTY_EXPIRES":"Warranty expired","SUBSCRIPTION":"Subscription","SUBSCRIPTION_IN_PROGRESS":"Subscribed","SUBSCRIPTION_EXPIRES":"Subscription expired","PERMANENT_AUTHORIZATION":"Permanent Authorization","ACTIVATION_TIME":"Activation time","UPDATE_LICENSE":"Update License","ACTIVATION_CODE":"Activation Code","OBTAIN_ACTIVATION_CODE":"Obtain Activation Code","OBTAIN_ACTIVATION_CODE_DESC":"Visit {title} to obtain the license.","INVALID_LICENSE":"Invalid License","PRODUCT_SERVICE_AUTHORIZATION":"KubeSphere Enterprise Authorization","INVALID_ACTIVATION_CODE_DESC":"Invalid activation code. Please enter a Base64 string in JSON format.","EMPTY_LICENSE":"Invalid license.","INVALID_SIGNATURE":"Invalid signature.","FORMAT_ERROR":"Invalid activation code. Please enter a Base64 string in JSON format.","AUTHORIZED_FEATURES":"Authorized Features","FEATURE":"Feature","CURRENT_USER":"Current user","ADD_CURRENT_USER":"Add current user","NOTIFICATION_HISTORY":"Notification History","NOTIFICATION_HISTORY_PL":"Notification History","NOTIFICATION_HISTORY_DESC":"View notifications that have been sent to users.","ALERTING_NAME_TCAP":"Alert Name","ALERTING_TYPE_TCAP":"Alert Type","ALERTING_SEVERITY_TCAP":"Alert Severity","NOTIFICATION_MESSAGE":"Message","NOTIFICATION_TIME":"Notification Time","METRIC_ALERT":"Metric alert","EVENT_ALERT":"Event alert","AUDIT_ALERT":"Audit alert","LOGGING_ALERT":"Logging alert","ALERT_RESOLVED":"Resolved","NOTIFICATION_SETTINGS":"Notification Settings","SILENCE_POLICY":"Silence Policy","SILENCE_POLICY_LOW":"silence policy","SILENCE_POLICY_PL":"Silence Policies","SILENCE_POLICY_DESC":"Set the system not to send notifications under certain circumstances.","SILENCE_TIME":"Silence Time","CONTINUOUS_SILENCE":"Silent continuously","PERIODIC_SILENCE":"Silent periodically","SPECIFIC_TIME_RANGE_SILENCE":"Silent during time range","CUSTOM_SILENCE":"Silent based on cron expression","SILENCE_CONDITIONS":"Silence Conditions","ALL_SILENT_NOTIFICATIONS":"Silent for all notifications","CUSTOM_SILENT_NOTIFICATIONS":"Custom silence conditions","EDIT_SILENCE_CONDITIONS":"Edit Silence Conditions","EDIT_SILENCE_TIME":"Edit Silence Time","CREATE_SILENCE_POLICY_SUCCESSFULLY":"Created successfully.","EDIT_SILENCE_POLICY_SUCCESSFULLY":"Updated successfully.","CREATE_SILENCE_POLICY":"Create Silence Policy","ALL_SILENT_NOTIFICATIONS_TCAP":"Silent for All Notifications","ALL_SILENT_NOTIFICATIONS_DESC":"The silence policy applies to all notifications.","CUSTOM_SILENT_NOTIFICATIONS_TCAP":"Custom Silence Conditions","CUSTOM_SILENT_NOTIFICATIONS_DESC":"The silence policy applies only to notifications that meet specified conditions.","INVALID_SILENCE_CONDITION":"Please set a correct silence condition.","SILENT_TEMPLATE":"Template","SILENCE_TIME_TYPE_DESC":"Notifications that meet the silence conditions will be silenced during the specified time range.","SILENT_CRON":"Cron Expression","SILENCE_TIME_RANGE_EMPTY_DESC":"Please set the time range during which notifications are silenced.","SELECT_START_TIME_AND_END_TIME":"Select the start time and end time during which notifications are silenced.","SILENCE_DATE":"Date","SELECT_DATE":"Please select a date.","SILENCE_EVERY_DAY":"Every day","SILENCE_EVERY_WEEK":"Every week","SILENCE_EVERY_MONTH":"Every month","MONDAY":"Monday","TUESDAY":"Tuesday","WEDNESDAY":"Wednesday","THURSDAY":"Thursday","FRIDAY":"Friday","SATURDAY":"Saturday","SUNDAY":"Sunday","DAY":"day","HOUR":"Hour","MINUTE":"Minute","SECOND":"Second","CRON_EXPRESSION":"Cron Expression","CRON_EXPRESSION_DESC":"Enter a cron expression to specify the silence period.","CRON_EXPRESSION_REQUIRE_DESC":"Please enter a cron expression.","CRON_EXPRESSION_ERROR_DESC":"Invalid cron expression. Please enter a valid cron expression.","EVERY_DAY_TIMERANGE":"Every day: {timeRange}","EVERY_WEEK_DAYS_TIMERANGE":"Every week: {days} [{timeRange}]","EVERY_MONTH_DAYS_TIMERANGE":"Every month: {days} [{timeRange}]","NOTIFICATION_LANGUAGE":"Notification Language","NOTIFICATION_LANGUAGE_DESC":"Set the language of keys in notifications. Notifications are provided as key-value pairs.","NOTIFICATION_SIMPLIFIED_CHINESE_DESC":"Use simplified Chinese keys in notifications.","NOTIFICATION_ENGLISH_DESC":"Use English keys in notifications.","NOTIFICATION_LANGUAGE_CHANGE_SUCCESS":"Changed successfully.","PLATFORM_LOGO":"Platform Logo","PLATFORM_LOGO_REQUIRED":"Please upload a platform logo.","BROWSER_FAVICON":"Browser Favicon","BROWSER_FAVICON_REQUIRED":"Please upload a platform favicon.","LOGIN_BACKGROUND":"Login Page Background Image","NO_BACKGROUND":"No Background Image Found","NO_BACKGROUND_TIP":"Please click \"Customize Platform Information\" to upload a background image.","MODIFY_PLATFORM_INFO":"Customize Platform Information","PLATFORM_TITLE_TCAP":"Platform Title","PLATFORM_DESCRIPTION_TCAP":"Platform Description","PLATFORM_TITLE_TIP":"The platform title can contain any characters. The maximum length is 63 characters.","TITLE_EMPTY_TIP":"Please enter a platform title.","PLATFORM_LOGO_DESC":"The image format can be SVG, PNG, or JPG, the image file size cannot exceed 2 MB, and the recommended image resolution is 200 x 40 pixels.","BROWSER_FAVICON_DESC":"The image format can be ICO, SVG, PNG, or JPG, the image file size cannot exceed 2 MB, the recommended image resolution is 40 x 40 pixels, and the recommended aspect ratio is 1:1.","LOGIN_BACKGROUND_DESC":"The image format can be SVG, PNG, or JPG, the image file size cannot exceed 2 MB, and the recommended image resolution is 1920 x 1080 pixels.","UPLOAD_PLATFORM_IMAGE_FAILED":"Upload failed. {message}","UPLOAD_FILE_TOO_LARGE":"The image file size cannot exceed 2 MB. Please select another image file.","RESET_PLATFORM_INFO":"Reset Platform Information","RESET_PLATFORM_INFO_TIP":"Are you sure you want to reset the platform information?","SCALING_OBJECT":"Scalable Objects","LAST_SCALING_TIME":"Update Time","POLLING_INTERVAL":"Polling Interval","WAITING_TIME":"Waiting Time","TIME_ZONE":"Time zone","CORN_DESC":"Auto scaling according to the cron plan. ","SCALING_CUSTOM_DESC":"Auto scaling according to custom metrics. ","TOGGLER_PARAMS":"Trigger Parameters","TOGGLER_AUTHOR":"Trigger Authentication","INDICATOR_NAME":"Metric","EXPRESSION":"Expression","SCALING_Prometheus_DESC":"Auto scaling according to Prometheus. ","INDICATOR_TYPE":"Indicator type","TRIGGER":"Trigger","LABEL_KEY_VALUE_CANNOT_BE_EMPTY":"The key and value of the type cannot be empty.","TRIGGER_AUTHENTICATION_KEY_EQ_NAME":"The key of the trigger authentication must be name.","CUSTOM_SCALING_PL":"Custom Scaling","CUSTOM_SCALING_LOW":"Custom scaling","CUSTOM_SCALING_DESC":"Custom scaling automatically scales pods on demand to help optimize resource usage and costs. ","CUSTOM_SCALING_EMPTY_DESC":"Please create custom scaling.","CUSTOM_SCALING":"Custom Scaling","SCALER":"Scaler","STRETCH_OBJECT_READY":"ScaledObject Ready","TRIGGER_ACTIVE":"Active Triggers","RETRACTOR_FALLBACK":"Rollback","STRETCH_OBJECT_READY_DESC":"Whether the ScaledObject is ready for scaling","TRIGGER_ACTIVE_DESC":"Whether the ScaledObject has been scaled","RETRACTOR_FALLBACK_DESC":"Whether the scaler is able to fetch metrics from the source","EDIT_SCALING_SETTINGS":"Edit Scaling","SCALING_SETTINGS":"Scaling Settings","DISABLE_REPLICAS_SETTING":"Disable the number of replicas setting","WORKLOAD_SCALING_TOOL_TIP":"The horizontal autoscaling policy of pods with custom metrics has been set.","EDIT_CUSTOM_SCALING":"Edit Custom Scaling","ENV_CONTAINER":"env source container","ADD_WORKLOAD":"Add Workload","ADD_WORKLOAD_DESC":"Set up deployments and stateful replica sets as custom ScaledObjects.","EMPTY_SCALING_OBJECT_MESSAGE":"The scaledObject cannot be empty","PERCENT":"Percentage","EXPANSION_VALUE":"Scale-Up Value","STABILIZATION_WINDOW_SECONDS":"Stablization Window (s)","STABILIZATION_WINDOW_SECONDS_DESC":"The stabilization window is used to restrict the fluctuation of replicas count when the metrics used for scaling keep fluctuating.","POLICY_TYPE":"Policy Type","POLICY_PREFERENCE":"Policy Preference","POLICY_PREFERENCE_DESC":"The scaler adopts different policies according to your preference.","POLICY_TYPE_DUPLICATED":"Cannot configure multiple policies of the same type. ","TENDS_TO_SCALE_SIGNIFICANTLY":"Scale greatly","TENDS_TO_EXPAND_SLIGHTLY":"Scale slightly","SCALE_DISABLE":"Disable","EXPANSION_STRATEGY":"Scale-Up Policy","SCALING_STRATEGY":"Scale-Down Policy","EMPTY_POLICY_MESSAGE":"The configuration of the policy cannot be empty. ","TIME_ZONE_DESC":"Set the minimum number of container group replicas allowed, the default value is 0. ","REPLICAS_DESIRED_CRON_TRIGGER_DESC":"Number of replicas to which the resources must be scaled between the time range when a cron schedule starts and ends.","CRON_START":"Start","CRON_END":"End","CRON_START_DESC":" Cron expression directing the start of the cron schedule.","CRON_END_DESC":"Cron expression directing the end of the cron schedule.","EMPTY_TYPE_TRIGGER":"The value of type cannot be null.","ADD_TRIGGER":"Add Trigger","ADD_TRIGGER_DESC":"Add triggers according to the required metrics.","TRIGGER_TYPE":"Trigger Type","PROMETHUS_ADDRESS":"Promethus service address.","INDICATOR_NAME_PROMETHUS_DESC":"If multiple triggers are used, metric names must be unique. ","EXPRESSION_PROMETHUS_DESC":"Set the query expression.","THRESHOLD_PROMETHUS_DESC":"Set the threshold when the trigger start scaling.","SCALE_MINIMUM_REPLICAS_DESC":"Set the minimum number of pod replicas allowed, and the default value is 0.","SCALE_MAXIMUM_REPLICAS_DESC":"Set the maximum number of pod replicas allowed, and the default value is 1.","POLLING_INTERVAL_DESC":"Check the time interval for each trigger. By default, KEDA will check every trigger source on every ScaledObject every 30 seconds.","WAITING_TIME_DESC":"The period to wait after the last trigger reported active before scaling the resource back to 0. The default is 5 minutes (300 seconds). ","SCALE_ROLL_BACK_DESC":"Define the number of replicas to roll back if the scaler is faulty.","SCALE_FAILURE_THRESHOLD_DESC":"Limit the consecutive periods of time when each scaler fails to fetch metrics from its source.","EMPTY_FAILURE_THRESHOLD":"The failure threshold cannot be empty. ","FALLBACK_NUMBER":"Rollback Replicas","FALLBACK_NUMBER_DESC":"Number of rollback replicas after scaler failures exceed the threshold.","EMPTY_FALLBACK_NUMBER_DESC":"The number of rollback replicas cannot be empty.","TRIGGER_SETTING":"Trigger Settings","TRIGGER_SETTING_DESC":"Set the trigger for custom metrics.","RESTORE_TO_ORIGINAL_REPLICA_COUNT":"Restore to the original number of replicas","RESTORE_TO_ORIGINAL_REPLICA_COUNT_DESC":"Specify whether the number of replicas should be restored to the original after the target ScaledObject has been deleted. By default, the number of replicas equals to the number when the ScaledObject has been deleted.","SCALE_BEHAVIOR":"Scaling Behavior","SCALE_BEHAVIOR_DESC":"Configure the scaling behavior of the target ScaledObject.","CREATE_CUSTOM_SCALING":"Create Custom Scaling","CRON_TIME_ZONE_DESC":"One of the acceptable values in the IANA Time Zone Database.","PROMETHEUS_MIN_REPLICA_COUNT_DESC":"If the type the trigger is Prometheus, the minimum number of replicas must be greater than 0.","MIN_REPLICA_COUNT_LESS_THAN_MAX":"The minimum number of replicas cannot be greater than the maximum number of replicas.","RADONDB_APPS":"RadonDB Apps","RADONDB_APPS_DESC":"The RadonDB cloud-native apps provide enterprise-grade database services and products including relational databases, distributed databases, time series and analytical databases, and NoSQL databases.","WHAT_ARE_RADONDB_APPS":"What are RadonDB apps?","ACCESS_ADDRESS_PL":"Access Addresses","DATABASE_STATUS_FAILED":"Failed","DATABASE_STATUS_RUNNING":"Running","DATABASE_STATUS_UPDATING":"Updating","DATABASE_STATUS_CREATING":"Creating","DATABASE_STATUS_TRUE_NOTREADY":"Not ready","DATABASE_STATUS_TRUE_READY":"Ready","DATABASE_STATUS_CREATE_FAILED":"Creation failed","DATABASE_STATUS_UPDATE_FAILED":"Update failed","DATABASE_STATUS_DELETED":"Deleted","DATABASE_STATUS_COMPLETED":"Completed","DATABASE_STATUS_TERMINATING":"Terminating","READ_AND_WRITE_ADDRESS":"Read and Write Address","READ_ONLY_ADDRESS":"Read Only Address","KIBANA_ADDRESS":"Kibana Address","DASHBOARD_ADDRESS":"Dashboard Address","PRIMARY_ADDRESS":"Primary Address","STANDBY_ADDRESS":"Standby Address","DATABASE_OPERATION_WARNING":"This operation may interrupt the database service. Please perform this operation during off-peak hours.","VOLUME":"Volume","NODE_ROLE":"Node Role","CANNOT_REDUCE_VOLUME_SIZE":"The volume size cannot be reduced.","SCALE_OUT":"Scale Out","CANNOT_REDUCE_DATABASE_NODES":"The number of database nodes cannot be reduced.","MYSQL_NODES_DESC":"Number of database nodes. The value can be 2, 3, or 5.","REDIS_SENTINEL_NODES_DESC":"Number of database nodes. The value can be 3, 5, or 7.","MONGODB_NODES_DESC":"Number of database nodes.","NODE_COUNT_DESC":"Number of database nodes. The value range is {min} to {max}.","ADJUST_RESOURCES":"Adjust Resources","RESOURCES":"Resources","RESOURCES_DESC":"Set the CPU and memory resources allocated to the database service.","CORE_GIB":"{core, plural, =1 {1 core} other {# cores}}, {gib} GiB","BACK_UP":"Back Up","BACKUP_NAME_DESC":"The name can contain only lowercase letters, numbers, and hyphens (-), and must start with a lowercase letter. The maximum length is 24 characters.","INVALID_BACKUP_NAME_DESC":"Invalid name. The name can contain only lowercase letters, numbers, and hyphens (-), and must start with a lowercase letter. The maximum length is 24 characters.","BACKUP_NAME_EMPTY_DESC":"Please enter a backup name.","BACKUP_WARNING":"The backup process may cause pressure on database services. Please perform this operation during off-peak hours.","BACKUP_COMFIRM_TIP":"Are you sure you want to create a backup?","BACKUP_POSTGRE_SQL_TIP":"Ten backups are retained by default. If a retention policy is set during scheduled backup, the scheduled backup policy will be used first.","SET_AUTO_BACKUP":"Set Auto Backup","BACKUP_TIME":"Backup Time","BACKUP_DATE":"Backup Date","BACKUP_SCHEDULED_DELETE":"Delete Regularly","BACKUP_RETENTION_DAYS":"Retention Period","BACKUP_DAY":"Days","BACKUP_RETENTION_DAYS_ERROR":"The retention period must be set.","BACKUP_DATE_ERROR":"The backup date must be set.","REBALANCE_NODES":"Rebalance Nodes","POSTGRESQL_NODES_DESC":"The value range is 1 to 8.","REBALANCE_SUCCESS":"Rebalanced successfully.","REBALANCE_FAILED":"Rebalancing failed.","REBALANCING":"Rebalancing","START_REBALANCING":"Start Rebalancing","REBALANCING_HISTORY":"Rebalancing History","REBALANCING_IN_PROGRESS_DESC":"Node rebalancing is in progress. Please wait until node rebalancing is complete.","KAFKA_OPERATION_WARNING":"This operation may interrupt the Kafka service. Please perform this operation during off-peak hours.","UPDATE_VERSION":"Upgrade Version","UPDATE_VERSION_DESC":"Are you sure you want to upgrade this resource?","SHARD":"Shard","SHARD_PL":"Shards","PROXY_NODE":"Proxy node","NODE_IP_ADDRESS_SCAP":"Node IP address","NODE_PORT":"Node port","NO_DATABASE_CONNECTION_AVAILABLE":"No Database Connection Available","MANAGEMENT_NODE":"Management node","PRIMARY_NODE":"Primary node","PRIMARY_NODE_PL":"Primary nodes","HOT_NODE":"Hot node","HOT_NODE_PL":"Hot nodes","WARM_NODE":"Warm node","WARM_NODE_PL":"Warm nodes","COLD_NODE":"Cold node","COLD_NODE_PL":"Code nodes","KIBANA_NODE":"Kibana node","KIBANA_NODE_PL":"Kibana nodes","KAFKA_NODE":"Kafka node","KAFKA_NODE_PL":"Kafka nodes","KAFKA_RESOURCES":"Kafka resources","ZOOKEEPER_NODE":"ZooKeeper node","ZOOKEEPER_NODE_PL":"ZooKeeper nodes","LOGSTASH_NODE":"Logstash node","DASHBOARD_NODE":"Dashboard node","ZOOKEEPER_RESOURCES":"ZooKeeper resources","STANDBY_NODE":"Standby node","STANDBY_NODE_PL":"Standby nodes","SENTINEL_NODE":"Sentinel node","DATABASE_RUNNING_FOR_VALUE":"The database has been running for {value}.","BACKUPS":"Backups","BACKUP":"Backup","BACKUP_LOW":"backup","BACKUP_PL":"Backups","RESTORE_FROM_BACKUP":"Restore from Backup","BACKUP_IN_PROGRESS_DESC":"Cluster backup is in progress.","SIZE_GIB":"Size (GiB)","BACKUP_START_TIME":"Backup Start Time","BACKUP_END_TIME":"Backup End Time","CREATE_BACKUP":"Create Backup","BACKUP_NOT_ALLOWED_DESC":"Data backup is not allowed currently.","DATABASE_USERS":"Database Users","DATABASE_USERS_EMPTY_DESC":"Create a user to access the database.","NO_AUTHENTICATION_DESC":"The authentication type of the database cluster is \"No authentication\". To control uesr access permissions, please change the value of \"Authentication Type\" on the \"Parameters\" tab.","KAFKA_USERS":"Kafka Users","USERCREATION_NOT_ALLOWED":"User creation is not allowed currently.","CANNOT_EDIT_ROOT_USER":"This user is the root user and cannot be edited.","CANNOT_DELETE_ROOT_USER":"This user is the root user and cannot be deleted.","SECRET_KEY":"Secret Key","USER_CERTIFICATE":"User Certificate","VALIDITY_PERIOD":"Validity Period","CA_CERTIFICATE":"CA Certificate","CA_PASSWORD":"CA Password","AUTHORIZATION_RULE":"Authorization Rule","KAFKA_NO_AUTHENTICATION_DESC":"The authentication type of the Kafka cluster is \"No authentication\". To control user access permissions, please change the value of \"Authentication Type\" on the \"Parameters\" tab.","KAFKA_NO_USER_DESC":"Create a user to access Kafka.","DELETE_USER":"Delete User","DATABASE_USERNAME_DESC":"The username can contain only uppercase letters, lowercase letters, numbers, and underscores (_), and must start with an uppercase or lowercase letter. The length must be 2 to 26 characters.","INVALID_DATABASE_USERNAME_DESC":"Invalid username. The username can contain only uppercase letters, lowercase letters, numbers, and underscores (_), and must start with an uppercase or lowercase letter. The length must be 2 to 26 characters.","PG_USERNAME_DESC":"The username can contain only lowercase letters, numbers, and underscores (_), and must start with a lowercase letter. The length must be 2 to 26 characters.","INVALID_PG_USERNAME_DESC":"Invalid username. The username can contain only lowercase letters, numbers, and underscores (_), and must start with a lowercase letter. The length must be 2 to 26 characters.","DATABASE_PASSWORD_DESC":"The password must contain at least one uppercase letter, one lowercase letter, one number, and one special character (!@#$%^&*_+-=). The length must be 8 to 32 characters.","DATABASE_PASSWORD_CHARACTERS":"The password must contain at least one special character (!@#$%^&*_+-=).","DATABASE_PASSWORD_CHARACTERS_EXCLUDE":"Special characters in the password can only be !@#$%^&*_+-=.","INVALID_DATABASE_PASSWORD_DESC":"Invalid password. The password must contain at least one uppercase letter, one lowercase letter, one number, and one special character (!@#$%^&*_+-=). The length must be 8 to 32 characters.","USERNAME_FORBIDDEN_STRINGS":"The username cannot be root or start with radondb_.","USERNAME_CANNOT_BE_PROGRES":"The username cannot be postgres, pgautofailover_monitor, or pgautofailover_replicator.","USERNAME_CANNOT_BE_CLICKHOUSE":"The username cannot be clickhouse_operator.","KAFKA_USERNAME_DESC":"The username can contain only lowercase letters and numbers. The maximum length is 64 characters.","PERMISSIONS":"Permissions","GENERAL_PERMISSIONS":"General permissions","ADVANCED_PERMISSIONS":"Advanced permissions","AUTHENTICATION_MODE":"Authentication Mode","AUTHENTICATION_MODE_INCORRECT_DESC":"The authentication mode is inconsistent with that of the database cluster. The user cannot access the database cluster.","AUTHENTICATION_MODE_INCORRECT_ALERT":"The authentication mode of the database cluster is {cluster}. If the authentication mode of the user is set to {user}, the user cannot access the database cluster.","AUTHORIZATION_MODE":"Authorization Mode","SIMPLE_AUTHORIZATION":"Simple authorization","AUTHORIZATION_MODE_DESC":"Currently, only simple authorization is supported.","AUTHORIZED_DATABASES":"Authorized Databases","AUTHORIZED_DATABASES_DESC":"Databases that the user can access. Enter * (all databases) or a database name.","AUTHORIZED_HOSTS":"Authorized Hosts","AUTHORIZED_HOSTS_DESC":"Hosts that the user can access. Enter % (all hosts), an IP address, or multiple IP addresses separated by commas (,).","PERMISSION_RULE":"Permission Rule","PERMISSION_RULE_DESC":"You can add multiple permission rules for the user.","RESOURCE_TYPE_DESC":"Resource type to which the rule applies.","RESOURCE_MATCHING_MODE":"Resource Matching Mode","RESOURCE_MATCHING_MODE_DESC":"Matching mode for resource names.","PREFIX_DESC":"Prefix matching, applies the rule to all resources whose names start with this value.","LITERAL_DESC":"Literal matching, can be set to *, indicating that the rule applies to all resources.","PREFIX":"Prefix","LITERAL":"Literal","OPERATION":"Operation","OPERATION_DESC":"Select an operation to which the rule applies.","DATABASE_OPERATION_READ":"Read","DATABASE_OPERATION_WRITE":"Write","DATABASE_OPERATION_DELETE":"Delete","DATABASE_OPERATION_ALTER":"Alter","DATABASE_OPERATION_DESCRIBE":"Describe","DATABASE_OPERATION_ALL":"All","DATABASE_OPERATION_IDEMPOTENTWRITE":"Idempotent write","DATABASE_OPERATION_CLUSTERACTION":"Cluster action","DATABASE_OPERATION_CREATE":"Create","DATABASE_OPERATION_ALTERCONFIGS":"Alter configs","DATABASE_OPERATION_DESCRIBECONFIGS":"Describe configs","ALLOW":"Allow","RULE_TYPE_DESC":"Currently, the rule type can only be \"Allow\".","GROUP":"Group","TRANSACTION_ID":"Transaction ID","ACL_DESC":"Set ACL to control permissions of the user according to official Redis rules.","TOPICS":"Topics","MESSAGE_RETENTION_TIME":"Message Retention Time","EDIT_TOPIC":"Edit Topic","TOPIC_CREATION_NOT_ALLOWED":"Topic creation is not allowed currently.","NO_TOPIC_FOUND":"No Topic Found","TOPIC_EMPTY_DESC":"Please create a topic.","CREATE_TOPIC":"Create Topic","TOPIC_NAME_DESC":"The name can contain only lowercase letters, numbers, and hyphens (-), and must start with a lowercase letter. The maximum length is 24 characters.","INVALID_TOPIC_NAME_DESC":"Invalid name. The name can contain only lowercase letters, numbers, point (.), and hyphens (-), and must start with a lowercase letter. The maximum length is 100 characters.","TOPIC_NAME_EMPTY_DESC":"Please enter a topic name.","PARTITION_COUNT":"Partitions","COMPACT":"Compact","INVALID_PARTITION_COUNT_DESC":"Invalid number of partitions. The value cannot be less than {min} or greater than {max}.","TOPIC_REPLICA_COUNT_DESC":"The number of replicas cannot exceed the number of nodes in the Kafka cluster.","CLEANUP_POLICY_DESC":"Whether to delete outdated logs or compress logs by key (Kafka Connect needs to use the compact mode).","CLEANUP_POLICY_DELETE":"Delete","CLEANUP_POLICY_COMPACT":"Compact","MIN_INSYNC_REPLICAS_DESC":"Minimum number of replicas when request.required.acks of the producer is set to 1.","UNCLEAN_LEADER_ELECTION_ENABLE_DESC":"Whether to allow a replica that does not belong to the ISR to be elected as a leader.","SEGMENT_MS_DESC":"Maximum time in milliseconds before a segment is rolled out. The minimum value is 86400000.","RETENTION_MS_DESC":"Time in milliseconds before deleting a log file.","RETENTION_BYTES_DESC":"Maximum size of a log before deleting it. If both retention.ms and retention.bytes are set, the log will be deleted when either of the thresholds is reached. The value -1 indicates that all logs are retained.","MAX_MESSAGE_BYTES_DESC":"Maximum message size at the topic level. If no value is provided, the instance-leval maximum message size 1 MB is used.","ALERT_RULE_GROUP_PL":"Alert Rule Groups","PARAMETER":"Parameter","RANGE":"Range","AUTO_RESTART":"Auto Restart","ALERTING_POLICY_CREATION_NOT_ALLOWED":"Alert rule group creation is not allowed currently.","EDIT_NOT_ALLOWED":"Parameter editing is not allowed currently.","DBPARAM_DATABASE_VERSION":"Kernel Version","DBPARAM_DATABASE_VERSION_DESC":"Database kernel version.","DBPARAM_FSYNC_DESC":"Whether the PostgreSQL server will ensure (if possible) that updates are physically written to disks.","DBPARAM_SHARED_BUFFERS_DESC":"Memory in MB used by the database server as shared buffers.","DBPARAM_TEMP_BUFFERS_DESC":"Maximum size of memory in MB used by each database session as temporary buffers.","DBPARAM_WORK_MEM_DESC":"Maximum size of memory in MB used by query operations before data is written to temporary disk files.","DBPARAM_MAX_WAL_SENDERS_DESC":"Maximum number of WAL sender processes that run simultaneously.","DBPARAM_LOG_MIN_DURATION_STATEMENT_DESC":"Minimum execution time in milliseconds of logged statements.","DBPARAM_MAX_CONNECTIONS_DESC":"Maximum number of concurrent connections.","DBPARAM_WORKER_PROCESSES_DESC":"Maximum number of concurrent worker processes.","DBPARAM_CHECKPOINT_TIMEOUT_DESC":"Maximum interval in seconds between automatic WAL checkpoints.","DBPARAM_AUTOVACUUM_VACUUM_COST_DELAY_DESC":"Cost delay value in milliseconds for autovacuum operations.","DBPARAM_AUTOVACUUM_VACUUM_COST_LIMIT_DESC":"Cost limit value for autovacuum operations.","DBPARAM_AUTOVACUUM_ANALYZE_SCALE_FACTOR_DESC":"Fraction of the table size that triggers an ANALYZE operation of autovacuum.","DBPARAM_AUTOVACUUM_VACUUM_SCALE_FACTOR_DESC":"Fraction of the table size that triggers a VACUUM operation of autovacuum.","DBPARAM_VACUUM_DEFER_CLEANUP_AGE_DESC":"Delay of VACUUM and HOT cleanup operations, measured by the number of transactions.","DBPARAM_SEQ_PAGE_COST_DESC":"The planner's estimate of the cost of a sequential disk page fetch.","DBPARAM_RANDOM_PAGE_COST_DESC":"The planner's estimate of the cost of a non-sequential disk page fetch.","DBPARAM_CPU_TUPLE_COST_DESC":"The planner's estimate of the cost of processing each row during a query.","DBPARAM_CPU_INDEX_TUPLE_COST_DESC":"The planner's estimate of the cost of processing each index entry during an index scan.","DBPARAM_BGWRITER_DELAY_DESC":"Sleep time in milliseconds between activity rounds of the background writer.","DBPARAM_WAL_WRITER_DELAY_DESC":"Sleep time in milliseconds between activity rounds of the WAL writer.","DBPARAM_WAL_WRITER_FLUSH_AFTER_DESC":"Amount of WAL in MB written by the WAL writer that triggers a flush.","DBPARAM_FULL_PAGE_WRITES_DESC":"Whether to set the PostgreSQL server to write the entire content of each disk page to WAL during the first modification of that page after a checkpoint.","DBPARAM_WAL_COMPRESSION_DESC":"Whether to set the PostgreSQL server to compress full pages written to WAL when full_page_writes is on or during a base backup.","DBPARAM_SYNCHRONOUS_COMMIT_DESC":"Amount of WAL processing that needs to be completed before the database server returns a sucess indication to the client.","DBPARAM_MAINTENANCE_WORK_MEM_DESC":"Maximum amount of memory in MB to be used for maintenance operations such as VACUUM, CREATE INDEX and ALTER TABLE ADD FOREIGN KEY.","DBPARAM_MAX_REPLICATION_SLOTS_DESC":"Maximum number of replication slots. Changing the value will cause the database service to restart.","DBPARAM_AUTOVACUUM_DESC":"Whether the server should run the autovacuum launcher daemon.","DBPARAM_VACUUM_COST_DELAY_DESC":"Amount of time that the process will sleep when the cost limit has been exceeded.","DBPARAM_AUTOVACUUM_NAPTIME_DESC":"Minimum delay between autovacuum runs on any given database.","DBPARAM_COMMIT_DELAY_DESC":"Delay in microseconds between transaction commit and flushing WAL to disks.","DBPARAM_COMMIT_SIBLINGS_DESC":"Minimum number of concurrent open transactions before performing commit_delay.","DBPARAM_LOG_MIN_MESSAGES_DESC":"Levels of messages that are written to the server log.","DBPARAM_BGWRITER_LRU_MAXPAGES_DESC":"Maximum number of LRU pages to be flushed by the background writer per round.","DBPARAM_BGWRITER_FLUSH_AFTER_DESC":"Whenever more than this amount of data (in KB) has been written by the background writer, attempts to force the OS to issue these writes to the underlying storage.","DBPARAM_STATEMENT_TIMEOUT_DESC":"Maximum allowed duration in microseconds of any statement. Statements that take more than this amount of time will be aborted.","DBPARAM_IDLE_IN_TRANSACTION_SESSION_TIMEOUT_DESC":"Maximum allowed idle time in microseconds between queries in a transaction. Sessions that have been idle for more than this amount of time will be terminated.","DBPARAM_LOG_STATEMENT_DESC":"Types of SQL statements to be logged.","DBPARAM_LOG_WAL_LEVEL_DESC":"Level of information written to the WAL.","DBPARAM_PG_PORT_DESC":"Port number that the PostgreSQL server listens on. The value cannot be 55555.","PG_PORT_FORBIDDEN_ERROR":"The port number cannot be 55555.","DBPARAM_JIT_DESC":"Whether JIT compilation (if available) can be used by PostgreSQL.","DBPARAM_AUDIT_LOG_POLICY_DESC":"Policy adopted by the audit log plugin when writing events to its log file.","DBPARAM_AUDIT_LOG_FORMAT_DESC":"Audit log file format.","DBPARAM_AUDIT_LOG_ROTATE_ON_SIZE_DESC":"Size of a single audit log file. If the value is not a multiple of 4096, the value is truncated to the nearest multiple of 4096.","DBPARAM_AUDIT_LOG_ROTATIONS_DESC":"Maximum number of audit log files.","DBPARAM_DEFAULT_STORAGE_ENGINE_DESC":"Default storage engine.","DBPARAM_INNODB_BUFFER_POOL_SIZE_DESC":"Buffer pool size. 80% of the memory can be allocated at most. If the value is set to -1, 60% of the memory is allocated. The value is always increased to an integer multiple of (innodb_buffer_pool_chunk_size x innodb_buffer_pool_instances).","DBPARAM_CHARACTER_SET_SERVER_DESC":"Default character set of the database server.","DBPARAM_EXPIRE_LOGS_DAYS_DESC":"Retention period of binary log files.","DBPARAM_LONG_QUERY_TIME_DESC":"Slow query time threshold. SQL statements that take more time than the value of this parameter are considered to be slow queries.","DBPARAM_MAX_CONNECT_ERRORS_DESC":"Maximum number of consecutive connection failures allowed before the database server blocks further connections from a host.","DBPARAM_WAIT_TIMEOUT_DESC":"Maximum number of seconds the database server waits for activity on a noninteractive connection before closing it.","DBPARAM_MAX_ALLOWED_PACKET_DESC":"Maximum packet size. If the value is not a multiple of 1024, the value will be truncated to a multiple of 1024. If you need to change the value, ensure that the value is less than or equal to the value of slave_pending_jobs_size_max. Otherwise, replication between the primary and standby nodes may become abnormal.","DBPARAM_SLAVE_PARALLEL_WORKERS_DESC":"Number of parallel replication threads.","DBPARAM_SKIP_NAME_RESOLVE_DESC":"Whether to forbid domain name resolution.","DBPARAM_AUTOCOMMIT_DESC":"Whether to enable the autocommit mode.","DBPARAM_TRANSACTION_ISOLATION_DESC":"Transaction isolation level.","DBPARAM_INNODB_FLUSH_METHOD_DESC":"InnoDB file flushing method.","DBPARAM_INNODB_USE_NATIVE_AIO_DESC":"Whether InnoDB uses the Linux asynchronous I/O subsystem.","DBPARAM_MONGODB_PORT_DESC":"Port number that the MongoDB server listens on.","DBPARAM_OPLOGSIZEMB_DESC":"Maximum size in MB of the oplog file.","DBPARAM_MAXINCOMINGCONNECTIONS_DESC":"Maximum number of simultaneous connections that mongos or mongod will accept.","DBPARAM_CURSORTIMEOUTMILLIS_DESC":"Expiration threshold in milliseconds for idle cursors before MongoDB removes them.","DBPARAM_PROFILINGMODE_MODE":"Whether to enable the profiling mode.","DBPARAM_SLOWOPTHRESHOLDMS_DESC":"Slow operation time threshold. Operations that take more time than the value of this parameter are considered to be slow operations.","DBPARAM_ENABLEMAJORITYREADCONCERN_DESC":"Whether to use the secure read policy. Changing the value will cause the database service to restart.","DBPARAM_COMMANDVERBOSITY_DESC":"Log message verbosity level for components related to commands.","DBPARAM_INDEXVERBOSITY_DESC":"Log message verbosity level for components related to indexing operations.","DBPARAM_QUERYVERBOSITY_DESC":"Log message verbosity level for components related to query operations.","DBPARAM_NETWORKVERBOSITY_DESC":"Log message verbosity level for components related to networking operations.","DBPARAM_WRITEVERBOSITY_DESC":"Log message verbosity level for components related to write operations.","DBPARAM_MAXMEMORY_DESC":"Maximum size of memory in MB avaiable to Redis.","DBPARAM_ACTIVEREHASHING_DESC":"Whether to enable active rehashing to save memory.","DBPARAM_APPENDONLY_DESC":"Whether to enable AOF persistence.","DBPARAM_APPENDFSYNC_DESC":"AOF sync policy.","DBPARAM_CLUSTER_NODE_TIMEOUT_DESC":"Maximum amount of time in milliseconds a Redis cluster node can be unavailable before it is considered failed.","DBPARAM_LATENCY_MONITOR_THRESHOLD_DESC":"Slow operation time threshold in milliseconds. Operations that take more time than the value of this parameter will be logged. The value 0 indicates that this feature is disabled.","DBPARAM_MAXCLIENTS_DESC":"Maximum number of client connections. The value 0 (default) indicates that the number of client connections is not limited.","DBPARAM_MAXMEMORY_POLICY_DESC":"Policy adopted by Redis when the amount of memory used by Redis reaches the limit.","DBPARAM_MAXMEMORY_SAMPLES_DESC":"Number of samples used for the Redis eviction algorithm when the amount of memory used by Redis reaches the limit.","DBPARAM_MIN_SLAVES_MAX_LAG_DESC":"The primary database allows write operations only when at least min-slaves-to-write standby databases exist and the network delays of the standby databases do not exceed the value of this parameter.","DBPARAM_MIN_SLAVES_TO_WRITE_DESC":"See the decription of min-slaves-max-lag.","DBPARAM_NO_APPENDFSYNC_ON_REWRITE_DESC":"Whether to block fsync() calls when a BGSAVE or BGREWRITEAOF operation is in progress.","DBPARAM_NOTIFY_KEYSPACE_EVENTS_DESC":"Types of notifications sent by Redis.","DBPARAM_REPL_BACKLOG_SIZE_DESC":"Size of replication backlog.","DBPARAM_REPL_BACKLOG_TTL_DESC":"Retention period of replication backlog.","DBPARAM_REPL_TIMEOUT_DESC":"Replication timeout interval.","DBPARAM_SET_MAX_INTSET_ENTRIES_DESC":"Intset encoding is used when a set consists entirely of Base10 64-bit signed integers and the number of elements in the set does not exceed the value of this parameter. ","DBPARAM_SLOWLOG_LOG_SLOWER_THAN_DESC":"Maximum operation execution time in microseconds. Operations that exceed the value of this parameter will be recorded in the slowlog.","DBPARAM_SLOWLOG_MAX_LEN_DESC":"Maximum length of the slowlog.","DBPARAM_HASH_MAX_ZIPLIST_ENTRIES_DESC":"Ziplist encoding is used when a hash object satisfies both of the following conditions: a) The length in bytes of each key and each value of the hash object does not exceed the hash-max-ziplist-value value; b) The number of key-value pairs in the hash object does not exceed the hash-max-ziplist-entries value.","DBPARAM_HASH_MAX_ZIPLIST_VALUE_DESC":"See the description of hash-max-ziplist-entries.","DBPARAM_LIST_MAX_ZIPLIST_ENTRIES_DESC":"Ziplist encoding is used when a list object satisfies both of the following conditions: a) The length in bytes of each element of the list object does not exceed the list-max-ziplist-value value; b) The number of elements in the list object does not exceed the list-max-ziplist-entries value.","DBPARAM_LIST_MAX_ZIPLIST_VALUE_DESC":"See the description of list-max-ziplist-entries.","DBPARAM_ZSET_MAX_ZIPLIST_ENTRIES_DESC":"Ziplist encoding is used when a zset object satisfies both of the following conditions: a) The length in bytes of each element of the zset object does not exceed the zset-max-ziplist-value value; b) The number of elements in the zset object does not exceed the zset-max-ziplist-entries value.","DBPARAM_ZSET_MAX_ZIPLIST_VALUE_DESC":"See the description of zset-max-ziplist-entries.","DBPARAM_LUA_TIME_LIMIT_DESC":"Lua script timeout limit in milliseconds. 0 or a negative value indicates that no timeout limit is used.","DBPARAM_IO_THREADS_DO_READS_DESC":"Whether to enable multi-thread reading.","DBPARAM_IO_THREADS_DESC":"Number of I/O threads.","DBPARAM_LOGFILE_DESC":"Whether to export log information to stdout or a log file.","DBPARAM_THREAD_POOL_WRITE_QUEUE_SIZE_DESC":"Write queue size of the thread pool.","DBPARAM_THREAD_POOL_SEARCH_QUEUE_SIZE_DESC":"Search queue size of the thread pool.","DBPARAM_ACTION_DESTRUCTIVE_REQUIRES_NAME_DESC":"Whether to forbid wildcards and _all during index deletion. You can set this parameter to false to allow wildcards and _all.","DBPARAM_HTTP_CORS_ENABLED_DESC":"Whether to enable cross-origin resource sharing.","DBPARAM_HTTP_CORS_ALLOW_ORIGIN_DESC":"Origins that can be used for cross-origin resource sharing.","DBPARAM_INDICES_FIELDDATA_CACHE_SIZE":"Maximum amount of heap space that can be used as the field datata cache.","DBPARAM_INDICES_MEMORY_INDEX_BUFFER_SIZE_DESC":"Size of heap space allocated to a node to be used as the indexing buffer shared across all shards. The value can be a percentage or byte size.","DBPARAM_INDICES_QUERIES_CACHE_SIZE_DESC":"Memory size for the filter cache. Accepts either a percentage value such as 5% or an exact value such as 512mb. The default value is 10%.","DBPARAM_INDICES_REQUESTS_CACHE_SIZE_DESC":"Size of the shard request cache managed at the node level. The default value is 1% of the heap space.","DBPARAM_REINDEX_REMOTE_WHITELIST_DESC":"Addresses of remote Elasticsearch nodes to be whitelisted so that reindexing is allowed. You can separate multiple addresses by commas (for example, otherhost:9200, 192.168.1.*:9200, localhost:*).","DBPARAM_CLUSTER_ROUTING_ALLOCATION_AWARENESS_ATTRIBUTES_DESC":"Attributes used for shard allocation awareness. The possible values are k8s_node_name and zone and you can separate two values by a comma.","DBPARAM_REPLICACOUNT_DESC":"Number of replicas for each shard. The value cannot be changed after the database cluster is created and the default value is 2.","DBPARAM_TCPPORT_DESC":"TCP port of the database cluster. The default value is 9000.","DBPARAM_HTTPPORT_DESC":"HTTP port of the database cluster. The default value is 8123.","DBPARAM_MAX_SERVER_MEMORY_USAGE":"Maximum amount of memory in bytes available to the ClickHouse server.","DBPARAM_MAX_MEMORY_USAGE":"Maximum amount of memory in bytes available to a single query of the ClickHouse server.","DBPARAM_AUTHENTICATION_TYPE":"Authentication Type","KAFKA_PARAMETERS":"Kafka parameters","KAFKA_USER_PARAMETERS":"User Quotas","ZOOKEEPER_PARAMETERS":"ZooKeeper parameters","KAFKA_EDIT_PARAMS_ERROR":"Failed to set parameters. When Authentication Type is set to TLS, TLS cannot be set to false.","DBPARAM_KAFKA_TLS_DESC":"Whether to enable TLS encryption.","DBPARAM_KAFKA_AUTHENTICATION_TYPE_DESC":"Authentication type of Kafka.","DBPARAM_NODE_PORT":"Node Port","DBPARAM_NODE_PORT_DESC":"Whether to enable KubeSphere node port for external access.","DBPARAM_LOG_RETENTION_BYTES_DESC":"Maximum size in bytes of a partition. The deletion policy will be triggered if a partition exceeds the limit.","DBPARAM_LOG_RETENTION_HOURS_DESC":"Maximum retention time in hours of a log file before deleting it.","DBPARAM_LOG_SEGMENT_BYTES_DESC":"Maximum size in bytes of a segment file.","DBPARAM_LOG_SEGMENT_DELETE_DELAY_MS_DESC":"Amount of time to wait before deleting a segment file.","DBPARAM_LOG_ROLL_HOURS_DESC":"Maximum time in hours before a new segment is rolled out.","DBPARAM_OFFSETS_TOPIC_REPLICATION_FACTOR":"Replication factor for the offsets topic (set higher to ensure availability). Internal topic creation will fail until the cluster size meets this replication factor requirement.","DBPARAM_LOG_CLEANUP_POLICY_DESC":"Default cleanup policy for segments beyond the retention window. The possible values are delete and compact and you can separate two values by a comma.","DBPARAM_LOG_CLEANER_ENABLE_DESC":"Whether to enable the log cleaner process on the server.","DBPARAM_COMPRESSION_TYPE_DESC":"Compression type of a topic.","DBPARAM_MESSAGE_MAX_BYTES_DESC":"Maximum size in bytes of a record batch.","DBPARAM_NUM_NETWORK_THREADS_DESC":"Number of threads that the server uses for receiving requests from the network and sending responses to the network.","DBPARAM_NUM_IO_THREADS_DESC":"Number of threads that the server uses for processing requests, which may include disk I/O.","DBPARAM_NUM_RECOVERY_THREADS_PER_DATA_DIR_DESC":"Number of threads per data directory to be used for log recovery at startup and flushing at shutdown.","DBPARAM_NUM_REPLICA_FETCHERS_DESC":"Number of fetcher threads used to replicate messages from a source broker.","DBPARAM_QUEUED_MAX_REQUESTS_DESC":"Number of queued requests allowed before blocking the network threads.","DBPARAM_REPLICA_LAG_TIME_MAX_MS_DESC":"If a follower has not sent any fetch requests or has not consumed up to the leaders log end offset for at least this time, the leader will remove the follower from the ISR.","DBPARAM_GROUP_MAX_SESSION_TIMEOUT_MS_DESC":"Maximum allowed session timeout for registered consumers.","DBPARAM_GROUP_MIN_SESSION_TIMEOUT_MS_DESC":"Minimum allowed session timeout for registered consumers.","DBPARAM_AUTO_CREATE_TOPICS_ENABLE_DESC":"Whether to enable automatic topic creation.","DBPARAM_MIN_INSYNC_REPLICAS_DESC":"Minimum number of replicas in the ISR set.","DBPARAM_DEFAULT_REPLICATION_FACTORS_DESC":"Default replication factor.","DBPARAM_TICKTIME_DESC":"Basic time unit in milliseconds used by ZooKeeper. It is used for heartbeats and the minimum session timeout will be twice the tickTime.","DBPARAM_INITLIMIT_DESC":"Maximum number of ticks allowed for a follower to connect to and sync data with the leader.","DBPARAM_SYNCLIMIT_DESC":"Maximum number of ticks allowed for a follower to sync data. If the synchronization process exceeds the limit, the follower will be discarded.","DBPARAM_MAXCLIENTCNXNS_DESC":"Maximum number of concurrent connections at the socket level that a single client (identified by IP address) can make to a single member of the ZooKeeper ensemble. This is used to prevent certain classes of DoS attacks such as file descriptor exhaustion.","DBPARAM_AUTOPURGE_SNAPRETAINCOUNT_DESC":"Number of most recent snapshots and the corresponding transaction logs retained when the ZooKeeper auto purge feature is enabled.","DBPARAM_AUTOPURGE_PURGEINTERVAL_DESC":"Interval in hours of auto purge operations. The value 0 indicates that auto purge is disabled.","KAFKA_USER_RESOURCE_NAME_EMPTY_ERROR":"Please enter a resource name.","DBPARAM_KAFKA_PARTITIONS_DESC":"Default number of topic partitions","DBPARAM_PRODUCER_BYTERATE_DESC":"The quota on the maximum number of bytes per second that each client group in the group can produce to the broker before being throttled. range ({min}-{max})","DBPARAM_CONSUMER_BYTERATE_DESC":"The quota on the maximum number of bytes per second that each client group in the group can consume from the broker before being throttled. range ({min}-{max})","DBPARAM_REAUSET_PERCENTAGE_DESC":"Maximum CPU utilization quota for each client group. range ({min}-{max})","DBPARAM_CONTROLLER_MUTATION_DESC":"The rate quota for create topic requests, create partition requests, and delete topic requests. range ({min}-{max})","ACTIVE_CONNECTIONS":"Active Connections","ACTIVE_SESSIONS":"Active Sessions","IDLE_IN_TRANSACTION":"Idle in Transaction","IDLE_CONNECTIONS":"Idle Connections","CACHE_HIT_RATIO":"Cache Hit Ratio","CACHE_HIT_RATIO_EACH_DATABASE":"Cache Hit Ratio of Each Database","ACTIVITY":"Activity","CONNECTIONS":"Connections","DATABASE_SIZE":"Database Size","QUERY_DURATION":"Query Duration","FETCHED_PER_SECOND":"Fetched Rows per Second","INSERTED_PER_SECOND":"Inserted Rows per Second","UPDATED_PER_SECOND":"Updated Rows per Second","DELETED_PER_SECOND":"Deleted Rows per Second","RETURNED_PER_SECOND":"Returned Rows per Second","KEY_COUNTERS":"Key Counters","CONFLICTS_PER_SECOND":"Conflicts per Second","DEADLOCKS_PER_SECOND":"Deadlocks per Second","COMMITS_PER_SECOND":"Commits per Second","ROLLBACKS_PER_SECOND":"Rollbacks per Second","MAX_TX_DURATION":"Maximum Transaction Duration","LOCKS":"Locks","ASYNC_NODE_NUMBER":"Async Nodes","INVALID_STATUS_NODE_NUMBER":"Invalid Nodes","NOT_RUNNING_NODE_NUMBER":"Not Running Nodes","UNHEALTH_NODE_NUMBER":"Unhealthy Nodes","DBPARAM_JMXOPTIONS_DESC":"disable, do not enable JMX; enable, enable JMX; password, enable JMX with password authentication","CLICKHOUSE_DATA_SIZE_ON_DISK":"MergeTree Table Data Size","QUERIES":"Queries","SELECT_QUERIES":"SELECT Queries","ALL_QUERIES":"All Queries","INSERTED_BYTES":"Inserted Data","INSERTED_ROWS":"Inserted Rows","MAXIMUM_REPLICATION_DEPLAY":"Maximum Replication Delay","RELATIVE_DELAY":"Relative Delay","ABSOLUTE_DELAY":"Absolute Delay","TOTAL_PARTS_OF_MERGETREE_TABLES":"Total Parts of MergeTree Tables","DELAYED_REJECTED_INSERTS":"Delay/Rejected Inserts","DELAYED_QUERIES":"Delayed Queries","DELAYED_BLOCKS":"Delayed Blocks","REJECTED_BLOCKS":"Rejected Blocks","DELAYED_DISTRIBUTED_FILES":"Delayed Distributed Files","READ_BYTES":"Read Bytes","UNCOMPRESSED":"Uncompressed","COMPRESSED":"Compressed","FILE_DESCRIPTOR":"File Descriptor","CLICKHOUSE_OS":"OS","MEMORY_FOR_QUERIES":"Memory for Queries","REPLICATION_QUEUE_JOBS":"Replication Queue Jobs","DATA_LOSS":"Data Loss","CHECK":"Checks","CHECK_FAIL":"Failed Checks","FETCH":"Fetches","FETCH_FAIL":"Failed Fetches","FETCH_MERGED":"Merged Part Fetches","REPLICATED_MERGED":"Successful Merges","MAX_QUEUE_SIZE":"Maximum Queue Size","MERGES":"Merges","MERGED_ROWS":"Merged Rows","MERGED_UNCOMPRESSED_BYTES":"Merged Uncompressed Bytes","ACTIVE_PARTS":"Active Parts","DETACHED_PARTS":"Detached Parts","MAX_PART_COUNT_FOR_PARTITION":"Maximum Parts for Partition","CLICKHOUSE_SERVER_PROCESS_MEMORY":"clickhouse-server Process Memory","PRIMARY_KEYS_MEMORY":"Memory for Primary Keys","DICTIONARY_MEMORY":"Dictionary Memory","MARKS_CACHE_HIT_RATE":"Mark Cache Hit Ratio","BACKGROUND_TASKS":"Background Tasks","MERGE_MUTATE_FETCH":"Merge/Mutate/Fetch","CLEAN_ALTER_REPLICA_REINIT":"Clean/Alter/Replica Re-init","MOVES":"Move","MUTATIONS":"Mutations","PARTS_TO_DO":"Parts to Do","CPU_TIME_PER_SECOND":"CPU Time per Second","DISK_READ_SYSCALL":"Disk Read Syscall","DISK_WRITE_SYSCALL":"Disk Write Syscall","NETWORK_RECEIVE":"Network Receive","NETWORK_SEND":"Network Send","REAL_TIME":"Real Time","USER_TIME":"User Time","SYSTEM_TIME":"System Time","OS_IO_WAIT":"OS I/O Wait","OS_CPU_WAIT":"OS CPU Wait","OS_CPU_VIRTUAL":"OS CPU Virtual Time","MAX_USED_CONNECTIONS":"Maximum Used Connections","THREADS":"Threads","PEAK_THREADS_CONNECTED":"Peak Threads Connected","PEAK_THREADS_RUNNING":"Peak Threads Running","AVG_THREADS_RUNNING":"Average Threads Running","ABORTED_CONNECTIONS":"Aborted Connections","ABORTED_CONNECTION_ATTEMPTS":"Aborted Connection Attempts","ABORTED_CLIENT_TIMEOUTS":"Client Timeouts","QUESTIONS":"Questions","SELECT_BY_TYPE":"Selects","SELECT_FULL_JOIN":"Select Full Join","SELECT_FULL_RANGE_JOIN":"Select Full Range Join","SELECT_RANGE":"Select Range","SELECT_FULL_RANGE":"Select Full Range","SELECT_RANGE_CHECK":"Select Range Check","SELECT_SCAN":"Select Scan","SORT_BY_TYPE":"Sorts","SORT_ROWS":"Sort Rows","SORT_RANGE":"Sort Range","SORT_MERGE_PASSES":"Sort Merge Passes","SORT_SCAN":"Sort Scan","SLOW_QUERIES":"Slow Queries","TABLE_LOCKS":"Table Locks","TABLE_LOCKS_IMMEDIATE":"Table Locks Immediate","TABLE_LOCKS_WAITED":"Table Locks Waited","TMP_TABLES_AND_FILES":"Temporary Tables and Files","CREATED_TMP_TABLES":"Created Temporary Tables","CREATED_TMP_DISK_TABLES":"Created Temporary Disk Tables","CREATED_TMP_FILES":"Created Temporary Files","MYSQL_NETWORK_TRAFFIC":"Network Traffic","MYSQL_INBOUND":"Inbound","MYSQL_OUTBOUND":"Outbound","CLUSTER_TASK_WAITING_TIME":"Cluster Task Waiting Time","CLUSTER_TASK_STATUS":"Cluster Task Status","CLUSTER_NUMBER_OF_IN_FLIGHT_FETCH":"In-Flight Fetches","CLUSTER_NUMBER_OF_PENDING_TASKS":"Pending Tasks","CLUSTER_NUMBER_OF_NODES":"Nodes","CLUSTER_NUMBER_OF_DATA_NODES":"Data Nodes","CLUSTER_NUMBER_OF_ALL_NODES":"All Nodes","SHARD_STATUS":"Shard Status","CLUSTER_DELAYED_UNASSIGNED_SHARDS":"Delayed Unassigned Shards","CLUSTER_INITIALIZING_SHARDS":"Initializing Shards","CLUSTER_RELOCATING_SHARDS":"Relocating Shards","CLUSTER_UNASSIGNED_SHARDS":"Unassigned Shards","CLUSTER_ACTIVE_PRIMARY_SHARDS":"Active Primary Shards","CLUSTER_ACTIVE_SHARDS":"Active Shards","CLUSTER_HEALTH_STATUS":"Cluster Health Status","CLUSTER_HEALTH_STATUS_GREEN":"Green","CLUSTER_HEALTH_STATUS_YELLOW":"Yellow","CLUSTER_HEALTH_STATUS_RED":"Red","HEAP_MEMORY":"Heap Memory","JVM_MEMORY_HEAP_USAGE_PER":"JVM Memory Heap Usage","DATA_AVAILABLE_BYTES":"Available Disk Space","DATA_AVAILABLE_PERCENT":"Available Disk Percentage","ECK_CPU_USAGE":"CPU Usage","OS_LOAD":"OS Load","OS_LOAD1":"OS Load (1 minute)","OS_LOAD5":"OS Load (5 minutes)","OS_LOAD15":"OS Load (15 minutes)","DOC_STATISTICS":"Doc Statistics","ELASTICSEARCH_INDICES_DOCS":"Docs","ELASTICSEARCH_INDICES_DOCS_DELETED":"Deleted Docs","ELASTICSEARCH_INDICES_INDEXING_INDEX_QPS":"Indexing QPS","ELASTICSEARCH_INDICES_SEARCH_QUERY_QPS":"Search QPS","ELASTICSEARCH_INDICES_INDEXING_TIME_MS":"Indexing Time","ELASTICSEARCH_INDICES_SEARCH_TIME_MS":"Search Time","CLUSTER_SHARDS_ACTIVE_PERCENT":"Active Shards","ONLINE_BROKER_COUNT":"Online Brokers","PARTITIONS_UNDER_MINIMUM_ISR":"Partitions Under Minium ISR","OFFLINE_PARTITION_COUNT":"Offline Partitions","TOPIC_INCOMING_DATA_RATE":"Incoming Bytes per Second","TOPIC_OUTGOING_DATA_RATE":"Outgoing Bytes per Second","TOPIC_INCOMING_MESSAGE_RATE":"Incoming Messages per Second","KAFKA_OPEN_FILE_DESC":"Open File Descriptors","TOPIC_OUTGOING_MESSAGE_RATE":"Total Produce Request Rate","NETWORK_PROCESSOR_AVG_IDLE_PERCENT":"Idle Network Processor Ratio","DISK_WRITES":"Disk Write","DISK_READS":"Disk Read","KAFKA_MEMORY_USAGE":"Memory Usage","KAFKA_CPU_USAGE":"CPU Usage","JVM_MEMORY_USAGE":"JVM Memory Usage","JVM_THREAD_COUNT":"JVM Threads","AVAILABLE_DISK_SPACE":"Available Disk Space","ALL_KAFKA_NODES":"All Kafka nodes","ALL_ZOOKEEPER_NODES":"All ZooKeeper nodes","OP_COUNTERS":"Operations","OP_INSERT":"Insert","OP_QUERY":"Query","OP_UPDATE":"Update","OP_DELETE":"Delete","OP_GETMORE":"Get More","OP_COMMAND":"Total","OPREPL_COUNTERS":"Replica Set Operations","OPREPL_INSERT":"Insert","OPREPL_QUERY":"Query","OPREPL_UPDATE":"Update","OPREPL_DELETE":"Delete","OPREPL_GETMORE":"Get More","OPREPL_COMMAND":"Total","CONNECTIONS_CURRENT":"Current","CONNECTIONS_TOTALCREATED":"Total Created","CONNECTIONS_AVAILABLE":"Available","CONNECTIONS_ACTIVE":"Active","CURSOR_COUNT":"Cursors","CURSOR_TIMEDOUT":"Timeout","CURSOR_OPEN_NOTIMEOUT":"No Timout","CURSOR_OPEN_PINNED":"Pinned","CURSOR_OPEN_TOTAL":"Total","MONGODB_NETWORK_TRAFFIC":"Network Traffic","NETWORK_BYTESIN":"Inbound Traffic","NETWORK_BYTESOUT":"Outbound Traffic","WIREDTIGER_OPERATION_COUNT":"WiredTiger Operations","WT_WRITE_OUT":"Concurrent Write Operations","WT_WRITE_AVAILABLE":"Available Concurrent Write Operations","WT_READ_OUT":"Concurrent Read Operations","WT_READ_AVAILABLE":"Available Concurrent Read Operations","DOC_COUNT":"Docs","DOC_DELETED":"Deleted Docs","DOC_INSERTED":"Inserted Docs","DOC_RETURNED":"Returned Docs","DOC_UPDATED":"Updated Docs","QUERYEXECUTOR":"Query Executor Metrics","SCANNEDKEYS":"Scanned Keys","SCANNEDDOCS":"Scanned Docs","ACTIVECLIENTS":"Active Clients","CLIENTS_TOTAL":"Total Clients","CLIENTS_READERS":"Read Clients","CLIENTS_WRITERS":"Write Clients","QUEUED_OPERATIONS":"Queued Requests","QUEUE_TOTAL":"Total","QUEUE_READERS":"Queued Read Requests","QUEUE_WRITERS":"Queued Write Requests","WIREDTIGER_CACHE":"WiredTiger Cache","WIREDTIGER_CACHE_USAGED":"Cache Usage","WIREDTIGER_CACHE_DIRTY_USAGE":"Dirty Data Ratio","OPENSEARCH_HEAP_MEMORY":"Heap Memory","OPENSEARCH_HEAP_MEMORY_PER":"Heap Memory Usage","OPENSEARCH_CPU_USAGE":"CPU Usage Percentage","OPENSEARCH_CPU_USAGE_PER":"CPU Usage","CPU_LOAD":"CPU Load","CPU_LOAD1":"CPU Load (1 minute)","CPU_LOAD5":"CPU Load (5 minutes)","CPU_LOAD15":"CPU Load (15 minutes)","EVENTS_STATISTICS":"Event Statistics","IN_EVENTS_STATISTICS":"Inbound Events","FILTERED_EVENTS_STATISTICS":"Filtered Events","OUT_EVENTS_STATISTICS":"Outbound Events","QUEUE_EVENTS_COUNT":"Events in Queue","JVM_THREADS_COUNT":"JVM Threads Count","DBPARAM_PIPELINE_WORKERS_DESC":"Number of Worker Threads","DBPARAM_PIPELINE_BATCH_SIZE_DESC":"Maximum number of events processed per batch by worker threads. Larger numbers consume more memory and require JVM heap adjustments.","DBPARAM_PIPELINE_BATCH_DELAY_DESC":"Maximum time in milliseconds that worker threads wait for a full batch before processing. ","DBPARAM_PIPELINE_UNSAFE_SHUTDOWN_DESC":"Whether to allow pipeline shutdown when events are still being processed.","DBPARAM_PIPELINE_ORDERED_DESC":"Pipeline event ordering setting. \"auto\" for automatic ordering, \"true\" for ordering with a single worker thread, \"false\" for no ordering.","DBPARAM_ECS_COMPATIBILITY_DESC":"Default value to use if the plugin supports ECS compatibility.","DBPARAM_LOG_LEVEL_DESC":"Logging Level","DBPARAM_LOG_FORMAT_DESC":"Logging Format","DBPARAM_LOG_JVM_DESC":"JVM heap size, typically set to 50%-75% of available memory. Defaults to 50% of available memory.","PREDIXY_MEMORY_USAGE":"Memory Usage","CLIENT_COUNT":"Clients","RECV_CLIENT_BYTES":"Bytes per Minute from Client","RECV_SERVER_BYTES":"Bytes per Minute from Server","SEND_CLIENT_BYTES":"Bytes per Minute to Client","SEND_SERVER_BYTES":"Bytes per Minute to Server","COMMANDS_EXECUTED_PER_MINUTE":"Commands Executed per Minute","REDIS_CLUSTER_COUNT":"Redis Clusters","REDIS_MEMORY_USAGE":"Memory Usage","REDIS_USED_MEMORY":"Used","REDIS_MAX_MEMORY":"Total","NETWORK_IO":"Network I/O","NETWORK_INPUT_BYTES":"Received Bytes (5 minutes)","NETWORK_OUTPUT_BYTES":"Sent Bytes (5 minutes)","TOP_5_REDIS_COMMANDS_PER_MINUTE":"Top 5 Commands per Minute","TOTAL_DB_KEYS":"Total Database Keys","DB_KEYS":"Database Keys","VALID_KEYS":"Valid Keys","EXPIRED_KEYS":"Expired Keys","KEYSPACE":"Keyspace","KEYSPACE_HITS_TOTAL":"Total Hits","KEYSPACE_MISSES_TOTAL":"Total Misses","MEMORY_FRAGMENTATION_RATIO":"Memory Fragmentation Ratio","REJECTED_CONNECTION_RATIO":"Ratio of Rejected Connections","REVICTED_KEY_RATIO":"Revicted Keys","QUORUM_SIZE":"Quorum","ZNODE_COUNT":"Znodes","WATCHER_COUNT":"Watchers","ZOOKEEPER_MEMORY_USAGE":"Memory Usage","ZOOKEEPER_CPU_USAGE":"CPU Usage","OPEN_FILE_DESCRIPTORS":"Open File Descriptors","REQUEST_LATENCY_AVERAGE":"Average Request Latency","REQUEST_LATENCY_MAXIMUM":"Maximum Request Latency","SHARD_COUNT":"Shards","SHARDS_DESC":"Number of shards. The value range is 1 to 100.","CK_REPLICAS_DESC":"Number of replicas for each shard. The value range is 1 to 3.","HTTP_PORT":"HTTP Port","HTTP_PORT_DESC":"The value range is 0 to 65535.","DATABASE_STORAGE_CLASS_DESC":"If no storage classs meets the requirements, please contact a platform administrator to create a storage class.","DATABASE_NODE_TIP":"A database node is a logical database instance rather than a physical server.","VALUE_RANGE_DESC":"The value range is {min} to {max}.","VALUE_MUST_BE_INTEGER":"The value must be an interger.","VALUE_CANNOT_BE_GREATER_THAN_VALUE":"The value cannot be greater than {max}.","VALUE_CANNOT_BE_LESS_THAN_20":"The value cannot be less than 20.","DATA_NODE_COUNT":"Data Nodes","STANDBY_DATABASE_COUNT":"Standby Databases","PROJECT_NAME_EXCEEDS_LIMIT":"The project name for MySQL 5.7 cannot exceed 16 characters.","APP_NAME_EXCEED_LIMIT":"The app name for MySQL 5.7 cannot exceed 14 characters.","DATABASE_KERNEL_VERSION_DESC":"Select the database version.","STANDBY_DATABASE_COUNT_DESC":"Number of standby databases. The value can be 1, 2, or 4.","VALUE_CANNOT_BE_LESS_THAN_10":"The value cannot be less than 10.","PRIMARY_NODE_SETTINGS":"Primary Node Settings","PRIMARY_NODE_RESOURCES_DESC":"Set the CPU and memory resources allocated to each primary node.","PRIMARY_NODE_COUNT":"Primary Nodes","PRIMARY_NODE_COUNT_DESC":"Set the number of primary nodes.","HOT_NODE_SETTINGS":"Hot Node Settings","HOT_NODE_RESOURCES_DESC":"Set the CPU and memory resources allocated to each hot node.","HOT_NODE_COUNT":"Hot Nodes","WARM_NODE_SETTINGS":"Warm Node Settings","WARM_NODE_RESOURCES_DESC":"Set the CPU and memory resources allocated to each warm node.","WARM_NODE_COUNT":"Warm Nodes","COLD_NODE_SETTINGS":"Cold Node Settings","COLD_NODE_RESOURCES_DESC":"Set the CPU and memory resources allocated to each cold node.","COLD_NODE_COUNT":"Cold Nodes","KIBANA_NODE_SETTINGS":"Kibana Node Settings","KIBANA_NODE_RESOURCES_DESC":"Set the CPU and memory resources allocated to each Kibana node.","KIBANA_NODE_COUNT":"Kibana Nodes","VOLUMN_PERSIST":"The size of the volume on the primary node is 20 GiB and cannot be modified.","REDIS_NODE":"Redis node","REDIS_NODE_COUNT":"Redis Nodes","REDIS_NODE_COUNT_DESC":"Number of nodes in the Redis cluster.","PROXY_NODE_COUNT":"Proxy Nodes","PROXY_NODE_RESOURCES":"Proxy Node Resources","ENDPOINT_TYPE":"External Access","ENDPOINT_TYPE_DESC":"Whether to use domain names to access database shards from outside the KubeSphere cluster.","ENDPOINT_TYPE_ERROR":"Before enabling this feature, ensure that no proxy nodes exist in the database cluster.","REDIS_PASSWORD_DESC":"The password can contain only uppercase letters, lowercase letters, numbers, and special characters (!@#$%^&*()./;). The length must be 6 to 31 characters.","INVALID_REDIS_PASSWORD_DESC":"Invalid password. The password can contain only uppercase letters, lowercase letters, numbers, and special characters (!@#$%^&*()./;). The length must be 6 to 31 characters.","VOLUME_CAPACITY_CANNOT_REDUCE":"The volume size cannot be reduced.","KAFKA_SETTINGS":"Kafka Settings","KAFKA_NODE_RESOURCES_DESC":"Set the CPU and memory resources allocated to each Kafka node.","KAFKA_VERSION":"Kafka Version","KAFKA_NODE_COUNT":"Kafka Nodes","ZOOKEEPER_SETTINGS":"ZooKeeper Settings","ZOOKEEPER_NODE_RESOURCES_DESC":"Set the CPU and memory resources allocated to each ZooKeeper node.","ZOOKEEPER_NODE_COUNT":"ZooKeeper Nodes","DASHBOARD_NODE_SETTINGS":"Dashboard Node Settings","DASHBOARD_NODE_RESOURCES_DESC":"Set the CPU and memory resources allocated to each dashboard node.","DASHOBOARD_NODE_COUNT":"Dashboard Nodes","LOGSTASH_NODE_SETTINGS":"Logstash Node Settings","LOGSTASH_NODE_RESOURCES_DESC":"Set the CPU and memory resources allocated to each Logstash node.","LOGSTASH_NODE_COUNT":"Logstash Nodes","MONGODB_NODE_COUNT_DESC":"Number of database nodes.","OTHER_APP_EMPTY_DESC":"This page shows apps that you installed by running the helm command.","OTHER_APP_PL":"Other Apps","UPLOAD_FAILED_MESSAGE":"Upload failed. {message}","GPU_USAGE_TIME":"GPU Usage ({time})","GPU_MEMORY_USAGE_TIME":"Graphics Memory Usage ({time})","PVC_USAGE_TOOLTIP_MESSAGE":"Persistent volume usage of the current project (the data may be inaccurate if file storage is used).","PROJECT_MEMBERS_AND_ROLES":"Project Members and Roles","RECENTLY_LOGGED_IN_MEMBERS":"Recently Logged In Users","PROJECT_ALERTS":"Project Alerts","ENT_CLUSTER_GATEWAY_GUIDE_DESC":"If the cluster gateway, workspace gateway and project gateway exist at the same time, the project gateway cannot be enabled after it is disabled. You are advised to used either the cluster gateway or workspace gateway.","WORKSPACE_GATEWAY_GUIDE_DESC":"If the workspace gateway and project gateway both exist, the project gateway cannot be enabled after it is disabled. You are advised to used either the workspace gateway or project gateway.","ROLL_BACK_MICROSERVICE_CONFIGURATION":"Roll Back Microservice Configuration","ROLLBACK_SUCCESSFUL":"Rolled back successfully.","HISTORICAL_VERSIONS":"Historical Versions","CONFIGURATION_CONTNET_TYPE":"Data ({type})","SQ_CONFIGURATION":"Microservice Configuration","SQ_CONFIGURATION_PL":"Microservice Configurations","SQ_CONFIGURATION_DESC":"Microservice configurations store key-value data to be used by microservices. You can use microservice configurations to separate a microservice from its configuration data.","SQ_CONFIGURATION_EMPTY_DESC":"Please create a microservice configuration. ","CONFIGURATION_STATUS_SUCCEEDED":"Published","CONFIGURATION_STATUS_FAILED":"Failed","CONFIGURATION_STATUS_":"Updating","DATA_ID":"Data ID","CREATE_CONFIGURATION":"Create Microservice Configuration","CONFIGURATION_CONTENT":"Data","CONFIGURATION_CONTENT_EMPTY_DESC":"Please enter configuration data.","EDIT_CONFIGURATION":"Edit Microservice Configuration","ORIGINAL_CONFIGURATION_CONTENT_READONLY":"Original Data (read-only)","CURRENT_CONFIGURATION_CONTENT":"New Data","REPLICATE":"Replicate","REPLICATE_CONFIGURATION_NAME":"Replicate Microservice Configuration {name}","SQ_CONFIGURATION_LOW":"microservice configuration","MICROSERVICE_GATEWAY":"Microservice Gateway","MICROSERVICE_GATEWAY_PL":"Microservice Gateways","MICROSERVICE_GATEWAY_DESC":"The microservice gateway forwards requests to microservices according to microservice routes so that microservices can be accessed by other microservices or clients.","MICROSERVICE_GATEWAY_EMPTY_DESC":"No Microservice Gateway Found","MICROSERVICE_GATEWAY_EMPTY_TIP":"Please create a microservice gateway.","GATEWAY_TYPE":"Gateway type","MICROSERVICE_GATEWAY_STATUS_RUNNING":"Running","MICROSERVICE_GATEWAY_STATUS_UPDATING":"Updating","MICROSERVICE_GATEWAY_STATUS_STOPPED":"Stopped","MICROSERVICE_GATEWAY_STATUS_":"Creating","CREATE_MICROSERVICE_GATEWAY":"Create Microservice Gateway","GATEWAY_IMAGE_EMPTY_DESC":"Please set the container image used to create the microservice gateway.","REPLICA_COUNT_EMPTY_DESC":"Please enter the number of replicas of the microservice gateway.","EDIT_MICROSERVICE_GATEWAY":"Edit Microservice Gateway","MICROSERVICE_GATEWAY_LOW":"microservice gateway","MICROSERVICE_ROUTE":"Microservice Route","MICROSERVICE_ROUTE_LOW":"microservice route","MICROSERVICE_ROUTE_PL":"Microservice Routes","MICROSERVICE_ROUTE_DESC":"The microservice gateway forwards requests to microservices according to microservice routes so that microservices can be accessed by other microservices or clients.","MICROSERVICE_ROUTE_EMPTY_DESC":"Please create a microservice route. Before creating a microservice route, ensure that a microservice gateway is available.","CREATE_MICROSERVICE_ROUTE":"Create Microservice Route","MICROSERVICE_ORDER":"Order","MICROSERVICE_ORDER_DESC":"Priority of the microservice route. A smaller number indicates higher priority.","MICROSERVICE_ROUTE_URL_DESC":"URL of a microservice.","PREDICATE":"Predicate","MICROSERVICE_ROUTE_FILTER":"Filter","EDIT_MICROSERVICE_ROUTE":"Edit Microservice Route","NO_INSTANCE_FOUND":"No Instance Found","MICROSERVICE_INSTANCE_PL":"Instances","MICROSERVICE_INSTANCE_STATUS":"Instance Status","MICROSERVICE_INSTANCE_ID":"Instance ID","SPRING_CLOUD_METADATA":"Spring Cloud Metadata","POD_METADATA":"Pod Metadata","SPRING_CLOUD_MONITORING":"Spring Cloud Monitoring","JVM_THREADS_LIVE":"Active Threads","JVM_THREADS_DAEMON":"Daemons","JVM_THREADS_PEAK":"Peak Threads","JVM_MEMORY_USED":"Used","JVM_MEMORY_COMMITTED":"Available","JVM_MEMORY_MAX":"Maximum","JVM_MEMORY_USED_METASPACE":"Initial","SPRING_BOOT_CONFIGURATION_INFOMATION":"Spring Boot Environment Variables {resources}","PROPERTY_NOT_SET":"No Environment Variable Found","POD_ENVIRONMENT_VARIABLE":"Pod Environment Variables","SPRING_CLOUD":"Spring Cloud","MICROSERVICE":"Microservice","MICROSERVICE_PL":"Microservices","MICROSERVICE_DESC":"In the Spring Cloud architecture, you can build a large scale application composed of multiple microservices. Microservices handle requests from clients. Each microservice contains one or more instances and each instance is a replica of the microservice.","WHAT_IS_SERVICE_REGISTRATION_CENTER_Q":"What is the service registry?","WHAT_IS_SERVICE_REGISTRATION_CENTER_A":"The service registry is the core functional component of the Spring Cloud microservice architecture. The service registry stores information about microservices and mapping between microservices and microservice addresses.","SERVICE_REGISTRY":"Service Registry","SERVICE_REGISTRY_ADDRESS":"Service registry address","DOWNLOAD_SAMPLE_CONFIGURATION":"Download Sample Configuration","INSTANCE":"Instance","INSTANCE_PL":"Instances","HEALTHY_INSTANCE":"Healthy instance","HEALTHY_INSTANCE_PL":"Healthy instances","MICROSERVICE_INSTANCE_COUNT":"Instances","MICROSERVICE_HEALTHY_INSTANCE_COUNT":"Healthy Instances","HEALTH_PROTECTION_TRIGGERED":"Health Protection Triggered","MICROSERVICE_EMPTY_DESC":"Please create a microservice.","SPRING_CLOUD_PROJECT_NOT_LABEL":"Spring Cloud stock project","SPRING_CLOUD_PROJECT_NOT_LABEL_DESC":"Whether to enable Spring Cloud under this project","OPEN_PROJECT_SPRING_CLOUD":"Enable Spring Cloud","MICROSERVICE_INSTANCE_STATUS_RUNNING":"Running","MICROSERVICE_INSTANCE_STATUS_OFFLINE":"Offline","EDIT_WEIGHT":"Edit Weight","INSTANCE_WEIGHT_DESC":"Weight of the microservice instance.","TAKE_ONLINE":"Take Online","TAKE_ONLINE_SUCCESS":"Take Online Success","CREATE_MICROSERVICE":"Create Microservice","ASC_EXPORT":"Ascending","DESC_EXPORT":"Descending","LOG_EXPORT":"Log Export","END_USER_SOFTWARE_LICENSE_AGREEMENT":"End User Software License Agreement","END_USER_SOFTWARE_LICENSE_AGREEMENT_LINK":"End User Software License Agreement","PLEASE_AGREE_USER_SOFTWARE_LICENSE_AGREEMENT":"Please agree to the End User Software License Agreement.","WORKSPACE_GATEWAY_DESC":"Set up and manage the configuration of the external network access gateway and service management in the workspace and project.","WORKSPACE_GATEWAY":"Workspace Gateway","WORKSPACE_GATEWAY_LOW":"workspace gateway","PROJECT_ENABLE_GATEWAY_DESC_WS":"If you need to set up a project gateway, please go to the corresponding project to open it.","CLUSTER_GATEWAY_GUIDE_DESC_WS":"If the cluster gateway and workspace gateway both exist, the workspace gateway cannot be enabled after it is disabled. You are advised to used either the cluster gateway or workspace gateway.","CLUSTER_NOT_SUPPORT_WORKSPACE_GATEWAY":"This cluster does not support this feature. If you need to use this feature, please upgrade the cluster to KubeSphere Enterprise 3.4.0 or later.","STORAGE_RELATED_RESOURCE_LIMIT":"Limit on Resources Bound with Storage Class","TOTAL_STORAGE_CLASS":"Total Storage Classes","LIMITED_STORAGE_CLASS":"Number of Limited Storage Classes","RELATED_RESOURCE_QUOTA":"Bound Resource Quota","REQUESTS_STORAGE":"PVC Limit","PERSISTENTVOLUMECLAIMS":"PVC","TOTAL_STORAGE_RESOURCE":"Total Storage Resources","STORAGE_RELATED_RESOURCE":"Storage Class Bound Resources","TOTAL_STORAGE_LIMIT_LESS_THAN_RELATE_RESOURCE":"The total limit of storage resources cannot be less than that of bound resources.","VOLUME_TOTAL_CAPACITY":"Total Capacity of PVCs ({unit})","VOLUME_MAX_NUM":"Total PVCs","SET_RELATED_STORAGE_CLASS_QUOTA":"Set the quota for the PVC bound with the storage class.","SELECT_STORAGE_CLASS":"Select Storage Class","STORAGE_QUOTA":"Storage Resource Quota","WS_STORAGE_QUOTA_DESC":"Limit the the total amount of storage resources under the workspace.","NS_STORAGE_QUOTA_DESC":"Limit the the total amount of storage resources under the project.","STORAGE_VOLUME_LIMIT_NO_LIMIT":"Resource limits: no limit on the PVC capacity","STORAGE_VOLUME_LIMIT_HAS_A_LIMIT":"Resource limits: PVC capacity {num} Gi","STORAGE_PERSISTENT_VOLUME_NO_LIMIT":"No limit on the number of PVCs.","STORAGE_PERSISTENT_VOLUME_HAS_A_LIMIT":"number of PVCs {num}","STORAGE_LIMIT":"PVC capacity limit","STORAGE_CLASS_VOLUME":"Number of PVCs","SELECT_A_STORAGECLASS":"Select Storage Class","VOLUME_COUNT":"Bound PVCs","SELECT_ADD_CLUSTER_METHOD":"Choose how to add a cluster","SELECT_ADD_CLUSTER_METHOD_DESC":"Support for adding new clusters and importing existing clusters.","CLUSTER_NODE_SETTINGS_DESC":"add the nodes for the cluster","K8S_CLUSTER_SETTINGS_DESC":"Initially configure the new Kubernetes cluster.","CLUSTER_MAX_PODS_DESC":"maxPods is the number of pods that can run on this Kubelet. [Default: 110].","KUBE_PODS_CIDR_DESC":"The pod running on the node allocates IP addresses from the node's pod CIDR range.","KUBE_SERVICE_CIDR_DESC":"IP address range assigned to the service.","CLUSTER_COMPONENTS_DESC":"Customize the service components of the cluster.","CLUSTER_ADVANCED_SETTINGS_DESC":"You can configure the services you need according to your needs.","CLUSTER_PRIVATE_REGISTRY_DESC":"Configure a private registry for the cluster. The cluster will use this registry to pull all the required mirrors.","CLUSTER_CONTROLPLANE_ENDPOINT":"Cluster Access EndPoint","CLUSTER_CONTROLPLANE_ENDPOINT_DESC":"Directly communicate with the cluster through the authorized cluster access address, and generate kubeconfig for the cluster to access the cluster.","CLUSTER_ETCD_BACKUP_DESC":"Make regular backup settings for etcd","CLUSTER_ETCD_BACKUP_DIR_DESC":"The location to store etcd backups files on etcd host machines.","CLUSTER_ETCD_BACKUP_PERIOD_DESC":"Period of running backup etcd job, the unit is minutes.","CLUSTER_ETCD_BACKUP_NUMBER_DESC":"How many backup replicas to keep.","CLUSTER_KUBESPHERE_SETTINGS_DESC":"Customized settings for KubeSphere","MASTER_NODE_COUNT_TIP":"The number of Master nodes needs to be 1 or 3","WORKER_NODE_COUNT_TIP":"The number of Worker nodes is at least 1","HOW_TO_ADD":"How to Add","DOMAIN":"Domain","NODE_ROLE_EMPTY_DESC":"Please set the role of the node in the cluster.","EXTERNAL_IP":"External IP Address","SSH_KEY_TCAP":"SSH Key","SSH_KEY_SCAP":"SSH key","SSH_AUTH_MODE":"SSH Authentication Mode","NODE_INTERNAL_IP_DESC":"Set the internal IP address of the node in the KubeSphere cluster.","NODE_INTERNAL_IP_EMPTY_DESC":"Please set the internal IP address of the node in the KubeSphere cluster.","NODE_ROLE_DESC":"Set the role of the node in the cluster.","NODE_EXTERNAL_IP_DESC":"Enter the node IP address and port number used for SSH login.","NODE_EXTERNAL_IP_EMPTY_DESC":"Please enter the node IP address and port number used for SSH login.","SSH_AUTH_MODE_DESC":"Select an SSH authentication mode.","NODE_USERNAME_DESC":"Enter the username used for SSH login.","NODE_PASSWORD_DESC":"Enter the password used for SSH login.","ADD_NODE_TO_THE_CLUSTER":"Add node to the cluster","WORKSPACE_CLUSTERS_DESC":"The cluster information shows how cluster resources are used in the workspace.","DEVOPS_PROJECT_NUMBER":"DevOps Projects","PROJECT_NUMBER":"Projects","VIEW_WORKSPACE":"View Workspace","MEMBERS":"Members","PRIVATE_REGISTRY":"Private Registry","ALERT_TYPE":"{type} Alert","CURRENT_VERSION":"Current version","UPGRADE":"Upgrade","DAYS":"days","WEEKS":"weeks","FILE_OVERSIZED_TIP":"The file size must be less than 2 MB.","NEW_CLUSTER":"New Cluster","IMPORT_CLUSTER":"Import Cluster","NODE_SETTINGS":"Node Settings","PLEASE_ADD_AT_LEAST_ONE_CLUSTER_NODE":"Please add at least one cluster node","NETWORK_PLUGIN":"Network Plugin","MAX_PODS":"Max Pods","PODS_CIDR":"Pods CIDR","SERVICE_CIDR":"Service CIDR","DEFAULT_STORAGE_PLUGIN":"Default Storage Plugin","PRIVATE_REGISTRY_CONFIGURATION":"Private Registry Configuration","ETCD_BACKUP":"etcd Backup","ETCD_BACKUP_DIR":"etcd Backup Dir","ETCD_BACKUP_PERIOD":"etcd Backup Period","KEEP_BACKUP_NUMBER":"Keep Backup Number","KUBESPHERE_SETTINGS":"KubeSphere Settings","ADD_NODE_TYPE":"Add Node Type","NODE_TYPE_DESCRIPTION_DEC":"The description will help users to select nodes types and use the cluster.","TYPE_NAME":"Type Name","REPO_URL":"Repository URL","REVISION_ID":"Revision ID","CONFIGURE":"Configure","CURRENT_THIRD_PARTY_LOGIN_CONFIGURATIONS":"Current third-party login configurations","NOT_CONFIGURED":"not configured","PLEASE_INPUT_CLIENT_ID":"Please input client ID.","PLEASE_INPUT_SERVER_ADDRESS":"Please input server address.","PROTOCOL_TYPE":"Protocol Type","SERVER_ADDRESS":"Server Address","THIRD_PARTY_LOGIN":"Third-party Login","THIRD_PARTY_LOGIN_DESC":"When a third part service is used for login, users need to enter related information. After that, a local user will be created which is associated with the user for the secure login in the environment.","THIRD_PARTY_LOGIN_Q":"What third parties are supported for login?","THIRD_PARTY_LOGIN_A":"LDAP, AD, OAuth and Github OAuth are supported.","OAUTH_DESC":"OAuth is an open standard that provides an easy and secure way for users to grant access to their resources.","GITHUB_OAUTH_DESC":"GitHub OAuth grants access based on organization membership.","CLIENT_ID":"Client ID","HOW_TO_OBTAIN_A_GITHUB_CLIENT_ID":"How to obtain a GitHub Client ID?","CLIENT_SECRET":"Client Secret","MODIFY_MEMBER_ROLE":"Modify Member Role","KS_DESCRIPTION":"KubeSphere is an open-source project aiming to provide enterprise-grade multi-tenant container platform on top of Kubernetes, the current mainstream container orchestration platform. It provides easy-to-use interface and wizard-style operations, reducing the learning curve and operating cost of Kubernetes in terms of the daily work of development, test and maintenance.","REPS_ADDRESS":"GitHub","ISSUE_FEEDBACK":"Feedback","PART_IN_DISCUSSION":"Discussion","CODE_CONTRIBUTE":"Contribution","GITHUB_STAR":"Star","DESELECT_RESOURCE_FIRST":"Please deselect {resource} first.","NO_AUTHORIZED_USER_DESC":"This role has not been assigned to any user.","PLATFORM_ROLE_PL":"Platform Roles","PLATFORM_ROLE_EMPTY_DESC":"Please create a platform role.","ROLE_USERS_MANAGER":"Manage all users on the KubeSphere platform.","ROLE_WORKSPACES_MANAGER":"Manage all workspaces on the KubeSphere platform.","ROLE_PLATFORM_ADMIN":"Manage all resources on the KubeSphere platform.","ROLE_PLATFORM_REGULAR":"Cannot access any resources before joining a workspace.","ROLE_PLATFORM_SELF_PROVISIONER":"Create workspaces and become an administrator of the created workspaces.","CREATION_TIME_TCAP":"Creation Time","CREATE_PLATFORM_ROLE":"Create Platform Role","PERMIGROUP_CLUSTERS_MANAGEMENT":"Clusters","PERMISSION_CLUSTERS_VIEW":"Cluster Viewing","PERMISSION_CLUSTERS_VIEW_DESC":"View all clusters and cluster resources.","PERMISSION_CLUSTERS_MANAGEMENT":"Cluster Management","PERMISSION_CLUSTERS_MANAGEMENT_DESC":"Create clusters, delete clusters, and manage resources in all clusters.","PERMIGROUP_ACCESS_CONTROL":"Access Control","PERMISSION_WORKSPACES_VIEW":"Workspace Viewing","PERMISSION_WORKSPACES_VIEW_DESC":"View workspaces.","PERMISSION_WORKSPACES_MANAGEMENT":"Workspace Management","PERMISSION_WORKSPACES_MANAGEMENT_DESC":"Create, edit, delete, and view workspaces.","PERMISSION_WORKSPACES_CREATE":"Workspace Creation","PERMISSION_WORKSPACES_CREATE_DESC":"Create workspaces and become an administrator of the created workspaces.","PERMISSION_USERS_VIEW":"User Viewing","PERMISSION_USERS_VIEW_DESC":"View users.","PERMISSION_USERS_MANAGEMENT":"User Management","PERMISSION_USERS_MANAGEMENT_DESC":"Create, edit, and delete users.","PERMISSION_ROLES_VIEW":"Role Viewing","PERMISSION_ROLES_VIEW_DESC":"View platform roles.","PERMISSION_ROLES_MANAGEMENT":"Role Management","PERMISSION_ROLES_MANAGEMENT_DESC":"Create, edit, and delete platform roles.","PERMIGROUP_APPS_MANAGEMENT":"Apps","PERMISSION_APP_TEMPLATES_VIEW":"App Viewing","PERMISSION_APP_TEMPLATES_VIEW_DESC":"View the platform App Store.","PERMISSION_APP_TEMPLATES_MANAGEMENT":"App Template Management","PERMISSION_APP_TEMPLATES_MANAGEMENT_DESC":"Manage the platform App Store and life cycles of cloud-native applications.","PERMIGROUP_PLATFORM_SETTINGS":"Platform Settings","PERMISSION_PLATFORM_SETTINGS_MANAGEMENT":"Platform Settings Management","PERMISSION_PLATFORM_SETTINGS_MANAGEMENT_DESC":"View and edit settings of the KubeSphere platform.","DELETING_PRESET_ROLES_NOT_ALLOWED":"Preset roles cannot be deleted.","CONFIRM_PASSWORD_TIP":"Please enter the new password again.","CHANGE_PASSWORD":"Change Password","NEW_PASSWORD":"New Password","PASSWORD_STRENGTH":"Password Strength","PASSWORD_STRENGTH_DESC":"Avoid using weak passwords or passwords of other accounts.","TIME":"Time","SOURCE_IP_ADDRESS":"Source IP Address","LOGIN_HISTORY":"Login History","NO_LOGIN_HISTORY":"No login history is found.","SUCCESSFUL":"Successful","FAILED":"Failed","USER_DESC":"Manage users and their roles.","USER_PL":"Users","NOT_LOGIN_YET":"Not logged in yet","USER_EMPTY_DESC":"Please create a user.","USER_ACTIVE":"Active","USER_AUTHLIMITEXCEEDED":"Login restricted","USER_PENDING":"Pending","USER_DISABLED":"Disabled","LAST_LOGIN":"Last Login","USERNAME_DESC":"The username can contain only lowercase letters, numbers, hyphens (-), and dots (.), and must start and end with a lowercase letter or number. The maximum length is 32 characters.","PASSWORD_DESC":"The password must contain at least one number, one lowercase letter, one uppercase letter, and one special character (~!@#$%^&*()-_=+\\|[{}];:'\",<.>/? or space). The length must be 8 to 64 characters.","PASSWORD_INVALID_DESC":"Invalid password. The password must contain at least one number, one lowercase letter, and one uppercase letter. The length must be 8 to 64 characters.","PLATFORM_ROLE_DESC":"Set the role of the user on the KubeSphere platform.","USER_SETTING_EMAIL_DESC":"The email address can be used to log in to the KubeSphere web console.","USERNAME_EXISTS":"The username already exists. Please enter another username.","USERNAME_EMPTY_DESC":"Please enter a username.","PLATFORM_ROLE":"Platform Role","CREATE_USER":"Create User","EMAIL":"Email","EMAIL_EXISTS":"The email address already exists. Please enter another email address.","USERNAME_INVALID":"Invalid username. {message}","USERNAME":"Username","PASSWORD":"Password","EDIT_USER":"Edit User","USER_LOW":"user","DELETING_CURRENT_USER_NOT_ALLOWED":"The current user cannot be deleted.","WORKSPACE_PL":"Workspaces","WORKSPACE_DESC":"A workspace is an isolated logical unit used to organize projects and DevOps projects, manage resource access, and share information within your team.","KS_WORKSPACE_PL":"KS Workspaces","KS_WORKSPACE_DESC":"A KS workspace is an isolated logical unit used to organize projects and DevOps projects, manage resource access, and share information within your team.","EDGE_WORKSPACE_PL":"Edge Workspaces","EDGE_WORKSPACE_DESC":"A edge workspace is an isolated logical unit used to organize projects and DevOps projects, manage resource access, and share information within your team.","CLUSTER_PL":"Clusters","ALL_CLUSTERS":"All Clusters","CREATE_WORKSPACE":"Create Workspace","CREATE_KS_WORKSPACE":"Create KS Workspace","CREATE_EDGE_WORKSPACE":"Create Edge Workspace","WORKSPACE_NAME_EMPTY_DESC":"Please enter a workspace name.","WORKSPACE_CREATE_DESC":"Set the basic information about the workspace.","ADMINISTRATOR":"Administrator","WORKSPACE_NAME_EXISTS_DESC":"The workspace name already exists.","INVALID_WORKSPACE_NAME":"Invalid workspace name.","SELECT_CLUSTERS_DESC":"Select clusters to be used in the workspace.","NO_CLUSTER_AVAILABLE":"No Cluster Available","NO_CLUSTER_AVAILABLE_DESC":"No cluster is available. After the workspace is created, please contact the platform or cluster administrator to authorize a cluster to the workspace.","WORKSPACE_NO_CLUSTER_TIP":"Please contact the platform or cluster administrator to authorize a cluster to the workspace.","AVAILABLE_CLUSTERS":"Available Clusters","CLUSTER_SETTINGS_LIMIT_DESC":"Please select at least one cluster.","CLUSTER_SETTINGS":"Cluster Settings","SELECT_HOST_CLUSTER_WARNING":"The current system is a multi-cluster system. Please avoid creating resources in the host cluster if possible. Excessive loads in the host cluster will decrease the stability of the multi-cluster system.","DELETE_WORKSPACE":"Delete Workspace","WORKSPACE_LOW":"workspace","BACK":"Back","AGREE":"Agree","APP_DEPLOY_AGREEMENT":"Deployment Agreement","APP_DEPLOY_AGREEMENT_DESC_1":"You must abide by the open-source agreement of the application.","APP_DEPLOY_AGREEMENT_DESC_2":"Any consequences arising from your deployment of the application shall be borne by you. For support services, please contact the developer.","DO_NOT_REMIND_AGAIN":"Do not remind me again","LOCATION":"Location","CLUSTER_NAME_DESC":"The name can contain only lowercase letters, numbers, and hyphens (-), must start with a lowercase letter, and must end with a lowercase letter or number. The maximum length is 32 characters.","FEDPROJECT_CANNOT_DEPLOY_APP_TIP":"The app cannot be deployed in a multi-cluster project.","LATEST_VERSION_SCAP":"Latest version","WORKSPACE_EMPTY_DESC":"Please select a workspace","VERSION_EMPTY_DESC":"Please select a version.","HELM_APP_SCHEMA_FORM_TIP":"You can customize the app settings in a GUI form or a YAML file. Settings in the GUI form and those in the YAML file are independent of each other.","DEPLOYED_SUCCESSFUL":"Installed successfully.","APP_INFORMATION":"App Information","VERSION_NUMBER":"Version Number","APP_SCREENSHOTS":"App Screenshots","CATEGORY_COLON":"Category:","HOMEPAGE_COLON":"Homepage:","RELEASE_DATE_COLON":"Release Date:","APP_ID_COLON":"App ID:","SOURCE_CODE_ADDRESS_COLON":"Source Code Address:","APP_VERSIONS_TITLE":"Versions (only the latest 10 versions will be displayed)","MAINTAINER_COLON":"Maintainer:","VERSIONS":"Versions","KEYWORDS":"Keywords","NONE":"None","APP_INTRODUCTION":"App Introduction","APP_DETAILS":"App Details","NO_DOCUMENT_DESC":"No documentation is found.","VERSION_INTRO_EMPTY_DESC":"No introduction to this version is found.","CHART_FILES":"Chart Files","NO_APP_CHART_FILE_FOUND":"No chart file of the app is found.","APP_STORE":"App Store","HOME_APP_STORE_DESC":"The official App Store of KubeSphere provides deployment and management features that allow users to quickly deploy apps with one click based on app templates.","DISCOVER":"Discover","NEW_APPS":"New Apps","APP_CATE_ALL":"All","APP_CATE_UNCATEGORIZED":"Uncategorized","APP_CATE_MESSAGE_QUEUEING":"Message Queuing","APP_CATE_IMAGE_REGISTRY":"Image Registry","APP_CATE_PROMETHEUS_EXPORTER":"Prometheus Exporter","APP_CATE_WEB_SERVER":"Web Server","APP_CATE_NETWORKING":"Networking","APP_CATE_DATABASE_CACHE":"Database & Cache","APP_CATE_STORAGE":"Storage","MAINTAINER_VALUE":"Maintainer: {value}","LATEST_VALUE":"Latest: {value}","TOTAL_CATE_COUNT":"Total Apps: {total}","SEARCH_BY_NAME":"Search by name","APP_SETTINGS":"App Settings","APP_CATEGORY_PL":"App Categories","APP_CATEGORIES_DESC":"Manage categories of apps released to the App Store. You can create, edit, delete, and change app categories.","ALL_CATEGORIES_VALUE":"All Categories ({value})","APP_CATEGORY_EMPTY_DESC":"No apps belong to the category.","ENTER_CATEGORY_NAME_TIP":"Please enter a category name.","CATEGORY_NAME_DESC":"The name can contain any characters and the maximum length is 20 characters.","DELETE_CATEGORY_DESC":"Are you sure you want to delete the category {name}?","CHANGED_SUCCESSFULLY":"Changed successfully.","CHANGE_CATEGORY":"Change Category","CHANGE_CATEGORY_DESC":"The app category determines the classification of the app in the App Store.","APP_DETAILS_DESC":"View details of the app to be released.","INTRODUCTION":"Introduction","SERVICE_PROVIDER_WEBSITE":"Service provider website","APP_DESCRIPTION":"App Description","DOCUMENTATION":"Documentation","NO_DOCUMENT_FOUND":"No Documentation Found","UPDATE_TIME_COLON":"Update time: ","UPDATE_LOG":"Update Log","NO_UPDATE_LOG_DESC":"No update log is found.","REJECT":"Reject","REJECT_REASON_DESC":"Enter reasons for rejection of the app review.","REJECT_REASON_TIP":"Please enter at least one reason for rejection.","REJECT_SUCCESSFUL":"Rejected successfully.","APPROVE":"Approve","RELEASE_SUCCESSFUL":"Released successfully.","APP_REVIEW":"App Review","APP_REVIEW_DESC":"Review apps to be released to the App Store.","NEW_SUBMIT":"New","APP_REVIEW_EMPTY_DESC":"Please create an app template in a workspace and submit the app template for review.","APP_STATUS_TO_BE_REVIEWED":"To be reviewed","APP_STATUS_PASSED":"Approved","APP_STATUS_SUSPENDED":"Suspended","APP_STATUS_REJECTED":"Rejected","APP_STATUS_IN_REVIEW":"Reviewing","OPERATOR":"Operator","APP_REVIEW_UNPROCESSED_EMPTY_DESC":"No App Needs to Be Reviewed","SUSPEND":"Suspend","APP_NOTE":"Note","SUSPEND_SUCCESSFUL":"Suspended successfully.","RELEASE":"Release","ACTIVATE_SUCCESSFUL":"Released successfully.","APP_ID":"App ID","CATEGORY":"Category","TYPE":"Type","DEVELOPER":"Developer","NO_VERSION_INFO_DESC":"No version information is found.","ACTIVATE_VERSION":"Activate Version","CANCEL_SUBMISSION":"Cancel Submission","SUSPEND_VERSION":"Suspend Version","APP_SUSPEND_TIP":"The app {name} cannot be deployed from the App Store after it is suspended. Are you sure you want to suspend it?","APP_RECOVER_TIP":"The app {name} and the suspended versions will be displayed again in the App Store. Are you sure you want to activate it now?","REJECTION_REASON":"Rejection Reason","RELEASE_RECORD":"Release Record","RELEASE_RECORD_EMPTY_DESC":"No release record is found.","APPS":"Apps","APP_STORE_MANAGEMENT":"App Store Management","APP_STORE_DESC":"Manage apps in the App Store. You can view app information, release apps, and suspend apps.","APP_CATEGORY":"App Category","APP_EMPTY_DESC":"Please create an app template in a workspace and release it to the App Store.","CRONJOB_EMPTY_DESC":"Please create a cronjob.","EVERY_DAY":"0 0 * * * (every day)","EVERY_HOUR":"0 * * * * (every hour)","EVERY_MONTH":"0 0 1 * * (every month)","EVERY_WEEK":"0 0 * * 0 (every week)","PAUSE":"Pause","START":"Start","DAEMONSETS":"Daemonsets","DAEMONSET_EMPTY_DESC":"Please create a daemonset.","MIN_READY_SECONDS":"Minimum Running Time for Pod Readiness (s)","MAX_UNAVAILABLE_PODS":"Maximum Unavailable Pods","ROLLING_UPDATE_SETTINGS":"Rolling Update Settings","MAX_UNAVAILABLE_PODS_DESC":"Maximum number or percentage of unavailable pod replicas allowed during the update process.","MIN_READY_SECONDS_DESC":"Minimum stable running time required for a pod replica to be considered ready.","MIN_READY_SECONDS_EMPTY":"Please set the minimum stable running time required for a pod replica to be considered ready.","MAX_UNAVAILABLE_EMPTY":"Please set the maximum number or percentage of unavailable pod replicas allowed during the update process.","FAILURE_THRESHOLD":"Failure Threshold","HTTP_REQUEST":"HTTP Request","INITIAL_DELAY_S":"Initial Delay (s)","INITIAL_DELAY_TIMEOUT_VALUE":"{delay}s initial delay, {timeout}s timeout period","PROBE_TIME":"{delay}s delay, {timeout}s timeout","TIMEOUT_PERIOD_S":"Timeout (s)","CHECK_INTERVAL_S":"Check Interval (s)","SUCCESS_THRESHOLD":"Success Threshold","INITIAL_DELAY_DESC":"Delay time before the probe is initiated after container startup. The value must be an integer and the minimum value is 0.","TIMEOUT_PERIOD_DESC":"Timeout period after which the probe times out and is considered failed. The value must be an integer and the minimum value is 1.","CHECK_INTERVAL_DESC":"Interval between check attempts. The value must be an integer and the minimum value is 1.","SUCCESS_THRESHOLD_DESC":"Minimum number of consecutive successes for the probe to be considered successful after having failed. The minimum value is 1 and the value must be 1 for liveness and startup probes.","FAILURE_THRESHOLD_DESC":"Minimum number of consecutive failures for the probe to be considered failed after having succeeded. The minimum value is 1.","PROBE_COMMAND_EMPTY":"Please enter at least one command.","TCP_PORT":"TCP Port","MOUNT_PATH_IN_USE":"The mount path is already in use. Please enter another mount path.","CREATOR":"Creator","NO":"No","EDIT_CONTAINER":"Edit Container","MULTI_CLUSTER_RESOURCE_TIP":"The current resource is deployed across multiple clusters. You can click a cluster to view the resource settings in the cluster.","NODE":"Node","SERIAL_NUMBER":"Serial number","CREATED_TIME":"Created at {diff}","EVENT_PL":"Events","EVENT_NORMAL":"Normal","EVENT_WARNING":"Warning","APPLICATION_WORKLOAD_PL":"Application Workloads","WORKLOAD_PL":"Workloads","DEPLOYMENTS":"Deployments","UPDATE_TIME_TCAP":"Update Time","ALL_PROJECTS":"All projects","SHOW_NUM":"Show: {num}","SELECT_PROJECT_DESC":"Select a project in which the resource is to be created.","PROJECT_NOT_SELECT_DESC":"Please select a project.","BASIC_INFORMATION":"Basic Information","NAME":"Name","FEDPROJECT_RESOURCE_TIP":"To create workload resources in a multi-cluster project, go to the Workloads page in the multi-cluster project.","FINISHED":"Done","NOT_SET":"To do","CURRENT":"Current","PROJECT":"Project","PREVIOUS":"Previous","NOTE":"Note","IMAGE":"Image","IMAGE_VALUE":"Image: {value}","PORT_NUMBER_EMPTY":"Please enter a port number.","USER":"User","VOLUME_NAME_EXIST":"The volume name already exists.","SELECT_TYPE":"Select {type}","SPECIFY_SUBPATH":"Specify Subpath","SPECIFY_SUBPATH_TIP":"Specify a volume subpath to be mounted to the container.","MOUNT_PATH":"Mount path","MOUNT_PATH_NOT_SPECIFIED":"Please select a key to be mounted and the mount path of the key.","MOUNT_PATH_EMPTY":"Please enter a mount path.","MOUNT_PATH_REPEATED":"The mount path is duplicated.","NETWORK_SEGMENT_SCAP":"Network segment","AVAILABLE_ADDRESSES":"Available addresses","POD_IP_POOL":"Pod IP Pool","SUBPATH":"Subpath","ANNOTATION_PL":"Annotations","CREATE_SUCCESSFUL":"Created successfully.","STOP":"Stop","STOP_TITLE_SI":"Stop {type}","STOP_TITLE_PL":"Stop Multiple {type}","STOP_DESC":"Are you sure you want to stop the resource?","END_TIME":"End Time","SN_NO":"No.","START_TIME":"Start Time","NODE_IP_ADDRESS":"Node IP Address","CLUSTER":"Cluster","CONTAINER_PL":"Containers","PROBE_PL":"Probes","HOOK_PL":"Hooks","CONTAINER_LOGS_NOT_SUPPORTED":"The container does not support real-time logs currently. Please try again later.","CONTAINER_LOGS":"Container Logs","COMMAND":"Command","IMAGE_ID":"Image ID","IMAGE_PULL_POLICY":"Image Pull Policy","CONTAINER_DETAILS_PAGE_SCAP":"Container details page.","CPU_VALUE":"CPU: {value, plural, =1 {1 core} other {# cores}}","MEMORY_VALUE":"Memory: {value}","NVIDIA_COM_GPU_VALUE":"GPU: {value}","LOADING":"Loading...","RESOURCE_LIMITS":"Resource Limits","RESOURCE_REQUESTS":"Resource Requests","TERMINAL":"Terminal","RESTART_PL":"Restarts","RESTART":"Restart","STORAGE_DEVICES":"Storage Devices","LIVENESS_PROBE":"Liveness Probe","READINESS_PROBE":"Readiness Probe","STARTUP_PROBE":"Startup Probe","REQUEST_TYPE":"Request type","NO_LOG_DATA_FOUND":"No Log Data Found","NO_LOG_DATA_FOUND_TIP":"No log data is found.","VOLUME_PL":"Volumes","TYPE_CONFIGMAP":"Volume type: configmap","TYPE_SECRET":"Volume type: secret","TYPE_EMPTYDIR":"Volume type: emptyDir","TYPE_HOSTPATH":"Volume type: host path","REASON_VALUE":"Reason: {value}","MESSAGE_VALUE":"Message: {value}","UPDATED_AT_VALUE":"Updated At: {value}","NO_MONITORING_DATA":"No Monitoring Data","OUTBOUND":"Outbound","INBOUND":"Inbound","POD_PL":"Pods","NODE_IP":"{node} ({ip})","WAITING":"Waiting","POD_LOW":"pod","PENDING":"Pending","SERVICE_VALUE":"Service: {value}","PROTOCOL_VALUE":"Protocol: {value}","ROUTE_DESC":"An ingress provides a way to aggregate services. You can expose the internal services outside the cluster through an externally accessible IP address.","PREREQUESTS_FOR_USE_ROUTE_Q":"What are the prerequisites for using ingresses?","PREREQUESTS_FOR_USE_ROUTE_A":"To use ingresses, you need to contact the project administrator to set the gateway for the project.","ACCESS_TYPES_OF_ROUTE_Q":"What are the external access modes of ingresses?","ACCESS_TYPES_OF_ROUTE_A":"KubeSphere ingresses support the NodePort and LoadBalancer external access modes.","ROUTE_PL":"Ingresses","GATEWAY_ADDRESS_TCAP":"Gateway Address","ROUTE_EMPTY_DESC":"Please create an ingress.","ADD_ROUTING_RULE_DESC":"Add a routing rule to map domain name paths to services.","ADD_ROUTING_RULE":"Add Routing Rule","ROUTING_RULE_EMPTY_DESC":"Please add at least one routing rule.","PATH_EMPTY_DESC":"Please add at least one path.","AUTO_GENERATE_TCAP":"Auto Generate","DOMAIN_NAME_TCAP":"Domain Name","DOMAIN_NAME_EMPTY_DESC":"Please enter a domain name.","INVALID_DOMAIN_DESC":"Invalid domain name.","INVALID_PATH_DESC":"Invalid path.","MODE_TCAP":"Mode","PATH_PL":"Paths","PATH_SERVICE_TIP":"Service","SET_ROUTING_RULES":"Set Routing Rules","SPECIFY_DOMAIN_TCAP":"Specify Domain","NO_GATEWAY_DESC":"To use Auto Generate, please contact the project administrator to set the gateway access mode in Gateway Settings of the project.","PATH":"Path","PROTOCOL":"Protocol","PORT":"Port","PORT_VALUE":"Port: {value}","CERTIFICATE":"Certificate","EDIT_ROUTING_RULES":"Edit Routing Rules","EDIT_ANNOTATIONS":"Edit Annotations","ROUTE_LOW":"ingress","PLEASE_INSTALL_GATEWAY":"Please install the KubeSphere gateway extension component and configure the cluster agent before trying again.","ROUTE_SETTING_DESC":"Based on ingresses, Ingress Utils provides multiple practical extension capabilities, such as domain name reuse validation.","ROUTE_SETTING_EMPT":"No domain name requires reuse validation","ROUTE_SETTING_EMPTY_DESC":"After adding a domain name, uniqueness validation will be conducted on the domain name when creating or editing an ingress. Domain Name Reuse Validation only applies to the current cluster and does not affect the existing ingresses.","CREATE_DOMAIN_NAME":"Add domain name","CREATE_DOMAIN_NAME_DES":"Wildcard characters can be used to match domain names.","INVALID_CREATE_DOMAIN_NAME":"This domain name already exists. Please enter another domain name.","DOMAIN_NAME_DESC":"Please set a domain name","INVALID_DOMAIN_NAME":"Domain Name Reuse Validation","ROUTE_SETTING":"Domain name","ROUTE_SETTING_PL":"Ingress Utils","ROUTE_SETTING_LOW":"Domain name","DELETE_MULTIPLE_ROUTE_SETTING":"Batch delete domain names","EXIT_DOMAIN_DESC":"This domain name or its subdomain name has been used in the project of the current cluster. Please change the domain name to a different one.","CUSTOM_SERVICE":"Custom Service","VIRTUAL_IP":"VirtualIP","CONTAINER_PORT_SCAP":"Container port","SERVICE_PORT_SCAP":"Service port","NO_AVAILABLE_RESOURCE_VALUE":"No Available {resource}","NO_RESOURCE_FOUND":"No Resource Found","REVISION_RECORD":"Revision record","SERVICE_PL":"Services","SERVICE_DESC":"Services provide an abstract way to expose applications running on a pod as network services.","SERVICE_EMPTY_DESC":"Please create a service.","UNKNOWN":"Unknown","EXTERNAL_ACCESS":"External Access","INTERNAL_ACCESS":"Internal Access","UNKNOWN_SERVICE_TYPE":"Unknown Service Type","SERVICE":"Service","SERVICE_LOW":"service","INTERNAL_ACCESS_MODE":"Internal Access Mode","CREATE_SERVICE":"Create Service","SERVICE_NAME_DESC":"The name can contain only lowercase letters, numbers, and hyphens (-), must start with a lowercase letter, and must end with a lowercase letter or number. The maximum length is 63 characters.","VIRTUAL_IP_TITLE":"Virtual IP Address","INTERNAL_DOMAIN_NAME":"Internal Domain Name","CONTAINER_PORT":"Container Port","INVALID_PORT":"Invalid port.","PORT_EMPTY":"Please set at least one port.","ENTER_SELECTOR_TIP":"Please set a workload selector.","Ports":"Ports","SPECIFY_WORKLOAD":"Specify Workload","SELECT_WORKLOAD_DESC":"Use labels of a workload as the selector.","VIRTUAL_IP_DESC":"A virtual IP address is assigned to the service. The service can be accessed within the cluster through the virtual IP address.","INTERNAL_DOMAIN_NAME_DESC":"No IP address is assigned to the service. The service can be accessed within the cluster through the cluster DNS mechanism.","SERVICE_PORTS_DESC":"Set the container ports and service ports.","NO_WORKLOAD_MATCH_SELECTOR":"The current selector matches no workload.","WORKLOADS_MATCH_SELECTOR_SI":"The current selector ({selector}) matches {count} workload.","WORKLOADS_MATCH_SELECTOR_PL":"The current selector ({selector}) matches {count} workloads.","WORKLOAD_SELECTOR":"Workload Selector","SERVICE_SETTINGS":"Service Settings","TOTAL_WORKLOADS_VALUE":"Total Workloads: {count}","OPENELB_NOT_READY":"OpenELB is not installed. Please install OpenELB.","SESSION_PERSISTENCE":"Session Persistence","MAXIMUM_STICKINESS_DURATION":"Maximum Stickiness Duration (s)","SESSION_PERSISTENCE_DESC":"Set the system to forward all requests from the same client to the same pod within a specified duration.","SERVICE_EXTERNAL_ACCESS_DESC":"Set the method for accessing the service from outside the cluster.","ACCESS_NODEPORT_TIP":"Use a port of the cluster nodes to access the service.","ACCESS_LOADBALANCER_TIP":"Use a load balancer to access the service.","WORKLOAD_ANNOTATIONS":"Workload Annotations","LABEL_FORMAT_DESC":"The key and value of a label can contain only letters, numbers, hyphens (-), underscores (_), and dots (.), and must start and end with a letter or number. The maximum length of each key and each value is 63 characters (if the key contains a domain name, the maximum length is 253 characters).","STATEFULSETS":"Statefulsets","INVALID_ALIAS_NAME_DESC":"Invalid alias name. The alias name can contain only letters, numbers, and hyphens (-), and cannot start or end with a hyphen. The maximum length is 63 characters.","NODES":"Nodes","DISK":"Disk","CLUSTER_INFORMATION":"Cluster Information","CLUSTER_NAME":"Cluster Name","EDIT_CLUSTER_INFO_DESC":"Edit basic information about the cluster.","REMOVE_CLUSTER":"Remove Cluster","REMOVE_CLUSTER_DESC":"After the cluster is removed, KubeSphere will not be able to manage the cluster. Resources in the cluster will not be deleted. Enter the cluster name {name} to confirm that you understand the risks of this operation.","REMOVE_SUCCESS":"Removed successfully.","CLUSTER_MEMBER_PL":"Cluster Members","CLUSTER_MEMBER":"Cluster Member","INVITE_CLUSTER_MEMBER_DESC":"Invite users to the cluster.","PERMIGROUP_NETWORK_MANAGEMENT":"Network","PERMISSION_NETWORK_RESOURCES_VIEW":"Network Resource Viewing","PERMISSION_NETWORK_RESOURCES_MANAGEMENT":"Network Resource Management","PERMIGROUP_PROJECT_RESOURCES_MANAGEMENT":"Project Resources","PERMISSION_PROJECT_RESOURCES_VIEW":"Project Resource Viewing","PERMISSION_PROJECT_RESOURCES_MANAGEMENT":"Project Resource Management","PERMISSION_STORAGECLASSES_VIEW":"Storage Class Viewing","PERMISSION_STORAGECLASSES_MANAGEMENT":"Storage Class Management","PERMISSION_VOLUME_SNAPSHOT_CLASSES_VIEW":"Volume Snapshot Class Viewing","PERMISSION_VOLUME_SNAPSHOT_CLASSES_MANAGEMENT":"Volume Snapshot Class Management","PERMIGROUP_CLUSTER_RESOURCES_MANAGEMENT":"Cluster Resources","PERMISSION_CRD_VIEW":"Custom Resource Definition Viewing","PERMISSION_CRD_MANAGEMENT":"Custom Resource Definition Management","PERMISSION_NODES_VIEW":"Node Viewing","PERMISSION_NODES_MANAGEMENT":"Node Management","PERMISSION_COMPONENTS_VIEW":"System Component Viewing","PERMIGROUP_CLUSTER_SETTINGS":"Cluster Settings","PERMISSION_CLUSTER_SETTINGS_VIEW":"Cluster Settings Viewing","PERMISSION_CLUSTER_SETTINGS_MANAGEMENT":"Cluster Settings Management","PERMISSION_CLUSTER_MONITORING_VIEW":"Monitoring Information Viewing","PERMISSION_CLUSTER_MONITORING_MANAGEMENT":"Monitoring Information Management","PERMISSION_CLUSTER_ROLES_VIEW":"Role Viewing","PERMISSION_CLUSTER_ROLES_MANAGEMENT":"Role Management","PERMISSION_CLUSTER_MEMBERS_VIEW":"Member Viewing","PERMISSION_CLUSTER_MEMBERS_MANAGEMENT":"Member Management","CLUSTER_ROLE":"Cluster Role","CLUSTER_ROLE_PL":"Cluster Roles","CLUSTER_ROLE_DESC":"This module allows you to manage the access of users within a cluster.","ROLE_CLUSTER_VIEWER":"View all resources in the cluster.","ROLE_CLUSTER_ADMIN":"Manage all resources in the cluster.","CLUSTER_VISIBILITY":"Cluster Visibility","EDIT_VISIBILITY_DESC":"Edit the cluster visibility in workspaces.","UNAUTHORIZED":"Unauthorized","CLUSTER_VISIBILITY_DESC":"Cluster visibility controls the cluster authorization to workspaces. After a cluster is authorized to workspaces, you can view and manage the cluster resources in the workspaces.","CLUSTER_VISIBILITY_Q1":"How do I authorize a cluster to specific workspaces?","CLUSTER_VISIBILITY_A1":"You can assign a cluster to specific workspaces by clicking Edit Visibility.","CLUSTER_VISIBILITY_Q2":"What are public clusters?","CLUSTER_VISIBILITY_A2":"Public clusters can be accessed by all platform users. Users can create and schedule resources on public clusters.","WORKSPACE":"Workspace","CLUSTER_VISIBILITY_SCAP":"Cluster visibility","AUTHORIZATION_TIME_TCAP":"Authorization Time","EDIT_VISIBILITY":"Edit Visibility","AUTHORIZED":"Authorized","SET_PUBLIC_CLUSTER":"Set as Public Cluster","HOST_CLUSTER_VISIBILITY_WARNING":"The stability of the multi-cluster system will decrease if the host cluster is overloaded. Exercise caution when assigning the host cluster to workspaces.","CLUSTER_VISIBILITY_REMOVE_WARNING":"After the authorization for a workspace to use the cluster is removed, all resources of the workspace on the cluster will be deleted.","REMOVE_WORKSPACE_CONFIRM_TITLE":"Remove Authorization","REMOVE_WORKSPACE_CONFIRM_SI":"Enter the workspace name {resource} to confirm that you understand the risks of this operation.","REMOVE_WORKSPACE_CONFIRM_PL":"Enter the workspace names {resource} to confirm that you understand the risks of this operation.","GATEWAY_LOW":"gateway","REQUEST_COUNT":"Requests","NETWORK_TRAFFIC":"Network Traffic","CONNECTION_COUNT":"Connections","FAILED_REQUEST_COUNT":"Failed Requests","AVERAGE_LATENCY":"Average Latency","P_FIFTY_LATENCY":"P50 Latency","P_NINETY_FIVE_LATENCY":"P95 Latency","P_NINETY_NINE_LATENCY":"P99 Latency","FOUR_XX_REQUEST_COUNT":"4XX Requests","FIVE_XX_REQUEST_COUNT":"5XX Requests","TOTAL_REQUESTS":"Total Requests","SUCCESSFUL_REQUESTS":"Successful Requests","CONFIGURATION_OPTIONS":"Configuration Options","GATEWAY_LOGS":"Gateway Logs","LOGGING_DISABLED":"Logging Disabled","REFRESH_INTERVAL_VALUE":"Refresh interval: {value}s","EXPORT_LOGS":"Export Logs","GATEWAY_SETTINGS":"Gateway Settings","CLUSTER_GATEWAY_DESC":"Set up and manage the configuration of the external network access gateway and service management in the cluster.","CLUSTER_GATEWAY_NOT_ENABLED":"Cluster Gateway Not Enabled","CLUSTER_ENABLE_GATEWAY_DESC":"Please enable the cluster gateway.","CLUSTER_GATEWAY":"Cluster Gateway","GATEWAY_ADDRESS_SCAP":"Gateway address","LOAD_BALANCER_PROVIDER_SCAP":"Load balancer provider","ENABLE_GATEWAY":"Enable Gateway","GATEWAY_TRACING_TIP":"If ingresses cannot be accessed after Tracing is enabled, please add the annotation nginx.ingress.kubernetes.io/service-upstream: true to the ingress.","NGINX_INGRESS_VERSION":"Nginx ingress version","VIEW_DETAILS":"View Details","DISABLE":"Disable","DISABLE_GATEWAY":"Disable Gateway","DISABLE_GATEWAY_TIP":"Are you sure you want to disable the gateway?","DISABLE_SUCCESSFUL":"Disabled successfully.","EDIT":"Edit","EDIT_TITLE":"Edit {title}","UPDATE":"Update","UPDATED_GATEWAY_TITLE":"Update Gateway","UPDATE_GATEWAY_DESC":"The current gateway can be updated.","PROJECT_GATEWAY_PL":"Project Gateways","PROJECT_GATEWAY_NOT_ENABLED":"Project Gateway Not Enabled","PROJECT_ENABLE_GATEWAY_DESC":"Please enable the project gateway.","REPLICA_COUNT":"Replicas","NODE_PORTS":"Node Ports","PROJECT_GATEWAY_LOW":"project gateway","DISABLE_MULTIPLE_GATEWAYS":"Disable Multiple Gateways","EDIT_LOG_RECEIVER":"Edit Log Receiver","INDEX_PREFIX":"Index Prefix","LOG_RECEIVER":"Log Receiver","LOG_RECEIVER_LOW":"Log Receiver","CHANGE_STATUS":"Change Status","LOG_COLLECTION_ENABLE_TIPS":"The new status requires about 1 minute to take effect.","SELECT_STATUS_TIP":"Select a status","ADDRESS":"Address","LOG_RECEIVER_PL":"Log Receivers","LOG_COLLECTION_DESC":"The system collects standard output (stdout) and standard error (stderr) logs from each container and sends them to one or more target services.","ADD_LOG_RECEIVER":"Add Log Receiver","LOG_COLLECTION_TIPS":"You can add one log receiver for each type.","ES_DESC":"Elasticsearch is a distributed, RESTful search and analytics engine.","KAFKA_DESC":"Kafka is a popular open-source, stream-processing platform.","FLUENTD_DESC":"Fluentd is an open-source data collector for unified logging layer.","LOG_COLLECTION_ES_URL_TIPS":"The built-in Elasticsearch service is used by default. You can also enter the IP address of Elasticsearch independently deployed inside or outside the cluster.","LOG_COLLECTION_ES_INDEX_TIPS":"Use the index prefix to speed up queries. The index prefix is automatically generated in -- format.","ADDRESS_VALUE":"Address: {value}","TOPIC":"Topic","ADD_SERVICE_ADDRESS":"Add","SERVICE_ADDRESS":"Service Address","ENTER_SERVICE_ADDRESS":"Please enter a service address.","INVALID_SERVICE_ADDRESS":"Please enter a correct service address.","SERVICE_ADDRESS_EXIST":"The service address already exists. Please enter another service address.","EXAMPLE_VALUE":"Example: {value}","LOG_COLLECTION_FLUENTD_URL_TIPS":"Enter the address of the Fluentd service that receives logs.","EMPTY_LOG_COLLECTIONS":"No log receiver is found. You can add log receivers and send logs to external log receivers.","RESOURCE_EVENTS":"Resource Events","AUDIT_LOGS":"Audit Logs","NO_CLUSTER_TIP":"Please add at least one cluster.","CLUSTER_NAME_EMPTY":"Please enter a cluster name.","ADD_CLUSTER":"Add Cluster","TAG":"Tag","CLUSTER_TAG_DESC":"Select a tag to identify the purpose of the cluster.","CLUSTER_PROVIDER_DESC":"Select the provider of the cluster infrastructure.","CONNECTION_SETTINGS":"Connection Settings","CLUSTER_CONFIG":"Cluster Configuration","EDIT_CONFIG":"Edit Configuration","CLUSTER_CONFIG_IMAGE_REGISTRY_TIP":"Please modify the image registry address to your actual one. The default is KubeSphere's official online registry. Ensure you can access it","CONNECTION_MODE":"Connection Mode","CLUSTER_CONNECT_MODE_DESC":"Directly connect to the cluster or use an agent.","CONNTECT_DIRECT":"Direct connection","CONNTECT_PROXY":"Agent connection","INPUT_KUBECONFIG":"Member Cluster kubeconfig","CLUSTER_DIRECT_IMPORT_TIP":"The multi-cluster control plane of KubeSphere connects to the member cluster through the kubeconfig provided. For this method, the host cluster must be able to directly access the member cluster through the server address in the kubeconfig.

    This method generally applies to the scenarios like the following:
    1. The host cluster and the member cluster are in the same internal network.
    2. The network of both the host cluster and the member cluster is connected through VPN or other technologies (e.g. Tunneling).
    3. The server address in the kubeconfig can be accessed through public network.","CLUSTER_AGENT_IMPORT_TIP":"The KubeSphere control plane connects to the member cluster through a proxy. The control plane runs a public proxy service, which is connected to a client component created by the member cluster. Thus, a reserve proxy is created. For this method, the control plane and the member cluster do not need to be in the same network. The apiserver address of the member cluster does not need to be exposed. However, network performance may be affected.

    This method generally applies to the scenarios like the following:
    1. The host cluster and the member cluster are not in the same network.
    2. The network of both the host cluster and the member cluster cannot be connected through VPN or other technologies (e.g. Tunneling).
    3. Network performance deficiencies within clusters can be accepted.","CLUSTER_AGENT_TITLE":"Please add the member cluster based on the agent provided in the cluster.","CLUSTER_AGENT_DESC":"A corresponding agent needs to be set in the cluster.","HOW_TO_GET_KUBECONFIG":"How do I obtain kubeconfig?","HOST_CLUSTER_TCAP":"Host Cluster","HOST_CLUSTER_PL_TCAP":"Host Clusters","MEMBER_CLUSTER_TCAP_PL":"Member Clusters","CLUSTER_CONDITION_INITIALIZED":"Initialized","CLUSTER_CONDITION_AGENTAVAILABLE":"Agent Available","CLUSTER_CONDITION_FEDERATED":"Federated","CLUSTER_CONDITION_EXTERNALACCESSREADY":"External Access Ready","CLUSTER_CONDITION_READY":"Cluster Ready","CLUSTER_CONDITION_SCHEDULABLE":"Cluster Scheduling","CLUSTER_CONDITION_OPENPITRIXRUNTIMEREADY":"App Store Ready","CLUSTER_CONDITION_KUBECONFIGCERTEXPIRESINSEVENDAYS":"kubeconfig About to Expire","NODE_COUNT":"Nodes","ENV_PRODUCTION":"Production","ENV_DEVELOPMENT":"Development","ENV_TESTING":"Testing","ENV_DEMO":"Demo","UPDATE_KUBECONFIG":"Update kubeconfig","KUBE_CONFIG_IS_EXPIRED":"KubeConfig has expired","EXPIRE_DATE":"Expiration Time","LAST_KUBE_CONFIG_EXPIRED":"KubeConfig expires in {count} days","VALIDATION_FAILED":"Validation failed.","NO_CLUSTER_TIP_DESC":"A cluster is a group of nodes (physical or virtual machines) running KubeSphere.","RISK_WARNING":"Risk Warning","REMOVE_CLUSTER_TIP_A":"After the cluster is removed, resources in the cluster will not be cleared automatically.","REMOVE_CLUSTER_TIP_B":"After the cluster is removed, multi-cluster configuration data in the cluster will not be cleared automatically. Uninstalling KubeSphere or deleting related resources may cause user data loss. You must manually clear the multi-cluster configuration data in the removed cluster by refering to the official KubeSphere documentation.","CLUSTER_CONFIRM_TEXT":"I understand the risks of removing the cluster","ENTER_CLUSTER_NAME":"This operation cannot be undone. Enter the cluster name {name} to confirm that you understand the risks of this operation.","CLUSTER_BANNER_ALERT":"KubeSphere can manage Member clusters through KubeConfig. After adding a cluster, you do not need to install KubeSphere on the Member cluster; if you have already installed it, please uninstall it before adding the Member cluster.","CONFIGMAP_DESC":"A configmap is often used to store configuration information needed for workloads. Many applications will read the information from configuration files, command line parameters, or environment variables.","FIELDS":"Fields","EDIT_YAML":"Edit YAML","ENTER_CONFIG_VALUE_DESC":"Enter the value of the mapping configuration field or use the content from the file.","CONFIG_FIELD_DESC":"The unique value of the key mapped by the configuration field.","CONFIGURATION":"Configuration","SECRET_PL":"Secrets","SECRET_DESC":"A secret is an object that contains a small amount of sensitive data such as a password, a token, or a key.","SECRET_FIELD_COUNT":"Fields","SECRET_EMPTY_DESC":"Please create a secret.","SECRET":"Secret","DATA_SETTINGS":"Data Settings","IMAGE_REGISTRY_INFORMATION":"Image registry information","TLS_INFORMATION":"TLS information","USERNAME_PASSWORD":"Username and password","ADD_DATA_TCAP":"Add Data","ADD_DATA_DESC":"Add a key-value pair.","REGISTRY_ADDRESS_TIP":"Set a registry address, for example, docker.io.","IMAGE_REGISTRY_REQUIRED_DESC":"Please set the registry address, username, and password.","CREDENTIAL_NAME_EMPTY_DESC":"Please enter a credential name.","ENTER_PRIVATE_KEY_DESC":"Please enter a private key.","ENTER_DATA_DESC":"Please add data.","PRIVATE_KEY_TCAP":"Private Key","REGISTRY_ADDRESS_TCAP":"Registry Address","SKIP_VERIFY":"Skip certificate verification","REGISTRY_SECRET_VER_ERR":"Registry verification failed.","REGISTRY_SECRET_VER_SUC":"The registry is available.","SECRET_NO_CHINESE_CODE_DESC":"The key of the secret must consist of alphanumeric characters, hyphens (-), underscores (_), or periods (.).","SECRET_TYPE_DESC":"Select a secret type.","IMAGE_REGISTRY_VALIDATE_TIP":"Please validate the username and password before creating the image registry secret.","DATA_KEY":"Key","DATA_VALUE":"Value","DEFAULT":"Default","USERNAME_AND_PASSWORD":"Username and password","DATA":"Data","EDIT_DATA_TCAP":"Edit Data","KUBECONFIG_SETTINGS":"kubeconfig Settings","CUSTOM_RESOURCE_PL":"Custom Resources","PROJECT_DEVOPS_PROJECT":"Project/DevOps Project","CUSTOM_RESOURCE":"Custom Resource","CUSTOM_RESOURCE_LOW":"custom resource","CRD":"CRD","CRD_PL":"CRDs","CRD_LOW":"CRD","CRD_DESC":"A Custom Resource Definition (CRD) extends Kubernetes by allowing users to create any kind of custom resources. Users can use these CRD objects as they do for built-in resources.","CRD_EMPTY_DESC":"Please create a CRD.","KIND_TCAP":"Kind","SCOPE_TCAP":"Scope","ALERTING_MESSAGE_PL":"Alerts","ALERT_MESSAGE_DESC":"Alerts are generated when resource metrics meet conditions configured in rule groups.","ALERTS_FROM_CUSTOM_POLICIES":"From Custom Rules","ALERTS_FROM_BUILT_IN_POLICIES":"From Built-in Rules","TRIGGER_TIME":"Trigger Time","ALERTING_MESSAGE_EMPTY_DESC":"No alert is found in the current cluster.","MONITORING_TARGET":"Monitoring Target","DURATION":"Duration","VIEW_METRIC_DATA":"View metric data","ALERTING_RULE":"Alert Rules","MONITORING_TARGETS_SCAP":"Monitoring targets","TRIGGER_CONDITION_SCAP":"Trigger condition","METRIC_MONITORING":"Metric Monitoring","ALERT_MONITORING":"Alert Monitoring","NOTIFICATION_SUMMARY_COLON":"Summary: ","DETAILS_COLON":"Details: ","NODES_VALUES":"Nodes: {values}","TRIGGER_CONDITION":"Trigger Condition","MESSAGE_SUMMARY":"Summary","MESSAGE_DETAILS":"Details","VIEW_METRIC_DATA_TCAP":"View Metric Data","ALERT_RULE_TEXT_PERCENT_SECOND":"{alterTypeText} {comparator} {thresholds}% for {durationValue, plural, =1 {1 second} other {# seconds}}","ALERT_RULE_TEXT_PERCENT_MINUTE":"{alterTypeText} {comparator} {thresholds}% for {durationValue, plural, =1 {1 minute} other {# minutes}}","ALERT_RULE_TEXT_PERCENT_HOUR":"{alterTypeText} {comparator} {thresholds}% for {durationValue, plural, =1 {1 hour} other {# hours}}","ALERT_RULE_TEXT_SECOND":"{alterTypeText} {comparator} {thresholds} {unit} for {durationValue, plural, =1 {1 second} other {# seconds}}","ALERT_RULE_TEXT_MINUTE":"{alterTypeText} {comparator} {thresholds} {unit} for {durationValue, plural, =1 {1 minute} other {# minutes}}","ALERT_RULE_TEXT_HOUR":"{alterTypeText} {comparator} {thresholds} {unit} for {durationValue, plural, =1 {1 hour} other {# hours}}","CPU_UTILIZATION_NO_PERCENT_TCAP":"CPU Usage","CPU_LOAD_1_TCAP":"1-Minute CPU Load Average","CPU_LOAD_5_TCAP":"5-Minute CPU Load Average","CPU_LOAD_15_TCAP":"15-Minute CPU Load Average","MEMORY_UTILIZATION_NO_PERCENT_TCAP":"Memory Usage","MEMORY_AVAILABLE_TCAP":"Available Memory","DATA_SEND_RATE_TCAP":"Network Data Sending Rate","DATA_RECEIVE_RATE_TCAP":"Network Data Receiving Rate","DISK_SPACE_UTILIZATION_NO_PERCENT_TCAP":"Local Disk Usage","DISK_SPACE_AVAILABLE_TCAP":"Available Local Disk Space","INODE_UTILIZATION_NO_PERCENT_TCAP":"Inode Usage","DISK_READ_IOPS_TCAP":"Local Disk Read IOPS","DISK_WRITE_IOPS_TCAP":"Local Disk Write IOPS","DISK_READ_THROUGHPUT_TCAP":"Local Disk Read Throughput","DISK_WRITE_THROUGHPUT_TCAP":"Local Disk Write Throughput","UNAVAILABLE_POD_RATIO_NO_PERCENT_TCAP":"Unavailable Pod Ratio","POD_QUOTA_UTILIZATION_NO_PERCENT_TCAP":"Pod Quota Usage","MEMORY_USAGE_WO_CACHE_TCAP":"Memory Usage Without Cache","UNAVAILABLE_WORKLOAD_REPLICA_RATIO_NO_PERCENT_TCAP":"Unavailable Replica Ratio","THRESHOLD_VALUE":"Threshold: {value}","NO_DATA_DESC":"No Data Found","ALERTING_POLICY_PL":"Rule Groups","ALERTING_POLICY_DESC":"A rule group contains alert rules used to monitor cluster resources.","REQUESTS_FOR_TRIGGER_AN_ALARM_Q":"How are alerts generated?","REQUESTS_FOR_TRIGGER_AN_ALARM_A":"You need to create a rule group and set alert rules. The system will generate alerts when resource metrics meet conditions configured in rule groups.","CUSTOM_POLICIES":"Custom Rule Groups","BUILT_IN_POLICIES":"Built-in Rule Groups","ALERTING_POLICY_EMPTY_DESC":"Please create a rule group.","ALERT_RULE_INACTIVE":"Inactive","ALERT_RULE_PENDING":"Pending","ALERT_RULE_FIRING":"Firing","ALERT_RULE_DISABLED":"Disabled","POLICY_STATUS":"Rule Group Status","RULE_STATUS":"Rule Status","TIME_SPENT":"Time Spent","RECENT_DETECT_TIME":"Last Check","EDIT_ALERT_RULES":"Edit Alert Rules","RESET":"Reset","SEVERITY":"Severity","CREATE_ALERTING_POLICY":"Create Rule Group","CRITICAL_ALERT":"Critical","ERROR_ALERT":"Error","WARNING_ALERT":"Warning","INFO_ALERT":"Info","INVALID_TIME_DESC":"Invalid value. Please enter 0 or a positive integer.","ALIAS":"Alias","DURATION_MIN":"Duration (minutes)","ALERT_DURATION":"Set the system to wait for a certain duration and check whether the alert situation persists before firing an alert.","LONG_NAME_DESC":"The name can contain only lowercase letters, numbers, and hyphens (-), and must start and end with a lowercase letter or number. The maximum length is 253 characters.","NAME_EXIST_DESC":"The name already exists. Please enter another name.","ALIAS_NAME_DESC":"The alias name can contain only letters, numbers, and hyphens (-), and cannot start or end with a hyphen. The maximum length is 63 characters.","CHECK_INTERVAL":"Check Interval","ALERTING_POLICY_CHECK_INTERVAL_DESC":"Set the interval between metric checks. The default value is 1 minute.","ADD_ALERTING_RULE":"Add Alert Rule","ADD_ALERTING_RULE_DESC":"Add an alert rule to the rule group.","ENABLE_RULE":"Enable Rule","DISABLE_RULE":"Disable Rule","RULE_NAME":"Rule Name","CUSTOM_RULE_NAME_DESC":"The rule name can contain any characters. The maximum length is 63 characters.","LASTING_MINUTES":"For {minutes, plural, =1 {1 minute} other {# minutes}}","THRESHOLD_REQUIRED":"Please enter a metric threshold.","MESSAGE_SUMMARY_DESC":"The message summary can contain any characters. The maximum length is 63 characters.","MESSAGE_DETAILS_DESC":"The message details can contain any characters. The maximum length is 256 characters.","RULE_TEMPLATE":"Rule Template","RULE_SETTINGS":"Rule Settings","MONITORING_TARGETS":"Monitoring Targets","SET_ACTIVATION_CONDITION_DESC":"Please set a trigger condition.","THRESHOLD":"Threshold","UNAVAILABLE_POD_RATIO":"Unavailable pod ratio (%)","POD_QUOTA_UTILIZATION_SCAP":"Pod quota usage (%)","CPU_USAGE_SCAP":"CPU usage","CPU_UTILIZATION_SCAP":"CPU usage (%)","CPU_LOAD_1":"1-minute CPU load average","CPU_LOAD_5":"5-minute CPU load average","CPU_LOAD_15":"15-minute CPU load average","MEMORY_AVAILABLE":"Available memory","MEMORY_UTILIZATION_SCAP":"Memory usage (%)","DISK_SPACE_AVAILABLE":"Available local disk space","DISK_SPACE_UTILIZATION":"Local disk usage (%)","INODE_UTILIZATION":"Inode usage (%)","DISK_READ_IOPS":"Local disk read IOPS","DISK_WRITE_IOPS":"Local disk write IOPS","DISK_READ_THROUGHPUT":"Local disk read throughput","DISK_WRITE_THROUGHPUT":"Local disk write throughput","DATA_RECEIVE_RATE":"Network data receiving rate","DATA_SEND_RATE":"Network data sending rate","MEMORY_USAGE_SCAP":"Memory usage","MEMORY_USAGE_WO_CACHE_SCAP":"Memory usage without cache","UNAVAILABLE_WORKLOAD_REPLICA_RATIO":"Unavailable replica ratio (%)","SELECT_NODE_TIP":"Please select at least one cluster node.","CUSTOM_RULE":"Custom Rule","RULE_EXPRESSION":"Rule Expression","ENTER_RULE_EXPRESSION":"Please enter a rule expression.","ALERT_RULE_EXPRESSION_DESC":"You can define a custom rule using PromQL statements.","ALERT_FUNCTIONS":"Functions","ALERT_METRICS":"Metrics","ALERT_LABELS":"Labels","ALERT_RATE_RANGES":"Rate Ranges","ALERTING_MESSAGE":"Alert","MESSAGE_SETTINGS":"Message Settings","NOTIFICATION_SUMMARY":"Summary","NOTIFICATION_DETAILS":"Details","EDIT_ALERTING_POLICY":"Edit Rule Group","DISABLE_ALERTING_POLICY":"Disable Rule Group","ALERTING_POLICY":"Rule Group","ALERTING_POLICY_LOW":"rule group","RESET_ALERTING_POLICY":"Reset Rule Group","RESET_ALERTING_POLICY_DESC":"Are you sure you want to reset the rule group?","APPLICATION_RESOURCE_PL":"Application Resources","MONITORING_APPLICATION_DESC":"Application resources provide the monitoring data of application resource usage and usage ranking.","CUSTOM_TIME_RANGE":"Customize Time Range","ACCOUNTS":"Accounts","DEVOPS_PROJECT_PL":"DevOps Projects","SAMPLING_INTERVAL":"Sampling Interval","KUBE_SUN":"Sun.","KUBE_MON":"Mon.","KUBE_TUE":"Tue.","KUBE_WED":"Wed.","KUBE_THU":"Thu.","KUBE_FRI":"Fri.","KUBE_SAT":"Sat.","KUBE_SUNDAY":"Sunday","KUBE_MONDAY":"Monday","KUBE_TUESDAY":"Tuesday","KUBE_WEDNESDAY":"Wednesday","KUBE_THURSDAY":"Thursday","KUBE_FRIDAY":"Friday","KUBE_SATURDAY":"Saturday","KUBE_JAN":"Jan.","KUBE_FEB":"Feb.","KUBE_MAR":"Mar.","KUBE_APR":"Apr.","KUBE_MAY":"May.","KUBE_JUN":"Jun.","KUBE_JUL":"Jul.","KUBE_AUG":"Aug.","KUBE_SEP":"Sep.","KUBE_OCT":"Oct.","KUBE_NOV":"Nov.","KUBE_DEC":"Dec.","KUBE_JAN_LH":"January","KUBE_FEB_LH":"February","KUBE_MAR_LH":"March","KUBE_APR_LH":"April","KUBE_MAY_LH":"May","KUBE_JUN_LH":"June","KUBE_JUL_LH":"July","KUBE_AUG_LH":"August","KUBE_SEP_LH":"September","KUBE_OCT_LH":"October","KUBE_NOV_LH":"November","KUBE_DEC_LH":"December","APPLICATION_RESOURCE_USAGE":"Application Resource Usage","DEPLOYMENT":"Deployment","DEPLOYMENT_PL":"Deployments","DEPLOYMENT_LOW":"deployment","STATEFULSET":"Statefulset","STATEFULSET_PL":"Statefulsets","STATEFULSET_LOW":"statefulset","DAEMONSET":"Daemonset","DAEMONSET_PL":"Daemonsets","DAEMONSET_LOW":"daemonset","DEPLOYMENTS_VALUE":"Deployments: {value}","STATEFULSETS_VALUE":"Statefulsets: {value}","DAEMONSETS_VALUE":"Daemonsets: {value}","RUNNING_PODS":"Running Pods","ROUTE":"Ingress","PROJECT_PL":"Projects","PROJECT_COUNT":"Projects","USAGE_RANKING":"Usage Ranking","QUOTA_VALUE":"Quota: {value}","OUTBOUND_TRAFFIC":"Outbound Traffic","INBOUND_TRAFFIC":"Inbound Traffic","SORT_BY_NAMESPACE_CPU_USAGE":"Sort by CPU usage","SORT_BY_NAMESPACE_POD_COUNT":"Sort by pod quota usage (%)","SORT_BY_NAMESPACE_NET_BYTES_RECEIVED":"Sort by inbound traffic","SORT_BY_NAMESPACE_NET_BYTES_TRANSMITTED":"Sort by outbound traffic","MONITORING_AND_ALERTING":"Monitoring & Alerting","CLUSTER_STATUS":"Cluster Status","MONITORING_CLUSTER_DESC":"Cluster status displays the overview and details of cluster resources. You can view the monitoring data and the usage ranking of cluster resources.","CLUSTER_NODE_STATUS":"Cluster Node Status","ALL_NODES":"All nodes","ONLINE_NODES":"Online nodes","NODE_ONLINE_STATUS":"Node Online Status","TIMES_PER_SECOND":"times/s","COMPONENT_STATUS":"Component Status","CONTROLLER_MANAGER":"Controller Manager","KUBERNETES_SCHEDULER":"Kubernetes Scheduler","CLUSTER_RESOURCE_USAGE":"Cluster Resource Usage","POD_COUNT":"Pods","COUNT":"Count","PODS":"Pods","SERVICE_STATUS":"Service Status","ETCD_MONITORING":"etcd Monitoring","DB_SIZE":"DB Size","RAFT_PROPOSAL":"Raft Proposal","ETCD_STATUS":"Service Status","ETCD_PROPOSAL":"Raft Proposal","ETCD_DB_SIZE":"DB Size","ETCD_CLIENT_TRAFFIC":"Client Traffic","TITLE_UNIT":"{title} ({unit})","AVERAGE":"Average","PROPOSAL_COMMITTED":"Committed","PROPOSAL_APPLIED":"Applied","PROPOSAL_FAILED":"Failed","PROPOSAL_PENDING":"Pending","SERVICE_COMPONENT_MONITORING":"Service Component Monitoring","SCHEDULE_ATTEMPTS":"Scheduling Attempts","SCHEDULING_RATE":"Scheduling Rate","REQUEST":"Request","REQUEST_PER_SECOND":"Requests per Second","SCHEDULER":"Scheduler","TOTAL_AVERAGE":"Total","SUCCESS":"Success","ERROR":"Error","FAILURE":"Failure","REQUEST_LATENCY_TCAP":"Request Latency","REQUEST_RATE":"Request Rate","SCHEDULE_ATTEMPTS_TCAP":"Scheduling Attempts","SCHEDULING_RATE_TCAP":"Scheduling Rate","API_SERVER":"API Server","SELECT_TIME_RANGE":"Select Time Range","LAST_TIME":"Last {value}","LAST_TIME_M":"{num, plural, =1 {Last 1 minute} other{Last # minutes}}","LAST_TIME_H":"{num, plural, =1 {Last 1 hour} other{Last # hours}}","LAST_TIME_D":"{num, plural, =1 {Last 1 day} other{Last # days}}","TIMERANGE_SELECTOR_MSG":"The end time must be later than the start time.","TIMERANGE_SELECTOR_ERROR_MSG":"Please confirm whether the selected time range is appropriate!","PHYSICAL_RESOURCES_MONITORING":"Physical Resource Monitoring","INODE_USAGE":"Inode Usage","DISK_USAGE":"Disk Usage","DISK_USAGE_DETAILS":"Disk Usage Details","AVERAGE_CPU_LOAD":"Average CPU Load","DISK_THROUGHPUT":"Disk Throughput","POD_STATUS":"Pod Status","COMPLETED":"Completed","WARNING":"Warning","READ":"Read","WRITE":"Write","RUNNING":"Running","TIME_M":"{num, plural, =1 {1 minute} other{# minutes}}","TIME_H":"{num, plural, =1 {1 hour} other{# hours}}","TIME_D":"{num, plural, =1 {1 day} other{# days}}","EXTERNAL_ETCD":"External etcd","DB_FSYNC":"DB Fsync","GRPC_STREAM_MESSAGES":"gRPC Stream Message","CLIENT_TRAFFIC":"Client Traffic","RECEIVED":"Received","SENT":"Sent","WAL_FSYNC":"WAL Fsync","ETCD_LEADER_TITLE":"Leader exists","ETCD_CHANGES_TITLE":"Leader changes in 1 h","NODE_IP_ADDRESS_VALUE":"Node IP Address: {value}","API_SERVER_MONITORING":"API Server Monitoring","REQUEST_LATENCY":"Request Latency","REQUEST_LATENCY_MS":"Request Latency (ms)","REST_CREATE":"CREATE","REST_DELETE":"DELETE","REST_DELETECOLLECTION":"DELETECOLLECTION","REST_GET":"GET","REST_POST":"POST","REST_PATCH":"PATCH","REST_PUT":"PUT","REST_UPDATE":"UPDATE","REST_LIST":"LIST","SCHEDULER_MONITORING":"Scheduler Monitoring","SCHEDULING_LATENCY":"Scheduling Latency","RESOURCE_USAGE_RANKING":"Resource Usage Ranking","SORT_BY_NODE_CPU_UTILISATION":"Sort by CPU usage (%)","SORT_BY_NODE_MEMORY_UTILISATION":"Sort by memory usage (%)","SORT_BY_NODE_DISK_SIZE_UTILISATION":"Sort by disk usage (%)","SORT_BY_NODE_POD_UTILISATION":"Sort by pod usage","SORT_BY_NODE_DISK_INODE_UTILISATION":"Sort by inode usage","SORT_BY_NODE_LOAD1":"Sort by 1-minute CPU load average","SORT_BY_NAMESPACE_MEMORY_USAGE_WO_CACHE":"Sort by memory usage","POD_USAGE":"Pod Usage","EXPORT":"Export","CUSTOM_MONITORING":"Custom Monitoring","CUSTOM_MONITORING_DASHBOARD":"Custom Monitoring Dashboard","CUSTOM_MONITORING_DASHBOARD_PL":"Custom Monitoring Dashboards","CUSTOM_MONITORING_DASHBOARD_EMPTY_DESC":"Please create a custom monitoring dashboard.","CUSTOM_MONITORING_DASHBOARD_DESC":"Custom monitoring provides application monitoring templates. You can customize monitoring dashboards based on your needs.","TEMPLATE":"Template","CREATE_CUSTOM_MONITORING_DASHBOARD":"Create Custom Monitoring Dashboard","MONITORING_TEMPLATE":"Monitoring Template","CUSTOM_MONITORING_TEMPLATE_DESC":"Select a default template, upload a template, or customize a template to generate a custom monitoring dashboard.","UPLOAD_GRAFANA_DASHBOARD":"Upload Grafana Dashboard","SUPPORT_JSON_FILE":"Only files in JSON format are supported.","UPLOAD_GRAFANA_URL":"Upload a Grafana dashboard from URL.","UPLOAD_FROM_LOCAL_TITLE":"Select or Drag a File","FILE_UPLOAD_ERROR":"Only one file can be uploaded.","UPLOAD_FILE_TIP":"Please upload a file.","ENTER_GRAFANA_URL":"Please enter a Grafana dashboard URL.","UPLOAD_FROM_LOCAL_STORAGE":"Upload from Local Storage","UPLOAD_FROM_URL":"Upload from URL","DASHBOARD_TITILE":"Dashboard title","APPLICABLE_SCENE":"Applicable Scenario","BASE_LINE_CHART":"Base Line Chart","STACK_LINE_CHART":"Stacked Area Chart","BASE_LINE_CHART_DESC":"A line chart is mainly used to visualize a trend or change in data over time. It is very useful for displaying a series of two-dimensional continuous data, such as website traffic or product prices.","STACK_LINE_CHART_DESC":"A stacked area chart is a special kind of area charts that can be used to compare multiple variables in an interval. It is very useful when multiple data series are available as you can analyze the relation of each group to the whole chart and display their respective proportion.","LINE_CHART_DESC":"A line chart is mainly used to visualize a trend or change in data over time.","BASE_BAR_CHART":"Base Bar Chart","STACK_BAR_CHART":"Stacked Bar Chart","BAR_CHART_DESC":"A bar chart is the most common type of charts. It presents different categorical data with horizontal or vertical bars with heights or lengths proportional to the values that they represent.","BASE_BAR_CHART_DESC":"One axis of the base bar chart features the categories being compared, while the other axis represents the value of each.","STACK_BAR_CHART_DESC":"A stacked bar chart is an extension of bar charts. A standard bar chart compares individual data points with each other while in a stacked bar chart, parts of the data are adjacent or stacked. It can be used to present the total amount of a category as well as its sub-amounts (proportion). Therefore, it is very helpful for examining part-to-whole relations.","CUSTOM_DISPLAY_MODAL_DESC":"Customize the table display style according to your needs","THRESHOLD_FILL_DESC":"You can set a threshold and the style can be changed automatically after the threshold is exceeded.","ADD_MONITOR_ITEM":"Add Monitoring Item","ADD_MONITOR_ROW":"Add Monitoring Group","CHART_TYPES":"Chart Types","GRAPH_TYPES":"Graph Types","LINE_CHART":"Line Chart","BAR_CHART":"Bar Chart","SELECT_CHART_TYPE":"Select a Chart Type","SELECT_CHART_TYPE_MODAL_DESC":"Select a customized chart type","SINGLE_STATE_CHART":"Real-time Text","DISPLAY_POSITION":"Display Position","EMPTY_CHART_PLACEHOLDER":"The chart is displayed here.","DISPLAY_FORMAT":"Display Format","FIELD_NAME":"Field Name","COLUMN_NAME":"Column Name","GRAPH_NAME":"Chart Name","DECIMALS":"Decimal Places","TABLE":"Table","TABLE_SETTINGS":"Table Settings","VALUE_FOMATER":"Value Format","PER_PAGE_LINES":"Lines Per Page","CUSTOM_DISPLAY_STYLE":"Display Style","DATA_TYPE":"Data Type","Y_AXIS":"Y Axis","GRAPH_COLORS":"Chart Colors","SINGLE_GRAPH_TYPE_NAME":"Basic Chart","SINGLE_GRAPH_TYPE":"The most common chart type","STACKED_GRAPH_TYPE":"Stacked Chart","STACKED_GRAPH_TYPE_DESC":"Useful for displaying part-to-whole relations","MONITOR_TYPE_NO_SUPPORT":"The type is not supported currently","MONITOR_METRIC":"Monitoring Metric","METRIC_NAME":"Metric Name","DEBUGB_DATA":"Debugging Data","TIME_FORMAT":"Time Format","HIGHT_RULES":"Highlighting Rules","EDIT_TEMPLATE":"Edit Template","SAVE_TEMPLATE":"Save Template","THRESHOLD_FILL":"Threshold Settings","UNIT":"Unit","COOL_COLORS":"Cool Colors","WARM_COLORS":"Warm Colors","DEFAULT_COLORS":"Default Colors","LAST":"Last","SECOND_TIME":"{count, plural, =1 {1 second} other{# seconds}}","MINUTE_TIME":"{count, plural, =1 {1 minute} other{# minutes}}","HOUR_TIME":"{count, plural, =1 {1 hour} other{# hours}}","DAY_TIME":"{count, plural, =1 {1 day} other{# days}}","WEEK_TIME":"{count, plural, =1 {1 week} other{# weeks}}","NO_REFRESHING":"No refreshing","INTERVAL":"Interval","CUSTOM_MONITORING_DASHBOARD_LOW":"custom monitoring dashbord","EGRESS_RULES":"Egress Rules","DESTINATION":"Destination","LABEL":"Label","INGRESS_RULES":"Ingress Rules","NETWORK_POLICY":"Network Policy","NETWORK_POLICY_PL":"Network Policies","NETWORK_POLICY_DESC":"The network policy configuration allows network isolation within the same cluster, which means firewalls can be set up between certain instances (pods).","NETWORK_POLICY_Q":"How do I use a network policy better?","NETWORK_POLICY_A":"We have identified several common use cases based on actual scenarios, and you can refer to the documentation for more information.","NETWORK_POLICY_Q1":"What are the requirements on the CNI plugin for implementing a network policy?","NETWORK_POLICY_A1":"Make sure that the CNI network plugin used by the cluster supports Network Policies. A number of CNI network plugins support Network Policies, including Calico, Cilium, Kube-router, Romana, and Weave Net.","NETWORK_POLICY_EMPTY_DESC":"Please create a network policy.","CREATE_NETWORK_POLICY_TCAP":"Create Network Policy","CREATE_BTN":"Create","CREATE_NETWORK_POLICY_DESC":"The network policy is configured to allow network isolation within the same cluster, namely, the ability to build a firewall between certain instances (pods).","NETWORK_POLICY_LOW":"network policy","NETWORK":"Network","START_IP_ADDRESS":"Start IP Address","END_IP_ADDRESS":"End IP Address","MASK":"Mask","WORKSPACES":"Workspaces","MANAGER":"Manager","IPPOOL_WORKSPACE_EMPTY_TIP":"No workspace is using this pod IP pool.","NAMESPACE_PL":"Project","ADD_IPPOOLL_NAMESPACE":"Add project","ADD_IPPOOLL_NAMESPACE_DESC":"Assign IP Pool to new project","REMOVEALL_IPPOOLL_NAMESPACE":"Remove all","REMOVEALL_IPPOOLL_NAMESPACE_PROJECT":"Remove all items","REMOVEALL_IPPOOLL_NAMESPACE_PROJECT_DESC":"After the project is removed, it will no longer be subject to IP Pool resource allocation restrictions","POD_IP_POOL_PL":"Pod IP Pools","POD_IP_POOL_DESC":"Pod IP pools is used to manage the pod network address space in the cluster. You can create pod IP pools based on your needs.","IPPOOL_USAGE_Q":"How do I manage a pod network using a pod IP pool?","IPPOOL_USAGE_A":"A pod IP pool is used to manage the pod network address space, and the address spaces between different pod IP pools cannot overlap. When creating a workload, you can select a specific pod IP pool to assign IP addresses from this pod IP pool to the created pods.","IPPOOL_USAGE_A_1":"An IP pool is used to manage the network address space of pods, and the address space between each IP pool cannot overlap. When creating a project, you can specify an IP pool in the annotation, so that pods created in the project will be assigned IPs from the specified IP pool.","POD_IP_POOL_EMPTY_DESC":"Please create a pod IP pool.","TOTAL_VALUE":"Total: {value}","ALL":"All","NOT_ASSIGNED":"Not assigned","CREATE_POD_IP_POOL":"Create Pod IP Pool","CIDR_OVERLAP":"{cidr0} and {cidr1} overlaped","NETWORK_SEGMENT":"Network Segment","USED_IP_ADDRESSES":"Used IP Addresses","QUANTITY":"Quantity","IP_POOL_CREATE_DESC":"Pod IP Pools to be Created","IP_ADDRESS_EMPTY_DESC":"Please enter an IP address.","MASK_TIP":"Please enter a mask.","ENTER_NETWORK_SEGMENT_TIP":"Please enter a network segment.","IP_POOL_NUM_TIP":"Please enter the number of pod IP pools to be created.","IP_POOL_CREATE_COUNT_DESC":"Up to 10 pod IP pools can be created at the same time.","INVALID_IP_DESC":"Invalid IP address format.","IPPOOL_ASSIGN_WORKSPACE_DESC":"Assign the pod IP pool to a workspace.","IPPOOL_ASSIGN_WORKSPACE_ALLOCATED_WARNING":"The pod IP pool is in use and cannot be assigned to another specific workspace.","IPPOOL_ASSIGN_WORKSPACE_CHANGE_WARNING":"The pod IP pool is in use with a specific workspace assigned. The workspace cannot be changed.","ASSIGN_WORKSPACE":"Assign Workspace","SELECT_WORKSPACE_DESC":"Select a workspace.","POD_IP_POOL_LOW":"pod IP pool","ADD_EDGE_IPPOOL":"Add a container group IP address pool ","ADD_EDGE_IPPOOL_DES":"Adds a container group IP pool to a resource. ","ADD_IPPOOL_EMPTY_DES_ADMIN":"If no container group IP pool meets the requirements, you can ","ADD_IPPOOL_EMPTY_DES":"If no container group IP address pool meets the requirements, contact the administrator to create a container group IP address pool ","SELECTED_IPPOOLS":"{number} IP pools have been selected ","CLUSTER_IPPOOL_EMPTY_DES":" No available container group IP address pool is found in the current cluster. ","ATTRIBUTES":"Attributes","ARCHITECTURE":"Architecture","OS_VERSION":"OS Version","OS_TYPE":"OS Type","LINUX":"Linux","KERNEL_VERSION":"Kernel Version","CONTAINER_RUNTIME":"Container Runtime","KUBELET_VERSION":"kubelet Version","KUBE_PROXY_VERSION":"kube-proxy Version","IP_ADDRESS":"IP Address","SCHEDULABLE":"Schedulable","YES":"Yes","EDIT_LABELS":"Edit Labels","LABEL_PL":"Labels","TAINTS":"Taints","EDIT_TAINTS":"Edit Taints","TAINTS_DESC":"Add taints to nodes so that pods are not scheduled to the nodes or not scheduled to the nodes if possible. After you add taints to nodes, you can set tolerations on a pod to allow the pod to be scheduled to nodes with certain taints.","COMMON_TAINTS":"Common Taints","NOSCHEDULE":"Prevent scheduling","PREFERNOSCHEDULE":"Prevent scheduling if possible","NOEXECUTE":"Prevent scheduling and evict existing pods","TAINT_SELECT_TIPS":"Join Common Taints","TAINTS_TIPS":"Prevent scheduling
    Prevents the container group from being scheduled to the node.

    Prevent scheduling as much as possible
    Prevent container groups from being scheduled to nodes as much as possible.

    Prevent scheduling and evict existing container groups
    Prevent container groups from being scheduled to a node and evict existing container groups on the node. ","TAINT_DELETE_TIP":"Delete taint","RESOURCE_USAGE":"Resource Usage","MAXIMUM_PODS":"Maximum Pods","MAXIMUM_PODS_SCAP":"Maximum pods","DISK_USAGE_SCAP":"Disk usage","MEMORY_REQUEST_SCAP":"Memory request","MEMORY_LIMIT_SCAP":"Memory limit","CPU_REQUEST_SCAP":"CPU request","CPU_LIMIT_SCAP":"CPU limit","ALLOCATED_RESOURCES":"Allocated Resources","RUNNING_STATUS":"Running Status","HEALTH_STATUS":"Health Status","NODE_NETWORKUNAVAILABLE":"Network Availability","NODE_NETWORKUNAVAILABLE_DESC":"Whether the network status of the node is normal.","NODE_MEMORYPRESSURE":"Memory Pressure","NODE_MEMORYPRESSURE_DESC":"Whether the remaining memory of the node is less than the threshold.","NODE_DISKPRESSURE":"Disk Pressure","NODE_DISKPRESSURE_DESC":"Whether the ramaining disk space or inodes of the node is less than the threshold.","NODE_PIDPRESSURE":"PID Pressure","NODE_PIDPRESSURE_DESC":"Whether the number of processes allowed to be created on the node is less the threshold.","NODE_READY":"Readiness","NODE_READY_DESC":"Whether the node is ready to accept pods.","LAST_HEARTBEAT_VALUE":"Last Heartbeat: {value}","NO_TAINTS_TIPS":"No taint is found.","POLICY":"Policy","READY_VALUE":"Ready: {readyCount}/{total}","STATUS_VALUE":"Status: {value}","USAGE":"Usage","OUT":"Out","IN":"In","CLUSTER_NODE_PL":"Cluster Nodes","CLUSTER_NODE":"Cluster Node","CLUSTER_NODE_DESC":"Cluster nodes are basic servers of the KubeSphere cluster. You can manage cluster nodes on this page.","NODE_TYPES_Q":"What are the types of cluster nodes?","NODE_TYPES_A":"Nodes are classified into control plane nodes and worker nodes.","WHAT_IS_NODE_TAINTS_Q":"What are node taints?","WHAT_IS_NODE_TAINTS_A":"Taints allow a node to repel certain pods. Taints and tolerations work together to ensure that pods are not scheduled onto inappropriate nodes.","LEARN_MORE":"Learn More","NODE_SI":"Node","NODE_PL":"Nodes","MASTER_NODE_SI":"Control plane node","MASTER_NODE_PL":"Control plane nodes","WORKER_NODE_SI":"Worker node","WORKER_NODE_PL":"Worker nodes","KUBE_OPERATE":"Sort","KUBE_ASCENDING_ORDER":"Ascending","KUBE_DESCENDING_ORDER":"Descending","KUBE_FILTER":"Filter","SEARCH":"Search","ADD_NODE":"Add Node","NODE_STATUS_UNSCHEDULABLE":"Unschedulable","NODE_STATUS_RUNNING":"Running","NODE_STATUS_WARNING":"Warning","NODE_STATUS_PENDING":"Creating","NODE_STATUS_FAILED":"Failed","CLUSTER_NODE_EMPTY_DESC":"Please add a node to the cluster.","NODE_NAME_EMPTY_DESC":"Please set a name for the node.","CPU_USAGE":"CPU Usage","MEMORY_USAGE":"Memory Usage","CONTROL_PLANE":"Control plane","WORKER":"Worker","ALLOCATED_CPU":"Allocated CPU","ALLOCATED_MEMORY":"Allocated Memory","CPU_LIMIT_SI":"Resource limit: {core} core ({percent})","CPU_LIMIT_PL":"Resource limit: {core} cores ({percent})","CPU_REQUEST_SI":"{core} core ({percent})","CPU_REQUEST_PL":"{core} cores ({percent})","CORE_PL":"cores","CPU_CORE_PERCENT_SI":"{core} core ({percent})","CPU_CORE_PERCENT_PL":"{core} cores ({percent})","MEMORY_GIB_PERCENT":"{gib} GiB ({percent})","MEMORY_LIMIT_VALUE":"Resource limit: {gib} GiB ({percent})","MEMORY_REQUEST_VALUE":"{gib} GiB ({percent})","RESOURCE_REQUEST":"Resource request","CORDON":"Cordon","UNCORDON":"Uncordon","OPEN_TERMINAL":"Open Terminal","CUSTOM_COLUMNS":"Customize Columns","NO_MATCHING_RESULT_FOUND":"No Matching Result Found","STATUS":"Status","TOTAL_ITEMS":"Total: {num}","YOU_CAN_TRY_TO":"You can try","REFRESH_DATA":"refreshing data","CLEAR_SEARCH_CONDITIONS":"clearing search conditions","DUPLICATE_KEYS":"The key already exists. Please enter another key.","EMPTY_KEY":"Please enter a key.","LATEST_UPDATE_VALUE":"Latest update: {value}","EDGE_NODE_PL":"Edge Nodes","EDGE_NODE_DESC":"Edge nodes are servers deployed outside the KubeSphere cluster. You can add edge nodes to the KubeSphere cluster to manage them.","EDGE_NODE_EMPTY_DESC":"Please add an edge node to the cluster.","AGENT":"Agent","EDGE":"Edge node","ADD":"Add","ADD_EDGE_NODE":"Add Edge Node","EDGENODE_CONFIG_COMMAND":"Edge Node Configuration Command","ADD_EDGE_COMMAND":"Run the above command on your edge node to configure it.","IN_USE_Node_IP":"The IP address {ip} is in use. Please enter another IP address.","IN_USE_Node_NAME":"The node name {name} already exists. Please enter another name.","EDGENODE_NAME_EMPTY_DESC":"Please set a name for the edge node.","EDGENODE_CONFIG_COMMAND_TIP":"Before running the command, you must install a container runtime such as Docker or containerd on your edge node. Learn More","ADD_DEFAULT_TAINT":"Add the default taint {params}","EDGE_NODE":"Edge Node","INTERNAL_IP_ADDRESS":"Internal IP Address","EDGENODE_INTERNAL_IP_DESC":"Set the internal IP address of the edge node in the KubeSphere cluster.","EDGENODE_INTERNAL_IP_EMPTY_DESC":"Please set the internal IP address of the edge node in the KubeSphere cluster.","COPY_SUCCESSFUL":"Copied successfully.","LOGS":"Logs","VIEW_LOG":"View Log","EDGE_LIST_NOT_HOST_TITLE":"The current cluster is unavailable","EDGE_LIST_NOT_HOST_TITLE_DESC":"Edge nodes can only be used in the main cluster for now","HOST_CLUSTER":"Host cluster","MEMBER_CLUSTER":"Member cluster","PROVIDER":"Provider","KUBERNETES_VERSION":"Kubernetes version","KUBESPHERE_VERSION":"KubeSphere version","VISIBILITY_PARTIAL":"Visible to Some Workspaces","VISIBILITY_PUBLIC":"Visible to All Workspaces","CLUSTER_BASE_INFO_DESC":"Basic information provides an overview of the cluster. You can view and edit cluster information.","MEMORY":"Memory","TOTAL":"Total","USED":"Used","TOOLS":"Tools","KUBECTL_DESC":"Command line tool used to control the current cluster.","KUBECONFIG_DESC":"File used to configure the access information about the current cluster.","KUBERNETES_STATUS":"Kubernetes Status","API_REQUESTS_PER_SECOND":"API requests per second","VALUE_REQUESTS_SECOND":"{value, plural, =1 {1 request} other {# requests}}/s","API_REQUEST_LATENCY":"API request latency","SCHEDULING_OPERATIONS":"Scheduling operations","SCHEDULING_OPERATION":"Scheduling operation","SCHEDULING_FAILURES":"Scheduling failures","SCHEDULING_FAILURE":"Scheduling failure","VIEW_MORE":"View More","NODE_CPU_UTILISATION":"CPU usage","NODE_LOAD1":"Average CPU load (1 min)","NODE_MEMORY_UTILISATION":"Memory usage","NODE_DISK_SIZE_UTILISATION":"Disk usage","NODE_DISK_INODE_UTILISATION":"Inode usage","NODE_POD_UTILISATION":"Pod usage","WAIT_FOR_CLUSTER":"Waiting for the cluster to join...","WAIT_FOR_CLUSTER_DESC":"The cluster is unavailable. Perform the following steps to add the cluster.","CLUSTER_AGENT_TIP_1":"1. Log in to the cluster over SSH and run the vi agent.yaml command to create a configuration file.","CLUSTER_AGENT_TIP_2":"2. Copy the following information to the agent.yaml file.","CLUSTER_AGENT_TIP_3":"3. Run the kubectl create -f agent.yaml command to add the cluster.","CLUSTER_AGENT_TIP_3_DESC":"This operation may take a while. Please wait until the cluster status is updated.","CREATING_CLUSTER":"Creating the cluster...","CREATING_CLUSTER_DESC":"The cluster is being created and is currently unavailable.","CLUSTER_INIT_FAILED":"Cluster initialization failed.","CLUSTER_CREATION_PROGRESS":"Cluster Creation Progress","FETCHING_LOGS":"Fetching logs...","CURRENT_STEP":"Current step: {step}","CLUSTER_CREATION_PROGRESS_TIP":"Depending on the cluster size and infrastructure environment, cluster creation may take 30 to 60 minutes.","GATEWAY":"Gateway","GATEWAY_NOT_ENABLED":"Gateway Not Enabled","ENABLE_GATEWAY_TIP":"To use the gateway, please configure the gateway in the cluster or the project.","QUOTA_PL":"Quotas","PROJECT_DESC":"Projects are used to group resources and control the resource management permissions of different users.","SYSTEM_PROJECTS":"System Projects","USER_PROJECTS":"User Projects","EMPTY_WRAPPER":"No {resource} Found","TERMINATING":"Terminating","ACTIVE":"Active","PROJECT_ADMINISTRATOR":"Project Administrator","PROJECT_ADMINISTRATOR_DESC":"Select a user in the workspace as the project administrator.","PROJECT_ASSIGN_DESC":"After the project is assigned to a workspace, the workspace cannot be changed.","CREATE_PROJECT_DESC":"Create a project to group resources and control the resource management permissions of different users.","PROJECT_NAME_DESC":"The name can contain only lowercase letters, numbers, and hyphens (-), must start with a lowercase letter, and must end with a lowercase letter or number. The maximum length is 63 characters.","PROJECT_NAME_INVALID_DESC":"Invalid name. The name can contain only lowercase letters, numbers, and hyphens (-), must start with a lowercase letter, and must end with a lowercase letter or number. The maximum length is 63 characters.","CANCEL":"Cancel","CREATE_NAME":"Create {name}","DESCRIPTION":"Description","NAME_VALIDATION_FAILED":"The name cannot start with kube-, which is reserved for the Kubernetes system.","PROJECT_NAME_EXIST_DESC":"The name already exists. Please enter another name. Project names must be unique on the entire platform.","NAME_EMPTY_DESC":"Please set a name.","OK":"OK","NAME_DESC":"The name can contain only lowercase letters, numbers, and hyphens (-), and must start and end with a lowercase letter or number. The maximum length is 63 characters.","DESCRIPTION_DESC":"The description can contain any characters and the maximum length is 256 characters.","ALIAS_DESC":"The alias name can contain only letters, numbers, and hyphens (-), and cannot start or end with a hyphen. The maximum length is 63 characters.","EDIT_INFORMATION":"Edit Information","DELETE_TITLE_SI":"Delete {type}","DELETE_TITLE_PL":"Delete Multiple {type}","DELETE":"Delete","PROJECT_LOW":"project","DELETED_SUCCESSFULLY":"Deleted successfully.","STOP_SUCCESS_DESC":"Stopped successfully.","DELETE_RESOURCE_TYPE_DESC_SI":"Enter the {type} name {resource} to confirm that you understand the risks of this operation.","DELETE_RESOURCE_TYPE_DESC_PL":"Enter the {type} names {resource} to confirm that you understand the risks of this operation.","DELETE_RESOURCE_TYPE_DESC_GW":"Enter the {type} names {resource} to confirm that you understand the risks of this operation.","DISABLED_RESOURCE_TYPE_DESC":"Enter the {resource} to confirm that you understand the risks of this operation.","VOLUME_EXPAND_TIP":"The persistent volume claim has been mounted to a workload. Expanding the persistent volume claim will cause the workload to restart and business will be interrupted for a short while.","MOUNTED_PODS":"Mounted Pods","SNAPSHOT_PL":"Snapshots","STORAGE":"Storage","PERSISTENT_VOLUME_CLAIM_DESC":"Persistent volume claims define storage requirements. The system creates persistent volumes according to persistent volume claims.","PERSISTENT_VOLUME_CLAIM":"Persistent Volume Claim","PERSISTENT_VOLUME_CLAIM_PL":"Persistent Volume Claims","WHAT_IS_STORAGE_CLASS_Q":"What is a storage class?","WHAT_IS_STORAGE_CLASS_A":"A storage class is a storage type configured by the cluster administrator. Different storage classes provide cluster users with different types of volumes.","WHAT_IS_LOCAL_VOLUME_Q":"What is a local volume?","WHAT_IS_LOCAL_VOLUME_A":"A local volume is a volume created in the local file system of the cluster.","VOLUME_STATUS_BOUND":"Bound","VOLUME_STATUS_LOST":"Lost","VOLUME_STATUS_PENDING":"Pending","VOLUME_STATUS_TERMINATING":"Terminating","VOLUME_STATUS_UPDATING":"Updating","VOLUME_CONDITION_FILESYSTEMRESIZEPENDING":"Disk Expanding","PERSISTENT_VOLUME_CLAIM_EMPTY_DESC":"Please create a persistent volume claim.","PERSISTENT_VOLUME_EMPTY_DESC":"Please create a persistent volume.","MOUNT_STATUS":"Mount Status","MOUNTED":"Mounted","NOT_MOUNTED":"Not mounted","ACCESS_MODE_TCAP":"Access Mode","RWO_DESC":"RWO: Single-node read and write","ROX_DESC":"ROX: Multi-node readonly","RWX_DESC":"RWX: Multi-node read and write","ACCESS_MODE_RWO":"RWO: Single-node read and write","ACCESS_MODE_ROX":"ROX: Multi-node readonly","ACCESS_MODE_RWX":"RWX: Multi-node read and write","CREATE":"Create","CREATE_PERSISTENT_VOLUME_CLAIM":"Create Persistent Volume Claim","CREATION_METHOD":"Creation Method","CREATE_VOLUME_BY_STORAGE_CLASS":"From Storage Class","CREATE_VOLUME_BY_SNAPSHOT":"From Volume Snapshot","SELECT_SNAPSHOT_TO_CREATE_VOLUME":"Select a snapshot to create a volume.","SELECT_STORAGE_CLASS_CREATE_VOLUME":"Select a storage class to create a volume.","VOLUME_CAPACITY":"Volume Capacity","PARAM_REQUIRED":"This parameter is required.","VOLUME_SIZE_TIP":"The volume capacity must be greater than 0.","VOLUME_STORAGE_CLASS_DESC":"Select a storage class to create a volume of a specific type.","PERSISTENT_VOLUME_CLAIM_LOW":"persistent volume claim","VOLUME_HANDLE":"Volume Handle","VOLUME_MODE":"Volume Mode","VOLUME_MODE_FILESYSTEM":"File system","VOLUME_MODE_BLOCK":"Block device","STORAGE_CLASS_VALUE":"Storage class: {value}","PERSISTENT_VOLUME":"Persistent Volume","PERSISTENT_VOLUME_PL":"Persistent Volumes","PERSISTENT_VOLUME_LOW":"persistent volume","PV_STATUS_AVAILABLE":"Available","PV_STATUS_BOUND":"Bound","PV_STATUS_RELEASED":"Released","PV_STATUS_FAILED":"Failed","RECYCLING_STRATEGY":"Recycling Strategy","VOLUME_EMPTY_DESC":"Please bind a persistent volume claim to a workload.","TRUE":"True","FALSE":"False","SET_DEFAULT_STORAGE_CLASS_TITLE":"Set as Default Storage Class","SET_AS_DEFAULT_STORAGE_CLASS":"Set as Default Storage Class","STORAGE_CLASS_SET_DEFAULT_DESC":"After the default storage class is set, the system will create volumes of this class by default if no special requirement is added. Only one default storage class is allowed in a KubeSphere cluster.","SET_AUTHORIZATION_RULES":"Set Authorization Rules","AUTHORIZATION_RULES":"Authorization Rules","AUTHORIZATION_RULES_DESC":"Set authorization rules so that the storage class can be accessed only in specific projects and workspaces.","AUTHORIZATION_NOT_SUPPORT":"The cluster currently does not support this feature. Please upgrade KubeSphere to v3.3.0 or later, or manually install storageclass-accessor.","OPERATOR_IN":"In","OPERATOR_NOT_IN":"Not in","SET_VOLUME_OPERATIONS":"Set Volume Operations","VOLUME_CLONING":"Volume Cloning","VOLUME_CLONING_DESC":"Allow users to clone volumes.","VOLUME_SNAPSHOT_CREATION":"Volume Snapshot Creation","VOLUME_SNAPSHOT_CREATION_DESC":"Allow users to create volume snapshots.","VOLUME_EXPANSION_DESC":"Allow users to expand volumes. Volumes can only be expanded and cannot be shrunk.","SET_VOLUME_OPERATIONS_TIP":"The following settings only control whether users are allowed to perform the operations on the web console. Whether persistent volumes created based on the storage class actually support the operations depends on the backend storage system.","SET_AUTO_EXPANSION":"Set Auto Expansion","AUTO_EXPANSION":"Auto Expansion","AUTO_EXPANSION_DESC":"Set the system to automatically expand volumes when the remaining volume space is lower than a threshold.","AUTO_EXPANSION_SETTINGS":"Auto Expansion Settings","MAXIMUM_SIZE":"Maximum Size","INCREMENT":"Increment","INCREMENT_DESC":"Set the volume size increment according to the CSI pluggin of the storage class.","RESTART_WORKLOAD_AUTOMATICALLY":"Restart workload automatically","RESTART_WORKLOAD_AUTOMATICALLY_DESC":"The system automatically checks volume status to determine whether the workload needs to be restarted.","RESTART_WORKLOAD_AUTOMATICALLY_TIP":"If the volume is not expanded successfully when the timeout period expires, the system will add the \"restart.kubesphere.io/skip\" annotation to the workload so that the workload is not restarted any more. To enable the automatic restart function for the workload again, you need to manually delete the annotation on the workload.","MAXIMUM_SIZE_SCAP":"Maximum size","VALUE_TIMEOUT":"{value}s (timeout)","PVC_COUNT":"PVCs","STORAGE_CLASS_PL":"Storage Classes","STORAGE_CLASS_DESC":"Storage classes support dynamic volume provisioning, allowing administrators to create new storage volumes on demand.","STORAGE_CLASS_EMPTY_DESC":"Please create a storage class.","DEFAULT_STORAGE_CLASS":"Default Storage Class","ALLOW_VOLUME_SNAPSHOT":"Volume Snapshot Allowed","ALLOW_VOLUME_CLONE":"Volume Clone Allowed","ALLOW_VOLUME_EXPANSION":"Volume Expansion Allowed","CHOOSE_STORAGE_SYSTEM_TIP":"Select Storage System","PROVISIONER_DEPENDENCE_DESC":"You need to deploy a plugin in your storage system before it provides services.","QINGCLOUD_CSI_DESC":"Use QingCloud CSI as the underlying storage plugin.","CUSTOM":"Custom","VOLUME_EXPANSION":"Volume Expansion","RECLAIM_POLICY":"Reclaim Policy","ACCESS_MODE":"Access Mode","ACCESS_MODES_DESC":"Select one or more access modes supported by the storage class.","STORAGE_SYSTEM":"Storage System","VOLUME_BINDING_MODE":"Volume Binding Mode","IMMEDIATE_BINDING":"Immediate binding","BINDING_WAIT":"Delayed binding","MAXSIZE":"Maximum Size","MINSIZE":"Minimum Size","STEPSIZE":"Step Size","FSTYPE":"File System Type","QINGCLOUD_CSI_TYPE_DESC":"On QingCloud Public Cloud Platform, 0 means high performance volume; 2 high capacity volume; 3 ultra-high performance volume; 5 enterprise server SAN (NeonSAN); 100 standard volume; 200 enterprise SSD.","CREATE_VOLUME_MAX_SIZE":"Maximum size of the volume.","CREATE_VOLUME_STEP_SIZE":"Step size of the volume.","CREATE_VOLUME_MIN_SIZE":"Minimum size of the volume.","VOLUME_FS_TYPE":"Supports ext3, ext4, and xfs. The default type is ext4.","QINGCLOUD_VOLUME_TAGS_DESC":"Add tags to the storage volume. Use commas to separate multiple tags.","GID_RANGE_TIP":"The value cannot be less than 2000 or greater than 2147483647.","GLUSTERFS_RESTURL_DESC":"Heketi REST URL that provisions volumes.","GLUSTERFS_ID_DESC":"Gluster cluster ID.","GLUSTERFS_RESTAUTHENABLED_DESC":"Gluster enables authentication to the REST server.","GLUSTERFS_RESTUSER_DESC":"Username of Gluster REST service or Heketi service.","GLUSTERFS_SECRET_NAMESPACE_DESC":"Namespace of the Heketi user secret.","GLUSTERFS_SECRET_NAME_DESC":"Name of the Heketi user secret.","GLUSTERFS_GID_MIN_DESC":"Minimum GID of the volume.","GLUSTERFS_GID_MAX_DESC":"Maximum GID of the volume.","GLUSTERFS_VOLUME_TYPE_DESC":"Type of volume. The value can be none, replicate:, or disperse::. If the volume type is not set, the default volume type is replicate:3.","RESTURL":"REST URL","CLUSTER_ID":"Cluster ID","REST_AUTH_ENABLED":"REST Authentication","REST_USER":"REST User","VOLUME_TYPE":"Volume Type","SECRET_NAME":"Secret Name","REST_AUTH_TRUE":"True","SECRET_NAMESPACE":"Secret Namespace","GID_MIN":"Minimum GID","GID_MAX":"Maximum GID","CEPHRBD_MONITORS_DESC":"IP address of Ceph monitors.","CEPHRBD_ADMIN_ID_DESC":"Ceph client ID that is capable of creating images in the pool.","CEPHRBD_ADMIN_SECRET_NAME_DESC":"Secret name of adminid.","CEPHRBD_ADMIN_SECRET_NAMESPACE_DESC":"The namespace for adminSecretName.","CEPHRBD_POOL_DESC":"Name of the Ceph RBD pool.","CEPHRBD_USERID_DESC":"Ceph client ID that is used to map the RBD image. Default is the same as adminId.","CEPHRBD_USER_SECRET_NAME_DESC":"The name of Ceph secret for userId to map RBD image.","CEPHRBD_USER_SECRET_NAMESPACE_DESC":"The namespace for userSecretName","CEPHRBD_FS_TYPE_DESC":"File system type of the storage volume.","CEPHRBD_IMAGE_FORMAT_DESC":"Option of the Ceph volume. The value can be \"1\" or \"2\". imageFeatures needs to be filled when you set imageFormat to \"2\".","CEPHRBD_IMAGE_FEATURES_DESC":"Additional function of the Ceph cluster. The value should only be set when you set imageFormat to \"2\".","CEPH_MONITOR_IP":"IP address and port number","STORAGE_CLASS_SETTINGS":"Storage Class Settings","PARAMETERS":"Parameters","STORAGE_CLASS":"Storage Class","STORAGE_CLASS_LOW":"storage class","STORAGE_CLASS_DELETE_DESC":"Deleting the volume snapshot class may affect the normal use of volume snapshots. Are you sure you want to delete the volume snapshot class?","STORAGE_CLASS_DELETE_DESC_PL":"Deleting the volume snapshot class may affect the normal use of volume snapshots. Enter the {type} names {resource} to confirm that you understand the risks of this operation.","VOLUME_SNAPSHOT_CLASS_PL":"Volume Snapshot Classes","VOLUME_SNAPSHOT_CLASS":"Volume Snapshot Class","VOLUME_SNAPSHOT_CLASS_DESC":"Volume snapshot classes provide a way for administrators to define storage types used for volume snapshots.","VOLUME_SNAPSHOT_CLASS_EMPTY_DESC":"Please create a volume snapshot class.","SNAPSHOT_CLASS_SETTINGS":"Volume Snapshot Class Settings","SNAPSHOT_CLASS_PROVISIONER_DESC":"Enter the name of a CSI plugin.","SNAPSHOT_CLASS_PROVISIONER_EMPTY_DESC":"Please enter the name of a CSI plugin.","VOLUME_SNAPSHOT_CLASS_LOW":"volume snapshot class","DELETE_VOLUME_SNAPSHOT_CLASS":"Delete Volume Snapshot Class","SNAPSHOT_HANDLE":"Snapshot Handle","VOLUME_SNAPSHOT_CONTENT":"Volume Snapshot Content","VOLUME_SNAPSHOT_CONTENT_PL":"Volume Snapshot Contents","VOLUME_SNAPSHOT_CONTENT_LOW":"volume snapshot content","VOLUME_SNAPSHOT_CONTENT_EMPTY_DESC":"Please create a volume snapshot.","READY":"Ready","UNREADY":"Unready","UNSCHEDULABLE":"Unschedulable","DELETION_POLICY":"Deletion Policy","CREATE_VOLUME":"Create Volume","SNAPSHOT_CLASS_NOT_EXIST_TITLE":"Volume Snapshot Class Not Found","SNAPSHOT_CLASS_NOT_EXIST":"The volume snapshot class of the volume snapshot does not exist.","STORAGE_CLASS_SCAP":"Storage class","DATA_SOURCE":"Data Source","VOLUME_SNAPSHOT":"Volume Snapshot","VOLUME_SNAPSHOT_PL":"Volume Snapshots","VOLUME_SNAPSHOT_DESC":"A volume snapshot is the copy of a volume at a specific point in time. It can be used to provision a new volume with data pre-populated by the snapshot or restore a volume to its previous state that is captured by the snapshot.","WHAT_IS_VOLUME_SNAPSHOT_CLASS_Q":"What is a volume snapshot class?","WHAT_IS_VOLUME_SNAPSHOT_CLASS_A":"A volume snapshot class defines the storage types used to create a volume snapshot.","WHAT_IS_VOLUME_SNAPSHOT_CONTENT_Q":"What is a volume snapshot content?","WHAT_IS_VOLUME_SNAPSHOT_CONTENT_A":"A volume snapshot content is a resource that represents the content of a volume snapshot.","SELECT_A_VOLUME_DESC":"Select a persistent volume claim to create a snapshot.","SELECT_VOLUME_SNAPSHOT_CLASS_DESC":"Select a snapshot class to create a snapshot of a specific type.","VOLUME_SNAPSHOT_EMPTY_DESC":"Please create a volume snapshot.","VOLUME_SNAPSHOT_STATUS_CREATING":"Creating","VOLUME_SNAPSHOT_STATUS_FAILED":"Creation failed","VOLUME_SNAPSHOT_STATUS_READY":"Created successfully","VOLUME_SNAPSHOT_STATUS_DELETING":"Deleting","CREATE_STATUS_SUCCESS":"Created successfully","CREATE_STATUS_UPDATING":"Creating","CREATE_STATUS_FAILED":"Creation failed","CREATE_STATUS_DELETING":"Deleting","VOLUME_SNAPSHOT_LOW":"volume snapshot","STORAGECLASS_NOT_ALLOW_CREATE_SNAPSHOT":"The storage class of the persistent volume claim does not support snapshot creation. Please select another persistent volume claim.","SYSTEM_COMPONENT_PL":"System Components","SERVICE_COMPONENTS_DESC":"System components are software components in the KubeSphere system, which provide various functions. You can view the running status of services components on this page.","STOPPED":"Stopped","RUNNING_TIME":"Running time","KS_CONSOLE_DESC":"Provides KubeSphere console services.","KS_APISERVER_DESC":"Provides REST APIs for cluster management. This component is also used for communication between cluster components and cluster security control.","OPENLDAP_DESC":"Stores and manages user information in a centralized manner.","REDIS_DESC":"Open-source, in-memory data structure store, which is used as a database, cache, and message broker.","TOWER_DESC":"Tool used for network connection between clusters over proxy.","KS_CONTROLLER_MANAGER_DESC":"Implements service logic. This component creates permissions when a workspace is created and generates Istio configuration for service strategies.","COREDNS_DESC":"Provides the service discovery function for the Kubernetes cluster.","METRICS_SERVER_DESC":"Kubernetes monitoring component that collects metrics from kubelet of each node.","KUBE_SCHEDULER_DESC":"Kubernetes scheduler that assigns pods to appropriate nodes.","KUBE_SCHEDULER_SVC_DESC":"Kubernetes scheduler that assigns pods to appropriate nodes.","KUBE_CONTROLLER_MANAGER_SVC_DESC":"Daemon that embeds the core control loops shipped with Kubernetes.","JAEGER_COLLECTOR_DESC":"Collects sidecar data. The sidecar of Istio is jaeger-agent.","JAEGER_COLLECTOR_HEADLESS_DESC":"Collects sidecar data. The sidecar of Istio is jaeger-agent.","JAEGER_QUERY_DESC":"Accepts query requests, retrieves traces from the backend storage system, and displays the data on the web UI.","JAEGER_OPERATOR_METRICS_DESC":"Provides monitoring metrics for Operator.","MONITORING":"Monitoring","PROMETHEUS_K8S_DESC":"Provides monitoring data of nodes, workloads, and API objects.","NODE_EXPORTER_DESC":"Provides monitoring data of all cluster nodes for Prometheus.","KUBE_STATE_METRICS_DESC":"Listens on the Kubernetes API server to obtain the status of cluster API objects such as nodes, workloads, and pods, and generates monitoring data for Prometheus.","PROMETHEUS_OPERATED_DESC":"Service corresponding to all Prometheus instances, which is used internally by Prometheus Operator.","PROMETHEUS_OPERATOR_DESC":"Manages Prometheus instances.","ALERTMANAGER_OPERATED_DESC":"Alertmanager service used for integrating Alertmanager with Prometheus.","ALERTMANAGER_MAIN_DESC":"Alertmanager Web UI service.","NOTIFICATION_MANAGER_SVC_DESC":"Provides interfaces for sending notifications such as emails, WeChat messages, and Slack messages.","NOTIFICATION_MANAGER_CONTROLLER_METRICS_DESC":"Provides internal monitoring data for Notification Manager Controller.","LOGGING":"Logging","ELASTICSEARCH_LOGGING_DATA_DESC":"Provides Elasticsearch services such as data storage, backup, and searching.","ELASTICSEARCH_LOGGING_DISCOVERY_DESC":"Provides Elasticsearch cluster management services.","LOGSIDECAR_INJECTOR_ADMISSION_DESC":"Automatically injects sidecar containers into pods for disk log collection.","KS_EVENTS_ADMISSION_DESC":"Provides the authentication webhook for event rule management.","KS_EVENTS_RULER_DESC":"Event rule engine service that provides filtering and alerting features.","KUBE_AUDITING_WEBHOOK_SVC_DESC":"Used for audit collection, comparison, persistence, and alerting.","S2IOPERATOR_METRICS_SERVICE_DESC":"S2I monitoring service that provides basic monitoring data.","WEBHOOK_SERVER_SERVICE_DESC":"Provides the default values and authentication webhook for S2I.","CODE_REPO_PL":"Code Repositories","CODE_REPO_LOW":"code cepository","CODE_REPO":"Code Repository","CODE_REPO_DESC":"Manage code repositories based on Git.","CODE_REPO_EMPTY_DESC":"Import a code repository from GitHub, GitLab, or Bitbucket. You can also use Git to directly pull source code.","IMPORT_CODE_REPO":"Import Code Repository","EDIT_CODE_REPO":"Edit Code Repository","LATEST_SYNC_STATUS":"Latest sync status","CURRENT_SYNC_STATUS":"Current sync status","SYNC_STRATEGY":"Sync strategy","AUTO_SYNC":"Auto Sync","MANUAL_SYNC":"Manual Sync","END_TIME_SCAP":"End time","SYNC_RESULT_PL":"Sync Results","SYNC_RESULT":"Sync Result","SYNC_RESULT_EMPTY_DESC":"No sync result is found.","CONTINUOUS_DEPLOYMENT_PL":"Continuous Deployments","CONTINUOUS_DEPLOYMENT_DESC":"Manage continuous deployments to continuously deploy resources by using GitOps. ","CONTINUOUS_DEPLOYMENT_EMPTY_DESC":"Please create a continuous deployment.","DEGRADED":"Degraded","PROGRESSING":"Progressing","SYNCED":"Synced","MISSING":"Missing","SUSPENDED":"Suspended","OUTOFSYNC":"Out of sync","DEPLOY_LOCATION":"Deployment Location","NEED_TO_SYNC_REPO":"Need to sync repo","CREATE_CONTINUOUS_DEPLOYMENT":"Create Continuous Deployment","CD_SELECT_CODE_REPO_DESC":"Select a code repository.","DEPLOYMENT_SETTINGS":"Deployment Settings","CODE_REPOSITORY_SETTINGS":"Code Repository Settings","SYNC_STRATEGY_TCAP":"Sync Strategy","AUTO_SYNC_DESC":"Automatically trigger application sync when there is a difference between the manifest in Git and the real-time state of the deployed resources, according to the set sync options.","PRUNE_RESOURCES":"Prune resources","SELF_HEAL":"Self-heal","MANIFEST_FILE_PATH":"Manifest File Path","DIRECTORY_RECURSE":"Directory recurse","REPO_EMPTY_DESC":"Please select a code repository.","VALUES_FILES":"Values Files","VALUES_FROM":"Values From","STORAGE_NAMESPACE":"Storage Namespace","TEST":"Test","REVISIONS_DESC":"Git repository commit ID, branch, or tag. For example: \"master\", \"v1.2.0\", \"0a1b2c3\", or \"HEAD\".","MANIFEST_FILE_PATH_DESC":"Manifest file path, for example: \"deployments/nginx\" or \"deployments/\"","MANUAL_SYNC_DESC":"Sync according to custom rules.","PRUNE_RESOURCES_DESC":"If selected, resources that do not exist in Git will be deleted during automatic sync. If not selected, resources in the cluster will not be deleted when automatic sync is triggered.","SELF_HEAL_DESC":"If selected, when there is a deviation between the defined state in Git and the deployed resources, the defined state in Git will be enforced. If not selected, automatic sync will not be triggered when changes are made to the deployed resources.","FOREGROUND_DESC":"Delete dependent resources first, then delete the main resource.","BACKGROUND_DESC":"Delete the main resource first, then delete the dependent resource.","ORPHAN_DESC":"Delete the main resource and leave the dependent resource as an orphan.","SKIP_SCHEMA_VALIDATION_DESC":"Skip kubectl validation. Add the --validate=false flag when kubectl applies the object.","AUTO_CREATE_PROJECT_DESC":"Automatically create a project for application resources when the project does not exist.","PRUNE_LAST_DESC":"Clean up resources after other resources are deployed and healthy.","APPLY_OUT_OF_SYNC_ONLY_DESC":"Only apply resources that are out of sync.","CONTINUOUS_DEPLOYMENT":"Continuous Deployment","CONTINUOUS_DEPLOYMENT_LOW":"continuous deployment","DELETE_CONTINUOUS_DEPLOYMENT_DESC_SI":"You are about to delete the continuous deployment {resource}.
    Please confirm whether to delete resources created by the continuous deployment.","DELETE_CONTINUOUS_DEPLOYMENT_DESC_PL":"You are about to delete the continuous deployments {resource}.
    Please confirm whether to delete resources created by the continuous deployments.","NO_CONTINUOUS_DEPLOYMENT_RELATED_RESOURCE_DESC":"No resource created by the continuous deployment is found.","DELETE_MULTIPLE_CONTINUOUS_DEPLOYMENT":"Delete Multiple Continuous Deployments","DELETE_CONTINUOUS_DEPLOYMENT":"Delete Continuous Deployment","DELETE_CONTINUOUS_DEPLOYMENT_RELATE_DESC":"Delete resources created by {resourceName}","SYNC":"Sync","SYNC_RESOURCE":"Sync Resource","REVISION":"Revision","REVISION_DESC":"Set a branch or tag of the code repository.","PRUNE":"Prune","DRY_RUN":"Dry run","APPLY_ONLY":"Apply only","FORCE":"Force","SYNC_SETTINGS":"Sync Settings","SKIP_SCHEMA_VALIDATION":"Skip schema validation","AUTO_CREATE_PROJECT":"Auto create project","PRUNE_LAST":"Prune last","APPLY_OUT_OF_SYNC_ONLY":"Apply out of sync only","PRUNE_PROPAGATION_POLICY":"Prune Propagation Policy","REPLACE_RESOURCE":"Replace Resource","REPLACE_RESOURCE_DESC":"Replace resources that already exist.","EMPTY_CD_TITLE":"No Continuous Deployment Found","SYNC_TRIGGERED":"Resource sync was triggered successfully.","PARAMETER_SETTINGS":"Parameter Settings","AUTO_PARAMETER":"Auto","AUTO_PARAMETER_DESC":"Set automatically.","HELM_PARAMETER":"Helm","HELM_PARAMETER_DESC":"Set Helm parameter.","KUSTOMIZE_PARAMETER":"Kustomize","KUSTOMIZE_PARAMETER_DESC":"Set Kustomize parameters.","PASS_CREDENTIALS":"Pass Credentials","IGNORE_MISSING_VALUE_FILES":"Ignore Missing Value Files","SKIP_CRDS":"Skip Crds","RELEASE_NAME":"Release Name","VALUE_FILES":"Value Files","FORCE_STRING":"Force String","FILE_PARAMETERS":"File Parameters","NAME_PREFIX":"Name Prefix","NAME_SUFFIX":"Name Suffix","IMAGES":"Images","COMMON_LABELS":"Common Labels","COMMON_ANNOTATIONS":"Common Annotations","DEVOPS_PROJECT_SETTINGS":"DevOps Project Settings","DEVOPS_DESCRIPTION":"A DevOps project is a separate namespace where a set of pipelines is defined. Users can group their pipelines themselves (for example, project type and organization type).","DEVOPS_PROJECT_ROLE_SCAP":"DevOps project role","DEVOPS_PROJECT_SCAP":"DevOps project","DEVOPS_PROJECT_MEMBER_SCAP":"DevOps project member","DEVOPS_PROJECT_MEMBER_PL_SCAP":"DevOps project members","DEVOPS_PROJECT_ROLE_PL_SCAP":"DevOps project roles","CD_ALLOWLIST":"Continuous Deployment Allowlist","CD_ALLOWLIST_SCAP":"Continuous deployment allowlist","DEPLOYMENT_LOCATION_PL":"Deployment Locations","ENABLE_ALLOWLIST":"Enable Allowlist","EDIT_ALLOWLIST":"Edit Allowlist","EMPTY_ALLOWLIST_TITLE":"Continuous Deployment Allowlist Disabled","ALLOWLIST_EMPTY_DESC":"Enable the allowlist so that only specific code repositories and deployment locations can be used for continuous deployment.","MULTI_CLUSTER_PROJECT_NOT_FOR_CD":"Multi-cluster projects cannot be used for continuous deployment.","CODE_REPOSITORY_EXIST_DESC":"The code repository already exists. Please select another code repository.","DEPLOYMENT_LOCATION_EXIST_DESC":"The deployment location already exists. Please set another deployment location.","CODE_REPOSITORY_NOT_SELECTED":"No code repositories are selected.","RESOURCE_DEPLOYMENT_LOCATION_NOT_SELECTED":"No resource deployment locations are selected.","ALL_CODE_REPOSITORIES":"All code repositories","ALL_RESOURCE_DEPLOYMENT_LOCATIONS":"All resource deployment locations","CREDENTIAL_LOW":"credential","DETAILS":"Details","TYPE_VALUE":"Type: {value}","RECORD":"Record","CREDENTIAL_PL":"Credentials","DEVOPS_CREDENTIALS_DESC":"Credentials are objects that contain some sensitive data, such as username and password, SSH key and Token. They are used to provide authentication for pulling code, pushing/pulling images, executing SSH scripts, etc. when a pipeline is running.","CREDENTIAL_EMPTY_DESC":"Please create a credential.","CREATE_CREDENTIAL":"Create Credential","CREDENTIAL_NAME_EXIST_DESC":"The credential name already exists. Please enter another name.","CREDENTIAL_TYPE_USERNAME_PASSWORD":"Username and password","CREDENTIAL_TYPE_SSH":"SSH key","PRIVATE_KEY":"Private Key","PASSPHRASE":"Passphrase","CREDENTIAL_TYPE_SECRET_TEXT":"Access token","CREDENTIAL_TYPE_KUBECONFIG":"kubeconfig","PASSWORD_TOKEN":"Password/Token","KUBECONFIG_CONTENT_DESC":"The default content is the kubeconfig settings of the current user.","CONTENT":"Content","DEVOPS_PROJECT_MEMBER":"DevOps Project Member","DEVOPS_PROJECT_MEMBER_PL":"DevOps Project Members","DEVOPS_PROJECT_MEM_DESC":"Manage and assign roles to project members.","DEVOPS_PROJECT_MEMBER_EMPTY_DESC":"Please invite a member of the current workspace to the DevOps project.","INVITE_MEMBER_DESC_DEVOPS":"Invite members of the current workspace to the DevOps project.","HOW_TO_INVITE_MEMBER_Q":"How do I invite members to the project?","HOW_TO_INVITE_MEMBER_A":"The project administrator or users who have permission to invite project members can invite workspace members to the project.","NO_PERMISSION":"No Permission Found","DEVOPS_PROJECT_ROLE_PL":"DevOps Project Roles","DEVOPS_PROJECT_ROLES_DESC":"The project roles define the permissions that users have under the current DevOps project.","DEVOPS_PROJECT_ROLE_EMPTY_DESC":"Please create a DevOps project role.","ROLE_DEVOPS_VIEWER":"View all resources in the DevOps project.","ROLE_DEVOPS_OPERATOR":"Create credentials in the DevOps project.","ROLE_DEVOPS_ADMIN":"Manage all resources in the DevOps project.","EDIT_PERMISSIONS":"Edit Permissions","CREATE_ROLE":"Create Role","CATEGORIES":"Categories","DEPENDS_ON":"Depends on: ","PERMIGROUP_PIPELINES_MANAGEMENT":"Pipelines","PERMISSION_PIPELINES_VIEW":"Pipeline Viewing","PERMISSION_PIPELINES_VIEW_DESC":"View DevOps project pipelines and download artifacts.","PERMISSION_PIPELINES_MANAGEMENT":"Pipeline Management","PERMISSION_PIPELINES_MANAGEMENT_DESC":"Create, edit, and delete DevOps project pipelines.","PERMISSION_PIPELINERUNS_VIEW":"Pipeline Run Record Viewing","PERMISSION_PIPELINERUNS_VIEW_DESC":"View pipeline run records in the DevOps project.","PERMISSION_PIPELINERUNS_MANAGEMENT":"Pipeline Run Record Management","PERMISSION_PIPELINERUNS_MANAGEMENT_DESC":"View, edit, and delete pipeline run records in the DevOps project.","PERMIGROUP_CREDENTIALS_MANAGEMENT":"Credentials","PERMISSION_CREDENTIALS_VIEW":"Credential Viewing","PERMISSION_CREDENTIALS_VIEW_DESC":"View and use DevOps credentials.","PERMISSION_CREDENTIALS_MANAGEMENT":"Credential Management","PERMISSION_CREDENTIALS_MANAGEMENT_DESC":"Create, edit, and delete DevOps credentials.","PERMIGROUP_DEVOPS_SETTINGS":"Project Settings","PERMISSION_DEVOPS_SETTINGS":"Project Settings Management","PERMISSION_DEVOPS_SETTINGS_DESC":"Manage DevOps project settings.","PERMIGROUP_CONTINUOUS_DEPLOYMENTS_MANAGEMENT":"Continuous Deployments","PERMISSION_CONTINUOUS_DEPLOYMENTS_VIEW":"Continuous Deployment Viewing","PERMISSION_CONTINUOUS_DEPLOYMENTS_VIEW_DESC":"View continuous deployments in the DevOps project.","PERMISSION_CONTINUOUS_DEPLOYMENTS_MANAGEMENT":"Continuous Deployment Management","PERMISSION_CONTINUOUS_DEPLOYMENTS_MANAGEMENT_DESC":"Manage continuous deployments in the DevOps project.","PERMIGROUP_CODE_REPOSITORIES_MANAGEMENT":"Code Repositories","PERMISSION_CODE_REPOSITORIES_VIEW":"Code Repository Viewing","PERMISSION_CODE_REPOSITORIES_VIEW_DESC":"View code repositories in the DevOps project.","PERMISSION_CODE_REPOSITORIES_MANAGEMENT":"Code Repository Management","PERMISSION_CODE_REPOSITORIES_MANAGEMENT_DESC":"Manage code repositories in the DevOps project.","CODE_REPOSITORY":"Code Repository","TASK_STATUS":"Task Status","NOT_RUNNING":"Not running","QUEUED":"Queued","ABORTED":"Aborted","UNSTABLE":"Unstable","SKIPPED":"Skipped","NOT_BUILT":"Not built","SYNC_STATUS":"Sync Status","DEVOPS_PROJECT":"DevOps Project","SCAN_REPO_SUCCESSFUL":"Repository scan was triggered successfully.","VIEW_SCAN_LOGS":"View Scan Logs","STARTED_BY_NAME":"Started By: {name}","REPOSITORY_SCAN_LOGS":"Repository Scan Logs","RESCAN":"Rescan","LOGS_OBTAINED_SUCCESSFULLY":"The logs were obtained successfully.","HEALTH_STATUS_SCAP":"Health status","PIPELINE_QUEUED_TITLE":"About to Complete Initialization","INITIALIZING_PIPELINE":"Pipeline Initializing","PIPELINE_PREPARE_DESC":"Preparing the environment...","INITIALIZING_PIPELINE_DESC":"Please wait until the pipeline initialization is complete.","TASK_FAILED_NOT_OPERATIONAL":"The stage has failed and is not operational.","NO_PIPELINE_CONFIG_FILE_TIP":"No pipeline configuration file is found.","EDIT_PIPELINE":"Edit Pipeline","JENKINS_UNAVAILABLE":"Jenkins is unready.","AGENT_TYPE_DESC":"The agent section specifies\n where the entire Pipeline or a particular stage will be executed in the Jenkins environment,\n depending on where the Agent part is placed.\n This part must be defined at the top level within the pipeline block,\n but the stage level usage is optional. ","NOT_VALID_REPO":"Code repo is not valid and cannot be created","CREATE_PIPELINE_DESC":"Build, test and deploy with Pipelines","CI":"Continuous Integration (CI)","CI_DESC":"Continuous integration (CI) is the process of automatically detecting, pulling, building, and (in most cases) unit testing after source code changes.","CICD":"Continuous Integration & Delivery (CI/CD)","CICD_DESC":"Continuous deployment (CD) refers to the idea of automatically providing the release version in the continuous delivery pipeline to end users. According to the user's installation method, automatic deployment in the cloud environment, app upgrades (such as apps on mobile phones), website updates, or only the list of available versions.","CUSTOM_PIPELIEN":"Custom Pipeline","CUSTOM_PIPELIEN_DESC":"You can select the tasks you need to customize the contents of the pipeline.","CC":"CC","CREDENTIAL_NAME":"Credential Name","REMOTE_REPOSITORY_URL":"Remote Repository URL","SCM":"SCM","INPUT_MESSAGE_DESC":"This message will be displayed in the pipeline running state.","KUBERNETES_DEPLOY_DESC":"Deploy resources on a Kubernetes cluster.\n In a continuous integration or continuous deployment environment,\n only those resources that need to be updated regularly should be placed in the deployment step.\n Therefore, this step is mostly used to process the deployment of such resources.","KUBERNETES_DEPLOY_DESC_MORE":"
    \n \n
  • Distribution without kubectl
  • \n
  • Variable substitution in Jenkinsfile, Dynamic deployment is possible.
  • \n
  • Support for pulling docker images from private image repositories
  • \n \n
    \n
  • Configuration
  • \n
  • Key
  • \n
  • Deploy
  • \n
  • Dave Process Set
  • \n
  • App Routing
  • \n
  • Namespace
  • \n
  • Task
  • \n
  • Service
  • \n
  • Replica Set
  • \n
  • \n Replication\n Controller (rolling updates are not supported, and use deployment if you want to use rolling updates)\n
  • ","STAGE":"Stage","KUBERNETES_DEPLOY_DEPRECATED_TIP":"This step will be deprecated in subsequent versions, and it is recommended that you consider other alternatives.","ORIGINAL_IMAGE_ADDRESS":"Original Image Address","NEW_IMAGE_ADDRESS":"New Image Address","NEW_IMAGE_TAG":"New Image Tag","CD_STEP_DESC":"Update image information using continuous deployment.","UPDATE_CD_TITLE":"Continuous Deployment of Updates","EDIT_JENKINSFILE":"Edit Jenkinsfile","CLOSE_JENKINSFILE_EDITOR_TIP":"Are you sure to close the Jenkinsfile editor?","PIPELINE_RUN_LOGS":"Pipeline Run Logs","VIEW_LOGS":"View Logs","DURATION_VALUE":"Duration: {value}","DOWNLOAD_LOGS":"Download Logs","START_REAL_TIME_LOG":"Enable real-time logs","STOP_REAL_TIME_LOG":"Disable real-time logs","RUN_RECORDS":"Run Records","RUN":"Run","ACTIVITY_EMPTY_TIP":"The pipeline has not been run.","COMMIT":"Commit","LAST_MESSAGE":"Last Message","RUN_ID":"Run ID","STOP_PIPELINE_SUCCESSFUL":"The pipeline was stopped successfully.","INVALID_JENKINSFILE_TIP":"The current Jenkinsfile is not a standard declarative Jenkinsfile and graphical display is unavailable.","PAUSED":"Paused","SET_PARAMETERS":"Set Parameters","PARAMS_DESC":"The following parameters are generated based on the pipeline settings or\n the parameters section of the Jenkinsfile, which are entered according to operational requirements.","PIPELINE_RUN_START_SI":"Starts to run the pipeline...","PIPELINE_RUN_START_PL":"Starts to run the pipelines...","BREAK":"Break","PROCEED":"Proceed","WAITING_FOR_INPUT":"Waiting for input...","CANCELLED_IN_REVIEW":"Cancelled in review","STEPS_COMPLETE_TOTAL":"Steps: {complete}/{total}","COMMIT_PL":"Commits","AUTHOR":"Author","NO_COMMIT_FOUND":"No Commit Found.","ARTIFACT_PL":"Artifacts","NO_ARTIFACT_FOUND_TIP":"No artifact is found.","SIZE":"Size","BRANCH_SI":"Branch","BRANCH_PL":"Branches","SCAN_REPOSITORY":"Scan Repository","PIPELINE":"Pipeline","NO_BRANCHES_FOUND":"No Branches Found","CODE_CHECK":"Code Check","BUG_PL":"Bugs","VULNERABILITY_PL":"Vulnerabilities","CODE_SMELL_PL":"Code Smells","CODE_LINE_COUNT":"Code Lines","COVERAGE":"Coverage","TEST_RESULTS":"Results","ISSUE_PL":"Issues","CRITICAL":"Critical","MAJOR":"Major","MINOR":"Minor","DISPLAY_ALL":"Display All","DISPLAY_ONLY_LAST_TEN":"Only the last 10 issues are displayed.","LINE_VALUE":"Line: {value}","PASSED":"Passed","PULL_REQUEST_PL":"Pull Requests","FAILED_CHECK_SCRIPT_COMPILE":"Failed to check script compiling. If you want to skip the step, click Continue.","IMPORT_FROM_CODE_REPO":"Import From Code Repository","General":"General","Container":"Container","Review":"Review","URL":"URL","Credential Name":"Credential Name","Branch":"Branch","SVN URL":"SVN URL","The message to print":"Message to Print","Shell command line":"Shell command line","Body":"Body","Variable":"Variable","KeyFile Variable":"KeyFile Variable","Passphrase Variable":"Passphrase Variable","Artifacts Location":"Artifacts Location","Time":"Time","Unit":"Unit","Groovy script":"Groovy script","Target Pipeline Name":"Target Pipeline Name","Quiet Period":"Quiet Period","Wait For Completion":"Wait for completion","Propagate Errors":"Propagate errors","Error Message":"Error Message","Test Results Location":"Location of Test Results","Allow Empty Results":"Allow empty results","Keep Long Output":"Retain long output","Skip Publishing Checks":"Skip publishing checks","Retry Count":"Retry Times","Message":"Message","Submitter":"Submitter","Config Name":"Configuration Item","AbortPipeline if quality gate status is not green":"Abort the pipeline if quality gate status is not green","Container Name":"Container Name","Continuous Deployments":"Continuous Deployment","Original Image Address":"Original Image Address","New Image Address":"New Image Address","New Image Tag":"New Image Tag","Credential":"Credential","PIPELINE_CONFIGURATION":"Pipeline Configurations","Replay":"Replay","BRANCH_DISABLED_NOT_REPLAY":"The branch has been disabled and cannot be replayed.","RUN_LOGS":"Run Logs","VIEW_FULL_LOG":"View Full Logs","VIEW_REAL_TIME_LOG":"View Real-time Logs","PIPELINE_LOG":"Pipeline Logs","NO_BUILD_PARAMETERS":"Not found build parameters.","PIPELINE_PL":"Pipelines","HEALTH":"Health","PULL_REQUEST_COUNT":"Pull Requests","MULTI_BRANCH_PIPELINE":"Multi-branch Pipeline","HEALTHY":"Healthy","SUB_HEALTHY":"Sub-healthy","NO_STATUS":"No status","BRANCH_COUNT":"Branches","PIPELINE_EMPTY_DESC":"Please create a pipeline.","BATCH_RUN_SUCCESS_SI":"The pipeline was run successfully.","BATCH_RUN_SUCCESS_PL":"The pipelines were run successfully.","BATCH_RUN_UNSUPPORTED_DESC":"Multi-branch pipelines cannot run in a batch.","COPY":"Copy","COPY_PIPELINE":"Copy Pipeline","PIPELINE_NAME_DESC":"The name of the pipeline. Pipelines in the same project must have different names.","PIPELINE_NAME_TIP":"Please enter a pipeline name.","CREATE_PIPELINE":"Create Pipeline","GO_CREATE_REPO_ACTION":"No code repository is available. Please create a code repository.","PIPELINE_TYPE":"Pipeline Type","SELECT_CODE_REPOSITORY":"Select Code Repository","BRANCH_PIPELINE_DESC":"Describe the software build process with visual orchestration or Jenkinsfile.","MULTI_BRANCH_PIPELINE_DESC":"Create a series of pipelines for each branch detected in the source code management (SCM) repository.","PIPELINE_CREATE_DEVOPS_PROJECT_DESC":"Select the DevOps project to which the pipeline belongs.","CODE_REPOSITORY_OPTIONAL":"Code Repository (optional)","CODE_REPOSITORY_REQUIRED":"Code Repository","CODE_REPOSITORY_REQUIRED_DESC":"Please select a code repository.","GO_CREATE_REPO":"No code repository is available. Please create a code repository.","CODE_REPO_EXISTS":"code repository already exists","SELECT_CODE_REPO_DESC":"Select a code repository to be used by the pipeline.","RESELECT":"Reselect","CREDENTIAL_SI":"Credential","CREDENTIAL":"Credential","PIPELINE_CREDENTIAL_EMPTY_TIP":"Please select a credential.","SELECT_CREDENTIAL_DESC":"Select a credential used to access a code repository.","GITHUB_CREDENTIAL_EMPTY":"Please set a GitHub credential.","INCORRECT_GITHUB_TOKEN_DESC":"Incorrect GitHub token.\n \n Obtain GitHub Token\n ","LOAD_MORE":"Load More","NO_REPO_FOUND_DESC":"No code repository is found.","GITLAB_SERVER_ADDRESS":"GitLab Server Address","GITLAB_SERVER_EMPTY_TIP":"Please enter the address of a GitLab server.","PROJECT_GROUP_OWNER":"Project Group/Owner","PROJECT_GROUP_OWNER_EMPTY_TIP":"Please enter the name of a GitLab project group or project owner.","REPOSITORY_NAME":"Code Repository","REPOSITORY_NAME_EMPTY_TIP":"Please enter the name of a code repository.","BITBUCKET_SERVER_ADDRESS":"Bitbucket Server Address","BITBUCKET_SERVER_EMPTY_TIP":"Please enter the address of a Bitbucket server.","INCORRECT_USERNAME_OR_PASSWORD":"Incorrect username or password.","BITBUCKET_SERVER_CREDENTIAL_EMPTY":"Please set a Bitbucket server and credential.","BITBUCKET_ADDRESS_EMPTY_TIP":"Please enter the address of a Bitbucket server.","BITBUCKET_ADDRESS_INVALID_TIP":"Invalid Bitbucket server address.","CODE_REPOSITORY_ADDRESS_DESC":"Use a repository that contains a Jenkinsfile.","CODE_REPOSITORY_ADDRESS_EMPTY_TIP":"Please enter the address of a code repository.","CODE_REPOSITORY_ADDRESS":"Code Repository URL","SINGLE_SVN":"Single-branch SVN","SVN":"SVN","BRANCH_EXCLUDED":"Excluded Branches","BRANCH_INCLUDED":"Included Branches","DELETE_OUTDATED_BRANCHES":"Delete outdated branches (true, false)","DELETE_OUTDATED_BRANCHES_TIP":"Set the system to automatically delete outdated branches to save disk space.","BRANCH_SETTINGS":"Branch Settings","BRANCH_RETENTION_PERIOD_DAYS":"Deleted Branch Retention Period (days)","MAXIMUM_BRANCHES":"Maximum Deleted Branches","BRANCH_RETENTION_PERIOD_DAYS_DESC":"Branches that exceed the retention period are deleted. The default value is 7.","MAXIMUM_BRANCHES_DESC":"When the number of branches exceeds the maximum number allowed, the earliest branch is deleted. The default value is 5.","ADD_STRATEGY":"Add Strategy","DISCOVER_TAG_BRANCHES":"Discover Tags","DISCOVER_BRANCHES":"Discover Branches","ALL_BRANCHES":"Include all branches","ONLY_PR_BRANCHES":"Include only branches filed as PRs","EXCLUDE_PR_BRANCHES":"Exclude branches filed as PRs","ENABLE_TAG_BRANCH_DISCOVERY":"Enable tag discovery","DISABLE_TAG_BRANCH_DISCOVERY":"Disable tag discovery","PULL_STRATEGY":"Pull Strategy","OPTIONS_PR_PARAMS_1":"Pull the code with the PR merged","OPTIONS_PR_PARAMS_2":"Pull the code at the point of the PR","OPTIONS_PR_PARAMS_3":"Create two pipelines respectively","REGEX":"Regular Expression","FILTER_BY_REGEX":"Filter by Regex","FILTER_BY_REGEX_DESC":"Use a regular expression to filter branches, PRs, and tags","SCRIPT_PATH":"Script Path","SCRIPT_PATH_DESC":"Set the path of the Jenkinsfile in the code repository.","SCAN_TRIGGER":"Scan Trigger","SCAN_PERIODICALLY":"Scan periodically","TIME_TRIGGER_DESC":"Scan the code repository periodically.","SCAN_INTERVAL":"Scan Interval","SELECT_PIPELINE_SCAP":"Select pipeline","WHEN_DELETE_PIPELINE_DESC":"When a pipeline is deleted, the tasks in the specified pipeline are automatically triggered.","WHEN_CREATE_PIPELINE_DESC":"When a new pipeline is created, the tasks in the specified pipeline are automatically triggered.","PIPELINE_EVENT_TRIGGER":"Trigger through pipeline events","WHEN_CREATE_PIPELINE":"Trigger on Pipeline Creation","WHEN_DELETE_PIPELINE":"Trigger on Pipeline Deletion","CLONE_SETTINGS":"Clone Settings","CLONE_TIMEOUT_PERIOD":"Clone Timeout Period (min)","CLONE_DEPTH":"Clone Depth","ENABLE_SHALLOW_CLONE":"Enable shallow clone","WEBHOOK_PUSH_URL":"Webhook Push URL","WEBHOOK_PUSH_DESC":"Push a message to this URL to trigger a scan of the repository. ","TRUSTED_USERS":"Trusted User","CONTRIBUTORS":"Contributors","EVERYONE":"Everyone","NOBODY":"None","USERS_WITH_PERMISSION":"Users with the admin or write permission","OPTIONS":"Options","BUILD_SETTINGS":"Build Settings","DELETE_OUTDATED_BUILD_RECORDS":"Delete outdated build records","DELETE_OUTDATED_BUILD_RECORDS_TIP":"Set the system to automatically delete outdated build records including console output, archived artifacts, and metadata to save disk space.","BUILD_RECORD_RETENTION_PERIOD_DAYS":"Build Record Retention Period (days)","BUILD_RECORD_RETENTION_PERIOD_DAYS_DESC":"Build records that exceed the retention period are deleted. The default value is 7.","BUILD_RECORD_RETENTION_PERIOD_DAYS_INVALID_TIP":"The retention period must be a positive integer.","MAXIMUM_BUILD_RECORDS":"Maximum Build Records","MAXIMUM_BUILD_RECORDS_DESC":"When the number of build records exceeds the maximum number allowed, the earliest build record is deleted. The default value is 10.","MAXIMUM_BUILD_RECORDS_INVALID_TIP":"The maximum number of build records must be a positive integer.","NO_CONCURRENT_BUILDS":"No concurrent builds","NO_CONCURRENT_BUILD_DESC":"Set the the pipeline to run only one build task at a time.","BUILD_PARAMETERS":"Build Parameters","BUILD_PARAMETERS_TIP":"Pass build parameters to the pipeline.","PARAMS_STRING":"String","PIPELINE_PARAM_DEFAULT_DESC":"Set the default value of the parameter. You can change the value before manually running the pipeline.","PARAMS_TEXT":"Multi-line string","PARAMS_TEXT_TCAP":"Multi-line String","PARAMETER_DESCRIPTION_DESC":"Set the parameter description.","PARAMS_BOOLEAN":"Boolean","PARAMS_CHOICE":"Options","CHOICE_PARAM_OPTION_DESC":"Enter an option in each line. The first line is used as the default option.","PARAMS_PASSWORD":"Password","BUILD_TRIGGER":"Build Trigger","BUILD_PERIODICALLY":"Build periodically","BUILD_PERIODICALLY_TIP":"Set the pipeline to periodically run build tasks.","PIPELINE_CRON_DESC":"The pipeline will be run at {nextTime} next time.","PIPELINE_SCHEDULE_DESC":"Enter a CRON expression to set a schedule.","DEFAULT_VALUE":"Default Value","PARAMETER_NAME_EMPTY_DESC":"Please set the parameter name.","SELECT_TEMPLATE":"Select template","PARAMETER_CONFIG":"Parameter configuration","PREVIEW":"Preview","EMPTY_PARAMS_CONFIG":"This operation does not require parameter configuration.","PIPELINE_VALIDATOR_DESC":"Please select a pipeline template.","USER_GUIDE":"User Guide","API_DOCUMENT":"API Docuement","INPUT_USERNAME_OR_EMAIL_TIP":"Please enter your username or email.","LOG_IN":"Log In","LOG_IN_WITH_TITLE":"Log in with {title}","LOG_OUT":"Log Out","ABOUT":"About","USERNAME_OR_EMAIL":"Username or Email","WELCOME":"Welcome","INTERNAL_SERVER_ERROR_TIP":"An unepected error occurred. Please refresh your page.","TOO_MANY_FAILURES":"The number of consecutive login failures has exceeded the limit. Please try again later.","FAILED_TO_ACCESS_BACKEND":"Failed to access the backend services.","FAILED_TO_ACCESS_API_SERVER":"Failed to access the API server.","LOGIN_AGAIN_DESC":"The session has timed out or the user has logged in elsewhere. Please log in again.","CHANGE_PASSWORD_TIP":"You are logging in for the first time. Please change your password.","SUBMIT":"Submit","CHANGE_PASSWORD_LATER":"Change Password Later","PASSWORD_MUST":"Your password must:","PASSWORD_LETTER":"Contain at least 1 uppercase letter and 1 lowercase letter.","PASSWORD_NUMBER":"Contain at least 1 number.","PASSWORD_LENGTH":"Contain at least 8 characters.","SET_EMAIL_AND_USERNAME":"Set Email and Username","APPLICATION_GOVERNANCE_SCAP":"Application governance","NO_SERVICE_FOUND":"No Service Found","GATEWAY_IP_ADDRESS":"Gateway IP address","GATEWAY_ACCESS_MODE":"Gateway access mode","NODE_PORTS_SCAP":"Node ports","LOAD_BALANCER_SCAP":"Load balancer","LOAD_BALANCERS_SCAP":"Load balancers","TRAFFIC_MANAGEMENT":"Traffic Management","APPLICATION_GOVERNANCE_ENABLED":"Application governance enabled","APPLICATION_GOVERNANCE_DISABLED":"Application governance disabled","NAME_VALUE":"Name: {value}","CONTAINER_PORT_VALUE":"Container Port: {value}","PLEASE_USE_RELATIVE_PATH":"Please use a relative path.","RELATIVE_PATH_NOT_SUPPORT":"Unsupported relative path format.","MOUNT_PATH_INCORRECT":"Incorrect mount path.","REASON":"Reason","WORKLOAD_DESC":"Workloads are used to handle service requests and can contain one or more pods. System functions such as logging and monitoring are also implemented by workloads.","DEPLOYMENT_EMPTY_DESC":"Please create a deployment.","UPDATING":"Updating","NEXT":"Next","INVALID_PROJECT":"Invalid project.","REPLICA_SCHEDULING_MODE":"Replica Scheduling Mode","SPECIFY_REPLICAS":"Specify Replicas","WEIGHTS":"Weights","SPECIFY_WEIGHTS":"Specify Weights","SPECIFY_WEIGHTS_DESC":"Set the total number of pod replicas and a weight for each cluster. The pod replicas will be scheduled to the clusters according to the weights.","SPECIFY_REPLICAS_DESC":"Manually set the number of pod replicas in each cluster.","REPLICA_LOW_SI":"replica","REPLICA_LOW_PL":"replicas","WEIGHT":"Weight","TOTAL_REPLICAS":"Total Replicas","COST":"Cost","ADD_CONTAINER":"Add Container","ADD_CONTAINER_DESC":"Customize container settings to create a container.","CONTAINERS":"Containers","IMAGE_TIME_SIZE_LAYER":"Updated {time}","IMAGE_DESC":"To use a private image registry, you need to first create an image registry secret.","IMAGE_PLACEHOLDER":"Image name or path such as nginx:latest","IMAGE_EMPTY":"Please set an image.","ENTER_POSITIVE_INTEGER_DESC":"Please enter a positive integer.","TOTAL_REPLICAS_EMPTY_DESC":"Please enter the total number of pod replicas in all clusters.","CONTAINER_NAME":"Container Name","CONTAINER_TYPE":"Container Type","USE_DEFAULT_PORTS":"Use Default Ports","USE_IMAGE_DEFAULT_PORTS":"Use Default Port of Images","NO_DEFAULT_PORT":"No default ports config","REGISTRY":"Registry","SET_IMAGE_DESC":"Set an image for the container.","WORKER_CONTAINER":"Worker container","CONTAINER_RESOURCE_LIMIT_TIP":"Set the resource limits and requests of the container so that the container is scheduled to appropriate nodes.","GPU_TYPE":"GPU Type","GPU_LIMIT":"GPU Limit","NVIDIA_COM_GPU":"NVIDIA GPU","NO_LIMIT":"No limit","NO_REQUEST":"No request","NO_RESOURCE_LIMIT":"No resource limit","IGNORE_AND_RETRY":"Ignore and Try Again","AVAILABLE_QUOTAS":"Available Quotas","PORT_SETTINGS":"Port Settings","ISTIO_PROTOCOL_TIP":"Select the protocol used by the service to fully utilize the Application Governance function. For example, select HTTP for an HTTP service.","REQUIRED":"Required","IMAGE_PULL_POLICY_ALWAYS":"Pull Image Always","IMAGE_PULL_POLICY_NEVER":"Use Local Image Only","IMAGE_PULL_POLICY_ALWAYS_DESC":"Pulls an image always when the pod is created or updated.","IMAGE_PULL_POLICY_IFNOTPRESENT_DESC":"Pulls an image only when the required image does not exist locally.","IMAGE_PULL_POLICY_NEVER_DESC":"Uses a local image only. The container will become abnormal if the required image does not exist locally.","IMAGE_PULL_POLICY_IFNOTPRESENT":"Use Local Image First","LIVENESS_CHECK":"Liveness Check","READINESS_CHECK":"Readiness Check","STARTUP_CHECK":"Startup Check","LIVENESS_CHECK_DESC":"Checks whether the container is alive.","READINESS_CHECK_DESC":"Checks whether the container is ready to process requests.","STARTUP_CHECK_DESC":"Checks whether the container is started successfully.","ADD_PROBE":"Add Probe","COMMANDS":"Commands","HEALTH_CHECK":"Health Check","STARTUP_CHECK_TIP":"Kubernetes v1.18 or later is required.","HTTP_PATH_EMPTY":"Please set a path for the HTTP check.","LIFECYCLE_MANAGEMENT":"Lifecycle Management","LIFECYCLE_MANAGEMENT_DESC":"Add actions to be performed after the container is started or before it is stopped for environment preparation or graceful shutdown.","POSTSTART_ACTION":"Post-start Action","PRESTOP_ACTION":"Pre-stop Action","POSTSTART_ACTION_DESC":"Add an action to be performed after the container is started.","PRESTOP_ACTION_DESC":"Add an action to be performed before the container is stopped.","ADD_ACTION":"Add Action","ADD_ENVIRONMENT_VARIABLE":"Add Environment Variable","KEY_IN_RESOURCE":"Key in resource","LABEL_TYPE":"{label} ({type})","RESOURCE":"Resource","CREATE_CONFIGMAP_SECRET_DESC":"If no configmap or secret meets the requirements, you can","CREATE_CONFIG":"create a configmap","OR":"or","CREATE_SECRET":"create a secret.","DEFAULT_REPOSITORY":"Default Registry","SET_DEFAULT_REPOSITORY":"Set Default Registry","SET_AS_DEFAULT_REPOSITORY_DESC":"Set the image registry as the default image registry. Unless otherwise specified, the system uses images from the default image registry to create application workloads. Only one default image registry is allowed in each project.","SET_AS_DEFAULT_REPOSITORY":"Set as Default","SET_DEFAULT_REPO_SUCCESSFUL":"Default repository set successfully","CONTAINER_SECURITY_CONTEXT":"Container Security Context","CONTAINER_SECURITY_CONTEXT_DESC":"Customize the privilege settings of the container.","PRIVILEGED_MODE":"Privileged Mode","PRIVILEGED_MODE_DESC":"Runs container processes as the root user of the host.","ALLOW_PRIVILEGE_ESCALATION":"Allow Privilege Escalation","ALLOW_PRIVILEGE_ESCALATION_DESC":"Allows container processes to acquire more privileges than the parent process. This option is enabled by default when the privileged mode is enabled.","ROOT_DIRECTORY_READONLY":"Root Directory Read-Only","ROOT_DIRECTORY_READONLY_DESC":"Sets the root directory of the container file system to read-only.","USER_AND_USER_GROUP":"User and User Group","USER_GROUP":"User Group","RUN_AS_NON_ROOT":"Run as Non-root","RUN_AS_NON_ROOT_DESC":"Checks whether the container is to be run by the root user before starting the container. If yes, the container will not be started.","RUN_AS_USER_DESC":"UID to run the entrypoint of the container process. The default value is the UID specified in the image metadata.","RUN_AS_USER_GROUP_DESC":"GID to run the entrypoint of the container process. The default value is the container runtime default GID.","SELINUX_CONTEXT":"SELinux Context","CAPABILITIES":"Capabilities","DROP":"Drop","ACCESS_CONTROL":"Access Control","LEVEL":"Level","SYNC_HOST_TIMEZONE_DESC":"Synchronize the time zone of the container with that of the host.","SYNC_HOST_TIMEZONE":"Synchronize Host Timezone","UPDATE_STRATEGY":"Update Strategy","ROLLING_UPDATE_RECOMMENDED":"Rolling Update (recommended)","SIMULTANEOUS_UPDATE":"Simultaneous Update","ROLLINGUPDATE_DESC":"Gradually replaces old pod replicas with new ones. The service is not interrupted during the update process.","SIMULTANEOUS_UPDATE_DESC":"Deletes all existing pod replicas before creating new ones. The service is interrupted during the update process.","ENTER_INTEGER_OR_PERCENTAGE":"Please enter an integer or percentage.","MAX_EXTRA_EMPTY":"Please set the maximum number or percentage of extra pod replicas allowed during the update process.","POD_SECURITY_CONTEXT":"Pod Security Context","POD_SECURITY_CONTEXT_DESC":"Customize the pod privilege settings.","POD_SECURITY_CONTEXT_TIP":"If User, User Group, and SELinux Context settings are defined in both pod Security Context and Container Security Context, the Container Security Context settings will override the Pod Security Context settings.","POD_SCHEDULING_RULES":"Pod Scheduling Rules","POD_SCHEDULING_RULES_DESC":"Specify the rules for scheduling the pod replicas to nodes.","DEFAULT_RULES":"Default Rules","DEFAULT_RULES_DESC":"Schedules the pod replicas to nodes according to default rules.","DECENTRALIZED_SCHEDULING":"Decentralized Scheduling","CUSTOM_RULES":"Custom Rules","CUSTOM_RULES_DESC":"Schedules the pod replicas to nodes according to custom rules.","DECENTRALIZED_SCHEDULING_DESC":"Schedules the pod replicas to different nodes if possible.","CENTRALIZED_SCHEDULING_DESC":"Schedules the pod replicas to the same node if possible.","CENTRALIZED_SCHEDULING":"Centralized Scheduling","SCHEDULE_WITH_TARGET":"Schedule with target","SCHEDULE_AWAY_FROM_TARGET":"Schedule away from target","MATCH_IF_POSSIBLE":"Match if possible","MUST_MATCH":"Must match","TARGET":"Target","STRATEGY":"Strategy","POD_GRACE_PERIOD":"Pod Grace Period","POD_GRACE_PERIOD_DESC":"Set the waiting time before Pod terminates, after which Pod will be forcibly terminated.","TERMINATION_GRACEPERIOD_SECONDS":"Termination GracePeriod Seconds (s)","ADD_METADATA":"Add Metadata","POD_ADD_METADATA_DESC":"Add metadata to the pod replicas.","STORAGE_SETTINGS":"Storage Settings","READ_ONLY_LOW":"read-only","READ_AND_WRITE_LOW":"read and write","MOUNT_VOLUME":"Mount Volume","WORKLOAD_MOUNT_VOLUME_DESC":"Mount an persistent volume, temporary volume, or HostPath volume to the containers.","SELECT_PERSISITENT_VOLUME_CLAIM":"Select Persistent Volume Claim","SELECT_PERSISITENT_VOLUME_CLAIM_DESC":"Mount a persistent volume created according to the persistent volume claim to the containers.","CAPACITY":"Capacity","PVC_NOT_SELECT":"Please select a persistent volume claim.","TEMPORARY_VOLUME":"Temporary Volume","VOLUME_NAME":"Volume Name","VOLUME_NAME_EMPTY":"Please set a name for the volume.","HOST_PATH_EMPTY":"Please set a host path for the volume.","CONTAINER_NOT_SELECTED":"Please mount the volume to at least one container.","NOT_MOUNT":"Not mounted","HOSTPATH_VOLUME":"HostPath Volume","HOSTPATH_TIP":"Use a HostPath volume to mount a file or directory in the host file system to the containers.","HOST_PATH":"Host Path","READ_AND_WRITE":"Read and write","READ_ONLY":"Read-only","MOUNT_CONFIGMAP_OR_SECRET":"Mount Configmap or Secret","MOUNT_CONFIGMAP_OR_SECRET_DESC":"Mount a configmap or secret to the containers.","CONFIGMAP":"Configmap","SELECT_CONFIGMAP_DESC":"Mount a configmap to the containers.","READ_WRITE_MOUNT_EMPTY":"Please specify the volume access mode and mount path.","SELECT_SPECIFIC_KEYS":"Select Specific Keys","SELECT_SPECIFIC_KEYS_DESC":"Select specific keys to be mounted to the containers.","SELECT_SECRET_DESC":"Mount a secret to the containers.","CONFIGMAP_NOT_SELECT":"Please select a configmap.","SECRET_NOT_SELECT":"Please select a secret.","NO_AVAILABLE_RESOURCE":"No Available Resource","SELECT_NODES":"Select Nodes","SELECT_NODES_DESC":"Assign pod replicas to specific nodes. You can use labels to select nodes or manually specify a node.","ADD_NODE_SELECTOR":"Add Node Selector","ADD_METADATA_DESC":"Add metadata to the resource.","KEY":"Key","VALUE":"Value","ADVANCED_SETTINGS":"Advanced Settings","DUPLICATE_LABELS":"Duplicate labels cannot be added.","WORKLOAD_SPECIFY_NODE_DESC":"Assign pod replicas to a specific node.","CLUSTER_DIFF":"Cluster Differences","CLUSTER_DIFF_CONTAINER_SETTINGS_DESC":"Use different container settings in different clusters.","CLUSTER_DIFF_PORT_SETTINGS_DESC":"Set different ports for containers in different clusters.","CLUSTER_DIFF_ENVIRONMENT_VARIABLES_DESC":"Set different environment variables for containers in different clusters.","CONTAINER_IMAGE":"Container Image","ROUTE_ADD_METADATA_DESC":"Add metadata to the ingress.","SELECT_INGRESSCLASSNAME":"Select IngressClassName","ACCESS_INFORMATION":"Access Information","VIRTUAL_IP_ADDRESS":"Virtual IP address","INTERNAL_DOMAIN_NAME_SCAP":"Internal domain name","NODE_PORT_SCAP":"Node port","SERVICE_TYPE_TCAP":"Service Type","SELECT_SERVICE_TYPE":"Select Service Type","ADD_PORT":"Add Port","EMPTY_LABEL_DESC":"Please add a label.","SPECIFY_NODE":"Specify Node","SPECIFY_NODE_DESC":"Specify a node that needs to be associated with the service.","MAXIMUM_STICKINESS_DURATION_DESC":"Set a maximum stickiness duration. The value range is 0 to 86400 and the default value is 10800.","SERVICE_ADD_METADATA_DESC":"Add metadata to the service.","STATEFULSET_EMPTY_DESC":"Please create a statefulset.","POD_SETTINGS":"Pod Settings","POD_REPLICAS":"Pod Replicas","ONDELETE":"Update on Deletion","ONDELETE_DESC":"Updates pod replicas only when they are manually deleted.","PARTITION_ORDINAL":"Ordinal for Dividing Pod Replicas","PARTITION_ORDINAL_DESC":"Set an ordinal to divide the pod replicas into two groups. When the statefulset is updated, only pod replicas with an ordinal greater than or equal to the value of this parameter are updated.","PVC_NAME_PREFIX":"PVC Name Prefix","PVC_NAME_PREFIX_DESC":"Prefix of persistent volume claim names. The prefix can contain only lowercase letters, numbers, and hyphens (-), and must start and end with a lowercase letter or number. The maximum length is 253 characters.","PVC_NAME_PREFIX_EMPTY":"Please enter the prefix of persistent volume claim names.","INVALID_PVC_NAME_PREFIX":"Invalid prefix. The prefix can contain only lowercase letters, numbers, and hyphens (-), and must start and end with a lowercase letter or number. The maximum length is 253 characters.","PVC_NAME_PREFIX_EXISTS":"The prefix already exists. Please enter another prefix.","ADD_PERSISTENT_VOLUME_CLAIM_TEMPLATE":"Add Persistent Volume Claim Template","ADD_PERSISTENT_VOLUME_CLAIM_TEMPLATE_DESC":"Add a persistent volume claim template to mount a persistent volume to each pod of the statefulset.","VOLUME_CAPACITY_TCAP":"Volume Capacity","MOUNT_PATH_TCAP":"Mount Path","VOLUME_TEMPLATES":"Volume Templates","SERVICE_PORT":"Service Port","SERVICE_PORT_VALUE":"Service Port: {value}","VOLUME_TEMPLATE_SETTINGS":"Volume Template Settings","CLUSTER_VOLUME_DIFF_DESC":"Use different storage settings in different clusters.","CONFIGMAP_EMPTY_DESC":"Please create a configmap.","MULTI_CLUSTER_PROJECT_EMPTY_DESC":"Please create a multi-cluster project.","MULTI_CLUSTER_PROJECT_LOW":"multi-cluster project","MULTI_CLUSTER_PROJECT_SCAP":"Multi-cluster project","VOLUME_MONITORING_TIP":"The storage system needs to have real volume quota control capabilities to output real and accurate data. Storage systems built based on host path, local pv, and open source nfs server usually do not have this capability. Daha Fazla Bilgi Edinin","MOUNT_INFORMATION":"Mount Information","VOLUME_ADD_METADATA_DESC":"Add metadata to the volume.","PROJECT_NAME":"Project name","NO_REQUEST_TCAP":"No Request","NO_LIMIT_TCAP":"No Limit","CPU_REQUEST_LOW":"CPU request","CPU_LIMIT_LOW":"CPU limit","CPU_REQUEST_CORE":"{value} Core","CPU_LIMIT_CORE":"{value} Core","MEMORY_REQUEST_MIB":"{value} Mi","MEMORY_LIMIT_MIB":"{value} Mi","DELETE_PROJECT":"Delete Project","CREATION_TIME":"Creation time","FOLD":"Fold","UNFOLD":"Unfold","PLATFORM":"Platform","CLUSTER_MANAGEMENT":"Cluster Management","CLUSTER_DESC":"Unified management of multiple clusters and their basic resources, components, and application resources.","ACCESS_CONTROL_DESC":"Unified management of workspaces, users, and roles.","APP_STORE_MANAGEMENT_DESC":"Unified lifecycle management of cloud native applications including their release, activation, and suspension.","PLATFORM_SETTINGS_DESC":"Customized platform settings including basic information and notification configurations.","NOTIFICATION_MANAGEMENT":"Notification Management","NOTIFICATION_CHANNELS":"Notification Channels","NOTIFICATION_CHANNELS_DESC":"Notify users through multiple channels when resource metrics meet conditions configured in rule groups.","MAIL_TITLE":"Email","MAIL_DESC":"Send notifications to email addresses.","INVALID_PORT_DESC":"Please enter a valid port number.","ENTER_PORT_NUMBER":"Please enter a port number.","ALERTING_NAME":"Alert name","ALERTING_SEVERITY":"Alert severity","ADDRESS_EMPTY_DESC":"Please enter an address.","EMAIL_EMPTY_DESC":"Please enter an email address.","SERVER_SETTINGS":"Server Settings","RECIPIENT_SETTINGS":"Recipient Settings","FILTER_CONDITIONS":"Filter Conditions","CONTAINER":"Container","VALUES":"Values","CONDITION_OPERATOR":"Operator","NOTIFICATION_CONDITION_SETTING_TIP":"The Contain and Not contain operators require one or more values. You can press Enter to set multiple values.","NOTIFICATION_CONDITION_SETTINGS_DESC":"Set the system to send only alerts that meet the conditions.","CONTAIN":"Contain","NOT_CONTAIN":"Not contain","EXIST":"Exist","NOT_EXIST":"Not exist","PATTERN_TAG_INVALID_TIP":"Invalid label. The label can contain only uppercase and lowercase letters, numbers, hyphens (-), underscores (_), and dots (.), and must begin and end with an uppercase or lowercase letter or number.","PATTERN_TAG_VALUE_INVALID_TIP":"Invalid value. The value can only contain uppercase and lowercase letters, numbers, hyphens (-), underscores (_) and dots (.) and must begin and end with an uppercase or lowercase letter or number and be a maximum of 63 characters.","INVALID_NOTIFICATION_CONDITION":"Please enter a correct notification condition.","SEND_TEST_MESSAGE":"Send Test Message","SEND_TEST_MESSAGE_DESC":"Send a test message to verify that the notification channel is working properly.","SEND_TEST_MESSAGE_SUCCESS_DESC":"Verified successfully. A test message has been sent.","SMTP_SERVER_ADDRESS":"SMTP Server Address","USE_SSL_SECURE_CONNECTION":"Use SSL secure connection","SENDER_EMAIL":"Sender Email Address","INVALID_EMAIL":"Invalid email address format.","INVALID_ADDRESS_DESC":"Please enter a valid address.","MAX_EAMIL_COUNT":"You can add a maximum of {count} emails.","SMTP_USER":"SMTP Username","SMTP_PASSWORD":"SMTP Password","ENTER_PASSWORD_TIP":"Please enter a password.","ENTER_RECIPIENT_EMAIL_DESC":"Please add at lease one email address.","INVALID_EMAIL_ADDRESS_DESC":"Incorrect email format.","SMTP_USER_EMPTY_DESC":"Please enter an SMTP username.","ADDED_SUCCESS_DESC":"Added successfully.","POD":"Pod","UPDATE_SUCCESSFUL":"Updated successfully.","FEISHU":"Feishu","FEISHU_TITLE":"Feishu","FEISHU_DESC":"Send notifications to Feishu users.","PLEASE_ENTER_APP_ID":"Please enter an app ID.","USER_ID":"User ID","DEPARTMENT_ID":"Department ID","FEISHU_RECEIPIENT_SETTINGS_DESC":"To receive notifications, please set at least one user ID or department ID.","FEISHU_SECRET":"Secret","DINGTALK_TITLE":"DingTalk","DINGTALK":"DingTalk","DINGTALK_DESC":"Send notifications to DingTalk users.","PLEASE_ENTER_APP_KEY":"Please enter an app key.","PLEASE_ENTER_APP_SECRET":"Please enter an app secret.","PLEASE_ENTER_CHAT_ID":"Please enter a chat ID.","PLEASE_ENTER_WEBHOOK_URL":"Please enter a webhook URL.","CHAT_SETTINGS":"Chat Settings","CHAT_ID_TIP":"Contact the DingTalk administrator to obtain the chat ID.","DINGTALK_SETTING_TIP":"Please set up a chat or group chatbot.","ENTER_CHAT_ID_DESC":"Please enter a chat ID.","MAX_CID_COUNT":"You can add a maximum of {count} chat IDs.","CHAT_ID_EXISTS":"The chat ID already exists. Please add another chat ID.","CHATBOT_SETTINGS":"Chatbot Settings","KEYWORDS_LIST":"Added Keywords","DINGTALK_CHATBOT_SECURITY_TIP":"Please enter a secret or keyword.","ENTER_KEYWORD_DESC":"Please enter a keyword.","MAX_KEYWORD_COUNT":"You can add a maximum of {count} keywords.","KEYWORD_EXISTS":"The keyword already exists. Please add another keyword.","EMPTY_KEYWORDS_DESC":"No keyword is added.","WECOM":"WeCom","WECOM_TITLE":"WeCom","WECOM_DESC":"Send notifications to WeCom users.","RECIPIENT_SETTINGS_TIP":"Enter at least one user ID, department ID, or tag ID.","ENTER_WECOM_CORP_ID_DESC":"Please enter a corp ID.","ENTER_WECOM_AGENT_ID_DESC":"Please enter an app agent ID.","ENTER_WECOM_SECRET_DESC":"Please enter an app secret.","TOUSER_LIST":"Added User IDs","EMPTY_TOUSER_DESC":"No user ID is added.","ENTER_TOUSER_TIP":"Please enter a user ID.","TOUSER_EXISTS":"The user ID already exists. Please enter another user ID.","MAX_TOUSER_COUNT":"You can add a maximum of {count} user IDs.","TOPARTY_LIST":"Added Department IDs","EMPTY_TOPARTY_DESC":"No department ID is added.","ENTER_TOPARTY_TIP":"Please enter a department ID.","TOPARTY_EXISTS":"The department ID already exists. Please enter another department ID.","MAX_TOPARTY_COUNT":"You can add a maximum of {count} department IDs.","TOTAG_LIST":"Added Tag IDs","EMPTY_TOTAG_DESC":"No tag ID is added.","ENTER_TOTAG_TIP":"Please enter a tag ID.","TOTAG_EXISTS":"The tag ID already exists. Please enter another tag ID.","MAX_TOTAG_COUNT":"You can add a maximum of {count} tag IDs.","ATUSERS_LIST":"Added User ID","EMPTY_ATUSERS_DESC":"No user ID is added.","WHIZARD_NOTIFICATION.PHONE_NUMBER":"手機號","ATMOBILES_LIST":"Mobiles","EMPTY_ATMOBILES_DESC":"No Mobile is added.","SLACK":"Slack","SLACK_TITLE":"Slack","SLACK_DESC":"Send notifications to Slack users.","SLACK_TOKEN":"Slack Token","SLACK_TOKEN_DESC":"Please enter a Slack token.","SLACK_CHANNEL":"Slack Channel","CHANNEL_SETTINGS":"Slack Channel Settings","ADDED_CHANNELS":"Added Slack Channels","EMPTY_CHANNEL_DESC":"No Slack channel is added.","ADD_CHANNEL_TIP":"Please add a Slack channel.","CHANNEL_EXISTS":"The Slack channel already exists. Please add another Slack channel.","MAX_CHANNEL_COUNT":"You can add a maximum of {count} Slack channels.","WEBHOOK":"Webhook","WEBHOOK_TITLE":"Webhook","WEBHOOK_DESC":"Send notifications to a webhook.","WEBHOOK_URL_DESC":"Please enter a webhook URL.","AUTHENTICATION_TYPE":"Authentication Type","AUTHENTICATION_TYPE_DESC":"Please select an authentication type.","SKIP_TLS_VERFICATION":"Skip TLS verification (insecure)","BASIC_AUTH":"Basic authentication","NO_AUTH":"No authentication","BEARER_TOKEN":"Bearer token","TOKEN":"Token","WEBHOOK_USERNAME_EMPTY_DESC":"Please enter a username.","WEBHOOK_PASSWORD_EMPTY_DESC":"Please enter a password.","WEBHOOK_TOKEN_EMPTY_DESC":"Please enter a token.","PLATFORM_INFO_DESC":"Overview of the platform information. You can view and customize the platform information.","HOW_TO_MODIFY_PLATFORM_INFO":"How do I customize platform information?","PLATFORM_INFORMATION":"Platform Information","PLATFORM_DESCRIPTION":"Platform description","PLATFORM_TITLE":"Platform title","PLATFORM_ADDRESS":"Platform address","PLATFORM_SETTINGS":"Platform Settings","ADD_SERVICE":"Add Service","ADD_ROUTE":"Add Ingress","SERVICE_ADDED_SUCCESSFULLY":"The service was added successfully.","WORKLOAD_TYPE_DEPLOYMENTS":"Deployment","WORKLOAD_TYPE_DAEMONSETS":"Daemonset","WORKLOAD_TYPE_STATEFULSETS":"Statefulset","TRAFFIC_MONITORING":"Traffic Monitoring","TRAFFIC_MONITORING_UNAVAILABLE_DESC":"The app has not received requests for a long time. Please try again later.","TRAFFIC_ENTRY":"Traffic Entry","NO_DATA":"No Data","REFRESH":"Refresh","SUCCESS_RATE":"Success rate","TRAFFIC_RPS":"Traffic (RPS)","BANDWIDTH":"Bandwidth","HTTP_INBOUND_TRAFFIC":"HTTP Inbound Traffic","HTTP_OUTBOUND_TRAFFIC":"HTTP Outbound Traffic","TRAFFIC_POLICIES":"Traffic Policies","LOAD_BALANCING":"Load Balancing","LOAD_BALANCING_ALGORITHM":"Load Balancing Algorithm","LB_UNSPECIFIED":"Unspecified","LB_LEAST_REQUEST":"Least Request","LB_PASSTHROUGH":"Pass Through","LB_ROUND_ROBIN":"Round robin","LB_LEAST_CONN":"Least connection","LB_RANDOM":"Random","LB_ALG_DESC":"Round robin: Distributes client requests to backends in rotation.
    Least connection: Randomly selects two healthy backends and sends client requests to the one with fewer connections.
    Random: Sends client requests to a backend randomly selected from all healthy backends.","HASH_BASED_ON_HTTP_HEADER":"Hash based on HTTP header","HASH_BASED_ON_HTTP_COOKIE":"Hash based on HTTP cookie","HASH_BASED_ON_SOURCE_IP_ADDRESS":"Hash based on source IP address","HASH_BASED_ON_RINGHASH":"The ring/modulo hash load balancer implements consistent hashing to backend hosts.","HASH_BASED_ON_MAGLEV":"The Maglev load balancer implements consistent hashing to backend hosts.","HTTP_HEADER":"HTTP Header","HTTP_COOKIE":"HTTP Cookie","CONNECTION_POOL":"Connection Pool","CONNECTION_POOL_TIP":"Creates a fixed number of connection objects for the application and stores them in a connection pool for reuse. A connection object is retrieved from the connection pool for each request and returned to the pool after use.","MAXIMUM_CONNECTIONS":"Maximum Connections","MAXIMUM_CONNECTIONS_DESC":"Maximum of number of HTTP1 or TCP connections to a destination backend.","MAXIMUM_REQUESTS_PER_CONNECTION":"Maximum Requests per Connection","MAXIMUM_REQUESTS_PER_CONNECTION_DESC":"Maximum number of requests per connection to a backend.","TRAFFIC_MONITORING_MAXIMUM_RETRIES":"Maximum Retries","TRAFFIC_MONITORING_MAXIMUM_RETRIES_DESC":"Maximum number of retries for requests.","CONNECTION_TIMEOUT":"Connection Timeout","CONNECTION_TIMEOUT_DESC":"TCP connection timeout period.","MAXIMUM_REQUESTS":"Maximum Requests","MAXIMUM_PENDING_REQUESTS":"Maximum Pending Requests","CIRCUIT_BREAKER":"Circuit Breaker","CIRCUIT_BREAKER_DESC":"If a service cannot be accessed and the specified criteria are met, the ciruit breaker marks the service as unavailable and returns error response to clients directly for a specified period of time.","CONSECUTIVE_FIVEXX_ERRORS":"Consecutive 5XX Errors","CONSECUTIVE_FIVEXX_ERRORS_DESC":"Number of 5XX errors before a backend is ejected from the connection pool.","INSPECTION_INTERVAL_S":"Inspection Interval (s)","INSPECTION_INTERVAL_S_DESC":"Interval between two backend inspections.","MAXIUM_EJECTION_RATIO":"Maximum Ejection Ratio (%)","MAXIUM_EJECTION_RATIO_DESC":"Maximum percentage of backends that can be ejected.","BASE_EJECTION_TIME_S":"Base Ejection Time (s)","BASE_EJECTION_TIME_S_DESC":"Maximum ejection duration.","UPDATED_AT_VALUE_SCAP":"Updated at {value}","METHOD":"Method","TRAFFIC_MANAGEMENT_UNAVAILABLE":"Traffic Management Unavailable","APPLICATION_GOVERNANCE_NOT_ENABLED":"Please enable Application Governance.","CREATE_GRAYSCALE_RELEASE_TASK":"Create Grayscale Release Task","GRAYSCALE_RELEASE_DESC":"Grayscale release represents an important method of application iteration in the production environment. You can choose different release methods for the smooth transition as you upgrade your applications to a new version.","NO_GRAYSCALE_RELEASE_TASK_FOUND":"No Grayscale Release Task Found","NO_GRAYSCALE_RELEASE_TASK_FOUND_DESC":"Please create a grayscale release task.","TYPE_SERVICE_DEPLOYMENT":"Type: stateless service (deployment)","TYPE_SERVICE_STATEFULSET":"Type: stateful service (statefulset)","TRACING":"Tracing","TRACING_NO_DATA_DESC":"Please change the search conditions and try again.","NUM_SPAN_SI":"{num} span","NUM_SPAN_PL":"{num} spans","NUM_ERROR_SI":"{num} error","NUM_ERROR_PL":"{num} errors","LAST_NUM_RECORDS":"Last {num} records","PROCESS":"Process","SERVICES_AND_OPERATIONS":"Services & Operations","TRACING_UNAVAILABLE":"Tracing Unavailable","CALLED_SERVICES":"Called Services","CALLED_DEPTH":"Call Depth","COMPOSED_APP_PL":"Composed Apps","NO_COMPOSED_APP_FOUND":"No Composed App Found","COMPOSED_APP_EMPTY_DESC":"Please create a composed app.","STATEFUL_SERVICE":"Stateful Service","STATELESS_SERVICE":"Stateless Service","CREATE_COMPOSED_APP":"Create Composed App","SAVE_FORM_TIP":"Please save the current settings first.","YAML_FILE":"YAML File","CREATE_BY_YAML_DESC":"Customize the settings in the YAML file.","APPLICATION_GOVERNANCE":"Application Governance","VERSION_DESC":"The version can contain only lowercase letters and numbers. The maximum length is 16 characters.","APPLICATION_GOVERNANCE_DESC":"Enable Application Governace to use the Traffic Monitoring, Grayscale Release, and Tracing features for the app.","APP_BASIC_INFORMATION_DESC":"Set the basic information about the app.","APP_SELECT_SERVICE_TYPE_DESC":"Create a stateless or stateful service.","STATEFUL_SERVICE_DESC":"Create a service and a statefulset.","STATELESS_SERVICE_DESC":"Create a service and a Deployment.","APPLICATION_SERVICE_DESC":"Add stateful or stateless services to the app based on your requirements.","APP_CREATE_SERVICE_DESC":"Create a service for the app.","ROUTE_SETTINGS":"Ingress Settings","ROUTING_RULES":"Routing Rules","ROUTE_SETTINGS_DESC":"Set routing rules for the app.","ADD_ROUTE_SUCCESS":"The ingress was added successfully.","CURRENT_APP_SETTINGS_READONLY":"Current App Settings (read-only)","TARGET_APP_SETTINGS":"Target App Settings","TARGET_APP_VERSION":"Target App Version","CURRENT_APP_VERSION":"Current App Version","EDIT_APP_SETTINGS":"Edit App Settings","UPDATED_TIME":"Updated at {value}","APP_TEMPLATE":"App Template","NO_APP_DESC_FOUND":"No app description found.","TEMPLATE_BASED_APP_PL":"Template-Based Apps","APPLICATIONS_DESC":"An app provides users with comprehensive business functions in one package. App templates in KubeSphere are built on the Helm packaging specification. They are delivered through a unified public or private Helm repository. An app is composed of one or more Kubernetes objects including workloads, services and ingresses.","APP_PL":"Apps","APP_TYPES_Q":"What app types does KubeSphere support?","APP_TYPES_A":"KubeSphere supports templated-based apps and composed apps. Template-based apps are created from You can deploy apps from the KubeSphere App Store or an app template. Composed apps are customized by users.","HOW_TO_USE_APP_GOVERN_Q":"How do I use Application Governance?","HOW_TO_USE_APP_GOVERN_A":"You can enable Application Governance when you create a composed app.","DEPLOY_SAMPLE_APP":"Deploy Sample App","NO_TEMPLATE_BASED_APP_FOUND":"No Template-Based App Found","TEMPLATE_BASED_APP_EMPTY_DESC":"Please create an app from the KubeSphere App Store or an app template.","APP":"App","VERSION":"Version","CREATING":"Creating","UPGRADING":"Created","DELETING":"Deleting","CREATE_APP":"Create App","CREATE_APP_DESC":"Create an app from the KubeSphere App Store or an app template.","FROM_APP_STORE":"From App Store","FROM_APP_TEMPLATE":"From App Template","FROM_APP_STORE_DESC":"Create an app from the KubeSphere App Store.","SELECT_APP_REPOSITORY":"Select app repository","CURRENT_WORKSPACE":"Current workspace","FROM_APP_TEMPLATE_DESC":"Create an app from an app template in the current workspace or in a remote app repository.","APP_TEMPLATES_MODAL_DESC":"Select the current workspace or a remote app repository from the drop-down list to view the available app templates.","APP_LOW":"app","CRONJOBS":"Cronjobs","CRONJOB_DESC":"Cronjobs manage jobs on a time-based schedule and can be used to perform periodic or recurring tasks.","CRONJOB_PAUSED":"Paused","CRONJOB_RUNNING":"Running","CRONJOB_FAILED":"Failed","SCHEDULE":"Schedule","ENTER_SCHEDULE_TIP":"Please select a schedule.","CRONJOB_CRON_DESC":"Set a schedule for the cronjob. KubeSphere uses UTC by default and you need to adjust the schedule according to your time zone.","MAXIMUM_DELAY":"Maximum Start Delay (s)","SUCCESSFUL_JOBS_RETAINED":"Successful Jobs Retained","FAILED_JOBS_RETAINED":"Failed Jobs Retained","CONCURRENCY_POLICY":"Concurrency Policy","MAXIMUM_DELAY_DESC":"Maximum delay before starting a scheduled job when the job is missed for certain reasons.","CONCURRENCY_POLICY_DESC":"Policy adopted by the system when multiple jobs of the cronjob overlap with each other.","FAILED_JOBS_RETAINED_DESC":"Number of failed jobs allowed to be retained. The default value is 1.","SUCCESSFUL_JOBS_RETAINED_DESC":"Number of successful jobs allowed to be retained. The default value is 3.","RUN_JOBS_CONCURRENTLY":"Run jobs concurrently","SKIP_NEW_JOB":"Skip new job","SKIP_OLD_JOB":"Skip old job","STRATEGY_SETTINGS":"Strategy Settings","MAXIMUM_RETRIES":"Maximum Retries","MAXIMUM_RETRIES_DESC":"Maximum number of retries before the job is marked as failed. The default value is 6.","PARALLEL_PODS_DESC":"Number of pods that run in parallel in the job.","COMPLETE_PODS_DESC":"Number of complete pods required for the job to be marked as complete.","MAXIMUM_DURATION_DESC":"Maximum duration of the job. The job is terminated when it reaches the maximum duration.","PARALLEL_PODS":"Parallel Pods","COMPLETE_PODS":"Complete Pods","MAXIMUM_DURATION":"Maximum Duration (s)","RESTART_POLICY":"Restart Policy","RESTART_POLICY_DESC":"Select the policy adopted by the system when a container in the pod exits abnormally.","CRONJOB_PL":"Cronjobs","CRONJOB_LOW":"cronjob","REVISION_RECORDS_DESC":"A revision record is generated after the workload is created or modified, which can be used to roll back the workload settings. A maximum of 10 revision records can be retained.","ENVIRONMENT_VARIABLE":"Environment Variable","CONTAINER_SETTINGS_DESC":"Set the image, name, type, and computing resources of the container.","PORT_SETTINGS_DESC":"Set the ports used for accessing the container.","HEALTH_CHECKER_DESC":"Add probes to check the container health status regularly.","STARTUP_COMMAND":"Start Command","STARTUP_COMMAND_DESC":"Customize the command run by the container upon startup. By default, the container runs the default image command.","CONTAINER_COMMAND_DESC":"Startup command of the container.","CONTAINER_ARGUMENT_DESC":"Parameters of the startup command. Use commas to separate multiple parameters.","CONTAINER_ENVIRONMENT_DESC":"Add environment variables to the container.","PROBE_COMMAND_DESC":"Use commas to separate multiple commands.","IGNORE_CERT_WARN_DESC":"Ignoring certificate verification may cause password disclosure.","CERT_ERROR":"Certificate error.","ROLL_BACK":"Roll Back","CURRENT_REVISION_RECORD":"Current Revision Record","TARGET_REVISION_EMPTY_DESC":"Please select a target revision record.","TARGET_REVISION_RECORD":"Target Revision Record","CONFIGURE_AUTOSCALING_DESC":"Set the system to automatically adjust the number of pod replicas based on target CPU usage and target memory usage.","EDIT_AUTOSCALING":"Edit Autoscaling","TARGET_CPU_USAGE_UNIT":"Target CPU Usage (%)","AUTOSCALING":"Autoscaling","RESOURCE_NAME":"Resource Name","TARGET_CPU_USAGE_DESC":"The system automatically decreases/increases the number of pod replicas when the actual CPU usage is higher/lower than the target.","TARGET_MEMORY_USAGE_DESC":"The system automatically decreases/increases the number of pod replicas when the actual memory usage is higher/lower than the target.","MINIMUM_REPLICAS_DESC":"Set the minimum number of pod replicas allowed. The default value is 1.","MAXIMUM_REPLICAS_DESC":"Set the maximum number of pod replicas allowed. The default value is 1.","TARGET_MEMORY_USAGE_UNIT":"Target Memory Usage (MiB)","MINIMUM_REPLICAS":"Minimum Replicas","MAXIMUM_REPLICAS":"Maximum Replicas","EDIT_SETTINGS":"Edit Settings","FROM_CONFIGMAP":"From configmap","FROM_SECRET":"From secret","BATCH_REFERENCE":"Batch Reference","BATCH_REFERENCE_DESC":"Reference multiple keys in a configmap or secret.","DESELECT_ALL":"Deselect all","KEY_PL":"Keys","RULE_NOT_COMPLETE":"Please set a complete rule.","REVISION_RECORDS":"Revision Records","CONFIG_FILE":"Configuration File","COMPARE_WITH":"Compared with the previous record {version}","REPLICAS_DESIRED":"Desired","REPLICAS_CURRENT":"Current","ADJUST_REPLICAS":"Adjust Replicas","REPLICAS_SCALE_NOTIFY_CONTENT":"Are you sure you want to change the number of pod replicas to {num}?","REPLICAS_SCALE_NOTIFY_CONFIRM":"OK ({seconds}s)","REPLICAS_SCALE_NOTIFY_CANCEL":"Cancel","TARGET_MEMORY_USAGE":"Target Memory Usage","TARGET_CPU_USAGE":"Target CPU Usage","TARGET_CURRENT":"{target} (Current: {current})","NOT_ENABLE":"{resource} Not Enabled","CONTAINER_LOG_NOT_ENABLED":"Container Log is not enabled.","BUILD_LOG":"Build Log","TASK":"Task","IN_PROGRESS":"in progress","IMAGE_BUILDING":"Image Building","HAS_FAILED":"has failed","VIEW_ALL_REPLICAS":"View All Replicas","SHOW_SELECTED_ONLY":"Show Selected Only","MONITORING_SELECT_LIMIT_MSG":"A maximum of 10 resources can be selected.","MONITORING_ALERT_DESC":"Information about a maximum of five pod replicas are displayed by default. You can click View All Replicas to view information about all pod replicas.","CURRENT_VALUE":"Current: {value}","ENVIRONMENT_VARIABLE_PL":"Environment Variables","EVENT_AGE":"Occurred","EVENT_AGE_DATA":"{lastTime}
    ({count} times over {duration})","EVENT_AGE_DATA_TWICE":"{lastTime}
    (twice over {duration})","SOURCE":"Source","HPA_SET_TIP":"Horizontal pod autoscaling has been set.","WORKLOAD_EMPTY_DESC":"Please create a workload.","INVALID_IMAGE":"Invalid image.","INVALID_NAME_DESC":"Invalid name. The name can contain only lowercase letters, numbers, and hyphens (-), and must start and end with a lowercase letter or number. The maximum length is 63 characters.","NO_IMAGE_FOUND":"No Image Found","CONTAINER_EMPTY_DESC":"Please add at least one worker container.","RESOURC_QUOTAS_UNSET":"Resource Quotas Unset","INSUFFICENT_RESOURCES":"Insufficent Resources","REMAINING_QUOTAS":"Remaining Quotas","ENVIRONMENT_INVALID_TIP":"The key of an environment variable can contain only letters, numbers, underscores (_), hyphens (-), and periods (.), and must not start with a number.","ENVIRONMENT_CANNOT_BE_EMPTY":"Please set a key for the environment variable.","WORKLOAD_PORT_NAME_DESC":"The port name can contain only lowercase letters, numbers and hyphens (-), and must start with a lowercase letter and end with a lowercase letter or number. The maximum length is 15 characters.","MAX_EXTRA_PODS_DESC":"Maximum number or percentage of extra pods allowed during the update process.","MAX_EXTRA_PODS":"Maximum Extra Pods","AVAILABLE":"Available","IN_USER":"In use","ACCESS_MODE_SCAP":"Access mode","PVC_OR_TEMPLATE_EMPTY":"You have enabled Collect Logs on Volumes. Please add at least one persistent volume, temperary volume, or persistent volume claim template and specify the path of container logs.","PVC_EMPTY":"You have enabled Collect Logs on Volumes. Please add at least one persistent volume or temperary volume and specify the path of container logs.","PROJECT_COLLECT_SAVED_DISABLED_DESC":"To enable this function, you need to enable Collect Logs on Volumes in Project Settings.","COLLECT_LOGS_ON_VOLUMES_DESC":"Allow the system to collect container logs saved on volumes. To use this function, you need to mount a volume in read and write mode to a container and set the container to export logs to the volume.","CONTAINER_LOG_PATH":"Container log path","CONTAINER_LOG_PATH_TIP":"Container log path relative to the volume mount path. Globbing patterns are supported. You can used commas (,) to separate multiple paths.

    Example
    When the volume mount path is /data, log/*.log indicates that the container log files are all .log files in the /data/log directory.","RECREATE_CONFIRM_DESC":"Are you sure you want to re-create the {type} {resource}? The pod replicas will be updated according to the update strategy and the service will be interrupted.","NO_WORKLOAD_RELATED_RESOURCE_DESC":"No resource related to the workload is found.","SELECT_ALL":"Select All","DELETE_WORKLOAD_DESC_SI":"You are about to delete the workload {resource}.
    Do you want to also delete the resource related to the workload?","DELETE_WORKLOAD_DESC_PL":"You are about to delete the workloads {resource}.
    Do you want to also delete the resources related to the workloads?","DELETE_WORKLOAD":"Delete Workload","DELETE_MULTIPLE_WORKLOADS":"Delete Multiple Workloads","DELETE_APP_RESOURCE_TIP":"The resource is managed by {app}, which may affect the normal use of this app if the resource is deleted. Please enter the {type} name {resource} to make sure you understand the risks associated with the operation.","STOP_APP_RESOURCE_TIP":"The resource is managed by {app}, which may affect the normal use of this app if the resource is stopped. Please enter the {type} name {resource} to make sure you understand the risks associated with the operation.","MORE":"More","VIEW_YAML":"View YAML","JOB_PL":"Jobs","JOB_DESC":"Jobs are used to perform short-lived, one-off tasks. A job creates one or more pods and ensures that a specific number of pods successfully terminate.","JOB_EMPTY_DESC":"Please create a job.","JOB_COMPLETED":"Completed","JOB_FAILED":"Failed","JOB_RUNNING":"Running","LAST_RUN_TIME":"Last Run Time","RESTART_POLICY_NEVER_DESC":"Re-create pod","RESTART_POLICY_ONFAILURE_DESC":"Restart container","RERUN":"Rerun","JOB":"Job","JOB_LOW":"job","QOS_CLASS":"QoS Class","NODE_NAME":"Node Name","POD_IP_ADDRESS":"Pod IP Address","JOB_UNFINISHED":"Unfinished","TERMINATED":"Terminated","SCHEDULED_TO_NODE":"Scheduled to {value}","SCHEDULING_NOT_SUCCESSFUL":"Scheduling Not Successful","SCHEDULING_INFORMATION":"Scheduling Information","SCHEDULING_RESULT":"Scheduling Result","POD_SCHEDULING_METHOD":"Pod Scheduling Method","POD_ASSIGNED_DESC":"The system schedules a pod to a node with sufficient available resources based on the resource requests of the Pod.","STATUS_INFORMATION":"Status Information","WORKLOAD_CONDITION_AVAILABLE":"Available","WORKLOAD_CONDITION_PROGRESSING":"Progressing","NOT_SUCCESSFUL":"Not successful","CURRENT_STATUS":"Current status","POD_CONDITION_INITIALIZED":"Initialized","POD_CONDITION_INITIALIZED_DESC":"Starts all init containers in the pod.","POD_CONDITION_READY":"Pod Ready","POD_CONDITION_READY_DESC":"Starts running the pod and allows the pod to be accessed.","POD_CONDITION_CONTAINERSREADY":"Containers Ready","POD_CONDITION_CONTAINERSREADY_DESC":"Starts all containers in the pod.","POD_CONDITION_PODSCHEDULED":"Pod Scheduled","POD_CONDITION_PODSCHEDULED_DESC":"Schedules the pod to a node in the cluster.","POD_DESC":"A pod is the basic execution unit of a Kubernetes application, representing the smallest and simplest unit in the Kubernetes object model that you create or deploy.","POD_EMPTY_DESC":"Please create a pod.","DOMAIN_NAME_VALUE":"Domain Name: {value}","PATH_VALUE":"Path: {value}","RULES":"Rules","ROUTE_PATH_VALUE":"Path: {value}","ROUTE_SERVICE_VALUE":"Service: {value}","ROUTE_PORT_VALUE":"Port: {value}","SERVICE_COLON":"Service: ","ACCESS_SERVICE":"Access Service","UNABLE_TO_ACCESS":"Unable to access service","UNABLE_TO_ACCESS_TIP":"Make sure that domain name resolution policies have been configured in your DNS server or the hosts file of your client machine.","CERTIFICATE_VALUE":"Certificate: {value}","PATH_EXIST":"Duplicate paths exist.","ENDPOINT":"Endpoint","SESSION_AFFINITY":"Session Affinity","EDIT_EXTERNAL_ACCESS":"Edit External Access","EDIT_MONITORING_EXPORTER":"Edit Monitoring Exporter","EDIT_SERVICE":"Edit Service","ACCESS_NONE_TIP":"Internet access is not supported. The service can be accessed only within the cluster.","EXTERNAL_SERVICE":"External Service","COLLECTION_INTERVAL_MIN":"Collection Interval (min)","COLLECTION_INTERVAL_MIN_DESC":"Interval in minutes between two metric collection operations. The default value is 1.","COLLECTION_TIMEOUT_DESC":"Timeout interval in seconds of each collection operation. The default value is 10.","SELECT_AUTHENTICATION_METHOD":"Select Authentication Method","SELECT_AUTHENTICATION_METHOD_DESC":"Select the authentication method used during metric collection.","NO_AUTHENTICATION_TCAP":"No Authentication","NO_AUTHENTICATION_TIP":"Authentication is not used during metric collection.","CREATE_A_NEW_SECRET":"Create a new secret","REFRESH_SECRETS":"refresh secrets.","CERTIFICATE_AUTHORITY":"Certificate Authority","SERVER_NAME":"Server Name","TLS_SETTINGS_TCAP":"TLS Settings","BEARER_TOKEN_TCAP":"Bearer Token","BASIC_AUTHENTICATION_TCAP":"Basic Authentication","EXTERNAL_IP_ADDRESS":"External IP Address","MONITORING_EXPORTER":"Monitoring Exporter","MONITORING_EXPORTER_VALUE":"Monitoring exporter: {value}","PORT_PL":"Ports","SERVICE_NODE_PORT_DESC":"If your client machine is on the same network as the cluster, you can use : to access the service.","IMAGE_BUILDING_FAILED":"Image building failed","IMAGE_BUILDING_SUCCESSFUL":"Image building successful","BUILDING_IMAGE":"Building image","SERVICE_MONITORING_EXPORTER":"Service Monitoring Exporter","EXPORTER_SERVICE_PORTS":"Exporter Service Ports","SCRAPE_INTERVAL_MIN":"Scrape Interval (Min)","SERVICE_TYPES_Q":"What service types does KubeSphere support?","SERVICE_TYPES_A":"KubeSphere supports stateless services and stateful services. Pod replicas in a stateless service share the same volume, while each pod replica in a stateful service has an independent volume.","SCENARIOS_FOR_SERVICES_Q":"What are the use cases of stateless services and stateful services?","SCENARIOS_FOR_SERVICES_A":"Stateless services applies to scenarios where data persistence is not required, such as Nginx and Tomcat. Stateful services applies to scenarios where data persistence is required, such as MySQL databases, Kafka, and Zookeeper.","SERVICE_TYPE":"Service Type","SERVICE_LIST":"Service List","SERVICE_TYPE_STATEFULSERVICE":"Stateful Service","SERVICE_TYPE_STATELESSSERVICE":"Stateless Service","SERVICE_TYPE_EXTERNALSERVICE":"External Service","HEADLESS":"Headless","EXTERNALNAME":"ExternalName","CREATE_SERVICE_DESC":"Select a service creation method.","SELECT_SERVICE_TYPE_DESC":"Create a stateless or stateful service, or map a service to an external service.","SERVICE_FROM_CODE":"Create Service from Source Code","SERVICE_FROM_ARTIFACT":"Create Service from Artifact","SERVICE_FROM_CODE_DESC":"Build an image from existing source code and deploy the image.","SERVICE_FROM_ARTIFACT_DESC":"Build an image from an existing artifact and deploy the image.","CUSTOMIZE_SERVICE":"Customize Service","CUSTOMIZE_SERVICE_DESC":"Specify workloads or edit a YAML configuration file to create a service.","PORT_INPUT_DESC":"The port name already exists. Please enter another name.","PORT_NAME_DESC":"The port name can contain only lowercase letters, numbers, and hyphens (-) and must start and end with a lowercase letter or number. The maximum length is 63 characters.","CREATE_EXTERNAL_SERVICE_DESC":"Create a service and map it to an external service.","CREATE_EXTERNAL_SERVICE":"Create External Service","EXTERNAL_SERVICE_ADDRESS_EMPTY_DESC":"Please enter the domain name of an external service.","EXTERNAL_SERVICE_ADDRESS":"External Service Address","EXTERNAL_SERVICE_ADDRESS_DESC":"Enter the domain name of an external service.","JAVA":"Java","NODEJS":"Node.js","PYTHON":"Python","LANGUAGE_TYPE_VALUE":"Language Type: {value}","CONTAINER_SETTINGS":"Container Settings","ARTIFACT_TYPE_VALUE":"Artifact Type: {value}","BINARY":"Binary","SPECIFY_WORKLOAD_TO_CREATE_SERVICE":"Specify Workload to Create Service","EDIT_YAML_TO_CREATE_SERVICE":"Edit YAML to Create Service","SPECIFY_WORKLOAD_DESC":"Create a service by using one or more existing workloads.","NO_RELATED_RESOURCE_FOUND":"No Related Resource Found","NO_SERVICE_RELATED_RESOURCE_DESC":"No resource related to the service is found.","DELETE_SERVICE_DESC":"You are about to delete the service(s) {resource}. Please confirm whether to delete the associated resource?","DELETE_SERVICE_DESC_PL":"You are about to delete the services {resource}.
    Do you want to also delete the following resources related to the services?","DELETE_SERVICE_DESC_SI":"You are about to delete the service {resource}.
    Do you want to also delete the following resource related to the service?","DELETE_SERVICE":"Delete Service","DELETE_MULTIPLE_SERVICES":"Delete Multiple Services","SERVICE_TOPOLOGY":"Service Topology","AUTO_REFRESH":"Auto Refresh","POD_COUNT_VALUE":"Pods: {value}","SELECTOR":"Selector","RECREATE":"Re-create","RECREATE_SUCCESS_DESC":"Re-created successfully.","STATEFULSETS_LOW":"Statefulsets","STATEFULSETS_PL":"Statefulsets","PARTITION_ORDINAL_EMPTY":"Please set a ordinal for dividing pod replicas.","CONFIGMAP_PL":"Configmaps","CONFIGMAPS":"Configmaps","CONFIGMAP_LOW":"configmap","SECRET_LOW":"secret","SERVICE_ACCOUNT_PROJECT_ROLE_DESC":"Select the role of the service account in the current project.","SERVICE_ACCOUNT":"Service Account","SECRET_VALUE":"Secret: {value}","SERVICEACCOUNT_KUBECONFIG_DESC":"Download the kubeconfig.yaml file to provide other apps with an account that can access the current project. If the apps to use the kubeconfig.yaml file are deployed outside the current cluster, you need to change the value of clusters:cluster:server to the Kubernetes API server address exposed to the outside.","SERVICE_ACCOUNT_PL":"Service Accounts","SERVICE_ACCOUNT_DESC":"A service account provides the processes that run in a pod with an identity that can be used to access the API server.","SERVICE_ACCOUNT_EMPTY_DESC":"Please create a service account.","INVALID_YAML_FILE_FORMAT":"Invalid YAML file format.","PROJECT_ROLE_SI":"Project Role","SELECT_PROJECT_ROLE_DESC":"Select a project role to specify permissions.","CHANGE_ROLE":"Change Role","SERVICE_ACCOUNT_LOW":"service account","GRAYSCALE_RELEASE":"Grayscale Release","BLUE_GREEN_DEPLOYMENT":"Blue-Green Deployment","CANARY_RELEASE":"Canary Release","TRAFFIC_MIRRORING":"Traffic Mirroring","BLUE_GREEN_DEPLOYMENT_DESC":"Send service traffic to the new version for testing. If the new version does not function properly, you can immediately switch service traffic to the old version.","CANARY_RELEASE_DESC":"Allocate service traffic among the new version and old version to both test the new version and ensure service continuity.","TRAFFIC_MIRRORING_DESC":"Send a copy of service traffic to the new version for testing without actually exposing the new version.","CREATE_BLUE_GREEN_DEPLOYMENT_TASK":"Create Blue-Green Deployment Task","DESELECT":"Deselect","SELECT":"Select","SELECT_GRAY_COMPONENT_TIP":"Please select a service.","REPLICA":"Replica","ADD_REPLICA":"Add Replica","REPLICA_PL":"Replicas","GRAYSCALE_REPLICAS_DESC":"Pod replicas in the new version","SELECT_VERSION":"Select Version","BLUE_GREEN_STRATEGY_DESC":"Select a version to take over all service traffic.","TAKE_OFFLINE":"Take Offline","TAKE_OFFLINE_SUCCESS":"Take Offline Success","TAKE_OVER":"Take Over","GRAYSCALE_VERSION":"Version: {version}","CREATE_CANARY_RELEASE_TASK":"Create Canary Release Task","UNFINISHED_GRAY_TASK":"Grayscale release in progress","NO_WORKLOAD_FOUND_TIP":"No workload found","NO_SERVICE_MESH_TIP":"Application governance is disabled for the app and grayscale release is unavailable.","GRAY_APP_NAME":"App: {name}","UNSUPPORTED_WORKLOAD_TYPE":"Workload type not supported","VERSION_EXISTS":"The version code already exists. Please enter another version code.","NEW_VERSION_NUMBER_EXIST_DESC":"The workload {name} already exists. Please enter another version code.","INIT_CONTAINER":"Init container","INIT_CONTAINER_VALUE":"Init Container: {value}","CONTAINER_VALUE":"Container: {value}","GRAYSCALE_IMAGE":"Image: {image}","NEW_VERSION_NUMBER":"New Version Number","NEW_VERSION_NUMBER_EMPTY_DESC":"Please enter a new version number.","NEW_VERSION_SETTINGS":"New Version Settings","NEW_VERSION_NUMBER_DESC":"The new version number can contain only lowercase letters and numbers. The maximum length is 16 characters.","NEW_VERSION_NUMBER_INVALID_DESC":"Invalid new version number. The new version number can contain only lowercase letters and numbers. The maximum length is 16 characters.","KEY_EQ_VALUE":"Key=Value","HEADER":"Header","CLIENT_OS":"Client OS","COOKIE":"Cookie","SPECIFY_REQUEST_PARAMETERS_DESC":"Requests that meet the following conditions are sent to the new version.","POLICY_REQUEST_CONTENT_TIP":"The Specify Request Parameters function supports only HTTP, HTTPS, and gRPG requests.","SPECIFY_REQUEST_PARAMETERS":"Specify Request Parameters","REQUEST_PARAMETERS":"Request Parameters","EXACT_MATCH":"Exact match","PREFIX_MATCH":"Prefix match","REGEX_MATCH":"Regex match","CANARY_BY_TRAFFIC_DESC":"{ratio}% of traffic bound for the service {component} is sent to the new version {newVersion}.","SPECIFY_TRAFFIC_DISTRIBUTION":"Specify Traffic Distribution","TRAFFIC":"Traffic","TRAFFIC_DISTRIBUTION":"Traffic Distribution","CREATE_TRAFFIC_MIRRORING_TASK":"Create Traffic Mirroring Task","PREREQUEST_FOR_USE_GRAYRELEASE_Q":"What are the prerequisites for implementing grayscale release?","PREREQUEST_FOR_USE_GRAYRELEASE_A":"Before implementing grayscale release, you need to create a composed app and enable application governance for the app.","RELEASE_TASKS":"Release Tasks","TCP_INBOUND_TRAFFIC":"TCP Inbound Traffic","TCP_OUTBOUND_TRAFFIC":"TCP Outbound Traffic","NO_DATA_SCAP":"No data","REPLICA_COUNT_LOW":"replicas","MIRROR_POLICY_DESC":"A copy of service traffic is sent to the new version for testing. Only the old version is exposed and the new version is not exposed.","BLUE_GREEN_DEPLOYMENT_LOW":"blue-green deployment","BLUE_GREEN_TRAFFIC_DISTRI_DESC":"The new version or old version receives all traffic.","TRAFFIC_LOW":"traffic","VERSION_TRAFFIC_PERCENT":"{version} traffic {percent}%","OFFLINE":"Offline","OFFLINE_TIP":"No service traffic is sent to this version. You can take the version online to make it take over all traffic.","CANARY_RELEASE_LOW":"canary release","ADJUST_TRAFFIC_DISTRIBUTION_DESC":"Are you sure you want to send {ratioNew}% of traffic to the new version {newVersion} and {ratioOld}% to the old version {oldVersion}?","ALLOCATE_TRAFFIC_DESC":"Move the slider to set the proportion of traffic sent to the new version and that sent to the old version.","COOKIE_EXACT_MATCH":"Cookie (exact match)","COOKIE_REGEX_MATCH":"Cookie (regex match)","HEADER_EXACT_MATCH":"Header (exact match)","HEADER_REGEX_MATCH":"Header (regex match)","URL_PREFIX_MATCH":"URL (prefix match)","URL_EXACT_MATCH":"URL (regex match)","OS":"OS","SERVICE_VERSION_RECEIVE_ALL_TRAFFIC":"The version {version} has taken over all traffic.","RESTORE":"Restore","SUCCESSFUL_REQUEST_RATE":"Successful Request Rate","TRAFFIC_IN_LAST_FIVE_MINUTES":"Traffic in last five minutes.","DELETE_GRAYSCALE_RELEASE_TASK_DESC":"Please select a version to take over all traffic before deleting the grayscale release task.","GRAY_COMPONENT_DESC":"Information about the new version being tested and the old version.","TRAFFIC_MIRRORING_LOW":"traffic mirroring","MIRRORED_TRAFFIC":"Mirrored traffic","MIRRORED_TRAFFIC_TIP":"Traffic mirroring does not actually expose the new version.","RELEASE_MODE_PL":"Release Modes","RELEASE_MODE":"Release mode","NEW_VERSION_TAKEOVER_DESC":"The new version {newVersion} is receiving all traffic. If you delete the current grayscale release task, the old version {oldVersion} will be also be deleted.","OLD_VERSION_TAKEOVER_DESC":"The old version {oldVersion} is receiving all traffic. If you delete the current grayscale release task, the new version {newVersion} will be also be deleted.","GRAYSCALE_REPLICA_SI":"Replica: {count}","GRAYSCALE_REPLICA_PL":"Replicas: {count}","TRAFFIC_MIRRORING_TRAFFIC_DISTRI_DESC":"A copy of traffic is sent to the new version for testing.","EDIT_GRAYSCALE_RELEASE_TASK":"Edit Grayscale Release Task","ADJUST_TRAFFIC_DISTRIBUTION":"Adjust Traffic Distribution","COPIED_SUCCESSFUL":"Copied successfully.","BUILDER_IMAGE":"Builder Image","PULL_POLICY":"Pull Policy","REMOTE_TRIGGER":"Remote Trigger","S2I_UPDATE_WORKLOAD":"Update workload after image building is successful","S2I_UPDATA_WORKLOAD_DESC":"After the image is rebuilt successfully, workloads that use the image will be updated.","IMAGE_BUILDER":"Image Builder","IMAGE_BUILDER_LOW":"image builder","JOB_RECORDS":"Job Records","LAST_BUILD_ENVIRONMENT":"Last Build Environment","BUILDER_IMAGE_SCAP":"Builder image","FILE_SIZE":"File size: {size}","DOWNLOAD_ARTIFACT":"Download Artifact","ARTIFACT_FILE":"Artifact File","LOG_MODULE_NOT_INSTALLED":"The logging module is not installed.","LOADING_DOTS":"Loading...","IMAGE_NAME_SCAP":"Image name","IMAGE_SIZE_SCAP":"Image size","IMAGE_NAME_BUILDING":"Image: {name}/Building","IMAGE_NAME_FAILED":"Image: {name}/Failed","IMAGE_NAME_SUCCESSFUL":"Image: {name}/Successful","LAST_MESSAGE_SCAP":"Last message","START_TIME_SCAP":"Start time","SOURCE_URL":"Source URL","NEW_TAG":"New Tag","NEW_TAG_DESC":"Enter the tag of the new image","IMAGE_ARTIFACTS":"Image Artifacts","RELEASE_TIME_SCAP":"Release time","PULL_COMMAND_SCAP":"Pull command","IMAGE_BUILDER_PL":"Image Builders","IMAGE_BUILDER_DESC":"Image Builder is a tool that builds container images from source code or artifacts. You can build container images from source code or artifacts through simple configurations.","IMAGE_BUILDER_EMPTY_DESC":"Please create an image builder.","NOT_RUNNING_YET":"Not run yet","BUILDING":"Building","S2I":"Source-to-image","B2I":"Artifact-to-image","BUILD_IMAGE_FOR_SERVICE":"Build image for service {service}.","BUILD_MODE":"Build Mode","CONTAINERD_RUNTIME_NOT_SUPPORTED":"The containerd runtime does not support this feature.","S2I_DESC":"Select a source code language.","IMAGE_FROM_S2I":"Build Image from Source Code","IMAGE_FROM_B2I":"Build Image from Artifact","B2I_DESC":"Select an artifact file type.","EMPTY_IMAGE_TYPE_DESC":"Please select a language or artifact type.","CODE_REPOSITORY_URL":"Code Repository URL","CODE_REPOSITORY_BRANCH":"Code Repository Branch","CODE_REPOSITORY_KEY":"Code Repository Key","CODE_REPOSITORY_URL_DESC":"Enter the address of the source code repository. Currently, only Git repositories are supported.","CODE_REPOSITORY_KEY_DESC":"Select the secret that contains the code repository key if a private code repository is used.","IMAGE_NAME":"Image Name","IMAGE_TAG":"Image Tag","TARGET_IMAGE_REPOSITORY":"Target Image Registry","S2I_IMAGE_NAME_DESC":"The name can contain only lowercase letters, numbers, hyphens (-), dots (.), slashes (/), and colons (:), and must start and end with a lowercase letter or number.","S2I_TARGET_IMAGE_REPOSITORY_DESC":"Select an image registry for storing the image to be created. If no image registry is available, you need to create an image registry secret.","TRIGGER_TOKEN":"Trigger Token","INVALID_TRIGGER_TOKEN_DESC":"Invalid token. The token can contain only uppercase letters, lowercase letters, and numbers.","TRIGGER_TOKEN_DESC":"Set a token used to authenticate a client against KubeSphere. You can set a client to automatically trigger image building on KubeSphere over a webhook. The token can contain only uppercase letters, lowercase letters, and numbers.","CODE_RELATIVE_PATH":"Code Relative Path","CODE_RELATIVE_PATH_DESC":"Set the relative path of the code in the code repository. The default path is /.","S2I_ENVIRONMENT_DESC":"Set environment variables to control the runtime behavior of the image.","UPLOAD_ARTIFACT_FILE":"Upload Artifact File","UPLOAD_PERCENT":"Uploaded: {percent}%","UPLOAD_FULLY":"Uploaded: 100%","UPLOAD_FAILED":"Upload failed.","ARTIFACT_FILE_EMPTY_DESC":"Please upload an artifact file.","B2I_DEFAULT_DESC":"Upload an artifact file.","JAR_DESC":"Upload an artifact file in JAR format.","WAR_DESC":"Upload an artifact file in WAR format.","BUILD_ENVIRONMENT":"Build Environment","CODE_REPOSITORY_KEY_NOT_REQUIRED":"The current code repository does not require a key.","FILE_SIZE_VALUE":"File size: {value}","FILE_UPLOADED_TIP":"File uploaded successfully.","WRONG_FILE_EXTENSION_NAME":"The selected file type does not match. Please select the {type} type.","IMAGE_NAME_EMPTY_DESC":"Please enter an image name.","IMAGE_TAG_EMPTY_DESC":"Please enter an image tag.","TARGET_IMAGE_REPOSITORY_EMPTY_DESC":"Please set a target image registry.","REQUESTS_FOR_PUSH_AN_ALARM_Q":"How do I receive alerts if an alerting policy is triggered?","REQUESTS_FOR_PUSH_AN_ALARM_A":"The platform administrator needs to select a notification method and configure the server corresponding to the method.","HOW_TO_SUPRESS_AN_ALARM_Q":"How do I suppress alerts?","HOW_TO_SUPRESS_AN_ALARM_A":"You can set alerting policies at different levels. Each level corresponds to an alerting interval.","SELECT_WORKLOAD_TIP":"Please select at least one workload.","KUBE_NO_AVAILABLE_DATA":"No Data","EDIT_QUOTAS":"Edit Quotas","QUOTA":"Quota","PROJECT_QUOTAS_NOT_SET":"Project Quotas Not Set","PROJECT_QUOTAS_DESC":"Project quotas specify the number of available CPU and memory resources and the maximum number of application resources such as pods, deployments, and services allowed in the project.","DEFAULT_CONTAINER_QUOTAS_NOT_SET":"Default Container Quotas Not Set","DEFAULT_CONTAINER_QUOTAS_DESC":"Default container quotas specify the default CPU request, CPU limit, memory request, and memory limit of containers created in the project.","APPLICATION_RESOURCE_COUNT":"Application Resources","SELECT_RESOURCE_TIP":"Select a resource or enter a resource name","NUMBER_OF_PODS":"Number of pods","NUMBER_OF_DEPLOYMENTS":"Number of deployments","NUMBER_OF_STATEFULSETS":"Number of statefulsets","NUMBER_OF_DAEMONSETS":"Number of daemonsets","NUMBER_OF_JOBS":"Number of jobs","NUMBER_OF_CRONJOBS":"Number of cronjobs","NUMBER_OF_VOLUMES":"Number of persistent volume claims","NUMBER_OF_SERVICES":"Number of services","NUMBER_OF_ROUTES":"Number of ingresses","NUMBER_OF_SECRETS":"Number of secrets","NUMBER_OF_CONFIGMAPS":"Number of configmaps","INSTALLED_APPS":"Installed Apps","RESOURCE_STATUS":"Resource Status","RESOURCE_WARNING_TIPS":"Abnormal {tipName}: {warnNum}","PHYSICAL_RESOURCE_PL":"Physical Resources","CPU_USAGE_TIME":"CPU Usage ({time})","MEMORY_USAGE_TIME":"Memory Usage ({time})","TIPS":"Tips","HOW_TO_INVITE_USERS":"How do I invite users to the current project?","HOW_TO_SET_PROJECT_GATEWAY":"How do I set the project gateway?","TOP_5_FOR_RSC_USAGE":"Top 5 for Resource Usage","TOP_5_FOR_RESOURCE_USAGE":"Top 5 for Resource Usage","SORT_BY_WORKLOAD_CPU_USAGE":"Sort by CPU usage","SORT_BY_WORKLOAD_MEMORY_USAGE_WO_CACHE":"Sort by memory usage","SORT_BY_WORKLOAD_NET_BYTES_TRANSMITTED":"Sort by outbound traffic","SORT_BY_WORKLOAD_NET_BYTES_RECEIVED":"Sort by inbound traffic","PROJECT_SETTINGS":"Project Settings","HOW_TO_USE_QUOTA_Q":"How do I use resource quotas?","HOW_TO_USE_QUOTA_A":"Resource quotas are a mechanism used to limit the resource usage. You can edit project resource quotas and default container quotas by clicking Edit Project.","WHAT_ARE_DEFAULT_CONTAINER_QUOTAS_Q":"What are default container quotas?","WHAT_ARE_DEFAULT_CONTAINER_QUOTAS_A":"Default container quotas specify the default CPU request, CPU limit, memory request, and memory limit of containers created in the project.","PROJECT_BASIC_INFO_DESC":"Basic information provides an overview of the project. You can view the project information and default container quotas.","EDIT_PROJECT_QUOTA":"Edit Project Quota","PROJECT_REMAINING_QUOTAS":"Project Remaining Quotas","WORKSPACE_REMAINING_QUOTAS":"Workspace Remaining Quotas","GPU_TYPE_SCAP":"GPU type","GPU_LIMIT_SCAP":"GPU limit","REQUEST_EXCEED_WORKSPACE":"Resource requests and limits cannot exceed workspace resource limits.","REQUEST_EXCEED_LIMIT":"Resource requests cannot be greater than resource limits.","REQUEST_EXCEED_AVAILABLE_QUOTA":"Insufficient resources.","DELETE_PROJECT_TIP":"Enter the project name {resource} to confirm that you understand the risks of this operation.","MANAGE":"Manage","PROJECT_INFO":"Project Information","EDIT_PROJECT_QUOTAS":"Edit Project Quotas","PROJECT_ROLE_SCAP":"Project role","PROJECT_ROLE_SCAP_PL":"Project roles","PROJECT_MEMBER_SCAP":"Project member","PROJECT_MEMBER_SCAP_PL":"Project members","DEFAULT_CONTAINER_QUOTA_PL":"Default Container Quotas","EDIT_DEFAULT_CONTAINER_QUOTAS":"Edit Default Container Quotas","LIMITS_CPU":"CPU Limit","LIMITS_MEMORY":"Memory Limit","REQUESTS_CPU":"CPU Request","REQUESTS_MEMORY":"Memory Request","PROJECT_QUOTA_PL":"Project Quotas","RESOURCE_TYPE_SCAP":"Resource type","JOBS":"Jobs","VOLUMES":"Volumes","SERVICES":"Services","ROUTES":"Ingresses","SECRETS":"Secrets","PROJECT_GATEWAY_DESC":"Set up and manage the configuration of the external network access gateway and service management in the project.","PROJECT_GATEWAY":"Project Gateway","PROJECT_GATEWAY_EMPTY_DESC":"Please create a project gateway.","ENABLE_GATEWAY_DESC":"Enable the gateway controller to forward traffic to different services based on domain names and paths configured in ingresses.","LOAD_BALANCER_PROVIDER":"Load Balancer Provider","GATEWAY_UPDATING_TIP":"Updating the gateway. Please try again later.","CLUSTER_GATEWAY_GUIDE_DESC":"If the cluster gateway and project gateway both exist, the project gateway cannot be enabled after it is disabled. You are advised to used either the cluster gateway or project gateway.","LOG_COLLECTION":"Log Collection","DISK_LOG_COLLECTION_DESC":"The Log Collection function allows the system to collect container logs saved on volumes and send the logs to standard output.","COLLECT_LOGS_ON_VOLUMES_Q":"How do I collect logs on volumes?","COLLECT_LOGS_ON_VOLUMES_A":"To collect logs on volumes, you need to mount a volume in read and write mode to a container and set the container to export logs to the volume.","COLLECT_LOGS_ON_VOLUMES":"Collect Logs on Volumes","DISABLE_LOG_COLLECTION":"Disable Log Collection","DISABLE_LOG_COLLECTION_TIP":"Are you sure you want to disable log collection? You need to restart the pod replicas to make the change take effect.","LOG_COLLECTION_ENABLED_DESC":"After this function is enabled or disabled, you need to restart the pod replicas to make the change take effect.","DISABLED":"Disabled","ENABLED":"Enabled","NETWORK_ISOLATION_DESC":"By configuring network isolation, users can control traffic between pods within the same workspace and traffic from outside to implement application isolation and enhance application security.","NETWORK_ISOLATION_Q":"How do I use network isolation better?","NETWORK_ISOLATION_Q1":"What are the requirements on the CNI plugin for implementing network isolation?","NETWORK_ISOLATION":"Network Isolation","ENABLE":"Enable","PROJECT_NETWORK_ISOLATION":"Project network isolation","DISABLED_PROJECT_NETWORK_ISOLATION":"Disabled project network isolation","NETWORK_POLICY_EMP_TITLE":"Network Isolation Not Enabled","NETWORK_POLICY_EMP_DESC":"After the project network access is enabled, other projects will be unable to access the project. But you can allow projects, services, and external IP addresses to access this project based on your needs.","INTERNAL_ALLOWLIST":"Internal Allowlist","INTERNAL_ALLOWLIST_TIP":"Add projects and services in the workspace to the allowlist.","INTERNAL_EGRESS_DESC":"Pods in the current project are allowed to access pods of the following services and projects.","INTERNAL_INGRESS_DESC":"Pods in the current project are allowed to be accessed by pods of the following services and projects.","INTERNAL_ALLOWLIST_DESC":"Allow pods in the current project to communicate with pods in other projects of the current workspace.","EMPTY_RESOURCE_DESC":"Please select at least one project or service.","EXTERNAL_ALLOWLIST":"External Allowlist","EXTERNAL_ALLOWLIST_TIP":"Add network segments and ports outside the workspace to the allowlist.","EXTERNAL_ALLOWLIST_DESC":"Allow pods in the current project to communicate with specific network segments and ports outside the workspace.","NETWORK_SEGMENT_EXAMPLE":"Example: 10.0.0.0","PORT_EXAMPLE":"Example: 80","EXTERNAL_EGRESS_DESC":"Pods in the current project are allowed to access the following network segments and ports.","EXTERNAL_INGRESS_DESC":"Pods in the current project are allowed to be accessed by the following network segments and ports.","SELECT_RULE_DIRECTION_TIP":"Please select a traffic direction.","ENTER_VALID_SEGMENT_DESC":"Please enter valid network segment.","ENTER_VALID_PORT_NUMBER_DESC":"Please enter a valid port number.","ADD_ALLOWLIST_ENTRY":"Add Allowlist Entry","EDIT_ALLOWLIST_ENTRY":"Add Allowlist Entry","EXTERNAL_TRAFFIC_DIRECTION_DESC":"Egress indicates the direction from the current project to outside the workspace. Ingress indicates the direction from outside the workspace to the current project.","TRAFFIC_DIRECTION":"Traffic Direction","NETWORK_SEGMENT_DESC":"Set a network segment (CIDR is supported).","EGRESS":"Egress","INGRESS":"Ingress","INTERNAL_TRAFFIC_DIRECTION_DESC":"Egress indicates the direction from the current project to other projects. Ingress indicates the direction from other projects to the current project.","ALLOWLIST_ENTRY":"Allowlist Entry","ALLOWLIST_ENTRY_PL":"Allowlist Entry","ALLOWLIST_ENTRY_DETAIL":"Allowlist Entry Detail","ALLOWLIST_ENTRY_LOW":"allowlist entry","ADD_NEW_NETWORK_SEGMENT":"Add","ADD_NEW_PORT":"Add Port","ADD_NEW_PORT_RANGE":"Add Port Aange","PORT_RANGE":"Port Range","NETWORK_SEGMENT_QUANTITY":"Network Segment Quantity","PORT_QUANTITY":"Port Quantity","ALLOWLIST_ENTRY_EMPTY_DESC":"Create allowlist entry","PROJECT_MEMBER":"Project Member","PROJECT_MEMBER_PL":"Project Members","PROJECT_MEMBER_DESC":"Project members can view or manage project resources. The project administrator can invite members who belong to the workspace to the project and manage project members.","REMOVE":"Remove","INVITE_MEMBER_DESC":"Invite members of the current workspace to the project.","PROJECT_MEMBER_EMPTY_DESC":"Please invite a member of the current workspace to the project.","INVITE_MEMBER_SEARCH_PLACEHOLDER":"Enter a username to invite members","ASSIGN_ROLE":"Assign Role","PERMISSION_PL":"Permissions","AUTHORIZED_USER_PL":"Authorized Users","PROJECT_ROLE_PL":"Project Roles","PROJECT_ROLE_DESC":"Project roles define the permissions of project members.","ROLE_PROJECT_ADMIN":"Manage all resources in the project.","ROLE_PROJECT_REGULAR":"Manage resources other than users and roles in the project.","ROLE_PROJECT_VIEWER":"View all resources in the project.","ROLE_PROJECT_OPERATOR":"Manage resources other than users and roles in the project.","PROJECT_ROLE_EMPTY_DESC":"Please create a project role.","PERMIGROUP_APPLICATION_WORKLOADS":"Application Workloads","PERMISSION_APPLICATION_WORKLOADS_VIEW":"Application Workload Viewing","PERMISSION_APPLICATION_WORKLOADS_VIEW_DESC":"View resources such as applications, services, workloads, jobs, grayscale release tasks, and image builders in the project.","PERMISSION_APPLICATION_WORKLOADS_MANAGEMENT":"Application Workload Management","PERMISSION_APPLICATION_WORKLOADS_MANAGEMENT_DESC":"Create, edit, and delete resources such as applications, services, workloads, jobs, grayscale release tasks, and image builders in the project.","PERMIGROUP_STORAGE_MANAGEMENT":"Storage","PERMISSION_VOLUME_SNAPSHOTS_VIEW":"Volume Snapshot Viewing","PERMISSION_VOLUME_SNAPSHOTS_VIEW_DESC":"View volume snapshots in the project.","PERMISSION_VOLUME_SNAPSHOTS_MANAGEMENT":"Volume Snapshot Management","PERMISSION_VOLUME_SNAPSHOTS_MANAGEMENT_DESC":"Create, edit, and delete volume snapshots in the project.","PERMISSION_VOLUMES_VIEW":"Persistent Volume Claim Viewing","PERMISSION_VOLUMES_VIEW_DESC":"View persistent volume claims in the project.","PERMISSION_VOLUMES_MANAGEMENT":"Persistent Volume Claim Management","PERMISSION_VOLUMES_MANAGEMENT_DESC":"Create, edit, and delete persistent volume claims in the project.","PERMIGROUP_CONFIGURATION_CENTER":"Configuration","PERMISSION_CONFIGMAPS_VIEW":"Configmap Viewing","PERMISSION_CONFIGMAPS_VIEW_DESC":"View configmaps in the project.","PERMISSION_CONFIGMAPS_MANAGEMENT":"Configmap Management","PERMISSION_CONFIGMAPS_MANAGEMENT_DESC":"Create, edit, and delete configmaps in the project.","PERMISSION_SECRETS_VIEW":"Secret Viewing","PERMISSION_SECRETS_VIEW_DESC":"View secrets in the project.","PERMISSION_SECRETS_MANAGEMENT":"Secret Management","PERMISSION_SECRETS_MANAGEMENT_DESC":"Create, edit, and delete secrets in the project.","PERMISSION_SERVICEACCOUNT_VIEW":"Service Account Viewing","PERMISSION_SERVICEACCOUNT_VIEW_DESC":"View service accounts in the project.","PERMISSION_SERVICEACCOUNT_MANAGEMENT":"Service Account Management","PERMISSION_SERVICEACCOUNT_MANAGEMENT_DESC":"Create, edit, and delete service accounts in the project.","PERMIGROUP_MONITORING_ALERTING":"Monitoring & Alerting","PERMISSION_ALERTING_MESSAGES_VIEW":"Alert Viewing","PERMISSION_ALERTING_MESSAGES_VIEW_DESC":"View alerts in the project.","PERMISSION_ALERTING_MESSAGES_MANAGEMENT":"Alert Management","PERMISSION_ALERTING_MESSAGES_MANAGEMENT_DESC":"Comment on and delete alerts in the project.","PERMISSION_ALERTING_POLICIES_VIEW":"Rule Group Viewing","PERMISSION_ALERTING_POLICIES_VIEW_DESC":"View rule groups in the project.","PERMISSION_ALERTING_POLICIES_MANAGEMENT":"Rule Group Management","PERMISSION_ALERTING_POLICIES_MANAGEMENT_DESC":"Create, edit, and delete rule groups in the project.","PERMISSION_CUSTOM_MONITORING_VIEW":"Custom Monitoring Viewing","PERMISSION_CUSTOM_MONITORING_VIEW_DESC":"View custom monitoring dashboards in the project.","PERMISSION_CUSTOM_MONITORING_MANAGEMENT":"Custom Monitoring Management","PERMISSION_CUSTOM_MONITORING_MANAGEMENT_DESC":"Create, edit, and delete custom monitoring dashboards in the project.","PERMISSION_PROJECT_MEMBERS_VIEW":"Member Viewing","PERMISSION_PROJECT_MEMBERS_VIEW_DESC":"View project members.","PERMISSION_PROJECT_MEMBERS_MANAGEMENT":"Member Management","PERMISSION_PROJECT_MEMBERS_MANAGEMENT_DESC":"Invite, edit, and remove project members.","PERMISSION_PROJECT_ROLES_VIEW":"Role Viewing","PERMISSION_PROJECT_ROLES_VIEW_DESC":"View project roles.","PERMISSION_PROJECT_ROLES_MANAGEMENT":"Role Management","PERMISSION_PROJECT_ROLES_MANAGEMENT_DESC":"Create, edit, and delete project roles except preset roles.","PERMIGROUP_PROJECT_SETTINGS":"Project Settings","PERMISSION_PROJECT_SETTINGS":"Project Settings Management","PERMISSION_PROJECT_SETTINGS_DESC":"Manage project settings including project basic information, external access settings, network policies, resource quotas, and log collection settings.","DELETE_ROLE":"Delete Role","DELETE_ROLE_TIP":"Are you sure you want to delete the role {resource}?","DELETE_ROLE_USER_TIP_PL":"The role is authorized to {count} users. Please delete the users or change the roles of the user first.","DELETE_ROLE_USER_TIP":"The role is authorized to {count} user. Please delete the user or change the role of the user first.","DELETE_ROLE_DEPARTMENT_TIP_PL":"The role is authorized to {count} departments. Please delete the departments or change the roles of the departments first.","DELETE_ROLE_DEPARTMENT_TIP":"The role is authorized to {count} department. Please delete the department or change the role of the department first.","CLONE_VOLUME":"Clone Volume","CLONE":"Clone","CREATE_SNAPSHOT":"Create Snapshot","SNAPSHOT_EMPTY_TIP":"Please select a volume snapshot class.","EXPAND_VOLUME":"Expand Volume","EXPAND":"Expand","PROVISIONER":"Provisioner","AVAILABLE_CAPACITY":"Available capacity","POD_IP_ADDRESS_SCAP":"Pod IP address","TOTAL_CAPACITY":"Total capacity","TECHNICAL_SUPPORT":"Technical Support","LEARN_MORE_CONTACT_US":"For more cloud-native technology empowerment services, please Contact Us.","COMMUNITY_SUPPORT":"Community Support","FORUM":"Forum","TICKET_SUPPORT":"Ticket Support","TICKET_SUPPORT_DESC":"Professional cloud-native development team and container service delivery team with more than 10 years of public and private cloud support experience and in-depth understanding of industries, providing comprehensive technical support including installation, troubleshooting, recovery, and other professional services.","CONTACT_US":"Contact Us","KUBESPHERE_ENTERPRISE_CAPTION":"KubeSphere Enterprise","KUBE_SPHERE_ENTERPRISE_DESC":"KubeSphere Enterprise is an enterprise-grade container platform developed by QingCloud based on the open-source KubeSphere platform. Compared with the open-source edition, KubeSphere Enterprise enhances capabilities for enterprise quantitative operations, large-scale cluster O&M, and security hardening, and extends multiple key features such as microservice governance and app management. The KubeSphere Enterprise Extension Marketplace provides enterprise-grade extensions to meet requirements of various business scenarios, with expert solutions and technical support from QingCloud.","KSE_FEATURE_1":"Empowers enterprise digital transformation towards quantitative operations","KSE_FEATURE_2":"Enhances large-scale federated cluster O&M","KSE_FEATURE_3":"Provides full lifecycle security protection","KSE_PLATFORM_VERSION":"Platform Version: {version}","KUBESPHERE_CLOUD_CAPTION":"KubeSphere Cloud","KSC_FEATURE_BACKUP":"KubeSphere Backup","KSC_FEATURE_BACKUP_APP_DESC":"Application-level data protection","KSC_FEATURE_BACKUP_DATA_DESC":"Assured data consistency","KSC_FEATURE_BACKUP_CLOUD_DESC":"Unified management across clouds","KSC_FEATURE_INSPECTION":"KubeSphere Inspection","KSC_FEATURE_INSPECTION_VULN_DESC":"Comprehensive vulnerability scanning","KSC_FEATURE_INSPECTION_SECURITY_DESC":"System security hardening","KSC_FEATURE_INSPECTION_BEST_DESC":"Best practice guidance","KSC_FEATURE_LIGHTWEIGHT":"KubeSphere Lite","KSC_FEATURE_LIGHTWEIGHT_START_DESC":"Cluster setup in seconds","KSC_FEATURE_LIGHTWEIGHT_KS_DESC":"Out-of-the-box KubeSphere cluster","KSC_FEATURE_LIGHTWEIGHT_TEST_DESC":"Ideal for testing and demonstration","START_NOW":"Start Now","START_REAL_TIME_AUDIT_LOG":"Pause real-time audit logs","STOP_REAL_TIME_AUDIT_LOG":"View real-time audit logs","TIME_S":"{num, plural, =1 {1 second} other {# seconds}}","AUDIT_LOG_COUNT":"Audit Logs","RESOURCE_NAME_AND_TYPE":"Resource Type & Name","VERB":"Verb","STATUS_CODE":"Status Code","SUBRESOURCE":"Subresource","TOTAL_AUDITING_TODAY":"A total of {auditing} audit log entries have been collected today.","NO_AUDIT_LOG_TODAY":"No Audit Log Collected Today","AUDIT_LOG_TREND_LAST_TWELVE_HOURS":"Audit log trend in the last 12 hours","START_TIME_VALUE":"Start Time: {value}","NO_DATA_AUTHORIZED":"No Data Authorized","NO_DATA_AUTHORIZED_DESC":"Please contact an administrator to obtain data authorization.","TIME_RANGE_LAST":"Time range: last {value}","TIME_RANGE_RANGE":"Time range: {startTime} – {endTime}","AUDIT_LOGS_12H":"Audit logs in the last 12 hours","AUDIT_LOG_WORKSPACE_TIP":"Enter a workspace name to search for audit logs.","AUDIT_LOG_PROJECT_TIP":"Enter a project name to search for audit logs.","AUDIT_LOG_RESOURCE_NAME_TIP":"Enter a resource name to search for audit logs.","AUDIT_LOG_RESOURCE_TYPE_TIP":"Enter a resource type to search for audit logs.","AUDIT_LOG_VERB_TIP":"Enter a verb to search for audit logs.","AUDIT_LOG_STATUS_CODE_TIP":"Enter a status code to search for audit logs.","AUDIT_LOG_OPERATOR_TIP":"Enter an operator to search for audit logs.","AUDIT_LOG_SOURCE_IP_ADDRESS_TIP":"Enter a source IP address to search for audit logs.","SEARCH_BY_VERB":"Search by Verb","SEARCH_BY_STATUS_CODE":"Search by Status Code","SEARCH_BY_OPERATOR":"Search by Operator","SEARCH_BY_SOURCE_IP_ADDRESS":"Search by Source IP Address","ENABLE_AUDIT_LOG_COLLECTION_DESC":"You need to enable audit log collection if it is disabled.","KEYWORD":"Keyword","EXACT_QUERY":"Exact Query","FUZZY_QUERY":"Fuzzy Query","TIME_TOPOLOGY":"Time Topology ","SEARCH_RESULTS":"Search Results","DISPLAY":"Display","HIDE":"Hide","STOP_REAL_TIME_CONTAINER_LOG":"Pause real-time container logs","START_REAL_TIME_CONTAINER_LOG":"View real-time container logs","REFRESH_RATE_COLON":"Refresh Rate: ","CONTAINER_LOG_COUNT":"Container Logs","LOG":"Log","CONTAINER_LOG_SOURCE":"Container Log Source","TOTAL_LOGS_TODAY":"A total of {logs} log entries from {containers} containers have been collected today.","WORKLOAD":"Workload","TIME_RANGE_SCAP":"Time range","QUERYING_RULES":"Querying Rules","CONTAINER_LOGS_12H":"Container logs in the last 12 hours","CONTAINER_LOG_KEYWORD_TIP":"Enter a keyword to search for container logs.","CONTAINER_LOG_PROJECT_TIP":"Enter a project name to search for container logs.","CONTAINER_LOG_WORKLOAD_TIP":"Enter a workload name to search for container logs.","CONTAINER_LOG_CONTAINER_TIP":"Enter a container name to search for container logs.","CONTAINER_LOG_POD_TIP":"Enter a pod name to search for container logs.","SEARCH_BY_KEYWORD":"Search by Keyword","SEARCH_BY_PROJECT":"Search by Project","SEARCH_BY_WORKLOAD":"Search by Workload","SEARCH_BY_POD":"Search by Pod","SEARCH_BY_CONTAINER":"Search by Container","TIME_RANGE":"Time Range","DOWNLOAD":"Download","KUBECONFIG_TIP":"\n

    Configuration Method

    \n

    Configure the access information about the current cluster by using kubeconfig file.

    \n ","HIDE_HELP_INFORMATION":"Hide Help Information","KUBECTL_TIP":"\n

    Command Tips

    \n

    You can refer to the following kubestl commands.

    \n

    Customized Output

    \n
      \n
    • View more information about a pod
    • \n
    \n

    kubectl get pod <pod-name> -o wide

    \n
      \n
    • View pod details in YAML format
    • \n
    \n

    kubectl get pod <pod-name> -o yaml

    \n

    Operations

    \n

    Create Resources

    \n
      \n
    • Create a service by using a YAML configuration file
    • \n
    \n

    kubectl create -f my-service.yaml

    \n
      \n
    • Create resources by using all YAML, YML, and JSON files in a directory
    • \n
    \n

    kubectl create -f <directory>

    \n

    View Resources

    \n
      \n
    • View all pods
    • \n
    \n

    kubectl get pods

    \n
      \n
    • View all services
    • \n
    \n

    kubectl get services

    \n

    View Resource Details

    \n
      \n
    • View node details
    • \n
    \n

    kubectl describe nodes <node-name>

    \n
      \n
    • View pod details
    • \n
    \n

    kubectl describe pods <pod-name>

    \n ","OPEN_TERMINAL_DESC":"Ensure that the web socket settings on the proxy server is correct.","TOOLBOX":"Toolbox","TOOLBOX_DESC":"Provides cluster analysis and control tools.","DETAIL_NOT_FOUND_DESC":"No related resources were found. Return to {title}","ANALYSIS_TOOLS":"Analysis Tools","VIEW_KUBE_CONFIG":"View or download the kubeconfig file of the current cluster.","CONTAINER_LOG_SEARCH_DESC":"A multi-dimensional container log search tool for resources.","RESOURCE_EVENT_SEARCH_DESC":"A multi-dimensional resource event search tool for resources.","AUDIT_LOG_DESC":"A multi-dimensional audit log search tool for resources.","RESOURCE_CONSUMPTION_STATISTICS":"Resource Consumption Statistics","METERING_AND_BILLING_DESC":"View resource consumption of clusters and workspaces.","CONTAINER_LOG_SEARCH":"Container Log Search","RESOURCE_EVENT_SEARCH":"Resource Event Search","AUDIT_LOG_SEARCH":"Audit Log Search","CONTROL_TOOL":"Control Tool","TOOLBOX_SHIFT_TIPS":" 👻 Press \"shift+left click\" to open kubectl in a new browser window.","THIRD_PARTY_TOOLS":"Third-Party Tools","METERING_NOT_ENABLED_DESC":"This module is not enabled.","NO_METER_DATA":"No resource consumption data is found.","EXPORT_BILL":"Export consumption records in CSV file format.","TOTAL_COST":"Total Cost ({unit})","PRICE_CONFIG_DESC":"The price information has not been configured.","METER_CPU_USAGE":"CPU Usage","METER_MEMORY_USAGE":"Memory Usage","METER_VOLUME_USAGE":"Volume Usage","METER_NET_RECEIVED_USAGE":"Inbound Traffic Usage","METER_NET_TRANSMITTED_USAGE":"Outbound Traffic Usage","NET_RECEIVED":"Inbound Traffic","NET_TRANSMITTED":"Outbound Traffic","COMPOSING_APP":"Composed app","CLUSTER_NODE_SCAP":"Cluster node","POD_SCAP":"Pod","APP_TEMPLATE_SCAP":"App template","COMPOSING_APP_SCAP":"Composed app","DEPLOYMENT_SCAP":"Deployment","STATEFULSET_SCAP":"Statefulset","DAEMONSET_SCAP":"Daemonset","WORKSPACE_SCAP":"Workspace","CLUSTER_SCAP":"Cluster","PROJECT_SCAP":"Project","SERVICE_SCAP":"Service","HOST_CLUSTER_SCAP":"Host cluster","MEMBER_CLUSTER_SCAP":"Member cluster","CONSUMPTION_HISTORY":"Consumption History","BILLING_CYCLE":"Billing Cycle","CONSUMER_TRENDS":"Cost Trends","AVERAGE_USAGE":"Average Usage","TOTAL_CONSUMPTION":"Total Consumption","TOTAL_CONSUMPTION_Q":"What is total consumption?","TOTAL_CONSUMPTION_A":"Total consumption is the sum of resource usage per sampling point in the current billing cycle.","TIMERANGE_MORE_30DAY_MSG":"If the interval between the end time and the start time is greater than 30 days, the minimum sampling interval should be 1 day.","MAXIMUM_USAGE":"Maximum Usage","MINIMUM_USAGE":"Minimum Usage","RESOURCE_TYPE":"Resource Type","CURRRENT_RESOURCE_CONSUMPTION":"Current Consumption","METER_RESOURCE_DESC":"Resource consumption in 1 h","ADD_CLUSTER_FOR_WORKSPACE":"Please authorize a cluster to this workspace.","RESOURCE_CONSUMPTION_DESC":"Select a category to view the resource consumption information.","CLUSTER_CONSUMPTION":"Cluster Resource Consumption","CLUSTER_CONSUMPTION_DESC":"View the consumption information of cluster resources.","CLUSTER_RESOURCE_CONSUMPTION_DESC":"Consumption of resources such as CPU, memory, and volumes of clusters","CLUSTER_NODE_CONSUMPTION_DESC":"Consumption of resources such as CPU, memory, and volumes of cluster nodes","CLUSTER_POD_CONSUMPTION_DESC":"Consumption of CPU and memory of pods in nodes","CURRENT_RESOURCE_CONSUMPTION":"Current Resource Consumption","VIEW":"View","CONSUMPTION_SINCE_CREATION":"has consumed the following resources since it is created.","PRICE":"Price","WORKSPACE_CONSUMPTION":"Workspace Resource Consumption","WORKSPACE_CONSUMPTION_DESC":"View the consumption information of workspace resources.","WORKSPACE_RESOURCE_CONSUMPTION_DESC":"Consumption of resources such as CPU, memory, and volumes of workspaces","WORKSPACE_PROJECT_CONSUMPTION_DESC":"Consumption of resources such as CPU, memory, and volumes of projects in workspaces","PROJECT_CONSUMPTION_DESC":"Consumption of CPU and memory of apps, services and pods in projects","STOP_REAL_TIME_RESOURCE_EVENT":"Pause real-time resource events","START_REAL_TIME_RESOURCE_EVENT":"View real-time resource events","RESOURCE_EVENT_COUNT":"Resource Events","METADATA":"Metadata","EARLIEST_START_TIME":"Earliest Start Time","LATEST_START_TIME":"Latest Start Time","TOTAL_EVENTS_TODAY":"A total of {events} resource events were collected today.","NO_RESOURCE_EVENTS_TODAY":"No Resource Events Collected Today","RESOURCE_EVENTS_12H":"Resource events in the last 12 hours","RESOURCE_EVENT_WORKSPACE_TIP":"Enter a workspace name to search for container logs.","RESOURCE_EVENT_PROJECT_TIP":"Enter a project name to search for container logs.","RESOURCE_EVENT_RESOURCE_TYPE_TIP":"Enter a resource type to search for container logs.","RESOURCE_EVENT_RESOURCE_NAME_TIP":"Enter a resource name to search for container logs.","RESOURCE_EVENT_MESSAGE_TIP":"Enter a message to search for resource events.","RESOURCE_EVENT_CATEGORY_TIP":"Enter a category name to search for container logs.","RESOURCE_EVENT_REASON_TIP":"Enter a reason to search for container logs.","SEARCH_BY_MESSAGE":"Search by Message","SEARCH_BY_WORKSPACE":"Search by Workspace","SEARCH_BY_RESOURCE_TYPE":"Search by Resource Type","SEARCH_BY_RESOURCE_NAME":"Search by Resource Name","SEARCH_BY_REASON":"Search by Reason","SEARCH_BY_CATEGORY":"Search by Category","EMAIL_DESC":"The email address can be used to log in to the KubeSphere web console.","LANGUAGE":"Language","USER_SETTINGS":"User Settings","CLOSE":"Close","CONTENT_NOT_SAVED_TIPS":"content has been modified but not saved","SAVE_EDIT_HINTS":"please confirm that the modified content is correct, you can save the settings or cancel the settings.","PASSWORD_SETTINGS":"Password Settings","PASSWORD_EMPTY_DESC":"Please set a password.","CURRENT_PASSWORD":"Current Password","ENTER_CURRENT_PASSWORD_TIP":"Please enter the current password.","CONFIRM_PASSWORD":"Confirm Password","PASSWORD_NOT_SAME_DESC":"New Password and Confirm Password must be the same.","ENTER_CURRENT_PASSWORD_DESC":"To change the password, you must first enter the current password.","WORKBENCH":"Workbench","DASHBOARD_TITLE":"Hello {username}","LAST_LOGIN_TIME":"Last login: ","USER_DASHBOARD_EMPTY_TITLE":"You do not belong to any workspace.","USER_DASHBOARD_EMPTY_DESC":"Please contact a workspace administrator to invite you to join a workspace.","LAST_UPDATE_TIME":"Last update time","PLATFORM_VERSION":"Platform version","PLATFORM_RESOURCES":"Platform Resources","APP_TEMPLATE_SCAP_PL":"App templates","RECENT_ACCESS":"Recent Access","MULTI_CLUSTER_DEPLOYMENT":"Multi-cluster Project","WORKBENCH_PROJECT":"Project","WORKBENCH_WORKSPACE":"Workspace","WORKBENCH_DEVOPS":"DevOps project","WORKBENCH_MULTI_CLUSTER_PROJECT":"Multi-cluster project","WORKBENCH_CLUSTER":"Cluster","NOT_FOUND_DESC":"The resource was not found. The system will return to Workbench in {time}s.","MULTI_CLUSTER_PROJECT_TIP":"The project is deployed across multiple clusters.","NO_HISTORY_TITLE":"No Recently Accessed Resource Found","NO_HISTORY_DESC":"You can access platform resources.","ADD_TO_QUICK_ACCESS":"Add to Quick Access","CANCEL_QUICK_ACCESS":"Cancel Quick Access","MESSAGE":"Message","APP_REPOSITORY_PL":"App Repositories","APP_REPO":"App Repositories","HOW_TO_USE_APP_REPO_Q":"How do I use an app repository?","HOW_TO_USE_APP_REPO_A":"You need to go to your project in the workspace. When you deploy a new app, select From App Template and then choose an app repository in the drop-down list to deploy an app in the repository.","APP_REPO_DESC":"An app repository is a repository used to store application templates. You can add an app repository to deploy and manage its applications.","APP_REPOSITORY_EMPTY_DESC":"Please add an app repository.","APP_REPO_STATUS_SUCCESSFUL":"Successful","APP_REPO_STATUS_FAILED":"Failed","APP_REPO_STATUS_SYNCING":"Syncing","ADD_APP_REPO":"Add App Repository","VALIDATE":"Validate","SYNC_INTERVAL":"Sync Interval","SYNC_INTERVAL_DESC":"Set a synchronization interval. The value range is 3 minutes to 24 hours. The default value 0 indicates no synchronization.","SYNC_PERIOD_EMPTY_DESC":"Please set a synchronization interval.","SYNC_INTERVAL_INVALID":"Invalid value. Please enter 0 or a positive integer. ","APP_REPO_URL_DESC":"The URL needs to be validated before you add or edit an app repository.","SYNC_INTERVAL_TIP":"The value range is 3 minutes to 24 hours. Please enter a valid value.","SECONDS":"Seconds","MINUTES":"Minutes","HOURS":"Hours","UNRECOGNIZED_URL":"Unrecognized URL.","INVALID_CREDENTIAL_FORMAT":"Invalid credential format.","MISSING_ACCESS_KEY_ID":"Missing access key ID.","MISSING_SECRET_ACCESS_KEY":"Missing secret access key.","S_THREE_ACCESS_DENIED":"S3 access denied.","INVALID_URL_FORMAT":"Invalid URL format.","INVALID_HTTP_SCHEME":"Invalid HTTP scheme.","HTTP_ACCESS_DENIED":"HTTP access denied.","INVALID_HTTPS_SCHEME":"Invalid HTTPS scheme.","INVALID_TYPE":"Invalid type.","INVALID_PROVIDERS":"Invalid providers.","INVALID_REPO_URL":"Invalid repository URL.","INVALID_S_THREE_SCHEME":"Invalid S3 scheme.","ACCESS_KEY_ID":"Access Key ID","SECRET_ACCESS_KEY":"Secret Access Key","EDIT_APP_REPO":"Edit App Repository","INVALID_URL_DESC":"Invalid URL.","VALID_URL_DESC":"Valid URL.","APP_REPOSITORY":"App Repository","APP_REPOSITORY_LOW":"app repository","MODIFY_SUCCESSFUL":"Modified successfully.","SERVICE_PROVIDER_WEBSITE_DESC":"Official website address of the service provider.","WRONG_ADDRESS_TIP":"Incorrect address format. Please enter a correct address.","APP_NAME_DESC":"The name can contain any characters and the maximum length is 20 characters.","APP_DESCRIPTION_DESC":"The description can contain any characters and the maximum length is 120 characters.","APP_ICON_FORMAT":"Format: PNG or JPG","APP_ICON_SIZE":"Size: 96 x 96 pixels","CHOOSE_APP_CATEGORY_DESC":"Select a category for the app.","EDIT_APP_DESC":"Edit the basic information of the app template.","ICON":"Icon","SERVICE_PROVIDER_WEBSITE_TCAP":"Service Provider Website","START_EDITING":"Start editing...","SCREENSHOTS_COLON":"Screenshots: ","DELETE_ALL":"Delete All","ADD_VERSION_SUCCESSFUL":"The version was added successfully.","UPLOAD_PACKAGE_OK_NOTE":"The version already exists. Please upload another version.","UPLOAD_NEW_VERSION":"Upload Version","UPLOAD_NEW_VERSION_DESC":"Upload a new version of the app template.","DELETE_APP_TEMPLATE_DESC":"Enter the app template name {resource} to confirm that you understand the risks of this operation.","DELETE_APP_TEMPLATE_VERSIONS_DESC":"Enter the app template name {resource} to confirm that you understand the risks of this operation. Before deleting the app template, you must delete all versions of the template.","APP_TEMPLATE_LOW":"app template","APP_STATUS_SUBMITTED":"Submitted","APP_STATUS_NOT_SUBMITTED":"Not submitted","VERSION_INFO":"Version Information","INSTALL":"Install","SUBMIT_FOR_REVIEW":"Submit for Review","DOWNLOAD_SUCCESSFUL":"Downloaded successfully.","VERSION_DELETE_TIP":"Are you sure you want to delete the version {name}?","VERSION_SUBMIT_TIP":"Are you sure you want to submit the version {name} for release?","VERSION_CANCEL_TIP":"Are you sure you want to cancel the submission of the version {name}?","VERSION_RELEASE_TIP":"Users can view and deploy the version {name} in the App Store after it is released. Are you sure you want to release it?","VERSION_SUSPEND_TIP":"The version {name} will not be displayed in the App Store after it is suspended. Are you sure you want to suspend it?","VERSION_RECOVER_TIP":"The version {name} will be displayed in the App Store after it is recovered. Are you sure you want to recover it?","UPDATE_TIME_SCAP":"Update time","VIEW_IN_STORE":"View in Store","UPLOAD_AGAIN_TIP":"An error occurred. Please try again.","ENTER_VERSION_NUMBER_TIP":"Please enter a version number.","SUBMIT_REVIEW_DESC":"Submit the app template for review before releasing it to the App Store.","APP_LEARN_MORE":"Learn More","INVALID_VERSION_TIP":"Please enter a correct version number.","TEST_STEPS":"Test Steps","VERSION_SUBMIT_TEST_STEPS":"1. All dependent charts have been submitted.
    2. The static analysis has been passed (helm lint).
    3. The app can be started using default values (helm install). All pods are in running state and all services have at least one endpoint.
    4. The images used have no security vulnerabilities.
    5. Upgrade is supported.
    6. Custom application configuration is supported.
    7. Do not use the alpha features of Kubernetes.
    8. Detailed documentation is provided, including app introduction, prereauisites, and custom parameter configurations.
    ","VERSION_SUBMIT_NOTE":"Please make sure your app has met the following requirements before submission:","UPDATE_LOG_DESC":"Enter detailed information about the app updates.","SUBMIT_SUCCESSFUL":"Submitted successfully.","CANCEL_SUCCESSFUL":"Canceled successfully.","APP_INSTANCES":"App Instances","APP_TEMPLATE_PL":"App Templates","APPS_MANAGEMENT":"App Management","UPLOAD_TEMPLATE":"Upload Template","APP_TEMPLATE_DESC":"KubeSphere provides full lifecycle management for apps. You can upload or create new app templates and test them quickly. In addition, you can publish your apps to the App Store so that other users can deploy with one click.","DEVELOP_APP_DESC":"You can upload Helm charts or use the resource orchestration tool provided by KubeSphere to develop app templates.","DEVELOP_APP_TITLE":"How do I develop app templates?","HOW_PUBLISH_APP_TITLE":"How do I release apps to the App Store?","HOW_PUBLISH_APP_DESC":"You can upload Helm charts as app templates to workspaces. The apps will be released to the App Store after they are approved.","APP_STATUS_ACTIVE":"Released","APP_STATUS_DRAFT":"Unreleased","APP_STATUS_SUSPENDING":"Suspending","APP_TEMPLATE_EMPTY_DESC":"Please create an app template.","LATEST_VERSION":"Latest Version","CREATE_APP_TEMPLATE":"Create App Template","CREATE_APP_TEMPLATE_DESC":"The lightweight, portable, and self-contained software packaging technology enables applications to run almost anywhere in the same way.","APP_CREATE_GUIDE":"See the development guide Helm Specifications.","UPLOAD":"Upload","UPLOAD_HELM_TITLE":"Upload Helm Chart","UPLOAD_HELM_CHART_DESC":"Upload an existing Helm chart.","HELM_CHART_FORMAT_DESC":"Supports tar.gz and tgz formats.","UPLOAD_ICON":"Upload Icon","UPLOAD_SUCCESSFUL":"Uploaded successfully.","UPLOADING":"Uploading","FILE_MAX_SIZE_ICON":"The maximum size of the icon is 96 x 96 pixels.","FILE_MAX_SCREENSHOTS":"The snapshot size cannot exceed 2 MB.","APP_ICON_NOTE":"Upload a JPG or PNG image of 96 x 96 pixels.","MISS_FILE_NOTE":"The file {file} was not found.","LICENSE_FILE_DESC":"License agreement in text format.","CHART_FILE_DESC":"YAML file that describes basic information about the chart such as the name and version.","README_FILE_DESC":"App introduction.","REQUIREMENTS_FILE_DESC":"File that describes dependencies of the chart.","VALUES_FILE_DESC":"Default configuration file of the chart.","CHARTS_FILE_DESC":"Directory that contains dependencies of the chart.","TEMPLATES_FILE_DESC":"Directory that contains deployment template files.","NOTES_FILE_DESC":"User instructions.","INCORRECT_FILE":"Incorrect file? ","TRY_AGAIN":"Try Again","FILE_MAX_ICON_DESC":"The icon size should not exceed 20 KB. Please try again.","HOMEPAGE":"Homepage","OPTIONAL":"Optional","DEVOPS_TIP_GITOPS_Q":"How do I get started with DevOps?","DEVOPS_TIP_GITOPS_A":"You can start using DevOps by creating a pipeline that is associated with the code repository and deploying steps with Kubernetes.","DEVOPS_TIP_TYPE_Q":"Which code repositories are supported by pipelines?","DEVOPS_TIP_TYPE_A":"Pipelines support code repositories of Git, GitHub, Gitlab, SVN, and Bitbucket.","DEVOPS_PROJECT_EMPTY_DESC":"Please create a DevOps project.","CREATE_DEVOPS_PROJECT":"Create DevOps Project","DEVOPS_PROJECT_CREATE_DESC":"DevOps is a separate namespace that defines a set of pipelines. Users can group their pipelines themselves (for example, project type and organization type).","DEVOPS_BASEINFO_DESC":"Please set the basic information of the DevOps project","PATTERN_NAME_INVALID_TIP":"Invalid name. The name can contain only lowercase letters, numbers, and hyphens (-).","NO_DEVOPS_INSTALL":"DevOps not installed","DEVOPS_ADMIN_DESC":"Select a project member as the project administrator.","DELETE_MULTIPLE_DEVOPS_PROJECTS":"Delete Multiple DevOps Projects","DELETE_DEVOPS_PROJECT":"Delete DevOps Project","DELETE_DEVOPS_PROJECT_TIP":"Enter the DevOps project name {resource} to confirm that you understand the risks of this operation.","DELETE_DEVOPS_PROJECT_TIP_PL":"Enter the DevOps project names {resource} to confirm that you understand the risks of this operation.","HOW_TO_APPLY_MORE_CLUSTER_Q":"How do I apply for more clusters for the workspace?","HOW_TO_APPLY_MORE_CLUSTER_A":"Contact the platform or cluster administrator to apply for more clusters.","OVERVIEW":"Overview","WORKSPACE_OVERVIEW_DESC":"View the resource status of the workspace.","ROLE_PL":"Roles","PHYSICAL_RESOURCES":"Physical Resources","CRONJOB":"Cronjob","CLUSTER_VALUE":"Cluster: {value}","SORT_BY_WORKSPACE_MEMORY_USAGE":"Sort by memory usage","SORT_BY_WORKSPACE_MEMORY_USAGE_WO_CACHE":"Sort by memory usage","SORT_BY_WORKSPACE_POD_COUNT":"Sort by pod quota usage (%)","SORT_BY_WORKSPACE_CPU_USAGE":"Sort by CPU usage","SORT_BY_WORKSPACE_NET_BYTES_TRANSMITTED":"Sort by outbound traffic","SORT_BY_WORKSPACE_NET_BYTES_RECEIVED":"Sort by inbound traffic","PROJECT_EMPTY_DESC":"Please create a project.","CREATE_PROJECT":"Create Project","CREATE_MULTI_CLUSTER_PROJECT":"Create Multi-cluster Project","CREATE_MULTI_CLUSTER_PROJECT_DESC":"A multi-cluster project runs across different clusters, which helps you to build a container environment for rapid iteration of applications and achieve high availability.","MULTI_CLUSTER_PROJECT_PL":"Multi-cluster Projects","FED_HOST_NAMESPACE_TIP":"Do not change resources in this project because it is related to a multi-cluster project.","MULTI_CLUSTER_PROJECT":"Multi-cluster Project","PROJECT_NAME_EXISTS_IN_HOST":"The project name already exists in the host cluster. Please enter another project name.","SELECT_CLUSTER_DESC":"Select the cluster in which the project is to be created.","CLUSTER_EMPTY_DESC":"Please select a cluster.","PROJECT_NAME_EXISTS_IN_CLUSTER":"The project name already exists in the {cluster} cluster. Please enter another project name.","PROJECT_CLUSTER_SETTINGS_DESC":"Select at least one cluster for the project. If you select multiple clusters, a project with the same name will be created in the host cluster.","FEDPROJECT_CANNOT_ADD_CLUSTER":"No cluster is available.","WORKSPACE_SETTINGS":"Workspace Settings","WORKSPACE_BASIC_INFO_DESC":"Basic information provides the overview of the workspace. You can view the basic information of the workspace.","WORKSPACE_BASE_INFO_Q1":"How do I apply for more clusters for the workspace?","WORKSPACE_BASE_INFO_A1":"Contact the platform or cluster administrator to apply for more clusters.","WORKSPACE_INFO":"Workspace Information","WORKSPACE_MEMBER_TCAP":"Workspace member","WORKSPACE_MEMBER_TCAP_PL":"Workspace members","WS_MEMBER_SCAP":"Workspace member","WS_MEMBER_SCAP_PL":"Workspace members","DEVOPS_PROJECT_TCAP":"DevOps project","DEVOPS_PROJECT_TCAP_PL":"DevOps projects","DEVOPS_PROJECT_LOW":"DevOps project","DEVOPS_PROJECT_LOW_PL":"DevOps projects","PROJECTS":"Projects","ON":"On","OFF":"Off","WS_NETWORK_ISOLATION":"Workspace network isolation","NETWORK_POLICY_UNINSATLLED_DESC":"The network policy component is not installed in this cluster.","DELETE_DESC":"Are you sure you want to delete the resource? The resource cannot be restored after it is deleted.","DELETE_WORKSPACE_PROJECTS_DESC":"Delete projects in the workspace","DELETE_WORKSPACE_DESC":"The workspace cannot be restored after it is deleted and all resources in the workspace will be removed.","DELETE_WORKSPACE_TIP":"Are you sure you want to delete the workspace {resource}? The workspace cannot be restored after it is deleted and all resources in the workspace will be removed.","DEPARTMENT_PL":"Departments","DEPARTMENT_DESC":"A department in a workspace is a logical unit used for permission control. You can set a workspace role, multiple project roles, and multiple DevOps project roles in a department, and assign users to the department to control user permissions in batches.","NOT_ASSIGNED_TCAP":"Not Assigned","ADD_MEMBER_TIP_SI":"Are you sure you want to assign the user to the department {group}?","ADD_MEMBER_TIP_PL":"Are you sure you want to assign the users to the department {group}?","ASSIGNED":"Assigned","DEPARTMENT":"Department","SET_DEPARTMENTS":"Set Departments","DEPARTMENT_EMPTY_DESC":"No Department Available","NO_DEPARTMENT_TIP":"No department available. Please create a department on the right.","CREATE_DEPARTMENT":"Create Department","DELETE_GROUP_TIP":"Are you sure you want to delete the department {group_name}? The associated roles will be unbound from the users.","DELETE_PARENT_GROUP_TIP":"Are you sure you want to delete the department {group_name}? Its subdepartments will also be deleted and the associated roles will be unbound from the users.","PROJECT_VALUE":"Project: {value}","PROJECT_ROLE_VALUE":"Project role: {value}","DEVOPS_VALUE":"DevOps project: {value}","DEVOPS_PROJECT_ROLES_VALUE":"DevOps project role: {value}","WORKSPACE_ROLE":"Workspace Role","GROUP_WORKSPACE_ROLE_DESC":"The workspace role will be assigned to all members in the department.","MEMBER_CLUSTER_UPGRADE_TIP":"Member clusters with versions earlier than {version} do not support this function. Please upgrade the member clusters to {version} or later.","PROJECT_ROLE":"Project Role","SELECT_ROLE_TIP":"Please select a role.","ADD_PROJECT":"Add Project","CLUSTER_UPGRADE_REQUIRED":"The current KubeSphere version does not support this feature. Please upgrade KubeSphere to {version} or later.","DEVOPS_PROJECT_ROLE":"DevOps Project Role","ADD_DEVOPS_PROJECT":"Add DevOps Project","DEVOPS_PROJECTS":"DevOps Projects","WORKSPACE_MEMBERS":"Workspace Members","WORKSPACE_MEMBER_PL":"Workspace Members","WORKSPACE_MEMBER_DESC":"Workspace members can view or manage workspace resources. You can manage members and control their permissions in the workspace.","WORKSPACE_MEMBER_EMPTY_DESC":"Please invite a user to the workspace.","ROLE":"Role","REMOVE_MEMBER":"Remove Member","REMOVE_MULTIPLE_MEMBERS":"Remove Multiple Members","REMOVE_MULTIPLE_MEMBERS_TIP":"Enter the usernames {resource} to confirm that you understand the risks of this operation.","INVITE_WORKSPACE_MEMBER_DESC":"Invite users to the workspace.","INVITE_MEMBER":"Invite Member","INVITE":"Invite","INVITED_SUCCESSFULLY":"Invited successfully.","REMOVE_MEMBER_TIP":"Enter the username {resource} to confirm that you understand the risks of this operation.","WORKSPACE_QUOTA_PL":"Workspace Quotas","WORKSPACE_QUOTAS_DESC":"Workspace quotas are used to control the total resource usage of all projects and DevOps projects in a workspace.","RESOURCE_QUOTA_PL":"Resource Quotas","USED_PERCENT":"Used: {percent}%","RESOURCE_LIMIT":"Resource limit","EDIT_WORKSPACE_QUOTAS":"Edit Workspace Quotas","CPU_REQUEST":"CPU Request","CPU_LIMIT":"CPU Limit","MEMORY_REQUEST":"Memory Request","MEMORY_LIMIT":"Memory Limit","WORKSPACE_ROLE_PL":"Workspace Roles","WORKSPACE_ROLE_DESC":"The role of a workspace member determines the permissions of the member in the workspace.","WORKSPACE_ROLE_EMPTY_DESC":"Please create a workspace role.","ROLE_WORKSPACE_ADMIN":"Manage all resources in the workspace.","ROLE_WORKSPACE_REGULAR":"View workspace settings.","ROLE_WORKSPACE_VIEWER":"View all resources in the workspace.","ROLE_WORKSPACE_SELF_PROVISIONER":"View workspace settings, manage app templates, and create projects and DevOps projects.","CREATE_WORKSPACE_ROLE":"Create Workspace Role","WORKSPACE_ROLE_NAME_TIP":"The role name is used as the unique identifier of the role.","NEXT_STEP":"Next Step","NEXT_STEP_DESC":"You need to further edit permissions of the role.","PERMIGROUP_PROJECTS_MANAGEMENT":"Projects","PERMISSION_PROJECTS_VIEW":"Project Viewing","PERMISSION_PROJECTS_VIEW_DESC":"View all projects in the workspace.","PERMISSION_PROJECTS_MANAGEMENT":"Project Management","PERMISSION_PROJECTS_MANAGEMENT_DESC":"Create, edit, and delete projects in the workspace.","PERMISSION_PROJECTS_CREATE":"Project Creation","PERMISSION_PROJECTS_CREATE_DESC":"Create projects and become an administrator of the created projects.","PERMIGROUP_DEVOPS_MANAGEMENT":"DevOps Projects","PERMISSION_DEVOPS_VIEW":"DevOps Project Viewing","PERMISSION_DEVOPS_VIEW_DESC":"View all DevOps projects in the workspace.","PERMISSION_DEVOPS_MANAGEMENT":"DevOps Project Management","PERMISSION_DEVOPS_MANAGEMENT_DESC":"Create, edit, and delete DevOps projects in the workspace.","PERMISSION_DEVOPS_CREATE":"DevOps Project Creation","PERMISSION_DEVOPS_CREATE_DESC":"Create DevOps projects and become an administrator of the created DevOps projects.","PERMISSION_APPS_MANAGEMENT":"App Management","PERMISSION_WORKSPACE_APP_REPOS_VIEW":"App Repository Viewing","PERMISSION_WORKSPACE_APP_REPOS_VIEW_DESC":"View app repositories in the workspace.","PERMISSION_WORKSPACE_APP_REPOS_MANAGEMENT":"App Repository Management","PERMISSION_WORKSPACE_APP_REPOS_MANAGEMENT_DESC":"Create, edit, and delete app repositories in the workspace.","PERMISSION_WORKSPACE_APP_TEMPLATES_VIEW":"App Template Viewing","PERMISSION_WORKSPACE_APP_TEMPLATES_VIEW_DESC":"View app templates in the workspace.","PERMISSION_WORKSPACE_APP_TEMPLATES_MANAGEMENT":"App Template Management","PERMISSION_WORKSPACE_APP_TEMPLATES_MANAGEMENT_DESC":"Upload, edit, and delete workspace app templates, and release and delete apps in the platform App Store.","PERMISSION_WORKSPACE_GROUPS_VIEW":"Department Viewing","PERMISSION_WORKSPACE_GROUPS_VIEW_DESC":"View the structure and members of workspace departments.","PERMISSION_WORKSPACE_GROUPS_MANAGEMENT":"Department Management","PERMISSION_WORKSPACE_GROUPS_MANAGEMENT_DESC":"Manage the structure, members, and permissions of workspace departments.","PERMISSION_WORKSPACE_MEMBERS_VIEW":"Member Viewing","PERMISSION_WORKSPACE_MEMBERS_VIEW_DESC":"View workspace members.","PERMISSION_WORKSPACE_MEMBERS_MANAGEMENT":"Member Management","PERMISSION_WORKSPACE_MEMBERS_MANAGEMENT_DESC":"Invite, edit, and delete workspace members.","PERMISSION_WORKSPACE_ROLES_VIEW":"Role Viewing","PERMISSION_WORKSPACE_ROLES_VIEW_DESC":"View workspace roles.","PERMISSION_WORKSPACE_ROLES_MANAGEMENT":"Role Management","PERMISSION_WORKSPACE_ROLES_MANAGEMENT_DESC":"Create, edit, and delete workspace roles except system preset roles.","PERMIGROUP_WORKSPACE_SETTINGS":"Workspace Settings","PERMISSION_WORKSPACE_SETTINGS_VIEW":"Workspace Settings Viewing","PERMISSION_WORKSPACE_SETTINGS_VIEW_DESC":"View workspace settings.","PERMISSION_WORKSPACE_SETTINGS_MANAGEMENT":"Workspace Settings Management","PERMISSION_WORKSPACE_SETTINGS_MANAGEMENT_DESC":"Manage workspace settings and edit workspace information and network policies.","NODE_GROUP_PL":"Node Group","EDGEWIZE_COMPUTING":"EdgeWize Computing","EDGEWIZE_COMPUTING_DESC":"Unified management and monitoring of edge multi-clusters and their basic resources, and resource usage.","EDGEWIZE_MANAGEMENT":"Edge Cluster Management","EDGEWIZE_MANAGEMENT_DESC":"Unified management and monitoring of edge multi-clusters and their basic resources, and resource usage.","EDGEWIZE_MONITORING":"Edge Cluster Monitoring","HOSTED_IN":"Hosted In","HOSTED_IN_DESC":"Please select a KubeSphere cluster to manage this edge cluster.","HOSTED_IN_EMPTY":"","CREATE_EDGEWIZE_CLUSTER":"Create Edge Cluster","VIEW_KUBECONFIG":"View KubeConfig","DELETE_CLUSTER":"Delete cluster","REMOVE_EDGEWIZE_TIP_A":"After the edge cluster is removed, resources in the edge cluster will not be cleared automatically.","REMOVE_EDGEWIZE_TIP_B":"After the edge cluster is removed, multi-cluster configuration data in the edge cluster will not be cleared automatically. Uninstalling KubeSphere or deleting related resources may cause user data loss. ","DELETE_EDGE_CLUSTER_NOTIFICATION_CONFIGURAITON":"Delete all notification configuration data in the edge cluster","EDGE_APPLICATION_WORKLOAD_PL":"Edge Application loads","EDGE_MONITORING_AND_ALERTING":"Edge Monitoring & Alerting","EDGE_CLUSTER":"Edge Cluster","EDGE_CLUSTER_PL":"Edge Cluster","EDGE_CLUSTER_DESC":"","ADVERTISE_ADDRESS":"Advertise Address","ADVERTISE_ADDRESS_DESC":"Set the public address of the KubeEdge component of the edge cluster, which supports IP addresses or domain names.","RESOURCE_USAGE_DESC":"You can view the ranking of cluster node usage and project usage.","NODE_USAGE_RANKING":"Node Usage Ranking","PROJECTS_USAGE_RANKING":"Projects Usage Ranking","SORT_BY_EDGE_NODE_CPU_USAGE":"Sort by CPU usage","SORT_BY_EDGE_NODE_CPU_UTILISATION":"Sort by CPU usage (%)","SORT_BY_EDGE_NODE_MEMORY_UTILISATION":"Sort by memory usage (%)","SORT_BY_EDGE_NODE_DISK_SIZE_UTILISATION":"Sort by disk usage (%)","SORT_BY_EDGE_NODE_POD_UTILISATION":"Ordenar mediante el uso de pod","SORT_BY_EDGE_NODE_DISK_INODE_UTILISATION":"Ordenar por inodo Utilización","SORT_BY_EDGE_NODE_LOAD1":"Sort by 1-minute CPU load average","SORT_BY_EDGE_NODE_MEMORY_USAGE_WO_CACHE":"Sort by memory usage","SORT_BY_EDGE_NODE_LOAD5":"Sort by 5-minute CPU load average","SORT_BY_EDGE_NODE_LOAD15":"Sort by 15-minute CPU load average","SORT_BY_EDGE_NAMESPACE_CPU_USED_LIMITS_UTILISATION":"Sort by allocated CPU limit (%)","SORT_BY_EDGE_NAMESPACE_CPU_USED_REQUESTS_UTILISATION":"Sort by allocated CPU request (%)","SORT_BY_EDGE_NAMESPACE_MEMORY_USAGE_WO_CACHE":"Ordenar por uso de memoria","SORT_BY_EDGE_NAMESPACE_MEMORY_USED_LIMITS_UTILISATION":"Sort by allocated memory limit (%)","SORT_BY_EDGE_NAMESPACE_MEMORY_USED_REQUESTS_UTILISATION":"Sort by allocated memory request (%)","SORT_BY_EDGE_NAMESPACE_POD_COUNT":"Sort by pod quota usage (%)","SORT_BY_EDGE_NAMESPACE_NET_BYTES_RECEIVED":"Sort by inbound traffic","SORT_BY_EDGE_NAMESPACE_NET_BYTES_TRANSMITTED":"Sort by outbound traffic","SORT_BY_EDGE_NAMESPACE_PVC_BYTES_USED":"Sort by persistent volume usage","SORT_BY_EDGE_NAMESPACE_PVC_COUNT":"Sort by number of pods","SORT_BY_EDGE_EDGE_NAMESPACE_CPU_USAGE":"Sort by CPU usage","CONTAINER_RUNTIME_EMPTY_DESC":"Please select a container runtime","IMAGE_REPOSITORY_ADDRESS":"Image repository address","IMAGE_REPOSITORY_ADDRESS_EMPTY_DESC":"Please enter the address of image repository","NODE_ACCESS_PL":"Node access","NODE_ADMINISTRATION_PL":"Node administration","abortPipeline":"abortPipeline","Absolute duration":"Absolute duration","Add another credential":"Add another credential","Add conditions":"Add conditions","Add nesting conditions":"Add nesting conditions","Add nesting steps":"Add nesting steps","Add Parallel Stage":"Add Parallel Stage","Add Step":"Add Step","archiveArtifacts":"archiveArtifacts","Are you sure to close this pipeline Editor ?":"Are you sure to close this pipeline Editor ?","artifacts":"artifacts","Authentication Token":"Authentication Token","Automatically generated by GitHub":"Automatically generated by GitHub","bcc":"bcc","BEHAVIORAL_STRATEGY":"Behavioral Strategy","blocker":"blocker","BLOCKER":"Blocker","NOTICE":"Notice","Branches":"Branches","branch success":"branch success","@somebody to help review":"@somebody to help review","Send messages by email":"Send messages by email","Send messages in the build":"Send messages in the build","Change Current Directory":"Change Current Directory","Chinese is not allowed in the pipeline configuration":"Chinese is not allowed in the pipeline configuration","Clean when aborted":"Clean when aborted","Clean Workspace":"Clean Workspace","Code Quality Check":"Code Quality Check","COMMIT_ID":"Commit ID","Config File Path":"Config File Path","config name":"config name","configs":"configs","Configuration error":"Configuration error","container":"container","Continue":"Continue","credential Id":"credential Id","Credential Id":"Credential Id","credentialsId":"credentialsId","critical":"critical","Current branch name must match the input value":"Current branch name must match the input value","defaultValue -1 means not to discard":"defaultValue -1 means not to discard","Delete all resources of the deployment file":"Delete all resources of the deployment file","Deploy resources to the Kubernetes cluster":"Deploy resources to the Kubernetes cluster","Didn't pass":"Didn't pass","dir":"dir","Discard":"Discard","Discover branches from repository":"Discover branches from repository","DISCOVER_PR_FROM_FORKS":"Discover PRs from Forks","DISCOVER_PR_FROM_ORIGIN":"Discover PRs from Origin","Discover pull requests from forks":"Discover pull requests from forks","Discover pull requests from origin":"Discover pull requests from origin","Docker Container Registry Credentials":"Docker Container Registry Credentials","Docker Registry URL":"Docker Registry URL","dockerCredentials":"dockerCredentials","Drag and drop tasks to sort":"Drag and drop tasks to sort","Duration":"Duration","echo":"echo","Edit Config":"Edit Config","Edit Credential":"Edit Credential","Enable Variable Substitution in Config":"Enable Variable Substitution in Config","enableConfigSubstitution":"enableConfigSubstitution","Enter an expression":"Enter an expression","Environment name":"Environment name","Executes the code inside the block with a determined time out limit.":"Executes the code inside the block with a determined time out limit.","expression":"expression","Failure":"Failure","For accessing GitHub":"For accessing GitHub","get token":"get token","info":"info","input":"input","Inspection results do not affect subsequent tasks":"Inspection results do not affect subsequent tasks","instance failed to match at least one schema":"instance failed to match at least one schema","Internal nested conditions only need to satisfy one":"Internal nested conditions only need to satisfy one","Internal nesting conditions must be matched":"Internal nesting conditions must be matched","Jenkinsfile syntax error, message":"Jenkinsfile syntax error, message","key File Variable":"key File Variable","keyFileVariable":"keyFileVariable","Kubeconfig Variable":"Kubeconfig Variable","Kubernetes Namespace for Secret":"Kubernetes Namespace for Secret","Kubernetes Secrets":"Kubernetes Secrets","Line":"Line","Load credentials into environment variables":"Load credentials into environment variables","Load the sonarqube configuration provided by Jenkins into the Pipeline.":"Load the sonarqube configuration provided by Jenkins into the Pipeline.","mail":"mail","major":"major","minor":"minor","Missing one or more required properties: 'name'":"Missing one or more required properties: 'name'","Negative prefix":"Negative prefix","NO_BRANCH_FOUND_TIP":"No branch is found.","No need":"No need","Normal":"Normal","Not Build":"Not Build","Not fail build":"Not fail build","not support edit nested stage":"not support edit nested stage","passphrase Variable":"passphrase Variable","passphraseVariable":"passphraseVariable","Password Variable":"Password Variable","passwordVariable":"passwordVariable","PIPELINE_LOW":"pipeline","Pipeline Configuration":"Pipeline Configuration","Pipeline List":"Pipeline List","pipeline syntax error":"pipeline syntax error","Please add at least one step.":"Please add at least one step.","Please input images name":"Please input images name","Please input the credential name.":"Please input the credential name.","Press enter for the next":"Press enter for the next","Print message":"Print message","Pull code by Git":"Pull code by Git","Pull code by SVN":"Pull code by SVN","Queue":"Queue","Recipient":"Recipient","Registry Credentials":"Registry Credentials","remote":"remote","Run Pipeline":"Run Pipeline","Save Artifact":"Save Artifact","Repo Scanned Successfully":"Repo Scanned Successfully","WEBHOOK_PUSH":"Webhook Push","secretName":"secretName","secretNamespace":"secretNamespace","SELECT_THIS_REPOSITORY":"Select This Repository","Sender":"Sender","sh":"sh","Shell commands can be executed in the container":"Shell commands can be executed in the container","Show Advanced Settings":"Show Advanced Settings","show yaml editor":"show yaml editor","sonar is the default config name.":"sonar is the default config name.","Sorry, you don't have the permission to do this.":"Sorry, you don't have the permission to do this.","Specify a container to add nested tasks to execute inside the container":"Specify a container to add nested tasks to execute inside the container","Start the follow-up task after the inspection":"Start the follow-up task after the inspection","Started By":"Started By","Subject":"Subject","submitter":"submitter","submitterParameter":"submitterParameter","Text Variable":"Text Variable","The conditions required to implement the current phase (optional).":"The conditions required to implement the current phase (optional).","The environment variable entered before running the pipeline is match the current value.":"The environment variable entered before running the pipeline is match the current value.","The label on which to run the Pipeline or individual stage":"The label on which to run the Pipeline or individual stage","This name has been used.":"This name has been used.","Time Used":"Time Used","Timeout":"Timeout","timeout":"timeout","Timeout after no activity in logs for this block":"Timeout after no activity in logs for this block","timer":"timer","TRIGGER_REMOTE_BUILD":"Trigger a remote build (for example, using a script)","Unnamed":"Unnamed","Use the following URL to remotely triggerworkbench the build":"Use the following URL to remotely triggerworkbench the build","User types that can trigger builds":"User types that can trigger builds","username or group name, multiple values ​​used, separated":"username or group name, multiple values ​​used, separated","Username Variable":"Username Variable","usernameVariable":"usernameVariable","waitForQualityGate":"waitForQualityGate","Webhook":"Webhook","withCredentials":"withCredentials","withSonarQubeEnv":"withSonarQubeEnv","Wrong Token":"Wrong Token","You can execute shell commands or windows batch commands in the build.":"You can execute shell commands or windows batch commands in the build.","PIPELINE_DESC":"A pipeline is an extensible set of tools that can be combined\n to achieve continuous integration and continuous delivery.\n You can create and manage pipelines on this page.","username_password":"Username and password","login_Plateform":"Login platform","CREDENTIALS_DESC":"Credentials are objects that contain some sensitive data,\n such as username and password, SSH key and Token.\n They are used to provide authentication for pulling code,\n pushing/pulling images, executing SSH scripts, etc. when a pipeline is running.","AUTHENTICATION_TOKEN_TIP":"Enable this option if you need to\n trigger a build by accessing a predefined URL.\n A typical use of this feature is to trigger through the source code\n management system's hook script.\n You need to provide an authorization token in the form of a string so that\n only the person with the authorization token can trigger the remote build.","CRON_TIP":"This field follows the cron syntax (slightly different).\n Specifically, each line contains 5 fields separated by tabs or spaces.\n minutes: the first few minutes of an hour (0-59)\n hours: the first few hours of the day (0-23)\n the days of the month: the first few days of a month (1-31 )\n Month: The first few days of the first few days (0-12), the first few days of the week (0-12),\n 0 and 7 are Sundays. ","PIPELINES_BASEINFO_DESC":"Please enter the basic information of the pipeline.","PIPELINE_ADVANCE_SETTINGS_DESC":"Configure a complex behavior policy for the pipeline (Optional).","CREDENTIALS_CREATE_DESC":"Create credentials for DevOps projects","CHECKOUT_DESC":"Pull code; often used to pull non-git code, such as svn.","PRIVATE_IMAGE_DESC":"To deploy from a private image repository,\n you need to create a mirrored repository and then pull the image. ","AUTHENTICATION_TOKEN_DESC":"Use the following URL to remotely trigger the build:\n JENKINS_URL / job / JOB_NAME / build? Token =TOKEN_NAME or /buildWithParameters?\n Token = TOKEN_NAME You can choose to append &cause=reason to provide the text that\n will be included in the build reason for the record. ","PIPELINE_NO_CONFIG":"The relevant configuration file was not found in the current pipeline","EDIT_CREDENTIAL_DESC":"The following form will not display the original credential information. The original information will be overwritten by any new input.","pipeline_conditions":"Conditions","CODE_SMELL":"Code Smell","BUG":"Bug","VULNERABILITY":"Vulnerability","SECURITY_HOTSPOT":"Security Hotspot","PIPELINE_CREATE_DESC":"Pipeline's task execution will begin after the initialization is complete.","PIPELINE_QUEUED_DESC":"You need to wait for the agent to start and execute the pipeline (note that if the agent has not started for a long time, please check the agent configuration and cluster resources).","waitForQualityGate_desc":"Code quality check standards are derived from SonarQube's Quality Gate. If you need to customize the standards, go to SonarQube settings.","REVIEW_DESC":"When the pipeline runs here, this task will be suspended, and you can choose to continue or terminate after the review.","INPUT_DESC":"When the pipeline runs here, the task will be suspended, and the creator and @somebody can choose to continue or terminate the pipeline.","LoadPrevData_Desc":"It was detected that this pipeline was not successfully edited last time. Is the last data loaded to continue editing?","withSonarQubeEnv_DESC":"Quickly locate potential or obvious errors in your code","waitForQualityGate_DESC":"Executed after performing code analysis","script_DESC":"Execute groovy script","pipeline_owner":"The owner of the DevOps project, with the highest authorization of the project, can perform all operations","pipeline_maintainer":"The maintainer of the DevOps project can perform credentials and pipeline configuration in the DevOps project","pipeline_developer":"The developer of the DevOps project can trigger and view the pipeline","pipeline_reporter":"The Observer of the DevOps project can only view the resources of the project","PATTERN_PIPELINE_NAME_VALID_NAME_TIP":"Invalid name (Support uppercase and lowercase letters, numbers, '_' and '-')","GET_GITHUB_TOKEN_DESC":"For accessing GitHub\n \n Get Token\n ","PIPELINES_FOOTER_SEE_MORE":"Go to the branch details page to see more.","JENKINS_LINS_ERROR":"has syntax error at line {line}.","Invalid credential ID":"Invalid credential ID","Batch Run Fail":"Batch Run Failed","Run Start":"Start Running","Choose a Pipeline Template":"Choose a Pipeline Template","DEVOPS_PROJECT_DESC":"DevOps projects are used to group resources and control the resource management permissions of different users."} \ No newline at end of file diff --git a/packages/bootstrap/assets/v3dist/locale-es.2e49a7fe837be8ae631c.json b/packages/bootstrap/assets/v3dist/locale-es.2e49a7fe837be8ae631c.json deleted file mode 100644 index 5aa6e8d78c1..00000000000 --- a/packages/bootstrap/assets/v3dist/locale-es.2e49a7fe837be8ae631c.json +++ /dev/null @@ -1 +0,0 @@ -{"DELETE_CUSTOM_SCALING_WITH_WORKLOAD":"Associated custom scaling policies will be deleted after the workload is deleted.","ENT_TITLE":"KubeSphere Enterprise","KS_QKCP_DESCRIPTION":"KubeSphere Enterprise is an enterprise-grade container platform developed by QingCloud based on the open-source KubeSphere platform.","ABOUT_KUBESPHERE_ENTERPRISE":"About KubeSphere Enterprise","KUBESPHERE_CLOUD_DESC":"KubeSphere Cloud builds a Kubernetes-centric digital ecosystem to provide customers with enterprise-level cloud-native services of high quality. It offers KubeSphere Backup, Inspector, and Lite to help you manage, protect, and deliver production-ready applications more efficiently.","APP_AUTHORIZED":"App is authorized","APP_UNAUTHORIZED":"The application is not authorized","APP_UNAUTHORIZED_DESC":"This app is unauthorized.","VIEW_EVENTS":"View Events","GPU_MEMORY":"Graphics memory","EDIT_TAGS":"Edit Tags","ADD_TAGS":"Add Tags","GPU_TEMP":"GPU Temperature","GPU_ENERGY_USAGE":"GPU Power (W)","GPU_ENERGY_NO_PERCENT_TCAP":"GPU Power","GPU_MEMORY_USAGE_STATUS":"Graphics Memory Usage","NODE_GPU_MEMORY_USAGED":"Used","NODE_GPU_MEMORY_UNUSAGED":"Available","ENT_CLUSTER_GATEWAY_DESC":"Set up and manage the configuration of the external network access gateway and service management in the cluster, workspace and project.","ENT_CLUSTER_ENABLE_GATEWAY_DESC":"Before creating a route, you need to enable the external network access portal, that is, the gateway. This step is to create the corresponding route controller to forward requests to the back-end service.","WORKSPACE_GATEWAY_PL":"Workspace Gateways","WORKSPACE_GATEWAY_NOT_ENABLED":"Workspace Gateway Not Enabled","ENT_WORKSPACE_ENABLE_GATEWAY_DESC":"The workspace gateway cannot be set on the cluster management page. If you need to set it, go to the corresponding workspace.","ENT_PROJECT_ENABLE_GATEWAY_DESC":"The project gateway cannot be set on the cluster management page. If you need to set it, go to the corresponding project.","OPENSEARCH_DESC":"You can use the OpenSearch log receiver to ingest log data into an OpenSearch database. To use this feature, you need to deploy OpenSearch in advance.","LOG_COLLECTION_OS_URL_TIPS":"IP address or hostname of the target OpenSearch instance","LOG_COLLECTION_OS_USER_TIPS":"Optional username credential for access","LOG_COLLECTION_OS_PASSWORD_TIPS":"Password for user defined in HTTP_User","BATCH_MANAGE":"Batch Manage","HAS_SAME_TAG":"The tag already exists. Please select another tag.","CLUSTER_REPEATED_TAGS_DESC":"The tag keys must be unique for each cluster.","CLUSTER_MAX_TAGS_DESC":"The cluster can bind up to five tags.","EMPTY_TAG_LABEL_DESC":"Please enter the tag key","EMPTY_TAG_VALUE_DESC":"Please enter the tag value","HAS_ADD_TAGS":"Added tags","CLUSTER_TYPE_DESC":"Select a type to identify the purpose of the cluster.","DELETE_CLUSTER_SWIPE_DESC":"I understand the risks of this operation.","DELETE_CLUSTER_NOTIFICATION_CONFIGURAITON":"Delete all notification configuration data in the cluster","REMOVE_CLUSTER_TIP_C":"After the cluster is removed, multi-cluster configuration data in the cluster will not be cleared automatically. Uninstalling KubeSphere or deleting related resources may cause user data loss. You must manually clear the multi-cluster configuration data in the removed cluster by refering to the \"Remove a Member Cluster\" section in the KubeSphere Enterprise Cluster Management Guide.","CLUSTER_TAG":"Cluster Tag","CLUSTER_TAGS":"Cluster tags","NO_CLUSTER_TAGS":"No cluster tags found","NO_CLUSTER_TAGS_DESC":"Please create a cluster tag","CLUSTER_TAG_ADD_HELP":"If there is no appropriate tag, you can","CLUSTER_TAG_TOOLTIP_CONTENT":"Only one tag value of the same tag key can be bound on the same cluster. Each cluster can bind up to 5 tags. ","CLUSTER_LABEL":"Cluster ID","CLUSTER_LABEL_DESC":"Identifies the purpose of the cluster. ","CLUSTER_LABEL_TOOLTIP_CONTENT":"It is recommended to identify the cluster by label, and the \"cluster identification\" function will be removed in subsequent versions, please use it with caution. ","TAG_PL":"Tags","CREATE_TAGS":"Create Tags","CREATE_TAGS_DESC":"The keys of different tags can be the same.","ENT_CLUSTER_TAG_DESC":"The key and value cannot be empty. The maximum length is 63 characters.","CLUSTER_TAG_EMPTY_DESC":"Please add a tag.","DELETE_MULTIPLE_TAGS":"Delete Multiple Tags","DELETE_TAG":"Delete Tag","DELETE_CLUSTER_TAG_DESC":"All clusters bound to the tag will be unbound after the tag is deleted.","DELETE_CLUSTER_TAG_CONFIRM_DESC":"Please enter the tag key and value {resource} to confirm that you understand the risks of this operation.","DELETE_CLUSTER_TAGS_CONFIRM_DESC":"Please enter the tag key value {resource} to confirm you understand the risk of this operation.","EDIT_TAG":"Edit Tag","ADD_TO_CLUSTERS":"Add to Clusters","ADD_TAG_TO_CLUSTERS":"Add Tag to Clusters","ADD_TAG_DESC":"The tag keys must be unique for each cluster. New tags do not overwrite existing tags.","ADD_TAG_SUCCESSFUL":"The tag was added successfully.","REMOVE_FROM_CLUSTERS":"Remove from Clusters","REMOVE_TAG_FROM_CLUSTERS":"Remove Tag from Clusters","REMOVE_TAG":"Remove Tag","REMOVE_TAG_DESC":"Are you sure you want remove the tag from the cluster?","REMOVE_TAG_SUCCESSFUL":"The tag was removed successfully.","NO_CLUSTER_FOUND":"No Cluster Found","NAME_DESC_LENGTH":"The name can contain only lowercase letters, numbers, and hyphens (-), and must start and end with a lowercase letter or number. The maximum length is {length} characters.","INVALID_NAME_DESC_LENGTH":"Invalid name. The name can contain only lowercase letters, numbers, and hyphens (-), and must start and end with a lowercase letter or number. The maximum length is {length} characters.","DEFAULT_IMAGE_REGISTRY":"Default image registry","DEFAULT_IMAGE_REGISTRY_TCAP":"Default Image Registry","SET_AS_DEFAULT":"Set as Default","SET_AS_DEFAULT_REGISTRY_DESC":"Set the image registry as the default image registry. Unless otherwise specified, the system uses images from the default image registry to create containers. Only one default image registry is allowed in each project.","SET_DEFAULT_REGISTRY_SUCCESSFUL":"The registry was set as the default image registry successfully.","ACTIVATION_CONDITION_SCAP":"Activation condition","ALERTING_RULE_NAME":"Alerting Name","REFERENCE":"Reference","NO_MONITOR_METRIC":"The alert rule is inactive and no monitoring data is available.","DISABLE_MULTIPLE_ALERTING_POLICIES":"Disable Multiple Rule Groups","ENABLE_ALERTING_POLICY":"Enable Rule Group","ENABLE_MULTIPLE_ALERTING_POLICIES":"Enable Multiple Rule Groups","DISABLE_ALARM_TIP":"After the rule group is disabled, the system will stop generating alerts for the monitored resources. Exercise caution when performing this operation.","RESET_MULTIPLE_ALERTING_POLICIES":"Reset Multiple Rule Groups","RESET_MULTIPLE_ALERTING_POLICIES_DESC":"Are you sure you want to reset the rule groups {name}?","RESET_SUCCESSFUL":"Reset successful","BUILT_IN_POLICIES_TOOLTIP":"After the Whizard Observability Center is enabled, please log in as a user assigned the platform-admin role and manage default rule groups in the Whizard Observability Center.","Rule":"Rule","RULES_LIST_EMPTY":"Please set an alert rule.","DURATION_REQUIRED":"Please set the duration.","OPERATOR_REQUIRED":"Please set the operator.","NETWORK_BANDWIDTH":"Network Bandwidth","FUNCTION_UPGRADE":"Enhanced Features","FUNCTION_UPGRADE_DESC":"This cluster does not support disabling and migration of pod IP pools and editing of the Overlay mode. If you need to use these features, please upgrade the cluster to KubeSphere Enterprise 3.4.0 or later.","IPPOOL_OVERLAY_MODE":"Overlay Mode","IPPOOL_BLOCK_SIZE":"IP Pool Block Size","EDIT_OVERLAY":"Edit Overlay Mode","FEATURE_UPGRADE":"Feature Upgrade","IPPOOL_USED_TIP":"The pod IP pool is used by pods, so you cannot assign a workspace or delete the IP pool. If there are pods using the pod IP pool, you need to assign other pod IP pools to the pods or delete the pods.","IP_POOL_RANGE":"IP Pool Range","EDIT_POD_IP_POOL":"Edit Pod IP Pool","ENTER_NETWORK_SEGMENT":"Please enter a network segment.","POD_IP_POOL_IP_RANGE":"The IP range of the pod IP pool.","POD_IP_POOL_NAME_DESC":"It can contain only lowercase letters, numbers, and hyphens (-), and must start and end with a number or lowercase letter. The maximum length is 63 characters.","IPIP_MODE":"IPIP Mode","IPIP_MODE_REQUIRED":"Please select an IPIP mode.","IPIP_MODE_DESC":"Create an IP in IP tunnel on each node to enable communication between containers. You can either set the IPIP or the VXLAN mode. If you set the values of the IPIP and the VXLAN modes to Never, BGP mode will be used.","CONFIGURATION_MODE":"Configuration Mode","VXLAN_MODE":"VXLAN Mode","VXLAN_MODE_REQUIRED":"Please select a VXLAN mode.","VXLAN_MODE_DESC":"Create a VXLAN tunnel on each node to enable communication between containers. You can either set the IPIP or the VXLAN mode. If you set the values of the IPIP and the VXLAN modes to Never, BGP mode will be used.","IP_POOL_BLOCK_SIZE_DESC":"The CIDR size of the block used to allocate IP addresses.","NAT_OUTGOING_DESC":"Collapse IPPool communication through NAT","OPEN_NAT_OUTGOING":"Open NAT outgoing","CLOSE_NAT_OUTGOING":"Close NAT outgoing","OPEN":"Open","OPENED":"Opened","CLOSED":"Closed","OPENED_SUCCESSFUL":"Open Successful","CLOSED_SUCCESSFUL":"Close Successful","SELECT_NODE_DES":"Use the label selector to match the appropriate nodes for the IP pool.","SELECT_LABEL_ALL_RESOUCE":"Matches all resources in the tag selection range.","ALL_DISABLED":"Disable All","DISABLE_SELECT_NODE":"Disable Select Node","NODE_RANGE":"Node Range","LABEL_SELECT":"Label Select","EDIT_OVERLAY_MODE":"Edit Overlay Mode","DISABLE_POD_IP_POOL":"Disable Pod IP Pool","DISABLE_POD_IP_POOL_DESC":"After disabling the container group IP pool, the allocation of IP addresses will not continue, nor will it affect the network of container groups that have already been assigned IP addresses. When migrating container group IPs, the number of available addresses in the new IP pool cannot be less than the IP addresses used by the current IP pool. After the migration is completed, the workload will be restarted. Disabling the ip pool automatically unbinds the project. Exercise caution when performing this operation.","MIGRATE_POD_IP_POOL":"Migrate Pod IP Pool","MIGRATE_POD_IP_POOL_DESC":"Migrate the pod that has been assigned an IP address to a new pod IP pool.","SELECT_POD_IP_POOL":"Please select a pod IP pool.","MIGRATE_POD_IP_POOL_TIP":"The IP address of the pod will be allocated according to the selected pod IP pool.","SELECT_POD_IP_POOL_DESC":"Please select a pod IP pool.","IPPOOL_AUTO_ASSIGN":"Automatic allocation","IPPOOL_IS_AUTO_ASSIGN":"Automatically allocate or not","CREATED_AGO":"Created {diff}","UPDATED_AGO":"Updated {diff}","GPU_USAGE_SCAP":"GPU usage","GPU_MEMORY_USAGE_SCAP":"Graphics memory usage","QUOTA_USAGE":"Usage","PROJECT_CONFIG_QUOTAS_TIP":"Only data of projects with resource limits and requests is displayed.","APPLICATION_CLUSTER_QUOTA_STATISTICS":"Cluster Quota Statistics","CPU_QUOTA":"CPU Quota","MEMORY_QUOTA":"Memory Quota","SORT_BY_NODE_GPU_UTILIZATION":"Sort by GPU usage (%)","SORT_BY_NODE_GPU_MEMORY_UTILIZATION":"Sort by graphics memory usage (%)","SORT_BY_NAMESPACE_GPU_USAGE":"Sort by GPU usage","SORT_BY_NAMESPACE_GPU_MEMORY_USAGE":"Sort by graphics memory usage","SORT_BY_WORKLOAD_GPU_USAGE":"Sort by GPU usage","SORT_BY_WORKLOAD_GPU_MEMORY_USAGE":"Sort by graphics memory usage","SORT_BY_WORKSPACE_GPU_USAGE":"Sort by GPU usage","SORT_BY_WORKSPACE_GPU_MEMORY_USAGE":"Sort by graphics memory usage","SORT_BY_NODE_GPU_USAGE":"Sort by GPU usage","SORT_BY_NODE_GPU_MEMORY_USAGE":"Sort by graphics memory usage","SORT_BY_CLUSTER_GPU_USAGE":"Sort by GPU usage","SORT_BY_CLUSTER_GPU_MEMORY_USAGE":"Sort by graphics memory usage","NODE_RESOURCE_USAGE":"Node Resource Usage","USED_VALUE_CORES_PERCENTAGE":"Used: {value, plural, =1 {1 core} other {# cores}} ({percentage})","USED_VALUE_UNIT_PERCENTAGE":"Used: {value} {unit} ({percentage})","TOTAL_VALUE_CORES":"Total: {value, plural, =1 {1 core} other {# cores}}","TOTAL_VALUE_UNIT":"Total: {value} {unit}","ENT_ENABLE_GATEWAY_TIP":"To use the gateway, please configure the gateway in the cluster, workspace or project.","ANNOTATION_FORMAT_DESC":"The annotation key can contain only letters, numbers, hyphens (-), underscores (_), slashes (/), and dots (.), and must start and end with a letter or number. The maximum length is 63 characters (if the key contains a domain name, the maximum length is 253 characters).","UNCLASSIFIED":"Unclassified","FILE_STORAGE":"File Storage","BLOCK_STORAGE":"Block Storage","storageclasses":"Storage Classes","EDGE_GPU_MEMORY_USAGE_SCAP":"GPU memory usage","NPU_USAGE_SCAP":"NPU usage","NPU_MEMORY_USAGE_SCAP":"NPU memory usage","NPU_USAGE":"NPU usage","NPU_MEMORY_USAGE":"NPU memory usage","EDGE_GPU_MEMORY_USAGE":"GPU memory usage","EDGE_GPU_MEMORY_UTILIZATION":"GPU memory usage (%)","EDGE_GPU_MEMORY_USAGE_STATUS":"GPU memory usage status","EDGE_NODE_GPU_MEMORY_USAGED":"Memory used,","EDGE_NODE_GPU_MEMORY_UNUSAGED":"Free video memory","NPU_TEMP":"NPU temperature","NPU_ENERGY_NO_PERCENT_TCAP":"NPU Power","NPU_VOLTAGE":"NPU voltage","NPU_MEMORY_USAGE_STATUS":"NPU video memory usage status","EDGE_NODE_NPU_MEMORY_USAGED":"NPU video memory used,","EDGE_NODE_NPU_MEMORY_UNUSAGED":"Unused NPU video memory,","NPU_HEALTH_STATUS":"NPU health status","APPLICATION_RESOURCE_QUOTAS":"Application Resource Quotas","UNAUTHORIZED_FEATURE":"Unauthorized Feature","UNAUTHORIZED_FEATURE_DESC":"This feature is unauthorized. Please update the license to use this feature.","ADMIN_INACTIVATED_LICENSE_DESC":"KubeSphere Enterprise is not activated. Please activate KubeSphere Enterprise.","INACTIVATED_LICENSE_DESC":"KubeSphere Enterprise is not activated. Please contact a platform administrator to activate KubeSphere Enterprise.","ADMIN_SUB_EXPIRED_LICENSE_DESC":"The subscription has expired. To try the full version of KubeSphere Enterprise, update the license.","SUB_EXPIRED_LICENSE_DESC":"The subscription has expired. Please contact a platform administrator to update the license.","ADMIN_MA_EXPIRED_LICENSE_DESC":"The warranty has expired.","MA_EXPIRED_LICENSE_DESC":"The warranty has expired. Please contact a platform administrator to extend the warranty.","ADMIN_UPDATE_LICENSE_DESC":"The {type} service will expire in {day, plural, =1 {1 day} other {# days}}. ","UPDATE_LICENSE_DESC":"The {type} service will expire in {day, plural, =1 {1 day} other {# days}}. To try the full version of KubeSphere Enterprise, contact a platform administrator to update the license.","ADMIN_OVER_RESOURCE_LICENSE_LIMIT":"The managed resources exceed the scope of authorization, so you cannot manage existing resources and create new resources. To try the full version of KubeSphere Enterprise, update the license.","OVER_RESOURCE_LICENSE_LIMIT":"The managed resources exceed the scope of authorization, so you cannot manage existing resources and create new resources. To try the full version of KubeSphere Enterprise, contact a platform administrator to update the license.","ACTIVATE":"Activate","ADMIN_AUTHORIZED_INVALID_LICENSE_DESC":"Invalid license. Please update the license or contact KubeSphere technical support.","AUTHORIZED_INVALID_LICENSE_DESC":"Invalid license. Please contact a platform administrator to update the license.","EXPIRED_INVALID_LICENSE_DESC":"The license has expired. Please contact a platform administrator to update the license.","ADMIN_EXPIRED_INVALID_LICENSE_DESC":"The license has expired. Please update the license.","PLATFORM_FEATURES":"Platform Features","RADON_DB_FEATURES":"RadonDB Features","PASSWORD_CHARACTERS":"Contain at least 1 special character (~!@#$%^&*()-_=+\\|[{}];:'\",<.>/? or space).","I_AGREE_TO_THE":"I agree to the","TITLE_USERNAME":"{title} Username","TITLE_LOG_IN":"{title} Log In","NOTIFICATION_SUBSCRIPTION":"Notification Subscription","NOTIFICATION_SUBSCRIPTION_LOW":"Notification Subscription","NOTIFICATION_SUBSCRIPTION_DESC":"You can configure multiple recipients with different filter conditions for the same notification channel. ","NOTIFICATION_RECEIVER_EMPTY_DESC":"A notification subscription can be created. ","EDIT_NOTIFICATION_SUBSCRIPTION":"Edit Notification Subscription","CREATE_NOTIFICATION_SUBSCRIPTION":"Create Notification Subscription","NOTIFICATION_SUBSCRIPTION_DETAIL":"Notification Subscription Details","NOTIFICATION_SUBSCRIPTION_TOTAL":"Number of subscription accounts","NOTIFICATION_SUBSCRIPTION_ACCOUNT":"Notification Subscription Account","NOTIFICATION_EMAIL_SUBSCRIPTION_DESC":"Email notification subscription settings can be set by going to the notification subscription settings page. ","ADD_EMAIL_NOTIFICATION_SUBSCRIPTION":"Add email notification subscription","NOTIFICATION_RECEIVER_STATUS":"Notification reception status","NOTIFICATION_RECEIVER":"Notification receipt","NOTIFICATION_SUBSCRIPTION_PL":"Notification Subscription","NOTIFICATION_SUBSCRIPTION_EMPTY_DESC":"Please crate a notification subscription","NOTIFICATION_ENABLED":"Notification Enabled","NOTIFICATION_DISABLED":"Notification Disabled","ENABLE_SUCCESSFUL":"Enabled successfully.","NODE_TARGET_REPEAT":"Repeated monitoring target. Please select another monitoring target.","DEPLOYMENTS_VALUES":"Deployments: {values}","STATEFULSETS_VALUES":"Statefulsets: {values}","DAEMONSETS_VALUES":"Daemonsets: {values}","WORKLOADS_VALUES":"Workloads: {values}","RULE_NAME_REQUIRED":"Please enter a rule name.","MONITOR_TARGET_EMPTY":"Please select a monitoring target.","ALARM_TARGET_REPEAT":"Monitoring targets cannot be duplicated. Please select another monitoring target.","CLUSTER_FIELD_EMPTY":"Please select a cluster.","SELECT_A_TARGET_NODE":"Please select a node.","SET_NAMESPACE_BELONGS_TO":"Please select a project.","NAME_SPACE_REPEAT":"Projects cannot be duplicated. Please select another project.","THRESHOLD_INVALID":"Please enter a valid metric threshold.","SEVERITY_REQUIRED":"Please select an alert severity.","ALERT_RULE_REQUIRED":"Please enter a rule expression.","MESSAGE_REQUIRED":"Please enter message summary.","RULE_LABEL_SETTING":"Label setting","RULE_LABEL_SETTING_DESC":"Filter conditions can be specified in the receiver configuration to filter related labels. ","INCORRECT_KEY_DESC":"The key value is incorrect","MONITOR_TARGET_CLUSTER_DELETED_DESC":"The selected cluster contains a cluster that has been removed, please select again","CLUSTER_DELETED":"The cluster has been removed","DATA_ACCESS":"Data Access","DATA_QUERY":"Data Query","LONG_TERM_STORAGE":"Long-Term Storage","RULE_CALCULATION":"Ruler","CONTAINER_QUOTA":"Container Quotas","GATEWAY_COMPONENT_LOW":"Store Gateway","COMPONENT_REPLICA_COUNT":"Component Replicas","REPLICA_DESC":"Set the number of replicas of {resource}, and the default value is {default}.","DATA_ROUTER":"Router","DATA_RETENTION_LOW":"data rentetion","DATA_RETENTION_REPLICA_COUNT":"Data Retention Replicas","ROUTER_COMPONENT_LOW":"Router","LOCAL_STORAGE":"Local Storage","LOCAL_STORAGE_LOW":"local storage","LOCAL_STORAGE_TIME":"Local Data Storage Duration (Days)","LOCAL_STORAGE_TIME_DESC":"Set the storage duration of local data. The value at least 3, and the default value is 7.","LOCAL_STORAGE_ERROR_MESSAGE":"The number of replicas of the local storage component cannot be smaller than the number of data retention replicas.","BASIC_SETTING":"Basic Settings","CACHE_SETTING":"Cache Settings","QUERY_COMPONENT_LOW":"query component","CACHE_COMPONENT_LOW":"cache component","LONG_TERM_STORAGE_TIPS":"Please configure the parameters of object storage first, and then configure the parameters of the gateway, period, and downsampling.","STORAGE_NOT_ENABLED":"Long-term storage not enabled","STORAGE_ENABLE_GATEWAY_DESC":"After enabling long-term storage, you can configure component parameters for object storage, gateway, retention period, and downsampling.","OBJECT_STORAGE":"Object Storage","OBJECT_STORAGE_TIPS":"Please configure the parameters of the object storage first.","COMPACTOR":"Compator","STORE_GATEWAY":"Store Gateway","COMPRESSION_DOWNSAMPLING":"Compression and Downsampling","BUCKET":"Bucket","BUCKET_NAME_DESC":"The name of the s3 object storage bucket.","BUCKET_NAME_EMPTY_TIP":"Please enter the bucket name.","REGION":"Region","REGION_DESC":"The geographic region where you created the bucket.","ENDPOINT_DESC":"The AWS S3 object storage address to connect to.","ENDPOINT_EMPTY_TIP":"Please enter the endpoint.","ACCESS_KEY":"Access Key","ACCESS_KEY_DESC":"AWS account access key ID.","ACCESS_KEY_EMPTY_TIP":"Please enter the Access Key.","SECRET_KEY_DESC":"The secret associated with the AWS Access Key ID.","SECRET_KEY_EMPTY_TIP":"Please enter the Secret Key.","HTTP_PROTOCOL":"HTTP protocol","HTTP_PROTOCOL_DESC":"Use of insecure HTTP protocol.","ADD_STORAGE_CLASS":"Add storage class","ADD_STORAGE_CLASS_DESC":"Add user metadata for object storage.","OBJECT_STORAGE_PARAMETERS":"Object Storage Parameters","HTTP_CONFIGURATION":"HTTP configuration","HTTP_CONFIGURATION_DESC":"Configure the HTTP client that the receiver uses to communicate with the HTTP-based API service.","TLS_CERTIFICATE":"TLS certificate","TLS_CERTIFICATE_VERIFY":"Verify TLS certificate","TLS_CERTIFICATE_VERIFY_DESC":"Prove your identity or indicate that you are authorized to access an online service by submitting a digital certificate.","TLS_CONNECTION":"TLS connection","CA_CERTIFICATE_DESC":"The CA file used to verify the server certificate.","CERT_CERTIFICATE":"Cert file","CERT_CERTIFICATE_DESC":"Certificate file for client certificate authentication to the server.","KEY_FILE":"Key","KEY_FILE_DESC":"The key file used for client certificate authentication to the server.","SERVER_NAME_DESC":"ServerName extension to indicate the name of the server.","SERVER_CERTIFICATE_VERFICATION":"Server certificate verification","SERVER_CERTIFICATE_VERFICATION_DESC":"Prove your identity or indicate that you are authorized to access an online service by submitting a digital certificate.","RETENTION_RAW":"Raw data storage duration (days)","RETENTION_RAW_DESC":"Raw data storage duration. The raw data will be deleted after the duration expires.","RETENTION_FIVE_MIN":"5m downsampled data storage duration (days)","RETENTION_FIVE_MIN_DESC":"Specifies the data storage duration for downsampling to 1-hour intervals of data points.","RETENTION_ONE_HOUR":"1h downsampled data storage duration (days)","RETENTION_ONE_HOUR_DESC":"Specifies the data storage duration for downsampling to 1-hour intervals of data points.","DISABLE_STORAGE":"Disable long-term storage","DISABLE_STORAGE_DESC":"Are you sure to disable long term storage? After disabling, the object storage configuration will be removed, and the monitoring data will be retained but no longer queried.","ALERT_MANAGEMENT":"Alert Management","SELECT_CLUSTER":"Select Clusters","CUSTOM_PANEL_DESC":"Select to aggregate monitoring indicators of multiple clusters, and customize the global monitoring page of multiple clusters. ","WHIZARD_MONITORING.BUILT_IN_ALERTING_PL":"Built-in Alerts","WHIZARD_MONITORING.CUSTOM_ALERTING_PL":"Custom Alerts","WHIZARD_MONITORING.RESOURCE_RANKING_PL":"Resource Ranking","WHIZARD_MONITORING.RESOURCE_RANKING_DESC":"Resource Ranking displays the rankings of cluster resource usage.","WHIZARD_MONITORING.RESOURCE_MONITORING":"Resource Monitoring","WHIZARD_MONITORING.MULTI_CLUSTER_MONITOR":"Multi-cluster Monitoring","WHIZARD_MONITORING.PACK_UP":"Collapse","WHIZARD_MONITORING.UNFOLD":"Expand","WHIZARD_MONITORING.COLLAPSE_CLUSTER_LIST":"Collapse cluster list","WHIZARD_MONITORING.UNFOLD_CLUSTER_LIST":"Expand cluster List","WHIZARD_MONITORING.RESOURCE_FILTER":"Resource Query","WHIZARD_MONITORING.OBSERVABILITY_ALL_CLUSTERS":"All Clusters","WHIZARD_MONITORING.SUCCEEDED":"Succeeded","PERSISTENT_VOLUME_CLAIM_LOW_PL":"Persistent volume claims","GRAPHICS_MEMORY_USAGE":"Graphics Memory Usage","QUOTA_REQUEST":"Request","QUOTA_LIMIT":"Limit","QUOTA_TOTAL":"Total","CPU_QUOTA_USAGE":"Allocated CPU Resource","MEMORY_QUOTA_USAGE":"Allocated Memory Resource","QUOTA_ALLOCATED":"Allocated","VALUE_CORES":"{value, plural, =1 {1 core} other {# cores}}","VALUE_UNIT":"{value} {unit}","ALLOCATED_TOTAL":"Allocated/Total","CLUSTER_ROLES_AND_MEMBERS":"Cluster Members and Roles","CLUSTER_MEMBER_SCAP":"Cluster member","CLUSTER_MEMBERS_SCAP":"Cluster members","CLUSTER_ROLE_SCAP":"Cluster role","CLUSTER_ROLES_SCAP":"Cluster roles","OBSERVABILITY_CENTER":"Whizard Observability Center","DISTRIBUTED_OBSERVABILITY_CENTER_DESC":"Unified monitoring dashboard that provides metrics of all clusters managed by the platform.","GLOBAL_ALERTS":"Global Alerts","GLOBAL_ALERTS_TOOLTIP":"Only the alarms of the selected cluster are collected","NONE_ALERT":"No Alert Found","ALERT_EMPTY_DESC":"No global alert is found in the clusters.","SORT_BY_CLUSTER_CPU_USAGE":"Sort by CPU usage","SORT_BY_CLUSTER_CPU_UTILISATION":"Sort by CPU usage (%)","SORT_BY_CLUSTER_MEMORY_USAGE_WO_CACHE":"Sort by memory usage","SORT_BY_CLUSTER_MEMORY_UTILISATION":"Sort by memory usage (%)","SORT_BY_CLUSTER_DISK_SIZE_USAGE":"Sort by disk usage","SORT_BY_CLUSTER_DISK_SIZE_UTILISATION":"Sort by disk usage (%)","SORT_BY_CLUSTER_POD_COUNT":"Sort by the number of container groups","SORT_BY_CLUSTER_POD_UTILISATION":"Sort by pod quota usage (%)","SORT_BY_NODE_POD_COUNT":"Ranked by the number of container groups","SORT_BY_NODE_CPU_USAGE":"Sort by CPU usage","SORT_BY_NODE_MEMORY_USAGE_WO_CACHE":"Sort by memory usage","SORT_BY_NODE_LOAD5":"Sort by 5-minute CPU load average","SORT_BY_NODE_LOAD15":"Sort by 15-minute CPU load average","SORT_BY_POD_CPU_USAGE":"Sort by CPU usage","SORT_BY_POD_CPU_USED_REQUESTS_UTILISATION":"Sort by allocated CPU request (%)","SORT_BY_POD_CPU_USED_LIMITS_UTILISATION":"Sort by allocated CPU limit (%)","SORT_BY_POD_MEMORY_USAGE_WO_CACHE":"Sort by memory usage","SORT_BY_POD_MEMORY_USED_REQUESTS_UTILISATION":"Sort by allocated memory request (%)","SORT_BY_POD_MEMORY_USED_LIMITS_UTILISATION":"Sort by allocated memory limit (%)","SORT_BY_POD_NET_BYTES_TRANSMITTED":"Sort by outbound traffic","SORT_BY_POD_NET_BYTES_RECEIVED":"Sort by inbound traffic","SORT_BY_POD_PVC_BYTES_USAGE":"Sort by persistent volume usage","SORT_BY_POD_PVC_BYTES_UTILISATION":"Sort by persistent volume usage (%)","SORT_BY_NAMESPACE_CPU_USED_REQUESTS_UTILISATION":"Sort by allocated CPU request (%)","SORT_BY_NAMESPACE_CPU_USED_LIMITS_UTILISATION":"Sort by allocated CPU limit (%)","SORT_BY_NAMESPACE_MEMORY_USED_REQUESTS_UTILISATION":"Sort by allocated memory request (%)","SORT_BY_NAMESPACE_MEMORY_USED_LIMITS_UTILISATION":"Sort by allocated memory limit (%)","SORT_BY_NAMESPACE_PVC_BYTES_USED":"Sort by persistent volume usage","SORT_BY_NAMESPACE_PVC_COUNT":"Sort by number of pods","SORT_BY_POD_GPU_USAGE":"Sort by GPU usage","SORT_BY_POD_GPU_MEMORY_USAGE":"Sort by graphics memory usage","CPU_USAGE_TCAP":"CPU Usage","CPU_UTILISATION_TCAP":"CPU Usage (%)","MEMORY_USAGE_TCAP":"Memory Usage","MEMORY_UTILISATION_TCAP":"Memory Usage (%)","DISK_SIZE_USAGE_TCAP":"Disk Usage","DISK_SIZE_UTILISATION_TCAP":"Disk Usage (%)","POD_COUNT_TCAP":"Pods","NODE_POD_UTILISATION_TCAP":"Pod Quota Usage (%)","NODE_LOAD1_TCAP":"Average CPU Load (1 min)","NODE_LOAD5_TCAP":"Average CPU Load (5 min)","NODE_LOAD15_TCAP":"Average CPU Load (15 min)","INODE_USAGE_TCAP":"Inode Usage (%)","METER_NET_RECEIVED_USAGE_TCAP":"Inbound Traffic","METER_NET_TRANSMITTED_USAGE_TCAP":"Outbound Traffic","CPU_USED_REQUESTS_UTILISATION_TCAP":"Allocated CPU Request (%)","CPU_USED_LIMITS_UTILISATION_TCAP":"Allocated CPU Limit (%)","MEMORY_USED_REQUESTS_UTILISATION_TCAP":"Allocated Memory Request (%)","MEMORY_USED_LIMITS_UTILISATION_TCAP":"Allocated Memory Limit (%)","PVC_BYTES_USED_TCAP":"Persistent Volume Usage","PVC_BYTES_UTILISATION_TCAP":"Persistent Volume Usage (%)","POD_UTILISATION_TCAP":"Pod Quota Usage (%)","GPU_USAGE":"GPU Usage","GPU_UTILIZATION":"GPU Usage (%)","GPU_MEMORY_USAGE":"Graphics Memory Usage","GPU_MEMORY_USAGE_TCAP":"Graphics Memory Usage","GPU_MEMORY_UTILIZATION":"Graphics Memory Usage (%)","NODE_GPU_UTILIZATION":"GPU Usage (%)","NODE_GPU_MEMORY_UTILIZATION":"Graphics Memory Usage (%)","GPU_USAGE_TCAP":"GPU Usage","SORT_BY_DESC":"Descending","SORT_BY_ASC":"Ascending","OOM_KILL_PODS":"OOM killed pods","PENDING_PODS":"Pending pods","EVICTED_PODS":"Evicted pods","QOS_GUARANTEED":"Guaranteed: For every container in a pod, the CPU/memory request and limit are equal.","QOS_BURSTABLE":"Burstable: Criteria of Guaranteed is not met and at least one container has a request or limit.","QOS_BESTEFFORT":"BestEffort: No requests or limits are set.","COMPONENT_PARAMETER_CONFIG":"Component Settings","LICENSE":"License","LICENSE_DESC":"View information about the current license and update the license when necessary.","ACTIVATED":"Activated","INACTIVATED":"Not activated","EXPIRED":"Expired","LICENSE_ID":"License ID","AUTHORIZED_ORGANIZATION":"Authorized organization","AUTHORIZATION_TYPE":"Authorization type","AUTHORIZED_STATUS":"Authorized status","ACTIVATION_TYPE":"Activation type","WARRANTY":"Warranty","WARRANTY_PERIOD":"Under warranty","WARRANTY_EXPIRES":"Warranty expired","SUBSCRIPTION":"Subscription","SUBSCRIPTION_IN_PROGRESS":"Subscribed","SUBSCRIPTION_EXPIRES":"Subscription expired","PERMANENT_AUTHORIZATION":"Permanent Authorization","ACTIVATION_TIME":"Activation time","UPDATE_LICENSE":"Update License","ACTIVATION_CODE":"Activation Code","OBTAIN_ACTIVATION_CODE":"Obtain Activation Code","OBTAIN_ACTIVATION_CODE_DESC":"Visit {title} to obtain the license.","INVALID_LICENSE":"Invalid License","PRODUCT_SERVICE_AUTHORIZATION":"KubeSphere Enterprise Authorization","INVALID_ACTIVATION_CODE_DESC":"Invalid activation code. Please enter a Base64 string in JSON format.","EMPTY_LICENSE":"Invalid license.","INVALID_SIGNATURE":"Invalid signature.","FORMAT_ERROR":"Invalid activation code. Please enter a Base64 string in JSON format.","AUTHORIZED_FEATURES":"Authorized Features","FEATURE":"Feature","CURRENT_USER":"Current user","ADD_CURRENT_USER":"Add current user","NOTIFICATION_HISTORY":"Notification History","NOTIFICATION_HISTORY_PL":"Notification History","NOTIFICATION_HISTORY_DESC":"View notifications that have been sent to users.","ALERTING_NAME_TCAP":"Alert Name","ALERTING_TYPE_TCAP":"Alert Type","ALERTING_SEVERITY_TCAP":"Alert Severity","NOTIFICATION_MESSAGE":"Message","NOTIFICATION_TIME":"Notification Time","METRIC_ALERT":"Metric alert","EVENT_ALERT":"Event alert","AUDIT_ALERT":"Audit alert","LOGGING_ALERT":"Logging alert","ALERT_RESOLVED":"Resolved","NOTIFICATION_SETTINGS":"Notification Settings","SILENCE_POLICY":"Silence Policy","SILENCE_POLICY_LOW":"silence policy","SILENCE_POLICY_PL":"Silence Policies","SILENCE_POLICY_DESC":"Set the system not to send notifications under certain circumstances.","SILENCE_TIME":"Silence Time","CONTINUOUS_SILENCE":"Silent continuously","PERIODIC_SILENCE":"Silent periodically","SPECIFIC_TIME_RANGE_SILENCE":"Silent during time range","CUSTOM_SILENCE":"Silent based on cron expression","SILENCE_CONDITIONS":"Silence Conditions","ALL_SILENT_NOTIFICATIONS":"Silent for all notifications","CUSTOM_SILENT_NOTIFICATIONS":"Custom silence conditions","EDIT_SILENCE_CONDITIONS":"Edit Silence Conditions","EDIT_SILENCE_TIME":"Edit Silence Time","CREATE_SILENCE_POLICY_SUCCESSFULLY":"Created successfully.","EDIT_SILENCE_POLICY_SUCCESSFULLY":"Updated successfully.","CREATE_SILENCE_POLICY":"Create Silence Policy","ALL_SILENT_NOTIFICATIONS_TCAP":"Silent for All Notifications","ALL_SILENT_NOTIFICATIONS_DESC":"The silence policy applies to all notifications.","CUSTOM_SILENT_NOTIFICATIONS_TCAP":"Custom Silence Conditions","CUSTOM_SILENT_NOTIFICATIONS_DESC":"The silence policy applies only to notifications that meet specified conditions.","INVALID_SILENCE_CONDITION":"Please set a correct silence condition.","SILENT_TEMPLATE":"Template","SILENCE_TIME_TYPE_DESC":"Notifications that meet the silence conditions will be silenced during the specified time range.","SILENT_CRON":"Cron Expression","SILENCE_TIME_RANGE_EMPTY_DESC":"Please set the time range during which notifications are silenced.","SELECT_START_TIME_AND_END_TIME":"Select the start time and end time during which notifications are silenced.","SILENCE_DATE":"Date","SELECT_DATE":"Please select a date.","SILENCE_EVERY_DAY":"Every day","SILENCE_EVERY_WEEK":"Every week","SILENCE_EVERY_MONTH":"Every month","MONDAY":"Monday","TUESDAY":"Tuesday","WEDNESDAY":"Wednesday","THURSDAY":"Thursday","FRIDAY":"Friday","SATURDAY":"Saturday","SUNDAY":"Sunday","DAY":"day","HOUR":"Hour","MINUTE":"Minute","SECOND":"Second","CRON_EXPRESSION":"Cron Expression","CRON_EXPRESSION_DESC":"Enter a cron expression to specify the silence period.","CRON_EXPRESSION_REQUIRE_DESC":"Please enter a cron expression.","CRON_EXPRESSION_ERROR_DESC":"Invalid cron expression. Please enter a valid cron expression.","EVERY_DAY_TIMERANGE":"Every day: {timeRange}","EVERY_WEEK_DAYS_TIMERANGE":"Every week: {days} [{timeRange}]","EVERY_MONTH_DAYS_TIMERANGE":"Every month: {days} [{timeRange}]","NOTIFICATION_LANGUAGE":"Notification Language","NOTIFICATION_LANGUAGE_DESC":"Set the language of keys in notifications. Notifications are provided as key-value pairs.","NOTIFICATION_SIMPLIFIED_CHINESE_DESC":"Use simplified Chinese keys in notifications.","NOTIFICATION_ENGLISH_DESC":"Use English keys in notifications.","NOTIFICATION_LANGUAGE_CHANGE_SUCCESS":"Changed successfully.","PLATFORM_LOGO":"Platform Logo","PLATFORM_LOGO_REQUIRED":"Please upload a platform logo.","BROWSER_FAVICON":"Browser Favicon","BROWSER_FAVICON_REQUIRED":"Please upload a platform favicon.","LOGIN_BACKGROUND":"Login Page Background Image","NO_BACKGROUND":"No Background Image Found","NO_BACKGROUND_TIP":"Please click \"Customize Platform Information\" to upload a background image.","MODIFY_PLATFORM_INFO":"Customize Platform Information","PLATFORM_TITLE_TCAP":"Platform Title","PLATFORM_DESCRIPTION_TCAP":"Platform Description","PLATFORM_TITLE_TIP":"The platform title can contain any characters. The maximum length is 63 characters.","TITLE_EMPTY_TIP":"Please enter a platform title.","PLATFORM_LOGO_DESC":"The image format can be SVG, PNG, or JPG, the image file size cannot exceed 2 MB, and the recommended image resolution is 200 x 40 pixels.","BROWSER_FAVICON_DESC":"The image format can be ICO, SVG, PNG, or JPG, the image file size cannot exceed 2 MB, the recommended image resolution is 40 x 40 pixels, and the recommended aspect ratio is 1:1.","LOGIN_BACKGROUND_DESC":"The image format can be SVG, PNG, or JPG, the image file size cannot exceed 2 MB, and the recommended image resolution is 1920 x 1080 pixels.","UPLOAD_PLATFORM_IMAGE_FAILED":"Upload failed. {message}","UPLOAD_FILE_TOO_LARGE":"The image file size cannot exceed 2 MB. Please select another image file.","RESET_PLATFORM_INFO":"Reset Platform Information","RESET_PLATFORM_INFO_TIP":"Are you sure you want to reset the platform information?","SCALING_OBJECT":"Scalable Objects","LAST_SCALING_TIME":"Update Time","POLLING_INTERVAL":"Polling Interval","WAITING_TIME":"Waiting Time","TIME_ZONE":"Time zone","CORN_DESC":"Auto scaling according to the cron plan. ","SCALING_CUSTOM_DESC":"Auto scaling according to custom metrics. ","TOGGLER_PARAMS":"Trigger Parameters","TOGGLER_AUTHOR":"Trigger Authentication","INDICATOR_NAME":"Metric","EXPRESSION":"Expression","SCALING_Prometheus_DESC":"Auto scaling according to Prometheus. ","INDICATOR_TYPE":"Indicator type","TRIGGER":"Trigger","LABEL_KEY_VALUE_CANNOT_BE_EMPTY":"The key and value of the type cannot be empty.","TRIGGER_AUTHENTICATION_KEY_EQ_NAME":"The key of the trigger authentication must be name.","CUSTOM_SCALING_PL":"Custom Scaling","CUSTOM_SCALING_LOW":"Custom scaling","CUSTOM_SCALING_DESC":"Custom scaling automatically scales pods on demand to help optimize resource usage and costs. ","CUSTOM_SCALING_EMPTY_DESC":"Please create custom scaling.","CUSTOM_SCALING":"Custom Scaling","SCALER":"Scaler","STRETCH_OBJECT_READY":"ScaledObject Ready","TRIGGER_ACTIVE":"Active Triggers","RETRACTOR_FALLBACK":"Rollback","STRETCH_OBJECT_READY_DESC":"Whether the ScaledObject is ready for scaling","TRIGGER_ACTIVE_DESC":"Whether the ScaledObject has been scaled","RETRACTOR_FALLBACK_DESC":"Whether the scaler is able to fetch metrics from the source","EDIT_SCALING_SETTINGS":"Edit Scaling","SCALING_SETTINGS":"Scaling Settings","DISABLE_REPLICAS_SETTING":"Disable the number of replicas setting","WORKLOAD_SCALING_TOOL_TIP":"The horizontal autoscaling policy of pods with custom metrics has been set.","EDIT_CUSTOM_SCALING":"Edit Custom Scaling","ENV_CONTAINER":"env source container","ADD_WORKLOAD":"Add Workload","ADD_WORKLOAD_DESC":"Set up deployments and stateful replica sets as custom ScaledObjects.","EMPTY_SCALING_OBJECT_MESSAGE":"The scaledObject cannot be empty","PERCENT":"Percentage","EXPANSION_VALUE":"Scale-Up Value","STABILIZATION_WINDOW_SECONDS":"Stablization Window (s)","STABILIZATION_WINDOW_SECONDS_DESC":"The stabilization window is used to restrict the fluctuation of replicas count when the metrics used for scaling keep fluctuating.","POLICY_TYPE":"Policy Type","POLICY_PREFERENCE":"Policy Preference","POLICY_PREFERENCE_DESC":"The scaler adopts different policies according to your preference.","POLICY_TYPE_DUPLICATED":"Cannot configure multiple policies of the same type. ","TENDS_TO_SCALE_SIGNIFICANTLY":"Scale greatly","TENDS_TO_EXPAND_SLIGHTLY":"Scale slightly","SCALE_DISABLE":"Disable","EXPANSION_STRATEGY":"Scale-Up Policy","SCALING_STRATEGY":"Scale-Down Policy","EMPTY_POLICY_MESSAGE":"The configuration of the policy cannot be empty. ","TIME_ZONE_DESC":"Set the minimum number of container group replicas allowed, the default value is 0. ","REPLICAS_DESIRED_CRON_TRIGGER_DESC":"Number of replicas to which the resources must be scaled between the time range when a cron schedule starts and ends.","CRON_START":"Start","CRON_END":"End","CRON_START_DESC":" Cron expression directing the start of the cron schedule.","CRON_END_DESC":"Cron expression directing the end of the cron schedule.","EMPTY_TYPE_TRIGGER":"The value of type cannot be null.","ADD_TRIGGER":"Add Trigger","ADD_TRIGGER_DESC":"Add triggers according to the required metrics.","TRIGGER_TYPE":"Trigger Type","PROMETHUS_ADDRESS":"Promethus service address.","INDICATOR_NAME_PROMETHUS_DESC":"If multiple triggers are used, metric names must be unique. ","EXPRESSION_PROMETHUS_DESC":"Set the query expression.","THRESHOLD_PROMETHUS_DESC":"Set the threshold when the trigger start scaling.","SCALE_MINIMUM_REPLICAS_DESC":"Set the minimum number of pod replicas allowed, and the default value is 0.","SCALE_MAXIMUM_REPLICAS_DESC":"Set the maximum number of pod replicas allowed, and the default value is 1.","POLLING_INTERVAL_DESC":"Check the time interval for each trigger. By default, KEDA will check every trigger source on every ScaledObject every 30 seconds.","WAITING_TIME_DESC":"The period to wait after the last trigger reported active before scaling the resource back to 0. The default is 5 minutes (300 seconds). ","SCALE_ROLL_BACK_DESC":"Define the number of replicas to roll back if the scaler is faulty.","SCALE_FAILURE_THRESHOLD_DESC":"Limit the consecutive periods of time when each scaler fails to fetch metrics from its source.","EMPTY_FAILURE_THRESHOLD":"The failure threshold cannot be empty. ","FALLBACK_NUMBER":"Rollback Replicas","FALLBACK_NUMBER_DESC":"Number of rollback replicas after scaler failures exceed the threshold.","EMPTY_FALLBACK_NUMBER_DESC":"The number of rollback replicas cannot be empty.","TRIGGER_SETTING":"Trigger Settings","TRIGGER_SETTING_DESC":"Set the trigger for custom metrics.","RESTORE_TO_ORIGINAL_REPLICA_COUNT":"Restore to the original number of replicas","RESTORE_TO_ORIGINAL_REPLICA_COUNT_DESC":"Specify whether the number of replicas should be restored to the original after the target ScaledObject has been deleted. By default, the number of replicas equals to the number when the ScaledObject has been deleted.","SCALE_BEHAVIOR":"Scaling Behavior","SCALE_BEHAVIOR_DESC":"Configure the scaling behavior of the target ScaledObject.","CREATE_CUSTOM_SCALING":"Create Custom Scaling","CRON_TIME_ZONE_DESC":"One of the acceptable values in the IANA Time Zone Database.","PROMETHEUS_MIN_REPLICA_COUNT_DESC":"If the type the trigger is Prometheus, the minimum number of replicas must be greater than 0.","MIN_REPLICA_COUNT_LESS_THAN_MAX":"The minimum number of replicas cannot be greater than the maximum number of replicas.","RADONDB_APPS":"RadonDB Apps","RADONDB_APPS_DESC":"The RadonDB cloud-native apps provide enterprise-grade database services and products including relational databases, distributed databases, time series and analytical databases, and NoSQL databases.","WHAT_ARE_RADONDB_APPS":"What are RadonDB apps?","ACCESS_ADDRESS_PL":"Access Addresses","DATABASE_STATUS_FAILED":"Failed","DATABASE_STATUS_RUNNING":"Running","DATABASE_STATUS_UPDATING":"Updating","DATABASE_STATUS_CREATING":"Creating","DATABASE_STATUS_TRUE_NOTREADY":"Not ready","DATABASE_STATUS_TRUE_READY":"Ready","DATABASE_STATUS_CREATE_FAILED":"Creation failed","DATABASE_STATUS_UPDATE_FAILED":"Update failed","DATABASE_STATUS_DELETED":"Deleted","DATABASE_STATUS_COMPLETED":"Completed","DATABASE_STATUS_TERMINATING":"Terminating","READ_AND_WRITE_ADDRESS":"Read and Write Address","READ_ONLY_ADDRESS":"Read Only Address","KIBANA_ADDRESS":"Kibana Address","DASHBOARD_ADDRESS":"Dashboard Address","PRIMARY_ADDRESS":"Primary Address","STANDBY_ADDRESS":"Standby Address","DATABASE_OPERATION_WARNING":"This operation may interrupt the database service. Please perform this operation during off-peak hours.","VOLUME":"Volume","NODE_ROLE":"Node Role","CANNOT_REDUCE_VOLUME_SIZE":"The volume size cannot be reduced.","SCALE_OUT":"Scale Out","CANNOT_REDUCE_DATABASE_NODES":"The number of database nodes cannot be reduced.","MYSQL_NODES_DESC":"Number of database nodes. The value can be 2, 3, or 5.","REDIS_SENTINEL_NODES_DESC":"Number of database nodes. The value can be 3, 5, or 7.","MONGODB_NODES_DESC":"Number of database nodes.","NODE_COUNT_DESC":"Number of database nodes. The value range is {min} to {max}.","ADJUST_RESOURCES":"Adjust Resources","RESOURCES":"Resources","RESOURCES_DESC":"Set the CPU and memory resources allocated to the database service.","CORE_GIB":"{core, plural, =1 {1 core} other {# cores}}, {gib} GiB","BACK_UP":"Back Up","BACKUP_NAME_DESC":"The name can contain only lowercase letters, numbers, and hyphens (-), and must start with a lowercase letter. The maximum length is 24 characters.","INVALID_BACKUP_NAME_DESC":"Invalid name. The name can contain only lowercase letters, numbers, and hyphens (-), and must start with a lowercase letter. The maximum length is 24 characters.","BACKUP_NAME_EMPTY_DESC":"Please enter a backup name.","BACKUP_WARNING":"The backup process may cause pressure on database services. Please perform this operation during off-peak hours.","BACKUP_COMFIRM_TIP":"Are you sure you want to create a backup?","BACKUP_POSTGRE_SQL_TIP":"Ten backups are retained by default. If a retention policy is set during scheduled backup, the scheduled backup policy will be used first.","SET_AUTO_BACKUP":"Set Auto Backup","BACKUP_TIME":"Backup Time","BACKUP_DATE":"Backup Date","BACKUP_SCHEDULED_DELETE":"Delete Regularly","BACKUP_RETENTION_DAYS":"Retention Period","BACKUP_DAY":"Days","BACKUP_RETENTION_DAYS_ERROR":"The retention period must be set.","BACKUP_DATE_ERROR":"The backup date must be set.","REBALANCE_NODES":"Rebalance Nodes","POSTGRESQL_NODES_DESC":"The value range is 1 to 8.","REBALANCE_SUCCESS":"Rebalanced successfully.","REBALANCE_FAILED":"Rebalancing failed.","REBALANCING":"Rebalancing","START_REBALANCING":"Start Rebalancing","REBALANCING_HISTORY":"Rebalancing History","REBALANCING_IN_PROGRESS_DESC":"Node rebalancing is in progress. Please wait until node rebalancing is complete.","KAFKA_OPERATION_WARNING":"This operation may interrupt the Kafka service. Please perform this operation during off-peak hours.","UPDATE_VERSION":"Upgrade Version","UPDATE_VERSION_DESC":"Are you sure you want to upgrade this resource?","SHARD":"Shard","SHARD_PL":"Shards","PROXY_NODE":"Proxy Node","NODE_IP_ADDRESS_SCAP":"Node IP address","NODE_PORT":"Node port","NO_DATABASE_CONNECTION_AVAILABLE":"No Database Connection Available","MANAGEMENT_NODE":"Management Node","PRIMARY_NODE":"Primary node","PRIMARY_NODE_PL":"Primary nodes","HOT_NODE":"Hot node","HOT_NODE_PL":"Hot nodes","WARM_NODE":"Warm node","WARM_NODE_PL":"Warm nodes","COLD_NODE":"Cold node","COLD_NODE_PL":"Code nodes","KIBANA_NODE":"Kibana node","KIBANA_NODE_PL":"Kibana nodes","KAFKA_NODE":"Kafka node","KAFKA_NODE_PL":"Kafka nodes","KAFKA_RESOURCES":"Kafka resources","ZOOKEEPER_NODE":"ZooKeeper node","ZOOKEEPER_NODE_PL":"ZooKeeper nodes","LOGSTASH_NODE":"Logstash node","DASHBOARD_NODE":"Dashboard node","ZOOKEEPER_RESOURCES":"ZooKeeper resources","STANDBY_NODE":"Standby node","STANDBY_NODE_PL":"Standby nodes","SENTINEL_NODE":"Sentinel node","DATABASE_RUNNING_FOR_VALUE":"The database has been running for {value}.","BACKUPS":"Backups","BACKUP":"Backup","BACKUP_LOW":"backup","BACKUP_PL":"Backups","RESTORE_FROM_BACKUP":"Restore from Backup","BACKUP_IN_PROGRESS_DESC":"Cluster backup is in progress.","SIZE_GIB":"Size (GiB)","BACKUP_START_TIME":"Backup Start Time","BACKUP_END_TIME":"Backup End Time","CREATE_BACKUP":"Create Backup","BACKUP_NOT_ALLOWED_DESC":"Data backup is not allowed currently.","DATABASE_USERS":"Database Users","DATABASE_USERS_EMPTY_DESC":"Add a user to access the database","NO_AUTHENTICATION_DESC":"The authentication type of the database cluster is \"No authentication\". To control uesr access permissions, please change the value of \"Authentication Type\" on the \"Parameters\" tab.","KAFKA_USERS":"Kafka Users","USERCREATION_NOT_ALLOWED":"User creation is not allowed currently.","CANNOT_EDIT_ROOT_USER":"This user is the root user and cannot be edited.","CANNOT_DELETE_ROOT_USER":"This user is the root user and cannot be deleted.","SECRET_KEY":"Secret Key","USER_CERTIFICATE":"User Certificate","VALIDITY_PERIOD":"Validity Period","CA_CERTIFICATE":"CA Certificate","CA_PASSWORD":"CA Password","AUTHORIZATION_RULE":"Authorization Rule","KAFKA_NO_AUTHENTICATION_DESC":"The authentication type of the Kafka cluster is \"No authentication\". To access Kafka as a user, please change the value of \"Authentication Type\" on the \"Parameters\" tab.","KAFKA_NO_USER_DESC":"Create a user to access Kafka.","DELETE_USER":"Delete User","DATABASE_USERNAME_DESC":"The username can contain only uppercase letters, lowercase letters, numbers, and underscores (_), and must start with an uppercase or lowercase letter. The length must be 2 to 26 characters.","INVALID_DATABASE_USERNAME_DESC":"Invalid username. The username can contain only uppercase letters, lowercase letters, numbers, and underscores (_), and must start with an uppercase or lowercase letter. The length must be 2 to 26 characters.","PG_USERNAME_DESC":"The username can contain only lowercase letters, numbers, and underscores (_), and must start with a lowercase letter. The length must be 2 to 26 characters.","INVALID_PG_USERNAME_DESC":"Invalid username. The username can contain only lowercase letters, numbers, and underscores (_), and must start with a lowercase letter. The length must be 2 to 26 characters.","DATABASE_PASSWORD_DESC":"The password must contain at least one uppercase letter, one lowercase letter, one number, and one special character (!@#$%^&*_+-=). The length must be 8 to 32 characters.","DATABASE_PASSWORD_CHARACTERS":"The password must contain at least one special character (!@#$%^&*_+-=).","DATABASE_PASSWORD_CHARACTERS_EXCLUDE":"Special characters in the password can only be !@#$%^&*_+-=.","INVALID_DATABASE_PASSWORD_DESC":"Invalid password. The password must contain at least one uppercase letter, one lowercase letter, one number, and one special character (!@#$%^&*_+-=). The length must be 8 to 32 characters.","USERNAME_FORBIDDEN_STRINGS":"The username cannot be root or start with radondb_.","USERNAME_CANNOT_BE_PROGRES":"The username cannot be postgres, pgautofailover_monitor, or pgautofailover_replicator.","USERNAME_CANNOT_BE_CLICKHOUSE":"The username cannot be clickhouse_operator.","KAFKA_USERNAME_DESC":"The username can contain only lowercase letters, numbers, and hyphens (-). The maximum length is 64 characters.","PERMISSIONS":"Permissions","GENERAL_PERMISSIONS":"General permissions","ADVANCED_PERMISSIONS":"Advanced permissions","AUTHENTICATION_MODE":"Authentication Mode","AUTHENTICATION_MODE_INCORRECT_DESC":"The authentication mode is inconsistent with that of the database cluster. The user cannot access the database cluster.","AUTHENTICATION_MODE_INCORRECT_ALERT":"The authentication mode of the database cluster is {cluster}. If the authentication mode of the user is set to {user}, the user cannot access the database cluster.","AUTHORIZATION_MODE":"Authorization Mode","SIMPLE_AUTHORIZATION":"Simple authorization","AUTHORIZATION_MODE_DESC":"Currently, only simple authorization is supported.","AUTHORIZED_DATABASES":"Authorized Databases","AUTHORIZED_DATABASES_DESC":"Databases that the user can access. Enter * (all databases) or a database name.","AUTHORIZED_HOSTS":"Authorized Hosts","AUTHORIZED_HOSTS_DESC":"Hosts that the user can access. Enter % (all hosts), an IP address, or multiple IP addresses separated by commas (,).","PERMISSION_RULE":"Permission Rule","PERMISSION_RULE_DESC":"You can add multiple permission rules for the user.","RESOURCE_TYPE_DESC":"Resource type to which the rule applies.","RESOURCE_MATCHING_MODE":"Resource Matching Mode","RESOURCE_MATCHING_MODE_DESC":"Matching mode for resource names.","PREFIX_DESC":"Prefix matching, applies the rule to all resources whose names start with this value.","LITERAL_DESC":"Literal matching, can be set to *, indicating that the rule applies to all resources.","PREFIX":"Prefix","LITERAL":"Literal","OPERATION":"Operation","OPERATION_DESC":"Select an operation to which the rule applies.","DATABASE_OPERATION_READ":"Read","DATABASE_OPERATION_WRITE":"Write","DATABASE_OPERATION_DELETE":"Delete","DATABASE_OPERATION_ALTER":"Alter","DATABASE_OPERATION_DESCRIBE":"Describe","DATABASE_OPERATION_ALL":"All","DATABASE_OPERATION_IDEMPOTENTWRITE":"Idempotent write","DATABASE_OPERATION_CLUSTERACTION":"Cluster action","DATABASE_OPERATION_CREATE":"Create","DATABASE_OPERATION_ALTERCONFIGS":"Alter configs","DATABASE_OPERATION_DESCRIBECONFIGS":"Describe configs","ALLOW":"Allow","RULE_TYPE_DESC":"Currently, the rule type can only be \"Allow\".","GROUP":"Group","TRANSACTION_ID":"Transaction ID","ACL_DESC":"Set ACL to control permissions of the user according to official Redis rules.","TOPICS":"Topics","MESSAGE_RETENTION_TIME":"Message Retention Time","EDIT_TOPIC":"Edit Topic","TOPIC_CREATION_NOT_ALLOWED":"Topic creation is not allowed currently.","NO_TOPIC_FOUND":"No Topic Found","TOPIC_EMPTY_DESC":"Please create a topic.","CREATE_TOPIC":"Create Topic","TOPIC_NAME_DESC":"The name can contain only lowercase letters, numbers, and hyphens (-), and must start with a lowercase letter. The maximum length is 24 characters.","INVALID_TOPIC_NAME_DESC":"Invalid name. The name can contain only lowercase letters, numbers, point (.), and hyphens (-), and must start with a lowercase letter. The maximum length is 100 characters.","TOPIC_NAME_EMPTY_DESC":"Please enter a topic name.","PARTITION_COUNT":"Partitions","COMPACT":"Compact","INVALID_PARTITION_COUNT_DESC":"Invalid number of partitions. The value cannot be less than {min} or greater than {max}.","TOPIC_REPLICA_COUNT_DESC":"The number of replicas cannot exceed the number of nodes in the Kafka cluster.","CLEANUP_POLICY_DESC":"Whether to delete outdated logs or compress logs by key (Kafka Connect needs to use the compact mode).","CLEANUP_POLICY_DELETE":"Delete","CLEANUP_POLICY_COMPACT":"Compact","MIN_INSYNC_REPLICAS_DESC":"Minimum number of replicas when request.required.acks of the producer is set to 1.","UNCLEAN_LEADER_ELECTION_ENABLE_DESC":"Whether to allow a replica that does not belong to the ISR to be elected as a leader.","SEGMENT_MS_DESC":"Maximum time in milliseconds before a segment is rolled out. The minimum value is 86400000.","RETENTION_MS_DESC":"Time in milliseconds before deleting a log file.","RETENTION_BYTES_DESC":"Maximum size of a log before deleting it. If both retention.ms and retention.bytes are set, the log will be deleted when either of the thresholds is reached. The value -1 indicates that all logs are retained.","MAX_MESSAGE_BYTES_DESC":"Maximum message size at the topic level. If no value is provided, the instance-leval maximum message size 1 MB is used.","ALERT_RULE_GROUP_PL":"Alert Rule Groups","PARAMETER":"Parameter","RANGE":"Range","AUTO_RESTART":"Auto Restart","ALERTING_POLICY_CREATION_NOT_ALLOWED":"Alert rule group creation is not allowed currently.","EDIT_NOT_ALLOWED":"Parameter editing is not allowed currently.","DBPARAM_DATABASE_VERSION":"Kernel Version","DBPARAM_DATABASE_VERSION_DESC":"Database kernel version.","DBPARAM_FSYNC_DESC":"Whether the PostgreSQL server will ensure (if possible) that updates are physically written to disks.","DBPARAM_SHARED_BUFFERS_DESC":"Memory in MB used by the database server as shared buffers.","DBPARAM_TEMP_BUFFERS_DESC":"Maximum size of memory in MB used by each database session as temporary buffers.","DBPARAM_WORK_MEM_DESC":"Maximum size of memory in MB used by query operations before data is written to temporary disk files.","DBPARAM_MAX_WAL_SENDERS_DESC":"Maximum number of WAL sender processes that run simultaneously.","DBPARAM_LOG_MIN_DURATION_STATEMENT_DESC":"Minimum execution time in milliseconds of logged statements.","DBPARAM_MAX_CONNECTIONS_DESC":"Maximum number of concurrent connections.","DBPARAM_WORKER_PROCESSES_DESC":"Maximum number of concurrent worker processes.","DBPARAM_CHECKPOINT_TIMEOUT_DESC":"Maximum interval in seconds between automatic WAL checkpoints.","DBPARAM_AUTOVACUUM_VACUUM_COST_DELAY_DESC":"Cost delay value in milliseconds for autovacuum operations.","DBPARAM_AUTOVACUUM_VACUUM_COST_LIMIT_DESC":"Cost limit value for autovacuum operations.","DBPARAM_AUTOVACUUM_ANALYZE_SCALE_FACTOR_DESC":"Fraction of the table size that triggers an ANALYZE operation of autovacuum.","DBPARAM_AUTOVACUUM_VACUUM_SCALE_FACTOR_DESC":"Fraction of the table size that triggers a VACUUM operation of autovacuum.","DBPARAM_VACUUM_DEFER_CLEANUP_AGE_DESC":"Delay of VACUUM and HOT cleanup operations, measured by the number of transactions.","DBPARAM_SEQ_PAGE_COST_DESC":"The planner's estimate of the cost of a sequential disk page fetch.","DBPARAM_RANDOM_PAGE_COST_DESC":"The planner's estimate of the cost of a non-sequential disk page fetch.","DBPARAM_CPU_TUPLE_COST_DESC":"The planner's estimate of the cost of processing each row during a query.","DBPARAM_CPU_INDEX_TUPLE_COST_DESC":"The planner's estimate of the cost of processing each index entry during an index scan.","DBPARAM_BGWRITER_DELAY_DESC":"Sleep time in milliseconds between activity rounds of the background writer.","DBPARAM_WAL_WRITER_DELAY_DESC":"Sleep time in milliseconds between activity rounds of the WAL writer.","DBPARAM_WAL_WRITER_FLUSH_AFTER_DESC":"Amount of WAL in MB written by the WAL writer that triggers a flush.","DBPARAM_FULL_PAGE_WRITES_DESC":"Whether to set the PostgreSQL server to write the entire content of each disk page to WAL during the first modification of that page after a checkpoint.","DBPARAM_WAL_COMPRESSION_DESC":"Whether to set the PostgreSQL server to compress full pages written to WAL when full_page_writes is on or during a base backup.","DBPARAM_SYNCHRONOUS_COMMIT_DESC":"Amount of WAL processing that needs to be completed before the database server returns a sucess indication to the client.","DBPARAM_MAINTENANCE_WORK_MEM_DESC":"Maximum amount of memory in MB to be used for maintenance operations such as VACUUM, CREATE INDEX and ALTER TABLE ADD FOREIGN KEY.","DBPARAM_MAX_REPLICATION_SLOTS_DESC":"Maximum number of replication slots. Changing the value will cause the database service to restart.","DBPARAM_AUTOVACUUM_DESC":"Whether the server should run the autovacuum launcher daemon.","DBPARAM_VACUUM_COST_DELAY_DESC":"Amount of time that the process will sleep when the cost limit has been exceeded.","DBPARAM_AUTOVACUUM_NAPTIME_DESC":"Minimum delay between autovacuum runs on any given database.","DBPARAM_COMMIT_DELAY_DESC":"Delay in microseconds between transaction commit and flushing WAL to disks.","DBPARAM_COMMIT_SIBLINGS_DESC":"Minimum number of concurrent open transactions before performing commit_delay.","DBPARAM_LOG_MIN_MESSAGES_DESC":"Levels of messages that are written to the server log.","DBPARAM_BGWRITER_LRU_MAXPAGES_DESC":"Maximum number of LRU pages to be flushed by the background writer per round.","DBPARAM_BGWRITER_FLUSH_AFTER_DESC":"Whenever more than this amount of data (in KB) has been written by the background writer, attempts to force the OS to issue these writes to the underlying storage.","DBPARAM_STATEMENT_TIMEOUT_DESC":"Maximum allowed duration in microseconds of any statement. Statements that take more than this amount of time will be aborted.","DBPARAM_IDLE_IN_TRANSACTION_SESSION_TIMEOUT_DESC":"Maximum allowed idle time in microseconds between queries in a transaction. Sessions that have been idle for more than this amount of time will be terminated.","DBPARAM_LOG_STATEMENT_DESC":"Types of SQL statements to be logged.","DBPARAM_LOG_WAL_LEVEL_DESC":"Level of information written to the WAL.","DBPARAM_PG_PORT_DESC":"Port number that the PostgreSQL server listens on. The value cannot be 55555.","PG_PORT_FORBIDDEN_ERROR":"The port number cannot be 55555.","DBPARAM_JIT_DESC":"Whether JIT compilation (if available) can be used by PostgreSQL.","DBPARAM_AUDIT_LOG_POLICY_DESC":"Policy adopted by the audit log plugin when writing events to its log file.","DBPARAM_AUDIT_LOG_FORMAT_DESC":"Audit log file format.","DBPARAM_AUDIT_LOG_ROTATE_ON_SIZE_DESC":"Size of a single audit log file. If the value is not a multiple of 4096, the value is truncated to the nearest multiple of 4096.","DBPARAM_AUDIT_LOG_ROTATIONS_DESC":"Maximum number of audit log files.","DBPARAM_DEFAULT_STORAGE_ENGINE_DESC":"Default storage engine.","DBPARAM_INNODB_BUFFER_POOL_SIZE_DESC":"Buffer pool size. 80% of the memory can be allocated at most. If the value is set to -1, 60% of the memory is allocated. The value is always increased to an integer multiple of (innodb_buffer_pool_chunk_size x innodb_buffer_pool_instances).","DBPARAM_CHARACTER_SET_SERVER_DESC":"Default character set of the database server.","DBPARAM_EXPIRE_LOGS_DAYS_DESC":"Retention period of binary log files.","DBPARAM_LONG_QUERY_TIME_DESC":"Slow query time threshold. SQL statements that take more time than the value of this parameter are considered to be slow queries.","DBPARAM_MAX_CONNECT_ERRORS_DESC":"Maximum number of consecutive connection failures allowed before the database server blocks further connections from a host.","DBPARAM_WAIT_TIMEOUT_DESC":"Maximum number of seconds the database server waits for activity on a noninteractive connection before closing it.","DBPARAM_MAX_ALLOWED_PACKET_DESC":"Maximum packet size. If the value is not a multiple of 1024, the value will be truncated to a multiple of 1024. If you need to change the value, ensure that the value is less than or equal to the value of slave_pending_jobs_size_max. Otherwise, replication between the primary and standby nodes may become abnormal.","DBPARAM_SLAVE_PARALLEL_WORKERS_DESC":"Number of parallel replication threads.","DBPARAM_SKIP_NAME_RESOLVE_DESC":"Whether to forbid domain name resolution.","DBPARAM_AUTOCOMMIT_DESC":"Whether to enable the autocommit mode.","DBPARAM_TRANSACTION_ISOLATION_DESC":"Transaction isolation level.","DBPARAM_INNODB_FLUSH_METHOD_DESC":"InnoDB file flushing method.","DBPARAM_INNODB_USE_NATIVE_AIO_DESC":"Whether InnoDB uses the Linux asynchronous I/O subsystem.","DBPARAM_MONGODB_PORT_DESC":"Port number that the MongoDB server listens on.","DBPARAM_OPLOGSIZEMB_DESC":"Maximum size in MB of the oplog file.","DBPARAM_MAXINCOMINGCONNECTIONS_DESC":"Maximum number of simultaneous connections that mongos or mongod will accept.","DBPARAM_CURSORTIMEOUTMILLIS_DESC":"Expiration threshold in milliseconds for idle cursors before MongoDB removes them.","DBPARAM_PROFILINGMODE_MODE":"Whether to enable the profiling mode.","DBPARAM_SLOWOPTHRESHOLDMS_DESC":"Slow operation time threshold. Operations that take more time than the value of this parameter are considered to be slow operations.","DBPARAM_ENABLEMAJORITYREADCONCERN_DESC":"Whether to use the secure read policy. Changing the value will cause the database service to restart.","DBPARAM_COMMANDVERBOSITY_DESC":"Log message verbosity level for components related to commands.","DBPARAM_INDEXVERBOSITY_DESC":"Log message verbosity level for components related to indexing operations.","DBPARAM_QUERYVERBOSITY_DESC":"Log message verbosity level for components related to query operations.","DBPARAM_NETWORKVERBOSITY_DESC":"Log message verbosity level for components related to networking operations.","DBPARAM_WRITEVERBOSITY_DESC":"Log message verbosity level for components related to write operations.","DBPARAM_MAXMEMORY_DESC":"Maximum size of memory in MB avaiable to Redis.","DBPARAM_ACTIVEREHASHING_DESC":"Whether to enable active rehashing to save memory.","DBPARAM_APPENDONLY_DESC":"Whether to enable AOF persistence.","DBPARAM_APPENDFSYNC_DESC":"AOF sync policy.","DBPARAM_CLUSTER_NODE_TIMEOUT_DESC":"Maximum amount of time in milliseconds a Redis cluster node can be unavailable before it is considered failed.","DBPARAM_LATENCY_MONITOR_THRESHOLD_DESC":"Slow operation time threshold in milliseconds. Operations that take more time than the value of this parameter will be logged. The value 0 indicates that this feature is disabled.","DBPARAM_MAXCLIENTS_DESC":"Maximum number of client connections. The value 0 (default) indicates that the number of client connections is not limited.","DBPARAM_MAXMEMORY_POLICY_DESC":"Policy adopted by Redis when the amount of memory used by Redis reaches the limit.","DBPARAM_MAXMEMORY_SAMPLES_DESC":"Number of samples used for the Redis eviction algorithm when the amount of memory used by Redis reaches the limit.","DBPARAM_MIN_SLAVES_MAX_LAG_DESC":"The primary database allows write operations only when at least min-slaves-to-write standby databases exist and the network delays of the standby databases do not exceed the value of this parameter.","DBPARAM_MIN_SLAVES_TO_WRITE_DESC":"See the decription of min-slaves-max-lag.","DBPARAM_NO_APPENDFSYNC_ON_REWRITE_DESC":"Whether to block fsync() calls when a BGSAVE or BGREWRITEAOF operation is in progress.","DBPARAM_NOTIFY_KEYSPACE_EVENTS_DESC":"Types of notifications sent by Redis.","DBPARAM_REPL_BACKLOG_SIZE_DESC":"Size of replication backlog.","DBPARAM_REPL_BACKLOG_TTL_DESC":"Retention period of replication backlog.","DBPARAM_REPL_TIMEOUT_DESC":"Replication timeout interval.","DBPARAM_SET_MAX_INTSET_ENTRIES_DESC":"Intset encoding is used when a set consists entirely of Base10 64-bit signed integers and the number of elements in the set does not exceed the value of this parameter. ","DBPARAM_SLOWLOG_LOG_SLOWER_THAN_DESC":"Maximum operation execution time in microseconds. Operations that exceed the value of this parameter will be recorded in the slowlog.","DBPARAM_SLOWLOG_MAX_LEN_DESC":"Maximum length of the slowlog.","DBPARAM_HASH_MAX_ZIPLIST_ENTRIES_DESC":"Ziplist encoding is used when a hash object satisfies both of the following conditions: a) The length in bytes of each key and each value of the hash object does not exceed the hash-max-ziplist-value value; b) The number of key-value pairs in the hash object does not exceed the hash-max-ziplist-entries value.","DBPARAM_HASH_MAX_ZIPLIST_VALUE_DESC":"See the description of hash-max-ziplist-entries.","DBPARAM_LIST_MAX_ZIPLIST_ENTRIES_DESC":"Ziplist encoding is used when a list object satisfies both of the following conditions: a) The length in bytes of each element of the list object does not exceed the list-max-ziplist-value value; b) The number of elements in the list object does not exceed the list-max-ziplist-entries value.","DBPARAM_LIST_MAX_ZIPLIST_VALUE_DESC":"See the description of list-max-ziplist-entries.","DBPARAM_ZSET_MAX_ZIPLIST_ENTRIES_DESC":"Ziplist encoding is used when a zset object satisfies both of the following conditions: a) The length in bytes of each element of the zset object does not exceed the zset-max-ziplist-value value; b) The number of elements in the zset object does not exceed the zset-max-ziplist-entries value.","DBPARAM_ZSET_MAX_ZIPLIST_VALUE_DESC":"See the description of zset-max-ziplist-entries.","DBPARAM_LUA_TIME_LIMIT_DESC":"Lua script timeout limit in milliseconds. 0 or a negative value indicates that no timeout limit is used.","DBPARAM_IO_THREADS_DO_READS_DESC":"Whether to enable multi-thread reading.","DBPARAM_IO_THREADS_DESC":"Number of I/O threads.","DBPARAM_LOGFILE_DESC":"Whether to export log information to stdout or a log file.","DBPARAM_THREAD_POOL_WRITE_QUEUE_SIZE_DESC":"Write queue size of the thread pool.","DBPARAM_THREAD_POOL_SEARCH_QUEUE_SIZE_DESC":"Search queue size of the thread pool.","DBPARAM_ACTION_DESTRUCTIVE_REQUIRES_NAME_DESC":"Whether to forbid wildcards and _all during index deletion. You can set this parameter to false to allow wildcards and _all.","DBPARAM_HTTP_CORS_ENABLED_DESC":"Whether to enable cross-origin resource sharing.","DBPARAM_HTTP_CORS_ALLOW_ORIGIN_DESC":"Origins that can be used for cross-origin resource sharing.","DBPARAM_INDICES_FIELDDATA_CACHE_SIZE":"Maximum amount of heap space that can be used as the field datata cache.","DBPARAM_INDICES_MEMORY_INDEX_BUFFER_SIZE_DESC":"Size of heap space allocated to a node to be used as the indexing buffer shared across all shards. The value can be a percentage or byte size.","DBPARAM_INDICES_QUERIES_CACHE_SIZE_DESC":"Memory size for the filter cache. Accepts either a percentage value such as 5% or an exact value such as 512mb. The default value is 10%.","DBPARAM_INDICES_REQUESTS_CACHE_SIZE_DESC":"Size of the shard request cache managed at the node level. The default value is 1% of the heap space.","DBPARAM_REINDEX_REMOTE_WHITELIST_DESC":"Addresses of remote Elasticsearch nodes to be whitelisted so that reindexing is allowed. You can separate multiple addresses by commas (for example, otherhost:9200, 192.168.1.*:9200, localhost:*).","DBPARAM_CLUSTER_ROUTING_ALLOCATION_AWARENESS_ATTRIBUTES_DESC":"Attributes used for shard allocation awareness. The possible values are k8s_node_name and zone and you can separate two values by a comma.","DBPARAM_REPLICACOUNT_DESC":"Number of replicas for each shard. The value cannot be changed after the database cluster is created and the default value is 2.","DBPARAM_TCPPORT_DESC":"TCP port of the database cluster. The default value is 9000.","DBPARAM_HTTPPORT_DESC":"HTTP port of the database cluster. The default value is 8123.","DBPARAM_MAX_SERVER_MEMORY_USAGE":"Maximum amount of memory in bytes available to the ClickHouse server.","DBPARAM_MAX_MEMORY_USAGE":"Maximum amount of memory in bytes available to a single query of the ClickHouse server.","DBPARAM_AUTHENTICATION_TYPE":"Authentication Type","KAFKA_PARAMETERS":"Kafka parameters","KAFKA_USER_PARAMETERS":"User Quotas","ZOOKEEPER_PARAMETERS":"ZooKeeper parameters","KAFKA_EDIT_PARAMS_ERROR":"Failed to set parameters. When Authentication Type is set to TLS, TLS cannot be set to false.","DBPARAM_KAFKA_TLS_DESC":"Whether to enable TLS encryption.","DBPARAM_KAFKA_AUTHENTICATION_TYPE_DESC":"Authentication type of Kafka.","DBPARAM_NODE_PORT":"Node Port","DBPARAM_NODE_PORT_DESC":"Whether to enable KubeSphere node port for external access.","DBPARAM_LOG_RETENTION_BYTES_DESC":"Maximum size in bytes of a partition. The deletion policy will be triggered if a partition exceeds the limit.","DBPARAM_LOG_RETENTION_HOURS_DESC":"Maximum retention time in hours of a log file before deleting it.","DBPARAM_LOG_SEGMENT_BYTES_DESC":"Maximum size in bytes of a segment file.","DBPARAM_LOG_SEGMENT_DELETE_DELAY_MS_DESC":"Amount of time to wait before deleting a segment file.","DBPARAM_LOG_ROLL_HOURS_DESC":"Maximum time in hours before a new segment is rolled out.","DBPARAM_OFFSETS_TOPIC_REPLICATION_FACTOR":"Replication factor for the offsets topic (set higher to ensure availability). Internal topic creation will fail until the cluster size meets this replication factor requirement.","DBPARAM_LOG_CLEANUP_POLICY_DESC":"Default cleanup policy for segments beyond the retention window. The possible values are delete and compact and you can separate two values by a comma.","DBPARAM_LOG_CLEANER_ENABLE_DESC":"Whether to enable the log cleaner process on the server.","DBPARAM_COMPRESSION_TYPE_DESC":"Compression type of a topic.","DBPARAM_MESSAGE_MAX_BYTES_DESC":"Maximum size in bytes of a record batch.","DBPARAM_NUM_NETWORK_THREADS_DESC":"Number of threads that the server uses for receiving requests from the network and sending responses to the network.","DBPARAM_NUM_IO_THREADS_DESC":"Number of threads that the server uses for processing requests, which may include disk I/O.","DBPARAM_NUM_RECOVERY_THREADS_PER_DATA_DIR_DESC":"Number of threads per data directory to be used for log recovery at startup and flushing at shutdown.","DBPARAM_NUM_REPLICA_FETCHERS_DESC":"Number of fetcher threads used to replicate messages from a source broker.","DBPARAM_QUEUED_MAX_REQUESTS_DESC":"Number of queued requests allowed before blocking the network threads.","DBPARAM_REPLICA_LAG_TIME_MAX_MS_DESC":"If a follower has not sent any fetch requests or has not consumed up to the leaders log end offset for at least this time, the leader will remove the follower from the ISR.","DBPARAM_GROUP_MAX_SESSION_TIMEOUT_MS_DESC":"Maximum allowed session timeout for registered consumers.","DBPARAM_GROUP_MIN_SESSION_TIMEOUT_MS_DESC":"Minimum allowed session timeout for registered consumers.","DBPARAM_AUTO_CREATE_TOPICS_ENABLE_DESC":"Whether to enable automatic topic creation.","DBPARAM_MIN_INSYNC_REPLICAS_DESC":"Minimum number of replicas in the ISR set.","DBPARAM_DEFAULT_REPLICATION_FACTORS_DESC":"Default replication factor.","DBPARAM_TICKTIME_DESC":"Basic time unit in milliseconds used by ZooKeeper. It is used for heartbeats and the minimum session timeout will be twice the tickTime.","DBPARAM_INITLIMIT_DESC":"Maximum number of ticks allowed for a follower to connect to and sync data with the leader.","DBPARAM_SYNCLIMIT_DESC":"Maximum number of ticks allowed for a follower to sync data. If the synchronization process exceeds the limit, the follower will be discarded.","DBPARAM_MAXCLIENTCNXNS_DESC":"Maximum number of concurrent connections at the socket level that a single client (identified by IP address) can make to a single member of the ZooKeeper ensemble. This is used to prevent certain classes of DoS attacks such as file descriptor exhaustion.","DBPARAM_AUTOPURGE_SNAPRETAINCOUNT_DESC":"Number of most recent snapshots and the corresponding transaction logs retained when the ZooKeeper auto purge feature is enabled.","DBPARAM_AUTOPURGE_PURGEINTERVAL_DESC":"Interval in hours of auto purge operations. The value 0 indicates that auto purge is disabled.","KAFKA_USER_RESOURCE_NAME_EMPTY_ERROR":"Please enter a resource name.","DBPARAM_KAFKA_PARTITIONS_DESC":"Default number of topic partitions","DBPARAM_PRODUCER_BYTERATE_DESC":"The quota on the maximum number of bytes per second that each client group in the group can produce to the broker before being throttled. range ({min}-{max})","DBPARAM_CONSUMER_BYTERATE_DESC":"The quota on the maximum number of bytes per second that each client group in the group can consume from the broker before being throttled. range ({min}-{max})","DBPARAM_REAUSET_PERCENTAGE_DESC":"Maximum CPU utilization quota for each client group. range ({min}-{max})","DBPARAM_CONTROLLER_MUTATION_DESC":"The rate quota for create topic requests, create partition requests, and delete topic requests. range ({min}-{max})","ACTIVE_CONNECTIONS":"Active Connections","ACTIVE_SESSIONS":"Active Sessions","IDLE_IN_TRANSACTION":"Idle in Transaction","IDLE_CONNECTIONS":"Idle Connections","CACHE_HIT_RATIO":"Cache Hit Ratio","CACHE_HIT_RATIO_EACH_DATABASE":"Cache Hit Ratio of Each Database","ACTIVITY":"Activity","CONNECTIONS":"Connections","DATABASE_SIZE":"Database Size","QUERY_DURATION":"Query Duration","FETCHED_PER_SECOND":"Fetched Rows per Second","INSERTED_PER_SECOND":"Inserted Rows per Second","UPDATED_PER_SECOND":"Updated Rows per Second","DELETED_PER_SECOND":"Deleted Rows per Second","RETURNED_PER_SECOND":"Returned Rows per Second","KEY_COUNTERS":"Key Counters","CONFLICTS_PER_SECOND":"Conflicts per Second","DEADLOCKS_PER_SECOND":"Deadlocks per Second","COMMITS_PER_SECOND":"Commits per Second","ROLLBACKS_PER_SECOND":"Rollbacks per Second","MAX_TX_DURATION":"Maximum Transaction Duration","LOCKS":"Locks","ASYNC_NODE_NUMBER":"Async Nodes","INVALID_STATUS_NODE_NUMBER":"Invalid Nodes","NOT_RUNNING_NODE_NUMBER":"Not Running Nodes","UNHEALTH_NODE_NUMBER":"Unhealthy Nodes","DBPARAM_JMXOPTIONS_DESC":"disable, do not enable JMX; enable, enable JMX; password, enable JMX with password authentication","CLICKHOUSE_DATA_SIZE_ON_DISK":"MergeTree Table Data Size","QUERIES":"Queries","SELECT_QUERIES":"SELECT Queries","ALL_QUERIES":"All Queries","INSERTED_BYTES":"Inserted Data","INSERTED_ROWS":"Inserted Rows","MAXIMUM_REPLICATION_DEPLAY":"Maximum Replication Delay","RELATIVE_DELAY":"Relative Delay","ABSOLUTE_DELAY":"Absolute Delay","TOTAL_PARTS_OF_MERGETREE_TABLES":"Total Parts of MergeTree Tables","DELAYED_REJECTED_INSERTS":"Delay/Rejected Inserts","DELAYED_QUERIES":"Delayed Queries","DELAYED_BLOCKS":"Delayed Blocks","REJECTED_BLOCKS":"Rejected Blocks","DELAYED_DISTRIBUTED_FILES":"Delayed Distributed Files","READ_BYTES":"Read Bytes","UNCOMPRESSED":"Uncompressed","COMPRESSED":"Compressed","FILE_DESCRIPTOR":"File Descriptor","CLICKHOUSE_OS":"OS","MEMORY_FOR_QUERIES":"Memory for Queries","REPLICATION_QUEUE_JOBS":"Replication Queue Jobs","DATA_LOSS":"Data Loss","CHECK":"Checks","CHECK_FAIL":"Failed Checks","FETCH":"Fetches","FETCH_FAIL":"Failed Fetches","FETCH_MERGED":"Merged Part Fetches","REPLICATED_MERGED":"Successful Merges","MAX_QUEUE_SIZE":"Maximum Queue Size","MERGES":"Merges","MERGED_ROWS":"Merged Rows","MERGED_UNCOMPRESSED_BYTES":"Merged Uncompressed Bytes","ACTIVE_PARTS":"Active Parts","DETACHED_PARTS":"Detached Parts","MAX_PART_COUNT_FOR_PARTITION":"Maximum Parts for Partition","CLICKHOUSE_SERVER_PROCESS_MEMORY":"clickhouse-server Process Memory","PRIMARY_KEYS_MEMORY":"Memory for Primary Keys","DICTIONARY_MEMORY":"Dictionary Memory","MARKS_CACHE_HIT_RATE":"Mark Cache Hit Ratio","BACKGROUND_TASKS":"Background Tasks","MERGE_MUTATE_FETCH":"Merge/Mutate/Fetch","CLEAN_ALTER_REPLICA_REINIT":"Clean/Alter/Replica Re-init","MOVES":"Move","MUTATIONS":"Mutations","PARTS_TO_DO":"Parts to Do","CPU_TIME_PER_SECOND":"CPU Time per Second","DISK_READ_SYSCALL":"Disk Read Syscall","DISK_WRITE_SYSCALL":"Disk Write Syscall","NETWORK_RECEIVE":"Network Receive","NETWORK_SEND":"Network Send","REAL_TIME":"Real Time","USER_TIME":"User Time","SYSTEM_TIME":"System Time","OS_IO_WAIT":"OS I/O Wait","OS_CPU_WAIT":"OS CPU Wait","OS_CPU_VIRTUAL":"OS CPU Virtual Time","MAX_USED_CONNECTIONS":"Maximum Used Connections","THREADS":"Threads","PEAK_THREADS_CONNECTED":"Peak Threads Connected","PEAK_THREADS_RUNNING":"Peak Threads Running","AVG_THREADS_RUNNING":"Average Threads Running","ABORTED_CONNECTIONS":"Aborted Connections","ABORTED_CONNECTION_ATTEMPTS":"Aborted Connection Attempts","ABORTED_CLIENT_TIMEOUTS":"Client Timeouts","QUESTIONS":"Questions","SELECT_BY_TYPE":"Selects","SELECT_FULL_JOIN":"Select Full Join","SELECT_FULL_RANGE_JOIN":"Select Full Range Join","SELECT_RANGE":"Select Range","SELECT_FULL_RANGE":"Select Full Range","SELECT_RANGE_CHECK":"Select Range Check","SELECT_SCAN":"Select Scan","SORT_BY_TYPE":"Sorts","SORT_ROWS":"Sort Rows","SORT_RANGE":"Sort Range","SORT_MERGE_PASSES":"Sort Merge Passes","SORT_SCAN":"Sort Scan","SLOW_QUERIES":"Slow Queries","TABLE_LOCKS":"Table Locks","TABLE_LOCKS_IMMEDIATE":"Table Locks Immediate","TABLE_LOCKS_WAITED":"Table Locks Waited","TMP_TABLES_AND_FILES":"Temporary Tables and Files","CREATED_TMP_TABLES":"Created Temporary Tables","CREATED_TMP_DISK_TABLES":"Created Temporary Disk Tables","CREATED_TMP_FILES":"Created Temporary Files","MYSQL_NETWORK_TRAFFIC":"Network Traffic","MYSQL_INBOUND":"Inbound","MYSQL_OUTBOUND":"Outbound","CLUSTER_TASK_WAITING_TIME":"Cluster Task Waiting Time","CLUSTER_TASK_STATUS":"Cluster Task Status","CLUSTER_NUMBER_OF_IN_FLIGHT_FETCH":"In-Flight Fetches","CLUSTER_NUMBER_OF_PENDING_TASKS":"Pending Tasks","CLUSTER_NUMBER_OF_NODES":"Nodes","CLUSTER_NUMBER_OF_DATA_NODES":"Data Nodes","CLUSTER_NUMBER_OF_ALL_NODES":"All Nodes","SHARD_STATUS":"Shard Status","CLUSTER_DELAYED_UNASSIGNED_SHARDS":"Delayed Unassigned Shards","CLUSTER_INITIALIZING_SHARDS":"Initializing Shards","CLUSTER_RELOCATING_SHARDS":"Relocating Shards","CLUSTER_UNASSIGNED_SHARDS":"Unassigned Shards","CLUSTER_ACTIVE_PRIMARY_SHARDS":"Active Primary Shards","CLUSTER_ACTIVE_SHARDS":"Active Shards","CLUSTER_HEALTH_STATUS":"Cluster Health Status","CLUSTER_HEALTH_STATUS_GREEN":"Green","CLUSTER_HEALTH_STATUS_YELLOW":"Yellow","CLUSTER_HEALTH_STATUS_RED":"Red","HEAP_MEMORY":"Heap Memory","JVM_MEMORY_HEAP_USAGE_PER":"JVM Memory Heap Usage","DATA_AVAILABLE_BYTES":"Available Disk Space","DATA_AVAILABLE_PERCENT":"Available Disk Percentage","ECK_CPU_USAGE":"CPU Usage","OS_LOAD":"OS Load","OS_LOAD1":"OS Load (1 minute)","OS_LOAD5":"OS Load (5 minutes)","OS_LOAD15":"OS Load (15 minutes)","DOC_STATISTICS":"Doc Statistics","ELASTICSEARCH_INDICES_DOCS":"Docs","ELASTICSEARCH_INDICES_DOCS_DELETED":"Deleted Docs","ELASTICSEARCH_INDICES_INDEXING_INDEX_QPS":"Indexing QPS","ELASTICSEARCH_INDICES_SEARCH_QUERY_QPS":"Search QPS","ELASTICSEARCH_INDICES_INDEXING_TIME_MS":"Indexing Time","ELASTICSEARCH_INDICES_SEARCH_TIME_MS":"Search Time","CLUSTER_SHARDS_ACTIVE_PERCENT":"Active Shards","ONLINE_BROKER_COUNT":"Online Brokers","PARTITIONS_UNDER_MINIMUM_ISR":"Partitions Under Minium ISR","OFFLINE_PARTITION_COUNT":"Offline Partitions","TOPIC_INCOMING_DATA_RATE":"Incoming Bytes per Second","TOPIC_OUTGOING_DATA_RATE":"Outgoing Bytes per Second","TOPIC_INCOMING_MESSAGE_RATE":"Incoming Messages per Second","KAFKA_OPEN_FILE_DESC":"Open File Descriptors","TOPIC_OUTGOING_MESSAGE_RATE":"Total Produce Request Rate","NETWORK_PROCESSOR_AVG_IDLE_PERCENT":"Idle Network Processor Ratio","DISK_WRITES":"Disk Write","DISK_READS":"Disk Read","KAFKA_MEMORY_USAGE":"Memory Usage","KAFKA_CPU_USAGE":"CPU Usage","JVM_MEMORY_USAGE":"JVM Memory Usage","JVM_THREAD_COUNT":"JVM Threads","AVAILABLE_DISK_SPACE":"Available Disk Space","ALL_KAFKA_NODES":"All Kafka nodes","ALL_ZOOKEEPER_NODES":"All ZooKeeper nodes","OP_COUNTERS":"Operations","OP_INSERT":"Insert","OP_QUERY":"Query","OP_UPDATE":"Update","OP_DELETE":"Delete","OP_GETMORE":"Get More","OP_COMMAND":"Total","OPREPL_COUNTERS":"Replica Set Operations","OPREPL_INSERT":"Insert","OPREPL_QUERY":"Query","OPREPL_UPDATE":"Update","OPREPL_DELETE":"Delete","OPREPL_GETMORE":"Get More","OPREPL_COMMAND":"Total","CONNECTIONS_CURRENT":"Current","CONNECTIONS_TOTALCREATED":"Total Created","CONNECTIONS_AVAILABLE":"Available","CONNECTIONS_ACTIVE":"Active","CURSOR_COUNT":"Cursors","CURSOR_TIMEDOUT":"Timeout","CURSOR_OPEN_NOTIMEOUT":"No Timout","CURSOR_OPEN_PINNED":"Pinned","CURSOR_OPEN_TOTAL":"Total","MONGODB_NETWORK_TRAFFIC":"Network Traffic","NETWORK_BYTESIN":"Inbound Traffic","NETWORK_BYTESOUT":"Outbound Traffic","WIREDTIGER_OPERATION_COUNT":"WiredTiger Operations","WT_WRITE_OUT":"Concurrent Write Operations","WT_WRITE_AVAILABLE":"Available Concurrent Write Operations","WT_READ_OUT":"Concurrent Read Operations","WT_READ_AVAILABLE":"Available Concurrent Read Operations","DOC_COUNT":"Docs","DOC_DELETED":"Deleted Docs","DOC_INSERTED":"Inserted Docs","DOC_RETURNED":"Returned Docs","DOC_UPDATED":"Updated Docs","QUERYEXECUTOR":"Query Executor Metrics","SCANNEDKEYS":"Scanned Keys","SCANNEDDOCS":"Scanned Docs","ACTIVECLIENTS":"Active Clients","CLIENTS_TOTAL":"Total Clients","CLIENTS_READERS":"Read Clients","CLIENTS_WRITERS":"Write Clients","QUEUED_OPERATIONS":"Queued Requests","QUEUE_TOTAL":"Total","QUEUE_READERS":"Queued Read Requests","QUEUE_WRITERS":"Queued Write Requests","WIREDTIGER_CACHE":"WiredTiger Cache","WIREDTIGER_CACHE_USAGED":"Cache Usage","WIREDTIGER_CACHE_DIRTY_USAGE":"Dirty Data Ratio","OPENSEARCH_HEAP_MEMORY":"Heap Memory","OPENSEARCH_HEAP_MEMORY_PER":"Heap Memory Usage","OPENSEARCH_CPU_USAGE":"CPU Usage Percentage","OPENSEARCH_CPU_USAGE_PER":"CPU Usage","CPU_LOAD":"CPU Load","CPU_LOAD1":"CPU Load (1 minute)","CPU_LOAD5":"CPU Load (5 minutes)","CPU_LOAD15":"CPU Load (15 minutes)","EVENTS_STATISTICS":"Event Statistics","IN_EVENTS_STATISTICS":"Inbound Events","FILTERED_EVENTS_STATISTICS":"Filtered Events","OUT_EVENTS_STATISTICS":"Outbound Events","QUEUE_EVENTS_COUNT":"Events in Queue","JVM_THREADS_COUNT":"JVM Threads Count","DBPARAM_PIPELINE_WORKERS_DESC":"Number of Worker Threads","DBPARAM_PIPELINE_BATCH_SIZE_DESC":"Maximum number of events processed per batch by worker threads. Larger numbers consume more memory and require JVM heap adjustments.","DBPARAM_PIPELINE_BATCH_DELAY_DESC":"Maximum time in milliseconds that worker threads wait for a full batch before processing. ","DBPARAM_PIPELINE_UNSAFE_SHUTDOWN_DESC":"Whether to allow pipeline shutdown when events are still being processed.","DBPARAM_PIPELINE_ORDERED_DESC":"Pipeline event ordering setting. \"auto\" for automatic ordering, \"true\" for ordering with a single worker thread, \"false\" for no ordering.","DBPARAM_ECS_COMPATIBILITY_DESC":"Default value to use if the plugin supports ECS compatibility.","DBPARAM_LOG_LEVEL_DESC":"Logging Level","DBPARAM_LOG_FORMAT_DESC":"Logging Format","DBPARAM_LOG_JVM_DESC":"JVM heap size, typically set to 50%-75% of available memory. Defaults to 50% of available memory.","PREDIXY_MEMORY_USAGE":"Memory Usage","CLIENT_COUNT":"Clients","RECV_CLIENT_BYTES":"Bytes per Minute from Client","RECV_SERVER_BYTES":"Bytes per Minute from Server","SEND_CLIENT_BYTES":"Bytes per Minute to Client","SEND_SERVER_BYTES":"Bytes per Minute to Server","COMMANDS_EXECUTED_PER_MINUTE":"Commands Executed per Minute","REDIS_CLUSTER_COUNT":"Redis Clusters","REDIS_MEMORY_USAGE":"Memory Usage","REDIS_USED_MEMORY":"Used","REDIS_MAX_MEMORY":"Total","NETWORK_IO":"Network I/O","NETWORK_INPUT_BYTES":"Received Bytes (5 minutes)","NETWORK_OUTPUT_BYTES":"Sent Bytes (5 minutes)","TOP_5_REDIS_COMMANDS_PER_MINUTE":"Top 5 Commands per Minute","TOTAL_DB_KEYS":"Total Database Keys","DB_KEYS":"Database Keys","VALID_KEYS":"Valid Keys","EXPIRED_KEYS":"Expired Keys","KEYSPACE":"Keyspace","KEYSPACE_HITS_TOTAL":"Total Hits","KEYSPACE_MISSES_TOTAL":"Total Misses","MEMORY_FRAGMENTATION_RATIO":"Memory Fragmentation Ratio","REJECTED_CONNECTION_RATIO":"Ratio of Rejected Connections","REVICTED_KEY_RATIO":"Revicted Keys","QUORUM_SIZE":"Quorum","ZNODE_COUNT":"Znodes","WATCHER_COUNT":"Watchers","ZOOKEEPER_MEMORY_USAGE":"Memory Usage","ZOOKEEPER_CPU_USAGE":"CPU Usage","OPEN_FILE_DESCRIPTORS":"Open File Descriptors","REQUEST_LATENCY_AVERAGE":"Average Request Latency","REQUEST_LATENCY_MAXIMUM":"Maximum Request Latency","SHARD_COUNT":"Shards","SHARDS_DESC":"Number of shards. The value range is 1 to 100.","CK_REPLICAS_DESC":"Number of replicas for each shard. The value range is 1 to 3.","HTTP_PORT":"HTTP Port","HTTP_PORT_DESC":"The value range is 0 to 65535.","DATABASE_STORAGE_CLASS_DESC":"If no storage classs meets the requirements, please contact a platform administrator to create a storage class.","DATABASE_NODE_TIP":"A database node is a logical database instance rather than a physical server.","VALUE_RANGE_DESC":"The value range is {min} to {max}.","VALUE_MUST_BE_INTEGER":"The value must be an interger.","VALUE_CANNOT_BE_GREATER_THAN_VALUE":"The value cannot be greater than {max}.","VALUE_CANNOT_BE_LESS_THAN_20":"The value cannot be less than 20.","DATA_NODE_COUNT":"Data Nodes","STANDBY_DATABASE_COUNT":"Standby Databases","PROJECT_NAME_EXCEEDS_LIMIT":"The project name for MySQL 5.7 cannot exceed 16 characters.","APP_NAME_EXCEED_LIMIT":"The app name for MySQL 5.7 cannot exceed 14 characters.","DATABASE_KERNEL_VERSION_DESC":"Select the database version.","STANDBY_DATABASE_COUNT_DESC":"Number of standby databases. The value can be 1, 2, or 4.","VALUE_CANNOT_BE_LESS_THAN_10":"The value cannot be less than 10.","PRIMARY_NODE_SETTINGS":"Primary Node Settings","PRIMARY_NODE_RESOURCES_DESC":"Set the CPU and memory resources allocated to each primary node.","PRIMARY_NODE_COUNT":"Primary Nodes","PRIMARY_NODE_COUNT_DESC":"Set the number of primary nodes.","HOT_NODE_SETTINGS":"Hot Node Settings","HOT_NODE_RESOURCES_DESC":"Set the CPU and memory resources allocated to each hot node.","HOT_NODE_COUNT":"Hot Nodes","WARM_NODE_SETTINGS":"Warm Node Settings","WARM_NODE_RESOURCES_DESC":"Set the CPU and memory resources allocated to each warm node.","WARM_NODE_COUNT":"Warm Nodes","COLD_NODE_SETTINGS":"Cold Node Settings","COLD_NODE_RESOURCES_DESC":"Set the CPU and memory resources allocated to each cold node.","COLD_NODE_COUNT":"Cold Nodes","KIBANA_NODE_SETTINGS":"Kibana Node Settings","KIBANA_NODE_RESOURCES_DESC":"Set the CPU and memory resources allocated to each Kibana node.","KIBANA_NODE_COUNT":"Kibana Nodes","VOLUMN_PERSIST":"The size of the volume on the primary node is 20 GiB and cannot be modified.","REDIS_NODE":"Redis node","REDIS_NODE_COUNT":"Redis Nodes","REDIS_NODE_COUNT_DESC":"Number of nodes in the Redis cluster.","PROXY_NODE_COUNT":"Proxy Nodes","PROXY_NODE_RESOURCES":"Proxy Node Resources","ENDPOINT_TYPE":"External Access","ENDPOINT_TYPE_DESC":"Whether to use domain names to access database shards from outside the KubeSphere cluster.","ENDPOINT_TYPE_ERROR":"Before enabling this feature, ensure that no proxy nodes exist in the database cluster.","REDIS_PASSWORD_DESC":"The password can contain only uppercase letters, lowercase letters, numbers, and special characters (!@#$%^&*()./;). The length must be 6 to 31 characters.","INVALID_REDIS_PASSWORD_DESC":"Invalid password. The password can contain only uppercase letters, lowercase letters, numbers, and special characters (!@#$%^&*()./;). The length must be 6 to 31 characters.","VOLUME_CAPACITY_CANNOT_REDUCE":"The volume size cannot be reduced.","KAFKA_SETTINGS":"Kafka Settings","KAFKA_NODE_RESOURCES_DESC":"Set the CPU and memory resources allocated to each Kafka node.","KAFKA_VERSION":"Kafka Version","KAFKA_NODE_COUNT":"Kafka Nodes","ZOOKEEPER_SETTINGS":"ZooKeeper Settings","ZOOKEEPER_NODE_RESOURCES_DESC":"Set the CPU and memory resources allocated to each ZooKeeper node.","ZOOKEEPER_NODE_COUNT":"ZooKeeper Nodes","DASHBOARD_NODE_SETTINGS":"Dashboard Node Settings","DASHBOARD_NODE_RESOURCES_DESC":"Set the CPU and memory resources allocated to each dashboard node.","DASHOBOARD_NODE_COUNT":"Dashboard Nodes","LOGSTASH_NODE_SETTINGS":"Logstash Node Settings","LOGSTASH_NODE_RESOURCES_DESC":"Set the CPU and memory resources allocated to each Logstash node.","LOGSTASH_NODE_COUNT":"Logstash Nodes","MONGODB_NODE_COUNT_DESC":"Number of database nodes.","OTHER_APP_EMPTY_DESC":"Applications you installed with the helm command will be displayed here","OTHER_APP_PL":"other","UPLOAD_FAILED_MESSAGE":"Upload failed. {message}","GPU_USAGE_TIME":"GPU Usage ({time})","GPU_MEMORY_USAGE_TIME":"Graphics Memory Usage ({time})","PVC_USAGE_TOOLTIP_MESSAGE":"Persistent volume usage of the current project (the data may be inaccurate if file storage is used).","PROJECT_MEMBERS_AND_ROLES":"Project Members and Roles","RECENTLY_LOGGED_IN_MEMBERS":"Recently Logged In Users","PROJECT_ALERTS":"Project Alerts","ENT_CLUSTER_GATEWAY_GUIDE_DESC":"If the cluster gateway, workspace gateway and project gateway exist at the same time, the project gateway cannot be enabled after it is disabled. You are advised to used either the cluster gateway or workspace gateway.","WORKSPACE_GATEWAY_GUIDE_DESC":"If the workspace gateway and project gateway both exist, the project gateway cannot be enabled after it is disabled. You are advised to used either the workspace gateway or project gateway.","ROLL_BACK_MICROSERVICE_CONFIGURATION":"Roll Back Microservice Configuration","ROLLBACK_SUCCESSFUL":"Rolled back successfully.","HISTORICAL_VERSIONS":"Historical Versions","CONFIGURATION_CONTNET_TYPE":"Data ({type})","SQ_CONFIGURATION":"Microservice Configuration","SQ_CONFIGURATION_PL":"Microservice Configurations","SQ_CONFIGURATION_DESC":"Microservice configurations store key-value data to be used by microservices. You can use microservice configurations to separate a microservice from its configuration data.","SQ_CONFIGURATION_EMPTY_DESC":"Please create a microservice configuration. ","CONFIGURATION_STATUS_SUCCEEDED":"Published","CONFIGURATION_STATUS_FAILED":"Failed","CONFIGURATION_STATUS_":"Updating","DATA_ID":"Data ID","CREATE_CONFIGURATION":"Create Microservice Configuration","CONFIGURATION_CONTENT":"Data","CONFIGURATION_CONTENT_EMPTY_DESC":"Please enter configuration data.","EDIT_CONFIGURATION":"Edit Microservice Configuration","ORIGINAL_CONFIGURATION_CONTENT_READONLY":"Original Data (read-only)","CURRENT_CONFIGURATION_CONTENT":"New Data","REPLICATE":"Replicate","REPLICATE_CONFIGURATION_NAME":"Replicate Microservice Configuration {name}","SQ_CONFIGURATION_LOW":"microservice configuration","MICROSERVICE_GATEWAY":"Microservice Gateway","MICROSERVICE_GATEWAY_PL":"Microservice Gateways","MICROSERVICE_GATEWAY_DESC":"The microservice gateway forwards requests to microservices according to microservice routes so that microservices can be accessed by other microservices or clients.","MICROSERVICE_GATEWAY_EMPTY_DESC":"No Microservice Gateway Found","MICROSERVICE_GATEWAY_EMPTY_TIP":"Please create a microservice gateway.","GATEWAY_TYPE":"Gateway type","MICROSERVICE_GATEWAY_STATUS_RUNNING":"Running","MICROSERVICE_GATEWAY_STATUS_UPDATING":"Updating","MICROSERVICE_GATEWAY_STATUS_STOPPED":"Stopped","MICROSERVICE_GATEWAY_STATUS_":"Creating","CREATE_MICROSERVICE_GATEWAY":"Create Microservice Gateway","GATEWAY_IMAGE_EMPTY_DESC":"Please set the container image used to create the microservice gateway.","REPLICA_COUNT_EMPTY_DESC":"Please enter the number of replicas of the microservice gateway.","EDIT_MICROSERVICE_GATEWAY":"Edit Microservice Gateway","MICROSERVICE_GATEWAY_LOW":"microservice gateway","MICROSERVICE_ROUTE":"Microservice Route","MICROSERVICE_ROUTE_LOW":"microservice route","MICROSERVICE_ROUTE_PL":"Microservice Routes","MICROSERVICE_ROUTE_DESC":"The microservice gateway forwards requests to microservices according to microservice routes so that microservices can be accessed by other microservices or clients.","MICROSERVICE_ROUTE_EMPTY_DESC":"Please create a microservice route. Before creating a microservice route, ensure that a microservice gateway is available.","CREATE_MICROSERVICE_ROUTE":"Create Microservice Route","MICROSERVICE_ORDER":"Order","MICROSERVICE_ORDER_DESC":"Priority of the microservice route. A smaller number indicates higher priority.","MICROSERVICE_ROUTE_URL_DESC":"URL of a microservice.","PREDICATE":"Predicate","MICROSERVICE_ROUTE_FILTER":"Filter","EDIT_MICROSERVICE_ROUTE":"Edit Microservice Route","NO_INSTANCE_FOUND":"No Instance Found","MICROSERVICE_INSTANCE_PL":"Instances","MICROSERVICE_INSTANCE_STATUS":"Instance Status","MICROSERVICE_INSTANCE_ID":"Instance ID","SPRING_CLOUD_METADATA":"Spring Cloud Metadata","POD_METADATA":"Pod Metadata","SPRING_CLOUD_MONITORING":"Spring Cloud Monitoring","JVM_THREADS_LIVE":"Active Threads","JVM_THREADS_DAEMON":"Daemons","JVM_THREADS_PEAK":"Peak Threads","JVM_MEMORY_USED":"Used","JVM_MEMORY_COMMITTED":"Available","JVM_MEMORY_MAX":"Maximum","JVM_MEMORY_USED_METASPACE":"Initial","SPRING_BOOT_CONFIGURATION_INFOMATION":"Spring Boot Environment Variables {resources}","PROPERTY_NOT_SET":"No Environment Variable Found","POD_ENVIRONMENT_VARIABLE":"Pod Environment Variables","SPRING_CLOUD":"Spring Cloud","MICROSERVICE":"Microservice","MICROSERVICE_PL":"Microservices","MICROSERVICE_DESC":"In the Spring Cloud architecture, you can build a large scale application composed of multiple microservices. Microservices handle requests from clients. Each microservice contains one or more instances and each instance is a replica of the microservice.","WHAT_IS_SERVICE_REGISTRATION_CENTER_Q":"What is the service registry?","WHAT_IS_SERVICE_REGISTRATION_CENTER_A":"The service registry is the core functional component of the Spring Cloud microservice architecture. The service registry stores information about microservices and mapping between microservices and microservice addresses.","SERVICE_REGISTRY":"Service Registry","SERVICE_REGISTRY_ADDRESS":"Service registry address","DOWNLOAD_SAMPLE_CONFIGURATION":"Download Sample Configuration","INSTANCE":"Instance","INSTANCE_PL":"Instances","HEALTHY_INSTANCE":"Healthy instance","HEALTHY_INSTANCE_PL":"Healthy instances","MICROSERVICE_INSTANCE_COUNT":"Instances","MICROSERVICE_HEALTHY_INSTANCE_COUNT":"Healthy Instances","HEALTH_PROTECTION_TRIGGERED":"Health Protection Triggered","MICROSERVICE_EMPTY_DESC":"Please create a microservice.","SPRING_CLOUD_PROJECT_NOT_LABEL":"Spring Cloud stock project","SPRING_CLOUD_PROJECT_NOT_LABEL_DESC":"Whether to enable Spring Cloud under this project","OPEN_PROJECT_SPRING_CLOUD":"Enable Spring Cloud","MICROSERVICE_INSTANCE_STATUS_RUNNING":"Running","MICROSERVICE_INSTANCE_STATUS_OFFLINE":"Offline","EDIT_WEIGHT":"Edit Weight","INSTANCE_WEIGHT_DESC":"Weight of the microservice instance.","TAKE_ONLINE":"Take Online","TAKE_ONLINE_SUCCESS":"Take Online Success","CREATE_MICROSERVICE":"Create Microservice","ASC_EXPORT":"Ascending","DESC_EXPORT":"Descending","LOG_EXPORT":"Log Export","END_USER_SOFTWARE_LICENSE_AGREEMENT":"End User Software License Agreement","END_USER_SOFTWARE_LICENSE_AGREEMENT_LINK":"End User Software License Agreement","PLEASE_AGREE_USER_SOFTWARE_LICENSE_AGREEMENT":"Please agree to the End User Software License Agreement","WORKSPACE_GATEWAY_DESC":"Set up and manage the configuration of the external network access gateway and service management in the workspace and project.","WORKSPACE_GATEWAY":"Workspace Gateway","WORKSPACE_GATEWAY_LOW":"workspace gateway","PROJECT_ENABLE_GATEWAY_DESC_WS":"If you need to set up a project gateway, please go to the corresponding project to open it.","CLUSTER_GATEWAY_GUIDE_DESC_WS":"If the cluster gateway and workspace gateway both exist, the workspace gateway cannot be enabled after it is disabled. You are advised to used either the cluster gateway or workspace gateway.","CLUSTER_NOT_SUPPORT_WORKSPACE_GATEWAY":"This cluster does not support this feature. If you need to use this feature, please upgrade the cluster to KubeSphere Enterprise 3.4.0 or later.","STORAGE_RELATED_RESOURCE_LIMIT":"Limit on Resources Bound with Storage Class","TOTAL_STORAGE_CLASS":"Total Storage Classes","LIMITED_STORAGE_CLASS":"Number of Limited Storage Classes","RELATED_RESOURCE_QUOTA":"Bound Resource Quota","REQUESTS_STORAGE":"PVC Limit","PERSISTENTVOLUMECLAIMS":"PVC","TOTAL_STORAGE_RESOURCE":"Total Storage Resources","STORAGE_RELATED_RESOURCE":"Storage Class Bound Resources","TOTAL_STORAGE_LIMIT_LESS_THAN_RELATE_RESOURCE":"The total limit of storage resources cannot be less than that of bound resources.","VOLUME_TOTAL_CAPACITY":"Total Capacity of PVCs ({unit})","VOLUME_MAX_NUM":"Total PVCs","SET_RELATED_STORAGE_CLASS_QUOTA":"Set the quota for the PVC bound with the storage class.","SELECT_STORAGE_CLASS":"Select Storage Class","STORAGE_QUOTA":"Storage Resource Quota","WS_STORAGE_QUOTA_DESC":"Limit the the total amount of storage resources under the workspace.","NS_STORAGE_QUOTA_DESC":"Limit the the total amount of storage resources under the project.","STORAGE_VOLUME_LIMIT_NO_LIMIT":"Resource limits: no limit on the PVC capacity","STORAGE_VOLUME_LIMIT_HAS_A_LIMIT":"Resource limits: PVC capacity {num} Gi","STORAGE_PERSISTENT_VOLUME_NO_LIMIT":"No limit on the number of PVCs.","STORAGE_PERSISTENT_VOLUME_HAS_A_LIMIT":"number of PVCs {num}","STORAGE_LIMIT":"PVC capacity limit","STORAGE_CLASS_VOLUME":"Number of PVCs","SELECT_A_STORAGECLASS":"Select Storage Class","VOLUME_COUNT":"Bound PVCs","KS_DESCRIPTION":"KubeSphere es un proyecto de código abierto que tiene como objetivo proporcionar una plataforma de contenedores multi-tenant de nivel empresarial sobre Kubernetes, la plataforma de orquestación de contenedores de referencia. KubeSphere proporciona una interfaz fácil de usar y permite realizar operaciones usando asistentes, reduciendo la curva de aprendizaje y el costo operativo de Kubernetes en términos del trabajo diario de desarrollo, prueba y mantenimiento.","REPS_ADDRESS":"GitHub","ISSUE_FEEDBACK":"Feedback","PART_IN_DISCUSSION":"Discusión","CODE_CONTRIBUTE":"Contribución","GITHUB_STAR":"Star","DESELECT_RESOURCE_FIRST":"Por favor deseleccione {resource} primero.","NO_AUTHORIZED_USER_DESC":"Este rol no ha sido asignado a ningún usuario.","PLATFORM_ROLE_PL":"Roles de Plataforma","PLATFORM_ROLE_EMPTY_DESC":"Por favor, cree un rol de plataforma.","ROLE_USERS_MANAGER":"Maneje todos los usuarios en la plataforma KubeSphere.","ROLE_WORKSPACES_MANAGER":"Maneje todos los espacios de trabajo en la plataforma KubeSphere.","ROLE_PLATFORM_ADMIN":"Administrador de la plataforma que puede administrar todos los recursos en la plataforma.","ROLE_PLATFORM_REGULAR":"Usuario normal en la plataforma que no tiene acceso a ningún recurso antes de unirse al espacio de trabajo o clúster.","ROLE_PLATFORM_SELF_PROVISIONER":"Create workspaces and become an administrator of the created workspaces.","CREATION_TIME_TCAP":"Fecha de creación","CREATE_PLATFORM_ROLE":"Create Platform Role","PERMIGROUP_CLUSTERS_MANAGEMENT":"Clusters","PERMISSION_CLUSTERS_VIEW":"Cluster Viewing","PERMISSION_CLUSTERS_VIEW_DESC":"View all clusters and cluster resources.","PERMISSION_CLUSTERS_MANAGEMENT":"Cluster Management","PERMISSION_CLUSTERS_MANAGEMENT_DESC":"Create clusters, delete clusters, and manage resources in all clusters.","PERMIGROUP_ACCESS_CONTROL":"Control de acceso","PERMISSION_WORKSPACES_VIEW":"Workspace Viewing","PERMISSION_WORKSPACES_VIEW_DESC":"View workspaces.","PERMISSION_WORKSPACES_MANAGEMENT":"Workspace Management","PERMISSION_WORKSPACES_MANAGEMENT_DESC":"Create, edit, delete, and view workspaces.","PERMISSION_WORKSPACES_CREATE":"Workspace Creation","PERMISSION_WORKSPACES_CREATE_DESC":"Create workspaces and become an administrator of the created workspaces.","PERMISSION_USERS_VIEW":"User Viewing","PERMISSION_USERS_VIEW_DESC":"View users.","PERMISSION_USERS_MANAGEMENT":"User Management","PERMISSION_USERS_MANAGEMENT_DESC":"Create, edit, and delete users.","PERMISSION_ROLES_VIEW":"Vista de roles de proyecto","PERMISSION_ROLES_VIEW_DESC":"View platform roles.","PERMISSION_ROLES_MANAGEMENT":"Gestión de Roles de Proyecto","PERMISSION_ROLES_MANAGEMENT_DESC":"Create, edit, and delete platform roles.","PERMIGROUP_APPS_MANAGEMENT":"Aplicaciones","PERMISSION_APP_TEMPLATES_VIEW":"App Viewing","PERMISSION_APP_TEMPLATES_VIEW_DESC":"View the platform App Store.","PERMISSION_APP_TEMPLATES_MANAGEMENT":"Gestión de plantillas de aplicaciones del espacio de trabajo","PERMISSION_APP_TEMPLATES_MANAGEMENT_DESC":"Manage the platform App Store and life cycles of cloud-native applications.","PERMIGROUP_PLATFORM_SETTINGS":"Configuración de la plataforma","PERMISSION_PLATFORM_SETTINGS_MANAGEMENT":"Platform Settings Management","PERMISSION_PLATFORM_SETTINGS_MANAGEMENT_DESC":"View and edit settings of the KubeSphere platform.","DELETING_PRESET_ROLES_NOT_ALLOWED":"Preset roles cannot be deleted.","CONFIRM_PASSWORD_TIP":"Please enter the new password again.","CHANGE_PASSWORD":"Change Password","NEW_PASSWORD":"New Password","PASSWORD_STRENGTH":"Password Strength","PASSWORD_STRENGTH_DESC":"Avoid using weak passwords or passwords of other accounts.","TIME":"Hora","SOURCE_IP_ADDRESS":"Source IP Address","LOGIN_HISTORY":"Login History","NO_LOGIN_HISTORY":"No login history is found.","SUCCESSFUL":"Successful","FAILED":"Failed","USER_DESC":"Este módulo permite al administrador del sistema administrar cuentas, como crear / actualizar / leer / eliminar una cuenta. El administrador también puedes administrar el rol de cada cuenta. Los usuarios pueden iniciar sesión en la plataforma a través de su nombre de cuenta o dirección de correo electrónico.","USER_PL":"Usuarios","NOT_LOGIN_YET":"Not Logged in yet","USER_EMPTY_DESC":"Please create a user.","USER_ACTIVE":"Activo","USER_AUTHLIMITEXCEEDED":"Login Restricted","USER_PENDING":"Pendiente","USER_DISABLED":"Deshabilitado","LAST_LOGIN":"Última hora de inicio de sesión","USERNAME_DESC":"Solo puede contener letras minúsculas, números ,puntos y guiones (\"-\"), y debe comenzar con una letra minúscula y terminar con un número o letra minúscula. La longitud máxima de carácteres se establece en 32.","PASSWORD_DESC":"The password must contain at least one number, one lowercase letter, one uppercase letter, and one special character (~!@#$%^&*()-_=+\\|[{}];:'\",<.>/? or space). The length must be 8 to 64 characters.","PASSWORD_INVALID_DESC":"Invalid password. The password must contain at least one number, one lowercase letter, and one uppercase letter. The length must be 8 to 64 characters.","PLATFORM_ROLE_DESC":"Los tipos de roles se clasifican en clúster y proyecto. La función de tipo de clúster se utiliza para administrar el clúster.","USER_SETTING_EMAIL_DESC":"El correo electrónico se utiliza para iniciar sesión.","USERNAME_EXISTS":"El ombre de usuario ya existe","USERNAME_EMPTY_DESC":"Por favor introduce el nombre de usuario","PLATFORM_ROLE":"Platform Role","CREATE_USER":"Agregar usuario","EMAIL":"Email","EMAIL_EXISTS":"EL email ya existe","USERNAME_INVALID":"Nombre de usuario no válido. {message}","USERNAME":"Nombre de usuario","PASSWORD":"Contraseña","EDIT_USER":"editar usuario","USER_LOW":"user","DELETING_CURRENT_USER_NOT_ALLOWED":"The current user cannot be deleted.","WORKSPACE_PL":"Workspaces","WORKSPACE_DESC":"Los espacios de trabajo son una unidad lógica para organizar tus proyectos de carga de trabajo / namespaces de Kubernetes, proyectos DevOps, administrar el acceso a recursos y compartir información dentro de tu equipo. Es un lugar de trabajo aislado para tu equipo.","CLUSTER_PL":"Clusters","ALL_CLUSTERS":"All Clusters","CREATE_WORKSPACE":"Crear espacio de trabajo","WORKSPACE_NAME_EMPTY_DESC":"Introduce el nombre del espacio de trabajo","WORKSPACE_CREATE_DESC":"Los esapcios de trabajo son una unidad lógica para organizar tus proyectos y proyectos DevOps. El acceso a los recursos y los recursos compartidos del equipo se pueden administrar aquí. Puede servir como un espacio de trabajo independiente para tu equipo.","ADMINISTRATOR":"Administrator","WORKSPACE_NAME_EXISTS_DESC":"The workspace name already exists.","INVALID_WORKSPACE_NAME":"Invalid workspace name.","SELECT_CLUSTERS_DESC":"Selecciona el clúster disponible en el espacio de trabajo.","NO_CLUSTER_AVAILABLE":"No Cluster Available","NO_CLUSTER_AVAILABLE_DESC":"No hay clústeres públicos disponibles, solicita autorización para clúster al administrador de la plataforma o al administrador del clúster después de crear el espacio de trabajo","WORKSPACE_NO_CLUSTER_TIP":"You need to contact the platform or cluster administrator to authorize a cluster to the workspace.","AVAILABLE_CLUSTERS":"Clusters Disponibles","CLUSTER_SETTINGS":"Configuraciones de clúster","CLUSTER_SETTINGS_LIMIT_DESC":"Seleccione al menos un clúster.","SELECT_HOST_CLUSTER_WARNING":"The visibility of the multi-cluster environment will decrease if the host cluster is overloaded. It is not recommended to create resources on the host cluster.","DELETE_WORKSPACE":"Eliminar espacio de trabajo","WORKSPACE_LOW":"workspace","BACK":"Back","AGREE":"De acuerdo","APP_DEPLOY_AGREEMENT":"Acuerdo de implementación de la aplicación","APP_DEPLOY_AGREEMENT_DESC_1":"You must abide by the open-source agreement of the application.","APP_DEPLOY_AGREEMENT_DESC_2":"Any consequences arising from your deployment of the application shall be borne by you. For support services, please contact the developer.","DO_NOT_REMIND_AGAIN":"No recordar de nuevo","LOCATION":"Ubicación de despliegue","CLUSTER_NAME_DESC":"The name can contain only lowercase letters, numbers, and hyphens (-), must start with a lowercase letter, and must end with a lowercase letter or number. The maximum length is 32 characters.","FEDPROJECT_CANNOT_DEPLOY_APP_TIP":"No se pueden implementar aplicaciones en proyectos de múltiples clústeres.","LATEST_VERSION_SCAP":"Última versión","WORKSPACE_EMPTY_DESC":"Selecciona un espacio de trabajo, por favor","VERSION_EMPTY_DESC":"Selecciona una versión","HELM_APP_SCHEMA_FORM_TIP":"The app configuration can be displayed in a form. You can modify the default app configuration through either the form or YAML editor. Note: app data stored in different patterns are independent of each other.","DEPLOYED_SUCCESSFUL":"Deployed successfully.","APP_INFORMATION":"Info de Aplicación","VERSION_NUMBER":"Número de versión","APP_SCREENSHOTS":"Capturas de pantalla de Aplicación","CATEGORY_COLON":"Category:","HOMEPAGE_COLON":"Homepage:","RELEASE_DATE_COLON":"Release Date:","APP_ID_COLON":"App ID:","SOURCE_CODE_ADDRESS_COLON":"Source Code Address:","APP_VERSIONS_TITLE":"Versions (only the latest 10 versions will be displayed)","MAINTAINER_COLON":"Mantenedores","VERSIONS":"Versions","KEYWORDS":"Palabras clave","NONE":"Ninguno","APP_INTRODUCTION":"App Introduction","APP_DETAILS":"Detalles de Aplicación","NO_DOCUMENT_DESC":"No documentation is found.","VERSION_INTRO_EMPTY_DESC":"La versión no tiene documentación.","CHART_FILES":"Ficheros del Chart","NO_APP_CHART_FILE_FOUND":"La aplicación no tiene un fichero Chart","APP_STORE":"Tienda de aplicaciones","HOME_APP_STORE_DESC":"The official App Store of KubeSphere provides deployment and management features that allow users to quickly deploy apps with one click based on app templates.","DISCOVER":"Discover","NEW_APPS":"New Apps","APP_CATE_ALL":"Todos","APP_CATE_UNCATEGORIZED":"Uncategorized","APP_CATE_MESSAGE_QUEUEING":"Message Queuing","APP_CATE_IMAGE_REGISTRY":"Image Registry","APP_CATE_PROMETHEUS_EXPORTER":"Prometheus Exporter","APP_CATE_WEB_SERVER":"Web Server","APP_CATE_NETWORKING":"Networking","APP_CATE_DATABASE_CACHE":"Database & Cache","APP_CATE_STORAGE":"Storage","MAINTAINER_VALUE":"Mantenedor: {value}","LATEST_VALUE":"Latest: {value}","TOTAL_CATE_COUNT":"Total Apps: {total}","SEARCH_BY_NAME":"Introduce un nombre para buscar","APP_SETTINGS":"Configuración de Aplicación","APP_CATEGORY_PL":"Categorias de Aplicación","APP_CATEGORIES_DESC":"Este módulo te permite crear, editar y eliminar categorías; así como clasificar las aplicaciones activas de la Tienda.","ALL_CATEGORIES_VALUE":"Todas las categorías ({value})","APP_CATEGORY_EMPTY_DESC":"Ninguna aplicación pertenece a la categoría.","ENTER_CATEGORY_NAME_TIP":"Por favor, introduzca un nombre de categoría.","CATEGORY_NAME_DESC":"El nombre puede contener cualquier carácter y el largo máximo es de 20 caracteres.","DELETE_CATEGORY_DESC":"¿Está seguro que desea eliminar la categoría {name}?","CHANGED_SUCCESSFULLY":"Cambiado exitosamente.","CHANGE_CATEGORY":"Cambiar Categoría","CHANGE_CATEGORY_DESC":"La clasificación de la aplicación determinará la clasificación de la aplicación en la Tienda de Aplicaciones.","APP_DETAILS_DESC":"Ver detalles de la aplicación a ser lanzada.","INTRODUCTION":"Introducción","SERVICE_PROVIDER_WEBSITE":"Sitio Web del Proveedor de Servicio","APP_DESCRIPTION":"Descripción de la aplicación","DOCUMENTATION":"Documentación","NO_DOCUMENT_FOUND":"No se encontró documentación","UPDATE_TIME_COLON":"Update time: ","UPDATE_LOG":"Registro de actualizaciones","NO_UPDATE_LOG_DESC":"No se ha encontrado registro de actualizaciones.","REJECT":"Reject","REJECT_REASON_DESC":"Complete los motivos de rechazo de la revisión, por favor.","REJECT_REASON_TIP":"Introduce un motivo de rechazo, por favor","REJECT_SUCCESSFUL":"Rechazado Satisfactoriamente","APPROVE":"Approve","RELEASE_SUCCESSFUL":"Released successfully.","APP_REVIEW":"App Review","APP_REVIEW_DESC":"Review apps to be released to the App Store.","NEW_SUBMIT":"New","APP_REVIEW_EMPTY_DESC":"Please create an app template in a workspace and submit the app template for review.","APP_STATUS_TO_BE_REVIEWED":"To be reviewed","APP_STATUS_PASSED":"Approved","APP_STATUS_SUSPENDED":"Suspendido","APP_STATUS_REJECTED":"Rejected","APP_STATUS_IN_REVIEW":"Reviewing","OPERATOR":"Operador","APP_REVIEW_UNPROCESSED_EMPTY_DESC":"No App Needs to Be Reviewed","SUSPEND":"Suspend","APP_NOTE":"Note","SUSPEND_SUCCESSFUL":"Suspended successfully.","RELEASE":"Release","ACTIVATE_SUCCESSFUL":"Released successfully.","APP_ID":"ID de la aplicación","CATEGORY":"Categoría","TYPE":"Tipo","DEVELOPER":"Developer","NO_VERSION_INFO_DESC":"No version information is found.","ACTIVATE_VERSION":"Activar versión","CANCEL_SUBMISSION":"Cancelar revisión","SUSPEND_VERSION":"Suspender versión","APP_SUSPEND_TIP":"La aplicación {name} no se puede comprar en la tienda cuando está suspendida. ¿Estás seguro de suspenderlo ahora?","APP_RECOVER_TIP":"La aplicación {name} y las versiones suspendidas se mostrarán nuevamente en la tienda. ¿Estás seguro de activarlo ahora?","REJECTION_REASON":"Motivo de Rechazo","RELEASE_RECORD":"Release Record","RELEASE_RECORD_EMPTY_DESC":"No release record is found.","APPS":"Aplicaciones","APP_STORE_MANAGEMENT":"Gestión de la Tienda de Aplicacines","APP_STORE_DESC":"Gestionar aplicaciones de la Tienda.","APP_CATEGORY":"Categoria de Aplicación","APP_EMPTY_DESC":"Please create an app template in a workspace and release it to the App Store.","CRONJOB_EMPTY_DESC":"CronJobs maneja trabajos a base de horarios y puede ser utilizado para llevar a cabo tareas periódicas o recurrentes.","EVERY_DAY":"0 0 * * * * (cada día)","EVERY_HOUR":"0 * * * * * (cada hora)","EVERY_MONTH":"0 0 1 * * (cada mes)","EVERY_WEEK":"0 0 * * 0 (cada semana)","PAUSE":"Pausa","START":"Inicio","DAEMONSETS":"DaemonSets","DAEMONSET_EMPTY_DESC":"Un DaemonSet asegura que todos (o algunos) nodos ejecuten una copia de un Pod. Por lo general, un DaemonSet se usa para ejecutar una colección de registros, monitorear daemon u otras aplicaciones de administración del sistema.","MIN_READY_SECONDS":"Minimum Running Time for Pod Readiness (s)","MAX_UNAVAILABLE_PODS":"Maximum Unavailable Pods","ROLLING_UPDATE_SETTINGS":"El número de pods cuando se actualiza","MAX_UNAVAILABLE_PODS_DESC":"Maximum number or percentage of unavailable Pods during the update.","MIN_READY_SECONDS_DESC":"Especifica el número mínimo de segundos para los pods de un inicio de daemonset","MIN_READY_SECONDS_EMPTY":"Please set the minimum stable running time required for a Pod replica to be considered ready.","MAX_UNAVAILABLE_EMPTY":"Please set the maximum number of unavailable Pod replicas allowed during the update process.","FAILURE_THRESHOLD":"Umbral de éxito","HTTP_REQUEST":"Comprobación de solicitudes HTTP","INITIAL_DELAY_S":"Retraso (s) inicial","INITIAL_DELAY_TIMEOUT_VALUE":"{delay}s initial delay, {timeout}s timeout period","PROBE_TIME":"{delay} s delay, {timeout} s timeout","TIMEOUT_PERIOD_S":"Tiempo de espera (s)","CHECK_INTERVAL_S":"Periodo de Segundos","SUCCESS_THRESHOLD":"Umbral de fallo","INITIAL_DELAY_DESC":"Número de segundos después de que el contenedor se haya iniciado antes de que se inicien las sondas de vida.","TIMEOUT_PERIOD_DESC":"Número de segundos después de los cuales la sonda agota el tiempo de espera. El valor predeterminado es 1 segundo y el valor mínimo es 1.","CHECK_INTERVAL_DESC":"Frecuencia de la sonda (en segundos), que por defecto es de 10 segundos. El valor mínimo es 1.","SUCCESS_THRESHOLD_DESC":"Mínimos éxitos consecutivos para que la sonda se considere exitosa después de haber fallado. El valor predeterminado es 1 y debe ser 1 para la vida y el inicio. El valor mínimo es 1.","FAILURE_THRESHOLD_DESC":"Fallos mínimos consecutivos para que la sonda se considere fallida después de haber tenido éxito. El valor predeterminado es 3 y el valor mínimo es 1.","PROBE_COMMAND_EMPTY":"Por favor introduce el comando","TCP_PORT":"Comprobación de puerto TCP","MOUNT_PATH_IN_USE":"El punto de montaje ya está en uso","CREATOR":"Creador","NO":"No","EDIT_CONTAINER":"Edit Container","MULTI_CLUSTER_RESOURCE_TIP":"El recurso multi-clúster actual se ejecuta en distintos clústers. Puedes saltar entre clústers para comprobar los parámetros de este recurso en cada uno de ellos.","NODE":"Nodo","SERIAL_NUMBER":"Serial number","CREATED_TIME":"Created at {diff}","EVENT_PL":"Events","EVENT_NORMAL":"Normal","EVENT_WARNING":"Warning","APPLICATION_WORKLOAD_PL":"Workload de aplicaciones","WORKLOAD_PL":"Carga de trabajo","DEPLOYMENTS":"Deployments","UPDATE_TIME_TCAP":"Tiempo de actualización","ALL_PROJECTS":"Todos los proyectos","SHOW_NUM":"Show: {num}","SELECT_PROJECT_DESC":"Select a project in which the resource is to be created.","PROJECT_NOT_SELECT_DESC":"Please select a project.","BASIC_INFORMATION":"Información básica","NAME":"Nombre","FEDPROJECT_RESOURCE_TIP":"No se pueden crear recursos de proyectos de múltiples clústeres en la administración de clústeres, vaya a la página del proyecto de múltiples clústeres para operar.","FINISHED":"Done","NOT_SET":"To do","CURRENT":"Current","PROJECT":"Proyecto","PREVIOUS":"Anterior","NOTE":"Advertencia","IMAGE":"Imagen","IMAGE_VALUE":"Imagen: {value}","PORT_NUMBER_EMPTY":"Please enter a port number.","USER":"Usuario","VOLUME_NAME_EXIST":"nombre de volumen existe","SELECT_TYPE":"Select {type}","SPECIFY_SUBPATH":"Haga clic para agregar subPath","SPECIFY_SUBPATH_TIP":"Solo es apropiado para montar volúmenes, pero no para hostpath","MOUNT_PATH":"Mount path","MOUNT_PATH_NOT_SPECIFIED":"Please select a key to be mounted and the mount path of the key.","MOUNT_PATH_EMPTY":"Please enter a mount path.","MOUNT_PATH_REPEATED":"The mount path is duplicated.","NETWORK_SEGMENT_SCAP":"Network segment","AVAILABLE_ADDRESSES":"Available Number","POD_IP_POOL":"Pod IP Pool","SUBPATH":"sub ruta","ANNOTATION_PL":"Anotaciones","CREATE_SUCCESSFUL":"Creado con éxito","STOP":"Stop","STOP_TITLE_SI":"Stop {type}","STOP_TITLE_PL":"Stop Multiple {type}","STOP_DESC":"Are you sure you want to stop the resource?","END_TIME":"Hora de finalización","SN_NO":"Num.","START_TIME":"Hora de inicio","NODE_IP_ADDRESS":"Node IP Address","CLUSTER":"Cluster","CONTAINER_PL":"Contenedores","PROBE_PL":"Investigacion","HOOK_PL":"Hooks","CONTAINER_LOGS_NOT_SUPPORTED":"El contenedor no admite logs en tiempo real en el estado actual, intente nuevamente más tarde.","CONTAINER_LOGS":"Registros de contenedores","COMMAND":"Comando","IMAGE_ID":"ID de imagen","IMAGE_PULL_POLICY":"Política de extracción de imagen","CONTAINER_DETAILS_PAGE_SCAP":"Container details page.","CPU_VALUE":"CPU: {value, plural, =1 {1 core} other {# cores}}","MEMORY_VALUE":"Memory: {value}","NVIDIA_COM_GPU_VALUE":"GPU: {value}","LOADING":"Cargando","RESOURCE_LIMITS":"Límites de recursos","RESOURCE_REQUESTS":"Solicitudes de recursos","TERMINAL":"Terminal","RESTART_PL":"Reiniciar contadores","RESTART":"Restart","STORAGE_DEVICES":"Dispositivo de almacenamiento","LIVENESS_PROBE":"Sonda de estado","READINESS_PROBE":"Sonda de preparación","STARTUP_PROBE":"Startup Probe","REQUEST_TYPE":"Request type","NO_LOG_DATA_FOUND":"No Log Data Found","NO_LOG_DATA_FOUND_TIP":"No log data is found.","VOLUME_PL":"Volumes","TYPE_CONFIGMAP":"Volume type: ConfigMap","TYPE_SECRET":"Volume type: Secret","TYPE_EMPTYDIR":"Volume type: emptyDir","TYPE_HOSTPATH":"Volume type: HostPath","REASON_VALUE":"Reason: {value}","MESSAGE_VALUE":"Message: {value}","UPDATED_AT_VALUE":"Updated At: {value}","NO_MONITORING_DATA":"No Monitoring Data","OUTBOUND":"Outbound","INBOUND":"Inbound","POD_PL":"Pods","NODE_IP":"{node} ({ip})","WAITING":"Waiting","POD_LOW":"Pod","PENDING":"Pendiente","SERVICE_VALUE":"Servicio: {value}","PROTOCOL_VALUE":"Protocolo: {value}","ROUTE_DESC":"Una ruta proporciona una forma de agregar servicios, y puede exponer los servicios internos del clúster al exterior a través de una dirección IP accesible desde el exterior.","PREREQUESTS_FOR_USE_ROUTE_Q":"¿Cuales son los requisitos para poder usar rutas?","PREREQUESTS_FOR_USE_ROUTE_A":"To use a route, the project administrator needs to set the gateway for the current project.","ACCESS_TYPES_OF_ROUTE_Q":"¿Qué tipos de acceso admite la ruta?","ACCESS_TYPES_OF_ROUTE_A":"Las rutas de KubeSphere admiten nombres de dominio personalizados (HostName) y así como wildcards DNS.","ROUTE_PL":"Routes","GATEWAY_ADDRESS_TCAP":"Dirección del gateway","ROUTE_EMPTY_DESC":"Una ruta proporciona una forma de agregar servicios, y puede exponer los servicios internos del clúster al exterior a través de una dirección IP accesible desde el exterior.","ADD_ROUTING_RULE_DESC":"Agregar una regla de ruta para asignar un nombre de dominio a un servicio.","ADD_ROUTING_RULE":"Agregar regla de ruta","ROUTING_RULE_EMPTY_DESC":"Please add at least one routing rule.","PATH_EMPTY_DESC":"Please add at least one path.","AUTO_GENERATE_TCAP":"Autogenerar","DOMAIN_NAME_TCAP":"Domain Name","DOMAIN_NAME_EMPTY_DESC":"Ingrese un nombre de dominio","INVALID_DOMAIN_DESC":"Invalid domain name","INVALID_PATH_DESC":"Establezca una ruta correcta","MODE_TCAP":"Modo","PATH_PL":"Rutas","PATH_SERVICE_TIP":"Selecciona un servicio","SET_ROUTING_RULES":"Establecer regla de ruta","SPECIFY_DOMAIN_TCAP":"Especificar dominio","NO_GATEWAY_DESC":"Para usar la generación automática, comuníquese con el administrador del proyecto para configurar el método de acceso a la puerta de enlace en la configuración avanzada del proyecto.","PATH":"Ruta","PROTOCOL":"Protocolo","PORT":"Port","PORT_VALUE":"Port: {value}","CERTIFICATE":"Certificate","EDIT_ROUTING_RULES":"Edit Routing Rules","EDIT_ANNOTATIONS":"Edit Annotations","ROUTE_LOW":"Route","PLEASE_INSTALL_GATEWAY":"Please install the KubeSphere gateway extension component and configure the cluster agent before trying again.","ROUTE_SETTING_DESC":"Based on ingresses, Ingress Utils provides multiple practical extension capabilities, such as domain name reuse validation.","ROUTE_SETTING_EMPT":"No domain name requires reuse validation","ROUTE_SETTING_EMPTY_DESC":"After adding a domain name, uniqueness validation will be conducted on the domain name when creating or editing an ingress. Domain Name Reuse Validation only applies to the current cluster and does not affect the existing ingresses.","CREATE_DOMAIN_NAME":"Add domain name","CREATE_DOMAIN_NAME_DES":"Wildcard characters can be used to match domain names.","INVALID_CREATE_DOMAIN_NAME":"This domain name already exists. Please enter another domain name.","DOMAIN_NAME_DESC":"Please set a domain name","INVALID_DOMAIN_NAME":"Domain Name Reuse Validation","ROUTE_SETTING":"Domain name","ROUTE_SETTING_PL":"Ingress Utils","ROUTE_SETTING_LOW":"Domain name","DELETE_MULTIPLE_ROUTE_SETTING":"Batch delete domain names","EXIT_DOMAIN_DESC":"This domain name or its subdomain name has been used in the project of the current cluster. Please change the domain name to a different one.","CUSTOM_SERVICE":"Custom Service","VIRTUAL_IP":"IP virtual","CONTAINER_PORT_SCAP":"Container port","SERVICE_PORT_SCAP":"Service port","NO_AVAILABLE_RESOURCE_VALUE":"{resource} no disponible","NO_RESOURCE_FOUND":"No se puede encontrar el recurso.","REVISION_RECORD":"Revision record","SERVICE_PL":"Servicio","SERVICE_DESC":"Services provide an abstract way to expose applications running on a Pod as network services.","SERVICE_EMPTY_DESC":"Please create a Service.","UNKNOWN":"Unknown","EXTERNAL_ACCESS":"External Access","INTERNAL_ACCESS":"Internal Access","UNKNOWN_SERVICE_TYPE":"Unknown Service Type","SERVICE":"Servicio","SERVICE_LOW":"Service","INTERNAL_ACCESS_MODE":"Internal Access Mode","CREATE_SERVICE":"Crear servicio","SERVICE_NAME_DESC":"The name can contain only lowercase letters, numbers, and hyphens (-), must start with a lowercase letter, and must end with a lowercase letter or number. The maximum length is 63 characters.","VIRTUAL_IP_TITLE":"Virtual IP Address","INTERNAL_DOMAIN_NAME":"Internal Domain Name","CONTAINER_PORT":"Puerto de contenedores","INVALID_PORT":"Puerto inválido","PORT_EMPTY":"Por favor introduce puertos","ENTER_SELECTOR_TIP":"Please set a workload selector.","Ports":"Puertos","SPECIFY_WORKLOAD":"Specify Workload","SELECT_WORKLOAD_DESC":"Pre-populate the fields with labels of container replicas created by the workloads.","VIRTUAL_IP_DESC":"The cluster generates a unique IP address for the Service and the Service can be accessed within the cluster using this IP address.","INTERNAL_DOMAIN_NAME_DESC":"The cluster does not generate an IP address for the Service and the Service can be directly accessed using the Endpoint IP address of the Service.","SERVICE_PORTS_DESC":"Set the container ports and Service ports.","NO_WORKLOAD_MATCH_SELECTOR":"The current selector matches no workload.","WORKLOADS_MATCH_SELECTOR_SI":"The current selector ({selector}) matches {count} workload.","WORKLOADS_MATCH_SELECTOR_PL":"The current selector ({selector}) matches {count} workloads.","WORKLOAD_SELECTOR":"Workload Selector","SERVICE_SETTINGS":"Configuraciones de servicio","TOTAL_WORKLOADS_VALUE":"Total Workloads: { count }","OPENELB_NOT_READY":"OpenELB is not installed. Please install OpenELB.","SESSION_PERSISTENCE":"Session Persistence","MAXIMUM_STICKINESS_DURATION":"Tiempo máximo de sesión (s)","SESSION_PERSISTENCE_DESC":"Set the system to forward all requests from the same client to the same pod within a specified duration.","SERVICE_EXTERNAL_ACCESS_DESC":"Exponga el servicio fuera del clúster.","ACCESS_NODEPORT_TIP":"Use a port of the cluster nodes to access the Service.","ACCESS_LOADBALANCER_TIP":"Use a load balancer to access the Service.","WORKLOAD_ANNOTATIONS":"Workload Annotations","LABEL_FORMAT_DESC":"The key and value of a label can contain only letters, numbers, hyphens (-), underscores (_), and dots (.), and must start and end with a letter or number. The maximum length of each key and each value is 63 characters (if the key contains a domain name, the maximum length is 253 characters).","STATEFULSETS":"StatefulSets","INVALID_ALIAS_NAME_DESC":"Invalid alias name. The alias name can contain only letters, numbers, and hyphens (-), and cannot start or end with a hyphen. The maximum length is 63 characters.","NODES":"Nodos","DISK":"Disk","CLUSTER_INFORMATION":"Información del clúster","CLUSTER_NAME":"Nombre del clúster","EDIT_CLUSTER_INFO_DESC":"Edit basic information about the cluster.","REMOVE_CLUSTER":"Remove Cluster","REMOVE_CLUSTER_DESC":"After the cluster is removed, KubeSphere will not be able to manage the cluster. Resources in the cluster will not be deleted. Enter the cluster name {name} to confirm that you understand the risks of this operation.","REMOVE_SUCCESS":"Removed successfully.","CLUSTER_MEMBER_PL":"Cluster Members","CLUSTER_MEMBER":"Cluster Member","INVITE_CLUSTER_MEMBER_DESC":"Invite users to the cluster.","PERMIGROUP_NETWORK_MANAGEMENT":"Network","PERMISSION_NETWORK_RESOURCES_VIEW":"Network Resource Viewing","PERMISSION_NETWORK_RESOURCES_MANAGEMENT":"Network Resource Management","PERMIGROUP_PROJECT_RESOURCES_MANAGEMENT":"Project Resources","PERMISSION_PROJECT_RESOURCES_VIEW":"Project Resource Viewing","PERMISSION_PROJECT_RESOURCES_MANAGEMENT":"Project Resource Management","PERMISSION_STORAGECLASSES_VIEW":"Storage Class Viewing","PERMISSION_STORAGECLASSES_MANAGEMENT":"Storage Class Management","PERMISSION_VOLUME_SNAPSHOT_CLASSES_VIEW":"Volume Snapshot Class Viewing","PERMISSION_VOLUME_SNAPSHOT_CLASSES_MANAGEMENT":"Volume Snapshot Class Management","PERMIGROUP_CLUSTER_RESOURCES_MANAGEMENT":"Cluster Resources","PERMISSION_CRD_VIEW":"Custom Resource Definition Viewing","PERMISSION_CRD_MANAGEMENT":"Custom Resource Definition Management","PERMISSION_NODES_VIEW":"Node Viewing","PERMISSION_NODES_MANAGEMENT":"Node Management","PERMISSION_COMPONENTS_VIEW":"System Component Viewing","PERMIGROUP_CLUSTER_SETTINGS":"Configuraciones de clúster","PERMISSION_CLUSTER_SETTINGS_VIEW":"Cluster Settings Viewing","PERMISSION_CLUSTER_SETTINGS_MANAGEMENT":"Cluster Settings Management","PERMISSION_CLUSTER_MONITORING_VIEW":"Monitoring Information Viewing","PERMISSION_CLUSTER_MONITORING_MANAGEMENT":"Monitoring Information Management","PERMISSION_CLUSTER_ROLES_VIEW":"Vista de roles de proyecto","PERMISSION_CLUSTER_ROLES_MANAGEMENT":"Gestión de Roles de Proyecto","PERMISSION_CLUSTER_MEMBERS_VIEW":"Vista de miembros del proyecto","PERMISSION_CLUSTER_MEMBERS_MANAGEMENT":"Gestión de miembros de proyecto","CLUSTER_ROLE":"Cluster Role","CLUSTER_ROLE_PL":"Cluster Roles","CLUSTER_ROLE_DESC":"This module allows you to manage the access of users within a cluster.","ROLE_CLUSTER_VIEWER":"View all resources in the cluster.","ROLE_CLUSTER_ADMIN":"Manage all resources in the cluster.","CLUSTER_VISIBILITY":"Cluster Visibility","EDIT_VISIBILITY_DESC":"Edit the cluster visibility in workspaces.","UNAUTHORIZED":"Unauthorized","CLUSTER_VISIBILITY_DESC":"Cluster visibility controls the cluster authorization to workspaces. After a cluster is authorized to workspaces, you can view and manage the cluster resources in the workspaces.","CLUSTER_VISIBILITY_Q1":"How do I authorize a cluster to specific workspaces?","CLUSTER_VISIBILITY_A1":"You can assign a cluster to specific workspaces by clicking Edit Visibility.","CLUSTER_VISIBILITY_Q2":"¿Qué es un clúster público?","CLUSTER_VISIBILITY_A2":"Un clúster público significa que todos los usuarios de la plataforma pueden acceder al clúster, en el que pueden crear y programar recursos.","WORKSPACE":"Espacio de trabajo","CLUSTER_VISIBILITY_SCAP":"Visibilidad de clúster","AUTHORIZATION_TIME_TCAP":"Authorization Time","EDIT_VISIBILITY":"Editar visibilidad","AUTHORIZED":"Autorizado","SET_PUBLIC_CLUSTER":"Set as Public Cluster","HOST_CLUSTER_VISIBILITY_WARNING":"The visibility of the multi-cluster environment will decrease if the host cluster is overloaded. Exercise caution when assigning the host cluster to workspaces.","CLUSTER_VISIBILITY_REMOVE_WARNING":"After the authorization for a workspace to use the cluster is removed, all resources of the workspace on the cluster will be deleted.","REMOVE_WORKSPACE_CONFIRM_TITLE":"Remove Authorization","REMOVE_WORKSPACE_CONFIRM_SI":"Enter the workspace name {resource} to confirm that you understand the risks of this operation.","REMOVE_WORKSPACE_CONFIRM_PL":"Enter the workspace names {resource} to confirm that you understand the risks of this operation.","GATEWAY_LOW":"Gateway","REQUEST_COUNT":"Requests","NETWORK_TRAFFIC":"Network Traffic","CONNECTION_COUNT":"Connections","FAILED_REQUEST_COUNT":"Request Error","AVERAGE_LATENCY":"Average Latency","P_FIFTY_LATENCY":"P50 Latency","P_NINETY_FIVE_LATENCY":"P95 Latency","P_NINETY_NINE_LATENCY":"P99 Latency","FOUR_XX_REQUEST_COUNT":"4xx error","FIVE_XX_REQUEST_COUNT":"5xx error","TOTAL_REQUESTS":"Total Requests","SUCCESSFUL_REQUESTS":"Request Success","CONFIGURATION_OPTIONS":"Gateway Config","GATEWAY_LOGS":"Gateway Logs","LOGGING_DISABLED":"Logging Disabled","REFRESH_INTERVAL_VALUE":"Refresh interval: {value}s","EXPORT_LOGS":"Exportar logs","GATEWAY_SETTINGS":"Gateway Settings","CLUSTER_GATEWAY_DESC":"Set up and manage the configuration of the external network access gateway and service management in the cluster and project","CLUSTER_GATEWAY_NOT_ENABLED":"Cluster Gateway Not Enabled","CLUSTER_ENABLE_GATEWAY_DESC":"Before creating an application route, you need to enable the external network access portal, that is, the gateway. This step is to create the corresponding application routing controller, which is responsible for forwarding the request to the corresponding back-end service. ","CLUSTER_GATEWAY":"Cluster Gateway","GATEWAY_ADDRESS_SCAP":"Gateway address","LOAD_BALANCER_PROVIDER_SCAP":"Load balancer provider","ENABLE_GATEWAY":"Establecer puerta de enlace","GATEWAY_TRACING_TIP":"Necesitas habilitar Application Governance si deseas utilizar la función de Tracing. Una vez que Application Governance esté habilitado, verifica si se ha agregado una annotation como \"nginx.ingress.kubernetes.io/service-upstream: true\" para la ruta de la aplicación si la ruta es inaccesible. Si no existe el annotation, agrégalo.","VIEW_DETAILS":"Ver detalles","DISABLE":"Disable","DISABLE_GATEWAY":"Disable Gateway","DISABLE_GATEWAY_TIP":"Are you sure you want to disable the gateway?","DISABLE_SUCCESSFUL":"Disabled successfully.","EDIT":"Editar","EDIT_TITLE":"Edit {title}","UPDATE":"Update","UPDATED_GATEWAY_TITLE":"Update Gateway","UPDATE_GATEWAY_DESC":"The current gateway can be updated.","PROJECT_GATEWAY_PL":"Project Gateways","PROJECT_GATEWAY_NOT_ENABLED":"Project Gateway Not Enabled","PROJECT_ENABLE_GATEWAY_DESC":"The cluster management page does not support the setting of the project gateway. If you need to set it, you need to go to the corresponding project to set it. ","REPLICA_COUNT":"Replicas","NODE_PORTS":"Puerto host","PROJECT_GATEWAY_LOW":"project gateway","DISABLE_MULTIPLE_GATEWAYS":"Disable Multiple Gateways","EDIT_LOG_RECEIVER":"Edit Log Receiver","INDEX_PREFIX":"Index Prefix","LOG_RECEIVER":"Log Receiver","LOG_RECEIVER_LOW":"Log Receiver","CHANGE_STATUS":"Cambiar Estado","LOG_COLLECTION_ENABLE_TIPS":"El nuevo estado tarda aproximadamente 1 minuto en surtir efecto.","SELECT_STATUS_TIP":"Select a status","ADDRESS":"Address","LOG_RECEIVER_PL":"Log Receivers","LOG_COLLECTION_DESC":"El sistema recopilará los registros stdout y stderr de cada contenedor y los enviará a uno o más servicios de destino.","ADD_LOG_RECEIVER":"Add Log Receiver","LOG_COLLECTION_TIPS":"You can add one log receiver for each type.","ES_DESC":"Elasticsearch es un motor de búsqueda y análisis distribuido y RESTful.","KAFKA_DESC":"Kafka es una popular plataforma de procesamiento de flujo de código abierto.","FLUENTD_DESC":"Fluentd es un recopilador de datos de código abierto para la capa de registro unificada.","LOG_COLLECTION_ES_URL_TIPS":"The built-in Elasticsearch service is used by default. You can also enter the IP address of Elasticsearch independently deployed inside or outside the cluster.","LOG_COLLECTION_ES_INDEX_TIPS":"Use the index prefix to speed up queries. The index prefix is automatically generated in -- format.","ADDRESS_VALUE":"Address: {value}","TOPIC":"tema","ADD_SERVICE_ADDRESS":"Add","SERVICE_ADDRESS":"Dirección de Servicio","ENTER_SERVICE_ADDRESS":"Por favor introduce la dirección del servicio","INVALID_SERVICE_ADDRESS":"Please enter a correct service address.","SERVICE_ADDRESS_EXIST":"The service address already exists. Please enter another service address.","EXAMPLE_VALUE":"Example: {value}","LOG_COLLECTION_FLUENTD_URL_TIPS":"Enter the address of the Fluentd service that receives logs.","EMPTY_LOG_COLLECTIONS":"No log receiver is found. You can add log receivers and send logs to external log receivers.","RESOURCE_EVENTS":"Resource Events","AUDIT_LOGS":"Audit Logs","NO_CLUSTER_TIP":"Agregue al menos un clúster.","CLUSTER_NAME_EMPTY":"Please enter a cluster name.","ADD_CLUSTER":"Agregar clúster","TAG":"Etiqueta","CLUSTER_TAG_DESC":"Select a tag to identify the purpose of the cluster.","CLUSTER_PROVIDER_DESC":"Select the provider of the cluster infrastructure.","CONNECTION_SETTINGS":"Connection Settings","CLUSTER_CONFIG":"Cluster Configuration","EDIT_CONFIG":"Edit Configuration","CLUSTER_CONFIG_IMAGE_REGISTRY_TIP":"Please modify the image registry address to your actual one. The default is KubeSphere's official online registry. Ensure you can access it","CONNECTION_MODE":"Connection Mode","CLUSTER_CONNECT_MODE_DESC":"Directly connect to the cluster or use an agent.","CONNTECT_DIRECT":"Conexión directa al clúster de Kubernetes","CONNTECT_PROXY":"Agente de conexión de clúster","INPUT_KUBECONFIG":"Member Cluster kubeconfig","CLUSTER_DIRECT_IMPORT_TIP":"La interfaz de control de múltiples clústeres de KubeSphere se conecta a los clústeres importados a través del kubeconfig proporcionado. Para este método, el clúster actual debe poder acceder directamente a los clústeres que se importarán a través de la dirección del servidor en kubeconfig.

    Este método generalmente se aplica a las siguientes condiciones:
    1. El clúster actual y los clústeres que se importarán están en la misma red interna.
    2. La red tanto del clúster actual como de los clústeres que se importarán está conectada a través de VPN u otras tecnologías (por ejemplo, Túneles).
    3. Se puedes acceder a la dirección del servidor en kubeconfig a través de la red pública.","CLUSTER_AGENT_IMPORT_TIP":"La interfaz de control de KubeSphere se conecta a los clústeres que se importarán a través de un proxy. La interfaz de control ejecuta un servicio de proxy público, que está conectado a un componente de cliente creado por clústeres para importar. Por lo tanto, se crea un proxy de reserva. Para este método, la interfaz de control y los clústeres que se van a importar no necesitan estar en la misma red. La dirección de apiserver de los clústeres a importar tampoco necesita exponerse. Sin embargo, el rendimiento de la red puedes verse afectado.

    Este método generalmente se aplica a las siguientes condiciones:
    1. El clúster actual y los clústeres que se importarán no están en la misma red.
    2. La red tanto del clúster actual como de los clústeres que se van a importar no se puedes conectar a través de VPN u otras tecnologías (por ejemplo, Túneles).
    3. Se pueden aceptar deficiencias de rendimiento de la red dentro de los clústeres.","CLUSTER_AGENT_TITLE":"Agregue el clúster en función del agente proporcionado en el clúster.","CLUSTER_AGENT_DESC":"Se debe establecer un agente correspondiente en el clúster.","HOW_TO_GET_KUBECONFIG":"How do I obtain kubeconfig?","HOST_CLUSTER_TCAP":"Host Cluster","HOST_CLUSTER_PL_TCAP":"Host Clusters","MEMBER_CLUSTER_TCAP_PL":"Member Clusters","CLUSTER_CONDITION_INITIALIZED":"Inicializado","CLUSTER_CONDITION_AGENTAVAILABLE":"Agent Available","CLUSTER_CONDITION_FEDERATED":"Federated","CLUSTER_CONDITION_EXTERNALACCESSREADY":"External Access Ready","CLUSTER_CONDITION_READY":"Cluster Ready","CLUSTER_CONDITION_SCHEDULABLE":"Cluster Scheduling","CLUSTER_CONDITION_OPENPITRIXRUNTIMEREADY":"App Store Ready","CLUSTER_CONDITION_KUBECONFIGCERTEXPIRESINSEVENDAYS":"kubeconfig About to Expire","NODE_COUNT":"Cantidad de nodos","ENV_PRODUCTION":"Producción","ENV_DEVELOPMENT":"Desarrollo","ENV_TESTING":"Testing","ENV_DEMO":"Demo","UPDATE_KUBECONFIG":"Update kubeconfig","KUBE_CONFIG_IS_EXPIRED":"KubeConfig has expired","EXPIRE_DATE":"Expiration Time","LAST_KUBE_CONFIG_EXPIRED":"KubeConfig expires in {count} days","VALIDATION_FAILED":"Validation failed.","NO_CLUSTER_TIP_DESC":"A cluster is a group of nodes (physical or virtual machines) running KubeSphere.","RISK_WARNING":"Risk Warning","REMOVE_CLUSTER_TIP_A":"After the cluster is removed, resources in the cluster will not be cleared automatically.","REMOVE_CLUSTER_TIP_B":"After the cluster is removed, multi-cluster configuration data in the cluster will not be cleared automatically. Uninstalling KubeSphere or deleting related resources may cause user data loss. You must manually clear the multi-cluster configuration data in the removed cluster by refering to the official KubeSphere documentation.","CLUSTER_CONFIRM_TEXT":"I understand the risks of removing the cluster","ENTER_CLUSTER_NAME":"This operation cannot be undone. Enter the cluster name {name} to confirm that you understand the risks of this operation.","CONFIGMAP_DESC":"Un ConfigMap a menudo se usa para almacenar la información de configuración necesaria para workload. Muchas aplicaciones leerán la información de archivos de configuración, de parámetros de la línea de comandos o de variables de entorno.","FIELDS":"Campo de configuración","EDIT_YAML":"Editar YAML","ENTER_CONFIG_VALUE_DESC":"Introduce el valor de la entrada del configmap o utiliza el contenido del archivo","CONFIG_FIELD_DESC":"El valor único de la clave asignada por el campo de configuración.","CONFIGURATION":"Configuration","SECRET_PL":"Secrets","SECRET_DESC":"Un secreto es un objeto que contiene una pequeña cantidad de datos confidenciales, como una contraseña, un token o una clave.","SECRET_FIELD_COUNT":"Los campos","SECRET_EMPTY_DESC":"Un secreto es un objeto que contiene una pequeña cantidad de datos confidenciales, como una contraseña, un token o una clave.","SECRET":"Secreto","DATA_SETTINGS":"Data Settings","IMAGE_REGISTRY_INFORMATION":"Secreto del repositorio de imágenes","TLS_INFORMATION":"TLS information","USERNAME_PASSWORD":"Secreto de contraseña de cuenta","ADD_DATA_TCAP":"Agregar datos","ADD_DATA_DESC":"Agregar datos de par clave / valor","REGISTRY_ADDRESS_TIP":"Establezca una dirección de registro, por ejemplo, docker.io.","IMAGE_REGISTRY_REQUIRED_DESC":"Establezca la dirección de registro, el nombre de usuario y la contraseña.","CREDENTIAL_NAME_EMPTY_DESC":"Por favor introduce la credencial","ENTER_PRIVATE_KEY_DESC":"Por favor introduce la clave privada","ENTER_DATA_DESC":"Por favor introduce los datos","PRIVATE_KEY_TCAP":"Clave privada","REGISTRY_ADDRESS_TCAP":"Dirección de registro","SKIP_VERIFY":"Skip certificate verification","REGISTRY_SECRET_VER_ERR":"La verificación del registro falló","REGISTRY_SECRET_VER_SUC":"Verificación de registro exitosa","SECRET_NO_CHINESE_CODE_DESC":"La clave del Secreto debe constar de caracteres alfanuméricos, guiones (-), guiones bajos (_) o puntos (.).","SECRET_TYPE_DESC":"Puedes elegir o personalizar un tipo secreto.","IMAGE_REGISTRY_VALIDATE_TIP":"Valide el nombre de usuario y la contraseña antes de crear el registro de imágenes Secreto.","DATA_KEY":"Clave","DATA_VALUE":"Valor","DEFAULT":"Predeterminado","USERNAME_AND_PASSWORD":"Secreto de contraseña de cuenta","DATA":"Datos","EDIT_DATA_TCAP":"Editar datos","KUBECONFIG_SETTINGS":"kubeconfig Settings","CUSTOM_RESOURCE_PL":"Custom Resources","PROJECT_DEVOPS_PROJECT":"Project/DevOps Project","CUSTOM_RESOURCE":"Custom Resource","CUSTOM_RESOURCE_LOW":"custom resource","CRD":"CRD","CRD_PL":"CRDs","CRD_LOW":"CRD","CRD_DESC":"A Custom Resource Definition (CRD) extends Kubernetes by allowing users to create any kind of custom resources. Users can use these CRD objects as they do for built-in resources.","CRD_EMPTY_DESC":"Please create a CRD.","KIND_TCAP":"Kind","SCOPE_TCAP":"Scope","ALERTING_MESSAGE_PL":"Alerts","ALERT_MESSAGE_DESC":"Alerts are generated when resource metrics meet conditions configured in rule groups.","ALERTS_FROM_CUSTOM_POLICIES":"From Custom Rules","ALERTS_FROM_BUILT_IN_POLICIES":"From Built-in Rules","TRIGGER_TIME":"Trigger Time","ALERTING_MESSAGE_EMPTY_DESC":"No alert is found in the current project.","MONITORING_TARGET":"Monitoring Target","DURATION":"Duration","VIEW_METRIC_DATA":"View metric data","ALERTING_RULE":"Alert Rules","MONITORING_TARGETS_SCAP":"Monitoring targets","TRIGGER_CONDITION_SCAP":"Trigger condition","METRIC_MONITORING":"Metric Monitoring","ALERT_MONITORING":"Alert Monitoring","NOTIFICATION_SUMMARY_COLON":"Summary: ","DETAILS_COLON":"Details: ","NODES_VALUES":"Nodes: {values}","TRIGGER_CONDITION":"Trigger Condition","MESSAGE_SUMMARY":"Summary","MESSAGE_DETAILS":"Details","VIEW_METRIC_DATA_TCAP":"View Metric Data","ALERT_RULE_TEXT_PERCENT_SECOND":"{alterTypeText} {comparator} {thresholds}% for {durationValue, plural, =1 {1 second} other {# seconds}}","ALERT_RULE_TEXT_PERCENT_MINUTE":"{alterTypeText} {comparator} {thresholds}% for {durationValue, plural, =1 {1 minute} other {# minutes}}","ALERT_RULE_TEXT_PERCENT_HOUR":"{alterTypeText} {comparator} {thresholds}% for {durationValue, plural, =1 {1 hour} other {# hours}}","ALERT_RULE_TEXT_SECOND":"{alterTypeText} {comparator} {thresholds} {unit} for {durationValue, plural, =1 {1 second} other {# seconds}}","ALERT_RULE_TEXT_MINUTE":"{alterTypeText} {comparator} {thresholds} {unit} for {durationValue, plural, =1 {1 minute} other {# minutes}}","ALERT_RULE_TEXT_HOUR":"{alterTypeText} {comparator} {thresholds} {unit} for {durationValue, plural, =1 {1 hour} other {# hours}}","CPU_UTILIZATION_NO_PERCENT_TCAP":"Uso de CPU","CPU_LOAD_1_TCAP":"1-Minute CPU Load Average","CPU_LOAD_5_TCAP":"5-Minute CPU Load Average","CPU_LOAD_15_TCAP":"15-Minute CPU Load Average","MEMORY_UTILIZATION_NO_PERCENT_TCAP":"Uso de memoria","MEMORY_AVAILABLE_TCAP":"Available Memory","DATA_SEND_RATE_TCAP":"Network Data Sending Rate","DATA_RECEIVE_RATE_TCAP":"Network Data Receiving Rate","DISK_SPACE_UTILIZATION_NO_PERCENT_TCAP":"Local Disk Usage","DISK_SPACE_AVAILABLE_TCAP":"Available Local Disk Space","INODE_UTILIZATION_NO_PERCENT_TCAP":"Inode Usage","DISK_READ_IOPS_TCAP":"Local Disk Read IOPS","DISK_WRITE_IOPS_TCAP":"Local Disk Write IOPS","DISK_READ_THROUGHPUT_TCAP":"Local Disk Read Throughput","DISK_WRITE_THROUGHPUT_TCAP":"Local Disk Write Throughput","UNAVAILABLE_POD_RATIO_NO_PERCENT_TCAP":"Unavailable Pod Ratio","POD_QUOTA_UTILIZATION_NO_PERCENT_TCAP":"Pod Quota Usage","MEMORY_USAGE_WO_CACHE_TCAP":"Memory Usage Without Cache","UNAVAILABLE_WORKLOAD_REPLICA_RATIO_NO_PERCENT_TCAP":"Unavailable Replica Ratio","THRESHOLD_VALUE":"Threshold: {value}","NO_DATA_DESC":"No Data Found","ALERTING_POLICY_PL":"Rule Groups","ALERTING_POLICY_DESC":"A rule group contains alert rules used to monitor cluster resources.","REQUESTS_FOR_TRIGGER_AN_ALARM_Q":"How are alerts generated?","REQUESTS_FOR_TRIGGER_AN_ALARM_A":"You need to create a rule group and set alert rules. The system will generate alerts when resource metrics meet conditions configured in rule groups.","CUSTOM_POLICIES":"Custom Rule Groups","BUILT_IN_POLICIES":"Built-in Rule Groups","ALERTING_POLICY_EMPTY_DESC":"Please create a rule group.","ALERT_RULE_INACTIVE":"Inactive","ALERT_RULE_PENDING":"Pendiente","ALERT_RULE_FIRING":"Firing","ALERT_RULE_DISABLED":"Deshabilitado","POLICY_STATUS":"Rule Group Status","RULE_STATUS":"Rule Status","TIME_SPENT":"Time Spent","RECENT_DETECT_TIME":"Last Check","EDIT_ALERT_RULES":"Edit Alert Rules","RESET":"Reset","SEVERITY":"Tipo de alerta","CREATE_ALERTING_POLICY":"Create Rule Group","CRITICAL_ALERT":"Critical","ERROR_ALERT":"Error","WARNING_ALERT":"Warning","INFO_ALERT":"Info","INVALID_TIME_DESC":"Invalid value. Please enter 0 or a positive integer.","ALIAS":"Alias","DURATION_MIN":"Duration (minutes)","ALERT_DURATION":"Set the system to wait for a certain duration and check whether the alert situation persists before firing an alert.","LONG_NAME_DESC":"Solo puede contener letras minúsculas, números y guiones (\"-\"), y debe comenzar con una letra minúscula y terminar con un número o letra minúscula. La longitud máxima de carácteres se establece en 253.","NAME_EXIST_DESC":"Nombre existe","ALIAS_NAME_DESC":"The alias name can contain only letters, numbers, and hyphens (-), and cannot start or end with a hyphen. The maximum length is 63 characters.","CHECK_INTERVAL":"Check Interval","ALERTING_POLICY_CHECK_INTERVAL_DESC":"Set the interval between metric checks. The default value is 1 minute.","ADD_ALERTING_RULE":"Add Alert Rule","ADD_ALERTING_RULE_DESC":"Add an alert rule to the rule group.","ENABLE_RULE":"Enable Rule","DISABLE_RULE":"Disable Rule","RULE_NAME":"Rule Name","CUSTOM_RULE_NAME_DESC":"The rule name can contain any characters. The maximum length is 63 characters.","LASTING_MINUTES":"For {minutes, plural, =1 {1 minute} other {# minutes}}","THRESHOLD_REQUIRED":"Please enter a metric threshold.","MESSAGE_SUMMARY_DESC":"The message summary can contain any characters. The maximum length is 63 characters.","MESSAGE_DETAILS_DESC":"The message details can contain any characters. The maximum length is 256 characters.","RULE_TEMPLATE":"Rule Template","RULE_SETTINGS":"Rule Settings","MONITORING_TARGETS":"Monitoring Targets","SET_ACTIVATION_CONDITION_DESC":"Please set a trigger condition.","THRESHOLD":"Umbral","UNAVAILABLE_POD_RATIO":"Unavailable pod ratio (%)","POD_QUOTA_UTILIZATION_SCAP":"Pod quota usage (%)","CPU_USAGE_SCAP":"ratio de uso de CPU","CPU_UTILIZATION_SCAP":"CPU usage (%)","CPU_LOAD_1":"1-minute CPU load average","CPU_LOAD_5":"5-minute CPU load average","CPU_LOAD_15":"15-minute CPU load average","MEMORY_AVAILABLE":"memoria disponible","MEMORY_UTILIZATION_SCAP":"Memory usage (%)","DISK_SPACE_AVAILABLE":"espacio de disco disponible","DISK_SPACE_UTILIZATION":"Local disk usage (%)","INODE_UTILIZATION":"Inode usage (%)","DISK_READ_IOPS":"iops de lectura de disco","DISK_WRITE_IOPS":"iops de escritura de disco","DISK_READ_THROUGHPUT":"rendimiento de lectura de disco","DISK_WRITE_THROUGHPUT":"rendimiento de escritura en disco","DATA_RECEIVE_RATE":"ratio de datos de red recibidos","DATA_SEND_RATE":"Network data sending rate","MEMORY_USAGE_SCAP":"ratio de uso de memoria","MEMORY_USAGE_WO_CACHE_SCAP":"Memory usage without cache","UNAVAILABLE_WORKLOAD_REPLICA_RATIO":"Unavailable replica ratio (%)","SELECT_NODE_TIP":"Please select at lease a cluster node.","CUSTOM_RULE":"Custom Rule","RULE_EXPRESSION":"Rule Expression","ENTER_RULE_EXPRESSION":"Please enter a rule expression.","ALERT_RULE_EXPRESSION_DESC":"You can define a custom rule using PromQL statements.","ALERT_FUNCTIONS":"Functions","ALERT_METRICS":"Metrics","ALERT_LABELS":"Labels","ALERT_RATE_RANGES":"Rate Ranges","ALERTING_MESSAGE":"Alert","MESSAGE_SETTINGS":"Message Settings","NOTIFICATION_SUMMARY":"Summary","NOTIFICATION_DETAILS":"Details","EDIT_ALERTING_POLICY":"Edit Rule Group","DISABLE_ALERTING_POLICY":"Disable Rule Group","ALERTING_POLICY":"Rule Group","ALERTING_POLICY_LOW":"rule group","RESET_ALERTING_POLICY":"Reset Rule Group","RESET_ALERTING_POLICY_DESC":"Are you sure you want to reset the rule group?","APPLICATION_RESOURCE_PL":"Monitorización de recursos de aplicaciones","MONITORING_APPLICATION_DESC":"Application resources provide the monitoring data of application resource usage and usage ranking.","CUSTOM_TIME_RANGE":"Customize Time Range","ACCOUNTS":"Accounts","DEVOPS_PROJECT_PL":"DevOps Projects","SAMPLING_INTERVAL":"Sampling Interval","KUBE_SUN":"Dom","KUBE_MON":"Lun","KUBE_TUE":"Mar","KUBE_WED":"Miér","KUBE_THU":"Juev","KUBE_FRI":"Vier","KUBE_SAT":"Sáb","KUBE_SUNDAY":"Domingo","KUBE_MONDAY":"Lunes","KUBE_TUESDAY":"Martes","KUBE_WEDNESDAY":"Miércoles","KUBE_THURSDAY":"Jueves","KUBE_FRIDAY":"Viernes","KUBE_SATURDAY":"Sábado","KUBE_JAN":"Ene","KUBE_FEB":"Feb","KUBE_MAR":"Mar","KUBE_APR":"Abr","KUBE_MAY":"May","KUBE_JUN":"Jun","KUBE_JUL":"Jul","KUBE_AUG":"Ago","KUBE_SEP":"Sep","KUBE_OCT":"Oct","KUBE_NOV":"Nov","KUBE_DEC":"Dic","KUBE_JAN_LH":"Enero","KUBE_FEB_LH":"Febrero","KUBE_MAR_LH":"Marzo","KUBE_APR_LH":"Abril","KUBE_MAY_LH":"Mayo","KUBE_JUN_LH":"Junio","KUBE_JUL_LH":"Julio","KUBE_AUG_LH":"Agosto","KUBE_SEP_LH":"Septiembre","KUBE_OCT_LH":"Octubre","KUBE_NOV_LH":"Noviembre","KUBE_DEC_LH":"Diciembre","APPLICATION_RESOURCE_USAGE":"Uso de recursos de la aplicación","DEPLOYMENT":"Deployment","DEPLOYMENT_PL":"Deployments","DEPLOYMENT_LOW":"deployment","STATEFULSET":"StatefulSet","STATEFULSET_PL":"StatefulSets","STATEFULSET_LOW":"statefulset","DAEMONSET":"DaemonSet","DAEMONSET_PL":"DaemonSets","DAEMONSET_LOW":"daemonset","DEPLOYMENTS_VALUE":"Deployments: {value}","STATEFULSETS_VALUE":"StatefulSets: {value}","DAEMONSETS_VALUE":"DaemonSets: {value}","RUNNING_PODS":"Pods en ejecución","ROUTE":"Ruta","PROJECT_PL":"Projects","PROJECT_COUNT":"Projects","USAGE_RANKING":"Usage Ranking","QUOTA_VALUE":"Quota: {value}","OUTBOUND_TRAFFIC":"Outbound Traffic","INBOUND_TRAFFIC":"Inbound Traffic","SORT_BY_NAMESPACE_CPU_USAGE":"Ordenar por uso de CPU","SORT_BY_NAMESPACE_POD_COUNT":"Sort by pod quota usage (%)","SORT_BY_NAMESPACE_NET_BYTES_RECEIVED":"Ordenar por tráfico entrante","SORT_BY_NAMESPACE_NET_BYTES_TRANSMITTED":"Ordenar por tráfico saliente","MONITORING_AND_ALERTING":"Monitorización y alertas","CLUSTER_STATUS":"Monitorización de estado del clúster","MONITORING_CLUSTER_DESC":"Cluster status displays the overview and details of cluster resources. You can view the monitoring data and the usage ranking of cluster resources.","CLUSTER_NODE_STATUS":"Estado del nodo del clúster","ALL_NODES":"Todos los nodos","ONLINE_NODES":"Nodos en línea","NODE_ONLINE_STATUS":"Estado del nodo online","TIMES_PER_SECOND":"times/s","COMPONENT_STATUS":"Estado de los componentes","CONTROLLER_MANAGER":"Manager de controlador","KUBERNETES_SCHEDULER":"Scheduler K8s","CLUSTER_RESOURCE_USAGE":"Uso de recursos del clúster","POD_COUNT":"Pods","COUNT":"Count","PODS":"Pods","SERVICE_STATUS":"Service Status","ETCD_MONITORING":"Monitorización etcd","DB_SIZE":"Tamaño DB","RAFT_PROPOSAL":"Raft Proposal","ETCD_STATUS":"Estado del servicio","ETCD_PROPOSAL":"Propuesta de raft","ETCD_DB_SIZE":"Tamaño de DB","ETCD_CLIENT_TRAFFIC":"Tráfico de clientes","TITLE_UNIT":"{title} ({unit})","AVERAGE":"Average","PROPOSAL_COMMITTED":"Committed","PROPOSAL_APPLIED":"Applied","PROPOSAL_FAILED":"Failed","PROPOSAL_PENDING":"Pendiente","SERVICE_COMPONENT_MONITORING":"Servicio de Monitorización de Componentes","SCHEDULE_ATTEMPTS":"Scheduling Attempts","SCHEDULING_RATE":"Scheduling Rate","REQUEST":"Request","REQUEST_PER_SECOND":"Requests per Second","SCHEDULER":"Scheduler","TOTAL_AVERAGE":"Total","SUCCESS":"Success","ERROR":"Error","FAILURE":"Failure","REQUEST_LATENCY_TCAP":"Latencia de las peticiones","REQUEST_RATE":"Tasa de peticiones","SCHEDULE_ATTEMPTS_TCAP":"Scheduling Attempts","SCHEDULING_RATE_TCAP":"Scheduling Rate","API_SERVER":"API Server","SELECT_TIME_RANGE":"Seleccionar rango de tiempo","LAST_TIME":"Last {value}","LAST_TIME_M":"{num, plural, =1 {last 1 minute} other{last # minutes}}","LAST_TIME_H":"{num, plural, =1 {last 1 hour} other{last # hours}}","LAST_TIME_D":"{num, plural, =1 {last 1 day} other{last # days}}","TIMERANGE_SELECTOR_MSG":"The end time must be later than the start time.","TIMERANGE_SELECTOR_ERROR_MSG":"Please confirm whether the selected time range is appropriate!","PHYSICAL_RESOURCES_MONITORING":"Monitorización de recursos físicos","INODE_USAGE":"Inode Usage","DISK_USAGE":"Disk Usage","DISK_USAGE_DETAILS":"Disk Usage Details","AVERAGE_CPU_LOAD":"Average CPU Load","DISK_THROUGHPUT":"Disk Throughput","POD_STATUS":"Pod Status","COMPLETED":"Completed","WARNING":"Warning","READ":"Lectura","WRITE":"Escribir","RUNNING":"En ejecución","TIME_M":"{num, plural, =1 {1 minute} other{# minutes}}","TIME_H":"{num, plural, =1 {1 hour} other{# hours}}","TIME_D":"{num, plural, =1 {1 day} other{# days}}","EXTERNAL_ETCD":"etcd externo","DB_FSYNC":"DB Fsync","GRPC_STREAM_MESSAGES":"gRPC Stream Message","CLIENT_TRAFFIC":"Tráfico de clientes","RECEIVED":"Received","SENT":"Enviado","WAL_FSYNC":"WAL Fsync","ETCD_LEADER_TITLE":"Leader exists","ETCD_CHANGES_TITLE":"Leader changes in 1 h","NODE_IP_ADDRESS_VALUE":"Node IP Address: {value}","API_SERVER_MONITORING":"Monitorización de API Server","REQUEST_LATENCY":"Request Latency","REQUEST_LATENCY_MS":"Request Latency (ms)","REST_CREATE":"CREATE","REST_DELETE":"DELETE","REST_DELETECOLLECTION":"DELETECOLLECTION","REST_GET":"GET","REST_POST":"POST","REST_PATCH":"PATCH","REST_PUT":"PUT","REST_UPDATE":"UPDATE","REST_LIST":"LIST","SCHEDULER_MONITORING":"Programación de monitorización","SCHEDULING_LATENCY":"Programación de latencia","RESOURCE_USAGE_RANKING":"Resource Usage Ranking","SORT_BY_NODE_CPU_UTILISATION":"Sort by CPU usage (%)","SORT_BY_NODE_MEMORY_UTILISATION":"Sort by memory usage (%)","SORT_BY_NODE_DISK_SIZE_UTILISATION":"Sort by disk usage (%)","SORT_BY_NODE_POD_UTILISATION":"Ordenar mediante el uso de pod","SORT_BY_NODE_DISK_INODE_UTILISATION":"Ordenar por inodo Utilización","SORT_BY_NODE_LOAD1":"Sort by 1-minute CPU load average","SORT_BY_NAMESPACE_MEMORY_USAGE_WO_CACHE":"Ordenar por uso de memoria","POD_USAGE":"Pod Usage","EXPORT":"Export","CUSTOM_MONITORING":"Custom Monitoring","CUSTOM_MONITORING_DASHBOARD":"Panel de control personalizado","CUSTOM_MONITORING_DASHBOARD_PL":"Custom Monitoring Dashboards","CUSTOM_MONITORING_DASHBOARD_EMPTY_DESC":"Please create a custom monitoring dashboard.","CUSTOM_MONITORING_DASHBOARD_DESC":"Custom monitoring provides application monitoring templates. You can customize monitoring dashboards based on your needs.","TEMPLATE":"Template","CREATE_CUSTOM_MONITORING_DASHBOARD":"Crear un panel de monitoreo personalizado","MONITORING_TEMPLATE":"Monitoring Template","CUSTOM_MONITORING_TEMPLATE_DESC":"Select a default template, upload a template, or customize a template to generate a custom monitoring dashboard.","UPLOAD_GRAFANA_DASHBOARD":"Upload Grafana Dashboard","SUPPORT_JSON_FILE":"Only files in JSON format are supported.","UPLOAD_GRAFANA_URL":"Upload a Grafana dashboard from URL.","UPLOAD_FROM_LOCAL_TITLE":"Select or Drag a File","FILE_UPLOAD_ERROR":"Only one file can be uploaded.","UPLOAD_FILE_TIP":"Please upload a file.","ENTER_GRAFANA_URL":"Please enter a Grafana dashboard URL.","UPLOAD_FROM_LOCAL_STORAGE":"Upload from Local Storage","UPLOAD_FROM_URL":"Upload from URL","DASHBOARD_TITILE":"Dashboard title","APPLICABLE_SCENE":"Applicable Scenario","BASE_LINE_CHART":"Base Line Chart","STACK_LINE_CHART":"Stacked Area Chart","BASE_LINE_CHART_DESC":"A line chart is mainly used to visualize a trend or change in data over time. It is very useful for displaying a series of two-dimensional continuous data, such as website traffic or product prices.","STACK_LINE_CHART_DESC":"A stacked area chart is a special kind of area charts that can be used to compare multiple variables in an interval. It is very useful when multiple data series are available as you can analyze the relation of each group to the whole chart and display their respective proportion.","LINE_CHART_DESC":"A line chart is mainly used to visualize a trend or change in data over time.","BASE_BAR_CHART":"Base Bar Chart","STACK_BAR_CHART":"Stacked Bar Chart","BAR_CHART_DESC":"A bar chart is the most common type of charts. It presents different categorical data with horizontal or vertical bars with heights or lengths proportional to the values that they represent.","BASE_BAR_CHART_DESC":"One axis of the base bar chart features the categories being compared, while the other axis represents the value of each.","STACK_BAR_CHART_DESC":"A stacked bar chart is an extension of bar charts. A standard bar chart compares individual data points with each other while in a stacked bar chart, parts of the data are adjacent or stacked. It can be used to present the total amount of a category as well as its sub-amounts (proportion). Therefore, it is very helpful for examining part-to-whole relations.","CUSTOM_DISPLAY_MODAL_DESC":"Customize the table display style according to your needs","THRESHOLD_FILL_DESC":"You can set a threshold and the style can be changed automatically after the threshold is exceeded.","ADD_MONITOR_ITEM":"Agregar elemento de monitorización","ADD_MONITOR_ROW":"Agregar grupo de monitorización","CHART_TYPES":"Tipos de gráfico","GRAPH_TYPES":"Graph Types","LINE_CHART":"Gráfico de línea","BAR_CHART":"Gráfico de barras","SELECT_CHART_TYPE":"Selecciona un tipo de gráfico","SELECT_CHART_TYPE_MODAL_DESC":"Selecciona un tipo de gráfico personalizado","SINGLE_STATE_CHART":"Texto en tiempo real","DISPLAY_POSITION":"Posición de visualización","EMPTY_CHART_PLACEHOLDER":"The chart will display here.","DISPLAY_FORMAT":"Formato de visualización","FIELD_NAME":"Nombre del campo","COLUMN_NAME":"Nombre de la columna","GRAPH_NAME":"Nombre del gráfico","DECIMALS":"Posiciones decimales","TABLE":"Tabla","TABLE_SETTINGS":"Configuraciones de tabla","VALUE_FOMATER":"Formato de valor","PER_PAGE_LINES":"Líneas por página","CUSTOM_DISPLAY_STYLE":"Estilo de pantalla","DATA_TYPE":"Tipo de datos","Y_AXIS":"Eje Y","GRAPH_COLORS":"Colores del gráfico","SINGLE_GRAPH_TYPE_NAME":"Gráfico Básico","SINGLE_GRAPH_TYPE":"El tipo de gráfico más común.","STACKED_GRAPH_TYPE":"Gráfico apilado","STACKED_GRAPH_TYPE_DESC":"Útil para mostrar relaciones de parte a todo","MONITOR_TYPE_NO_SUPPORT":"El tipo no es compatible actualmente","MONITOR_METRIC":"Monitoring Metric","METRIC_NAME":"Nombre de la métrica","DEBUGB_DATA":"Datos de depuración","TIME_FORMAT":"Formato de tiempo","HIGHT_RULES":"Reglas destacadas","EDIT_TEMPLATE":"Editar plantilla","SAVE_TEMPLATE":"Guardar plantilla","THRESHOLD_FILL":"Configuraciones de umbral","UNIT":"Unit","COOL_COLORS":"Cool Colors","WARM_COLORS":"Warm Colors","DEFAULT_COLORS":"Default Colors","LAST":"Last","SECOND_TIME":"{count, plural, =1 {1 second} other{# seconds}}","MINUTE_TIME":"{count, plural, =1 {1 minute} other{# minutes}}","HOUR_TIME":"{count, plural, =1 {1 hour} other{# hours}}","DAY_TIME":"{count, plural, =1 {1 day} other{# days}}","WEEK_TIME":"{count, plural, =1 {1 week} other{# weeks}}","NO_REFRESHING":"No refreshing","INTERVAL":"Interval","CUSTOM_MONITORING_DASHBOARD_LOW":"custom monitoring dashbord","EGRESS_RULES":"Egress Rules","DESTINATION":"Destination","LABEL":"Label","INGRESS_RULES":"Ingress Rules","NETWORK_POLICY":"Política de red","NETWORK_POLICY_PL":"Network Policies","NETWORK_POLICY_DESC":"The network policy configuration allows network isolation within the same cluster, which means firewalls can be set up between certain instances (pods).","NETWORK_POLICY_Q":"¿Cómo usar mejor una política de red?","NETWORK_POLICY_A":"Hemos compilado varios escenarios de aplicación comunes basados en los escenarios reales, y puedes consultar la documentación para obtener más información.","NETWORK_POLICY_Q1":"Requisitos del complemento CNI para implementar una política de red","NETWORK_POLICY_A1":"Asegúrate de que el plugin de red (CNI) utilizado por el clúster sea compatible con NetworkPolicy. Existen varios plugins de red (CNI) que soportan NetworkPolicy, incluyendo Calico, Cilium, Kube-router, Romana y Weave Net.","NETWORK_POLICY_EMPTY_DESC":"Please create a network policy.","CREATE_NETWORK_POLICY_TCAP":"Crear política de red","CREATE_BTN":"Crear","CREATE_NETWORK_POLICY_DESC":"La política de red está configurada para permitir el aislamiento de la red dentro del mismo clúster, es decir, la capacidad de construir un cortafuegos entre ciertas instancias (pods).","NETWORK_POLICY_LOW":"network policy","NETWORK":"Network","START_IP_ADDRESS":"Start IP Address","END_IP_ADDRESS":"End IP Address","MASK":"Mask","WORKSPACES":"Workspaces","MANAGER":"Manager","IPPOOL_WORKSPACE_EMPTY_TIP":"No workspace is using this pod IP pool.","NAMESPACE_PL":"Project","ADD_IPPOOLL_NAMESPACE":"Add project","ADD_IPPOOLL_NAMESPACE_DESC":"Assign IP Pool to new project","REMOVEALL_IPPOOLL_NAMESPACE":"Remove all","REMOVEALL_IPPOOLL_NAMESPACE_PROJECT":"Remove all items","REMOVEALL_IPPOOLL_NAMESPACE_PROJECT_DESC":"After the project is removed, it will no longer be subject to IP Pool resource allocation restrictions","POD_IP_POOL_PL":"Pod IP Pools","POD_IP_POOL_DESC":"Pod IP pools is used to manage the Pod network address space in the cluster. You can create Pod IP pools based on your needs.","IPPOOL_USAGE_Q":"How do I manage a Pod network using a Pod IP pool?","IPPOOL_USAGE_A":"A Pod IP pool is used to manage the Pod network address space, and the address spaces between different Pod IP pools cannot overlap. When creating a workload, you can select a specific Pod IP pool to assign IP addresses from this Pod IP pool to the created Pods.","POD_IP_POOL_EMPTY_DESC":"Please create a Pod IP pool.","TOTAL_VALUE":"Total: {value}","ALL":"Todos","NOT_ASSIGNED":"No asignado","CREATE_POD_IP_POOL":"Create Pod IP Pool","NETWORK_SEGMENT":"Network Segment","USED_IP_ADDRESSES":"Used IP Addresses","QUANTITY":"Quantity","IP_POOL_CREATE_DESC":"Pod IP Pools to be created","IP_ADDRESS_EMPTY_DESC":"Please enter an IP address.","MASK_TIP":"Please enter a mask.","ENTER_NETWORK_SEGMENT_TIP":"Please enter a network segment.","IP_POOL_NUM_TIP":"Please enter the number of Pod IP pools to be created.","IP_POOL_CREATE_COUNT_DESC":"Up to 10 Pod IP pools can be created at the same time.","INVALID_IP_DESC":"Invalid IP address format.","IPPOOL_ASSIGN_WORKSPACE_DESC":"Assign the Pod IP pool to a workspace.","IPPOOL_ASSIGN_WORKSPACE_ALLOCATED_WARNING":"The Pod IP pool is in use and cannot be assigned to another specific workspace.","IPPOOL_ASSIGN_WORKSPACE_CHANGE_WARNING":"The Pod IP pool is in use with a specific workspace assigned. The workspace cannot be changed.","ASSIGN_WORKSPACE":"Asignar espacio de trabajo","SELECT_WORKSPACE_DESC":"Elige un espacio de trabajo","POD_IP_POOL_LOW":"Pod IP pool","ADD_EDGE_IPPOOL":"Add a container group IP address pool ","ADD_EDGE_IPPOOL_DES":"Adds a container group IP pool to a resource. ","ADD_IPPOOL_EMPTY_DES_ADMIN":"If no container group IP pool meets the requirements, you can ","ADD_IPPOOL_EMPTY_DES":"If no container group IP address pool meets the requirements, contact the administrator to create a container group IP address pool ","SELECTED_IPPOOLS":"{number} IP pools have been selected ","CLUSTER_IPPOOL_EMPTY_DES":" No available container group IP address pool is found in the current cluster. ","ATTRIBUTES":"Attributes","ARCHITECTURE":"Arquitectura","OS_VERSION":"OS Version","OS_TYPE":"Sistema operativo","LINUX":"Linux","KERNEL_VERSION":"Versión del Kernel","CONTAINER_RUNTIME":"ContainerRuntimeVersion","KUBELET_VERSION":"Versión Kubelet","KUBE_PROXY_VERSION":"Versión Kube-Proxy","IP_ADDRESS":"Dirección IP","SCHEDULABLE":"Schedulable","YES":"Sí","EDIT_LABELS":"Editar etiquetas","LABEL_PL":"Labels","TAINTS":"Taints","EDIT_TAINTS":"Gestión de Taints","TAINTS_DESC":"Si se agrega un taint con \"clave=valor\" al nodo, significa que no se programará ningún pod en este nodo (política PodToleratesNodeTaints) o al menos se evita la programación tanto como sea posible (política TaintTolerationPriority), a menos que el pod tenga una coincidencia tolerancia con \"clave=valor\".","COMMON_TAINTS":"Taints Comunes","NOSCHEDULE":"NoProgramable","PREFERNOSCHEDULE":"PreferNoSchedule","NOEXECUTE":"NoEjecutar","TAINT_SELECT_TIPS":"Join Common Taints","TAINTS_TIPS":"Si hay al menos un taint no ignorado con efecto NoProgramable, entonces el sistema no programará pods en ese nodo.
    Si no hay un taint no ignorado con efecto NoProgramable pero hay al menos un taint no ignorada con efecto PreferNoSchedule, entonces el sistema intentará no programar pods en el nodo.
    si hay al menos un taint no ignorada con efecto NoEjecutar, los pods serán expulsados del nodo (si ya se está ejecutando en el nodo) y no se programarán en el nodo (si aún no se está ejecutando en el nodo).","TAINT_DELETE_TIP":"Delete taint","RESOURCE_USAGE":"Resource Usage","MAXIMUM_PODS":"Maximum Pods","MAXIMUM_PODS_SCAP":"Maximum Pods","DISK_USAGE_SCAP":"Disk usage","MEMORY_REQUEST_SCAP":"Memory request","MEMORY_LIMIT_SCAP":"Memory limit","CPU_REQUEST_SCAP":"CPU request","CPU_LIMIT_SCAP":"CPU limit","ALLOCATED_RESOURCES":"Allocated Resources","RUNNING_STATUS":"Estado de ejecución","HEALTH_STATUS":"Health Status","NODE_NETWORKUNAVAILABLE":"Red no disponible","NODE_NETWORKUNAVAILABLE_DESC":"Whether the network status of the node is normal.","NODE_MEMORYPRESSURE":"Carga de memoria","NODE_MEMORYPRESSURE_DESC":"Whether the remaining memory of the node is less than the threshold.","NODE_DISKPRESSURE":"Carga de disco","NODE_DISKPRESSURE_DESC":"Whether the ramaining disk space or inodes of the node is less than the threshold.","NODE_PIDPRESSURE":"Carga PID","NODE_PIDPRESSURE_DESC":"Whether the number of processes allowed to be created on the node is less the threshold.","NODE_READY":"Readiness","NODE_READY_DESC":"Whether the node is ready to accept pods.","LAST_HEARTBEAT_VALUE":"Last Heartbeat: {value}","NO_TAINTS_TIPS":"Aún no se han establecido taints.","POLICY":"Policy","READY_VALUE":"Ready: {readyCount}/{total}","STATUS_VALUE":"Status: {value}","USAGE":"Usage","OUT":"Out","IN":"En","CLUSTER_NODE_PL":"Nodo de clúster","CLUSTER_NODE":"Cluster Node","CLUSTER_NODE_DESC":"Este módulo gestiona los nodos del clúster y muestra el estado de ejecución de ellos. Puedes editar o eliminar nodos aquí.","NODE_TYPES_Q":"¿Cuáles son los tipos de nodos de clúster?","NODE_TYPES_A":"Nodes are classified into control plane nodes and worker nodes.","WHAT_IS_NODE_TAINTS_Q":"¿Qué son los taints de nodos?","WHAT_IS_NODE_TAINTS_A":"Los taints permiten que un nodo repele un conjunto de pods. Las contaminaciones y las tolerancias funcionan juntas para garantizar que los pods no se programen en nodos inapropiados.","LEARN_MORE":"Aprende más","NODE_SI":"Nodo","NODE_PL":"Nodos","MASTER_NODE_SI":"Control plane node","MASTER_NODE_PL":"Control plane nodes","WORKER_NODE_SI":"Nodo worker","WORKER_NODE_PL":"Nodo worker","KUBE_OPERATE":"Operar","KUBE_ASCENDING_ORDER":"ASC...","KUBE_DESCENDING_ORDER":"DESC...","KUBE_FILTER":"Filtro","SEARCH":"Introduce las condiciones para filtrar","ADD_NODE":"Añadir nodo","NODE_STATUS_UNSCHEDULABLE":"No programable","NODE_STATUS_RUNNING":"Corriendo","NODE_STATUS_WARNING":"Advertencia","NODE_STATUS_PENDING":"Creating","NODE_STATUS_FAILED":"Failed","CLUSTER_NODE_EMPTY_DESC":"Este módulo gestiona los nodos del clúster y muestra el estado de ejecución de ellos. Puedes editar o eliminar nodos aquí.","NODE_NAME_EMPTY_DESC":"Please set a name for the node.","CPU_USAGE":"Uso de CPU","MEMORY_USAGE":"Uso de memoria","CONTROL_PLANE":"Control plane","WORKER":"Worker","ALLOCATED_CPU":"CPU reservada","ALLOCATED_MEMORY":"Memoria reservada","CPU_LIMIT_SI":"Límite de recursos: {core} core ({percent})","CPU_LIMIT_PL":"Límite de recursos: {core} cores ({percent})","CPU_REQUEST_SI":"{core} core ({percent})","CPU_REQUEST_PL":"{core} cores ({percent})","CORE_PL":"cores","CPU_CORE_PERCENT_SI":"{core} core ({percent})","CPU_CORE_PERCENT_PL":"{core} cores ({percent})","MEMORY_GIB_PERCENT":"{gib} GiB ({percent})","MEMORY_LIMIT_VALUE":"Límite de recursos: {gib} GiB ({percent})","MEMORY_REQUEST_VALUE":"{gib} GiB ({percent})","RESOURCE_REQUEST":"Solicitud de recursos","CORDON":"Cordon","UNCORDON":"Uncordon","OPEN_TERMINAL":"Open Terminal","CUSTOM_COLUMNS":"Columnas personalizadas","NO_MATCHING_RESULT_FOUND":"Aún no se han encontrado recursos que coincidan con el filtro","STATUS":"Estado","TOTAL_ITEMS":"Total de {num} artículos","YOU_CAN_TRY_TO":"You can try","REFRESH_DATA":"refreshing data","CLEAR_SEARCH_CONDITIONS":"clearing search conditions","DUPLICATE_KEYS":"Calves duplicadas","EMPTY_KEY":"Claves vacías","LATEST_UPDATE_VALUE":"Latest update: {value}","EDGE_NODE_PL":"Nó de Borda","EDGE_NODE_DESC":"Este módulo gestiona los nodos del borda y muestra el estado de ejecución de ellos. Puedes editar o eliminar nodos aquí.","EDGE_NODE_EMPTY_DESC":"Este módulo gestiona los nodos del borda y muestra el estado de ejecución de ellos. Puedes editar o eliminar nodos aquí.","AGENT":"Agent","EDGE":"Edge node","ADD":"Añadir","ADD_EDGE_NODE":"Add Edge Node","EDGENODE_CONFIG_COMMAND":"Agregar comando","ADD_EDGE_COMMAND":"Run the above command on your edge node to configure it.","IN_USE_Node_IP":"Node IP {ip} in use","IN_USE_Node_NAME":"Node name {name} in use","EDGENODE_NAME_EMPTY_DESC":"Please set a name for the node.","EDGENODE_CONFIG_COMMAND_TIP":"Before running the command, you must install a container runtime such as Docker or containerd on your edge node.","ADD_DEFAULT_TAINT":"Adicionar mancha padrão {params}","EDGE_NODE":"Edge Node","INTERNAL_IP_ADDRESS":"Node Internal IP Address","EDGENODE_INTERNAL_IP_DESC":"The internal IP address for the connection between cluster nodes.","EDGENODE_INTERNAL_IP_EMPTY_DESC":"Please set the IP address of the edge node in the KubeSphere cluster.","COPY_SUCCESSFUL":"Copied successfully.","LOGS":"Registros","VIEW_LOG":"Mostrar log","EDGE_LIST_NOT_HOST_TITLE":"The current cluster is unavailable","EDGE_LIST_NOT_HOST_TITLE_DESC":"Los nodos de borde solo se pueden usar en el clúster principal por el momento.","HOST_CLUSTER":"Clúster de host","MEMBER_CLUSTER":"Member cluster","PROVIDER":"Proveedor","KUBERNETES_VERSION":"Versión de Kubernetes","KUBESPHERE_VERSION":"Versión de KubeSphere","VISIBILITY_PARTIAL":"Parcialmente visible","VISIBILITY_PUBLIC":"Público","CLUSTER_BASE_INFO_DESC":"Basic information provides an overview of the cluster. You can view and edit cluster information.","MEMORY":"Memoria","TOTAL":"Total","USED":"En uso","TOOLS":"Tools","KUBECTL_DESC":"Herramienta de línea de comandos para controlar el clúster Kubernetes actual","KUBECONFIG_DESC":"Puedes usar este archivo para configurar el acceso al clúster Kubernetes actual","KUBERNETES_STATUS":"Estado de Kubernetes","API_REQUESTS_PER_SECOND":"API solicitudes por segundo","VALUE_REQUESTS_SECOND":"{value, plural, =1 {1 request} other {# requests}}/s","API_REQUEST_LATENCY":"API latencia de solicitud","SCHEDULING_OPERATIONS":"Horarios de programación","SCHEDULING_OPERATION":"Scheduling operation","SCHEDULING_FAILURES":"Programar pods fallidos","SCHEDULING_FAILURE":"Scheduling failure","VIEW_MORE":"Ver más","NODE_CPU_UTILISATION":"ratio de uso de CPU","NODE_LOAD1":"Average CPU load (1 min)","NODE_MEMORY_UTILISATION":"ratio de uso de memoria","NODE_DISK_SIZE_UTILISATION":"Disk usage","NODE_DISK_INODE_UTILISATION":"Inode usage","NODE_POD_UTILISATION":"ratio de utilización de pod","WAIT_FOR_CLUSTER":"Waiting for the cluster to join...","WAIT_FOR_CLUSTER_DESC":"The cluster is unavailable. Perform the following steps to add the cluster.","CLUSTER_AGENT_TIP_1":"1. Log in to the cluster over SSH and run the vi agent.yaml command to create a configuration file.","CLUSTER_AGENT_TIP_2":"2. Copy the following information to the agent.yaml file.","CLUSTER_AGENT_TIP_3":"3. Run the kubectl create -f agent.yaml command to add the cluster.","CLUSTER_AGENT_TIP_3_DESC":"This operation may take a while. Please wait until the cluster status is updated.","CREATING_CLUSTER":"Creating the cluster...","CREATING_CLUSTER_DESC":"The cluster is being created and is currently unavailable.","CLUSTER_INIT_FAILED":"Cluster initialization failed.","CLUSTER_CREATION_PROGRESS":"Cluster Creation Progress","FETCHING_LOGS":"Fetching logs...","CURRENT_STEP":"Current step: {step}","CLUSTER_CREATION_PROGRESS_TIP":"Depending on the cluster size and infrastructure environment, cluster creation may take 30 to 60 minutes.","GATEWAY":"Información de puerta de enlace","GATEWAY_NOT_ENABLED":"Puerta de enlace no establecida","ENABLE_GATEWAY_TIP":"To use the gateway, please configure the gateway in the cluster or the project.","QUOTA_PL":"Quotas","PROJECT_DESC":"Los proyectos se agruparán por sus recursos, que puedes ver y administrar por proyecto.","SYSTEM_PROJECTS":"Proyectos de Sistema","USER_PROJECTS":"Proyectos de usuario","EMPTY_WRAPPER":"No se ha encontrado {resource}","TERMINATING":"Terminating","ACTIVE":"Activo","PROJECT_ADMINISTRATOR":"Gestor de proyecto","PROJECT_ADMINISTRATOR_DESC":"Selecciona un usuario del espacio de trabajo como administrador del proyecto.","PROJECT_ASSIGN_DESC":"Una vez que el proyecto se asigna a un espacio de trabajo ya no se puedes cambiar.","CREATE_PROJECT_DESC":"Un proyecto es un namespace de Kubernetes en KubeSphere, que proporciona un mecanismo para organizar los recursos en un espacio de trabajo.","PROJECT_NAME_DESC":"Solo puede contener letras minúsculas, números y guiones (\"-\"), y debe comenzar con una letra minúscula y terminar con un número o letra minúscula. La longitud máxima de caracteres se establece en 63.","PROJECT_NAME_INVALID_DESC":"Solo puede contener letras minúsculas, números y guiones (\"-\"), y debe comenzar con una letra minúscula y terminar con un número o letra minúscula. La longitud máxima de caracteres se establece en 63.","CANCEL":"Cancelar","CREATE_NAME":"Crear {name}","DESCRIPTION":"Descripción","NAME_VALIDATION_FAILED":"Evite de crear nombre con el kube- del prefijo, puesto que es reservado para los namespaces del sistema de Kubernetes","PROJECT_NAME_EXIST_DESC":"The name already exists. Please enter another name. Project names must be unique on the entire platform.","NAME_EMPTY_DESC":"Introduce el nombre","OK":"Okay","NAME_DESC":"Solo puede contener letras minúsculas, números y guiones (\"-\"), y debe comenzar con una letra minúscula y terminar con un número o letra minúscula. La longitud máxima de carácteres se establece en 63.","DESCRIPTION_DESC":"La descripción se agregará al elemento como un comentario y se mostrará en los detalles de la aplicación. La descripción está limitada a 1000 caracteres.","ALIAS_DESC":"The alias name can contain only letters, numbers, and hyphens (-), and cannot start or end with a hyphen. The maximum length is 63 characters.","EDIT_INFORMATION":"Editar información","DELETE_TITLE_SI":"¿Seguro que deseas eliminar {type}?","DELETE_TITLE_PL":"¿Seguro que deseas eliminar {type}?","DELETE":"Eliminar","PROJECT_LOW":"project","DELETED_SUCCESSFULLY":"Deleted successfully.","STOP_SUCCESS_DESC":"Stopped successfully.","DELETE_RESOURCE_TYPE_DESC_SI":"Introduce el {type} nombre {resource} para asegurarte de comprender los riesgos asociados con la operación.","DELETE_RESOURCE_TYPE_DESC_PL":"Introduce el {type} nombre {resource} para asegurarte de comprender los riesgos asociados con la operación.","DELETE_RESOURCE_TYPE_DESC_GW":"Introduce el {type} nombre {resource} para asegurarte de comprender los riesgos asociados con la operación.","DISABLED_RESOURCE_TYPE_DESC":"Enter the {resource} to confirm that you understand the risks of this operation.","VOLUME_EXPAND_TIP":"The persistent volume claim has been mounted to a workload. Expanding the persistent volume claim will cause the workload to restart and business will be interrupted for a short while.","MOUNTED_PODS":"Mounted Pods","SNAPSHOT_PL":"Snapshots","STORAGE":"Storage","PERSISTENT_VOLUME_CLAIM_DESC":"Persistent volume claims define storage requirements. The system creates persistent volumes according to persistent volume claims.","PERSISTENT_VOLUME_CLAIM":"Persistent Volume Claim","PERSISTENT_VOLUME_CLAIM_PL":"Persistent Volume Claims","WHAT_IS_STORAGE_CLASS_Q":"What is a storage class?","WHAT_IS_STORAGE_CLASS_A":"A storage class is a storage type configured by the cluster administrator. Different storage classes provide cluster users with different types of volumes.","WHAT_IS_LOCAL_VOLUME_Q":"What is a local volume?","WHAT_IS_LOCAL_VOLUME_A":"A local volume is a volume created in the local file system of the cluster.","VOLUME_STATUS_BOUND":"Bound","VOLUME_STATUS_LOST":"Lost","VOLUME_STATUS_PENDING":"Pendiente","VOLUME_STATUS_TERMINATING":"Terminating","VOLUME_STATUS_UPDATING":"Actualización","VOLUME_CONDITION_FILESYSTEMRESIZEPENDING":"Disk Expanding","PERSISTENT_VOLUME_CLAIM_EMPTY_DESC":"Please create a persistent volume claim.","PERSISTENT_VOLUME_EMPTY_DESC":"Please create a persistent volume.","MOUNT_STATUS":"Mount Status","MOUNTED":"Mounted","NOT_MOUNTED":"No montado","ACCESS_MODE_TCAP":"Modo de acceso admitido","RWO_DESC":"RWO: Single-node read and write","ROX_DESC":"ROX: Multi-node readonly","RWX_DESC":"RWX: Multi-node read and write","ACCESS_MODE_RWO":"RWO: Single-node read and write","ACCESS_MODE_ROX":"ROX: Multi-node readonly","ACCESS_MODE_RWX":"RWX: Multi-node read and write","CREATE":"Create","CREATE_PERSISTENT_VOLUME_CLAIM":"Create Persistent Volume Claim","CREATION_METHOD":"Creation Method","CREATE_VOLUME_BY_STORAGE_CLASS":"From Storage Class","CREATE_VOLUME_BY_SNAPSHOT":"From Volume Snapshot","SELECT_SNAPSHOT_TO_CREATE_VOLUME":"Select a snapshot to create a volume.","SELECT_STORAGE_CLASS_CREATE_VOLUME":"Select a storage class to create a volume.","VOLUME_CAPACITY":"Capacidad de volumen","PARAM_REQUIRED":"This parameter is required.","VOLUME_SIZE_TIP":"The volume capacity must be greater than 0.","VOLUME_STORAGE_CLASS_DESC":"Select a storage class to create a volume of a specific type.","PERSISTENT_VOLUME_CLAIM_LOW":"persistent volume claim","VOLUME_HANDLE":"Volume Handle","VOLUME_MODE":"Volume Mode","VOLUME_MODE_FILESYSTEM":"File system","VOLUME_MODE_BLOCK":"Block device","STORAGE_CLASS_VALUE":"Storage class: {value}","PERSISTENT_VOLUME":"Persistent Volume","PERSISTENT_VOLUME_PL":"Persistent Volumes","PERSISTENT_VOLUME_LOW":"persistent volume","PV_STATUS_AVAILABLE":"En desuso","PV_STATUS_BOUND":"Bound","PV_STATUS_RELEASED":"Released","PV_STATUS_FAILED":"Failed","RECYCLING_STRATEGY":"Recycling Strategy","VOLUME_EMPTY_DESC":"Please bind a persistent volume claim to a workload.","TRUE":"True","FALSE":"False","SET_DEFAULT_STORAGE_CLASS_TITLE":"Set as Default Storage Class","SET_AS_DEFAULT_STORAGE_CLASS":"Set as Default Storage Class","STORAGE_CLASS_SET_DEFAULT_DESC":"Una vez establecida la clase de almacenamiento predeterminada, el sistema creará volúmenes de esta clase de forma predeterminada si no se agrega ningún requisito especial. Solo se permite una clase de almacenamiento predeterminada en un clúster de KubeSphere.","SET_AUTHORIZATION_RULES":"Set Authorization Rules","AUTHORIZATION_RULES":"Authorization Rules","AUTHORIZATION_RULES_DESC":"Set authorization rules so that the storage class can be accessed only in specific projects and workspaces.","AUTHORIZATION_NOT_SUPPORT":"The cluster currently does not support this feature. Please upgrade KubeSphere to v3.3.0 or later, or manually install storageclass-accessor.","OPERATOR_IN":"En","OPERATOR_NOT_IN":"Not in","SET_VOLUME_OPERATIONS":"Set Volume Operations","VOLUME_CLONING":"Volume Cloning","VOLUME_CLONING_DESC":"Allow users to clone volumes.","VOLUME_SNAPSHOT_CREATION":"Volume Snapshot Creation","VOLUME_SNAPSHOT_CREATION_DESC":"Allow users to create volume snapshots.","VOLUME_EXPANSION_DESC":"Allow users to expand volumes. Volumes can only be expanded and cannot be shrunk.","SET_VOLUME_OPERATIONS_TIP":"The following settings only control whether users are allowed to perform the operations on the web console. Whether persistent volumes created based on the storage class actually support the operations depends on the backend storage system.","SET_AUTO_EXPANSION":"Set Auto Expansion","AUTO_EXPANSION":"Auto Expansion","AUTO_EXPANSION_DESC":"Set the system to automatically expand volumes when the remaining volume space is lower than a threshold.","AUTO_EXPANSION_SETTINGS":"Auto Expansion Settings","MAXIMUM_SIZE":"Maximum Size","INCREMENT":"Increment","INCREMENT_DESC":"Set the volume size increment according to the CSI pluggin of the storage class.","RESTART_WORKLOAD_AUTOMATICALLY":"Restart workload automatically","RESTART_WORKLOAD_AUTOMATICALLY_DESC":"The system automatically checks volume status to determine whether the workload needs to be restarted.","RESTART_WORKLOAD_AUTOMATICALLY_TIP":"If the volume is not expanded successfully when the timeout period expires, the system will add the \"restart.kubesphere.io/skip\" annotation to the workload so that the workload is not restarted any more. To enable the automatic restart function for the workload again, you need to manually delete the annotation on the workload.","MAXIMUM_SIZE_SCAP":"Maximum size","VALUE_TIMEOUT":"{value}s (timeout)","PVC_COUNT":"PVCs","STORAGE_CLASS_PL":"Storage Classes","STORAGE_CLASS_DESC":"Storage classes support dynamic volume provisioning, allowing administrators to create new storage volumes on demand.","STORAGE_CLASS_EMPTY_DESC":"Please create a storage class.","DEFAULT_STORAGE_CLASS":"Default Storage Class","ALLOW_VOLUME_SNAPSHOT":"Permitir el almacenamiento de instantáneas de volumen","ALLOW_VOLUME_CLONE":"Permitir la clonación del volumen de almacenamiento","ALLOW_VOLUME_EXPANSION":"Permitir la expansión del volumen de almacenamiento","CHOOSE_STORAGE_SYSTEM_TIP":"Elija el sistema de almacenamiento que necesita","PROVISIONER_DEPENDENCE_DESC":"You need to deploy a plugin in your storage system before it provides services.","QINGCLOUD_CSI_DESC":"Use QingCloud CSI as the underlying storage plugin.","CUSTOM":"Custom","VOLUME_EXPANSION":"Volume Expansion","RECLAIM_POLICY":"Reclaim Policy","ACCESS_MODE":"Modo de acceso admitido","ACCESS_MODES_DESC":"Select one or more access modes supported by the storage class.","STORAGE_SYSTEM":"Sistema de almacenamiento","VOLUME_BINDING_MODE":"Volume Binding Mode","IMMEDIATE_BINDING":"Immediate binding","BINDING_WAIT":"Delayed binding","MAXSIZE":"Maximum Size","MINSIZE":"Minimum Size","STEPSIZE":"Step Size","FSTYPE":"File System Type","QINGCLOUD_CSI_TYPE_DESC":"En la plataforma de nube pública QingCloud, 0 representa un volumen de alto rendimiento. 2 representa volumen de alta capacidad. 3 representa un volumen súper alto rendimiento. 5 representa Enterprise Server SAN. 100 representa volumen estándar.","CREATE_VOLUME_MAX_SIZE":"Maximum size of the volume.","CREATE_VOLUME_STEP_SIZE":"Step size of the volume.","CREATE_VOLUME_MIN_SIZE":"Minimum size of the volume.","VOLUME_FS_TYPE":"Supports ext3, ext4, and xfs. The default type is ext4.","QINGCLOUD_VOLUME_TAGS_DESC":"Add tags to the storage volume. Use commas to separate multiple tags.","GID_RANGE_TIP":"The value cannot be less than 2000 or greater than 2147483647.","GLUSTERFS_RESTURL_DESC":"Heketi REST URL that provisions volumes.","GLUSTERFS_ID_DESC":"Gluster cluster ID.","GLUSTERFS_RESTAUTHENABLED_DESC":"Habilite la autenticación en el servidor REST.","GLUSTERFS_RESTUSER_DESC":"Username of Gluster REST service or Heketi service.","GLUSTERFS_SECRET_NAMESPACE_DESC":"Namespace of the Heketi user secret.","GLUSTERFS_SECRET_NAME_DESC":"Name of the Heketi user secret.","GLUSTERFS_GID_MIN_DESC":"Minimum GID of the volume.","GLUSTERFS_GID_MAX_DESC":"Maximum GID of the volume.","GLUSTERFS_VOLUME_TYPE_DESC":"Type of volume. The value can be none, replicate:, or disperse::. If the volume type is not set, the default volume type is replicate:3.","RESTURL":"REST URL","CLUSTER_ID":"Cluster ID","REST_AUTH_ENABLED":"REST Authentication","REST_USER":"REST User","VOLUME_TYPE":"Volume Type","SECRET_NAME":"Secret Name","REST_AUTH_TRUE":"True","SECRET_NAMESPACE":"Secret Namespace","GID_MIN":"Minimum GID","GID_MAX":"Maximum GID","CEPHRBD_MONITORS_DESC":"IP address of Ceph monitors.","CEPHRBD_ADMIN_ID_DESC":"ID de cliente de Ceph que es capaz de crear imágenes en el pool.","CEPHRBD_ADMIN_SECRET_NAME_DESC":"Secret name of adminid.","CEPHRBD_ADMIN_SECRET_NAMESPACE_DESC":"El namespace para adminSecretName","CEPHRBD_POOL_DESC":"Name of the Ceph RBD pool.","CEPHRBD_USERID_DESC":"ID de cliente Ceph que se utiliza para asignar la imagen RBD. El valor predeterminado es el mismo que adminId.","CEPHRBD_USER_SECRET_NAME_DESC":"El nombre de Ceph Secret para userId para mapear la imagen RBD","CEPHRBD_USER_SECRET_NAMESPACE_DESC":"El namespace para userSecretName","CEPHRBD_FS_TYPE_DESC":"File system type of the storage volume.","CEPHRBD_IMAGE_FORMAT_DESC":"Option of the Ceph volume. The value can be \"1\" or \"2\". imageFeatures needs to be filled when you set imageFormat to \"2\".","CEPHRBD_IMAGE_FEATURES_DESC":"Additional function of the Ceph cluster. The value should only be set when you set imageFormat to \"2\".","CEPH_MONITOR_IP":"IP address and port number","STORAGE_CLASS_SETTINGS":"Configuraciones de clase de almacenamiento","PARAMETERS":"Parameters","STORAGE_CLASS":"Clase de almacenamiento","STORAGE_CLASS_LOW":"storage class","STORAGE_CLASS_DELETE_DESC":"Deleting the volume snapshot class may affect the normal use of volume snapshots. Are you sure you want to delete the volume snapshot class?","STORAGE_CLASS_DELETE_DESC_PL":"Deleting the volume snapshot class may affect the normal use of volume snapshots. Enter the {type} names {resource} to confirm that you understand the risks of this operation.","VOLUME_SNAPSHOT_CLASS_PL":"Volume Snapshot Classes","VOLUME_SNAPSHOT_CLASS":"Volume Snapshot Class","VOLUME_SNAPSHOT_CLASS_DESC":"Volume snapshot classes provide a way for administrators to define storage types used for volume snapshots.","VOLUME_SNAPSHOT_CLASS_EMPTY_DESC":"Please create a volume snapshot class.","SNAPSHOT_CLASS_SETTINGS":"Volume Snapshot Class Settings","SNAPSHOT_CLASS_PROVISIONER_DESC":"Enter the name of a CSI plugin.","SNAPSHOT_CLASS_PROVISIONER_EMPTY_DESC":"Please enter the name of a CSI plugin.","VOLUME_SNAPSHOT_CLASS_LOW":"volume snapshot class","DELETE_VOLUME_SNAPSHOT_CLASS":"Delete Volume Snapshot Class","SNAPSHOT_HANDLE":"Snapshot Handle","VOLUME_SNAPSHOT_CONTENT":"Volume Snapshot Content","VOLUME_SNAPSHOT_CONTENT_PL":"Volume Snapshot Contents","VOLUME_SNAPSHOT_CONTENT_LOW":"volume snapshot content","VOLUME_SNAPSHOT_CONTENT_EMPTY_DESC":"Please create a volume snapshot.","READY":"Ready","UNREADY":"Unready","UNSCHEDULABLE":"Unschedulable","DELETION_POLICY":"Deletion Policy","CREATE_VOLUME":"Create Volume","SNAPSHOT_CLASS_NOT_EXIST_TITLE":"Volume Snapshot Class Not Found","SNAPSHOT_CLASS_NOT_EXIST":"The volume snapshot class of the volume snapshot does not exist.","STORAGE_CLASS_SCAP":"Storage class","DATA_SOURCE":"Fuente de datos","VOLUME_SNAPSHOT":"Volume Snapshot","VOLUME_SNAPSHOT_PL":"Volume Snapshots","VOLUME_SNAPSHOT_DESC":"Un snapshot de volumen se refiere a una snapshot de un volumen en un punto de tiempo particular. Se puede utilizar para crear nuevos volúmenes (preestablecer los datos del snapshot) o restaurar un volumen existente a su estado anterior (que se muestra en los snapshots).","WHAT_IS_VOLUME_SNAPSHOT_CLASS_Q":"What is a volume snapshot class?","WHAT_IS_VOLUME_SNAPSHOT_CLASS_A":"A volume snapshot class defines the storage types used to create a volume snapshot.","WHAT_IS_VOLUME_SNAPSHOT_CONTENT_Q":"What is a volume snapshot content?","WHAT_IS_VOLUME_SNAPSHOT_CONTENT_A":"A volume snapshot content is a resource that represents the content of a volume snapshot.","SELECT_A_VOLUME_DESC":"Select a persistent volume claim to create a snapshot.","SELECT_VOLUME_SNAPSHOT_CLASS_DESC":"Select a snapshot class to create a snapshot of a specific type.","VOLUME_SNAPSHOT_EMPTY_DESC":"Please create a volume snapshot.","VOLUME_SNAPSHOT_STATUS_CREATING":"Creando","VOLUME_SNAPSHOT_STATUS_FAILED":"Creado sin éxito","VOLUME_SNAPSHOT_STATUS_READY":"Creado con éxito","VOLUME_SNAPSHOT_STATUS_DELETING":"Eliminando","CREATE_STATUS_SUCCESS":"Creado con éxito","CREATE_STATUS_UPDATING":"Creando","CREATE_STATUS_FAILED":"Creado sin éxito","CREATE_STATUS_DELETING":"Eliminando","VOLUME_SNAPSHOT_LOW":"volume snapshot","STORAGECLASS_NOT_ALLOW_CREATE_SNAPSHOT":"The storage class of the persistent volume claim does not support snapshot creation. Please select another persistent volume claim.","SYSTEM_COMPONENT_PL":"Componentes","SERVICE_COMPONENTS_DESC":"Este módulo monitorea el estado de varios componentes del servicio en KubeSphere, Kubernetes, OpenPitrix, etc. Muestra el estado de mantenimiento y el tiempo de ejecución del clúster actual, y ayuda a los usuarios a monitorear el estado del clúster y localizar problemas a tiempo.","STOPPED":"Stopped","RUNNING_TIME":"Tiempo de ejecución","KS_CONSOLE_DESC":"Proporciona servicios de consola para KubeSphere.","KS_APISERVER_DESC":"Sirve los puntos finales API REST y proporciona la interfaz para el estado compartido del clúster a través del cual interactúan todos los demás componentes, así como el control de seguridad del clúster","OPENLDAP_DESC":"Responsable del almacenamiento centralizado y la gestión de la información de la cuenta del usuario.","REDIS_DESC":"Responsable del almacén de estructura de datos en memoria, utilizado como base de datos, caché y agente de mensajes","TOWER_DESC":"A tool for network connection between clusters through an agent","KS_CONTROLLER_MANAGER_DESC":"A backend component that implements business logic. For example, it creates authorizations when a workspace is created and generates istio configurations for service strategies","COREDNS_DESC":"DNS y descubrimiento de servicios en el clúster","METRICS_SERVER_DESC":"Recopile métricas de la API de resumen, expuesta por Kubelet en cada nodo","KUBE_SCHEDULER_DESC":"El planificador de Kubernetes que conecta el Pod al nodo apropiado","KUBE_SCHEDULER_SVC_DESC":"The scheduler of Kubernetes that attaches the Pod to an appropriate node","KUBE_CONTROLLER_MANAGER_SVC_DESC":"A daemon that embeds the core control loops shipped with Kubernetes","JAEGER_COLLECTOR_DESC":"Recopila los datos del sidecar, el sidecar de istio es jaeger-agent","JAEGER_COLLECTOR_HEADLESS_DESC":"Recopila los datos del sidecar, el sidecar de istio es jaeger-agent","JAEGER_QUERY_DESC":"Sirve los puntos finales API y un servicio de IU","JAEGER_OPERATOR_METRICS_DESC":"A component that provides the monitoring metrics of Operator","MONITORING":"Monitorización","PROMETHEUS_K8S_DESC":"Proporciona datos de monitoreo para nodos, workload y objetos API","NODE_EXPORTER_DESC":"Exportador de Prometheus para métricas de hardware y sistema operativo","KUBE_STATE_METRICS_DESC":"Escucha el servidor API de Kubernetes y genera métricas sobre el estado de los objetos.","PROMETHEUS_OPERATED_DESC":"El servicio para todas las instancias de Prometheus solo para uso interno de Prometheus Operator","PROMETHEUS_OPERATOR_DESC":"Operador para gestionar instancias de Prometheus","ALERTMANAGER_OPERATED_DESC":"The Alertmanager service that provides Alertmanager integrations, such as Prometheus","ALERTMANAGER_MAIN_DESC":"The Alertmanager Web UI service","NOTIFICATION_MANAGER_SVC_DESC":"The Notification Manager service that provides the interface to send notifications, such as emails, WeChat and Slack messages","NOTIFICATION_MANAGER_CONTROLLER_METRICS_DESC":"A component that provides internal monitoring data services of Notification Manager Controller","LOGGING":"Logging","ELASTICSEARCH_LOGGING_DATA_DESC":"Proporciona almacenamiento, copia de seguridad, búsqueda y otros servicios de datos de Elasticsearch.","ELASTICSEARCH_LOGGING_DISCOVERY_DESC":"Proporciona servicios de gestión de clúster Elasticsearch.","LOGSIDECAR_INJECTOR_ADMISSION_DESC":"A component that automatically injects sidecar containers for a specific pod for disk log collection","KS_EVENTS_ADMISSION_DESC":"A component that provides webhook authentication for Events rule management","KS_EVENTS_RULER_DESC":"The Events rule engine service that provides filtering and alerting features","KUBE_AUDITING_WEBHOOK_SVC_DESC":"A component used for auditing logs in terms of collection, comparison, persistence and alert","S2IOPERATOR_METRICS_SERVICE_DESC":"The s2i monitoring service component that provides basic monitoring data","WEBHOOK_SERVER_SERVICE_DESC":"Proporciona valores predeterminados y valida el webhook para s2i","CODE_REPO_PL":"Code Repositories","CODE_REPO_LOW":"code cepository","CODE_REPO":"Repositorio de Código","CODE_REPO_DESC":"Manage code repositories based on Git.","CODE_REPO_EMPTY_DESC":"Import a code repository from GitHub, GitLab, or Bitbucket. You can also use Git to directly pull source code.","IMPORT_CODE_REPO":"Import Code Repository","EDIT_CODE_REPO":"Edit Code Repository","LATEST_SYNC_STATUS":"Latest sync status","CURRENT_SYNC_STATUS":"Current sync status","SYNC_STRATEGY":"Sync strategy","AUTO_SYNC":"Auto Sync","MANUAL_SYNC":"Manual Sync","END_TIME_SCAP":"End time","SYNC_RESULT_PL":"Sync Results","SYNC_RESULT":"Sync Result","SYNC_RESULT_EMPTY_DESC":"No sync result is found.","CONTINUOUS_DEPLOYMENT_PL":"Continuous Deployments","CONTINUOUS_DEPLOYMENT_DESC":"Manage continuous deployments to continuously deploy resources by using GitOps. ","CONTINUOUS_DEPLOYMENT_EMPTY_DESC":"Please create a continuous deployment.","DEGRADED":"Degraded","PROGRESSING":"Progresando","SYNCED":"Synced","MISSING":"Missing","SUSPENDED":"Suspendido","OUTOFSYNC":"Out of sync","DEPLOY_LOCATION":"Deployment Location","NEED_TO_SYNC_REPO":"Need to sync repo","CREATE_CONTINUOUS_DEPLOYMENT":"Create Continuous Deployment","CD_SELECT_CODE_REPO_DESC":"Select a code repository.","DEPLOYMENT_SETTINGS":"Deployment Settings","CODE_REPOSITORY_SETTINGS":"Code Repository Settings","SYNC_STRATEGY_TCAP":"Sync Strategy","AUTO_SYNC_DESC":"Automatically trigger application sync when there is a difference between the manifest in Git and the real-time state of the deployed resources, according to the set sync options.","PRUNE_RESOURCES":"Prune resources","SELF_HEAL":"Self-heal","MANIFEST_FILE_PATH":"Manifest File Path","DIRECTORY_RECURSE":"Directory recurse","REPO_EMPTY_DESC":"Please select a code repository.","VALUES_FILES":"Values Files","VALUES_FROM":"Values From","STORAGE_NAMESPACE":"Storage Namespace","TEST":"Test","REVISIONS_DESC":"Git repository commit ID, branch, or tag. For example: \"master\", \"v1.2.0\", \"0a1b2c3\", or \"HEAD\".","MANIFEST_FILE_PATH_DESC":"Manifest file path, for example: \"deployments/nginx\" or \"deployments/\"","MANUAL_SYNC_DESC":"Sync according to custom rules.","PRUNE_RESOURCES_DESC":"If selected, resources that do not exist in Git will be deleted during automatic sync. If not selected, resources in the cluster will not be deleted when automatic sync is triggered.","SELF_HEAL_DESC":"If selected, when there is a deviation between the defined state in Git and the deployed resources, the defined state in Git will be enforced. If not selected, automatic sync will not be triggered when changes are made to the deployed resources.","FOREGROUND_DESC":"Delete dependent resources first, then delete the main resource.","BACKGROUND_DESC":"Delete the main resource first, then delete the dependent resource.","ORPHAN_DESC":"Delete the main resource and leave the dependent resource as an orphan.","SKIP_SCHEMA_VALIDATION_DESC":"Skip kubectl validation. Add the --validate=false flag when kubectl applies the object.","AUTO_CREATE_PROJECT_DESC":"Automatically create a project for application resources when the project does not exist.","PRUNE_LAST_DESC":"Clean up resources after other resources are deployed and healthy.","APPLY_OUT_OF_SYNC_ONLY_DESC":"Only apply resources that are out of sync.","CONTINUOUS_DEPLOYMENT":"Continuous Deployment","CONTINUOUS_DEPLOYMENT_LOW":"continuous deployment","DELETE_CONTINUOUS_DEPLOYMENT_DESC_SI":"You are about to delete the continuous deployment {resource}.
    Please confirm whether to delete resources created by the continuous deployment.","DELETE_CONTINUOUS_DEPLOYMENT_DESC_PL":"You are about to delete the continuous deployments {resource}.
    Please confirm whether to delete resources created by the continuous deployments.","NO_CONTINUOUS_DEPLOYMENT_RELATED_RESOURCE_DESC":"No resource created by the continuous deployment is found.","DELETE_MULTIPLE_CONTINUOUS_DEPLOYMENT":"Delete Multiple Continuous Deployments","DELETE_CONTINUOUS_DEPLOYMENT":"Delete Continuous Deployment","DELETE_CONTINUOUS_DEPLOYMENT_RELATE_DESC":"Delete resources created by {resourceName}","SYNC":"Sync","SYNC_RESOURCE":"Sync Resource","REVISION":"Revision","REVISION_DESC":"Set a branch or tag of the code repository.","PRUNE":"Prune","DRY_RUN":"Dry run","APPLY_ONLY":"Apply only","FORCE":"Force","SYNC_SETTINGS":"Sync Settings","SKIP_SCHEMA_VALIDATION":"Skip schema validation","AUTO_CREATE_PROJECT":"Auto create project","PRUNE_LAST":"Prune last","APPLY_OUT_OF_SYNC_ONLY":"Apply out of sync only","PRUNE_PROPAGATION_POLICY":"Prune Propagation Policy","REPLACE_RESOURCE":"Replace Resource","REPLACE_RESOURCE_DESC":"Replace resources that already exist.","EMPTY_CD_TITLE":"No Continuous Deployment Found","SYNC_TRIGGERED":"Resource sync was triggered successfully.","PARAMETER_SETTINGS":"Parameter Settings","AUTO_PARAMETER":"Auto","AUTO_PARAMETER_DESC":"Set automatically.","HELM_PARAMETER":"Helm","HELM_PARAMETER_DESC":"Set Helm parameter.","KUSTOMIZE_PARAMETER":"Kustomize","KUSTOMIZE_PARAMETER_DESC":"Set Kustomize parameters.","PASS_CREDENTIALS":"Pass Credentials","IGNORE_MISSING_VALUE_FILES":"Ignore Missing Value Files","SKIP_CRDS":"Skip Crds","RELEASE_NAME":"Release Name","VALUE_FILES":"Value Files","FORCE_STRING":"Force String","FILE_PARAMETERS":"File Parameters","NAME_PREFIX":"Name Prefix","NAME_SUFFIX":"Name Suffix","IMAGES":"Images","COMMON_LABELS":"Common Labels","COMMON_ANNOTATIONS":"Common Annotations","DEVOPS_PROJECT_SETTINGS":"DevOps Project Settings","DEVOPS_DESCRIPTION":"A DevOps project is a separate namespace where a set of pipelines is defined. Users can group their pipelines themselves (for example, project type and organization type).","DEVOPS_PROJECT_ROLE_SCAP":"DevOps project role","DEVOPS_PROJECT_SCAP":"DevOps project","DEVOPS_PROJECT_MEMBER_SCAP":"DevOps project member","DEVOPS_PROJECT_MEMBER_PL_SCAP":"DevOps project members","DEVOPS_PROJECT_ROLE_PL_SCAP":"DevOps project roles","CD_ALLOWLIST":"Continuous Deployment Allowlist","CD_ALLOWLIST_SCAP":"Continuous deployment allowlist","DEPLOYMENT_LOCATION_PL":"Deployment Locations","ENABLE_ALLOWLIST":"Enable Allowlist","EDIT_ALLOWLIST":"Edit Allowlist","EMPTY_ALLOWLIST_TITLE":"Continuous Deployment Allowlist Disabled","ALLOWLIST_EMPTY_DESC":"Enable the allowlist so that only specific code repositories and deployment locations can be used for continuous deployment.","MULTI_CLUSTER_PROJECT_NOT_FOR_CD":"Multi-cluster projects cannot be used for continuous deployment.","CODE_REPOSITORY_EXIST_DESC":"The code repository already exists. Please select another code repository.","DEPLOYMENT_LOCATION_EXIST_DESC":"The deployment location already exists. Please set another deployment location.","CODE_REPOSITORY_NOT_SELECTED":"No code repositories are selected.","RESOURCE_DEPLOYMENT_LOCATION_NOT_SELECTED":"No resource deployment locations are selected.","ALL_CODE_REPOSITORIES":"All code repositories","ALL_RESOURCE_DEPLOYMENT_LOCATIONS":"All resource deployment locations","CREDENTIAL_LOW":"credential","DETAILS":"Details","TYPE_VALUE":"Type: {value}","RECORD":"Record","CREDENTIAL_PL":"Autentificación","DEVOPS_CREDENTIALS_DESC":"Credentials are objects that contain some sensitive data, such as username and password, SSH key and Token. They are used to provide authentication for pulling code, pushing/pulling images, executing SSH scripts, etc. when a pipeline is running.","CREDENTIAL_EMPTY_DESC":"Please create a credential.","CREATE_CREDENTIAL":"Crear credenciale","CREDENTIAL_NAME_EXIST_DESC":"El ID de credencial ya existe","CREDENTIAL_TYPE_USERNAME_PASSWORD":"Secreto de contraseña de cuenta","CREDENTIAL_TYPE_SSH":"SSH key","PRIVATE_KEY":"Llave privada","PASSPHRASE":"Pasphrase","CREDENTIAL_TYPE_SECRET_TEXT":"Access token","CREDENTIAL_TYPE_KUBECONFIG":"kubeconfig","PASSWORD_TOKEN":"Token/Contraseña","KUBECONFIG_CONTENT_DESC":"El contenido predeterminado es el kubeconfig del usuario actual.","CONTENT":"Content","DEVOPS_PROJECT_MEMBER":"DevOps Project Member","DEVOPS_PROJECT_MEMBER_PL":"DevOps Project Members","DEVOPS_PROJECT_MEM_DESC":"Manage and assign roles to project members.","DEVOPS_PROJECT_MEMBER_EMPTY_DESC":"Please invite a member of the current workspace to the DevOps project.","INVITE_MEMBER_DESC_DEVOPS":"You can invite members who belong to the workspace to the DevOps project.","HOW_TO_INVITE_MEMBER_Q":"How do I invite members to the project?","HOW_TO_INVITE_MEMBER_A":"The project administrator or users who have permission to invite project members can invite workspace members to the project.","NO_PERMISSION":"No Permission Found","DEVOPS_PROJECT_ROLE_PL":"DevOps Project Roles","DEVOPS_PROJECT_ROLES_DESC":"The project roles define the permissions that users have under the current DevOps project.","DEVOPS_PROJECT_ROLE_EMPTY_DESC":"Please create a DevOps project role.","ROLE_DEVOPS_VIEWER":"Permite el acceso de lectura para ver todos los recursos en el proyecto DevOps.","ROLE_DEVOPS_OPERATOR":"Usuario normal en un proyecto DevOps, que puede crear credenciales para las pipelines en el proyecto DevOps.","ROLE_DEVOPS_ADMIN":"Manage all resources in the DevOps project.","EDIT_PERMISSIONS":"Edit Permissions","CREATE_ROLE":"Create Role","CATEGORIES":"Categories","DEPENDS_ON":"Depends on: ","PERMIGROUP_PIPELINES_MANAGEMENT":"Pipelines","PERMISSION_PIPELINES_VIEW":"Pipeline Viewing","PERMISSION_PIPELINES_VIEW_DESC":"View DevOps project pipelines and download artifacts.","PERMISSION_PIPELINES_MANAGEMENT":"Pipeline Management","PERMISSION_PIPELINES_MANAGEMENT_DESC":"Create, edit, and delete DevOps project pipelines.","PERMISSION_PIPELINERUNS_VIEW":"Pipeline Run Record Viewing","PERMISSION_PIPELINERUNS_VIEW_DESC":"View pipeline run records in the DevOps project.","PERMISSION_PIPELINERUNS_MANAGEMENT":"Pipeline Run Record Management","PERMISSION_PIPELINERUNS_MANAGEMENT_DESC":"View, edit, and delete pipeline run records in the DevOps project.","PERMIGROUP_CREDENTIALS_MANAGEMENT":"Autentificación","PERMISSION_CREDENTIALS_VIEW":"Credential Viewing","PERMISSION_CREDENTIALS_VIEW_DESC":"View and use DevOps credentials.","PERMISSION_CREDENTIALS_MANAGEMENT":"Credential Management","PERMISSION_CREDENTIALS_MANAGEMENT_DESC":"Create, edit, and delete DevOps credentials.","PERMIGROUP_DEVOPS_SETTINGS":"Configuraciones del proyecto","PERMISSION_DEVOPS_SETTINGS":"Project Settings Management","PERMISSION_DEVOPS_SETTINGS_DESC":"Manage DevOps project settings.","PERMIGROUP_CONTINUOUS_DEPLOYMENTS_MANAGEMENT":"Continuous Deployments","PERMISSION_CONTINUOUS_DEPLOYMENTS_VIEW":"Continuous Deployment Viewing","PERMISSION_CONTINUOUS_DEPLOYMENTS_VIEW_DESC":"View continuous deployments in the DevOps project.","PERMISSION_CONTINUOUS_DEPLOYMENTS_MANAGEMENT":"Continuous Deployment Management","PERMISSION_CONTINUOUS_DEPLOYMENTS_MANAGEMENT_DESC":"Manage continuous deployments in the DevOps project.","PERMIGROUP_CODE_REPOSITORIES_MANAGEMENT":"Code Repositories","PERMISSION_CODE_REPOSITORIES_VIEW":"Code Repository Viewing","PERMISSION_CODE_REPOSITORIES_VIEW_DESC":"View code repositories in the DevOps project.","PERMISSION_CODE_REPOSITORIES_MANAGEMENT":"Code Repository Management","PERMISSION_CODE_REPOSITORIES_MANAGEMENT_DESC":"Manage code repositories in the DevOps project.","CODE_REPOSITORY":"Repositorio de Código","TASK_STATUS":"Task Status","NOT_RUNNING":"no ejecutar","QUEUED":"Encolado","ABORTED":"Aborted","UNSTABLE":"Unstable","SKIPPED":"Omitido","NOT_BUILT":"Not built","SYNC_STATUS":"Sync Status","DEVOPS_PROJECT":"DevOps Project","SCAN_REPO_SUCCESSFUL":"Escanear el repositorio correcto","VIEW_SCAN_LOGS":"View Scan Logs","STARTED_BY_NAME":"Comenzado por {name}","REPOSITORY_SCAN_LOGS":"Escanear logs de repositorio","RESCAN":"Reescanear","LOGS_OBTAINED_SUCCESSFULLY":"Escanear registros correctos","HEALTH_STATUS_SCAP":"Health status","PIPELINE_QUEUED_TITLE":"La pipeline se inicializará pronto","INITIALIZING_PIPELINE":"Inicialización de Pipeline","PIPELINE_PREPARE_DESC":"El ambiente se está preparando. Habrá una pantalla gráfica más tarde.","INITIALIZING_PIPELINE_DESC":"Please wait until the pipeline initialization is complete.","TASK_FAILED_NOT_OPERATIONAL":"Tarea fallida, no operativa","NO_PIPELINE_CONFIG_FILE_TIP":"Archivo de configuración de Pipeline no encontrado","EDIT_PIPELINE":"Editar pipeline","JENKINS_UNAVAILABLE":"Jenkins is unready.","AGENT_TYPE_DESC":"The agent section specifies\n where the entire Pipeline or a particular stage will be executed in the Jenkins environment,\n depending on where the Agent part is placed.\n This part must be defined at the top level within the pipeline block,\n but the stage level usage is optional. ","NOT_VALID_REPO":"Code repo is not valid and cannot be created","CREATE_PIPELINE_DESC":"Build, test and deploy with Pipelines","CI":"Continuous Integration (CI)","CI_DESC":"Continuous integration (CI) is the process of automatically detecting, pulling, building, and (in most cases) unit testing after source code changes.","CICD":"Continuous Integration & Delivery (CI/CD)","CICD_DESC":"Continuous deployment (CD) refers to the idea of automatically providing the release version in the continuous delivery pipeline to end users. According to the user's installation method, automatic deployment in the cloud environment, app upgrades (such as apps on mobile phones), website updates, or only the list of available versions.","CUSTOM_PIPELIEN":"Custom Pipeline","CUSTOM_PIPELIEN_DESC":"You can select the tasks you need to customize the work content of the pipeline.","CC":"CC","CREDENTIAL_NAME":"ID de autentificación","REMOTE_REPOSITORY_URL":"URL de repositorio remoto","SCM":"SCM","INPUT_MESSAGE_DESC":"Este mensaje se mostrará en el estado de ejecución de la canalización.","KUBERNETES_DEPLOY_DESC":"Deploy resources on a Kubernetes cluster.\n In a continuous integration or continuous deployment environment,\n only those resources that need to be updated regularly should be placed in the deployment step.\n Therefore, this step is mostly used to process the deployment of such resources.","KUBERNETES_DEPLOY_DESC_MORE":"
    \n \n
  • Distribución sin kubectl
  • \n
  • Sustitución variable en Jenkinsfile, es posible la implementación dinámica.
  • \n
  • Soporte para dibujar imágenes acoplables desde repositorios de imágenes privadas
  • \n \n
    \n
  • Configuración
  • \n
  • Llave
  • \n
  • Desplegar
  • \n
  • Dave Process Set
  • \n
  • Enrutamiento de aplicaciones
  • \n
  • Namespace
  • \n
  • Tarea
  • \n
  • Servicio
  • \n
  • Conjunto de réplica
  • \n
  • Controlador de replicación\n (las actualizaciones continuas no son compatibles, use la implementación si desea usar actualizaciones continuas)\n
  • ","STAGE":"Stage","KUBERNETES_DEPLOY_DEPRECATED_TIP":"This step will be deprecated in subsequent versions, and it is recommended that you consider other alternatives.","ORIGINAL_IMAGE_ADDRESS":"Original Image Address","NEW_IMAGE_ADDRESS":"New Image Address","NEW_IMAGE_TAG":"New Image Tag","CD_STEP_DESC":"Update image information using continuous deployment.","UPDATE_CD_TITLE":"Continuous Deployment of Updates","EDIT_JENKINSFILE":"Editar Jenkinsfile","CLOSE_JENKINSFILE_EDITOR_TIP":"¿Estás seguro de cerrar este editor de jenkinsfile?","PIPELINE_RUN_LOGS":"Registros de ejecución de Pipelines","VIEW_LOGS":"Mostrar logs","DURATION_VALUE":"Duration: {value}","DOWNLOAD_LOGS":"Descargar Logs","START_REAL_TIME_LOG":"activar el registro de logs en tiempo real","STOP_REAL_TIME_LOG":"desactivar el registro de logs en tiempo real","RUN_RECORDS":"Run Records","RUN":"ejecutar","ACTIVITY_EMPTY_TIP":"La pipeline actual aún no se está ejecutando","COMMIT":"Commit","LAST_MESSAGE":"Ultimo mensaje","RUN_ID":"Run ID","STOP_PIPELINE_SUCCESSFUL":"Parado de ejecución satisfactorio, se actualizará el estado después","INVALID_JENKINSFILE_TIP":"El Jenkinsfile actual no es un Jenkinsfile declarativo estándar y no se puedes mostrar gráficamente","PAUSED":"Pausado","SET_PARAMETERS":"Entrada de parámetros","PARAMS_DESC":"The following parameters are generated based on the pipeline settings or\n the parameters section of the Jenkinsfile, which are entered according to operational requirements.","PIPELINE_RUN_START_SI":"Starts to run the pipeline...","PIPELINE_RUN_START_PL":"Starts to run the pipelines...","BREAK":"Rotura","PROCEED":"Continuar","WAITING_FOR_INPUT":"Espere entrada interactiva","CANCELLED_IN_REVIEW":"Cancelado en la revisión","STEPS_COMPLETE_TOTAL":"Steps: {complete}/{total}","COMMIT_PL":"Commits","AUTHOR":"Author","NO_COMMIT_FOUND":"Sin registros de commits","ARTIFACT_PL":"Artefactos","NO_ARTIFACT_FOUND_TIP":"No hay registro de artefactos.","SIZE":"Tamaño","BRANCH_SI":"Branch","BRANCH_PL":"Branches","SCAN_REPOSITORY":"Escanear repositorio","PIPELINE":"Pipeline","NO_BRANCHES_FOUND":"No Branches Found","CODE_CHECK":"Código de calidad","BUG_PL":"Bugs","VULNERABILITY_PL":"Vulnerabilidad de código","CODE_SMELL_PL":"Code Smells","CODE_LINE_COUNT":"Líneas de código","COVERAGE":"Cobertura","TEST_RESULTS":"Resultado de la prueba","ISSUE_PL":"Problemas","CRITICAL":"Critical","MAJOR":"Major","MINOR":"Minor","DISPLAY_ALL":"Mostrar todo","DISPLAY_ONLY_LAST_TEN":"Mostrar solo los últimos 10","LINE_VALUE":"Número de línea: {value}","PASSED":"Pasado","PULL_REQUEST_PL":"Pull Requests","FAILED_CHECK_SCRIPT_COMPILE":"Failed to check script compiling. If you want to skip the step, click Continue.","IMPORT_FROM_CODE_REPO":"Import From Code Repository","General":"General","Container":"Container","Review":"Review","URL":"URL","Credential Name":"ID de autentificación","Branch":"Branch","SVN URL":"SVN URL","The message to print":"Message to Print","Shell command line":"Shell command line","Body":"Body","Variable":"Variable","KeyFile Variable":"KeyFile Variable","Passphrase Variable":"Passphrase Variable","Artifacts Location":"Artifacts Location","Time":"Hora","Unit":"Unit","Groovy script":"Groovy script","Target Pipeline Name":"Target Pipeline Name","Quiet Period":"Quiet Period","Wait For Completion":"Wait for completion","Propagate Errors":"Propagate errors","Error Message":"Error Message","Test Results Location":"Location of Test Results","Allow Empty Results":"Allow empty results","Keep Long Output":"Retain long output","Skip Publishing Checks":"Skip publishing checks","Retry Count":"Retry Times","Message":"Mensaje","Submitter":"Submitter","Config Name":"Configuration Item","AbortPipeline if quality gate status is not green":"Abort the pipeline if quality gate status is not green","Container Name":"Nombre del contenedor","Continuous Deployments":"Continuous Deployment","Original Image Address":"Original Image Address","New Image Address":"New Image Address","New Image Tag":"New Image Tag","Credential":"Autentificación","PIPELINE_CONFIGURATION":"Pipeline Configurations","Replay":"Replay","BRANCH_DISABLED_NOT_REPLAY":"The branch has been disabled and cannot be replayed.","RUN_LOGS":"Run Logs","VIEW_FULL_LOG":"View Full Logs","VIEW_REAL_TIME_LOG":"View Real-time Logs","PIPELINE_LOG":"Pipeline Logs","NO_BUILD_PARAMETERS":"Not found build parameters.","PIPELINE_PL":"Pipelines","HEALTH":"Health","PULL_REQUEST_COUNT":"Pull Requests","MULTI_BRANCH_PIPELINE":"Multi-branch Pipeline","HEALTHY":"Healthy","SUB_HEALTHY":"Sub-healthy","NO_STATUS":"sin Estado","BRANCH_COUNT":"Número de rama","PIPELINE_EMPTY_DESC":"Please create a pipeline.","BATCH_RUN_SUCCESS_SI":"The pipeline was run successfully.","BATCH_RUN_SUCCESS_PL":"The pipelines were run successfully.","BATCH_RUN_UNSUPPORTED_DESC":"Multi-branch pipelines cannot run in a batch.","COPY":"Copiar","COPY_PIPELINE":"Copiar pipeline","PIPELINE_NAME_DESC":"El nombre de la pipeline. Las pipelines en el mismo proyecto deben tener nombres diferentes.","PIPELINE_NAME_TIP":"Por favor introduce el nombre de la pipeline","CREATE_PIPELINE":"Crear pipeline","GO_CREATE_REPO_ACTION":"No code repository is available. Please create a code repository.","PIPELINE_TYPE":"Pipeline Type","SELECT_CODE_REPOSITORY":"Seleccionar repositorio de código","BRANCH_PIPELINE_DESC":"Describe the software build process with visual orchestration or Jenkinsfile.","MULTI_BRANCH_PIPELINE_DESC":"Create a series of pipelines for each branch detected in the source code management (SCM) repository.","PIPELINE_CREATE_DEVOPS_PROJECT_DESC":"Select the DevOps project to which the pipeline belongs.","CODE_REPOSITORY_OPTIONAL":"Repositorio de Código (Opcional)","CODE_REPOSITORY_REQUIRED":"Repositorio de Código","CODE_REPOSITORY_REQUIRED_DESC":"Please select a code repository.","GO_CREATE_REPO":"No code repository is available. Please create a code repository.","CODE_REPO_EXISTS":"code repository already exists","SELECT_CODE_REPO_DESC":"Selecciona un repositorio de código como fuente de código para la pipeline.","RESELECT":"Seleccionar de nuevo","CREDENTIAL_SI":"Autentificación","CREDENTIAL":"Autentificación","PIPELINE_CREDENTIAL_EMPTY_TIP":"Please select a credential.","SELECT_CREDENTIAL_DESC":"La obtención del código del repositorio puedes requerir credenciales. Selecciona una credencial existente o agregue una nueva.","GITHUB_CREDENTIAL_EMPTY":"Introduce su token de acceso de GitHub.","INCORRECT_GITHUB_TOKEN_DESC":"Token incorrecto\n \n Get Token\n ","LOAD_MORE":"Cargar más","NO_REPO_FOUND_DESC":"No code repository is found.","GITLAB_SERVER_ADDRESS":"GitLab Server","GITLAB_SERVER_EMPTY_TIP":"Please enter the address of a GitLab server.","PROJECT_GROUP_OWNER":"GitLab Project Owner","PROJECT_GROUP_OWNER_EMPTY_TIP":"Please enter the name of a GitLab project group or project owner.","REPOSITORY_NAME":"Nombre del repositorio","REPOSITORY_NAME_EMPTY_TIP":"Please enter the name of a repository name.","BITBUCKET_SERVER_ADDRESS":"Bitbucket Server Address","BITBUCKET_SERVER_EMPTY_TIP":"Please enter the address of a Bitbucket server.","INCORRECT_USERNAME_OR_PASSWORD":"Incorrect username or password.","BITBUCKET_SERVER_CREDENTIAL_EMPTY":"Introduce la información de su cuenta de Bitbucket.","BITBUCKET_ADDRESS_EMPTY_TIP":"Please enter the address of a Bitbucket server.","BITBUCKET_ADDRESS_INVALID_TIP":"Invalid Bitbucket server address.","CODE_REPOSITORY_ADDRESS_DESC":"Use a repository that contains Jenkinsfiles.","CODE_REPOSITORY_ADDRESS_EMPTY_TIP":"Please enter the address of a code repository.","CODE_REPOSITORY_ADDRESS":"URL del repositorio","SINGLE_SVN":"Svn único","SVN":"SVN","BRANCH_EXCLUDED":"Rama excluida","BRANCH_INCLUDED":"Rama incluida","DELETE_OUTDATED_BRANCHES":"Descartar ramas antiguas","DELETE_OUTDATED_BRANCHES_TIP":"Esto determinará cuándo se debe descartar la rama y todos los registros de compilación debajo de la rama. El registro de compilación incluye los artefactos de archivo de salida de la consola y otros metadatos relacionados con una compilación en particular. Mantener menos compilaciones ahorra espacio en disco utilizado por Jenkins. Proporcionamos dos opciones para determinar cuándo debe descartarse la rama anterior: 1. Número de días para conservar la rama: si la rama alcanza un cierto número de días, la rama se descarta. 2. Número de ramas reservadas: si ya existe un cierto número de ramas, se descarta la rama más antigua. Estas dos opciones pueden funcionar en la sucursal al mismo tiempo. Si se excede alguno de los límites, se eliminarán las ramas que excedan este límite.","BRANCH_SETTINGS":"Configuración de ramas","BRANCH_RETENTION_PERIOD_DAYS":"Días para mantener las ramas eliminadas","MAXIMUM_BRANCHES":"Número máximo de ramas eliminadas","BRANCH_RETENTION_PERIOD_DAYS_DESC":"Old branches are discarded after this number of days. The default value is 7.","MAXIMUM_BRANCHES_DESC":"Old branches are discarded when the branch number exceeds the maximum number. The default value is 5.","ADD_STRATEGY":"Add Strategy","DISCOVER_TAG_BRANCHES":"Descubrir Tag ramas","DISCOVER_BRANCHES":"Descubrir ramas","ALL_BRANCHES":"Todas las ramas","ONLY_PR_BRANCHES":"Solo las ramas que también se presentan como PR","EXCLUDE_PR_BRANCHES":"Excluir las ramas que también se presentan como PRs","ENABLE_TAG_BRANCH_DISCOVERY":"Habilitar descoberta de ramo de tag","DISABLE_TAG_BRANCH_DISCOVERY":"Desativar a descoberta do ramo tag","PULL_STRATEGY":"Estrategia de Pull","OPTIONS_PR_PARAMS_1":"Versión del código fuente de PR fusionada con la rama de destino","OPTIONS_PR_PARAMS_2":"Versión del código fuente del propio RP","OPTIONS_PR_PARAMS_3":"Se crean dos pipelines cuando se descubre PR","REGEX":"Filtro de expresiones regulares","FILTER_BY_REGEX":"Filter by name (with regular expression)","FILTER_BY_REGEX_DESC":"Habilite las expresiones regulares, ignorando los nombres que no coinciden con la expresión regular proporcionada (incluidas las ramas y PR, etc.)","SCRIPT_PATH":"Ruta del script","SCRIPT_PATH_DESC":"Especifique la ubicación del archivo Jenkinsfile en el repositorio de código fuente","SCAN_TRIGGER":"Repository Scan Trigger","SCAN_PERIODICALLY":"Scan regularly if not otherwise triggered","TIME_TRIGGER_DESC":"Algunos tipos de elementos se volverán a indexar automáticamente cuando reciban un mensaje push externo. Sin embargo, en algunos casos, las notificaciones de mensajes pueden fallar. Esta opción verificará si el índice se ha ejecutado dentro del intervalo de tiempo especificado y, si no, activará el índice.","SCAN_INTERVAL":"Intervalo de escaneo","SELECT_PIPELINE_SCAP":"selecciona una pipeline","WHEN_DELETE_PIPELINE_DESC":"Cuando se elimina una pipeline, las tareas en la pipeline especificada se activan automáticamente.","WHEN_CREATE_PIPELINE_DESC":"Cuando se crea una nueva pipeline, las tareas en la pipeline especificada se activan automáticamente.","PIPELINE_EVENT_TRIGGER":"Disparador de eventos de Pipelines","WHEN_CREATE_PIPELINE":"Cuando crear pipeline","WHEN_DELETE_PIPELINE":"Cuando eliminar pipeline","CLONE_SETTINGS":"Opciones de clonación de Git","CLONE_TIMEOUT_PERIOD":"Tiempo de espera de clonación de pipeline agotado (en minutos)","CLONE_DEPTH":"profundidad de clonado","ENABLE_SHALLOW_CLONE":"Enable shallow clone","WEBHOOK_PUSH_URL":"Webhook Push URL","WEBHOOK_PUSH_DESC":"Empuje un mensaje a esta URL para activar una reindexación del repositorio.","TRUSTED_USERS":"Usuario de confianza","CONTRIBUTORS":"Contribuidores","EVERYONE":"Todo el mundo","NOBODY":"Nadie","USERS_WITH_PERMISSION":"De usuarios con permiso de administrador o de escritura","OPTIONS":"Options","BUILD_SETTINGS":"Configuración de compilación","DELETE_OUTDATED_BUILD_RECORDS":"Descartar builds antiguas","DELETE_OUTDATED_BUILD_RECORDS_TIP":"Set the system to automatically delete outdated build records including console output, archived artifacts, and metadata to save disk space.","BUILD_RECORD_RETENTION_PERIOD_DAYS":"Días para mantener las build","BUILD_RECORD_RETENTION_PERIOD_DAYS_DESC":"Old builds are discarded after this number of days. The default value is 7.","BUILD_RECORD_RETENTION_PERIOD_DAYS_INVALID_TIP":"The retention period must be a positive integer.","MAXIMUM_BUILD_RECORDS":"Número máximo de compilaciones para mantener","MAXIMUM_BUILD_RECORDS_DESC":"Old builds are discarded when the build number exceeds the maximum number. The default value is 10.","MAXIMUM_BUILD_RECORDS_INVALID_TIP":"The maximum number of build records must be a positive integer.","NO_CONCURRENT_BUILDS":"No hay builds concurrentes","NO_CONCURRENT_BUILD_DESC":"Si marca esta opción, no podrá ejecutar varias compilaciones simultáneamente.","BUILD_PARAMETERS":"Build parametrizado","BUILD_PARAMETERS_TIP":"El proceso de compilación parametrizado le permite pasar uno o más parámetros cuando construye. Por ejemplo: puedes tener una pipeline para publicar software y desea cargar las notas de la versión juntas. Esto se puedes hacer agregando parámetros de texto aquí. Cada parámetro tiene un Nombre y un Valor y el valor del Valor depende del tipo de parámetro. Se puedes acceder a estos valores en la canalización mediante params.Name o Name. Esto significa que cada parámetro definido aquí debe tener un nombre único. Al parametrizar un proyecto, la compilación se reemplaza por una compilación parametrizada que solicita al usuario que introduce un valor para cada parámetro definido. Si eligen no ingresar nada, la compilación continúa con el valor predeterminado para cada parámetro. Si la compilación del proyecto se inicia automáticamente, por ejemplo, mediante un disparador temporizado, se disparará con el valor predeterminado del parámetro.","PARAMS_STRING":"Cuerda","PIPELINE_PARAM_DEFAULT_DESC":"The default value of the field. You can also change the default value before manually running a pipeline.","PARAMS_TEXT":"Texto","PARAMS_TEXT_TCAP":"Multi-line String","PARAMETER_DESCRIPTION_DESC":"Descripción del parámetro.","PARAMS_BOOLEAN":"Booleano","PARAMS_CHOICE":"Elección","CHOICE_PARAM_OPTION_DESC":"Enter one option per each line. La primera línea se usará como la opción predeterminada.","PARAMS_PASSWORD":"Contraseña","BUILD_TRIGGER":"Crear disparador","BUILD_PERIODICALLY":"Build programada","BUILD_PERIODICALLY_TIP":"It provides cron-like functionality to run this pipeline regularly.","PIPELINE_CRON_DESC":"Habría corrido por última vez en {lastTime}; se ejecutará a las {nextTime}","PIPELINE_SCHEDULE_DESC":"Enter a CRON expression to set a schedule.","DEFAULT_VALUE":"Valor por defecto","PARAMETER_NAME_EMPTY_DESC":"Please set the parameter name.","SELECT_TEMPLATE":"Select template","PARAMETER_CONFIG":"Parameter configuration","PREVIEW":"Preview","EMPTY_PARAMS_CONFIG":"This operation does not require parameter configuration.","PIPELINE_VALIDATOR_DESC":"Please select a pipeline template.","USER_GUIDE":"User Guide","API_DOCUMENT":"API Docuement","INPUT_USERNAME_OR_EMAIL_TIP":"Please input username or email","LOG_IN":"Log In","LOG_IN_WITH_TITLE":"Log in with {title}","LOG_OUT":"Log Out","ABOUT":"About","USERNAME_OR_EMAIL":"Username or Email","WELCOME":"Welcome","INTERNAL_SERVER_ERROR_TIP":"An unepected error seems to have occurred. Please refresh your page.","TOO_MANY_FAILURES":"The number of consecutive login failures has exceeded the limit. Please try again later.","FAILED_TO_ACCESS_BACKEND":"Failed to access the backend services.","FAILED_TO_ACCESS_API_SERVER":"Failed to access the API server.","LOGIN_AGAIN_DESC":"The session has timed out or the user has logged in elsewhere. Please log in again.","CHANGE_PASSWORD_TIP":"You are logging in for the first time. Please change your password.","SUBMIT":"Submit","CHANGE_PASSWORD_LATER":"Change Password Later","PASSWORD_MUST":"Your password must:","PASSWORD_LETTER":"Contain at least 1 uppercase letter and 1 lowercase letter.","PASSWORD_NUMBER":"Contain at least 1 number.","PASSWORD_LENGTH":"Contain at least 8 characters.","SET_EMAIL_AND_USERNAME":"Set Email and Username","APPLICATION_GOVERNANCE_SCAP":"Application governance","NO_SERVICE_FOUND":"No Service Found","GATEWAY_IP_ADDRESS":"IP del gateway","GATEWAY_ACCESS_MODE":"Tipo de gateway","NODE_PORTS_SCAP":"Node ports","LOAD_BALANCER_SCAP":"Load balancer","LOAD_BALANCERS_SCAP":"Load balancers","TRAFFIC_MANAGEMENT":"Gestión del tráfico","APPLICATION_GOVERNANCE_ENABLED":"Microservicio habilitado","APPLICATION_GOVERNANCE_DISABLED":"Microservicio no habilitado","NAME_VALUE":"Nombre: {value}","CONTAINER_PORT_VALUE":"Puerto de contenedores: {value}","PLEASE_USE_RELATIVE_PATH":"Please use a relative path.","RELATIVE_PATH_NOT_SUPPORT":"Unsupported relative path format.","MOUNT_PATH_INCORRECT":"Incorrect mount path.","REASON":"Motivo","WORKLOAD_DESC":"La carga de trabajo suele ser el operador real para acceder al servicio, y también es el operador real en ejecución para aplicaciones del sistema, como la recopilación y supervisión de registros de nodos. Workload es un modelo abstracto para un grupo de Pods.","DEPLOYMENT_EMPTY_DESC":"Cree un deployment.","UPDATING":"Actualización","NEXT":"Siguiente","INVALID_PROJECT":"Invalid project.","REPLICA_SCHEDULING_MODE":"Modo de despliegue","SPECIFY_REPLICAS":"Especificar las réplicas","WEIGHTS":"Pesas","SPECIFY_WEIGHTS":"Especificar los pesos","SPECIFY_WEIGHTS_DESC":"El número total de copias establecido se asignará a los grupos seleccionados de acuerdo con los pesos establecidos, y las copias de los grupos no disponibles se migrarán automáticamente a los grupos disponibles.","SPECIFY_REPLICAS_DESC":"Especifique claramente la cantidad de réplicas que se implementarán para cada clúster.","REPLICA_LOW_SI":"replica","REPLICA_LOW_PL":"replicas","WEIGHT":"Peso","TOTAL_REPLICAS":"Número total de copias","COST":"Cost","ADD_CONTAINER":"Add Container","ADD_CONTAINER_DESC":"KubeSphere admite la extracción de imágenes de los Registros de imágenes y la creación de nuevas imágenes a través del código fuente (Fuente a imagen).","CONTAINERS":"Imagen de contenedor","IMAGE_TIME_SIZE_LAYER":"Updated {time}","IMAGE_DESC":"Para implementar desde un repositorio de imágenes privado, primero debe crear un secreto de registro de imágenes y luego extraer la imagen.","IMAGE_PLACEHOLDER":"Selecciona el registro de la lista desplegable o introduce una dirección de registro público","IMAGE_EMPTY":"Please set an image.","ENTER_POSITIVE_INTEGER_DESC":"La entrada de copia es ilegal","TOTAL_REPLICAS_EMPTY_DESC":"Ingrese el número total de copias","CONTAINER_NAME":"Nombre del contenedor","CONTAINER_TYPE":"Tipo de contenedor","USE_DEFAULT_PORTS":"Usar puertos predeterminados","USE_IMAGE_DEFAULT_PORTS":"Use Default Port of Images","NO_DEFAULT_PORT":"Sin configuración de puertos predeterminada","REGISTRY":"registro","SET_IMAGE_DESC":"Por favor selecciona imagen","WORKER_CONTAINER":"Contenedor de trabajo","CONTAINER_RESOURCE_LIMIT_TIP":"Set the resource limits and requests of the container so that the container is scheduled to appropriate nodes.","GPU_TYPE":"GPU Type","GPU_LIMIT":"GPU Limit","NVIDIA_COM_GPU":"NVIDIA GPU","NO_LIMIT":"Ilimitado","NO_REQUEST":"Ninguna solicitud","NO_RESOURCE_LIMIT":"No resource limit","IGNORE_AND_RETRY":"para volver a intentarlo","AVAILABLE_QUOTAS":"Available Quotas","PORT_SETTINGS":"Configuraciones de puerto","ISTIO_PROTOCOL_TIP":"To fully use the Application Governance feature, select a protocol based on the actual usage of the Service. The port name will be generated in the - format.","REQUIRED":"requerido","IMAGE_PULL_POLICY_ALWAYS":"Volver a descargar la imagen (siempre)","IMAGE_PULL_POLICY_NEVER":"Usar solo imagen local (nunca)","IMAGE_PULL_POLICY_ALWAYS_DESC":"Pulls an image always when the pod is created or updated.","IMAGE_PULL_POLICY_IFNOTPRESENT_DESC":"Pulls an image only when the required image does not exist locally.","IMAGE_PULL_POLICY_NEVER_DESC":"Solo se usará la imagen local, lo que hará que el contenedor sea anormal si la imagen requerida no existe localmente.","IMAGE_PULL_POLICY_IFNOTPRESENT":"Use la imagen local primero (IfNotPresent)","LIVENESS_CHECK":"Verificación del estado del contenedor","READINESS_CHECK":"Verificación Readiness del contenedor","STARTUP_CHECK":"Comprobación de inicio de contenedor","LIVENESS_CHECK_DESC":"Este método de verificación se utiliza para detectar si el contenedor está vivo.","READINESS_CHECK_DESC":"Este método de verificación se utiliza para detectar si el contenedor está listo para atender solicitudes.","STARTUP_CHECK_DESC":"Este método de verificación se utiliza para detectar si el contenedor se inicia correctamente.","ADD_PROBE":"Add Checker","COMMANDS":"Comando","HEALTH_CHECK":"Health check","STARTUP_CHECK_TIP":"Kubernetes v1.18 or later is required.","HTTP_PATH_EMPTY":"Please set a path for the HTTP check.","LIFECYCLE_MANAGEMENT":"Lifecycle Management","LIFECYCLE_MANAGEMENT_DESC":"Add actions to be performed after the container is started or before it is stopped for environment preparation or graceful shutdown.","POSTSTART_ACTION":"Post-start Action","PRESTOP_ACTION":"Pre-stop Action","POSTSTART_ACTION_DESC":"Add an action to be performed after the container is started.","PRESTOP_ACTION_DESC":"Add an action to be performed before the container is stopped.","ADD_ACTION":"Add Action","ADD_ENVIRONMENT_VARIABLE":"Agregar variable de entorno","KEY_IN_RESOURCE":"Seleccionar clave","LABEL_TYPE":"{label} ({type})","RESOURCE":"Resource","CREATE_CONFIGMAP_SECRET_DESC":"If no configmap or secret meets the requirements, you can","CREATE_CONFIG":"create a configmap","OR":"or","CREATE_SECRET":"create a secret.","DEFAULT_REPOSITORY":"Default Registry","SET_DEFAULT_REPOSITORY":"Set Default Registry","SET_AS_DEFAULT_REPOSITORY_DESC":"Set the image registry as the default image registry. Unless otherwise specified, the system uses images from the default image registry to create application workloads. Only one default image registry is allowed in each project.","SET_AS_DEFAULT_REPOSITORY":"Set as Default","SET_DEFAULT_REPO_SUCCESSFUL":"Default repository set successfully","CONTAINER_SECURITY_CONTEXT":"Contexto de seguridad del contenedor","CONTAINER_SECURITY_CONTEXT_DESC":"Un contexto de seguridad define la configuración de privilegios y control de acceso para un Pod o Contenedor.","PRIVILEGED_MODE":"Privilegiado","PRIVILEGED_MODE_DESC":"El proceso en el contenedor es esencialmente equivalente al usuario raíz en el nodo host.","ALLOW_PRIVILEGE_ESCALATION":"AllowPrivilegeEscalation","ALLOW_PRIVILEGE_ESCALATION_DESC":"Si el proceso puede adquirir más privilegios que el proceso padre. Cuando se ejecuta en modo privilegiado, está habilitado.","ROOT_DIRECTORY_READONLY":"ReadOnlyRootFilesystem","ROOT_DIRECTORY_READONLY_DESC":"Si la ruta raíz del sistema de archivos del contenedor es de solo lectura.","USER_AND_USER_GROUP":"Usuario y grupo de usuarios","USER_GROUP":"Grupo de usuario","RUN_AS_NON_ROOT":"Ejecutar como no root","RUN_AS_NON_ROOT_DESC":"kubernetes realizará una comprobación antes de ejecutar el contenedor para asegurarse de que el proceso del contenedor no se esté ejecutando como usuario raíz (UID 0); de lo contrario, el contenedor no se iniciará.","RUN_AS_USER_DESC":"El UID para ejecutar el punto de entrada del proceso contenedor. El valor predeterminado es el usuario especificado en los metadatos de la imagen si no se especifica.","RUN_AS_USER_GROUP_DESC":"El GID para ejecutar el punto de entrada del proceso contenedor. Utiliza el tiempo de ejecución predeterminado si no está configurado.","SELINUX_CONTEXT":"SELinux Context","CAPABILITIES":"Capabilities","DROP":"Drop","ACCESS_CONTROL":"Control de acceso","LEVEL":"Nivel","SYNC_HOST_TIMEZONE_DESC":"El timezone del contenedor será consistente con el del host después de la sincronización.","SYNC_HOST_TIMEZONE":"Synchronize Host Timezone","UPDATE_STRATEGY":"Actualizar estrategia","ROLLING_UPDATE_RECOMMENDED":"RollingUpdate (recomendado)","SIMULTANEOUS_UPDATE":"Recrear","ROLLINGUPDATE_DESC":"Una actualización continua significa que la instancia de la versión anterior se reemplazará gradualmente por otras nuevas. Durante el proceso de actualización, el tráfico se equilibrará con la carga y se distribuirá a las instancias antiguas y nuevas simultáneamente, por lo que el servicio no se interrumpirá.","SIMULTANEOUS_UPDATE_DESC":"Todos los Pods existentes serán eliminados antes de que se creen otros nuevos. Tenga en cuenta que el servicio se interrumpirá durante el proceso de actualización.","ENTER_INTEGER_OR_PERCENTAGE":"Introduce el valor","MAX_EXTRA_EMPTY":"Please set the maximum number of extra Pod replicas allowed during the update process.","POD_SECURITY_CONTEXT":"Contexto de seguridad de pod","POD_SECURITY_CONTEXT_DESC":"Customize the Pod privilege settings.","POD_SECURITY_CONTEXT_TIP":"Contexto de seguridad de pod puede proporcionar configuraciones predeterminadas de usuarios y grupos de usuarios y configuraciones de parámetros seLinuxOptions para contenedores en el pod. Si estos parámetros se han definido en el contenedor, la configuración en el contenedor tiene prioridad.","POD_SCHEDULING_RULES":"Pod Assignment Strategy","POD_SCHEDULING_RULES_DESC":"You can specify rules for pod scheduling","DEFAULT_RULES":"Default Rules","DEFAULT_RULES_DESC":"Schedules the Pod replicas to nodes according to default rules.","DECENTRALIZED_SCHEDULING":"Despliegue descentralizado de pod","CUSTOM_RULES":"Custom Rules","CUSTOM_RULES_DESC":"Las réplicas de pod se implementarán de acuerdo con la política predeterminada.","DECENTRALIZED_SCHEDULING_DESC":"Las réplicas de pod se implementarán en diferentes nodos tanto como sea posible.","CENTRALIZED_SCHEDULING_DESC":"Las réplicas de pod se implementarán en el mismo nodo tanto como sea posible.","CENTRALIZED_SCHEDULING":"Implementación de agregación de pod","SCHEDULE_WITH_TARGET":"Deploy with target","SCHEDULE_AWAY_FROM_TARGET":"Schedule away from target","MATCH_IF_POSSIBLE":"Match if possible","MUST_MATCH":"Must match","TARGET":"Target","STRATEGY":"Strategy","POD_GRACE_PERIOD":"Pod Grace Period","POD_GRACE_PERIOD_DESC":"Set the waiting time before Pod terminates, after which Pod will be forcibly terminated.","TERMINATION_GRACEPERIOD_SECONDS":"Termination GracePeriod Seconds (s)","ADD_METADATA":"Agregar metadatos","POD_ADD_METADATA_DESC":"Add metadata to the Pod replicas.","STORAGE_SETTINGS":"Storage Settings","READ_ONLY_LOW":"read-only","READ_AND_WRITE_LOW":"read and write","MOUNT_VOLUME":"Mount Volume","WORKLOAD_MOUNT_VOLUME_DESC":"Mount an persistent volume, temporary volume, or HostPath volume to the containers.","SELECT_PERSISITENT_VOLUME_CLAIM":"Select Persistent Volume Claim","SELECT_PERSISITENT_VOLUME_CLAIM_DESC":"Mount a persistent volume created according to the persistent volume claim to the containers.","CAPACITY":"Capacidad","PVC_NOT_SELECT":"Please select a persistent volume claim.","TEMPORARY_VOLUME":"Volumen Temporal","VOLUME_NAME":"Nombre del volumen","VOLUME_NAME_EMPTY":"Por favor introduce el nombre del volumen","HOST_PATH_EMPTY":"Por favor introduce el ruta del host del volumen","CONTAINER_NOT_SELECTED":"Selecciona al menos un contenedor para montar","NOT_MOUNT":"No montado","HOSTPATH_VOLUME":"HostPath Volume","HOSTPATH_TIP":"Un volumen de tipo HostPath montará un fichero o directorio del sistema de ficheros del nodo host en tu Pod. La mayoría de Pods no lo necesitarán, pero puede resultar muy útil para algunas aplicaciones.","HOST_PATH":"Host Path","READ_AND_WRITE":"Lectura y escritura","READ_ONLY":"Solo lectura","MOUNT_CONFIGMAP_OR_SECRET":"Monte ConfigMap o Secret","MOUNT_CONFIGMAP_OR_SECRET_DESC":"Monte el configmap o secret en el directorio especificado.","CONFIGMAP":"ConfigMap","SELECT_CONFIGMAP_DESC":"Agregue un nuevo volumen desde el valor de ConfigMap.","READ_WRITE_MOUNT_EMPTY":"Especifique el modo de lectura y escritura y la ruta de montaje","SELECT_SPECIFIC_KEYS":"Seleccionar claves y caminos específicos","SELECT_SPECIFIC_KEYS_DESC":"Selecciona la clave que desea usar y la ruta del archivo donde se expondrá cada clave. La ruta del archivo es equivalente a la ruta de montaje. El contenido de cada archivo es el valor de la clave.","SELECT_SECRET_DESC":"Agregue un nuevo volumen desde el valor Secreto.","CONFIGMAP_NOT_SELECT":"Por favor selecciona un mapa de configuración","SECRET_NOT_SELECT":"Por favor selecciona un secreto","NO_AVAILABLE_RESOURCE":"No hay recursos disponibles","SELECT_NODES":"Establecer política de programación de nodos","SELECT_NODES_DESC":"Puede permitir que las réplicas de Pod se ejecuten en nodos específicos.","ADD_NODE_SELECTOR":"Agregar selector de nodo","ADD_METADATA_DESC":"Add metadata to resources.","KEY":"Clave","VALUE":"Valor","ADVANCED_SETTINGS":"Ajustes avanzados","DUPLICATE_LABELS":"Duplicate labels cannot be added.","WORKLOAD_SPECIFY_NODE_DESC":"Assign Pod replicas to a specific node.","CLUSTER_DIFF":"Cluster Differences","CLUSTER_DIFF_CONTAINER_SETTINGS_DESC":"Establecer diferentes contenedores en diferentes grupos según las necesidades","CLUSTER_DIFF_PORT_SETTINGS_DESC":"Se pueden configurar diferentes puertos de servicio en diferentes grupos","CLUSTER_DIFF_ENVIRONMENT_VARIABLES_DESC":"Se pueden configurar diferentes entornos de contenedores en diferentes grupos","CONTAINER_IMAGE":"Container Image","ROUTE_ADD_METADATA_DESC":"Add metadata to the Route.","SELECT_INGRESSCLASSNAME":"Select IngressClassName","ACCESS_INFORMATION":"Acceso al servicio","VIRTUAL_IP_ADDRESS":"Virtual IP address","INTERNAL_DOMAIN_NAME_SCAP":"Método de acceso dentro del clúster (DNS)","NODE_PORT_SCAP":"Node port","SERVICE_TYPE_TCAP":"Tipo de servicio","SELECT_SERVICE_TYPE":"Select Service Type","ADD_PORT":"Agregar puerto","EMPTY_LABEL_DESC":"Please add a label.","SPECIFY_NODE":"Especificar nó","SPECIFY_NODE_DESC":"Especifique um nó que precisa ser associado ao serviço.","MAXIMUM_STICKINESS_DURATION_DESC":"Set a maximum stickiness duration. The value range is 0 to 86400 and the default value is 10800.","SERVICE_ADD_METADATA_DESC":"Add metadata to the Service.","STATEFULSET_EMPTY_DESC":"Please create a StatefulSet.","POD_SETTINGS":"Pod Settings","POD_REPLICAS":"Réplicas de pod","ONDELETE":"OnDelete","ONDELETE_DESC":"El controlador no actualizará automáticamente el Pod. Se actualizará y reemplazará las instancias del Pod cuando el Pod se elimine manualmente.","PARTITION_ORDINAL":"Ordinal for Dividing Pod Replicas","PARTITION_ORDINAL_DESC":"Set an ordinal to divide the Pod replicas into two groups. When the StatefulSet is updated, only Pod replicas with an ordinal greater than or equal to the value of this parameter are updated.","PVC_NAME_PREFIX":"PVC Name Prefix","PVC_NAME_PREFIX_DESC":"Prefix of persistent volume claim names. The prefix can contain only lowercase letters, numbers, and hyphens (-), and must start and end with a lowercase letter or number. The maximum length is 253 characters.","PVC_NAME_PREFIX_EMPTY":"Please enter the prefix of persistent volume claim names.","INVALID_PVC_NAME_PREFIX":"Invalid prefix. The prefix can contain only lowercase letters, numbers, and hyphens (-), and must start and end with a lowercase letter or number. The maximum length is 253 characters.","PVC_NAME_PREFIX_EXISTS":"The prefix already exists. Please enter another prefix.","ADD_PERSISTENT_VOLUME_CLAIM_TEMPLATE":"Add Persistent Volume Claim Template","ADD_PERSISTENT_VOLUME_CLAIM_TEMPLATE_DESC":"Add a persistent volume claim template to mount a persistent volume to each pod of the statefulset.","VOLUME_CAPACITY_TCAP":"Capacidad de volumen","MOUNT_PATH_TCAP":"Mount Path","VOLUME_TEMPLATES":"Plantillas de volumen","SERVICE_PORT":"Puerto de servicio","SERVICE_PORT_VALUE":"Puerto de servicio: {value}","VOLUME_TEMPLATE_SETTINGS":"Volume Template Settings","CLUSTER_VOLUME_DIFF_DESC":"You can specify different storage classes for different clusters.","CONFIGMAP_EMPTY_DESC":"Please create a configmap.","MULTI_CLUSTER_PROJECT_EMPTY_DESC":"Los proyectos se agruparán por sus recursos, que puedes ver y administrar por proyecto.","MULTI_CLUSTER_PROJECT_LOW":"Proyecto de clúster múltiple","MULTI_CLUSTER_PROJECT_SCAP":"Multi-cluster project","VOLUME_MONITORING_TIP":"The storage system needs to have real volume quota control capabilities to output real and accurate data. Storage systems built based on host path, local pv, and open source nfs server usually do not have this capability. Daha Fazla Bilgi Edinin","MOUNT_INFORMATION":"Información de montaje","VOLUME_ADD_METADATA_DESC":"Add metadata to the volume.","PROJECT_NAME":"Nombre del proyecto","NO_REQUEST_TCAP":"No Request","NO_LIMIT_TCAP":"No Limit","CPU_REQUEST_LOW":"CPU request","CPU_LIMIT_LOW":"CPU limit","CPU_REQUEST_CORE":"{value} Core","CPU_LIMIT_CORE":"{value} Core","MEMORY_REQUEST_MIB":"{value} Mi","MEMORY_LIMIT_MIB":"{value} Mi","DELETE_PROJECT":"Delete Project","CREATION_TIME":"Creation time","FOLD":"Plegar","UNFOLD":"Desplegar","PLATFORM":"Platform","CLUSTER_MANAGEMENT":"Cluster Management","CLUSTER_DESC":"Unified management of multiple clusters and their basic resources, components, and application resources.","ACCESS_CONTROL_DESC":"Gestión unificada de espacios de trabajo, cuentas y acceso a roles.","APP_STORE_MANAGEMENT_DESC":"Gestión unificada del ciclo de vida de aplicaciones cloud nativas, incluida su publicación, eliminación y revisión","PLATFORM_SETTINGS_DESC":"Configuración de plataforma personalizada, que incluye información básica y recopilador de registros","NOTIFICATION_MANAGEMENT":"Gestión de notificaciones","NOTIFICATION_CHANNELS":"Notification Channels","NOTIFICATION_CHANNELS_DESC":"Notify users through multiple channels when resource metrics meet conditions configured in rule groups.","MAIL_TITLE":"Email","MAIL_DESC":"Send notifications to email addresses.","INVALID_PORT_DESC":"Please enter a valid port number.","ENTER_PORT_NUMBER":"Please enter a port number.","ALERTING_NAME":"Nombre de la alerta","ALERTING_SEVERITY":"Gravedad de alerta","ADDRESS_EMPTY_DESC":"Please enter an address.","EMAIL_EMPTY_DESC":"Por favor introduce el correo electrónico","SERVER_SETTINGS":"Configuración del servidor","RECIPIENT_SETTINGS":"Configuración del receptor","FILTER_CONDITIONS":"Filter Conditions","CONTAINER":"Container","VALUES":"Values","CONDITION_OPERATOR":"Operador","NOTIFICATION_CONDITION_SETTING_TIP":"The Contain and Not contain operators require one or more values. You can press Enter to set multiple values.","NOTIFICATION_CONDITION_SETTINGS_DESC":"Set the system to send only alerts that meet the conditions.","CONTAIN":"Contain","NOT_CONTAIN":"Not contain","EXIST":"Exist","NOT_EXIST":"Not exist","PATTERN_TAG_INVALID_TIP":"Invalid label. The label can contain only uppercase and lowercase letters, numbers, hyphens (-), underscores (_), and dots (.), and must begin and end with an uppercase or lowercase letter or number.","PATTERN_TAG_VALUE_INVALID_TIP":"Invalid value. The value can only contain uppercase and lowercase letters, numbers, hyphens (-), underscores (_) and dots (.) and must begin and end with an uppercase or lowercase letter or number and be a maximum of 63 characters.","INVALID_NOTIFICATION_CONDITION":"Please enter a correct notification condition.","SEND_TEST_MESSAGE":"Enviar mensaje de prueba","SEND_TEST_MESSAGE_DESC":"Send a test message to verify that the notification channel is working properly.","SEND_TEST_MESSAGE_SUCCESS_DESC":"Verified successfully. A test message has been sent.","SMTP_SERVER_ADDRESS":"Dirección del servidor SMTP","USE_SSL_SECURE_CONNECTION":"Use SSL secure connection","SENDER_EMAIL":"Correo del remitente","INVALID_EMAIL":"Email inválido","INVALID_ADDRESS_DESC":"Please enter a valid address.","MAX_EAMIL_COUNT":"You can add a maximum of {count} emails.","SMTP_USER":"SMTP Username","SMTP_PASSWORD":"SMTP Password","ENTER_PASSWORD_TIP":"Please enter a password.","ENTER_RECIPIENT_EMAIL_DESC":"Please add at lease one email address.","INVALID_EMAIL_ADDRESS_DESC":"Incorrect email format.","SMTP_USER_EMPTY_DESC":"Please enter an SMTP username.","ADDED_SUCCESS_DESC":"Added successfully.","POD":"Pod","UPDATE_SUCCESSFUL":"Updated successfully.","FEISHU":"Feishu","FEISHU_TITLE":"Feishu","FEISHU_DESC":"Send notifications to Feishu users.","PLEASE_ENTER_APP_ID":"Please enter an app ID.","USER_ID":"User ID","DEPARTMENT_ID":"Department ID","FEISHU_RECEIPIENT_SETTINGS_DESC":"To receive notifications, please set at least one user ID or department ID.","FEISHU_SECRET":"Secreto","DINGTALK_TITLE":"DingTalk","DINGTALK":"DingTalk","DINGTALK_DESC":"Send notifications to DingTalk users.","PLEASE_ENTER_APP_KEY":"Please enter an app key.","PLEASE_ENTER_APP_SECRET":"Please enter an app secret.","PLEASE_ENTER_CHAT_ID":"Please enter a chat ID.","PLEASE_ENTER_WEBHOOK_URL":"Please enter a webhook URL.","CHAT_SETTINGS":"Chat Settings","CHAT_ID_TIP":"Contact the DingTalk administrator to obtain the chat ID.","DINGTALK_SETTING_TIP":"Please set up a chat or group chatbot.","ENTER_CHAT_ID_DESC":"Please enter a chat ID.","MAX_CID_COUNT":"You can add a maximum of {count} chat IDs.","CHAT_ID_EXISTS":"The chat ID already exists. Please add another chat ID.","CHATBOT_SETTINGS":"Chatbot Settings","KEYWORDS_LIST":"Added Keywords","DINGTALK_CHATBOT_SECURITY_TIP":"Please enter a secret or keyword.","ENTER_KEYWORD_DESC":"Please enter a keyword.","MAX_KEYWORD_COUNT":"You can add a maximum of {count} keywords.","KEYWORD_EXISTS":"The keyword already exists. Please add another keyword.","EMPTY_KEYWORDS_DESC":"No keyword is added.","WECOM":"WeCom","WECOM_TITLE":"WeCom","WECOM_DESC":"Send notifications to WeCom users.","RECIPIENT_SETTINGS_TIP":"Enter at least one user ID, department ID, or tag ID.","ENTER_WECOM_CORP_ID_DESC":"Please enter a corp ID.","ENTER_WECOM_AGENT_ID_DESC":"Please enter an app agent ID.","ENTER_WECOM_SECRET_DESC":"Please enter an app secret.","TOUSER_LIST":"Added User IDs","EMPTY_TOUSER_DESC":"No user ID is added.","ENTER_TOUSER_TIP":"Please enter a user ID.","TOUSER_EXISTS":"The user ID already exists. Please enter another user ID.","MAX_TOUSER_COUNT":"You can add a maximum of {count} user IDs.","TOPARTY_LIST":"Added Department IDs","EMPTY_TOPARTY_DESC":"No department ID is added.","ENTER_TOPARTY_TIP":"Please enter a department ID.","TOPARTY_EXISTS":"The department ID already exists. Please enter another department ID.","MAX_TOPARTY_COUNT":"You can add a maximum of {count} department IDs.","TOTAG_LIST":"Added Tag IDs","EMPTY_TOTAG_DESC":"No tag ID is added.","ENTER_TOTAG_TIP":"Please enter a tag ID.","TOTAG_EXISTS":"The tag ID already exists. Please enter another tag ID.","MAX_TOTAG_COUNT":"You can add a maximum of {count} tag IDs.","ATUSERS_LIST":"Added User ID","EMPTY_ATUSERS_DESC":"No user ID is added.","WHIZARD_NOTIFICATION.PHONE_NUMBER":"手機號","ATMOBILES_LIST":"Mobiles","EMPTY_ATMOBILES_DESC":"No Mobile is added.","SLACK":"Slack","SLACK_TITLE":"Slack","SLACK_DESC":"Send notifications to Slack users.","SLACK_TOKEN":"Slack Token","SLACK_TOKEN_DESC":"Please enter a Slack token.","SLACK_CHANNEL":"Slack Channel","CHANNEL_SETTINGS":"Slack Channel Settings","ADDED_CHANNELS":"Added Slack Channels","EMPTY_CHANNEL_DESC":"No Slack channel is added.","ADD_CHANNEL_TIP":"Please add a Slack channel.","CHANNEL_EXISTS":"The Slack channel already exists. Please add another Slack channel.","MAX_CHANNEL_COUNT":"You can add a maximum of {count} Slack channels.","WEBHOOK":"Webhook","WEBHOOK_TITLE":"Webhook","WEBHOOK_DESC":"Send notifications to a webhook.","WEBHOOK_URL_DESC":"Please enter a webhook URL.","AUTHENTICATION_TYPE":"Authentication Type","AUTHENTICATION_TYPE_DESC":"Please select an authentication type.","SKIP_TLS_VERFICATION":"Skip TLS verification (insecure)","BASIC_AUTH":"Basic authentication","NO_AUTH":"No authentication","BEARER_TOKEN":"Bearer token","TOKEN":"Token","WEBHOOK_USERNAME_EMPTY_DESC":"Por favor introduce el nombre de usuario","WEBHOOK_PASSWORD_EMPTY_DESC":"Please enter a password.","WEBHOOK_TOKEN_EMPTY_DESC":"Please enter a token.","PLATFORM_INFO_DESC":"Overview of the platform information. You can view and customize the platform information.","HOW_TO_MODIFY_PLATFORM_INFO":"¿Cómo modificar la información de la plataforma?","PLATFORM_INFORMATION":"Información de la plataforma","PLATFORM_DESCRIPTION":"Descripción de la plataforma","PLATFORM_TITLE":"Título de plataforma","PLATFORM_ADDRESS":"Platform address","PLATFORM_SETTINGS":"Configuración de la plataforma","ADD_SERVICE":"Agregar servicio","ADD_ROUTE":"Add Route","SERVICE_ADDED_SUCCESSFULLY":"The service was added successfully.","WORKLOAD_TYPE_DEPLOYMENTS":"Deployment","WORKLOAD_TYPE_DAEMONSETS":"DaemonSet","WORKLOAD_TYPE_STATEFULSETS":"StatefulSet","TRAFFIC_MONITORING":"Monitor de tráfico","TRAFFIC_MONITORING_UNAVAILABLE_DESC":"La aplicación no ha recibido una solicitud durante mucho tiempo, visita la aplicación y prueba el gestor de tráfico","TRAFFIC_ENTRY":"Entrada de tráfico","NO_DATA":"Sin datos","REFRESH":"Refrescar","SUCCESS_RATE":"Success rate","TRAFFIC_RPS":"Traffic (RPS)","BANDWIDTH":"Bandwidth","HTTP_INBOUND_TRAFFIC":"HTTP Inbound Traffic","HTTP_OUTBOUND_TRAFFIC":"HTTP Outbound Traffic","TRAFFIC_POLICIES":"Traffic Policies","LOAD_BALANCING":"Load Balancing","LOAD_BALANCING_ALGORITHM":"Load Balancing Algorithm","LB_UNSPECIFIED":"Unspecified","LB_LEAST_REQUEST":"Least Request","LB_PASSTHROUGH":"Pass Through","LB_ROUND_ROBIN":"Round robin","LB_LEAST_CONN":"Least connection","LB_RANDOM":"Random","LB_ALG_DESC":"Round robin: Distributes client requests to backends in rotation.
    Least connection: Randomly selects two healthy backends and sends client requests to the one with fewer connections.
    Random: Sends client requests to a backend randomly selected from all healthy backends.","HASH_BASED_ON_HTTP_HEADER":"Hash based on HTTP header","HASH_BASED_ON_HTTP_COOKIE":"Hash based on HTTP cookie","HASH_BASED_ON_SOURCE_IP_ADDRESS":"Hash based on source IP address","HTTP_HEADER":"HTTP Header","HTTP_COOKIE":"HTTP Cookie","CONNECTION_POOL":"Connection Pool","CONNECTION_POOL_TIP":"Creates a fixed number of connection objects for the application and stores them in a connection pool for reuse. A connection object is retrieved from the connection pool for each request and returned to the pool after use.","MAXIMUM_CONNECTIONS":"Maximum Connections","MAXIMUM_CONNECTIONS_DESC":"Maximum of number of HTTP1 or TCP connections to a destination backend.","MAXIMUM_REQUESTS_PER_CONNECTION":"Maximum Requests per Connection","MAXIMUM_REQUESTS_PER_CONNECTION_DESC":"Maximum number of requests per connection to a backend.","TRAFFIC_MONITORING_MAXIMUM_RETRIES":"Límite de retroceso","TRAFFIC_MONITORING_MAXIMUM_RETRIES_DESC":"Maximum number of retries for requests.","CONNECTION_TIMEOUT":"Connection Timeout","CONNECTION_TIMEOUT_DESC":"TCP connection timeout period.","MAXIMUM_REQUESTS":"Maximum Requests","MAXIMUM_PENDING_REQUESTS":"Maximum Pending Requests","CIRCUIT_BREAKER":"Circuit Breaker","CIRCUIT_BREAKER_DESC":"If a service cannot be accessed and the specified criteria are met, the ciruit breaker marks the service as unavailable and returns error response to clients directly for a specified period of time.","CONSECUTIVE_FIVEXX_ERRORS":"Consecutive 5XX Errors","CONSECUTIVE_FIVEXX_ERRORS_DESC":"Number of 5XX errors before a backend is ejected from the connection pool.","INSPECTION_INTERVAL_S":"Inspection Interval (s)","INSPECTION_INTERVAL_S_DESC":"Interval between two backend inspections.","MAXIUM_EJECTION_RATIO":"Maximum Ejection Ratio (%)","MAXIUM_EJECTION_RATIO_DESC":"Maximum percentage of backends that can be ejected.","BASE_EJECTION_TIME_S":"Base Ejection Time (s)","BASE_EJECTION_TIME_S_DESC":"Maximum ejection duration.","UPDATED_AT_VALUE_SCAP":"Updated at {value}","METHOD":"Method","TRAFFIC_MANAGEMENT_UNAVAILABLE":"Traffic Management Unavailable","APPLICATION_GOVERNANCE_NOT_ENABLED":"Please enable Application Governance.","CREATE_GRAYSCALE_RELEASE_TASK":"Create Grayscale Release Task","GRAYSCALE_RELEASE_DESC":"Grayscale release represents an important method of application iteration in the production environment. You can choose different release methods for the smooth transition as you upgrade your applications to a new version.","NO_GRAYSCALE_RELEASE_TASK_FOUND":"No Grayscale Release Task Found","NO_GRAYSCALE_RELEASE_TASK_FOUND_DESC":"Please create a grayscale release job.","TYPE_SERVICE_DEPLOYMENT":"Type: stateless service (deployment)","TYPE_SERVICE_STATEFULSET":"Type: stateful service (statefulset)","TRACING":"Tracing","TRACING_NO_DATA_DESC":"Por favor prueba otras condiciones en la consulta","NUM_SPAN_SI":"{num} span","NUM_SPAN_PL":"{num} spans","NUM_ERROR_SI":"{num} error","NUM_ERROR_PL":"{num} errors","LAST_NUM_RECORDS":"Últimos {num} registros","PROCESS":"Process","SERVICES_AND_OPERATIONS":"Services & Operations","TRACING_UNAVAILABLE":"Tracing Unavailable","CALLED_SERVICES":"Called Services","CALLED_DEPTH":"Call Depth","COMPOSED_APP_PL":"Aplicación por composición","NO_COMPOSED_APP_FOUND":"No Composed App Found","COMPOSED_APP_EMPTY_DESC":"Puedes publicar servicios para crear aplicaciones a través de la orquestación de recursos (compatible con la gestión de aplicación).","STATEFUL_SERVICE":"Stateful Service","STATELESS_SERVICE":"Stateless Service","CREATE_COMPOSED_APP":"Crear aplicación por composición","SAVE_FORM_TIP":"Por favor guarda el formulario actual primero","YAML_FILE":"YAML File","CREATE_BY_YAML_DESC":"Customize the settings in the YAML file.","APPLICATION_GOVERNANCE":"Gestión de aplicación","VERSION_DESC":"Para gestión, ayudándote a distinguir entre componentes. Solo puede contener letras minúsculas y números. La longitud máxima de caracteres se establece en 16.","APPLICATION_GOVERNANCE_DESC":"Enable Application Governace to use the Traffic Monitoring, Grayscale Release, and Tracing features for the app.","APP_BASIC_INFORMATION_DESC":"Información básica de la aplicación (como la descripción)","APP_SELECT_SERVICE_TYPE_DESC":"Create a stateless or stateful Service.","STATEFUL_SERVICE_DESC":"Los servicios con estado o stateful se usan para administrar aplicaciones con estado, asegurando un despliegue y escala ordenada y elegante. También proporcionan almacenamiento persistente estable e identificadores de red.","STATELESS_SERVICE_DESC":"El servicio más utilizado en servicios de contenedores. Define la plantilla del Pod para controlar el estado del Pod, incluidas las actualizaciones continuas y los retrocesos.","APPLICATION_SERVICE_DESC":"Puedes configurar diferentes componentes de servicio basándote en el tipo de servicio dentro de una aplicación. Tanto los servicios con estado como los sin estado están soportados.","APP_CREATE_SERVICE_DESC":"Create a service for the app.","ROUTE_SETTINGS":"Route Settings","ROUTING_RULES":"Reglas de ruta","ROUTE_SETTINGS_DESC":"Puedes definir las reglas de acceso a internet para la aplicación (Ingress).","ADD_ROUTE_SUCCESS":"The route was added successfully.","CURRENT_APP_SETTINGS_READONLY":"Current App Config","TARGET_APP_SETTINGS":"Target App Settings","TARGET_APP_VERSION":"Target App Version","CURRENT_APP_VERSION":"Versión actual de la aplicación","EDIT_APP_SETTINGS":"Edit App Settings","UPDATED_TIME":"Updated at {value}","APP_TEMPLATE":"App Template","NO_APP_DESC_FOUND":"La aplicación no tiene documentación.","TEMPLATE_BASED_APP_PL":"Template-Based Apps","APPLICATIONS_DESC":"Una aplicación proporciona a los usuarios funciones comerciales integrales en un solo paquete. Las plantillas de aplicación en KubeSphere se basan en la especificación de empaquetado de Helm. Se entregan a través de un repositorio Helm público o privado unificado. Una aplicación está compuesta por uno o más objetos de Kubernetes, que incluyen workload, servicios e ingress.","APP_PL":"Aplicaciones","APP_TYPES_Q":"tipo de aplicacion","APP_TYPES_A":"KubeSphere admite implementaciones de aplicaciones (basadas en Helm) desde App Store, así como Application CRD.","HOW_TO_USE_APP_GOVERN_Q":"¿Cómo usar la Gestión de aplicaciones?","HOW_TO_USE_APP_GOVERN_A":"Cree una aplicación por composición y habilite la gestión de servicios para cada servicio antes de utilizar la gestión de aplicaciones.","DEPLOY_SAMPLE_APP":"Implementar aplicación de demo","NO_TEMPLATE_BASED_APP_FOUND":"No Template-Based App Found","TEMPLATE_BASED_APP_EMPTY_DESC":"Please create an app from the KubeSphere App Store or an app template.","APP":"App","VERSION":"Versión","CREATING":"Creating","UPGRADING":"Created","DELETING":"Eliminando","CREATE_APP":"Desplegar nueva aplicación","CREATE_APP_DESC":"La liviana, portátil y autónoma tecnología de empaquetado de software permite que las aplicaciones se ejecuten en casi cualquier lugar de la misma manera.","FROM_APP_STORE":"Desde la tienda de aplicaciones","FROM_APP_TEMPLATE":"Desde plantillas de aplicaciones","FROM_APP_STORE_DESC":"Desde la tienda de aplicaciones oficial de KubeSphere con aplicaciones de alta calidad y despliegues fáciles.","SELECT_APP_REPOSITORY":"Select app repository","CURRENT_WORKSPACE":"Del espacio de trabajo","FROM_APP_TEMPLATE_DESC":"Desde las plantillas de aplicación del espacio de trabajo y las plantillas de aplicaciones Helm de terceros del repositorio de aplicaciones.","APP_TEMPLATES_MODAL_DESC":"La plantilla de la aplicación proviene del espacio de trabajo y las plantillas de aplicación de Helm de terceros. Admite el despliegue con un click y se puede visualizar en KubeSphere para mostrar y proporcionar despliegues y funciones de administración.","APP_LOW":"app","CRONJOBS":"Cronjobs","CRONJOB_DESC":"CronJobs manages Jobs on a time-based schedule and can be used to perform periodic or recurring tasks.","CRONJOB_PAUSED":"Pausado","CRONJOB_RUNNING":"En ejecución","CRONJOB_FAILED":"Failed","SCHEDULE":"Schedule","ENTER_SCHEDULE_TIP":"Please select a schedule.","CRONJOB_CRON_DESC":"Set a schedule for the CronJob. KubeSphere uses UTC by default and you need to adjust the schedule according to your time zone.","MAXIMUM_DELAY":"Maximum Start Delay (s)","SUCCESSFUL_JOBS_RETAINED":"Success Records","FAILED_JOBS_RETAINED":"Failed Jobs Record","CONCURRENCY_POLICY":"Concurrency Policy","MAXIMUM_DELAY_DESC":"Deadline for starting the Job if the scheduled run is missed for any reason.","CONCURRENCY_POLICY_DESC":"Select a concurrency policy of a Job created by the CronJob.","FAILED_JOBS_RETAINED_DESC":"Specify the number of failed Jobs to be retained.","SUCCESSFUL_JOBS_RETAINED_DESC":"Specify the number of successful Jobs to be retained.","RUN_JOBS_CONCURRENTLY":"Run Jobs concurrently","SKIP_NEW_JOB":"Skip new Job","SKIP_OLD_JOB":"Skip old Job","STRATEGY_SETTINGS":"Strategy Settings","MAXIMUM_RETRIES":"Límite de retroceso","MAXIMUM_RETRIES_DESC":"Maximum number of retries before the Job is marked as failed. The default value is 6.","PARALLEL_PODS_DESC":"Number of Pods that run concurrently.","COMPLETE_PODS_DESC":"Number of Pods that complete successfully required for the Job to be marked as complete.","MAXIMUM_DURATION_DESC":"Maximum duration of the Job. The Job is terminated when it reaches the specified deadline.","PARALLEL_PODS":"Paralelismo","COMPLETE_PODS":"Terminaciones","MAXIMUM_DURATION":"Active Deadline (s)","RESTART_POLICY":"Política de reinicio","RESTART_POLICY_DESC":"Set the Pod restart policy.","CRONJOB_PL":"CronJobs","CRONJOB_LOW":"CronJob","REVISION_RECORDS_DESC":"Después de cambiar la plantilla de recursos de la carga de trabajo, se generará un nuevo registro y los pods se reprogramarán para la actualización de la versión. Las últimas 10 versiones se guardarán de forma predeterminada. Puede implementar una redistribución basada en el registro de cambios.","ENVIRONMENT_VARIABLE":"Variables de entorno","CONTAINER_SETTINGS_DESC":"Establece el nombre del contenedor y los recursos de computación.","PORT_SETTINGS_DESC":"Establece la política de acceso para el contenedor.","HEALTH_CHECKER_DESC":"La salud del contenedor se verificará periódicamente de acuerdo con las necesidades del usuario.","STARTUP_COMMAND":"Comando de inicio","STARTUP_COMMAND_DESC":"Por defecto, el contenedor ejecuta el comando de imagen predeterminado. Puedes cambiar el comando del contenedor desde aquí.","CONTAINER_COMMAND_DESC":"El comando de inicio del contenedor. Por defecto, se utilizará el comando de inicio para empaquetar. Utiliza comas para separar múltiples comandos.","CONTAINER_ARGUMENT_DESC":"Los parámetros del comando de inicio del contenedor. Utiliza comas para separar varios.","CONTAINER_ENVIRONMENT_DESC":"Añade la variable de entorno del contenedor.","PROBE_COMMAND_DESC":"Utiliza comas para separar múltiples comandos.","IGNORE_CERT_WARN_DESC":"Ignoring the verification certificate may cause the account password to be disclosed. ","CERT_ERROR":"A certificate error was found, do you want to ignore the certificate verification","ROLL_BACK":"Revisión de Rollback","CURRENT_REVISION_RECORD":"Revisión actual","TARGET_REVISION_EMPTY_DESC":"Por favor selecciona revisión de reversión","TARGET_REVISION_RECORD":"Revisiones de Rollback","CONFIGURE_AUTOSCALING_DESC":"Escala automática de las réplicas automáticamente de acuerdo con el uso de CPU y memoria. Si se especifican tanto la CPU como la memoria, las réplicas se agregan o eliminan después de que se cumpla alguna de las condiciones.","EDIT_AUTOSCALING":"Edit Autoscaling","TARGET_CPU_USAGE_UNIT":"Utilización de CPU","AUTOSCALING":"Autoescalado horizontal de pods","RESOURCE_NAME":"Nombre del recurso","TARGET_CPU_USAGE_DESC":"Las réplicas aumentarán cuando el uso de la CPU exceda este valor objetivo, por el contrario, disminuirá.","TARGET_MEMORY_USAGE_DESC":"Las réplicas aumentarán cuando el uso de la memoria exceda este valor objetivo, por el contrario, disminuirá.","MINIMUM_REPLICAS_DESC":"Valor mínimo de la cantidad de réplicas","MAXIMUM_REPLICAS_DESC":"Valor máximo del número de réplicas.","TARGET_MEMORY_USAGE_UNIT":"Uso de destino de memoria","MINIMUM_REPLICAS":"Número mínimo de réplicas","MAXIMUM_REPLICAS":"Número máximo de réplicas","EDIT_SETTINGS":"Editar plantilla de configuración","FROM_CONFIGMAP":"From configmap","FROM_SECRET":"From secret","BATCH_REFERENCE":"Batch Reference","BATCH_REFERENCE_DESC":"Reference multiple keys in a configmap or secret.","DESELECT_ALL":"Deselect all","KEY_PL":"Keys","RULE_NOT_COMPLETE":"Please set a complete rule.","REVISION_RECORDS":"Registros de revisión","CONFIG_FILE":"Fichero de configuración","COMPARE_WITH":"Comparación con la versión anterior {versión}","REPLICAS_DESIRED":"Esperadas","REPLICAS_CURRENT":"Réplicas actuales","ADJUST_REPLICAS":"¿Tiene efecto de inmediato?","REPLICAS_SCALE_NOTIFY_CONTENT":"Va a cambiar las réplicas de su carga de trabajo a {num}. Puede continuar cambiando el número de réplicas o puede hacer que el cambio surta efecto de inmediato.","REPLICAS_SCALE_NOTIFY_CONFIRM":"Aplicar cambios ({segundos} s)","REPLICAS_SCALE_NOTIFY_CANCEL":"Descartar los cambios","TARGET_MEMORY_USAGE":"Uso objetivo","TARGET_CPU_USAGE":"Utilización objetivo","TARGET_CURRENT":"{target} (Current: {current})","NOT_ENABLE":"{feature} no está habilitado","CONTAINER_LOG_NOT_ENABLED":"Container Log is not enabled.","BUILD_LOG":"Build Log","TASK":"Task","IN_PROGRESS":"in progress","IMAGE_BUILDING":"Image Building","HAS_FAILED":"has failed","VIEW_ALL_REPLICAS":"Ver todas las réplicas","SHOW_SELECTED_ONLY":"Mostrar solo seleccionados","MONITORING_SELECT_LIMIT_MSG":"Puedes seleccionar hasta diez recursos","MONITORING_ALERT_DESC":"El gráfico de monitoreo actual muestra cinco réplicas como máximo. Puede hacer clic en \"Ver todas las réplicas\" para ver más gráficos de monitoreo si el número de réplicas supera las cinco.","CURRENT_VALUE":"Current: {value}","ENVIRONMENT_VARIABLE_PL":"Variables de entorno","EVENT_AGE":"Occurred","EVENT_AGE_DATA":"{lastTime}
    ({count} times over {duration})","EVENT_AGE_DATA_TWICE":"{lastTime}
    (twice over {duration})","SOURCE":"Source","HPA_SET_TIP":"El Autoscaling Horizontal de Pods ha sido configurado","WORKLOAD_EMPTY_DESC":"La carga de trabajo suele ser el operador real para acceder a los servicios y también es el operador real para las aplicaciones del sistema, como la recopilación y supervisión de registros de nodos. Workload es también un modelo abstracto para un grupo de Pods.","INVALID_IMAGE":"Imagen inválida.","INVALID_NAME_DESC":"Invalid name. The name can contain only lowercase letters, numbers, and hyphens (-), and must start and end with a lowercase letter or number. The maximum length is 63 characters.","NO_IMAGE_FOUND":"No encontré esta imagen","CONTAINER_EMPTY_DESC":"Please add at least one worker container.","RESOURC_QUOTAS_UNSET":"Resource Quotas Unset","INSUFFICENT_RESOURCES":"Insufficent Resources","REMAINING_QUOTAS":"Remaining Quotas","ENVIRONMENT_INVALID_TIP":"The key of an environment variable can contain only letters, numbers, underscores (_), hyphens (-), and periods (.), and must not start with a number.","ENVIRONMENT_CANNOT_BE_EMPTY":"Please set a key for the environment variable.","WORKLOAD_PORT_NAME_DESC":"The port name can contain only lowercase letters, numbers and hyphens (-), and must start with a lowercase letter and end with a lowercase letter or number. The maximum length is 15 characters.","MAX_EXTRA_PODS_DESC":"El número máximo de pods permitido durante una actualización continua","MAX_EXTRA_PODS":"El número máximo disponible de pods","AVAILABLE":"En desuso","IN_USER":"En uso","ACCESS_MODE_SCAP":"Modo de acceso admitido","PVC_OR_TEMPLATE_EMPTY":"You have enabled Collect Logs on Volumes. Please add at least one persistent volume, temperary volume, or persistent volume claim template and specify the path of container logs.","PVC_EMPTY":"You have enabled Collect Logs on Volumes. Please add at least one persistent volume or temperary volume and specify the path of container logs.","PROJECT_COLLECT_SAVED_DISABLED_DESC":"Please contact the project administrator to enable disk log collection in Project Settings > Advanced Settings.","COLLECT_LOGS_ON_VOLUMES_DESC":"After you add a volume (ReadAndWrite mode), you can collect logs inside the volume. When you enable disk log collection, the Filebeat image will be used as a sidecar pattern and injected into the Pod to collect logs.","CONTAINER_LOG_PATH":"ruta relativa del registro de contenedor","CONTAINER_LOG_PATH_TIP":"La ruta relativa del registro del contenedor es la ruta desde la ruta de montaje del módulo, que se puede proporcionar en modo global. Cuando hay varios grupos, sepárelos por comas. Por ejemplo, cuando la ruta de montaje del pod es / data, la ruta relativa del registro de pod se configura como log / *. Log, lo que significa que todos los archivos de sufijos .log en el directorio / data / log coinciden. Si necesita hacer coincidir todos los archivos de sufijos .log en el directorio / data / log y sus subdirectorios, puede configurar la ruta relativa del registro de pod a log / ** / *. Log.","RECREATE_CONFIRM_DESC":"Está a punto de volver a implementar la carga de trabajo {resource} ({type}), el pod se volverá a implementar de acuerdo con la estrategia de actualización y su negocio puede verse interrumpido temporalmente.","NO_WORKLOAD_RELATED_RESOURCE_DESC":"No resource related to the workload is found.","SELECT_ALL":"Seleccionar todo","DELETE_WORKLOAD_DESC_SI":"You are about to delete the workload {resource}.
    Do you want to also delete the resource related to the workload?","DELETE_WORKLOAD_DESC_PL":"You are about to delete the workloads {resource}.
    Do you want to also delete the resources related to the workloads?","DELETE_WORKLOAD":"Delete Workload","DELETE_MULTIPLE_WORKLOADS":"Delete Multiple Workloads","DELETE_APP_RESOURCE_TIP":"The resource is managed by {app}, which may affect the normal use of this app if the resource is deleted. Please enter the {type} name {resource} to make sure you understand the risks associated with the operation.","STOP_APP_RESOURCE_TIP":"The resource is managed by {app}, which may affect the normal use of this app if the resource is stopped. Please enter the {type} name {resource} to make sure you understand the risks associated with the operation.","MORE":"Más","VIEW_YAML":"Ver YAML","JOB_PL":"Jobs","JOB_DESC":"Jobs are used to perform short-lived, one-off tasks. A Job creates one or more Pods and ensures that a specific number of Pods successfully terminate.","JOB_EMPTY_DESC":"Jobs are used to perform short-lived, one-off tasks. A Job creates one or more Pods and ensures that a specific number of Pods successfully terminate.","JOB_COMPLETED":"Completed","JOB_FAILED":"Failed","JOB_RUNNING":"En ejecución","LAST_RUN_TIME":"Last Run Time","RESTART_POLICY_NEVER_DESC":"Re-create pod","RESTART_POLICY_ONFAILURE_DESC":"On failure (restart the container when a Pod fails)","RERUN":"Repetición","JOB":"Trabajo","JOB_LOW":"Job","QOS_CLASS":"QoS Class","NODE_NAME":"Nombre del nodo","POD_IP_ADDRESS":"IP del POD","JOB_UNFINISHED":"Unfinished","TERMINATED":"Terminated","SCHEDULED_TO_NODE":"Scheduled to {value}","SCHEDULING_NOT_SUCCESSFUL":"Scheduling Not Successful","SCHEDULING_INFORMATION":"Información de programación","SCHEDULING_RESULT":"Información de programación de nodos","POD_SCHEDULING_METHOD":"¿Cómo se asignan los pods a los nodos?","POD_ASSIGNED_DESC":"El valor de solicitud (es decir, Solicitud) establecido por el pod en el grupo de pod se utiliza como base para determinar la asignación de recursos. Solo cuando la cantidad que se puede asignar en el nodo ≥ el valor requerido del pod, se puede asignar el pod a este nodo.","STATUS_INFORMATION":"Condiciones","WORKLOAD_CONDITION_AVAILABLE":"Disponible","WORKLOAD_CONDITION_PROGRESSING":"Progresando","NOT_SUCCESSFUL":"Not successful","CURRENT_STATUS":"Estado actual (fase)","POD_CONDITION_INITIALIZED":"Inicializado","POD_CONDITION_INITIALIZED_DESC":"Todos los contenedores init se han iniciado con éxito.","POD_CONDITION_READY":"Listo","POD_CONDITION_READY_DESC":"El pod ya se está ejecutando y se puede acceder a través del servicio.","POD_CONDITION_CONTAINERSREADY":"Contenedores Listo","POD_CONDITION_CONTAINERSREADY_DESC":"Los contenedores en la cápsula están listos.","POD_CONDITION_PODSCHEDULED":"Pod programado","POD_CONDITION_PODSCHEDULED_DESC":"El pod se ha asignado correctamente a un nodo.","POD_DESC":"Un Pod es la unidad de ejecución básica de una aplicación Kubernetes, que representa la unidad más pequeña y más simple en el modelo de objetos Kubernetes que crea o implementa.","POD_EMPTY_DESC":"Un Pod es la unidad de ejecución básica de una aplicación Kubernetes, que representa la unidad más pequeña y más simple en el modelo de objetos Kubernetes que crea o implementa.","DOMAIN_NAME_VALUE":"Domain Name: {value}","PATH_VALUE":"Ruta: {value}","RULES":"Reglas","ROUTE_PATH_VALUE":"Path: {value}","ROUTE_SERVICE_VALUE":"Servicio: {value}","ROUTE_PORT_VALUE":"Port: {value}","SERVICE_COLON":"Service: ","ACCESS_SERVICE":"Access Service","UNABLE_TO_ACCESS":"Unable to access service","UNABLE_TO_ACCESS_TIP":"Make sure that domain name resolution policies have been configured in your DNS server or the hosts file of your client machine.","CERTIFICATE_VALUE":"Certificate: {value}","PATH_EXIST":"PATH is duplicated, please re-enter。","ENDPOINT":"Endpoint","SESSION_AFFINITY":"Affinity de sesión","EDIT_EXTERNAL_ACCESS":"Editar acceso a Internet","EDIT_MONITORING_EXPORTER":"Edit Monitoring Exporter","EDIT_SERVICE":"Servicio de edición","ACCESS_NONE_TIP":"Internet access is not supported. The Service can be accessed only within the cluster.","EXTERNAL_SERVICE":"Servicio externo","COLLECTION_INTERVAL_MIN":"Collection Interval (min)","COLLECTION_INTERVAL_MIN_DESC":"Interval in minutes between two metric collection operations. The default value is 1.","COLLECTION_TIMEOUT_DESC":"Timeout interval in seconds of each collection operation. The default value is 10.","SELECT_AUTHENTICATION_METHOD":"Select Authentication Method","SELECT_AUTHENTICATION_METHOD_DESC":"Select the authentication method used during metric collection.","NO_AUTHENTICATION_TCAP":"No Authentication","NO_AUTHENTICATION_TIP":"Authentication is not used during metric collection.","CREATE_A_NEW_SECRET":"Create a new Secret","REFRESH_SECRETS":"refresh Secrets.","CERTIFICATE_AUTHORITY":"Certificate Authority","SERVER_NAME":"Server Name","TLS_SETTINGS_TCAP":"TLS Settings","BEARER_TOKEN_TCAP":"Bearer Token","BASIC_AUTHENTICATION_TCAP":"Basic Authentication","EXTERNAL_IP_ADDRESS":"External IP Address","MONITORING_EXPORTER":"Monitoring Exporter","MONITORING_EXPORTER_VALUE":"Monitoring exporter: {value}","PORT_PL":"Puertos","SERVICE_NODE_PORT_DESC":"If your current network is on the same network as the cluster node, you can access it through : or through :.","IMAGE_BUILDING_FAILED":"Image building failed","IMAGE_BUILDING_SUCCESSFUL":"Image building successful","BUILDING_IMAGE":"Building image","SERVICE_MONITORING_EXPORTER":"Service Monitoring Exporter","EXPORTER_SERVICE_PORTS":"Exporter Service Ports","SCRAPE_INTERVAL_MIN":"Scrape Interval (Min)","SERVICE_TYPES_Q":"Tipos de servicio","SERVICE_TYPES_A":"El servicio se divide en un servicio sin estado (Servicio virtual + Depolyment) y un servicio con estado (Servicio sin cabeza + Statefulset). En un servicio sin estado, las réplicas pueden compartir un volumen, y un servicio con estado debe tener su propio volumen independiente.","SCENARIOS_FOR_SERVICES_Q":"¿Cuáles son los escenarios de aplicación para servicios sin estado y servicios con estado?","SCENARIOS_FOR_SERVICES_A":"Los servicios sin estado son útiles para escenarios en los que los datos persistentes no se almacenan localmente y varias instancias responden a solicitudes uniformes (Nginx, Tomcat, etc.). Los servicios con estado son útiles cuando se trata de almacenamiento de datos, subprocesos múltiples o colas (base de datos MySQL, Kafka, Zookeeper, etc.).","SERVICE_TYPE":"Tipo de servicio","SERVICE_LIST":"Lista","SERVICE_TYPE_STATEFULSERVICE":"Stateful Service","SERVICE_TYPE_STATELESSSERVICE":"Stateless Service","SERVICE_TYPE_EXTERNALSERVICE":"Servicio externo","HEADLESS":"Headless","EXTERNALNAME":"ExternalName","CREATE_SERVICE_DESC":"Select a service creation method.","SELECT_SERVICE_TYPE_DESC":"Create a stateless or stateful service, or map a service to an external Service.","SERVICE_FROM_CODE":"Cree un nuevo servicio desde el repositorio de código fuente","SERVICE_FROM_ARTIFACT":"Construye un nuevo servicio a través del artefacto","SERVICE_FROM_CODE_DESC":"Puedes construir su código existente en una imagen e implementarlo a través de Source to Image.","SERVICE_FROM_ARTIFACT_DESC":"Puedes construir un artefacto existente en una nueva imagen y completar despliegue.","CUSTOMIZE_SERVICE":"Customize Service","CUSTOMIZE_SERVICE_DESC":"Puedes crear un servicio ya sea especificando una carga de trabajo o editando la configuración (Yaml).","PORT_INPUT_DESC":"The port name already exists. Please enter another name.","PORT_NAME_DESC":"The port name can contain only lowercase letters, numbers, and hyphens (-) and must begin and end with a lowercase letter or number. The maximum length is 63 characters.","CREATE_EXTERNAL_SERVICE_DESC":"Asigne el servicio al contenido del campo externalName devolviendo un registro CNAME con su valor.","CREATE_EXTERNAL_SERVICE":"Create External Service","EXTERNAL_SERVICE_ADDRESS_EMPTY_DESC":"Please enter an ExternalName.","EXTERNAL_SERVICE_ADDRESS":"External Service Address","EXTERNAL_SERVICE_ADDRESS_DESC":"Enter the domain name of an external Service.","JAVA":"Java","NODEJS":"Node.js","PYTHON":"Python","LANGUAGE_TYPE_VALUE":"Tipo de idioma: {value}","CONTAINER_SETTINGS":"Configuración del contenedor","ARTIFACT_TYPE_VALUE":"Artifact Type: {value}","BINARY":"Binary","SPECIFY_WORKLOAD_TO_CREATE_SERVICE":"Specify Workload to Create Service","EDIT_YAML_TO_CREATE_SERVICE":"Edit YAML to Create Service","SPECIFY_WORKLOAD_DESC":"Crea un servicio con Pods existentes.","NO_RELATED_RESOURCE_FOUND":"No hay recursos relacionados.","NO_SERVICE_RELATED_RESOURCE_DESC":"No se encontraron recursos relacionados con los servicios actuales","DELETE_SERVICE_DESC":"Está a punto de eliminar los servicios {resource}. ¿Confirma si desea eliminar el recurso asociado?","DELETE_SERVICE_DESC_PL":"You are about to delete the Services {resource}.
    Do you want to also delete the following resources related to the Services?","DELETE_SERVICE_DESC_SI":"You are about to delete the service {resource}.
    Do you want to also delete the following resource related to the service?","DELETE_SERVICE":"Delete Service","DELETE_MULTIPLE_SERVICES":"Delete Multiple Services","SERVICE_TOPOLOGY":"Service Topology","AUTO_REFRESH":"Auto","POD_COUNT_VALUE":"Pods: {value}","SELECTOR":"Selector","RECREATE":"Redesplegar","RECREATE_SUCCESS_DESC":"Desplegado correctamente","STATEFULSETS_LOW":"StatefulSets","STATEFULSETS_PL":"StatefulSets","PARTITION_ORDINAL_EMPTY":"Please set a ordinal for dividing Pod replicas.","CONFIGMAP_PL":"ConfigMaps","CONFIGMAPS":"ConfigMaps","CONFIGMAP_LOW":"ConfigMap","SECRET_LOW":"Secret","SERVICE_ACCOUNT_PROJECT_ROLE_DESC":"Select the role of the service account in the current project.","SERVICE_ACCOUNT":"Cuentas de servicio","SECRET_VALUE":"Secreto: {value}","SERVICEACCOUNT_KUBECONFIG_DESC":"Download the kubeconfig.yaml file to provide other apps with an account that can access the current project. If the apps to use the kubeconfig.yaml file are deployed outside the current cluster, you need to change the value of clusters:cluster:server to the Kubernetes API server address exposed to the outside. Learn More","SERVICE_ACCOUNT_PL":"Cuentas de servicio","SERVICE_ACCOUNT_DESC":"La cuenta de servicio proporciona una identidad para los procesos que se ejecutan en un pod que se puede usar para acceder al servidor de API","SERVICE_ACCOUNT_EMPTY_DESC":"Please create a service account.","INVALID_YAML_FILE_FORMAT":"Formato de archivo YAML no válido.","PROJECT_ROLE_SI":"Rol del proyecto","SELECT_PROJECT_ROLE_DESC":"Seleccione un rol de proyecto para especificar permisos.","CHANGE_ROLE":"Cambiar rol","SERVICE_ACCOUNT_LOW":"service account","GRAYSCALE_RELEASE":"Grayscale Release","BLUE_GREEN_DEPLOYMENT":"Despliegue blue-green","CANARY_RELEASE":"Canary Release","TRAFFIC_MIRRORING":"Mirroring de tráfico","BLUE_GREEN_DEPLOYMENT_DESC":"Blue-green deployment deploys the new version while retaining the old version to ensure zero downtime. At any time, only one of the versions is active serving all the traffic and the other one remains idle. If anything goes wrong, you can quickly roll back to the old version.","CANARY_RELEASE_DESC":"Este método trae parte del tráfico real a una nueva versión para probar su rendimiento y confiabilidad. Puedes ayudar a detectar posibles problemas en el entorno real sin afectar la estabilidad general del sistema.","TRAFFIC_MIRRORING_DESC":"El traffic mirroring proporciona una forma más precisa de probar nuevas versiones, ya que los problemas se pueden detectar por adelantado sin afectar el entorno de producción. Por lo tanto, sirve como un método más seguro y confiable para el despliegue de versiones.","CREATE_BLUE_GREEN_DEPLOYMENT_TASK":"Create Blue-Green Deployment Task","DESELECT":"Deseleccionar","SELECT":"Seleccionar","SELECT_GRAY_COMPONENT_TIP":"Selecciona un componente Grayscale Release","REPLICA":"Replica","ADD_REPLICA":"Add Replica","REPLICA_PL":"Replicas","GRAYSCALE_REPLICAS_DESC":"Especificar el número de réplicas","SELECT_VERSION":"Reglas de tráfico","BLUE_GREEN_STRATEGY_DESC":"Dos versiones","TAKE_OFFLINE":"Desconectado esta versión","TAKE_OFFLINE_SUCCESS":"Take Offline Success","TAKE_OVER":"Take Over","GRAYSCALE_VERSION":"Versión: {version}","CREATE_CANARY_RELEASE_TASK":"Create Canary Release Task","UNFINISHED_GRAY_TASK":"Grayscale release in progress","NO_WORKLOAD_FOUND_TIP":"No workload found","NO_SERVICE_MESH_TIP":"Las aplicaciones que no están habilitadas para el Application Governance no se pueden publicar en Grayscale.","GRAY_APP_NAME":"App: {name}","UNSUPPORTED_WORKLOAD_TYPE":"Tipo de carga de trabajo no compatible","VERSION_EXISTS":"The version code already exists. Please enter another version code.","NEW_VERSION_NUMBER_EXIST_DESC":"The workload {name} already exists. Please enter another version code.","INIT_CONTAINER":"Init Container","INIT_CONTAINER_VALUE":"Init Container: {value}","CONTAINER_VALUE":"Container: {value}","GRAYSCALE_IMAGE":"Image: {image}","NEW_VERSION_NUMBER":"New Version Number","NEW_VERSION_NUMBER_EMPTY_DESC":"Introduce la versión Grayscale Release","NEW_VERSION_SETTINGS":"New Version Settings","NEW_VERSION_NUMBER_DESC":"Solo puede contener letras minúsculas y números. La longitud máxima de carácteres se establece en 16.","NEW_VERSION_NUMBER_INVALID_DESC":"Invalid new version number. The new version number can contain only lowercase letters and numbers. The maximum length is 16 characters.","KEY_EQ_VALUE":"Key=Value","HEADER":"Cabecera personalizada","CLIENT_OS":"El tráfico proviene de los siguientes sistemas operativos","COOKIE":"Cookie","SPECIFY_REQUEST_PARAMETERS_DESC":"De acuerdo con la regla de configuración del contenido de la solicitud, solo el tráfico que cumpla ciertas condiciones en el contenido solicitado se dividirá en versiones en Grayscale Release. Esta política solo es válida para el acceso directo al servicio del portal.","POLICY_REQUEST_CONTENT_TIP":"Forwarding by request content is unavailable if port protocol is not HTTP, HTTP2, or gRPC.","SPECIFY_REQUEST_PARAMETERS":"Reenviar por contenido de solicitud","REQUEST_PARAMETERS":"Regla de acceso a la versión de Grayscale Release","EXACT_MATCH":"Coincidencia exacta","PREFIX_MATCH":"Coincidencia de prefijo","REGEX_MATCH":"Coincidencia regex","CANARY_BY_TRAFFIC_DESC":"De acuerdo con la regla de proporción de tráfico, el {ratio}% del tráfico solicitado al componente {component} se reenviará a la versión en Grayscale Release {newVersion}.","SPECIFY_TRAFFIC_DISTRIBUTION":"Reenviar por ratio de tráfico","TRAFFIC":"Traffic","TRAFFIC_DISTRIBUTION":"Ratio de tráfico","CREATE_TRAFFIC_MIRRORING_TASK":"Create Traffic Mirroring Task","PREREQUEST_FOR_USE_GRAYRELEASE_Q":"¿Cuales son los requisitos previos para usar Grayscale Release?","PREREQUEST_FOR_USE_GRAYRELEASE_A":"You need to create a composed app and enable the application governance feature before you implement grayscale release.","RELEASE_TASKS":"Release Tasks","TCP_INBOUND_TRAFFIC":"TCP - Tráfico entrante","TCP_OUTBOUND_TRAFFIC":"TCP - Tráfico saliente","NO_DATA_SCAP":"No data","REPLICA_COUNT_LOW":"replicas","MIRROR_POLICY_DESC":"With traffic mirroring, the network traffic in the production environment can be copied into a grayscale version. It serves as an effective way to test the new version with real-time user traffic before it runs in the actual environment.
    Therefore, traffic mirroring reduces the risk of directly making changes in the production environment.","BLUE_GREEN_DEPLOYMENT_LOW":"blue-green deployment","BLUE_GREEN_TRAFFIC_DISTRI_DESC":"The new version or old version receives all traffic.","TRAFFIC_LOW":"tráfico","VERSION_TRAFFIC_PERCENT":"{version} traffic {percent}%","OFFLINE":"Offline","OFFLINE_TIP":"No service traffic is sent to this version. You can take the version online to make it take over all traffic.","CANARY_RELEASE_LOW":"canary release","ADJUST_TRAFFIC_DISTRIBUTION_DESC":"Are you sure you want to send {ratioNew}% of traffic to the new version {newVersion} and {ratioOld}% to the old version {oldVersion}?","ALLOCATE_TRAFFIC_DESC":"Asignar todo el tráfico de forma proporcional a los componentes de Grayscale Release","COOKIE_EXACT_MATCH":"Cookie (exact match)","COOKIE_REGEX_MATCH":"Cookie (regex match)","HEADER_EXACT_MATCH":"Header (exact match)","HEADER_REGEX_MATCH":"Header (regex match)","URL_PREFIX_MATCH":"URL (prefix match)","URL_EXACT_MATCH":"URL (regex match)","OS":"OS","SERVICE_VERSION_RECEIVE_ALL_TRAFFIC":"The version {version} has taken over all traffic.","RESTORE":"Recuperar","SUCCESSFUL_REQUEST_RATE":"Tasa de éxito de solicitud","TRAFFIC_IN_LAST_FIVE_MINUTES":"Tráfico de los últimos cinco minutos","DELETE_GRAYSCALE_RELEASE_TASK_DESC":"Please select a version to take over all traffic before deleting the grayscale release task.","GRAY_COMPONENT_DESC":"The grayscale release components used to serve the traffic.","TRAFFIC_MIRRORING_LOW":"traffic mirroring","MIRRORED_TRAFFIC":"Tráfico reflejado","MIRRORED_TRAFFIC_TIP":"Traffic mirroring does not actually expose the new version.","RELEASE_MODE_PL":"Strategies","RELEASE_MODE":"Release mode","NEW_VERSION_TAKEOVER_DESC":"The new version {newVersion} is receiving all traffic. If you delete the current grayscale release job, the old version {oldVersion} will be also be deleted.","OLD_VERSION_TAKEOVER_DESC":"The old version {oldVersion} is receiving all traffic. If you delete the current grayscale release job, the new version {newVersion} will be also be deleted.","GRAYSCALE_REPLICA_SI":"Réplica: {count}","GRAYSCALE_REPLICA_PL":"Réplicas: {count}","TRAFFIC_MIRRORING_TRAFFIC_DISTRI_DESC":"A copy of traffic is sent to the new version for testing.","EDIT_GRAYSCALE_RELEASE_TASK":"Edit Grayscale Release Task","ADJUST_TRAFFIC_DISTRIBUTION":"Adjust Traffic Distribution","COPIED_SUCCESSFUL":"Copia con éxito","BUILDER_IMAGE":"Builder Image","PULL_POLICY":"Pull Policy","REMOTE_TRIGGER":"Remote Trigger","S2I_UPDATE_WORKLOAD":"Update workload after image building is successful","S2I_UPDATA_WORKLOAD_DESC":"After the image is rebuilt successfully, workloads that use the image will be updated.","IMAGE_BUILDER":"Image Builder","IMAGE_BUILDER_LOW":"image builder","JOB_RECORDS":"Registros de trabajos","LAST_BUILD_ENVIRONMENT":"Último entorno de compilación","BUILDER_IMAGE_SCAP":"Builder image","FILE_SIZE":"File size: {size}","DOWNLOAD_ARTIFACT":"Descargar Artefacto","ARTIFACT_FILE":"Subir artefactos","LOG_MODULE_NOT_INSTALLED":"The logging module is not installed.","LOADING_DOTS":"El registro se está cargando ...","IMAGE_NAME_SCAP":"Image name","IMAGE_SIZE_SCAP":"Tamaño de la imagen","IMAGE_NAME_BUILDING":"Image: {name}/Building","IMAGE_NAME_FAILED":"Image: {name}/Failed","IMAGE_NAME_SUCCESSFUL":"Image: {name}/Successful","LAST_MESSAGE_SCAP":"Last message","START_TIME_SCAP":"Start time","SOURCE_URL":"Source URL","NEW_TAG":"New Tag","NEW_TAG_DESC":"Enter the tag of the new image","IMAGE_ARTIFACTS":"Image Artifacts","RELEASE_TIME_SCAP":"Release time","PULL_COMMAND_SCAP":"Pull command","IMAGE_BUILDER_PL":"Image Builders","IMAGE_BUILDER_DESC":"Image Builder is a tool that builds container images from source code or artifacts. You can build container images from source code or artifacts through simple configurations.","IMAGE_BUILDER_EMPTY_DESC":"Crea un generador de image builder.","NOT_RUNNING_YET":"Aún no está en ejecución","BUILDING":"Building","S2I":"Source-to-image","B2I":"Artifact-to-image","BUILD_IMAGE_FOR_SERVICE":"Crear imagen para el servicio {service}","BUILD_MODE":"Elige un idioma","CONTAINERD_RUNTIME_NOT_SUPPORTED":"The containerd runtime does not support this feature.","S2I_DESC":"Por favor elige tu lenguaje de código fuente","IMAGE_FROM_S2I":"Crea una nueva imagen a partir del código","IMAGE_FROM_B2I":"Crea una nueva imagen a partir del artefacto","B2I_DESC":"Select the file type of your artifact.","EMPTY_IMAGE_TYPE_DESC":"Please select a language or artifact type.","CODE_REPOSITORY_URL":"URL de código","CODE_REPOSITORY_BRANCH":"Rama","CODE_REPOSITORY_KEY":"Key","CODE_REPOSITORY_URL_DESC":"La dirección del repositorio del código fuente (actualmente es compatible con git). Puedes especificar ramas de código y rutas relativas en el terminal del código fuente.","CODE_REPOSITORY_KEY_DESC":"Si es un repositorio de código privado, escoge la clave del repositorio de código.","IMAGE_NAME":"Image Name","IMAGE_TAG":"Image Tag","TARGET_IMAGE_REPOSITORY":"Repositorio de imágenes de destino","S2I_IMAGE_NAME_DESC":"Nombre de la imagen y tag, que por defecto es el nombre del proyecto del repositorio de código.","S2I_TARGET_IMAGE_REPOSITORY_DESC":"Select a Secret with push permissions to the image repository. De lo contrario, puedes crear una nueva credencial de repositorio de imágenes.","TRIGGER_TOKEN":"Secret Code","INVALID_TRIGGER_TOKEN_DESC":"It can only contain upper and lower case letters, numbers.","TRIGGER_TOKEN_DESC":"Set a token used to authenticate a client against KubeSphere when the client attempts to trigger image building on KubeSphere. The token can contain only uppercase letters, lowercase letters, and numbers.","CODE_RELATIVE_PATH":"Ruta relativa del código (opcional):","CODE_RELATIVE_PATH_DESC":"Especifica un directorio relativo dentro de la aplicación. (Valor por defecto /)","S2I_ENVIRONMENT_DESC":"Los desarrolladores de aplicaciones pueden usar las siguientes variables de entorno para configurar el comportamiento en tiempo de ejecución de esta imagen; para configuraciones detalladas, consulta plantillas de compilación.","UPLOAD_ARTIFACT_FILE":"Haz clic para seleccionar el archivo de artefacto a subir","UPLOAD_PERCENT":"Uploaded: {percent}%","UPLOAD_FULLY":"Uploaded: 100%","UPLOAD_FAILED":"Upload failed.","ARTIFACT_FILE_EMPTY_DESC":"El archivo no se ha subido.","B2I_DEFAULT_DESC":"Elige tu artefacto para construir una imagen de contenedor","JAR_DESC":"Un archivo JAR es un formato de empaquetado de archivos que se usa comúnmente para agregar una gran cantidad de archivos de clase Java, metadatos relacionados y archivos de recursos (texto, imágenes, etc.) en un archivo.","WAR_DESC":"El archivo WAR es un archivo utilizado para distribuir una colección de archivos JAR, JavaServer Pages, Java Servlets, clases Java, archivos XML, bibliotecas de tags, páginas web estáticas (HTML y archivos relacionados) y otros recursos que juntos constituyen una aplicación web.","BUILD_ENVIRONMENT":"Entorno de build","CODE_REPOSITORY_KEY_NOT_REQUIRED":"El repositorio de código actual no requiere clave.","FILE_SIZE_VALUE":"File size: {value}","FILE_UPLOADED_TIP":"Documento subido correctamente","WRONG_FILE_EXTENSION_NAME":"El tipo de archivo seleccionado no coincide, selecciona el tipo {type}","IMAGE_NAME_EMPTY_DESC":"Please enter an image name.","IMAGE_TAG_EMPTY_DESC":"Please enter an image tag.","TARGET_IMAGE_REPOSITORY_EMPTY_DESC":"Please set a target image registry.","REQUESTS_FOR_PUSH_AN_ALARM_Q":"How do I receive alerts if an alerting policy is triggered?","REQUESTS_FOR_PUSH_AN_ALARM_A":"The platform administrator needs to select a notification method and configure the server corresponding to the method.","HOW_TO_SUPRESS_AN_ALARM_Q":"How do I suppress alerts?","HOW_TO_SUPRESS_AN_ALARM_A":"You can set alerting policies at different levels. Each level corresponds to an alerting interval.","SELECT_WORKLOAD_TIP":"Please select at lease a workload.","KUBE_NO_AVAILABLE_DATA":"No hay datos disponibles","EDIT_QUOTAS":"Editar quota","QUOTA":"Quota","PROJECT_QUOTAS_NOT_SET":"Project Quota Not Set","PROJECT_QUOTAS_DESC":"Project quotas specify the number of available CPU and memory resources and the maximum number of application resources such as oods, deployments, and services allowed in the project.","DEFAULT_CONTAINER_QUOTAS_NOT_SET":"Resource Default Request Not Set","DEFAULT_CONTAINER_QUOTAS_DESC":"Default container quotas specify the default CPU request, CPU limit, memory request, and memory limit of containers created in the project.","APPLICATION_RESOURCE_COUNT":"Monitorización de recursos de aplicaciones","SELECT_RESOURCE_TIP":"Select a resource or enter a resource name","NUMBER_OF_PODS":"Number of pods","NUMBER_OF_DEPLOYMENTS":"Number of deployments","NUMBER_OF_STATEFULSETS":"Number of statefulsets","NUMBER_OF_DAEMONSETS":"Number of daemonsets","NUMBER_OF_JOBS":"Number of jobs","NUMBER_OF_CRONJOBS":"Number of cronjobs","NUMBER_OF_VOLUMES":"Number of persistent volume claims","NUMBER_OF_SERVICES":"Number of services","NUMBER_OF_ROUTES":"Number of routes","NUMBER_OF_SECRETS":"Number of secrets","NUMBER_OF_CONFIGMAPS":"Number of configmaps","INSTALLED_APPS":"Installed Apps","RESOURCE_STATUS":"Estado del recurso","RESOURCE_WARNING_TIPS":"Hay {warnNum} {tipName} que se muestran anormalmente.","PHYSICAL_RESOURCE_PL":"Physical Resources","CPU_USAGE_TIME":"CPU Usage ({time})","MEMORY_USAGE_TIME":"Memory Usage ({time})","TIPS":"Tips","HOW_TO_INVITE_USERS":"¿Cómo invitar a otros miembros al proyecto actual?","HOW_TO_SET_PROJECT_GATEWAY":"¿Cómo configurar la puerta de enlace del proyecto?","TOP_5_FOR_RSC_USAGE":"Top 5 for Resource Usage","TOP_5_FOR_RESOURCE_USAGE":"Ranking de uso de recursos","SORT_BY_WORKLOAD_CPU_USAGE":"Ordenar por uso de CPU","SORT_BY_WORKLOAD_MEMORY_USAGE_WO_CACHE":"Ordenar por uso de memoria","SORT_BY_WORKLOAD_NET_BYTES_TRANSMITTED":"Ordenar por tráfico saliente","SORT_BY_WORKLOAD_NET_BYTES_RECEIVED":"Ordenar por tráfico entrante","PROJECT_SETTINGS":"Configuraciones del proyecto","HOW_TO_USE_QUOTA_Q":"How do I use resource quotas?","HOW_TO_USE_QUOTA_A":"Resource quotas are a mechanism used to limit the resource usage. You can edit project resource quotas and default container quotas by clicking Edit Project.","WHAT_ARE_DEFAULT_CONTAINER_QUOTAS_Q":"What are default container quotas?","WHAT_ARE_DEFAULT_CONTAINER_QUOTAS_A":"Default container quotas specify the default CPU request, CPU limit, memory request, and memory limit of containers created in the project.","PROJECT_BASIC_INFO_DESC":"Basic information provides an overview of the project. You can view the project information and resource quotas.","EDIT_PROJECT_QUOTA":"Edit Project Quota","PROJECT_REMAINING_QUOTAS":"Project Remaining Quotas","WORKSPACE_REMAINING_QUOTAS":"Workspace Remaining Quotas","GPU_TYPE_SCAP":"GPU type","GPU_LIMIT_SCAP":"GPU limit","REQUEST_EXCEED_WORKSPACE":"Resource requests and limits cannot exceed workspace resource limits.","REQUEST_EXCEED_LIMIT":"Las solicitudes de recursos no deben ser mayores que los límites de recursos","REQUEST_EXCEED_AVAILABLE_QUOTA":"Insufficient resources.","DELETE_PROJECT_TIP":"Enter the project name {resource} to confirm that you understand the risks of this operation.","MANAGE":"Manage","PROJECT_INFO":"Información del proyecto","EDIT_PROJECT_QUOTAS":"Edit Project Quotas","PROJECT_ROLE_SCAP":"Project role","PROJECT_ROLE_SCAP_PL":"Project roles","PROJECT_MEMBER_SCAP":"Project member","PROJECT_MEMBER_SCAP_PL":"Project members","DEFAULT_CONTAINER_QUOTA_PL":"Default Container Quotas","EDIT_DEFAULT_CONTAINER_QUOTAS":"Edit Default Container Quotas","LIMITS_CPU":"limit.cpu","LIMITS_MEMORY":"limits.memoria","REQUESTS_CPU":"CPU Request","REQUESTS_MEMORY":"limit.cpu","PROJECT_QUOTA_PL":"Project Quotas","RESOURCE_TYPE_SCAP":"Tipo de recurso","JOBS":"Jobs","VOLUMES":"Volumes","SERVICES":"Servicio","ROUTES":"Routes","SECRETS":"Secrets","PROJECT_GATEWAY_DESC":"Set up and manage the configuration of the external network access gateway and service management in the cluster and project","PROJECT_GATEWAY":"Project Gateway","PROJECT_GATEWAY_EMPTY_DESC":"Please create a project gateway.","ENABLE_GATEWAY_DESC":"Antes de crear una ruta, debe habilitar el portal de acceso a Internet (es decir, la puerta de enlace). Este paso crea un controlador de enrutamiento correspondiente para reenviar la solicitud al servicio de back-end correspondiente.","LOAD_BALANCER_PROVIDER":"LoadBalancer Provider","GATEWAY_UPDATING_TIP":"Updating the gateway. Please try again later.","CLUSTER_GATEWAY_GUIDE_DESC":"After the cluster gateway is turned on, the project gateway can no longer be set. If the project gateway already exists, it cannot be reset after deleting it. ","LOG_COLLECTION":"Log Collection","DISK_LOG_COLLECTION_DESC":"The Log Collection function allows the system to collect container logs saved on volumes. To use this function, you need to mount a volume in read and write mode to a container and set the container to export logs to the volume.","COLLECT_LOGS_ON_VOLUMES_Q":"How do I collect logs on volumes?","COLLECT_LOGS_ON_VOLUMES_A":"To collect logs on volumes, you need to mount a volume in read and write mode to a container and set the container to export logs to the volume.","COLLECT_LOGS_ON_VOLUMES":"Colección de registro de disco","DISABLE_LOG_COLLECTION":"Disable Log Collection","DISABLE_LOG_COLLECTION_TIP":"Are you sure you want to disable log collection? After it is disabled, services that have enabled log collection will continue to collect logs saved in the volumes before the Pod replicas are restarted. If you need to collect the logs again, please enable log collection and restart the Pod replicas.","LOG_COLLECTION_ENABLED_DESC":"After this function is enabled or disabled, you need to restart the Pod replicas to make the change take effect.","DISABLED":"Deshabilitado","ENABLED":"Habilitado","NETWORK_ISOLATION_DESC":"By configuring network isolation, users can control traffic between pods within the same workspace and traffic from outside to implement application isolation and enhance application security.","NETWORK_ISOLATION_Q":"¿Cómo usar mejor el aislamiento de red?","NETWORK_ISOLATION_Q1":"What are the requirements on the CNI plugin for implementing network isolation?","NETWORK_ISOLATION":"Aislamiento de red","ENABLE":"Enable","PROJECT_NETWORK_ISOLATION":"Aislamiento de red de proyecto","DISABLED_PROJECT_NETWORK_ISOLATION":"Disabled project network isolation","NETWORK_POLICY_EMP_TITLE":"Network Isolation Not Enabled","NETWORK_POLICY_EMP_DESC":"After the project network access is enabled, other projects will be unable to access the project. But you can allow projects, services, and external IP addresses to access this project based on your needs.","INTERNAL_ALLOWLIST":"Internal Allowlist","INTERNAL_ALLOWLIST_TIP":"Add projects and services in the workspace to the allowlist.","INTERNAL_EGRESS_DESC":"Allows access to resources that match any of the following network policies.","INTERNAL_INGRESS_DESC":"Allows access from resources that match any of the following network policies.","INTERNAL_ALLOWLIST_DESC":"Allow pods in the current project to communicate with pods in other projects of the current workspace.","EMPTY_RESOURCE_DESC":"Please select at least one project or service.","EXTERNAL_ALLOWLIST":"External Allowlist","EXTERNAL_ALLOWLIST_TIP":"Add network segments and ports outside the workspace to the allowlist.","EXTERNAL_ALLOWLIST_DESC":"Allow pods in the current project to communicate with specific network segments and ports outside the workspace.","NETWORK_SEGMENT_EXAMPLE":"Example: 10.0.0.0","PORT_EXAMPLE":"Example: 80","EXTERNAL_EGRESS_DESC":"Pods in the current project are allowed to access the following network segments and ports.","EXTERNAL_INGRESS_DESC":"Pods in the current project are allowed to be accessed by the following network segments and ports.","SELECT_RULE_DIRECTION_TIP":"Please select a traffic direction.","ENTER_VALID_SEGMENT_DESC":"Please enter valid network segment.","ENTER_VALID_PORT_NUMBER_DESC":"Please enter a valid port number.","ADD_ALLOWLIST_ENTRY":"Agregar lista de permitidos","EDIT_ALLOWLIST_ENTRY":"Add Allowlist Entry","EXTERNAL_TRAFFIC_DIRECTION_DESC":"Egress indicates the direction from the current project to outside the workspace. Ingress indicates the direction from outside the workspace to the current project.","TRAFFIC_DIRECTION":"Traffic Direction","NETWORK_SEGMENT_DESC":"Set a network segment (CIDR is supported).","EGRESS":"Salida","INGRESS":"Ingress","INTERNAL_TRAFFIC_DIRECTION_DESC":"Egress indicates the direction from the current project to other projects. Ingress indicates the direction from other projects to the current project.","ALLOWLIST_ENTRY":"Allowlist Entry","ALLOWLIST_ENTRY_PL":"Allowlist Entry","ALLOWLIST_ENTRY_DETAIL":"Allowlist Entry Detail","ALLOWLIST_ENTRY_LOW":"allowlist entry","ADD_NEW_NETWORK_SEGMENT":"Add","ADD_NEW_PORT":"Add Port","ADD_NEW_PORT_RANGE":"Add Port Aange","PORT_RANGE":"Port Range","NETWORK_SEGMENT_QUANTITY":"Network Segment Quantity","PORT_QUANTITY":"Port Quantity","ALLOWLIST_ENTRY_EMPTY_DESC":"Create allowlist entry","PROJECT_MEMBER":"Project Member","PROJECT_MEMBER_PL":"Miembros del proyecto","PROJECT_MEMBER_DESC":"Project members can view or manage project resources. The project administrator can invite members who belong to the workspace to the project and manage project members.","REMOVE":"Remove","INVITE_MEMBER_DESC":"You can invite members who belong to the workspace to the project.","PROJECT_MEMBER_EMPTY_DESC":"Please invite a member of the current workspace to the project.","INVITE_MEMBER_SEARCH_PLACEHOLDER":"Introduce una dirección de correo electrónico para invitar miembros","ASSIGN_ROLE":"Assign Role","PERMISSION_PL":"Lista de autorizaciones","AUTHORIZED_USER_PL":"Usuarios autorizados","PROJECT_ROLE_PL":"Roles del proyecto","PROJECT_ROLE_DESC":"Los roles de proyecto definen la autorización que los usuarios tienen en el proyecto actual.","ROLE_PROJECT_ADMIN":"Manage all resources in the project.","ROLE_PROJECT_REGULAR":"El que mantiene el namespace, que puede administrar recursos en el mismo excepto usuarios y roles.","ROLE_PROJECT_VIEWER":"Permite el acceso de lectura para ver todos los recursos en el namespace.","ROLE_PROJECT_OPERATOR":"El que mantiene el proyecto, que puede administrar recursos en el mismo excepto usuarios y roles.","PROJECT_ROLE_EMPTY_DESC":"Please create a project role.","PERMIGROUP_APPLICATION_WORKLOADS":"Workload de aplicaciones","PERMISSION_APPLICATION_WORKLOADS_VIEW":"Application Workload Viewing","PERMISSION_APPLICATION_WORKLOADS_VIEW_DESC":"View resources such as applications, services, workloads, jobs, grayscale release jobs, and image builders in the project.","PERMISSION_APPLICATION_WORKLOADS_MANAGEMENT":"Application Workload Management","PERMISSION_APPLICATION_WORKLOADS_MANAGEMENT_DESC":"Create, edit, and delete resources such as applications, services, workloads, jobs, grayscale release jobs, and image builders in the project.","PERMIGROUP_STORAGE_MANAGEMENT":"Storage","PERMISSION_VOLUME_SNAPSHOTS_VIEW":"Volume Snapshot Viewing","PERMISSION_VOLUME_SNAPSHOTS_VIEW_DESC":"View volume snapshots in the project.","PERMISSION_VOLUME_SNAPSHOTS_MANAGEMENT":"Volume Snapshot Management","PERMISSION_VOLUME_SNAPSHOTS_MANAGEMENT_DESC":"Create, edit, and delete volume snapshots in the project.","PERMISSION_VOLUMES_VIEW":"Persistent Volume Claim Viewing","PERMISSION_VOLUMES_VIEW_DESC":"View persistent volume claims in the project.","PERMISSION_VOLUMES_MANAGEMENT":"Persistent Volume Claim Management","PERMISSION_VOLUMES_MANAGEMENT_DESC":"Create, edit, and delete persistent volume claims in the project.","PERMIGROUP_CONFIGURATION_CENTER":"Configuration","PERMISSION_CONFIGMAPS_VIEW":"Configmap Viewing","PERMISSION_CONFIGMAPS_VIEW_DESC":"View configmaps in the project.","PERMISSION_CONFIGMAPS_MANAGEMENT":"Configmap Management","PERMISSION_CONFIGMAPS_MANAGEMENT_DESC":"Create, edit, and delete configmaps in the project.","PERMISSION_SECRETS_VIEW":"Secret Viewing","PERMISSION_SECRETS_VIEW_DESC":"View secrets in the project.","PERMISSION_SECRETS_MANAGEMENT":"Secret Management","PERMISSION_SECRETS_MANAGEMENT_DESC":"Create, edit, and delete secrets in the project.","PERMISSION_SERVICEACCOUNT_VIEW":"Service Account Viewing","PERMISSION_SERVICEACCOUNT_VIEW_DESC":"View service accounts in the project.","PERMISSION_SERVICEACCOUNT_MANAGEMENT":"Service Account Management","PERMISSION_SERVICEACCOUNT_MANAGEMENT_DESC":"Create, edit, and delete service accounts in the project.","PERMIGROUP_MONITORING_ALERTING":"Monitorización y alertas","PERMISSION_ALERTING_MESSAGES_VIEW":"Alert Viewing","PERMISSION_ALERTING_MESSAGES_VIEW_DESC":"View alerts in the project.","PERMISSION_ALERTING_MESSAGES_MANAGEMENT":"Alert Management","PERMISSION_ALERTING_MESSAGES_MANAGEMENT_DESC":"Comment on and delete alerts in the project.","PERMISSION_ALERTING_POLICIES_VIEW":"Rule Group Viewing","PERMISSION_ALERTING_POLICIES_VIEW_DESC":"View rule groups in the project.","PERMISSION_ALERTING_POLICIES_MANAGEMENT":"Rule Group Management","PERMISSION_ALERTING_POLICIES_MANAGEMENT_DESC":"Create, edit, and delete rule groups in the project.","PERMISSION_CUSTOM_MONITORING_VIEW":"Custom Monitoring Viewing","PERMISSION_CUSTOM_MONITORING_VIEW_DESC":"View custom monitoring dashboards in the project.","PERMISSION_CUSTOM_MONITORING_MANAGEMENT":"Custom Monitoring Management","PERMISSION_CUSTOM_MONITORING_MANAGEMENT_DESC":"Create, edit, and delete custom monitoring dashboards in the project.","PERMISSION_PROJECT_MEMBERS_VIEW":"Vista de miembros del proyecto","PERMISSION_PROJECT_MEMBERS_VIEW_DESC":"View project members.","PERMISSION_PROJECT_MEMBERS_MANAGEMENT":"Gestión de miembros de proyecto","PERMISSION_PROJECT_MEMBERS_MANAGEMENT_DESC":"Invite, edit, and remove project members.","PERMISSION_PROJECT_ROLES_VIEW":"Vista de roles de proyecto","PERMISSION_PROJECT_ROLES_VIEW_DESC":"View project roles.","PERMISSION_PROJECT_ROLES_MANAGEMENT":"Gestión de Roles de Proyecto","PERMISSION_PROJECT_ROLES_MANAGEMENT_DESC":"Create, edit, and delete project roles except preset roles.","PERMIGROUP_PROJECT_SETTINGS":"Configuraciones del proyecto","PERMISSION_PROJECT_SETTINGS":"Project Settings Management","PERMISSION_PROJECT_SETTINGS_DESC":"Manage project settings including project basic information, external access settings, network policies, resource quotas, and log collection settings.","DELETE_ROLE":"Delete Role","DELETE_ROLE_TIP":"Are you sure you want to delete the role {resource}?","DELETE_ROLE_USER_TIP_PL":"The role is authorized to {count} users. Please delete the users or change the roles of the user first.","DELETE_ROLE_USER_TIP":"The role is authorized to {count} user. Please delete the user or change the role of the user first.","DELETE_ROLE_DEPARTMENT_TIP_PL":"The role is authorized to {count} departments. Please delete the departments or change the roles of the departments first.","DELETE_ROLE_DEPARTMENT_TIP":"The role is authorized to {count} department. Please delete the department or change the role of the department first.","CLONE_VOLUME":"Clon del volumen","CLONE":"Clone","CREATE_SNAPSHOT":"Crear snapshot","SNAPSHOT_EMPTY_TIP":"Seleccione un tipo de instantánea.","EXPAND_VOLUME":"Ampliar volumen","EXPAND":"Expand","PROVISIONER":"Provisioner","AVAILABLE_CAPACITY":"Capacidad disponible","POD_IP_ADDRESS_SCAP":"Pod IP address","TOTAL_CAPACITY":"Total capacity","TECHNICAL_SUPPORT":"Technical Support","LEARN_MORE_CONTACT_US":"For more cloud-native technology empowerment services, please Contact Us.","COMMUNITY_SUPPORT":"Community Support","FORUM":"Forum","TICKET_SUPPORT":"Ticket Support","TICKET_SUPPORT_DESC":"Professional cloud-native development team and container service delivery team with more than 10 years of public and private cloud support experience and in-depth understanding of industries, providing comprehensive technical support including installation, troubleshooting, recovery, and other professional services.","CONTACT_US":"Contact Us","KUBESPHERE_ENTERPRISE_CAPTION":"KubeSphere Enterprise","KUBE_SPHERE_ENTERPRISE_DESC":"KubeSphere Enterprise is an enterprise-grade container platform developed by QingCloud based on the open-source KubeSphere platform. Compared with the open-source edition, KubeSphere Enterprise enhances capabilities for enterprise quantitative operations, large-scale cluster O&M, and security hardening, and extends multiple key features such as microservice governance and app management. The KubeSphere Enterprise Extension Marketplace provides enterprise-grade extensions to meet requirements of various business scenarios, with expert solutions and technical support from QingCloud.","KSE_FEATURE_1":"Empowers enterprise digital transformation towards quantitative operations","KSE_FEATURE_2":"Enhances large-scale federated cluster O&M","KSE_FEATURE_3":"Provides full lifecycle security protection","KSE_PLATFORM_VERSION":"Platform Version: {version}","KUBESPHERE_CLOUD_CAPTION":"KubeSphere Cloud","KSC_FEATURE_BACKUP":"KubeSphere Backup","KSC_FEATURE_BACKUP_APP_DESC":"Application-level data protection","KSC_FEATURE_BACKUP_DATA_DESC":"Assured data consistency","KSC_FEATURE_BACKUP_CLOUD_DESC":"Unified management across clouds","KSC_FEATURE_INSPECTION":"KubeSphere Inspection","KSC_FEATURE_INSPECTION_VULN_DESC":"Comprehensive vulnerability scanning","KSC_FEATURE_INSPECTION_SECURITY_DESC":"System security hardening","KSC_FEATURE_INSPECTION_BEST_DESC":"Best practice guidance","KSC_FEATURE_LIGHTWEIGHT":"KubeSphere Lite","KSC_FEATURE_LIGHTWEIGHT_START_DESC":"Cluster setup in seconds","KSC_FEATURE_LIGHTWEIGHT_KS_DESC":"Out-of-the-box KubeSphere cluster","KSC_FEATURE_LIGHTWEIGHT_TEST_DESC":"Ideal for testing and demonstration","START_NOW":"Start Now","START_REAL_TIME_AUDIT_LOG":"Pause real-time audit logs","STOP_REAL_TIME_AUDIT_LOG":"View real-time audit logs","TIME_S":"{num, plural, =1 {1 second} other {# seconds}}","AUDIT_LOG_COUNT":"Audit Logs","RESOURCE_NAME_AND_TYPE":"Resource Type & Name","VERB":"Verb","STATUS_CODE":"Status Code","SUBRESOURCE":"Subresource","TOTAL_AUDITING_TODAY":"A total of {auditing} audit log entries have been collected today.","NO_AUDIT_LOG_TODAY":"No Audit Log Collected Today","AUDIT_LOG_TREND_LAST_TWELVE_HOURS":"Audit log trend in the last 12 hours","START_TIME_VALUE":"Start Time: {value}","NO_DATA_AUTHORIZED":"No Data Authorized","NO_DATA_AUTHORIZED_DESC":"Please contact an administrator to obtain data authorization.","TIME_RANGE_LAST":"Time range: last {value}","TIME_RANGE_RANGE":"Time range: {startTime} – {endTime}","AUDIT_LOGS_12H":"Audit logs in the last 12 hours","AUDIT_LOG_WORKSPACE_TIP":"Enter a workspace name to search for audit logs.","AUDIT_LOG_PROJECT_TIP":"Enter a project name to search for audit logs.","AUDIT_LOG_RESOURCE_NAME_TIP":"Enter a resource name to search for audit logs.","AUDIT_LOG_RESOURCE_TYPE_TIP":"Enter a resource type to search for audit logs.","AUDIT_LOG_VERB_TIP":"Enter a verb to search for audit logs.","AUDIT_LOG_STATUS_CODE_TIP":"Enter a status code to search for audit logs.","AUDIT_LOG_OPERATOR_TIP":"Enter an operator to search for audit logs.","AUDIT_LOG_SOURCE_IP_ADDRESS_TIP":"Enter a source IP address to search for audit logs.","SEARCH_BY_VERB":"Search by Verb","SEARCH_BY_STATUS_CODE":"Search by Status Code","SEARCH_BY_OPERATOR":"Search by Operator","SEARCH_BY_SOURCE_IP_ADDRESS":"Search by Source IP Address","ENABLE_AUDIT_LOG_COLLECTION_DESC":"You need to enable audit log collection if it is disabled.","KEYWORD":"Keyword","EXACT_QUERY":"Exact Query","FUZZY_QUERY":"Fuzzy Query","TIME_TOPOLOGY":"Time Topology ","SEARCH_RESULTS":"Search Results","DISPLAY":"Display","HIDE":"Hide","STOP_REAL_TIME_CONTAINER_LOG":"Pause real-time container logs","START_REAL_TIME_CONTAINER_LOG":"View real-time container logs","REFRESH_RATE_COLON":"Refresh Rate: ","CONTAINER_LOG_COUNT":"Registros de contenedores","LOG":"Log","CONTAINER_LOG_SOURCE":"Container Log Source","TOTAL_LOGS_TODAY":"A total of {logs} log entries from {containers} containers have been collected today.","WORKLOAD":"Workload","TIME_RANGE_SCAP":"Time range","QUERYING_RULES":"Querying Rules","CONTAINER_LOGS_12H":"Container logs in the last 12 hours","CONTAINER_LOG_KEYWORD_TIP":"Enter a keyword to search for container logs.","CONTAINER_LOG_PROJECT_TIP":"Enter a project name to search for container logs.","CONTAINER_LOG_WORKLOAD_TIP":"Enter a workload name to search for container logs.","CONTAINER_LOG_CONTAINER_TIP":"Enter a container name to search for container logs.","CONTAINER_LOG_POD_TIP":"Enter a pod name to search for container logs.","SEARCH_BY_KEYWORD":"Search by Keyword","SEARCH_BY_PROJECT":"Search by Project","SEARCH_BY_WORKLOAD":"Search by Workload","SEARCH_BY_POD":"Search by Pod","SEARCH_BY_CONTAINER":"Search by Container","TIME_RANGE":"Time Range","DOWNLOAD":"Download","KUBECONFIG_TIP":"\n

    Configuration Method

    \n

    Configure the access information about the current cluster by using kubeconfig file.

    \n ","HIDE_HELP_INFORMATION":"Hide Help Information","KUBECTL_TIP":"\n

    Command Tips

    \n

    You can refer to the following kubestl commands.

    \n

    Customized Output

    \n
      \n
    • View more information about a pod
    • \n
    \n

    kubectl get pod <pod-name> -o wide

    \n
      \n
    • View pod details in YAML format
    • \n
    \n

    kubectl get pod <pod-name> -o yaml

    \n

    Operations

    \n

    Create Resources

    \n
      \n
    • Create a service by using a YAML configuration file
    • \n
    \n

    kubectl create -f my-service.yaml

    \n
      \n
    • Create resources by using all YAML, YML, and JSON files in a directory
    • \n
    \n

    kubectl create -f <directory>

    \n

    View Resources

    \n
      \n
    • View all pods
    • \n
    \n

    kubectl get pods

    \n
      \n
    • View all services
    • \n
    \n

    kubectl get services

    \n

    View Resource Details

    \n
      \n
    • View node details
    • \n
    \n

    kubectl describe nodes <node-name>

    \n
      \n
    • View pod details
    • \n
    \n

    kubectl describe pods <pod-name>

    \n ","OPEN_TERMINAL_DESC":"Ensure that the web socket settings on the proxy server is correct.","TOOLBOX":"Toolbox","TOOLBOX_DESC":"Provides cluster analysis and control tools.","DETAIL_NOT_FOUND_DESC":"No related resources were found. Return to {title}","ANALYSIS_TOOLS":"Analysis Tools","VIEW_KUBE_CONFIG":"View or download the kubeconfig file of the current cluster.","CONTAINER_LOG_SEARCH_DESC":"A multi-dimensional container log search tool for resources.","RESOURCE_EVENT_SEARCH_DESC":"A multi-dimensional resource event search tool for resources.","AUDIT_LOG_DESC":"A multi-dimensional audit log search tool for resources.","RESOURCE_CONSUMPTION_STATISTICS":"Resource Consumption Statistics","METERING_AND_BILLING_DESC":"View resource consumption of clusters and workspaces.","CONTAINER_LOG_SEARCH":"Container Log Search","RESOURCE_EVENT_SEARCH":"Resource Event Search","AUDIT_LOG_SEARCH":"Audit Log Search","CONTROL_TOOL":"Control Tool","TOOLBOX_SHIFT_TIPS":" 👻 Press \"shift+left click\" to open kubectl in a new browser window.","THIRD_PARTY_TOOLS":"Third-Party Tools","METERING_NOT_ENABLED_DESC":"This module is not enabled.","NO_METER_DATA":"No resource consumption data is found.","EXPORT_BILL":"Export consumption records in CSV file format.","TOTAL_COST":"Total Cost ({unit})","PRICE_CONFIG_DESC":"The price information has not been configured.","METER_CPU_USAGE":"Uso de CPU","METER_MEMORY_USAGE":"Uso de memoria","METER_VOLUME_USAGE":"Volume Usage","METER_NET_RECEIVED_USAGE":"Inbound Traffic Usage","METER_NET_TRANSMITTED_USAGE":"Outbound Traffic Usage","NET_RECEIVED":"Inbound Traffic","NET_TRANSMITTED":"Outbound Traffic","COMPOSING_APP":"Composed app","CLUSTER_NODE_SCAP":"Cluster node","POD_SCAP":"Pod","APP_TEMPLATE_SCAP":"App template","COMPOSING_APP_SCAP":"Composed app","DEPLOYMENT_SCAP":"Deployment","STATEFULSET_SCAP":"StatefulSet","DAEMONSET_SCAP":"DaemonSet","WORKSPACE_SCAP":"Espacio de trabajo","CLUSTER_SCAP":"Cluster","PROJECT_SCAP":"Proyecto","SERVICE_SCAP":"Selecciona un servicio","HOST_CLUSTER_SCAP":"Clúster de host","MEMBER_CLUSTER_SCAP":"Member cluster","CONSUMPTION_HISTORY":"Consumption History","BILLING_CYCLE":"Billing Cycle","CONSUMER_TRENDS":"Cost Trends","AVERAGE_USAGE":"Average Usage","TOTAL_CONSUMPTION":"Total Consumption","TOTAL_CONSUMPTION_Q":"What is total consumption?","TOTAL_CONSUMPTION_A":"Total consumption is the sum of resource usage per sampling point in the current billing cycle.","TIMERANGE_MORE_30DAY_MSG":"If the interval between the end time and the start time is greater than 30 days, the minimum sampling interval should be 1 day.","MAXIMUM_USAGE":"Maximum Usage","MINIMUM_USAGE":"Minimum Usage","RESOURCE_TYPE":"Resource Type","CURRRENT_RESOURCE_CONSUMPTION":"Current Consumption","METER_RESOURCE_DESC":"Resource consumption in 1 h","ADD_CLUSTER_FOR_WORKSPACE":"Please authorize a cluster to this workspace.","RESOURCE_CONSUMPTION_DESC":"Select a category to view the resource consumption information.","CLUSTER_CONSUMPTION":"Cluster Resource Consumption","CLUSTER_CONSUMPTION_DESC":"View the consumption information of cluster resources.","CLUSTER_RESOURCE_CONSUMPTION_DESC":"Consumption of resources such as CPU, memory, and volumes of clusters","CLUSTER_NODE_CONSUMPTION_DESC":"Consumption of resources such as CPU, memory, and volumes of cluster nodes","CLUSTER_POD_CONSUMPTION_DESC":"Consumption of CPU and memory of pods in nodes","CURRENT_RESOURCE_CONSUMPTION":"Current Resource Consumption","VIEW":"View","CONSUMPTION_SINCE_CREATION":"has consumed the following resources since it is created.","PRICE":"Price","WORKSPACE_CONSUMPTION":"Workspace Resource Consumption","WORKSPACE_CONSUMPTION_DESC":"View the consumption information of workspace resources.","WORKSPACE_RESOURCE_CONSUMPTION_DESC":"Consumption of resources such as CPU, memory, and volumes of workspaces","WORKSPACE_PROJECT_CONSUMPTION_DESC":"Consumption of resources such as CPU, memory, and volumes of projects in workspaces","PROJECT_CONSUMPTION_DESC":"Consumption of CPU and memory of apps, services and pods in projects","STOP_REAL_TIME_RESOURCE_EVENT":"Pause real-time resource events","START_REAL_TIME_RESOURCE_EVENT":"View real-time resource events","RESOURCE_EVENT_COUNT":"Resource Events","METADATA":"Metadata","EARLIEST_START_TIME":"Earliest Start Time","LATEST_START_TIME":"Latest Start Time","TOTAL_EVENTS_TODAY":"A total of {events} resource events were collected today.","NO_RESOURCE_EVENTS_TODAY":"No Resource Events Collected Today","RESOURCE_EVENTS_12H":"Resource events in the last 12 hours","RESOURCE_EVENT_WORKSPACE_TIP":"Enter a workspace name to search for container logs.","RESOURCE_EVENT_PROJECT_TIP":"Enter a project name to search for container logs.","RESOURCE_EVENT_RESOURCE_TYPE_TIP":"Enter a resource type to search for container logs.","RESOURCE_EVENT_RESOURCE_NAME_TIP":"Enter a resource name to search for container logs.","RESOURCE_EVENT_MESSAGE_TIP":"Enter a message to search for resource events.","RESOURCE_EVENT_CATEGORY_TIP":"Enter a category name to search for container logs.","RESOURCE_EVENT_REASON_TIP":"Enter a reason to search for container logs.","SEARCH_BY_MESSAGE":"Search by Message","SEARCH_BY_WORKSPACE":"Search by Workspace","SEARCH_BY_RESOURCE_TYPE":"Search by Resource Type","SEARCH_BY_RESOURCE_NAME":"Search by Resource Name","SEARCH_BY_REASON":"Search by Reason","SEARCH_BY_CATEGORY":"Search by Category","EMAIL_DESC":"El correo electrónico se utiliza para iniciar sesión.","LANGUAGE":"Language","USER_SETTINGS":"User Settings","CLOSE":"Cerca","CONTENT_NOT_SAVED_TIPS":"el contenido ha sido modificado pero no guardado","SAVE_EDIT_HINTS":"confirma que el contenido modificado es correcto, puedes guardar la configuración o cancelar la configuración.","PASSWORD_SETTINGS":"Configuración de contraseña","PASSWORD_EMPTY_DESC":"Please enter a password.","CURRENT_PASSWORD":"contraseña actual","ENTER_CURRENT_PASSWORD_TIP":"Por favor introduce la contraseña actual","CONFIRM_PASSWORD":"Confirm Password","PASSWORD_NOT_SAME_DESC":"La contraseña ingresada dos veces debe ser la misma","ENTER_CURRENT_PASSWORD_DESC":"Debe ingresar correctamente la contraseña actual para cambiar a una nueva contraseña.","WORKBENCH":"Workbench","DASHBOARD_TITLE":"Hola {username}","LAST_LOGIN_TIME":"Last Login: ","USER_DASHBOARD_EMPTY_TITLE":"No perteneces a ningún espacio de trabajo actualmente.","USER_DASHBOARD_EMPTY_DESC":"Puedes ponerte en contacto con un administrador del espacio de trabajo para que te invite a unirte.","LAST_UPDATE_TIME":"Last update time","PLATFORM_VERSION":"Versión de plataforma","PLATFORM_RESOURCES":"Platform Resource","APP_TEMPLATE_SCAP_PL":"App templates","RECENT_ACCESS":"Visita reciente","MULTI_CLUSTER_DEPLOYMENT":"Despliegue de multi-cluster","WORKBENCH_PROJECT":"Proyecto","WORKBENCH_WORKSPACE":"Espacio de trabajo","WORKBENCH_DEVOPS":"DevOps project","WORKBENCH_MULTI_CLUSTER_PROJECT":"Multi-cluster project","WORKBENCH_CLUSTER":"Cluster","NOT_FOUND_DESC":"🙇 Lo sentimos, no se encontraron recursos relacionados, el sistema volverá a Workbench después de {time} s","MULTI_CLUSTER_PROJECT_TIP":"El recurso se implementa en varios grupos.","NO_HISTORY_TITLE":"No Recently Accessed Resource Found","NO_HISTORY_DESC":"You can access platform resources.","MESSAGE":"Mensaje","APP_REPOSITORY_PL":"App Repositories","APP_REPO":"Repositorios de aplicaciones","HOW_TO_USE_APP_REPO_Q":"¿Cómo usar un repositorio de aplicaciones?","HOW_TO_USE_APP_REPO_A":"You need to go to your project in the workspace. When you deploy a new app, select From App Template and then choose an app repository in the drop-down list to deploy an app in the repository.","APP_REPO_DESC":"An app repository is a repository used to store application templates. You can add an app repository to deploy and manage its applications.","APP_REPOSITORY_EMPTY_DESC":"Please add an app repository.","APP_REPO_STATUS_SUCCESSFUL":"Successful","APP_REPO_STATUS_FAILED":"Failed","APP_REPO_STATUS_SYNCING":"Syncing","ADD_APP_REPO":"Add App Repository","VALIDATE":"Validar","SYNC_INTERVAL":"Sync Interval","SYNC_INTERVAL_DESC":"Set a synchronization interval. The value range is 3 minutes to 24 hours. The default value 0 indicates no synchronization.","SYNC_PERIOD_EMPTY_DESC":"Please set a synchronization interval.","SYNC_INTERVAL_INVALID":"El valor no es válido, ingrese 0 o un número entero positivo.","APP_REPO_URL_DESC":"The URL needs to be validated before you add or edit an app repository.","SYNC_INTERVAL_TIP":"The value range is 3 minutes to 24 hours. Please enter a valid value.","SECONDS":"Seconds","MINUTES":"Minutes","HOURS":"Hours","UNRECOGNIZED_URL":"Unrecognized URL.","INVALID_CREDENTIAL_FORMAT":"Invalid credential format.","MISSING_ACCESS_KEY_ID":"Missing access key ID.","MISSING_SECRET_ACCESS_KEY":"Missing secret access key.","S_THREE_ACCESS_DENIED":"S3 access denied.","INVALID_URL_FORMAT":"Invalid URL format.","INVALID_HTTP_SCHEME":"Invalid HTTP scheme.","HTTP_ACCESS_DENIED":"HTTP access denied.","INVALID_HTTPS_SCHEME":"Invalid HTTPS scheme.","INVALID_TYPE":"Invalid type.","INVALID_PROVIDERS":"Invalid providers.","INVALID_REPO_URL":"Invalid repository URL.","INVALID_S_THREE_SCHEME":"Invalid S3 scheme.","ACCESS_KEY_ID":"Access Key ID","SECRET_ACCESS_KEY":"Secret Access Key","EDIT_APP_REPO":"Editar repositorio de aplicaciones","INVALID_URL_DESC":"Invalid URL.","VALID_URL_DESC":"Valid URL.","APP_REPOSITORY":"App Repository","APP_REPOSITORY_LOW":"app repository","MODIFY_SUCCESSFUL":"Modificado Satisfactoriamente","SERVICE_PROVIDER_WEBSITE_DESC":"Official website address of the service provider.","WRONG_ADDRESS_TIP":"Incorrect format. Please enter a correct website address.","APP_NAME_DESC":"El nombre puede contener cualquier carácter y el largo máximo es de 20 caracteres.","APP_DESCRIPTION_DESC":"The description can contain any characters and the maximum length is 120 characters.","APP_ICON_FORMAT":"Formato: png Mejor transparencia del fondo","APP_ICON_SIZE":"Icon size: 96x96 pixels","CHOOSE_APP_CATEGORY_DESC":"Select a category for the app.","EDIT_APP_DESC":"Configurar la información básica de aplicación.","ICON":"Icon","SERVICE_PROVIDER_WEBSITE_TCAP":"Service Provider Website","START_EDITING":"Start editing...","SCREENSHOTS_COLON":"Screenshots: ","DELETE_ALL":"Delete All","ADD_VERSION_SUCCESSFUL":"Versión Añadida Satisfactoriamente","UPLOAD_PACKAGE_OK_NOTE":"The version already exists. Please upload another version.","UPLOAD_NEW_VERSION":"Upload Version","UPLOAD_NEW_VERSION_DESC":"Upload a new version of the app.","DELETE_APP_TEMPLATE_DESC":"Enter the app template name {resource} to confirm that you understand the risks of this operation.","DELETE_APP_TEMPLATE_VERSIONS_DESC":"Enter the app template name {resource} to confirm that you understand the risks of this operation. Before deleting the app template, you must delete all versions of the template.","APP_TEMPLATE_LOW":"app template","APP_STATUS_SUBMITTED":"Submitted","APP_STATUS_NOT_SUBMITTED":"Not submitted","VERSION_INFO":"Version Information","INSTALL":"Install","SUBMIT_FOR_REVIEW":"Submit for Review","DOWNLOAD_SUCCESSFUL":"Descargado con éxito","VERSION_DELETE_TIP":"¿Está seguro de eliminar la versión {name} ?","VERSION_SUBMIT_TIP":"¿Está seguro de enviar la versión {name} para auditoría?","VERSION_CANCEL_TIP":"¿Está seguro de cancelar la revisión de la versión {name} ?","VERSION_RELEASE_TIP":"Los usuarios pueden ver e implementar la versión {name} en la tienda cuando se lance. ¿Estás seguro de lanzarlo ahora?","VERSION_SUSPEND_TIP":"La versión {name} no se mostrará en la tienda cuando se suspenda. ¿Estás seguro de suspenderlo ahora?","VERSION_RECOVER_TIP":"La versión {name} se mostrará nuevamente en la tienda. ¿Estás seguro de activarlo ahora?","UPDATE_TIME_SCAP":"Update time","VIEW_IN_STORE":"View in Store","UPLOAD_AGAIN_TIP":"Please try again.","ENTER_VERSION_NUMBER_TIP":"Please enter a version number.","SUBMIT_REVIEW_DESC":"Submit the app template for review before releasing it to the App Store.","APP_LEARN_MORE":"Learn More","INVALID_VERSION_TIP":"Versión no válida","TEST_STEPS":"Test Steps","VERSION_SUBMIT_TEST_STEPS":"1. All dependent charts have been submitted.
    2. The static analysis has been passed (helm lint).
    3. The app can be started using default values (helm install). All pods are in running state and all services have at least one endpoint.
    4. The images used have no security vulnerabilities.
    5. Upgrade is supported.
    6. Custom application configuration is supported.
    7. Do not use the alpha features of Kubernetes.
    8. Detailed documentation is provided, including app introduction, prereauisites, and custom parameter configurations.
    ","VERSION_SUBMIT_NOTE":"Please make sure your app has met the following requirements before submission:","UPDATE_LOG_DESC":"Se usa para describir los detalles de esta actualización.","SUBMIT_SUCCESSFUL":"Submitted successfully.","CANCEL_SUCCESSFUL":"Canceled successfully.","APP_INSTANCES":"App Instances","APP_TEMPLATE_PL":"App Templates","APPS_MANAGEMENT":"Gestión de Alicaciones","UPLOAD_TEMPLATE":"Subir Plantilla","APP_TEMPLATE_DESC":"KubeSphere proporciona una gestión completa del ciclo de vida para las aplicaciones. Puedes subir o crear nuevas plantillas de aplicación y probarlas rápidamente. Además, puedes publicar tus aplicaciones en la Tienda de Aplicaciones para que otros usuarios puedan desplegarlas con un solo click.","DEVELOP_APP_DESC":"Puedes subir Charts de Helm o utilizar la herramienta de orquestación de recursos proporcionada por KubeSphere para desarrollar plantillas de aplicaciones.","DEVELOP_APP_TITLE":"Cómo desarrollar plantillas de aplicación?","HOW_PUBLISH_APP_TITLE":"Cómo publicar aplicaciones en la Tienda de Aplicaciones?","HOW_PUBLISH_APP_DESC":"KubeSphere actualmente admite la subida de Charts de Helm a través de plantillas de aplicación dentro del espacio de trabajo, donde puedes enviar tu plantilla para su revisión. Una vez que se apruebe la plantilla, podrás publicarla en la Tienda de Aplicaciones.","APP_STATUS_ACTIVE":"Released","APP_STATUS_DRAFT":"Unreleased","APP_STATUS_SUSPENDING":"Suspending","APP_TEMPLATE_EMPTY_DESC":"Please create an app template.","LATEST_VERSION":"Última versión","CREATE_APP_TEMPLATE":"Crear Plantilla de Aplicación","CREATE_APP_TEMPLATE_DESC":"La ligera, portable y autocontenida tecnología de empaquetado de software, permite que las aplicaciones se ejecuten de la misma manera en casi cualquier lugar.","APP_CREATE_GUIDE":"Ver la especificación de desarrollo de aplicaciones","UPLOAD":"Subir","UPLOAD_HELM_TITLE":"Subir un Chart de Helm empaquetado","UPLOAD_HELM_CHART_DESC":"Subir un Chart de Helm existente","HELM_CHART_FORMAT_DESC":"Subir tu Chart de Helm en el formato de fichero tar.gz o tgz.","UPLOAD_ICON":"Subir icono","UPLOAD_SUCCESSFUL":"Subida Satisfactoriamente","UPLOADING":"Subiendo","FILE_MAX_SIZE_ICON":"The maximum size of the icon is 96x96 pixels.","FILE_MAX_SCREENSHOTS":"El tamaño de la imagen no debe exceder 2M","APP_ICON_NOTE":"JPG o PNG menor o igual a 96px * 96px","MISS_FILE_NOTE":"No se encuentra el fichero {file}","LICENSE_FILE_DESC":"Protocolo en formato de texto","CHART_FILE_DESC":"YAML file that describes basic information about the chart such as the name and version.","README_FILE_DESC":"Introducción a la aplicación e instrucciones","REQUIREMENTS_FILE_DESC":"Archivos de descripción para almacenar otros charts que actualmente dependen del chart","VALUES_FILE_DESC":"Archivo de configuración predeterminado del chart","CHARTS_FILE_DESC":"Coloque otros chartys de los que depende actualmente el chart en este directorio","TEMPLATES_FILE_DESC":"Despliega el directorio de plantilla de archivo, completa el valor correspondiente en values.yaml y genera el archivo de configuración final de kubernetes","NOTES_FILE_DESC":"Guía de uso","INCORRECT_FILE":"Incorrect files? ","TRY_AGAIN":"Try Again","FILE_MAX_ICON_DESC":"The icon size should not exceed 20 KB. Please try again.","HOMEPAGE":"Página principal","OPTIONAL":"Opcional","DEVOPS_TIP_GITOPS_Q":"How do I get started with DevOps?","DEVOPS_TIP_GITOPS_A":"You can start using DevOps by creating a pipeline that is associated with the code repository and deploying steps with Kubernetes.","DEVOPS_TIP_TYPE_Q":"Which code repositories are supported by pipelines?","DEVOPS_TIP_TYPE_A":"Pipelines support code repositories of Git, GitHub, Gitlab, SVN, and Bitbucket.","DEVOPS_PROJECT_EMPTY_DESC":"Please create a DevOps project.","CREATE_DEVOPS_PROJECT":"Create DevOps Project","DEVOPS_PROJECT_CREATE_DESC":"DevOps is a separate namespace that defines a set of pipelines. Users can group their pipelines themselves (for example, project type and organization type).","DEVOPS_BASEINFO_DESC":"Please set the basic information of the DevOps project","PATTERN_NAME_INVALID_TIP":"Invalid name. The name can contain only lowercase letters, numbers, and hyphens (-).","NO_DEVOPS_INSTALL":"DevOps not installed","DEVOPS_ADMIN_DESC":"Select a project member as the project administrator.","DELETE_MULTIPLE_DEVOPS_PROJECTS":"Delete Multiple DevOps Projects","DELETE_DEVOPS_PROJECT":"Delete DevOps Project","DELETE_DEVOPS_PROJECT_TIP":"Enter the DevOps project name {resource} to confirm that you understand the risks of this operation.","DELETE_DEVOPS_PROJECT_TIP_PL":"Enter the DevOps project names {resource} to confirm that you understand the risks of this operation.","HOW_TO_APPLY_MORE_CLUSTER_Q":"¿Cómo solicitar más clústeres para el espacio de trabajo?","HOW_TO_APPLY_MORE_CLUSTER_A":"Contact the platform or cluster administrator to apply for more clusters.","OVERVIEW":"Visión global","WORKSPACE_OVERVIEW_DESC":"Workspace proporciona a KubeSphere una plataforma segura, aislada y accesible. Aquí puedes ver el estado de ejecución de los recursos en el espacio de trabajo actual.","ROLE_PL":"Roles","PHYSICAL_RESOURCES":"Uso de recursos físicos","CRONJOB":"CronJob","CLUSTER_VALUE":"Cluster: {value}","SORT_BY_WORKSPACE_MEMORY_USAGE":"Ordenar por uso de memoria (con cache)","SORT_BY_WORKSPACE_MEMORY_USAGE_WO_CACHE":"Ordenar por uso de memoria (sin cache)","SORT_BY_WORKSPACE_POD_COUNT":"Sort by pod quota usage (%)","SORT_BY_WORKSPACE_CPU_USAGE":"Ordenar por uso de CPU","SORT_BY_WORKSPACE_NET_BYTES_TRANSMITTED":"Ordenar por tráfico saliente","SORT_BY_WORKSPACE_NET_BYTES_RECEIVED":"Ordenar por tráfico entrante","PROJECT_EMPTY_DESC":"Please create a project.","CREATE_PROJECT":"Crear proyecto","CREATE_MULTI_CLUSTER_PROJECT":"Crear proyecto de clúster múltiple","CREATE_MULTI_CLUSTER_PROJECT_DESC":"Un proyecto multi-clúster se ejecuta sobre distintos clústers a la vez, lo que ayuda a que puedas construir un entorno de contenedores para una rápida iteración de aplicaciones y conseguir alta disponibilidad.","MULTI_CLUSTER_PROJECT_PL":"Proyectos de clústeres múltiples","FED_HOST_NAMESPACE_TIP":"Por favor, no manipules los recursos de este proyecto puesto que pertence a un proyecto multicluster","MULTI_CLUSTER_PROJECT":"Proyecto de clúster múltiple","PROJECT_NAME_EXISTS_IN_HOST":"The project name exists on the host cluster.","SELECT_CLUSTER_DESC":"Selecciona el clúster para crear el proyecto.","CLUSTER_EMPTY_DESC":"Selecciona un cluster, por favor.","PROJECT_NAME_EXISTS_IN_CLUSTER":"El nombre existe en {cluster}","PROJECT_CLUSTER_SETTINGS_DESC":"Selecciona el clúster para crear el proyecto. Cuando se seleccionan varios grupos, se creará un proyecto de múltiples grupos.","FEDPROJECT_CANNOT_ADD_CLUSTER":"Unable to add a new cluster","WORKSPACE_SETTINGS":"Configuración del espacio de trabajo","WORKSPACE_BASIC_INFO_DESC":"Basic information provides the overview of the workspace. You can view the basic information of the workspace.","WORKSPACE_BASE_INFO_Q1":"¿Cómo solicitar más clústeres para el espacio de trabajo?","WORKSPACE_BASE_INFO_A1":"Contact the platform or cluster administrator to apply for more clusters.","WORKSPACE_INFO":"Información del espacio de trabajo","WORKSPACE_MEMBER_TCAP":"Workspace member","WORKSPACE_MEMBER_TCAP_PL":"Workspace members","WS_MEMBER_SCAP":"Workspace member","WS_MEMBER_SCAP_PL":"Workspace members","DEVOPS_PROJECT_TCAP":"DevOps project","DEVOPS_PROJECT_TCAP_PL":"DevOps projects","DEVOPS_PROJECT_LOW":"DevOps project","DEVOPS_PROJECT_LOW_PL":"DevOps projects","PROJECTS":"Projects","ON":"On","OFF":"Off","WS_NETWORK_ISOLATION":"Aislamiento de red de espacio de trabajo","NETWORK_POLICY_UNINSATLLED_DESC":"The network policy component is not installed in this cluster.","DELETE_DESC":"Are you sure you want to delete the resource? The resource cannot be restored after it is deleted.","DELETE_WORKSPACE_PROJECTS_DESC":"Eliminar el proyecto asociado con el espacio empresarial","DELETE_WORKSPACE_DESC":"El espacio de trabajo no se puede restaurar después de ser eliminado y los recursos en el espacio de trabajo también se eliminarán.","DELETE_WORKSPACE_TIP":"¿Estás seguro de eliminar el espacio de trabajo {resource} ? No podrás recuperarlo, y los recursos en el espacio de trabajo también se eliminarán.","DEPARTMENT_PL":"Departments","DEPARTMENT_DESC":"A department in a workspace is a logical unit used for permission control. You can set a workspace role, multiple project roles, and multiple DevOps project roles in a department, and assign users to the department to control user permissions in batches.","NOT_ASSIGNED_TCAP":"Not Assigned","ADD_MEMBER_TIP_SI":"Are you sure you want to assign the user to {group}?","ADD_MEMBER_TIP_PL":"Are you sure you want to assign the users to the department {group}?","ASSIGNED":"Assigned","DEPARTMENT":"Department","SET_DEPARTMENTS":"Set Departments","DEPARTMENT_EMPTY_DESC":"No Department Available","NO_DEPARTMENT_TIP":"No department available. Please create a department on the right.","CREATE_DEPARTMENT":"Create Department","DELETE_GROUP_TIP":"Está seguro de eliminar el subdepartamento {group_name} ? Al eliminar el departamento, también se cancelará la autorización de todos los miembros. ","DELETE_PARENT_GROUP_TIP":"Está seguro de que desea eliminar el subdepartamento {group_name} ? Al eliminar el departamento, también se eliminarán sus subdepartamentos y se cancelará la autorización de todos los miembros. ","PROJECT_VALUE":"Project: {value}","PROJECT_ROLE_VALUE":"Project role: {value}","DEVOPS_VALUE":"DevOps project: {value}","DEVOPS_PROJECT_ROLES_VALUE":"DevOps project role: {value}","WORKSPACE_ROLE":"rol del espacio de trabajo","GROUP_WORKSPACE_ROLE_DESC":"La función del espacio de trabajo se asignará a todos los miembros del departamento.","MEMBER_CLUSTER_UPGRADE_TIP":"Member clusters with versions earlier than {version} do not support this function. Please upgrade the member clusters to {version} or later.","PROJECT_ROLE":"Rol del proyecto","SELECT_ROLE_TIP":"Please select a role.","ADD_PROJECT":"Agregar proyecto","CLUSTER_UPGRADE_REQUIRED":"The cluster version does not support this function. Please upgrade the cluster to {version} or later.","DEVOPS_PROJECT_ROLE":"DevOps Project Role","ADD_DEVOPS_PROJECT":"Agregar proyecto DevOps","DEVOPS_PROJECTS":"DevOps Projects","WORKSPACE_MEMBERS":"Workspace Members","WORKSPACE_MEMBER_PL":"Workspace Members","WORKSPACE_MEMBER_DESC":"Workspace members can view or manage workspace resources. You can manage members and control their permissions in the workspace.","WORKSPACE_MEMBER_EMPTY_DESC":"Please invite a user to the workspace.","ROLE":"Role","REMOVE_MEMBER":"Eliminar miembro","REMOVE_MULTIPLE_MEMBERS":"Remove Multiple Members","REMOVE_MULTIPLE_MEMBERS_TIP":"Enter the usernames {resource} to confirm that you understand the risks of this operation.","INVITE_WORKSPACE_MEMBER_DESC":"You can invite members to the workspace.","INVITE_MEMBER":"Invite Member","INVITE":"Invite","INVITED_SUCCESSFULLY":"Invited successfully.","REMOVE_MEMBER_TIP":"¿Estás seguro de que deseas eliminar el miembro {resource} ?","WORKSPACE_QUOTA_PL":"Workspace Quotas","WORKSPACE_QUOTAS_DESC":"Workspace quotas are used to control the total resource usage of all projects and DevOps projects in a workspace.","RESOURCE_QUOTA_PL":"Cuota de recursos","USED_PERCENT":"Used: {percent}%","RESOURCE_LIMIT":"Resource limit","EDIT_WORKSPACE_QUOTAS":"Edit Workspace Quotas","CPU_REQUEST":"CPU Request","CPU_LIMIT":"limit.cpu","MEMORY_REQUEST":"Memory Request","MEMORY_LIMIT":"limits.memoria","WORKSPACE_ROLE_PL":"Roles del espacio de trabajo","WORKSPACE_ROLE_DESC":"El rol del espacio de trabajo determina los permisos del rol en el espacio de trabajo actual.","WORKSPACE_ROLE_EMPTY_DESC":"Please create a workspace role.","ROLE_WORKSPACE_ADMIN":"Manage all resources in the workspace.","ROLE_WORKSPACE_REGULAR":"Usuario normal en el espacio de trabajo que no puede crear espacios de nombres o proyectos DevOps.","ROLE_WORKSPACE_VIEWER":"Permite el acceso de lectura para ver todos los recursos en el espacio de trabajo.","ROLE_WORKSPACE_SELF_PROVISIONER":"Usuario normal en el espacio de trabajo que puede crear espacios de nombres y proyectos DevOps.","CREATE_WORKSPACE_ROLE":"Crear rol de espacio de trabajo","WORKSPACE_ROLE_NAME_TIP":"The role name is used as the unique identifier of the role.","NEXT_STEP":"Next Step","NEXT_STEP_DESC":"You need to further edit permissions of the role.","PERMIGROUP_PROJECTS_MANAGEMENT":"Projects","PERMISSION_PROJECTS_VIEW":"Project Viewing","PERMISSION_PROJECTS_VIEW_DESC":"View all projects in the workspace.","PERMISSION_PROJECTS_MANAGEMENT":"Project Management","PERMISSION_PROJECTS_MANAGEMENT_DESC":"Create, edit, and delete projects in the workspace.","PERMISSION_PROJECTS_CREATE":"Project Creation","PERMISSION_PROJECTS_CREATE_DESC":"Create projects and become an administrator of the created projects.","PERMIGROUP_DEVOPS_MANAGEMENT":"DevOps Projects","PERMISSION_DEVOPS_VIEW":"DevOps Project Viewing","PERMISSION_DEVOPS_VIEW_DESC":"View all DevOps projects in the workspace.","PERMISSION_DEVOPS_MANAGEMENT":"DevOps Project Management","PERMISSION_DEVOPS_MANAGEMENT_DESC":"Create, edit, and delete DevOps projects in the workspace.","PERMISSION_DEVOPS_CREATE":"DevOps Project Creation","PERMISSION_DEVOPS_CREATE_DESC":"Create DevOps projects and become an administrator of the created DevOps projects.","PERMISSION_APPS_MANAGEMENT":"Gestión de Alicaciones","PERMISSION_WORKSPACE_APP_REPOS_VIEW":"App Repository Viewing","PERMISSION_WORKSPACE_APP_REPOS_VIEW_DESC":"View app repositories in the workspace.","PERMISSION_WORKSPACE_APP_REPOS_MANAGEMENT":"App Repository Management","PERMISSION_WORKSPACE_APP_REPOS_MANAGEMENT_DESC":"Create, edit, and delete app repositories in the workspace.","PERMISSION_WORKSPACE_APP_TEMPLATES_VIEW":"App Template Viewing","PERMISSION_WORKSPACE_APP_TEMPLATES_VIEW_DESC":"View app templates in the workspace.","PERMISSION_WORKSPACE_APP_TEMPLATES_MANAGEMENT":"Gestión de plantillas de aplicaciones del espacio de trabajo","PERMISSION_WORKSPACE_APP_TEMPLATES_MANAGEMENT_DESC":"Upload, edit, and delete workspace app templates, and release and delete apps in the platform App Store.","PERMISSION_WORKSPACE_GROUPS_VIEW":"Department Viewing","PERMISSION_WORKSPACE_GROUPS_VIEW_DESC":"View the structure and members of workspace departments.","PERMISSION_WORKSPACE_GROUPS_MANAGEMENT":"Department Management","PERMISSION_WORKSPACE_GROUPS_MANAGEMENT_DESC":"Manage the structure, members, and permissions of workspace departments.","PERMISSION_WORKSPACE_MEMBERS_VIEW":"Vista de miembros del proyecto","PERMISSION_WORKSPACE_MEMBERS_VIEW_DESC":"View workspace members.","PERMISSION_WORKSPACE_MEMBERS_MANAGEMENT":"Gestión de miembros de proyecto","PERMISSION_WORKSPACE_MEMBERS_MANAGEMENT_DESC":"Invite, edit, and delete workspace members.","PERMISSION_WORKSPACE_ROLES_VIEW":"Vista de roles de proyecto","PERMISSION_WORKSPACE_ROLES_VIEW_DESC":"View workspace roles.","PERMISSION_WORKSPACE_ROLES_MANAGEMENT":"Gestión de Roles de Proyecto","PERMISSION_WORKSPACE_ROLES_MANAGEMENT_DESC":"Create, edit, and delete workspace roles except system preset roles.","PERMIGROUP_WORKSPACE_SETTINGS":"Configuración del espacio de trabajo","PERMISSION_WORKSPACE_SETTINGS_VIEW":"Workspace Settings Viewing","PERMISSION_WORKSPACE_SETTINGS_VIEW_DESC":"Usuario normal en el espacio de trabajo que no puede crear espacios de nombres o proyectos DevOps.","PERMISSION_WORKSPACE_SETTINGS_MANAGEMENT":"Workspace Settings Management","PERMISSION_WORKSPACE_SETTINGS_MANAGEMENT_DESC":"Manage workspace settings and edit workspace information and network policies.","abortPipeline":"abortPipeline","Absolute duration":"Duración total","Add another credential":"Agregar otra credencial","Add conditions":"Agregar condiciones","Add nesting conditions":"Agregar condiciones anidadas","Add nesting steps":"Agregar pasos anidados","Add Parallel Stage":"Agregar pasos paralelos","Add Step":"Agregar paso","archiveArtifacts":"archiveArtifacts","Are you sure to close this pipeline Editor ?":"¿Estás seguro de cerrar este editor de pipeline?","artifacts":"artefactos","Authentication Token":"Token de autenticación","Automatically generated by GitHub":"Generado automáticamente por GitHub","bcc":"bcc","BEHAVIORAL_STRATEGY":"Estrategia de comportamiento","blocker":"bloqueador","BLOCKER":"Blocker","NOTICE":"Notice","Branches":"Ramas","branch success":"Rama correcta","@somebody to help review":"¿Puede @alguien ayudar a revisar esto?","Send messages by email":"Puedes enviar mensajes por correo electrónico.","Send messages in the build":"Puedes enviar mensajes en la compilación","Change Current Directory":"Cambiar directorio actual","Chinese is not allowed in the pipeline configuration":"El chino no está permitido en la configuración de la pipeline","Clean when aborted":"Limpiar cuando aborte","Clean Workspace":"Limpiar entono de trabajo","Code Quality Check":"Código de control de calidad","COMMIT_ID":"Commit ID","Config File Path":"Ruta del archivo de configuración","config name":"nombre de configuración","configs":"configs","Configuration error":"Error de configuración","container":"contenedor","Continue":"Seguir","credential Id":"ID de autentificación","Credential Id":"ID de autentificación","credentialsId":"credenciales","critical":"crítico","Current branch name must match the input value":"El nombre de la rama actual debe coincidir con el valor de entrada","defaultValue -1 means not to discard":"defaultValue -1 significa no descartar","Delete all resources of the deployment file":"Eliminar todos los recursos del archivo de despliegue","Deploy resources to the Kubernetes cluster":"Implementar recursos en el clúster de Kubernetes","Didn't pass":"No pasó","dir":"directorio","Discard":"Descarte","Discover branches from repository":"Descubrir ramas desde el repositorio","DISCOVER_PR_FROM_FORKS":"Descubrir PR desde Forks","DISCOVER_PR_FROM_ORIGIN":"Descubrir PR desde Origin","Discover pull requests from forks":"Descubrir las PR desde forks","Discover pull requests from origin":"Descubrir las PR desde origin","Docker Container Registry Credentials":"credenciales de Docker Container Registry","Docker Registry URL":"URL del Docker Registry","dockerCredentials":"dockerCredentials","Drag and drop tasks to sort":"Arrastra y suelta tareas para ordenar","Duration":"Duración","echo":"echo","Edit Config":"Editar la configuración","Edit Credential":"Editar credenciales","Enable Variable Substitution in Config":"Habilitar la sustitución de variables en la configuración","enableConfigSubstitution":"enableConfigSubstitution","Enter an expression":"Introdir una expresión","Environment name":"Nombre del entorno","Executes the code inside the block with a determined time out limit.":"Ejecuta el código dentro del bloque con un límite de tiempo determinado.","expression":"expresión","Failure":"Fallo","For accessing GitHub":"Para acceder a GitHub","get token":"obtener token","info":"informacion","input":"entrada","Inspection results do not affect subsequent tasks":"Los resultados de la inspección no afectan las tareas posteriores.","instance failed to match at least one schema":"la instancia no ha modido compararse con al menos un esquema","Internal nested conditions only need to satisfy one":"Las condiciones anidadas solo necesitan cumplir una condición","Internal nesting conditions must be matched":"Las condiciones internas de anidación deben coincidir","Jenkinsfile syntax error, message":"Error de sintaxis de Jenkinsfile, mensaje","key File Variable":"variable de archivo clave","keyFileVariable":"keyFileVariable","Kubeconfig Variable":"Variable de Kubeconfig","Kubernetes Namespace for Secret":"Namespace de Kubernetes para el Secret","Kubernetes Secrets":"Secrets de Kubernetes","Line":"Línea","Load credentials into environment variables":"Cargue credenciales en variables de entorno","Load the sonarqube configuration provided by Jenkins into the Pipeline.":"Cargue la configuración de sonarqube proporcionada por Jenkins en la Pipeline.","mail":"correo","major":"mayor","minor":"menor","Missing one or more required properties: 'name'":"Falta una o más propiedades requeridas: 'nombre'","Negative prefix":"Prefijo negativo","NO_BRANCH_FOUND_TIP":"No se encontraron ramas","No need":"No necesario","Normal":"Normal","Not Build":"Sin Build","Not fail build":"Build no fallida","not support edit nested stage":"no admite editar en la fase anidada","passphrase Variable":"Variable de passphrase","passphraseVariable":"passphraseVariable","Password Variable":"Variable de contraseña","passwordVariable":"Variable de contraseña","PIPELINE_LOW":"pipeline","Pipeline Configuration":"Configuración de Pipeline","Pipeline List":"Lista de Pipelines","pipeline syntax error":"error de sintaxis en la Pipeline","Please add at least one step.":"Por favor agregue al menos un paso.","Please input images name":"Por favor introduce el nombre de las imágenes","Please input the credential name.":"Por favor introduce el nombre de la credencial.","Press enter for the next":"Presione enter para ir al siguiente paso","Print message":"Imprimir mensaje","Pull code by Git":"Pull código con Git","Pull code by SVN":"Pull código con SVN","Queue":"Cola","Recipient":"Recipiente","Registry Credentials":"Credenciales de registro","remote":"remoto","Run Pipeline":"Ejecutar pipeline","Save Artifact":"Guardar artefacto","Repo Scanned Successfully":"Repo Scanned Successfully","WEBHOOK_PUSH":"Webhook Push","secretName":"secretName","secretNamespace":"secretNamespace","SELECT_THIS_REPOSITORY":"Selecciona este repositorio","Sender":"Remitente","sh":"sh","Shell commands can be executed in the container":"Los comandos de shell se pueden ejecutar en el contenedor","Show Advanced Settings":"Mostrar configuración avanzada","show yaml editor":"muestre el editor de yaml","sonar is the default config name.":"sonar es el nombre de configuración predeterminado.","Sorry, you don't have the permission to do this.":"Lo sentimos, no tienes permiso para hacer esto.","Specify a container to add nested tasks to execute inside the container":"Especifique un contenedor para agregar tareas anidadas para ejecutar dentro del contenedor","Start the follow-up task after the inspection":"Inicie la tarea de seguimiento después de la inspección.","Started By":"Empezado por","Subject":"Tema","submitter":"remitente","submitterParameter":"submitterParameter","Text Variable":"Variable de texto","The conditions required to implement the current phase (optional).":"Las condiciones requeridas para implementar la fase actual (opcional).","The environment variable entered before running the pipeline is match the current value.":"La variable de entorno ingresada antes de ejecutar la pipeline coincide con el valor actual.","The label on which to run the Pipeline or individual stage":"La etiqueta en la que se ejecuta la pipeline o la fase individual","This name has been used.":"Este nombre ha sido usado.","Time Used":"Tiempo utilizado","Timeout":"Se acabó el tiempo","timeout":"se acabó el tiempo","Timeout after no activity in logs for this block":"Tiempo de espera agotado tras inactividad en los logs deregistro de este bloque","timer":"temporizador","TRIGGER_REMOTE_BUILD":"Ejecutar una build remota (por ejemplo, usando un script)","Unnamed":"Sin nombre","Use the following URL to remotely triggerworkbench the build":"Utilice la siguiente URL para activar remotamente el triggerworkbench en el build","User types that can trigger builds":"Tipos de usuarios que pueden desencadenar compilaciones","username or group name, multiple values ​​used, separated":"nombre de usuario o nombre de grupo, múltiples valores utilizados, separados","Username Variable":"Variable Username","usernameVariable":"usernameVariable","waitForQualityGate":"waitForQualityGate","Webhook":"Webhook","withCredentials":"con credenciales","withSonarQubeEnv":"withSonarQubeEnv","Wrong Token":"Token incorrecto","You can execute shell commands or windows batch commands in the build.":"Puedes ejecutar comandos de shell o comandos por lotes de Windows en el build.","PIPELINE_DESC":"A pipeline is an extensible set of tools that can be combined\n to achieve continuous integration and continuous delivery.\n You can create and manage pipelines on this page.","username_password":"Credenciales de cuenta","login_Plateform":"Plataforma de inicio de sesión","CREDENTIALS_DESC":"Credentials are objects that contain some sensitive data,\n such as username and password, SSH key and Token.\n They are used to provide authentication for pulling code,\n pushing/pulling images, executing SSH scripts, etc. when a pipeline is running.","AUTHENTICATION_TOKEN_TIP":"Enable this option if you need to\n trigger a build by accessing a predefined URL.\n A typical use of this feature is to trigger through the source code\n management system's hook script.\n You need to provide an authorization token in the form of a string so that\n only the person with the authorization token can trigger the remote build.","CRON_TIP":"This field follows the cron syntax (slightly different).\n Specifically, each line contains 5 fields separated by tabs or spaces.\n minutes: the first few minutes of an hour (0-59)\n hours: the first few hours of the day (0-23)\n the days of the month: the first few days of a month (1-31 )\n Month: The first few days of the first few days (0-12), the first few days of the week (0-12),\n 0 and 7 are Sundays. ","PIPELINES_BASEINFO_DESC":"Introduce la información básica de la pipeline.","PIPELINE_ADVANCE_SETTINGS_DESC":"Configure una política de comportamiento compleja para la pipeline (Opcional).","CREDENTIALS_CREATE_DESC":"Crear credenciales para proyectos DevOps","CHECKOUT_DESC":"Código de extracción; a menudo se usa para extraer código no git, como svn.","PRIVATE_IMAGE_DESC":"To deploy from a private image repository,\n you need to create a mirrored repository and then pull the image. ","AUTHENTICATION_TOKEN_DESC":"Use the following URL to remotely trigger the build:\n JENKINS_URL / job / JOB_NAME / build? Token =TOKEN_NAME or /buildWithParameters?\n Token = TOKEN_NAME You can choose to append &cause=reason to provide the text that\n will be included in the build reason for the record. ","PIPELINE_NO_CONFIG":"El archivo de configuración relevante no se encontró en la pipeline actual","EDIT_CREDENTIAL_DESC":"El siguiente formulario no mostrará la información de credenciales original. Volver a ingresarlo lo sobrescribirá.","pipeline_conditions":"Condiciones","CODE_SMELL":"Olor de código","BUG":"Insecto","VULNERABILITY":"Vulnerabilidad","SECURITY_HOTSPOT":"Punto de acceso de seguridad","PIPELINE_CREATE_DESC":"La ejecución de la tarea de Pipeline comenzará después de que se complete la inicialización.","PIPELINE_QUEUED_DESC":"Debe esperar a que el agente se inicie y ejecute la canalización (tenga en cuenta que si el agente no se ha iniciado durante mucho tiempo, verifique la configuración del agente y los recursos del clúster).","waitForQualityGate_desc":"Los estándares de control de calidad del código se derivan de la puerta de calidad de SonarQube. Si necesita personalizar los estándares, vaya a la configuración de SonarQube.","REVIEW_DESC":"Cuando la pipeline se ejecute aquí, esta tarea se suspenderá y podrás optar por continuar o finalizar después de la revisión.","INPUT_DESC":"Cuando la canalización se ejecuta aquí, la tarea se suspenderá, y el creador y @somebody pueden elegir continuar o finalizar la canalización.","LoadPrevData_Desc":"Se detectó que esta pipeline no se editó correctamente la última vez. ¿Se cargan los últimos datos para continuar editando?","withSonarQubeEnv_DESC":"Localice rápidamente errores potenciales u obvios en su código","waitForQualityGate_DESC":"Ejecutado después de realizar el análisis de código","script_DESC":"Ejecutar script maravilloso","pipeline_owner":"El propietario del proyecto DevOps, con la máxima autorización del proyecto, puedes realizar todas las operaciones.","pipeline_maintainer":"El responsable del proyecto DevOps puedes realizar credenciales y configuración de canalización en el proyecto DevOps","pipeline_developer":"El desarrollador del proyecto DevOps puedes activar y ver la pipeline","pipeline_reporter":"El observador del proyecto DevOps solo puedes ver los recursos del proyecto","PATTERN_PIPELINE_NAME_VALID_NAME_TIP":"Nombre no válido (admite letras mayúsculas y minúsculas, números, \"_\" y \"-\")","GET_GITHUB_TOKEN_DESC":"Para acceder a GitHub\n \n Get Token\n ","PIPELINES_FOOTER_SEE_MORE":"Vaya a la página de detalles de la sucursal para ver más.","JENKINS_LINS_ERROR":"tiene un error de sintaxis en la línea {line}.","Invalid credential ID":"Invalid credential ID","Batch Run Fail":"Batch Run Failed","Run Start":"Start Running","Choose a Pipeline Template":"Choose a Pipeline Template","DEVOPS_PROJECT_DESC":"DevOps projects are used to group resources and control the resource management permissions of different users."} \ No newline at end of file diff --git a/packages/bootstrap/assets/v3dist/locale-es.de7363fe0310e94f60c9.json b/packages/bootstrap/assets/v3dist/locale-es.de7363fe0310e94f60c9.json new file mode 100644 index 00000000000..fec04960018 --- /dev/null +++ b/packages/bootstrap/assets/v3dist/locale-es.de7363fe0310e94f60c9.json @@ -0,0 +1 @@ +{"DELETE_CUSTOM_SCALING_WITH_WORKLOAD":"Associated custom scaling policies will be deleted after the workload is deleted.","ENT_TITLE":"KubeSphere Enterprise","KS_QKCP_DESCRIPTION":"KubeSphere Enterprise is an enterprise-grade container platform developed by QingCloud based on the open-source KubeSphere platform.","ABOUT_KUBESPHERE_ENTERPRISE":"About KubeSphere Enterprise","KUBESPHERE_CLOUD_DESC":"KubeSphere Cloud builds a Kubernetes-centric digital ecosystem to provide customers with enterprise-level cloud-native services of high quality. It offers KubeSphere Backup, Inspector, and Lite to help you manage, protect, and deliver production-ready applications more efficiently.","APP_AUTHORIZED":"App is authorized","APP_UNAUTHORIZED":"The application is not authorized","APP_UNAUTHORIZED_DESC":"This app is unauthorized.","VIEW_EVENTS":"View Events","GPU_MEMORY":"Graphics memory","EDIT_TAGS":"Edit Tags","ADD_TAGS":"Add Tags","GPU_TEMP":"GPU Temperature","GPU_ENERGY_USAGE":"GPU Power (W)","GPU_ENERGY_NO_PERCENT_TCAP":"GPU Power","GPU_MEMORY_USAGE_STATUS":"Graphics Memory Usage","NODE_GPU_MEMORY_USAGED":"Used","NODE_GPU_MEMORY_UNUSAGED":"Available","ENT_CLUSTER_GATEWAY_DESC":"Set up and manage the configuration of the external network access gateway and service management in the cluster, workspace and project.","ENT_CLUSTER_ENABLE_GATEWAY_DESC":"Before creating a route, you need to enable the external network access portal, that is, the gateway. This step is to create the corresponding route controller to forward requests to the back-end service.","WORKSPACE_GATEWAY_PL":"Workspace Gateways","WORKSPACE_GATEWAY_NOT_ENABLED":"Workspace Gateway Not Enabled","ENT_WORKSPACE_ENABLE_GATEWAY_DESC":"The workspace gateway cannot be set on the cluster management page. If you need to set it, go to the corresponding workspace.","ENT_PROJECT_ENABLE_GATEWAY_DESC":"The project gateway cannot be set on the cluster management page. If you need to set it, go to the corresponding project.","OPENSEARCH_DESC":"You can use the OpenSearch log receiver to ingest log data into an OpenSearch database. To use this feature, you need to deploy OpenSearch in advance.","LOG_COLLECTION_OS_URL_TIPS":"IP address or hostname of the target OpenSearch instance","LOG_COLLECTION_OS_USER_TIPS":"Optional username credential for access","LOG_COLLECTION_OS_PASSWORD_TIPS":"Password for user defined in HTTP_User","BATCH_MANAGE":"Batch Manage","HAS_SAME_TAG":"The tag already exists. Please select another tag.","CLUSTER_REPEATED_TAGS_DESC":"The tag keys must be unique for each cluster.","CLUSTER_MAX_TAGS_DESC":"The cluster can bind up to five tags.","EMPTY_TAG_LABEL_DESC":"Please enter the tag key","EMPTY_TAG_VALUE_DESC":"Please enter the tag value","HAS_ADD_TAGS":"Added tags","CLUSTER_TYPE_DESC":"Select a type to identify the purpose of the cluster.","DELETE_CLUSTER_SWIPE_DESC":"I understand the risks of this operation.","DELETE_CLUSTER_NOTIFICATION_CONFIGURAITON":"Delete all notification configuration data in the cluster","REMOVE_CLUSTER_TIP_C":"After the cluster is removed, multi-cluster configuration data in the cluster will not be cleared automatically. Uninstalling KubeSphere or deleting related resources may cause user data loss. You must manually clear the multi-cluster configuration data in the removed cluster by refering to the \"Remove a Member Cluster\" section in the KubeSphere Enterprise Cluster Management Guide.","CLUSTER_TAG":"Cluster Tag","CLUSTER_TAGS":"Cluster tags","NO_CLUSTER_TAGS":"No cluster tags found","NO_CLUSTER_TAGS_DESC":"Please create a cluster tag","CLUSTER_TAG_ADD_HELP":"If there is no appropriate tag, you can","CLUSTER_TAG_TOOLTIP_CONTENT":"Only one tag value of the same tag key can be bound on the same cluster. Each cluster can bind up to 5 tags. ","CLUSTER_LABEL":"Cluster ID","CLUSTER_LABEL_DESC":"Identifies the purpose of the cluster. ","CLUSTER_LABEL_TOOLTIP_CONTENT":"It is recommended to identify the cluster by label, and the \"cluster identification\" function will be removed in subsequent versions, please use it with caution. ","TAG_PL":"Tags","CREATE_TAGS":"Create Tags","CREATE_TAGS_DESC":"The keys of different tags can be the same.","ENT_CLUSTER_TAG_DESC":"The key and value cannot be empty. The maximum length is 63 characters.","CLUSTER_TAG_EMPTY_DESC":"Please add a tag.","DELETE_MULTIPLE_TAGS":"Delete Multiple Tags","DELETE_TAG":"Delete Tag","DELETE_CLUSTER_TAG_DESC":"All clusters bound to the tag will be unbound after the tag is deleted.","DELETE_CLUSTER_TAG_CONFIRM_DESC":"Please enter the tag key and value {resource} to confirm that you understand the risks of this operation.","DELETE_CLUSTER_TAGS_CONFIRM_DESC":"Please enter the tag key value {resource} to confirm you understand the risk of this operation.","EDIT_TAG":"Edit Tag","ADD_TO_CLUSTERS":"Add to Clusters","ADD_TAG_TO_CLUSTERS":"Add Tag to Clusters","ADD_TAG_DESC":"The tag keys must be unique for each cluster. New tags do not overwrite existing tags.","ADD_TAG_SUCCESSFUL":"The tag was added successfully.","REMOVE_FROM_CLUSTERS":"Remove from Clusters","REMOVE_TAG_FROM_CLUSTERS":"Remove Tag from Clusters","REMOVE_TAG":"Remove Tag","REMOVE_TAG_DESC":"Are you sure you want remove the tag from the cluster?","REMOVE_TAG_SUCCESSFUL":"The tag was removed successfully.","NO_CLUSTER_FOUND":"No Cluster Found","NAME_DESC_LENGTH":"The name can contain only lowercase letters, numbers, and hyphens (-), and must start and end with a lowercase letter or number. The maximum length is {length} characters.","INVALID_NAME_DESC_LENGTH":"Invalid name. The name can contain only lowercase letters, numbers, and hyphens (-), and must start and end with a lowercase letter or number. The maximum length is {length} characters.","DEFAULT_IMAGE_REGISTRY":"Default image registry","DEFAULT_IMAGE_REGISTRY_TCAP":"Default Image Registry","SET_AS_DEFAULT":"Set as Default","SET_AS_DEFAULT_REGISTRY_DESC":"Set the image registry as the default image registry. Unless otherwise specified, the system uses images from the default image registry to create containers. Only one default image registry is allowed in each project.","SET_DEFAULT_REGISTRY_SUCCESSFUL":"The registry was set as the default image registry successfully.","ACTIVATION_CONDITION_SCAP":"Activation condition","ALERTING_RULE_NAME":"Alerting Name","REFERENCE":"Reference","NO_MONITOR_METRIC":"The alert rule is inactive and no monitoring data is available.","DISABLE_MULTIPLE_ALERTING_POLICIES":"Disable Multiple Rule Groups","ENABLE_ALERTING_POLICY":"Enable Rule Group","ENABLE_MULTIPLE_ALERTING_POLICIES":"Enable Multiple Rule Groups","DISABLE_ALARM_TIP":"After the rule group is disabled, the system will stop generating alerts for the monitored resources. Exercise caution when performing this operation.","RESET_MULTIPLE_ALERTING_POLICIES":"Reset Multiple Rule Groups","RESET_MULTIPLE_ALERTING_POLICIES_DESC":"Are you sure you want to reset the rule groups {name}?","RESET_SUCCESSFUL":"Reset successful","BUILT_IN_POLICIES_TOOLTIP":"After the Whizard Observability Center is enabled, please log in as a user assigned the platform-admin role and manage default rule groups in the Whizard Observability Center.","Rule":"Rule","RULES_LIST_EMPTY":"Please set an alert rule.","DURATION_REQUIRED":"Please set the duration.","OPERATOR_REQUIRED":"Please set the operator.","NETWORK_BANDWIDTH":"Network Bandwidth","FUNCTION_UPGRADE":"Enhanced Features","FUNCTION_UPGRADE_DESC":"This cluster does not support disabling and migration of pod IP pools and editing of the Overlay mode. If you need to use these features, please upgrade the cluster to KubeSphere Enterprise 3.4.0 or later.","IPPOOL_OVERLAY_MODE":"Overlay Mode","IPPOOL_BLOCK_SIZE":"IP Pool Block Size","EDIT_OVERLAY":"Edit Overlay Mode","FEATURE_UPGRADE":"Feature Upgrade","IPPOOL_USED_TIP":"The pod IP pool is used by pods, so you cannot assign a workspace or delete the IP pool. If there are pods using the pod IP pool, you need to assign other pod IP pools to the pods or delete the pods.","IP_POOL_RANGE":"IP Pool Range","EDIT_POD_IP_POOL":"Edit Pod IP Pool","ENTER_NETWORK_SEGMENT":"Please enter a network segment.","POD_IP_POOL_IP_RANGE":"The IP range of the pod IP pool.","POD_IP_POOL_NAME_DESC":"It can contain only lowercase letters, numbers, and hyphens (-), and must start and end with a number or lowercase letter. The maximum length is 63 characters.","IPIP_MODE":"IPIP Mode","IPIP_MODE_REQUIRED":"Please select an IPIP mode.","IPIP_MODE_DESC":"Create an IP in IP tunnel on each node to enable communication between containers. You can either set the IPIP or the VXLAN mode. If you set the values of the IPIP and the VXLAN modes to Never, BGP mode will be used.","CONFIGURATION_MODE":"Configuration Mode","VXLAN_MODE":"VXLAN Mode","VXLAN_MODE_REQUIRED":"Please select a VXLAN mode.","VXLAN_MODE_DESC":"Create a VXLAN tunnel on each node to enable communication between containers. You can either set the IPIP or the VXLAN mode. If you set the values of the IPIP and the VXLAN modes to Never, BGP mode will be used.","IP_POOL_BLOCK_SIZE_DESC":"The CIDR size of the block used to allocate IP addresses.","NAT_OUTGOING_DESC":"Collapse IPPool communication through NAT","OPEN_NAT_OUTGOING":"Open NAT outgoing","CLOSE_NAT_OUTGOING":"Close NAT outgoing","OPEN":"Open","OPENED":"Opened","CLOSED":"Closed","OPENED_SUCCESSFUL":"Open Successful","CLOSED_SUCCESSFUL":"Close Successful","SELECT_NODE_DES":"Use the label selector to match the appropriate nodes for the IP pool.","SELECT_LABEL_ALL_RESOUCE":"Matches all resources in the tag selection range.","ALL_DISABLED":"Disable All","DISABLE_SELECT_NODE":"Disable Select Node","NODE_RANGE":"Node Range","LABEL_SELECT":"Label Select","EDIT_OVERLAY_MODE":"Edit Overlay Mode","DISABLE_POD_IP_POOL":"Disable Pod IP Pool","DISABLE_POD_IP_POOL_DESC":"After disabling the container group IP pool, the allocation of IP addresses will not continue, nor will it affect the network of container groups that have already been assigned IP addresses. When migrating container group IPs, the number of available addresses in the new IP pool cannot be less than the IP addresses used by the current IP pool. After the migration is completed, the workload will be restarted. Disabling the ip pool automatically unbinds the project. Exercise caution when performing this operation.","MIGRATE_POD_IP_POOL":"Migrate Pod IP Pool","MIGRATE_POD_IP_POOL_DESC":"Migrate the pod that has been assigned an IP address to a new pod IP pool.","SELECT_POD_IP_POOL":"Please select a pod IP pool.","MIGRATE_POD_IP_POOL_TIP":"The IP address of the pod will be allocated according to the selected pod IP pool.","SELECT_POD_IP_POOL_DESC":"Please select a pod IP pool.","IPPOOL_AUTO_ASSIGN":"Automatic allocation","IPPOOL_IS_AUTO_ASSIGN":"Automatically allocate or not","CREATED_AGO":"Created {diff}","UPDATED_AGO":"Updated {diff}","GPU_USAGE_SCAP":"GPU usage","GPU_MEMORY_USAGE_SCAP":"Graphics memory usage","QUOTA_USAGE":"Usage","PROJECT_CONFIG_QUOTAS_TIP":"Only data of projects with resource limits and requests is displayed.","APPLICATION_CLUSTER_QUOTA_STATISTICS":"Cluster Quota Statistics","CPU_QUOTA":"CPU Quota","MEMORY_QUOTA":"Memory Quota","SORT_BY_NODE_GPU_UTILIZATION":"Sort by GPU usage (%)","SORT_BY_NODE_GPU_MEMORY_UTILIZATION":"Sort by graphics memory usage (%)","SORT_BY_NAMESPACE_GPU_USAGE":"Sort by GPU usage","SORT_BY_NAMESPACE_GPU_MEMORY_USAGE":"Sort by graphics memory usage","SORT_BY_WORKLOAD_GPU_USAGE":"Sort by GPU usage","SORT_BY_WORKLOAD_GPU_MEMORY_USAGE":"Sort by graphics memory usage","SORT_BY_WORKSPACE_GPU_USAGE":"Sort by GPU usage","SORT_BY_WORKSPACE_GPU_MEMORY_USAGE":"Sort by graphics memory usage","SORT_BY_NODE_GPU_USAGE":"Sort by GPU usage","SORT_BY_NODE_GPU_MEMORY_USAGE":"Sort by graphics memory usage","SORT_BY_CLUSTER_GPU_USAGE":"Sort by GPU usage","SORT_BY_CLUSTER_GPU_MEMORY_USAGE":"Sort by graphics memory usage","NODE_RESOURCE_USAGE":"Node Resource Usage","USED_VALUE_CORES_PERCENTAGE":"Used: {value, plural, =1 {1 core} other {# cores}} ({percentage})","USED_VALUE_UNIT_PERCENTAGE":"Used: {value} {unit} ({percentage})","TOTAL_VALUE_CORES":"Total: {value, plural, =1 {1 core} other {# cores}}","TOTAL_VALUE_UNIT":"Total: {value} {unit}","ENT_ENABLE_GATEWAY_TIP":"To use the gateway, please configure the gateway in the cluster, workspace or project.","ANNOTATION_FORMAT_DESC":"The annotation key can contain only letters, numbers, hyphens (-), underscores (_), slashes (/), and dots (.), and must start and end with a letter or number. The maximum length is 63 characters (if the key contains a domain name, the maximum length is 253 characters).","UNCLASSIFIED":"Unclassified","FILE_STORAGE":"File Storage","BLOCK_STORAGE":"Block Storage","storageclasses":"Storage Classes","EDGE_GPU_MEMORY_USAGE_SCAP":"GPU memory usage","NPU_USAGE_SCAP":"NPU usage","NPU_MEMORY_USAGE_SCAP":"NPU memory usage","NPU_USAGE":"NPU usage","NPU_MEMORY_USAGE":"NPU memory usage","EDGE_GPU_MEMORY_USAGE":"GPU memory usage","EDGE_GPU_MEMORY_UTILIZATION":"GPU memory usage (%)","EDGE_GPU_MEMORY_USAGE_STATUS":"GPU memory usage status","EDGE_NODE_GPU_MEMORY_USAGED":"Memory used,","EDGE_NODE_GPU_MEMORY_UNUSAGED":"Free video memory","NPU_TEMP":"NPU temperature","NPU_ENERGY_NO_PERCENT_TCAP":"NPU Power","NPU_VOLTAGE":"NPU voltage","NPU_MEMORY_USAGE_STATUS":"NPU video memory usage status","EDGE_NODE_NPU_MEMORY_USAGED":"NPU video memory used,","EDGE_NODE_NPU_MEMORY_UNUSAGED":"Unused NPU video memory,","NPU_HEALTH_STATUS":"NPU health status","APPLICATION_RESOURCE_QUOTAS":"Application Resource Quotas","UNAUTHORIZED_FEATURE":"Unauthorized Feature","UNAUTHORIZED_FEATURE_DESC":"This feature is unauthorized. Please update the license to use this feature.","ADMIN_INACTIVATED_LICENSE_DESC":"KubeSphere Enterprise is not activated. Please activate KubeSphere Enterprise.","INACTIVATED_LICENSE_DESC":"KubeSphere Enterprise is not activated. Please contact a platform administrator to activate KubeSphere Enterprise.","ADMIN_SUB_EXPIRED_LICENSE_DESC":"The subscription has expired. To try the full version of KubeSphere Enterprise, update the license.","SUB_EXPIRED_LICENSE_DESC":"The subscription has expired. Please contact a platform administrator to update the license.","ADMIN_MA_EXPIRED_LICENSE_DESC":"The warranty has expired.","MA_EXPIRED_LICENSE_DESC":"The warranty has expired. Please contact a platform administrator to extend the warranty.","ADMIN_UPDATE_LICENSE_DESC":"The {type} service will expire in {day, plural, =1 {1 day} other {# days}}. ","UPDATE_LICENSE_DESC":"The {type} service will expire in {day, plural, =1 {1 day} other {# days}}. To try the full version of KubeSphere Enterprise, contact a platform administrator to update the license.","ADMIN_OVER_RESOURCE_LICENSE_LIMIT":"The managed resources exceed the scope of authorization, so you cannot manage existing resources and create new resources. To try the full version of KubeSphere Enterprise, update the license.","OVER_RESOURCE_LICENSE_LIMIT":"The managed resources exceed the scope of authorization, so you cannot manage existing resources and create new resources. To try the full version of KubeSphere Enterprise, contact a platform administrator to update the license.","ACTIVATE":"Activate","ADMIN_AUTHORIZED_INVALID_LICENSE_DESC":"Invalid license. Please update the license or contact KubeSphere technical support.","AUTHORIZED_INVALID_LICENSE_DESC":"Invalid license. Please contact a platform administrator to update the license.","EXPIRED_INVALID_LICENSE_DESC":"The license has expired. Please contact a platform administrator to update the license.","ADMIN_EXPIRED_INVALID_LICENSE_DESC":"The license has expired. Please update the license.","PLATFORM_FEATURES":"Platform Features","RADON_DB_FEATURES":"RadonDB Features","PASSWORD_CHARACTERS":"Contain at least 1 special character (~!@#$%^&*()-_=+\\|[{}];:'\",<.>/? or space).","I_AGREE_TO_THE":"I agree to the","TITLE_USERNAME":"{title} Username","TITLE_LOG_IN":"{title} Log In","NOTIFICATION_SUBSCRIPTION":"Notification Subscription","NOTIFICATION_SUBSCRIPTION_LOW":"Notification Subscription","NOTIFICATION_SUBSCRIPTION_DESC":"You can configure multiple recipients with different filter conditions for the same notification channel. ","NOTIFICATION_RECEIVER_EMPTY_DESC":"A notification subscription can be created. ","EDIT_NOTIFICATION_SUBSCRIPTION":"Edit Notification Subscription","CREATE_NOTIFICATION_SUBSCRIPTION":"Create Notification Subscription","NOTIFICATION_SUBSCRIPTION_DETAIL":"Notification Subscription Details","NOTIFICATION_SUBSCRIPTION_TOTAL":"Number of subscription accounts","NOTIFICATION_SUBSCRIPTION_ACCOUNT":"Notification Subscription Account","NOTIFICATION_EMAIL_SUBSCRIPTION_DESC":"Email notification subscription settings can be set by going to the notification subscription settings page. ","ADD_EMAIL_NOTIFICATION_SUBSCRIPTION":"Add email notification subscription","NOTIFICATION_RECEIVER_STATUS":"Notification reception status","NOTIFICATION_RECEIVER":"Notification receipt","NOTIFICATION_SUBSCRIPTION_PL":"Notification Subscription","NOTIFICATION_SUBSCRIPTION_EMPTY_DESC":"Please crate a notification subscription","NOTIFICATION_ENABLED":"Notification Enabled","NOTIFICATION_DISABLED":"Notification Disabled","ENABLE_SUCCESSFUL":"Enabled successfully.","NODE_TARGET_REPEAT":"Repeated monitoring target. Please select another monitoring target.","DEPLOYMENTS_VALUES":"Deployments: {values}","STATEFULSETS_VALUES":"Statefulsets: {values}","DAEMONSETS_VALUES":"Daemonsets: {values}","WORKLOADS_VALUES":"Workloads: {values}","RULE_NAME_REQUIRED":"Please enter a rule name.","MONITOR_TARGET_EMPTY":"Please select a monitoring target.","ALARM_TARGET_REPEAT":"Monitoring targets cannot be duplicated. Please select another monitoring target.","CLUSTER_FIELD_EMPTY":"Please select a cluster.","SELECT_A_TARGET_NODE":"Please select a node.","SET_NAMESPACE_BELONGS_TO":"Please select a project.","NAME_SPACE_REPEAT":"Projects cannot be duplicated. Please select another project.","THRESHOLD_INVALID":"Please enter a valid metric threshold.","SEVERITY_REQUIRED":"Please select an alert severity.","ALERT_RULE_REQUIRED":"Please enter a rule expression.","MESSAGE_REQUIRED":"Please enter message summary.","RULE_LABEL_SETTING":"Label setting","RULE_LABEL_SETTING_DESC":"Filter conditions can be specified in the receiver configuration to filter related labels. ","INCORRECT_KEY_DESC":"The key value is incorrect","MONITOR_TARGET_CLUSTER_DELETED_DESC":"The selected cluster contains a cluster that has been removed, please select again","CLUSTER_DELETED":"The cluster has been removed","DATA_ACCESS":"Data Access","DATA_QUERY":"Data Query","LONG_TERM_STORAGE":"Long-Term Storage","RULE_CALCULATION":"Ruler","CONTAINER_QUOTA":"Container Quotas","GATEWAY_COMPONENT_LOW":"Store Gateway","COMPONENT_REPLICA_COUNT":"Component Replicas","REPLICA_DESC":"Set the number of replicas of {resource}, and the default value is {default}.","DATA_ROUTER":"Router","DATA_RETENTION_LOW":"data rentetion","DATA_RETENTION_REPLICA_COUNT":"Data Retention Replicas","ROUTER_COMPONENT_LOW":"Router","LOCAL_STORAGE":"Local Storage","LOCAL_STORAGE_LOW":"local storage","LOCAL_STORAGE_TIME":"Local Data Storage Duration (Days)","LOCAL_STORAGE_TIME_DESC":"Set the storage duration of local data. The value at least 3, and the default value is 7.","LOCAL_STORAGE_ERROR_MESSAGE":"The number of replicas of the local storage component cannot be smaller than the number of data retention replicas.","BASIC_SETTING":"Basic Settings","CACHE_SETTING":"Cache Settings","QUERY_COMPONENT_LOW":"query component","CACHE_COMPONENT_LOW":"cache component","LONG_TERM_STORAGE_TIPS":"Please configure the parameters of object storage first, and then configure the parameters of the gateway, period, and downsampling.","STORAGE_NOT_ENABLED":"Long-term storage not enabled","STORAGE_ENABLE_GATEWAY_DESC":"After enabling long-term storage, you can configure component parameters for object storage, gateway, retention period, and downsampling.","OBJECT_STORAGE":"Object Storage","OBJECT_STORAGE_TIPS":"Please configure the parameters of the object storage first.","COMPACTOR":"Compator","STORE_GATEWAY":"Store Gateway","COMPRESSION_DOWNSAMPLING":"Compression and Downsampling","BUCKET":"Bucket","BUCKET_NAME_DESC":"The name of the s3 object storage bucket.","BUCKET_NAME_EMPTY_TIP":"Please enter the bucket name.","REGION":"Region","REGION_DESC":"The geographic region where you created the bucket.","ENDPOINT_DESC":"The AWS S3 object storage address to connect to.","ENDPOINT_EMPTY_TIP":"Please enter the endpoint.","ACCESS_KEY":"Access Key","ACCESS_KEY_DESC":"AWS account access key ID.","ACCESS_KEY_EMPTY_TIP":"Please enter the Access Key.","SECRET_KEY_DESC":"The secret associated with the AWS Access Key ID.","SECRET_KEY_EMPTY_TIP":"Please enter the Secret Key.","HTTP_PROTOCOL":"HTTP protocol","HTTP_PROTOCOL_DESC":"Use of insecure HTTP protocol.","ADD_STORAGE_CLASS":"Add storage class","ADD_STORAGE_CLASS_DESC":"Add user metadata for object storage.","OBJECT_STORAGE_PARAMETERS":"Object Storage Parameters","HTTP_CONFIGURATION":"HTTP configuration","HTTP_CONFIGURATION_DESC":"Configure the HTTP client that the receiver uses to communicate with the HTTP-based API service.","TLS_CERTIFICATE":"TLS certificate","TLS_CERTIFICATE_VERIFY":"Verify TLS certificate","TLS_CERTIFICATE_VERIFY_DESC":"Prove your identity or indicate that you are authorized to access an online service by submitting a digital certificate.","TLS_CONNECTION":"TLS connection","CA_CERTIFICATE_DESC":"The CA file used to verify the server certificate.","CERT_CERTIFICATE":"Cert file","CERT_CERTIFICATE_DESC":"Certificate file for client certificate authentication to the server.","KEY_FILE":"Key","KEY_FILE_DESC":"The key file used for client certificate authentication to the server.","SERVER_NAME_DESC":"ServerName extension to indicate the name of the server.","SERVER_CERTIFICATE_VERFICATION":"Server certificate verification","SERVER_CERTIFICATE_VERFICATION_DESC":"Prove your identity or indicate that you are authorized to access an online service by submitting a digital certificate.","RETENTION_RAW":"Raw data storage duration (days)","RETENTION_RAW_DESC":"Raw data storage duration. The raw data will be deleted after the duration expires.","RETENTION_FIVE_MIN":"5m downsampled data storage duration (days)","RETENTION_FIVE_MIN_DESC":"Specifies the data storage duration for downsampling to 1-hour intervals of data points.","RETENTION_ONE_HOUR":"1h downsampled data storage duration (days)","RETENTION_ONE_HOUR_DESC":"Specifies the data storage duration for downsampling to 1-hour intervals of data points.","DISABLE_STORAGE":"Disable long-term storage","DISABLE_STORAGE_DESC":"Are you sure to disable long term storage? After disabling, the object storage configuration will be removed, and the monitoring data will be retained but no longer queried.","ALERT_MANAGEMENT":"Alert Management","SELECT_CLUSTER":"Select Clusters","CUSTOM_PANEL_DESC":"Select to aggregate monitoring indicators of multiple clusters, and customize the global monitoring page of multiple clusters. ","WHIZARD_MONITORING.BUILT_IN_ALERTING_PL":"Built-in Alerts","WHIZARD_MONITORING.CUSTOM_ALERTING_PL":"Custom Alerts","WHIZARD_MONITORING.RESOURCE_RANKING_PL":"Resource Ranking","WHIZARD_MONITORING.RESOURCE_RANKING_DESC":"Resource Ranking displays the rankings of cluster resource usage.","WHIZARD_MONITORING.RESOURCE_MONITORING":"Resource Monitoring","WHIZARD_MONITORING.MULTI_CLUSTER_MONITOR":"Multi-cluster Monitoring","WHIZARD_MONITORING.PACK_UP":"Collapse","WHIZARD_MONITORING.UNFOLD":"Expand","WHIZARD_MONITORING.COLLAPSE_CLUSTER_LIST":"Collapse cluster list","WHIZARD_MONITORING.UNFOLD_CLUSTER_LIST":"Expand cluster List","WHIZARD_MONITORING.RESOURCE_FILTER":"Resource Query","WHIZARD_MONITORING.OBSERVABILITY_ALL_CLUSTERS":"All Clusters","WHIZARD_MONITORING.SUCCEEDED":"Succeeded","PERSISTENT_VOLUME_CLAIM_LOW_PL":"Persistent volume claims","GRAPHICS_MEMORY_USAGE":"Graphics Memory Usage","QUOTA_REQUEST":"Request","QUOTA_LIMIT":"Limit","QUOTA_TOTAL":"Total","CPU_QUOTA_USAGE":"Allocated CPU Resource","MEMORY_QUOTA_USAGE":"Allocated Memory Resource","QUOTA_ALLOCATED":"Allocated","VALUE_CORES":"{value, plural, =1 {1 core} other {# cores}}","VALUE_UNIT":"{value} {unit}","ALLOCATED_TOTAL":"Allocated/Total","CLUSTER_ROLES_AND_MEMBERS":"Cluster Members and Roles","CLUSTER_MEMBER_SCAP":"Cluster member","CLUSTER_MEMBERS_SCAP":"Cluster members","CLUSTER_ROLE_SCAP":"Cluster role","CLUSTER_ROLES_SCAP":"Cluster roles","OBSERVABILITY_CENTER":"Whizard Observability Center","DISTRIBUTED_OBSERVABILITY_CENTER_DESC":"Unified monitoring dashboard that provides metrics of all clusters managed by the platform.","GLOBAL_ALERTS":"Global Alerts","GLOBAL_ALERTS_TOOLTIP":"Only the alarms of the selected cluster are collected","NONE_ALERT":"No Alert Found","ALERT_EMPTY_DESC":"No global alert is found in the clusters.","SORT_BY_CLUSTER_CPU_USAGE":"Sort by CPU usage","SORT_BY_CLUSTER_CPU_UTILISATION":"Sort by CPU usage (%)","SORT_BY_CLUSTER_MEMORY_USAGE_WO_CACHE":"Sort by memory usage","SORT_BY_CLUSTER_MEMORY_UTILISATION":"Sort by memory usage (%)","SORT_BY_CLUSTER_DISK_SIZE_USAGE":"Sort by disk usage","SORT_BY_CLUSTER_DISK_SIZE_UTILISATION":"Sort by disk usage (%)","SORT_BY_CLUSTER_POD_COUNT":"Sort by the number of container groups","SORT_BY_CLUSTER_POD_UTILISATION":"Sort by pod quota usage (%)","SORT_BY_NODE_POD_COUNT":"Ranked by the number of container groups","SORT_BY_NODE_CPU_USAGE":"Sort by CPU usage","SORT_BY_NODE_MEMORY_USAGE_WO_CACHE":"Sort by memory usage","SORT_BY_NODE_LOAD5":"Sort by 5-minute CPU load average","SORT_BY_NODE_LOAD15":"Sort by 15-minute CPU load average","SORT_BY_POD_CPU_USAGE":"Sort by CPU usage","SORT_BY_POD_CPU_USED_REQUESTS_UTILISATION":"Sort by allocated CPU request (%)","SORT_BY_POD_CPU_USED_LIMITS_UTILISATION":"Sort by allocated CPU limit (%)","SORT_BY_POD_MEMORY_USAGE_WO_CACHE":"Sort by memory usage","SORT_BY_POD_MEMORY_USED_REQUESTS_UTILISATION":"Sort by allocated memory request (%)","SORT_BY_POD_MEMORY_USED_LIMITS_UTILISATION":"Sort by allocated memory limit (%)","SORT_BY_POD_NET_BYTES_TRANSMITTED":"Sort by outbound traffic","SORT_BY_POD_NET_BYTES_RECEIVED":"Sort by inbound traffic","SORT_BY_POD_PVC_BYTES_USAGE":"Sort by persistent volume usage","SORT_BY_POD_PVC_BYTES_UTILISATION":"Sort by persistent volume usage (%)","SORT_BY_NAMESPACE_CPU_USED_REQUESTS_UTILISATION":"Sort by allocated CPU request (%)","SORT_BY_NAMESPACE_CPU_USED_LIMITS_UTILISATION":"Sort by allocated CPU limit (%)","SORT_BY_NAMESPACE_MEMORY_USED_REQUESTS_UTILISATION":"Sort by allocated memory request (%)","SORT_BY_NAMESPACE_MEMORY_USED_LIMITS_UTILISATION":"Sort by allocated memory limit (%)","SORT_BY_NAMESPACE_PVC_BYTES_USED":"Sort by persistent volume usage","SORT_BY_NAMESPACE_PVC_COUNT":"Sort by number of pods","SORT_BY_POD_GPU_USAGE":"Sort by GPU usage","SORT_BY_POD_GPU_MEMORY_USAGE":"Sort by graphics memory usage","CPU_USAGE_TCAP":"CPU Usage","CPU_UTILISATION_TCAP":"CPU Usage (%)","MEMORY_USAGE_TCAP":"Memory Usage","MEMORY_UTILISATION_TCAP":"Memory Usage (%)","DISK_SIZE_USAGE_TCAP":"Disk Usage","DISK_SIZE_UTILISATION_TCAP":"Disk Usage (%)","POD_COUNT_TCAP":"Pods","NODE_POD_UTILISATION_TCAP":"Pod Quota Usage (%)","NODE_LOAD1_TCAP":"Average CPU Load (1 min)","NODE_LOAD5_TCAP":"Average CPU Load (5 min)","NODE_LOAD15_TCAP":"Average CPU Load (15 min)","INODE_USAGE_TCAP":"Inode Usage (%)","METER_NET_RECEIVED_USAGE_TCAP":"Inbound Traffic","METER_NET_TRANSMITTED_USAGE_TCAP":"Outbound Traffic","CPU_USED_REQUESTS_UTILISATION_TCAP":"Allocated CPU Request (%)","CPU_USED_LIMITS_UTILISATION_TCAP":"Allocated CPU Limit (%)","MEMORY_USED_REQUESTS_UTILISATION_TCAP":"Allocated Memory Request (%)","MEMORY_USED_LIMITS_UTILISATION_TCAP":"Allocated Memory Limit (%)","PVC_BYTES_USED_TCAP":"Persistent Volume Usage","PVC_BYTES_UTILISATION_TCAP":"Persistent Volume Usage (%)","POD_UTILISATION_TCAP":"Pod Quota Usage (%)","GPU_USAGE":"GPU Usage","GPU_UTILIZATION":"GPU Usage (%)","GPU_MEMORY_USAGE":"Graphics Memory Usage","GPU_MEMORY_USAGE_TCAP":"Graphics Memory Usage","GPU_MEMORY_UTILIZATION":"Graphics Memory Usage (%)","NODE_GPU_UTILIZATION":"GPU Usage (%)","NODE_GPU_MEMORY_UTILIZATION":"Graphics Memory Usage (%)","GPU_USAGE_TCAP":"GPU Usage","SORT_BY_DESC":"Descending","SORT_BY_ASC":"Ascending","OOM_KILL_PODS":"OOM killed pods","PENDING_PODS":"Pending pods","EVICTED_PODS":"Evicted pods","QOS_GUARANTEED":"Guaranteed: For every container in a pod, the CPU/memory request and limit are equal.","QOS_BURSTABLE":"Burstable: Criteria of Guaranteed is not met and at least one container has a request or limit.","QOS_BESTEFFORT":"BestEffort: No requests or limits are set.","COMPONENT_PARAMETER_CONFIG":"Component Settings","LICENSE":"License","LICENSE_DESC":"View information about the current license and update the license when necessary.","ACTIVATED":"Activated","INACTIVATED":"Not activated","EXPIRED":"Expired","LICENSE_ID":"License ID","AUTHORIZED_ORGANIZATION":"Authorized organization","AUTHORIZATION_TYPE":"Authorization type","AUTHORIZED_STATUS":"Authorized status","ACTIVATION_TYPE":"Activation type","WARRANTY":"Warranty","WARRANTY_PERIOD":"Under warranty","WARRANTY_EXPIRES":"Warranty expired","SUBSCRIPTION":"Subscription","SUBSCRIPTION_IN_PROGRESS":"Subscribed","SUBSCRIPTION_EXPIRES":"Subscription expired","PERMANENT_AUTHORIZATION":"Permanent Authorization","ACTIVATION_TIME":"Activation time","UPDATE_LICENSE":"Update License","ACTIVATION_CODE":"Activation Code","OBTAIN_ACTIVATION_CODE":"Obtain Activation Code","OBTAIN_ACTIVATION_CODE_DESC":"Visit {title} to obtain the license.","INVALID_LICENSE":"Invalid License","PRODUCT_SERVICE_AUTHORIZATION":"KubeSphere Enterprise Authorization","INVALID_ACTIVATION_CODE_DESC":"Invalid activation code. Please enter a Base64 string in JSON format.","EMPTY_LICENSE":"Invalid license.","INVALID_SIGNATURE":"Invalid signature.","FORMAT_ERROR":"Invalid activation code. Please enter a Base64 string in JSON format.","AUTHORIZED_FEATURES":"Authorized Features","FEATURE":"Feature","CURRENT_USER":"Current user","ADD_CURRENT_USER":"Add current user","NOTIFICATION_HISTORY":"Notification History","NOTIFICATION_HISTORY_PL":"Notification History","NOTIFICATION_HISTORY_DESC":"View notifications that have been sent to users.","ALERTING_NAME_TCAP":"Alert Name","ALERTING_TYPE_TCAP":"Alert Type","ALERTING_SEVERITY_TCAP":"Alert Severity","NOTIFICATION_MESSAGE":"Message","NOTIFICATION_TIME":"Notification Time","METRIC_ALERT":"Metric alert","EVENT_ALERT":"Event alert","AUDIT_ALERT":"Audit alert","LOGGING_ALERT":"Logging alert","ALERT_RESOLVED":"Resolved","NOTIFICATION_SETTINGS":"Notification Settings","SILENCE_POLICY":"Silence Policy","SILENCE_POLICY_LOW":"silence policy","SILENCE_POLICY_PL":"Silence Policies","SILENCE_POLICY_DESC":"Set the system not to send notifications under certain circumstances.","SILENCE_TIME":"Silence Time","CONTINUOUS_SILENCE":"Silent continuously","PERIODIC_SILENCE":"Silent periodically","SPECIFIC_TIME_RANGE_SILENCE":"Silent during time range","CUSTOM_SILENCE":"Silent based on cron expression","SILENCE_CONDITIONS":"Silence Conditions","ALL_SILENT_NOTIFICATIONS":"Silent for all notifications","CUSTOM_SILENT_NOTIFICATIONS":"Custom silence conditions","EDIT_SILENCE_CONDITIONS":"Edit Silence Conditions","EDIT_SILENCE_TIME":"Edit Silence Time","CREATE_SILENCE_POLICY_SUCCESSFULLY":"Created successfully.","EDIT_SILENCE_POLICY_SUCCESSFULLY":"Updated successfully.","CREATE_SILENCE_POLICY":"Create Silence Policy","ALL_SILENT_NOTIFICATIONS_TCAP":"Silent for All Notifications","ALL_SILENT_NOTIFICATIONS_DESC":"The silence policy applies to all notifications.","CUSTOM_SILENT_NOTIFICATIONS_TCAP":"Custom Silence Conditions","CUSTOM_SILENT_NOTIFICATIONS_DESC":"The silence policy applies only to notifications that meet specified conditions.","INVALID_SILENCE_CONDITION":"Please set a correct silence condition.","SILENT_TEMPLATE":"Template","SILENCE_TIME_TYPE_DESC":"Notifications that meet the silence conditions will be silenced during the specified time range.","SILENT_CRON":"Cron Expression","SILENCE_TIME_RANGE_EMPTY_DESC":"Please set the time range during which notifications are silenced.","SELECT_START_TIME_AND_END_TIME":"Select the start time and end time during which notifications are silenced.","SILENCE_DATE":"Date","SELECT_DATE":"Please select a date.","SILENCE_EVERY_DAY":"Every day","SILENCE_EVERY_WEEK":"Every week","SILENCE_EVERY_MONTH":"Every month","MONDAY":"Monday","TUESDAY":"Tuesday","WEDNESDAY":"Wednesday","THURSDAY":"Thursday","FRIDAY":"Friday","SATURDAY":"Saturday","SUNDAY":"Sunday","DAY":"day","HOUR":"Hour","MINUTE":"Minute","SECOND":"Second","CRON_EXPRESSION":"Cron Expression","CRON_EXPRESSION_DESC":"Enter a cron expression to specify the silence period.","CRON_EXPRESSION_REQUIRE_DESC":"Please enter a cron expression.","CRON_EXPRESSION_ERROR_DESC":"Invalid cron expression. Please enter a valid cron expression.","EVERY_DAY_TIMERANGE":"Every day: {timeRange}","EVERY_WEEK_DAYS_TIMERANGE":"Every week: {days} [{timeRange}]","EVERY_MONTH_DAYS_TIMERANGE":"Every month: {days} [{timeRange}]","NOTIFICATION_LANGUAGE":"Notification Language","NOTIFICATION_LANGUAGE_DESC":"Set the language of keys in notifications. Notifications are provided as key-value pairs.","NOTIFICATION_SIMPLIFIED_CHINESE_DESC":"Use simplified Chinese keys in notifications.","NOTIFICATION_ENGLISH_DESC":"Use English keys in notifications.","NOTIFICATION_LANGUAGE_CHANGE_SUCCESS":"Changed successfully.","PLATFORM_LOGO":"Platform Logo","PLATFORM_LOGO_REQUIRED":"Please upload a platform logo.","BROWSER_FAVICON":"Browser Favicon","BROWSER_FAVICON_REQUIRED":"Please upload a platform favicon.","LOGIN_BACKGROUND":"Login Page Background Image","NO_BACKGROUND":"No Background Image Found","NO_BACKGROUND_TIP":"Please click \"Customize Platform Information\" to upload a background image.","MODIFY_PLATFORM_INFO":"Customize Platform Information","PLATFORM_TITLE_TCAP":"Platform Title","PLATFORM_DESCRIPTION_TCAP":"Platform Description","PLATFORM_TITLE_TIP":"The platform title can contain any characters. The maximum length is 63 characters.","TITLE_EMPTY_TIP":"Please enter a platform title.","PLATFORM_LOGO_DESC":"The image format can be SVG, PNG, or JPG, the image file size cannot exceed 2 MB, and the recommended image resolution is 200 x 40 pixels.","BROWSER_FAVICON_DESC":"The image format can be ICO, SVG, PNG, or JPG, the image file size cannot exceed 2 MB, the recommended image resolution is 40 x 40 pixels, and the recommended aspect ratio is 1:1.","LOGIN_BACKGROUND_DESC":"The image format can be SVG, PNG, or JPG, the image file size cannot exceed 2 MB, and the recommended image resolution is 1920 x 1080 pixels.","UPLOAD_PLATFORM_IMAGE_FAILED":"Upload failed. {message}","UPLOAD_FILE_TOO_LARGE":"The image file size cannot exceed 2 MB. Please select another image file.","RESET_PLATFORM_INFO":"Reset Platform Information","RESET_PLATFORM_INFO_TIP":"Are you sure you want to reset the platform information?","SCALING_OBJECT":"Scalable Objects","LAST_SCALING_TIME":"Update Time","POLLING_INTERVAL":"Polling Interval","WAITING_TIME":"Waiting Time","TIME_ZONE":"Time zone","CORN_DESC":"Auto scaling according to the cron plan. ","SCALING_CUSTOM_DESC":"Auto scaling according to custom metrics. ","TOGGLER_PARAMS":"Trigger Parameters","TOGGLER_AUTHOR":"Trigger Authentication","INDICATOR_NAME":"Metric","EXPRESSION":"Expression","SCALING_Prometheus_DESC":"Auto scaling according to Prometheus. ","INDICATOR_TYPE":"Indicator type","TRIGGER":"Trigger","LABEL_KEY_VALUE_CANNOT_BE_EMPTY":"The key and value of the type cannot be empty.","TRIGGER_AUTHENTICATION_KEY_EQ_NAME":"The key of the trigger authentication must be name.","CUSTOM_SCALING_PL":"Custom Scaling","CUSTOM_SCALING_LOW":"Custom scaling","CUSTOM_SCALING_DESC":"Custom scaling automatically scales pods on demand to help optimize resource usage and costs. ","CUSTOM_SCALING_EMPTY_DESC":"Please create custom scaling.","CUSTOM_SCALING":"Custom Scaling","SCALER":"Scaler","STRETCH_OBJECT_READY":"ScaledObject Ready","TRIGGER_ACTIVE":"Active Triggers","RETRACTOR_FALLBACK":"Rollback","STRETCH_OBJECT_READY_DESC":"Whether the ScaledObject is ready for scaling","TRIGGER_ACTIVE_DESC":"Whether the ScaledObject has been scaled","RETRACTOR_FALLBACK_DESC":"Whether the scaler is able to fetch metrics from the source","EDIT_SCALING_SETTINGS":"Edit Scaling","SCALING_SETTINGS":"Scaling Settings","DISABLE_REPLICAS_SETTING":"Disable the number of replicas setting","WORKLOAD_SCALING_TOOL_TIP":"The horizontal autoscaling policy of pods with custom metrics has been set.","EDIT_CUSTOM_SCALING":"Edit Custom Scaling","ENV_CONTAINER":"env source container","ADD_WORKLOAD":"Add Workload","ADD_WORKLOAD_DESC":"Set up deployments and stateful replica sets as custom ScaledObjects.","EMPTY_SCALING_OBJECT_MESSAGE":"The scaledObject cannot be empty","PERCENT":"Percentage","EXPANSION_VALUE":"Scale-Up Value","STABILIZATION_WINDOW_SECONDS":"Stablization Window (s)","STABILIZATION_WINDOW_SECONDS_DESC":"The stabilization window is used to restrict the fluctuation of replicas count when the metrics used for scaling keep fluctuating.","POLICY_TYPE":"Policy Type","POLICY_PREFERENCE":"Policy Preference","POLICY_PREFERENCE_DESC":"The scaler adopts different policies according to your preference.","POLICY_TYPE_DUPLICATED":"Cannot configure multiple policies of the same type. ","TENDS_TO_SCALE_SIGNIFICANTLY":"Scale greatly","TENDS_TO_EXPAND_SLIGHTLY":"Scale slightly","SCALE_DISABLE":"Disable","EXPANSION_STRATEGY":"Scale-Up Policy","SCALING_STRATEGY":"Scale-Down Policy","EMPTY_POLICY_MESSAGE":"The configuration of the policy cannot be empty. ","TIME_ZONE_DESC":"Set the minimum number of container group replicas allowed, the default value is 0. ","REPLICAS_DESIRED_CRON_TRIGGER_DESC":"Number of replicas to which the resources must be scaled between the time range when a cron schedule starts and ends.","CRON_START":"Start","CRON_END":"End","CRON_START_DESC":" Cron expression directing the start of the cron schedule.","CRON_END_DESC":"Cron expression directing the end of the cron schedule.","EMPTY_TYPE_TRIGGER":"The value of type cannot be null.","ADD_TRIGGER":"Add Trigger","ADD_TRIGGER_DESC":"Add triggers according to the required metrics.","TRIGGER_TYPE":"Trigger Type","PROMETHUS_ADDRESS":"Promethus service address.","INDICATOR_NAME_PROMETHUS_DESC":"If multiple triggers are used, metric names must be unique. ","EXPRESSION_PROMETHUS_DESC":"Set the query expression.","THRESHOLD_PROMETHUS_DESC":"Set the threshold when the trigger start scaling.","SCALE_MINIMUM_REPLICAS_DESC":"Set the minimum number of pod replicas allowed, and the default value is 0.","SCALE_MAXIMUM_REPLICAS_DESC":"Set the maximum number of pod replicas allowed, and the default value is 1.","POLLING_INTERVAL_DESC":"Check the time interval for each trigger. By default, KEDA will check every trigger source on every ScaledObject every 30 seconds.","WAITING_TIME_DESC":"The period to wait after the last trigger reported active before scaling the resource back to 0. The default is 5 minutes (300 seconds). ","SCALE_ROLL_BACK_DESC":"Define the number of replicas to roll back if the scaler is faulty.","SCALE_FAILURE_THRESHOLD_DESC":"Limit the consecutive periods of time when each scaler fails to fetch metrics from its source.","EMPTY_FAILURE_THRESHOLD":"The failure threshold cannot be empty. ","FALLBACK_NUMBER":"Rollback Replicas","FALLBACK_NUMBER_DESC":"Number of rollback replicas after scaler failures exceed the threshold.","EMPTY_FALLBACK_NUMBER_DESC":"The number of rollback replicas cannot be empty.","TRIGGER_SETTING":"Trigger Settings","TRIGGER_SETTING_DESC":"Set the trigger for custom metrics.","RESTORE_TO_ORIGINAL_REPLICA_COUNT":"Restore to the original number of replicas","RESTORE_TO_ORIGINAL_REPLICA_COUNT_DESC":"Specify whether the number of replicas should be restored to the original after the target ScaledObject has been deleted. By default, the number of replicas equals to the number when the ScaledObject has been deleted.","SCALE_BEHAVIOR":"Scaling Behavior","SCALE_BEHAVIOR_DESC":"Configure the scaling behavior of the target ScaledObject.","CREATE_CUSTOM_SCALING":"Create Custom Scaling","CRON_TIME_ZONE_DESC":"One of the acceptable values in the IANA Time Zone Database.","PROMETHEUS_MIN_REPLICA_COUNT_DESC":"If the type the trigger is Prometheus, the minimum number of replicas must be greater than 0.","MIN_REPLICA_COUNT_LESS_THAN_MAX":"The minimum number of replicas cannot be greater than the maximum number of replicas.","RADONDB_APPS":"RadonDB Apps","RADONDB_APPS_DESC":"The RadonDB cloud-native apps provide enterprise-grade database services and products including relational databases, distributed databases, time series and analytical databases, and NoSQL databases.","WHAT_ARE_RADONDB_APPS":"What are RadonDB apps?","ACCESS_ADDRESS_PL":"Access Addresses","DATABASE_STATUS_FAILED":"Failed","DATABASE_STATUS_RUNNING":"Running","DATABASE_STATUS_UPDATING":"Updating","DATABASE_STATUS_CREATING":"Creating","DATABASE_STATUS_TRUE_NOTREADY":"Not ready","DATABASE_STATUS_TRUE_READY":"Ready","DATABASE_STATUS_CREATE_FAILED":"Creation failed","DATABASE_STATUS_UPDATE_FAILED":"Update failed","DATABASE_STATUS_DELETED":"Deleted","DATABASE_STATUS_COMPLETED":"Completed","DATABASE_STATUS_TERMINATING":"Terminating","READ_AND_WRITE_ADDRESS":"Read and Write Address","READ_ONLY_ADDRESS":"Read Only Address","KIBANA_ADDRESS":"Kibana Address","DASHBOARD_ADDRESS":"Dashboard Address","PRIMARY_ADDRESS":"Primary Address","STANDBY_ADDRESS":"Standby Address","DATABASE_OPERATION_WARNING":"This operation may interrupt the database service. Please perform this operation during off-peak hours.","VOLUME":"Volume","NODE_ROLE":"Node Role","CANNOT_REDUCE_VOLUME_SIZE":"The volume size cannot be reduced.","SCALE_OUT":"Scale Out","CANNOT_REDUCE_DATABASE_NODES":"The number of database nodes cannot be reduced.","MYSQL_NODES_DESC":"Number of database nodes. The value can be 2, 3, or 5.","REDIS_SENTINEL_NODES_DESC":"Number of database nodes. The value can be 3, 5, or 7.","MONGODB_NODES_DESC":"Number of database nodes.","NODE_COUNT_DESC":"Number of database nodes. The value range is {min} to {max}.","ADJUST_RESOURCES":"Adjust Resources","RESOURCES":"Resources","RESOURCES_DESC":"Set the CPU and memory resources allocated to the database service.","CORE_GIB":"{core, plural, =1 {1 core} other {# cores}}, {gib} GiB","BACK_UP":"Back Up","BACKUP_NAME_DESC":"The name can contain only lowercase letters, numbers, and hyphens (-), and must start with a lowercase letter. The maximum length is 24 characters.","INVALID_BACKUP_NAME_DESC":"Invalid name. The name can contain only lowercase letters, numbers, and hyphens (-), and must start with a lowercase letter. The maximum length is 24 characters.","BACKUP_NAME_EMPTY_DESC":"Please enter a backup name.","BACKUP_WARNING":"The backup process may cause pressure on database services. Please perform this operation during off-peak hours.","BACKUP_COMFIRM_TIP":"Are you sure you want to create a backup?","BACKUP_POSTGRE_SQL_TIP":"Ten backups are retained by default. If a retention policy is set during scheduled backup, the scheduled backup policy will be used first.","SET_AUTO_BACKUP":"Set Auto Backup","BACKUP_TIME":"Backup Time","BACKUP_DATE":"Backup Date","BACKUP_SCHEDULED_DELETE":"Delete Regularly","BACKUP_RETENTION_DAYS":"Retention Period","BACKUP_DAY":"Days","BACKUP_RETENTION_DAYS_ERROR":"The retention period must be set.","BACKUP_DATE_ERROR":"The backup date must be set.","REBALANCE_NODES":"Rebalance Nodes","POSTGRESQL_NODES_DESC":"The value range is 1 to 8.","REBALANCE_SUCCESS":"Rebalanced successfully.","REBALANCE_FAILED":"Rebalancing failed.","REBALANCING":"Rebalancing","START_REBALANCING":"Start Rebalancing","REBALANCING_HISTORY":"Rebalancing History","REBALANCING_IN_PROGRESS_DESC":"Node rebalancing is in progress. Please wait until node rebalancing is complete.","KAFKA_OPERATION_WARNING":"This operation may interrupt the Kafka service. Please perform this operation during off-peak hours.","UPDATE_VERSION":"Upgrade Version","UPDATE_VERSION_DESC":"Are you sure you want to upgrade this resource?","SHARD":"Shard","SHARD_PL":"Shards","PROXY_NODE":"Proxy Node","NODE_IP_ADDRESS_SCAP":"Node IP address","NODE_PORT":"Node port","NO_DATABASE_CONNECTION_AVAILABLE":"No Database Connection Available","MANAGEMENT_NODE":"Management Node","PRIMARY_NODE":"Primary node","PRIMARY_NODE_PL":"Primary nodes","HOT_NODE":"Hot node","HOT_NODE_PL":"Hot nodes","WARM_NODE":"Warm node","WARM_NODE_PL":"Warm nodes","COLD_NODE":"Cold node","COLD_NODE_PL":"Code nodes","KIBANA_NODE":"Kibana node","KIBANA_NODE_PL":"Kibana nodes","KAFKA_NODE":"Kafka node","KAFKA_NODE_PL":"Kafka nodes","KAFKA_RESOURCES":"Kafka resources","ZOOKEEPER_NODE":"ZooKeeper node","ZOOKEEPER_NODE_PL":"ZooKeeper nodes","LOGSTASH_NODE":"Logstash node","DASHBOARD_NODE":"Dashboard node","ZOOKEEPER_RESOURCES":"ZooKeeper resources","STANDBY_NODE":"Standby node","STANDBY_NODE_PL":"Standby nodes","SENTINEL_NODE":"Sentinel node","DATABASE_RUNNING_FOR_VALUE":"The database has been running for {value}.","BACKUPS":"Backups","BACKUP":"Backup","BACKUP_LOW":"backup","BACKUP_PL":"Backups","RESTORE_FROM_BACKUP":"Restore from Backup","BACKUP_IN_PROGRESS_DESC":"Cluster backup is in progress.","SIZE_GIB":"Size (GiB)","BACKUP_START_TIME":"Backup Start Time","BACKUP_END_TIME":"Backup End Time","CREATE_BACKUP":"Create Backup","BACKUP_NOT_ALLOWED_DESC":"Data backup is not allowed currently.","DATABASE_USERS":"Database Users","DATABASE_USERS_EMPTY_DESC":"Add a user to access the database","NO_AUTHENTICATION_DESC":"The authentication type of the database cluster is \"No authentication\". To control uesr access permissions, please change the value of \"Authentication Type\" on the \"Parameters\" tab.","KAFKA_USERS":"Kafka Users","USERCREATION_NOT_ALLOWED":"User creation is not allowed currently.","CANNOT_EDIT_ROOT_USER":"This user is the root user and cannot be edited.","CANNOT_DELETE_ROOT_USER":"This user is the root user and cannot be deleted.","SECRET_KEY":"Secret Key","USER_CERTIFICATE":"User Certificate","VALIDITY_PERIOD":"Validity Period","CA_CERTIFICATE":"CA Certificate","CA_PASSWORD":"CA Password","AUTHORIZATION_RULE":"Authorization Rule","KAFKA_NO_AUTHENTICATION_DESC":"The authentication type of the Kafka cluster is \"No authentication\". To access Kafka as a user, please change the value of \"Authentication Type\" on the \"Parameters\" tab.","KAFKA_NO_USER_DESC":"Create a user to access Kafka.","DELETE_USER":"Delete User","DATABASE_USERNAME_DESC":"The username can contain only uppercase letters, lowercase letters, numbers, and underscores (_), and must start with an uppercase or lowercase letter. The length must be 2 to 26 characters.","INVALID_DATABASE_USERNAME_DESC":"Invalid username. The username can contain only uppercase letters, lowercase letters, numbers, and underscores (_), and must start with an uppercase or lowercase letter. The length must be 2 to 26 characters.","PG_USERNAME_DESC":"The username can contain only lowercase letters, numbers, and underscores (_), and must start with a lowercase letter. The length must be 2 to 26 characters.","INVALID_PG_USERNAME_DESC":"Invalid username. The username can contain only lowercase letters, numbers, and underscores (_), and must start with a lowercase letter. The length must be 2 to 26 characters.","DATABASE_PASSWORD_DESC":"The password must contain at least one uppercase letter, one lowercase letter, one number, and one special character (!@#$%^&*_+-=). The length must be 8 to 32 characters.","DATABASE_PASSWORD_CHARACTERS":"The password must contain at least one special character (!@#$%^&*_+-=).","DATABASE_PASSWORD_CHARACTERS_EXCLUDE":"Special characters in the password can only be !@#$%^&*_+-=.","INVALID_DATABASE_PASSWORD_DESC":"Invalid password. The password must contain at least one uppercase letter, one lowercase letter, one number, and one special character (!@#$%^&*_+-=). The length must be 8 to 32 characters.","USERNAME_FORBIDDEN_STRINGS":"The username cannot be root or start with radondb_.","USERNAME_CANNOT_BE_PROGRES":"The username cannot be postgres, pgautofailover_monitor, or pgautofailover_replicator.","USERNAME_CANNOT_BE_CLICKHOUSE":"The username cannot be clickhouse_operator.","KAFKA_USERNAME_DESC":"The username can contain only lowercase letters, numbers, and hyphens (-). The maximum length is 64 characters.","PERMISSIONS":"Permissions","GENERAL_PERMISSIONS":"General permissions","ADVANCED_PERMISSIONS":"Advanced permissions","AUTHENTICATION_MODE":"Authentication Mode","AUTHENTICATION_MODE_INCORRECT_DESC":"The authentication mode is inconsistent with that of the database cluster. The user cannot access the database cluster.","AUTHENTICATION_MODE_INCORRECT_ALERT":"The authentication mode of the database cluster is {cluster}. If the authentication mode of the user is set to {user}, the user cannot access the database cluster.","AUTHORIZATION_MODE":"Authorization Mode","SIMPLE_AUTHORIZATION":"Simple authorization","AUTHORIZATION_MODE_DESC":"Currently, only simple authorization is supported.","AUTHORIZED_DATABASES":"Authorized Databases","AUTHORIZED_DATABASES_DESC":"Databases that the user can access. Enter * (all databases) or a database name.","AUTHORIZED_HOSTS":"Authorized Hosts","AUTHORIZED_HOSTS_DESC":"Hosts that the user can access. Enter % (all hosts), an IP address, or multiple IP addresses separated by commas (,).","PERMISSION_RULE":"Permission Rule","PERMISSION_RULE_DESC":"You can add multiple permission rules for the user.","RESOURCE_TYPE_DESC":"Resource type to which the rule applies.","RESOURCE_MATCHING_MODE":"Resource Matching Mode","RESOURCE_MATCHING_MODE_DESC":"Matching mode for resource names.","PREFIX_DESC":"Prefix matching, applies the rule to all resources whose names start with this value.","LITERAL_DESC":"Literal matching, can be set to *, indicating that the rule applies to all resources.","PREFIX":"Prefix","LITERAL":"Literal","OPERATION":"Operation","OPERATION_DESC":"Select an operation to which the rule applies.","DATABASE_OPERATION_READ":"Read","DATABASE_OPERATION_WRITE":"Write","DATABASE_OPERATION_DELETE":"Delete","DATABASE_OPERATION_ALTER":"Alter","DATABASE_OPERATION_DESCRIBE":"Describe","DATABASE_OPERATION_ALL":"All","DATABASE_OPERATION_IDEMPOTENTWRITE":"Idempotent write","DATABASE_OPERATION_CLUSTERACTION":"Cluster action","DATABASE_OPERATION_CREATE":"Create","DATABASE_OPERATION_ALTERCONFIGS":"Alter configs","DATABASE_OPERATION_DESCRIBECONFIGS":"Describe configs","ALLOW":"Allow","RULE_TYPE_DESC":"Currently, the rule type can only be \"Allow\".","GROUP":"Group","TRANSACTION_ID":"Transaction ID","ACL_DESC":"Set ACL to control permissions of the user according to official Redis rules.","TOPICS":"Topics","MESSAGE_RETENTION_TIME":"Message Retention Time","EDIT_TOPIC":"Edit Topic","TOPIC_CREATION_NOT_ALLOWED":"Topic creation is not allowed currently.","NO_TOPIC_FOUND":"No Topic Found","TOPIC_EMPTY_DESC":"Please create a topic.","CREATE_TOPIC":"Create Topic","TOPIC_NAME_DESC":"The name can contain only lowercase letters, numbers, and hyphens (-), and must start with a lowercase letter. The maximum length is 24 characters.","INVALID_TOPIC_NAME_DESC":"Invalid name. The name can contain only lowercase letters, numbers, point (.), and hyphens (-), and must start with a lowercase letter. The maximum length is 100 characters.","TOPIC_NAME_EMPTY_DESC":"Please enter a topic name.","PARTITION_COUNT":"Partitions","COMPACT":"Compact","INVALID_PARTITION_COUNT_DESC":"Invalid number of partitions. The value cannot be less than {min} or greater than {max}.","TOPIC_REPLICA_COUNT_DESC":"The number of replicas cannot exceed the number of nodes in the Kafka cluster.","CLEANUP_POLICY_DESC":"Whether to delete outdated logs or compress logs by key (Kafka Connect needs to use the compact mode).","CLEANUP_POLICY_DELETE":"Delete","CLEANUP_POLICY_COMPACT":"Compact","MIN_INSYNC_REPLICAS_DESC":"Minimum number of replicas when request.required.acks of the producer is set to 1.","UNCLEAN_LEADER_ELECTION_ENABLE_DESC":"Whether to allow a replica that does not belong to the ISR to be elected as a leader.","SEGMENT_MS_DESC":"Maximum time in milliseconds before a segment is rolled out. The minimum value is 86400000.","RETENTION_MS_DESC":"Time in milliseconds before deleting a log file.","RETENTION_BYTES_DESC":"Maximum size of a log before deleting it. If both retention.ms and retention.bytes are set, the log will be deleted when either of the thresholds is reached. The value -1 indicates that all logs are retained.","MAX_MESSAGE_BYTES_DESC":"Maximum message size at the topic level. If no value is provided, the instance-leval maximum message size 1 MB is used.","ALERT_RULE_GROUP_PL":"Alert Rule Groups","PARAMETER":"Parameter","RANGE":"Range","AUTO_RESTART":"Auto Restart","ALERTING_POLICY_CREATION_NOT_ALLOWED":"Alert rule group creation is not allowed currently.","EDIT_NOT_ALLOWED":"Parameter editing is not allowed currently.","DBPARAM_DATABASE_VERSION":"Kernel Version","DBPARAM_DATABASE_VERSION_DESC":"Database kernel version.","DBPARAM_FSYNC_DESC":"Whether the PostgreSQL server will ensure (if possible) that updates are physically written to disks.","DBPARAM_SHARED_BUFFERS_DESC":"Memory in MB used by the database server as shared buffers.","DBPARAM_TEMP_BUFFERS_DESC":"Maximum size of memory in MB used by each database session as temporary buffers.","DBPARAM_WORK_MEM_DESC":"Maximum size of memory in MB used by query operations before data is written to temporary disk files.","DBPARAM_MAX_WAL_SENDERS_DESC":"Maximum number of WAL sender processes that run simultaneously.","DBPARAM_LOG_MIN_DURATION_STATEMENT_DESC":"Minimum execution time in milliseconds of logged statements.","DBPARAM_MAX_CONNECTIONS_DESC":"Maximum number of concurrent connections.","DBPARAM_WORKER_PROCESSES_DESC":"Maximum number of concurrent worker processes.","DBPARAM_CHECKPOINT_TIMEOUT_DESC":"Maximum interval in seconds between automatic WAL checkpoints.","DBPARAM_AUTOVACUUM_VACUUM_COST_DELAY_DESC":"Cost delay value in milliseconds for autovacuum operations.","DBPARAM_AUTOVACUUM_VACUUM_COST_LIMIT_DESC":"Cost limit value for autovacuum operations.","DBPARAM_AUTOVACUUM_ANALYZE_SCALE_FACTOR_DESC":"Fraction of the table size that triggers an ANALYZE operation of autovacuum.","DBPARAM_AUTOVACUUM_VACUUM_SCALE_FACTOR_DESC":"Fraction of the table size that triggers a VACUUM operation of autovacuum.","DBPARAM_VACUUM_DEFER_CLEANUP_AGE_DESC":"Delay of VACUUM and HOT cleanup operations, measured by the number of transactions.","DBPARAM_SEQ_PAGE_COST_DESC":"The planner's estimate of the cost of a sequential disk page fetch.","DBPARAM_RANDOM_PAGE_COST_DESC":"The planner's estimate of the cost of a non-sequential disk page fetch.","DBPARAM_CPU_TUPLE_COST_DESC":"The planner's estimate of the cost of processing each row during a query.","DBPARAM_CPU_INDEX_TUPLE_COST_DESC":"The planner's estimate of the cost of processing each index entry during an index scan.","DBPARAM_BGWRITER_DELAY_DESC":"Sleep time in milliseconds between activity rounds of the background writer.","DBPARAM_WAL_WRITER_DELAY_DESC":"Sleep time in milliseconds between activity rounds of the WAL writer.","DBPARAM_WAL_WRITER_FLUSH_AFTER_DESC":"Amount of WAL in MB written by the WAL writer that triggers a flush.","DBPARAM_FULL_PAGE_WRITES_DESC":"Whether to set the PostgreSQL server to write the entire content of each disk page to WAL during the first modification of that page after a checkpoint.","DBPARAM_WAL_COMPRESSION_DESC":"Whether to set the PostgreSQL server to compress full pages written to WAL when full_page_writes is on or during a base backup.","DBPARAM_SYNCHRONOUS_COMMIT_DESC":"Amount of WAL processing that needs to be completed before the database server returns a sucess indication to the client.","DBPARAM_MAINTENANCE_WORK_MEM_DESC":"Maximum amount of memory in MB to be used for maintenance operations such as VACUUM, CREATE INDEX and ALTER TABLE ADD FOREIGN KEY.","DBPARAM_MAX_REPLICATION_SLOTS_DESC":"Maximum number of replication slots. Changing the value will cause the database service to restart.","DBPARAM_AUTOVACUUM_DESC":"Whether the server should run the autovacuum launcher daemon.","DBPARAM_VACUUM_COST_DELAY_DESC":"Amount of time that the process will sleep when the cost limit has been exceeded.","DBPARAM_AUTOVACUUM_NAPTIME_DESC":"Minimum delay between autovacuum runs on any given database.","DBPARAM_COMMIT_DELAY_DESC":"Delay in microseconds between transaction commit and flushing WAL to disks.","DBPARAM_COMMIT_SIBLINGS_DESC":"Minimum number of concurrent open transactions before performing commit_delay.","DBPARAM_LOG_MIN_MESSAGES_DESC":"Levels of messages that are written to the server log.","DBPARAM_BGWRITER_LRU_MAXPAGES_DESC":"Maximum number of LRU pages to be flushed by the background writer per round.","DBPARAM_BGWRITER_FLUSH_AFTER_DESC":"Whenever more than this amount of data (in KB) has been written by the background writer, attempts to force the OS to issue these writes to the underlying storage.","DBPARAM_STATEMENT_TIMEOUT_DESC":"Maximum allowed duration in microseconds of any statement. Statements that take more than this amount of time will be aborted.","DBPARAM_IDLE_IN_TRANSACTION_SESSION_TIMEOUT_DESC":"Maximum allowed idle time in microseconds between queries in a transaction. Sessions that have been idle for more than this amount of time will be terminated.","DBPARAM_LOG_STATEMENT_DESC":"Types of SQL statements to be logged.","DBPARAM_LOG_WAL_LEVEL_DESC":"Level of information written to the WAL.","DBPARAM_PG_PORT_DESC":"Port number that the PostgreSQL server listens on. The value cannot be 55555.","PG_PORT_FORBIDDEN_ERROR":"The port number cannot be 55555.","DBPARAM_JIT_DESC":"Whether JIT compilation (if available) can be used by PostgreSQL.","DBPARAM_AUDIT_LOG_POLICY_DESC":"Policy adopted by the audit log plugin when writing events to its log file.","DBPARAM_AUDIT_LOG_FORMAT_DESC":"Audit log file format.","DBPARAM_AUDIT_LOG_ROTATE_ON_SIZE_DESC":"Size of a single audit log file. If the value is not a multiple of 4096, the value is truncated to the nearest multiple of 4096.","DBPARAM_AUDIT_LOG_ROTATIONS_DESC":"Maximum number of audit log files.","DBPARAM_DEFAULT_STORAGE_ENGINE_DESC":"Default storage engine.","DBPARAM_INNODB_BUFFER_POOL_SIZE_DESC":"Buffer pool size. 80% of the memory can be allocated at most. If the value is set to -1, 60% of the memory is allocated. The value is always increased to an integer multiple of (innodb_buffer_pool_chunk_size x innodb_buffer_pool_instances).","DBPARAM_CHARACTER_SET_SERVER_DESC":"Default character set of the database server.","DBPARAM_EXPIRE_LOGS_DAYS_DESC":"Retention period of binary log files.","DBPARAM_LONG_QUERY_TIME_DESC":"Slow query time threshold. SQL statements that take more time than the value of this parameter are considered to be slow queries.","DBPARAM_MAX_CONNECT_ERRORS_DESC":"Maximum number of consecutive connection failures allowed before the database server blocks further connections from a host.","DBPARAM_WAIT_TIMEOUT_DESC":"Maximum number of seconds the database server waits for activity on a noninteractive connection before closing it.","DBPARAM_MAX_ALLOWED_PACKET_DESC":"Maximum packet size. If the value is not a multiple of 1024, the value will be truncated to a multiple of 1024. If you need to change the value, ensure that the value is less than or equal to the value of slave_pending_jobs_size_max. Otherwise, replication between the primary and standby nodes may become abnormal.","DBPARAM_SLAVE_PARALLEL_WORKERS_DESC":"Number of parallel replication threads.","DBPARAM_SKIP_NAME_RESOLVE_DESC":"Whether to forbid domain name resolution.","DBPARAM_AUTOCOMMIT_DESC":"Whether to enable the autocommit mode.","DBPARAM_TRANSACTION_ISOLATION_DESC":"Transaction isolation level.","DBPARAM_INNODB_FLUSH_METHOD_DESC":"InnoDB file flushing method.","DBPARAM_INNODB_USE_NATIVE_AIO_DESC":"Whether InnoDB uses the Linux asynchronous I/O subsystem.","DBPARAM_MONGODB_PORT_DESC":"Port number that the MongoDB server listens on.","DBPARAM_OPLOGSIZEMB_DESC":"Maximum size in MB of the oplog file.","DBPARAM_MAXINCOMINGCONNECTIONS_DESC":"Maximum number of simultaneous connections that mongos or mongod will accept.","DBPARAM_CURSORTIMEOUTMILLIS_DESC":"Expiration threshold in milliseconds for idle cursors before MongoDB removes them.","DBPARAM_PROFILINGMODE_MODE":"Whether to enable the profiling mode.","DBPARAM_SLOWOPTHRESHOLDMS_DESC":"Slow operation time threshold. Operations that take more time than the value of this parameter are considered to be slow operations.","DBPARAM_ENABLEMAJORITYREADCONCERN_DESC":"Whether to use the secure read policy. Changing the value will cause the database service to restart.","DBPARAM_COMMANDVERBOSITY_DESC":"Log message verbosity level for components related to commands.","DBPARAM_INDEXVERBOSITY_DESC":"Log message verbosity level for components related to indexing operations.","DBPARAM_QUERYVERBOSITY_DESC":"Log message verbosity level for components related to query operations.","DBPARAM_NETWORKVERBOSITY_DESC":"Log message verbosity level for components related to networking operations.","DBPARAM_WRITEVERBOSITY_DESC":"Log message verbosity level for components related to write operations.","DBPARAM_MAXMEMORY_DESC":"Maximum size of memory in MB avaiable to Redis.","DBPARAM_ACTIVEREHASHING_DESC":"Whether to enable active rehashing to save memory.","DBPARAM_APPENDONLY_DESC":"Whether to enable AOF persistence.","DBPARAM_APPENDFSYNC_DESC":"AOF sync policy.","DBPARAM_CLUSTER_NODE_TIMEOUT_DESC":"Maximum amount of time in milliseconds a Redis cluster node can be unavailable before it is considered failed.","DBPARAM_LATENCY_MONITOR_THRESHOLD_DESC":"Slow operation time threshold in milliseconds. Operations that take more time than the value of this parameter will be logged. The value 0 indicates that this feature is disabled.","DBPARAM_MAXCLIENTS_DESC":"Maximum number of client connections. The value 0 (default) indicates that the number of client connections is not limited.","DBPARAM_MAXMEMORY_POLICY_DESC":"Policy adopted by Redis when the amount of memory used by Redis reaches the limit.","DBPARAM_MAXMEMORY_SAMPLES_DESC":"Number of samples used for the Redis eviction algorithm when the amount of memory used by Redis reaches the limit.","DBPARAM_MIN_SLAVES_MAX_LAG_DESC":"The primary database allows write operations only when at least min-slaves-to-write standby databases exist and the network delays of the standby databases do not exceed the value of this parameter.","DBPARAM_MIN_SLAVES_TO_WRITE_DESC":"See the decription of min-slaves-max-lag.","DBPARAM_NO_APPENDFSYNC_ON_REWRITE_DESC":"Whether to block fsync() calls when a BGSAVE or BGREWRITEAOF operation is in progress.","DBPARAM_NOTIFY_KEYSPACE_EVENTS_DESC":"Types of notifications sent by Redis.","DBPARAM_REPL_BACKLOG_SIZE_DESC":"Size of replication backlog.","DBPARAM_REPL_BACKLOG_TTL_DESC":"Retention period of replication backlog.","DBPARAM_REPL_TIMEOUT_DESC":"Replication timeout interval.","DBPARAM_SET_MAX_INTSET_ENTRIES_DESC":"Intset encoding is used when a set consists entirely of Base10 64-bit signed integers and the number of elements in the set does not exceed the value of this parameter. ","DBPARAM_SLOWLOG_LOG_SLOWER_THAN_DESC":"Maximum operation execution time in microseconds. Operations that exceed the value of this parameter will be recorded in the slowlog.","DBPARAM_SLOWLOG_MAX_LEN_DESC":"Maximum length of the slowlog.","DBPARAM_HASH_MAX_ZIPLIST_ENTRIES_DESC":"Ziplist encoding is used when a hash object satisfies both of the following conditions: a) The length in bytes of each key and each value of the hash object does not exceed the hash-max-ziplist-value value; b) The number of key-value pairs in the hash object does not exceed the hash-max-ziplist-entries value.","DBPARAM_HASH_MAX_ZIPLIST_VALUE_DESC":"See the description of hash-max-ziplist-entries.","DBPARAM_LIST_MAX_ZIPLIST_ENTRIES_DESC":"Ziplist encoding is used when a list object satisfies both of the following conditions: a) The length in bytes of each element of the list object does not exceed the list-max-ziplist-value value; b) The number of elements in the list object does not exceed the list-max-ziplist-entries value.","DBPARAM_LIST_MAX_ZIPLIST_VALUE_DESC":"See the description of list-max-ziplist-entries.","DBPARAM_ZSET_MAX_ZIPLIST_ENTRIES_DESC":"Ziplist encoding is used when a zset object satisfies both of the following conditions: a) The length in bytes of each element of the zset object does not exceed the zset-max-ziplist-value value; b) The number of elements in the zset object does not exceed the zset-max-ziplist-entries value.","DBPARAM_ZSET_MAX_ZIPLIST_VALUE_DESC":"See the description of zset-max-ziplist-entries.","DBPARAM_LUA_TIME_LIMIT_DESC":"Lua script timeout limit in milliseconds. 0 or a negative value indicates that no timeout limit is used.","DBPARAM_IO_THREADS_DO_READS_DESC":"Whether to enable multi-thread reading.","DBPARAM_IO_THREADS_DESC":"Number of I/O threads.","DBPARAM_LOGFILE_DESC":"Whether to export log information to stdout or a log file.","DBPARAM_THREAD_POOL_WRITE_QUEUE_SIZE_DESC":"Write queue size of the thread pool.","DBPARAM_THREAD_POOL_SEARCH_QUEUE_SIZE_DESC":"Search queue size of the thread pool.","DBPARAM_ACTION_DESTRUCTIVE_REQUIRES_NAME_DESC":"Whether to forbid wildcards and _all during index deletion. You can set this parameter to false to allow wildcards and _all.","DBPARAM_HTTP_CORS_ENABLED_DESC":"Whether to enable cross-origin resource sharing.","DBPARAM_HTTP_CORS_ALLOW_ORIGIN_DESC":"Origins that can be used for cross-origin resource sharing.","DBPARAM_INDICES_FIELDDATA_CACHE_SIZE":"Maximum amount of heap space that can be used as the field datata cache.","DBPARAM_INDICES_MEMORY_INDEX_BUFFER_SIZE_DESC":"Size of heap space allocated to a node to be used as the indexing buffer shared across all shards. The value can be a percentage or byte size.","DBPARAM_INDICES_QUERIES_CACHE_SIZE_DESC":"Memory size for the filter cache. Accepts either a percentage value such as 5% or an exact value such as 512mb. The default value is 10%.","DBPARAM_INDICES_REQUESTS_CACHE_SIZE_DESC":"Size of the shard request cache managed at the node level. The default value is 1% of the heap space.","DBPARAM_REINDEX_REMOTE_WHITELIST_DESC":"Addresses of remote Elasticsearch nodes to be whitelisted so that reindexing is allowed. You can separate multiple addresses by commas (for example, otherhost:9200, 192.168.1.*:9200, localhost:*).","DBPARAM_CLUSTER_ROUTING_ALLOCATION_AWARENESS_ATTRIBUTES_DESC":"Attributes used for shard allocation awareness. The possible values are k8s_node_name and zone and you can separate two values by a comma.","DBPARAM_REPLICACOUNT_DESC":"Number of replicas for each shard. The value cannot be changed after the database cluster is created and the default value is 2.","DBPARAM_TCPPORT_DESC":"TCP port of the database cluster. The default value is 9000.","DBPARAM_HTTPPORT_DESC":"HTTP port of the database cluster. The default value is 8123.","DBPARAM_MAX_SERVER_MEMORY_USAGE":"Maximum amount of memory in bytes available to the ClickHouse server.","DBPARAM_MAX_MEMORY_USAGE":"Maximum amount of memory in bytes available to a single query of the ClickHouse server.","DBPARAM_AUTHENTICATION_TYPE":"Authentication Type","KAFKA_PARAMETERS":"Kafka parameters","KAFKA_USER_PARAMETERS":"User Quotas","ZOOKEEPER_PARAMETERS":"ZooKeeper parameters","KAFKA_EDIT_PARAMS_ERROR":"Failed to set parameters. When Authentication Type is set to TLS, TLS cannot be set to false.","DBPARAM_KAFKA_TLS_DESC":"Whether to enable TLS encryption.","DBPARAM_KAFKA_AUTHENTICATION_TYPE_DESC":"Authentication type of Kafka.","DBPARAM_NODE_PORT":"Node Port","DBPARAM_NODE_PORT_DESC":"Whether to enable KubeSphere node port for external access.","DBPARAM_LOG_RETENTION_BYTES_DESC":"Maximum size in bytes of a partition. The deletion policy will be triggered if a partition exceeds the limit.","DBPARAM_LOG_RETENTION_HOURS_DESC":"Maximum retention time in hours of a log file before deleting it.","DBPARAM_LOG_SEGMENT_BYTES_DESC":"Maximum size in bytes of a segment file.","DBPARAM_LOG_SEGMENT_DELETE_DELAY_MS_DESC":"Amount of time to wait before deleting a segment file.","DBPARAM_LOG_ROLL_HOURS_DESC":"Maximum time in hours before a new segment is rolled out.","DBPARAM_OFFSETS_TOPIC_REPLICATION_FACTOR":"Replication factor for the offsets topic (set higher to ensure availability). Internal topic creation will fail until the cluster size meets this replication factor requirement.","DBPARAM_LOG_CLEANUP_POLICY_DESC":"Default cleanup policy for segments beyond the retention window. The possible values are delete and compact and you can separate two values by a comma.","DBPARAM_LOG_CLEANER_ENABLE_DESC":"Whether to enable the log cleaner process on the server.","DBPARAM_COMPRESSION_TYPE_DESC":"Compression type of a topic.","DBPARAM_MESSAGE_MAX_BYTES_DESC":"Maximum size in bytes of a record batch.","DBPARAM_NUM_NETWORK_THREADS_DESC":"Number of threads that the server uses for receiving requests from the network and sending responses to the network.","DBPARAM_NUM_IO_THREADS_DESC":"Number of threads that the server uses for processing requests, which may include disk I/O.","DBPARAM_NUM_RECOVERY_THREADS_PER_DATA_DIR_DESC":"Number of threads per data directory to be used for log recovery at startup and flushing at shutdown.","DBPARAM_NUM_REPLICA_FETCHERS_DESC":"Number of fetcher threads used to replicate messages from a source broker.","DBPARAM_QUEUED_MAX_REQUESTS_DESC":"Number of queued requests allowed before blocking the network threads.","DBPARAM_REPLICA_LAG_TIME_MAX_MS_DESC":"If a follower has not sent any fetch requests or has not consumed up to the leaders log end offset for at least this time, the leader will remove the follower from the ISR.","DBPARAM_GROUP_MAX_SESSION_TIMEOUT_MS_DESC":"Maximum allowed session timeout for registered consumers.","DBPARAM_GROUP_MIN_SESSION_TIMEOUT_MS_DESC":"Minimum allowed session timeout for registered consumers.","DBPARAM_AUTO_CREATE_TOPICS_ENABLE_DESC":"Whether to enable automatic topic creation.","DBPARAM_MIN_INSYNC_REPLICAS_DESC":"Minimum number of replicas in the ISR set.","DBPARAM_DEFAULT_REPLICATION_FACTORS_DESC":"Default replication factor.","DBPARAM_TICKTIME_DESC":"Basic time unit in milliseconds used by ZooKeeper. It is used for heartbeats and the minimum session timeout will be twice the tickTime.","DBPARAM_INITLIMIT_DESC":"Maximum number of ticks allowed for a follower to connect to and sync data with the leader.","DBPARAM_SYNCLIMIT_DESC":"Maximum number of ticks allowed for a follower to sync data. If the synchronization process exceeds the limit, the follower will be discarded.","DBPARAM_MAXCLIENTCNXNS_DESC":"Maximum number of concurrent connections at the socket level that a single client (identified by IP address) can make to a single member of the ZooKeeper ensemble. This is used to prevent certain classes of DoS attacks such as file descriptor exhaustion.","DBPARAM_AUTOPURGE_SNAPRETAINCOUNT_DESC":"Number of most recent snapshots and the corresponding transaction logs retained when the ZooKeeper auto purge feature is enabled.","DBPARAM_AUTOPURGE_PURGEINTERVAL_DESC":"Interval in hours of auto purge operations. The value 0 indicates that auto purge is disabled.","KAFKA_USER_RESOURCE_NAME_EMPTY_ERROR":"Please enter a resource name.","DBPARAM_KAFKA_PARTITIONS_DESC":"Default number of topic partitions","DBPARAM_PRODUCER_BYTERATE_DESC":"The quota on the maximum number of bytes per second that each client group in the group can produce to the broker before being throttled. range ({min}-{max})","DBPARAM_CONSUMER_BYTERATE_DESC":"The quota on the maximum number of bytes per second that each client group in the group can consume from the broker before being throttled. range ({min}-{max})","DBPARAM_REAUSET_PERCENTAGE_DESC":"Maximum CPU utilization quota for each client group. range ({min}-{max})","DBPARAM_CONTROLLER_MUTATION_DESC":"The rate quota for create topic requests, create partition requests, and delete topic requests. range ({min}-{max})","ACTIVE_CONNECTIONS":"Active Connections","ACTIVE_SESSIONS":"Active Sessions","IDLE_IN_TRANSACTION":"Idle in Transaction","IDLE_CONNECTIONS":"Idle Connections","CACHE_HIT_RATIO":"Cache Hit Ratio","CACHE_HIT_RATIO_EACH_DATABASE":"Cache Hit Ratio of Each Database","ACTIVITY":"Activity","CONNECTIONS":"Connections","DATABASE_SIZE":"Database Size","QUERY_DURATION":"Query Duration","FETCHED_PER_SECOND":"Fetched Rows per Second","INSERTED_PER_SECOND":"Inserted Rows per Second","UPDATED_PER_SECOND":"Updated Rows per Second","DELETED_PER_SECOND":"Deleted Rows per Second","RETURNED_PER_SECOND":"Returned Rows per Second","KEY_COUNTERS":"Key Counters","CONFLICTS_PER_SECOND":"Conflicts per Second","DEADLOCKS_PER_SECOND":"Deadlocks per Second","COMMITS_PER_SECOND":"Commits per Second","ROLLBACKS_PER_SECOND":"Rollbacks per Second","MAX_TX_DURATION":"Maximum Transaction Duration","LOCKS":"Locks","ASYNC_NODE_NUMBER":"Async Nodes","INVALID_STATUS_NODE_NUMBER":"Invalid Nodes","NOT_RUNNING_NODE_NUMBER":"Not Running Nodes","UNHEALTH_NODE_NUMBER":"Unhealthy Nodes","DBPARAM_JMXOPTIONS_DESC":"disable, do not enable JMX; enable, enable JMX; password, enable JMX with password authentication","CLICKHOUSE_DATA_SIZE_ON_DISK":"MergeTree Table Data Size","QUERIES":"Queries","SELECT_QUERIES":"SELECT Queries","ALL_QUERIES":"All Queries","INSERTED_BYTES":"Inserted Data","INSERTED_ROWS":"Inserted Rows","MAXIMUM_REPLICATION_DEPLAY":"Maximum Replication Delay","RELATIVE_DELAY":"Relative Delay","ABSOLUTE_DELAY":"Absolute Delay","TOTAL_PARTS_OF_MERGETREE_TABLES":"Total Parts of MergeTree Tables","DELAYED_REJECTED_INSERTS":"Delay/Rejected Inserts","DELAYED_QUERIES":"Delayed Queries","DELAYED_BLOCKS":"Delayed Blocks","REJECTED_BLOCKS":"Rejected Blocks","DELAYED_DISTRIBUTED_FILES":"Delayed Distributed Files","READ_BYTES":"Read Bytes","UNCOMPRESSED":"Uncompressed","COMPRESSED":"Compressed","FILE_DESCRIPTOR":"File Descriptor","CLICKHOUSE_OS":"OS","MEMORY_FOR_QUERIES":"Memory for Queries","REPLICATION_QUEUE_JOBS":"Replication Queue Jobs","DATA_LOSS":"Data Loss","CHECK":"Checks","CHECK_FAIL":"Failed Checks","FETCH":"Fetches","FETCH_FAIL":"Failed Fetches","FETCH_MERGED":"Merged Part Fetches","REPLICATED_MERGED":"Successful Merges","MAX_QUEUE_SIZE":"Maximum Queue Size","MERGES":"Merges","MERGED_ROWS":"Merged Rows","MERGED_UNCOMPRESSED_BYTES":"Merged Uncompressed Bytes","ACTIVE_PARTS":"Active Parts","DETACHED_PARTS":"Detached Parts","MAX_PART_COUNT_FOR_PARTITION":"Maximum Parts for Partition","CLICKHOUSE_SERVER_PROCESS_MEMORY":"clickhouse-server Process Memory","PRIMARY_KEYS_MEMORY":"Memory for Primary Keys","DICTIONARY_MEMORY":"Dictionary Memory","MARKS_CACHE_HIT_RATE":"Mark Cache Hit Ratio","BACKGROUND_TASKS":"Background Tasks","MERGE_MUTATE_FETCH":"Merge/Mutate/Fetch","CLEAN_ALTER_REPLICA_REINIT":"Clean/Alter/Replica Re-init","MOVES":"Move","MUTATIONS":"Mutations","PARTS_TO_DO":"Parts to Do","CPU_TIME_PER_SECOND":"CPU Time per Second","DISK_READ_SYSCALL":"Disk Read Syscall","DISK_WRITE_SYSCALL":"Disk Write Syscall","NETWORK_RECEIVE":"Network Receive","NETWORK_SEND":"Network Send","REAL_TIME":"Real Time","USER_TIME":"User Time","SYSTEM_TIME":"System Time","OS_IO_WAIT":"OS I/O Wait","OS_CPU_WAIT":"OS CPU Wait","OS_CPU_VIRTUAL":"OS CPU Virtual Time","MAX_USED_CONNECTIONS":"Maximum Used Connections","THREADS":"Threads","PEAK_THREADS_CONNECTED":"Peak Threads Connected","PEAK_THREADS_RUNNING":"Peak Threads Running","AVG_THREADS_RUNNING":"Average Threads Running","ABORTED_CONNECTIONS":"Aborted Connections","ABORTED_CONNECTION_ATTEMPTS":"Aborted Connection Attempts","ABORTED_CLIENT_TIMEOUTS":"Client Timeouts","QUESTIONS":"Questions","SELECT_BY_TYPE":"Selects","SELECT_FULL_JOIN":"Select Full Join","SELECT_FULL_RANGE_JOIN":"Select Full Range Join","SELECT_RANGE":"Select Range","SELECT_FULL_RANGE":"Select Full Range","SELECT_RANGE_CHECK":"Select Range Check","SELECT_SCAN":"Select Scan","SORT_BY_TYPE":"Sorts","SORT_ROWS":"Sort Rows","SORT_RANGE":"Sort Range","SORT_MERGE_PASSES":"Sort Merge Passes","SORT_SCAN":"Sort Scan","SLOW_QUERIES":"Slow Queries","TABLE_LOCKS":"Table Locks","TABLE_LOCKS_IMMEDIATE":"Table Locks Immediate","TABLE_LOCKS_WAITED":"Table Locks Waited","TMP_TABLES_AND_FILES":"Temporary Tables and Files","CREATED_TMP_TABLES":"Created Temporary Tables","CREATED_TMP_DISK_TABLES":"Created Temporary Disk Tables","CREATED_TMP_FILES":"Created Temporary Files","MYSQL_NETWORK_TRAFFIC":"Network Traffic","MYSQL_INBOUND":"Inbound","MYSQL_OUTBOUND":"Outbound","CLUSTER_TASK_WAITING_TIME":"Cluster Task Waiting Time","CLUSTER_TASK_STATUS":"Cluster Task Status","CLUSTER_NUMBER_OF_IN_FLIGHT_FETCH":"In-Flight Fetches","CLUSTER_NUMBER_OF_PENDING_TASKS":"Pending Tasks","CLUSTER_NUMBER_OF_NODES":"Nodes","CLUSTER_NUMBER_OF_DATA_NODES":"Data Nodes","CLUSTER_NUMBER_OF_ALL_NODES":"All Nodes","SHARD_STATUS":"Shard Status","CLUSTER_DELAYED_UNASSIGNED_SHARDS":"Delayed Unassigned Shards","CLUSTER_INITIALIZING_SHARDS":"Initializing Shards","CLUSTER_RELOCATING_SHARDS":"Relocating Shards","CLUSTER_UNASSIGNED_SHARDS":"Unassigned Shards","CLUSTER_ACTIVE_PRIMARY_SHARDS":"Active Primary Shards","CLUSTER_ACTIVE_SHARDS":"Active Shards","CLUSTER_HEALTH_STATUS":"Cluster Health Status","CLUSTER_HEALTH_STATUS_GREEN":"Green","CLUSTER_HEALTH_STATUS_YELLOW":"Yellow","CLUSTER_HEALTH_STATUS_RED":"Red","HEAP_MEMORY":"Heap Memory","JVM_MEMORY_HEAP_USAGE_PER":"JVM Memory Heap Usage","DATA_AVAILABLE_BYTES":"Available Disk Space","DATA_AVAILABLE_PERCENT":"Available Disk Percentage","ECK_CPU_USAGE":"CPU Usage","OS_LOAD":"OS Load","OS_LOAD1":"OS Load (1 minute)","OS_LOAD5":"OS Load (5 minutes)","OS_LOAD15":"OS Load (15 minutes)","DOC_STATISTICS":"Doc Statistics","ELASTICSEARCH_INDICES_DOCS":"Docs","ELASTICSEARCH_INDICES_DOCS_DELETED":"Deleted Docs","ELASTICSEARCH_INDICES_INDEXING_INDEX_QPS":"Indexing QPS","ELASTICSEARCH_INDICES_SEARCH_QUERY_QPS":"Search QPS","ELASTICSEARCH_INDICES_INDEXING_TIME_MS":"Indexing Time","ELASTICSEARCH_INDICES_SEARCH_TIME_MS":"Search Time","CLUSTER_SHARDS_ACTIVE_PERCENT":"Active Shards","ONLINE_BROKER_COUNT":"Online Brokers","PARTITIONS_UNDER_MINIMUM_ISR":"Partitions Under Minium ISR","OFFLINE_PARTITION_COUNT":"Offline Partitions","TOPIC_INCOMING_DATA_RATE":"Incoming Bytes per Second","TOPIC_OUTGOING_DATA_RATE":"Outgoing Bytes per Second","TOPIC_INCOMING_MESSAGE_RATE":"Incoming Messages per Second","KAFKA_OPEN_FILE_DESC":"Open File Descriptors","TOPIC_OUTGOING_MESSAGE_RATE":"Total Produce Request Rate","NETWORK_PROCESSOR_AVG_IDLE_PERCENT":"Idle Network Processor Ratio","DISK_WRITES":"Disk Write","DISK_READS":"Disk Read","KAFKA_MEMORY_USAGE":"Memory Usage","KAFKA_CPU_USAGE":"CPU Usage","JVM_MEMORY_USAGE":"JVM Memory Usage","JVM_THREAD_COUNT":"JVM Threads","AVAILABLE_DISK_SPACE":"Available Disk Space","ALL_KAFKA_NODES":"All Kafka nodes","ALL_ZOOKEEPER_NODES":"All ZooKeeper nodes","OP_COUNTERS":"Operations","OP_INSERT":"Insert","OP_QUERY":"Query","OP_UPDATE":"Update","OP_DELETE":"Delete","OP_GETMORE":"Get More","OP_COMMAND":"Total","OPREPL_COUNTERS":"Replica Set Operations","OPREPL_INSERT":"Insert","OPREPL_QUERY":"Query","OPREPL_UPDATE":"Update","OPREPL_DELETE":"Delete","OPREPL_GETMORE":"Get More","OPREPL_COMMAND":"Total","CONNECTIONS_CURRENT":"Current","CONNECTIONS_TOTALCREATED":"Total Created","CONNECTIONS_AVAILABLE":"Available","CONNECTIONS_ACTIVE":"Active","CURSOR_COUNT":"Cursors","CURSOR_TIMEDOUT":"Timeout","CURSOR_OPEN_NOTIMEOUT":"No Timout","CURSOR_OPEN_PINNED":"Pinned","CURSOR_OPEN_TOTAL":"Total","MONGODB_NETWORK_TRAFFIC":"Network Traffic","NETWORK_BYTESIN":"Inbound Traffic","NETWORK_BYTESOUT":"Outbound Traffic","WIREDTIGER_OPERATION_COUNT":"WiredTiger Operations","WT_WRITE_OUT":"Concurrent Write Operations","WT_WRITE_AVAILABLE":"Available Concurrent Write Operations","WT_READ_OUT":"Concurrent Read Operations","WT_READ_AVAILABLE":"Available Concurrent Read Operations","DOC_COUNT":"Docs","DOC_DELETED":"Deleted Docs","DOC_INSERTED":"Inserted Docs","DOC_RETURNED":"Returned Docs","DOC_UPDATED":"Updated Docs","QUERYEXECUTOR":"Query Executor Metrics","SCANNEDKEYS":"Scanned Keys","SCANNEDDOCS":"Scanned Docs","ACTIVECLIENTS":"Active Clients","CLIENTS_TOTAL":"Total Clients","CLIENTS_READERS":"Read Clients","CLIENTS_WRITERS":"Write Clients","QUEUED_OPERATIONS":"Queued Requests","QUEUE_TOTAL":"Total","QUEUE_READERS":"Queued Read Requests","QUEUE_WRITERS":"Queued Write Requests","WIREDTIGER_CACHE":"WiredTiger Cache","WIREDTIGER_CACHE_USAGED":"Cache Usage","WIREDTIGER_CACHE_DIRTY_USAGE":"Dirty Data Ratio","OPENSEARCH_HEAP_MEMORY":"Heap Memory","OPENSEARCH_HEAP_MEMORY_PER":"Heap Memory Usage","OPENSEARCH_CPU_USAGE":"CPU Usage Percentage","OPENSEARCH_CPU_USAGE_PER":"CPU Usage","CPU_LOAD":"CPU Load","CPU_LOAD1":"CPU Load (1 minute)","CPU_LOAD5":"CPU Load (5 minutes)","CPU_LOAD15":"CPU Load (15 minutes)","EVENTS_STATISTICS":"Event Statistics","IN_EVENTS_STATISTICS":"Inbound Events","FILTERED_EVENTS_STATISTICS":"Filtered Events","OUT_EVENTS_STATISTICS":"Outbound Events","QUEUE_EVENTS_COUNT":"Events in Queue","JVM_THREADS_COUNT":"JVM Threads Count","DBPARAM_PIPELINE_WORKERS_DESC":"Number of Worker Threads","DBPARAM_PIPELINE_BATCH_SIZE_DESC":"Maximum number of events processed per batch by worker threads. Larger numbers consume more memory and require JVM heap adjustments.","DBPARAM_PIPELINE_BATCH_DELAY_DESC":"Maximum time in milliseconds that worker threads wait for a full batch before processing. ","DBPARAM_PIPELINE_UNSAFE_SHUTDOWN_DESC":"Whether to allow pipeline shutdown when events are still being processed.","DBPARAM_PIPELINE_ORDERED_DESC":"Pipeline event ordering setting. \"auto\" for automatic ordering, \"true\" for ordering with a single worker thread, \"false\" for no ordering.","DBPARAM_ECS_COMPATIBILITY_DESC":"Default value to use if the plugin supports ECS compatibility.","DBPARAM_LOG_LEVEL_DESC":"Logging Level","DBPARAM_LOG_FORMAT_DESC":"Logging Format","DBPARAM_LOG_JVM_DESC":"JVM heap size, typically set to 50%-75% of available memory. Defaults to 50% of available memory.","PREDIXY_MEMORY_USAGE":"Memory Usage","CLIENT_COUNT":"Clients","RECV_CLIENT_BYTES":"Bytes per Minute from Client","RECV_SERVER_BYTES":"Bytes per Minute from Server","SEND_CLIENT_BYTES":"Bytes per Minute to Client","SEND_SERVER_BYTES":"Bytes per Minute to Server","COMMANDS_EXECUTED_PER_MINUTE":"Commands Executed per Minute","REDIS_CLUSTER_COUNT":"Redis Clusters","REDIS_MEMORY_USAGE":"Memory Usage","REDIS_USED_MEMORY":"Used","REDIS_MAX_MEMORY":"Total","NETWORK_IO":"Network I/O","NETWORK_INPUT_BYTES":"Received Bytes (5 minutes)","NETWORK_OUTPUT_BYTES":"Sent Bytes (5 minutes)","TOP_5_REDIS_COMMANDS_PER_MINUTE":"Top 5 Commands per Minute","TOTAL_DB_KEYS":"Total Database Keys","DB_KEYS":"Database Keys","VALID_KEYS":"Valid Keys","EXPIRED_KEYS":"Expired Keys","KEYSPACE":"Keyspace","KEYSPACE_HITS_TOTAL":"Total Hits","KEYSPACE_MISSES_TOTAL":"Total Misses","MEMORY_FRAGMENTATION_RATIO":"Memory Fragmentation Ratio","REJECTED_CONNECTION_RATIO":"Ratio of Rejected Connections","REVICTED_KEY_RATIO":"Revicted Keys","QUORUM_SIZE":"Quorum","ZNODE_COUNT":"Znodes","WATCHER_COUNT":"Watchers","ZOOKEEPER_MEMORY_USAGE":"Memory Usage","ZOOKEEPER_CPU_USAGE":"CPU Usage","OPEN_FILE_DESCRIPTORS":"Open File Descriptors","REQUEST_LATENCY_AVERAGE":"Average Request Latency","REQUEST_LATENCY_MAXIMUM":"Maximum Request Latency","SHARD_COUNT":"Shards","SHARDS_DESC":"Number of shards. The value range is 1 to 100.","CK_REPLICAS_DESC":"Number of replicas for each shard. The value range is 1 to 3.","HTTP_PORT":"HTTP Port","HTTP_PORT_DESC":"The value range is 0 to 65535.","DATABASE_STORAGE_CLASS_DESC":"If no storage classs meets the requirements, please contact a platform administrator to create a storage class.","DATABASE_NODE_TIP":"A database node is a logical database instance rather than a physical server.","VALUE_RANGE_DESC":"The value range is {min} to {max}.","VALUE_MUST_BE_INTEGER":"The value must be an interger.","VALUE_CANNOT_BE_GREATER_THAN_VALUE":"The value cannot be greater than {max}.","VALUE_CANNOT_BE_LESS_THAN_20":"The value cannot be less than 20.","DATA_NODE_COUNT":"Data Nodes","STANDBY_DATABASE_COUNT":"Standby Databases","PROJECT_NAME_EXCEEDS_LIMIT":"The project name for MySQL 5.7 cannot exceed 16 characters.","APP_NAME_EXCEED_LIMIT":"The app name for MySQL 5.7 cannot exceed 14 characters.","DATABASE_KERNEL_VERSION_DESC":"Select the database version.","STANDBY_DATABASE_COUNT_DESC":"Number of standby databases. The value can be 1, 2, or 4.","VALUE_CANNOT_BE_LESS_THAN_10":"The value cannot be less than 10.","PRIMARY_NODE_SETTINGS":"Primary Node Settings","PRIMARY_NODE_RESOURCES_DESC":"Set the CPU and memory resources allocated to each primary node.","PRIMARY_NODE_COUNT":"Primary Nodes","PRIMARY_NODE_COUNT_DESC":"Set the number of primary nodes.","HOT_NODE_SETTINGS":"Hot Node Settings","HOT_NODE_RESOURCES_DESC":"Set the CPU and memory resources allocated to each hot node.","HOT_NODE_COUNT":"Hot Nodes","WARM_NODE_SETTINGS":"Warm Node Settings","WARM_NODE_RESOURCES_DESC":"Set the CPU and memory resources allocated to each warm node.","WARM_NODE_COUNT":"Warm Nodes","COLD_NODE_SETTINGS":"Cold Node Settings","COLD_NODE_RESOURCES_DESC":"Set the CPU and memory resources allocated to each cold node.","COLD_NODE_COUNT":"Cold Nodes","KIBANA_NODE_SETTINGS":"Kibana Node Settings","KIBANA_NODE_RESOURCES_DESC":"Set the CPU and memory resources allocated to each Kibana node.","KIBANA_NODE_COUNT":"Kibana Nodes","VOLUMN_PERSIST":"The size of the volume on the primary node is 20 GiB and cannot be modified.","REDIS_NODE":"Redis node","REDIS_NODE_COUNT":"Redis Nodes","REDIS_NODE_COUNT_DESC":"Number of nodes in the Redis cluster.","PROXY_NODE_COUNT":"Proxy Nodes","PROXY_NODE_RESOURCES":"Proxy Node Resources","ENDPOINT_TYPE":"External Access","ENDPOINT_TYPE_DESC":"Whether to use domain names to access database shards from outside the KubeSphere cluster.","ENDPOINT_TYPE_ERROR":"Before enabling this feature, ensure that no proxy nodes exist in the database cluster.","REDIS_PASSWORD_DESC":"The password can contain only uppercase letters, lowercase letters, numbers, and special characters (!@#$%^&*()./;). The length must be 6 to 31 characters.","INVALID_REDIS_PASSWORD_DESC":"Invalid password. The password can contain only uppercase letters, lowercase letters, numbers, and special characters (!@#$%^&*()./;). The length must be 6 to 31 characters.","VOLUME_CAPACITY_CANNOT_REDUCE":"The volume size cannot be reduced.","KAFKA_SETTINGS":"Kafka Settings","KAFKA_NODE_RESOURCES_DESC":"Set the CPU and memory resources allocated to each Kafka node.","KAFKA_VERSION":"Kafka Version","KAFKA_NODE_COUNT":"Kafka Nodes","ZOOKEEPER_SETTINGS":"ZooKeeper Settings","ZOOKEEPER_NODE_RESOURCES_DESC":"Set the CPU and memory resources allocated to each ZooKeeper node.","ZOOKEEPER_NODE_COUNT":"ZooKeeper Nodes","DASHBOARD_NODE_SETTINGS":"Dashboard Node Settings","DASHBOARD_NODE_RESOURCES_DESC":"Set the CPU and memory resources allocated to each dashboard node.","DASHOBOARD_NODE_COUNT":"Dashboard Nodes","LOGSTASH_NODE_SETTINGS":"Logstash Node Settings","LOGSTASH_NODE_RESOURCES_DESC":"Set the CPU and memory resources allocated to each Logstash node.","LOGSTASH_NODE_COUNT":"Logstash Nodes","MONGODB_NODE_COUNT_DESC":"Number of database nodes.","OTHER_APP_EMPTY_DESC":"Applications you installed with the helm command will be displayed here","OTHER_APP_PL":"other","UPLOAD_FAILED_MESSAGE":"Upload failed. {message}","GPU_USAGE_TIME":"GPU Usage ({time})","GPU_MEMORY_USAGE_TIME":"Graphics Memory Usage ({time})","PVC_USAGE_TOOLTIP_MESSAGE":"Persistent volume usage of the current project (the data may be inaccurate if file storage is used).","PROJECT_MEMBERS_AND_ROLES":"Project Members and Roles","RECENTLY_LOGGED_IN_MEMBERS":"Recently Logged In Users","PROJECT_ALERTS":"Project Alerts","ENT_CLUSTER_GATEWAY_GUIDE_DESC":"If the cluster gateway, workspace gateway and project gateway exist at the same time, the project gateway cannot be enabled after it is disabled. You are advised to used either the cluster gateway or workspace gateway.","WORKSPACE_GATEWAY_GUIDE_DESC":"If the workspace gateway and project gateway both exist, the project gateway cannot be enabled after it is disabled. You are advised to used either the workspace gateway or project gateway.","ROLL_BACK_MICROSERVICE_CONFIGURATION":"Roll Back Microservice Configuration","ROLLBACK_SUCCESSFUL":"Rolled back successfully.","HISTORICAL_VERSIONS":"Historical Versions","CONFIGURATION_CONTNET_TYPE":"Data ({type})","SQ_CONFIGURATION":"Microservice Configuration","SQ_CONFIGURATION_PL":"Microservice Configurations","SQ_CONFIGURATION_DESC":"Microservice configurations store key-value data to be used by microservices. You can use microservice configurations to separate a microservice from its configuration data.","SQ_CONFIGURATION_EMPTY_DESC":"Please create a microservice configuration. ","CONFIGURATION_STATUS_SUCCEEDED":"Published","CONFIGURATION_STATUS_FAILED":"Failed","CONFIGURATION_STATUS_":"Updating","DATA_ID":"Data ID","CREATE_CONFIGURATION":"Create Microservice Configuration","CONFIGURATION_CONTENT":"Data","CONFIGURATION_CONTENT_EMPTY_DESC":"Please enter configuration data.","EDIT_CONFIGURATION":"Edit Microservice Configuration","ORIGINAL_CONFIGURATION_CONTENT_READONLY":"Original Data (read-only)","CURRENT_CONFIGURATION_CONTENT":"New Data","REPLICATE":"Replicate","REPLICATE_CONFIGURATION_NAME":"Replicate Microservice Configuration {name}","SQ_CONFIGURATION_LOW":"microservice configuration","MICROSERVICE_GATEWAY":"Microservice Gateway","MICROSERVICE_GATEWAY_PL":"Microservice Gateways","MICROSERVICE_GATEWAY_DESC":"The microservice gateway forwards requests to microservices according to microservice routes so that microservices can be accessed by other microservices or clients.","MICROSERVICE_GATEWAY_EMPTY_DESC":"No Microservice Gateway Found","MICROSERVICE_GATEWAY_EMPTY_TIP":"Please create a microservice gateway.","GATEWAY_TYPE":"Gateway type","MICROSERVICE_GATEWAY_STATUS_RUNNING":"Running","MICROSERVICE_GATEWAY_STATUS_UPDATING":"Updating","MICROSERVICE_GATEWAY_STATUS_STOPPED":"Stopped","MICROSERVICE_GATEWAY_STATUS_":"Creating","CREATE_MICROSERVICE_GATEWAY":"Create Microservice Gateway","GATEWAY_IMAGE_EMPTY_DESC":"Please set the container image used to create the microservice gateway.","REPLICA_COUNT_EMPTY_DESC":"Please enter the number of replicas of the microservice gateway.","EDIT_MICROSERVICE_GATEWAY":"Edit Microservice Gateway","MICROSERVICE_GATEWAY_LOW":"microservice gateway","MICROSERVICE_ROUTE":"Microservice Route","MICROSERVICE_ROUTE_LOW":"microservice route","MICROSERVICE_ROUTE_PL":"Microservice Routes","MICROSERVICE_ROUTE_DESC":"The microservice gateway forwards requests to microservices according to microservice routes so that microservices can be accessed by other microservices or clients.","MICROSERVICE_ROUTE_EMPTY_DESC":"Please create a microservice route. Before creating a microservice route, ensure that a microservice gateway is available.","CREATE_MICROSERVICE_ROUTE":"Create Microservice Route","MICROSERVICE_ORDER":"Order","MICROSERVICE_ORDER_DESC":"Priority of the microservice route. A smaller number indicates higher priority.","MICROSERVICE_ROUTE_URL_DESC":"URL of a microservice.","PREDICATE":"Predicate","MICROSERVICE_ROUTE_FILTER":"Filter","EDIT_MICROSERVICE_ROUTE":"Edit Microservice Route","NO_INSTANCE_FOUND":"No Instance Found","MICROSERVICE_INSTANCE_PL":"Instances","MICROSERVICE_INSTANCE_STATUS":"Instance Status","MICROSERVICE_INSTANCE_ID":"Instance ID","SPRING_CLOUD_METADATA":"Spring Cloud Metadata","POD_METADATA":"Pod Metadata","SPRING_CLOUD_MONITORING":"Spring Cloud Monitoring","JVM_THREADS_LIVE":"Active Threads","JVM_THREADS_DAEMON":"Daemons","JVM_THREADS_PEAK":"Peak Threads","JVM_MEMORY_USED":"Used","JVM_MEMORY_COMMITTED":"Available","JVM_MEMORY_MAX":"Maximum","JVM_MEMORY_USED_METASPACE":"Initial","SPRING_BOOT_CONFIGURATION_INFOMATION":"Spring Boot Environment Variables {resources}","PROPERTY_NOT_SET":"No Environment Variable Found","POD_ENVIRONMENT_VARIABLE":"Pod Environment Variables","SPRING_CLOUD":"Spring Cloud","MICROSERVICE":"Microservice","MICROSERVICE_PL":"Microservices","MICROSERVICE_DESC":"In the Spring Cloud architecture, you can build a large scale application composed of multiple microservices. Microservices handle requests from clients. Each microservice contains one or more instances and each instance is a replica of the microservice.","WHAT_IS_SERVICE_REGISTRATION_CENTER_Q":"What is the service registry?","WHAT_IS_SERVICE_REGISTRATION_CENTER_A":"The service registry is the core functional component of the Spring Cloud microservice architecture. The service registry stores information about microservices and mapping between microservices and microservice addresses.","SERVICE_REGISTRY":"Service Registry","SERVICE_REGISTRY_ADDRESS":"Service registry address","DOWNLOAD_SAMPLE_CONFIGURATION":"Download Sample Configuration","INSTANCE":"Instance","INSTANCE_PL":"Instances","HEALTHY_INSTANCE":"Healthy instance","HEALTHY_INSTANCE_PL":"Healthy instances","MICROSERVICE_INSTANCE_COUNT":"Instances","MICROSERVICE_HEALTHY_INSTANCE_COUNT":"Healthy Instances","HEALTH_PROTECTION_TRIGGERED":"Health Protection Triggered","MICROSERVICE_EMPTY_DESC":"Please create a microservice.","SPRING_CLOUD_PROJECT_NOT_LABEL":"Spring Cloud stock project","SPRING_CLOUD_PROJECT_NOT_LABEL_DESC":"Whether to enable Spring Cloud under this project","OPEN_PROJECT_SPRING_CLOUD":"Enable Spring Cloud","MICROSERVICE_INSTANCE_STATUS_RUNNING":"Running","MICROSERVICE_INSTANCE_STATUS_OFFLINE":"Offline","EDIT_WEIGHT":"Edit Weight","INSTANCE_WEIGHT_DESC":"Weight of the microservice instance.","TAKE_ONLINE":"Take Online","TAKE_ONLINE_SUCCESS":"Take Online Success","CREATE_MICROSERVICE":"Create Microservice","ASC_EXPORT":"Ascending","DESC_EXPORT":"Descending","LOG_EXPORT":"Log Export","END_USER_SOFTWARE_LICENSE_AGREEMENT":"End User Software License Agreement","END_USER_SOFTWARE_LICENSE_AGREEMENT_LINK":"End User Software License Agreement","PLEASE_AGREE_USER_SOFTWARE_LICENSE_AGREEMENT":"Please agree to the End User Software License Agreement","WORKSPACE_GATEWAY_DESC":"Set up and manage the configuration of the external network access gateway and service management in the workspace and project.","WORKSPACE_GATEWAY":"Workspace Gateway","WORKSPACE_GATEWAY_LOW":"workspace gateway","PROJECT_ENABLE_GATEWAY_DESC_WS":"If you need to set up a project gateway, please go to the corresponding project to open it.","CLUSTER_GATEWAY_GUIDE_DESC_WS":"If the cluster gateway and workspace gateway both exist, the workspace gateway cannot be enabled after it is disabled. You are advised to used either the cluster gateway or workspace gateway.","CLUSTER_NOT_SUPPORT_WORKSPACE_GATEWAY":"This cluster does not support this feature. If you need to use this feature, please upgrade the cluster to KubeSphere Enterprise 3.4.0 or later.","STORAGE_RELATED_RESOURCE_LIMIT":"Limit on Resources Bound with Storage Class","TOTAL_STORAGE_CLASS":"Total Storage Classes","LIMITED_STORAGE_CLASS":"Number of Limited Storage Classes","RELATED_RESOURCE_QUOTA":"Bound Resource Quota","REQUESTS_STORAGE":"PVC Limit","PERSISTENTVOLUMECLAIMS":"PVC","TOTAL_STORAGE_RESOURCE":"Total Storage Resources","STORAGE_RELATED_RESOURCE":"Storage Class Bound Resources","TOTAL_STORAGE_LIMIT_LESS_THAN_RELATE_RESOURCE":"The total limit of storage resources cannot be less than that of bound resources.","VOLUME_TOTAL_CAPACITY":"Total Capacity of PVCs ({unit})","VOLUME_MAX_NUM":"Total PVCs","SET_RELATED_STORAGE_CLASS_QUOTA":"Set the quota for the PVC bound with the storage class.","SELECT_STORAGE_CLASS":"Select Storage Class","STORAGE_QUOTA":"Storage Resource Quota","WS_STORAGE_QUOTA_DESC":"Limit the the total amount of storage resources under the workspace.","NS_STORAGE_QUOTA_DESC":"Limit the the total amount of storage resources under the project.","STORAGE_VOLUME_LIMIT_NO_LIMIT":"Resource limits: no limit on the PVC capacity","STORAGE_VOLUME_LIMIT_HAS_A_LIMIT":"Resource limits: PVC capacity {num} Gi","STORAGE_PERSISTENT_VOLUME_NO_LIMIT":"No limit on the number of PVCs.","STORAGE_PERSISTENT_VOLUME_HAS_A_LIMIT":"number of PVCs {num}","STORAGE_LIMIT":"PVC capacity limit","STORAGE_CLASS_VOLUME":"Number of PVCs","SELECT_A_STORAGECLASS":"Select Storage Class","VOLUME_COUNT":"Bound PVCs","KS_DESCRIPTION":"KubeSphere es un proyecto de código abierto que tiene como objetivo proporcionar una plataforma de contenedores multi-tenant de nivel empresarial sobre Kubernetes, la plataforma de orquestación de contenedores de referencia. KubeSphere proporciona una interfaz fácil de usar y permite realizar operaciones usando asistentes, reduciendo la curva de aprendizaje y el costo operativo de Kubernetes en términos del trabajo diario de desarrollo, prueba y mantenimiento.","REPS_ADDRESS":"GitHub","ISSUE_FEEDBACK":"Feedback","PART_IN_DISCUSSION":"Discusión","CODE_CONTRIBUTE":"Contribución","GITHUB_STAR":"Star","DESELECT_RESOURCE_FIRST":"Por favor deseleccione {resource} primero.","NO_AUTHORIZED_USER_DESC":"Este rol no ha sido asignado a ningún usuario.","PLATFORM_ROLE_PL":"Roles de Plataforma","PLATFORM_ROLE_EMPTY_DESC":"Por favor, cree un rol de plataforma.","ROLE_USERS_MANAGER":"Maneje todos los usuarios en la plataforma KubeSphere.","ROLE_WORKSPACES_MANAGER":"Maneje todos los espacios de trabajo en la plataforma KubeSphere.","ROLE_PLATFORM_ADMIN":"Administrador de la plataforma que puede administrar todos los recursos en la plataforma.","ROLE_PLATFORM_REGULAR":"Usuario normal en la plataforma que no tiene acceso a ningún recurso antes de unirse al espacio de trabajo o clúster.","ROLE_PLATFORM_SELF_PROVISIONER":"Create workspaces and become an administrator of the created workspaces.","CREATION_TIME_TCAP":"Fecha de creación","CREATE_PLATFORM_ROLE":"Create Platform Role","PERMIGROUP_CLUSTERS_MANAGEMENT":"Clusters","PERMISSION_CLUSTERS_VIEW":"Cluster Viewing","PERMISSION_CLUSTERS_VIEW_DESC":"View all clusters and cluster resources.","PERMISSION_CLUSTERS_MANAGEMENT":"Cluster Management","PERMISSION_CLUSTERS_MANAGEMENT_DESC":"Create clusters, delete clusters, and manage resources in all clusters.","PERMIGROUP_ACCESS_CONTROL":"Control de acceso","PERMISSION_WORKSPACES_VIEW":"Workspace Viewing","PERMISSION_WORKSPACES_VIEW_DESC":"View workspaces.","PERMISSION_WORKSPACES_MANAGEMENT":"Workspace Management","PERMISSION_WORKSPACES_MANAGEMENT_DESC":"Create, edit, delete, and view workspaces.","PERMISSION_WORKSPACES_CREATE":"Workspace Creation","PERMISSION_WORKSPACES_CREATE_DESC":"Create workspaces and become an administrator of the created workspaces.","PERMISSION_USERS_VIEW":"User Viewing","PERMISSION_USERS_VIEW_DESC":"View users.","PERMISSION_USERS_MANAGEMENT":"User Management","PERMISSION_USERS_MANAGEMENT_DESC":"Create, edit, and delete users.","PERMISSION_ROLES_VIEW":"Vista de roles de proyecto","PERMISSION_ROLES_VIEW_DESC":"View platform roles.","PERMISSION_ROLES_MANAGEMENT":"Gestión de Roles de Proyecto","PERMISSION_ROLES_MANAGEMENT_DESC":"Create, edit, and delete platform roles.","PERMIGROUP_APPS_MANAGEMENT":"Aplicaciones","PERMISSION_APP_TEMPLATES_VIEW":"App Viewing","PERMISSION_APP_TEMPLATES_VIEW_DESC":"View the platform App Store.","PERMISSION_APP_TEMPLATES_MANAGEMENT":"Gestión de plantillas de aplicaciones del espacio de trabajo","PERMISSION_APP_TEMPLATES_MANAGEMENT_DESC":"Manage the platform App Store and life cycles of cloud-native applications.","PERMIGROUP_PLATFORM_SETTINGS":"Configuración de la plataforma","PERMISSION_PLATFORM_SETTINGS_MANAGEMENT":"Platform Settings Management","PERMISSION_PLATFORM_SETTINGS_MANAGEMENT_DESC":"View and edit settings of the KubeSphere platform.","DELETING_PRESET_ROLES_NOT_ALLOWED":"Preset roles cannot be deleted.","CONFIRM_PASSWORD_TIP":"Please enter the new password again.","CHANGE_PASSWORD":"Change Password","NEW_PASSWORD":"New Password","PASSWORD_STRENGTH":"Password Strength","PASSWORD_STRENGTH_DESC":"Avoid using weak passwords or passwords of other accounts.","TIME":"Hora","SOURCE_IP_ADDRESS":"Source IP Address","LOGIN_HISTORY":"Login History","NO_LOGIN_HISTORY":"No login history is found.","SUCCESSFUL":"Successful","FAILED":"Failed","USER_DESC":"Este módulo permite al administrador del sistema administrar cuentas, como crear / actualizar / leer / eliminar una cuenta. El administrador también puedes administrar el rol de cada cuenta. Los usuarios pueden iniciar sesión en la plataforma a través de su nombre de cuenta o dirección de correo electrónico.","USER_PL":"Usuarios","NOT_LOGIN_YET":"Not Logged in yet","USER_EMPTY_DESC":"Please create a user.","USER_ACTIVE":"Activo","USER_AUTHLIMITEXCEEDED":"Login Restricted","USER_PENDING":"Pendiente","USER_DISABLED":"Deshabilitado","LAST_LOGIN":"Última hora de inicio de sesión","USERNAME_DESC":"Solo puede contener letras minúsculas, números ,puntos y guiones (\"-\"), y debe comenzar con una letra minúscula y terminar con un número o letra minúscula. La longitud máxima de carácteres se establece en 32.","PASSWORD_DESC":"The password must contain at least one number, one lowercase letter, one uppercase letter, and one special character (~!@#$%^&*()-_=+\\|[{}];:'\",<.>/? or space). The length must be 8 to 64 characters.","PASSWORD_INVALID_DESC":"Invalid password. The password must contain at least one number, one lowercase letter, and one uppercase letter. The length must be 8 to 64 characters.","PLATFORM_ROLE_DESC":"Los tipos de roles se clasifican en clúster y proyecto. La función de tipo de clúster se utiliza para administrar el clúster.","USER_SETTING_EMAIL_DESC":"El correo electrónico se utiliza para iniciar sesión.","USERNAME_EXISTS":"El ombre de usuario ya existe","USERNAME_EMPTY_DESC":"Por favor introduce el nombre de usuario","PLATFORM_ROLE":"Platform Role","CREATE_USER":"Agregar usuario","EMAIL":"Email","EMAIL_EXISTS":"EL email ya existe","USERNAME_INVALID":"Nombre de usuario no válido. {message}","USERNAME":"Nombre de usuario","PASSWORD":"Contraseña","EDIT_USER":"editar usuario","USER_LOW":"user","DELETING_CURRENT_USER_NOT_ALLOWED":"The current user cannot be deleted.","WORKSPACE_PL":"Workspaces","WORKSPACE_DESC":"Los espacios de trabajo son una unidad lógica para organizar tus proyectos de carga de trabajo / namespaces de Kubernetes, proyectos DevOps, administrar el acceso a recursos y compartir información dentro de tu equipo. Es un lugar de trabajo aislado para tu equipo.","CLUSTER_PL":"Clusters","ALL_CLUSTERS":"All Clusters","CREATE_WORKSPACE":"Crear espacio de trabajo","WORKSPACE_NAME_EMPTY_DESC":"Introduce el nombre del espacio de trabajo","WORKSPACE_CREATE_DESC":"Los esapcios de trabajo son una unidad lógica para organizar tus proyectos y proyectos DevOps. El acceso a los recursos y los recursos compartidos del equipo se pueden administrar aquí. Puede servir como un espacio de trabajo independiente para tu equipo.","ADMINISTRATOR":"Administrator","WORKSPACE_NAME_EXISTS_DESC":"The workspace name already exists.","INVALID_WORKSPACE_NAME":"Invalid workspace name.","SELECT_CLUSTERS_DESC":"Selecciona el clúster disponible en el espacio de trabajo.","NO_CLUSTER_AVAILABLE":"No Cluster Available","NO_CLUSTER_AVAILABLE_DESC":"No hay clústeres públicos disponibles, solicita autorización para clúster al administrador de la plataforma o al administrador del clúster después de crear el espacio de trabajo","WORKSPACE_NO_CLUSTER_TIP":"You need to contact the platform or cluster administrator to authorize a cluster to the workspace.","AVAILABLE_CLUSTERS":"Clusters Disponibles","CLUSTER_SETTINGS":"Configuraciones de clúster","CLUSTER_SETTINGS_LIMIT_DESC":"Seleccione al menos un clúster.","SELECT_HOST_CLUSTER_WARNING":"The visibility of the multi-cluster environment will decrease if the host cluster is overloaded. It is not recommended to create resources on the host cluster.","DELETE_WORKSPACE":"Eliminar espacio de trabajo","WORKSPACE_LOW":"workspace","BACK":"Back","AGREE":"De acuerdo","APP_DEPLOY_AGREEMENT":"Acuerdo de implementación de la aplicación","APP_DEPLOY_AGREEMENT_DESC_1":"You must abide by the open-source agreement of the application.","APP_DEPLOY_AGREEMENT_DESC_2":"Any consequences arising from your deployment of the application shall be borne by you. For support services, please contact the developer.","DO_NOT_REMIND_AGAIN":"No recordar de nuevo","LOCATION":"Ubicación de despliegue","CLUSTER_NAME_DESC":"The name can contain only lowercase letters, numbers, and hyphens (-), must start with a lowercase letter, and must end with a lowercase letter or number. The maximum length is 32 characters.","FEDPROJECT_CANNOT_DEPLOY_APP_TIP":"No se pueden implementar aplicaciones en proyectos de múltiples clústeres.","LATEST_VERSION_SCAP":"Última versión","WORKSPACE_EMPTY_DESC":"Selecciona un espacio de trabajo, por favor","VERSION_EMPTY_DESC":"Selecciona una versión","HELM_APP_SCHEMA_FORM_TIP":"The app configuration can be displayed in a form. You can modify the default app configuration through either the form or YAML editor. Note: app data stored in different patterns are independent of each other.","DEPLOYED_SUCCESSFUL":"Deployed successfully.","APP_INFORMATION":"Info de Aplicación","VERSION_NUMBER":"Número de versión","APP_SCREENSHOTS":"Capturas de pantalla de Aplicación","CATEGORY_COLON":"Category:","HOMEPAGE_COLON":"Homepage:","RELEASE_DATE_COLON":"Release Date:","APP_ID_COLON":"App ID:","SOURCE_CODE_ADDRESS_COLON":"Source Code Address:","APP_VERSIONS_TITLE":"Versions (only the latest 10 versions will be displayed)","MAINTAINER_COLON":"Mantenedores","VERSIONS":"Versions","KEYWORDS":"Palabras clave","NONE":"Ninguno","APP_INTRODUCTION":"App Introduction","APP_DETAILS":"Detalles de Aplicación","NO_DOCUMENT_DESC":"No documentation is found.","VERSION_INTRO_EMPTY_DESC":"La versión no tiene documentación.","CHART_FILES":"Ficheros del Chart","NO_APP_CHART_FILE_FOUND":"La aplicación no tiene un fichero Chart","APP_STORE":"Tienda de aplicaciones","HOME_APP_STORE_DESC":"The official App Store of KubeSphere provides deployment and management features that allow users to quickly deploy apps with one click based on app templates.","DISCOVER":"Discover","NEW_APPS":"New Apps","APP_CATE_ALL":"Todos","APP_CATE_UNCATEGORIZED":"Uncategorized","APP_CATE_MESSAGE_QUEUEING":"Message Queuing","APP_CATE_IMAGE_REGISTRY":"Image Registry","APP_CATE_PROMETHEUS_EXPORTER":"Prometheus Exporter","APP_CATE_WEB_SERVER":"Web Server","APP_CATE_NETWORKING":"Networking","APP_CATE_DATABASE_CACHE":"Database & Cache","APP_CATE_STORAGE":"Storage","MAINTAINER_VALUE":"Mantenedor: {value}","LATEST_VALUE":"Latest: {value}","TOTAL_CATE_COUNT":"Total Apps: {total}","SEARCH_BY_NAME":"Introduce un nombre para buscar","APP_SETTINGS":"Configuración de Aplicación","APP_CATEGORY_PL":"Categorias de Aplicación","APP_CATEGORIES_DESC":"Este módulo te permite crear, editar y eliminar categorías; así como clasificar las aplicaciones activas de la Tienda.","ALL_CATEGORIES_VALUE":"Todas las categorías ({value})","APP_CATEGORY_EMPTY_DESC":"Ninguna aplicación pertenece a la categoría.","ENTER_CATEGORY_NAME_TIP":"Por favor, introduzca un nombre de categoría.","CATEGORY_NAME_DESC":"El nombre puede contener cualquier carácter y el largo máximo es de 20 caracteres.","DELETE_CATEGORY_DESC":"¿Está seguro que desea eliminar la categoría {name}?","CHANGED_SUCCESSFULLY":"Cambiado exitosamente.","CHANGE_CATEGORY":"Cambiar Categoría","CHANGE_CATEGORY_DESC":"La clasificación de la aplicación determinará la clasificación de la aplicación en la Tienda de Aplicaciones.","APP_DETAILS_DESC":"Ver detalles de la aplicación a ser lanzada.","INTRODUCTION":"Introducción","SERVICE_PROVIDER_WEBSITE":"Sitio Web del Proveedor de Servicio","APP_DESCRIPTION":"Descripción de la aplicación","DOCUMENTATION":"Documentación","NO_DOCUMENT_FOUND":"No se encontró documentación","UPDATE_TIME_COLON":"Update time: ","UPDATE_LOG":"Registro de actualizaciones","NO_UPDATE_LOG_DESC":"No se ha encontrado registro de actualizaciones.","REJECT":"Reject","REJECT_REASON_DESC":"Complete los motivos de rechazo de la revisión, por favor.","REJECT_REASON_TIP":"Introduce un motivo de rechazo, por favor","REJECT_SUCCESSFUL":"Rechazado Satisfactoriamente","APPROVE":"Approve","RELEASE_SUCCESSFUL":"Released successfully.","APP_REVIEW":"App Review","APP_REVIEW_DESC":"Review apps to be released to the App Store.","NEW_SUBMIT":"New","APP_REVIEW_EMPTY_DESC":"Please create an app template in a workspace and submit the app template for review.","APP_STATUS_TO_BE_REVIEWED":"To be reviewed","APP_STATUS_PASSED":"Approved","APP_STATUS_SUSPENDED":"Suspendido","APP_STATUS_REJECTED":"Rejected","APP_STATUS_IN_REVIEW":"Reviewing","OPERATOR":"Operador","APP_REVIEW_UNPROCESSED_EMPTY_DESC":"No App Needs to Be Reviewed","SUSPEND":"Suspend","APP_NOTE":"Note","SUSPEND_SUCCESSFUL":"Suspended successfully.","RELEASE":"Release","ACTIVATE_SUCCESSFUL":"Released successfully.","APP_ID":"ID de la aplicación","CATEGORY":"Categoría","TYPE":"Tipo","DEVELOPER":"Developer","NO_VERSION_INFO_DESC":"No version information is found.","ACTIVATE_VERSION":"Activar versión","CANCEL_SUBMISSION":"Cancelar revisión","SUSPEND_VERSION":"Suspender versión","APP_SUSPEND_TIP":"La aplicación {name} no se puede comprar en la tienda cuando está suspendida. ¿Estás seguro de suspenderlo ahora?","APP_RECOVER_TIP":"La aplicación {name} y las versiones suspendidas se mostrarán nuevamente en la tienda. ¿Estás seguro de activarlo ahora?","REJECTION_REASON":"Motivo de Rechazo","RELEASE_RECORD":"Release Record","RELEASE_RECORD_EMPTY_DESC":"No release record is found.","APPS":"Aplicaciones","APP_STORE_MANAGEMENT":"Gestión de la Tienda de Aplicacines","APP_STORE_DESC":"Gestionar aplicaciones de la Tienda.","APP_CATEGORY":"Categoria de Aplicación","APP_EMPTY_DESC":"Please create an app template in a workspace and release it to the App Store.","CRONJOB_EMPTY_DESC":"CronJobs maneja trabajos a base de horarios y puede ser utilizado para llevar a cabo tareas periódicas o recurrentes.","EVERY_DAY":"0 0 * * * * (cada día)","EVERY_HOUR":"0 * * * * * (cada hora)","EVERY_MONTH":"0 0 1 * * (cada mes)","EVERY_WEEK":"0 0 * * 0 (cada semana)","PAUSE":"Pausa","START":"Inicio","DAEMONSETS":"DaemonSets","DAEMONSET_EMPTY_DESC":"Un DaemonSet asegura que todos (o algunos) nodos ejecuten una copia de un Pod. Por lo general, un DaemonSet se usa para ejecutar una colección de registros, monitorear daemon u otras aplicaciones de administración del sistema.","MIN_READY_SECONDS":"Minimum Running Time for Pod Readiness (s)","MAX_UNAVAILABLE_PODS":"Maximum Unavailable Pods","ROLLING_UPDATE_SETTINGS":"El número de pods cuando se actualiza","MAX_UNAVAILABLE_PODS_DESC":"Maximum number or percentage of unavailable Pods during the update.","MIN_READY_SECONDS_DESC":"Especifica el número mínimo de segundos para los pods de un inicio de daemonset","MIN_READY_SECONDS_EMPTY":"Please set the minimum stable running time required for a Pod replica to be considered ready.","MAX_UNAVAILABLE_EMPTY":"Please set the maximum number of unavailable Pod replicas allowed during the update process.","FAILURE_THRESHOLD":"Umbral de éxito","HTTP_REQUEST":"Comprobación de solicitudes HTTP","INITIAL_DELAY_S":"Retraso (s) inicial","INITIAL_DELAY_TIMEOUT_VALUE":"{delay}s initial delay, {timeout}s timeout period","PROBE_TIME":"{delay} s delay, {timeout} s timeout","TIMEOUT_PERIOD_S":"Tiempo de espera (s)","CHECK_INTERVAL_S":"Periodo de Segundos","SUCCESS_THRESHOLD":"Umbral de fallo","INITIAL_DELAY_DESC":"Número de segundos después de que el contenedor se haya iniciado antes de que se inicien las sondas de vida.","TIMEOUT_PERIOD_DESC":"Número de segundos después de los cuales la sonda agota el tiempo de espera. El valor predeterminado es 1 segundo y el valor mínimo es 1.","CHECK_INTERVAL_DESC":"Frecuencia de la sonda (en segundos), que por defecto es de 10 segundos. El valor mínimo es 1.","SUCCESS_THRESHOLD_DESC":"Mínimos éxitos consecutivos para que la sonda se considere exitosa después de haber fallado. El valor predeterminado es 1 y debe ser 1 para la vida y el inicio. El valor mínimo es 1.","FAILURE_THRESHOLD_DESC":"Fallos mínimos consecutivos para que la sonda se considere fallida después de haber tenido éxito. El valor predeterminado es 3 y el valor mínimo es 1.","PROBE_COMMAND_EMPTY":"Por favor introduce el comando","TCP_PORT":"Comprobación de puerto TCP","MOUNT_PATH_IN_USE":"El punto de montaje ya está en uso","CREATOR":"Creador","NO":"No","EDIT_CONTAINER":"Edit Container","MULTI_CLUSTER_RESOURCE_TIP":"El recurso multi-clúster actual se ejecuta en distintos clústers. Puedes saltar entre clústers para comprobar los parámetros de este recurso en cada uno de ellos.","NODE":"Nodo","SERIAL_NUMBER":"Serial number","CREATED_TIME":"Created at {diff}","EVENT_PL":"Events","EVENT_NORMAL":"Normal","EVENT_WARNING":"Warning","APPLICATION_WORKLOAD_PL":"Workload de aplicaciones","WORKLOAD_PL":"Carga de trabajo","DEPLOYMENTS":"Deployments","UPDATE_TIME_TCAP":"Tiempo de actualización","ALL_PROJECTS":"Todos los proyectos","SHOW_NUM":"Show: {num}","SELECT_PROJECT_DESC":"Select a project in which the resource is to be created.","PROJECT_NOT_SELECT_DESC":"Please select a project.","BASIC_INFORMATION":"Información básica","NAME":"Nombre","FEDPROJECT_RESOURCE_TIP":"No se pueden crear recursos de proyectos de múltiples clústeres en la administración de clústeres, vaya a la página del proyecto de múltiples clústeres para operar.","FINISHED":"Done","NOT_SET":"To do","CURRENT":"Current","PROJECT":"Proyecto","PREVIOUS":"Anterior","NOTE":"Advertencia","IMAGE":"Imagen","IMAGE_VALUE":"Imagen: {value}","PORT_NUMBER_EMPTY":"Please enter a port number.","USER":"Usuario","VOLUME_NAME_EXIST":"nombre de volumen existe","SELECT_TYPE":"Select {type}","SPECIFY_SUBPATH":"Haga clic para agregar subPath","SPECIFY_SUBPATH_TIP":"Solo es apropiado para montar volúmenes, pero no para hostpath","MOUNT_PATH":"Mount path","MOUNT_PATH_NOT_SPECIFIED":"Please select a key to be mounted and the mount path of the key.","MOUNT_PATH_EMPTY":"Please enter a mount path.","MOUNT_PATH_REPEATED":"The mount path is duplicated.","NETWORK_SEGMENT_SCAP":"Network segment","AVAILABLE_ADDRESSES":"Available Number","POD_IP_POOL":"Pod IP Pool","SUBPATH":"sub ruta","ANNOTATION_PL":"Anotaciones","CREATE_SUCCESSFUL":"Creado con éxito","STOP":"Stop","STOP_TITLE_SI":"Stop {type}","STOP_TITLE_PL":"Stop Multiple {type}","STOP_DESC":"Are you sure you want to stop the resource?","END_TIME":"Hora de finalización","SN_NO":"Num.","START_TIME":"Hora de inicio","NODE_IP_ADDRESS":"Node IP Address","CLUSTER":"Cluster","CONTAINER_PL":"Contenedores","PROBE_PL":"Investigacion","HOOK_PL":"Hooks","CONTAINER_LOGS_NOT_SUPPORTED":"El contenedor no admite logs en tiempo real en el estado actual, intente nuevamente más tarde.","CONTAINER_LOGS":"Registros de contenedores","COMMAND":"Comando","IMAGE_ID":"ID de imagen","IMAGE_PULL_POLICY":"Política de extracción de imagen","CONTAINER_DETAILS_PAGE_SCAP":"Container details page.","CPU_VALUE":"CPU: {value, plural, =1 {1 core} other {# cores}}","MEMORY_VALUE":"Memory: {value}","NVIDIA_COM_GPU_VALUE":"GPU: {value}","LOADING":"Cargando","RESOURCE_LIMITS":"Límites de recursos","RESOURCE_REQUESTS":"Solicitudes de recursos","TERMINAL":"Terminal","RESTART_PL":"Reiniciar contadores","RESTART":"Restart","STORAGE_DEVICES":"Dispositivo de almacenamiento","LIVENESS_PROBE":"Sonda de estado","READINESS_PROBE":"Sonda de preparación","STARTUP_PROBE":"Startup Probe","REQUEST_TYPE":"Request type","NO_LOG_DATA_FOUND":"No Log Data Found","NO_LOG_DATA_FOUND_TIP":"No log data is found.","VOLUME_PL":"Volumes","TYPE_CONFIGMAP":"Volume type: ConfigMap","TYPE_SECRET":"Volume type: Secret","TYPE_EMPTYDIR":"Volume type: emptyDir","TYPE_HOSTPATH":"Volume type: HostPath","REASON_VALUE":"Reason: {value}","MESSAGE_VALUE":"Message: {value}","UPDATED_AT_VALUE":"Updated At: {value}","NO_MONITORING_DATA":"No Monitoring Data","OUTBOUND":"Outbound","INBOUND":"Inbound","POD_PL":"Pods","NODE_IP":"{node} ({ip})","WAITING":"Waiting","POD_LOW":"Pod","PENDING":"Pendiente","SERVICE_VALUE":"Servicio: {value}","PROTOCOL_VALUE":"Protocolo: {value}","ROUTE_DESC":"Una ruta proporciona una forma de agregar servicios, y puede exponer los servicios internos del clúster al exterior a través de una dirección IP accesible desde el exterior.","PREREQUESTS_FOR_USE_ROUTE_Q":"¿Cuales son los requisitos para poder usar rutas?","PREREQUESTS_FOR_USE_ROUTE_A":"To use a route, the project administrator needs to set the gateway for the current project.","ACCESS_TYPES_OF_ROUTE_Q":"¿Qué tipos de acceso admite la ruta?","ACCESS_TYPES_OF_ROUTE_A":"Las rutas de KubeSphere admiten nombres de dominio personalizados (HostName) y así como wildcards DNS.","ROUTE_PL":"Routes","GATEWAY_ADDRESS_TCAP":"Dirección del gateway","ROUTE_EMPTY_DESC":"Una ruta proporciona una forma de agregar servicios, y puede exponer los servicios internos del clúster al exterior a través de una dirección IP accesible desde el exterior.","ADD_ROUTING_RULE_DESC":"Agregar una regla de ruta para asignar un nombre de dominio a un servicio.","ADD_ROUTING_RULE":"Agregar regla de ruta","ROUTING_RULE_EMPTY_DESC":"Please add at least one routing rule.","PATH_EMPTY_DESC":"Please add at least one path.","AUTO_GENERATE_TCAP":"Autogenerar","DOMAIN_NAME_TCAP":"Domain Name","DOMAIN_NAME_EMPTY_DESC":"Ingrese un nombre de dominio","INVALID_DOMAIN_DESC":"Invalid domain name","INVALID_PATH_DESC":"Establezca una ruta correcta","MODE_TCAP":"Modo","PATH_PL":"Rutas","PATH_SERVICE_TIP":"Selecciona un servicio","SET_ROUTING_RULES":"Establecer regla de ruta","SPECIFY_DOMAIN_TCAP":"Especificar dominio","NO_GATEWAY_DESC":"Para usar la generación automática, comuníquese con el administrador del proyecto para configurar el método de acceso a la puerta de enlace en la configuración avanzada del proyecto.","PATH":"Ruta","PROTOCOL":"Protocolo","PORT":"Port","PORT_VALUE":"Port: {value}","CERTIFICATE":"Certificate","EDIT_ROUTING_RULES":"Edit Routing Rules","EDIT_ANNOTATIONS":"Edit Annotations","ROUTE_LOW":"Route","PLEASE_INSTALL_GATEWAY":"Please install the KubeSphere gateway extension component and configure the cluster agent before trying again.","ROUTE_SETTING_DESC":"Based on ingresses, Ingress Utils provides multiple practical extension capabilities, such as domain name reuse validation.","ROUTE_SETTING_EMPT":"No domain name requires reuse validation","ROUTE_SETTING_EMPTY_DESC":"After adding a domain name, uniqueness validation will be conducted on the domain name when creating or editing an ingress. Domain Name Reuse Validation only applies to the current cluster and does not affect the existing ingresses.","CREATE_DOMAIN_NAME":"Add domain name","CREATE_DOMAIN_NAME_DES":"Wildcard characters can be used to match domain names.","INVALID_CREATE_DOMAIN_NAME":"This domain name already exists. Please enter another domain name.","DOMAIN_NAME_DESC":"Please set a domain name","INVALID_DOMAIN_NAME":"Domain Name Reuse Validation","ROUTE_SETTING":"Domain name","ROUTE_SETTING_PL":"Ingress Utils","ROUTE_SETTING_LOW":"Domain name","DELETE_MULTIPLE_ROUTE_SETTING":"Batch delete domain names","EXIT_DOMAIN_DESC":"This domain name or its subdomain name has been used in the project of the current cluster. Please change the domain name to a different one.","CUSTOM_SERVICE":"Custom Service","VIRTUAL_IP":"IP virtual","CONTAINER_PORT_SCAP":"Container port","SERVICE_PORT_SCAP":"Service port","NO_AVAILABLE_RESOURCE_VALUE":"{resource} no disponible","NO_RESOURCE_FOUND":"No se puede encontrar el recurso.","REVISION_RECORD":"Revision record","SERVICE_PL":"Servicio","SERVICE_DESC":"Services provide an abstract way to expose applications running on a Pod as network services.","SERVICE_EMPTY_DESC":"Please create a Service.","UNKNOWN":"Unknown","EXTERNAL_ACCESS":"External Access","INTERNAL_ACCESS":"Internal Access","UNKNOWN_SERVICE_TYPE":"Unknown Service Type","SERVICE":"Servicio","SERVICE_LOW":"Service","INTERNAL_ACCESS_MODE":"Internal Access Mode","CREATE_SERVICE":"Crear servicio","SERVICE_NAME_DESC":"The name can contain only lowercase letters, numbers, and hyphens (-), must start with a lowercase letter, and must end with a lowercase letter or number. The maximum length is 63 characters.","VIRTUAL_IP_TITLE":"Virtual IP Address","INTERNAL_DOMAIN_NAME":"Internal Domain Name","CONTAINER_PORT":"Puerto de contenedores","INVALID_PORT":"Puerto inválido","PORT_EMPTY":"Por favor introduce puertos","ENTER_SELECTOR_TIP":"Please set a workload selector.","Ports":"Puertos","SPECIFY_WORKLOAD":"Specify Workload","SELECT_WORKLOAD_DESC":"Pre-populate the fields with labels of container replicas created by the workloads.","VIRTUAL_IP_DESC":"The cluster generates a unique IP address for the Service and the Service can be accessed within the cluster using this IP address.","INTERNAL_DOMAIN_NAME_DESC":"The cluster does not generate an IP address for the Service and the Service can be directly accessed using the Endpoint IP address of the Service.","SERVICE_PORTS_DESC":"Set the container ports and Service ports.","NO_WORKLOAD_MATCH_SELECTOR":"The current selector matches no workload.","WORKLOADS_MATCH_SELECTOR_SI":"The current selector ({selector}) matches {count} workload.","WORKLOADS_MATCH_SELECTOR_PL":"The current selector ({selector}) matches {count} workloads.","WORKLOAD_SELECTOR":"Workload Selector","SERVICE_SETTINGS":"Configuraciones de servicio","TOTAL_WORKLOADS_VALUE":"Total Workloads: { count }","OPENELB_NOT_READY":"OpenELB is not installed. Please install OpenELB.","SESSION_PERSISTENCE":"Session Persistence","MAXIMUM_STICKINESS_DURATION":"Tiempo máximo de sesión (s)","SESSION_PERSISTENCE_DESC":"Set the system to forward all requests from the same client to the same pod within a specified duration.","SERVICE_EXTERNAL_ACCESS_DESC":"Exponga el servicio fuera del clúster.","ACCESS_NODEPORT_TIP":"Use a port of the cluster nodes to access the Service.","ACCESS_LOADBALANCER_TIP":"Use a load balancer to access the Service.","WORKLOAD_ANNOTATIONS":"Workload Annotations","LABEL_FORMAT_DESC":"The key and value of a label can contain only letters, numbers, hyphens (-), underscores (_), and dots (.), and must start and end with a letter or number. The maximum length of each key and each value is 63 characters (if the key contains a domain name, the maximum length is 253 characters).","STATEFULSETS":"StatefulSets","INVALID_ALIAS_NAME_DESC":"Invalid alias name. The alias name can contain only letters, numbers, and hyphens (-), and cannot start or end with a hyphen. The maximum length is 63 characters.","NODES":"Nodos","DISK":"Disk","CLUSTER_INFORMATION":"Información del clúster","CLUSTER_NAME":"Nombre del clúster","EDIT_CLUSTER_INFO_DESC":"Edit basic information about the cluster.","REMOVE_CLUSTER":"Remove Cluster","REMOVE_CLUSTER_DESC":"After the cluster is removed, KubeSphere will not be able to manage the cluster. Resources in the cluster will not be deleted. Enter the cluster name {name} to confirm that you understand the risks of this operation.","REMOVE_SUCCESS":"Removed successfully.","CLUSTER_MEMBER_PL":"Cluster Members","CLUSTER_MEMBER":"Cluster Member","INVITE_CLUSTER_MEMBER_DESC":"Invite users to the cluster.","PERMIGROUP_NETWORK_MANAGEMENT":"Network","PERMISSION_NETWORK_RESOURCES_VIEW":"Network Resource Viewing","PERMISSION_NETWORK_RESOURCES_MANAGEMENT":"Network Resource Management","PERMIGROUP_PROJECT_RESOURCES_MANAGEMENT":"Project Resources","PERMISSION_PROJECT_RESOURCES_VIEW":"Project Resource Viewing","PERMISSION_PROJECT_RESOURCES_MANAGEMENT":"Project Resource Management","PERMISSION_STORAGECLASSES_VIEW":"Storage Class Viewing","PERMISSION_STORAGECLASSES_MANAGEMENT":"Storage Class Management","PERMISSION_VOLUME_SNAPSHOT_CLASSES_VIEW":"Volume Snapshot Class Viewing","PERMISSION_VOLUME_SNAPSHOT_CLASSES_MANAGEMENT":"Volume Snapshot Class Management","PERMIGROUP_CLUSTER_RESOURCES_MANAGEMENT":"Cluster Resources","PERMISSION_CRD_VIEW":"Custom Resource Definition Viewing","PERMISSION_CRD_MANAGEMENT":"Custom Resource Definition Management","PERMISSION_NODES_VIEW":"Node Viewing","PERMISSION_NODES_MANAGEMENT":"Node Management","PERMISSION_COMPONENTS_VIEW":"System Component Viewing","PERMIGROUP_CLUSTER_SETTINGS":"Configuraciones de clúster","PERMISSION_CLUSTER_SETTINGS_VIEW":"Cluster Settings Viewing","PERMISSION_CLUSTER_SETTINGS_MANAGEMENT":"Cluster Settings Management","PERMISSION_CLUSTER_MONITORING_VIEW":"Monitoring Information Viewing","PERMISSION_CLUSTER_MONITORING_MANAGEMENT":"Monitoring Information Management","PERMISSION_CLUSTER_ROLES_VIEW":"Vista de roles de proyecto","PERMISSION_CLUSTER_ROLES_MANAGEMENT":"Gestión de Roles de Proyecto","PERMISSION_CLUSTER_MEMBERS_VIEW":"Vista de miembros del proyecto","PERMISSION_CLUSTER_MEMBERS_MANAGEMENT":"Gestión de miembros de proyecto","CLUSTER_ROLE":"Cluster Role","CLUSTER_ROLE_PL":"Cluster Roles","CLUSTER_ROLE_DESC":"This module allows you to manage the access of users within a cluster.","ROLE_CLUSTER_VIEWER":"View all resources in the cluster.","ROLE_CLUSTER_ADMIN":"Manage all resources in the cluster.","CLUSTER_VISIBILITY":"Cluster Visibility","EDIT_VISIBILITY_DESC":"Edit the cluster visibility in workspaces.","UNAUTHORIZED":"Unauthorized","CLUSTER_VISIBILITY_DESC":"Cluster visibility controls the cluster authorization to workspaces. After a cluster is authorized to workspaces, you can view and manage the cluster resources in the workspaces.","CLUSTER_VISIBILITY_Q1":"How do I authorize a cluster to specific workspaces?","CLUSTER_VISIBILITY_A1":"You can assign a cluster to specific workspaces by clicking Edit Visibility.","CLUSTER_VISIBILITY_Q2":"¿Qué es un clúster público?","CLUSTER_VISIBILITY_A2":"Un clúster público significa que todos los usuarios de la plataforma pueden acceder al clúster, en el que pueden crear y programar recursos.","WORKSPACE":"Espacio de trabajo","CLUSTER_VISIBILITY_SCAP":"Visibilidad de clúster","AUTHORIZATION_TIME_TCAP":"Authorization Time","EDIT_VISIBILITY":"Editar visibilidad","AUTHORIZED":"Autorizado","SET_PUBLIC_CLUSTER":"Set as Public Cluster","HOST_CLUSTER_VISIBILITY_WARNING":"The visibility of the multi-cluster environment will decrease if the host cluster is overloaded. Exercise caution when assigning the host cluster to workspaces.","CLUSTER_VISIBILITY_REMOVE_WARNING":"After the authorization for a workspace to use the cluster is removed, all resources of the workspace on the cluster will be deleted.","REMOVE_WORKSPACE_CONFIRM_TITLE":"Remove Authorization","REMOVE_WORKSPACE_CONFIRM_SI":"Enter the workspace name {resource} to confirm that you understand the risks of this operation.","REMOVE_WORKSPACE_CONFIRM_PL":"Enter the workspace names {resource} to confirm that you understand the risks of this operation.","GATEWAY_LOW":"Gateway","REQUEST_COUNT":"Requests","NETWORK_TRAFFIC":"Network Traffic","CONNECTION_COUNT":"Connections","FAILED_REQUEST_COUNT":"Request Error","AVERAGE_LATENCY":"Average Latency","P_FIFTY_LATENCY":"P50 Latency","P_NINETY_FIVE_LATENCY":"P95 Latency","P_NINETY_NINE_LATENCY":"P99 Latency","FOUR_XX_REQUEST_COUNT":"4xx error","FIVE_XX_REQUEST_COUNT":"5xx error","TOTAL_REQUESTS":"Total Requests","SUCCESSFUL_REQUESTS":"Request Success","CONFIGURATION_OPTIONS":"Gateway Config","GATEWAY_LOGS":"Gateway Logs","LOGGING_DISABLED":"Logging Disabled","REFRESH_INTERVAL_VALUE":"Refresh interval: {value}s","EXPORT_LOGS":"Exportar logs","GATEWAY_SETTINGS":"Gateway Settings","CLUSTER_GATEWAY_DESC":"Set up and manage the configuration of the external network access gateway and service management in the cluster and project","CLUSTER_GATEWAY_NOT_ENABLED":"Cluster Gateway Not Enabled","CLUSTER_ENABLE_GATEWAY_DESC":"Before creating an application route, you need to enable the external network access portal, that is, the gateway. This step is to create the corresponding application routing controller, which is responsible for forwarding the request to the corresponding back-end service. ","CLUSTER_GATEWAY":"Cluster Gateway","GATEWAY_ADDRESS_SCAP":"Gateway address","LOAD_BALANCER_PROVIDER_SCAP":"Load balancer provider","ENABLE_GATEWAY":"Establecer puerta de enlace","GATEWAY_TRACING_TIP":"Necesitas habilitar Application Governance si deseas utilizar la función de Tracing. Una vez que Application Governance esté habilitado, verifica si se ha agregado una annotation como \"nginx.ingress.kubernetes.io/service-upstream: true\" para la ruta de la aplicación si la ruta es inaccesible. Si no existe el annotation, agrégalo.","VIEW_DETAILS":"Ver detalles","DISABLE":"Disable","DISABLE_GATEWAY":"Disable Gateway","DISABLE_GATEWAY_TIP":"Are you sure you want to disable the gateway?","DISABLE_SUCCESSFUL":"Disabled successfully.","EDIT":"Editar","EDIT_TITLE":"Edit {title}","UPDATE":"Update","UPDATED_GATEWAY_TITLE":"Update Gateway","UPDATE_GATEWAY_DESC":"The current gateway can be updated.","PROJECT_GATEWAY_PL":"Project Gateways","PROJECT_GATEWAY_NOT_ENABLED":"Project Gateway Not Enabled","PROJECT_ENABLE_GATEWAY_DESC":"The cluster management page does not support the setting of the project gateway. If you need to set it, you need to go to the corresponding project to set it. ","REPLICA_COUNT":"Replicas","NODE_PORTS":"Puerto host","PROJECT_GATEWAY_LOW":"project gateway","DISABLE_MULTIPLE_GATEWAYS":"Disable Multiple Gateways","EDIT_LOG_RECEIVER":"Edit Log Receiver","INDEX_PREFIX":"Index Prefix","LOG_RECEIVER":"Log Receiver","LOG_RECEIVER_LOW":"Log Receiver","CHANGE_STATUS":"Cambiar Estado","LOG_COLLECTION_ENABLE_TIPS":"El nuevo estado tarda aproximadamente 1 minuto en surtir efecto.","SELECT_STATUS_TIP":"Select a status","ADDRESS":"Address","LOG_RECEIVER_PL":"Log Receivers","LOG_COLLECTION_DESC":"El sistema recopilará los registros stdout y stderr de cada contenedor y los enviará a uno o más servicios de destino.","ADD_LOG_RECEIVER":"Add Log Receiver","LOG_COLLECTION_TIPS":"You can add one log receiver for each type.","ES_DESC":"Elasticsearch es un motor de búsqueda y análisis distribuido y RESTful.","KAFKA_DESC":"Kafka es una popular plataforma de procesamiento de flujo de código abierto.","FLUENTD_DESC":"Fluentd es un recopilador de datos de código abierto para la capa de registro unificada.","LOG_COLLECTION_ES_URL_TIPS":"The built-in Elasticsearch service is used by default. You can also enter the IP address of Elasticsearch independently deployed inside or outside the cluster.","LOG_COLLECTION_ES_INDEX_TIPS":"Use the index prefix to speed up queries. The index prefix is automatically generated in -- format.","ADDRESS_VALUE":"Address: {value}","TOPIC":"tema","ADD_SERVICE_ADDRESS":"Add","SERVICE_ADDRESS":"Dirección de Servicio","ENTER_SERVICE_ADDRESS":"Por favor introduce la dirección del servicio","INVALID_SERVICE_ADDRESS":"Please enter a correct service address.","SERVICE_ADDRESS_EXIST":"The service address already exists. Please enter another service address.","EXAMPLE_VALUE":"Example: {value}","LOG_COLLECTION_FLUENTD_URL_TIPS":"Enter the address of the Fluentd service that receives logs.","EMPTY_LOG_COLLECTIONS":"No log receiver is found. You can add log receivers and send logs to external log receivers.","RESOURCE_EVENTS":"Resource Events","AUDIT_LOGS":"Audit Logs","NO_CLUSTER_TIP":"Agregue al menos un clúster.","CLUSTER_NAME_EMPTY":"Please enter a cluster name.","ADD_CLUSTER":"Agregar clúster","TAG":"Etiqueta","CLUSTER_TAG_DESC":"Select a tag to identify the purpose of the cluster.","CLUSTER_PROVIDER_DESC":"Select the provider of the cluster infrastructure.","CONNECTION_SETTINGS":"Connection Settings","CLUSTER_CONFIG":"Cluster Configuration","EDIT_CONFIG":"Edit Configuration","CLUSTER_CONFIG_IMAGE_REGISTRY_TIP":"Please modify the image registry address to your actual one. The default is KubeSphere's official online registry. Ensure you can access it","CONNECTION_MODE":"Connection Mode","CLUSTER_CONNECT_MODE_DESC":"Directly connect to the cluster or use an agent.","CONNTECT_DIRECT":"Conexión directa al clúster de Kubernetes","CONNTECT_PROXY":"Agente de conexión de clúster","INPUT_KUBECONFIG":"Member Cluster kubeconfig","CLUSTER_DIRECT_IMPORT_TIP":"La interfaz de control de múltiples clústeres de KubeSphere se conecta a los clústeres importados a través del kubeconfig proporcionado. Para este método, el clúster actual debe poder acceder directamente a los clústeres que se importarán a través de la dirección del servidor en kubeconfig.

    Este método generalmente se aplica a las siguientes condiciones:
    1. El clúster actual y los clústeres que se importarán están en la misma red interna.
    2. La red tanto del clúster actual como de los clústeres que se importarán está conectada a través de VPN u otras tecnologías (por ejemplo, Túneles).
    3. Se puedes acceder a la dirección del servidor en kubeconfig a través de la red pública.","CLUSTER_AGENT_IMPORT_TIP":"La interfaz de control de KubeSphere se conecta a los clústeres que se importarán a través de un proxy. La interfaz de control ejecuta un servicio de proxy público, que está conectado a un componente de cliente creado por clústeres para importar. Por lo tanto, se crea un proxy de reserva. Para este método, la interfaz de control y los clústeres que se van a importar no necesitan estar en la misma red. La dirección de apiserver de los clústeres a importar tampoco necesita exponerse. Sin embargo, el rendimiento de la red puedes verse afectado.

    Este método generalmente se aplica a las siguientes condiciones:
    1. El clúster actual y los clústeres que se importarán no están en la misma red.
    2. La red tanto del clúster actual como de los clústeres que se van a importar no se puedes conectar a través de VPN u otras tecnologías (por ejemplo, Túneles).
    3. Se pueden aceptar deficiencias de rendimiento de la red dentro de los clústeres.","CLUSTER_AGENT_TITLE":"Agregue el clúster en función del agente proporcionado en el clúster.","CLUSTER_AGENT_DESC":"Se debe establecer un agente correspondiente en el clúster.","HOW_TO_GET_KUBECONFIG":"How do I obtain kubeconfig?","HOST_CLUSTER_TCAP":"Host Cluster","HOST_CLUSTER_PL_TCAP":"Host Clusters","MEMBER_CLUSTER_TCAP_PL":"Member Clusters","CLUSTER_CONDITION_INITIALIZED":"Inicializado","CLUSTER_CONDITION_AGENTAVAILABLE":"Agent Available","CLUSTER_CONDITION_FEDERATED":"Federated","CLUSTER_CONDITION_EXTERNALACCESSREADY":"External Access Ready","CLUSTER_CONDITION_READY":"Cluster Ready","CLUSTER_CONDITION_SCHEDULABLE":"Cluster Scheduling","CLUSTER_CONDITION_OPENPITRIXRUNTIMEREADY":"App Store Ready","CLUSTER_CONDITION_KUBECONFIGCERTEXPIRESINSEVENDAYS":"kubeconfig About to Expire","NODE_COUNT":"Cantidad de nodos","ENV_PRODUCTION":"Producción","ENV_DEVELOPMENT":"Desarrollo","ENV_TESTING":"Testing","ENV_DEMO":"Demo","UPDATE_KUBECONFIG":"Update kubeconfig","KUBE_CONFIG_IS_EXPIRED":"KubeConfig has expired","EXPIRE_DATE":"Expiration Time","LAST_KUBE_CONFIG_EXPIRED":"KubeConfig expires in {count} days","VALIDATION_FAILED":"Validation failed.","NO_CLUSTER_TIP_DESC":"A cluster is a group of nodes (physical or virtual machines) running KubeSphere.","RISK_WARNING":"Risk Warning","REMOVE_CLUSTER_TIP_A":"After the cluster is removed, resources in the cluster will not be cleared automatically.","REMOVE_CLUSTER_TIP_B":"After the cluster is removed, multi-cluster configuration data in the cluster will not be cleared automatically. Uninstalling KubeSphere or deleting related resources may cause user data loss. You must manually clear the multi-cluster configuration data in the removed cluster by refering to the official KubeSphere documentation.","CLUSTER_CONFIRM_TEXT":"I understand the risks of removing the cluster","ENTER_CLUSTER_NAME":"This operation cannot be undone. Enter the cluster name {name} to confirm that you understand the risks of this operation.","CLUSTER_BANNER_ALERT":"KubeSphere puede gestionar clústeres de miembros a través de KubeConfig. Después de agregar un clúster, no es necesario instalar KubeSphere en el clúster de miembros; si ya lo ha instalado, por favor desinstálelo antes de agregar el clúster de miembros.","CONFIGMAP_DESC":"Un ConfigMap a menudo se usa para almacenar la información de configuración necesaria para workload. Muchas aplicaciones leerán la información de archivos de configuración, de parámetros de la línea de comandos o de variables de entorno.","FIELDS":"Campo de configuración","EDIT_YAML":"Editar YAML","ENTER_CONFIG_VALUE_DESC":"Introduce el valor de la entrada del configmap o utiliza el contenido del archivo","CONFIG_FIELD_DESC":"El valor único de la clave asignada por el campo de configuración.","CONFIGURATION":"Configuration","SECRET_PL":"Secrets","SECRET_DESC":"Un secreto es un objeto que contiene una pequeña cantidad de datos confidenciales, como una contraseña, un token o una clave.","SECRET_FIELD_COUNT":"Los campos","SECRET_EMPTY_DESC":"Un secreto es un objeto que contiene una pequeña cantidad de datos confidenciales, como una contraseña, un token o una clave.","SECRET":"Secreto","DATA_SETTINGS":"Data Settings","IMAGE_REGISTRY_INFORMATION":"Secreto del repositorio de imágenes","TLS_INFORMATION":"TLS information","USERNAME_PASSWORD":"Secreto de contraseña de cuenta","ADD_DATA_TCAP":"Agregar datos","ADD_DATA_DESC":"Agregar datos de par clave / valor","REGISTRY_ADDRESS_TIP":"Establezca una dirección de registro, por ejemplo, docker.io.","IMAGE_REGISTRY_REQUIRED_DESC":"Establezca la dirección de registro, el nombre de usuario y la contraseña.","CREDENTIAL_NAME_EMPTY_DESC":"Por favor introduce la credencial","ENTER_PRIVATE_KEY_DESC":"Por favor introduce la clave privada","ENTER_DATA_DESC":"Por favor introduce los datos","PRIVATE_KEY_TCAP":"Clave privada","REGISTRY_ADDRESS_TCAP":"Dirección de registro","SKIP_VERIFY":"Skip certificate verification","REGISTRY_SECRET_VER_ERR":"La verificación del registro falló","REGISTRY_SECRET_VER_SUC":"Verificación de registro exitosa","SECRET_NO_CHINESE_CODE_DESC":"La clave del Secreto debe constar de caracteres alfanuméricos, guiones (-), guiones bajos (_) o puntos (.).","SECRET_TYPE_DESC":"Puedes elegir o personalizar un tipo secreto.","IMAGE_REGISTRY_VALIDATE_TIP":"Valide el nombre de usuario y la contraseña antes de crear el registro de imágenes Secreto.","DATA_KEY":"Clave","DATA_VALUE":"Valor","DEFAULT":"Predeterminado","USERNAME_AND_PASSWORD":"Secreto de contraseña de cuenta","DATA":"Datos","EDIT_DATA_TCAP":"Editar datos","KUBECONFIG_SETTINGS":"kubeconfig Settings","CUSTOM_RESOURCE_PL":"Custom Resources","PROJECT_DEVOPS_PROJECT":"Project/DevOps Project","CUSTOM_RESOURCE":"Custom Resource","CUSTOM_RESOURCE_LOW":"custom resource","CRD":"CRD","CRD_PL":"CRDs","CRD_LOW":"CRD","CRD_DESC":"A Custom Resource Definition (CRD) extends Kubernetes by allowing users to create any kind of custom resources. Users can use these CRD objects as they do for built-in resources.","CRD_EMPTY_DESC":"Please create a CRD.","KIND_TCAP":"Kind","SCOPE_TCAP":"Scope","ALERTING_MESSAGE_PL":"Alerts","ALERT_MESSAGE_DESC":"Alerts are generated when resource metrics meet conditions configured in rule groups.","ALERTS_FROM_CUSTOM_POLICIES":"From Custom Rules","ALERTS_FROM_BUILT_IN_POLICIES":"From Built-in Rules","TRIGGER_TIME":"Trigger Time","ALERTING_MESSAGE_EMPTY_DESC":"No alert is found in the current project.","MONITORING_TARGET":"Monitoring Target","DURATION":"Duration","VIEW_METRIC_DATA":"View metric data","ALERTING_RULE":"Alert Rules","MONITORING_TARGETS_SCAP":"Monitoring targets","TRIGGER_CONDITION_SCAP":"Trigger condition","METRIC_MONITORING":"Metric Monitoring","ALERT_MONITORING":"Alert Monitoring","NOTIFICATION_SUMMARY_COLON":"Summary: ","DETAILS_COLON":"Details: ","NODES_VALUES":"Nodes: {values}","TRIGGER_CONDITION":"Trigger Condition","MESSAGE_SUMMARY":"Summary","MESSAGE_DETAILS":"Details","VIEW_METRIC_DATA_TCAP":"View Metric Data","ALERT_RULE_TEXT_PERCENT_SECOND":"{alterTypeText} {comparator} {thresholds}% for {durationValue, plural, =1 {1 second} other {# seconds}}","ALERT_RULE_TEXT_PERCENT_MINUTE":"{alterTypeText} {comparator} {thresholds}% for {durationValue, plural, =1 {1 minute} other {# minutes}}","ALERT_RULE_TEXT_PERCENT_HOUR":"{alterTypeText} {comparator} {thresholds}% for {durationValue, plural, =1 {1 hour} other {# hours}}","ALERT_RULE_TEXT_SECOND":"{alterTypeText} {comparator} {thresholds} {unit} for {durationValue, plural, =1 {1 second} other {# seconds}}","ALERT_RULE_TEXT_MINUTE":"{alterTypeText} {comparator} {thresholds} {unit} for {durationValue, plural, =1 {1 minute} other {# minutes}}","ALERT_RULE_TEXT_HOUR":"{alterTypeText} {comparator} {thresholds} {unit} for {durationValue, plural, =1 {1 hour} other {# hours}}","CPU_UTILIZATION_NO_PERCENT_TCAP":"Uso de CPU","CPU_LOAD_1_TCAP":"1-Minute CPU Load Average","CPU_LOAD_5_TCAP":"5-Minute CPU Load Average","CPU_LOAD_15_TCAP":"15-Minute CPU Load Average","MEMORY_UTILIZATION_NO_PERCENT_TCAP":"Uso de memoria","MEMORY_AVAILABLE_TCAP":"Available Memory","DATA_SEND_RATE_TCAP":"Network Data Sending Rate","DATA_RECEIVE_RATE_TCAP":"Network Data Receiving Rate","DISK_SPACE_UTILIZATION_NO_PERCENT_TCAP":"Local Disk Usage","DISK_SPACE_AVAILABLE_TCAP":"Available Local Disk Space","INODE_UTILIZATION_NO_PERCENT_TCAP":"Inode Usage","DISK_READ_IOPS_TCAP":"Local Disk Read IOPS","DISK_WRITE_IOPS_TCAP":"Local Disk Write IOPS","DISK_READ_THROUGHPUT_TCAP":"Local Disk Read Throughput","DISK_WRITE_THROUGHPUT_TCAP":"Local Disk Write Throughput","UNAVAILABLE_POD_RATIO_NO_PERCENT_TCAP":"Unavailable Pod Ratio","POD_QUOTA_UTILIZATION_NO_PERCENT_TCAP":"Pod Quota Usage","MEMORY_USAGE_WO_CACHE_TCAP":"Memory Usage Without Cache","UNAVAILABLE_WORKLOAD_REPLICA_RATIO_NO_PERCENT_TCAP":"Unavailable Replica Ratio","THRESHOLD_VALUE":"Threshold: {value}","NO_DATA_DESC":"No Data Found","ALERTING_POLICY_PL":"Rule Groups","ALERTING_POLICY_DESC":"A rule group contains alert rules used to monitor cluster resources.","REQUESTS_FOR_TRIGGER_AN_ALARM_Q":"How are alerts generated?","REQUESTS_FOR_TRIGGER_AN_ALARM_A":"You need to create a rule group and set alert rules. The system will generate alerts when resource metrics meet conditions configured in rule groups.","CUSTOM_POLICIES":"Custom Rule Groups","BUILT_IN_POLICIES":"Built-in Rule Groups","ALERTING_POLICY_EMPTY_DESC":"Please create a rule group.","ALERT_RULE_INACTIVE":"Inactive","ALERT_RULE_PENDING":"Pendiente","ALERT_RULE_FIRING":"Firing","ALERT_RULE_DISABLED":"Deshabilitado","POLICY_STATUS":"Rule Group Status","RULE_STATUS":"Rule Status","TIME_SPENT":"Time Spent","RECENT_DETECT_TIME":"Last Check","EDIT_ALERT_RULES":"Edit Alert Rules","RESET":"Reset","SEVERITY":"Tipo de alerta","CREATE_ALERTING_POLICY":"Create Rule Group","CRITICAL_ALERT":"Critical","ERROR_ALERT":"Error","WARNING_ALERT":"Warning","INFO_ALERT":"Info","INVALID_TIME_DESC":"Invalid value. Please enter 0 or a positive integer.","ALIAS":"Alias","DURATION_MIN":"Duration (minutes)","ALERT_DURATION":"Set the system to wait for a certain duration and check whether the alert situation persists before firing an alert.","LONG_NAME_DESC":"Solo puede contener letras minúsculas, números y guiones (\"-\"), y debe comenzar con una letra minúscula y terminar con un número o letra minúscula. La longitud máxima de carácteres se establece en 253.","NAME_EXIST_DESC":"Nombre existe","ALIAS_NAME_DESC":"The alias name can contain only letters, numbers, and hyphens (-), and cannot start or end with a hyphen. The maximum length is 63 characters.","CHECK_INTERVAL":"Check Interval","ALERTING_POLICY_CHECK_INTERVAL_DESC":"Set the interval between metric checks. The default value is 1 minute.","ADD_ALERTING_RULE":"Add Alert Rule","ADD_ALERTING_RULE_DESC":"Add an alert rule to the rule group.","ENABLE_RULE":"Enable Rule","DISABLE_RULE":"Disable Rule","RULE_NAME":"Rule Name","CUSTOM_RULE_NAME_DESC":"The rule name can contain any characters. The maximum length is 63 characters.","LASTING_MINUTES":"For {minutes, plural, =1 {1 minute} other {# minutes}}","THRESHOLD_REQUIRED":"Please enter a metric threshold.","MESSAGE_SUMMARY_DESC":"The message summary can contain any characters. The maximum length is 63 characters.","MESSAGE_DETAILS_DESC":"The message details can contain any characters. The maximum length is 256 characters.","RULE_TEMPLATE":"Rule Template","RULE_SETTINGS":"Rule Settings","MONITORING_TARGETS":"Monitoring Targets","SET_ACTIVATION_CONDITION_DESC":"Please set a trigger condition.","THRESHOLD":"Umbral","UNAVAILABLE_POD_RATIO":"Unavailable pod ratio (%)","POD_QUOTA_UTILIZATION_SCAP":"Pod quota usage (%)","CPU_USAGE_SCAP":"ratio de uso de CPU","CPU_UTILIZATION_SCAP":"CPU usage (%)","CPU_LOAD_1":"1-minute CPU load average","CPU_LOAD_5":"5-minute CPU load average","CPU_LOAD_15":"15-minute CPU load average","MEMORY_AVAILABLE":"memoria disponible","MEMORY_UTILIZATION_SCAP":"Memory usage (%)","DISK_SPACE_AVAILABLE":"espacio de disco disponible","DISK_SPACE_UTILIZATION":"Local disk usage (%)","INODE_UTILIZATION":"Inode usage (%)","DISK_READ_IOPS":"iops de lectura de disco","DISK_WRITE_IOPS":"iops de escritura de disco","DISK_READ_THROUGHPUT":"rendimiento de lectura de disco","DISK_WRITE_THROUGHPUT":"rendimiento de escritura en disco","DATA_RECEIVE_RATE":"ratio de datos de red recibidos","DATA_SEND_RATE":"Network data sending rate","MEMORY_USAGE_SCAP":"ratio de uso de memoria","MEMORY_USAGE_WO_CACHE_SCAP":"Memory usage without cache","UNAVAILABLE_WORKLOAD_REPLICA_RATIO":"Unavailable replica ratio (%)","SELECT_NODE_TIP":"Please select at lease a cluster node.","CUSTOM_RULE":"Custom Rule","RULE_EXPRESSION":"Rule Expression","ENTER_RULE_EXPRESSION":"Please enter a rule expression.","ALERT_RULE_EXPRESSION_DESC":"You can define a custom rule using PromQL statements.","ALERT_FUNCTIONS":"Functions","ALERT_METRICS":"Metrics","ALERT_LABELS":"Labels","ALERT_RATE_RANGES":"Rate Ranges","ALERTING_MESSAGE":"Alert","MESSAGE_SETTINGS":"Message Settings","NOTIFICATION_SUMMARY":"Summary","NOTIFICATION_DETAILS":"Details","EDIT_ALERTING_POLICY":"Edit Rule Group","DISABLE_ALERTING_POLICY":"Disable Rule Group","ALERTING_POLICY":"Rule Group","ALERTING_POLICY_LOW":"rule group","RESET_ALERTING_POLICY":"Reset Rule Group","RESET_ALERTING_POLICY_DESC":"Are you sure you want to reset the rule group?","APPLICATION_RESOURCE_PL":"Monitorización de recursos de aplicaciones","MONITORING_APPLICATION_DESC":"Application resources provide the monitoring data of application resource usage and usage ranking.","CUSTOM_TIME_RANGE":"Customize Time Range","ACCOUNTS":"Accounts","DEVOPS_PROJECT_PL":"DevOps Projects","SAMPLING_INTERVAL":"Sampling Interval","KUBE_SUN":"Dom","KUBE_MON":"Lun","KUBE_TUE":"Mar","KUBE_WED":"Miér","KUBE_THU":"Juev","KUBE_FRI":"Vier","KUBE_SAT":"Sáb","KUBE_SUNDAY":"Domingo","KUBE_MONDAY":"Lunes","KUBE_TUESDAY":"Martes","KUBE_WEDNESDAY":"Miércoles","KUBE_THURSDAY":"Jueves","KUBE_FRIDAY":"Viernes","KUBE_SATURDAY":"Sábado","KUBE_JAN":"Ene","KUBE_FEB":"Feb","KUBE_MAR":"Mar","KUBE_APR":"Abr","KUBE_MAY":"May","KUBE_JUN":"Jun","KUBE_JUL":"Jul","KUBE_AUG":"Ago","KUBE_SEP":"Sep","KUBE_OCT":"Oct","KUBE_NOV":"Nov","KUBE_DEC":"Dic","KUBE_JAN_LH":"Enero","KUBE_FEB_LH":"Febrero","KUBE_MAR_LH":"Marzo","KUBE_APR_LH":"Abril","KUBE_MAY_LH":"Mayo","KUBE_JUN_LH":"Junio","KUBE_JUL_LH":"Julio","KUBE_AUG_LH":"Agosto","KUBE_SEP_LH":"Septiembre","KUBE_OCT_LH":"Octubre","KUBE_NOV_LH":"Noviembre","KUBE_DEC_LH":"Diciembre","APPLICATION_RESOURCE_USAGE":"Uso de recursos de la aplicación","DEPLOYMENT":"Deployment","DEPLOYMENT_PL":"Deployments","DEPLOYMENT_LOW":"deployment","STATEFULSET":"StatefulSet","STATEFULSET_PL":"StatefulSets","STATEFULSET_LOW":"statefulset","DAEMONSET":"DaemonSet","DAEMONSET_PL":"DaemonSets","DAEMONSET_LOW":"daemonset","DEPLOYMENTS_VALUE":"Deployments: {value}","STATEFULSETS_VALUE":"StatefulSets: {value}","DAEMONSETS_VALUE":"DaemonSets: {value}","RUNNING_PODS":"Pods en ejecución","ROUTE":"Ruta","PROJECT_PL":"Projects","PROJECT_COUNT":"Projects","USAGE_RANKING":"Usage Ranking","QUOTA_VALUE":"Quota: {value}","OUTBOUND_TRAFFIC":"Outbound Traffic","INBOUND_TRAFFIC":"Inbound Traffic","SORT_BY_NAMESPACE_CPU_USAGE":"Ordenar por uso de CPU","SORT_BY_NAMESPACE_POD_COUNT":"Sort by pod quota usage (%)","SORT_BY_NAMESPACE_NET_BYTES_RECEIVED":"Ordenar por tráfico entrante","SORT_BY_NAMESPACE_NET_BYTES_TRANSMITTED":"Ordenar por tráfico saliente","MONITORING_AND_ALERTING":"Monitorización y alertas","CLUSTER_STATUS":"Monitorización de estado del clúster","MONITORING_CLUSTER_DESC":"Cluster status displays the overview and details of cluster resources. You can view the monitoring data and the usage ranking of cluster resources.","CLUSTER_NODE_STATUS":"Estado del nodo del clúster","ALL_NODES":"Todos los nodos","ONLINE_NODES":"Nodos en línea","NODE_ONLINE_STATUS":"Estado del nodo online","TIMES_PER_SECOND":"times/s","COMPONENT_STATUS":"Estado de los componentes","CONTROLLER_MANAGER":"Manager de controlador","KUBERNETES_SCHEDULER":"Scheduler K8s","CLUSTER_RESOURCE_USAGE":"Uso de recursos del clúster","POD_COUNT":"Pods","COUNT":"Count","PODS":"Pods","SERVICE_STATUS":"Service Status","ETCD_MONITORING":"Monitorización etcd","DB_SIZE":"Tamaño DB","RAFT_PROPOSAL":"Raft Proposal","ETCD_STATUS":"Estado del servicio","ETCD_PROPOSAL":"Propuesta de raft","ETCD_DB_SIZE":"Tamaño de DB","ETCD_CLIENT_TRAFFIC":"Tráfico de clientes","TITLE_UNIT":"{title} ({unit})","AVERAGE":"Average","PROPOSAL_COMMITTED":"Committed","PROPOSAL_APPLIED":"Applied","PROPOSAL_FAILED":"Failed","PROPOSAL_PENDING":"Pendiente","SERVICE_COMPONENT_MONITORING":"Servicio de Monitorización de Componentes","SCHEDULE_ATTEMPTS":"Scheduling Attempts","SCHEDULING_RATE":"Scheduling Rate","REQUEST":"Request","REQUEST_PER_SECOND":"Requests per Second","SCHEDULER":"Scheduler","TOTAL_AVERAGE":"Total","SUCCESS":"Success","ERROR":"Error","FAILURE":"Failure","REQUEST_LATENCY_TCAP":"Latencia de las peticiones","REQUEST_RATE":"Tasa de peticiones","SCHEDULE_ATTEMPTS_TCAP":"Scheduling Attempts","SCHEDULING_RATE_TCAP":"Scheduling Rate","API_SERVER":"API Server","SELECT_TIME_RANGE":"Seleccionar rango de tiempo","LAST_TIME":"Last {value}","LAST_TIME_M":"{num, plural, =1 {last 1 minute} other{last # minutes}}","LAST_TIME_H":"{num, plural, =1 {last 1 hour} other{last # hours}}","LAST_TIME_D":"{num, plural, =1 {last 1 day} other{last # days}}","TIMERANGE_SELECTOR_MSG":"The end time must be later than the start time.","TIMERANGE_SELECTOR_ERROR_MSG":"Please confirm whether the selected time range is appropriate!","PHYSICAL_RESOURCES_MONITORING":"Monitorización de recursos físicos","INODE_USAGE":"Inode Usage","DISK_USAGE":"Disk Usage","DISK_USAGE_DETAILS":"Disk Usage Details","AVERAGE_CPU_LOAD":"Average CPU Load","DISK_THROUGHPUT":"Disk Throughput","POD_STATUS":"Pod Status","COMPLETED":"Completed","WARNING":"Warning","READ":"Lectura","WRITE":"Escribir","RUNNING":"En ejecución","TIME_M":"{num, plural, =1 {1 minute} other{# minutes}}","TIME_H":"{num, plural, =1 {1 hour} other{# hours}}","TIME_D":"{num, plural, =1 {1 day} other{# days}}","EXTERNAL_ETCD":"etcd externo","DB_FSYNC":"DB Fsync","GRPC_STREAM_MESSAGES":"gRPC Stream Message","CLIENT_TRAFFIC":"Tráfico de clientes","RECEIVED":"Received","SENT":"Enviado","WAL_FSYNC":"WAL Fsync","ETCD_LEADER_TITLE":"Leader exists","ETCD_CHANGES_TITLE":"Leader changes in 1 h","NODE_IP_ADDRESS_VALUE":"Node IP Address: {value}","API_SERVER_MONITORING":"Monitorización de API Server","REQUEST_LATENCY":"Request Latency","REQUEST_LATENCY_MS":"Request Latency (ms)","REST_CREATE":"CREATE","REST_DELETE":"DELETE","REST_DELETECOLLECTION":"DELETECOLLECTION","REST_GET":"GET","REST_POST":"POST","REST_PATCH":"PATCH","REST_PUT":"PUT","REST_UPDATE":"UPDATE","REST_LIST":"LIST","SCHEDULER_MONITORING":"Programación de monitorización","SCHEDULING_LATENCY":"Programación de latencia","RESOURCE_USAGE_RANKING":"Resource Usage Ranking","SORT_BY_NODE_CPU_UTILISATION":"Sort by CPU usage (%)","SORT_BY_NODE_MEMORY_UTILISATION":"Sort by memory usage (%)","SORT_BY_NODE_DISK_SIZE_UTILISATION":"Sort by disk usage (%)","SORT_BY_NODE_POD_UTILISATION":"Ordenar mediante el uso de pod","SORT_BY_NODE_DISK_INODE_UTILISATION":"Ordenar por inodo Utilización","SORT_BY_NODE_LOAD1":"Sort by 1-minute CPU load average","SORT_BY_NAMESPACE_MEMORY_USAGE_WO_CACHE":"Ordenar por uso de memoria","POD_USAGE":"Pod Usage","EXPORT":"Export","CUSTOM_MONITORING":"Custom Monitoring","CUSTOM_MONITORING_DASHBOARD":"Panel de control personalizado","CUSTOM_MONITORING_DASHBOARD_PL":"Custom Monitoring Dashboards","CUSTOM_MONITORING_DASHBOARD_EMPTY_DESC":"Please create a custom monitoring dashboard.","CUSTOM_MONITORING_DASHBOARD_DESC":"Custom monitoring provides application monitoring templates. You can customize monitoring dashboards based on your needs.","TEMPLATE":"Template","CREATE_CUSTOM_MONITORING_DASHBOARD":"Crear un panel de monitoreo personalizado","MONITORING_TEMPLATE":"Monitoring Template","CUSTOM_MONITORING_TEMPLATE_DESC":"Select a default template, upload a template, or customize a template to generate a custom monitoring dashboard.","UPLOAD_GRAFANA_DASHBOARD":"Upload Grafana Dashboard","SUPPORT_JSON_FILE":"Only files in JSON format are supported.","UPLOAD_GRAFANA_URL":"Upload a Grafana dashboard from URL.","UPLOAD_FROM_LOCAL_TITLE":"Select or Drag a File","FILE_UPLOAD_ERROR":"Only one file can be uploaded.","UPLOAD_FILE_TIP":"Please upload a file.","ENTER_GRAFANA_URL":"Please enter a Grafana dashboard URL.","UPLOAD_FROM_LOCAL_STORAGE":"Upload from Local Storage","UPLOAD_FROM_URL":"Upload from URL","DASHBOARD_TITILE":"Dashboard title","APPLICABLE_SCENE":"Applicable Scenario","BASE_LINE_CHART":"Base Line Chart","STACK_LINE_CHART":"Stacked Area Chart","BASE_LINE_CHART_DESC":"A line chart is mainly used to visualize a trend or change in data over time. It is very useful for displaying a series of two-dimensional continuous data, such as website traffic or product prices.","STACK_LINE_CHART_DESC":"A stacked area chart is a special kind of area charts that can be used to compare multiple variables in an interval. It is very useful when multiple data series are available as you can analyze the relation of each group to the whole chart and display their respective proportion.","LINE_CHART_DESC":"A line chart is mainly used to visualize a trend or change in data over time.","BASE_BAR_CHART":"Base Bar Chart","STACK_BAR_CHART":"Stacked Bar Chart","BAR_CHART_DESC":"A bar chart is the most common type of charts. It presents different categorical data with horizontal or vertical bars with heights or lengths proportional to the values that they represent.","BASE_BAR_CHART_DESC":"One axis of the base bar chart features the categories being compared, while the other axis represents the value of each.","STACK_BAR_CHART_DESC":"A stacked bar chart is an extension of bar charts. A standard bar chart compares individual data points with each other while in a stacked bar chart, parts of the data are adjacent or stacked. It can be used to present the total amount of a category as well as its sub-amounts (proportion). Therefore, it is very helpful for examining part-to-whole relations.","CUSTOM_DISPLAY_MODAL_DESC":"Customize the table display style according to your needs","THRESHOLD_FILL_DESC":"You can set a threshold and the style can be changed automatically after the threshold is exceeded.","ADD_MONITOR_ITEM":"Agregar elemento de monitorización","ADD_MONITOR_ROW":"Agregar grupo de monitorización","CHART_TYPES":"Tipos de gráfico","GRAPH_TYPES":"Graph Types","LINE_CHART":"Gráfico de línea","BAR_CHART":"Gráfico de barras","SELECT_CHART_TYPE":"Selecciona un tipo de gráfico","SELECT_CHART_TYPE_MODAL_DESC":"Selecciona un tipo de gráfico personalizado","SINGLE_STATE_CHART":"Texto en tiempo real","DISPLAY_POSITION":"Posición de visualización","EMPTY_CHART_PLACEHOLDER":"The chart will display here.","DISPLAY_FORMAT":"Formato de visualización","FIELD_NAME":"Nombre del campo","COLUMN_NAME":"Nombre de la columna","GRAPH_NAME":"Nombre del gráfico","DECIMALS":"Posiciones decimales","TABLE":"Tabla","TABLE_SETTINGS":"Configuraciones de tabla","VALUE_FOMATER":"Formato de valor","PER_PAGE_LINES":"Líneas por página","CUSTOM_DISPLAY_STYLE":"Estilo de pantalla","DATA_TYPE":"Tipo de datos","Y_AXIS":"Eje Y","GRAPH_COLORS":"Colores del gráfico","SINGLE_GRAPH_TYPE_NAME":"Gráfico Básico","SINGLE_GRAPH_TYPE":"El tipo de gráfico más común.","STACKED_GRAPH_TYPE":"Gráfico apilado","STACKED_GRAPH_TYPE_DESC":"Útil para mostrar relaciones de parte a todo","MONITOR_TYPE_NO_SUPPORT":"El tipo no es compatible actualmente","MONITOR_METRIC":"Monitoring Metric","METRIC_NAME":"Nombre de la métrica","DEBUGB_DATA":"Datos de depuración","TIME_FORMAT":"Formato de tiempo","HIGHT_RULES":"Reglas destacadas","EDIT_TEMPLATE":"Editar plantilla","SAVE_TEMPLATE":"Guardar plantilla","THRESHOLD_FILL":"Configuraciones de umbral","UNIT":"Unit","COOL_COLORS":"Cool Colors","WARM_COLORS":"Warm Colors","DEFAULT_COLORS":"Default Colors","LAST":"Last","SECOND_TIME":"{count, plural, =1 {1 second} other{# seconds}}","MINUTE_TIME":"{count, plural, =1 {1 minute} other{# minutes}}","HOUR_TIME":"{count, plural, =1 {1 hour} other{# hours}}","DAY_TIME":"{count, plural, =1 {1 day} other{# days}}","WEEK_TIME":"{count, plural, =1 {1 week} other{# weeks}}","NO_REFRESHING":"No refreshing","INTERVAL":"Interval","CUSTOM_MONITORING_DASHBOARD_LOW":"custom monitoring dashbord","EGRESS_RULES":"Egress Rules","DESTINATION":"Destination","LABEL":"Label","INGRESS_RULES":"Ingress Rules","NETWORK_POLICY":"Política de red","NETWORK_POLICY_PL":"Network Policies","NETWORK_POLICY_DESC":"The network policy configuration allows network isolation within the same cluster, which means firewalls can be set up between certain instances (pods).","NETWORK_POLICY_Q":"¿Cómo usar mejor una política de red?","NETWORK_POLICY_A":"Hemos compilado varios escenarios de aplicación comunes basados en los escenarios reales, y puedes consultar la documentación para obtener más información.","NETWORK_POLICY_Q1":"Requisitos del complemento CNI para implementar una política de red","NETWORK_POLICY_A1":"Asegúrate de que el plugin de red (CNI) utilizado por el clúster sea compatible con NetworkPolicy. Existen varios plugins de red (CNI) que soportan NetworkPolicy, incluyendo Calico, Cilium, Kube-router, Romana y Weave Net.","NETWORK_POLICY_EMPTY_DESC":"Please create a network policy.","CREATE_NETWORK_POLICY_TCAP":"Crear política de red","CREATE_BTN":"Crear","CREATE_NETWORK_POLICY_DESC":"La política de red está configurada para permitir el aislamiento de la red dentro del mismo clúster, es decir, la capacidad de construir un cortafuegos entre ciertas instancias (pods).","NETWORK_POLICY_LOW":"network policy","NETWORK":"Network","START_IP_ADDRESS":"Start IP Address","END_IP_ADDRESS":"End IP Address","MASK":"Mask","WORKSPACES":"Workspaces","MANAGER":"Manager","IPPOOL_WORKSPACE_EMPTY_TIP":"No workspace is using this pod IP pool.","NAMESPACE_PL":"Project","ADD_IPPOOLL_NAMESPACE":"Add project","ADD_IPPOOLL_NAMESPACE_DESC":"Assign IP Pool to new project","REMOVEALL_IPPOOLL_NAMESPACE":"Remove all","REMOVEALL_IPPOOLL_NAMESPACE_PROJECT":"Remove all items","REMOVEALL_IPPOOLL_NAMESPACE_PROJECT_DESC":"After the project is removed, it will no longer be subject to IP Pool resource allocation restrictions","POD_IP_POOL_PL":"Pod IP Pools","POD_IP_POOL_DESC":"Pod IP pools is used to manage the Pod network address space in the cluster. You can create Pod IP pools based on your needs.","IPPOOL_USAGE_Q":"How do I manage a Pod network using a Pod IP pool?","IPPOOL_USAGE_A":"A Pod IP pool is used to manage the Pod network address space, and the address spaces between different Pod IP pools cannot overlap. When creating a workload, you can select a specific Pod IP pool to assign IP addresses from this Pod IP pool to the created Pods.","POD_IP_POOL_EMPTY_DESC":"Please create a Pod IP pool.","TOTAL_VALUE":"Total: {value}","ALL":"Todos","NOT_ASSIGNED":"No asignado","CREATE_POD_IP_POOL":"Create Pod IP Pool","NETWORK_SEGMENT":"Network Segment","USED_IP_ADDRESSES":"Used IP Addresses","QUANTITY":"Quantity","IP_POOL_CREATE_DESC":"Pod IP Pools to be created","IP_ADDRESS_EMPTY_DESC":"Please enter an IP address.","MASK_TIP":"Please enter a mask.","ENTER_NETWORK_SEGMENT_TIP":"Please enter a network segment.","IP_POOL_NUM_TIP":"Please enter the number of Pod IP pools to be created.","IP_POOL_CREATE_COUNT_DESC":"Up to 10 Pod IP pools can be created at the same time.","INVALID_IP_DESC":"Invalid IP address format.","IPPOOL_ASSIGN_WORKSPACE_DESC":"Assign the Pod IP pool to a workspace.","IPPOOL_ASSIGN_WORKSPACE_ALLOCATED_WARNING":"The Pod IP pool is in use and cannot be assigned to another specific workspace.","IPPOOL_ASSIGN_WORKSPACE_CHANGE_WARNING":"The Pod IP pool is in use with a specific workspace assigned. The workspace cannot be changed.","ASSIGN_WORKSPACE":"Asignar espacio de trabajo","SELECT_WORKSPACE_DESC":"Elige un espacio de trabajo","POD_IP_POOL_LOW":"Pod IP pool","ADD_EDGE_IPPOOL":"Add a container group IP address pool ","ADD_EDGE_IPPOOL_DES":"Adds a container group IP pool to a resource. ","ADD_IPPOOL_EMPTY_DES_ADMIN":"If no container group IP pool meets the requirements, you can ","ADD_IPPOOL_EMPTY_DES":"If no container group IP address pool meets the requirements, contact the administrator to create a container group IP address pool ","SELECTED_IPPOOLS":"{number} IP pools have been selected ","CLUSTER_IPPOOL_EMPTY_DES":" No available container group IP address pool is found in the current cluster. ","ATTRIBUTES":"Attributes","ARCHITECTURE":"Arquitectura","OS_VERSION":"OS Version","OS_TYPE":"Sistema operativo","LINUX":"Linux","KERNEL_VERSION":"Versión del Kernel","CONTAINER_RUNTIME":"ContainerRuntimeVersion","KUBELET_VERSION":"Versión Kubelet","KUBE_PROXY_VERSION":"Versión Kube-Proxy","IP_ADDRESS":"Dirección IP","SCHEDULABLE":"Schedulable","YES":"Sí","EDIT_LABELS":"Editar etiquetas","LABEL_PL":"Labels","TAINTS":"Taints","EDIT_TAINTS":"Gestión de Taints","TAINTS_DESC":"Si se agrega un taint con \"clave=valor\" al nodo, significa que no se programará ningún pod en este nodo (política PodToleratesNodeTaints) o al menos se evita la programación tanto como sea posible (política TaintTolerationPriority), a menos que el pod tenga una coincidencia tolerancia con \"clave=valor\".","COMMON_TAINTS":"Taints Comunes","NOSCHEDULE":"NoProgramable","PREFERNOSCHEDULE":"PreferNoSchedule","NOEXECUTE":"NoEjecutar","TAINT_SELECT_TIPS":"Join Common Taints","TAINTS_TIPS":"Si hay al menos un taint no ignorado con efecto NoProgramable, entonces el sistema no programará pods en ese nodo.
    Si no hay un taint no ignorado con efecto NoProgramable pero hay al menos un taint no ignorada con efecto PreferNoSchedule, entonces el sistema intentará no programar pods en el nodo.
    si hay al menos un taint no ignorada con efecto NoEjecutar, los pods serán expulsados del nodo (si ya se está ejecutando en el nodo) y no se programarán en el nodo (si aún no se está ejecutando en el nodo).","TAINT_DELETE_TIP":"Delete taint","RESOURCE_USAGE":"Resource Usage","MAXIMUM_PODS":"Maximum Pods","MAXIMUM_PODS_SCAP":"Maximum Pods","DISK_USAGE_SCAP":"Disk usage","MEMORY_REQUEST_SCAP":"Memory request","MEMORY_LIMIT_SCAP":"Memory limit","CPU_REQUEST_SCAP":"CPU request","CPU_LIMIT_SCAP":"CPU limit","ALLOCATED_RESOURCES":"Allocated Resources","RUNNING_STATUS":"Estado de ejecución","HEALTH_STATUS":"Health Status","NODE_NETWORKUNAVAILABLE":"Red no disponible","NODE_NETWORKUNAVAILABLE_DESC":"Whether the network status of the node is normal.","NODE_MEMORYPRESSURE":"Carga de memoria","NODE_MEMORYPRESSURE_DESC":"Whether the remaining memory of the node is less than the threshold.","NODE_DISKPRESSURE":"Carga de disco","NODE_DISKPRESSURE_DESC":"Whether the ramaining disk space or inodes of the node is less than the threshold.","NODE_PIDPRESSURE":"Carga PID","NODE_PIDPRESSURE_DESC":"Whether the number of processes allowed to be created on the node is less the threshold.","NODE_READY":"Readiness","NODE_READY_DESC":"Whether the node is ready to accept pods.","LAST_HEARTBEAT_VALUE":"Last Heartbeat: {value}","NO_TAINTS_TIPS":"Aún no se han establecido taints.","POLICY":"Policy","READY_VALUE":"Ready: {readyCount}/{total}","STATUS_VALUE":"Status: {value}","USAGE":"Usage","OUT":"Out","IN":"En","CLUSTER_NODE_PL":"Nodo de clúster","CLUSTER_NODE":"Cluster Node","CLUSTER_NODE_DESC":"Este módulo gestiona los nodos del clúster y muestra el estado de ejecución de ellos. Puedes editar o eliminar nodos aquí.","NODE_TYPES_Q":"¿Cuáles son los tipos de nodos de clúster?","NODE_TYPES_A":"Nodes are classified into control plane nodes and worker nodes.","WHAT_IS_NODE_TAINTS_Q":"¿Qué son los taints de nodos?","WHAT_IS_NODE_TAINTS_A":"Los taints permiten que un nodo repele un conjunto de pods. Las contaminaciones y las tolerancias funcionan juntas para garantizar que los pods no se programen en nodos inapropiados.","LEARN_MORE":"Aprende más","NODE_SI":"Nodo","NODE_PL":"Nodos","MASTER_NODE_SI":"Control plane node","MASTER_NODE_PL":"Control plane nodes","WORKER_NODE_SI":"Nodo worker","WORKER_NODE_PL":"Nodo worker","KUBE_OPERATE":"Operar","KUBE_ASCENDING_ORDER":"ASC...","KUBE_DESCENDING_ORDER":"DESC...","KUBE_FILTER":"Filtro","SEARCH":"Introduce las condiciones para filtrar","ADD_NODE":"Añadir nodo","NODE_STATUS_UNSCHEDULABLE":"No programable","NODE_STATUS_RUNNING":"Corriendo","NODE_STATUS_WARNING":"Advertencia","NODE_STATUS_PENDING":"Creating","NODE_STATUS_FAILED":"Failed","CLUSTER_NODE_EMPTY_DESC":"Este módulo gestiona los nodos del clúster y muestra el estado de ejecución de ellos. Puedes editar o eliminar nodos aquí.","NODE_NAME_EMPTY_DESC":"Please set a name for the node.","CPU_USAGE":"Uso de CPU","MEMORY_USAGE":"Uso de memoria","CONTROL_PLANE":"Control plane","WORKER":"Worker","ALLOCATED_CPU":"CPU reservada","ALLOCATED_MEMORY":"Memoria reservada","CPU_LIMIT_SI":"Límite de recursos: {core} core ({percent})","CPU_LIMIT_PL":"Límite de recursos: {core} cores ({percent})","CPU_REQUEST_SI":"{core} core ({percent})","CPU_REQUEST_PL":"{core} cores ({percent})","CORE_PL":"cores","CPU_CORE_PERCENT_SI":"{core} core ({percent})","CPU_CORE_PERCENT_PL":"{core} cores ({percent})","MEMORY_GIB_PERCENT":"{gib} GiB ({percent})","MEMORY_LIMIT_VALUE":"Límite de recursos: {gib} GiB ({percent})","MEMORY_REQUEST_VALUE":"{gib} GiB ({percent})","RESOURCE_REQUEST":"Solicitud de recursos","CORDON":"Cordon","UNCORDON":"Uncordon","OPEN_TERMINAL":"Open Terminal","CUSTOM_COLUMNS":"Columnas personalizadas","NO_MATCHING_RESULT_FOUND":"Aún no se han encontrado recursos que coincidan con el filtro","STATUS":"Estado","TOTAL_ITEMS":"Total de {num} artículos","YOU_CAN_TRY_TO":"You can try","REFRESH_DATA":"refreshing data","CLEAR_SEARCH_CONDITIONS":"clearing search conditions","DUPLICATE_KEYS":"Calves duplicadas","EMPTY_KEY":"Claves vacías","LATEST_UPDATE_VALUE":"Latest update: {value}","EDGE_NODE_PL":"Nó de Borda","EDGE_NODE_DESC":"Este módulo gestiona los nodos del borda y muestra el estado de ejecución de ellos. Puedes editar o eliminar nodos aquí.","EDGE_NODE_EMPTY_DESC":"Este módulo gestiona los nodos del borda y muestra el estado de ejecución de ellos. Puedes editar o eliminar nodos aquí.","AGENT":"Agent","EDGE":"Edge node","ADD":"Añadir","ADD_EDGE_NODE":"Add Edge Node","EDGENODE_CONFIG_COMMAND":"Agregar comando","ADD_EDGE_COMMAND":"Run the above command on your edge node to configure it.","IN_USE_Node_IP":"Node IP {ip} in use","IN_USE_Node_NAME":"Node name {name} in use","EDGENODE_NAME_EMPTY_DESC":"Please set a name for the node.","EDGENODE_CONFIG_COMMAND_TIP":"Before running the command, you must install a container runtime such as Docker or containerd on your edge node.","ADD_DEFAULT_TAINT":"Adicionar mancha padrão {params}","EDGE_NODE":"Edge Node","INTERNAL_IP_ADDRESS":"Node Internal IP Address","EDGENODE_INTERNAL_IP_DESC":"The internal IP address for the connection between cluster nodes.","EDGENODE_INTERNAL_IP_EMPTY_DESC":"Please set the IP address of the edge node in the KubeSphere cluster.","COPY_SUCCESSFUL":"Copied successfully.","LOGS":"Registros","VIEW_LOG":"Mostrar log","EDGE_LIST_NOT_HOST_TITLE":"The current cluster is unavailable","EDGE_LIST_NOT_HOST_TITLE_DESC":"Los nodos de borde solo se pueden usar en el clúster principal por el momento.","HOST_CLUSTER":"Clúster de host","MEMBER_CLUSTER":"Member cluster","PROVIDER":"Proveedor","KUBERNETES_VERSION":"Versión de Kubernetes","KUBESPHERE_VERSION":"Versión de KubeSphere","VISIBILITY_PARTIAL":"Parcialmente visible","VISIBILITY_PUBLIC":"Público","CLUSTER_BASE_INFO_DESC":"Basic information provides an overview of the cluster. You can view and edit cluster information.","MEMORY":"Memoria","TOTAL":"Total","USED":"En uso","TOOLS":"Tools","KUBECTL_DESC":"Herramienta de línea de comandos para controlar el clúster Kubernetes actual","KUBECONFIG_DESC":"Puedes usar este archivo para configurar el acceso al clúster Kubernetes actual","KUBERNETES_STATUS":"Estado de Kubernetes","API_REQUESTS_PER_SECOND":"API solicitudes por segundo","VALUE_REQUESTS_SECOND":"{value, plural, =1 {1 request} other {# requests}}/s","API_REQUEST_LATENCY":"API latencia de solicitud","SCHEDULING_OPERATIONS":"Horarios de programación","SCHEDULING_OPERATION":"Scheduling operation","SCHEDULING_FAILURES":"Programar pods fallidos","SCHEDULING_FAILURE":"Scheduling failure","VIEW_MORE":"Ver más","NODE_CPU_UTILISATION":"ratio de uso de CPU","NODE_LOAD1":"Average CPU load (1 min)","NODE_MEMORY_UTILISATION":"ratio de uso de memoria","NODE_DISK_SIZE_UTILISATION":"Disk usage","NODE_DISK_INODE_UTILISATION":"Inode usage","NODE_POD_UTILISATION":"ratio de utilización de pod","WAIT_FOR_CLUSTER":"Waiting for the cluster to join...","WAIT_FOR_CLUSTER_DESC":"The cluster is unavailable. Perform the following steps to add the cluster.","CLUSTER_AGENT_TIP_1":"1. Log in to the cluster over SSH and run the vi agent.yaml command to create a configuration file.","CLUSTER_AGENT_TIP_2":"2. Copy the following information to the agent.yaml file.","CLUSTER_AGENT_TIP_3":"3. Run the kubectl create -f agent.yaml command to add the cluster.","CLUSTER_AGENT_TIP_3_DESC":"This operation may take a while. Please wait until the cluster status is updated.","CREATING_CLUSTER":"Creating the cluster...","CREATING_CLUSTER_DESC":"The cluster is being created and is currently unavailable.","CLUSTER_INIT_FAILED":"Cluster initialization failed.","CLUSTER_CREATION_PROGRESS":"Cluster Creation Progress","FETCHING_LOGS":"Fetching logs...","CURRENT_STEP":"Current step: {step}","CLUSTER_CREATION_PROGRESS_TIP":"Depending on the cluster size and infrastructure environment, cluster creation may take 30 to 60 minutes.","GATEWAY":"Información de puerta de enlace","GATEWAY_NOT_ENABLED":"Puerta de enlace no establecida","ENABLE_GATEWAY_TIP":"To use the gateway, please configure the gateway in the cluster or the project.","QUOTA_PL":"Quotas","PROJECT_DESC":"Los proyectos se agruparán por sus recursos, que puedes ver y administrar por proyecto.","SYSTEM_PROJECTS":"Proyectos de Sistema","USER_PROJECTS":"Proyectos de usuario","EMPTY_WRAPPER":"No se ha encontrado {resource}","TERMINATING":"Terminating","ACTIVE":"Activo","PROJECT_ADMINISTRATOR":"Gestor de proyecto","PROJECT_ADMINISTRATOR_DESC":"Selecciona un usuario del espacio de trabajo como administrador del proyecto.","PROJECT_ASSIGN_DESC":"Una vez que el proyecto se asigna a un espacio de trabajo ya no se puedes cambiar.","CREATE_PROJECT_DESC":"Un proyecto es un namespace de Kubernetes en KubeSphere, que proporciona un mecanismo para organizar los recursos en un espacio de trabajo.","PROJECT_NAME_DESC":"Solo puede contener letras minúsculas, números y guiones (\"-\"), y debe comenzar con una letra minúscula y terminar con un número o letra minúscula. La longitud máxima de caracteres se establece en 63.","PROJECT_NAME_INVALID_DESC":"Solo puede contener letras minúsculas, números y guiones (\"-\"), y debe comenzar con una letra minúscula y terminar con un número o letra minúscula. La longitud máxima de caracteres se establece en 63.","CANCEL":"Cancelar","CREATE_NAME":"Crear {name}","DESCRIPTION":"Descripción","NAME_VALIDATION_FAILED":"Evite de crear nombre con el kube- del prefijo, puesto que es reservado para los namespaces del sistema de Kubernetes","PROJECT_NAME_EXIST_DESC":"The name already exists. Please enter another name. Project names must be unique on the entire platform.","NAME_EMPTY_DESC":"Introduce el nombre","OK":"Okay","NAME_DESC":"Solo puede contener letras minúsculas, números y guiones (\"-\"), y debe comenzar con una letra minúscula y terminar con un número o letra minúscula. La longitud máxima de carácteres se establece en 63.","DESCRIPTION_DESC":"La descripción se agregará al elemento como un comentario y se mostrará en los detalles de la aplicación. La descripción está limitada a 1000 caracteres.","ALIAS_DESC":"The alias name can contain only letters, numbers, and hyphens (-), and cannot start or end with a hyphen. The maximum length is 63 characters.","EDIT_INFORMATION":"Editar información","DELETE_TITLE_SI":"¿Seguro que deseas eliminar {type}?","DELETE_TITLE_PL":"¿Seguro que deseas eliminar {type}?","DELETE":"Eliminar","PROJECT_LOW":"project","DELETED_SUCCESSFULLY":"Deleted successfully.","STOP_SUCCESS_DESC":"Stopped successfully.","DELETE_RESOURCE_TYPE_DESC_SI":"Introduce el {type} nombre {resource} para asegurarte de comprender los riesgos asociados con la operación.","DELETE_RESOURCE_TYPE_DESC_PL":"Introduce el {type} nombre {resource} para asegurarte de comprender los riesgos asociados con la operación.","DELETE_RESOURCE_TYPE_DESC_GW":"Introduce el {type} nombre {resource} para asegurarte de comprender los riesgos asociados con la operación.","DISABLED_RESOURCE_TYPE_DESC":"Enter the {resource} to confirm that you understand the risks of this operation.","VOLUME_EXPAND_TIP":"The persistent volume claim has been mounted to a workload. Expanding the persistent volume claim will cause the workload to restart and business will be interrupted for a short while.","MOUNTED_PODS":"Mounted Pods","SNAPSHOT_PL":"Snapshots","STORAGE":"Storage","PERSISTENT_VOLUME_CLAIM_DESC":"Persistent volume claims define storage requirements. The system creates persistent volumes according to persistent volume claims.","PERSISTENT_VOLUME_CLAIM":"Persistent Volume Claim","PERSISTENT_VOLUME_CLAIM_PL":"Persistent Volume Claims","WHAT_IS_STORAGE_CLASS_Q":"What is a storage class?","WHAT_IS_STORAGE_CLASS_A":"A storage class is a storage type configured by the cluster administrator. Different storage classes provide cluster users with different types of volumes.","WHAT_IS_LOCAL_VOLUME_Q":"What is a local volume?","WHAT_IS_LOCAL_VOLUME_A":"A local volume is a volume created in the local file system of the cluster.","VOLUME_STATUS_BOUND":"Bound","VOLUME_STATUS_LOST":"Lost","VOLUME_STATUS_PENDING":"Pendiente","VOLUME_STATUS_TERMINATING":"Terminating","VOLUME_STATUS_UPDATING":"Actualización","VOLUME_CONDITION_FILESYSTEMRESIZEPENDING":"Disk Expanding","PERSISTENT_VOLUME_CLAIM_EMPTY_DESC":"Please create a persistent volume claim.","PERSISTENT_VOLUME_EMPTY_DESC":"Please create a persistent volume.","MOUNT_STATUS":"Mount Status","MOUNTED":"Mounted","NOT_MOUNTED":"No montado","ACCESS_MODE_TCAP":"Modo de acceso admitido","RWO_DESC":"RWO: Single-node read and write","ROX_DESC":"ROX: Multi-node readonly","RWX_DESC":"RWX: Multi-node read and write","ACCESS_MODE_RWO":"RWO: Single-node read and write","ACCESS_MODE_ROX":"ROX: Multi-node readonly","ACCESS_MODE_RWX":"RWX: Multi-node read and write","CREATE":"Create","CREATE_PERSISTENT_VOLUME_CLAIM":"Create Persistent Volume Claim","CREATION_METHOD":"Creation Method","CREATE_VOLUME_BY_STORAGE_CLASS":"From Storage Class","CREATE_VOLUME_BY_SNAPSHOT":"From Volume Snapshot","SELECT_SNAPSHOT_TO_CREATE_VOLUME":"Select a snapshot to create a volume.","SELECT_STORAGE_CLASS_CREATE_VOLUME":"Select a storage class to create a volume.","VOLUME_CAPACITY":"Capacidad de volumen","PARAM_REQUIRED":"This parameter is required.","VOLUME_SIZE_TIP":"The volume capacity must be greater than 0.","VOLUME_STORAGE_CLASS_DESC":"Select a storage class to create a volume of a specific type.","PERSISTENT_VOLUME_CLAIM_LOW":"persistent volume claim","VOLUME_HANDLE":"Volume Handle","VOLUME_MODE":"Volume Mode","VOLUME_MODE_FILESYSTEM":"File system","VOLUME_MODE_BLOCK":"Block device","STORAGE_CLASS_VALUE":"Storage class: {value}","PERSISTENT_VOLUME":"Persistent Volume","PERSISTENT_VOLUME_PL":"Persistent Volumes","PERSISTENT_VOLUME_LOW":"persistent volume","PV_STATUS_AVAILABLE":"En desuso","PV_STATUS_BOUND":"Bound","PV_STATUS_RELEASED":"Released","PV_STATUS_FAILED":"Failed","RECYCLING_STRATEGY":"Recycling Strategy","VOLUME_EMPTY_DESC":"Please bind a persistent volume claim to a workload.","TRUE":"True","FALSE":"False","SET_DEFAULT_STORAGE_CLASS_TITLE":"Set as Default Storage Class","SET_AS_DEFAULT_STORAGE_CLASS":"Set as Default Storage Class","STORAGE_CLASS_SET_DEFAULT_DESC":"Una vez establecida la clase de almacenamiento predeterminada, el sistema creará volúmenes de esta clase de forma predeterminada si no se agrega ningún requisito especial. Solo se permite una clase de almacenamiento predeterminada en un clúster de KubeSphere.","SET_AUTHORIZATION_RULES":"Set Authorization Rules","AUTHORIZATION_RULES":"Authorization Rules","AUTHORIZATION_RULES_DESC":"Set authorization rules so that the storage class can be accessed only in specific projects and workspaces.","AUTHORIZATION_NOT_SUPPORT":"The cluster currently does not support this feature. Please upgrade KubeSphere to v3.3.0 or later, or manually install storageclass-accessor.","OPERATOR_IN":"En","OPERATOR_NOT_IN":"Not in","SET_VOLUME_OPERATIONS":"Set Volume Operations","VOLUME_CLONING":"Volume Cloning","VOLUME_CLONING_DESC":"Allow users to clone volumes.","VOLUME_SNAPSHOT_CREATION":"Volume Snapshot Creation","VOLUME_SNAPSHOT_CREATION_DESC":"Allow users to create volume snapshots.","VOLUME_EXPANSION_DESC":"Allow users to expand volumes. Volumes can only be expanded and cannot be shrunk.","SET_VOLUME_OPERATIONS_TIP":"The following settings only control whether users are allowed to perform the operations on the web console. Whether persistent volumes created based on the storage class actually support the operations depends on the backend storage system.","SET_AUTO_EXPANSION":"Set Auto Expansion","AUTO_EXPANSION":"Auto Expansion","AUTO_EXPANSION_DESC":"Set the system to automatically expand volumes when the remaining volume space is lower than a threshold.","AUTO_EXPANSION_SETTINGS":"Auto Expansion Settings","MAXIMUM_SIZE":"Maximum Size","INCREMENT":"Increment","INCREMENT_DESC":"Set the volume size increment according to the CSI pluggin of the storage class.","RESTART_WORKLOAD_AUTOMATICALLY":"Restart workload automatically","RESTART_WORKLOAD_AUTOMATICALLY_DESC":"The system automatically checks volume status to determine whether the workload needs to be restarted.","RESTART_WORKLOAD_AUTOMATICALLY_TIP":"If the volume is not expanded successfully when the timeout period expires, the system will add the \"restart.kubesphere.io/skip\" annotation to the workload so that the workload is not restarted any more. To enable the automatic restart function for the workload again, you need to manually delete the annotation on the workload.","MAXIMUM_SIZE_SCAP":"Maximum size","VALUE_TIMEOUT":"{value}s (timeout)","PVC_COUNT":"PVCs","STORAGE_CLASS_PL":"Storage Classes","STORAGE_CLASS_DESC":"Storage classes support dynamic volume provisioning, allowing administrators to create new storage volumes on demand.","STORAGE_CLASS_EMPTY_DESC":"Please create a storage class.","DEFAULT_STORAGE_CLASS":"Default Storage Class","ALLOW_VOLUME_SNAPSHOT":"Permitir el almacenamiento de instantáneas de volumen","ALLOW_VOLUME_CLONE":"Permitir la clonación del volumen de almacenamiento","ALLOW_VOLUME_EXPANSION":"Permitir la expansión del volumen de almacenamiento","CHOOSE_STORAGE_SYSTEM_TIP":"Elija el sistema de almacenamiento que necesita","PROVISIONER_DEPENDENCE_DESC":"You need to deploy a plugin in your storage system before it provides services.","QINGCLOUD_CSI_DESC":"Use QingCloud CSI as the underlying storage plugin.","CUSTOM":"Custom","VOLUME_EXPANSION":"Volume Expansion","RECLAIM_POLICY":"Reclaim Policy","ACCESS_MODE":"Modo de acceso admitido","ACCESS_MODES_DESC":"Select one or more access modes supported by the storage class.","STORAGE_SYSTEM":"Sistema de almacenamiento","VOLUME_BINDING_MODE":"Volume Binding Mode","IMMEDIATE_BINDING":"Immediate binding","BINDING_WAIT":"Delayed binding","MAXSIZE":"Maximum Size","MINSIZE":"Minimum Size","STEPSIZE":"Step Size","FSTYPE":"File System Type","QINGCLOUD_CSI_TYPE_DESC":"En la plataforma de nube pública QingCloud, 0 representa un volumen de alto rendimiento. 2 representa volumen de alta capacidad. 3 representa un volumen súper alto rendimiento. 5 representa Enterprise Server SAN. 100 representa volumen estándar.","CREATE_VOLUME_MAX_SIZE":"Maximum size of the volume.","CREATE_VOLUME_STEP_SIZE":"Step size of the volume.","CREATE_VOLUME_MIN_SIZE":"Minimum size of the volume.","VOLUME_FS_TYPE":"Supports ext3, ext4, and xfs. The default type is ext4.","QINGCLOUD_VOLUME_TAGS_DESC":"Add tags to the storage volume. Use commas to separate multiple tags.","GID_RANGE_TIP":"The value cannot be less than 2000 or greater than 2147483647.","GLUSTERFS_RESTURL_DESC":"Heketi REST URL that provisions volumes.","GLUSTERFS_ID_DESC":"Gluster cluster ID.","GLUSTERFS_RESTAUTHENABLED_DESC":"Habilite la autenticación en el servidor REST.","GLUSTERFS_RESTUSER_DESC":"Username of Gluster REST service or Heketi service.","GLUSTERFS_SECRET_NAMESPACE_DESC":"Namespace of the Heketi user secret.","GLUSTERFS_SECRET_NAME_DESC":"Name of the Heketi user secret.","GLUSTERFS_GID_MIN_DESC":"Minimum GID of the volume.","GLUSTERFS_GID_MAX_DESC":"Maximum GID of the volume.","GLUSTERFS_VOLUME_TYPE_DESC":"Type of volume. The value can be none, replicate:, or disperse::. If the volume type is not set, the default volume type is replicate:3.","RESTURL":"REST URL","CLUSTER_ID":"Cluster ID","REST_AUTH_ENABLED":"REST Authentication","REST_USER":"REST User","VOLUME_TYPE":"Volume Type","SECRET_NAME":"Secret Name","REST_AUTH_TRUE":"True","SECRET_NAMESPACE":"Secret Namespace","GID_MIN":"Minimum GID","GID_MAX":"Maximum GID","CEPHRBD_MONITORS_DESC":"IP address of Ceph monitors.","CEPHRBD_ADMIN_ID_DESC":"ID de cliente de Ceph que es capaz de crear imágenes en el pool.","CEPHRBD_ADMIN_SECRET_NAME_DESC":"Secret name of adminid.","CEPHRBD_ADMIN_SECRET_NAMESPACE_DESC":"El namespace para adminSecretName","CEPHRBD_POOL_DESC":"Name of the Ceph RBD pool.","CEPHRBD_USERID_DESC":"ID de cliente Ceph que se utiliza para asignar la imagen RBD. El valor predeterminado es el mismo que adminId.","CEPHRBD_USER_SECRET_NAME_DESC":"El nombre de Ceph Secret para userId para mapear la imagen RBD","CEPHRBD_USER_SECRET_NAMESPACE_DESC":"El namespace para userSecretName","CEPHRBD_FS_TYPE_DESC":"File system type of the storage volume.","CEPHRBD_IMAGE_FORMAT_DESC":"Option of the Ceph volume. The value can be \"1\" or \"2\". imageFeatures needs to be filled when you set imageFormat to \"2\".","CEPHRBD_IMAGE_FEATURES_DESC":"Additional function of the Ceph cluster. The value should only be set when you set imageFormat to \"2\".","CEPH_MONITOR_IP":"IP address and port number","STORAGE_CLASS_SETTINGS":"Configuraciones de clase de almacenamiento","PARAMETERS":"Parameters","STORAGE_CLASS":"Clase de almacenamiento","STORAGE_CLASS_LOW":"storage class","STORAGE_CLASS_DELETE_DESC":"Deleting the volume snapshot class may affect the normal use of volume snapshots. Are you sure you want to delete the volume snapshot class?","STORAGE_CLASS_DELETE_DESC_PL":"Deleting the volume snapshot class may affect the normal use of volume snapshots. Enter the {type} names {resource} to confirm that you understand the risks of this operation.","VOLUME_SNAPSHOT_CLASS_PL":"Volume Snapshot Classes","VOLUME_SNAPSHOT_CLASS":"Volume Snapshot Class","VOLUME_SNAPSHOT_CLASS_DESC":"Volume snapshot classes provide a way for administrators to define storage types used for volume snapshots.","VOLUME_SNAPSHOT_CLASS_EMPTY_DESC":"Please create a volume snapshot class.","SNAPSHOT_CLASS_SETTINGS":"Volume Snapshot Class Settings","SNAPSHOT_CLASS_PROVISIONER_DESC":"Enter the name of a CSI plugin.","SNAPSHOT_CLASS_PROVISIONER_EMPTY_DESC":"Please enter the name of a CSI plugin.","VOLUME_SNAPSHOT_CLASS_LOW":"volume snapshot class","DELETE_VOLUME_SNAPSHOT_CLASS":"Delete Volume Snapshot Class","SNAPSHOT_HANDLE":"Snapshot Handle","VOLUME_SNAPSHOT_CONTENT":"Volume Snapshot Content","VOLUME_SNAPSHOT_CONTENT_PL":"Volume Snapshot Contents","VOLUME_SNAPSHOT_CONTENT_LOW":"volume snapshot content","VOLUME_SNAPSHOT_CONTENT_EMPTY_DESC":"Please create a volume snapshot.","READY":"Ready","UNREADY":"Unready","UNSCHEDULABLE":"Unschedulable","DELETION_POLICY":"Deletion Policy","CREATE_VOLUME":"Create Volume","SNAPSHOT_CLASS_NOT_EXIST_TITLE":"Volume Snapshot Class Not Found","SNAPSHOT_CLASS_NOT_EXIST":"The volume snapshot class of the volume snapshot does not exist.","STORAGE_CLASS_SCAP":"Storage class","DATA_SOURCE":"Fuente de datos","VOLUME_SNAPSHOT":"Volume Snapshot","VOLUME_SNAPSHOT_PL":"Volume Snapshots","VOLUME_SNAPSHOT_DESC":"Un snapshot de volumen se refiere a una snapshot de un volumen en un punto de tiempo particular. Se puede utilizar para crear nuevos volúmenes (preestablecer los datos del snapshot) o restaurar un volumen existente a su estado anterior (que se muestra en los snapshots).","WHAT_IS_VOLUME_SNAPSHOT_CLASS_Q":"What is a volume snapshot class?","WHAT_IS_VOLUME_SNAPSHOT_CLASS_A":"A volume snapshot class defines the storage types used to create a volume snapshot.","WHAT_IS_VOLUME_SNAPSHOT_CONTENT_Q":"What is a volume snapshot content?","WHAT_IS_VOLUME_SNAPSHOT_CONTENT_A":"A volume snapshot content is a resource that represents the content of a volume snapshot.","SELECT_A_VOLUME_DESC":"Select a persistent volume claim to create a snapshot.","SELECT_VOLUME_SNAPSHOT_CLASS_DESC":"Select a snapshot class to create a snapshot of a specific type.","VOLUME_SNAPSHOT_EMPTY_DESC":"Please create a volume snapshot.","VOLUME_SNAPSHOT_STATUS_CREATING":"Creando","VOLUME_SNAPSHOT_STATUS_FAILED":"Creado sin éxito","VOLUME_SNAPSHOT_STATUS_READY":"Creado con éxito","VOLUME_SNAPSHOT_STATUS_DELETING":"Eliminando","CREATE_STATUS_SUCCESS":"Creado con éxito","CREATE_STATUS_UPDATING":"Creando","CREATE_STATUS_FAILED":"Creado sin éxito","CREATE_STATUS_DELETING":"Eliminando","VOLUME_SNAPSHOT_LOW":"volume snapshot","STORAGECLASS_NOT_ALLOW_CREATE_SNAPSHOT":"The storage class of the persistent volume claim does not support snapshot creation. Please select another persistent volume claim.","SYSTEM_COMPONENT_PL":"Componentes","SERVICE_COMPONENTS_DESC":"Este módulo monitorea el estado de varios componentes del servicio en KubeSphere, Kubernetes, OpenPitrix, etc. Muestra el estado de mantenimiento y el tiempo de ejecución del clúster actual, y ayuda a los usuarios a monitorear el estado del clúster y localizar problemas a tiempo.","STOPPED":"Stopped","RUNNING_TIME":"Tiempo de ejecución","KS_CONSOLE_DESC":"Proporciona servicios de consola para KubeSphere.","KS_APISERVER_DESC":"Sirve los puntos finales API REST y proporciona la interfaz para el estado compartido del clúster a través del cual interactúan todos los demás componentes, así como el control de seguridad del clúster","OPENLDAP_DESC":"Responsable del almacenamiento centralizado y la gestión de la información de la cuenta del usuario.","REDIS_DESC":"Responsable del almacén de estructura de datos en memoria, utilizado como base de datos, caché y agente de mensajes","TOWER_DESC":"A tool for network connection between clusters through an agent","KS_CONTROLLER_MANAGER_DESC":"A backend component that implements business logic. For example, it creates authorizations when a workspace is created and generates istio configurations for service strategies","COREDNS_DESC":"DNS y descubrimiento de servicios en el clúster","METRICS_SERVER_DESC":"Recopile métricas de la API de resumen, expuesta por Kubelet en cada nodo","KUBE_SCHEDULER_DESC":"El planificador de Kubernetes que conecta el Pod al nodo apropiado","KUBE_SCHEDULER_SVC_DESC":"The scheduler of Kubernetes that attaches the Pod to an appropriate node","KUBE_CONTROLLER_MANAGER_SVC_DESC":"A daemon that embeds the core control loops shipped with Kubernetes","JAEGER_COLLECTOR_DESC":"Recopila los datos del sidecar, el sidecar de istio es jaeger-agent","JAEGER_COLLECTOR_HEADLESS_DESC":"Recopila los datos del sidecar, el sidecar de istio es jaeger-agent","JAEGER_QUERY_DESC":"Sirve los puntos finales API y un servicio de IU","JAEGER_OPERATOR_METRICS_DESC":"A component that provides the monitoring metrics of Operator","MONITORING":"Monitorización","PROMETHEUS_K8S_DESC":"Proporciona datos de monitoreo para nodos, workload y objetos API","NODE_EXPORTER_DESC":"Exportador de Prometheus para métricas de hardware y sistema operativo","KUBE_STATE_METRICS_DESC":"Escucha el servidor API de Kubernetes y genera métricas sobre el estado de los objetos.","PROMETHEUS_OPERATED_DESC":"El servicio para todas las instancias de Prometheus solo para uso interno de Prometheus Operator","PROMETHEUS_OPERATOR_DESC":"Operador para gestionar instancias de Prometheus","ALERTMANAGER_OPERATED_DESC":"The Alertmanager service that provides Alertmanager integrations, such as Prometheus","ALERTMANAGER_MAIN_DESC":"The Alertmanager Web UI service","NOTIFICATION_MANAGER_SVC_DESC":"The Notification Manager service that provides the interface to send notifications, such as emails, WeChat and Slack messages","NOTIFICATION_MANAGER_CONTROLLER_METRICS_DESC":"A component that provides internal monitoring data services of Notification Manager Controller","LOGGING":"Logging","ELASTICSEARCH_LOGGING_DATA_DESC":"Proporciona almacenamiento, copia de seguridad, búsqueda y otros servicios de datos de Elasticsearch.","ELASTICSEARCH_LOGGING_DISCOVERY_DESC":"Proporciona servicios de gestión de clúster Elasticsearch.","LOGSIDECAR_INJECTOR_ADMISSION_DESC":"A component that automatically injects sidecar containers for a specific pod for disk log collection","KS_EVENTS_ADMISSION_DESC":"A component that provides webhook authentication for Events rule management","KS_EVENTS_RULER_DESC":"The Events rule engine service that provides filtering and alerting features","KUBE_AUDITING_WEBHOOK_SVC_DESC":"A component used for auditing logs in terms of collection, comparison, persistence and alert","S2IOPERATOR_METRICS_SERVICE_DESC":"The s2i monitoring service component that provides basic monitoring data","WEBHOOK_SERVER_SERVICE_DESC":"Proporciona valores predeterminados y valida el webhook para s2i","CODE_REPO_PL":"Code Repositories","CODE_REPO_LOW":"code cepository","CODE_REPO":"Repositorio de Código","CODE_REPO_DESC":"Manage code repositories based on Git.","CODE_REPO_EMPTY_DESC":"Import a code repository from GitHub, GitLab, or Bitbucket. You can also use Git to directly pull source code.","IMPORT_CODE_REPO":"Import Code Repository","EDIT_CODE_REPO":"Edit Code Repository","LATEST_SYNC_STATUS":"Latest sync status","CURRENT_SYNC_STATUS":"Current sync status","SYNC_STRATEGY":"Sync strategy","AUTO_SYNC":"Auto Sync","MANUAL_SYNC":"Manual Sync","END_TIME_SCAP":"End time","SYNC_RESULT_PL":"Sync Results","SYNC_RESULT":"Sync Result","SYNC_RESULT_EMPTY_DESC":"No sync result is found.","CONTINUOUS_DEPLOYMENT_PL":"Continuous Deployments","CONTINUOUS_DEPLOYMENT_DESC":"Manage continuous deployments to continuously deploy resources by using GitOps. ","CONTINUOUS_DEPLOYMENT_EMPTY_DESC":"Please create a continuous deployment.","DEGRADED":"Degraded","PROGRESSING":"Progresando","SYNCED":"Synced","MISSING":"Missing","SUSPENDED":"Suspendido","OUTOFSYNC":"Out of sync","DEPLOY_LOCATION":"Deployment Location","NEED_TO_SYNC_REPO":"Need to sync repo","CREATE_CONTINUOUS_DEPLOYMENT":"Create Continuous Deployment","CD_SELECT_CODE_REPO_DESC":"Select a code repository.","DEPLOYMENT_SETTINGS":"Deployment Settings","CODE_REPOSITORY_SETTINGS":"Code Repository Settings","SYNC_STRATEGY_TCAP":"Sync Strategy","AUTO_SYNC_DESC":"Automatically trigger application sync when there is a difference between the manifest in Git and the real-time state of the deployed resources, according to the set sync options.","PRUNE_RESOURCES":"Prune resources","SELF_HEAL":"Self-heal","MANIFEST_FILE_PATH":"Manifest File Path","DIRECTORY_RECURSE":"Directory recurse","REPO_EMPTY_DESC":"Please select a code repository.","VALUES_FILES":"Values Files","VALUES_FROM":"Values From","STORAGE_NAMESPACE":"Storage Namespace","TEST":"Test","REVISIONS_DESC":"Git repository commit ID, branch, or tag. For example: \"master\", \"v1.2.0\", \"0a1b2c3\", or \"HEAD\".","MANIFEST_FILE_PATH_DESC":"Manifest file path, for example: \"deployments/nginx\" or \"deployments/\"","MANUAL_SYNC_DESC":"Sync according to custom rules.","PRUNE_RESOURCES_DESC":"If selected, resources that do not exist in Git will be deleted during automatic sync. If not selected, resources in the cluster will not be deleted when automatic sync is triggered.","SELF_HEAL_DESC":"If selected, when there is a deviation between the defined state in Git and the deployed resources, the defined state in Git will be enforced. If not selected, automatic sync will not be triggered when changes are made to the deployed resources.","FOREGROUND_DESC":"Delete dependent resources first, then delete the main resource.","BACKGROUND_DESC":"Delete the main resource first, then delete the dependent resource.","ORPHAN_DESC":"Delete the main resource and leave the dependent resource as an orphan.","SKIP_SCHEMA_VALIDATION_DESC":"Skip kubectl validation. Add the --validate=false flag when kubectl applies the object.","AUTO_CREATE_PROJECT_DESC":"Automatically create a project for application resources when the project does not exist.","PRUNE_LAST_DESC":"Clean up resources after other resources are deployed and healthy.","APPLY_OUT_OF_SYNC_ONLY_DESC":"Only apply resources that are out of sync.","CONTINUOUS_DEPLOYMENT":"Continuous Deployment","CONTINUOUS_DEPLOYMENT_LOW":"continuous deployment","DELETE_CONTINUOUS_DEPLOYMENT_DESC_SI":"You are about to delete the continuous deployment {resource}.
    Please confirm whether to delete resources created by the continuous deployment.","DELETE_CONTINUOUS_DEPLOYMENT_DESC_PL":"You are about to delete the continuous deployments {resource}.
    Please confirm whether to delete resources created by the continuous deployments.","NO_CONTINUOUS_DEPLOYMENT_RELATED_RESOURCE_DESC":"No resource created by the continuous deployment is found.","DELETE_MULTIPLE_CONTINUOUS_DEPLOYMENT":"Delete Multiple Continuous Deployments","DELETE_CONTINUOUS_DEPLOYMENT":"Delete Continuous Deployment","DELETE_CONTINUOUS_DEPLOYMENT_RELATE_DESC":"Delete resources created by {resourceName}","SYNC":"Sync","SYNC_RESOURCE":"Sync Resource","REVISION":"Revision","REVISION_DESC":"Set a branch or tag of the code repository.","PRUNE":"Prune","DRY_RUN":"Dry run","APPLY_ONLY":"Apply only","FORCE":"Force","SYNC_SETTINGS":"Sync Settings","SKIP_SCHEMA_VALIDATION":"Skip schema validation","AUTO_CREATE_PROJECT":"Auto create project","PRUNE_LAST":"Prune last","APPLY_OUT_OF_SYNC_ONLY":"Apply out of sync only","PRUNE_PROPAGATION_POLICY":"Prune Propagation Policy","REPLACE_RESOURCE":"Replace Resource","REPLACE_RESOURCE_DESC":"Replace resources that already exist.","EMPTY_CD_TITLE":"No Continuous Deployment Found","SYNC_TRIGGERED":"Resource sync was triggered successfully.","PARAMETER_SETTINGS":"Parameter Settings","AUTO_PARAMETER":"Auto","AUTO_PARAMETER_DESC":"Set automatically.","HELM_PARAMETER":"Helm","HELM_PARAMETER_DESC":"Set Helm parameter.","KUSTOMIZE_PARAMETER":"Kustomize","KUSTOMIZE_PARAMETER_DESC":"Set Kustomize parameters.","PASS_CREDENTIALS":"Pass Credentials","IGNORE_MISSING_VALUE_FILES":"Ignore Missing Value Files","SKIP_CRDS":"Skip Crds","RELEASE_NAME":"Release Name","VALUE_FILES":"Value Files","FORCE_STRING":"Force String","FILE_PARAMETERS":"File Parameters","NAME_PREFIX":"Name Prefix","NAME_SUFFIX":"Name Suffix","IMAGES":"Images","COMMON_LABELS":"Common Labels","COMMON_ANNOTATIONS":"Common Annotations","DEVOPS_PROJECT_SETTINGS":"DevOps Project Settings","DEVOPS_DESCRIPTION":"A DevOps project is a separate namespace where a set of pipelines is defined. Users can group their pipelines themselves (for example, project type and organization type).","DEVOPS_PROJECT_ROLE_SCAP":"DevOps project role","DEVOPS_PROJECT_SCAP":"DevOps project","DEVOPS_PROJECT_MEMBER_SCAP":"DevOps project member","DEVOPS_PROJECT_MEMBER_PL_SCAP":"DevOps project members","DEVOPS_PROJECT_ROLE_PL_SCAP":"DevOps project roles","CD_ALLOWLIST":"Continuous Deployment Allowlist","CD_ALLOWLIST_SCAP":"Continuous deployment allowlist","DEPLOYMENT_LOCATION_PL":"Deployment Locations","ENABLE_ALLOWLIST":"Enable Allowlist","EDIT_ALLOWLIST":"Edit Allowlist","EMPTY_ALLOWLIST_TITLE":"Continuous Deployment Allowlist Disabled","ALLOWLIST_EMPTY_DESC":"Enable the allowlist so that only specific code repositories and deployment locations can be used for continuous deployment.","MULTI_CLUSTER_PROJECT_NOT_FOR_CD":"Multi-cluster projects cannot be used for continuous deployment.","CODE_REPOSITORY_EXIST_DESC":"The code repository already exists. Please select another code repository.","DEPLOYMENT_LOCATION_EXIST_DESC":"The deployment location already exists. Please set another deployment location.","CODE_REPOSITORY_NOT_SELECTED":"No code repositories are selected.","RESOURCE_DEPLOYMENT_LOCATION_NOT_SELECTED":"No resource deployment locations are selected.","ALL_CODE_REPOSITORIES":"All code repositories","ALL_RESOURCE_DEPLOYMENT_LOCATIONS":"All resource deployment locations","CREDENTIAL_LOW":"credential","DETAILS":"Details","TYPE_VALUE":"Type: {value}","RECORD":"Record","CREDENTIAL_PL":"Autentificación","DEVOPS_CREDENTIALS_DESC":"Credentials are objects that contain some sensitive data, such as username and password, SSH key and Token. They are used to provide authentication for pulling code, pushing/pulling images, executing SSH scripts, etc. when a pipeline is running.","CREDENTIAL_EMPTY_DESC":"Please create a credential.","CREATE_CREDENTIAL":"Crear credenciale","CREDENTIAL_NAME_EXIST_DESC":"El ID de credencial ya existe","CREDENTIAL_TYPE_USERNAME_PASSWORD":"Secreto de contraseña de cuenta","CREDENTIAL_TYPE_SSH":"SSH key","PRIVATE_KEY":"Llave privada","PASSPHRASE":"Pasphrase","CREDENTIAL_TYPE_SECRET_TEXT":"Access token","CREDENTIAL_TYPE_KUBECONFIG":"kubeconfig","PASSWORD_TOKEN":"Token/Contraseña","KUBECONFIG_CONTENT_DESC":"El contenido predeterminado es el kubeconfig del usuario actual.","CONTENT":"Content","DEVOPS_PROJECT_MEMBER":"DevOps Project Member","DEVOPS_PROJECT_MEMBER_PL":"DevOps Project Members","DEVOPS_PROJECT_MEM_DESC":"Manage and assign roles to project members.","DEVOPS_PROJECT_MEMBER_EMPTY_DESC":"Please invite a member of the current workspace to the DevOps project.","INVITE_MEMBER_DESC_DEVOPS":"You can invite members who belong to the workspace to the DevOps project.","HOW_TO_INVITE_MEMBER_Q":"How do I invite members to the project?","HOW_TO_INVITE_MEMBER_A":"The project administrator or users who have permission to invite project members can invite workspace members to the project.","NO_PERMISSION":"No Permission Found","DEVOPS_PROJECT_ROLE_PL":"DevOps Project Roles","DEVOPS_PROJECT_ROLES_DESC":"The project roles define the permissions that users have under the current DevOps project.","DEVOPS_PROJECT_ROLE_EMPTY_DESC":"Please create a DevOps project role.","ROLE_DEVOPS_VIEWER":"Permite el acceso de lectura para ver todos los recursos en el proyecto DevOps.","ROLE_DEVOPS_OPERATOR":"Usuario normal en un proyecto DevOps, que puede crear credenciales para las pipelines en el proyecto DevOps.","ROLE_DEVOPS_ADMIN":"Manage all resources in the DevOps project.","EDIT_PERMISSIONS":"Edit Permissions","CREATE_ROLE":"Create Role","CATEGORIES":"Categories","DEPENDS_ON":"Depends on: ","PERMIGROUP_PIPELINES_MANAGEMENT":"Pipelines","PERMISSION_PIPELINES_VIEW":"Pipeline Viewing","PERMISSION_PIPELINES_VIEW_DESC":"View DevOps project pipelines and download artifacts.","PERMISSION_PIPELINES_MANAGEMENT":"Pipeline Management","PERMISSION_PIPELINES_MANAGEMENT_DESC":"Create, edit, and delete DevOps project pipelines.","PERMISSION_PIPELINERUNS_VIEW":"Pipeline Run Record Viewing","PERMISSION_PIPELINERUNS_VIEW_DESC":"View pipeline run records in the DevOps project.","PERMISSION_PIPELINERUNS_MANAGEMENT":"Pipeline Run Record Management","PERMISSION_PIPELINERUNS_MANAGEMENT_DESC":"View, edit, and delete pipeline run records in the DevOps project.","PERMIGROUP_CREDENTIALS_MANAGEMENT":"Autentificación","PERMISSION_CREDENTIALS_VIEW":"Credential Viewing","PERMISSION_CREDENTIALS_VIEW_DESC":"View and use DevOps credentials.","PERMISSION_CREDENTIALS_MANAGEMENT":"Credential Management","PERMISSION_CREDENTIALS_MANAGEMENT_DESC":"Create, edit, and delete DevOps credentials.","PERMIGROUP_DEVOPS_SETTINGS":"Configuraciones del proyecto","PERMISSION_DEVOPS_SETTINGS":"Project Settings Management","PERMISSION_DEVOPS_SETTINGS_DESC":"Manage DevOps project settings.","PERMIGROUP_CONTINUOUS_DEPLOYMENTS_MANAGEMENT":"Continuous Deployments","PERMISSION_CONTINUOUS_DEPLOYMENTS_VIEW":"Continuous Deployment Viewing","PERMISSION_CONTINUOUS_DEPLOYMENTS_VIEW_DESC":"View continuous deployments in the DevOps project.","PERMISSION_CONTINUOUS_DEPLOYMENTS_MANAGEMENT":"Continuous Deployment Management","PERMISSION_CONTINUOUS_DEPLOYMENTS_MANAGEMENT_DESC":"Manage continuous deployments in the DevOps project.","PERMIGROUP_CODE_REPOSITORIES_MANAGEMENT":"Code Repositories","PERMISSION_CODE_REPOSITORIES_VIEW":"Code Repository Viewing","PERMISSION_CODE_REPOSITORIES_VIEW_DESC":"View code repositories in the DevOps project.","PERMISSION_CODE_REPOSITORIES_MANAGEMENT":"Code Repository Management","PERMISSION_CODE_REPOSITORIES_MANAGEMENT_DESC":"Manage code repositories in the DevOps project.","CODE_REPOSITORY":"Repositorio de Código","TASK_STATUS":"Task Status","NOT_RUNNING":"no ejecutar","QUEUED":"Encolado","ABORTED":"Aborted","UNSTABLE":"Unstable","SKIPPED":"Omitido","NOT_BUILT":"Not built","SYNC_STATUS":"Sync Status","DEVOPS_PROJECT":"DevOps Project","SCAN_REPO_SUCCESSFUL":"Escanear el repositorio correcto","VIEW_SCAN_LOGS":"View Scan Logs","STARTED_BY_NAME":"Comenzado por {name}","REPOSITORY_SCAN_LOGS":"Escanear logs de repositorio","RESCAN":"Reescanear","LOGS_OBTAINED_SUCCESSFULLY":"Escanear registros correctos","HEALTH_STATUS_SCAP":"Health status","PIPELINE_QUEUED_TITLE":"La pipeline se inicializará pronto","INITIALIZING_PIPELINE":"Inicialización de Pipeline","PIPELINE_PREPARE_DESC":"El ambiente se está preparando. Habrá una pantalla gráfica más tarde.","INITIALIZING_PIPELINE_DESC":"Please wait until the pipeline initialization is complete.","TASK_FAILED_NOT_OPERATIONAL":"Tarea fallida, no operativa","NO_PIPELINE_CONFIG_FILE_TIP":"Archivo de configuración de Pipeline no encontrado","EDIT_PIPELINE":"Editar pipeline","JENKINS_UNAVAILABLE":"Jenkins is unready.","AGENT_TYPE_DESC":"The agent section specifies\n where the entire Pipeline or a particular stage will be executed in the Jenkins environment,\n depending on where the Agent part is placed.\n This part must be defined at the top level within the pipeline block,\n but the stage level usage is optional. ","NOT_VALID_REPO":"Code repo is not valid and cannot be created","CREATE_PIPELINE_DESC":"Build, test and deploy with Pipelines","CI":"Continuous Integration (CI)","CI_DESC":"Continuous integration (CI) is the process of automatically detecting, pulling, building, and (in most cases) unit testing after source code changes.","CICD":"Continuous Integration & Delivery (CI/CD)","CICD_DESC":"Continuous deployment (CD) refers to the idea of automatically providing the release version in the continuous delivery pipeline to end users. According to the user's installation method, automatic deployment in the cloud environment, app upgrades (such as apps on mobile phones), website updates, or only the list of available versions.","CUSTOM_PIPELIEN":"Custom Pipeline","CUSTOM_PIPELIEN_DESC":"You can select the tasks you need to customize the work content of the pipeline.","CC":"CC","CREDENTIAL_NAME":"ID de autentificación","REMOTE_REPOSITORY_URL":"URL de repositorio remoto","SCM":"SCM","INPUT_MESSAGE_DESC":"Este mensaje se mostrará en el estado de ejecución de la canalización.","KUBERNETES_DEPLOY_DESC":"Deploy resources on a Kubernetes cluster.\n In a continuous integration or continuous deployment environment,\n only those resources that need to be updated regularly should be placed in the deployment step.\n Therefore, this step is mostly used to process the deployment of such resources.","KUBERNETES_DEPLOY_DESC_MORE":"
    \n \n
  • Distribución sin kubectl
  • \n
  • Sustitución variable en Jenkinsfile, es posible la implementación dinámica.
  • \n
  • Soporte para dibujar imágenes acoplables desde repositorios de imágenes privadas
  • \n \n
    \n
  • Configuración
  • \n
  • Llave
  • \n
  • Desplegar
  • \n
  • Dave Process Set
  • \n
  • Enrutamiento de aplicaciones
  • \n
  • Namespace
  • \n
  • Tarea
  • \n
  • Servicio
  • \n
  • Conjunto de réplica
  • \n
  • Controlador de replicación\n (las actualizaciones continuas no son compatibles, use la implementación si desea usar actualizaciones continuas)\n
  • ","STAGE":"Stage","KUBERNETES_DEPLOY_DEPRECATED_TIP":"This step will be deprecated in subsequent versions, and it is recommended that you consider other alternatives.","ORIGINAL_IMAGE_ADDRESS":"Original Image Address","NEW_IMAGE_ADDRESS":"New Image Address","NEW_IMAGE_TAG":"New Image Tag","CD_STEP_DESC":"Update image information using continuous deployment.","UPDATE_CD_TITLE":"Continuous Deployment of Updates","EDIT_JENKINSFILE":"Editar Jenkinsfile","CLOSE_JENKINSFILE_EDITOR_TIP":"¿Estás seguro de cerrar este editor de jenkinsfile?","PIPELINE_RUN_LOGS":"Registros de ejecución de Pipelines","VIEW_LOGS":"Mostrar logs","DURATION_VALUE":"Duration: {value}","DOWNLOAD_LOGS":"Descargar Logs","START_REAL_TIME_LOG":"activar el registro de logs en tiempo real","STOP_REAL_TIME_LOG":"desactivar el registro de logs en tiempo real","RUN_RECORDS":"Run Records","RUN":"ejecutar","ACTIVITY_EMPTY_TIP":"La pipeline actual aún no se está ejecutando","COMMIT":"Commit","LAST_MESSAGE":"Ultimo mensaje","RUN_ID":"Run ID","STOP_PIPELINE_SUCCESSFUL":"Parado de ejecución satisfactorio, se actualizará el estado después","INVALID_JENKINSFILE_TIP":"El Jenkinsfile actual no es un Jenkinsfile declarativo estándar y no se puedes mostrar gráficamente","PAUSED":"Pausado","SET_PARAMETERS":"Entrada de parámetros","PARAMS_DESC":"The following parameters are generated based on the pipeline settings or\n the parameters section of the Jenkinsfile, which are entered according to operational requirements.","PIPELINE_RUN_START_SI":"Starts to run the pipeline...","PIPELINE_RUN_START_PL":"Starts to run the pipelines...","BREAK":"Rotura","PROCEED":"Continuar","WAITING_FOR_INPUT":"Espere entrada interactiva","CANCELLED_IN_REVIEW":"Cancelado en la revisión","STEPS_COMPLETE_TOTAL":"Steps: {complete}/{total}","COMMIT_PL":"Commits","AUTHOR":"Author","NO_COMMIT_FOUND":"Sin registros de commits","ARTIFACT_PL":"Artefactos","NO_ARTIFACT_FOUND_TIP":"No hay registro de artefactos.","SIZE":"Tamaño","BRANCH_SI":"Branch","BRANCH_PL":"Branches","SCAN_REPOSITORY":"Escanear repositorio","PIPELINE":"Pipeline","NO_BRANCHES_FOUND":"No Branches Found","CODE_CHECK":"Código de calidad","BUG_PL":"Bugs","VULNERABILITY_PL":"Vulnerabilidad de código","CODE_SMELL_PL":"Code Smells","CODE_LINE_COUNT":"Líneas de código","COVERAGE":"Cobertura","TEST_RESULTS":"Resultado de la prueba","ISSUE_PL":"Problemas","CRITICAL":"Critical","MAJOR":"Major","MINOR":"Minor","DISPLAY_ALL":"Mostrar todo","DISPLAY_ONLY_LAST_TEN":"Mostrar solo los últimos 10","LINE_VALUE":"Número de línea: {value}","PASSED":"Pasado","PULL_REQUEST_PL":"Pull Requests","FAILED_CHECK_SCRIPT_COMPILE":"Failed to check script compiling. If you want to skip the step, click Continue.","IMPORT_FROM_CODE_REPO":"Import From Code Repository","General":"General","Container":"Container","Review":"Review","URL":"URL","Credential Name":"ID de autentificación","Branch":"Branch","SVN URL":"SVN URL","The message to print":"Message to Print","Shell command line":"Shell command line","Body":"Body","Variable":"Variable","KeyFile Variable":"KeyFile Variable","Passphrase Variable":"Passphrase Variable","Artifacts Location":"Artifacts Location","Time":"Hora","Unit":"Unit","Groovy script":"Groovy script","Target Pipeline Name":"Target Pipeline Name","Quiet Period":"Quiet Period","Wait For Completion":"Wait for completion","Propagate Errors":"Propagate errors","Error Message":"Error Message","Test Results Location":"Location of Test Results","Allow Empty Results":"Allow empty results","Keep Long Output":"Retain long output","Skip Publishing Checks":"Skip publishing checks","Retry Count":"Retry Times","Message":"Mensaje","Submitter":"Submitter","Config Name":"Configuration Item","AbortPipeline if quality gate status is not green":"Abort the pipeline if quality gate status is not green","Container Name":"Nombre del contenedor","Continuous Deployments":"Continuous Deployment","Original Image Address":"Original Image Address","New Image Address":"New Image Address","New Image Tag":"New Image Tag","Credential":"Autentificación","PIPELINE_CONFIGURATION":"Pipeline Configurations","Replay":"Replay","BRANCH_DISABLED_NOT_REPLAY":"The branch has been disabled and cannot be replayed.","RUN_LOGS":"Run Logs","VIEW_FULL_LOG":"View Full Logs","VIEW_REAL_TIME_LOG":"View Real-time Logs","PIPELINE_LOG":"Pipeline Logs","NO_BUILD_PARAMETERS":"Not found build parameters.","PIPELINE_PL":"Pipelines","HEALTH":"Health","PULL_REQUEST_COUNT":"Pull Requests","MULTI_BRANCH_PIPELINE":"Multi-branch Pipeline","HEALTHY":"Healthy","SUB_HEALTHY":"Sub-healthy","NO_STATUS":"sin Estado","BRANCH_COUNT":"Número de rama","PIPELINE_EMPTY_DESC":"Please create a pipeline.","BATCH_RUN_SUCCESS_SI":"The pipeline was run successfully.","BATCH_RUN_SUCCESS_PL":"The pipelines were run successfully.","BATCH_RUN_UNSUPPORTED_DESC":"Multi-branch pipelines cannot run in a batch.","COPY":"Copiar","COPY_PIPELINE":"Copiar pipeline","PIPELINE_NAME_DESC":"El nombre de la pipeline. Las pipelines en el mismo proyecto deben tener nombres diferentes.","PIPELINE_NAME_TIP":"Por favor introduce el nombre de la pipeline","CREATE_PIPELINE":"Crear pipeline","GO_CREATE_REPO_ACTION":"No code repository is available. Please create a code repository.","PIPELINE_TYPE":"Pipeline Type","SELECT_CODE_REPOSITORY":"Seleccionar repositorio de código","BRANCH_PIPELINE_DESC":"Describe the software build process with visual orchestration or Jenkinsfile.","MULTI_BRANCH_PIPELINE_DESC":"Create a series of pipelines for each branch detected in the source code management (SCM) repository.","PIPELINE_CREATE_DEVOPS_PROJECT_DESC":"Select the DevOps project to which the pipeline belongs.","CODE_REPOSITORY_OPTIONAL":"Repositorio de Código (Opcional)","CODE_REPOSITORY_REQUIRED":"Repositorio de Código","CODE_REPOSITORY_REQUIRED_DESC":"Please select a code repository.","GO_CREATE_REPO":"No code repository is available. Please create a code repository.","CODE_REPO_EXISTS":"code repository already exists","SELECT_CODE_REPO_DESC":"Selecciona un repositorio de código como fuente de código para la pipeline.","RESELECT":"Seleccionar de nuevo","CREDENTIAL_SI":"Autentificación","CREDENTIAL":"Autentificación","PIPELINE_CREDENTIAL_EMPTY_TIP":"Please select a credential.","SELECT_CREDENTIAL_DESC":"La obtención del código del repositorio puedes requerir credenciales. Selecciona una credencial existente o agregue una nueva.","GITHUB_CREDENTIAL_EMPTY":"Introduce su token de acceso de GitHub.","INCORRECT_GITHUB_TOKEN_DESC":"Token incorrecto\n \n Get Token\n ","LOAD_MORE":"Cargar más","NO_REPO_FOUND_DESC":"No code repository is found.","GITLAB_SERVER_ADDRESS":"GitLab Server","GITLAB_SERVER_EMPTY_TIP":"Please enter the address of a GitLab server.","PROJECT_GROUP_OWNER":"GitLab Project Owner","PROJECT_GROUP_OWNER_EMPTY_TIP":"Please enter the name of a GitLab project group or project owner.","REPOSITORY_NAME":"Nombre del repositorio","REPOSITORY_NAME_EMPTY_TIP":"Please enter the name of a repository name.","BITBUCKET_SERVER_ADDRESS":"Bitbucket Server Address","BITBUCKET_SERVER_EMPTY_TIP":"Please enter the address of a Bitbucket server.","INCORRECT_USERNAME_OR_PASSWORD":"Incorrect username or password.","BITBUCKET_SERVER_CREDENTIAL_EMPTY":"Introduce la información de su cuenta de Bitbucket.","BITBUCKET_ADDRESS_EMPTY_TIP":"Please enter the address of a Bitbucket server.","BITBUCKET_ADDRESS_INVALID_TIP":"Invalid Bitbucket server address.","CODE_REPOSITORY_ADDRESS_DESC":"Use a repository that contains Jenkinsfiles.","CODE_REPOSITORY_ADDRESS_EMPTY_TIP":"Please enter the address of a code repository.","CODE_REPOSITORY_ADDRESS":"URL del repositorio","SINGLE_SVN":"Svn único","SVN":"SVN","BRANCH_EXCLUDED":"Rama excluida","BRANCH_INCLUDED":"Rama incluida","DELETE_OUTDATED_BRANCHES":"Descartar ramas antiguas","DELETE_OUTDATED_BRANCHES_TIP":"Esto determinará cuándo se debe descartar la rama y todos los registros de compilación debajo de la rama. El registro de compilación incluye los artefactos de archivo de salida de la consola y otros metadatos relacionados con una compilación en particular. Mantener menos compilaciones ahorra espacio en disco utilizado por Jenkins. Proporcionamos dos opciones para determinar cuándo debe descartarse la rama anterior: 1. Número de días para conservar la rama: si la rama alcanza un cierto número de días, la rama se descarta. 2. Número de ramas reservadas: si ya existe un cierto número de ramas, se descarta la rama más antigua. Estas dos opciones pueden funcionar en la sucursal al mismo tiempo. Si se excede alguno de los límites, se eliminarán las ramas que excedan este límite.","BRANCH_SETTINGS":"Configuración de ramas","BRANCH_RETENTION_PERIOD_DAYS":"Días para mantener las ramas eliminadas","MAXIMUM_BRANCHES":"Número máximo de ramas eliminadas","BRANCH_RETENTION_PERIOD_DAYS_DESC":"Old branches are discarded after this number of days. The default value is 7.","MAXIMUM_BRANCHES_DESC":"Old branches are discarded when the branch number exceeds the maximum number. The default value is 5.","ADD_STRATEGY":"Add Strategy","DISCOVER_TAG_BRANCHES":"Descubrir Tag ramas","DISCOVER_BRANCHES":"Descubrir ramas","ALL_BRANCHES":"Todas las ramas","ONLY_PR_BRANCHES":"Solo las ramas que también se presentan como PR","EXCLUDE_PR_BRANCHES":"Excluir las ramas que también se presentan como PRs","ENABLE_TAG_BRANCH_DISCOVERY":"Habilitar descoberta de ramo de tag","DISABLE_TAG_BRANCH_DISCOVERY":"Desativar a descoberta do ramo tag","PULL_STRATEGY":"Estrategia de Pull","OPTIONS_PR_PARAMS_1":"Versión del código fuente de PR fusionada con la rama de destino","OPTIONS_PR_PARAMS_2":"Versión del código fuente del propio RP","OPTIONS_PR_PARAMS_3":"Se crean dos pipelines cuando se descubre PR","REGEX":"Filtro de expresiones regulares","FILTER_BY_REGEX":"Filter by name (with regular expression)","FILTER_BY_REGEX_DESC":"Habilite las expresiones regulares, ignorando los nombres que no coinciden con la expresión regular proporcionada (incluidas las ramas y PR, etc.)","SCRIPT_PATH":"Ruta del script","SCRIPT_PATH_DESC":"Especifique la ubicación del archivo Jenkinsfile en el repositorio de código fuente","SCAN_TRIGGER":"Repository Scan Trigger","SCAN_PERIODICALLY":"Scan regularly if not otherwise triggered","TIME_TRIGGER_DESC":"Algunos tipos de elementos se volverán a indexar automáticamente cuando reciban un mensaje push externo. Sin embargo, en algunos casos, las notificaciones de mensajes pueden fallar. Esta opción verificará si el índice se ha ejecutado dentro del intervalo de tiempo especificado y, si no, activará el índice.","SCAN_INTERVAL":"Intervalo de escaneo","SELECT_PIPELINE_SCAP":"selecciona una pipeline","WHEN_DELETE_PIPELINE_DESC":"Cuando se elimina una pipeline, las tareas en la pipeline especificada se activan automáticamente.","WHEN_CREATE_PIPELINE_DESC":"Cuando se crea una nueva pipeline, las tareas en la pipeline especificada se activan automáticamente.","PIPELINE_EVENT_TRIGGER":"Disparador de eventos de Pipelines","WHEN_CREATE_PIPELINE":"Cuando crear pipeline","WHEN_DELETE_PIPELINE":"Cuando eliminar pipeline","CLONE_SETTINGS":"Opciones de clonación de Git","CLONE_TIMEOUT_PERIOD":"Tiempo de espera de clonación de pipeline agotado (en minutos)","CLONE_DEPTH":"profundidad de clonado","ENABLE_SHALLOW_CLONE":"Enable shallow clone","WEBHOOK_PUSH_URL":"Webhook Push URL","WEBHOOK_PUSH_DESC":"Empuje un mensaje a esta URL para activar una reindexación del repositorio.","TRUSTED_USERS":"Usuario de confianza","CONTRIBUTORS":"Contribuidores","EVERYONE":"Todo el mundo","NOBODY":"Nadie","USERS_WITH_PERMISSION":"De usuarios con permiso de administrador o de escritura","OPTIONS":"Options","BUILD_SETTINGS":"Configuración de compilación","DELETE_OUTDATED_BUILD_RECORDS":"Descartar builds antiguas","DELETE_OUTDATED_BUILD_RECORDS_TIP":"Set the system to automatically delete outdated build records including console output, archived artifacts, and metadata to save disk space.","BUILD_RECORD_RETENTION_PERIOD_DAYS":"Días para mantener las build","BUILD_RECORD_RETENTION_PERIOD_DAYS_DESC":"Old builds are discarded after this number of days. The default value is 7.","BUILD_RECORD_RETENTION_PERIOD_DAYS_INVALID_TIP":"The retention period must be a positive integer.","MAXIMUM_BUILD_RECORDS":"Número máximo de compilaciones para mantener","MAXIMUM_BUILD_RECORDS_DESC":"Old builds are discarded when the build number exceeds the maximum number. The default value is 10.","MAXIMUM_BUILD_RECORDS_INVALID_TIP":"The maximum number of build records must be a positive integer.","NO_CONCURRENT_BUILDS":"No hay builds concurrentes","NO_CONCURRENT_BUILD_DESC":"Si marca esta opción, no podrá ejecutar varias compilaciones simultáneamente.","BUILD_PARAMETERS":"Build parametrizado","BUILD_PARAMETERS_TIP":"El proceso de compilación parametrizado le permite pasar uno o más parámetros cuando construye. Por ejemplo: puedes tener una pipeline para publicar software y desea cargar las notas de la versión juntas. Esto se puedes hacer agregando parámetros de texto aquí. Cada parámetro tiene un Nombre y un Valor y el valor del Valor depende del tipo de parámetro. Se puedes acceder a estos valores en la canalización mediante params.Name o Name. Esto significa que cada parámetro definido aquí debe tener un nombre único. Al parametrizar un proyecto, la compilación se reemplaza por una compilación parametrizada que solicita al usuario que introduce un valor para cada parámetro definido. Si eligen no ingresar nada, la compilación continúa con el valor predeterminado para cada parámetro. Si la compilación del proyecto se inicia automáticamente, por ejemplo, mediante un disparador temporizado, se disparará con el valor predeterminado del parámetro.","PARAMS_STRING":"Cuerda","PIPELINE_PARAM_DEFAULT_DESC":"The default value of the field. You can also change the default value before manually running a pipeline.","PARAMS_TEXT":"Texto","PARAMS_TEXT_TCAP":"Multi-line String","PARAMETER_DESCRIPTION_DESC":"Descripción del parámetro.","PARAMS_BOOLEAN":"Booleano","PARAMS_CHOICE":"Elección","CHOICE_PARAM_OPTION_DESC":"Enter one option per each line. La primera línea se usará como la opción predeterminada.","PARAMS_PASSWORD":"Contraseña","BUILD_TRIGGER":"Crear disparador","BUILD_PERIODICALLY":"Build programada","BUILD_PERIODICALLY_TIP":"It provides cron-like functionality to run this pipeline regularly.","PIPELINE_CRON_DESC":"Habría corrido por última vez en {lastTime}; se ejecutará a las {nextTime}","PIPELINE_SCHEDULE_DESC":"Enter a CRON expression to set a schedule.","DEFAULT_VALUE":"Valor por defecto","PARAMETER_NAME_EMPTY_DESC":"Please set the parameter name.","SELECT_TEMPLATE":"Select template","PARAMETER_CONFIG":"Parameter configuration","PREVIEW":"Preview","EMPTY_PARAMS_CONFIG":"This operation does not require parameter configuration.","PIPELINE_VALIDATOR_DESC":"Please select a pipeline template.","USER_GUIDE":"User Guide","API_DOCUMENT":"API Docuement","INPUT_USERNAME_OR_EMAIL_TIP":"Please input username or email","LOG_IN":"Log In","LOG_IN_WITH_TITLE":"Log in with {title}","LOG_OUT":"Log Out","ABOUT":"About","USERNAME_OR_EMAIL":"Username or Email","WELCOME":"Welcome","INTERNAL_SERVER_ERROR_TIP":"An unepected error seems to have occurred. Please refresh your page.","TOO_MANY_FAILURES":"The number of consecutive login failures has exceeded the limit. Please try again later.","FAILED_TO_ACCESS_BACKEND":"Failed to access the backend services.","FAILED_TO_ACCESS_API_SERVER":"Failed to access the API server.","LOGIN_AGAIN_DESC":"The session has timed out or the user has logged in elsewhere. Please log in again.","CHANGE_PASSWORD_TIP":"You are logging in for the first time. Please change your password.","SUBMIT":"Submit","CHANGE_PASSWORD_LATER":"Change Password Later","PASSWORD_MUST":"Your password must:","PASSWORD_LETTER":"Contain at least 1 uppercase letter and 1 lowercase letter.","PASSWORD_NUMBER":"Contain at least 1 number.","PASSWORD_LENGTH":"Contain at least 8 characters.","SET_EMAIL_AND_USERNAME":"Set Email and Username","APPLICATION_GOVERNANCE_SCAP":"Application governance","NO_SERVICE_FOUND":"No Service Found","GATEWAY_IP_ADDRESS":"IP del gateway","GATEWAY_ACCESS_MODE":"Tipo de gateway","NODE_PORTS_SCAP":"Node ports","LOAD_BALANCER_SCAP":"Load balancer","LOAD_BALANCERS_SCAP":"Load balancers","TRAFFIC_MANAGEMENT":"Gestión del tráfico","APPLICATION_GOVERNANCE_ENABLED":"Microservicio habilitado","APPLICATION_GOVERNANCE_DISABLED":"Microservicio no habilitado","NAME_VALUE":"Nombre: {value}","CONTAINER_PORT_VALUE":"Puerto de contenedores: {value}","PLEASE_USE_RELATIVE_PATH":"Please use a relative path.","RELATIVE_PATH_NOT_SUPPORT":"Unsupported relative path format.","MOUNT_PATH_INCORRECT":"Incorrect mount path.","REASON":"Motivo","WORKLOAD_DESC":"La carga de trabajo suele ser el operador real para acceder al servicio, y también es el operador real en ejecución para aplicaciones del sistema, como la recopilación y supervisión de registros de nodos. Workload es un modelo abstracto para un grupo de Pods.","DEPLOYMENT_EMPTY_DESC":"Cree un deployment.","UPDATING":"Actualización","NEXT":"Siguiente","INVALID_PROJECT":"Invalid project.","REPLICA_SCHEDULING_MODE":"Modo de despliegue","SPECIFY_REPLICAS":"Especificar las réplicas","WEIGHTS":"Pesas","SPECIFY_WEIGHTS":"Especificar los pesos","SPECIFY_WEIGHTS_DESC":"El número total de copias establecido se asignará a los grupos seleccionados de acuerdo con los pesos establecidos, y las copias de los grupos no disponibles se migrarán automáticamente a los grupos disponibles.","SPECIFY_REPLICAS_DESC":"Especifique claramente la cantidad de réplicas que se implementarán para cada clúster.","REPLICA_LOW_SI":"replica","REPLICA_LOW_PL":"replicas","WEIGHT":"Peso","TOTAL_REPLICAS":"Número total de copias","COST":"Cost","ADD_CONTAINER":"Add Container","ADD_CONTAINER_DESC":"KubeSphere admite la extracción de imágenes de los Registros de imágenes y la creación de nuevas imágenes a través del código fuente (Fuente a imagen).","CONTAINERS":"Imagen de contenedor","IMAGE_TIME_SIZE_LAYER":"Updated {time}","IMAGE_DESC":"Para implementar desde un repositorio de imágenes privado, primero debe crear un secreto de registro de imágenes y luego extraer la imagen.","IMAGE_PLACEHOLDER":"Selecciona el registro de la lista desplegable o introduce una dirección de registro público","IMAGE_EMPTY":"Please set an image.","ENTER_POSITIVE_INTEGER_DESC":"La entrada de copia es ilegal","TOTAL_REPLICAS_EMPTY_DESC":"Ingrese el número total de copias","CONTAINER_NAME":"Nombre del contenedor","CONTAINER_TYPE":"Tipo de contenedor","USE_DEFAULT_PORTS":"Usar puertos predeterminados","USE_IMAGE_DEFAULT_PORTS":"Use Default Port of Images","NO_DEFAULT_PORT":"Sin configuración de puertos predeterminada","REGISTRY":"registro","SET_IMAGE_DESC":"Por favor selecciona imagen","WORKER_CONTAINER":"Contenedor de trabajo","CONTAINER_RESOURCE_LIMIT_TIP":"Set the resource limits and requests of the container so that the container is scheduled to appropriate nodes.","GPU_TYPE":"GPU Type","GPU_LIMIT":"GPU Limit","NVIDIA_COM_GPU":"NVIDIA GPU","NO_LIMIT":"Ilimitado","NO_REQUEST":"Ninguna solicitud","NO_RESOURCE_LIMIT":"No resource limit","IGNORE_AND_RETRY":"para volver a intentarlo","AVAILABLE_QUOTAS":"Available Quotas","PORT_SETTINGS":"Configuraciones de puerto","ISTIO_PROTOCOL_TIP":"To fully use the Application Governance feature, select a protocol based on the actual usage of the Service. The port name will be generated in the - format.","REQUIRED":"requerido","IMAGE_PULL_POLICY_ALWAYS":"Volver a descargar la imagen (siempre)","IMAGE_PULL_POLICY_NEVER":"Usar solo imagen local (nunca)","IMAGE_PULL_POLICY_ALWAYS_DESC":"Pulls an image always when the pod is created or updated.","IMAGE_PULL_POLICY_IFNOTPRESENT_DESC":"Pulls an image only when the required image does not exist locally.","IMAGE_PULL_POLICY_NEVER_DESC":"Solo se usará la imagen local, lo que hará que el contenedor sea anormal si la imagen requerida no existe localmente.","IMAGE_PULL_POLICY_IFNOTPRESENT":"Use la imagen local primero (IfNotPresent)","LIVENESS_CHECK":"Verificación del estado del contenedor","READINESS_CHECK":"Verificación Readiness del contenedor","STARTUP_CHECK":"Comprobación de inicio de contenedor","LIVENESS_CHECK_DESC":"Este método de verificación se utiliza para detectar si el contenedor está vivo.","READINESS_CHECK_DESC":"Este método de verificación se utiliza para detectar si el contenedor está listo para atender solicitudes.","STARTUP_CHECK_DESC":"Este método de verificación se utiliza para detectar si el contenedor se inicia correctamente.","ADD_PROBE":"Add Checker","COMMANDS":"Comando","HEALTH_CHECK":"Health check","STARTUP_CHECK_TIP":"Kubernetes v1.18 or later is required.","HTTP_PATH_EMPTY":"Please set a path for the HTTP check.","LIFECYCLE_MANAGEMENT":"Lifecycle Management","LIFECYCLE_MANAGEMENT_DESC":"Add actions to be performed after the container is started or before it is stopped for environment preparation or graceful shutdown.","POSTSTART_ACTION":"Post-start Action","PRESTOP_ACTION":"Pre-stop Action","POSTSTART_ACTION_DESC":"Add an action to be performed after the container is started.","PRESTOP_ACTION_DESC":"Add an action to be performed before the container is stopped.","ADD_ACTION":"Add Action","ADD_ENVIRONMENT_VARIABLE":"Agregar variable de entorno","KEY_IN_RESOURCE":"Seleccionar clave","LABEL_TYPE":"{label} ({type})","RESOURCE":"Resource","CREATE_CONFIGMAP_SECRET_DESC":"If no configmap or secret meets the requirements, you can","CREATE_CONFIG":"create a configmap","OR":"or","CREATE_SECRET":"create a secret.","DEFAULT_REPOSITORY":"Default Registry","SET_DEFAULT_REPOSITORY":"Set Default Registry","SET_AS_DEFAULT_REPOSITORY_DESC":"Set the image registry as the default image registry. Unless otherwise specified, the system uses images from the default image registry to create application workloads. Only one default image registry is allowed in each project.","SET_AS_DEFAULT_REPOSITORY":"Set as Default","SET_DEFAULT_REPO_SUCCESSFUL":"Default repository set successfully","CONTAINER_SECURITY_CONTEXT":"Contexto de seguridad del contenedor","CONTAINER_SECURITY_CONTEXT_DESC":"Un contexto de seguridad define la configuración de privilegios y control de acceso para un Pod o Contenedor.","PRIVILEGED_MODE":"Privilegiado","PRIVILEGED_MODE_DESC":"El proceso en el contenedor es esencialmente equivalente al usuario raíz en el nodo host.","ALLOW_PRIVILEGE_ESCALATION":"AllowPrivilegeEscalation","ALLOW_PRIVILEGE_ESCALATION_DESC":"Si el proceso puede adquirir más privilegios que el proceso padre. Cuando se ejecuta en modo privilegiado, está habilitado.","ROOT_DIRECTORY_READONLY":"ReadOnlyRootFilesystem","ROOT_DIRECTORY_READONLY_DESC":"Si la ruta raíz del sistema de archivos del contenedor es de solo lectura.","USER_AND_USER_GROUP":"Usuario y grupo de usuarios","USER_GROUP":"Grupo de usuario","RUN_AS_NON_ROOT":"Ejecutar como no root","RUN_AS_NON_ROOT_DESC":"kubernetes realizará una comprobación antes de ejecutar el contenedor para asegurarse de que el proceso del contenedor no se esté ejecutando como usuario raíz (UID 0); de lo contrario, el contenedor no se iniciará.","RUN_AS_USER_DESC":"El UID para ejecutar el punto de entrada del proceso contenedor. El valor predeterminado es el usuario especificado en los metadatos de la imagen si no se especifica.","RUN_AS_USER_GROUP_DESC":"El GID para ejecutar el punto de entrada del proceso contenedor. Utiliza el tiempo de ejecución predeterminado si no está configurado.","SELINUX_CONTEXT":"SELinux Context","CAPABILITIES":"Capabilities","DROP":"Drop","ACCESS_CONTROL":"Control de acceso","LEVEL":"Nivel","SYNC_HOST_TIMEZONE_DESC":"El timezone del contenedor será consistente con el del host después de la sincronización.","SYNC_HOST_TIMEZONE":"Synchronize Host Timezone","UPDATE_STRATEGY":"Actualizar estrategia","ROLLING_UPDATE_RECOMMENDED":"RollingUpdate (recomendado)","SIMULTANEOUS_UPDATE":"Recrear","ROLLINGUPDATE_DESC":"Una actualización continua significa que la instancia de la versión anterior se reemplazará gradualmente por otras nuevas. Durante el proceso de actualización, el tráfico se equilibrará con la carga y se distribuirá a las instancias antiguas y nuevas simultáneamente, por lo que el servicio no se interrumpirá.","SIMULTANEOUS_UPDATE_DESC":"Todos los Pods existentes serán eliminados antes de que se creen otros nuevos. Tenga en cuenta que el servicio se interrumpirá durante el proceso de actualización.","ENTER_INTEGER_OR_PERCENTAGE":"Introduce el valor","MAX_EXTRA_EMPTY":"Please set the maximum number of extra Pod replicas allowed during the update process.","POD_SECURITY_CONTEXT":"Contexto de seguridad de pod","POD_SECURITY_CONTEXT_DESC":"Customize the Pod privilege settings.","POD_SECURITY_CONTEXT_TIP":"Contexto de seguridad de pod puede proporcionar configuraciones predeterminadas de usuarios y grupos de usuarios y configuraciones de parámetros seLinuxOptions para contenedores en el pod. Si estos parámetros se han definido en el contenedor, la configuración en el contenedor tiene prioridad.","POD_SCHEDULING_RULES":"Pod Assignment Strategy","POD_SCHEDULING_RULES_DESC":"You can specify rules for pod scheduling","DEFAULT_RULES":"Default Rules","DEFAULT_RULES_DESC":"Schedules the Pod replicas to nodes according to default rules.","DECENTRALIZED_SCHEDULING":"Despliegue descentralizado de pod","CUSTOM_RULES":"Custom Rules","CUSTOM_RULES_DESC":"Las réplicas de pod se implementarán de acuerdo con la política predeterminada.","DECENTRALIZED_SCHEDULING_DESC":"Las réplicas de pod se implementarán en diferentes nodos tanto como sea posible.","CENTRALIZED_SCHEDULING_DESC":"Las réplicas de pod se implementarán en el mismo nodo tanto como sea posible.","CENTRALIZED_SCHEDULING":"Implementación de agregación de pod","SCHEDULE_WITH_TARGET":"Deploy with target","SCHEDULE_AWAY_FROM_TARGET":"Schedule away from target","MATCH_IF_POSSIBLE":"Match if possible","MUST_MATCH":"Must match","TARGET":"Target","STRATEGY":"Strategy","POD_GRACE_PERIOD":"Pod Grace Period","POD_GRACE_PERIOD_DESC":"Set the waiting time before Pod terminates, after which Pod will be forcibly terminated.","TERMINATION_GRACEPERIOD_SECONDS":"Termination GracePeriod Seconds (s)","ADD_METADATA":"Agregar metadatos","POD_ADD_METADATA_DESC":"Add metadata to the Pod replicas.","STORAGE_SETTINGS":"Storage Settings","READ_ONLY_LOW":"read-only","READ_AND_WRITE_LOW":"read and write","MOUNT_VOLUME":"Mount Volume","WORKLOAD_MOUNT_VOLUME_DESC":"Mount an persistent volume, temporary volume, or HostPath volume to the containers.","SELECT_PERSISITENT_VOLUME_CLAIM":"Select Persistent Volume Claim","SELECT_PERSISITENT_VOLUME_CLAIM_DESC":"Mount a persistent volume created according to the persistent volume claim to the containers.","CAPACITY":"Capacidad","PVC_NOT_SELECT":"Please select a persistent volume claim.","TEMPORARY_VOLUME":"Volumen Temporal","VOLUME_NAME":"Nombre del volumen","VOLUME_NAME_EMPTY":"Por favor introduce el nombre del volumen","HOST_PATH_EMPTY":"Por favor introduce el ruta del host del volumen","CONTAINER_NOT_SELECTED":"Selecciona al menos un contenedor para montar","NOT_MOUNT":"No montado","HOSTPATH_VOLUME":"HostPath Volume","HOSTPATH_TIP":"Un volumen de tipo HostPath montará un fichero o directorio del sistema de ficheros del nodo host en tu Pod. La mayoría de Pods no lo necesitarán, pero puede resultar muy útil para algunas aplicaciones.","HOST_PATH":"Host Path","READ_AND_WRITE":"Lectura y escritura","READ_ONLY":"Solo lectura","MOUNT_CONFIGMAP_OR_SECRET":"Monte ConfigMap o Secret","MOUNT_CONFIGMAP_OR_SECRET_DESC":"Monte el configmap o secret en el directorio especificado.","CONFIGMAP":"ConfigMap","SELECT_CONFIGMAP_DESC":"Agregue un nuevo volumen desde el valor de ConfigMap.","READ_WRITE_MOUNT_EMPTY":"Especifique el modo de lectura y escritura y la ruta de montaje","SELECT_SPECIFIC_KEYS":"Seleccionar claves y caminos específicos","SELECT_SPECIFIC_KEYS_DESC":"Selecciona la clave que desea usar y la ruta del archivo donde se expondrá cada clave. La ruta del archivo es equivalente a la ruta de montaje. El contenido de cada archivo es el valor de la clave.","SELECT_SECRET_DESC":"Agregue un nuevo volumen desde el valor Secreto.","CONFIGMAP_NOT_SELECT":"Por favor selecciona un mapa de configuración","SECRET_NOT_SELECT":"Por favor selecciona un secreto","NO_AVAILABLE_RESOURCE":"No hay recursos disponibles","SELECT_NODES":"Establecer política de programación de nodos","SELECT_NODES_DESC":"Puede permitir que las réplicas de Pod se ejecuten en nodos específicos.","ADD_NODE_SELECTOR":"Agregar selector de nodo","ADD_METADATA_DESC":"Add metadata to resources.","KEY":"Clave","VALUE":"Valor","ADVANCED_SETTINGS":"Ajustes avanzados","DUPLICATE_LABELS":"Duplicate labels cannot be added.","WORKLOAD_SPECIFY_NODE_DESC":"Assign Pod replicas to a specific node.","CLUSTER_DIFF":"Cluster Differences","CLUSTER_DIFF_CONTAINER_SETTINGS_DESC":"Establecer diferentes contenedores en diferentes grupos según las necesidades","CLUSTER_DIFF_PORT_SETTINGS_DESC":"Se pueden configurar diferentes puertos de servicio en diferentes grupos","CLUSTER_DIFF_ENVIRONMENT_VARIABLES_DESC":"Se pueden configurar diferentes entornos de contenedores en diferentes grupos","CONTAINER_IMAGE":"Container Image","ROUTE_ADD_METADATA_DESC":"Add metadata to the Route.","SELECT_INGRESSCLASSNAME":"Select IngressClassName","ACCESS_INFORMATION":"Acceso al servicio","VIRTUAL_IP_ADDRESS":"Virtual IP address","INTERNAL_DOMAIN_NAME_SCAP":"Método de acceso dentro del clúster (DNS)","NODE_PORT_SCAP":"Node port","SERVICE_TYPE_TCAP":"Tipo de servicio","SELECT_SERVICE_TYPE":"Select Service Type","ADD_PORT":"Agregar puerto","EMPTY_LABEL_DESC":"Please add a label.","SPECIFY_NODE":"Especificar nó","SPECIFY_NODE_DESC":"Especifique um nó que precisa ser associado ao serviço.","MAXIMUM_STICKINESS_DURATION_DESC":"Set a maximum stickiness duration. The value range is 0 to 86400 and the default value is 10800.","SERVICE_ADD_METADATA_DESC":"Add metadata to the Service.","STATEFULSET_EMPTY_DESC":"Please create a StatefulSet.","POD_SETTINGS":"Pod Settings","POD_REPLICAS":"Réplicas de pod","ONDELETE":"OnDelete","ONDELETE_DESC":"El controlador no actualizará automáticamente el Pod. Se actualizará y reemplazará las instancias del Pod cuando el Pod se elimine manualmente.","PARTITION_ORDINAL":"Ordinal for Dividing Pod Replicas","PARTITION_ORDINAL_DESC":"Set an ordinal to divide the Pod replicas into two groups. When the StatefulSet is updated, only Pod replicas with an ordinal greater than or equal to the value of this parameter are updated.","PVC_NAME_PREFIX":"PVC Name Prefix","PVC_NAME_PREFIX_DESC":"Prefix of persistent volume claim names. The prefix can contain only lowercase letters, numbers, and hyphens (-), and must start and end with a lowercase letter or number. The maximum length is 253 characters.","PVC_NAME_PREFIX_EMPTY":"Please enter the prefix of persistent volume claim names.","INVALID_PVC_NAME_PREFIX":"Invalid prefix. The prefix can contain only lowercase letters, numbers, and hyphens (-), and must start and end with a lowercase letter or number. The maximum length is 253 characters.","PVC_NAME_PREFIX_EXISTS":"The prefix already exists. Please enter another prefix.","ADD_PERSISTENT_VOLUME_CLAIM_TEMPLATE":"Add Persistent Volume Claim Template","ADD_PERSISTENT_VOLUME_CLAIM_TEMPLATE_DESC":"Add a persistent volume claim template to mount a persistent volume to each pod of the statefulset.","VOLUME_CAPACITY_TCAP":"Capacidad de volumen","MOUNT_PATH_TCAP":"Mount Path","VOLUME_TEMPLATES":"Plantillas de volumen","SERVICE_PORT":"Puerto de servicio","SERVICE_PORT_VALUE":"Puerto de servicio: {value}","VOLUME_TEMPLATE_SETTINGS":"Volume Template Settings","CLUSTER_VOLUME_DIFF_DESC":"You can specify different storage classes for different clusters.","CONFIGMAP_EMPTY_DESC":"Please create a configmap.","MULTI_CLUSTER_PROJECT_EMPTY_DESC":"Los proyectos se agruparán por sus recursos, que puedes ver y administrar por proyecto.","MULTI_CLUSTER_PROJECT_LOW":"Proyecto de clúster múltiple","MULTI_CLUSTER_PROJECT_SCAP":"Multi-cluster project","VOLUME_MONITORING_TIP":"The storage system needs to have real volume quota control capabilities to output real and accurate data. Storage systems built based on host path, local pv, and open source nfs server usually do not have this capability. Daha Fazla Bilgi Edinin","MOUNT_INFORMATION":"Información de montaje","VOLUME_ADD_METADATA_DESC":"Add metadata to the volume.","PROJECT_NAME":"Nombre del proyecto","NO_REQUEST_TCAP":"No Request","NO_LIMIT_TCAP":"No Limit","CPU_REQUEST_LOW":"CPU request","CPU_LIMIT_LOW":"CPU limit","CPU_REQUEST_CORE":"{value} Core","CPU_LIMIT_CORE":"{value} Core","MEMORY_REQUEST_MIB":"{value} Mi","MEMORY_LIMIT_MIB":"{value} Mi","DELETE_PROJECT":"Delete Project","CREATION_TIME":"Creation time","FOLD":"Plegar","UNFOLD":"Desplegar","PLATFORM":"Platform","CLUSTER_MANAGEMENT":"Cluster Management","CLUSTER_DESC":"Unified management of multiple clusters and their basic resources, components, and application resources.","ACCESS_CONTROL_DESC":"Gestión unificada de espacios de trabajo, cuentas y acceso a roles.","APP_STORE_MANAGEMENT_DESC":"Gestión unificada del ciclo de vida de aplicaciones cloud nativas, incluida su publicación, eliminación y revisión","PLATFORM_SETTINGS_DESC":"Configuración de plataforma personalizada, que incluye información básica y recopilador de registros","NOTIFICATION_MANAGEMENT":"Gestión de notificaciones","NOTIFICATION_CHANNELS":"Notification Channels","NOTIFICATION_CHANNELS_DESC":"Notify users through multiple channels when resource metrics meet conditions configured in rule groups.","MAIL_TITLE":"Email","MAIL_DESC":"Send notifications to email addresses.","INVALID_PORT_DESC":"Please enter a valid port number.","ENTER_PORT_NUMBER":"Please enter a port number.","ALERTING_NAME":"Nombre de la alerta","ALERTING_SEVERITY":"Gravedad de alerta","ADDRESS_EMPTY_DESC":"Please enter an address.","EMAIL_EMPTY_DESC":"Por favor introduce el correo electrónico","SERVER_SETTINGS":"Configuración del servidor","RECIPIENT_SETTINGS":"Configuración del receptor","FILTER_CONDITIONS":"Filter Conditions","CONTAINER":"Container","VALUES":"Values","CONDITION_OPERATOR":"Operador","NOTIFICATION_CONDITION_SETTING_TIP":"The Contain and Not contain operators require one or more values. You can press Enter to set multiple values.","NOTIFICATION_CONDITION_SETTINGS_DESC":"Set the system to send only alerts that meet the conditions.","CONTAIN":"Contain","NOT_CONTAIN":"Not contain","EXIST":"Exist","NOT_EXIST":"Not exist","PATTERN_TAG_INVALID_TIP":"Invalid label. The label can contain only uppercase and lowercase letters, numbers, hyphens (-), underscores (_), and dots (.), and must begin and end with an uppercase or lowercase letter or number.","PATTERN_TAG_VALUE_INVALID_TIP":"Invalid value. The value can only contain uppercase and lowercase letters, numbers, hyphens (-), underscores (_) and dots (.) and must begin and end with an uppercase or lowercase letter or number and be a maximum of 63 characters.","INVALID_NOTIFICATION_CONDITION":"Please enter a correct notification condition.","SEND_TEST_MESSAGE":"Enviar mensaje de prueba","SEND_TEST_MESSAGE_DESC":"Send a test message to verify that the notification channel is working properly.","SEND_TEST_MESSAGE_SUCCESS_DESC":"Verified successfully. A test message has been sent.","SMTP_SERVER_ADDRESS":"Dirección del servidor SMTP","USE_SSL_SECURE_CONNECTION":"Use SSL secure connection","SENDER_EMAIL":"Correo del remitente","INVALID_EMAIL":"Email inválido","INVALID_ADDRESS_DESC":"Please enter a valid address.","MAX_EAMIL_COUNT":"You can add a maximum of {count} emails.","SMTP_USER":"SMTP Username","SMTP_PASSWORD":"SMTP Password","ENTER_PASSWORD_TIP":"Please enter a password.","ENTER_RECIPIENT_EMAIL_DESC":"Please add at lease one email address.","INVALID_EMAIL_ADDRESS_DESC":"Incorrect email format.","SMTP_USER_EMPTY_DESC":"Please enter an SMTP username.","ADDED_SUCCESS_DESC":"Added successfully.","POD":"Pod","UPDATE_SUCCESSFUL":"Updated successfully.","FEISHU":"Feishu","FEISHU_TITLE":"Feishu","FEISHU_DESC":"Send notifications to Feishu users.","PLEASE_ENTER_APP_ID":"Please enter an app ID.","USER_ID":"User ID","DEPARTMENT_ID":"Department ID","FEISHU_RECEIPIENT_SETTINGS_DESC":"To receive notifications, please set at least one user ID or department ID.","FEISHU_SECRET":"Secreto","DINGTALK_TITLE":"DingTalk","DINGTALK":"DingTalk","DINGTALK_DESC":"Send notifications to DingTalk users.","PLEASE_ENTER_APP_KEY":"Please enter an app key.","PLEASE_ENTER_APP_SECRET":"Please enter an app secret.","PLEASE_ENTER_CHAT_ID":"Please enter a chat ID.","PLEASE_ENTER_WEBHOOK_URL":"Please enter a webhook URL.","CHAT_SETTINGS":"Chat Settings","CHAT_ID_TIP":"Contact the DingTalk administrator to obtain the chat ID.","DINGTALK_SETTING_TIP":"Please set up a chat or group chatbot.","ENTER_CHAT_ID_DESC":"Please enter a chat ID.","MAX_CID_COUNT":"You can add a maximum of {count} chat IDs.","CHAT_ID_EXISTS":"The chat ID already exists. Please add another chat ID.","CHATBOT_SETTINGS":"Chatbot Settings","KEYWORDS_LIST":"Added Keywords","DINGTALK_CHATBOT_SECURITY_TIP":"Please enter a secret or keyword.","ENTER_KEYWORD_DESC":"Please enter a keyword.","MAX_KEYWORD_COUNT":"You can add a maximum of {count} keywords.","KEYWORD_EXISTS":"The keyword already exists. Please add another keyword.","EMPTY_KEYWORDS_DESC":"No keyword is added.","WECOM":"WeCom","WECOM_TITLE":"WeCom","WECOM_DESC":"Send notifications to WeCom users.","RECIPIENT_SETTINGS_TIP":"Enter at least one user ID, department ID, or tag ID.","ENTER_WECOM_CORP_ID_DESC":"Please enter a corp ID.","ENTER_WECOM_AGENT_ID_DESC":"Please enter an app agent ID.","ENTER_WECOM_SECRET_DESC":"Please enter an app secret.","TOUSER_LIST":"Added User IDs","EMPTY_TOUSER_DESC":"No user ID is added.","ENTER_TOUSER_TIP":"Please enter a user ID.","TOUSER_EXISTS":"The user ID already exists. Please enter another user ID.","MAX_TOUSER_COUNT":"You can add a maximum of {count} user IDs.","TOPARTY_LIST":"Added Department IDs","EMPTY_TOPARTY_DESC":"No department ID is added.","ENTER_TOPARTY_TIP":"Please enter a department ID.","TOPARTY_EXISTS":"The department ID already exists. Please enter another department ID.","MAX_TOPARTY_COUNT":"You can add a maximum of {count} department IDs.","TOTAG_LIST":"Added Tag IDs","EMPTY_TOTAG_DESC":"No tag ID is added.","ENTER_TOTAG_TIP":"Please enter a tag ID.","TOTAG_EXISTS":"The tag ID already exists. Please enter another tag ID.","MAX_TOTAG_COUNT":"You can add a maximum of {count} tag IDs.","ATUSERS_LIST":"Added User ID","EMPTY_ATUSERS_DESC":"No user ID is added.","WHIZARD_NOTIFICATION.PHONE_NUMBER":"手機號","ATMOBILES_LIST":"Mobiles","EMPTY_ATMOBILES_DESC":"No Mobile is added.","SLACK":"Slack","SLACK_TITLE":"Slack","SLACK_DESC":"Send notifications to Slack users.","SLACK_TOKEN":"Slack Token","SLACK_TOKEN_DESC":"Please enter a Slack token.","SLACK_CHANNEL":"Slack Channel","CHANNEL_SETTINGS":"Slack Channel Settings","ADDED_CHANNELS":"Added Slack Channels","EMPTY_CHANNEL_DESC":"No Slack channel is added.","ADD_CHANNEL_TIP":"Please add a Slack channel.","CHANNEL_EXISTS":"The Slack channel already exists. Please add another Slack channel.","MAX_CHANNEL_COUNT":"You can add a maximum of {count} Slack channels.","WEBHOOK":"Webhook","WEBHOOK_TITLE":"Webhook","WEBHOOK_DESC":"Send notifications to a webhook.","WEBHOOK_URL_DESC":"Please enter a webhook URL.","AUTHENTICATION_TYPE":"Authentication Type","AUTHENTICATION_TYPE_DESC":"Please select an authentication type.","SKIP_TLS_VERFICATION":"Skip TLS verification (insecure)","BASIC_AUTH":"Basic authentication","NO_AUTH":"No authentication","BEARER_TOKEN":"Bearer token","TOKEN":"Token","WEBHOOK_USERNAME_EMPTY_DESC":"Por favor introduce el nombre de usuario","WEBHOOK_PASSWORD_EMPTY_DESC":"Please enter a password.","WEBHOOK_TOKEN_EMPTY_DESC":"Please enter a token.","PLATFORM_INFO_DESC":"Overview of the platform information. You can view and customize the platform information.","HOW_TO_MODIFY_PLATFORM_INFO":"¿Cómo modificar la información de la plataforma?","PLATFORM_INFORMATION":"Información de la plataforma","PLATFORM_DESCRIPTION":"Descripción de la plataforma","PLATFORM_TITLE":"Título de plataforma","PLATFORM_ADDRESS":"Platform address","PLATFORM_SETTINGS":"Configuración de la plataforma","ADD_SERVICE":"Agregar servicio","ADD_ROUTE":"Add Route","SERVICE_ADDED_SUCCESSFULLY":"The service was added successfully.","WORKLOAD_TYPE_DEPLOYMENTS":"Deployment","WORKLOAD_TYPE_DAEMONSETS":"DaemonSet","WORKLOAD_TYPE_STATEFULSETS":"StatefulSet","TRAFFIC_MONITORING":"Monitor de tráfico","TRAFFIC_MONITORING_UNAVAILABLE_DESC":"La aplicación no ha recibido una solicitud durante mucho tiempo, visita la aplicación y prueba el gestor de tráfico","TRAFFIC_ENTRY":"Entrada de tráfico","NO_DATA":"Sin datos","REFRESH":"Refrescar","SUCCESS_RATE":"Success rate","TRAFFIC_RPS":"Traffic (RPS)","BANDWIDTH":"Bandwidth","HTTP_INBOUND_TRAFFIC":"HTTP Inbound Traffic","HTTP_OUTBOUND_TRAFFIC":"HTTP Outbound Traffic","TRAFFIC_POLICIES":"Traffic Policies","LOAD_BALANCING":"Load Balancing","LOAD_BALANCING_ALGORITHM":"Load Balancing Algorithm","LB_UNSPECIFIED":"Unspecified","LB_LEAST_REQUEST":"Least Request","LB_PASSTHROUGH":"Pass Through","LB_ROUND_ROBIN":"Round robin","LB_LEAST_CONN":"Least connection","LB_RANDOM":"Random","LB_ALG_DESC":"Round robin: Distributes client requests to backends in rotation.
    Least connection: Randomly selects two healthy backends and sends client requests to the one with fewer connections.
    Random: Sends client requests to a backend randomly selected from all healthy backends.","HASH_BASED_ON_HTTP_HEADER":"Hash based on HTTP header","HASH_BASED_ON_HTTP_COOKIE":"Hash based on HTTP cookie","HASH_BASED_ON_SOURCE_IP_ADDRESS":"Hash based on source IP address","HTTP_HEADER":"HTTP Header","HTTP_COOKIE":"HTTP Cookie","CONNECTION_POOL":"Connection Pool","CONNECTION_POOL_TIP":"Creates a fixed number of connection objects for the application and stores them in a connection pool for reuse. A connection object is retrieved from the connection pool for each request and returned to the pool after use.","MAXIMUM_CONNECTIONS":"Maximum Connections","MAXIMUM_CONNECTIONS_DESC":"Maximum of number of HTTP1 or TCP connections to a destination backend.","MAXIMUM_REQUESTS_PER_CONNECTION":"Maximum Requests per Connection","MAXIMUM_REQUESTS_PER_CONNECTION_DESC":"Maximum number of requests per connection to a backend.","TRAFFIC_MONITORING_MAXIMUM_RETRIES":"Límite de retroceso","TRAFFIC_MONITORING_MAXIMUM_RETRIES_DESC":"Maximum number of retries for requests.","CONNECTION_TIMEOUT":"Connection Timeout","CONNECTION_TIMEOUT_DESC":"TCP connection timeout period.","MAXIMUM_REQUESTS":"Maximum Requests","MAXIMUM_PENDING_REQUESTS":"Maximum Pending Requests","CIRCUIT_BREAKER":"Circuit Breaker","CIRCUIT_BREAKER_DESC":"If a service cannot be accessed and the specified criteria are met, the ciruit breaker marks the service as unavailable and returns error response to clients directly for a specified period of time.","CONSECUTIVE_FIVEXX_ERRORS":"Consecutive 5XX Errors","CONSECUTIVE_FIVEXX_ERRORS_DESC":"Number of 5XX errors before a backend is ejected from the connection pool.","INSPECTION_INTERVAL_S":"Inspection Interval (s)","INSPECTION_INTERVAL_S_DESC":"Interval between two backend inspections.","MAXIUM_EJECTION_RATIO":"Maximum Ejection Ratio (%)","MAXIUM_EJECTION_RATIO_DESC":"Maximum percentage of backends that can be ejected.","BASE_EJECTION_TIME_S":"Base Ejection Time (s)","BASE_EJECTION_TIME_S_DESC":"Maximum ejection duration.","UPDATED_AT_VALUE_SCAP":"Updated at {value}","METHOD":"Method","TRAFFIC_MANAGEMENT_UNAVAILABLE":"Traffic Management Unavailable","APPLICATION_GOVERNANCE_NOT_ENABLED":"Please enable Application Governance.","CREATE_GRAYSCALE_RELEASE_TASK":"Create Grayscale Release Task","GRAYSCALE_RELEASE_DESC":"Grayscale release represents an important method of application iteration in the production environment. You can choose different release methods for the smooth transition as you upgrade your applications to a new version.","NO_GRAYSCALE_RELEASE_TASK_FOUND":"No Grayscale Release Task Found","NO_GRAYSCALE_RELEASE_TASK_FOUND_DESC":"Please create a grayscale release job.","TYPE_SERVICE_DEPLOYMENT":"Type: stateless service (deployment)","TYPE_SERVICE_STATEFULSET":"Type: stateful service (statefulset)","TRACING":"Tracing","TRACING_NO_DATA_DESC":"Por favor prueba otras condiciones en la consulta","NUM_SPAN_SI":"{num} span","NUM_SPAN_PL":"{num} spans","NUM_ERROR_SI":"{num} error","NUM_ERROR_PL":"{num} errors","LAST_NUM_RECORDS":"Últimos {num} registros","PROCESS":"Process","SERVICES_AND_OPERATIONS":"Services & Operations","TRACING_UNAVAILABLE":"Tracing Unavailable","CALLED_SERVICES":"Called Services","CALLED_DEPTH":"Call Depth","COMPOSED_APP_PL":"Aplicación por composición","NO_COMPOSED_APP_FOUND":"No Composed App Found","COMPOSED_APP_EMPTY_DESC":"Puedes publicar servicios para crear aplicaciones a través de la orquestación de recursos (compatible con la gestión de aplicación).","STATEFUL_SERVICE":"Stateful Service","STATELESS_SERVICE":"Stateless Service","CREATE_COMPOSED_APP":"Crear aplicación por composición","SAVE_FORM_TIP":"Por favor guarda el formulario actual primero","YAML_FILE":"YAML File","CREATE_BY_YAML_DESC":"Customize the settings in the YAML file.","APPLICATION_GOVERNANCE":"Gestión de aplicación","VERSION_DESC":"Para gestión, ayudándote a distinguir entre componentes. Solo puede contener letras minúsculas y números. La longitud máxima de caracteres se establece en 16.","APPLICATION_GOVERNANCE_DESC":"Enable Application Governace to use the Traffic Monitoring, Grayscale Release, and Tracing features for the app.","APP_BASIC_INFORMATION_DESC":"Información básica de la aplicación (como la descripción)","APP_SELECT_SERVICE_TYPE_DESC":"Create a stateless or stateful Service.","STATEFUL_SERVICE_DESC":"Los servicios con estado o stateful se usan para administrar aplicaciones con estado, asegurando un despliegue y escala ordenada y elegante. También proporcionan almacenamiento persistente estable e identificadores de red.","STATELESS_SERVICE_DESC":"El servicio más utilizado en servicios de contenedores. Define la plantilla del Pod para controlar el estado del Pod, incluidas las actualizaciones continuas y los retrocesos.","APPLICATION_SERVICE_DESC":"Puedes configurar diferentes componentes de servicio basándote en el tipo de servicio dentro de una aplicación. Tanto los servicios con estado como los sin estado están soportados.","APP_CREATE_SERVICE_DESC":"Create a service for the app.","ROUTE_SETTINGS":"Route Settings","ROUTING_RULES":"Reglas de ruta","ROUTE_SETTINGS_DESC":"Puedes definir las reglas de acceso a internet para la aplicación (Ingress).","ADD_ROUTE_SUCCESS":"The route was added successfully.","CURRENT_APP_SETTINGS_READONLY":"Current App Config","TARGET_APP_SETTINGS":"Target App Settings","TARGET_APP_VERSION":"Target App Version","CURRENT_APP_VERSION":"Versión actual de la aplicación","EDIT_APP_SETTINGS":"Edit App Settings","UPDATED_TIME":"Updated at {value}","APP_TEMPLATE":"App Template","NO_APP_DESC_FOUND":"La aplicación no tiene documentación.","TEMPLATE_BASED_APP_PL":"Template-Based Apps","APPLICATIONS_DESC":"Una aplicación proporciona a los usuarios funciones comerciales integrales en un solo paquete. Las plantillas de aplicación en KubeSphere se basan en la especificación de empaquetado de Helm. Se entregan a través de un repositorio Helm público o privado unificado. Una aplicación está compuesta por uno o más objetos de Kubernetes, que incluyen workload, servicios e ingress.","APP_PL":"Aplicaciones","APP_TYPES_Q":"tipo de aplicacion","APP_TYPES_A":"KubeSphere admite implementaciones de aplicaciones (basadas en Helm) desde App Store, así como Application CRD.","HOW_TO_USE_APP_GOVERN_Q":"¿Cómo usar la Gestión de aplicaciones?","HOW_TO_USE_APP_GOVERN_A":"Cree una aplicación por composición y habilite la gestión de servicios para cada servicio antes de utilizar la gestión de aplicaciones.","DEPLOY_SAMPLE_APP":"Implementar aplicación de demo","NO_TEMPLATE_BASED_APP_FOUND":"No Template-Based App Found","TEMPLATE_BASED_APP_EMPTY_DESC":"Please create an app from the KubeSphere App Store or an app template.","APP":"App","VERSION":"Versión","CREATING":"Creating","UPGRADING":"Created","DELETING":"Eliminando","CREATE_APP":"Desplegar nueva aplicación","CREATE_APP_DESC":"La liviana, portátil y autónoma tecnología de empaquetado de software permite que las aplicaciones se ejecuten en casi cualquier lugar de la misma manera.","FROM_APP_STORE":"Desde la tienda de aplicaciones","FROM_APP_TEMPLATE":"Desde plantillas de aplicaciones","FROM_APP_STORE_DESC":"Desde la tienda de aplicaciones oficial de KubeSphere con aplicaciones de alta calidad y despliegues fáciles.","SELECT_APP_REPOSITORY":"Select app repository","CURRENT_WORKSPACE":"Del espacio de trabajo","FROM_APP_TEMPLATE_DESC":"Desde las plantillas de aplicación del espacio de trabajo y las plantillas de aplicaciones Helm de terceros del repositorio de aplicaciones.","APP_TEMPLATES_MODAL_DESC":"La plantilla de la aplicación proviene del espacio de trabajo y las plantillas de aplicación de Helm de terceros. Admite el despliegue con un click y se puede visualizar en KubeSphere para mostrar y proporcionar despliegues y funciones de administración.","APP_LOW":"app","CRONJOBS":"Cronjobs","CRONJOB_DESC":"CronJobs manages Jobs on a time-based schedule and can be used to perform periodic or recurring tasks.","CRONJOB_PAUSED":"Pausado","CRONJOB_RUNNING":"En ejecución","CRONJOB_FAILED":"Failed","SCHEDULE":"Schedule","ENTER_SCHEDULE_TIP":"Please select a schedule.","CRONJOB_CRON_DESC":"Set a schedule for the CronJob. KubeSphere uses UTC by default and you need to adjust the schedule according to your time zone.","MAXIMUM_DELAY":"Maximum Start Delay (s)","SUCCESSFUL_JOBS_RETAINED":"Success Records","FAILED_JOBS_RETAINED":"Failed Jobs Record","CONCURRENCY_POLICY":"Concurrency Policy","MAXIMUM_DELAY_DESC":"Deadline for starting the Job if the scheduled run is missed for any reason.","CONCURRENCY_POLICY_DESC":"Select a concurrency policy of a Job created by the CronJob.","FAILED_JOBS_RETAINED_DESC":"Specify the number of failed Jobs to be retained.","SUCCESSFUL_JOBS_RETAINED_DESC":"Specify the number of successful Jobs to be retained.","RUN_JOBS_CONCURRENTLY":"Run Jobs concurrently","SKIP_NEW_JOB":"Skip new Job","SKIP_OLD_JOB":"Skip old Job","STRATEGY_SETTINGS":"Strategy Settings","MAXIMUM_RETRIES":"Límite de retroceso","MAXIMUM_RETRIES_DESC":"Maximum number of retries before the Job is marked as failed. The default value is 6.","PARALLEL_PODS_DESC":"Number of Pods that run concurrently.","COMPLETE_PODS_DESC":"Number of Pods that complete successfully required for the Job to be marked as complete.","MAXIMUM_DURATION_DESC":"Maximum duration of the Job. The Job is terminated when it reaches the specified deadline.","PARALLEL_PODS":"Paralelismo","COMPLETE_PODS":"Terminaciones","MAXIMUM_DURATION":"Active Deadline (s)","RESTART_POLICY":"Política de reinicio","RESTART_POLICY_DESC":"Set the Pod restart policy.","CRONJOB_PL":"CronJobs","CRONJOB_LOW":"CronJob","REVISION_RECORDS_DESC":"Después de cambiar la plantilla de recursos de la carga de trabajo, se generará un nuevo registro y los pods se reprogramarán para la actualización de la versión. Las últimas 10 versiones se guardarán de forma predeterminada. Puede implementar una redistribución basada en el registro de cambios.","ENVIRONMENT_VARIABLE":"Variables de entorno","CONTAINER_SETTINGS_DESC":"Establece el nombre del contenedor y los recursos de computación.","PORT_SETTINGS_DESC":"Establece la política de acceso para el contenedor.","HEALTH_CHECKER_DESC":"La salud del contenedor se verificará periódicamente de acuerdo con las necesidades del usuario.","STARTUP_COMMAND":"Comando de inicio","STARTUP_COMMAND_DESC":"Por defecto, el contenedor ejecuta el comando de imagen predeterminado. Puedes cambiar el comando del contenedor desde aquí.","CONTAINER_COMMAND_DESC":"El comando de inicio del contenedor. Por defecto, se utilizará el comando de inicio para empaquetar. Utiliza comas para separar múltiples comandos.","CONTAINER_ARGUMENT_DESC":"Los parámetros del comando de inicio del contenedor. Utiliza comas para separar varios.","CONTAINER_ENVIRONMENT_DESC":"Añade la variable de entorno del contenedor.","PROBE_COMMAND_DESC":"Utiliza comas para separar múltiples comandos.","IGNORE_CERT_WARN_DESC":"Ignoring the verification certificate may cause the account password to be disclosed. ","CERT_ERROR":"A certificate error was found, do you want to ignore the certificate verification","ROLL_BACK":"Revisión de Rollback","CURRENT_REVISION_RECORD":"Revisión actual","TARGET_REVISION_EMPTY_DESC":"Por favor selecciona revisión de reversión","TARGET_REVISION_RECORD":"Revisiones de Rollback","CONFIGURE_AUTOSCALING_DESC":"Escala automática de las réplicas automáticamente de acuerdo con el uso de CPU y memoria. Si se especifican tanto la CPU como la memoria, las réplicas se agregan o eliminan después de que se cumpla alguna de las condiciones.","EDIT_AUTOSCALING":"Edit Autoscaling","TARGET_CPU_USAGE_UNIT":"Utilización de CPU","AUTOSCALING":"Autoescalado horizontal de pods","RESOURCE_NAME":"Nombre del recurso","TARGET_CPU_USAGE_DESC":"Las réplicas aumentarán cuando el uso de la CPU exceda este valor objetivo, por el contrario, disminuirá.","TARGET_MEMORY_USAGE_DESC":"Las réplicas aumentarán cuando el uso de la memoria exceda este valor objetivo, por el contrario, disminuirá.","MINIMUM_REPLICAS_DESC":"Valor mínimo de la cantidad de réplicas","MAXIMUM_REPLICAS_DESC":"Valor máximo del número de réplicas.","TARGET_MEMORY_USAGE_UNIT":"Uso de destino de memoria","MINIMUM_REPLICAS":"Número mínimo de réplicas","MAXIMUM_REPLICAS":"Número máximo de réplicas","EDIT_SETTINGS":"Editar plantilla de configuración","FROM_CONFIGMAP":"From configmap","FROM_SECRET":"From secret","BATCH_REFERENCE":"Batch Reference","BATCH_REFERENCE_DESC":"Reference multiple keys in a configmap or secret.","DESELECT_ALL":"Deselect all","KEY_PL":"Keys","RULE_NOT_COMPLETE":"Please set a complete rule.","REVISION_RECORDS":"Registros de revisión","CONFIG_FILE":"Fichero de configuración","COMPARE_WITH":"Comparación con la versión anterior {versión}","REPLICAS_DESIRED":"Esperadas","REPLICAS_CURRENT":"Réplicas actuales","ADJUST_REPLICAS":"¿Tiene efecto de inmediato?","REPLICAS_SCALE_NOTIFY_CONTENT":"Va a cambiar las réplicas de su carga de trabajo a {num}. Puede continuar cambiando el número de réplicas o puede hacer que el cambio surta efecto de inmediato.","REPLICAS_SCALE_NOTIFY_CONFIRM":"Aplicar cambios ({segundos} s)","REPLICAS_SCALE_NOTIFY_CANCEL":"Descartar los cambios","TARGET_MEMORY_USAGE":"Uso objetivo","TARGET_CPU_USAGE":"Utilización objetivo","TARGET_CURRENT":"{target} (Current: {current})","NOT_ENABLE":"{feature} no está habilitado","CONTAINER_LOG_NOT_ENABLED":"Container Log is not enabled.","BUILD_LOG":"Build Log","TASK":"Task","IN_PROGRESS":"in progress","IMAGE_BUILDING":"Image Building","HAS_FAILED":"has failed","VIEW_ALL_REPLICAS":"Ver todas las réplicas","SHOW_SELECTED_ONLY":"Mostrar solo seleccionados","MONITORING_SELECT_LIMIT_MSG":"Puedes seleccionar hasta diez recursos","MONITORING_ALERT_DESC":"El gráfico de monitoreo actual muestra cinco réplicas como máximo. Puede hacer clic en \"Ver todas las réplicas\" para ver más gráficos de monitoreo si el número de réplicas supera las cinco.","CURRENT_VALUE":"Current: {value}","ENVIRONMENT_VARIABLE_PL":"Variables de entorno","EVENT_AGE":"Occurred","EVENT_AGE_DATA":"{lastTime}
    ({count} times over {duration})","EVENT_AGE_DATA_TWICE":"{lastTime}
    (twice over {duration})","SOURCE":"Source","HPA_SET_TIP":"El Autoscaling Horizontal de Pods ha sido configurado","WORKLOAD_EMPTY_DESC":"La carga de trabajo suele ser el operador real para acceder a los servicios y también es el operador real para las aplicaciones del sistema, como la recopilación y supervisión de registros de nodos. Workload es también un modelo abstracto para un grupo de Pods.","INVALID_IMAGE":"Imagen inválida.","INVALID_NAME_DESC":"Invalid name. The name can contain only lowercase letters, numbers, and hyphens (-), and must start and end with a lowercase letter or number. The maximum length is 63 characters.","NO_IMAGE_FOUND":"No encontré esta imagen","CONTAINER_EMPTY_DESC":"Please add at least one worker container.","RESOURC_QUOTAS_UNSET":"Resource Quotas Unset","INSUFFICENT_RESOURCES":"Insufficent Resources","REMAINING_QUOTAS":"Remaining Quotas","ENVIRONMENT_INVALID_TIP":"The key of an environment variable can contain only letters, numbers, underscores (_), hyphens (-), and periods (.), and must not start with a number.","ENVIRONMENT_CANNOT_BE_EMPTY":"Please set a key for the environment variable.","WORKLOAD_PORT_NAME_DESC":"The port name can contain only lowercase letters, numbers and hyphens (-), and must start with a lowercase letter and end with a lowercase letter or number. The maximum length is 15 characters.","MAX_EXTRA_PODS_DESC":"El número máximo de pods permitido durante una actualización continua","MAX_EXTRA_PODS":"El número máximo disponible de pods","AVAILABLE":"En desuso","IN_USER":"En uso","ACCESS_MODE_SCAP":"Modo de acceso admitido","PVC_OR_TEMPLATE_EMPTY":"You have enabled Collect Logs on Volumes. Please add at least one persistent volume, temperary volume, or persistent volume claim template and specify the path of container logs.","PVC_EMPTY":"You have enabled Collect Logs on Volumes. Please add at least one persistent volume or temperary volume and specify the path of container logs.","PROJECT_COLLECT_SAVED_DISABLED_DESC":"Please contact the project administrator to enable disk log collection in Project Settings > Advanced Settings.","COLLECT_LOGS_ON_VOLUMES_DESC":"After you add a volume (ReadAndWrite mode), you can collect logs inside the volume. When you enable disk log collection, the Filebeat image will be used as a sidecar pattern and injected into the Pod to collect logs.","CONTAINER_LOG_PATH":"ruta relativa del registro de contenedor","CONTAINER_LOG_PATH_TIP":"La ruta relativa del registro del contenedor es la ruta desde la ruta de montaje del módulo, que se puede proporcionar en modo global. Cuando hay varios grupos, sepárelos por comas. Por ejemplo, cuando la ruta de montaje del pod es / data, la ruta relativa del registro de pod se configura como log / *. Log, lo que significa que todos los archivos de sufijos .log en el directorio / data / log coinciden. Si necesita hacer coincidir todos los archivos de sufijos .log en el directorio / data / log y sus subdirectorios, puede configurar la ruta relativa del registro de pod a log / ** / *. Log.","RECREATE_CONFIRM_DESC":"Está a punto de volver a implementar la carga de trabajo {resource} ({type}), el pod se volverá a implementar de acuerdo con la estrategia de actualización y su negocio puede verse interrumpido temporalmente.","NO_WORKLOAD_RELATED_RESOURCE_DESC":"No resource related to the workload is found.","SELECT_ALL":"Seleccionar todo","DELETE_WORKLOAD_DESC_SI":"You are about to delete the workload {resource}.
    Do you want to also delete the resource related to the workload?","DELETE_WORKLOAD_DESC_PL":"You are about to delete the workloads {resource}.
    Do you want to also delete the resources related to the workloads?","DELETE_WORKLOAD":"Delete Workload","DELETE_MULTIPLE_WORKLOADS":"Delete Multiple Workloads","DELETE_APP_RESOURCE_TIP":"The resource is managed by {app}, which may affect the normal use of this app if the resource is deleted. Please enter the {type} name {resource} to make sure you understand the risks associated with the operation.","STOP_APP_RESOURCE_TIP":"The resource is managed by {app}, which may affect the normal use of this app if the resource is stopped. Please enter the {type} name {resource} to make sure you understand the risks associated with the operation.","MORE":"Más","VIEW_YAML":"Ver YAML","JOB_PL":"Jobs","JOB_DESC":"Jobs are used to perform short-lived, one-off tasks. A Job creates one or more Pods and ensures that a specific number of Pods successfully terminate.","JOB_EMPTY_DESC":"Jobs are used to perform short-lived, one-off tasks. A Job creates one or more Pods and ensures that a specific number of Pods successfully terminate.","JOB_COMPLETED":"Completed","JOB_FAILED":"Failed","JOB_RUNNING":"En ejecución","LAST_RUN_TIME":"Last Run Time","RESTART_POLICY_NEVER_DESC":"Re-create pod","RESTART_POLICY_ONFAILURE_DESC":"On failure (restart the container when a Pod fails)","RERUN":"Repetición","JOB":"Trabajo","JOB_LOW":"Job","QOS_CLASS":"QoS Class","NODE_NAME":"Nombre del nodo","POD_IP_ADDRESS":"IP del POD","JOB_UNFINISHED":"Unfinished","TERMINATED":"Terminated","SCHEDULED_TO_NODE":"Scheduled to {value}","SCHEDULING_NOT_SUCCESSFUL":"Scheduling Not Successful","SCHEDULING_INFORMATION":"Información de programación","SCHEDULING_RESULT":"Información de programación de nodos","POD_SCHEDULING_METHOD":"¿Cómo se asignan los pods a los nodos?","POD_ASSIGNED_DESC":"El valor de solicitud (es decir, Solicitud) establecido por el pod en el grupo de pod se utiliza como base para determinar la asignación de recursos. Solo cuando la cantidad que se puede asignar en el nodo ≥ el valor requerido del pod, se puede asignar el pod a este nodo.","STATUS_INFORMATION":"Condiciones","WORKLOAD_CONDITION_AVAILABLE":"Disponible","WORKLOAD_CONDITION_PROGRESSING":"Progresando","NOT_SUCCESSFUL":"Not successful","CURRENT_STATUS":"Estado actual (fase)","POD_CONDITION_INITIALIZED":"Inicializado","POD_CONDITION_INITIALIZED_DESC":"Todos los contenedores init se han iniciado con éxito.","POD_CONDITION_READY":"Listo","POD_CONDITION_READY_DESC":"El pod ya se está ejecutando y se puede acceder a través del servicio.","POD_CONDITION_CONTAINERSREADY":"Contenedores Listo","POD_CONDITION_CONTAINERSREADY_DESC":"Los contenedores en la cápsula están listos.","POD_CONDITION_PODSCHEDULED":"Pod programado","POD_CONDITION_PODSCHEDULED_DESC":"El pod se ha asignado correctamente a un nodo.","POD_DESC":"Un Pod es la unidad de ejecución básica de una aplicación Kubernetes, que representa la unidad más pequeña y más simple en el modelo de objetos Kubernetes que crea o implementa.","POD_EMPTY_DESC":"Un Pod es la unidad de ejecución básica de una aplicación Kubernetes, que representa la unidad más pequeña y más simple en el modelo de objetos Kubernetes que crea o implementa.","DOMAIN_NAME_VALUE":"Domain Name: {value}","PATH_VALUE":"Ruta: {value}","RULES":"Reglas","ROUTE_PATH_VALUE":"Path: {value}","ROUTE_SERVICE_VALUE":"Servicio: {value}","ROUTE_PORT_VALUE":"Port: {value}","SERVICE_COLON":"Service: ","ACCESS_SERVICE":"Access Service","UNABLE_TO_ACCESS":"Unable to access service","UNABLE_TO_ACCESS_TIP":"Make sure that domain name resolution policies have been configured in your DNS server or the hosts file of your client machine.","CERTIFICATE_VALUE":"Certificate: {value}","PATH_EXIST":"PATH is duplicated, please re-enter。","ENDPOINT":"Endpoint","SESSION_AFFINITY":"Affinity de sesión","EDIT_EXTERNAL_ACCESS":"Editar acceso a Internet","EDIT_MONITORING_EXPORTER":"Edit Monitoring Exporter","EDIT_SERVICE":"Servicio de edición","ACCESS_NONE_TIP":"Internet access is not supported. The Service can be accessed only within the cluster.","EXTERNAL_SERVICE":"Servicio externo","COLLECTION_INTERVAL_MIN":"Collection Interval (min)","COLLECTION_INTERVAL_MIN_DESC":"Interval in minutes between two metric collection operations. The default value is 1.","COLLECTION_TIMEOUT_DESC":"Timeout interval in seconds of each collection operation. The default value is 10.","SELECT_AUTHENTICATION_METHOD":"Select Authentication Method","SELECT_AUTHENTICATION_METHOD_DESC":"Select the authentication method used during metric collection.","NO_AUTHENTICATION_TCAP":"No Authentication","NO_AUTHENTICATION_TIP":"Authentication is not used during metric collection.","CREATE_A_NEW_SECRET":"Create a new Secret","REFRESH_SECRETS":"refresh Secrets.","CERTIFICATE_AUTHORITY":"Certificate Authority","SERVER_NAME":"Server Name","TLS_SETTINGS_TCAP":"TLS Settings","BEARER_TOKEN_TCAP":"Bearer Token","BASIC_AUTHENTICATION_TCAP":"Basic Authentication","EXTERNAL_IP_ADDRESS":"External IP Address","MONITORING_EXPORTER":"Monitoring Exporter","MONITORING_EXPORTER_VALUE":"Monitoring exporter: {value}","PORT_PL":"Puertos","SERVICE_NODE_PORT_DESC":"If your current network is on the same network as the cluster node, you can access it through : or through :.","IMAGE_BUILDING_FAILED":"Image building failed","IMAGE_BUILDING_SUCCESSFUL":"Image building successful","BUILDING_IMAGE":"Building image","SERVICE_MONITORING_EXPORTER":"Service Monitoring Exporter","EXPORTER_SERVICE_PORTS":"Exporter Service Ports","SCRAPE_INTERVAL_MIN":"Scrape Interval (Min)","SERVICE_TYPES_Q":"Tipos de servicio","SERVICE_TYPES_A":"El servicio se divide en un servicio sin estado (Servicio virtual + Depolyment) y un servicio con estado (Servicio sin cabeza + Statefulset). En un servicio sin estado, las réplicas pueden compartir un volumen, y un servicio con estado debe tener su propio volumen independiente.","SCENARIOS_FOR_SERVICES_Q":"¿Cuáles son los escenarios de aplicación para servicios sin estado y servicios con estado?","SCENARIOS_FOR_SERVICES_A":"Los servicios sin estado son útiles para escenarios en los que los datos persistentes no se almacenan localmente y varias instancias responden a solicitudes uniformes (Nginx, Tomcat, etc.). Los servicios con estado son útiles cuando se trata de almacenamiento de datos, subprocesos múltiples o colas (base de datos MySQL, Kafka, Zookeeper, etc.).","SERVICE_TYPE":"Tipo de servicio","SERVICE_LIST":"Lista","SERVICE_TYPE_STATEFULSERVICE":"Stateful Service","SERVICE_TYPE_STATELESSSERVICE":"Stateless Service","SERVICE_TYPE_EXTERNALSERVICE":"Servicio externo","HEADLESS":"Headless","EXTERNALNAME":"ExternalName","CREATE_SERVICE_DESC":"Select a service creation method.","SELECT_SERVICE_TYPE_DESC":"Create a stateless or stateful service, or map a service to an external Service.","SERVICE_FROM_CODE":"Cree un nuevo servicio desde el repositorio de código fuente","SERVICE_FROM_ARTIFACT":"Construye un nuevo servicio a través del artefacto","SERVICE_FROM_CODE_DESC":"Puedes construir su código existente en una imagen e implementarlo a través de Source to Image.","SERVICE_FROM_ARTIFACT_DESC":"Puedes construir un artefacto existente en una nueva imagen y completar despliegue.","CUSTOMIZE_SERVICE":"Customize Service","CUSTOMIZE_SERVICE_DESC":"Puedes crear un servicio ya sea especificando una carga de trabajo o editando la configuración (Yaml).","PORT_INPUT_DESC":"The port name already exists. Please enter another name.","PORT_NAME_DESC":"The port name can contain only lowercase letters, numbers, and hyphens (-) and must begin and end with a lowercase letter or number. The maximum length is 63 characters.","CREATE_EXTERNAL_SERVICE_DESC":"Asigne el servicio al contenido del campo externalName devolviendo un registro CNAME con su valor.","CREATE_EXTERNAL_SERVICE":"Create External Service","EXTERNAL_SERVICE_ADDRESS_EMPTY_DESC":"Please enter an ExternalName.","EXTERNAL_SERVICE_ADDRESS":"External Service Address","EXTERNAL_SERVICE_ADDRESS_DESC":"Enter the domain name of an external Service.","JAVA":"Java","NODEJS":"Node.js","PYTHON":"Python","LANGUAGE_TYPE_VALUE":"Tipo de idioma: {value}","CONTAINER_SETTINGS":"Configuración del contenedor","ARTIFACT_TYPE_VALUE":"Artifact Type: {value}","BINARY":"Binary","SPECIFY_WORKLOAD_TO_CREATE_SERVICE":"Specify Workload to Create Service","EDIT_YAML_TO_CREATE_SERVICE":"Edit YAML to Create Service","SPECIFY_WORKLOAD_DESC":"Crea un servicio con Pods existentes.","NO_RELATED_RESOURCE_FOUND":"No hay recursos relacionados.","NO_SERVICE_RELATED_RESOURCE_DESC":"No se encontraron recursos relacionados con los servicios actuales","DELETE_SERVICE_DESC":"Está a punto de eliminar los servicios {resource}. ¿Confirma si desea eliminar el recurso asociado?","DELETE_SERVICE_DESC_PL":"You are about to delete the Services {resource}.
    Do you want to also delete the following resources related to the Services?","DELETE_SERVICE_DESC_SI":"You are about to delete the service {resource}.
    Do you want to also delete the following resource related to the service?","DELETE_SERVICE":"Delete Service","DELETE_MULTIPLE_SERVICES":"Delete Multiple Services","SERVICE_TOPOLOGY":"Service Topology","AUTO_REFRESH":"Auto","POD_COUNT_VALUE":"Pods: {value}","SELECTOR":"Selector","RECREATE":"Redesplegar","RECREATE_SUCCESS_DESC":"Desplegado correctamente","STATEFULSETS_LOW":"StatefulSets","STATEFULSETS_PL":"StatefulSets","PARTITION_ORDINAL_EMPTY":"Please set a ordinal for dividing Pod replicas.","CONFIGMAP_PL":"ConfigMaps","CONFIGMAPS":"ConfigMaps","CONFIGMAP_LOW":"ConfigMap","SECRET_LOW":"Secret","SERVICE_ACCOUNT_PROJECT_ROLE_DESC":"Select the role of the service account in the current project.","SERVICE_ACCOUNT":"Cuentas de servicio","SECRET_VALUE":"Secreto: {value}","SERVICEACCOUNT_KUBECONFIG_DESC":"Download the kubeconfig.yaml file to provide other apps with an account that can access the current project. If the apps to use the kubeconfig.yaml file are deployed outside the current cluster, you need to change the value of clusters:cluster:server to the Kubernetes API server address exposed to the outside. Learn More","SERVICE_ACCOUNT_PL":"Cuentas de servicio","SERVICE_ACCOUNT_DESC":"La cuenta de servicio proporciona una identidad para los procesos que se ejecutan en un pod que se puede usar para acceder al servidor de API","SERVICE_ACCOUNT_EMPTY_DESC":"Please create a service account.","INVALID_YAML_FILE_FORMAT":"Formato de archivo YAML no válido.","PROJECT_ROLE_SI":"Rol del proyecto","SELECT_PROJECT_ROLE_DESC":"Seleccione un rol de proyecto para especificar permisos.","CHANGE_ROLE":"Cambiar rol","SERVICE_ACCOUNT_LOW":"service account","GRAYSCALE_RELEASE":"Grayscale Release","BLUE_GREEN_DEPLOYMENT":"Despliegue blue-green","CANARY_RELEASE":"Canary Release","TRAFFIC_MIRRORING":"Mirroring de tráfico","BLUE_GREEN_DEPLOYMENT_DESC":"Blue-green deployment deploys the new version while retaining the old version to ensure zero downtime. At any time, only one of the versions is active serving all the traffic and the other one remains idle. If anything goes wrong, you can quickly roll back to the old version.","CANARY_RELEASE_DESC":"Este método trae parte del tráfico real a una nueva versión para probar su rendimiento y confiabilidad. Puedes ayudar a detectar posibles problemas en el entorno real sin afectar la estabilidad general del sistema.","TRAFFIC_MIRRORING_DESC":"El traffic mirroring proporciona una forma más precisa de probar nuevas versiones, ya que los problemas se pueden detectar por adelantado sin afectar el entorno de producción. Por lo tanto, sirve como un método más seguro y confiable para el despliegue de versiones.","CREATE_BLUE_GREEN_DEPLOYMENT_TASK":"Create Blue-Green Deployment Task","DESELECT":"Deseleccionar","SELECT":"Seleccionar","SELECT_GRAY_COMPONENT_TIP":"Selecciona un componente Grayscale Release","REPLICA":"Replica","ADD_REPLICA":"Add Replica","REPLICA_PL":"Replicas","GRAYSCALE_REPLICAS_DESC":"Especificar el número de réplicas","SELECT_VERSION":"Reglas de tráfico","BLUE_GREEN_STRATEGY_DESC":"Dos versiones","TAKE_OFFLINE":"Desconectado esta versión","TAKE_OFFLINE_SUCCESS":"Take Offline Success","TAKE_OVER":"Take Over","GRAYSCALE_VERSION":"Versión: {version}","CREATE_CANARY_RELEASE_TASK":"Create Canary Release Task","UNFINISHED_GRAY_TASK":"Grayscale release in progress","NO_WORKLOAD_FOUND_TIP":"No workload found","NO_SERVICE_MESH_TIP":"Las aplicaciones que no están habilitadas para el Application Governance no se pueden publicar en Grayscale.","GRAY_APP_NAME":"App: {name}","UNSUPPORTED_WORKLOAD_TYPE":"Tipo de carga de trabajo no compatible","VERSION_EXISTS":"The version code already exists. Please enter another version code.","NEW_VERSION_NUMBER_EXIST_DESC":"The workload {name} already exists. Please enter another version code.","INIT_CONTAINER":"Init Container","INIT_CONTAINER_VALUE":"Init Container: {value}","CONTAINER_VALUE":"Container: {value}","GRAYSCALE_IMAGE":"Image: {image}","NEW_VERSION_NUMBER":"New Version Number","NEW_VERSION_NUMBER_EMPTY_DESC":"Introduce la versión Grayscale Release","NEW_VERSION_SETTINGS":"New Version Settings","NEW_VERSION_NUMBER_DESC":"Solo puede contener letras minúsculas y números. La longitud máxima de carácteres se establece en 16.","NEW_VERSION_NUMBER_INVALID_DESC":"Invalid new version number. The new version number can contain only lowercase letters and numbers. The maximum length is 16 characters.","KEY_EQ_VALUE":"Key=Value","HEADER":"Cabecera personalizada","CLIENT_OS":"El tráfico proviene de los siguientes sistemas operativos","COOKIE":"Cookie","SPECIFY_REQUEST_PARAMETERS_DESC":"De acuerdo con la regla de configuración del contenido de la solicitud, solo el tráfico que cumpla ciertas condiciones en el contenido solicitado se dividirá en versiones en Grayscale Release. Esta política solo es válida para el acceso directo al servicio del portal.","POLICY_REQUEST_CONTENT_TIP":"Forwarding by request content is unavailable if port protocol is not HTTP, HTTP2, or gRPC.","SPECIFY_REQUEST_PARAMETERS":"Reenviar por contenido de solicitud","REQUEST_PARAMETERS":"Regla de acceso a la versión de Grayscale Release","EXACT_MATCH":"Coincidencia exacta","PREFIX_MATCH":"Coincidencia de prefijo","REGEX_MATCH":"Coincidencia regex","CANARY_BY_TRAFFIC_DESC":"De acuerdo con la regla de proporción de tráfico, el {ratio}% del tráfico solicitado al componente {component} se reenviará a la versión en Grayscale Release {newVersion}.","SPECIFY_TRAFFIC_DISTRIBUTION":"Reenviar por ratio de tráfico","TRAFFIC":"Traffic","TRAFFIC_DISTRIBUTION":"Ratio de tráfico","CREATE_TRAFFIC_MIRRORING_TASK":"Create Traffic Mirroring Task","PREREQUEST_FOR_USE_GRAYRELEASE_Q":"¿Cuales son los requisitos previos para usar Grayscale Release?","PREREQUEST_FOR_USE_GRAYRELEASE_A":"You need to create a composed app and enable the application governance feature before you implement grayscale release.","RELEASE_TASKS":"Release Tasks","TCP_INBOUND_TRAFFIC":"TCP - Tráfico entrante","TCP_OUTBOUND_TRAFFIC":"TCP - Tráfico saliente","NO_DATA_SCAP":"No data","REPLICA_COUNT_LOW":"replicas","MIRROR_POLICY_DESC":"With traffic mirroring, the network traffic in the production environment can be copied into a grayscale version. It serves as an effective way to test the new version with real-time user traffic before it runs in the actual environment.
    Therefore, traffic mirroring reduces the risk of directly making changes in the production environment.","BLUE_GREEN_DEPLOYMENT_LOW":"blue-green deployment","BLUE_GREEN_TRAFFIC_DISTRI_DESC":"The new version or old version receives all traffic.","TRAFFIC_LOW":"tráfico","VERSION_TRAFFIC_PERCENT":"{version} traffic {percent}%","OFFLINE":"Offline","OFFLINE_TIP":"No service traffic is sent to this version. You can take the version online to make it take over all traffic.","CANARY_RELEASE_LOW":"canary release","ADJUST_TRAFFIC_DISTRIBUTION_DESC":"Are you sure you want to send {ratioNew}% of traffic to the new version {newVersion} and {ratioOld}% to the old version {oldVersion}?","ALLOCATE_TRAFFIC_DESC":"Asignar todo el tráfico de forma proporcional a los componentes de Grayscale Release","COOKIE_EXACT_MATCH":"Cookie (exact match)","COOKIE_REGEX_MATCH":"Cookie (regex match)","HEADER_EXACT_MATCH":"Header (exact match)","HEADER_REGEX_MATCH":"Header (regex match)","URL_PREFIX_MATCH":"URL (prefix match)","URL_EXACT_MATCH":"URL (regex match)","OS":"OS","SERVICE_VERSION_RECEIVE_ALL_TRAFFIC":"The version {version} has taken over all traffic.","RESTORE":"Recuperar","SUCCESSFUL_REQUEST_RATE":"Tasa de éxito de solicitud","TRAFFIC_IN_LAST_FIVE_MINUTES":"Tráfico de los últimos cinco minutos","DELETE_GRAYSCALE_RELEASE_TASK_DESC":"Please select a version to take over all traffic before deleting the grayscale release task.","GRAY_COMPONENT_DESC":"The grayscale release components used to serve the traffic.","TRAFFIC_MIRRORING_LOW":"traffic mirroring","MIRRORED_TRAFFIC":"Tráfico reflejado","MIRRORED_TRAFFIC_TIP":"Traffic mirroring does not actually expose the new version.","RELEASE_MODE_PL":"Strategies","RELEASE_MODE":"Release mode","NEW_VERSION_TAKEOVER_DESC":"The new version {newVersion} is receiving all traffic. If you delete the current grayscale release job, the old version {oldVersion} will be also be deleted.","OLD_VERSION_TAKEOVER_DESC":"The old version {oldVersion} is receiving all traffic. If you delete the current grayscale release job, the new version {newVersion} will be also be deleted.","GRAYSCALE_REPLICA_SI":"Réplica: {count}","GRAYSCALE_REPLICA_PL":"Réplicas: {count}","TRAFFIC_MIRRORING_TRAFFIC_DISTRI_DESC":"A copy of traffic is sent to the new version for testing.","EDIT_GRAYSCALE_RELEASE_TASK":"Edit Grayscale Release Task","ADJUST_TRAFFIC_DISTRIBUTION":"Adjust Traffic Distribution","COPIED_SUCCESSFUL":"Copia con éxito","BUILDER_IMAGE":"Builder Image","PULL_POLICY":"Pull Policy","REMOTE_TRIGGER":"Remote Trigger","S2I_UPDATE_WORKLOAD":"Update workload after image building is successful","S2I_UPDATA_WORKLOAD_DESC":"After the image is rebuilt successfully, workloads that use the image will be updated.","IMAGE_BUILDER":"Image Builder","IMAGE_BUILDER_LOW":"image builder","JOB_RECORDS":"Registros de trabajos","LAST_BUILD_ENVIRONMENT":"Último entorno de compilación","BUILDER_IMAGE_SCAP":"Builder image","FILE_SIZE":"File size: {size}","DOWNLOAD_ARTIFACT":"Descargar Artefacto","ARTIFACT_FILE":"Subir artefactos","LOG_MODULE_NOT_INSTALLED":"The logging module is not installed.","LOADING_DOTS":"El registro se está cargando ...","IMAGE_NAME_SCAP":"Image name","IMAGE_SIZE_SCAP":"Tamaño de la imagen","IMAGE_NAME_BUILDING":"Image: {name}/Building","IMAGE_NAME_FAILED":"Image: {name}/Failed","IMAGE_NAME_SUCCESSFUL":"Image: {name}/Successful","LAST_MESSAGE_SCAP":"Last message","START_TIME_SCAP":"Start time","SOURCE_URL":"Source URL","NEW_TAG":"New Tag","NEW_TAG_DESC":"Enter the tag of the new image","IMAGE_ARTIFACTS":"Image Artifacts","RELEASE_TIME_SCAP":"Release time","PULL_COMMAND_SCAP":"Pull command","IMAGE_BUILDER_PL":"Image Builders","IMAGE_BUILDER_DESC":"Image Builder is a tool that builds container images from source code or artifacts. You can build container images from source code or artifacts through simple configurations.","IMAGE_BUILDER_EMPTY_DESC":"Crea un generador de image builder.","NOT_RUNNING_YET":"Aún no está en ejecución","BUILDING":"Building","S2I":"Source-to-image","B2I":"Artifact-to-image","BUILD_IMAGE_FOR_SERVICE":"Crear imagen para el servicio {service}","BUILD_MODE":"Elige un idioma","CONTAINERD_RUNTIME_NOT_SUPPORTED":"The containerd runtime does not support this feature.","S2I_DESC":"Por favor elige tu lenguaje de código fuente","IMAGE_FROM_S2I":"Crea una nueva imagen a partir del código","IMAGE_FROM_B2I":"Crea una nueva imagen a partir del artefacto","B2I_DESC":"Select the file type of your artifact.","EMPTY_IMAGE_TYPE_DESC":"Please select a language or artifact type.","CODE_REPOSITORY_URL":"URL de código","CODE_REPOSITORY_BRANCH":"Rama","CODE_REPOSITORY_KEY":"Key","CODE_REPOSITORY_URL_DESC":"La dirección del repositorio del código fuente (actualmente es compatible con git). Puedes especificar ramas de código y rutas relativas en el terminal del código fuente.","CODE_REPOSITORY_KEY_DESC":"Si es un repositorio de código privado, escoge la clave del repositorio de código.","IMAGE_NAME":"Image Name","IMAGE_TAG":"Image Tag","TARGET_IMAGE_REPOSITORY":"Repositorio de imágenes de destino","S2I_IMAGE_NAME_DESC":"Nombre de la imagen y tag, que por defecto es el nombre del proyecto del repositorio de código.","S2I_TARGET_IMAGE_REPOSITORY_DESC":"Select a Secret with push permissions to the image repository. De lo contrario, puedes crear una nueva credencial de repositorio de imágenes.","TRIGGER_TOKEN":"Secret Code","INVALID_TRIGGER_TOKEN_DESC":"It can only contain upper and lower case letters, numbers.","TRIGGER_TOKEN_DESC":"Set a token used to authenticate a client against KubeSphere when the client attempts to trigger image building on KubeSphere. The token can contain only uppercase letters, lowercase letters, and numbers.","CODE_RELATIVE_PATH":"Ruta relativa del código (opcional):","CODE_RELATIVE_PATH_DESC":"Especifica un directorio relativo dentro de la aplicación. (Valor por defecto /)","S2I_ENVIRONMENT_DESC":"Los desarrolladores de aplicaciones pueden usar las siguientes variables de entorno para configurar el comportamiento en tiempo de ejecución de esta imagen; para configuraciones detalladas, consulta plantillas de compilación.","UPLOAD_ARTIFACT_FILE":"Haz clic para seleccionar el archivo de artefacto a subir","UPLOAD_PERCENT":"Uploaded: {percent}%","UPLOAD_FULLY":"Uploaded: 100%","UPLOAD_FAILED":"Upload failed.","ARTIFACT_FILE_EMPTY_DESC":"El archivo no se ha subido.","B2I_DEFAULT_DESC":"Elige tu artefacto para construir una imagen de contenedor","JAR_DESC":"Un archivo JAR es un formato de empaquetado de archivos que se usa comúnmente para agregar una gran cantidad de archivos de clase Java, metadatos relacionados y archivos de recursos (texto, imágenes, etc.) en un archivo.","WAR_DESC":"El archivo WAR es un archivo utilizado para distribuir una colección de archivos JAR, JavaServer Pages, Java Servlets, clases Java, archivos XML, bibliotecas de tags, páginas web estáticas (HTML y archivos relacionados) y otros recursos que juntos constituyen una aplicación web.","BUILD_ENVIRONMENT":"Entorno de build","CODE_REPOSITORY_KEY_NOT_REQUIRED":"El repositorio de código actual no requiere clave.","FILE_SIZE_VALUE":"File size: {value}","FILE_UPLOADED_TIP":"Documento subido correctamente","WRONG_FILE_EXTENSION_NAME":"El tipo de archivo seleccionado no coincide, selecciona el tipo {type}","IMAGE_NAME_EMPTY_DESC":"Please enter an image name.","IMAGE_TAG_EMPTY_DESC":"Please enter an image tag.","TARGET_IMAGE_REPOSITORY_EMPTY_DESC":"Please set a target image registry.","REQUESTS_FOR_PUSH_AN_ALARM_Q":"How do I receive alerts if an alerting policy is triggered?","REQUESTS_FOR_PUSH_AN_ALARM_A":"The platform administrator needs to select a notification method and configure the server corresponding to the method.","HOW_TO_SUPRESS_AN_ALARM_Q":"How do I suppress alerts?","HOW_TO_SUPRESS_AN_ALARM_A":"You can set alerting policies at different levels. Each level corresponds to an alerting interval.","SELECT_WORKLOAD_TIP":"Please select at lease a workload.","KUBE_NO_AVAILABLE_DATA":"No hay datos disponibles","EDIT_QUOTAS":"Editar quota","QUOTA":"Quota","PROJECT_QUOTAS_NOT_SET":"Project Quota Not Set","PROJECT_QUOTAS_DESC":"Project quotas specify the number of available CPU and memory resources and the maximum number of application resources such as oods, deployments, and services allowed in the project.","DEFAULT_CONTAINER_QUOTAS_NOT_SET":"Resource Default Request Not Set","DEFAULT_CONTAINER_QUOTAS_DESC":"Default container quotas specify the default CPU request, CPU limit, memory request, and memory limit of containers created in the project.","APPLICATION_RESOURCE_COUNT":"Monitorización de recursos de aplicaciones","SELECT_RESOURCE_TIP":"Select a resource or enter a resource name","NUMBER_OF_PODS":"Number of pods","NUMBER_OF_DEPLOYMENTS":"Number of deployments","NUMBER_OF_STATEFULSETS":"Number of statefulsets","NUMBER_OF_DAEMONSETS":"Number of daemonsets","NUMBER_OF_JOBS":"Number of jobs","NUMBER_OF_CRONJOBS":"Number of cronjobs","NUMBER_OF_VOLUMES":"Number of persistent volume claims","NUMBER_OF_SERVICES":"Number of services","NUMBER_OF_ROUTES":"Number of routes","NUMBER_OF_SECRETS":"Number of secrets","NUMBER_OF_CONFIGMAPS":"Number of configmaps","INSTALLED_APPS":"Installed Apps","RESOURCE_STATUS":"Estado del recurso","RESOURCE_WARNING_TIPS":"Hay {warnNum} {tipName} que se muestran anormalmente.","PHYSICAL_RESOURCE_PL":"Physical Resources","CPU_USAGE_TIME":"CPU Usage ({time})","MEMORY_USAGE_TIME":"Memory Usage ({time})","TIPS":"Tips","HOW_TO_INVITE_USERS":"¿Cómo invitar a otros miembros al proyecto actual?","HOW_TO_SET_PROJECT_GATEWAY":"¿Cómo configurar la puerta de enlace del proyecto?","TOP_5_FOR_RSC_USAGE":"Top 5 for Resource Usage","TOP_5_FOR_RESOURCE_USAGE":"Ranking de uso de recursos","SORT_BY_WORKLOAD_CPU_USAGE":"Ordenar por uso de CPU","SORT_BY_WORKLOAD_MEMORY_USAGE_WO_CACHE":"Ordenar por uso de memoria","SORT_BY_WORKLOAD_NET_BYTES_TRANSMITTED":"Ordenar por tráfico saliente","SORT_BY_WORKLOAD_NET_BYTES_RECEIVED":"Ordenar por tráfico entrante","PROJECT_SETTINGS":"Configuraciones del proyecto","HOW_TO_USE_QUOTA_Q":"How do I use resource quotas?","HOW_TO_USE_QUOTA_A":"Resource quotas are a mechanism used to limit the resource usage. You can edit project resource quotas and default container quotas by clicking Edit Project.","WHAT_ARE_DEFAULT_CONTAINER_QUOTAS_Q":"What are default container quotas?","WHAT_ARE_DEFAULT_CONTAINER_QUOTAS_A":"Default container quotas specify the default CPU request, CPU limit, memory request, and memory limit of containers created in the project.","PROJECT_BASIC_INFO_DESC":"Basic information provides an overview of the project. You can view the project information and resource quotas.","EDIT_PROJECT_QUOTA":"Edit Project Quota","PROJECT_REMAINING_QUOTAS":"Project Remaining Quotas","WORKSPACE_REMAINING_QUOTAS":"Workspace Remaining Quotas","GPU_TYPE_SCAP":"GPU type","GPU_LIMIT_SCAP":"GPU limit","REQUEST_EXCEED_WORKSPACE":"Resource requests and limits cannot exceed workspace resource limits.","REQUEST_EXCEED_LIMIT":"Las solicitudes de recursos no deben ser mayores que los límites de recursos","REQUEST_EXCEED_AVAILABLE_QUOTA":"Insufficient resources.","DELETE_PROJECT_TIP":"Enter the project name {resource} to confirm that you understand the risks of this operation.","MANAGE":"Manage","PROJECT_INFO":"Información del proyecto","EDIT_PROJECT_QUOTAS":"Edit Project Quotas","PROJECT_ROLE_SCAP":"Project role","PROJECT_ROLE_SCAP_PL":"Project roles","PROJECT_MEMBER_SCAP":"Project member","PROJECT_MEMBER_SCAP_PL":"Project members","DEFAULT_CONTAINER_QUOTA_PL":"Default Container Quotas","EDIT_DEFAULT_CONTAINER_QUOTAS":"Edit Default Container Quotas","LIMITS_CPU":"limit.cpu","LIMITS_MEMORY":"limits.memoria","REQUESTS_CPU":"CPU Request","REQUESTS_MEMORY":"limit.cpu","PROJECT_QUOTA_PL":"Project Quotas","RESOURCE_TYPE_SCAP":"Tipo de recurso","JOBS":"Jobs","VOLUMES":"Volumes","SERVICES":"Servicio","ROUTES":"Routes","SECRETS":"Secrets","PROJECT_GATEWAY_DESC":"Set up and manage the configuration of the external network access gateway and service management in the cluster and project","PROJECT_GATEWAY":"Project Gateway","PROJECT_GATEWAY_EMPTY_DESC":"Please create a project gateway.","ENABLE_GATEWAY_DESC":"Antes de crear una ruta, debe habilitar el portal de acceso a Internet (es decir, la puerta de enlace). Este paso crea un controlador de enrutamiento correspondiente para reenviar la solicitud al servicio de back-end correspondiente.","LOAD_BALANCER_PROVIDER":"LoadBalancer Provider","GATEWAY_UPDATING_TIP":"Updating the gateway. Please try again later.","CLUSTER_GATEWAY_GUIDE_DESC":"After the cluster gateway is turned on, the project gateway can no longer be set. If the project gateway already exists, it cannot be reset after deleting it. ","LOG_COLLECTION":"Log Collection","DISK_LOG_COLLECTION_DESC":"The Log Collection function allows the system to collect container logs saved on volumes. To use this function, you need to mount a volume in read and write mode to a container and set the container to export logs to the volume.","COLLECT_LOGS_ON_VOLUMES_Q":"How do I collect logs on volumes?","COLLECT_LOGS_ON_VOLUMES_A":"To collect logs on volumes, you need to mount a volume in read and write mode to a container and set the container to export logs to the volume.","COLLECT_LOGS_ON_VOLUMES":"Colección de registro de disco","DISABLE_LOG_COLLECTION":"Disable Log Collection","DISABLE_LOG_COLLECTION_TIP":"Are you sure you want to disable log collection? After it is disabled, services that have enabled log collection will continue to collect logs saved in the volumes before the Pod replicas are restarted. If you need to collect the logs again, please enable log collection and restart the Pod replicas.","LOG_COLLECTION_ENABLED_DESC":"After this function is enabled or disabled, you need to restart the Pod replicas to make the change take effect.","DISABLED":"Deshabilitado","ENABLED":"Habilitado","NETWORK_ISOLATION_DESC":"By configuring network isolation, users can control traffic between pods within the same workspace and traffic from outside to implement application isolation and enhance application security.","NETWORK_ISOLATION_Q":"¿Cómo usar mejor el aislamiento de red?","NETWORK_ISOLATION_Q1":"What are the requirements on the CNI plugin for implementing network isolation?","NETWORK_ISOLATION":"Aislamiento de red","ENABLE":"Enable","PROJECT_NETWORK_ISOLATION":"Aislamiento de red de proyecto","DISABLED_PROJECT_NETWORK_ISOLATION":"Disabled project network isolation","NETWORK_POLICY_EMP_TITLE":"Network Isolation Not Enabled","NETWORK_POLICY_EMP_DESC":"After the project network access is enabled, other projects will be unable to access the project. But you can allow projects, services, and external IP addresses to access this project based on your needs.","INTERNAL_ALLOWLIST":"Internal Allowlist","INTERNAL_ALLOWLIST_TIP":"Add projects and services in the workspace to the allowlist.","INTERNAL_EGRESS_DESC":"Allows access to resources that match any of the following network policies.","INTERNAL_INGRESS_DESC":"Allows access from resources that match any of the following network policies.","INTERNAL_ALLOWLIST_DESC":"Allow pods in the current project to communicate with pods in other projects of the current workspace.","EMPTY_RESOURCE_DESC":"Please select at least one project or service.","EXTERNAL_ALLOWLIST":"External Allowlist","EXTERNAL_ALLOWLIST_TIP":"Add network segments and ports outside the workspace to the allowlist.","EXTERNAL_ALLOWLIST_DESC":"Allow pods in the current project to communicate with specific network segments and ports outside the workspace.","NETWORK_SEGMENT_EXAMPLE":"Example: 10.0.0.0","PORT_EXAMPLE":"Example: 80","EXTERNAL_EGRESS_DESC":"Pods in the current project are allowed to access the following network segments and ports.","EXTERNAL_INGRESS_DESC":"Pods in the current project are allowed to be accessed by the following network segments and ports.","SELECT_RULE_DIRECTION_TIP":"Please select a traffic direction.","ENTER_VALID_SEGMENT_DESC":"Please enter valid network segment.","ENTER_VALID_PORT_NUMBER_DESC":"Please enter a valid port number.","ADD_ALLOWLIST_ENTRY":"Agregar lista de permitidos","EDIT_ALLOWLIST_ENTRY":"Add Allowlist Entry","EXTERNAL_TRAFFIC_DIRECTION_DESC":"Egress indicates the direction from the current project to outside the workspace. Ingress indicates the direction from outside the workspace to the current project.","TRAFFIC_DIRECTION":"Traffic Direction","NETWORK_SEGMENT_DESC":"Set a network segment (CIDR is supported).","EGRESS":"Salida","INGRESS":"Ingress","INTERNAL_TRAFFIC_DIRECTION_DESC":"Egress indicates the direction from the current project to other projects. Ingress indicates the direction from other projects to the current project.","ALLOWLIST_ENTRY":"Allowlist Entry","ALLOWLIST_ENTRY_PL":"Allowlist Entry","ALLOWLIST_ENTRY_DETAIL":"Allowlist Entry Detail","ALLOWLIST_ENTRY_LOW":"allowlist entry","ADD_NEW_NETWORK_SEGMENT":"Add","ADD_NEW_PORT":"Add Port","ADD_NEW_PORT_RANGE":"Add Port Aange","PORT_RANGE":"Port Range","NETWORK_SEGMENT_QUANTITY":"Network Segment Quantity","PORT_QUANTITY":"Port Quantity","ALLOWLIST_ENTRY_EMPTY_DESC":"Create allowlist entry","PROJECT_MEMBER":"Project Member","PROJECT_MEMBER_PL":"Miembros del proyecto","PROJECT_MEMBER_DESC":"Project members can view or manage project resources. The project administrator can invite members who belong to the workspace to the project and manage project members.","REMOVE":"Remove","INVITE_MEMBER_DESC":"You can invite members who belong to the workspace to the project.","PROJECT_MEMBER_EMPTY_DESC":"Please invite a member of the current workspace to the project.","INVITE_MEMBER_SEARCH_PLACEHOLDER":"Introduce una dirección de correo electrónico para invitar miembros","ASSIGN_ROLE":"Assign Role","PERMISSION_PL":"Lista de autorizaciones","AUTHORIZED_USER_PL":"Usuarios autorizados","PROJECT_ROLE_PL":"Roles del proyecto","PROJECT_ROLE_DESC":"Los roles de proyecto definen la autorización que los usuarios tienen en el proyecto actual.","ROLE_PROJECT_ADMIN":"Manage all resources in the project.","ROLE_PROJECT_REGULAR":"El que mantiene el namespace, que puede administrar recursos en el mismo excepto usuarios y roles.","ROLE_PROJECT_VIEWER":"Permite el acceso de lectura para ver todos los recursos en el namespace.","ROLE_PROJECT_OPERATOR":"El que mantiene el proyecto, que puede administrar recursos en el mismo excepto usuarios y roles.","PROJECT_ROLE_EMPTY_DESC":"Please create a project role.","PERMIGROUP_APPLICATION_WORKLOADS":"Workload de aplicaciones","PERMISSION_APPLICATION_WORKLOADS_VIEW":"Application Workload Viewing","PERMISSION_APPLICATION_WORKLOADS_VIEW_DESC":"View resources such as applications, services, workloads, jobs, grayscale release jobs, and image builders in the project.","PERMISSION_APPLICATION_WORKLOADS_MANAGEMENT":"Application Workload Management","PERMISSION_APPLICATION_WORKLOADS_MANAGEMENT_DESC":"Create, edit, and delete resources such as applications, services, workloads, jobs, grayscale release jobs, and image builders in the project.","PERMIGROUP_STORAGE_MANAGEMENT":"Storage","PERMISSION_VOLUME_SNAPSHOTS_VIEW":"Volume Snapshot Viewing","PERMISSION_VOLUME_SNAPSHOTS_VIEW_DESC":"View volume snapshots in the project.","PERMISSION_VOLUME_SNAPSHOTS_MANAGEMENT":"Volume Snapshot Management","PERMISSION_VOLUME_SNAPSHOTS_MANAGEMENT_DESC":"Create, edit, and delete volume snapshots in the project.","PERMISSION_VOLUMES_VIEW":"Persistent Volume Claim Viewing","PERMISSION_VOLUMES_VIEW_DESC":"View persistent volume claims in the project.","PERMISSION_VOLUMES_MANAGEMENT":"Persistent Volume Claim Management","PERMISSION_VOLUMES_MANAGEMENT_DESC":"Create, edit, and delete persistent volume claims in the project.","PERMIGROUP_CONFIGURATION_CENTER":"Configuration","PERMISSION_CONFIGMAPS_VIEW":"Configmap Viewing","PERMISSION_CONFIGMAPS_VIEW_DESC":"View configmaps in the project.","PERMISSION_CONFIGMAPS_MANAGEMENT":"Configmap Management","PERMISSION_CONFIGMAPS_MANAGEMENT_DESC":"Create, edit, and delete configmaps in the project.","PERMISSION_SECRETS_VIEW":"Secret Viewing","PERMISSION_SECRETS_VIEW_DESC":"View secrets in the project.","PERMISSION_SECRETS_MANAGEMENT":"Secret Management","PERMISSION_SECRETS_MANAGEMENT_DESC":"Create, edit, and delete secrets in the project.","PERMISSION_SERVICEACCOUNT_VIEW":"Service Account Viewing","PERMISSION_SERVICEACCOUNT_VIEW_DESC":"View service accounts in the project.","PERMISSION_SERVICEACCOUNT_MANAGEMENT":"Service Account Management","PERMISSION_SERVICEACCOUNT_MANAGEMENT_DESC":"Create, edit, and delete service accounts in the project.","PERMIGROUP_MONITORING_ALERTING":"Monitorización y alertas","PERMISSION_ALERTING_MESSAGES_VIEW":"Alert Viewing","PERMISSION_ALERTING_MESSAGES_VIEW_DESC":"View alerts in the project.","PERMISSION_ALERTING_MESSAGES_MANAGEMENT":"Alert Management","PERMISSION_ALERTING_MESSAGES_MANAGEMENT_DESC":"Comment on and delete alerts in the project.","PERMISSION_ALERTING_POLICIES_VIEW":"Rule Group Viewing","PERMISSION_ALERTING_POLICIES_VIEW_DESC":"View rule groups in the project.","PERMISSION_ALERTING_POLICIES_MANAGEMENT":"Rule Group Management","PERMISSION_ALERTING_POLICIES_MANAGEMENT_DESC":"Create, edit, and delete rule groups in the project.","PERMISSION_CUSTOM_MONITORING_VIEW":"Custom Monitoring Viewing","PERMISSION_CUSTOM_MONITORING_VIEW_DESC":"View custom monitoring dashboards in the project.","PERMISSION_CUSTOM_MONITORING_MANAGEMENT":"Custom Monitoring Management","PERMISSION_CUSTOM_MONITORING_MANAGEMENT_DESC":"Create, edit, and delete custom monitoring dashboards in the project.","PERMISSION_PROJECT_MEMBERS_VIEW":"Vista de miembros del proyecto","PERMISSION_PROJECT_MEMBERS_VIEW_DESC":"View project members.","PERMISSION_PROJECT_MEMBERS_MANAGEMENT":"Gestión de miembros de proyecto","PERMISSION_PROJECT_MEMBERS_MANAGEMENT_DESC":"Invite, edit, and remove project members.","PERMISSION_PROJECT_ROLES_VIEW":"Vista de roles de proyecto","PERMISSION_PROJECT_ROLES_VIEW_DESC":"View project roles.","PERMISSION_PROJECT_ROLES_MANAGEMENT":"Gestión de Roles de Proyecto","PERMISSION_PROJECT_ROLES_MANAGEMENT_DESC":"Create, edit, and delete project roles except preset roles.","PERMIGROUP_PROJECT_SETTINGS":"Configuraciones del proyecto","PERMISSION_PROJECT_SETTINGS":"Project Settings Management","PERMISSION_PROJECT_SETTINGS_DESC":"Manage project settings including project basic information, external access settings, network policies, resource quotas, and log collection settings.","DELETE_ROLE":"Delete Role","DELETE_ROLE_TIP":"Are you sure you want to delete the role {resource}?","DELETE_ROLE_USER_TIP_PL":"The role is authorized to {count} users. Please delete the users or change the roles of the user first.","DELETE_ROLE_USER_TIP":"The role is authorized to {count} user. Please delete the user or change the role of the user first.","DELETE_ROLE_DEPARTMENT_TIP_PL":"The role is authorized to {count} departments. Please delete the departments or change the roles of the departments first.","DELETE_ROLE_DEPARTMENT_TIP":"The role is authorized to {count} department. Please delete the department or change the role of the department first.","CLONE_VOLUME":"Clon del volumen","CLONE":"Clone","CREATE_SNAPSHOT":"Crear snapshot","SNAPSHOT_EMPTY_TIP":"Seleccione un tipo de instantánea.","EXPAND_VOLUME":"Ampliar volumen","EXPAND":"Expand","PROVISIONER":"Provisioner","AVAILABLE_CAPACITY":"Capacidad disponible","POD_IP_ADDRESS_SCAP":"Pod IP address","TOTAL_CAPACITY":"Total capacity","TECHNICAL_SUPPORT":"Technical Support","LEARN_MORE_CONTACT_US":"For more cloud-native technology empowerment services, please Contact Us.","COMMUNITY_SUPPORT":"Community Support","FORUM":"Forum","TICKET_SUPPORT":"Ticket Support","TICKET_SUPPORT_DESC":"Professional cloud-native development team and container service delivery team with more than 10 years of public and private cloud support experience and in-depth understanding of industries, providing comprehensive technical support including installation, troubleshooting, recovery, and other professional services.","CONTACT_US":"Contact Us","KUBESPHERE_ENTERPRISE_CAPTION":"KubeSphere Enterprise","KUBE_SPHERE_ENTERPRISE_DESC":"KubeSphere Enterprise is an enterprise-grade container platform developed by QingCloud based on the open-source KubeSphere platform. Compared with the open-source edition, KubeSphere Enterprise enhances capabilities for enterprise quantitative operations, large-scale cluster O&M, and security hardening, and extends multiple key features such as microservice governance and app management. The KubeSphere Enterprise Extension Marketplace provides enterprise-grade extensions to meet requirements of various business scenarios, with expert solutions and technical support from QingCloud.","KSE_FEATURE_1":"Empowers enterprise digital transformation towards quantitative operations","KSE_FEATURE_2":"Enhances large-scale federated cluster O&M","KSE_FEATURE_3":"Provides full lifecycle security protection","KSE_PLATFORM_VERSION":"Platform Version: {version}","KUBESPHERE_CLOUD_CAPTION":"KubeSphere Cloud","KSC_FEATURE_BACKUP":"KubeSphere Backup","KSC_FEATURE_BACKUP_APP_DESC":"Application-level data protection","KSC_FEATURE_BACKUP_DATA_DESC":"Assured data consistency","KSC_FEATURE_BACKUP_CLOUD_DESC":"Unified management across clouds","KSC_FEATURE_INSPECTION":"KubeSphere Inspection","KSC_FEATURE_INSPECTION_VULN_DESC":"Comprehensive vulnerability scanning","KSC_FEATURE_INSPECTION_SECURITY_DESC":"System security hardening","KSC_FEATURE_INSPECTION_BEST_DESC":"Best practice guidance","KSC_FEATURE_LIGHTWEIGHT":"KubeSphere Lite","KSC_FEATURE_LIGHTWEIGHT_START_DESC":"Cluster setup in seconds","KSC_FEATURE_LIGHTWEIGHT_KS_DESC":"Out-of-the-box KubeSphere cluster","KSC_FEATURE_LIGHTWEIGHT_TEST_DESC":"Ideal for testing and demonstration","START_NOW":"Start Now","START_REAL_TIME_AUDIT_LOG":"Pause real-time audit logs","STOP_REAL_TIME_AUDIT_LOG":"View real-time audit logs","TIME_S":"{num, plural, =1 {1 second} other {# seconds}}","AUDIT_LOG_COUNT":"Audit Logs","RESOURCE_NAME_AND_TYPE":"Resource Type & Name","VERB":"Verb","STATUS_CODE":"Status Code","SUBRESOURCE":"Subresource","TOTAL_AUDITING_TODAY":"A total of {auditing} audit log entries have been collected today.","NO_AUDIT_LOG_TODAY":"No Audit Log Collected Today","AUDIT_LOG_TREND_LAST_TWELVE_HOURS":"Audit log trend in the last 12 hours","START_TIME_VALUE":"Start Time: {value}","NO_DATA_AUTHORIZED":"No Data Authorized","NO_DATA_AUTHORIZED_DESC":"Please contact an administrator to obtain data authorization.","TIME_RANGE_LAST":"Time range: last {value}","TIME_RANGE_RANGE":"Time range: {startTime} – {endTime}","AUDIT_LOGS_12H":"Audit logs in the last 12 hours","AUDIT_LOG_WORKSPACE_TIP":"Enter a workspace name to search for audit logs.","AUDIT_LOG_PROJECT_TIP":"Enter a project name to search for audit logs.","AUDIT_LOG_RESOURCE_NAME_TIP":"Enter a resource name to search for audit logs.","AUDIT_LOG_RESOURCE_TYPE_TIP":"Enter a resource type to search for audit logs.","AUDIT_LOG_VERB_TIP":"Enter a verb to search for audit logs.","AUDIT_LOG_STATUS_CODE_TIP":"Enter a status code to search for audit logs.","AUDIT_LOG_OPERATOR_TIP":"Enter an operator to search for audit logs.","AUDIT_LOG_SOURCE_IP_ADDRESS_TIP":"Enter a source IP address to search for audit logs.","SEARCH_BY_VERB":"Search by Verb","SEARCH_BY_STATUS_CODE":"Search by Status Code","SEARCH_BY_OPERATOR":"Search by Operator","SEARCH_BY_SOURCE_IP_ADDRESS":"Search by Source IP Address","ENABLE_AUDIT_LOG_COLLECTION_DESC":"You need to enable audit log collection if it is disabled.","KEYWORD":"Keyword","EXACT_QUERY":"Exact Query","FUZZY_QUERY":"Fuzzy Query","TIME_TOPOLOGY":"Time Topology ","SEARCH_RESULTS":"Search Results","DISPLAY":"Display","HIDE":"Hide","STOP_REAL_TIME_CONTAINER_LOG":"Pause real-time container logs","START_REAL_TIME_CONTAINER_LOG":"View real-time container logs","REFRESH_RATE_COLON":"Refresh Rate: ","CONTAINER_LOG_COUNT":"Registros de contenedores","LOG":"Log","CONTAINER_LOG_SOURCE":"Container Log Source","TOTAL_LOGS_TODAY":"A total of {logs} log entries from {containers} containers have been collected today.","WORKLOAD":"Workload","TIME_RANGE_SCAP":"Time range","QUERYING_RULES":"Querying Rules","CONTAINER_LOGS_12H":"Container logs in the last 12 hours","CONTAINER_LOG_KEYWORD_TIP":"Enter a keyword to search for container logs.","CONTAINER_LOG_PROJECT_TIP":"Enter a project name to search for container logs.","CONTAINER_LOG_WORKLOAD_TIP":"Enter a workload name to search for container logs.","CONTAINER_LOG_CONTAINER_TIP":"Enter a container name to search for container logs.","CONTAINER_LOG_POD_TIP":"Enter a pod name to search for container logs.","SEARCH_BY_KEYWORD":"Search by Keyword","SEARCH_BY_PROJECT":"Search by Project","SEARCH_BY_WORKLOAD":"Search by Workload","SEARCH_BY_POD":"Search by Pod","SEARCH_BY_CONTAINER":"Search by Container","TIME_RANGE":"Time Range","DOWNLOAD":"Download","KUBECONFIG_TIP":"\n

    Configuration Method

    \n

    Configure the access information about the current cluster by using kubeconfig file.

    \n ","HIDE_HELP_INFORMATION":"Hide Help Information","KUBECTL_TIP":"\n

    Command Tips

    \n

    You can refer to the following kubestl commands.

    \n

    Customized Output

    \n
      \n
    • View more information about a pod
    • \n
    \n

    kubectl get pod <pod-name> -o wide

    \n
      \n
    • View pod details in YAML format
    • \n
    \n

    kubectl get pod <pod-name> -o yaml

    \n

    Operations

    \n

    Create Resources

    \n
      \n
    • Create a service by using a YAML configuration file
    • \n
    \n

    kubectl create -f my-service.yaml

    \n
      \n
    • Create resources by using all YAML, YML, and JSON files in a directory
    • \n
    \n

    kubectl create -f <directory>

    \n

    View Resources

    \n
      \n
    • View all pods
    • \n
    \n

    kubectl get pods

    \n
      \n
    • View all services
    • \n
    \n

    kubectl get services

    \n

    View Resource Details

    \n
      \n
    • View node details
    • \n
    \n

    kubectl describe nodes <node-name>

    \n
      \n
    • View pod details
    • \n
    \n

    kubectl describe pods <pod-name>

    \n ","OPEN_TERMINAL_DESC":"Ensure that the web socket settings on the proxy server is correct.","TOOLBOX":"Toolbox","TOOLBOX_DESC":"Provides cluster analysis and control tools.","DETAIL_NOT_FOUND_DESC":"No related resources were found. Return to {title}","ANALYSIS_TOOLS":"Analysis Tools","VIEW_KUBE_CONFIG":"View or download the kubeconfig file of the current cluster.","CONTAINER_LOG_SEARCH_DESC":"A multi-dimensional container log search tool for resources.","RESOURCE_EVENT_SEARCH_DESC":"A multi-dimensional resource event search tool for resources.","AUDIT_LOG_DESC":"A multi-dimensional audit log search tool for resources.","RESOURCE_CONSUMPTION_STATISTICS":"Resource Consumption Statistics","METERING_AND_BILLING_DESC":"View resource consumption of clusters and workspaces.","CONTAINER_LOG_SEARCH":"Container Log Search","RESOURCE_EVENT_SEARCH":"Resource Event Search","AUDIT_LOG_SEARCH":"Audit Log Search","CONTROL_TOOL":"Control Tool","TOOLBOX_SHIFT_TIPS":" 👻 Press \"shift+left click\" to open kubectl in a new browser window.","THIRD_PARTY_TOOLS":"Third-Party Tools","METERING_NOT_ENABLED_DESC":"This module is not enabled.","NO_METER_DATA":"No resource consumption data is found.","EXPORT_BILL":"Export consumption records in CSV file format.","TOTAL_COST":"Total Cost ({unit})","PRICE_CONFIG_DESC":"The price information has not been configured.","METER_CPU_USAGE":"Uso de CPU","METER_MEMORY_USAGE":"Uso de memoria","METER_VOLUME_USAGE":"Volume Usage","METER_NET_RECEIVED_USAGE":"Inbound Traffic Usage","METER_NET_TRANSMITTED_USAGE":"Outbound Traffic Usage","NET_RECEIVED":"Inbound Traffic","NET_TRANSMITTED":"Outbound Traffic","COMPOSING_APP":"Composed app","CLUSTER_NODE_SCAP":"Cluster node","POD_SCAP":"Pod","APP_TEMPLATE_SCAP":"App template","COMPOSING_APP_SCAP":"Composed app","DEPLOYMENT_SCAP":"Deployment","STATEFULSET_SCAP":"StatefulSet","DAEMONSET_SCAP":"DaemonSet","WORKSPACE_SCAP":"Espacio de trabajo","CLUSTER_SCAP":"Cluster","PROJECT_SCAP":"Proyecto","SERVICE_SCAP":"Selecciona un servicio","HOST_CLUSTER_SCAP":"Clúster de host","MEMBER_CLUSTER_SCAP":"Member cluster","CONSUMPTION_HISTORY":"Consumption History","BILLING_CYCLE":"Billing Cycle","CONSUMER_TRENDS":"Cost Trends","AVERAGE_USAGE":"Average Usage","TOTAL_CONSUMPTION":"Total Consumption","TOTAL_CONSUMPTION_Q":"What is total consumption?","TOTAL_CONSUMPTION_A":"Total consumption is the sum of resource usage per sampling point in the current billing cycle.","TIMERANGE_MORE_30DAY_MSG":"If the interval between the end time and the start time is greater than 30 days, the minimum sampling interval should be 1 day.","MAXIMUM_USAGE":"Maximum Usage","MINIMUM_USAGE":"Minimum Usage","RESOURCE_TYPE":"Resource Type","CURRRENT_RESOURCE_CONSUMPTION":"Current Consumption","METER_RESOURCE_DESC":"Resource consumption in 1 h","ADD_CLUSTER_FOR_WORKSPACE":"Please authorize a cluster to this workspace.","RESOURCE_CONSUMPTION_DESC":"Select a category to view the resource consumption information.","CLUSTER_CONSUMPTION":"Cluster Resource Consumption","CLUSTER_CONSUMPTION_DESC":"View the consumption information of cluster resources.","CLUSTER_RESOURCE_CONSUMPTION_DESC":"Consumption of resources such as CPU, memory, and volumes of clusters","CLUSTER_NODE_CONSUMPTION_DESC":"Consumption of resources such as CPU, memory, and volumes of cluster nodes","CLUSTER_POD_CONSUMPTION_DESC":"Consumption of CPU and memory of pods in nodes","CURRENT_RESOURCE_CONSUMPTION":"Current Resource Consumption","VIEW":"View","CONSUMPTION_SINCE_CREATION":"has consumed the following resources since it is created.","PRICE":"Price","WORKSPACE_CONSUMPTION":"Workspace Resource Consumption","WORKSPACE_CONSUMPTION_DESC":"View the consumption information of workspace resources.","WORKSPACE_RESOURCE_CONSUMPTION_DESC":"Consumption of resources such as CPU, memory, and volumes of workspaces","WORKSPACE_PROJECT_CONSUMPTION_DESC":"Consumption of resources such as CPU, memory, and volumes of projects in workspaces","PROJECT_CONSUMPTION_DESC":"Consumption of CPU and memory of apps, services and pods in projects","STOP_REAL_TIME_RESOURCE_EVENT":"Pause real-time resource events","START_REAL_TIME_RESOURCE_EVENT":"View real-time resource events","RESOURCE_EVENT_COUNT":"Resource Events","METADATA":"Metadata","EARLIEST_START_TIME":"Earliest Start Time","LATEST_START_TIME":"Latest Start Time","TOTAL_EVENTS_TODAY":"A total of {events} resource events were collected today.","NO_RESOURCE_EVENTS_TODAY":"No Resource Events Collected Today","RESOURCE_EVENTS_12H":"Resource events in the last 12 hours","RESOURCE_EVENT_WORKSPACE_TIP":"Enter a workspace name to search for container logs.","RESOURCE_EVENT_PROJECT_TIP":"Enter a project name to search for container logs.","RESOURCE_EVENT_RESOURCE_TYPE_TIP":"Enter a resource type to search for container logs.","RESOURCE_EVENT_RESOURCE_NAME_TIP":"Enter a resource name to search for container logs.","RESOURCE_EVENT_MESSAGE_TIP":"Enter a message to search for resource events.","RESOURCE_EVENT_CATEGORY_TIP":"Enter a category name to search for container logs.","RESOURCE_EVENT_REASON_TIP":"Enter a reason to search for container logs.","SEARCH_BY_MESSAGE":"Search by Message","SEARCH_BY_WORKSPACE":"Search by Workspace","SEARCH_BY_RESOURCE_TYPE":"Search by Resource Type","SEARCH_BY_RESOURCE_NAME":"Search by Resource Name","SEARCH_BY_REASON":"Search by Reason","SEARCH_BY_CATEGORY":"Search by Category","EMAIL_DESC":"El correo electrónico se utiliza para iniciar sesión.","LANGUAGE":"Language","USER_SETTINGS":"User Settings","CLOSE":"Cerca","CONTENT_NOT_SAVED_TIPS":"el contenido ha sido modificado pero no guardado","SAVE_EDIT_HINTS":"confirma que el contenido modificado es correcto, puedes guardar la configuración o cancelar la configuración.","PASSWORD_SETTINGS":"Configuración de contraseña","PASSWORD_EMPTY_DESC":"Please enter a password.","CURRENT_PASSWORD":"contraseña actual","ENTER_CURRENT_PASSWORD_TIP":"Por favor introduce la contraseña actual","CONFIRM_PASSWORD":"Confirm Password","PASSWORD_NOT_SAME_DESC":"La contraseña ingresada dos veces debe ser la misma","ENTER_CURRENT_PASSWORD_DESC":"Debe ingresar correctamente la contraseña actual para cambiar a una nueva contraseña.","WORKBENCH":"Workbench","DASHBOARD_TITLE":"Hola {username}","LAST_LOGIN_TIME":"Last Login: ","USER_DASHBOARD_EMPTY_TITLE":"No perteneces a ningún espacio de trabajo actualmente.","USER_DASHBOARD_EMPTY_DESC":"Puedes ponerte en contacto con un administrador del espacio de trabajo para que te invite a unirte.","LAST_UPDATE_TIME":"Last update time","PLATFORM_VERSION":"Versión de plataforma","PLATFORM_RESOURCES":"Platform Resource","APP_TEMPLATE_SCAP_PL":"App templates","RECENT_ACCESS":"Visita reciente","MULTI_CLUSTER_DEPLOYMENT":"Despliegue de multi-cluster","WORKBENCH_PROJECT":"Proyecto","WORKBENCH_WORKSPACE":"Espacio de trabajo","WORKBENCH_DEVOPS":"DevOps project","WORKBENCH_MULTI_CLUSTER_PROJECT":"Multi-cluster project","WORKBENCH_CLUSTER":"Cluster","NOT_FOUND_DESC":"🙇 Lo sentimos, no se encontraron recursos relacionados, el sistema volverá a Workbench después de {time} s","MULTI_CLUSTER_PROJECT_TIP":"El recurso se implementa en varios grupos.","NO_HISTORY_TITLE":"No Recently Accessed Resource Found","NO_HISTORY_DESC":"You can access platform resources.","MESSAGE":"Mensaje","APP_REPOSITORY_PL":"App Repositories","APP_REPO":"Repositorios de aplicaciones","HOW_TO_USE_APP_REPO_Q":"¿Cómo usar un repositorio de aplicaciones?","HOW_TO_USE_APP_REPO_A":"You need to go to your project in the workspace. When you deploy a new app, select From App Template and then choose an app repository in the drop-down list to deploy an app in the repository.","APP_REPO_DESC":"An app repository is a repository used to store application templates. You can add an app repository to deploy and manage its applications.","APP_REPOSITORY_EMPTY_DESC":"Please add an app repository.","APP_REPO_STATUS_SUCCESSFUL":"Successful","APP_REPO_STATUS_FAILED":"Failed","APP_REPO_STATUS_SYNCING":"Syncing","ADD_APP_REPO":"Add App Repository","VALIDATE":"Validar","SYNC_INTERVAL":"Sync Interval","SYNC_INTERVAL_DESC":"Set a synchronization interval. The value range is 3 minutes to 24 hours. The default value 0 indicates no synchronization.","SYNC_PERIOD_EMPTY_DESC":"Please set a synchronization interval.","SYNC_INTERVAL_INVALID":"El valor no es válido, ingrese 0 o un número entero positivo.","APP_REPO_URL_DESC":"The URL needs to be validated before you add or edit an app repository.","SYNC_INTERVAL_TIP":"The value range is 3 minutes to 24 hours. Please enter a valid value.","SECONDS":"Seconds","MINUTES":"Minutes","HOURS":"Hours","UNRECOGNIZED_URL":"Unrecognized URL.","INVALID_CREDENTIAL_FORMAT":"Invalid credential format.","MISSING_ACCESS_KEY_ID":"Missing access key ID.","MISSING_SECRET_ACCESS_KEY":"Missing secret access key.","S_THREE_ACCESS_DENIED":"S3 access denied.","INVALID_URL_FORMAT":"Invalid URL format.","INVALID_HTTP_SCHEME":"Invalid HTTP scheme.","HTTP_ACCESS_DENIED":"HTTP access denied.","INVALID_HTTPS_SCHEME":"Invalid HTTPS scheme.","INVALID_TYPE":"Invalid type.","INVALID_PROVIDERS":"Invalid providers.","INVALID_REPO_URL":"Invalid repository URL.","INVALID_S_THREE_SCHEME":"Invalid S3 scheme.","ACCESS_KEY_ID":"Access Key ID","SECRET_ACCESS_KEY":"Secret Access Key","EDIT_APP_REPO":"Editar repositorio de aplicaciones","INVALID_URL_DESC":"Invalid URL.","VALID_URL_DESC":"Valid URL.","APP_REPOSITORY":"App Repository","APP_REPOSITORY_LOW":"app repository","MODIFY_SUCCESSFUL":"Modificado Satisfactoriamente","SERVICE_PROVIDER_WEBSITE_DESC":"Official website address of the service provider.","WRONG_ADDRESS_TIP":"Incorrect format. Please enter a correct website address.","APP_NAME_DESC":"El nombre puede contener cualquier carácter y el largo máximo es de 20 caracteres.","APP_DESCRIPTION_DESC":"The description can contain any characters and the maximum length is 120 characters.","APP_ICON_FORMAT":"Formato: png Mejor transparencia del fondo","APP_ICON_SIZE":"Icon size: 96x96 pixels","CHOOSE_APP_CATEGORY_DESC":"Select a category for the app.","EDIT_APP_DESC":"Configurar la información básica de aplicación.","ICON":"Icon","SERVICE_PROVIDER_WEBSITE_TCAP":"Service Provider Website","START_EDITING":"Start editing...","SCREENSHOTS_COLON":"Screenshots: ","DELETE_ALL":"Delete All","ADD_VERSION_SUCCESSFUL":"Versión Añadida Satisfactoriamente","UPLOAD_PACKAGE_OK_NOTE":"The version already exists. Please upload another version.","UPLOAD_NEW_VERSION":"Upload Version","UPLOAD_NEW_VERSION_DESC":"Upload a new version of the app.","DELETE_APP_TEMPLATE_DESC":"Enter the app template name {resource} to confirm that you understand the risks of this operation.","DELETE_APP_TEMPLATE_VERSIONS_DESC":"Enter the app template name {resource} to confirm that you understand the risks of this operation. Before deleting the app template, you must delete all versions of the template.","APP_TEMPLATE_LOW":"app template","APP_STATUS_SUBMITTED":"Submitted","APP_STATUS_NOT_SUBMITTED":"Not submitted","VERSION_INFO":"Version Information","INSTALL":"Install","SUBMIT_FOR_REVIEW":"Submit for Review","DOWNLOAD_SUCCESSFUL":"Descargado con éxito","VERSION_DELETE_TIP":"¿Está seguro de eliminar la versión {name} ?","VERSION_SUBMIT_TIP":"¿Está seguro de enviar la versión {name} para auditoría?","VERSION_CANCEL_TIP":"¿Está seguro de cancelar la revisión de la versión {name} ?","VERSION_RELEASE_TIP":"Los usuarios pueden ver e implementar la versión {name} en la tienda cuando se lance. ¿Estás seguro de lanzarlo ahora?","VERSION_SUSPEND_TIP":"La versión {name} no se mostrará en la tienda cuando se suspenda. ¿Estás seguro de suspenderlo ahora?","VERSION_RECOVER_TIP":"La versión {name} se mostrará nuevamente en la tienda. ¿Estás seguro de activarlo ahora?","UPDATE_TIME_SCAP":"Update time","VIEW_IN_STORE":"View in Store","UPLOAD_AGAIN_TIP":"Please try again.","ENTER_VERSION_NUMBER_TIP":"Please enter a version number.","SUBMIT_REVIEW_DESC":"Submit the app template for review before releasing it to the App Store.","APP_LEARN_MORE":"Learn More","INVALID_VERSION_TIP":"Versión no válida","TEST_STEPS":"Test Steps","VERSION_SUBMIT_TEST_STEPS":"1. All dependent charts have been submitted.
    2. The static analysis has been passed (helm lint).
    3. The app can be started using default values (helm install). All pods are in running state and all services have at least one endpoint.
    4. The images used have no security vulnerabilities.
    5. Upgrade is supported.
    6. Custom application configuration is supported.
    7. Do not use the alpha features of Kubernetes.
    8. Detailed documentation is provided, including app introduction, prereauisites, and custom parameter configurations.
    ","VERSION_SUBMIT_NOTE":"Please make sure your app has met the following requirements before submission:","UPDATE_LOG_DESC":"Se usa para describir los detalles de esta actualización.","SUBMIT_SUCCESSFUL":"Submitted successfully.","CANCEL_SUCCESSFUL":"Canceled successfully.","APP_INSTANCES":"App Instances","APP_TEMPLATE_PL":"App Templates","APPS_MANAGEMENT":"Gestión de Alicaciones","UPLOAD_TEMPLATE":"Subir Plantilla","APP_TEMPLATE_DESC":"KubeSphere proporciona una gestión completa del ciclo de vida para las aplicaciones. Puedes subir o crear nuevas plantillas de aplicación y probarlas rápidamente. Además, puedes publicar tus aplicaciones en la Tienda de Aplicaciones para que otros usuarios puedan desplegarlas con un solo click.","DEVELOP_APP_DESC":"Puedes subir Charts de Helm o utilizar la herramienta de orquestación de recursos proporcionada por KubeSphere para desarrollar plantillas de aplicaciones.","DEVELOP_APP_TITLE":"Cómo desarrollar plantillas de aplicación?","HOW_PUBLISH_APP_TITLE":"Cómo publicar aplicaciones en la Tienda de Aplicaciones?","HOW_PUBLISH_APP_DESC":"KubeSphere actualmente admite la subida de Charts de Helm a través de plantillas de aplicación dentro del espacio de trabajo, donde puedes enviar tu plantilla para su revisión. Una vez que se apruebe la plantilla, podrás publicarla en la Tienda de Aplicaciones.","APP_STATUS_ACTIVE":"Released","APP_STATUS_DRAFT":"Unreleased","APP_STATUS_SUSPENDING":"Suspending","APP_TEMPLATE_EMPTY_DESC":"Please create an app template.","LATEST_VERSION":"Última versión","CREATE_APP_TEMPLATE":"Crear Plantilla de Aplicación","CREATE_APP_TEMPLATE_DESC":"La ligera, portable y autocontenida tecnología de empaquetado de software, permite que las aplicaciones se ejecuten de la misma manera en casi cualquier lugar.","APP_CREATE_GUIDE":"Ver la especificación de desarrollo de aplicaciones","UPLOAD":"Subir","UPLOAD_HELM_TITLE":"Subir un Chart de Helm empaquetado","UPLOAD_HELM_CHART_DESC":"Subir un Chart de Helm existente","HELM_CHART_FORMAT_DESC":"Subir tu Chart de Helm en el formato de fichero tar.gz o tgz.","UPLOAD_ICON":"Subir icono","UPLOAD_SUCCESSFUL":"Subida Satisfactoriamente","UPLOADING":"Subiendo","FILE_MAX_SIZE_ICON":"The maximum size of the icon is 96x96 pixels.","FILE_MAX_SCREENSHOTS":"El tamaño de la imagen no debe exceder 2M","APP_ICON_NOTE":"JPG o PNG menor o igual a 96px * 96px","MISS_FILE_NOTE":"No se encuentra el fichero {file}","LICENSE_FILE_DESC":"Protocolo en formato de texto","CHART_FILE_DESC":"YAML file that describes basic information about the chart such as the name and version.","README_FILE_DESC":"Introducción a la aplicación e instrucciones","REQUIREMENTS_FILE_DESC":"Archivos de descripción para almacenar otros charts que actualmente dependen del chart","VALUES_FILE_DESC":"Archivo de configuración predeterminado del chart","CHARTS_FILE_DESC":"Coloque otros chartys de los que depende actualmente el chart en este directorio","TEMPLATES_FILE_DESC":"Despliega el directorio de plantilla de archivo, completa el valor correspondiente en values.yaml y genera el archivo de configuración final de kubernetes","NOTES_FILE_DESC":"Guía de uso","INCORRECT_FILE":"Incorrect files? ","TRY_AGAIN":"Try Again","FILE_MAX_ICON_DESC":"The icon size should not exceed 20 KB. Please try again.","HOMEPAGE":"Página principal","OPTIONAL":"Opcional","DEVOPS_TIP_GITOPS_Q":"How do I get started with DevOps?","DEVOPS_TIP_GITOPS_A":"You can start using DevOps by creating a pipeline that is associated with the code repository and deploying steps with Kubernetes.","DEVOPS_TIP_TYPE_Q":"Which code repositories are supported by pipelines?","DEVOPS_TIP_TYPE_A":"Pipelines support code repositories of Git, GitHub, Gitlab, SVN, and Bitbucket.","DEVOPS_PROJECT_EMPTY_DESC":"Please create a DevOps project.","CREATE_DEVOPS_PROJECT":"Create DevOps Project","DEVOPS_PROJECT_CREATE_DESC":"DevOps is a separate namespace that defines a set of pipelines. Users can group their pipelines themselves (for example, project type and organization type).","DEVOPS_BASEINFO_DESC":"Please set the basic information of the DevOps project","PATTERN_NAME_INVALID_TIP":"Invalid name. The name can contain only lowercase letters, numbers, and hyphens (-).","NO_DEVOPS_INSTALL":"DevOps not installed","DEVOPS_ADMIN_DESC":"Select a project member as the project administrator.","DELETE_MULTIPLE_DEVOPS_PROJECTS":"Delete Multiple DevOps Projects","DELETE_DEVOPS_PROJECT":"Delete DevOps Project","DELETE_DEVOPS_PROJECT_TIP":"Enter the DevOps project name {resource} to confirm that you understand the risks of this operation.","DELETE_DEVOPS_PROJECT_TIP_PL":"Enter the DevOps project names {resource} to confirm that you understand the risks of this operation.","HOW_TO_APPLY_MORE_CLUSTER_Q":"¿Cómo solicitar más clústeres para el espacio de trabajo?","HOW_TO_APPLY_MORE_CLUSTER_A":"Contact the platform or cluster administrator to apply for more clusters.","OVERVIEW":"Visión global","WORKSPACE_OVERVIEW_DESC":"Workspace proporciona a KubeSphere una plataforma segura, aislada y accesible. Aquí puedes ver el estado de ejecución de los recursos en el espacio de trabajo actual.","ROLE_PL":"Roles","PHYSICAL_RESOURCES":"Uso de recursos físicos","CRONJOB":"CronJob","CLUSTER_VALUE":"Cluster: {value}","SORT_BY_WORKSPACE_MEMORY_USAGE":"Ordenar por uso de memoria (con cache)","SORT_BY_WORKSPACE_MEMORY_USAGE_WO_CACHE":"Ordenar por uso de memoria (sin cache)","SORT_BY_WORKSPACE_POD_COUNT":"Sort by pod quota usage (%)","SORT_BY_WORKSPACE_CPU_USAGE":"Ordenar por uso de CPU","SORT_BY_WORKSPACE_NET_BYTES_TRANSMITTED":"Ordenar por tráfico saliente","SORT_BY_WORKSPACE_NET_BYTES_RECEIVED":"Ordenar por tráfico entrante","PROJECT_EMPTY_DESC":"Please create a project.","CREATE_PROJECT":"Crear proyecto","CREATE_MULTI_CLUSTER_PROJECT":"Crear proyecto de clúster múltiple","CREATE_MULTI_CLUSTER_PROJECT_DESC":"Un proyecto multi-clúster se ejecuta sobre distintos clústers a la vez, lo que ayuda a que puedas construir un entorno de contenedores para una rápida iteración de aplicaciones y conseguir alta disponibilidad.","MULTI_CLUSTER_PROJECT_PL":"Proyectos de clústeres múltiples","FED_HOST_NAMESPACE_TIP":"Por favor, no manipules los recursos de este proyecto puesto que pertence a un proyecto multicluster","MULTI_CLUSTER_PROJECT":"Proyecto de clúster múltiple","PROJECT_NAME_EXISTS_IN_HOST":"The project name exists on the host cluster.","SELECT_CLUSTER_DESC":"Selecciona el clúster para crear el proyecto.","CLUSTER_EMPTY_DESC":"Selecciona un cluster, por favor.","PROJECT_NAME_EXISTS_IN_CLUSTER":"El nombre existe en {cluster}","PROJECT_CLUSTER_SETTINGS_DESC":"Selecciona el clúster para crear el proyecto. Cuando se seleccionan varios grupos, se creará un proyecto de múltiples grupos.","FEDPROJECT_CANNOT_ADD_CLUSTER":"Unable to add a new cluster","WORKSPACE_SETTINGS":"Configuración del espacio de trabajo","WORKSPACE_BASIC_INFO_DESC":"Basic information provides the overview of the workspace. You can view the basic information of the workspace.","WORKSPACE_BASE_INFO_Q1":"¿Cómo solicitar más clústeres para el espacio de trabajo?","WORKSPACE_BASE_INFO_A1":"Contact the platform or cluster administrator to apply for more clusters.","WORKSPACE_INFO":"Información del espacio de trabajo","WORKSPACE_MEMBER_TCAP":"Workspace member","WORKSPACE_MEMBER_TCAP_PL":"Workspace members","WS_MEMBER_SCAP":"Workspace member","WS_MEMBER_SCAP_PL":"Workspace members","DEVOPS_PROJECT_TCAP":"DevOps project","DEVOPS_PROJECT_TCAP_PL":"DevOps projects","DEVOPS_PROJECT_LOW":"DevOps project","DEVOPS_PROJECT_LOW_PL":"DevOps projects","PROJECTS":"Projects","ON":"On","OFF":"Off","WS_NETWORK_ISOLATION":"Aislamiento de red de espacio de trabajo","NETWORK_POLICY_UNINSATLLED_DESC":"The network policy component is not installed in this cluster.","DELETE_DESC":"Are you sure you want to delete the resource? The resource cannot be restored after it is deleted.","DELETE_WORKSPACE_PROJECTS_DESC":"Eliminar el proyecto asociado con el espacio empresarial","DELETE_WORKSPACE_DESC":"El espacio de trabajo no se puede restaurar después de ser eliminado y los recursos en el espacio de trabajo también se eliminarán.","DELETE_WORKSPACE_TIP":"¿Estás seguro de eliminar el espacio de trabajo {resource} ? No podrás recuperarlo, y los recursos en el espacio de trabajo también se eliminarán.","DEPARTMENT_PL":"Departments","DEPARTMENT_DESC":"A department in a workspace is a logical unit used for permission control. You can set a workspace role, multiple project roles, and multiple DevOps project roles in a department, and assign users to the department to control user permissions in batches.","NOT_ASSIGNED_TCAP":"Not Assigned","ADD_MEMBER_TIP_SI":"Are you sure you want to assign the user to {group}?","ADD_MEMBER_TIP_PL":"Are you sure you want to assign the users to the department {group}?","ASSIGNED":"Assigned","DEPARTMENT":"Department","SET_DEPARTMENTS":"Set Departments","DEPARTMENT_EMPTY_DESC":"No Department Available","NO_DEPARTMENT_TIP":"No department available. Please create a department on the right.","CREATE_DEPARTMENT":"Create Department","DELETE_GROUP_TIP":"Está seguro de eliminar el subdepartamento {group_name} ? Al eliminar el departamento, también se cancelará la autorización de todos los miembros. ","DELETE_PARENT_GROUP_TIP":"Está seguro de que desea eliminar el subdepartamento {group_name} ? Al eliminar el departamento, también se eliminarán sus subdepartamentos y se cancelará la autorización de todos los miembros. ","PROJECT_VALUE":"Project: {value}","PROJECT_ROLE_VALUE":"Project role: {value}","DEVOPS_VALUE":"DevOps project: {value}","DEVOPS_PROJECT_ROLES_VALUE":"DevOps project role: {value}","WORKSPACE_ROLE":"rol del espacio de trabajo","GROUP_WORKSPACE_ROLE_DESC":"La función del espacio de trabajo se asignará a todos los miembros del departamento.","MEMBER_CLUSTER_UPGRADE_TIP":"Member clusters with versions earlier than {version} do not support this function. Please upgrade the member clusters to {version} or later.","PROJECT_ROLE":"Rol del proyecto","SELECT_ROLE_TIP":"Please select a role.","ADD_PROJECT":"Agregar proyecto","CLUSTER_UPGRADE_REQUIRED":"The cluster version does not support this function. Please upgrade the cluster to {version} or later.","DEVOPS_PROJECT_ROLE":"DevOps Project Role","ADD_DEVOPS_PROJECT":"Agregar proyecto DevOps","DEVOPS_PROJECTS":"DevOps Projects","WORKSPACE_MEMBERS":"Workspace Members","WORKSPACE_MEMBER_PL":"Workspace Members","WORKSPACE_MEMBER_DESC":"Workspace members can view or manage workspace resources. You can manage members and control their permissions in the workspace.","WORKSPACE_MEMBER_EMPTY_DESC":"Please invite a user to the workspace.","ROLE":"Role","REMOVE_MEMBER":"Eliminar miembro","REMOVE_MULTIPLE_MEMBERS":"Remove Multiple Members","REMOVE_MULTIPLE_MEMBERS_TIP":"Enter the usernames {resource} to confirm that you understand the risks of this operation.","INVITE_WORKSPACE_MEMBER_DESC":"You can invite members to the workspace.","INVITE_MEMBER":"Invite Member","INVITE":"Invite","INVITED_SUCCESSFULLY":"Invited successfully.","REMOVE_MEMBER_TIP":"¿Estás seguro de que deseas eliminar el miembro {resource} ?","WORKSPACE_QUOTA_PL":"Workspace Quotas","WORKSPACE_QUOTAS_DESC":"Workspace quotas are used to control the total resource usage of all projects and DevOps projects in a workspace.","RESOURCE_QUOTA_PL":"Cuota de recursos","USED_PERCENT":"Used: {percent}%","RESOURCE_LIMIT":"Resource limit","EDIT_WORKSPACE_QUOTAS":"Edit Workspace Quotas","CPU_REQUEST":"CPU Request","CPU_LIMIT":"limit.cpu","MEMORY_REQUEST":"Memory Request","MEMORY_LIMIT":"limits.memoria","WORKSPACE_ROLE_PL":"Roles del espacio de trabajo","WORKSPACE_ROLE_DESC":"El rol del espacio de trabajo determina los permisos del rol en el espacio de trabajo actual.","WORKSPACE_ROLE_EMPTY_DESC":"Please create a workspace role.","ROLE_WORKSPACE_ADMIN":"Manage all resources in the workspace.","ROLE_WORKSPACE_REGULAR":"Usuario normal en el espacio de trabajo que no puede crear espacios de nombres o proyectos DevOps.","ROLE_WORKSPACE_VIEWER":"Permite el acceso de lectura para ver todos los recursos en el espacio de trabajo.","ROLE_WORKSPACE_SELF_PROVISIONER":"Usuario normal en el espacio de trabajo que puede crear espacios de nombres y proyectos DevOps.","CREATE_WORKSPACE_ROLE":"Crear rol de espacio de trabajo","WORKSPACE_ROLE_NAME_TIP":"The role name is used as the unique identifier of the role.","NEXT_STEP":"Next Step","NEXT_STEP_DESC":"You need to further edit permissions of the role.","PERMIGROUP_PROJECTS_MANAGEMENT":"Projects","PERMISSION_PROJECTS_VIEW":"Project Viewing","PERMISSION_PROJECTS_VIEW_DESC":"View all projects in the workspace.","PERMISSION_PROJECTS_MANAGEMENT":"Project Management","PERMISSION_PROJECTS_MANAGEMENT_DESC":"Create, edit, and delete projects in the workspace.","PERMISSION_PROJECTS_CREATE":"Project Creation","PERMISSION_PROJECTS_CREATE_DESC":"Create projects and become an administrator of the created projects.","PERMIGROUP_DEVOPS_MANAGEMENT":"DevOps Projects","PERMISSION_DEVOPS_VIEW":"DevOps Project Viewing","PERMISSION_DEVOPS_VIEW_DESC":"View all DevOps projects in the workspace.","PERMISSION_DEVOPS_MANAGEMENT":"DevOps Project Management","PERMISSION_DEVOPS_MANAGEMENT_DESC":"Create, edit, and delete DevOps projects in the workspace.","PERMISSION_DEVOPS_CREATE":"DevOps Project Creation","PERMISSION_DEVOPS_CREATE_DESC":"Create DevOps projects and become an administrator of the created DevOps projects.","PERMISSION_APPS_MANAGEMENT":"Gestión de Alicaciones","PERMISSION_WORKSPACE_APP_REPOS_VIEW":"App Repository Viewing","PERMISSION_WORKSPACE_APP_REPOS_VIEW_DESC":"View app repositories in the workspace.","PERMISSION_WORKSPACE_APP_REPOS_MANAGEMENT":"App Repository Management","PERMISSION_WORKSPACE_APP_REPOS_MANAGEMENT_DESC":"Create, edit, and delete app repositories in the workspace.","PERMISSION_WORKSPACE_APP_TEMPLATES_VIEW":"App Template Viewing","PERMISSION_WORKSPACE_APP_TEMPLATES_VIEW_DESC":"View app templates in the workspace.","PERMISSION_WORKSPACE_APP_TEMPLATES_MANAGEMENT":"Gestión de plantillas de aplicaciones del espacio de trabajo","PERMISSION_WORKSPACE_APP_TEMPLATES_MANAGEMENT_DESC":"Upload, edit, and delete workspace app templates, and release and delete apps in the platform App Store.","PERMISSION_WORKSPACE_GROUPS_VIEW":"Department Viewing","PERMISSION_WORKSPACE_GROUPS_VIEW_DESC":"View the structure and members of workspace departments.","PERMISSION_WORKSPACE_GROUPS_MANAGEMENT":"Department Management","PERMISSION_WORKSPACE_GROUPS_MANAGEMENT_DESC":"Manage the structure, members, and permissions of workspace departments.","PERMISSION_WORKSPACE_MEMBERS_VIEW":"Vista de miembros del proyecto","PERMISSION_WORKSPACE_MEMBERS_VIEW_DESC":"View workspace members.","PERMISSION_WORKSPACE_MEMBERS_MANAGEMENT":"Gestión de miembros de proyecto","PERMISSION_WORKSPACE_MEMBERS_MANAGEMENT_DESC":"Invite, edit, and delete workspace members.","PERMISSION_WORKSPACE_ROLES_VIEW":"Vista de roles de proyecto","PERMISSION_WORKSPACE_ROLES_VIEW_DESC":"View workspace roles.","PERMISSION_WORKSPACE_ROLES_MANAGEMENT":"Gestión de Roles de Proyecto","PERMISSION_WORKSPACE_ROLES_MANAGEMENT_DESC":"Create, edit, and delete workspace roles except system preset roles.","PERMIGROUP_WORKSPACE_SETTINGS":"Configuración del espacio de trabajo","PERMISSION_WORKSPACE_SETTINGS_VIEW":"Workspace Settings Viewing","PERMISSION_WORKSPACE_SETTINGS_VIEW_DESC":"Usuario normal en el espacio de trabajo que no puede crear espacios de nombres o proyectos DevOps.","PERMISSION_WORKSPACE_SETTINGS_MANAGEMENT":"Workspace Settings Management","PERMISSION_WORKSPACE_SETTINGS_MANAGEMENT_DESC":"Manage workspace settings and edit workspace information and network policies.","abortPipeline":"abortPipeline","Absolute duration":"Duración total","Add another credential":"Agregar otra credencial","Add conditions":"Agregar condiciones","Add nesting conditions":"Agregar condiciones anidadas","Add nesting steps":"Agregar pasos anidados","Add Parallel Stage":"Agregar pasos paralelos","Add Step":"Agregar paso","archiveArtifacts":"archiveArtifacts","Are you sure to close this pipeline Editor ?":"¿Estás seguro de cerrar este editor de pipeline?","artifacts":"artefactos","Authentication Token":"Token de autenticación","Automatically generated by GitHub":"Generado automáticamente por GitHub","bcc":"bcc","BEHAVIORAL_STRATEGY":"Estrategia de comportamiento","blocker":"bloqueador","BLOCKER":"Blocker","NOTICE":"Notice","Branches":"Ramas","branch success":"Rama correcta","@somebody to help review":"¿Puede @alguien ayudar a revisar esto?","Send messages by email":"Puedes enviar mensajes por correo electrónico.","Send messages in the build":"Puedes enviar mensajes en la compilación","Change Current Directory":"Cambiar directorio actual","Chinese is not allowed in the pipeline configuration":"El chino no está permitido en la configuración de la pipeline","Clean when aborted":"Limpiar cuando aborte","Clean Workspace":"Limpiar entono de trabajo","Code Quality Check":"Código de control de calidad","COMMIT_ID":"Commit ID","Config File Path":"Ruta del archivo de configuración","config name":"nombre de configuración","configs":"configs","Configuration error":"Error de configuración","container":"contenedor","Continue":"Seguir","credential Id":"ID de autentificación","Credential Id":"ID de autentificación","credentialsId":"credenciales","critical":"crítico","Current branch name must match the input value":"El nombre de la rama actual debe coincidir con el valor de entrada","defaultValue -1 means not to discard":"defaultValue -1 significa no descartar","Delete all resources of the deployment file":"Eliminar todos los recursos del archivo de despliegue","Deploy resources to the Kubernetes cluster":"Implementar recursos en el clúster de Kubernetes","Didn't pass":"No pasó","dir":"directorio","Discard":"Descarte","Discover branches from repository":"Descubrir ramas desde el repositorio","DISCOVER_PR_FROM_FORKS":"Descubrir PR desde Forks","DISCOVER_PR_FROM_ORIGIN":"Descubrir PR desde Origin","Discover pull requests from forks":"Descubrir las PR desde forks","Discover pull requests from origin":"Descubrir las PR desde origin","Docker Container Registry Credentials":"credenciales de Docker Container Registry","Docker Registry URL":"URL del Docker Registry","dockerCredentials":"dockerCredentials","Drag and drop tasks to sort":"Arrastra y suelta tareas para ordenar","Duration":"Duración","echo":"echo","Edit Config":"Editar la configuración","Edit Credential":"Editar credenciales","Enable Variable Substitution in Config":"Habilitar la sustitución de variables en la configuración","enableConfigSubstitution":"enableConfigSubstitution","Enter an expression":"Introdir una expresión","Environment name":"Nombre del entorno","Executes the code inside the block with a determined time out limit.":"Ejecuta el código dentro del bloque con un límite de tiempo determinado.","expression":"expresión","Failure":"Fallo","For accessing GitHub":"Para acceder a GitHub","get token":"obtener token","info":"informacion","input":"entrada","Inspection results do not affect subsequent tasks":"Los resultados de la inspección no afectan las tareas posteriores.","instance failed to match at least one schema":"la instancia no ha modido compararse con al menos un esquema","Internal nested conditions only need to satisfy one":"Las condiciones anidadas solo necesitan cumplir una condición","Internal nesting conditions must be matched":"Las condiciones internas de anidación deben coincidir","Jenkinsfile syntax error, message":"Error de sintaxis de Jenkinsfile, mensaje","key File Variable":"variable de archivo clave","keyFileVariable":"keyFileVariable","Kubeconfig Variable":"Variable de Kubeconfig","Kubernetes Namespace for Secret":"Namespace de Kubernetes para el Secret","Kubernetes Secrets":"Secrets de Kubernetes","Line":"Línea","Load credentials into environment variables":"Cargue credenciales en variables de entorno","Load the sonarqube configuration provided by Jenkins into the Pipeline.":"Cargue la configuración de sonarqube proporcionada por Jenkins en la Pipeline.","mail":"correo","major":"mayor","minor":"menor","Missing one or more required properties: 'name'":"Falta una o más propiedades requeridas: 'nombre'","Negative prefix":"Prefijo negativo","NO_BRANCH_FOUND_TIP":"No se encontraron ramas","No need":"No necesario","Normal":"Normal","Not Build":"Sin Build","Not fail build":"Build no fallida","not support edit nested stage":"no admite editar en la fase anidada","passphrase Variable":"Variable de passphrase","passphraseVariable":"passphraseVariable","Password Variable":"Variable de contraseña","passwordVariable":"Variable de contraseña","PIPELINE_LOW":"pipeline","Pipeline Configuration":"Configuración de Pipeline","Pipeline List":"Lista de Pipelines","pipeline syntax error":"error de sintaxis en la Pipeline","Please add at least one step.":"Por favor agregue al menos un paso.","Please input images name":"Por favor introduce el nombre de las imágenes","Please input the credential name.":"Por favor introduce el nombre de la credencial.","Press enter for the next":"Presione enter para ir al siguiente paso","Print message":"Imprimir mensaje","Pull code by Git":"Pull código con Git","Pull code by SVN":"Pull código con SVN","Queue":"Cola","Recipient":"Recipiente","Registry Credentials":"Credenciales de registro","remote":"remoto","Run Pipeline":"Ejecutar pipeline","Save Artifact":"Guardar artefacto","Repo Scanned Successfully":"Repo Scanned Successfully","WEBHOOK_PUSH":"Webhook Push","secretName":"secretName","secretNamespace":"secretNamespace","SELECT_THIS_REPOSITORY":"Selecciona este repositorio","Sender":"Remitente","sh":"sh","Shell commands can be executed in the container":"Los comandos de shell se pueden ejecutar en el contenedor","Show Advanced Settings":"Mostrar configuración avanzada","show yaml editor":"muestre el editor de yaml","sonar is the default config name.":"sonar es el nombre de configuración predeterminado.","Sorry, you don't have the permission to do this.":"Lo sentimos, no tienes permiso para hacer esto.","Specify a container to add nested tasks to execute inside the container":"Especifique un contenedor para agregar tareas anidadas para ejecutar dentro del contenedor","Start the follow-up task after the inspection":"Inicie la tarea de seguimiento después de la inspección.","Started By":"Empezado por","Subject":"Tema","submitter":"remitente","submitterParameter":"submitterParameter","Text Variable":"Variable de texto","The conditions required to implement the current phase (optional).":"Las condiciones requeridas para implementar la fase actual (opcional).","The environment variable entered before running the pipeline is match the current value.":"La variable de entorno ingresada antes de ejecutar la pipeline coincide con el valor actual.","The label on which to run the Pipeline or individual stage":"La etiqueta en la que se ejecuta la pipeline o la fase individual","This name has been used.":"Este nombre ha sido usado.","Time Used":"Tiempo utilizado","Timeout":"Se acabó el tiempo","timeout":"se acabó el tiempo","Timeout after no activity in logs for this block":"Tiempo de espera agotado tras inactividad en los logs deregistro de este bloque","timer":"temporizador","TRIGGER_REMOTE_BUILD":"Ejecutar una build remota (por ejemplo, usando un script)","Unnamed":"Sin nombre","Use the following URL to remotely triggerworkbench the build":"Utilice la siguiente URL para activar remotamente el triggerworkbench en el build","User types that can trigger builds":"Tipos de usuarios que pueden desencadenar compilaciones","username or group name, multiple values ​​used, separated":"nombre de usuario o nombre de grupo, múltiples valores utilizados, separados","Username Variable":"Variable Username","usernameVariable":"usernameVariable","waitForQualityGate":"waitForQualityGate","Webhook":"Webhook","withCredentials":"con credenciales","withSonarQubeEnv":"withSonarQubeEnv","Wrong Token":"Token incorrecto","You can execute shell commands or windows batch commands in the build.":"Puedes ejecutar comandos de shell o comandos por lotes de Windows en el build.","PIPELINE_DESC":"A pipeline is an extensible set of tools that can be combined\n to achieve continuous integration and continuous delivery.\n You can create and manage pipelines on this page.","username_password":"Credenciales de cuenta","login_Plateform":"Plataforma de inicio de sesión","CREDENTIALS_DESC":"Credentials are objects that contain some sensitive data,\n such as username and password, SSH key and Token.\n They are used to provide authentication for pulling code,\n pushing/pulling images, executing SSH scripts, etc. when a pipeline is running.","AUTHENTICATION_TOKEN_TIP":"Enable this option if you need to\n trigger a build by accessing a predefined URL.\n A typical use of this feature is to trigger through the source code\n management system's hook script.\n You need to provide an authorization token in the form of a string so that\n only the person with the authorization token can trigger the remote build.","CRON_TIP":"This field follows the cron syntax (slightly different).\n Specifically, each line contains 5 fields separated by tabs or spaces.\n minutes: the first few minutes of an hour (0-59)\n hours: the first few hours of the day (0-23)\n the days of the month: the first few days of a month (1-31 )\n Month: The first few days of the first few days (0-12), the first few days of the week (0-12),\n 0 and 7 are Sundays. ","PIPELINES_BASEINFO_DESC":"Introduce la información básica de la pipeline.","PIPELINE_ADVANCE_SETTINGS_DESC":"Configure una política de comportamiento compleja para la pipeline (Opcional).","CREDENTIALS_CREATE_DESC":"Crear credenciales para proyectos DevOps","CHECKOUT_DESC":"Código de extracción; a menudo se usa para extraer código no git, como svn.","PRIVATE_IMAGE_DESC":"To deploy from a private image repository,\n you need to create a mirrored repository and then pull the image. ","AUTHENTICATION_TOKEN_DESC":"Use the following URL to remotely trigger the build:\n JENKINS_URL / job / JOB_NAME / build? Token =TOKEN_NAME or /buildWithParameters?\n Token = TOKEN_NAME You can choose to append &cause=reason to provide the text that\n will be included in the build reason for the record. ","PIPELINE_NO_CONFIG":"El archivo de configuración relevante no se encontró en la pipeline actual","EDIT_CREDENTIAL_DESC":"El siguiente formulario no mostrará la información de credenciales original. Volver a ingresarlo lo sobrescribirá.","pipeline_conditions":"Condiciones","CODE_SMELL":"Olor de código","BUG":"Insecto","VULNERABILITY":"Vulnerabilidad","SECURITY_HOTSPOT":"Punto de acceso de seguridad","PIPELINE_CREATE_DESC":"La ejecución de la tarea de Pipeline comenzará después de que se complete la inicialización.","PIPELINE_QUEUED_DESC":"Debe esperar a que el agente se inicie y ejecute la canalización (tenga en cuenta que si el agente no se ha iniciado durante mucho tiempo, verifique la configuración del agente y los recursos del clúster).","waitForQualityGate_desc":"Los estándares de control de calidad del código se derivan de la puerta de calidad de SonarQube. Si necesita personalizar los estándares, vaya a la configuración de SonarQube.","REVIEW_DESC":"Cuando la pipeline se ejecute aquí, esta tarea se suspenderá y podrás optar por continuar o finalizar después de la revisión.","INPUT_DESC":"Cuando la canalización se ejecuta aquí, la tarea se suspenderá, y el creador y @somebody pueden elegir continuar o finalizar la canalización.","LoadPrevData_Desc":"Se detectó que esta pipeline no se editó correctamente la última vez. ¿Se cargan los últimos datos para continuar editando?","withSonarQubeEnv_DESC":"Localice rápidamente errores potenciales u obvios en su código","waitForQualityGate_DESC":"Ejecutado después de realizar el análisis de código","script_DESC":"Ejecutar script maravilloso","pipeline_owner":"El propietario del proyecto DevOps, con la máxima autorización del proyecto, puedes realizar todas las operaciones.","pipeline_maintainer":"El responsable del proyecto DevOps puedes realizar credenciales y configuración de canalización en el proyecto DevOps","pipeline_developer":"El desarrollador del proyecto DevOps puedes activar y ver la pipeline","pipeline_reporter":"El observador del proyecto DevOps solo puedes ver los recursos del proyecto","PATTERN_PIPELINE_NAME_VALID_NAME_TIP":"Nombre no válido (admite letras mayúsculas y minúsculas, números, \"_\" y \"-\")","GET_GITHUB_TOKEN_DESC":"Para acceder a GitHub\n \n Get Token\n ","PIPELINES_FOOTER_SEE_MORE":"Vaya a la página de detalles de la sucursal para ver más.","JENKINS_LINS_ERROR":"tiene un error de sintaxis en la línea {line}.","Invalid credential ID":"Invalid credential ID","Batch Run Fail":"Batch Run Failed","Run Start":"Start Running","Choose a Pipeline Template":"Choose a Pipeline Template","DEVOPS_PROJECT_DESC":"DevOps projects are used to group resources and control the resource management permissions of different users."} \ No newline at end of file diff --git a/packages/bootstrap/assets/v3dist/locale-tc.2e6ab7e8d466f08b3516.json b/packages/bootstrap/assets/v3dist/locale-tc.2e6ab7e8d466f08b3516.json deleted file mode 100644 index 92233d20a95..00000000000 --- a/packages/bootstrap/assets/v3dist/locale-tc.2e6ab7e8d466f08b3516.json +++ /dev/null @@ -1 +0,0 @@ -{"DELETE_CUSTOM_SCALING_WITH_WORKLOAD":"Associated custom scaling policies will be deleted after the workload is deleted.","ENT_TITLE":"KubeSphere Enterprise","KS_QKCP_DESCRIPTION":"KubeSphere Enterprise is an enterprise-grade container platform developed by QingCloud based on the open-source KubeSphere platform.","ABOUT_KUBESPHERE_ENTERPRISE":"About KubeSphere Enterprise","KUBESPHERE_CLOUD_DESC":"KubeSphere Cloud builds a Kubernetes-centric digital ecosystem to provide customers with enterprise-level cloud-native services of high quality. It offers KubeSphere Backup, Inspector, and Lite to help you manage, protect, and deliver production-ready applications more efficiently.","APP_AUTHORIZED":"App is authorized","APP_UNAUTHORIZED":"The application is not authorized","APP_UNAUTHORIZED_DESC":"This app is unauthorized.","VIEW_EVENTS":"View Events","GPU_MEMORY":"Graphics memory","EDIT_TAGS":"Edit Tags","ADD_TAGS":"Add Tags","GPU_TEMP":"GPU Temperature","GPU_ENERGY_USAGE":"GPU Power (W)","GPU_ENERGY_NO_PERCENT_TCAP":"GPU Power","GPU_MEMORY_USAGE_STATUS":"Graphics Memory Usage","NODE_GPU_MEMORY_USAGED":"Used","NODE_GPU_MEMORY_UNUSAGED":"Available","ENT_CLUSTER_GATEWAY_DESC":"Set up and manage the configuration of the external network access gateway and service management in the cluster, workspace and project.","ENT_CLUSTER_ENABLE_GATEWAY_DESC":"Before creating a route, you need to enable the external network access portal, that is, the gateway. This step is to create the corresponding route controller to forward requests to the back-end service.","WORKSPACE_GATEWAY_PL":"Workspace Gateways","WORKSPACE_GATEWAY_NOT_ENABLED":"Workspace Gateway Not Enabled","ENT_WORKSPACE_ENABLE_GATEWAY_DESC":"The workspace gateway cannot be set on the cluster management page. If you need to set it, go to the corresponding workspace.","ENT_PROJECT_ENABLE_GATEWAY_DESC":"The project gateway cannot be set on the cluster management page. If you need to set it, go to the corresponding project.","OPENSEARCH_DESC":"You can use the OpenSearch log receiver to ingest log data into an OpenSearch database. To use this feature, you need to deploy OpenSearch in advance.","LOG_COLLECTION_OS_URL_TIPS":"IP address or hostname of the target OpenSearch instance","LOG_COLLECTION_OS_USER_TIPS":"Optional username credential for access","LOG_COLLECTION_OS_PASSWORD_TIPS":"Password for user defined in HTTP_User","BATCH_MANAGE":"Batch Manage","HAS_SAME_TAG":"The tag already exists. Please select another tag.","CLUSTER_REPEATED_TAGS_DESC":"The tag keys must be unique for each cluster.","CLUSTER_MAX_TAGS_DESC":"The cluster can bind up to five tags.","EMPTY_TAG_LABEL_DESC":"Please enter the tag key","EMPTY_TAG_VALUE_DESC":"Please enter the tag value","HAS_ADD_TAGS":"Added tags","CLUSTER_TYPE_DESC":"Select a type to identify the purpose of the cluster.","DELETE_CLUSTER_SWIPE_DESC":"I understand the risks of this operation.","DELETE_CLUSTER_NOTIFICATION_CONFIGURAITON":"Delete all notification configuration data in the cluster","REMOVE_CLUSTER_TIP_C":"After the cluster is removed, multi-cluster configuration data in the cluster will not be cleared automatically. Uninstalling KubeSphere or deleting related resources may cause user data loss. You must manually clear the multi-cluster configuration data in the removed cluster by refering to the \"Remove a Member Cluster\" section in the KubeSphere Enterprise Cluster Management Guide.","CLUSTER_TAG":"Cluster Tag","CLUSTER_TAGS":"Cluster tags","NO_CLUSTER_TAGS":"No cluster tags found","NO_CLUSTER_TAGS_DESC":"Please create a cluster tag","CLUSTER_TAG_ADD_HELP":"If there is no appropriate tag, you can","CLUSTER_TAG_TOOLTIP_CONTENT":"Only one tag value of the same tag key can be bound on the same cluster. Each cluster can bind up to 5 tags. ","CLUSTER_LABEL":"Cluster ID","CLUSTER_LABEL_DESC":"Identifies the purpose of the cluster. ","CLUSTER_LABEL_TOOLTIP_CONTENT":"It is recommended to identify the cluster by label, and the \"cluster identification\" function will be removed in subsequent versions, please use it with caution. ","TAG_PL":"Tags","CREATE_TAGS":"Create Tags","CREATE_TAGS_DESC":"The keys of different tags can be the same.","ENT_CLUSTER_TAG_DESC":"The key and value cannot be empty. The maximum length is 63 characters.","CLUSTER_TAG_EMPTY_DESC":"Please add a tag.","DELETE_MULTIPLE_TAGS":"Delete Multiple Tags","DELETE_TAG":"Delete Tag","DELETE_CLUSTER_TAG_DESC":"All clusters bound to the tag will be unbound after the tag is deleted.","DELETE_CLUSTER_TAG_CONFIRM_DESC":"Please enter the tag key and value {resource} to confirm that you understand the risks of this operation.","DELETE_CLUSTER_TAGS_CONFIRM_DESC":"Please enter the tag key value {resource} to confirm you understand the risk of this operation.","EDIT_TAG":"Edit Tag","ADD_TO_CLUSTERS":"Add to Clusters","ADD_TAG_TO_CLUSTERS":"Add Tag to Clusters","ADD_TAG_DESC":"The tag keys must be unique for each cluster. New tags do not overwrite existing tags.","ADD_TAG_SUCCESSFUL":"The tag was added successfully.","REMOVE_FROM_CLUSTERS":"Remove from Clusters","REMOVE_TAG_FROM_CLUSTERS":"Remove Tag from Clusters","REMOVE_TAG":"Remove Tag","REMOVE_TAG_DESC":"Are you sure you want remove the tag from the cluster?","REMOVE_TAG_SUCCESSFUL":"The tag was removed successfully.","NO_CLUSTER_FOUND":"No Cluster Found","NAME_DESC_LENGTH":"The name can contain only lowercase letters, numbers, and hyphens (-), and must start and end with a lowercase letter or number. The maximum length is {length} characters.","INVALID_NAME_DESC_LENGTH":"Invalid name. The name can contain only lowercase letters, numbers, and hyphens (-), and must start and end with a lowercase letter or number. The maximum length is {length} characters.","DEFAULT_IMAGE_REGISTRY":"Default image registry","DEFAULT_IMAGE_REGISTRY_TCAP":"Default Image Registry","SET_AS_DEFAULT":"Set as Default","SET_AS_DEFAULT_REGISTRY_DESC":"Set the image registry as the default image registry. Unless otherwise specified, the system uses images from the default image registry to create containers. Only one default image registry is allowed in each project.","SET_DEFAULT_REGISTRY_SUCCESSFUL":"The registry was set as the default image registry successfully.","ACTIVATION_CONDITION_SCAP":"Activation condition","ALERTING_RULE_NAME":"Alerting Name","REFERENCE":"Reference","NO_MONITOR_METRIC":"The alert rule is inactive and no monitoring data is available.","DISABLE_MULTIPLE_ALERTING_POLICIES":"Disable Multiple Rule Groups","ENABLE_ALERTING_POLICY":"Enable Rule Group","ENABLE_MULTIPLE_ALERTING_POLICIES":"Enable Multiple Rule Groups","DISABLE_ALARM_TIP":"After the rule group is disabled, the system will stop generating alerts for the monitored resources. Exercise caution when performing this operation.","RESET_MULTIPLE_ALERTING_POLICIES":"Reset Multiple Rule Groups","RESET_MULTIPLE_ALERTING_POLICIES_DESC":"Are you sure you want to reset the rule groups {name}?","RESET_SUCCESSFUL":"Reset successful","BUILT_IN_POLICIES_TOOLTIP":"After the Whizard Observability Center is enabled, please log in as a user assigned the platform-admin role and manage default rule groups in the Whizard Observability Center.","Rule":"Rule","RULES_LIST_EMPTY":"Please set an alert rule.","DURATION_REQUIRED":"Please set the duration.","OPERATOR_REQUIRED":"Please set the operator.","NETWORK_BANDWIDTH":"Network Bandwidth","FUNCTION_UPGRADE":"功能升級","FUNCTION_UPGRADE_DESC":"該集群下不支持容器組 IP 池的禁用、遷移和 Overlay 模式的編輯功能,如需使用請升級集群至 KubeSphere 企業版 3.4.0 及以上版本。","IPPOOL_OVERLAY_MODE":"Overlay 模式","IPPOOL_BLOCK_SIZE":"IP 池塊大小","EDIT_OVERLAY":"編輯 Overlay 模式","FEATURE_UPGRADE":"特性升級","IPPOOL_USED_TIP":"容器組 IP 池已被容器組使用時,無法分配企業空間和刪除 IP 池。如果存在正在使用容器組 IP 池的容器組,需要為容器組指定其他容器組 IP 池或刪除容器組。","IP_POOL_RANGE":"IP 池範圍","EDIT_POD_IP_POOL":"編輯容器組 IP 池","ENTER_NETWORK_SEGMENT":"請輸入網段。","POD_IP_POOL_IP_RANGE":"容器組 IP 池的 IP 範圍","POD_IP_POOL_NAME_DESC":"名稱只能包含小寫字母、數字和連字符(-),必須以小寫字母或數字開頭或結尾,最長 63 個字符。","IPIP_MODE":"IPIP 模式","IPIP_MODE_REQUIRED":"請選擇一種 IPIP 模式。","IPIP_MODE_DESC":"在每個節點上創建一個 IP in IP 隧道來實現容器之間的通信,不能與 VXLAN 同時設置,兩者都不設置時轉變為 BGP 模式。","CONFIGURATION_MODE":"配置模式","VXLAN_MODE":"VXLAN 模式","VXLAN_MODE_REQUIRED":"請選擇一種 VXLAN 模式。","VXLAN_MODE_DESC":"在每個節點上創建一個 VXLAN 隧道來實現容器之間的通信,不能與 IPIP 同時設置,兩者都不設置時轉變為 BGP 模式。","IP_POOL_BLOCK_SIZE_DESC":"IP 池用於分配 IP 的 block 的 CIDR 大小。","NAT_OUTGOING_DESC":"通過 NAT 方式跨 IPPool 通信","OPEN_NAT_OUTGOING":"開啟 NAT outgoing","CLOSE_NAT_OUTGOING":"關閉 NAT outgoing","OPEN":"開啟","OPENED":"已開啟","CLOSED":"已關閉","OPENED_SUCCESSFUL":"開啟成功","CLOSED_SUCCESSFUL":"關閉成功","SELECT_NODE_DES":"使用標簽選擇器為 IP 池匹配合適的節點。","SELECT_LABEL_ALL_RESOUCE":"匹配標簽選擇範圍內的所有資源。","ALL_DISABLED":"全部禁止","DISABLE_SELECT_NODE":"禁止節點選擇。","NODE_RANGE":"節點範圍","LABEL_SELECT":"標簽選擇","EDIT_OVERLAY_MODE":"編輯 Overlay 模式","DISABLE_POD_IP_POOL":"禁用容器組 IP 池","DISABLE_POD_IP_POOL_DESC":"容器組 IP 池禁用後將不會繼續 IP 地址的分配,也不會影響已經分配 IP 地址的容器組的網絡。遷移容器組 IP 時, 新 IP 池可用地址數量不能少於當前 IP 池使用的 IP 地址,遷移完成後,將重啟工作負載。禁用 ip 池會自動解除項目綁定,請謹慎操作!","MIGRATE_POD_IP_POOL":"遷移容器組 IP 池","MIGRATE_POD_IP_POOL_DESC":"將已經分配 IP 地址的容器組遷移至新的容器組 IP 池。","SELECT_POD_IP_POOL":"請選擇容器組 IP 池。","MIGRATE_POD_IP_POOL_TIP":"容器組的 IP 地址將根據選擇的容器組 IP 池進行分配。","SELECT_POD_IP_POOL_DESC":"請選擇容器組 IP 池。","IPPOOL_IS_AUTO_ASSIGN":"是否自動分配","SELECT_POD_IP_POOL_TO_NODEGROUP_DESC":"將選擇的容器組 IP 池添加到節點組。","CREATED_AGO":"Created {diff}","UPDATED_AGO":"Updated {diff}","GPU_USAGE_SCAP":"GPU usage","GPU_MEMORY_USAGE_SCAP":"Graphics memory usage","QUOTA_USAGE":"Usage","PROJECT_CONFIG_QUOTAS_TIP":"Only data of projects with resource limits and requests is displayed.","APPLICATION_CLUSTER_QUOTA_STATISTICS":"Cluster Quota Statistics","CPU_QUOTA":"CPU Quota","MEMORY_QUOTA":"Memory Quota","SORT_BY_NODE_GPU_UTILIZATION":"Sort by GPU usage (%)","SORT_BY_NODE_GPU_MEMORY_UTILIZATION":"Sort by graphics memory usage (%)","SORT_BY_NAMESPACE_GPU_USAGE":"Sort by GPU usage","SORT_BY_NAMESPACE_GPU_MEMORY_USAGE":"Sort by graphics memory usage","SORT_BY_WORKLOAD_GPU_USAGE":"Sort by GPU usage","SORT_BY_WORKLOAD_GPU_MEMORY_USAGE":"Sort by graphics memory usage","SORT_BY_WORKSPACE_GPU_USAGE":"Sort by GPU usage","SORT_BY_WORKSPACE_GPU_MEMORY_USAGE":"Sort by graphics memory usage","SORT_BY_NODE_GPU_USAGE":"Sort by GPU usage","SORT_BY_NODE_GPU_MEMORY_USAGE":"Sort by graphics memory usage","SORT_BY_CLUSTER_GPU_USAGE":"Sort by GPU usage","SORT_BY_CLUSTER_GPU_MEMORY_USAGE":"Sort by graphics memory usage","NODE_RESOURCE_USAGE":"Node Resource Usage","USED_VALUE_CORES_PERCENTAGE":"Used: {value, plural, =1 {1 core} other {# cores}} ({percentage})","USED_VALUE_UNIT_PERCENTAGE":"Used: {value} {unit} ({percentage})","TOTAL_VALUE_CORES":"Total: {value, plural, =1 {1 core} other {# cores}}","TOTAL_VALUE_UNIT":"Total: {value} {unit}","ENT_ENABLE_GATEWAY_TIP":"To use the gateway, please configure the gateway in the cluster, workspace or project.","ANNOTATION_FORMAT_DESC":"The annotation key can contain only letters, numbers, hyphens (-), underscores (_), slashes (/), and dots (.), and must start and end with a letter or number. The maximum length is 63 characters (if the key contains a domain name, the maximum length is 253 characters).","UNCLASSIFIED":"Unclassified","FILE_STORAGE":"File Storage","BLOCK_STORAGE":"Block Storage","storageclasses":"Storage Classes","EDGE_GPU_MEMORY_USAGE_SCAP":"GPU 顯存用量","NPU_USAGE_SCAP":"NPU 用量","NPU_MEMORY_USAGE_SCAP":"NPU 顯存用量","NPU_USAGE":"NPU 用量","NPU_MEMORY_USAGE":"NPU 顯存用量","EDGE_GPU_MEMORY_USAGE":"GPU 顯存用量","EDGE_GPU_MEMORY_UTILIZATION":"GPU 顯存用量(%)","EDGE_GPU_MEMORY_USAGE_STATUS":"GPU 顯存使用狀態","EDGE_NODE_GPU_MEMORY_USAGED":"已用顯存,","EDGE_NODE_GPU_MEMORY_UNUSAGED":"空閒顯存","NPU_TEMP":"NPU 溫度","NPU_ENERGY_NO_PERCENT_TCAP":"NPU 功率","NPU_VOLTAGE":"NPU 電壓","NPU_MEMORY_USAGE_STATUS":"NPU 顯存使用狀態","EDGE_NODE_NPU_MEMORY_USAGED":"已用 NPU 顯存,","EDGE_NODE_NPU_MEMORY_UNUSAGED":"未用 NPU 顯存,","NPU_HEALTH_STATUS":"NPU 健康狀態","APPLICATION_RESOURCE_QUOTAS":"Application Resource Quotas","UNAUTHORIZED_FEATURE":"Unauthorized Feature","UNAUTHORIZED_FEATURE_DESC":"This feature is unauthorized. Please update the license to use this feature.","ADMIN_INACTIVATED_LICENSE_DESC":"KubeSphere Enterprise is not activated. Please activate KubeSphere Enterprise.","INACTIVATED_LICENSE_DESC":"KubeSphere Enterprise is not activated. Please contact a platform administrator to activate KubeSphere Enterprise.","ADMIN_SUB_EXPIRED_LICENSE_DESC":"The subscription has expired. To try the full version of KubeSphere Enterprise, update the license.","SUB_EXPIRED_LICENSE_DESC":"The subscription has expired. Please contact a platform administrator to update the license.","ADMIN_MA_EXPIRED_LICENSE_DESC":"The warranty has expired.","MA_EXPIRED_LICENSE_DESC":"The warranty has expired. Please contact a platform administrator to extend the warranty.","ADMIN_UPDATE_LICENSE_DESC":"The {type} service will expire in {day, plural, =1 {1 day} other {# days}}. ","UPDATE_LICENSE_DESC":"The {type} service will expire in {day, plural, =1 {1 day} other {# days}}. To try the full version of KubeSphere Enterprise, contact a platform administrator to update the license.","ADMIN_OVER_RESOURCE_LICENSE_LIMIT":"The managed resources exceed the scope of authorization, so you cannot manage existing resources and create new resources. To try the full version of KubeSphere Enterprise, update the license.","OVER_RESOURCE_LICENSE_LIMIT":"The managed resources exceed the scope of authorization, so you cannot manage existing resources and create new resources. To try the full version of KubeSphere Enterprise, contact a platform administrator to update the license.","ACTIVATE":"Activate","ADMIN_AUTHORIZED_INVALID_LICENSE_DESC":"Invalid license. Please update the license or contact KubeSphere technical support.","AUTHORIZED_INVALID_LICENSE_DESC":"Invalid license. Please contact a platform administrator to update the license.","EXPIRED_INVALID_LICENSE_DESC":"The license has expired. Please contact a platform administrator to update the license.","ADMIN_EXPIRED_INVALID_LICENSE_DESC":"The license has expired. Please update the license.","PLATFORM_FEATURES":"Platform Features","RADON_DB_FEATURES":"RadonDB Features","PASSWORD_CHARACTERS":"Contain at least 1 special character (~!@#$%^&*()-_=+\\|[{}];:'\",<.>/? or space).","I_AGREE_TO_THE":"I agree to the","TITLE_USERNAME":"{title} Username","TITLE_LOG_IN":"{title} Log In","NOTIFICATION_SUBSCRIPTION":"Notification Subscription","NOTIFICATION_SUBSCRIPTION_LOW":"Notification Subscription","NOTIFICATION_SUBSCRIPTION_DESC":"You can configure multiple recipients with different filter conditions for the same notification channel. ","NOTIFICATION_RECEIVER_EMPTY_DESC":"A notification subscription can be created. ","EDIT_NOTIFICATION_SUBSCRIPTION":"Edit Notification Subscription","CREATE_NOTIFICATION_SUBSCRIPTION":"Create Notification Subscription","NOTIFICATION_SUBSCRIPTION_DETAIL":"Notification Subscription Details","NOTIFICATION_SUBSCRIPTION_TOTAL":"Number of subscription accounts","NOTIFICATION_SUBSCRIPTION_ACCOUNT":"Notification Subscription Account","NOTIFICATION_EMAIL_SUBSCRIPTION_DESC":"Email notification subscription settings can be set by going to the notification subscription settings page. ","ADD_EMAIL_NOTIFICATION_SUBSCRIPTION":"Add email notification subscription","NOTIFICATION_RECEIVER_STATUS":"Notification reception status","NOTIFICATION_RECEIVER":"Notification receipt","NOTIFICATION_SUBSCRIPTION_PL":"Notification Subscription","NOTIFICATION_SUBSCRIPTION_EMPTY_DESC":"Please crate a notification subscription","NOTIFICATION_ENABLED":"Notification Enabled","NOTIFICATION_DISABLED":"Notification Disabled","ENABLE_SUCCESSFUL":"Enabled successfully.","NODE_TARGET_REPEAT":"Repeated monitoring target. Please select another monitoring target.","DEPLOYMENTS_VALUES":"Deployments: {values}","STATEFULSETS_VALUES":"Statefulsets: {values}","DAEMONSETS_VALUES":"Daemonsets: {values}","WORKLOADS_VALUES":"Workloads: {values}","RULE_NAME_REQUIRED":"Please enter a rule name.","MONITOR_TARGET_EMPTY":"Please select a monitoring target.","ALARM_TARGET_REPEAT":"Monitoring targets cannot be duplicated. Please select another monitoring target.","CLUSTER_FIELD_EMPTY":"Please select a cluster.","SELECT_A_TARGET_NODE":"Please select a node.","SET_NAMESPACE_BELONGS_TO":"Please select a project.","NAME_SPACE_REPEAT":"Projects cannot be duplicated. Please select another project.","THRESHOLD_INVALID":"Please enter a valid metric threshold.","SEVERITY_REQUIRED":"Please select an alert severity.","ALERT_RULE_REQUIRED":"Please enter a rule expression.","MESSAGE_REQUIRED":"Please enter message summary.","RULE_LABEL_SETTING":"Label setting","RULE_LABEL_SETTING_DESC":"Filter conditions can be specified in the receiver configuration to filter related labels. ","INCORRECT_KEY_DESC":"The key value is incorrect","MONITOR_TARGET_CLUSTER_DELETED_DESC":"The selected cluster contains a cluster that has been removed, please select again","CLUSTER_DELETED":"The cluster has been removed","DATA_ACCESS":"Data Access","DATA_QUERY":"Data Query","LONG_TERM_STORAGE":"Long-Term Storage","RULE_CALCULATION":"Ruler","CONTAINER_QUOTA":"Container Quotas","GATEWAY_COMPONENT_LOW":"Store Gateway","COMPONENT_REPLICA_COUNT":"Component Replicas","REPLICA_DESC":"Set the number of replicas of {resource}, and the default value is {default}.","DATA_ROUTER":"Router","DATA_RETENTION_LOW":"data rentetion","DATA_RETENTION_REPLICA_COUNT":"Data Retention Replicas","ROUTER_COMPONENT_LOW":"Router","LOCAL_STORAGE":"Local Storage","LOCAL_STORAGE_LOW":"local storage","LOCAL_STORAGE_TIME":"Local Data Storage Duration (Days)","LOCAL_STORAGE_TIME_DESC":"Set the storage duration of local data. The value at least 3, and the default value is 7.","LOCAL_STORAGE_ERROR_MESSAGE":"The number of replicas of the local storage component cannot be smaller than the number of data retention replicas.","BASIC_SETTING":"Basic Settings","CACHE_SETTING":"Cache Settings","QUERY_COMPONENT_LOW":"query component","CACHE_COMPONENT_LOW":"cache component","LONG_TERM_STORAGE_TIPS":"Please configure the parameters of object storage first, and then configure the parameters of the gateway, period, and downsampling.","STORAGE_NOT_ENABLED":"Long-term storage not enabled","STORAGE_ENABLE_GATEWAY_DESC":"After enabling long-term storage, you can configure component parameters for object storage, gateway, retention period, and downsampling.","OBJECT_STORAGE":"Object Storage","OBJECT_STORAGE_TIPS":"Please configure the parameters of the object storage first.","COMPACTOR":"Compator","STORE_GATEWAY":"Store Gateway","COMPRESSION_DOWNSAMPLING":"Compression and Downsampling","BUCKET":"Bucket","BUCKET_NAME_DESC":"The name of the s3 object storage bucket.","BUCKET_NAME_EMPTY_TIP":"Please enter the bucket name.","REGION":"Region","REGION_DESC":"The geographic region where you created the bucket.","ENDPOINT_DESC":"The AWS S3 object storage address to connect to.","ENDPOINT_EMPTY_TIP":"Please enter the endpoint.","ACCESS_KEY":"Access Key","ACCESS_KEY_DESC":"AWS account access key ID.","ACCESS_KEY_EMPTY_TIP":"Please enter the Access Key.","SECRET_KEY_DESC":"The secret associated with the AWS Access Key ID.","SECRET_KEY_EMPTY_TIP":"Please enter the Secret Key.","HTTP_PROTOCOL":"HTTP protocol","HTTP_PROTOCOL_DESC":"Use of insecure HTTP protocol.","ADD_STORAGE_CLASS":"Add storage class","ADD_STORAGE_CLASS_DESC":"Add user metadata for object storage.","OBJECT_STORAGE_PARAMETERS":"Object Storage Parameters","HTTP_CONFIGURATION":"HTTP configuration","HTTP_CONFIGURATION_DESC":"Configure the HTTP client that the receiver uses to communicate with the HTTP-based API service.","TLS_CERTIFICATE":"TLS certificate","TLS_CERTIFICATE_VERIFY":"Verify TLS certificate","TLS_CERTIFICATE_VERIFY_DESC":"Prove your identity or indicate that you are authorized to access an online service by submitting a digital certificate.","TLS_CONNECTION":"TLS connection","CA_CERTIFICATE_DESC":"The CA file used to verify the server certificate.","CERT_CERTIFICATE":"Cert file","CERT_CERTIFICATE_DESC":"Certificate file for client certificate authentication to the server.","KEY_FILE":"Key","KEY_FILE_DESC":"The key file used for client certificate authentication to the server.","SERVER_NAME_DESC":"ServerName extension to indicate the name of the server.","SERVER_CERTIFICATE_VERFICATION":"Server certificate verification","SERVER_CERTIFICATE_VERFICATION_DESC":"Prove your identity or indicate that you are authorized to access an online service by submitting a digital certificate.","RETENTION_RAW":"Raw data storage duration (days)","RETENTION_RAW_DESC":"Raw data storage duration. The raw data will be deleted after the duration expires.","RETENTION_FIVE_MIN":"5m downsampled data storage duration (days)","RETENTION_FIVE_MIN_DESC":"Specifies the data storage duration for downsampling to 1-hour intervals of data points.","RETENTION_ONE_HOUR":"1h downsampled data storage duration (days)","RETENTION_ONE_HOUR_DESC":"Specifies the data storage duration for downsampling to 1-hour intervals of data points.","DISABLE_STORAGE":"Disable long-term storage","DISABLE_STORAGE_DESC":"Are you sure to disable long term storage? After disabling, the object storage configuration will be removed, and the monitoring data will be retained but no longer queried.","ALERT_MANAGEMENT":"Alert Management","SELECT_CLUSTER":"Select Clusters","CUSTOM_PANEL_DESC":"Select to aggregate monitoring indicators of multiple clusters, and customize the global monitoring page of multiple clusters. ","WHIZARD_MONITORING.BUILT_IN_ALERTING_PL":"內置告警","WHIZARD_MONITORING.CUSTOM_ALERTING_PL":"自定義告警","WHIZARD_MONITORING.RESOURCE_RANKING_PL":"資源統計排行","WHIZARD_MONITORING.RESOURCE_RANKING_DESC":"資源統計排行提供集群資源用量排行情況。","WHIZARD_MONITORING.RESOURCE_MONITORING":"資源監控","WHIZARD_MONITORING.MULTI_CLUSTER_MONITOR":"多集群監控","WHIZARD_MONITORING.PACK_UP":"收起","WHIZARD_MONITORING.UNFOLD":"展開","WHIZARD_MONITORING.COLLAPSE_CLUSTER_LIST":"收起集群列表","WHIZARD_MONITORING.UNFOLD_CLUSTER_LIST":"展開集群列表","WHIZARD_MONITORING.RESOURCE_FILTER":"資源查詢","WHIZARD_MONITORING.OBSERVABILITY_ALL_CLUSTERS":"全部集群","WHIZARD_MONITORING.SUCCEEDED":"Succeeded","PERSISTENT_VOLUME_CLAIM_LOW_PL":"Persistent volume claims","GRAPHICS_MEMORY_USAGE":"Graphics Memory Usage","QUOTA_REQUEST":"Request","QUOTA_LIMIT":"Limit","QUOTA_TOTAL":"Total","CPU_QUOTA_USAGE":"Allocated CPU Resource","MEMORY_QUOTA_USAGE":"Allocated Memory Resource","QUOTA_ALLOCATED":"Allocated","VALUE_CORES":"{value, plural, =1 {1 core} other {# cores}}","VALUE_UNIT":"{value} {unit}","ALLOCATED_TOTAL":"Allocated/Total","CLUSTER_ROLES_AND_MEMBERS":"Cluster Members and Roles","CLUSTER_MEMBER_SCAP":"Cluster member","CLUSTER_MEMBERS_SCAP":"Cluster members","CLUSTER_ROLE_SCAP":"Cluster role","CLUSTER_ROLES_SCAP":"Cluster roles","OBSERVABILITY_CENTER":"Whizard Observability Center","DISTRIBUTED_OBSERVABILITY_CENTER_DESC":"Unified monitoring dashboard that provides metrics of all clusters managed by the platform.","GLOBAL_ALERTS":"Global Alerts","GLOBAL_ALERTS_TOOLTIP":"Only the alarms of the selected cluster are collected","NONE_ALERT":"No Alert Found","ALERT_EMPTY_DESC":"No global alert is found in the clusters.","SORT_BY_CLUSTER_CPU_USAGE":"Sort by CPU usage","SORT_BY_CLUSTER_CPU_UTILISATION":"Sort by CPU usage (%)","SORT_BY_CLUSTER_MEMORY_USAGE_WO_CACHE":"Sort by memory usage","SORT_BY_CLUSTER_MEMORY_UTILISATION":"Sort by memory usage (%)","SORT_BY_CLUSTER_DISK_SIZE_USAGE":"Sort by disk usage","SORT_BY_CLUSTER_DISK_SIZE_UTILISATION":"Sort by disk usage (%)","SORT_BY_CLUSTER_POD_COUNT":"Sort by the number of container groups","SORT_BY_CLUSTER_POD_UTILISATION":"Sort by pod quota usage (%)","SORT_BY_NODE_POD_COUNT":"Ranked by the number of container groups","SORT_BY_NODE_CPU_USAGE":"Sort by CPU usage","SORT_BY_NODE_MEMORY_USAGE_WO_CACHE":"Sort by memory usage","SORT_BY_NODE_LOAD5":"Sort by 5-minute CPU load average","SORT_BY_NODE_LOAD15":"Sort by 15-minute CPU load average","SORT_BY_POD_CPU_USAGE":"Sort by CPU usage","SORT_BY_POD_CPU_USED_REQUESTS_UTILISATION":"Sort by allocated CPU request (%)","SORT_BY_POD_CPU_USED_LIMITS_UTILISATION":"Sort by allocated CPU limit (%)","SORT_BY_POD_MEMORY_USAGE_WO_CACHE":"Sort by memory usage","SORT_BY_POD_MEMORY_USED_REQUESTS_UTILISATION":"Sort by allocated memory request (%)","SORT_BY_POD_MEMORY_USED_LIMITS_UTILISATION":"Sort by allocated memory limit (%)","SORT_BY_POD_NET_BYTES_TRANSMITTED":"Sort by outbound traffic","SORT_BY_POD_NET_BYTES_RECEIVED":"Sort by inbound traffic","SORT_BY_POD_PVC_BYTES_USAGE":"Sort by persistent volume usage","SORT_BY_POD_PVC_BYTES_UTILISATION":"Sort by persistent volume usage (%)","SORT_BY_NAMESPACE_CPU_USED_REQUESTS_UTILISATION":"Sort by allocated CPU request (%)","SORT_BY_NAMESPACE_CPU_USED_LIMITS_UTILISATION":"Sort by allocated CPU limit (%)","SORT_BY_NAMESPACE_MEMORY_USED_REQUESTS_UTILISATION":"Sort by allocated memory request (%)","SORT_BY_NAMESPACE_MEMORY_USED_LIMITS_UTILISATION":"Sort by allocated memory limit (%)","SORT_BY_NAMESPACE_PVC_BYTES_USED":"Sort by persistent volume usage","SORT_BY_NAMESPACE_PVC_COUNT":"Sort by number of pods","SORT_BY_POD_GPU_USAGE":"Sort by GPU usage","SORT_BY_POD_GPU_MEMORY_USAGE":"Sort by graphics memory usage","CPU_USAGE_TCAP":"CPU Usage","CPU_UTILISATION_TCAP":"CPU Usage (%)","MEMORY_USAGE_TCAP":"Memory Usage","MEMORY_UTILISATION_TCAP":"Memory Usage (%)","DISK_SIZE_USAGE_TCAP":"Disk Usage","DISK_SIZE_UTILISATION_TCAP":"Disk Usage (%)","POD_COUNT_TCAP":"Pods","NODE_POD_UTILISATION_TCAP":"Pod Quota Usage (%)","NODE_LOAD1_TCAP":"Average CPU Load (1 min)","NODE_LOAD5_TCAP":"Average CPU Load (5 min)","NODE_LOAD15_TCAP":"Average CPU Load (15 min)","INODE_USAGE_TCAP":"Inode Usage (%)","METER_NET_RECEIVED_USAGE_TCAP":"Inbound Traffic","METER_NET_TRANSMITTED_USAGE_TCAP":"Outbound Traffic","CPU_USED_REQUESTS_UTILISATION_TCAP":"Allocated CPU Request (%)","CPU_USED_LIMITS_UTILISATION_TCAP":"Allocated CPU Limit (%)","MEMORY_USED_REQUESTS_UTILISATION_TCAP":"Allocated Memory Request (%)","MEMORY_USED_LIMITS_UTILISATION_TCAP":"Allocated Memory Limit (%)","PVC_BYTES_USED_TCAP":"Persistent Volume Usage","PVC_BYTES_UTILISATION_TCAP":"Persistent Volume Usage (%)","POD_UTILISATION_TCAP":"Pod Quota Usage (%)","GPU_USAGE":"GPU Usage","GPU_UTILIZATION":"GPU Usage (%)","GPU_MEMORY_USAGE":"Graphics Memory Usage","GPU_MEMORY_USAGE_TCAP":"Graphics Memory Usage","GPU_MEMORY_UTILIZATION":"Graphics Memory Usage (%)","NODE_GPU_UTILIZATION":"GPU Usage (%)","NODE_GPU_MEMORY_UTILIZATION":"Graphics Memory Usage (%)","GPU_USAGE_TCAP":"GPU Usage","SORT_BY_DESC":"Descending","SORT_BY_ASC":"Ascending","OOM_KILL_PODS":"OOM killed pods","PENDING_PODS":"Pending pods","EVICTED_PODS":"Evicted pods","QOS_GUARANTEED":"Guaranteed: For every container in a pod, the CPU/memory request and limit are equal.","QOS_BURSTABLE":"Burstable: Criteria of Guaranteed is not met and at least one container has a request or limit.","QOS_BESTEFFORT":"BestEffort: No requests or limits are set.","COMPONENT_PARAMETER_CONFIG":"Component Settings","LICENSE":"License","LICENSE_DESC":"View information about the current license and update the license when necessary.","ACTIVATED":"Activated","INACTIVATED":"Not activated","EXPIRED":"Expired","LICENSE_ID":"License ID","AUTHORIZED_ORGANIZATION":"Authorized organization","AUTHORIZATION_TYPE":"Authorization type","AUTHORIZED_STATUS":"Authorized status","ACTIVATION_TYPE":"Activation type","WARRANTY":"Warranty","WARRANTY_PERIOD":"Under warranty","WARRANTY_EXPIRES":"Warranty expired","SUBSCRIPTION":"Subscription","SUBSCRIPTION_IN_PROGRESS":"Subscribed","SUBSCRIPTION_EXPIRES":"Subscription expired","PERMANENT_AUTHORIZATION":"Permanent Authorization","ACTIVATION_TIME":"Activation time","UPDATE_LICENSE":"Update License","ACTIVATION_CODE":"Activation Code","OBTAIN_ACTIVATION_CODE":"Obtain Activation Code","OBTAIN_ACTIVATION_CODE_DESC":"Visit {title} to obtain the license.","INVALID_LICENSE":"Invalid License","PRODUCT_SERVICE_AUTHORIZATION":"KubeSphere Enterprise Authorization","INVALID_ACTIVATION_CODE_DESC":"Invalid activation code. Please enter a Base64 string in JSON format.","EMPTY_LICENSE":"Invalid license.","INVALID_SIGNATURE":"Invalid signature.","FORMAT_ERROR":"Invalid activation code. Please enter a Base64 string in JSON format.","AUTHORIZED_FEATURES":"Authorized Features","FEATURE":"Feature","CURRENT_USER":"Current user","ADD_CURRENT_USER":"Add current user","NOTIFICATION_HISTORY":"Notification History","NOTIFICATION_HISTORY_PL":"Notification History","NOTIFICATION_HISTORY_DESC":"View notifications that have been sent to users.","ALERTING_NAME_TCAP":"Alert Name","ALERTING_TYPE_TCAP":"Alert Type","ALERTING_SEVERITY_TCAP":"Alert Severity","NOTIFICATION_MESSAGE":"Message","NOTIFICATION_TIME":"Notification Time","METRIC_ALERT":"Metric alert","EVENT_ALERT":"Event alert","AUDIT_ALERT":"Audit alert","LOGGING_ALERT":"Logging alert","ALERT_RESOLVED":"Resolved","NOTIFICATION_SETTINGS":"Notification Settings","SILENCE_POLICY":"Silence Policy","SILENCE_POLICY_LOW":"silence policy","SILENCE_POLICY_PL":"Silence Policies","SILENCE_POLICY_DESC":"Set the system not to send notifications under certain circumstances.","SILENCE_TIME":"Silence Time","CONTINUOUS_SILENCE":"Silent continuously","PERIODIC_SILENCE":"Silent periodically","SPECIFIC_TIME_RANGE_SILENCE":"Silent during time range","CUSTOM_SILENCE":"Silent based on cron expression","SILENCE_CONDITIONS":"Silence Conditions","ALL_SILENT_NOTIFICATIONS":"Silent for all notifications","CUSTOM_SILENT_NOTIFICATIONS":"Custom silence conditions","EDIT_SILENCE_CONDITIONS":"Edit Silence Conditions","EDIT_SILENCE_TIME":"Edit Silence Time","CREATE_SILENCE_POLICY_SUCCESSFULLY":"Created successfully.","EDIT_SILENCE_POLICY_SUCCESSFULLY":"Updated successfully.","CREATE_SILENCE_POLICY":"Create Silence Policy","ALL_SILENT_NOTIFICATIONS_TCAP":"Silent for All Notifications","ALL_SILENT_NOTIFICATIONS_DESC":"The silence policy applies to all notifications.","CUSTOM_SILENT_NOTIFICATIONS_TCAP":"Custom Silence Conditions","CUSTOM_SILENT_NOTIFICATIONS_DESC":"The silence policy applies only to notifications that meet specified conditions.","INVALID_SILENCE_CONDITION":"Please set a correct silence condition.","SILENT_TEMPLATE":"Template","SILENCE_TIME_TYPE_DESC":"Notifications that meet the silence conditions will be silenced during the specified time range.","SILENT_CRON":"Cron Expression","SILENCE_TIME_RANGE_EMPTY_DESC":"Please set the time range during which notifications are silenced.","SELECT_START_TIME_AND_END_TIME":"Select the start time and end time during which notifications are silenced.","SILENCE_DATE":"Date","SELECT_DATE":"Please select a date.","SILENCE_EVERY_DAY":"Every day","SILENCE_EVERY_WEEK":"Every week","SILENCE_EVERY_MONTH":"Every month","MONDAY":"Monday","TUESDAY":"Tuesday","WEDNESDAY":"Wednesday","THURSDAY":"Thursday","FRIDAY":"Friday","SATURDAY":"Saturday","SUNDAY":"Sunday","DAY":"day","HOUR":"Hour","MINUTE":"Minute","SECOND":"Second","CRON_EXPRESSION":"Cron Expression","CRON_EXPRESSION_DESC":"Enter a cron expression to specify the silence period.","CRON_EXPRESSION_REQUIRE_DESC":"Please enter a cron expression.","CRON_EXPRESSION_ERROR_DESC":"Invalid cron expression. Please enter a valid cron expression.","EVERY_DAY_TIMERANGE":"Every day: {timeRange}","EVERY_WEEK_DAYS_TIMERANGE":"Every week: {days} [{timeRange}]","EVERY_MONTH_DAYS_TIMERANGE":"Every month: {days} [{timeRange}]","NOTIFICATION_LANGUAGE":"Notification Language","NOTIFICATION_LANGUAGE_DESC":"Set the language of keys in notifications. Notifications are provided as key-value pairs.","NOTIFICATION_SIMPLIFIED_CHINESE_DESC":"Use simplified Chinese keys in notifications.","NOTIFICATION_ENGLISH_DESC":"Use English keys in notifications.","NOTIFICATION_LANGUAGE_CHANGE_SUCCESS":"Changed successfully.","PLATFORM_LOGO":"Platform Logo","PLATFORM_LOGO_REQUIRED":"Please upload a platform logo.","BROWSER_FAVICON":"Browser Favicon","BROWSER_FAVICON_REQUIRED":"Please upload a platform favicon.","LOGIN_BACKGROUND":"Login Page Background Image","NO_BACKGROUND":"No Background Image Found","NO_BACKGROUND_TIP":"Please click \"Customize Platform Information\" to upload a background image.","MODIFY_PLATFORM_INFO":"Customize Platform Information","PLATFORM_TITLE_TCAP":"Platform Title","PLATFORM_DESCRIPTION_TCAP":"Platform Description","PLATFORM_TITLE_TIP":"The platform title can contain any characters. The maximum length is 63 characters.","TITLE_EMPTY_TIP":"Please enter a platform title.","PLATFORM_LOGO_DESC":"The image format can be SVG, PNG, or JPG, the image file size cannot exceed 2 MB, and the recommended image resolution is 200 x 40 pixels.","BROWSER_FAVICON_DESC":"The image format can be ICO, SVG, PNG, or JPG, the image file size cannot exceed 2 MB, the recommended image resolution is 40 x 40 pixels, and the recommended aspect ratio is 1:1.","LOGIN_BACKGROUND_DESC":"The image format can be SVG, PNG, or JPG, the image file size cannot exceed 2 MB, and the recommended image resolution is 1920 x 1080 pixels.","UPLOAD_PLATFORM_IMAGE_FAILED":"Upload failed. {message}","UPLOAD_FILE_TOO_LARGE":"The image file size cannot exceed 2 MB. Please select another image file.","RESET_PLATFORM_INFO":"Reset Platform Information","RESET_PLATFORM_INFO_TIP":"Are you sure you want to reset the platform information?","SCALING_OBJECT":"Scalable Objects","LAST_SCALING_TIME":"Update Time","POLLING_INTERVAL":"Polling Interval","WAITING_TIME":"Waiting Time","TIME_ZONE":"Time zone","CORN_DESC":"Auto scaling according to the cron plan. ","SCALING_CUSTOM_DESC":"Auto scaling according to custom metrics. ","TOGGLER_PARAMS":"Trigger Parameters","TOGGLER_AUTHOR":"Trigger Authentication","INDICATOR_NAME":"Metric","EXPRESSION":"Expression","SCALING_Prometheus_DESC":"Auto scaling according to Prometheus. ","INDICATOR_TYPE":"Indicator type","TRIGGER":"Trigger","LABEL_KEY_VALUE_CANNOT_BE_EMPTY":"The key and value of the type cannot be empty.","TRIGGER_AUTHENTICATION_KEY_EQ_NAME":"The key of the trigger authentication must be name.","CUSTOM_SCALING_PL":"Custom Scaling","CUSTOM_SCALING_LOW":"Custom scaling","CUSTOM_SCALING_DESC":"Custom scaling automatically scales pods on demand to help optimize resource usage and costs. ","CUSTOM_SCALING_EMPTY_DESC":"Please create custom scaling.","CUSTOM_SCALING":"Custom Scaling","SCALER":"Scaler","STRETCH_OBJECT_READY":"ScaledObject Ready","TRIGGER_ACTIVE":"Active Triggers","RETRACTOR_FALLBACK":"Rollback","STRETCH_OBJECT_READY_DESC":"Whether the ScaledObject is ready for scaling","TRIGGER_ACTIVE_DESC":"Whether the ScaledObject has been scaled","RETRACTOR_FALLBACK_DESC":"Whether the scaler is able to fetch metrics from the source","EDIT_SCALING_SETTINGS":"Edit Scaling","SCALING_SETTINGS":"Scaling Settings","DISABLE_REPLICAS_SETTING":"Disable the number of replicas setting","WORKLOAD_SCALING_TOOL_TIP":"The horizontal autoscaling policy of pods with custom metrics has been set.","EDIT_CUSTOM_SCALING":"Edit Custom Scaling","ENV_CONTAINER":"env source container","ADD_WORKLOAD":"Add Workload","ADD_WORKLOAD_DESC":"Set up deployments and stateful replica sets as custom ScaledObjects.","EMPTY_SCALING_OBJECT_MESSAGE":"The scaledObject cannot be empty","PERCENT":"Percentage","EXPANSION_VALUE":"Scale-Up Value","STABILIZATION_WINDOW_SECONDS":"Stablization Window (s)","STABILIZATION_WINDOW_SECONDS_DESC":"The stabilization window is used to restrict the fluctuation of replicas count when the metrics used for scaling keep fluctuating.","POLICY_TYPE":"Policy Type","POLICY_PREFERENCE":"Policy Preference","POLICY_PREFERENCE_DESC":"The scaler adopts different policies according to your preference.","POLICY_TYPE_DUPLICATED":"Cannot configure multiple policies of the same type. ","TENDS_TO_SCALE_SIGNIFICANTLY":"Scale greatly","TENDS_TO_EXPAND_SLIGHTLY":"Scale slightly","SCALE_DISABLE":"Disable","EXPANSION_STRATEGY":"Scale-Up Policy","SCALING_STRATEGY":"Scale-Down Policy","EMPTY_POLICY_MESSAGE":"The configuration of the policy cannot be empty. ","TIME_ZONE_DESC":"Set the minimum number of container group replicas allowed, the default value is 0. ","REPLICAS_DESIRED_CRON_TRIGGER_DESC":"Number of replicas to which the resources must be scaled between the time range when a cron schedule starts and ends.","CRON_START":"Start","CRON_END":"End","CRON_START_DESC":" Cron expression directing the start of the cron schedule.","CRON_END_DESC":"Cron expression directing the end of the cron schedule.","EMPTY_TYPE_TRIGGER":"The value of type cannot be null.","ADD_TRIGGER":"Add Trigger","ADD_TRIGGER_DESC":"Add triggers according to the required metrics.","TRIGGER_TYPE":"Trigger Type","PROMETHUS_ADDRESS":"Promethus service address.","INDICATOR_NAME_PROMETHUS_DESC":"If multiple triggers are used, metric names must be unique. ","EXPRESSION_PROMETHUS_DESC":"Set the query expression.","THRESHOLD_PROMETHUS_DESC":"Set the threshold when the trigger start scaling.","SCALE_MINIMUM_REPLICAS_DESC":"Set the minimum number of pod replicas allowed, and the default value is 0.","SCALE_MAXIMUM_REPLICAS_DESC":"Set the maximum number of pod replicas allowed, and the default value is 1.","POLLING_INTERVAL_DESC":"Check the time interval for each trigger. By default, KEDA will check every trigger source on every ScaledObject every 30 seconds.","WAITING_TIME_DESC":"The period to wait after the last trigger reported active before scaling the resource back to 0. The default is 5 minutes (300 seconds). ","SCALE_ROLL_BACK_DESC":"Define the number of replicas to roll back if the scaler is faulty.","SCALE_FAILURE_THRESHOLD_DESC":"Limit the consecutive periods of time when each scaler fails to fetch metrics from its source.","EMPTY_FAILURE_THRESHOLD":"The failure threshold cannot be empty. ","FALLBACK_NUMBER":"Rollback Replicas","FALLBACK_NUMBER_DESC":"Number of rollback replicas after scaler failures exceed the threshold.","EMPTY_FALLBACK_NUMBER_DESC":"The number of rollback replicas cannot be empty.","TRIGGER_SETTING":"Trigger Settings","TRIGGER_SETTING_DESC":"Set the trigger for custom metrics.","RESTORE_TO_ORIGINAL_REPLICA_COUNT":"Restore to the original number of replicas","RESTORE_TO_ORIGINAL_REPLICA_COUNT_DESC":"Specify whether the number of replicas should be restored to the original after the target ScaledObject has been deleted. By default, the number of replicas equals to the number when the ScaledObject has been deleted.","SCALE_BEHAVIOR":"Scaling Behavior","SCALE_BEHAVIOR_DESC":"Configure the scaling behavior of the target ScaledObject.","CREATE_CUSTOM_SCALING":"Create Custom Scaling","CRON_TIME_ZONE_DESC":"One of the acceptable values in the IANA Time Zone Database.","PROMETHEUS_MIN_REPLICA_COUNT_DESC":"If the type the trigger is Prometheus, the minimum number of replicas must be greater than 0.","MIN_REPLICA_COUNT_LESS_THAN_MAX":"The minimum number of replicas cannot be greater than the maximum number of replicas.","RADONDB_APPS":"RadonDB Apps","RADONDB_APPS_DESC":"The RadonDB cloud-native apps provide enterprise-grade database services and products including relational databases, distributed databases, time series and analytical databases, and NoSQL databases.","WHAT_ARE_RADONDB_APPS":"What are RadonDB apps?","ACCESS_ADDRESS_PL":"Access Addresses","DATABASE_STATUS_FAILED":"Failed","DATABASE_STATUS_RUNNING":"Running","DATABASE_STATUS_UPDATING":"Updating","DATABASE_STATUS_CREATING":"Creating","DATABASE_STATUS_TRUE_NOTREADY":"Not ready","DATABASE_STATUS_TRUE_READY":"Ready","DATABASE_STATUS_CREATE_FAILED":"Creation failed","DATABASE_STATUS_UPDATE_FAILED":"Update failed","DATABASE_STATUS_DELETED":"Deleted","DATABASE_STATUS_COMPLETED":"Completed","DATABASE_STATUS_TERMINATING":"Terminating","READ_AND_WRITE_ADDRESS":"Read and Write Address","READ_ONLY_ADDRESS":"Read Only Address","KIBANA_ADDRESS":"Kibana Address","DASHBOARD_ADDRESS":"Dashboard Address","PRIMARY_ADDRESS":"Primary Address","STANDBY_ADDRESS":"Standby Address","DATABASE_OPERATION_WARNING":"This operation may interrupt the database service. Please perform this operation during off-peak hours.","VOLUME":"Volume","NODE_ROLE":"Node Role","CANNOT_REDUCE_VOLUME_SIZE":"The volume size cannot be reduced.","SCALE_OUT":"Scale Out","CANNOT_REDUCE_DATABASE_NODES":"The number of database nodes cannot be reduced.","MYSQL_NODES_DESC":"Number of database nodes. The value can be 2, 3, or 5.","REDIS_SENTINEL_NODES_DESC":"Number of database nodes. The value can be 3, 5, or 7.","MONGODB_NODES_DESC":"Number of database nodes.","NODE_COUNT_DESC":"Number of database nodes. The value range is {min} to {max}.","ADJUST_RESOURCES":"Adjust Resources","RESOURCES":"Resources","RESOURCES_DESC":"Set the CPU and memory resources allocated to the database service.","CORE_GIB":"{core, plural, =1 {1 core} other {# cores}}, {gib} GiB","BACK_UP":"Back Up","BACKUP_NAME_DESC":"The name can contain only lowercase letters, numbers, and hyphens (-), and must start with a lowercase letter. The maximum length is 24 characters.","INVALID_BACKUP_NAME_DESC":"Invalid name. The name can contain only lowercase letters, numbers, and hyphens (-), and must start with a lowercase letter. The maximum length is 24 characters.","BACKUP_NAME_EMPTY_DESC":"Please enter a backup name.","BACKUP_WARNING":"The backup process may cause pressure on database services. Please perform this operation during off-peak hours.","BACKUP_COMFIRM_TIP":"Are you sure you want to create a backup?","BACKUP_POSTGRE_SQL_TIP":"Ten backups are retained by default. If a retention policy is set during scheduled backup, the scheduled backup policy will be used first.","SET_AUTO_BACKUP":"Set Auto Backup","BACKUP_TIME":"Backup Time","BACKUP_DATE":"Backup Date","BACKUP_SCHEDULED_DELETE":"Delete Regularly","BACKUP_RETENTION_DAYS":"Retention Period","BACKUP_DAY":"Days","BACKUP_RETENTION_DAYS_ERROR":"The retention period must be set.","BACKUP_DATE_ERROR":"The backup date must be set.","REBALANCE_NODES":"Rebalance Nodes","POSTGRESQL_NODES_DESC":"The value range is 1 to 8.","REBALANCE_SUCCESS":"Rebalanced successfully.","REBALANCE_FAILED":"Rebalancing failed.","REBALANCING":"Rebalancing","START_REBALANCING":"Start Rebalancing","REBALANCING_HISTORY":"Rebalancing History","REBALANCING_IN_PROGRESS_DESC":"Node rebalancing is in progress. Please wait until node rebalancing is complete.","KAFKA_OPERATION_WARNING":"This operation may interrupt the Kafka service. Please perform this operation during off-peak hours.","UPDATE_VERSION":"Upgrade Version","UPDATE_VERSION_DESC":"Are you sure you want to upgrade this resource?","SHARD":"Shard","SHARD_PL":"Shards","PROXY_NODE":"Proxy Node","NODE_IP_ADDRESS_SCAP":"Node IP address","NODE_PORT":"Node port","NO_DATABASE_CONNECTION_AVAILABLE":"No Database Connection Available","MANAGEMENT_NODE":"Management Node","PRIMARY_NODE":"Primary node","PRIMARY_NODE_PL":"Primary nodes","HOT_NODE":"Hot node","HOT_NODE_PL":"Hot nodes","WARM_NODE":"Warm node","WARM_NODE_PL":"Warm nodes","COLD_NODE":"Cold node","COLD_NODE_PL":"Code nodes","KIBANA_NODE":"Kibana node","KIBANA_NODE_PL":"Kibana nodes","KAFKA_NODE":"Kafka node","KAFKA_NODE_PL":"Kafka nodes","KAFKA_RESOURCES":"Kafka resources","ZOOKEEPER_NODE":"ZooKeeper node","ZOOKEEPER_NODE_PL":"ZooKeeper nodes","LOGSTASH_NODE":"Logstash node","DASHBOARD_NODE":"Dashboard node","ZOOKEEPER_RESOURCES":"ZooKeeper resources","STANDBY_NODE":"Standby node","STANDBY_NODE_PL":"Standby nodes","SENTINEL_NODE":"Sentinel node","DATABASE_RUNNING_FOR_VALUE":"The database has been running for {value}.","BACKUPS":"Backups","BACKUP":"Backup","BACKUP_LOW":"backup","BACKUP_PL":"Backups","RESTORE_FROM_BACKUP":"Restore from Backup","BACKUP_IN_PROGRESS_DESC":"Cluster backup is in progress.","SIZE_GIB":"Size (GiB)","BACKUP_START_TIME":"Backup Start Time","BACKUP_END_TIME":"Backup End Time","CREATE_BACKUP":"Create Backup","BACKUP_NOT_ALLOWED_DESC":"Data backup is not allowed currently.","DATABASE_USERS":"Database Users","DATABASE_USERS_EMPTY_DESC":"Add a user to access the database","NO_AUTHENTICATION_DESC":"The authentication type of the database cluster is \"No authentication\". To control uesr access permissions, please change the value of \"Authentication Type\" on the \"Parameters\" tab.","KAFKA_USERS":"Kafka Users","USERCREATION_NOT_ALLOWED":"User creation is not allowed currently.","CANNOT_EDIT_ROOT_USER":"This user is the root user and cannot be edited.","CANNOT_DELETE_ROOT_USER":"This user is the root user and cannot be deleted.","SECRET_KEY":"Secret Key","USER_CERTIFICATE":"User Certificate","VALIDITY_PERIOD":"Validity Period","CA_CERTIFICATE":"CA Certificate","CA_PASSWORD":"CA Password","AUTHORIZATION_RULE":"Authorization Rule","KAFKA_NO_AUTHENTICATION_DESC":"The authentication type of the Kafka cluster is \"No authentication\". To access Kafka as a user, please change the value of \"Authentication Type\" on the \"Parameters\" tab.","KAFKA_NO_USER_DESC":"Create a user to access Kafka.","DELETE_USER":"Delete User","DATABASE_USERNAME_DESC":"The username can contain only uppercase letters, lowercase letters, numbers, and underscores (_), and must start with an uppercase or lowercase letter. The length must be 2 to 26 characters.","INVALID_DATABASE_USERNAME_DESC":"Invalid username. The username can contain only uppercase letters, lowercase letters, numbers, and underscores (_), and must start with an uppercase or lowercase letter. The length must be 2 to 26 characters.","PG_USERNAME_DESC":"The username can contain only lowercase letters, numbers, and underscores (_), and must start with a lowercase letter. The length must be 2 to 26 characters.","INVALID_PG_USERNAME_DESC":"Invalid username. The username can contain only lowercase letters, numbers, and underscores (_), and must start with a lowercase letter. The length must be 2 to 26 characters.","DATABASE_PASSWORD_DESC":"The password must contain at least one uppercase letter, one lowercase letter, one number, and one special character (!@#$%^&*_+-=). The length must be 8 to 32 characters.","DATABASE_PASSWORD_CHARACTERS":"The password must contain at least one special character (!@#$%^&*_+-=).","DATABASE_PASSWORD_CHARACTERS_EXCLUDE":"Special characters in the password can only be !@#$%^&*_+-=.","INVALID_DATABASE_PASSWORD_DESC":"Invalid password. The password must contain at least one uppercase letter, one lowercase letter, one number, and one special character (!@#$%^&*_+-=). The length must be 8 to 32 characters.","USERNAME_FORBIDDEN_STRINGS":"The username cannot be root or start with radondb_.","USERNAME_CANNOT_BE_PROGRES":"The username cannot be postgres, pgautofailover_monitor, or pgautofailover_replicator.","USERNAME_CANNOT_BE_CLICKHOUSE":"The username cannot be clickhouse_operator.","KAFKA_USERNAME_DESC":"The username can contain only lowercase letters, numbers, and hyphens (-). The maximum length is 64 characters.","PERMISSIONS":"Permissions","GENERAL_PERMISSIONS":"General permissions","ADVANCED_PERMISSIONS":"Advanced permissions","AUTHENTICATION_MODE":"Authentication Mode","AUTHENTICATION_MODE_INCORRECT_DESC":"The authentication mode is inconsistent with that of the database cluster. The user cannot access the database cluster.","AUTHENTICATION_MODE_INCORRECT_ALERT":"The authentication mode of the database cluster is {cluster}. If the authentication mode of the user is set to {user}, the user cannot access the database cluster.","AUTHORIZATION_MODE":"Authorization Mode","SIMPLE_AUTHORIZATION":"Simple authorization","AUTHORIZATION_MODE_DESC":"Currently, only simple authorization is supported.","AUTHORIZED_DATABASES":"Authorized Databases","AUTHORIZED_DATABASES_DESC":"Databases that the user can access. Enter * (all databases) or a database name.","AUTHORIZED_HOSTS":"Authorized Hosts","AUTHORIZED_HOSTS_DESC":"Hosts that the user can access. Enter % (all hosts), an IP address, or multiple IP addresses separated by commas (,).","PERMISSION_RULE":"Permission Rule","PERMISSION_RULE_DESC":"You can add multiple permission rules for the user.","RESOURCE_TYPE_DESC":"Resource type to which the rule applies.","RESOURCE_MATCHING_MODE":"Resource Matching Mode","RESOURCE_MATCHING_MODE_DESC":"Matching mode for resource names.","PREFIX_DESC":"Prefix matching, applies the rule to all resources whose names start with this value.","LITERAL_DESC":"Literal matching, can be set to *, indicating that the rule applies to all resources.","PREFIX":"Prefix","LITERAL":"Literal","OPERATION":"Operation","OPERATION_DESC":"Select an operation to which the rule applies.","DATABASE_OPERATION_READ":"Read","DATABASE_OPERATION_WRITE":"Write","DATABASE_OPERATION_DELETE":"Delete","DATABASE_OPERATION_ALTER":"Alter","DATABASE_OPERATION_DESCRIBE":"Describe","DATABASE_OPERATION_ALL":"All","DATABASE_OPERATION_IDEMPOTENTWRITE":"Idempotent write","DATABASE_OPERATION_CLUSTERACTION":"Cluster action","DATABASE_OPERATION_CREATE":"Create","DATABASE_OPERATION_ALTERCONFIGS":"Alter configs","DATABASE_OPERATION_DESCRIBECONFIGS":"Describe configs","ALLOW":"Allow","RULE_TYPE_DESC":"Currently, the rule type can only be \"Allow\".","GROUP":"Group","TRANSACTION_ID":"Transaction ID","ACL_DESC":"Set ACL to control permissions of the user according to official Redis rules.","TOPICS":"Topics","MESSAGE_RETENTION_TIME":"Message Retention Time","EDIT_TOPIC":"Edit Topic","TOPIC_CREATION_NOT_ALLOWED":"Topic creation is not allowed currently.","NO_TOPIC_FOUND":"No Topic Found","TOPIC_EMPTY_DESC":"Please create a topic.","CREATE_TOPIC":"Create Topic","TOPIC_NAME_DESC":"The name can contain only lowercase letters, numbers, and hyphens (-), and must start with a lowercase letter. The maximum length is 24 characters.","INVALID_TOPIC_NAME_DESC":"Invalid name. The name can contain only lowercase letters, numbers, point (.), and hyphens (-), and must start with a lowercase letter. The maximum length is 100 characters.","TOPIC_NAME_EMPTY_DESC":"Please enter a topic name.","PARTITION_COUNT":"Partitions","COMPACT":"Compact","INVALID_PARTITION_COUNT_DESC":"Invalid number of partitions. The value cannot be less than {min} or greater than {max}.","TOPIC_REPLICA_COUNT_DESC":"The number of replicas cannot exceed the number of nodes in the Kafka cluster.","CLEANUP_POLICY_DESC":"Whether to delete outdated logs or compress logs by key (Kafka Connect needs to use the compact mode).","CLEANUP_POLICY_DELETE":"Delete","CLEANUP_POLICY_COMPACT":"Compact","MIN_INSYNC_REPLICAS_DESC":"Minimum number of replicas when request.required.acks of the producer is set to 1.","UNCLEAN_LEADER_ELECTION_ENABLE_DESC":"Whether to allow a replica that does not belong to the ISR to be elected as a leader.","SEGMENT_MS_DESC":"Maximum time in milliseconds before a segment is rolled out. The minimum value is 86400000.","RETENTION_MS_DESC":"Time in milliseconds before deleting a log file.","RETENTION_BYTES_DESC":"Maximum size of a log before deleting it. If both retention.ms and retention.bytes are set, the log will be deleted when either of the thresholds is reached. The value -1 indicates that all logs are retained.","MAX_MESSAGE_BYTES_DESC":"Maximum message size at the topic level. If no value is provided, the instance-leval maximum message size 1 MB is used.","ALERT_RULE_GROUP_PL":"Alert Rule Groups","PARAMETER":"Parameter","RANGE":"Range","AUTO_RESTART":"Auto Restart","ALERTING_POLICY_CREATION_NOT_ALLOWED":"Alert rule group creation is not allowed currently.","EDIT_NOT_ALLOWED":"Parameter editing is not allowed currently.","DBPARAM_DATABASE_VERSION":"Kernel Version","DBPARAM_DATABASE_VERSION_DESC":"Database kernel version.","DBPARAM_FSYNC_DESC":"Whether the PostgreSQL server will ensure (if possible) that updates are physically written to disks.","DBPARAM_SHARED_BUFFERS_DESC":"Memory in MB used by the database server as shared buffers.","DBPARAM_TEMP_BUFFERS_DESC":"Maximum size of memory in MB used by each database session as temporary buffers.","DBPARAM_WORK_MEM_DESC":"Maximum size of memory in MB used by query operations before data is written to temporary disk files.","DBPARAM_MAX_WAL_SENDERS_DESC":"Maximum number of WAL sender processes that run simultaneously.","DBPARAM_LOG_MIN_DURATION_STATEMENT_DESC":"Minimum execution time in milliseconds of logged statements.","DBPARAM_MAX_CONNECTIONS_DESC":"Maximum number of concurrent connections.","DBPARAM_WORKER_PROCESSES_DESC":"Maximum number of concurrent worker processes.","DBPARAM_CHECKPOINT_TIMEOUT_DESC":"Maximum interval in seconds between automatic WAL checkpoints.","DBPARAM_AUTOVACUUM_VACUUM_COST_DELAY_DESC":"Cost delay value in milliseconds for autovacuum operations.","DBPARAM_AUTOVACUUM_VACUUM_COST_LIMIT_DESC":"Cost limit value for autovacuum operations.","DBPARAM_AUTOVACUUM_ANALYZE_SCALE_FACTOR_DESC":"Fraction of the table size that triggers an ANALYZE operation of autovacuum.","DBPARAM_AUTOVACUUM_VACUUM_SCALE_FACTOR_DESC":"Fraction of the table size that triggers a VACUUM operation of autovacuum.","DBPARAM_VACUUM_DEFER_CLEANUP_AGE_DESC":"Delay of VACUUM and HOT cleanup operations, measured by the number of transactions.","DBPARAM_SEQ_PAGE_COST_DESC":"The planner's estimate of the cost of a sequential disk page fetch.","DBPARAM_RANDOM_PAGE_COST_DESC":"The planner's estimate of the cost of a non-sequential disk page fetch.","DBPARAM_CPU_TUPLE_COST_DESC":"The planner's estimate of the cost of processing each row during a query.","DBPARAM_CPU_INDEX_TUPLE_COST_DESC":"The planner's estimate of the cost of processing each index entry during an index scan.","DBPARAM_BGWRITER_DELAY_DESC":"Sleep time in milliseconds between activity rounds of the background writer.","DBPARAM_WAL_WRITER_DELAY_DESC":"Sleep time in milliseconds between activity rounds of the WAL writer.","DBPARAM_WAL_WRITER_FLUSH_AFTER_DESC":"Amount of WAL in MB written by the WAL writer that triggers a flush.","DBPARAM_FULL_PAGE_WRITES_DESC":"Whether to set the PostgreSQL server to write the entire content of each disk page to WAL during the first modification of that page after a checkpoint.","DBPARAM_WAL_COMPRESSION_DESC":"Whether to set the PostgreSQL server to compress full pages written to WAL when full_page_writes is on or during a base backup.","DBPARAM_SYNCHRONOUS_COMMIT_DESC":"Amount of WAL processing that needs to be completed before the database server returns a sucess indication to the client.","DBPARAM_MAINTENANCE_WORK_MEM_DESC":"Maximum amount of memory in MB to be used for maintenance operations such as VACUUM, CREATE INDEX and ALTER TABLE ADD FOREIGN KEY.","DBPARAM_MAX_REPLICATION_SLOTS_DESC":"Maximum number of replication slots. Changing the value will cause the database service to restart.","DBPARAM_AUTOVACUUM_DESC":"Whether the server should run the autovacuum launcher daemon.","DBPARAM_VACUUM_COST_DELAY_DESC":"Amount of time that the process will sleep when the cost limit has been exceeded.","DBPARAM_AUTOVACUUM_NAPTIME_DESC":"Minimum delay between autovacuum runs on any given database.","DBPARAM_COMMIT_DELAY_DESC":"Delay in microseconds between transaction commit and flushing WAL to disks.","DBPARAM_COMMIT_SIBLINGS_DESC":"Minimum number of concurrent open transactions before performing commit_delay.","DBPARAM_LOG_MIN_MESSAGES_DESC":"Levels of messages that are written to the server log.","DBPARAM_BGWRITER_LRU_MAXPAGES_DESC":"Maximum number of LRU pages to be flushed by the background writer per round.","DBPARAM_BGWRITER_FLUSH_AFTER_DESC":"Whenever more than this amount of data (in KB) has been written by the background writer, attempts to force the OS to issue these writes to the underlying storage.","DBPARAM_STATEMENT_TIMEOUT_DESC":"Maximum allowed duration in microseconds of any statement. Statements that take more than this amount of time will be aborted.","DBPARAM_IDLE_IN_TRANSACTION_SESSION_TIMEOUT_DESC":"Maximum allowed idle time in microseconds between queries in a transaction. Sessions that have been idle for more than this amount of time will be terminated.","DBPARAM_LOG_STATEMENT_DESC":"Types of SQL statements to be logged.","DBPARAM_LOG_WAL_LEVEL_DESC":"Level of information written to the WAL.","DBPARAM_PG_PORT_DESC":"Port number that the PostgreSQL server listens on. The value cannot be 55555.","PG_PORT_FORBIDDEN_ERROR":"The port number cannot be 55555.","DBPARAM_JIT_DESC":"Whether JIT compilation (if available) can be used by PostgreSQL.","DBPARAM_AUDIT_LOG_POLICY_DESC":"Policy adopted by the audit log plugin when writing events to its log file.","DBPARAM_AUDIT_LOG_FORMAT_DESC":"Audit log file format.","DBPARAM_AUDIT_LOG_ROTATE_ON_SIZE_DESC":"Size of a single audit log file. If the value is not a multiple of 4096, the value is truncated to the nearest multiple of 4096.","DBPARAM_AUDIT_LOG_ROTATIONS_DESC":"Maximum number of audit log files.","DBPARAM_DEFAULT_STORAGE_ENGINE_DESC":"Default storage engine.","DBPARAM_INNODB_BUFFER_POOL_SIZE_DESC":"Buffer pool size. 80% of the memory can be allocated at most. If the value is set to -1, 60% of the memory is allocated. The value is always increased to an integer multiple of (innodb_buffer_pool_chunk_size x innodb_buffer_pool_instances).","DBPARAM_CHARACTER_SET_SERVER_DESC":"Default character set of the database server.","DBPARAM_EXPIRE_LOGS_DAYS_DESC":"Retention period of binary log files.","DBPARAM_LONG_QUERY_TIME_DESC":"Slow query time threshold. SQL statements that take more time than the value of this parameter are considered to be slow queries.","DBPARAM_MAX_CONNECT_ERRORS_DESC":"Maximum number of consecutive connection failures allowed before the database server blocks further connections from a host.","DBPARAM_WAIT_TIMEOUT_DESC":"Maximum number of seconds the database server waits for activity on a noninteractive connection before closing it.","DBPARAM_MAX_ALLOWED_PACKET_DESC":"Maximum packet size. If the value is not a multiple of 1024, the value will be truncated to a multiple of 1024. If you need to change the value, ensure that the value is less than or equal to the value of slave_pending_jobs_size_max. Otherwise, replication between the primary and standby nodes may become abnormal.","DBPARAM_SLAVE_PARALLEL_WORKERS_DESC":"Number of parallel replication threads.","DBPARAM_SKIP_NAME_RESOLVE_DESC":"Whether to forbid domain name resolution.","DBPARAM_AUTOCOMMIT_DESC":"Whether to enable the autocommit mode.","DBPARAM_TRANSACTION_ISOLATION_DESC":"Transaction isolation level.","DBPARAM_INNODB_FLUSH_METHOD_DESC":"InnoDB file flushing method.","DBPARAM_INNODB_USE_NATIVE_AIO_DESC":"Whether InnoDB uses the Linux asynchronous I/O subsystem.","DBPARAM_MONGODB_PORT_DESC":"Port number that the MongoDB server listens on.","DBPARAM_OPLOGSIZEMB_DESC":"Maximum size in MB of the oplog file.","DBPARAM_MAXINCOMINGCONNECTIONS_DESC":"Maximum number of simultaneous connections that mongos or mongod will accept.","DBPARAM_CURSORTIMEOUTMILLIS_DESC":"Expiration threshold in milliseconds for idle cursors before MongoDB removes them.","DBPARAM_PROFILINGMODE_MODE":"Whether to enable the profiling mode.","DBPARAM_SLOWOPTHRESHOLDMS_DESC":"Slow operation time threshold. Operations that take more time than the value of this parameter are considered to be slow operations.","DBPARAM_ENABLEMAJORITYREADCONCERN_DESC":"Whether to use the secure read policy. Changing the value will cause the database service to restart.","DBPARAM_COMMANDVERBOSITY_DESC":"Log message verbosity level for components related to commands.","DBPARAM_INDEXVERBOSITY_DESC":"Log message verbosity level for components related to indexing operations.","DBPARAM_QUERYVERBOSITY_DESC":"Log message verbosity level for components related to query operations.","DBPARAM_NETWORKVERBOSITY_DESC":"Log message verbosity level for components related to networking operations.","DBPARAM_WRITEVERBOSITY_DESC":"Log message verbosity level for components related to write operations.","DBPARAM_MAXMEMORY_DESC":"Maximum size of memory in MB avaiable to Redis.","DBPARAM_ACTIVEREHASHING_DESC":"Whether to enable active rehashing to save memory.","DBPARAM_APPENDONLY_DESC":"Whether to enable AOF persistence.","DBPARAM_APPENDFSYNC_DESC":"AOF sync policy.","DBPARAM_CLUSTER_NODE_TIMEOUT_DESC":"Maximum amount of time in milliseconds a Redis cluster node can be unavailable before it is considered failed.","DBPARAM_LATENCY_MONITOR_THRESHOLD_DESC":"Slow operation time threshold in milliseconds. Operations that take more time than the value of this parameter will be logged. The value 0 indicates that this feature is disabled.","DBPARAM_MAXCLIENTS_DESC":"Maximum number of client connections. The value 0 (default) indicates that the number of client connections is not limited.","DBPARAM_MAXMEMORY_POLICY_DESC":"Policy adopted by Redis when the amount of memory used by Redis reaches the limit.","DBPARAM_MAXMEMORY_SAMPLES_DESC":"Number of samples used for the Redis eviction algorithm when the amount of memory used by Redis reaches the limit.","DBPARAM_MIN_SLAVES_MAX_LAG_DESC":"The primary database allows write operations only when at least min-slaves-to-write standby databases exist and the network delays of the standby databases do not exceed the value of this parameter.","DBPARAM_MIN_SLAVES_TO_WRITE_DESC":"See the decription of min-slaves-max-lag.","DBPARAM_NO_APPENDFSYNC_ON_REWRITE_DESC":"Whether to block fsync() calls when a BGSAVE or BGREWRITEAOF operation is in progress.","DBPARAM_NOTIFY_KEYSPACE_EVENTS_DESC":"Types of notifications sent by Redis.","DBPARAM_REPL_BACKLOG_SIZE_DESC":"Size of replication backlog.","DBPARAM_REPL_BACKLOG_TTL_DESC":"Retention period of replication backlog.","DBPARAM_REPL_TIMEOUT_DESC":"Replication timeout interval.","DBPARAM_SET_MAX_INTSET_ENTRIES_DESC":"Intset encoding is used when a set consists entirely of Base10 64-bit signed integers and the number of elements in the set does not exceed the value of this parameter. ","DBPARAM_SLOWLOG_LOG_SLOWER_THAN_DESC":"Maximum operation execution time in microseconds. Operations that exceed the value of this parameter will be recorded in the slowlog.","DBPARAM_SLOWLOG_MAX_LEN_DESC":"Maximum length of the slowlog.","DBPARAM_HASH_MAX_ZIPLIST_ENTRIES_DESC":"Ziplist encoding is used when a hash object satisfies both of the following conditions: a) The length in bytes of each key and each value of the hash object does not exceed the hash-max-ziplist-value value; b) The number of key-value pairs in the hash object does not exceed the hash-max-ziplist-entries value.","DBPARAM_HASH_MAX_ZIPLIST_VALUE_DESC":"See the description of hash-max-ziplist-entries.","DBPARAM_LIST_MAX_ZIPLIST_ENTRIES_DESC":"Ziplist encoding is used when a list object satisfies both of the following conditions: a) The length in bytes of each element of the list object does not exceed the list-max-ziplist-value value; b) The number of elements in the list object does not exceed the list-max-ziplist-entries value.","DBPARAM_LIST_MAX_ZIPLIST_VALUE_DESC":"See the description of list-max-ziplist-entries.","DBPARAM_ZSET_MAX_ZIPLIST_ENTRIES_DESC":"Ziplist encoding is used when a zset object satisfies both of the following conditions: a) The length in bytes of each element of the zset object does not exceed the zset-max-ziplist-value value; b) The number of elements in the zset object does not exceed the zset-max-ziplist-entries value.","DBPARAM_ZSET_MAX_ZIPLIST_VALUE_DESC":"See the description of zset-max-ziplist-entries.","DBPARAM_LUA_TIME_LIMIT_DESC":"Lua script timeout limit in milliseconds. 0 or a negative value indicates that no timeout limit is used.","DBPARAM_IO_THREADS_DO_READS_DESC":"Whether to enable multi-thread reading.","DBPARAM_IO_THREADS_DESC":"Number of I/O threads.","DBPARAM_LOGFILE_DESC":"Whether to export log information to stdout or a log file.","DBPARAM_THREAD_POOL_WRITE_QUEUE_SIZE_DESC":"Write queue size of the thread pool.","DBPARAM_THREAD_POOL_SEARCH_QUEUE_SIZE_DESC":"Search queue size of the thread pool.","DBPARAM_ACTION_DESTRUCTIVE_REQUIRES_NAME_DESC":"Whether to forbid wildcards and _all during index deletion. You can set this parameter to false to allow wildcards and _all.","DBPARAM_HTTP_CORS_ENABLED_DESC":"Whether to enable cross-origin resource sharing.","DBPARAM_HTTP_CORS_ALLOW_ORIGIN_DESC":"Origins that can be used for cross-origin resource sharing.","DBPARAM_INDICES_FIELDDATA_CACHE_SIZE":"Maximum amount of heap space that can be used as the field datata cache.","DBPARAM_INDICES_MEMORY_INDEX_BUFFER_SIZE_DESC":"Size of heap space allocated to a node to be used as the indexing buffer shared across all shards. The value can be a percentage or byte size.","DBPARAM_INDICES_QUERIES_CACHE_SIZE_DESC":"Memory size for the filter cache. Accepts either a percentage value such as 5% or an exact value such as 512mb. The default value is 10%.","DBPARAM_INDICES_REQUESTS_CACHE_SIZE_DESC":"Size of the shard request cache managed at the node level. The default value is 1% of the heap space.","DBPARAM_REINDEX_REMOTE_WHITELIST_DESC":"Addresses of remote Elasticsearch nodes to be whitelisted so that reindexing is allowed. You can separate multiple addresses by commas (for example, otherhost:9200, 192.168.1.*:9200, localhost:*).","DBPARAM_CLUSTER_ROUTING_ALLOCATION_AWARENESS_ATTRIBUTES_DESC":"Attributes used for shard allocation awareness. The possible values are k8s_node_name and zone and you can separate two values by a comma.","DBPARAM_REPLICACOUNT_DESC":"Number of replicas for each shard. The value cannot be changed after the database cluster is created and the default value is 2.","DBPARAM_TCPPORT_DESC":"TCP port of the database cluster. The default value is 9000.","DBPARAM_HTTPPORT_DESC":"HTTP port of the database cluster. The default value is 8123.","DBPARAM_MAX_SERVER_MEMORY_USAGE":"Maximum amount of memory in bytes available to the ClickHouse server.","DBPARAM_MAX_MEMORY_USAGE":"Maximum amount of memory in bytes available to a single query of the ClickHouse server.","DBPARAM_AUTHENTICATION_TYPE":"Authentication Type","KAFKA_PARAMETERS":"Kafka parameters","KAFKA_USER_PARAMETERS":"User Quotas","ZOOKEEPER_PARAMETERS":"ZooKeeper parameters","KAFKA_EDIT_PARAMS_ERROR":"Failed to set parameters. When Authentication Type is set to TLS, TLS cannot be set to false.","DBPARAM_KAFKA_TLS_DESC":"Whether to enable TLS encryption.","DBPARAM_KAFKA_AUTHENTICATION_TYPE_DESC":"Authentication type of Kafka.","DBPARAM_NODE_PORT":"Node Port","DBPARAM_NODE_PORT_DESC":"Whether to enable KubeSphere node port for external access.","DBPARAM_LOG_RETENTION_BYTES_DESC":"Maximum size in bytes of a partition. The deletion policy will be triggered if a partition exceeds the limit.","DBPARAM_LOG_RETENTION_HOURS_DESC":"Maximum retention time in hours of a log file before deleting it.","DBPARAM_LOG_SEGMENT_BYTES_DESC":"Maximum size in bytes of a segment file.","DBPARAM_LOG_SEGMENT_DELETE_DELAY_MS_DESC":"Amount of time to wait before deleting a segment file.","DBPARAM_LOG_ROLL_HOURS_DESC":"Maximum time in hours before a new segment is rolled out.","DBPARAM_OFFSETS_TOPIC_REPLICATION_FACTOR":"Replication factor for the offsets topic (set higher to ensure availability). Internal topic creation will fail until the cluster size meets this replication factor requirement.","DBPARAM_LOG_CLEANUP_POLICY_DESC":"Default cleanup policy for segments beyond the retention window. The possible values are delete and compact and you can separate two values by a comma.","DBPARAM_LOG_CLEANER_ENABLE_DESC":"Whether to enable the log cleaner process on the server.","DBPARAM_COMPRESSION_TYPE_DESC":"Compression type of a topic.","DBPARAM_MESSAGE_MAX_BYTES_DESC":"Maximum size in bytes of a record batch.","DBPARAM_NUM_NETWORK_THREADS_DESC":"Number of threads that the server uses for receiving requests from the network and sending responses to the network.","DBPARAM_NUM_IO_THREADS_DESC":"Number of threads that the server uses for processing requests, which may include disk I/O.","DBPARAM_NUM_RECOVERY_THREADS_PER_DATA_DIR_DESC":"Number of threads per data directory to be used for log recovery at startup and flushing at shutdown.","DBPARAM_NUM_REPLICA_FETCHERS_DESC":"Number of fetcher threads used to replicate messages from a source broker.","DBPARAM_QUEUED_MAX_REQUESTS_DESC":"Number of queued requests allowed before blocking the network threads.","DBPARAM_REPLICA_LAG_TIME_MAX_MS_DESC":"If a follower has not sent any fetch requests or has not consumed up to the leaders log end offset for at least this time, the leader will remove the follower from the ISR.","DBPARAM_GROUP_MAX_SESSION_TIMEOUT_MS_DESC":"Maximum allowed session timeout for registered consumers.","DBPARAM_GROUP_MIN_SESSION_TIMEOUT_MS_DESC":"Minimum allowed session timeout for registered consumers.","DBPARAM_AUTO_CREATE_TOPICS_ENABLE_DESC":"Whether to enable automatic topic creation.","DBPARAM_MIN_INSYNC_REPLICAS_DESC":"Minimum number of replicas in the ISR set.","DBPARAM_DEFAULT_REPLICATION_FACTORS_DESC":"Default replication factor.","DBPARAM_TICKTIME_DESC":"Basic time unit in milliseconds used by ZooKeeper. It is used for heartbeats and the minimum session timeout will be twice the tickTime.","DBPARAM_INITLIMIT_DESC":"Maximum number of ticks allowed for a follower to connect to and sync data with the leader.","DBPARAM_SYNCLIMIT_DESC":"Maximum number of ticks allowed for a follower to sync data. If the synchronization process exceeds the limit, the follower will be discarded.","DBPARAM_MAXCLIENTCNXNS_DESC":"Maximum number of concurrent connections at the socket level that a single client (identified by IP address) can make to a single member of the ZooKeeper ensemble. This is used to prevent certain classes of DoS attacks such as file descriptor exhaustion.","DBPARAM_AUTOPURGE_SNAPRETAINCOUNT_DESC":"Number of most recent snapshots and the corresponding transaction logs retained when the ZooKeeper auto purge feature is enabled.","DBPARAM_AUTOPURGE_PURGEINTERVAL_DESC":"Interval in hours of auto purge operations. The value 0 indicates that auto purge is disabled.","KAFKA_USER_RESOURCE_NAME_EMPTY_ERROR":"Please enter a resource name.","DBPARAM_KAFKA_PARTITIONS_DESC":"Default number of topic partitions","DBPARAM_PRODUCER_BYTERATE_DESC":"The quota on the maximum number of bytes per second that each client group in the group can produce to the broker before being throttled. range ({min}-{max})","DBPARAM_CONSUMER_BYTERATE_DESC":"The quota on the maximum number of bytes per second that each client group in the group can consume from the broker before being throttled. range ({min}-{max})","DBPARAM_REAUSET_PERCENTAGE_DESC":"Maximum CPU utilization quota for each client group. range ({min}-{max})","DBPARAM_CONTROLLER_MUTATION_DESC":"The rate quota for create topic requests, create partition requests, and delete topic requests. range ({min}-{max})","ACTIVE_CONNECTIONS":"Active Connections","ACTIVE_SESSIONS":"Active Sessions","IDLE_IN_TRANSACTION":"Idle in Transaction","IDLE_CONNECTIONS":"Idle Connections","CACHE_HIT_RATIO":"Cache Hit Ratio","CACHE_HIT_RATIO_EACH_DATABASE":"Cache Hit Ratio of Each Database","ACTIVITY":"Activity","CONNECTIONS":"Connections","DATABASE_SIZE":"Database Size","QUERY_DURATION":"Query Duration","FETCHED_PER_SECOND":"Fetched Rows per Second","INSERTED_PER_SECOND":"Inserted Rows per Second","UPDATED_PER_SECOND":"Updated Rows per Second","DELETED_PER_SECOND":"Deleted Rows per Second","RETURNED_PER_SECOND":"Returned Rows per Second","KEY_COUNTERS":"Key Counters","CONFLICTS_PER_SECOND":"Conflicts per Second","DEADLOCKS_PER_SECOND":"Deadlocks per Second","COMMITS_PER_SECOND":"Commits per Second","ROLLBACKS_PER_SECOND":"Rollbacks per Second","MAX_TX_DURATION":"Maximum Transaction Duration","LOCKS":"Locks","ASYNC_NODE_NUMBER":"Async Nodes","INVALID_STATUS_NODE_NUMBER":"Invalid Nodes","NOT_RUNNING_NODE_NUMBER":"Not Running Nodes","UNHEALTH_NODE_NUMBER":"Unhealthy Nodes","DBPARAM_JMXOPTIONS_DESC":"disable, do not enable JMX; enable, enable JMX; password, enable JMX with password authentication","CLICKHOUSE_DATA_SIZE_ON_DISK":"MergeTree Table Data Size","QUERIES":"Queries","SELECT_QUERIES":"SELECT Queries","ALL_QUERIES":"All Queries","INSERTED_BYTES":"Inserted Data","INSERTED_ROWS":"Inserted Rows","MAXIMUM_REPLICATION_DEPLAY":"Maximum Replication Delay","RELATIVE_DELAY":"Relative Delay","ABSOLUTE_DELAY":"Absolute Delay","TOTAL_PARTS_OF_MERGETREE_TABLES":"Total Parts of MergeTree Tables","DELAYED_REJECTED_INSERTS":"Delay/Rejected Inserts","DELAYED_QUERIES":"Delayed Queries","DELAYED_BLOCKS":"Delayed Blocks","REJECTED_BLOCKS":"Rejected Blocks","DELAYED_DISTRIBUTED_FILES":"Delayed Distributed Files","READ_BYTES":"Read Bytes","UNCOMPRESSED":"Uncompressed","COMPRESSED":"Compressed","FILE_DESCRIPTOR":"File Descriptor","CLICKHOUSE_OS":"OS","MEMORY_FOR_QUERIES":"Memory for Queries","REPLICATION_QUEUE_JOBS":"Replication Queue Jobs","DATA_LOSS":"Data Loss","CHECK":"Checks","CHECK_FAIL":"Failed Checks","FETCH":"Fetches","FETCH_FAIL":"Failed Fetches","FETCH_MERGED":"Merged Part Fetches","REPLICATED_MERGED":"Successful Merges","MAX_QUEUE_SIZE":"Maximum Queue Size","MERGES":"Merges","MERGED_ROWS":"Merged Rows","MERGED_UNCOMPRESSED_BYTES":"Merged Uncompressed Bytes","ACTIVE_PARTS":"Active Parts","DETACHED_PARTS":"Detached Parts","MAX_PART_COUNT_FOR_PARTITION":"Maximum Parts for Partition","CLICKHOUSE_SERVER_PROCESS_MEMORY":"clickhouse-server Process Memory","PRIMARY_KEYS_MEMORY":"Memory for Primary Keys","DICTIONARY_MEMORY":"Dictionary Memory","MARKS_CACHE_HIT_RATE":"Mark Cache Hit Ratio","BACKGROUND_TASKS":"Background Tasks","MERGE_MUTATE_FETCH":"Merge/Mutate/Fetch","CLEAN_ALTER_REPLICA_REINIT":"Clean/Alter/Replica Re-init","MOVES":"Move","MUTATIONS":"Mutations","PARTS_TO_DO":"Parts to Do","CPU_TIME_PER_SECOND":"CPU Time per Second","DISK_READ_SYSCALL":"Disk Read Syscall","DISK_WRITE_SYSCALL":"Disk Write Syscall","NETWORK_RECEIVE":"Network Receive","NETWORK_SEND":"Network Send","REAL_TIME":"Real Time","USER_TIME":"User Time","SYSTEM_TIME":"System Time","OS_IO_WAIT":"OS I/O Wait","OS_CPU_WAIT":"OS CPU Wait","OS_CPU_VIRTUAL":"OS CPU Virtual Time","MAX_USED_CONNECTIONS":"Maximum Used Connections","THREADS":"Threads","PEAK_THREADS_CONNECTED":"Peak Threads Connected","PEAK_THREADS_RUNNING":"Peak Threads Running","AVG_THREADS_RUNNING":"Average Threads Running","ABORTED_CONNECTIONS":"Aborted Connections","ABORTED_CONNECTION_ATTEMPTS":"Aborted Connection Attempts","ABORTED_CLIENT_TIMEOUTS":"Client Timeouts","QUESTIONS":"Questions","SELECT_BY_TYPE":"Selects","SELECT_FULL_JOIN":"Select Full Join","SELECT_FULL_RANGE_JOIN":"Select Full Range Join","SELECT_RANGE":"Select Range","SELECT_FULL_RANGE":"Select Full Range","SELECT_RANGE_CHECK":"Select Range Check","SELECT_SCAN":"Select Scan","SORT_BY_TYPE":"Sorts","SORT_ROWS":"Sort Rows","SORT_RANGE":"Sort Range","SORT_MERGE_PASSES":"Sort Merge Passes","SORT_SCAN":"Sort Scan","SLOW_QUERIES":"Slow Queries","TABLE_LOCKS":"Table Locks","TABLE_LOCKS_IMMEDIATE":"Table Locks Immediate","TABLE_LOCKS_WAITED":"Table Locks Waited","TMP_TABLES_AND_FILES":"Temporary Tables and Files","CREATED_TMP_TABLES":"Created Temporary Tables","CREATED_TMP_DISK_TABLES":"Created Temporary Disk Tables","CREATED_TMP_FILES":"Created Temporary Files","MYSQL_NETWORK_TRAFFIC":"Network Traffic","MYSQL_INBOUND":"Inbound","MYSQL_OUTBOUND":"Outbound","CLUSTER_TASK_WAITING_TIME":"Cluster Task Waiting Time","CLUSTER_TASK_STATUS":"Cluster Task Status","CLUSTER_NUMBER_OF_IN_FLIGHT_FETCH":"In-Flight Fetches","CLUSTER_NUMBER_OF_PENDING_TASKS":"Pending Tasks","CLUSTER_NUMBER_OF_NODES":"Nodes","CLUSTER_NUMBER_OF_DATA_NODES":"Data Nodes","CLUSTER_NUMBER_OF_ALL_NODES":"All Nodes","SHARD_STATUS":"Shard Status","CLUSTER_DELAYED_UNASSIGNED_SHARDS":"Delayed Unassigned Shards","CLUSTER_INITIALIZING_SHARDS":"Initializing Shards","CLUSTER_RELOCATING_SHARDS":"Relocating Shards","CLUSTER_UNASSIGNED_SHARDS":"Unassigned Shards","CLUSTER_ACTIVE_PRIMARY_SHARDS":"Active Primary Shards","CLUSTER_ACTIVE_SHARDS":"Active Shards","CLUSTER_HEALTH_STATUS":"Cluster Health Status","CLUSTER_HEALTH_STATUS_GREEN":"Green","CLUSTER_HEALTH_STATUS_YELLOW":"Yellow","CLUSTER_HEALTH_STATUS_RED":"Red","HEAP_MEMORY":"Heap Memory","JVM_MEMORY_HEAP_USAGE_PER":"JVM Memory Heap Usage","DATA_AVAILABLE_BYTES":"Available Disk Space","DATA_AVAILABLE_PERCENT":"Available Disk Percentage","ECK_CPU_USAGE":"CPU Usage","OS_LOAD":"OS Load","OS_LOAD1":"OS Load (1 minute)","OS_LOAD5":"OS Load (5 minutes)","OS_LOAD15":"OS Load (15 minutes)","DOC_STATISTICS":"Doc Statistics","ELASTICSEARCH_INDICES_DOCS":"Docs","ELASTICSEARCH_INDICES_DOCS_DELETED":"Deleted Docs","ELASTICSEARCH_INDICES_INDEXING_INDEX_QPS":"Indexing QPS","ELASTICSEARCH_INDICES_SEARCH_QUERY_QPS":"Search QPS","ELASTICSEARCH_INDICES_INDEXING_TIME_MS":"Indexing Time","ELASTICSEARCH_INDICES_SEARCH_TIME_MS":"Search Time","CLUSTER_SHARDS_ACTIVE_PERCENT":"Active Shards","ONLINE_BROKER_COUNT":"Online Brokers","PARTITIONS_UNDER_MINIMUM_ISR":"Partitions Under Minium ISR","OFFLINE_PARTITION_COUNT":"Offline Partitions","TOPIC_INCOMING_DATA_RATE":"Incoming Bytes per Second","TOPIC_OUTGOING_DATA_RATE":"Outgoing Bytes per Second","TOPIC_INCOMING_MESSAGE_RATE":"Incoming Messages per Second","KAFKA_OPEN_FILE_DESC":"Open File Descriptors","TOPIC_OUTGOING_MESSAGE_RATE":"Total Produce Request Rate","NETWORK_PROCESSOR_AVG_IDLE_PERCENT":"Idle Network Processor Ratio","DISK_WRITES":"Disk Write","DISK_READS":"Disk Read","KAFKA_MEMORY_USAGE":"Memory Usage","KAFKA_CPU_USAGE":"CPU Usage","JVM_MEMORY_USAGE":"JVM Memory Usage","JVM_THREAD_COUNT":"JVM Threads","AVAILABLE_DISK_SPACE":"Available Disk Space","ALL_KAFKA_NODES":"All Kafka nodes","ALL_ZOOKEEPER_NODES":"All ZooKeeper nodes","OP_COUNTERS":"Operations","OP_INSERT":"Insert","OP_QUERY":"Query","OP_UPDATE":"Update","OP_DELETE":"Delete","OP_GETMORE":"Get More","OP_COMMAND":"Total","OPREPL_COUNTERS":"Replica Set Operations","OPREPL_INSERT":"Insert","OPREPL_QUERY":"Query","OPREPL_UPDATE":"Update","OPREPL_DELETE":"Delete","OPREPL_GETMORE":"Get More","OPREPL_COMMAND":"Total","CONNECTIONS_CURRENT":"Current","CONNECTIONS_TOTALCREATED":"Total Created","CONNECTIONS_AVAILABLE":"Available","CONNECTIONS_ACTIVE":"Active","CURSOR_COUNT":"Cursors","CURSOR_TIMEDOUT":"Timeout","CURSOR_OPEN_NOTIMEOUT":"No Timout","CURSOR_OPEN_PINNED":"Pinned","CURSOR_OPEN_TOTAL":"Total","MONGODB_NETWORK_TRAFFIC":"Network Traffic","NETWORK_BYTESIN":"Inbound Traffic","NETWORK_BYTESOUT":"Outbound Traffic","WIREDTIGER_OPERATION_COUNT":"WiredTiger Operations","WT_WRITE_OUT":"Concurrent Write Operations","WT_WRITE_AVAILABLE":"Available Concurrent Write Operations","WT_READ_OUT":"Concurrent Read Operations","WT_READ_AVAILABLE":"Available Concurrent Read Operations","DOC_COUNT":"Docs","DOC_DELETED":"Deleted Docs","DOC_INSERTED":"Inserted Docs","DOC_RETURNED":"Returned Docs","DOC_UPDATED":"Updated Docs","QUERYEXECUTOR":"Query Executor Metrics","SCANNEDKEYS":"Scanned Keys","SCANNEDDOCS":"Scanned Docs","ACTIVECLIENTS":"Active Clients","CLIENTS_TOTAL":"Total Clients","CLIENTS_READERS":"Read Clients","CLIENTS_WRITERS":"Write Clients","QUEUED_OPERATIONS":"Queued Requests","QUEUE_TOTAL":"Total","QUEUE_READERS":"Queued Read Requests","QUEUE_WRITERS":"Queued Write Requests","WIREDTIGER_CACHE":"WiredTiger Cache","WIREDTIGER_CACHE_USAGED":"Cache Usage","WIREDTIGER_CACHE_DIRTY_USAGE":"Dirty Data Ratio","OPENSEARCH_HEAP_MEMORY":"Heap Memory","OPENSEARCH_HEAP_MEMORY_PER":"Heap Memory Usage","OPENSEARCH_CPU_USAGE":"CPU Usage Percentage","OPENSEARCH_CPU_USAGE_PER":"CPU Usage","CPU_LOAD":"CPU Load","CPU_LOAD1":"CPU Load (1 minute)","CPU_LOAD5":"CPU Load (5 minutes)","CPU_LOAD15":"CPU Load (15 minutes)","EVENTS_STATISTICS":"Event Statistics","IN_EVENTS_STATISTICS":"Inbound Events","FILTERED_EVENTS_STATISTICS":"Filtered Events","OUT_EVENTS_STATISTICS":"Outbound Events","QUEUE_EVENTS_COUNT":"Events in Queue","JVM_THREADS_COUNT":"JVM Threads Count","DBPARAM_PIPELINE_WORKERS_DESC":"Number of Worker Threads","DBPARAM_PIPELINE_BATCH_SIZE_DESC":"Maximum number of events processed per batch by worker threads. Larger numbers consume more memory and require JVM heap adjustments.","DBPARAM_PIPELINE_BATCH_DELAY_DESC":"Maximum time in milliseconds that worker threads wait for a full batch before processing. ","DBPARAM_PIPELINE_UNSAFE_SHUTDOWN_DESC":"Whether to allow pipeline shutdown when events are still being processed.","DBPARAM_PIPELINE_ORDERED_DESC":"Pipeline event ordering setting. \"auto\" for automatic ordering, \"true\" for ordering with a single worker thread, \"false\" for no ordering.","DBPARAM_ECS_COMPATIBILITY_DESC":"Default value to use if the plugin supports ECS compatibility.","DBPARAM_LOG_LEVEL_DESC":"Logging Level","DBPARAM_LOG_FORMAT_DESC":"Logging Format","DBPARAM_LOG_JVM_DESC":"JVM heap size, typically set to 50%-75% of available memory. Defaults to 50% of available memory.","PREDIXY_MEMORY_USAGE":"Memory Usage","CLIENT_COUNT":"Clients","RECV_CLIENT_BYTES":"Bytes per Minute from Client","RECV_SERVER_BYTES":"Bytes per Minute from Server","SEND_CLIENT_BYTES":"Bytes per Minute to Client","SEND_SERVER_BYTES":"Bytes per Minute to Server","COMMANDS_EXECUTED_PER_MINUTE":"Commands Executed per Minute","REDIS_CLUSTER_COUNT":"Redis Clusters","REDIS_MEMORY_USAGE":"Memory Usage","REDIS_USED_MEMORY":"Used","REDIS_MAX_MEMORY":"Total","NETWORK_IO":"Network I/O","NETWORK_INPUT_BYTES":"Received Bytes (5 minutes)","NETWORK_OUTPUT_BYTES":"Sent Bytes (5 minutes)","TOP_5_REDIS_COMMANDS_PER_MINUTE":"Top 5 Commands per Minute","TOTAL_DB_KEYS":"Total Database Keys","DB_KEYS":"Database Keys","VALID_KEYS":"Valid Keys","EXPIRED_KEYS":"Expired Keys","KEYSPACE":"Keyspace","KEYSPACE_HITS_TOTAL":"Total Hits","KEYSPACE_MISSES_TOTAL":"Total Misses","MEMORY_FRAGMENTATION_RATIO":"Memory Fragmentation Ratio","REJECTED_CONNECTION_RATIO":"Ratio of Rejected Connections","REVICTED_KEY_RATIO":"Revicted Keys","QUORUM_SIZE":"Quorum","ZNODE_COUNT":"Znodes","WATCHER_COUNT":"Watchers","ZOOKEEPER_MEMORY_USAGE":"Memory Usage","ZOOKEEPER_CPU_USAGE":"CPU Usage","OPEN_FILE_DESCRIPTORS":"Open File Descriptors","REQUEST_LATENCY_AVERAGE":"Average Request Latency","REQUEST_LATENCY_MAXIMUM":"Maximum Request Latency","SHARD_COUNT":"Shards","SHARDS_DESC":"Number of shards. The value range is 1 to 100.","CK_REPLICAS_DESC":"Number of replicas for each shard. The value range is 1 to 3.","HTTP_PORT":"HTTP Port","HTTP_PORT_DESC":"The value range is 0 to 65535.","DATABASE_STORAGE_CLASS_DESC":"If no storage classs meets the requirements, please contact a platform administrator to create a storage class.","DATABASE_NODE_TIP":"A database node is a logical database instance rather than a physical server.","VALUE_RANGE_DESC":"The value range is {min} to {max}.","VALUE_MUST_BE_INTEGER":"The value must be an interger.","VALUE_CANNOT_BE_GREATER_THAN_VALUE":"The value cannot be greater than {max}.","VALUE_CANNOT_BE_LESS_THAN_20":"The value cannot be less than 20.","DATA_NODE_COUNT":"Data Nodes","STANDBY_DATABASE_COUNT":"Standby Databases","PROJECT_NAME_EXCEEDS_LIMIT":"The project name for MySQL 5.7 cannot exceed 16 characters.","APP_NAME_EXCEED_LIMIT":"The app name for MySQL 5.7 cannot exceed 14 characters.","DATABASE_KERNEL_VERSION_DESC":"Select the database version.","STANDBY_DATABASE_COUNT_DESC":"Number of standby databases. The value can be 1, 2, or 4.","VALUE_CANNOT_BE_LESS_THAN_10":"The value cannot be less than 10.","PRIMARY_NODE_SETTINGS":"Primary Node Settings","PRIMARY_NODE_RESOURCES_DESC":"Set the CPU and memory resources allocated to each primary node.","PRIMARY_NODE_COUNT":"Primary Nodes","PRIMARY_NODE_COUNT_DESC":"Set the number of primary nodes.","HOT_NODE_SETTINGS":"Hot Node Settings","HOT_NODE_RESOURCES_DESC":"Set the CPU and memory resources allocated to each hot node.","HOT_NODE_COUNT":"Hot Nodes","WARM_NODE_SETTINGS":"Warm Node Settings","WARM_NODE_RESOURCES_DESC":"Set the CPU and memory resources allocated to each warm node.","WARM_NODE_COUNT":"Warm Nodes","COLD_NODE_SETTINGS":"Cold Node Settings","COLD_NODE_RESOURCES_DESC":"Set the CPU and memory resources allocated to each cold node.","COLD_NODE_COUNT":"Cold Nodes","KIBANA_NODE_SETTINGS":"Kibana Node Settings","KIBANA_NODE_RESOURCES_DESC":"Set the CPU and memory resources allocated to each Kibana node.","KIBANA_NODE_COUNT":"Kibana Nodes","VOLUMN_PERSIST":"The size of the volume on the primary node is 20 GiB and cannot be modified.","REDIS_NODE":"Redis node","REDIS_NODE_COUNT":"Redis Nodes","REDIS_NODE_COUNT_DESC":"Number of nodes in the Redis cluster.","PROXY_NODE_COUNT":"Proxy Nodes","PROXY_NODE_RESOURCES":"Proxy Node Resources","ENDPOINT_TYPE":"External Access","ENDPOINT_TYPE_DESC":"Whether to use domain names to access database shards from outside the KubeSphere cluster.","ENDPOINT_TYPE_ERROR":"Before enabling this feature, ensure that no proxy nodes exist in the database cluster.","REDIS_PASSWORD_DESC":"The password can contain only uppercase letters, lowercase letters, numbers, and special characters (!@#$%^&*()./;). The length must be 6 to 31 characters.","INVALID_REDIS_PASSWORD_DESC":"Invalid password. The password can contain only uppercase letters, lowercase letters, numbers, and special characters (!@#$%^&*()./;). The length must be 6 to 31 characters.","VOLUME_CAPACITY_CANNOT_REDUCE":"The volume size cannot be reduced.","KAFKA_SETTINGS":"Kafka Settings","KAFKA_NODE_RESOURCES_DESC":"Set the CPU and memory resources allocated to each Kafka node.","KAFKA_VERSION":"Kafka Version","KAFKA_NODE_COUNT":"Kafka Nodes","ZOOKEEPER_SETTINGS":"ZooKeeper Settings","ZOOKEEPER_NODE_RESOURCES_DESC":"Set the CPU and memory resources allocated to each ZooKeeper node.","ZOOKEEPER_NODE_COUNT":"ZooKeeper Nodes","DASHBOARD_NODE_SETTINGS":"Dashboard Node Settings","DASHBOARD_NODE_RESOURCES_DESC":"Set the CPU and memory resources allocated to each dashboard node.","DASHOBOARD_NODE_COUNT":"Dashboard Nodes","LOGSTASH_NODE_SETTINGS":"Logstash Node Settings","LOGSTASH_NODE_RESOURCES_DESC":"Set the CPU and memory resources allocated to each Logstash node.","LOGSTASH_NODE_COUNT":"Logstash Nodes","MONGODB_NODE_COUNT_DESC":"Number of database nodes.","OTHER_APP_EMPTY_DESC":"Applications you installed with the helm command will be displayed here","OTHER_APP_PL":"other","UPLOAD_FAILED_MESSAGE":"Upload failed. {message}","GPU_USAGE_TIME":"GPU Usage ({time})","GPU_MEMORY_USAGE_TIME":"Graphics Memory Usage ({time})","PVC_USAGE_TOOLTIP_MESSAGE":"Persistent volume usage of the current project (the data may be inaccurate if file storage is used).","PROJECT_MEMBERS_AND_ROLES":"Project Members and Roles","RECENTLY_LOGGED_IN_MEMBERS":"Recently Logged In Users","PROJECT_ALERTS":"Project Alerts","ENT_CLUSTER_GATEWAY_GUIDE_DESC":"If the cluster gateway, workspace gateway and project gateway exist at the same time, the project gateway cannot be enabled after it is disabled. You are advised to used either the cluster gateway or workspace gateway.","WORKSPACE_GATEWAY_GUIDE_DESC":"If the workspace gateway and project gateway both exist, the project gateway cannot be enabled after it is disabled. You are advised to used either the workspace gateway or project gateway.","ROLL_BACK_MICROSERVICE_CONFIGURATION":"Roll Back Microservice Configuration","ROLLBACK_SUCCESSFUL":"Rolled back successfully.","HISTORICAL_VERSIONS":"Historical Versions","CONFIGURATION_CONTNET_TYPE":"Data ({type})","SQ_CONFIGURATION":"Microservice Configuration","SQ_CONFIGURATION_PL":"Microservice Configurations","SQ_CONFIGURATION_DESC":"Microservice configurations store key-value data to be used by microservices. You can use microservice configurations to separate a microservice from its configuration data.","SQ_CONFIGURATION_EMPTY_DESC":"Please create a microservice configuration. ","CONFIGURATION_STATUS_SUCCEEDED":"Published","CONFIGURATION_STATUS_FAILED":"Failed","CONFIGURATION_STATUS_":"Updating","DATA_ID":"Data ID","CREATE_CONFIGURATION":"Create Microservice Configuration","CONFIGURATION_CONTENT":"Data","CONFIGURATION_CONTENT_EMPTY_DESC":"Please enter configuration data.","EDIT_CONFIGURATION":"Edit Microservice Configuration","ORIGINAL_CONFIGURATION_CONTENT_READONLY":"Original Data (read-only)","CURRENT_CONFIGURATION_CONTENT":"New Data","REPLICATE":"Replicate","REPLICATE_CONFIGURATION_NAME":"Replicate Microservice Configuration {name}","SQ_CONFIGURATION_LOW":"microservice configuration","MICROSERVICE_GATEWAY":"Microservice Gateway","MICROSERVICE_GATEWAY_PL":"Microservice Gateways","MICROSERVICE_GATEWAY_DESC":"The microservice gateway forwards requests to microservices according to microservice routes so that microservices can be accessed by other microservices or clients.","MICROSERVICE_GATEWAY_EMPTY_DESC":"No Microservice Gateway Found","MICROSERVICE_GATEWAY_EMPTY_TIP":"Please create a microservice gateway.","GATEWAY_TYPE":"Gateway type","MICROSERVICE_GATEWAY_STATUS_RUNNING":"Running","MICROSERVICE_GATEWAY_STATUS_UPDATING":"Updating","MICROSERVICE_GATEWAY_STATUS_STOPPED":"Stopped","MICROSERVICE_GATEWAY_STATUS_":"Creating","CREATE_MICROSERVICE_GATEWAY":"Create Microservice Gateway","GATEWAY_IMAGE_EMPTY_DESC":"Please set the container image used to create the microservice gateway.","REPLICA_COUNT_EMPTY_DESC":"Please enter the number of replicas of the microservice gateway.","EDIT_MICROSERVICE_GATEWAY":"Edit Microservice Gateway","MICROSERVICE_GATEWAY_LOW":"microservice gateway","MICROSERVICE_ROUTE":"Microservice Route","MICROSERVICE_ROUTE_LOW":"microservice route","MICROSERVICE_ROUTE_PL":"Microservice Routes","MICROSERVICE_ROUTE_DESC":"The microservice gateway forwards requests to microservices according to microservice routes so that microservices can be accessed by other microservices or clients.","MICROSERVICE_ROUTE_EMPTY_DESC":"Please create a microservice route. Before creating a microservice route, ensure that a microservice gateway is available.","CREATE_MICROSERVICE_ROUTE":"Create Microservice Route","MICROSERVICE_ORDER":"Order","MICROSERVICE_ORDER_DESC":"Priority of the microservice route. A smaller number indicates higher priority.","MICROSERVICE_ROUTE_URL_DESC":"URL of a microservice.","PREDICATE":"Predicate","MICROSERVICE_ROUTE_FILTER":"Filter","EDIT_MICROSERVICE_ROUTE":"Edit Microservice Route","NO_INSTANCE_FOUND":"No Instance Found","MICROSERVICE_INSTANCE_PL":"Instances","MICROSERVICE_INSTANCE_STATUS":"Instance Status","MICROSERVICE_INSTANCE_ID":"Instance ID","SPRING_CLOUD_METADATA":"Spring Cloud Metadata","POD_METADATA":"Pod Metadata","SPRING_CLOUD_MONITORING":"Spring Cloud Monitoring","JVM_THREADS_LIVE":"Active Threads","JVM_THREADS_DAEMON":"Daemons","JVM_THREADS_PEAK":"Peak Threads","JVM_MEMORY_USED":"Used","JVM_MEMORY_COMMITTED":"Available","JVM_MEMORY_MAX":"Maximum","JVM_MEMORY_USED_METASPACE":"Initial","SPRING_BOOT_CONFIGURATION_INFOMATION":"Spring Boot Environment Variables {resources}","PROPERTY_NOT_SET":"No Environment Variable Found","POD_ENVIRONMENT_VARIABLE":"Pod Environment Variables","SPRING_CLOUD":"Spring Cloud","MICROSERVICE":"微服務","MICROSERVICE_PL":"微服務","MICROSERVICE_DESC":"在 Spring Cloud 架構中,您可以構建由多個微服務組成的大規模應用程序。微服務負責處理客戶端請求。每個微服務包含一個或多個實例,每個實例都是微服務的副本。","WHAT_IS_SERVICE_REGISTRATION_CENTER_Q":"什麽是服務註冊中心?","WHAT_IS_SERVICE_REGISTRATION_CENTER_A":"服務註冊中心是 Spring Cloud 微服務架構的核心功能組件。服務註冊中心儲存微服務的信息,以及微服務和微服務地址之間的映射關系。","SERVICE_REGISTRY":"服務註冊中心","SERVICE_REGISTRY_ADDRESS":"服務註冊中心地址","DOWNLOAD_SAMPLE_CONFIGURATION":"下載示例配置","INSTANCE":"實例","INSTANCE_PL":"實例","HEALTHY_INSTANCE":"健康實例","HEALTHY_INSTANCE_PL":"健康實例","MICROSERVICE_INSTANCE_COUNT":"實例數量","MICROSERVICE_HEALTHY_INSTANCE_COUNT":"健康實例數量","HEALTH_PROTECTION_TRIGGERED":"已觸發健康保護","MICROSERVICE_EMPTY_DESC":"請創建一個微服務。","SPRING_CLOUD_PROJECT_NOT_LABEL":"Spring Cloud 存量項目","SPRING_CLOUD_PROJECT_NOT_LABEL_DESC":"是否在該項目下啟用 Spring Cloud","OPEN_PROJECT_SPRING_CLOUD":"啟用 Spring Cloud","MICROSERVICE_INSTANCE_STATUS_RUNNING":"運行中","MICROSERVICE_INSTANCE_STATUS_OFFLINE":"離線","EDIT_WEIGHT":"編輯權重","INSTANCE_WEIGHT_DESC":"微服務實例的權重。","TAKE_ONLINE":"上線","TAKE_ONLINE_SUCCESS":"上線成功","CREATE_MICROSERVICE":"創建微服務","ASC_EXPORT":"Ascending","DESC_EXPORT":"Descending","LOG_EXPORT":"Log Export","END_USER_SOFTWARE_LICENSE_AGREEMENT":"End User Software License Agreement","END_USER_SOFTWARE_LICENSE_AGREEMENT_LINK":"End User Software License Agreement","PLEASE_AGREE_USER_SOFTWARE_LICENSE_AGREEMENT":"Please agree to the End User Software License Agreement","WORKSPACE_GATEWAY_DESC":"Set up and manage the configuration of the external network access gateway and service management in the workspace and project.","WORKSPACE_GATEWAY":"Workspace Gateway","WORKSPACE_GATEWAY_LOW":"workspace gateway","PROJECT_ENABLE_GATEWAY_DESC_WS":"If you need to set up a project gateway, please go to the corresponding project to open it.","CLUSTER_GATEWAY_GUIDE_DESC_WS":"If the cluster gateway and workspace gateway both exist, the workspace gateway cannot be enabled after it is disabled. You are advised to used either the cluster gateway or workspace gateway.","CLUSTER_NOT_SUPPORT_WORKSPACE_GATEWAY":"This cluster does not support this feature. If you need to use this feature, please upgrade the cluster to KubeSphere Enterprise 3.4.0 or later.","STORAGE_RELATED_RESOURCE_LIMIT":"Limit on Resources Bound with Storage Class","TOTAL_STORAGE_CLASS":"Total Storage Classes","LIMITED_STORAGE_CLASS":"Number of Limited Storage Classes","RELATED_RESOURCE_QUOTA":"Bound Resource Quota","REQUESTS_STORAGE":"PVC Limit","PERSISTENTVOLUMECLAIMS":"PVC","TOTAL_STORAGE_RESOURCE":"Total Storage Resources","STORAGE_RELATED_RESOURCE":"Storage Class Bound Resources","TOTAL_STORAGE_LIMIT_LESS_THAN_RELATE_RESOURCE":"The total limit of storage resources cannot be less than that of bound resources.","VOLUME_TOTAL_CAPACITY":"Total Capacity of PVCs ({unit})","VOLUME_MAX_NUM":"Total PVCs","SET_RELATED_STORAGE_CLASS_QUOTA":"Set the quota for the PVC bound with the storage class.","SELECT_STORAGE_CLASS":"Select Storage Class","STORAGE_QUOTA":"Storage Resource Quota","WS_STORAGE_QUOTA_DESC":"Limit the the total amount of storage resources under the workspace.","NS_STORAGE_QUOTA_DESC":"Limit the the total amount of storage resources under the project.","STORAGE_VOLUME_LIMIT_NO_LIMIT":"Resource limits: no limit on the PVC capacity","STORAGE_VOLUME_LIMIT_HAS_A_LIMIT":"Resource limits: PVC capacity {num} Gi","STORAGE_PERSISTENT_VOLUME_NO_LIMIT":"No limit on the number of PVCs.","STORAGE_PERSISTENT_VOLUME_HAS_A_LIMIT":"number of PVCs {num}","STORAGE_LIMIT":"PVC capacity limit","STORAGE_CLASS_VOLUME":"Number of PVCs","SELECT_A_STORAGECLASS":"Select Storage Class","VOLUME_COUNT":"Bound PVCs","KS_DESCRIPTION":"KubeSphere 是一款開源項目,在目前主流容器調度平台 Kubernetes 之上構建的企業級分佈式多租戶容器管理平台,提供簡單易用的操作界面以及引導式操作方式,在降低用戶使用容器調度平台學習成本的同時,極大降低開發、測試、維運的日常工作的複雜度。","REPS_ADDRESS":"項目地址","ISSUE_FEEDBACK":"問題反饋","PART_IN_DISCUSSION":"參與討論","CODE_CONTRIBUTE":"貢獻代碼","GITHUB_STAR":"點亮 Star","DESELECT_RESOURCE_FIRST":"當前權限被 {resource} 依賴,無法移除","NO_AUTHORIZED_USER_DESC":"目前沒有用戶被授權此角色","PLATFORM_ROLE_PL":"平台角色","PLATFORM_ROLE_EMPTY_DESC":"請創建一個網路策略。","ROLE_USERS_MANAGER":"平台用戶管理員,管理平台所有用戶。","ROLE_WORKSPACES_MANAGER":"平台企業空間管理員,管理平台所有企業空間。","ROLE_PLATFORM_ADMIN":"平台管理員,可以管理平台内的所有資源。","ROLE_PLATFORM_REGULAR":"平台普通用戶,在被邀請加入企業空間或集群之前沒有任何資源操作權限。","ROLE_PLATFORM_SELF_PROVISIONER":"Create workspaces and become an administrator of the created workspaces.","CREATION_TIME_TCAP":"創建時間","CREATE_PLATFORM_ROLE":"創建帳戶角色","PERMIGROUP_CLUSTERS_MANAGEMENT":"集群","PERMISSION_CLUSTERS_VIEW":"Cluster Viewing","PERMISSION_CLUSTERS_VIEW_DESC":"View all clusters and cluster resources.","PERMISSION_CLUSTERS_MANAGEMENT":"Cluster Management","PERMISSION_CLUSTERS_MANAGEMENT_DESC":"Create clusters, delete clusters, and manage resources in all clusters.","PERMIGROUP_ACCESS_CONTROL":"訪問控制","PERMISSION_WORKSPACES_VIEW":"Workspace Viewing","PERMISSION_WORKSPACES_VIEW_DESC":"View workspaces.","PERMISSION_WORKSPACES_MANAGEMENT":"Workspace Management","PERMISSION_WORKSPACES_MANAGEMENT_DESC":"Create, edit, delete, and view workspaces.","PERMISSION_WORKSPACES_CREATE":"Workspace Creation","PERMISSION_WORKSPACES_CREATE_DESC":"Create workspaces and become an administrator of the created workspaces.","PERMISSION_USERS_VIEW":"User Viewing","PERMISSION_USERS_VIEW_DESC":"View users.","PERMISSION_USERS_MANAGEMENT":"User Management","PERMISSION_USERS_MANAGEMENT_DESC":"Create, edit, and delete users.","PERMISSION_ROLES_VIEW":"角色查看","PERMISSION_ROLES_VIEW_DESC":"View platform roles.","PERMISSION_ROLES_MANAGEMENT":"角色管理","PERMISSION_ROLES_MANAGEMENT_DESC":"Create, edit, and delete platform roles.","PERMIGROUP_APPS_MANAGEMENT":"應用程式","PERMISSION_APP_TEMPLATES_VIEW":"App Viewing","PERMISSION_APP_TEMPLATES_VIEW_DESC":"View the platform App Store.","PERMISSION_APP_TEMPLATES_MANAGEMENT":"應用模板管理","PERMISSION_APP_TEMPLATES_MANAGEMENT_DESC":"Manage the platform App Store and life cycles of cloud-native applications.","PERMIGROUP_PLATFORM_SETTINGS":"平台設置","PERMISSION_PLATFORM_SETTINGS_MANAGEMENT":"Platform Settings Management","PERMISSION_PLATFORM_SETTINGS_MANAGEMENT_DESC":"View and edit settings of the KubeSphere platform.","DELETING_PRESET_ROLES_NOT_ALLOWED":"Preset roles cannot be deleted.","CONFIRM_PASSWORD_TIP":"請再次輸入新的密碼。","CHANGE_PASSWORD":"修改密碼","NEW_PASSWORD":"新的密碼","PASSWORD_STRENGTH":"Password Strength","PASSWORD_STRENGTH_DESC":"Avoid using weak passwords or passwords of other accounts.","TIME":"時間","SOURCE_IP_ADDRESS":"來源 IP 地址","LOGIN_HISTORY":"登入紀錄","NO_LOGIN_HISTORY":"找不到登入記錄","SUCCESSFUL":"成功","FAILED":"失敗","USER_DESC":"管理用戶及其角色。","USER_PL":"用戶","NOT_LOGIN_YET":"尚未登入","USER_EMPTY_DESC":"請創建一個用戶。","USER_ACTIVE":"活躍用戶","USER_AUTHLIMITEXCEEDED":"限制登入","USER_PENDING":"等待中","USER_DISABLED":"已禁用","LAST_LOGIN":"最近登入","USERNAME_DESC":"最長 32 個字元,只能包含小寫字母、數字、點及隔符號(\"-\"),且必須以小寫字母或數字開頭及結尾","PASSWORD_DESC":"The password must contain at least one number, one lowercase letter, one uppercase letter, and one special character (~!@#$%^&*()-_=+\\|[{}];:'\",<.>/? or space). The length must be 8 to 64 characters.","PASSWORD_INVALID_DESC":"無效的密碼。密碼必須至少包含一個數字、一個小寫字母和一個大寫字母。長度必須為 8 到 64 個字元。","PLATFORM_ROLE_DESC":"角色類型根據權限範圍分為集群和項目兩類,目前角色的授權範圍為整個集群.","USER_SETTING_EMAIL_DESC":"郵箱可作為登入帳號","USERNAME_EXISTS":"用戶名稱已存在","USERNAME_EMPTY_DESC":"請輸入用戶名稱","PLATFORM_ROLE":"平台角色","CREATE_USER":"創建用戶","EMAIL":"郵箱","EMAIL_EXISTS":"郵箱已存在,請輸入其他郵箱地址","USERNAME_INVALID":"用戶名稱格式不符合。{message}","USERNAME":"用戶名稱","PASSWORD":"密碼","EDIT_USER":"編輯用戶","USER_LOW":"用戶","DELETING_CURRENT_USER_NOT_ALLOWED":"The current user cannot be deleted.","WORKSPACE_PL":"企業空間","WORKSPACE_DESC":"企業空間是一個組織您的項目和 DevOps 項目、管理資源訪問權限以及在團隊内部共享資源等的邏輯單元,可以作為團隊工作的獨立工作空間。","CLUSTER_PL":"集群","ALL_CLUSTERS":"All Clusters","CREATE_WORKSPACE":"創建企業空間","WORKSPACE_NAME_EMPTY_DESC":"請輸入企業空間名稱。","WORKSPACE_CREATE_DESC":"設置企業空間的基本資訊。","ADMINISTRATOR":"管理員","WORKSPACE_NAME_EXISTS_DESC":"The workspace name already exists.","INVALID_WORKSPACE_NAME":"Invalid workspace name.","SELECT_CLUSTERS_DESC":"選擇企業空間下可用的集群","NO_CLUSTER_AVAILABLE":"No Cluster Available","NO_CLUSTER_AVAILABLE_DESC":"暫無可用的公開集群,請在企業空間創建完畢後,向平台管理員或集群管理員申請集群的授權。","WORKSPACE_NO_CLUSTER_TIP":"您需要聯繫平台管理員或者集群管理員為企業空間授權集群的訪問權限。","AVAILABLE_CLUSTERS":"可用集群","CLUSTER_SETTINGS":"集群設置","CLUSTER_SETTINGS_LIMIT_DESC":"请至少选择一个集群。","SELECT_HOST_CLUSTER_WARNING":"目前系統為多集群系統,請盡量避免在主集群上創建資源。主集群負載過高會導致多集群系統穩定性下降。","DELETE_WORKSPACE":"刪除企業空間","WORKSPACE_LOW":"企業空間","BACK":"返回","AGREE":"同意","APP_DEPLOY_AGREEMENT":"部屬須知","APP_DEPLOY_AGREEMENT_DESC_1":"您必須遵守該應用的開源協議。","APP_DEPLOY_AGREEMENT_DESC_2":"您部署該應用導致的任何後果將由您自行承擔。如果需要支持服務,請聯繫相關開發者。","DO_NOT_REMIND_AGAIN":"不再提示","LOCATION":"位置","CLUSTER_NAME_DESC":"The name can contain only lowercase letters, numbers, and hyphens (-), must start with a lowercase letter, and must end with a lowercase letter or number. The maximum length is 32 characters.","FEDPROJECT_CANNOT_DEPLOY_APP_TIP":"無法在聯邦項目裡部署應用.","LATEST_VERSION_SCAP":"最新版本","WORKSPACE_EMPTY_DESC":"請選擇企業空間","VERSION_EMPTY_DESC":"請選擇版本","HELM_APP_SCHEMA_FORM_TIP":"此應用支持表單模式,可選擇通過表單或 YAML 編輯器來修改預設應用配置。注意:不同模式之間數據獨立。","DEPLOYED_SUCCESSFUL":"部屬成功。","APP_INFORMATION":"應用資訊","VERSION_NUMBER":"版本號碼","APP_SCREENSHOTS":"應用截圖","CATEGORY_COLON":"類別:","HOMEPAGE_COLON":"首頁:","RELEASE_DATE_COLON":"發布時間:","APP_ID_COLON":"應用程式 ID:","SOURCE_CODE_ADDRESS_COLON":"Source Code Address:","APP_VERSIONS_TITLE":"版本(只顯示 10 個最新的版本)","MAINTAINER_COLON":"維護者","VERSIONS":"版本","KEYWORDS":"關鍵字","NONE":"無","APP_INTRODUCTION":"應用程式介紹","APP_DETAILS":"應用程式詳情","NO_DOCUMENT_DESC":"沒有說明文件","VERSION_INTRO_EMPTY_DESC":"該版本沒有說明文件","CHART_FILES":"配置文件","NO_APP_CHART_FILE_FOUND":"該應用程式沒有配置文件","APP_STORE":"應用商店","HOME_APP_STORE_DESC":"The official App Store of KubeSphere provides deployment and management features that allow users to quickly deploy apps with one click based on app templates.","DISCOVER":"發現","NEW_APPS":"最新上架","APP_CATE_ALL":"全部","APP_CATE_UNCATEGORIZED":"Uncategorized","APP_CATE_MESSAGE_QUEUEING":"Message Queuing","APP_CATE_IMAGE_REGISTRY":"Image Registry","APP_CATE_PROMETHEUS_EXPORTER":"Prometheus Exporter","APP_CATE_WEB_SERVER":"Web Server","APP_CATE_NETWORKING":"Networking","APP_CATE_DATABASE_CACHE":"Database & Cache","APP_CATE_STORAGE":"儲存","MAINTAINER_VALUE":"維護者:{value}","LATEST_VALUE":"最新:{value}","TOTAL_CATE_COUNT":"應用程式數量:{total}","SEARCH_BY_NAME":"請輸入名稱進行搜尋","APP_SETTINGS":"應用程式設定","APP_CATEGORY_PL":"應用類別","APP_CATEGORIES_DESC":"您可以在此頁面創建、編輯、刪除類別,對已上架的應用進行類別管理。","ALL_CATEGORIES_VALUE":"全部類別({value})","APP_CATEGORY_EMPTY_DESC":"該類別暫無綁定的應用。","ENTER_CATEGORY_NAME_TIP":"請輸入類別名稱。","CATEGORY_NAME_DESC":"名稱可包含任意字元,最長 20 個字元。","DELETE_CATEGORY_DESC":"您確定要刪除類別 {name} 嗎?","CHANGED_SUCCESSFULLY":"已更改成功","CHANGE_CATEGORY":"調整類別","CHANGE_CATEGORY_DESC":"應用類別將決定該應用在應用商店中的類別","APP_DETAILS_DESC":"查看待發布的應用的詳情。","INTRODUCTION":"介紹","SERVICE_PROVIDER_WEBSITE":"服務供應商網站","APP_DESCRIPTION":"應用描述","DOCUMENTATION":"說明文件","NO_DOCUMENT_FOUND":"沒有說明文件","UPDATE_TIME_COLON":"Update time: ","UPDATE_LOG":"更新紀錄","NO_UPDATE_LOG_DESC":"沒有更新紀錄。","REJECT":"拒絕","REJECT_REASON_DESC":"請填寫拒絕審核的原因。","REJECT_REASON_TIP":"請填寫拒絕原因。","REJECT_SUCCESSFUL":"拒絕成功。","APPROVE":"Approve","RELEASE_SUCCESSFUL":"發布成功","APP_REVIEW":"App Review","APP_REVIEW_DESC":"Review apps to be released to the App Store.","NEW_SUBMIT":"New","APP_REVIEW_EMPTY_DESC":"Please create an app template in a workspace and submit the app template for review.","APP_STATUS_TO_BE_REVIEWED":"To be reviewed","APP_STATUS_PASSED":"Approved","APP_STATUS_SUSPENDED":"已下架","APP_STATUS_REJECTED":"已拒絕","APP_STATUS_IN_REVIEW":"審核中","OPERATOR":"操作者","APP_REVIEW_UNPROCESSED_EMPTY_DESC":"No App Needs to Be Reviewed","SUSPEND":"Suspend","APP_NOTE":"提示","SUSPEND_SUCCESSFUL":"下架成功。","RELEASE":"Release","ACTIVATE_SUCCESSFUL":"發布成功","APP_ID":"應用編號","CATEGORY":"類别","TYPE":"類型","DEVELOPER":"Developer","NO_VERSION_INFO_DESC":"沒有版本資訊。","ACTIVATE_VERSION":"上架版本","CANCEL_SUBMISSION":"取消提交","SUSPEND_VERSION":"下架版本","APP_SUSPEND_TIP":"應用 {name} 下架後,用戶無法從商店中部屬此應用,您確定要下架該應用嗎?","APP_RECOVER_TIP":"應用 {name} 上架後,相關的下架版本都將變成上架,您確定要上架該應用嗎?","REJECTION_REASON":"拒絕原因","RELEASE_RECORD":"發布紀錄","RELEASE_RECORD_EMPTY_DESC":"沒有發布紀錄","APPS":"應用程式","APP_STORE_MANAGEMENT":"應用商店管理","APP_STORE_DESC":"管理應用商店中的應用。您可以查看應用的資訊並上架或下架應用。","APP_CATEGORY":"應用類別","APP_EMPTY_DESC":"Please create an app template in a workspace and release it to the App Store.","CRONJOB_EMPTY_DESC":"請創建一個定時任務。","EVERY_DAY":"0 0 * * * (每天)","EVERY_HOUR":"0 * * * * (每小時)","EVERY_MONTH":"0 0 1 * * (每月)","EVERY_WEEK":"0 0 * * 0 (每週)","PAUSE":"暫停","START":"啟動","DAEMONSETS":"守護進程集","DAEMONSET_EMPTY_DESC":"Please create a DaemonSet.","MIN_READY_SECONDS":"最小就緒時間 (MinReadySeconds)","MAX_UNAVAILABLE_PODS":"容器組最大不可用數量","ROLLING_UPDATE_SETTINGS":"更新時容器組數量","MAX_UNAVAILABLE_PODS_DESC":"升級過程中「允許存在的不可用的容器組」所占總容器組數的最大百分比或數量","MIN_READY_SECONDS_DESC":"指定守護進程集中容器組啟動可用所需的最小的秒數","MIN_READY_SECONDS_EMPTY":"Please set the minimum stable running time required for the Pod to be considered ready.","MAX_UNAVAILABLE_EMPTY":"Please set the maximum number of unavailable Pod replicas allowed during the update process.","FAILURE_THRESHOLD":"不健康臨界值","HTTP_REQUEST":"HTTP 請求檢查","INITIAL_DELAY_S":"初始延遲(s)","INITIAL_DELAY_TIMEOUT_VALUE":"{delay}s 初始延遲, {timeout}s 超時時間","PROBE_TIME":"初始延時: {delay}s 超時時間:{timeout}s","TIMEOUT_PERIOD_S":"超時時間(s)","CHECK_INTERVAL_S":"檢查間隔(s)","SUCCESS_THRESHOLD":"成功臨界值","INITIAL_DELAY_DESC":"在檢查其運行狀況之前,容器啟動後需要等待多長時間。","TIMEOUT_PERIOD_DESC":"等待探針完成多長時間。如果超過時間,則認為探測失敗。預設為1秒。最小值為1。","CHECK_INTERVAL_DESC":"執行探測的頻率(以秒為單位)。預設為10秒。最小值為1。","SUCCESS_THRESHOLD_DESC":"檢查失敗後再次被視為成功所需的最小連續成功次數。最小值為 1。對於存活探針和啟動探針,此參數值必須為 1。","FAILURE_THRESHOLD_DESC":"檢查成功後再次被視為失敗所需的最小連續失敗次數。最小值為 1。","PROBE_COMMAND_EMPTY":"請輸入至少一條指令","TCP_PORT":"TCP 端口檢查","MOUNT_PATH_IN_USE":"掛載路徑已使用,請輸入其他掛載路徑。","CREATOR":"創建者","NO":"否","EDIT_CONTAINER":"Edit Container","MULTI_CLUSTER_RESOURCE_TIP":"目前資源跨多個集群部屬。您可以點擊一個集群以查看資源在該集群中的設置。","NODE":"節點","SERIAL_NUMBER":"序號","CREATED_TIME":"創建於 {diff}","EVENT_PL":"事件","EVENT_NORMAL":"Normal","EVENT_WARNING":"一般告警","APPLICATION_WORKLOAD_PL":"應用負載","WORKLOAD_PL":"工作負載","DEPLOYMENTS":"部署","UPDATE_TIME_TCAP":"更新時間","ALL_PROJECTS":"全部項目","SHOW_NUM":"Show: {num}","SELECT_PROJECT_DESC":"選擇將要創建資源的項目。","PROJECT_NOT_SELECT_DESC":"請選擇一個項目。","BASIC_INFORMATION":"基本資訊","NAME":"名稱","FEDPROJECT_RESOURCE_TIP":"無法在集群管理内創建聯邦項目的資源, 請到聯邦項目頁面内進行操作。","FINISHED":"Done","NOT_SET":"To do","CURRENT":"目前","PROJECT":"項目","PREVIOUS":"上一步","NOTE":"請注意","IMAGE":"鏡像","IMAGE_VALUE":"鏡像:{value}","PORT_NUMBER_EMPTY":"請輸入端口號。","USER":"用戶","VOLUME_NAME_EXIST":"儲存卷名稱已使用","SELECT_TYPE":"選擇{type}","SPECIFY_SUBPATH":"點擊指定子路徑","SPECIFY_SUBPATH_TIP":"指定需要掛載到容器的儲存卷子路徑。","MOUNT_PATH":"掛載路徑","MOUNT_PATH_NOT_SPECIFIED":"Please select a key to be mounted and the mount path of the key.","MOUNT_PATH_EMPTY":"Please enter a mount path.","MOUNT_PATH_REPEATED":"The mount path is duplicated.","NETWORK_SEGMENT_SCAP":"網段","AVAILABLE_ADDRESSES":"可用地址數量","POD_IP_POOL":"容器組 IP 地址範圍","SUBPATH":"子路徑","ANNOTATION_PL":"註釋","CREATE_SUCCESSFUL":"創建成功","STOP":"停止","STOP_TITLE_SI":"停止{type}","STOP_TITLE_PL":"批量停止{type}","STOP_DESC":"Are you sure you want to stop the resource?","END_TIME":"結束時間","SN_NO":"序號","START_TIME":"開始時間","NODE_IP_ADDRESS":"節點 IP 地址","CLUSTER":"集群","CONTAINER_PL":"容器","PROBE_PL":"探針","HOOK_PL":"Hooks","CONTAINER_LOGS_NOT_SUPPORTED":"容器在目前狀態下不支持即時紀錄,請稍後再試","CONTAINER_LOGS":"容器紀錄","COMMAND":"命令","IMAGE_ID":"鏡像 ID","IMAGE_PULL_POLICY":"鏡像拉取策略","CONTAINER_DETAILS_PAGE_SCAP":"容器詳情頁。","CPU_VALUE":"CPU: {value, plural, =1 {1 core} other {# cores}}","MEMORY_VALUE":"Memory: {value}","NVIDIA_COM_GPU_VALUE":"GPU: {value}","LOADING":"載入中...","RESOURCE_LIMITS":"資源限制","RESOURCE_REQUESTS":"資源預留","TERMINAL":"終端","RESTART_PL":"重啟次數","RESTART":"重啟次數","STORAGE_DEVICES":"儲存設備","LIVENESS_PROBE":"存活探針","READINESS_PROBE":"就緒探針","STARTUP_PROBE":"啟動探針","REQUEST_TYPE":"Request type","NO_LOG_DATA_FOUND":"No Log Data Found","NO_LOG_DATA_FOUND_TIP":"No log data is found.","VOLUME_PL":"Volumes","TYPE_CONFIGMAP":"儲存卷類型:配置設定","TYPE_SECRET":"儲存卷類型:保密設定","TYPE_EMPTYDIR":"儲存卷類型:EmptyDir","TYPE_HOSTPATH":"儲存卷類型:HostPath","REASON_VALUE":"原因:{value}","MESSAGE_VALUE":"訊息:{value}","UPDATED_AT_VALUE":"更新時間 :{value}","NO_MONITORING_DATA":"未發現監控資料","OUTBOUND":"出站","INBOUND":"入站","POD_PL":"容器組","NODE_IP":"{node} ({ip})","WAITING":"Waiting","POD_LOW":"容器組","PENDING":"等待中","SERVICE_VALUE":"服務:{value}","PROTOCOL_VALUE":"協定:{value}","ROUTE_DESC":"應用路由提供一種聚合服務的方式,您可以將集群的内部服務通過一個外部可訪問的 IP 地址暴露給集群外部。","PREREQUESTS_FOR_USE_ROUTE_Q":"使用應用路由的前提條件?","PREREQUESTS_FOR_USE_ROUTE_A":"使用應用路由需要由項目管理員對當前項目設置網關。","ACCESS_TYPES_OF_ROUTE_Q":"應用路由支持的訪問方式?","ACCESS_TYPES_OF_ROUTE_A":"KubeSphere 應用路由支持 NodePort 訪問方式以及 LoadBalancer 訪問方式。","ROUTE_PL":"應用路由","GATEWAY_ADDRESS_TCAP":"網關地址","ROUTE_EMPTY_DESC":"應用路由提供一種聚合服務的方式,您可以將集群的内部服務通過一個外部可訪問的 IP 地址暴露給集群外部。","ADD_ROUTING_RULE_DESC":"添加一個路由規則將域名映射至服務。","ADD_ROUTING_RULE":"添加路由規則","ROUTING_RULE_EMPTY_DESC":"請添加至少一個路由規則。","PATH_EMPTY_DESC":"請添加至少一個路徑。","AUTO_GENERATE_TCAP":"自動生成","DOMAIN_NAME_TCAP":"域名","DOMAIN_NAME_EMPTY_DESC":"請輸入域名。","INVALID_DOMAIN_DESC":"域名格式錯誤","INVALID_PATH_DESC":"請填寫正確路徑。","MODE_TCAP":"模式","PATH_PL":"路徑","PATH_SERVICE_TIP":"服務","SET_ROUTING_RULES":"設置路由規則","SPECIFY_DOMAIN_TCAP":"指定域名","NO_GATEWAY_DESC":"若要使用自動生成模式,請聯系項目管理員在此項目的高級設置中設置網關訪問方式。","PATH":"路徑","PROTOCOL":"協定","PORT":"通訊埠","PORT_VALUE":"通訊埠:{value}","CERTIFICATE":"憑證","EDIT_ROUTING_RULES":"編輯路由規則","EDIT_ANNOTATIONS":"編輯註釋","ROUTE_LOW":"應用路由","PLEASE_INSTALL_GATEWAY":"请安装 KubeSphere 网关扩展组件,并配置集群 Agent 后再试。","ROUTE_SETTING_DESC":"應用路由工具在應用路由的基礎上,提供了多項實用擴展能力,如域名重用校驗。","ROUTE_SETTING_EMPT":"未發現需重用校驗的域名","ROUTE_SETTING_EMPTY_DESC":"添加域名後,會在創建和編輯應用路由時對域名進行唯一性校驗。「域名重用校驗」僅對當前集群生效,且不作用於使用該功能前已存在的應用路由。","CREATE_DOMAIN_NAME":"添加域名","CREATE_DOMAIN_NAME_DES":"添加域名時支持使用通配符進行匹配。","INVALID_CREATE_DOMAIN_NAME":"該域名已經存在,請輸入其他域名。","DOMAIN_NAME_DESC":"請設置一個域名","INVALID_DOMAIN_NAME":"域名重用校驗","ROUTE_SETTING":"域名","ROUTE_SETTING_PL":"應用路由工具","ROUTE_SETTING_LOW":"域名","DELETE_MULTIPLE_ROUTE_SETTING":"批量刪除域名","EXIT_DOMAIN_DESC":"該域名或域名的子域名在當前集群的項目中已使用,請更換不同域名。","CUSTOM_SERVICE":"自定義服務","VIRTUAL_IP":"虛擬 IP","CONTAINER_PORT_SCAP":"容器通訊埠","SERVICE_PORT_SCAP":"服務通訊埠","NO_AVAILABLE_RESOURCE_VALUE":"暫時沒有可用的{resource}","NO_RESOURCE_FOUND":"沒有發現資源。","REVISION_RECORD":"Revision record","SERVICE_PL":"服務","SERVICE_DESC":"服務(Service)提供一種抽象的方法,將運行在容器组(Pod)上的應用程式公開為網路服務。","SERVICE_EMPTY_DESC":"請創建一個服務。","UNKNOWN":"未知","EXTERNAL_ACCESS":"外網訪問","INTERNAL_ACCESS":"Internal Access","UNKNOWN_SERVICE_TYPE":"未知服務類型","SERVICE":"服務","SERVICE_LOW":"服務","INTERNAL_ACCESS_MODE":"内部訪問模式","CREATE_SERVICE":"創建服務","SERVICE_NAME_DESC":"名稱只能包含小寫字母、數字和連字符號(-),必須以小寫字母開頭並以小寫字母或數字结尾,最長 63 個字元。","VIRTUAL_IP_TITLE":"虚擬 IP 地址","INTERNAL_DOMAIN_NAME":"内部域名","CONTAINER_PORT":"容器通訊埠","INVALID_PORT":"通訊埠無效。","PORT_EMPTY":"請輸入通訊埠","ENTER_SELECTOR_TIP":"請設置工作負載選擇器。","Ports":"通訊埠","SPECIFY_WORKLOAD":"指定工作負載","SELECT_WORKLOAD_DESC":"使用工作負載的標籤作為選擇器。","VIRTUAL_IP_DESC":"為服務分配虚擬 IP 地址,可通過虚擬 IP 地址在集群内部訪問服務。","INTERNAL_DOMAIN_NAME_DESC":"不為服務分配 IP 地址,可通過集群的 DNS 機制在集群内部訪問服務。","SERVICE_PORTS_DESC":"設置容器通訊埠和服務通訊埠。","NO_WORKLOAD_MATCH_SELECTOR":"没有工作負載匹配目前選擇器。","WORKLOADS_MATCH_SELECTOR_SI":"目前選擇器({selector})與 {count} 個工作負載匹配。","WORKLOADS_MATCH_SELECTOR_PL":"目前選擇器({selector})與 {count} 個工作負載匹配。","WORKLOAD_SELECTOR":"工作負載選擇器","SERVICE_SETTINGS":"服務設置","TOTAL_WORKLOADS_VALUE":"工作負載總數:{count}","OPENELB_NOT_READY":"OpenELB is not installed. Please install OpenELB.","SESSION_PERSISTENCE":"Session Persistence","MAXIMUM_STICKINESS_DURATION":"最大會話保持時間(s)","SESSION_PERSISTENCE_DESC":"Set the system to forward all requests from the same client to the same pod within a specified duration.","SERVICE_EXTERNAL_ACCESS_DESC":"設置從集群外訪問服務的方式。","ACCESS_NODEPORT_TIP":"通過集群節點的對應通訊埠來訪問服務。","ACCESS_LOADBALANCER_TIP":"通過負載平衡器來訪問服務。","WORKLOAD_ANNOTATIONS":"工作負載註釋","LABEL_FORMAT_DESC":"The key and value of a label can contain only letters, numbers, hyphens (-), underscores (_), and dots (.), and must start and end with a letter or number. The maximum length of each key and each value is 63 characters (if the key contains a domain name, the maximum length is 253 characters).","STATEFULSETS":"有狀態副本集","INVALID_ALIAS_NAME_DESC":"Invalid alias name. The alias name can contain only letters, numbers, and hyphens (-), and cannot start or end with a hyphen. The maximum length is 63 characters.","NODES":"節點","DISK":"硬碟","CLUSTER_INFORMATION":"集群資訊","CLUSTER_NAME":"集群名稱","EDIT_CLUSTER_INFO_DESC":"編輯集群基礎資訊","REMOVE_CLUSTER":"Remove Cluster","REMOVE_CLUSTER_DESC":"After the cluster is removed, KubeSphere will not be able to manage the cluster. Resources in the cluster will not be deleted. Enter the cluster name {name} to confirm that you understand the risks of this operation.","REMOVE_SUCCESS":"Removed successfully.","CLUSTER_MEMBER_PL":"集群成員","CLUSTER_MEMBER":"集群成員","INVITE_CLUSTER_MEMBER_DESC":"Invite users to the cluster.","PERMIGROUP_NETWORK_MANAGEMENT":"網路","PERMISSION_NETWORK_RESOURCES_VIEW":"Network Resource Viewing","PERMISSION_NETWORK_RESOURCES_MANAGEMENT":"Network Resource Management","PERMIGROUP_PROJECT_RESOURCES_MANAGEMENT":"Project Resources","PERMISSION_PROJECT_RESOURCES_VIEW":"Project Resource Viewing","PERMISSION_PROJECT_RESOURCES_MANAGEMENT":"Project Resource Management","PERMISSION_STORAGECLASSES_VIEW":"Storage Class Viewing","PERMISSION_STORAGECLASSES_MANAGEMENT":"Storage Class Management","PERMISSION_VOLUME_SNAPSHOT_CLASSES_VIEW":"Volume Snapshot Class Viewing","PERMISSION_VOLUME_SNAPSHOT_CLASSES_MANAGEMENT":"Volume Snapshot Class Management","PERMIGROUP_CLUSTER_RESOURCES_MANAGEMENT":"Cluster Resources","PERMISSION_CRD_VIEW":"Custom Resource Definition Viewing","PERMISSION_CRD_MANAGEMENT":"Custom Resource Definition Management","PERMISSION_NODES_VIEW":"Node Viewing","PERMISSION_NODES_MANAGEMENT":"Node Management","PERMISSION_COMPONENTS_VIEW":"System Component Viewing","PERMIGROUP_CLUSTER_SETTINGS":"集群設置","PERMISSION_CLUSTER_SETTINGS_VIEW":"Cluster Settings Viewing","PERMISSION_CLUSTER_SETTINGS_MANAGEMENT":"Cluster Settings Management","PERMISSION_CLUSTER_MONITORING_VIEW":"Monitoring Information Viewing","PERMISSION_CLUSTER_MONITORING_MANAGEMENT":"Monitoring Information Management","PERMISSION_CLUSTER_ROLES_VIEW":"角色查看","PERMISSION_CLUSTER_ROLES_MANAGEMENT":"角色管理","PERMISSION_CLUSTER_MEMBERS_VIEW":"成員查看","PERMISSION_CLUSTER_MEMBERS_MANAGEMENT":"成員管理","CLUSTER_ROLE":"集群規則","CLUSTER_ROLE_PL":"集群規則","CLUSTER_ROLE_DESC":"This module allows you to manage the access of users within a cluster.","ROLE_CLUSTER_VIEWER":"View all resources in the cluster.","ROLE_CLUSTER_ADMIN":"Manage all resources in the cluster.","CLUSTER_VISIBILITY":"集群能見度","EDIT_VISIBILITY_DESC":"編輯集群在企業空間中的能見度。","UNAUTHORIZED":"未授權","CLUSTER_VISIBILITY_DESC":"集群能見度控制集群對企業空間的授權。將集群授權給企業空間後,即可在企業空間中查看並管理集群資源。","CLUSTER_VISIBILITY_Q1":"如何將集群授權給指定的企業空間使用?","CLUSTER_VISIBILITY_A1":"您可以點擊編輯能見度將集群授權給指定的企業空間使用。","CLUSTER_VISIBILITY_Q2":"什麼是公開集群?","CLUSTER_VISIBILITY_A2":"公開狀態的集群意味著平台内的用戶都可以使用該集群,並在集群中創建和調度資源。","WORKSPACE":"企業空間","CLUSTER_VISIBILITY_SCAP":"集群能見度","AUTHORIZATION_TIME_TCAP":"授權時間","EDIT_VISIBILITY":"編輯能見度","AUTHORIZED":"已授權","SET_PUBLIC_CLUSTER":"設置為公開集群","HOST_CLUSTER_VISIBILITY_WARNING":"請謹慎將主集群授權给企業空間,主集群負載過高會導致多集群系統穩定性下降。","CLUSTER_VISIBILITY_REMOVE_WARNING":"移除集群對企業空間的授權後,該企業空間在目前集群下的所有資源將被刪除。","REMOVE_WORKSPACE_CONFIRM_TITLE":"移除授權","REMOVE_WORKSPACE_CONFIRM_SI":"請輸入企業空間名稱 {resource} 確保您已了解操作所带来的風險。","REMOVE_WORKSPACE_CONFIRM_PL":"請輸入企業空間名稱 {resource} 確保您已了解操作所带来的風險。","GATEWAY_LOW":"網關","REQUEST_COUNT":"請求數量","NETWORK_TRAFFIC":"網路流量","CONNECTION_COUNT":"連接數量","FAILED_REQUEST_COUNT":"請求錯誤數量","AVERAGE_LATENCY":"平均延遲","P_FIFTY_LATENCY":"P50 延遲","P_NINETY_FIVE_LATENCY":"P95 延遲","P_NINETY_NINE_LATENCY":"P99 延遲","FOUR_XX_REQUEST_COUNT":"4xx 請求數量","FIVE_XX_REQUEST_COUNT":"5xx 請求數量","TOTAL_REQUESTS":"總請求數量","SUCCESSFUL_REQUESTS":"請求成功","CONFIGURATION_OPTIONS":"網關配置","GATEWAY_LOGS":"網關記錄","LOGGING_DISABLED":"紀錄組件未開啟","REFRESH_INTERVAL_VALUE":"刷新間隔:{value}s","EXPORT_LOGS":"導出紀錄","GATEWAY_SETTINGS":"網關設置","CLUSTER_GATEWAY_DESC":"對集群和項目中的外網訪問網關以及服務治理等配置進行設置和管理","CLUSTER_GATEWAY_NOT_ENABLED":"集群網關未開啟","CLUSTER_ENABLE_GATEWAY_DESC":"請開啟集群網關。","CLUSTER_GATEWAY":"集群網關","GATEWAY_ADDRESS_SCAP":"網關地址","LOAD_BALANCER_PROVIDER_SCAP":"負載均衡器供應商","ENABLE_GATEWAY":"開啟網關","GATEWAY_TRACING_TIP":"如果開啟鏈路追蹤後路由無法訪問,請在路由中添加註釋 nginx.ingress.kubernetes.io/service-upstream: true。","VIEW_DETAILS":"查看詳情","DISABLE":"關閉","DISABLE_GATEWAY":"關閉網關","DISABLE_GATEWAY_TIP":"您確定關閉網關嗎?","DISABLE_SUCCESSFUL":"關閉成功。","EDIT":"編輯","EDIT_TITLE":"編輯 {title}","UPDATE":"Update","UPDATED_GATEWAY_TITLE":"Update Gateway","UPDATE_GATEWAY_DESC":"The current gateway can be updated.","PROJECT_GATEWAY_PL":"項目網關","PROJECT_GATEWAY_NOT_ENABLED":"項目網關 未開啟","PROJECT_ENABLE_GATEWAY_DESC":"請開啟項目網關。","REPLICA_COUNT":"副本數量","NODE_PORTS":"主機通訊埠","PROJECT_GATEWAY_LOW":"項目網關","DISABLE_MULTIPLE_GATEWAYS":"Disable Multiple Gateways","EDIT_LOG_RECEIVER":"Edit Log Receiver","INDEX_PREFIX":"索引前缀","LOG_RECEIVER":"Log Receiver","LOG_RECEIVER_LOW":"Log Receiver","CHANGE_STATUS":"更改狀態","LOG_COLLECTION_ENABLE_TIPS":"新的狀態需 1 分鐘左右生效","SELECT_STATUS_TIP":"選擇一個狀態","ADDRESS":"地址","LOG_RECEIVER_PL":"紀錄接收者","LOG_COLLECTION_DESC":"系統將收集每個容器的標準輸出和標準錯誤輸出紀錄,並將其發送到一個或多個目標服務","ADD_LOG_RECEIVER":"添加紀錄接收器","LOG_COLLECTION_TIPS":"每種類型的紀錄收集器只能添加一個。","ES_DESC":"Elasticsearch 是分布式、RESTful 風格的搜尋和分析引擎","KAFKA_DESC":"Kafka 是流行的開源流處理平台","FLUENTD_DESC":"Fluentd 是提供統一紀錄處理層的開源數據收集器","LOG_COLLECTION_ES_URL_TIPS":"預設使用系統部署的 Elasticsearch 服務,您也可以輸入在集群内部或外部單獨部署的 Elasticsearch 服務的地址。","LOG_COLLECTION_ES_INDEX_TIPS":"使用索引前綴進行快速搜索。系統以<集群>-<索引前綴>-<年-月-日>格式自動生成索引前綴。","ADDRESS_VALUE":"Address: {value}","TOPIC":"主題","ADD_SERVICE_ADDRESS":"新增","SERVICE_ADDRESS":"服務地址","ENTER_SERVICE_ADDRESS":"請輸入服務地址。","INVALID_SERVICE_ADDRESS":"請輸入正確的服務地址。","SERVICE_ADDRESS_EXIST":"The service address already exists. Please enter another service address.","EXAMPLE_VALUE":"Example: {value}","LOG_COLLECTION_FLUENTD_URL_TIPS":"輸入接收紀錄的 Fluentd 服務的地址。","EMPTY_LOG_COLLECTIONS":"未發現紀錄接收器。您可以添加紀錄接收器將記錄發送到外部紀錄接收器中。","RESOURCE_EVENTS":"資源事件","AUDIT_LOGS":"審計紀錄","NO_CLUSTER_TIP":"請添加至少 1 個集群","CLUSTER_NAME_EMPTY":"Please enter a cluster name.","ADD_CLUSTER":"添加集群","TAG":"標籤","CLUSTER_TAG_DESC":"選擇標籤來識別集群的用途。","CLUSTER_PROVIDER_DESC":"選擇提供集群基礎設施的服務商。","CONNECTION_SETTINGS":"Connection Settings","CLUSTER_CONFIG":"Cluster Configuration","EDIT_CONFIG":"編輯配置","CLUSTER_CONFIG_IMAGE_REGISTRY_TIP":"Please modify the image registry address to your actual one. The default is KubeSphere's official online registry. Ensure you can access it","CONNECTION_MODE":"Connection Mode","CLUSTER_CONNECT_MODE_DESC":"Directly connect to the cluster or use an agent.","CONNTECT_DIRECT":"直接連接 Kubernetes 集群","CONNTECT_PROXY":"集群連接代理","INPUT_KUBECONFIG":"Member Cluster kubeconfig","CLUSTER_DIRECT_IMPORT_TIP":"KubeSphere 多集群控制平面通過提供的 kubeconfig 來直接連接導入集群,此種方式要求目前集群能夠通過 kubeconfig 中的 server 地址直接訪問待導入集群。
    通常適用於:
    1. 目前集群和待導入集群在同一内網網路中
    2. 目前集群和待導入集群已通過 VPN 或穿隧協定等其它技術連通所在網路
    3. kubeconfig 的 server 地址可以通過公網訪問","CLUSTER_AGENT_IMPORT_TIP":"KubeSphere 控制平面通過代理方式連接待導入集群,控制平面啟動一個公開的代理服務,待導入集群創建相應的客戶端組件連接代理服務,與控制平面之間建立一個反向代理。此種方式不需要待導入集群和控制平面在同一網路,也不要求待導入集群暴露集群的 ApiServer 地址,但會有一定的網路性能損耗

    通常適用於:
    1. 目前集群和待導入集群不在同一網路中
    2. 目前集群和待導入集群無法通過 VPN 或穿隧協定等其它技術連通所在網路
    3. 對集群間網路性能損耗能容忍","CLUSTER_AGENT_TITLE":"請根據集群中提供的代理連接設置加入集群","CLUSTER_AGENT_DESC":"需要在集群中設置下相應的代理 Agent","HOW_TO_GET_KUBECONFIG":"How do I obtain kubeconfig?","HOST_CLUSTER_TCAP":"主集群","HOST_CLUSTER_PL_TCAP":"主集群","MEMBER_CLUSTER_TCAP_PL":"Member Clusters","CLUSTER_CONDITION_INITIALIZED":"Initialized","CLUSTER_CONDITION_AGENTAVAILABLE":"Agent Available","CLUSTER_CONDITION_FEDERATED":"Federated","CLUSTER_CONDITION_EXTERNALACCESSREADY":"External Access Ready","CLUSTER_CONDITION_READY":"Cluster Ready","CLUSTER_CONDITION_SCHEDULABLE":"Cluster Scheduling","CLUSTER_CONDITION_OPENPITRIXRUNTIMEREADY":"App Store Ready","CLUSTER_CONDITION_KUBECONFIGCERTEXPIRESINSEVENDAYS":"kubeconfig About to Expire","NODE_COUNT":"節點數量","ENV_PRODUCTION":"生產環境","ENV_DEVELOPMENT":"開發環境","ENV_TESTING":"測試環境","ENV_DEMO":"示範環境","UPDATE_KUBECONFIG":"Update kubeconfig","KUBE_CONFIG_IS_EXPIRED":"kubeconfig 已過期","EXPIRE_DATE":"過期時間","LAST_KUBE_CONFIG_EXPIRED":"kubeconfig 將在 {count} 天後過期","VALIDATION_FAILED":"Validation failed.","NO_CLUSTER_TIP_DESC":"A cluster is a group of nodes (physical or virtual machines) running KubeSphere.","RISK_WARNING":"Risk Warning","REMOVE_CLUSTER_TIP_A":"After the cluster is removed, resources in the cluster will not be cleared automatically.","REMOVE_CLUSTER_TIP_B":"After the cluster is removed, multi-cluster configuration data in the cluster will not be cleared automatically. Uninstalling KubeSphere or deleting related resources may cause user data loss. You must manually clear the multi-cluster configuration data in the removed cluster by refering to the official KubeSphere documentation.","CLUSTER_CONFIRM_TEXT":"I understand the risks of removing the cluster","ENTER_CLUSTER_NAME":"This operation cannot be undone. Enter the cluster name {name} to confirm that you understand the risks of this operation.","CONFIGMAP_DESC":"配置字典(ConfigMap)常用於儲存工作負載所需的配置資訊,許多應用程式會從配置文件、命令行參數或環境變量中讀取配置資訊。","FIELDS":"配置項","EDIT_YAML":"編輯 YAML","ENTER_CONFIG_VALUE_DESC":"配置是儲存通用的配置變量的,使用戶可以將分布式系統中用於不同模組的環境變量統一到一個對象中進行管理","CONFIG_FIELD_DESC":"此配置映射條目的唯一 key 值。","CONFIGURATION":"配置","SECRET_PL":"保密字典","SECRET_DESC":"保密字典(Secret)是一種包含少量敏感資訊的資源對象,例如密碼、token、秘鑰等,以鍵值對形式保存並且可以在容器組中使用。","SECRET_FIELD_COUNT":"字段數量","SECRET_EMPTY_DESC":"保密字典是一種包含少量敏感資訊的資源對象,例如密碼、token、秘鑰等,以鍵/值對形式保存並且可以在容器組中使用。","SECRET":"保密字典","DATA_SETTINGS":"數據設置","IMAGE_REGISTRY_INFORMATION":"鏡像倉庫資訊","TLS_INFORMATION":"TLS 資訊","USERNAME_PASSWORD":"用戶名稱與密碼","ADD_DATA_TCAP":"新增數據","ADD_DATA_DESC":"新增鍵值對數據。","REGISTRY_ADDRESS_TIP":"設置鏡像倉庫地址,例如 docker.io。","IMAGE_REGISTRY_REQUIRED_DESC":"請設置倉庫地址\b、用戶名稱和密碼資訊。","CREDENTIAL_NAME_EMPTY_DESC":"請輸入憑證名稱。","ENTER_PRIVATE_KEY_DESC":"請輸入私鑰。","ENTER_DATA_DESC":"請新增數據。","PRIVATE_KEY_TCAP":"私鑰","REGISTRY_ADDRESS_TCAP":"倉庫地址","SKIP_VERIFY":"跳過證書驗證","REGISTRY_SECRET_VER_ERR":"鏡像倉庫驗證失敗。","REGISTRY_SECRET_VER_SUC":"鏡像倉庫驗證通過。","SECRET_NO_CHINESE_CODE_DESC":"保密字典的鍵必須由字母數字字符、連字符(-)、下劃線(_)或句點(.)組成。","SECRET_TYPE_DESC":"選擇一個保密字典類型","IMAGE_REGISTRY_VALIDATE_TIP":"創建鏡像倉庫密鑰前, 請先驗證用戶名和密碼。","DATA_KEY":"鍵","DATA_VALUE":"值","DEFAULT":"預設","USERNAME_AND_PASSWORD":"用戶名和密碼","DATA":"數據","EDIT_DATA_TCAP":"編輯數據","KUBECONFIG_SETTINGS":"kubeconfig 設置","CUSTOM_RESOURCE_PL":"自定義資源","PROJECT_DEVOPS_PROJECT":"項目/DevOps 項目","CUSTOM_RESOURCE":"自定義資源","CUSTOM_RESOURCE_LOW":"custom resource","CRD":"CRD","CRD_PL":"CRD","CRD_LOW":"CRD","CRD_DESC":"自定義資源定義 (CRD) 是一種 Kubernetes 實現自定義資源類型的擴展方式,您可以如同操作内置資源對象一樣操作 CRD 對象。","CRD_EMPTY_DESC":"請創建一個 CRD。","KIND_TCAP":"類別","SCOPE_TCAP":"作用域","ALERTING_MESSAGE_PL":"Alerts","ALERT_MESSAGE_DESC":"Alerts are generated when resource metrics meet conditions configured in rule groups.","ALERTS_FROM_CUSTOM_POLICIES":"From Custom Rules","ALERTS_FROM_BUILT_IN_POLICIES":"From Built-in Rules","TRIGGER_TIME":"Trigger Time","ALERTING_MESSAGE_EMPTY_DESC":"No alert is found in the current project.","MONITORING_TARGET":"監控目標","DURATION":"Duration","VIEW_METRIC_DATA":"View metric data","ALERTING_RULE":"Alert Rules","MONITORING_TARGETS_SCAP":"監控目標","TRIGGER_CONDITION_SCAP":"Trigger condition","METRIC_MONITORING":"指標監控","ALERT_MONITORING":"Alert Monitoring","NOTIFICATION_SUMMARY_COLON":"Summary: ","DETAILS_COLON":"Details: ","NODES_VALUES":"Nodes: {values}","TRIGGER_CONDITION":"Trigger Condition","MESSAGE_SUMMARY":"概括","MESSAGE_DETAILS":"詳情","VIEW_METRIC_DATA_TCAP":"View Metric Data","ALERT_RULE_TEXT_PERCENT_SECOND":"{alterTypeText} {comparator} {thresholds}% for {durationValue, plural, =1 {1 second} other {# seconds}}","ALERT_RULE_TEXT_PERCENT_MINUTE":"{alterTypeText} {comparator} {thresholds}% for {durationValue, plural, =1 {1 minute} other {# minutes}}","ALERT_RULE_TEXT_PERCENT_HOUR":"{alterTypeText} {comparator} {thresholds}% for {durationValue, plural, =1 {1 hour} other {# hours}}","ALERT_RULE_TEXT_SECOND":"{alterTypeText} {comparator} {thresholds} {unit} for {durationValue, plural, =1 {1 second} other {# seconds}}","ALERT_RULE_TEXT_MINUTE":"{alterTypeText} {comparator} {thresholds} {unit} for {durationValue, plural, =1 {1 minute} other {# minutes}}","ALERT_RULE_TEXT_HOUR":"{alterTypeText} {comparator} {thresholds} {unit} for {durationValue, plural, =1 {1 hour} other {# hours}}","CPU_UTILIZATION_NO_PERCENT_TCAP":"CPU 使用量","CPU_LOAD_1_TCAP":"1-Minute CPU Load Average","CPU_LOAD_5_TCAP":"5-Minute CPU Load Average","CPU_LOAD_15_TCAP":"15-Minute CPU Load Average","MEMORY_UTILIZATION_NO_PERCENT_TCAP":"記憶體使用量","MEMORY_AVAILABLE_TCAP":"Available Memory","DATA_SEND_RATE_TCAP":"Network Data Sending Rate","DATA_RECEIVE_RATE_TCAP":"Network Data Receiving Rate","DISK_SPACE_UTILIZATION_NO_PERCENT_TCAP":"Local Disk Usage","DISK_SPACE_AVAILABLE_TCAP":"Available Local Disk Space","INODE_UTILIZATION_NO_PERCENT_TCAP":"Inode 用量","DISK_READ_IOPS_TCAP":"Local Disk Read IOPS","DISK_WRITE_IOPS_TCAP":"Local Disk Write IOPS","DISK_READ_THROUGHPUT_TCAP":"Local Disk Read Throughput","DISK_WRITE_THROUGHPUT_TCAP":"Local Disk Write Throughput","UNAVAILABLE_POD_RATIO_NO_PERCENT_TCAP":"Unavailable Pod Ratio","POD_QUOTA_UTILIZATION_NO_PERCENT_TCAP":"Pod Quota Usage","MEMORY_USAGE_WO_CACHE_TCAP":"Memory Usage Without Cache","UNAVAILABLE_WORKLOAD_REPLICA_RATIO_NO_PERCENT_TCAP":"Unavailable Replica Ratio","THRESHOLD_VALUE":"Threshold: {value}","NO_DATA_DESC":"未發現資料","ALERTING_POLICY_PL":"Rule Groups","ALERTING_POLICY_DESC":"A rule group contains alert rules used to monitor cluster resources.","REQUESTS_FOR_TRIGGER_AN_ALARM_Q":"How are alerts generated?","REQUESTS_FOR_TRIGGER_AN_ALARM_A":"You need to create a rule group and set alert rules. The system will generate alerts when resource metrics meet conditions configured in rule groups.","CUSTOM_POLICIES":"Custom Rule Groups","BUILT_IN_POLICIES":"Built-in Rule Groups","ALERTING_POLICY_EMPTY_DESC":"Please create a rule group.","ALERT_RULE_INACTIVE":"未觸發","ALERT_RULE_PENDING":"待觸發","ALERT_RULE_FIRING":"觸發中","ALERT_RULE_DISABLED":"已禁用","POLICY_STATUS":"Rule Group Status","RULE_STATUS":"Rule Status","TIME_SPENT":"Time Spent","RECENT_DETECT_TIME":"Last Check","EDIT_ALERT_RULES":"Edit Alert Rules","RESET":"Reset","SEVERITY":"告警級別","CREATE_ALERTING_POLICY":"Create Rule Group","CRITICAL_ALERT":"紧急","ERROR_ALERT":"重要","WARNING_ALERT":"警告","INFO_ALERT":"提醒","INVALID_TIME_DESC":"Invalid value. Please enter 0 or a positive integer.","ALIAS":"別名","DURATION_MIN":"Duration (minutes)","ALERT_DURATION":"Set the system to wait for a certain duration and check whether the alert situation persists before firing an alert.","LONG_NAME_DESC":"最長 253 個字元,只能包含小寫字母、數字及分隔符號(\"-\"),且必須以小寫字母或數字開頭及結尾","NAME_EXIST_DESC":"名稱已存在","ALIAS_NAME_DESC":"別名只能包含中文、字母、數字和連字符(-),不得以連字符(-)開頭或結尾,最長 63 個字符。","CHECK_INTERVAL":"Check Interval","ALERTING_POLICY_CHECK_INTERVAL_DESC":"Set the interval between metric checks. The default value is 1 minute.","ADD_ALERTING_RULE":"Add Alert Rule","ADD_ALERTING_RULE_DESC":"Add an alert rule to the rule group.","ENABLE_RULE":"Enable Rule","DISABLE_RULE":"Disable Rule","RULE_NAME":"Rule Name","CUSTOM_RULE_NAME_DESC":"The rule name can contain any characters. The maximum length is 63 characters.","LASTING_MINUTES":"For {minutes, plural, =1 {1 minute} other {# minutes}}","THRESHOLD_REQUIRED":"Please enter a metric threshold.","MESSAGE_SUMMARY_DESC":"The message summary can contain any characters. The maximum length is 63 characters.","MESSAGE_DETAILS_DESC":"The message details can contain any characters. The maximum length is 256 characters.","RULE_TEMPLATE":"規則模板","RULE_SETTINGS":"規則設置","MONITORING_TARGETS":"監控目標","SET_ACTIVATION_CONDITION_DESC":"Please set a trigger condition.","THRESHOLD":"閾值","UNAVAILABLE_POD_RATIO":"Unavailable pod ratio (%)","POD_QUOTA_UTILIZATION_SCAP":"Pod quota usage (%)","CPU_USAGE_SCAP":"CPU 用量","CPU_UTILIZATION_SCAP":"CPU usage (%)","CPU_LOAD_1":"1-minute CPU load average","CPU_LOAD_5":"5-minute CPU load average","CPU_LOAD_15":"15-minute CPU load average","MEMORY_AVAILABLE":"可用記憶體","MEMORY_UTILIZATION_SCAP":"Memory usage (%)","DISK_SPACE_AVAILABLE":"本地磁碟可用空間","DISK_SPACE_UTILIZATION":"Local disk usage (%)","INODE_UTILIZATION":"Inode usage (%)","DISK_READ_IOPS":"本地磁碟讀取 IOPS","DISK_WRITE_IOPS":"本地磁碟寫入 IOPS","DISK_READ_THROUGHPUT":"本地磁碟讀取吞吐量","DISK_WRITE_THROUGHPUT":"本地磁碟寫入吞吐量","DATA_RECEIVE_RATE":"網路接收數據速率","DATA_SEND_RATE":"網路發送數據速率","MEMORY_USAGE_SCAP":"記憶體用量","MEMORY_USAGE_WO_CACHE_SCAP":"Memory usage without cache","UNAVAILABLE_WORKLOAD_REPLICA_RATIO":"Unavailable replica ratio (%)","SELECT_NODE_TIP":"請選擇至少一個集群節點。","CUSTOM_RULE":"自定義規則","RULE_EXPRESSION":"告警規則表達式","ENTER_RULE_EXPRESSION":"請輸入告警規則表達式。","ALERT_RULE_EXPRESSION_DESC":"您可以通過 PromQL 語句來自定義告警規則。","ALERT_FUNCTIONS":"Functions","ALERT_METRICS":"Metrics","ALERT_LABELS":"標籤","ALERT_RATE_RANGES":"Rate Ranges","ALERTING_MESSAGE":"Alert","MESSAGE_SETTINGS":"訊息設置","NOTIFICATION_SUMMARY":"概括","NOTIFICATION_DETAILS":"詳情","EDIT_ALERTING_POLICY":"Edit Rule Group","DISABLE_ALERTING_POLICY":"Disable Rule Group","ALERTING_POLICY":"Rule Group","ALERTING_POLICY_LOW":"rule group","RESET_ALERTING_POLICY":"Reset Rule Group","RESET_ALERTING_POLICY_DESC":"Are you sure you want to reset the rule group?","APPLICATION_RESOURCE_PL":"應用資源監控","MONITORING_APPLICATION_DESC":"應用資源提供應用資源用量的監控數據以及用量排行情況。","CUSTOM_TIME_RANGE":"自定義時間範圍","ACCOUNTS":"帳戶","DEVOPS_PROJECT_PL":"DevOps 項目","SAMPLING_INTERVAL":"採樣間隔","KUBE_SUN":"日","KUBE_MON":"一","KUBE_TUE":"二","KUBE_WED":"三","KUBE_THU":"四","KUBE_FRI":"五","KUBE_SAT":"六","KUBE_SUNDAY":"星期日","KUBE_MONDAY":"星期一","KUBE_TUESDAY":"星期二","KUBE_WEDNESDAY":"星期三","KUBE_THURSDAY":"星期四","KUBE_FRIDAY":"星期五","KUBE_SATURDAY":"星期六","KUBE_JAN":"1月","KUBE_FEB":"2月","KUBE_MAR":"3月","KUBE_APR":"4月","KUBE_MAY":"5月","KUBE_JUN":"6月","KUBE_JUL":"7月","KUBE_AUG":"8月","KUBE_SEP":"9月","KUBE_OCT":"10月","KUBE_NOV":"11月","KUBE_DEC":"12月","KUBE_JAN_LH":"一月","KUBE_FEB_LH":"二月","KUBE_MAR_LH":"三月","KUBE_APR_LH":"四月","KUBE_MAY_LH":"五月","KUBE_JUN_LH":"六月","KUBE_JUL_LH":"七月","KUBE_AUG_LH":"八月","KUBE_SEP_LH":"九月","KUBE_OCT_LH":"十月","KUBE_NOV_LH":"十一月","KUBE_DEC_LH":"十二月","APPLICATION_RESOURCE_USAGE":"應用資源用量","DEPLOYMENT":"部署","DEPLOYMENT_PL":"部署","DEPLOYMENT_LOW":"deployment","STATEFULSET":"有狀態副本集","STATEFULSET_PL":"有狀態副本集","STATEFULSET_LOW":"statefulset","DAEMONSET":"守護進程集","DAEMONSET_PL":"守護進程集","DAEMONSET_LOW":"daemonset","DEPLOYMENTS_VALUE":"部署:{value}","STATEFULSETS_VALUE":"有狀態副本集數量:{value}","DAEMONSETS_VALUE":"守護進程集數量:{value}","RUNNING_PODS":"運行中的容器組數量","ROUTE":"應用路由","PROJECT_PL":"項目","PROJECT_COUNT":"項目數量","USAGE_RANKING":"用量排行","QUOTA_VALUE":"配額:{value}","OUTBOUND_TRAFFIC":"出站流量","INBOUND_TRAFFIC":"入站流量","SORT_BY_NAMESPACE_CPU_USAGE":"按 CPU 使用量排行","SORT_BY_NAMESPACE_POD_COUNT":"Sort by pod quota usage (%)","SORT_BY_NAMESPACE_NET_BYTES_RECEIVED":"按網路流入速率排行","SORT_BY_NAMESPACE_NET_BYTES_TRANSMITTED":"按網路流出速率排行","MONITORING_AND_ALERTING":"監控告警","CLUSTER_STATUS":"集群狀態","MONITORING_CLUSTER_DESC":"集群狀態展示集群資源的概覽和詳情,您可以查看集群資源的監控數據和用量排行情況。","CLUSTER_NODE_STATUS":"集群節點狀態","ALL_NODES":"全部節點","ONLINE_NODES":"在線節點","NODE_ONLINE_STATUS":"節點在線狀態","TIMES_PER_SECOND":"times/s","COMPONENT_STATUS":"組件狀態","CONTROLLER_MANAGER":"管理控制中心","KUBERNETES_SCHEDULER":"K8s 調度器","CLUSTER_RESOURCE_USAGE":"集群資源使用情況","POD_COUNT":"容器組數量","COUNT":"數量","PODS":"容器組","SERVICE_STATUS":"服務狀態","ETCD_MONITORING":"etcd 監控","DB_SIZE":"資料庫大小","RAFT_PROPOSAL":"Raft 提議","ETCD_STATUS":"服務 狀態","ETCD_PROPOSAL":"Raft 提議","ETCD_DB_SIZE":"資料庫 大小","ETCD_CLIENT_TRAFFIC":"客戶端 流量","TITLE_UNIT":"{title}({unit})","AVERAGE":"Average","PROPOSAL_COMMITTED":"Committed","PROPOSAL_APPLIED":"Applied","PROPOSAL_FAILED":"失敗","PROPOSAL_PENDING":"等待中","SERVICE_COMPONENT_MONITORING":"服務組件監控","SCHEDULE_ATTEMPTS":"調度次數","SCHEDULING_RATE":"調度速率","REQUEST":"請求","REQUEST_PER_SECOND":"每秒請求數","SCHEDULER":"調度器","TOTAL_AVERAGE":"總平均值","SUCCESS":"成功","ERROR":"錯誤","FAILURE":"失敗","REQUEST_LATENCY_TCAP":"請求 延遲","REQUEST_RATE":"請求 速率","SCHEDULE_ATTEMPTS_TCAP":"調度 次數","SCHEDULING_RATE_TCAP":"調度 速率","API_SERVER":"API 伺服器","SELECT_TIME_RANGE":"選擇時間範圍","LAST_TIME":"最近 {value}","LAST_TIME_M":"最近 {num} 分鐘","LAST_TIME_H":"最近 {num} 小時","LAST_TIME_D":"最近 {num} 天","TIMERANGE_SELECTOR_MSG":"結束時間需晚於開始時間。","TIMERANGE_SELECTOR_ERROR_MSG":"時間範圍設置錯誤。","PHYSICAL_RESOURCES_MONITORING":"物理資源監控","INODE_USAGE":"Inode 用量","DISK_USAGE":"磁碟用量","DISK_USAGE_DETAILS":"Disk Usage Details","AVERAGE_CPU_LOAD":"CPU 平均負載","DISK_THROUGHPUT":"磁碟吞吐量","POD_STATUS":"容器組狀態","COMPLETED":"已完成","WARNING":"異常","READ":"讀","WRITE":"寫","RUNNING":"運行中","TIME_M":"{num} 分鐘","TIME_H":"{num, plural, =1 {1 hour} other{# hours}}","TIME_D":"{num, plural, =1 {1 day} other{# days}}","EXTERNAL_ETCD":"外部 etcd","DB_FSYNC":"資料庫同步時間","GRPC_STREAM_MESSAGES":"gRPC 流式訊息","CLIENT_TRAFFIC":"客戶端流量","RECEIVED":"接收","SENT":"發送","WAL_FSYNC":"WAL 紀錄同步時間","ETCD_LEADER_TITLE":"是否有 Leader","ETCD_CHANGES_TITLE":"1 小時内 Leader 變更次數","NODE_IP_ADDRESS_VALUE":"節點 IP 地址:{value}","API_SERVER_MONITORING":"API Server 監控","REQUEST_LATENCY":"請求延遲","REQUEST_LATENCY_MS":"請求延遲(ms)","REST_CREATE":"CREATE","REST_DELETE":"DELETE","REST_DELETECOLLECTION":"DELETECOLLECTION","REST_GET":"GET","REST_POST":"POST","REST_PATCH":"PATCH","REST_PUT":"PUT","REST_UPDATE":"UPDATE","REST_LIST":"LIST","SCHEDULER_MONITORING":"調度器監控","SCHEDULING_LATENCY":"調度延遲","RESOURCE_USAGE_RANKING":"資源用量排行","SORT_BY_NODE_CPU_UTILISATION":"Sort by CPU usage (%)","SORT_BY_NODE_MEMORY_UTILISATION":"Sort by memory usage (%)","SORT_BY_NODE_DISK_SIZE_UTILISATION":"Sort by disk usage (%)","SORT_BY_NODE_POD_UTILISATION":"按容器組用量排行","SORT_BY_NODE_DISK_INODE_UTILISATION":"按 Inode 使用率排行","SORT_BY_NODE_LOAD1":"Sort by 1-minute CPU load average","SORT_BY_NAMESPACE_MEMORY_USAGE_WO_CACHE":"按記憶體使用量排行","POD_USAGE":"容器組用量","EXPORT":"匯出","CUSTOM_MONITORING":"自定義監控","CUSTOM_MONITORING_DASHBOARD":"自定義監控面板","CUSTOM_MONITORING_DASHBOARD_PL":"自定義監控面板","CUSTOM_MONITORING_DASHBOARD_EMPTY_DESC":"請創建一個自定義監控面板。","CUSTOM_MONITORING_DASHBOARD_DESC":"自定義監控提供應用監控模板,您可以根據需求自定義監控面板。","TEMPLATE":"Template","CREATE_CUSTOM_MONITORING_DASHBOARD":"創建自定義監控面板","MONITORING_TEMPLATE":"監控模板","CUSTOM_MONITORING_TEMPLATE_DESC":"選擇預設模板、上傳模板或自定義模板來生成自定義監控面板。","UPLOAD_GRAFANA_DASHBOARD":"上傳 Grafana 監控面板","SUPPORT_JSON_FILE":"僅支援 JSON 格式的文件。","UPLOAD_GRAFANA_URL":"通過 URL 上傳 Grafana 監控面板。","UPLOAD_FROM_LOCAL_TITLE":"選擇或拖移文件","FILE_UPLOAD_ERROR":"只能上傳一個文件。","UPLOAD_FILE_TIP":"請上傳文件。","ENTER_GRAFANA_URL":"請輸入 Grafana 監控面板 URL。","UPLOAD_FROM_LOCAL_STORAGE":"從本地上傳","UPLOAD_FROM_URL":"通過 URL 上傳","DASHBOARD_TITILE":"Dashboard title","APPLICABLE_SCENE":"Applicable Scenario","BASE_LINE_CHART":"Base Line Chart","STACK_LINE_CHART":"Stacked Area Chart","BASE_LINE_CHART_DESC":"A line chart is mainly used to visualize a trend or change in data over time. It is very useful for displaying a series of two-dimensional continuous data, such as website traffic or product prices.","STACK_LINE_CHART_DESC":"A stacked area chart is a special kind of area charts that can be used to compare multiple variables in an interval. It is very useful when multiple data series are available as you can analyze the relation of each group to the whole chart and display their respective proportion.","LINE_CHART_DESC":"A line chart is mainly used to visualize a trend or change in data over time.","BASE_BAR_CHART":"Base Bar Chart","STACK_BAR_CHART":"Stacked Bar Chart","BAR_CHART_DESC":"A bar chart is the most common type of charts. It presents different categorical data with horizontal or vertical bars with heights or lengths proportional to the values that they represent.","BASE_BAR_CHART_DESC":"One axis of the base bar chart features the categories being compared, while the other axis represents the value of each.","STACK_BAR_CHART_DESC":"A stacked bar chart is an extension of bar charts. A standard bar chart compares individual data points with each other while in a stacked bar chart, parts of the data are adjacent or stacked. It can be used to present the total amount of a category as well as its sub-amounts (proportion). Therefore, it is very helpful for examining part-to-whole relations.","CUSTOM_DISPLAY_MODAL_DESC":"Customize the table display style according to your needs","THRESHOLD_FILL_DESC":"You can set a threshold and the style can be changed automatically after the threshold is exceeded.","ADD_MONITOR_ITEM":"添加監控項","ADD_MONITOR_ROW":"添加監控組","CHART_TYPES":"圖表類型","GRAPH_TYPES":"圖例類型","LINE_CHART":"折線圖","BAR_CHART":"柱狀圖","SELECT_CHART_TYPE":"選擇圖表類型","SELECT_CHART_TYPE_MODAL_DESC":"選擇您要添加的自定義圖表類型","SINGLE_STATE_CHART":"即時文本","DISPLAY_POSITION":"圖表布局位置","EMPTY_CHART_PLACEHOLDER":"圖表將顯示在此區域","DISPLAY_FORMAT":"顯示格式","FIELD_NAME":"字段名稱","COLUMN_NAME":"列名稱","GRAPH_NAME":"圖表名稱","DECIMALS":"精確位","TABLE":"表格","TABLE_SETTINGS":"表格設置","VALUE_FOMATER":"數據取值","PER_PAGE_LINES":"每頁行數","CUSTOM_DISPLAY_STYLE":"設置顯示格式","DATA_TYPE":"數據類型","Y_AXIS":"Y軸","GRAPH_COLORS":"圖表配色","SINGLE_GRAPH_TYPE_NAME":"基礎圖","SINGLE_GRAPH_TYPE":"最常見的圖表類型","STACKED_GRAPH_TYPE":"堆疊圖","STACKED_GRAPH_TYPE_DESC":"適用於各大類總量及分量之間的對比顯示","MONITOR_TYPE_NO_SUPPORT":"目前不支持該類型","MONITOR_METRIC":"監控指標","METRIC_NAME":"圖例名稱","DEBUGB_DATA":"除錯數據","TIME_FORMAT":"時間格式","HIGHT_RULES":"高亮規則","EDIT_TEMPLATE":"編輯模板","SAVE_TEMPLATE":"保存模板","THRESHOLD_FILL":"臨界值填充","UNIT":"Unit","COOL_COLORS":"Cool Colors","WARM_COLORS":"Warm Colors","DEFAULT_COLORS":"Default Colors","LAST":"Last","SECOND_TIME":"{count, plural, =1 {1 second} other{# seconds}}","MINUTE_TIME":"{count, plural, =1 {1 minute} other{# minutes}}","HOUR_TIME":"{count, plural, =1 {1 hour} other{# hours}}","DAY_TIME":"{count, plural, =1 {1 day} other{# days}}","WEEK_TIME":"{count, plural, =1 {1 week} other{# weeks}}","NO_REFRESHING":"No refreshing","INTERVAL":"Interval","CUSTOM_MONITORING_DASHBOARD_LOW":"自定義監控面板","EGRESS_RULES":"出站規則","DESTINATION":"目的地","LABEL":"標籤","INGRESS_RULES":"入站規則","NETWORK_POLICY":"網路策略","NETWORK_POLICY_PL":"網路策略","NETWORK_POLICY_DESC":"The network policy configuration allows network isolation within the same cluster, which means firewalls can be set up between certain instances (pods).","NETWORK_POLICY_Q":"如何更好地使用網路策略?","NETWORK_POLICY_A":"根據實際使用場景我们整理了幾種較為常見的應用場景,您可以查閱文件了解更多","NETWORK_POLICY_Q1":"CNI 插件實現網絡策略需滿足哪些必要條件?","NETWORK_POLICY_A1":"Kubernetes 所使用 CNI 必須支持 Kubernetes 原生網路策略,例如 Calico, Cilium, Kube-router, Romana and Weave Net。","NETWORK_POLICY_EMPTY_DESC":"請創建一個網路策略。","CREATE_NETWORK_POLICY_TCAP":"創建網路策略","CREATE_BTN":"創建","CREATE_NETWORK_POLICY_DESC":"通過配置網路策略控制同一集群内 Pod 之間的流量以及來自外部的流量,從而實現隔離應用並增強應用的安全性。","NETWORK_POLICY_LOW":"網路策略","NETWORK":"網絡","START_IP_ADDRESS":"起始 IP 地址","END_IP_ADDRESS":"結束 IP 地址","MASK":"掩碼","WORKSPACES":"企業空間","MANAGER":"管理員","IPPOOL_WORKSPACE_EMPTY_TIP":"未發現企業空間使用此 IP 池","NAMESPACE_PL":"項目","ADD_IPPOOLL_NAMESPACE":"新增項目","ADD_IPPOOLL_NAMESPACE_DESC":"將 IP Pool 分配到新的項目","REMOVEALL_IPPOOLL_NAMESPACE":"移除全部","REMOVEALL_IPPOOLL_NAMESPACE_PROJECT":"移除全部項目","REMOVEALL_IPPOOLL_NAMESPACE_PROJECT_DESC":"項目移除後,該項目將不再受 IP Pool 資源分配限制","POD_IP_POOL_PL":"容器組 IP 池","POD_IP_POOL_DESC":"容器組 IP 池用於規劃集群內 Pod 的網絡地址空間,您可以按需創建容器組 IP 池。","IPPOOL_USAGE_Q":"如何利用 IP 地址範圍規劃容器組網路?","IPPOOL_USAGE_A":"IP 地址範圍用於規劃 Pod 網路地址空間,每個 IP 地址範圍之間地址空間不能。創建工作負載時,可選擇特定的 IP 地址範圍,這樣創建出的容器組將從該 IP 地址範圍中分配 IP。","POD_IP_POOL_EMPTY_DESC":"請創建一個容器組 IP 池。","TOTAL_VALUE":"總共:{value}","ALL":"全部","NOT_ASSIGNED":"未分配","CREATE_POD_IP_POOL":"創建容器組 IP 池","NETWORK_SEGMENT":"網段","USED_IP_ADDRESSES":"已用 IP 地址","QUANTITY":"數量","IP_POOL_CREATE_DESC":"即將創建的容器組 IP 池","IP_ADDRESS_EMPTY_DESC":"請輸入 IP 地址。","MASK_TIP":"請輸入遮罩。","ENTER_NETWORK_SEGMENT_TIP":"請輸入網段。","IP_POOL_NUM_TIP":"請輸入需要創建的容器組 IP 地址範圍數量。","IP_POOL_CREATE_COUNT_DESC":"可以同時創建多個容器組 IP 地址範圍,數量範圍為 1~10","INVALID_IP_DESC":"IP 地址格式錯誤。","IPPOOL_ASSIGN_WORKSPACE_DESC":"為 IP 池分配一個企業空間。","IPPOOL_ASSIGN_WORKSPACE_ALLOCATED_WARNING":"IP 地址範圍已被使用,無法分配给某一個具體的企業空間","IPPOOL_ASSIGN_WORKSPACE_CHANGE_WARNING":"IP 地址範圍已被使用,且已指定具體的企業空間,無法更改目標企業空間","ASSIGN_WORKSPACE":"分配企業空間","SELECT_WORKSPACE_DESC":"選擇一個企業空間","POD_IP_POOL_LOW":"容器組 IP 池","ADD_EDGE_IPPOOL":"添加容器組 IP 池","ADD_EDGE_IPPOOL_DES":"為資源添加容器組 IP 池。","ADD_IPPOOL_EMPTY_DES_ADMIN":"如果沒有容器組 IP 池滿足要求,您可以","ADD_IPPOOL_EMPTY_DES":"如果沒有容器組 IP 池滿足要求,請聯系管理員創建容器組 IP 池","SELECTED_IPPOOLS":"已選擇 {number} 個 IP 池","CLUSTER_IPPOOL_EMPTY_DES":"當前集群下沒有發現可用的容器組 IP 池。","ATTRIBUTES":"Attributes","ARCHITECTURE":"系統架構","OS_VERSION":"操作系統","OS_TYPE":"操作系統類型","LINUX":"Linux","KERNEL_VERSION":"内核版本","CONTAINER_RUNTIME":"容器版本","KUBELET_VERSION":"Kubelet 版本","KUBE_PROXY_VERSION":"Kube-Proxy 版本","IP_ADDRESS":"IP 地址","SCHEDULABLE":"可調度","YES":"是","EDIT_LABELS":"編輯標籤","LABEL_PL":"標籤","TAINTS":"汙點","EDIT_TAINTS":"汙點管理","TAINTS_DESC":"汙點表示此節點已被 key=value 汙染,容器組調度不允許(PodToleratesNodeTaints 策略)或盡量不(TaintTolerationPriority 策略)調度到此節點,除非是能夠容忍(Tolerations)key=value 汙點的容器組。","COMMON_TAINTS":"公共汙點","NOSCHEDULE":"不允許調度 (NoSchedule)","PREFERNOSCHEDULE":"盡量不調度 (PreferNoSchedule)","NOEXECUTE":"不允許並驅逐已有容器組 (NoExecute)","TAINT_SELECT_TIPS":"Join Common Taints","TAINTS_TIPS":"如果主機中存在一個或多個影響策略為 NoSchedule 的汙點,該容器組不會被調度到該主機
    如果主機中不存在影響策略為 NoSchedule 的汙點,但是存在一個或多個影響策略為 PreferNoSchedule 的汙點,該容器組會盡量不調度到該主機
    如果主機中存在一個或多個影響策略為 NoExecute 的汙點,該容器組不會被調度到該主機,並且會驅逐已經調度到該主機的容器組實例","TAINT_DELETE_TIP":"Delete taint","RESOURCE_USAGE":"資源用量","MAXIMUM_PODS":"容器組最大數量","MAXIMUM_PODS_SCAP":"容器組最大數量","DISK_USAGE_SCAP":"Disk usage","MEMORY_REQUEST_SCAP":"記憶體預留","MEMORY_LIMIT_SCAP":"記憶體限制","CPU_REQUEST_SCAP":"CPU 預留","CPU_LIMIT_SCAP":"CPU 限制","ALLOCATED_RESOURCES":"已分配資源","RUNNING_STATUS":"運行狀態","HEALTH_STATUS":"健康狀態","NODE_NETWORKUNAVAILABLE":"網路可用性","NODE_NETWORKUNAVAILABLE_DESC":"節點的網路狀態是否正常。","NODE_MEMORYPRESSURE":"記憶體壓力 (MemoryPressure)","NODE_MEMORYPRESSURE_DESC":"節點的剩餘記憶體是否小於閾值。","NODE_DISKPRESSURE":"磁碟壓力 (DiskPressure)","NODE_DISKPRESSURE_DESC":"節點的剩餘磁碟空間或 Inode 數量是否小於閾值。","NODE_PIDPRESSURE":"進程壓力 (PIDPressure)","NODE_PIDPRESSURE_DESC":"允許在節點上創建的進程數量是否小於閾值。","NODE_READY":"就緒","NODE_READY_DESC":"節點是否可以接收容器組。","LAST_HEARTBEAT_VALUE":"Last Heartbeat: {value}","NO_TAINTS_TIPS":"未發現汙點。","POLICY":"策略","READY_VALUE":"就緒:{readyCount}/{total}","STATUS_VALUE":"狀態:{value}","USAGE":"Usage","OUT":"Out","IN":"入","CLUSTER_NODE_PL":"集群節點","CLUSTER_NODE":"集群節點","CLUSTER_NODE_DESC":"集群節點提供了目前集群下節點的運行狀態,以及可以編輯刪除節點","NODE_TYPES_Q":"集群節點的類型?","NODE_TYPES_A":"集群節點分為控制平面節點和工作節點。","WHAT_IS_NODE_TAINTS_Q":"什麼是節點汙點?","WHAT_IS_NODE_TAINTS_A":"節點汙點 (Taints) 可以阻止某些容器組 (Pod) 副本部署至該節點中, 與容忍度 (Tolerations) 一起工作確保容器組不會被調度到不合適的節點上","LEARN_MORE":"了解更多","NODE_SI":"節點","NODE_PL":"節點","MASTER_NODE_SI":"控制平面節點","MASTER_NODE_PL":"控制平面節點","WORKER_NODE_SI":"工作節點","WORKER_NODE_PL":"工作節點","KUBE_OPERATE":"操作","KUBE_ASCENDING_ORDER":"正序排列…","KUBE_DESCENDING_ORDER":"倒序排列…","KUBE_FILTER":"過濾選項","SEARCH":"輸入查詢條件進行過濾","ADD_NODE":"添加節點","NODE_STATUS_UNSCHEDULABLE":"無法調度","NODE_STATUS_RUNNING":"運行中","NODE_STATUS_WARNING":"異常中","NODE_STATUS_PENDING":"創建中","NODE_STATUS_FAILED":"創建失敗","CLUSTER_NODE_EMPTY_DESC":"請為集群添加一個節點。","NODE_NAME_EMPTY_DESC":"請輸入節點名稱","CPU_USAGE":"CPU 使用量","MEMORY_USAGE":"記憶體使用量","CONTROL_PLANE":"控制平面節點","WORKER":"工作節點","ALLOCATED_CPU":"已分配 CPU","ALLOCATED_MEMORY":"已分配記憶體","CPU_LIMIT_SI":"資源限制:{core} 核({percent})","CPU_LIMIT_PL":"資源限制:{core} 核({percent})","CPU_REQUEST_SI":"{core} 核({percent})","CPU_REQUEST_PL":"{core} 核({percent})","CORE_PL":"核","CPU_CORE_PERCENT_SI":"{core} 核({percent})","CPU_CORE_PERCENT_PL":"{core} 核({percent})","MEMORY_GIB_PERCENT":"{gib} GiB({percent})","MEMORY_LIMIT_VALUE":"資源限制:{gib} GiB({percent})","MEMORY_REQUEST_VALUE":"{gib} GiB({percent})","RESOURCE_REQUEST":"資源預留","CORDON":"停止調度","UNCORDON":"啟動調度","OPEN_TERMINAL":"打開終端機","CUSTOM_COLUMNS":"内容自定義","NO_MATCHING_RESULT_FOUND":"暫時沒有找到符合過濾條件的資源","STATUS":"狀態","TOTAL_ITEMS":"共 {num} 個項目","YOU_CAN_TRY_TO":"You can try","REFRESH_DATA":"refreshing data","CLEAR_SEARCH_CONDITIONS":"clearing search conditions","DUPLICATE_KEYS":"無法添加重複的 key","EMPTY_KEY":"無法添加空的 key","LATEST_UPDATE_VALUE":"狀態更新時間:{value}","EDGE_NODE_PL":"邊緣節點","EDGE_NODE_DESC":"邊緣節點提供了目前集群下節點的運行狀態,以及可以編輯刪除節點","EDGE_NODE_EMPTY_DESC":"邊緣節點提供了目前集群下節點的運行狀態,以及可以編輯刪除節點","AGENT":"代理","EDGE":"邊緣節點","ADD":"添加","ADD_EDGE_NODE":"Add Edge Node","EDGENODE_CONFIG_COMMAND":"添加命令","ADD_EDGE_COMMAND":"將命令複製到命令行中進行創建邊緣節點","IN_USE_Node_IP":"節點 IP {ip} 已被使用","IN_USE_Node_NAME":"節點名稱 {name} 已被使用","EDGENODE_NAME_EMPTY_DESC":"請輸入節點名稱","EDGENODE_CONFIG_COMMAND_TIP":"運行命令前請確保已在邊緣節點安裝容器運行時如 docker 或 container。","ADD_DEFAULT_TAINT":"添加默認污點 {params}","EDGE_NODE":"邊緣節點","INTERNAL_IP_ADDRESS":"節點內網 IP 地址","EDGENODE_INTERNAL_IP_DESC":"集群内各節點間可以互相訪問的內網 IP 地址","EDGENODE_INTERNAL_IP_EMPTY_DESC":"请输入节点在私网内的 IP 地址。","COPY_SUCCESSFUL":"复制成功。","LOGS":"操作紀錄","VIEW_LOG":"查看紀錄","EDGE_LIST_NOT_HOST_TITLE":"目前叢集不可用","EDGE_LIST_NOT_HOST_TITLE_DESC":"邊緣節點暫時只能在主集群使用","HOST_CLUSTER":"主集群","MEMBER_CLUSTER":"Member cluster","PROVIDER":"服務商","KUBERNETES_VERSION":"Kubernetes 版本","KUBESPHERE_VERSION":"KubeSphere 版本","VISIBILITY_PARTIAL":"部分可見","VISIBILITY_PUBLIC":"公開","CLUSTER_BASE_INFO_DESC":"基本資訊是目前集群的資訊概覽,您可以查看和編輯集群的基本資訊。","MEMORY":"記憶體","TOTAL":"總計","USED":"已使用","TOOLS":"Tools","KUBECTL_DESC":"目前集群客戶端命令行工具","KUBECONFIG_DESC":"配置文件,用於配置目前集群的訪問資訊。","KUBERNETES_STATUS":"Kubernetes 組件狀態","API_REQUESTS_PER_SECOND":"每秒 API 請求數","VALUE_REQUESTS_SECOND":"{value, plural, =1 {1 request} other {# requests}}/s","API_REQUEST_LATENCY":"API 請求延遲","SCHEDULING_OPERATIONS":"排程器調度次數","SCHEDULING_OPERATION":"排程器調度次數","SCHEDULING_FAILURES":"調度失敗的容器組","SCHEDULING_FAILURE":"調度失敗的容器組","VIEW_MORE":"查看更多","NODE_CPU_UTILISATION":"CPU 用量","NODE_LOAD1":"Average CPU load (1 min)","NODE_MEMORY_UTILISATION":"記憶體用量","NODE_DISK_SIZE_UTILISATION":"Disk usage","NODE_DISK_INODE_UTILISATION":"Inode usage","NODE_POD_UTILISATION":"容器組利用率","WAIT_FOR_CLUSTER":"Waiting for the cluster to join...","WAIT_FOR_CLUSTER_DESC":"The cluster is unavailable. Perform the following steps to add the cluster.","CLUSTER_AGENT_TIP_1":"1. Log in to the cluster over SSH and run the vi agent.yaml command to create a configuration file.","CLUSTER_AGENT_TIP_2":"2. Copy the following information to the agent.yaml file.","CLUSTER_AGENT_TIP_3":"3. Run the kubectl create -f agent.yaml command to add the cluster.","CLUSTER_AGENT_TIP_3_DESC":"This operation may take a while. Please wait until the cluster status is updated.","CREATING_CLUSTER":"Creating the cluster...","CREATING_CLUSTER_DESC":"The cluster is being created and is currently unavailable.","CLUSTER_INIT_FAILED":"Cluster initialization failed.","CLUSTER_CREATION_PROGRESS":"Cluster Creation Progress","FETCHING_LOGS":"Fetching logs...","CURRENT_STEP":"Current step: {step}","CLUSTER_CREATION_PROGRESS_TIP":"Depending on the cluster size and infrastructure environment, cluster creation may take 30 to 60 minutes.","GATEWAY":"網關資訊","GATEWAY_NOT_ENABLED":"網關未開啟","ENABLE_GATEWAY_TIP":"要使用網關,請在集群或項目中配置網關","QUOTA_PL":"配額","PROJECT_DESC":"將根據項目資源進行分組,可以按項目對資源進行查看管理","SYSTEM_PROJECTS":"系統項目","USER_PROJECTS":"用戶項目","EMPTY_WRAPPER":"未發現{resource}","TERMINATING":"刪除中","ACTIVE":"活耀","PROJECT_ADMINISTRATOR":"項目管理員","PROJECT_ADMINISTRATOR_DESC":"選擇企業空間的用戶作為管理員。","PROJECT_ASSIGN_DESC":"項目一旦被分配到企業空間後將不允許修改企業空間","CREATE_PROJECT_DESC":"KubeSphere 中的項目對應的是 Kubernetes 的 namespace,是對一組資源和對象的抽象集合,常用來將系統内部的對象劃分為不同的項目組或用戶組。","PROJECT_NAME_DESC":"最長 63 個字元,只能包含小寫字母、數字及分隔符號(\"-\"),且必須以小寫字母開頭, 字母或數字結尾","PROJECT_NAME_INVALID_DESC":"最長 63 個字元,只能包含小寫字母、數字及分隔符號(\"-\"),且必須以小寫字母開頭, 字母或數字結尾","CANCEL":"取消","CREATE_NAME":"創建{name}","DESCRIPTION":"描述資訊","NAME_VALIDATION_FAILED":"避免使用前綴為 kube- 的名稱,因為它是為 Kubernetes 系統命名空間保留的","PROJECT_NAME_EXIST_DESC":"The name already exists. Please enter another name. Project names must be unique on the entire platform.","NAME_EMPTY_DESC":"請輸入名稱。","OK":"確定","NAME_DESC":"最長 63 個字元,只能包含小寫字母、數字及分隔符號(\"-\"),且必須以小寫字母或數字開頭及結尾","DESCRIPTION_DESC":"描述資訊不超過 256 個字元","ALIAS_DESC":"The alias name can contain only letters, numbers, and hyphens (-), and cannot start or end with a hyphen. The maximum length is 63 characters.","EDIT_INFORMATION":"編輯資訊","DELETE_TITLE_SI":"{type} 刪除確認?","DELETE_TITLE_PL":"{type} 刪除確認?","DELETE":"刪除","PROJECT_LOW":"項目","DELETED_SUCCESSFULLY":"Deleted successfully.","STOP_SUCCESS_DESC":"停止成功。","DELETE_RESOURCE_TYPE_DESC_SI":"請輸入 {type} 名稱 {resource} 確保您已了解操作所帶來的風險。","DELETE_RESOURCE_TYPE_DESC_PL":"請輸入 {type} 名稱 {resource} 確保您已了解操作所帶來的風險。","DELETE_RESOURCE_TYPE_DESC_GW":"請輸入 {type} 名稱 {resource} 確保您已了解操作所帶來的風險。","DISABLED_RESOURCE_TYPE_DESC":"请输入 {resource} 以确认您了解此操作的风险。","VOLUME_EXPAND_TIP":"The persistent volume claim has been mounted to a workload. Expanding the persistent volume claim will cause the workload to restart and business will be interrupted for a short while.","MOUNTED_PODS":"已掛載容器組","SNAPSHOT_PL":"快照","STORAGE":"儲存","PERSISTENT_VOLUME_CLAIM_DESC":"Persistent volume claims define storage requirements. The system creates persistent volumes according to persistent volume claims.","PERSISTENT_VOLUME_CLAIM":"Persistent Volume Claim","PERSISTENT_VOLUME_CLAIM_PL":"Persistent Volume Claims","WHAT_IS_STORAGE_CLASS_Q":"What is a storage class?","WHAT_IS_STORAGE_CLASS_A":"A storage class is a storage type configured by the cluster administrator. Different storage classes provide cluster users with different types of volumes.","WHAT_IS_LOCAL_VOLUME_Q":"What is a local volume?","WHAT_IS_LOCAL_VOLUME_A":"A local volume is a volume created in the local file system of the cluster.","VOLUME_STATUS_BOUND":"Bound","VOLUME_STATUS_LOST":"Lost","VOLUME_STATUS_PENDING":"等待中","VOLUME_STATUS_TERMINATING":"刪除中","VOLUME_STATUS_UPDATING":"Updating","VOLUME_CONDITION_FILESYSTEMRESIZEPENDING":"Disk Expanding","PERSISTENT_VOLUME_CLAIM_EMPTY_DESC":"Please create a persistent volume claim.","PERSISTENT_VOLUME_EMPTY_DESC":"Please create a persistent volume.","MOUNT_STATUS":"Mount Status","MOUNTED":"Mounted","NOT_MOUNTED":"不掛載","ACCESS_MODE_TCAP":"支持的訪問模式","RWO_DESC":"RWO: Single-node read and write","ROX_DESC":"ROX: Multi-node readonly","RWX_DESC":"RWX: Multi-node read and write","ACCESS_MODE_RWO":"RWO: Single-node read and write","ACCESS_MODE_ROX":"ROX: Multi-node readonly","ACCESS_MODE_RWX":"RWX: Multi-node read and write","CREATE":"創建","CREATE_PERSISTENT_VOLUME_CLAIM":"Create Persistent Volume Claim","CREATION_METHOD":"Creation Method","CREATE_VOLUME_BY_STORAGE_CLASS":"From Storage Class","CREATE_VOLUME_BY_SNAPSHOT":"From Volume Snapshot","SELECT_SNAPSHOT_TO_CREATE_VOLUME":"Select a snapshot to create a volume.","SELECT_STORAGE_CLASS_CREATE_VOLUME":"Select a storage class to create a volume.","VOLUME_CAPACITY":"儲存卷容量","PARAM_REQUIRED":"This parameter is required.","VOLUME_SIZE_TIP":"The volume capacity must be greater than 0.","VOLUME_STORAGE_CLASS_DESC":"Select a storage class to create a volume of a specific type.","PERSISTENT_VOLUME_CLAIM_LOW":"persistent volume claim","VOLUME_HANDLE":"Volume Handle","VOLUME_MODE":"Volume Mode","VOLUME_MODE_FILESYSTEM":"File system","VOLUME_MODE_BLOCK":"Block device","STORAGE_CLASS_VALUE":"Storage class: {value}","PERSISTENT_VOLUME":"Persistent Volume","PERSISTENT_VOLUME_PL":"Persistent Volumes","PERSISTENT_VOLUME_LOW":"persistent volume","PV_STATUS_AVAILABLE":"閒置","PV_STATUS_BOUND":"Bound","PV_STATUS_RELEASED":"已釋放","PV_STATUS_FAILED":"失敗","RECYCLING_STRATEGY":"Recycling Strategy","VOLUME_EMPTY_DESC":"Please bind a persistent volume claim to a workload.","TRUE":"是","FALSE":"否","SET_DEFAULT_STORAGE_CLASS_TITLE":"設為預設儲存類型","SET_AS_DEFAULT_STORAGE_CLASS":"設為預設儲存類型","STORAGE_CLASS_SET_DEFAULT_DESC":"設置為預設儲存類型後,如果沒有特殊指定,系統將預設創建該類型的儲存卷。一個 KubeSphere 集群中僅允許設置一個預設儲存類型","SET_AUTHORIZATION_RULES":"Set Authorization Rules","AUTHORIZATION_RULES":"Authorization Rules","AUTHORIZATION_RULES_DESC":"Set authorization rules so that the storage class can be accessed only in specific projects and workspaces.","AUTHORIZATION_NOT_SUPPORT":"The cluster currently does not support this feature. Please upgrade KubeSphere to v3.3.0 or later, or manually install storageclass-accessor.","OPERATOR_IN":"入","OPERATOR_NOT_IN":"Not in","SET_VOLUME_OPERATIONS":"Set Volume Operations","VOLUME_CLONING":"Volume Cloning","VOLUME_CLONING_DESC":"Allow users to clone volumes.","VOLUME_SNAPSHOT_CREATION":"Volume Snapshot Creation","VOLUME_SNAPSHOT_CREATION_DESC":"Allow users to create volume snapshots.","VOLUME_EXPANSION_DESC":"Allow users to expand volumes. Volumes can only be expanded and cannot be shrunk.","SET_VOLUME_OPERATIONS_TIP":"The following settings only control whether users are allowed to perform the operations on the web console. Whether persistent volumes created based on the storage class actually support the operations depends on the backend storage system.","SET_AUTO_EXPANSION":"Set Auto Expansion","AUTO_EXPANSION":"Auto Expansion","AUTO_EXPANSION_DESC":"Set the system to automatically expand volumes when the remaining volume space is lower than a threshold.","AUTO_EXPANSION_SETTINGS":"Auto Expansion Settings","MAXIMUM_SIZE":"容量上限","INCREMENT":"Increment","INCREMENT_DESC":"Set the volume size increment according to the CSI pluggin of the storage class.","RESTART_WORKLOAD_AUTOMATICALLY":"Restart workload automatically","RESTART_WORKLOAD_AUTOMATICALLY_DESC":"The system automatically checks volume status to determine whether the workload needs to be restarted.","RESTART_WORKLOAD_AUTOMATICALLY_TIP":"If the volume is not expanded successfully when the timeout period expires, the system will add the \"restart.kubesphere.io/skip\" annotation to the workload so that the workload is not restarted any more. To enable the automatic restart function for the workload again, you need to manually delete the annotation on the workload.","MAXIMUM_SIZE_SCAP":"Maximum size","VALUE_TIMEOUT":"{value}s (timeout)","PVC_COUNT":"PVCs","STORAGE_CLASS_PL":"存儲類型","STORAGE_CLASS_DESC":"存儲類型(StorageClass)支持動態卷供應,使管理員能夠按需創建新的存儲卷。","STORAGE_CLASS_EMPTY_DESC":"請創建一個存儲類型","DEFAULT_STORAGE_CLASS":"預設存儲類型","ALLOW_VOLUME_SNAPSHOT":"允許存儲卷快照","ALLOW_VOLUME_CLONE":"允許存儲卷克隆","ALLOW_VOLUME_EXPANSION":"允許存儲卷擴容","CHOOSE_STORAGE_SYSTEM_TIP":"選擇您需要儲存系統","PROVISIONER_DEPENDENCE_DESC":"您需要先在儲存系統中部署相關插件才能提供服務。","QINGCLOUD_CSI_DESC":"使用 QingCloud CSI 作為底層儲存插件。","CUSTOM":"自定義","VOLUME_EXPANSION":"儲存卷擴容","RECLAIM_POLICY":"回收機制","ACCESS_MODE":"支持的訪問模式","ACCESS_MODES_DESC":"選擇儲存類型支持的一種或多種訪問模式。","STORAGE_SYSTEM":"儲存系統","VOLUME_BINDING_MODE":"儲存卷綁定模式","IMMEDIATE_BINDING":"立即綁定","BINDING_WAIT":"延遲綁定","MAXSIZE":"容量上限","MINSIZE":"容量下限","STEPSIZE":"步長","FSTYPE":"文件系統類型","QINGCLOUD_CSI_TYPE_DESC":"在青雲雲平台中,0 代表性能型硬碟,2 代表容量型硬碟,3 代表超高性能型硬碟,5 代表企業級分布式 SAN(NeonSAN)型硬碟,100 代表基礎型硬碟,200 代表企業型硬碟","CREATE_VOLUME_MAX_SIZE":"儲存卷的容量上限。","CREATE_VOLUME_STEP_SIZE":"儲存卷的增量值。","CREATE_VOLUME_MIN_SIZE":"儲存卷的容量下限。","VOLUME_FS_TYPE":"支持 ext3、ext4 和 xfs。預設類型為 ext4。","QINGCLOUD_VOLUME_TAGS_DESC":"為儲存卷添加標籤。使用半角逗號(,)分隔多個標籤。","GID_RANGE_TIP":"The value cannot be less than 2000 or greater than 2147483647.","GLUSTERFS_RESTURL_DESC":"供應儲存卷的 Heketi REST URL。","GLUSTERFS_ID_DESC":"Gluster 集群 ID。","GLUSTERFS_RESTAUTHENABLED_DESC":" Gluster 啟用对 REST 伺服器的認證","GLUSTERFS_RESTUSER_DESC":"Gluster REST 服務或 Heketi 服務的用戶名。","GLUSTERFS_SECRET_NAMESPACE_DESC":"Heketi 用戶密鑰的所属項目。","GLUSTERFS_SECRET_NAME_DESC":"Heketi 用戶密鑰的名稱。","GLUSTERFS_GID_MIN_DESC":"儲存卷的 GID 最小值。","GLUSTERFS_GID_MAX_DESC":"儲存卷的 GID 最大值。","GLUSTERFS_VOLUME_TYPE_DESC":"儲存卷的類型。該值可為 none,replicate:<副本數>,或 disperse:<數據>:<冗餘數>。如果未設置該值,則預設儲存卷類型為 replicate:3。","RESTURL":"REST URL","CLUSTER_ID":"集群 ID","REST_AUTH_ENABLED":"開啟 REST 認證","REST_USER":"REST 用戶","VOLUME_TYPE":"儲存卷類型","SECRET_NAME":"密鑰名稱","REST_AUTH_TRUE":"是","SECRET_NAMESPACE":"密鑰所屬項目","GID_MIN":"GID 最小值","GID_MAX":"GID 最大值","CEPHRBD_MONITORS_DESC":"Ceph 集群 Monitors 的 IP 地址。","CEPHRBD_ADMIN_ID_DESC":"ceph 集群能夠創建卷的用戶 ID","CEPHRBD_ADMIN_SECRET_NAME_DESC":"adminid 的密鑰名稱。","CEPHRBD_ADMIN_SECRET_NAMESPACE_DESC":"adminSecrect 所在的項目","CEPHRBD_POOL_DESC":"Ceph RBD 的 Pool 名稱。","CEPHRBD_USERID_DESC":"Ceph 集群能夠掛載卷的用戶 ID","CEPHRBD_USER_SECRET_NAME_DESC":"userid 的密鑰名稱","CEPHRBD_USER_SECRET_NAMESPACE_DESC":"userSecret 所在的項目","CEPHRBD_FS_TYPE_DESC":"儲存卷的文件系統類型。","CEPHRBD_IMAGE_FORMAT_DESC":"Ceph 卷的選項。該值可為“1”或“2”,選擇“2”後需要填寫 imageFeatures。","CEPHRBD_IMAGE_FEATURES_DESC":"Ceph 集群的額外功能。僅目前設置 imageFormat 為“2”時,才需要填謝該值。","CEPH_MONITOR_IP":"IP 位址:連接埠號碼","STORAGE_CLASS_SETTINGS":"儲存類型設置","PARAMETERS":"參數","STORAGE_CLASS":"儲存類型","STORAGE_CLASS_LOW":"儲存類型","STORAGE_CLASS_DELETE_DESC":"Deleting the volume snapshot class may affect the normal use of volume snapshots. Are you sure you want to delete the volume snapshot class?","STORAGE_CLASS_DELETE_DESC_PL":"Deleting the volume snapshot class may affect the normal use of volume snapshots. Enter the {type} names {resource} to confirm that you understand the risks of this operation.","VOLUME_SNAPSHOT_CLASS_PL":"Volume Snapshot Classes","VOLUME_SNAPSHOT_CLASS":"Volume Snapshot Class","VOLUME_SNAPSHOT_CLASS_DESC":"Volume snapshot classes provide a way for administrators to define storage types used for volume snapshots.","VOLUME_SNAPSHOT_CLASS_EMPTY_DESC":"Please create a volume snapshot class.","SNAPSHOT_CLASS_SETTINGS":"Volume Snapshot Class Settings","SNAPSHOT_CLASS_PROVISIONER_DESC":"Enter the name of a CSI plugin.","SNAPSHOT_CLASS_PROVISIONER_EMPTY_DESC":"Please enter the name of a CSI plugin.","VOLUME_SNAPSHOT_CLASS_LOW":"volume snapshot class","DELETE_VOLUME_SNAPSHOT_CLASS":"Delete Volume Snapshot Class","SNAPSHOT_HANDLE":"Snapshot Handle","VOLUME_SNAPSHOT_CONTENT":"Volume Snapshot Content","VOLUME_SNAPSHOT_CONTENT_PL":"Volume Snapshot Contents","VOLUME_SNAPSHOT_CONTENT_LOW":"volume snapshot content","VOLUME_SNAPSHOT_CONTENT_EMPTY_DESC":"Please create a volume snapshot.","READY":"Ready","UNREADY":"Unready","UNSCHEDULABLE":"Unschedulable","DELETION_POLICY":"Deletion Policy","CREATE_VOLUME":"Create Volume","SNAPSHOT_CLASS_NOT_EXIST_TITLE":"Volume Snapshot Class Not Found","SNAPSHOT_CLASS_NOT_EXIST":"The volume snapshot class of the volume snapshot does not exist.","STORAGE_CLASS_SCAP":"Storage class","DATA_SOURCE":"數據源","VOLUME_SNAPSHOT":"Volume Snapshot","VOLUME_SNAPSHOT_PL":"Volume Snapshots","VOLUME_SNAPSHOT_DESC":"儲存卷快照表示儲存卷的時間點副本。快照可用於配置新卷(預先填充快照數據)或將現有儲存卷還原到先前狀態(由快照表示)","WHAT_IS_VOLUME_SNAPSHOT_CLASS_Q":"What is a volume snapshot class?","WHAT_IS_VOLUME_SNAPSHOT_CLASS_A":"A volume snapshot class defines the storage types used to create a volume snapshot.","WHAT_IS_VOLUME_SNAPSHOT_CONTENT_Q":"What is a volume snapshot content?","WHAT_IS_VOLUME_SNAPSHOT_CONTENT_A":"A volume snapshot content is a resource that represents the content of a volume snapshot.","SELECT_A_VOLUME_DESC":"Select a persistent volume claim to create a snapshot.","SELECT_VOLUME_SNAPSHOT_CLASS_DESC":"Select a snapshot class to create a snapshot of a specific type.","VOLUME_SNAPSHOT_EMPTY_DESC":"Please create a volume snapshot.","VOLUME_SNAPSHOT_STATUS_CREATING":"創建中","VOLUME_SNAPSHOT_STATUS_FAILED":"創建失敗","VOLUME_SNAPSHOT_STATUS_READY":"創建成功","VOLUME_SNAPSHOT_STATUS_DELETING":"刪除中","CREATE_STATUS_SUCCESS":"創建成功","CREATE_STATUS_UPDATING":"創建中","CREATE_STATUS_FAILED":"創建失敗","CREATE_STATUS_DELETING":"删除中","VOLUME_SNAPSHOT_LOW":"volume snapshot","STORAGECLASS_NOT_ALLOW_CREATE_SNAPSHOT":"The storage class of the persistent volume claim does not support snapshot creation. Please select another persistent volume claim.","SYSTEM_COMPONENT_PL":"服務組件","SERVICE_COMPONENTS_DESC":"服務組件提供 KubeSphere、Kubernetes 和 OpenPitrix 集群内各項服務組件的健康狀態監控,可以查看目前集群的健康狀態和運行時間,能夠幫助用戶監測集群的狀況和即時定位問題。","STOPPED":"Stopped","RUNNING_TIME":"運行時間","KS_CONSOLE_DESC":"提供 KubeSphere 的控制台服務","KS_APISERVER_DESC":"整個集群管理的 API 介面和集群内部各個模組之間通信的樞紐,以及集群安全控制","OPENLDAP_DESC":"負責集中儲存和管理用戶帳號資訊","REDIS_DESC":"將結構化的數據儲存在記憶體中的儲存系統","TOWER_DESC":"一個可以在集群間通過代理方式創建網路連接的工具","KS_CONTROLLER_MANAGER_DESC":"實現業務邏輯,例如創建企業空間時,為其創建對應的權限;創建服務策略時,生成對應的 Istio 配置等","COREDNS_DESC":"為 Kubernetes 集群提供服務發現的功能","METRICS_SERVER_DESC":"Kubernetes 的監控組件,從每個節點的 Kubelet 採集指標資訊","KUBE_SCHEDULER_DESC":"Kubernetes 的調度器,將 Pod 調度到合適的 Node 節點上去","KUBE_SCHEDULER_SVC_DESC":"Kubernetes 的調度器,將 Pod 調度到合適的 Node 節點上去","KUBE_CONTROLLER_MANAGER_SVC_DESC":"由一系列的控制器組成,處理集群中常規任務的背景執行緒","JAEGER_COLLECTOR_DESC":"收集 sidecar 的數據,istio 裡面 sidecar 就是 jaeger-agent","JAEGER_COLLECTOR_HEADLESS_DESC":"收集 sidecar 的數據,Istio 裡面 sidecar 就是 jaeger-agent","JAEGER_QUERY_DESC":"接收查詢請求,然後從後端儲存系統中檢索 trace 並透過 UI 進行展示","JAEGER_OPERATOR_METRICS_DESC":"提供 operator 的監控 metrics","MONITORING":"監控","PROMETHEUS_K8S_DESC":"提供節點、工作負載、 API 對象相關監控數據","NODE_EXPORTER_DESC":"收集集群各個節點的監控數據,供 Prometheus 抓取","KUBE_STATE_METRICS_DESC":"監聽 Kubernetes API server 以獲取集群中各種 API 對象的狀態包括節點,工作負載和 Pod 等,並生成相關監控數據供 Prometheus 抓取","PROMETHEUS_OPERATED_DESC":"所有 Prometheus 實例對應的服務,供 Prometheus Operator 内部使用","PROMETHEUS_OPERATOR_DESC":"管理 Prometheus 實例的 Operator","ALERTMANAGER_OPERATED_DESC":"Alertmanager 服務,用於 Prometheus 等與 Alertmanager 集成","ALERTMANAGER_MAIN_DESC":"Alertmanager Web UI 服務","NOTIFICATION_MANAGER_SVC_DESC":"Notification Manager 服務,提供發送郵件、微信、Slack 等通知的接口","NOTIFICATION_MANAGER_CONTROLLER_METRICS_DESC":"提供 Notification Manager Controller 内部監控數據的服務","LOGGING":"紀錄","ELASTICSEARCH_LOGGING_DATA_DESC":"提供 Elasticsearch 數據儲存、備份、搜索等數據服務","ELASTICSEARCH_LOGGING_DISCOVERY_DESC":"提供 Elasticsearch 集群管理服務","LOGSIDECAR_INJECTOR_ADMISSION_DESC":"為指定 Pod 自動注入落盤紀錄收集 Sidecar 容器","KS_EVENTS_ADMISSION_DESC":"為 Events 規則管理提供驗證 webhook","KS_EVENTS_RULER_DESC":"Events 規則引擎服務,提供 Events 過濾和告警功能","KUBE_AUDITING_WEBHOOK_SVC_DESC":"負責審計紀錄的收集、比對、持久化和告警","S2IOPERATOR_METRICS_SERVICE_DESC":"S2I 監控服務組件,提供基礎監控數據","WEBHOOK_SERVER_SERVICE_DESC":"為 S2I 提供預設值和驗證 webhook","CODE_REPO_PL":"Code Repositories","CODE_REPO_LOW":"code cepository","CODE_REPO":"代碼倉庫","CODE_REPO_DESC":"Manage code repositories based on Git.","CODE_REPO_EMPTY_DESC":"Import a code repository from GitHub, GitLab, or Bitbucket. You can also use Git to directly pull source code.","IMPORT_CODE_REPO":"Import Code Repository","EDIT_CODE_REPO":"Edit Code Repository","LATEST_SYNC_STATUS":"Latest sync status","CURRENT_SYNC_STATUS":"Current sync status","SYNC_STRATEGY":"Sync strategy","AUTO_SYNC":"Auto Sync","MANUAL_SYNC":"Manual Sync","END_TIME_SCAP":"End time","SYNC_RESULT_PL":"Sync Results","SYNC_RESULT":"Sync Result","SYNC_RESULT_EMPTY_DESC":"No sync result is found.","CONTINUOUS_DEPLOYMENT_PL":"Continuous Deployments","CONTINUOUS_DEPLOYMENT_DESC":"Manage continuous deployments to continuously deploy resources by using GitOps. ","CONTINUOUS_DEPLOYMENT_EMPTY_DESC":"Please create a continuous deployment.","DEGRADED":"Degraded","PROGRESSING":"創建進度(Progressing)","SYNCED":"Synced","MISSING":"Missing","SUSPENDED":"已下架","OUTOFSYNC":"Out of sync","DEPLOY_LOCATION":"Deployment Location","NEED_TO_SYNC_REPO":"Need to sync repo","CREATE_CONTINUOUS_DEPLOYMENT":"Create Continuous Deployment","CD_SELECT_CODE_REPO_DESC":"Select a code repository.","DEPLOYMENT_SETTINGS":"Deployment Settings","CODE_REPOSITORY_SETTINGS":"Code Repository Settings","SYNC_STRATEGY_TCAP":"Sync Strategy","AUTO_SYNC_DESC":"Automatically trigger application sync when there is a difference between the manifest in Git and the real-time state of the deployed resources, according to the set sync options.","PRUNE_RESOURCES":"Prune resources","SELF_HEAL":"Self-heal","MANIFEST_FILE_PATH":"Manifest File Path","DIRECTORY_RECURSE":"Directory recurse","REPO_EMPTY_DESC":"Please select a code repository.","VALUES_FILES":"Values Files","VALUES_FROM":"Values From","STORAGE_NAMESPACE":"Storage Namespace","TEST":"Test","REVISIONS_DESC":"Git repository commit ID, branch, or tag. For example: \"master\", \"v1.2.0\", \"0a1b2c3\", or \"HEAD\".","MANIFEST_FILE_PATH_DESC":"Manifest file path, for example: \"deployments/nginx\" or \"deployments/\"","MANUAL_SYNC_DESC":"Sync according to custom rules.","PRUNE_RESOURCES_DESC":"If selected, resources that do not exist in Git will be deleted during automatic sync. If not selected, resources in the cluster will not be deleted when automatic sync is triggered.","SELF_HEAL_DESC":"If selected, when there is a deviation between the defined state in Git and the deployed resources, the defined state in Git will be enforced. If not selected, automatic sync will not be triggered when changes are made to the deployed resources.","FOREGROUND_DESC":"Delete dependent resources first, then delete the main resource.","BACKGROUND_DESC":"Delete the main resource first, then delete the dependent resource.","ORPHAN_DESC":"Delete the main resource and leave the dependent resource as an orphan.","SKIP_SCHEMA_VALIDATION_DESC":"Skip kubectl validation. Add the --validate=false flag when kubectl applies the object.","AUTO_CREATE_PROJECT_DESC":"Automatically create a project for application resources when the project does not exist.","PRUNE_LAST_DESC":"Clean up resources after other resources are deployed and healthy.","APPLY_OUT_OF_SYNC_ONLY_DESC":"Only apply resources that are out of sync.","CONTINUOUS_DEPLOYMENT":"Continuous Deployment","CONTINUOUS_DEPLOYMENT_LOW":"continuous deployment","DELETE_CONTINUOUS_DEPLOYMENT_DESC_SI":"You are about to delete the continuous deployment {resource}.
    Please confirm whether to delete resources created by the continuous deployment.","DELETE_CONTINUOUS_DEPLOYMENT_DESC_PL":"You are about to delete the continuous deployments {resource}.
    Please confirm whether to delete resources created by the continuous deployments.","NO_CONTINUOUS_DEPLOYMENT_RELATED_RESOURCE_DESC":"No resource created by the continuous deployment is found.","DELETE_MULTIPLE_CONTINUOUS_DEPLOYMENT":"Delete Multiple Continuous Deployments","DELETE_CONTINUOUS_DEPLOYMENT":"Delete Continuous Deployment","DELETE_CONTINUOUS_DEPLOYMENT_RELATE_DESC":"Delete resources created by {resourceName}","SYNC":"Sync","SYNC_RESOURCE":"Sync Resource","REVISION":"Revision","REVISION_DESC":"Set a branch or tag of the code repository.","PRUNE":"Prune","DRY_RUN":"Dry run","APPLY_ONLY":"Apply only","FORCE":"Force","SYNC_SETTINGS":"Sync Settings","SKIP_SCHEMA_VALIDATION":"Skip schema validation","AUTO_CREATE_PROJECT":"Auto create project","PRUNE_LAST":"Prune last","APPLY_OUT_OF_SYNC_ONLY":"Apply out of sync only","PRUNE_PROPAGATION_POLICY":"Prune Propagation Policy","REPLACE_RESOURCE":"Replace Resource","REPLACE_RESOURCE_DESC":"Replace resources that already exist.","EMPTY_CD_TITLE":"No Continuous Deployment Found","SYNC_TRIGGERED":"Resource sync was triggered successfully.","PARAMETER_SETTINGS":"Parameter Settings","AUTO_PARAMETER":"Auto","AUTO_PARAMETER_DESC":"Set automatically.","HELM_PARAMETER":"Helm","HELM_PARAMETER_DESC":"Set Helm parameter.","KUSTOMIZE_PARAMETER":"Kustomize","KUSTOMIZE_PARAMETER_DESC":"Set Kustomize parameters.","PASS_CREDENTIALS":"Pass Credentials","IGNORE_MISSING_VALUE_FILES":"Ignore Missing Value Files","SKIP_CRDS":"Skip Crds","RELEASE_NAME":"Release Name","VALUE_FILES":"Value Files","FORCE_STRING":"Force String","FILE_PARAMETERS":"File Parameters","NAME_PREFIX":"Name Prefix","NAME_SUFFIX":"Name Suffix","IMAGES":"Images","COMMON_LABELS":"Common Labels","COMMON_ANNOTATIONS":"Common Annotations","DEVOPS_PROJECT_SETTINGS":"项目管理","DEVOPS_DESCRIPTION":"DevOps 是一個獨立的命名空間,其中定義了一組流水線。用戶可以按照自己的方式對流水線進行分組(例如:項目類型、組織類型)。","DEVOPS_PROJECT_ROLE_SCAP":"DevOps 项目角色","DEVOPS_PROJECT_SCAP":"DevOps 项目","DEVOPS_PROJECT_MEMBER_SCAP":"DevOps project member","DEVOPS_PROJECT_MEMBER_PL_SCAP":"DevOps project members","DEVOPS_PROJECT_ROLE_PL_SCAP":"DevOps 项目角色","CD_ALLOWLIST":"Continuous Deployment Allowlist","CD_ALLOWLIST_SCAP":"Continuous deployment allowlist","DEPLOYMENT_LOCATION_PL":"Deployment Locations","ENABLE_ALLOWLIST":"Enable Allowlist","EDIT_ALLOWLIST":"Edit Allowlist","EMPTY_ALLOWLIST_TITLE":"Continuous Deployment Allowlist Disabled","ALLOWLIST_EMPTY_DESC":"Enable the allowlist so that only specific code repositories and deployment locations can be used for continuous deployment.","MULTI_CLUSTER_PROJECT_NOT_FOR_CD":"Multi-cluster projects cannot be used for continuous deployment.","CODE_REPOSITORY_EXIST_DESC":"The code repository already exists. Please select another code repository.","DEPLOYMENT_LOCATION_EXIST_DESC":"The deployment location already exists. Please set another deployment location.","CODE_REPOSITORY_NOT_SELECTED":"No code repositories are selected.","RESOURCE_DEPLOYMENT_LOCATION_NOT_SELECTED":"No resource deployment locations are selected.","ALL_CODE_REPOSITORIES":"All code repositories","ALL_RESOURCE_DEPLOYMENT_LOCATIONS":"All resource deployment locations","CREDENTIAL_LOW":"credential","DETAILS":"詳情","TYPE_VALUE":"Type: {value}","RECORD":"Record","CREDENTIAL_PL":"憑證","DEVOPS_CREDENTIALS_DESC":"憑證是包含了一些敏感數據的對象,如用戶名密碼,SSH 密鑰和 Token 等,用於在 Pipeline 運行時,為拉取代碼、push/pull 鏡像、SSH 執行腳本等過程提供認證","CREDENTIAL_EMPTY_DESC":"請創建一個 DevOps 项目憑證。","CREATE_CREDENTIAL":"創建憑證","CREDENTIAL_NAME_EXIST_DESC":"憑證 ID 已存在。","CREDENTIAL_TYPE_USERNAME_PASSWORD":"用戶名稱與密碼","CREDENTIAL_TYPE_SSH":"SSH key","PRIVATE_KEY":"私鑰","PASSPHRASE":"密碼短語","CREDENTIAL_TYPE_SECRET_TEXT":"Access token","CREDENTIAL_TYPE_KUBECONFIG":"kubeconfig","PASSWORD_TOKEN":"令牌/密碼","KUBECONFIG_CONTENT_DESC":"預設內容為目前用户的 kubeconfig。","CONTENT":"內容","DEVOPS_PROJECT_MEMBER":"DevOps Project Member","DEVOPS_PROJECT_MEMBER_PL":"DevOps 项目成員","DEVOPS_PROJECT_MEM_DESC":"對项目内的成員進行管理及角色分配。","DEVOPS_PROJECT_MEMBER_EMPTY_DESC":"Please invite a member of the current workspace to the DevOps project.","INVITE_MEMBER_DESC_DEVOPS":"您可以邀請當前企業空間成員至該 DevOps 项目。","HOW_TO_INVITE_MEMBER_Q":"How do I invite members to the project?","HOW_TO_INVITE_MEMBER_A":"項目管理員或者擁有成員邀請權限的用戶可以邀請目前企業空間内的成員加入項目。","NO_PERMISSION":"No Permission Found","DEVOPS_PROJECT_ROLE_PL":"DevOps 项目角色","DEVOPS_PROJECT_ROLES_DESC":"成員角色定義了在目前 DevOps 项目下用戶所擁有的權限。","DEVOPS_PROJECT_ROLE_EMPTY_DESC":"Please create a DevOps project role.","ROLE_DEVOPS_VIEWER":"DevOps 项目觀察者,可以查看 DevOps 项目下所有的資源。","ROLE_DEVOPS_OPERATOR":"DevOps 项目普通成員,可以在 DevOps 项目下創建流水線憑證等。","ROLE_DEVOPS_ADMIN":"Manage all resources in the DevOps project.","EDIT_PERMISSIONS":"編輯權限","CREATE_ROLE":"創建角色","CATEGORIES":"Categories","DEPENDS_ON":"依賴於","PERMIGROUP_PIPELINES_MANAGEMENT":"流水線","PERMISSION_PIPELINES_VIEW":"Pipeline Viewing","PERMISSION_PIPELINES_VIEW_DESC":"View DevOps project pipelines and download artifacts.","PERMISSION_PIPELINES_MANAGEMENT":"Pipeline Management","PERMISSION_PIPELINES_MANAGEMENT_DESC":"Create, edit, and delete DevOps project pipelines.","PERMISSION_PIPELINERUNS_VIEW":"Pipeline Run Record Viewing","PERMISSION_PIPELINERUNS_VIEW_DESC":"View pipeline run records in the DevOps project.","PERMISSION_PIPELINERUNS_MANAGEMENT":"Pipeline Run Record Management","PERMISSION_PIPELINERUNS_MANAGEMENT_DESC":"View, edit, and delete pipeline run records in the DevOps project.","PERMIGROUP_CREDENTIALS_MANAGEMENT":"憑證","PERMISSION_CREDENTIALS_VIEW":"Credential Viewing","PERMISSION_CREDENTIALS_VIEW_DESC":"View and use DevOps credentials.","PERMISSION_CREDENTIALS_MANAGEMENT":"Credential Management","PERMISSION_CREDENTIALS_MANAGEMENT_DESC":"Create, edit, and delete DevOps credentials.","PERMIGROUP_DEVOPS_SETTINGS":"項目設置","PERMISSION_DEVOPS_SETTINGS":"Project Settings Management","PERMISSION_DEVOPS_SETTINGS_DESC":"Manage DevOps project settings.","PERMIGROUP_CONTINUOUS_DEPLOYMENTS_MANAGEMENT":"Continuous Deployments","PERMISSION_CONTINUOUS_DEPLOYMENTS_VIEW":"Continuous Deployment Viewing","PERMISSION_CONTINUOUS_DEPLOYMENTS_VIEW_DESC":"View continuous deployments in the DevOps project.","PERMISSION_CONTINUOUS_DEPLOYMENTS_MANAGEMENT":"Continuous Deployment Management","PERMISSION_CONTINUOUS_DEPLOYMENTS_MANAGEMENT_DESC":"Manage continuous deployments in the DevOps project.","PERMIGROUP_CODE_REPOSITORIES_MANAGEMENT":"Code Repositories","PERMISSION_CODE_REPOSITORIES_VIEW":"Code Repository Viewing","PERMISSION_CODE_REPOSITORIES_VIEW_DESC":"View code repositories in the DevOps project.","PERMISSION_CODE_REPOSITORIES_MANAGEMENT":"Code Repository Management","PERMISSION_CODE_REPOSITORIES_MANAGEMENT_DESC":"Manage code repositories in the DevOps project.","CODE_REPOSITORY":"代碼倉庫","TASK_STATUS":"運行狀態","NOT_RUNNING":"未運行","QUEUED":"列隊中","ABORTED":"Aborted","UNSTABLE":"Unstable","SKIPPED":"已跳過","NOT_BUILT":"Not built","SYNC_STATUS":"同步狀態","DEVOPS_PROJECT":"DevOps 项目","SCAN_REPO_SUCCESSFUL":"掃描倉庫觸發成功","VIEW_SCAN_LOGS":"View Scan Logs","STARTED_BY_NAME":"由{name}觸發掃描","REPOSITORY_SCAN_LOGS":"掃描倉庫紀錄","RESCAN":"重新掃描","LOGS_OBTAINED_SUCCESSFULLY":"掃描紀錄成功。","HEALTH_STATUS_SCAP":"Health status","PIPELINE_QUEUED_TITLE":"Pipeline 即將進行初始化","INITIALIZING_PIPELINE":"Pipeline 初始化中","PIPELINE_PREPARE_DESC":"正在準備環境,稍後有圖形化顯示","INITIALIZING_PIPELINE_DESC":"Please wait until the pipeline initialization is complete.","TASK_FAILED_NOT_OPERATIONAL":"任務已失敗,不可操作","NO_PIPELINE_CONFIG_FILE_TIP":"未找到流水線配置文件","EDIT_PIPELINE":"編輯流水線","JENKINS_UNAVAILABLE":"Jenkins is unready.","AGENT_TYPE_DESC":"Agent 部分指定整個 Pipeline 或特定階段將在 Jenkins 還境中執行的位置,\n 具體取決於該 agent 部分的放置位置。該部分必須在流水線塊内的頂層定義,但 stage 級使用是可選的。","NOT_VALID_REPO":"Code repo is not valid and cannot be created","CREATE_PIPELINE_DESC":"使用流水線進行構建,測試和部署","CI":"持續集成 (CI)","CI_DESC":"持續集成(CI)是在源代碼變更後自動檢測、拉取、構建和(在大多數情況下)進行單元測試的過程。 ","CICD":"持續集成&交付 (CI/CD)","CICD_DESC":"持續部署(CD)是指能夠自動提供持續交付管道中發布版本給最終用戶使用的想法。根據用戶的安裝方式,在雲環境中自動部署、app 升級(如手機上的應用程序)、更新網站或只更新可用版本列表。 ","CUSTOM_PIPELIEN":"自定義流水線","CUSTOM_PIPELIEN_DESC":"您可以選擇您需要的任務自定義流水線的工作內容","CC":"副本","CREDENTIAL_NAME":"憑證 ID","REMOTE_REPOSITORY_URL":"遠程倉庫地址","SCM":"代碼倉庫","INPUT_MESSAGE_DESC":"流水線運行狀態中將會顯示此訊息","KUBERNETES_DEPLOY_DESC":"在 kubernetes 集群中進行部署,在持續集成/持續部署的環境當中,\n 只有那些需要定期更新的資源才應該放到部署步驟當中,所以此步驟大多數時間都在處理部署這類資源.","KUBERNETES_DEPLOY_DESC_MORE":"
    \n \n
  • 無需 kubectl 的情況下實現部署
  • \n
  • Jenkinsfile 中的變量替換,可以進行動態部署。
  • \n
  • 支持從私有鏡像倉庫拉取 Docker 鏡像
  • \n \n
    \n
  • 配置
  • \n
  • 密鑰
  • \n
  • 部署
  • \n
  • 守護進程集
  • \n
  • 應用路由
  • \n
  • 名稱空間
  • \n
  • 任務
  • \n
  • 服務
  • \n
  • Replica Set
  • \n
  • \n Replication\n Controller (不支持滾動更新,如果要使用滾動更新請使用部署)\n
  • ","STAGE":"階段","KUBERNETES_DEPLOY_DEPRECATED_TIP":"該步驟會在後續版本中棄用,建議考慮其他替代方案。","ORIGINAL_IMAGE_ADDRESS":"Original Image Address","NEW_IMAGE_ADDRESS":"New Image Address","NEW_IMAGE_TAG":"New Image Tag","CD_STEP_DESC":"Update image information using continuous deployment.","UPDATE_CD_TITLE":"Continuous Deployment of Updates","EDIT_JENKINSFILE":"編輯 Jenkinsfile","CLOSE_JENKINSFILE_EDITOR_TIP":"確定關閉 Jenkinsfile 編輯器?","PIPELINE_RUN_LOGS":"流水線運行紀錄","VIEW_LOGS":"查看紀錄","DURATION_VALUE":"Duration: {value}","DOWNLOAD_LOGS":"下载紀錄","START_REAL_TIME_LOG":"開始實時紀錄","STOP_REAL_TIME_LOG":"關閉實時紀錄","RUN_RECORDS":"Run Records","RUN":"運行","ACTIVITY_EMPTY_TIP":"目前 Pipeline 還沒有運行","COMMIT":"提交","LAST_MESSAGE":"最後訊息","RUN_ID":"Run ID","STOP_PIPELINE_SUCCESSFUL":"任務已停止,狀態稍後更新","INVALID_JENKINSFILE_TIP":"目前 Jenkinsfile 不是標準的聲明式 Jenkinsfile,無法進行圖形化顯示","PAUSED":"已暫停","SET_PARAMETERS":"輸入參數","PARAMS_DESC":"The following parameters are generated based on the pipeline settings or\n the parameters section of the Jenkinsfile, which are entered according to operational requirements.","PIPELINE_RUN_START_SI":"Starts to run the pipeline...","PIPELINE_RUN_START_PL":"Starts to run the pipelines...","BREAK":"終止","PROCEED":"繼續","WAITING_FOR_INPUT":"等待輸入","CANCELLED_IN_REVIEW":"已在審核中取消","STEPS_COMPLETE_TOTAL":"Steps: {complete}/{total}","COMMIT_PL":"提交","AUTHOR":"作者","NO_COMMIT_FOUND":"沒有提交紀錄","ARTIFACT_PL":"成品","NO_ARTIFACT_FOUND_TIP":"沒有成品紀錄","SIZE":"大小","BRANCH_SI":"分支","BRANCH_PL":"Branches","SCAN_REPOSITORY":"掃描遠程分支","PIPELINE":"流水線","NO_BRANCHES_FOUND":"No Branches Found","CODE_CHECK":"代碼質量","BUG_PL":"Bugs","VULNERABILITY_PL":"代碼漏洞","CODE_SMELL_PL":"容易出錯","CODE_LINE_COUNT":"行數","COVERAGE":"覆蓋率","TEST_RESULTS":"檢測結果","ISSUE_PL":"問題","CRITICAL":"危險告警","MAJOR":"Major","MINOR":"Minor","DISPLAY_ALL":"顯示全部","DISPLAY_ONLY_LAST_TEN":"僅顯示最近 10 條","LINE_VALUE":"行:{value}","PASSED":"已通過","PULL_REQUEST_PL":"拉取請求","FAILED_CHECK_SCRIPT_COMPILE":"Failed to check script compiling. If you want to skip the step, click Continue.","IMPORT_FROM_CODE_REPO":"Import From Code Repository","General":"General","Container":"Container","Review":"Review","URL":"URL","Credential Name":"憑證 ID","Branch":"分支","SVN URL":"SVN URL","The message to print":"Message to Print","Shell command line":"Shell command line","Body":"Body","Variable":"Variable","KeyFile Variable":"KeyFile Variable","Passphrase Variable":"Passphrase Variable","Artifacts Location":"Artifacts Location","Time":"時間","Unit":"Unit","Groovy script":"Groovy script","Target Pipeline Name":"Target Pipeline Name","Quiet Period":"Quiet Period","Wait For Completion":"Wait for completion","Propagate Errors":"Propagate errors","Error Message":"Error Message","Test Results Location":"Location of Test Results","Allow Empty Results":"Allow empty results","Keep Long Output":"Retain long output","Skip Publishing Checks":"Skip publishing checks","Retry Count":"Retry Times","Message":"訊息","Submitter":"Submitter","Config Name":"Configuration Item","AbortPipeline if quality gate status is not green":"Abort the pipeline if quality gate status is not green","Container Name":"容器名稱","Continuous Deployments":"Continuous Deployment","Original Image Address":"Original Image Address","New Image Address":"New Image Address","New Image Tag":"New Image Tag","Credential":"憑證","PIPELINE_CONFIGURATION":"Pipeline Configurations","Replay":"Replay","BRANCH_DISABLED_NOT_REPLAY":"The branch has been disabled and cannot be replayed.","RUN_LOGS":"Run Logs","VIEW_FULL_LOG":"View Full Logs","VIEW_REAL_TIME_LOG":"View Real-time Logs","PIPELINE_LOG":"Pipeline Logs","NO_BUILD_PARAMETERS":"未發現構建參數。","PIPELINE_PL":"流水線","HEALTH":"健康狀態","PULL_REQUEST_COUNT":"拉取請求","MULTI_BRANCH_PIPELINE":"Multi-branch Pipeline","HEALTHY":"健康","SUB_HEALTHY":"亞健康","NO_STATUS":"沒有狀態","BRANCH_COUNT":"分支數量","PIPELINE_EMPTY_DESC":"Please create a pipeline.","BATCH_RUN_SUCCESS_SI":"The pipeline was run successfully.","BATCH_RUN_SUCCESS_PL":"The pipelines were run successfully.","BATCH_RUN_UNSUPPORTED_DESC":"多分支流水線不支持批量運行。","COPY":"Copy","COPY_PIPELINE":"複製流水線","PIPELINE_NAME_DESC":"流水線的名稱,同一個項目内 Pipeline 不能重名。","PIPELINE_NAME_TIP":"請輸入流水線名稱。","CREATE_PIPELINE":"創建流水線","GO_CREATE_REPO_ACTION":"No code repository is available. Please create a code repository.","PIPELINE_TYPE":"Pipeline Type","SELECT_CODE_REPOSITORY":"選擇代碼倉庫","BRANCH_PIPELINE_DESC":"Describe the software build process with visual orchestration or Jenkinsfile.","MULTI_BRANCH_PIPELINE_DESC":"Create a series of pipelines for each branch detected in the source code management (SCM) repository.","PIPELINE_CREATE_DEVOPS_PROJECT_DESC":"Select the DevOps project to which the pipeline belongs.","CODE_REPOSITORY_OPTIONAL":"代碼倉庫(可選)","CODE_REPOSITORY_REQUIRED":"代碼倉庫","CODE_REPOSITORY_REQUIRED_DESC":"Please select a code repository.","GO_CREATE_REPO":"No code repository is available. Please create a code repository.","CODE_REPO_EXISTS":"code repository already exists","SELECT_CODE_REPO_DESC":"請選擇一個代碼倉庫作為流水線的代碼來源。","RESELECT":"重新選擇","CREDENTIAL_SI":"憑證","CREDENTIAL":"憑證","PIPELINE_CREDENTIAL_EMPTY_TIP":"Please select a credential.","SELECT_CREDENTIAL_DESC":"獲取倉庫代碼可能需要憑證, 選擇已有憑證或添加一個新的憑證。","GITHUB_CREDENTIAL_EMPTY":"請輸入 GitHub 訪問令牌。","INCORRECT_GITHUB_TOKEN_DESC":"GitHub 令牌錯誤\n \n 重新獲取 Token\n ","LOAD_MORE":"載入更多","NO_REPO_FOUND_DESC":"No code repository is found.","GITLAB_SERVER_ADDRESS":"Gitlab 服務","GITLAB_SERVER_EMPTY_TIP":"Please enter the address of a GitLab server.","PROJECT_GROUP_OWNER":"GitLab 項目所屬組","PROJECT_GROUP_OWNER_EMPTY_TIP":"Please enter the name of a GitLab project group or project owner.","REPOSITORY_NAME":"倉庫名稱","REPOSITORY_NAME_EMPTY_TIP":"Please enter the name of a repository name.","BITBUCKET_SERVER_ADDRESS":"Bitbucket Server Address","BITBUCKET_SERVER_EMPTY_TIP":"Please enter the address of a Bitbucket server.","INCORRECT_USERNAME_OR_PASSWORD":"用戶名或密碼錯誤","BITBUCKET_SERVER_CREDENTIAL_EMPTY":"請輸入 BitBucket 帳號資訊。","BITBUCKET_ADDRESS_EMPTY_TIP":"Please enter the address of a Bitbucket server.","BITBUCKET_ADDRESS_INVALID_TIP":"Invalid Bitbucket server address.","CODE_REPOSITORY_ADDRESS_DESC":"請使用包含 Jenkinsfile 的倉庫。","CODE_REPOSITORY_ADDRESS_EMPTY_TIP":"Please enter the address of a code repository.","CODE_REPOSITORY_ADDRESS":"倉庫 URL","SINGLE_SVN":"單分支 SVN","SVN":"SVN","BRANCH_EXCLUDED":"排除分支","BRANCH_INCLUDED":"包括分支","DELETE_OUTDATED_BRANCHES":"刪除過期分支(true,false)","DELETE_OUTDATED_BRANCHES_TIP":"Set the system to automatically delete outdated branches to save disk space.","BRANCH_SETTINGS":" 分支設置","BRANCH_RETENTION_PERIOD_DAYS":"已刪除分支保留天數(天)","MAXIMUM_BRANCHES":"已刪除分支保留最大數量","BRANCH_RETENTION_PERIOD_DAYS_DESC":"達到保留天數的分支將被刪除,默認值為 7。","MAXIMUM_BRANCHES_DESC":"如果分支數量超過保留的最大數量,將丟棄舊的分支。默認值為 5。","ADD_STRATEGY":"Add Strategy","DISCOVER_TAG_BRANCHES":"發現 Tag 分支","DISCOVER_BRANCHES":"發現分支","ALL_BRANCHES":"所有分支","ONLY_PR_BRANCHES":"只有被提交為 PR 的分支","EXCLUDE_PR_BRANCHES":"排除作為 PR 提交的分支","ENABLE_TAG_BRANCH_DISCOVERY":"啟用發現 Tag 分支","DISABLE_TAG_BRANCH_DISCOVERY":"停用發現 Tag 分支","PULL_STRATEGY":"拉取策略","OPTIONS_PR_PARAMS_1":"PR 與目標分支合併後的源代碼版本","OPTIONS_PR_PARAMS_2":"PR 本身的源代碼版本","OPTIONS_PR_PARAMS_3":"Create two pipelines respectively","REGEX":"過濾規則","FILTER_BY_REGEX":"根據名稱過濾(正則匹配)","FILTER_BY_REGEX_DESC":"啟用正則表達式,將忽略與提供的正則表達式不匹配的名稱(包括分支與PR等)","SCRIPT_PATH":"腳本路徑","SCRIPT_PATH_DESC":"指定 Jenkinsfile 在源代碼倉庫的位置。","SCAN_TRIGGER":"倉庫掃描觸發器","SCAN_PERIODICALLY":"如果沒有掃描觸發,則定期掃描","TIME_TRIGGER_DESC":"Scan the code repository periodically.","SCAN_INTERVAL":"掃描時間間隔","SELECT_PIPELINE_SCAP":"選擇一個流水線。","WHEN_DELETE_PIPELINE_DESC":"當有流水線被刪除時,將自動觸發指定流水線中的任務。","WHEN_CREATE_PIPELINE_DESC":"當創建新的流水線時,將自動觸發指定流水線中的任務。","PIPELINE_EVENT_TRIGGER":"流水線事件觸發器","WHEN_CREATE_PIPELINE":"創建流水線","WHEN_DELETE_PIPELINE":"當刪除流水線","CLONE_SETTINGS":"Git 克隆參數","CLONE_TIMEOUT_PERIOD":"流水線克隆超時時間(單位:分鐘)","CLONE_DEPTH":"克隆深度","ENABLE_SHALLOW_CLONE":"開啟淺克隆","WEBHOOK_PUSH_URL":"Webhook 推送 URL","WEBHOOK_PUSH_DESC":"推送訊息到此 URL 以觸發倉庫的重新索引。","TRUSTED_USERS":"可信任用戶","CONTRIBUTORS":"貢獻者","EVERYONE":"所有人","NOBODY":"無","USERS_WITH_PERMISSION":"管理員或有編輯權限的用戶","OPTIONS":"備用選項","BUILD_SETTINGS":"構建設置","DELETE_OUTDATED_BUILD_RECORDS":"丢棄舊的構建","DELETE_OUTDATED_BUILD_RECORDS_TIP":"Set the system to automatically delete outdated build records including console output, archived artifacts, and metadata to save disk space.","BUILD_RECORD_RETENTION_PERIOD_DAYS":"保留構建的天數","BUILD_RECORD_RETENTION_PERIOD_DAYS_DESC":"達到保留天數的構建將被刪除,默認值為 7。","BUILD_RECORD_RETENTION_PERIOD_DAYS_INVALID_TIP":"The retention period must be a positive integer.","MAXIMUM_BUILD_RECORDS":"保留構建的最大個數","MAXIMUM_BUILD_RECORDS_DESC":"如果構建超過保留的最大數量,將丟棄舊的構建。默認值為 10。","MAXIMUM_BUILD_RECORDS_INVALID_TIP":"The maximum number of build records must be a positive integer.","NO_CONCURRENT_BUILDS":"不允許並發構建","NO_CONCURRENT_BUILD_DESC":"如果勾選此選項,則不能同時運行多個構建。","BUILD_PARAMETERS":"參數化構建","BUILD_PARAMETERS_TIP":"Pass build parameters to the pipeline.","PARAMS_STRING":"字符串參數 (String) ","PIPELINE_PARAM_DEFAULT_DESC":"指定字段的預設值,您也可以在手動運行流水線前修改預設值。","PARAMS_TEXT":"文本 (Text) ","PARAMS_TEXT_TCAP":"字符串參數 (String) ","PARAMETER_DESCRIPTION_DESC":"參數的描述。","PARAMS_BOOLEAN":"布林值 (Boolean) ","PARAMS_CHOICE":"選項參數 (Choice) ","CHOICE_PARAM_OPTION_DESC":"備用選擇,每行一個。第一行的將作為預設選項。","PARAMS_PASSWORD":"密碼參數 (Password) ","BUILD_TRIGGER":"構建觸發器","BUILD_PERIODICALLY":"定時構建","BUILD_PERIODICALLY_TIP":"提供類似 cron 的功能來定期執行此流水線。","PIPELINE_CRON_DESC":"上次運行時間 {lastTime},下次運行時間 {nextTime}。","PIPELINE_SCHEDULE_DESC":"Enter a CRON expression to set a schedule.","DEFAULT_VALUE":"預設值","PARAMETER_NAME_EMPTY_DESC":"Please set the parameter name.","SELECT_TEMPLATE":"Select template","PARAMETER_CONFIG":"Parameter configuration","PREVIEW":"Preview","EMPTY_PARAMS_CONFIG":"This operation does not require parameter configuration.","PIPELINE_VALIDATOR_DESC":"Please select a pipeline template.","USER_GUIDE":"User Guide","API_DOCUMENT":"API Docuement","INPUT_USERNAME_OR_EMAIL_TIP":"請輸入用戶名或信箱","LOG_IN":"Log In","LOG_IN_WITH_TITLE":"通過 {title} 登入","LOG_OUT":"Log Out","ABOUT":"About","USERNAME_OR_EMAIL":"Username or Email","WELCOME":"Welcome","INTERNAL_SERVER_ERROR_TIP":"對不起,服務器有小差錯了","TOO_MANY_FAILURES":"The number of consecutive login failures has exceeded the limit. Please try again later.","FAILED_TO_ACCESS_BACKEND":"Failed to access the backend services.","FAILED_TO_ACCESS_API_SERVER":"Failed to access the API server.","LOGIN_AGAIN_DESC":"The session has timed out or the user has logged in elsewhere. Please log in again.","CHANGE_PASSWORD_TIP":"You are logging in for the first time. Please change your password.","SUBMIT":"Submit","CHANGE_PASSWORD_LATER":"Change Password Later","PASSWORD_MUST":"Your password must:","PASSWORD_LETTER":"Contain at least 1 uppercase letter and 1 lowercase letter.","PASSWORD_NUMBER":"Contain at least 1 number.","PASSWORD_LENGTH":"Contain at least 8 characters.","SET_EMAIL_AND_USERNAME":"Set Email and Username","APPLICATION_GOVERNANCE_SCAP":"Application governance","NO_SERVICE_FOUND":"No Service Found","GATEWAY_IP_ADDRESS":"網關 IP","GATEWAY_ACCESS_MODE":"網關類型","NODE_PORTS_SCAP":"Node ports","LOAD_BALANCER_SCAP":"Load balancer","LOAD_BALANCERS_SCAP":"Load balancers","TRAFFIC_MANAGEMENT":"流量管理","APPLICATION_GOVERNANCE_ENABLED":"微服務已啟用","APPLICATION_GOVERNANCE_DISABLED":"微服務未啟用","NAME_VALUE":"名稱:{value}","CONTAINER_PORT_VALUE":"容器端口:{value}","PLEASE_USE_RELATIVE_PATH":"Please use a relative path.","RELATIVE_PATH_NOT_SUPPORT":"Unsupported relative path format.","MOUNT_PATH_INCORRECT":"Incorrect mount path.","REASON":"原因","WORKLOAD_DESC":"工作負載 (Workload) 通常是訪問服務的實際載體, 也是對節點紀錄收集、監控等系統應用的實際運行載體,是對一組容器組 (Pod) 的抽象模型。","DEPLOYMENT_EMPTY_DESC":"Please create a Deployment.","UPDATING":"Updating","NEXT":"下一步","INVALID_PROJECT":"Invalid project.","REPLICA_SCHEDULING_MODE":"部署模式","SPECIFY_REPLICAS":"Specify Replicas","WEIGHTS":"Weights","SPECIFY_WEIGHTS":"Specify Weights","SPECIFY_WEIGHTS_DESC":"設定的總副本數將按照設定的權重分配到選擇的集群中,非可用集群的副本會自定遷移到可用集群上。","SPECIFY_REPLICAS_DESC":"明確指定各集群所需部署的副本數。","REPLICA_LOW_SI":"副本","REPLICA_LOW_PL":"副本","WEIGHT":"權重","TOTAL_REPLICAS":"副本總數","COST":"Cost","ADD_CONTAINER":"添加容器","ADD_CONTAINER_DESC":"Kubesphere 支持從鏡像倉庫拉取鏡像以及通過代碼構建新的鏡像並部署","CONTAINERS":"容器鏡像","IMAGE_TIME_SIZE_LAYER":"Updated {time}","IMAGE_DESC":"要從私有鏡像倉庫部署,需要先創建鏡像倉庫密鑰,然後拉取鏡像。","IMAGE_PLACEHOLDER":"點擊右側圖標可選擇鏡像,或直接輸入名稱 例:nginx:latest","IMAGE_EMPTY":"請設置鏡像","ENTER_POSITIVE_INTEGER_DESC":"副本輸入不合法","TOTAL_REPLICAS_EMPTY_DESC":"請輸入副本總數","CONTAINER_NAME":"容器名稱","CONTAINER_TYPE":"容器類型","USE_DEFAULT_PORTS":"使用預設端口","USE_IMAGE_DEFAULT_PORTS":"Use Default Port of Images","NO_DEFAULT_PORT":"暫無預設端口配置","REGISTRY":"倉庫","SET_IMAGE_DESC":"請選擇鏡像","WORKER_CONTAINER":"工作容器","CONTAINER_RESOURCE_LIMIT_TIP":"請設置容器的資源限制與資源預留,這將能夠幫助系統更好地調度容器,提高穩定性。您也可在【項目設置】中,通過【基本資訊】->【項目管理】->【編輯資源預設請求】,來統一設置預設值。","GPU_TYPE":"GPU Type","GPU_LIMIT":"GPU Limit","NVIDIA_COM_GPU":"NVIDIA GPU","NO_LIMIT":"不限制","NO_REQUEST":"不預留","NO_RESOURCE_LIMIT":"無資源限制","IGNORE_AND_RETRY":"重試","AVAILABLE_QUOTAS":"Available Quotas","PORT_SETTINGS":"端口設置","ISTIO_PROTOCOL_TIP":"To fully use the Application Governance feature, select a protocol based on the actual usage of the Service. The port name will be generated in the - format.","REQUIRED":"必填","IMAGE_PULL_POLICY_ALWAYS":"嘗試重新下載鏡像(Always)","IMAGE_PULL_POLICY_NEVER":"僅使用本地鏡像(Never)","IMAGE_PULL_POLICY_ALWAYS_DESC":"Pulls an image always when the pod is created or updated.","IMAGE_PULL_POLICY_IFNOTPRESENT_DESC":"Pulls an image only when the required image does not exist locally.","IMAGE_PULL_POLICY_NEVER_DESC":"僅會使用本地鏡像,如果本地不存在所需鏡像,則會導致容器異常","IMAGE_PULL_POLICY_IFNOTPRESENT":"優先使用本地鏡像(IfNotPresent)","LIVENESS_CHECK":"容器存活檢查","READINESS_CHECK":"容器就緒檢查","STARTUP_CHECK":"容器啟動檢查","LIVENESS_CHECK_DESC":"該檢查方式用於檢測容器是否活著。","READINESS_CHECK_DESC":"該檢查方式用於檢測容器是否準備好開始處理用戶請求。","STARTUP_CHECK_DESC":"該檢查方式用於檢測容器是否啟動成功。","ADD_PROBE":"添加檢查器","COMMANDS":"命令","HEALTH_CHECK":"健康檢查","STARTUP_CHECK_TIP":"需要 Kubernetes v1.18 或以上版本。","HTTP_PATH_EMPTY":"Please set a path for the HTTP check.","LIFECYCLE_MANAGEMENT":"Lifecycle Management","LIFECYCLE_MANAGEMENT_DESC":"Add actions to be performed after the container is started or before it is stopped for environment preparation or graceful shutdown.","POSTSTART_ACTION":"Post-start Action","PRESTOP_ACTION":"Pre-stop Action","POSTSTART_ACTION_DESC":"Add an action to be performed after the container is started.","PRESTOP_ACTION_DESC":"Add an action to be performed before the container is stopped.","ADD_ACTION":"Add Action","ADD_ENVIRONMENT_VARIABLE":"添加環境變量","KEY_IN_RESOURCE":"選擇鍵","LABEL_TYPE":"{label} ({type})","RESOURCE":"Resource","CREATE_CONFIGMAP_SECRET_DESC":"If no configmap or secret meets the requirements, you can","CREATE_CONFIG":"create a configmap","OR":"or","CREATE_SECRET":"create a secret.","DEFAULT_REPOSITORY":"Default Registry","SET_DEFAULT_REPOSITORY":"Set Default Registry","SET_AS_DEFAULT_REPOSITORY_DESC":"Set the image registry as the default image registry. Unless otherwise specified, the system uses images from the default image registry to create application workloads. Only one default image registry is allowed in each project.","SET_AS_DEFAULT_REPOSITORY":"Set as Default","SET_DEFAULT_REPO_SUCCESSFUL":"Default repository set successfully","CONTAINER_SECURITY_CONTEXT":"容器 Security Context","CONTAINER_SECURITY_CONTEXT_DESC":"Security Context的目的是限制不可信容器的行為,保護系統和其他容器不受其影響。","PRIVILEGED_MODE":"特權模式","PRIVILEGED_MODE_DESC":"此時容器中的進程本質上等價於宿主節點上的 root 用戶。","ALLOW_PRIVILEGE_ESCALATION":"允許擴大特權(AllowPrivilegeEscalation)","ALLOW_PRIVILEGE_ESCALATION_DESC":"進程是否可以獲取比父進程更多的特權。當以特權模式運行時,則為允許狀態。","ROOT_DIRECTORY_READONLY":"文件系統root唯讀(ReadOnlyRootFilesystem)","ROOT_DIRECTORY_READONLY_DESC":"該容器的文件系統根路徑是否唯讀。","USER_AND_USER_GROUP":"用戶和用戶組","USER_GROUP":"用戶組","RUN_AS_NON_ROOT":"僅允許非 Root 用戶","RUN_AS_NON_ROOT_DESC":"Kubernetes 在運行容器之前將執行檢查,以確保容器進程不是以 root 用戶(UID為0)運行,否則將不能啟動容器。","RUN_AS_USER_DESC":"執行容器 entrypoint 進程的 UID。預設為 docker 引擎的 GID","RUN_AS_USER_GROUP_DESC":"執行容器 entrypoint 進程的 GID。預設為 docker 引擎的 GID","SELINUX_CONTEXT":"SELinux 上下文","CAPABILITIES":"Capabilities","DROP":"移除","ACCESS_CONTROL":"訪問控制","LEVEL":"等級","SYNC_HOST_TIMEZONE_DESC":"時區與主機同步後,容器内的時區將與主機節點一致。","SYNC_HOST_TIMEZONE":"同步宿主機時區","UPDATE_STRATEGY":"更新策略","ROLLING_UPDATE_RECOMMENDED":"滾動更新(推薦)","SIMULTANEOUS_UPDATE":"替換升級","ROLLINGUPDATE_DESC":"滾動升級將逐步用新版本的實例替換版本的實例,升級的過程中,業務流量會同時負載平衡分布到新舊的實例上,因此業務不會中斷。","SIMULTANEOUS_UPDATE_DESC":"替換升級會先刪除舊的容器組,再創建新容器組;升級過程中業務會中斷。","ENTER_INTEGER_OR_PERCENTAGE":"請輸入值","MAX_EXTRA_EMPTY":"Please set the maximum number of extra Pod replicas allowed during the update process.","POD_SECURITY_CONTEXT":"容器組 Security Context","POD_SECURITY_CONTEXT_DESC":"自定義容器組的訪問控制和權限設置。","POD_SECURITY_CONTEXT_TIP":"容器組 Security Context 可以為容器組内的容器提供預設的用戶和用戶組設置以及 seLinuxOptions 的參數設置,如果容器中已經對這些參數進行了定義,則優先以容器中的設置為準。","POD_SCHEDULING_RULES":"容器组调度策略","POD_SCHEDULING_RULES_DESC":"您可以为容器組調度指定規則","DEFAULT_RULES":"Default Rules","DEFAULT_RULES_DESC":"Schedules the Pod replicas to nodes according to default rules.","DECENTRALIZED_SCHEDULING":"容器組分散部署","CUSTOM_RULES":"Custom Rules","CUSTOM_RULES_DESC":"Pod replicas are scheduled to nodes according to user-defined rules.","DECENTRALIZED_SCHEDULING_DESC":"容器組副本將會盡量分散在不同的節點中","CENTRALIZED_SCHEDULING_DESC":"容器組副本將會盡量部署在同一節點上","CENTRALIZED_SCHEDULING":"容器組聚合部署","SCHEDULE_WITH_TARGET":"與目標部署到壹起","SCHEDULE_AWAY_FROM_TARGET":"遠離目標部署","MATCH_IF_POSSIBLE":"盡可能滿足","MUST_MATCH":"必須匹配","TARGET":"目標","STRATEGY":"策略","POD_GRACE_PERIOD":"Pod Grace Period","POD_GRACE_PERIOD_DESC":"Set the waiting time before Pod terminates, after which Pod will be forcibly terminated.","TERMINATION_GRACEPERIOD_SECONDS":"Termination GracePeriod Seconds (s)","ADD_METADATA":"添加元數據","POD_ADD_METADATA_DESC":"Add metadata to the Pod replicas.","STORAGE_SETTINGS":"Storage Settings","READ_ONLY_LOW":"read-only","READ_AND_WRITE_LOW":"read and write","MOUNT_VOLUME":"添加儲存卷","WORKLOAD_MOUNT_VOLUME_DESC":"Mount an persistent volume, temporary volume, or HostPath volume to the containers.","SELECT_PERSISITENT_VOLUME_CLAIM":"Select Persistent Volume Claim","SELECT_PERSISITENT_VOLUME_CLAIM_DESC":"Mount a persistent volume created according to the persistent volume claim to the containers.","CAPACITY":"容量","PVC_NOT_SELECT":"Please select a persistent volume claim.","TEMPORARY_VOLUME":"臨時儲存卷","VOLUME_NAME":"儲存卷名稱","VOLUME_NAME_EMPTY":"請輸入儲存卷名稱","HOST_PATH_EMPTY":"請輸入存儲卷主機路徑","CONTAINER_NOT_SELECTED":"請至少選擇一個容器進行掛載","NOT_MOUNT":"不掛載","HOSTPATH_VOLUME":"HostPath 儲存卷","HOSTPATH_TIP":"HostPath 將主機的文件系統掛載到Pod中,它使一些應用程式能逃出對其做出的隔離限制,請謹慎使用。","HOST_PATH":"主机路徑","READ_AND_WRITE":"讀寫","READ_ONLY":"只讀","MOUNT_CONFIGMAP_OR_SECRET":"掛載配置文件或密鑰","MOUNT_CONFIGMAP_OR_SECRET_DESC":"將配置文件或密鑰掛載至指定目錄","CONFIGMAP":"配置字典","SELECT_CONFIGMAP_DESC":"將配置中的值添加為卷。","READ_WRITE_MOUNT_EMPTY":"請指定讀寫方式及掛載路徑","SELECT_SPECIFIC_KEYS":"選擇特定的鍵和路徑","SELECT_SPECIFIC_KEYS_DESC":"選擇要使用的密鑰以及將公開每個密鑰的文件路徑,文件路徑相當於裝載路徑,每個文件的内容都是密鑰的值。","SELECT_SECRET_DESC":"將密鑰中的值添加為卷。","CONFIGMAP_NOT_SELECT":"請選擇配置文件","SECRET_NOT_SELECT":"請選擇密鑰","NO_AVAILABLE_RESOURCE":"暫無可用資源","SELECT_NODES":"設置節點調度策略","SELECT_NODES_DESC":"可以讓容器組副本在指定的節點運行","ADD_NODE_SELECTOR":"添加節點選擇器","ADD_METADATA_DESC":"對資源進行額外的元數據設置,例如 Label 和 Annotation","KEY":"鍵","VALUE":"值","ADVANCED_SETTINGS":"高級設置","DUPLICATE_LABELS":"Duplicate labels cannot be added.","WORKLOAD_SPECIFY_NODE_DESC":"可以讓容器組副本在指定的節點運行","CLUSTER_DIFF":"Cluster Differences","CLUSTER_DIFF_CONTAINER_SETTINGS_DESC":"根據不同的需要在不同的集群中設置不同的容器","CLUSTER_DIFF_PORT_SETTINGS_DESC":"可以在不同集群設置不同的服務端口","CLUSTER_DIFF_ENVIRONMENT_VARIABLES_DESC":"可以在不同集群設置不同的環境變量","CONTAINER_IMAGE":"Container Image","ROUTE_ADD_METADATA_DESC":"Add metadata to the Route.","SELECT_INGRESSCLASSNAME":"選擇 ingressClassName","ACCESS_INFORMATION":"服務訪問","VIRTUAL_IP_ADDRESS":"Virtual IP address","INTERNAL_DOMAIN_NAME_SCAP":"集群内部訪問方式(DNS)","NODE_PORT_SCAP":"Node port","SERVICE_TYPE_TCAP":"服務類型","SELECT_SERVICE_TYPE":"Select Service Type","ADD_PORT":"添加端口","EMPTY_LABEL_DESC":"請添加標籤。","SPECIFY_NODE":"指定節點","SPECIFY_NODE_DESC":"指定節點可以將節點的 Label 作為預填充內容","MAXIMUM_STICKINESS_DURATION_DESC":"Set a maximum stickiness duration. The value range is 0 to 86400 and the default value is 10800.","SERVICE_ADD_METADATA_DESC":"Add metadata to the Service.","STATEFULSET_EMPTY_DESC":"Please create a StatefulSet.","POD_SETTINGS":"容器組設置","POD_REPLICAS":"容器組副本數量","ONDELETE":"刪除容器組時更新","ONDELETE_DESC":"控制器不會自動更新容器組,將會在容器組被手動刪除時,更新並替換容器組實例。","PARTITION_ORDINAL":"Ordinal for Dividing Pod Replicas","PARTITION_ORDINAL_DESC":"Set an ordinal to divide the Pod replicas into two groups. When the StatefulSet is updated, only Pod replicas with an ordinal greater than or equal to the value of this parameter are updated.","PVC_NAME_PREFIX":"PVC Name Prefix","PVC_NAME_PREFIX_DESC":"Prefix of persistent volume claim names. The prefix can contain only lowercase letters, numbers, and hyphens (-), and must start and end with a lowercase letter or number. The maximum length is 253 characters.","PVC_NAME_PREFIX_EMPTY":"Please enter the prefix of persistent volume claim names.","INVALID_PVC_NAME_PREFIX":"Invalid prefix. The prefix can contain only lowercase letters, numbers, and hyphens (-), and must start and end with a lowercase letter or number. The maximum length is 253 characters.","PVC_NAME_PREFIX_EXISTS":"The prefix already exists. Please enter another prefix.","ADD_PERSISTENT_VOLUME_CLAIM_TEMPLATE":"Add Persistent Volume Claim Template","ADD_PERSISTENT_VOLUME_CLAIM_TEMPLATE_DESC":"Add a persistent volume claim template to mount a persistent volume to each pod of the statefulset.","VOLUME_CAPACITY_TCAP":"儲存卷容量","MOUNT_PATH_TCAP":"Mount Path","VOLUME_TEMPLATES":"儲存卷模板","SERVICE_PORT":"服務端口","SERVICE_PORT_VALUE":"服務端口:{value}","VOLUME_TEMPLATE_SETTINGS":"儲存卷模板設置","CLUSTER_VOLUME_DIFF_DESC":"可針對不同集群,選擇不同的儲存類型","CONFIGMAP_EMPTY_DESC":"Please create a configmap.","MULTI_CLUSTER_PROJECT_EMPTY_DESC":"將根據項目資源進行分組,可以按項目對資源進行查看管理","MULTI_CLUSTER_PROJECT_LOW":"聯邦項目","MULTI_CLUSTER_PROJECT_SCAP":"聯邦項目","VOLUME_MONITORING_TIP":"存储系统需要具备真实的 volume quota 控制能力才可以输出真实准确的数据,基于 host path, local pv, 开源 nfs server 构建的存储系统通常不具备该能力。了解更多","MOUNT_INFORMATION":"掛載資訊","VOLUME_ADD_METADATA_DESC":"Add metadata to the volume.","PROJECT_NAME":"項目名稱","NO_REQUEST_TCAP":"不預留","NO_LIMIT_TCAP":"不限制","CPU_REQUEST_LOW":"CPU 預留","CPU_LIMIT_LOW":"CPU 限制","CPU_REQUEST_CORE":"{value} Core","CPU_LIMIT_CORE":"{value} Core","MEMORY_REQUEST_MIB":"{value} Mi","MEMORY_LIMIT_MIB":"{value} Mi","DELETE_PROJECT":"Delete Project","CREATION_TIME":"Creation time","FOLD":"折疊","UNFOLD":"展開","PLATFORM":"Platform","CLUSTER_MANAGEMENT":"Cluster Management","CLUSTER_DESC":"Unified management of multiple clusters and their basic resources, components, and application resources.","ACCESS_CONTROL_DESC":"對平台中的企業空間、帳號、以及角色權限進行統一管理","APP_STORE_MANAGEMENT_DESC":"對雲原生應用的上架、下架以及審核等應用全生命週期的統一管理","PLATFORM_SETTINGS_DESC":"客製化平台設置,如平台基本資訊、紀錄收集器等","NOTIFICATION_MANAGEMENT":"通知管理","NOTIFICATION_CHANNELS":"Notification Channels","NOTIFICATION_CHANNELS_DESC":"Notify users through multiple channels when resource metrics meet conditions configured in rule groups.","MAIL_TITLE":"郵箱","MAIL_DESC":"Send notifications to email addresses.","INVALID_PORT_DESC":"Please enter a valid port number.","ENTER_PORT_NUMBER":"請輸入端口","ALERTING_NAME":"Alert name","ALERTING_SEVERITY":"Alert severity","ADDRESS_EMPTY_DESC":"Please enter an address.","EMAIL_EMPTY_DESC":"請輸入郵箱","SERVER_SETTINGS":"服務器设置","RECIPIENT_SETTINGS":"接收設置","FILTER_CONDITIONS":"Filter Conditions","CONTAINER":"Container","VALUES":"Values","CONDITION_OPERATOR":"操作者","NOTIFICATION_CONDITION_SETTING_TIP":"The Contain and Not contain operators require one or more values. You can press Enter to set multiple values.","NOTIFICATION_CONDITION_SETTINGS_DESC":"Set the system to send only alerts that meet the conditions.","CONTAIN":"Contain","NOT_CONTAIN":"Not contain","EXIST":"Exist","NOT_EXIST":"Not exist","PATTERN_TAG_INVALID_TIP":"Invalid label. The label can contain only uppercase and lowercase letters, numbers, hyphens (-), underscores (_), and dots (.), and must begin and end with an uppercase or lowercase letter or number.","PATTERN_TAG_VALUE_INVALID_TIP":"Invalid value. The value can only contain uppercase and lowercase letters, numbers, hyphens (-), underscores (_) and dots (.) and must begin and end with an uppercase or lowercase letter or number and be a maximum of 63 characters.","INVALID_NOTIFICATION_CONDITION":"請填寫正確的通知條件。","SEND_TEST_MESSAGE":"發送測試信息","SEND_TEST_MESSAGE_DESC":"Send a test message to verify that the notification channel is working properly.","SEND_TEST_MESSAGE_SUCCESS_DESC":"Verified successfully. A test message has been sent.","SMTP_SERVER_ADDRESS":"SMTP 服務器地址","USE_SSL_SECURE_CONNECTION":"Use SSL secure connection","SENDER_EMAIL":"發件人郵箱","INVALID_EMAIL":"郵箱格式不合法","INVALID_ADDRESS_DESC":"Please enter a valid address.","MAX_EAMIL_COUNT":"You can add a maximum of {count} emails.","SMTP_USER":"SMTP Username","SMTP_PASSWORD":"SMTP Password","ENTER_PASSWORD_TIP":"Please enter a password.","ENTER_RECIPIENT_EMAIL_DESC":"Please add at lease one email address.","INVALID_EMAIL_ADDRESS_DESC":"Incorrect email format.","SMTP_USER_EMPTY_DESC":"Please enter an SMTP username.","ADDED_SUCCESS_DESC":"添加成功。","POD":"容器組","UPDATE_SUCCESSFUL":"Updated successfully.","FEISHU":"Feishu","FEISHU_TITLE":"Feishu","FEISHU_DESC":"Send notifications to Feishu users.","PLEASE_ENTER_APP_ID":"Please enter an app ID.","USER_ID":"User ID","DEPARTMENT_ID":"Department ID","FEISHU_RECEIPIENT_SETTINGS_DESC":"To receive notifications, please set at least one user ID or department ID.","FEISHU_SECRET":"保密字典","DINGTALK_TITLE":"DingTalk","DINGTALK":"DingTalk","DINGTALK_DESC":"Send notifications to DingTalk users.","PLEASE_ENTER_APP_KEY":"Please enter an app key.","PLEASE_ENTER_APP_SECRET":"Please enter an app secret.","PLEASE_ENTER_CHAT_ID":"Please enter a chat ID.","PLEASE_ENTER_WEBHOOK_URL":"Please enter a webhook URL.","CHAT_SETTINGS":"Chat Settings","CHAT_ID_TIP":"Contact the DingTalk administrator to obtain the chat ID.","DINGTALK_SETTING_TIP":"Please set up a chat or group chatbot.","ENTER_CHAT_ID_DESC":"Please enter a chat ID.","MAX_CID_COUNT":"You can add a maximum of {count} chat IDs.","CHAT_ID_EXISTS":"The chat ID already exists. Please add another chat ID.","CHATBOT_SETTINGS":"Chatbot Settings","KEYWORDS_LIST":"Added Keywords","DINGTALK_CHATBOT_SECURITY_TIP":"Please enter a secret or keyword.","ENTER_KEYWORD_DESC":"請輸入關鍵字。","MAX_KEYWORD_COUNT":"You can add a maximum of {count} keywords.","KEYWORD_EXISTS":"The keyword already exists. Please add another keyword.","EMPTY_KEYWORDS_DESC":"No keyword is added.","WECOM":"企業微信","WECOM_TITLE":"企業微信","WECOM_DESC":"Send notifications to WeCom users.","RECIPIENT_SETTINGS_TIP":"Enter at least one user ID, department ID, or tag ID.","ENTER_WECOM_CORP_ID_DESC":"Please enter a corp ID.","ENTER_WECOM_AGENT_ID_DESC":"Please enter an app agent ID.","ENTER_WECOM_SECRET_DESC":"Please enter an app secret.","TOUSER_LIST":"Added User IDs","EMPTY_TOUSER_DESC":"No user ID is added.","ENTER_TOUSER_TIP":"Please enter a user ID.","TOUSER_EXISTS":"The user ID already exists. Please enter another user ID.","MAX_TOUSER_COUNT":"You can add a maximum of {count} user IDs.","TOPARTY_LIST":"Added Department IDs","EMPTY_TOPARTY_DESC":"No department ID is added.","ENTER_TOPARTY_TIP":"Please enter a department ID.","TOPARTY_EXISTS":"The department ID already exists. Please enter another department ID.","MAX_TOPARTY_COUNT":"You can add a maximum of {count} department IDs.","TOTAG_LIST":"Added Tag IDs","EMPTY_TOTAG_DESC":"No tag ID is added.","ENTER_TOTAG_TIP":"Please enter a tag ID.","TOTAG_EXISTS":"The tag ID already exists. Please enter another tag ID.","MAX_TOTAG_COUNT":"You can add a maximum of {count} tag IDs.","ATUSERS_LIST":"已添加的 User ID","EMPTY_ATUSERS_DESC":"沒有已添加的 User ID。","WHIZARD_NOTIFICATION.PHONE_NUMBER":"手機號","ATMOBILES_LIST":"已添加的手機號","EMPTY_ATMOBILES_DESC":"沒有已添加的手機號。","SLACK":"Slack","SLACK_TITLE":"Slack","SLACK_DESC":"Send notifications to Slack users.","SLACK_TOKEN":"Slack Token","SLACK_TOKEN_DESC":"Please enter a Slack token.","SLACK_CHANNEL":"Slack Channel","CHANNEL_SETTINGS":"Slack Channel Settings","ADDED_CHANNELS":"Added Slack Channels","EMPTY_CHANNEL_DESC":"No Slack channel is added.","ADD_CHANNEL_TIP":"Please add a Slack channel.","CHANNEL_EXISTS":"The Slack channel already exists. Please add another Slack channel.","MAX_CHANNEL_COUNT":"You can add a maximum of {count} Slack channels.","WEBHOOK":"Webhook","WEBHOOK_TITLE":"Webhook","WEBHOOK_DESC":"Send notifications to a webhook.","WEBHOOK_URL_DESC":"Please enter a webhook URL.","AUTHENTICATION_TYPE":"Authentication Type","AUTHENTICATION_TYPE_DESC":"Please select an authentication type.","SKIP_TLS_VERFICATION":"Skip TLS verification (insecure)","BASIC_AUTH":"Basic authentication","NO_AUTH":"無須認證","BEARER_TOKEN":"Bearer token","TOKEN":"Token","WEBHOOK_USERNAME_EMPTY_DESC":"請輸入用戶名稱","WEBHOOK_PASSWORD_EMPTY_DESC":"Please enter a password.","WEBHOOK_TOKEN_EMPTY_DESC":"Please enter a token.","PLATFORM_INFO_DESC":"Overview of the platform information. You can view and customize the platform information.","HOW_TO_MODIFY_PLATFORM_INFO":"如何修改平台資訊?","PLATFORM_INFORMATION":"平台資訊","PLATFORM_DESCRIPTION":"平台描述","PLATFORM_TITLE":"平台標題","PLATFORM_ADDRESS":"平台地址","PLATFORM_SETTINGS":"平台設置","ADD_SERVICE":"添加服務","ADD_ROUTE":"Add Route","SERVICE_ADDED_SUCCESSFULLY":"The service was added successfully.","WORKLOAD_TYPE_DEPLOYMENTS":"部署","WORKLOAD_TYPE_DAEMONSETS":"守護進程集","WORKLOAD_TYPE_STATEFULSETS":"有狀態副本集","TRAFFIC_MONITORING":"流量監控","TRAFFIC_MONITORING_UNAVAILABLE_DESC":"應用長時間未收到請求,請訪問應用後嘗試流量治理","TRAFFIC_ENTRY":"流量入口","NO_DATA":"暫無數據","REFRESH":"刷新","SUCCESS_RATE":"Success rate","TRAFFIC_RPS":"Traffic (RPS)","BANDWIDTH":"Bandwidth","HTTP_INBOUND_TRAFFIC":"HTTP Inbound Traffic","HTTP_OUTBOUND_TRAFFIC":"HTTP Outbound Traffic","TRAFFIC_POLICIES":"Traffic Policies","LOAD_BALANCING":"Load Balancing","LOAD_BALANCING_ALGORITHM":"Load Balancing Algorithm","LB_UNSPECIFIED":"未指定","LB_LEAST_REQUEST":"最少請求","LB_PASSTHROUGH":"透過","LB_ROUND_ROBIN":"輪詢","LB_LEAST_CONN":"最少連接","LB_RANDOM":"隨機","LB_ALG_DESC":"Round robin: Distributes client requests to backends in rotation.
    Least connection: Randomly selects two healthy backends and sends client requests to the one with fewer connections.
    Random: Sends client requests to a backend randomly selected from all healthy backends.","HASH_BASED_ON_HTTP_HEADER":"Hash based on HTTP header","HASH_BASED_ON_HTTP_COOKIE":"Hash based on HTTP cookie","HASH_BASED_ON_SOURCE_IP_ADDRESS":"Hash based on source IP address","HTTP_HEADER":"HTTP Header","HTTP_COOKIE":"HTTP Cookie","CONNECTION_POOL":"Connection Pool","CONNECTION_POOL_TIP":"Creates a fixed number of connection objects for the application and stores them in a connection pool for reuse. A connection object is retrieved from the connection pool for each request and returned to the pool after use.","MAXIMUM_CONNECTIONS":"Maximum Connections","MAXIMUM_CONNECTIONS_DESC":"Maximum of number of HTTP1 or TCP connections to a destination backend.","MAXIMUM_REQUESTS_PER_CONNECTION":"Maximum Requests per Connection","MAXIMUM_REQUESTS_PER_CONNECTION_DESC":"Maximum number of requests per connection to a backend.","TRAFFIC_MONITORING_MAXIMUM_RETRIES":"最大重試次數","TRAFFIC_MONITORING_MAXIMUM_RETRIES_DESC":"Maximum number of retries for requests.","CONNECTION_TIMEOUT":"Connection Timeout","CONNECTION_TIMEOUT_DESC":"TCP connection timeout period.","MAXIMUM_REQUESTS":"Maximum Requests","MAXIMUM_PENDING_REQUESTS":"Maximum Pending Requests","CIRCUIT_BREAKER":"Circuit Breaker","CIRCUIT_BREAKER_DESC":"If a service cannot be accessed and the specified criteria are met, the ciruit breaker marks the service as unavailable and returns error response to clients directly for a specified period of time.","CONSECUTIVE_FIVEXX_ERRORS":"Consecutive 5XX Errors","CONSECUTIVE_FIVEXX_ERRORS_DESC":"Number of 5XX errors before a backend is ejected from the connection pool.","INSPECTION_INTERVAL_S":"Inspection Interval (s)","INSPECTION_INTERVAL_S_DESC":"Interval between two backend inspections.","MAXIUM_EJECTION_RATIO":"Maximum Ejection Ratio (%)","MAXIUM_EJECTION_RATIO_DESC":"Maximum percentage of backends that can be ejected.","BASE_EJECTION_TIME_S":"Base Ejection Time (s)","BASE_EJECTION_TIME_S_DESC":"Maximum ejection duration.","UPDATED_AT_VALUE_SCAP":"Updated at {value}","METHOD":"Method","TRAFFIC_MANAGEMENT_UNAVAILABLE":"Traffic Management Unavailable","APPLICATION_GOVERNANCE_NOT_ENABLED":"Please enable Application Governance.","CREATE_GRAYSCALE_RELEASE_TASK":"Create Grayscale Release Task","GRAYSCALE_RELEASE_DESC":"Grayscale release represents an important method of application iteration in the production environment. You can choose different release methods for the smooth transition as you upgrade your applications to a new version.","NO_GRAYSCALE_RELEASE_TASK_FOUND":"No Grayscale Release Task Found","NO_GRAYSCALE_RELEASE_TASK_FOUND_DESC":"請創建一個灰度發布任務。","TYPE_SERVICE_DEPLOYMENT":"Type: stateless service (deployment)","TYPE_SERVICE_STATEFULSET":"Type: stateful service (statefulset)","TRACING":"Tracing","TRACING_NO_DATA_DESC":"請嘗試其它查詢條件","NUM_SPAN_SI":"{num} span","NUM_SPAN_PL":"{num} spans","NUM_ERROR_SI":"{num} error","NUM_ERROR_PL":"{num} errors","LAST_NUM_RECORDS":"最近 {num} 條紀錄","PROCESS":"Process","SERVICES_AND_OPERATIONS":"Services & Operations","TRACING_UNAVAILABLE":"Tracing Unavailable","CALLED_SERVICES":"Called Services","CALLED_DEPTH":"Call Depth","COMPOSED_APP_PL":"自制應用","NO_COMPOSED_APP_FOUND":"No Composed App Found","COMPOSED_APP_EMPTY_DESC":"通過資源編排的方式發佈服務構建應用(支持應用治理功能)","STATEFUL_SERVICE":"有狀態服務","STATELESS_SERVICE":"無狀態服務","CREATE_COMPOSED_APP":"構建應用","SAVE_FORM_TIP":"請先保存目前表單","YAML_FILE":"YAML File","CREATE_BY_YAML_DESC":"Customize the settings in the YAML file.","APPLICATION_GOVERNANCE":"應用治理","VERSION_DESC":"最長 16 個字元,只能包含小寫字母及數字","APPLICATION_GOVERNANCE_DESC":"Enable Application Governace to use the Traffic Monitoring, Grayscale Release, and Tracing features for the app.","APP_BASIC_INFORMATION_DESC":"ˇ對應用的名稱描述資訊等基本的資訊定義","APP_SELECT_SERVICE_TYPE_DESC":"Create a stateless or stateful Service.","STATEFUL_SERVICE_DESC":"有狀態服務用來管理有狀態應用,可以保證部署和擴容縮容的順序,提供了穩定的持久化儲存和網路標識,有序伸縮等","STATELESS_SERVICE_DESC":"容器服務中最常用的一種服務,通過定義容器組模板來控制容器組狀態,包括滾動升級和回滾","APPLICATION_SERVICE_DESC":"根據應用中服務類型的不同設置不同類型的服務組件,支持無狀態服務和有狀態服務","APP_CREATE_SERVICE_DESC":"Create a service for the app.","ROUTE_SETTINGS":"Route Settings","ROUTING_RULES":"路由規則","ROUTE_SETTINGS_DESC":"可以設置應用的外網訪問規則 (Ingress)","ADD_ROUTE_SUCCESS":"The route was added successfully.","CURRENT_APP_SETTINGS_READONLY":"當前應用配置","TARGET_APP_SETTINGS":"Target App Settings","TARGET_APP_VERSION":"Target App Version","CURRENT_APP_VERSION":"當前應用版本","EDIT_APP_SETTINGS":"Edit App Settings","UPDATED_TIME":"Updated at {value}","APP_TEMPLATE":"App Template","NO_APP_DESC_FOUND":"該應用沒有說明文件","TEMPLATE_BASED_APP_PL":"Template-Based Apps","APPLICATIONS_DESC":"應用為用戶提供完整的業務功能,由一個或多個特定功能的組件組成。","APP_PL":"應用","APP_TYPES_Q":"應用類型","APP_TYPES_A":"KubeSphere 支持來自於應用商店和應用倉庫的應用部署(基於 Helm),同樣也支持自制應用(Application CRD)。","HOW_TO_USE_APP_GOVERN_Q":"如何使用應用治理?","HOW_TO_USE_APP_GOVERN_A":"使用應用治理需要創建自制應用並對每項服務開啟服務治理功能","DEPLOY_SAMPLE_APP":"部署範例應用","NO_TEMPLATE_BASED_APP_FOUND":"No Template-Based App Found","TEMPLATE_BASED_APP_EMPTY_DESC":"Please create an app from the KubeSphere App Store or an app template.","APP":"應用","VERSION":"版本","CREATING":"創建中","UPGRADING":"Created","DELETING":"刪除中","CREATE_APP":"部署新應用","CREATE_APP_DESC":"輕量化、可移植、自包含的軟體封裝技術,使應用可以在幾乎任何地方以相同的方式運行。","FROM_APP_STORE":"來自應用商店","FROM_APP_TEMPLATE":"來自應用模板","FROM_APP_STORE_DESC":"來自KubeSphere官方應用商店,提供高質量應用和簡易的部署方式","SELECT_APP_REPOSITORY":"Select app repository","CURRENT_WORKSPACE":"來自企業空間","FROM_APP_TEMPLATE_DESC":"來自於企業空間的自制應用模板以及應用倉庫中添加的第三方 Helm 應用模板","APP_TEMPLATES_MODAL_DESC":"應用模板來自於企業空間和第三方的 Helm 應用模板,支持一鍵部署並可通過視覺化的方式在 KubeSphere 中展示並提供部署及管理的功能","APP_LOW":"應用","CRONJOBS":"CronJobs","CRONJOB_DESC":"CronJobs manages Jobs on a time-based schedule and can be used to perform periodic or recurring tasks.","CRONJOB_PAUSED":"已暫停","CRONJOB_RUNNING":"運行中","CRONJOB_FAILED":"失敗","SCHEDULE":"Schedule","ENTER_SCHEDULE_TIP":"請选择定時計畫。","CRONJOB_CRON_DESC":"Set a schedule for the CronJob. KubeSphere uses UTC by default and you need to adjust the schedule according to your time zone.","MAXIMUM_DELAY":"Maximum Start Delay (s)","SUCCESSFUL_JOBS_RETAINED":"保留完成任务數","FAILED_JOBS_RETAINED":"保留失敗任务數","CONCURRENCY_POLICY":"並發策略","MAXIMUM_DELAY_DESC":"Deadline for starting the Job if the scheduled run is missed for any reason.","CONCURRENCY_POLICY_DESC":"Select a concurrency policy of a Job created by the CronJob.","FAILED_JOBS_RETAINED_DESC":"允許保留的失敗的任務個數。","SUCCESSFUL_JOBS_RETAINED_DESC":"允許保留的成功的任務個數。","RUN_JOBS_CONCURRENTLY":"Run Jobs concurrently","SKIP_NEW_JOB":"Skip new Job","SKIP_OLD_JOB":"Skip old Job","STRATEGY_SETTINGS":"Strategy Settings","MAXIMUM_RETRIES":"最大重試次數","MAXIMUM_RETRIES_DESC":"Maximum number of retries before the Job is marked as failed. The default value is 6.","PARALLEL_PODS_DESC":"Number of Pods that run concurrently.","COMPLETE_PODS_DESC":"Number of Pods that complete successfully required for the Job to be marked as complete.","MAXIMUM_DURATION_DESC":"Maximum duration of the Job. The Job is terminated when it reaches the specified deadline.","PARALLEL_PODS":"並行數","COMPLETE_PODS":"完成數","MAXIMUM_DURATION":"退出超時時限(s)","RESTART_POLICY":"重啟策略","RESTART_POLICY_DESC":"Set the Pod restart policy.","CRONJOB_PL":"定時任務","CRONJOB_LOW":"定時任務","REVISION_RECORDS_DESC":"對工作負載的資源模板進行修改後會生成一個新的紀錄並重新調度 容器組(Pod)進行版本的疊代,預設保存10個最近的版本。您可以根據修改紀錄進行重新部署。","ENVIRONMENT_VARIABLE":"環境變量","CONTAINER_SETTINGS_DESC":"對容器的名稱及容器的計算資源進行設置","PORT_SETTINGS_DESC":"設置容器的訪問策略","HEALTH_CHECKER_DESC":"根據用戶需要,定時檢查容器健康狀況。","STARTUP_COMMAND":"啟動命令","STARTUP_COMMAND_DESC":"在預設情况下,鏡像會運行預設命令,如果想運行特定命令或重寫鏡像預設值。","CONTAINER_COMMAND_DESC":"容器的啟動命令參數,預設使用打包時使用的啟動命令, 如需多個請以 \",\" 分隔","CONTAINER_ARGUMENT_DESC":"容器的啟動命令參數, 如需多個請以 \",\" 分隔","CONTAINER_ENVIRONMENT_DESC":"添加容器的環境變量","PROBE_COMMAND_DESC":"如需多個請以 \",\" 分隔","IGNORE_CERT_WARN_DESC":"忽略驗證證書,可能會導致帳戶密碼被欺騙。","CERT_ERROR":"發現證書錯誤,是否忽略證書驗證並再次","ROLL_BACK":"回退","CURRENT_REVISION_RECORD":"目前修改记录","TARGET_REVISION_EMPTY_DESC":"請選擇回退版本","TARGET_REVISION_RECORD":"回退版本","CONFIGURE_AUTOSCALING_DESC":"根據 CPU 和記憶體使用情況自動伸縮副本。如果同時指定 CPU 和記憶體,則滿足任一條件後即添加或刪除副本","EDIT_AUTOSCALING":"Edit Autoscaling","TARGET_CPU_USAGE_UNIT":"CPU 目標使用率","AUTOSCALING":"彈性伸縮","RESOURCE_NAME":"資源名稱","TARGET_CPU_USAGE_DESC":"當 CPU 使用率超過或低於此目標值時,將添加或刪除副本","TARGET_MEMORY_USAGE_DESC":"當記憶體使用量超過或低於此目標值時,將添加或刪除副本","MINIMUM_REPLICAS_DESC":"彈性伸縮可以設置的副本數量的下限","MAXIMUM_REPLICAS_DESC":"副本數量的上限","TARGET_MEMORY_USAGE_UNIT":"記憶體目標使用量","MINIMUM_REPLICAS":"最小副本數","MAXIMUM_REPLICAS":"最大副本數","EDIT_SETTINGS":"編輯配置模板","FROM_CONFIGMAP":"From configmap","FROM_SECRET":"From secret","BATCH_REFERENCE":"Batch Reference","BATCH_REFERENCE_DESC":"Reference multiple keys in a configmap or secret.","DESELECT_ALL":"Deselect all","KEY_PL":"Keys","RULE_NOT_COMPLETE":"請填寫完整策略","REVISION_RECORDS":"版本記錄","CONFIG_FILE":"配置文件","COMPARE_WITH":"與上一個版本 {version} 的對比","REPLICAS_DESIRED":"期望副本数","REPLICAS_CURRENT":"實際運行副本","ADJUST_REPLICAS":"立即生效?","REPLICAS_SCALE_NOTIFY_CONTENT":"您已將工作負載的副本數調整為 {num}, 您也可以繼續調整副本數量,或者您可以使它立即生效。","REPLICAS_SCALE_NOTIFY_CONFIRM":"立即生效({seconds}s)","REPLICAS_SCALE_NOTIFY_CANCEL":"放棄更改","TARGET_MEMORY_USAGE":"目標使用量","TARGET_CPU_USAGE":"目標使用率","TARGET_CURRENT":"{target} (Current: {current})","NOT_ENABLE":"{resource} 暫未啟用","CONTAINER_LOG_NOT_ENABLED":"Container Log is not enabled.","BUILD_LOG":"Build Log","TASK":"Task","IN_PROGRESS":"in progress","IMAGE_BUILDING":"Image Building","HAS_FAILED":"has failed","VIEW_ALL_REPLICAS":"查看所有副本","SHOW_SELECTED_ONLY":"僅顯示已選","MONITORING_SELECT_LIMIT_MSG":"最多可以選擇 10 個資源","MONITORING_ALERT_DESC":"目前監控最多可顯示五個副本的運行狀態監控,當超過五個副本時,可以點擊具體監控項目的「查看全部副本」,查看更多的副本監控。","CURRENT_VALUE":"Current: {value}","ENVIRONMENT_VARIABLE_PL":"環境變量","EVENT_AGE":"發生時間","EVENT_AGE_DATA":"{lastTime}
    ({count} times over {duration})","EVENT_AGE_DATA_TWICE":"{lastTime}
    (twice over {duration})","SOURCE":"來源","HPA_SET_TIP":"已設置彈性伸縮策略","WORKLOAD_EMPTY_DESC":"工作負載 (Workload) 通常是訪問服務的實際載體, 也是對節點紀錄收集、監控等系統應用的實際運行載體,是對一組容器組 (Pod) 的抽象模型。","INVALID_IMAGE":"鏡像無效。","INVALID_NAME_DESC":"Invalid name. The name can contain only lowercase letters, numbers, and hyphens (-), and must start and end with a lowercase letter or number. The maximum length is 63 characters.","NO_IMAGE_FOUND":"沒有找到此鏡像","CONTAINER_EMPTY_DESC":"Please add at least one worker container.","RESOURC_QUOTAS_UNSET":"Resource Quotas Unset","INSUFFICENT_RESOURCES":"Insufficent Resources","REMAINING_QUOTAS":"Remaining Quotas","ENVIRONMENT_INVALID_TIP":"The key of an environment variable can contain only letters, numbers, underscores (_), hyphens (-), and periods (.), and must not start with a number.","ENVIRONMENT_CANNOT_BE_EMPTY":"Please set a key for the environment variable.","WORKLOAD_PORT_NAME_DESC":"The port name can contain only lowercase letters, numbers and hyphens (-), and must start with a lowercase letter and end with a lowercase letter or number. The maximum length is 15 characters.","MAX_EXTRA_PODS_DESC":"升級過程中「允許超出副本數量的容器組」的最大數量或百分比","MAX_EXTRA_PODS":"容器組最大超出數量","AVAILABLE":"閒置","IN_USER":"使用中","ACCESS_MODE_SCAP":"訪問模式","PVC_OR_TEMPLATE_EMPTY":"You have enabled Collect Logs on Volumes. Please add at least one persistent volume, temperary volume, or persistent volume claim template and specify the path of container logs.","PVC_EMPTY":"You have enabled Collect Logs on Volumes. Please add at least one persistent volume or temperary volume and specify the path of container logs.","PROJECT_COLLECT_SAVED_DISABLED_DESC":"Please contact the project administrator to enable disk log collection in Project Settings > Advanced Settings.","COLLECT_LOGS_ON_VOLUMES_DESC":"After you add a volume (ReadAndWrite mode), you can collect logs inside the volume. When you enable disk log collection, the Filebeat image will be used as a sidecar pattern and injected into the Pod to collect logs.","CONTAINER_LOG_PATH":"容器紀錄相對路徑","CONTAINER_LOG_PATH_TIP":"容器紀錄相對路徑是從容器掛載路徑開始的路徑,可以 glob 方式給出,多組時以英文逗号分隔。例如當容器掛載路徑為 /data 時,容器紀錄相對路徑配置為 log/*.log,表示匹配 /data/log 目錄下所有 .log 後缀文件。
    若需要匹配 /data/log 目錄及其子目錄下的所有 .log 後缀文件,可將容器紀錄相對路徑配置為 log/**/*.log","RECREATE_CONFIRM_DESC":"您即將重新部署工作負載 {resource} ({type}) , 容器組將根據更新策略進行重新部署,您的業務可能會被暫時中斷。","NO_WORKLOAD_RELATED_RESOURCE_DESC":"No resource related to the workload is found.","SELECT_ALL":"選擇全部","DELETE_WORKLOAD_DESC_SI":"You are about to delete the workload {resource}.
    Do you want to also delete the resource related to the workload?","DELETE_WORKLOAD_DESC_PL":"You are about to delete the workloads {resource}.
    Do you want to also delete the resources related to the workloads?","DELETE_WORKLOAD":"Delete Workload","DELETE_MULTIPLE_WORKLOADS":"Delete Multiple Workloads","DELETE_APP_RESOURCE_TIP":"The resource is managed by {app}, which may affect the normal use of this app if the resource is deleted. Please enter the {type} name {resource} to make sure you understand the risks associated with the operation.","STOP_APP_RESOURCE_TIP":"The resource is managed by {app}, which may affect the normal use of this app if the resource is stopped. Please enter the {type} name {resource} to make sure you understand the risks associated with the operation.","MORE":"更多操作","VIEW_YAML":"查看 YAML","JOB_PL":"Jobs","JOB_DESC":"Jobs are used to perform short-lived, one-off tasks. A Job creates one or more Pods and ensures that a specific number of Pods successfully terminate.","JOB_EMPTY_DESC":"Please create a Job.","JOB_COMPLETED":"已完成","JOB_FAILED":"失敗","JOB_RUNNING":"運行中","LAST_RUN_TIME":"Last Run Time","RESTART_POLICY_NEVER_DESC":"Re-create pod","RESTART_POLICY_ONFAILURE_DESC":"On failure(容器組出現故障時内部重啟容器)","RERUN":"重新執行","JOB":"任務","JOB_LOW":"Job","QOS_CLASS":"QoS Class","NODE_NAME":"主機名稱","POD_IP_ADDRESS":"容器組 IP 地址","JOB_UNFINISHED":"Unfinished","TERMINATED":"Terminated","SCHEDULED_TO_NODE":"調度至 {value}","SCHEDULING_NOT_SUCCESSFUL":"Scheduling Not Successful","SCHEDULING_INFORMATION":"調度資訊","SCHEDULING_RESULT":"節點調度資訊","POD_SCHEDULING_METHOD":"容器組如何被調度至節點?","POD_ASSIGNED_DESC":"根據容器組中容器設置的請求值 (即 Request) 作為容器調度時資源分配的判斷依據。只有節點上可分配總量 ≥ 容器請求值時,才允許將容器調度到該節點。","STATUS_INFORMATION":"狀態分析(Conditions)","WORKLOAD_CONDITION_AVAILABLE":"可用性(Available)","WORKLOAD_CONDITION_PROGRESSING":"創建進度(Progressing)","NOT_SUCCESSFUL":"Not successful","CURRENT_STATUS":"目前階段(phase)","POD_CONDITION_INITIALIZED":"Initialized","POD_CONDITION_INITIALIZED_DESC":"所有 init 容器都已成功啟動","POD_CONDITION_READY":"開始運行(Ready)","POD_CONDITION_READY_DESC":"容器組已經開始運行,並可以通過服務進行訪問","POD_CONDITION_CONTAINERSREADY":"容器準備就緒(ContainersReady)","POD_CONDITION_CONTAINERSREADY_DESC":"容器組内容器準備就緒.","POD_CONDITION_PODSCHEDULED":"調度成功(PodScheduled)","POD_CONDITION_PODSCHEDULED_DESC":"容器組已經被安排到一個節點中","POD_DESC":"容器組 (Pod) 是 Kubernetes 應用程式的基本執行單元,是您創建或部署的 Kubernetes 對象模型中最小和最簡單的單元。","POD_EMPTY_DESC":"容器組 (Pod) 是 Kubernetes 應用程式的基本執行單元,是您創建或部署的 Kubernetes 對象模型中最小和最簡單的單元。","DOMAIN_NAME_VALUE":"Domain Name: {value}","PATH_VALUE":"路徑:{value}","RULES":"規則","ROUTE_PATH_VALUE":"路徑:{value}","ROUTE_SERVICE_VALUE":"服務:{value}","ROUTE_PORT_VALUE":"端口:{value}","SERVICE_COLON":"Service: ","ACCESS_SERVICE":"訪問服務","UNABLE_TO_ACCESS":"無法訪問服務","UNABLE_TO_ACCESS_TIP":"Make sure that domain name resolution policies have been configured in your DNS server or the hosts file of your client machine.","CERTIFICATE_VALUE":"Certificate: {value}","PATH_EXIST":"PATH 重複,請重新輸入。","ENDPOINT":"Endpoint","SESSION_AFFINITY":"會話親和性","EDIT_EXTERNAL_ACCESS":"編輯外網訪問","EDIT_MONITORING_EXPORTER":"Edit Monitoring Exporter","EDIT_SERVICE":"編輯服務","ACCESS_NONE_TIP":"不提供外網訪問。","EXTERNAL_SERVICE":"外部服務","COLLECTION_INTERVAL_MIN":"Collection Interval (min)","COLLECTION_INTERVAL_MIN_DESC":"Interval in minutes between two metric collection operations. The default value is 1.","COLLECTION_TIMEOUT_DESC":"Timeout interval in seconds of each collection operation. The default value is 10.","SELECT_AUTHENTICATION_METHOD":"選擇認證方式","SELECT_AUTHENTICATION_METHOD_DESC":"Select the authentication method used during metric collection.","NO_AUTHENTICATION_TCAP":"No Authentication","NO_AUTHENTICATION_TIP":"Authentication is not used during metric collection.","CREATE_A_NEW_SECRET":"建創新保密字典","REFRESH_SECRETS":"刷新保密字典。","CERTIFICATE_AUTHORITY":"Certificate Authority","SERVER_NAME":"Server Name","TLS_SETTINGS_TCAP":"TLS Settings","BEARER_TOKEN_TCAP":"Bearer Token","BASIC_AUTHENTICATION_TCAP":"Basic Authentication","EXTERNAL_IP_ADDRESS":"外部 IP 地址","MONITORING_EXPORTER":"監控導出器","MONITORING_EXPORTER_VALUE":"Monitoring exporter: {value}","PORT_PL":"通訊埠","SERVICE_NODE_PORT_DESC":"如果您目前的網路與集群節點在同一網路内,那麼您可以透通<集群 IP 地址>:進行訪問,或者通過<節點 IP 地址>:進行訪問。","IMAGE_BUILDING_FAILED":"Image building failed","IMAGE_BUILDING_SUCCESSFUL":"Image building successful","BUILDING_IMAGE":"Building image","SERVICE_MONITORING_EXPORTER":"Service Monitoring Exporter","EXPORTER_SERVICE_PORTS":"Exporter Service Ports","SCRAPE_INTERVAL_MIN":"Scrape Interval (Min)","SERVICE_TYPES_Q":"服務的類型","SERVICE_TYPES_A":"服務分為無狀態服務 (Virtual Service + Depolyment) 及有狀態服務 (Headless Service +Statefulset), 無狀態服務中多個副本可以共享一個儲存卷、有狀態服務需要擁有自己獨立的儲存卷","SCENARIOS_FOR_SERVICES_Q":"無狀態服務和有狀態服務的使用場景?","SCENARIOS_FOR_SERVICES_A":"無狀態服務適用於不需要數據持久化的場景,並且多個實例對統一請求的響應式相同的場景(例如 Nginx、Tomcat 等);有狀態服務適用於需要數據儲存功能的服務、或者指多線程類型的服務,列隊等 (mysql 資料庫、kafka、zookeeper 等)。","SERVICE_TYPE":"服務類型","SERVICE_LIST":"列表","SERVICE_TYPE_STATEFULSERVICE":"有狀態服務","SERVICE_TYPE_STATELESSSERVICE":"無狀態服務","SERVICE_TYPE_EXTERNALSERVICE":"外部服務","HEADLESS":"Headless","EXTERNALNAME":"ExternalName","CREATE_SERVICE_DESC":"Select a Service creation method.","SELECT_SERVICE_TYPE_DESC":"Create a stateless or stateful Service, or map a Service to an external Service.","SERVICE_FROM_CODE":"通過代碼構建新的服務","SERVICE_FROM_ARTIFACT":"通過成品構建新的服務","SERVICE_FROM_CODE_DESC":"您可以將已有的代碼通過 Source to Image 的方式構建成鏡像並部署","SERVICE_FROM_ARTIFACT_DESC":"您可以將已有成品構建成新的鏡像並完成部署","CUSTOMIZE_SERVICE":"Customize Service","CUSTOMIZE_SERVICE_DESC":"您可以通過指定工作負載或者編輯配置 (Yaml) 來創建服務","PORT_INPUT_DESC":"The port name already exists. Please enter another name.","PORT_NAME_DESC":"The port name can contain only lowercase letters, numbers, and hyphens (-) and must begin and end with a lowercase letter or number. The maximum length is 63 characters.","CREATE_EXTERNAL_SERVICE_DESC":"通過返回 CNAME 和它的值,可以將服務映射到 externalName 字段的内容","CREATE_EXTERNAL_SERVICE":"Create External Service","EXTERNAL_SERVICE_ADDRESS_EMPTY_DESC":"請輸入 ExternalName。","EXTERNAL_SERVICE_ADDRESS":"External Service Address","EXTERNAL_SERVICE_ADDRESS_DESC":"Enter the domain name of an external Service.","JAVA":"Java","NODEJS":"Node.js","PYTHON":"Python","LANGUAGE_TYPE_VALUE":"語言類型:{value}","CONTAINER_SETTINGS":"容器設置","ARTIFACT_TYPE_VALUE":"Artifact Type: {value}","BINARY":"Binary","SPECIFY_WORKLOAD_TO_CREATE_SERVICE":"Specify Workload to Create Service","EDIT_YAML_TO_CREATE_SERVICE":"Edit YAML to Create Service","SPECIFY_WORKLOAD_DESC":"通過已有的容器組來創建服務","NO_RELATED_RESOURCE_FOUND":"沒有關聯的資源","NO_SERVICE_RELATED_RESOURCE_DESC":"目前服務下沒有關聯的資源","DELETE_SERVICE_DESC":"You are about to delete the service(s) {resource}. Please confirm whether to delete the associated resource?","DELETE_SERVICE_DESC_PL":"您即將刪除服務 {resource},請您進行確認是否刪除關聯資源?","DELETE_SERVICE_DESC_SI":"You are about to delete the service {resource}.
    Do you want to also delete the following resource related to the service?","DELETE_SERVICE":"Delete Service","DELETE_MULTIPLE_SERVICES":"Delete Multiple Services","SERVICE_TOPOLOGY":"Service Topology","AUTO_REFRESH":"自动","POD_COUNT_VALUE":"Pods: {value}","SELECTOR":"Selector","RECREATE":"重新部署","RECREATE_SUCCESS_DESC":"重新部署成功","STATEFULSETS_LOW":"有狀態副本集","STATEFULSETS_PL":"有狀態副本集","PARTITION_ORDINAL_EMPTY":"Please set a ordinal for dividing Pod replicas.","CONFIGMAP_PL":"ConfigMaps","CONFIGMAPS":"ConfigMaps","CONFIGMAP_LOW":"ConfigMap","SECRET_LOW":"保密字典","SERVICE_ACCOUNT_PROJECT_ROLE_DESC":"Select the role of the service account in the current project.","SERVICE_ACCOUNT":"服務帳戶","SECRET_VALUE":"保密字典:{value}","SERVICEACCOUNT_KUBECONFIG_DESC":"Download the kubeconfig.yaml file to provide other apps with an account that can access the current project. If the apps to use the kubeconfig.yaml file are deployed outside the current cluster, you need to change the value of clusters:cluster:server to the Kubernetes API server address exposed to the outside. Learn More","SERVICE_ACCOUNT_PL":"服務帳戶","SERVICE_ACCOUNT_DESC":"服務帳戶(Service Account)為 Pod 中運行的進程提供了壹個標識,用於訪問 API Server。","SERVICE_ACCOUNT_EMPTY_DESC":"Please create a service account.","INVALID_YAML_FILE_FORMAT":"YAML 文件格式錯誤。","PROJECT_ROLE_SI":"項目角色","SELECT_PROJECT_ROLE_DESC":"選擇一個項目角色以指定權限。","CHANGE_ROLE":"修改角色","SERVICE_ACCOUNT_LOW":"service account","GRAYSCALE_RELEASE":"灰度發佈","BLUE_GREEN_DEPLOYMENT":"藍綠部署","CANARY_RELEASE":"金絲雀發佈","TRAFFIC_MIRRORING":"流量鏡像","BLUE_GREEN_DEPLOYMENT_DESC":"藍綠部署在保留舊版本的同時部署新版本,確保不停機。兩個版本中總有一個版本處於在線狀態接收所有流量,另一個版本則保持待機,如果有問題,可以快速回滾至舊版本。","CANARY_RELEASE_DESC":"金絲雀發佈將一部分實際流量引入一個新版本進行測試,測試新版本的性能和表現,在保證系統整體穩定運行的前提下,盡早發現新版本在實際環境上的問題。","TRAFFIC_MIRRORING_DESC":"流量鏡像用來更為真實地測試新版本,提前發現問題,同時不對生產環境產生影響,從而,提高版本發佈的安全性可靠性。","CREATE_BLUE_GREEN_DEPLOYMENT_TASK":"Create Blue-Green Deployment Task","DESELECT":"取消選擇","SELECT":"選擇","SELECT_GRAY_COMPONENT_TIP":"請選擇一個灰度組件。","REPLICA":"Replica","ADD_REPLICA":"添加副本","REPLICA_PL":"副本數量","GRAYSCALE_REPLICAS_DESC":"指定副本數量","SELECT_VERSION":"流量規則","BLUE_GREEN_STRATEGY_DESC":"兩個版本。","TAKE_OFFLINE":"下線此版本","TAKE_OFFLINE_SUCCESS":"下線成功","TAKE_OVER":"Take Over","GRAYSCALE_VERSION":"版本:{version}","CREATE_CANARY_RELEASE_TASK":"Create Canary Release Task","UNFINISHED_GRAY_TASK":"Grayscale release in progress","NO_WORKLOAD_FOUND_TIP":"No workload found","NO_SERVICE_MESH_TIP":"未開啟應用治理的應用無法使用灰度發佈","GRAY_APP_NAME":"應用:{name}","UNSUPPORTED_WORKLOAD_TYPE":"不支持該工作負載類型","VERSION_EXISTS":"The version code already exists. Please enter another version code.","NEW_VERSION_NUMBER_EXIST_DESC":"The workload {name} already exists. Please enter another version code.","INIT_CONTAINER":"Init 容器","INIT_CONTAINER_VALUE":"Init Container: {value}","CONTAINER_VALUE":"Container: {value}","GRAYSCALE_IMAGE":"鏡像:{image}","NEW_VERSION_NUMBER":"New Version Number","NEW_VERSION_NUMBER_EMPTY_DESC":"請輸入灰度版本號。","NEW_VERSION_SETTINGS":"New Version Settings","NEW_VERSION_NUMBER_DESC":"只能包含小寫字母及數字,長度在 16 個字元内","NEW_VERSION_NUMBER_INVALID_DESC":"Invalid new version number. The new version number can contain only lowercase letters and numbers. The maximum length is 16 characters.","KEY_EQ_VALUE":"Key=Value","HEADER":"自定義 Header","CLIENT_OS":"流量來自於以下操作系統","COOKIE":"Cookie","SPECIFY_REQUEST_PARAMETERS_DESC":"根據請求内容配置規則,只有請求内容中滿足特定條件的流量會切分到灰度版本上。該策略只對直接訪問入口服務有效。","POLICY_REQUEST_CONTENT_TIP":"如果端口協定非 HTTP、HTTP2 或 gRPC,則按請求内容下發不可用。","SPECIFY_REQUEST_PARAMETERS":"按請求内容下發","REQUEST_PARAMETERS":"灰度版本訪問規則","EXACT_MATCH":"完全匹配","PREFIX_MATCH":"前綴匹配","REGEX_MATCH":"正則匹配","CANARY_BY_TRAFFIC_DESC":"根據流量比例,對組件 {component} 的 {ratio}% 的請求流量會轉發到灰度版本 {newVersion}。","SPECIFY_TRAFFIC_DISTRIBUTION":"按流量比例下發","TRAFFIC":"Traffic","TRAFFIC_DISTRIBUTION":"流量比例","CREATE_TRAFFIC_MIRRORING_TASK":"Create Traffic Mirroring Task","PREREQUEST_FOR_USE_GRAYRELEASE_Q":"使用灰度發佈的前提條件?","PREREQUEST_FOR_USE_GRAYRELEASE_A":"使用灰度發佈功能前,您需要創建自定義應用並且開啟應用治理功能。","RELEASE_TASKS":"Release Tasks","TCP_INBOUND_TRAFFIC":"TCP 入站流量","TCP_OUTBOUND_TRAFFIC":"TCP 出站流量","NO_DATA_SCAP":"No data","REPLICA_COUNT_LOW":"副本","MIRROR_POLICY_DESC":"流量鏡像將生產環境的流量復製到灰度版本中,在新版本上線到真實環境之前使用實時用戶流量對它進行測試。
    因此,流量鏡像可以降低直接在生產環境進行變更所帶來的風險。","BLUE_GREEN_DEPLOYMENT_LOW":"blue-green deployment","BLUE_GREEN_TRAFFIC_DISTRI_DESC":"The new version or old version receives all traffic.","TRAFFIC_LOW":"流量","VERSION_TRAFFIC_PERCENT":"{version} traffic {percent}%","OFFLINE":"Offline","OFFLINE_TIP":"No service traffic is sent to this version. You can take the version online to make it take over all traffic.","CANARY_RELEASE_LOW":"canary release","ADJUST_TRAFFIC_DISTRIBUTION_DESC":"Are you sure you want to send {ratioNew}% of traffic to the new version {newVersion} and {ratioOld}% to the old version {oldVersion}?","ALLOCATE_TRAFFIC_DESC":"將所有流量按比例分配給灰度組件。","COOKIE_EXACT_MATCH":"Cookie (exact match)","COOKIE_REGEX_MATCH":"Cookie (regex match)","HEADER_EXACT_MATCH":"Header (exact match)","HEADER_REGEX_MATCH":"Header (regex match)","URL_PREFIX_MATCH":"URL (prefix match)","URL_EXACT_MATCH":"URL (regex match)","OS":"OS","SERVICE_VERSION_RECEIVE_ALL_TRAFFIC":"The version {version} has taken over all traffic.","RESTORE":"恢復","SUCCESSFUL_REQUEST_RATE":"請求成功率","TRAFFIC_IN_LAST_FIVE_MINUTES":"最近五分鐘流量","DELETE_GRAYSCALE_RELEASE_TASK_DESC":"Please select a version to take over all traffic before deleting the grayscale release task.","GRAY_COMPONENT_DESC":"The grayscale release components used to serve the traffic.","TRAFFIC_MIRRORING_LOW":"traffic mirroring","MIRRORED_TRAFFIC":"鏡像流量","MIRRORED_TRAFFIC_TIP":"Traffic mirroring does not actually expose the new version.","RELEASE_MODE_PL":"灰度策略","RELEASE_MODE":"Release mode","NEW_VERSION_TAKEOVER_DESC":"The new version {newVersion} is receiving all traffic. If you delete the current grayscale release job, the old version {oldVersion} will be also be deleted.","OLD_VERSION_TAKEOVER_DESC":"The old version {oldVersion} is receiving all traffic. If you delete the current grayscale release job, the new version {newVersion} will be also be deleted.","GRAYSCALE_REPLICA_SI":"副本數量:{count}","GRAYSCALE_REPLICA_PL":"副本數量:{count}","TRAFFIC_MIRRORING_TRAFFIC_DISTRI_DESC":"A copy of traffic is sent to the new version for testing.","EDIT_GRAYSCALE_RELEASE_TASK":"Edit Grayscale Release Task","ADJUST_TRAFFIC_DISTRIBUTION":"Adjust Traffic Distribution","COPIED_SUCCESSFUL":"複製成功","BUILDER_IMAGE":"Builder Image","PULL_POLICY":"Pull Policy","REMOTE_TRIGGER":"Remote Trigger","S2I_UPDATE_WORKLOAD":"Update workload after image building is successful","S2I_UPDATA_WORKLOAD_DESC":"After the image is rebuilt successfully, workloads that use the image will be updated.","IMAGE_BUILDER":"構建鏡像","IMAGE_BUILDER_LOW":"image builder","JOB_RECORDS":"任務紀錄","LAST_BUILD_ENVIRONMENT":"最後一次構建環境","BUILDER_IMAGE_SCAP":"Builder image","FILE_SIZE":"檔案大小:{size}","DOWNLOAD_ARTIFACT":"下載成品","ARTIFACT_FILE":"上傳成品","LOG_MODULE_NOT_INSTALLED":"紀錄模組未安裝","LOADING_DOTS":"正在載入","IMAGE_NAME_SCAP":"Image name","IMAGE_SIZE_SCAP":"鏡像大小","IMAGE_NAME_BUILDING":"Image: {name}/Building","IMAGE_NAME_FAILED":"Image: {name}/Failed","IMAGE_NAME_SUCCESSFUL":"Image: {name}/Successful","LAST_MESSAGE_SCAP":"Last message","START_TIME_SCAP":"Start time","SOURCE_URL":"Source URL","NEW_TAG":"New Tag","NEW_TAG_DESC":"Enter the tag of the new image","IMAGE_ARTIFACTS":"鏡像成品","RELEASE_TIME_SCAP":"Release time","PULL_COMMAND_SCAP":"Pull command","IMAGE_BUILDER_PL":"構建鏡像","IMAGE_BUILDER_DESC":"鏡像構建器(Image Builder)是將代碼或者成品製作成容器鏡像的工具。您可以通過簡單的設置將成品或代碼直接製作成容器鏡像。","IMAGE_BUILDER_EMPTY_DESC":"請創建一個鏡像構建器。","NOT_RUNNING_YET":"未運行","BUILDING":"Building","S2I":"Source-to-image","B2I":"Artifact-to-image","BUILD_IMAGE_FOR_SERVICE":"為 {service} 服務構建鏡像。","BUILD_MODE":"選擇語言","CONTAINERD_RUNTIME_NOT_SUPPORTED":"The containerd runtime does not support this feature.","S2I_DESC":"選擇您的代碼開發語言。","IMAGE_FROM_S2I":"通過代碼構建新的容器鏡像","IMAGE_FROM_B2I":"通過成品構建新的鏡像","B2I_DESC":"選擇您成品的文件類型。","EMPTY_IMAGE_TYPE_DESC":"Please select a language or artifact type.","CODE_REPOSITORY_URL":"代碼地址","CODE_REPOSITORY_BRANCH":"分支","CODE_REPOSITORY_KEY":"代碼倉庫密鑰","CODE_REPOSITORY_URL_DESC":"源代碼倉庫地址(目前支持 git)並且可以指定代碼分支及在源代碼終端的相對路徑","CODE_REPOSITORY_KEY_DESC":"如果是私有代碼倉庫,請選擇代碼倉庫密鑰","IMAGE_NAME":"鏡像名稱","IMAGE_TAG":"Image Tag","TARGET_IMAGE_REPOSITORY":"目標鏡像倉庫","S2I_IMAGE_NAME_DESC":"鏡像名稱及 Tag,預設為代碼倉庫的項目名稱","S2I_TARGET_IMAGE_REPOSITORY_DESC":"選擇一個有鏡像倉庫推送權限的保密字典,如果沒有可以新建鏡像倉庫保密字典。","TRIGGER_TOKEN":"觸發令牌","INVALID_TRIGGER_TOKEN_DESC":"只能包含大小寫字母、數字","TRIGGER_TOKEN_DESC":"Set a token used to authenticate a client against KubeSphere when the client attempts to trigger image building on KubeSphere. The token can contain only uppercase letters, lowercase letters, and numbers.","CODE_RELATIVE_PATH":"代碼相對路徑(可選):","CODE_RELATIVE_PATH_DESC":"可以指定代碼編譯的相對路徑,預設為 /","S2I_ENVIRONMENT_DESC":"應用程式開發人員可以使用環境變量來配置此鏡像的運行時行為。","UPLOAD_ARTIFACT_FILE":"點擊成品檔案進行上傳","UPLOAD_PERCENT":"已上傳:{percent}%","UPLOAD_FULLY":"已上傳:100%","UPLOAD_FAILED":"Upload failed.","ARTIFACT_FILE_EMPTY_DESC":"檔案還未上傳","B2I_DEFAULT_DESC":"請上傳成品檔案以構建容器鏡像。","JAR_DESC":"JAR 檔案是一種軟體包檔案格式,通常用於聚合大量的 Java 類檔案、相關的元數據和資源(文本、圖片等)檔案到一個檔案","WAR_DESC":"WAR 檔案是用於分發 Jar 檔案,JavaServer Pages,Java Servlet,Java類,XML 檔案,標記庫,静態網頁(HTML 和相關檔案)以及共同構成 Web 應用程式的其他資源的集合的檔案。","BUILD_ENVIRONMENT":"構建環境","CODE_REPOSITORY_KEY_NOT_REQUIRED":"目前代碼倉庫不需要密鑰","FILE_SIZE_VALUE":"檔案大小:{value}","FILE_UPLOADED_TIP":"上傳檔案成功。","WRONG_FILE_EXTENSION_NAME":"選擇的檔案類型不符合,請選擇 {type} 類型。","IMAGE_NAME_EMPTY_DESC":"Please enter an image name.","IMAGE_TAG_EMPTY_DESC":"Please enter an image tag.","TARGET_IMAGE_REPOSITORY_EMPTY_DESC":"Please set a target image registry.","REQUESTS_FOR_PUSH_AN_ALARM_Q":"How do I receive alerts if an alerting policy is triggered?","REQUESTS_FOR_PUSH_AN_ALARM_A":"The platform administrator needs to select a notification method and configure the server corresponding to the method.","HOW_TO_SUPRESS_AN_ALARM_Q":"How do I suppress alerts?","HOW_TO_SUPRESS_AN_ALARM_A":"You can set alerting policies at different levels. Each level corresponds to an alerting interval.","SELECT_WORKLOAD_TIP":"Please select at least one workload.","KUBE_NO_AVAILABLE_DATA":"暫無數據","EDIT_QUOTAS":"編輯配額","QUOTA":"Quota","PROJECT_QUOTAS_NOT_SET":"項目配額未設置","PROJECT_QUOTAS_DESC":"Project quotas specify the number of available CPU and memory resources and the maximum number of application resources such as Pods, Deployments, and Services in the project.","DEFAULT_CONTAINER_QUOTAS_NOT_SET":"容器資源預設請求未設置","DEFAULT_CONTAINER_QUOTAS_DESC":"Default container quotas specify the default CPU request, CPU limit, memory request, and memory limit of containers created in the project.","APPLICATION_RESOURCE_COUNT":"應用資源監控","SELECT_RESOURCE_TIP":"Select a resource or enter a resource name","NUMBER_OF_PODS":"Number of pods","NUMBER_OF_DEPLOYMENTS":"Number of deployments","NUMBER_OF_STATEFULSETS":"Number of statefulsets","NUMBER_OF_DAEMONSETS":"Number of daemonsets","NUMBER_OF_JOBS":"Number of jobs","NUMBER_OF_CRONJOBS":"Number of cronjobs","NUMBER_OF_VOLUMES":"Number of persistent volume claims","NUMBER_OF_SERVICES":"Number of services","NUMBER_OF_ROUTES":"Number of routes","NUMBER_OF_SECRETS":"Number of secrets","NUMBER_OF_CONFIGMAPS":"Number of configmaps","INSTALLED_APPS":"Installed Apps","RESOURCE_STATUS":"資源狀態","RESOURCE_WARNING_TIPS":"有 {warnNum} 個 {tipName} 狀態異常","PHYSICAL_RESOURCE_PL":"Physical Resources","CPU_USAGE_TIME":"CPU 使用量({time})","MEMORY_USAGE_TIME":"記憶體使用量({time})","TIPS":"Tips","HOW_TO_INVITE_USERS":"邀請其他成員到目前項目中?","HOW_TO_SET_PROJECT_GATEWAY":"如何設置項目網關?","TOP_5_FOR_RSC_USAGE":"資源用量 Top 5","TOP_5_FOR_RESOURCE_USAGE":"資源用量 Top 5","SORT_BY_WORKLOAD_CPU_USAGE":"按 CPU 使用量排行","SORT_BY_WORKLOAD_MEMORY_USAGE_WO_CACHE":"按記憶體使用量排行","SORT_BY_WORKLOAD_NET_BYTES_TRANSMITTED":"按網路流出速率排行","SORT_BY_WORKLOAD_NET_BYTES_RECEIVED":"按網路流入速率排行","PROJECT_SETTINGS":"項目設置","HOW_TO_USE_QUOTA_Q":"如何使用資源配額?","HOW_TO_USE_QUOTA_A":"Resource quotas are a mechanism used to limit the resource usage. You can edit project resource quotas and default container quotas by clicking Edit Project.","WHAT_ARE_DEFAULT_CONTAINER_QUOTAS_Q":"What are default container quotas?","WHAT_ARE_DEFAULT_CONTAINER_QUOTAS_A":"Default container quotas specify the default CPU request, CPU limit, memory request, and memory limit of containers created in the project.","PROJECT_BASIC_INFO_DESC":"Basic information provides an overview of the project. You can view the project information and resource quotas.","EDIT_PROJECT_QUOTA":"Edit Project Quota","PROJECT_REMAINING_QUOTAS":"項目剩餘配額","WORKSPACE_REMAINING_QUOTAS":"企業空間剩餘配額","GPU_TYPE_SCAP":"GPU type","GPU_LIMIT_SCAP":"GPU limit","REQUEST_EXCEED_WORKSPACE":"Resource requests and limits cannot exceed workspace resource limits.","REQUEST_EXCEED_LIMIT":"資源預留不能超過資源限制。","REQUEST_EXCEED_AVAILABLE_QUOTA":"Insufficient resources.","DELETE_PROJECT_TIP":"Enter the project name {resource} to confirm that you understand the risks of this operation.","MANAGE":"管理","PROJECT_INFO":"項目資訊","EDIT_PROJECT_QUOTAS":"Edit Project Quotas","PROJECT_ROLE_SCAP":"Project role","PROJECT_ROLE_SCAP_PL":"Project roles","PROJECT_MEMBER_SCAP":"Project member","PROJECT_MEMBER_SCAP_PL":"Project members","DEFAULT_CONTAINER_QUOTA_PL":"Default Container Quotas","EDIT_DEFAULT_CONTAINER_QUOTAS":"Edit Default Container Quotas","LIMITS_CPU":"CPU 限額","LIMITS_MEMORY":"記憶體限額","REQUESTS_CPU":"CPU 預留","REQUESTS_MEMORY":"CPU 限額","PROJECT_QUOTA_PL":"Project Quotas","RESOURCE_TYPE_SCAP":"資源類型","JOBS":"Jobs","VOLUMES":"Volumes","SERVICES":"服務","ROUTES":"應用路由","SECRETS":"保密字典","PROJECT_GATEWAY_DESC":"對集群和項目中的外網訪問網關以及服務治理等配置進行設置和管理","PROJECT_GATEWAY":"Project Gateway","PROJECT_GATEWAY_EMPTY_DESC":"Please create a project gateway.","ENABLE_GATEWAY_DESC":"在創建應用路由之前,需要先啟用外網訪問入口,即網關。這一步是創建對應的應用路由控制器,用來負責將請求轉發到對應的後端服務。","LOAD_BALANCER_PROVIDER":"LoadBalancer提供商","GATEWAY_UPDATING_TIP":"Updating the gateway. Please try again later.","CLUSTER_GATEWAY_GUIDE_DESC":"開啟集群網關後,無法再設置項目網關。若已存在項目網關,刪除後無法重新設置。 ","LOG_COLLECTION":"Log Collection","DISK_LOG_COLLECTION_DESC":"The Log Collection function allows the system to collect container logs saved on volumes. To use this function, you need to mount a volume in read and write mode to a container and set the container to export logs to the volume.","COLLECT_LOGS_ON_VOLUMES_Q":"How do I collect logs on volumes?","COLLECT_LOGS_ON_VOLUMES_A":"To collect logs on volumes, you need to mount a volume in read and write mode to a container and set the container to export logs to the volume.","COLLECT_LOGS_ON_VOLUMES":"落盤紀錄收集","DISABLE_LOG_COLLECTION":"Disable Log Collection","DISABLE_LOG_COLLECTION_TIP":"Are you sure you want to disable log collection? After it is disabled, services that have enabled log collection will continue to collect logs saved in the volumes before the Pod replicas are restarted. If you need to collect the logs again, please enable log collection and restart the Pod replicas.","LOG_COLLECTION_ENABLED_DESC":"After this function is enabled or disabled, you need to restart the Pod replicas to make the change take effect.","DISABLED":"已禁用","ENABLED":"已啟用","NETWORK_ISOLATION_DESC":"By configuring network isolation, users can control traffic between pods within the same workspace and traffic from outside to implement application isolation and enhance application security.","NETWORK_ISOLATION_Q":"如何更好地使用網路隔離?","NETWORK_ISOLATION_Q1":"What are the requirements on the CNI plugin for implementing network isolation?","NETWORK_ISOLATION":"網路隔離","ENABLE":"Enable","PROJECT_NETWORK_ISOLATION":"項目網路隔離","DISABLED_PROJECT_NETWORK_ISOLATION":"禁用項目網路隔離","NETWORK_POLICY_EMP_TITLE":"網路隔離未開啟","NETWORK_POLICY_EMP_DESC":"After the project network access is enabled, other projects will be unable to access the project. But you can allow projects, Services, and external IP addresses to access this project based on your needs.","INTERNAL_ALLOWLIST":"内部白名單","INTERNAL_ALLOWLIST_TIP":"Add projects and services in the workspace to the allowlist.","INTERNAL_EGRESS_DESC":"Allows access to resources that match any of the following network policies.","INTERNAL_INGRESS_DESC":"Allows access from resources that match any of the following network policies.","INTERNAL_ALLOWLIST_DESC":"Allow pods in the current project to communicate with pods in other projects of the current workspace.","EMPTY_RESOURCE_DESC":"Please select at least one project or Service.","EXTERNAL_ALLOWLIST":"External Allowlist","EXTERNAL_ALLOWLIST_TIP":"Add network segments and ports outside the workspace to the allowlist.","EXTERNAL_ALLOWLIST_DESC":"Allow pods in the current project to communicate with specific network segments and ports outside the workspace.","NETWORK_SEGMENT_EXAMPLE":"Example: 10.0.0.0","PORT_EXAMPLE":"Example: 80","EXTERNAL_EGRESS_DESC":"Pods in the current project are allowed to access the following network segments and ports.","EXTERNAL_INGRESS_DESC":"Pods in the current project are allowed to be accessed by the following network segments and ports.","SELECT_RULE_DIRECTION_TIP":"Please select a traffic direction.","ENTER_VALID_SEGMENT_DESC":"Please enter valid network segment.","ENTER_VALID_PORT_NUMBER_DESC":"Please enter a valid port number.","ADD_ALLOWLIST_ENTRY":"添加白名單","EDIT_ALLOWLIST_ENTRY":"编辑白名單","EXTERNAL_TRAFFIC_DIRECTION_DESC":"Egress indicates the direction from the current project to outside the workspace. Ingress indicates the direction from outside the workspace to the current project.","TRAFFIC_DIRECTION":"流量方向","NETWORK_SEGMENT_DESC":"Set a network segment (CIDR is supported).","EGRESS":"出口","INGRESS":"Ingress","INTERNAL_TRAFFIC_DIRECTION_DESC":"Egress indicates the direction from the current project to other projects. Ingress indicates the direction from other projects to the current project.","ALLOWLIST_ENTRY":"Allowlist Entry","ALLOWLIST_ENTRY_PL":"Allowlist Entry","ALLOWLIST_ENTRY_DETAIL":"Allowlist Entry Detail","ALLOWLIST_ENTRY_LOW":"白名單條目","ADD_NEW_NETWORK_SEGMENT":"Add","ADD_NEW_PORT":"Add Port","ADD_NEW_PORT_RANGE":"Add Port Aange","PORT_RANGE":"Port Range","NETWORK_SEGMENT_QUANTITY":"Network Segment Quantity","PORT_QUANTITY":"Port Quantity","ALLOWLIST_ENTRY_EMPTY_DESC":"创建白名單條目","PROJECT_MEMBER":"Project Member","PROJECT_MEMBER_PL":"項目成員","PROJECT_MEMBER_DESC":"Project members can view or manage project resources. The project administrator can invite members who belong to the workspace to the project and manage project members.","REMOVE":"Remove","INVITE_MEMBER_DESC":"You can invite members who belong to the workspace to the project.","PROJECT_MEMBER_EMPTY_DESC":"Please invite a member of the current workspace to the project.","INVITE_MEMBER_SEARCH_PLACEHOLDER":"輸入用戶名邀請項目成員","ASSIGN_ROLE":"Assign Role","PERMISSION_PL":"權限列表","AUTHORIZED_USER_PL":"授權用戶","PROJECT_ROLE_PL":"項目角色","PROJECT_ROLE_DESC":"項目角色定義了在目前項目下用戶所擁有的權限","ROLE_PROJECT_ADMIN":"Manage all resources in the project.","ROLE_PROJECT_REGULAR":"Manage resources other than users and roles in the project.","ROLE_PROJECT_VIEWER":"項目觀察者,可以查看項目下所有的資源。","ROLE_PROJECT_OPERATOR":"項目維護者,可以管理項目下除用戶和角色之外的資源。","PROJECT_ROLE_EMPTY_DESC":"Please create a project role.","PERMIGROUP_APPLICATION_WORKLOADS":"應用負載","PERMISSION_APPLICATION_WORKLOADS_VIEW":"Application Workload Viewing","PERMISSION_APPLICATION_WORKLOADS_VIEW_DESC":"View resources such as applications, services, workloads, jobs, grayscale release jobs, and image builders in the project.","PERMISSION_APPLICATION_WORKLOADS_MANAGEMENT":"Application Workload Management","PERMISSION_APPLICATION_WORKLOADS_MANAGEMENT_DESC":"Create, edit, and delete resources such as applications, services, workloads, jobs, grayscale release jobs, and image builders in the project.","PERMIGROUP_STORAGE_MANAGEMENT":"儲存","PERMISSION_VOLUME_SNAPSHOTS_VIEW":"Volume Snapshot Viewing","PERMISSION_VOLUME_SNAPSHOTS_VIEW_DESC":"View volume snapshots in the project.","PERMISSION_VOLUME_SNAPSHOTS_MANAGEMENT":"Volume Snapshot Management","PERMISSION_VOLUME_SNAPSHOTS_MANAGEMENT_DESC":"Create, edit, and delete volume snapshots in the project.","PERMISSION_VOLUMES_VIEW":"Persistent Volume Claim Viewing","PERMISSION_VOLUMES_VIEW_DESC":"View persistent volume claims in the project.","PERMISSION_VOLUMES_MANAGEMENT":"Persistent Volume Claim Management","PERMISSION_VOLUMES_MANAGEMENT_DESC":"Create, edit, and delete persistent volume claims in the project.","PERMIGROUP_CONFIGURATION_CENTER":"配置","PERMISSION_CONFIGMAPS_VIEW":"Configmap Viewing","PERMISSION_CONFIGMAPS_VIEW_DESC":"View configmaps in the project.","PERMISSION_CONFIGMAPS_MANAGEMENT":"Configmap Management","PERMISSION_CONFIGMAPS_MANAGEMENT_DESC":"Create, edit, and delete configmaps in the project.","PERMISSION_SECRETS_VIEW":"Secret Viewing","PERMISSION_SECRETS_VIEW_DESC":"View secrets in the project.","PERMISSION_SECRETS_MANAGEMENT":"Secret Management","PERMISSION_SECRETS_MANAGEMENT_DESC":"Create, edit, and delete secrets in the project.","PERMISSION_SERVICEACCOUNT_VIEW":"Service Account Viewing","PERMISSION_SERVICEACCOUNT_VIEW_DESC":"View service accounts in the project.","PERMISSION_SERVICEACCOUNT_MANAGEMENT":"Service Account Management","PERMISSION_SERVICEACCOUNT_MANAGEMENT_DESC":"Create, edit, and delete service accounts in the project.","PERMIGROUP_MONITORING_ALERTING":"監控告警","PERMISSION_ALERTING_MESSAGES_VIEW":"Alert Viewing","PERMISSION_ALERTING_MESSAGES_VIEW_DESC":"View alerts in the project.","PERMISSION_ALERTING_MESSAGES_MANAGEMENT":"Alert Management","PERMISSION_ALERTING_MESSAGES_MANAGEMENT_DESC":"Comment on and delete alerts in the project.","PERMISSION_ALERTING_POLICIES_VIEW":"Rule Group Viewing","PERMISSION_ALERTING_POLICIES_VIEW_DESC":"View rule groups in the project.","PERMISSION_ALERTING_POLICIES_MANAGEMENT":"Rule Group Management","PERMISSION_ALERTING_POLICIES_MANAGEMENT_DESC":"Create, edit, and delete rule groups in the project.","PERMISSION_CUSTOM_MONITORING_VIEW":"Custom Monitoring Viewing","PERMISSION_CUSTOM_MONITORING_VIEW_DESC":"View custom monitoring dashboards in the project.","PERMISSION_CUSTOM_MONITORING_MANAGEMENT":"Custom Monitoring Management","PERMISSION_CUSTOM_MONITORING_MANAGEMENT_DESC":"Create, edit, and delete custom monitoring dashboards in the project.","PERMISSION_PROJECT_MEMBERS_VIEW":"成員查看","PERMISSION_PROJECT_MEMBERS_VIEW_DESC":"View project members.","PERMISSION_PROJECT_MEMBERS_MANAGEMENT":"成員管理","PERMISSION_PROJECT_MEMBERS_MANAGEMENT_DESC":"Invite, edit, and remove project members.","PERMISSION_PROJECT_ROLES_VIEW":"角色查看","PERMISSION_PROJECT_ROLES_VIEW_DESC":"View project roles.","PERMISSION_PROJECT_ROLES_MANAGEMENT":"角色管理","PERMISSION_PROJECT_ROLES_MANAGEMENT_DESC":"Create, edit, and delete project roles except preset roles.","PERMIGROUP_PROJECT_SETTINGS":"項目設置","PERMISSION_PROJECT_SETTINGS":"Project Settings Management","PERMISSION_PROJECT_SETTINGS_DESC":"Manage project settings including project basic information, external access settings, network policies, resource quotas, and log collection settings.","DELETE_ROLE":"Delete Role","DELETE_ROLE_TIP":"Are you sure you want to delete the role {resource}?","DELETE_ROLE_USER_TIP_PL":"The role is authorized to {count} users. Please delete the users or change the roles of the user first.","DELETE_ROLE_USER_TIP":"The role is authorized to {count} user. Please delete the user or change the role of the user first.","DELETE_ROLE_DEPARTMENT_TIP_PL":"The role is authorized to {count} departments. Please delete the departments or change the roles of the departments first.","DELETE_ROLE_DEPARTMENT_TIP":"The role is authorized to {count} department. Please delete the department or change the role of the department first.","CLONE_VOLUME":"儲存卷克隆","CLONE":"Clone","CREATE_SNAPSHOT":"創建快照","SNAPSHOT_EMPTY_TIP":"請選擇一個快照類型。","EXPAND_VOLUME":"儲存卷擴容","EXPAND":"Expand","PROVISIONER":"供應者","AVAILABLE_CAPACITY":"剩餘儲存容量","POD_IP_ADDRESS_SCAP":"容器組 IP 地址","TOTAL_CAPACITY":"Total capacity","TECHNICAL_SUPPORT":"Technical Support","LEARN_MORE_CONTACT_US":"For more cloud-native technology empowerment services, please Contact Us.","COMMUNITY_SUPPORT":"Community Support","FORUM":"Forum","TICKET_SUPPORT":"Ticket Support","TICKET_SUPPORT_DESC":"Professional cloud-native development team and container service delivery team with more than 10 years of public and private cloud support experience and in-depth understanding of industries, providing comprehensive technical support including installation, troubleshooting, recovery, and other professional services.","CONTACT_US":"Contact Us","KUBESPHERE_ENTERPRISE_CAPTION":"KubeSphere Enterprise","KUBE_SPHERE_ENTERPRISE_DESC":"KubeSphere Enterprise is an enterprise-grade container platform developed by QingCloud based on the open-source KubeSphere platform. Compared with the open-source edition, KubeSphere Enterprise enhances capabilities for enterprise quantitative operations, large-scale cluster O&M, and security hardening, and extends multiple key features such as microservice governance and app management. The KubeSphere Enterprise Extension Marketplace provides enterprise-grade extensions to meet requirements of various business scenarios, with expert solutions and technical support from QingCloud.","KSE_FEATURE_1":"Empowers enterprise digital transformation towards quantitative operations","KSE_FEATURE_2":"Enhances large-scale federated cluster O&M","KSE_FEATURE_3":"Provides full lifecycle security protection","KSE_PLATFORM_VERSION":"Platform Version: {version}","KUBESPHERE_CLOUD_CAPTION":"KubeSphere Cloud","KSC_FEATURE_BACKUP":"KubeSphere Backup","KSC_FEATURE_BACKUP_APP_DESC":"Application-level data protection","KSC_FEATURE_BACKUP_DATA_DESC":"Assured data consistency","KSC_FEATURE_BACKUP_CLOUD_DESC":"Unified management across clouds","KSC_FEATURE_INSPECTION":"KubeSphere Inspection","KSC_FEATURE_INSPECTION_VULN_DESC":"Comprehensive vulnerability scanning","KSC_FEATURE_INSPECTION_SECURITY_DESC":"System security hardening","KSC_FEATURE_INSPECTION_BEST_DESC":"Best practice guidance","KSC_FEATURE_LIGHTWEIGHT":"KubeSphere Lite","KSC_FEATURE_LIGHTWEIGHT_START_DESC":"Cluster setup in seconds","KSC_FEATURE_LIGHTWEIGHT_KS_DESC":"Out-of-the-box KubeSphere cluster","KSC_FEATURE_LIGHTWEIGHT_TEST_DESC":"Ideal for testing and demonstration","START_NOW":"Start Now","START_REAL_TIME_AUDIT_LOG":"Pause real-time audit logs","STOP_REAL_TIME_AUDIT_LOG":"View real-time audit logs","TIME_S":"{num, plural, =1 {1 second} other {# seconds}}","AUDIT_LOG_COUNT":"審計紀錄","RESOURCE_NAME_AND_TYPE":"Resource Type & Name","VERB":"Verb","STATUS_CODE":"Status Code","SUBRESOURCE":"Subresource","TOTAL_AUDITING_TODAY":"A total of {auditing} audit log entries have been collected today.","NO_AUDIT_LOG_TODAY":"No Audit Log Collected Today","AUDIT_LOG_TREND_LAST_TWELVE_HOURS":"Audit log trend in the last 12 hours","START_TIME_VALUE":"Start Time: {value}","NO_DATA_AUTHORIZED":"No Data Authorized","NO_DATA_AUTHORIZED_DESC":"Please contact an administrator to obtain data authorization.","TIME_RANGE_LAST":"Time range: last {value}","TIME_RANGE_RANGE":"Time range: {startTime} – {endTime}","AUDIT_LOGS_12H":"Audit logs in the last 12 hours","AUDIT_LOG_WORKSPACE_TIP":"Enter a workspace name to search for audit logs.","AUDIT_LOG_PROJECT_TIP":"Enter a project name to search for audit logs.","AUDIT_LOG_RESOURCE_NAME_TIP":"Enter a resource name to search for audit logs.","AUDIT_LOG_RESOURCE_TYPE_TIP":"Enter a resource type to search for audit logs.","AUDIT_LOG_VERB_TIP":"Enter a verb to search for audit logs.","AUDIT_LOG_STATUS_CODE_TIP":"Enter a status code to search for audit logs.","AUDIT_LOG_OPERATOR_TIP":"Enter an operator to search for audit logs.","AUDIT_LOG_SOURCE_IP_ADDRESS_TIP":"Enter a source IP address to search for audit logs.","SEARCH_BY_VERB":"Search by Verb","SEARCH_BY_STATUS_CODE":"Search by Status Code","SEARCH_BY_OPERATOR":"Search by Operator","SEARCH_BY_SOURCE_IP_ADDRESS":"Search by Source IP Address","ENABLE_AUDIT_LOG_COLLECTION_DESC":"You need to enable audit log collection if it is disabled.","KEYWORD":"Keyword","EXACT_QUERY":"Exact Query","FUZZY_QUERY":"Fuzzy Query","TIME_TOPOLOGY":"Time Topology ","SEARCH_RESULTS":"Search Results","DISPLAY":"Display","HIDE":"Hide","STOP_REAL_TIME_CONTAINER_LOG":"Pause real-time container logs","START_REAL_TIME_CONTAINER_LOG":"View real-time container logs","REFRESH_RATE_COLON":"Refresh Rate: ","CONTAINER_LOG_COUNT":"容器紀錄","LOG":"Log","CONTAINER_LOG_SOURCE":"Container Log Source","TOTAL_LOGS_TODAY":"A total of {logs} log entries from {containers} containers have been collected today.","WORKLOAD":"Workload","TIME_RANGE_SCAP":"Time range","QUERYING_RULES":"Querying Rules","CONTAINER_LOGS_12H":"Container logs in the last 12 hours","CONTAINER_LOG_KEYWORD_TIP":"Enter a keyword to search for container logs.","CONTAINER_LOG_PROJECT_TIP":"Enter a project name to search for container logs.","CONTAINER_LOG_WORKLOAD_TIP":"Enter a workload name to search for container logs.","CONTAINER_LOG_CONTAINER_TIP":"Enter a container name to search for container logs.","CONTAINER_LOG_POD_TIP":"Enter a pod name to search for container logs.","SEARCH_BY_KEYWORD":"Search by Keyword","SEARCH_BY_PROJECT":"Search by Project","SEARCH_BY_WORKLOAD":"Search by Workload","SEARCH_BY_POD":"Search by Pod","SEARCH_BY_CONTAINER":"Search by Container","TIME_RANGE":"Time Range","DOWNLOAD":"Download","KUBECONFIG_TIP":"\n

    Configuration Method

    \n

    Configure the access information about the current cluster by using kubeconfig file.

    \n ","HIDE_HELP_INFORMATION":"Hide Help Information","KUBECTL_TIP":"\n

    Command Tips

    \n

    You can refer to the following kubestl commands.

    \n

    Customized Output

    \n
      \n
    • View more information about a pod
    • \n
    \n

    kubectl get pod <pod-name> -o wide

    \n
      \n
    • View pod details in YAML format
    • \n
    \n

    kubectl get pod <pod-name> -o yaml

    \n

    Operations

    \n

    Create Resources

    \n
      \n
    • Create a service by using a YAML configuration file
    • \n
    \n

    kubectl create -f my-service.yaml

    \n
      \n
    • Create resources by using all YAML, YML, and JSON files in a directory
    • \n
    \n

    kubectl create -f <directory>

    \n

    View Resources

    \n
      \n
    • View all pods
    • \n
    \n

    kubectl get pods

    \n
      \n
    • View all services
    • \n
    \n

    kubectl get services

    \n

    View Resource Details

    \n
      \n
    • View node details
    • \n
    \n

    kubectl describe nodes <node-name>

    \n
      \n
    • View pod details
    • \n
    \n

    kubectl describe pods <pod-name>

    \n ","OPEN_TERMINAL_DESC":"Ensure that the web socket settings on the proxy server is correct.","TOOLBOX":"Toolbox","TOOLBOX_DESC":"Provides cluster analysis and control tools.","DETAIL_NOT_FOUND_DESC":"No related resources were found. Return to {title}","ANALYSIS_TOOLS":"Analysis Tools","VIEW_KUBE_CONFIG":"View or download the kubeconfig file of the current cluster.","CONTAINER_LOG_SEARCH_DESC":"A multi-dimensional container log search tool for resources.","RESOURCE_EVENT_SEARCH_DESC":"A multi-dimensional resource event search tool for resources.","AUDIT_LOG_DESC":"A multi-dimensional audit log search tool for resources.","RESOURCE_CONSUMPTION_STATISTICS":"Resource Consumption Statistics","METERING_AND_BILLING_DESC":"View resource consumption of clusters and workspaces.","CONTAINER_LOG_SEARCH":"Container Log Search","RESOURCE_EVENT_SEARCH":"Resource Event Search","AUDIT_LOG_SEARCH":"Audit Log Search","CONTROL_TOOL":"Control Tool","TOOLBOX_SHIFT_TIPS":" 👻 Press \"shift+left click\" to open kubectl in a new browser window.","THIRD_PARTY_TOOLS":"Third-Party Tools","METERING_NOT_ENABLED_DESC":"This module is not enabled.","NO_METER_DATA":"No resource consumption data is found.","EXPORT_BILL":"Export consumption records in CSV file format.","TOTAL_COST":"Total Cost ({unit})","PRICE_CONFIG_DESC":"The price information has not been configured.","METER_CPU_USAGE":"CPU 使用量","METER_MEMORY_USAGE":"記憶體使用量","METER_VOLUME_USAGE":"Volume Usage","METER_NET_RECEIVED_USAGE":"Inbound Traffic Usage","METER_NET_TRANSMITTED_USAGE":"Outbound Traffic Usage","NET_RECEIVED":"入站流量","NET_TRANSMITTED":"出站流量","COMPOSING_APP":"Composed app","CLUSTER_NODE_SCAP":"Cluster node","POD_SCAP":"容器組","APP_TEMPLATE_SCAP":"App template","COMPOSING_APP_SCAP":"Composed app","DEPLOYMENT_SCAP":"部署","STATEFULSET_SCAP":"有狀態副本集","DAEMONSET_SCAP":"守護進程集","WORKSPACE_SCAP":"企業空間","CLUSTER_SCAP":"集群","PROJECT_SCAP":"項目","SERVICE_SCAP":"服務","HOST_CLUSTER_SCAP":"主集群","MEMBER_CLUSTER_SCAP":"Member cluster","CONSUMPTION_HISTORY":"Consumption History","BILLING_CYCLE":"Billing Cycle","CONSUMER_TRENDS":"Cost Trends","AVERAGE_USAGE":"Average Usage","TOTAL_CONSUMPTION":"Total Consumption","TOTAL_CONSUMPTION_Q":"What is total consumption?","TOTAL_CONSUMPTION_A":"Total consumption is the sum of resource usage per sampling point in the current billing cycle.","TIMERANGE_MORE_30DAY_MSG":"If the interval between the end time and the start time is greater than 30 days, the minimum sampling interval should be 1 day.","MAXIMUM_USAGE":"Maximum Usage","MINIMUM_USAGE":"Minimum Usage","RESOURCE_TYPE":"Resource Type","CURRRENT_RESOURCE_CONSUMPTION":"Current Consumption","METER_RESOURCE_DESC":"Resource consumption in 1 h","ADD_CLUSTER_FOR_WORKSPACE":"Please authorize a cluster to this workspace.","RESOURCE_CONSUMPTION_DESC":"Select a category to view the resource consumption information.","CLUSTER_CONSUMPTION":"Cluster Resource Consumption","CLUSTER_CONSUMPTION_DESC":"View the consumption information of cluster resources.","CLUSTER_RESOURCE_CONSUMPTION_DESC":"Consumption of resources such as CPU, memory, and volumes of clusters","CLUSTER_NODE_CONSUMPTION_DESC":"Consumption of resources such as CPU, memory, and volumes of cluster nodes","CLUSTER_POD_CONSUMPTION_DESC":"Consumption of CPU and memory of pods in nodes","CURRENT_RESOURCE_CONSUMPTION":"Current Resource Consumption","VIEW":"View","CONSUMPTION_SINCE_CREATION":"has consumed the following resources since it is created.","PRICE":"Price","WORKSPACE_CONSUMPTION":"Workspace Resource Consumption","WORKSPACE_CONSUMPTION_DESC":"View the consumption information of workspace resources.","WORKSPACE_RESOURCE_CONSUMPTION_DESC":"Consumption of resources such as CPU, memory, and volumes of workspaces","WORKSPACE_PROJECT_CONSUMPTION_DESC":"Consumption of resources such as CPU, memory, and volumes of projects in workspaces","PROJECT_CONSUMPTION_DESC":"Consumption of CPU and memory of apps, services and pods in projects","STOP_REAL_TIME_RESOURCE_EVENT":"Pause real-time resource events","START_REAL_TIME_RESOURCE_EVENT":"View real-time resource events","RESOURCE_EVENT_COUNT":"資源事件","METADATA":"Metadata","EARLIEST_START_TIME":"Earliest Start Time","LATEST_START_TIME":"Latest Start Time","TOTAL_EVENTS_TODAY":"A total of {events} resource events were collected today.","NO_RESOURCE_EVENTS_TODAY":"No Resource Events Collected Today","RESOURCE_EVENTS_12H":"Resource events in the last 12 hours","RESOURCE_EVENT_WORKSPACE_TIP":"Enter a workspace name to search for container logs.","RESOURCE_EVENT_PROJECT_TIP":"Enter a project name to search for container logs.","RESOURCE_EVENT_RESOURCE_TYPE_TIP":"Enter a resource type to search for container logs.","RESOURCE_EVENT_RESOURCE_NAME_TIP":"Enter a resource name to search for container logs.","RESOURCE_EVENT_MESSAGE_TIP":"Enter a message to search for resource events.","RESOURCE_EVENT_CATEGORY_TIP":"Enter a category name to search for container logs.","RESOURCE_EVENT_REASON_TIP":"Enter a reason to search for container logs.","SEARCH_BY_MESSAGE":"Search by Message","SEARCH_BY_WORKSPACE":"Search by Workspace","SEARCH_BY_RESOURCE_TYPE":"Search by Resource Type","SEARCH_BY_RESOURCE_NAME":"Search by Resource Name","SEARCH_BY_REASON":"Search by Reason","SEARCH_BY_CATEGORY":"Search by Category","EMAIL_DESC":"郵箱可作為登入帳號","LANGUAGE":"Language","USER_SETTINGS":"User Settings","CLOSE":"關閉","CONTENT_NOT_SAVED_TIPS":"内容已經修改但並未保存","SAVE_EDIT_HINTS":"請確認修改的内容是正確的,您可以保存設置或者取消設置。","PASSWORD_SETTINGS":"密碼設置","PASSWORD_EMPTY_DESC":"請輸入密碼","CURRENT_PASSWORD":"目前密碼","ENTER_CURRENT_PASSWORD_TIP":"請輸入目前密碼","CONFIRM_PASSWORD":"重複新的密碼","PASSWORD_NOT_SAME_DESC":"兩次輸入的密碼必須一致","ENTER_CURRENT_PASSWORD_DESC":"您必須輸入正確的目前密碼才可更改為新的密碼","WORKBENCH":"Workbench","DASHBOARD_TITLE":"您好 {username}","LAST_LOGIN_TIME":"Last Login: ","USER_DASHBOARD_EMPTY_TITLE":"您暫時不屬於任何企業空間","USER_DASHBOARD_EMPTY_DESC":"您可以聯繫某個企業空間的管理員邀請您加入企業空間中","LAST_UPDATE_TIME":"上次更新時間","PLATFORM_VERSION":"平台版本","PLATFORM_RESOURCES":"Platform Resource","APP_TEMPLATE_SCAP_PL":"App templates","RECENT_ACCESS":"最近訪問","MULTI_CLUSTER_DEPLOYMENT":"多集群部署","WORKBENCH_PROJECT":"項目","WORKBENCH_WORKSPACE":"企業空間","WORKBENCH_DEVOPS":"DevOps 项目","WORKBENCH_MULTI_CLUSTER_PROJECT":"聯邦項目","WORKBENCH_CLUSTER":"集群","NOT_FOUND_DESC":"🙇 對不起沒有找到相關資源,系統將在 {time}s 後返回 工作台","MULTI_CLUSTER_PROJECT_TIP":"該資源部署在多個集群","NO_HISTORY_TITLE":"No Recently Accessed Resource Found","NO_HISTORY_DESC":"You can access platform resources.","MESSAGE":"訊息","APP_REPOSITORY_PL":"App Repositories","APP_REPO":"應用倉庫","HOW_TO_USE_APP_REPO_Q":"How do I use an app repository?","HOW_TO_USE_APP_REPO_A":"You need to go to your project in the workspace. When you deploy a new app, select From App Template and then choose an app repository in the drop-down list to deploy an app in the repository.","APP_REPO_DESC":"An app repository is a repository used to store application templates. You can add an app repository to deploy and manage its applications.","APP_REPOSITORY_EMPTY_DESC":"Please add an app repository.","APP_REPO_STATUS_SUCCESSFUL":"成功","APP_REPO_STATUS_FAILED":"失敗","APP_REPO_STATUS_SYNCING":"Syncing","ADD_APP_REPO":"Add App Repository","VALIDATE":"Validate","SYNC_INTERVAL":"Sync Interval","SYNC_INTERVAL_DESC":"Set a synchronization interval. The value range is 3 minutes to 24 hours. The default value 0 indicates no synchronization.","SYNC_PERIOD_EMPTY_DESC":"Please set a synchronization interval.","SYNC_INTERVAL_INVALID":"Invalid value. Please enter 0 or a positive integer. ","APP_REPO_URL_DESC":"The URL needs to be validated before you add or edit an app repository.","SYNC_INTERVAL_TIP":"The value range is 3 minutes to 24 hours. Please enter a valid value.","SECONDS":"Seconds","MINUTES":"Minutes","HOURS":"Hours","UNRECOGNIZED_URL":"Unrecognized URL.","INVALID_CREDENTIAL_FORMAT":"Invalid credential format.","MISSING_ACCESS_KEY_ID":"Missing access key ID.","MISSING_SECRET_ACCESS_KEY":"Missing secret access key.","S_THREE_ACCESS_DENIED":"S3 access denied.","INVALID_URL_FORMAT":"Invalid URL format.","INVALID_HTTP_SCHEME":"Invalid HTTP scheme.","HTTP_ACCESS_DENIED":"HTTP access denied.","INVALID_HTTPS_SCHEME":"Invalid HTTPS scheme.","INVALID_TYPE":"Invalid type.","INVALID_PROVIDERS":"Invalid providers.","INVALID_REPO_URL":"Invalid repository URL.","INVALID_S_THREE_SCHEME":"Invalid S3 scheme.","ACCESS_KEY_ID":"Access Key ID","SECRET_ACCESS_KEY":"Secret Access Key","EDIT_APP_REPO":"Edit App Repository","INVALID_URL_DESC":"Invalid URL.","VALID_URL_DESC":"Valid URL.","APP_REPOSITORY":"App Repository","APP_REPOSITORY_LOW":"app repository","MODIFY_SUCCESSFUL":"修改成功","SERVICE_PROVIDER_WEBSITE_DESC":"Official website address of the service provider.","WRONG_ADDRESS_TIP":"Incorrect format. Please enter a correct website address.","APP_NAME_DESC":"名稱可包含任意字元,最長 20 個字元。","APP_DESCRIPTION_DESC":"The description can contain any characters and the maximum length is 120 characters.","APP_ICON_FORMAT":"格式: PNG 背景透明最佳","APP_ICON_SIZE":"Icon size: 96x96 pixels","CHOOSE_APP_CATEGORY_DESC":"Select a category for the app.","EDIT_APP_DESC":"對應用的基本資訊進行設置","ICON":"Icon","SERVICE_PROVIDER_WEBSITE_TCAP":"Service Provider Website","START_EDITING":"Start editing...","SCREENSHOTS_COLON":"Screenshots: ","DELETE_ALL":"Delete All","ADD_VERSION_SUCCESSFUL":"添加版本成功","UPLOAD_PACKAGE_OK_NOTE":"The version already exists. Please upload another version.","UPLOAD_NEW_VERSION":"Upload Version","UPLOAD_NEW_VERSION_DESC":"Upload a new version of the app.","DELETE_APP_TEMPLATE_DESC":"Enter the app template name {resource} to confirm that you understand the risks of this operation.","DELETE_APP_TEMPLATE_VERSIONS_DESC":"Enter the app template name {resource} to confirm that you understand the risks of this operation. Before deleting the app template, you must delete all versions of the template.","APP_TEMPLATE_LOW":"app template","APP_STATUS_SUBMITTED":"Submitted","APP_STATUS_NOT_SUBMITTED":"Not submitted","VERSION_INFO":"Version Information","INSTALL":"Install","SUBMIT_FOR_REVIEW":"Submit for Review","DOWNLOAD_SUCCESSFUL":"下載成功","VERSION_DELETE_TIP":"確定要刪除版本 {name} 嗎? ","VERSION_SUBMIT_TIP":"確定要提交版本 {name} 去審核?","VERSION_CANCEL_TIP":"確定要取消版本 {name} 的審核嗎?","VERSION_RELEASE_TIP":"版本 {name} 發佈到商店後,用戶可以查看並部署該應用版本,您確定要發佈嗎?","VERSION_SUSPEND_TIP":"版本 {name} 下架後,關聯的應用將不顯示該版本,您確定要下架嗎?","VERSION_RECOVER_TIP":"版本 {name} 上架後,關聯的應用將顯示出該版本,您確定要上架嗎?","UPDATE_TIME_SCAP":"Update time","VIEW_IN_STORE":"View in Store","UPLOAD_AGAIN_TIP":"Please try again.","ENTER_VERSION_NUMBER_TIP":"Please enter a version number.","SUBMIT_REVIEW_DESC":"Submit the app template for review before releasing it to the App Store.","APP_LEARN_MORE":"Learn More","INVALID_VERSION_TIP":"无效版本格式。","TEST_STEPS":"Test Steps","VERSION_SUBMIT_TEST_STEPS":"1. 所有依賴的 Chart 已經分别提交
    2. 可以成功通過静態檢查 (helm lint)
    3. 可以用預設值成功啟動應用 (helm install):所有 Pod 是 running 狀態,所有服務 (service) 都至少有一個 endpoint
    4. 使用的鏡像沒有安全漏洞
    5. 支持升級
    6. 支持自定義應用配置
    7. 不要使用 Kubernetes 的 alpha 功能
    8. 需要提供詳細的 README 檔案,包括對應用的介紹,前置條件和如何自定義配置參數
    ","VERSION_SUBMIT_NOTE":"在正式提交審核之前,請確認您的應用已經通過了以下基本功能的測試","UPDATE_LOG_DESC":"用於詳細描述此次更新的具體内容","SUBMIT_SUCCESSFUL":"Submitted successfully.","CANCEL_SUCCESSFUL":"Canceled successfully.","APP_INSTANCES":"App Instances","APP_TEMPLATE_PL":"App Templates","APPS_MANAGEMENT":"應用管理","UPLOAD_TEMPLATE":"上傳模板","APP_TEMPLATE_DESC":"KubeSphere 提供全生命週期的應用管理,可以上傳或者創建新的應用模板,並且快速部署它們,也可以通過應用商店進行發佈應用。","DEVELOP_APP_DESC":"您可以上傳 Helm Chart 或者使用 KubeSphere 提供的資源編排工具進行應用模板的開發","DEVELOP_APP_TITLE":"開發應用模板","HOW_PUBLISH_APP_TITLE":"如何發佈已有應用","HOW_PUBLISH_APP_DESC":"KubeSphere 目前支持將已有應用的 Helm Chart 上傳至企業空間的應用模板,提交審核後,可以將應用發佈在應用商店中。","APP_STATUS_ACTIVE":"已發布","APP_STATUS_DRAFT":"Unreleased","APP_STATUS_SUSPENDING":"Suspending","APP_TEMPLATE_EMPTY_DESC":"Please create an app template.","LATEST_VERSION":"最新版本","CREATE_APP_TEMPLATE":"創建應用模板","CREATE_APP_TEMPLATE_DESC":"輕量化、可移植、自包含的軟體封裝技術,使應用可以在幾乎任何地方以相同的方式運行。","APP_CREATE_GUIDE":"完整的應用開發規範請參考","UPLOAD":"開始上傳","UPLOAD_HELM_TITLE":"上傳 Helm 配置文件","UPLOAD_HELM_CHART_DESC":"上傳已有的 Helm chart ","HELM_CHART_FORMAT_DESC":"支持 tar.gz 和 tgz 格式","UPLOAD_ICON":"上傳圖示","UPLOAD_SUCCESSFUL":"上傳成功","UPLOADING":"正在上傳","FILE_MAX_SIZE_ICON":"The maximum size of the icon is 96x96 pixels.","FILE_MAX_SCREENSHOTS":"截圖大小不能超過 2M","APP_ICON_NOTE":"96px * 96px 以内 JPG 或者 PNG","MISS_FILE_NOTE":"文件 {file} 沒有找到","LICENSE_FILE_DESC":"文本格式的協定","CHART_FILE_DESC":"Yaml 檔案,用於描述 Chart 的基本資訊,包括名稱版本等","README_FILE_DESC":"應用介绍、使用說明","REQUIREMENTS_FILE_DESC":"用於存放目前 Chart 依賴的其它 Chart 的說明檔案","VALUES_FILE_DESC":"Chart 的預設值配置檔案","CHARTS_FILE_DESC":"該目錄中放置目前 Chart 依賴的其它 Chart","TEMPLATES_FILE_DESC":"部署檔案模板目錄,模板填入 values.yaml 中相應值,生成最終的 Kubernetes 配置檔案","NOTES_FILE_DESC":"使用指南","INCORRECT_FILE":"Incorrect files? ","TRY_AGAIN":"Try Again","FILE_MAX_ICON_DESC":"The icon size should not exceed 20 KB. Please try again.","HOMEPAGE":"首頁","OPTIONAL":"選填","DEVOPS_TIP_GITOPS_Q":"如何落地 DevOps?","DEVOPS_TIP_GITOPS_A":"創建關聯代碼倉庫的流水線,並積極使用部署 Kubernetes 部署步驟,就可以實現 DevOps 了。","DEVOPS_TIP_TYPE_Q":"流水線 (Pipeline) 支持哪些代碼倉庫類別?","DEVOPS_TIP_TYPE_A":"流水線支持 Git、GitHub、Gitlab、SVN、以及 Bitbucket 代碼倉庫.","DEVOPS_PROJECT_EMPTY_DESC":"Please create a DevOps project.","CREATE_DEVOPS_PROJECT":"創建 DevOps 项目","DEVOPS_PROJECT_CREATE_DESC":"DevOps 是一個獨立的命名空間,其中定義了一組流水線;用戶可以按照自己的方式對流水線進行分組 (例如:項目類型、組織類型)。","DEVOPS_BASEINFO_DESC":"Please set the basic information of the DevOps project","PATTERN_NAME_INVALID_TIP":"Invalid name. The name can contain only lowercase letters, numbers, and hyphens (-).","NO_DEVOPS_INSTALL":"未安裝 DevOps","DEVOPS_ADMIN_DESC":"指定项目内一個成員為管理員。","DELETE_MULTIPLE_DEVOPS_PROJECTS":"Delete Multiple DevOps Projects","DELETE_DEVOPS_PROJECT":"刪除 DevOps 项目","DELETE_DEVOPS_PROJECT_TIP":"Enter the DevOps project name {resource} to confirm that you understand the risks of this operation.","DELETE_DEVOPS_PROJECT_TIP_PL":"Enter the DevOps project names {resource} to confirm that you understand the risks of this operation.","HOW_TO_APPLY_MORE_CLUSTER_Q":"如何為企業空間申請更多的集群?","HOW_TO_APPLY_MORE_CLUSTER_A":"Contact the platform or cluster administrator to apply for more clusters.","OVERVIEW":"概覽","WORKSPACE_OVERVIEW_DESC":"企業空間為 KubeSphere 提供了安全隔離的、具有訪問權限控制的工作平台。這裡您可以看到目前企業空間内資源運行的概況。","ROLE_PL":"角色","PHYSICAL_RESOURCES":"物理資源用量","CRONJOB":"定時任務","CLUSTER_VALUE":"集群:{value}","SORT_BY_WORKSPACE_MEMORY_USAGE":"按記憶體使用量排行","SORT_BY_WORKSPACE_MEMORY_USAGE_WO_CACHE":"按記憶體使用量排行","SORT_BY_WORKSPACE_POD_COUNT":"Sort by pod quota usage (%)","SORT_BY_WORKSPACE_CPU_USAGE":"按 CPU 使用量排行","SORT_BY_WORKSPACE_NET_BYTES_TRANSMITTED":"按網路流出速率排行","SORT_BY_WORKSPACE_NET_BYTES_RECEIVED":"按網路流入速率排行","PROJECT_EMPTY_DESC":"Please create a project.","CREATE_PROJECT":"創建項目","CREATE_MULTI_CLUSTER_PROJECT":"Create Multi-cluster Project","CREATE_MULTI_CLUSTER_PROJECT_DESC":"您可以創建聯邦項目,讓項目運行在多個集群中,為應用提供快速疊代開發的容器環境並實現高可用。","MULTI_CLUSTER_PROJECT_PL":"聯邦項目","FED_HOST_NAMESPACE_TIP":"該項目為聯邦項目的相關資源, 請勿在此項目下操作資源","MULTI_CLUSTER_PROJECT":"聯邦項目","PROJECT_NAME_EXISTS_IN_HOST":"項目名在主集群上已存在","SELECT_CLUSTER_DESC":"選擇要創建項目的集群。","CLUSTER_EMPTY_DESC":"請選擇集群。","PROJECT_NAME_EXISTS_IN_CLUSTER":"項目名稱在集群 {cluster} 中已存在","PROJECT_CLUSTER_SETTINGS_DESC":"選擇要創建項目的集群. 當選擇了多個集群時, 將創建聯邦項目","FEDPROJECT_CANNOT_ADD_CLUSTER":"無法添加新的集羣","WORKSPACE_SETTINGS":"企業空間設置","WORKSPACE_BASIC_INFO_DESC":"Basic information provides the overview of the workspace. You can view the basic information of the workspace.","WORKSPACE_BASE_INFO_Q1":"如何為企業空間申請更多的集群?","WORKSPACE_BASE_INFO_A1":"Contact the platform or cluster administrator to apply for more clusters.","WORKSPACE_INFO":"企業空間資訊","WORKSPACE_MEMBER_TCAP":"Workspace member","WORKSPACE_MEMBER_TCAP_PL":"Workspace members","WS_MEMBER_SCAP":"Workspace member","WS_MEMBER_SCAP_PL":"Workspace members","DEVOPS_PROJECT_TCAP":"DevOps 项目","DEVOPS_PROJECT_TCAP_PL":"DevOps projects","DEVOPS_PROJECT_LOW":"DevOps 项目","DEVOPS_PROJECT_LOW_PL":"DevOps projects","PROJECTS":"項目","ON":"On","OFF":"Off","WS_NETWORK_ISOLATION":"企業空間網路隔離","NETWORK_POLICY_UNINSATLLED_DESC":"The network policy component is not installed in this cluster.","DELETE_DESC":"Are you sure you want to delete the resource? The resource cannot be restored after it is deleted.","DELETE_WORKSPACE_PROJECTS_DESC":"刪除該企業空間關聯項目","DELETE_WORKSPACE_DESC":"刪除後將無法恢復,企業空間下的資源也同時會被銷毀。","DELETE_WORKSPACE_TIP":"確定刪除企業空間 {resource} ? 刪除後將無法恢復,企業空間下的資源也同時會被銷毀。","DEPARTMENT_PL":"Departments","DEPARTMENT_DESC":"A department in a workspace is a logical unit used for permission control. You can set a workspace role, multiple project roles, and multiple DevOps project roles in a department, and assign users to the department to control user permissions in batches.","NOT_ASSIGNED_TCAP":"Not Assigned","ADD_MEMBER_TIP_SI":"Are you sure you want to assign the user to {group}?","ADD_MEMBER_TIP_PL":"Are you sure you want to assign the users to the department {group}?","ASSIGNED":"Assigned","DEPARTMENT":"Department","SET_DEPARTMENTS":"Set Departments","DEPARTMENT_EMPTY_DESC":"No Department Available","NO_DEPARTMENT_TIP":"No department available. Please create a department on the right.","CREATE_DEPARTMENT":"Create Department","DELETE_GROUP_TIP":"確定刪除子部門 {group_name}? 刪除該部門的同時,所有成員的授權也將被取消。","DELETE_PARENT_GROUP_TIP":"確定刪除子部門 {group_name}? 刪除該部門的同時,其子部門也會被刪除,且所有成員的授權也將被取消。","PROJECT_VALUE":"Project: {value}","PROJECT_ROLE_VALUE":"Project role: {value}","DEVOPS_VALUE":"DevOps project: {value}","DEVOPS_PROJECT_ROLES_VALUE":"DevOps project role: {value}","WORKSPACE_ROLE":"Workspace Role","GROUP_WORKSPACE_ROLE_DESC":"企業空間角色將授予部門中的所有用戶。","MEMBER_CLUSTER_UPGRADE_TIP":"Member clusters with versions earlier than {version} do not support this function. Please upgrade the member clusters to {version} or later.","PROJECT_ROLE":"項目角色","SELECT_ROLE_TIP":"Please select a role.","ADD_PROJECT":"添加項目","CLUSTER_UPGRADE_REQUIRED":"The cluster version does not support this function. Please upgrade the cluster to {version} or later.","DEVOPS_PROJECT_ROLE":"DevOps 项目角色","ADD_DEVOPS_PROJECT":"添加 DevOps 项目","DEVOPS_PROJECTS":"DevOps 項目","WORKSPACE_MEMBERS":"Workspace Members","WORKSPACE_MEMBER_PL":"Workspace Members","WORKSPACE_MEMBER_DESC":"Workspace members can view or manage workspace resources. You can manage members and control their permissions in the workspace.","WORKSPACE_MEMBER_EMPTY_DESC":"Please invite a user to the workspace.","ROLE":"角色","REMOVE_MEMBER":"移除成員","REMOVE_MULTIPLE_MEMBERS":"Remove Multiple Members","REMOVE_MULTIPLE_MEMBERS_TIP":"Enter the usernames {resource} to confirm that you understand the risks of this operation.","INVITE_WORKSPACE_MEMBER_DESC":"You can invite members to the workspace.","INVITE_MEMBER":"Invite Member","INVITE":"Invite","INVITED_SUCCESSFULLY":"Invited successfully.","REMOVE_MEMBER_TIP":"確定移除成員 {resource} ?","WORKSPACE_QUOTA_PL":"Workspace Quotas","WORKSPACE_QUOTAS_DESC":"Workspace quotas are used to control the total resource usage of all projects and DevOps projects in a workspace.","RESOURCE_QUOTA_PL":"資源配額","USED_PERCENT":"Used: {percent}%","RESOURCE_LIMIT":"資源限制","EDIT_WORKSPACE_QUOTAS":"Edit Workspace Quotas","CPU_REQUEST":"CPU 預留","CPU_LIMIT":"CPU 限制","MEMORY_REQUEST":"記憶體預留","MEMORY_LIMIT":"記憶體限制","WORKSPACE_ROLE_PL":"企業角色","WORKSPACE_ROLE_DESC":"企業角色定義了在目前企業空間下用戶所擁有的權限。","WORKSPACE_ROLE_EMPTY_DESC":"Please create a workspace role.","ROLE_WORKSPACE_ADMIN":"Manage all resources in the workspace.","ROLE_WORKSPACE_REGULAR":"企業空間普通成員,無法創建 DevOps 项目和項目。","ROLE_WORKSPACE_VIEWER":"企業空間的觀察者,可以查看企業空間下所有的資源資訊。","ROLE_WORKSPACE_SELF_PROVISIONER":"企業空間普通成員,可以在企業空間下創建 DevOps 项目和項目。","CREATE_WORKSPACE_ROLE":"創建企業角色","WORKSPACE_ROLE_NAME_TIP":"請設置一個唯一識別碼作為角色名稱。","NEXT_STEP":"接下來要做的事情","NEXT_STEP_DESC":"接下來您需要編輯權限,編輯好權限後帳號角色才能創建成功。","PERMIGROUP_PROJECTS_MANAGEMENT":"項目","PERMISSION_PROJECTS_VIEW":"Project Viewing","PERMISSION_PROJECTS_VIEW_DESC":"View all projects in the workspace.","PERMISSION_PROJECTS_MANAGEMENT":"Project Management","PERMISSION_PROJECTS_MANAGEMENT_DESC":"Create, edit, and delete projects in the workspace.","PERMISSION_PROJECTS_CREATE":"Project Creation","PERMISSION_PROJECTS_CREATE_DESC":"Create projects and become an administrator of the created projects.","PERMIGROUP_DEVOPS_MANAGEMENT":"DevOps 項目","PERMISSION_DEVOPS_VIEW":"DevOps Project Viewing","PERMISSION_DEVOPS_VIEW_DESC":"View all DevOps projects in the workspace.","PERMISSION_DEVOPS_MANAGEMENT":"DevOps Project Management","PERMISSION_DEVOPS_MANAGEMENT_DESC":"Create, edit, and delete DevOps projects in the workspace.","PERMISSION_DEVOPS_CREATE":"DevOps Project Creation","PERMISSION_DEVOPS_CREATE_DESC":"Create DevOps projects and become an administrator of the created DevOps projects.","PERMISSION_APPS_MANAGEMENT":"應用管理","PERMISSION_WORKSPACE_APP_REPOS_VIEW":"App Repository Viewing","PERMISSION_WORKSPACE_APP_REPOS_VIEW_DESC":"View app repositories in the workspace.","PERMISSION_WORKSPACE_APP_REPOS_MANAGEMENT":"App Repository Management","PERMISSION_WORKSPACE_APP_REPOS_MANAGEMENT_DESC":"Create, edit, and delete app repositories in the workspace.","PERMISSION_WORKSPACE_APP_TEMPLATES_VIEW":"App Template Viewing","PERMISSION_WORKSPACE_APP_TEMPLATES_VIEW_DESC":"View app templates in the workspace.","PERMISSION_WORKSPACE_APP_TEMPLATES_MANAGEMENT":"應用模板管理","PERMISSION_WORKSPACE_APP_TEMPLATES_MANAGEMENT_DESC":"Upload, edit, and delete workspace app templates, and release and delete apps in the platform App Store.","PERMISSION_WORKSPACE_GROUPS_VIEW":"Department Viewing","PERMISSION_WORKSPACE_GROUPS_VIEW_DESC":"View the structure and members of workspace departments.","PERMISSION_WORKSPACE_GROUPS_MANAGEMENT":"Department Management","PERMISSION_WORKSPACE_GROUPS_MANAGEMENT_DESC":"Manage the structure, members, and permissions of workspace departments.","PERMISSION_WORKSPACE_MEMBERS_VIEW":"成員查看","PERMISSION_WORKSPACE_MEMBERS_VIEW_DESC":"View workspace members.","PERMISSION_WORKSPACE_MEMBERS_MANAGEMENT":"成員管理","PERMISSION_WORKSPACE_MEMBERS_MANAGEMENT_DESC":"Invite, edit, and delete workspace members.","PERMISSION_WORKSPACE_ROLES_VIEW":"角色查看","PERMISSION_WORKSPACE_ROLES_VIEW_DESC":"View workspace roles.","PERMISSION_WORKSPACE_ROLES_MANAGEMENT":"角色管理","PERMISSION_WORKSPACE_ROLES_MANAGEMENT_DESC":"Create, edit, and delete workspace roles except system preset roles.","PERMIGROUP_WORKSPACE_SETTINGS":"企業空間設置","PERMISSION_WORKSPACE_SETTINGS_VIEW":"Workspace Settings Viewing","PERMISSION_WORKSPACE_SETTINGS_VIEW_DESC":"企業空間普通成員,無法創建 DevOps 项目和項目。","PERMISSION_WORKSPACE_SETTINGS_MANAGEMENT":"Workspace Settings Management","PERMISSION_WORKSPACE_SETTINGS_MANAGEMENT_DESC":"Manage workspace settings and edit workspace information and network policies.","abortPipeline":"檢查結果是否影響後續任務","Absolute duration":"代碼塊所用的絕對時間","Add another credential":"增加一個憑證","Add conditions":"添加條件","Add nesting conditions":"添加嵌套條件","Add nesting steps":"添加嵌套步驟","Add Parallel Stage":"添加並行階段","Add Step":"添加步驟","archiveArtifacts":"保存成品","Are you sure to close this pipeline Editor ?":"確定關閉流水線編輯?","artifacts":"成品","Authentication Token":"身份驗證令牌","Automatically generated by GitHub":"由 GitHub 自動生成","bcc":"密件副本","BEHAVIORAL_STRATEGY":"行為策略","blocker":"阻斷","BLOCKER":"Blocker","NOTICE":"Notice","Branches":"分支","branch success":"分支成功","@somebody to help review":"可以@某人來幫助審核","Send messages by email":"可以通過郵件發送訊息","Send messages in the build":"可以在構建中發送訊息","Change Current Directory":"更改目前目錄","Chinese is not allowed in the pipeline configuration":"配置中不允許含有中文","Clean when aborted":"清理失敗不影響運行","Clean Workspace":"清理企業空間","Code Quality Check":"代碼質量檢查","COMMIT_ID":"Commit ID","Config File Path":"配置文件路徑","config name":"配置名稱","configs":"配置","Configuration error":"配置資訊錯誤","container":"指定容器","Continue":"繼續編輯","credential Id":"憑證 ID","Credential Id":"憑證 ID","credentialsId":"憑證 ID","critical":"嚴重","Current branch name must match the input value":"目前分支名稱需符合輸入值","defaultValue -1 means not to discard":"預設值 -1: 不會丢棄紀錄","Delete all resources of the deployment file":"刪除部署文件所對應的所有資源","Deploy resources to the Kubernetes cluster":"將資源部署到 kubernetes 集群","Didn't pass":"未通過","dir":"切換目錄","Discard":"忽略","Discover branches from repository":"發現存儲庫上的分支","DISCOVER_PR_FROM_FORKS":"以 Fork 倉庫中發現 PR","DISCOVER_PR_FROM_ORIGIN":"以原倉庫中發現 PR","Discover pull requests from forks":"發現 Fork 儲存庫與目標儲存庫相同的 PR","Discover pull requests from origin":"發現原始儲存庫與目標儲存庫相同的 PR","Docker Container Registry Credentials":"Docker 容器倉庫憑證","Docker Registry URL":"Docker 倉庫 URL","dockerCredentials":"Docker 容器倉庫憑證","Drag and drop tasks to sort":"可以拖放任務進行排序","Duration":"持續時間","echo":"打印訊息","Edit Config":"編輯配置","Edit Credential":"編輯憑證","Enable Variable Substitution in Config":"在配置中啟用變量替換","enableConfigSubstitution":"啟用變量替換","Enter an expression":"輸入一個表達式","Environment name":"環境變量名稱","Executes the code inside the block with a determined time out limit.":"使用確定的超時限制執行塊内的代碼.","expression":"表達式","Failure":"失敗","For accessing GitHub":"用於獲取 GitHub","get token":"獲取 Token","info":"提示","input":"審核","Inspection results do not affect subsequent tasks":"檢查結果不影響後續任務","instance failed to match at least one schema":"至少需要一個嵌套步驟","Internal nested conditions only need to satisfy one":"内部嵌套的條件只需符合一個","Internal nesting conditions must be matched":"内部嵌套的條件需全部滿足","Jenkinsfile syntax error, message":"Jenkinsfile 語法錯誤,訊息","key File Variable":"私鑰變量","keyFileVariable":"私鑰變量","Kubeconfig Variable":"kubeconfig 變量","Kubernetes Namespace for Secret":"Kubernetes 密鑰命名空間","Kubernetes Secrets":"Kubernetes 密鑰","Line":"行","Load credentials into environment variables":"加載憑證到還境變量","Load the sonarqube configuration provided by Jenkins into the Pipeline.":"將 Jenkins 中的 sonarqube 配置加載到流水線中","mail":"郵件","major":"重要","minor":"次要","Missing one or more required properties: 'name'":"name 不能為空","Negative prefix":"否定前缀","NO_BRANCH_FOUND_TIP":"未發現任何分支","No need":"不需要","Normal":"通用","Not Build":"未執行","Not fail build":"失敗不影響運行","not support edit nested stage":"暫不支持編輯嵌套階段","passphrase Variable":"密碼變量","passphraseVariable":"密碼變量","Password Variable":"密碼變量","passwordVariable":"密碼變量","PIPELINE_LOW":"流水線","Pipeline Configuration":"編輯流水線","Pipeline List":"流水線列表","pipeline syntax error":"流水線語法錯誤","Please add at least one step.":"至少添加一個步驟","Please input images name":"請輸入鏡像名稱","Please input the credential name.":"請輸入憑證名稱","Press enter for the next":"按Enter鍵以進行下一步","Print message":"打印訊息","Pull code by Git":"通過 Git 拉取代碼","Pull code by SVN":"通過 SVN 拉取代碼","Queue":"列隊中","Recipient":"收件人","Registry Credentials":"倉庫憑證","remote":"倉庫地址","Run Pipeline":"運行流水線","Save Artifact":"保存成品","Repo Scanned Successfully":"Repo Scanned Successfully","WEBHOOK_PUSH":"Webhook 推送","secretName":"秘鑰名稱","secretNamespace":"密鑰命名空間","SELECT_THIS_REPOSITORY":"選擇此倉庫","Sender":"寄件人","sh":"shell 腳本","Shell commands can be executed in the container":"可以在容器中執行 shell 命令","Show Advanced Settings":"顯示高级設置","show yaml editor":"用 YAML 編輯器編輯","sonar is the default config name.":"預設配置名稱是 sonar","Sorry, you don't have the permission to do this.":"抱歉,您沒有權限進行此操作","Specify a container to add nested tasks to execute inside the container":"指定容器,可添加嵌套任務在容器内執行","Start the follow-up task after the inspection":"檢查通過後開始後續任務","Started By":"實施者","Subject":"主題","submitter":"審核者","submitterParameter":"提交參數","Text Variable":"文本變量","The conditions required to implement the current phase (optional).":"執行目前階段段所需要滿足的條件 (可選)","The environment variable entered before running the pipeline is match the current value.":"運行流水線前輸入的環境變量與目前值一致","The label on which to run the Pipeline or individual stage":"流水線或單個階段的標籤","This name has been used.":"此名稱已被使用","Time Used":"用時","Timeout":"超時","timeout":"超時","Timeout after no activity in logs for this block":"此區塊代碼無紀錄輸出後開始計算超時","timer":"定時器","TRIGGER_REMOTE_BUILD":"觸發遠程構建(例如,使用腳本)","Unnamed":"未命名","Use the following URL to remotely triggerworkbench the build":"使用以下 URL 遠程觸發構建","User types that can trigger builds":"可以觸發構建的用戶類型","username or group name, multiple values ​​used, separated":"用戶名或組名,多個值使用英文逗號分隔","Username Variable":"用戶名變量","usernameVariable":"用戶名變量","waitForQualityGate":"代碼質量檢查(SonarQube)","Webhook":"Webhook","withCredentials":"添加憑證","withSonarQubeEnv":"Sonarqube 配置","Wrong Token":"Token 錯誤","You can execute shell commands or windows batch commands in the build.":"可以在構建中執行 shell 命令或者 windows 的 batch 命令","PIPELINE_DESC":"流水線是一組可擴展的工具,可以通過組合它們來實現持續集成和持續交付。\n 您可以在此頁面創建並管理流水線。","username_password":"帳戶憑證","login_Plateform":"登入平台","CREDENTIALS_DESC":"憑證是包含了一些敏感數據的對象,如用戶名密碼,SSH 密鑰和 Token 等,\n 用於在 Pipeline 運行時, 為拉取代碼、push/pull 鏡像、SSH 執行腳本等過程提供認證","AUTHENTICATION_TOKEN_TIP":"如果需要通過訪問預定義 URL 開觸發構建,請啟用此選項。\n 此功能的的一個典型用法是通過源代碼管理系統的鉤子腳本來進行觸發。\n 您需要提供一個字符串形式的授權令牌,以便只有擁有授權令牌的人才能觸發遠程構建。","CRON_TIP":"This field follows the cron syntax (slightly different).\n Specifically, each line contains 5 fields separated by tabs or spaces.\n minutes: the first few minutes of an hour (0-59)\n hours: the first few hours of the day (0-23)\n the days of the month: the first few days of a month (1-31 )\n Month: The first few days of the first few days (0-12), the first few days of the week (0-12),\n 0 and 7 are Sundays. ","PIPELINES_BASEINFO_DESC":"請輸入流水線的基本資訊","PIPELINE_ADVANCE_SETTINGS_DESC":"\t為流水線配置複雜行為策略(可選)","CREDENTIALS_CREATE_DESC":"創建用於 DevOps 項目中的憑證","CHECKOUT_DESC":"拉取代碼,常用於拉取非 Git 代碼,例如 SVN 等等","PRIVATE_IMAGE_DESC":"To deploy from a private image repository,\n you need to create a mirrored repository and then pull the image. ","AUTHENTICATION_TOKEN_DESC":"使用以下 URL 遠程觸發構建:\n JENKINS_URL / job / JOB_NAME / build?token =TOKEN_NAME\n 或者/ buildWithParameters?token = TOKEN_NAME 可選擇附加&cause =原因提供將包含在紀錄的構建原因中的文本。","PIPELINE_NO_CONFIG":"目前 Pipeline 中並沒有找到相關配置文件","EDIT_CREDENTIAL_DESC":"下列表單不會顯示原有憑證資訊,重新輸入會將其覆蓋。","pipeline_conditions":"條件","CODE_SMELL":"容易出錯","BUG":"Bug","VULNERABILITY":"漏洞","SECURITY_HOTSPOT":"安全","PIPELINE_CREATE_DESC":"初始化完成後將開始 Pipeline 的任務執行","PIPELINE_QUEUED_DESC":"您需要等待 agent 啟動並執行流水線(注:如 agent 長時間沒有啟動請檢查 agent 配置和集群資源情況)","waitForQualityGate_desc":"代碼質量檢查標準來源於SonarQube的 Quality Gate (質量閥),如果需要自定義檢查標準請前往 SonarQube 設置","REVIEW_DESC":"流水線運行至此任務將會暫停,審核後可選擇繼續或终止","INPUT_DESC":"流水線運行至此任務將會暫停,創建者和被@的人可以選擇繼續或終止流水線","LoadPrevData_Desc":"檢測到此流水線上次未編輯成功,是否加載上次數據繼續編輯?","withSonarQubeEnv_DESC":"快速的定位代碼中潛在的或者明顯的錯誤","waitForQualityGate_DESC":"在執行代碼分析後執行","script_DESC":"執行groovy腳本","pipeline_owner":"DevOps 项目的所有者,可以進行 DevOps 项目的所有操作","pipeline_maintainer":"DevOps 项目的主要維護者,可以進行項目内的憑證配置、Pipeline 配置等操作","pipeline_developer":"DevOps 项目的開發者,可以進行 Pipeline 的觸發以及查看","pipeline_reporter":"DevOps 项目的觀察者,可以查看 Pipeline 的運行情况","PATTERN_PIPELINE_NAME_VALID_NAME_TIP":"名稱不合法 (僅支持大小寫字母、數字、_、-)","GET_GITHUB_TOKEN_DESC":"用於獲取 GitHub 代碼倉庫\n \n 獲取 Token\n ","PIPELINES_FOOTER_SEE_MORE":"前往分支詳情頁查看更多 →","JENKINS_LINS_ERROR":"第 {line} 行有語法錯誤","Invalid credential ID":"憑證 ID 格式不合法","Batch Run Fail":"批量運行失敗","Run Start":"運行開始","Choose a Pipeline Template":"選擇流水線模板","DEVOPS_PROJECT_DESC":"DevOps 项目用於對資源進行分組管理以及控製不同用戶的資源管理權限。"} \ No newline at end of file diff --git a/packages/bootstrap/assets/v3dist/locale-tc.78b741dfdab895ebd086.json b/packages/bootstrap/assets/v3dist/locale-tc.78b741dfdab895ebd086.json new file mode 100644 index 00000000000..957c602c05f --- /dev/null +++ b/packages/bootstrap/assets/v3dist/locale-tc.78b741dfdab895ebd086.json @@ -0,0 +1 @@ +{"DELETE_CUSTOM_SCALING_WITH_WORKLOAD":"Associated custom scaling policies will be deleted after the workload is deleted.","ENT_TITLE":"KubeSphere Enterprise","KS_QKCP_DESCRIPTION":"KubeSphere Enterprise is an enterprise-grade container platform developed by QingCloud based on the open-source KubeSphere platform.","ABOUT_KUBESPHERE_ENTERPRISE":"About KubeSphere Enterprise","KUBESPHERE_CLOUD_DESC":"KubeSphere Cloud builds a Kubernetes-centric digital ecosystem to provide customers with enterprise-level cloud-native services of high quality. It offers KubeSphere Backup, Inspector, and Lite to help you manage, protect, and deliver production-ready applications more efficiently.","APP_AUTHORIZED":"App is authorized","APP_UNAUTHORIZED":"The application is not authorized","APP_UNAUTHORIZED_DESC":"This app is unauthorized.","VIEW_EVENTS":"View Events","GPU_MEMORY":"Graphics memory","EDIT_TAGS":"Edit Tags","ADD_TAGS":"Add Tags","GPU_TEMP":"GPU Temperature","GPU_ENERGY_USAGE":"GPU Power (W)","GPU_ENERGY_NO_PERCENT_TCAP":"GPU Power","GPU_MEMORY_USAGE_STATUS":"Graphics Memory Usage","NODE_GPU_MEMORY_USAGED":"Used","NODE_GPU_MEMORY_UNUSAGED":"Available","ENT_CLUSTER_GATEWAY_DESC":"Set up and manage the configuration of the external network access gateway and service management in the cluster, workspace and project.","ENT_CLUSTER_ENABLE_GATEWAY_DESC":"Before creating a route, you need to enable the external network access portal, that is, the gateway. This step is to create the corresponding route controller to forward requests to the back-end service.","WORKSPACE_GATEWAY_PL":"Workspace Gateways","WORKSPACE_GATEWAY_NOT_ENABLED":"Workspace Gateway Not Enabled","ENT_WORKSPACE_ENABLE_GATEWAY_DESC":"The workspace gateway cannot be set on the cluster management page. If you need to set it, go to the corresponding workspace.","ENT_PROJECT_ENABLE_GATEWAY_DESC":"The project gateway cannot be set on the cluster management page. If you need to set it, go to the corresponding project.","OPENSEARCH_DESC":"You can use the OpenSearch log receiver to ingest log data into an OpenSearch database. To use this feature, you need to deploy OpenSearch in advance.","LOG_COLLECTION_OS_URL_TIPS":"IP address or hostname of the target OpenSearch instance","LOG_COLLECTION_OS_USER_TIPS":"Optional username credential for access","LOG_COLLECTION_OS_PASSWORD_TIPS":"Password for user defined in HTTP_User","BATCH_MANAGE":"Batch Manage","HAS_SAME_TAG":"The tag already exists. Please select another tag.","CLUSTER_REPEATED_TAGS_DESC":"The tag keys must be unique for each cluster.","CLUSTER_MAX_TAGS_DESC":"The cluster can bind up to five tags.","EMPTY_TAG_LABEL_DESC":"Please enter the tag key","EMPTY_TAG_VALUE_DESC":"Please enter the tag value","HAS_ADD_TAGS":"Added tags","CLUSTER_TYPE_DESC":"Select a type to identify the purpose of the cluster.","DELETE_CLUSTER_SWIPE_DESC":"I understand the risks of this operation.","DELETE_CLUSTER_NOTIFICATION_CONFIGURAITON":"Delete all notification configuration data in the cluster","REMOVE_CLUSTER_TIP_C":"After the cluster is removed, multi-cluster configuration data in the cluster will not be cleared automatically. Uninstalling KubeSphere or deleting related resources may cause user data loss. You must manually clear the multi-cluster configuration data in the removed cluster by refering to the \"Remove a Member Cluster\" section in the KubeSphere Enterprise Cluster Management Guide.","CLUSTER_TAG":"Cluster Tag","CLUSTER_TAGS":"Cluster tags","NO_CLUSTER_TAGS":"No cluster tags found","NO_CLUSTER_TAGS_DESC":"Please create a cluster tag","CLUSTER_TAG_ADD_HELP":"If there is no appropriate tag, you can","CLUSTER_TAG_TOOLTIP_CONTENT":"Only one tag value of the same tag key can be bound on the same cluster. Each cluster can bind up to 5 tags. ","CLUSTER_LABEL":"Cluster ID","CLUSTER_LABEL_DESC":"Identifies the purpose of the cluster. ","CLUSTER_LABEL_TOOLTIP_CONTENT":"It is recommended to identify the cluster by label, and the \"cluster identification\" function will be removed in subsequent versions, please use it with caution. ","TAG_PL":"Tags","CREATE_TAGS":"Create Tags","CREATE_TAGS_DESC":"The keys of different tags can be the same.","ENT_CLUSTER_TAG_DESC":"The key and value cannot be empty. The maximum length is 63 characters.","CLUSTER_TAG_EMPTY_DESC":"Please add a tag.","DELETE_MULTIPLE_TAGS":"Delete Multiple Tags","DELETE_TAG":"Delete Tag","DELETE_CLUSTER_TAG_DESC":"All clusters bound to the tag will be unbound after the tag is deleted.","DELETE_CLUSTER_TAG_CONFIRM_DESC":"Please enter the tag key and value {resource} to confirm that you understand the risks of this operation.","DELETE_CLUSTER_TAGS_CONFIRM_DESC":"Please enter the tag key value {resource} to confirm you understand the risk of this operation.","EDIT_TAG":"Edit Tag","ADD_TO_CLUSTERS":"Add to Clusters","ADD_TAG_TO_CLUSTERS":"Add Tag to Clusters","ADD_TAG_DESC":"The tag keys must be unique for each cluster. New tags do not overwrite existing tags.","ADD_TAG_SUCCESSFUL":"The tag was added successfully.","REMOVE_FROM_CLUSTERS":"Remove from Clusters","REMOVE_TAG_FROM_CLUSTERS":"Remove Tag from Clusters","REMOVE_TAG":"Remove Tag","REMOVE_TAG_DESC":"Are you sure you want remove the tag from the cluster?","REMOVE_TAG_SUCCESSFUL":"The tag was removed successfully.","NO_CLUSTER_FOUND":"No Cluster Found","NAME_DESC_LENGTH":"The name can contain only lowercase letters, numbers, and hyphens (-), and must start and end with a lowercase letter or number. The maximum length is {length} characters.","INVALID_NAME_DESC_LENGTH":"Invalid name. The name can contain only lowercase letters, numbers, and hyphens (-), and must start and end with a lowercase letter or number. The maximum length is {length} characters.","DEFAULT_IMAGE_REGISTRY":"Default image registry","DEFAULT_IMAGE_REGISTRY_TCAP":"Default Image Registry","SET_AS_DEFAULT":"Set as Default","SET_AS_DEFAULT_REGISTRY_DESC":"Set the image registry as the default image registry. Unless otherwise specified, the system uses images from the default image registry to create containers. Only one default image registry is allowed in each project.","SET_DEFAULT_REGISTRY_SUCCESSFUL":"The registry was set as the default image registry successfully.","ACTIVATION_CONDITION_SCAP":"Activation condition","ALERTING_RULE_NAME":"Alerting Name","REFERENCE":"Reference","NO_MONITOR_METRIC":"The alert rule is inactive and no monitoring data is available.","DISABLE_MULTIPLE_ALERTING_POLICIES":"Disable Multiple Rule Groups","ENABLE_ALERTING_POLICY":"Enable Rule Group","ENABLE_MULTIPLE_ALERTING_POLICIES":"Enable Multiple Rule Groups","DISABLE_ALARM_TIP":"After the rule group is disabled, the system will stop generating alerts for the monitored resources. Exercise caution when performing this operation.","RESET_MULTIPLE_ALERTING_POLICIES":"Reset Multiple Rule Groups","RESET_MULTIPLE_ALERTING_POLICIES_DESC":"Are you sure you want to reset the rule groups {name}?","RESET_SUCCESSFUL":"Reset successful","BUILT_IN_POLICIES_TOOLTIP":"After the Whizard Observability Center is enabled, please log in as a user assigned the platform-admin role and manage default rule groups in the Whizard Observability Center.","Rule":"Rule","RULES_LIST_EMPTY":"Please set an alert rule.","DURATION_REQUIRED":"Please set the duration.","OPERATOR_REQUIRED":"Please set the operator.","NETWORK_BANDWIDTH":"Network Bandwidth","FUNCTION_UPGRADE":"功能升級","FUNCTION_UPGRADE_DESC":"該集群下不支持容器組 IP 池的禁用、遷移和 Overlay 模式的編輯功能,如需使用請升級集群至 KubeSphere 企業版 3.4.0 及以上版本。","IPPOOL_OVERLAY_MODE":"Overlay 模式","IPPOOL_BLOCK_SIZE":"IP 池塊大小","EDIT_OVERLAY":"編輯 Overlay 模式","FEATURE_UPGRADE":"特性升級","IPPOOL_USED_TIP":"容器組 IP 池已被容器組使用時,無法分配企業空間和刪除 IP 池。如果存在正在使用容器組 IP 池的容器組,需要為容器組指定其他容器組 IP 池或刪除容器組。","IP_POOL_RANGE":"IP 池範圍","EDIT_POD_IP_POOL":"編輯容器組 IP 池","ENTER_NETWORK_SEGMENT":"請輸入網段。","POD_IP_POOL_IP_RANGE":"容器組 IP 池的 IP 範圍","POD_IP_POOL_NAME_DESC":"名稱只能包含小寫字母、數字和連字符(-),必須以小寫字母或數字開頭或結尾,最長 63 個字符。","IPIP_MODE":"IPIP 模式","IPIP_MODE_REQUIRED":"請選擇一種 IPIP 模式。","IPIP_MODE_DESC":"在每個節點上創建一個 IP in IP 隧道來實現容器之間的通信,不能與 VXLAN 同時設置,兩者都不設置時轉變為 BGP 模式。","CONFIGURATION_MODE":"配置模式","VXLAN_MODE":"VXLAN 模式","VXLAN_MODE_REQUIRED":"請選擇一種 VXLAN 模式。","VXLAN_MODE_DESC":"在每個節點上創建一個 VXLAN 隧道來實現容器之間的通信,不能與 IPIP 同時設置,兩者都不設置時轉變為 BGP 模式。","IP_POOL_BLOCK_SIZE_DESC":"IP 池用於分配 IP 的 block 的 CIDR 大小。","NAT_OUTGOING_DESC":"通過 NAT 方式跨 IPPool 通信","OPEN_NAT_OUTGOING":"開啟 NAT outgoing","CLOSE_NAT_OUTGOING":"關閉 NAT outgoing","OPEN":"開啟","OPENED":"已開啟","CLOSED":"已關閉","OPENED_SUCCESSFUL":"開啟成功","CLOSED_SUCCESSFUL":"關閉成功","SELECT_NODE_DES":"使用標簽選擇器為 IP 池匹配合適的節點。","SELECT_LABEL_ALL_RESOUCE":"匹配標簽選擇範圍內的所有資源。","ALL_DISABLED":"全部禁止","DISABLE_SELECT_NODE":"禁止節點選擇。","NODE_RANGE":"節點範圍","LABEL_SELECT":"標簽選擇","EDIT_OVERLAY_MODE":"編輯 Overlay 模式","DISABLE_POD_IP_POOL":"禁用容器組 IP 池","DISABLE_POD_IP_POOL_DESC":"容器組 IP 池禁用後將不會繼續 IP 地址的分配,也不會影響已經分配 IP 地址的容器組的網絡。遷移容器組 IP 時, 新 IP 池可用地址數量不能少於當前 IP 池使用的 IP 地址,遷移完成後,將重啟工作負載。禁用 ip 池會自動解除項目綁定,請謹慎操作!","MIGRATE_POD_IP_POOL":"遷移容器組 IP 池","MIGRATE_POD_IP_POOL_DESC":"將已經分配 IP 地址的容器組遷移至新的容器組 IP 池。","SELECT_POD_IP_POOL":"請選擇容器組 IP 池。","MIGRATE_POD_IP_POOL_TIP":"容器組的 IP 地址將根據選擇的容器組 IP 池進行分配。","SELECT_POD_IP_POOL_DESC":"請選擇容器組 IP 池。","IPPOOL_IS_AUTO_ASSIGN":"是否自動分配","SELECT_POD_IP_POOL_TO_NODEGROUP_DESC":"將選擇的容器組 IP 池添加到節點組。","CREATED_AGO":"Created {diff}","UPDATED_AGO":"Updated {diff}","GPU_USAGE_SCAP":"GPU usage","GPU_MEMORY_USAGE_SCAP":"Graphics memory usage","QUOTA_USAGE":"Usage","PROJECT_CONFIG_QUOTAS_TIP":"Only data of projects with resource limits and requests is displayed.","APPLICATION_CLUSTER_QUOTA_STATISTICS":"Cluster Quota Statistics","CPU_QUOTA":"CPU Quota","MEMORY_QUOTA":"Memory Quota","SORT_BY_NODE_GPU_UTILIZATION":"Sort by GPU usage (%)","SORT_BY_NODE_GPU_MEMORY_UTILIZATION":"Sort by graphics memory usage (%)","SORT_BY_NAMESPACE_GPU_USAGE":"Sort by GPU usage","SORT_BY_NAMESPACE_GPU_MEMORY_USAGE":"Sort by graphics memory usage","SORT_BY_WORKLOAD_GPU_USAGE":"Sort by GPU usage","SORT_BY_WORKLOAD_GPU_MEMORY_USAGE":"Sort by graphics memory usage","SORT_BY_WORKSPACE_GPU_USAGE":"Sort by GPU usage","SORT_BY_WORKSPACE_GPU_MEMORY_USAGE":"Sort by graphics memory usage","SORT_BY_NODE_GPU_USAGE":"Sort by GPU usage","SORT_BY_NODE_GPU_MEMORY_USAGE":"Sort by graphics memory usage","SORT_BY_CLUSTER_GPU_USAGE":"Sort by GPU usage","SORT_BY_CLUSTER_GPU_MEMORY_USAGE":"Sort by graphics memory usage","NODE_RESOURCE_USAGE":"Node Resource Usage","USED_VALUE_CORES_PERCENTAGE":"Used: {value, plural, =1 {1 core} other {# cores}} ({percentage})","USED_VALUE_UNIT_PERCENTAGE":"Used: {value} {unit} ({percentage})","TOTAL_VALUE_CORES":"Total: {value, plural, =1 {1 core} other {# cores}}","TOTAL_VALUE_UNIT":"Total: {value} {unit}","ENT_ENABLE_GATEWAY_TIP":"To use the gateway, please configure the gateway in the cluster, workspace or project.","ANNOTATION_FORMAT_DESC":"The annotation key can contain only letters, numbers, hyphens (-), underscores (_), slashes (/), and dots (.), and must start and end with a letter or number. The maximum length is 63 characters (if the key contains a domain name, the maximum length is 253 characters).","UNCLASSIFIED":"Unclassified","FILE_STORAGE":"File Storage","BLOCK_STORAGE":"Block Storage","storageclasses":"Storage Classes","EDGE_GPU_MEMORY_USAGE_SCAP":"GPU 顯存用量","NPU_USAGE_SCAP":"NPU 用量","NPU_MEMORY_USAGE_SCAP":"NPU 顯存用量","NPU_USAGE":"NPU 用量","NPU_MEMORY_USAGE":"NPU 顯存用量","EDGE_GPU_MEMORY_USAGE":"GPU 顯存用量","EDGE_GPU_MEMORY_UTILIZATION":"GPU 顯存用量(%)","EDGE_GPU_MEMORY_USAGE_STATUS":"GPU 顯存使用狀態","EDGE_NODE_GPU_MEMORY_USAGED":"已用顯存,","EDGE_NODE_GPU_MEMORY_UNUSAGED":"空閒顯存","NPU_TEMP":"NPU 溫度","NPU_ENERGY_NO_PERCENT_TCAP":"NPU 功率","NPU_VOLTAGE":"NPU 電壓","NPU_MEMORY_USAGE_STATUS":"NPU 顯存使用狀態","EDGE_NODE_NPU_MEMORY_USAGED":"已用 NPU 顯存,","EDGE_NODE_NPU_MEMORY_UNUSAGED":"未用 NPU 顯存,","NPU_HEALTH_STATUS":"NPU 健康狀態","APPLICATION_RESOURCE_QUOTAS":"Application Resource Quotas","UNAUTHORIZED_FEATURE":"Unauthorized Feature","UNAUTHORIZED_FEATURE_DESC":"This feature is unauthorized. Please update the license to use this feature.","ADMIN_INACTIVATED_LICENSE_DESC":"KubeSphere Enterprise is not activated. Please activate KubeSphere Enterprise.","INACTIVATED_LICENSE_DESC":"KubeSphere Enterprise is not activated. Please contact a platform administrator to activate KubeSphere Enterprise.","ADMIN_SUB_EXPIRED_LICENSE_DESC":"The subscription has expired. To try the full version of KubeSphere Enterprise, update the license.","SUB_EXPIRED_LICENSE_DESC":"The subscription has expired. Please contact a platform administrator to update the license.","ADMIN_MA_EXPIRED_LICENSE_DESC":"The warranty has expired.","MA_EXPIRED_LICENSE_DESC":"The warranty has expired. Please contact a platform administrator to extend the warranty.","ADMIN_UPDATE_LICENSE_DESC":"The {type} service will expire in {day, plural, =1 {1 day} other {# days}}. ","UPDATE_LICENSE_DESC":"The {type} service will expire in {day, plural, =1 {1 day} other {# days}}. To try the full version of KubeSphere Enterprise, contact a platform administrator to update the license.","ADMIN_OVER_RESOURCE_LICENSE_LIMIT":"The managed resources exceed the scope of authorization, so you cannot manage existing resources and create new resources. To try the full version of KubeSphere Enterprise, update the license.","OVER_RESOURCE_LICENSE_LIMIT":"The managed resources exceed the scope of authorization, so you cannot manage existing resources and create new resources. To try the full version of KubeSphere Enterprise, contact a platform administrator to update the license.","ACTIVATE":"Activate","ADMIN_AUTHORIZED_INVALID_LICENSE_DESC":"Invalid license. Please update the license or contact KubeSphere technical support.","AUTHORIZED_INVALID_LICENSE_DESC":"Invalid license. Please contact a platform administrator to update the license.","EXPIRED_INVALID_LICENSE_DESC":"The license has expired. Please contact a platform administrator to update the license.","ADMIN_EXPIRED_INVALID_LICENSE_DESC":"The license has expired. Please update the license.","PLATFORM_FEATURES":"Platform Features","RADON_DB_FEATURES":"RadonDB Features","PASSWORD_CHARACTERS":"Contain at least 1 special character (~!@#$%^&*()-_=+\\|[{}];:'\",<.>/? or space).","I_AGREE_TO_THE":"I agree to the","TITLE_USERNAME":"{title} Username","TITLE_LOG_IN":"{title} Log In","NOTIFICATION_SUBSCRIPTION":"Notification Subscription","NOTIFICATION_SUBSCRIPTION_LOW":"Notification Subscription","NOTIFICATION_SUBSCRIPTION_DESC":"You can configure multiple recipients with different filter conditions for the same notification channel. ","NOTIFICATION_RECEIVER_EMPTY_DESC":"A notification subscription can be created. ","EDIT_NOTIFICATION_SUBSCRIPTION":"Edit Notification Subscription","CREATE_NOTIFICATION_SUBSCRIPTION":"Create Notification Subscription","NOTIFICATION_SUBSCRIPTION_DETAIL":"Notification Subscription Details","NOTIFICATION_SUBSCRIPTION_TOTAL":"Number of subscription accounts","NOTIFICATION_SUBSCRIPTION_ACCOUNT":"Notification Subscription Account","NOTIFICATION_EMAIL_SUBSCRIPTION_DESC":"Email notification subscription settings can be set by going to the notification subscription settings page. ","ADD_EMAIL_NOTIFICATION_SUBSCRIPTION":"Add email notification subscription","NOTIFICATION_RECEIVER_STATUS":"Notification reception status","NOTIFICATION_RECEIVER":"Notification receipt","NOTIFICATION_SUBSCRIPTION_PL":"Notification Subscription","NOTIFICATION_SUBSCRIPTION_EMPTY_DESC":"Please crate a notification subscription","NOTIFICATION_ENABLED":"Notification Enabled","NOTIFICATION_DISABLED":"Notification Disabled","ENABLE_SUCCESSFUL":"Enabled successfully.","NODE_TARGET_REPEAT":"Repeated monitoring target. Please select another monitoring target.","DEPLOYMENTS_VALUES":"Deployments: {values}","STATEFULSETS_VALUES":"Statefulsets: {values}","DAEMONSETS_VALUES":"Daemonsets: {values}","WORKLOADS_VALUES":"Workloads: {values}","RULE_NAME_REQUIRED":"Please enter a rule name.","MONITOR_TARGET_EMPTY":"Please select a monitoring target.","ALARM_TARGET_REPEAT":"Monitoring targets cannot be duplicated. Please select another monitoring target.","CLUSTER_FIELD_EMPTY":"Please select a cluster.","SELECT_A_TARGET_NODE":"Please select a node.","SET_NAMESPACE_BELONGS_TO":"Please select a project.","NAME_SPACE_REPEAT":"Projects cannot be duplicated. Please select another project.","THRESHOLD_INVALID":"Please enter a valid metric threshold.","SEVERITY_REQUIRED":"Please select an alert severity.","ALERT_RULE_REQUIRED":"Please enter a rule expression.","MESSAGE_REQUIRED":"Please enter message summary.","RULE_LABEL_SETTING":"Label setting","RULE_LABEL_SETTING_DESC":"Filter conditions can be specified in the receiver configuration to filter related labels. ","INCORRECT_KEY_DESC":"The key value is incorrect","MONITOR_TARGET_CLUSTER_DELETED_DESC":"The selected cluster contains a cluster that has been removed, please select again","CLUSTER_DELETED":"The cluster has been removed","DATA_ACCESS":"Data Access","DATA_QUERY":"Data Query","LONG_TERM_STORAGE":"Long-Term Storage","RULE_CALCULATION":"Ruler","CONTAINER_QUOTA":"Container Quotas","GATEWAY_COMPONENT_LOW":"Store Gateway","COMPONENT_REPLICA_COUNT":"Component Replicas","REPLICA_DESC":"Set the number of replicas of {resource}, and the default value is {default}.","DATA_ROUTER":"Router","DATA_RETENTION_LOW":"data rentetion","DATA_RETENTION_REPLICA_COUNT":"Data Retention Replicas","ROUTER_COMPONENT_LOW":"Router","LOCAL_STORAGE":"Local Storage","LOCAL_STORAGE_LOW":"local storage","LOCAL_STORAGE_TIME":"Local Data Storage Duration (Days)","LOCAL_STORAGE_TIME_DESC":"Set the storage duration of local data. The value at least 3, and the default value is 7.","LOCAL_STORAGE_ERROR_MESSAGE":"The number of replicas of the local storage component cannot be smaller than the number of data retention replicas.","BASIC_SETTING":"Basic Settings","CACHE_SETTING":"Cache Settings","QUERY_COMPONENT_LOW":"query component","CACHE_COMPONENT_LOW":"cache component","LONG_TERM_STORAGE_TIPS":"Please configure the parameters of object storage first, and then configure the parameters of the gateway, period, and downsampling.","STORAGE_NOT_ENABLED":"Long-term storage not enabled","STORAGE_ENABLE_GATEWAY_DESC":"After enabling long-term storage, you can configure component parameters for object storage, gateway, retention period, and downsampling.","OBJECT_STORAGE":"Object Storage","OBJECT_STORAGE_TIPS":"Please configure the parameters of the object storage first.","COMPACTOR":"Compator","STORE_GATEWAY":"Store Gateway","COMPRESSION_DOWNSAMPLING":"Compression and Downsampling","BUCKET":"Bucket","BUCKET_NAME_DESC":"The name of the s3 object storage bucket.","BUCKET_NAME_EMPTY_TIP":"Please enter the bucket name.","REGION":"Region","REGION_DESC":"The geographic region where you created the bucket.","ENDPOINT_DESC":"The AWS S3 object storage address to connect to.","ENDPOINT_EMPTY_TIP":"Please enter the endpoint.","ACCESS_KEY":"Access Key","ACCESS_KEY_DESC":"AWS account access key ID.","ACCESS_KEY_EMPTY_TIP":"Please enter the Access Key.","SECRET_KEY_DESC":"The secret associated with the AWS Access Key ID.","SECRET_KEY_EMPTY_TIP":"Please enter the Secret Key.","HTTP_PROTOCOL":"HTTP protocol","HTTP_PROTOCOL_DESC":"Use of insecure HTTP protocol.","ADD_STORAGE_CLASS":"Add storage class","ADD_STORAGE_CLASS_DESC":"Add user metadata for object storage.","OBJECT_STORAGE_PARAMETERS":"Object Storage Parameters","HTTP_CONFIGURATION":"HTTP configuration","HTTP_CONFIGURATION_DESC":"Configure the HTTP client that the receiver uses to communicate with the HTTP-based API service.","TLS_CERTIFICATE":"TLS certificate","TLS_CERTIFICATE_VERIFY":"Verify TLS certificate","TLS_CERTIFICATE_VERIFY_DESC":"Prove your identity or indicate that you are authorized to access an online service by submitting a digital certificate.","TLS_CONNECTION":"TLS connection","CA_CERTIFICATE_DESC":"The CA file used to verify the server certificate.","CERT_CERTIFICATE":"Cert file","CERT_CERTIFICATE_DESC":"Certificate file for client certificate authentication to the server.","KEY_FILE":"Key","KEY_FILE_DESC":"The key file used for client certificate authentication to the server.","SERVER_NAME_DESC":"ServerName extension to indicate the name of the server.","SERVER_CERTIFICATE_VERFICATION":"Server certificate verification","SERVER_CERTIFICATE_VERFICATION_DESC":"Prove your identity or indicate that you are authorized to access an online service by submitting a digital certificate.","RETENTION_RAW":"Raw data storage duration (days)","RETENTION_RAW_DESC":"Raw data storage duration. The raw data will be deleted after the duration expires.","RETENTION_FIVE_MIN":"5m downsampled data storage duration (days)","RETENTION_FIVE_MIN_DESC":"Specifies the data storage duration for downsampling to 1-hour intervals of data points.","RETENTION_ONE_HOUR":"1h downsampled data storage duration (days)","RETENTION_ONE_HOUR_DESC":"Specifies the data storage duration for downsampling to 1-hour intervals of data points.","DISABLE_STORAGE":"Disable long-term storage","DISABLE_STORAGE_DESC":"Are you sure to disable long term storage? After disabling, the object storage configuration will be removed, and the monitoring data will be retained but no longer queried.","ALERT_MANAGEMENT":"Alert Management","SELECT_CLUSTER":"Select Clusters","CUSTOM_PANEL_DESC":"Select to aggregate monitoring indicators of multiple clusters, and customize the global monitoring page of multiple clusters. ","WHIZARD_MONITORING.BUILT_IN_ALERTING_PL":"內置告警","WHIZARD_MONITORING.CUSTOM_ALERTING_PL":"自定義告警","WHIZARD_MONITORING.RESOURCE_RANKING_PL":"資源統計排行","WHIZARD_MONITORING.RESOURCE_RANKING_DESC":"資源統計排行提供集群資源用量排行情況。","WHIZARD_MONITORING.RESOURCE_MONITORING":"資源監控","WHIZARD_MONITORING.MULTI_CLUSTER_MONITOR":"多集群監控","WHIZARD_MONITORING.PACK_UP":"收起","WHIZARD_MONITORING.UNFOLD":"展開","WHIZARD_MONITORING.COLLAPSE_CLUSTER_LIST":"收起集群列表","WHIZARD_MONITORING.UNFOLD_CLUSTER_LIST":"展開集群列表","WHIZARD_MONITORING.RESOURCE_FILTER":"資源查詢","WHIZARD_MONITORING.OBSERVABILITY_ALL_CLUSTERS":"全部集群","WHIZARD_MONITORING.SUCCEEDED":"Succeeded","PERSISTENT_VOLUME_CLAIM_LOW_PL":"Persistent volume claims","GRAPHICS_MEMORY_USAGE":"Graphics Memory Usage","QUOTA_REQUEST":"Request","QUOTA_LIMIT":"Limit","QUOTA_TOTAL":"Total","CPU_QUOTA_USAGE":"Allocated CPU Resource","MEMORY_QUOTA_USAGE":"Allocated Memory Resource","QUOTA_ALLOCATED":"Allocated","VALUE_CORES":"{value, plural, =1 {1 core} other {# cores}}","VALUE_UNIT":"{value} {unit}","ALLOCATED_TOTAL":"Allocated/Total","CLUSTER_ROLES_AND_MEMBERS":"Cluster Members and Roles","CLUSTER_MEMBER_SCAP":"Cluster member","CLUSTER_MEMBERS_SCAP":"Cluster members","CLUSTER_ROLE_SCAP":"Cluster role","CLUSTER_ROLES_SCAP":"Cluster roles","OBSERVABILITY_CENTER":"Whizard Observability Center","DISTRIBUTED_OBSERVABILITY_CENTER_DESC":"Unified monitoring dashboard that provides metrics of all clusters managed by the platform.","GLOBAL_ALERTS":"Global Alerts","GLOBAL_ALERTS_TOOLTIP":"Only the alarms of the selected cluster are collected","NONE_ALERT":"No Alert Found","ALERT_EMPTY_DESC":"No global alert is found in the clusters.","SORT_BY_CLUSTER_CPU_USAGE":"Sort by CPU usage","SORT_BY_CLUSTER_CPU_UTILISATION":"Sort by CPU usage (%)","SORT_BY_CLUSTER_MEMORY_USAGE_WO_CACHE":"Sort by memory usage","SORT_BY_CLUSTER_MEMORY_UTILISATION":"Sort by memory usage (%)","SORT_BY_CLUSTER_DISK_SIZE_USAGE":"Sort by disk usage","SORT_BY_CLUSTER_DISK_SIZE_UTILISATION":"Sort by disk usage (%)","SORT_BY_CLUSTER_POD_COUNT":"Sort by the number of container groups","SORT_BY_CLUSTER_POD_UTILISATION":"Sort by pod quota usage (%)","SORT_BY_NODE_POD_COUNT":"Ranked by the number of container groups","SORT_BY_NODE_CPU_USAGE":"Sort by CPU usage","SORT_BY_NODE_MEMORY_USAGE_WO_CACHE":"Sort by memory usage","SORT_BY_NODE_LOAD5":"Sort by 5-minute CPU load average","SORT_BY_NODE_LOAD15":"Sort by 15-minute CPU load average","SORT_BY_POD_CPU_USAGE":"Sort by CPU usage","SORT_BY_POD_CPU_USED_REQUESTS_UTILISATION":"Sort by allocated CPU request (%)","SORT_BY_POD_CPU_USED_LIMITS_UTILISATION":"Sort by allocated CPU limit (%)","SORT_BY_POD_MEMORY_USAGE_WO_CACHE":"Sort by memory usage","SORT_BY_POD_MEMORY_USED_REQUESTS_UTILISATION":"Sort by allocated memory request (%)","SORT_BY_POD_MEMORY_USED_LIMITS_UTILISATION":"Sort by allocated memory limit (%)","SORT_BY_POD_NET_BYTES_TRANSMITTED":"Sort by outbound traffic","SORT_BY_POD_NET_BYTES_RECEIVED":"Sort by inbound traffic","SORT_BY_POD_PVC_BYTES_USAGE":"Sort by persistent volume usage","SORT_BY_POD_PVC_BYTES_UTILISATION":"Sort by persistent volume usage (%)","SORT_BY_NAMESPACE_CPU_USED_REQUESTS_UTILISATION":"Sort by allocated CPU request (%)","SORT_BY_NAMESPACE_CPU_USED_LIMITS_UTILISATION":"Sort by allocated CPU limit (%)","SORT_BY_NAMESPACE_MEMORY_USED_REQUESTS_UTILISATION":"Sort by allocated memory request (%)","SORT_BY_NAMESPACE_MEMORY_USED_LIMITS_UTILISATION":"Sort by allocated memory limit (%)","SORT_BY_NAMESPACE_PVC_BYTES_USED":"Sort by persistent volume usage","SORT_BY_NAMESPACE_PVC_COUNT":"Sort by number of pods","SORT_BY_POD_GPU_USAGE":"Sort by GPU usage","SORT_BY_POD_GPU_MEMORY_USAGE":"Sort by graphics memory usage","CPU_USAGE_TCAP":"CPU Usage","CPU_UTILISATION_TCAP":"CPU Usage (%)","MEMORY_USAGE_TCAP":"Memory Usage","MEMORY_UTILISATION_TCAP":"Memory Usage (%)","DISK_SIZE_USAGE_TCAP":"Disk Usage","DISK_SIZE_UTILISATION_TCAP":"Disk Usage (%)","POD_COUNT_TCAP":"Pods","NODE_POD_UTILISATION_TCAP":"Pod Quota Usage (%)","NODE_LOAD1_TCAP":"Average CPU Load (1 min)","NODE_LOAD5_TCAP":"Average CPU Load (5 min)","NODE_LOAD15_TCAP":"Average CPU Load (15 min)","INODE_USAGE_TCAP":"Inode Usage (%)","METER_NET_RECEIVED_USAGE_TCAP":"Inbound Traffic","METER_NET_TRANSMITTED_USAGE_TCAP":"Outbound Traffic","CPU_USED_REQUESTS_UTILISATION_TCAP":"Allocated CPU Request (%)","CPU_USED_LIMITS_UTILISATION_TCAP":"Allocated CPU Limit (%)","MEMORY_USED_REQUESTS_UTILISATION_TCAP":"Allocated Memory Request (%)","MEMORY_USED_LIMITS_UTILISATION_TCAP":"Allocated Memory Limit (%)","PVC_BYTES_USED_TCAP":"Persistent Volume Usage","PVC_BYTES_UTILISATION_TCAP":"Persistent Volume Usage (%)","POD_UTILISATION_TCAP":"Pod Quota Usage (%)","GPU_USAGE":"GPU Usage","GPU_UTILIZATION":"GPU Usage (%)","GPU_MEMORY_USAGE":"Graphics Memory Usage","GPU_MEMORY_USAGE_TCAP":"Graphics Memory Usage","GPU_MEMORY_UTILIZATION":"Graphics Memory Usage (%)","NODE_GPU_UTILIZATION":"GPU Usage (%)","NODE_GPU_MEMORY_UTILIZATION":"Graphics Memory Usage (%)","GPU_USAGE_TCAP":"GPU Usage","SORT_BY_DESC":"Descending","SORT_BY_ASC":"Ascending","OOM_KILL_PODS":"OOM killed pods","PENDING_PODS":"Pending pods","EVICTED_PODS":"Evicted pods","QOS_GUARANTEED":"Guaranteed: For every container in a pod, the CPU/memory request and limit are equal.","QOS_BURSTABLE":"Burstable: Criteria of Guaranteed is not met and at least one container has a request or limit.","QOS_BESTEFFORT":"BestEffort: No requests or limits are set.","COMPONENT_PARAMETER_CONFIG":"Component Settings","LICENSE":"License","LICENSE_DESC":"View information about the current license and update the license when necessary.","ACTIVATED":"Activated","INACTIVATED":"Not activated","EXPIRED":"Expired","LICENSE_ID":"License ID","AUTHORIZED_ORGANIZATION":"Authorized organization","AUTHORIZATION_TYPE":"Authorization type","AUTHORIZED_STATUS":"Authorized status","ACTIVATION_TYPE":"Activation type","WARRANTY":"Warranty","WARRANTY_PERIOD":"Under warranty","WARRANTY_EXPIRES":"Warranty expired","SUBSCRIPTION":"Subscription","SUBSCRIPTION_IN_PROGRESS":"Subscribed","SUBSCRIPTION_EXPIRES":"Subscription expired","PERMANENT_AUTHORIZATION":"Permanent Authorization","ACTIVATION_TIME":"Activation time","UPDATE_LICENSE":"Update License","ACTIVATION_CODE":"Activation Code","OBTAIN_ACTIVATION_CODE":"Obtain Activation Code","OBTAIN_ACTIVATION_CODE_DESC":"Visit {title} to obtain the license.","INVALID_LICENSE":"Invalid License","PRODUCT_SERVICE_AUTHORIZATION":"KubeSphere Enterprise Authorization","INVALID_ACTIVATION_CODE_DESC":"Invalid activation code. Please enter a Base64 string in JSON format.","EMPTY_LICENSE":"Invalid license.","INVALID_SIGNATURE":"Invalid signature.","FORMAT_ERROR":"Invalid activation code. Please enter a Base64 string in JSON format.","AUTHORIZED_FEATURES":"Authorized Features","FEATURE":"Feature","CURRENT_USER":"Current user","ADD_CURRENT_USER":"Add current user","NOTIFICATION_HISTORY":"Notification History","NOTIFICATION_HISTORY_PL":"Notification History","NOTIFICATION_HISTORY_DESC":"View notifications that have been sent to users.","ALERTING_NAME_TCAP":"Alert Name","ALERTING_TYPE_TCAP":"Alert Type","ALERTING_SEVERITY_TCAP":"Alert Severity","NOTIFICATION_MESSAGE":"Message","NOTIFICATION_TIME":"Notification Time","METRIC_ALERT":"Metric alert","EVENT_ALERT":"Event alert","AUDIT_ALERT":"Audit alert","LOGGING_ALERT":"Logging alert","ALERT_RESOLVED":"Resolved","NOTIFICATION_SETTINGS":"Notification Settings","SILENCE_POLICY":"Silence Policy","SILENCE_POLICY_LOW":"silence policy","SILENCE_POLICY_PL":"Silence Policies","SILENCE_POLICY_DESC":"Set the system not to send notifications under certain circumstances.","SILENCE_TIME":"Silence Time","CONTINUOUS_SILENCE":"Silent continuously","PERIODIC_SILENCE":"Silent periodically","SPECIFIC_TIME_RANGE_SILENCE":"Silent during time range","CUSTOM_SILENCE":"Silent based on cron expression","SILENCE_CONDITIONS":"Silence Conditions","ALL_SILENT_NOTIFICATIONS":"Silent for all notifications","CUSTOM_SILENT_NOTIFICATIONS":"Custom silence conditions","EDIT_SILENCE_CONDITIONS":"Edit Silence Conditions","EDIT_SILENCE_TIME":"Edit Silence Time","CREATE_SILENCE_POLICY_SUCCESSFULLY":"Created successfully.","EDIT_SILENCE_POLICY_SUCCESSFULLY":"Updated successfully.","CREATE_SILENCE_POLICY":"Create Silence Policy","ALL_SILENT_NOTIFICATIONS_TCAP":"Silent for All Notifications","ALL_SILENT_NOTIFICATIONS_DESC":"The silence policy applies to all notifications.","CUSTOM_SILENT_NOTIFICATIONS_TCAP":"Custom Silence Conditions","CUSTOM_SILENT_NOTIFICATIONS_DESC":"The silence policy applies only to notifications that meet specified conditions.","INVALID_SILENCE_CONDITION":"Please set a correct silence condition.","SILENT_TEMPLATE":"Template","SILENCE_TIME_TYPE_DESC":"Notifications that meet the silence conditions will be silenced during the specified time range.","SILENT_CRON":"Cron Expression","SILENCE_TIME_RANGE_EMPTY_DESC":"Please set the time range during which notifications are silenced.","SELECT_START_TIME_AND_END_TIME":"Select the start time and end time during which notifications are silenced.","SILENCE_DATE":"Date","SELECT_DATE":"Please select a date.","SILENCE_EVERY_DAY":"Every day","SILENCE_EVERY_WEEK":"Every week","SILENCE_EVERY_MONTH":"Every month","MONDAY":"Monday","TUESDAY":"Tuesday","WEDNESDAY":"Wednesday","THURSDAY":"Thursday","FRIDAY":"Friday","SATURDAY":"Saturday","SUNDAY":"Sunday","DAY":"day","HOUR":"Hour","MINUTE":"Minute","SECOND":"Second","CRON_EXPRESSION":"Cron Expression","CRON_EXPRESSION_DESC":"Enter a cron expression to specify the silence period.","CRON_EXPRESSION_REQUIRE_DESC":"Please enter a cron expression.","CRON_EXPRESSION_ERROR_DESC":"Invalid cron expression. Please enter a valid cron expression.","EVERY_DAY_TIMERANGE":"Every day: {timeRange}","EVERY_WEEK_DAYS_TIMERANGE":"Every week: {days} [{timeRange}]","EVERY_MONTH_DAYS_TIMERANGE":"Every month: {days} [{timeRange}]","NOTIFICATION_LANGUAGE":"Notification Language","NOTIFICATION_LANGUAGE_DESC":"Set the language of keys in notifications. Notifications are provided as key-value pairs.","NOTIFICATION_SIMPLIFIED_CHINESE_DESC":"Use simplified Chinese keys in notifications.","NOTIFICATION_ENGLISH_DESC":"Use English keys in notifications.","NOTIFICATION_LANGUAGE_CHANGE_SUCCESS":"Changed successfully.","PLATFORM_LOGO":"Platform Logo","PLATFORM_LOGO_REQUIRED":"Please upload a platform logo.","BROWSER_FAVICON":"Browser Favicon","BROWSER_FAVICON_REQUIRED":"Please upload a platform favicon.","LOGIN_BACKGROUND":"Login Page Background Image","NO_BACKGROUND":"No Background Image Found","NO_BACKGROUND_TIP":"Please click \"Customize Platform Information\" to upload a background image.","MODIFY_PLATFORM_INFO":"Customize Platform Information","PLATFORM_TITLE_TCAP":"Platform Title","PLATFORM_DESCRIPTION_TCAP":"Platform Description","PLATFORM_TITLE_TIP":"The platform title can contain any characters. The maximum length is 63 characters.","TITLE_EMPTY_TIP":"Please enter a platform title.","PLATFORM_LOGO_DESC":"The image format can be SVG, PNG, or JPG, the image file size cannot exceed 2 MB, and the recommended image resolution is 200 x 40 pixels.","BROWSER_FAVICON_DESC":"The image format can be ICO, SVG, PNG, or JPG, the image file size cannot exceed 2 MB, the recommended image resolution is 40 x 40 pixels, and the recommended aspect ratio is 1:1.","LOGIN_BACKGROUND_DESC":"The image format can be SVG, PNG, or JPG, the image file size cannot exceed 2 MB, and the recommended image resolution is 1920 x 1080 pixels.","UPLOAD_PLATFORM_IMAGE_FAILED":"Upload failed. {message}","UPLOAD_FILE_TOO_LARGE":"The image file size cannot exceed 2 MB. Please select another image file.","RESET_PLATFORM_INFO":"Reset Platform Information","RESET_PLATFORM_INFO_TIP":"Are you sure you want to reset the platform information?","SCALING_OBJECT":"Scalable Objects","LAST_SCALING_TIME":"Update Time","POLLING_INTERVAL":"Polling Interval","WAITING_TIME":"Waiting Time","TIME_ZONE":"Time zone","CORN_DESC":"Auto scaling according to the cron plan. ","SCALING_CUSTOM_DESC":"Auto scaling according to custom metrics. ","TOGGLER_PARAMS":"Trigger Parameters","TOGGLER_AUTHOR":"Trigger Authentication","INDICATOR_NAME":"Metric","EXPRESSION":"Expression","SCALING_Prometheus_DESC":"Auto scaling according to Prometheus. ","INDICATOR_TYPE":"Indicator type","TRIGGER":"Trigger","LABEL_KEY_VALUE_CANNOT_BE_EMPTY":"The key and value of the type cannot be empty.","TRIGGER_AUTHENTICATION_KEY_EQ_NAME":"The key of the trigger authentication must be name.","CUSTOM_SCALING_PL":"Custom Scaling","CUSTOM_SCALING_LOW":"Custom scaling","CUSTOM_SCALING_DESC":"Custom scaling automatically scales pods on demand to help optimize resource usage and costs. ","CUSTOM_SCALING_EMPTY_DESC":"Please create custom scaling.","CUSTOM_SCALING":"Custom Scaling","SCALER":"Scaler","STRETCH_OBJECT_READY":"ScaledObject Ready","TRIGGER_ACTIVE":"Active Triggers","RETRACTOR_FALLBACK":"Rollback","STRETCH_OBJECT_READY_DESC":"Whether the ScaledObject is ready for scaling","TRIGGER_ACTIVE_DESC":"Whether the ScaledObject has been scaled","RETRACTOR_FALLBACK_DESC":"Whether the scaler is able to fetch metrics from the source","EDIT_SCALING_SETTINGS":"Edit Scaling","SCALING_SETTINGS":"Scaling Settings","DISABLE_REPLICAS_SETTING":"Disable the number of replicas setting","WORKLOAD_SCALING_TOOL_TIP":"The horizontal autoscaling policy of pods with custom metrics has been set.","EDIT_CUSTOM_SCALING":"Edit Custom Scaling","ENV_CONTAINER":"env source container","ADD_WORKLOAD":"Add Workload","ADD_WORKLOAD_DESC":"Set up deployments and stateful replica sets as custom ScaledObjects.","EMPTY_SCALING_OBJECT_MESSAGE":"The scaledObject cannot be empty","PERCENT":"Percentage","EXPANSION_VALUE":"Scale-Up Value","STABILIZATION_WINDOW_SECONDS":"Stablization Window (s)","STABILIZATION_WINDOW_SECONDS_DESC":"The stabilization window is used to restrict the fluctuation of replicas count when the metrics used for scaling keep fluctuating.","POLICY_TYPE":"Policy Type","POLICY_PREFERENCE":"Policy Preference","POLICY_PREFERENCE_DESC":"The scaler adopts different policies according to your preference.","POLICY_TYPE_DUPLICATED":"Cannot configure multiple policies of the same type. ","TENDS_TO_SCALE_SIGNIFICANTLY":"Scale greatly","TENDS_TO_EXPAND_SLIGHTLY":"Scale slightly","SCALE_DISABLE":"Disable","EXPANSION_STRATEGY":"Scale-Up Policy","SCALING_STRATEGY":"Scale-Down Policy","EMPTY_POLICY_MESSAGE":"The configuration of the policy cannot be empty. ","TIME_ZONE_DESC":"Set the minimum number of container group replicas allowed, the default value is 0. ","REPLICAS_DESIRED_CRON_TRIGGER_DESC":"Number of replicas to which the resources must be scaled between the time range when a cron schedule starts and ends.","CRON_START":"Start","CRON_END":"End","CRON_START_DESC":" Cron expression directing the start of the cron schedule.","CRON_END_DESC":"Cron expression directing the end of the cron schedule.","EMPTY_TYPE_TRIGGER":"The value of type cannot be null.","ADD_TRIGGER":"Add Trigger","ADD_TRIGGER_DESC":"Add triggers according to the required metrics.","TRIGGER_TYPE":"Trigger Type","PROMETHUS_ADDRESS":"Promethus service address.","INDICATOR_NAME_PROMETHUS_DESC":"If multiple triggers are used, metric names must be unique. ","EXPRESSION_PROMETHUS_DESC":"Set the query expression.","THRESHOLD_PROMETHUS_DESC":"Set the threshold when the trigger start scaling.","SCALE_MINIMUM_REPLICAS_DESC":"Set the minimum number of pod replicas allowed, and the default value is 0.","SCALE_MAXIMUM_REPLICAS_DESC":"Set the maximum number of pod replicas allowed, and the default value is 1.","POLLING_INTERVAL_DESC":"Check the time interval for each trigger. By default, KEDA will check every trigger source on every ScaledObject every 30 seconds.","WAITING_TIME_DESC":"The period to wait after the last trigger reported active before scaling the resource back to 0. The default is 5 minutes (300 seconds). ","SCALE_ROLL_BACK_DESC":"Define the number of replicas to roll back if the scaler is faulty.","SCALE_FAILURE_THRESHOLD_DESC":"Limit the consecutive periods of time when each scaler fails to fetch metrics from its source.","EMPTY_FAILURE_THRESHOLD":"The failure threshold cannot be empty. ","FALLBACK_NUMBER":"Rollback Replicas","FALLBACK_NUMBER_DESC":"Number of rollback replicas after scaler failures exceed the threshold.","EMPTY_FALLBACK_NUMBER_DESC":"The number of rollback replicas cannot be empty.","TRIGGER_SETTING":"Trigger Settings","TRIGGER_SETTING_DESC":"Set the trigger for custom metrics.","RESTORE_TO_ORIGINAL_REPLICA_COUNT":"Restore to the original number of replicas","RESTORE_TO_ORIGINAL_REPLICA_COUNT_DESC":"Specify whether the number of replicas should be restored to the original after the target ScaledObject has been deleted. By default, the number of replicas equals to the number when the ScaledObject has been deleted.","SCALE_BEHAVIOR":"Scaling Behavior","SCALE_BEHAVIOR_DESC":"Configure the scaling behavior of the target ScaledObject.","CREATE_CUSTOM_SCALING":"Create Custom Scaling","CRON_TIME_ZONE_DESC":"One of the acceptable values in the IANA Time Zone Database.","PROMETHEUS_MIN_REPLICA_COUNT_DESC":"If the type the trigger is Prometheus, the minimum number of replicas must be greater than 0.","MIN_REPLICA_COUNT_LESS_THAN_MAX":"The minimum number of replicas cannot be greater than the maximum number of replicas.","RADONDB_APPS":"RadonDB Apps","RADONDB_APPS_DESC":"The RadonDB cloud-native apps provide enterprise-grade database services and products including relational databases, distributed databases, time series and analytical databases, and NoSQL databases.","WHAT_ARE_RADONDB_APPS":"What are RadonDB apps?","ACCESS_ADDRESS_PL":"Access Addresses","DATABASE_STATUS_FAILED":"Failed","DATABASE_STATUS_RUNNING":"Running","DATABASE_STATUS_UPDATING":"Updating","DATABASE_STATUS_CREATING":"Creating","DATABASE_STATUS_TRUE_NOTREADY":"Not ready","DATABASE_STATUS_TRUE_READY":"Ready","DATABASE_STATUS_CREATE_FAILED":"Creation failed","DATABASE_STATUS_UPDATE_FAILED":"Update failed","DATABASE_STATUS_DELETED":"Deleted","DATABASE_STATUS_COMPLETED":"Completed","DATABASE_STATUS_TERMINATING":"Terminating","READ_AND_WRITE_ADDRESS":"Read and Write Address","READ_ONLY_ADDRESS":"Read Only Address","KIBANA_ADDRESS":"Kibana Address","DASHBOARD_ADDRESS":"Dashboard Address","PRIMARY_ADDRESS":"Primary Address","STANDBY_ADDRESS":"Standby Address","DATABASE_OPERATION_WARNING":"This operation may interrupt the database service. Please perform this operation during off-peak hours.","VOLUME":"Volume","NODE_ROLE":"Node Role","CANNOT_REDUCE_VOLUME_SIZE":"The volume size cannot be reduced.","SCALE_OUT":"Scale Out","CANNOT_REDUCE_DATABASE_NODES":"The number of database nodes cannot be reduced.","MYSQL_NODES_DESC":"Number of database nodes. The value can be 2, 3, or 5.","REDIS_SENTINEL_NODES_DESC":"Number of database nodes. The value can be 3, 5, or 7.","MONGODB_NODES_DESC":"Number of database nodes.","NODE_COUNT_DESC":"Number of database nodes. The value range is {min} to {max}.","ADJUST_RESOURCES":"Adjust Resources","RESOURCES":"Resources","RESOURCES_DESC":"Set the CPU and memory resources allocated to the database service.","CORE_GIB":"{core, plural, =1 {1 core} other {# cores}}, {gib} GiB","BACK_UP":"Back Up","BACKUP_NAME_DESC":"The name can contain only lowercase letters, numbers, and hyphens (-), and must start with a lowercase letter. The maximum length is 24 characters.","INVALID_BACKUP_NAME_DESC":"Invalid name. The name can contain only lowercase letters, numbers, and hyphens (-), and must start with a lowercase letter. The maximum length is 24 characters.","BACKUP_NAME_EMPTY_DESC":"Please enter a backup name.","BACKUP_WARNING":"The backup process may cause pressure on database services. Please perform this operation during off-peak hours.","BACKUP_COMFIRM_TIP":"Are you sure you want to create a backup?","BACKUP_POSTGRE_SQL_TIP":"Ten backups are retained by default. If a retention policy is set during scheduled backup, the scheduled backup policy will be used first.","SET_AUTO_BACKUP":"Set Auto Backup","BACKUP_TIME":"Backup Time","BACKUP_DATE":"Backup Date","BACKUP_SCHEDULED_DELETE":"Delete Regularly","BACKUP_RETENTION_DAYS":"Retention Period","BACKUP_DAY":"Days","BACKUP_RETENTION_DAYS_ERROR":"The retention period must be set.","BACKUP_DATE_ERROR":"The backup date must be set.","REBALANCE_NODES":"Rebalance Nodes","POSTGRESQL_NODES_DESC":"The value range is 1 to 8.","REBALANCE_SUCCESS":"Rebalanced successfully.","REBALANCE_FAILED":"Rebalancing failed.","REBALANCING":"Rebalancing","START_REBALANCING":"Start Rebalancing","REBALANCING_HISTORY":"Rebalancing History","REBALANCING_IN_PROGRESS_DESC":"Node rebalancing is in progress. Please wait until node rebalancing is complete.","KAFKA_OPERATION_WARNING":"This operation may interrupt the Kafka service. Please perform this operation during off-peak hours.","UPDATE_VERSION":"Upgrade Version","UPDATE_VERSION_DESC":"Are you sure you want to upgrade this resource?","SHARD":"Shard","SHARD_PL":"Shards","PROXY_NODE":"Proxy Node","NODE_IP_ADDRESS_SCAP":"Node IP address","NODE_PORT":"Node port","NO_DATABASE_CONNECTION_AVAILABLE":"No Database Connection Available","MANAGEMENT_NODE":"Management Node","PRIMARY_NODE":"Primary node","PRIMARY_NODE_PL":"Primary nodes","HOT_NODE":"Hot node","HOT_NODE_PL":"Hot nodes","WARM_NODE":"Warm node","WARM_NODE_PL":"Warm nodes","COLD_NODE":"Cold node","COLD_NODE_PL":"Code nodes","KIBANA_NODE":"Kibana node","KIBANA_NODE_PL":"Kibana nodes","KAFKA_NODE":"Kafka node","KAFKA_NODE_PL":"Kafka nodes","KAFKA_RESOURCES":"Kafka resources","ZOOKEEPER_NODE":"ZooKeeper node","ZOOKEEPER_NODE_PL":"ZooKeeper nodes","LOGSTASH_NODE":"Logstash node","DASHBOARD_NODE":"Dashboard node","ZOOKEEPER_RESOURCES":"ZooKeeper resources","STANDBY_NODE":"Standby node","STANDBY_NODE_PL":"Standby nodes","SENTINEL_NODE":"Sentinel node","DATABASE_RUNNING_FOR_VALUE":"The database has been running for {value}.","BACKUPS":"Backups","BACKUP":"Backup","BACKUP_LOW":"backup","BACKUP_PL":"Backups","RESTORE_FROM_BACKUP":"Restore from Backup","BACKUP_IN_PROGRESS_DESC":"Cluster backup is in progress.","SIZE_GIB":"Size (GiB)","BACKUP_START_TIME":"Backup Start Time","BACKUP_END_TIME":"Backup End Time","CREATE_BACKUP":"Create Backup","BACKUP_NOT_ALLOWED_DESC":"Data backup is not allowed currently.","DATABASE_USERS":"Database Users","DATABASE_USERS_EMPTY_DESC":"Add a user to access the database","NO_AUTHENTICATION_DESC":"The authentication type of the database cluster is \"No authentication\". To control uesr access permissions, please change the value of \"Authentication Type\" on the \"Parameters\" tab.","KAFKA_USERS":"Kafka Users","USERCREATION_NOT_ALLOWED":"User creation is not allowed currently.","CANNOT_EDIT_ROOT_USER":"This user is the root user and cannot be edited.","CANNOT_DELETE_ROOT_USER":"This user is the root user and cannot be deleted.","SECRET_KEY":"Secret Key","USER_CERTIFICATE":"User Certificate","VALIDITY_PERIOD":"Validity Period","CA_CERTIFICATE":"CA Certificate","CA_PASSWORD":"CA Password","AUTHORIZATION_RULE":"Authorization Rule","KAFKA_NO_AUTHENTICATION_DESC":"The authentication type of the Kafka cluster is \"No authentication\". To access Kafka as a user, please change the value of \"Authentication Type\" on the \"Parameters\" tab.","KAFKA_NO_USER_DESC":"Create a user to access Kafka.","DELETE_USER":"Delete User","DATABASE_USERNAME_DESC":"The username can contain only uppercase letters, lowercase letters, numbers, and underscores (_), and must start with an uppercase or lowercase letter. The length must be 2 to 26 characters.","INVALID_DATABASE_USERNAME_DESC":"Invalid username. The username can contain only uppercase letters, lowercase letters, numbers, and underscores (_), and must start with an uppercase or lowercase letter. The length must be 2 to 26 characters.","PG_USERNAME_DESC":"The username can contain only lowercase letters, numbers, and underscores (_), and must start with a lowercase letter. The length must be 2 to 26 characters.","INVALID_PG_USERNAME_DESC":"Invalid username. The username can contain only lowercase letters, numbers, and underscores (_), and must start with a lowercase letter. The length must be 2 to 26 characters.","DATABASE_PASSWORD_DESC":"The password must contain at least one uppercase letter, one lowercase letter, one number, and one special character (!@#$%^&*_+-=). The length must be 8 to 32 characters.","DATABASE_PASSWORD_CHARACTERS":"The password must contain at least one special character (!@#$%^&*_+-=).","DATABASE_PASSWORD_CHARACTERS_EXCLUDE":"Special characters in the password can only be !@#$%^&*_+-=.","INVALID_DATABASE_PASSWORD_DESC":"Invalid password. The password must contain at least one uppercase letter, one lowercase letter, one number, and one special character (!@#$%^&*_+-=). The length must be 8 to 32 characters.","USERNAME_FORBIDDEN_STRINGS":"The username cannot be root or start with radondb_.","USERNAME_CANNOT_BE_PROGRES":"The username cannot be postgres, pgautofailover_monitor, or pgautofailover_replicator.","USERNAME_CANNOT_BE_CLICKHOUSE":"The username cannot be clickhouse_operator.","KAFKA_USERNAME_DESC":"The username can contain only lowercase letters, numbers, and hyphens (-). The maximum length is 64 characters.","PERMISSIONS":"Permissions","GENERAL_PERMISSIONS":"General permissions","ADVANCED_PERMISSIONS":"Advanced permissions","AUTHENTICATION_MODE":"Authentication Mode","AUTHENTICATION_MODE_INCORRECT_DESC":"The authentication mode is inconsistent with that of the database cluster. The user cannot access the database cluster.","AUTHENTICATION_MODE_INCORRECT_ALERT":"The authentication mode of the database cluster is {cluster}. If the authentication mode of the user is set to {user}, the user cannot access the database cluster.","AUTHORIZATION_MODE":"Authorization Mode","SIMPLE_AUTHORIZATION":"Simple authorization","AUTHORIZATION_MODE_DESC":"Currently, only simple authorization is supported.","AUTHORIZED_DATABASES":"Authorized Databases","AUTHORIZED_DATABASES_DESC":"Databases that the user can access. Enter * (all databases) or a database name.","AUTHORIZED_HOSTS":"Authorized Hosts","AUTHORIZED_HOSTS_DESC":"Hosts that the user can access. Enter % (all hosts), an IP address, or multiple IP addresses separated by commas (,).","PERMISSION_RULE":"Permission Rule","PERMISSION_RULE_DESC":"You can add multiple permission rules for the user.","RESOURCE_TYPE_DESC":"Resource type to which the rule applies.","RESOURCE_MATCHING_MODE":"Resource Matching Mode","RESOURCE_MATCHING_MODE_DESC":"Matching mode for resource names.","PREFIX_DESC":"Prefix matching, applies the rule to all resources whose names start with this value.","LITERAL_DESC":"Literal matching, can be set to *, indicating that the rule applies to all resources.","PREFIX":"Prefix","LITERAL":"Literal","OPERATION":"Operation","OPERATION_DESC":"Select an operation to which the rule applies.","DATABASE_OPERATION_READ":"Read","DATABASE_OPERATION_WRITE":"Write","DATABASE_OPERATION_DELETE":"Delete","DATABASE_OPERATION_ALTER":"Alter","DATABASE_OPERATION_DESCRIBE":"Describe","DATABASE_OPERATION_ALL":"All","DATABASE_OPERATION_IDEMPOTENTWRITE":"Idempotent write","DATABASE_OPERATION_CLUSTERACTION":"Cluster action","DATABASE_OPERATION_CREATE":"Create","DATABASE_OPERATION_ALTERCONFIGS":"Alter configs","DATABASE_OPERATION_DESCRIBECONFIGS":"Describe configs","ALLOW":"Allow","RULE_TYPE_DESC":"Currently, the rule type can only be \"Allow\".","GROUP":"Group","TRANSACTION_ID":"Transaction ID","ACL_DESC":"Set ACL to control permissions of the user according to official Redis rules.","TOPICS":"Topics","MESSAGE_RETENTION_TIME":"Message Retention Time","EDIT_TOPIC":"Edit Topic","TOPIC_CREATION_NOT_ALLOWED":"Topic creation is not allowed currently.","NO_TOPIC_FOUND":"No Topic Found","TOPIC_EMPTY_DESC":"Please create a topic.","CREATE_TOPIC":"Create Topic","TOPIC_NAME_DESC":"The name can contain only lowercase letters, numbers, and hyphens (-), and must start with a lowercase letter. The maximum length is 24 characters.","INVALID_TOPIC_NAME_DESC":"Invalid name. The name can contain only lowercase letters, numbers, point (.), and hyphens (-), and must start with a lowercase letter. The maximum length is 100 characters.","TOPIC_NAME_EMPTY_DESC":"Please enter a topic name.","PARTITION_COUNT":"Partitions","COMPACT":"Compact","INVALID_PARTITION_COUNT_DESC":"Invalid number of partitions. The value cannot be less than {min} or greater than {max}.","TOPIC_REPLICA_COUNT_DESC":"The number of replicas cannot exceed the number of nodes in the Kafka cluster.","CLEANUP_POLICY_DESC":"Whether to delete outdated logs or compress logs by key (Kafka Connect needs to use the compact mode).","CLEANUP_POLICY_DELETE":"Delete","CLEANUP_POLICY_COMPACT":"Compact","MIN_INSYNC_REPLICAS_DESC":"Minimum number of replicas when request.required.acks of the producer is set to 1.","UNCLEAN_LEADER_ELECTION_ENABLE_DESC":"Whether to allow a replica that does not belong to the ISR to be elected as a leader.","SEGMENT_MS_DESC":"Maximum time in milliseconds before a segment is rolled out. The minimum value is 86400000.","RETENTION_MS_DESC":"Time in milliseconds before deleting a log file.","RETENTION_BYTES_DESC":"Maximum size of a log before deleting it. If both retention.ms and retention.bytes are set, the log will be deleted when either of the thresholds is reached. The value -1 indicates that all logs are retained.","MAX_MESSAGE_BYTES_DESC":"Maximum message size at the topic level. If no value is provided, the instance-leval maximum message size 1 MB is used.","ALERT_RULE_GROUP_PL":"Alert Rule Groups","PARAMETER":"Parameter","RANGE":"Range","AUTO_RESTART":"Auto Restart","ALERTING_POLICY_CREATION_NOT_ALLOWED":"Alert rule group creation is not allowed currently.","EDIT_NOT_ALLOWED":"Parameter editing is not allowed currently.","DBPARAM_DATABASE_VERSION":"Kernel Version","DBPARAM_DATABASE_VERSION_DESC":"Database kernel version.","DBPARAM_FSYNC_DESC":"Whether the PostgreSQL server will ensure (if possible) that updates are physically written to disks.","DBPARAM_SHARED_BUFFERS_DESC":"Memory in MB used by the database server as shared buffers.","DBPARAM_TEMP_BUFFERS_DESC":"Maximum size of memory in MB used by each database session as temporary buffers.","DBPARAM_WORK_MEM_DESC":"Maximum size of memory in MB used by query operations before data is written to temporary disk files.","DBPARAM_MAX_WAL_SENDERS_DESC":"Maximum number of WAL sender processes that run simultaneously.","DBPARAM_LOG_MIN_DURATION_STATEMENT_DESC":"Minimum execution time in milliseconds of logged statements.","DBPARAM_MAX_CONNECTIONS_DESC":"Maximum number of concurrent connections.","DBPARAM_WORKER_PROCESSES_DESC":"Maximum number of concurrent worker processes.","DBPARAM_CHECKPOINT_TIMEOUT_DESC":"Maximum interval in seconds between automatic WAL checkpoints.","DBPARAM_AUTOVACUUM_VACUUM_COST_DELAY_DESC":"Cost delay value in milliseconds for autovacuum operations.","DBPARAM_AUTOVACUUM_VACUUM_COST_LIMIT_DESC":"Cost limit value for autovacuum operations.","DBPARAM_AUTOVACUUM_ANALYZE_SCALE_FACTOR_DESC":"Fraction of the table size that triggers an ANALYZE operation of autovacuum.","DBPARAM_AUTOVACUUM_VACUUM_SCALE_FACTOR_DESC":"Fraction of the table size that triggers a VACUUM operation of autovacuum.","DBPARAM_VACUUM_DEFER_CLEANUP_AGE_DESC":"Delay of VACUUM and HOT cleanup operations, measured by the number of transactions.","DBPARAM_SEQ_PAGE_COST_DESC":"The planner's estimate of the cost of a sequential disk page fetch.","DBPARAM_RANDOM_PAGE_COST_DESC":"The planner's estimate of the cost of a non-sequential disk page fetch.","DBPARAM_CPU_TUPLE_COST_DESC":"The planner's estimate of the cost of processing each row during a query.","DBPARAM_CPU_INDEX_TUPLE_COST_DESC":"The planner's estimate of the cost of processing each index entry during an index scan.","DBPARAM_BGWRITER_DELAY_DESC":"Sleep time in milliseconds between activity rounds of the background writer.","DBPARAM_WAL_WRITER_DELAY_DESC":"Sleep time in milliseconds between activity rounds of the WAL writer.","DBPARAM_WAL_WRITER_FLUSH_AFTER_DESC":"Amount of WAL in MB written by the WAL writer that triggers a flush.","DBPARAM_FULL_PAGE_WRITES_DESC":"Whether to set the PostgreSQL server to write the entire content of each disk page to WAL during the first modification of that page after a checkpoint.","DBPARAM_WAL_COMPRESSION_DESC":"Whether to set the PostgreSQL server to compress full pages written to WAL when full_page_writes is on or during a base backup.","DBPARAM_SYNCHRONOUS_COMMIT_DESC":"Amount of WAL processing that needs to be completed before the database server returns a sucess indication to the client.","DBPARAM_MAINTENANCE_WORK_MEM_DESC":"Maximum amount of memory in MB to be used for maintenance operations such as VACUUM, CREATE INDEX and ALTER TABLE ADD FOREIGN KEY.","DBPARAM_MAX_REPLICATION_SLOTS_DESC":"Maximum number of replication slots. Changing the value will cause the database service to restart.","DBPARAM_AUTOVACUUM_DESC":"Whether the server should run the autovacuum launcher daemon.","DBPARAM_VACUUM_COST_DELAY_DESC":"Amount of time that the process will sleep when the cost limit has been exceeded.","DBPARAM_AUTOVACUUM_NAPTIME_DESC":"Minimum delay between autovacuum runs on any given database.","DBPARAM_COMMIT_DELAY_DESC":"Delay in microseconds between transaction commit and flushing WAL to disks.","DBPARAM_COMMIT_SIBLINGS_DESC":"Minimum number of concurrent open transactions before performing commit_delay.","DBPARAM_LOG_MIN_MESSAGES_DESC":"Levels of messages that are written to the server log.","DBPARAM_BGWRITER_LRU_MAXPAGES_DESC":"Maximum number of LRU pages to be flushed by the background writer per round.","DBPARAM_BGWRITER_FLUSH_AFTER_DESC":"Whenever more than this amount of data (in KB) has been written by the background writer, attempts to force the OS to issue these writes to the underlying storage.","DBPARAM_STATEMENT_TIMEOUT_DESC":"Maximum allowed duration in microseconds of any statement. Statements that take more than this amount of time will be aborted.","DBPARAM_IDLE_IN_TRANSACTION_SESSION_TIMEOUT_DESC":"Maximum allowed idle time in microseconds between queries in a transaction. Sessions that have been idle for more than this amount of time will be terminated.","DBPARAM_LOG_STATEMENT_DESC":"Types of SQL statements to be logged.","DBPARAM_LOG_WAL_LEVEL_DESC":"Level of information written to the WAL.","DBPARAM_PG_PORT_DESC":"Port number that the PostgreSQL server listens on. The value cannot be 55555.","PG_PORT_FORBIDDEN_ERROR":"The port number cannot be 55555.","DBPARAM_JIT_DESC":"Whether JIT compilation (if available) can be used by PostgreSQL.","DBPARAM_AUDIT_LOG_POLICY_DESC":"Policy adopted by the audit log plugin when writing events to its log file.","DBPARAM_AUDIT_LOG_FORMAT_DESC":"Audit log file format.","DBPARAM_AUDIT_LOG_ROTATE_ON_SIZE_DESC":"Size of a single audit log file. If the value is not a multiple of 4096, the value is truncated to the nearest multiple of 4096.","DBPARAM_AUDIT_LOG_ROTATIONS_DESC":"Maximum number of audit log files.","DBPARAM_DEFAULT_STORAGE_ENGINE_DESC":"Default storage engine.","DBPARAM_INNODB_BUFFER_POOL_SIZE_DESC":"Buffer pool size. 80% of the memory can be allocated at most. If the value is set to -1, 60% of the memory is allocated. The value is always increased to an integer multiple of (innodb_buffer_pool_chunk_size x innodb_buffer_pool_instances).","DBPARAM_CHARACTER_SET_SERVER_DESC":"Default character set of the database server.","DBPARAM_EXPIRE_LOGS_DAYS_DESC":"Retention period of binary log files.","DBPARAM_LONG_QUERY_TIME_DESC":"Slow query time threshold. SQL statements that take more time than the value of this parameter are considered to be slow queries.","DBPARAM_MAX_CONNECT_ERRORS_DESC":"Maximum number of consecutive connection failures allowed before the database server blocks further connections from a host.","DBPARAM_WAIT_TIMEOUT_DESC":"Maximum number of seconds the database server waits for activity on a noninteractive connection before closing it.","DBPARAM_MAX_ALLOWED_PACKET_DESC":"Maximum packet size. If the value is not a multiple of 1024, the value will be truncated to a multiple of 1024. If you need to change the value, ensure that the value is less than or equal to the value of slave_pending_jobs_size_max. Otherwise, replication between the primary and standby nodes may become abnormal.","DBPARAM_SLAVE_PARALLEL_WORKERS_DESC":"Number of parallel replication threads.","DBPARAM_SKIP_NAME_RESOLVE_DESC":"Whether to forbid domain name resolution.","DBPARAM_AUTOCOMMIT_DESC":"Whether to enable the autocommit mode.","DBPARAM_TRANSACTION_ISOLATION_DESC":"Transaction isolation level.","DBPARAM_INNODB_FLUSH_METHOD_DESC":"InnoDB file flushing method.","DBPARAM_INNODB_USE_NATIVE_AIO_DESC":"Whether InnoDB uses the Linux asynchronous I/O subsystem.","DBPARAM_MONGODB_PORT_DESC":"Port number that the MongoDB server listens on.","DBPARAM_OPLOGSIZEMB_DESC":"Maximum size in MB of the oplog file.","DBPARAM_MAXINCOMINGCONNECTIONS_DESC":"Maximum number of simultaneous connections that mongos or mongod will accept.","DBPARAM_CURSORTIMEOUTMILLIS_DESC":"Expiration threshold in milliseconds for idle cursors before MongoDB removes them.","DBPARAM_PROFILINGMODE_MODE":"Whether to enable the profiling mode.","DBPARAM_SLOWOPTHRESHOLDMS_DESC":"Slow operation time threshold. Operations that take more time than the value of this parameter are considered to be slow operations.","DBPARAM_ENABLEMAJORITYREADCONCERN_DESC":"Whether to use the secure read policy. Changing the value will cause the database service to restart.","DBPARAM_COMMANDVERBOSITY_DESC":"Log message verbosity level for components related to commands.","DBPARAM_INDEXVERBOSITY_DESC":"Log message verbosity level for components related to indexing operations.","DBPARAM_QUERYVERBOSITY_DESC":"Log message verbosity level for components related to query operations.","DBPARAM_NETWORKVERBOSITY_DESC":"Log message verbosity level for components related to networking operations.","DBPARAM_WRITEVERBOSITY_DESC":"Log message verbosity level for components related to write operations.","DBPARAM_MAXMEMORY_DESC":"Maximum size of memory in MB avaiable to Redis.","DBPARAM_ACTIVEREHASHING_DESC":"Whether to enable active rehashing to save memory.","DBPARAM_APPENDONLY_DESC":"Whether to enable AOF persistence.","DBPARAM_APPENDFSYNC_DESC":"AOF sync policy.","DBPARAM_CLUSTER_NODE_TIMEOUT_DESC":"Maximum amount of time in milliseconds a Redis cluster node can be unavailable before it is considered failed.","DBPARAM_LATENCY_MONITOR_THRESHOLD_DESC":"Slow operation time threshold in milliseconds. Operations that take more time than the value of this parameter will be logged. The value 0 indicates that this feature is disabled.","DBPARAM_MAXCLIENTS_DESC":"Maximum number of client connections. The value 0 (default) indicates that the number of client connections is not limited.","DBPARAM_MAXMEMORY_POLICY_DESC":"Policy adopted by Redis when the amount of memory used by Redis reaches the limit.","DBPARAM_MAXMEMORY_SAMPLES_DESC":"Number of samples used for the Redis eviction algorithm when the amount of memory used by Redis reaches the limit.","DBPARAM_MIN_SLAVES_MAX_LAG_DESC":"The primary database allows write operations only when at least min-slaves-to-write standby databases exist and the network delays of the standby databases do not exceed the value of this parameter.","DBPARAM_MIN_SLAVES_TO_WRITE_DESC":"See the decription of min-slaves-max-lag.","DBPARAM_NO_APPENDFSYNC_ON_REWRITE_DESC":"Whether to block fsync() calls when a BGSAVE or BGREWRITEAOF operation is in progress.","DBPARAM_NOTIFY_KEYSPACE_EVENTS_DESC":"Types of notifications sent by Redis.","DBPARAM_REPL_BACKLOG_SIZE_DESC":"Size of replication backlog.","DBPARAM_REPL_BACKLOG_TTL_DESC":"Retention period of replication backlog.","DBPARAM_REPL_TIMEOUT_DESC":"Replication timeout interval.","DBPARAM_SET_MAX_INTSET_ENTRIES_DESC":"Intset encoding is used when a set consists entirely of Base10 64-bit signed integers and the number of elements in the set does not exceed the value of this parameter. ","DBPARAM_SLOWLOG_LOG_SLOWER_THAN_DESC":"Maximum operation execution time in microseconds. Operations that exceed the value of this parameter will be recorded in the slowlog.","DBPARAM_SLOWLOG_MAX_LEN_DESC":"Maximum length of the slowlog.","DBPARAM_HASH_MAX_ZIPLIST_ENTRIES_DESC":"Ziplist encoding is used when a hash object satisfies both of the following conditions: a) The length in bytes of each key and each value of the hash object does not exceed the hash-max-ziplist-value value; b) The number of key-value pairs in the hash object does not exceed the hash-max-ziplist-entries value.","DBPARAM_HASH_MAX_ZIPLIST_VALUE_DESC":"See the description of hash-max-ziplist-entries.","DBPARAM_LIST_MAX_ZIPLIST_ENTRIES_DESC":"Ziplist encoding is used when a list object satisfies both of the following conditions: a) The length in bytes of each element of the list object does not exceed the list-max-ziplist-value value; b) The number of elements in the list object does not exceed the list-max-ziplist-entries value.","DBPARAM_LIST_MAX_ZIPLIST_VALUE_DESC":"See the description of list-max-ziplist-entries.","DBPARAM_ZSET_MAX_ZIPLIST_ENTRIES_DESC":"Ziplist encoding is used when a zset object satisfies both of the following conditions: a) The length in bytes of each element of the zset object does not exceed the zset-max-ziplist-value value; b) The number of elements in the zset object does not exceed the zset-max-ziplist-entries value.","DBPARAM_ZSET_MAX_ZIPLIST_VALUE_DESC":"See the description of zset-max-ziplist-entries.","DBPARAM_LUA_TIME_LIMIT_DESC":"Lua script timeout limit in milliseconds. 0 or a negative value indicates that no timeout limit is used.","DBPARAM_IO_THREADS_DO_READS_DESC":"Whether to enable multi-thread reading.","DBPARAM_IO_THREADS_DESC":"Number of I/O threads.","DBPARAM_LOGFILE_DESC":"Whether to export log information to stdout or a log file.","DBPARAM_THREAD_POOL_WRITE_QUEUE_SIZE_DESC":"Write queue size of the thread pool.","DBPARAM_THREAD_POOL_SEARCH_QUEUE_SIZE_DESC":"Search queue size of the thread pool.","DBPARAM_ACTION_DESTRUCTIVE_REQUIRES_NAME_DESC":"Whether to forbid wildcards and _all during index deletion. You can set this parameter to false to allow wildcards and _all.","DBPARAM_HTTP_CORS_ENABLED_DESC":"Whether to enable cross-origin resource sharing.","DBPARAM_HTTP_CORS_ALLOW_ORIGIN_DESC":"Origins that can be used for cross-origin resource sharing.","DBPARAM_INDICES_FIELDDATA_CACHE_SIZE":"Maximum amount of heap space that can be used as the field datata cache.","DBPARAM_INDICES_MEMORY_INDEX_BUFFER_SIZE_DESC":"Size of heap space allocated to a node to be used as the indexing buffer shared across all shards. The value can be a percentage or byte size.","DBPARAM_INDICES_QUERIES_CACHE_SIZE_DESC":"Memory size for the filter cache. Accepts either a percentage value such as 5% or an exact value such as 512mb. The default value is 10%.","DBPARAM_INDICES_REQUESTS_CACHE_SIZE_DESC":"Size of the shard request cache managed at the node level. The default value is 1% of the heap space.","DBPARAM_REINDEX_REMOTE_WHITELIST_DESC":"Addresses of remote Elasticsearch nodes to be whitelisted so that reindexing is allowed. You can separate multiple addresses by commas (for example, otherhost:9200, 192.168.1.*:9200, localhost:*).","DBPARAM_CLUSTER_ROUTING_ALLOCATION_AWARENESS_ATTRIBUTES_DESC":"Attributes used for shard allocation awareness. The possible values are k8s_node_name and zone and you can separate two values by a comma.","DBPARAM_REPLICACOUNT_DESC":"Number of replicas for each shard. The value cannot be changed after the database cluster is created and the default value is 2.","DBPARAM_TCPPORT_DESC":"TCP port of the database cluster. The default value is 9000.","DBPARAM_HTTPPORT_DESC":"HTTP port of the database cluster. The default value is 8123.","DBPARAM_MAX_SERVER_MEMORY_USAGE":"Maximum amount of memory in bytes available to the ClickHouse server.","DBPARAM_MAX_MEMORY_USAGE":"Maximum amount of memory in bytes available to a single query of the ClickHouse server.","DBPARAM_AUTHENTICATION_TYPE":"Authentication Type","KAFKA_PARAMETERS":"Kafka parameters","KAFKA_USER_PARAMETERS":"User Quotas","ZOOKEEPER_PARAMETERS":"ZooKeeper parameters","KAFKA_EDIT_PARAMS_ERROR":"Failed to set parameters. When Authentication Type is set to TLS, TLS cannot be set to false.","DBPARAM_KAFKA_TLS_DESC":"Whether to enable TLS encryption.","DBPARAM_KAFKA_AUTHENTICATION_TYPE_DESC":"Authentication type of Kafka.","DBPARAM_NODE_PORT":"Node Port","DBPARAM_NODE_PORT_DESC":"Whether to enable KubeSphere node port for external access.","DBPARAM_LOG_RETENTION_BYTES_DESC":"Maximum size in bytes of a partition. The deletion policy will be triggered if a partition exceeds the limit.","DBPARAM_LOG_RETENTION_HOURS_DESC":"Maximum retention time in hours of a log file before deleting it.","DBPARAM_LOG_SEGMENT_BYTES_DESC":"Maximum size in bytes of a segment file.","DBPARAM_LOG_SEGMENT_DELETE_DELAY_MS_DESC":"Amount of time to wait before deleting a segment file.","DBPARAM_LOG_ROLL_HOURS_DESC":"Maximum time in hours before a new segment is rolled out.","DBPARAM_OFFSETS_TOPIC_REPLICATION_FACTOR":"Replication factor for the offsets topic (set higher to ensure availability). Internal topic creation will fail until the cluster size meets this replication factor requirement.","DBPARAM_LOG_CLEANUP_POLICY_DESC":"Default cleanup policy for segments beyond the retention window. The possible values are delete and compact and you can separate two values by a comma.","DBPARAM_LOG_CLEANER_ENABLE_DESC":"Whether to enable the log cleaner process on the server.","DBPARAM_COMPRESSION_TYPE_DESC":"Compression type of a topic.","DBPARAM_MESSAGE_MAX_BYTES_DESC":"Maximum size in bytes of a record batch.","DBPARAM_NUM_NETWORK_THREADS_DESC":"Number of threads that the server uses for receiving requests from the network and sending responses to the network.","DBPARAM_NUM_IO_THREADS_DESC":"Number of threads that the server uses for processing requests, which may include disk I/O.","DBPARAM_NUM_RECOVERY_THREADS_PER_DATA_DIR_DESC":"Number of threads per data directory to be used for log recovery at startup and flushing at shutdown.","DBPARAM_NUM_REPLICA_FETCHERS_DESC":"Number of fetcher threads used to replicate messages from a source broker.","DBPARAM_QUEUED_MAX_REQUESTS_DESC":"Number of queued requests allowed before blocking the network threads.","DBPARAM_REPLICA_LAG_TIME_MAX_MS_DESC":"If a follower has not sent any fetch requests or has not consumed up to the leaders log end offset for at least this time, the leader will remove the follower from the ISR.","DBPARAM_GROUP_MAX_SESSION_TIMEOUT_MS_DESC":"Maximum allowed session timeout for registered consumers.","DBPARAM_GROUP_MIN_SESSION_TIMEOUT_MS_DESC":"Minimum allowed session timeout for registered consumers.","DBPARAM_AUTO_CREATE_TOPICS_ENABLE_DESC":"Whether to enable automatic topic creation.","DBPARAM_MIN_INSYNC_REPLICAS_DESC":"Minimum number of replicas in the ISR set.","DBPARAM_DEFAULT_REPLICATION_FACTORS_DESC":"Default replication factor.","DBPARAM_TICKTIME_DESC":"Basic time unit in milliseconds used by ZooKeeper. It is used for heartbeats and the minimum session timeout will be twice the tickTime.","DBPARAM_INITLIMIT_DESC":"Maximum number of ticks allowed for a follower to connect to and sync data with the leader.","DBPARAM_SYNCLIMIT_DESC":"Maximum number of ticks allowed for a follower to sync data. If the synchronization process exceeds the limit, the follower will be discarded.","DBPARAM_MAXCLIENTCNXNS_DESC":"Maximum number of concurrent connections at the socket level that a single client (identified by IP address) can make to a single member of the ZooKeeper ensemble. This is used to prevent certain classes of DoS attacks such as file descriptor exhaustion.","DBPARAM_AUTOPURGE_SNAPRETAINCOUNT_DESC":"Number of most recent snapshots and the corresponding transaction logs retained when the ZooKeeper auto purge feature is enabled.","DBPARAM_AUTOPURGE_PURGEINTERVAL_DESC":"Interval in hours of auto purge operations. The value 0 indicates that auto purge is disabled.","KAFKA_USER_RESOURCE_NAME_EMPTY_ERROR":"Please enter a resource name.","DBPARAM_KAFKA_PARTITIONS_DESC":"Default number of topic partitions","DBPARAM_PRODUCER_BYTERATE_DESC":"The quota on the maximum number of bytes per second that each client group in the group can produce to the broker before being throttled. range ({min}-{max})","DBPARAM_CONSUMER_BYTERATE_DESC":"The quota on the maximum number of bytes per second that each client group in the group can consume from the broker before being throttled. range ({min}-{max})","DBPARAM_REAUSET_PERCENTAGE_DESC":"Maximum CPU utilization quota for each client group. range ({min}-{max})","DBPARAM_CONTROLLER_MUTATION_DESC":"The rate quota for create topic requests, create partition requests, and delete topic requests. range ({min}-{max})","ACTIVE_CONNECTIONS":"Active Connections","ACTIVE_SESSIONS":"Active Sessions","IDLE_IN_TRANSACTION":"Idle in Transaction","IDLE_CONNECTIONS":"Idle Connections","CACHE_HIT_RATIO":"Cache Hit Ratio","CACHE_HIT_RATIO_EACH_DATABASE":"Cache Hit Ratio of Each Database","ACTIVITY":"Activity","CONNECTIONS":"Connections","DATABASE_SIZE":"Database Size","QUERY_DURATION":"Query Duration","FETCHED_PER_SECOND":"Fetched Rows per Second","INSERTED_PER_SECOND":"Inserted Rows per Second","UPDATED_PER_SECOND":"Updated Rows per Second","DELETED_PER_SECOND":"Deleted Rows per Second","RETURNED_PER_SECOND":"Returned Rows per Second","KEY_COUNTERS":"Key Counters","CONFLICTS_PER_SECOND":"Conflicts per Second","DEADLOCKS_PER_SECOND":"Deadlocks per Second","COMMITS_PER_SECOND":"Commits per Second","ROLLBACKS_PER_SECOND":"Rollbacks per Second","MAX_TX_DURATION":"Maximum Transaction Duration","LOCKS":"Locks","ASYNC_NODE_NUMBER":"Async Nodes","INVALID_STATUS_NODE_NUMBER":"Invalid Nodes","NOT_RUNNING_NODE_NUMBER":"Not Running Nodes","UNHEALTH_NODE_NUMBER":"Unhealthy Nodes","DBPARAM_JMXOPTIONS_DESC":"disable, do not enable JMX; enable, enable JMX; password, enable JMX with password authentication","CLICKHOUSE_DATA_SIZE_ON_DISK":"MergeTree Table Data Size","QUERIES":"Queries","SELECT_QUERIES":"SELECT Queries","ALL_QUERIES":"All Queries","INSERTED_BYTES":"Inserted Data","INSERTED_ROWS":"Inserted Rows","MAXIMUM_REPLICATION_DEPLAY":"Maximum Replication Delay","RELATIVE_DELAY":"Relative Delay","ABSOLUTE_DELAY":"Absolute Delay","TOTAL_PARTS_OF_MERGETREE_TABLES":"Total Parts of MergeTree Tables","DELAYED_REJECTED_INSERTS":"Delay/Rejected Inserts","DELAYED_QUERIES":"Delayed Queries","DELAYED_BLOCKS":"Delayed Blocks","REJECTED_BLOCKS":"Rejected Blocks","DELAYED_DISTRIBUTED_FILES":"Delayed Distributed Files","READ_BYTES":"Read Bytes","UNCOMPRESSED":"Uncompressed","COMPRESSED":"Compressed","FILE_DESCRIPTOR":"File Descriptor","CLICKHOUSE_OS":"OS","MEMORY_FOR_QUERIES":"Memory for Queries","REPLICATION_QUEUE_JOBS":"Replication Queue Jobs","DATA_LOSS":"Data Loss","CHECK":"Checks","CHECK_FAIL":"Failed Checks","FETCH":"Fetches","FETCH_FAIL":"Failed Fetches","FETCH_MERGED":"Merged Part Fetches","REPLICATED_MERGED":"Successful Merges","MAX_QUEUE_SIZE":"Maximum Queue Size","MERGES":"Merges","MERGED_ROWS":"Merged Rows","MERGED_UNCOMPRESSED_BYTES":"Merged Uncompressed Bytes","ACTIVE_PARTS":"Active Parts","DETACHED_PARTS":"Detached Parts","MAX_PART_COUNT_FOR_PARTITION":"Maximum Parts for Partition","CLICKHOUSE_SERVER_PROCESS_MEMORY":"clickhouse-server Process Memory","PRIMARY_KEYS_MEMORY":"Memory for Primary Keys","DICTIONARY_MEMORY":"Dictionary Memory","MARKS_CACHE_HIT_RATE":"Mark Cache Hit Ratio","BACKGROUND_TASKS":"Background Tasks","MERGE_MUTATE_FETCH":"Merge/Mutate/Fetch","CLEAN_ALTER_REPLICA_REINIT":"Clean/Alter/Replica Re-init","MOVES":"Move","MUTATIONS":"Mutations","PARTS_TO_DO":"Parts to Do","CPU_TIME_PER_SECOND":"CPU Time per Second","DISK_READ_SYSCALL":"Disk Read Syscall","DISK_WRITE_SYSCALL":"Disk Write Syscall","NETWORK_RECEIVE":"Network Receive","NETWORK_SEND":"Network Send","REAL_TIME":"Real Time","USER_TIME":"User Time","SYSTEM_TIME":"System Time","OS_IO_WAIT":"OS I/O Wait","OS_CPU_WAIT":"OS CPU Wait","OS_CPU_VIRTUAL":"OS CPU Virtual Time","MAX_USED_CONNECTIONS":"Maximum Used Connections","THREADS":"Threads","PEAK_THREADS_CONNECTED":"Peak Threads Connected","PEAK_THREADS_RUNNING":"Peak Threads Running","AVG_THREADS_RUNNING":"Average Threads Running","ABORTED_CONNECTIONS":"Aborted Connections","ABORTED_CONNECTION_ATTEMPTS":"Aborted Connection Attempts","ABORTED_CLIENT_TIMEOUTS":"Client Timeouts","QUESTIONS":"Questions","SELECT_BY_TYPE":"Selects","SELECT_FULL_JOIN":"Select Full Join","SELECT_FULL_RANGE_JOIN":"Select Full Range Join","SELECT_RANGE":"Select Range","SELECT_FULL_RANGE":"Select Full Range","SELECT_RANGE_CHECK":"Select Range Check","SELECT_SCAN":"Select Scan","SORT_BY_TYPE":"Sorts","SORT_ROWS":"Sort Rows","SORT_RANGE":"Sort Range","SORT_MERGE_PASSES":"Sort Merge Passes","SORT_SCAN":"Sort Scan","SLOW_QUERIES":"Slow Queries","TABLE_LOCKS":"Table Locks","TABLE_LOCKS_IMMEDIATE":"Table Locks Immediate","TABLE_LOCKS_WAITED":"Table Locks Waited","TMP_TABLES_AND_FILES":"Temporary Tables and Files","CREATED_TMP_TABLES":"Created Temporary Tables","CREATED_TMP_DISK_TABLES":"Created Temporary Disk Tables","CREATED_TMP_FILES":"Created Temporary Files","MYSQL_NETWORK_TRAFFIC":"Network Traffic","MYSQL_INBOUND":"Inbound","MYSQL_OUTBOUND":"Outbound","CLUSTER_TASK_WAITING_TIME":"Cluster Task Waiting Time","CLUSTER_TASK_STATUS":"Cluster Task Status","CLUSTER_NUMBER_OF_IN_FLIGHT_FETCH":"In-Flight Fetches","CLUSTER_NUMBER_OF_PENDING_TASKS":"Pending Tasks","CLUSTER_NUMBER_OF_NODES":"Nodes","CLUSTER_NUMBER_OF_DATA_NODES":"Data Nodes","CLUSTER_NUMBER_OF_ALL_NODES":"All Nodes","SHARD_STATUS":"Shard Status","CLUSTER_DELAYED_UNASSIGNED_SHARDS":"Delayed Unassigned Shards","CLUSTER_INITIALIZING_SHARDS":"Initializing Shards","CLUSTER_RELOCATING_SHARDS":"Relocating Shards","CLUSTER_UNASSIGNED_SHARDS":"Unassigned Shards","CLUSTER_ACTIVE_PRIMARY_SHARDS":"Active Primary Shards","CLUSTER_ACTIVE_SHARDS":"Active Shards","CLUSTER_HEALTH_STATUS":"Cluster Health Status","CLUSTER_HEALTH_STATUS_GREEN":"Green","CLUSTER_HEALTH_STATUS_YELLOW":"Yellow","CLUSTER_HEALTH_STATUS_RED":"Red","HEAP_MEMORY":"Heap Memory","JVM_MEMORY_HEAP_USAGE_PER":"JVM Memory Heap Usage","DATA_AVAILABLE_BYTES":"Available Disk Space","DATA_AVAILABLE_PERCENT":"Available Disk Percentage","ECK_CPU_USAGE":"CPU Usage","OS_LOAD":"OS Load","OS_LOAD1":"OS Load (1 minute)","OS_LOAD5":"OS Load (5 minutes)","OS_LOAD15":"OS Load (15 minutes)","DOC_STATISTICS":"Doc Statistics","ELASTICSEARCH_INDICES_DOCS":"Docs","ELASTICSEARCH_INDICES_DOCS_DELETED":"Deleted Docs","ELASTICSEARCH_INDICES_INDEXING_INDEX_QPS":"Indexing QPS","ELASTICSEARCH_INDICES_SEARCH_QUERY_QPS":"Search QPS","ELASTICSEARCH_INDICES_INDEXING_TIME_MS":"Indexing Time","ELASTICSEARCH_INDICES_SEARCH_TIME_MS":"Search Time","CLUSTER_SHARDS_ACTIVE_PERCENT":"Active Shards","ONLINE_BROKER_COUNT":"Online Brokers","PARTITIONS_UNDER_MINIMUM_ISR":"Partitions Under Minium ISR","OFFLINE_PARTITION_COUNT":"Offline Partitions","TOPIC_INCOMING_DATA_RATE":"Incoming Bytes per Second","TOPIC_OUTGOING_DATA_RATE":"Outgoing Bytes per Second","TOPIC_INCOMING_MESSAGE_RATE":"Incoming Messages per Second","KAFKA_OPEN_FILE_DESC":"Open File Descriptors","TOPIC_OUTGOING_MESSAGE_RATE":"Total Produce Request Rate","NETWORK_PROCESSOR_AVG_IDLE_PERCENT":"Idle Network Processor Ratio","DISK_WRITES":"Disk Write","DISK_READS":"Disk Read","KAFKA_MEMORY_USAGE":"Memory Usage","KAFKA_CPU_USAGE":"CPU Usage","JVM_MEMORY_USAGE":"JVM Memory Usage","JVM_THREAD_COUNT":"JVM Threads","AVAILABLE_DISK_SPACE":"Available Disk Space","ALL_KAFKA_NODES":"All Kafka nodes","ALL_ZOOKEEPER_NODES":"All ZooKeeper nodes","OP_COUNTERS":"Operations","OP_INSERT":"Insert","OP_QUERY":"Query","OP_UPDATE":"Update","OP_DELETE":"Delete","OP_GETMORE":"Get More","OP_COMMAND":"Total","OPREPL_COUNTERS":"Replica Set Operations","OPREPL_INSERT":"Insert","OPREPL_QUERY":"Query","OPREPL_UPDATE":"Update","OPREPL_DELETE":"Delete","OPREPL_GETMORE":"Get More","OPREPL_COMMAND":"Total","CONNECTIONS_CURRENT":"Current","CONNECTIONS_TOTALCREATED":"Total Created","CONNECTIONS_AVAILABLE":"Available","CONNECTIONS_ACTIVE":"Active","CURSOR_COUNT":"Cursors","CURSOR_TIMEDOUT":"Timeout","CURSOR_OPEN_NOTIMEOUT":"No Timout","CURSOR_OPEN_PINNED":"Pinned","CURSOR_OPEN_TOTAL":"Total","MONGODB_NETWORK_TRAFFIC":"Network Traffic","NETWORK_BYTESIN":"Inbound Traffic","NETWORK_BYTESOUT":"Outbound Traffic","WIREDTIGER_OPERATION_COUNT":"WiredTiger Operations","WT_WRITE_OUT":"Concurrent Write Operations","WT_WRITE_AVAILABLE":"Available Concurrent Write Operations","WT_READ_OUT":"Concurrent Read Operations","WT_READ_AVAILABLE":"Available Concurrent Read Operations","DOC_COUNT":"Docs","DOC_DELETED":"Deleted Docs","DOC_INSERTED":"Inserted Docs","DOC_RETURNED":"Returned Docs","DOC_UPDATED":"Updated Docs","QUERYEXECUTOR":"Query Executor Metrics","SCANNEDKEYS":"Scanned Keys","SCANNEDDOCS":"Scanned Docs","ACTIVECLIENTS":"Active Clients","CLIENTS_TOTAL":"Total Clients","CLIENTS_READERS":"Read Clients","CLIENTS_WRITERS":"Write Clients","QUEUED_OPERATIONS":"Queued Requests","QUEUE_TOTAL":"Total","QUEUE_READERS":"Queued Read Requests","QUEUE_WRITERS":"Queued Write Requests","WIREDTIGER_CACHE":"WiredTiger Cache","WIREDTIGER_CACHE_USAGED":"Cache Usage","WIREDTIGER_CACHE_DIRTY_USAGE":"Dirty Data Ratio","OPENSEARCH_HEAP_MEMORY":"Heap Memory","OPENSEARCH_HEAP_MEMORY_PER":"Heap Memory Usage","OPENSEARCH_CPU_USAGE":"CPU Usage Percentage","OPENSEARCH_CPU_USAGE_PER":"CPU Usage","CPU_LOAD":"CPU Load","CPU_LOAD1":"CPU Load (1 minute)","CPU_LOAD5":"CPU Load (5 minutes)","CPU_LOAD15":"CPU Load (15 minutes)","EVENTS_STATISTICS":"Event Statistics","IN_EVENTS_STATISTICS":"Inbound Events","FILTERED_EVENTS_STATISTICS":"Filtered Events","OUT_EVENTS_STATISTICS":"Outbound Events","QUEUE_EVENTS_COUNT":"Events in Queue","JVM_THREADS_COUNT":"JVM Threads Count","DBPARAM_PIPELINE_WORKERS_DESC":"Number of Worker Threads","DBPARAM_PIPELINE_BATCH_SIZE_DESC":"Maximum number of events processed per batch by worker threads. Larger numbers consume more memory and require JVM heap adjustments.","DBPARAM_PIPELINE_BATCH_DELAY_DESC":"Maximum time in milliseconds that worker threads wait for a full batch before processing. ","DBPARAM_PIPELINE_UNSAFE_SHUTDOWN_DESC":"Whether to allow pipeline shutdown when events are still being processed.","DBPARAM_PIPELINE_ORDERED_DESC":"Pipeline event ordering setting. \"auto\" for automatic ordering, \"true\" for ordering with a single worker thread, \"false\" for no ordering.","DBPARAM_ECS_COMPATIBILITY_DESC":"Default value to use if the plugin supports ECS compatibility.","DBPARAM_LOG_LEVEL_DESC":"Logging Level","DBPARAM_LOG_FORMAT_DESC":"Logging Format","DBPARAM_LOG_JVM_DESC":"JVM heap size, typically set to 50%-75% of available memory. Defaults to 50% of available memory.","PREDIXY_MEMORY_USAGE":"Memory Usage","CLIENT_COUNT":"Clients","RECV_CLIENT_BYTES":"Bytes per Minute from Client","RECV_SERVER_BYTES":"Bytes per Minute from Server","SEND_CLIENT_BYTES":"Bytes per Minute to Client","SEND_SERVER_BYTES":"Bytes per Minute to Server","COMMANDS_EXECUTED_PER_MINUTE":"Commands Executed per Minute","REDIS_CLUSTER_COUNT":"Redis Clusters","REDIS_MEMORY_USAGE":"Memory Usage","REDIS_USED_MEMORY":"Used","REDIS_MAX_MEMORY":"Total","NETWORK_IO":"Network I/O","NETWORK_INPUT_BYTES":"Received Bytes (5 minutes)","NETWORK_OUTPUT_BYTES":"Sent Bytes (5 minutes)","TOP_5_REDIS_COMMANDS_PER_MINUTE":"Top 5 Commands per Minute","TOTAL_DB_KEYS":"Total Database Keys","DB_KEYS":"Database Keys","VALID_KEYS":"Valid Keys","EXPIRED_KEYS":"Expired Keys","KEYSPACE":"Keyspace","KEYSPACE_HITS_TOTAL":"Total Hits","KEYSPACE_MISSES_TOTAL":"Total Misses","MEMORY_FRAGMENTATION_RATIO":"Memory Fragmentation Ratio","REJECTED_CONNECTION_RATIO":"Ratio of Rejected Connections","REVICTED_KEY_RATIO":"Revicted Keys","QUORUM_SIZE":"Quorum","ZNODE_COUNT":"Znodes","WATCHER_COUNT":"Watchers","ZOOKEEPER_MEMORY_USAGE":"Memory Usage","ZOOKEEPER_CPU_USAGE":"CPU Usage","OPEN_FILE_DESCRIPTORS":"Open File Descriptors","REQUEST_LATENCY_AVERAGE":"Average Request Latency","REQUEST_LATENCY_MAXIMUM":"Maximum Request Latency","SHARD_COUNT":"Shards","SHARDS_DESC":"Number of shards. The value range is 1 to 100.","CK_REPLICAS_DESC":"Number of replicas for each shard. The value range is 1 to 3.","HTTP_PORT":"HTTP Port","HTTP_PORT_DESC":"The value range is 0 to 65535.","DATABASE_STORAGE_CLASS_DESC":"If no storage classs meets the requirements, please contact a platform administrator to create a storage class.","DATABASE_NODE_TIP":"A database node is a logical database instance rather than a physical server.","VALUE_RANGE_DESC":"The value range is {min} to {max}.","VALUE_MUST_BE_INTEGER":"The value must be an interger.","VALUE_CANNOT_BE_GREATER_THAN_VALUE":"The value cannot be greater than {max}.","VALUE_CANNOT_BE_LESS_THAN_20":"The value cannot be less than 20.","DATA_NODE_COUNT":"Data Nodes","STANDBY_DATABASE_COUNT":"Standby Databases","PROJECT_NAME_EXCEEDS_LIMIT":"The project name for MySQL 5.7 cannot exceed 16 characters.","APP_NAME_EXCEED_LIMIT":"The app name for MySQL 5.7 cannot exceed 14 characters.","DATABASE_KERNEL_VERSION_DESC":"Select the database version.","STANDBY_DATABASE_COUNT_DESC":"Number of standby databases. The value can be 1, 2, or 4.","VALUE_CANNOT_BE_LESS_THAN_10":"The value cannot be less than 10.","PRIMARY_NODE_SETTINGS":"Primary Node Settings","PRIMARY_NODE_RESOURCES_DESC":"Set the CPU and memory resources allocated to each primary node.","PRIMARY_NODE_COUNT":"Primary Nodes","PRIMARY_NODE_COUNT_DESC":"Set the number of primary nodes.","HOT_NODE_SETTINGS":"Hot Node Settings","HOT_NODE_RESOURCES_DESC":"Set the CPU and memory resources allocated to each hot node.","HOT_NODE_COUNT":"Hot Nodes","WARM_NODE_SETTINGS":"Warm Node Settings","WARM_NODE_RESOURCES_DESC":"Set the CPU and memory resources allocated to each warm node.","WARM_NODE_COUNT":"Warm Nodes","COLD_NODE_SETTINGS":"Cold Node Settings","COLD_NODE_RESOURCES_DESC":"Set the CPU and memory resources allocated to each cold node.","COLD_NODE_COUNT":"Cold Nodes","KIBANA_NODE_SETTINGS":"Kibana Node Settings","KIBANA_NODE_RESOURCES_DESC":"Set the CPU and memory resources allocated to each Kibana node.","KIBANA_NODE_COUNT":"Kibana Nodes","VOLUMN_PERSIST":"The size of the volume on the primary node is 20 GiB and cannot be modified.","REDIS_NODE":"Redis node","REDIS_NODE_COUNT":"Redis Nodes","REDIS_NODE_COUNT_DESC":"Number of nodes in the Redis cluster.","PROXY_NODE_COUNT":"Proxy Nodes","PROXY_NODE_RESOURCES":"Proxy Node Resources","ENDPOINT_TYPE":"External Access","ENDPOINT_TYPE_DESC":"Whether to use domain names to access database shards from outside the KubeSphere cluster.","ENDPOINT_TYPE_ERROR":"Before enabling this feature, ensure that no proxy nodes exist in the database cluster.","REDIS_PASSWORD_DESC":"The password can contain only uppercase letters, lowercase letters, numbers, and special characters (!@#$%^&*()./;). The length must be 6 to 31 characters.","INVALID_REDIS_PASSWORD_DESC":"Invalid password. The password can contain only uppercase letters, lowercase letters, numbers, and special characters (!@#$%^&*()./;). The length must be 6 to 31 characters.","VOLUME_CAPACITY_CANNOT_REDUCE":"The volume size cannot be reduced.","KAFKA_SETTINGS":"Kafka Settings","KAFKA_NODE_RESOURCES_DESC":"Set the CPU and memory resources allocated to each Kafka node.","KAFKA_VERSION":"Kafka Version","KAFKA_NODE_COUNT":"Kafka Nodes","ZOOKEEPER_SETTINGS":"ZooKeeper Settings","ZOOKEEPER_NODE_RESOURCES_DESC":"Set the CPU and memory resources allocated to each ZooKeeper node.","ZOOKEEPER_NODE_COUNT":"ZooKeeper Nodes","DASHBOARD_NODE_SETTINGS":"Dashboard Node Settings","DASHBOARD_NODE_RESOURCES_DESC":"Set the CPU and memory resources allocated to each dashboard node.","DASHOBOARD_NODE_COUNT":"Dashboard Nodes","LOGSTASH_NODE_SETTINGS":"Logstash Node Settings","LOGSTASH_NODE_RESOURCES_DESC":"Set the CPU and memory resources allocated to each Logstash node.","LOGSTASH_NODE_COUNT":"Logstash Nodes","MONGODB_NODE_COUNT_DESC":"Number of database nodes.","OTHER_APP_EMPTY_DESC":"Applications you installed with the helm command will be displayed here","OTHER_APP_PL":"other","UPLOAD_FAILED_MESSAGE":"Upload failed. {message}","GPU_USAGE_TIME":"GPU Usage ({time})","GPU_MEMORY_USAGE_TIME":"Graphics Memory Usage ({time})","PVC_USAGE_TOOLTIP_MESSAGE":"Persistent volume usage of the current project (the data may be inaccurate if file storage is used).","PROJECT_MEMBERS_AND_ROLES":"Project Members and Roles","RECENTLY_LOGGED_IN_MEMBERS":"Recently Logged In Users","PROJECT_ALERTS":"Project Alerts","ENT_CLUSTER_GATEWAY_GUIDE_DESC":"If the cluster gateway, workspace gateway and project gateway exist at the same time, the project gateway cannot be enabled after it is disabled. You are advised to used either the cluster gateway or workspace gateway.","WORKSPACE_GATEWAY_GUIDE_DESC":"If the workspace gateway and project gateway both exist, the project gateway cannot be enabled after it is disabled. You are advised to used either the workspace gateway or project gateway.","ROLL_BACK_MICROSERVICE_CONFIGURATION":"Roll Back Microservice Configuration","ROLLBACK_SUCCESSFUL":"Rolled back successfully.","HISTORICAL_VERSIONS":"Historical Versions","CONFIGURATION_CONTNET_TYPE":"Data ({type})","SQ_CONFIGURATION":"Microservice Configuration","SQ_CONFIGURATION_PL":"Microservice Configurations","SQ_CONFIGURATION_DESC":"Microservice configurations store key-value data to be used by microservices. You can use microservice configurations to separate a microservice from its configuration data.","SQ_CONFIGURATION_EMPTY_DESC":"Please create a microservice configuration. ","CONFIGURATION_STATUS_SUCCEEDED":"Published","CONFIGURATION_STATUS_FAILED":"Failed","CONFIGURATION_STATUS_":"Updating","DATA_ID":"Data ID","CREATE_CONFIGURATION":"Create Microservice Configuration","CONFIGURATION_CONTENT":"Data","CONFIGURATION_CONTENT_EMPTY_DESC":"Please enter configuration data.","EDIT_CONFIGURATION":"Edit Microservice Configuration","ORIGINAL_CONFIGURATION_CONTENT_READONLY":"Original Data (read-only)","CURRENT_CONFIGURATION_CONTENT":"New Data","REPLICATE":"Replicate","REPLICATE_CONFIGURATION_NAME":"Replicate Microservice Configuration {name}","SQ_CONFIGURATION_LOW":"microservice configuration","MICROSERVICE_GATEWAY":"Microservice Gateway","MICROSERVICE_GATEWAY_PL":"Microservice Gateways","MICROSERVICE_GATEWAY_DESC":"The microservice gateway forwards requests to microservices according to microservice routes so that microservices can be accessed by other microservices or clients.","MICROSERVICE_GATEWAY_EMPTY_DESC":"No Microservice Gateway Found","MICROSERVICE_GATEWAY_EMPTY_TIP":"Please create a microservice gateway.","GATEWAY_TYPE":"Gateway type","MICROSERVICE_GATEWAY_STATUS_RUNNING":"Running","MICROSERVICE_GATEWAY_STATUS_UPDATING":"Updating","MICROSERVICE_GATEWAY_STATUS_STOPPED":"Stopped","MICROSERVICE_GATEWAY_STATUS_":"Creating","CREATE_MICROSERVICE_GATEWAY":"Create Microservice Gateway","GATEWAY_IMAGE_EMPTY_DESC":"Please set the container image used to create the microservice gateway.","REPLICA_COUNT_EMPTY_DESC":"Please enter the number of replicas of the microservice gateway.","EDIT_MICROSERVICE_GATEWAY":"Edit Microservice Gateway","MICROSERVICE_GATEWAY_LOW":"microservice gateway","MICROSERVICE_ROUTE":"Microservice Route","MICROSERVICE_ROUTE_LOW":"microservice route","MICROSERVICE_ROUTE_PL":"Microservice Routes","MICROSERVICE_ROUTE_DESC":"The microservice gateway forwards requests to microservices according to microservice routes so that microservices can be accessed by other microservices or clients.","MICROSERVICE_ROUTE_EMPTY_DESC":"Please create a microservice route. Before creating a microservice route, ensure that a microservice gateway is available.","CREATE_MICROSERVICE_ROUTE":"Create Microservice Route","MICROSERVICE_ORDER":"Order","MICROSERVICE_ORDER_DESC":"Priority of the microservice route. A smaller number indicates higher priority.","MICROSERVICE_ROUTE_URL_DESC":"URL of a microservice.","PREDICATE":"Predicate","MICROSERVICE_ROUTE_FILTER":"Filter","EDIT_MICROSERVICE_ROUTE":"Edit Microservice Route","NO_INSTANCE_FOUND":"No Instance Found","MICROSERVICE_INSTANCE_PL":"Instances","MICROSERVICE_INSTANCE_STATUS":"Instance Status","MICROSERVICE_INSTANCE_ID":"Instance ID","SPRING_CLOUD_METADATA":"Spring Cloud Metadata","POD_METADATA":"Pod Metadata","SPRING_CLOUD_MONITORING":"Spring Cloud Monitoring","JVM_THREADS_LIVE":"Active Threads","JVM_THREADS_DAEMON":"Daemons","JVM_THREADS_PEAK":"Peak Threads","JVM_MEMORY_USED":"Used","JVM_MEMORY_COMMITTED":"Available","JVM_MEMORY_MAX":"Maximum","JVM_MEMORY_USED_METASPACE":"Initial","SPRING_BOOT_CONFIGURATION_INFOMATION":"Spring Boot Environment Variables {resources}","PROPERTY_NOT_SET":"No Environment Variable Found","POD_ENVIRONMENT_VARIABLE":"Pod Environment Variables","SPRING_CLOUD":"Spring Cloud","MICROSERVICE":"微服務","MICROSERVICE_PL":"微服務","MICROSERVICE_DESC":"在 Spring Cloud 架構中,您可以構建由多個微服務組成的大規模應用程序。微服務負責處理客戶端請求。每個微服務包含一個或多個實例,每個實例都是微服務的副本。","WHAT_IS_SERVICE_REGISTRATION_CENTER_Q":"什麽是服務註冊中心?","WHAT_IS_SERVICE_REGISTRATION_CENTER_A":"服務註冊中心是 Spring Cloud 微服務架構的核心功能組件。服務註冊中心儲存微服務的信息,以及微服務和微服務地址之間的映射關系。","SERVICE_REGISTRY":"服務註冊中心","SERVICE_REGISTRY_ADDRESS":"服務註冊中心地址","DOWNLOAD_SAMPLE_CONFIGURATION":"下載示例配置","INSTANCE":"實例","INSTANCE_PL":"實例","HEALTHY_INSTANCE":"健康實例","HEALTHY_INSTANCE_PL":"健康實例","MICROSERVICE_INSTANCE_COUNT":"實例數量","MICROSERVICE_HEALTHY_INSTANCE_COUNT":"健康實例數量","HEALTH_PROTECTION_TRIGGERED":"已觸發健康保護","MICROSERVICE_EMPTY_DESC":"請創建一個微服務。","SPRING_CLOUD_PROJECT_NOT_LABEL":"Spring Cloud 存量項目","SPRING_CLOUD_PROJECT_NOT_LABEL_DESC":"是否在該項目下啟用 Spring Cloud","OPEN_PROJECT_SPRING_CLOUD":"啟用 Spring Cloud","MICROSERVICE_INSTANCE_STATUS_RUNNING":"運行中","MICROSERVICE_INSTANCE_STATUS_OFFLINE":"離線","EDIT_WEIGHT":"編輯權重","INSTANCE_WEIGHT_DESC":"微服務實例的權重。","TAKE_ONLINE":"上線","TAKE_ONLINE_SUCCESS":"上線成功","CREATE_MICROSERVICE":"創建微服務","ASC_EXPORT":"Ascending","DESC_EXPORT":"Descending","LOG_EXPORT":"Log Export","END_USER_SOFTWARE_LICENSE_AGREEMENT":"End User Software License Agreement","END_USER_SOFTWARE_LICENSE_AGREEMENT_LINK":"End User Software License Agreement","PLEASE_AGREE_USER_SOFTWARE_LICENSE_AGREEMENT":"Please agree to the End User Software License Agreement","WORKSPACE_GATEWAY_DESC":"Set up and manage the configuration of the external network access gateway and service management in the workspace and project.","WORKSPACE_GATEWAY":"Workspace Gateway","WORKSPACE_GATEWAY_LOW":"workspace gateway","PROJECT_ENABLE_GATEWAY_DESC_WS":"If you need to set up a project gateway, please go to the corresponding project to open it.","CLUSTER_GATEWAY_GUIDE_DESC_WS":"If the cluster gateway and workspace gateway both exist, the workspace gateway cannot be enabled after it is disabled. You are advised to used either the cluster gateway or workspace gateway.","CLUSTER_NOT_SUPPORT_WORKSPACE_GATEWAY":"This cluster does not support this feature. If you need to use this feature, please upgrade the cluster to KubeSphere Enterprise 3.4.0 or later.","STORAGE_RELATED_RESOURCE_LIMIT":"Limit on Resources Bound with Storage Class","TOTAL_STORAGE_CLASS":"Total Storage Classes","LIMITED_STORAGE_CLASS":"Number of Limited Storage Classes","RELATED_RESOURCE_QUOTA":"Bound Resource Quota","REQUESTS_STORAGE":"PVC Limit","PERSISTENTVOLUMECLAIMS":"PVC","TOTAL_STORAGE_RESOURCE":"Total Storage Resources","STORAGE_RELATED_RESOURCE":"Storage Class Bound Resources","TOTAL_STORAGE_LIMIT_LESS_THAN_RELATE_RESOURCE":"The total limit of storage resources cannot be less than that of bound resources.","VOLUME_TOTAL_CAPACITY":"Total Capacity of PVCs ({unit})","VOLUME_MAX_NUM":"Total PVCs","SET_RELATED_STORAGE_CLASS_QUOTA":"Set the quota for the PVC bound with the storage class.","SELECT_STORAGE_CLASS":"Select Storage Class","STORAGE_QUOTA":"Storage Resource Quota","WS_STORAGE_QUOTA_DESC":"Limit the the total amount of storage resources under the workspace.","NS_STORAGE_QUOTA_DESC":"Limit the the total amount of storage resources under the project.","STORAGE_VOLUME_LIMIT_NO_LIMIT":"Resource limits: no limit on the PVC capacity","STORAGE_VOLUME_LIMIT_HAS_A_LIMIT":"Resource limits: PVC capacity {num} Gi","STORAGE_PERSISTENT_VOLUME_NO_LIMIT":"No limit on the number of PVCs.","STORAGE_PERSISTENT_VOLUME_HAS_A_LIMIT":"number of PVCs {num}","STORAGE_LIMIT":"PVC capacity limit","STORAGE_CLASS_VOLUME":"Number of PVCs","SELECT_A_STORAGECLASS":"Select Storage Class","VOLUME_COUNT":"Bound PVCs","KS_DESCRIPTION":"KubeSphere 是一款開源項目,在目前主流容器調度平台 Kubernetes 之上構建的企業級分佈式多租戶容器管理平台,提供簡單易用的操作界面以及引導式操作方式,在降低用戶使用容器調度平台學習成本的同時,極大降低開發、測試、維運的日常工作的複雜度。","REPS_ADDRESS":"項目地址","ISSUE_FEEDBACK":"問題反饋","PART_IN_DISCUSSION":"參與討論","CODE_CONTRIBUTE":"貢獻代碼","GITHUB_STAR":"點亮 Star","DESELECT_RESOURCE_FIRST":"當前權限被 {resource} 依賴,無法移除","NO_AUTHORIZED_USER_DESC":"目前沒有用戶被授權此角色","PLATFORM_ROLE_PL":"平台角色","PLATFORM_ROLE_EMPTY_DESC":"請創建一個網路策略。","ROLE_USERS_MANAGER":"平台用戶管理員,管理平台所有用戶。","ROLE_WORKSPACES_MANAGER":"平台企業空間管理員,管理平台所有企業空間。","ROLE_PLATFORM_ADMIN":"平台管理員,可以管理平台内的所有資源。","ROLE_PLATFORM_REGULAR":"平台普通用戶,在被邀請加入企業空間或集群之前沒有任何資源操作權限。","ROLE_PLATFORM_SELF_PROVISIONER":"Create workspaces and become an administrator of the created workspaces.","CREATION_TIME_TCAP":"創建時間","CREATE_PLATFORM_ROLE":"創建帳戶角色","PERMIGROUP_CLUSTERS_MANAGEMENT":"集群","PERMISSION_CLUSTERS_VIEW":"Cluster Viewing","PERMISSION_CLUSTERS_VIEW_DESC":"View all clusters and cluster resources.","PERMISSION_CLUSTERS_MANAGEMENT":"Cluster Management","PERMISSION_CLUSTERS_MANAGEMENT_DESC":"Create clusters, delete clusters, and manage resources in all clusters.","PERMIGROUP_ACCESS_CONTROL":"訪問控制","PERMISSION_WORKSPACES_VIEW":"Workspace Viewing","PERMISSION_WORKSPACES_VIEW_DESC":"View workspaces.","PERMISSION_WORKSPACES_MANAGEMENT":"Workspace Management","PERMISSION_WORKSPACES_MANAGEMENT_DESC":"Create, edit, delete, and view workspaces.","PERMISSION_WORKSPACES_CREATE":"Workspace Creation","PERMISSION_WORKSPACES_CREATE_DESC":"Create workspaces and become an administrator of the created workspaces.","PERMISSION_USERS_VIEW":"User Viewing","PERMISSION_USERS_VIEW_DESC":"View users.","PERMISSION_USERS_MANAGEMENT":"User Management","PERMISSION_USERS_MANAGEMENT_DESC":"Create, edit, and delete users.","PERMISSION_ROLES_VIEW":"角色查看","PERMISSION_ROLES_VIEW_DESC":"View platform roles.","PERMISSION_ROLES_MANAGEMENT":"角色管理","PERMISSION_ROLES_MANAGEMENT_DESC":"Create, edit, and delete platform roles.","PERMIGROUP_APPS_MANAGEMENT":"應用程式","PERMISSION_APP_TEMPLATES_VIEW":"App Viewing","PERMISSION_APP_TEMPLATES_VIEW_DESC":"View the platform App Store.","PERMISSION_APP_TEMPLATES_MANAGEMENT":"應用模板管理","PERMISSION_APP_TEMPLATES_MANAGEMENT_DESC":"Manage the platform App Store and life cycles of cloud-native applications.","PERMIGROUP_PLATFORM_SETTINGS":"平台設置","PERMISSION_PLATFORM_SETTINGS_MANAGEMENT":"Platform Settings Management","PERMISSION_PLATFORM_SETTINGS_MANAGEMENT_DESC":"View and edit settings of the KubeSphere platform.","DELETING_PRESET_ROLES_NOT_ALLOWED":"Preset roles cannot be deleted.","CONFIRM_PASSWORD_TIP":"請再次輸入新的密碼。","CHANGE_PASSWORD":"修改密碼","NEW_PASSWORD":"新的密碼","PASSWORD_STRENGTH":"Password Strength","PASSWORD_STRENGTH_DESC":"Avoid using weak passwords or passwords of other accounts.","TIME":"時間","SOURCE_IP_ADDRESS":"來源 IP 地址","LOGIN_HISTORY":"登入紀錄","NO_LOGIN_HISTORY":"找不到登入記錄","SUCCESSFUL":"成功","FAILED":"失敗","USER_DESC":"管理用戶及其角色。","USER_PL":"用戶","NOT_LOGIN_YET":"尚未登入","USER_EMPTY_DESC":"請創建一個用戶。","USER_ACTIVE":"活躍用戶","USER_AUTHLIMITEXCEEDED":"限制登入","USER_PENDING":"等待中","USER_DISABLED":"已禁用","LAST_LOGIN":"最近登入","USERNAME_DESC":"最長 32 個字元,只能包含小寫字母、數字、點及隔符號(\"-\"),且必須以小寫字母或數字開頭及結尾","PASSWORD_DESC":"The password must contain at least one number, one lowercase letter, one uppercase letter, and one special character (~!@#$%^&*()-_=+\\|[{}];:'\",<.>/? or space). The length must be 8 to 64 characters.","PASSWORD_INVALID_DESC":"無效的密碼。密碼必須至少包含一個數字、一個小寫字母和一個大寫字母。長度必須為 8 到 64 個字元。","PLATFORM_ROLE_DESC":"角色類型根據權限範圍分為集群和項目兩類,目前角色的授權範圍為整個集群.","USER_SETTING_EMAIL_DESC":"郵箱可作為登入帳號","USERNAME_EXISTS":"用戶名稱已存在","USERNAME_EMPTY_DESC":"請輸入用戶名稱","PLATFORM_ROLE":"平台角色","CREATE_USER":"創建用戶","EMAIL":"郵箱","EMAIL_EXISTS":"郵箱已存在,請輸入其他郵箱地址","USERNAME_INVALID":"用戶名稱格式不符合。{message}","USERNAME":"用戶名稱","PASSWORD":"密碼","EDIT_USER":"編輯用戶","USER_LOW":"用戶","DELETING_CURRENT_USER_NOT_ALLOWED":"The current user cannot be deleted.","WORKSPACE_PL":"企業空間","WORKSPACE_DESC":"企業空間是一個組織您的項目和 DevOps 項目、管理資源訪問權限以及在團隊内部共享資源等的邏輯單元,可以作為團隊工作的獨立工作空間。","CLUSTER_PL":"集群","ALL_CLUSTERS":"All Clusters","CREATE_WORKSPACE":"創建企業空間","WORKSPACE_NAME_EMPTY_DESC":"請輸入企業空間名稱。","WORKSPACE_CREATE_DESC":"設置企業空間的基本資訊。","ADMINISTRATOR":"管理員","WORKSPACE_NAME_EXISTS_DESC":"The workspace name already exists.","INVALID_WORKSPACE_NAME":"Invalid workspace name.","SELECT_CLUSTERS_DESC":"選擇企業空間下可用的集群","NO_CLUSTER_AVAILABLE":"No Cluster Available","NO_CLUSTER_AVAILABLE_DESC":"暫無可用的公開集群,請在企業空間創建完畢後,向平台管理員或集群管理員申請集群的授權。","WORKSPACE_NO_CLUSTER_TIP":"您需要聯繫平台管理員或者集群管理員為企業空間授權集群的訪問權限。","AVAILABLE_CLUSTERS":"可用集群","CLUSTER_SETTINGS":"集群設置","CLUSTER_SETTINGS_LIMIT_DESC":"请至少选择一个集群。","SELECT_HOST_CLUSTER_WARNING":"目前系統為多集群系統,請盡量避免在主集群上創建資源。主集群負載過高會導致多集群系統穩定性下降。","DELETE_WORKSPACE":"刪除企業空間","WORKSPACE_LOW":"企業空間","BACK":"返回","AGREE":"同意","APP_DEPLOY_AGREEMENT":"部屬須知","APP_DEPLOY_AGREEMENT_DESC_1":"您必須遵守該應用的開源協議。","APP_DEPLOY_AGREEMENT_DESC_2":"您部署該應用導致的任何後果將由您自行承擔。如果需要支持服務,請聯繫相關開發者。","DO_NOT_REMIND_AGAIN":"不再提示","LOCATION":"位置","CLUSTER_NAME_DESC":"The name can contain only lowercase letters, numbers, and hyphens (-), must start with a lowercase letter, and must end with a lowercase letter or number. The maximum length is 32 characters.","FEDPROJECT_CANNOT_DEPLOY_APP_TIP":"無法在聯邦項目裡部署應用.","LATEST_VERSION_SCAP":"最新版本","WORKSPACE_EMPTY_DESC":"請選擇企業空間","VERSION_EMPTY_DESC":"請選擇版本","HELM_APP_SCHEMA_FORM_TIP":"此應用支持表單模式,可選擇通過表單或 YAML 編輯器來修改預設應用配置。注意:不同模式之間數據獨立。","DEPLOYED_SUCCESSFUL":"部屬成功。","APP_INFORMATION":"應用資訊","VERSION_NUMBER":"版本號碼","APP_SCREENSHOTS":"應用截圖","CATEGORY_COLON":"類別:","HOMEPAGE_COLON":"首頁:","RELEASE_DATE_COLON":"發布時間:","APP_ID_COLON":"應用程式 ID:","SOURCE_CODE_ADDRESS_COLON":"Source Code Address:","APP_VERSIONS_TITLE":"版本(只顯示 10 個最新的版本)","MAINTAINER_COLON":"維護者","VERSIONS":"版本","KEYWORDS":"關鍵字","NONE":"無","APP_INTRODUCTION":"應用程式介紹","APP_DETAILS":"應用程式詳情","NO_DOCUMENT_DESC":"沒有說明文件","VERSION_INTRO_EMPTY_DESC":"該版本沒有說明文件","CHART_FILES":"配置文件","NO_APP_CHART_FILE_FOUND":"該應用程式沒有配置文件","APP_STORE":"應用商店","HOME_APP_STORE_DESC":"The official App Store of KubeSphere provides deployment and management features that allow users to quickly deploy apps with one click based on app templates.","DISCOVER":"發現","NEW_APPS":"最新上架","APP_CATE_ALL":"全部","APP_CATE_UNCATEGORIZED":"Uncategorized","APP_CATE_MESSAGE_QUEUEING":"Message Queuing","APP_CATE_IMAGE_REGISTRY":"Image Registry","APP_CATE_PROMETHEUS_EXPORTER":"Prometheus Exporter","APP_CATE_WEB_SERVER":"Web Server","APP_CATE_NETWORKING":"Networking","APP_CATE_DATABASE_CACHE":"Database & Cache","APP_CATE_STORAGE":"儲存","MAINTAINER_VALUE":"維護者:{value}","LATEST_VALUE":"最新:{value}","TOTAL_CATE_COUNT":"應用程式數量:{total}","SEARCH_BY_NAME":"請輸入名稱進行搜尋","APP_SETTINGS":"應用程式設定","APP_CATEGORY_PL":"應用類別","APP_CATEGORIES_DESC":"您可以在此頁面創建、編輯、刪除類別,對已上架的應用進行類別管理。","ALL_CATEGORIES_VALUE":"全部類別({value})","APP_CATEGORY_EMPTY_DESC":"該類別暫無綁定的應用。","ENTER_CATEGORY_NAME_TIP":"請輸入類別名稱。","CATEGORY_NAME_DESC":"名稱可包含任意字元,最長 20 個字元。","DELETE_CATEGORY_DESC":"您確定要刪除類別 {name} 嗎?","CHANGED_SUCCESSFULLY":"已更改成功","CHANGE_CATEGORY":"調整類別","CHANGE_CATEGORY_DESC":"應用類別將決定該應用在應用商店中的類別","APP_DETAILS_DESC":"查看待發布的應用的詳情。","INTRODUCTION":"介紹","SERVICE_PROVIDER_WEBSITE":"服務供應商網站","APP_DESCRIPTION":"應用描述","DOCUMENTATION":"說明文件","NO_DOCUMENT_FOUND":"沒有說明文件","UPDATE_TIME_COLON":"Update time: ","UPDATE_LOG":"更新紀錄","NO_UPDATE_LOG_DESC":"沒有更新紀錄。","REJECT":"拒絕","REJECT_REASON_DESC":"請填寫拒絕審核的原因。","REJECT_REASON_TIP":"請填寫拒絕原因。","REJECT_SUCCESSFUL":"拒絕成功。","APPROVE":"Approve","RELEASE_SUCCESSFUL":"發布成功","APP_REVIEW":"App Review","APP_REVIEW_DESC":"Review apps to be released to the App Store.","NEW_SUBMIT":"New","APP_REVIEW_EMPTY_DESC":"Please create an app template in a workspace and submit the app template for review.","APP_STATUS_TO_BE_REVIEWED":"To be reviewed","APP_STATUS_PASSED":"Approved","APP_STATUS_SUSPENDED":"已下架","APP_STATUS_REJECTED":"已拒絕","APP_STATUS_IN_REVIEW":"審核中","OPERATOR":"操作者","APP_REVIEW_UNPROCESSED_EMPTY_DESC":"No App Needs to Be Reviewed","SUSPEND":"Suspend","APP_NOTE":"提示","SUSPEND_SUCCESSFUL":"下架成功。","RELEASE":"Release","ACTIVATE_SUCCESSFUL":"發布成功","APP_ID":"應用編號","CATEGORY":"類别","TYPE":"類型","DEVELOPER":"Developer","NO_VERSION_INFO_DESC":"沒有版本資訊。","ACTIVATE_VERSION":"上架版本","CANCEL_SUBMISSION":"取消提交","SUSPEND_VERSION":"下架版本","APP_SUSPEND_TIP":"應用 {name} 下架後,用戶無法從商店中部屬此應用,您確定要下架該應用嗎?","APP_RECOVER_TIP":"應用 {name} 上架後,相關的下架版本都將變成上架,您確定要上架該應用嗎?","REJECTION_REASON":"拒絕原因","RELEASE_RECORD":"發布紀錄","RELEASE_RECORD_EMPTY_DESC":"沒有發布紀錄","APPS":"應用程式","APP_STORE_MANAGEMENT":"應用商店管理","APP_STORE_DESC":"管理應用商店中的應用。您可以查看應用的資訊並上架或下架應用。","APP_CATEGORY":"應用類別","APP_EMPTY_DESC":"Please create an app template in a workspace and release it to the App Store.","CRONJOB_EMPTY_DESC":"請創建一個定時任務。","EVERY_DAY":"0 0 * * * (每天)","EVERY_HOUR":"0 * * * * (每小時)","EVERY_MONTH":"0 0 1 * * (每月)","EVERY_WEEK":"0 0 * * 0 (每週)","PAUSE":"暫停","START":"啟動","DAEMONSETS":"守護進程集","DAEMONSET_EMPTY_DESC":"Please create a DaemonSet.","MIN_READY_SECONDS":"最小就緒時間 (MinReadySeconds)","MAX_UNAVAILABLE_PODS":"容器組最大不可用數量","ROLLING_UPDATE_SETTINGS":"更新時容器組數量","MAX_UNAVAILABLE_PODS_DESC":"升級過程中「允許存在的不可用的容器組」所占總容器組數的最大百分比或數量","MIN_READY_SECONDS_DESC":"指定守護進程集中容器組啟動可用所需的最小的秒數","MIN_READY_SECONDS_EMPTY":"Please set the minimum stable running time required for the Pod to be considered ready.","MAX_UNAVAILABLE_EMPTY":"Please set the maximum number of unavailable Pod replicas allowed during the update process.","FAILURE_THRESHOLD":"不健康臨界值","HTTP_REQUEST":"HTTP 請求檢查","INITIAL_DELAY_S":"初始延遲(s)","INITIAL_DELAY_TIMEOUT_VALUE":"{delay}s 初始延遲, {timeout}s 超時時間","PROBE_TIME":"初始延時: {delay}s 超時時間:{timeout}s","TIMEOUT_PERIOD_S":"超時時間(s)","CHECK_INTERVAL_S":"檢查間隔(s)","SUCCESS_THRESHOLD":"成功臨界值","INITIAL_DELAY_DESC":"在檢查其運行狀況之前,容器啟動後需要等待多長時間。","TIMEOUT_PERIOD_DESC":"等待探針完成多長時間。如果超過時間,則認為探測失敗。預設為1秒。最小值為1。","CHECK_INTERVAL_DESC":"執行探測的頻率(以秒為單位)。預設為10秒。最小值為1。","SUCCESS_THRESHOLD_DESC":"檢查失敗後再次被視為成功所需的最小連續成功次數。最小值為 1。對於存活探針和啟動探針,此參數值必須為 1。","FAILURE_THRESHOLD_DESC":"檢查成功後再次被視為失敗所需的最小連續失敗次數。最小值為 1。","PROBE_COMMAND_EMPTY":"請輸入至少一條指令","TCP_PORT":"TCP 端口檢查","MOUNT_PATH_IN_USE":"掛載路徑已使用,請輸入其他掛載路徑。","CREATOR":"創建者","NO":"否","EDIT_CONTAINER":"Edit Container","MULTI_CLUSTER_RESOURCE_TIP":"目前資源跨多個集群部屬。您可以點擊一個集群以查看資源在該集群中的設置。","NODE":"節點","SERIAL_NUMBER":"序號","CREATED_TIME":"創建於 {diff}","EVENT_PL":"事件","EVENT_NORMAL":"Normal","EVENT_WARNING":"一般告警","APPLICATION_WORKLOAD_PL":"應用負載","WORKLOAD_PL":"工作負載","DEPLOYMENTS":"部署","UPDATE_TIME_TCAP":"更新時間","ALL_PROJECTS":"全部項目","SHOW_NUM":"Show: {num}","SELECT_PROJECT_DESC":"選擇將要創建資源的項目。","PROJECT_NOT_SELECT_DESC":"請選擇一個項目。","BASIC_INFORMATION":"基本資訊","NAME":"名稱","FEDPROJECT_RESOURCE_TIP":"無法在集群管理内創建聯邦項目的資源, 請到聯邦項目頁面内進行操作。","FINISHED":"Done","NOT_SET":"To do","CURRENT":"目前","PROJECT":"項目","PREVIOUS":"上一步","NOTE":"請注意","IMAGE":"鏡像","IMAGE_VALUE":"鏡像:{value}","PORT_NUMBER_EMPTY":"請輸入端口號。","USER":"用戶","VOLUME_NAME_EXIST":"儲存卷名稱已使用","SELECT_TYPE":"選擇{type}","SPECIFY_SUBPATH":"點擊指定子路徑","SPECIFY_SUBPATH_TIP":"指定需要掛載到容器的儲存卷子路徑。","MOUNT_PATH":"掛載路徑","MOUNT_PATH_NOT_SPECIFIED":"Please select a key to be mounted and the mount path of the key.","MOUNT_PATH_EMPTY":"Please enter a mount path.","MOUNT_PATH_REPEATED":"The mount path is duplicated.","NETWORK_SEGMENT_SCAP":"網段","AVAILABLE_ADDRESSES":"可用地址數量","POD_IP_POOL":"容器組 IP 地址範圍","SUBPATH":"子路徑","ANNOTATION_PL":"註釋","CREATE_SUCCESSFUL":"創建成功","STOP":"停止","STOP_TITLE_SI":"停止{type}","STOP_TITLE_PL":"批量停止{type}","STOP_DESC":"Are you sure you want to stop the resource?","END_TIME":"結束時間","SN_NO":"序號","START_TIME":"開始時間","NODE_IP_ADDRESS":"節點 IP 地址","CLUSTER":"集群","CONTAINER_PL":"容器","PROBE_PL":"探針","HOOK_PL":"Hooks","CONTAINER_LOGS_NOT_SUPPORTED":"容器在目前狀態下不支持即時紀錄,請稍後再試","CONTAINER_LOGS":"容器紀錄","COMMAND":"命令","IMAGE_ID":"鏡像 ID","IMAGE_PULL_POLICY":"鏡像拉取策略","CONTAINER_DETAILS_PAGE_SCAP":"容器詳情頁。","CPU_VALUE":"CPU: {value, plural, =1 {1 core} other {# cores}}","MEMORY_VALUE":"Memory: {value}","NVIDIA_COM_GPU_VALUE":"GPU: {value}","LOADING":"載入中...","RESOURCE_LIMITS":"資源限制","RESOURCE_REQUESTS":"資源預留","TERMINAL":"終端","RESTART_PL":"重啟次數","RESTART":"重啟次數","STORAGE_DEVICES":"儲存設備","LIVENESS_PROBE":"存活探針","READINESS_PROBE":"就緒探針","STARTUP_PROBE":"啟動探針","REQUEST_TYPE":"Request type","NO_LOG_DATA_FOUND":"No Log Data Found","NO_LOG_DATA_FOUND_TIP":"No log data is found.","VOLUME_PL":"Volumes","TYPE_CONFIGMAP":"儲存卷類型:配置設定","TYPE_SECRET":"儲存卷類型:保密設定","TYPE_EMPTYDIR":"儲存卷類型:EmptyDir","TYPE_HOSTPATH":"儲存卷類型:HostPath","REASON_VALUE":"原因:{value}","MESSAGE_VALUE":"訊息:{value}","UPDATED_AT_VALUE":"更新時間 :{value}","NO_MONITORING_DATA":"未發現監控資料","OUTBOUND":"出站","INBOUND":"入站","POD_PL":"容器組","NODE_IP":"{node} ({ip})","WAITING":"Waiting","POD_LOW":"容器組","PENDING":"等待中","SERVICE_VALUE":"服務:{value}","PROTOCOL_VALUE":"協定:{value}","ROUTE_DESC":"應用路由提供一種聚合服務的方式,您可以將集群的内部服務通過一個外部可訪問的 IP 地址暴露給集群外部。","PREREQUESTS_FOR_USE_ROUTE_Q":"使用應用路由的前提條件?","PREREQUESTS_FOR_USE_ROUTE_A":"使用應用路由需要由項目管理員對當前項目設置網關。","ACCESS_TYPES_OF_ROUTE_Q":"應用路由支持的訪問方式?","ACCESS_TYPES_OF_ROUTE_A":"KubeSphere 應用路由支持 NodePort 訪問方式以及 LoadBalancer 訪問方式。","ROUTE_PL":"應用路由","GATEWAY_ADDRESS_TCAP":"網關地址","ROUTE_EMPTY_DESC":"應用路由提供一種聚合服務的方式,您可以將集群的内部服務通過一個外部可訪問的 IP 地址暴露給集群外部。","ADD_ROUTING_RULE_DESC":"添加一個路由規則將域名映射至服務。","ADD_ROUTING_RULE":"添加路由規則","ROUTING_RULE_EMPTY_DESC":"請添加至少一個路由規則。","PATH_EMPTY_DESC":"請添加至少一個路徑。","AUTO_GENERATE_TCAP":"自動生成","DOMAIN_NAME_TCAP":"域名","DOMAIN_NAME_EMPTY_DESC":"請輸入域名。","INVALID_DOMAIN_DESC":"域名格式錯誤","INVALID_PATH_DESC":"請填寫正確路徑。","MODE_TCAP":"模式","PATH_PL":"路徑","PATH_SERVICE_TIP":"服務","SET_ROUTING_RULES":"設置路由規則","SPECIFY_DOMAIN_TCAP":"指定域名","NO_GATEWAY_DESC":"若要使用自動生成模式,請聯系項目管理員在此項目的高級設置中設置網關訪問方式。","PATH":"路徑","PROTOCOL":"協定","PORT":"通訊埠","PORT_VALUE":"通訊埠:{value}","CERTIFICATE":"憑證","EDIT_ROUTING_RULES":"編輯路由規則","EDIT_ANNOTATIONS":"編輯註釋","ROUTE_LOW":"應用路由","PLEASE_INSTALL_GATEWAY":"请安装 KubeSphere 网关扩展组件,并配置集群 Agent 后再试。","ROUTE_SETTING_DESC":"應用路由工具在應用路由的基礎上,提供了多項實用擴展能力,如域名重用校驗。","ROUTE_SETTING_EMPT":"未發現需重用校驗的域名","ROUTE_SETTING_EMPTY_DESC":"添加域名後,會在創建和編輯應用路由時對域名進行唯一性校驗。「域名重用校驗」僅對當前集群生效,且不作用於使用該功能前已存在的應用路由。","CREATE_DOMAIN_NAME":"添加域名","CREATE_DOMAIN_NAME_DES":"添加域名時支持使用通配符進行匹配。","INVALID_CREATE_DOMAIN_NAME":"該域名已經存在,請輸入其他域名。","DOMAIN_NAME_DESC":"請設置一個域名","INVALID_DOMAIN_NAME":"域名重用校驗","ROUTE_SETTING":"域名","ROUTE_SETTING_PL":"應用路由工具","ROUTE_SETTING_LOW":"域名","DELETE_MULTIPLE_ROUTE_SETTING":"批量刪除域名","EXIT_DOMAIN_DESC":"該域名或域名的子域名在當前集群的項目中已使用,請更換不同域名。","CUSTOM_SERVICE":"自定義服務","VIRTUAL_IP":"虛擬 IP","CONTAINER_PORT_SCAP":"容器通訊埠","SERVICE_PORT_SCAP":"服務通訊埠","NO_AVAILABLE_RESOURCE_VALUE":"暫時沒有可用的{resource}","NO_RESOURCE_FOUND":"沒有發現資源。","REVISION_RECORD":"Revision record","SERVICE_PL":"服務","SERVICE_DESC":"服務(Service)提供一種抽象的方法,將運行在容器组(Pod)上的應用程式公開為網路服務。","SERVICE_EMPTY_DESC":"請創建一個服務。","UNKNOWN":"未知","EXTERNAL_ACCESS":"外網訪問","INTERNAL_ACCESS":"Internal Access","UNKNOWN_SERVICE_TYPE":"未知服務類型","SERVICE":"服務","SERVICE_LOW":"服務","INTERNAL_ACCESS_MODE":"内部訪問模式","CREATE_SERVICE":"創建服務","SERVICE_NAME_DESC":"名稱只能包含小寫字母、數字和連字符號(-),必須以小寫字母開頭並以小寫字母或數字结尾,最長 63 個字元。","VIRTUAL_IP_TITLE":"虚擬 IP 地址","INTERNAL_DOMAIN_NAME":"内部域名","CONTAINER_PORT":"容器通訊埠","INVALID_PORT":"通訊埠無效。","PORT_EMPTY":"請輸入通訊埠","ENTER_SELECTOR_TIP":"請設置工作負載選擇器。","Ports":"通訊埠","SPECIFY_WORKLOAD":"指定工作負載","SELECT_WORKLOAD_DESC":"使用工作負載的標籤作為選擇器。","VIRTUAL_IP_DESC":"為服務分配虚擬 IP 地址,可通過虚擬 IP 地址在集群内部訪問服務。","INTERNAL_DOMAIN_NAME_DESC":"不為服務分配 IP 地址,可通過集群的 DNS 機制在集群内部訪問服務。","SERVICE_PORTS_DESC":"設置容器通訊埠和服務通訊埠。","NO_WORKLOAD_MATCH_SELECTOR":"没有工作負載匹配目前選擇器。","WORKLOADS_MATCH_SELECTOR_SI":"目前選擇器({selector})與 {count} 個工作負載匹配。","WORKLOADS_MATCH_SELECTOR_PL":"目前選擇器({selector})與 {count} 個工作負載匹配。","WORKLOAD_SELECTOR":"工作負載選擇器","SERVICE_SETTINGS":"服務設置","TOTAL_WORKLOADS_VALUE":"工作負載總數:{count}","OPENELB_NOT_READY":"OpenELB is not installed. Please install OpenELB.","SESSION_PERSISTENCE":"Session Persistence","MAXIMUM_STICKINESS_DURATION":"最大會話保持時間(s)","SESSION_PERSISTENCE_DESC":"Set the system to forward all requests from the same client to the same pod within a specified duration.","SERVICE_EXTERNAL_ACCESS_DESC":"設置從集群外訪問服務的方式。","ACCESS_NODEPORT_TIP":"通過集群節點的對應通訊埠來訪問服務。","ACCESS_LOADBALANCER_TIP":"通過負載平衡器來訪問服務。","WORKLOAD_ANNOTATIONS":"工作負載註釋","LABEL_FORMAT_DESC":"The key and value of a label can contain only letters, numbers, hyphens (-), underscores (_), and dots (.), and must start and end with a letter or number. The maximum length of each key and each value is 63 characters (if the key contains a domain name, the maximum length is 253 characters).","STATEFULSETS":"有狀態副本集","INVALID_ALIAS_NAME_DESC":"Invalid alias name. The alias name can contain only letters, numbers, and hyphens (-), and cannot start or end with a hyphen. The maximum length is 63 characters.","NODES":"節點","DISK":"硬碟","CLUSTER_INFORMATION":"集群資訊","CLUSTER_NAME":"集群名稱","EDIT_CLUSTER_INFO_DESC":"編輯集群基礎資訊","REMOVE_CLUSTER":"Remove Cluster","REMOVE_CLUSTER_DESC":"After the cluster is removed, KubeSphere will not be able to manage the cluster. Resources in the cluster will not be deleted. Enter the cluster name {name} to confirm that you understand the risks of this operation.","REMOVE_SUCCESS":"Removed successfully.","CLUSTER_MEMBER_PL":"集群成員","CLUSTER_MEMBER":"集群成員","INVITE_CLUSTER_MEMBER_DESC":"Invite users to the cluster.","PERMIGROUP_NETWORK_MANAGEMENT":"網路","PERMISSION_NETWORK_RESOURCES_VIEW":"Network Resource Viewing","PERMISSION_NETWORK_RESOURCES_MANAGEMENT":"Network Resource Management","PERMIGROUP_PROJECT_RESOURCES_MANAGEMENT":"Project Resources","PERMISSION_PROJECT_RESOURCES_VIEW":"Project Resource Viewing","PERMISSION_PROJECT_RESOURCES_MANAGEMENT":"Project Resource Management","PERMISSION_STORAGECLASSES_VIEW":"Storage Class Viewing","PERMISSION_STORAGECLASSES_MANAGEMENT":"Storage Class Management","PERMISSION_VOLUME_SNAPSHOT_CLASSES_VIEW":"Volume Snapshot Class Viewing","PERMISSION_VOLUME_SNAPSHOT_CLASSES_MANAGEMENT":"Volume Snapshot Class Management","PERMIGROUP_CLUSTER_RESOURCES_MANAGEMENT":"Cluster Resources","PERMISSION_CRD_VIEW":"Custom Resource Definition Viewing","PERMISSION_CRD_MANAGEMENT":"Custom Resource Definition Management","PERMISSION_NODES_VIEW":"Node Viewing","PERMISSION_NODES_MANAGEMENT":"Node Management","PERMISSION_COMPONENTS_VIEW":"System Component Viewing","PERMIGROUP_CLUSTER_SETTINGS":"集群設置","PERMISSION_CLUSTER_SETTINGS_VIEW":"Cluster Settings Viewing","PERMISSION_CLUSTER_SETTINGS_MANAGEMENT":"Cluster Settings Management","PERMISSION_CLUSTER_MONITORING_VIEW":"Monitoring Information Viewing","PERMISSION_CLUSTER_MONITORING_MANAGEMENT":"Monitoring Information Management","PERMISSION_CLUSTER_ROLES_VIEW":"角色查看","PERMISSION_CLUSTER_ROLES_MANAGEMENT":"角色管理","PERMISSION_CLUSTER_MEMBERS_VIEW":"成員查看","PERMISSION_CLUSTER_MEMBERS_MANAGEMENT":"成員管理","CLUSTER_ROLE":"集群規則","CLUSTER_ROLE_PL":"集群規則","CLUSTER_ROLE_DESC":"This module allows you to manage the access of users within a cluster.","ROLE_CLUSTER_VIEWER":"View all resources in the cluster.","ROLE_CLUSTER_ADMIN":"Manage all resources in the cluster.","CLUSTER_VISIBILITY":"集群能見度","EDIT_VISIBILITY_DESC":"編輯集群在企業空間中的能見度。","UNAUTHORIZED":"未授權","CLUSTER_VISIBILITY_DESC":"集群能見度控制集群對企業空間的授權。將集群授權給企業空間後,即可在企業空間中查看並管理集群資源。","CLUSTER_VISIBILITY_Q1":"如何將集群授權給指定的企業空間使用?","CLUSTER_VISIBILITY_A1":"您可以點擊編輯能見度將集群授權給指定的企業空間使用。","CLUSTER_VISIBILITY_Q2":"什麼是公開集群?","CLUSTER_VISIBILITY_A2":"公開狀態的集群意味著平台内的用戶都可以使用該集群,並在集群中創建和調度資源。","WORKSPACE":"企業空間","CLUSTER_VISIBILITY_SCAP":"集群能見度","AUTHORIZATION_TIME_TCAP":"授權時間","EDIT_VISIBILITY":"編輯能見度","AUTHORIZED":"已授權","SET_PUBLIC_CLUSTER":"設置為公開集群","HOST_CLUSTER_VISIBILITY_WARNING":"請謹慎將主集群授權给企業空間,主集群負載過高會導致多集群系統穩定性下降。","CLUSTER_VISIBILITY_REMOVE_WARNING":"移除集群對企業空間的授權後,該企業空間在目前集群下的所有資源將被刪除。","REMOVE_WORKSPACE_CONFIRM_TITLE":"移除授權","REMOVE_WORKSPACE_CONFIRM_SI":"請輸入企業空間名稱 {resource} 確保您已了解操作所带来的風險。","REMOVE_WORKSPACE_CONFIRM_PL":"請輸入企業空間名稱 {resource} 確保您已了解操作所带来的風險。","GATEWAY_LOW":"網關","REQUEST_COUNT":"請求數量","NETWORK_TRAFFIC":"網路流量","CONNECTION_COUNT":"連接數量","FAILED_REQUEST_COUNT":"請求錯誤數量","AVERAGE_LATENCY":"平均延遲","P_FIFTY_LATENCY":"P50 延遲","P_NINETY_FIVE_LATENCY":"P95 延遲","P_NINETY_NINE_LATENCY":"P99 延遲","FOUR_XX_REQUEST_COUNT":"4xx 請求數量","FIVE_XX_REQUEST_COUNT":"5xx 請求數量","TOTAL_REQUESTS":"總請求數量","SUCCESSFUL_REQUESTS":"請求成功","CONFIGURATION_OPTIONS":"網關配置","GATEWAY_LOGS":"網關記錄","LOGGING_DISABLED":"紀錄組件未開啟","REFRESH_INTERVAL_VALUE":"刷新間隔:{value}s","EXPORT_LOGS":"導出紀錄","GATEWAY_SETTINGS":"網關設置","CLUSTER_GATEWAY_DESC":"對集群和項目中的外網訪問網關以及服務治理等配置進行設置和管理","CLUSTER_GATEWAY_NOT_ENABLED":"集群網關未開啟","CLUSTER_ENABLE_GATEWAY_DESC":"請開啟集群網關。","CLUSTER_GATEWAY":"集群網關","GATEWAY_ADDRESS_SCAP":"網關地址","LOAD_BALANCER_PROVIDER_SCAP":"負載均衡器供應商","ENABLE_GATEWAY":"開啟網關","GATEWAY_TRACING_TIP":"如果開啟鏈路追蹤後路由無法訪問,請在路由中添加註釋 nginx.ingress.kubernetes.io/service-upstream: true。","VIEW_DETAILS":"查看詳情","DISABLE":"關閉","DISABLE_GATEWAY":"關閉網關","DISABLE_GATEWAY_TIP":"您確定關閉網關嗎?","DISABLE_SUCCESSFUL":"關閉成功。","EDIT":"編輯","EDIT_TITLE":"編輯 {title}","UPDATE":"Update","UPDATED_GATEWAY_TITLE":"Update Gateway","UPDATE_GATEWAY_DESC":"The current gateway can be updated.","PROJECT_GATEWAY_PL":"項目網關","PROJECT_GATEWAY_NOT_ENABLED":"項目網關 未開啟","PROJECT_ENABLE_GATEWAY_DESC":"請開啟項目網關。","REPLICA_COUNT":"副本數量","NODE_PORTS":"主機通訊埠","PROJECT_GATEWAY_LOW":"項目網關","DISABLE_MULTIPLE_GATEWAYS":"Disable Multiple Gateways","EDIT_LOG_RECEIVER":"Edit Log Receiver","INDEX_PREFIX":"索引前缀","LOG_RECEIVER":"Log Receiver","LOG_RECEIVER_LOW":"Log Receiver","CHANGE_STATUS":"更改狀態","LOG_COLLECTION_ENABLE_TIPS":"新的狀態需 1 分鐘左右生效","SELECT_STATUS_TIP":"選擇一個狀態","ADDRESS":"地址","LOG_RECEIVER_PL":"紀錄接收者","LOG_COLLECTION_DESC":"系統將收集每個容器的標準輸出和標準錯誤輸出紀錄,並將其發送到一個或多個目標服務","ADD_LOG_RECEIVER":"添加紀錄接收器","LOG_COLLECTION_TIPS":"每種類型的紀錄收集器只能添加一個。","ES_DESC":"Elasticsearch 是分布式、RESTful 風格的搜尋和分析引擎","KAFKA_DESC":"Kafka 是流行的開源流處理平台","FLUENTD_DESC":"Fluentd 是提供統一紀錄處理層的開源數據收集器","LOG_COLLECTION_ES_URL_TIPS":"預設使用系統部署的 Elasticsearch 服務,您也可以輸入在集群内部或外部單獨部署的 Elasticsearch 服務的地址。","LOG_COLLECTION_ES_INDEX_TIPS":"使用索引前綴進行快速搜索。系統以<集群>-<索引前綴>-<年-月-日>格式自動生成索引前綴。","ADDRESS_VALUE":"Address: {value}","TOPIC":"主題","ADD_SERVICE_ADDRESS":"新增","SERVICE_ADDRESS":"服務地址","ENTER_SERVICE_ADDRESS":"請輸入服務地址。","INVALID_SERVICE_ADDRESS":"請輸入正確的服務地址。","SERVICE_ADDRESS_EXIST":"The service address already exists. Please enter another service address.","EXAMPLE_VALUE":"Example: {value}","LOG_COLLECTION_FLUENTD_URL_TIPS":"輸入接收紀錄的 Fluentd 服務的地址。","EMPTY_LOG_COLLECTIONS":"未發現紀錄接收器。您可以添加紀錄接收器將記錄發送到外部紀錄接收器中。","RESOURCE_EVENTS":"資源事件","AUDIT_LOGS":"審計紀錄","NO_CLUSTER_TIP":"請添加至少 1 個集群","CLUSTER_NAME_EMPTY":"Please enter a cluster name.","ADD_CLUSTER":"添加集群","TAG":"標籤","CLUSTER_TAG_DESC":"選擇標籤來識別集群的用途。","CLUSTER_PROVIDER_DESC":"選擇提供集群基礎設施的服務商。","CONNECTION_SETTINGS":"Connection Settings","CLUSTER_CONFIG":"Cluster Configuration","EDIT_CONFIG":"編輯配置","CLUSTER_CONFIG_IMAGE_REGISTRY_TIP":"Please modify the image registry address to your actual one. The default is KubeSphere's official online registry. Ensure you can access it","CONNECTION_MODE":"Connection Mode","CLUSTER_CONNECT_MODE_DESC":"Directly connect to the cluster or use an agent.","CONNTECT_DIRECT":"直接連接 Kubernetes 集群","CONNTECT_PROXY":"集群連接代理","INPUT_KUBECONFIG":"Member Cluster kubeconfig","CLUSTER_DIRECT_IMPORT_TIP":"KubeSphere 多集群控制平面通過提供的 kubeconfig 來直接連接導入集群,此種方式要求目前集群能夠通過 kubeconfig 中的 server 地址直接訪問待導入集群。
    通常適用於:
    1. 目前集群和待導入集群在同一内網網路中
    2. 目前集群和待導入集群已通過 VPN 或穿隧協定等其它技術連通所在網路
    3. kubeconfig 的 server 地址可以通過公網訪問","CLUSTER_AGENT_IMPORT_TIP":"KubeSphere 控制平面通過代理方式連接待導入集群,控制平面啟動一個公開的代理服務,待導入集群創建相應的客戶端組件連接代理服務,與控制平面之間建立一個反向代理。此種方式不需要待導入集群和控制平面在同一網路,也不要求待導入集群暴露集群的 ApiServer 地址,但會有一定的網路性能損耗

    通常適用於:
    1. 目前集群和待導入集群不在同一網路中
    2. 目前集群和待導入集群無法通過 VPN 或穿隧協定等其它技術連通所在網路
    3. 對集群間網路性能損耗能容忍","CLUSTER_AGENT_TITLE":"請根據集群中提供的代理連接設置加入集群","CLUSTER_AGENT_DESC":"需要在集群中設置下相應的代理 Agent","HOW_TO_GET_KUBECONFIG":"How do I obtain kubeconfig?","HOST_CLUSTER_TCAP":"主集群","HOST_CLUSTER_PL_TCAP":"主集群","MEMBER_CLUSTER_TCAP_PL":"Member Clusters","CLUSTER_CONDITION_INITIALIZED":"Initialized","CLUSTER_CONDITION_AGENTAVAILABLE":"Agent Available","CLUSTER_CONDITION_FEDERATED":"Federated","CLUSTER_CONDITION_EXTERNALACCESSREADY":"External Access Ready","CLUSTER_CONDITION_READY":"Cluster Ready","CLUSTER_CONDITION_SCHEDULABLE":"Cluster Scheduling","CLUSTER_CONDITION_OPENPITRIXRUNTIMEREADY":"App Store Ready","CLUSTER_CONDITION_KUBECONFIGCERTEXPIRESINSEVENDAYS":"kubeconfig About to Expire","NODE_COUNT":"節點數量","ENV_PRODUCTION":"生產環境","ENV_DEVELOPMENT":"開發環境","ENV_TESTING":"測試環境","ENV_DEMO":"示範環境","UPDATE_KUBECONFIG":"Update kubeconfig","KUBE_CONFIG_IS_EXPIRED":"kubeconfig 已過期","EXPIRE_DATE":"過期時間","LAST_KUBE_CONFIG_EXPIRED":"kubeconfig 將在 {count} 天後過期","VALIDATION_FAILED":"Validation failed.","NO_CLUSTER_TIP_DESC":"A cluster is a group of nodes (physical or virtual machines) running KubeSphere.","RISK_WARNING":"Risk Warning","REMOVE_CLUSTER_TIP_A":"After the cluster is removed, resources in the cluster will not be cleared automatically.","REMOVE_CLUSTER_TIP_B":"After the cluster is removed, multi-cluster configuration data in the cluster will not be cleared automatically. Uninstalling KubeSphere or deleting related resources may cause user data loss. You must manually clear the multi-cluster configuration data in the removed cluster by refering to the official KubeSphere documentation.","CLUSTER_CONFIRM_TEXT":"I understand the risks of removing the cluster","ENTER_CLUSTER_NAME":"This operation cannot be undone. Enter the cluster name {name} to confirm that you understand the risks of this operation.","CLUSTER_BANNER_ALERT":"KubeSphere 只需透過 KubeConfig 即可一鍵納管 Member 集群。添加集群後,無需自行在 Member 集群上安裝 KubeSphere;若已自行安裝,請在添加 Member 集群前卸載。","CONFIGMAP_DESC":"配置字典(ConfigMap)常用於儲存工作負載所需的配置資訊,許多應用程式會從配置文件、命令行參數或環境變量中讀取配置資訊。","FIELDS":"配置項","EDIT_YAML":"編輯 YAML","ENTER_CONFIG_VALUE_DESC":"配置是儲存通用的配置變量的,使用戶可以將分布式系統中用於不同模組的環境變量統一到一個對象中進行管理","CONFIG_FIELD_DESC":"此配置映射條目的唯一 key 值。","CONFIGURATION":"配置","SECRET_PL":"保密字典","SECRET_DESC":"保密字典(Secret)是一種包含少量敏感資訊的資源對象,例如密碼、token、秘鑰等,以鍵值對形式保存並且可以在容器組中使用。","SECRET_FIELD_COUNT":"字段數量","SECRET_EMPTY_DESC":"保密字典是一種包含少量敏感資訊的資源對象,例如密碼、token、秘鑰等,以鍵/值對形式保存並且可以在容器組中使用。","SECRET":"保密字典","DATA_SETTINGS":"數據設置","IMAGE_REGISTRY_INFORMATION":"鏡像倉庫資訊","TLS_INFORMATION":"TLS 資訊","USERNAME_PASSWORD":"用戶名稱與密碼","ADD_DATA_TCAP":"新增數據","ADD_DATA_DESC":"新增鍵值對數據。","REGISTRY_ADDRESS_TIP":"設置鏡像倉庫地址,例如 docker.io。","IMAGE_REGISTRY_REQUIRED_DESC":"請設置倉庫地址\b、用戶名稱和密碼資訊。","CREDENTIAL_NAME_EMPTY_DESC":"請輸入憑證名稱。","ENTER_PRIVATE_KEY_DESC":"請輸入私鑰。","ENTER_DATA_DESC":"請新增數據。","PRIVATE_KEY_TCAP":"私鑰","REGISTRY_ADDRESS_TCAP":"倉庫地址","SKIP_VERIFY":"跳過證書驗證","REGISTRY_SECRET_VER_ERR":"鏡像倉庫驗證失敗。","REGISTRY_SECRET_VER_SUC":"鏡像倉庫驗證通過。","SECRET_NO_CHINESE_CODE_DESC":"保密字典的鍵必須由字母數字字符、連字符(-)、下劃線(_)或句點(.)組成。","SECRET_TYPE_DESC":"選擇一個保密字典類型","IMAGE_REGISTRY_VALIDATE_TIP":"創建鏡像倉庫密鑰前, 請先驗證用戶名和密碼。","DATA_KEY":"鍵","DATA_VALUE":"值","DEFAULT":"預設","USERNAME_AND_PASSWORD":"用戶名和密碼","DATA":"數據","EDIT_DATA_TCAP":"編輯數據","KUBECONFIG_SETTINGS":"kubeconfig 設置","CUSTOM_RESOURCE_PL":"自定義資源","PROJECT_DEVOPS_PROJECT":"項目/DevOps 項目","CUSTOM_RESOURCE":"自定義資源","CUSTOM_RESOURCE_LOW":"custom resource","CRD":"CRD","CRD_PL":"CRD","CRD_LOW":"CRD","CRD_DESC":"自定義資源定義 (CRD) 是一種 Kubernetes 實現自定義資源類型的擴展方式,您可以如同操作内置資源對象一樣操作 CRD 對象。","CRD_EMPTY_DESC":"請創建一個 CRD。","KIND_TCAP":"類別","SCOPE_TCAP":"作用域","ALERTING_MESSAGE_PL":"Alerts","ALERT_MESSAGE_DESC":"Alerts are generated when resource metrics meet conditions configured in rule groups.","ALERTS_FROM_CUSTOM_POLICIES":"From Custom Rules","ALERTS_FROM_BUILT_IN_POLICIES":"From Built-in Rules","TRIGGER_TIME":"Trigger Time","ALERTING_MESSAGE_EMPTY_DESC":"No alert is found in the current project.","MONITORING_TARGET":"監控目標","DURATION":"Duration","VIEW_METRIC_DATA":"View metric data","ALERTING_RULE":"Alert Rules","MONITORING_TARGETS_SCAP":"監控目標","TRIGGER_CONDITION_SCAP":"Trigger condition","METRIC_MONITORING":"指標監控","ALERT_MONITORING":"Alert Monitoring","NOTIFICATION_SUMMARY_COLON":"Summary: ","DETAILS_COLON":"Details: ","NODES_VALUES":"Nodes: {values}","TRIGGER_CONDITION":"Trigger Condition","MESSAGE_SUMMARY":"概括","MESSAGE_DETAILS":"詳情","VIEW_METRIC_DATA_TCAP":"View Metric Data","ALERT_RULE_TEXT_PERCENT_SECOND":"{alterTypeText} {comparator} {thresholds}% for {durationValue, plural, =1 {1 second} other {# seconds}}","ALERT_RULE_TEXT_PERCENT_MINUTE":"{alterTypeText} {comparator} {thresholds}% for {durationValue, plural, =1 {1 minute} other {# minutes}}","ALERT_RULE_TEXT_PERCENT_HOUR":"{alterTypeText} {comparator} {thresholds}% for {durationValue, plural, =1 {1 hour} other {# hours}}","ALERT_RULE_TEXT_SECOND":"{alterTypeText} {comparator} {thresholds} {unit} for {durationValue, plural, =1 {1 second} other {# seconds}}","ALERT_RULE_TEXT_MINUTE":"{alterTypeText} {comparator} {thresholds} {unit} for {durationValue, plural, =1 {1 minute} other {# minutes}}","ALERT_RULE_TEXT_HOUR":"{alterTypeText} {comparator} {thresholds} {unit} for {durationValue, plural, =1 {1 hour} other {# hours}}","CPU_UTILIZATION_NO_PERCENT_TCAP":"CPU 使用量","CPU_LOAD_1_TCAP":"1-Minute CPU Load Average","CPU_LOAD_5_TCAP":"5-Minute CPU Load Average","CPU_LOAD_15_TCAP":"15-Minute CPU Load Average","MEMORY_UTILIZATION_NO_PERCENT_TCAP":"記憶體使用量","MEMORY_AVAILABLE_TCAP":"Available Memory","DATA_SEND_RATE_TCAP":"Network Data Sending Rate","DATA_RECEIVE_RATE_TCAP":"Network Data Receiving Rate","DISK_SPACE_UTILIZATION_NO_PERCENT_TCAP":"Local Disk Usage","DISK_SPACE_AVAILABLE_TCAP":"Available Local Disk Space","INODE_UTILIZATION_NO_PERCENT_TCAP":"Inode 用量","DISK_READ_IOPS_TCAP":"Local Disk Read IOPS","DISK_WRITE_IOPS_TCAP":"Local Disk Write IOPS","DISK_READ_THROUGHPUT_TCAP":"Local Disk Read Throughput","DISK_WRITE_THROUGHPUT_TCAP":"Local Disk Write Throughput","UNAVAILABLE_POD_RATIO_NO_PERCENT_TCAP":"Unavailable Pod Ratio","POD_QUOTA_UTILIZATION_NO_PERCENT_TCAP":"Pod Quota Usage","MEMORY_USAGE_WO_CACHE_TCAP":"Memory Usage Without Cache","UNAVAILABLE_WORKLOAD_REPLICA_RATIO_NO_PERCENT_TCAP":"Unavailable Replica Ratio","THRESHOLD_VALUE":"Threshold: {value}","NO_DATA_DESC":"未發現資料","ALERTING_POLICY_PL":"Rule Groups","ALERTING_POLICY_DESC":"A rule group contains alert rules used to monitor cluster resources.","REQUESTS_FOR_TRIGGER_AN_ALARM_Q":"How are alerts generated?","REQUESTS_FOR_TRIGGER_AN_ALARM_A":"You need to create a rule group and set alert rules. The system will generate alerts when resource metrics meet conditions configured in rule groups.","CUSTOM_POLICIES":"Custom Rule Groups","BUILT_IN_POLICIES":"Built-in Rule Groups","ALERTING_POLICY_EMPTY_DESC":"Please create a rule group.","ALERT_RULE_INACTIVE":"未觸發","ALERT_RULE_PENDING":"待觸發","ALERT_RULE_FIRING":"觸發中","ALERT_RULE_DISABLED":"已禁用","POLICY_STATUS":"Rule Group Status","RULE_STATUS":"Rule Status","TIME_SPENT":"Time Spent","RECENT_DETECT_TIME":"Last Check","EDIT_ALERT_RULES":"Edit Alert Rules","RESET":"Reset","SEVERITY":"告警級別","CREATE_ALERTING_POLICY":"Create Rule Group","CRITICAL_ALERT":"紧急","ERROR_ALERT":"重要","WARNING_ALERT":"警告","INFO_ALERT":"提醒","INVALID_TIME_DESC":"Invalid value. Please enter 0 or a positive integer.","ALIAS":"別名","DURATION_MIN":"Duration (minutes)","ALERT_DURATION":"Set the system to wait for a certain duration and check whether the alert situation persists before firing an alert.","LONG_NAME_DESC":"最長 253 個字元,只能包含小寫字母、數字及分隔符號(\"-\"),且必須以小寫字母或數字開頭及結尾","NAME_EXIST_DESC":"名稱已存在","ALIAS_NAME_DESC":"別名只能包含中文、字母、數字和連字符(-),不得以連字符(-)開頭或結尾,最長 63 個字符。","CHECK_INTERVAL":"Check Interval","ALERTING_POLICY_CHECK_INTERVAL_DESC":"Set the interval between metric checks. The default value is 1 minute.","ADD_ALERTING_RULE":"Add Alert Rule","ADD_ALERTING_RULE_DESC":"Add an alert rule to the rule group.","ENABLE_RULE":"Enable Rule","DISABLE_RULE":"Disable Rule","RULE_NAME":"Rule Name","CUSTOM_RULE_NAME_DESC":"The rule name can contain any characters. The maximum length is 63 characters.","LASTING_MINUTES":"For {minutes, plural, =1 {1 minute} other {# minutes}}","THRESHOLD_REQUIRED":"Please enter a metric threshold.","MESSAGE_SUMMARY_DESC":"The message summary can contain any characters. The maximum length is 63 characters.","MESSAGE_DETAILS_DESC":"The message details can contain any characters. The maximum length is 256 characters.","RULE_TEMPLATE":"規則模板","RULE_SETTINGS":"規則設置","MONITORING_TARGETS":"監控目標","SET_ACTIVATION_CONDITION_DESC":"Please set a trigger condition.","THRESHOLD":"閾值","UNAVAILABLE_POD_RATIO":"Unavailable pod ratio (%)","POD_QUOTA_UTILIZATION_SCAP":"Pod quota usage (%)","CPU_USAGE_SCAP":"CPU 用量","CPU_UTILIZATION_SCAP":"CPU usage (%)","CPU_LOAD_1":"1-minute CPU load average","CPU_LOAD_5":"5-minute CPU load average","CPU_LOAD_15":"15-minute CPU load average","MEMORY_AVAILABLE":"可用記憶體","MEMORY_UTILIZATION_SCAP":"Memory usage (%)","DISK_SPACE_AVAILABLE":"本地磁碟可用空間","DISK_SPACE_UTILIZATION":"Local disk usage (%)","INODE_UTILIZATION":"Inode usage (%)","DISK_READ_IOPS":"本地磁碟讀取 IOPS","DISK_WRITE_IOPS":"本地磁碟寫入 IOPS","DISK_READ_THROUGHPUT":"本地磁碟讀取吞吐量","DISK_WRITE_THROUGHPUT":"本地磁碟寫入吞吐量","DATA_RECEIVE_RATE":"網路接收數據速率","DATA_SEND_RATE":"網路發送數據速率","MEMORY_USAGE_SCAP":"記憶體用量","MEMORY_USAGE_WO_CACHE_SCAP":"Memory usage without cache","UNAVAILABLE_WORKLOAD_REPLICA_RATIO":"Unavailable replica ratio (%)","SELECT_NODE_TIP":"請選擇至少一個集群節點。","CUSTOM_RULE":"自定義規則","RULE_EXPRESSION":"告警規則表達式","ENTER_RULE_EXPRESSION":"請輸入告警規則表達式。","ALERT_RULE_EXPRESSION_DESC":"您可以通過 PromQL 語句來自定義告警規則。","ALERT_FUNCTIONS":"Functions","ALERT_METRICS":"Metrics","ALERT_LABELS":"標籤","ALERT_RATE_RANGES":"Rate Ranges","ALERTING_MESSAGE":"Alert","MESSAGE_SETTINGS":"訊息設置","NOTIFICATION_SUMMARY":"概括","NOTIFICATION_DETAILS":"詳情","EDIT_ALERTING_POLICY":"Edit Rule Group","DISABLE_ALERTING_POLICY":"Disable Rule Group","ALERTING_POLICY":"Rule Group","ALERTING_POLICY_LOW":"rule group","RESET_ALERTING_POLICY":"Reset Rule Group","RESET_ALERTING_POLICY_DESC":"Are you sure you want to reset the rule group?","APPLICATION_RESOURCE_PL":"應用資源監控","MONITORING_APPLICATION_DESC":"應用資源提供應用資源用量的監控數據以及用量排行情況。","CUSTOM_TIME_RANGE":"自定義時間範圍","ACCOUNTS":"帳戶","DEVOPS_PROJECT_PL":"DevOps 項目","SAMPLING_INTERVAL":"採樣間隔","KUBE_SUN":"日","KUBE_MON":"一","KUBE_TUE":"二","KUBE_WED":"三","KUBE_THU":"四","KUBE_FRI":"五","KUBE_SAT":"六","KUBE_SUNDAY":"星期日","KUBE_MONDAY":"星期一","KUBE_TUESDAY":"星期二","KUBE_WEDNESDAY":"星期三","KUBE_THURSDAY":"星期四","KUBE_FRIDAY":"星期五","KUBE_SATURDAY":"星期六","KUBE_JAN":"1月","KUBE_FEB":"2月","KUBE_MAR":"3月","KUBE_APR":"4月","KUBE_MAY":"5月","KUBE_JUN":"6月","KUBE_JUL":"7月","KUBE_AUG":"8月","KUBE_SEP":"9月","KUBE_OCT":"10月","KUBE_NOV":"11月","KUBE_DEC":"12月","KUBE_JAN_LH":"一月","KUBE_FEB_LH":"二月","KUBE_MAR_LH":"三月","KUBE_APR_LH":"四月","KUBE_MAY_LH":"五月","KUBE_JUN_LH":"六月","KUBE_JUL_LH":"七月","KUBE_AUG_LH":"八月","KUBE_SEP_LH":"九月","KUBE_OCT_LH":"十月","KUBE_NOV_LH":"十一月","KUBE_DEC_LH":"十二月","APPLICATION_RESOURCE_USAGE":"應用資源用量","DEPLOYMENT":"部署","DEPLOYMENT_PL":"部署","DEPLOYMENT_LOW":"deployment","STATEFULSET":"有狀態副本集","STATEFULSET_PL":"有狀態副本集","STATEFULSET_LOW":"statefulset","DAEMONSET":"守護進程集","DAEMONSET_PL":"守護進程集","DAEMONSET_LOW":"daemonset","DEPLOYMENTS_VALUE":"部署:{value}","STATEFULSETS_VALUE":"有狀態副本集數量:{value}","DAEMONSETS_VALUE":"守護進程集數量:{value}","RUNNING_PODS":"運行中的容器組數量","ROUTE":"應用路由","PROJECT_PL":"項目","PROJECT_COUNT":"項目數量","USAGE_RANKING":"用量排行","QUOTA_VALUE":"配額:{value}","OUTBOUND_TRAFFIC":"出站流量","INBOUND_TRAFFIC":"入站流量","SORT_BY_NAMESPACE_CPU_USAGE":"按 CPU 使用量排行","SORT_BY_NAMESPACE_POD_COUNT":"Sort by pod quota usage (%)","SORT_BY_NAMESPACE_NET_BYTES_RECEIVED":"按網路流入速率排行","SORT_BY_NAMESPACE_NET_BYTES_TRANSMITTED":"按網路流出速率排行","MONITORING_AND_ALERTING":"監控告警","CLUSTER_STATUS":"集群狀態","MONITORING_CLUSTER_DESC":"集群狀態展示集群資源的概覽和詳情,您可以查看集群資源的監控數據和用量排行情況。","CLUSTER_NODE_STATUS":"集群節點狀態","ALL_NODES":"全部節點","ONLINE_NODES":"在線節點","NODE_ONLINE_STATUS":"節點在線狀態","TIMES_PER_SECOND":"times/s","COMPONENT_STATUS":"組件狀態","CONTROLLER_MANAGER":"管理控制中心","KUBERNETES_SCHEDULER":"K8s 調度器","CLUSTER_RESOURCE_USAGE":"集群資源使用情況","POD_COUNT":"容器組數量","COUNT":"數量","PODS":"容器組","SERVICE_STATUS":"服務狀態","ETCD_MONITORING":"etcd 監控","DB_SIZE":"資料庫大小","RAFT_PROPOSAL":"Raft 提議","ETCD_STATUS":"服務 狀態","ETCD_PROPOSAL":"Raft 提議","ETCD_DB_SIZE":"資料庫 大小","ETCD_CLIENT_TRAFFIC":"客戶端 流量","TITLE_UNIT":"{title}({unit})","AVERAGE":"Average","PROPOSAL_COMMITTED":"Committed","PROPOSAL_APPLIED":"Applied","PROPOSAL_FAILED":"失敗","PROPOSAL_PENDING":"等待中","SERVICE_COMPONENT_MONITORING":"服務組件監控","SCHEDULE_ATTEMPTS":"調度次數","SCHEDULING_RATE":"調度速率","REQUEST":"請求","REQUEST_PER_SECOND":"每秒請求數","SCHEDULER":"調度器","TOTAL_AVERAGE":"總平均值","SUCCESS":"成功","ERROR":"錯誤","FAILURE":"失敗","REQUEST_LATENCY_TCAP":"請求 延遲","REQUEST_RATE":"請求 速率","SCHEDULE_ATTEMPTS_TCAP":"調度 次數","SCHEDULING_RATE_TCAP":"調度 速率","API_SERVER":"API 伺服器","SELECT_TIME_RANGE":"選擇時間範圍","LAST_TIME":"最近 {value}","LAST_TIME_M":"最近 {num} 分鐘","LAST_TIME_H":"最近 {num} 小時","LAST_TIME_D":"最近 {num} 天","TIMERANGE_SELECTOR_MSG":"結束時間需晚於開始時間。","TIMERANGE_SELECTOR_ERROR_MSG":"時間範圍設置錯誤。","PHYSICAL_RESOURCES_MONITORING":"物理資源監控","INODE_USAGE":"Inode 用量","DISK_USAGE":"磁碟用量","DISK_USAGE_DETAILS":"Disk Usage Details","AVERAGE_CPU_LOAD":"CPU 平均負載","DISK_THROUGHPUT":"磁碟吞吐量","POD_STATUS":"容器組狀態","COMPLETED":"已完成","WARNING":"異常","READ":"讀","WRITE":"寫","RUNNING":"運行中","TIME_M":"{num} 分鐘","TIME_H":"{num, plural, =1 {1 hour} other{# hours}}","TIME_D":"{num, plural, =1 {1 day} other{# days}}","EXTERNAL_ETCD":"外部 etcd","DB_FSYNC":"資料庫同步時間","GRPC_STREAM_MESSAGES":"gRPC 流式訊息","CLIENT_TRAFFIC":"客戶端流量","RECEIVED":"接收","SENT":"發送","WAL_FSYNC":"WAL 紀錄同步時間","ETCD_LEADER_TITLE":"是否有 Leader","ETCD_CHANGES_TITLE":"1 小時内 Leader 變更次數","NODE_IP_ADDRESS_VALUE":"節點 IP 地址:{value}","API_SERVER_MONITORING":"API Server 監控","REQUEST_LATENCY":"請求延遲","REQUEST_LATENCY_MS":"請求延遲(ms)","REST_CREATE":"CREATE","REST_DELETE":"DELETE","REST_DELETECOLLECTION":"DELETECOLLECTION","REST_GET":"GET","REST_POST":"POST","REST_PATCH":"PATCH","REST_PUT":"PUT","REST_UPDATE":"UPDATE","REST_LIST":"LIST","SCHEDULER_MONITORING":"調度器監控","SCHEDULING_LATENCY":"調度延遲","RESOURCE_USAGE_RANKING":"資源用量排行","SORT_BY_NODE_CPU_UTILISATION":"Sort by CPU usage (%)","SORT_BY_NODE_MEMORY_UTILISATION":"Sort by memory usage (%)","SORT_BY_NODE_DISK_SIZE_UTILISATION":"Sort by disk usage (%)","SORT_BY_NODE_POD_UTILISATION":"按容器組用量排行","SORT_BY_NODE_DISK_INODE_UTILISATION":"按 Inode 使用率排行","SORT_BY_NODE_LOAD1":"Sort by 1-minute CPU load average","SORT_BY_NAMESPACE_MEMORY_USAGE_WO_CACHE":"按記憶體使用量排行","POD_USAGE":"容器組用量","EXPORT":"匯出","CUSTOM_MONITORING":"自定義監控","CUSTOM_MONITORING_DASHBOARD":"自定義監控面板","CUSTOM_MONITORING_DASHBOARD_PL":"自定義監控面板","CUSTOM_MONITORING_DASHBOARD_EMPTY_DESC":"請創建一個自定義監控面板。","CUSTOM_MONITORING_DASHBOARD_DESC":"自定義監控提供應用監控模板,您可以根據需求自定義監控面板。","TEMPLATE":"Template","CREATE_CUSTOM_MONITORING_DASHBOARD":"創建自定義監控面板","MONITORING_TEMPLATE":"監控模板","CUSTOM_MONITORING_TEMPLATE_DESC":"選擇預設模板、上傳模板或自定義模板來生成自定義監控面板。","UPLOAD_GRAFANA_DASHBOARD":"上傳 Grafana 監控面板","SUPPORT_JSON_FILE":"僅支援 JSON 格式的文件。","UPLOAD_GRAFANA_URL":"通過 URL 上傳 Grafana 監控面板。","UPLOAD_FROM_LOCAL_TITLE":"選擇或拖移文件","FILE_UPLOAD_ERROR":"只能上傳一個文件。","UPLOAD_FILE_TIP":"請上傳文件。","ENTER_GRAFANA_URL":"請輸入 Grafana 監控面板 URL。","UPLOAD_FROM_LOCAL_STORAGE":"從本地上傳","UPLOAD_FROM_URL":"通過 URL 上傳","DASHBOARD_TITILE":"Dashboard title","APPLICABLE_SCENE":"Applicable Scenario","BASE_LINE_CHART":"Base Line Chart","STACK_LINE_CHART":"Stacked Area Chart","BASE_LINE_CHART_DESC":"A line chart is mainly used to visualize a trend or change in data over time. It is very useful for displaying a series of two-dimensional continuous data, such as website traffic or product prices.","STACK_LINE_CHART_DESC":"A stacked area chart is a special kind of area charts that can be used to compare multiple variables in an interval. It is very useful when multiple data series are available as you can analyze the relation of each group to the whole chart and display their respective proportion.","LINE_CHART_DESC":"A line chart is mainly used to visualize a trend or change in data over time.","BASE_BAR_CHART":"Base Bar Chart","STACK_BAR_CHART":"Stacked Bar Chart","BAR_CHART_DESC":"A bar chart is the most common type of charts. It presents different categorical data with horizontal or vertical bars with heights or lengths proportional to the values that they represent.","BASE_BAR_CHART_DESC":"One axis of the base bar chart features the categories being compared, while the other axis represents the value of each.","STACK_BAR_CHART_DESC":"A stacked bar chart is an extension of bar charts. A standard bar chart compares individual data points with each other while in a stacked bar chart, parts of the data are adjacent or stacked. It can be used to present the total amount of a category as well as its sub-amounts (proportion). Therefore, it is very helpful for examining part-to-whole relations.","CUSTOM_DISPLAY_MODAL_DESC":"Customize the table display style according to your needs","THRESHOLD_FILL_DESC":"You can set a threshold and the style can be changed automatically after the threshold is exceeded.","ADD_MONITOR_ITEM":"添加監控項","ADD_MONITOR_ROW":"添加監控組","CHART_TYPES":"圖表類型","GRAPH_TYPES":"圖例類型","LINE_CHART":"折線圖","BAR_CHART":"柱狀圖","SELECT_CHART_TYPE":"選擇圖表類型","SELECT_CHART_TYPE_MODAL_DESC":"選擇您要添加的自定義圖表類型","SINGLE_STATE_CHART":"即時文本","DISPLAY_POSITION":"圖表布局位置","EMPTY_CHART_PLACEHOLDER":"圖表將顯示在此區域","DISPLAY_FORMAT":"顯示格式","FIELD_NAME":"字段名稱","COLUMN_NAME":"列名稱","GRAPH_NAME":"圖表名稱","DECIMALS":"精確位","TABLE":"表格","TABLE_SETTINGS":"表格設置","VALUE_FOMATER":"數據取值","PER_PAGE_LINES":"每頁行數","CUSTOM_DISPLAY_STYLE":"設置顯示格式","DATA_TYPE":"數據類型","Y_AXIS":"Y軸","GRAPH_COLORS":"圖表配色","SINGLE_GRAPH_TYPE_NAME":"基礎圖","SINGLE_GRAPH_TYPE":"最常見的圖表類型","STACKED_GRAPH_TYPE":"堆疊圖","STACKED_GRAPH_TYPE_DESC":"適用於各大類總量及分量之間的對比顯示","MONITOR_TYPE_NO_SUPPORT":"目前不支持該類型","MONITOR_METRIC":"監控指標","METRIC_NAME":"圖例名稱","DEBUGB_DATA":"除錯數據","TIME_FORMAT":"時間格式","HIGHT_RULES":"高亮規則","EDIT_TEMPLATE":"編輯模板","SAVE_TEMPLATE":"保存模板","THRESHOLD_FILL":"臨界值填充","UNIT":"Unit","COOL_COLORS":"Cool Colors","WARM_COLORS":"Warm Colors","DEFAULT_COLORS":"Default Colors","LAST":"Last","SECOND_TIME":"{count, plural, =1 {1 second} other{# seconds}}","MINUTE_TIME":"{count, plural, =1 {1 minute} other{# minutes}}","HOUR_TIME":"{count, plural, =1 {1 hour} other{# hours}}","DAY_TIME":"{count, plural, =1 {1 day} other{# days}}","WEEK_TIME":"{count, plural, =1 {1 week} other{# weeks}}","NO_REFRESHING":"No refreshing","INTERVAL":"Interval","CUSTOM_MONITORING_DASHBOARD_LOW":"自定義監控面板","EGRESS_RULES":"出站規則","DESTINATION":"目的地","LABEL":"標籤","INGRESS_RULES":"入站規則","NETWORK_POLICY":"網路策略","NETWORK_POLICY_PL":"網路策略","NETWORK_POLICY_DESC":"The network policy configuration allows network isolation within the same cluster, which means firewalls can be set up between certain instances (pods).","NETWORK_POLICY_Q":"如何更好地使用網路策略?","NETWORK_POLICY_A":"根據實際使用場景我们整理了幾種較為常見的應用場景,您可以查閱文件了解更多","NETWORK_POLICY_Q1":"CNI 插件實現網絡策略需滿足哪些必要條件?","NETWORK_POLICY_A1":"Kubernetes 所使用 CNI 必須支持 Kubernetes 原生網路策略,例如 Calico, Cilium, Kube-router, Romana and Weave Net。","NETWORK_POLICY_EMPTY_DESC":"請創建一個網路策略。","CREATE_NETWORK_POLICY_TCAP":"創建網路策略","CREATE_BTN":"創建","CREATE_NETWORK_POLICY_DESC":"通過配置網路策略控制同一集群内 Pod 之間的流量以及來自外部的流量,從而實現隔離應用並增強應用的安全性。","NETWORK_POLICY_LOW":"網路策略","NETWORK":"網絡","START_IP_ADDRESS":"起始 IP 地址","END_IP_ADDRESS":"結束 IP 地址","MASK":"掩碼","WORKSPACES":"企業空間","MANAGER":"管理員","IPPOOL_WORKSPACE_EMPTY_TIP":"未發現企業空間使用此 IP 池","NAMESPACE_PL":"項目","ADD_IPPOOLL_NAMESPACE":"新增項目","ADD_IPPOOLL_NAMESPACE_DESC":"將 IP Pool 分配到新的項目","REMOVEALL_IPPOOLL_NAMESPACE":"移除全部","REMOVEALL_IPPOOLL_NAMESPACE_PROJECT":"移除全部項目","REMOVEALL_IPPOOLL_NAMESPACE_PROJECT_DESC":"項目移除後,該項目將不再受 IP Pool 資源分配限制","POD_IP_POOL_PL":"容器組 IP 池","POD_IP_POOL_DESC":"容器組 IP 池用於規劃集群內 Pod 的網絡地址空間,您可以按需創建容器組 IP 池。","IPPOOL_USAGE_Q":"如何利用 IP 地址範圍規劃容器組網路?","IPPOOL_USAGE_A":"IP 地址範圍用於規劃 Pod 網路地址空間,每個 IP 地址範圍之間地址空間不能。創建工作負載時,可選擇特定的 IP 地址範圍,這樣創建出的容器組將從該 IP 地址範圍中分配 IP。","POD_IP_POOL_EMPTY_DESC":"請創建一個容器組 IP 池。","TOTAL_VALUE":"總共:{value}","ALL":"全部","NOT_ASSIGNED":"未分配","CREATE_POD_IP_POOL":"創建容器組 IP 池","NETWORK_SEGMENT":"網段","USED_IP_ADDRESSES":"已用 IP 地址","QUANTITY":"數量","IP_POOL_CREATE_DESC":"即將創建的容器組 IP 池","IP_ADDRESS_EMPTY_DESC":"請輸入 IP 地址。","MASK_TIP":"請輸入遮罩。","ENTER_NETWORK_SEGMENT_TIP":"請輸入網段。","IP_POOL_NUM_TIP":"請輸入需要創建的容器組 IP 地址範圍數量。","IP_POOL_CREATE_COUNT_DESC":"可以同時創建多個容器組 IP 地址範圍,數量範圍為 1~10","INVALID_IP_DESC":"IP 地址格式錯誤。","IPPOOL_ASSIGN_WORKSPACE_DESC":"為 IP 池分配一個企業空間。","IPPOOL_ASSIGN_WORKSPACE_ALLOCATED_WARNING":"IP 地址範圍已被使用,無法分配给某一個具體的企業空間","IPPOOL_ASSIGN_WORKSPACE_CHANGE_WARNING":"IP 地址範圍已被使用,且已指定具體的企業空間,無法更改目標企業空間","ASSIGN_WORKSPACE":"分配企業空間","SELECT_WORKSPACE_DESC":"選擇一個企業空間","POD_IP_POOL_LOW":"容器組 IP 池","ADD_EDGE_IPPOOL":"添加容器組 IP 池","ADD_EDGE_IPPOOL_DES":"為資源添加容器組 IP 池。","ADD_IPPOOL_EMPTY_DES_ADMIN":"如果沒有容器組 IP 池滿足要求,您可以","ADD_IPPOOL_EMPTY_DES":"如果沒有容器組 IP 池滿足要求,請聯系管理員創建容器組 IP 池","SELECTED_IPPOOLS":"已選擇 {number} 個 IP 池","CLUSTER_IPPOOL_EMPTY_DES":"當前集群下沒有發現可用的容器組 IP 池。","ATTRIBUTES":"Attributes","ARCHITECTURE":"系統架構","OS_VERSION":"操作系統","OS_TYPE":"操作系統類型","LINUX":"Linux","KERNEL_VERSION":"内核版本","CONTAINER_RUNTIME":"容器版本","KUBELET_VERSION":"Kubelet 版本","KUBE_PROXY_VERSION":"Kube-Proxy 版本","IP_ADDRESS":"IP 地址","SCHEDULABLE":"可調度","YES":"是","EDIT_LABELS":"編輯標籤","LABEL_PL":"標籤","TAINTS":"汙點","EDIT_TAINTS":"汙點管理","TAINTS_DESC":"汙點表示此節點已被 key=value 汙染,容器組調度不允許(PodToleratesNodeTaints 策略)或盡量不(TaintTolerationPriority 策略)調度到此節點,除非是能夠容忍(Tolerations)key=value 汙點的容器組。","COMMON_TAINTS":"公共汙點","NOSCHEDULE":"不允許調度 (NoSchedule)","PREFERNOSCHEDULE":"盡量不調度 (PreferNoSchedule)","NOEXECUTE":"不允許並驅逐已有容器組 (NoExecute)","TAINT_SELECT_TIPS":"Join Common Taints","TAINTS_TIPS":"如果主機中存在一個或多個影響策略為 NoSchedule 的汙點,該容器組不會被調度到該主機
    如果主機中不存在影響策略為 NoSchedule 的汙點,但是存在一個或多個影響策略為 PreferNoSchedule 的汙點,該容器組會盡量不調度到該主機
    如果主機中存在一個或多個影響策略為 NoExecute 的汙點,該容器組不會被調度到該主機,並且會驅逐已經調度到該主機的容器組實例","TAINT_DELETE_TIP":"Delete taint","RESOURCE_USAGE":"資源用量","MAXIMUM_PODS":"容器組最大數量","MAXIMUM_PODS_SCAP":"容器組最大數量","DISK_USAGE_SCAP":"Disk usage","MEMORY_REQUEST_SCAP":"記憶體預留","MEMORY_LIMIT_SCAP":"記憶體限制","CPU_REQUEST_SCAP":"CPU 預留","CPU_LIMIT_SCAP":"CPU 限制","ALLOCATED_RESOURCES":"已分配資源","RUNNING_STATUS":"運行狀態","HEALTH_STATUS":"健康狀態","NODE_NETWORKUNAVAILABLE":"網路可用性","NODE_NETWORKUNAVAILABLE_DESC":"節點的網路狀態是否正常。","NODE_MEMORYPRESSURE":"記憶體壓力 (MemoryPressure)","NODE_MEMORYPRESSURE_DESC":"節點的剩餘記憶體是否小於閾值。","NODE_DISKPRESSURE":"磁碟壓力 (DiskPressure)","NODE_DISKPRESSURE_DESC":"節點的剩餘磁碟空間或 Inode 數量是否小於閾值。","NODE_PIDPRESSURE":"進程壓力 (PIDPressure)","NODE_PIDPRESSURE_DESC":"允許在節點上創建的進程數量是否小於閾值。","NODE_READY":"就緒","NODE_READY_DESC":"節點是否可以接收容器組。","LAST_HEARTBEAT_VALUE":"Last Heartbeat: {value}","NO_TAINTS_TIPS":"未發現汙點。","POLICY":"策略","READY_VALUE":"就緒:{readyCount}/{total}","STATUS_VALUE":"狀態:{value}","USAGE":"Usage","OUT":"Out","IN":"入","CLUSTER_NODE_PL":"集群節點","CLUSTER_NODE":"集群節點","CLUSTER_NODE_DESC":"集群節點提供了目前集群下節點的運行狀態,以及可以編輯刪除節點","NODE_TYPES_Q":"集群節點的類型?","NODE_TYPES_A":"集群節點分為控制平面節點和工作節點。","WHAT_IS_NODE_TAINTS_Q":"什麼是節點汙點?","WHAT_IS_NODE_TAINTS_A":"節點汙點 (Taints) 可以阻止某些容器組 (Pod) 副本部署至該節點中, 與容忍度 (Tolerations) 一起工作確保容器組不會被調度到不合適的節點上","LEARN_MORE":"了解更多","NODE_SI":"節點","NODE_PL":"節點","MASTER_NODE_SI":"控制平面節點","MASTER_NODE_PL":"控制平面節點","WORKER_NODE_SI":"工作節點","WORKER_NODE_PL":"工作節點","KUBE_OPERATE":"操作","KUBE_ASCENDING_ORDER":"正序排列…","KUBE_DESCENDING_ORDER":"倒序排列…","KUBE_FILTER":"過濾選項","SEARCH":"輸入查詢條件進行過濾","ADD_NODE":"添加節點","NODE_STATUS_UNSCHEDULABLE":"無法調度","NODE_STATUS_RUNNING":"運行中","NODE_STATUS_WARNING":"異常中","NODE_STATUS_PENDING":"創建中","NODE_STATUS_FAILED":"創建失敗","CLUSTER_NODE_EMPTY_DESC":"請為集群添加一個節點。","NODE_NAME_EMPTY_DESC":"請輸入節點名稱","CPU_USAGE":"CPU 使用量","MEMORY_USAGE":"記憶體使用量","CONTROL_PLANE":"控制平面節點","WORKER":"工作節點","ALLOCATED_CPU":"已分配 CPU","ALLOCATED_MEMORY":"已分配記憶體","CPU_LIMIT_SI":"資源限制:{core} 核({percent})","CPU_LIMIT_PL":"資源限制:{core} 核({percent})","CPU_REQUEST_SI":"{core} 核({percent})","CPU_REQUEST_PL":"{core} 核({percent})","CORE_PL":"核","CPU_CORE_PERCENT_SI":"{core} 核({percent})","CPU_CORE_PERCENT_PL":"{core} 核({percent})","MEMORY_GIB_PERCENT":"{gib} GiB({percent})","MEMORY_LIMIT_VALUE":"資源限制:{gib} GiB({percent})","MEMORY_REQUEST_VALUE":"{gib} GiB({percent})","RESOURCE_REQUEST":"資源預留","CORDON":"停止調度","UNCORDON":"啟動調度","OPEN_TERMINAL":"打開終端機","CUSTOM_COLUMNS":"内容自定義","NO_MATCHING_RESULT_FOUND":"暫時沒有找到符合過濾條件的資源","STATUS":"狀態","TOTAL_ITEMS":"共 {num} 個項目","YOU_CAN_TRY_TO":"You can try","REFRESH_DATA":"refreshing data","CLEAR_SEARCH_CONDITIONS":"clearing search conditions","DUPLICATE_KEYS":"無法添加重複的 key","EMPTY_KEY":"無法添加空的 key","LATEST_UPDATE_VALUE":"狀態更新時間:{value}","EDGE_NODE_PL":"邊緣節點","EDGE_NODE_DESC":"邊緣節點提供了目前集群下節點的運行狀態,以及可以編輯刪除節點","EDGE_NODE_EMPTY_DESC":"邊緣節點提供了目前集群下節點的運行狀態,以及可以編輯刪除節點","AGENT":"代理","EDGE":"邊緣節點","ADD":"添加","ADD_EDGE_NODE":"Add Edge Node","EDGENODE_CONFIG_COMMAND":"添加命令","ADD_EDGE_COMMAND":"將命令複製到命令行中進行創建邊緣節點","IN_USE_Node_IP":"節點 IP {ip} 已被使用","IN_USE_Node_NAME":"節點名稱 {name} 已被使用","EDGENODE_NAME_EMPTY_DESC":"請輸入節點名稱","EDGENODE_CONFIG_COMMAND_TIP":"運行命令前請確保已在邊緣節點安裝容器運行時如 docker 或 container。","ADD_DEFAULT_TAINT":"添加默認污點 {params}","EDGE_NODE":"邊緣節點","INTERNAL_IP_ADDRESS":"節點內網 IP 地址","EDGENODE_INTERNAL_IP_DESC":"集群内各節點間可以互相訪問的內網 IP 地址","EDGENODE_INTERNAL_IP_EMPTY_DESC":"请输入节点在私网内的 IP 地址。","COPY_SUCCESSFUL":"复制成功。","LOGS":"操作紀錄","VIEW_LOG":"查看紀錄","EDGE_LIST_NOT_HOST_TITLE":"目前叢集不可用","EDGE_LIST_NOT_HOST_TITLE_DESC":"邊緣節點暫時只能在主集群使用","HOST_CLUSTER":"主集群","MEMBER_CLUSTER":"Member cluster","PROVIDER":"服務商","KUBERNETES_VERSION":"Kubernetes 版本","KUBESPHERE_VERSION":"KubeSphere 版本","VISIBILITY_PARTIAL":"部分可見","VISIBILITY_PUBLIC":"公開","CLUSTER_BASE_INFO_DESC":"基本資訊是目前集群的資訊概覽,您可以查看和編輯集群的基本資訊。","MEMORY":"記憶體","TOTAL":"總計","USED":"已使用","TOOLS":"Tools","KUBECTL_DESC":"目前集群客戶端命令行工具","KUBECONFIG_DESC":"配置文件,用於配置目前集群的訪問資訊。","KUBERNETES_STATUS":"Kubernetes 組件狀態","API_REQUESTS_PER_SECOND":"每秒 API 請求數","VALUE_REQUESTS_SECOND":"{value, plural, =1 {1 request} other {# requests}}/s","API_REQUEST_LATENCY":"API 請求延遲","SCHEDULING_OPERATIONS":"排程器調度次數","SCHEDULING_OPERATION":"排程器調度次數","SCHEDULING_FAILURES":"調度失敗的容器組","SCHEDULING_FAILURE":"調度失敗的容器組","VIEW_MORE":"查看更多","NODE_CPU_UTILISATION":"CPU 用量","NODE_LOAD1":"Average CPU load (1 min)","NODE_MEMORY_UTILISATION":"記憶體用量","NODE_DISK_SIZE_UTILISATION":"Disk usage","NODE_DISK_INODE_UTILISATION":"Inode usage","NODE_POD_UTILISATION":"容器組利用率","WAIT_FOR_CLUSTER":"Waiting for the cluster to join...","WAIT_FOR_CLUSTER_DESC":"The cluster is unavailable. Perform the following steps to add the cluster.","CLUSTER_AGENT_TIP_1":"1. Log in to the cluster over SSH and run the vi agent.yaml command to create a configuration file.","CLUSTER_AGENT_TIP_2":"2. Copy the following information to the agent.yaml file.","CLUSTER_AGENT_TIP_3":"3. Run the kubectl create -f agent.yaml command to add the cluster.","CLUSTER_AGENT_TIP_3_DESC":"This operation may take a while. Please wait until the cluster status is updated.","CREATING_CLUSTER":"Creating the cluster...","CREATING_CLUSTER_DESC":"The cluster is being created and is currently unavailable.","CLUSTER_INIT_FAILED":"Cluster initialization failed.","CLUSTER_CREATION_PROGRESS":"Cluster Creation Progress","FETCHING_LOGS":"Fetching logs...","CURRENT_STEP":"Current step: {step}","CLUSTER_CREATION_PROGRESS_TIP":"Depending on the cluster size and infrastructure environment, cluster creation may take 30 to 60 minutes.","GATEWAY":"網關資訊","GATEWAY_NOT_ENABLED":"網關未開啟","ENABLE_GATEWAY_TIP":"要使用網關,請在集群或項目中配置網關","QUOTA_PL":"配額","PROJECT_DESC":"將根據項目資源進行分組,可以按項目對資源進行查看管理","SYSTEM_PROJECTS":"系統項目","USER_PROJECTS":"用戶項目","EMPTY_WRAPPER":"未發現{resource}","TERMINATING":"刪除中","ACTIVE":"活耀","PROJECT_ADMINISTRATOR":"項目管理員","PROJECT_ADMINISTRATOR_DESC":"選擇企業空間的用戶作為管理員。","PROJECT_ASSIGN_DESC":"項目一旦被分配到企業空間後將不允許修改企業空間","CREATE_PROJECT_DESC":"KubeSphere 中的項目對應的是 Kubernetes 的 namespace,是對一組資源和對象的抽象集合,常用來將系統内部的對象劃分為不同的項目組或用戶組。","PROJECT_NAME_DESC":"最長 63 個字元,只能包含小寫字母、數字及分隔符號(\"-\"),且必須以小寫字母開頭, 字母或數字結尾","PROJECT_NAME_INVALID_DESC":"最長 63 個字元,只能包含小寫字母、數字及分隔符號(\"-\"),且必須以小寫字母開頭, 字母或數字結尾","CANCEL":"取消","CREATE_NAME":"創建{name}","DESCRIPTION":"描述資訊","NAME_VALIDATION_FAILED":"避免使用前綴為 kube- 的名稱,因為它是為 Kubernetes 系統命名空間保留的","PROJECT_NAME_EXIST_DESC":"The name already exists. Please enter another name. Project names must be unique on the entire platform.","NAME_EMPTY_DESC":"請輸入名稱。","OK":"確定","NAME_DESC":"最長 63 個字元,只能包含小寫字母、數字及分隔符號(\"-\"),且必須以小寫字母或數字開頭及結尾","DESCRIPTION_DESC":"描述資訊不超過 256 個字元","ALIAS_DESC":"The alias name can contain only letters, numbers, and hyphens (-), and cannot start or end with a hyphen. The maximum length is 63 characters.","EDIT_INFORMATION":"編輯資訊","DELETE_TITLE_SI":"{type} 刪除確認?","DELETE_TITLE_PL":"{type} 刪除確認?","DELETE":"刪除","PROJECT_LOW":"項目","DELETED_SUCCESSFULLY":"Deleted successfully.","STOP_SUCCESS_DESC":"停止成功。","DELETE_RESOURCE_TYPE_DESC_SI":"請輸入 {type} 名稱 {resource} 確保您已了解操作所帶來的風險。","DELETE_RESOURCE_TYPE_DESC_PL":"請輸入 {type} 名稱 {resource} 確保您已了解操作所帶來的風險。","DELETE_RESOURCE_TYPE_DESC_GW":"請輸入 {type} 名稱 {resource} 確保您已了解操作所帶來的風險。","DISABLED_RESOURCE_TYPE_DESC":"请输入 {resource} 以确认您了解此操作的风险。","VOLUME_EXPAND_TIP":"The persistent volume claim has been mounted to a workload. Expanding the persistent volume claim will cause the workload to restart and business will be interrupted for a short while.","MOUNTED_PODS":"已掛載容器組","SNAPSHOT_PL":"快照","STORAGE":"儲存","PERSISTENT_VOLUME_CLAIM_DESC":"Persistent volume claims define storage requirements. The system creates persistent volumes according to persistent volume claims.","PERSISTENT_VOLUME_CLAIM":"Persistent Volume Claim","PERSISTENT_VOLUME_CLAIM_PL":"Persistent Volume Claims","WHAT_IS_STORAGE_CLASS_Q":"What is a storage class?","WHAT_IS_STORAGE_CLASS_A":"A storage class is a storage type configured by the cluster administrator. Different storage classes provide cluster users with different types of volumes.","WHAT_IS_LOCAL_VOLUME_Q":"What is a local volume?","WHAT_IS_LOCAL_VOLUME_A":"A local volume is a volume created in the local file system of the cluster.","VOLUME_STATUS_BOUND":"Bound","VOLUME_STATUS_LOST":"Lost","VOLUME_STATUS_PENDING":"等待中","VOLUME_STATUS_TERMINATING":"刪除中","VOLUME_STATUS_UPDATING":"Updating","VOLUME_CONDITION_FILESYSTEMRESIZEPENDING":"Disk Expanding","PERSISTENT_VOLUME_CLAIM_EMPTY_DESC":"Please create a persistent volume claim.","PERSISTENT_VOLUME_EMPTY_DESC":"Please create a persistent volume.","MOUNT_STATUS":"Mount Status","MOUNTED":"Mounted","NOT_MOUNTED":"不掛載","ACCESS_MODE_TCAP":"支持的訪問模式","RWO_DESC":"RWO: Single-node read and write","ROX_DESC":"ROX: Multi-node readonly","RWX_DESC":"RWX: Multi-node read and write","ACCESS_MODE_RWO":"RWO: Single-node read and write","ACCESS_MODE_ROX":"ROX: Multi-node readonly","ACCESS_MODE_RWX":"RWX: Multi-node read and write","CREATE":"創建","CREATE_PERSISTENT_VOLUME_CLAIM":"Create Persistent Volume Claim","CREATION_METHOD":"Creation Method","CREATE_VOLUME_BY_STORAGE_CLASS":"From Storage Class","CREATE_VOLUME_BY_SNAPSHOT":"From Volume Snapshot","SELECT_SNAPSHOT_TO_CREATE_VOLUME":"Select a snapshot to create a volume.","SELECT_STORAGE_CLASS_CREATE_VOLUME":"Select a storage class to create a volume.","VOLUME_CAPACITY":"儲存卷容量","PARAM_REQUIRED":"This parameter is required.","VOLUME_SIZE_TIP":"The volume capacity must be greater than 0.","VOLUME_STORAGE_CLASS_DESC":"Select a storage class to create a volume of a specific type.","PERSISTENT_VOLUME_CLAIM_LOW":"persistent volume claim","VOLUME_HANDLE":"Volume Handle","VOLUME_MODE":"Volume Mode","VOLUME_MODE_FILESYSTEM":"File system","VOLUME_MODE_BLOCK":"Block device","STORAGE_CLASS_VALUE":"Storage class: {value}","PERSISTENT_VOLUME":"Persistent Volume","PERSISTENT_VOLUME_PL":"Persistent Volumes","PERSISTENT_VOLUME_LOW":"persistent volume","PV_STATUS_AVAILABLE":"閒置","PV_STATUS_BOUND":"Bound","PV_STATUS_RELEASED":"已釋放","PV_STATUS_FAILED":"失敗","RECYCLING_STRATEGY":"Recycling Strategy","VOLUME_EMPTY_DESC":"Please bind a persistent volume claim to a workload.","TRUE":"是","FALSE":"否","SET_DEFAULT_STORAGE_CLASS_TITLE":"設為預設儲存類型","SET_AS_DEFAULT_STORAGE_CLASS":"設為預設儲存類型","STORAGE_CLASS_SET_DEFAULT_DESC":"設置為預設儲存類型後,如果沒有特殊指定,系統將預設創建該類型的儲存卷。一個 KubeSphere 集群中僅允許設置一個預設儲存類型","SET_AUTHORIZATION_RULES":"Set Authorization Rules","AUTHORIZATION_RULES":"Authorization Rules","AUTHORIZATION_RULES_DESC":"Set authorization rules so that the storage class can be accessed only in specific projects and workspaces.","AUTHORIZATION_NOT_SUPPORT":"The cluster currently does not support this feature. Please upgrade KubeSphere to v3.3.0 or later, or manually install storageclass-accessor.","OPERATOR_IN":"入","OPERATOR_NOT_IN":"Not in","SET_VOLUME_OPERATIONS":"Set Volume Operations","VOLUME_CLONING":"Volume Cloning","VOLUME_CLONING_DESC":"Allow users to clone volumes.","VOLUME_SNAPSHOT_CREATION":"Volume Snapshot Creation","VOLUME_SNAPSHOT_CREATION_DESC":"Allow users to create volume snapshots.","VOLUME_EXPANSION_DESC":"Allow users to expand volumes. Volumes can only be expanded and cannot be shrunk.","SET_VOLUME_OPERATIONS_TIP":"The following settings only control whether users are allowed to perform the operations on the web console. Whether persistent volumes created based on the storage class actually support the operations depends on the backend storage system.","SET_AUTO_EXPANSION":"Set Auto Expansion","AUTO_EXPANSION":"Auto Expansion","AUTO_EXPANSION_DESC":"Set the system to automatically expand volumes when the remaining volume space is lower than a threshold.","AUTO_EXPANSION_SETTINGS":"Auto Expansion Settings","MAXIMUM_SIZE":"容量上限","INCREMENT":"Increment","INCREMENT_DESC":"Set the volume size increment according to the CSI pluggin of the storage class.","RESTART_WORKLOAD_AUTOMATICALLY":"Restart workload automatically","RESTART_WORKLOAD_AUTOMATICALLY_DESC":"The system automatically checks volume status to determine whether the workload needs to be restarted.","RESTART_WORKLOAD_AUTOMATICALLY_TIP":"If the volume is not expanded successfully when the timeout period expires, the system will add the \"restart.kubesphere.io/skip\" annotation to the workload so that the workload is not restarted any more. To enable the automatic restart function for the workload again, you need to manually delete the annotation on the workload.","MAXIMUM_SIZE_SCAP":"Maximum size","VALUE_TIMEOUT":"{value}s (timeout)","PVC_COUNT":"PVCs","STORAGE_CLASS_PL":"存儲類型","STORAGE_CLASS_DESC":"存儲類型(StorageClass)支持動態卷供應,使管理員能夠按需創建新的存儲卷。","STORAGE_CLASS_EMPTY_DESC":"請創建一個存儲類型","DEFAULT_STORAGE_CLASS":"預設存儲類型","ALLOW_VOLUME_SNAPSHOT":"允許存儲卷快照","ALLOW_VOLUME_CLONE":"允許存儲卷克隆","ALLOW_VOLUME_EXPANSION":"允許存儲卷擴容","CHOOSE_STORAGE_SYSTEM_TIP":"選擇您需要儲存系統","PROVISIONER_DEPENDENCE_DESC":"您需要先在儲存系統中部署相關插件才能提供服務。","QINGCLOUD_CSI_DESC":"使用 QingCloud CSI 作為底層儲存插件。","CUSTOM":"自定義","VOLUME_EXPANSION":"儲存卷擴容","RECLAIM_POLICY":"回收機制","ACCESS_MODE":"支持的訪問模式","ACCESS_MODES_DESC":"選擇儲存類型支持的一種或多種訪問模式。","STORAGE_SYSTEM":"儲存系統","VOLUME_BINDING_MODE":"儲存卷綁定模式","IMMEDIATE_BINDING":"立即綁定","BINDING_WAIT":"延遲綁定","MAXSIZE":"容量上限","MINSIZE":"容量下限","STEPSIZE":"步長","FSTYPE":"文件系統類型","QINGCLOUD_CSI_TYPE_DESC":"在青雲雲平台中,0 代表性能型硬碟,2 代表容量型硬碟,3 代表超高性能型硬碟,5 代表企業級分布式 SAN(NeonSAN)型硬碟,100 代表基礎型硬碟,200 代表企業型硬碟","CREATE_VOLUME_MAX_SIZE":"儲存卷的容量上限。","CREATE_VOLUME_STEP_SIZE":"儲存卷的增量值。","CREATE_VOLUME_MIN_SIZE":"儲存卷的容量下限。","VOLUME_FS_TYPE":"支持 ext3、ext4 和 xfs。預設類型為 ext4。","QINGCLOUD_VOLUME_TAGS_DESC":"為儲存卷添加標籤。使用半角逗號(,)分隔多個標籤。","GID_RANGE_TIP":"The value cannot be less than 2000 or greater than 2147483647.","GLUSTERFS_RESTURL_DESC":"供應儲存卷的 Heketi REST URL。","GLUSTERFS_ID_DESC":"Gluster 集群 ID。","GLUSTERFS_RESTAUTHENABLED_DESC":" Gluster 啟用对 REST 伺服器的認證","GLUSTERFS_RESTUSER_DESC":"Gluster REST 服務或 Heketi 服務的用戶名。","GLUSTERFS_SECRET_NAMESPACE_DESC":"Heketi 用戶密鑰的所属項目。","GLUSTERFS_SECRET_NAME_DESC":"Heketi 用戶密鑰的名稱。","GLUSTERFS_GID_MIN_DESC":"儲存卷的 GID 最小值。","GLUSTERFS_GID_MAX_DESC":"儲存卷的 GID 最大值。","GLUSTERFS_VOLUME_TYPE_DESC":"儲存卷的類型。該值可為 none,replicate:<副本數>,或 disperse:<數據>:<冗餘數>。如果未設置該值,則預設儲存卷類型為 replicate:3。","RESTURL":"REST URL","CLUSTER_ID":"集群 ID","REST_AUTH_ENABLED":"開啟 REST 認證","REST_USER":"REST 用戶","VOLUME_TYPE":"儲存卷類型","SECRET_NAME":"密鑰名稱","REST_AUTH_TRUE":"是","SECRET_NAMESPACE":"密鑰所屬項目","GID_MIN":"GID 最小值","GID_MAX":"GID 最大值","CEPHRBD_MONITORS_DESC":"Ceph 集群 Monitors 的 IP 地址。","CEPHRBD_ADMIN_ID_DESC":"ceph 集群能夠創建卷的用戶 ID","CEPHRBD_ADMIN_SECRET_NAME_DESC":"adminid 的密鑰名稱。","CEPHRBD_ADMIN_SECRET_NAMESPACE_DESC":"adminSecrect 所在的項目","CEPHRBD_POOL_DESC":"Ceph RBD 的 Pool 名稱。","CEPHRBD_USERID_DESC":"Ceph 集群能夠掛載卷的用戶 ID","CEPHRBD_USER_SECRET_NAME_DESC":"userid 的密鑰名稱","CEPHRBD_USER_SECRET_NAMESPACE_DESC":"userSecret 所在的項目","CEPHRBD_FS_TYPE_DESC":"儲存卷的文件系統類型。","CEPHRBD_IMAGE_FORMAT_DESC":"Ceph 卷的選項。該值可為“1”或“2”,選擇“2”後需要填寫 imageFeatures。","CEPHRBD_IMAGE_FEATURES_DESC":"Ceph 集群的額外功能。僅目前設置 imageFormat 為“2”時,才需要填謝該值。","CEPH_MONITOR_IP":"IP 位址:連接埠號碼","STORAGE_CLASS_SETTINGS":"儲存類型設置","PARAMETERS":"參數","STORAGE_CLASS":"儲存類型","STORAGE_CLASS_LOW":"儲存類型","STORAGE_CLASS_DELETE_DESC":"Deleting the volume snapshot class may affect the normal use of volume snapshots. Are you sure you want to delete the volume snapshot class?","STORAGE_CLASS_DELETE_DESC_PL":"Deleting the volume snapshot class may affect the normal use of volume snapshots. Enter the {type} names {resource} to confirm that you understand the risks of this operation.","VOLUME_SNAPSHOT_CLASS_PL":"Volume Snapshot Classes","VOLUME_SNAPSHOT_CLASS":"Volume Snapshot Class","VOLUME_SNAPSHOT_CLASS_DESC":"Volume snapshot classes provide a way for administrators to define storage types used for volume snapshots.","VOLUME_SNAPSHOT_CLASS_EMPTY_DESC":"Please create a volume snapshot class.","SNAPSHOT_CLASS_SETTINGS":"Volume Snapshot Class Settings","SNAPSHOT_CLASS_PROVISIONER_DESC":"Enter the name of a CSI plugin.","SNAPSHOT_CLASS_PROVISIONER_EMPTY_DESC":"Please enter the name of a CSI plugin.","VOLUME_SNAPSHOT_CLASS_LOW":"volume snapshot class","DELETE_VOLUME_SNAPSHOT_CLASS":"Delete Volume Snapshot Class","SNAPSHOT_HANDLE":"Snapshot Handle","VOLUME_SNAPSHOT_CONTENT":"Volume Snapshot Content","VOLUME_SNAPSHOT_CONTENT_PL":"Volume Snapshot Contents","VOLUME_SNAPSHOT_CONTENT_LOW":"volume snapshot content","VOLUME_SNAPSHOT_CONTENT_EMPTY_DESC":"Please create a volume snapshot.","READY":"Ready","UNREADY":"Unready","UNSCHEDULABLE":"Unschedulable","DELETION_POLICY":"Deletion Policy","CREATE_VOLUME":"Create Volume","SNAPSHOT_CLASS_NOT_EXIST_TITLE":"Volume Snapshot Class Not Found","SNAPSHOT_CLASS_NOT_EXIST":"The volume snapshot class of the volume snapshot does not exist.","STORAGE_CLASS_SCAP":"Storage class","DATA_SOURCE":"數據源","VOLUME_SNAPSHOT":"Volume Snapshot","VOLUME_SNAPSHOT_PL":"Volume Snapshots","VOLUME_SNAPSHOT_DESC":"儲存卷快照表示儲存卷的時間點副本。快照可用於配置新卷(預先填充快照數據)或將現有儲存卷還原到先前狀態(由快照表示)","WHAT_IS_VOLUME_SNAPSHOT_CLASS_Q":"What is a volume snapshot class?","WHAT_IS_VOLUME_SNAPSHOT_CLASS_A":"A volume snapshot class defines the storage types used to create a volume snapshot.","WHAT_IS_VOLUME_SNAPSHOT_CONTENT_Q":"What is a volume snapshot content?","WHAT_IS_VOLUME_SNAPSHOT_CONTENT_A":"A volume snapshot content is a resource that represents the content of a volume snapshot.","SELECT_A_VOLUME_DESC":"Select a persistent volume claim to create a snapshot.","SELECT_VOLUME_SNAPSHOT_CLASS_DESC":"Select a snapshot class to create a snapshot of a specific type.","VOLUME_SNAPSHOT_EMPTY_DESC":"Please create a volume snapshot.","VOLUME_SNAPSHOT_STATUS_CREATING":"創建中","VOLUME_SNAPSHOT_STATUS_FAILED":"創建失敗","VOLUME_SNAPSHOT_STATUS_READY":"創建成功","VOLUME_SNAPSHOT_STATUS_DELETING":"刪除中","CREATE_STATUS_SUCCESS":"創建成功","CREATE_STATUS_UPDATING":"創建中","CREATE_STATUS_FAILED":"創建失敗","CREATE_STATUS_DELETING":"删除中","VOLUME_SNAPSHOT_LOW":"volume snapshot","STORAGECLASS_NOT_ALLOW_CREATE_SNAPSHOT":"The storage class of the persistent volume claim does not support snapshot creation. Please select another persistent volume claim.","SYSTEM_COMPONENT_PL":"服務組件","SERVICE_COMPONENTS_DESC":"服務組件提供 KubeSphere、Kubernetes 和 OpenPitrix 集群内各項服務組件的健康狀態監控,可以查看目前集群的健康狀態和運行時間,能夠幫助用戶監測集群的狀況和即時定位問題。","STOPPED":"Stopped","RUNNING_TIME":"運行時間","KS_CONSOLE_DESC":"提供 KubeSphere 的控制台服務","KS_APISERVER_DESC":"整個集群管理的 API 介面和集群内部各個模組之間通信的樞紐,以及集群安全控制","OPENLDAP_DESC":"負責集中儲存和管理用戶帳號資訊","REDIS_DESC":"將結構化的數據儲存在記憶體中的儲存系統","TOWER_DESC":"一個可以在集群間通過代理方式創建網路連接的工具","KS_CONTROLLER_MANAGER_DESC":"實現業務邏輯,例如創建企業空間時,為其創建對應的權限;創建服務策略時,生成對應的 Istio 配置等","COREDNS_DESC":"為 Kubernetes 集群提供服務發現的功能","METRICS_SERVER_DESC":"Kubernetes 的監控組件,從每個節點的 Kubelet 採集指標資訊","KUBE_SCHEDULER_DESC":"Kubernetes 的調度器,將 Pod 調度到合適的 Node 節點上去","KUBE_SCHEDULER_SVC_DESC":"Kubernetes 的調度器,將 Pod 調度到合適的 Node 節點上去","KUBE_CONTROLLER_MANAGER_SVC_DESC":"由一系列的控制器組成,處理集群中常規任務的背景執行緒","JAEGER_COLLECTOR_DESC":"收集 sidecar 的數據,istio 裡面 sidecar 就是 jaeger-agent","JAEGER_COLLECTOR_HEADLESS_DESC":"收集 sidecar 的數據,Istio 裡面 sidecar 就是 jaeger-agent","JAEGER_QUERY_DESC":"接收查詢請求,然後從後端儲存系統中檢索 trace 並透過 UI 進行展示","JAEGER_OPERATOR_METRICS_DESC":"提供 operator 的監控 metrics","MONITORING":"監控","PROMETHEUS_K8S_DESC":"提供節點、工作負載、 API 對象相關監控數據","NODE_EXPORTER_DESC":"收集集群各個節點的監控數據,供 Prometheus 抓取","KUBE_STATE_METRICS_DESC":"監聽 Kubernetes API server 以獲取集群中各種 API 對象的狀態包括節點,工作負載和 Pod 等,並生成相關監控數據供 Prometheus 抓取","PROMETHEUS_OPERATED_DESC":"所有 Prometheus 實例對應的服務,供 Prometheus Operator 内部使用","PROMETHEUS_OPERATOR_DESC":"管理 Prometheus 實例的 Operator","ALERTMANAGER_OPERATED_DESC":"Alertmanager 服務,用於 Prometheus 等與 Alertmanager 集成","ALERTMANAGER_MAIN_DESC":"Alertmanager Web UI 服務","NOTIFICATION_MANAGER_SVC_DESC":"Notification Manager 服務,提供發送郵件、微信、Slack 等通知的接口","NOTIFICATION_MANAGER_CONTROLLER_METRICS_DESC":"提供 Notification Manager Controller 内部監控數據的服務","LOGGING":"紀錄","ELASTICSEARCH_LOGGING_DATA_DESC":"提供 Elasticsearch 數據儲存、備份、搜索等數據服務","ELASTICSEARCH_LOGGING_DISCOVERY_DESC":"提供 Elasticsearch 集群管理服務","LOGSIDECAR_INJECTOR_ADMISSION_DESC":"為指定 Pod 自動注入落盤紀錄收集 Sidecar 容器","KS_EVENTS_ADMISSION_DESC":"為 Events 規則管理提供驗證 webhook","KS_EVENTS_RULER_DESC":"Events 規則引擎服務,提供 Events 過濾和告警功能","KUBE_AUDITING_WEBHOOK_SVC_DESC":"負責審計紀錄的收集、比對、持久化和告警","S2IOPERATOR_METRICS_SERVICE_DESC":"S2I 監控服務組件,提供基礎監控數據","WEBHOOK_SERVER_SERVICE_DESC":"為 S2I 提供預設值和驗證 webhook","CODE_REPO_PL":"Code Repositories","CODE_REPO_LOW":"code cepository","CODE_REPO":"代碼倉庫","CODE_REPO_DESC":"Manage code repositories based on Git.","CODE_REPO_EMPTY_DESC":"Import a code repository from GitHub, GitLab, or Bitbucket. You can also use Git to directly pull source code.","IMPORT_CODE_REPO":"Import Code Repository","EDIT_CODE_REPO":"Edit Code Repository","LATEST_SYNC_STATUS":"Latest sync status","CURRENT_SYNC_STATUS":"Current sync status","SYNC_STRATEGY":"Sync strategy","AUTO_SYNC":"Auto Sync","MANUAL_SYNC":"Manual Sync","END_TIME_SCAP":"End time","SYNC_RESULT_PL":"Sync Results","SYNC_RESULT":"Sync Result","SYNC_RESULT_EMPTY_DESC":"No sync result is found.","CONTINUOUS_DEPLOYMENT_PL":"Continuous Deployments","CONTINUOUS_DEPLOYMENT_DESC":"Manage continuous deployments to continuously deploy resources by using GitOps. ","CONTINUOUS_DEPLOYMENT_EMPTY_DESC":"Please create a continuous deployment.","DEGRADED":"Degraded","PROGRESSING":"創建進度(Progressing)","SYNCED":"Synced","MISSING":"Missing","SUSPENDED":"已下架","OUTOFSYNC":"Out of sync","DEPLOY_LOCATION":"Deployment Location","NEED_TO_SYNC_REPO":"Need to sync repo","CREATE_CONTINUOUS_DEPLOYMENT":"Create Continuous Deployment","CD_SELECT_CODE_REPO_DESC":"Select a code repository.","DEPLOYMENT_SETTINGS":"Deployment Settings","CODE_REPOSITORY_SETTINGS":"Code Repository Settings","SYNC_STRATEGY_TCAP":"Sync Strategy","AUTO_SYNC_DESC":"Automatically trigger application sync when there is a difference between the manifest in Git and the real-time state of the deployed resources, according to the set sync options.","PRUNE_RESOURCES":"Prune resources","SELF_HEAL":"Self-heal","MANIFEST_FILE_PATH":"Manifest File Path","DIRECTORY_RECURSE":"Directory recurse","REPO_EMPTY_DESC":"Please select a code repository.","VALUES_FILES":"Values Files","VALUES_FROM":"Values From","STORAGE_NAMESPACE":"Storage Namespace","TEST":"Test","REVISIONS_DESC":"Git repository commit ID, branch, or tag. For example: \"master\", \"v1.2.0\", \"0a1b2c3\", or \"HEAD\".","MANIFEST_FILE_PATH_DESC":"Manifest file path, for example: \"deployments/nginx\" or \"deployments/\"","MANUAL_SYNC_DESC":"Sync according to custom rules.","PRUNE_RESOURCES_DESC":"If selected, resources that do not exist in Git will be deleted during automatic sync. If not selected, resources in the cluster will not be deleted when automatic sync is triggered.","SELF_HEAL_DESC":"If selected, when there is a deviation between the defined state in Git and the deployed resources, the defined state in Git will be enforced. If not selected, automatic sync will not be triggered when changes are made to the deployed resources.","FOREGROUND_DESC":"Delete dependent resources first, then delete the main resource.","BACKGROUND_DESC":"Delete the main resource first, then delete the dependent resource.","ORPHAN_DESC":"Delete the main resource and leave the dependent resource as an orphan.","SKIP_SCHEMA_VALIDATION_DESC":"Skip kubectl validation. Add the --validate=false flag when kubectl applies the object.","AUTO_CREATE_PROJECT_DESC":"Automatically create a project for application resources when the project does not exist.","PRUNE_LAST_DESC":"Clean up resources after other resources are deployed and healthy.","APPLY_OUT_OF_SYNC_ONLY_DESC":"Only apply resources that are out of sync.","CONTINUOUS_DEPLOYMENT":"Continuous Deployment","CONTINUOUS_DEPLOYMENT_LOW":"continuous deployment","DELETE_CONTINUOUS_DEPLOYMENT_DESC_SI":"You are about to delete the continuous deployment {resource}.
    Please confirm whether to delete resources created by the continuous deployment.","DELETE_CONTINUOUS_DEPLOYMENT_DESC_PL":"You are about to delete the continuous deployments {resource}.
    Please confirm whether to delete resources created by the continuous deployments.","NO_CONTINUOUS_DEPLOYMENT_RELATED_RESOURCE_DESC":"No resource created by the continuous deployment is found.","DELETE_MULTIPLE_CONTINUOUS_DEPLOYMENT":"Delete Multiple Continuous Deployments","DELETE_CONTINUOUS_DEPLOYMENT":"Delete Continuous Deployment","DELETE_CONTINUOUS_DEPLOYMENT_RELATE_DESC":"Delete resources created by {resourceName}","SYNC":"Sync","SYNC_RESOURCE":"Sync Resource","REVISION":"Revision","REVISION_DESC":"Set a branch or tag of the code repository.","PRUNE":"Prune","DRY_RUN":"Dry run","APPLY_ONLY":"Apply only","FORCE":"Force","SYNC_SETTINGS":"Sync Settings","SKIP_SCHEMA_VALIDATION":"Skip schema validation","AUTO_CREATE_PROJECT":"Auto create project","PRUNE_LAST":"Prune last","APPLY_OUT_OF_SYNC_ONLY":"Apply out of sync only","PRUNE_PROPAGATION_POLICY":"Prune Propagation Policy","REPLACE_RESOURCE":"Replace Resource","REPLACE_RESOURCE_DESC":"Replace resources that already exist.","EMPTY_CD_TITLE":"No Continuous Deployment Found","SYNC_TRIGGERED":"Resource sync was triggered successfully.","PARAMETER_SETTINGS":"Parameter Settings","AUTO_PARAMETER":"Auto","AUTO_PARAMETER_DESC":"Set automatically.","HELM_PARAMETER":"Helm","HELM_PARAMETER_DESC":"Set Helm parameter.","KUSTOMIZE_PARAMETER":"Kustomize","KUSTOMIZE_PARAMETER_DESC":"Set Kustomize parameters.","PASS_CREDENTIALS":"Pass Credentials","IGNORE_MISSING_VALUE_FILES":"Ignore Missing Value Files","SKIP_CRDS":"Skip Crds","RELEASE_NAME":"Release Name","VALUE_FILES":"Value Files","FORCE_STRING":"Force String","FILE_PARAMETERS":"File Parameters","NAME_PREFIX":"Name Prefix","NAME_SUFFIX":"Name Suffix","IMAGES":"Images","COMMON_LABELS":"Common Labels","COMMON_ANNOTATIONS":"Common Annotations","DEVOPS_PROJECT_SETTINGS":"项目管理","DEVOPS_DESCRIPTION":"DevOps 是一個獨立的命名空間,其中定義了一組流水線。用戶可以按照自己的方式對流水線進行分組(例如:項目類型、組織類型)。","DEVOPS_PROJECT_ROLE_SCAP":"DevOps 项目角色","DEVOPS_PROJECT_SCAP":"DevOps 项目","DEVOPS_PROJECT_MEMBER_SCAP":"DevOps project member","DEVOPS_PROJECT_MEMBER_PL_SCAP":"DevOps project members","DEVOPS_PROJECT_ROLE_PL_SCAP":"DevOps 项目角色","CD_ALLOWLIST":"Continuous Deployment Allowlist","CD_ALLOWLIST_SCAP":"Continuous deployment allowlist","DEPLOYMENT_LOCATION_PL":"Deployment Locations","ENABLE_ALLOWLIST":"Enable Allowlist","EDIT_ALLOWLIST":"Edit Allowlist","EMPTY_ALLOWLIST_TITLE":"Continuous Deployment Allowlist Disabled","ALLOWLIST_EMPTY_DESC":"Enable the allowlist so that only specific code repositories and deployment locations can be used for continuous deployment.","MULTI_CLUSTER_PROJECT_NOT_FOR_CD":"Multi-cluster projects cannot be used for continuous deployment.","CODE_REPOSITORY_EXIST_DESC":"The code repository already exists. Please select another code repository.","DEPLOYMENT_LOCATION_EXIST_DESC":"The deployment location already exists. Please set another deployment location.","CODE_REPOSITORY_NOT_SELECTED":"No code repositories are selected.","RESOURCE_DEPLOYMENT_LOCATION_NOT_SELECTED":"No resource deployment locations are selected.","ALL_CODE_REPOSITORIES":"All code repositories","ALL_RESOURCE_DEPLOYMENT_LOCATIONS":"All resource deployment locations","CREDENTIAL_LOW":"credential","DETAILS":"詳情","TYPE_VALUE":"Type: {value}","RECORD":"Record","CREDENTIAL_PL":"憑證","DEVOPS_CREDENTIALS_DESC":"憑證是包含了一些敏感數據的對象,如用戶名密碼,SSH 密鑰和 Token 等,用於在 Pipeline 運行時,為拉取代碼、push/pull 鏡像、SSH 執行腳本等過程提供認證","CREDENTIAL_EMPTY_DESC":"請創建一個 DevOps 项目憑證。","CREATE_CREDENTIAL":"創建憑證","CREDENTIAL_NAME_EXIST_DESC":"憑證 ID 已存在。","CREDENTIAL_TYPE_USERNAME_PASSWORD":"用戶名稱與密碼","CREDENTIAL_TYPE_SSH":"SSH key","PRIVATE_KEY":"私鑰","PASSPHRASE":"密碼短語","CREDENTIAL_TYPE_SECRET_TEXT":"Access token","CREDENTIAL_TYPE_KUBECONFIG":"kubeconfig","PASSWORD_TOKEN":"令牌/密碼","KUBECONFIG_CONTENT_DESC":"預設內容為目前用户的 kubeconfig。","CONTENT":"內容","DEVOPS_PROJECT_MEMBER":"DevOps Project Member","DEVOPS_PROJECT_MEMBER_PL":"DevOps 项目成員","DEVOPS_PROJECT_MEM_DESC":"對项目内的成員進行管理及角色分配。","DEVOPS_PROJECT_MEMBER_EMPTY_DESC":"Please invite a member of the current workspace to the DevOps project.","INVITE_MEMBER_DESC_DEVOPS":"您可以邀請當前企業空間成員至該 DevOps 项目。","HOW_TO_INVITE_MEMBER_Q":"How do I invite members to the project?","HOW_TO_INVITE_MEMBER_A":"項目管理員或者擁有成員邀請權限的用戶可以邀請目前企業空間内的成員加入項目。","NO_PERMISSION":"No Permission Found","DEVOPS_PROJECT_ROLE_PL":"DevOps 项目角色","DEVOPS_PROJECT_ROLES_DESC":"成員角色定義了在目前 DevOps 项目下用戶所擁有的權限。","DEVOPS_PROJECT_ROLE_EMPTY_DESC":"Please create a DevOps project role.","ROLE_DEVOPS_VIEWER":"DevOps 项目觀察者,可以查看 DevOps 项目下所有的資源。","ROLE_DEVOPS_OPERATOR":"DevOps 项目普通成員,可以在 DevOps 项目下創建流水線憑證等。","ROLE_DEVOPS_ADMIN":"Manage all resources in the DevOps project.","EDIT_PERMISSIONS":"編輯權限","CREATE_ROLE":"創建角色","CATEGORIES":"Categories","DEPENDS_ON":"依賴於","PERMIGROUP_PIPELINES_MANAGEMENT":"流水線","PERMISSION_PIPELINES_VIEW":"Pipeline Viewing","PERMISSION_PIPELINES_VIEW_DESC":"View DevOps project pipelines and download artifacts.","PERMISSION_PIPELINES_MANAGEMENT":"Pipeline Management","PERMISSION_PIPELINES_MANAGEMENT_DESC":"Create, edit, and delete DevOps project pipelines.","PERMISSION_PIPELINERUNS_VIEW":"Pipeline Run Record Viewing","PERMISSION_PIPELINERUNS_VIEW_DESC":"View pipeline run records in the DevOps project.","PERMISSION_PIPELINERUNS_MANAGEMENT":"Pipeline Run Record Management","PERMISSION_PIPELINERUNS_MANAGEMENT_DESC":"View, edit, and delete pipeline run records in the DevOps project.","PERMIGROUP_CREDENTIALS_MANAGEMENT":"憑證","PERMISSION_CREDENTIALS_VIEW":"Credential Viewing","PERMISSION_CREDENTIALS_VIEW_DESC":"View and use DevOps credentials.","PERMISSION_CREDENTIALS_MANAGEMENT":"Credential Management","PERMISSION_CREDENTIALS_MANAGEMENT_DESC":"Create, edit, and delete DevOps credentials.","PERMIGROUP_DEVOPS_SETTINGS":"項目設置","PERMISSION_DEVOPS_SETTINGS":"Project Settings Management","PERMISSION_DEVOPS_SETTINGS_DESC":"Manage DevOps project settings.","PERMIGROUP_CONTINUOUS_DEPLOYMENTS_MANAGEMENT":"Continuous Deployments","PERMISSION_CONTINUOUS_DEPLOYMENTS_VIEW":"Continuous Deployment Viewing","PERMISSION_CONTINUOUS_DEPLOYMENTS_VIEW_DESC":"View continuous deployments in the DevOps project.","PERMISSION_CONTINUOUS_DEPLOYMENTS_MANAGEMENT":"Continuous Deployment Management","PERMISSION_CONTINUOUS_DEPLOYMENTS_MANAGEMENT_DESC":"Manage continuous deployments in the DevOps project.","PERMIGROUP_CODE_REPOSITORIES_MANAGEMENT":"Code Repositories","PERMISSION_CODE_REPOSITORIES_VIEW":"Code Repository Viewing","PERMISSION_CODE_REPOSITORIES_VIEW_DESC":"View code repositories in the DevOps project.","PERMISSION_CODE_REPOSITORIES_MANAGEMENT":"Code Repository Management","PERMISSION_CODE_REPOSITORIES_MANAGEMENT_DESC":"Manage code repositories in the DevOps project.","CODE_REPOSITORY":"代碼倉庫","TASK_STATUS":"運行狀態","NOT_RUNNING":"未運行","QUEUED":"列隊中","ABORTED":"Aborted","UNSTABLE":"Unstable","SKIPPED":"已跳過","NOT_BUILT":"Not built","SYNC_STATUS":"同步狀態","DEVOPS_PROJECT":"DevOps 项目","SCAN_REPO_SUCCESSFUL":"掃描倉庫觸發成功","VIEW_SCAN_LOGS":"View Scan Logs","STARTED_BY_NAME":"由{name}觸發掃描","REPOSITORY_SCAN_LOGS":"掃描倉庫紀錄","RESCAN":"重新掃描","LOGS_OBTAINED_SUCCESSFULLY":"掃描紀錄成功。","HEALTH_STATUS_SCAP":"Health status","PIPELINE_QUEUED_TITLE":"Pipeline 即將進行初始化","INITIALIZING_PIPELINE":"Pipeline 初始化中","PIPELINE_PREPARE_DESC":"正在準備環境,稍後有圖形化顯示","INITIALIZING_PIPELINE_DESC":"Please wait until the pipeline initialization is complete.","TASK_FAILED_NOT_OPERATIONAL":"任務已失敗,不可操作","NO_PIPELINE_CONFIG_FILE_TIP":"未找到流水線配置文件","EDIT_PIPELINE":"編輯流水線","JENKINS_UNAVAILABLE":"Jenkins is unready.","AGENT_TYPE_DESC":"Agent 部分指定整個 Pipeline 或特定階段將在 Jenkins 還境中執行的位置,\n 具體取決於該 agent 部分的放置位置。該部分必須在流水線塊内的頂層定義,但 stage 級使用是可選的。","NOT_VALID_REPO":"Code repo is not valid and cannot be created","CREATE_PIPELINE_DESC":"使用流水線進行構建,測試和部署","CI":"持續集成 (CI)","CI_DESC":"持續集成(CI)是在源代碼變更後自動檢測、拉取、構建和(在大多數情況下)進行單元測試的過程。 ","CICD":"持續集成&交付 (CI/CD)","CICD_DESC":"持續部署(CD)是指能夠自動提供持續交付管道中發布版本給最終用戶使用的想法。根據用戶的安裝方式,在雲環境中自動部署、app 升級(如手機上的應用程序)、更新網站或只更新可用版本列表。 ","CUSTOM_PIPELIEN":"自定義流水線","CUSTOM_PIPELIEN_DESC":"您可以選擇您需要的任務自定義流水線的工作內容","CC":"副本","CREDENTIAL_NAME":"憑證 ID","REMOTE_REPOSITORY_URL":"遠程倉庫地址","SCM":"代碼倉庫","INPUT_MESSAGE_DESC":"流水線運行狀態中將會顯示此訊息","KUBERNETES_DEPLOY_DESC":"在 kubernetes 集群中進行部署,在持續集成/持續部署的環境當中,\n 只有那些需要定期更新的資源才應該放到部署步驟當中,所以此步驟大多數時間都在處理部署這類資源.","KUBERNETES_DEPLOY_DESC_MORE":"
    \n \n
  • 無需 kubectl 的情況下實現部署
  • \n
  • Jenkinsfile 中的變量替換,可以進行動態部署。
  • \n
  • 支持從私有鏡像倉庫拉取 Docker 鏡像
  • \n \n
    \n
  • 配置
  • \n
  • 密鑰
  • \n
  • 部署
  • \n
  • 守護進程集
  • \n
  • 應用路由
  • \n
  • 名稱空間
  • \n
  • 任務
  • \n
  • 服務
  • \n
  • Replica Set
  • \n
  • \n Replication\n Controller (不支持滾動更新,如果要使用滾動更新請使用部署)\n
  • ","STAGE":"階段","KUBERNETES_DEPLOY_DEPRECATED_TIP":"該步驟會在後續版本中棄用,建議考慮其他替代方案。","ORIGINAL_IMAGE_ADDRESS":"Original Image Address","NEW_IMAGE_ADDRESS":"New Image Address","NEW_IMAGE_TAG":"New Image Tag","CD_STEP_DESC":"Update image information using continuous deployment.","UPDATE_CD_TITLE":"Continuous Deployment of Updates","EDIT_JENKINSFILE":"編輯 Jenkinsfile","CLOSE_JENKINSFILE_EDITOR_TIP":"確定關閉 Jenkinsfile 編輯器?","PIPELINE_RUN_LOGS":"流水線運行紀錄","VIEW_LOGS":"查看紀錄","DURATION_VALUE":"Duration: {value}","DOWNLOAD_LOGS":"下载紀錄","START_REAL_TIME_LOG":"開始實時紀錄","STOP_REAL_TIME_LOG":"關閉實時紀錄","RUN_RECORDS":"Run Records","RUN":"運行","ACTIVITY_EMPTY_TIP":"目前 Pipeline 還沒有運行","COMMIT":"提交","LAST_MESSAGE":"最後訊息","RUN_ID":"Run ID","STOP_PIPELINE_SUCCESSFUL":"任務已停止,狀態稍後更新","INVALID_JENKINSFILE_TIP":"目前 Jenkinsfile 不是標準的聲明式 Jenkinsfile,無法進行圖形化顯示","PAUSED":"已暫停","SET_PARAMETERS":"輸入參數","PARAMS_DESC":"The following parameters are generated based on the pipeline settings or\n the parameters section of the Jenkinsfile, which are entered according to operational requirements.","PIPELINE_RUN_START_SI":"Starts to run the pipeline...","PIPELINE_RUN_START_PL":"Starts to run the pipelines...","BREAK":"終止","PROCEED":"繼續","WAITING_FOR_INPUT":"等待輸入","CANCELLED_IN_REVIEW":"已在審核中取消","STEPS_COMPLETE_TOTAL":"Steps: {complete}/{total}","COMMIT_PL":"提交","AUTHOR":"作者","NO_COMMIT_FOUND":"沒有提交紀錄","ARTIFACT_PL":"成品","NO_ARTIFACT_FOUND_TIP":"沒有成品紀錄","SIZE":"大小","BRANCH_SI":"分支","BRANCH_PL":"Branches","SCAN_REPOSITORY":"掃描遠程分支","PIPELINE":"流水線","NO_BRANCHES_FOUND":"No Branches Found","CODE_CHECK":"代碼質量","BUG_PL":"Bugs","VULNERABILITY_PL":"代碼漏洞","CODE_SMELL_PL":"容易出錯","CODE_LINE_COUNT":"行數","COVERAGE":"覆蓋率","TEST_RESULTS":"檢測結果","ISSUE_PL":"問題","CRITICAL":"危險告警","MAJOR":"Major","MINOR":"Minor","DISPLAY_ALL":"顯示全部","DISPLAY_ONLY_LAST_TEN":"僅顯示最近 10 條","LINE_VALUE":"行:{value}","PASSED":"已通過","PULL_REQUEST_PL":"拉取請求","FAILED_CHECK_SCRIPT_COMPILE":"Failed to check script compiling. If you want to skip the step, click Continue.","IMPORT_FROM_CODE_REPO":"Import From Code Repository","General":"General","Container":"Container","Review":"Review","URL":"URL","Credential Name":"憑證 ID","Branch":"分支","SVN URL":"SVN URL","The message to print":"Message to Print","Shell command line":"Shell command line","Body":"Body","Variable":"Variable","KeyFile Variable":"KeyFile Variable","Passphrase Variable":"Passphrase Variable","Artifacts Location":"Artifacts Location","Time":"時間","Unit":"Unit","Groovy script":"Groovy script","Target Pipeline Name":"Target Pipeline Name","Quiet Period":"Quiet Period","Wait For Completion":"Wait for completion","Propagate Errors":"Propagate errors","Error Message":"Error Message","Test Results Location":"Location of Test Results","Allow Empty Results":"Allow empty results","Keep Long Output":"Retain long output","Skip Publishing Checks":"Skip publishing checks","Retry Count":"Retry Times","Message":"訊息","Submitter":"Submitter","Config Name":"Configuration Item","AbortPipeline if quality gate status is not green":"Abort the pipeline if quality gate status is not green","Container Name":"容器名稱","Continuous Deployments":"Continuous Deployment","Original Image Address":"Original Image Address","New Image Address":"New Image Address","New Image Tag":"New Image Tag","Credential":"憑證","PIPELINE_CONFIGURATION":"Pipeline Configurations","Replay":"Replay","BRANCH_DISABLED_NOT_REPLAY":"The branch has been disabled and cannot be replayed.","RUN_LOGS":"Run Logs","VIEW_FULL_LOG":"View Full Logs","VIEW_REAL_TIME_LOG":"View Real-time Logs","PIPELINE_LOG":"Pipeline Logs","NO_BUILD_PARAMETERS":"未發現構建參數。","PIPELINE_PL":"流水線","HEALTH":"健康狀態","PULL_REQUEST_COUNT":"拉取請求","MULTI_BRANCH_PIPELINE":"Multi-branch Pipeline","HEALTHY":"健康","SUB_HEALTHY":"亞健康","NO_STATUS":"沒有狀態","BRANCH_COUNT":"分支數量","PIPELINE_EMPTY_DESC":"Please create a pipeline.","BATCH_RUN_SUCCESS_SI":"The pipeline was run successfully.","BATCH_RUN_SUCCESS_PL":"The pipelines were run successfully.","BATCH_RUN_UNSUPPORTED_DESC":"多分支流水線不支持批量運行。","COPY":"Copy","COPY_PIPELINE":"複製流水線","PIPELINE_NAME_DESC":"流水線的名稱,同一個項目内 Pipeline 不能重名。","PIPELINE_NAME_TIP":"請輸入流水線名稱。","CREATE_PIPELINE":"創建流水線","GO_CREATE_REPO_ACTION":"No code repository is available. Please create a code repository.","PIPELINE_TYPE":"Pipeline Type","SELECT_CODE_REPOSITORY":"選擇代碼倉庫","BRANCH_PIPELINE_DESC":"Describe the software build process with visual orchestration or Jenkinsfile.","MULTI_BRANCH_PIPELINE_DESC":"Create a series of pipelines for each branch detected in the source code management (SCM) repository.","PIPELINE_CREATE_DEVOPS_PROJECT_DESC":"Select the DevOps project to which the pipeline belongs.","CODE_REPOSITORY_OPTIONAL":"代碼倉庫(可選)","CODE_REPOSITORY_REQUIRED":"代碼倉庫","CODE_REPOSITORY_REQUIRED_DESC":"Please select a code repository.","GO_CREATE_REPO":"No code repository is available. Please create a code repository.","CODE_REPO_EXISTS":"code repository already exists","SELECT_CODE_REPO_DESC":"請選擇一個代碼倉庫作為流水線的代碼來源。","RESELECT":"重新選擇","CREDENTIAL_SI":"憑證","CREDENTIAL":"憑證","PIPELINE_CREDENTIAL_EMPTY_TIP":"Please select a credential.","SELECT_CREDENTIAL_DESC":"獲取倉庫代碼可能需要憑證, 選擇已有憑證或添加一個新的憑證。","GITHUB_CREDENTIAL_EMPTY":"請輸入 GitHub 訪問令牌。","INCORRECT_GITHUB_TOKEN_DESC":"GitHub 令牌錯誤\n \n 重新獲取 Token\n ","LOAD_MORE":"載入更多","NO_REPO_FOUND_DESC":"No code repository is found.","GITLAB_SERVER_ADDRESS":"Gitlab 服務","GITLAB_SERVER_EMPTY_TIP":"Please enter the address of a GitLab server.","PROJECT_GROUP_OWNER":"GitLab 項目所屬組","PROJECT_GROUP_OWNER_EMPTY_TIP":"Please enter the name of a GitLab project group or project owner.","REPOSITORY_NAME":"倉庫名稱","REPOSITORY_NAME_EMPTY_TIP":"Please enter the name of a repository name.","BITBUCKET_SERVER_ADDRESS":"Bitbucket Server Address","BITBUCKET_SERVER_EMPTY_TIP":"Please enter the address of a Bitbucket server.","INCORRECT_USERNAME_OR_PASSWORD":"用戶名或密碼錯誤","BITBUCKET_SERVER_CREDENTIAL_EMPTY":"請輸入 BitBucket 帳號資訊。","BITBUCKET_ADDRESS_EMPTY_TIP":"Please enter the address of a Bitbucket server.","BITBUCKET_ADDRESS_INVALID_TIP":"Invalid Bitbucket server address.","CODE_REPOSITORY_ADDRESS_DESC":"請使用包含 Jenkinsfile 的倉庫。","CODE_REPOSITORY_ADDRESS_EMPTY_TIP":"Please enter the address of a code repository.","CODE_REPOSITORY_ADDRESS":"倉庫 URL","SINGLE_SVN":"單分支 SVN","SVN":"SVN","BRANCH_EXCLUDED":"排除分支","BRANCH_INCLUDED":"包括分支","DELETE_OUTDATED_BRANCHES":"刪除過期分支(true,false)","DELETE_OUTDATED_BRANCHES_TIP":"Set the system to automatically delete outdated branches to save disk space.","BRANCH_SETTINGS":" 分支設置","BRANCH_RETENTION_PERIOD_DAYS":"已刪除分支保留天數(天)","MAXIMUM_BRANCHES":"已刪除分支保留最大數量","BRANCH_RETENTION_PERIOD_DAYS_DESC":"達到保留天數的分支將被刪除,默認值為 7。","MAXIMUM_BRANCHES_DESC":"如果分支數量超過保留的最大數量,將丟棄舊的分支。默認值為 5。","ADD_STRATEGY":"Add Strategy","DISCOVER_TAG_BRANCHES":"發現 Tag 分支","DISCOVER_BRANCHES":"發現分支","ALL_BRANCHES":"所有分支","ONLY_PR_BRANCHES":"只有被提交為 PR 的分支","EXCLUDE_PR_BRANCHES":"排除作為 PR 提交的分支","ENABLE_TAG_BRANCH_DISCOVERY":"啟用發現 Tag 分支","DISABLE_TAG_BRANCH_DISCOVERY":"停用發現 Tag 分支","PULL_STRATEGY":"拉取策略","OPTIONS_PR_PARAMS_1":"PR 與目標分支合併後的源代碼版本","OPTIONS_PR_PARAMS_2":"PR 本身的源代碼版本","OPTIONS_PR_PARAMS_3":"Create two pipelines respectively","REGEX":"過濾規則","FILTER_BY_REGEX":"根據名稱過濾(正則匹配)","FILTER_BY_REGEX_DESC":"啟用正則表達式,將忽略與提供的正則表達式不匹配的名稱(包括分支與PR等)","SCRIPT_PATH":"腳本路徑","SCRIPT_PATH_DESC":"指定 Jenkinsfile 在源代碼倉庫的位置。","SCAN_TRIGGER":"倉庫掃描觸發器","SCAN_PERIODICALLY":"如果沒有掃描觸發,則定期掃描","TIME_TRIGGER_DESC":"Scan the code repository periodically.","SCAN_INTERVAL":"掃描時間間隔","SELECT_PIPELINE_SCAP":"選擇一個流水線。","WHEN_DELETE_PIPELINE_DESC":"當有流水線被刪除時,將自動觸發指定流水線中的任務。","WHEN_CREATE_PIPELINE_DESC":"當創建新的流水線時,將自動觸發指定流水線中的任務。","PIPELINE_EVENT_TRIGGER":"流水線事件觸發器","WHEN_CREATE_PIPELINE":"創建流水線","WHEN_DELETE_PIPELINE":"當刪除流水線","CLONE_SETTINGS":"Git 克隆參數","CLONE_TIMEOUT_PERIOD":"流水線克隆超時時間(單位:分鐘)","CLONE_DEPTH":"克隆深度","ENABLE_SHALLOW_CLONE":"開啟淺克隆","WEBHOOK_PUSH_URL":"Webhook 推送 URL","WEBHOOK_PUSH_DESC":"推送訊息到此 URL 以觸發倉庫的重新索引。","TRUSTED_USERS":"可信任用戶","CONTRIBUTORS":"貢獻者","EVERYONE":"所有人","NOBODY":"無","USERS_WITH_PERMISSION":"管理員或有編輯權限的用戶","OPTIONS":"備用選項","BUILD_SETTINGS":"構建設置","DELETE_OUTDATED_BUILD_RECORDS":"丢棄舊的構建","DELETE_OUTDATED_BUILD_RECORDS_TIP":"Set the system to automatically delete outdated build records including console output, archived artifacts, and metadata to save disk space.","BUILD_RECORD_RETENTION_PERIOD_DAYS":"保留構建的天數","BUILD_RECORD_RETENTION_PERIOD_DAYS_DESC":"達到保留天數的構建將被刪除,默認值為 7。","BUILD_RECORD_RETENTION_PERIOD_DAYS_INVALID_TIP":"The retention period must be a positive integer.","MAXIMUM_BUILD_RECORDS":"保留構建的最大個數","MAXIMUM_BUILD_RECORDS_DESC":"如果構建超過保留的最大數量,將丟棄舊的構建。默認值為 10。","MAXIMUM_BUILD_RECORDS_INVALID_TIP":"The maximum number of build records must be a positive integer.","NO_CONCURRENT_BUILDS":"不允許並發構建","NO_CONCURRENT_BUILD_DESC":"如果勾選此選項,則不能同時運行多個構建。","BUILD_PARAMETERS":"參數化構建","BUILD_PARAMETERS_TIP":"Pass build parameters to the pipeline.","PARAMS_STRING":"字符串參數 (String) ","PIPELINE_PARAM_DEFAULT_DESC":"指定字段的預設值,您也可以在手動運行流水線前修改預設值。","PARAMS_TEXT":"文本 (Text) ","PARAMS_TEXT_TCAP":"字符串參數 (String) ","PARAMETER_DESCRIPTION_DESC":"參數的描述。","PARAMS_BOOLEAN":"布林值 (Boolean) ","PARAMS_CHOICE":"選項參數 (Choice) ","CHOICE_PARAM_OPTION_DESC":"備用選擇,每行一個。第一行的將作為預設選項。","PARAMS_PASSWORD":"密碼參數 (Password) ","BUILD_TRIGGER":"構建觸發器","BUILD_PERIODICALLY":"定時構建","BUILD_PERIODICALLY_TIP":"提供類似 cron 的功能來定期執行此流水線。","PIPELINE_CRON_DESC":"上次運行時間 {lastTime},下次運行時間 {nextTime}。","PIPELINE_SCHEDULE_DESC":"Enter a CRON expression to set a schedule.","DEFAULT_VALUE":"預設值","PARAMETER_NAME_EMPTY_DESC":"Please set the parameter name.","SELECT_TEMPLATE":"Select template","PARAMETER_CONFIG":"Parameter configuration","PREVIEW":"Preview","EMPTY_PARAMS_CONFIG":"This operation does not require parameter configuration.","PIPELINE_VALIDATOR_DESC":"Please select a pipeline template.","USER_GUIDE":"User Guide","API_DOCUMENT":"API Docuement","INPUT_USERNAME_OR_EMAIL_TIP":"請輸入用戶名或信箱","LOG_IN":"Log In","LOG_IN_WITH_TITLE":"通過 {title} 登入","LOG_OUT":"Log Out","ABOUT":"About","USERNAME_OR_EMAIL":"Username or Email","WELCOME":"Welcome","INTERNAL_SERVER_ERROR_TIP":"對不起,服務器有小差錯了","TOO_MANY_FAILURES":"The number of consecutive login failures has exceeded the limit. Please try again later.","FAILED_TO_ACCESS_BACKEND":"Failed to access the backend services.","FAILED_TO_ACCESS_API_SERVER":"Failed to access the API server.","LOGIN_AGAIN_DESC":"The session has timed out or the user has logged in elsewhere. Please log in again.","CHANGE_PASSWORD_TIP":"You are logging in for the first time. Please change your password.","SUBMIT":"Submit","CHANGE_PASSWORD_LATER":"Change Password Later","PASSWORD_MUST":"Your password must:","PASSWORD_LETTER":"Contain at least 1 uppercase letter and 1 lowercase letter.","PASSWORD_NUMBER":"Contain at least 1 number.","PASSWORD_LENGTH":"Contain at least 8 characters.","SET_EMAIL_AND_USERNAME":"Set Email and Username","APPLICATION_GOVERNANCE_SCAP":"Application governance","NO_SERVICE_FOUND":"No Service Found","GATEWAY_IP_ADDRESS":"網關 IP","GATEWAY_ACCESS_MODE":"網關類型","NODE_PORTS_SCAP":"Node ports","LOAD_BALANCER_SCAP":"Load balancer","LOAD_BALANCERS_SCAP":"Load balancers","TRAFFIC_MANAGEMENT":"流量管理","APPLICATION_GOVERNANCE_ENABLED":"微服務已啟用","APPLICATION_GOVERNANCE_DISABLED":"微服務未啟用","NAME_VALUE":"名稱:{value}","CONTAINER_PORT_VALUE":"容器端口:{value}","PLEASE_USE_RELATIVE_PATH":"Please use a relative path.","RELATIVE_PATH_NOT_SUPPORT":"Unsupported relative path format.","MOUNT_PATH_INCORRECT":"Incorrect mount path.","REASON":"原因","WORKLOAD_DESC":"工作負載 (Workload) 通常是訪問服務的實際載體, 也是對節點紀錄收集、監控等系統應用的實際運行載體,是對一組容器組 (Pod) 的抽象模型。","DEPLOYMENT_EMPTY_DESC":"Please create a Deployment.","UPDATING":"Updating","NEXT":"下一步","INVALID_PROJECT":"Invalid project.","REPLICA_SCHEDULING_MODE":"部署模式","SPECIFY_REPLICAS":"Specify Replicas","WEIGHTS":"Weights","SPECIFY_WEIGHTS":"Specify Weights","SPECIFY_WEIGHTS_DESC":"設定的總副本數將按照設定的權重分配到選擇的集群中,非可用集群的副本會自定遷移到可用集群上。","SPECIFY_REPLICAS_DESC":"明確指定各集群所需部署的副本數。","REPLICA_LOW_SI":"副本","REPLICA_LOW_PL":"副本","WEIGHT":"權重","TOTAL_REPLICAS":"副本總數","COST":"Cost","ADD_CONTAINER":"添加容器","ADD_CONTAINER_DESC":"Kubesphere 支持從鏡像倉庫拉取鏡像以及通過代碼構建新的鏡像並部署","CONTAINERS":"容器鏡像","IMAGE_TIME_SIZE_LAYER":"Updated {time}","IMAGE_DESC":"要從私有鏡像倉庫部署,需要先創建鏡像倉庫密鑰,然後拉取鏡像。","IMAGE_PLACEHOLDER":"點擊右側圖標可選擇鏡像,或直接輸入名稱 例:nginx:latest","IMAGE_EMPTY":"請設置鏡像","ENTER_POSITIVE_INTEGER_DESC":"副本輸入不合法","TOTAL_REPLICAS_EMPTY_DESC":"請輸入副本總數","CONTAINER_NAME":"容器名稱","CONTAINER_TYPE":"容器類型","USE_DEFAULT_PORTS":"使用預設端口","USE_IMAGE_DEFAULT_PORTS":"Use Default Port of Images","NO_DEFAULT_PORT":"暫無預設端口配置","REGISTRY":"倉庫","SET_IMAGE_DESC":"請選擇鏡像","WORKER_CONTAINER":"工作容器","CONTAINER_RESOURCE_LIMIT_TIP":"請設置容器的資源限制與資源預留,這將能夠幫助系統更好地調度容器,提高穩定性。您也可在【項目設置】中,通過【基本資訊】->【項目管理】->【編輯資源預設請求】,來統一設置預設值。","GPU_TYPE":"GPU Type","GPU_LIMIT":"GPU Limit","NVIDIA_COM_GPU":"NVIDIA GPU","NO_LIMIT":"不限制","NO_REQUEST":"不預留","NO_RESOURCE_LIMIT":"無資源限制","IGNORE_AND_RETRY":"重試","AVAILABLE_QUOTAS":"Available Quotas","PORT_SETTINGS":"端口設置","ISTIO_PROTOCOL_TIP":"To fully use the Application Governance feature, select a protocol based on the actual usage of the Service. The port name will be generated in the - format.","REQUIRED":"必填","IMAGE_PULL_POLICY_ALWAYS":"嘗試重新下載鏡像(Always)","IMAGE_PULL_POLICY_NEVER":"僅使用本地鏡像(Never)","IMAGE_PULL_POLICY_ALWAYS_DESC":"Pulls an image always when the pod is created or updated.","IMAGE_PULL_POLICY_IFNOTPRESENT_DESC":"Pulls an image only when the required image does not exist locally.","IMAGE_PULL_POLICY_NEVER_DESC":"僅會使用本地鏡像,如果本地不存在所需鏡像,則會導致容器異常","IMAGE_PULL_POLICY_IFNOTPRESENT":"優先使用本地鏡像(IfNotPresent)","LIVENESS_CHECK":"容器存活檢查","READINESS_CHECK":"容器就緒檢查","STARTUP_CHECK":"容器啟動檢查","LIVENESS_CHECK_DESC":"該檢查方式用於檢測容器是否活著。","READINESS_CHECK_DESC":"該檢查方式用於檢測容器是否準備好開始處理用戶請求。","STARTUP_CHECK_DESC":"該檢查方式用於檢測容器是否啟動成功。","ADD_PROBE":"添加檢查器","COMMANDS":"命令","HEALTH_CHECK":"健康檢查","STARTUP_CHECK_TIP":"需要 Kubernetes v1.18 或以上版本。","HTTP_PATH_EMPTY":"Please set a path for the HTTP check.","LIFECYCLE_MANAGEMENT":"Lifecycle Management","LIFECYCLE_MANAGEMENT_DESC":"Add actions to be performed after the container is started or before it is stopped for environment preparation or graceful shutdown.","POSTSTART_ACTION":"Post-start Action","PRESTOP_ACTION":"Pre-stop Action","POSTSTART_ACTION_DESC":"Add an action to be performed after the container is started.","PRESTOP_ACTION_DESC":"Add an action to be performed before the container is stopped.","ADD_ACTION":"Add Action","ADD_ENVIRONMENT_VARIABLE":"添加環境變量","KEY_IN_RESOURCE":"選擇鍵","LABEL_TYPE":"{label} ({type})","RESOURCE":"Resource","CREATE_CONFIGMAP_SECRET_DESC":"If no configmap or secret meets the requirements, you can","CREATE_CONFIG":"create a configmap","OR":"or","CREATE_SECRET":"create a secret.","DEFAULT_REPOSITORY":"Default Registry","SET_DEFAULT_REPOSITORY":"Set Default Registry","SET_AS_DEFAULT_REPOSITORY_DESC":"Set the image registry as the default image registry. Unless otherwise specified, the system uses images from the default image registry to create application workloads. Only one default image registry is allowed in each project.","SET_AS_DEFAULT_REPOSITORY":"Set as Default","SET_DEFAULT_REPO_SUCCESSFUL":"Default repository set successfully","CONTAINER_SECURITY_CONTEXT":"容器 Security Context","CONTAINER_SECURITY_CONTEXT_DESC":"Security Context的目的是限制不可信容器的行為,保護系統和其他容器不受其影響。","PRIVILEGED_MODE":"特權模式","PRIVILEGED_MODE_DESC":"此時容器中的進程本質上等價於宿主節點上的 root 用戶。","ALLOW_PRIVILEGE_ESCALATION":"允許擴大特權(AllowPrivilegeEscalation)","ALLOW_PRIVILEGE_ESCALATION_DESC":"進程是否可以獲取比父進程更多的特權。當以特權模式運行時,則為允許狀態。","ROOT_DIRECTORY_READONLY":"文件系統root唯讀(ReadOnlyRootFilesystem)","ROOT_DIRECTORY_READONLY_DESC":"該容器的文件系統根路徑是否唯讀。","USER_AND_USER_GROUP":"用戶和用戶組","USER_GROUP":"用戶組","RUN_AS_NON_ROOT":"僅允許非 Root 用戶","RUN_AS_NON_ROOT_DESC":"Kubernetes 在運行容器之前將執行檢查,以確保容器進程不是以 root 用戶(UID為0)運行,否則將不能啟動容器。","RUN_AS_USER_DESC":"執行容器 entrypoint 進程的 UID。預設為 docker 引擎的 GID","RUN_AS_USER_GROUP_DESC":"執行容器 entrypoint 進程的 GID。預設為 docker 引擎的 GID","SELINUX_CONTEXT":"SELinux 上下文","CAPABILITIES":"Capabilities","DROP":"移除","ACCESS_CONTROL":"訪問控制","LEVEL":"等級","SYNC_HOST_TIMEZONE_DESC":"時區與主機同步後,容器内的時區將與主機節點一致。","SYNC_HOST_TIMEZONE":"同步宿主機時區","UPDATE_STRATEGY":"更新策略","ROLLING_UPDATE_RECOMMENDED":"滾動更新(推薦)","SIMULTANEOUS_UPDATE":"替換升級","ROLLINGUPDATE_DESC":"滾動升級將逐步用新版本的實例替換版本的實例,升級的過程中,業務流量會同時負載平衡分布到新舊的實例上,因此業務不會中斷。","SIMULTANEOUS_UPDATE_DESC":"替換升級會先刪除舊的容器組,再創建新容器組;升級過程中業務會中斷。","ENTER_INTEGER_OR_PERCENTAGE":"請輸入值","MAX_EXTRA_EMPTY":"Please set the maximum number of extra Pod replicas allowed during the update process.","POD_SECURITY_CONTEXT":"容器組 Security Context","POD_SECURITY_CONTEXT_DESC":"自定義容器組的訪問控制和權限設置。","POD_SECURITY_CONTEXT_TIP":"容器組 Security Context 可以為容器組内的容器提供預設的用戶和用戶組設置以及 seLinuxOptions 的參數設置,如果容器中已經對這些參數進行了定義,則優先以容器中的設置為準。","POD_SCHEDULING_RULES":"容器组调度策略","POD_SCHEDULING_RULES_DESC":"您可以为容器組調度指定規則","DEFAULT_RULES":"Default Rules","DEFAULT_RULES_DESC":"Schedules the Pod replicas to nodes according to default rules.","DECENTRALIZED_SCHEDULING":"容器組分散部署","CUSTOM_RULES":"Custom Rules","CUSTOM_RULES_DESC":"Pod replicas are scheduled to nodes according to user-defined rules.","DECENTRALIZED_SCHEDULING_DESC":"容器組副本將會盡量分散在不同的節點中","CENTRALIZED_SCHEDULING_DESC":"容器組副本將會盡量部署在同一節點上","CENTRALIZED_SCHEDULING":"容器組聚合部署","SCHEDULE_WITH_TARGET":"與目標部署到壹起","SCHEDULE_AWAY_FROM_TARGET":"遠離目標部署","MATCH_IF_POSSIBLE":"盡可能滿足","MUST_MATCH":"必須匹配","TARGET":"目標","STRATEGY":"策略","POD_GRACE_PERIOD":"Pod Grace Period","POD_GRACE_PERIOD_DESC":"Set the waiting time before Pod terminates, after which Pod will be forcibly terminated.","TERMINATION_GRACEPERIOD_SECONDS":"Termination GracePeriod Seconds (s)","ADD_METADATA":"添加元數據","POD_ADD_METADATA_DESC":"Add metadata to the Pod replicas.","STORAGE_SETTINGS":"Storage Settings","READ_ONLY_LOW":"read-only","READ_AND_WRITE_LOW":"read and write","MOUNT_VOLUME":"添加儲存卷","WORKLOAD_MOUNT_VOLUME_DESC":"Mount an persistent volume, temporary volume, or HostPath volume to the containers.","SELECT_PERSISITENT_VOLUME_CLAIM":"Select Persistent Volume Claim","SELECT_PERSISITENT_VOLUME_CLAIM_DESC":"Mount a persistent volume created according to the persistent volume claim to the containers.","CAPACITY":"容量","PVC_NOT_SELECT":"Please select a persistent volume claim.","TEMPORARY_VOLUME":"臨時儲存卷","VOLUME_NAME":"儲存卷名稱","VOLUME_NAME_EMPTY":"請輸入儲存卷名稱","HOST_PATH_EMPTY":"請輸入存儲卷主機路徑","CONTAINER_NOT_SELECTED":"請至少選擇一個容器進行掛載","NOT_MOUNT":"不掛載","HOSTPATH_VOLUME":"HostPath 儲存卷","HOSTPATH_TIP":"HostPath 將主機的文件系統掛載到Pod中,它使一些應用程式能逃出對其做出的隔離限制,請謹慎使用。","HOST_PATH":"主机路徑","READ_AND_WRITE":"讀寫","READ_ONLY":"只讀","MOUNT_CONFIGMAP_OR_SECRET":"掛載配置文件或密鑰","MOUNT_CONFIGMAP_OR_SECRET_DESC":"將配置文件或密鑰掛載至指定目錄","CONFIGMAP":"配置字典","SELECT_CONFIGMAP_DESC":"將配置中的值添加為卷。","READ_WRITE_MOUNT_EMPTY":"請指定讀寫方式及掛載路徑","SELECT_SPECIFIC_KEYS":"選擇特定的鍵和路徑","SELECT_SPECIFIC_KEYS_DESC":"選擇要使用的密鑰以及將公開每個密鑰的文件路徑,文件路徑相當於裝載路徑,每個文件的内容都是密鑰的值。","SELECT_SECRET_DESC":"將密鑰中的值添加為卷。","CONFIGMAP_NOT_SELECT":"請選擇配置文件","SECRET_NOT_SELECT":"請選擇密鑰","NO_AVAILABLE_RESOURCE":"暫無可用資源","SELECT_NODES":"設置節點調度策略","SELECT_NODES_DESC":"可以讓容器組副本在指定的節點運行","ADD_NODE_SELECTOR":"添加節點選擇器","ADD_METADATA_DESC":"對資源進行額外的元數據設置,例如 Label 和 Annotation","KEY":"鍵","VALUE":"值","ADVANCED_SETTINGS":"高級設置","DUPLICATE_LABELS":"Duplicate labels cannot be added.","WORKLOAD_SPECIFY_NODE_DESC":"可以讓容器組副本在指定的節點運行","CLUSTER_DIFF":"Cluster Differences","CLUSTER_DIFF_CONTAINER_SETTINGS_DESC":"根據不同的需要在不同的集群中設置不同的容器","CLUSTER_DIFF_PORT_SETTINGS_DESC":"可以在不同集群設置不同的服務端口","CLUSTER_DIFF_ENVIRONMENT_VARIABLES_DESC":"可以在不同集群設置不同的環境變量","CONTAINER_IMAGE":"Container Image","ROUTE_ADD_METADATA_DESC":"Add metadata to the Route.","SELECT_INGRESSCLASSNAME":"選擇 ingressClassName","ACCESS_INFORMATION":"服務訪問","VIRTUAL_IP_ADDRESS":"Virtual IP address","INTERNAL_DOMAIN_NAME_SCAP":"集群内部訪問方式(DNS)","NODE_PORT_SCAP":"Node port","SERVICE_TYPE_TCAP":"服務類型","SELECT_SERVICE_TYPE":"Select Service Type","ADD_PORT":"添加端口","EMPTY_LABEL_DESC":"請添加標籤。","SPECIFY_NODE":"指定節點","SPECIFY_NODE_DESC":"指定節點可以將節點的 Label 作為預填充內容","MAXIMUM_STICKINESS_DURATION_DESC":"Set a maximum stickiness duration. The value range is 0 to 86400 and the default value is 10800.","SERVICE_ADD_METADATA_DESC":"Add metadata to the Service.","STATEFULSET_EMPTY_DESC":"Please create a StatefulSet.","POD_SETTINGS":"容器組設置","POD_REPLICAS":"容器組副本數量","ONDELETE":"刪除容器組時更新","ONDELETE_DESC":"控制器不會自動更新容器組,將會在容器組被手動刪除時,更新並替換容器組實例。","PARTITION_ORDINAL":"Ordinal for Dividing Pod Replicas","PARTITION_ORDINAL_DESC":"Set an ordinal to divide the Pod replicas into two groups. When the StatefulSet is updated, only Pod replicas with an ordinal greater than or equal to the value of this parameter are updated.","PVC_NAME_PREFIX":"PVC Name Prefix","PVC_NAME_PREFIX_DESC":"Prefix of persistent volume claim names. The prefix can contain only lowercase letters, numbers, and hyphens (-), and must start and end with a lowercase letter or number. The maximum length is 253 characters.","PVC_NAME_PREFIX_EMPTY":"Please enter the prefix of persistent volume claim names.","INVALID_PVC_NAME_PREFIX":"Invalid prefix. The prefix can contain only lowercase letters, numbers, and hyphens (-), and must start and end with a lowercase letter or number. The maximum length is 253 characters.","PVC_NAME_PREFIX_EXISTS":"The prefix already exists. Please enter another prefix.","ADD_PERSISTENT_VOLUME_CLAIM_TEMPLATE":"Add Persistent Volume Claim Template","ADD_PERSISTENT_VOLUME_CLAIM_TEMPLATE_DESC":"Add a persistent volume claim template to mount a persistent volume to each pod of the statefulset.","VOLUME_CAPACITY_TCAP":"儲存卷容量","MOUNT_PATH_TCAP":"Mount Path","VOLUME_TEMPLATES":"儲存卷模板","SERVICE_PORT":"服務端口","SERVICE_PORT_VALUE":"服務端口:{value}","VOLUME_TEMPLATE_SETTINGS":"儲存卷模板設置","CLUSTER_VOLUME_DIFF_DESC":"可針對不同集群,選擇不同的儲存類型","CONFIGMAP_EMPTY_DESC":"Please create a configmap.","MULTI_CLUSTER_PROJECT_EMPTY_DESC":"將根據項目資源進行分組,可以按項目對資源進行查看管理","MULTI_CLUSTER_PROJECT_LOW":"聯邦項目","MULTI_CLUSTER_PROJECT_SCAP":"聯邦項目","VOLUME_MONITORING_TIP":"存储系统需要具备真实的 volume quota 控制能力才可以输出真实准确的数据,基于 host path, local pv, 开源 nfs server 构建的存储系统通常不具备该能力。了解更多","MOUNT_INFORMATION":"掛載資訊","VOLUME_ADD_METADATA_DESC":"Add metadata to the volume.","PROJECT_NAME":"項目名稱","NO_REQUEST_TCAP":"不預留","NO_LIMIT_TCAP":"不限制","CPU_REQUEST_LOW":"CPU 預留","CPU_LIMIT_LOW":"CPU 限制","CPU_REQUEST_CORE":"{value} Core","CPU_LIMIT_CORE":"{value} Core","MEMORY_REQUEST_MIB":"{value} Mi","MEMORY_LIMIT_MIB":"{value} Mi","DELETE_PROJECT":"Delete Project","CREATION_TIME":"Creation time","FOLD":"折疊","UNFOLD":"展開","PLATFORM":"Platform","CLUSTER_MANAGEMENT":"Cluster Management","CLUSTER_DESC":"Unified management of multiple clusters and their basic resources, components, and application resources.","ACCESS_CONTROL_DESC":"對平台中的企業空間、帳號、以及角色權限進行統一管理","APP_STORE_MANAGEMENT_DESC":"對雲原生應用的上架、下架以及審核等應用全生命週期的統一管理","PLATFORM_SETTINGS_DESC":"客製化平台設置,如平台基本資訊、紀錄收集器等","NOTIFICATION_MANAGEMENT":"通知管理","NOTIFICATION_CHANNELS":"Notification Channels","NOTIFICATION_CHANNELS_DESC":"Notify users through multiple channels when resource metrics meet conditions configured in rule groups.","MAIL_TITLE":"郵箱","MAIL_DESC":"Send notifications to email addresses.","INVALID_PORT_DESC":"Please enter a valid port number.","ENTER_PORT_NUMBER":"請輸入端口","ALERTING_NAME":"Alert name","ALERTING_SEVERITY":"Alert severity","ADDRESS_EMPTY_DESC":"Please enter an address.","EMAIL_EMPTY_DESC":"請輸入郵箱","SERVER_SETTINGS":"服務器设置","RECIPIENT_SETTINGS":"接收設置","FILTER_CONDITIONS":"Filter Conditions","CONTAINER":"Container","VALUES":"Values","CONDITION_OPERATOR":"操作者","NOTIFICATION_CONDITION_SETTING_TIP":"The Contain and Not contain operators require one or more values. You can press Enter to set multiple values.","NOTIFICATION_CONDITION_SETTINGS_DESC":"Set the system to send only alerts that meet the conditions.","CONTAIN":"Contain","NOT_CONTAIN":"Not contain","EXIST":"Exist","NOT_EXIST":"Not exist","PATTERN_TAG_INVALID_TIP":"Invalid label. The label can contain only uppercase and lowercase letters, numbers, hyphens (-), underscores (_), and dots (.), and must begin and end with an uppercase or lowercase letter or number.","PATTERN_TAG_VALUE_INVALID_TIP":"Invalid value. The value can only contain uppercase and lowercase letters, numbers, hyphens (-), underscores (_) and dots (.) and must begin and end with an uppercase or lowercase letter or number and be a maximum of 63 characters.","INVALID_NOTIFICATION_CONDITION":"請填寫正確的通知條件。","SEND_TEST_MESSAGE":"發送測試信息","SEND_TEST_MESSAGE_DESC":"Send a test message to verify that the notification channel is working properly.","SEND_TEST_MESSAGE_SUCCESS_DESC":"Verified successfully. A test message has been sent.","SMTP_SERVER_ADDRESS":"SMTP 服務器地址","USE_SSL_SECURE_CONNECTION":"Use SSL secure connection","SENDER_EMAIL":"發件人郵箱","INVALID_EMAIL":"郵箱格式不合法","INVALID_ADDRESS_DESC":"Please enter a valid address.","MAX_EAMIL_COUNT":"You can add a maximum of {count} emails.","SMTP_USER":"SMTP Username","SMTP_PASSWORD":"SMTP Password","ENTER_PASSWORD_TIP":"Please enter a password.","ENTER_RECIPIENT_EMAIL_DESC":"Please add at lease one email address.","INVALID_EMAIL_ADDRESS_DESC":"Incorrect email format.","SMTP_USER_EMPTY_DESC":"Please enter an SMTP username.","ADDED_SUCCESS_DESC":"添加成功。","POD":"容器組","UPDATE_SUCCESSFUL":"Updated successfully.","FEISHU":"Feishu","FEISHU_TITLE":"Feishu","FEISHU_DESC":"Send notifications to Feishu users.","PLEASE_ENTER_APP_ID":"Please enter an app ID.","USER_ID":"User ID","DEPARTMENT_ID":"Department ID","FEISHU_RECEIPIENT_SETTINGS_DESC":"To receive notifications, please set at least one user ID or department ID.","FEISHU_SECRET":"保密字典","DINGTALK_TITLE":"DingTalk","DINGTALK":"DingTalk","DINGTALK_DESC":"Send notifications to DingTalk users.","PLEASE_ENTER_APP_KEY":"Please enter an app key.","PLEASE_ENTER_APP_SECRET":"Please enter an app secret.","PLEASE_ENTER_CHAT_ID":"Please enter a chat ID.","PLEASE_ENTER_WEBHOOK_URL":"Please enter a webhook URL.","CHAT_SETTINGS":"Chat Settings","CHAT_ID_TIP":"Contact the DingTalk administrator to obtain the chat ID.","DINGTALK_SETTING_TIP":"Please set up a chat or group chatbot.","ENTER_CHAT_ID_DESC":"Please enter a chat ID.","MAX_CID_COUNT":"You can add a maximum of {count} chat IDs.","CHAT_ID_EXISTS":"The chat ID already exists. Please add another chat ID.","CHATBOT_SETTINGS":"Chatbot Settings","KEYWORDS_LIST":"Added Keywords","DINGTALK_CHATBOT_SECURITY_TIP":"Please enter a secret or keyword.","ENTER_KEYWORD_DESC":"請輸入關鍵字。","MAX_KEYWORD_COUNT":"You can add a maximum of {count} keywords.","KEYWORD_EXISTS":"The keyword already exists. Please add another keyword.","EMPTY_KEYWORDS_DESC":"No keyword is added.","WECOM":"企業微信","WECOM_TITLE":"企業微信","WECOM_DESC":"Send notifications to WeCom users.","RECIPIENT_SETTINGS_TIP":"Enter at least one user ID, department ID, or tag ID.","ENTER_WECOM_CORP_ID_DESC":"Please enter a corp ID.","ENTER_WECOM_AGENT_ID_DESC":"Please enter an app agent ID.","ENTER_WECOM_SECRET_DESC":"Please enter an app secret.","TOUSER_LIST":"Added User IDs","EMPTY_TOUSER_DESC":"No user ID is added.","ENTER_TOUSER_TIP":"Please enter a user ID.","TOUSER_EXISTS":"The user ID already exists. Please enter another user ID.","MAX_TOUSER_COUNT":"You can add a maximum of {count} user IDs.","TOPARTY_LIST":"Added Department IDs","EMPTY_TOPARTY_DESC":"No department ID is added.","ENTER_TOPARTY_TIP":"Please enter a department ID.","TOPARTY_EXISTS":"The department ID already exists. Please enter another department ID.","MAX_TOPARTY_COUNT":"You can add a maximum of {count} department IDs.","TOTAG_LIST":"Added Tag IDs","EMPTY_TOTAG_DESC":"No tag ID is added.","ENTER_TOTAG_TIP":"Please enter a tag ID.","TOTAG_EXISTS":"The tag ID already exists. Please enter another tag ID.","MAX_TOTAG_COUNT":"You can add a maximum of {count} tag IDs.","ATUSERS_LIST":"已添加的 User ID","EMPTY_ATUSERS_DESC":"沒有已添加的 User ID。","WHIZARD_NOTIFICATION.PHONE_NUMBER":"手機號","ATMOBILES_LIST":"已添加的手機號","EMPTY_ATMOBILES_DESC":"沒有已添加的手機號。","SLACK":"Slack","SLACK_TITLE":"Slack","SLACK_DESC":"Send notifications to Slack users.","SLACK_TOKEN":"Slack Token","SLACK_TOKEN_DESC":"Please enter a Slack token.","SLACK_CHANNEL":"Slack Channel","CHANNEL_SETTINGS":"Slack Channel Settings","ADDED_CHANNELS":"Added Slack Channels","EMPTY_CHANNEL_DESC":"No Slack channel is added.","ADD_CHANNEL_TIP":"Please add a Slack channel.","CHANNEL_EXISTS":"The Slack channel already exists. Please add another Slack channel.","MAX_CHANNEL_COUNT":"You can add a maximum of {count} Slack channels.","WEBHOOK":"Webhook","WEBHOOK_TITLE":"Webhook","WEBHOOK_DESC":"Send notifications to a webhook.","WEBHOOK_URL_DESC":"Please enter a webhook URL.","AUTHENTICATION_TYPE":"Authentication Type","AUTHENTICATION_TYPE_DESC":"Please select an authentication type.","SKIP_TLS_VERFICATION":"Skip TLS verification (insecure)","BASIC_AUTH":"Basic authentication","NO_AUTH":"無須認證","BEARER_TOKEN":"Bearer token","TOKEN":"Token","WEBHOOK_USERNAME_EMPTY_DESC":"請輸入用戶名稱","WEBHOOK_PASSWORD_EMPTY_DESC":"Please enter a password.","WEBHOOK_TOKEN_EMPTY_DESC":"Please enter a token.","PLATFORM_INFO_DESC":"Overview of the platform information. You can view and customize the platform information.","HOW_TO_MODIFY_PLATFORM_INFO":"如何修改平台資訊?","PLATFORM_INFORMATION":"平台資訊","PLATFORM_DESCRIPTION":"平台描述","PLATFORM_TITLE":"平台標題","PLATFORM_ADDRESS":"平台地址","PLATFORM_SETTINGS":"平台設置","ADD_SERVICE":"添加服務","ADD_ROUTE":"Add Route","SERVICE_ADDED_SUCCESSFULLY":"The service was added successfully.","WORKLOAD_TYPE_DEPLOYMENTS":"部署","WORKLOAD_TYPE_DAEMONSETS":"守護進程集","WORKLOAD_TYPE_STATEFULSETS":"有狀態副本集","TRAFFIC_MONITORING":"流量監控","TRAFFIC_MONITORING_UNAVAILABLE_DESC":"應用長時間未收到請求,請訪問應用後嘗試流量治理","TRAFFIC_ENTRY":"流量入口","NO_DATA":"暫無數據","REFRESH":"刷新","SUCCESS_RATE":"Success rate","TRAFFIC_RPS":"Traffic (RPS)","BANDWIDTH":"Bandwidth","HTTP_INBOUND_TRAFFIC":"HTTP Inbound Traffic","HTTP_OUTBOUND_TRAFFIC":"HTTP Outbound Traffic","TRAFFIC_POLICIES":"Traffic Policies","LOAD_BALANCING":"Load Balancing","LOAD_BALANCING_ALGORITHM":"Load Balancing Algorithm","LB_UNSPECIFIED":"未指定","LB_LEAST_REQUEST":"最少請求","LB_PASSTHROUGH":"透過","LB_ROUND_ROBIN":"輪詢","LB_LEAST_CONN":"最少連接","LB_RANDOM":"隨機","LB_ALG_DESC":"Round robin: Distributes client requests to backends in rotation.
    Least connection: Randomly selects two healthy backends and sends client requests to the one with fewer connections.
    Random: Sends client requests to a backend randomly selected from all healthy backends.","HASH_BASED_ON_HTTP_HEADER":"Hash based on HTTP header","HASH_BASED_ON_HTTP_COOKIE":"Hash based on HTTP cookie","HASH_BASED_ON_SOURCE_IP_ADDRESS":"Hash based on source IP address","HTTP_HEADER":"HTTP Header","HTTP_COOKIE":"HTTP Cookie","CONNECTION_POOL":"Connection Pool","CONNECTION_POOL_TIP":"Creates a fixed number of connection objects for the application and stores them in a connection pool for reuse. A connection object is retrieved from the connection pool for each request and returned to the pool after use.","MAXIMUM_CONNECTIONS":"Maximum Connections","MAXIMUM_CONNECTIONS_DESC":"Maximum of number of HTTP1 or TCP connections to a destination backend.","MAXIMUM_REQUESTS_PER_CONNECTION":"Maximum Requests per Connection","MAXIMUM_REQUESTS_PER_CONNECTION_DESC":"Maximum number of requests per connection to a backend.","TRAFFIC_MONITORING_MAXIMUM_RETRIES":"最大重試次數","TRAFFIC_MONITORING_MAXIMUM_RETRIES_DESC":"Maximum number of retries for requests.","CONNECTION_TIMEOUT":"Connection Timeout","CONNECTION_TIMEOUT_DESC":"TCP connection timeout period.","MAXIMUM_REQUESTS":"Maximum Requests","MAXIMUM_PENDING_REQUESTS":"Maximum Pending Requests","CIRCUIT_BREAKER":"Circuit Breaker","CIRCUIT_BREAKER_DESC":"If a service cannot be accessed and the specified criteria are met, the ciruit breaker marks the service as unavailable and returns error response to clients directly for a specified period of time.","CONSECUTIVE_FIVEXX_ERRORS":"Consecutive 5XX Errors","CONSECUTIVE_FIVEXX_ERRORS_DESC":"Number of 5XX errors before a backend is ejected from the connection pool.","INSPECTION_INTERVAL_S":"Inspection Interval (s)","INSPECTION_INTERVAL_S_DESC":"Interval between two backend inspections.","MAXIUM_EJECTION_RATIO":"Maximum Ejection Ratio (%)","MAXIUM_EJECTION_RATIO_DESC":"Maximum percentage of backends that can be ejected.","BASE_EJECTION_TIME_S":"Base Ejection Time (s)","BASE_EJECTION_TIME_S_DESC":"Maximum ejection duration.","UPDATED_AT_VALUE_SCAP":"Updated at {value}","METHOD":"Method","TRAFFIC_MANAGEMENT_UNAVAILABLE":"Traffic Management Unavailable","APPLICATION_GOVERNANCE_NOT_ENABLED":"Please enable Application Governance.","CREATE_GRAYSCALE_RELEASE_TASK":"Create Grayscale Release Task","GRAYSCALE_RELEASE_DESC":"Grayscale release represents an important method of application iteration in the production environment. You can choose different release methods for the smooth transition as you upgrade your applications to a new version.","NO_GRAYSCALE_RELEASE_TASK_FOUND":"No Grayscale Release Task Found","NO_GRAYSCALE_RELEASE_TASK_FOUND_DESC":"請創建一個灰度發布任務。","TYPE_SERVICE_DEPLOYMENT":"Type: stateless service (deployment)","TYPE_SERVICE_STATEFULSET":"Type: stateful service (statefulset)","TRACING":"Tracing","TRACING_NO_DATA_DESC":"請嘗試其它查詢條件","NUM_SPAN_SI":"{num} span","NUM_SPAN_PL":"{num} spans","NUM_ERROR_SI":"{num} error","NUM_ERROR_PL":"{num} errors","LAST_NUM_RECORDS":"最近 {num} 條紀錄","PROCESS":"Process","SERVICES_AND_OPERATIONS":"Services & Operations","TRACING_UNAVAILABLE":"Tracing Unavailable","CALLED_SERVICES":"Called Services","CALLED_DEPTH":"Call Depth","COMPOSED_APP_PL":"自制應用","NO_COMPOSED_APP_FOUND":"No Composed App Found","COMPOSED_APP_EMPTY_DESC":"通過資源編排的方式發佈服務構建應用(支持應用治理功能)","STATEFUL_SERVICE":"有狀態服務","STATELESS_SERVICE":"無狀態服務","CREATE_COMPOSED_APP":"構建應用","SAVE_FORM_TIP":"請先保存目前表單","YAML_FILE":"YAML File","CREATE_BY_YAML_DESC":"Customize the settings in the YAML file.","APPLICATION_GOVERNANCE":"應用治理","VERSION_DESC":"最長 16 個字元,只能包含小寫字母及數字","APPLICATION_GOVERNANCE_DESC":"Enable Application Governace to use the Traffic Monitoring, Grayscale Release, and Tracing features for the app.","APP_BASIC_INFORMATION_DESC":"ˇ對應用的名稱描述資訊等基本的資訊定義","APP_SELECT_SERVICE_TYPE_DESC":"Create a stateless or stateful Service.","STATEFUL_SERVICE_DESC":"有狀態服務用來管理有狀態應用,可以保證部署和擴容縮容的順序,提供了穩定的持久化儲存和網路標識,有序伸縮等","STATELESS_SERVICE_DESC":"容器服務中最常用的一種服務,通過定義容器組模板來控制容器組狀態,包括滾動升級和回滾","APPLICATION_SERVICE_DESC":"根據應用中服務類型的不同設置不同類型的服務組件,支持無狀態服務和有狀態服務","APP_CREATE_SERVICE_DESC":"Create a service for the app.","ROUTE_SETTINGS":"Route Settings","ROUTING_RULES":"路由規則","ROUTE_SETTINGS_DESC":"可以設置應用的外網訪問規則 (Ingress)","ADD_ROUTE_SUCCESS":"The route was added successfully.","CURRENT_APP_SETTINGS_READONLY":"當前應用配置","TARGET_APP_SETTINGS":"Target App Settings","TARGET_APP_VERSION":"Target App Version","CURRENT_APP_VERSION":"當前應用版本","EDIT_APP_SETTINGS":"Edit App Settings","UPDATED_TIME":"Updated at {value}","APP_TEMPLATE":"App Template","NO_APP_DESC_FOUND":"該應用沒有說明文件","TEMPLATE_BASED_APP_PL":"Template-Based Apps","APPLICATIONS_DESC":"應用為用戶提供完整的業務功能,由一個或多個特定功能的組件組成。","APP_PL":"應用","APP_TYPES_Q":"應用類型","APP_TYPES_A":"KubeSphere 支持來自於應用商店和應用倉庫的應用部署(基於 Helm),同樣也支持自制應用(Application CRD)。","HOW_TO_USE_APP_GOVERN_Q":"如何使用應用治理?","HOW_TO_USE_APP_GOVERN_A":"使用應用治理需要創建自制應用並對每項服務開啟服務治理功能","DEPLOY_SAMPLE_APP":"部署範例應用","NO_TEMPLATE_BASED_APP_FOUND":"No Template-Based App Found","TEMPLATE_BASED_APP_EMPTY_DESC":"Please create an app from the KubeSphere App Store or an app template.","APP":"應用","VERSION":"版本","CREATING":"創建中","UPGRADING":"Created","DELETING":"刪除中","CREATE_APP":"部署新應用","CREATE_APP_DESC":"輕量化、可移植、自包含的軟體封裝技術,使應用可以在幾乎任何地方以相同的方式運行。","FROM_APP_STORE":"來自應用商店","FROM_APP_TEMPLATE":"來自應用模板","FROM_APP_STORE_DESC":"來自KubeSphere官方應用商店,提供高質量應用和簡易的部署方式","SELECT_APP_REPOSITORY":"Select app repository","CURRENT_WORKSPACE":"來自企業空間","FROM_APP_TEMPLATE_DESC":"來自於企業空間的自制應用模板以及應用倉庫中添加的第三方 Helm 應用模板","APP_TEMPLATES_MODAL_DESC":"應用模板來自於企業空間和第三方的 Helm 應用模板,支持一鍵部署並可通過視覺化的方式在 KubeSphere 中展示並提供部署及管理的功能","APP_LOW":"應用","CRONJOBS":"CronJobs","CRONJOB_DESC":"CronJobs manages Jobs on a time-based schedule and can be used to perform periodic or recurring tasks.","CRONJOB_PAUSED":"已暫停","CRONJOB_RUNNING":"運行中","CRONJOB_FAILED":"失敗","SCHEDULE":"Schedule","ENTER_SCHEDULE_TIP":"請选择定時計畫。","CRONJOB_CRON_DESC":"Set a schedule for the CronJob. KubeSphere uses UTC by default and you need to adjust the schedule according to your time zone.","MAXIMUM_DELAY":"Maximum Start Delay (s)","SUCCESSFUL_JOBS_RETAINED":"保留完成任务數","FAILED_JOBS_RETAINED":"保留失敗任务數","CONCURRENCY_POLICY":"並發策略","MAXIMUM_DELAY_DESC":"Deadline for starting the Job if the scheduled run is missed for any reason.","CONCURRENCY_POLICY_DESC":"Select a concurrency policy of a Job created by the CronJob.","FAILED_JOBS_RETAINED_DESC":"允許保留的失敗的任務個數。","SUCCESSFUL_JOBS_RETAINED_DESC":"允許保留的成功的任務個數。","RUN_JOBS_CONCURRENTLY":"Run Jobs concurrently","SKIP_NEW_JOB":"Skip new Job","SKIP_OLD_JOB":"Skip old Job","STRATEGY_SETTINGS":"Strategy Settings","MAXIMUM_RETRIES":"最大重試次數","MAXIMUM_RETRIES_DESC":"Maximum number of retries before the Job is marked as failed. The default value is 6.","PARALLEL_PODS_DESC":"Number of Pods that run concurrently.","COMPLETE_PODS_DESC":"Number of Pods that complete successfully required for the Job to be marked as complete.","MAXIMUM_DURATION_DESC":"Maximum duration of the Job. The Job is terminated when it reaches the specified deadline.","PARALLEL_PODS":"並行數","COMPLETE_PODS":"完成數","MAXIMUM_DURATION":"退出超時時限(s)","RESTART_POLICY":"重啟策略","RESTART_POLICY_DESC":"Set the Pod restart policy.","CRONJOB_PL":"定時任務","CRONJOB_LOW":"定時任務","REVISION_RECORDS_DESC":"對工作負載的資源模板進行修改後會生成一個新的紀錄並重新調度 容器組(Pod)進行版本的疊代,預設保存10個最近的版本。您可以根據修改紀錄進行重新部署。","ENVIRONMENT_VARIABLE":"環境變量","CONTAINER_SETTINGS_DESC":"對容器的名稱及容器的計算資源進行設置","PORT_SETTINGS_DESC":"設置容器的訪問策略","HEALTH_CHECKER_DESC":"根據用戶需要,定時檢查容器健康狀況。","STARTUP_COMMAND":"啟動命令","STARTUP_COMMAND_DESC":"在預設情况下,鏡像會運行預設命令,如果想運行特定命令或重寫鏡像預設值。","CONTAINER_COMMAND_DESC":"容器的啟動命令參數,預設使用打包時使用的啟動命令, 如需多個請以 \",\" 分隔","CONTAINER_ARGUMENT_DESC":"容器的啟動命令參數, 如需多個請以 \",\" 分隔","CONTAINER_ENVIRONMENT_DESC":"添加容器的環境變量","PROBE_COMMAND_DESC":"如需多個請以 \",\" 分隔","IGNORE_CERT_WARN_DESC":"忽略驗證證書,可能會導致帳戶密碼被欺騙。","CERT_ERROR":"發現證書錯誤,是否忽略證書驗證並再次","ROLL_BACK":"回退","CURRENT_REVISION_RECORD":"目前修改记录","TARGET_REVISION_EMPTY_DESC":"請選擇回退版本","TARGET_REVISION_RECORD":"回退版本","CONFIGURE_AUTOSCALING_DESC":"根據 CPU 和記憶體使用情況自動伸縮副本。如果同時指定 CPU 和記憶體,則滿足任一條件後即添加或刪除副本","EDIT_AUTOSCALING":"Edit Autoscaling","TARGET_CPU_USAGE_UNIT":"CPU 目標使用率","AUTOSCALING":"彈性伸縮","RESOURCE_NAME":"資源名稱","TARGET_CPU_USAGE_DESC":"當 CPU 使用率超過或低於此目標值時,將添加或刪除副本","TARGET_MEMORY_USAGE_DESC":"當記憶體使用量超過或低於此目標值時,將添加或刪除副本","MINIMUM_REPLICAS_DESC":"彈性伸縮可以設置的副本數量的下限","MAXIMUM_REPLICAS_DESC":"副本數量的上限","TARGET_MEMORY_USAGE_UNIT":"記憶體目標使用量","MINIMUM_REPLICAS":"最小副本數","MAXIMUM_REPLICAS":"最大副本數","EDIT_SETTINGS":"編輯配置模板","FROM_CONFIGMAP":"From configmap","FROM_SECRET":"From secret","BATCH_REFERENCE":"Batch Reference","BATCH_REFERENCE_DESC":"Reference multiple keys in a configmap or secret.","DESELECT_ALL":"Deselect all","KEY_PL":"Keys","RULE_NOT_COMPLETE":"請填寫完整策略","REVISION_RECORDS":"版本記錄","CONFIG_FILE":"配置文件","COMPARE_WITH":"與上一個版本 {version} 的對比","REPLICAS_DESIRED":"期望副本数","REPLICAS_CURRENT":"實際運行副本","ADJUST_REPLICAS":"立即生效?","REPLICAS_SCALE_NOTIFY_CONTENT":"您已將工作負載的副本數調整為 {num}, 您也可以繼續調整副本數量,或者您可以使它立即生效。","REPLICAS_SCALE_NOTIFY_CONFIRM":"立即生效({seconds}s)","REPLICAS_SCALE_NOTIFY_CANCEL":"放棄更改","TARGET_MEMORY_USAGE":"目標使用量","TARGET_CPU_USAGE":"目標使用率","TARGET_CURRENT":"{target} (Current: {current})","NOT_ENABLE":"{resource} 暫未啟用","CONTAINER_LOG_NOT_ENABLED":"Container Log is not enabled.","BUILD_LOG":"Build Log","TASK":"Task","IN_PROGRESS":"in progress","IMAGE_BUILDING":"Image Building","HAS_FAILED":"has failed","VIEW_ALL_REPLICAS":"查看所有副本","SHOW_SELECTED_ONLY":"僅顯示已選","MONITORING_SELECT_LIMIT_MSG":"最多可以選擇 10 個資源","MONITORING_ALERT_DESC":"目前監控最多可顯示五個副本的運行狀態監控,當超過五個副本時,可以點擊具體監控項目的「查看全部副本」,查看更多的副本監控。","CURRENT_VALUE":"Current: {value}","ENVIRONMENT_VARIABLE_PL":"環境變量","EVENT_AGE":"發生時間","EVENT_AGE_DATA":"{lastTime}
    ({count} times over {duration})","EVENT_AGE_DATA_TWICE":"{lastTime}
    (twice over {duration})","SOURCE":"來源","HPA_SET_TIP":"已設置彈性伸縮策略","WORKLOAD_EMPTY_DESC":"工作負載 (Workload) 通常是訪問服務的實際載體, 也是對節點紀錄收集、監控等系統應用的實際運行載體,是對一組容器組 (Pod) 的抽象模型。","INVALID_IMAGE":"鏡像無效。","INVALID_NAME_DESC":"Invalid name. The name can contain only lowercase letters, numbers, and hyphens (-), and must start and end with a lowercase letter or number. The maximum length is 63 characters.","NO_IMAGE_FOUND":"沒有找到此鏡像","CONTAINER_EMPTY_DESC":"Please add at least one worker container.","RESOURC_QUOTAS_UNSET":"Resource Quotas Unset","INSUFFICENT_RESOURCES":"Insufficent Resources","REMAINING_QUOTAS":"Remaining Quotas","ENVIRONMENT_INVALID_TIP":"The key of an environment variable can contain only letters, numbers, underscores (_), hyphens (-), and periods (.), and must not start with a number.","ENVIRONMENT_CANNOT_BE_EMPTY":"Please set a key for the environment variable.","WORKLOAD_PORT_NAME_DESC":"The port name can contain only lowercase letters, numbers and hyphens (-), and must start with a lowercase letter and end with a lowercase letter or number. The maximum length is 15 characters.","MAX_EXTRA_PODS_DESC":"升級過程中「允許超出副本數量的容器組」的最大數量或百分比","MAX_EXTRA_PODS":"容器組最大超出數量","AVAILABLE":"閒置","IN_USER":"使用中","ACCESS_MODE_SCAP":"訪問模式","PVC_OR_TEMPLATE_EMPTY":"You have enabled Collect Logs on Volumes. Please add at least one persistent volume, temperary volume, or persistent volume claim template and specify the path of container logs.","PVC_EMPTY":"You have enabled Collect Logs on Volumes. Please add at least one persistent volume or temperary volume and specify the path of container logs.","PROJECT_COLLECT_SAVED_DISABLED_DESC":"Please contact the project administrator to enable disk log collection in Project Settings > Advanced Settings.","COLLECT_LOGS_ON_VOLUMES_DESC":"After you add a volume (ReadAndWrite mode), you can collect logs inside the volume. When you enable disk log collection, the Filebeat image will be used as a sidecar pattern and injected into the Pod to collect logs.","CONTAINER_LOG_PATH":"容器紀錄相對路徑","CONTAINER_LOG_PATH_TIP":"容器紀錄相對路徑是從容器掛載路徑開始的路徑,可以 glob 方式給出,多組時以英文逗号分隔。例如當容器掛載路徑為 /data 時,容器紀錄相對路徑配置為 log/*.log,表示匹配 /data/log 目錄下所有 .log 後缀文件。
    若需要匹配 /data/log 目錄及其子目錄下的所有 .log 後缀文件,可將容器紀錄相對路徑配置為 log/**/*.log","RECREATE_CONFIRM_DESC":"您即將重新部署工作負載 {resource} ({type}) , 容器組將根據更新策略進行重新部署,您的業務可能會被暫時中斷。","NO_WORKLOAD_RELATED_RESOURCE_DESC":"No resource related to the workload is found.","SELECT_ALL":"選擇全部","DELETE_WORKLOAD_DESC_SI":"You are about to delete the workload {resource}.
    Do you want to also delete the resource related to the workload?","DELETE_WORKLOAD_DESC_PL":"You are about to delete the workloads {resource}.
    Do you want to also delete the resources related to the workloads?","DELETE_WORKLOAD":"Delete Workload","DELETE_MULTIPLE_WORKLOADS":"Delete Multiple Workloads","DELETE_APP_RESOURCE_TIP":"The resource is managed by {app}, which may affect the normal use of this app if the resource is deleted. Please enter the {type} name {resource} to make sure you understand the risks associated with the operation.","STOP_APP_RESOURCE_TIP":"The resource is managed by {app}, which may affect the normal use of this app if the resource is stopped. Please enter the {type} name {resource} to make sure you understand the risks associated with the operation.","MORE":"更多操作","VIEW_YAML":"查看 YAML","JOB_PL":"Jobs","JOB_DESC":"Jobs are used to perform short-lived, one-off tasks. A Job creates one or more Pods and ensures that a specific number of Pods successfully terminate.","JOB_EMPTY_DESC":"Please create a Job.","JOB_COMPLETED":"已完成","JOB_FAILED":"失敗","JOB_RUNNING":"運行中","LAST_RUN_TIME":"Last Run Time","RESTART_POLICY_NEVER_DESC":"Re-create pod","RESTART_POLICY_ONFAILURE_DESC":"On failure(容器組出現故障時内部重啟容器)","RERUN":"重新執行","JOB":"任務","JOB_LOW":"Job","QOS_CLASS":"QoS Class","NODE_NAME":"主機名稱","POD_IP_ADDRESS":"容器組 IP 地址","JOB_UNFINISHED":"Unfinished","TERMINATED":"Terminated","SCHEDULED_TO_NODE":"調度至 {value}","SCHEDULING_NOT_SUCCESSFUL":"Scheduling Not Successful","SCHEDULING_INFORMATION":"調度資訊","SCHEDULING_RESULT":"節點調度資訊","POD_SCHEDULING_METHOD":"容器組如何被調度至節點?","POD_ASSIGNED_DESC":"根據容器組中容器設置的請求值 (即 Request) 作為容器調度時資源分配的判斷依據。只有節點上可分配總量 ≥ 容器請求值時,才允許將容器調度到該節點。","STATUS_INFORMATION":"狀態分析(Conditions)","WORKLOAD_CONDITION_AVAILABLE":"可用性(Available)","WORKLOAD_CONDITION_PROGRESSING":"創建進度(Progressing)","NOT_SUCCESSFUL":"Not successful","CURRENT_STATUS":"目前階段(phase)","POD_CONDITION_INITIALIZED":"Initialized","POD_CONDITION_INITIALIZED_DESC":"所有 init 容器都已成功啟動","POD_CONDITION_READY":"開始運行(Ready)","POD_CONDITION_READY_DESC":"容器組已經開始運行,並可以通過服務進行訪問","POD_CONDITION_CONTAINERSREADY":"容器準備就緒(ContainersReady)","POD_CONDITION_CONTAINERSREADY_DESC":"容器組内容器準備就緒.","POD_CONDITION_PODSCHEDULED":"調度成功(PodScheduled)","POD_CONDITION_PODSCHEDULED_DESC":"容器組已經被安排到一個節點中","POD_DESC":"容器組 (Pod) 是 Kubernetes 應用程式的基本執行單元,是您創建或部署的 Kubernetes 對象模型中最小和最簡單的單元。","POD_EMPTY_DESC":"容器組 (Pod) 是 Kubernetes 應用程式的基本執行單元,是您創建或部署的 Kubernetes 對象模型中最小和最簡單的單元。","DOMAIN_NAME_VALUE":"Domain Name: {value}","PATH_VALUE":"路徑:{value}","RULES":"規則","ROUTE_PATH_VALUE":"路徑:{value}","ROUTE_SERVICE_VALUE":"服務:{value}","ROUTE_PORT_VALUE":"端口:{value}","SERVICE_COLON":"Service: ","ACCESS_SERVICE":"訪問服務","UNABLE_TO_ACCESS":"無法訪問服務","UNABLE_TO_ACCESS_TIP":"Make sure that domain name resolution policies have been configured in your DNS server or the hosts file of your client machine.","CERTIFICATE_VALUE":"Certificate: {value}","PATH_EXIST":"PATH 重複,請重新輸入。","ENDPOINT":"Endpoint","SESSION_AFFINITY":"會話親和性","EDIT_EXTERNAL_ACCESS":"編輯外網訪問","EDIT_MONITORING_EXPORTER":"Edit Monitoring Exporter","EDIT_SERVICE":"編輯服務","ACCESS_NONE_TIP":"不提供外網訪問。","EXTERNAL_SERVICE":"外部服務","COLLECTION_INTERVAL_MIN":"Collection Interval (min)","COLLECTION_INTERVAL_MIN_DESC":"Interval in minutes between two metric collection operations. The default value is 1.","COLLECTION_TIMEOUT_DESC":"Timeout interval in seconds of each collection operation. The default value is 10.","SELECT_AUTHENTICATION_METHOD":"選擇認證方式","SELECT_AUTHENTICATION_METHOD_DESC":"Select the authentication method used during metric collection.","NO_AUTHENTICATION_TCAP":"No Authentication","NO_AUTHENTICATION_TIP":"Authentication is not used during metric collection.","CREATE_A_NEW_SECRET":"建創新保密字典","REFRESH_SECRETS":"刷新保密字典。","CERTIFICATE_AUTHORITY":"Certificate Authority","SERVER_NAME":"Server Name","TLS_SETTINGS_TCAP":"TLS Settings","BEARER_TOKEN_TCAP":"Bearer Token","BASIC_AUTHENTICATION_TCAP":"Basic Authentication","EXTERNAL_IP_ADDRESS":"外部 IP 地址","MONITORING_EXPORTER":"監控導出器","MONITORING_EXPORTER_VALUE":"Monitoring exporter: {value}","PORT_PL":"通訊埠","SERVICE_NODE_PORT_DESC":"如果您目前的網路與集群節點在同一網路内,那麼您可以透通<集群 IP 地址>:進行訪問,或者通過<節點 IP 地址>:進行訪問。","IMAGE_BUILDING_FAILED":"Image building failed","IMAGE_BUILDING_SUCCESSFUL":"Image building successful","BUILDING_IMAGE":"Building image","SERVICE_MONITORING_EXPORTER":"Service Monitoring Exporter","EXPORTER_SERVICE_PORTS":"Exporter Service Ports","SCRAPE_INTERVAL_MIN":"Scrape Interval (Min)","SERVICE_TYPES_Q":"服務的類型","SERVICE_TYPES_A":"服務分為無狀態服務 (Virtual Service + Depolyment) 及有狀態服務 (Headless Service +Statefulset), 無狀態服務中多個副本可以共享一個儲存卷、有狀態服務需要擁有自己獨立的儲存卷","SCENARIOS_FOR_SERVICES_Q":"無狀態服務和有狀態服務的使用場景?","SCENARIOS_FOR_SERVICES_A":"無狀態服務適用於不需要數據持久化的場景,並且多個實例對統一請求的響應式相同的場景(例如 Nginx、Tomcat 等);有狀態服務適用於需要數據儲存功能的服務、或者指多線程類型的服務,列隊等 (mysql 資料庫、kafka、zookeeper 等)。","SERVICE_TYPE":"服務類型","SERVICE_LIST":"列表","SERVICE_TYPE_STATEFULSERVICE":"有狀態服務","SERVICE_TYPE_STATELESSSERVICE":"無狀態服務","SERVICE_TYPE_EXTERNALSERVICE":"外部服務","HEADLESS":"Headless","EXTERNALNAME":"ExternalName","CREATE_SERVICE_DESC":"Select a Service creation method.","SELECT_SERVICE_TYPE_DESC":"Create a stateless or stateful Service, or map a Service to an external Service.","SERVICE_FROM_CODE":"通過代碼構建新的服務","SERVICE_FROM_ARTIFACT":"通過成品構建新的服務","SERVICE_FROM_CODE_DESC":"您可以將已有的代碼通過 Source to Image 的方式構建成鏡像並部署","SERVICE_FROM_ARTIFACT_DESC":"您可以將已有成品構建成新的鏡像並完成部署","CUSTOMIZE_SERVICE":"Customize Service","CUSTOMIZE_SERVICE_DESC":"您可以通過指定工作負載或者編輯配置 (Yaml) 來創建服務","PORT_INPUT_DESC":"The port name already exists. Please enter another name.","PORT_NAME_DESC":"The port name can contain only lowercase letters, numbers, and hyphens (-) and must begin and end with a lowercase letter or number. The maximum length is 63 characters.","CREATE_EXTERNAL_SERVICE_DESC":"通過返回 CNAME 和它的值,可以將服務映射到 externalName 字段的内容","CREATE_EXTERNAL_SERVICE":"Create External Service","EXTERNAL_SERVICE_ADDRESS_EMPTY_DESC":"請輸入 ExternalName。","EXTERNAL_SERVICE_ADDRESS":"External Service Address","EXTERNAL_SERVICE_ADDRESS_DESC":"Enter the domain name of an external Service.","JAVA":"Java","NODEJS":"Node.js","PYTHON":"Python","LANGUAGE_TYPE_VALUE":"語言類型:{value}","CONTAINER_SETTINGS":"容器設置","ARTIFACT_TYPE_VALUE":"Artifact Type: {value}","BINARY":"Binary","SPECIFY_WORKLOAD_TO_CREATE_SERVICE":"Specify Workload to Create Service","EDIT_YAML_TO_CREATE_SERVICE":"Edit YAML to Create Service","SPECIFY_WORKLOAD_DESC":"通過已有的容器組來創建服務","NO_RELATED_RESOURCE_FOUND":"沒有關聯的資源","NO_SERVICE_RELATED_RESOURCE_DESC":"目前服務下沒有關聯的資源","DELETE_SERVICE_DESC":"You are about to delete the service(s) {resource}. Please confirm whether to delete the associated resource?","DELETE_SERVICE_DESC_PL":"您即將刪除服務 {resource},請您進行確認是否刪除關聯資源?","DELETE_SERVICE_DESC_SI":"You are about to delete the service {resource}.
    Do you want to also delete the following resource related to the service?","DELETE_SERVICE":"Delete Service","DELETE_MULTIPLE_SERVICES":"Delete Multiple Services","SERVICE_TOPOLOGY":"Service Topology","AUTO_REFRESH":"自动","POD_COUNT_VALUE":"Pods: {value}","SELECTOR":"Selector","RECREATE":"重新部署","RECREATE_SUCCESS_DESC":"重新部署成功","STATEFULSETS_LOW":"有狀態副本集","STATEFULSETS_PL":"有狀態副本集","PARTITION_ORDINAL_EMPTY":"Please set a ordinal for dividing Pod replicas.","CONFIGMAP_PL":"ConfigMaps","CONFIGMAPS":"ConfigMaps","CONFIGMAP_LOW":"ConfigMap","SECRET_LOW":"保密字典","SERVICE_ACCOUNT_PROJECT_ROLE_DESC":"Select the role of the service account in the current project.","SERVICE_ACCOUNT":"服務帳戶","SECRET_VALUE":"保密字典:{value}","SERVICEACCOUNT_KUBECONFIG_DESC":"Download the kubeconfig.yaml file to provide other apps with an account that can access the current project. If the apps to use the kubeconfig.yaml file are deployed outside the current cluster, you need to change the value of clusters:cluster:server to the Kubernetes API server address exposed to the outside. Learn More","SERVICE_ACCOUNT_PL":"服務帳戶","SERVICE_ACCOUNT_DESC":"服務帳戶(Service Account)為 Pod 中運行的進程提供了壹個標識,用於訪問 API Server。","SERVICE_ACCOUNT_EMPTY_DESC":"Please create a service account.","INVALID_YAML_FILE_FORMAT":"YAML 文件格式錯誤。","PROJECT_ROLE_SI":"項目角色","SELECT_PROJECT_ROLE_DESC":"選擇一個項目角色以指定權限。","CHANGE_ROLE":"修改角色","SERVICE_ACCOUNT_LOW":"service account","GRAYSCALE_RELEASE":"灰度發佈","BLUE_GREEN_DEPLOYMENT":"藍綠部署","CANARY_RELEASE":"金絲雀發佈","TRAFFIC_MIRRORING":"流量鏡像","BLUE_GREEN_DEPLOYMENT_DESC":"藍綠部署在保留舊版本的同時部署新版本,確保不停機。兩個版本中總有一個版本處於在線狀態接收所有流量,另一個版本則保持待機,如果有問題,可以快速回滾至舊版本。","CANARY_RELEASE_DESC":"金絲雀發佈將一部分實際流量引入一個新版本進行測試,測試新版本的性能和表現,在保證系統整體穩定運行的前提下,盡早發現新版本在實際環境上的問題。","TRAFFIC_MIRRORING_DESC":"流量鏡像用來更為真實地測試新版本,提前發現問題,同時不對生產環境產生影響,從而,提高版本發佈的安全性可靠性。","CREATE_BLUE_GREEN_DEPLOYMENT_TASK":"Create Blue-Green Deployment Task","DESELECT":"取消選擇","SELECT":"選擇","SELECT_GRAY_COMPONENT_TIP":"請選擇一個灰度組件。","REPLICA":"Replica","ADD_REPLICA":"添加副本","REPLICA_PL":"副本數量","GRAYSCALE_REPLICAS_DESC":"指定副本數量","SELECT_VERSION":"流量規則","BLUE_GREEN_STRATEGY_DESC":"兩個版本。","TAKE_OFFLINE":"下線此版本","TAKE_OFFLINE_SUCCESS":"下線成功","TAKE_OVER":"Take Over","GRAYSCALE_VERSION":"版本:{version}","CREATE_CANARY_RELEASE_TASK":"Create Canary Release Task","UNFINISHED_GRAY_TASK":"Grayscale release in progress","NO_WORKLOAD_FOUND_TIP":"No workload found","NO_SERVICE_MESH_TIP":"未開啟應用治理的應用無法使用灰度發佈","GRAY_APP_NAME":"應用:{name}","UNSUPPORTED_WORKLOAD_TYPE":"不支持該工作負載類型","VERSION_EXISTS":"The version code already exists. Please enter another version code.","NEW_VERSION_NUMBER_EXIST_DESC":"The workload {name} already exists. Please enter another version code.","INIT_CONTAINER":"Init 容器","INIT_CONTAINER_VALUE":"Init Container: {value}","CONTAINER_VALUE":"Container: {value}","GRAYSCALE_IMAGE":"鏡像:{image}","NEW_VERSION_NUMBER":"New Version Number","NEW_VERSION_NUMBER_EMPTY_DESC":"請輸入灰度版本號。","NEW_VERSION_SETTINGS":"New Version Settings","NEW_VERSION_NUMBER_DESC":"只能包含小寫字母及數字,長度在 16 個字元内","NEW_VERSION_NUMBER_INVALID_DESC":"Invalid new version number. The new version number can contain only lowercase letters and numbers. The maximum length is 16 characters.","KEY_EQ_VALUE":"Key=Value","HEADER":"自定義 Header","CLIENT_OS":"流量來自於以下操作系統","COOKIE":"Cookie","SPECIFY_REQUEST_PARAMETERS_DESC":"根據請求内容配置規則,只有請求内容中滿足特定條件的流量會切分到灰度版本上。該策略只對直接訪問入口服務有效。","POLICY_REQUEST_CONTENT_TIP":"如果端口協定非 HTTP、HTTP2 或 gRPC,則按請求内容下發不可用。","SPECIFY_REQUEST_PARAMETERS":"按請求内容下發","REQUEST_PARAMETERS":"灰度版本訪問規則","EXACT_MATCH":"完全匹配","PREFIX_MATCH":"前綴匹配","REGEX_MATCH":"正則匹配","CANARY_BY_TRAFFIC_DESC":"根據流量比例,對組件 {component} 的 {ratio}% 的請求流量會轉發到灰度版本 {newVersion}。","SPECIFY_TRAFFIC_DISTRIBUTION":"按流量比例下發","TRAFFIC":"Traffic","TRAFFIC_DISTRIBUTION":"流量比例","CREATE_TRAFFIC_MIRRORING_TASK":"Create Traffic Mirroring Task","PREREQUEST_FOR_USE_GRAYRELEASE_Q":"使用灰度發佈的前提條件?","PREREQUEST_FOR_USE_GRAYRELEASE_A":"使用灰度發佈功能前,您需要創建自定義應用並且開啟應用治理功能。","RELEASE_TASKS":"Release Tasks","TCP_INBOUND_TRAFFIC":"TCP 入站流量","TCP_OUTBOUND_TRAFFIC":"TCP 出站流量","NO_DATA_SCAP":"No data","REPLICA_COUNT_LOW":"副本","MIRROR_POLICY_DESC":"流量鏡像將生產環境的流量復製到灰度版本中,在新版本上線到真實環境之前使用實時用戶流量對它進行測試。
    因此,流量鏡像可以降低直接在生產環境進行變更所帶來的風險。","BLUE_GREEN_DEPLOYMENT_LOW":"blue-green deployment","BLUE_GREEN_TRAFFIC_DISTRI_DESC":"The new version or old version receives all traffic.","TRAFFIC_LOW":"流量","VERSION_TRAFFIC_PERCENT":"{version} traffic {percent}%","OFFLINE":"Offline","OFFLINE_TIP":"No service traffic is sent to this version. You can take the version online to make it take over all traffic.","CANARY_RELEASE_LOW":"canary release","ADJUST_TRAFFIC_DISTRIBUTION_DESC":"Are you sure you want to send {ratioNew}% of traffic to the new version {newVersion} and {ratioOld}% to the old version {oldVersion}?","ALLOCATE_TRAFFIC_DESC":"將所有流量按比例分配給灰度組件。","COOKIE_EXACT_MATCH":"Cookie (exact match)","COOKIE_REGEX_MATCH":"Cookie (regex match)","HEADER_EXACT_MATCH":"Header (exact match)","HEADER_REGEX_MATCH":"Header (regex match)","URL_PREFIX_MATCH":"URL (prefix match)","URL_EXACT_MATCH":"URL (regex match)","OS":"OS","SERVICE_VERSION_RECEIVE_ALL_TRAFFIC":"The version {version} has taken over all traffic.","RESTORE":"恢復","SUCCESSFUL_REQUEST_RATE":"請求成功率","TRAFFIC_IN_LAST_FIVE_MINUTES":"最近五分鐘流量","DELETE_GRAYSCALE_RELEASE_TASK_DESC":"Please select a version to take over all traffic before deleting the grayscale release task.","GRAY_COMPONENT_DESC":"The grayscale release components used to serve the traffic.","TRAFFIC_MIRRORING_LOW":"traffic mirroring","MIRRORED_TRAFFIC":"鏡像流量","MIRRORED_TRAFFIC_TIP":"Traffic mirroring does not actually expose the new version.","RELEASE_MODE_PL":"灰度策略","RELEASE_MODE":"Release mode","NEW_VERSION_TAKEOVER_DESC":"The new version {newVersion} is receiving all traffic. If you delete the current grayscale release job, the old version {oldVersion} will be also be deleted.","OLD_VERSION_TAKEOVER_DESC":"The old version {oldVersion} is receiving all traffic. If you delete the current grayscale release job, the new version {newVersion} will be also be deleted.","GRAYSCALE_REPLICA_SI":"副本數量:{count}","GRAYSCALE_REPLICA_PL":"副本數量:{count}","TRAFFIC_MIRRORING_TRAFFIC_DISTRI_DESC":"A copy of traffic is sent to the new version for testing.","EDIT_GRAYSCALE_RELEASE_TASK":"Edit Grayscale Release Task","ADJUST_TRAFFIC_DISTRIBUTION":"Adjust Traffic Distribution","COPIED_SUCCESSFUL":"複製成功","BUILDER_IMAGE":"Builder Image","PULL_POLICY":"Pull Policy","REMOTE_TRIGGER":"Remote Trigger","S2I_UPDATE_WORKLOAD":"Update workload after image building is successful","S2I_UPDATA_WORKLOAD_DESC":"After the image is rebuilt successfully, workloads that use the image will be updated.","IMAGE_BUILDER":"構建鏡像","IMAGE_BUILDER_LOW":"image builder","JOB_RECORDS":"任務紀錄","LAST_BUILD_ENVIRONMENT":"最後一次構建環境","BUILDER_IMAGE_SCAP":"Builder image","FILE_SIZE":"檔案大小:{size}","DOWNLOAD_ARTIFACT":"下載成品","ARTIFACT_FILE":"上傳成品","LOG_MODULE_NOT_INSTALLED":"紀錄模組未安裝","LOADING_DOTS":"正在載入","IMAGE_NAME_SCAP":"Image name","IMAGE_SIZE_SCAP":"鏡像大小","IMAGE_NAME_BUILDING":"Image: {name}/Building","IMAGE_NAME_FAILED":"Image: {name}/Failed","IMAGE_NAME_SUCCESSFUL":"Image: {name}/Successful","LAST_MESSAGE_SCAP":"Last message","START_TIME_SCAP":"Start time","SOURCE_URL":"Source URL","NEW_TAG":"New Tag","NEW_TAG_DESC":"Enter the tag of the new image","IMAGE_ARTIFACTS":"鏡像成品","RELEASE_TIME_SCAP":"Release time","PULL_COMMAND_SCAP":"Pull command","IMAGE_BUILDER_PL":"構建鏡像","IMAGE_BUILDER_DESC":"鏡像構建器(Image Builder)是將代碼或者成品製作成容器鏡像的工具。您可以通過簡單的設置將成品或代碼直接製作成容器鏡像。","IMAGE_BUILDER_EMPTY_DESC":"請創建一個鏡像構建器。","NOT_RUNNING_YET":"未運行","BUILDING":"Building","S2I":"Source-to-image","B2I":"Artifact-to-image","BUILD_IMAGE_FOR_SERVICE":"為 {service} 服務構建鏡像。","BUILD_MODE":"選擇語言","CONTAINERD_RUNTIME_NOT_SUPPORTED":"The containerd runtime does not support this feature.","S2I_DESC":"選擇您的代碼開發語言。","IMAGE_FROM_S2I":"通過代碼構建新的容器鏡像","IMAGE_FROM_B2I":"通過成品構建新的鏡像","B2I_DESC":"選擇您成品的文件類型。","EMPTY_IMAGE_TYPE_DESC":"Please select a language or artifact type.","CODE_REPOSITORY_URL":"代碼地址","CODE_REPOSITORY_BRANCH":"分支","CODE_REPOSITORY_KEY":"代碼倉庫密鑰","CODE_REPOSITORY_URL_DESC":"源代碼倉庫地址(目前支持 git)並且可以指定代碼分支及在源代碼終端的相對路徑","CODE_REPOSITORY_KEY_DESC":"如果是私有代碼倉庫,請選擇代碼倉庫密鑰","IMAGE_NAME":"鏡像名稱","IMAGE_TAG":"Image Tag","TARGET_IMAGE_REPOSITORY":"目標鏡像倉庫","S2I_IMAGE_NAME_DESC":"鏡像名稱及 Tag,預設為代碼倉庫的項目名稱","S2I_TARGET_IMAGE_REPOSITORY_DESC":"選擇一個有鏡像倉庫推送權限的保密字典,如果沒有可以新建鏡像倉庫保密字典。","TRIGGER_TOKEN":"觸發令牌","INVALID_TRIGGER_TOKEN_DESC":"只能包含大小寫字母、數字","TRIGGER_TOKEN_DESC":"Set a token used to authenticate a client against KubeSphere when the client attempts to trigger image building on KubeSphere. The token can contain only uppercase letters, lowercase letters, and numbers.","CODE_RELATIVE_PATH":"代碼相對路徑(可選):","CODE_RELATIVE_PATH_DESC":"可以指定代碼編譯的相對路徑,預設為 /","S2I_ENVIRONMENT_DESC":"應用程式開發人員可以使用環境變量來配置此鏡像的運行時行為。","UPLOAD_ARTIFACT_FILE":"點擊成品檔案進行上傳","UPLOAD_PERCENT":"已上傳:{percent}%","UPLOAD_FULLY":"已上傳:100%","UPLOAD_FAILED":"Upload failed.","ARTIFACT_FILE_EMPTY_DESC":"檔案還未上傳","B2I_DEFAULT_DESC":"請上傳成品檔案以構建容器鏡像。","JAR_DESC":"JAR 檔案是一種軟體包檔案格式,通常用於聚合大量的 Java 類檔案、相關的元數據和資源(文本、圖片等)檔案到一個檔案","WAR_DESC":"WAR 檔案是用於分發 Jar 檔案,JavaServer Pages,Java Servlet,Java類,XML 檔案,標記庫,静態網頁(HTML 和相關檔案)以及共同構成 Web 應用程式的其他資源的集合的檔案。","BUILD_ENVIRONMENT":"構建環境","CODE_REPOSITORY_KEY_NOT_REQUIRED":"目前代碼倉庫不需要密鑰","FILE_SIZE_VALUE":"檔案大小:{value}","FILE_UPLOADED_TIP":"上傳檔案成功。","WRONG_FILE_EXTENSION_NAME":"選擇的檔案類型不符合,請選擇 {type} 類型。","IMAGE_NAME_EMPTY_DESC":"Please enter an image name.","IMAGE_TAG_EMPTY_DESC":"Please enter an image tag.","TARGET_IMAGE_REPOSITORY_EMPTY_DESC":"Please set a target image registry.","REQUESTS_FOR_PUSH_AN_ALARM_Q":"How do I receive alerts if an alerting policy is triggered?","REQUESTS_FOR_PUSH_AN_ALARM_A":"The platform administrator needs to select a notification method and configure the server corresponding to the method.","HOW_TO_SUPRESS_AN_ALARM_Q":"How do I suppress alerts?","HOW_TO_SUPRESS_AN_ALARM_A":"You can set alerting policies at different levels. Each level corresponds to an alerting interval.","SELECT_WORKLOAD_TIP":"Please select at least one workload.","KUBE_NO_AVAILABLE_DATA":"暫無數據","EDIT_QUOTAS":"編輯配額","QUOTA":"Quota","PROJECT_QUOTAS_NOT_SET":"項目配額未設置","PROJECT_QUOTAS_DESC":"Project quotas specify the number of available CPU and memory resources and the maximum number of application resources such as Pods, Deployments, and Services in the project.","DEFAULT_CONTAINER_QUOTAS_NOT_SET":"容器資源預設請求未設置","DEFAULT_CONTAINER_QUOTAS_DESC":"Default container quotas specify the default CPU request, CPU limit, memory request, and memory limit of containers created in the project.","APPLICATION_RESOURCE_COUNT":"應用資源監控","SELECT_RESOURCE_TIP":"Select a resource or enter a resource name","NUMBER_OF_PODS":"Number of pods","NUMBER_OF_DEPLOYMENTS":"Number of deployments","NUMBER_OF_STATEFULSETS":"Number of statefulsets","NUMBER_OF_DAEMONSETS":"Number of daemonsets","NUMBER_OF_JOBS":"Number of jobs","NUMBER_OF_CRONJOBS":"Number of cronjobs","NUMBER_OF_VOLUMES":"Number of persistent volume claims","NUMBER_OF_SERVICES":"Number of services","NUMBER_OF_ROUTES":"Number of routes","NUMBER_OF_SECRETS":"Number of secrets","NUMBER_OF_CONFIGMAPS":"Number of configmaps","INSTALLED_APPS":"Installed Apps","RESOURCE_STATUS":"資源狀態","RESOURCE_WARNING_TIPS":"有 {warnNum} 個 {tipName} 狀態異常","PHYSICAL_RESOURCE_PL":"Physical Resources","CPU_USAGE_TIME":"CPU 使用量({time})","MEMORY_USAGE_TIME":"記憶體使用量({time})","TIPS":"Tips","HOW_TO_INVITE_USERS":"邀請其他成員到目前項目中?","HOW_TO_SET_PROJECT_GATEWAY":"如何設置項目網關?","TOP_5_FOR_RSC_USAGE":"資源用量 Top 5","TOP_5_FOR_RESOURCE_USAGE":"資源用量 Top 5","SORT_BY_WORKLOAD_CPU_USAGE":"按 CPU 使用量排行","SORT_BY_WORKLOAD_MEMORY_USAGE_WO_CACHE":"按記憶體使用量排行","SORT_BY_WORKLOAD_NET_BYTES_TRANSMITTED":"按網路流出速率排行","SORT_BY_WORKLOAD_NET_BYTES_RECEIVED":"按網路流入速率排行","PROJECT_SETTINGS":"項目設置","HOW_TO_USE_QUOTA_Q":"如何使用資源配額?","HOW_TO_USE_QUOTA_A":"Resource quotas are a mechanism used to limit the resource usage. You can edit project resource quotas and default container quotas by clicking Edit Project.","WHAT_ARE_DEFAULT_CONTAINER_QUOTAS_Q":"What are default container quotas?","WHAT_ARE_DEFAULT_CONTAINER_QUOTAS_A":"Default container quotas specify the default CPU request, CPU limit, memory request, and memory limit of containers created in the project.","PROJECT_BASIC_INFO_DESC":"Basic information provides an overview of the project. You can view the project information and resource quotas.","EDIT_PROJECT_QUOTA":"Edit Project Quota","PROJECT_REMAINING_QUOTAS":"項目剩餘配額","WORKSPACE_REMAINING_QUOTAS":"企業空間剩餘配額","GPU_TYPE_SCAP":"GPU type","GPU_LIMIT_SCAP":"GPU limit","REQUEST_EXCEED_WORKSPACE":"Resource requests and limits cannot exceed workspace resource limits.","REQUEST_EXCEED_LIMIT":"資源預留不能超過資源限制。","REQUEST_EXCEED_AVAILABLE_QUOTA":"Insufficient resources.","DELETE_PROJECT_TIP":"Enter the project name {resource} to confirm that you understand the risks of this operation.","MANAGE":"管理","PROJECT_INFO":"項目資訊","EDIT_PROJECT_QUOTAS":"Edit Project Quotas","PROJECT_ROLE_SCAP":"Project role","PROJECT_ROLE_SCAP_PL":"Project roles","PROJECT_MEMBER_SCAP":"Project member","PROJECT_MEMBER_SCAP_PL":"Project members","DEFAULT_CONTAINER_QUOTA_PL":"Default Container Quotas","EDIT_DEFAULT_CONTAINER_QUOTAS":"Edit Default Container Quotas","LIMITS_CPU":"CPU 限額","LIMITS_MEMORY":"記憶體限額","REQUESTS_CPU":"CPU 預留","REQUESTS_MEMORY":"CPU 限額","PROJECT_QUOTA_PL":"Project Quotas","RESOURCE_TYPE_SCAP":"資源類型","JOBS":"Jobs","VOLUMES":"Volumes","SERVICES":"服務","ROUTES":"應用路由","SECRETS":"保密字典","PROJECT_GATEWAY_DESC":"對集群和項目中的外網訪問網關以及服務治理等配置進行設置和管理","PROJECT_GATEWAY":"Project Gateway","PROJECT_GATEWAY_EMPTY_DESC":"Please create a project gateway.","ENABLE_GATEWAY_DESC":"在創建應用路由之前,需要先啟用外網訪問入口,即網關。這一步是創建對應的應用路由控制器,用來負責將請求轉發到對應的後端服務。","LOAD_BALANCER_PROVIDER":"LoadBalancer提供商","GATEWAY_UPDATING_TIP":"Updating the gateway. Please try again later.","CLUSTER_GATEWAY_GUIDE_DESC":"開啟集群網關後,無法再設置項目網關。若已存在項目網關,刪除後無法重新設置。 ","LOG_COLLECTION":"Log Collection","DISK_LOG_COLLECTION_DESC":"The Log Collection function allows the system to collect container logs saved on volumes. To use this function, you need to mount a volume in read and write mode to a container and set the container to export logs to the volume.","COLLECT_LOGS_ON_VOLUMES_Q":"How do I collect logs on volumes?","COLLECT_LOGS_ON_VOLUMES_A":"To collect logs on volumes, you need to mount a volume in read and write mode to a container and set the container to export logs to the volume.","COLLECT_LOGS_ON_VOLUMES":"落盤紀錄收集","DISABLE_LOG_COLLECTION":"Disable Log Collection","DISABLE_LOG_COLLECTION_TIP":"Are you sure you want to disable log collection? After it is disabled, services that have enabled log collection will continue to collect logs saved in the volumes before the Pod replicas are restarted. If you need to collect the logs again, please enable log collection and restart the Pod replicas.","LOG_COLLECTION_ENABLED_DESC":"After this function is enabled or disabled, you need to restart the Pod replicas to make the change take effect.","DISABLED":"已禁用","ENABLED":"已啟用","NETWORK_ISOLATION_DESC":"By configuring network isolation, users can control traffic between pods within the same workspace and traffic from outside to implement application isolation and enhance application security.","NETWORK_ISOLATION_Q":"如何更好地使用網路隔離?","NETWORK_ISOLATION_Q1":"What are the requirements on the CNI plugin for implementing network isolation?","NETWORK_ISOLATION":"網路隔離","ENABLE":"Enable","PROJECT_NETWORK_ISOLATION":"項目網路隔離","DISABLED_PROJECT_NETWORK_ISOLATION":"禁用項目網路隔離","NETWORK_POLICY_EMP_TITLE":"網路隔離未開啟","NETWORK_POLICY_EMP_DESC":"After the project network access is enabled, other projects will be unable to access the project. But you can allow projects, Services, and external IP addresses to access this project based on your needs.","INTERNAL_ALLOWLIST":"内部白名單","INTERNAL_ALLOWLIST_TIP":"Add projects and services in the workspace to the allowlist.","INTERNAL_EGRESS_DESC":"Allows access to resources that match any of the following network policies.","INTERNAL_INGRESS_DESC":"Allows access from resources that match any of the following network policies.","INTERNAL_ALLOWLIST_DESC":"Allow pods in the current project to communicate with pods in other projects of the current workspace.","EMPTY_RESOURCE_DESC":"Please select at least one project or Service.","EXTERNAL_ALLOWLIST":"External Allowlist","EXTERNAL_ALLOWLIST_TIP":"Add network segments and ports outside the workspace to the allowlist.","EXTERNAL_ALLOWLIST_DESC":"Allow pods in the current project to communicate with specific network segments and ports outside the workspace.","NETWORK_SEGMENT_EXAMPLE":"Example: 10.0.0.0","PORT_EXAMPLE":"Example: 80","EXTERNAL_EGRESS_DESC":"Pods in the current project are allowed to access the following network segments and ports.","EXTERNAL_INGRESS_DESC":"Pods in the current project are allowed to be accessed by the following network segments and ports.","SELECT_RULE_DIRECTION_TIP":"Please select a traffic direction.","ENTER_VALID_SEGMENT_DESC":"Please enter valid network segment.","ENTER_VALID_PORT_NUMBER_DESC":"Please enter a valid port number.","ADD_ALLOWLIST_ENTRY":"添加白名單","EDIT_ALLOWLIST_ENTRY":"编辑白名單","EXTERNAL_TRAFFIC_DIRECTION_DESC":"Egress indicates the direction from the current project to outside the workspace. Ingress indicates the direction from outside the workspace to the current project.","TRAFFIC_DIRECTION":"流量方向","NETWORK_SEGMENT_DESC":"Set a network segment (CIDR is supported).","EGRESS":"出口","INGRESS":"Ingress","INTERNAL_TRAFFIC_DIRECTION_DESC":"Egress indicates the direction from the current project to other projects. Ingress indicates the direction from other projects to the current project.","ALLOWLIST_ENTRY":"Allowlist Entry","ALLOWLIST_ENTRY_PL":"Allowlist Entry","ALLOWLIST_ENTRY_DETAIL":"Allowlist Entry Detail","ALLOWLIST_ENTRY_LOW":"白名單條目","ADD_NEW_NETWORK_SEGMENT":"Add","ADD_NEW_PORT":"Add Port","ADD_NEW_PORT_RANGE":"Add Port Aange","PORT_RANGE":"Port Range","NETWORK_SEGMENT_QUANTITY":"Network Segment Quantity","PORT_QUANTITY":"Port Quantity","ALLOWLIST_ENTRY_EMPTY_DESC":"创建白名單條目","PROJECT_MEMBER":"Project Member","PROJECT_MEMBER_PL":"項目成員","PROJECT_MEMBER_DESC":"Project members can view or manage project resources. The project administrator can invite members who belong to the workspace to the project and manage project members.","REMOVE":"Remove","INVITE_MEMBER_DESC":"You can invite members who belong to the workspace to the project.","PROJECT_MEMBER_EMPTY_DESC":"Please invite a member of the current workspace to the project.","INVITE_MEMBER_SEARCH_PLACEHOLDER":"輸入用戶名邀請項目成員","ASSIGN_ROLE":"Assign Role","PERMISSION_PL":"權限列表","AUTHORIZED_USER_PL":"授權用戶","PROJECT_ROLE_PL":"項目角色","PROJECT_ROLE_DESC":"項目角色定義了在目前項目下用戶所擁有的權限","ROLE_PROJECT_ADMIN":"Manage all resources in the project.","ROLE_PROJECT_REGULAR":"Manage resources other than users and roles in the project.","ROLE_PROJECT_VIEWER":"項目觀察者,可以查看項目下所有的資源。","ROLE_PROJECT_OPERATOR":"項目維護者,可以管理項目下除用戶和角色之外的資源。","PROJECT_ROLE_EMPTY_DESC":"Please create a project role.","PERMIGROUP_APPLICATION_WORKLOADS":"應用負載","PERMISSION_APPLICATION_WORKLOADS_VIEW":"Application Workload Viewing","PERMISSION_APPLICATION_WORKLOADS_VIEW_DESC":"View resources such as applications, services, workloads, jobs, grayscale release jobs, and image builders in the project.","PERMISSION_APPLICATION_WORKLOADS_MANAGEMENT":"Application Workload Management","PERMISSION_APPLICATION_WORKLOADS_MANAGEMENT_DESC":"Create, edit, and delete resources such as applications, services, workloads, jobs, grayscale release jobs, and image builders in the project.","PERMIGROUP_STORAGE_MANAGEMENT":"儲存","PERMISSION_VOLUME_SNAPSHOTS_VIEW":"Volume Snapshot Viewing","PERMISSION_VOLUME_SNAPSHOTS_VIEW_DESC":"View volume snapshots in the project.","PERMISSION_VOLUME_SNAPSHOTS_MANAGEMENT":"Volume Snapshot Management","PERMISSION_VOLUME_SNAPSHOTS_MANAGEMENT_DESC":"Create, edit, and delete volume snapshots in the project.","PERMISSION_VOLUMES_VIEW":"Persistent Volume Claim Viewing","PERMISSION_VOLUMES_VIEW_DESC":"View persistent volume claims in the project.","PERMISSION_VOLUMES_MANAGEMENT":"Persistent Volume Claim Management","PERMISSION_VOLUMES_MANAGEMENT_DESC":"Create, edit, and delete persistent volume claims in the project.","PERMIGROUP_CONFIGURATION_CENTER":"配置","PERMISSION_CONFIGMAPS_VIEW":"Configmap Viewing","PERMISSION_CONFIGMAPS_VIEW_DESC":"View configmaps in the project.","PERMISSION_CONFIGMAPS_MANAGEMENT":"Configmap Management","PERMISSION_CONFIGMAPS_MANAGEMENT_DESC":"Create, edit, and delete configmaps in the project.","PERMISSION_SECRETS_VIEW":"Secret Viewing","PERMISSION_SECRETS_VIEW_DESC":"View secrets in the project.","PERMISSION_SECRETS_MANAGEMENT":"Secret Management","PERMISSION_SECRETS_MANAGEMENT_DESC":"Create, edit, and delete secrets in the project.","PERMISSION_SERVICEACCOUNT_VIEW":"Service Account Viewing","PERMISSION_SERVICEACCOUNT_VIEW_DESC":"View service accounts in the project.","PERMISSION_SERVICEACCOUNT_MANAGEMENT":"Service Account Management","PERMISSION_SERVICEACCOUNT_MANAGEMENT_DESC":"Create, edit, and delete service accounts in the project.","PERMIGROUP_MONITORING_ALERTING":"監控告警","PERMISSION_ALERTING_MESSAGES_VIEW":"Alert Viewing","PERMISSION_ALERTING_MESSAGES_VIEW_DESC":"View alerts in the project.","PERMISSION_ALERTING_MESSAGES_MANAGEMENT":"Alert Management","PERMISSION_ALERTING_MESSAGES_MANAGEMENT_DESC":"Comment on and delete alerts in the project.","PERMISSION_ALERTING_POLICIES_VIEW":"Rule Group Viewing","PERMISSION_ALERTING_POLICIES_VIEW_DESC":"View rule groups in the project.","PERMISSION_ALERTING_POLICIES_MANAGEMENT":"Rule Group Management","PERMISSION_ALERTING_POLICIES_MANAGEMENT_DESC":"Create, edit, and delete rule groups in the project.","PERMISSION_CUSTOM_MONITORING_VIEW":"Custom Monitoring Viewing","PERMISSION_CUSTOM_MONITORING_VIEW_DESC":"View custom monitoring dashboards in the project.","PERMISSION_CUSTOM_MONITORING_MANAGEMENT":"Custom Monitoring Management","PERMISSION_CUSTOM_MONITORING_MANAGEMENT_DESC":"Create, edit, and delete custom monitoring dashboards in the project.","PERMISSION_PROJECT_MEMBERS_VIEW":"成員查看","PERMISSION_PROJECT_MEMBERS_VIEW_DESC":"View project members.","PERMISSION_PROJECT_MEMBERS_MANAGEMENT":"成員管理","PERMISSION_PROJECT_MEMBERS_MANAGEMENT_DESC":"Invite, edit, and remove project members.","PERMISSION_PROJECT_ROLES_VIEW":"角色查看","PERMISSION_PROJECT_ROLES_VIEW_DESC":"View project roles.","PERMISSION_PROJECT_ROLES_MANAGEMENT":"角色管理","PERMISSION_PROJECT_ROLES_MANAGEMENT_DESC":"Create, edit, and delete project roles except preset roles.","PERMIGROUP_PROJECT_SETTINGS":"項目設置","PERMISSION_PROJECT_SETTINGS":"Project Settings Management","PERMISSION_PROJECT_SETTINGS_DESC":"Manage project settings including project basic information, external access settings, network policies, resource quotas, and log collection settings.","DELETE_ROLE":"Delete Role","DELETE_ROLE_TIP":"Are you sure you want to delete the role {resource}?","DELETE_ROLE_USER_TIP_PL":"The role is authorized to {count} users. Please delete the users or change the roles of the user first.","DELETE_ROLE_USER_TIP":"The role is authorized to {count} user. Please delete the user or change the role of the user first.","DELETE_ROLE_DEPARTMENT_TIP_PL":"The role is authorized to {count} departments. Please delete the departments or change the roles of the departments first.","DELETE_ROLE_DEPARTMENT_TIP":"The role is authorized to {count} department. Please delete the department or change the role of the department first.","CLONE_VOLUME":"儲存卷克隆","CLONE":"Clone","CREATE_SNAPSHOT":"創建快照","SNAPSHOT_EMPTY_TIP":"請選擇一個快照類型。","EXPAND_VOLUME":"儲存卷擴容","EXPAND":"Expand","PROVISIONER":"供應者","AVAILABLE_CAPACITY":"剩餘儲存容量","POD_IP_ADDRESS_SCAP":"容器組 IP 地址","TOTAL_CAPACITY":"Total capacity","TECHNICAL_SUPPORT":"Technical Support","LEARN_MORE_CONTACT_US":"For more cloud-native technology empowerment services, please Contact Us.","COMMUNITY_SUPPORT":"Community Support","FORUM":"Forum","TICKET_SUPPORT":"Ticket Support","TICKET_SUPPORT_DESC":"Professional cloud-native development team and container service delivery team with more than 10 years of public and private cloud support experience and in-depth understanding of industries, providing comprehensive technical support including installation, troubleshooting, recovery, and other professional services.","CONTACT_US":"Contact Us","KUBESPHERE_ENTERPRISE_CAPTION":"KubeSphere Enterprise","KUBE_SPHERE_ENTERPRISE_DESC":"KubeSphere Enterprise is an enterprise-grade container platform developed by QingCloud based on the open-source KubeSphere platform. Compared with the open-source edition, KubeSphere Enterprise enhances capabilities for enterprise quantitative operations, large-scale cluster O&M, and security hardening, and extends multiple key features such as microservice governance and app management. The KubeSphere Enterprise Extension Marketplace provides enterprise-grade extensions to meet requirements of various business scenarios, with expert solutions and technical support from QingCloud.","KSE_FEATURE_1":"Empowers enterprise digital transformation towards quantitative operations","KSE_FEATURE_2":"Enhances large-scale federated cluster O&M","KSE_FEATURE_3":"Provides full lifecycle security protection","KSE_PLATFORM_VERSION":"Platform Version: {version}","KUBESPHERE_CLOUD_CAPTION":"KubeSphere Cloud","KSC_FEATURE_BACKUP":"KubeSphere Backup","KSC_FEATURE_BACKUP_APP_DESC":"Application-level data protection","KSC_FEATURE_BACKUP_DATA_DESC":"Assured data consistency","KSC_FEATURE_BACKUP_CLOUD_DESC":"Unified management across clouds","KSC_FEATURE_INSPECTION":"KubeSphere Inspection","KSC_FEATURE_INSPECTION_VULN_DESC":"Comprehensive vulnerability scanning","KSC_FEATURE_INSPECTION_SECURITY_DESC":"System security hardening","KSC_FEATURE_INSPECTION_BEST_DESC":"Best practice guidance","KSC_FEATURE_LIGHTWEIGHT":"KubeSphere Lite","KSC_FEATURE_LIGHTWEIGHT_START_DESC":"Cluster setup in seconds","KSC_FEATURE_LIGHTWEIGHT_KS_DESC":"Out-of-the-box KubeSphere cluster","KSC_FEATURE_LIGHTWEIGHT_TEST_DESC":"Ideal for testing and demonstration","START_NOW":"Start Now","START_REAL_TIME_AUDIT_LOG":"Pause real-time audit logs","STOP_REAL_TIME_AUDIT_LOG":"View real-time audit logs","TIME_S":"{num, plural, =1 {1 second} other {# seconds}}","AUDIT_LOG_COUNT":"審計紀錄","RESOURCE_NAME_AND_TYPE":"Resource Type & Name","VERB":"Verb","STATUS_CODE":"Status Code","SUBRESOURCE":"Subresource","TOTAL_AUDITING_TODAY":"A total of {auditing} audit log entries have been collected today.","NO_AUDIT_LOG_TODAY":"No Audit Log Collected Today","AUDIT_LOG_TREND_LAST_TWELVE_HOURS":"Audit log trend in the last 12 hours","START_TIME_VALUE":"Start Time: {value}","NO_DATA_AUTHORIZED":"No Data Authorized","NO_DATA_AUTHORIZED_DESC":"Please contact an administrator to obtain data authorization.","TIME_RANGE_LAST":"Time range: last {value}","TIME_RANGE_RANGE":"Time range: {startTime} – {endTime}","AUDIT_LOGS_12H":"Audit logs in the last 12 hours","AUDIT_LOG_WORKSPACE_TIP":"Enter a workspace name to search for audit logs.","AUDIT_LOG_PROJECT_TIP":"Enter a project name to search for audit logs.","AUDIT_LOG_RESOURCE_NAME_TIP":"Enter a resource name to search for audit logs.","AUDIT_LOG_RESOURCE_TYPE_TIP":"Enter a resource type to search for audit logs.","AUDIT_LOG_VERB_TIP":"Enter a verb to search for audit logs.","AUDIT_LOG_STATUS_CODE_TIP":"Enter a status code to search for audit logs.","AUDIT_LOG_OPERATOR_TIP":"Enter an operator to search for audit logs.","AUDIT_LOG_SOURCE_IP_ADDRESS_TIP":"Enter a source IP address to search for audit logs.","SEARCH_BY_VERB":"Search by Verb","SEARCH_BY_STATUS_CODE":"Search by Status Code","SEARCH_BY_OPERATOR":"Search by Operator","SEARCH_BY_SOURCE_IP_ADDRESS":"Search by Source IP Address","ENABLE_AUDIT_LOG_COLLECTION_DESC":"You need to enable audit log collection if it is disabled.","KEYWORD":"Keyword","EXACT_QUERY":"Exact Query","FUZZY_QUERY":"Fuzzy Query","TIME_TOPOLOGY":"Time Topology ","SEARCH_RESULTS":"Search Results","DISPLAY":"Display","HIDE":"Hide","STOP_REAL_TIME_CONTAINER_LOG":"Pause real-time container logs","START_REAL_TIME_CONTAINER_LOG":"View real-time container logs","REFRESH_RATE_COLON":"Refresh Rate: ","CONTAINER_LOG_COUNT":"容器紀錄","LOG":"Log","CONTAINER_LOG_SOURCE":"Container Log Source","TOTAL_LOGS_TODAY":"A total of {logs} log entries from {containers} containers have been collected today.","WORKLOAD":"Workload","TIME_RANGE_SCAP":"Time range","QUERYING_RULES":"Querying Rules","CONTAINER_LOGS_12H":"Container logs in the last 12 hours","CONTAINER_LOG_KEYWORD_TIP":"Enter a keyword to search for container logs.","CONTAINER_LOG_PROJECT_TIP":"Enter a project name to search for container logs.","CONTAINER_LOG_WORKLOAD_TIP":"Enter a workload name to search for container logs.","CONTAINER_LOG_CONTAINER_TIP":"Enter a container name to search for container logs.","CONTAINER_LOG_POD_TIP":"Enter a pod name to search for container logs.","SEARCH_BY_KEYWORD":"Search by Keyword","SEARCH_BY_PROJECT":"Search by Project","SEARCH_BY_WORKLOAD":"Search by Workload","SEARCH_BY_POD":"Search by Pod","SEARCH_BY_CONTAINER":"Search by Container","TIME_RANGE":"Time Range","DOWNLOAD":"Download","KUBECONFIG_TIP":"\n

    Configuration Method

    \n

    Configure the access information about the current cluster by using kubeconfig file.

    \n ","HIDE_HELP_INFORMATION":"Hide Help Information","KUBECTL_TIP":"\n

    Command Tips

    \n

    You can refer to the following kubestl commands.

    \n

    Customized Output

    \n
      \n
    • View more information about a pod
    • \n
    \n

    kubectl get pod <pod-name> -o wide

    \n
      \n
    • View pod details in YAML format
    • \n
    \n

    kubectl get pod <pod-name> -o yaml

    \n

    Operations

    \n

    Create Resources

    \n
      \n
    • Create a service by using a YAML configuration file
    • \n
    \n

    kubectl create -f my-service.yaml

    \n
      \n
    • Create resources by using all YAML, YML, and JSON files in a directory
    • \n
    \n

    kubectl create -f <directory>

    \n

    View Resources

    \n
      \n
    • View all pods
    • \n
    \n

    kubectl get pods

    \n
      \n
    • View all services
    • \n
    \n

    kubectl get services

    \n

    View Resource Details

    \n
      \n
    • View node details
    • \n
    \n

    kubectl describe nodes <node-name>

    \n
      \n
    • View pod details
    • \n
    \n

    kubectl describe pods <pod-name>

    \n ","OPEN_TERMINAL_DESC":"Ensure that the web socket settings on the proxy server is correct.","TOOLBOX":"Toolbox","TOOLBOX_DESC":"Provides cluster analysis and control tools.","DETAIL_NOT_FOUND_DESC":"No related resources were found. Return to {title}","ANALYSIS_TOOLS":"Analysis Tools","VIEW_KUBE_CONFIG":"View or download the kubeconfig file of the current cluster.","CONTAINER_LOG_SEARCH_DESC":"A multi-dimensional container log search tool for resources.","RESOURCE_EVENT_SEARCH_DESC":"A multi-dimensional resource event search tool for resources.","AUDIT_LOG_DESC":"A multi-dimensional audit log search tool for resources.","RESOURCE_CONSUMPTION_STATISTICS":"Resource Consumption Statistics","METERING_AND_BILLING_DESC":"View resource consumption of clusters and workspaces.","CONTAINER_LOG_SEARCH":"Container Log Search","RESOURCE_EVENT_SEARCH":"Resource Event Search","AUDIT_LOG_SEARCH":"Audit Log Search","CONTROL_TOOL":"Control Tool","TOOLBOX_SHIFT_TIPS":" 👻 Press \"shift+left click\" to open kubectl in a new browser window.","THIRD_PARTY_TOOLS":"Third-Party Tools","METERING_NOT_ENABLED_DESC":"This module is not enabled.","NO_METER_DATA":"No resource consumption data is found.","EXPORT_BILL":"Export consumption records in CSV file format.","TOTAL_COST":"Total Cost ({unit})","PRICE_CONFIG_DESC":"The price information has not been configured.","METER_CPU_USAGE":"CPU 使用量","METER_MEMORY_USAGE":"記憶體使用量","METER_VOLUME_USAGE":"Volume Usage","METER_NET_RECEIVED_USAGE":"Inbound Traffic Usage","METER_NET_TRANSMITTED_USAGE":"Outbound Traffic Usage","NET_RECEIVED":"入站流量","NET_TRANSMITTED":"出站流量","COMPOSING_APP":"Composed app","CLUSTER_NODE_SCAP":"Cluster node","POD_SCAP":"容器組","APP_TEMPLATE_SCAP":"App template","COMPOSING_APP_SCAP":"Composed app","DEPLOYMENT_SCAP":"部署","STATEFULSET_SCAP":"有狀態副本集","DAEMONSET_SCAP":"守護進程集","WORKSPACE_SCAP":"企業空間","CLUSTER_SCAP":"集群","PROJECT_SCAP":"項目","SERVICE_SCAP":"服務","HOST_CLUSTER_SCAP":"主集群","MEMBER_CLUSTER_SCAP":"Member cluster","CONSUMPTION_HISTORY":"Consumption History","BILLING_CYCLE":"Billing Cycle","CONSUMER_TRENDS":"Cost Trends","AVERAGE_USAGE":"Average Usage","TOTAL_CONSUMPTION":"Total Consumption","TOTAL_CONSUMPTION_Q":"What is total consumption?","TOTAL_CONSUMPTION_A":"Total consumption is the sum of resource usage per sampling point in the current billing cycle.","TIMERANGE_MORE_30DAY_MSG":"If the interval between the end time and the start time is greater than 30 days, the minimum sampling interval should be 1 day.","MAXIMUM_USAGE":"Maximum Usage","MINIMUM_USAGE":"Minimum Usage","RESOURCE_TYPE":"Resource Type","CURRRENT_RESOURCE_CONSUMPTION":"Current Consumption","METER_RESOURCE_DESC":"Resource consumption in 1 h","ADD_CLUSTER_FOR_WORKSPACE":"Please authorize a cluster to this workspace.","RESOURCE_CONSUMPTION_DESC":"Select a category to view the resource consumption information.","CLUSTER_CONSUMPTION":"Cluster Resource Consumption","CLUSTER_CONSUMPTION_DESC":"View the consumption information of cluster resources.","CLUSTER_RESOURCE_CONSUMPTION_DESC":"Consumption of resources such as CPU, memory, and volumes of clusters","CLUSTER_NODE_CONSUMPTION_DESC":"Consumption of resources such as CPU, memory, and volumes of cluster nodes","CLUSTER_POD_CONSUMPTION_DESC":"Consumption of CPU and memory of pods in nodes","CURRENT_RESOURCE_CONSUMPTION":"Current Resource Consumption","VIEW":"View","CONSUMPTION_SINCE_CREATION":"has consumed the following resources since it is created.","PRICE":"Price","WORKSPACE_CONSUMPTION":"Workspace Resource Consumption","WORKSPACE_CONSUMPTION_DESC":"View the consumption information of workspace resources.","WORKSPACE_RESOURCE_CONSUMPTION_DESC":"Consumption of resources such as CPU, memory, and volumes of workspaces","WORKSPACE_PROJECT_CONSUMPTION_DESC":"Consumption of resources such as CPU, memory, and volumes of projects in workspaces","PROJECT_CONSUMPTION_DESC":"Consumption of CPU and memory of apps, services and pods in projects","STOP_REAL_TIME_RESOURCE_EVENT":"Pause real-time resource events","START_REAL_TIME_RESOURCE_EVENT":"View real-time resource events","RESOURCE_EVENT_COUNT":"資源事件","METADATA":"Metadata","EARLIEST_START_TIME":"Earliest Start Time","LATEST_START_TIME":"Latest Start Time","TOTAL_EVENTS_TODAY":"A total of {events} resource events were collected today.","NO_RESOURCE_EVENTS_TODAY":"No Resource Events Collected Today","RESOURCE_EVENTS_12H":"Resource events in the last 12 hours","RESOURCE_EVENT_WORKSPACE_TIP":"Enter a workspace name to search for container logs.","RESOURCE_EVENT_PROJECT_TIP":"Enter a project name to search for container logs.","RESOURCE_EVENT_RESOURCE_TYPE_TIP":"Enter a resource type to search for container logs.","RESOURCE_EVENT_RESOURCE_NAME_TIP":"Enter a resource name to search for container logs.","RESOURCE_EVENT_MESSAGE_TIP":"Enter a message to search for resource events.","RESOURCE_EVENT_CATEGORY_TIP":"Enter a category name to search for container logs.","RESOURCE_EVENT_REASON_TIP":"Enter a reason to search for container logs.","SEARCH_BY_MESSAGE":"Search by Message","SEARCH_BY_WORKSPACE":"Search by Workspace","SEARCH_BY_RESOURCE_TYPE":"Search by Resource Type","SEARCH_BY_RESOURCE_NAME":"Search by Resource Name","SEARCH_BY_REASON":"Search by Reason","SEARCH_BY_CATEGORY":"Search by Category","EMAIL_DESC":"郵箱可作為登入帳號","LANGUAGE":"Language","USER_SETTINGS":"User Settings","CLOSE":"關閉","CONTENT_NOT_SAVED_TIPS":"内容已經修改但並未保存","SAVE_EDIT_HINTS":"請確認修改的内容是正確的,您可以保存設置或者取消設置。","PASSWORD_SETTINGS":"密碼設置","PASSWORD_EMPTY_DESC":"請輸入密碼","CURRENT_PASSWORD":"目前密碼","ENTER_CURRENT_PASSWORD_TIP":"請輸入目前密碼","CONFIRM_PASSWORD":"重複新的密碼","PASSWORD_NOT_SAME_DESC":"兩次輸入的密碼必須一致","ENTER_CURRENT_PASSWORD_DESC":"您必須輸入正確的目前密碼才可更改為新的密碼","WORKBENCH":"Workbench","DASHBOARD_TITLE":"您好 {username}","LAST_LOGIN_TIME":"Last Login: ","USER_DASHBOARD_EMPTY_TITLE":"您暫時不屬於任何企業空間","USER_DASHBOARD_EMPTY_DESC":"您可以聯繫某個企業空間的管理員邀請您加入企業空間中","LAST_UPDATE_TIME":"上次更新時間","PLATFORM_VERSION":"平台版本","PLATFORM_RESOURCES":"Platform Resource","APP_TEMPLATE_SCAP_PL":"App templates","RECENT_ACCESS":"最近訪問","MULTI_CLUSTER_DEPLOYMENT":"多集群部署","WORKBENCH_PROJECT":"項目","WORKBENCH_WORKSPACE":"企業空間","WORKBENCH_DEVOPS":"DevOps 项目","WORKBENCH_MULTI_CLUSTER_PROJECT":"聯邦項目","WORKBENCH_CLUSTER":"集群","NOT_FOUND_DESC":"🙇 對不起沒有找到相關資源,系統將在 {time}s 後返回 工作台","MULTI_CLUSTER_PROJECT_TIP":"該資源部署在多個集群","NO_HISTORY_TITLE":"No Recently Accessed Resource Found","NO_HISTORY_DESC":"You can access platform resources.","MESSAGE":"訊息","APP_REPOSITORY_PL":"App Repositories","APP_REPO":"應用倉庫","HOW_TO_USE_APP_REPO_Q":"How do I use an app repository?","HOW_TO_USE_APP_REPO_A":"You need to go to your project in the workspace. When you deploy a new app, select From App Template and then choose an app repository in the drop-down list to deploy an app in the repository.","APP_REPO_DESC":"An app repository is a repository used to store application templates. You can add an app repository to deploy and manage its applications.","APP_REPOSITORY_EMPTY_DESC":"Please add an app repository.","APP_REPO_STATUS_SUCCESSFUL":"成功","APP_REPO_STATUS_FAILED":"失敗","APP_REPO_STATUS_SYNCING":"Syncing","ADD_APP_REPO":"Add App Repository","VALIDATE":"Validate","SYNC_INTERVAL":"Sync Interval","SYNC_INTERVAL_DESC":"Set a synchronization interval. The value range is 3 minutes to 24 hours. The default value 0 indicates no synchronization.","SYNC_PERIOD_EMPTY_DESC":"Please set a synchronization interval.","SYNC_INTERVAL_INVALID":"Invalid value. Please enter 0 or a positive integer. ","APP_REPO_URL_DESC":"The URL needs to be validated before you add or edit an app repository.","SYNC_INTERVAL_TIP":"The value range is 3 minutes to 24 hours. Please enter a valid value.","SECONDS":"Seconds","MINUTES":"Minutes","HOURS":"Hours","UNRECOGNIZED_URL":"Unrecognized URL.","INVALID_CREDENTIAL_FORMAT":"Invalid credential format.","MISSING_ACCESS_KEY_ID":"Missing access key ID.","MISSING_SECRET_ACCESS_KEY":"Missing secret access key.","S_THREE_ACCESS_DENIED":"S3 access denied.","INVALID_URL_FORMAT":"Invalid URL format.","INVALID_HTTP_SCHEME":"Invalid HTTP scheme.","HTTP_ACCESS_DENIED":"HTTP access denied.","INVALID_HTTPS_SCHEME":"Invalid HTTPS scheme.","INVALID_TYPE":"Invalid type.","INVALID_PROVIDERS":"Invalid providers.","INVALID_REPO_URL":"Invalid repository URL.","INVALID_S_THREE_SCHEME":"Invalid S3 scheme.","ACCESS_KEY_ID":"Access Key ID","SECRET_ACCESS_KEY":"Secret Access Key","EDIT_APP_REPO":"Edit App Repository","INVALID_URL_DESC":"Invalid URL.","VALID_URL_DESC":"Valid URL.","APP_REPOSITORY":"App Repository","APP_REPOSITORY_LOW":"app repository","MODIFY_SUCCESSFUL":"修改成功","SERVICE_PROVIDER_WEBSITE_DESC":"Official website address of the service provider.","WRONG_ADDRESS_TIP":"Incorrect format. Please enter a correct website address.","APP_NAME_DESC":"名稱可包含任意字元,最長 20 個字元。","APP_DESCRIPTION_DESC":"The description can contain any characters and the maximum length is 120 characters.","APP_ICON_FORMAT":"格式: PNG 背景透明最佳","APP_ICON_SIZE":"Icon size: 96x96 pixels","CHOOSE_APP_CATEGORY_DESC":"Select a category for the app.","EDIT_APP_DESC":"對應用的基本資訊進行設置","ICON":"Icon","SERVICE_PROVIDER_WEBSITE_TCAP":"Service Provider Website","START_EDITING":"Start editing...","SCREENSHOTS_COLON":"Screenshots: ","DELETE_ALL":"Delete All","ADD_VERSION_SUCCESSFUL":"添加版本成功","UPLOAD_PACKAGE_OK_NOTE":"The version already exists. Please upload another version.","UPLOAD_NEW_VERSION":"Upload Version","UPLOAD_NEW_VERSION_DESC":"Upload a new version of the app.","DELETE_APP_TEMPLATE_DESC":"Enter the app template name {resource} to confirm that you understand the risks of this operation.","DELETE_APP_TEMPLATE_VERSIONS_DESC":"Enter the app template name {resource} to confirm that you understand the risks of this operation. Before deleting the app template, you must delete all versions of the template.","APP_TEMPLATE_LOW":"app template","APP_STATUS_SUBMITTED":"Submitted","APP_STATUS_NOT_SUBMITTED":"Not submitted","VERSION_INFO":"Version Information","INSTALL":"Install","SUBMIT_FOR_REVIEW":"Submit for Review","DOWNLOAD_SUCCESSFUL":"下載成功","VERSION_DELETE_TIP":"確定要刪除版本 {name} 嗎? ","VERSION_SUBMIT_TIP":"確定要提交版本 {name} 去審核?","VERSION_CANCEL_TIP":"確定要取消版本 {name} 的審核嗎?","VERSION_RELEASE_TIP":"版本 {name} 發佈到商店後,用戶可以查看並部署該應用版本,您確定要發佈嗎?","VERSION_SUSPEND_TIP":"版本 {name} 下架後,關聯的應用將不顯示該版本,您確定要下架嗎?","VERSION_RECOVER_TIP":"版本 {name} 上架後,關聯的應用將顯示出該版本,您確定要上架嗎?","UPDATE_TIME_SCAP":"Update time","VIEW_IN_STORE":"View in Store","UPLOAD_AGAIN_TIP":"Please try again.","ENTER_VERSION_NUMBER_TIP":"Please enter a version number.","SUBMIT_REVIEW_DESC":"Submit the app template for review before releasing it to the App Store.","APP_LEARN_MORE":"Learn More","INVALID_VERSION_TIP":"无效版本格式。","TEST_STEPS":"Test Steps","VERSION_SUBMIT_TEST_STEPS":"1. 所有依賴的 Chart 已經分别提交
    2. 可以成功通過静態檢查 (helm lint)
    3. 可以用預設值成功啟動應用 (helm install):所有 Pod 是 running 狀態,所有服務 (service) 都至少有一個 endpoint
    4. 使用的鏡像沒有安全漏洞
    5. 支持升級
    6. 支持自定義應用配置
    7. 不要使用 Kubernetes 的 alpha 功能
    8. 需要提供詳細的 README 檔案,包括對應用的介紹,前置條件和如何自定義配置參數
    ","VERSION_SUBMIT_NOTE":"在正式提交審核之前,請確認您的應用已經通過了以下基本功能的測試","UPDATE_LOG_DESC":"用於詳細描述此次更新的具體内容","SUBMIT_SUCCESSFUL":"Submitted successfully.","CANCEL_SUCCESSFUL":"Canceled successfully.","APP_INSTANCES":"App Instances","APP_TEMPLATE_PL":"App Templates","APPS_MANAGEMENT":"應用管理","UPLOAD_TEMPLATE":"上傳模板","APP_TEMPLATE_DESC":"KubeSphere 提供全生命週期的應用管理,可以上傳或者創建新的應用模板,並且快速部署它們,也可以通過應用商店進行發佈應用。","DEVELOP_APP_DESC":"您可以上傳 Helm Chart 或者使用 KubeSphere 提供的資源編排工具進行應用模板的開發","DEVELOP_APP_TITLE":"開發應用模板","HOW_PUBLISH_APP_TITLE":"如何發佈已有應用","HOW_PUBLISH_APP_DESC":"KubeSphere 目前支持將已有應用的 Helm Chart 上傳至企業空間的應用模板,提交審核後,可以將應用發佈在應用商店中。","APP_STATUS_ACTIVE":"已發布","APP_STATUS_DRAFT":"Unreleased","APP_STATUS_SUSPENDING":"Suspending","APP_TEMPLATE_EMPTY_DESC":"Please create an app template.","LATEST_VERSION":"最新版本","CREATE_APP_TEMPLATE":"創建應用模板","CREATE_APP_TEMPLATE_DESC":"輕量化、可移植、自包含的軟體封裝技術,使應用可以在幾乎任何地方以相同的方式運行。","APP_CREATE_GUIDE":"完整的應用開發規範請參考","UPLOAD":"開始上傳","UPLOAD_HELM_TITLE":"上傳 Helm 配置文件","UPLOAD_HELM_CHART_DESC":"上傳已有的 Helm chart ","HELM_CHART_FORMAT_DESC":"支持 tar.gz 和 tgz 格式","UPLOAD_ICON":"上傳圖示","UPLOAD_SUCCESSFUL":"上傳成功","UPLOADING":"正在上傳","FILE_MAX_SIZE_ICON":"The maximum size of the icon is 96x96 pixels.","FILE_MAX_SCREENSHOTS":"截圖大小不能超過 2M","APP_ICON_NOTE":"96px * 96px 以内 JPG 或者 PNG","MISS_FILE_NOTE":"文件 {file} 沒有找到","LICENSE_FILE_DESC":"文本格式的協定","CHART_FILE_DESC":"Yaml 檔案,用於描述 Chart 的基本資訊,包括名稱版本等","README_FILE_DESC":"應用介绍、使用說明","REQUIREMENTS_FILE_DESC":"用於存放目前 Chart 依賴的其它 Chart 的說明檔案","VALUES_FILE_DESC":"Chart 的預設值配置檔案","CHARTS_FILE_DESC":"該目錄中放置目前 Chart 依賴的其它 Chart","TEMPLATES_FILE_DESC":"部署檔案模板目錄,模板填入 values.yaml 中相應值,生成最終的 Kubernetes 配置檔案","NOTES_FILE_DESC":"使用指南","INCORRECT_FILE":"Incorrect files? ","TRY_AGAIN":"Try Again","FILE_MAX_ICON_DESC":"The icon size should not exceed 20 KB. Please try again.","HOMEPAGE":"首頁","OPTIONAL":"選填","DEVOPS_TIP_GITOPS_Q":"如何落地 DevOps?","DEVOPS_TIP_GITOPS_A":"創建關聯代碼倉庫的流水線,並積極使用部署 Kubernetes 部署步驟,就可以實現 DevOps 了。","DEVOPS_TIP_TYPE_Q":"流水線 (Pipeline) 支持哪些代碼倉庫類別?","DEVOPS_TIP_TYPE_A":"流水線支持 Git、GitHub、Gitlab、SVN、以及 Bitbucket 代碼倉庫.","DEVOPS_PROJECT_EMPTY_DESC":"Please create a DevOps project.","CREATE_DEVOPS_PROJECT":"創建 DevOps 项目","DEVOPS_PROJECT_CREATE_DESC":"DevOps 是一個獨立的命名空間,其中定義了一組流水線;用戶可以按照自己的方式對流水線進行分組 (例如:項目類型、組織類型)。","DEVOPS_BASEINFO_DESC":"Please set the basic information of the DevOps project","PATTERN_NAME_INVALID_TIP":"Invalid name. The name can contain only lowercase letters, numbers, and hyphens (-).","NO_DEVOPS_INSTALL":"未安裝 DevOps","DEVOPS_ADMIN_DESC":"指定项目内一個成員為管理員。","DELETE_MULTIPLE_DEVOPS_PROJECTS":"Delete Multiple DevOps Projects","DELETE_DEVOPS_PROJECT":"刪除 DevOps 项目","DELETE_DEVOPS_PROJECT_TIP":"Enter the DevOps project name {resource} to confirm that you understand the risks of this operation.","DELETE_DEVOPS_PROJECT_TIP_PL":"Enter the DevOps project names {resource} to confirm that you understand the risks of this operation.","HOW_TO_APPLY_MORE_CLUSTER_Q":"如何為企業空間申請更多的集群?","HOW_TO_APPLY_MORE_CLUSTER_A":"Contact the platform or cluster administrator to apply for more clusters.","OVERVIEW":"概覽","WORKSPACE_OVERVIEW_DESC":"企業空間為 KubeSphere 提供了安全隔離的、具有訪問權限控制的工作平台。這裡您可以看到目前企業空間内資源運行的概況。","ROLE_PL":"角色","PHYSICAL_RESOURCES":"物理資源用量","CRONJOB":"定時任務","CLUSTER_VALUE":"集群:{value}","SORT_BY_WORKSPACE_MEMORY_USAGE":"按記憶體使用量排行","SORT_BY_WORKSPACE_MEMORY_USAGE_WO_CACHE":"按記憶體使用量排行","SORT_BY_WORKSPACE_POD_COUNT":"Sort by pod quota usage (%)","SORT_BY_WORKSPACE_CPU_USAGE":"按 CPU 使用量排行","SORT_BY_WORKSPACE_NET_BYTES_TRANSMITTED":"按網路流出速率排行","SORT_BY_WORKSPACE_NET_BYTES_RECEIVED":"按網路流入速率排行","PROJECT_EMPTY_DESC":"Please create a project.","CREATE_PROJECT":"創建項目","CREATE_MULTI_CLUSTER_PROJECT":"Create Multi-cluster Project","CREATE_MULTI_CLUSTER_PROJECT_DESC":"您可以創建聯邦項目,讓項目運行在多個集群中,為應用提供快速疊代開發的容器環境並實現高可用。","MULTI_CLUSTER_PROJECT_PL":"聯邦項目","FED_HOST_NAMESPACE_TIP":"該項目為聯邦項目的相關資源, 請勿在此項目下操作資源","MULTI_CLUSTER_PROJECT":"聯邦項目","PROJECT_NAME_EXISTS_IN_HOST":"項目名在主集群上已存在","SELECT_CLUSTER_DESC":"選擇要創建項目的集群。","CLUSTER_EMPTY_DESC":"請選擇集群。","PROJECT_NAME_EXISTS_IN_CLUSTER":"項目名稱在集群 {cluster} 中已存在","PROJECT_CLUSTER_SETTINGS_DESC":"選擇要創建項目的集群. 當選擇了多個集群時, 將創建聯邦項目","FEDPROJECT_CANNOT_ADD_CLUSTER":"無法添加新的集羣","WORKSPACE_SETTINGS":"企業空間設置","WORKSPACE_BASIC_INFO_DESC":"Basic information provides the overview of the workspace. You can view the basic information of the workspace.","WORKSPACE_BASE_INFO_Q1":"如何為企業空間申請更多的集群?","WORKSPACE_BASE_INFO_A1":"Contact the platform or cluster administrator to apply for more clusters.","WORKSPACE_INFO":"企業空間資訊","WORKSPACE_MEMBER_TCAP":"Workspace member","WORKSPACE_MEMBER_TCAP_PL":"Workspace members","WS_MEMBER_SCAP":"Workspace member","WS_MEMBER_SCAP_PL":"Workspace members","DEVOPS_PROJECT_TCAP":"DevOps 项目","DEVOPS_PROJECT_TCAP_PL":"DevOps projects","DEVOPS_PROJECT_LOW":"DevOps 项目","DEVOPS_PROJECT_LOW_PL":"DevOps projects","PROJECTS":"項目","ON":"On","OFF":"Off","WS_NETWORK_ISOLATION":"企業空間網路隔離","NETWORK_POLICY_UNINSATLLED_DESC":"The network policy component is not installed in this cluster.","DELETE_DESC":"Are you sure you want to delete the resource? The resource cannot be restored after it is deleted.","DELETE_WORKSPACE_PROJECTS_DESC":"刪除該企業空間關聯項目","DELETE_WORKSPACE_DESC":"刪除後將無法恢復,企業空間下的資源也同時會被銷毀。","DELETE_WORKSPACE_TIP":"確定刪除企業空間 {resource} ? 刪除後將無法恢復,企業空間下的資源也同時會被銷毀。","DEPARTMENT_PL":"Departments","DEPARTMENT_DESC":"A department in a workspace is a logical unit used for permission control. You can set a workspace role, multiple project roles, and multiple DevOps project roles in a department, and assign users to the department to control user permissions in batches.","NOT_ASSIGNED_TCAP":"Not Assigned","ADD_MEMBER_TIP_SI":"Are you sure you want to assign the user to {group}?","ADD_MEMBER_TIP_PL":"Are you sure you want to assign the users to the department {group}?","ASSIGNED":"Assigned","DEPARTMENT":"Department","SET_DEPARTMENTS":"Set Departments","DEPARTMENT_EMPTY_DESC":"No Department Available","NO_DEPARTMENT_TIP":"No department available. Please create a department on the right.","CREATE_DEPARTMENT":"Create Department","DELETE_GROUP_TIP":"確定刪除子部門 {group_name}? 刪除該部門的同時,所有成員的授權也將被取消。","DELETE_PARENT_GROUP_TIP":"確定刪除子部門 {group_name}? 刪除該部門的同時,其子部門也會被刪除,且所有成員的授權也將被取消。","PROJECT_VALUE":"Project: {value}","PROJECT_ROLE_VALUE":"Project role: {value}","DEVOPS_VALUE":"DevOps project: {value}","DEVOPS_PROJECT_ROLES_VALUE":"DevOps project role: {value}","WORKSPACE_ROLE":"Workspace Role","GROUP_WORKSPACE_ROLE_DESC":"企業空間角色將授予部門中的所有用戶。","MEMBER_CLUSTER_UPGRADE_TIP":"Member clusters with versions earlier than {version} do not support this function. Please upgrade the member clusters to {version} or later.","PROJECT_ROLE":"項目角色","SELECT_ROLE_TIP":"Please select a role.","ADD_PROJECT":"添加項目","CLUSTER_UPGRADE_REQUIRED":"The cluster version does not support this function. Please upgrade the cluster to {version} or later.","DEVOPS_PROJECT_ROLE":"DevOps 项目角色","ADD_DEVOPS_PROJECT":"添加 DevOps 项目","DEVOPS_PROJECTS":"DevOps 項目","WORKSPACE_MEMBERS":"Workspace Members","WORKSPACE_MEMBER_PL":"Workspace Members","WORKSPACE_MEMBER_DESC":"Workspace members can view or manage workspace resources. You can manage members and control their permissions in the workspace.","WORKSPACE_MEMBER_EMPTY_DESC":"Please invite a user to the workspace.","ROLE":"角色","REMOVE_MEMBER":"移除成員","REMOVE_MULTIPLE_MEMBERS":"Remove Multiple Members","REMOVE_MULTIPLE_MEMBERS_TIP":"Enter the usernames {resource} to confirm that you understand the risks of this operation.","INVITE_WORKSPACE_MEMBER_DESC":"You can invite members to the workspace.","INVITE_MEMBER":"Invite Member","INVITE":"Invite","INVITED_SUCCESSFULLY":"Invited successfully.","REMOVE_MEMBER_TIP":"確定移除成員 {resource} ?","WORKSPACE_QUOTA_PL":"Workspace Quotas","WORKSPACE_QUOTAS_DESC":"Workspace quotas are used to control the total resource usage of all projects and DevOps projects in a workspace.","RESOURCE_QUOTA_PL":"資源配額","USED_PERCENT":"Used: {percent}%","RESOURCE_LIMIT":"資源限制","EDIT_WORKSPACE_QUOTAS":"Edit Workspace Quotas","CPU_REQUEST":"CPU 預留","CPU_LIMIT":"CPU 限制","MEMORY_REQUEST":"記憶體預留","MEMORY_LIMIT":"記憶體限制","WORKSPACE_ROLE_PL":"企業角色","WORKSPACE_ROLE_DESC":"企業角色定義了在目前企業空間下用戶所擁有的權限。","WORKSPACE_ROLE_EMPTY_DESC":"Please create a workspace role.","ROLE_WORKSPACE_ADMIN":"Manage all resources in the workspace.","ROLE_WORKSPACE_REGULAR":"企業空間普通成員,無法創建 DevOps 项目和項目。","ROLE_WORKSPACE_VIEWER":"企業空間的觀察者,可以查看企業空間下所有的資源資訊。","ROLE_WORKSPACE_SELF_PROVISIONER":"企業空間普通成員,可以在企業空間下創建 DevOps 项目和項目。","CREATE_WORKSPACE_ROLE":"創建企業角色","WORKSPACE_ROLE_NAME_TIP":"請設置一個唯一識別碼作為角色名稱。","NEXT_STEP":"接下來要做的事情","NEXT_STEP_DESC":"接下來您需要編輯權限,編輯好權限後帳號角色才能創建成功。","PERMIGROUP_PROJECTS_MANAGEMENT":"項目","PERMISSION_PROJECTS_VIEW":"Project Viewing","PERMISSION_PROJECTS_VIEW_DESC":"View all projects in the workspace.","PERMISSION_PROJECTS_MANAGEMENT":"Project Management","PERMISSION_PROJECTS_MANAGEMENT_DESC":"Create, edit, and delete projects in the workspace.","PERMISSION_PROJECTS_CREATE":"Project Creation","PERMISSION_PROJECTS_CREATE_DESC":"Create projects and become an administrator of the created projects.","PERMIGROUP_DEVOPS_MANAGEMENT":"DevOps 項目","PERMISSION_DEVOPS_VIEW":"DevOps Project Viewing","PERMISSION_DEVOPS_VIEW_DESC":"View all DevOps projects in the workspace.","PERMISSION_DEVOPS_MANAGEMENT":"DevOps Project Management","PERMISSION_DEVOPS_MANAGEMENT_DESC":"Create, edit, and delete DevOps projects in the workspace.","PERMISSION_DEVOPS_CREATE":"DevOps Project Creation","PERMISSION_DEVOPS_CREATE_DESC":"Create DevOps projects and become an administrator of the created DevOps projects.","PERMISSION_APPS_MANAGEMENT":"應用管理","PERMISSION_WORKSPACE_APP_REPOS_VIEW":"App Repository Viewing","PERMISSION_WORKSPACE_APP_REPOS_VIEW_DESC":"View app repositories in the workspace.","PERMISSION_WORKSPACE_APP_REPOS_MANAGEMENT":"App Repository Management","PERMISSION_WORKSPACE_APP_REPOS_MANAGEMENT_DESC":"Create, edit, and delete app repositories in the workspace.","PERMISSION_WORKSPACE_APP_TEMPLATES_VIEW":"App Template Viewing","PERMISSION_WORKSPACE_APP_TEMPLATES_VIEW_DESC":"View app templates in the workspace.","PERMISSION_WORKSPACE_APP_TEMPLATES_MANAGEMENT":"應用模板管理","PERMISSION_WORKSPACE_APP_TEMPLATES_MANAGEMENT_DESC":"Upload, edit, and delete workspace app templates, and release and delete apps in the platform App Store.","PERMISSION_WORKSPACE_GROUPS_VIEW":"Department Viewing","PERMISSION_WORKSPACE_GROUPS_VIEW_DESC":"View the structure and members of workspace departments.","PERMISSION_WORKSPACE_GROUPS_MANAGEMENT":"Department Management","PERMISSION_WORKSPACE_GROUPS_MANAGEMENT_DESC":"Manage the structure, members, and permissions of workspace departments.","PERMISSION_WORKSPACE_MEMBERS_VIEW":"成員查看","PERMISSION_WORKSPACE_MEMBERS_VIEW_DESC":"View workspace members.","PERMISSION_WORKSPACE_MEMBERS_MANAGEMENT":"成員管理","PERMISSION_WORKSPACE_MEMBERS_MANAGEMENT_DESC":"Invite, edit, and delete workspace members.","PERMISSION_WORKSPACE_ROLES_VIEW":"角色查看","PERMISSION_WORKSPACE_ROLES_VIEW_DESC":"View workspace roles.","PERMISSION_WORKSPACE_ROLES_MANAGEMENT":"角色管理","PERMISSION_WORKSPACE_ROLES_MANAGEMENT_DESC":"Create, edit, and delete workspace roles except system preset roles.","PERMIGROUP_WORKSPACE_SETTINGS":"企業空間設置","PERMISSION_WORKSPACE_SETTINGS_VIEW":"Workspace Settings Viewing","PERMISSION_WORKSPACE_SETTINGS_VIEW_DESC":"企業空間普通成員,無法創建 DevOps 项目和項目。","PERMISSION_WORKSPACE_SETTINGS_MANAGEMENT":"Workspace Settings Management","PERMISSION_WORKSPACE_SETTINGS_MANAGEMENT_DESC":"Manage workspace settings and edit workspace information and network policies.","abortPipeline":"檢查結果是否影響後續任務","Absolute duration":"代碼塊所用的絕對時間","Add another credential":"增加一個憑證","Add conditions":"添加條件","Add nesting conditions":"添加嵌套條件","Add nesting steps":"添加嵌套步驟","Add Parallel Stage":"添加並行階段","Add Step":"添加步驟","archiveArtifacts":"保存成品","Are you sure to close this pipeline Editor ?":"確定關閉流水線編輯?","artifacts":"成品","Authentication Token":"身份驗證令牌","Automatically generated by GitHub":"由 GitHub 自動生成","bcc":"密件副本","BEHAVIORAL_STRATEGY":"行為策略","blocker":"阻斷","BLOCKER":"Blocker","NOTICE":"Notice","Branches":"分支","branch success":"分支成功","@somebody to help review":"可以@某人來幫助審核","Send messages by email":"可以通過郵件發送訊息","Send messages in the build":"可以在構建中發送訊息","Change Current Directory":"更改目前目錄","Chinese is not allowed in the pipeline configuration":"配置中不允許含有中文","Clean when aborted":"清理失敗不影響運行","Clean Workspace":"清理企業空間","Code Quality Check":"代碼質量檢查","COMMIT_ID":"Commit ID","Config File Path":"配置文件路徑","config name":"配置名稱","configs":"配置","Configuration error":"配置資訊錯誤","container":"指定容器","Continue":"繼續編輯","credential Id":"憑證 ID","Credential Id":"憑證 ID","credentialsId":"憑證 ID","critical":"嚴重","Current branch name must match the input value":"目前分支名稱需符合輸入值","defaultValue -1 means not to discard":"預設值 -1: 不會丢棄紀錄","Delete all resources of the deployment file":"刪除部署文件所對應的所有資源","Deploy resources to the Kubernetes cluster":"將資源部署到 kubernetes 集群","Didn't pass":"未通過","dir":"切換目錄","Discard":"忽略","Discover branches from repository":"發現存儲庫上的分支","DISCOVER_PR_FROM_FORKS":"以 Fork 倉庫中發現 PR","DISCOVER_PR_FROM_ORIGIN":"以原倉庫中發現 PR","Discover pull requests from forks":"發現 Fork 儲存庫與目標儲存庫相同的 PR","Discover pull requests from origin":"發現原始儲存庫與目標儲存庫相同的 PR","Docker Container Registry Credentials":"Docker 容器倉庫憑證","Docker Registry URL":"Docker 倉庫 URL","dockerCredentials":"Docker 容器倉庫憑證","Drag and drop tasks to sort":"可以拖放任務進行排序","Duration":"持續時間","echo":"打印訊息","Edit Config":"編輯配置","Edit Credential":"編輯憑證","Enable Variable Substitution in Config":"在配置中啟用變量替換","enableConfigSubstitution":"啟用變量替換","Enter an expression":"輸入一個表達式","Environment name":"環境變量名稱","Executes the code inside the block with a determined time out limit.":"使用確定的超時限制執行塊内的代碼.","expression":"表達式","Failure":"失敗","For accessing GitHub":"用於獲取 GitHub","get token":"獲取 Token","info":"提示","input":"審核","Inspection results do not affect subsequent tasks":"檢查結果不影響後續任務","instance failed to match at least one schema":"至少需要一個嵌套步驟","Internal nested conditions only need to satisfy one":"内部嵌套的條件只需符合一個","Internal nesting conditions must be matched":"内部嵌套的條件需全部滿足","Jenkinsfile syntax error, message":"Jenkinsfile 語法錯誤,訊息","key File Variable":"私鑰變量","keyFileVariable":"私鑰變量","Kubeconfig Variable":"kubeconfig 變量","Kubernetes Namespace for Secret":"Kubernetes 密鑰命名空間","Kubernetes Secrets":"Kubernetes 密鑰","Line":"行","Load credentials into environment variables":"加載憑證到還境變量","Load the sonarqube configuration provided by Jenkins into the Pipeline.":"將 Jenkins 中的 sonarqube 配置加載到流水線中","mail":"郵件","major":"重要","minor":"次要","Missing one or more required properties: 'name'":"name 不能為空","Negative prefix":"否定前缀","NO_BRANCH_FOUND_TIP":"未發現任何分支","No need":"不需要","Normal":"通用","Not Build":"未執行","Not fail build":"失敗不影響運行","not support edit nested stage":"暫不支持編輯嵌套階段","passphrase Variable":"密碼變量","passphraseVariable":"密碼變量","Password Variable":"密碼變量","passwordVariable":"密碼變量","PIPELINE_LOW":"流水線","Pipeline Configuration":"編輯流水線","Pipeline List":"流水線列表","pipeline syntax error":"流水線語法錯誤","Please add at least one step.":"至少添加一個步驟","Please input images name":"請輸入鏡像名稱","Please input the credential name.":"請輸入憑證名稱","Press enter for the next":"按Enter鍵以進行下一步","Print message":"打印訊息","Pull code by Git":"通過 Git 拉取代碼","Pull code by SVN":"通過 SVN 拉取代碼","Queue":"列隊中","Recipient":"收件人","Registry Credentials":"倉庫憑證","remote":"倉庫地址","Run Pipeline":"運行流水線","Save Artifact":"保存成品","Repo Scanned Successfully":"Repo Scanned Successfully","WEBHOOK_PUSH":"Webhook 推送","secretName":"秘鑰名稱","secretNamespace":"密鑰命名空間","SELECT_THIS_REPOSITORY":"選擇此倉庫","Sender":"寄件人","sh":"shell 腳本","Shell commands can be executed in the container":"可以在容器中執行 shell 命令","Show Advanced Settings":"顯示高级設置","show yaml editor":"用 YAML 編輯器編輯","sonar is the default config name.":"預設配置名稱是 sonar","Sorry, you don't have the permission to do this.":"抱歉,您沒有權限進行此操作","Specify a container to add nested tasks to execute inside the container":"指定容器,可添加嵌套任務在容器内執行","Start the follow-up task after the inspection":"檢查通過後開始後續任務","Started By":"實施者","Subject":"主題","submitter":"審核者","submitterParameter":"提交參數","Text Variable":"文本變量","The conditions required to implement the current phase (optional).":"執行目前階段段所需要滿足的條件 (可選)","The environment variable entered before running the pipeline is match the current value.":"運行流水線前輸入的環境變量與目前值一致","The label on which to run the Pipeline or individual stage":"流水線或單個階段的標籤","This name has been used.":"此名稱已被使用","Time Used":"用時","Timeout":"超時","timeout":"超時","Timeout after no activity in logs for this block":"此區塊代碼無紀錄輸出後開始計算超時","timer":"定時器","TRIGGER_REMOTE_BUILD":"觸發遠程構建(例如,使用腳本)","Unnamed":"未命名","Use the following URL to remotely triggerworkbench the build":"使用以下 URL 遠程觸發構建","User types that can trigger builds":"可以觸發構建的用戶類型","username or group name, multiple values ​​used, separated":"用戶名或組名,多個值使用英文逗號分隔","Username Variable":"用戶名變量","usernameVariable":"用戶名變量","waitForQualityGate":"代碼質量檢查(SonarQube)","Webhook":"Webhook","withCredentials":"添加憑證","withSonarQubeEnv":"Sonarqube 配置","Wrong Token":"Token 錯誤","You can execute shell commands or windows batch commands in the build.":"可以在構建中執行 shell 命令或者 windows 的 batch 命令","PIPELINE_DESC":"流水線是一組可擴展的工具,可以通過組合它們來實現持續集成和持續交付。\n 您可以在此頁面創建並管理流水線。","username_password":"帳戶憑證","login_Plateform":"登入平台","CREDENTIALS_DESC":"憑證是包含了一些敏感數據的對象,如用戶名密碼,SSH 密鑰和 Token 等,\n 用於在 Pipeline 運行時, 為拉取代碼、push/pull 鏡像、SSH 執行腳本等過程提供認證","AUTHENTICATION_TOKEN_TIP":"如果需要通過訪問預定義 URL 開觸發構建,請啟用此選項。\n 此功能的的一個典型用法是通過源代碼管理系統的鉤子腳本來進行觸發。\n 您需要提供一個字符串形式的授權令牌,以便只有擁有授權令牌的人才能觸發遠程構建。","CRON_TIP":"This field follows the cron syntax (slightly different).\n Specifically, each line contains 5 fields separated by tabs or spaces.\n minutes: the first few minutes of an hour (0-59)\n hours: the first few hours of the day (0-23)\n the days of the month: the first few days of a month (1-31 )\n Month: The first few days of the first few days (0-12), the first few days of the week (0-12),\n 0 and 7 are Sundays. ","PIPELINES_BASEINFO_DESC":"請輸入流水線的基本資訊","PIPELINE_ADVANCE_SETTINGS_DESC":"\t為流水線配置複雜行為策略(可選)","CREDENTIALS_CREATE_DESC":"創建用於 DevOps 項目中的憑證","CHECKOUT_DESC":"拉取代碼,常用於拉取非 Git 代碼,例如 SVN 等等","PRIVATE_IMAGE_DESC":"To deploy from a private image repository,\n you need to create a mirrored repository and then pull the image. ","AUTHENTICATION_TOKEN_DESC":"使用以下 URL 遠程觸發構建:\n JENKINS_URL / job / JOB_NAME / build?token =TOKEN_NAME\n 或者/ buildWithParameters?token = TOKEN_NAME 可選擇附加&cause =原因提供將包含在紀錄的構建原因中的文本。","PIPELINE_NO_CONFIG":"目前 Pipeline 中並沒有找到相關配置文件","EDIT_CREDENTIAL_DESC":"下列表單不會顯示原有憑證資訊,重新輸入會將其覆蓋。","pipeline_conditions":"條件","CODE_SMELL":"容易出錯","BUG":"Bug","VULNERABILITY":"漏洞","SECURITY_HOTSPOT":"安全","PIPELINE_CREATE_DESC":"初始化完成後將開始 Pipeline 的任務執行","PIPELINE_QUEUED_DESC":"您需要等待 agent 啟動並執行流水線(注:如 agent 長時間沒有啟動請檢查 agent 配置和集群資源情況)","waitForQualityGate_desc":"代碼質量檢查標準來源於SonarQube的 Quality Gate (質量閥),如果需要自定義檢查標準請前往 SonarQube 設置","REVIEW_DESC":"流水線運行至此任務將會暫停,審核後可選擇繼續或终止","INPUT_DESC":"流水線運行至此任務將會暫停,創建者和被@的人可以選擇繼續或終止流水線","LoadPrevData_Desc":"檢測到此流水線上次未編輯成功,是否加載上次數據繼續編輯?","withSonarQubeEnv_DESC":"快速的定位代碼中潛在的或者明顯的錯誤","waitForQualityGate_DESC":"在執行代碼分析後執行","script_DESC":"執行groovy腳本","pipeline_owner":"DevOps 项目的所有者,可以進行 DevOps 项目的所有操作","pipeline_maintainer":"DevOps 项目的主要維護者,可以進行項目内的憑證配置、Pipeline 配置等操作","pipeline_developer":"DevOps 项目的開發者,可以進行 Pipeline 的觸發以及查看","pipeline_reporter":"DevOps 项目的觀察者,可以查看 Pipeline 的運行情况","PATTERN_PIPELINE_NAME_VALID_NAME_TIP":"名稱不合法 (僅支持大小寫字母、數字、_、-)","GET_GITHUB_TOKEN_DESC":"用於獲取 GitHub 代碼倉庫\n \n 獲取 Token\n ","PIPELINES_FOOTER_SEE_MORE":"前往分支詳情頁查看更多 →","JENKINS_LINS_ERROR":"第 {line} 行有語法錯誤","Invalid credential ID":"憑證 ID 格式不合法","Batch Run Fail":"批量運行失敗","Run Start":"運行開始","Choose a Pipeline Template":"選擇流水線模板","DEVOPS_PROJECT_DESC":"DevOps 项目用於對資源進行分組管理以及控製不同用戶的資源管理權限。"} \ No newline at end of file diff --git a/packages/bootstrap/assets/v3dist/locale-zh.191f77886fd33ed39cc7.json b/packages/bootstrap/assets/v3dist/locale-zh.191f77886fd33ed39cc7.json deleted file mode 100644 index 8acdf99c639..00000000000 --- a/packages/bootstrap/assets/v3dist/locale-zh.191f77886fd33ed39cc7.json +++ /dev/null @@ -1 +0,0 @@ -{"DELETE_CUSTOM_SCALING_WITH_WORKLOAD":"删除工作负载后,关联的自定义扩缩策略也将被删除。","ENT_TITLE":"KubeSphere 企业版","KS_QKCP_DESCRIPTION":"KubeSphere Enterprise 是由 QingCloud 开发的企业级容器平台,基于 KubeSphere 开源平台。","ABOUT_KUBESPHERE_ENTERPRISE":"关于 KubeSphere 企业版","KUBESPHERE_CLOUD_DESC":"KubeSphere Cloud 围绕 Kubernetes 构建的数字化生态,以极高要求、极高标准,为客户提供企业级的云原生服务与支持,现已有备份容灾、集群巡检、轻量集群等,助力您更便捷高效地管理、保护、交付生产级应用。","APP_AUTHORIZED":"已授权","APP_UNAUTHORIZED":"未授权","APP_UNAUTHORIZED_DESC":"此应用未授权。","VIEW_EVENTS":"查看事件","GPU_MEMORY":"显存","EDIT_TAGS":"编辑标签","ADD_TAGS":"添加标签","GPU_TEMP":"GPU 温度","GPU_ENERGY_USAGE":"GPU 功率(W)","GPU_ENERGY_NO_PERCENT_TCAP":"GPU 功率","GPU_MEMORY_USAGE_STATUS":"显存用量","NODE_GPU_MEMORY_USAGED":"已使用","NODE_GPU_MEMORY_UNUSAGED":"可用","ENT_CLUSTER_GATEWAY_DESC":"在集群、企业空间和项目中设置并管理外部网络接入网关和服务管理。","ENT_CLUSTER_ENABLE_GATEWAY_DESC":"在创建应用路由前,您需要启用外部网络访问门户,即网关。 此处将创建对应的应用路由控制器,用于转发请求到后端服务。","WORKSPACE_GATEWAY_PL":"企业空间网关","WORKSPACE_GATEWAY_NOT_ENABLED":"企业空间网关未启用","ENT_WORKSPACE_ENABLE_GATEWAY_DESC":"无法在集群管理页面上设置企业空间网关。如果您需要设置企业空间网关,请前往对应的企业空间。","ENT_PROJECT_ENABLE_GATEWAY_DESC":"无法在集群管理页面上设置项目网关。如果您需要设置项目网关,请前往对应的项目。","OPENSEARCH_DESC":"您可以使用 OpenSearch 日志接收器将日志数据导入 OpenSearch 数据库。 如需使用此功能,您需要提前部署 OpenSearch。","LOG_COLLECTION_OS_URL_TIPS":"目标 OpenSearch 实例的 IP 地址或主机名。","LOG_COLLECTION_OS_USER_TIPS":"用于访问 OpenSearch 的用户名。","LOG_COLLECTION_OS_PASSWORD_TIPS":"用于访问 OpenSearch 的密码。","BATCH_MANAGE":"批量管理","HAS_SAME_TAG":"标签已存在。请选择其他标签。","CLUSTER_REPEATED_TAGS_DESC":"标签的键必须在每个集群上唯一。","CLUSTER_MAX_TAGS_DESC":"每个集群可以携带最多 5 个标签。","EMPTY_TAG_LABEL_DESC":"请输入标签的键。","EMPTY_TAG_VALUE_DESC":"请输入标签的值。","HAS_ADD_TAGS":"已添加标签","CLUSTER_TYPE_DESC":"选择一个类型来标识集群的用途。","DELETE_CLUSTER_SWIPE_DESC":"我了解此操作的风险。","DELETE_CLUSTER_NOTIFICATION_CONFIGURAITON":"删除集群中的所有通知配置数据","REMOVE_CLUSTER_TIP_C":"集群被移除后,集群中原有的多集群配置数据不会被自动清除,卸载 KubeSphere 或删除关联资源时可能会导致用户数据丢失。请务必参照《KubeSphere 企业版集群管理指南》的“移除成员集群”章节手动清理被移除集群中原有的多集群配置数据。","CLUSTER_TAG":"集群标签","CLUSTER_TAGS":"集群标签","NO_CLUSTER_TAGS":"未发现集群标签","NO_CLUSTER_TAGS_DESC":"请创建集群标签。","CLUSTER_TAG_ADD_HELP":"如果没有标签满足要求,您可以创建标签。","CLUSTER_TAG_TOOLTIP_CONTENT":"同一集群上只能绑定相同标签键的一个标签值。每个集群最多绑定 5 个标签。","CLUSTER_LABEL":"集群标识","CLUSTER_LABEL_DESC":"标识集群的用途。","CLUSTER_LABEL_TOOLTIP_CONTENT":"建议通过标签的方式来标识集群,后续版本中会移除该“集群标识”功能,请谨慎使用。","TAG_PL":"标签","CREATE_TAGS":"创建标签","CREATE_TAGS_DESC":"不同标签的键可以相同。","ENT_CLUSTER_TAG_DESC":"键和值不能为空,最长 63 个字符。","CLUSTER_TAG_EMPTY_DESC":"请添加一个标签。","DELETE_MULTIPLE_TAGS":"批量删除标签","DELETE_TAG":"删除标签","DELETE_CLUSTER_TAG_DESC":"标签删除后将从所有集群上移除。","DELETE_CLUSTER_TAG_CONFIRM_DESC":"请输入标签的键和值 {resource} 以确认您了解此操作的风险。","DELETE_CLUSTER_TAGS_CONFIRM_DESC":"请输入标签的键和值 {resource} 以确认您了解此操作的风险。","EDIT_TAG":"编辑标签","ADD_TO_CLUSTERS":"添加到集群","ADD_TAG_TO_CLUSTERS":"添加标签到集群","ADD_TAG_DESC":"标签的键在每个集群上必须唯一。新标签不会覆盖现有的标签。","ADD_TAG_SUCCESSFUL":"标签添加成功。","REMOVE_FROM_CLUSTERS":"从集群上移除","REMOVE_TAG_FROM_CLUSTERS":"从集群上移除标签","REMOVE_TAG":"移除标签","REMOVE_TAG_DESC":"您确定从集群上移除标签吗?","REMOVE_TAG_SUCCESSFUL":"标签移除成功。","NO_CLUSTER_FOUND":"未发现集群","NAME_DESC_LENGTH":"名称只能包含小写字母、数字和连字符(-),必须以小写字母或数字开头和结尾,最长 {length} 个字符。","INVALID_NAME_DESC_LENGTH":"名称无效。名称只能包含小写字母、数字和连字符(-),必须以小写字母或数字开头和结尾,最长 {length} 个字符。","DEFAULT_IMAGE_REGISTRY":"默认镜像服务","DEFAULT_IMAGE_REGISTRY_TCAP":"默认镜像服务","SET_AS_DEFAULT":"设为默认","SET_AS_DEFAULT_REGISTRY_DESC":"设置镜像服务为默认镜像服务。如果没有特别指定,系统将使用默认镜像服务中的镜像创建容器。每个项目只允许存在一个默认镜像服务。","SET_DEFAULT_REGISTRY_SUCCESSFUL":"设置默认镜像服务成功。","ACTIVATION_CONDITION_SCAP":"激活条件","ALERTING_RULE_NAME":"规则名称","REFERENCE":"参考文档","NO_MONITOR_METRIC":"当前告警规则未触发告警,暂无监控数据。","DISABLE_MULTIPLE_ALERTING_POLICIES":"批量禁用规则组","ENABLE_ALERTING_POLICY":"启用规则组","ENABLE_MULTIPLE_ALERTING_POLICIES":"批量启用规则组","DISABLE_ALARM_TIP":"规则组被禁用后,系统将停止对被监控的资源生成告警。请谨慎执行此操作。","RESET_MULTIPLE_ALERTING_POLICIES":"批量重置规则组","RESET_MULTIPLE_ALERTING_POLICIES_DESC":"您确定重置规则组 {name} 吗?","RESET_SUCCESSFUL":"重置成功。","BUILT_IN_POLICIES_TOOLTIP":"Whizard 可观测中心启用后,请以具有 platform-admin 角色的用户登录然后在 Whizard 可观测中心管理默认规则组。","Rule":"规则","RULES_LIST_EMPTY":"请设置告警规则。","DURATION_REQUIRED":"请设置持续时间。","OPERATOR_REQUIRED":"请设置操作符。","NETWORK_BANDWIDTH":"网络带宽","FUNCTION_UPGRADE":"功能升级","FUNCTION_UPGRADE_DESC":"该集群下不支持容器组 IP 池的禁用、迁移和 Overlay 模式的编辑功能,如需使用请升级集群至 KubeSphere 企业版 3.4.0 及以上版本。","IPPOOL_OVERLAY_MODE":"Overlay 模式","IPPOOL_BLOCK_SIZE":"IP 池块大小","EDIT_OVERLAY":"编辑 Overlay 模式","FEATURE_UPGRADE":"特性升级","IPPOOL_USED_TIP":"容器组 IP 池已被容器组使用时,无法分配企业空间和删除 IP 池。如果存在正在使用容器组 IP 池的容器组,需要为容器组指定其他容器组 IP 池或删除容器组。","IP_POOL_RANGE":"IP 池范围","EDIT_POD_IP_POOL":"编辑容器组 IP 池","ENTER_NETWORK_SEGMENT":"请输入网段。","POD_IP_POOL_IP_RANGE":"容器组 IP 池的 IP 范围","POD_IP_POOL_NAME_DESC":"名称只能包含小写字母、数字和连字符(-),必须以小写字母或数字开头或结尾,最长 63 个字符。","IPIP_MODE":"IPIP 模式","IPIP_MODE_REQUIRED":"请选择一种 IPIP 模式。","IPIP_MODE_DESC":"在每个节点上创建一个 IP in IP 隧道来实现容器之间的通信,不能与 VXLAN 同时设置,两者都不设置时转变为 BGP 模式。","CONFIGURATION_MODE":"配置模式","VXLAN_MODE":"VXLAN 模式","VXLAN_MODE_REQUIRED":"请选择一种 VXLAN 模式。","VXLAN_MODE_DESC":"在每个节点上创建一个 VXLAN 隧道来实现容器之间的通信,不能与 IPIP 同时设置,两者都不设置时转变为 BGP 模式。","IP_POOL_BLOCK_SIZE_DESC":"IP 池用于分配 IP 的 block 的 CIDR 大小。","NAT_OUTGOING_DESC":"通过 NAT 方式跨 IPPool 通信","OPEN_NAT_OUTGOING":"开启 NAT outgoing","CLOSE_NAT_OUTGOING":"关闭 NAT outgoing","OPEN":"开启","OPENED":"已开启","CLOSED":"已关闭","OPENED_SUCCESSFUL":"开启成功","CLOSED_SUCCESSFUL":"关闭成功","SELECT_NODE_DES":"使用标签选择器为 IP 池匹配合适的节点。","SELECT_LABEL_ALL_RESOUCE":"匹配标签选择范围内的所有资源。","ALL_DISABLED":"全部禁止","DISABLE_SELECT_NODE":"禁止节点选择。","NODE_RANGE":"节点范围","LABEL_SELECT":"标签选择","EDIT_OVERLAY_MODE":"编辑 Overlay 模式","DISABLE_POD_IP_POOL":"禁用容器组 IP 池","DISABLE_POD_IP_POOL_DESC":"容器组 IP 池禁用后将不会继续 IP 地址的分配,也不会影响已经分配 IP 地址的容器组的网络。迁移容器组 IP 时, 新 IP 池可用地址数量不能少于当前 IP 池使用的 IP 地址,迁移完成后,将重启工作负载。禁用 ip 池会自动解除项目绑定,请谨慎操作!","MIGRATE_POD_IP_POOL":"迁移容器组 IP 池","MIGRATE_POD_IP_POOL_DESC":"将已经分配 IP 地址的容器组迁移至新的容器组 IP 池。","SELECT_POD_IP_POOL":"请选择容器组 IP 池。","MIGRATE_POD_IP_POOL_TIP":"容器组的 IP 地址将根据选择的容器组 IP 池进行分配。","SELECT_POD_IP_POOL_DESC":"请选择容器组 IP 池。","IPPOOL_IS_AUTO_ASSIGN":"是否自动分配","SELECT_POD_IP_POOL_TO_NODEGROUP_DESC":"将选择的容器组 IP 池添加到节点组。","CREATED_AGO":"创建于 {diff}","UPDATED_AGO":"更新于 {diff}","GPU_USAGE_SCAP":"GPU 用量","GPU_MEMORY_USAGE_SCAP":"显存用量","QUOTA_USAGE":"用量","PROJECT_CONFIG_QUOTAS_TIP":"只显示有资源上限和预留的项目数据。","APPLICATION_CLUSTER_QUOTA_STATISTICS":"集群配额统计","CPU_QUOTA":"CPU 配额","MEMORY_QUOTA":"内存配额","SORT_BY_NODE_GPU_UTILIZATION":"按 GPU 用量(%)排行","SORT_BY_NODE_GPU_MEMORY_UTILIZATION":"按显存用量(%)排行","SORT_BY_NAMESPACE_GPU_USAGE":"按 GPU 用量排行","SORT_BY_NAMESPACE_GPU_MEMORY_USAGE":"按显存用量排行","SORT_BY_WORKLOAD_GPU_USAGE":"按 GPU 用量排行","SORT_BY_WORKLOAD_GPU_MEMORY_USAGE":"按显存用量排行","SORT_BY_WORKSPACE_GPU_USAGE":"按 GPU 用量排行","SORT_BY_WORKSPACE_GPU_MEMORY_USAGE":"按显存用量排行","SORT_BY_NODE_GPU_USAGE":"按 GPU 用量排行","SORT_BY_NODE_GPU_MEMORY_USAGE":"按显存用量排行","SORT_BY_CLUSTER_GPU_USAGE":"按 GPU 用量排行","SORT_BY_CLUSTER_GPU_MEMORY_USAGE":"按显存用量排行","NODE_RESOURCE_USAGE":"节点资源用量","USED_VALUE_CORES_PERCENTAGE":"已使用:{value, plural, =1 {1 核} other {# 核}}({percentage})","USED_VALUE_UNIT_PERCENTAGE":"已使用:{value} {unit}({percentage})","TOTAL_VALUE_CORES":"总量:{value, plural, =1 {1 核} other {# 核}}","TOTAL_VALUE_UNIT":"总量:{value} {unit}","ENT_ENABLE_GATEWAY_TIP":"若要使用网关,请在集群、企业空间或项目中配置网关。","ANNOTATION_FORMAT_DESC":"注解的键只能包含字母、 数字、 连字符(-), 下划线(_),斜线(/)和句点(. ),必须以字母或数字开头和结尾,最长 63 个字符(如果键包含域名,最长 253 个字符)。","BLOCK":"块","DRIVER":"驱动","DRIVER_REQUIRED":"请输入驱动","DRIVER_FORMAT_ERROR":"驱动格式错误, 仅支持小写字母、数字、中划线和点","DRIVER_PLACEHOLDER":"例如:csi.example.com","FSTYPE_PLACEHOLDER":"例如:ext4","VOLUME_ATTRIBUTES":"卷属性","NODE_EXPAND_KEY":"节点展开密钥","NODE_PUBLISH_KEY":"节点发布密钥","NODE_STAGING_KEY":"节点暂存密钥","CONTROLLER_EXPAND_KEY":"控制器展开密钥","CONTROLLER_PUBLISH_KEY":"控制器发布密钥","PATH_TYPE":"路径类型","ANY_PATH":"任意路径,不需要检查目标路径","DIRECTORY_OR_CREATE":"一个目录,如果该目录不存在,则自动创建一个目录","FILE_OR_CREATE":"一个文件,如果该文件不存在,则自动创建一个文件","DIRECTORY_EXIST":"一个现有的目录","FILE_EXIST":"一个现有的文件","SOCKET_EXIST":"一个现有的 socket","CHARACTER_DEVICE_EXIST":"一个现有的字符设备","BLOCK_DEVICE_EXIST":"一个现有的块设备","SERVER_IP_ADDRESS":"Server IP 地址","SECRET_INFO":"密钥信息","BIND_EXISTING_PVC":"绑定已有持久卷创建","BIND_EXISTING_PVC_DESC":"选择已有的持久卷来创建卷。","PV_STATUS_FREED":"已释放","PV_EMPTY_DESC":"如果没有持久卷满足要求,请联系集群管理员创建。","PLEASE_SELECT_PERSISTENT_VOLUME":"请选择持久卷","ADMIN_CREATE_PV_DESC":"如果没有持久卷满足要求,您可以 创建持久卷。","UNCLASSIFIED":"未分类","FILE_STORAGE":"文件存储","BLOCK_STORAGE":"块存储","storageclasses":"存储类型","EDGE_GPU_MEMORY_USAGE_SCAP":"GPU 显存用量","NPU_USAGE_SCAP":"NPU 用量","NPU_MEMORY_USAGE_SCAP":"NPU 显存用量","NPU_USAGE":"NPU 用量","NPU_MEMORY_USAGE":"NPU 显存用量","EDGE_GPU_MEMORY_USAGE":"GPU 显存用量","EDGE_GPU_MEMORY_UTILIZATION":"GPU 显存用量(%)","EDGE_GPU_MEMORY_USAGE_STATUS":"GPU 显存使用状态","EDGE_NODE_GPU_MEMORY_USAGED":"已用显存,","EDGE_NODE_GPU_MEMORY_UNUSAGED":"空闲显存","NPU_TEMP":"NPU 温度","NPU_ENERGY_NO_PERCENT_TCAP":"NPU 功率","NPU_VOLTAGE":"NPU 电压","NPU_MEMORY_USAGE_STATUS":"NPU 显存使用状态","EDGE_NODE_NPU_MEMORY_USAGED":"已用 NPU 显存,","EDGE_NODE_NPU_MEMORY_UNUSAGED":"未用 NPU 显存,","NPU_HEALTH_STATUS":"NPU 健康状态","BACK_EDGEWIZE_NODEGROUP":"返回边缘节点组","APPLICATION_RESOURCE_QUOTAS":"应用资源配额","UNAUTHORIZED_FEATURE":"未授权功能","UNAUTHORIZED_FEATURE_DESC":"此功能未被授权。请更新许可证以使用此功能。","ADMIN_INACTIVATED_LICENSE_DESC":"KubeSphere 企业版未激活。请激活 KubeSphere 企业版。","INACTIVATED_LICENSE_DESC":"KubeSphere 企业版未激活。请联系平台管理员激活 KubeSphere 企业版。","ADMIN_SUB_EXPIRED_LICENSE_DESC":"订阅服务已过期, 如果您想要继续体验完整的服务请输入激活信息。","SUB_EXPIRED_LICENSE_DESC":"订阅服务已过期, 请联系平台管理员更新许可证。","ADMIN_MA_EXPIRED_LICENSE_DESC":"维保已过期。如需维保服务请与商务联系。","MA_EXPIRED_LICENSE_DESC":"维保已过期。","ADMIN_UPDATE_LICENSE_DESC":"{type}服务将于 {day, plural, =1 {1 天} other {# 天}}后过期。如需维保服务请与商务联系","UPDATE_LICENSE_DESC":"{type}服务将于 {day, plural, =1 {1 天} other {# 天}}后过期。如果您想要继续体验完整的服务,请联系平台管理员更新许可证。","ADMIN_OVER_RESOURCE_LICENSE_LIMIT":"您当前所纳管的资源已超出授权范围,无法对现有资源进行操作和创建新的资源。如果您想要继续体验完整的服务,请更新许可证。","OVER_RESOURCE_LICENSE_LIMIT":"您当前所纳管的资源已超出授权范围,无法对现有资源进行操作和创建新的资源。如果您想要继续体验完整的服务,请联系平台管理员更新许可证。","ACTIVATE":"激活","ADMIN_AUTHORIZED_INVALID_LICENSE_DESC":"许可证无效。请更新许可证或联系 KubeSphere 技术支持。","AUTHORIZED_INVALID_LICENSE_DESC":"许可证无效。请联系平台管理员更新许可证。","EXPIRED_INVALID_LICENSE_DESC":"许可证已过期。请联系平台管理员更新许可证。","ADMIN_EXPIRED_INVALID_LICENSE_DESC":"许可证已过期。请更新许可证。","PLATFORM_FEATURES":"平台功能","RADON_DB_FEATURES":"RadonDB 功能","PASSWORD_CHARACTERS":"包含至少 1 个特殊字符(~!@#$%^&*()-_=+\\|[{}];:'\",<.>/? 或空格)。","I_AGREE_TO_THE":"我同意","TITLE_USERNAME":"{title} 用户名","TITLE_LOG_IN":"{title} 登录","NOTIFICATION_SUBSCRIPTION":"通知订阅","NOTIFICATION_SUBSCRIPTION_LOW":"通知订阅","NOTIFICATION_SUBSCRIPTION_DESC":"针对同一种通知渠道您可以配置多个不同的过滤条件的接收者。","NOTIFICATION_RECEIVER_EMPTY_DESC":"可以创建一个通知订阅。","EDIT_NOTIFICATION_SUBSCRIPTION":"编辑通知订阅","CREATE_NOTIFICATION_SUBSCRIPTION":"创建通知订阅","NOTIFICATION_SUBSCRIPTION_DETAIL":"通知订阅详情","NOTIFICATION_SUBSCRIPTION_TOTAL":"通知订阅账号数量","NOTIFICATION_SUBSCRIPTION_ACCOUNT":"通知订阅账号","NOTIFICATION_EMAIL_SUBSCRIPTION_DESC":"邮件通知订阅设置可前往通知订阅设置页面进行设置。","ADD_EMAIL_NOTIFICATION_SUBSCRIPTION":"添加邮件通知订阅","NOTIFICATION_RECEIVER_STATUS":"通知接收状态","NOTIFICATION_RECEIVER":"通知接收","NOTIFICATION_SUBSCRIPTION_PL":"通知订阅","NOTIFICATION_SUBSCRIPTION_EMPTY_DESC":"请创建通知订阅","NOTIFICATION_ENABLED":"通知已启用","NOTIFICATION_DISABLED":"通知已禁用","ENABLE_SUCCESSFUL":"启用成功。","NODE_TARGET_REPEAT":"监控目标重复。请选择其他监控目标。","DEPLOYMENTS_VALUES":"部署: {values}","STATEFULSETS_VALUES":"有状态副本集:{values}","DAEMONSETS_VALUES":"守护进程集:{values}","WORKLOADS_VALUES":"工作负载:{values}","RULE_NAME_REQUIRED":"请设置规则名称。","MONITOR_TARGET_EMPTY":"请选择监控目标。","ALARM_TARGET_REPEAT":"监控目标不能重复。请选择其他监控目标。","CLUSTER_FIELD_EMPTY":"请选择集群。","SELECT_A_TARGET_NODE":"请选择节点。","SET_NAMESPACE_BELONGS_TO":"请选择项目。","NAME_SPACE_REPEAT":"项目不能重复,请选择另一个项目。","THRESHOLD_INVALID":"请输入有效的指标阈值。","SEVERITY_REQUIRED":"请选择告警级别。","ALERT_RULE_REQUIRED":"请输入规则表达式。","MESSAGE_REQUIRED":"请输入消息概要。","RULE_LABEL_SETTING":"标签设置","RULE_LABEL_SETTING_DESC":"可在接收者配置中指定过滤条件过滤相关标签。","INCORRECT_KEY_DESC":"键值不正确","MONITOR_TARGET_CLUSTER_DELETED_DESC":"所选集群中存在已经被移除的集群,请重新选择","CLUSTER_DELETED":"集群已被移除","DATA_ACCESS":"数据接入","DATA_QUERY":"数据查询","LONG_TERM_STORAGE":"长期存储","RULE_CALCULATION":"规则计算","CONTAINER_QUOTA":"容器配额","GATEWAY_COMPONENT_LOW":"存储网关","COMPONENT_REPLICA_COUNT":"组件副本数量","REPLICA_DESC":"设置 {resource} 的副本数量,默认值为 {default}。","DATA_ROUTER":"数据路由","DATA_RETENTION_LOW":"数据保留","DATA_RETENTION_REPLICA_COUNT":"数据保留副本数量","ROUTER_COMPONENT_LOW":"数据路由","LOCAL_STORAGE":"本地存储","LOCAL_STORAGE_LOW":"本地存储","LOCAL_STORAGE_TIME":"本地数据存储时间 (天)","LOCAL_STORAGE_TIME_DESC":"设置本地数据的存储时间。时间至少为 3 天,默认为 7 天。","LOCAL_STORAGE_ERROR_MESSAGE":"本地存储组件副本数量不能小于数据保留副本的数量。","BASIC_SETTING":"基础设置","CACHE_SETTING":"缓存设置","QUERY_COMPONENT_LOW":"Query 组件","CACHE_COMPONENT_LOW":"Cache 组件","LONG_TERM_STORAGE_TIPS":"请先配置对象存储的参数,再配置网关、保留期和降采样组件的参数。","STORAGE_NOT_ENABLED":"未启用长期存储","STORAGE_ENABLE_GATEWAY_DESC":"启用长期存储后,您可以配置对象存储、网关、保留周期与降采样的组件参数。","OBJECT_STORAGE":"对象存储","OBJECT_STORAGE_TIPS":"请先配置对象存储的参数。","COMPACTOR":"Compactor 组件","STORE_GATEWAY":"存储网关","COMPRESSION_DOWNSAMPLING":"压缩和降采样","BUCKET":"Bucket 名称","BUCKET_NAME_DESC":"S3 对象存储桶的名称。","BUCKET_NAME_EMPTY_TIP":"请输入桶名称。","REGION":"区域","REGION_DESC":"您创建 Bucket 的地理区域。","ENDPOINT_DESC":"要连接的 AWS S3 对象存储地址。","ENDPOINT_EMPTY_TIP":"请输入终端节点。","ACCESS_KEY":"Access Key","ACCESS_KEY_DESC":"与 AWS 访问密钥 ID 相关联的密钥。","ACCESS_KEY_EMPTY_TIP":"请输入 Access Key。","SECRET_KEY_DESC":"与 AWS Access Key ID 关联的密钥。","SECRET_KEY_EMPTY_TIP":"请输入 Secret Key。","HTTP_PROTOCOL":"HTTP 协议","HTTP_PROTOCOL_DESC":"使用不安全的 HTTP 协议。","ADD_STORAGE_CLASS":"添加存储类","ADD_STORAGE_CLASS_DESC":"为对象存储添加用户元数据。","OBJECT_STORAGE_PARAMETERS":"对象存储参数","HTTP_CONFIGURATION":"HTTP 配置","HTTP_CONFIGURATION_DESC":"配置接收方用于与基于 HTTP 的 API 服务通信的 HTTP 客户端。","TLS_CERTIFICATE":"TLS 证书","TLS_CERTIFICATE_VERIFY":"TLS 证书验证 ","TLS_CERTIFICATE_VERIFY_DESC":"通过提交数字证书证明您的身份或表明您有权访问在线服务。","TLS_CONNECTION":"TLS 连接","CA_CERTIFICATE_DESC":"用于验证服务器证书的 CA文件。","CERT_CERTIFICATE":"Cert 文件","CERT_CERTIFICATE_DESC":"用于向服务器进行客户端证书身份验证的证书文件。","KEY_FILE":"密钥","KEY_FILE_DESC":"用于向服务器进行客户端证书身份验证的密钥文件。","SERVER_NAME_DESC":"ServerName 扩展以指示服务器的名称。","SERVER_CERTIFICATE_VERFICATION":"服务器证书验证","SERVER_CERTIFICATE_VERFICATION_DESC":"通过提交数字证书证明您的身份或表明您有权访问在线服务。","RETENTION_RAW":"原始数据存储时间 (天)","RETENTION_RAW_DESC":"原始数据存储时间。到期后,原始数据将被删除。","RETENTION_FIVE_MIN":"5m 降采样数据存储时间(天)","RETENTION_FIVE_MIN_DESC":"指定降采样到数据点 5 分钟间隔的数据存储时间。","RETENTION_ONE_HOUR":"1h 降采样数据存储时间(天)","RETENTION_ONE_HOUR_DESC":"指定降采样到数据点 1 小时间隔的数据存储时间。","DISABLE_STORAGE":"禁用长期存储","DISABLE_STORAGE_DESC":"您确定要禁用长期存储组件吗? 禁用后,对象存储配置将被删除,监测数据会被保留,但无法查询。","ALERT_MANAGEMENT":"告警管理","SELECT_CLUSTER":"选择集群","CUSTOM_PANEL_DESC":"选择需要监控的集群。","WHIZARD_MONITORING.BUILT_IN_ALERTING_PL":"内置告警","WHIZARD_MONITORING.CUSTOM_ALERTING_PL":"自定义告警","WHIZARD_MONITORING.RESOURCE_RANKING_PL":"资源统计排行","WHIZARD_MONITORING.RESOURCE_RANKING_DESC":"资源统计排行提供集群资源用量排行情况。","WHIZARD_MONITORING.RESOURCE_MONITORING":"资源监控","WHIZARD_MONITORING.MULTI_CLUSTER_MONITOR":"多集群监控","WHIZARD_MONITORING.PACK_UP":"收起","WHIZARD_MONITORING.UNFOLD":"展开","WHIZARD_MONITORING.COLLAPSE_CLUSTER_LIST":"收起集群列表","WHIZARD_MONITORING.UNFOLD_CLUSTER_LIST":"展开集群列表","WHIZARD_MONITORING.RESOURCE_FILTER":"资源查询","WHIZARD_MONITORING.OBSERVABILITY_ALL_CLUSTERS":"全部集群","WHIZARD_MONITORING.SUCCEEDED":"成功完成","PERSISTENT_VOLUME_CLAIM_LOW_PL":"持久卷声明","GRAPHICS_MEMORY_USAGE":"显存用量","QUOTA_REQUEST":"预留","QUOTA_LIMIT":"上限","QUOTA_TOTAL":"总量","CPU_QUOTA_USAGE":"已分配 CPU 资源","MEMORY_QUOTA_USAGE":"已分配内存资源","QUOTA_ALLOCATED":"已分配","VALUE_CORES":"{value, plural, =1 {1 核} other {# 核}}","VALUE_UNIT":"{value} {unit}","ALLOCATED_TOTAL":"已分配/总量","CLUSTER_ROLES_AND_MEMBERS":"集群成员和角色","CLUSTER_MEMBER_SCAP":"集群成员","CLUSTER_MEMBERS_SCAP":"集群成员","CLUSTER_ROLE_SCAP":"集群角色","CLUSTER_ROLES_SCAP":"集群角色","OBSERVABILITY_CENTER":"Whizard 可观测中心","DISTRIBUTED_OBSERVABILITY_CENTER_DESC":"统一的监控面板,提供平台纳管的所有集群的指标数据。","GLOBAL_ALERTS":"全局告警","GLOBAL_ALERTS_TOOLTIP":"这里仅统计当前所选择集群的告警","NONE_ALERT":"未发现告警","ALERT_EMPTY_DESC":"在所有集群中未发现全局告警。","SORT_BY_CLUSTER_CPU_USAGE":"按 CPU 用量排行","SORT_BY_CLUSTER_CPU_UTILISATION":"按 CPU 用量(%)排行","SORT_BY_CLUSTER_MEMORY_USAGE_WO_CACHE":"按内存用量排行","SORT_BY_CLUSTER_MEMORY_UTILISATION":"按内存用量(%)排行","SORT_BY_CLUSTER_DISK_SIZE_USAGE":"按磁盘用量排行","SORT_BY_CLUSTER_DISK_SIZE_UTILISATION":"按磁盘用量(%)排行","SORT_BY_CLUSTER_POD_COUNT":"按容器组数量排行","SORT_BY_CLUSTER_POD_UTILISATION":"按容器组配额用量(%)排行","SORT_BY_NODE_POD_COUNT":"按容器组数量排行","SORT_BY_NODE_CPU_USAGE":"按 CPU 用量排行","SORT_BY_NODE_MEMORY_USAGE_WO_CACHE":"按内存用量排行","SORT_BY_NODE_LOAD5":"按 5 分钟 CPU 平均负载排行","SORT_BY_NODE_LOAD15":"按 15 分钟 CPU 平均负载排行","SORT_BY_POD_CPU_USAGE":"按 CPU 用量排行","SORT_BY_POD_CPU_USED_REQUESTS_UTILISATION":"按已分配 CPU 预留(%)排行","SORT_BY_POD_CPU_USED_LIMITS_UTILISATION":"按已分配 CPU 上限(%)排行","SORT_BY_POD_MEMORY_USAGE_WO_CACHE":"按内存用量排行","SORT_BY_POD_MEMORY_USED_REQUESTS_UTILISATION":"按已分配内存预留(%)排行","SORT_BY_POD_MEMORY_USED_LIMITS_UTILISATION":"按已分配内存上限(%)排行","SORT_BY_POD_NET_BYTES_TRANSMITTED":"按出站流量排行","SORT_BY_POD_NET_BYTES_RECEIVED":"按入站流量排行","SORT_BY_POD_PVC_BYTES_USAGE":"按持久卷用量排行","SORT_BY_POD_PVC_BYTES_UTILISATION":"按持久卷用量(%)排行","SORT_BY_NAMESPACE_CPU_USED_REQUESTS_UTILISATION":"按已分配 CPU 预留(%)排行","SORT_BY_NAMESPACE_CPU_USED_LIMITS_UTILISATION":"按已分配 CPU 上限(%)排行","SORT_BY_NAMESPACE_MEMORY_USED_REQUESTS_UTILISATION":"按已分配内存预留(%)排行","SORT_BY_NAMESPACE_MEMORY_USED_LIMITS_UTILISATION":"按已分配内存上限(%)排行","SORT_BY_NAMESPACE_PVC_BYTES_USED":"按持久卷用量排行","SORT_BY_NAMESPACE_PVC_COUNT":"按容器组数量排行","SORT_BY_POD_GPU_USAGE":"按 GPU 用量排行","SORT_BY_POD_GPU_MEMORY_USAGE":"按显存用量排行","CPU_USAGE_TCAP":"CPU 用量","CPU_UTILISATION_TCAP":"CPU 用量(%)","MEMORY_USAGE_TCAP":"内存用量","MEMORY_UTILISATION_TCAP":"内存用量(%)","DISK_SIZE_USAGE_TCAP":"磁盘用量","DISK_SIZE_UTILISATION_TCAP":"磁盘用量(%)","POD_COUNT_TCAP":"容器组数量","NODE_POD_UTILISATION_TCAP":"容器组配额用量(%)","NODE_LOAD1_TCAP":"CPU 平均负载(1 分钟)","NODE_LOAD5_TCAP":"CPU 平均负载(5 分钟)","NODE_LOAD15_TCAP":"CPU 平均负载(15 分钟)","INODE_USAGE_TCAP":"Inode 用量(%)","METER_NET_RECEIVED_USAGE_TCAP":"入站流量","METER_NET_TRANSMITTED_USAGE_TCAP":"出站流量","CPU_USED_REQUESTS_UTILISATION_TCAP":"已分配 CPU 预留(%)","CPU_USED_LIMITS_UTILISATION_TCAP":"已分配 CPU 上限(%)","MEMORY_USED_REQUESTS_UTILISATION_TCAP":"已分配内存预留(%)","MEMORY_USED_LIMITS_UTILISATION_TCAP":"已分配内存上限(%)","PVC_BYTES_USED_TCAP":"持久卷用量","PVC_BYTES_UTILISATION_TCAP":"持久卷使用率 (%)","POD_UTILISATION_TCAP":"容器组配额用量(%)","GPU_USAGE":"GPU 用量","GPU_UTILIZATION":"GPU 用量(%)","GPU_MEMORY_USAGE":"显存用量","GPU_MEMORY_USAGE_TCAP":"显存用量","GPU_MEMORY_UTILIZATION":"显存用量(%)","NODE_GPU_UTILIZATION":"GPU 用量(%)","NODE_GPU_MEMORY_UTILIZATION":"显存用量(%)","GPU_USAGE_TCAP":"GPU 用量","SORT_BY_DESC":"降序","SORT_BY_ASC":"升序","OOM_KILL_PODS":"OOM 终止容器组","PENDING_PODS":"等待中容器组","EVICTED_PODS":"被驱逐容器组","QOS_GUARANTEED":"Guaranteed:对于每个容器组中的容器,CPU/内存请求和上限数值相等。","QOS_BURSTABLE":"Burstable:不符合 Guaranteed 的条件,并且至少有一个容器具有资源预留或上限。","QOS_BESTEFFORT":"BestEffort:没有设置资源预留和上限。","COMPONENT_PARAMETER_CONFIG":"组件设置","LICENSE":"许可证","LICENSE_DESC":"查看当前许可证的信息,并在需要时更新许可证。","ACTIVATED":"已激活","INACTIVATED":"未激活","EXPIRED":"已过期","LICENSE_ID":"许可证 ID","AUTHORIZED_ORGANIZATION":"授权组织","AUTHORIZATION_TYPE":"授权类型","AUTHORIZED_STATUS":"授权状态","ACTIVATION_TYPE":"激活类型","WARRANTY":"维保","WARRANTY_PERIOD":"维保中","WARRANTY_EXPIRES":"维保过期","SUBSCRIPTION":"订阅","SUBSCRIPTION_IN_PROGRESS":"订阅中","SUBSCRIPTION_EXPIRES":"订阅过期","PERMANENT_AUTHORIZATION":"永久授权","ACTIVATION_TIME":"激活时间","UPDATE_LICENSE":"更新许可证","ACTIVATION_CODE":"激活码","OBTAIN_ACTIVATION_CODE":"获取激活码","OBTAIN_ACTIVATION_CODE_DESC":"访问 {title} 获取激活码。","INVALID_LICENSE":"许可证无效","PRODUCT_SERVICE_AUTHORIZATION":"KubeSphere 企业版授权","INVALID_ACTIVATION_CODE_DESC":"激活码无效。请输入 JSON 格式的 Base64 字符串。","EMPTY_LICENSE":"许可证无效。","INVALID_SIGNATURE":"签名无效。","FORMAT_ERROR":"激活码无效。请输入 JSON 格式的 Base64 字符串。","AUTHORIZED_FEATURES":"授权功能","FEATURE":"功能","CURRENT_USER":"当前用户","ADD_CURRENT_USER":"添加当前用户","NOTIFICATION_HISTORY":"通知历史","NOTIFICATION_HISTORY_PL":"通知历史","NOTIFICATION_HISTORY_DESC":"查看已发送给用户的通知。","ALERTING_NAME_TCAP":"告警名称","ALERTING_TYPE_TCAP":"告警类型","ALERTING_SEVERITY_TCAP":"告警级别","NOTIFICATION_MESSAGE":"消息","NOTIFICATION_TIME":"通知时间","METRIC_ALERT":"指标告警","EVENT_ALERT":"事件告警","AUDIT_ALERT":"审计告警","LOGGING_ALERT":"日志告警","ALERT_RESOLVED":"已解决","NOTIFICATION_SETTINGS":"通知设置","SILENCE_POLICY":"静默策略","SILENCE_POLICY_LOW":"静默策略","SILENCE_POLICY_PL":"静默策略","SILENCE_POLICY_DESC":"设置系统在特定情况下不发送通知。","SILENCE_TIME":"静默时间","CONTINUOUS_SILENCE":"持续静默","PERIODIC_SILENCE":"周期性静默","SPECIFIC_TIME_RANGE_SILENCE":"在特定时间范围内静默","CUSTOM_SILENCE":"基于 Cron 表达式静默","SILENCE_CONDITIONS":"静默条件","ALL_SILENT_NOTIFICATIONS":"对所有通知静默","CUSTOM_SILENT_NOTIFICATIONS":"自定义静默条件","EDIT_SILENCE_CONDITIONS":"编辑静默条件","EDIT_SILENCE_TIME":"编辑静默时间","CREATE_SILENCE_POLICY_SUCCESSFULLY":"创建成功。","EDIT_SILENCE_POLICY_SUCCESSFULLY":"更新成功。","CREATE_SILENCE_POLICY":"创建静默策略","ALL_SILENT_NOTIFICATIONS_TCAP":"对所有通知静默","ALL_SILENT_NOTIFICATIONS_DESC":"静默策略适用于所有通知。","CUSTOM_SILENT_NOTIFICATIONS_TCAP":"自定义静默条件","CUSTOM_SILENT_NOTIFICATIONS_DESC":"静默策略仅适用于符合特定条件的通知。","INVALID_SILENCE_CONDITION":"请设置正确的静默条件。","SILENT_TEMPLATE":"模板","SILENCE_TIME_TYPE_DESC":"满足静默条件的通知将在指定的时间范围内被静默。","SILENT_CRON":"Cron 表达式","SILENCE_TIME_RANGE_EMPTY_DESC":"请设置通知静默的时间范围。","SELECT_START_TIME_AND_END_TIME":"选择通知静默的起始时间和结束时间。","SILENCE_DATE":"日期","SELECT_DATE":"请选择日期。","SILENCE_EVERY_DAY":"每日","SILENCE_EVERY_WEEK":"每周","SILENCE_EVERY_MONTH":"每月","MONDAY":"周一","TUESDAY":"周二","WEDNESDAY":"周三","THURSDAY":"周四","FRIDAY":"周五","SATURDAY":"周六","SUNDAY":"周日","DAY":"日","HOUR":"时","MINUTE":"分","SECOND":"秒","CRON_EXPRESSION":"Cron 表达式","CRON_EXPRESSION_DESC":"输入 Cron 表达式来指定静默时间。","CRON_EXPRESSION_REQUIRE_DESC":"请输入 Cron 表达式。","CRON_EXPRESSION_ERROR_DESC":"Cron 表达式无效。请输入有效的 Cron 表达式。","EVERY_DAY_TIMERANGE":"每日:{timeRange}","EVERY_WEEK_DAYS_TIMERANGE":"每周:{days} [{timeRange}]","EVERY_MONTH_DAYS_TIMERANGE":"每月:{days} [{timeRange}]","NOTIFICATION_LANGUAGE":"通知语言","NOTIFICATION_LANGUAGE_DESC":"设置通知的键的语言。通知以键值对的形式呈现。","NOTIFICATION_SIMPLIFIED_CHINESE_DESC":"在通知中使用简体中文键。","NOTIFICATION_ENGLISH_DESC":"在通知中使用英文键。","NOTIFICATION_LANGUAGE_CHANGE_SUCCESS":"更改成功。","PLATFORM_LOGO":"平台标识","PLATFORM_LOGO_REQUIRED":"请上传平台标识。","BROWSER_FAVICON":"浏览器图标","BROWSER_FAVICON_REQUIRED":"请上传平台的浏览器图标。","LOGIN_BACKGROUND":"登录页面背景图片","NO_BACKGROUND":"未发现背景图片","NO_BACKGROUND_TIP":"请点击“自定义平台信息”上传背景图片。","MODIFY_PLATFORM_INFO":"自定义平台信息","PLATFORM_TITLE_TCAP":"平台标题","PLATFORM_DESCRIPTION_TCAP":"平台描述","PLATFORM_TITLE_TIP":"平台标题可包含任意字符,最长 63 个字符。","TITLE_EMPTY_TIP":"请输入平台标题。","PLATFORM_LOGO_DESC":"图片格式可以为 SVG、PNG 或 JPG,图片文件大小不能超过 2 MB,推荐的图片分辨率为 200 x 40 像素。","BROWSER_FAVICON_DESC":"图片格式可以为 ICO、SVG、PNG 或 JPG,图片文件大小不能超过 2 MB,推荐图片分辨率为 40 x 40 像素,推荐长宽比为 1:1。","LOGIN_BACKGROUND_DESC":"图片格式可以为 SVG、PNG 或 JPG,图片文件大小不能超过 2 MB,推荐的图片分辨率为 1920 x 1080 像素。","UPLOAD_PLATFORM_IMAGE_FAILED":"上传失败。{message}","UPLOAD_FILE_TOO_LARGE":"图片文件大小不能超过 2 MB。请选择其他图片文件。","RESET_PLATFORM_INFO":"重置平台信息","RESET_PLATFORM_INFO_TIP":"您确定重置平台信息吗?","SCALING_OBJECT":"伸缩对象","LAST_SCALING_TIME":"更新时间","POLLING_INTERVAL":"轮询间隔","WAITING_TIME":"等待时间","TIME_ZONE":"时区","CORN_DESC":"根据 cron 计划 进行弹性伸缩。 ","SCALING_CUSTOM_DESC":"自定义指定指标进行弹性伸缩。","TOGGLER_PARAMS":"触发器参数","TOGGLER_AUTHOR":"触发器认证","INDICATOR_NAME":"指标名称","EXPRESSION":"表达式","SCALING_Prometheus_DESC":"基于 Prometheus 进行弹性伸缩。","INDICATOR_TYPE":"自定义指定指标进行弹性伸缩。","TRIGGER":"触发器","LABEL_KEY_VALUE_CANNOT_BE_EMPTY":"该类型键值不能为空。","TRIGGER_AUTHENTICATION_KEY_EQ_NAME":"触发器认证的键必须是 name。","CUSTOM_SCALING_PL":"自定义伸缩","CUSTOM_SCALING_LOW":"自定义伸缩","CUSTOM_SCALING_DESC":"自定义伸缩根据需求自动扩缩容 Pod 来帮助优化资源使用和成本。","CUSTOM_SCALING_EMPTY_DESC":"请创建自动伸缩。","CUSTOM_SCALING":"自定义伸缩","SCALER":"伸缩器","STRETCH_OBJECT_READY":"伸缩对象就绪","TRIGGER_ACTIVE":"伸缩器活跃","RETRACTOR_FALLBACK":"回退","STRETCH_OBJECT_READY_DESC":"伸缩对象是否准备好开始伸缩","TRIGGER_ACTIVE_DESC":"伸缩对象是否发生伸缩","RETRACTOR_FALLBACK_DESC":"伸缩器是否能够从源获取指标","EDIT_SCALING_SETTINGS":"编辑伸缩设置","SCALING_SETTINGS":"伸缩设置","DISABLE_REPLICAS_SETTING":"禁用副本数量设置","WORKLOAD_SCALING_TOOL_TIP":"已设置自定义指标容器组水平自动扩缩策略。","EDIT_CUSTOM_SCALING":"编辑自定义伸缩","ENV_CONTAINER":"env 源容器","ADD_WORKLOAD":"添加工作负载","ADD_WORKLOAD_DESC":"设置部署和有状态副本集作为自定义伸缩对象。","EMPTY_SCALING_OBJECT_MESSAGE":"伸缩对象不能为空。","PERCENT":"百分比","EXPANSION_VALUE":"扩容值","STABILIZATION_WINDOW_SECONDS":"稳定窗口时间 (s)","STABILIZATION_WINDOW_SECONDS_DESC":"当用于扩缩的指标不断波动时,稳定窗口用于限制副本计数的波动。","POLICY_TYPE":"策略类型","POLICY_PREFERENCE":"策略偏好","POLICY_PREFERENCE_DESC":"伸缩器在不同的情况下会根据您的偏好来采取对应的策略。","POLICY_TYPE_DUPLICATED":"不能为同一类型配置多个策略。","TENDS_TO_SCALE_SIGNIFICANTLY":"倾向于大幅度伸缩","TENDS_TO_EXPAND_SLIGHTLY":"倾向于小幅度伸缩","SCALE_DISABLE":"禁用","EXPANSION_STRATEGY":"扩容策略","SCALING_STRATEGY":"缩容策略","EMPTY_POLICY_MESSAGE":"策略配置不能为空。 ","TIME_ZONE_DESC":"设置允许的最小容器组副本数量,默认值为 0。","REPLICAS_DESIRED_CRON_TRIGGER_DESC":"在 cron 计划的开始和结束之间必须将资源扩展到的副本数。","CRON_START":"开始","CRON_END":"结束","CRON_START_DESC":"指示 cron 计划开始的 Cron 表达式。","CRON_END_DESC":"指示 cron 计划结束的 Cron 表达式。","EMPTY_TYPE_TRIGGER":"类型的值不能为空。","ADD_TRIGGER":"添加触发器","ADD_TRIGGER_DESC":"根据需要的指标添加触发器。","TRIGGER_TYPE":"触发器类型","PROMETHUS_ADDRESS":"Promethus 的服务地址。","INDICATOR_NAME_PROMETHUS_DESC":"如果使用多个触发器,则所有指标名称唯一。","EXPRESSION_PROMETHUS_DESC":"设置查询运行的表达式。","THRESHOLD_PROMETHUS_DESC":"设置触发器开始缩放的值。","SCALE_MINIMUM_REPLICAS_DESC":"设置允许的最小容器组副本数量,默认值为 0。","SCALE_MAXIMUM_REPLICAS_DESC":"设置允许的最大容器组副本数量,默认值为 1。","POLLING_INTERVAL_DESC":"检查每个触发器的时间间隔。默认情况下,KEDA 将每 30 秒检查每个 ScaledObject 上的每个触发源。","WAITING_TIME_DESC":"最后一个触发器报告活动后,在将资源缩放回 0 之前等待的时间。默认为 5 分钟(300 秒)。","SCALE_ROLL_BACK_DESC":"如果伸缩器处于错误状态,它定义了要回退的副本数。","SCALE_FAILURE_THRESHOLD_DESC":"每个伸缩器连续未能从其源获取指标的次数限制。","EMPTY_FAILURE_THRESHOLD":"失败阈值不能为空。 ","FALLBACK_NUMBER":"回退副本数","FALLBACK_NUMBER_DESC":"伸缩器失败次数超过阈值后,资源回退的副本数量。","EMPTY_FALLBACK_NUMBER_DESC":"回退副本的数量不能为空。 ","TRIGGER_SETTING":"触发器设置","TRIGGER_SETTING_DESC":"设置自定义指标的触发器。","RESTORE_TO_ORIGINAL_REPLICA_COUNT":"恢复到原始副本数","RESTORE_TO_ORIGINAL_REPLICA_COUNT_DESC":"指定目标资源在删除后是否应缩减到原始副本数。默认是将副本数保持在与删除 ScaledObject 时相同的数量。","SCALE_BEHAVIOR":"伸缩行为","SCALE_BEHAVIOR_DESC":"配置目标资源在扩容和缩容两个方向的伸缩行为。","CREATE_CUSTOM_SCALING":"创建自定义伸缩","CRON_TIME_ZONE_DESC":"IANA 时区数据库中可接受的值之一。","PROMETHEUS_MIN_REPLICA_COUNT_DESC":"如果触发器的类型是 Prometheus,最小副本数必须大于 0。","MIN_REPLICA_COUNT_LESS_THAN_MAX":"最小副本数不能大于最大副本数。","RADONDB_APPS":"RadonDB 应用","RADONDB_APPS_DESC":"RadonDB 云原生应用提供关系型数据库、分布式数据库、时序和分析型数据库以及 NoSQL 数据库等企业级数据库产品和服务。","WHAT_ARE_RADONDB_APPS":"什么是 RadonDB 应用?","ACCESS_ADDRESS_PL":"访问地址","DATABASE_STATUS_FAILED":"失败","DATABASE_STATUS_RUNNING":"运行中","DATABASE_STATUS_UPDATING":"更新中","DATABASE_STATUS_CREATING":"创建中","DATABASE_STATUS_TRUE_NOTREADY":"未就绪","DATABASE_STATUS_TRUE_READY":"就绪","DATABASE_STATUS_CREATE_FAILED":"创建失败","DATABASE_STATUS_UPDATE_FAILED":"更新失败","DATABASE_STATUS_DELETED":"已删除","DATABASE_STATUS_COMPLETED":"已完成","DATABASE_STATUS_TERMINATING":"删除中","READ_AND_WRITE_ADDRESS":"读写地址","READ_ONLY_ADDRESS":"只读地址","KIBANA_ADDRESS":"Kibana 地址","DASHBOARD_ADDRESS":"控制面板地址","PRIMARY_ADDRESS":"主地址","STANDBY_ADDRESS":"备地址","DATABASE_OPERATION_WARNING":"此操作可能会中断数据库服务,请在非高峰时段执行此操作。","VOLUME":"卷","NODE_ROLE":"节点角色","CANNOT_REDUCE_VOLUME_SIZE":"卷容量不能减少。","SCALE_OUT":"扩展","CANNOT_REDUCE_DATABASE_NODES":"数据库节点数量不能减少。","MYSQL_NODES_DESC":"数据库节点的数量。取值可以为 2,3 或 5。","REDIS_SENTINEL_NODES_DESC":"数据库节点的数量。取值可以为 3,5 或 7。","MONGODB_NODES_DESC":"数据库节点的数量。","NODE_COUNT_DESC":"数据库节点的数量。取值范围为 {min} 到 {max}。","ADJUST_RESOURCES":"调整资源","RESOURCES":"资源","RESOURCES_DESC":"设置分配给数据库服务的 CPU 和内存资源。","CORE_GIB":"{core, plural, =1 {1 核} other {# 核}} {gib} GiB","BACK_UP":"备份","BACKUP_NAME_DESC":"名称只能包含小写字母、数字和连字符(-),必须以小写字母开头,最长 24 个字符。","INVALID_BACKUP_NAME_DESC":"名称无效。名称只能包含小写字母、数字和连字符(-),必须以小写字母开头,最长 24 个字符。","BACKUP_NAME_EMPTY_DESC":"请输入备份名称。","BACKUP_WARNING":"备份过程可能会导致数据库服务压力过大,请在非高峰时段执行此操作。","BACKUP_COMFIRM_TIP":"您确定创建备份吗?","BACKUP_POSTGRE_SQL_TIP":"默认保留 10 个备份。如果在定时备份时设置了保留策略,将首先使用定时备份策略。","SET_AUTO_BACKUP":"设置自动备份","BACKUP_TIME":"备份时间","BACKUP_DATE":"备份日期","BACKUP_SCHEDULED_DELETE":"定期删除","BACKUP_RETENTION_DAYS":"保留周期","BACKUP_DAY":"天","BACKUP_RETENTION_DAYS_ERROR":"必须设置保留周期。","BACKUP_DATE_ERROR":"必须设置备份日期。","REBALANCE_NODES":"重平衡节点","POSTGRESQL_NODES_DESC":"取值范围为 1 到 8。","REBALANCE_SUCCESS":"重平衡成功。","REBALANCE_FAILED":"重平衡失败。","REBALANCING":"重平衡中","START_REBALANCING":"开始重平衡","REBALANCING_HISTORY":"重平衡记录","REBALANCING_IN_PROGRESS_DESC":"节点重平衡正在进行中,请等待节点重平衡完成。","KAFKA_OPERATION_WARNING":"此操作可能会中断 Kafka 服务,请在非高峰时段执行此操作。","UPDATE_VERSION":"升级版本","UPDATE_VERSION_DESC":"您确定升级该资源吗?","SHARD":"分片","SHARD_PL":"分片","PROXY_NODE":"代理节点","NODE_IP_ADDRESS_SCAP":"节点 IP 地址","NODE_PORT":"节点端口","NO_DATABASE_CONNECTION_AVAILABLE":"没有可用的数据库连接","MANAGEMENT_NODE":"管理节点","PRIMARY_NODE":"主节点","PRIMARY_NODE_PL":"主节点","HOT_NODE":"热节点","HOT_NODE_PL":"热节点","WARM_NODE":"温节点","WARM_NODE_PL":"温节点","COLD_NODE":"冷节点","COLD_NODE_PL":"冷节点","KIBANA_NODE":"Kibana 节点","KIBANA_NODE_PL":"Kibana 节点","KAFKA_NODE":"Kafka 节点","KAFKA_NODE_PL":"Kafka 节点","KAFKA_RESOURCES":"Kafka 资源","ZOOKEEPER_NODE":"ZooKeeper 节点","ZOOKEEPER_NODE_PL":"ZooKeeper 节点","LOGSTASH_NODE":"Logstash 节点","DASHBOARD_NODE":"控制面板节点","ZOOKEEPER_RESOURCES":"ZooKeeper 资源","STANDBY_NODE":"备节点","STANDBY_NODE_PL":"备节点","SENTINEL_NODE":"哨兵节点","DATABASE_RUNNING_FOR_VALUE":"数据库已持续运行 {value}。","BACKUPS":"备份","BACKUP":"备份","BACKUP_LOW":"备份","BACKUP_PL":"备份","RESTORE_FROM_BACKUP":"从备份恢复","BACKUP_IN_PROGRESS_DESC":"集群备份进行中。","SIZE_GIB":"大小(GiB)","BACKUP_START_TIME":"备份开始时间","BACKUP_END_TIME":"备份结束时间","CREATE_BACKUP":"创建备份","BACKUP_NOT_ALLOWED_DESC":"当前不允许备份数据。","DATABASE_USERS":"数据库用户","DATABASE_USERS_EMPTY_DESC":"请创建用户以访问数据库。","NO_AUTHENTICATION_DESC":"数据库集群的认证类型为“无需认证”。如需控制用户访问权限,请在“参数”页签修改“认证类型”参数的值。","KAFKA_USERS":"Kafka 用户","USERCREATION_NOT_ALLOWED":"当前不允许创建用户。","CANNOT_EDIT_ROOT_USER":"当前用户为根用户,不能编辑。","CANNOT_DELETE_ROOT_USER":"当前用户为根用户,不能删除。","SECRET_KEY":"Secret Key","USER_CERTIFICATE":"用户证书","VALIDITY_PERIOD":"有效期","CA_CERTIFICATE":"CA 证书","CA_PASSWORD":"CA 密码","AUTHORIZATION_RULE":"授权规则","KAFKA_NO_AUTHENTICATION_DESC":"Kafka 集群的认证类型为“无需认证”。如需控制用户访问权限,请在“参数”页签修改“认证类型”参数的值。","KAFKA_NO_USER_DESC":"请创建用户以访问 Kafka。","DELETE_USER":"删除用户","DATABASE_USERNAME_DESC":"用户名只能包含大写字母、小写字母、数字和下划线(_),必须以大写或小写字母开头,长度为 2 到 26 个字符。","INVALID_DATABASE_USERNAME_DESC":"用户名称无效。用户名只能包含大写字母、小写字母、数字和下划线(_),必须以大写或小写字母开头,长度为 2 到 26 个字符。","PG_USERNAME_DESC":"用户名只能包含小写字母、数字和下划线(_),必须以小写字母开头,长度为 2 到 26 个字符。","INVALID_PG_USERNAME_DESC":"用户名无效。用户名只能包含小写字母、数字和下划线(_),必须以小写字母开头,长度为 2 到 26 个字符。","DATABASE_PASSWORD_DESC":"密码必须包含至少一个大写字母、一个小写字母、一个数字和一个特殊字符(!@#$%^&*_+-=),长度为 8 到 32 个字符。","DATABASE_PASSWORD_CHARACTERS":"密码必须包含至少一个特殊字符(!@#$%^&*_+-=)。","DATABASE_PASSWORD_CHARACTERS_EXCLUDE":"密码中的特殊字符只能为 !@#$%^&*_+-=。","INVALID_DATABASE_PASSWORD_DESC":"密码无效。密码必须包含至少一个大写字母、一个小写字母、一个数字和一个特殊字符(!@#$%^&*_+-=),长度为 8 到 32 个字符。","USERNAME_FORBIDDEN_STRINGS":"用户名不能为 root 或以 radondb_ 开头。","USERNAME_CANNOT_BE_PROGRES":"用户名不能为 postgres、pgautofailover_monitor 或 pgautofailover_replicator。","USERNAME_CANNOT_BE_CLICKHOUSE":"用户名不能为 clickhouse_operator。","KAFKA_USERNAME_DESC":"用户名只能包含小写字母、数字和连字符(-),最长 64 个字符。","PERMISSIONS":"权限","GENERAL_PERMISSIONS":"普通权限","ADVANCED_PERMISSIONS":"高级权限","AUTHENTICATION_MODE":"认证模式","AUTHENTICATION_MODE_INCORRECT_DESC":"认证模式与数据库集群不一致,用户不能访问数据库集群。","AUTHENTICATION_MODE_INCORRECT_ALERT":"数据库集群的认证模式为 {cluster}。 如果用户的认证模式设置为 {user},用户将无法访问数据库集群。","AUTHORIZATION_MODE":"授权模式","SIMPLE_AUTHORIZATION":"简单授权","AUTHORIZATION_MODE_DESC":"目前仅支持简单授权。","AUTHORIZED_DATABASES":"授权数据库","AUTHORIZED_DATABASES_DESC":"用户可以访问的数据库。请输入 *(所有数据库)或数据库名称。","AUTHORIZED_HOSTS":"授权主机","AUTHORIZED_HOSTS_DESC":"用户可以访问的主机。请输入 %(所有主机)、IP 地址或以逗号(,)分隔的多个 IP 地址。","PERMISSION_RULE":"权限规则","PERMISSION_RULE_DESC":"您可以为用户添加多个权限规则。","RESOURCE_TYPE_DESC":"规则适用的资源类型。","RESOURCE_MATCHING_MODE":"资源匹配模式","RESOURCE_MATCHING_MODE_DESC":"资源名称的匹配模式。","PREFIX_DESC":"前缀匹配,将规则应用于名称以该值开头的所有资源","LITERAL_DESC":"逐字匹配,支持设置为 *,表示该规则适用于所有资源。","PREFIX":"前缀匹配","LITERAL":"逐字匹配","OPERATION":"操作","OPERATION_DESC":"选择规则适用的操作。","DATABASE_OPERATION_READ":"读(Read)","DATABASE_OPERATION_WRITE":"写(Write)","DATABASE_OPERATION_DELETE":"删除(Delete)","DATABASE_OPERATION_ALTER":"修改(Alter)","DATABASE_OPERATION_DESCRIBE":"描述(Describe)","DATABASE_OPERATION_ALL":"全部(All)","DATABASE_OPERATION_IDEMPOTENTWRITE":"幂等写(IdempotentWrite)","DATABASE_OPERATION_CLUSTERACTION":"集群操作(ClusterAction)","DATABASE_OPERATION_CREATE":"创建(Create)","DATABASE_OPERATION_ALTERCONFIGS":"修改配置(AlterConfigs)","DATABASE_OPERATION_DESCRIBECONFIGS":"描述配置(DescribeConfigs)","ALLOW":"允许","RULE_TYPE_DESC":"目前规则类型只支持“允许”。","GROUP":"组","TRANSACTION_ID":"事务 ID","ACL_DESC":"根据 Redis 官方规则设置 ACL 以控制用户的权限。","TOPICS":"主题","MESSAGE_RETENTION_TIME":"消息保留时间","EDIT_TOPIC":"编辑主题","TOPIC_CREATION_NOT_ALLOWED":"当前不允许创建主题。","NO_TOPIC_FOUND":"未发现主题","TOPIC_EMPTY_DESC":"请创建一个主题。","CREATE_TOPIC":"创建主题","TOPIC_NAME_DESC":"名称只能包含小写字母、数字和连字符(-),必须以小写字母开头,最长 24 个字符。","INVALID_TOPIC_NAME_DESC":"名称无效。名称只能包含小写字母、数字、点和连字符(-),必须以小写字母开头,最长 100 个字符。","TOPIC_NAME_EMPTY_DESC":"请输入主题名称。","PARTITION_COUNT":"分区数量","COMPACT":"压缩","INVALID_PARTITION_COUNT_DESC":"分区数量无效。参数值不能小于 {min} 或大于 {max}。","TOPIC_REPLICA_COUNT_DESC":"副本数量不能超过 Kafka 集群的节点数量。","CLEANUP_POLICY_DESC":"删除过时的日志或根据键压缩日志(Kafka Connect 需要使用压缩模式)。","CLEANUP_POLICY_DELETE":"删除","CLEANUP_POLICY_COMPACT":"压缩","MIN_INSYNC_REPLICAS_DESC":"当生产者的 request.requird.acks 参数设置为 1 时,副本的最小数量。","UNCLEAN_LEADER_ELECTION_ENABLE_DESC":"是否允许不属于 ISR 的副本被选为领导。","SEGMENT_MS_DESC":"段文件轮滚的最大时间间隔,单位为毫秒,最小值为 86400000。","RETENTION_MS_DESC":"日志文件最大保留时间,单位为毫秒。","RETENTION_BYTES_DESC":"日志文件的大小上限。超过上限的日志文件将被删除。如果同时设置了 retention.ms 和 retention.bytes,日志文件将在达到任一阈值是被删除。参数值 -1 表示保留所有日志文件。","MAX_MESSAGE_BYTES_DESC":"主题级别的消息大小上限。如果未设置此参数,系统将采用实例级别的消息大小上限 1 MB。","ALERT_RULE_GROUP_PL":"告警规则组","PARAMETER":"参数","RANGE":"范围","AUTO_RESTART":"自动重启","ALERTING_POLICY_CREATION_NOT_ALLOWED":"当前不允许创建告警规则组。","EDIT_NOT_ALLOWED":"当前不允许编辑参数。","DBPARAM_DATABASE_VERSION":"内核版本","DBPARAM_DATABASE_VERSION_DESC":"数据库内核版本。","DBPARAM_FSYNC_DESC":"是否设置 PostgreSQL 服务器尽可能确保更新被物理写入磁盘。","DBPARAM_SHARED_BUFFERS_DESC":"数据库服务器用作共享缓冲区的内存,单位为 MB。","DBPARAM_TEMP_BUFFERS_DESC":"每个数据库会话用作临时缓冲区的最大内存大小,单位为 MB。","DBPARAM_WORK_MEM_DESC":"将数据写入临时磁盘文件之前查询操作所使用的内存上限,单位为 MB。","DBPARAM_MAX_WAL_SENDERS_DESC":"同时运行的 WAL 发送器进程的最大数量。","DBPARAM_LOG_MIN_DURATION_STATEMENT_DESC":"触发日志记录的语句最短执行时间,单位为毫秒。","DBPARAM_MAX_CONNECTIONS_DESC":"并发连接的最大数量。","DBPARAM_WORKER_PROCESSES_DESC":"并发工作进程的最大数量。","DBPARAM_CHECKPOINT_TIMEOUT_DESC":"WAL 自动检查点之间的最大时间间隔,单位秒。","DBPARAM_AUTOVACUUM_VACUUM_COST_DELAY_DESC":"autovacuum 操作的代价延迟值,单位为毫秒。","DBPARAM_AUTOVACUUM_VACUUM_COST_LIMIT_DESC":"autovacuum 操作的代价限制值。","DBPARAM_AUTOVACUUM_ANALYZE_SCALE_FACTOR_DESC":"触发 autovacuum ANALYZE 操作的表大小比例阈值。","DBPARAM_AUTOVACUUM_VACUUM_SCALE_FACTOR_DESC":"触发 autovacuum VACUUM 操作的表大小比例阈值。","DBPARAM_VACUUM_DEFER_CLEANUP_AGE_DESC":"VACUUM 和 HOT cleanup 操作的延迟(以事务数量计)。","DBPARAM_SEQ_PAGE_COST_DESC":"规划器对于一次顺序获取磁盘页面的代付估计。","DBPARAM_RANDOM_PAGE_COST_DESC":"规划器对于一次非顺序获取磁盘页面的代付估计。","DBPARAM_CPU_TUPLE_COST_DESC":"规划器对一次查询中处理每一行的代价估计。","DBPARAM_CPU_INDEX_TUPLE_COST_DESC":"规划器对一次索引扫描中处理每一个索引项的代价估计。","DBPARAM_BGWRITER_DELAY_DESC":"后台写入器的活动轮次之间的睡眠时间,单位为毫秒。","DBPARAM_WAL_WRITER_DELAY_DESC":"WAL 写入器的活动轮次之间的睡眠时间,单位为毫秒。","DBPARAM_WAL_WRITER_FLUSH_AFTER_DESC":"WAL 写入器写入 WAL 日志的数量阈值,单位为 MB。达到此参数值时将触发刷写。","DBPARAM_FULL_PAGE_WRITES_DESC":"是否设置 PostgreSQL 服务器在每个检查点后第一次修改时将每个磁盘页面的全部内容写入 WAL。","DBPARAM_WAL_COMPRESSION_DESC":"是否设置 PostgreSQL 服务器在基础备份过程中或在 full_page_writes 启用时压缩写入到 WAL 的完整页面。","DBPARAM_SYNCHRONOUS_COMMIT_DESC":"数据库服务器向客户端返回 success 指示之前所需要完成的 WAL 处理工作量。","DBPARAM_MAINTENANCE_WORK_MEM_DESC":"用于 VACUM、CREATE INDEX、ALTER TABLE ADD FOREIGN KEY 等维护操作的最大内存空间,单位为 MB。","DBPARAM_MAX_REPLICATION_SLOTS_DESC":"复制槽(replication slot)的最大数量。修改此参数值将导致数据库服务重启。","DBPARAM_AUTOVACUUM_DESC":"服务器是否运行自动清理启动器守护进程。","DBPARAM_VACUUM_COST_DELAY_DESC":"超过消耗限制后进程睡眠的时间。","DBPARAM_AUTOVACUUM_NAPTIME_DESC":"在任何指定的数据库上运行自动清理的时间间隔。","DBPARAM_COMMIT_DELAY_DESC":"在提交事务和将 WAL 刷写到到磁盘之间的延迟,单位为微秒。","DBPARAM_COMMIT_SIBLINGS_DESC":"执行 commit_delay 所需并发活动事务的最小数量。","DBPARAM_LOG_MIN_MESSAGES_DESC":"写入到服务器日志的消息等级。","DBPARAM_BGWRITER_LRU_MAXPAGES_DESC":"后台写入器每个轮次刷写的 LRU 页面的最大数量。","DBPARAM_BGWRITER_FLUSH_AFTER_DESC":"当后台写入器写入的数据量大于此参数值时(单位为 KB),尝试强制要求操作系统将写入的数据刷写到底层存储系统中。","DBPARAM_STATEMENT_TIMEOUT_DESC":"语句的最大持续时间,单位为微秒。花费时间超过此参数值的语句将被中止。","DBPARAM_IDLE_IN_TRANSACTION_SESSION_TIMEOUT_DESC":"在事务查询之间最大空闲时间,单位为微秒。空闲时间超过此参数值的会话将被终止。","DBPARAM_LOG_STATEMENT_DESC":"需要记录的 SQL 语句的类型。","DBPARAM_LOG_WAL_LEVEL_DESC":"写入 WAL 的信息级别。","DBPARAM_PG_PORT_DESC":"PostgreSQL 服务器监听的端口号。参数值不能为 55555。","PG_PORT_FORBIDDEN_ERROR":"端口号不能为 55555。","DBPARAM_JIT_DESC":"JIT 编译可用时,是否允许 PostgreSQL 使用 JIT 编译。","DBPARAM_AUDIT_LOG_POLICY_DESC":"审计日志插件将事件写入其日志文件时采用的策略。","DBPARAM_AUDIT_LOG_FORMAT_DESC":"审计日志文件格式。","DBPARAM_AUDIT_LOG_ROTATE_ON_SIZE_DESC":"单个审计日志文件的大小。如果参数值不是 4096 的整数倍,参数值将被下调为 4096 的整数倍。","DBPARAM_AUDIT_LOG_ROTATIONS_DESC":"审计日志文件的最大数量。","DBPARAM_DEFAULT_STORAGE_ENGINE_DESC":"默认存储引擎。","DBPARAM_INNODB_BUFFER_POOL_SIZE_DESC":"缓冲池大小。最多可以分配 80% 的内存。取值 -1 将分配 60% 的内存。参数值会自动增加到 (innodb_buffer_pool_chunk_size x innodb_buffer_pool_instances) 的整数倍。","DBPARAM_CHARACTER_SET_SERVER_DESC":"数据库服务器的默认字符集。","DBPARAM_EXPIRE_LOGS_DAYS_DESC":"二进制日志文件的保留期限。","DBPARAM_LONG_QUERY_TIME_DESC":"慢查询时间阈值。花费时间大于此参数值的 SQL 语句将被视为慢查询。","DBPARAM_MAX_CONNECT_ERRORS_DESC":"在数据库服务器阻止主机的进一步连接之前,允许连续连接失败的最大次数。","DBPARAM_WAIT_TIMEOUT_DESC":"数据库服务器等待非交互连接的最大时间,单位为秒。超过时间限制后连接将被关闭。","DBPARAM_MAX_ALLOWED_PACKET_DESC":"数据包大小上限。如果参数值不是 1024 的整数倍数,则该参数值将被下调为 1024 的整数值。 如果您需要更改此参数值,请确保该值小于或等于 lave_pending_jobs_size_max 值。 否则,主节点和从节点之间的复制可能会出现异常。","DBPARAM_SLAVE_PARALLEL_WORKERS_DESC":"并行复制线程的数量。","DBPARAM_SKIP_NAME_RESOLVE_DESC":"是否禁止域名解析。","DBPARAM_AUTOCOMMIT_DESC":"是否启用自动提交模式。","DBPARAM_TRANSACTION_ISOLATION_DESC":"事务隔离等级。","DBPARAM_INNODB_FLUSH_METHOD_DESC":"InnoDB 文件刷写方式。","DBPARAM_INNODB_USE_NATIVE_AIO_DESC":"InnoDB 是否使用 Linux 异步 I/O (AIO)子系统。","DBPARAM_MONGODB_PORT_DESC":"MongoDB 服务器监听的端口号。","DBPARAM_OPLOGSIZEMB_DESC":"oplog 文件的大小上限,单位为 MB。","DBPARAM_MAXINCOMINGCONNECTIONS_DESC":"mongos 或 mongod 接受的最大同时连接数量。","DBPARAM_CURSORTIMEOUTMILLIS_DESC":"闲置游标的超时时间,单位为毫秒。闲置游标超时后将被 MongoDB 移除。","DBPARAM_PROFILINGMODE_MODE":"是否启用性能分析(Profiling)模式。","DBPARAM_SLOWOPTHRESHOLDMS_DESC":"慢操作时间阈值。花费时间大于此参数值的操作将被视为慢操作。","DBPARAM_ENABLEMAJORITYREADCONCERN_DESC":"是否使用安全读取策略。修改此参数值将导致数据库服务重启。","DBPARAM_COMMANDVERBOSITY_DESC":"命令相关组件的日志记录级别。","DBPARAM_INDEXVERBOSITY_DESC":"索引操作相关组件的日志记录级别。","DBPARAM_QUERYVERBOSITY_DESC":"查询操作相关组件的日志记录级别。","DBPARAM_NETWORKVERBOSITY_DESC":"组网操作相关组件的日志记录级别。","DBPARAM_WRITEVERBOSITY_DESC":"写入操作相关组件的日志记录级别。","DBPARAM_MAXMEMORY_DESC":"Redis 可用内存的上限,单位为 MB。","DBPARAM_ACTIVEREHASHING_DESC":"是否启用重哈希以节省内存。","DBPARAM_APPENDONLY_DESC":"是否启用 AOF 持久性。","DBPARAM_APPENDFSYNC_DESC":"AOF 同步策略。","DBPARAM_CLUSTER_NODE_TIMEOUT_DESC":"Redis 集群节点不可用时间上限,单位为毫秒。超过上限后,Redis 集群节点将被视为故障。","DBPARAM_LATENCY_MONITOR_THRESHOLD_DESC":"慢操作时间阈值,单位为毫秒。花费时间超过此参数值的操作将被写入日志。取值 0 表示禁用此功能。","DBPARAM_MAXCLIENTS_DESC":"客户端连接的最大数量。取值 0(默认值)表示不限制客户端连接数。","DBPARAM_MAXMEMORY_POLICY_DESC":"Redis 内存使用量达到上限时采取的策略。","DBPARAM_MAXMEMORY_SAMPLES_DESC":"Redis 内存使用量达到上限时,Redis 驱逐算法采用的样本数量。","DBPARAM_MIN_SLAVES_MAX_LAG_DESC":"至少存在 min-slaves-to-write 个从数据库,并且这些从数据库的网络延迟不超过此参数值时,主数据库才能允许写操作。","DBPARAM_MIN_SLAVES_TO_WRITE_DESC":"请参考 min-slaves-max-lag 的描述信息。","DBPARAM_NO_APPENDFSYNC_ON_REWRITE_DESC":"BGSAVE 或 BGREWRITEAOF 操作正在进行时是否阻止 fsync() 调用。","DBPARAM_NOTIFY_KEYSPACE_EVENTS_DESC":"Redis发送的通知类型。","DBPARAM_REPL_BACKLOG_SIZE_DESC":"复制 backlog 文件的大小。","DBPARAM_REPL_BACKLOG_TTL_DESC":"复制 backlog 文件的保留期限。","DBPARAM_REPL_TIMEOUT_DESC":"复制超时时间。","DBPARAM_SET_MAX_INTSET_ENTRIES_DESC":"当 set 对象完全由十进制 64 位带符号整数组成,并且 set 中元素数量不超过此参数的值时,使用 Intset 编码。 ","DBPARAM_SLOWLOG_LOG_SLOWER_THAN_DESC":"最大操作执行时间,单位为微秒。超过此参数值的操作将被记录到 slowlog 中。","DBPARAM_SLOWLOG_MAX_LEN_DESC":"slowlog 的最大长度。","DBPARAM_HASH_MAX_ZIPLIST_ENTRIES_DESC":"当 hash 对象同时满足以下两个条件时,采用 Ziplist 编码:1. hash 对象每个键和每个值的长度(单位为字节)不超过 hash-max-ziplist-value 值;2. hash 对象中的键值对数量不超过 hash-max-ziplist-entries 值。","DBPARAM_HASH_MAX_ZIPLIST_VALUE_DESC":"请参考 hash-max-ziplist-entries 的描述信息。","DBPARAM_LIST_MAX_ZIPLIST_ENTRIES_DESC":"当 list 对象同时满足以下两个条件时,采用 Ziplist 编码:1. list 对象元素的长度(单位为字节)不超过 list-max-ziplist-value 值;2. list 对象中的元素数量不超过 list-max-ziplist-entries 值。","DBPARAM_LIST_MAX_ZIPLIST_VALUE_DESC":"请参考 list-max-ziplist-entries 的描述信息。","DBPARAM_ZSET_MAX_ZIPLIST_ENTRIES_DESC":"当 zset 对象同时满足以下两个条件时,采用 Ziplist 编码:1. zset 对象元素的长度(单位为字节)不超过 zset-max-ziplist-value 值;2. zset 对象中的元素数量不超过 zset-max-ziplist-entries 值。","DBPARAM_ZSET_MAX_ZIPLIST_VALUE_DESC":"请参考 zset-max-ziplist-entries 的描述信息。","DBPARAM_LUA_TIME_LIMIT_DESC":"Lua 脚本超时时间,单位为毫秒。取值 0 或负值表示不设置超时时间。","DBPARAM_IO_THREADS_DO_READS_DESC":"是否启用多线程读取。","DBPARAM_IO_THREADS_DESC":"I/O 线程数。","DBPARAM_LOGFILE_DESC":"导出日志信息到 stdout 或日志文件。","DBPARAM_THREAD_POOL_WRITE_QUEUE_SIZE_DESC":"线程池写队列的大小。","DBPARAM_THREAD_POOL_SEARCH_QUEUE_SIZE_DESC":"线程池搜索队列的大小。","DBPARAM_ACTION_DESTRUCTIVE_REQUIRES_NAME_DESC":"是否在删除索引时禁止使用通配符和 _all 。您可以将此参数设置为 false,以允许使用通配符和 _all。","DBPARAM_HTTP_CORS_ENABLED_DESC":"是否启用跨域资源共享(CORS)。","DBPARAM_HTTP_CORS_ALLOW_ORIGIN_DESC":"可用于跨域资源共享(CORS)的域(origin)。","DBPARAM_INDICES_FIELDDATA_CACHE_SIZE":"可用作字段数据缓存的最大堆内存。","DBPARAM_INDICES_MEMORY_INDEX_BUFFER_SIZE_DESC":"分配给节点并由所有分片作为索引缓冲区共享的堆内存大小。参数值可以为百分比或字节数。","DBPARAM_INDICES_QUERIES_CACHE_SIZE_DESC":"过滤器缓存的内存大小。取值可以为百分比(例如 5%)或确切值(例如 512mb)。默认值为10%。","DBPARAM_INDICES_REQUESTS_CACHE_SIZE_DESC":"在节点级管理的分片请求缓存大小。默认值为堆内存的 1%。","DBPARAM_REINDEX_REMOTE_WHITELIST_DESC":"列入白名单以进行 Reindex 操作的远程 Elasticsearch 节点的地址。您可以用使用半角逗号(,)分隔多个地址(例如 otherhost:9200, 192.168.1.*:9200, localhost:*)。","DBPARAM_CLUSTER_ROUTING_ALLOCATION_AWARENESS_ATTRIBUTES_DESC":"用于分片分配感知的属性。参数值可以 k8s_node_name 和 zone。您可以同时设置两个值并用半角逗号(,)分隔。","DBPARAM_REPLICACOUNT_DESC":"每个分片的副本数。参数值在数据库集群创建后不能修改,默认值为 2。","DBPARAM_TCPPORT_DESC":"数据库集群的 TCP 端口。默认值为 9000。","DBPARAM_HTTPPORT_DESC":"数据库集群的 HTTP 端口。默认值为 8123。","DBPARAM_MAX_SERVER_MEMORY_USAGE":"ClickHouse 服务器可用内存上限,单位为字节。","DBPARAM_MAX_MEMORY_USAGE":"ClickHouse 服务器单次查询可用内存上限,单位为字节。","DBPARAM_AUTHENTICATION_TYPE":"认证类型","KAFKA_PARAMETERS":"Kafka 参数","KAFKA_USER_PARAMETERS":"用户配额","ZOOKEEPER_PARAMETERS":"ZooKeeper 参数","KAFKA_EDIT_PARAMS_ERROR":"设置参数失败。当认证类型为 TLS 时,TLS 参数的值不能为 false。","DBPARAM_KAFKA_TLS_DESC":"是否启用 TLS 加密。","DBPARAM_KAFKA_AUTHENTICATION_TYPE_DESC":"Kafka 的认证类型。","DBPARAM_NODE_PORT":"节点端口","DBPARAM_NODE_PORT_DESC":"是否启用 KubeSphere 节点端口用于从集群外部访问。","DBPARAM_LOG_RETENTION_BYTES_DESC":"分区大小上限,单位为字节。分区大小超过上限将触发删除策略。","DBPARAM_LOG_RETENTION_HOURS_DESC":"日志文件的最大保留时间。超过最大保留时间的日志文件将被删除。","DBPARAM_LOG_SEGMENT_BYTES_DESC":"段文件的大小上限,单位为字节。","DBPARAM_LOG_SEGMENT_DELETE_DELAY_MS_DESC":"删除段文件之前等待的时间。","DBPARAM_LOG_ROLL_HOURS_DESC":"段文件轮滚前的最大时间,单位为小时。","DBPARAM_OFFSETS_TOPIC_REPLICATION_FACTOR":"偏移主题的复制因子(设置较大的值可确保可用性)。在集群大小符合此参数要求前,内部主题创建将失败。","DBPARAM_LOG_CLEANUP_POLICY_DESC":"超过保留窗口后,段的默认清理策略。参数值可以为 delete 和 compact。您可以同时设置两个值并用半角逗号(,)分隔。","DBPARAM_LOG_CLEANER_ENABLE_DESC":"是否在服务器上启用日志清理器进程。","DBPARAM_COMPRESSION_TYPE_DESC":"主题的压缩类型。","DBPARAM_MESSAGE_MAX_BYTES_DESC":"记录批次的大小上限,单位为字节。","DBPARAM_NUM_NETWORK_THREADS_DESC":"服务器用于接收网络请求和向网络发送响应的线程数。","DBPARAM_NUM_IO_THREADS_DESC":"服务器用于处理请求的线程数量,可能包括磁盘 I/O。","DBPARAM_NUM_RECOVERY_THREADS_PER_DATA_DIR_DESC":"每个数据目录用于启动时日志恢复和关闭时刷写的线程数。","DBPARAM_NUM_REPLICA_FETCHERS_DESC":"用于从源 Broker 复制消息的 Fetcher 线程数。","DBPARAM_QUEUED_MAX_REQUESTS_DESC":"阻止网络线程之前允许排队的请求数量。","DBPARAM_REPLICA_LAG_TIME_MAX_MS_DESC":"如果跟随者没有发送任何 Fetch 请求或没有消费领导者日志结束偏移达到此参数指定的时间,领导者将把跟随者从 ISR 中移除。","DBPARAM_GROUP_MAX_SESSION_TIMEOUT_MS_DESC":"注册消费者的最大会话超时。","DBPARAM_GROUP_MIN_SESSION_TIMEOUT_MS_DESC":"注册消费者的最小会话超时。","DBPARAM_AUTO_CREATE_TOPICS_ENABLE_DESC":"是否启用自动主题创建。","DBPARAM_MIN_INSYNC_REPLICAS_DESC":"ISR 集的最小副本数量。","DBPARAM_DEFAULT_REPLICATION_FACTORS_DESC":"默认复制因子。","DBPARAM_TICKTIME_DESC":"ZooKeeper 使用的基本单位时间,单位为毫秒。此参数值用于心跳信号,并且最小会话超时将是 tickTime 的两倍。","DBPARAM_INITLIMIT_DESC":"允许追随者连接并领导者并与领导者同步数据的最大 tick 数。","DBPARAM_SYNCLIMIT_DESC":"允许跟随者同步数据的最 tick 数。如果同步进程超过限制,跟随者将被丢弃。","DBPARAM_MAXCLIENTCNXNS_DESC":"单个客户端(由 IP 地址标识)可以在套接字级别对 ZooKeeper 的单个成员建立的最大并发连接数量。此参数用于防止某些类别的 DoS 攻击,例如文件描述符耗尽。","DBPARAM_AUTOPURGE_SNAPRETAINCOUNT_DESC":"启用 ZooKeeper 自动清除功能时保留的最新快照和相应事务日志的数量。","DBPARAM_AUTOPURGE_PURGEINTERVAL_DESC":"自动清除操作的时间间隔,单位为小时。参数值 0 表示自动清除功能已禁用。","KAFKA_USER_RESOURCE_NAME_EMPTY_ERROR":"请输入资源名称。","DBPARAM_KAFKA_PARTITIONS_DESC":"主题分区默认值","DBPARAM_PRODUCER_BYTERATE_DESC":"在组中的客户端受到限制之前,每个客户端组可以向broker生产的每秒最大字节数的配额。范围 ({min}-{max})","DBPARAM_CONSUMER_BYTERATE_DESC":"在组中的客户端受到限制之前,每个客户端组可以向broker消费的每秒最大字节数的配额。范围 ({min}-{max})","DBPARAM_REAUSET_PERCENTAGE_DESC":"每个客户端组的最大 CPU 利用率配额。范围 ({min}-{max})","DBPARAM_CONTROLLER_MUTATION_DESC":"创建主题请求、创建分区请求和删除主题请求的速率配额。范围 ({min}-{max})","ACTIVE_CONNECTIONS":"活动连接","ACTIVE_SESSIONS":"活跃会话","IDLE_IN_TRANSACTION":"空闲事务连接","IDLE_CONNECTIONS":"空闲连接","CACHE_HIT_RATIO":"缓存命中率","CACHE_HIT_RATIO_EACH_DATABASE":"各数据库缓存命中率","ACTIVITY":"活跃事务和查询","CONNECTIONS":"连接数量","DATABASE_SIZE":"数据库大小","QUERY_DURATION":"查询时间","FETCHED_PER_SECOND":"每秒获取行数","INSERTED_PER_SECOND":"每秒插入行数","UPDATED_PER_SECOND":"每秒更新行数","DELETED_PER_SECOND":"每秒删除行数","RETURNED_PER_SECOND":"每秒返回行数","KEY_COUNTERS":"关键统计","CONFLICTS_PER_SECOND":"每秒冲突数量","DEADLOCKS_PER_SECOND":"每秒死锁数量","COMMITS_PER_SECOND":"每秒提交数量","ROLLBACKS_PER_SECOND":"每秒回滚数量","MAX_TX_DURATION":"最大事务持续时间","LOCKS":"锁","ASYNC_NODE_NUMBER":"未同步节点数量","INVALID_STATUS_NODE_NUMBER":"无效节点数量","NOT_RUNNING_NODE_NUMBER":"未运行节点数量","UNHEALTH_NODE_NUMBER":"不健康节点数量","DBPARAM_JMXOPTIONS_DESC":"disable,不开启jmx;enable,开启jmx;password,开启jmx并启用密码认证","CLICKHOUSE_DATA_SIZE_ON_DISK":"MergeTree 表数据大小","QUERIES":"查询数量","SELECT_QUERIES":"SELECT 查询数量","ALL_QUERIES":"所有查询数量","INSERTED_BYTES":"已插入数据","INSERTED_ROWS":"已插入行数","MAXIMUM_REPLICATION_DEPLAY":"最大复制延迟","RELATIVE_DELAY":"相对延迟","ABSOLUTE_DELAY":"绝对延迟","TOTAL_PARTS_OF_MERGETREE_TABLES":"MergeTree 表 Part 总数","DELAYED_REJECTED_INSERTS":"延迟/拒绝插入数量","DELAYED_QUERIES":"延迟查询数量","DELAYED_BLOCKS":"延迟块数量","REJECTED_BLOCKS":"拒绝块数量","DELAYED_DISTRIBUTED_FILES":"延迟分发文件数量","READ_BYTES":"读取字节数","UNCOMPRESSED":"未压缩","COMPRESSED":"已压缩","FILE_DESCRIPTOR":"文件描述符","CLICKHOUSE_OS":"操作系统","MEMORY_FOR_QUERIES":"查询内存","REPLICATION_QUEUE_JOBS":"复制队列任务","DATA_LOSS":"数据丢失","CHECK":"检查次数","CHECK_FAIL":"失败检查次数","FETCH":"获取次数","FETCH_FAIL":"获取失败次数","FETCH_MERGED":"已合并 Part 获取次数","REPLICATED_MERGED":"成功合并次数","MAX_QUEUE_SIZE":"队列长度上限","MERGES":"合并数量","MERGED_ROWS":"合并行数","MERGED_UNCOMPRESSED_BYTES":"合并未压缩字节数","ACTIVE_PARTS":"活跃 Part 数量","DETACHED_PARTS":"卸载 Part 数量","MAX_PART_COUNT_FOR_PARTITION":"分区 Part 数量上限","CLICKHOUSE_SERVER_PROCESS_MEMORY":"clickhouse-server 进程内存","PRIMARY_KEYS_MEMORY":"主键内存","DICTIONARY_MEMORY":"字典内存","MARKS_CACHE_HIT_RATE":"标记缓存命中率","BACKGROUND_TASKS":"后台任务","MERGE_MUTATE_FETCH":"合并/突变/获取","CLEAN_ALTER_REPLICA_REINIT":"清理/变更/副本重初始化","MOVES":"移动","MUTATIONS":"突变","PARTS_TO_DO":"待完成 Part 数量","CPU_TIME_PER_SECOND":"每秒 CPU 时间","DISK_READ_SYSCALL":"磁盘读取系统调用","DISK_WRITE_SYSCALL":"磁盘写入系统调用","NETWORK_RECEIVE":"网络接收","NETWORK_SEND":"网络发送","REAL_TIME":"实际时间","USER_TIME":"用户时间","SYSTEM_TIME":"系统时间","OS_IO_WAIT":"操作系统 I/O 等待","OS_CPU_WAIT":"操作系统 CPU 等待","OS_CPU_VIRTUAL":"操作系统 CPU 虚拟时间","MAX_USED_CONNECTIONS":"最大使用连接数量","THREADS":"线程数量","PEAK_THREADS_CONNECTED":"最大已连接线程数量","PEAK_THREADS_RUNNING":"最大运行中线程数","AVG_THREADS_RUNNING":"平均运行中线程数量","ABORTED_CONNECTIONS":"已中止连接数量","ABORTED_CONNECTION_ATTEMPTS":"中止连接尝试次数","ABORTED_CLIENT_TIMEOUTS":"客户端超时次数","QUESTIONS":"问题(Question)数量","SELECT_BY_TYPE":"Select 数量","SELECT_FULL_JOIN":"Select Full Join","SELECT_FULL_RANGE_JOIN":"Select Full Range Join","SELECT_RANGE":"Select Range","SELECT_FULL_RANGE":"Select Full Range","SELECT_RANGE_CHECK":"Select Range Check","SELECT_SCAN":"Select Scan","SORT_BY_TYPE":"Sort 数量","SORT_ROWS":"Sort Rows","SORT_RANGE":"Sort Range","SORT_MERGE_PASSES":"Sort Merge Passes","SORT_SCAN":"Sort Scan","SLOW_QUERIES":"慢查询数量","TABLE_LOCKS":"表锁数量","TABLE_LOCKS_IMMEDIATE":"立即表锁数量","TABLE_LOCKS_WAITED":"等待表锁数量","TMP_TABLES_AND_FILES":"临时表和文件","CREATED_TMP_TABLES":"已创建临时表数量","CREATED_TMP_DISK_TABLES":"已创建临时磁盘表数量","CREATED_TMP_FILES":"已创建临时文件数量","MYSQL_NETWORK_TRAFFIC":"网络流量","MYSQL_INBOUND":"入站","MYSQL_OUTBOUND":"出站","CLUSTER_TASK_WAITING_TIME":"集群任务等待时间","CLUSTER_TASK_STATUS":"集群任务状态","CLUSTER_NUMBER_OF_IN_FLIGHT_FETCH":"未完成获取数量","CLUSTER_NUMBER_OF_PENDING_TASKS":"等待任务数量","CLUSTER_NUMBER_OF_NODES":"节点数量","CLUSTER_NUMBER_OF_DATA_NODES":"数据节点","CLUSTER_NUMBER_OF_ALL_NODES":"节点总数","SHARD_STATUS":"分片状态","CLUSTER_DELAYED_UNASSIGNED_SHARDS":"延迟未分配分片数量","CLUSTER_INITIALIZING_SHARDS":"初始化中分片数量","CLUSTER_RELOCATING_SHARDS":"重定位中分片数量","CLUSTER_UNASSIGNED_SHARDS":"未分配分片数量","CLUSTER_ACTIVE_PRIMARY_SHARDS":"活跃主分片数量","CLUSTER_ACTIVE_SHARDS":"活跃分片数量","CLUSTER_HEALTH_STATUS":"集群健康状态","CLUSTER_HEALTH_STATUS_GREEN":"健康","CLUSTER_HEALTH_STATUS_YELLOW":"告警","CLUSTER_HEALTH_STATUS_RED":"故障","HEAP_MEMORY":"堆内存","JVM_MEMORY_HEAP_USAGE_PER":"JVM 堆内存用量","DATA_AVAILABLE_BYTES":"可用磁盘空间","DATA_AVAILABLE_PERCENT":"可用磁盘百分比","ECK_CPU_USAGE":"CPU 用量","OS_LOAD":"操作系统负载","OS_LOAD1":"操作系统负载(1 分钟)","OS_LOAD5":"操作系统负载(5 分钟)","OS_LOAD15":"操作系统负载(15 分钟)","DOC_STATISTICS":"文档统计","ELASTICSEARCH_INDICES_DOCS":"文档数量","ELASTICSEARCH_INDICES_DOCS_DELETED":"已删除文档","ELASTICSEARCH_INDICES_INDEXING_INDEX_QPS":"索引 QPS","ELASTICSEARCH_INDICES_SEARCH_QUERY_QPS":"搜索 QPS","ELASTICSEARCH_INDICES_INDEXING_TIME_MS":"索引耗时","ELASTICSEARCH_INDICES_SEARCH_TIME_MS":"搜索耗时","CLUSTER_SHARDS_ACTIVE_PERCENT":"活跃分片数量","ONLINE_BROKER_COUNT":"在线的 Broker 数量","PARTITIONS_UNDER_MINIMUM_ISR":"ISR 少于下限分区数量","OFFLINE_PARTITION_COUNT":"离线分区数量","TOPIC_INCOMING_DATA_RATE":"每秒流入字节数","TOPIC_OUTGOING_DATA_RATE":"每秒流出字节数","TOPIC_INCOMING_MESSAGE_RATE":"每秒接收消息数量","TOPIC_OUTGOING_MESSAGE_RATE":"平均每秒生产的请求数","KAFKA_OPEN_FILE_DESC":"打开文件描述符数","NETWORK_PROCESSOR_AVG_IDLE_PERCENT":"NetworkProcessor 线程空闲率","DISK_WRITES":"磁盘写入","DISK_READS":"磁盘读取","KAFKA_MEMORY_USAGE":"内存用量","KAFKA_CPU_USAGE":"CPU 用量","JVM_MEMORY_USAGE":"JVM 内存用量","JVM_THREAD_COUNT":"JVM 线程数量","AVAILABLE_DISK_SPACE":"可用磁盘空间","ALL_KAFKA_NODES":"所有 Kafka 节点","ALL_ZOOKEEPER_NODES":"所有 ZooKeeper 节点","OP_COUNTERS":"操作数量","OP_INSERT":"插入","OP_QUERY":"查询","OP_UPDATE":"更新","OP_DELETE":"删除","OP_GETMORE":"返回游标","OP_COMMAND":"总数","OPREPL_COUNTERS":"副本集操作数量","OPREPL_INSERT":"插入","OPREPL_QUERY":"查询","OPREPL_UPDATE":"更新","OPREPL_DELETE":"删除","OPREPL_GETMORE":"返回游标","OPREPL_COMMAND":"总数","CONNECTIONS_CURRENT":"当前连接数量","CONNECTIONS_TOTALCREATED":"已创建连接总数","CONNECTIONS_AVAILABLE":"可用连接数量","CONNECTIONS_ACTIVE":"活跃连接数量","CURSOR_COUNT":"游标数量","CURSOR_TIMEDOUT":"超时游标数量","CURSOR_OPEN_NOTIMEOUT":"永不超时游标数量","CURSOR_OPEN_PINNED":"固定打开游标数量","CURSOR_OPEN_TOTAL":"总数","MONGODB_NETWORK_TRAFFIC":"网络流量","NETWORK_BYTESIN":"入站流量","NETWORK_BYTESOUT":"出站流量","WIREDTIGER_OPERATION_COUNT":"WiredTiger 操作数量","WT_WRITE_OUT":"并发写操作数量","WT_WRITE_AVAILABLE":"可用并发写操作数量","WT_READ_OUT":"并发读操作数量","WT_READ_AVAILABLE":"可用并发读操作数量","DOC_COUNT":"文档数量","DOC_DELETED":"已删除文档数量","DOC_INSERTED":"已插入文档数量","DOC_RETURNED":"已返回文档数量","DOC_UPDATED":"已更新文档数量","QUERYEXECUTOR":"查询执行器指标","SCANNEDKEYS":"已扫描键数量","SCANNEDDOCS":"已扫描文档数量","ACTIVECLIENTS":"活跃客户端数量","CLIENTS_TOTAL":"客户端总数","CLIENTS_READERS":"读操作客户端数量","CLIENTS_WRITERS":"写操作客户端数量","QUEUED_OPERATIONS":"队列中请求数量","QUEUE_TOTAL":"总数","QUEUE_READERS":"队列中读请求数量","QUEUE_WRITERS":"队列中写请求数量","WIREDTIGER_CACHE":"WiredTiger 缓存","WIREDTIGER_CACHE_USAGED":"缓存用量","WIREDTIGER_CACHE_DIRTY_USAGE":"脏数据比例","OPENSEARCH_HEAP_MEMORY":"heap 堆内存","OPENSEARCH_HEAP_MEMORY_PER":"heap 堆内存使用率","OPENSEARCH_CPU_USAGE":"cpu 使用百分比","OPENSEARCH_CPU_USAGE_PER":"\tcpu 使用率","CPU_LOAD":"CPU 负载","CPU_LOAD1":"CPU 负载(1 分钟)","CPU_LOAD5":"CPU 负载(5 分钟)","CPU_LOAD15":"CPU 负载(15 分钟)","EVENTS_STATISTICS":"事件统计","IN_EVENTS_STATISTICS":"in 事件","FILTERED_EVENTS_STATISTICS":"filtered 事件","OUT_EVENTS_STATISTICS":"out 事件","QUEUE_EVENTS_COUNT":"队列中的事件数","JVM_THREADS_COUNT":"JVM 线程数","DBPARAM_PIPELINE_WORKERS_DESC":"工作线程数量","DBPARAM_PIPELINE_BATCH_SIZE_DESC":"工作线程单次处理的最大事件数。该数字越大,则消耗内存越多,需调整jvm heap","DBPARAM_PIPELINE_BATCH_DELAY_DESC":"工作线程等待数量不足批次的最大时间,单位毫秒","DBPARAM_PIPELINE_UNSAFE_SHUTDOWN_DESC":"当存在正在处理的事件时,是否允许关闭pipeline","DBPARAM_PIPELINE_ORDERED_DESC":"流水线事件排序设置。auto,自动;true,排序,只启动1个工作线程;false,不排序","DBPARAM_ECS_COMPATIBILITY_DESC":"如果插件支持ECS compatibility,则插件使用该值为默认值。","DBPARAM_LOG_LEVEL_DESC":"日志级别","DBPARAM_LOG_FORMAT_DESC":"日志格式","DBPARAM_LOG_JVM_DESC":"jvm heap 大小,一般取内存的50%-75%。 默认取内存的50%。","PREDIXY_MEMORY_USAGE":"内存用量","CLIENT_COUNT":"客户端数量","RECV_CLIENT_BYTES":"每秒从客户端接收字节数","RECV_SERVER_BYTES":"每秒从服务端接收字节数","SEND_CLIENT_BYTES":"每秒向客户端发送字节数","SEND_SERVER_BYTES":"每秒从服务端发送字节数","COMMANDS_EXECUTED_PER_MINUTE":"每分钟执行命令数量","REDIS_CLUSTER_COUNT":"Redis 集群数量","REDIS_MEMORY_USAGE":"内存用量","REDIS_USED_MEMORY":"已使用","REDIS_MAX_MEMORY":"总量","NETWORK_IO":"网络 I/O","NETWORK_INPUT_BYTES":"接收字节数(5分钟)","NETWORK_OUTPUT_BYTES":"发送字节数(5分钟)","TOP_5_REDIS_COMMANDS_PER_MINUTE":"每分钟命令执行次数前 5 ","TOTAL_DB_KEYS":"数据库键总数","DB_KEYS":"数据库键数量","VALID_KEYS":"有效键数量","EXPIRED_KEYS":"过期键数量","KEYSPACE":"键空间","KEYSPACE_HITS_TOTAL":"命中总次数","KEYSPACE_MISSES_TOTAL":"未命中总次数","MEMORY_FRAGMENTATION_RATIO":"内存碎片率","REJECTED_CONNECTION_RATIO":"被拒绝连接比例","REVICTED_KEY_RATIO":"被拒绝键数量","QUORUM_SIZE":"法定节点数量","ZNODE_COUNT":"Znode 数量","WATCHER_COUNT":"观察者数量","ZOOKEEPER_MEMORY_USAGE":"内存用量","ZOOKEEPER_CPU_USAGE":"CPU 用量","OPEN_FILE_DESCRIPTORS":"打开文件描述符数量","REQUEST_LATENCY_AVERAGE":"平均请求延迟","REQUEST_LATENCY_MAXIMUM":"最大请求延迟","SHARD_COUNT":"分片数量","SHARDS_DESC":"数据库的分片数量。取值范围为 1 到 100。","CK_REPLICAS_DESC":"每个分片副本的数量。取值范围为 1 到 3。","HTTP_PORT":"HTTP 端口","HTTP_PORT_DESC":"取值范围为 0 到 65535。","DATABASE_STORAGE_CLASS_DESC":"如果没有满足需求的存储类,请联系平台管理员创建存储类。","DATABASE_NODE_TIP":"数据库节点是逻辑数据库实例而不是物理服务器。","VALUE_RANGE_DESC":"取值范围为 {min} 到 {max}。","VALUE_MUST_BE_INTEGER":"取值必须为整数。","VALUE_CANNOT_BE_GREATER_THAN_VALUE":"取值不能大于 {max}。","VALUE_CANNOT_BE_LESS_THAN_20":"取值不能小于 20。","DATA_NODE_COUNT":"数据节点数量","STANDBY_DATABASE_COUNT":"备数据库","PROJECT_NAME_EXCEEDS_LIMIT":"对于 MySQL 5.7,项目名称不能超过 16 个字符。","APP_NAME_EXCEED_LIMIT":"对于 MySQL 5.7,应用名称不能超过 14 个字符。","DATABASE_KERNEL_VERSION_DESC":"选择数据库的版本。","STANDBY_DATABASE_COUNT_DESC":"备数据库的数量。参数值可以为 1、2 或 4。","VALUE_CANNOT_BE_LESS_THAN_10":"取值不能小于 10。","PRIMARY_NODE_SETTINGS":"主节点设置","PRIMARY_NODE_RESOURCES_DESC":"设置分配给每个主节点的 CPU 和内存资源。","PRIMARY_NODE_COUNT":"主节点数量","PRIMARY_NODE_COUNT_DESC":"设置主节点的数量。","HOT_NODE_SETTINGS":"热节点设置","HOT_NODE_RESOURCES_DESC":"设置分配给每个热节点的 CPU 和内存资源。","HOT_NODE_COUNT":"热节点数量","WARM_NODE_SETTINGS":"温节点设置","WARM_NODE_RESOURCES_DESC":"设置分配给每个温节点的 CPU 和内存资源。","WARM_NODE_COUNT":"温节点数量","COLD_NODE_SETTINGS":"冷节点设置","COLD_NODE_RESOURCES_DESC":"设置分配给每个冷节点的 CPU 和内存资源。","COLD_NODE_COUNT":"冷节点数量","KIBANA_NODE_SETTINGS":"Kibana 节点设置","KIBANA_NODE_RESOURCES_DESC":"设置分配给每个 Kibana 节点的 CPU 和内存资源。","KIBANA_NODE_COUNT":"Kibana 节点数量","VOLUMN_PERSIST":"主节点上的卷大小为 20 GiB 并且不能修改。","REDIS_NODE":"Redis 节点","REDIS_NODE_COUNT":"Redis 节点数量","REDIS_NODE_COUNT_DESC":"Redis 集群中的节点数量。","PROXY_NODE_COUNT":"代理节点数量","PROXY_NODE_RESOURCES":"代理节点资源","ENDPOINT_TYPE":"外部访问","ENDPOINT_TYPE_DESC":"是否使用域名从 KubeSphere 集群外部访问数据库分片。","ENDPOINT_TYPE_ERROR":"在启用此功能前,请确保数据库集群中不存在代理节点。","REDIS_PASSWORD_DESC":"密码只能包含大写字母、小写字母、数字和特殊字符(!@#$%^&*()./;),长度为 6 到 31 个字符。","INVALID_REDIS_PASSWORD_DESC":"密码无效。密码只能包含大写字母、小写字母、数字和特殊字符(!@#$%^&*()./;),长度为 6 到 31 个字符。","VOLUME_CAPACITY_CANNOT_REDUCE":"卷容量不能减少。","KAFKA_SETTINGS":"Kafka 设置","KAFKA_NODE_RESOURCES_DESC":"设置分配给每个 Kafka 节点的 CPU 和内存资源。","KAFKA_VERSION":"Kafka 版本","KAFKA_NODE_COUNT":"Kafka 节点数量","ZOOKEEPER_SETTINGS":"ZooKeeper 设置","ZOOKEEPER_NODE_RESOURCES_DESC":"设置分配给每个 ZooKeeper 节点的 CPU 和内存资源。","ZOOKEEPER_NODE_COUNT":"ZooKeeper 节点数量","DASHBOARD_NODE_SETTINGS":"控制面板节点设置","DASHBOARD_NODE_RESOURCES_DESC":"设置分配给每个控制面板节点的 CPU 和内存资源。","DASHOBOARD_NODE_COUNT":"控制面板节点数量","LOGSTASH_NODE_SETTINGS":"Logstash 节点设置","LOGSTASH_NODE_RESOURCES_DESC":"设置分配给每个 Logstash 节点的 CPU 和内存资源。","LOGSTASH_NODE_COUNT":"Logstash 节点数量","MONGODB_NODE_COUNT_DESC":"数据库节点的数量。","OTHER_APP_EMPTY_DESC":"此页面显示您通过 helm 命令安装的应用。","OTHER_APP_PL":"其他应用","UPLOAD_FAILED_MESSAGE":"上传失败。{message}","GPU_USAGE_TIME":"GPU 用量({time})","GPU_MEMORY_USAGE_TIME":"显存用量({time})","PVC_USAGE_TOOLTIP_MESSAGE":"当前项目的持久卷用量(如果使用文件存储,数据可能不准确)。","PROJECT_MEMBERS_AND_ROLES":"项目成员和角色","RECENTLY_LOGGED_IN_MEMBERS":"最近登录用户","PROJECT_ALERTS":"项目告警","ENT_CLUSTER_GATEWAY_GUIDE_DESC":"如果同时存在集群网关、企业空间网关和项目网关,禁用项目网关后将无法再启用项目网关。 建议您使用集群网关或企业空间网关。","WORKSPACE_GATEWAY_GUIDE_DESC":"如果同时存在企业空间网关和项目网关,禁用项目网关后将无法再启用项目网关。 建议您使用企业空间网关或项目网关。","ROLL_BACK_MICROSERVICE_CONFIGURATION":"回退微服务配置","ROLLBACK_SUCCESSFUL":"回退成功。","HISTORICAL_VERSIONS":"历史版本","CONFIGURATION_CONTNET_TYPE":"数据({type})","SQ_CONFIGURATION":"微服务配置","SQ_CONFIGURATION_PL":"微服务配置","SQ_CONFIGURATION_DESC":"微服务配置存储供微服务使用的键值数据。您可以使用微服务配置分离微服务及其配置数据。","SQ_CONFIGURATION_EMPTY_DESC":"请创建微服务配置。","CONFIGURATION_STATUS_SUCCEEDED":"已发布","CONFIGURATION_STATUS_FAILED":"失败","CONFIGURATION_STATUS_":"更新中","DATA_ID":"数据 ID","CREATE_CONFIGURATION":"创建微服务配置","CONFIGURATION_CONTENT":"数据","CONFIGURATION_CONTENT_EMPTY_DESC":"请输入配置数据。","EDIT_CONFIGURATION":"编辑微服务配置","ORIGINAL_CONFIGURATION_CONTENT_READONLY":"原数据(只读)","CURRENT_CONFIGURATION_CONTENT":"新数据","REPLICATE":"复制","REPLICATE_CONFIGURATION_NAME":"复制微服务配置 {name}","SQ_CONFIGURATION_LOW":"微服务配置","MICROSERVICE_GATEWAY":"微服务网关","MICROSERVICE_GATEWAY_PL":"微服务网关","MICROSERVICE_GATEWAY_DESC":"微服务网关根据微服务路由将请求转发给微服务,以便微服务可以被其他微服务或客户端访问。","MICROSERVICE_GATEWAY_EMPTY_DESC":"未发现微服务网关","MICROSERVICE_GATEWAY_EMPTY_TIP":"请创建微服务网关。","GATEWAY_TYPE":"网关类型","MICROSERVICE_GATEWAY_STATUS_RUNNING":"运行中","MICROSERVICE_GATEWAY_STATUS_UPDATING":"更新中","MICROSERVICE_GATEWAY_STATUS_STOPPED":"停止","MICROSERVICE_GATEWAY_STATUS_":"创建中","CREATE_MICROSERVICE_GATEWAY":"创建微服务网关","GATEWAY_IMAGE_EMPTY_DESC":"请设置用于创建微服务网关的容器镜像。","REPLICA_COUNT_EMPTY_DESC":"请输入微服务网关的副本数。","EDIT_MICROSERVICE_GATEWAY":"编辑微服务网关","MICROSERVICE_GATEWAY_LOW":"微服务网关","MICROSERVICE_ROUTE":"微服务路由","MICROSERVICE_ROUTE_LOW":"微服务路由","MICROSERVICE_ROUTE_PL":"微服务路由","MICROSERVICE_ROUTE_DESC":"微服务网关根据微服务路由将请求转发给微服务,以便微服务可以被其他微服务或客户端访问。","MICROSERVICE_ROUTE_EMPTY_DESC":"请创建微服务路由。在创建微服务路由之前,请确保微服务网关可用。","CREATE_MICROSERVICE_ROUTE":"创建微服务路由","MICROSERVICE_ORDER":"优先级","MICROSERVICE_ORDER_DESC":"微服务路由的优先级,数字越小优先级越高。","MICROSERVICE_ROUTE_URL_DESC":"微服务的 URL。","PREDICATE":"断言","MICROSERVICE_ROUTE_FILTER":"过滤器","EDIT_MICROSERVICE_ROUTE":"编辑微服务路由","NO_INSTANCE_FOUND":"未发现实例","MICROSERVICE_INSTANCE_PL":"实例","MICROSERVICE_INSTANCE_STATUS":"实例状态","MICROSERVICE_INSTANCE_ID":"实例 ID","SPRING_CLOUD_METADATA":"Spring Cloud 元数据","POD_METADATA":"容器组元数据","SPRING_CLOUD_MONITORING":"Spring Cloud 监控","JVM_THREADS_LIVE":"活跃线程数量","JVM_THREADS_DAEMON":"守护进程数量","JVM_THREADS_PEAK":"峰值线程数量","JVM_MEMORY_USED":"已使用","JVM_MEMORY_COMMITTED":"可用","JVM_MEMORY_MAX":"最大值","JVM_MEMORY_USED_METASPACE":"初始值","SPRING_BOOT_CONFIGURATION_INFOMATION":"Spring Boot 环境变量 {resources}","PROPERTY_NOT_SET":"未发现环境变量","POD_ENVIRONMENT_VARIABLE":"容器组环境变量","SPRING_CLOUD":"Spring Cloud","MICROSERVICE":"微服务","MICROSERVICE_PL":"微服务","MICROSERVICE_DESC":"在 Spring Cloud 架构中,您可以构建由多个微服务组成的大规模应用程序。微服务负责处理客户端请求。每个微服务包含一个或多个实例,每个实例都是微服务的副本。","WHAT_IS_SERVICE_REGISTRATION_CENTER_Q":"什么是服务注册中心?","WHAT_IS_SERVICE_REGISTRATION_CENTER_A":"服务注册中心是 Spring Cloud 微服务架构的核心功能组件。服务注册中心储存微服务的信息,以及微服务和微服务地址之间的映射关系。","SERVICE_REGISTRY":"服务注册中心","SERVICE_REGISTRY_ADDRESS":"服务注册中心地址","DOWNLOAD_SAMPLE_CONFIGURATION":"下载示例配置","INSTANCE":"实例","INSTANCE_PL":"实例","HEALTHY_INSTANCE":"健康实例","HEALTHY_INSTANCE_PL":"健康实例","MICROSERVICE_INSTANCE_COUNT":"实例数量","MICROSERVICE_HEALTHY_INSTANCE_COUNT":"健康实例数量","HEALTH_PROTECTION_TRIGGERED":"已触发健康保护","MICROSERVICE_EMPTY_DESC":"请创建一个微服务。","SPRING_CLOUD_PROJECT_NOT_LABEL":"Spring Cloud 存量项目","SPRING_CLOUD_PROJECT_NOT_LABEL_DESC":"是否在该项目下启用 Spring Cloud","OPEN_PROJECT_SPRING_CLOUD":"启用 Spring Cloud","MICROSERVICE_INSTANCE_STATUS_RUNNING":"运行中","MICROSERVICE_INSTANCE_STATUS_OFFLINE":"离线","EDIT_WEIGHT":"编辑权重","INSTANCE_WEIGHT_DESC":"微服务实例的权重。","TAKE_ONLINE":"上线","TAKE_ONLINE_SUCCESS":"上线成功","CREATE_MICROSERVICE":"创建微服务","ASC_EXPORT":"正序导出","DESC_EXPORT":"倒序导出","LOG_EXPORT":"日志导出","END_USER_SOFTWARE_LICENSE_AGREEMENT":"最终用户软件许可协议","END_USER_SOFTWARE_LICENSE_AGREEMENT_LINK":"《最终用户软件许可协议》","PLEASE_AGREE_USER_SOFTWARE_LICENSE_AGREEMENT":"请同意最终用户软件许可协议。","WORKSPACE_GATEWAY_DESC":"在企业空间和项目中设置并管理外部网络接入网关和服务管理。","WORKSPACE_GATEWAY":"企业空间网关","WORKSPACE_GATEWAY_LOW":"企业空间网关","PROJECT_ENABLE_GATEWAY_DESC_WS":"如果需要设置项目网关,请前往对应项目开启。","CLUSTER_GATEWAY_GUIDE_DESC_WS":"如果同时存在集群网关和企业空间网关,禁用企业空间网关后将无法再启用它。 建议您只启用集群网关或企业空间网关。","CLUSTER_NOT_SUPPORT_WORKSPACE_GATEWAY":"此集群目前不支持此功能。如果您需要使用该功能,请将集群升级到 KubeSphere Enterprise 3.4.0 及以上版本。","STORAGE_RELATED_RESOURCE_LIMIT":"存储类关联资源限制","TOTAL_STORAGE_CLASS":"存储类总量","LIMITED_STORAGE_CLASS":"限制的存储类数量","RELATED_RESOURCE_QUOTA":"关联资源配额","REQUESTS_STORAGE":"持久卷声明限制","PERSISTENTVOLUMECLAIMS":"持久卷声明","TOTAL_STORAGE_RESOURCE":"存储资源总量","STORAGE_RELATED_RESOURCE":"存储类关联资源","TOTAL_STORAGE_LIMIT_LESS_THAN_RELATE_RESOURCE":"存储资源的总限额不能低于绑定资源的总限额。","VOLUME_TOTAL_CAPACITY":"持久卷声明容量({unit})","VOLUME_MAX_NUM":"持久卷声明总量","SET_RELATED_STORAGE_CLASS_QUOTA":"设置与存储类关联的持久卷声明配额。","SELECT_STORAGE_CLASS":"选择存储类","STORAGE_QUOTA":"存储资源配额","WS_STORAGE_QUOTA_DESC":"可以对企业空间下的存储资源总量进行限制。","NS_STORAGE_QUOTA_DESC":"可以对项目下的存储资源总量进行限制。","STORAGE_VOLUME_LIMIT_NO_LIMIT":"资源限制:不限制持久卷声明容量","STORAGE_VOLUME_LIMIT_HAS_A_LIMIT":"资源限制:持久卷声明容量 {num} Gi","STORAGE_PERSISTENT_VOLUME_NO_LIMIT":"持久卷声明数量无限制。","STORAGE_PERSISTENT_VOLUME_HAS_A_LIMIT":"持久卷声明数量{num}","STORAGE_LIMIT":"持久卷声明容量限制","STORAGE_CLASS_VOLUME":"持久卷声明数量","SELECT_A_STORAGECLASS":"选择存储类","VOLUME_COUNT":"已关联的持久卷声明数量","KS_DESCRIPTION":"KubeSphere 是一款开源项目,在目前主流容器调度平台 Kubernetes 之上构建的企业级分布式多租户容器管理平台,提供简单易用的操作界面以及向导式操作方式,在降低用户使用容器调度平台学习成本的同时,极大降低开发、测试、运维的日常工作的复杂度。","REPS_ADDRESS":"项目地址","ISSUE_FEEDBACK":"问题反馈","PART_IN_DISCUSSION":"参与讨论","CODE_CONTRIBUTE":"贡献代码","GITHUB_STAR":"标星","DESELECT_RESOURCE_FIRST":"请先取消选择{resource}。","NO_AUTHORIZED_USER_DESC":"此角色尚未授权给任何用户。","PLATFORM_ROLE_PL":"平台角色","PLATFORM_ROLE_EMPTY_DESC":"请创建一个平台角色。","ROLE_USERS_MANAGER":"管理 KubeSphere 平台上的所有用户。","ROLE_WORKSPACES_MANAGER":"管理 KubeSphere 平台上的所有企业空间。","ROLE_PLATFORM_ADMIN":"管理 KubeSphere 平台上的所有资源。","ROLE_PLATFORM_REGULAR":"被邀请加入企业空间之前无法访问任何资源。","ROLE_PLATFORM_SELF_PROVISIONER":"创建企业空间并成为所创建的企业空间的管理员。","CREATION_TIME_TCAP":"创建时间","CREATE_PLATFORM_ROLE":"创建平台角色","PERMIGROUP_CLUSTERS_MANAGEMENT":"集群","PERMISSION_CLUSTERS_VIEW":"集群查看","PERMISSION_CLUSTERS_VIEW_DESC":"查看所有集群和集群资源。","PERMISSION_CLUSTERS_MANAGEMENT":"集群管理","PERMISSION_CLUSTERS_MANAGEMENT_DESC":"创建集群、删除集群和管理集群中的所有资源。","PERMIGROUP_ACCESS_CONTROL":"访问控制","PERMISSION_WORKSPACES_VIEW":"企业空间查看","PERMISSION_WORKSPACES_VIEW_DESC":"查看工作空间。","PERMISSION_WORKSPACES_MANAGEMENT":"企业空间管理","PERMISSION_WORKSPACES_MANAGEMENT_DESC":"创建、编辑和删除企业空间。","PERMISSION_WORKSPACES_CREATE":"企业空间创建","PERMISSION_WORKSPACES_CREATE_DESC":"创建企业空间并成为所创建的企业空间的管理员。","PERMISSION_USERS_VIEW":"用户查看","PERMISSION_USERS_VIEW_DESC":"查看用户。","PERMISSION_USERS_MANAGEMENT":"用户管理","PERMISSION_USERS_MANAGEMENT_DESC":"创建、编辑和删除用户。","PERMISSION_ROLES_VIEW":"角色查看","PERMISSION_ROLES_VIEW_DESC":"查看平台角色。","PERMISSION_ROLES_MANAGEMENT":"角色管理","PERMISSION_ROLES_MANAGEMENT_DESC":"创建、编辑和删除平台角色。","PERMIGROUP_APPS_MANAGEMENT":"应用","PERMISSION_APP_TEMPLATES_VIEW":"应用查看","PERMISSION_APP_TEMPLATES_VIEW_DESC":"查看平台应用商店。","PERMISSION_APP_TEMPLATES_MANAGEMENT":"应用模板管理","PERMISSION_APP_TEMPLATES_MANAGEMENT_DESC":"管理平台应用商店和云原生应用的生命周期。","PERMIGROUP_PLATFORM_SETTINGS":"平台设置","PERMISSION_PLATFORM_SETTINGS_MANAGEMENT":"平台设置管理","PERMISSION_PLATFORM_SETTINGS_MANAGEMENT_DESC":"查看和编辑 KubeSphere平台的设置。","DELETING_PRESET_ROLES_NOT_ALLOWED":"无法删除预置角色。","CONFIRM_PASSWORD_TIP":"请再次输入新的密码。","CHANGE_PASSWORD":"修改密码","NEW_PASSWORD":"新密码","PASSWORD_STRENGTH":"密码强度","PASSWORD_STRENGTH_DESC":"避免使用弱密码其他账户的密码。","TIME":"时间","SOURCE_IP_ADDRESS":"源 IP 地址","LOGIN_HISTORY":"登录历史","NO_LOGIN_HISTORY":"未发现登录历史。","SUCCESSFUL":"成功","FAILED":"失败","USER_DESC":"管理用户及其角色。","USER_PL":"用户","NOT_LOGIN_YET":"尚未登录","USER_EMPTY_DESC":"请创建一个用户。","USER_ACTIVE":"活跃","USER_AUTHLIMITEXCEEDED":"限制登录","USER_PENDING":"等待中","USER_DISABLED":"已禁用","LAST_LOGIN":"最近登录","USERNAME_DESC":"用户名只能包含小写字母、数字、连字符(-)和句点(.),必须以小写字母或数字开头及结尾,最长 32 个字符。","PASSWORD_DESC":"密码必须包含至少一个数字、一个小写字母、一个大写字母和一个特殊字符(~!@#$%^&*()-_=+\\|[{}];:'\",<.>/? 或空格),长度为 8 到 64 个字符。","PASSWORD_INVALID_DESC":"密码无效。密码必须包含数字、大写字母和小写字母,长度为 8 至 64 个字符。","PLATFORM_ROLE_DESC":"设置用户在 KubeSphere 平台的角色。","USER_SETTING_EMAIL_DESC":"邮箱地址可用于登录 KubeSphere Web 控制台。","USERNAME_EXISTS":"用户名已存在,请输入其他用户名。","USERNAME_EMPTY_DESC":"请输入一个用户名。","PLATFORM_ROLE":"平台角色","CREATE_USER":"创建用户","EMAIL":"邮箱","EMAIL_EXISTS":"邮箱地址已存在,请输入其他邮箱地址。","USERNAME_INVALID":"用户名无效。{message}","USERNAME":"用户名","PASSWORD":"密码","EDIT_USER":"编辑用户","USER_LOW":"用户","DELETING_CURRENT_USER_NOT_ALLOWED":"无法删除当前用户。","WORKSPACE_PL":"企业空间","WORKSPACE_DESC":"企业空间是一个组织您的项目和 DevOps 项目、管理资源访问权限以及在团队内部共享资源等的逻辑单元,可以作为团队工作的独立工作空间。","KS_WORKSPACE_PL":"KS 企业空间","KS_WORKSPACE_DESC":"KS 企业空间是一个组织您的项目和 DevOps 项目、管理资源访问权限以及在团队内部共享资源等的逻辑单元,可以作为团队工作的独立工作空间。","EDGE_WORKSPACE_PL":"边缘企业空间","EDGE_WORKSPACE_DESC":"边缘企业空间是一个组织您的项目和 DevOps 项目、管理资源访问权限以及在团队内部共享资源等的逻辑单元,可以作为团队工作的独立工作空间。","CLUSTER_PL":"集群","ALL_CLUSTERS":"所有集群","CREATE_WORKSPACE":"创建企业空间","CREATE_KS_WORKSPACE":"创建 KS 企业空间","CREATE_EDGE_WORKSPACE":"创建边缘企业空间","WORKSPACE_NAME_EMPTY_DESC":"请输入企业空间名称。","WORKSPACE_CREATE_DESC":"设置企业空间的基本信息。","ADMINISTRATOR":"管理员","WORKSPACE_NAME_EXISTS_DESC":"企业空间名称已存在。","INVALID_WORKSPACE_NAME":"企业空间名称无效。","SELECT_CLUSTERS_DESC":"选择企业空间需要使用的{type}。","NO_CLUSTER_AVAILABLE":"没有可用集群","NO_CLUSTER_AVAILABLE_DESC":"未发现可用的{type}。请在企业空间创建完成后,联系平台管理员或集群管理员将一个集群授权给该企业空间。","WORKSPACE_NO_CLUSTER_TIP":"请联系平台管理员或者集群管理员将一个集群授权给企业空间。","AVAILABLE_CLUSTERS":"可用集群","CLUSTER_SETTINGS":"集群设置","CLUSTER_SETTINGS_LIMIT_DESC":"请至少选择一个集群。","SELECT_HOST_CLUSTER_WARNING":"当前系统为多集群系统,请尽量避免在主集群上创建资源。主集群负载过高会导致多集群系统稳定性下降。","DELETE_WORKSPACE":"删除企业空间","WORKSPACE_LOW":"企业空间","BACK":"返回","AGREE":"同意","APP_DEPLOY_AGREEMENT":"安装须知","APP_DEPLOY_AGREEMENT_DESC_1":"您必须遵守该应用的开源协议。","APP_DEPLOY_AGREEMENT_DESC_2":"您将自行承担部署该应用导致的任何后果。如果需要支持服务,请联系相关开发者。","DO_NOT_REMIND_AGAIN":"不再提示","LOCATION":"位置","CLUSTER_NAME_DESC":"名称只能包含小写字母、数字和连字符(-),必须以小写字母开头并以小写字母或数字结尾,最长 32 个字符。","FEDPROJECT_CANNOT_DEPLOY_APP_TIP":"无法在联邦项目中安装应用。","LATEST_VERSION_SCAP":"最新版本","WORKSPACE_EMPTY_DESC":"请选择企业空间","VERSION_EMPTY_DESC":"请选择版本。","HELM_APP_SCHEMA_FORM_TIP":"您可以通过图形化表单或 YAML 文件对应用进行设置。图形化表单和 YAML 文件中的设置相互独立。","DEPLOYED_SUCCESSFUL":"部署成功。","APP_INFORMATION":"应用信息","VERSION_NUMBER":"版本号","APP_SCREENSHOTS":"应用截图","CATEGORY_COLON":"分类:","HOMEPAGE_COLON":"首页:","RELEASE_DATE_COLON":"发布时间:","APP_ID_COLON":"应用 ID:","SOURCE_CODE_ADDRESS_COLON":"源代码地址:","APP_VERSIONS_TITLE":"版本(只显示 10 个最新的版本)","MAINTAINER_COLON":"维护者:","VERSIONS":"版本","KEYWORDS":"关键词","NONE":"无","APP_INTRODUCTION":"应用介绍","APP_DETAILS":"应用详情","NO_DOCUMENT_DESC":"未发现说明文档。","VERSION_INTRO_EMPTY_DESC":"未发现该版本的介绍。","CHART_FILES":"Chart 文件","NO_APP_CHART_FILE_FOUND":"未发现该应用的 chart 文件。","APP_STORE":"应用商店","HOME_APP_STORE_DESC":"KubeSphere 官方应用商店提供部署及管理功能,用户可以基于应用模板快速地一键部署应用。","DISCOVER":"发现","NEW_APPS":"新应用","APP_CATE_ALL":"全部","APP_CATE_UNCATEGORIZED":"未分类","APP_CATE_MESSAGE_QUEUEING":"消息队列","APP_CATE_IMAGE_REGISTRY":"镜像服务","APP_CATE_PROMETHEUS_EXPORTER":"Prometheus 导出器","APP_CATE_WEB_SERVER":"Web 服务器","APP_CATE_NETWORKING":"网络","APP_CATE_DATABASE_CACHE":"数据库和缓存","APP_CATE_STORAGE":"存储","MAINTAINER_VALUE":"维护者:{value}","CREATOR_VALUE":"创建者:{value}","LATEST_VALUE":"最新:{value}","TOTAL_CATE_COUNT":"应用总数:{total}","SEARCH_BY_NAME":"按名称搜索","CONTAINER_GROUP_INFO":"容器组信息","APP_SETTINGS":"应用设置","APP_CATEGORY_PL":"应用分类","APP_CATEGORIES_DESC":"对应用商店中已上架的应用进行分类管理。您可以创建、编辑、删除和调整应用分类。","ALL_CATEGORIES_VALUE":"全部分类({value})","APP_CATEGORY_EMPTY_DESC":"没有属于当前分类的应用。","ENTER_CATEGORY_NAME_TIP":"请输入分类名称。","CATEGORY_NAME_DESC":"名称可包含任意字符,最长 20 个字符。","DELETE_CATEGORY_DESC":"您确定要删除分类 {name} 吗?","CHANGED_SUCCESSFULLY":"调整成功。","CHANGE_CATEGORY":"更改分类","CHANGE_CATEGORY_DESC":"应用分类将决定该应用在应用商店中的分类。","APP_DETAILS_DESC":"查看待发布的应用的详情。","INTRODUCTION":"介绍","SERVICE_PROVIDER_WEBSITE":"服务商网站","APP_DESCRIPTION":"应用描述","DOCUMENTATION":"说明文档","NO_DOCUMENT_FOUND":"未发现说明文档","UPDATE_TIME_COLON":"更新时间:","UPDATE_LOG":"更新日志","NO_UPDATE_LOG_DESC":"未发现更新日志。","REJECT":"拒绝","REJECT_REASON_DESC":"填写拒绝应用审核的原因。","REJECT_REASON_TIP":"请填写至少一条拒绝原因。","REJECT_SUCCESSFUL":"拒绝成功。","APPROVE":"批准","RELEASE_SUCCESSFUL":"发布成功。","APP_REVIEW":"应用审核","APP_REVIEW_DESC":"审核待发布到应用商店的应用。","NEW_SUBMIT":"新提交","APP_REVIEW_EMPTY_DESC":"请在企业空间中创建应用模板并提交审核。","APP_STATUS_TO_BE_REVIEWED":"待审核","APP_STATUS_PASSED":"已批准","APP_STATUS_SUSPENDED":"已下架","APP_STATUS_REJECTED":"已拒绝","APP_STATUS_IN_REVIEW":"审核中","OPERATOR":"操作者","APP_REVIEW_UNPROCESSED_EMPTY_DESC":"没有需要审核的应用","SUSPEND":"下架","APP_NOTE":"提示","SUSPEND_SUCCESSFUL":"下架成功。","RELEASE":"发布","ACTIVATE_SUCCESSFUL":"发布成功。","APP_ID":"应用 ID","CATEGORY":"分类","TYPE":"类型","DEVELOPER":"开发者","NO_VERSION_INFO_DESC":"未发现版本信息。","ACTIVATE_VERSION":"上架版本","CANCEL_SUBMISSION":"取消提交","SUSPEND_VERSION":"下架版本","APP_SUSPEND_TIP":"应用 {name} 下架后,用户无法从商店中部署此应用,您确定要下架该应用吗?","APP_RECOVER_TIP":"应用 {name} 上架后,相关的下架版本都将变成上架,您确定要上架该应用吗?","REJECTION_REASON":"拒绝原因","RELEASE_RECORD":"发布记录","RELEASE_RECORD_EMPTY_DESC":"未发现发布记录。","APPS":"应用","APP_STORE_MANAGEMENT":"应用商店管理","APP_STORE_DESC":"管理应用商店中的应用。您可以查看应用的信息并上架或下架应用。","APP_CATEGORY":"应用分类","APP_EMPTY_DESC":"请在企业空间中创建应用模板并将其发布到应用商店。","CRONJOB_EMPTY_DESC":"请创建一个定时任务。","EVERY_DAY":"0 0 * * * (每天)","EVERY_HOUR":"0 * * * * (每小时)","EVERY_MONTH":"0 0 1 * * (每月)","EVERY_WEEK":"0 0 * * 0 (每周)","PAUSE":"暂停","START":"启动","DAEMONSETS":"守护进程集","DAEMONSET_EMPTY_DESC":"请创建一个守护进程集。","MIN_READY_SECONDS":"容器组就绪最短运行时长(s)","MAX_UNAVAILABLE_PODS":"最大不可用容器组数量","ROLLING_UPDATE_SETTINGS":"滚动更新设置","MAX_UNAVAILABLE_PODS_DESC":"更新过程中允许的不可用容器组副本的最大数量或百分比。","MIN_READY_SECONDS_DESC":"容器组副本被视为就绪所需要的最短稳定运行时长。","MIN_READY_SECONDS_EMPTY":"请设置容器组副本被视为就绪所需要的最短稳定运行时长。","MAX_UNAVAILABLE_EMPTY":"请设置更新过程中允许的不可用容器组副本的最大数量或百分比。","FAILURE_THRESHOLD":"失败阈值","HTTP_REQUEST":"HTTP 请求","INITIAL_DELAY_S":"初始延迟(s)","INITIAL_DELAY_TIMEOUT_VALUE":"{delay}s 初始延迟, {timeout}s 超时时间","PROBE_TIME":"初始延时: {delay}s 超时时间:{timeout}s","TIMEOUT_PERIOD_S":"超时时间(s)","CHECK_INTERVAL_S":"检查间隔(s)","SUCCESS_THRESHOLD":"成功阈值","INITIAL_DELAY_DESC":"容器启动后探针启动前的延迟时间。","TIMEOUT_PERIOD_DESC":"探针超时时间。探针超时后,检查将被视为失败。取值必须为整数,最小值为 0。","CHECK_INTERVAL_DESC":"执行检查的时间间隔。取值必须为整数,最小值为 1。","SUCCESS_THRESHOLD_DESC":"检查失败后再次被视为成功所需的最小连续成功次数。最小值为 1。对于存活探针和启动探针,此参数值必须为 1。","FAILURE_THRESHOLD_DESC":"检查成功后再次被视为失败所需的最小连续失败次数。最小值为 1。","PROBE_COMMAND_EMPTY":"请输入至少一条命令。","TCP_PORT":"TCP 端口","MOUNT_PATH_IN_USE":"挂载路径已被使用,请输入其他挂载路径。","CREATOR":"创建者","NO":"否","EDIT_CONTAINER":"编辑容器","MULTI_CLUSTER_RESOURCE_TIP":"当前资源跨多个集群部署。您可以点击一个集群以查看资源在该集群中的设置。","NODE":"节点","SERIAL_NUMBER":"序列号","CREATED_TIME":"创建于 {diff}","EVENT_PL":"事件","EVENT_NORMAL":"正常","EVENT_WARNING":"一般告警","APPLICATION_WORKLOAD_PL":"应用负载","WORKLOAD_PL":"工作负载","DEPLOYMENTS":"部署","UPDATE_TIME_TCAP":"更新时间","ALL_PROJECTS":"全部项目","SHOW_NUM":"每页显示:{num}","SELECT_PROJECT_DESC":"选择将要创建资源的项目。","PROJECT_NOT_SELECT_DESC":"请选择一个项目。","BASIC_INFORMATION":"基本信息","NAME":"名称","FEDPROJECT_RESOURCE_TIP":"无法在集群管理内创建联邦项目的资源, 请到联邦项目页面内进行操作。","FINISHED":"已设置","NOT_SET":"未设置","CURRENT":"当前","PROJECT":"项目","PREVIOUS":"上一步","NOTE":"备注","IMAGE":"镜像","IMAGE_VALUE":"镜像:{value}","PORT_NUMBER_EMPTY":"请输入端口号。","USER":"用户","VOLUME_NAME_EXIST":"卷名称已存在。","SELECT_TYPE":"选择{type}","SPECIFY_SUBPATH":"指定子路径","SPECIFY_SUBPATH_TIP":"指定需要挂载到容器的卷子路径。","MOUNT_PATH":"挂载路径","MOUNT_PATH_NOT_SPECIFIED":"请选择需要挂载的键和键的挂载路径。","MOUNT_PATH_EMPTY":"请输入挂载路径。","MOUNT_PATH_REPEATED":"挂载路径重复。","NETWORK_SEGMENT_SCAP":"网段","AVAILABLE_ADDRESSES":"可用地址数量","POD_IP_POOL":"容器组 IP 池","SUBPATH":"子路径","ANNOTATION_PL":"注解","CREATE_SUCCESSFUL":"创建成功。","STOP":"停止","STOP_TITLE_SI":"停止{type}","STOP_TITLE_PL":"批量停止{type}","STOP_DESC":"您确定停止该资源吗?","END_TIME":"结束时间","SN_NO":"序号","START_TIME":"开始时间","NODE_IP_ADDRESS":"节点 IP 地址","CLUSTER":"集群","CONTAINER_PL":"容器","PROBE_PL":"探针","HOOK_PL":"钩子","CONTAINER_LOGS_NOT_SUPPORTED":"容器在当前不支持实时日志,请稍后重试。","CONTAINER_LOGS":"容器日志","COMMAND":"命令","IMAGE_ID":"镜像 ID","IMAGE_PULL_POLICY":"镜像拉取策略","CONTAINER_DETAILS_PAGE_SCAP":"容器详情页。","CPU_VALUE":"CPU:{value, plural, =1 {1 核} other {# 核}}","MEMORY_VALUE":"内存:{value}","NVIDIA_COM_GPU_VALUE":"GPU:{value}","LOADING":"加载中...","RESOURCE_LIMITS":"资源上限","RESOURCE_REQUESTS":"资源预留","TERMINAL":"终端","RESTART_PL":"重启次数","RESTART":"重启次数","STORAGE_DEVICES":"存储设备","LIVENESS_PROBE":"存活探针","READINESS_PROBE":"就绪探针","STARTUP_PROBE":"启动探针","REQUEST_TYPE":"请求类型","NO_LOG_DATA_FOUND":"未发现日志数据","NO_LOG_DATA_FOUND_TIP":"没有找到日志数据。","VOLUME_PL":"卷","TYPE_CONFIGMAP":"卷类型:配置字典","TYPE_SECRET":"卷类型:保密字典","TYPE_EMPTYDIR":"卷类型:EmptyDir","TYPE_HOSTPATH":"卷类型:HostPath","REASON_VALUE":"原因:{value}","MESSAGE_VALUE":"消息:{value}","UPDATED_AT_VALUE":"更新时间:{value}","NO_MONITORING_DATA":"未发现监控数据","OUTBOUND":"出站","INBOUND":"入站","POD_PL":"容器组","NODE_IP":"{node}({ip})","WAITING":"等待中","POD_LOW":"容器组","PENDING":"等待中","SERVICE_VALUE":"服务:{value}","PROTOCOL_VALUE":"协议:{value}","ROUTE_DESC":"应用路由提供一种聚合服务的方式,您可以通过一个外部可访问的 IP 地址将集群的内部服务暴露给外部。","PREREQUESTS_FOR_USE_ROUTE_Q":"使用应用路由的前提条件?","PREREQUESTS_FOR_USE_ROUTE_A":"如需使用应用路由,您需要联系项目管理员启用项目网关。","ACCESS_TYPES_OF_ROUTE_Q":"应用路由支持哪些的访问模式?","ACCESS_TYPES_OF_ROUTE_A":"KubeSphere 应用路由支持 NodePort 访问模式以及 LoadBalancer 访问模式。","ROUTE_PL":"应用路由","GATEWAY_ADDRESS_TCAP":"网关地址","ROUTE_EMPTY_DESC":"请创建应用路由。","ADD_ROUTING_RULE_DESC":"添加一个路由规则将域名路径映射至服务。","ADD_ROUTING_RULE":"添加路由规则","ROUTING_RULE_EMPTY_DESC":"请添加至少一个路由规则。","PATH_EMPTY_DESC":"请添加至少一个路径。","AUTO_GENERATE_TCAP":"自动生成","DOMAIN_NAME_TCAP":"域名","DOMAIN_NAME_EMPTY_DESC":"请输入一个域名。","INVALID_DOMAIN_DESC":"域名格式错误。","INVALID_PATH_DESC":"路径不正确。","MODE_TCAP":"模式","PATH_PL":"路径","PATH_SERVICE_TIP":"服务","SET_ROUTING_RULES":"设置路由规则","SPECIFY_DOMAIN_TCAP":"指定域名","NO_GATEWAY_DESC":"如需使用自动生成模式,请联系项目管理员在此项目的高级设置中设置网关访问模式。","PATH":"路径","PROTOCOL":"协议","PORT":"端口","PORT_VALUE":"端口:{value}","CERTIFICATE":"证书","EDIT_ROUTING_RULES":"编辑路由规则","EDIT_ANNOTATIONS":"编辑注解","ROUTE_LOW":"应用路由","PLEASE_INSTALL_GATEWAY":"请安装 KubeSphere 网关扩展组件,并配置集群 Agent 后再试。","ROUTE_SETTING_DESC":"应用路由工具在应用路由的基础上,提供了多项实用扩展能力,如域名重用校验。","ROUTE_SETTING_EMPT":"未发现需重用校验的域名","ROUTE_SETTING_EMPTY_DESC":"添加域名后,会在创建和编辑应用路由时对域名进行唯一性校验。“域名重用校验”仅对当前集群生效,且不作用于使用该功能前已存在的应用路由。","CREATE_DOMAIN_NAME":"添加域名","CREATE_DOMAIN_NAME_DES":"添加域名时支持使用通配符进行匹配。","INVALID_CREATE_DOMAIN_NAME":"该域名已经存在,请输入其他域名。","DOMAIN_NAME_DESC":"请设置一个域名","INVALID_DOMAIN_NAME":"域名重用校验","ROUTE_SETTING":"域名","ROUTE_SETTING_PL":"应用路由工具","ROUTE_SETTING_LOW":"域名","DELETE_MULTIPLE_ROUTE_SETTING":"批量删除域名","EXIT_DOMAIN_DESC":"该域名或域名的子域名在当前集群的项目中已使用,请更换不同域名。","CUSTOM_SERVICE":"自定义服务","VIRTUAL_IP":"VirtualIP","CONTAINER_PORT_SCAP":"容器端口","SERVICE_PORT_SCAP":"服务端口","NO_AVAILABLE_RESOURCE_VALUE":"未发现可用{resource}","NO_RESOURCE_FOUND":"未发现资源","REVISION_RECORD":"修改记录","SERVICE_PL":"服务","SERVICE_DESC":"服务(Service)提供一种抽象的方法,将运行在容器组(Pod)上的应用程序公开为网络服务。","SERVICE_EMPTY_DESC":"请创建一个服务。","UNKNOWN":"未知","EXTERNAL_ACCESS":"外部访问","INTERNAL_ACCESS":"内部访问","UNKNOWN_SERVICE_TYPE":"未知服务类型","SERVICE":"服务","SERVICE_LOW":"服务","INTERNAL_ACCESS_MODE":"内部访问模式","CREATE_SERVICE":"创建服务","SERVICE_NAME_DESC":"名称只能包含小写字母、数字和连字符(-),必须以小写字母开头并以小写字母或数字结尾,最长 63 个字符。","VIRTUAL_IP_TITLE":"虚拟 IP 地址","INTERNAL_DOMAIN_NAME":"内部域名","CONTAINER_PORT":"容器端口","INVALID_PORT":"端口无效。","PORT_EMPTY":"请设置至少一个端口。","ENTER_SELECTOR_TIP":"请设置工作负载选择器。","Ports":"端口","SPECIFY_WORKLOAD":"指定工作负载","SELECT_WORKLOAD_DESC":"使用工作负载的标签作为选择器。","VIRTUAL_IP_DESC":"为服务分配虚拟 IP 地址,可通过虚拟 IP 地址在集群内部访问服务。","INTERNAL_DOMAIN_NAME_DESC":"不为服务分配 IP 地址,可通过集群的 DNS 机制在集群内部访问服务。","SERVICE_PORTS_DESC":"设置容器端口和服务端口。","NO_WORKLOAD_MATCH_SELECTOR":"没有工作负载匹配当前选择器。","WORKLOADS_MATCH_SELECTOR_SI":"当前选择器({selector})与 {count} 个工作负载匹配。","WORKLOADS_MATCH_SELECTOR_PL":"当前选择器({selector})与 {count} 个工作负载匹配。","WORKLOAD_SELECTOR":"工作负载选择器","SERVICE_SETTINGS":"服务设置","TOTAL_WORKLOADS_VALUE":"工作负载总数:{count}","OPENELB_NOT_READY":"OpenELB 未安装。请安装 OpenELB。","SESSION_PERSISTENCE":"会话保持","MAXIMUM_STICKINESS_DURATION":"最长会话保持时间(s)","SESSION_PERSISTENCE_DESC":"设置系统在指定的时间内将同一个会话中来自同一个客户端的请求全部转发给同一个容器组。","SERVICE_EXTERNAL_ACCESS_DESC":"设置从集群外访问服务的方式。","ACCESS_NODEPORT_TIP":"通过集群节点的端口访问服务。","ACCESS_LOADBALANCER_TIP":"通过负载均衡器访问服务。","WORKLOAD_ANNOTATIONS":"工作负载注解","LABEL_FORMAT_DESC":"标签的键和值只能包含字母、数字、连字符(-)、下划线(_)和句点(.),必须以数字或字母开头和结尾。键和值分别最长 63 个字符(如键包含域名则最长 253 个字符)。","STATEFULSETS":"有状态副本集","INVALID_ALIAS_NAME_DESC":"别名无效。别名只能包含中文、字母、数字和连字符(-),不得以连字符(-)开头或结尾,最长 63 个字符。","NODES":"节点","DISK":"磁盘","CLUSTER_INFORMATION":"集群信息","CLUSTER_NAME":"集群名称","EDIT_CLUSTER_INFO_DESC":"编辑集群基本信息。","REMOVE_CLUSTER":"移除集群","REMOVE_CLUSTER_DESC":"集群被移除后,KubeSphere 将无法管理集群,集群中的资源将不会被删除。请输入集群名称 {name} 以确认您了解此操作的风险。","REMOVE_SUCCESS":"移除成功。","CLUSTER_MEMBER_PL":"集群成员","CLUSTER_MEMBER":"集群成员","INVITE_CLUSTER_MEMBER_DESC":"邀请用户加入集群。","PERMIGROUP_NETWORK_MANAGEMENT":"网络","PERMISSION_NETWORK_RESOURCES_VIEW":"网络资源查看","PERMISSION_NETWORK_RESOURCES_MANAGEMENT":"网络资源管理","PERMIGROUP_PROJECT_RESOURCES_MANAGEMENT":"项目资源","PERMISSION_PROJECT_RESOURCES_VIEW":"项目资源查看","PERMISSION_PROJECT_RESOURCES_MANAGEMENT":"项目资源管理","PERMISSION_STORAGECLASSES_VIEW":"存储类查看","PERMISSION_STORAGECLASSES_MANAGEMENT":"存储类管理","PERMISSION_VOLUME_SNAPSHOT_CLASSES_VIEW":"卷快照类查看","PERMISSION_VOLUME_SNAPSHOT_CLASSES_MANAGEMENT":"卷快照类管理","PERMIGROUP_CLUSTER_RESOURCES_MANAGEMENT":"集群资源","PERMISSION_CRD_VIEW":"定制资源定义查看","PERMISSION_CRD_MANAGEMENT":"定制资源定义管理","PERMISSION_NODES_VIEW":"节点查看","PERMISSION_NODES_MANAGEMENT":"节点管理","PERMISSION_COMPONENTS_VIEW":"系统组件查看","PERMIGROUP_CLUSTER_SETTINGS":"集群设置","PERMISSION_CLUSTER_SETTINGS_VIEW":"集群设置查看","PERMISSION_CLUSTER_SETTINGS_MANAGEMENT":"集群设置管理","PERMISSION_CLUSTER_MONITORING_VIEW":"监控信息查看","PERMISSION_CLUSTER_MONITORING_MANAGEMENT":"监控信息管理","PERMISSION_CLUSTER_ROLES_VIEW":"角色查看","PERMISSION_CLUSTER_ROLES_MANAGEMENT":"角色管理","PERMISSION_CLUSTER_MEMBERS_VIEW":"成员查看","PERMISSION_CLUSTER_MEMBERS_MANAGEMENT":"成员管理","CLUSTER_ROLE":"集群角色","CLUSTER_ROLE_PL":"集群角色","CLUSTER_ROLE_DESC":"集群角色定义了在集群范围内授权用户的访问权限。","ROLE_CLUSTER_VIEWER":"查看集群中的所有资源。","ROLE_CLUSTER_ADMIN":"管理集群中的所有资源。","ROLE_CLUSTER_REGULAR":"被邀请加入节点组之前无法访问任何资源。","ROLE_CLUSTER_SELF_PROVISIONER":"创建节点组并成为所创建的节点组的管理员。","CLUSTER_VISIBILITY":"集群可见性","EDIT_VISIBILITY_DESC":"编辑集群在企业空间中的可见性。","UNAUTHORIZED":"未授权","CLUSTER_VISIBILITY_DESC":"集群可见性控制集群对企业空间的授权。将集群授权给企业空间后,即可在企业空间中查看并管理集群资源。","CLUSTER_VISIBILITY_Q1":"如何将集群授权给指定的企业空间使用?","CLUSTER_VISIBILITY_A1":"您可以点击编辑可见性将集群授权给指定的企业空间使用。","CLUSTER_VISIBILITY_Q2":"什么是公开集群?","CLUSTER_VISIBILITY_A2":"公开状态的集群意味着平台内的用户都可以使用该集群,并在集群中创建和调度资源。","WORKSPACE":"企业空间","CLUSTER_VISIBILITY_SCAP":"集群可见性","AUTHORIZATION_TIME_TCAP":"授权时间","EDIT_VISIBILITY":"编辑可见性","AUTHORIZED":"已授权","SET_PUBLIC_CLUSTER":"设置为公开集群","HOST_CLUSTER_VISIBILITY_WARNING":"请谨慎将主集群授权给企业空间,主集群负载过高会导致多集群系统稳定性下降。","CLUSTER_VISIBILITY_REMOVE_WARNING":"移除集群对企业空间的授权后,该企业空间在当前集群下的所有资源将被删除。","REMOVE_WORKSPACE_CONFIRM_TITLE":"移除授权","REMOVE_WORKSPACE_CONFIRM_SI":"请输入企业空间名称 {resource} 确保您已了解操作所带来的风险。","REMOVE_WORKSPACE_CONFIRM_PL":"请输入企业空间名称 {resource} 确保您已了解操作所带来的风险。","GATEWAY_LOW":"网关","REQUEST_COUNT":"请求数量","NETWORK_TRAFFIC":"网络流量","CONNECTION_COUNT":"连接数量","FAILED_REQUEST_COUNT":"失败请求数量","AVERAGE_LATENCY":"平均延迟","P_FIFTY_LATENCY":"P50 延迟","P_NINETY_FIVE_LATENCY":"P95 延迟","P_NINETY_NINE_LATENCY":"P99 延迟","FOUR_XX_REQUEST_COUNT":"4XX 请求数量","FIVE_XX_REQUEST_COUNT":"5XX 请求数量","TOTAL_REQUESTS":"总请求数量","SUCCESSFUL_REQUESTS":"成功请求","CONFIGURATION_OPTIONS":"配置选项","GATEWAY_LOGS":"网关日志","LOGGING_DISABLED":"日志组件未启用","REFRESH_INTERVAL_VALUE":"刷新间隔:{value}s","EXPORT_LOGS":"导出日志","GATEWAY_SETTINGS":"网关设置","CLUSTER_GATEWAY_DESC":"对集群中的外网访问网关以及服务治理等配置进行设置和管理。","CLUSTER_GATEWAY_NOT_ENABLED":"集群网关未启用","CLUSTER_ENABLE_GATEWAY_DESC":"请启用集群网关。","CLUSTER_GATEWAY":"集群网关","GATEWAY_ADDRESS_SCAP":"网关地址","LOAD_BALANCER_PROVIDER_SCAP":"负载均衡器提供商","ENABLE_GATEWAY":"启用网关","GATEWAY_TRACING_TIP":"如果启用链路追踪后路由无法访问,请在路由中添加注解 nginx.ingress.kubernetes.io/service-upstream: true。","NGINX_INGRESS_VERSION":"Nginx ingress 版本","VIEW_DETAILS":"查看详情","DISABLE":"禁用","DISABLE_GATEWAY":"禁用网关","DISABLE_GATEWAY_TIP":"您确定禁用网关吗?","DISABLE_SUCCESSFUL":"禁用成功。","EDIT":"编辑","EDIT_TITLE":"编辑{title}","UPDATE":"更新","UPDATED_GATEWAY_TITLE":"更新网关","UPDATE_GATEWAY_DESC":"当前网关可以更新。","PROJECT_GATEWAY_PL":"项目网关","PROJECT_GATEWAY_NOT_ENABLED":"项目网关未启用","PROJECT_ENABLE_GATEWAY_DESC":"请启用项目网关。","REPLICA_COUNT":"副本数量","NODE_PORTS":"节点端口","PROJECT_GATEWAY_LOW":"项目网关","DISABLE_MULTIPLE_GATEWAYS":"批量禁用网关","EDIT_LOG_RECEIVER":"编辑日志接收器","INDEX_PREFIX":"索引前缀","LOG_RECEIVER":"日志接收器","LOG_RECEIVER_LOW":"日志接收器","CHANGE_STATUS":"更改状态","LOG_COLLECTION_ENABLE_TIPS":"新的状态需要 1 分钟左右生效。","SELECT_STATUS_TIP":"选择一个状态","ADDRESS":"地址","LOG_RECEIVER_PL":"日志接收器","LOG_COLLECTION_DESC":"系统将收集每个容器的标准输出和标准错误输出日志,并将其发送到一个或多个目标服务。","ADD_LOG_RECEIVER":"添加日志接收器","LOG_COLLECTION_TIPS":"每种类型的日志收集器只能添加一个。","ES_DESC":"Elasticsearch 是分布式、RESTful 风格的搜索和分析引擎。","KAFKA_DESC":"Kafka 是流行的开源流处理平台。","FLUENTD_DESC":"Fluentd 是提供统一日志处理层的开源数据收集器。","LOG_COLLECTION_ES_URL_TIPS":"默认使用系统部署的 Elasticsearch 服务,您也可以输入在集群内部或外部单独部署的 Elasticsearch 服务的地址。","LOG_COLLECTION_ES_INDEX_TIPS":"使用索引前缀进行快速搜索。系统以<集群>-<索引前缀>-<年-月-日>格式自动生成索引前缀。","ADDRESS_VALUE":"地址:{value}","TOPIC":"主题","ADD_SERVICE_ADDRESS":"添加","SERVICE_ADDRESS":"服务地址","ENTER_SERVICE_ADDRESS":"请输入服务地址。","INVALID_SERVICE_ADDRESS":"请输入正确的服务地址。","SERVICE_ADDRESS_EXIST":"服务地址已存在,请输入其他服务地址。","EXAMPLE_VALUE":"例如:{value}","LOG_COLLECTION_FLUENTD_URL_TIPS":"输入接收日志的 Fluentd 服务的地址。","EMPTY_LOG_COLLECTIONS":"未发现日志接收器。您可以添加日志接收器将日志发送到外部日志接收器中。","RESOURCE_EVENTS":"资源事件","AUDIT_LOGS":"审计日志","NO_CLUSTER_TIP":"请添加至少 1 个集群","CLUSTER_NAME_EMPTY":"请输入集群名称。","ADD_CLUSTER":"添加集群","TAG":"标签","CLUSTER_TAG_DESC":"选择标签来标识集群的用途。","CLUSTER_PROVIDER_DESC":"选择提供集群基础设施的服务商。","CONNECTION_SETTINGS":"连接设置","CLUSTER_CONFIG":"集群配置","EDIT_CONFIG":"编辑配置","CLUSTER_CONFIG_IMAGE_REGISTRY_TIP":"请将下方镜像仓库配置修改为实际使用的仓库地址。默认为 KubeSphere 官方在线仓库地址,请确认可访问后使用","CONNECTION_MODE":"连接模式","CLUSTER_CONNECT_MODE_DESC":"直接连接集群或使用代理连接集群。","CONNTECT_DIRECT":"直接连接","CONNTECT_PROXY":"代理连接","INPUT_KUBECONFIG":"成员集群 kubeconfig","CLUSTER_DIRECT_IMPORT_TIP":"KubeSphere 多集群控制平面通过提供的 kubeconfig 来直接连接导入集群,此种方式要求当前集群能够通过 kubeconfig 中的 server 地址直接访问待导入集群。

    通常适用于:
    1. 当前集群和待导入集群在同一内网网络中
    2. 当前集群和待导入集群已通过 VPN 或隧道等其它技术连通所在网络
    3. kubeconfig 的 server 地址可以通过公网访问","CLUSTER_AGENT_IMPORT_TIP":"KubeSphere 控制平面通过代理方式连接待导入集群,控制平面启动一个公开的代理服务,待导入集群创建相应的客户端组件连接代理服务,与控制平面之间建立一个反向代理。此种方式不需要待导入集群和控制平面在同一网络,也不要求待导入集群暴露集群的 apiserver 地址,但会有一定的网络性能损耗。

    通常适用于:
    1. 当前集群和待导入集群不在同一网络中
    2. 当前集群和待导入集群无法通过 VPN 或隧道等其它技术连通所在网络
    3. 对集群间网络性能损耗能容忍","CLUSTER_AGENT_TITLE":"请根据集群中提供的代理连接设置加入集群","CLUSTER_AGENT_DESC":"需要在集群中设置下相应的代理 Agent","HOW_TO_GET_KUBECONFIG":"如何获取 kubeconfig?","HOST_CLUSTER_TCAP":"主集群","HOST_CLUSTER_PL_TCAP":"主集群","MEMBER_CLUSTER_TCAP_PL":"成员集群","CLUSTER_CONDITION_INITIALIZED":"初始化完成","CLUSTER_CONDITION_AGENTAVAILABLE":"代理可用","CLUSTER_CONDITION_FEDERATED":"已加入联邦","CLUSTER_CONDITION_EXTERNALACCESSREADY":"外部访问就绪","CLUSTER_CONDITION_READY":"集群就绪","CLUSTER_CONDITION_SCHEDULABLE":"集群调度","CLUSTER_CONDITION_OPENPITRIXRUNTIMEREADY":"应用商店就绪","CLUSTER_CONDITION_KUBECONFIGCERTEXPIRESINSEVENDAYS":"kubeconfig 即将过期","NODE_COUNT":"节点数量","ENV_PRODUCTION":"生产环境","ENV_DEVELOPMENT":"开发环境","ENV_TESTING":"测试环境","ENV_DEMO":"演示环境","UPDATE_KUBECONFIG":"更新 kubeconfig","KUBE_CONFIG_IS_EXPIRED":"kubeconfig 已过期","EXPIRE_DATE":"过期时间","LAST_KUBE_CONFIG_EXPIRED":"kubeconfig 将在 {count} 天后过期","VALIDATION_FAILED":"校验失败。","NO_CLUSTER_TIP_DESC":"集群是运行 KubeSphone 的一组节点(物理或虚拟机)。","RISK_WARNING":"风险警告","REMOVE_CLUSTER_TIP_A":"集群被移除后,集群中原有的资源不会被自动清除。","REMOVE_CLUSTER_TIP_B":"集群被移除后,集群中原有的多集群配置数据不会被自动清除,卸载 KubeSphere 或删除关联资源时可能会导致用户数据丢失。请务必参照 KubeSphere 官方文档手动清理被移除集群中原有的多集群配置数据。","CLUSTER_CONFIRM_TEXT":"我了解移除集群的风险","ENTER_CLUSTER_NAME":"此操作不能撤消。请输入群集名称 {name} 以确认您了解此操作的风险。","CONFIGMAP_DESC":"配置字典(ConfigMap)常用于存储工作负载所需的配置信息,许多应用程序会从配置文件、命令行参数或环境变量中读取配置信息。","FIELDS":"字段","EDIT_YAML":"编辑 YAML","ENTER_CONFIG_VALUE_DESC":"配置项用于存储通用的配置变量,使用户可以将分布式系统中用于不同模块的环境变量统一到一个对象中进行管理。","CONFIG_FIELD_DESC":"此配置项映射条目的唯一 key 值。","CONFIGURATION":"配置","SECRET_PL":"保密字典","SECRET_DESC":"保密字典(Secret)是一种包含少量敏感信息的资源对象,例如密码、令牌、保密字典等,以键值对形式保存并且可以在容器组中使用。","SECRET_FIELD_COUNT":"字段数量","SECRET_EMPTY_DESC":"请创建一个保密字典。","SECRET":"保密字典","DATA_SETTINGS":"数据设置","IMAGE_REGISTRY_INFORMATION":"镜像服务信息","TLS_INFORMATION":"TLS 信息","USERNAME_PASSWORD":"用户名和密码","ADD_DATA_TCAP":"添加数据","ADD_DATA_DESC":"添加键值对数据。","REGISTRY_ADDRESS_TIP":"设置镜像服务地址,例如 docker.io。","IMAGE_REGISTRY_REQUIRED_DESC":"请设置镜像服务地址、用户名和密码。","CREDENTIAL_NAME_EMPTY_DESC":"请输入凭证名称。","ENTER_PRIVATE_KEY_DESC":"请输入私钥。","ENTER_DATA_DESC":"请添加数据。","PRIVATE_KEY_TCAP":"私钥","REGISTRY_ADDRESS_TCAP":"镜像服务地址","SKIP_VERIFY":"跳过证书验证","REGISTRY_SECRET_VER_ERR":"镜像服务验证失败。","REGISTRY_SECRET_VER_SUC":"镜像服务验证通过。","SECRET_NO_CHINESE_CODE_DESC":"保密字典的键必须由字母数字字符、连字符(-)、下划线(_)或句点(.)组成。","SECRET_TYPE_DESC":"选择一个保密字典类型。","IMAGE_REGISTRY_VALIDATE_TIP":"创建镜像服务保密字典前,请先验证用户名和密码。","DATA_KEY":"键","DATA_VALUE":"值","DEFAULT":"默认","USERNAME_AND_PASSWORD":"用户名和密码","DATA":"数据","EDIT_DATA_TCAP":"编辑数据","KUBECONFIG_SETTINGS":"kubeconfig 设置","CUSTOM_RESOURCE_PL":"自定义资源","PROJECT_DEVOPS_PROJECT":"项目/DevOps 项目","CUSTOM_RESOURCE":"自定义资源","CUSTOM_RESOURCE_LOW":"定制资源","CRD":"定制资源定义","CRD_PL":"定制资源定义","CRD_LOW":"定制资源定义","CRD_DESC":"定制资源定义(Custom Resource Definition,CRD)是一种 Kubernetes 实现自定义资源类型的扩展方式,您可以像操作内置资源对象一样操作定制资源定义对象。","CRD_EMPTY_DESC":"请创建一个定制资源定义。","KIND_TCAP":"类别","SCOPE_TCAP":"作用域","ALERTING_MESSAGE_PL":"告警","ALERT_MESSAGE_DESC":"当资源指标满足规则组中配置的条件时,系统将生成告警。","ALERTS_FROM_CUSTOM_POLICIES":"来源于自定义规则","ALERTS_FROM_BUILT_IN_POLICIES":"来源于内置规则","TRIGGER_TIME":"触发时间","ALERTING_MESSAGE_EMPTY_DESC":"当前集群中没有发现告警。","MONITORING_TARGET":"监控目标","DURATION":"持续时间","VIEW_METRIC_DATA":"查看指标数据","ALERTING_RULE":"告警规则","MONITORING_TARGETS_SCAP":"监控目标","TRIGGER_CONDITION_SCAP":"触发条件","METRIC_MONITORING":"指标监控","ALERT_MONITORING":"告警监控","NOTIFICATION_SUMMARY_COLON":"消息概要:","DETAILS_COLON":"详情:","NODES_VALUES":"节点:{values}","TRIGGER_CONDITION":"触发条件","MESSAGE_SUMMARY":"概要","MESSAGE_DETAILS":"详情","VIEW_METRIC_DATA_TCAP":"查看指标数据","ALERT_RULE_TEXT_PERCENT_SECOND":"{alterTypeText} {comparator} {thresholds}% 持续 {durationValue, plural, =1 {1 秒} other {# 秒}}","ALERT_RULE_TEXT_PERCENT_MINUTE":"{alterTypeText} {comparator} {thresholds}% 持续 {durationValue, plural, =1 {1 分钟} other {# 分钟}}","ALERT_RULE_TEXT_PERCENT_HOUR":"{alterTypeText} {comparator} {thresholds}% 持续 {durationValue, plural, =1 {1 小时} other {# 小时}}","ALERT_RULE_TEXT_SECOND":"{alterTypeText} {comparator} {thresholds} {unit} 持续 {durationValue, plural, =1 {1 秒} other {# 秒}}","ALERT_RULE_TEXT_MINUTE":"{alterTypeText} {comparator} {thresholds} {unit} 持续 {durationValue, plural, =1 {1 分钟} other {# 分钟}}","ALERT_RULE_TEXT_HOUR":"{alterTypeText} {comparator} {thresholds} {unit} 持续 {durationValue, plural, =1 {1 小时} other {# 小时}}","CPU_UTILIZATION_NO_PERCENT_TCAP":"CPU 用量","CPU_LOAD_1_TCAP":"CPU 平均负载(1 分钟)","CPU_LOAD_5_TCAP":"CPU 平均负载(5 分钟)","CPU_LOAD_15_TCAP":"CPU 平均负载(15 分钟)","MEMORY_UTILIZATION_NO_PERCENT_TCAP":"内存用量","MEMORY_AVAILABLE_TCAP":"可用内存","DATA_SEND_RATE_TCAP":"网络数据发送速率","DATA_RECEIVE_RATE_TCAP":"网络数据接收速率","DISK_SPACE_UTILIZATION_NO_PERCENT_TCAP":"本地磁盘用量","DISK_SPACE_AVAILABLE_TCAP":"本地磁盘可用空间","INODE_UTILIZATION_NO_PERCENT_TCAP":"Inode 用量","DISK_READ_IOPS_TCAP":"本地磁盘读取 IOPS","DISK_WRITE_IOPS_TCAP":"本地磁盘写入 IOPS","DISK_READ_THROUGHPUT_TCAP":"本地磁盘读取吞吐量","DISK_WRITE_THROUGHPUT_TCAP":"本地磁盘写入吞吐量","UNAVAILABLE_POD_RATIO_NO_PERCENT_TCAP":"容器组不可用率","POD_QUOTA_UTILIZATION_NO_PERCENT_TCAP":"容器组配额用量","MEMORY_USAGE_WO_CACHE_TCAP":"内存用量不含缓存","UNAVAILABLE_WORKLOAD_REPLICA_RATIO_NO_PERCENT_TCAP":"副本不可用率","THRESHOLD_VALUE":"阈值:{value}","NO_DATA_DESC":"未发现数据","ALERTING_POLICY_PL":"规则组","ALERTING_POLICY_DESC":"规则组包含告警规则,用于监测集群资源。","REQUESTS_FOR_TRIGGER_AN_ALARM_Q":"告警是如何产生的?","REQUESTS_FOR_TRIGGER_AN_ALARM_A":"您需要创建一个规则组并设置告警规则。当资源指标满足规则组中配置的条件时,系统将生成告警。","CUSTOM_POLICIES":"自定义规则组","BUILT_IN_POLICIES":"内置规则组","ALERTING_POLICY_EMPTY_DESC":"请创建一个规则组。","ALERT_RULE_INACTIVE":"未触发","ALERT_RULE_PENDING":"验证中","ALERT_RULE_FIRING":"已触发","ALERT_RULE_DISABLED":"已禁用","POLICY_STATUS":"规则组状态","RULE_STATUS":"规则状态","TIME_SPENT":"耗时","RECENT_DETECT_TIME":"最近检查","EDIT_ALERT_RULES":"编辑告警规则","RESET":"重置","SEVERITY":"告警级别","CREATE_ALERTING_POLICY":"创建规则组","CRITICAL_ALERT":"紧急","ERROR_ALERT":"重要","WARNING_ALERT":"警告","INFO_ALERT":"提醒","INVALID_TIME_DESC":"参数值无效,请输入 0 或正整数。","ALIAS":"别名","DURATION_MIN":"持续时间(分钟)","ALERT_DURATION":"设置系统等待一段时间并检查告警情况是否持续存在,如果告警情况持续存在才触发告警。","LONG_NAME_DESC":"名称只能包含小写字母、数字和连字符(-),必须以小写字母或数字开头和结尾,最长 253 个字符。","NAME_EXIST_DESC":"名称已存在,请输入其他名称。","ALIAS_NAME_DESC":"别名只能包含中文、字母、数字和连字符(-),不得以连字符(-)开头或结尾,最长 63 个字符。","CHECK_INTERVAL":"检查间隔","ALERTING_POLICY_CHECK_INTERVAL_DESC":"设置指标检查之间的时间间隔。默认值为 1 分钟。","ADD_ALERTING_RULE":"添加告警规则","ADD_ALERTING_RULE_DESC":"为规则组添加告警规则。","ENABLE_RULE":"启用规则","DISABLE_RULE":"禁用规则","RULE_NAME":"规则名称","CUSTOM_RULE_NAME_DESC":"规则名称可包含任意字符,最长 63 个字符。","LASTING_MINUTES":"持续 {minutes, plural, =1 {1 分钟} other {# 分钟}}","THRESHOLD_REQUIRED":"请输入指标阈值。","MESSAGE_SUMMARY_DESC":"消息概要可包含任意字符,最长 63 个字符。","MESSAGE_DETAILS_DESC":"消息详情可包含任意字符,最长 256 个字符。","RULE_TEMPLATE":"规则模板","RULE_SETTINGS":"规则设置","MONITORING_TARGETS":"监控目标","SET_ACTIVATION_CONDITION_DESC":"请设置触发条件。","THRESHOLD":"阈值","UNAVAILABLE_POD_RATIO":"容器组不可用率(%)","POD_QUOTA_UTILIZATION_SCAP":"容器组配额用量(%)","CPU_USAGE_SCAP":"CPU 用量","CPU_UTILIZATION_SCAP":"CPU 用量(%)","CPU_LOAD_1":"CPU 平均负载(1 分钟)","CPU_LOAD_5":"CPU 平均负载(5 分钟)","CPU_LOAD_15":"CPU 平均负载(15 分钟)","MEMORY_AVAILABLE":"可用内存","MEMORY_UTILIZATION_SCAP":"内存用量(%)","DISK_SPACE_AVAILABLE":"本地磁盘可用空间","DISK_SPACE_UTILIZATION":"本地磁盘用量(%)","INODE_UTILIZATION":"Inode 用量(%)","DISK_READ_IOPS":"本地磁盘读取 IOPS","DISK_WRITE_IOPS":"本地磁盘写入 IOPS","DISK_READ_THROUGHPUT":"本地磁盘读取吞吐量","DISK_WRITE_THROUGHPUT":"本地磁盘写入吞吐量","DATA_RECEIVE_RATE":"网络数据接收速率","DATA_SEND_RATE":"网络数据发送速率","MEMORY_USAGE_SCAP":"内存用量","MEMORY_USAGE_WO_CACHE_SCAP":"内存用量不含缓存","UNAVAILABLE_WORKLOAD_REPLICA_RATIO":"副本不可用率(%)","SELECT_NODE_TIP":"请选择至少一个集群节点。","CUSTOM_RULE":"自定义规则","RULE_EXPRESSION":"告警规则表达式","ENTER_RULE_EXPRESSION":"请输入告警规则表达式。","ALERT_RULE_EXPRESSION_DESC":"您可以通过 PromQL 语句来自定义告警规则。","ALERT_FUNCTIONS":"函数","ALERT_METRICS":"指标","ALERT_LABELS":"标签","ALERT_RATE_RANGES":"比率范围","ALERTING_MESSAGE":"告警","MESSAGE_SETTINGS":"消息设置","NOTIFICATION_SUMMARY":"概要","NOTIFICATION_DETAILS":"详情","EDIT_ALERTING_POLICY":"编辑规则组","DISABLE_ALERTING_POLICY":"禁用规则组","ALERTING_POLICY":"规则组","ALERTING_POLICY_LOW":"规则组","RESET_ALERTING_POLICY":"重置规则组","RESET_ALERTING_POLICY_DESC":"您确定重置规则组吗?","APPLICATION_RESOURCE_PL":"应用资源","MONITORING_APPLICATION_DESC":"应用资源提供应用资源用量的监控数据以及用量排行情况。","CUSTOM_TIME_RANGE":"自定义时间范围","ACCOUNTS":"账户","DEVOPS_PROJECT_PL":"DevOps 项目","SAMPLING_INTERVAL":"采样间隔","KUBE_SUN":"日","KUBE_MON":"一","KUBE_TUE":"二","KUBE_WED":"三","KUBE_THU":"四","KUBE_FRI":"五","KUBE_SAT":"六","KUBE_SUNDAY":"星期日","KUBE_MONDAY":"星期一","KUBE_TUESDAY":"星期二","KUBE_WEDNESDAY":"星期三","KUBE_THURSDAY":"星期四","KUBE_FRIDAY":"星期五","KUBE_SATURDAY":"星期六","KUBE_JAN":"1月","KUBE_FEB":"2月","KUBE_MAR":"3月","KUBE_APR":"4月","KUBE_MAY":"5月","KUBE_JUN":"6月","KUBE_JUL":"7月","KUBE_AUG":"8月","KUBE_SEP":"9月","KUBE_OCT":"10月","KUBE_NOV":"11月","KUBE_DEC":"12月","KUBE_JAN_LH":"一月","KUBE_FEB_LH":"二月","KUBE_MAR_LH":"三月","KUBE_APR_LH":"四月","KUBE_MAY_LH":"五月","KUBE_JUN_LH":"六月","KUBE_JUL_LH":"七月","KUBE_AUG_LH":"八月","KUBE_SEP_LH":"九月","KUBE_OCT_LH":"十月","KUBE_NOV_LH":"十一月","KUBE_DEC_LH":"十二月","APPLICATION_RESOURCE_USAGE":"应用资源用量","DEPLOYMENT":"部署","DEPLOYMENT_PL":"部署","DEPLOYMENT_LOW":"部署","STATEFULSET":"有状态副本集","STATEFULSET_PL":"有状态副本集","STATEFULSET_LOW":"有状态副本集","DAEMONSET":"守护进程集","DAEMONSET_PL":"守护进程集","DAEMONSET_LOW":"守护进程集","DEPLOYMENTS_VALUE":"部署:{value}","STATEFULSETS_VALUE":"有状态副本集数量:{value}","DAEMONSETS_VALUE":"守护进程集数量:{value}","RUNNING_PODS":"运行中的容器组数量","ROUTE":"应用路由","PROJECT_PL":"项目","PROJECT_COUNT":"项目数量","USAGE_RANKING":"用量排行","QUOTA_VALUE":"配额:{value}","OUTBOUND_TRAFFIC":"出站流量","INBOUND_TRAFFIC":"入站流量","SORT_BY_NAMESPACE_CPU_USAGE":"按 CPU 用量排行","SORT_BY_NAMESPACE_POD_COUNT":"按容器组配额用量(%)排行","SORT_BY_NAMESPACE_NET_BYTES_RECEIVED":"按入站流量排行","SORT_BY_NAMESPACE_NET_BYTES_TRANSMITTED":"按出站流量排行","MONITORING_AND_ALERTING":"监控告警","CLUSTER_STATUS":"集群状态","MONITORING_CLUSTER_DESC":"集群状态展示集群资源的概览和详情,您可以查看集群资源的监控数据和用量排行情况。","CLUSTER_NODE_STATUS":"集群节点状态","ALL_NODES":"所有节点","ONLINE_NODES":"在线节点","NODE_ONLINE_STATUS":"节点在线状态","TIMES_PER_SECOND":"次/秒","COMPONENT_STATUS":"组件状态","CONTROLLER_MANAGER":"管理控制中心","KUBERNETES_SCHEDULER":"Kubernetes 调度器","CLUSTER_RESOURCE_USAGE":"集群资源用量","POD_COUNT":"容器组数量","COUNT":"数量","PODS":"容器组","SERVICE_STATUS":"服务状态","ETCD_MONITORING":"etcd 监控","DB_SIZE":"库大小","RAFT_PROPOSAL":"Raft 提议","ETCD_STATUS":"服务 状态","ETCD_PROPOSAL":"Raft 提议","ETCD_DB_SIZE":"库 大小","ETCD_CLIENT_TRAFFIC":"客户端 流量","TITLE_UNIT":"{title}({unit})","AVERAGE":"平均值","PROPOSAL_COMMITTED":"已提交","PROPOSAL_APPLIED":"已应用","PROPOSAL_FAILED":"失败","PROPOSAL_PENDING":"等待中","SERVICE_COMPONENT_MONITORING":"服务组件监控","SCHEDULE_ATTEMPTS":"调度次数","SCHEDULING_RATE":"调度速率","REQUEST":"请求","REQUEST_PER_SECOND":"每秒请求数","SCHEDULER":"调度器","TOTAL_AVERAGE":"总均值","SUCCESS":"成功","ERROR":"错误","FAILURE":"失败","REQUEST_LATENCY_TCAP":"请求 延迟","REQUEST_RATE":"请求 速率","SCHEDULE_ATTEMPTS_TCAP":"调度 次数","SCHEDULING_RATE_TCAP":"调度 速率","API_SERVER":"API 服务器","SELECT_TIME_RANGE":"选择时间范围","LAST_TIME":"最近 {value}","LAST_TIME_M":"最近 {num} 分钟","LAST_TIME_H":"最近 {num} 小时","LAST_TIME_D":"最近 {num} 天","TIMERANGE_SELECTOR_MSG":"结束时间需晚于开始时间。","TIMERANGE_SELECTOR_ERROR_MSG":"时间范围设置错误。","PHYSICAL_RESOURCES_MONITORING":"物理资源监控","INODE_USAGE":"Inode 用量","DISK_USAGE":"磁盘用量","DISK_USAGE_DETAILS":"磁盘用量详情","AVERAGE_CPU_LOAD":"CPU 平均负载","DISK_THROUGHPUT":"磁盘吞吐","POD_STATUS":"容器组状态","COMPLETED":"已完成","WARNING":"异常","READ":"读","WRITE":"写","RUNNING":"运行中","TIME_M":"{num} 分钟","TIME_H":"{num, plural, =1 {1 小时} other{# 小时}}","TIME_D":"{num, plural, =1 {1 天} other{# 天}}","EXTERNAL_ETCD":"外部 etcd","DB_FSYNC":"库同步时间","GRPC_STREAM_MESSAGES":"gRPC 流式消息","CLIENT_TRAFFIC":"客户端流量","RECEIVED":"接收","SENT":"发送","WAL_FSYNC":"WAL 日志同步时间","ETCD_LEADER_TITLE":"是否有 Leader","ETCD_CHANGES_TITLE":"1 小时内 Leader 变更次数","NODE_IP_ADDRESS_VALUE":"节点 IP 地址:{value}","API_SERVER_MONITORING":"API Server 监控","REQUEST_LATENCY":"请求延迟","REQUEST_LATENCY_MS":"请求延迟(ms)","REST_CREATE":"CREATE","REST_DELETE":"DELETE","REST_DELETECOLLECTION":"DELETECOLLECTION","REST_GET":"GET","REST_POST":"POST","REST_PATCH":"PATCH","REST_PUT":"PUT","REST_UPDATE":"UPDATE","REST_LIST":"LIST","SCHEDULER_MONITORING":"调度器监控","SCHEDULING_LATENCY":"调度延迟","RESOURCE_USAGE_RANKING":"资源用量排行","SORT_BY_NODE_CPU_UTILISATION":"按 CPU 用量(%)排行","SORT_BY_NODE_MEMORY_UTILISATION":"按内存用量(%)排行","SORT_BY_NODE_DISK_SIZE_UTILISATION":"按磁盘用量(%)排行","SORT_BY_NODE_POD_UTILISATION":"按容器组用量排行","SORT_BY_NODE_DISK_INODE_UTILISATION":"按 Inode 用量排行","SORT_BY_NODE_LOAD1":"按 1 分钟 CPU 平均负载排行","SORT_BY_NAMESPACE_MEMORY_USAGE_WO_CACHE":"按内存用量排行","POD_USAGE":"容器组用量","EXPORT":"导出","CUSTOM_MONITORING":"自定义监控","CUSTOM_MONITORING_DASHBOARD":"自定义监控面板","CUSTOM_MONITORING_DASHBOARD_PL":"自定义监控面板","CUSTOM_MONITORING_DASHBOARD_EMPTY_DESC":"请创建一个自定义监控面板。","CUSTOM_MONITORING_DASHBOARD_DESC":"自定义监控提供应用监控模板,您可以根据需求自定义监控面板。","TEMPLATE":"模板","CREATE_CUSTOM_MONITORING_DASHBOARD":"创建自定义监控面板","MONITORING_TEMPLATE":"监控模板","CUSTOM_MONITORING_TEMPLATE_DESC":"选择默认模板、上传模板或自定义模板来生成自定义监控面板。","UPLOAD_GRAFANA_DASHBOARD":"上传 Grafana 监控面板","SUPPORT_JSON_FILE":"仅支持 JSON 格式的文件。","UPLOAD_GRAFANA_URL":"通过 URL 上传 Grafana 监控面板。","UPLOAD_FROM_LOCAL_TITLE":"选择或拖动文件","FILE_UPLOAD_ERROR":"只能上传一个文件。","UPLOAD_FILE_TIP":"请上传文件。","ENTER_GRAFANA_URL":"请输入 Grafana 监控面板 URL。","UPLOAD_FROM_LOCAL_STORAGE":"从本地上传","UPLOAD_FROM_URL":"通过 URL 上传","DASHBOARD_TITILE":"监控面板标题","APPLICABLE_SCENE":"适用场景","BASE_LINE_CHART":"基础折线图","STACK_LINE_CHART":"堆叠面积图","BASE_LINE_CHART_DESC":"折线图主要用来展示数据相随着时间推移的趋势或变化。折线图非常适合用于展示一个连续的二维数据,如某网站访问人数或商品销量价格的波动。","STACK_LINE_CHART_DESC":"堆积面积图是一种特殊的面积图,可以用来比较在一个区间内的多个变量。如果有多个数据系列,并想分析每个类别的部分到整体的关系,并展现部分量对于总量的贡献时,使用堆积面积图是非常合适的选择。","LINE_CHART_DESC":"折线图主要用来展示数据相随着时间推移的趋势或变化。","BASE_BAR_CHART":"基础柱状图","STACK_BAR_CHART":"堆叠柱状图","BAR_CHART_DESC":"柱状图是最常见的图表类型,通过使用水平或垂直方向\b柱子的高度来显示不同类别的数值。","BASE_BAR_CHART_DESC":"基础柱状图的一个轴显示正在比较的类别,而另一个轴代表对应的刻度值。","STACK_BAR_CHART_DESC":"堆叠柱状图是柱状图的扩展,不同的是,柱状图的数据值为并行排列,堆叠柱图则是一个个叠加起来的。它可以展示每一个分类的总量,以及该分类包含的每个小分类的大小及占比,因此非常适合处理部分与整体的关系。","CUSTOM_DISPLAY_MODAL_DESC":"根据需要定制 Table 中的显示格式","THRESHOLD_FILL_DESC":"可以设置阈值,数值超出后可以自动更改样式提示","ADD_MONITOR_ITEM":"添加监控项","ADD_MONITOR_ROW":"添加监控组","CHART_TYPES":"图表类型","GRAPH_TYPES":"图例类型","LINE_CHART":"折线图","BAR_CHART":"柱状图","SELECT_CHART_TYPE":"选择图表类型","SELECT_CHART_TYPE_MODAL_DESC":"选择您要添加的自定义图表类型","SINGLE_STATE_CHART":"即时文本","DISPLAY_POSITION":"图表布局位置","EMPTY_CHART_PLACEHOLDER":"图表将显示在此区域","DISPLAY_FORMAT":"显示格式","FIELD_NAME":"字段名称","COLUMN_NAME":"列名称","GRAPH_NAME":"图表名称","DECIMALS":"精确位","TABLE":"表格","TABLE_SETTINGS":"表格设置","VALUE_FOMATER":"数据取值","PER_PAGE_LINES":"每页行数","CUSTOM_DISPLAY_STYLE":"设置显示格式","DATA_TYPE":"数据类型","Y_AXIS":"Y轴","GRAPH_COLORS":"图表配色","SINGLE_GRAPH_TYPE_NAME":"基础图","SINGLE_GRAPH_TYPE":"最常见的图表类型","STACKED_GRAPH_TYPE":"堆叠图","STACKED_GRAPH_TYPE_DESC":"适用于各大类总量及分量之间的对比显示","MONITOR_TYPE_NO_SUPPORT":"当前不支持该类型","MONITOR_METRIC":"监控指标","METRIC_NAME":"图例名称","DEBUGB_DATA":"调试数据","TIME_FORMAT":"时间格式","HIGHT_RULES":"高亮规则","EDIT_TEMPLATE":"编辑模板","SAVE_TEMPLATE":"保存模板","THRESHOLD_FILL":"阈值填充","UNIT":"单位","COOL_COLORS":"冷色调","WARM_COLORS":"暖色调","DEFAULT_COLORS":"默认颜色","LAST":"最近","SECOND_TIME":"{count, plural, =1 {1 秒} other{# 秒}}","MINUTE_TIME":"{count, plural, =1 {1 分钟} other{# 分钟}}","HOUR_TIME":"{count, plural, =1 {1 小时} other{# 小时}}","DAY_TIME":"{count, plural, =1 {1 天} other{# 天}}","WEEK_TIME":"{count, plural, =1 {1 周} other{# 周}}","NO_REFRESHING":"不刷新","INTERVAL":"间隔","CUSTOM_MONITORING_DASHBOARD_LOW":"自定义监控面板","EGRESS_RULES":"出站规则","DESTINATION":"目的地","LABEL":"标签","INGRESS_RULES":"入站规则","NETWORK_POLICY":"网络策略","NETWORK_POLICY_PL":"网络策略","NETWORK_POLICY_DESC":"通过配置网络策略,允许在同个集群内实现网络的隔离,即可以在某些实例(容器组)之间架起防火墙。","NETWORK_POLICY_Q":"如何更好地使用网络策略?","NETWORK_POLICY_A":"我们根据实际使用场景整理了几种较为常见的应用场景,您可以查阅文档了解更多。","NETWORK_POLICY_Q1":"CNI 插件实现网络策略需满足哪些必要条件?","NETWORK_POLICY_A1":"Kubernetes 所使用 CNI 必须支持 Kubernetes 原生网络策略,例如 Calico、Cilium、Kube-router、Romana 和 Weave Net。","NETWORK_POLICY_EMPTY_DESC":"请创建一个网络策略。","CREATE_NETWORK_POLICY_TCAP":"创建网络策略","CREATE_BTN":"创建","CREATE_NETWORK_POLICY_DESC":"通过配置网络策略控制同一集群内 Pod 之间的流量以及来自外部的流量,从而实现隔离应用并增强应用的安全性。","NETWORK_POLICY_LOW":"网络策略","NETWORK":"网络","START_IP_ADDRESS":"起始 IP 地址","END_IP_ADDRESS":"结束 IP 地址","MASK":"掩码","WORKSPACES":"企业空间","MANAGER":"管理员","IPPOOL_WORKSPACE_EMPTY_TIP":"未发现企业空间使用此 IP 池","NAMESPACE_PL":"项目","ADD_IPPOOLL_NAMESPACE":"新增项目","ADD_IPPOOLL_NAMESPACE_DESC":"将 IP Pool 分配到新的项目","REMOVEALL_IPPOOLL_NAMESPACE":"移除全部","REMOVEALL_IPPOOLL_NAMESPACE_PROJECT":"移除全部项目","REMOVEALL_IPPOOLL_NAMESPACE_PROJECT_DESC":"项目移除后,该项目将不再受 IP Pool 资源分配限制","POD_IP_POOL_PL":"容器组 IP 池","POD_IP_POOL_DESC":"容器组 IP 池用于规划集群内容器组的网络地址空间,您可以按需创建容器组 IP 池。","IPPOOL_USAGE_Q":"如何利用 IP 池规划容器组网络?","IPPOOL_USAGE_A":"IP 池用于规划 Pod 网络地址空间,每个 IP 池之间地址空间不能重叠。创建工作负载时,可选择特定的 IP 池,这样创建出的容器组将从该 IP 池中分配 IP。","IPPOOL_USAGE_A_1":"IP 池用于规划 Pod 网络地址空间,每个 IP 池之间地址空间不能重叠。创建项目时,可在注解中添加特定的 IP 池,这样在该项目创建的容器组将从该 IP 池中分配 IP。","POD_IP_POOL_EMPTY_DESC":"请创建一个容器组 IP 池。","TOTAL_VALUE":"总计:{value}","ALL":"全部","NOT_ASSIGNED":"未分配","CREATE_POD_IP_POOL":"创建容器组 IP 池","CIDR_OVERLAP":"{cidr0} 和 {cidr1} 网段重叠","NETWORK_SEGMENT":"网段","USED_IP_ADDRESSES":"已用 IP 地址","QUANTITY":"数量","IP_POOL_CREATE_DESC":"即将创建的容器组 IP 池","IP_ADDRESS_EMPTY_DESC":"请输入 IP 地址。","MASK_TIP":"请输入掩码。","ENTER_NETWORK_SEGMENT_TIP":"请输入网段。","IP_POOL_NUM_TIP":"请输入需要创建的容器组 IP 池数量。","IP_POOL_CREATE_COUNT_DESC":"最多可同时创建 10 个容器组 IP 池。","INVALID_IP_DESC":"IP 地址格式错误。","IPPOOL_ASSIGN_WORKSPACE_DESC":"为 IP 池分配一个企业空间。","IPPOOL_ASSIGN_PROJECT_DESC":"为 IP 池分配一个项目。","IPPOOL_ASSIGN_WORKSPACE_ALLOCATED_WARNING":"IP 池已被使用,无法分配给另一个具体的企业空间。","IPPOOL_ASSIGN_WORKSPACE_CHANGE_WARNING":"IP 池已被使用且已指定具体的企业空间,无法更改企业空间。","ASSIGN_WORKSPACE":"分配企业空间","SELECT_WORKSPACE_DESC":"选择一个企业空间。","POD_IP_POOL_LOW":"容器组 IP 池","ADD_EDGE_IPPOOL":"添加容器组 IP 池","ADD_EDGE_IPPOOL_DES":"为资源添加容器组 IP 池。","ADD_IPPOOL_EMPTY_DES_ADMIN":"如果没有容器组 IP 池满足要求,您可以","ADD_IPPOOL_EMPTY_DES":"如果没有容器组 IP 池满足要求,请联系管理员创建容器组 IP 池","SELECTED_IPPOOLS":"已选择 {number} 个 IP 池","CLUSTER_IPPOOL_EMPTY_DES":"当前集群下没有发现可用的容器组 IP 池。","EDGE_PROJECT":"边缘项目","POD_IP_POOL_PL_REQUIRED":"请选择容器组 IP 池","POD_IP_POOL_PL_DESC":"将选择的容器组 IP 池添加到节点组。","ASSIGN_PROJECT":"分配项目","IPPOOL_AUTO_ASSIGN":"自动分配","ATTRIBUTES":"属性","ARCHITECTURE":"系统架构","OS_VERSION":"操作系统版本","OS_TYPE":"操作系统类型","LINUX":"Linux","KERNEL_VERSION":"内核版本","CONTAINER_RUNTIME":"容器运行时","KUBELET_VERSION":"kubelet 版本","KUBE_PROXY_VERSION":"kube-proxy 版本","IP_ADDRESS":"IP 地址","SCHEDULABLE":"可调度","YES":"是","EDIT_LABELS":"编辑标签","LABEL_PL":"标签","TAINTS":"污点","EDIT_TAINTS":"编辑污点","TAINTS_DESC":"为节点添加污点以避免或尽可能避免容器组调度到节点。为节点设置污点后,您可以为容器组设置容忍度以允许容器组调度到有特定污点的节点。","COMMON_TAINTS":"公共污点","NOSCHEDULE":"阻止调度","PREFERNOSCHEDULE":"尽可能阻止调度","NOEXECUTE":"阻止调度并驱逐现有容器组","TAINT_SELECT_TIPS":"加入公共污点","TAINTS_TIPS":"阻止调度
    阻止容器组调度到节点。

    尽可能阻止调度
    尽可能阻止容器组调度到节点。

    阻止调度并驱逐现有容器组
    阻止容器组调度到节点并驱逐节点上现有的容器组。","TAINT_DELETE_TIP":"删除污点","RESOURCE_USAGE":"资源用量","MAXIMUM_PODS":"容器组最大数量","MAXIMUM_PODS_SCAP":"容器组最大数量","DISK_USAGE_SCAP":"磁盘用量","MEMORY_REQUEST_SCAP":"内存预留","MEMORY_LIMIT_SCAP":"内存上限","CPU_REQUEST_SCAP":"CPU 预留","CPU_LIMIT_SCAP":"CPU 上限","ALLOCATED_RESOURCES":"已分配资源","RUNNING_STATUS":"运行状态","HEALTH_STATUS":"健康状态","NODE_NETWORKUNAVAILABLE":"网络可用性","NODE_NETWORKUNAVAILABLE_DESC":"节点的网络状态是否正常。","NODE_MEMORYPRESSURE":"内存压力","NODE_MEMORYPRESSURE_DESC":"节点的剩余内存是否小于阈值。","NODE_DISKPRESSURE":"磁盘压力","NODE_DISKPRESSURE_DESC":"节点的剩余磁盘空间或 Inode 数量是否小于阈值。","NODE_PIDPRESSURE":"进程压力","NODE_PIDPRESSURE_DESC":"允许在节点上创建的进程数量是否小于阈值。","NODE_READY":"就绪","NODE_READY_DESC":"节点是否可以接收容器组。","LAST_HEARTBEAT_VALUE":"最后心跳:{value}","NO_TAINTS_TIPS":"未发现污点。","POLICY":"策略","READY_VALUE":"就绪:{readyCount}/{total}","STATUS_VALUE":"状态:{value}","USAGE":"用量","OUT":"出","IN":"入","CLUSTER_NODE_PL":"集群节点","CLUSTER_NODE":"集群节点","CLUSTER_NODE_DESC":"集群节点是 KubeSphere 集群中的基础服务器,您可以在此页面对集群节点进行管理。","NODE_TYPES_Q":"集群节点有哪些类型?","NODE_TYPES_A":"集群节点分为控制平面节点和工作节点。","WHAT_IS_NODE_TAINTS_Q":"什么是节点污点?","WHAT_IS_NODE_TAINTS_A":"节点污点(Taint)可以阻止某些容器组部署到该节点,与容忍度(Toleration)一起使用,可确保容器组不会被调度到不合适的节点上。","LEARN_MORE":"了解更多","NODE_SI":"节点","NODE_PL":"节点","MASTER_NODE_SI":"控制平面节点","MASTER_NODE_PL":"控制平面节点","WORKER_NODE_SI":"工作节点","WORKER_NODE_PL":"工作节点","KUBE_OPERATE":"排序","KUBE_ASCENDING_ORDER":"升序","KUBE_DESCENDING_ORDER":"降序","KUBE_FILTER":"过滤","SEARCH":"搜索","ADD_NODE":"添加节点","NODE_STATUS_UNSCHEDULABLE":"无法调度","NODE_STATUS_RUNNING":"运行中","NODE_STATUS_WARNING":"告警","NODE_STATUS_PENDING":"创建中","NODE_STATUS_FAILED":"创建失败","CLUSTER_NODE_EMPTY_DESC":"请为集群添加一个节点。","NODE_NAME_EMPTY_DESC":"请设置节点的名称。","CPU_USAGE":"CPU 用量","MEMORY_USAGE":"内存用量","CONTROL_PLANE":"控制平面节点","WORKER":"工作节点","ALLOCATED_CPU":"已分配 CPU","ALLOCATED_MEMORY":"已分配内存","CPU_LIMIT_SI":"资源上限:{core} 核({percent})","CPU_LIMIT_PL":"资源上限:{core} 核({percent})","CPU_REQUEST_SI":"{core} 核({percent})","CPU_REQUEST_PL":"{core} 核({percent})","CORE_PL":"核","CPU_CORE_PERCENT_SI":"{core} 核({percent})","CPU_CORE_PERCENT_PL":"{core} 核({percent})","MEMORY_GIB_PERCENT":"{gib} GiB({percent})","MEMORY_LIMIT_VALUE":"资源上限:{gib} GiB({percent})","MEMORY_REQUEST_VALUE":"{gib} GiB({percent})","RESOURCE_REQUEST":"资源预留","CORDON":"停止调度","UNCORDON":"启用调度","OPEN_TERMINAL":"打开终端","CUSTOM_COLUMNS":"定制内容","NO_MATCHING_RESULT_FOUND":"未发现匹配的结果","STATUS":"状态","TOTAL_ITEMS":"总数:{num}","YOU_CAN_TRY_TO":"您可以尝试","REFRESH_DATA":"刷新数据","CLEAR_SEARCH_CONDITIONS":"清空搜索条件。","DUPLICATE_KEYS":"该键已经存在,请输入其他键。","EMPTY_KEY":"请输入一个键。","LATEST_UPDATE_VALUE":"状态更新时间:{value}","EDGE_NODE_PL":"边缘节点","EDGE_NODE_DESC":"边缘节点是部署在 KubeSphere 集群外部的服务器,您可以将边缘节点添加到 KubeSphere 集群以对其进行管理。","EDGE_NODE_EMPTY_DESC":"请为集群添加一个边缘节点。","AGENT":"代理","EDGE":"边缘节点","ADD":"添加","ADD_EDGE_NODE":"添加边缘节点","EDGENODE_CONFIG_COMMAND":"边缘节点配置命令","ADD_EDGE_COMMAND":"在边缘节点中运行以上命令以对其进行配置。","IN_USE_Node_IP":"IP 地址 {ip} 已被使用,请输入其他 IP 地址。","IN_USE_Node_NAME":"节点名称 {name} 已存在,请输入其他名称。","EDGENODE_NAME_EMPTY_DESC":"请设置边缘节点的名称。","EDGENODE_CONFIG_COMMAND_TIP":"运行命令前请确保已在边缘节点安装容器运行时,例如 Docker 或 containerd。","ADD_DEFAULT_TAINT":"添加默认污点 {params}","EDGE_NODE":"边缘节点","INTERNAL_IP_ADDRESS":"内部 IP 地址","EDGENODE_INTERNAL_IP_DESC":"设置边缘节点在 KubeSphere 集群内部的 IP 地址。","EDGENODE_INTERNAL_IP_EMPTY_DESC":"请设置边缘节点在 KubeSphere 集群内部的 IP 地址。","COPY_SUCCESSFUL":"复制成功。","LOGS":"日志","VIEW_LOG":"查看日志","NODE_GROUP_TREE_LOW":"节点组","MOVE_NODE_GROUP_TREE":"移动节点组","FROM_NODE_GROUP":"所在节点组","EDGE_LIST_NOT_HOST_TITLE":"当前集群不可用","EDGE_LIST_NOT_HOST_TITLE_DESC":"边缘节点暂时只能在主集群使用","HOST_CLUSTER":"主集群","MEMBER_CLUSTER":"成员集群","PROVIDER":"提供商","KUBERNETES_VERSION":"Kubernetes 版本","KUBESPHERE_VERSION":"KubeSphere 版本","VISIBILITY_PARTIAL":"对部分企业空间可见","VISIBILITY_PUBLIC":"对所有企业空间可见","CLUSTER_BASE_INFO_DESC":"基本信息是当前集群的信息概览,您可以查看和编辑集群的基本信息。","MEMORY":"内存","TOTAL":"总计","USED":"已使用","TOOLS":"工具","KUBECTL_DESC":"命令行工具,用于控制当前集群。","KUBECONFIG_DESC":"配置文件,用于配置当前集群的访问信息。","KUBERNETES_STATUS":"Kubernetes 状态","API_REQUESTS_PER_SECOND":"每秒 API 请求数","VALUE_REQUESTS_SECOND":"{value, plural, =1 {1 次} other {# 次}}/s","API_REQUEST_LATENCY":"API 请求延迟","SCHEDULING_OPERATIONS":"调度次数","SCHEDULING_OPERATION":"调度次数","SCHEDULING_FAILURES":"调度失败次数","SCHEDULING_FAILURE":"调度失败次数","VIEW_MORE":"查看更多","NODE_CPU_UTILISATION":"CPU 用量","NODE_LOAD1":"CPU 平均负载(1 分钟)","NODE_MEMORY_UTILISATION":"内存用量","NODE_DISK_SIZE_UTILISATION":"磁盘用量","NODE_DISK_INODE_UTILISATION":"Inode 用量","NODE_POD_UTILISATION":"容器组利用率","WAIT_FOR_CLUSTER":"等待集群加入...","WAIT_FOR_CLUSTER_DESC":"集群当前不可用。请执行以下步骤添加集群。","CLUSTER_AGENT_TIP_1":"1. 通过 SSH 登录集群,并执行 vi agent.yaml 命令创建配置文件。","CLUSTER_AGENT_TIP_2":"2. 将以下信息复制到 agent.yaml 文件中。","CLUSTER_AGENT_TIP_3":"3. 执行 kubectl create -f agent.yaml 命令添加集群。","CLUSTER_AGENT_TIP_3_DESC":"此操作可能需要一定时间,请等待集群状态更新。","CREATING_CLUSTER":"集群创建中...","CREATING_CLUSTER_DESC":"集群正在创建中,当前状态不可用。","CLUSTER_INIT_FAILED":"集群初始化失败。","CLUSTER_CREATION_PROGRESS":"集群创建进度","FETCHING_LOGS":"正在加载日志...","CURRENT_STEP":"当前步骤:{step}","CLUSTER_CREATION_PROGRESS_TIP":"取决于集群规模和基础设施环境,集群创建可能需要 30 到 60 分钟。","GATEWAY":"网关","GATEWAY_NOT_ENABLED":"网关未启用","ENABLE_GATEWAY_TIP":"要使用网关,请在集群或项目中配置网关","QUOTA_PL":"配额","PROJECT_DESC":"项目用于对资源进行分组管理和控制不同用户的资源管理权限。","SYSTEM_PROJECTS":"系统项目","USER_PROJECTS":"用户项目","EMPTY_WRAPPER":"未发现{resource}","TERMINATING":"删除中","ACTIVE":"活跃","PROJECT_ADMINISTRATOR":"项目管理员","PROJECT_ADMINISTRATOR_DESC":"选择企业空间中的用户作为项目管理员。","PROJECT_ASSIGN_DESC":"项目被分配到企业空间后不允许变更项目所属的企业空间。","CREATE_PROJECT_DESC":"创建项目以对资源进行分组并控制不同用户的权限。","PROJECT_NAME_DESC":"名称只能包含小写字母、数字和连字符(-),必须以小写字母开头并以小写字母或数字结尾,最长 63 个字符。","PROJECT_NAME_INVALID_DESC":"名称无效。名称只能包含小写字母、数字和连字符(-),必须以小写字母开头并以小写字母或数字结尾,最长 63 个字符。","CANCEL":"取消","CREATE_NAME":"创建{name}","DESCRIPTION":"描述","NAME_VALIDATION_FAILED":"名称不能以 kube- 开头,该字符串为 Kubernetes 系统保留保留字符串。","PROJECT_NAME_EXIST_DESC":"名称已存在,请输入其他名称。项目名称必须在整个平台上唯一。","NAME_EMPTY_DESC":"请设置一个名称。","OK":"确定","NAME_DESC":"名称只能包含小写字母、数字和连字符(-),必须以小写字母或数字开头和结尾,最长 63 个字符。","DESCRIPTION_DESC":"描述可包含任意字符,最长 256 个字符。","ALIAS_DESC":"别名只能包含中文、字母、数字和连字符(-),不得以连字符(-)开头或结尾,最长 63 个字符。","EDIT_INFORMATION":"编辑信息","DELETE_TITLE_SI":"删除{type}","DELETE_TITLE_PL":"批量删除{type}","DELETE":"删除","PROJECT_LOW":"项目","DELETED_SUCCESSFULLY":"删除成功。","STOP_SUCCESS_DESC":"停止成功。","DELETE_RESOURCE_TYPE_DESC_SI":"请输入{type}名称 {resource} 以确认您了解此操作的风险。","DELETE_RESOURCE_TYPE_DESC_PL":"请输入{type}名称 {resource} 以确认您了解此操作的风险。","DELETE_RESOURCE_TYPE_DESC_GW":"请输入{type}名称 {resource} 以确认您了解此操作的风险。","DISABLED_RESOURCE_TYPE_DESC":"请输入 {resource} 以确认您了解此操作的风险。","VOLUME_EXPAND_TIP":"持久卷声明已挂载到工作负载。扩展持久卷声明容量将导致工作负载重启,业务将出现短暂中断。","MOUNTED_PODS":"已挂载容器组","SNAPSHOT_PL":"快照","STORAGE":"存储","PERSISTENT_VOLUME_CLAIM_DESC":"持久卷声明定义了存储需求,系统根据持久卷声明创建持久卷。","PERSISTENT_VOLUME_CLAIM":"持久卷声明","PERSISTENT_VOLUME_CLAIM_PL":"持久卷声明","WHAT_IS_STORAGE_CLASS_Q":"什么是存储类?","WHAT_IS_STORAGE_CLASS_A":"存储类(Storage Class)由集群管理员配置,不同的存储类为集群用户提供不同类型的卷。","WHAT_IS_LOCAL_VOLUME_Q":"什么是本地卷?","WHAT_IS_LOCAL_VOLUME_A":"本地卷是创建在集群本地文件系统中的卷。","VOLUME_STATUS_BOUND":"已绑定","VOLUME_STATUS_LOST":"丢失","VOLUME_STATUS_PENDING":"等待中","VOLUME_STATUS_TERMINATING":"删除中","VOLUME_STATUS_UPDATING":"更新中","VOLUME_CONDITION_FILESYSTEMRESIZEPENDING":"磁盘扩展中","PERSISTENT_VOLUME_CLAIM_EMPTY_DESC":"请创建一个持久卷声明。","PERSISTENT_VOLUME_EMPTY_DESC":"请创建一个持久卷。","MOUNT_STATUS":"挂载状态","MOUNTED":"已挂载","NOT_MOUNTED":"未挂载","ACCESS_MODE_TCAP":"访问模式","RWO_DESC":"RWO:单节点读写","ROX_DESC":"ROX:多节点只读","RWX_DESC":"RWX:多节点读写","ACCESS_MODE_RWO":"RWO:单节点读写","ACCESS_MODE_ROX":"ROX:多节点只读","ACCESS_MODE_RWX":"RWX:多节点读写","CREATE":"创建","CREATE_PERSISTENT_VOLUME_CLAIM":"创建持久卷声明","CREATION_METHOD":"创建方式","CREATE_VOLUME_BY_STORAGE_CLASS":"通过存储类创建","CREATE_VOLUME_BY_SNAPSHOT":"通过卷快照创建","SELECT_SNAPSHOT_TO_CREATE_VOLUME":"选择卷快照来创建卷。","SELECT_STORAGE_CLASS_CREATE_VOLUME":"选择已有的存储类来创建卷。","VOLUME_CAPACITY":"卷容量","PARAM_REQUIRED":"此参数不能为空。","VOLUME_SIZE_TIP":"卷容量必须大于 0。","VOLUME_STORAGE_CLASS_DESC":"选择一个存储类来创建特定种类的卷。","PERSISTENT_VOLUME_CLAIM_LOW":"持久卷声明","VOLUME_HANDLE":"卷句柄","VOLUME_MODE":"卷模式","VOLUME_MODE_FILESYSTEM":"文件系统","VOLUME_MODE_BLOCK":"块设备","STORAGE_CLASS_VALUE":"存储类:{value}","PERSISTENT_VOLUME":"持久卷","PERSISTENT_VOLUME_PL":"持久卷","PERSISTENT_VOLUME_LOW":"持久卷","PV_STATUS_AVAILABLE":"可用","PV_STATUS_BOUND":"已绑定","PV_STATUS_RELEASED":"已释放","PV_STATUS_FAILED":"失败","RECYCLING_STRATEGY":"回收策略","VOLUME_EMPTY_DESC":"请将持久卷声明绑到工作负载。","TRUE":"是","FALSE":"否","SET_DEFAULT_STORAGE_CLASS_TITLE":"设为默认存储类","SET_AS_DEFAULT_STORAGE_CLASS":"设为默认存储类","STORAGE_CLASS_SET_DEFAULT_DESC":"设置为默认存储类后,如果没有特殊指定,系统将使用默认存储类创建卷。一个 KubeSphere 集群中仅允许设置一个默认存储类。","SET_AUTHORIZATION_RULES":"设置授权规则","AUTHORIZATION_RULES":"授权规则","AUTHORIZATION_RULES_DESC":"设置授权规则使用户只能在特定项目和企业空间使用存储类。","AUTHORIZATION_NOT_SUPPORT":"当前集群不支持此功能。请升级 KubeSphere 到 v3.3.0 或更高版本,或者手动安装 storageclass-accessor。","OPERATOR_IN":"属于","OPERATOR_NOT_IN":"不属于","SET_VOLUME_OPERATIONS":"设置卷操作","VOLUME_CLONING":"卷克隆","VOLUME_CLONING_DESC":"允许用户克隆卷。","VOLUME_SNAPSHOT_CREATION":"卷快照创建","VOLUME_SNAPSHOT_CREATION_DESC":"允许用户创建卷快照。","VOLUME_EXPANSION_DESC":"允许用户扩展卷容量。卷容量只能增加,不能减少。","SET_VOLUME_OPERATIONS_TIP":"以下设置仅控制用户是否被允许在 Web 控制台执行操作。基于存储类型创建的持久卷是否实际支持这些操作取决于后端存储系统。","SET_AUTO_EXPANSION":"设置自动扩展","AUTO_EXPANSION":"自动扩展","AUTO_EXPANSION_DESC":"设置系统在卷剩余空间低于阈值时自动扩展卷容量。","AUTO_EXPANSION_SETTINGS":"自动扩展设置","MAXIMUM_SIZE":"最大容量","INCREMENT":"增量","INCREMENT_DESC":"根据存储类的 CSI 插件设置卷容量增量。","RESTART_WORKLOAD_AUTOMATICALLY":"自动重启工作负载","RESTART_WORKLOAD_AUTOMATICALLY_DESC":"该系统自动检查卷状态,以确定是否需要重新启动工作负载。","RESTART_WORKLOAD_AUTOMATICALLY_TIP":"如果到达超时时间时卷容量仍未扩展成功,系统将在工作负载上添加“restart.kubesphere.io/skip”注解使工作负载不再被重启。如需再次为工作负载启用自动重启功能,您需要在工作负载上手动删除该注解。","MAXIMUM_SIZE_SCAP":"最大容量","VALUE_TIMEOUT":"{value}s(超时时间)","PVC_COUNT":"持久卷声明数量","STORAGE_CLASS_PL":"存储类","STORAGE_CLASS_DESC":"存储类(StorageClass)支持动态卷供应,使管理员能够按需创建新的卷。","STORAGE_CLASS_EMPTY_DESC":"请创建一个存储类。","DEFAULT_STORAGE_CLASS":"默认存储类","ALLOW_VOLUME_SNAPSHOT":"允许卷快照","ALLOW_VOLUME_CLONE":"允许卷克隆","ALLOW_VOLUME_EXPANSION":"允许卷扩展","CHOOSE_STORAGE_SYSTEM_TIP":"选择存储系统","PROVISIONER_DEPENDENCE_DESC":"您需要先在存储系统中部署相关插件才能提供服务。","QINGCLOUD_CSI_DESC":"使用 QingCloud CSI 作为底层存储插件。","CUSTOM":"自定义","VOLUME_EXPANSION":"卷扩展","RECLAIM_POLICY":"回收机制","ACCESS_MODE":"访问模式","ACCESS_MODES_DESC":"选择存储类支持的一种或多种访问模式。","STORAGE_SYSTEM":"存储系统","VOLUME_BINDING_MODE":"卷绑定模式","IMMEDIATE_BINDING":"立即绑定","BINDING_WAIT":"延迟绑定","MAXSIZE":"容量上限","MINSIZE":"容量下限","STEPSIZE":"步长","FSTYPE":"文件系统类型","QINGCLOUD_CSI_TYPE_DESC":"在青云云平台中,0 代表性能型磁盘;2 代表容量型磁盘;3 代表超高性能型磁盘;5 代表企业级分布式 SAN(NeonSAN)型磁盘;100 代表基础型磁盘;200 代表 SSD 企业型磁盘。","CREATE_VOLUME_MAX_SIZE":"卷的容量上限。","CREATE_VOLUME_STEP_SIZE":"卷的增量值。","CREATE_VOLUME_MIN_SIZE":"卷的容量下限。","VOLUME_FS_TYPE":"支持 ext3、ext4 和 xfs。默认类型为 ext4。","QINGCLOUD_VOLUME_TAGS_DESC":"为卷添加标签。使用半角逗号(,)分隔多个标签。","GID_RANGE_TIP":"取值不能小于 2000 或大于 2147483647。","GLUSTERFS_RESTURL_DESC":"供应卷的 Heketi REST URL。","GLUSTERFS_ID_DESC":"Gluster 集群 ID。","GLUSTERFS_RESTAUTHENABLED_DESC":"Gluster 启用对 REST 服务器的认证。","GLUSTERFS_RESTUSER_DESC":"Gluster REST 服务或 Heketi 服务的用户名。","GLUSTERFS_SECRET_NAMESPACE_DESC":"Heketi 用户密钥的所属项目。","GLUSTERFS_SECRET_NAME_DESC":"Heketi 用户密钥的名称。","GLUSTERFS_GID_MIN_DESC":"卷的 GID 最小值。","GLUSTERFS_GID_MAX_DESC":"卷的 GID 最大值。","GLUSTERFS_VOLUME_TYPE_DESC":"卷的类型。该值可为 none,replicate:<副本数>,或 disperse:<数据>:<冗余数>。如果未设置该值,则默认卷类型为 replicate:3。","RESTURL":"REST URL","CLUSTER_ID":"集群 ID","REST_AUTH_ENABLED":"启用 REST 认证","REST_USER":"REST 用户","VOLUME_TYPE":"卷类型","SECRET_NAME":"密钥名称","REST_AUTH_TRUE":"是","SECRET_NAMESPACE":"密钥所属项目","GID_MIN":"GID 最小值","GID_MAX":"GID 最大值","CEPHRBD_MONITORS_DESC":"Ceph 集群 Monitors 的 IP 地址。","CEPHRBD_ADMIN_ID_DESC":"Ceph 集群能够创建卷的用户 ID。","CEPHRBD_ADMIN_SECRET_NAME_DESC":"adminid 的密钥名称。","CEPHRBD_ADMIN_SECRET_NAMESPACE_DESC":"adminSecrect 所在的项目。","CEPHRBD_POOL_DESC":"Ceph RBD 的 Pool 名称。","CEPHRBD_USERID_DESC":"Ceph 集群能够挂载卷的用户 ID。","CEPHRBD_USER_SECRET_NAME_DESC":"userid 的密钥名称。","CEPHRBD_USER_SECRET_NAMESPACE_DESC":"userSecret 所在的项目。","CEPHRBD_FS_TYPE_DESC":"卷的文件系统类型。","CEPHRBD_IMAGE_FORMAT_DESC":"Ceph 卷的选项。该值可为 1 或 2 ,选择 2 后需要填写 imageFeatures。","CEPHRBD_IMAGE_FEATURES_DESC":"Ceph 集群的额外功能。仅当设置 imageFormat 为“2”时,才需要填写该值。","CEPH_MONITOR_IP":"IP 地址:端口号","STORAGE_CLASS_SETTINGS":"存储类设置","PARAMETERS":"参数","STORAGE_CLASS":"存储类","STORAGE_CLASS_LOW":"存储类","STORAGE_CLASS_DELETE_DESC":"删除卷快照类可能会影响卷快照的正常使用。您确定删除卷快照类吗?","STORAGE_CLASS_DELETE_DESC_PL":"删除卷快照类可能会影响卷快照的正常使用。请输入{type}名称 {resource} 以确认您了解此操作的风险。","VOLUME_SNAPSHOT_CLASS_PL":"卷快照类","VOLUME_SNAPSHOT_CLASS":"卷快照类","VOLUME_SNAPSHOT_CLASS_DESC":"卷快照类可用于定义卷快照的存储类型。","VOLUME_SNAPSHOT_CLASS_EMPTY_DESC":"请创建一个卷快照类。","SNAPSHOT_CLASS_SETTINGS":"卷快照类设置","SNAPSHOT_CLASS_PROVISIONER_DESC":"输入 CSI 插件的名称。","SNAPSHOT_CLASS_PROVISIONER_EMPTY_DESC":"请输入 CSI 插件的名称。","VOLUME_SNAPSHOT_CLASS_LOW":"卷快照类","DELETE_VOLUME_SNAPSHOT_CLASS":"删除卷快照类","SNAPSHOT_HANDLE":"快照句柄","VOLUME_SNAPSHOT_CONTENT":"卷快照内容","VOLUME_SNAPSHOT_CONTENT_PL":"卷快照内容","VOLUME_SNAPSHOT_CONTENT_LOW":"卷快照内容","VOLUME_SNAPSHOT_CONTENT_EMPTY_DESC":"请创建一个卷快照。","READY":"就绪","UNREADY":"未就绪","UNSCHEDULABLE":"不可调度","DELETION_POLICY":"删除策略","CREATE_VOLUME":"创建卷","SNAPSHOT_CLASS_NOT_EXIST_TITLE":"未发现卷快照类","SNAPSHOT_CLASS_NOT_EXIST":"卷快照的卷快照类不存在。","STORAGE_CLASS_SCAP":"存储类","DATA_SOURCE":"数据源","VOLUME_SNAPSHOT":"卷快照","VOLUME_SNAPSHOT_PL":"卷快照","VOLUME_SNAPSHOT_DESC":"卷快照是卷在特定时间点的副本,可使用快照中的数据预配新卷,或者将卷恢复至快照捕捉到的先前状态。","WHAT_IS_VOLUME_SNAPSHOT_CLASS_Q":"什么是卷快照类?","WHAT_IS_VOLUME_SNAPSHOT_CLASS_A":"卷快照类定义了用于创建卷快照的存储种类。","WHAT_IS_VOLUME_SNAPSHOT_CONTENT_Q":"什么是卷快照内容?","WHAT_IS_VOLUME_SNAPSHOT_CONTENT_A":"卷快照内容是一种代表卷快照具体内容的资源。","SELECT_A_VOLUME_DESC":"选择一个持续卷声明来创建快照。","SELECT_VOLUME_SNAPSHOT_CLASS_DESC":"选择卷快照类以创建特定类型的快照。","VOLUME_SNAPSHOT_EMPTY_DESC":"请创建一个卷快照。","VOLUME_SNAPSHOT_STATUS_CREATING":"创建中","VOLUME_SNAPSHOT_STATUS_FAILED":"创建失败","VOLUME_SNAPSHOT_STATUS_READY":"创建成功","VOLUME_SNAPSHOT_STATUS_DELETING":"删除中","CREATE_STATUS_SUCCESS":"创建成功","CREATE_STATUS_UPDATING":"创建中","CREATE_STATUS_FAILED":"创建失败","CREATE_STATUS_DELETING":"删除中","VOLUME_SNAPSHOT_LOW":"卷快照","STORAGECLASS_NOT_ALLOW_CREATE_SNAPSHOT":"持久卷声明的存储类不支持创建快照,请选择其他持久卷声明。","SYSTEM_COMPONENT_PL":"系统组件","SERVICE_COMPONENTS_DESC":"系统组件是 KubeSphere 系统中提供各种功能的软件组件,您可以在此页面查看系统组件的运行状态。","STOPPED":"已停止","RUNNING_TIME":"运行时间","KS_CONSOLE_DESC":"提供 KubeSphere 的控制台服务。","KS_APISERVER_DESC":"提供用于集群管理的 API 接口。此组件同时也用于集群内部模块通信和集群安全控制。","OPENLDAP_DESC":"集中存储和管理用户的账户信息。","REDIS_DESC":"开源内存数据结构化存储组件,用作数据库、缓存和消息中介。","TOWER_DESC":"用于集群间通过代理方式创建网络连接。","KS_CONTROLLER_MANAGER_DESC":"实现业务逻辑。例如,创建企业空间时创建对应的权限,创建服务策略时生成对应的 Istio 配置。","COREDNS_DESC":"为 Kubernetes 集群提供服务发现的功能","METRICS_SERVER_DESC":"Kubernetes 的监控组件,用于从每个节点的 kubelet 采集指标信息。","KUBE_SCHEDULER_DESC":"Kubernetes 的调度器,用于将容器组调度到合适的节点。","KUBE_SCHEDULER_SVC_DESC":"Kubernetes 调度器,用于将容器组调度到合适的节点。","KUBE_CONTROLLER_MANAGER_SVC_DESC":"守护进程,用于内嵌随 Kubernetes 一起发布的核心控制回路。","JAEGER_COLLECTOR_DESC":"收集 Sidecar 的数据。Istio 中的 Sidecar 为 jaeger-agent。","JAEGER_COLLECTOR_HEADLESS_DESC":"收集 Sidecar 的数据。Istio 中的 Sidecar 为 jaeger-agent。","JAEGER_QUERY_DESC":"接收查询请求,然后从后端存储系统中检索 Trace 并通过 Web UI 展示。","JAEGER_OPERATOR_METRICS_DESC":"提供 Operator 的监控指标。","MONITORING":"监控","PROMETHEUS_K8S_DESC":"提供节点、工作负载、 API 对象的相关监控数据。","NODE_EXPORTER_DESC":"收集集群各个节点的监控数据,供 Prometheus 抓取。","KUBE_STATE_METRICS_DESC":"监听 Kubernetes API 服务器以获取集群中的节点、工作负载、容器组等 API 对象的状态,并生成相关监控数据供 Prometheus 抓取。","PROMETHEUS_OPERATED_DESC":"所有 Prometheus 实例对应的服务,供 Prometheus Operator 内部使用。","PROMETHEUS_OPERATOR_DESC":"管理 Prometheus 实例。","ALERTMANAGER_OPERATED_DESC":"Alertmanager 服务,用于集成 Prometheus 和 Alertmanager。","ALERTMANAGER_MAIN_DESC":"Alertmanager Web UI 服务。","NOTIFICATION_MANAGER_SVC_DESC":"提供发送邮件、微信消息、Slack 消息等通知的接口。","NOTIFICATION_MANAGER_CONTROLLER_METRICS_DESC":"提供 Notification Manager Controller 内部监控数据。","LOGGING":"日志","ELASTICSEARCH_LOGGING_DATA_DESC":"提供 Elasticsearch 数据存储、备份、搜索等服务。","ELASTICSEARCH_LOGGING_DISCOVERY_DESC":"提供 Elasticsearch 集群管理服务。","LOGSIDECAR_INJECTOR_ADMISSION_DESC":"为指定容器组自动注入用于落盘日志收集的 Sidecar 容器。","KS_EVENTS_ADMISSION_DESC":"为事件规则管理提供验证 Webhook。","KS_EVENTS_RULER_DESC":"事件规则引擎服务,提供事件过滤和告警功能。","KUBE_AUDITING_WEBHOOK_SVC_DESC":"负责审计日志的收集、比对、持久化和告警上报。","S2IOPERATOR_METRICS_SERVICE_DESC":"S2I 监控服务组件,提供基础监控数据。","WEBHOOK_SERVER_SERVICE_DESC":"为 S2I 提供默认值和验证 Webhook。","CODE_REPO_PL":"代码仓库","CODE_REPO_LOW":"代码仓库","CODE_REPO":"代码仓库","CODE_REPO_DESC":"基于 Git 管理代码仓库.","CODE_REPO_EMPTY_DESC":"从 GitHub 、 GitLab 或 Bitbucket 导入代码仓库。您也可以使用 Git 直接拉取源代码。","IMPORT_CODE_REPO":"导入代码仓库","EDIT_CODE_REPO":"编辑代码仓库","LATEST_SYNC_STATUS":"最新同步状态","CURRENT_SYNC_STATUS":"当前同步状态","SYNC_STRATEGY":"同步策略","AUTO_SYNC":"自动同步","MANUAL_SYNC":"手动同步","END_TIME_SCAP":"结束时间","SYNC_RESULT_PL":"同步结果","SYNC_RESULT":"同步结果","SYNC_RESULT_EMPTY_DESC":"未发现同步结果.","CONTINUOUS_DEPLOYMENT_PL":"持续部署","CONTINUOUS_DEPLOYMENT_DESC":"管理持续部署,以通过 GitOps 持续部署资源。 ","CONTINUOUS_DEPLOYMENT_EMPTY_DESC":"请创建一个部署。","DEGRADED":"已降级","PROGRESSING":"进行中","SYNCED":"已同步","MISSING":"缺失","SUSPENDED":"已暂停","OUTOFSYNC":"未同步","DEPLOY_LOCATION":"部署位置","NEED_TO_SYNC_REPO":"需要同步仓库。","CREATE_CONTINUOUS_DEPLOYMENT":"创建持续部署","CD_SELECT_CODE_REPO_DESC":"选择代码仓库。","DEPLOYMENT_SETTINGS":"部署设置","CODE_REPOSITORY_SETTINGS":"代码仓库设置","SYNC_STRATEGY_TCAP":"同步策略","AUTO_SYNC_DESC":"在检测到 Git 仓库中的清单与部署资源的实时状态之间存在差异时,根据设置的同步选项,自动触发应用程序同步。","PRUNE_RESOURCES":"清理资源","SELF_HEAL":"自恢复","MANIFEST_FILE_PATH":"清单文件路径","DIRECTORY_RECURSE":"目录递归","REPO_EMPTY_DESC":"请选择一个代码仓库。","VALUES_FILES":"Values 文件","VALUES_FROM":"Values 文件源","STORAGE_NAMESPACE":"存储所属项目","TEST":"测试","REVISIONS_DESC":"Git 仓库中的 commit ID、分支或标签,如,\"master\", \"v1.2.0\", \"0a1b2c3\" 或 \"HEAD\"。","MANIFEST_FILE_PATH_DESC":"设置清单文件路径,如 \"deployments/nginx\" 或 \"deployments/\"。","MANUAL_SYNC_DESC":"根据自定义规则同步。","PRUNE_RESOURCES_DESC":"如果勾选,自动同步时会删除 Git 仓库中不存在的资源。不勾选时,自动同步触发时不会删除集群中的资源。","SELF_HEAL_DESC":"如果勾选,当检测到 Git 仓库中定义的状态与部署资源中有偏差时,将强制应用 Git 仓库中的定义。不勾选时,对部署资源做更改时不会触发自动同步。","FOREGROUND_DESC":"先删除依赖资源,再删除主资源。","BACKGROUND_DESC":"先删除主资源,再删除依赖资源。","ORPHAN_DESC":"删除主资源,留下依赖资源成为孤儿。","SKIP_SCHEMA_VALIDATION_DESC":"跳过 kubectl 验证。执行 kubectl apply 时,增加 --validate=false 标识。","AUTO_CREATE_PROJECT_DESC":"在项目不存在的情况下自动为应用程序资源创建项目。","PRUNE_LAST_DESC":"同步操作时,其他资源都完成部署且处于健康状态后,再清理资源。","APPLY_OUT_OF_SYNC_ONLY_DESC":"仅同步 out-of-sync 状态的资源。","CONTINUOUS_DEPLOYMENT":"持续部署","CONTINUOUS_DEPLOYMENT_LOW":"持续部署","DELETE_CONTINUOUS_DEPLOYMENT_DESC_SI":"您即将删除持续部署 {resource}。
    请确认是否删除由持续部署创建的资源。","DELETE_CONTINUOUS_DEPLOYMENT_DESC_PL":"您即将删除持续部署 {resource}。
    请确认是否删除由持续部署创建的资源。","NO_CONTINUOUS_DEPLOYMENT_RELATED_RESOURCE_DESC":"没有找到由持续部署创建的资源。","DELETE_MULTIPLE_CONTINUOUS_DEPLOYMENT":"批量删除持续部署","DELETE_CONTINUOUS_DEPLOYMENT":"删除持续部署","DELETE_CONTINUOUS_DEPLOYMENT_RELATE_DESC":"删除 {resourceName} 创建的资源","SYNC":"同步","SYNC_RESOURCE":"同步资源","REVISION":"修订版本","REVISION_DESC":"设置代码仓库的分支或标签。","PRUNE":"清理","DRY_RUN":"试运行","APPLY_ONLY":"仅应用","FORCE":"强制应用","SYNC_SETTINGS":"同步设置","SKIP_SCHEMA_VALIDATION":"跳过规范校验","AUTO_CREATE_PROJECT":"自动创建项目","PRUNE_LAST":"最后清理","APPLY_OUT_OF_SYNC_ONLY":"仅应用未同步","PRUNE_PROPAGATION_POLICY":"依赖清理策略","REPLACE_RESOURCE":"替换资源","REPLACE_RESOURCE_DESC":"替换已存在的资源。","EMPTY_CD_TITLE":"未发现持续部署","SYNC_TRIGGERED":"资源同步触发成功。","PARAMETER_SETTINGS":"参数设置","AUTO_PARAMETER":"自动","AUTO_PARAMETER_DESC":"已自动设置","HELM_PARAMETER":"Helm","HELM_PARAMETER_DESC":"设置 Helm 参数","KUSTOMIZE_PARAMETER":"Kustomize","KUSTOMIZE_PARAMETER_DESC":"设置 Kustomize 参数","PASS_CREDENTIALS":"传递凭据","IGNORE_MISSING_VALUE_FILES":"忽略缺失的 Values 文件","SKIP_CRDS":"跳过 CRD","RELEASE_NAME":"发布版本","VALUE_FILES":"Values 文件","FORCE_STRING":"强制字符串","FILE_PARAMETERS":"文件参数","NAME_PREFIX":"名称前缀","NAME_SUFFIX":"名称后缀","IMAGES":"镜像","COMMON_LABELS":"通用标签","COMMON_ANNOTATIONS":"常见注释","DEVOPS_PROJECT_SETTINGS":"DevOps 项目设置","DEVOPS_DESCRIPTION":"DevOps 项目是一个独立的命名空间,其中定义了一组流水线。用户可以按照自己的方式对流水线进行分组(例如:项目类型、组织类型)。","DEVOPS_PROJECT_ROLE_SCAP":"DevOps 项目角色","DEVOPS_PROJECT_SCAP":"DevOps 项目","DEVOPS_PROJECT_MEMBER_SCAP":"DevOps 项目成员","DEVOPS_PROJECT_MEMBER_PL_SCAP":"DevOps 项目成员","DEVOPS_PROJECT_ROLE_PL_SCAP":"DevOps 项目角色","CD_ALLOWLIST":"持续部署白名单","CD_ALLOWLIST_SCAP":"持续部署白名单","DEPLOYMENT_LOCATION_PL":"部署位置","ENABLE_ALLOWLIST":"启用白名单","EDIT_ALLOWLIST":"编辑白名单","EMPTY_ALLOWLIST_TITLE":"未启用持续部署白名单","ALLOWLIST_EMPTY_DESC":"启用白名单从而只允许在持续部署中使用特定的代码仓库和部署位置。","MULTI_CLUSTER_PROJECT_NOT_FOR_CD":"联邦项目不能用于持续部署。","CODE_REPOSITORY_EXIST_DESC":"代码仓库已存在,请选择其他代码仓库。","DEPLOYMENT_LOCATION_EXIST_DESC":"部署位置已存在,请设置其他部署位置。","CODE_REPOSITORY_NOT_SELECTED":"未选择代码仓库","RESOURCE_DEPLOYMENT_LOCATION_NOT_SELECTED":"未选择资源部署位置。","ALL_CODE_REPOSITORIES":"所有代码仓库","ALL_RESOURCE_DEPLOYMENT_LOCATIONS":"所有资源部署位置","CREDENTIAL_LOW":"凭证","DETAILS":"详情","TYPE_VALUE":"类型:{value}","RECORD":"记录","CREDENTIAL_PL":"凭证","DEVOPS_CREDENTIALS_DESC":"凭证是包含了一些敏感数据的对象,如用户名密码,SSH 密钥和 Token 等, 用于在 Pipeline 运行时, 为拉取代码、push/pull 镜像、SSH 执行脚本等过程提供认证","CREDENTIAL_EMPTY_DESC":"请创建一个凭证。","CREATE_CREDENTIAL":"创建凭证","CREDENTIAL_NAME_EXIST_DESC":"凭证名称已存在,请输入其他名称。","CREDENTIAL_TYPE_USERNAME_PASSWORD":"用户名和密码","CREDENTIAL_TYPE_SSH":"SSH 密钥","PRIVATE_KEY":"私钥","PASSPHRASE":"密码短语","CREDENTIAL_TYPE_SECRET_TEXT":"访问令牌","CREDENTIAL_TYPE_KUBECONFIG":"kubeconfig","PASSWORD_TOKEN":"密码/令牌","KUBECONFIG_CONTENT_DESC":"默认内容为当前用户的 kubeconfig 配置。","CONTENT":"内容","DEVOPS_PROJECT_MEMBER":"DevOps 项目成员","DEVOPS_PROJECT_MEMBER_PL":"DevOps 项目成员","DEVOPS_PROJECT_MEM_DESC":"对项目内的成员进行管理及角色分配。","DEVOPS_PROJECT_MEMBER_EMPTY_DESC":"请邀请当前企业空间的成员到当前 DevOps 项目。","INVITE_MEMBER_DESC_DEVOPS":"邀请当前企业空间的成员到当前 DevOps 项目。","HOW_TO_INVITE_MEMBER_Q":"如何邀请成员到项目?","HOW_TO_INVITE_MEMBER_A":"项目管理员或者拥有成员邀请权限的用户可以邀请当前企业空间内的成员加入项目。","NO_PERMISSION":"没有找到权限","DEVOPS_PROJECT_ROLE_PL":"DevOps 项目角色","DEVOPS_PROJECT_ROLES_DESC":"成员角色定义了在当前 DevOps 项目下用户所拥有的权限。","DEVOPS_PROJECT_ROLE_EMPTY_DESC":"请创建一个 DevOps 项目角色。","ROLE_DEVOPS_VIEWER":"查看 DevOps 项目中的所有资源。","ROLE_DEVOPS_OPERATOR":"管理 DevOps 凭证和流水线以及查看 DevOps 项目中成员和角色。","ROLE_DEVOPS_ADMIN":"管理 DevOps 项目中的所有资源。","EDIT_PERMISSIONS":"编辑权限","CREATE_ROLE":"创建角色","CATEGORIES":"分类","DEPENDS_ON":"依赖于:","PERMIGROUP_PIPELINES_MANAGEMENT":"流水线","PERMISSION_PIPELINES_VIEW":"流水线查看","PERMISSION_PIPELINES_VIEW_DESC":"查看 DevOps 项目流水线和下载制品。","PERMISSION_PIPELINES_MANAGEMENT":"流水线管理","PERMISSION_PIPELINES_MANAGEMENT_DESC":"创建、编辑和删除 DevOps 项目流水线。","PERMISSION_PIPELINERUNS_VIEW":"流水线执行记录查看","PERMISSION_PIPELINERUNS_VIEW_DESC":"查看 DevOps 项目流水线执行记录。","PERMISSION_PIPELINERUNS_MANAGEMENT":"流水线执行记录管理","PERMISSION_PIPELINERUNS_MANAGEMENT_DESC":"查看、编辑和删除 DevOps 项目流水线执行记录。","PERMIGROUP_CREDENTIALS_MANAGEMENT":"凭证","PERMISSION_CREDENTIALS_VIEW":"凭证查看","PERMISSION_CREDENTIALS_VIEW_DESC":"查看和使用 DevOps 凭证。","PERMISSION_CREDENTIALS_MANAGEMENT":"凭证管理","PERMISSION_CREDENTIALS_MANAGEMENT_DESC":"创建、编辑和删除 DevOps 凭证。","PERMIGROUP_DEVOPS_SETTINGS":"项目设置","PERMISSION_DEVOPS_SETTINGS":"项目设置管理","PERMISSION_DEVOPS_SETTINGS_DESC":"管理 DevOps 项目的设置。","PERMIGROUP_CONTINUOUS_DEPLOYMENTS_MANAGEMENT":"持续部署","PERMISSION_CONTINUOUS_DEPLOYMENTS_VIEW":"持续部署查看","PERMISSION_CONTINUOUS_DEPLOYMENTS_VIEW_DESC":"查看 DevOps 项目中的持续部署。","PERMISSION_CONTINUOUS_DEPLOYMENTS_MANAGEMENT":"持续部署管理","PERMISSION_CONTINUOUS_DEPLOYMENTS_MANAGEMENT_DESC":"管理 DevOps 项目中的持续部署。","PERMIGROUP_CODE_REPOSITORIES_MANAGEMENT":"代码仓库","PERMISSION_CODE_REPOSITORIES_VIEW":"代码仓库查看","PERMISSION_CODE_REPOSITORIES_VIEW_DESC":"查看 DevOps 项目中的代码仓库。","PERMISSION_CODE_REPOSITORIES_MANAGEMENT":"代码仓库管理","PERMISSION_CODE_REPOSITORIES_MANAGEMENT_DESC":"管理 DevOps 项目中的代码仓库。","CODE_REPOSITORY":"代码仓库","TASK_STATUS":"任务状态","NOT_RUNNING":"未运行","QUEUED":"队列中","ABORTED":"已取消","UNSTABLE":"未稳定","SKIPPED":"已跳过","NOT_BUILT":"未构建","SYNC_STATUS":"同步状态","DEVOPS_PROJECT":"DevOps 项目","SCAN_REPO_SUCCESSFUL":"仓库扫描触发成功。","VIEW_SCAN_LOGS":"查看扫描日志","STARTED_BY_NAME":"启动者:{name}","REPOSITORY_SCAN_LOGS":"仓库扫描日志","RESCAN":"重新扫描","LOGS_OBTAINED_SUCCESSFULLY":"日志获取成功。","HEALTH_STATUS_SCAP":"健康状态","PIPELINE_QUEUED_TITLE":"即将完成初始化","INITIALIZING_PIPELINE":"流水线初始化中","PIPELINE_PREPARE_DESC":"环境准备中...","INITIALIZING_PIPELINE_DESC":"请等待流水线初始化完成。","TASK_FAILED_NOT_OPERATIONAL":"此阶段已失败且无法操作。","NO_PIPELINE_CONFIG_FILE_TIP":"未发现流水线配置文件。","EDIT_PIPELINE":"编辑流水线","JENKINS_UNAVAILABLE":"Jenkins 未就绪。","AGENT_TYPE_DESC":"Agent 部分指定整个流水线或特定阶段将在 Jenkins 环境中执行的位置,\n 具体取决于该 agent 部分的放置位置。该部分必须在流水线块内的顶层定义,但 stage 级使用是可选的。","NOT_VALID_REPO":"代码仓库无效且无法创建","CREATE_PIPELINE_DESC":"使用流水线进行构建,测试和部署","CI":"持续集成 (CI)","CI_DESC":"持续集成(CI)是在源代码变更后自动检测、拉取、构建和(在大多数情况下)进行单元测试的过程。","CICD":"持续集成&交付 (CI/CD)","CICD_DESC":"持续部署(CD)是指能够自动提供持续交付管道中发布版本给最终用户使用的想法。根据用户的安装方式,在云环境中自动部署、app 升级(如手机上的应用程序)、更新网站或只更新可用版本列表。","CUSTOM_PIPELIEN":"自定义流水线","CUSTOM_PIPELIEN_DESC":"您可以选择您需要的任务自定义流水线的工作内容","CC":"抄送","CREDENTIAL_NAME":"凭证名称","REMOTE_REPOSITORY_URL":"远程仓库地址","SCM":"代码仓库","INPUT_MESSAGE_DESC":"流水线运行状态中将会展示此消息","KUBERNETES_DEPLOY_DESC":"在 kubernetes 集群中进行部署,在持续集成/持续部署的环境当中,\n 只有那些需要定期更新的资源才应该放到部署步骤当中,所以此步骤大多数时间都在处理部署这类资源.","KUBERNETES_DEPLOY_DESC_MORE":"
    \n \n
  • 无需 kubectl 的情况下实现部署
  • \n
  • Jenkinsfile 中的变量替换,可以进行动态部署。
  • \n
  • 支持从私有镜像仓库拉取 Docker 镜像
  • \n \n
    \n
  • 配置
  • \n
  • 密钥
  • \n
  • 部署
  • \n
  • 守护进程集
  • \n
  • 应用路由
  • \n
  • 名称空间
  • \n
  • 任务
  • \n
  • 服务
  • \n
  • Replica Set
  • \n
  • \n Replication\n Controller (不支持滚动更新,如果要使用滚动更新请使用部署)\n
  • ","STAGE":"阶段","KUBERNETES_DEPLOY_DEPRECATED_TIP":"该步骤会在后续版本中弃用,建议考虑其他替代方案。","ORIGINAL_IMAGE_ADDRESS":"原镜像地址","NEW_IMAGE_ADDRESS":"新镜像地址","NEW_IMAGE_TAG":"新镜像标签","CD_STEP_DESC":"通过持续部署更新镜像信息。","UPDATE_CD_TITLE":"持续部署更新","EDIT_JENKINSFILE":"编辑 Jenkinsfile","CLOSE_JENKINSFILE_EDITOR_TIP":"确定关闭 Jenkinsfile 编辑器?","PIPELINE_RUN_LOGS":"流水线运行日志","VIEW_LOGS":"查看日志","DURATION_VALUE":"持续时间:{value}","DOWNLOAD_LOGS":"下载日志","START_REAL_TIME_LOG":"启用实时日志","STOP_REAL_TIME_LOG":"禁用实时日志","RUN_RECORDS":"运行记录","RUN":"运行","ACTIVITY_EMPTY_TIP":"流水线尚未运行。","COMMIT":"提交","LAST_MESSAGE":"最后消息","RUN_ID":"运行 ID","STOP_PIPELINE_SUCCESSFUL":"流水线停止成功。","INVALID_JENKINSFILE_TIP":"当前 Jenkinsfile 不是标准的声明式 Jenkinsfile,图形化显示不可用。","PAUSED":"已暂停","SET_PARAMETERS":"设置参数","PARAMS_DESC":"下列参数是根据流水线设置或 Jenkinsfile 中的 parameters 部分生成的字段,请根据运行需求输入。","PIPELINE_RUN_START_SI":"开始运行流水线...","PIPELINE_RUN_START_PL":"开始运行流水线...","BREAK":"终止","PROCEED":"继续","WAITING_FOR_INPUT":"等待输入","CANCELLED_IN_REVIEW":"已在审核中取消","STEPS_COMPLETE_TOTAL":"步骤:{complete}/{total}","COMMIT_PL":"提交","AUTHOR":"作者","NO_COMMIT_FOUND":"未发现提交记录","ARTIFACT_PL":"制品","NO_ARTIFACT_FOUND_TIP":"未发现制品。","SIZE":"大小","BRANCH_SI":"分支","BRANCH_PL":"分支","SCAN_REPOSITORY":"扫描仓库","PIPELINE":"流水线","NO_BRANCHES_FOUND":"未找到分支","CODE_CHECK":"代码检查","BUG_PL":"代码错误","VULNERABILITY_PL":"代码漏洞","CODE_SMELL_PL":"代码异味","CODE_LINE_COUNT":"行数","COVERAGE":"覆盖率","TEST_RESULTS":"检查结果","ISSUE_PL":"议题","CRITICAL":"严重","MAJOR":"重要","MINOR":"轻微","DISPLAY_ALL":"展示全部","DISPLAY_ONLY_LAST_TEN":"仅显示最近 10 条问题。","LINE_VALUE":"行:{value}","PASSED":"已通过","PULL_REQUEST_PL":"拉取请求","FAILED_CHECK_SCRIPT_COMPILE":"检查脚本编译失败。如果您想跳过这一步,请单击继续。","IMPORT_FROM_CODE_REPO":"从代码库导入","General":"通用","Container":"容器","Review":"审核","URL":"URL","Credential Name":"凭证名称","Branch":"分支","SVN URL":"SVN URL","The message to print":"要打印的消息","Shell command line":"Shell 命令","Body":"正文","Variable":"变量","KeyFile Variable":"KeyFile 变量","Passphrase Variable":"密码变量","Artifacts Location":"制品位置","Time":"时间","Unit":"单位","Groovy script":"Groovy 脚本","Target Pipeline Name":"目标流水线名称","Quiet Period":"静默期","Wait For Completion":"等候完成","Propagate Errors":"传播误差","Error Message":"错误信息","Test Results Location":"测试结果位置","Allow Empty Results":"允许空结果","Keep Long Output":"保留长输出","Skip Publishing Checks":"跳过发布检查","Retry Count":"重试次数","Message":"消息","Submitter":"提交者","Config Name":"配置项","AbortPipeline if quality gate status is not green":"如果质量阈值状态不是绿色,则中止流水线","Container Name":"容器名称","Continuous Deployments":"持续部署","Original Image Address":"原镜像地址","New Image Address":"新镜像地址","New Image Tag":"新镜像标签","Credential":"凭证","PIPELINE_CONFIGURATION":"流水线配置","Replay":"回放","BRANCH_DISABLED_NOT_REPLAY":"该分支已被删除,不支持回放。","RUN_LOGS":"运行日志","VIEW_FULL_LOG":"查看完整日志","VIEW_REAL_TIME_LOG":"查看实时日志","PIPELINE_LOG":"流水线日志","NO_BUILD_PARAMETERS":"未发现构建参数。","PIPELINE_PL":"流水线","HEALTH":"健康状态","PULL_REQUEST_COUNT":"拉取请求数量","MULTI_BRANCH_PIPELINE":"多分支流水线","HEALTHY":"健康","SUB_HEALTHY":"亚健康","NO_STATUS":"没有状态","BRANCH_COUNT":"分支数量","PIPELINE_EMPTY_DESC":"请创建一个流水线。","BATCH_RUN_SUCCESS_SI":"流水线运行成功。","BATCH_RUN_SUCCESS_PL":"流水线运行成功。","BATCH_RUN_UNSUPPORTED_DESC":"多分支流水线不支持批量运行。","COPY":"复制","COPY_PIPELINE":"复制流水线","PIPELINE_NAME_DESC":"流水线的名称,同一个项目内流水线不能重名。","PIPELINE_NAME_TIP":"请输入流水线名称。","CREATE_PIPELINE":"创建流水线","GO_CREATE_REPO_ACTION":"没有可用的代码仓库。请 创建代码仓库。","PIPELINE_TYPE":"流水线类别","SELECT_CODE_REPOSITORY":"选择代码仓库","BRANCH_PIPELINE_DESC":"通过可视化编排或 Jenkinsfile 来描述软件的构建工程。","MULTI_BRANCH_PIPELINE_DESC":"根据源码管理(SCM)仓库中检测到的每个分支创建一系列流水线。","PIPELINE_CREATE_DEVOPS_PROJECT_DESC":"选择流水线所属的 DevOps 项目。","CODE_REPOSITORY_OPTIONAL":"代码仓库(可选)","CODE_REPOSITORY_REQUIRED":"代码仓库","CODE_REPOSITORY_REQUIRED_DESC":"请选择一个代码仓库。","GO_CREATE_REPO":"没有可用的代码库。请创建代码库。","CODE_REPO_EXISTS":"代码仓库已存在","SELECT_CODE_REPO_DESC":"选择流水线使用的代码仓库。","RESELECT":"重新选择","CREDENTIAL_SI":"凭证","CREDENTIAL":"凭证","PIPELINE_CREDENTIAL_EMPTY_TIP":"请选择一个凭证。","SELECT_CREDENTIAL_DESC":"选择一个凭证用于访问代码仓库。","GITHUB_CREDENTIAL_EMPTY":"请设置 GitHub 凭证。","INCORRECT_GITHUB_TOKEN_DESC":"GitHub 令牌错误\n \n 获取 GitHub 令牌\n ","LOAD_MORE":"加载更多","NO_REPO_FOUND_DESC":"未发现代码仓库。","GITLAB_SERVER_ADDRESS":"Gitlab 服务器地址","GITLAB_SERVER_EMPTY_TIP":"请输入 GitLab 服务器的地址。","PROJECT_GROUP_OWNER":"项目组/所有者","PROJECT_GROUP_OWNER_EMPTY_TIP":"请输入 GitLab 项目组或项目所有者的名称。","REPOSITORY_NAME":"代码仓库","REPOSITORY_NAME_EMPTY_TIP":"请输入代码仓库的名称。","BITBUCKET_SERVER_ADDRESS":"Bitbucket 服务器地址","BITBUCKET_SERVER_EMPTY_TIP":"请设置 Bitbucket 服务器的地址。","INCORRECT_USERNAME_OR_PASSWORD":"用户名或密码错误。","BITBUCKET_SERVER_CREDENTIAL_EMPTY":"请设置 Bitbucket 服务器和凭证。","BITBUCKET_ADDRESS_EMPTY_TIP":"请输入 Bitbucket 服务器的地址。","BITBUCKET_ADDRESS_INVALID_TIP":"Bitbucket 服务器地址格式错误。","CODE_REPOSITORY_ADDRESS_DESC":"请使用包含 Jenkinsfile 的代码仓库。","CODE_REPOSITORY_ADDRESS_EMPTY_TIP":"请输入代码仓库的地址。","CODE_REPOSITORY_ADDRESS":"代码仓库地址","SINGLE_SVN":"单分支 SVN","SVN":"SVN","BRANCH_EXCLUDED":"排除分支","BRANCH_INCLUDED":"包括分支","DELETE_OUTDATED_BRANCHES":"清理已删除分支(true,false)","DELETE_OUTDATED_BRANCHES_TIP":"设置系统自动删除过期分支以节省磁盘空间。","BRANCH_SETTINGS":" 分支设置","BRANCH_RETENTION_PERIOD_DAYS":"已删除分支保留天数(天)","MAXIMUM_BRANCHES":"已删除分支保留最大数量","BRANCH_RETENTION_PERIOD_DAYS_DESC":"超过保留期限的分支将被删除。默认值为 7。","MAXIMUM_BRANCHES_DESC":"当构建记录数量超过允许的最大数量,最早的构建记录将被删除。默认值为 5。","ADD_STRATEGY":"添加策略","DISCOVER_TAG_BRANCHES":"发现标签","DISCOVER_BRANCHES":"发现分支","ALL_BRANCHES":"包括所有分支","ONLY_PR_BRANCHES":"只包括已提交 PR 的分支","EXCLUDE_PR_BRANCHES":"排除已提交 PR 的分支","ENABLE_TAG_BRANCH_DISCOVERY":"启用标签发现","DISABLE_TAG_BRANCH_DISCOVERY":"禁用标签发现","PULL_STRATEGY":"拉取策略","OPTIONS_PR_PARAMS_1":"拉取 PR 合并后的代码","OPTIONS_PR_PARAMS_2":"拉取 PR 提交时的代码","OPTIONS_PR_PARAMS_3":"分别创建两个流水线","REGEX":"正则表达式","FILTER_BY_REGEX":"正则过滤","FILTER_BY_REGEX_DESC":"使用正则表达式过滤分支、PR 和标签","SCRIPT_PATH":"脚本路径","SCRIPT_PATH_DESC":"设置 Jenkinsfile 在代码仓库中的的路径。","SCAN_TRIGGER":"扫描触发器","SCAN_PERIODICALLY":"定时扫描","TIME_TRIGGER_DESC":"定时扫描代码仓库。","SCAN_INTERVAL":"扫描时间间隔","SELECT_PIPELINE_SCAP":"选择流水线","WHEN_DELETE_PIPELINE_DESC":"当有流水线被删除时,将自动触发指定流水线中的任务。","WHEN_CREATE_PIPELINE_DESC":"当创建新的流水线时,将自动触发指定流水线中的任务。","PIPELINE_EVENT_TRIGGER":"通过流水线事件触发","WHEN_CREATE_PIPELINE":"创建流水线时触发","WHEN_DELETE_PIPELINE":"删除流水线时触发","CLONE_SETTINGS":"克隆设置","CLONE_TIMEOUT_PERIOD":"克隆超时时间(min)","CLONE_DEPTH":"克隆深度","ENABLE_SHALLOW_CLONE":"启用浅克隆","WEBHOOK_PUSH_URL":"Webhook 推送 URL","WEBHOOK_PUSH_DESC":"推送消息到此 URL 以触发仓库扫描。","TRUSTED_USERS":"受信用户","CONTRIBUTORS":"贡献者","EVERYONE":"所有人","NOBODY":"无","USERS_WITH_PERMISSION":"具有管理员或编辑权限的用户","OPTIONS":"备用选项","BUILD_SETTINGS":"构建设置","DELETE_OUTDATED_BUILD_RECORDS":"删除过期构建记录","DELETE_OUTDATED_BUILD_RECORDS_TIP":"设置系统自动删除过期的控制台输出、归档制品、元数据等构建记录以节省磁盘空间。","BUILD_RECORD_RETENTION_PERIOD_DAYS":"构建记录保留期限(天)","BUILD_RECORD_RETENTION_PERIOD_DAYS_DESC":"超过保留期限的构建记录将被删除。默认值为 7。","BUILD_RECORD_RETENTION_PERIOD_DAYS_INVALID_TIP":"保留期限必须是正整数。","MAXIMUM_BUILD_RECORDS":"构建记录最大数量","MAXIMUM_BUILD_RECORDS_DESC":"当构建记录数量超过允许的最大数量,最早的构建记录将被删除。默认值为 10。","MAXIMUM_BUILD_RECORDS_INVALID_TIP":"构建记录的最大值必须为正整数。","NO_CONCURRENT_BUILDS":"不允许并发构建","NO_CONCURRENT_BUILD_DESC":"设置流水线一次仅执行一个构建任务。","BUILD_PARAMETERS":"构建参数","BUILD_PARAMETERS_TIP":"向流水线传入构建参数。","PARAMS_STRING":"字符串 ","PIPELINE_PARAM_DEFAULT_DESC":"设置参数的的默认值。您可以在手动运行流水线前修改参数值。","PARAMS_TEXT":"多行字符串","PARAMS_TEXT_TCAP":"多行字符串","PARAMETER_DESCRIPTION_DESC":"设置参数的描述。","PARAMS_BOOLEAN":"布尔值","PARAMS_CHOICE":"选项","CHOICE_PARAM_OPTION_DESC":"每行输入一个选项,第一行的将作为默认选项。","PARAMS_PASSWORD":"密码","BUILD_TRIGGER":"构建触发器","BUILD_PERIODICALLY":"定时构建","BUILD_PERIODICALLY_TIP":"设置流水线定期执行构建任务。","PIPELINE_CRON_DESC":"流水线下次将在 {nextTime} 运行。","PIPELINE_SCHEDULE_DESC":"输入 CRON 表达式以设置定时计划。","DEFAULT_VALUE":"默认值","PARAMETER_NAME_EMPTY_DESC":"请设置参数的名称。","SELECT_TEMPLATE":"选择模板","PARAMETER_CONFIG":"参数设置","PREVIEW":"预览","EMPTY_PARAMS_CONFIG":"此操作不需要设置参数。","PIPELINE_VALIDATOR_DESC":"请选择一个流水线模板。","USER_GUIDE":"用户指南","API_DOCUMENT":"API 文档","INPUT_USERNAME_OR_EMAIL_TIP":"请输入用户名或邮箱。","LOG_IN":"登录","LOG_IN_WITH_TITLE":"通过 {title} 登录","LOG_OUT":"登出","ABOUT":"关于","USERNAME_OR_EMAIL":"用户名或邮箱","WELCOME":"欢迎登录","INTERNAL_SERVER_ERROR_TIP":"对不起,服务器开小差了","TOO_MANY_FAILURES":"连续登录失败次数超过限制,请稍后重试。","FAILED_TO_ACCESS_BACKEND":"访问后端服务失败。","FAILED_TO_ACCESS_API_SERVER":"访问 API 服务失败。","LOGIN_AGAIN_DESC":"会话已超时或用户已从其他地方登录,请重新登录。","CHANGE_PASSWORD_TIP":"初次登录请修改密码。","SUBMIT":"提交","CHANGE_PASSWORD_LATER":"稍后修改密码","PASSWORD_MUST":"您的密码必须:","PASSWORD_LETTER":"包含至少 1 个大写字母和 1 个小写字母。","PASSWORD_NUMBER":"包含至少 1 个数字。","PASSWORD_LENGTH":"包含至少 8 个字符。","SET_EMAIL_AND_USERNAME":"设置邮箱和用户名","APPLICATION_GOVERNANCE_SCAP":"应用治理","NO_SERVICE_FOUND":"未发现服务","GATEWAY_IP_ADDRESS":"网关 IP 地址","GATEWAY_ACCESS_MODE":"网关访问模式","NODE_PORTS_SCAP":"节点端口","LOAD_BALANCER_SCAP":"负载均衡器","LOAD_BALANCERS_SCAP":"负载均衡器","TRAFFIC_MANAGEMENT":"流量管理","APPLICATION_GOVERNANCE_ENABLED":"应用治理已启用","APPLICATION_GOVERNANCE_DISABLED":"应用治理已禁用","NAME_VALUE":"名称:{value}","CONTAINER_PORT_VALUE":"容器端口:{value}","PLEASE_USE_RELATIVE_PATH":"请使用相对路径。","RELATIVE_PATH_NOT_SUPPORT":"相对路径格式不支持。","MOUNT_PATH_INCORRECT":"挂载路径不正确。","REASON":"原因","WORKLOAD_DESC":"工作负载(Workload)用于处理业务请求,可包含一个或多个容器组。日志、监控等系统功能也是由工作负载实现的。","DEPLOYMENT_EMPTY_DESC":"请创建一个部署。","UPDATING":"更新中","NEXT":"下一步","INVALID_PROJECT":"项目无效。","REPLICA_SCHEDULING_MODE":"副本调度模式","SPECIFY_REPLICAS":"指定副本数量","WEIGHTS":"权重","SPECIFY_WEIGHTS":"指定权重","SPECIFY_WEIGHTS_DESC":"设置容器组副本总数和每个集群的权重。容器组副本将根据权重调度到每个集群。","SPECIFY_REPLICAS_DESC":"手动设置每个集群的容器组副本数。","REPLICA_LOW_SI":"副本","REPLICA_LOW_PL":"副本","WEIGHT":"权重","TOTAL_REPLICAS":"副本总数","COST":"占用","ADD_CONTAINER":"添加容器","ADD_CONTAINER_DESC":"自定义容器的设置以创建容器。","CONTAINERS":"容器","IMAGE_TIME_SIZE_LAYER":"更新于 {time}","IMAGE_DESC":"如需使用私有镜像服务,您需要先创建镜像服务保密字典。","IMAGE_PLACEHOLDER":"镜像名称或路径,例如 nginx:latest","IMAGE_EMPTY":"请设置镜像。","ENTER_POSITIVE_INTEGER_DESC":"请输入一个正整数。","TOTAL_REPLICAS_EMPTY_DESC":"请输入所有集群容器组副本的总数。","CONTAINER_NAME":"容器名称","CONTAINER_TYPE":"容器类型","USE_DEFAULT_PORTS":"使用默认端口","USE_IMAGE_DEFAULT_PORTS":"使用默认镜像端口","NO_DEFAULT_PORT":"暂无默认端口配置","REGISTRY":"镜像服务","SET_IMAGE_DESC":"为容器设置镜像。","WORKER_CONTAINER":"工作容器","CONTAINER_RESOURCE_LIMIT_TIP":"设置容器的资源上限与资源预留,以将容器调度到合适的节点上。","GPU_TYPE":"GPU 类型","GPU_LIMIT":"GPU 上限","NVIDIA_COM_GPU":"NVIDIA GPU","NO_LIMIT":"无上限","NO_REQUEST":"无预留","NO_RESOURCE_LIMIT":"无资源上限","IGNORE_AND_RETRY":"忽略并重试","AVAILABLE_QUOTAS":"可用配额","PORT_SETTINGS":"端口设置","ISTIO_PROTOCOL_TIP":"选择服务实际使用的协议以充分利用应用治理功能。例如,为 HTTP 服务选择 HTTP 协议。","REQUIRED":"必填","IMAGE_PULL_POLICY_ALWAYS":"每次都拉取镜像","IMAGE_PULL_POLICY_NEVER":"仅使用本地镜像","IMAGE_PULL_POLICY_ALWAYS_DESC":"在容器组创建及更新时,每次都尝试拉取新的镜像。","IMAGE_PULL_POLICY_IFNOTPRESENT_DESC":"如果本地存在所需的镜像,则优先使用本地镜像。","IMAGE_PULL_POLICY_NEVER_DESC":"仅使用本地镜像。如果本地不存在所需的镜像,则会导致容器异常。","IMAGE_PULL_POLICY_IFNOTPRESENT":"优先使用本地镜像","LIVENESS_CHECK":"存活检查","READINESS_CHECK":"就绪检查","STARTUP_CHECK":"启动检查","LIVENESS_CHECK_DESC":"检查容器是否存活。","READINESS_CHECK_DESC":"检查容器是否可以处理请求。","STARTUP_CHECK_DESC":"检查容器是否启动成功。","ADD_PROBE":"添加探针","COMMANDS":"命令","HEALTH_CHECK":"健康检查","STARTUP_CHECK_TIP":"需要 Kubernetes v1.18 或以上版本。","HTTP_PATH_EMPTY":"请设置 HTTP 检查的路径。","LIFECYCLE_MANAGEMENT":"生命周期管理","LIFECYCLE_MANAGEMENT_DESC":"设置容器启动后或终止前需要执行的动作,以进行环境检查或体面终止。","POSTSTART_ACTION":"启动后动作","PRESTOP_ACTION":"终止前动作","POSTSTART_ACTION_DESC":"设置容器启动后需要执行的动作。","PRESTOP_ACTION_DESC":"设置容器终止前需要执行的动作。","ADD_ACTION":"添加动作","ADD_ENVIRONMENT_VARIABLE":"添加环境变量","KEY_IN_RESOURCE":"资源中的键","LABEL_TYPE":"{label} ({type})","RESOURCE":"资源","CREATE_CONFIGMAP_SECRET_DESC":"如果没有配置字典或保密字典满足要求,您可以","CREATE_CONFIG":"创建配置字典","OR":"或","CREATE_SECRET":"创建保密字典。","DEFAULT_REPOSITORY":"默认镜像仓库","SET_DEFAULT_REPOSITORY":"设置默认镜像仓库","SET_AS_DEFAULT_REPOSITORY_DESC":"设置为默认镜像仓库后,如果没有特殊指定,系统将使用默认镜像仓库创建应用负载。一个项目中仅允许设置一个默认镜像仓库。","SET_AS_DEFAULT_REPOSITORY":"设为默认镜像仓库","SET_DEFAULT_REPO_SUCCESSFUL":"设置默认镜像仓库成功","CONTAINER_SECURITY_CONTEXT":"容器安全上下文","CONTAINER_SECURITY_CONTEXT_DESC":"自定义容器的权限设置。","PRIVILEGED_MODE":"特权模式","PRIVILEGED_MODE_DESC":"以主机上的 root 用户运行容器进程。","ALLOW_PRIVILEGE_ESCALATION":"允许特权提升","ALLOW_PRIVILEGE_ESCALATION_DESC":"允许容器进程获取比父进程更多的特权。当特权模式启用时,此选项目默认启用。","ROOT_DIRECTORY_READONLY":"根目录只读","ROOT_DIRECTORY_READONLY_DESC":"将容器文件系统的根目录设置为只读。","USER_AND_USER_GROUP":"用户和用户组","USER_GROUP":"用户组","RUN_AS_NON_ROOT":"仅允许非 root 用户运行","RUN_AS_NON_ROOT_DESC":"启动容器之前检查容器是否将以 root 用户运行。如果容器将以 root 用户运行则不启动容器。","RUN_AS_USER_DESC":"执行容器进程入口点的 UID。默认为镜像元数据中指定的 UID。","RUN_AS_USER_GROUP_DESC":"执行容器进程入口点的 GID。默认为容器运行时的默认 GID。","SELINUX_CONTEXT":"SELinux 上下文","CAPABILITIES":"权能","DROP":"移除","ACCESS_CONTROL":"访问控制","LEVEL":"等级","SYNC_HOST_TIMEZONE_DESC":"同步容器与主机的时区。","SYNC_HOST_TIMEZONE":"同步主机时区","UPDATE_STRATEGY":"更新策略","ROLLING_UPDATE_RECOMMENDED":"滚动更新(推荐)","SIMULTANEOUS_UPDATE":"同时更新","ROLLINGUPDATE_DESC":"用新容器组副本逐步替换旧容器组副本。升级过程中业务流量会负载均衡到新旧容器组副本上,业务不会中断。","SIMULTANEOUS_UPDATE_DESC":"删除全部旧容器组副本再创建新容器组副本。升级过程中业务会中断。","ENTER_INTEGER_OR_PERCENTAGE":"请输入整数或百分比。","MAX_EXTRA_EMPTY":"请设置更新过程中允许的多余容器组副本的最大数量或百分比。","POD_SECURITY_CONTEXT":"容器组安全上下文","POD_SECURITY_CONTEXT_DESC":"自定义容器组的权限设置。","POD_SECURITY_CONTEXT_TIP":"如果容器组安全上下文和容器安全上下文中都设置了用户、用户组和 SELinux 上下文,容器安全上下文中的设置将覆盖容器组安全上下文中的设置。","POD_SCHEDULING_RULES":"容器组调度规则","POD_SCHEDULING_RULES_DESC":"设置容器组副本调度到节点的规则。","DEFAULT_RULES":"默认规则","DEFAULT_RULES_DESC":"按照默认的规则将容器组副本调度到节点。","DECENTRALIZED_SCHEDULING":"分散调度","CUSTOM_RULES":"自定义规则","CUSTOM_RULES_DESC":"按照自定义的规则将容器组副本调度到节点。","DECENTRALIZED_SCHEDULING_DESC":"尽可能将容器组副本调度到不同的节点上。","CENTRALIZED_SCHEDULING_DESC":"尽可能将容器组副本调度到同一节点上。","CENTRALIZED_SCHEDULING":"集中调度","SCHEDULE_WITH_TARGET":"与目标调度到一起","SCHEDULE_AWAY_FROM_TARGET":"远离目标调度","MATCH_IF_POSSIBLE":"尽可能匹配","MUST_MATCH":"必须匹配","TARGET":"目标","STRATEGY":"策略","POD_GRACE_PERIOD":"容器组优雅终止","POD_GRACE_PERIOD_DESC":"设置容器终止前等待的时间,超时后容器将强制终止。","TERMINATION_GRACEPERIOD_SECONDS":"终止宽限时间 (s)","ADD_METADATA":"添加元数据","POD_ADD_METADATA_DESC":"为容器组副本添加元数据。","STORAGE_SETTINGS":"存储设置","READ_ONLY_LOW":"只读","READ_AND_WRITE_LOW":"读写","MOUNT_VOLUME":"挂载卷","WORKLOAD_MOUNT_VOLUME_DESC":"为容器挂载持久卷、临时卷或 HostPath 卷。","SELECT_PERSISITENT_VOLUME_CLAIM":"选择持久卷声明","SELECT_PERSISITENT_VOLUME_CLAIM_DESC":"将根据持久卷声明创建的持久卷挂载到容器。","CAPACITY":"容量","PVC_NOT_SELECT":"请选择一个持久卷声明。","TEMPORARY_VOLUME":"临时卷","VOLUME_NAME":"卷名称","VOLUME_NAME_EMPTY":"请为卷设置名称。","HOST_PATH_EMPTY":"请为卷设置主机路径。","CONTAINER_NOT_SELECTED":"请将卷挂载到至少一个容器。","NOT_MOUNT":"不挂载","HOSTPATH_VOLUME":"HostPath 卷","HOSTPATH_TIP":"使用 HostPath 卷将主机文件系统中的文件或目录挂载到容器中。","HOST_PATH":"主机路径","READ_AND_WRITE":"读写","READ_ONLY":"只读","MOUNT_CONFIGMAP_OR_SECRET":"挂载配置字典或保密字典","MOUNT_CONFIGMAP_OR_SECRET_DESC":"为容器挂载配置字典或保密字典。","CONFIGMAP":"配置字典","SELECT_CONFIGMAP_DESC":"将配置字典挂载到容器。","READ_WRITE_MOUNT_EMPTY":"请指定读写方式及挂载路径。","SELECT_SPECIFIC_KEYS":"选择特定键","SELECT_SPECIFIC_KEYS_DESC":"选择需要挂载到容器的特定键。","SELECT_SECRET_DESC":"将保密字典挂载到容器。","CONFIGMAP_NOT_SELECT":"请选择配置字典。","SECRET_NOT_SELECT":"请选择保密字典。","NO_AVAILABLE_RESOURCE":"未发现可用资源","SELECT_NODES":"选择节点","SELECT_NODES_DESC":"将容器组副本分配给特定的节点。您可以使用标签选择节点或手动指定节点。","PLEASE_SELECT_NODES":"请选择节点","ADD_NODE_SELECTOR":"添加节点选择器","ADD_METADATA_DESC":"为资源添加元数据。","KEY":"键","VALUE":"值","ADVANCED_SETTINGS":"高级设置","DUPLICATE_LABELS":"无法添加重复标签。","WORKLOAD_SPECIFY_NODE_DESC":"将容器副本分配给特定节点。","CLUSTER_DIFF":"集群差异设置","CLUSTER_DIFF_CONTAINER_SETTINGS_DESC":"在不同的集群中使用不同的容器设置。","CLUSTER_DIFF_PORT_SETTINGS_DESC":"为不同集群中的容器设置不同的端口。","CLUSTER_DIFF_ENVIRONMENT_VARIABLES_DESC":"为不同集群中的容器设置不同的环境变量。","CONTAINER_IMAGE":"容器镜像","ROUTE_ADD_METADATA_DESC":"为路由添加元数据。","SELECT_INGRESSCLASSNAME":"选择 ingressClassName","ACCESS_INFORMATION":"访问信息","VIRTUAL_IP_ADDRESS":"虚拟 IP 地址","INTERNAL_DOMAIN_NAME_SCAP":"内部域名","NODE_PORT_SCAP":"节点端口","SERVICE_TYPE_TCAP":"服务类型","SELECT_SERVICE_TYPE":"选择服务类型","ADD_PORT":"添加端口","EMPTY_LABEL_DESC":"请添加标签。","SPECIFY_NODE":"指定节点","SPECIFY_NODE_DESC":"将节点的标签作为预填充内容","MAXIMUM_STICKINESS_DURATION_DESC":"设置最大会话保持时间。取值范围为 0 到 86400,默认值 10800。","SERVICE_ADD_METADATA_DESC":"为服务添加元数据。","STATEFULSET_EMPTY_DESC":"请创建一个有状态副本集。","POD_SETTINGS":"容器组设置","POD_REPLICAS":"容器组副本数量","ONDELETE":"删除容器组时更新","ONDELETE_DESC":"需要手动删除容器组副本才能对其进行更新。","PARTITION_ORDINAL":"容器组副本分组序号","PARTITION_ORDINAL_DESC":"设置一个分组序号以将容器组副本分成两组。更新有状态副本集时,只有序号大于或等于分组序号的容器组副本会被更新。","PVC_NAME_PREFIX":"PVC 名称前缀","PVC_NAME_PREFIX_DESC":"持久卷声明名称的前缀。前缀只能包含小写字母、数字和连字符(-),必须以小写字母或数字开头和结尾,最长 253 个字符。","PVC_NAME_PREFIX_EMPTY":"请输入持久卷声明名称的前缀。","INVALID_PVC_NAME_PREFIX":"前缀无效。前缀只能包含小写字母、数字和连字符(-),必须以小写字母或数字开头和结尾,最长 253 个字符。","PVC_NAME_PREFIX_EXISTS":"前缀已经存在,请输入其他前缀。","ADD_PERSISTENT_VOLUME_CLAIM_TEMPLATE":"添加持久卷声明模板","ADD_PERSISTENT_VOLUME_CLAIM_TEMPLATE_DESC":"添加持久卷声明模板为有状态副本集的每个容器组挂载一个持久卷。","VOLUME_CAPACITY_TCAP":"卷容量","MOUNT_PATH_TCAP":"挂载路径","VOLUME_TEMPLATES":"卷模板","SERVICE_PORT":"服务端口","SERVICE_PORT_VALUE":"服务端口:{value}","VOLUME_TEMPLATE_SETTINGS":"卷模板设置","CLUSTER_VOLUME_DIFF_DESC":"在不同的集群中使用不同的存储设置。","CONFIGMAP_EMPTY_DESC":"请创建一个配置字典。","MULTI_CLUSTER_PROJECT_EMPTY_DESC":"请创建一个联邦项目。","MULTI_CLUSTER_PROJECT_LOW":"联邦项目","MULTI_CLUSTER_PROJECT_SCAP":"联邦项目","VOLUME_MONITORING_TIP":"存储系统需要具备真实的 volume quota 控制能力才可以输出真实准确的数据,基于 host path, local pv, 开源 nfs server 构建的存储系统通常不具备该能力。了解更多","MOUNT_INFORMATION":"挂载信息","VOLUME_ADD_METADATA_DESC":"为卷添加元数据。","PROJECT_NAME":"项目名称","NO_REQUEST_TCAP":"无预留","NO_LIMIT_TCAP":"无上限","CPU_REQUEST_LOW":"CPU 预留","CPU_LIMIT_LOW":"CPU 上限","CPU_REQUEST_CORE":"{value} 核","CPU_LIMIT_CORE":"{value} 核","MEMORY_REQUEST_MIB":"{value} MiB","MEMORY_LIMIT_MIB":"{value} MiB","DELETE_PROJECT":"删除项目","CREATION_TIME":"创建时间","FOLD":"折叠","UNFOLD":"展开","PLATFORM":"平台管理","CLUSTER_MANAGEMENT":"集群管理","CLUSTER_DESC":"对多集群以及每个集群的基础资源、服务组件和应用资源等的统一管理。","ACCESS_CONTROL_DESC":"对平台中的企业空间、用户、以及角色进行统一管理。","APP_STORE_MANAGEMENT_DESC":"对云原生应用的发布、上架以及下架等应用全生命周期的统一管理。","PLATFORM_SETTINGS_DESC":"定制化平台设置,如基本信息和通知配置等。","NOTIFICATION_MANAGEMENT":"通知管理","NOTIFICATION_CHANNELS":"通知渠道","NOTIFICATION_CHANNELS_DESC":"当资源指标满足规则组中配置的条件和持续时间时,通过多种渠道通知用户。","MAIL_TITLE":"邮件","MAIL_DESC":"向邮件地址发送通知。","INVALID_PORT_DESC":"请输入有效端口号。","ENTER_PORT_NUMBER":"请输入端口号。","ALERTING_NAME":"告警名称","ALERTING_SEVERITY":"告警级别","ADDRESS_EMPTY_DESC":"请输入地址。","EMAIL_EMPTY_DESC":"请输入一个邮箱地址。","SERVER_SETTINGS":"服务器设置","RECIPIENT_SETTINGS":"接收设置","FILTER_CONDITIONS":"过滤条件","CONTAINER":"容器","VALUES":"值","CONDITION_OPERATOR":"操作符","NOTIFICATION_CONDITION_SETTING_TIP":"包含不包含操作符需要一个或多个值。您可以按 Enter 设置多个值。","NOTIFICATION_CONDITION_SETTINGS_DESC":"设置系统仅发送符合条件的告警。","CONTAIN":"包含","NOT_CONTAIN":"不包含","EXIST":"存在","NOT_EXIST":"不存在","PATTERN_TAG_INVALID_TIP":"标签无效。标签只能包含字母、数字、连字符(-)、下划线(_)和句点(.),必须以数字或字母开头和结尾。","PATTERN_TAG_VALUE_INVALID_TIP":"值无效。值只能包含字母、数字、连字符(-)、下划线(_)和句点(.),必须以数字或字母开头和结尾,最长 63 个字符。","INVALID_NOTIFICATION_CONDITION":"请填写正确的通知条件。","SEND_TEST_MESSAGE":"发送测试信息","SEND_TEST_MESSAGE_DESC":"发送测试消息以确认通知渠道工作正常。","SEND_TEST_MESSAGE_SUCCESS_DESC":"验证成功,已发送测试消息。","SMTP_SERVER_ADDRESS":"SMTP 服务器地址","USE_SSL_SECURE_CONNECTION":"使用 SSL 安全连接","SENDER_EMAIL":"发件人邮箱","INVALID_EMAIL":"邮箱地址格式错误。","INVALID_ADDRESS_DESC":"请输入有效地址。","MAX_EAMIL_COUNT":"您可以最多添加 {count} 个邮箱。","SMTP_USER":"SMTP 用户名","SMTP_PASSWORD":"SMTP 密码","ENTER_PASSWORD_TIP":"请输入密码。","ENTER_RECIPIENT_EMAIL_DESC":"请添加至少一个邮箱地址。","INVALID_EMAIL_ADDRESS_DESC":"邮箱地址格式不正确。","SMTP_USER_EMPTY_DESC":"请输入 SMPT 用户名。","ADDED_SUCCESS_DESC":"添加成功。","POD":"容器组","UPDATE_SUCCESSFUL":"更新成功。","FEISHU":"飞书","FEISHU_TITLE":"飞书","FEISHU_DESC":"向飞书用户发送通知。","PLEASE_ENTER_APP_ID":"请输入 App ID。","USER_ID":"User ID","DEPARTMENT_ID":"Department ID","FEISHU_RECEIPIENT_SETTINGS_DESC":"如需接收通知,请设置至少一个 User ID 或 Department ID。","FEISHU_SECRET":"密钥","DINGTALK_TITLE":"钉钉","DINGTALK":"钉钉","DINGTALK_DESC":"向钉钉用户发送通知。","PLEASE_ENTER_APP_KEY":"请输入 App Key。","PLEASE_ENTER_APP_SECRET":"请输入 App Secret。","PLEASE_ENTER_CHAT_ID":"请输入 Chat ID。","PLEASE_ENTER_WEBHOOK_URL":"请输入 Webhook URL。","CHAT_SETTINGS":"会话设置","CHAT_ID_TIP":"联系 DingTalk 管理员获取 Chat ID。","DINGTALK_SETTING_TIP":"请设置会话或者群机器人。","ENTER_CHAT_ID_DESC":"请输入 Chat ID。","MAX_CID_COUNT":"您可以添加最多 {count} 个 Chat ID。","CHAT_ID_EXISTS":"Chat ID 已存在,请添加其他 Chat ID。","CHATBOT_SETTINGS":"群机器人设置","KEYWORDS_LIST":"已添加关键字","DINGTALK_CHATBOT_SECURITY_TIP":"请输入 Secret 或关键词。","ENTER_KEYWORD_DESC":"请输入关键字。","MAX_KEYWORD_COUNT":"您可以最多添加 {count} 个关键词。","KEYWORD_EXISTS":"关键词已存在,请添加其他关键词。","EMPTY_KEYWORDS_DESC":"没有添加关键词。","WECOM":"企业微信","WECOM_TITLE":"企业微信","WECOM_DESC":"向企业微信用户发送通知。","RECIPIENT_SETTINGS_TIP":"输入至少一个 User ID、Department ID 或 Tag ID。","ENTER_WECOM_CORP_ID_DESC":"请输入 Corp ID。","ENTER_WECOM_AGENT_ID_DESC":"请输入应用 Agent ID。","ENTER_WECOM_SECRET_DESC":"请输入应用 Secret。","TOUSER_LIST":"已添加的 User ID","EMPTY_TOUSER_DESC":"没有已添加的 User ID。","ENTER_TOUSER_TIP":"请输入 User ID。","TOUSER_EXISTS":"User ID 已存在,请输入其他 User ID。","MAX_TOUSER_COUNT":"您可以最多添加 {count} 个 User ID。","TOPARTY_LIST":"已添加的 Department ID","EMPTY_TOPARTY_DESC":"没有已添加 Department ID。","ENTER_TOPARTY_TIP":"请输入 Department ID。","TOPARTY_EXISTS":"Department ID 已存在,请输入其他 Department ID。","MAX_TOPARTY_COUNT":"您可以最多添加 {count} 个 Department ID。","TOTAG_LIST":"已添加的 Tag ID","EMPTY_TOTAG_DESC":"没有已添加 Tag ID。","ENTER_TOTAG_TIP":"请输入 Tag ID。","TOTAG_EXISTS":"Tag ID 已存在,请输入其他 Tag ID。","MAX_TOTAG_COUNT":"您可以添加最多 {count} 个 Tag ID。","ATUSERS_LIST":"已添加的 User ID","EMPTY_ATUSERS_DESC":"没有已添加的 User ID。","WHIZARD_NOTIFICATION.PHONE_NUMBER":"手机号","ATMOBILES_LIST":"已添加的手机号","EMPTY_ATMOBILES_DESC":"没有已添加的手机号。","SLACK":"Slack","SLACK_TITLE":"Slack","SLACK_DESC":"向 Slack 用户发送通知。","SLACK_TOKEN":"Slack 令牌","SLACK_TOKEN_DESC":"请输入 Slack 令牌。","SLACK_CHANNEL":"Slack 频道","CHANNEL_SETTINGS":"Slack 频道设置","ADDED_CHANNELS":"已添加 Slack 频道","EMPTY_CHANNEL_DESC":"没有添加 Slack 频道。","ADD_CHANNEL_TIP":"请添加 Slack 频道。","CHANNEL_EXISTS":"Slack 频道已存在,请添加其他 Slack 频道。","MAX_CHANNEL_COUNT":"您可以最多添加 {count} 个 Slack 频道。","WEBHOOK":"Webhook","WEBHOOK_TITLE":"Webhook","WEBHOOK_DESC":"向 Webhook 发送通知。","WEBHOOK_URL_DESC":"请输入 Webhook URL。","AUTHENTICATION_TYPE":"认证类型","AUTHENTICATION_TYPE_DESC":"请选择认证类型。","SKIP_TLS_VERFICATION":"跳过 TLS 验证(不安全)","BASIC_AUTH":"基础认证","NO_AUTH":"无需认证","BEARER_TOKEN":"Bearer 令牌","TOKEN":"令牌","WEBHOOK_USERNAME_EMPTY_DESC":"请输入一个用户名。","WEBHOOK_PASSWORD_EMPTY_DESC":"请输入密码。","WEBHOOK_TOKEN_EMPTY_DESC":"请输入一个令牌。","PLATFORM_INFO_DESC":"平台的信息概览,您可以查看和定制化平台信息。","HOW_TO_MODIFY_PLATFORM_INFO":"如何定制化平台信息?","PLATFORM_INFORMATION":"平台信息","PLATFORM_DESCRIPTION":"平台描述","PLATFORM_TITLE":"平台标题","PLATFORM_ADDRESS":"平台地址","PLATFORM_SETTINGS":"平台设置","ADD_SERVICE":"添加服务","ADD_ROUTE":"添加应用路由","SERVICE_ADDED_SUCCESSFULLY":"服务添加成功。","WORKLOAD_TYPE_DEPLOYMENTS":"部署","WORKLOAD_TYPE_DAEMONSETS":"守护进程集","WORKLOAD_TYPE_STATEFULSETS":"有状态副本集","TRAFFIC_MONITORING":"流量监控","TRAFFIC_MONITORING_UNAVAILABLE_DESC":"应用长时间未收到请求,请稍后重试。","TRAFFIC_ENTRY":"流量入口","NO_DATA":"暂无数据","REFRESH":"刷新","SUCCESS_RATE":"成功率","TRAFFIC_RPS":"流量(RPS)","BANDWIDTH":"带宽","HTTP_INBOUND_TRAFFIC":"HTTP 入站流量","HTTP_OUTBOUND_TRAFFIC":"HTTP 出站流量","TRAFFIC_POLICIES":"流量策略","LOAD_BALANCING":"负载均衡","LOAD_BALANCING_ALGORITHM":"负载均衡算法","LB_UNSPECIFIED":"未指定","LB_LEAST_REQUEST":"最少请求","LB_PASSTHROUGH":"透传","LB_ROUND_ROBIN":"轮询","LB_LEAST_CONN":"最少连接","LB_RANDOM":"随机","LB_ALG_DESC":"轮询:将客户端请求轮流发送给各个后端。
    最少连接:随机选择两个健康的后端,并将客户端请求发送给连接数较少的后端。
    随机:将客户端请求发送给一个随机的健康后端。","HASH_BASED_ON_HTTP_HEADER":"基于 HTTP Header 哈希","HASH_BASED_ON_HTTP_COOKIE":"基于 HTTP Cookie 哈希","HASH_BASED_ON_SOURCE_IP_ADDRESS":"基于源 IP 地址哈希","HTTP_HEADER":"HTTP Header","HTTP_COOKIE":"HTTP Cookie","CONNECTION_POOL":"连接池","CONNECTION_POOL_TIP":"为应用程序创建固定数量的连接对象,并将其存储在一个连接池中供重复使用。每次请求都从连接池中获取连接对象,并在使用后将连接对象返还到连接池。","MAXIMUM_CONNECTIONS":"最大连接数","MAXIMUM_CONNECTIONS_DESC":"目标后端 HTTP1 或 TCP 连接的最大数量。","MAXIMUM_REQUESTS_PER_CONNECTION":"每个连接最大请求数","MAXIMUM_REQUESTS_PER_CONNECTION_DESC":"后端每个连接的最大请求数量。","TRAFFIC_MONITORING_MAXIMUM_RETRIES":"最大重试次数","TRAFFIC_MONITORING_MAXIMUM_RETRIES_DESC":"请求的最大重试次数。","CONNECTION_TIMEOUT":"连接超时","CONNECTION_TIMEOUT_DESC":"TCP 连接超时时间。","MAXIMUM_REQUESTS":"最大请求数量","MAXIMUM_PENDING_REQUESTS":"最大等待请求数量","CIRCUIT_BREAKER":"熔断器","CIRCUIT_BREAKER_DESC":"如果服务无法访问并且符合指定的条件, 熔断器会将服务标记为不可用,并在指定时间范围内直接向返回客户端错误响应。","CONSECUTIVE_FIVEXX_ERRORS":"连续 5XX 错误数量","CONSECUTIVE_FIVEXX_ERRORS_DESC":"从连接池中排除后端所需的连续 5XX 错误数量。","INSPECTION_INTERVAL_S":"检查间隔(秒)","INSPECTION_INTERVAL_S_DESC":"两次后端检查的时间间隔。","MAXIUM_EJECTION_RATIO":"最大排除比例(%)","MAXIUM_EJECTION_RATIO_DESC":"允许排除后端数量的最大百分比。","BASE_EJECTION_TIME_S":"排除时间(秒)","BASE_EJECTION_TIME_S_DESC":"最大后端排除时间。","UPDATED_AT_VALUE_SCAP":"更新于 {value}","METHOD":"方式","TRAFFIC_MANAGEMENT_UNAVAILABLE":"流量管理不可用","APPLICATION_GOVERNANCE_NOT_ENABLED":"请启用应用治理。","CREATE_GRAYSCALE_RELEASE_TASK":"创建灰度发布任务","GRAYSCALE_RELEASE_DESC":"灰度发布是在生产环境进行应用迭代的一种重要方式。您可以选择不同的发布方法,在应用升级至新版本的过程中实现平滑过渡。","NO_GRAYSCALE_RELEASE_TASK_FOUND":"未发现灰度发布任务","NO_GRAYSCALE_RELEASE_TASK_FOUND_DESC":"请创建一个灰度发布任务。","TYPE_SERVICE_DEPLOYMENT":"类型:无状态服务(部署)","TYPE_SERVICE_STATEFULSET":"类型:有状态服务(有状态副本集)","TRACING":"链路追踪","TRACING_NO_DATA_DESC":"请修改搜索条件后重试。","NUM_SPAN_SI":"{num} 跨度","NUM_SPAN_PL":"{num} 跨度","NUM_ERROR_SI":"{num} 错误","NUM_ERROR_PL":"{num} 错误","LAST_NUM_RECORDS":"最近 {num} 条记录","PROCESS":"进程","SERVICES_AND_OPERATIONS":"服务和操作","TRACING_UNAVAILABLE":"链路追踪不可用","CALLED_SERVICES":"调用服务","CALLED_DEPTH":"调用深度","COMPOSED_APP_PL":"自制应用","NO_COMPOSED_APP_FOUND":"未发现自制应用","COMPOSED_APP_EMPTY_DESC":"请创建一个自制应用。","STATEFUL_SERVICE":"有状态服务","STATELESS_SERVICE":"无状态服务","CREATE_COMPOSED_APP":"创建自制应用","SAVE_FORM_TIP":"请先保存当前设置。","YAML_FILE":"YAML 文件","CREATE_BY_YAML_DESC":"在 YAML 文件中自定义设置。","APPLICATION_GOVERNANCE":"应用治理","VERSION_DESC":"版本只能包含小写字母和数字,最长 16 个字符。","APPLICATION_GOVERNANCE_DESC":"启用应用治理后可以对应用使用流量监控、灰度发布和链路追踪功能。","APP_BASIC_INFORMATION_DESC":"设置应用的基本信息。","APP_SELECT_SERVICE_TYPE_DESC":"创建一个无状态或有状态服务。","STATEFUL_SERVICE_DESC":"创建一个服务和一个有状态副本集。","STATELESS_SERVICE_DESC":"创建一个服务和一个部署。","APPLICATION_SERVICE_DESC":"根据需求为应用添加有状态服务或无状态服务。","APP_CREATE_SERVICE_DESC":"为应用创建一个服务。","ROUTE_SETTINGS":"路由设置","ROUTING_RULES":"路由规则","ROUTE_SETTINGS_DESC":"为应用设置路由规则。","ADD_ROUTE_SUCCESS":"应用路由添加成功。","CURRENT_APP_SETTINGS_READONLY":"当前应用设置(只读)","TARGET_APP_SETTINGS":"目标应用设置","TARGET_APP_VERSION":"目标应用版本","CURRENT_APP_VERSION":"当前应用版本","EDIT_APP_SETTINGS":"编辑应用设置","UPDATED_TIME":"更新于 {value}","APP_TEMPLATE":"应用模板","NO_APP_DESC_FOUND":"未发现应用描述信息。","TEMPLATE_BASED_APP_PL":"基于模板的应用","APPLICATIONS_DESC":"应用为用户提供完整的业务功能,由一个或多个特定功能的组件组成。","APP_PL":"应用","APP_TYPES_Q":"KubeSphere 支持哪些应用类型?","APP_TYPES_A":"KubeSphere 支持基于模板的应用和自制应用。基于模板的应用创建自 KubeSphere 应用商店或应用模板,自制应用由用户自定义。","HOW_TO_USE_APP_GOVERN_Q":"如何使用应用治理功能?","HOW_TO_USE_APP_GOVERN_A":"您可以在创建自制应用时启用应用治理功能。","DEPLOY_SAMPLE_APP":"部署示例应用","NO_TEMPLATE_BASED_APP_FOUND":"未发现基于模板的应用","TEMPLATE_BASED_APP_EMPTY_DESC":"请从 KubeSphere 应用商店或应用模板创建应用。","APP":"应用","VERSION":"版本","CREATING":"创建中","UPGRADING":"已创建","DELETING":"删除中","CREATE_APP":"创建应用","CREATE_APP_DESC":"从 KubeSphere 应用商店或应用模板创建应用。","FROM_APP_STORE":"从应用商店","FROM_APP_TEMPLATE":"从应用模板","FROM_APP_STORE_DESC":"从 KubeSphere 应用商店创建应用。","SELECT_APP_REPOSITORY":"选择应用仓库","CURRENT_WORKSPACE":"当前企业空间","FROM_APP_TEMPLATE_DESC":"从企业空间或远程应用仓库中的应用模板创建应用。","APP_TEMPLATES_MODAL_DESC":"从下拉列表中选择当前企业空间或远程应用仓库以查看可用的应用模板。","APP_LOW":"应用","BATCH_APP_DEPLOY":"批量应用部署","BATCH_APP_DEPLOY_PL":"批量应用部署","BATCH_APP_DEPLOY_DESC":"基于边缘应用模板在大量的边缘节点部署相同的边缘应用。","BATCH_APP_DEPLOY_EMPTY_DESC":"请创建批量应用部署","EDGE_APP_TEMPLATES_MODAL_DESC":"选择当前企业空间的可用边缘应用模板。","EDGE_APPLICATION":"边缘应用","EDGE_APPLICATION_LOW":"边缘应用","SELECT_EDGE_NODE":"选择边缘节点","SELECT_EDGE_NODE_DESC":"将容器副本分配给特定的边缘节点。","ASIN_EDGE_NODE_AUTO":"自动分配边缘节点","ADD_EDGE_NODE_DESC":"根据需要添加边缘节点。","NODE_SELECTORS_EMPTY_DESC":"请添加边缘节点。","DEL_ALL_WORKLOAD_IN_EDGE_APP":"删除边缘应用中的所有工作负载","CRONJOBS":"定时任务","CRONJOB_DESC":"定时任务(CronJob)管理基于时间的任务(Job),可用于运行周期性任务或重复性任务。","CRONJOB_PAUSED":"已暂停","CRONJOB_RUNNING":"运行中","CRONJOB_FAILED":"失败","SCHEDULE":"定时计划","ENTER_SCHEDULE_TIP":"请选择定时计划。","CRONJOB_CRON_DESC":"为定时任务设置定时计划。KubeSphere 默认使用 UTC 时间, 您需要根据时区调整定时计划。","MAXIMUM_DELAY":"最大启动延后时间(s)","SUCCESSFUL_JOBS_RETAINED":"成功任务保留数量","FAILED_JOBS_RETAINED":"失败任务保留数量","CONCURRENCY_POLICY":"并发策略","MAXIMUM_DELAY_DESC":"由于某种原因未能按计划启动任务时,任务启动的最大延后时间。","CONCURRENCY_POLICY_DESC":"定时任务创建的多个任务发生重叠时,系统采取的策略。","FAILED_JOBS_RETAINED_DESC":"允许保留的失败任务的个数。默认值为 1。","SUCCESSFUL_JOBS_RETAINED_DESC":"允许保留的成功任务的个数。默认值为 3。","RUN_JOBS_CONCURRENTLY":"同时运行任务","SKIP_NEW_JOB":"跳过新任务","SKIP_OLD_JOB":"跳过旧任务","STRATEGY_SETTINGS":"策略设置","MAXIMUM_RETRIES":"最大重试次数","MAXIMUM_RETRIES_DESC":"将任务标记为失败前的最大重试次数。默认值为 6。","PARALLEL_PODS_DESC":"并行运行的容器组数量。","COMPLETE_PODS_DESC":"将任务标记为完成所需成功运行的容器组数量。","MAXIMUM_DURATION_DESC":"任务的最大运行时间。任务达到最大运行时间时将被结束。","PARALLEL_PODS":"并行容器组数量","COMPLETE_PODS":"容器组完成数量","MAXIMUM_DURATION":"最大运行时间(s)","RESTART_POLICY":"重启策略","RESTART_POLICY_DESC":"选择容器组中的容器异常退出时,系统采取的策略。","CRONJOB_PL":"定时任务","CRONJOB_LOW":"定时任务","REVISION_RECORDS_DESC":"系统在工作负载创建或修改后将生成修改记录,可用于回退工作负载设置。最多可保留 10 条修改记录。","ENVIRONMENT_VARIABLE":"环境变量","CONTAINER_SETTINGS_DESC":"设置容器的镜像、名称、类型和计算资源。","PORT_SETTINGS_DESC":"设置用于访问容器的端口。","HEALTH_CHECKER_DESC":"添加探针以定时检查容器健康状态。","STARTUP_COMMAND":"启动命令","STARTUP_COMMAND_DESC":"自定义容器启动时运行的命令。默认情况下,容器启动时将运行镜像默认命令。","CONTAINER_COMMAND_DESC":"容器的启动命令。","CONTAINER_ARGUMENT_DESC":"容器启动命令的参数。如有多个参数请使用半角逗号(,)分隔。","CONTAINER_ENVIRONMENT_DESC":"为容器添加添加环境变量。","PROBE_COMMAND_DESC":"使用半角逗号(,)分隔多条命令。","IGNORE_CERT_WARN_DESC":"忽略证书验证可能会导致账户密码被泄露。","CERT_ERROR":"证书错误。","ROLL_BACK":"回退","CURRENT_REVISION_RECORD":"当前修改记录","TARGET_REVISION_EMPTY_DESC":"请选择目标修改记录。","TARGET_REVISION_RECORD":"目标修改记录","CONFIGURE_AUTOSCALING_DESC":"设置系统根据目标 CPU 和内存用量自动调整容器组副本数量。","EDIT_AUTOSCALING":"编辑自动扩缩","TARGET_CPU_USAGE_UNIT":"目标 CPU 用量(%)","AUTOSCALING":"自动扩缩","RESOURCE_NAME":"资源名称","TARGET_CPU_USAGE_DESC":"当实际 CPU 用量大于/小于目标值时,系统自动减少/增加容器组副本数量。","TARGET_MEMORY_USAGE_DESC":"当实际内存用量大于/小于目标值时,系统自动减少/增加容器组副本数量。","MINIMUM_REPLICAS_DESC":"设置允许的最小容器组副本数量,默认值为 1。","MAXIMUM_REPLICAS_DESC":"设置允许的最大容器组副本数量,默认值为 1。","TARGET_MEMORY_USAGE_UNIT":"目标内存用量(MiB)","MINIMUM_REPLICAS":"最小副本数","MAXIMUM_REPLICAS":"最大副本数","EDIT_SETTINGS":"编辑设置","FROM_CONFIGMAP":"来自配置字典","FROM_SECRET":"来自保密字典","BATCH_REFERENCE":"批量引用","BATCH_REFERENCE_DESC":"从配置字典或保密字典中引用多个键。","DESELECT_ALL":"全部取消选择","KEY_PL":"键","RULE_NOT_COMPLETE":"请设置完整规则。","REVISION_RECORDS":"修改记录","CONFIG_FILE":"配置文件","COMPARE_WITH":"与上一个记录 {version} 对比","REPLICAS_DESIRED":"期望副本数","REPLICAS_CURRENT":"当前副本数","ADJUST_REPLICAS":"调整副本数量","REPLICAS_SCALE_NOTIFY_CONTENT":"您确定将容器组副本数量调整为 {num} 吗?","REPLICAS_SCALE_NOTIFY_CONFIRM":"确定({seconds}s)","REPLICAS_SCALE_NOTIFY_CANCEL":"取消","TARGET_MEMORY_USAGE":"目标内存用量","TARGET_CPU_USAGE":"目标 CPU 用量","TARGET_CURRENT":"{target}(当前:{current})","NOT_ENABLE":"{resource}未启用","CONTAINER_LOG_NOT_ENABLED":"容器日志未启用。","BUILD_LOG":"构建日志","TASK":"任务","IN_PROGRESS":"进行中","IMAGE_BUILDING":"构建镜像中","HAS_FAILED":"已失败","VIEW_ALL_REPLICAS":"查看所有副本","SHOW_SELECTED_ONLY":"仅显示已选","MONITORING_SELECT_LIMIT_MSG":"最多可以选择 10 个资源。","MONITORING_ALERT_DESC":"默认最多显示五个容器组副本的信息。您可以点击查看所有副本以查看所有容器组副本的信息。","CURRENT_VALUE":"当前:{value}","ENVIRONMENT_VARIABLE_PL":"环境变量","EVENT_AGE":"发生时间","EVENT_AGE_DATA":"{lastTime}
    (近 {duration}发生 {count} 次)","EVENT_AGE_DATA_TWICE":"{lastTime}
    (近 {duration}发生 2 次)","SOURCE":"来源","HPA_SET_TIP":"已设置容器组水平自动扩缩策略。","WORKLOAD_EMPTY_DESC":"请创建一个工作负载。","INVALID_IMAGE":"镜像无效。","INVALID_NAME_DESC":"名称无效。名称只能包含小写字母、数字和连字符(-),必须以小写字母或数字开头和结尾,最长 63 个字符。","NO_IMAGE_FOUND":"没有找到镜像","CONTAINER_EMPTY_DESC":"请添加至少一个工作容器。","RESOURC_QUOTAS_UNSET":"资源配额未设置","INSUFFICENT_RESOURCES":"资源不足","REMAINING_QUOTAS":"剩余配额","ENVIRONMENT_INVALID_TIP":"环境变量的键只能包含字母、数字、下划线(_)、连字符(-)和句点(.),并且不能以数字开头。","ENVIRONMENT_CANNOT_BE_EMPTY":"请设置环境变量的键。","WORKLOAD_PORT_NAME_DESC":"名称只能包含小写字母、数字和连字符(-),必须以小写字母开头并以小写字母或数字结尾,最长 15 个字符。","MAX_EXTRA_PODS_DESC":"更新过程中允许的多余容器组副本的最大数量或百分比。","MAX_EXTRA_PODS":"最大多余容器组数量","AVAILABLE":"可用","IN_USER":"使用中","ACCESS_MODE_SCAP":"访问模式","PVC_OR_TEMPLATE_EMPTY":"您已启用收集卷上日志,请添加至少一个持久卷、临时卷或持久卷声明模板并指定容器日志所在的路径。","PVC_EMPTY":"您已启用收集卷上日志,请添加至少一个持久卷、临时卷或持久卷声明模板并指定容器日志所在的路径。","PROJECT_COLLECT_SAVED_DISABLED_DESC":"如需启用此功能,您需要在项目设置中启用收集卷上日志。","COLLECT_LOGS_ON_VOLUMES_DESC":"允许系统收集保存在卷上的容器日志。如需使用此功能,请为容器挂载读写模式的卷并设置容器将日志导出到卷。","CONTAINER_LOG_PATH":"容器日志路径","CONTAINER_LOG_PATH_TIP":"容器日志的路径,相对于卷的挂载路径,支持通配符,可使用半角逗号(,)分隔多个路径。

    示例
    当卷挂载路径为 /data 时,log/*.log 表示日志文件为 /data/log 目录下所有 .log 格式的文件。","RECREATE_CONFIRM_DESC":"您确定重新创建{type} {resource} 吗?容器组副本将会根据更新策略更新,同时相关业务将会中断。","NO_WORKLOAD_RELATED_RESOURCE_DESC":"当前工作负载没有关联的资源。","SELECT_ALL":"选择全部","DELETE_WORKLOAD_DESC_SI":"您即将删除工作负载 {resource}。
    请确认是否同时删除以下与工作负载关联的资源。","DELETE_WORKLOAD_DESC_PL":"您即将删除工作负载 {resource}。
    请确认是否同时删除以下与工作负载关联的资源。","DELETE_WORKLOAD":"删除工作负载","DELETE_MULTIPLE_WORKLOADS":"批量删除工作负载","DELETE_APP_RESOURCE_TIP":"资源由应用 {app} 管理,删除后可能影响应用的正常使用。请输入{type}名称 {resource} 以确认您了解此操作的风险。","STOP_APP_RESOURCE_TIP":"资源由应用 {app} 管理,停止后可能影响应用的正常使用。请输入{type}名称 {resource} 以确认您了解此操作的风险。","MORE":"更多操作","VIEW_YAML":"查看 YAML","JOB_PL":"任务","JOB_DESC":"任务(Job)用于运行短暂的一次性任务。任务会创建一个或多个容器组,并保证指定数量的容器组成功结束。","JOB_EMPTY_DESC":"请创建一个任务。","JOB_COMPLETED":"已完成","JOB_FAILED":"失败","JOB_RUNNING":"运行中","LAST_RUN_TIME":"上次运行时间","RESTART_POLICY_NEVER_DESC":"重新创建容器组","RESTART_POLICY_ONFAILURE_DESC":"重启容器","RERUN":"重新运行","JOB":"任务","JOB_LOW":"任务","QOS_CLASS":"QoS 类别","NODE_NAME":"节点名称","POD_IP_ADDRESS":"容器组 IP 地址","JOB_UNFINISHED":"未完成","TERMINATED":"已终止","SCHEDULED_TO_NODE":"调度至 {value}","SCHEDULING_NOT_SUCCESSFUL":"调度未成功","SCHEDULING_INFORMATION":"调度信息","SCHEDULING_RESULT":"调度结果","POD_SCHEDULING_METHOD":"容器组调度方式","POD_ASSIGNED_DESC":"系统根据容器组的资源预留值将容器组调度到具有足够可用资源的节点上。","STATUS_INFORMATION":"状态信息","WORKLOAD_CONDITION_AVAILABLE":"可用","WORKLOAD_CONDITION_PROGRESSING":"进行中","NOT_SUCCESSFUL":"未成功","CURRENT_STATUS":"当前状态","POD_CONDITION_INITIALIZED":"初始化完成","POD_CONDITION_INITIALIZED_DESC":"启动所有初始化容器。","POD_CONDITION_READY":"容器组就绪","POD_CONDITION_READY_DESC":"开始运行并允许访问容器组。","POD_CONDITION_CONTAINERSREADY":"所有容器就绪","POD_CONDITION_CONTAINERSREADY_DESC":"启动容器组中的所有容器。","POD_CONDITION_PODSCHEDULED":"容器组调度完成","POD_CONDITION_PODSCHEDULED_DESC":"将容器组调度到集群中的一个节点。","POD_DESC":"容器组(Pod)是 Kubernetes 应用程序的基本执行单元,是您创建或部署的 Kubernetes 对象模型中最小和最简单的单元。","POD_EMPTY_DESC":"请创建一个容器组。","DOMAIN_NAME_VALUE":"域名:{value}","PATH_VALUE":"路径:{value}","RULES":"规则","ROUTE_PATH_VALUE":"路径:{value}","ROUTE_SERVICE_VALUE":"服务:{value}","ROUTE_PORT_VALUE":"端口:{value}","SERVICE_COLON":"服务:","ACCESS_SERVICE":"访问服务","UNABLE_TO_ACCESS":"无法访问服务","UNABLE_TO_ACCESS_TIP":"请确保已在您的 DNS 服务器或客户机 hosts 文件中配置域名解析规则。","CERTIFICATE_VALUE":"证书:{value}","PATH_EXIST":"PATH 重复,请重新输入。","ENDPOINT":"端点","SESSION_AFFINITY":"会话亲和性","EDIT_EXTERNAL_ACCESS":"编辑外部访问","EDIT_MONITORING_EXPORTER":"编辑监控导出器","EDIT_SERVICE":"编辑服务","ACCESS_NONE_TIP":"不提供外网访问,只能在集群内访问服务。","EXTERNAL_SERVICE":"外部服务","COLLECTION_INTERVAL_MIN":"收集间隔(分钟)","COLLECTION_INTERVAL_MIN_DESC":"两次指标收集操作之间的间隔时间,单位为分钟。默认值为1。","COLLECTION_TIMEOUT_DESC":"每次指标收集操作的超时间隔,单位为秒。默认值为 10。","SELECT_AUTHENTICATION_METHOD":"选择认证方式","SELECT_AUTHENTICATION_METHOD_DESC":"选择在指标收集过程中使用的认证方式。","NO_AUTHENTICATION_TCAP":"无需认证","NO_AUTHENTICATION_TIP":"在指标收集过程中不使用认证。","CREATE_A_NEW_SECRET":"创建保密字典","REFRESH_SECRETS":"刷新保密字典。","CERTIFICATE_AUTHORITY":"发证机构","SERVER_NAME":"服务器名称","TLS_SETTINGS_TCAP":"TLS 设置","BEARER_TOKEN_TCAP":"Bearer 令牌","BASIC_AUTHENTICATION_TCAP":"基础认证","EXTERNAL_IP_ADDRESS":"外部 IP 地址","MONITORING_EXPORTER":"监控导出器","MONITORING_EXPORTER_VALUE":"监控导出器:{value}","PORT_PL":"端口","SERVICE_NODE_PORT_DESC":"如果您的客户机与集群在同一网段,您可以使用<节点 IP 地址>:<节点端口>访问服务。","IMAGE_BUILDING_FAILED":"镜像创建失败","IMAGE_BUILDING_SUCCESSFUL":"镜像创建成功","BUILDING_IMAGE":"创建镜像中","SERVICE_MONITORING_EXPORTER":"服务监控 Exporter","EXPORTER_SERVICE_PORTS":"Exporter 服务端口","SCRAPE_INTERVAL_MIN":"采集间隔(分钟)","SERVICE_TYPES_Q":"KubeSphere 支持哪些服务类型?","SERVICE_TYPES_A":"KubeSphere 支持无状态服务和有状态服务。无状态服务中的多个容器组副本共享一个卷,有状态服务中的每个容器组副本都拥有独立的卷。","SCENARIOS_FOR_SERVICES_Q":"无状态服务和有状态服务分别适用于哪些场景?","SCENARIOS_FOR_SERVICES_A":"无状态服务适用于不需要数据持久化的场景,例如 Nginx 和 Tomcat。有状态服务适用于需要数据持久化的场景,例如 MySQL 数据库、Kafka 和 ZooKeeper。","SERVICE_TYPE":"服务类型","SERVICE_LIST":"服务列表","SERVICE_TYPE_STATEFULSERVICE":"有状态服务","SERVICE_TYPE_STATELESSSERVICE":"无状态服务","SERVICE_TYPE_EXTERNALSERVICE":"外部服务","HEADLESS":"Headless","EXTERNALNAME":"ExternalName","CREATE_SERVICE_DESC":"选择创建服务的方式。","SELECT_SERVICE_TYPE_DESC":"创建一个无状态或有状态服务,或将一个服务映射到外部服务。","SERVICE_FROM_CODE":"通过代码创建服务","SERVICE_FROM_ARTIFACT":"通过制品创建服务","SERVICE_FROM_CODE_DESC":"将现有的代码构建成镜像并部署。","SERVICE_FROM_ARTIFACT_DESC":"将现有的制品构建成镜像并部署。","CUSTOMIZE_SERVICE":"自定义服务","CUSTOMIZE_SERVICE_DESC":"通过指定工作负载或编辑 YAML 配置文件来创建服务。","PORT_INPUT_DESC":"端口名称已存在,请输入其他名称。","PORT_NAME_DESC":"端口名称只能包含小写字母、数字和连字符(-),必须以小写字母或数字开头和结尾,最长 63 个字符。","CREATE_EXTERNAL_SERVICE_DESC":"创建一个服务并将其映射到一个外部服务。","CREATE_EXTERNAL_SERVICE":"创建外部服务","EXTERNAL_SERVICE_ADDRESS_EMPTY_DESC":"请输入外部服务的域名。","EXTERNAL_SERVICE_ADDRESS":"外部服务地址","EXTERNAL_SERVICE_ADDRESS_DESC":"输入外部服务的域名。","JAVA":"Java","NODEJS":"Node.js","PYTHON":"Python","LANGUAGE_TYPE_VALUE":"语言类型:{value}","CONTAINER_SETTINGS":"容器设置","ARTIFACT_TYPE_VALUE":"制品类型:{value}","BINARY":"二进制","SPECIFY_WORKLOAD_TO_CREATE_SERVICE":"指定工作负载创建服务","EDIT_YAML_TO_CREATE_SERVICE":"编辑 YAML 创建服务","SPECIFY_WORKLOAD_DESC":"使用一个或多个现有的工作负载创建来创建服务。","NO_RELATED_RESOURCE_FOUND":"没有关联的资源","NO_SERVICE_RELATED_RESOURCE_DESC":"当前服务没有关联的资源。","DELETE_SERVICE_DESC":"您即将删除服务 {resource}。请确认是否同时删除关联资源?","DELETE_SERVICE_DESC_PL":"您即将删除服务 {resource}。
    请确认是否同时删除以下与服务关联的资源?","DELETE_SERVICE_DESC_SI":"您即将删除服务 {resource}。
    请确认是否同时删除以下与服务关联的资源?","DELETE_SERVICE":"删除服务","DELETE_MULTIPLE_SERVICES":"批量删除服务","SERVICE_TOPOLOGY":"服务拓扑","AUTO_REFRESH":"自动刷新","POD_COUNT_VALUE":"容器组数量:{value}","SELECTOR":"选择器","RECREATE":"重新创建","RECREATE_SUCCESS_DESC":"重新创建成功。","STATEFULSETS_LOW":"有状态副本集","STATEFULSETS_PL":"有状态副本集","PARTITION_ORDINAL_EMPTY":"请设置容器组副本分组序号。","CONFIGMAP_PL":"配置字典","CONFIGMAPS":"配置字典","CONFIGMAP_LOW":"配置字典","SECRET_LOW":"保密字典","SERVICE_ACCOUNT_PROJECT_ROLE_DESC":"选择服务账户在当前项目中的角色。","SERVICE_ACCOUNT":"服务账户","SECRET_VALUE":"保密字典:{value}","SERVICEACCOUNT_KUBECONFIG_DESC":"下载 kubeconfig.yaml 文件供其他应用使用,从而为其他应用访问提供可访问当前项目的账户。如果使用 kubeconfig.yaml 文件的应用部署在当前集群外,您需要将 clusters:cluster:server 参数的值修改为对外暴露的 Kubernetes API 服务器地址。","SERVICE_ACCOUNT_PL":"服务账户","SERVICE_ACCOUNT_DESC":"服务账户(Service Account)为容器组中运行的进程提供了一个标识,用于访问 API Server。","SERVICE_ACCOUNT_EMPTY_DESC":"请创建一个服务账户。","INVALID_YAML_FILE_FORMAT":"YAML 文件格式错误。","PROJECT_ROLE_SI":"项目角色","SELECT_PROJECT_ROLE_DESC":"选择一个项目角色以指定权限。","CHANGE_ROLE":"修改角色","SERVICE_ACCOUNT_LOW":"服务账户","GRAYSCALE_RELEASE":"灰度发布","BLUE_GREEN_DEPLOYMENT":"蓝绿部署","CANARY_RELEASE":"金丝雀发布","TRAFFIC_MIRRORING":"流量镜像","BLUE_GREEN_DEPLOYMENT_DESC":"将业务流量发送给新版本进行测试。如果新版本运行不正常,可立即将业务流量切换给旧版本。","CANARY_RELEASE_DESC":"将业务流量同时分配给新版本和旧版本,在测试新版本的同时保证业务连续性。","TRAFFIC_MIRRORING_DESC":"将业务流量的副本发送给新版本进行测试,而不实际暴露新版本。","CREATE_BLUE_GREEN_DEPLOYMENT_TASK":"创建蓝绿部署任务","DESELECT":"取消选择","SELECT":"选择","SELECT_GRAY_COMPONENT_TIP":"请选择一个服务。","REPLICA":"副本","REPLICA_PL":"副本","ADD_REPLICA":"添加副本","GRAYSCALE_REPLICAS_DESC":"新版本容器组副本数量","SELECT_VERSION":"选择版本","BLUE_GREEN_STRATEGY_DESC":"选择一个版本接管所有业务流量。","TAKE_OFFLINE":"下线","TAKE_OFFLINE_SUCCESS":"下线成功","TAKE_OVER":"接管","GRAYSCALE_VERSION":"版本:{version}","CREATE_CANARY_RELEASE_TASK":"创建金丝雀发布任务","UNFINISHED_GRAY_TASK":"灰度发布进行中","NO_WORKLOAD_FOUND_TIP":"未发现工作负载","NO_SERVICE_MESH_TIP":"该应用未启用应用治理,无法使用灰度发布功能。","GRAY_APP_NAME":"应用:{name}","UNSUPPORTED_WORKLOAD_TYPE":"不支持该工作负载类型","VERSION_EXISTS":"版本号已经存在,请输入其他版本号。","NEW_VERSION_NUMBER_EXIST_DESC":"工作负载 {name} 已经存在,请输入其他版本号。","INIT_CONTAINER":"初始化容器","INIT_CONTAINER_VALUE":"初始化容器:{value}","CONTAINER_VALUE":"容器:{value}","GRAYSCALE_IMAGE":"镜像:{image}","NEW_VERSION_NUMBER":"新版本号","NEW_VERSION_NUMBER_EMPTY_DESC":"请输入新版本号。","NEW_VERSION_SETTINGS":"新版本设置","NEW_VERSION_NUMBER_DESC":"新版本号只能包含小写字母和数字, 最长 16 个字符。","NEW_VERSION_NUMBER_INVALID_DESC":"新版本号无效。新版本号只能包含小写字母和数字, 最长 16 个字符。","KEY_EQ_VALUE":"键=值","HEADER":"Header","CLIENT_OS":"客户端操作系统","COOKIE":"Cookie","SPECIFY_REQUEST_PARAMETERS_DESC":"满足以下条件的请求将被发送给新版本。","POLICY_REQUEST_CONTENT_TIP":"指定请求参数功能仅支持 HTTP、HTTP2 和 gRPC 请求。","SPECIFY_REQUEST_PARAMETERS":"指定请求参数","REQUEST_PARAMETERS":"请求参数","EXACT_MATCH":"完全匹配","PREFIX_MATCH":"前缀匹配","REGEX_MATCH":"正则匹配","CANARY_BY_TRAFFIC_DESC":"{ratio}% 前往服务 {component} 的流量将被发送给新版本 {newVersion}。","SPECIFY_TRAFFIC_DISTRIBUTION":"指定流量分配","TRAFFIC":"流量","TRAFFIC_DISTRIBUTION":"流量分配","CREATE_TRAFFIC_MIRRORING_TASK":"创建流量镜像任务","PREREQUEST_FOR_USE_GRAYRELEASE_Q":"使用灰度发布功能有哪些前提条件?","PREREQUEST_FOR_USE_GRAYRELEASE_A":"使用灰度发布功能前,您需要创建自制应用并且为自制应用启用应用治理功能。","RELEASE_TASKS":"发布任务","TCP_INBOUND_TRAFFIC":"TCP 入站流量","TCP_OUTBOUND_TRAFFIC":"TCP 出站流量","NO_DATA_SCAP":"未发现数据","REPLICA_COUNT_LOW":"副本数量","MIRROR_POLICY_DESC":"流量镜像将生产环境的流量复制到灰度版本中,在新版本上线到真实环境之前使用实时用户流量对它进行测试。
    因此,流量镜像可以降低直接在生产环境进行变更所带来的风险。","BLUE_GREEN_DEPLOYMENT_LOW":"蓝绿部署","BLUE_GREEN_TRAFFIC_DISTRI_DESC":"新版本或旧版本接收全部流量。","TRAFFIC_LOW":"流量","VERSION_TRAFFIC_PERCENT":"{version} 流量 {percent}%","OFFLINE":"下线","OFFLINE_TIP":"没有服务流量被发送到此版本。您可以上线此版本使其接管所有流量。","CANARY_RELEASE_LOW":"金丝雀发布","ADJUST_TRAFFIC_DISTRIBUTION_DESC":"您确定将 {ratioNew}% 的流量发送给新版本 {newVersion} 以及 {ratioOld}% 的流量发送给旧版本 {oldVersion} 吗?","ALLOCATE_TRAFFIC_DESC":"拖动滑块设置发送给新版本的流量比例和发送给旧版本的流量比例。","COOKIE_EXACT_MATCH":"Cookie(完全匹配)","COOKIE_REGEX_MATCH":"Cookie(正则匹配)","HEADER_EXACT_MATCH":"Header(完全匹配)","HEADER_REGEX_MATCH":"Header(正则匹配)","URL_PREFIX_MATCH":"URL(前缀匹配)","URL_EXACT_MATCH":"URL(正则匹配)","OS":"操作系统","SERVICE_VERSION_RECEIVE_ALL_TRAFFIC":"版本 {version} 已接管所有流量。","RESTORE":"恢复","SUCCESSFUL_REQUEST_RATE":"请求成功率","TRAFFIC_IN_LAST_FIVE_MINUTES":"最近五分钟的流量。","DELETE_GRAYSCALE_RELEASE_TASK_DESC":"删除灰度发布任务前,请选择一个版本接管所有流量。","GRAY_COMPONENT_DESC":"测试中的新版本和旧版本的相关信息。","TRAFFIC_MIRRORING_LOW":"流量镜像","MIRRORED_TRAFFIC":"镜像流量","MIRRORED_TRAFFIC_TIP":"流量镜像并不实际暴露新版本。","RELEASE_MODE_PL":"发布模式","RELEASE_MODE":"发布模式","NEW_VERSION_TAKEOVER_DESC":"新版本 {newVersion} 正在接收所有流量。如果您删除当前灰度发布任务,旧版本 {oldVersion} 也将被删除。","OLD_VERSION_TAKEOVER_DESC":"旧版本 {oldVersion} 已接管所有流量。如果您删除当前灰度发布任务,新版本 {newVersion} 也将被删除。","GRAYSCALE_REPLICA_SI":"副本数量:{count}","GRAYSCALE_REPLICA_PL":"副本数量:{count}","TRAFFIC_MIRRORING_TRAFFIC_DISTRI_DESC":"将流量的副本发送给新版本进行测试。","EDIT_GRAYSCALE_RELEASE_TASK":"编辑灰度发布任务","ADJUST_TRAFFIC_DISTRIBUTION":"调整流量分配","COPIED_SUCCESSFUL":"复制成功","BUILDER_IMAGE":"构建器镜像","PULL_POLICY":"拉取策略","REMOTE_TRIGGER":"远程触发器","S2I_UPDATE_WORKLOAD":"镜像构建成功后更新工作负载","S2I_UPDATA_WORKLOAD_DESC":"镜像重新构建成功后,使用该镜像的的工作负载将被更新。","IMAGE_BUILDER":"镜像构建器","IMAGE_BUILDER_LOW":"镜像构建器","JOB_RECORDS":"任务记录","LAST_BUILD_ENVIRONMENT":"最后构建环境","BUILDER_IMAGE_SCAP":"构建器镜像","FILE_SIZE":"文件大小:{size}","DOWNLOAD_ARTIFACT":"下载制品","ARTIFACT_FILE":"制品文件","LOG_MODULE_NOT_INSTALLED":"日志模块未安装。","LOADING_DOTS":"加载中...","IMAGE_NAME_SCAP":"镜像名称","IMAGE_SIZE_SCAP":"镜像大小","IMAGE_NAME_BUILDING":"镜像:{name}/构建中","IMAGE_NAME_FAILED":"镜像:{name}/失败","IMAGE_NAME_SUCCESSFUL":"镜像:{name}/成功","LAST_MESSAGE_SCAP":"最后消息","START_TIME_SCAP":"开始时间","SOURCE_URL":"源 URL","NEW_TAG":"新标签","NEW_TAG_DESC":"输入新镜像的标签","IMAGE_ARTIFACTS":"镜像制品","RELEASE_TIME_SCAP":"发布时间","PULL_COMMAND_SCAP":"拉取命令","IMAGE_BUILDER_PL":"镜像构建器","IMAGE_BUILDER_DESC":"镜像构建器(Image Builder)是将代码或者制品制作成容器镜像的工具。您可以通过简单的设置将制品或代码直接制作成容器镜像。","IMAGE_BUILDER_EMPTY_DESC":"请创建一个镜像构建器。","NOT_RUNNING_YET":"未运行","BUILDING":"构建中","S2I":"源码构建镜像","B2I":"制品构建镜像","BUILD_IMAGE_FOR_SERVICE":"为 {service} 服务构建镜像。","BUILD_MODE":"构建模式","CONTAINERD_RUNTIME_NOT_SUPPORTED":"容器运行时不支持此功能。","S2I_DESC":"选择代码的开发语言。","IMAGE_FROM_S2I":"通过代码构建镜像","IMAGE_FROM_B2I":"通过制品构建镜像","B2I_DESC":"选择制品的文件类型。","EMPTY_IMAGE_TYPE_DESC":"请选择语言或制品类型。","CODE_REPOSITORY_URL":"代码仓库 URL","CODE_REPOSITORY_BRANCH":"代码仓库分支","CODE_REPOSITORY_KEY":"代码仓库密钥","CODE_REPOSITORY_URL_DESC":"输入代码仓库的地址。目前仅支持 Git 仓库。","CODE_REPOSITORY_KEY_DESC":"如果使用私有代码仓库,请选择包含代码仓库密钥的保密字典。","IMAGE_NAME":"镜像名称","IMAGE_TAG":"镜像标签","TARGET_IMAGE_REPOSITORY":"目标镜像服务","S2I_IMAGE_NAME_DESC":"名称只能包含小写字母、数字、连字符(-)、句点(.)、斜钱(/)和冒号(:),并以小写字母或数字开头和结尾。","S2I_TARGET_IMAGE_REPOSITORY_DESC":"选择一个镜像服务用于存放即将创建的镜像。如果没有可用的镜像服务,您需要先创建镜像服务保密字典。","TRIGGER_TOKEN":"触发令牌","INVALID_TRIGGER_TOKEN_DESC":"令牌无效。令牌只能包含大写字母、小写字母和数字。","TRIGGER_TOKEN_DESC":"设置客户端通过 Webhook 触发 KubeSphere 镜像构建时所使用的认证令牌。令牌只能包含大写字母、小写字母和数字。","CODE_RELATIVE_PATH":"代码相对路径","CODE_RELATIVE_PATH_DESC":"设置代码在代码仓库中的相对路径。默认值为 /。","S2I_ENVIRONMENT_DESC":"添加环境变量以控制镜像运行时的行为。","UPLOAD_ARTIFACT_FILE":"上传制品文件","UPLOAD_PERCENT":"已上传:{percent}%","UPLOAD_FULLY":"已上传:100%","UPLOAD_FAILED":"上传失败。","ARTIFACT_FILE_EMPTY_DESC":"请上传一个制品文件。","B2I_DEFAULT_DESC":"上传一个制品文件。","JAR_DESC":"上传一个 JAR 格式的制品文件。","WAR_DESC":"上传一个 WAR 格式的制品文件。","BUILD_ENVIRONMENT":"构建环境","CODE_REPOSITORY_KEY_NOT_REQUIRED":"当前代码仓库不需要密钥。","FILE_SIZE_VALUE":"文件大小:{value}","FILE_UPLOADED_TIP":"上传文件成功。","WRONG_FILE_EXTENSION_NAME":"选择的文件类型不匹配,请选择 {type} 类型。","IMAGE_NAME_EMPTY_DESC":"请输入镜像名称。","IMAGE_TAG_EMPTY_DESC":"请输入镜像标签。","TARGET_IMAGE_REPOSITORY_EMPTY_DESC":"请设置目标镜像服务。","REQUESTS_FOR_PUSH_AN_ALARM_Q":"如何在告警策略触发后接收告警?","REQUESTS_FOR_PUSH_AN_ALARM_A":"平台管理员需要选择告警通知的方式并配置与该方式对应的服务器。","HOW_TO_SUPRESS_AN_ALARM_Q":"如何抑制告警?","HOW_TO_SUPRESS_AN_ALARM_A":"您可以对每条告警策略进行多级别的设置,每个级别对应不同的告警周期。","SELECT_WORKLOAD_TIP":"请选择至少一个工作负载。","KUBE_NO_AVAILABLE_DATA":"未发现数据","EDIT_QUOTAS":"编辑配额","QUOTA":"配额","PROJECT_QUOTAS_NOT_SET":"项目配额未设置","PROJECT_QUOTAS_DESC":"项目配额用于指定项目中可用的 CPU 和内存资源数量和容器组、部署、服务等应用资源的最大数量。","DEFAULT_CONTAINER_QUOTAS_NOT_SET":"默认容器配额未设置","DEFAULT_CONTAINER_QUOTAS_DESC":"默认容器配额用于指定项目中创建的容器的默认 CPU 预留、CPU 上限、内存预留和内存上限。","APPLICATION_RESOURCE_COUNT":"应用资源","SELECT_RESOURCE_TIP":"请选择资源或输入资源名称","NUMBER_OF_PODS":"容器组数量","NUMBER_OF_DEPLOYMENTS":"部署数量","NUMBER_OF_STATEFULSETS":"有状态副本集数量","NUMBER_OF_DAEMONSETS":"守护进程集数量","NUMBER_OF_JOBS":"任务数量","NUMBER_OF_CRONJOBS":"定时任务数量","NUMBER_OF_VOLUMES":"持久卷声明数量","NUMBER_OF_SERVICES":"服务数量","NUMBER_OF_ROUTES":"应用路由数量","NUMBER_OF_SECRETS":"保密字典数量","NUMBER_OF_CONFIGMAPS":"配置字典数量","INSTALLED_APPS":"已安装应用","RESOURCE_STATUS":"资源状态","RESOURCE_WARNING_TIPS":"异常{tipName}:{warnNum}","PHYSICAL_RESOURCE_PL":"物理资源","CPU_USAGE_TIME":"CPU 用量({time})","MEMORY_USAGE_TIME":"内存用量({time})","TIPS":"帮助信息","HOW_TO_INVITE_USERS":"如何邀请用户到当前项目中?","HOW_TO_SET_PROJECT_GATEWAY":"如何设置项目网关?","TOP_5_FOR_RSC_USAGE":"资源用量 Top 5","TOP_5_FOR_RESOURCE_USAGE":"资源用量 Top 5","SORT_BY_WORKLOAD_CPU_USAGE":"按 CPU 用量排行","SORT_BY_WORKLOAD_MEMORY_USAGE_WO_CACHE":"按内存用量排行","SORT_BY_WORKLOAD_NET_BYTES_TRANSMITTED":"按出站流量排行","SORT_BY_WORKLOAD_NET_BYTES_RECEIVED":"按入站流量排行","PROJECT_SETTINGS":"项目设置","HOW_TO_USE_QUOTA_Q":"如何使用资源配额?","HOW_TO_USE_QUOTA_A":"资源配额是用来限制资源用量的一种机制,您可以通过编辑项目来编辑项目资源配额和默认容器配额。","WHAT_ARE_DEFAULT_CONTAINER_QUOTAS_Q":"什么是默认容器配额?","WHAT_ARE_DEFAULT_CONTAINER_QUOTAS_A":"默认容器配额用于指定项目中创建的容器的默认 CPU 预留、CPU 上限、内存预留和内存上限。","PROJECT_BASIC_INFO_DESC":"基本信息提供项目的信息概览,您可以查看项目的信息以及默认容器配额。","EDIT_PROJECT_QUOTA":"编辑项目配额","PROJECT_REMAINING_QUOTAS":"项目剩余配额","WORKSPACE_REMAINING_QUOTAS":"企业空间剩余配额","GPU_TYPE_SCAP":"GPU 类型","GPU_LIMIT_SCAP":"GPU 上限","REQUEST_EXCEED_WORKSPACE":"资源预留和资源上限均不能超过企业空间资源上限。","REQUEST_EXCEED_LIMIT":"资源预留不能超过资源上限。","REQUEST_EXCEED_AVAILABLE_QUOTA":"资源不足。","DELETE_PROJECT_TIP":"请输入项目名称 {resource} 以确认您了解此操作的风险。","MANAGE":"管理","PROJECT_INFO":"项目信息","EDIT_PROJECT_QUOTAS":"编辑项目配额","PROJECT_ROLE_SCAP":"项目角色","PROJECT_ROLE_SCAP_PL":"项目角色","PROJECT_MEMBER_SCAP":"项目成员","PROJECT_MEMBER_SCAP_PL":"项目成员","DEFAULT_CONTAINER_QUOTA_PL":"默认容器配额","EDIT_DEFAULT_CONTAINER_QUOTAS":"编辑默认容器配额","LIMITS_CPU":"CPU 上限","LIMITS_MEMORY":"内存上限","REQUESTS_CPU":"CPU 预留","REQUESTS_MEMORY":"内存预留","PROJECT_QUOTA_PL":"项目配额","RESOURCE_TYPE_SCAP":"资源类型","JOBS":"任务","VOLUMES":"卷","SERVICES":"服务","ROUTES":"应用路由","SECRETS":"保密字典","PROJECT_GATEWAY_DESC":"对项目中的外网访问网关以及服务治理等配置进行设置和管理。","PROJECT_GATEWAY":"项目网关","PROJECT_GATEWAY_EMPTY_DESC":"请创建项目网关。","ENABLE_GATEWAY_DESC":"在创建应用路由之前,需要先启用外网访问入口,即网关。这一步是创建对应的应用路由控制器,负责将请求转发到对应的后端服务。","LOAD_BALANCER_PROVIDER":"负载均衡器提供商","GATEWAY_UPDATING_TIP":"网关升级中,请稍后再试。","CLUSTER_GATEWAY_GUIDE_DESC":"如果同时存在集群网关和项目网关,项目网关禁用后无法再次启用。建议仅使用集群网关或仅使用项目网关。","LOG_COLLECTION":"日志收集","DISK_LOG_COLLECTION_DESC":"日志收集功能允许系统收集保存在卷上的容器日志,并将日志发送到标准输出。","COLLECT_LOGS_ON_VOLUMES_Q":"如何收集卷上的日志?","COLLECT_LOGS_ON_VOLUMES_A":"如需收集卷上的日志,请为容器挂载读写模式的卷并设置容器将日志导出到卷。","COLLECT_LOGS_ON_VOLUMES":"收集卷上日志","DISABLE_LOG_COLLECTION":"停用日志收集","DISABLE_LOG_COLLECTION_TIP":"您确定停用日志收集吗?您需要重启容器组副本才能使修改生效。","LOG_COLLECTION_ENABLED_DESC":"启用或禁用此功能后,您需要重启容器组副本才能使修改生效。","DISABLED":"已禁用","ENABLED":"已启用","NETWORK_ISOLATION_DESC":"通过配置网络隔离控制同一企业空间容器组之间的流量以及来自外部的流量,从而实现隔离应用并增强应用的安全性。","NETWORK_ISOLATION_Q":"如何更好地使用网络隔离?","NETWORK_ISOLATION_Q1":"CNI 插件实现网络隔离需满足哪些必要条件?","NETWORK_ISOLATION":"网络隔离","ENABLE":"启用","PROJECT_NETWORK_ISOLATION":"项目网络隔离","DISABLED_PROJECT_NETWORK_ISOLATION":"禁用项目网络隔离","NETWORK_POLICY_EMP_TITLE":"未启用网络隔离","NETWORK_POLICY_EMP_DESC":"启用项目网络隔离后,将禁止其他项目访问当前项目,但您可以按需放行项目、服务以及外部 IP 地址。","INTERNAL_ALLOWLIST":"内部白名单","INTERNAL_ALLOWLIST_TIP":"将企业空间内部的项目和服务添加到白名单。","INTERNAL_EGRESS_DESC":"当前项目中的容器组可以访问以下服务和项目的容器组。","INTERNAL_INGRESS_DESC":"当前项目中的容器组可以被以下服务和项目的容器组访问。","INTERNAL_ALLOWLIST_DESC":"允许当前项目中的容器组与当前企业空间其他项目中的服务进行通信。","EMPTY_RESOURCE_DESC":"请选择至少一个项目或服务。","EXTERNAL_ALLOWLIST":"外部白名单","EXTERNAL_ALLOWLIST_TIP":"将企业空间外部的网段和端口添加到白名单。","EXTERNAL_ALLOWLIST_DESC":"允许当前项目中的容器组与企业空间外部的特定网段和端口进行通信。","NETWORK_SEGMENT_EXAMPLE":"例如:10.0.0.0","PORT_EXAMPLE":"例如:80","EXTERNAL_EGRESS_DESC":"当前项目中的容器组可以访问以下网段和端口。","EXTERNAL_INGRESS_DESC":"当前项目中的容器组可以被以下网段和端口访问。","SELECT_RULE_DIRECTION_TIP":"请选择流量方向。","ENTER_VALID_SEGMENT_DESC":"请输入有效的网段。","ENTER_VALID_PORT_NUMBER_DESC":"请输入有效端口号。","ADD_ALLOWLIST_ENTRY":"添加白名单条目","EDIT_ALLOWLIST_ENTRY":"编辑白名单条目","EXTERNAL_TRAFFIC_DIRECTION_DESC":"出站表示从当前项目到企业空间外的方向。入站表示从企业空间外到当前项目的方向。","TRAFFIC_DIRECTION":"流量方向","NETWORK_SEGMENT_DESC":"设置网段(支持 CIDR)。","EGRESS":"出站","INGRESS":"入站","INTERNAL_TRAFFIC_DIRECTION_DESC":"出站表示从当前项目到其他项目的方向。入站表示从其他项目到当前项目的方向。","ALLOWLIST_ENTRY":"白名单条目","ALLOWLIST_ENTRY_PL":"白名单条目","ALLOWLIST_ENTRY_DETAIL":"白名单条目详细","ALLOWLIST_ENTRY_LOW":"白名单条目","ADD_NEW_NETWORK_SEGMENT":"添加新网段","ADD_NEW_PORT":"添加新端口","ADD_NEW_PORT_RANGE":"添加新端口范围","PORT_RANGE":"端口范围","NETWORK_SEGMENT_QUANTITY":"网段数量","PORT_QUANTITY":"端口数量","ALLOWLIST_ENTRY_EMPTY_DESC":"请创建白名单条目","PROJECT_MEMBER":"项目成员","PROJECT_MEMBER_PL":"项目成员","PROJECT_MEMBER_DESC":"项目成员可以查看或管理项目资源。项目管理员可以邀请企业空间成员至该项目并对项目成员进行管理。","REMOVE":"移除","INVITE_MEMBER_DESC":"邀请当前企业空间的成员到当前项目。","PROJECT_MEMBER_EMPTY_DESC":"请邀请当前企业空间的成员到当前项目。","INVITE_MEMBER_SEARCH_PLACEHOLDER":"输入用户名邀请项目成员","ASSIGN_ROLE":"分配角色","PERMISSION_PL":"权限","AUTHORIZED_USER_PL":"授权用户","PROJECT_ROLE_PL":"项目角色","PROJECT_ROLE_DESC":"项目角色定义了在当前项目下用户所拥有的权限。","ROLE_PROJECT_ADMIN":"管理项目中的所有资源。","ROLE_PROJECT_REGULAR":"管理项目中除用户和角色之外的资源。","ROLE_PROJECT_VIEWER":"查看项目中的所有资源。","ROLE_PROJECT_OPERATOR":"管理项目中除用户和角色之外的资源。","PROJECT_ROLE_EMPTY_DESC":"请创建一个项目角色。","PERMIGROUP_APPLICATION_WORKLOADS":"应用负载","PERMISSION_APPLICATION_WORKLOADS_VIEW":"应用负载查看","PERMISSION_APPLICATION_WORKLOADS_VIEW_DESC":"查看项目中的应用、服务、工作负载、任务、灰度发布任务和镜像构建器等资源。","PERMISSION_APPLICATION_WORKLOADS_MANAGEMENT":"应用负载管理","PERMISSION_APPLICATION_WORKLOADS_MANAGEMENT_DESC":"创建、编辑和删除项目中的应用、服务、工作负载、任务、灰度发布任务和镜像构建器等资源。","PERMIGROUP_STORAGE_MANAGEMENT":"存储","PERMISSION_VOLUME_SNAPSHOTS_VIEW":"卷快照查看","PERMISSION_VOLUME_SNAPSHOTS_VIEW_DESC":"查看项目中的卷快照。","PERMISSION_VOLUME_SNAPSHOTS_MANAGEMENT":"卷快照管理","PERMISSION_VOLUME_SNAPSHOTS_MANAGEMENT_DESC":"创建、编辑和删除项目中的卷快照。","PERMISSION_VOLUMES_VIEW":"持久卷声明查看","PERMISSION_VOLUMES_VIEW_DESC":"查看项目中的持久卷声明。","PERMISSION_VOLUMES_MANAGEMENT":"持久卷声明管理","PERMISSION_VOLUMES_MANAGEMENT_DESC":"创建、编辑和删除项目中的持久卷声明。","PERMIGROUP_CONFIGURATION_CENTER":"配置","PERMISSION_CONFIGMAPS_VIEW":"配置字典查看","PERMISSION_CONFIGMAPS_VIEW_DESC":"查看项目中的配置字典。","PERMISSION_CONFIGMAPS_MANAGEMENT":"配置字典管理","PERMISSION_CONFIGMAPS_MANAGEMENT_DESC":"创建、编辑和删除项目中的配置字典。","PERMISSION_SECRETS_VIEW":"保密字典查看","PERMISSION_SECRETS_VIEW_DESC":"查看项目中的保密字典。","PERMISSION_SECRETS_MANAGEMENT":"保密字典管理","PERMISSION_SECRETS_MANAGEMENT_DESC":"创建、编辑和删除项目中的保密字典。","PERMISSION_SERVICEACCOUNT_VIEW":"服务账户查看","PERMISSION_SERVICEACCOUNT_VIEW_DESC":"查看项目中的服务账户。","PERMISSION_SERVICEACCOUNT_MANAGEMENT":"服务账户管理","PERMISSION_SERVICEACCOUNT_MANAGEMENT_DESC":"创建、编辑和删除项目中的服务账户。","PERMIGROUP_MONITORING_ALERTING":"监控告警","PERMISSION_ALERTING_MESSAGES_VIEW":"告警查看","PERMISSION_ALERTING_MESSAGES_VIEW_DESC":"查看项目中的告警。","PERMISSION_ALERTING_MESSAGES_MANAGEMENT":"告警管理","PERMISSION_ALERTING_MESSAGES_MANAGEMENT_DESC":"评论并删除项目中的告警。","PERMISSION_ALERTING_POLICIES_VIEW":"规则组查看","PERMISSION_ALERTING_POLICIES_VIEW_DESC":"查看项目中的规则组。","PERMISSION_ALERTING_POLICIES_MANAGEMENT":"规则组管理","PERMISSION_ALERTING_POLICIES_MANAGEMENT_DESC":"创建、编辑和删除项目中的规则组。","PERMISSION_CUSTOM_MONITORING_VIEW":"自定义监控查看","PERMISSION_CUSTOM_MONITORING_VIEW_DESC":"查看项目中的自定义监控面板。","PERMISSION_CUSTOM_MONITORING_MANAGEMENT":"自定义监控管理","PERMISSION_CUSTOM_MONITORING_MANAGEMENT_DESC":"创建、编辑和删除项目中的自定义监控面板。","PERMISSION_PROJECT_MEMBERS_VIEW":"成员查看","PERMISSION_PROJECT_MEMBERS_VIEW_DESC":"查看项目成员。","PERMISSION_PROJECT_MEMBERS_MANAGEMENT":"成员管理","PERMISSION_PROJECT_MEMBERS_MANAGEMENT_DESC":"邀请、编辑和移除项目成员。","PERMISSION_PROJECT_ROLES_VIEW":"角色查看","PERMISSION_PROJECT_ROLES_VIEW_DESC":"查看项目角色。","PERMISSION_PROJECT_ROLES_MANAGEMENT":"角色管理","PERMISSION_PROJECT_ROLES_MANAGEMENT_DESC":"创建、编辑和删除系统预置角色以外的项目角色。","PERMIGROUP_PROJECT_SETTINGS":"项目设置","PERMISSION_PROJECT_SETTINGS":"项目设置管理","PERMISSION_PROJECT_SETTINGS_DESC":"管理项目设置,包括项目基本信息、外部访问设置、网络策略、资源配额、日志收集设置等。","DELETE_ROLE":"删除角色","DELETE_ROLE_TIP":"您确定删除角色 {resource} 吗?","DELETE_ROLE_USER_TIP_PL":"当前角色已授权给 {count} 名用户,请先删除用户或更改用户的角色。","DELETE_ROLE_USER_TIP":"当前角色已授权给 {count} 名用户,请先删除用户或更改用户的角色。","DELETE_ROLE_DEPARTMENT_TIP_PL":"当前角色已授权给 {count} 个部门,请先删除部门或更改部门的角色。","DELETE_ROLE_DEPARTMENT_TIP":"当前角色已授权给 {count} 个部门,请先删除部门或更改部门的角色。","CLONE_VOLUME":"克隆卷","CLONE":"克隆","CREATE_SNAPSHOT":"创建快照","SNAPSHOT_EMPTY_TIP":"请选择一个卷快照类。","EXPAND_VOLUME":"扩展卷","EXPAND":"扩展","PROVISIONER":"供应者","AVAILABLE_CAPACITY":"剩余容量","POD_IP_ADDRESS_SCAP":"容器组 IP 地址","TOTAL_CAPACITY":"总容量","TECHNICAL_SUPPORT":"技术支持","LEARN_MORE_CONTACT_US":"获取更多云原生技术赋能服务,请联系我们。","COMMUNITY_SUPPORT":"社区支持","FORUM":"论坛","TICKET_SUPPORT":"工单支持","TICKET_SUPPORT_DESC":"专业云原生开发团队和容器服务交付团队,具有超过 10 年的公有云和私有云支持经验和对行业的深入了解,可提供全面的技术支持,包括安装、故障排除、恢复和其他专业服务。","CONTACT_US":"联系我们","KUBESPHERE_ENTERPRISE_CAPTION":"KubeSphere Enterprise","KUBE_SPHERE_ENTERPRISE_DESC":"KubeSphere Enterprise 是由 QingCloud 开发的企业级容器平台,基于 KubeSphere 开源平台。与开源版本相比,KubeSphere Enterprise 增强了企业量化运营、大规模集群运维和安全加固等方面的的能力,并扩展了微型服务治理和应用管理等多个关键功能。KubeSphere Enterprise 扩展组件市场提供企业级扩展组件,以满足各种业务场景的需求,并由 QingCloud 提供专家解决方案和技术支持。","KSE_FEATURE_1":"赋能企业数字化转型量化运营","KSE_FEATURE_2":"增强大规模联邦集群运维能力","KSE_FEATURE_3":"提供全生命周期安全保护","KSE_PLATFORM_VERSION":"平台版本: {version}","KUBESPHERE_CLOUD_CAPTION":"KubeSphere Cloud","KSC_FEATURE_BACKUP":"备份容灾","KSC_FEATURE_BACKUP_APP_DESC":"应用级数据保护","KSC_FEATURE_BACKUP_DATA_DESC":"数据一致性保障","KSC_FEATURE_BACKUP_CLOUD_DESC":"跨多云统一纳管","KSC_FEATURE_INSPECTION":"集群巡检","KSC_FEATURE_INSPECTION_VULN_DESC":"全面漏洞扫描","KSC_FEATURE_INSPECTION_SECURITY_DESC":"系统安全加固","KSC_FEATURE_INSPECTION_BEST_DESC":"最佳实践指导","KSC_FEATURE_LIGHTWEIGHT":"轻量集群","KSC_FEATURE_LIGHTWEIGHT_START_DESC":"极速启用集群","KSC_FEATURE_LIGHTWEIGHT_KS_DESC":"KubeSphere 开箱即用","KSC_FEATURE_LIGHTWEIGHT_TEST_DESC":"满足测试演示场景","START_NOW":"立即开始","START_REAL_TIME_AUDIT_LOG":"暂停实时审计日志","STOP_REAL_TIME_AUDIT_LOG":"查看实时审计日志","TIME_S":"{num, plural, =1 {1 秒} other {# 秒}}","AUDIT_LOG_COUNT":"审计日志","RESOURCE_NAME_AND_TYPE":"资源类型与名称","VERB":"操作行为","STATUS_CODE":"状态码","SUBRESOURCE":"子资源","TOTAL_AUDITING_TODAY":"今日总共收录了 {auditing} 条审计日志","NO_AUDIT_LOG_TODAY":"今日没有收录的审计日志","AUDIT_LOG_TREND_LAST_TWELVE_HOURS":"最近 12 小时审计日志数量变化趋势","START_TIME_VALUE":"开始时间:{value}","NO_DATA_AUTHORIZED":"没有数据授权","NO_DATA_AUTHORIZED_DESC":"请联系管理员获取数据授权。","TIME_RANGE_LAST":"时间范围:最近 {value}","TIME_RANGE_RANGE":"时间范围:{startTime} – {endTime}","AUDIT_LOGS_12H":"最近 12 小时审计日志数量","AUDIT_LOG_WORKSPACE_TIP":"输入企业空间名称查找审计日志。","AUDIT_LOG_PROJECT_TIP":"输入项目名称查找审计日志。","AUDIT_LOG_RESOURCE_NAME_TIP":"输入资源名称查找审计日志。","AUDIT_LOG_RESOURCE_TYPE_TIP":"输入资源类型查找审计日志。","AUDIT_LOG_VERB_TIP":"输入操作行为查找审计日志。","AUDIT_LOG_STATUS_CODE_TIP":"输入状态码查找审计日志。","AUDIT_LOG_OPERATOR_TIP":"输入操作者查找审计日志。","AUDIT_LOG_SOURCE_IP_ADDRESS_TIP":"输入源 IP 地址查找审计日志。","SEARCH_BY_VERB":"按操作行为搜索","SEARCH_BY_STATUS_CODE":"按状态码搜索","SEARCH_BY_OPERATOR":"按操作者搜索","SEARCH_BY_SOURCE_IP_ADDRESS":"按源 IP 地址搜索","ENABLE_AUDIT_LOG_COLLECTION_DESC":"如果审计日志收集已禁用,您需要启用审计日志收集。","KEYWORD":"关键词","EXACT_QUERY":"精确查询","FUZZY_QUERY":"模糊查询","TIME_TOPOLOGY":"时间拓扑图 ","SEARCH_RESULTS":"搜索结果","DISPLAY":"显示","HIDE":"隐藏","STOP_REAL_TIME_CONTAINER_LOG":"暂停实时容器日志","START_REAL_TIME_CONTAINER_LOG":"查看实时容器日志","REFRESH_RATE_COLON":"刷新频率:","CONTAINER_LOG_COUNT":"容器日志","LOG":"日志","CONTAINER_LOG_SOURCE":"容器日志来源","TOTAL_LOGS_TODAY":"今日总共收录了 {containers} 个容器
    {logs} 条日志信息","WORKLOAD":"工作负载","TIME_RANGE_SCAP":"时间范围","QUERYING_RULES":"查询规则","CONTAINER_LOGS_12H":"最近 12 小时容器日志数量","CONTAINER_LOG_KEYWORD_TIP":"输入关键词查找容器日志。","CONTAINER_LOG_PROJECT_TIP":"输入项目名称查找容器日志。","CONTAINER_LOG_WORKLOAD_TIP":"输入工作负载名称查找容器日志。","CONTAINER_LOG_CONTAINER_TIP":"输入容器名称查找容器日志。","CONTAINER_LOG_POD_TIP":"输入容器组名称查找容器日志。","SEARCH_BY_KEYWORD":"按关键词搜索","SEARCH_BY_PROJECT":"按项目搜索","SEARCH_BY_WORKLOAD":"按工作负载搜索","SEARCH_BY_POD":"按容器组搜索","SEARCH_BY_CONTAINER":"按容器搜索","TIME_RANGE":"时间范围","DOWNLOAD":"下载","KUBECONFIG_TIP":"\n

    配置方法

    \n

    通过使用 kubeconfig 文件配置当前集群的访问信息。

    \n ","HIDE_HELP_INFORMATION":"隐藏帮助信息","KUBECTL_TIP":"\n

    命令参考

    \n

    您可以参考以下 kubectl 命令。

    \n

    自定义输出

    \n
      \n
    • 查看容器组的更多信息
    • \n
    \n

    kubectl get pod <容器组名称> -o wide

    \n
      \n
    • 查看 YAML 格式的容器组详情
    • \n
    \n

    kubectl get pod <容器组名称> -o yaml

    \n

    执行操作

    \n

    创建资源

    \n
      \n
    • 使用 YAML 配置文件创建服务
    • \n
    \n

    kubectl create -f my-service.yaml

    \n
      \n
    • 使用目录下的所有 YAML、YML 和 JSON 文件创建资源
    • \n
    \n

    kubectl create -f <目录>

    \n

    查看资源

    \n
      \n
    • 查看所有容器组
    • \n
    \n

    kubectl get pods

    \n
      \n
    • 查看所有服务
    • \n
    \n

    kubectl get services

    \n

    查看资源详情

    \n
      \n
    • 查看节点详情
    • \n
    \n

    kubectl describe nodes <节点名称>

    \n
      \n
    • 查看容器组详情
    • \n
    \n

    kubectl describe pods <容器组名称>

    \n ","OPEN_TERMINAL_DESC":"确保代理服务器上的 Web Socket 设置正确。","TOOLBOX":"工具箱","TOOLBOX_DESC":"提供集群分析和控制工具。","DETAIL_NOT_FOUND_DESC":"未发现相关资源。 返回{title}","ANALYSIS_TOOLS":"分析工具","VIEW_KUBE_CONFIG":"查看或下载当前集群的 kubeconfig 文件。","CONTAINER_LOG_SEARCH_DESC":"针对集群资源的多维度容器日志查询工具。","RESOURCE_EVENT_SEARCH_DESC":"针对集群资源的多维度资源事件查询工具。","AUDIT_LOG_DESC":"针对集群资源的多维度审计日志查询工具。","RESOURCE_CONSUMPTION_STATISTICS":"资源消费统计","METERING_AND_BILLING_DESC":"查看集群和企业空间的资源消费情况。","CONTAINER_LOG_SEARCH":"容器日志查询","RESOURCE_EVENT_SEARCH":"资源事件查询","AUDIT_LOG_SEARCH":"审计日志查询","CONTROL_TOOL":"控制工具","TOOLBOX_SHIFT_TIPS":" 👻 按下“shift+左键”可在浏览器新窗口中打开 kubectl。","THIRD_PARTY_TOOLS":"第三方工具","METERING_NOT_ENABLED_DESC":"当前模块尚未启用。","NO_METER_DATA":"未发现资源消费数据。","EXPORT_BILL":"导出 CSV 文件格式的消费记录。","TOTAL_COST":"总金额({unit})","PRICE_CONFIG_DESC":"尚未配置价格信息。","METER_CPU_USAGE":"CPU 用量","METER_MEMORY_USAGE":"内存用量","METER_VOLUME_USAGE":"卷用量","METER_NET_RECEIVED_USAGE":"入站流量用量","METER_NET_TRANSMITTED_USAGE":"出站流量用量","NET_RECEIVED":"入站流量","NET_TRANSMITTED":"出站流量","COMPOSING_APP":"自制应用","CLUSTER_NODE_SCAP":"集群节点","POD_SCAP":"容器组","APP_TEMPLATE_SCAP":"应用模板","COMPOSING_APP_SCAP":"自制应用","DEPLOYMENT_SCAP":"部署","STATEFULSET_SCAP":"有状态副本集","DAEMONSET_SCAP":"守护进程集","WORKSPACE_SCAP":"企业空间","CLUSTER_SCAP":"集群","PROJECT_SCAP":"项目","SERVICE_SCAP":"服务","HOST_CLUSTER_SCAP":"主集群","MEMBER_CLUSTER_SCAP":"成员集群","CONSUMPTION_HISTORY":"消费历史","BILLING_CYCLE":"对账周期","CONSUMER_TRENDS":"费用趋势","AVERAGE_USAGE":"平均用量","TOTAL_CONSUMPTION":"总消费情况","TOTAL_CONSUMPTION_Q":"什么是总消费情况?","TOTAL_CONSUMPTION_A":"总消费情况表示在当前对账周期中每个计费采样点的资源用量之和。","TIMERANGE_MORE_30DAY_MSG":"结束时间与开始时间的间隔大于 30 天时,采样间隔最小为 1 天。","MAXIMUM_USAGE":"最大用量","MINIMUM_USAGE":"最小用量","RESOURCE_TYPE":"资源类型","CURRRENT_RESOURCE_CONSUMPTION":"当前消费","METER_RESOURCE_DESC":"1 小时内的资源消费情况","ADD_CLUSTER_FOR_WORKSPACE":"请将集群授权给企业空间。","RESOURCE_CONSUMPTION_DESC":"选择一个类别以查看资源消费情况。","CLUSTER_CONSUMPTION":"集群资源消费情况","CLUSTER_CONSUMPTION_DESC":"查看集群资源的消费情况。","CLUSTER_RESOURCE_CONSUMPTION_DESC":"集群的 CPU、内存、卷等资源的消费情况","CLUSTER_NODE_CONSUMPTION_DESC":"集群节点的 CPU、内存、卷等资源的消费情况","CLUSTER_POD_CONSUMPTION_DESC":"节点中容器组的 CPU、内存等资源的消费情况","CURRENT_RESOURCE_CONSUMPTION":"当前资源消费情况","VIEW":"查看","CONSUMPTION_SINCE_CREATION":"自创建以来已消耗了以下资源。","PRICE":"价格","WORKSPACE_CONSUMPTION":"企业空间资源消费情况","WORKSPACE_CONSUMPTION_DESC":"查看企业空间的资源消费情况。","WORKSPACE_RESOURCE_CONSUMPTION_DESC":"企业空间的 CPU、内存、卷等资源的消费情况","WORKSPACE_PROJECT_CONSUMPTION_DESC":"企业空间中项目的 CPU、内存、卷等资源的消费情况","PROJECT_CONSUMPTION_DESC":"项目中的应用服务容器组的 CPU、内存、卷等资源的消费情况","STOP_REAL_TIME_RESOURCE_EVENT":"暂停实时资源事件","START_REAL_TIME_RESOURCE_EVENT":"查看实时资源事件","RESOURCE_EVENT_COUNT":"资源事件","METADATA":"元数据","EARLIEST_START_TIME":"最早发生时间","LATEST_START_TIME":"最近发生时间","TOTAL_EVENTS_TODAY":"今日总共收录了 {events} 条资源事件","NO_RESOURCE_EVENTS_TODAY":"今日没有收录的资源事件","RESOURCE_EVENTS_12H":"最近 12 小时资源事件数量","RESOURCE_EVENT_WORKSPACE_TIP":"输入企业空间名称查找资源事件。","RESOURCE_EVENT_PROJECT_TIP":"输入项目名称查找资源事件。","RESOURCE_EVENT_RESOURCE_TYPE_TIP":"输入资源类型查找资源事件。","RESOURCE_EVENT_RESOURCE_NAME_TIP":"输入资源名称查找资源事件。","RESOURCE_EVENT_MESSAGE_TIP":"输入消息查找资源事件。","RESOURCE_EVENT_CATEGORY_TIP":"输入分类名称查找资源事件。","RESOURCE_EVENT_REASON_TIP":"输入原因查找资源事件。","SEARCH_BY_MESSAGE":"按消息搜索","SEARCH_BY_WORKSPACE":"按企业空间搜索","SEARCH_BY_RESOURCE_TYPE":"按资源类型搜索","SEARCH_BY_RESOURCE_NAME":"按资源名称搜索","SEARCH_BY_REASON":"按原因搜索","SEARCH_BY_CATEGORY":"按分类搜索","EMAIL_DESC":"邮箱地址可用于登录 KubeSphere Web 控制台。","LANGUAGE":"语言","USER_SETTINGS":"用户设置","CLOSE":"关闭","CONTENT_NOT_SAVED_TIPS":"内容已经修改但并未保存","SAVE_EDIT_HINTS":"请确认修改的内容是正确的,您可以保存设置或者取消设置。","PASSWORD_SETTINGS":"密码设置","PASSWORD_EMPTY_DESC":"请输入一个密码。","CURRENT_PASSWORD":"当前密码","ENTER_CURRENT_PASSWORD_TIP":"请输入当前密码。","CONFIRM_PASSWORD":"确认密码","PASSWORD_NOT_SAME_DESC":"两次输入的密码必须一致。","ENTER_CURRENT_PASSWORD_DESC":"您必须输入当前密码才能修改密码。","WORKBENCH":"工作台","DASHBOARD_TITLE":"您好 {username}","LAST_LOGIN_TIME":"最后登录时间:","USER_DASHBOARD_EMPTY_TITLE":"您不属于任何企业空间","USER_DASHBOARD_EMPTY_DESC":"请联系企业空间管理员邀请您加入企业空间中。","LAST_UPDATE_TIME":"最后更新时间","PLATFORM_VERSION":"平台版本","PLATFORM_RESOURCES":"平台资源","APP_TEMPLATE_SCAP_PL":"应用模板","RECENT_ACCESS":"最近访问","MULTI_CLUSTER_DEPLOYMENT":"联邦项目","WORKBENCH_PROJECT":"项目","WORKBENCH_WORKSPACE":"企业空间","WORKBENCH_DEVOPS":"DevOps 项目","WORKBENCH_MULTI_CLUSTER_PROJECT":"联邦项目","WORKBENCH_CLUSTER":"集群","NOT_FOUND_DESC":"🙇 对不起未发现相关资源,系统将在 {time}s 后返回 工作台","MULTI_CLUSTER_PROJECT_TIP":"此项目跨多个集群。","NO_HISTORY_TITLE":"未发现最近访问的资源","NO_HISTORY_DESC":"您可以对平台资源进行访问。","ADD_TO_QUICK_ACCESS":"添加到快捷访问","CANCEL_QUICK_ACCESS":"取消快捷访问","MESSAGE":"消息","APP_REPOSITORY_PL":"应用仓库","APP_REPO":"应用仓库","HOW_TO_USE_APP_REPO_Q":"如何使用应用仓库?","HOW_TO_USE_APP_REPO_A":"您需要转到在该企业空间下的项目。在部署新应用时,选择来自应用模板并在下拉列表中选择您的应用仓库,即可部署应用仓库中的应用。","APP_REPO_DESC":"应用仓库是用于存放应用模板的仓库,您可以添加应用仓库以部署和管理其中的应用。","APP_REPOSITORY_EMPTY_DESC":"请添加一个应用仓库。","APP_REPO_STATUS_SUCCESSFUL":"成功","APP_REPO_STATUS_FAILED":"失败","APP_REPO_STATUS_SYNCING":"同步中","ADD_APP_REPO":"添加应用仓库","VALIDATE":"验证","SYNC_INTERVAL":"同步间隔","SYNC_INTERVAL_DESC":"设置一个同步周期,取值范围为 3 分钟到 24 小时。默认值 0 表示不同步。","SYNC_PERIOD_EMPTY_DESC":"请设置同步周期。","SYNC_INTERVAL_INVALID":"参数值无效,请输入 0 或正整数。","APP_REPO_URL_DESC":"URL 需要通过验证才能添加或编辑应用仓库。","SYNC_INTERVAL_TIP":"取值范围为 3 分钟到 24 小时,请输入有效数值。","SECONDS":"秒","MINUTES":"分钟","HOURS":"小时","UNRECOGNIZED_URL":"URL 无法识别。","INVALID_CREDENTIAL_FORMAT":"证书格式无效。","MISSING_ACCESS_KEY_ID":"缺少访问密钥(access key) ID。","MISSING_SECRET_ACCESS_KEY":"缺少秘密访问密钥(secret access key)。","S_THREE_ACCESS_DENIED":"S3 访问被拒绝。","INVALID_URL_FORMAT":"URL 格式无效。","INVALID_HTTP_SCHEME":"HTTP 协议无效。","HTTP_ACCESS_DENIED":"HTTP 访问被拒绝。","INVALID_HTTPS_SCHEME":"HTTPS 协议无效。","INVALID_TYPE":"类型无效。","INVALID_PROVIDERS":"Providers 参数无效。","INVALID_REPO_URL":"仓库 URL 无效。","INVALID_S_THREE_SCHEME":"S3 协议无效。","ACCESS_KEY_ID":"访问密钥 ID","SECRET_ACCESS_KEY":"秘密访问密钥","EDIT_APP_REPO":"编辑应用仓库","INVALID_URL_DESC":"URL 无效。","VALID_URL_DESC":"URL 验证通过。","APP_REPOSITORY":"应用仓库","APP_REPOSITORY_LOW":"应用仓库","MODIFY_SUCCESSFUL":"修改成功。","SERVICE_PROVIDER_WEBSITE_DESC":"服务商的官方网站地址。","WRONG_ADDRESS_TIP":"地址格式错误,请输入正确的地址。","APP_NAME_DESC":"名称可包含任意字符,最长 20 个字符。","APP_DESCRIPTION_DESC":"描述可包含任意字符,最长 120 个字符。","APP_ICON_FORMAT":"格式:PNG 或 JPG","APP_ICON_SIZE":"大小:96x96 像素","CHOOSE_APP_CATEGORY_DESC":"为应用选择一个分类。","EDIT_APP_DESC":"编辑应用模板的基本信息。","ICON":"图标","SERVICE_PROVIDER_WEBSITE_TCAP":"服务商网站","START_EDITING":"开始编辑…","SCREENSHOTS_COLON":"截图数量:","DELETE_ALL":"全部删除","ADD_VERSION_SUCCESSFUL":"版本添加成功。","UPLOAD_PACKAGE_OK_NOTE":"该版本已存在,请上传其他版本。","UPLOAD_NEW_VERSION":"上传版本","UPLOAD_NEW_VERSION_DESC":"上传应用模板的新版本。","DELETE_APP_TEMPLATE_DESC":"请输入应用模板名称 {resource} 以确认您了解此操作的风险。","DELETE_APP_TEMPLATE_VERSIONS_DESC":"请输入应用模板名称 {resource} 以确认您了解此操作的风险。删除应用模板前,您必须先删除该应用模板的所有版本。","APP_TEMPLATE_LOW":"应用模板","APP_STATUS_SUBMITTED":"已提交","APP_STATUS_NOT_SUBMITTED":"未提交","VERSION_INFO":"版本信息","INSTALL":"安装","SUBMIT_FOR_REVIEW":"提交审核","DOWNLOAD_SUCCESSFUL":"下载成功。","VERSION_DELETE_TIP":"您确定要删除版本 {name} 吗?","VERSION_SUBMIT_TIP":"您确定要提交版本 {name} 进行发布?","VERSION_CANCEL_TIP":"您确定要撤消版本 {name} 的提交吗?","VERSION_RELEASE_TIP":"版本 {name} 发布到商店后,用户可以查看并部署该应用版本,您确定要发布吗?","VERSION_SUSPEND_TIP":"版本 {name} 下架后,关联的应用将不显示该版本,您确定要下架吗?","VERSION_RECOVER_TIP":"版本 {name} 恢复上架后,关联的应用将显示出该版本,您确定要恢复上架吗?","UPDATE_TIME_SCAP":"更新时间","VIEW_IN_STORE":"在商店中查看","UPLOAD_AGAIN_TIP":"出现错误,请重试。","ENTER_VERSION_NUMBER_TIP":"请输入版本号。","SUBMIT_REVIEW_DESC":"将应用模板提交审核以发布到应用商店。","APP_LEARN_MORE":"了解更多","INVALID_VERSION_TIP":"请输入正确的版本号。","TEST_STEPS":"测试步骤","VERSION_SUBMIT_TEST_STEPS":"1. 所有依赖的 chart 已经分别提交。
    2. 可以成功通过静态检查(helm lint)。
    3. 可以用默认值成功启动应用(helm install)。所有容器组处于运行中状态,所有服务(Service)都至少有一个端点。
    4. 使用的镜像没有安全漏洞。
    5. 支持升级。
    6. 支持自定义应用配置。
    7. 不要使用 Kubernetes 的 alpha 功能。
    8. 需要提供详细的说明文档,包括应用介绍、准备工作和自定义参数配置。
    ","VERSION_SUBMIT_NOTE":"提交之前,请确认您的应用满足以下要求:","UPDATE_LOG_DESC":"填写关于应用更新的详细信息。","SUBMIT_SUCCESSFUL":"提交成功。","CANCEL_SUCCESSFUL":"取消成功。","APP_INSTANCES":"应用实例","APP_TEMPLATE_PL":"应用模板","APPS_MANAGEMENT":"应用管理","UPLOAD_TEMPLATE":"上传模板","APP_TEMPLATE_DESC":"KubeSphere 提供全生命周期的应用管理,可以上传或者创建新的应用模板,并且快速部署它们,也可以通过应用商店进行发布应用。","DEVELOP_APP_DESC":"您可以上传 Helm chart 或者使用 KubeSphere 提供的资源编排工具进行应用模板的开发。","DEVELOP_APP_TITLE":"如何开发应用模板?","HOW_PUBLISH_APP_TITLE":"如何发布应用到应用商店?","HOW_PUBLISH_APP_DESC":"您可以将 Helm chart 上传为企业空间的应用模板,审核通过后,应用将会发布在应用商店中。","APP_STATUS_ACTIVE":"已发布","APP_STATUS_DRAFT":"未发布","APP_STATUS_SUSPENDING":"下架中","APP_TEMPLATE_EMPTY_DESC":"请创建一个应用模板。","LATEST_VERSION":"最新版本","CREATE_APP_TEMPLATE":"创建应用模板","CREATE_APP_TEMPLATE_DESC":"轻量级、可移植、自包含的软件打包技术,使应用可以在几乎任何地方以相同的方式运行。","APP_CREATE_GUIDE":"请参阅开发指南 Helm 规范。","UPLOAD":"上传","UPLOAD_HELM_TITLE":"上传 Helm Chart","UPLOAD_HELM_CHART_DESC":"上传已有的 Helm chart。","HELM_CHART_FORMAT_DESC":"支持 tar.gz 和 tgz 格式。","UPLOAD_ICON":"上传图标","UPLOAD_SUCCESSFUL":"上传成功。","UPLOADING":"正在上传","FILE_MAX_SIZE_ICON":"图标的最大尺寸为 96x96 像素。","FILE_MAX_SCREENSHOTS":"截图大小不能超过 2 MB。","APP_ICON_NOTE":"上传 96x96 像素以内的 JPG 或 PNG 图像。","MISS_FILE_NOTE":"未找到文件 {file}。","LICENSE_FILE_DESC":"文本格式的许可协议。","CHART_FILE_DESC":"YAML 文件,用于描述 chart 的基本信息,例如名称和版本。","README_FILE_DESC":"应用介绍和使用说明。","REQUIREMENTS_FILE_DESC":"Chart 依赖关系描述文件。","VALUES_FILE_DESC":"Chart 的默认值配置文件。","CHARTS_FILE_DESC":"存放 chart 依赖项的目录。","TEMPLATES_FILE_DESC":"存放部署模板文件的目录。","NOTES_FILE_DESC":"使用指南。","INCORRECT_FILE":"文件有误?","TRY_AGAIN":"重试","FILE_MAX_ICON_DESC":"图标尺寸不能超过 20 KB,请重试。","HOMEPAGE":"首页","OPTIONAL":"可选","DEVOPS_TIP_GITOPS_Q":"如何落地 DevOps?","DEVOPS_TIP_GITOPS_A":"创建关联代码仓库的流水线,并积极使用部署 Kubernetes 部署步骤,就可以实现 DevOps 了。","DEVOPS_TIP_TYPE_Q":"流水线 (Pipeline) 支持哪些代码仓库类?","DEVOPS_TIP_TYPE_A":"流水线支持 Git、GitHub、Gitlab、SVN、以及 Bitbucket 代码仓库.","DEVOPS_PROJECT_EMPTY_DESC":"请创建一个 DevOps 项目。","CREATE_DEVOPS_PROJECT":"创建 DevOps 项目","DEVOPS_PROJECT_CREATE_DESC":"DevOps 是一个独立的命名空间,其中定义了一组的流水线;用户可以按照自己的方式对流水线进行分组 (例如:项目类型、组织类型)。","DEVOPS_BASEINFO_DESC":"请设置 DevOps 项目的基本信息","PATTERN_NAME_INVALID_TIP":"名称无效。名称只能包含小写字母、数字、或连字符(-)。","NO_DEVOPS_INSTALL":"未安装 DevOps","DEVOPS_ADMIN_DESC":"选择一个项目成员作为项目管理员。","DELETE_MULTIPLE_DEVOPS_PROJECTS":"批量删除 DevOps 项目","DELETE_DEVOPS_PROJECT":"删除 DevOps 项目","DELETE_DEVOPS_PROJECT_TIP":"请输入 DevOps 项目名称 {resource} 以确认您了解此操作的风险。","DELETE_DEVOPS_PROJECT_TIP_PL":"请输入 DevOps 项目名称 {resource} 以确认您了解此操作的风险。","EDGE_APP_TEMPLATES":"应用模版","EDGE_APP_TEMPLATES_PL":"边缘应用模版","EDGE_APP_TEMPLATES_DESC":"边缘应用模板用于定义用户的边缘应用,用户需要指定容器应用的容器镜像、配置信息等。","CONTAINER_COUNTS":"容器数量","EDGE_APP_TEMPLATES_EMPTY_DESC":"请创建一个应用模版。","CREATE_EDGE_APP_TEMPLATE":"创建边缘应用模版","CREATE_APP_TEMPLATE_VERSION":"创建应用版本","APP_TEMPLATE_VERSION":"应用版本","APP_TEMPLATE_VERSION_EMPTY_TIP":"请创建一个应用版本。","APP_TEMPLATE_VERSION_EMPTY_DESC":"请设置一个应用版本名称。","INVALID_APP_TEMPLATE_VERSION_DESC":"应用版本无效。 {message}","APP_TEMPLATE_VERSION_DESC":"应用版本需要符合 Semantic Versioning 规范","APP_TEMPLATE_INSTANCES":"应用实例","ALL_VERSIONS":"全部版本","EDGE_APP_TEMPLATES_LOW":"应用模版","APP_TEMPLATE_VERSION_LOW":"应用版本号","DEL_APP_TEMPLATE_DESC":"删除应用模板的同时也会删除该应用模板的所有版本。","EMPTY_IMAGE_DESC":"暂无镜像信息","HOW_TO_APPLY_MORE_CLUSTER_Q":"如何为企业空间申请更多的集群?","HOW_TO_APPLY_MORE_CLUSTER_A":"请联系平台管理员或集群管理员以申请更多集群。","OVERVIEW":"概览","WORKSPACE_OVERVIEW_DESC":"企业空间为 KubeSphere 提供了安全隔离的、具有访问权限控制的工作平台。这里您可以看到当前企业空间内资源运行的概况。","ROLE_PL":"角色","PHYSICAL_RESOURCES":"物理资源","CRONJOB":"定时任务","CLUSTER_VALUE":"集群:{value}","SORT_BY_WORKSPACE_MEMORY_USAGE":"按内存用量排行","SORT_BY_WORKSPACE_MEMORY_USAGE_WO_CACHE":"按内存用量排行","SORT_BY_WORKSPACE_POD_COUNT":"按容器组配额用量排行(%)","SORT_BY_WORKSPACE_CPU_USAGE":"按 CPU 用量排行","SORT_BY_WORKSPACE_NET_BYTES_TRANSMITTED":"按出站流量排行","SORT_BY_WORKSPACE_NET_BYTES_RECEIVED":"按入站流量排行","PROJECT_EMPTY_DESC":"请创建一个项目。","CREATE_PROJECT":"创建项目","CREATE_MULTI_CLUSTER_PROJECT":"创建联邦项目","CREATE_MULTI_CLUSTER_PROJECT_DESC":"您可以创建联邦项目,让项目运行在多个集群中,为应用提供快速迭代开发的容器环境并实现高可用。","MULTI_CLUSTER_PROJECT_PL":"联邦项目","FED_HOST_NAMESPACE_TIP":"该项目与联邦项目关联, 请勿修改此项目中的资源。","MULTI_CLUSTER_PROJECT":"联邦项目","PROJECT_NAME_EXISTS_IN_HOST":"项目名称在主集群中已经存在,请输入其他项目名称。","SELECT_CLUSTER_DESC":"选择要创建项目的{type}。","CLUSTER_EMPTY_DESC":"请选择一个集群。","PROJECT_NAME_EXISTS_IN_CLUSTER":"项目名称在在 {cluster} 集群中已存在,请输入其他项目名称。","PROJECT_CLUSTER_SETTINGS_DESC":"为项目选择至少一个集群。如果选择多个集群,主集群上将创建同名项目。","FEDPROJECT_CANNOT_ADD_CLUSTER":"没有可添加的集群。","WORKSPACE_SETTINGS":"企业空间设置","WORKSPACE_BASIC_INFO_DESC":"基本信息提供企业空间的信息概览,您可以查看企业空间的基本信息。","WORKSPACE_BASE_INFO_Q1":"如何为企业空间申请更多的集群?","WORKSPACE_BASE_INFO_A1":"请联系平台管理员或集群管理员来申请更多的集群。","WORKSPACE_INFO":"企业空间信息","WORKSPACE_MEMBER_TCAP":"企业空间成员","WORKSPACE_MEMBER_TCAP_PL":"企业空间成员","WS_MEMBER_SCAP":"企业空间成员","WS_MEMBER_SCAP_PL":"企业空间成员","DEVOPS_PROJECT_TCAP":"DevOps 项目","DEVOPS_PROJECT_TCAP_PL":"DevOps 项目","DEVOPS_PROJECT_LOW":"DevOps 项目","DEVOPS_PROJECT_LOW_PL":"DevOps 项目","PROJECTS":"项目","KS_CLUSTER":" KS 集群","WORKSPACE_CLUSTER_DESC":"选择企业空间需要使用的集群类型","ON":"启用","OFF":"禁用","WS_NETWORK_ISOLATION":"企业空间网络隔离","NETWORK_POLICY_UNINSATLLED_DESC":"该集群未安装网络策略组件。","DELETE_DESC":"您确定删除该资源吗?资源删除后将无法恢复。","DELETE_WORKSPACE_PROJECTS_DESC":"删除企业空间中的项目","DELETE_WORKSPACE_DESC":"企业空间删除后将无法恢复, 企业空间下的资源也同时会被销毁。","DELETE_WORKSPACE_TIP":"确定删除企业空间 {resource} ? 删除后将无法恢复, 企业空间下的资源也同时会被销毁。","DEPARTMENT_PL":"部门","DEPARTMENT_DESC":"企业空间中的部门是用来管理权限的逻辑单元。您可以在部门中设置企业空间角色、多个项目角色以及多个 DevOps 项目角色,还可以将用户分配到部门中以批量管理用户权限。","NOT_ASSIGNED_TCAP":"未分配","ADD_MEMBER_TIP_SI":"您确定添加成员到部门 {group} 吗?","ADD_MEMBER_TIP_PL":"您确定添加成员到部门 {group} 吗?","ASSIGNED":"已分配","DEPARTMENT":"部门","SET_DEPARTMENTS":"设置部门","DEPARTMENT_EMPTY_DESC":"没有可用部门","NO_DEPARTMENT_TIP":"没有可用部门,请在右侧创建部门。","CREATE_DEPARTMENT":"创建部门","DELETE_GROUP_TIP":"确定删除子部门 {group_name}?删除该部门的同时,所有成员的授权也将被取消。","DELETE_PARENT_GROUP_TIP":"确定删除子部门 {group_name}?删除该部门的同时,其子部门也会被删除,且所有成员的授权也将被取消。","PROJECT_VALUE":"项目:{value}","PROJECT_ROLE_VALUE":"项目角色:{value}","DEVOPS_VALUE":"DevOps 项目:{value}","DEVOPS_PROJECT_ROLES_VALUE":"DevOps 项目角色:{value}","WORKSPACE_ROLE":"企业空间角色","GROUP_WORKSPACE_ROLE_DESC":"企业空间角色将授予部门中的所有用户。","MEMBER_CLUSTER_UPGRADE_TIP":"低于 {version} 版本的成员集群不支持此功能, 请将成员集群升级到 {version} 或以上版本。","PROJECT_ROLE":"项目角色","SELECT_ROLE_TIP":"请选择角色。","ADD_PROJECT":"添加项目","CLUSTER_UPGRADE_REQUIRED":"当前 KubeSphere 版本不支持此功能,请将 KubeSphere 升级到 {version} 或以上版本。","DEVOPS_PROJECT_ROLE":"DevOps 项目角色","ADD_DEVOPS_PROJECT":"添加 DevOps 项目","DEVOPS_PROJECTS":"DevOps 项目","WORKSPACE_MEMBERS":"企业空间成员","WORKSPACE_MEMBER_PL":"企业空间成员","WORKSPACE_MEMBER_DESC":"企业空间成员可以查看或管理企业空间资源。您可以管理企业空间中的成员并控制成员权限。","WORKSPACE_MEMBER_EMPTY_DESC":"请邀请一个用户到当前企业空间。","ROLE":"角色","REMOVE_MEMBER":"移除成员","REMOVE_MULTIPLE_MEMBERS":"指移除成员","REMOVE_MULTIPLE_MEMBERS_TIP":"请输入用户名 {resource} 以确认您了解此操作的风险。","INVITE_WORKSPACE_MEMBER_DESC":"邀请用户到当前企业空间。","INVITE_MEMBER":"邀请成员","INVITE":"邀请","INVITED_SUCCESSFULLY":"邀请成功。","REMOVE_MEMBER_TIP":"请输入用户名 {resource} 以确认您了解此操作的风险。","WORKSPACE_QUOTA_PL":"企业空间配额","WORKSPACE_QUOTAS_DESC":"企业空间配额用于管理企业空间中所有项目和 DevOps 项目的总资源用量。","RESOURCE_QUOTA_PL":"资源配额","USED_PERCENT":"已使用:{percent}%","RESOURCE_LIMIT":"资源上限","EDIT_WORKSPACE_QUOTAS":"编辑企业空间配额","CPU_REQUEST":"CPU 预留","CPU_LIMIT":"CPU 限制","MEMORY_REQUEST":"内存预留","MEMORY_LIMIT":"内存上限","WORKSPACE_ROLE_PL":"企业空间角色","WORKSPACE_ROLE_DESC":"企业空间角色定义了在当前企业空间下用户所拥有的权限。","WORKSPACE_ROLE_EMPTY_DESC":"请创建一个企业空间角色。","ROLE_WORKSPACE_ADMIN":"管理企业空间中的所有资源。","ROLE_WORKSPACE_REGULAR":"查看企业空间设置。","ROLE_WORKSPACE_VIEWER":"查看企业空间中的所有资源。","ROLE_WORKSPACE_SELF_PROVISIONER":"查看企业设置、管理应用模板、创建项目和 DevOps 项目。","ROLE_EDGE_WORKSPACE_SELF_PROVISIONER":"查看企业设置、管理边缘应用模板、创建项目。","CREATE_WORKSPACE_ROLE":"创建企业空间角色","WORKSPACE_ROLE_NAME_TIP":"角色的名称将作为角色的唯一标识符。","NEXT_STEP":"下一步","NEXT_STEP_DESC":"您需要进一步编辑角色的权限。","PERMIGROUP_PROJECTS_MANAGEMENT":"项目","PERMISSION_PROJECTS_VIEW":"项目查看","PERMISSION_PROJECTS_VIEW_DESC":"查看企业空间中的所有项目。","PERMISSION_PROJECTS_MANAGEMENT":"项目管理","PERMISSION_PROJECTS_MANAGEMENT_DESC":"创建、编辑和删除企业空间中的项目。","PERMISSION_PROJECTS_CREATE":"项目创建","PERMISSION_PROJECTS_CREATE_DESC":"创建项目并成为所创建的项目的管理员。","PERMIGROUP_DEVOPS_MANAGEMENT":"DevOps 项目","PERMISSION_DEVOPS_VIEW":"DevOps 项目查看","PERMISSION_DEVOPS_VIEW_DESC":"查看企业空间中的所有 DevOps 项目。","PERMISSION_DEVOPS_MANAGEMENT":"DevOps 项目管理","PERMISSION_DEVOPS_MANAGEMENT_DESC":"创建、编辑和删除企业空间中的 DevOps 项目。","PERMISSION_DEVOPS_CREATE":"DevOps 项目创建","PERMISSION_DEVOPS_CREATE_DESC":"创建 DevOps 项目并成为所创建的 DevOps 项目的管理员。","PERMISSION_APPS_MANAGEMENT":"应用管理","PERMISSION_WORKSPACE_APP_REPOS_VIEW":"应用仓库查看","PERMISSION_WORKSPACE_APP_REPOS_VIEW_DESC":"查看企业空间中的应用仓库。","PERMISSION_WORKSPACE_APP_REPOS_MANAGEMENT":"应用仓库管理","PERMISSION_WORKSPACE_APP_REPOS_MANAGEMENT_DESC":"创建、编辑和删除企业空间中的应用仓库。","PERMISSION_WORKSPACE_APP_TEMPLATES_VIEW":"应用模板查看","PERMISSION_WORKSPACE_APP_TEMPLATES_VIEW_DESC":"查看企业空间中的应用模板。","PERMISSION_WORKSPACE_APP_TEMPLATES_MANAGEMENT":"应用模板管理","PERMISSION_WORKSPACE_APP_TEMPLATES_MANAGEMENT_DESC":"上传、编辑和删除应用模板以及在平台应用商店上架和下架应用。","PERMISSION_WORKSPACE_GROUPS_VIEW":"部门查看","PERMISSION_WORKSPACE_GROUPS_VIEW_DESC":"查看企业空间部门的结构和成员。","PERMISSION_WORKSPACE_GROUPS_MANAGEMENT":"部门管理","PERMISSION_WORKSPACE_GROUPS_MANAGEMENT_DESC":"管理企业空间部门的结构、成员和权限。","PERMISSION_WORKSPACE_MEMBERS_VIEW":"成员查看","PERMISSION_WORKSPACE_MEMBERS_VIEW_DESC":"查看企业空间成员。","PERMISSION_WORKSPACE_MEMBERS_MANAGEMENT":"成员管理","PERMISSION_WORKSPACE_MEMBERS_MANAGEMENT_DESC":"邀请、编辑和移除企业空间成员。","PERMISSION_WORKSPACE_ROLES_VIEW":"角色查看","PERMISSION_WORKSPACE_ROLES_VIEW_DESC":"查看企业空间角色。","PERMISSION_WORKSPACE_ROLES_MANAGEMENT":"角色管理","PERMISSION_WORKSPACE_ROLES_MANAGEMENT_DESC":"创建、编辑和删除系统预置角色外的企业空间角色。","PERMIGROUP_WORKSPACE_SETTINGS":"企业空间设置","PERMISSION_WORKSPACE_SETTINGS_VIEW":"企业空间设置查看","PERMISSION_WORKSPACE_SETTINGS_VIEW_DESC":"查看企业空间设置。","PERMISSION_WORKSPACE_SETTINGS_MANAGEMENT":"企业空间设置管理","PERMISSION_WORKSPACE_SETTINGS_MANAGEMENT_DESC":"管理企业空间的基本信息、网络策略等设置。","PERMIGROUP_EDGE_APPS_MANAGEMENT":"边缘应用","PERMISSION_WORKSPACE_EDGE_APP_TEMPLATES_VIEW":"边缘模板查看","PERMISSION_WORKSPACE_EDGE_APP_TEMPLATES_MANAGEMENT":"边缘模板管理","NODE_GROUP":"节点组","NODE_GROUP_LIST":"节点组列表","NODE_GROUP_TREE":"节点组目录","NODE_GROUP_PL":"节点组","NODE_GROUP_DESC":"节点组(NodeGroup)用于管理物理资源,可包含一个或多个边缘节点,支持和项目的绑定来控制不同用户的资源管理权限。","NODE_GROUP_EMPTY_DESC":"请创建一个节点组。","SELECT_A_NODE_GROUP":"请选择一个节点组。","CREATE_NODE_GROUP":"创建节点组","NODE_GROUP_LOW":"节点组","BOUND_NODE_GROUP":"分配到节点组","BOUND_NODE_GROUP_TIP":"边缘节点被分配到节点组后不允许在节点组管理移除边缘节点。","NODE_GROUP_ADMINISTER":"节点组管理员","SELECT_A_NODE_GROUP_DESC":"将容器组副本分配给特定的节点组。","EDGE_NODE_COUNT":"边缘节点数量","WORKLOAD_SPECIFY_NODE_GROUP_NODE_DESC":"将容器副本分配给节点组中的特定节点。","UNBOUND_NODE_GROUP":"脱离节点组","UNBOUND_NODE_GROUP_TIP":"该边缘节点将要脱离节点组 {nodegroup}。请输入边缘节点名称 {resource} 以确认您了解此操作的风险。","UNBOUND_NODE_GROUP_SUCCESSFULLY":"脱离节点组成功","PARENT_NODE_GROUP":"上级节点组","EDGEWIZE_COMPUTING":"EdgeWize 边缘计算","EDGEWIZE_COMPUTING_DESC":"对边缘多集群以及每个边缘集群的基础资源、资源用量等的统一管理和监控。","EDGEWIZE_MANAGEMENT":"边缘集群管理","EDGEWIZE_MANAGEMENT_DESC":"对边缘多集群以及每个边缘集群的基础资源、资源用量等的统一管理和监控。","EDGEWIZE_MONITORING":"边缘集群监控","HOSTED_IN":"托管集群","HOSTED_IN_DESC":"请选择托管的 KubeSphere 集群。","HOSTED_IN_EMPTY":"","CREATE_EDGEWIZE_CLUSTER":"创建边缘集群","INPUT_EDGE_KUBECONFIG":"请填写集群的 KubeConfig","VIEW_KUBECONFIG":"查看 KubeConfig","DELETE_CLUSTER":"删除集群","REMOVE_EDGEWIZE_TIP_A":"边缘集群被删除后,边缘集群中原有的资源不会被自动清除。","REMOVE_EDGEWIZE_TIP_B":"边缘集群被删除后,边缘集群中原有的多集群配置数据不会被自动清除,卸载 KubeSphere 或删除关联资源时可能会导致用户数据丢失。","DELETE_EDGE_CLUSTER_NOTIFICATION_CONFIGURAITON":"删除该边缘集群的所有消息通知配置","EDGE_APPLICATION_WORKLOAD_PL":"边缘应用负载","EDGE_MONITORING_AND_ALERTING":"边缘资源告警","EDGE_CLUSTER_SETTINGS_PL":"边缘集群设置","EDGE_CLUSTER":"边缘集群","EDGE_CLUSTER_PL":"边缘集群","EDGE_CLUSTER_DESC":"","ADVERTISE_ADDRESS":"公开地址","ADVERTISE_ADDRESS_DESC":"设置边缘集群 KubeEdge 组件的公开地址,支持 IP 地址或域名","RESOURCE_USAGE_DESC":"您可以查看集群节点用量和项目用量的排行情况。","NODE_USAGE_RANKING":"节点用量排行","PROJECTS_USAGE_RANKING":"项目用量排行","SORT_BY_EDGE_EDGE_NAMESPACE_CPU_USAGE":"按 CPU 用量排行","SORT_BY_EDGE_NAMESPACE_CPU_USED_LIMITS_UTILISATION":"按已分配 CPU 上限(%)排行","SORT_BY_EDGE_NAMESPACE_CPU_USED_REQUESTS_UTILISATION":"按已分配 CPU 预留(%)排行","SORT_BY_EDGE_NAMESPACE_MEMORY_USAGE_WO_CACHE":"Ordenar por uso de memoria","SORT_BY_EDGE_NAMESPACE_MEMORY_USED_LIMITS_UTILISATION":"按已分配内存上限(%)排行","SORT_BY_EDGE_NAMESPACE_MEMORY_USED_REQUESTS_UTILISATION":"按已分配内存预留(%)排行","SORT_BY_EDGE_NAMESPACE_POD_COUNT":"按容器组配额用量(%)排行","SORT_BY_EDGE_NAMESPACE_NET_BYTES_RECEIVED":"按入站流量排行","SORT_BY_EDGE_NAMESPACE_NET_BYTES_TRANSMITTED":"按出站流量排行","SORT_BY_EDGE_NAMESPACE_PVC_BYTES_USED":"按持久卷用量排行","SORT_BY_EDGE_NAMESPACE_PVC_COUNT":"按容器组数量排行","SORT_BY_EDGE_NODE_CPU_USAGE":"按 CPU 用量排行","SORT_BY_EDGE_NODE_CPU_UTILISATION":"按 CPU 用量(%)排行","SORT_BY_EDGE_NODE_DISK_SIZE_UTILISATION":"按磁盘用量(%)排行","SORT_BY_EDGE_NODE_DISK_INODE_UTILISATION":"按 Inode 用量排行","SORT_BY_EDGE_NODE_LOAD1":"按 1 分钟 CPU 平均负载排行","SORT_BY_EDGE_NODE_LOAD5":"按 5 分钟 CPU 平均负载排行","SORT_BY_EDGE_NODE_LOAD15":"按 15 分钟 CPU 平均负载排行","SORT_BY_EDGE_NODE_MEMORY_UTILISATION":"按内存用量(%)排行","SORT_BY_EDGE_NODE_MEMORY_USAGE_WO_CACHE":"按内存用量排行","SORT_BY_EDGE_NODE_POD_UTILISATION":"按容器组用量排行","CONTAINER_RUNTIME_EMPTY_DESC":"请选择容器运行时","IMAGE_REPOSITORY_ADDRESS":"镜像仓库地址","IMAGE_REPOSITORY_ADDRESS_EMPTY_DESC":"请输入镜像仓库地址","NODE_ACCESS_PL":"节点接入","NODE_ADMINISTRATION_PL":"节点管理","NODE_ACCESS_DESC":"接入边缘节点的是您自己的边缘计算设备,用于运行边缘应用以处理您的数据,并安全、便捷地和云端应用进行协同。","NODE_ACCESS_EMPTY_DESC":"请注册一个边缘节点。","REGISTER":"注册","REGISTER_EDGE_NODE":"注册边缘节点","SINGLE_REGISTRATION":"单个注册","MULTIPLE_REGISTRATION":"批量注册","NODE_ACCESS_NAME":"节点名称","NODE_ACCESS_NAME_REQUIRED":"请输入节点名称","REGISTER_CENTER_ADDRESS":"注册中心地址","REGISTER_CENTER_ADDRESS_TIPS":"设置边缘节点注册的网关地址。","FILE_SERVER":"文件服务器","FILE_SERVER_TIPS":"IP:端口号或者域名,用于边缘节点从文件服务器下载安装包;如果为空,将 SCP 文件到边缘节点。","FILE_SERVER_ERROR_MESSAGE":"请填写正确的文件服务器","NODE_ACCESS_IP":"节点 IP 地址","NODE_ACCESS_IP_REQUIRED":"请输入节点 IP","NODE_ACCESS_IP_TIPS":"设置边缘节点 SSH 登录 IP 地址和端口号。","NODE_ACCESS_IPS_TIPS":"填写边缘节点 SSH 登录 IP 地址,用逗号「,」分开。","NODE_ACCESS_USERNAME_TIPS":"边缘节点的用户名","NODE_ACCESS_USERNAME_REQUIRED":"请输入边缘节点的用户名","NODE_ACCESS_PASSWORD_TIPS":"边缘节点的登录密码","NODE_ACCESS_PASSWORD_TIPS_REQUIRED":"请输入边缘节点的登录密码","NODE_ARCHITECTURE":"架构","NODE_ARCHITECTURE_REQUIRED":"请选择架构","MULTIPLE_REGISTER_TIPS":"批量注册的边缘节点名称自动填充为 hostname + mac 地址。","REGISTRY_NODE_VER_ERR":"边缘节点验证失败","REGISTRY_NODE_VER_SUCCESS":"边缘节点验证通过。","BATCH_ACCESS_NODE":"批量管理","NODE_STATUS_REGISTERING":"注册中","NODE_STATUS_REGISTERFAIL":" 注册失败","NODE_STATUS_UNMANAGED":"未纳管","ACCESS_MANAGE":"纳管","BATCH_ACTION":"批量{action}","NEXT_OP":"下一步: {action}","RE_REGISTER":"重新注册","CANCEL_MANAGED":"取消纳管","SYNC_TIME":"同步边缘节点时间","SYNC_TIME_TIPS":"您确定要同步边缘节点时间为当前云端时间吗?","EDIT_SOFTWARE_INFO":"编辑软件信息","CONTAINER_ENGINE":"容器引擎","CONTAINER_ENGINE_TIPS":"选择容器引擎配置边缘节点环境。","SOFT_INSTALLED_EMPTY":"未安装 {resource}","CONTAINER_ENGINE_EMPTY_DESC":"安装容器引擎后,您可以配置禁用、重启、修改配置文件等操作。","EDGE_SOFT":"边缘软件","EDGE_CORE_EMPTY_DESC":"安装 edgecore 后,您可以配置禁用、重启、修改配置文件等操作。","EDGE_SOFT_TIPS":"选择边缘软件配置边缘节点环境。","KUBE_EDGE":"KubeEdge","SOFT":"{value} 部署","SOFT_VERSION":"{value} 版本","UNINSTALL":"卸载","SOFT_RESTART":"重启","NODE_SOFT_STATUS_UNINSTALLED":"未安装","NODE_SOFT_STATUS_INSTALLED":"成功","ACCESS_NODE":"节点","ACCESS_NODE_PL":"节点","ACCESS_NODE_LOW":"节点名称","CANCEL_MANAGED_SUCCESSFULLY":"成功取消纳管","OTHER_SOFTS":"其他软件","CUSTOM_COMMAND":"自定义命令","NODE_STATUS_DEAD":"未运行","NODE_STATUS_UNKOWN":"未知","SOFT_SETTINGS":"{container} 设置","SOFT_SETTINGS_TIPS":"设置 {container} 配置文件 {filePath}","TASK_EXE_INFO":"任务执行信息","TASK_EXE_STATUS":"执行状态","TASK_KEY":"任务名/任务 ID","TASK_INFO":"任务内容","TASK_EXE_TIME":"执行时间","SPECIFICATION":"规格","EDGE_NODE_TIME":"边缘节点时间","SYNC_TIME_LATELY":"最近同步时间","SOFT_VERSION_DESC":"{name} 版本","PROCESSING":"任务执行中","PROCESS_WAIT":"等待中","PROCESS_END":"执行结束","SUCCEEDED":"成功","CANCEL_SELECT_ALL":"取消全选","UNINSTALL_SOFT":"卸载 {name}","UNINSTALL_SOFT_TIPS":"您确定要卸载 {name} 吗?卸载后,可能导致该边缘节点无法使用。","RESTART_SOFT":"重启 {name}","RESTART_SOFT_TIPS":"您确定要重启 {name} 吗?重启后,{type}将会更新,同时相关业务将会中断。","STOP_SOFT_TEXT":"禁用","STOP_SOFT":"禁用 {name}","STOP_SOFT_TIPS":"您确定要禁用 {name} 吗?禁用后,该边缘节点无法使用。","START_SOFT":"启用 {name}","BATCH_CONTAINER_SOFT_TIPS":"容器引擎支持 docker、containerd、nvidia-docker2。","BATCH_EDGE_SOFT_TIPS":"所选边缘软件如 kubeedge ,仅安装在有 edgecore 环境的节点;对没有环境的节点不生效。","SSH_PORT":"SSH 端口","SSH_PORT_DESC":"填写边缘节点 SSH 登录 IP 地址的端口号。","EDGE_WAY_TO_INSTALL":"安装方式","EDGE_WAY_TO_INSTALL_DESC":"可以自动安装边缘集群或者使用手工安装","NODE_GROUP_SETTINGS_PL":"节点组设置","NODE_GROUP_MEMBER_PL":"节点组成员","NODE_GROUP_ROLE_PL":"节点组角色","INVITE_EDGE_CLUSTER_MEMBER_DESC":"邀请用户加入边缘集群。","EDGE_CLUSTER_MEMBER":"边缘集群成员","EDGE_CLUSTER_ROLE":"边缘集群角色","EDGE_CLUSTER_ROLE_DESC":"节点组角色定义了在当前节点组下用户所拥有的权限。","EDGE_CLUSTER_NOT_FOUNDED":"未发现边缘节点","ADD_CLUSTER_FOR_NODE_GROUP":"请为节点组添加绑定一个边缘节点","BOUND_EDGE_NODE":"绑定边缘节点","SELECT_A_CLUSTER":"选择一个边缘节点","BOUND":"绑定","BOUND_PROJECT_PL":"绑定项目","BOUND_SUCCESSFULLY":"绑定成功","UNBOUND_SUCCESSFULLY":"解绑成功","NODE_GROUP_PROJECT_EMPTY":"没有可用项目","NODE_GROUP_PROJECT_EMPTY_DESC":"请问节点组绑定一个项目。","BOUND_A_PROJECT_FOR_NODE_GROUP":"请联系平台管理员或者集群管理员绑定项目。","NODE_GROUP_ROLE":"节点组角色","NODE_GROUP_ROLE_DESC":"节点组角色定义了在当前节点组下用户所拥有的权限。","ROLE_NODE_GROUP_VIEWER":"查看节点组中的所有资源。","ROLE_NODE_GROUP_ADMIN":"管理节点组中的所有资源。","INVITE_NODE_GROUP_MEMBER_DESC":"邀请用户加入节点组。","INVITE_NODE_GROUP_MEMBER_SEARCH_PLACEHOLDER":"输入用户名邀请节点组成员","NODE_GROUP_BASE_INFO_DESC":"基本信息提供节点组的信息概览,您可以查看节点组的基本信息。","DELETE_NODE_GROUP":"删除节点组","PERMIGROUP_NODEGROUPS_MANAGEMENT":"节点组资源","PERMISSION_NODEGROUPS_VIEW":"节点组查看","PERMISSION_NODEGROUPS_MANAGEMENT":"节点组管理","NO_EDGE_CLUSTER":"没有可用边缘节点","NO_EDGE_CLUSTER_DESC":"请联系平台管理员或者集群管理员添加边缘节点。","NO_NODE_GROUP_FOUNDED":"未发现节点组","NO_NODE_GROUP_FOUNDED_DESC":"请联系平台管理员或者集群管理员绑定节点组。","NODE_GROUP_COUNT":"节点组数量","abortPipeline":"检查结果是否影响后续任务","Absolute duration":"代码块所用的绝对时间","Add another credential":"增加一个凭证","Add conditions":"添加条件","Add nesting conditions":"添加嵌套条件","Add nesting steps":"添加嵌套步骤","Add Parallel Stage":"添加并行阶段","Add Step":"添加步骤","archiveArtifacts":"保存制品","Are you sure to close this pipeline Editor ?":"确定关闭流水线编辑?","artifacts":"制品","Authentication Token":"身份验证令牌","Automatically generated by GitHub":"由 GitHub 自动生成","bcc":"密送","BEHAVIORAL_STRATEGY":"行为策略","blocker":"阻断","BLOCKER":"阻塞","NOTICE":"提示","Branches":"分支","branch success":"分支成功","@somebody to help review":"可以@某人来帮助审核","Send messages by email":"可以通过邮件发送消息","Send messages in the build":"可以在构建中发送消息","Change Current Directory":"更改当前目录","Chinese is not allowed in the pipeline configuration":"配置中不允许含有中文","Clean when aborted":"清理失败不影响运行","Clean Workspace":"清理企业空间","Code Quality Check":"代码质量检查","COMMIT_ID":"提交 ID","Config File Path":"配置文件路径","config name":"配置名称","configs":"配置","Configuration error":"配置信息错误","container":"指定容器","Continue":"继续编辑","credential Id":"凭证 ID","Credential Id":"凭证 ID","credentialsId":"凭证 ID","critical":"严重","Current branch name must match the input value":"当前分支名需符合输入值","defaultValue -1 means not to discard":"默认值 -1: 不会丢弃记录","Delete all resources of the deployment file":"删除部署文件所对应的所有资源","Deploy resources to the Kubernetes cluster":"将资源部署到 kubernetes 集群","Didn't pass":"未通过","dir":"切换目录","Discard":"忽略","Discover branches from repository":"发现仓库上的分支","DISCOVER_PR_FROM_FORKS":"从 Fork 仓库发现 PR","DISCOVER_PR_FROM_ORIGIN":"从原仓库发现 PR","Discover pull requests from forks":"发现 Fork 存储库与目标存储库相同的 PR","Discover pull requests from origin":"发现原始存储库与目标存储库相同的 PR","Docker Container Registry Credentials":"Docker 容器仓库凭证","Docker Registry URL":"Docker 仓库 URL","dockerCredentials":"Docker 容器仓库凭证","Drag and drop tasks to sort":"可以拖拽任务进行排序","Duration":"持续时间","echo":"打印消息","Edit Config":"编辑配置","Edit Credential":"编辑凭证","Enable Variable Substitution in Config":"在配置中开启变量替换","enableConfigSubstitution":"开启变量替换","Enter an expression":"输入一个表达式","Environment name":"环境变量名","Executes the code inside the block with a determined time out limit.":"使用确定的超时限制执行块内的代码.","expression":"表达式","Failure":"失败","For accessing GitHub":"用于获取 GitHub","get token":"获取 Token","info":"提示","input":"审核","Inspection results do not affect subsequent tasks":"检查结果不影响后续任务","instance failed to match at least one schema":"至少需要一个嵌套步骤","Internal nested conditions only need to satisfy one":"内部嵌套的条件只需符合一个","Internal nesting conditions must be matched":"内部嵌套的条件需全部满足","Jenkinsfile syntax error, message":"Jenkinsfile 语法错误,消息","key File Variable":"私钥变量","keyFileVariable":"私钥变量","Kubeconfig Variable":"kubeconfig 变量","Kubernetes Namespace for Secret":"Kubernetes 密钥命名空间","Kubernetes Secrets":"Kubernetes 密钥","Line":"行","Load credentials into environment variables":"加载凭证到环境变量","Load the sonarqube configuration provided by Jenkins into the Pipeline.":"将 Jenkins 中的 sonarqube 配置加载到流水线中","mail":"邮件","major":"重要","minor":"次要","Missing one or more required properties: 'name'":"name 不能为空","Negative prefix":"否定前缀","NO_BRANCH_FOUND_TIP":"未发现分支。","No need":"不需要","Normal":"通用","Not Build":"未执行","Not fail build":"失败不影响运行","not support edit nested stage":"暂不支持编辑嵌套阶段","passphrase Variable":"密码变量","passphraseVariable":"密码变量","Password Variable":"密码变量","passwordVariable":"密码变量","PIPELINE_LOW":"流水线","Pipeline Configuration":"编辑流水线","Pipeline List":"流水线列表","pipeline syntax error":"流水线语法错误","Please add at least one step.":"至少添加一个步骤","Please input images name":"请输入镜像名称","Please input the credential name.":"请输入凭证名称。","Press enter for the next":"回车以进行下一步","Print message":"打印消息","Pull code by Git":"通过 Git 拉取代码","Pull code by SVN":"通过 SVN 拉取代码","Queue":"队列中","Recipient":"收件人","Registry Credentials":"仓库凭证","remote":"仓库地址","Run Pipeline":"运行流水线","Save Artifact":"保存制品","Repo Scanned Successfully":"Repo Scanned Successfully","WEBHOOK_PUSH":"Webhook 推送","secretName":"秘钥名称","secretNamespace":"密钥命名空间","SELECT_THIS_REPOSITORY":"选择此仓库","Sender":"发件人","sh":"shell 脚本","Shell commands can be executed in the container":"可以在容器中执行 shell 命令","Show Advanced Settings":"展示高级设置","show yaml editor":"用 YAML 编辑器编辑","sonar is the default config name.":"默认配置名称是 sonar","Sorry, you don't have the permission to do this.":"抱歉,您没有权限进行此操作","Specify a container to add nested tasks to execute inside the container":"指定容器,可添加嵌套任务在容器内执行","Start the follow-up task after the inspection":"检查通过后开始后续任务","Started By":"实施者","Subject":"主题","submitter":"审核者","submitterParameter":"提交参数","Text Variable":"文本变量","The conditions required to implement the current phase (optional).":"执行当前阶段所需要满足的条件 (可选)","The environment variable entered before running the pipeline is match the current value.":"运行流水线前输入的环境变量与当前值一致","The label on which to run the Pipeline or individual stage":"流水线或单个阶段的标签","This name has been used.":"此名称已被使用","Time Used":"用时","Timeout":"超时","timeout":"超时","Timeout after no activity in logs for this block":"此区块代码无日志输出后开始计算超时","timer":"定时器","TRIGGER_REMOTE_BUILD":"触发远程构建(例如,使用脚本)","Unnamed":"未命名","Use the following URL to remotely triggerworkbench the build":"使用以下 URL 远程触发构建","User types that can trigger builds":"可以触发构建的用户类型","username or group name, multiple values ​​used, separated":"用户名或组名,多个值使用英文逗号分隔","Username Variable":"用户名变量","usernameVariable":"用户名变量","waitForQualityGate":"代码质量检查(SonarQube)","Webhook":"Webhook","withCredentials":"添加凭证","withSonarQubeEnv":"Sonarqube 配置","Wrong Token":"Token 错误","You can execute shell commands or windows batch commands in the build.":"可以在构建中执行 shell 命令或者 windows 的 batch 命令","PIPELINE_DESC":"流水线是一组可扩展的工具,可以通过组合它们来实现持续集成和持续交付。\n 您可以在此页面创建并管理流水线。","username_password":"帐户凭证","login_Plateform":"登录平台","CREDENTIALS_DESC":"凭证是包含了一些敏感数据的对象,如用户名密码,SSH 密钥和 Token 等,\n 用于在流水线运行时, 为拉取代码、push/pull 镜像、SSH 执行脚本等过程提供认证","AUTHENTICATION_TOKEN_TIP":"如果需要通过访问预定义 URL 开触发构建,请开启此选项。\n 此功能的的一个典型用法是通过源代码管理系统的钩子脚本来进行触发。\n 您需要提供一个字符串形式的授权令牌,以便只有拥有授权令牌的人才能触发远程构建。","CRON_TIP":"This field follows the cron syntax (slightly different).\n Specifically, each line contains 5 fields separated by tabs or spaces.\n minutes: the first few minutes of an hour (0-59)\n hours: the first few hours of the day (0-23)\n the days of the month: the first few days of a month (1-31 )\n Month: The first few days of the first few days (0-12), the first few days of the week (0-12),\n 0 and 7 are Sundays. ","PIPELINES_BASEINFO_DESC":"请输入流水线的基本信息","PIPELINE_ADVANCE_SETTINGS_DESC":"\t为流水线配置复杂行为策略(可选)","CREDENTIALS_CREATE_DESC":"创建用于 DevOps 项目中的凭证","CHECKOUT_DESC":"拉取代码,常用于拉取非 Git 代码,例如 SVN 等等","PRIVATE_IMAGE_DESC":"To deploy from a private image repository,\n you need to create a mirrored repository and then pull the image. ","AUTHENTICATION_TOKEN_DESC":"使用以下 URL 远程触发构建:\n JENKINS_URL / job / JOB_NAME / build?token =TOKEN_NAME\n 或者/ buildWithParameters?token = TOKEN_NAME 可选择附加&cause =原因提供将包含在记录的构建原因中的文本。","PIPELINE_NO_CONFIG":"当前流水线中并未发现相关配置文件","EDIT_CREDENTIAL_DESC":"下列表单不会显示原有凭证信息,重新输入会将其覆盖。","pipeline_conditions":"条件","CODE_SMELL":"代码异味","BUG":"代码错误","VULNERABILITY":"代码漏洞","SECURITY_HOTSPOT":"安全","PIPELINE_CREATE_DESC":"初始化完成后将开始流水线的任务执行","PIPELINE_QUEUED_DESC":"您需要等待 agent 启动并执行流水线(注:如 agent 长时间没有启动请检查 agent 配置和集群资源情况)","waitForQualityGate_desc":"代码质量检查标准来源于SonarQube的 Quality Gate (质量阈),如果需要自定义检查标准请前往 SonarQube 设置","REVIEW_DESC":"流水线运行至此任务将会暂停,审核后可选择继续或终止","INPUT_DESC":"流水线运行至此任务将会暂停,创建者和被@的人可以选择继续或终止流水线","LoadPrevData_Desc":"检测到此流水线上次未编辑成功,是否加载上次数据继续编辑?","withSonarQubeEnv_DESC":"快速的定位代码中潜在的或者明显的错误","waitForQualityGate_DESC":"在执行代码分析后执行","script_DESC":"执行groovy脚本","pipeline_owner":"DevOps 项目的所有者,可以进行 DevOps 项目的所有操作","pipeline_maintainer":"DevOps 项目的主要维护者,可以进行项目内的凭证配置、流水线配置等操作","pipeline_developer":"DevOps 项目的开发者,可以进行流水线的触发以及查看","pipeline_reporter":"DevOps 项目的观察者,可以查看流水线的运行情况","PATTERN_PIPELINE_NAME_VALID_NAME_TIP":"名称不合法 (仅支持大小写字母、数字、_、-)","GET_GITHUB_TOKEN_DESC":"用于获取 GitHub 代码仓库\n \n 获取 Token\n ","PIPELINES_FOOTER_SEE_MORE":"前往分支详情页查看更多 →","JENKINS_LINS_ERROR":"第 {line} 行有语法错误","Invalid credential ID":"凭证 ID 格式不合法","Batch Run Fail":"批量运行失败","Run Start":"运行开始","Choose a Pipeline Template":"选择流水线模板","DEVOPS_PROJECT_DESC":"DevOps 项目用于对资源进行分组管理以及控制不同用户的资源管理权限。"} \ No newline at end of file diff --git a/packages/bootstrap/assets/v3dist/locale-zh.bcd25113c7319528f825.json b/packages/bootstrap/assets/v3dist/locale-zh.bcd25113c7319528f825.json new file mode 100644 index 00000000000..feb0caff5f9 --- /dev/null +++ b/packages/bootstrap/assets/v3dist/locale-zh.bcd25113c7319528f825.json @@ -0,0 +1 @@ +{"DELETE_CUSTOM_SCALING_WITH_WORKLOAD":"删除工作负载后,关联的自定义扩缩策略也将被删除。","ENT_TITLE":"KubeSphere 企业版","KS_QKCP_DESCRIPTION":"KubeSphere Enterprise 是由 QingCloud 开发的企业级容器平台,基于 KubeSphere 开源平台。","ABOUT_KUBESPHERE_ENTERPRISE":"关于 KubeSphere 企业版","KUBESPHERE_CLOUD_DESC":"KubeSphere Cloud 围绕 Kubernetes 构建的数字化生态,以极高要求、极高标准,为客户提供企业级的云原生服务与支持,现已有备份容灾、集群巡检、轻量集群等,助力您更便捷高效地管理、保护、交付生产级应用。","APP_AUTHORIZED":"已授权","APP_UNAUTHORIZED":"未授权","APP_UNAUTHORIZED_DESC":"此应用未授权。","VIEW_EVENTS":"查看事件","GPU_MEMORY":"显存","EDIT_TAGS":"编辑标签","ADD_TAGS":"添加标签","GPU_TEMP":"GPU 温度","GPU_ENERGY_USAGE":"GPU 功率(W)","GPU_ENERGY_NO_PERCENT_TCAP":"GPU 功率","GPU_MEMORY_USAGE_STATUS":"显存用量","NODE_GPU_MEMORY_USAGED":"已使用","NODE_GPU_MEMORY_UNUSAGED":"可用","ENT_CLUSTER_GATEWAY_DESC":"在集群、企业空间和项目中设置并管理外部网络接入网关和服务管理。","ENT_CLUSTER_ENABLE_GATEWAY_DESC":"在创建应用路由前,您需要启用外部网络访问门户,即网关。 此处将创建对应的应用路由控制器,用于转发请求到后端服务。","WORKSPACE_GATEWAY_PL":"企业空间网关","WORKSPACE_GATEWAY_NOT_ENABLED":"企业空间网关未启用","ENT_WORKSPACE_ENABLE_GATEWAY_DESC":"无法在集群管理页面上设置企业空间网关。如果您需要设置企业空间网关,请前往对应的企业空间。","ENT_PROJECT_ENABLE_GATEWAY_DESC":"无法在集群管理页面上设置项目网关。如果您需要设置项目网关,请前往对应的项目。","OPENSEARCH_DESC":"您可以使用 OpenSearch 日志接收器将日志数据导入 OpenSearch 数据库。 如需使用此功能,您需要提前部署 OpenSearch。","LOG_COLLECTION_OS_URL_TIPS":"目标 OpenSearch 实例的 IP 地址或主机名。","LOG_COLLECTION_OS_USER_TIPS":"用于访问 OpenSearch 的用户名。","LOG_COLLECTION_OS_PASSWORD_TIPS":"用于访问 OpenSearch 的密码。","BATCH_MANAGE":"批量管理","HAS_SAME_TAG":"标签已存在。请选择其他标签。","CLUSTER_REPEATED_TAGS_DESC":"标签的键必须在每个集群上唯一。","CLUSTER_MAX_TAGS_DESC":"每个集群可以携带最多 5 个标签。","EMPTY_TAG_LABEL_DESC":"请输入标签的键。","EMPTY_TAG_VALUE_DESC":"请输入标签的值。","HAS_ADD_TAGS":"已添加标签","CLUSTER_TYPE_DESC":"选择一个类型来标识集群的用途。","DELETE_CLUSTER_SWIPE_DESC":"我了解此操作的风险。","DELETE_CLUSTER_NOTIFICATION_CONFIGURAITON":"删除集群中的所有通知配置数据","REMOVE_CLUSTER_TIP_C":"集群被移除后,集群中原有的多集群配置数据不会被自动清除,卸载 KubeSphere 或删除关联资源时可能会导致用户数据丢失。请务必参照《KubeSphere 企业版集群管理指南》的“移除成员集群”章节手动清理被移除集群中原有的多集群配置数据。","CLUSTER_TAG":"集群标签","CLUSTER_TAGS":"集群标签","NO_CLUSTER_TAGS":"未发现集群标签","NO_CLUSTER_TAGS_DESC":"请创建集群标签。","CLUSTER_TAG_ADD_HELP":"如果没有标签满足要求,您可以创建标签。","CLUSTER_TAG_TOOLTIP_CONTENT":"同一集群上只能绑定相同标签键的一个标签值。每个集群最多绑定 5 个标签。","CLUSTER_LABEL":"集群标识","CLUSTER_LABEL_DESC":"标识集群的用途。","CLUSTER_LABEL_TOOLTIP_CONTENT":"建议通过标签的方式来标识集群,后续版本中会移除该“集群标识”功能,请谨慎使用。","TAG_PL":"标签","CREATE_TAGS":"创建标签","CREATE_TAGS_DESC":"不同标签的键可以相同。","ENT_CLUSTER_TAG_DESC":"键和值不能为空,最长 63 个字符。","CLUSTER_TAG_EMPTY_DESC":"请添加一个标签。","DELETE_MULTIPLE_TAGS":"批量删除标签","DELETE_TAG":"删除标签","DELETE_CLUSTER_TAG_DESC":"标签删除后将从所有集群上移除。","DELETE_CLUSTER_TAG_CONFIRM_DESC":"请输入标签的键和值 {resource} 以确认您了解此操作的风险。","DELETE_CLUSTER_TAGS_CONFIRM_DESC":"请输入标签的键和值 {resource} 以确认您了解此操作的风险。","EDIT_TAG":"编辑标签","ADD_TO_CLUSTERS":"添加到集群","ADD_TAG_TO_CLUSTERS":"添加标签到集群","ADD_TAG_DESC":"标签的键在每个集群上必须唯一。新标签不会覆盖现有的标签。","ADD_TAG_SUCCESSFUL":"标签添加成功。","REMOVE_FROM_CLUSTERS":"从集群上移除","REMOVE_TAG_FROM_CLUSTERS":"从集群上移除标签","REMOVE_TAG":"移除标签","REMOVE_TAG_DESC":"您确定从集群上移除标签吗?","REMOVE_TAG_SUCCESSFUL":"标签移除成功。","NO_CLUSTER_FOUND":"未发现集群","NAME_DESC_LENGTH":"名称只能包含小写字母、数字和连字符(-),必须以小写字母或数字开头和结尾,最长 {length} 个字符。","INVALID_NAME_DESC_LENGTH":"名称无效。名称只能包含小写字母、数字和连字符(-),必须以小写字母或数字开头和结尾,最长 {length} 个字符。","DEFAULT_IMAGE_REGISTRY":"默认镜像服务","DEFAULT_IMAGE_REGISTRY_TCAP":"默认镜像服务","SET_AS_DEFAULT":"设为默认","SET_AS_DEFAULT_REGISTRY_DESC":"设置镜像服务为默认镜像服务。如果没有特别指定,系统将使用默认镜像服务中的镜像创建容器。每个项目只允许存在一个默认镜像服务。","SET_DEFAULT_REGISTRY_SUCCESSFUL":"设置默认镜像服务成功。","ACTIVATION_CONDITION_SCAP":"激活条件","ALERTING_RULE_NAME":"规则名称","REFERENCE":"参考文档","NO_MONITOR_METRIC":"当前告警规则未触发告警,暂无监控数据。","DISABLE_MULTIPLE_ALERTING_POLICIES":"批量禁用规则组","ENABLE_ALERTING_POLICY":"启用规则组","ENABLE_MULTIPLE_ALERTING_POLICIES":"批量启用规则组","DISABLE_ALARM_TIP":"规则组被禁用后,系统将停止对被监控的资源生成告警。请谨慎执行此操作。","RESET_MULTIPLE_ALERTING_POLICIES":"批量重置规则组","RESET_MULTIPLE_ALERTING_POLICIES_DESC":"您确定重置规则组 {name} 吗?","RESET_SUCCESSFUL":"重置成功。","BUILT_IN_POLICIES_TOOLTIP":"Whizard 可观测中心启用后,请以具有 platform-admin 角色的用户登录然后在 Whizard 可观测中心管理默认规则组。","Rule":"规则","RULES_LIST_EMPTY":"请设置告警规则。","DURATION_REQUIRED":"请设置持续时间。","OPERATOR_REQUIRED":"请设置操作符。","NETWORK_BANDWIDTH":"网络带宽","FUNCTION_UPGRADE":"功能升级","FUNCTION_UPGRADE_DESC":"该集群下不支持容器组 IP 池的禁用、迁移和 Overlay 模式的编辑功能,如需使用请升级集群至 KubeSphere 企业版 3.4.0 及以上版本。","IPPOOL_OVERLAY_MODE":"Overlay 模式","IPPOOL_BLOCK_SIZE":"IP 池块大小","EDIT_OVERLAY":"编辑 Overlay 模式","FEATURE_UPGRADE":"特性升级","IPPOOL_USED_TIP":"容器组 IP 池已被容器组使用时,无法分配企业空间和删除 IP 池。如果存在正在使用容器组 IP 池的容器组,需要为容器组指定其他容器组 IP 池或删除容器组。","IP_POOL_RANGE":"IP 池范围","EDIT_POD_IP_POOL":"编辑容器组 IP 池","ENTER_NETWORK_SEGMENT":"请输入网段。","POD_IP_POOL_IP_RANGE":"容器组 IP 池的 IP 范围","POD_IP_POOL_NAME_DESC":"名称只能包含小写字母、数字和连字符(-),必须以小写字母或数字开头或结尾,最长 63 个字符。","IPIP_MODE":"IPIP 模式","IPIP_MODE_REQUIRED":"请选择一种 IPIP 模式。","IPIP_MODE_DESC":"在每个节点上创建一个 IP in IP 隧道来实现容器之间的通信,不能与 VXLAN 同时设置,两者都不设置时转变为 BGP 模式。","CONFIGURATION_MODE":"配置模式","VXLAN_MODE":"VXLAN 模式","VXLAN_MODE_REQUIRED":"请选择一种 VXLAN 模式。","VXLAN_MODE_DESC":"在每个节点上创建一个 VXLAN 隧道来实现容器之间的通信,不能与 IPIP 同时设置,两者都不设置时转变为 BGP 模式。","IP_POOL_BLOCK_SIZE_DESC":"IP 池用于分配 IP 的 block 的 CIDR 大小。","NAT_OUTGOING_DESC":"通过 NAT 方式跨 IPPool 通信","OPEN_NAT_OUTGOING":"开启 NAT outgoing","CLOSE_NAT_OUTGOING":"关闭 NAT outgoing","OPEN":"开启","OPENED":"已开启","CLOSED":"已关闭","OPENED_SUCCESSFUL":"开启成功","CLOSED_SUCCESSFUL":"关闭成功","SELECT_NODE_DES":"使用标签选择器为 IP 池匹配合适的节点。","SELECT_LABEL_ALL_RESOUCE":"匹配标签选择范围内的所有资源。","ALL_DISABLED":"全部禁止","DISABLE_SELECT_NODE":"禁止节点选择。","NODE_RANGE":"节点范围","LABEL_SELECT":"标签选择","EDIT_OVERLAY_MODE":"编辑 Overlay 模式","DISABLE_POD_IP_POOL":"禁用容器组 IP 池","DISABLE_POD_IP_POOL_DESC":"容器组 IP 池禁用后将不会继续 IP 地址的分配,也不会影响已经分配 IP 地址的容器组的网络。迁移容器组 IP 时, 新 IP 池可用地址数量不能少于当前 IP 池使用的 IP 地址,迁移完成后,将重启工作负载。禁用 ip 池会自动解除项目绑定,请谨慎操作!","MIGRATE_POD_IP_POOL":"迁移容器组 IP 池","MIGRATE_POD_IP_POOL_DESC":"将已经分配 IP 地址的容器组迁移至新的容器组 IP 池。","SELECT_POD_IP_POOL":"请选择容器组 IP 池。","MIGRATE_POD_IP_POOL_TIP":"容器组的 IP 地址将根据选择的容器组 IP 池进行分配。","SELECT_POD_IP_POOL_DESC":"请选择容器组 IP 池。","IPPOOL_IS_AUTO_ASSIGN":"是否自动分配","SELECT_POD_IP_POOL_TO_NODEGROUP_DESC":"将选择的容器组 IP 池添加到节点组。","CREATED_AGO":"创建于 {diff}","UPDATED_AGO":"更新于 {diff}","GPU_USAGE_SCAP":"GPU 用量","GPU_MEMORY_USAGE_SCAP":"显存用量","QUOTA_USAGE":"用量","PROJECT_CONFIG_QUOTAS_TIP":"只显示有资源上限和预留的项目数据。","APPLICATION_CLUSTER_QUOTA_STATISTICS":"集群配额统计","CPU_QUOTA":"CPU 配额","MEMORY_QUOTA":"内存配额","SORT_BY_NODE_GPU_UTILIZATION":"按 GPU 用量(%)排行","SORT_BY_NODE_GPU_MEMORY_UTILIZATION":"按显存用量(%)排行","SORT_BY_NAMESPACE_GPU_USAGE":"按 GPU 用量排行","SORT_BY_NAMESPACE_GPU_MEMORY_USAGE":"按显存用量排行","SORT_BY_WORKLOAD_GPU_USAGE":"按 GPU 用量排行","SORT_BY_WORKLOAD_GPU_MEMORY_USAGE":"按显存用量排行","SORT_BY_WORKSPACE_GPU_USAGE":"按 GPU 用量排行","SORT_BY_WORKSPACE_GPU_MEMORY_USAGE":"按显存用量排行","SORT_BY_NODE_GPU_USAGE":"按 GPU 用量排行","SORT_BY_NODE_GPU_MEMORY_USAGE":"按显存用量排行","SORT_BY_CLUSTER_GPU_USAGE":"按 GPU 用量排行","SORT_BY_CLUSTER_GPU_MEMORY_USAGE":"按显存用量排行","NODE_RESOURCE_USAGE":"节点资源用量","USED_VALUE_CORES_PERCENTAGE":"已使用:{value, plural, =1 {1 核} other {# 核}}({percentage})","USED_VALUE_UNIT_PERCENTAGE":"已使用:{value} {unit}({percentage})","TOTAL_VALUE_CORES":"总量:{value, plural, =1 {1 核} other {# 核}}","TOTAL_VALUE_UNIT":"总量:{value} {unit}","ENT_ENABLE_GATEWAY_TIP":"若要使用网关,请在集群、企业空间或项目中配置网关。","ANNOTATION_FORMAT_DESC":"注解的键只能包含字母、 数字、 连字符(-), 下划线(_),斜线(/)和句点(. ),必须以字母或数字开头和结尾,最长 63 个字符(如果键包含域名,最长 253 个字符)。","BLOCK":"块","DRIVER":"驱动","DRIVER_REQUIRED":"请输入驱动","DRIVER_FORMAT_ERROR":"驱动格式错误, 仅支持小写字母、数字、中划线和点","DRIVER_PLACEHOLDER":"例如:csi.example.com","FSTYPE_PLACEHOLDER":"例如:ext4","VOLUME_ATTRIBUTES":"卷属性","NODE_EXPAND_KEY":"节点展开密钥","NODE_PUBLISH_KEY":"节点发布密钥","NODE_STAGING_KEY":"节点暂存密钥","CONTROLLER_EXPAND_KEY":"控制器展开密钥","CONTROLLER_PUBLISH_KEY":"控制器发布密钥","PATH_TYPE":"路径类型","ANY_PATH":"任意路径,不需要检查目标路径","DIRECTORY_OR_CREATE":"一个目录,如果该目录不存在,则自动创建一个目录","FILE_OR_CREATE":"一个文件,如果该文件不存在,则自动创建一个文件","DIRECTORY_EXIST":"一个现有的目录","FILE_EXIST":"一个现有的文件","SOCKET_EXIST":"一个现有的 socket","CHARACTER_DEVICE_EXIST":"一个现有的字符设备","BLOCK_DEVICE_EXIST":"一个现有的块设备","SERVER_IP_ADDRESS":"Server IP 地址","SECRET_INFO":"密钥信息","BIND_EXISTING_PVC":"绑定已有持久卷创建","BIND_EXISTING_PVC_DESC":"选择已有的持久卷来创建卷。","PV_STATUS_FREED":"已释放","PV_EMPTY_DESC":"如果没有持久卷满足要求,请联系集群管理员创建。","PLEASE_SELECT_PERSISTENT_VOLUME":"请选择持久卷","ADMIN_CREATE_PV_DESC":"如果没有持久卷满足要求,您可以 创建持久卷。","UNCLASSIFIED":"未分类","FILE_STORAGE":"文件存储","BLOCK_STORAGE":"块存储","storageclasses":"存储类型","EDGE_GPU_MEMORY_USAGE_SCAP":"GPU 显存用量","NPU_USAGE_SCAP":"NPU 用量","NPU_MEMORY_USAGE_SCAP":"NPU 显存用量","NPU_USAGE":"NPU 用量","NPU_MEMORY_USAGE":"NPU 显存用量","EDGE_GPU_MEMORY_USAGE":"GPU 显存用量","EDGE_GPU_MEMORY_UTILIZATION":"GPU 显存用量(%)","EDGE_GPU_MEMORY_USAGE_STATUS":"GPU 显存使用状态","EDGE_NODE_GPU_MEMORY_USAGED":"已用显存,","EDGE_NODE_GPU_MEMORY_UNUSAGED":"空闲显存","NPU_TEMP":"NPU 温度","NPU_ENERGY_NO_PERCENT_TCAP":"NPU 功率","NPU_VOLTAGE":"NPU 电压","NPU_MEMORY_USAGE_STATUS":"NPU 显存使用状态","EDGE_NODE_NPU_MEMORY_USAGED":"已用 NPU 显存,","EDGE_NODE_NPU_MEMORY_UNUSAGED":"未用 NPU 显存,","NPU_HEALTH_STATUS":"NPU 健康状态","BACK_EDGEWIZE_NODEGROUP":"返回边缘节点组","APPLICATION_RESOURCE_QUOTAS":"应用资源配额","UNAUTHORIZED_FEATURE":"未授权功能","UNAUTHORIZED_FEATURE_DESC":"此功能未被授权。请更新许可证以使用此功能。","ADMIN_INACTIVATED_LICENSE_DESC":"KubeSphere 企业版未激活。请激活 KubeSphere 企业版。","INACTIVATED_LICENSE_DESC":"KubeSphere 企业版未激活。请联系平台管理员激活 KubeSphere 企业版。","ADMIN_SUB_EXPIRED_LICENSE_DESC":"订阅服务已过期, 如果您想要继续体验完整的服务请输入激活信息。","SUB_EXPIRED_LICENSE_DESC":"订阅服务已过期, 请联系平台管理员更新许可证。","ADMIN_MA_EXPIRED_LICENSE_DESC":"维保已过期。如需维保服务请与商务联系。","MA_EXPIRED_LICENSE_DESC":"维保已过期。","ADMIN_UPDATE_LICENSE_DESC":"{type}服务将于 {day, plural, =1 {1 天} other {# 天}}后过期。如需维保服务请与商务联系","UPDATE_LICENSE_DESC":"{type}服务将于 {day, plural, =1 {1 天} other {# 天}}后过期。如果您想要继续体验完整的服务,请联系平台管理员更新许可证。","ADMIN_OVER_RESOURCE_LICENSE_LIMIT":"您当前所纳管的资源已超出授权范围,无法对现有资源进行操作和创建新的资源。如果您想要继续体验完整的服务,请更新许可证。","OVER_RESOURCE_LICENSE_LIMIT":"您当前所纳管的资源已超出授权范围,无法对现有资源进行操作和创建新的资源。如果您想要继续体验完整的服务,请联系平台管理员更新许可证。","ACTIVATE":"激活","ADMIN_AUTHORIZED_INVALID_LICENSE_DESC":"许可证无效。请更新许可证或联系 KubeSphere 技术支持。","AUTHORIZED_INVALID_LICENSE_DESC":"许可证无效。请联系平台管理员更新许可证。","EXPIRED_INVALID_LICENSE_DESC":"许可证已过期。请联系平台管理员更新许可证。","ADMIN_EXPIRED_INVALID_LICENSE_DESC":"许可证已过期。请更新许可证。","PLATFORM_FEATURES":"平台功能","RADON_DB_FEATURES":"RadonDB 功能","PASSWORD_CHARACTERS":"包含至少 1 个特殊字符(~!@#$%^&*()-_=+\\|[{}];:'\",<.>/? 或空格)。","I_AGREE_TO_THE":"我同意","TITLE_USERNAME":"{title} 用户名","TITLE_LOG_IN":"{title} 登录","NOTIFICATION_SUBSCRIPTION":"通知订阅","NOTIFICATION_SUBSCRIPTION_LOW":"通知订阅","NOTIFICATION_SUBSCRIPTION_DESC":"针对同一种通知渠道您可以配置多个不同的过滤条件的接收者。","NOTIFICATION_RECEIVER_EMPTY_DESC":"可以创建一个通知订阅。","EDIT_NOTIFICATION_SUBSCRIPTION":"编辑通知订阅","CREATE_NOTIFICATION_SUBSCRIPTION":"创建通知订阅","NOTIFICATION_SUBSCRIPTION_DETAIL":"通知订阅详情","NOTIFICATION_SUBSCRIPTION_TOTAL":"通知订阅账号数量","NOTIFICATION_SUBSCRIPTION_ACCOUNT":"通知订阅账号","NOTIFICATION_EMAIL_SUBSCRIPTION_DESC":"邮件通知订阅设置可前往通知订阅设置页面进行设置。","ADD_EMAIL_NOTIFICATION_SUBSCRIPTION":"添加邮件通知订阅","NOTIFICATION_RECEIVER_STATUS":"通知接收状态","NOTIFICATION_RECEIVER":"通知接收","NOTIFICATION_SUBSCRIPTION_PL":"通知订阅","NOTIFICATION_SUBSCRIPTION_EMPTY_DESC":"请创建通知订阅","NOTIFICATION_ENABLED":"通知已启用","NOTIFICATION_DISABLED":"通知已禁用","ENABLE_SUCCESSFUL":"启用成功。","NODE_TARGET_REPEAT":"监控目标重复。请选择其他监控目标。","DEPLOYMENTS_VALUES":"部署: {values}","STATEFULSETS_VALUES":"有状态副本集:{values}","DAEMONSETS_VALUES":"守护进程集:{values}","WORKLOADS_VALUES":"工作负载:{values}","RULE_NAME_REQUIRED":"请设置规则名称。","MONITOR_TARGET_EMPTY":"请选择监控目标。","ALARM_TARGET_REPEAT":"监控目标不能重复。请选择其他监控目标。","CLUSTER_FIELD_EMPTY":"请选择集群。","SELECT_A_TARGET_NODE":"请选择节点。","SET_NAMESPACE_BELONGS_TO":"请选择项目。","NAME_SPACE_REPEAT":"项目不能重复,请选择另一个项目。","THRESHOLD_INVALID":"请输入有效的指标阈值。","SEVERITY_REQUIRED":"请选择告警级别。","ALERT_RULE_REQUIRED":"请输入规则表达式。","MESSAGE_REQUIRED":"请输入消息概要。","RULE_LABEL_SETTING":"标签设置","RULE_LABEL_SETTING_DESC":"可在接收者配置中指定过滤条件过滤相关标签。","INCORRECT_KEY_DESC":"键值不正确","MONITOR_TARGET_CLUSTER_DELETED_DESC":"所选集群中存在已经被移除的集群,请重新选择","CLUSTER_DELETED":"集群已被移除","DATA_ACCESS":"数据接入","DATA_QUERY":"数据查询","LONG_TERM_STORAGE":"长期存储","RULE_CALCULATION":"规则计算","CONTAINER_QUOTA":"容器配额","GATEWAY_COMPONENT_LOW":"存储网关","COMPONENT_REPLICA_COUNT":"组件副本数量","REPLICA_DESC":"设置 {resource} 的副本数量,默认值为 {default}。","DATA_ROUTER":"数据路由","DATA_RETENTION_LOW":"数据保留","DATA_RETENTION_REPLICA_COUNT":"数据保留副本数量","ROUTER_COMPONENT_LOW":"数据路由","LOCAL_STORAGE":"本地存储","LOCAL_STORAGE_LOW":"本地存储","LOCAL_STORAGE_TIME":"本地数据存储时间 (天)","LOCAL_STORAGE_TIME_DESC":"设置本地数据的存储时间。时间至少为 3 天,默认为 7 天。","LOCAL_STORAGE_ERROR_MESSAGE":"本地存储组件副本数量不能小于数据保留副本的数量。","BASIC_SETTING":"基础设置","CACHE_SETTING":"缓存设置","QUERY_COMPONENT_LOW":"Query 组件","CACHE_COMPONENT_LOW":"Cache 组件","LONG_TERM_STORAGE_TIPS":"请先配置对象存储的参数,再配置网关、保留期和降采样组件的参数。","STORAGE_NOT_ENABLED":"未启用长期存储","STORAGE_ENABLE_GATEWAY_DESC":"启用长期存储后,您可以配置对象存储、网关、保留周期与降采样的组件参数。","OBJECT_STORAGE":"对象存储","OBJECT_STORAGE_TIPS":"请先配置对象存储的参数。","COMPACTOR":"Compactor 组件","STORE_GATEWAY":"存储网关","COMPRESSION_DOWNSAMPLING":"压缩和降采样","BUCKET":"Bucket 名称","BUCKET_NAME_DESC":"S3 对象存储桶的名称。","BUCKET_NAME_EMPTY_TIP":"请输入桶名称。","REGION":"区域","REGION_DESC":"您创建 Bucket 的地理区域。","ENDPOINT_DESC":"要连接的 AWS S3 对象存储地址。","ENDPOINT_EMPTY_TIP":"请输入终端节点。","ACCESS_KEY":"Access Key","ACCESS_KEY_DESC":"与 AWS 访问密钥 ID 相关联的密钥。","ACCESS_KEY_EMPTY_TIP":"请输入 Access Key。","SECRET_KEY_DESC":"与 AWS Access Key ID 关联的密钥。","SECRET_KEY_EMPTY_TIP":"请输入 Secret Key。","HTTP_PROTOCOL":"HTTP 协议","HTTP_PROTOCOL_DESC":"使用不安全的 HTTP 协议。","ADD_STORAGE_CLASS":"添加存储类","ADD_STORAGE_CLASS_DESC":"为对象存储添加用户元数据。","OBJECT_STORAGE_PARAMETERS":"对象存储参数","HTTP_CONFIGURATION":"HTTP 配置","HTTP_CONFIGURATION_DESC":"配置接收方用于与基于 HTTP 的 API 服务通信的 HTTP 客户端。","TLS_CERTIFICATE":"TLS 证书","TLS_CERTIFICATE_VERIFY":"TLS 证书验证 ","TLS_CERTIFICATE_VERIFY_DESC":"通过提交数字证书证明您的身份或表明您有权访问在线服务。","TLS_CONNECTION":"TLS 连接","CA_CERTIFICATE_DESC":"用于验证服务器证书的 CA文件。","CERT_CERTIFICATE":"Cert 文件","CERT_CERTIFICATE_DESC":"用于向服务器进行客户端证书身份验证的证书文件。","KEY_FILE":"密钥","KEY_FILE_DESC":"用于向服务器进行客户端证书身份验证的密钥文件。","SERVER_NAME_DESC":"ServerName 扩展以指示服务器的名称。","SERVER_CERTIFICATE_VERFICATION":"服务器证书验证","SERVER_CERTIFICATE_VERFICATION_DESC":"通过提交数字证书证明您的身份或表明您有权访问在线服务。","RETENTION_RAW":"原始数据存储时间 (天)","RETENTION_RAW_DESC":"原始数据存储时间。到期后,原始数据将被删除。","RETENTION_FIVE_MIN":"5m 降采样数据存储时间(天)","RETENTION_FIVE_MIN_DESC":"指定降采样到数据点 5 分钟间隔的数据存储时间。","RETENTION_ONE_HOUR":"1h 降采样数据存储时间(天)","RETENTION_ONE_HOUR_DESC":"指定降采样到数据点 1 小时间隔的数据存储时间。","DISABLE_STORAGE":"禁用长期存储","DISABLE_STORAGE_DESC":"您确定要禁用长期存储组件吗? 禁用后,对象存储配置将被删除,监测数据会被保留,但无法查询。","ALERT_MANAGEMENT":"告警管理","SELECT_CLUSTER":"选择集群","CUSTOM_PANEL_DESC":"选择需要监控的集群。","WHIZARD_MONITORING.BUILT_IN_ALERTING_PL":"内置告警","WHIZARD_MONITORING.CUSTOM_ALERTING_PL":"自定义告警","WHIZARD_MONITORING.RESOURCE_RANKING_PL":"资源统计排行","WHIZARD_MONITORING.RESOURCE_RANKING_DESC":"资源统计排行提供集群资源用量排行情况。","WHIZARD_MONITORING.RESOURCE_MONITORING":"资源监控","WHIZARD_MONITORING.MULTI_CLUSTER_MONITOR":"多集群监控","WHIZARD_MONITORING.PACK_UP":"收起","WHIZARD_MONITORING.UNFOLD":"展开","WHIZARD_MONITORING.COLLAPSE_CLUSTER_LIST":"收起集群列表","WHIZARD_MONITORING.UNFOLD_CLUSTER_LIST":"展开集群列表","WHIZARD_MONITORING.RESOURCE_FILTER":"资源查询","WHIZARD_MONITORING.OBSERVABILITY_ALL_CLUSTERS":"全部集群","WHIZARD_MONITORING.SUCCEEDED":"成功完成","PERSISTENT_VOLUME_CLAIM_LOW_PL":"持久卷声明","GRAPHICS_MEMORY_USAGE":"显存用量","QUOTA_REQUEST":"预留","QUOTA_LIMIT":"上限","QUOTA_TOTAL":"总量","CPU_QUOTA_USAGE":"已分配 CPU 资源","MEMORY_QUOTA_USAGE":"已分配内存资源","QUOTA_ALLOCATED":"已分配","VALUE_CORES":"{value, plural, =1 {1 核} other {# 核}}","VALUE_UNIT":"{value} {unit}","ALLOCATED_TOTAL":"已分配/总量","CLUSTER_ROLES_AND_MEMBERS":"集群成员和角色","CLUSTER_MEMBER_SCAP":"集群成员","CLUSTER_MEMBERS_SCAP":"集群成员","CLUSTER_ROLE_SCAP":"集群角色","CLUSTER_ROLES_SCAP":"集群角色","OBSERVABILITY_CENTER":"Whizard 可观测中心","DISTRIBUTED_OBSERVABILITY_CENTER_DESC":"统一的监控面板,提供平台纳管的所有集群的指标数据。","GLOBAL_ALERTS":"全局告警","GLOBAL_ALERTS_TOOLTIP":"这里仅统计当前所选择集群的告警","NONE_ALERT":"未发现告警","ALERT_EMPTY_DESC":"在所有集群中未发现全局告警。","SORT_BY_CLUSTER_CPU_USAGE":"按 CPU 用量排行","SORT_BY_CLUSTER_CPU_UTILISATION":"按 CPU 用量(%)排行","SORT_BY_CLUSTER_MEMORY_USAGE_WO_CACHE":"按内存用量排行","SORT_BY_CLUSTER_MEMORY_UTILISATION":"按内存用量(%)排行","SORT_BY_CLUSTER_DISK_SIZE_USAGE":"按磁盘用量排行","SORT_BY_CLUSTER_DISK_SIZE_UTILISATION":"按磁盘用量(%)排行","SORT_BY_CLUSTER_POD_COUNT":"按容器组数量排行","SORT_BY_CLUSTER_POD_UTILISATION":"按容器组配额用量(%)排行","SORT_BY_NODE_POD_COUNT":"按容器组数量排行","SORT_BY_NODE_CPU_USAGE":"按 CPU 用量排行","SORT_BY_NODE_MEMORY_USAGE_WO_CACHE":"按内存用量排行","SORT_BY_NODE_LOAD5":"按 5 分钟 CPU 平均负载排行","SORT_BY_NODE_LOAD15":"按 15 分钟 CPU 平均负载排行","SORT_BY_POD_CPU_USAGE":"按 CPU 用量排行","SORT_BY_POD_CPU_USED_REQUESTS_UTILISATION":"按已分配 CPU 预留(%)排行","SORT_BY_POD_CPU_USED_LIMITS_UTILISATION":"按已分配 CPU 上限(%)排行","SORT_BY_POD_MEMORY_USAGE_WO_CACHE":"按内存用量排行","SORT_BY_POD_MEMORY_USED_REQUESTS_UTILISATION":"按已分配内存预留(%)排行","SORT_BY_POD_MEMORY_USED_LIMITS_UTILISATION":"按已分配内存上限(%)排行","SORT_BY_POD_NET_BYTES_TRANSMITTED":"按出站流量排行","SORT_BY_POD_NET_BYTES_RECEIVED":"按入站流量排行","SORT_BY_POD_PVC_BYTES_USAGE":"按持久卷用量排行","SORT_BY_POD_PVC_BYTES_UTILISATION":"按持久卷用量(%)排行","SORT_BY_NAMESPACE_CPU_USED_REQUESTS_UTILISATION":"按已分配 CPU 预留(%)排行","SORT_BY_NAMESPACE_CPU_USED_LIMITS_UTILISATION":"按已分配 CPU 上限(%)排行","SORT_BY_NAMESPACE_MEMORY_USED_REQUESTS_UTILISATION":"按已分配内存预留(%)排行","SORT_BY_NAMESPACE_MEMORY_USED_LIMITS_UTILISATION":"按已分配内存上限(%)排行","SORT_BY_NAMESPACE_PVC_BYTES_USED":"按持久卷用量排行","SORT_BY_NAMESPACE_PVC_COUNT":"按容器组数量排行","SORT_BY_POD_GPU_USAGE":"按 GPU 用量排行","SORT_BY_POD_GPU_MEMORY_USAGE":"按显存用量排行","CPU_USAGE_TCAP":"CPU 用量","CPU_UTILISATION_TCAP":"CPU 用量(%)","MEMORY_USAGE_TCAP":"内存用量","MEMORY_UTILISATION_TCAP":"内存用量(%)","DISK_SIZE_USAGE_TCAP":"磁盘用量","DISK_SIZE_UTILISATION_TCAP":"磁盘用量(%)","POD_COUNT_TCAP":"容器组数量","NODE_POD_UTILISATION_TCAP":"容器组配额用量(%)","NODE_LOAD1_TCAP":"CPU 平均负载(1 分钟)","NODE_LOAD5_TCAP":"CPU 平均负载(5 分钟)","NODE_LOAD15_TCAP":"CPU 平均负载(15 分钟)","INODE_USAGE_TCAP":"Inode 用量(%)","METER_NET_RECEIVED_USAGE_TCAP":"入站流量","METER_NET_TRANSMITTED_USAGE_TCAP":"出站流量","CPU_USED_REQUESTS_UTILISATION_TCAP":"已分配 CPU 预留(%)","CPU_USED_LIMITS_UTILISATION_TCAP":"已分配 CPU 上限(%)","MEMORY_USED_REQUESTS_UTILISATION_TCAP":"已分配内存预留(%)","MEMORY_USED_LIMITS_UTILISATION_TCAP":"已分配内存上限(%)","PVC_BYTES_USED_TCAP":"持久卷用量","PVC_BYTES_UTILISATION_TCAP":"持久卷使用率 (%)","POD_UTILISATION_TCAP":"容器组配额用量(%)","GPU_USAGE":"GPU 用量","GPU_UTILIZATION":"GPU 用量(%)","GPU_MEMORY_USAGE":"显存用量","GPU_MEMORY_USAGE_TCAP":"显存用量","GPU_MEMORY_UTILIZATION":"显存用量(%)","NODE_GPU_UTILIZATION":"GPU 用量(%)","NODE_GPU_MEMORY_UTILIZATION":"显存用量(%)","GPU_USAGE_TCAP":"GPU 用量","SORT_BY_DESC":"降序","SORT_BY_ASC":"升序","OOM_KILL_PODS":"OOM 终止容器组","PENDING_PODS":"等待中容器组","EVICTED_PODS":"被驱逐容器组","QOS_GUARANTEED":"Guaranteed:对于每个容器组中的容器,CPU/内存请求和上限数值相等。","QOS_BURSTABLE":"Burstable:不符合 Guaranteed 的条件,并且至少有一个容器具有资源预留或上限。","QOS_BESTEFFORT":"BestEffort:没有设置资源预留和上限。","COMPONENT_PARAMETER_CONFIG":"组件设置","LICENSE":"许可证","LICENSE_DESC":"查看当前许可证的信息,并在需要时更新许可证。","ACTIVATED":"已激活","INACTIVATED":"未激活","EXPIRED":"已过期","LICENSE_ID":"许可证 ID","AUTHORIZED_ORGANIZATION":"授权组织","AUTHORIZATION_TYPE":"授权类型","AUTHORIZED_STATUS":"授权状态","ACTIVATION_TYPE":"激活类型","WARRANTY":"维保","WARRANTY_PERIOD":"维保中","WARRANTY_EXPIRES":"维保过期","SUBSCRIPTION":"订阅","SUBSCRIPTION_IN_PROGRESS":"订阅中","SUBSCRIPTION_EXPIRES":"订阅过期","PERMANENT_AUTHORIZATION":"永久授权","ACTIVATION_TIME":"激活时间","UPDATE_LICENSE":"更新许可证","ACTIVATION_CODE":"激活码","OBTAIN_ACTIVATION_CODE":"获取激活码","OBTAIN_ACTIVATION_CODE_DESC":"访问 {title} 获取激活码。","INVALID_LICENSE":"许可证无效","PRODUCT_SERVICE_AUTHORIZATION":"KubeSphere 企业版授权","INVALID_ACTIVATION_CODE_DESC":"激活码无效。请输入 JSON 格式的 Base64 字符串。","EMPTY_LICENSE":"许可证无效。","INVALID_SIGNATURE":"签名无效。","FORMAT_ERROR":"激活码无效。请输入 JSON 格式的 Base64 字符串。","AUTHORIZED_FEATURES":"授权功能","FEATURE":"功能","CURRENT_USER":"当前用户","ADD_CURRENT_USER":"添加当前用户","NOTIFICATION_HISTORY":"通知历史","NOTIFICATION_HISTORY_PL":"通知历史","NOTIFICATION_HISTORY_DESC":"查看已发送给用户的通知。","ALERTING_NAME_TCAP":"告警名称","ALERTING_TYPE_TCAP":"告警类型","ALERTING_SEVERITY_TCAP":"告警级别","NOTIFICATION_MESSAGE":"消息","NOTIFICATION_TIME":"通知时间","METRIC_ALERT":"指标告警","EVENT_ALERT":"事件告警","AUDIT_ALERT":"审计告警","LOGGING_ALERT":"日志告警","ALERT_RESOLVED":"已解决","NOTIFICATION_SETTINGS":"通知设置","SILENCE_POLICY":"静默策略","SILENCE_POLICY_LOW":"静默策略","SILENCE_POLICY_PL":"静默策略","SILENCE_POLICY_DESC":"设置系统在特定情况下不发送通知。","SILENCE_TIME":"静默时间","CONTINUOUS_SILENCE":"持续静默","PERIODIC_SILENCE":"周期性静默","SPECIFIC_TIME_RANGE_SILENCE":"在特定时间范围内静默","CUSTOM_SILENCE":"基于 Cron 表达式静默","SILENCE_CONDITIONS":"静默条件","ALL_SILENT_NOTIFICATIONS":"对所有通知静默","CUSTOM_SILENT_NOTIFICATIONS":"自定义静默条件","EDIT_SILENCE_CONDITIONS":"编辑静默条件","EDIT_SILENCE_TIME":"编辑静默时间","CREATE_SILENCE_POLICY_SUCCESSFULLY":"创建成功。","EDIT_SILENCE_POLICY_SUCCESSFULLY":"更新成功。","CREATE_SILENCE_POLICY":"创建静默策略","ALL_SILENT_NOTIFICATIONS_TCAP":"对所有通知静默","ALL_SILENT_NOTIFICATIONS_DESC":"静默策略适用于所有通知。","CUSTOM_SILENT_NOTIFICATIONS_TCAP":"自定义静默条件","CUSTOM_SILENT_NOTIFICATIONS_DESC":"静默策略仅适用于符合特定条件的通知。","INVALID_SILENCE_CONDITION":"请设置正确的静默条件。","SILENT_TEMPLATE":"模板","SILENCE_TIME_TYPE_DESC":"满足静默条件的通知将在指定的时间范围内被静默。","SILENT_CRON":"Cron 表达式","SILENCE_TIME_RANGE_EMPTY_DESC":"请设置通知静默的时间范围。","SELECT_START_TIME_AND_END_TIME":"选择通知静默的起始时间和结束时间。","SILENCE_DATE":"日期","SELECT_DATE":"请选择日期。","SILENCE_EVERY_DAY":"每日","SILENCE_EVERY_WEEK":"每周","SILENCE_EVERY_MONTH":"每月","MONDAY":"周一","TUESDAY":"周二","WEDNESDAY":"周三","THURSDAY":"周四","FRIDAY":"周五","SATURDAY":"周六","SUNDAY":"周日","DAY":"日","HOUR":"时","MINUTE":"分","SECOND":"秒","CRON_EXPRESSION":"Cron 表达式","CRON_EXPRESSION_DESC":"输入 Cron 表达式来指定静默时间。","CRON_EXPRESSION_REQUIRE_DESC":"请输入 Cron 表达式。","CRON_EXPRESSION_ERROR_DESC":"Cron 表达式无效。请输入有效的 Cron 表达式。","EVERY_DAY_TIMERANGE":"每日:{timeRange}","EVERY_WEEK_DAYS_TIMERANGE":"每周:{days} [{timeRange}]","EVERY_MONTH_DAYS_TIMERANGE":"每月:{days} [{timeRange}]","NOTIFICATION_LANGUAGE":"通知语言","NOTIFICATION_LANGUAGE_DESC":"设置通知的键的语言。通知以键值对的形式呈现。","NOTIFICATION_SIMPLIFIED_CHINESE_DESC":"在通知中使用简体中文键。","NOTIFICATION_ENGLISH_DESC":"在通知中使用英文键。","NOTIFICATION_LANGUAGE_CHANGE_SUCCESS":"更改成功。","PLATFORM_LOGO":"平台标识","PLATFORM_LOGO_REQUIRED":"请上传平台标识。","BROWSER_FAVICON":"浏览器图标","BROWSER_FAVICON_REQUIRED":"请上传平台的浏览器图标。","LOGIN_BACKGROUND":"登录页面背景图片","NO_BACKGROUND":"未发现背景图片","NO_BACKGROUND_TIP":"请点击“自定义平台信息”上传背景图片。","MODIFY_PLATFORM_INFO":"自定义平台信息","PLATFORM_TITLE_TCAP":"平台标题","PLATFORM_DESCRIPTION_TCAP":"平台描述","PLATFORM_TITLE_TIP":"平台标题可包含任意字符,最长 63 个字符。","TITLE_EMPTY_TIP":"请输入平台标题。","PLATFORM_LOGO_DESC":"图片格式可以为 SVG、PNG 或 JPG,图片文件大小不能超过 2 MB,推荐的图片分辨率为 200 x 40 像素。","BROWSER_FAVICON_DESC":"图片格式可以为 ICO、SVG、PNG 或 JPG,图片文件大小不能超过 2 MB,推荐图片分辨率为 40 x 40 像素,推荐长宽比为 1:1。","LOGIN_BACKGROUND_DESC":"图片格式可以为 SVG、PNG 或 JPG,图片文件大小不能超过 2 MB,推荐的图片分辨率为 1920 x 1080 像素。","UPLOAD_PLATFORM_IMAGE_FAILED":"上传失败。{message}","UPLOAD_FILE_TOO_LARGE":"图片文件大小不能超过 2 MB。请选择其他图片文件。","RESET_PLATFORM_INFO":"重置平台信息","RESET_PLATFORM_INFO_TIP":"您确定重置平台信息吗?","SCALING_OBJECT":"伸缩对象","LAST_SCALING_TIME":"更新时间","POLLING_INTERVAL":"轮询间隔","WAITING_TIME":"等待时间","TIME_ZONE":"时区","CORN_DESC":"根据 cron 计划 进行弹性伸缩。 ","SCALING_CUSTOM_DESC":"自定义指定指标进行弹性伸缩。","TOGGLER_PARAMS":"触发器参数","TOGGLER_AUTHOR":"触发器认证","INDICATOR_NAME":"指标名称","EXPRESSION":"表达式","SCALING_Prometheus_DESC":"基于 Prometheus 进行弹性伸缩。","INDICATOR_TYPE":"自定义指定指标进行弹性伸缩。","TRIGGER":"触发器","LABEL_KEY_VALUE_CANNOT_BE_EMPTY":"该类型键值不能为空。","TRIGGER_AUTHENTICATION_KEY_EQ_NAME":"触发器认证的键必须是 name。","CUSTOM_SCALING_PL":"自定义伸缩","CUSTOM_SCALING_LOW":"自定义伸缩","CUSTOM_SCALING_DESC":"自定义伸缩根据需求自动扩缩容 Pod 来帮助优化资源使用和成本。","CUSTOM_SCALING_EMPTY_DESC":"请创建自动伸缩。","CUSTOM_SCALING":"自定义伸缩","SCALER":"伸缩器","STRETCH_OBJECT_READY":"伸缩对象就绪","TRIGGER_ACTIVE":"伸缩器活跃","RETRACTOR_FALLBACK":"回退","STRETCH_OBJECT_READY_DESC":"伸缩对象是否准备好开始伸缩","TRIGGER_ACTIVE_DESC":"伸缩对象是否发生伸缩","RETRACTOR_FALLBACK_DESC":"伸缩器是否能够从源获取指标","EDIT_SCALING_SETTINGS":"编辑伸缩设置","SCALING_SETTINGS":"伸缩设置","DISABLE_REPLICAS_SETTING":"禁用副本数量设置","WORKLOAD_SCALING_TOOL_TIP":"已设置自定义指标容器组水平自动扩缩策略。","EDIT_CUSTOM_SCALING":"编辑自定义伸缩","ENV_CONTAINER":"env 源容器","ADD_WORKLOAD":"添加工作负载","ADD_WORKLOAD_DESC":"设置部署和有状态副本集作为自定义伸缩对象。","EMPTY_SCALING_OBJECT_MESSAGE":"伸缩对象不能为空。","PERCENT":"百分比","EXPANSION_VALUE":"扩容值","STABILIZATION_WINDOW_SECONDS":"稳定窗口时间 (s)","STABILIZATION_WINDOW_SECONDS_DESC":"当用于扩缩的指标不断波动时,稳定窗口用于限制副本计数的波动。","POLICY_TYPE":"策略类型","POLICY_PREFERENCE":"策略偏好","POLICY_PREFERENCE_DESC":"伸缩器在不同的情况下会根据您的偏好来采取对应的策略。","POLICY_TYPE_DUPLICATED":"不能为同一类型配置多个策略。","TENDS_TO_SCALE_SIGNIFICANTLY":"倾向于大幅度伸缩","TENDS_TO_EXPAND_SLIGHTLY":"倾向于小幅度伸缩","SCALE_DISABLE":"禁用","EXPANSION_STRATEGY":"扩容策略","SCALING_STRATEGY":"缩容策略","EMPTY_POLICY_MESSAGE":"策略配置不能为空。 ","TIME_ZONE_DESC":"设置允许的最小容器组副本数量,默认值为 0。","REPLICAS_DESIRED_CRON_TRIGGER_DESC":"在 cron 计划的开始和结束之间必须将资源扩展到的副本数。","CRON_START":"开始","CRON_END":"结束","CRON_START_DESC":"指示 cron 计划开始的 Cron 表达式。","CRON_END_DESC":"指示 cron 计划结束的 Cron 表达式。","EMPTY_TYPE_TRIGGER":"类型的值不能为空。","ADD_TRIGGER":"添加触发器","ADD_TRIGGER_DESC":"根据需要的指标添加触发器。","TRIGGER_TYPE":"触发器类型","PROMETHUS_ADDRESS":"Promethus 的服务地址。","INDICATOR_NAME_PROMETHUS_DESC":"如果使用多个触发器,则所有指标名称唯一。","EXPRESSION_PROMETHUS_DESC":"设置查询运行的表达式。","THRESHOLD_PROMETHUS_DESC":"设置触发器开始缩放的值。","SCALE_MINIMUM_REPLICAS_DESC":"设置允许的最小容器组副本数量,默认值为 0。","SCALE_MAXIMUM_REPLICAS_DESC":"设置允许的最大容器组副本数量,默认值为 1。","POLLING_INTERVAL_DESC":"检查每个触发器的时间间隔。默认情况下,KEDA 将每 30 秒检查每个 ScaledObject 上的每个触发源。","WAITING_TIME_DESC":"最后一个触发器报告活动后,在将资源缩放回 0 之前等待的时间。默认为 5 分钟(300 秒)。","SCALE_ROLL_BACK_DESC":"如果伸缩器处于错误状态,它定义了要回退的副本数。","SCALE_FAILURE_THRESHOLD_DESC":"每个伸缩器连续未能从其源获取指标的次数限制。","EMPTY_FAILURE_THRESHOLD":"失败阈值不能为空。 ","FALLBACK_NUMBER":"回退副本数","FALLBACK_NUMBER_DESC":"伸缩器失败次数超过阈值后,资源回退的副本数量。","EMPTY_FALLBACK_NUMBER_DESC":"回退副本的数量不能为空。 ","TRIGGER_SETTING":"触发器设置","TRIGGER_SETTING_DESC":"设置自定义指标的触发器。","RESTORE_TO_ORIGINAL_REPLICA_COUNT":"恢复到原始副本数","RESTORE_TO_ORIGINAL_REPLICA_COUNT_DESC":"指定目标资源在删除后是否应缩减到原始副本数。默认是将副本数保持在与删除 ScaledObject 时相同的数量。","SCALE_BEHAVIOR":"伸缩行为","SCALE_BEHAVIOR_DESC":"配置目标资源在扩容和缩容两个方向的伸缩行为。","CREATE_CUSTOM_SCALING":"创建自定义伸缩","CRON_TIME_ZONE_DESC":"IANA 时区数据库中可接受的值之一。","PROMETHEUS_MIN_REPLICA_COUNT_DESC":"如果触发器的类型是 Prometheus,最小副本数必须大于 0。","MIN_REPLICA_COUNT_LESS_THAN_MAX":"最小副本数不能大于最大副本数。","RADONDB_APPS":"RadonDB 应用","RADONDB_APPS_DESC":"RadonDB 云原生应用提供关系型数据库、分布式数据库、时序和分析型数据库以及 NoSQL 数据库等企业级数据库产品和服务。","WHAT_ARE_RADONDB_APPS":"什么是 RadonDB 应用?","ACCESS_ADDRESS_PL":"访问地址","DATABASE_STATUS_FAILED":"失败","DATABASE_STATUS_RUNNING":"运行中","DATABASE_STATUS_UPDATING":"更新中","DATABASE_STATUS_CREATING":"创建中","DATABASE_STATUS_TRUE_NOTREADY":"未就绪","DATABASE_STATUS_TRUE_READY":"就绪","DATABASE_STATUS_CREATE_FAILED":"创建失败","DATABASE_STATUS_UPDATE_FAILED":"更新失败","DATABASE_STATUS_DELETED":"已删除","DATABASE_STATUS_COMPLETED":"已完成","DATABASE_STATUS_TERMINATING":"删除中","READ_AND_WRITE_ADDRESS":"读写地址","READ_ONLY_ADDRESS":"只读地址","KIBANA_ADDRESS":"Kibana 地址","DASHBOARD_ADDRESS":"控制面板地址","PRIMARY_ADDRESS":"主地址","STANDBY_ADDRESS":"备地址","DATABASE_OPERATION_WARNING":"此操作可能会中断数据库服务,请在非高峰时段执行此操作。","VOLUME":"卷","NODE_ROLE":"节点角色","CANNOT_REDUCE_VOLUME_SIZE":"卷容量不能减少。","SCALE_OUT":"扩展","CANNOT_REDUCE_DATABASE_NODES":"数据库节点数量不能减少。","MYSQL_NODES_DESC":"数据库节点的数量。取值可以为 2,3 或 5。","REDIS_SENTINEL_NODES_DESC":"数据库节点的数量。取值可以为 3,5 或 7。","MONGODB_NODES_DESC":"数据库节点的数量。","NODE_COUNT_DESC":"数据库节点的数量。取值范围为 {min} 到 {max}。","ADJUST_RESOURCES":"调整资源","RESOURCES":"资源","RESOURCES_DESC":"设置分配给数据库服务的 CPU 和内存资源。","CORE_GIB":"{core, plural, =1 {1 核} other {# 核}} {gib} GiB","BACK_UP":"备份","BACKUP_NAME_DESC":"名称只能包含小写字母、数字和连字符(-),必须以小写字母开头,最长 24 个字符。","INVALID_BACKUP_NAME_DESC":"名称无效。名称只能包含小写字母、数字和连字符(-),必须以小写字母开头,最长 24 个字符。","BACKUP_NAME_EMPTY_DESC":"请输入备份名称。","BACKUP_WARNING":"备份过程可能会导致数据库服务压力过大,请在非高峰时段执行此操作。","BACKUP_COMFIRM_TIP":"您确定创建备份吗?","BACKUP_POSTGRE_SQL_TIP":"默认保留 10 个备份。如果在定时备份时设置了保留策略,将首先使用定时备份策略。","SET_AUTO_BACKUP":"设置自动备份","BACKUP_TIME":"备份时间","BACKUP_DATE":"备份日期","BACKUP_SCHEDULED_DELETE":"定期删除","BACKUP_RETENTION_DAYS":"保留周期","BACKUP_DAY":"天","BACKUP_RETENTION_DAYS_ERROR":"必须设置保留周期。","BACKUP_DATE_ERROR":"必须设置备份日期。","REBALANCE_NODES":"重平衡节点","POSTGRESQL_NODES_DESC":"取值范围为 1 到 8。","REBALANCE_SUCCESS":"重平衡成功。","REBALANCE_FAILED":"重平衡失败。","REBALANCING":"重平衡中","START_REBALANCING":"开始重平衡","REBALANCING_HISTORY":"重平衡记录","REBALANCING_IN_PROGRESS_DESC":"节点重平衡正在进行中,请等待节点重平衡完成。","KAFKA_OPERATION_WARNING":"此操作可能会中断 Kafka 服务,请在非高峰时段执行此操作。","UPDATE_VERSION":"升级版本","UPDATE_VERSION_DESC":"您确定升级该资源吗?","SHARD":"分片","SHARD_PL":"分片","PROXY_NODE":"代理节点","NODE_IP_ADDRESS_SCAP":"节点 IP 地址","NODE_PORT":"节点端口","NO_DATABASE_CONNECTION_AVAILABLE":"没有可用的数据库连接","MANAGEMENT_NODE":"管理节点","PRIMARY_NODE":"主节点","PRIMARY_NODE_PL":"主节点","HOT_NODE":"热节点","HOT_NODE_PL":"热节点","WARM_NODE":"温节点","WARM_NODE_PL":"温节点","COLD_NODE":"冷节点","COLD_NODE_PL":"冷节点","KIBANA_NODE":"Kibana 节点","KIBANA_NODE_PL":"Kibana 节点","KAFKA_NODE":"Kafka 节点","KAFKA_NODE_PL":"Kafka 节点","KAFKA_RESOURCES":"Kafka 资源","ZOOKEEPER_NODE":"ZooKeeper 节点","ZOOKEEPER_NODE_PL":"ZooKeeper 节点","LOGSTASH_NODE":"Logstash 节点","DASHBOARD_NODE":"控制面板节点","ZOOKEEPER_RESOURCES":"ZooKeeper 资源","STANDBY_NODE":"备节点","STANDBY_NODE_PL":"备节点","SENTINEL_NODE":"哨兵节点","DATABASE_RUNNING_FOR_VALUE":"数据库已持续运行 {value}。","BACKUPS":"备份","BACKUP":"备份","BACKUP_LOW":"备份","BACKUP_PL":"备份","RESTORE_FROM_BACKUP":"从备份恢复","BACKUP_IN_PROGRESS_DESC":"集群备份进行中。","SIZE_GIB":"大小(GiB)","BACKUP_START_TIME":"备份开始时间","BACKUP_END_TIME":"备份结束时间","CREATE_BACKUP":"创建备份","BACKUP_NOT_ALLOWED_DESC":"当前不允许备份数据。","DATABASE_USERS":"数据库用户","DATABASE_USERS_EMPTY_DESC":"请创建用户以访问数据库。","NO_AUTHENTICATION_DESC":"数据库集群的认证类型为“无需认证”。如需控制用户访问权限,请在“参数”页签修改“认证类型”参数的值。","KAFKA_USERS":"Kafka 用户","USERCREATION_NOT_ALLOWED":"当前不允许创建用户。","CANNOT_EDIT_ROOT_USER":"当前用户为根用户,不能编辑。","CANNOT_DELETE_ROOT_USER":"当前用户为根用户,不能删除。","SECRET_KEY":"Secret Key","USER_CERTIFICATE":"用户证书","VALIDITY_PERIOD":"有效期","CA_CERTIFICATE":"CA 证书","CA_PASSWORD":"CA 密码","AUTHORIZATION_RULE":"授权规则","KAFKA_NO_AUTHENTICATION_DESC":"Kafka 集群的认证类型为“无需认证”。如需控制用户访问权限,请在“参数”页签修改“认证类型”参数的值。","KAFKA_NO_USER_DESC":"请创建用户以访问 Kafka。","DELETE_USER":"删除用户","DATABASE_USERNAME_DESC":"用户名只能包含大写字母、小写字母、数字和下划线(_),必须以大写或小写字母开头,长度为 2 到 26 个字符。","INVALID_DATABASE_USERNAME_DESC":"用户名称无效。用户名只能包含大写字母、小写字母、数字和下划线(_),必须以大写或小写字母开头,长度为 2 到 26 个字符。","PG_USERNAME_DESC":"用户名只能包含小写字母、数字和下划线(_),必须以小写字母开头,长度为 2 到 26 个字符。","INVALID_PG_USERNAME_DESC":"用户名无效。用户名只能包含小写字母、数字和下划线(_),必须以小写字母开头,长度为 2 到 26 个字符。","DATABASE_PASSWORD_DESC":"密码必须包含至少一个大写字母、一个小写字母、一个数字和一个特殊字符(!@#$%^&*_+-=),长度为 8 到 32 个字符。","DATABASE_PASSWORD_CHARACTERS":"密码必须包含至少一个特殊字符(!@#$%^&*_+-=)。","DATABASE_PASSWORD_CHARACTERS_EXCLUDE":"密码中的特殊字符只能为 !@#$%^&*_+-=。","INVALID_DATABASE_PASSWORD_DESC":"密码无效。密码必须包含至少一个大写字母、一个小写字母、一个数字和一个特殊字符(!@#$%^&*_+-=),长度为 8 到 32 个字符。","USERNAME_FORBIDDEN_STRINGS":"用户名不能为 root 或以 radondb_ 开头。","USERNAME_CANNOT_BE_PROGRES":"用户名不能为 postgres、pgautofailover_monitor 或 pgautofailover_replicator。","USERNAME_CANNOT_BE_CLICKHOUSE":"用户名不能为 clickhouse_operator。","KAFKA_USERNAME_DESC":"用户名只能包含小写字母、数字和连字符(-),最长 64 个字符。","PERMISSIONS":"权限","GENERAL_PERMISSIONS":"普通权限","ADVANCED_PERMISSIONS":"高级权限","AUTHENTICATION_MODE":"认证模式","AUTHENTICATION_MODE_INCORRECT_DESC":"认证模式与数据库集群不一致,用户不能访问数据库集群。","AUTHENTICATION_MODE_INCORRECT_ALERT":"数据库集群的认证模式为 {cluster}。 如果用户的认证模式设置为 {user},用户将无法访问数据库集群。","AUTHORIZATION_MODE":"授权模式","SIMPLE_AUTHORIZATION":"简单授权","AUTHORIZATION_MODE_DESC":"目前仅支持简单授权。","AUTHORIZED_DATABASES":"授权数据库","AUTHORIZED_DATABASES_DESC":"用户可以访问的数据库。请输入 *(所有数据库)或数据库名称。","AUTHORIZED_HOSTS":"授权主机","AUTHORIZED_HOSTS_DESC":"用户可以访问的主机。请输入 %(所有主机)、IP 地址或以逗号(,)分隔的多个 IP 地址。","PERMISSION_RULE":"权限规则","PERMISSION_RULE_DESC":"您可以为用户添加多个权限规则。","RESOURCE_TYPE_DESC":"规则适用的资源类型。","RESOURCE_MATCHING_MODE":"资源匹配模式","RESOURCE_MATCHING_MODE_DESC":"资源名称的匹配模式。","PREFIX_DESC":"前缀匹配,将规则应用于名称以该值开头的所有资源","LITERAL_DESC":"逐字匹配,支持设置为 *,表示该规则适用于所有资源。","PREFIX":"前缀匹配","LITERAL":"逐字匹配","OPERATION":"操作","OPERATION_DESC":"选择规则适用的操作。","DATABASE_OPERATION_READ":"读(Read)","DATABASE_OPERATION_WRITE":"写(Write)","DATABASE_OPERATION_DELETE":"删除(Delete)","DATABASE_OPERATION_ALTER":"修改(Alter)","DATABASE_OPERATION_DESCRIBE":"描述(Describe)","DATABASE_OPERATION_ALL":"全部(All)","DATABASE_OPERATION_IDEMPOTENTWRITE":"幂等写(IdempotentWrite)","DATABASE_OPERATION_CLUSTERACTION":"集群操作(ClusterAction)","DATABASE_OPERATION_CREATE":"创建(Create)","DATABASE_OPERATION_ALTERCONFIGS":"修改配置(AlterConfigs)","DATABASE_OPERATION_DESCRIBECONFIGS":"描述配置(DescribeConfigs)","ALLOW":"允许","RULE_TYPE_DESC":"目前规则类型只支持“允许”。","GROUP":"组","TRANSACTION_ID":"事务 ID","ACL_DESC":"根据 Redis 官方规则设置 ACL 以控制用户的权限。","TOPICS":"主题","MESSAGE_RETENTION_TIME":"消息保留时间","EDIT_TOPIC":"编辑主题","TOPIC_CREATION_NOT_ALLOWED":"当前不允许创建主题。","NO_TOPIC_FOUND":"未发现主题","TOPIC_EMPTY_DESC":"请创建一个主题。","CREATE_TOPIC":"创建主题","TOPIC_NAME_DESC":"名称只能包含小写字母、数字和连字符(-),必须以小写字母开头,最长 24 个字符。","INVALID_TOPIC_NAME_DESC":"名称无效。名称只能包含小写字母、数字、点和连字符(-),必须以小写字母开头,最长 100 个字符。","TOPIC_NAME_EMPTY_DESC":"请输入主题名称。","PARTITION_COUNT":"分区数量","COMPACT":"压缩","INVALID_PARTITION_COUNT_DESC":"分区数量无效。参数值不能小于 {min} 或大于 {max}。","TOPIC_REPLICA_COUNT_DESC":"副本数量不能超过 Kafka 集群的节点数量。","CLEANUP_POLICY_DESC":"删除过时的日志或根据键压缩日志(Kafka Connect 需要使用压缩模式)。","CLEANUP_POLICY_DELETE":"删除","CLEANUP_POLICY_COMPACT":"压缩","MIN_INSYNC_REPLICAS_DESC":"当生产者的 request.requird.acks 参数设置为 1 时,副本的最小数量。","UNCLEAN_LEADER_ELECTION_ENABLE_DESC":"是否允许不属于 ISR 的副本被选为领导。","SEGMENT_MS_DESC":"段文件轮滚的最大时间间隔,单位为毫秒,最小值为 86400000。","RETENTION_MS_DESC":"日志文件最大保留时间,单位为毫秒。","RETENTION_BYTES_DESC":"日志文件的大小上限。超过上限的日志文件将被删除。如果同时设置了 retention.ms 和 retention.bytes,日志文件将在达到任一阈值是被删除。参数值 -1 表示保留所有日志文件。","MAX_MESSAGE_BYTES_DESC":"主题级别的消息大小上限。如果未设置此参数,系统将采用实例级别的消息大小上限 1 MB。","ALERT_RULE_GROUP_PL":"告警规则组","PARAMETER":"参数","RANGE":"范围","AUTO_RESTART":"自动重启","ALERTING_POLICY_CREATION_NOT_ALLOWED":"当前不允许创建告警规则组。","EDIT_NOT_ALLOWED":"当前不允许编辑参数。","DBPARAM_DATABASE_VERSION":"内核版本","DBPARAM_DATABASE_VERSION_DESC":"数据库内核版本。","DBPARAM_FSYNC_DESC":"是否设置 PostgreSQL 服务器尽可能确保更新被物理写入磁盘。","DBPARAM_SHARED_BUFFERS_DESC":"数据库服务器用作共享缓冲区的内存,单位为 MB。","DBPARAM_TEMP_BUFFERS_DESC":"每个数据库会话用作临时缓冲区的最大内存大小,单位为 MB。","DBPARAM_WORK_MEM_DESC":"将数据写入临时磁盘文件之前查询操作所使用的内存上限,单位为 MB。","DBPARAM_MAX_WAL_SENDERS_DESC":"同时运行的 WAL 发送器进程的最大数量。","DBPARAM_LOG_MIN_DURATION_STATEMENT_DESC":"触发日志记录的语句最短执行时间,单位为毫秒。","DBPARAM_MAX_CONNECTIONS_DESC":"并发连接的最大数量。","DBPARAM_WORKER_PROCESSES_DESC":"并发工作进程的最大数量。","DBPARAM_CHECKPOINT_TIMEOUT_DESC":"WAL 自动检查点之间的最大时间间隔,单位秒。","DBPARAM_AUTOVACUUM_VACUUM_COST_DELAY_DESC":"autovacuum 操作的代价延迟值,单位为毫秒。","DBPARAM_AUTOVACUUM_VACUUM_COST_LIMIT_DESC":"autovacuum 操作的代价限制值。","DBPARAM_AUTOVACUUM_ANALYZE_SCALE_FACTOR_DESC":"触发 autovacuum ANALYZE 操作的表大小比例阈值。","DBPARAM_AUTOVACUUM_VACUUM_SCALE_FACTOR_DESC":"触发 autovacuum VACUUM 操作的表大小比例阈值。","DBPARAM_VACUUM_DEFER_CLEANUP_AGE_DESC":"VACUUM 和 HOT cleanup 操作的延迟(以事务数量计)。","DBPARAM_SEQ_PAGE_COST_DESC":"规划器对于一次顺序获取磁盘页面的代付估计。","DBPARAM_RANDOM_PAGE_COST_DESC":"规划器对于一次非顺序获取磁盘页面的代付估计。","DBPARAM_CPU_TUPLE_COST_DESC":"规划器对一次查询中处理每一行的代价估计。","DBPARAM_CPU_INDEX_TUPLE_COST_DESC":"规划器对一次索引扫描中处理每一个索引项的代价估计。","DBPARAM_BGWRITER_DELAY_DESC":"后台写入器的活动轮次之间的睡眠时间,单位为毫秒。","DBPARAM_WAL_WRITER_DELAY_DESC":"WAL 写入器的活动轮次之间的睡眠时间,单位为毫秒。","DBPARAM_WAL_WRITER_FLUSH_AFTER_DESC":"WAL 写入器写入 WAL 日志的数量阈值,单位为 MB。达到此参数值时将触发刷写。","DBPARAM_FULL_PAGE_WRITES_DESC":"是否设置 PostgreSQL 服务器在每个检查点后第一次修改时将每个磁盘页面的全部内容写入 WAL。","DBPARAM_WAL_COMPRESSION_DESC":"是否设置 PostgreSQL 服务器在基础备份过程中或在 full_page_writes 启用时压缩写入到 WAL 的完整页面。","DBPARAM_SYNCHRONOUS_COMMIT_DESC":"数据库服务器向客户端返回 success 指示之前所需要完成的 WAL 处理工作量。","DBPARAM_MAINTENANCE_WORK_MEM_DESC":"用于 VACUM、CREATE INDEX、ALTER TABLE ADD FOREIGN KEY 等维护操作的最大内存空间,单位为 MB。","DBPARAM_MAX_REPLICATION_SLOTS_DESC":"复制槽(replication slot)的最大数量。修改此参数值将导致数据库服务重启。","DBPARAM_AUTOVACUUM_DESC":"服务器是否运行自动清理启动器守护进程。","DBPARAM_VACUUM_COST_DELAY_DESC":"超过消耗限制后进程睡眠的时间。","DBPARAM_AUTOVACUUM_NAPTIME_DESC":"在任何指定的数据库上运行自动清理的时间间隔。","DBPARAM_COMMIT_DELAY_DESC":"在提交事务和将 WAL 刷写到到磁盘之间的延迟,单位为微秒。","DBPARAM_COMMIT_SIBLINGS_DESC":"执行 commit_delay 所需并发活动事务的最小数量。","DBPARAM_LOG_MIN_MESSAGES_DESC":"写入到服务器日志的消息等级。","DBPARAM_BGWRITER_LRU_MAXPAGES_DESC":"后台写入器每个轮次刷写的 LRU 页面的最大数量。","DBPARAM_BGWRITER_FLUSH_AFTER_DESC":"当后台写入器写入的数据量大于此参数值时(单位为 KB),尝试强制要求操作系统将写入的数据刷写到底层存储系统中。","DBPARAM_STATEMENT_TIMEOUT_DESC":"语句的最大持续时间,单位为微秒。花费时间超过此参数值的语句将被中止。","DBPARAM_IDLE_IN_TRANSACTION_SESSION_TIMEOUT_DESC":"在事务查询之间最大空闲时间,单位为微秒。空闲时间超过此参数值的会话将被终止。","DBPARAM_LOG_STATEMENT_DESC":"需要记录的 SQL 语句的类型。","DBPARAM_LOG_WAL_LEVEL_DESC":"写入 WAL 的信息级别。","DBPARAM_PG_PORT_DESC":"PostgreSQL 服务器监听的端口号。参数值不能为 55555。","PG_PORT_FORBIDDEN_ERROR":"端口号不能为 55555。","DBPARAM_JIT_DESC":"JIT 编译可用时,是否允许 PostgreSQL 使用 JIT 编译。","DBPARAM_AUDIT_LOG_POLICY_DESC":"审计日志插件将事件写入其日志文件时采用的策略。","DBPARAM_AUDIT_LOG_FORMAT_DESC":"审计日志文件格式。","DBPARAM_AUDIT_LOG_ROTATE_ON_SIZE_DESC":"单个审计日志文件的大小。如果参数值不是 4096 的整数倍,参数值将被下调为 4096 的整数倍。","DBPARAM_AUDIT_LOG_ROTATIONS_DESC":"审计日志文件的最大数量。","DBPARAM_DEFAULT_STORAGE_ENGINE_DESC":"默认存储引擎。","DBPARAM_INNODB_BUFFER_POOL_SIZE_DESC":"缓冲池大小。最多可以分配 80% 的内存。取值 -1 将分配 60% 的内存。参数值会自动增加到 (innodb_buffer_pool_chunk_size x innodb_buffer_pool_instances) 的整数倍。","DBPARAM_CHARACTER_SET_SERVER_DESC":"数据库服务器的默认字符集。","DBPARAM_EXPIRE_LOGS_DAYS_DESC":"二进制日志文件的保留期限。","DBPARAM_LONG_QUERY_TIME_DESC":"慢查询时间阈值。花费时间大于此参数值的 SQL 语句将被视为慢查询。","DBPARAM_MAX_CONNECT_ERRORS_DESC":"在数据库服务器阻止主机的进一步连接之前,允许连续连接失败的最大次数。","DBPARAM_WAIT_TIMEOUT_DESC":"数据库服务器等待非交互连接的最大时间,单位为秒。超过时间限制后连接将被关闭。","DBPARAM_MAX_ALLOWED_PACKET_DESC":"数据包大小上限。如果参数值不是 1024 的整数倍数,则该参数值将被下调为 1024 的整数值。 如果您需要更改此参数值,请确保该值小于或等于 lave_pending_jobs_size_max 值。 否则,主节点和从节点之间的复制可能会出现异常。","DBPARAM_SLAVE_PARALLEL_WORKERS_DESC":"并行复制线程的数量。","DBPARAM_SKIP_NAME_RESOLVE_DESC":"是否禁止域名解析。","DBPARAM_AUTOCOMMIT_DESC":"是否启用自动提交模式。","DBPARAM_TRANSACTION_ISOLATION_DESC":"事务隔离等级。","DBPARAM_INNODB_FLUSH_METHOD_DESC":"InnoDB 文件刷写方式。","DBPARAM_INNODB_USE_NATIVE_AIO_DESC":"InnoDB 是否使用 Linux 异步 I/O (AIO)子系统。","DBPARAM_MONGODB_PORT_DESC":"MongoDB 服务器监听的端口号。","DBPARAM_OPLOGSIZEMB_DESC":"oplog 文件的大小上限,单位为 MB。","DBPARAM_MAXINCOMINGCONNECTIONS_DESC":"mongos 或 mongod 接受的最大同时连接数量。","DBPARAM_CURSORTIMEOUTMILLIS_DESC":"闲置游标的超时时间,单位为毫秒。闲置游标超时后将被 MongoDB 移除。","DBPARAM_PROFILINGMODE_MODE":"是否启用性能分析(Profiling)模式。","DBPARAM_SLOWOPTHRESHOLDMS_DESC":"慢操作时间阈值。花费时间大于此参数值的操作将被视为慢操作。","DBPARAM_ENABLEMAJORITYREADCONCERN_DESC":"是否使用安全读取策略。修改此参数值将导致数据库服务重启。","DBPARAM_COMMANDVERBOSITY_DESC":"命令相关组件的日志记录级别。","DBPARAM_INDEXVERBOSITY_DESC":"索引操作相关组件的日志记录级别。","DBPARAM_QUERYVERBOSITY_DESC":"查询操作相关组件的日志记录级别。","DBPARAM_NETWORKVERBOSITY_DESC":"组网操作相关组件的日志记录级别。","DBPARAM_WRITEVERBOSITY_DESC":"写入操作相关组件的日志记录级别。","DBPARAM_MAXMEMORY_DESC":"Redis 可用内存的上限,单位为 MB。","DBPARAM_ACTIVEREHASHING_DESC":"是否启用重哈希以节省内存。","DBPARAM_APPENDONLY_DESC":"是否启用 AOF 持久性。","DBPARAM_APPENDFSYNC_DESC":"AOF 同步策略。","DBPARAM_CLUSTER_NODE_TIMEOUT_DESC":"Redis 集群节点不可用时间上限,单位为毫秒。超过上限后,Redis 集群节点将被视为故障。","DBPARAM_LATENCY_MONITOR_THRESHOLD_DESC":"慢操作时间阈值,单位为毫秒。花费时间超过此参数值的操作将被写入日志。取值 0 表示禁用此功能。","DBPARAM_MAXCLIENTS_DESC":"客户端连接的最大数量。取值 0(默认值)表示不限制客户端连接数。","DBPARAM_MAXMEMORY_POLICY_DESC":"Redis 内存使用量达到上限时采取的策略。","DBPARAM_MAXMEMORY_SAMPLES_DESC":"Redis 内存使用量达到上限时,Redis 驱逐算法采用的样本数量。","DBPARAM_MIN_SLAVES_MAX_LAG_DESC":"至少存在 min-slaves-to-write 个从数据库,并且这些从数据库的网络延迟不超过此参数值时,主数据库才能允许写操作。","DBPARAM_MIN_SLAVES_TO_WRITE_DESC":"请参考 min-slaves-max-lag 的描述信息。","DBPARAM_NO_APPENDFSYNC_ON_REWRITE_DESC":"BGSAVE 或 BGREWRITEAOF 操作正在进行时是否阻止 fsync() 调用。","DBPARAM_NOTIFY_KEYSPACE_EVENTS_DESC":"Redis发送的通知类型。","DBPARAM_REPL_BACKLOG_SIZE_DESC":"复制 backlog 文件的大小。","DBPARAM_REPL_BACKLOG_TTL_DESC":"复制 backlog 文件的保留期限。","DBPARAM_REPL_TIMEOUT_DESC":"复制超时时间。","DBPARAM_SET_MAX_INTSET_ENTRIES_DESC":"当 set 对象完全由十进制 64 位带符号整数组成,并且 set 中元素数量不超过此参数的值时,使用 Intset 编码。 ","DBPARAM_SLOWLOG_LOG_SLOWER_THAN_DESC":"最大操作执行时间,单位为微秒。超过此参数值的操作将被记录到 slowlog 中。","DBPARAM_SLOWLOG_MAX_LEN_DESC":"slowlog 的最大长度。","DBPARAM_HASH_MAX_ZIPLIST_ENTRIES_DESC":"当 hash 对象同时满足以下两个条件时,采用 Ziplist 编码:1. hash 对象每个键和每个值的长度(单位为字节)不超过 hash-max-ziplist-value 值;2. hash 对象中的键值对数量不超过 hash-max-ziplist-entries 值。","DBPARAM_HASH_MAX_ZIPLIST_VALUE_DESC":"请参考 hash-max-ziplist-entries 的描述信息。","DBPARAM_LIST_MAX_ZIPLIST_ENTRIES_DESC":"当 list 对象同时满足以下两个条件时,采用 Ziplist 编码:1. list 对象元素的长度(单位为字节)不超过 list-max-ziplist-value 值;2. list 对象中的元素数量不超过 list-max-ziplist-entries 值。","DBPARAM_LIST_MAX_ZIPLIST_VALUE_DESC":"请参考 list-max-ziplist-entries 的描述信息。","DBPARAM_ZSET_MAX_ZIPLIST_ENTRIES_DESC":"当 zset 对象同时满足以下两个条件时,采用 Ziplist 编码:1. zset 对象元素的长度(单位为字节)不超过 zset-max-ziplist-value 值;2. zset 对象中的元素数量不超过 zset-max-ziplist-entries 值。","DBPARAM_ZSET_MAX_ZIPLIST_VALUE_DESC":"请参考 zset-max-ziplist-entries 的描述信息。","DBPARAM_LUA_TIME_LIMIT_DESC":"Lua 脚本超时时间,单位为毫秒。取值 0 或负值表示不设置超时时间。","DBPARAM_IO_THREADS_DO_READS_DESC":"是否启用多线程读取。","DBPARAM_IO_THREADS_DESC":"I/O 线程数。","DBPARAM_LOGFILE_DESC":"导出日志信息到 stdout 或日志文件。","DBPARAM_THREAD_POOL_WRITE_QUEUE_SIZE_DESC":"线程池写队列的大小。","DBPARAM_THREAD_POOL_SEARCH_QUEUE_SIZE_DESC":"线程池搜索队列的大小。","DBPARAM_ACTION_DESTRUCTIVE_REQUIRES_NAME_DESC":"是否在删除索引时禁止使用通配符和 _all 。您可以将此参数设置为 false,以允许使用通配符和 _all。","DBPARAM_HTTP_CORS_ENABLED_DESC":"是否启用跨域资源共享(CORS)。","DBPARAM_HTTP_CORS_ALLOW_ORIGIN_DESC":"可用于跨域资源共享(CORS)的域(origin)。","DBPARAM_INDICES_FIELDDATA_CACHE_SIZE":"可用作字段数据缓存的最大堆内存。","DBPARAM_INDICES_MEMORY_INDEX_BUFFER_SIZE_DESC":"分配给节点并由所有分片作为索引缓冲区共享的堆内存大小。参数值可以为百分比或字节数。","DBPARAM_INDICES_QUERIES_CACHE_SIZE_DESC":"过滤器缓存的内存大小。取值可以为百分比(例如 5%)或确切值(例如 512mb)。默认值为10%。","DBPARAM_INDICES_REQUESTS_CACHE_SIZE_DESC":"在节点级管理的分片请求缓存大小。默认值为堆内存的 1%。","DBPARAM_REINDEX_REMOTE_WHITELIST_DESC":"列入白名单以进行 Reindex 操作的远程 Elasticsearch 节点的地址。您可以用使用半角逗号(,)分隔多个地址(例如 otherhost:9200, 192.168.1.*:9200, localhost:*)。","DBPARAM_CLUSTER_ROUTING_ALLOCATION_AWARENESS_ATTRIBUTES_DESC":"用于分片分配感知的属性。参数值可以 k8s_node_name 和 zone。您可以同时设置两个值并用半角逗号(,)分隔。","DBPARAM_REPLICACOUNT_DESC":"每个分片的副本数。参数值在数据库集群创建后不能修改,默认值为 2。","DBPARAM_TCPPORT_DESC":"数据库集群的 TCP 端口。默认值为 9000。","DBPARAM_HTTPPORT_DESC":"数据库集群的 HTTP 端口。默认值为 8123。","DBPARAM_MAX_SERVER_MEMORY_USAGE":"ClickHouse 服务器可用内存上限,单位为字节。","DBPARAM_MAX_MEMORY_USAGE":"ClickHouse 服务器单次查询可用内存上限,单位为字节。","DBPARAM_AUTHENTICATION_TYPE":"认证类型","KAFKA_PARAMETERS":"Kafka 参数","KAFKA_USER_PARAMETERS":"用户配额","ZOOKEEPER_PARAMETERS":"ZooKeeper 参数","KAFKA_EDIT_PARAMS_ERROR":"设置参数失败。当认证类型为 TLS 时,TLS 参数的值不能为 false。","DBPARAM_KAFKA_TLS_DESC":"是否启用 TLS 加密。","DBPARAM_KAFKA_AUTHENTICATION_TYPE_DESC":"Kafka 的认证类型。","DBPARAM_NODE_PORT":"节点端口","DBPARAM_NODE_PORT_DESC":"是否启用 KubeSphere 节点端口用于从集群外部访问。","DBPARAM_LOG_RETENTION_BYTES_DESC":"分区大小上限,单位为字节。分区大小超过上限将触发删除策略。","DBPARAM_LOG_RETENTION_HOURS_DESC":"日志文件的最大保留时间。超过最大保留时间的日志文件将被删除。","DBPARAM_LOG_SEGMENT_BYTES_DESC":"段文件的大小上限,单位为字节。","DBPARAM_LOG_SEGMENT_DELETE_DELAY_MS_DESC":"删除段文件之前等待的时间。","DBPARAM_LOG_ROLL_HOURS_DESC":"段文件轮滚前的最大时间,单位为小时。","DBPARAM_OFFSETS_TOPIC_REPLICATION_FACTOR":"偏移主题的复制因子(设置较大的值可确保可用性)。在集群大小符合此参数要求前,内部主题创建将失败。","DBPARAM_LOG_CLEANUP_POLICY_DESC":"超过保留窗口后,段的默认清理策略。参数值可以为 delete 和 compact。您可以同时设置两个值并用半角逗号(,)分隔。","DBPARAM_LOG_CLEANER_ENABLE_DESC":"是否在服务器上启用日志清理器进程。","DBPARAM_COMPRESSION_TYPE_DESC":"主题的压缩类型。","DBPARAM_MESSAGE_MAX_BYTES_DESC":"记录批次的大小上限,单位为字节。","DBPARAM_NUM_NETWORK_THREADS_DESC":"服务器用于接收网络请求和向网络发送响应的线程数。","DBPARAM_NUM_IO_THREADS_DESC":"服务器用于处理请求的线程数量,可能包括磁盘 I/O。","DBPARAM_NUM_RECOVERY_THREADS_PER_DATA_DIR_DESC":"每个数据目录用于启动时日志恢复和关闭时刷写的线程数。","DBPARAM_NUM_REPLICA_FETCHERS_DESC":"用于从源 Broker 复制消息的 Fetcher 线程数。","DBPARAM_QUEUED_MAX_REQUESTS_DESC":"阻止网络线程之前允许排队的请求数量。","DBPARAM_REPLICA_LAG_TIME_MAX_MS_DESC":"如果跟随者没有发送任何 Fetch 请求或没有消费领导者日志结束偏移达到此参数指定的时间,领导者将把跟随者从 ISR 中移除。","DBPARAM_GROUP_MAX_SESSION_TIMEOUT_MS_DESC":"注册消费者的最大会话超时。","DBPARAM_GROUP_MIN_SESSION_TIMEOUT_MS_DESC":"注册消费者的最小会话超时。","DBPARAM_AUTO_CREATE_TOPICS_ENABLE_DESC":"是否启用自动主题创建。","DBPARAM_MIN_INSYNC_REPLICAS_DESC":"ISR 集的最小副本数量。","DBPARAM_DEFAULT_REPLICATION_FACTORS_DESC":"默认复制因子。","DBPARAM_TICKTIME_DESC":"ZooKeeper 使用的基本单位时间,单位为毫秒。此参数值用于心跳信号,并且最小会话超时将是 tickTime 的两倍。","DBPARAM_INITLIMIT_DESC":"允许追随者连接并领导者并与领导者同步数据的最大 tick 数。","DBPARAM_SYNCLIMIT_DESC":"允许跟随者同步数据的最 tick 数。如果同步进程超过限制,跟随者将被丢弃。","DBPARAM_MAXCLIENTCNXNS_DESC":"单个客户端(由 IP 地址标识)可以在套接字级别对 ZooKeeper 的单个成员建立的最大并发连接数量。此参数用于防止某些类别的 DoS 攻击,例如文件描述符耗尽。","DBPARAM_AUTOPURGE_SNAPRETAINCOUNT_DESC":"启用 ZooKeeper 自动清除功能时保留的最新快照和相应事务日志的数量。","DBPARAM_AUTOPURGE_PURGEINTERVAL_DESC":"自动清除操作的时间间隔,单位为小时。参数值 0 表示自动清除功能已禁用。","KAFKA_USER_RESOURCE_NAME_EMPTY_ERROR":"请输入资源名称。","DBPARAM_KAFKA_PARTITIONS_DESC":"主题分区默认值","DBPARAM_PRODUCER_BYTERATE_DESC":"在组中的客户端受到限制之前,每个客户端组可以向broker生产的每秒最大字节数的配额。范围 ({min}-{max})","DBPARAM_CONSUMER_BYTERATE_DESC":"在组中的客户端受到限制之前,每个客户端组可以向broker消费的每秒最大字节数的配额。范围 ({min}-{max})","DBPARAM_REAUSET_PERCENTAGE_DESC":"每个客户端组的最大 CPU 利用率配额。范围 ({min}-{max})","DBPARAM_CONTROLLER_MUTATION_DESC":"创建主题请求、创建分区请求和删除主题请求的速率配额。范围 ({min}-{max})","ACTIVE_CONNECTIONS":"活动连接","ACTIVE_SESSIONS":"活跃会话","IDLE_IN_TRANSACTION":"空闲事务连接","IDLE_CONNECTIONS":"空闲连接","CACHE_HIT_RATIO":"缓存命中率","CACHE_HIT_RATIO_EACH_DATABASE":"各数据库缓存命中率","ACTIVITY":"活跃事务和查询","CONNECTIONS":"连接数量","DATABASE_SIZE":"数据库大小","QUERY_DURATION":"查询时间","FETCHED_PER_SECOND":"每秒获取行数","INSERTED_PER_SECOND":"每秒插入行数","UPDATED_PER_SECOND":"每秒更新行数","DELETED_PER_SECOND":"每秒删除行数","RETURNED_PER_SECOND":"每秒返回行数","KEY_COUNTERS":"关键统计","CONFLICTS_PER_SECOND":"每秒冲突数量","DEADLOCKS_PER_SECOND":"每秒死锁数量","COMMITS_PER_SECOND":"每秒提交数量","ROLLBACKS_PER_SECOND":"每秒回滚数量","MAX_TX_DURATION":"最大事务持续时间","LOCKS":"锁","ASYNC_NODE_NUMBER":"未同步节点数量","INVALID_STATUS_NODE_NUMBER":"无效节点数量","NOT_RUNNING_NODE_NUMBER":"未运行节点数量","UNHEALTH_NODE_NUMBER":"不健康节点数量","DBPARAM_JMXOPTIONS_DESC":"disable,不开启jmx;enable,开启jmx;password,开启jmx并启用密码认证","CLICKHOUSE_DATA_SIZE_ON_DISK":"MergeTree 表数据大小","QUERIES":"查询数量","SELECT_QUERIES":"SELECT 查询数量","ALL_QUERIES":"所有查询数量","INSERTED_BYTES":"已插入数据","INSERTED_ROWS":"已插入行数","MAXIMUM_REPLICATION_DEPLAY":"最大复制延迟","RELATIVE_DELAY":"相对延迟","ABSOLUTE_DELAY":"绝对延迟","TOTAL_PARTS_OF_MERGETREE_TABLES":"MergeTree 表 Part 总数","DELAYED_REJECTED_INSERTS":"延迟/拒绝插入数量","DELAYED_QUERIES":"延迟查询数量","DELAYED_BLOCKS":"延迟块数量","REJECTED_BLOCKS":"拒绝块数量","DELAYED_DISTRIBUTED_FILES":"延迟分发文件数量","READ_BYTES":"读取字节数","UNCOMPRESSED":"未压缩","COMPRESSED":"已压缩","FILE_DESCRIPTOR":"文件描述符","CLICKHOUSE_OS":"操作系统","MEMORY_FOR_QUERIES":"查询内存","REPLICATION_QUEUE_JOBS":"复制队列任务","DATA_LOSS":"数据丢失","CHECK":"检查次数","CHECK_FAIL":"失败检查次数","FETCH":"获取次数","FETCH_FAIL":"获取失败次数","FETCH_MERGED":"已合并 Part 获取次数","REPLICATED_MERGED":"成功合并次数","MAX_QUEUE_SIZE":"队列长度上限","MERGES":"合并数量","MERGED_ROWS":"合并行数","MERGED_UNCOMPRESSED_BYTES":"合并未压缩字节数","ACTIVE_PARTS":"活跃 Part 数量","DETACHED_PARTS":"卸载 Part 数量","MAX_PART_COUNT_FOR_PARTITION":"分区 Part 数量上限","CLICKHOUSE_SERVER_PROCESS_MEMORY":"clickhouse-server 进程内存","PRIMARY_KEYS_MEMORY":"主键内存","DICTIONARY_MEMORY":"字典内存","MARKS_CACHE_HIT_RATE":"标记缓存命中率","BACKGROUND_TASKS":"后台任务","MERGE_MUTATE_FETCH":"合并/突变/获取","CLEAN_ALTER_REPLICA_REINIT":"清理/变更/副本重初始化","MOVES":"移动","MUTATIONS":"突变","PARTS_TO_DO":"待完成 Part 数量","CPU_TIME_PER_SECOND":"每秒 CPU 时间","DISK_READ_SYSCALL":"磁盘读取系统调用","DISK_WRITE_SYSCALL":"磁盘写入系统调用","NETWORK_RECEIVE":"网络接收","NETWORK_SEND":"网络发送","REAL_TIME":"实际时间","USER_TIME":"用户时间","SYSTEM_TIME":"系统时间","OS_IO_WAIT":"操作系统 I/O 等待","OS_CPU_WAIT":"操作系统 CPU 等待","OS_CPU_VIRTUAL":"操作系统 CPU 虚拟时间","MAX_USED_CONNECTIONS":"最大使用连接数量","THREADS":"线程数量","PEAK_THREADS_CONNECTED":"最大已连接线程数量","PEAK_THREADS_RUNNING":"最大运行中线程数","AVG_THREADS_RUNNING":"平均运行中线程数量","ABORTED_CONNECTIONS":"已中止连接数量","ABORTED_CONNECTION_ATTEMPTS":"中止连接尝试次数","ABORTED_CLIENT_TIMEOUTS":"客户端超时次数","QUESTIONS":"问题(Question)数量","SELECT_BY_TYPE":"Select 数量","SELECT_FULL_JOIN":"Select Full Join","SELECT_FULL_RANGE_JOIN":"Select Full Range Join","SELECT_RANGE":"Select Range","SELECT_FULL_RANGE":"Select Full Range","SELECT_RANGE_CHECK":"Select Range Check","SELECT_SCAN":"Select Scan","SORT_BY_TYPE":"Sort 数量","SORT_ROWS":"Sort Rows","SORT_RANGE":"Sort Range","SORT_MERGE_PASSES":"Sort Merge Passes","SORT_SCAN":"Sort Scan","SLOW_QUERIES":"慢查询数量","TABLE_LOCKS":"表锁数量","TABLE_LOCKS_IMMEDIATE":"立即表锁数量","TABLE_LOCKS_WAITED":"等待表锁数量","TMP_TABLES_AND_FILES":"临时表和文件","CREATED_TMP_TABLES":"已创建临时表数量","CREATED_TMP_DISK_TABLES":"已创建临时磁盘表数量","CREATED_TMP_FILES":"已创建临时文件数量","MYSQL_NETWORK_TRAFFIC":"网络流量","MYSQL_INBOUND":"入站","MYSQL_OUTBOUND":"出站","CLUSTER_TASK_WAITING_TIME":"集群任务等待时间","CLUSTER_TASK_STATUS":"集群任务状态","CLUSTER_NUMBER_OF_IN_FLIGHT_FETCH":"未完成获取数量","CLUSTER_NUMBER_OF_PENDING_TASKS":"等待任务数量","CLUSTER_NUMBER_OF_NODES":"节点数量","CLUSTER_NUMBER_OF_DATA_NODES":"数据节点","CLUSTER_NUMBER_OF_ALL_NODES":"节点总数","SHARD_STATUS":"分片状态","CLUSTER_DELAYED_UNASSIGNED_SHARDS":"延迟未分配分片数量","CLUSTER_INITIALIZING_SHARDS":"初始化中分片数量","CLUSTER_RELOCATING_SHARDS":"重定位中分片数量","CLUSTER_UNASSIGNED_SHARDS":"未分配分片数量","CLUSTER_ACTIVE_PRIMARY_SHARDS":"活跃主分片数量","CLUSTER_ACTIVE_SHARDS":"活跃分片数量","CLUSTER_HEALTH_STATUS":"集群健康状态","CLUSTER_HEALTH_STATUS_GREEN":"健康","CLUSTER_HEALTH_STATUS_YELLOW":"告警","CLUSTER_HEALTH_STATUS_RED":"故障","HEAP_MEMORY":"堆内存","JVM_MEMORY_HEAP_USAGE_PER":"JVM 堆内存用量","DATA_AVAILABLE_BYTES":"可用磁盘空间","DATA_AVAILABLE_PERCENT":"可用磁盘百分比","ECK_CPU_USAGE":"CPU 用量","OS_LOAD":"操作系统负载","OS_LOAD1":"操作系统负载(1 分钟)","OS_LOAD5":"操作系统负载(5 分钟)","OS_LOAD15":"操作系统负载(15 分钟)","DOC_STATISTICS":"文档统计","ELASTICSEARCH_INDICES_DOCS":"文档数量","ELASTICSEARCH_INDICES_DOCS_DELETED":"已删除文档","ELASTICSEARCH_INDICES_INDEXING_INDEX_QPS":"索引 QPS","ELASTICSEARCH_INDICES_SEARCH_QUERY_QPS":"搜索 QPS","ELASTICSEARCH_INDICES_INDEXING_TIME_MS":"索引耗时","ELASTICSEARCH_INDICES_SEARCH_TIME_MS":"搜索耗时","CLUSTER_SHARDS_ACTIVE_PERCENT":"活跃分片数量","ONLINE_BROKER_COUNT":"在线的 Broker 数量","PARTITIONS_UNDER_MINIMUM_ISR":"ISR 少于下限分区数量","OFFLINE_PARTITION_COUNT":"离线分区数量","TOPIC_INCOMING_DATA_RATE":"每秒流入字节数","TOPIC_OUTGOING_DATA_RATE":"每秒流出字节数","TOPIC_INCOMING_MESSAGE_RATE":"每秒接收消息数量","TOPIC_OUTGOING_MESSAGE_RATE":"平均每秒生产的请求数","KAFKA_OPEN_FILE_DESC":"打开文件描述符数","NETWORK_PROCESSOR_AVG_IDLE_PERCENT":"NetworkProcessor 线程空闲率","DISK_WRITES":"磁盘写入","DISK_READS":"磁盘读取","KAFKA_MEMORY_USAGE":"内存用量","KAFKA_CPU_USAGE":"CPU 用量","JVM_MEMORY_USAGE":"JVM 内存用量","JVM_THREAD_COUNT":"JVM 线程数量","AVAILABLE_DISK_SPACE":"可用磁盘空间","ALL_KAFKA_NODES":"所有 Kafka 节点","ALL_ZOOKEEPER_NODES":"所有 ZooKeeper 节点","OP_COUNTERS":"操作数量","OP_INSERT":"插入","OP_QUERY":"查询","OP_UPDATE":"更新","OP_DELETE":"删除","OP_GETMORE":"返回游标","OP_COMMAND":"总数","OPREPL_COUNTERS":"副本集操作数量","OPREPL_INSERT":"插入","OPREPL_QUERY":"查询","OPREPL_UPDATE":"更新","OPREPL_DELETE":"删除","OPREPL_GETMORE":"返回游标","OPREPL_COMMAND":"总数","CONNECTIONS_CURRENT":"当前连接数量","CONNECTIONS_TOTALCREATED":"已创建连接总数","CONNECTIONS_AVAILABLE":"可用连接数量","CONNECTIONS_ACTIVE":"活跃连接数量","CURSOR_COUNT":"游标数量","CURSOR_TIMEDOUT":"超时游标数量","CURSOR_OPEN_NOTIMEOUT":"永不超时游标数量","CURSOR_OPEN_PINNED":"固定打开游标数量","CURSOR_OPEN_TOTAL":"总数","MONGODB_NETWORK_TRAFFIC":"网络流量","NETWORK_BYTESIN":"入站流量","NETWORK_BYTESOUT":"出站流量","WIREDTIGER_OPERATION_COUNT":"WiredTiger 操作数量","WT_WRITE_OUT":"并发写操作数量","WT_WRITE_AVAILABLE":"可用并发写操作数量","WT_READ_OUT":"并发读操作数量","WT_READ_AVAILABLE":"可用并发读操作数量","DOC_COUNT":"文档数量","DOC_DELETED":"已删除文档数量","DOC_INSERTED":"已插入文档数量","DOC_RETURNED":"已返回文档数量","DOC_UPDATED":"已更新文档数量","QUERYEXECUTOR":"查询执行器指标","SCANNEDKEYS":"已扫描键数量","SCANNEDDOCS":"已扫描文档数量","ACTIVECLIENTS":"活跃客户端数量","CLIENTS_TOTAL":"客户端总数","CLIENTS_READERS":"读操作客户端数量","CLIENTS_WRITERS":"写操作客户端数量","QUEUED_OPERATIONS":"队列中请求数量","QUEUE_TOTAL":"总数","QUEUE_READERS":"队列中读请求数量","QUEUE_WRITERS":"队列中写请求数量","WIREDTIGER_CACHE":"WiredTiger 缓存","WIREDTIGER_CACHE_USAGED":"缓存用量","WIREDTIGER_CACHE_DIRTY_USAGE":"脏数据比例","OPENSEARCH_HEAP_MEMORY":"heap 堆内存","OPENSEARCH_HEAP_MEMORY_PER":"heap 堆内存使用率","OPENSEARCH_CPU_USAGE":"cpu 使用百分比","OPENSEARCH_CPU_USAGE_PER":"\tcpu 使用率","CPU_LOAD":"CPU 负载","CPU_LOAD1":"CPU 负载(1 分钟)","CPU_LOAD5":"CPU 负载(5 分钟)","CPU_LOAD15":"CPU 负载(15 分钟)","EVENTS_STATISTICS":"事件统计","IN_EVENTS_STATISTICS":"in 事件","FILTERED_EVENTS_STATISTICS":"filtered 事件","OUT_EVENTS_STATISTICS":"out 事件","QUEUE_EVENTS_COUNT":"队列中的事件数","JVM_THREADS_COUNT":"JVM 线程数","DBPARAM_PIPELINE_WORKERS_DESC":"工作线程数量","DBPARAM_PIPELINE_BATCH_SIZE_DESC":"工作线程单次处理的最大事件数。该数字越大,则消耗内存越多,需调整jvm heap","DBPARAM_PIPELINE_BATCH_DELAY_DESC":"工作线程等待数量不足批次的最大时间,单位毫秒","DBPARAM_PIPELINE_UNSAFE_SHUTDOWN_DESC":"当存在正在处理的事件时,是否允许关闭pipeline","DBPARAM_PIPELINE_ORDERED_DESC":"流水线事件排序设置。auto,自动;true,排序,只启动1个工作线程;false,不排序","DBPARAM_ECS_COMPATIBILITY_DESC":"如果插件支持ECS compatibility,则插件使用该值为默认值。","DBPARAM_LOG_LEVEL_DESC":"日志级别","DBPARAM_LOG_FORMAT_DESC":"日志格式","DBPARAM_LOG_JVM_DESC":"jvm heap 大小,一般取内存的50%-75%。 默认取内存的50%。","PREDIXY_MEMORY_USAGE":"内存用量","CLIENT_COUNT":"客户端数量","RECV_CLIENT_BYTES":"每秒从客户端接收字节数","RECV_SERVER_BYTES":"每秒从服务端接收字节数","SEND_CLIENT_BYTES":"每秒向客户端发送字节数","SEND_SERVER_BYTES":"每秒从服务端发送字节数","COMMANDS_EXECUTED_PER_MINUTE":"每分钟执行命令数量","REDIS_CLUSTER_COUNT":"Redis 集群数量","REDIS_MEMORY_USAGE":"内存用量","REDIS_USED_MEMORY":"已使用","REDIS_MAX_MEMORY":"总量","NETWORK_IO":"网络 I/O","NETWORK_INPUT_BYTES":"接收字节数(5分钟)","NETWORK_OUTPUT_BYTES":"发送字节数(5分钟)","TOP_5_REDIS_COMMANDS_PER_MINUTE":"每分钟命令执行次数前 5 ","TOTAL_DB_KEYS":"数据库键总数","DB_KEYS":"数据库键数量","VALID_KEYS":"有效键数量","EXPIRED_KEYS":"过期键数量","KEYSPACE":"键空间","KEYSPACE_HITS_TOTAL":"命中总次数","KEYSPACE_MISSES_TOTAL":"未命中总次数","MEMORY_FRAGMENTATION_RATIO":"内存碎片率","REJECTED_CONNECTION_RATIO":"被拒绝连接比例","REVICTED_KEY_RATIO":"被拒绝键数量","QUORUM_SIZE":"法定节点数量","ZNODE_COUNT":"Znode 数量","WATCHER_COUNT":"观察者数量","ZOOKEEPER_MEMORY_USAGE":"内存用量","ZOOKEEPER_CPU_USAGE":"CPU 用量","OPEN_FILE_DESCRIPTORS":"打开文件描述符数量","REQUEST_LATENCY_AVERAGE":"平均请求延迟","REQUEST_LATENCY_MAXIMUM":"最大请求延迟","SHARD_COUNT":"分片数量","SHARDS_DESC":"数据库的分片数量。取值范围为 1 到 100。","CK_REPLICAS_DESC":"每个分片副本的数量。取值范围为 1 到 3。","HTTP_PORT":"HTTP 端口","HTTP_PORT_DESC":"取值范围为 0 到 65535。","DATABASE_STORAGE_CLASS_DESC":"如果没有满足需求的存储类,请联系平台管理员创建存储类。","DATABASE_NODE_TIP":"数据库节点是逻辑数据库实例而不是物理服务器。","VALUE_RANGE_DESC":"取值范围为 {min} 到 {max}。","VALUE_MUST_BE_INTEGER":"取值必须为整数。","VALUE_CANNOT_BE_GREATER_THAN_VALUE":"取值不能大于 {max}。","VALUE_CANNOT_BE_LESS_THAN_20":"取值不能小于 20。","DATA_NODE_COUNT":"数据节点数量","STANDBY_DATABASE_COUNT":"备数据库","PROJECT_NAME_EXCEEDS_LIMIT":"对于 MySQL 5.7,项目名称不能超过 16 个字符。","APP_NAME_EXCEED_LIMIT":"对于 MySQL 5.7,应用名称不能超过 14 个字符。","DATABASE_KERNEL_VERSION_DESC":"选择数据库的版本。","STANDBY_DATABASE_COUNT_DESC":"备数据库的数量。参数值可以为 1、2 或 4。","VALUE_CANNOT_BE_LESS_THAN_10":"取值不能小于 10。","PRIMARY_NODE_SETTINGS":"主节点设置","PRIMARY_NODE_RESOURCES_DESC":"设置分配给每个主节点的 CPU 和内存资源。","PRIMARY_NODE_COUNT":"主节点数量","PRIMARY_NODE_COUNT_DESC":"设置主节点的数量。","HOT_NODE_SETTINGS":"热节点设置","HOT_NODE_RESOURCES_DESC":"设置分配给每个热节点的 CPU 和内存资源。","HOT_NODE_COUNT":"热节点数量","WARM_NODE_SETTINGS":"温节点设置","WARM_NODE_RESOURCES_DESC":"设置分配给每个温节点的 CPU 和内存资源。","WARM_NODE_COUNT":"温节点数量","COLD_NODE_SETTINGS":"冷节点设置","COLD_NODE_RESOURCES_DESC":"设置分配给每个冷节点的 CPU 和内存资源。","COLD_NODE_COUNT":"冷节点数量","KIBANA_NODE_SETTINGS":"Kibana 节点设置","KIBANA_NODE_RESOURCES_DESC":"设置分配给每个 Kibana 节点的 CPU 和内存资源。","KIBANA_NODE_COUNT":"Kibana 节点数量","VOLUMN_PERSIST":"主节点上的卷大小为 20 GiB 并且不能修改。","REDIS_NODE":"Redis 节点","REDIS_NODE_COUNT":"Redis 节点数量","REDIS_NODE_COUNT_DESC":"Redis 集群中的节点数量。","PROXY_NODE_COUNT":"代理节点数量","PROXY_NODE_RESOURCES":"代理节点资源","ENDPOINT_TYPE":"外部访问","ENDPOINT_TYPE_DESC":"是否使用域名从 KubeSphere 集群外部访问数据库分片。","ENDPOINT_TYPE_ERROR":"在启用此功能前,请确保数据库集群中不存在代理节点。","REDIS_PASSWORD_DESC":"密码只能包含大写字母、小写字母、数字和特殊字符(!@#$%^&*()./;),长度为 6 到 31 个字符。","INVALID_REDIS_PASSWORD_DESC":"密码无效。密码只能包含大写字母、小写字母、数字和特殊字符(!@#$%^&*()./;),长度为 6 到 31 个字符。","VOLUME_CAPACITY_CANNOT_REDUCE":"卷容量不能减少。","KAFKA_SETTINGS":"Kafka 设置","KAFKA_NODE_RESOURCES_DESC":"设置分配给每个 Kafka 节点的 CPU 和内存资源。","KAFKA_VERSION":"Kafka 版本","KAFKA_NODE_COUNT":"Kafka 节点数量","ZOOKEEPER_SETTINGS":"ZooKeeper 设置","ZOOKEEPER_NODE_RESOURCES_DESC":"设置分配给每个 ZooKeeper 节点的 CPU 和内存资源。","ZOOKEEPER_NODE_COUNT":"ZooKeeper 节点数量","DASHBOARD_NODE_SETTINGS":"控制面板节点设置","DASHBOARD_NODE_RESOURCES_DESC":"设置分配给每个控制面板节点的 CPU 和内存资源。","DASHOBOARD_NODE_COUNT":"控制面板节点数量","LOGSTASH_NODE_SETTINGS":"Logstash 节点设置","LOGSTASH_NODE_RESOURCES_DESC":"设置分配给每个 Logstash 节点的 CPU 和内存资源。","LOGSTASH_NODE_COUNT":"Logstash 节点数量","MONGODB_NODE_COUNT_DESC":"数据库节点的数量。","OTHER_APP_EMPTY_DESC":"此页面显示您通过 helm 命令安装的应用。","OTHER_APP_PL":"其他应用","UPLOAD_FAILED_MESSAGE":"上传失败。{message}","GPU_USAGE_TIME":"GPU 用量({time})","GPU_MEMORY_USAGE_TIME":"显存用量({time})","PVC_USAGE_TOOLTIP_MESSAGE":"当前项目的持久卷用量(如果使用文件存储,数据可能不准确)。","PROJECT_MEMBERS_AND_ROLES":"项目成员和角色","RECENTLY_LOGGED_IN_MEMBERS":"最近登录用户","PROJECT_ALERTS":"项目告警","ENT_CLUSTER_GATEWAY_GUIDE_DESC":"如果同时存在集群网关、企业空间网关和项目网关,禁用项目网关后将无法再启用项目网关。 建议您使用集群网关或企业空间网关。","WORKSPACE_GATEWAY_GUIDE_DESC":"如果同时存在企业空间网关和项目网关,禁用项目网关后将无法再启用项目网关。 建议您使用企业空间网关或项目网关。","ROLL_BACK_MICROSERVICE_CONFIGURATION":"回退微服务配置","ROLLBACK_SUCCESSFUL":"回退成功。","HISTORICAL_VERSIONS":"历史版本","CONFIGURATION_CONTNET_TYPE":"数据({type})","SQ_CONFIGURATION":"微服务配置","SQ_CONFIGURATION_PL":"微服务配置","SQ_CONFIGURATION_DESC":"微服务配置存储供微服务使用的键值数据。您可以使用微服务配置分离微服务及其配置数据。","SQ_CONFIGURATION_EMPTY_DESC":"请创建微服务配置。","CONFIGURATION_STATUS_SUCCEEDED":"已发布","CONFIGURATION_STATUS_FAILED":"失败","CONFIGURATION_STATUS_":"更新中","DATA_ID":"数据 ID","CREATE_CONFIGURATION":"创建微服务配置","CONFIGURATION_CONTENT":"数据","CONFIGURATION_CONTENT_EMPTY_DESC":"请输入配置数据。","EDIT_CONFIGURATION":"编辑微服务配置","ORIGINAL_CONFIGURATION_CONTENT_READONLY":"原数据(只读)","CURRENT_CONFIGURATION_CONTENT":"新数据","REPLICATE":"复制","REPLICATE_CONFIGURATION_NAME":"复制微服务配置 {name}","SQ_CONFIGURATION_LOW":"微服务配置","MICROSERVICE_GATEWAY":"微服务网关","MICROSERVICE_GATEWAY_PL":"微服务网关","MICROSERVICE_GATEWAY_DESC":"微服务网关根据微服务路由将请求转发给微服务,以便微服务可以被其他微服务或客户端访问。","MICROSERVICE_GATEWAY_EMPTY_DESC":"未发现微服务网关","MICROSERVICE_GATEWAY_EMPTY_TIP":"请创建微服务网关。","GATEWAY_TYPE":"网关类型","MICROSERVICE_GATEWAY_STATUS_RUNNING":"运行中","MICROSERVICE_GATEWAY_STATUS_UPDATING":"更新中","MICROSERVICE_GATEWAY_STATUS_STOPPED":"停止","MICROSERVICE_GATEWAY_STATUS_":"创建中","CREATE_MICROSERVICE_GATEWAY":"创建微服务网关","GATEWAY_IMAGE_EMPTY_DESC":"请设置用于创建微服务网关的容器镜像。","REPLICA_COUNT_EMPTY_DESC":"请输入微服务网关的副本数。","EDIT_MICROSERVICE_GATEWAY":"编辑微服务网关","MICROSERVICE_GATEWAY_LOW":"微服务网关","MICROSERVICE_ROUTE":"微服务路由","MICROSERVICE_ROUTE_LOW":"微服务路由","MICROSERVICE_ROUTE_PL":"微服务路由","MICROSERVICE_ROUTE_DESC":"微服务网关根据微服务路由将请求转发给微服务,以便微服务可以被其他微服务或客户端访问。","MICROSERVICE_ROUTE_EMPTY_DESC":"请创建微服务路由。在创建微服务路由之前,请确保微服务网关可用。","CREATE_MICROSERVICE_ROUTE":"创建微服务路由","MICROSERVICE_ORDER":"优先级","MICROSERVICE_ORDER_DESC":"微服务路由的优先级,数字越小优先级越高。","MICROSERVICE_ROUTE_URL_DESC":"微服务的 URL。","PREDICATE":"断言","MICROSERVICE_ROUTE_FILTER":"过滤器","EDIT_MICROSERVICE_ROUTE":"编辑微服务路由","NO_INSTANCE_FOUND":"未发现实例","MICROSERVICE_INSTANCE_PL":"实例","MICROSERVICE_INSTANCE_STATUS":"实例状态","MICROSERVICE_INSTANCE_ID":"实例 ID","SPRING_CLOUD_METADATA":"Spring Cloud 元数据","POD_METADATA":"容器组元数据","SPRING_CLOUD_MONITORING":"Spring Cloud 监控","JVM_THREADS_LIVE":"活跃线程数量","JVM_THREADS_DAEMON":"守护进程数量","JVM_THREADS_PEAK":"峰值线程数量","JVM_MEMORY_USED":"已使用","JVM_MEMORY_COMMITTED":"可用","JVM_MEMORY_MAX":"最大值","JVM_MEMORY_USED_METASPACE":"初始值","SPRING_BOOT_CONFIGURATION_INFOMATION":"Spring Boot 环境变量 {resources}","PROPERTY_NOT_SET":"未发现环境变量","POD_ENVIRONMENT_VARIABLE":"容器组环境变量","SPRING_CLOUD":"Spring Cloud","MICROSERVICE":"微服务","MICROSERVICE_PL":"微服务","MICROSERVICE_DESC":"在 Spring Cloud 架构中,您可以构建由多个微服务组成的大规模应用程序。微服务负责处理客户端请求。每个微服务包含一个或多个实例,每个实例都是微服务的副本。","WHAT_IS_SERVICE_REGISTRATION_CENTER_Q":"什么是服务注册中心?","WHAT_IS_SERVICE_REGISTRATION_CENTER_A":"服务注册中心是 Spring Cloud 微服务架构的核心功能组件。服务注册中心储存微服务的信息,以及微服务和微服务地址之间的映射关系。","SERVICE_REGISTRY":"服务注册中心","SERVICE_REGISTRY_ADDRESS":"服务注册中心地址","DOWNLOAD_SAMPLE_CONFIGURATION":"下载示例配置","INSTANCE":"实例","INSTANCE_PL":"实例","HEALTHY_INSTANCE":"健康实例","HEALTHY_INSTANCE_PL":"健康实例","MICROSERVICE_INSTANCE_COUNT":"实例数量","MICROSERVICE_HEALTHY_INSTANCE_COUNT":"健康实例数量","HEALTH_PROTECTION_TRIGGERED":"已触发健康保护","MICROSERVICE_EMPTY_DESC":"请创建一个微服务。","SPRING_CLOUD_PROJECT_NOT_LABEL":"Spring Cloud 存量项目","SPRING_CLOUD_PROJECT_NOT_LABEL_DESC":"是否在该项目下启用 Spring Cloud","OPEN_PROJECT_SPRING_CLOUD":"启用 Spring Cloud","MICROSERVICE_INSTANCE_STATUS_RUNNING":"运行中","MICROSERVICE_INSTANCE_STATUS_OFFLINE":"离线","EDIT_WEIGHT":"编辑权重","INSTANCE_WEIGHT_DESC":"微服务实例的权重。","TAKE_ONLINE":"上线","TAKE_ONLINE_SUCCESS":"上线成功","CREATE_MICROSERVICE":"创建微服务","ASC_EXPORT":"正序导出","DESC_EXPORT":"倒序导出","LOG_EXPORT":"日志导出","END_USER_SOFTWARE_LICENSE_AGREEMENT":"最终用户软件许可协议","END_USER_SOFTWARE_LICENSE_AGREEMENT_LINK":"《最终用户软件许可协议》","PLEASE_AGREE_USER_SOFTWARE_LICENSE_AGREEMENT":"请同意最终用户软件许可协议。","WORKSPACE_GATEWAY_DESC":"在企业空间和项目中设置并管理外部网络接入网关和服务管理。","WORKSPACE_GATEWAY":"企业空间网关","WORKSPACE_GATEWAY_LOW":"企业空间网关","PROJECT_ENABLE_GATEWAY_DESC_WS":"如果需要设置项目网关,请前往对应项目开启。","CLUSTER_GATEWAY_GUIDE_DESC_WS":"如果同时存在集群网关和企业空间网关,禁用企业空间网关后将无法再启用它。 建议您只启用集群网关或企业空间网关。","CLUSTER_NOT_SUPPORT_WORKSPACE_GATEWAY":"此集群目前不支持此功能。如果您需要使用该功能,请将集群升级到 KubeSphere Enterprise 3.4.0 及以上版本。","STORAGE_RELATED_RESOURCE_LIMIT":"存储类关联资源限制","TOTAL_STORAGE_CLASS":"存储类总量","LIMITED_STORAGE_CLASS":"限制的存储类数量","RELATED_RESOURCE_QUOTA":"关联资源配额","REQUESTS_STORAGE":"持久卷声明限制","PERSISTENTVOLUMECLAIMS":"持久卷声明","TOTAL_STORAGE_RESOURCE":"存储资源总量","STORAGE_RELATED_RESOURCE":"存储类关联资源","TOTAL_STORAGE_LIMIT_LESS_THAN_RELATE_RESOURCE":"存储资源的总限额不能低于绑定资源的总限额。","VOLUME_TOTAL_CAPACITY":"持久卷声明容量({unit})","VOLUME_MAX_NUM":"持久卷声明总量","SET_RELATED_STORAGE_CLASS_QUOTA":"设置与存储类关联的持久卷声明配额。","SELECT_STORAGE_CLASS":"选择存储类","STORAGE_QUOTA":"存储资源配额","WS_STORAGE_QUOTA_DESC":"可以对企业空间下的存储资源总量进行限制。","NS_STORAGE_QUOTA_DESC":"可以对项目下的存储资源总量进行限制。","STORAGE_VOLUME_LIMIT_NO_LIMIT":"资源限制:不限制持久卷声明容量","STORAGE_VOLUME_LIMIT_HAS_A_LIMIT":"资源限制:持久卷声明容量 {num} Gi","STORAGE_PERSISTENT_VOLUME_NO_LIMIT":"持久卷声明数量无限制。","STORAGE_PERSISTENT_VOLUME_HAS_A_LIMIT":"持久卷声明数量{num}","STORAGE_LIMIT":"持久卷声明容量限制","STORAGE_CLASS_VOLUME":"持久卷声明数量","SELECT_A_STORAGECLASS":"选择存储类","VOLUME_COUNT":"已关联的持久卷声明数量","KS_DESCRIPTION":"KubeSphere 是一款开源项目,在目前主流容器调度平台 Kubernetes 之上构建的企业级分布式多租户容器管理平台,提供简单易用的操作界面以及向导式操作方式,在降低用户使用容器调度平台学习成本的同时,极大降低开发、测试、运维的日常工作的复杂度。","REPS_ADDRESS":"项目地址","ISSUE_FEEDBACK":"问题反馈","PART_IN_DISCUSSION":"参与讨论","CODE_CONTRIBUTE":"贡献代码","GITHUB_STAR":"标星","DESELECT_RESOURCE_FIRST":"请先取消选择{resource}。","NO_AUTHORIZED_USER_DESC":"此角色尚未授权给任何用户。","PLATFORM_ROLE_PL":"平台角色","PLATFORM_ROLE_EMPTY_DESC":"请创建一个平台角色。","ROLE_USERS_MANAGER":"管理 KubeSphere 平台上的所有用户。","ROLE_WORKSPACES_MANAGER":"管理 KubeSphere 平台上的所有企业空间。","ROLE_PLATFORM_ADMIN":"管理 KubeSphere 平台上的所有资源。","ROLE_PLATFORM_REGULAR":"被邀请加入企业空间之前无法访问任何资源。","ROLE_PLATFORM_SELF_PROVISIONER":"创建企业空间并成为所创建的企业空间的管理员。","CREATION_TIME_TCAP":"创建时间","CREATE_PLATFORM_ROLE":"创建平台角色","PERMIGROUP_CLUSTERS_MANAGEMENT":"集群","PERMISSION_CLUSTERS_VIEW":"集群查看","PERMISSION_CLUSTERS_VIEW_DESC":"查看所有集群和集群资源。","PERMISSION_CLUSTERS_MANAGEMENT":"集群管理","PERMISSION_CLUSTERS_MANAGEMENT_DESC":"创建集群、删除集群和管理集群中的所有资源。","PERMIGROUP_ACCESS_CONTROL":"访问控制","PERMISSION_WORKSPACES_VIEW":"企业空间查看","PERMISSION_WORKSPACES_VIEW_DESC":"查看工作空间。","PERMISSION_WORKSPACES_MANAGEMENT":"企业空间管理","PERMISSION_WORKSPACES_MANAGEMENT_DESC":"创建、编辑和删除企业空间。","PERMISSION_WORKSPACES_CREATE":"企业空间创建","PERMISSION_WORKSPACES_CREATE_DESC":"创建企业空间并成为所创建的企业空间的管理员。","PERMISSION_USERS_VIEW":"用户查看","PERMISSION_USERS_VIEW_DESC":"查看用户。","PERMISSION_USERS_MANAGEMENT":"用户管理","PERMISSION_USERS_MANAGEMENT_DESC":"创建、编辑和删除用户。","PERMISSION_ROLES_VIEW":"角色查看","PERMISSION_ROLES_VIEW_DESC":"查看平台角色。","PERMISSION_ROLES_MANAGEMENT":"角色管理","PERMISSION_ROLES_MANAGEMENT_DESC":"创建、编辑和删除平台角色。","PERMIGROUP_APPS_MANAGEMENT":"应用","PERMISSION_APP_TEMPLATES_VIEW":"应用查看","PERMISSION_APP_TEMPLATES_VIEW_DESC":"查看平台应用商店。","PERMISSION_APP_TEMPLATES_MANAGEMENT":"应用模板管理","PERMISSION_APP_TEMPLATES_MANAGEMENT_DESC":"管理平台应用商店和云原生应用的生命周期。","PERMIGROUP_PLATFORM_SETTINGS":"平台设置","PERMISSION_PLATFORM_SETTINGS_MANAGEMENT":"平台设置管理","PERMISSION_PLATFORM_SETTINGS_MANAGEMENT_DESC":"查看和编辑 KubeSphere平台的设置。","DELETING_PRESET_ROLES_NOT_ALLOWED":"无法删除预置角色。","CONFIRM_PASSWORD_TIP":"请再次输入新的密码。","CHANGE_PASSWORD":"修改密码","NEW_PASSWORD":"新密码","PASSWORD_STRENGTH":"密码强度","PASSWORD_STRENGTH_DESC":"避免使用弱密码其他账户的密码。","TIME":"时间","SOURCE_IP_ADDRESS":"源 IP 地址","LOGIN_HISTORY":"登录历史","NO_LOGIN_HISTORY":"未发现登录历史。","SUCCESSFUL":"成功","FAILED":"失败","USER_DESC":"管理用户及其角色。","USER_PL":"用户","NOT_LOGIN_YET":"尚未登录","USER_EMPTY_DESC":"请创建一个用户。","USER_ACTIVE":"活跃","USER_AUTHLIMITEXCEEDED":"限制登录","USER_PENDING":"等待中","USER_DISABLED":"已禁用","LAST_LOGIN":"最近登录","USERNAME_DESC":"用户名只能包含小写字母、数字、连字符(-)和句点(.),必须以小写字母或数字开头及结尾,最长 32 个字符。","PASSWORD_DESC":"密码必须包含至少一个数字、一个小写字母、一个大写字母和一个特殊字符(~!@#$%^&*()-_=+\\|[{}];:'\",<.>/? 或空格),长度为 8 到 64 个字符。","PASSWORD_INVALID_DESC":"密码无效。密码必须包含数字、大写字母和小写字母,长度为 8 至 64 个字符。","PLATFORM_ROLE_DESC":"设置用户在 KubeSphere 平台的角色。","USER_SETTING_EMAIL_DESC":"邮箱地址可用于登录 KubeSphere Web 控制台。","USERNAME_EXISTS":"用户名已存在,请输入其他用户名。","USERNAME_EMPTY_DESC":"请输入一个用户名。","PLATFORM_ROLE":"平台角色","CREATE_USER":"创建用户","EMAIL":"邮箱","EMAIL_EXISTS":"邮箱地址已存在,请输入其他邮箱地址。","USERNAME_INVALID":"用户名无效。{message}","USERNAME":"用户名","PASSWORD":"密码","EDIT_USER":"编辑用户","USER_LOW":"用户","DELETING_CURRENT_USER_NOT_ALLOWED":"无法删除当前用户。","WORKSPACE_PL":"企业空间","WORKSPACE_DESC":"企业空间是一个组织您的项目和 DevOps 项目、管理资源访问权限以及在团队内部共享资源等的逻辑单元,可以作为团队工作的独立工作空间。","KS_WORKSPACE_PL":"KS 企业空间","KS_WORKSPACE_DESC":"KS 企业空间是一个组织您的项目和 DevOps 项目、管理资源访问权限以及在团队内部共享资源等的逻辑单元,可以作为团队工作的独立工作空间。","EDGE_WORKSPACE_PL":"边缘企业空间","EDGE_WORKSPACE_DESC":"边缘企业空间是一个组织您的项目和 DevOps 项目、管理资源访问权限以及在团队内部共享资源等的逻辑单元,可以作为团队工作的独立工作空间。","CLUSTER_PL":"集群","ALL_CLUSTERS":"所有集群","CREATE_WORKSPACE":"创建企业空间","CREATE_KS_WORKSPACE":"创建 KS 企业空间","CREATE_EDGE_WORKSPACE":"创建边缘企业空间","WORKSPACE_NAME_EMPTY_DESC":"请输入企业空间名称。","WORKSPACE_CREATE_DESC":"设置企业空间的基本信息。","ADMINISTRATOR":"管理员","WORKSPACE_NAME_EXISTS_DESC":"企业空间名称已存在。","INVALID_WORKSPACE_NAME":"企业空间名称无效。","SELECT_CLUSTERS_DESC":"选择企业空间需要使用的{type}。","NO_CLUSTER_AVAILABLE":"没有可用集群","NO_CLUSTER_AVAILABLE_DESC":"未发现可用的{type}。请在企业空间创建完成后,联系平台管理员或集群管理员将一个集群授权给该企业空间。","WORKSPACE_NO_CLUSTER_TIP":"请联系平台管理员或者集群管理员将一个集群授权给企业空间。","AVAILABLE_CLUSTERS":"可用集群","CLUSTER_SETTINGS":"集群设置","CLUSTER_SETTINGS_LIMIT_DESC":"请至少选择一个集群。","SELECT_HOST_CLUSTER_WARNING":"当前系统为多集群系统,请尽量避免在主集群上创建资源。主集群负载过高会导致多集群系统稳定性下降。","DELETE_WORKSPACE":"删除企业空间","WORKSPACE_LOW":"企业空间","BACK":"返回","AGREE":"同意","APP_DEPLOY_AGREEMENT":"安装须知","APP_DEPLOY_AGREEMENT_DESC_1":"您必须遵守该应用的开源协议。","APP_DEPLOY_AGREEMENT_DESC_2":"您将自行承担部署该应用导致的任何后果。如果需要支持服务,请联系相关开发者。","DO_NOT_REMIND_AGAIN":"不再提示","LOCATION":"位置","CLUSTER_NAME_DESC":"名称只能包含小写字母、数字和连字符(-),必须以小写字母开头并以小写字母或数字结尾,最长 32 个字符。","FEDPROJECT_CANNOT_DEPLOY_APP_TIP":"无法在联邦项目中安装应用。","LATEST_VERSION_SCAP":"最新版本","WORKSPACE_EMPTY_DESC":"请选择企业空间","VERSION_EMPTY_DESC":"请选择版本。","HELM_APP_SCHEMA_FORM_TIP":"您可以通过图形化表单或 YAML 文件对应用进行设置。图形化表单和 YAML 文件中的设置相互独立。","DEPLOYED_SUCCESSFUL":"部署成功。","APP_INFORMATION":"应用信息","VERSION_NUMBER":"版本号","APP_SCREENSHOTS":"应用截图","CATEGORY_COLON":"分类:","HOMEPAGE_COLON":"首页:","RELEASE_DATE_COLON":"发布时间:","APP_ID_COLON":"应用 ID:","SOURCE_CODE_ADDRESS_COLON":"源代码地址:","APP_VERSIONS_TITLE":"版本(只显示 10 个最新的版本)","MAINTAINER_COLON":"维护者:","VERSIONS":"版本","KEYWORDS":"关键词","NONE":"无","APP_INTRODUCTION":"应用介绍","APP_DETAILS":"应用详情","NO_DOCUMENT_DESC":"未发现说明文档。","VERSION_INTRO_EMPTY_DESC":"未发现该版本的介绍。","CHART_FILES":"Chart 文件","NO_APP_CHART_FILE_FOUND":"未发现该应用的 chart 文件。","APP_STORE":"应用商店","HOME_APP_STORE_DESC":"KubeSphere 官方应用商店提供部署及管理功能,用户可以基于应用模板快速地一键部署应用。","DISCOVER":"发现","NEW_APPS":"新应用","APP_CATE_ALL":"全部","APP_CATE_UNCATEGORIZED":"未分类","APP_CATE_MESSAGE_QUEUEING":"消息队列","APP_CATE_IMAGE_REGISTRY":"镜像服务","APP_CATE_PROMETHEUS_EXPORTER":"Prometheus 导出器","APP_CATE_WEB_SERVER":"Web 服务器","APP_CATE_NETWORKING":"网络","APP_CATE_DATABASE_CACHE":"数据库和缓存","APP_CATE_STORAGE":"存储","MAINTAINER_VALUE":"维护者:{value}","CREATOR_VALUE":"创建者:{value}","LATEST_VALUE":"最新:{value}","TOTAL_CATE_COUNT":"应用总数:{total}","SEARCH_BY_NAME":"按名称搜索","CONTAINER_GROUP_INFO":"容器组信息","APP_SETTINGS":"应用设置","APP_CATEGORY_PL":"应用分类","APP_CATEGORIES_DESC":"对应用商店中已上架的应用进行分类管理。您可以创建、编辑、删除和调整应用分类。","ALL_CATEGORIES_VALUE":"全部分类({value})","APP_CATEGORY_EMPTY_DESC":"没有属于当前分类的应用。","ENTER_CATEGORY_NAME_TIP":"请输入分类名称。","CATEGORY_NAME_DESC":"名称可包含任意字符,最长 20 个字符。","DELETE_CATEGORY_DESC":"您确定要删除分类 {name} 吗?","CHANGED_SUCCESSFULLY":"调整成功。","CHANGE_CATEGORY":"更改分类","CHANGE_CATEGORY_DESC":"应用分类将决定该应用在应用商店中的分类。","APP_DETAILS_DESC":"查看待发布的应用的详情。","INTRODUCTION":"介绍","SERVICE_PROVIDER_WEBSITE":"服务商网站","APP_DESCRIPTION":"应用描述","DOCUMENTATION":"说明文档","NO_DOCUMENT_FOUND":"未发现说明文档","UPDATE_TIME_COLON":"更新时间:","UPDATE_LOG":"更新日志","NO_UPDATE_LOG_DESC":"未发现更新日志。","REJECT":"拒绝","REJECT_REASON_DESC":"填写拒绝应用审核的原因。","REJECT_REASON_TIP":"请填写至少一条拒绝原因。","REJECT_SUCCESSFUL":"拒绝成功。","APPROVE":"批准","RELEASE_SUCCESSFUL":"发布成功。","APP_REVIEW":"应用审核","APP_REVIEW_DESC":"审核待发布到应用商店的应用。","NEW_SUBMIT":"新提交","APP_REVIEW_EMPTY_DESC":"请在企业空间中创建应用模板并提交审核。","APP_STATUS_TO_BE_REVIEWED":"待审核","APP_STATUS_PASSED":"已批准","APP_STATUS_SUSPENDED":"已下架","APP_STATUS_REJECTED":"已拒绝","APP_STATUS_IN_REVIEW":"审核中","OPERATOR":"操作者","APP_REVIEW_UNPROCESSED_EMPTY_DESC":"没有需要审核的应用","SUSPEND":"下架","APP_NOTE":"提示","SUSPEND_SUCCESSFUL":"下架成功。","RELEASE":"发布","ACTIVATE_SUCCESSFUL":"发布成功。","APP_ID":"应用 ID","CATEGORY":"分类","TYPE":"类型","DEVELOPER":"开发者","NO_VERSION_INFO_DESC":"未发现版本信息。","ACTIVATE_VERSION":"上架版本","CANCEL_SUBMISSION":"取消提交","SUSPEND_VERSION":"下架版本","APP_SUSPEND_TIP":"应用 {name} 下架后,用户无法从商店中部署此应用,您确定要下架该应用吗?","APP_RECOVER_TIP":"应用 {name} 上架后,相关的下架版本都将变成上架,您确定要上架该应用吗?","REJECTION_REASON":"拒绝原因","RELEASE_RECORD":"发布记录","RELEASE_RECORD_EMPTY_DESC":"未发现发布记录。","APPS":"应用","APP_STORE_MANAGEMENT":"应用商店管理","APP_STORE_DESC":"管理应用商店中的应用。您可以查看应用的信息并上架或下架应用。","APP_CATEGORY":"应用分类","APP_EMPTY_DESC":"请在企业空间中创建应用模板并将其发布到应用商店。","CRONJOB_EMPTY_DESC":"请创建一个定时任务。","EVERY_DAY":"0 0 * * * (每天)","EVERY_HOUR":"0 * * * * (每小时)","EVERY_MONTH":"0 0 1 * * (每月)","EVERY_WEEK":"0 0 * * 0 (每周)","PAUSE":"暂停","START":"启动","DAEMONSETS":"守护进程集","DAEMONSET_EMPTY_DESC":"请创建一个守护进程集。","MIN_READY_SECONDS":"容器组就绪最短运行时长(s)","MAX_UNAVAILABLE_PODS":"最大不可用容器组数量","ROLLING_UPDATE_SETTINGS":"滚动更新设置","MAX_UNAVAILABLE_PODS_DESC":"更新过程中允许的不可用容器组副本的最大数量或百分比。","MIN_READY_SECONDS_DESC":"容器组副本被视为就绪所需要的最短稳定运行时长。","MIN_READY_SECONDS_EMPTY":"请设置容器组副本被视为就绪所需要的最短稳定运行时长。","MAX_UNAVAILABLE_EMPTY":"请设置更新过程中允许的不可用容器组副本的最大数量或百分比。","FAILURE_THRESHOLD":"失败阈值","HTTP_REQUEST":"HTTP 请求","INITIAL_DELAY_S":"初始延迟(s)","INITIAL_DELAY_TIMEOUT_VALUE":"{delay}s 初始延迟, {timeout}s 超时时间","PROBE_TIME":"初始延时: {delay}s 超时时间:{timeout}s","TIMEOUT_PERIOD_S":"超时时间(s)","CHECK_INTERVAL_S":"检查间隔(s)","SUCCESS_THRESHOLD":"成功阈值","INITIAL_DELAY_DESC":"容器启动后探针启动前的延迟时间。","TIMEOUT_PERIOD_DESC":"探针超时时间。探针超时后,检查将被视为失败。取值必须为整数,最小值为 0。","CHECK_INTERVAL_DESC":"执行检查的时间间隔。取值必须为整数,最小值为 1。","SUCCESS_THRESHOLD_DESC":"检查失败后再次被视为成功所需的最小连续成功次数。最小值为 1。对于存活探针和启动探针,此参数值必须为 1。","FAILURE_THRESHOLD_DESC":"检查成功后再次被视为失败所需的最小连续失败次数。最小值为 1。","PROBE_COMMAND_EMPTY":"请输入至少一条命令。","TCP_PORT":"TCP 端口","MOUNT_PATH_IN_USE":"挂载路径已被使用,请输入其他挂载路径。","CREATOR":"创建者","NO":"否","EDIT_CONTAINER":"编辑容器","MULTI_CLUSTER_RESOURCE_TIP":"当前资源跨多个集群部署。您可以点击一个集群以查看资源在该集群中的设置。","NODE":"节点","SERIAL_NUMBER":"序列号","CREATED_TIME":"创建于 {diff}","EVENT_PL":"事件","EVENT_NORMAL":"正常","EVENT_WARNING":"一般告警","APPLICATION_WORKLOAD_PL":"应用负载","WORKLOAD_PL":"工作负载","DEPLOYMENTS":"部署","UPDATE_TIME_TCAP":"更新时间","ALL_PROJECTS":"全部项目","SHOW_NUM":"每页显示:{num}","SELECT_PROJECT_DESC":"选择将要创建资源的项目。","PROJECT_NOT_SELECT_DESC":"请选择一个项目。","BASIC_INFORMATION":"基本信息","NAME":"名称","FEDPROJECT_RESOURCE_TIP":"无法在集群管理内创建联邦项目的资源, 请到联邦项目页面内进行操作。","FINISHED":"已设置","NOT_SET":"未设置","CURRENT":"当前","PROJECT":"项目","PREVIOUS":"上一步","NOTE":"备注","IMAGE":"镜像","IMAGE_VALUE":"镜像:{value}","PORT_NUMBER_EMPTY":"请输入端口号。","USER":"用户","VOLUME_NAME_EXIST":"卷名称已存在。","SELECT_TYPE":"选择{type}","SPECIFY_SUBPATH":"指定子路径","SPECIFY_SUBPATH_TIP":"指定需要挂载到容器的卷子路径。","MOUNT_PATH":"挂载路径","MOUNT_PATH_NOT_SPECIFIED":"请选择需要挂载的键和键的挂载路径。","MOUNT_PATH_EMPTY":"请输入挂载路径。","MOUNT_PATH_REPEATED":"挂载路径重复。","NETWORK_SEGMENT_SCAP":"网段","AVAILABLE_ADDRESSES":"可用地址数量","POD_IP_POOL":"容器组 IP 池","SUBPATH":"子路径","ANNOTATION_PL":"注解","CREATE_SUCCESSFUL":"创建成功。","STOP":"停止","STOP_TITLE_SI":"停止{type}","STOP_TITLE_PL":"批量停止{type}","STOP_DESC":"您确定停止该资源吗?","END_TIME":"结束时间","SN_NO":"序号","START_TIME":"开始时间","NODE_IP_ADDRESS":"节点 IP 地址","CLUSTER":"集群","CONTAINER_PL":"容器","PROBE_PL":"探针","HOOK_PL":"钩子","CONTAINER_LOGS_NOT_SUPPORTED":"容器在当前不支持实时日志,请稍后重试。","CONTAINER_LOGS":"容器日志","COMMAND":"命令","IMAGE_ID":"镜像 ID","IMAGE_PULL_POLICY":"镜像拉取策略","CONTAINER_DETAILS_PAGE_SCAP":"容器详情页。","CPU_VALUE":"CPU:{value, plural, =1 {1 核} other {# 核}}","MEMORY_VALUE":"内存:{value}","NVIDIA_COM_GPU_VALUE":"GPU:{value}","LOADING":"加载中...","RESOURCE_LIMITS":"资源上限","RESOURCE_REQUESTS":"资源预留","TERMINAL":"终端","RESTART_PL":"重启次数","RESTART":"重启次数","STORAGE_DEVICES":"存储设备","LIVENESS_PROBE":"存活探针","READINESS_PROBE":"就绪探针","STARTUP_PROBE":"启动探针","REQUEST_TYPE":"请求类型","NO_LOG_DATA_FOUND":"未发现日志数据","NO_LOG_DATA_FOUND_TIP":"没有找到日志数据。","VOLUME_PL":"卷","TYPE_CONFIGMAP":"卷类型:配置字典","TYPE_SECRET":"卷类型:保密字典","TYPE_EMPTYDIR":"卷类型:EmptyDir","TYPE_HOSTPATH":"卷类型:HostPath","REASON_VALUE":"原因:{value}","MESSAGE_VALUE":"消息:{value}","UPDATED_AT_VALUE":"更新时间:{value}","NO_MONITORING_DATA":"未发现监控数据","OUTBOUND":"出站","INBOUND":"入站","POD_PL":"容器组","NODE_IP":"{node}({ip})","WAITING":"等待中","POD_LOW":"容器组","PENDING":"等待中","SERVICE_VALUE":"服务:{value}","PROTOCOL_VALUE":"协议:{value}","ROUTE_DESC":"应用路由提供一种聚合服务的方式,您可以通过一个外部可访问的 IP 地址将集群的内部服务暴露给外部。","PREREQUESTS_FOR_USE_ROUTE_Q":"使用应用路由的前提条件?","PREREQUESTS_FOR_USE_ROUTE_A":"如需使用应用路由,您需要联系项目管理员启用项目网关。","ACCESS_TYPES_OF_ROUTE_Q":"应用路由支持哪些的访问模式?","ACCESS_TYPES_OF_ROUTE_A":"KubeSphere 应用路由支持 NodePort 访问模式以及 LoadBalancer 访问模式。","ROUTE_PL":"应用路由","GATEWAY_ADDRESS_TCAP":"网关地址","ROUTE_EMPTY_DESC":"请创建应用路由。","ADD_ROUTING_RULE_DESC":"添加一个路由规则将域名路径映射至服务。","ADD_ROUTING_RULE":"添加路由规则","ROUTING_RULE_EMPTY_DESC":"请添加至少一个路由规则。","PATH_EMPTY_DESC":"请添加至少一个路径。","AUTO_GENERATE_TCAP":"自动生成","DOMAIN_NAME_TCAP":"域名","DOMAIN_NAME_EMPTY_DESC":"请输入一个域名。","INVALID_DOMAIN_DESC":"域名格式错误。","INVALID_PATH_DESC":"路径不正确。","MODE_TCAP":"模式","PATH_PL":"路径","PATH_SERVICE_TIP":"服务","SET_ROUTING_RULES":"设置路由规则","SPECIFY_DOMAIN_TCAP":"指定域名","NO_GATEWAY_DESC":"如需使用自动生成模式,请联系项目管理员在此项目的高级设置中设置网关访问模式。","PATH":"路径","PROTOCOL":"协议","PORT":"端口","PORT_VALUE":"端口:{value}","CERTIFICATE":"证书","EDIT_ROUTING_RULES":"编辑路由规则","EDIT_ANNOTATIONS":"编辑注解","ROUTE_LOW":"应用路由","PLEASE_INSTALL_GATEWAY":"请安装 KubeSphere 网关扩展组件,并配置集群 Agent 后再试。","ROUTE_SETTING_DESC":"应用路由工具在应用路由的基础上,提供了多项实用扩展能力,如域名重用校验。","ROUTE_SETTING_EMPT":"未发现需重用校验的域名","ROUTE_SETTING_EMPTY_DESC":"添加域名后,会在创建和编辑应用路由时对域名进行唯一性校验。“域名重用校验”仅对当前集群生效,且不作用于使用该功能前已存在的应用路由。","CREATE_DOMAIN_NAME":"添加域名","CREATE_DOMAIN_NAME_DES":"添加域名时支持使用通配符进行匹配。","INVALID_CREATE_DOMAIN_NAME":"该域名已经存在,请输入其他域名。","DOMAIN_NAME_DESC":"请设置一个域名","INVALID_DOMAIN_NAME":"域名重用校验","ROUTE_SETTING":"域名","ROUTE_SETTING_PL":"应用路由工具","ROUTE_SETTING_LOW":"域名","DELETE_MULTIPLE_ROUTE_SETTING":"批量删除域名","EXIT_DOMAIN_DESC":"该域名或域名的子域名在当前集群的项目中已使用,请更换不同域名。","CUSTOM_SERVICE":"自定义服务","VIRTUAL_IP":"VirtualIP","CONTAINER_PORT_SCAP":"容器端口","SERVICE_PORT_SCAP":"服务端口","NO_AVAILABLE_RESOURCE_VALUE":"未发现可用{resource}","NO_RESOURCE_FOUND":"未发现资源","REVISION_RECORD":"修改记录","SERVICE_PL":"服务","SERVICE_DESC":"服务(Service)提供一种抽象的方法,将运行在容器组(Pod)上的应用程序公开为网络服务。","SERVICE_EMPTY_DESC":"请创建一个服务。","UNKNOWN":"未知","EXTERNAL_ACCESS":"外部访问","INTERNAL_ACCESS":"内部访问","UNKNOWN_SERVICE_TYPE":"未知服务类型","SERVICE":"服务","SERVICE_LOW":"服务","INTERNAL_ACCESS_MODE":"内部访问模式","CREATE_SERVICE":"创建服务","SERVICE_NAME_DESC":"名称只能包含小写字母、数字和连字符(-),必须以小写字母开头并以小写字母或数字结尾,最长 63 个字符。","VIRTUAL_IP_TITLE":"虚拟 IP 地址","INTERNAL_DOMAIN_NAME":"内部域名","CONTAINER_PORT":"容器端口","INVALID_PORT":"端口无效。","PORT_EMPTY":"请设置至少一个端口。","ENTER_SELECTOR_TIP":"请设置工作负载选择器。","Ports":"端口","SPECIFY_WORKLOAD":"指定工作负载","SELECT_WORKLOAD_DESC":"使用工作负载的标签作为选择器。","VIRTUAL_IP_DESC":"为服务分配虚拟 IP 地址,可通过虚拟 IP 地址在集群内部访问服务。","INTERNAL_DOMAIN_NAME_DESC":"不为服务分配 IP 地址,可通过集群的 DNS 机制在集群内部访问服务。","SERVICE_PORTS_DESC":"设置容器端口和服务端口。","NO_WORKLOAD_MATCH_SELECTOR":"没有工作负载匹配当前选择器。","WORKLOADS_MATCH_SELECTOR_SI":"当前选择器({selector})与 {count} 个工作负载匹配。","WORKLOADS_MATCH_SELECTOR_PL":"当前选择器({selector})与 {count} 个工作负载匹配。","WORKLOAD_SELECTOR":"工作负载选择器","SERVICE_SETTINGS":"服务设置","TOTAL_WORKLOADS_VALUE":"工作负载总数:{count}","OPENELB_NOT_READY":"OpenELB 未安装。请安装 OpenELB。","SESSION_PERSISTENCE":"会话保持","MAXIMUM_STICKINESS_DURATION":"最长会话保持时间(s)","SESSION_PERSISTENCE_DESC":"设置系统在指定的时间内将同一个会话中来自同一个客户端的请求全部转发给同一个容器组。","SERVICE_EXTERNAL_ACCESS_DESC":"设置从集群外访问服务的方式。","ACCESS_NODEPORT_TIP":"通过集群节点的端口访问服务。","ACCESS_LOADBALANCER_TIP":"通过负载均衡器访问服务。","WORKLOAD_ANNOTATIONS":"工作负载注解","LABEL_FORMAT_DESC":"标签的键和值只能包含字母、数字、连字符(-)、下划线(_)和句点(.),必须以数字或字母开头和结尾。键和值分别最长 63 个字符(如键包含域名则最长 253 个字符)。","STATEFULSETS":"有状态副本集","INVALID_ALIAS_NAME_DESC":"别名无效。别名只能包含中文、字母、数字和连字符(-),不得以连字符(-)开头或结尾,最长 63 个字符。","NODES":"节点","DISK":"磁盘","CLUSTER_INFORMATION":"集群信息","CLUSTER_NAME":"集群名称","EDIT_CLUSTER_INFO_DESC":"编辑集群基本信息。","REMOVE_CLUSTER":"移除集群","REMOVE_CLUSTER_DESC":"集群被移除后,KubeSphere 将无法管理集群,集群中的资源将不会被删除。请输入集群名称 {name} 以确认您了解此操作的风险。","REMOVE_SUCCESS":"移除成功。","CLUSTER_MEMBER_PL":"集群成员","CLUSTER_MEMBER":"集群成员","INVITE_CLUSTER_MEMBER_DESC":"邀请用户加入集群。","PERMIGROUP_NETWORK_MANAGEMENT":"网络","PERMISSION_NETWORK_RESOURCES_VIEW":"网络资源查看","PERMISSION_NETWORK_RESOURCES_MANAGEMENT":"网络资源管理","PERMIGROUP_PROJECT_RESOURCES_MANAGEMENT":"项目资源","PERMISSION_PROJECT_RESOURCES_VIEW":"项目资源查看","PERMISSION_PROJECT_RESOURCES_MANAGEMENT":"项目资源管理","PERMISSION_STORAGECLASSES_VIEW":"存储类查看","PERMISSION_STORAGECLASSES_MANAGEMENT":"存储类管理","PERMISSION_VOLUME_SNAPSHOT_CLASSES_VIEW":"卷快照类查看","PERMISSION_VOLUME_SNAPSHOT_CLASSES_MANAGEMENT":"卷快照类管理","PERMIGROUP_CLUSTER_RESOURCES_MANAGEMENT":"集群资源","PERMISSION_CRD_VIEW":"定制资源定义查看","PERMISSION_CRD_MANAGEMENT":"定制资源定义管理","PERMISSION_NODES_VIEW":"节点查看","PERMISSION_NODES_MANAGEMENT":"节点管理","PERMISSION_COMPONENTS_VIEW":"系统组件查看","PERMIGROUP_CLUSTER_SETTINGS":"集群设置","PERMISSION_CLUSTER_SETTINGS_VIEW":"集群设置查看","PERMISSION_CLUSTER_SETTINGS_MANAGEMENT":"集群设置管理","PERMISSION_CLUSTER_MONITORING_VIEW":"监控信息查看","PERMISSION_CLUSTER_MONITORING_MANAGEMENT":"监控信息管理","PERMISSION_CLUSTER_ROLES_VIEW":"角色查看","PERMISSION_CLUSTER_ROLES_MANAGEMENT":"角色管理","PERMISSION_CLUSTER_MEMBERS_VIEW":"成员查看","PERMISSION_CLUSTER_MEMBERS_MANAGEMENT":"成员管理","CLUSTER_ROLE":"集群角色","CLUSTER_ROLE_PL":"集群角色","CLUSTER_ROLE_DESC":"集群角色定义了在集群范围内授权用户的访问权限。","ROLE_CLUSTER_VIEWER":"查看集群中的所有资源。","ROLE_CLUSTER_ADMIN":"管理集群中的所有资源。","ROLE_CLUSTER_REGULAR":"被邀请加入节点组之前无法访问任何资源。","ROLE_CLUSTER_SELF_PROVISIONER":"创建节点组并成为所创建的节点组的管理员。","CLUSTER_VISIBILITY":"集群可见性","EDIT_VISIBILITY_DESC":"编辑集群在企业空间中的可见性。","UNAUTHORIZED":"未授权","CLUSTER_VISIBILITY_DESC":"集群可见性控制集群对企业空间的授权。将集群授权给企业空间后,即可在企业空间中查看并管理集群资源。","CLUSTER_VISIBILITY_Q1":"如何将集群授权给指定的企业空间使用?","CLUSTER_VISIBILITY_A1":"您可以点击编辑可见性将集群授权给指定的企业空间使用。","CLUSTER_VISIBILITY_Q2":"什么是公开集群?","CLUSTER_VISIBILITY_A2":"公开状态的集群意味着平台内的用户都可以使用该集群,并在集群中创建和调度资源。","WORKSPACE":"企业空间","CLUSTER_VISIBILITY_SCAP":"集群可见性","AUTHORIZATION_TIME_TCAP":"授权时间","EDIT_VISIBILITY":"编辑可见性","AUTHORIZED":"已授权","SET_PUBLIC_CLUSTER":"设置为公开集群","HOST_CLUSTER_VISIBILITY_WARNING":"请谨慎将主集群授权给企业空间,主集群负载过高会导致多集群系统稳定性下降。","CLUSTER_VISIBILITY_REMOVE_WARNING":"移除集群对企业空间的授权后,该企业空间在当前集群下的所有资源将被删除。","REMOVE_WORKSPACE_CONFIRM_TITLE":"移除授权","REMOVE_WORKSPACE_CONFIRM_SI":"请输入企业空间名称 {resource} 确保您已了解操作所带来的风险。","REMOVE_WORKSPACE_CONFIRM_PL":"请输入企业空间名称 {resource} 确保您已了解操作所带来的风险。","GATEWAY_LOW":"网关","REQUEST_COUNT":"请求数量","NETWORK_TRAFFIC":"网络流量","CONNECTION_COUNT":"连接数量","FAILED_REQUEST_COUNT":"失败请求数量","AVERAGE_LATENCY":"平均延迟","P_FIFTY_LATENCY":"P50 延迟","P_NINETY_FIVE_LATENCY":"P95 延迟","P_NINETY_NINE_LATENCY":"P99 延迟","FOUR_XX_REQUEST_COUNT":"4XX 请求数量","FIVE_XX_REQUEST_COUNT":"5XX 请求数量","TOTAL_REQUESTS":"总请求数量","SUCCESSFUL_REQUESTS":"成功请求","CONFIGURATION_OPTIONS":"配置选项","GATEWAY_LOGS":"网关日志","LOGGING_DISABLED":"日志组件未启用","REFRESH_INTERVAL_VALUE":"刷新间隔:{value}s","EXPORT_LOGS":"导出日志","GATEWAY_SETTINGS":"网关设置","CLUSTER_GATEWAY_DESC":"对集群中的外网访问网关以及服务治理等配置进行设置和管理。","CLUSTER_GATEWAY_NOT_ENABLED":"集群网关未启用","CLUSTER_ENABLE_GATEWAY_DESC":"请启用集群网关。","CLUSTER_GATEWAY":"集群网关","GATEWAY_ADDRESS_SCAP":"网关地址","LOAD_BALANCER_PROVIDER_SCAP":"负载均衡器提供商","ENABLE_GATEWAY":"启用网关","GATEWAY_TRACING_TIP":"如果启用链路追踪后路由无法访问,请在路由中添加注解 nginx.ingress.kubernetes.io/service-upstream: true。","NGINX_INGRESS_VERSION":"Nginx ingress 版本","VIEW_DETAILS":"查看详情","DISABLE":"禁用","DISABLE_GATEWAY":"禁用网关","DISABLE_GATEWAY_TIP":"您确定禁用网关吗?","DISABLE_SUCCESSFUL":"禁用成功。","EDIT":"编辑","EDIT_TITLE":"编辑{title}","UPDATE":"更新","UPDATED_GATEWAY_TITLE":"更新网关","UPDATE_GATEWAY_DESC":"当前网关可以更新。","PROJECT_GATEWAY_PL":"项目网关","PROJECT_GATEWAY_NOT_ENABLED":"项目网关未启用","PROJECT_ENABLE_GATEWAY_DESC":"请启用项目网关。","REPLICA_COUNT":"副本数量","NODE_PORTS":"节点端口","PROJECT_GATEWAY_LOW":"项目网关","DISABLE_MULTIPLE_GATEWAYS":"批量禁用网关","EDIT_LOG_RECEIVER":"编辑日志接收器","INDEX_PREFIX":"索引前缀","LOG_RECEIVER":"日志接收器","LOG_RECEIVER_LOW":"日志接收器","CHANGE_STATUS":"更改状态","LOG_COLLECTION_ENABLE_TIPS":"新的状态需要 1 分钟左右生效。","SELECT_STATUS_TIP":"选择一个状态","ADDRESS":"地址","LOG_RECEIVER_PL":"日志接收器","LOG_COLLECTION_DESC":"系统将收集每个容器的标准输出和标准错误输出日志,并将其发送到一个或多个目标服务。","ADD_LOG_RECEIVER":"添加日志接收器","LOG_COLLECTION_TIPS":"每种类型的日志收集器只能添加一个。","ES_DESC":"Elasticsearch 是分布式、RESTful 风格的搜索和分析引擎。","KAFKA_DESC":"Kafka 是流行的开源流处理平台。","FLUENTD_DESC":"Fluentd 是提供统一日志处理层的开源数据收集器。","LOG_COLLECTION_ES_URL_TIPS":"默认使用系统部署的 Elasticsearch 服务,您也可以输入在集群内部或外部单独部署的 Elasticsearch 服务的地址。","LOG_COLLECTION_ES_INDEX_TIPS":"使用索引前缀进行快速搜索。系统以<集群>-<索引前缀>-<年-月-日>格式自动生成索引前缀。","ADDRESS_VALUE":"地址:{value}","TOPIC":"主题","ADD_SERVICE_ADDRESS":"添加","SERVICE_ADDRESS":"服务地址","ENTER_SERVICE_ADDRESS":"请输入服务地址。","INVALID_SERVICE_ADDRESS":"请输入正确的服务地址。","SERVICE_ADDRESS_EXIST":"服务地址已存在,请输入其他服务地址。","EXAMPLE_VALUE":"例如:{value}","LOG_COLLECTION_FLUENTD_URL_TIPS":"输入接收日志的 Fluentd 服务的地址。","EMPTY_LOG_COLLECTIONS":"未发现日志接收器。您可以添加日志接收器将日志发送到外部日志接收器中。","RESOURCE_EVENTS":"资源事件","AUDIT_LOGS":"审计日志","NO_CLUSTER_TIP":"请添加至少 1 个集群","CLUSTER_NAME_EMPTY":"请输入集群名称。","ADD_CLUSTER":"添加集群","TAG":"标签","CLUSTER_TAG_DESC":"选择标签来标识集群的用途。","CLUSTER_PROVIDER_DESC":"选择提供集群基础设施的服务商。","CONNECTION_SETTINGS":"连接设置","CLUSTER_CONFIG":"集群配置","EDIT_CONFIG":"编辑配置","CLUSTER_CONFIG_IMAGE_REGISTRY_TIP":"请将下方镜像仓库配置修改为实际使用的仓库地址。默认为 KubeSphere 官方在线仓库地址,请确认可访问后使用","CONNECTION_MODE":"连接模式","CLUSTER_CONNECT_MODE_DESC":"直接连接集群或使用代理连接集群。","CONNTECT_DIRECT":"直接连接","CONNTECT_PROXY":"代理连接","INPUT_KUBECONFIG":"成员集群 kubeconfig","CLUSTER_DIRECT_IMPORT_TIP":"KubeSphere 多集群控制平面通过提供的 kubeconfig 来直接连接导入集群,此种方式要求当前集群能够通过 kubeconfig 中的 server 地址直接访问待导入集群。

    通常适用于:
    1. 当前集群和待导入集群在同一内网网络中
    2. 当前集群和待导入集群已通过 VPN 或隧道等其它技术连通所在网络
    3. kubeconfig 的 server 地址可以通过公网访问","CLUSTER_AGENT_IMPORT_TIP":"KubeSphere 控制平面通过代理方式连接待导入集群,控制平面启动一个公开的代理服务,待导入集群创建相应的客户端组件连接代理服务,与控制平面之间建立一个反向代理。此种方式不需要待导入集群和控制平面在同一网络,也不要求待导入集群暴露集群的 apiserver 地址,但会有一定的网络性能损耗。

    通常适用于:
    1. 当前集群和待导入集群不在同一网络中
    2. 当前集群和待导入集群无法通过 VPN 或隧道等其它技术连通所在网络
    3. 对集群间网络性能损耗能容忍","CLUSTER_AGENT_TITLE":"请根据集群中提供的代理连接设置加入集群","CLUSTER_AGENT_DESC":"需要在集群中设置下相应的代理 Agent","HOW_TO_GET_KUBECONFIG":"如何获取 kubeconfig?","HOST_CLUSTER_TCAP":"主集群","HOST_CLUSTER_PL_TCAP":"主集群","MEMBER_CLUSTER_TCAP_PL":"成员集群","CLUSTER_CONDITION_INITIALIZED":"初始化完成","CLUSTER_CONDITION_AGENTAVAILABLE":"代理可用","CLUSTER_CONDITION_FEDERATED":"已加入联邦","CLUSTER_CONDITION_EXTERNALACCESSREADY":"外部访问就绪","CLUSTER_CONDITION_READY":"集群就绪","CLUSTER_CONDITION_SCHEDULABLE":"集群调度","CLUSTER_CONDITION_OPENPITRIXRUNTIMEREADY":"应用商店就绪","CLUSTER_CONDITION_KUBECONFIGCERTEXPIRESINSEVENDAYS":"kubeconfig 即将过期","NODE_COUNT":"节点数量","ENV_PRODUCTION":"生产环境","ENV_DEVELOPMENT":"开发环境","ENV_TESTING":"测试环境","ENV_DEMO":"演示环境","UPDATE_KUBECONFIG":"更新 kubeconfig","KUBE_CONFIG_IS_EXPIRED":"kubeconfig 已过期","EXPIRE_DATE":"过期时间","LAST_KUBE_CONFIG_EXPIRED":"kubeconfig 将在 {count} 天后过期","VALIDATION_FAILED":"校验失败。","NO_CLUSTER_TIP_DESC":"集群是运行 KubeSphone 的一组节点(物理或虚拟机)。","RISK_WARNING":"风险警告","REMOVE_CLUSTER_TIP_A":"集群被移除后,集群中原有的资源不会被自动清除。","REMOVE_CLUSTER_TIP_B":"集群被移除后,集群中原有的多集群配置数据不会被自动清除,卸载 KubeSphere 或删除关联资源时可能会导致用户数据丢失。请务必参照 KubeSphere 官方文档手动清理被移除集群中原有的多集群配置数据。","CLUSTER_CONFIRM_TEXT":"我了解移除集群的风险","ENTER_CLUSTER_NAME":"此操作不能撤消。请输入群集名称 {name} 以确认您了解此操作的风险。","CLUSTER_BANNER_ALERT":"KubeSphere 只需通过 KubeConfig 即可一键纳管 Member 集群。添加集群后,无需自行在 Member 集群上安装 KubeSphere;若已自行安装,请在添加 Member 集群前卸载。","CONFIGMAP_DESC":"配置字典(ConfigMap)常用于存储工作负载所需的配置信息,许多应用程序会从配置文件、命令行参数或环境变量中读取配置信息。","FIELDS":"字段","EDIT_YAML":"编辑 YAML","ENTER_CONFIG_VALUE_DESC":"配置项用于存储通用的配置变量,使用户可以将分布式系统中用于不同模块的环境变量统一到一个对象中进行管理。","CONFIG_FIELD_DESC":"此配置项映射条目的唯一 key 值。","CONFIGURATION":"配置","SECRET_PL":"保密字典","SECRET_DESC":"保密字典(Secret)是一种包含少量敏感信息的资源对象,例如密码、令牌、保密字典等,以键值对形式保存并且可以在容器组中使用。","SECRET_FIELD_COUNT":"字段数量","SECRET_EMPTY_DESC":"请创建一个保密字典。","SECRET":"保密字典","DATA_SETTINGS":"数据设置","IMAGE_REGISTRY_INFORMATION":"镜像服务信息","TLS_INFORMATION":"TLS 信息","USERNAME_PASSWORD":"用户名和密码","ADD_DATA_TCAP":"添加数据","ADD_DATA_DESC":"添加键值对数据。","REGISTRY_ADDRESS_TIP":"设置镜像服务地址,例如 docker.io。","IMAGE_REGISTRY_REQUIRED_DESC":"请设置镜像服务地址、用户名和密码。","CREDENTIAL_NAME_EMPTY_DESC":"请输入凭证名称。","ENTER_PRIVATE_KEY_DESC":"请输入私钥。","ENTER_DATA_DESC":"请添加数据。","PRIVATE_KEY_TCAP":"私钥","REGISTRY_ADDRESS_TCAP":"镜像服务地址","SKIP_VERIFY":"跳过证书验证","REGISTRY_SECRET_VER_ERR":"镜像服务验证失败。","REGISTRY_SECRET_VER_SUC":"镜像服务验证通过。","SECRET_NO_CHINESE_CODE_DESC":"保密字典的键必须由字母数字字符、连字符(-)、下划线(_)或句点(.)组成。","SECRET_TYPE_DESC":"选择一个保密字典类型。","IMAGE_REGISTRY_VALIDATE_TIP":"创建镜像服务保密字典前,请先验证用户名和密码。","DATA_KEY":"键","DATA_VALUE":"值","DEFAULT":"默认","USERNAME_AND_PASSWORD":"用户名和密码","DATA":"数据","EDIT_DATA_TCAP":"编辑数据","KUBECONFIG_SETTINGS":"kubeconfig 设置","CUSTOM_RESOURCE_PL":"自定义资源","PROJECT_DEVOPS_PROJECT":"项目/DevOps 项目","CUSTOM_RESOURCE":"自定义资源","CUSTOM_RESOURCE_LOW":"定制资源","CRD":"定制资源定义","CRD_PL":"定制资源定义","CRD_LOW":"定制资源定义","CRD_DESC":"定制资源定义(Custom Resource Definition,CRD)是一种 Kubernetes 实现自定义资源类型的扩展方式,您可以像操作内置资源对象一样操作定制资源定义对象。","CRD_EMPTY_DESC":"请创建一个定制资源定义。","KIND_TCAP":"类别","SCOPE_TCAP":"作用域","ALERTING_MESSAGE_PL":"告警","ALERT_MESSAGE_DESC":"当资源指标满足规则组中配置的条件时,系统将生成告警。","ALERTS_FROM_CUSTOM_POLICIES":"来源于自定义规则","ALERTS_FROM_BUILT_IN_POLICIES":"来源于内置规则","TRIGGER_TIME":"触发时间","ALERTING_MESSAGE_EMPTY_DESC":"当前集群中没有发现告警。","MONITORING_TARGET":"监控目标","DURATION":"持续时间","VIEW_METRIC_DATA":"查看指标数据","ALERTING_RULE":"告警规则","MONITORING_TARGETS_SCAP":"监控目标","TRIGGER_CONDITION_SCAP":"触发条件","METRIC_MONITORING":"指标监控","ALERT_MONITORING":"告警监控","NOTIFICATION_SUMMARY_COLON":"消息概要:","DETAILS_COLON":"详情:","NODES_VALUES":"节点:{values}","TRIGGER_CONDITION":"触发条件","MESSAGE_SUMMARY":"概要","MESSAGE_DETAILS":"详情","VIEW_METRIC_DATA_TCAP":"查看指标数据","ALERT_RULE_TEXT_PERCENT_SECOND":"{alterTypeText} {comparator} {thresholds}% 持续 {durationValue, plural, =1 {1 秒} other {# 秒}}","ALERT_RULE_TEXT_PERCENT_MINUTE":"{alterTypeText} {comparator} {thresholds}% 持续 {durationValue, plural, =1 {1 分钟} other {# 分钟}}","ALERT_RULE_TEXT_PERCENT_HOUR":"{alterTypeText} {comparator} {thresholds}% 持续 {durationValue, plural, =1 {1 小时} other {# 小时}}","ALERT_RULE_TEXT_SECOND":"{alterTypeText} {comparator} {thresholds} {unit} 持续 {durationValue, plural, =1 {1 秒} other {# 秒}}","ALERT_RULE_TEXT_MINUTE":"{alterTypeText} {comparator} {thresholds} {unit} 持续 {durationValue, plural, =1 {1 分钟} other {# 分钟}}","ALERT_RULE_TEXT_HOUR":"{alterTypeText} {comparator} {thresholds} {unit} 持续 {durationValue, plural, =1 {1 小时} other {# 小时}}","CPU_UTILIZATION_NO_PERCENT_TCAP":"CPU 用量","CPU_LOAD_1_TCAP":"CPU 平均负载(1 分钟)","CPU_LOAD_5_TCAP":"CPU 平均负载(5 分钟)","CPU_LOAD_15_TCAP":"CPU 平均负载(15 分钟)","MEMORY_UTILIZATION_NO_PERCENT_TCAP":"内存用量","MEMORY_AVAILABLE_TCAP":"可用内存","DATA_SEND_RATE_TCAP":"网络数据发送速率","DATA_RECEIVE_RATE_TCAP":"网络数据接收速率","DISK_SPACE_UTILIZATION_NO_PERCENT_TCAP":"本地磁盘用量","DISK_SPACE_AVAILABLE_TCAP":"本地磁盘可用空间","INODE_UTILIZATION_NO_PERCENT_TCAP":"Inode 用量","DISK_READ_IOPS_TCAP":"本地磁盘读取 IOPS","DISK_WRITE_IOPS_TCAP":"本地磁盘写入 IOPS","DISK_READ_THROUGHPUT_TCAP":"本地磁盘读取吞吐量","DISK_WRITE_THROUGHPUT_TCAP":"本地磁盘写入吞吐量","UNAVAILABLE_POD_RATIO_NO_PERCENT_TCAP":"容器组不可用率","POD_QUOTA_UTILIZATION_NO_PERCENT_TCAP":"容器组配额用量","MEMORY_USAGE_WO_CACHE_TCAP":"内存用量不含缓存","UNAVAILABLE_WORKLOAD_REPLICA_RATIO_NO_PERCENT_TCAP":"副本不可用率","THRESHOLD_VALUE":"阈值:{value}","NO_DATA_DESC":"未发现数据","ALERTING_POLICY_PL":"规则组","ALERTING_POLICY_DESC":"规则组包含告警规则,用于监测集群资源。","REQUESTS_FOR_TRIGGER_AN_ALARM_Q":"告警是如何产生的?","REQUESTS_FOR_TRIGGER_AN_ALARM_A":"您需要创建一个规则组并设置告警规则。当资源指标满足规则组中配置的条件时,系统将生成告警。","CUSTOM_POLICIES":"自定义规则组","BUILT_IN_POLICIES":"内置规则组","ALERTING_POLICY_EMPTY_DESC":"请创建一个规则组。","ALERT_RULE_INACTIVE":"未触发","ALERT_RULE_PENDING":"验证中","ALERT_RULE_FIRING":"已触发","ALERT_RULE_DISABLED":"已禁用","POLICY_STATUS":"规则组状态","RULE_STATUS":"规则状态","TIME_SPENT":"耗时","RECENT_DETECT_TIME":"最近检查","EDIT_ALERT_RULES":"编辑告警规则","RESET":"重置","SEVERITY":"告警级别","CREATE_ALERTING_POLICY":"创建规则组","CRITICAL_ALERT":"紧急","ERROR_ALERT":"重要","WARNING_ALERT":"警告","INFO_ALERT":"提醒","INVALID_TIME_DESC":"参数值无效,请输入 0 或正整数。","ALIAS":"别名","DURATION_MIN":"持续时间(分钟)","ALERT_DURATION":"设置系统等待一段时间并检查告警情况是否持续存在,如果告警情况持续存在才触发告警。","LONG_NAME_DESC":"名称只能包含小写字母、数字和连字符(-),必须以小写字母或数字开头和结尾,最长 253 个字符。","NAME_EXIST_DESC":"名称已存在,请输入其他名称。","ALIAS_NAME_DESC":"别名只能包含中文、字母、数字和连字符(-),不得以连字符(-)开头或结尾,最长 63 个字符。","CHECK_INTERVAL":"检查间隔","ALERTING_POLICY_CHECK_INTERVAL_DESC":"设置指标检查之间的时间间隔。默认值为 1 分钟。","ADD_ALERTING_RULE":"添加告警规则","ADD_ALERTING_RULE_DESC":"为规则组添加告警规则。","ENABLE_RULE":"启用规则","DISABLE_RULE":"禁用规则","RULE_NAME":"规则名称","CUSTOM_RULE_NAME_DESC":"规则名称可包含任意字符,最长 63 个字符。","LASTING_MINUTES":"持续 {minutes, plural, =1 {1 分钟} other {# 分钟}}","THRESHOLD_REQUIRED":"请输入指标阈值。","MESSAGE_SUMMARY_DESC":"消息概要可包含任意字符,最长 63 个字符。","MESSAGE_DETAILS_DESC":"消息详情可包含任意字符,最长 256 个字符。","RULE_TEMPLATE":"规则模板","RULE_SETTINGS":"规则设置","MONITORING_TARGETS":"监控目标","SET_ACTIVATION_CONDITION_DESC":"请设置触发条件。","THRESHOLD":"阈值","UNAVAILABLE_POD_RATIO":"容器组不可用率(%)","POD_QUOTA_UTILIZATION_SCAP":"容器组配额用量(%)","CPU_USAGE_SCAP":"CPU 用量","CPU_UTILIZATION_SCAP":"CPU 用量(%)","CPU_LOAD_1":"CPU 平均负载(1 分钟)","CPU_LOAD_5":"CPU 平均负载(5 分钟)","CPU_LOAD_15":"CPU 平均负载(15 分钟)","MEMORY_AVAILABLE":"可用内存","MEMORY_UTILIZATION_SCAP":"内存用量(%)","DISK_SPACE_AVAILABLE":"本地磁盘可用空间","DISK_SPACE_UTILIZATION":"本地磁盘用量(%)","INODE_UTILIZATION":"Inode 用量(%)","DISK_READ_IOPS":"本地磁盘读取 IOPS","DISK_WRITE_IOPS":"本地磁盘写入 IOPS","DISK_READ_THROUGHPUT":"本地磁盘读取吞吐量","DISK_WRITE_THROUGHPUT":"本地磁盘写入吞吐量","DATA_RECEIVE_RATE":"网络数据接收速率","DATA_SEND_RATE":"网络数据发送速率","MEMORY_USAGE_SCAP":"内存用量","MEMORY_USAGE_WO_CACHE_SCAP":"内存用量不含缓存","UNAVAILABLE_WORKLOAD_REPLICA_RATIO":"副本不可用率(%)","SELECT_NODE_TIP":"请选择至少一个集群节点。","CUSTOM_RULE":"自定义规则","RULE_EXPRESSION":"告警规则表达式","ENTER_RULE_EXPRESSION":"请输入告警规则表达式。","ALERT_RULE_EXPRESSION_DESC":"您可以通过 PromQL 语句来自定义告警规则。","ALERT_FUNCTIONS":"函数","ALERT_METRICS":"指标","ALERT_LABELS":"标签","ALERT_RATE_RANGES":"比率范围","ALERTING_MESSAGE":"告警","MESSAGE_SETTINGS":"消息设置","NOTIFICATION_SUMMARY":"概要","NOTIFICATION_DETAILS":"详情","EDIT_ALERTING_POLICY":"编辑规则组","DISABLE_ALERTING_POLICY":"禁用规则组","ALERTING_POLICY":"规则组","ALERTING_POLICY_LOW":"规则组","RESET_ALERTING_POLICY":"重置规则组","RESET_ALERTING_POLICY_DESC":"您确定重置规则组吗?","APPLICATION_RESOURCE_PL":"应用资源","MONITORING_APPLICATION_DESC":"应用资源提供应用资源用量的监控数据以及用量排行情况。","CUSTOM_TIME_RANGE":"自定义时间范围","ACCOUNTS":"账户","DEVOPS_PROJECT_PL":"DevOps 项目","SAMPLING_INTERVAL":"采样间隔","KUBE_SUN":"日","KUBE_MON":"一","KUBE_TUE":"二","KUBE_WED":"三","KUBE_THU":"四","KUBE_FRI":"五","KUBE_SAT":"六","KUBE_SUNDAY":"星期日","KUBE_MONDAY":"星期一","KUBE_TUESDAY":"星期二","KUBE_WEDNESDAY":"星期三","KUBE_THURSDAY":"星期四","KUBE_FRIDAY":"星期五","KUBE_SATURDAY":"星期六","KUBE_JAN":"1月","KUBE_FEB":"2月","KUBE_MAR":"3月","KUBE_APR":"4月","KUBE_MAY":"5月","KUBE_JUN":"6月","KUBE_JUL":"7月","KUBE_AUG":"8月","KUBE_SEP":"9月","KUBE_OCT":"10月","KUBE_NOV":"11月","KUBE_DEC":"12月","KUBE_JAN_LH":"一月","KUBE_FEB_LH":"二月","KUBE_MAR_LH":"三月","KUBE_APR_LH":"四月","KUBE_MAY_LH":"五月","KUBE_JUN_LH":"六月","KUBE_JUL_LH":"七月","KUBE_AUG_LH":"八月","KUBE_SEP_LH":"九月","KUBE_OCT_LH":"十月","KUBE_NOV_LH":"十一月","KUBE_DEC_LH":"十二月","APPLICATION_RESOURCE_USAGE":"应用资源用量","DEPLOYMENT":"部署","DEPLOYMENT_PL":"部署","DEPLOYMENT_LOW":"部署","STATEFULSET":"有状态副本集","STATEFULSET_PL":"有状态副本集","STATEFULSET_LOW":"有状态副本集","DAEMONSET":"守护进程集","DAEMONSET_PL":"守护进程集","DAEMONSET_LOW":"守护进程集","DEPLOYMENTS_VALUE":"部署:{value}","STATEFULSETS_VALUE":"有状态副本集数量:{value}","DAEMONSETS_VALUE":"守护进程集数量:{value}","RUNNING_PODS":"运行中的容器组数量","ROUTE":"应用路由","PROJECT_PL":"项目","PROJECT_COUNT":"项目数量","USAGE_RANKING":"用量排行","QUOTA_VALUE":"配额:{value}","OUTBOUND_TRAFFIC":"出站流量","INBOUND_TRAFFIC":"入站流量","SORT_BY_NAMESPACE_CPU_USAGE":"按 CPU 用量排行","SORT_BY_NAMESPACE_POD_COUNT":"按容器组配额用量(%)排行","SORT_BY_NAMESPACE_NET_BYTES_RECEIVED":"按入站流量排行","SORT_BY_NAMESPACE_NET_BYTES_TRANSMITTED":"按出站流量排行","MONITORING_AND_ALERTING":"监控告警","CLUSTER_STATUS":"集群状态","MONITORING_CLUSTER_DESC":"集群状态展示集群资源的概览和详情,您可以查看集群资源的监控数据和用量排行情况。","CLUSTER_NODE_STATUS":"集群节点状态","ALL_NODES":"所有节点","ONLINE_NODES":"在线节点","NODE_ONLINE_STATUS":"节点在线状态","TIMES_PER_SECOND":"次/秒","COMPONENT_STATUS":"组件状态","CONTROLLER_MANAGER":"管理控制中心","KUBERNETES_SCHEDULER":"Kubernetes 调度器","CLUSTER_RESOURCE_USAGE":"集群资源用量","POD_COUNT":"容器组数量","COUNT":"数量","PODS":"容器组","SERVICE_STATUS":"服务状态","ETCD_MONITORING":"etcd 监控","DB_SIZE":"库大小","RAFT_PROPOSAL":"Raft 提议","ETCD_STATUS":"服务 状态","ETCD_PROPOSAL":"Raft 提议","ETCD_DB_SIZE":"库 大小","ETCD_CLIENT_TRAFFIC":"客户端 流量","TITLE_UNIT":"{title}({unit})","AVERAGE":"平均值","PROPOSAL_COMMITTED":"已提交","PROPOSAL_APPLIED":"已应用","PROPOSAL_FAILED":"失败","PROPOSAL_PENDING":"等待中","SERVICE_COMPONENT_MONITORING":"服务组件监控","SCHEDULE_ATTEMPTS":"调度次数","SCHEDULING_RATE":"调度速率","REQUEST":"请求","REQUEST_PER_SECOND":"每秒请求数","SCHEDULER":"调度器","TOTAL_AVERAGE":"总均值","SUCCESS":"成功","ERROR":"错误","FAILURE":"失败","REQUEST_LATENCY_TCAP":"请求 延迟","REQUEST_RATE":"请求 速率","SCHEDULE_ATTEMPTS_TCAP":"调度 次数","SCHEDULING_RATE_TCAP":"调度 速率","API_SERVER":"API 服务器","SELECT_TIME_RANGE":"选择时间范围","LAST_TIME":"最近 {value}","LAST_TIME_M":"最近 {num} 分钟","LAST_TIME_H":"最近 {num} 小时","LAST_TIME_D":"最近 {num} 天","TIMERANGE_SELECTOR_MSG":"结束时间需晚于开始时间。","TIMERANGE_SELECTOR_ERROR_MSG":"时间范围设置错误。","PHYSICAL_RESOURCES_MONITORING":"物理资源监控","INODE_USAGE":"Inode 用量","DISK_USAGE":"磁盘用量","DISK_USAGE_DETAILS":"磁盘用量详情","AVERAGE_CPU_LOAD":"CPU 平均负载","DISK_THROUGHPUT":"磁盘吞吐","POD_STATUS":"容器组状态","COMPLETED":"已完成","WARNING":"异常","READ":"读","WRITE":"写","RUNNING":"运行中","TIME_M":"{num} 分钟","TIME_H":"{num, plural, =1 {1 小时} other{# 小时}}","TIME_D":"{num, plural, =1 {1 天} other{# 天}}","EXTERNAL_ETCD":"外部 etcd","DB_FSYNC":"库同步时间","GRPC_STREAM_MESSAGES":"gRPC 流式消息","CLIENT_TRAFFIC":"客户端流量","RECEIVED":"接收","SENT":"发送","WAL_FSYNC":"WAL 日志同步时间","ETCD_LEADER_TITLE":"是否有 Leader","ETCD_CHANGES_TITLE":"1 小时内 Leader 变更次数","NODE_IP_ADDRESS_VALUE":"节点 IP 地址:{value}","API_SERVER_MONITORING":"API Server 监控","REQUEST_LATENCY":"请求延迟","REQUEST_LATENCY_MS":"请求延迟(ms)","REST_CREATE":"CREATE","REST_DELETE":"DELETE","REST_DELETECOLLECTION":"DELETECOLLECTION","REST_GET":"GET","REST_POST":"POST","REST_PATCH":"PATCH","REST_PUT":"PUT","REST_UPDATE":"UPDATE","REST_LIST":"LIST","SCHEDULER_MONITORING":"调度器监控","SCHEDULING_LATENCY":"调度延迟","RESOURCE_USAGE_RANKING":"资源用量排行","SORT_BY_NODE_CPU_UTILISATION":"按 CPU 用量(%)排行","SORT_BY_NODE_MEMORY_UTILISATION":"按内存用量(%)排行","SORT_BY_NODE_DISK_SIZE_UTILISATION":"按磁盘用量(%)排行","SORT_BY_NODE_POD_UTILISATION":"按容器组用量排行","SORT_BY_NODE_DISK_INODE_UTILISATION":"按 Inode 用量排行","SORT_BY_NODE_LOAD1":"按 1 分钟 CPU 平均负载排行","SORT_BY_NAMESPACE_MEMORY_USAGE_WO_CACHE":"按内存用量排行","POD_USAGE":"容器组用量","EXPORT":"导出","CUSTOM_MONITORING":"自定义监控","CUSTOM_MONITORING_DASHBOARD":"自定义监控面板","CUSTOM_MONITORING_DASHBOARD_PL":"自定义监控面板","CUSTOM_MONITORING_DASHBOARD_EMPTY_DESC":"请创建一个自定义监控面板。","CUSTOM_MONITORING_DASHBOARD_DESC":"自定义监控提供应用监控模板,您可以根据需求自定义监控面板。","TEMPLATE":"模板","CREATE_CUSTOM_MONITORING_DASHBOARD":"创建自定义监控面板","MONITORING_TEMPLATE":"监控模板","CUSTOM_MONITORING_TEMPLATE_DESC":"选择默认模板、上传模板或自定义模板来生成自定义监控面板。","UPLOAD_GRAFANA_DASHBOARD":"上传 Grafana 监控面板","SUPPORT_JSON_FILE":"仅支持 JSON 格式的文件。","UPLOAD_GRAFANA_URL":"通过 URL 上传 Grafana 监控面板。","UPLOAD_FROM_LOCAL_TITLE":"选择或拖动文件","FILE_UPLOAD_ERROR":"只能上传一个文件。","UPLOAD_FILE_TIP":"请上传文件。","ENTER_GRAFANA_URL":"请输入 Grafana 监控面板 URL。","UPLOAD_FROM_LOCAL_STORAGE":"从本地上传","UPLOAD_FROM_URL":"通过 URL 上传","DASHBOARD_TITILE":"监控面板标题","APPLICABLE_SCENE":"适用场景","BASE_LINE_CHART":"基础折线图","STACK_LINE_CHART":"堆叠面积图","BASE_LINE_CHART_DESC":"折线图主要用来展示数据相随着时间推移的趋势或变化。折线图非常适合用于展示一个连续的二维数据,如某网站访问人数或商品销量价格的波动。","STACK_LINE_CHART_DESC":"堆积面积图是一种特殊的面积图,可以用来比较在一个区间内的多个变量。如果有多个数据系列,并想分析每个类别的部分到整体的关系,并展现部分量对于总量的贡献时,使用堆积面积图是非常合适的选择。","LINE_CHART_DESC":"折线图主要用来展示数据相随着时间推移的趋势或变化。","BASE_BAR_CHART":"基础柱状图","STACK_BAR_CHART":"堆叠柱状图","BAR_CHART_DESC":"柱状图是最常见的图表类型,通过使用水平或垂直方向\b柱子的高度来显示不同类别的数值。","BASE_BAR_CHART_DESC":"基础柱状图的一个轴显示正在比较的类别,而另一个轴代表对应的刻度值。","STACK_BAR_CHART_DESC":"堆叠柱状图是柱状图的扩展,不同的是,柱状图的数据值为并行排列,堆叠柱图则是一个个叠加起来的。它可以展示每一个分类的总量,以及该分类包含的每个小分类的大小及占比,因此非常适合处理部分与整体的关系。","CUSTOM_DISPLAY_MODAL_DESC":"根据需要定制 Table 中的显示格式","THRESHOLD_FILL_DESC":"可以设置阈值,数值超出后可以自动更改样式提示","ADD_MONITOR_ITEM":"添加监控项","ADD_MONITOR_ROW":"添加监控组","CHART_TYPES":"图表类型","GRAPH_TYPES":"图例类型","LINE_CHART":"折线图","BAR_CHART":"柱状图","SELECT_CHART_TYPE":"选择图表类型","SELECT_CHART_TYPE_MODAL_DESC":"选择您要添加的自定义图表类型","SINGLE_STATE_CHART":"即时文本","DISPLAY_POSITION":"图表布局位置","EMPTY_CHART_PLACEHOLDER":"图表将显示在此区域","DISPLAY_FORMAT":"显示格式","FIELD_NAME":"字段名称","COLUMN_NAME":"列名称","GRAPH_NAME":"图表名称","DECIMALS":"精确位","TABLE":"表格","TABLE_SETTINGS":"表格设置","VALUE_FOMATER":"数据取值","PER_PAGE_LINES":"每页行数","CUSTOM_DISPLAY_STYLE":"设置显示格式","DATA_TYPE":"数据类型","Y_AXIS":"Y轴","GRAPH_COLORS":"图表配色","SINGLE_GRAPH_TYPE_NAME":"基础图","SINGLE_GRAPH_TYPE":"最常见的图表类型","STACKED_GRAPH_TYPE":"堆叠图","STACKED_GRAPH_TYPE_DESC":"适用于各大类总量及分量之间的对比显示","MONITOR_TYPE_NO_SUPPORT":"当前不支持该类型","MONITOR_METRIC":"监控指标","METRIC_NAME":"图例名称","DEBUGB_DATA":"调试数据","TIME_FORMAT":"时间格式","HIGHT_RULES":"高亮规则","EDIT_TEMPLATE":"编辑模板","SAVE_TEMPLATE":"保存模板","THRESHOLD_FILL":"阈值填充","UNIT":"单位","COOL_COLORS":"冷色调","WARM_COLORS":"暖色调","DEFAULT_COLORS":"默认颜色","LAST":"最近","SECOND_TIME":"{count, plural, =1 {1 秒} other{# 秒}}","MINUTE_TIME":"{count, plural, =1 {1 分钟} other{# 分钟}}","HOUR_TIME":"{count, plural, =1 {1 小时} other{# 小时}}","DAY_TIME":"{count, plural, =1 {1 天} other{# 天}}","WEEK_TIME":"{count, plural, =1 {1 周} other{# 周}}","NO_REFRESHING":"不刷新","INTERVAL":"间隔","CUSTOM_MONITORING_DASHBOARD_LOW":"自定义监控面板","EGRESS_RULES":"出站规则","DESTINATION":"目的地","LABEL":"标签","INGRESS_RULES":"入站规则","NETWORK_POLICY":"网络策略","NETWORK_POLICY_PL":"网络策略","NETWORK_POLICY_DESC":"通过配置网络策略,允许在同个集群内实现网络的隔离,即可以在某些实例(容器组)之间架起防火墙。","NETWORK_POLICY_Q":"如何更好地使用网络策略?","NETWORK_POLICY_A":"我们根据实际使用场景整理了几种较为常见的应用场景,您可以查阅文档了解更多。","NETWORK_POLICY_Q1":"CNI 插件实现网络策略需满足哪些必要条件?","NETWORK_POLICY_A1":"Kubernetes 所使用 CNI 必须支持 Kubernetes 原生网络策略,例如 Calico、Cilium、Kube-router、Romana 和 Weave Net。","NETWORK_POLICY_EMPTY_DESC":"请创建一个网络策略。","CREATE_NETWORK_POLICY_TCAP":"创建网络策略","CREATE_BTN":"创建","CREATE_NETWORK_POLICY_DESC":"通过配置网络策略控制同一集群内 Pod 之间的流量以及来自外部的流量,从而实现隔离应用并增强应用的安全性。","NETWORK_POLICY_LOW":"网络策略","NETWORK":"网络","START_IP_ADDRESS":"起始 IP 地址","END_IP_ADDRESS":"结束 IP 地址","MASK":"掩码","WORKSPACES":"企业空间","MANAGER":"管理员","IPPOOL_WORKSPACE_EMPTY_TIP":"未发现企业空间使用此 IP 池","NAMESPACE_PL":"项目","ADD_IPPOOLL_NAMESPACE":"新增项目","ADD_IPPOOLL_NAMESPACE_DESC":"将 IP Pool 分配到新的项目","REMOVEALL_IPPOOLL_NAMESPACE":"移除全部","REMOVEALL_IPPOOLL_NAMESPACE_PROJECT":"移除全部项目","REMOVEALL_IPPOOLL_NAMESPACE_PROJECT_DESC":"项目移除后,该项目将不再受 IP Pool 资源分配限制","POD_IP_POOL_PL":"容器组 IP 池","POD_IP_POOL_DESC":"容器组 IP 池用于规划集群内容器组的网络地址空间,您可以按需创建容器组 IP 池。","IPPOOL_USAGE_Q":"如何利用 IP 池规划容器组网络?","IPPOOL_USAGE_A":"IP 池用于规划 Pod 网络地址空间,每个 IP 池之间地址空间不能重叠。创建工作负载时,可选择特定的 IP 池,这样创建出的容器组将从该 IP 池中分配 IP。","IPPOOL_USAGE_A_1":"IP 池用于规划 Pod 网络地址空间,每个 IP 池之间地址空间不能重叠。创建项目时,可在注解中添加特定的 IP 池,这样在该项目创建的容器组将从该 IP 池中分配 IP。","POD_IP_POOL_EMPTY_DESC":"请创建一个容器组 IP 池。","TOTAL_VALUE":"总计:{value}","ALL":"全部","NOT_ASSIGNED":"未分配","CREATE_POD_IP_POOL":"创建容器组 IP 池","CIDR_OVERLAP":"{cidr0} 和 {cidr1} 网段重叠","NETWORK_SEGMENT":"网段","USED_IP_ADDRESSES":"已用 IP 地址","QUANTITY":"数量","IP_POOL_CREATE_DESC":"即将创建的容器组 IP 池","IP_ADDRESS_EMPTY_DESC":"请输入 IP 地址。","MASK_TIP":"请输入掩码。","ENTER_NETWORK_SEGMENT_TIP":"请输入网段。","IP_POOL_NUM_TIP":"请输入需要创建的容器组 IP 池数量。","IP_POOL_CREATE_COUNT_DESC":"最多可同时创建 10 个容器组 IP 池。","INVALID_IP_DESC":"IP 地址格式错误。","IPPOOL_ASSIGN_WORKSPACE_DESC":"为 IP 池分配一个企业空间。","IPPOOL_ASSIGN_PROJECT_DESC":"为 IP 池分配一个项目。","IPPOOL_ASSIGN_WORKSPACE_ALLOCATED_WARNING":"IP 池已被使用,无法分配给另一个具体的企业空间。","IPPOOL_ASSIGN_WORKSPACE_CHANGE_WARNING":"IP 池已被使用且已指定具体的企业空间,无法更改企业空间。","ASSIGN_WORKSPACE":"分配企业空间","SELECT_WORKSPACE_DESC":"选择一个企业空间。","POD_IP_POOL_LOW":"容器组 IP 池","ADD_EDGE_IPPOOL":"添加容器组 IP 池","ADD_EDGE_IPPOOL_DES":"为资源添加容器组 IP 池。","ADD_IPPOOL_EMPTY_DES_ADMIN":"如果没有容器组 IP 池满足要求,您可以","ADD_IPPOOL_EMPTY_DES":"如果没有容器组 IP 池满足要求,请联系管理员创建容器组 IP 池","SELECTED_IPPOOLS":"已选择 {number} 个 IP 池","CLUSTER_IPPOOL_EMPTY_DES":"当前集群下没有发现可用的容器组 IP 池。","EDGE_PROJECT":"边缘项目","POD_IP_POOL_PL_REQUIRED":"请选择容器组 IP 池","POD_IP_POOL_PL_DESC":"将选择的容器组 IP 池添加到节点组。","ASSIGN_PROJECT":"分配项目","IPPOOL_AUTO_ASSIGN":"自动分配","ATTRIBUTES":"属性","ARCHITECTURE":"系统架构","OS_VERSION":"操作系统版本","OS_TYPE":"操作系统类型","LINUX":"Linux","KERNEL_VERSION":"内核版本","CONTAINER_RUNTIME":"容器运行时","KUBELET_VERSION":"kubelet 版本","KUBE_PROXY_VERSION":"kube-proxy 版本","IP_ADDRESS":"IP 地址","SCHEDULABLE":"可调度","YES":"是","EDIT_LABELS":"编辑标签","LABEL_PL":"标签","TAINTS":"污点","EDIT_TAINTS":"编辑污点","TAINTS_DESC":"为节点添加污点以避免或尽可能避免容器组调度到节点。为节点设置污点后,您可以为容器组设置容忍度以允许容器组调度到有特定污点的节点。","COMMON_TAINTS":"公共污点","NOSCHEDULE":"阻止调度","PREFERNOSCHEDULE":"尽可能阻止调度","NOEXECUTE":"阻止调度并驱逐现有容器组","TAINT_SELECT_TIPS":"加入公共污点","TAINTS_TIPS":"阻止调度
    阻止容器组调度到节点。

    尽可能阻止调度
    尽可能阻止容器组调度到节点。

    阻止调度并驱逐现有容器组
    阻止容器组调度到节点并驱逐节点上现有的容器组。","TAINT_DELETE_TIP":"删除污点","RESOURCE_USAGE":"资源用量","MAXIMUM_PODS":"容器组最大数量","MAXIMUM_PODS_SCAP":"容器组最大数量","DISK_USAGE_SCAP":"磁盘用量","MEMORY_REQUEST_SCAP":"内存预留","MEMORY_LIMIT_SCAP":"内存上限","CPU_REQUEST_SCAP":"CPU 预留","CPU_LIMIT_SCAP":"CPU 上限","ALLOCATED_RESOURCES":"已分配资源","RUNNING_STATUS":"运行状态","HEALTH_STATUS":"健康状态","NODE_NETWORKUNAVAILABLE":"网络可用性","NODE_NETWORKUNAVAILABLE_DESC":"节点的网络状态是否正常。","NODE_MEMORYPRESSURE":"内存压力","NODE_MEMORYPRESSURE_DESC":"节点的剩余内存是否小于阈值。","NODE_DISKPRESSURE":"磁盘压力","NODE_DISKPRESSURE_DESC":"节点的剩余磁盘空间或 Inode 数量是否小于阈值。","NODE_PIDPRESSURE":"进程压力","NODE_PIDPRESSURE_DESC":"允许在节点上创建的进程数量是否小于阈值。","NODE_READY":"就绪","NODE_READY_DESC":"节点是否可以接收容器组。","LAST_HEARTBEAT_VALUE":"最后心跳:{value}","NO_TAINTS_TIPS":"未发现污点。","POLICY":"策略","READY_VALUE":"就绪:{readyCount}/{total}","STATUS_VALUE":"状态:{value}","USAGE":"用量","OUT":"出","IN":"入","CLUSTER_NODE_PL":"集群节点","CLUSTER_NODE":"集群节点","CLUSTER_NODE_DESC":"集群节点是 KubeSphere 集群中的基础服务器,您可以在此页面对集群节点进行管理。","NODE_TYPES_Q":"集群节点有哪些类型?","NODE_TYPES_A":"集群节点分为控制平面节点和工作节点。","WHAT_IS_NODE_TAINTS_Q":"什么是节点污点?","WHAT_IS_NODE_TAINTS_A":"节点污点(Taint)可以阻止某些容器组部署到该节点,与容忍度(Toleration)一起使用,可确保容器组不会被调度到不合适的节点上。","LEARN_MORE":"了解更多","NODE_SI":"节点","NODE_PL":"节点","MASTER_NODE_SI":"控制平面节点","MASTER_NODE_PL":"控制平面节点","WORKER_NODE_SI":"工作节点","WORKER_NODE_PL":"工作节点","KUBE_OPERATE":"排序","KUBE_ASCENDING_ORDER":"升序","KUBE_DESCENDING_ORDER":"降序","KUBE_FILTER":"过滤","SEARCH":"搜索","ADD_NODE":"添加节点","NODE_STATUS_UNSCHEDULABLE":"无法调度","NODE_STATUS_RUNNING":"运行中","NODE_STATUS_WARNING":"告警","NODE_STATUS_PENDING":"创建中","NODE_STATUS_FAILED":"创建失败","CLUSTER_NODE_EMPTY_DESC":"请为集群添加一个节点。","NODE_NAME_EMPTY_DESC":"请设置节点的名称。","CPU_USAGE":"CPU 用量","MEMORY_USAGE":"内存用量","CONTROL_PLANE":"控制平面节点","WORKER":"工作节点","ALLOCATED_CPU":"已分配 CPU","ALLOCATED_MEMORY":"已分配内存","CPU_LIMIT_SI":"资源上限:{core} 核({percent})","CPU_LIMIT_PL":"资源上限:{core} 核({percent})","CPU_REQUEST_SI":"{core} 核({percent})","CPU_REQUEST_PL":"{core} 核({percent})","CORE_PL":"核","CPU_CORE_PERCENT_SI":"{core} 核({percent})","CPU_CORE_PERCENT_PL":"{core} 核({percent})","MEMORY_GIB_PERCENT":"{gib} GiB({percent})","MEMORY_LIMIT_VALUE":"资源上限:{gib} GiB({percent})","MEMORY_REQUEST_VALUE":"{gib} GiB({percent})","RESOURCE_REQUEST":"资源预留","CORDON":"停止调度","UNCORDON":"启用调度","OPEN_TERMINAL":"打开终端","CUSTOM_COLUMNS":"定制内容","NO_MATCHING_RESULT_FOUND":"未发现匹配的结果","STATUS":"状态","TOTAL_ITEMS":"总数:{num}","YOU_CAN_TRY_TO":"您可以尝试","REFRESH_DATA":"刷新数据","CLEAR_SEARCH_CONDITIONS":"清空搜索条件。","DUPLICATE_KEYS":"该键已经存在,请输入其他键。","EMPTY_KEY":"请输入一个键。","LATEST_UPDATE_VALUE":"状态更新时间:{value}","EDGE_NODE_PL":"边缘节点","EDGE_NODE_DESC":"边缘节点是部署在 KubeSphere 集群外部的服务器,您可以将边缘节点添加到 KubeSphere 集群以对其进行管理。","EDGE_NODE_EMPTY_DESC":"请为集群添加一个边缘节点。","AGENT":"代理","EDGE":"边缘节点","ADD":"添加","ADD_EDGE_NODE":"添加边缘节点","EDGENODE_CONFIG_COMMAND":"边缘节点配置命令","ADD_EDGE_COMMAND":"在边缘节点中运行以上命令以对其进行配置。","IN_USE_Node_IP":"IP 地址 {ip} 已被使用,请输入其他 IP 地址。","IN_USE_Node_NAME":"节点名称 {name} 已存在,请输入其他名称。","EDGENODE_NAME_EMPTY_DESC":"请设置边缘节点的名称。","EDGENODE_CONFIG_COMMAND_TIP":"运行命令前请确保已在边缘节点安装容器运行时,例如 Docker 或 containerd。","ADD_DEFAULT_TAINT":"添加默认污点 {params}","EDGE_NODE":"边缘节点","INTERNAL_IP_ADDRESS":"内部 IP 地址","EDGENODE_INTERNAL_IP_DESC":"设置边缘节点在 KubeSphere 集群内部的 IP 地址。","EDGENODE_INTERNAL_IP_EMPTY_DESC":"请设置边缘节点在 KubeSphere 集群内部的 IP 地址。","COPY_SUCCESSFUL":"复制成功。","LOGS":"日志","VIEW_LOG":"查看日志","NODE_GROUP_TREE_LOW":"节点组","MOVE_NODE_GROUP_TREE":"移动节点组","FROM_NODE_GROUP":"所在节点组","EDGE_LIST_NOT_HOST_TITLE":"当前集群不可用","EDGE_LIST_NOT_HOST_TITLE_DESC":"边缘节点暂时只能在主集群使用","HOST_CLUSTER":"主集群","MEMBER_CLUSTER":"成员集群","PROVIDER":"提供商","KUBERNETES_VERSION":"Kubernetes 版本","KUBESPHERE_VERSION":"KubeSphere 版本","VISIBILITY_PARTIAL":"对部分企业空间可见","VISIBILITY_PUBLIC":"对所有企业空间可见","CLUSTER_BASE_INFO_DESC":"基本信息是当前集群的信息概览,您可以查看和编辑集群的基本信息。","MEMORY":"内存","TOTAL":"总计","USED":"已使用","TOOLS":"工具","KUBECTL_DESC":"命令行工具,用于控制当前集群。","KUBECONFIG_DESC":"配置文件,用于配置当前集群的访问信息。","KUBERNETES_STATUS":"Kubernetes 状态","API_REQUESTS_PER_SECOND":"每秒 API 请求数","VALUE_REQUESTS_SECOND":"{value, plural, =1 {1 次} other {# 次}}/s","API_REQUEST_LATENCY":"API 请求延迟","SCHEDULING_OPERATIONS":"调度次数","SCHEDULING_OPERATION":"调度次数","SCHEDULING_FAILURES":"调度失败次数","SCHEDULING_FAILURE":"调度失败次数","VIEW_MORE":"查看更多","NODE_CPU_UTILISATION":"CPU 用量","NODE_LOAD1":"CPU 平均负载(1 分钟)","NODE_MEMORY_UTILISATION":"内存用量","NODE_DISK_SIZE_UTILISATION":"磁盘用量","NODE_DISK_INODE_UTILISATION":"Inode 用量","NODE_POD_UTILISATION":"容器组利用率","WAIT_FOR_CLUSTER":"等待集群加入...","WAIT_FOR_CLUSTER_DESC":"集群当前不可用。请执行以下步骤添加集群。","CLUSTER_AGENT_TIP_1":"1. 通过 SSH 登录集群,并执行 vi agent.yaml 命令创建配置文件。","CLUSTER_AGENT_TIP_2":"2. 将以下信息复制到 agent.yaml 文件中。","CLUSTER_AGENT_TIP_3":"3. 执行 kubectl create -f agent.yaml 命令添加集群。","CLUSTER_AGENT_TIP_3_DESC":"此操作可能需要一定时间,请等待集群状态更新。","CREATING_CLUSTER":"集群创建中...","CREATING_CLUSTER_DESC":"集群正在创建中,当前状态不可用。","CLUSTER_INIT_FAILED":"集群初始化失败。","CLUSTER_CREATION_PROGRESS":"集群创建进度","FETCHING_LOGS":"正在加载日志...","CURRENT_STEP":"当前步骤:{step}","CLUSTER_CREATION_PROGRESS_TIP":"取决于集群规模和基础设施环境,集群创建可能需要 30 到 60 分钟。","GATEWAY":"网关","GATEWAY_NOT_ENABLED":"网关未启用","ENABLE_GATEWAY_TIP":"要使用网关,请在集群或项目中配置网关","QUOTA_PL":"配额","PROJECT_DESC":"项目用于对资源进行分组管理和控制不同用户的资源管理权限。","SYSTEM_PROJECTS":"系统项目","USER_PROJECTS":"用户项目","EMPTY_WRAPPER":"未发现{resource}","TERMINATING":"删除中","ACTIVE":"活跃","PROJECT_ADMINISTRATOR":"项目管理员","PROJECT_ADMINISTRATOR_DESC":"选择企业空间中的用户作为项目管理员。","PROJECT_ASSIGN_DESC":"项目被分配到企业空间后不允许变更项目所属的企业空间。","CREATE_PROJECT_DESC":"创建项目以对资源进行分组并控制不同用户的权限。","PROJECT_NAME_DESC":"名称只能包含小写字母、数字和连字符(-),必须以小写字母开头并以小写字母或数字结尾,最长 63 个字符。","PROJECT_NAME_INVALID_DESC":"名称无效。名称只能包含小写字母、数字和连字符(-),必须以小写字母开头并以小写字母或数字结尾,最长 63 个字符。","CANCEL":"取消","CREATE_NAME":"创建{name}","DESCRIPTION":"描述","NAME_VALIDATION_FAILED":"名称不能以 kube- 开头,该字符串为 Kubernetes 系统保留保留字符串。","PROJECT_NAME_EXIST_DESC":"名称已存在,请输入其他名称。项目名称必须在整个平台上唯一。","NAME_EMPTY_DESC":"请设置一个名称。","OK":"确定","NAME_DESC":"名称只能包含小写字母、数字和连字符(-),必须以小写字母或数字开头和结尾,最长 63 个字符。","DESCRIPTION_DESC":"描述可包含任意字符,最长 256 个字符。","ALIAS_DESC":"别名只能包含中文、字母、数字和连字符(-),不得以连字符(-)开头或结尾,最长 63 个字符。","EDIT_INFORMATION":"编辑信息","DELETE_TITLE_SI":"删除{type}","DELETE_TITLE_PL":"批量删除{type}","DELETE":"删除","PROJECT_LOW":"项目","DELETED_SUCCESSFULLY":"删除成功。","STOP_SUCCESS_DESC":"停止成功。","DELETE_RESOURCE_TYPE_DESC_SI":"请输入{type}名称 {resource} 以确认您了解此操作的风险。","DELETE_RESOURCE_TYPE_DESC_PL":"请输入{type}名称 {resource} 以确认您了解此操作的风险。","DELETE_RESOURCE_TYPE_DESC_GW":"请输入{type}名称 {resource} 以确认您了解此操作的风险。","DISABLED_RESOURCE_TYPE_DESC":"请输入 {resource} 以确认您了解此操作的风险。","VOLUME_EXPAND_TIP":"持久卷声明已挂载到工作负载。扩展持久卷声明容量将导致工作负载重启,业务将出现短暂中断。","MOUNTED_PODS":"已挂载容器组","SNAPSHOT_PL":"快照","STORAGE":"存储","PERSISTENT_VOLUME_CLAIM_DESC":"持久卷声明定义了存储需求,系统根据持久卷声明创建持久卷。","PERSISTENT_VOLUME_CLAIM":"持久卷声明","PERSISTENT_VOLUME_CLAIM_PL":"持久卷声明","WHAT_IS_STORAGE_CLASS_Q":"什么是存储类?","WHAT_IS_STORAGE_CLASS_A":"存储类(Storage Class)由集群管理员配置,不同的存储类为集群用户提供不同类型的卷。","WHAT_IS_LOCAL_VOLUME_Q":"什么是本地卷?","WHAT_IS_LOCAL_VOLUME_A":"本地卷是创建在集群本地文件系统中的卷。","VOLUME_STATUS_BOUND":"已绑定","VOLUME_STATUS_LOST":"丢失","VOLUME_STATUS_PENDING":"等待中","VOLUME_STATUS_TERMINATING":"删除中","VOLUME_STATUS_UPDATING":"更新中","VOLUME_CONDITION_FILESYSTEMRESIZEPENDING":"磁盘扩展中","PERSISTENT_VOLUME_CLAIM_EMPTY_DESC":"请创建一个持久卷声明。","PERSISTENT_VOLUME_EMPTY_DESC":"请创建一个持久卷。","MOUNT_STATUS":"挂载状态","MOUNTED":"已挂载","NOT_MOUNTED":"未挂载","ACCESS_MODE_TCAP":"访问模式","RWO_DESC":"RWO:单节点读写","ROX_DESC":"ROX:多节点只读","RWX_DESC":"RWX:多节点读写","ACCESS_MODE_RWO":"RWO:单节点读写","ACCESS_MODE_ROX":"ROX:多节点只读","ACCESS_MODE_RWX":"RWX:多节点读写","CREATE":"创建","CREATE_PERSISTENT_VOLUME_CLAIM":"创建持久卷声明","CREATION_METHOD":"创建方式","CREATE_VOLUME_BY_STORAGE_CLASS":"通过存储类创建","CREATE_VOLUME_BY_SNAPSHOT":"通过卷快照创建","SELECT_SNAPSHOT_TO_CREATE_VOLUME":"选择卷快照来创建卷。","SELECT_STORAGE_CLASS_CREATE_VOLUME":"选择已有的存储类来创建卷。","VOLUME_CAPACITY":"卷容量","PARAM_REQUIRED":"此参数不能为空。","VOLUME_SIZE_TIP":"卷容量必须大于 0。","VOLUME_STORAGE_CLASS_DESC":"选择一个存储类来创建特定种类的卷。","PERSISTENT_VOLUME_CLAIM_LOW":"持久卷声明","VOLUME_HANDLE":"卷句柄","VOLUME_MODE":"卷模式","VOLUME_MODE_FILESYSTEM":"文件系统","VOLUME_MODE_BLOCK":"块设备","STORAGE_CLASS_VALUE":"存储类:{value}","PERSISTENT_VOLUME":"持久卷","PERSISTENT_VOLUME_PL":"持久卷","PERSISTENT_VOLUME_LOW":"持久卷","PV_STATUS_AVAILABLE":"可用","PV_STATUS_BOUND":"已绑定","PV_STATUS_RELEASED":"已释放","PV_STATUS_FAILED":"失败","RECYCLING_STRATEGY":"回收策略","VOLUME_EMPTY_DESC":"请将持久卷声明绑到工作负载。","TRUE":"是","FALSE":"否","SET_DEFAULT_STORAGE_CLASS_TITLE":"设为默认存储类","SET_AS_DEFAULT_STORAGE_CLASS":"设为默认存储类","STORAGE_CLASS_SET_DEFAULT_DESC":"设置为默认存储类后,如果没有特殊指定,系统将使用默认存储类创建卷。一个 KubeSphere 集群中仅允许设置一个默认存储类。","SET_AUTHORIZATION_RULES":"设置授权规则","AUTHORIZATION_RULES":"授权规则","AUTHORIZATION_RULES_DESC":"设置授权规则使用户只能在特定项目和企业空间使用存储类。","AUTHORIZATION_NOT_SUPPORT":"当前集群不支持此功能。请升级 KubeSphere 到 v3.3.0 或更高版本,或者手动安装 storageclass-accessor。","OPERATOR_IN":"属于","OPERATOR_NOT_IN":"不属于","SET_VOLUME_OPERATIONS":"设置卷操作","VOLUME_CLONING":"卷克隆","VOLUME_CLONING_DESC":"允许用户克隆卷。","VOLUME_SNAPSHOT_CREATION":"卷快照创建","VOLUME_SNAPSHOT_CREATION_DESC":"允许用户创建卷快照。","VOLUME_EXPANSION_DESC":"允许用户扩展卷容量。卷容量只能增加,不能减少。","SET_VOLUME_OPERATIONS_TIP":"以下设置仅控制用户是否被允许在 Web 控制台执行操作。基于存储类型创建的持久卷是否实际支持这些操作取决于后端存储系统。","SET_AUTO_EXPANSION":"设置自动扩展","AUTO_EXPANSION":"自动扩展","AUTO_EXPANSION_DESC":"设置系统在卷剩余空间低于阈值时自动扩展卷容量。","AUTO_EXPANSION_SETTINGS":"自动扩展设置","MAXIMUM_SIZE":"最大容量","INCREMENT":"增量","INCREMENT_DESC":"根据存储类的 CSI 插件设置卷容量增量。","RESTART_WORKLOAD_AUTOMATICALLY":"自动重启工作负载","RESTART_WORKLOAD_AUTOMATICALLY_DESC":"该系统自动检查卷状态,以确定是否需要重新启动工作负载。","RESTART_WORKLOAD_AUTOMATICALLY_TIP":"如果到达超时时间时卷容量仍未扩展成功,系统将在工作负载上添加“restart.kubesphere.io/skip”注解使工作负载不再被重启。如需再次为工作负载启用自动重启功能,您需要在工作负载上手动删除该注解。","MAXIMUM_SIZE_SCAP":"最大容量","VALUE_TIMEOUT":"{value}s(超时时间)","PVC_COUNT":"持久卷声明数量","STORAGE_CLASS_PL":"存储类","STORAGE_CLASS_DESC":"存储类(StorageClass)支持动态卷供应,使管理员能够按需创建新的卷。","STORAGE_CLASS_EMPTY_DESC":"请创建一个存储类。","DEFAULT_STORAGE_CLASS":"默认存储类","ALLOW_VOLUME_SNAPSHOT":"允许卷快照","ALLOW_VOLUME_CLONE":"允许卷克隆","ALLOW_VOLUME_EXPANSION":"允许卷扩展","CHOOSE_STORAGE_SYSTEM_TIP":"选择存储系统","PROVISIONER_DEPENDENCE_DESC":"您需要先在存储系统中部署相关插件才能提供服务。","QINGCLOUD_CSI_DESC":"使用 QingCloud CSI 作为底层存储插件。","CUSTOM":"自定义","VOLUME_EXPANSION":"卷扩展","RECLAIM_POLICY":"回收机制","ACCESS_MODE":"访问模式","ACCESS_MODES_DESC":"选择存储类支持的一种或多种访问模式。","STORAGE_SYSTEM":"存储系统","VOLUME_BINDING_MODE":"卷绑定模式","IMMEDIATE_BINDING":"立即绑定","BINDING_WAIT":"延迟绑定","MAXSIZE":"容量上限","MINSIZE":"容量下限","STEPSIZE":"步长","FSTYPE":"文件系统类型","QINGCLOUD_CSI_TYPE_DESC":"在青云云平台中,0 代表性能型磁盘;2 代表容量型磁盘;3 代表超高性能型磁盘;5 代表企业级分布式 SAN(NeonSAN)型磁盘;100 代表基础型磁盘;200 代表 SSD 企业型磁盘。","CREATE_VOLUME_MAX_SIZE":"卷的容量上限。","CREATE_VOLUME_STEP_SIZE":"卷的增量值。","CREATE_VOLUME_MIN_SIZE":"卷的容量下限。","VOLUME_FS_TYPE":"支持 ext3、ext4 和 xfs。默认类型为 ext4。","QINGCLOUD_VOLUME_TAGS_DESC":"为卷添加标签。使用半角逗号(,)分隔多个标签。","GID_RANGE_TIP":"取值不能小于 2000 或大于 2147483647。","GLUSTERFS_RESTURL_DESC":"供应卷的 Heketi REST URL。","GLUSTERFS_ID_DESC":"Gluster 集群 ID。","GLUSTERFS_RESTAUTHENABLED_DESC":"Gluster 启用对 REST 服务器的认证。","GLUSTERFS_RESTUSER_DESC":"Gluster REST 服务或 Heketi 服务的用户名。","GLUSTERFS_SECRET_NAMESPACE_DESC":"Heketi 用户密钥的所属项目。","GLUSTERFS_SECRET_NAME_DESC":"Heketi 用户密钥的名称。","GLUSTERFS_GID_MIN_DESC":"卷的 GID 最小值。","GLUSTERFS_GID_MAX_DESC":"卷的 GID 最大值。","GLUSTERFS_VOLUME_TYPE_DESC":"卷的类型。该值可为 none,replicate:<副本数>,或 disperse:<数据>:<冗余数>。如果未设置该值,则默认卷类型为 replicate:3。","RESTURL":"REST URL","CLUSTER_ID":"集群 ID","REST_AUTH_ENABLED":"启用 REST 认证","REST_USER":"REST 用户","VOLUME_TYPE":"卷类型","SECRET_NAME":"密钥名称","REST_AUTH_TRUE":"是","SECRET_NAMESPACE":"密钥所属项目","GID_MIN":"GID 最小值","GID_MAX":"GID 最大值","CEPHRBD_MONITORS_DESC":"Ceph 集群 Monitors 的 IP 地址。","CEPHRBD_ADMIN_ID_DESC":"Ceph 集群能够创建卷的用户 ID。","CEPHRBD_ADMIN_SECRET_NAME_DESC":"adminid 的密钥名称。","CEPHRBD_ADMIN_SECRET_NAMESPACE_DESC":"adminSecrect 所在的项目。","CEPHRBD_POOL_DESC":"Ceph RBD 的 Pool 名称。","CEPHRBD_USERID_DESC":"Ceph 集群能够挂载卷的用户 ID。","CEPHRBD_USER_SECRET_NAME_DESC":"userid 的密钥名称。","CEPHRBD_USER_SECRET_NAMESPACE_DESC":"userSecret 所在的项目。","CEPHRBD_FS_TYPE_DESC":"卷的文件系统类型。","CEPHRBD_IMAGE_FORMAT_DESC":"Ceph 卷的选项。该值可为 1 或 2 ,选择 2 后需要填写 imageFeatures。","CEPHRBD_IMAGE_FEATURES_DESC":"Ceph 集群的额外功能。仅当设置 imageFormat 为“2”时,才需要填写该值。","CEPH_MONITOR_IP":"IP 地址:端口号","STORAGE_CLASS_SETTINGS":"存储类设置","PARAMETERS":"参数","STORAGE_CLASS":"存储类","STORAGE_CLASS_LOW":"存储类","STORAGE_CLASS_DELETE_DESC":"删除卷快照类可能会影响卷快照的正常使用。您确定删除卷快照类吗?","STORAGE_CLASS_DELETE_DESC_PL":"删除卷快照类可能会影响卷快照的正常使用。请输入{type}名称 {resource} 以确认您了解此操作的风险。","VOLUME_SNAPSHOT_CLASS_PL":"卷快照类","VOLUME_SNAPSHOT_CLASS":"卷快照类","VOLUME_SNAPSHOT_CLASS_DESC":"卷快照类可用于定义卷快照的存储类型。","VOLUME_SNAPSHOT_CLASS_EMPTY_DESC":"请创建一个卷快照类。","SNAPSHOT_CLASS_SETTINGS":"卷快照类设置","SNAPSHOT_CLASS_PROVISIONER_DESC":"输入 CSI 插件的名称。","SNAPSHOT_CLASS_PROVISIONER_EMPTY_DESC":"请输入 CSI 插件的名称。","VOLUME_SNAPSHOT_CLASS_LOW":"卷快照类","DELETE_VOLUME_SNAPSHOT_CLASS":"删除卷快照类","SNAPSHOT_HANDLE":"快照句柄","VOLUME_SNAPSHOT_CONTENT":"卷快照内容","VOLUME_SNAPSHOT_CONTENT_PL":"卷快照内容","VOLUME_SNAPSHOT_CONTENT_LOW":"卷快照内容","VOLUME_SNAPSHOT_CONTENT_EMPTY_DESC":"请创建一个卷快照。","READY":"就绪","UNREADY":"未就绪","UNSCHEDULABLE":"不可调度","DELETION_POLICY":"删除策略","CREATE_VOLUME":"创建卷","SNAPSHOT_CLASS_NOT_EXIST_TITLE":"未发现卷快照类","SNAPSHOT_CLASS_NOT_EXIST":"卷快照的卷快照类不存在。","STORAGE_CLASS_SCAP":"存储类","DATA_SOURCE":"数据源","VOLUME_SNAPSHOT":"卷快照","VOLUME_SNAPSHOT_PL":"卷快照","VOLUME_SNAPSHOT_DESC":"卷快照是卷在特定时间点的副本,可使用快照中的数据预配新卷,或者将卷恢复至快照捕捉到的先前状态。","WHAT_IS_VOLUME_SNAPSHOT_CLASS_Q":"什么是卷快照类?","WHAT_IS_VOLUME_SNAPSHOT_CLASS_A":"卷快照类定义了用于创建卷快照的存储种类。","WHAT_IS_VOLUME_SNAPSHOT_CONTENT_Q":"什么是卷快照内容?","WHAT_IS_VOLUME_SNAPSHOT_CONTENT_A":"卷快照内容是一种代表卷快照具体内容的资源。","SELECT_A_VOLUME_DESC":"选择一个持续卷声明来创建快照。","SELECT_VOLUME_SNAPSHOT_CLASS_DESC":"选择卷快照类以创建特定类型的快照。","VOLUME_SNAPSHOT_EMPTY_DESC":"请创建一个卷快照。","VOLUME_SNAPSHOT_STATUS_CREATING":"创建中","VOLUME_SNAPSHOT_STATUS_FAILED":"创建失败","VOLUME_SNAPSHOT_STATUS_READY":"创建成功","VOLUME_SNAPSHOT_STATUS_DELETING":"删除中","CREATE_STATUS_SUCCESS":"创建成功","CREATE_STATUS_UPDATING":"创建中","CREATE_STATUS_FAILED":"创建失败","CREATE_STATUS_DELETING":"删除中","VOLUME_SNAPSHOT_LOW":"卷快照","STORAGECLASS_NOT_ALLOW_CREATE_SNAPSHOT":"持久卷声明的存储类不支持创建快照,请选择其他持久卷声明。","SYSTEM_COMPONENT_PL":"系统组件","SERVICE_COMPONENTS_DESC":"系统组件是 KubeSphere 系统中提供各种功能的软件组件,您可以在此页面查看系统组件的运行状态。","STOPPED":"已停止","RUNNING_TIME":"运行时间","KS_CONSOLE_DESC":"提供 KubeSphere 的控制台服务。","KS_APISERVER_DESC":"提供用于集群管理的 API 接口。此组件同时也用于集群内部模块通信和集群安全控制。","OPENLDAP_DESC":"集中存储和管理用户的账户信息。","REDIS_DESC":"开源内存数据结构化存储组件,用作数据库、缓存和消息中介。","TOWER_DESC":"用于集群间通过代理方式创建网络连接。","KS_CONTROLLER_MANAGER_DESC":"实现业务逻辑。例如,创建企业空间时创建对应的权限,创建服务策略时生成对应的 Istio 配置。","COREDNS_DESC":"为 Kubernetes 集群提供服务发现的功能","METRICS_SERVER_DESC":"Kubernetes 的监控组件,用于从每个节点的 kubelet 采集指标信息。","KUBE_SCHEDULER_DESC":"Kubernetes 的调度器,用于将容器组调度到合适的节点。","KUBE_SCHEDULER_SVC_DESC":"Kubernetes 调度器,用于将容器组调度到合适的节点。","KUBE_CONTROLLER_MANAGER_SVC_DESC":"守护进程,用于内嵌随 Kubernetes 一起发布的核心控制回路。","JAEGER_COLLECTOR_DESC":"收集 Sidecar 的数据。Istio 中的 Sidecar 为 jaeger-agent。","JAEGER_COLLECTOR_HEADLESS_DESC":"收集 Sidecar 的数据。Istio 中的 Sidecar 为 jaeger-agent。","JAEGER_QUERY_DESC":"接收查询请求,然后从后端存储系统中检索 Trace 并通过 Web UI 展示。","JAEGER_OPERATOR_METRICS_DESC":"提供 Operator 的监控指标。","MONITORING":"监控","PROMETHEUS_K8S_DESC":"提供节点、工作负载、 API 对象的相关监控数据。","NODE_EXPORTER_DESC":"收集集群各个节点的监控数据,供 Prometheus 抓取。","KUBE_STATE_METRICS_DESC":"监听 Kubernetes API 服务器以获取集群中的节点、工作负载、容器组等 API 对象的状态,并生成相关监控数据供 Prometheus 抓取。","PROMETHEUS_OPERATED_DESC":"所有 Prometheus 实例对应的服务,供 Prometheus Operator 内部使用。","PROMETHEUS_OPERATOR_DESC":"管理 Prometheus 实例。","ALERTMANAGER_OPERATED_DESC":"Alertmanager 服务,用于集成 Prometheus 和 Alertmanager。","ALERTMANAGER_MAIN_DESC":"Alertmanager Web UI 服务。","NOTIFICATION_MANAGER_SVC_DESC":"提供发送邮件、微信消息、Slack 消息等通知的接口。","NOTIFICATION_MANAGER_CONTROLLER_METRICS_DESC":"提供 Notification Manager Controller 内部监控数据。","LOGGING":"日志","ELASTICSEARCH_LOGGING_DATA_DESC":"提供 Elasticsearch 数据存储、备份、搜索等服务。","ELASTICSEARCH_LOGGING_DISCOVERY_DESC":"提供 Elasticsearch 集群管理服务。","LOGSIDECAR_INJECTOR_ADMISSION_DESC":"为指定容器组自动注入用于落盘日志收集的 Sidecar 容器。","KS_EVENTS_ADMISSION_DESC":"为事件规则管理提供验证 Webhook。","KS_EVENTS_RULER_DESC":"事件规则引擎服务,提供事件过滤和告警功能。","KUBE_AUDITING_WEBHOOK_SVC_DESC":"负责审计日志的收集、比对、持久化和告警上报。","S2IOPERATOR_METRICS_SERVICE_DESC":"S2I 监控服务组件,提供基础监控数据。","WEBHOOK_SERVER_SERVICE_DESC":"为 S2I 提供默认值和验证 Webhook。","CODE_REPO_PL":"代码仓库","CODE_REPO_LOW":"代码仓库","CODE_REPO":"代码仓库","CODE_REPO_DESC":"基于 Git 管理代码仓库.","CODE_REPO_EMPTY_DESC":"从 GitHub 、 GitLab 或 Bitbucket 导入代码仓库。您也可以使用 Git 直接拉取源代码。","IMPORT_CODE_REPO":"导入代码仓库","EDIT_CODE_REPO":"编辑代码仓库","LATEST_SYNC_STATUS":"最新同步状态","CURRENT_SYNC_STATUS":"当前同步状态","SYNC_STRATEGY":"同步策略","AUTO_SYNC":"自动同步","MANUAL_SYNC":"手动同步","END_TIME_SCAP":"结束时间","SYNC_RESULT_PL":"同步结果","SYNC_RESULT":"同步结果","SYNC_RESULT_EMPTY_DESC":"未发现同步结果.","CONTINUOUS_DEPLOYMENT_PL":"持续部署","CONTINUOUS_DEPLOYMENT_DESC":"管理持续部署,以通过 GitOps 持续部署资源。 ","CONTINUOUS_DEPLOYMENT_EMPTY_DESC":"请创建一个部署。","DEGRADED":"已降级","PROGRESSING":"进行中","SYNCED":"已同步","MISSING":"缺失","SUSPENDED":"已暂停","OUTOFSYNC":"未同步","DEPLOY_LOCATION":"部署位置","NEED_TO_SYNC_REPO":"需要同步仓库。","CREATE_CONTINUOUS_DEPLOYMENT":"创建持续部署","CD_SELECT_CODE_REPO_DESC":"选择代码仓库。","DEPLOYMENT_SETTINGS":"部署设置","CODE_REPOSITORY_SETTINGS":"代码仓库设置","SYNC_STRATEGY_TCAP":"同步策略","AUTO_SYNC_DESC":"在检测到 Git 仓库中的清单与部署资源的实时状态之间存在差异时,根据设置的同步选项,自动触发应用程序同步。","PRUNE_RESOURCES":"清理资源","SELF_HEAL":"自恢复","MANIFEST_FILE_PATH":"清单文件路径","DIRECTORY_RECURSE":"目录递归","REPO_EMPTY_DESC":"请选择一个代码仓库。","VALUES_FILES":"Values 文件","VALUES_FROM":"Values 文件源","STORAGE_NAMESPACE":"存储所属项目","TEST":"测试","REVISIONS_DESC":"Git 仓库中的 commit ID、分支或标签,如,\"master\", \"v1.2.0\", \"0a1b2c3\" 或 \"HEAD\"。","MANIFEST_FILE_PATH_DESC":"设置清单文件路径,如 \"deployments/nginx\" 或 \"deployments/\"。","MANUAL_SYNC_DESC":"根据自定义规则同步。","PRUNE_RESOURCES_DESC":"如果勾选,自动同步时会删除 Git 仓库中不存在的资源。不勾选时,自动同步触发时不会删除集群中的资源。","SELF_HEAL_DESC":"如果勾选,当检测到 Git 仓库中定义的状态与部署资源中有偏差时,将强制应用 Git 仓库中的定义。不勾选时,对部署资源做更改时不会触发自动同步。","FOREGROUND_DESC":"先删除依赖资源,再删除主资源。","BACKGROUND_DESC":"先删除主资源,再删除依赖资源。","ORPHAN_DESC":"删除主资源,留下依赖资源成为孤儿。","SKIP_SCHEMA_VALIDATION_DESC":"跳过 kubectl 验证。执行 kubectl apply 时,增加 --validate=false 标识。","AUTO_CREATE_PROJECT_DESC":"在项目不存在的情况下自动为应用程序资源创建项目。","PRUNE_LAST_DESC":"同步操作时,其他资源都完成部署且处于健康状态后,再清理资源。","APPLY_OUT_OF_SYNC_ONLY_DESC":"仅同步 out-of-sync 状态的资源。","CONTINUOUS_DEPLOYMENT":"持续部署","CONTINUOUS_DEPLOYMENT_LOW":"持续部署","DELETE_CONTINUOUS_DEPLOYMENT_DESC_SI":"您即将删除持续部署 {resource}。
    请确认是否删除由持续部署创建的资源。","DELETE_CONTINUOUS_DEPLOYMENT_DESC_PL":"您即将删除持续部署 {resource}。
    请确认是否删除由持续部署创建的资源。","NO_CONTINUOUS_DEPLOYMENT_RELATED_RESOURCE_DESC":"没有找到由持续部署创建的资源。","DELETE_MULTIPLE_CONTINUOUS_DEPLOYMENT":"批量删除持续部署","DELETE_CONTINUOUS_DEPLOYMENT":"删除持续部署","DELETE_CONTINUOUS_DEPLOYMENT_RELATE_DESC":"删除 {resourceName} 创建的资源","SYNC":"同步","SYNC_RESOURCE":"同步资源","REVISION":"修订版本","REVISION_DESC":"设置代码仓库的分支或标签。","PRUNE":"清理","DRY_RUN":"试运行","APPLY_ONLY":"仅应用","FORCE":"强制应用","SYNC_SETTINGS":"同步设置","SKIP_SCHEMA_VALIDATION":"跳过规范校验","AUTO_CREATE_PROJECT":"自动创建项目","PRUNE_LAST":"最后清理","APPLY_OUT_OF_SYNC_ONLY":"仅应用未同步","PRUNE_PROPAGATION_POLICY":"依赖清理策略","REPLACE_RESOURCE":"替换资源","REPLACE_RESOURCE_DESC":"替换已存在的资源。","EMPTY_CD_TITLE":"未发现持续部署","SYNC_TRIGGERED":"资源同步触发成功。","PARAMETER_SETTINGS":"参数设置","AUTO_PARAMETER":"自动","AUTO_PARAMETER_DESC":"已自动设置","HELM_PARAMETER":"Helm","HELM_PARAMETER_DESC":"设置 Helm 参数","KUSTOMIZE_PARAMETER":"Kustomize","KUSTOMIZE_PARAMETER_DESC":"设置 Kustomize 参数","PASS_CREDENTIALS":"传递凭据","IGNORE_MISSING_VALUE_FILES":"忽略缺失的 Values 文件","SKIP_CRDS":"跳过 CRD","RELEASE_NAME":"发布版本","VALUE_FILES":"Values 文件","FORCE_STRING":"强制字符串","FILE_PARAMETERS":"文件参数","NAME_PREFIX":"名称前缀","NAME_SUFFIX":"名称后缀","IMAGES":"镜像","COMMON_LABELS":"通用标签","COMMON_ANNOTATIONS":"常见注释","DEVOPS_PROJECT_SETTINGS":"DevOps 项目设置","DEVOPS_DESCRIPTION":"DevOps 项目是一个独立的命名空间,其中定义了一组流水线。用户可以按照自己的方式对流水线进行分组(例如:项目类型、组织类型)。","DEVOPS_PROJECT_ROLE_SCAP":"DevOps 项目角色","DEVOPS_PROJECT_SCAP":"DevOps 项目","DEVOPS_PROJECT_MEMBER_SCAP":"DevOps 项目成员","DEVOPS_PROJECT_MEMBER_PL_SCAP":"DevOps 项目成员","DEVOPS_PROJECT_ROLE_PL_SCAP":"DevOps 项目角色","CD_ALLOWLIST":"持续部署白名单","CD_ALLOWLIST_SCAP":"持续部署白名单","DEPLOYMENT_LOCATION_PL":"部署位置","ENABLE_ALLOWLIST":"启用白名单","EDIT_ALLOWLIST":"编辑白名单","EMPTY_ALLOWLIST_TITLE":"未启用持续部署白名单","ALLOWLIST_EMPTY_DESC":"启用白名单从而只允许在持续部署中使用特定的代码仓库和部署位置。","MULTI_CLUSTER_PROJECT_NOT_FOR_CD":"联邦项目不能用于持续部署。","CODE_REPOSITORY_EXIST_DESC":"代码仓库已存在,请选择其他代码仓库。","DEPLOYMENT_LOCATION_EXIST_DESC":"部署位置已存在,请设置其他部署位置。","CODE_REPOSITORY_NOT_SELECTED":"未选择代码仓库","RESOURCE_DEPLOYMENT_LOCATION_NOT_SELECTED":"未选择资源部署位置。","ALL_CODE_REPOSITORIES":"所有代码仓库","ALL_RESOURCE_DEPLOYMENT_LOCATIONS":"所有资源部署位置","CREDENTIAL_LOW":"凭证","DETAILS":"详情","TYPE_VALUE":"类型:{value}","RECORD":"记录","CREDENTIAL_PL":"凭证","DEVOPS_CREDENTIALS_DESC":"凭证是包含了一些敏感数据的对象,如用户名密码,SSH 密钥和 Token 等, 用于在 Pipeline 运行时, 为拉取代码、push/pull 镜像、SSH 执行脚本等过程提供认证","CREDENTIAL_EMPTY_DESC":"请创建一个凭证。","CREATE_CREDENTIAL":"创建凭证","CREDENTIAL_NAME_EXIST_DESC":"凭证名称已存在,请输入其他名称。","CREDENTIAL_TYPE_USERNAME_PASSWORD":"用户名和密码","CREDENTIAL_TYPE_SSH":"SSH 密钥","PRIVATE_KEY":"私钥","PASSPHRASE":"密码短语","CREDENTIAL_TYPE_SECRET_TEXT":"访问令牌","CREDENTIAL_TYPE_KUBECONFIG":"kubeconfig","PASSWORD_TOKEN":"密码/令牌","KUBECONFIG_CONTENT_DESC":"默认内容为当前用户的 kubeconfig 配置。","CONTENT":"内容","DEVOPS_PROJECT_MEMBER":"DevOps 项目成员","DEVOPS_PROJECT_MEMBER_PL":"DevOps 项目成员","DEVOPS_PROJECT_MEM_DESC":"对项目内的成员进行管理及角色分配。","DEVOPS_PROJECT_MEMBER_EMPTY_DESC":"请邀请当前企业空间的成员到当前 DevOps 项目。","INVITE_MEMBER_DESC_DEVOPS":"邀请当前企业空间的成员到当前 DevOps 项目。","HOW_TO_INVITE_MEMBER_Q":"如何邀请成员到项目?","HOW_TO_INVITE_MEMBER_A":"项目管理员或者拥有成员邀请权限的用户可以邀请当前企业空间内的成员加入项目。","NO_PERMISSION":"没有找到权限","DEVOPS_PROJECT_ROLE_PL":"DevOps 项目角色","DEVOPS_PROJECT_ROLES_DESC":"成员角色定义了在当前 DevOps 项目下用户所拥有的权限。","DEVOPS_PROJECT_ROLE_EMPTY_DESC":"请创建一个 DevOps 项目角色。","ROLE_DEVOPS_VIEWER":"查看 DevOps 项目中的所有资源。","ROLE_DEVOPS_OPERATOR":"管理 DevOps 凭证和流水线以及查看 DevOps 项目中成员和角色。","ROLE_DEVOPS_ADMIN":"管理 DevOps 项目中的所有资源。","EDIT_PERMISSIONS":"编辑权限","CREATE_ROLE":"创建角色","CATEGORIES":"分类","DEPENDS_ON":"依赖于:","PERMIGROUP_PIPELINES_MANAGEMENT":"流水线","PERMISSION_PIPELINES_VIEW":"流水线查看","PERMISSION_PIPELINES_VIEW_DESC":"查看 DevOps 项目流水线和下载制品。","PERMISSION_PIPELINES_MANAGEMENT":"流水线管理","PERMISSION_PIPELINES_MANAGEMENT_DESC":"创建、编辑和删除 DevOps 项目流水线。","PERMISSION_PIPELINERUNS_VIEW":"流水线执行记录查看","PERMISSION_PIPELINERUNS_VIEW_DESC":"查看 DevOps 项目流水线执行记录。","PERMISSION_PIPELINERUNS_MANAGEMENT":"流水线执行记录管理","PERMISSION_PIPELINERUNS_MANAGEMENT_DESC":"查看、编辑和删除 DevOps 项目流水线执行记录。","PERMIGROUP_CREDENTIALS_MANAGEMENT":"凭证","PERMISSION_CREDENTIALS_VIEW":"凭证查看","PERMISSION_CREDENTIALS_VIEW_DESC":"查看和使用 DevOps 凭证。","PERMISSION_CREDENTIALS_MANAGEMENT":"凭证管理","PERMISSION_CREDENTIALS_MANAGEMENT_DESC":"创建、编辑和删除 DevOps 凭证。","PERMIGROUP_DEVOPS_SETTINGS":"项目设置","PERMISSION_DEVOPS_SETTINGS":"项目设置管理","PERMISSION_DEVOPS_SETTINGS_DESC":"管理 DevOps 项目的设置。","PERMIGROUP_CONTINUOUS_DEPLOYMENTS_MANAGEMENT":"持续部署","PERMISSION_CONTINUOUS_DEPLOYMENTS_VIEW":"持续部署查看","PERMISSION_CONTINUOUS_DEPLOYMENTS_VIEW_DESC":"查看 DevOps 项目中的持续部署。","PERMISSION_CONTINUOUS_DEPLOYMENTS_MANAGEMENT":"持续部署管理","PERMISSION_CONTINUOUS_DEPLOYMENTS_MANAGEMENT_DESC":"管理 DevOps 项目中的持续部署。","PERMIGROUP_CODE_REPOSITORIES_MANAGEMENT":"代码仓库","PERMISSION_CODE_REPOSITORIES_VIEW":"代码仓库查看","PERMISSION_CODE_REPOSITORIES_VIEW_DESC":"查看 DevOps 项目中的代码仓库。","PERMISSION_CODE_REPOSITORIES_MANAGEMENT":"代码仓库管理","PERMISSION_CODE_REPOSITORIES_MANAGEMENT_DESC":"管理 DevOps 项目中的代码仓库。","CODE_REPOSITORY":"代码仓库","TASK_STATUS":"任务状态","NOT_RUNNING":"未运行","QUEUED":"队列中","ABORTED":"已取消","UNSTABLE":"未稳定","SKIPPED":"已跳过","NOT_BUILT":"未构建","SYNC_STATUS":"同步状态","DEVOPS_PROJECT":"DevOps 项目","SCAN_REPO_SUCCESSFUL":"仓库扫描触发成功。","VIEW_SCAN_LOGS":"查看扫描日志","STARTED_BY_NAME":"启动者:{name}","REPOSITORY_SCAN_LOGS":"仓库扫描日志","RESCAN":"重新扫描","LOGS_OBTAINED_SUCCESSFULLY":"日志获取成功。","HEALTH_STATUS_SCAP":"健康状态","PIPELINE_QUEUED_TITLE":"即将完成初始化","INITIALIZING_PIPELINE":"流水线初始化中","PIPELINE_PREPARE_DESC":"环境准备中...","INITIALIZING_PIPELINE_DESC":"请等待流水线初始化完成。","TASK_FAILED_NOT_OPERATIONAL":"此阶段已失败且无法操作。","NO_PIPELINE_CONFIG_FILE_TIP":"未发现流水线配置文件。","EDIT_PIPELINE":"编辑流水线","JENKINS_UNAVAILABLE":"Jenkins 未就绪。","AGENT_TYPE_DESC":"Agent 部分指定整个流水线或特定阶段将在 Jenkins 环境中执行的位置,\n 具体取决于该 agent 部分的放置位置。该部分必须在流水线块内的顶层定义,但 stage 级使用是可选的。","NOT_VALID_REPO":"代码仓库无效且无法创建","CREATE_PIPELINE_DESC":"使用流水线进行构建,测试和部署","CI":"持续集成 (CI)","CI_DESC":"持续集成(CI)是在源代码变更后自动检测、拉取、构建和(在大多数情况下)进行单元测试的过程。","CICD":"持续集成&交付 (CI/CD)","CICD_DESC":"持续部署(CD)是指能够自动提供持续交付管道中发布版本给最终用户使用的想法。根据用户的安装方式,在云环境中自动部署、app 升级(如手机上的应用程序)、更新网站或只更新可用版本列表。","CUSTOM_PIPELIEN":"自定义流水线","CUSTOM_PIPELIEN_DESC":"您可以选择您需要的任务自定义流水线的工作内容","CC":"抄送","CREDENTIAL_NAME":"凭证名称","REMOTE_REPOSITORY_URL":"远程仓库地址","SCM":"代码仓库","INPUT_MESSAGE_DESC":"流水线运行状态中将会展示此消息","KUBERNETES_DEPLOY_DESC":"在 kubernetes 集群中进行部署,在持续集成/持续部署的环境当中,\n 只有那些需要定期更新的资源才应该放到部署步骤当中,所以此步骤大多数时间都在处理部署这类资源.","KUBERNETES_DEPLOY_DESC_MORE":"
    \n \n
  • 无需 kubectl 的情况下实现部署
  • \n
  • Jenkinsfile 中的变量替换,可以进行动态部署。
  • \n
  • 支持从私有镜像仓库拉取 Docker 镜像
  • \n \n
    \n
  • 配置
  • \n
  • 密钥
  • \n
  • 部署
  • \n
  • 守护进程集
  • \n
  • 应用路由
  • \n
  • 名称空间
  • \n
  • 任务
  • \n
  • 服务
  • \n
  • Replica Set
  • \n
  • \n Replication\n Controller (不支持滚动更新,如果要使用滚动更新请使用部署)\n
  • ","STAGE":"阶段","KUBERNETES_DEPLOY_DEPRECATED_TIP":"该步骤会在后续版本中弃用,建议考虑其他替代方案。","ORIGINAL_IMAGE_ADDRESS":"原镜像地址","NEW_IMAGE_ADDRESS":"新镜像地址","NEW_IMAGE_TAG":"新镜像标签","CD_STEP_DESC":"通过持续部署更新镜像信息。","UPDATE_CD_TITLE":"持续部署更新","EDIT_JENKINSFILE":"编辑 Jenkinsfile","CLOSE_JENKINSFILE_EDITOR_TIP":"确定关闭 Jenkinsfile 编辑器?","PIPELINE_RUN_LOGS":"流水线运行日志","VIEW_LOGS":"查看日志","DURATION_VALUE":"持续时间:{value}","DOWNLOAD_LOGS":"下载日志","START_REAL_TIME_LOG":"启用实时日志","STOP_REAL_TIME_LOG":"禁用实时日志","RUN_RECORDS":"运行记录","RUN":"运行","ACTIVITY_EMPTY_TIP":"流水线尚未运行。","COMMIT":"提交","LAST_MESSAGE":"最后消息","RUN_ID":"运行 ID","STOP_PIPELINE_SUCCESSFUL":"流水线停止成功。","INVALID_JENKINSFILE_TIP":"当前 Jenkinsfile 不是标准的声明式 Jenkinsfile,图形化显示不可用。","PAUSED":"已暂停","SET_PARAMETERS":"设置参数","PARAMS_DESC":"下列参数是根据流水线设置或 Jenkinsfile 中的 parameters 部分生成的字段,请根据运行需求输入。","PIPELINE_RUN_START_SI":"开始运行流水线...","PIPELINE_RUN_START_PL":"开始运行流水线...","BREAK":"终止","PROCEED":"继续","WAITING_FOR_INPUT":"等待输入","CANCELLED_IN_REVIEW":"已在审核中取消","STEPS_COMPLETE_TOTAL":"步骤:{complete}/{total}","COMMIT_PL":"提交","AUTHOR":"作者","NO_COMMIT_FOUND":"未发现提交记录","ARTIFACT_PL":"制品","NO_ARTIFACT_FOUND_TIP":"未发现制品。","SIZE":"大小","BRANCH_SI":"分支","BRANCH_PL":"分支","SCAN_REPOSITORY":"扫描仓库","PIPELINE":"流水线","NO_BRANCHES_FOUND":"未找到分支","CODE_CHECK":"代码检查","BUG_PL":"代码错误","VULNERABILITY_PL":"代码漏洞","CODE_SMELL_PL":"代码异味","CODE_LINE_COUNT":"行数","COVERAGE":"覆盖率","TEST_RESULTS":"检查结果","ISSUE_PL":"议题","CRITICAL":"严重","MAJOR":"重要","MINOR":"轻微","DISPLAY_ALL":"展示全部","DISPLAY_ONLY_LAST_TEN":"仅显示最近 10 条问题。","LINE_VALUE":"行:{value}","PASSED":"已通过","PULL_REQUEST_PL":"拉取请求","FAILED_CHECK_SCRIPT_COMPILE":"检查脚本编译失败。如果您想跳过这一步,请单击继续。","IMPORT_FROM_CODE_REPO":"从代码库导入","General":"通用","Container":"容器","Review":"审核","URL":"URL","Credential Name":"凭证名称","Branch":"分支","SVN URL":"SVN URL","The message to print":"要打印的消息","Shell command line":"Shell 命令","Body":"正文","Variable":"变量","KeyFile Variable":"KeyFile 变量","Passphrase Variable":"密码变量","Artifacts Location":"制品位置","Time":"时间","Unit":"单位","Groovy script":"Groovy 脚本","Target Pipeline Name":"目标流水线名称","Quiet Period":"静默期","Wait For Completion":"等候完成","Propagate Errors":"传播误差","Error Message":"错误信息","Test Results Location":"测试结果位置","Allow Empty Results":"允许空结果","Keep Long Output":"保留长输出","Skip Publishing Checks":"跳过发布检查","Retry Count":"重试次数","Message":"消息","Submitter":"提交者","Config Name":"配置项","AbortPipeline if quality gate status is not green":"如果质量阈值状态不是绿色,则中止流水线","Container Name":"容器名称","Continuous Deployments":"持续部署","Original Image Address":"原镜像地址","New Image Address":"新镜像地址","New Image Tag":"新镜像标签","Credential":"凭证","PIPELINE_CONFIGURATION":"流水线配置","Replay":"回放","BRANCH_DISABLED_NOT_REPLAY":"该分支已被删除,不支持回放。","RUN_LOGS":"运行日志","VIEW_FULL_LOG":"查看完整日志","VIEW_REAL_TIME_LOG":"查看实时日志","PIPELINE_LOG":"流水线日志","NO_BUILD_PARAMETERS":"未发现构建参数。","PIPELINE_PL":"流水线","HEALTH":"健康状态","PULL_REQUEST_COUNT":"拉取请求数量","MULTI_BRANCH_PIPELINE":"多分支流水线","HEALTHY":"健康","SUB_HEALTHY":"亚健康","NO_STATUS":"没有状态","BRANCH_COUNT":"分支数量","PIPELINE_EMPTY_DESC":"请创建一个流水线。","BATCH_RUN_SUCCESS_SI":"流水线运行成功。","BATCH_RUN_SUCCESS_PL":"流水线运行成功。","BATCH_RUN_UNSUPPORTED_DESC":"多分支流水线不支持批量运行。","COPY":"复制","COPY_PIPELINE":"复制流水线","PIPELINE_NAME_DESC":"流水线的名称,同一个项目内流水线不能重名。","PIPELINE_NAME_TIP":"请输入流水线名称。","CREATE_PIPELINE":"创建流水线","GO_CREATE_REPO_ACTION":"没有可用的代码仓库。请 创建代码仓库。","PIPELINE_TYPE":"流水线类别","SELECT_CODE_REPOSITORY":"选择代码仓库","BRANCH_PIPELINE_DESC":"通过可视化编排或 Jenkinsfile 来描述软件的构建工程。","MULTI_BRANCH_PIPELINE_DESC":"根据源码管理(SCM)仓库中检测到的每个分支创建一系列流水线。","PIPELINE_CREATE_DEVOPS_PROJECT_DESC":"选择流水线所属的 DevOps 项目。","CODE_REPOSITORY_OPTIONAL":"代码仓库(可选)","CODE_REPOSITORY_REQUIRED":"代码仓库","CODE_REPOSITORY_REQUIRED_DESC":"请选择一个代码仓库。","GO_CREATE_REPO":"没有可用的代码库。请创建代码库。","CODE_REPO_EXISTS":"代码仓库已存在","SELECT_CODE_REPO_DESC":"选择流水线使用的代码仓库。","RESELECT":"重新选择","CREDENTIAL_SI":"凭证","CREDENTIAL":"凭证","PIPELINE_CREDENTIAL_EMPTY_TIP":"请选择一个凭证。","SELECT_CREDENTIAL_DESC":"选择一个凭证用于访问代码仓库。","GITHUB_CREDENTIAL_EMPTY":"请设置 GitHub 凭证。","INCORRECT_GITHUB_TOKEN_DESC":"GitHub 令牌错误\n \n 获取 GitHub 令牌\n ","LOAD_MORE":"加载更多","NO_REPO_FOUND_DESC":"未发现代码仓库。","GITLAB_SERVER_ADDRESS":"Gitlab 服务器地址","GITLAB_SERVER_EMPTY_TIP":"请输入 GitLab 服务器的地址。","PROJECT_GROUP_OWNER":"项目组/所有者","PROJECT_GROUP_OWNER_EMPTY_TIP":"请输入 GitLab 项目组或项目所有者的名称。","REPOSITORY_NAME":"代码仓库","REPOSITORY_NAME_EMPTY_TIP":"请输入代码仓库的名称。","BITBUCKET_SERVER_ADDRESS":"Bitbucket 服务器地址","BITBUCKET_SERVER_EMPTY_TIP":"请设置 Bitbucket 服务器的地址。","INCORRECT_USERNAME_OR_PASSWORD":"用户名或密码错误。","BITBUCKET_SERVER_CREDENTIAL_EMPTY":"请设置 Bitbucket 服务器和凭证。","BITBUCKET_ADDRESS_EMPTY_TIP":"请输入 Bitbucket 服务器的地址。","BITBUCKET_ADDRESS_INVALID_TIP":"Bitbucket 服务器地址格式错误。","CODE_REPOSITORY_ADDRESS_DESC":"请使用包含 Jenkinsfile 的代码仓库。","CODE_REPOSITORY_ADDRESS_EMPTY_TIP":"请输入代码仓库的地址。","CODE_REPOSITORY_ADDRESS":"代码仓库地址","SINGLE_SVN":"单分支 SVN","SVN":"SVN","BRANCH_EXCLUDED":"排除分支","BRANCH_INCLUDED":"包括分支","DELETE_OUTDATED_BRANCHES":"清理已删除分支(true,false)","DELETE_OUTDATED_BRANCHES_TIP":"设置系统自动删除过期分支以节省磁盘空间。","BRANCH_SETTINGS":" 分支设置","BRANCH_RETENTION_PERIOD_DAYS":"已删除分支保留天数(天)","MAXIMUM_BRANCHES":"已删除分支保留最大数量","BRANCH_RETENTION_PERIOD_DAYS_DESC":"超过保留期限的分支将被删除。默认值为 7。","MAXIMUM_BRANCHES_DESC":"当构建记录数量超过允许的最大数量,最早的构建记录将被删除。默认值为 5。","ADD_STRATEGY":"添加策略","DISCOVER_TAG_BRANCHES":"发现标签","DISCOVER_BRANCHES":"发现分支","ALL_BRANCHES":"包括所有分支","ONLY_PR_BRANCHES":"只包括已提交 PR 的分支","EXCLUDE_PR_BRANCHES":"排除已提交 PR 的分支","ENABLE_TAG_BRANCH_DISCOVERY":"启用标签发现","DISABLE_TAG_BRANCH_DISCOVERY":"禁用标签发现","PULL_STRATEGY":"拉取策略","OPTIONS_PR_PARAMS_1":"拉取 PR 合并后的代码","OPTIONS_PR_PARAMS_2":"拉取 PR 提交时的代码","OPTIONS_PR_PARAMS_3":"分别创建两个流水线","REGEX":"正则表达式","FILTER_BY_REGEX":"正则过滤","FILTER_BY_REGEX_DESC":"使用正则表达式过滤分支、PR 和标签","SCRIPT_PATH":"脚本路径","SCRIPT_PATH_DESC":"设置 Jenkinsfile 在代码仓库中的的路径。","SCAN_TRIGGER":"扫描触发器","SCAN_PERIODICALLY":"定时扫描","TIME_TRIGGER_DESC":"定时扫描代码仓库。","SCAN_INTERVAL":"扫描时间间隔","SELECT_PIPELINE_SCAP":"选择流水线","WHEN_DELETE_PIPELINE_DESC":"当有流水线被删除时,将自动触发指定流水线中的任务。","WHEN_CREATE_PIPELINE_DESC":"当创建新的流水线时,将自动触发指定流水线中的任务。","PIPELINE_EVENT_TRIGGER":"通过流水线事件触发","WHEN_CREATE_PIPELINE":"创建流水线时触发","WHEN_DELETE_PIPELINE":"删除流水线时触发","CLONE_SETTINGS":"克隆设置","CLONE_TIMEOUT_PERIOD":"克隆超时时间(min)","CLONE_DEPTH":"克隆深度","ENABLE_SHALLOW_CLONE":"启用浅克隆","WEBHOOK_PUSH_URL":"Webhook 推送 URL","WEBHOOK_PUSH_DESC":"推送消息到此 URL 以触发仓库扫描。","TRUSTED_USERS":"受信用户","CONTRIBUTORS":"贡献者","EVERYONE":"所有人","NOBODY":"无","USERS_WITH_PERMISSION":"具有管理员或编辑权限的用户","OPTIONS":"备用选项","BUILD_SETTINGS":"构建设置","DELETE_OUTDATED_BUILD_RECORDS":"删除过期构建记录","DELETE_OUTDATED_BUILD_RECORDS_TIP":"设置系统自动删除过期的控制台输出、归档制品、元数据等构建记录以节省磁盘空间。","BUILD_RECORD_RETENTION_PERIOD_DAYS":"构建记录保留期限(天)","BUILD_RECORD_RETENTION_PERIOD_DAYS_DESC":"超过保留期限的构建记录将被删除。默认值为 7。","BUILD_RECORD_RETENTION_PERIOD_DAYS_INVALID_TIP":"保留期限必须是正整数。","MAXIMUM_BUILD_RECORDS":"构建记录最大数量","MAXIMUM_BUILD_RECORDS_DESC":"当构建记录数量超过允许的最大数量,最早的构建记录将被删除。默认值为 10。","MAXIMUM_BUILD_RECORDS_INVALID_TIP":"构建记录的最大值必须为正整数。","NO_CONCURRENT_BUILDS":"不允许并发构建","NO_CONCURRENT_BUILD_DESC":"设置流水线一次仅执行一个构建任务。","BUILD_PARAMETERS":"构建参数","BUILD_PARAMETERS_TIP":"向流水线传入构建参数。","PARAMS_STRING":"字符串 ","PIPELINE_PARAM_DEFAULT_DESC":"设置参数的的默认值。您可以在手动运行流水线前修改参数值。","PARAMS_TEXT":"多行字符串","PARAMS_TEXT_TCAP":"多行字符串","PARAMETER_DESCRIPTION_DESC":"设置参数的描述。","PARAMS_BOOLEAN":"布尔值","PARAMS_CHOICE":"选项","CHOICE_PARAM_OPTION_DESC":"每行输入一个选项,第一行的将作为默认选项。","PARAMS_PASSWORD":"密码","BUILD_TRIGGER":"构建触发器","BUILD_PERIODICALLY":"定时构建","BUILD_PERIODICALLY_TIP":"设置流水线定期执行构建任务。","PIPELINE_CRON_DESC":"流水线下次将在 {nextTime} 运行。","PIPELINE_SCHEDULE_DESC":"输入 CRON 表达式以设置定时计划。","DEFAULT_VALUE":"默认值","PARAMETER_NAME_EMPTY_DESC":"请设置参数的名称。","SELECT_TEMPLATE":"选择模板","PARAMETER_CONFIG":"参数设置","PREVIEW":"预览","EMPTY_PARAMS_CONFIG":"此操作不需要设置参数。","PIPELINE_VALIDATOR_DESC":"请选择一个流水线模板。","USER_GUIDE":"用户指南","API_DOCUMENT":"API 文档","INPUT_USERNAME_OR_EMAIL_TIP":"请输入用户名或邮箱。","LOG_IN":"登录","LOG_IN_WITH_TITLE":"通过 {title} 登录","LOG_OUT":"登出","ABOUT":"关于","USERNAME_OR_EMAIL":"用户名或邮箱","WELCOME":"欢迎登录","INTERNAL_SERVER_ERROR_TIP":"对不起,服务器开小差了","TOO_MANY_FAILURES":"连续登录失败次数超过限制,请稍后重试。","FAILED_TO_ACCESS_BACKEND":"访问后端服务失败。","FAILED_TO_ACCESS_API_SERVER":"访问 API 服务失败。","LOGIN_AGAIN_DESC":"会话已超时或用户已从其他地方登录,请重新登录。","CHANGE_PASSWORD_TIP":"初次登录请修改密码。","SUBMIT":"提交","CHANGE_PASSWORD_LATER":"稍后修改密码","PASSWORD_MUST":"您的密码必须:","PASSWORD_LETTER":"包含至少 1 个大写字母和 1 个小写字母。","PASSWORD_NUMBER":"包含至少 1 个数字。","PASSWORD_LENGTH":"包含至少 8 个字符。","SET_EMAIL_AND_USERNAME":"设置邮箱和用户名","APPLICATION_GOVERNANCE_SCAP":"应用治理","NO_SERVICE_FOUND":"未发现服务","GATEWAY_IP_ADDRESS":"网关 IP 地址","GATEWAY_ACCESS_MODE":"网关访问模式","NODE_PORTS_SCAP":"节点端口","LOAD_BALANCER_SCAP":"负载均衡器","LOAD_BALANCERS_SCAP":"负载均衡器","TRAFFIC_MANAGEMENT":"流量管理","APPLICATION_GOVERNANCE_ENABLED":"应用治理已启用","APPLICATION_GOVERNANCE_DISABLED":"应用治理已禁用","NAME_VALUE":"名称:{value}","CONTAINER_PORT_VALUE":"容器端口:{value}","PLEASE_USE_RELATIVE_PATH":"请使用相对路径。","RELATIVE_PATH_NOT_SUPPORT":"相对路径格式不支持。","MOUNT_PATH_INCORRECT":"挂载路径不正确。","REASON":"原因","WORKLOAD_DESC":"工作负载(Workload)用于处理业务请求,可包含一个或多个容器组。日志、监控等系统功能也是由工作负载实现的。","DEPLOYMENT_EMPTY_DESC":"请创建一个部署。","UPDATING":"更新中","NEXT":"下一步","INVALID_PROJECT":"项目无效。","REPLICA_SCHEDULING_MODE":"副本调度模式","SPECIFY_REPLICAS":"指定副本数量","WEIGHTS":"权重","SPECIFY_WEIGHTS":"指定权重","SPECIFY_WEIGHTS_DESC":"设置容器组副本总数和每个集群的权重。容器组副本将根据权重调度到每个集群。","SPECIFY_REPLICAS_DESC":"手动设置每个集群的容器组副本数。","REPLICA_LOW_SI":"副本","REPLICA_LOW_PL":"副本","WEIGHT":"权重","TOTAL_REPLICAS":"副本总数","COST":"占用","ADD_CONTAINER":"添加容器","ADD_CONTAINER_DESC":"自定义容器的设置以创建容器。","CONTAINERS":"容器","IMAGE_TIME_SIZE_LAYER":"更新于 {time}","IMAGE_DESC":"如需使用私有镜像服务,您需要先创建镜像服务保密字典。","IMAGE_PLACEHOLDER":"镜像名称或路径,例如 nginx:latest","IMAGE_EMPTY":"请设置镜像。","ENTER_POSITIVE_INTEGER_DESC":"请输入一个正整数。","TOTAL_REPLICAS_EMPTY_DESC":"请输入所有集群容器组副本的总数。","CONTAINER_NAME":"容器名称","CONTAINER_TYPE":"容器类型","USE_DEFAULT_PORTS":"使用默认端口","USE_IMAGE_DEFAULT_PORTS":"使用默认镜像端口","NO_DEFAULT_PORT":"暂无默认端口配置","REGISTRY":"镜像服务","SET_IMAGE_DESC":"为容器设置镜像。","WORKER_CONTAINER":"工作容器","CONTAINER_RESOURCE_LIMIT_TIP":"设置容器的资源上限与资源预留,以将容器调度到合适的节点上。","GPU_TYPE":"GPU 类型","GPU_LIMIT":"GPU 上限","NVIDIA_COM_GPU":"NVIDIA GPU","NO_LIMIT":"无上限","NO_REQUEST":"无预留","NO_RESOURCE_LIMIT":"无资源上限","IGNORE_AND_RETRY":"忽略并重试","AVAILABLE_QUOTAS":"可用配额","PORT_SETTINGS":"端口设置","ISTIO_PROTOCOL_TIP":"选择服务实际使用的协议以充分利用应用治理功能。例如,为 HTTP 服务选择 HTTP 协议。","REQUIRED":"必填","IMAGE_PULL_POLICY_ALWAYS":"每次都拉取镜像","IMAGE_PULL_POLICY_NEVER":"仅使用本地镜像","IMAGE_PULL_POLICY_ALWAYS_DESC":"在容器组创建及更新时,每次都尝试拉取新的镜像。","IMAGE_PULL_POLICY_IFNOTPRESENT_DESC":"如果本地存在所需的镜像,则优先使用本地镜像。","IMAGE_PULL_POLICY_NEVER_DESC":"仅使用本地镜像。如果本地不存在所需的镜像,则会导致容器异常。","IMAGE_PULL_POLICY_IFNOTPRESENT":"优先使用本地镜像","LIVENESS_CHECK":"存活检查","READINESS_CHECK":"就绪检查","STARTUP_CHECK":"启动检查","LIVENESS_CHECK_DESC":"检查容器是否存活。","READINESS_CHECK_DESC":"检查容器是否可以处理请求。","STARTUP_CHECK_DESC":"检查容器是否启动成功。","ADD_PROBE":"添加探针","COMMANDS":"命令","HEALTH_CHECK":"健康检查","STARTUP_CHECK_TIP":"需要 Kubernetes v1.18 或以上版本。","HTTP_PATH_EMPTY":"请设置 HTTP 检查的路径。","LIFECYCLE_MANAGEMENT":"生命周期管理","LIFECYCLE_MANAGEMENT_DESC":"设置容器启动后或终止前需要执行的动作,以进行环境检查或体面终止。","POSTSTART_ACTION":"启动后动作","PRESTOP_ACTION":"终止前动作","POSTSTART_ACTION_DESC":"设置容器启动后需要执行的动作。","PRESTOP_ACTION_DESC":"设置容器终止前需要执行的动作。","ADD_ACTION":"添加动作","ADD_ENVIRONMENT_VARIABLE":"添加环境变量","KEY_IN_RESOURCE":"资源中的键","LABEL_TYPE":"{label} ({type})","RESOURCE":"资源","CREATE_CONFIGMAP_SECRET_DESC":"如果没有配置字典或保密字典满足要求,您可以","CREATE_CONFIG":"创建配置字典","OR":"或","CREATE_SECRET":"创建保密字典。","DEFAULT_REPOSITORY":"默认镜像仓库","SET_DEFAULT_REPOSITORY":"设置默认镜像仓库","SET_AS_DEFAULT_REPOSITORY_DESC":"设置为默认镜像仓库后,如果没有特殊指定,系统将使用默认镜像仓库创建应用负载。一个项目中仅允许设置一个默认镜像仓库。","SET_AS_DEFAULT_REPOSITORY":"设为默认镜像仓库","SET_DEFAULT_REPO_SUCCESSFUL":"设置默认镜像仓库成功","CONTAINER_SECURITY_CONTEXT":"容器安全上下文","CONTAINER_SECURITY_CONTEXT_DESC":"自定义容器的权限设置。","PRIVILEGED_MODE":"特权模式","PRIVILEGED_MODE_DESC":"以主机上的 root 用户运行容器进程。","ALLOW_PRIVILEGE_ESCALATION":"允许特权提升","ALLOW_PRIVILEGE_ESCALATION_DESC":"允许容器进程获取比父进程更多的特权。当特权模式启用时,此选项目默认启用。","ROOT_DIRECTORY_READONLY":"根目录只读","ROOT_DIRECTORY_READONLY_DESC":"将容器文件系统的根目录设置为只读。","USER_AND_USER_GROUP":"用户和用户组","USER_GROUP":"用户组","RUN_AS_NON_ROOT":"仅允许非 root 用户运行","RUN_AS_NON_ROOT_DESC":"启动容器之前检查容器是否将以 root 用户运行。如果容器将以 root 用户运行则不启动容器。","RUN_AS_USER_DESC":"执行容器进程入口点的 UID。默认为镜像元数据中指定的 UID。","RUN_AS_USER_GROUP_DESC":"执行容器进程入口点的 GID。默认为容器运行时的默认 GID。","SELINUX_CONTEXT":"SELinux 上下文","CAPABILITIES":"权能","DROP":"移除","ACCESS_CONTROL":"访问控制","LEVEL":"等级","SYNC_HOST_TIMEZONE_DESC":"同步容器与主机的时区。","SYNC_HOST_TIMEZONE":"同步主机时区","UPDATE_STRATEGY":"更新策略","ROLLING_UPDATE_RECOMMENDED":"滚动更新(推荐)","SIMULTANEOUS_UPDATE":"同时更新","ROLLINGUPDATE_DESC":"用新容器组副本逐步替换旧容器组副本。升级过程中业务流量会负载均衡到新旧容器组副本上,业务不会中断。","SIMULTANEOUS_UPDATE_DESC":"删除全部旧容器组副本再创建新容器组副本。升级过程中业务会中断。","ENTER_INTEGER_OR_PERCENTAGE":"请输入整数或百分比。","MAX_EXTRA_EMPTY":"请设置更新过程中允许的多余容器组副本的最大数量或百分比。","POD_SECURITY_CONTEXT":"容器组安全上下文","POD_SECURITY_CONTEXT_DESC":"自定义容器组的权限设置。","POD_SECURITY_CONTEXT_TIP":"如果容器组安全上下文和容器安全上下文中都设置了用户、用户组和 SELinux 上下文,容器安全上下文中的设置将覆盖容器组安全上下文中的设置。","POD_SCHEDULING_RULES":"容器组调度规则","POD_SCHEDULING_RULES_DESC":"设置容器组副本调度到节点的规则。","DEFAULT_RULES":"默认规则","DEFAULT_RULES_DESC":"按照默认的规则将容器组副本调度到节点。","DECENTRALIZED_SCHEDULING":"分散调度","CUSTOM_RULES":"自定义规则","CUSTOM_RULES_DESC":"按照自定义的规则将容器组副本调度到节点。","DECENTRALIZED_SCHEDULING_DESC":"尽可能将容器组副本调度到不同的节点上。","CENTRALIZED_SCHEDULING_DESC":"尽可能将容器组副本调度到同一节点上。","CENTRALIZED_SCHEDULING":"集中调度","SCHEDULE_WITH_TARGET":"与目标调度到一起","SCHEDULE_AWAY_FROM_TARGET":"远离目标调度","MATCH_IF_POSSIBLE":"尽可能匹配","MUST_MATCH":"必须匹配","TARGET":"目标","STRATEGY":"策略","POD_GRACE_PERIOD":"容器组优雅终止","POD_GRACE_PERIOD_DESC":"设置容器终止前等待的时间,超时后容器将强制终止。","TERMINATION_GRACEPERIOD_SECONDS":"终止宽限时间 (s)","ADD_METADATA":"添加元数据","POD_ADD_METADATA_DESC":"为容器组副本添加元数据。","STORAGE_SETTINGS":"存储设置","READ_ONLY_LOW":"只读","READ_AND_WRITE_LOW":"读写","MOUNT_VOLUME":"挂载卷","WORKLOAD_MOUNT_VOLUME_DESC":"为容器挂载持久卷、临时卷或 HostPath 卷。","SELECT_PERSISITENT_VOLUME_CLAIM":"选择持久卷声明","SELECT_PERSISITENT_VOLUME_CLAIM_DESC":"将根据持久卷声明创建的持久卷挂载到容器。","CAPACITY":"容量","PVC_NOT_SELECT":"请选择一个持久卷声明。","TEMPORARY_VOLUME":"临时卷","VOLUME_NAME":"卷名称","VOLUME_NAME_EMPTY":"请为卷设置名称。","HOST_PATH_EMPTY":"请为卷设置主机路径。","CONTAINER_NOT_SELECTED":"请将卷挂载到至少一个容器。","NOT_MOUNT":"不挂载","HOSTPATH_VOLUME":"HostPath 卷","HOSTPATH_TIP":"使用 HostPath 卷将主机文件系统中的文件或目录挂载到容器中。","HOST_PATH":"主机路径","READ_AND_WRITE":"读写","READ_ONLY":"只读","MOUNT_CONFIGMAP_OR_SECRET":"挂载配置字典或保密字典","MOUNT_CONFIGMAP_OR_SECRET_DESC":"为容器挂载配置字典或保密字典。","CONFIGMAP":"配置字典","SELECT_CONFIGMAP_DESC":"将配置字典挂载到容器。","READ_WRITE_MOUNT_EMPTY":"请指定读写方式及挂载路径。","SELECT_SPECIFIC_KEYS":"选择特定键","SELECT_SPECIFIC_KEYS_DESC":"选择需要挂载到容器的特定键。","SELECT_SECRET_DESC":"将保密字典挂载到容器。","CONFIGMAP_NOT_SELECT":"请选择配置字典。","SECRET_NOT_SELECT":"请选择保密字典。","NO_AVAILABLE_RESOURCE":"未发现可用资源","SELECT_NODES":"选择节点","SELECT_NODES_DESC":"将容器组副本分配给特定的节点。您可以使用标签选择节点或手动指定节点。","PLEASE_SELECT_NODES":"请选择节点","ADD_NODE_SELECTOR":"添加节点选择器","ADD_METADATA_DESC":"为资源添加元数据。","KEY":"键","VALUE":"值","ADVANCED_SETTINGS":"高级设置","DUPLICATE_LABELS":"无法添加重复标签。","WORKLOAD_SPECIFY_NODE_DESC":"将容器副本分配给特定节点。","CLUSTER_DIFF":"集群差异设置","CLUSTER_DIFF_CONTAINER_SETTINGS_DESC":"在不同的集群中使用不同的容器设置。","CLUSTER_DIFF_PORT_SETTINGS_DESC":"为不同集群中的容器设置不同的端口。","CLUSTER_DIFF_ENVIRONMENT_VARIABLES_DESC":"为不同集群中的容器设置不同的环境变量。","CONTAINER_IMAGE":"容器镜像","ROUTE_ADD_METADATA_DESC":"为路由添加元数据。","SELECT_INGRESSCLASSNAME":"选择 ingressClassName","ACCESS_INFORMATION":"访问信息","VIRTUAL_IP_ADDRESS":"虚拟 IP 地址","INTERNAL_DOMAIN_NAME_SCAP":"内部域名","NODE_PORT_SCAP":"节点端口","SERVICE_TYPE_TCAP":"服务类型","SELECT_SERVICE_TYPE":"选择服务类型","ADD_PORT":"添加端口","EMPTY_LABEL_DESC":"请添加标签。","SPECIFY_NODE":"指定节点","SPECIFY_NODE_DESC":"将节点的标签作为预填充内容","MAXIMUM_STICKINESS_DURATION_DESC":"设置最大会话保持时间。取值范围为 0 到 86400,默认值 10800。","SERVICE_ADD_METADATA_DESC":"为服务添加元数据。","STATEFULSET_EMPTY_DESC":"请创建一个有状态副本集。","POD_SETTINGS":"容器组设置","POD_REPLICAS":"容器组副本数量","ONDELETE":"删除容器组时更新","ONDELETE_DESC":"需要手动删除容器组副本才能对其进行更新。","PARTITION_ORDINAL":"容器组副本分组序号","PARTITION_ORDINAL_DESC":"设置一个分组序号以将容器组副本分成两组。更新有状态副本集时,只有序号大于或等于分组序号的容器组副本会被更新。","PVC_NAME_PREFIX":"PVC 名称前缀","PVC_NAME_PREFIX_DESC":"持久卷声明名称的前缀。前缀只能包含小写字母、数字和连字符(-),必须以小写字母或数字开头和结尾,最长 253 个字符。","PVC_NAME_PREFIX_EMPTY":"请输入持久卷声明名称的前缀。","INVALID_PVC_NAME_PREFIX":"前缀无效。前缀只能包含小写字母、数字和连字符(-),必须以小写字母或数字开头和结尾,最长 253 个字符。","PVC_NAME_PREFIX_EXISTS":"前缀已经存在,请输入其他前缀。","ADD_PERSISTENT_VOLUME_CLAIM_TEMPLATE":"添加持久卷声明模板","ADD_PERSISTENT_VOLUME_CLAIM_TEMPLATE_DESC":"添加持久卷声明模板为有状态副本集的每个容器组挂载一个持久卷。","VOLUME_CAPACITY_TCAP":"卷容量","MOUNT_PATH_TCAP":"挂载路径","VOLUME_TEMPLATES":"卷模板","SERVICE_PORT":"服务端口","SERVICE_PORT_VALUE":"服务端口:{value}","VOLUME_TEMPLATE_SETTINGS":"卷模板设置","CLUSTER_VOLUME_DIFF_DESC":"在不同的集群中使用不同的存储设置。","CONFIGMAP_EMPTY_DESC":"请创建一个配置字典。","MULTI_CLUSTER_PROJECT_EMPTY_DESC":"请创建一个联邦项目。","MULTI_CLUSTER_PROJECT_LOW":"联邦项目","MULTI_CLUSTER_PROJECT_SCAP":"联邦项目","VOLUME_MONITORING_TIP":"存储系统需要具备真实的 volume quota 控制能力才可以输出真实准确的数据,基于 host path, local pv, 开源 nfs server 构建的存储系统通常不具备该能力。了解更多","MOUNT_INFORMATION":"挂载信息","VOLUME_ADD_METADATA_DESC":"为卷添加元数据。","PROJECT_NAME":"项目名称","NO_REQUEST_TCAP":"无预留","NO_LIMIT_TCAP":"无上限","CPU_REQUEST_LOW":"CPU 预留","CPU_LIMIT_LOW":"CPU 上限","CPU_REQUEST_CORE":"{value} 核","CPU_LIMIT_CORE":"{value} 核","MEMORY_REQUEST_MIB":"{value} MiB","MEMORY_LIMIT_MIB":"{value} MiB","DELETE_PROJECT":"删除项目","CREATION_TIME":"创建时间","FOLD":"折叠","UNFOLD":"展开","PLATFORM":"平台管理","CLUSTER_MANAGEMENT":"集群管理","CLUSTER_DESC":"对多集群以及每个集群的基础资源、服务组件和应用资源等的统一管理。","ACCESS_CONTROL_DESC":"对平台中的企业空间、用户、以及角色进行统一管理。","APP_STORE_MANAGEMENT_DESC":"对云原生应用的发布、上架以及下架等应用全生命周期的统一管理。","PLATFORM_SETTINGS_DESC":"定制化平台设置,如基本信息和通知配置等。","NOTIFICATION_MANAGEMENT":"通知管理","NOTIFICATION_CHANNELS":"通知渠道","NOTIFICATION_CHANNELS_DESC":"当资源指标满足规则组中配置的条件和持续时间时,通过多种渠道通知用户。","MAIL_TITLE":"邮件","MAIL_DESC":"向邮件地址发送通知。","INVALID_PORT_DESC":"请输入有效端口号。","ENTER_PORT_NUMBER":"请输入端口号。","ALERTING_NAME":"告警名称","ALERTING_SEVERITY":"告警级别","ADDRESS_EMPTY_DESC":"请输入地址。","EMAIL_EMPTY_DESC":"请输入一个邮箱地址。","SERVER_SETTINGS":"服务器设置","RECIPIENT_SETTINGS":"接收设置","FILTER_CONDITIONS":"过滤条件","CONTAINER":"容器","VALUES":"值","CONDITION_OPERATOR":"操作符","NOTIFICATION_CONDITION_SETTING_TIP":"包含不包含操作符需要一个或多个值。您可以按 Enter 设置多个值。","NOTIFICATION_CONDITION_SETTINGS_DESC":"设置系统仅发送符合条件的告警。","CONTAIN":"包含","NOT_CONTAIN":"不包含","EXIST":"存在","NOT_EXIST":"不存在","PATTERN_TAG_INVALID_TIP":"标签无效。标签只能包含字母、数字、连字符(-)、下划线(_)和句点(.),必须以数字或字母开头和结尾。","PATTERN_TAG_VALUE_INVALID_TIP":"值无效。值只能包含字母、数字、连字符(-)、下划线(_)和句点(.),必须以数字或字母开头和结尾,最长 63 个字符。","INVALID_NOTIFICATION_CONDITION":"请填写正确的通知条件。","SEND_TEST_MESSAGE":"发送测试信息","SEND_TEST_MESSAGE_DESC":"发送测试消息以确认通知渠道工作正常。","SEND_TEST_MESSAGE_SUCCESS_DESC":"验证成功,已发送测试消息。","SMTP_SERVER_ADDRESS":"SMTP 服务器地址","USE_SSL_SECURE_CONNECTION":"使用 SSL 安全连接","SENDER_EMAIL":"发件人邮箱","INVALID_EMAIL":"邮箱地址格式错误。","INVALID_ADDRESS_DESC":"请输入有效地址。","MAX_EAMIL_COUNT":"您可以最多添加 {count} 个邮箱。","SMTP_USER":"SMTP 用户名","SMTP_PASSWORD":"SMTP 密码","ENTER_PASSWORD_TIP":"请输入密码。","ENTER_RECIPIENT_EMAIL_DESC":"请添加至少一个邮箱地址。","INVALID_EMAIL_ADDRESS_DESC":"邮箱地址格式不正确。","SMTP_USER_EMPTY_DESC":"请输入 SMPT 用户名。","ADDED_SUCCESS_DESC":"添加成功。","POD":"容器组","UPDATE_SUCCESSFUL":"更新成功。","FEISHU":"飞书","FEISHU_TITLE":"飞书","FEISHU_DESC":"向飞书用户发送通知。","PLEASE_ENTER_APP_ID":"请输入 App ID。","USER_ID":"User ID","DEPARTMENT_ID":"Department ID","FEISHU_RECEIPIENT_SETTINGS_DESC":"如需接收通知,请设置至少一个 User ID 或 Department ID。","FEISHU_SECRET":"密钥","DINGTALK_TITLE":"钉钉","DINGTALK":"钉钉","DINGTALK_DESC":"向钉钉用户发送通知。","PLEASE_ENTER_APP_KEY":"请输入 App Key。","PLEASE_ENTER_APP_SECRET":"请输入 App Secret。","PLEASE_ENTER_CHAT_ID":"请输入 Chat ID。","PLEASE_ENTER_WEBHOOK_URL":"请输入 Webhook URL。","CHAT_SETTINGS":"会话设置","CHAT_ID_TIP":"联系 DingTalk 管理员获取 Chat ID。","DINGTALK_SETTING_TIP":"请设置会话或者群机器人。","ENTER_CHAT_ID_DESC":"请输入 Chat ID。","MAX_CID_COUNT":"您可以添加最多 {count} 个 Chat ID。","CHAT_ID_EXISTS":"Chat ID 已存在,请添加其他 Chat ID。","CHATBOT_SETTINGS":"群机器人设置","KEYWORDS_LIST":"已添加关键字","DINGTALK_CHATBOT_SECURITY_TIP":"请输入 Secret 或关键词。","ENTER_KEYWORD_DESC":"请输入关键字。","MAX_KEYWORD_COUNT":"您可以最多添加 {count} 个关键词。","KEYWORD_EXISTS":"关键词已存在,请添加其他关键词。","EMPTY_KEYWORDS_DESC":"没有添加关键词。","WECOM":"企业微信","WECOM_TITLE":"企业微信","WECOM_DESC":"向企业微信用户发送通知。","RECIPIENT_SETTINGS_TIP":"输入至少一个 User ID、Department ID 或 Tag ID。","ENTER_WECOM_CORP_ID_DESC":"请输入 Corp ID。","ENTER_WECOM_AGENT_ID_DESC":"请输入应用 Agent ID。","ENTER_WECOM_SECRET_DESC":"请输入应用 Secret。","TOUSER_LIST":"已添加的 User ID","EMPTY_TOUSER_DESC":"没有已添加的 User ID。","ENTER_TOUSER_TIP":"请输入 User ID。","TOUSER_EXISTS":"User ID 已存在,请输入其他 User ID。","MAX_TOUSER_COUNT":"您可以最多添加 {count} 个 User ID。","TOPARTY_LIST":"已添加的 Department ID","EMPTY_TOPARTY_DESC":"没有已添加 Department ID。","ENTER_TOPARTY_TIP":"请输入 Department ID。","TOPARTY_EXISTS":"Department ID 已存在,请输入其他 Department ID。","MAX_TOPARTY_COUNT":"您可以最多添加 {count} 个 Department ID。","TOTAG_LIST":"已添加的 Tag ID","EMPTY_TOTAG_DESC":"没有已添加 Tag ID。","ENTER_TOTAG_TIP":"请输入 Tag ID。","TOTAG_EXISTS":"Tag ID 已存在,请输入其他 Tag ID。","MAX_TOTAG_COUNT":"您可以添加最多 {count} 个 Tag ID。","ATUSERS_LIST":"已添加的 User ID","EMPTY_ATUSERS_DESC":"没有已添加的 User ID。","WHIZARD_NOTIFICATION.PHONE_NUMBER":"手机号","ATMOBILES_LIST":"已添加的手机号","EMPTY_ATMOBILES_DESC":"没有已添加的手机号。","SLACK":"Slack","SLACK_TITLE":"Slack","SLACK_DESC":"向 Slack 用户发送通知。","SLACK_TOKEN":"Slack 令牌","SLACK_TOKEN_DESC":"请输入 Slack 令牌。","SLACK_CHANNEL":"Slack 频道","CHANNEL_SETTINGS":"Slack 频道设置","ADDED_CHANNELS":"已添加 Slack 频道","EMPTY_CHANNEL_DESC":"没有添加 Slack 频道。","ADD_CHANNEL_TIP":"请添加 Slack 频道。","CHANNEL_EXISTS":"Slack 频道已存在,请添加其他 Slack 频道。","MAX_CHANNEL_COUNT":"您可以最多添加 {count} 个 Slack 频道。","WEBHOOK":"Webhook","WEBHOOK_TITLE":"Webhook","WEBHOOK_DESC":"向 Webhook 发送通知。","WEBHOOK_URL_DESC":"请输入 Webhook URL。","AUTHENTICATION_TYPE":"认证类型","AUTHENTICATION_TYPE_DESC":"请选择认证类型。","SKIP_TLS_VERFICATION":"跳过 TLS 验证(不安全)","BASIC_AUTH":"基础认证","NO_AUTH":"无需认证","BEARER_TOKEN":"Bearer 令牌","TOKEN":"令牌","WEBHOOK_USERNAME_EMPTY_DESC":"请输入一个用户名。","WEBHOOK_PASSWORD_EMPTY_DESC":"请输入密码。","WEBHOOK_TOKEN_EMPTY_DESC":"请输入一个令牌。","PLATFORM_INFO_DESC":"平台的信息概览,您可以查看和定制化平台信息。","HOW_TO_MODIFY_PLATFORM_INFO":"如何定制化平台信息?","PLATFORM_INFORMATION":"平台信息","PLATFORM_DESCRIPTION":"平台描述","PLATFORM_TITLE":"平台标题","PLATFORM_ADDRESS":"平台地址","PLATFORM_SETTINGS":"平台设置","ADD_SERVICE":"添加服务","ADD_ROUTE":"添加应用路由","SERVICE_ADDED_SUCCESSFULLY":"服务添加成功。","WORKLOAD_TYPE_DEPLOYMENTS":"部署","WORKLOAD_TYPE_DAEMONSETS":"守护进程集","WORKLOAD_TYPE_STATEFULSETS":"有状态副本集","TRAFFIC_MONITORING":"流量监控","TRAFFIC_MONITORING_UNAVAILABLE_DESC":"应用长时间未收到请求,请稍后重试。","TRAFFIC_ENTRY":"流量入口","NO_DATA":"暂无数据","REFRESH":"刷新","SUCCESS_RATE":"成功率","TRAFFIC_RPS":"流量(RPS)","BANDWIDTH":"带宽","HTTP_INBOUND_TRAFFIC":"HTTP 入站流量","HTTP_OUTBOUND_TRAFFIC":"HTTP 出站流量","TRAFFIC_POLICIES":"流量策略","LOAD_BALANCING":"负载均衡","LOAD_BALANCING_ALGORITHM":"负载均衡算法","LB_UNSPECIFIED":"未指定","LB_LEAST_REQUEST":"最少请求","LB_PASSTHROUGH":"透传","LB_ROUND_ROBIN":"轮询","LB_LEAST_CONN":"最少连接","LB_RANDOM":"随机","LB_ALG_DESC":"轮询:将客户端请求轮流发送给各个后端。
    最少连接:随机选择两个健康的后端,并将客户端请求发送给连接数较少的后端。
    随机:将客户端请求发送给一个随机的健康后端。","HASH_BASED_ON_HTTP_HEADER":"基于 HTTP Header 哈希","HASH_BASED_ON_HTTP_COOKIE":"基于 HTTP Cookie 哈希","HASH_BASED_ON_SOURCE_IP_ADDRESS":"基于源 IP 地址哈希","HTTP_HEADER":"HTTP Header","HTTP_COOKIE":"HTTP Cookie","CONNECTION_POOL":"连接池","CONNECTION_POOL_TIP":"为应用程序创建固定数量的连接对象,并将其存储在一个连接池中供重复使用。每次请求都从连接池中获取连接对象,并在使用后将连接对象返还到连接池。","MAXIMUM_CONNECTIONS":"最大连接数","MAXIMUM_CONNECTIONS_DESC":"目标后端 HTTP1 或 TCP 连接的最大数量。","MAXIMUM_REQUESTS_PER_CONNECTION":"每个连接最大请求数","MAXIMUM_REQUESTS_PER_CONNECTION_DESC":"后端每个连接的最大请求数量。","TRAFFIC_MONITORING_MAXIMUM_RETRIES":"最大重试次数","TRAFFIC_MONITORING_MAXIMUM_RETRIES_DESC":"请求的最大重试次数。","CONNECTION_TIMEOUT":"连接超时","CONNECTION_TIMEOUT_DESC":"TCP 连接超时时间。","MAXIMUM_REQUESTS":"最大请求数量","MAXIMUM_PENDING_REQUESTS":"最大等待请求数量","CIRCUIT_BREAKER":"熔断器","CIRCUIT_BREAKER_DESC":"如果服务无法访问并且符合指定的条件, 熔断器会将服务标记为不可用,并在指定时间范围内直接向返回客户端错误响应。","CONSECUTIVE_FIVEXX_ERRORS":"连续 5XX 错误数量","CONSECUTIVE_FIVEXX_ERRORS_DESC":"从连接池中排除后端所需的连续 5XX 错误数量。","INSPECTION_INTERVAL_S":"检查间隔(秒)","INSPECTION_INTERVAL_S_DESC":"两次后端检查的时间间隔。","MAXIUM_EJECTION_RATIO":"最大排除比例(%)","MAXIUM_EJECTION_RATIO_DESC":"允许排除后端数量的最大百分比。","BASE_EJECTION_TIME_S":"排除时间(秒)","BASE_EJECTION_TIME_S_DESC":"最大后端排除时间。","UPDATED_AT_VALUE_SCAP":"更新于 {value}","METHOD":"方式","TRAFFIC_MANAGEMENT_UNAVAILABLE":"流量管理不可用","APPLICATION_GOVERNANCE_NOT_ENABLED":"请启用应用治理。","CREATE_GRAYSCALE_RELEASE_TASK":"创建灰度发布任务","GRAYSCALE_RELEASE_DESC":"灰度发布是在生产环境进行应用迭代的一种重要方式。您可以选择不同的发布方法,在应用升级至新版本的过程中实现平滑过渡。","NO_GRAYSCALE_RELEASE_TASK_FOUND":"未发现灰度发布任务","NO_GRAYSCALE_RELEASE_TASK_FOUND_DESC":"请创建一个灰度发布任务。","TYPE_SERVICE_DEPLOYMENT":"类型:无状态服务(部署)","TYPE_SERVICE_STATEFULSET":"类型:有状态服务(有状态副本集)","TRACING":"链路追踪","TRACING_NO_DATA_DESC":"请修改搜索条件后重试。","NUM_SPAN_SI":"{num} 跨度","NUM_SPAN_PL":"{num} 跨度","NUM_ERROR_SI":"{num} 错误","NUM_ERROR_PL":"{num} 错误","LAST_NUM_RECORDS":"最近 {num} 条记录","PROCESS":"进程","SERVICES_AND_OPERATIONS":"服务和操作","TRACING_UNAVAILABLE":"链路追踪不可用","CALLED_SERVICES":"调用服务","CALLED_DEPTH":"调用深度","COMPOSED_APP_PL":"自制应用","NO_COMPOSED_APP_FOUND":"未发现自制应用","COMPOSED_APP_EMPTY_DESC":"请创建一个自制应用。","STATEFUL_SERVICE":"有状态服务","STATELESS_SERVICE":"无状态服务","CREATE_COMPOSED_APP":"创建自制应用","SAVE_FORM_TIP":"请先保存当前设置。","YAML_FILE":"YAML 文件","CREATE_BY_YAML_DESC":"在 YAML 文件中自定义设置。","APPLICATION_GOVERNANCE":"应用治理","VERSION_DESC":"版本只能包含小写字母和数字,最长 16 个字符。","APPLICATION_GOVERNANCE_DESC":"启用应用治理后可以对应用使用流量监控、灰度发布和链路追踪功能。","APP_BASIC_INFORMATION_DESC":"设置应用的基本信息。","APP_SELECT_SERVICE_TYPE_DESC":"创建一个无状态或有状态服务。","STATEFUL_SERVICE_DESC":"创建一个服务和一个有状态副本集。","STATELESS_SERVICE_DESC":"创建一个服务和一个部署。","APPLICATION_SERVICE_DESC":"根据需求为应用添加有状态服务或无状态服务。","APP_CREATE_SERVICE_DESC":"为应用创建一个服务。","ROUTE_SETTINGS":"路由设置","ROUTING_RULES":"路由规则","ROUTE_SETTINGS_DESC":"为应用设置路由规则。","ADD_ROUTE_SUCCESS":"应用路由添加成功。","CURRENT_APP_SETTINGS_READONLY":"当前应用设置(只读)","TARGET_APP_SETTINGS":"目标应用设置","TARGET_APP_VERSION":"目标应用版本","CURRENT_APP_VERSION":"当前应用版本","EDIT_APP_SETTINGS":"编辑应用设置","UPDATED_TIME":"更新于 {value}","APP_TEMPLATE":"应用模板","NO_APP_DESC_FOUND":"未发现应用描述信息。","TEMPLATE_BASED_APP_PL":"基于模板的应用","APPLICATIONS_DESC":"应用为用户提供完整的业务功能,由一个或多个特定功能的组件组成。","APP_PL":"应用","APP_TYPES_Q":"KubeSphere 支持哪些应用类型?","APP_TYPES_A":"KubeSphere 支持基于模板的应用和自制应用。基于模板的应用创建自 KubeSphere 应用商店或应用模板,自制应用由用户自定义。","HOW_TO_USE_APP_GOVERN_Q":"如何使用应用治理功能?","HOW_TO_USE_APP_GOVERN_A":"您可以在创建自制应用时启用应用治理功能。","DEPLOY_SAMPLE_APP":"部署示例应用","NO_TEMPLATE_BASED_APP_FOUND":"未发现基于模板的应用","TEMPLATE_BASED_APP_EMPTY_DESC":"请从 KubeSphere 应用商店或应用模板创建应用。","APP":"应用","VERSION":"版本","CREATING":"创建中","UPGRADING":"已创建","DELETING":"删除中","CREATE_APP":"创建应用","CREATE_APP_DESC":"从 KubeSphere 应用商店或应用模板创建应用。","FROM_APP_STORE":"从应用商店","FROM_APP_TEMPLATE":"从应用模板","FROM_APP_STORE_DESC":"从 KubeSphere 应用商店创建应用。","SELECT_APP_REPOSITORY":"选择应用仓库","CURRENT_WORKSPACE":"当前企业空间","FROM_APP_TEMPLATE_DESC":"从企业空间或远程应用仓库中的应用模板创建应用。","APP_TEMPLATES_MODAL_DESC":"从下拉列表中选择当前企业空间或远程应用仓库以查看可用的应用模板。","APP_LOW":"应用","BATCH_APP_DEPLOY":"批量应用部署","BATCH_APP_DEPLOY_PL":"批量应用部署","BATCH_APP_DEPLOY_DESC":"基于边缘应用模板在大量的边缘节点部署相同的边缘应用。","BATCH_APP_DEPLOY_EMPTY_DESC":"请创建批量应用部署","EDGE_APP_TEMPLATES_MODAL_DESC":"选择当前企业空间的可用边缘应用模板。","EDGE_APPLICATION":"边缘应用","EDGE_APPLICATION_LOW":"边缘应用","SELECT_EDGE_NODE":"选择边缘节点","SELECT_EDGE_NODE_DESC":"将容器副本分配给特定的边缘节点。","ASIN_EDGE_NODE_AUTO":"自动分配边缘节点","ADD_EDGE_NODE_DESC":"根据需要添加边缘节点。","NODE_SELECTORS_EMPTY_DESC":"请添加边缘节点。","DEL_ALL_WORKLOAD_IN_EDGE_APP":"删除边缘应用中的所有工作负载","CRONJOBS":"定时任务","CRONJOB_DESC":"定时任务(CronJob)管理基于时间的任务(Job),可用于运行周期性任务或重复性任务。","CRONJOB_PAUSED":"已暂停","CRONJOB_RUNNING":"运行中","CRONJOB_FAILED":"失败","SCHEDULE":"定时计划","ENTER_SCHEDULE_TIP":"请选择定时计划。","CRONJOB_CRON_DESC":"为定时任务设置定时计划。KubeSphere 默认使用 UTC 时间, 您需要根据时区调整定时计划。","MAXIMUM_DELAY":"最大启动延后时间(s)","SUCCESSFUL_JOBS_RETAINED":"成功任务保留数量","FAILED_JOBS_RETAINED":"失败任务保留数量","CONCURRENCY_POLICY":"并发策略","MAXIMUM_DELAY_DESC":"由于某种原因未能按计划启动任务时,任务启动的最大延后时间。","CONCURRENCY_POLICY_DESC":"定时任务创建的多个任务发生重叠时,系统采取的策略。","FAILED_JOBS_RETAINED_DESC":"允许保留的失败任务的个数。默认值为 1。","SUCCESSFUL_JOBS_RETAINED_DESC":"允许保留的成功任务的个数。默认值为 3。","RUN_JOBS_CONCURRENTLY":"同时运行任务","SKIP_NEW_JOB":"跳过新任务","SKIP_OLD_JOB":"跳过旧任务","STRATEGY_SETTINGS":"策略设置","MAXIMUM_RETRIES":"最大重试次数","MAXIMUM_RETRIES_DESC":"将任务标记为失败前的最大重试次数。默认值为 6。","PARALLEL_PODS_DESC":"并行运行的容器组数量。","COMPLETE_PODS_DESC":"将任务标记为完成所需成功运行的容器组数量。","MAXIMUM_DURATION_DESC":"任务的最大运行时间。任务达到最大运行时间时将被结束。","PARALLEL_PODS":"并行容器组数量","COMPLETE_PODS":"容器组完成数量","MAXIMUM_DURATION":"最大运行时间(s)","RESTART_POLICY":"重启策略","RESTART_POLICY_DESC":"选择容器组中的容器异常退出时,系统采取的策略。","CRONJOB_PL":"定时任务","CRONJOB_LOW":"定时任务","REVISION_RECORDS_DESC":"系统在工作负载创建或修改后将生成修改记录,可用于回退工作负载设置。最多可保留 10 条修改记录。","ENVIRONMENT_VARIABLE":"环境变量","CONTAINER_SETTINGS_DESC":"设置容器的镜像、名称、类型和计算资源。","PORT_SETTINGS_DESC":"设置用于访问容器的端口。","HEALTH_CHECKER_DESC":"添加探针以定时检查容器健康状态。","STARTUP_COMMAND":"启动命令","STARTUP_COMMAND_DESC":"自定义容器启动时运行的命令。默认情况下,容器启动时将运行镜像默认命令。","CONTAINER_COMMAND_DESC":"容器的启动命令。","CONTAINER_ARGUMENT_DESC":"容器启动命令的参数。如有多个参数请使用半角逗号(,)分隔。","CONTAINER_ENVIRONMENT_DESC":"为容器添加添加环境变量。","PROBE_COMMAND_DESC":"使用半角逗号(,)分隔多条命令。","IGNORE_CERT_WARN_DESC":"忽略证书验证可能会导致账户密码被泄露。","CERT_ERROR":"证书错误。","ROLL_BACK":"回退","CURRENT_REVISION_RECORD":"当前修改记录","TARGET_REVISION_EMPTY_DESC":"请选择目标修改记录。","TARGET_REVISION_RECORD":"目标修改记录","CONFIGURE_AUTOSCALING_DESC":"设置系统根据目标 CPU 和内存用量自动调整容器组副本数量。","EDIT_AUTOSCALING":"编辑自动扩缩","TARGET_CPU_USAGE_UNIT":"目标 CPU 用量(%)","AUTOSCALING":"自动扩缩","RESOURCE_NAME":"资源名称","TARGET_CPU_USAGE_DESC":"当实际 CPU 用量大于/小于目标值时,系统自动减少/增加容器组副本数量。","TARGET_MEMORY_USAGE_DESC":"当实际内存用量大于/小于目标值时,系统自动减少/增加容器组副本数量。","MINIMUM_REPLICAS_DESC":"设置允许的最小容器组副本数量,默认值为 1。","MAXIMUM_REPLICAS_DESC":"设置允许的最大容器组副本数量,默认值为 1。","TARGET_MEMORY_USAGE_UNIT":"目标内存用量(MiB)","MINIMUM_REPLICAS":"最小副本数","MAXIMUM_REPLICAS":"最大副本数","EDIT_SETTINGS":"编辑设置","FROM_CONFIGMAP":"来自配置字典","FROM_SECRET":"来自保密字典","BATCH_REFERENCE":"批量引用","BATCH_REFERENCE_DESC":"从配置字典或保密字典中引用多个键。","DESELECT_ALL":"全部取消选择","KEY_PL":"键","RULE_NOT_COMPLETE":"请设置完整规则。","REVISION_RECORDS":"修改记录","CONFIG_FILE":"配置文件","COMPARE_WITH":"与上一个记录 {version} 对比","REPLICAS_DESIRED":"期望副本数","REPLICAS_CURRENT":"当前副本数","ADJUST_REPLICAS":"调整副本数量","REPLICAS_SCALE_NOTIFY_CONTENT":"您确定将容器组副本数量调整为 {num} 吗?","REPLICAS_SCALE_NOTIFY_CONFIRM":"确定({seconds}s)","REPLICAS_SCALE_NOTIFY_CANCEL":"取消","TARGET_MEMORY_USAGE":"目标内存用量","TARGET_CPU_USAGE":"目标 CPU 用量","TARGET_CURRENT":"{target}(当前:{current})","NOT_ENABLE":"{resource}未启用","CONTAINER_LOG_NOT_ENABLED":"容器日志未启用。","BUILD_LOG":"构建日志","TASK":"任务","IN_PROGRESS":"进行中","IMAGE_BUILDING":"构建镜像中","HAS_FAILED":"已失败","VIEW_ALL_REPLICAS":"查看所有副本","SHOW_SELECTED_ONLY":"仅显示已选","MONITORING_SELECT_LIMIT_MSG":"最多可以选择 10 个资源。","MONITORING_ALERT_DESC":"默认最多显示五个容器组副本的信息。您可以点击查看所有副本以查看所有容器组副本的信息。","CURRENT_VALUE":"当前:{value}","ENVIRONMENT_VARIABLE_PL":"环境变量","EVENT_AGE":"发生时间","EVENT_AGE_DATA":"{lastTime}
    (近 {duration}发生 {count} 次)","EVENT_AGE_DATA_TWICE":"{lastTime}
    (近 {duration}发生 2 次)","SOURCE":"来源","HPA_SET_TIP":"已设置容器组水平自动扩缩策略。","WORKLOAD_EMPTY_DESC":"请创建一个工作负载。","INVALID_IMAGE":"镜像无效。","INVALID_NAME_DESC":"名称无效。名称只能包含小写字母、数字和连字符(-),必须以小写字母或数字开头和结尾,最长 63 个字符。","NO_IMAGE_FOUND":"没有找到镜像","CONTAINER_EMPTY_DESC":"请添加至少一个工作容器。","RESOURC_QUOTAS_UNSET":"资源配额未设置","INSUFFICENT_RESOURCES":"资源不足","REMAINING_QUOTAS":"剩余配额","ENVIRONMENT_INVALID_TIP":"环境变量的键只能包含字母、数字、下划线(_)、连字符(-)和句点(.),并且不能以数字开头。","ENVIRONMENT_CANNOT_BE_EMPTY":"请设置环境变量的键。","WORKLOAD_PORT_NAME_DESC":"名称只能包含小写字母、数字和连字符(-),必须以小写字母开头并以小写字母或数字结尾,最长 15 个字符。","MAX_EXTRA_PODS_DESC":"更新过程中允许的多余容器组副本的最大数量或百分比。","MAX_EXTRA_PODS":"最大多余容器组数量","AVAILABLE":"可用","IN_USER":"使用中","ACCESS_MODE_SCAP":"访问模式","PVC_OR_TEMPLATE_EMPTY":"您已启用收集卷上日志,请添加至少一个持久卷、临时卷或持久卷声明模板并指定容器日志所在的路径。","PVC_EMPTY":"您已启用收集卷上日志,请添加至少一个持久卷、临时卷或持久卷声明模板并指定容器日志所在的路径。","PROJECT_COLLECT_SAVED_DISABLED_DESC":"如需启用此功能,您需要在项目设置中启用收集卷上日志。","COLLECT_LOGS_ON_VOLUMES_DESC":"允许系统收集保存在卷上的容器日志。如需使用此功能,请为容器挂载读写模式的卷并设置容器将日志导出到卷。","CONTAINER_LOG_PATH":"容器日志路径","CONTAINER_LOG_PATH_TIP":"容器日志的路径,相对于卷的挂载路径,支持通配符,可使用半角逗号(,)分隔多个路径。

    示例
    当卷挂载路径为 /data 时,log/*.log 表示日志文件为 /data/log 目录下所有 .log 格式的文件。","RECREATE_CONFIRM_DESC":"您确定重新创建{type} {resource} 吗?容器组副本将会根据更新策略更新,同时相关业务将会中断。","NO_WORKLOAD_RELATED_RESOURCE_DESC":"当前工作负载没有关联的资源。","SELECT_ALL":"选择全部","DELETE_WORKLOAD_DESC_SI":"您即将删除工作负载 {resource}。
    请确认是否同时删除以下与工作负载关联的资源。","DELETE_WORKLOAD_DESC_PL":"您即将删除工作负载 {resource}。
    请确认是否同时删除以下与工作负载关联的资源。","DELETE_WORKLOAD":"删除工作负载","DELETE_MULTIPLE_WORKLOADS":"批量删除工作负载","DELETE_APP_RESOURCE_TIP":"资源由应用 {app} 管理,删除后可能影响应用的正常使用。请输入{type}名称 {resource} 以确认您了解此操作的风险。","STOP_APP_RESOURCE_TIP":"资源由应用 {app} 管理,停止后可能影响应用的正常使用。请输入{type}名称 {resource} 以确认您了解此操作的风险。","MORE":"更多操作","VIEW_YAML":"查看 YAML","JOB_PL":"任务","JOB_DESC":"任务(Job)用于运行短暂的一次性任务。任务会创建一个或多个容器组,并保证指定数量的容器组成功结束。","JOB_EMPTY_DESC":"请创建一个任务。","JOB_COMPLETED":"已完成","JOB_FAILED":"失败","JOB_RUNNING":"运行中","LAST_RUN_TIME":"上次运行时间","RESTART_POLICY_NEVER_DESC":"重新创建容器组","RESTART_POLICY_ONFAILURE_DESC":"重启容器","RERUN":"重新运行","JOB":"任务","JOB_LOW":"任务","QOS_CLASS":"QoS 类别","NODE_NAME":"节点名称","POD_IP_ADDRESS":"容器组 IP 地址","JOB_UNFINISHED":"未完成","TERMINATED":"已终止","SCHEDULED_TO_NODE":"调度至 {value}","SCHEDULING_NOT_SUCCESSFUL":"调度未成功","SCHEDULING_INFORMATION":"调度信息","SCHEDULING_RESULT":"调度结果","POD_SCHEDULING_METHOD":"容器组调度方式","POD_ASSIGNED_DESC":"系统根据容器组的资源预留值将容器组调度到具有足够可用资源的节点上。","STATUS_INFORMATION":"状态信息","WORKLOAD_CONDITION_AVAILABLE":"可用","WORKLOAD_CONDITION_PROGRESSING":"进行中","NOT_SUCCESSFUL":"未成功","CURRENT_STATUS":"当前状态","POD_CONDITION_INITIALIZED":"初始化完成","POD_CONDITION_INITIALIZED_DESC":"启动所有初始化容器。","POD_CONDITION_READY":"容器组就绪","POD_CONDITION_READY_DESC":"开始运行并允许访问容器组。","POD_CONDITION_CONTAINERSREADY":"所有容器就绪","POD_CONDITION_CONTAINERSREADY_DESC":"启动容器组中的所有容器。","POD_CONDITION_PODSCHEDULED":"容器组调度完成","POD_CONDITION_PODSCHEDULED_DESC":"将容器组调度到集群中的一个节点。","POD_DESC":"容器组(Pod)是 Kubernetes 应用程序的基本执行单元,是您创建或部署的 Kubernetes 对象模型中最小和最简单的单元。","POD_EMPTY_DESC":"请创建一个容器组。","DOMAIN_NAME_VALUE":"域名:{value}","PATH_VALUE":"路径:{value}","RULES":"规则","ROUTE_PATH_VALUE":"路径:{value}","ROUTE_SERVICE_VALUE":"服务:{value}","ROUTE_PORT_VALUE":"端口:{value}","SERVICE_COLON":"服务:","ACCESS_SERVICE":"访问服务","UNABLE_TO_ACCESS":"无法访问服务","UNABLE_TO_ACCESS_TIP":"请确保已在您的 DNS 服务器或客户机 hosts 文件中配置域名解析规则。","CERTIFICATE_VALUE":"证书:{value}","PATH_EXIST":"PATH 重复,请重新输入。","ENDPOINT":"端点","SESSION_AFFINITY":"会话亲和性","EDIT_EXTERNAL_ACCESS":"编辑外部访问","EDIT_MONITORING_EXPORTER":"编辑监控导出器","EDIT_SERVICE":"编辑服务","ACCESS_NONE_TIP":"不提供外网访问,只能在集群内访问服务。","EXTERNAL_SERVICE":"外部服务","COLLECTION_INTERVAL_MIN":"收集间隔(分钟)","COLLECTION_INTERVAL_MIN_DESC":"两次指标收集操作之间的间隔时间,单位为分钟。默认值为1。","COLLECTION_TIMEOUT_DESC":"每次指标收集操作的超时间隔,单位为秒。默认值为 10。","SELECT_AUTHENTICATION_METHOD":"选择认证方式","SELECT_AUTHENTICATION_METHOD_DESC":"选择在指标收集过程中使用的认证方式。","NO_AUTHENTICATION_TCAP":"无需认证","NO_AUTHENTICATION_TIP":"在指标收集过程中不使用认证。","CREATE_A_NEW_SECRET":"创建保密字典","REFRESH_SECRETS":"刷新保密字典。","CERTIFICATE_AUTHORITY":"发证机构","SERVER_NAME":"服务器名称","TLS_SETTINGS_TCAP":"TLS 设置","BEARER_TOKEN_TCAP":"Bearer 令牌","BASIC_AUTHENTICATION_TCAP":"基础认证","EXTERNAL_IP_ADDRESS":"外部 IP 地址","MONITORING_EXPORTER":"监控导出器","MONITORING_EXPORTER_VALUE":"监控导出器:{value}","PORT_PL":"端口","SERVICE_NODE_PORT_DESC":"如果您的客户机与集群在同一网段,您可以使用<节点 IP 地址>:<节点端口>访问服务。","IMAGE_BUILDING_FAILED":"镜像创建失败","IMAGE_BUILDING_SUCCESSFUL":"镜像创建成功","BUILDING_IMAGE":"创建镜像中","SERVICE_MONITORING_EXPORTER":"服务监控 Exporter","EXPORTER_SERVICE_PORTS":"Exporter 服务端口","SCRAPE_INTERVAL_MIN":"采集间隔(分钟)","SERVICE_TYPES_Q":"KubeSphere 支持哪些服务类型?","SERVICE_TYPES_A":"KubeSphere 支持无状态服务和有状态服务。无状态服务中的多个容器组副本共享一个卷,有状态服务中的每个容器组副本都拥有独立的卷。","SCENARIOS_FOR_SERVICES_Q":"无状态服务和有状态服务分别适用于哪些场景?","SCENARIOS_FOR_SERVICES_A":"无状态服务适用于不需要数据持久化的场景,例如 Nginx 和 Tomcat。有状态服务适用于需要数据持久化的场景,例如 MySQL 数据库、Kafka 和 ZooKeeper。","SERVICE_TYPE":"服务类型","SERVICE_LIST":"服务列表","SERVICE_TYPE_STATEFULSERVICE":"有状态服务","SERVICE_TYPE_STATELESSSERVICE":"无状态服务","SERVICE_TYPE_EXTERNALSERVICE":"外部服务","HEADLESS":"Headless","EXTERNALNAME":"ExternalName","CREATE_SERVICE_DESC":"选择创建服务的方式。","SELECT_SERVICE_TYPE_DESC":"创建一个无状态或有状态服务,或将一个服务映射到外部服务。","SERVICE_FROM_CODE":"通过代码创建服务","SERVICE_FROM_ARTIFACT":"通过制品创建服务","SERVICE_FROM_CODE_DESC":"将现有的代码构建成镜像并部署。","SERVICE_FROM_ARTIFACT_DESC":"将现有的制品构建成镜像并部署。","CUSTOMIZE_SERVICE":"自定义服务","CUSTOMIZE_SERVICE_DESC":"通过指定工作负载或编辑 YAML 配置文件来创建服务。","PORT_INPUT_DESC":"端口名称已存在,请输入其他名称。","PORT_NAME_DESC":"端口名称只能包含小写字母、数字和连字符(-),必须以小写字母或数字开头和结尾,最长 63 个字符。","CREATE_EXTERNAL_SERVICE_DESC":"创建一个服务并将其映射到一个外部服务。","CREATE_EXTERNAL_SERVICE":"创建外部服务","EXTERNAL_SERVICE_ADDRESS_EMPTY_DESC":"请输入外部服务的域名。","EXTERNAL_SERVICE_ADDRESS":"外部服务地址","EXTERNAL_SERVICE_ADDRESS_DESC":"输入外部服务的域名。","JAVA":"Java","NODEJS":"Node.js","PYTHON":"Python","LANGUAGE_TYPE_VALUE":"语言类型:{value}","CONTAINER_SETTINGS":"容器设置","ARTIFACT_TYPE_VALUE":"制品类型:{value}","BINARY":"二进制","SPECIFY_WORKLOAD_TO_CREATE_SERVICE":"指定工作负载创建服务","EDIT_YAML_TO_CREATE_SERVICE":"编辑 YAML 创建服务","SPECIFY_WORKLOAD_DESC":"使用一个或多个现有的工作负载创建来创建服务。","NO_RELATED_RESOURCE_FOUND":"没有关联的资源","NO_SERVICE_RELATED_RESOURCE_DESC":"当前服务没有关联的资源。","DELETE_SERVICE_DESC":"您即将删除服务 {resource}。请确认是否同时删除关联资源?","DELETE_SERVICE_DESC_PL":"您即将删除服务 {resource}。
    请确认是否同时删除以下与服务关联的资源?","DELETE_SERVICE_DESC_SI":"您即将删除服务 {resource}。
    请确认是否同时删除以下与服务关联的资源?","DELETE_SERVICE":"删除服务","DELETE_MULTIPLE_SERVICES":"批量删除服务","SERVICE_TOPOLOGY":"服务拓扑","AUTO_REFRESH":"自动刷新","POD_COUNT_VALUE":"容器组数量:{value}","SELECTOR":"选择器","RECREATE":"重新创建","RECREATE_SUCCESS_DESC":"重新创建成功。","STATEFULSETS_LOW":"有状态副本集","STATEFULSETS_PL":"有状态副本集","PARTITION_ORDINAL_EMPTY":"请设置容器组副本分组序号。","CONFIGMAP_PL":"配置字典","CONFIGMAPS":"配置字典","CONFIGMAP_LOW":"配置字典","SECRET_LOW":"保密字典","SERVICE_ACCOUNT_PROJECT_ROLE_DESC":"选择服务账户在当前项目中的角色。","SERVICE_ACCOUNT":"服务账户","SECRET_VALUE":"保密字典:{value}","SERVICEACCOUNT_KUBECONFIG_DESC":"下载 kubeconfig.yaml 文件供其他应用使用,从而为其他应用访问提供可访问当前项目的账户。如果使用 kubeconfig.yaml 文件的应用部署在当前集群外,您需要将 clusters:cluster:server 参数的值修改为对外暴露的 Kubernetes API 服务器地址。","SERVICE_ACCOUNT_PL":"服务账户","SERVICE_ACCOUNT_DESC":"服务账户(Service Account)为容器组中运行的进程提供了一个标识,用于访问 API Server。","SERVICE_ACCOUNT_EMPTY_DESC":"请创建一个服务账户。","INVALID_YAML_FILE_FORMAT":"YAML 文件格式错误。","PROJECT_ROLE_SI":"项目角色","SELECT_PROJECT_ROLE_DESC":"选择一个项目角色以指定权限。","CHANGE_ROLE":"修改角色","SERVICE_ACCOUNT_LOW":"服务账户","GRAYSCALE_RELEASE":"灰度发布","BLUE_GREEN_DEPLOYMENT":"蓝绿部署","CANARY_RELEASE":"金丝雀发布","TRAFFIC_MIRRORING":"流量镜像","BLUE_GREEN_DEPLOYMENT_DESC":"将业务流量发送给新版本进行测试。如果新版本运行不正常,可立即将业务流量切换给旧版本。","CANARY_RELEASE_DESC":"将业务流量同时分配给新版本和旧版本,在测试新版本的同时保证业务连续性。","TRAFFIC_MIRRORING_DESC":"将业务流量的副本发送给新版本进行测试,而不实际暴露新版本。","CREATE_BLUE_GREEN_DEPLOYMENT_TASK":"创建蓝绿部署任务","DESELECT":"取消选择","SELECT":"选择","SELECT_GRAY_COMPONENT_TIP":"请选择一个服务。","REPLICA":"副本","REPLICA_PL":"副本","ADD_REPLICA":"添加副本","GRAYSCALE_REPLICAS_DESC":"新版本容器组副本数量","SELECT_VERSION":"选择版本","BLUE_GREEN_STRATEGY_DESC":"选择一个版本接管所有业务流量。","TAKE_OFFLINE":"下线","TAKE_OFFLINE_SUCCESS":"下线成功","TAKE_OVER":"接管","GRAYSCALE_VERSION":"版本:{version}","CREATE_CANARY_RELEASE_TASK":"创建金丝雀发布任务","UNFINISHED_GRAY_TASK":"灰度发布进行中","NO_WORKLOAD_FOUND_TIP":"未发现工作负载","NO_SERVICE_MESH_TIP":"该应用未启用应用治理,无法使用灰度发布功能。","GRAY_APP_NAME":"应用:{name}","UNSUPPORTED_WORKLOAD_TYPE":"不支持该工作负载类型","VERSION_EXISTS":"版本号已经存在,请输入其他版本号。","NEW_VERSION_NUMBER_EXIST_DESC":"工作负载 {name} 已经存在,请输入其他版本号。","INIT_CONTAINER":"初始化容器","INIT_CONTAINER_VALUE":"初始化容器:{value}","CONTAINER_VALUE":"容器:{value}","GRAYSCALE_IMAGE":"镜像:{image}","NEW_VERSION_NUMBER":"新版本号","NEW_VERSION_NUMBER_EMPTY_DESC":"请输入新版本号。","NEW_VERSION_SETTINGS":"新版本设置","NEW_VERSION_NUMBER_DESC":"新版本号只能包含小写字母和数字, 最长 16 个字符。","NEW_VERSION_NUMBER_INVALID_DESC":"新版本号无效。新版本号只能包含小写字母和数字, 最长 16 个字符。","KEY_EQ_VALUE":"键=值","HEADER":"Header","CLIENT_OS":"客户端操作系统","COOKIE":"Cookie","SPECIFY_REQUEST_PARAMETERS_DESC":"满足以下条件的请求将被发送给新版本。","POLICY_REQUEST_CONTENT_TIP":"指定请求参数功能仅支持 HTTP、HTTP2 和 gRPC 请求。","SPECIFY_REQUEST_PARAMETERS":"指定请求参数","REQUEST_PARAMETERS":"请求参数","EXACT_MATCH":"完全匹配","PREFIX_MATCH":"前缀匹配","REGEX_MATCH":"正则匹配","CANARY_BY_TRAFFIC_DESC":"{ratio}% 前往服务 {component} 的流量将被发送给新版本 {newVersion}。","SPECIFY_TRAFFIC_DISTRIBUTION":"指定流量分配","TRAFFIC":"流量","TRAFFIC_DISTRIBUTION":"流量分配","CREATE_TRAFFIC_MIRRORING_TASK":"创建流量镜像任务","PREREQUEST_FOR_USE_GRAYRELEASE_Q":"使用灰度发布功能有哪些前提条件?","PREREQUEST_FOR_USE_GRAYRELEASE_A":"使用灰度发布功能前,您需要创建自制应用并且为自制应用启用应用治理功能。","RELEASE_TASKS":"发布任务","TCP_INBOUND_TRAFFIC":"TCP 入站流量","TCP_OUTBOUND_TRAFFIC":"TCP 出站流量","NO_DATA_SCAP":"未发现数据","REPLICA_COUNT_LOW":"副本数量","MIRROR_POLICY_DESC":"流量镜像将生产环境的流量复制到灰度版本中,在新版本上线到真实环境之前使用实时用户流量对它进行测试。
    因此,流量镜像可以降低直接在生产环境进行变更所带来的风险。","BLUE_GREEN_DEPLOYMENT_LOW":"蓝绿部署","BLUE_GREEN_TRAFFIC_DISTRI_DESC":"新版本或旧版本接收全部流量。","TRAFFIC_LOW":"流量","VERSION_TRAFFIC_PERCENT":"{version} 流量 {percent}%","OFFLINE":"下线","OFFLINE_TIP":"没有服务流量被发送到此版本。您可以上线此版本使其接管所有流量。","CANARY_RELEASE_LOW":"金丝雀发布","ADJUST_TRAFFIC_DISTRIBUTION_DESC":"您确定将 {ratioNew}% 的流量发送给新版本 {newVersion} 以及 {ratioOld}% 的流量发送给旧版本 {oldVersion} 吗?","ALLOCATE_TRAFFIC_DESC":"拖动滑块设置发送给新版本的流量比例和发送给旧版本的流量比例。","COOKIE_EXACT_MATCH":"Cookie(完全匹配)","COOKIE_REGEX_MATCH":"Cookie(正则匹配)","HEADER_EXACT_MATCH":"Header(完全匹配)","HEADER_REGEX_MATCH":"Header(正则匹配)","URL_PREFIX_MATCH":"URL(前缀匹配)","URL_EXACT_MATCH":"URL(正则匹配)","OS":"操作系统","SERVICE_VERSION_RECEIVE_ALL_TRAFFIC":"版本 {version} 已接管所有流量。","RESTORE":"恢复","SUCCESSFUL_REQUEST_RATE":"请求成功率","TRAFFIC_IN_LAST_FIVE_MINUTES":"最近五分钟的流量。","DELETE_GRAYSCALE_RELEASE_TASK_DESC":"删除灰度发布任务前,请选择一个版本接管所有流量。","GRAY_COMPONENT_DESC":"测试中的新版本和旧版本的相关信息。","TRAFFIC_MIRRORING_LOW":"流量镜像","MIRRORED_TRAFFIC":"镜像流量","MIRRORED_TRAFFIC_TIP":"流量镜像并不实际暴露新版本。","RELEASE_MODE_PL":"发布模式","RELEASE_MODE":"发布模式","NEW_VERSION_TAKEOVER_DESC":"新版本 {newVersion} 正在接收所有流量。如果您删除当前灰度发布任务,旧版本 {oldVersion} 也将被删除。","OLD_VERSION_TAKEOVER_DESC":"旧版本 {oldVersion} 已接管所有流量。如果您删除当前灰度发布任务,新版本 {newVersion} 也将被删除。","GRAYSCALE_REPLICA_SI":"副本数量:{count}","GRAYSCALE_REPLICA_PL":"副本数量:{count}","TRAFFIC_MIRRORING_TRAFFIC_DISTRI_DESC":"将流量的副本发送给新版本进行测试。","EDIT_GRAYSCALE_RELEASE_TASK":"编辑灰度发布任务","ADJUST_TRAFFIC_DISTRIBUTION":"调整流量分配","COPIED_SUCCESSFUL":"复制成功","BUILDER_IMAGE":"构建器镜像","PULL_POLICY":"拉取策略","REMOTE_TRIGGER":"远程触发器","S2I_UPDATE_WORKLOAD":"镜像构建成功后更新工作负载","S2I_UPDATA_WORKLOAD_DESC":"镜像重新构建成功后,使用该镜像的的工作负载将被更新。","IMAGE_BUILDER":"镜像构建器","IMAGE_BUILDER_LOW":"镜像构建器","JOB_RECORDS":"任务记录","LAST_BUILD_ENVIRONMENT":"最后构建环境","BUILDER_IMAGE_SCAP":"构建器镜像","FILE_SIZE":"文件大小:{size}","DOWNLOAD_ARTIFACT":"下载制品","ARTIFACT_FILE":"制品文件","LOG_MODULE_NOT_INSTALLED":"日志模块未安装。","LOADING_DOTS":"加载中...","IMAGE_NAME_SCAP":"镜像名称","IMAGE_SIZE_SCAP":"镜像大小","IMAGE_NAME_BUILDING":"镜像:{name}/构建中","IMAGE_NAME_FAILED":"镜像:{name}/失败","IMAGE_NAME_SUCCESSFUL":"镜像:{name}/成功","LAST_MESSAGE_SCAP":"最后消息","START_TIME_SCAP":"开始时间","SOURCE_URL":"源 URL","NEW_TAG":"新标签","NEW_TAG_DESC":"输入新镜像的标签","IMAGE_ARTIFACTS":"镜像制品","RELEASE_TIME_SCAP":"发布时间","PULL_COMMAND_SCAP":"拉取命令","IMAGE_BUILDER_PL":"镜像构建器","IMAGE_BUILDER_DESC":"镜像构建器(Image Builder)是将代码或者制品制作成容器镜像的工具。您可以通过简单的设置将制品或代码直接制作成容器镜像。","IMAGE_BUILDER_EMPTY_DESC":"请创建一个镜像构建器。","NOT_RUNNING_YET":"未运行","BUILDING":"构建中","S2I":"源码构建镜像","B2I":"制品构建镜像","BUILD_IMAGE_FOR_SERVICE":"为 {service} 服务构建镜像。","BUILD_MODE":"构建模式","CONTAINERD_RUNTIME_NOT_SUPPORTED":"容器运行时不支持此功能。","S2I_DESC":"选择代码的开发语言。","IMAGE_FROM_S2I":"通过代码构建镜像","IMAGE_FROM_B2I":"通过制品构建镜像","B2I_DESC":"选择制品的文件类型。","EMPTY_IMAGE_TYPE_DESC":"请选择语言或制品类型。","CODE_REPOSITORY_URL":"代码仓库 URL","CODE_REPOSITORY_BRANCH":"代码仓库分支","CODE_REPOSITORY_KEY":"代码仓库密钥","CODE_REPOSITORY_URL_DESC":"输入代码仓库的地址。目前仅支持 Git 仓库。","CODE_REPOSITORY_KEY_DESC":"如果使用私有代码仓库,请选择包含代码仓库密钥的保密字典。","IMAGE_NAME":"镜像名称","IMAGE_TAG":"镜像标签","TARGET_IMAGE_REPOSITORY":"目标镜像服务","S2I_IMAGE_NAME_DESC":"名称只能包含小写字母、数字、连字符(-)、句点(.)、斜钱(/)和冒号(:),并以小写字母或数字开头和结尾。","S2I_TARGET_IMAGE_REPOSITORY_DESC":"选择一个镜像服务用于存放即将创建的镜像。如果没有可用的镜像服务,您需要先创建镜像服务保密字典。","TRIGGER_TOKEN":"触发令牌","INVALID_TRIGGER_TOKEN_DESC":"令牌无效。令牌只能包含大写字母、小写字母和数字。","TRIGGER_TOKEN_DESC":"设置客户端通过 Webhook 触发 KubeSphere 镜像构建时所使用的认证令牌。令牌只能包含大写字母、小写字母和数字。","CODE_RELATIVE_PATH":"代码相对路径","CODE_RELATIVE_PATH_DESC":"设置代码在代码仓库中的相对路径。默认值为 /。","S2I_ENVIRONMENT_DESC":"添加环境变量以控制镜像运行时的行为。","UPLOAD_ARTIFACT_FILE":"上传制品文件","UPLOAD_PERCENT":"已上传:{percent}%","UPLOAD_FULLY":"已上传:100%","UPLOAD_FAILED":"上传失败。","ARTIFACT_FILE_EMPTY_DESC":"请上传一个制品文件。","B2I_DEFAULT_DESC":"上传一个制品文件。","JAR_DESC":"上传一个 JAR 格式的制品文件。","WAR_DESC":"上传一个 WAR 格式的制品文件。","BUILD_ENVIRONMENT":"构建环境","CODE_REPOSITORY_KEY_NOT_REQUIRED":"当前代码仓库不需要密钥。","FILE_SIZE_VALUE":"文件大小:{value}","FILE_UPLOADED_TIP":"上传文件成功。","WRONG_FILE_EXTENSION_NAME":"选择的文件类型不匹配,请选择 {type} 类型。","IMAGE_NAME_EMPTY_DESC":"请输入镜像名称。","IMAGE_TAG_EMPTY_DESC":"请输入镜像标签。","TARGET_IMAGE_REPOSITORY_EMPTY_DESC":"请设置目标镜像服务。","REQUESTS_FOR_PUSH_AN_ALARM_Q":"如何在告警策略触发后接收告警?","REQUESTS_FOR_PUSH_AN_ALARM_A":"平台管理员需要选择告警通知的方式并配置与该方式对应的服务器。","HOW_TO_SUPRESS_AN_ALARM_Q":"如何抑制告警?","HOW_TO_SUPRESS_AN_ALARM_A":"您可以对每条告警策略进行多级别的设置,每个级别对应不同的告警周期。","SELECT_WORKLOAD_TIP":"请选择至少一个工作负载。","KUBE_NO_AVAILABLE_DATA":"未发现数据","EDIT_QUOTAS":"编辑配额","QUOTA":"配额","PROJECT_QUOTAS_NOT_SET":"项目配额未设置","PROJECT_QUOTAS_DESC":"项目配额用于指定项目中可用的 CPU 和内存资源数量和容器组、部署、服务等应用资源的最大数量。","DEFAULT_CONTAINER_QUOTAS_NOT_SET":"默认容器配额未设置","DEFAULT_CONTAINER_QUOTAS_DESC":"默认容器配额用于指定项目中创建的容器的默认 CPU 预留、CPU 上限、内存预留和内存上限。","APPLICATION_RESOURCE_COUNT":"应用资源","SELECT_RESOURCE_TIP":"请选择资源或输入资源名称","NUMBER_OF_PODS":"容器组数量","NUMBER_OF_DEPLOYMENTS":"部署数量","NUMBER_OF_STATEFULSETS":"有状态副本集数量","NUMBER_OF_DAEMONSETS":"守护进程集数量","NUMBER_OF_JOBS":"任务数量","NUMBER_OF_CRONJOBS":"定时任务数量","NUMBER_OF_VOLUMES":"持久卷声明数量","NUMBER_OF_SERVICES":"服务数量","NUMBER_OF_ROUTES":"应用路由数量","NUMBER_OF_SECRETS":"保密字典数量","NUMBER_OF_CONFIGMAPS":"配置字典数量","INSTALLED_APPS":"已安装应用","RESOURCE_STATUS":"资源状态","RESOURCE_WARNING_TIPS":"异常{tipName}:{warnNum}","PHYSICAL_RESOURCE_PL":"物理资源","CPU_USAGE_TIME":"CPU 用量({time})","MEMORY_USAGE_TIME":"内存用量({time})","TIPS":"帮助信息","HOW_TO_INVITE_USERS":"如何邀请用户到当前项目中?","HOW_TO_SET_PROJECT_GATEWAY":"如何设置项目网关?","TOP_5_FOR_RSC_USAGE":"资源用量 Top 5","TOP_5_FOR_RESOURCE_USAGE":"资源用量 Top 5","SORT_BY_WORKLOAD_CPU_USAGE":"按 CPU 用量排行","SORT_BY_WORKLOAD_MEMORY_USAGE_WO_CACHE":"按内存用量排行","SORT_BY_WORKLOAD_NET_BYTES_TRANSMITTED":"按出站流量排行","SORT_BY_WORKLOAD_NET_BYTES_RECEIVED":"按入站流量排行","PROJECT_SETTINGS":"项目设置","HOW_TO_USE_QUOTA_Q":"如何使用资源配额?","HOW_TO_USE_QUOTA_A":"资源配额是用来限制资源用量的一种机制,您可以通过编辑项目来编辑项目资源配额和默认容器配额。","WHAT_ARE_DEFAULT_CONTAINER_QUOTAS_Q":"什么是默认容器配额?","WHAT_ARE_DEFAULT_CONTAINER_QUOTAS_A":"默认容器配额用于指定项目中创建的容器的默认 CPU 预留、CPU 上限、内存预留和内存上限。","PROJECT_BASIC_INFO_DESC":"基本信息提供项目的信息概览,您可以查看项目的信息以及默认容器配额。","EDIT_PROJECT_QUOTA":"编辑项目配额","PROJECT_REMAINING_QUOTAS":"项目剩余配额","WORKSPACE_REMAINING_QUOTAS":"企业空间剩余配额","GPU_TYPE_SCAP":"GPU 类型","GPU_LIMIT_SCAP":"GPU 上限","REQUEST_EXCEED_WORKSPACE":"资源预留和资源上限均不能超过企业空间资源上限。","REQUEST_EXCEED_LIMIT":"资源预留不能超过资源上限。","REQUEST_EXCEED_AVAILABLE_QUOTA":"资源不足。","DELETE_PROJECT_TIP":"请输入项目名称 {resource} 以确认您了解此操作的风险。","MANAGE":"管理","PROJECT_INFO":"项目信息","EDIT_PROJECT_QUOTAS":"编辑项目配额","PROJECT_ROLE_SCAP":"项目角色","PROJECT_ROLE_SCAP_PL":"项目角色","PROJECT_MEMBER_SCAP":"项目成员","PROJECT_MEMBER_SCAP_PL":"项目成员","DEFAULT_CONTAINER_QUOTA_PL":"默认容器配额","EDIT_DEFAULT_CONTAINER_QUOTAS":"编辑默认容器配额","LIMITS_CPU":"CPU 上限","LIMITS_MEMORY":"内存上限","REQUESTS_CPU":"CPU 预留","REQUESTS_MEMORY":"内存预留","PROJECT_QUOTA_PL":"项目配额","RESOURCE_TYPE_SCAP":"资源类型","JOBS":"任务","VOLUMES":"卷","SERVICES":"服务","ROUTES":"应用路由","SECRETS":"保密字典","PROJECT_GATEWAY_DESC":"对项目中的外网访问网关以及服务治理等配置进行设置和管理。","PROJECT_GATEWAY":"项目网关","PROJECT_GATEWAY_EMPTY_DESC":"请创建项目网关。","ENABLE_GATEWAY_DESC":"在创建应用路由之前,需要先启用外网访问入口,即网关。这一步是创建对应的应用路由控制器,负责将请求转发到对应的后端服务。","LOAD_BALANCER_PROVIDER":"负载均衡器提供商","GATEWAY_UPDATING_TIP":"网关升级中,请稍后再试。","CLUSTER_GATEWAY_GUIDE_DESC":"如果同时存在集群网关和项目网关,项目网关禁用后无法再次启用。建议仅使用集群网关或仅使用项目网关。","LOG_COLLECTION":"日志收集","DISK_LOG_COLLECTION_DESC":"日志收集功能允许系统收集保存在卷上的容器日志,并将日志发送到标准输出。","COLLECT_LOGS_ON_VOLUMES_Q":"如何收集卷上的日志?","COLLECT_LOGS_ON_VOLUMES_A":"如需收集卷上的日志,请为容器挂载读写模式的卷并设置容器将日志导出到卷。","COLLECT_LOGS_ON_VOLUMES":"收集卷上日志","DISABLE_LOG_COLLECTION":"停用日志收集","DISABLE_LOG_COLLECTION_TIP":"您确定停用日志收集吗?您需要重启容器组副本才能使修改生效。","LOG_COLLECTION_ENABLED_DESC":"启用或禁用此功能后,您需要重启容器组副本才能使修改生效。","DISABLED":"已禁用","ENABLED":"已启用","NETWORK_ISOLATION_DESC":"通过配置网络隔离控制同一企业空间容器组之间的流量以及来自外部的流量,从而实现隔离应用并增强应用的安全性。","NETWORK_ISOLATION_Q":"如何更好地使用网络隔离?","NETWORK_ISOLATION_Q1":"CNI 插件实现网络隔离需满足哪些必要条件?","NETWORK_ISOLATION":"网络隔离","ENABLE":"启用","PROJECT_NETWORK_ISOLATION":"项目网络隔离","DISABLED_PROJECT_NETWORK_ISOLATION":"禁用项目网络隔离","NETWORK_POLICY_EMP_TITLE":"未启用网络隔离","NETWORK_POLICY_EMP_DESC":"启用项目网络隔离后,将禁止其他项目访问当前项目,但您可以按需放行项目、服务以及外部 IP 地址。","INTERNAL_ALLOWLIST":"内部白名单","INTERNAL_ALLOWLIST_TIP":"将企业空间内部的项目和服务添加到白名单。","INTERNAL_EGRESS_DESC":"当前项目中的容器组可以访问以下服务和项目的容器组。","INTERNAL_INGRESS_DESC":"当前项目中的容器组可以被以下服务和项目的容器组访问。","INTERNAL_ALLOWLIST_DESC":"允许当前项目中的容器组与当前企业空间其他项目中的服务进行通信。","EMPTY_RESOURCE_DESC":"请选择至少一个项目或服务。","EXTERNAL_ALLOWLIST":"外部白名单","EXTERNAL_ALLOWLIST_TIP":"将企业空间外部的网段和端口添加到白名单。","EXTERNAL_ALLOWLIST_DESC":"允许当前项目中的容器组与企业空间外部的特定网段和端口进行通信。","NETWORK_SEGMENT_EXAMPLE":"例如:10.0.0.0","PORT_EXAMPLE":"例如:80","EXTERNAL_EGRESS_DESC":"当前项目中的容器组可以访问以下网段和端口。","EXTERNAL_INGRESS_DESC":"当前项目中的容器组可以被以下网段和端口访问。","SELECT_RULE_DIRECTION_TIP":"请选择流量方向。","ENTER_VALID_SEGMENT_DESC":"请输入有效的网段。","ENTER_VALID_PORT_NUMBER_DESC":"请输入有效端口号。","ADD_ALLOWLIST_ENTRY":"添加白名单条目","EDIT_ALLOWLIST_ENTRY":"编辑白名单条目","EXTERNAL_TRAFFIC_DIRECTION_DESC":"出站表示从当前项目到企业空间外的方向。入站表示从企业空间外到当前项目的方向。","TRAFFIC_DIRECTION":"流量方向","NETWORK_SEGMENT_DESC":"设置网段(支持 CIDR)。","EGRESS":"出站","INGRESS":"入站","INTERNAL_TRAFFIC_DIRECTION_DESC":"出站表示从当前项目到其他项目的方向。入站表示从其他项目到当前项目的方向。","ALLOWLIST_ENTRY":"白名单条目","ALLOWLIST_ENTRY_PL":"白名单条目","ALLOWLIST_ENTRY_DETAIL":"白名单条目详细","ALLOWLIST_ENTRY_LOW":"白名单条目","ADD_NEW_NETWORK_SEGMENT":"添加新网段","ADD_NEW_PORT":"添加新端口","ADD_NEW_PORT_RANGE":"添加新端口范围","PORT_RANGE":"端口范围","NETWORK_SEGMENT_QUANTITY":"网段数量","PORT_QUANTITY":"端口数量","ALLOWLIST_ENTRY_EMPTY_DESC":"请创建白名单条目","PROJECT_MEMBER":"项目成员","PROJECT_MEMBER_PL":"项目成员","PROJECT_MEMBER_DESC":"项目成员可以查看或管理项目资源。项目管理员可以邀请企业空间成员至该项目并对项目成员进行管理。","REMOVE":"移除","INVITE_MEMBER_DESC":"邀请当前企业空间的成员到当前项目。","PROJECT_MEMBER_EMPTY_DESC":"请邀请当前企业空间的成员到当前项目。","INVITE_MEMBER_SEARCH_PLACEHOLDER":"输入用户名邀请项目成员","ASSIGN_ROLE":"分配角色","PERMISSION_PL":"权限","AUTHORIZED_USER_PL":"授权用户","PROJECT_ROLE_PL":"项目角色","PROJECT_ROLE_DESC":"项目角色定义了在当前项目下用户所拥有的权限。","ROLE_PROJECT_ADMIN":"管理项目中的所有资源。","ROLE_PROJECT_REGULAR":"管理项目中除用户和角色之外的资源。","ROLE_PROJECT_VIEWER":"查看项目中的所有资源。","ROLE_PROJECT_OPERATOR":"管理项目中除用户和角色之外的资源。","PROJECT_ROLE_EMPTY_DESC":"请创建一个项目角色。","PERMIGROUP_APPLICATION_WORKLOADS":"应用负载","PERMISSION_APPLICATION_WORKLOADS_VIEW":"应用负载查看","PERMISSION_APPLICATION_WORKLOADS_VIEW_DESC":"查看项目中的应用、服务、工作负载、任务、灰度发布任务和镜像构建器等资源。","PERMISSION_APPLICATION_WORKLOADS_MANAGEMENT":"应用负载管理","PERMISSION_APPLICATION_WORKLOADS_MANAGEMENT_DESC":"创建、编辑和删除项目中的应用、服务、工作负载、任务、灰度发布任务和镜像构建器等资源。","PERMIGROUP_STORAGE_MANAGEMENT":"存储","PERMISSION_VOLUME_SNAPSHOTS_VIEW":"卷快照查看","PERMISSION_VOLUME_SNAPSHOTS_VIEW_DESC":"查看项目中的卷快照。","PERMISSION_VOLUME_SNAPSHOTS_MANAGEMENT":"卷快照管理","PERMISSION_VOLUME_SNAPSHOTS_MANAGEMENT_DESC":"创建、编辑和删除项目中的卷快照。","PERMISSION_VOLUMES_VIEW":"持久卷声明查看","PERMISSION_VOLUMES_VIEW_DESC":"查看项目中的持久卷声明。","PERMISSION_VOLUMES_MANAGEMENT":"持久卷声明管理","PERMISSION_VOLUMES_MANAGEMENT_DESC":"创建、编辑和删除项目中的持久卷声明。","PERMIGROUP_CONFIGURATION_CENTER":"配置","PERMISSION_CONFIGMAPS_VIEW":"配置字典查看","PERMISSION_CONFIGMAPS_VIEW_DESC":"查看项目中的配置字典。","PERMISSION_CONFIGMAPS_MANAGEMENT":"配置字典管理","PERMISSION_CONFIGMAPS_MANAGEMENT_DESC":"创建、编辑和删除项目中的配置字典。","PERMISSION_SECRETS_VIEW":"保密字典查看","PERMISSION_SECRETS_VIEW_DESC":"查看项目中的保密字典。","PERMISSION_SECRETS_MANAGEMENT":"保密字典管理","PERMISSION_SECRETS_MANAGEMENT_DESC":"创建、编辑和删除项目中的保密字典。","PERMISSION_SERVICEACCOUNT_VIEW":"服务账户查看","PERMISSION_SERVICEACCOUNT_VIEW_DESC":"查看项目中的服务账户。","PERMISSION_SERVICEACCOUNT_MANAGEMENT":"服务账户管理","PERMISSION_SERVICEACCOUNT_MANAGEMENT_DESC":"创建、编辑和删除项目中的服务账户。","PERMIGROUP_MONITORING_ALERTING":"监控告警","PERMISSION_ALERTING_MESSAGES_VIEW":"告警查看","PERMISSION_ALERTING_MESSAGES_VIEW_DESC":"查看项目中的告警。","PERMISSION_ALERTING_MESSAGES_MANAGEMENT":"告警管理","PERMISSION_ALERTING_MESSAGES_MANAGEMENT_DESC":"评论并删除项目中的告警。","PERMISSION_ALERTING_POLICIES_VIEW":"规则组查看","PERMISSION_ALERTING_POLICIES_VIEW_DESC":"查看项目中的规则组。","PERMISSION_ALERTING_POLICIES_MANAGEMENT":"规则组管理","PERMISSION_ALERTING_POLICIES_MANAGEMENT_DESC":"创建、编辑和删除项目中的规则组。","PERMISSION_CUSTOM_MONITORING_VIEW":"自定义监控查看","PERMISSION_CUSTOM_MONITORING_VIEW_DESC":"查看项目中的自定义监控面板。","PERMISSION_CUSTOM_MONITORING_MANAGEMENT":"自定义监控管理","PERMISSION_CUSTOM_MONITORING_MANAGEMENT_DESC":"创建、编辑和删除项目中的自定义监控面板。","PERMISSION_PROJECT_MEMBERS_VIEW":"成员查看","PERMISSION_PROJECT_MEMBERS_VIEW_DESC":"查看项目成员。","PERMISSION_PROJECT_MEMBERS_MANAGEMENT":"成员管理","PERMISSION_PROJECT_MEMBERS_MANAGEMENT_DESC":"邀请、编辑和移除项目成员。","PERMISSION_PROJECT_ROLES_VIEW":"角色查看","PERMISSION_PROJECT_ROLES_VIEW_DESC":"查看项目角色。","PERMISSION_PROJECT_ROLES_MANAGEMENT":"角色管理","PERMISSION_PROJECT_ROLES_MANAGEMENT_DESC":"创建、编辑和删除系统预置角色以外的项目角色。","PERMIGROUP_PROJECT_SETTINGS":"项目设置","PERMISSION_PROJECT_SETTINGS":"项目设置管理","PERMISSION_PROJECT_SETTINGS_DESC":"管理项目设置,包括项目基本信息、外部访问设置、网络策略、资源配额、日志收集设置等。","DELETE_ROLE":"删除角色","DELETE_ROLE_TIP":"您确定删除角色 {resource} 吗?","DELETE_ROLE_USER_TIP_PL":"当前角色已授权给 {count} 名用户,请先删除用户或更改用户的角色。","DELETE_ROLE_USER_TIP":"当前角色已授权给 {count} 名用户,请先删除用户或更改用户的角色。","DELETE_ROLE_DEPARTMENT_TIP_PL":"当前角色已授权给 {count} 个部门,请先删除部门或更改部门的角色。","DELETE_ROLE_DEPARTMENT_TIP":"当前角色已授权给 {count} 个部门,请先删除部门或更改部门的角色。","CLONE_VOLUME":"克隆卷","CLONE":"克隆","CREATE_SNAPSHOT":"创建快照","SNAPSHOT_EMPTY_TIP":"请选择一个卷快照类。","EXPAND_VOLUME":"扩展卷","EXPAND":"扩展","PROVISIONER":"供应者","AVAILABLE_CAPACITY":"剩余容量","POD_IP_ADDRESS_SCAP":"容器组 IP 地址","TOTAL_CAPACITY":"总容量","TECHNICAL_SUPPORT":"技术支持","LEARN_MORE_CONTACT_US":"获取更多云原生技术赋能服务,请联系我们。","COMMUNITY_SUPPORT":"社区支持","FORUM":"论坛","TICKET_SUPPORT":"工单支持","TICKET_SUPPORT_DESC":"专业云原生开发团队和容器服务交付团队,具有超过 10 年的公有云和私有云支持经验和对行业的深入了解,可提供全面的技术支持,包括安装、故障排除、恢复和其他专业服务。","CONTACT_US":"联系我们","KUBESPHERE_ENTERPRISE_CAPTION":"KubeSphere Enterprise","KUBE_SPHERE_ENTERPRISE_DESC":"KubeSphere Enterprise 是由 QingCloud 开发的企业级容器平台,基于 KubeSphere 开源平台。与开源版本相比,KubeSphere Enterprise 增强了企业量化运营、大规模集群运维和安全加固等方面的的能力,并扩展了微型服务治理和应用管理等多个关键功能。KubeSphere Enterprise 扩展组件市场提供企业级扩展组件,以满足各种业务场景的需求,并由 QingCloud 提供专家解决方案和技术支持。","KSE_FEATURE_1":"赋能企业数字化转型量化运营","KSE_FEATURE_2":"增强大规模联邦集群运维能力","KSE_FEATURE_3":"提供全生命周期安全保护","KSE_PLATFORM_VERSION":"平台版本: {version}","KUBESPHERE_CLOUD_CAPTION":"KubeSphere Cloud","KSC_FEATURE_BACKUP":"备份容灾","KSC_FEATURE_BACKUP_APP_DESC":"应用级数据保护","KSC_FEATURE_BACKUP_DATA_DESC":"数据一致性保障","KSC_FEATURE_BACKUP_CLOUD_DESC":"跨多云统一纳管","KSC_FEATURE_INSPECTION":"集群巡检","KSC_FEATURE_INSPECTION_VULN_DESC":"全面漏洞扫描","KSC_FEATURE_INSPECTION_SECURITY_DESC":"系统安全加固","KSC_FEATURE_INSPECTION_BEST_DESC":"最佳实践指导","KSC_FEATURE_LIGHTWEIGHT":"轻量集群","KSC_FEATURE_LIGHTWEIGHT_START_DESC":"极速启用集群","KSC_FEATURE_LIGHTWEIGHT_KS_DESC":"KubeSphere 开箱即用","KSC_FEATURE_LIGHTWEIGHT_TEST_DESC":"满足测试演示场景","START_NOW":"立即开始","START_REAL_TIME_AUDIT_LOG":"暂停实时审计日志","STOP_REAL_TIME_AUDIT_LOG":"查看实时审计日志","TIME_S":"{num, plural, =1 {1 秒} other {# 秒}}","AUDIT_LOG_COUNT":"审计日志","RESOURCE_NAME_AND_TYPE":"资源类型与名称","VERB":"操作行为","STATUS_CODE":"状态码","SUBRESOURCE":"子资源","TOTAL_AUDITING_TODAY":"今日总共收录了 {auditing} 条审计日志","NO_AUDIT_LOG_TODAY":"今日没有收录的审计日志","AUDIT_LOG_TREND_LAST_TWELVE_HOURS":"最近 12 小时审计日志数量变化趋势","START_TIME_VALUE":"开始时间:{value}","NO_DATA_AUTHORIZED":"没有数据授权","NO_DATA_AUTHORIZED_DESC":"请联系管理员获取数据授权。","TIME_RANGE_LAST":"时间范围:最近 {value}","TIME_RANGE_RANGE":"时间范围:{startTime} – {endTime}","AUDIT_LOGS_12H":"最近 12 小时审计日志数量","AUDIT_LOG_WORKSPACE_TIP":"输入企业空间名称查找审计日志。","AUDIT_LOG_PROJECT_TIP":"输入项目名称查找审计日志。","AUDIT_LOG_RESOURCE_NAME_TIP":"输入资源名称查找审计日志。","AUDIT_LOG_RESOURCE_TYPE_TIP":"输入资源类型查找审计日志。","AUDIT_LOG_VERB_TIP":"输入操作行为查找审计日志。","AUDIT_LOG_STATUS_CODE_TIP":"输入状态码查找审计日志。","AUDIT_LOG_OPERATOR_TIP":"输入操作者查找审计日志。","AUDIT_LOG_SOURCE_IP_ADDRESS_TIP":"输入源 IP 地址查找审计日志。","SEARCH_BY_VERB":"按操作行为搜索","SEARCH_BY_STATUS_CODE":"按状态码搜索","SEARCH_BY_OPERATOR":"按操作者搜索","SEARCH_BY_SOURCE_IP_ADDRESS":"按源 IP 地址搜索","ENABLE_AUDIT_LOG_COLLECTION_DESC":"如果审计日志收集已禁用,您需要启用审计日志收集。","KEYWORD":"关键词","EXACT_QUERY":"精确查询","FUZZY_QUERY":"模糊查询","TIME_TOPOLOGY":"时间拓扑图 ","SEARCH_RESULTS":"搜索结果","DISPLAY":"显示","HIDE":"隐藏","STOP_REAL_TIME_CONTAINER_LOG":"暂停实时容器日志","START_REAL_TIME_CONTAINER_LOG":"查看实时容器日志","REFRESH_RATE_COLON":"刷新频率:","CONTAINER_LOG_COUNT":"容器日志","LOG":"日志","CONTAINER_LOG_SOURCE":"容器日志来源","TOTAL_LOGS_TODAY":"今日总共收录了 {containers} 个容器
    {logs} 条日志信息","WORKLOAD":"工作负载","TIME_RANGE_SCAP":"时间范围","QUERYING_RULES":"查询规则","CONTAINER_LOGS_12H":"最近 12 小时容器日志数量","CONTAINER_LOG_KEYWORD_TIP":"输入关键词查找容器日志。","CONTAINER_LOG_PROJECT_TIP":"输入项目名称查找容器日志。","CONTAINER_LOG_WORKLOAD_TIP":"输入工作负载名称查找容器日志。","CONTAINER_LOG_CONTAINER_TIP":"输入容器名称查找容器日志。","CONTAINER_LOG_POD_TIP":"输入容器组名称查找容器日志。","SEARCH_BY_KEYWORD":"按关键词搜索","SEARCH_BY_PROJECT":"按项目搜索","SEARCH_BY_WORKLOAD":"按工作负载搜索","SEARCH_BY_POD":"按容器组搜索","SEARCH_BY_CONTAINER":"按容器搜索","TIME_RANGE":"时间范围","DOWNLOAD":"下载","KUBECONFIG_TIP":"\n

    配置方法

    \n

    通过使用 kubeconfig 文件配置当前集群的访问信息。

    \n ","HIDE_HELP_INFORMATION":"隐藏帮助信息","KUBECTL_TIP":"\n

    命令参考

    \n

    您可以参考以下 kubectl 命令。

    \n

    自定义输出

    \n
      \n
    • 查看容器组的更多信息
    • \n
    \n

    kubectl get pod <容器组名称> -o wide

    \n
      \n
    • 查看 YAML 格式的容器组详情
    • \n
    \n

    kubectl get pod <容器组名称> -o yaml

    \n

    执行操作

    \n

    创建资源

    \n
      \n
    • 使用 YAML 配置文件创建服务
    • \n
    \n

    kubectl create -f my-service.yaml

    \n
      \n
    • 使用目录下的所有 YAML、YML 和 JSON 文件创建资源
    • \n
    \n

    kubectl create -f <目录>

    \n

    查看资源

    \n
      \n
    • 查看所有容器组
    • \n
    \n

    kubectl get pods

    \n
      \n
    • 查看所有服务
    • \n
    \n

    kubectl get services

    \n

    查看资源详情

    \n
      \n
    • 查看节点详情
    • \n
    \n

    kubectl describe nodes <节点名称>

    \n
      \n
    • 查看容器组详情
    • \n
    \n

    kubectl describe pods <容器组名称>

    \n ","OPEN_TERMINAL_DESC":"确保代理服务器上的 Web Socket 设置正确。","TOOLBOX":"工具箱","TOOLBOX_DESC":"提供集群分析和控制工具。","DETAIL_NOT_FOUND_DESC":"未发现相关资源。 返回{title}","ANALYSIS_TOOLS":"分析工具","VIEW_KUBE_CONFIG":"查看或下载当前集群的 kubeconfig 文件。","CONTAINER_LOG_SEARCH_DESC":"针对集群资源的多维度容器日志查询工具。","RESOURCE_EVENT_SEARCH_DESC":"针对集群资源的多维度资源事件查询工具。","AUDIT_LOG_DESC":"针对集群资源的多维度审计日志查询工具。","RESOURCE_CONSUMPTION_STATISTICS":"资源消费统计","METERING_AND_BILLING_DESC":"查看集群和企业空间的资源消费情况。","CONTAINER_LOG_SEARCH":"容器日志查询","RESOURCE_EVENT_SEARCH":"资源事件查询","AUDIT_LOG_SEARCH":"审计日志查询","CONTROL_TOOL":"控制工具","TOOLBOX_SHIFT_TIPS":" 👻 按下“shift+左键”可在浏览器新窗口中打开 kubectl。","THIRD_PARTY_TOOLS":"第三方工具","METERING_NOT_ENABLED_DESC":"当前模块尚未启用。","NO_METER_DATA":"未发现资源消费数据。","EXPORT_BILL":"导出 CSV 文件格式的消费记录。","TOTAL_COST":"总金额({unit})","PRICE_CONFIG_DESC":"尚未配置价格信息。","METER_CPU_USAGE":"CPU 用量","METER_MEMORY_USAGE":"内存用量","METER_VOLUME_USAGE":"卷用量","METER_NET_RECEIVED_USAGE":"入站流量用量","METER_NET_TRANSMITTED_USAGE":"出站流量用量","NET_RECEIVED":"入站流量","NET_TRANSMITTED":"出站流量","COMPOSING_APP":"自制应用","CLUSTER_NODE_SCAP":"集群节点","POD_SCAP":"容器组","APP_TEMPLATE_SCAP":"应用模板","COMPOSING_APP_SCAP":"自制应用","DEPLOYMENT_SCAP":"部署","STATEFULSET_SCAP":"有状态副本集","DAEMONSET_SCAP":"守护进程集","WORKSPACE_SCAP":"企业空间","CLUSTER_SCAP":"集群","PROJECT_SCAP":"项目","SERVICE_SCAP":"服务","HOST_CLUSTER_SCAP":"主集群","MEMBER_CLUSTER_SCAP":"成员集群","CONSUMPTION_HISTORY":"消费历史","BILLING_CYCLE":"对账周期","CONSUMER_TRENDS":"费用趋势","AVERAGE_USAGE":"平均用量","TOTAL_CONSUMPTION":"总消费情况","TOTAL_CONSUMPTION_Q":"什么是总消费情况?","TOTAL_CONSUMPTION_A":"总消费情况表示在当前对账周期中每个计费采样点的资源用量之和。","TIMERANGE_MORE_30DAY_MSG":"结束时间与开始时间的间隔大于 30 天时,采样间隔最小为 1 天。","MAXIMUM_USAGE":"最大用量","MINIMUM_USAGE":"最小用量","RESOURCE_TYPE":"资源类型","CURRRENT_RESOURCE_CONSUMPTION":"当前消费","METER_RESOURCE_DESC":"1 小时内的资源消费情况","ADD_CLUSTER_FOR_WORKSPACE":"请将集群授权给企业空间。","RESOURCE_CONSUMPTION_DESC":"选择一个类别以查看资源消费情况。","CLUSTER_CONSUMPTION":"集群资源消费情况","CLUSTER_CONSUMPTION_DESC":"查看集群资源的消费情况。","CLUSTER_RESOURCE_CONSUMPTION_DESC":"集群的 CPU、内存、卷等资源的消费情况","CLUSTER_NODE_CONSUMPTION_DESC":"集群节点的 CPU、内存、卷等资源的消费情况","CLUSTER_POD_CONSUMPTION_DESC":"节点中容器组的 CPU、内存等资源的消费情况","CURRENT_RESOURCE_CONSUMPTION":"当前资源消费情况","VIEW":"查看","CONSUMPTION_SINCE_CREATION":"自创建以来已消耗了以下资源。","PRICE":"价格","WORKSPACE_CONSUMPTION":"企业空间资源消费情况","WORKSPACE_CONSUMPTION_DESC":"查看企业空间的资源消费情况。","WORKSPACE_RESOURCE_CONSUMPTION_DESC":"企业空间的 CPU、内存、卷等资源的消费情况","WORKSPACE_PROJECT_CONSUMPTION_DESC":"企业空间中项目的 CPU、内存、卷等资源的消费情况","PROJECT_CONSUMPTION_DESC":"项目中的应用服务容器组的 CPU、内存、卷等资源的消费情况","STOP_REAL_TIME_RESOURCE_EVENT":"暂停实时资源事件","START_REAL_TIME_RESOURCE_EVENT":"查看实时资源事件","RESOURCE_EVENT_COUNT":"资源事件","METADATA":"元数据","EARLIEST_START_TIME":"最早发生时间","LATEST_START_TIME":"最近发生时间","TOTAL_EVENTS_TODAY":"今日总共收录了 {events} 条资源事件","NO_RESOURCE_EVENTS_TODAY":"今日没有收录的资源事件","RESOURCE_EVENTS_12H":"最近 12 小时资源事件数量","RESOURCE_EVENT_WORKSPACE_TIP":"输入企业空间名称查找资源事件。","RESOURCE_EVENT_PROJECT_TIP":"输入项目名称查找资源事件。","RESOURCE_EVENT_RESOURCE_TYPE_TIP":"输入资源类型查找资源事件。","RESOURCE_EVENT_RESOURCE_NAME_TIP":"输入资源名称查找资源事件。","RESOURCE_EVENT_MESSAGE_TIP":"输入消息查找资源事件。","RESOURCE_EVENT_CATEGORY_TIP":"输入分类名称查找资源事件。","RESOURCE_EVENT_REASON_TIP":"输入原因查找资源事件。","SEARCH_BY_MESSAGE":"按消息搜索","SEARCH_BY_WORKSPACE":"按企业空间搜索","SEARCH_BY_RESOURCE_TYPE":"按资源类型搜索","SEARCH_BY_RESOURCE_NAME":"按资源名称搜索","SEARCH_BY_REASON":"按原因搜索","SEARCH_BY_CATEGORY":"按分类搜索","EMAIL_DESC":"邮箱地址可用于登录 KubeSphere Web 控制台。","LANGUAGE":"语言","USER_SETTINGS":"用户设置","CLOSE":"关闭","CONTENT_NOT_SAVED_TIPS":"内容已经修改但并未保存","SAVE_EDIT_HINTS":"请确认修改的内容是正确的,您可以保存设置或者取消设置。","PASSWORD_SETTINGS":"密码设置","PASSWORD_EMPTY_DESC":"请输入一个密码。","CURRENT_PASSWORD":"当前密码","ENTER_CURRENT_PASSWORD_TIP":"请输入当前密码。","CONFIRM_PASSWORD":"确认密码","PASSWORD_NOT_SAME_DESC":"两次输入的密码必须一致。","ENTER_CURRENT_PASSWORD_DESC":"您必须输入当前密码才能修改密码。","WORKBENCH":"工作台","DASHBOARD_TITLE":"您好 {username}","LAST_LOGIN_TIME":"最后登录时间:","USER_DASHBOARD_EMPTY_TITLE":"您不属于任何企业空间","USER_DASHBOARD_EMPTY_DESC":"请联系企业空间管理员邀请您加入企业空间中。","LAST_UPDATE_TIME":"最后更新时间","PLATFORM_VERSION":"平台版本","PLATFORM_RESOURCES":"平台资源","APP_TEMPLATE_SCAP_PL":"应用模板","RECENT_ACCESS":"最近访问","MULTI_CLUSTER_DEPLOYMENT":"联邦项目","WORKBENCH_PROJECT":"项目","WORKBENCH_WORKSPACE":"企业空间","WORKBENCH_DEVOPS":"DevOps 项目","WORKBENCH_MULTI_CLUSTER_PROJECT":"联邦项目","WORKBENCH_CLUSTER":"集群","NOT_FOUND_DESC":"🙇 对不起未发现相关资源,系统将在 {time}s 后返回 工作台","MULTI_CLUSTER_PROJECT_TIP":"此项目跨多个集群。","NO_HISTORY_TITLE":"未发现最近访问的资源","NO_HISTORY_DESC":"您可以对平台资源进行访问。","ADD_TO_QUICK_ACCESS":"添加到快捷访问","CANCEL_QUICK_ACCESS":"取消快捷访问","MESSAGE":"消息","APP_REPOSITORY_PL":"应用仓库","APP_REPO":"应用仓库","HOW_TO_USE_APP_REPO_Q":"如何使用应用仓库?","HOW_TO_USE_APP_REPO_A":"您需要转到在该企业空间下的项目。在部署新应用时,选择来自应用模板并在下拉列表中选择您的应用仓库,即可部署应用仓库中的应用。","APP_REPO_DESC":"应用仓库是用于存放应用模板的仓库,您可以添加应用仓库以部署和管理其中的应用。","APP_REPOSITORY_EMPTY_DESC":"请添加一个应用仓库。","APP_REPO_STATUS_SUCCESSFUL":"成功","APP_REPO_STATUS_FAILED":"失败","APP_REPO_STATUS_SYNCING":"同步中","ADD_APP_REPO":"添加应用仓库","VALIDATE":"验证","SYNC_INTERVAL":"同步间隔","SYNC_INTERVAL_DESC":"设置一个同步周期,取值范围为 3 分钟到 24 小时。默认值 0 表示不同步。","SYNC_PERIOD_EMPTY_DESC":"请设置同步周期。","SYNC_INTERVAL_INVALID":"参数值无效,请输入 0 或正整数。","APP_REPO_URL_DESC":"URL 需要通过验证才能添加或编辑应用仓库。","SYNC_INTERVAL_TIP":"取值范围为 3 分钟到 24 小时,请输入有效数值。","SECONDS":"秒","MINUTES":"分钟","HOURS":"小时","UNRECOGNIZED_URL":"URL 无法识别。","INVALID_CREDENTIAL_FORMAT":"证书格式无效。","MISSING_ACCESS_KEY_ID":"缺少访问密钥(access key) ID。","MISSING_SECRET_ACCESS_KEY":"缺少秘密访问密钥(secret access key)。","S_THREE_ACCESS_DENIED":"S3 访问被拒绝。","INVALID_URL_FORMAT":"URL 格式无效。","INVALID_HTTP_SCHEME":"HTTP 协议无效。","HTTP_ACCESS_DENIED":"HTTP 访问被拒绝。","INVALID_HTTPS_SCHEME":"HTTPS 协议无效。","INVALID_TYPE":"类型无效。","INVALID_PROVIDERS":"Providers 参数无效。","INVALID_REPO_URL":"仓库 URL 无效。","INVALID_S_THREE_SCHEME":"S3 协议无效。","ACCESS_KEY_ID":"访问密钥 ID","SECRET_ACCESS_KEY":"秘密访问密钥","EDIT_APP_REPO":"编辑应用仓库","INVALID_URL_DESC":"URL 无效。","VALID_URL_DESC":"URL 验证通过。","APP_REPOSITORY":"应用仓库","APP_REPOSITORY_LOW":"应用仓库","MODIFY_SUCCESSFUL":"修改成功。","SERVICE_PROVIDER_WEBSITE_DESC":"服务商的官方网站地址。","WRONG_ADDRESS_TIP":"地址格式错误,请输入正确的地址。","APP_NAME_DESC":"名称可包含任意字符,最长 20 个字符。","APP_DESCRIPTION_DESC":"描述可包含任意字符,最长 120 个字符。","APP_ICON_FORMAT":"格式:PNG 或 JPG","APP_ICON_SIZE":"大小:96x96 像素","CHOOSE_APP_CATEGORY_DESC":"为应用选择一个分类。","EDIT_APP_DESC":"编辑应用模板的基本信息。","ICON":"图标","SERVICE_PROVIDER_WEBSITE_TCAP":"服务商网站","START_EDITING":"开始编辑…","SCREENSHOTS_COLON":"截图数量:","DELETE_ALL":"全部删除","ADD_VERSION_SUCCESSFUL":"版本添加成功。","UPLOAD_PACKAGE_OK_NOTE":"该版本已存在,请上传其他版本。","UPLOAD_NEW_VERSION":"上传版本","UPLOAD_NEW_VERSION_DESC":"上传应用模板的新版本。","DELETE_APP_TEMPLATE_DESC":"请输入应用模板名称 {resource} 以确认您了解此操作的风险。","DELETE_APP_TEMPLATE_VERSIONS_DESC":"请输入应用模板名称 {resource} 以确认您了解此操作的风险。删除应用模板前,您必须先删除该应用模板的所有版本。","APP_TEMPLATE_LOW":"应用模板","APP_STATUS_SUBMITTED":"已提交","APP_STATUS_NOT_SUBMITTED":"未提交","VERSION_INFO":"版本信息","INSTALL":"安装","SUBMIT_FOR_REVIEW":"提交审核","DOWNLOAD_SUCCESSFUL":"下载成功。","VERSION_DELETE_TIP":"您确定要删除版本 {name} 吗?","VERSION_SUBMIT_TIP":"您确定要提交版本 {name} 进行发布?","VERSION_CANCEL_TIP":"您确定要撤消版本 {name} 的提交吗?","VERSION_RELEASE_TIP":"版本 {name} 发布到商店后,用户可以查看并部署该应用版本,您确定要发布吗?","VERSION_SUSPEND_TIP":"版本 {name} 下架后,关联的应用将不显示该版本,您确定要下架吗?","VERSION_RECOVER_TIP":"版本 {name} 恢复上架后,关联的应用将显示出该版本,您确定要恢复上架吗?","UPDATE_TIME_SCAP":"更新时间","VIEW_IN_STORE":"在商店中查看","UPLOAD_AGAIN_TIP":"出现错误,请重试。","ENTER_VERSION_NUMBER_TIP":"请输入版本号。","SUBMIT_REVIEW_DESC":"将应用模板提交审核以发布到应用商店。","APP_LEARN_MORE":"了解更多","INVALID_VERSION_TIP":"请输入正确的版本号。","TEST_STEPS":"测试步骤","VERSION_SUBMIT_TEST_STEPS":"1. 所有依赖的 chart 已经分别提交。
    2. 可以成功通过静态检查(helm lint)。
    3. 可以用默认值成功启动应用(helm install)。所有容器组处于运行中状态,所有服务(Service)都至少有一个端点。
    4. 使用的镜像没有安全漏洞。
    5. 支持升级。
    6. 支持自定义应用配置。
    7. 不要使用 Kubernetes 的 alpha 功能。
    8. 需要提供详细的说明文档,包括应用介绍、准备工作和自定义参数配置。
    ","VERSION_SUBMIT_NOTE":"提交之前,请确认您的应用满足以下要求:","UPDATE_LOG_DESC":"填写关于应用更新的详细信息。","SUBMIT_SUCCESSFUL":"提交成功。","CANCEL_SUCCESSFUL":"取消成功。","APP_INSTANCES":"应用实例","APP_TEMPLATE_PL":"应用模板","APPS_MANAGEMENT":"应用管理","UPLOAD_TEMPLATE":"上传模板","APP_TEMPLATE_DESC":"KubeSphere 提供全生命周期的应用管理,可以上传或者创建新的应用模板,并且快速部署它们,也可以通过应用商店进行发布应用。","DEVELOP_APP_DESC":"您可以上传 Helm chart 或者使用 KubeSphere 提供的资源编排工具进行应用模板的开发。","DEVELOP_APP_TITLE":"如何开发应用模板?","HOW_PUBLISH_APP_TITLE":"如何发布应用到应用商店?","HOW_PUBLISH_APP_DESC":"您可以将 Helm chart 上传为企业空间的应用模板,审核通过后,应用将会发布在应用商店中。","APP_STATUS_ACTIVE":"已发布","APP_STATUS_DRAFT":"未发布","APP_STATUS_SUSPENDING":"下架中","APP_TEMPLATE_EMPTY_DESC":"请创建一个应用模板。","LATEST_VERSION":"最新版本","CREATE_APP_TEMPLATE":"创建应用模板","CREATE_APP_TEMPLATE_DESC":"轻量级、可移植、自包含的软件打包技术,使应用可以在几乎任何地方以相同的方式运行。","APP_CREATE_GUIDE":"请参阅开发指南 Helm 规范。","UPLOAD":"上传","UPLOAD_HELM_TITLE":"上传 Helm Chart","UPLOAD_HELM_CHART_DESC":"上传已有的 Helm chart。","HELM_CHART_FORMAT_DESC":"支持 tar.gz 和 tgz 格式。","UPLOAD_ICON":"上传图标","UPLOAD_SUCCESSFUL":"上传成功。","UPLOADING":"正在上传","FILE_MAX_SIZE_ICON":"图标的最大尺寸为 96x96 像素。","FILE_MAX_SCREENSHOTS":"截图大小不能超过 2 MB。","APP_ICON_NOTE":"上传 96x96 像素以内的 JPG 或 PNG 图像。","MISS_FILE_NOTE":"未找到文件 {file}。","LICENSE_FILE_DESC":"文本格式的许可协议。","CHART_FILE_DESC":"YAML 文件,用于描述 chart 的基本信息,例如名称和版本。","README_FILE_DESC":"应用介绍和使用说明。","REQUIREMENTS_FILE_DESC":"Chart 依赖关系描述文件。","VALUES_FILE_DESC":"Chart 的默认值配置文件。","CHARTS_FILE_DESC":"存放 chart 依赖项的目录。","TEMPLATES_FILE_DESC":"存放部署模板文件的目录。","NOTES_FILE_DESC":"使用指南。","INCORRECT_FILE":"文件有误?","TRY_AGAIN":"重试","FILE_MAX_ICON_DESC":"图标尺寸不能超过 20 KB,请重试。","HOMEPAGE":"首页","OPTIONAL":"可选","DEVOPS_TIP_GITOPS_Q":"如何落地 DevOps?","DEVOPS_TIP_GITOPS_A":"创建关联代码仓库的流水线,并积极使用部署 Kubernetes 部署步骤,就可以实现 DevOps 了。","DEVOPS_TIP_TYPE_Q":"流水线 (Pipeline) 支持哪些代码仓库类?","DEVOPS_TIP_TYPE_A":"流水线支持 Git、GitHub、Gitlab、SVN、以及 Bitbucket 代码仓库.","DEVOPS_PROJECT_EMPTY_DESC":"请创建一个 DevOps 项目。","CREATE_DEVOPS_PROJECT":"创建 DevOps 项目","DEVOPS_PROJECT_CREATE_DESC":"DevOps 是一个独立的命名空间,其中定义了一组的流水线;用户可以按照自己的方式对流水线进行分组 (例如:项目类型、组织类型)。","DEVOPS_BASEINFO_DESC":"请设置 DevOps 项目的基本信息","PATTERN_NAME_INVALID_TIP":"名称无效。名称只能包含小写字母、数字、或连字符(-)。","NO_DEVOPS_INSTALL":"未安装 DevOps","DEVOPS_ADMIN_DESC":"选择一个项目成员作为项目管理员。","DELETE_MULTIPLE_DEVOPS_PROJECTS":"批量删除 DevOps 项目","DELETE_DEVOPS_PROJECT":"删除 DevOps 项目","DELETE_DEVOPS_PROJECT_TIP":"请输入 DevOps 项目名称 {resource} 以确认您了解此操作的风险。","DELETE_DEVOPS_PROJECT_TIP_PL":"请输入 DevOps 项目名称 {resource} 以确认您了解此操作的风险。","EDGE_APP_TEMPLATES":"应用模版","EDGE_APP_TEMPLATES_PL":"边缘应用模版","EDGE_APP_TEMPLATES_DESC":"边缘应用模板用于定义用户的边缘应用,用户需要指定容器应用的容器镜像、配置信息等。","CONTAINER_COUNTS":"容器数量","EDGE_APP_TEMPLATES_EMPTY_DESC":"请创建一个应用模版。","CREATE_EDGE_APP_TEMPLATE":"创建边缘应用模版","CREATE_APP_TEMPLATE_VERSION":"创建应用版本","APP_TEMPLATE_VERSION":"应用版本","APP_TEMPLATE_VERSION_EMPTY_TIP":"请创建一个应用版本。","APP_TEMPLATE_VERSION_EMPTY_DESC":"请设置一个应用版本名称。","INVALID_APP_TEMPLATE_VERSION_DESC":"应用版本无效。 {message}","APP_TEMPLATE_VERSION_DESC":"应用版本需要符合 Semantic Versioning 规范","APP_TEMPLATE_INSTANCES":"应用实例","ALL_VERSIONS":"全部版本","EDGE_APP_TEMPLATES_LOW":"应用模版","APP_TEMPLATE_VERSION_LOW":"应用版本号","DEL_APP_TEMPLATE_DESC":"删除应用模板的同时也会删除该应用模板的所有版本。","EMPTY_IMAGE_DESC":"暂无镜像信息","HOW_TO_APPLY_MORE_CLUSTER_Q":"如何为企业空间申请更多的集群?","HOW_TO_APPLY_MORE_CLUSTER_A":"请联系平台管理员或集群管理员以申请更多集群。","OVERVIEW":"概览","WORKSPACE_OVERVIEW_DESC":"企业空间为 KubeSphere 提供了安全隔离的、具有访问权限控制的工作平台。这里您可以看到当前企业空间内资源运行的概况。","ROLE_PL":"角色","PHYSICAL_RESOURCES":"物理资源","CRONJOB":"定时任务","CLUSTER_VALUE":"集群:{value}","SORT_BY_WORKSPACE_MEMORY_USAGE":"按内存用量排行","SORT_BY_WORKSPACE_MEMORY_USAGE_WO_CACHE":"按内存用量排行","SORT_BY_WORKSPACE_POD_COUNT":"按容器组配额用量排行(%)","SORT_BY_WORKSPACE_CPU_USAGE":"按 CPU 用量排行","SORT_BY_WORKSPACE_NET_BYTES_TRANSMITTED":"按出站流量排行","SORT_BY_WORKSPACE_NET_BYTES_RECEIVED":"按入站流量排行","PROJECT_EMPTY_DESC":"请创建一个项目。","CREATE_PROJECT":"创建项目","CREATE_MULTI_CLUSTER_PROJECT":"创建联邦项目","CREATE_MULTI_CLUSTER_PROJECT_DESC":"您可以创建联邦项目,让项目运行在多个集群中,为应用提供快速迭代开发的容器环境并实现高可用。","MULTI_CLUSTER_PROJECT_PL":"联邦项目","FED_HOST_NAMESPACE_TIP":"该项目与联邦项目关联, 请勿修改此项目中的资源。","MULTI_CLUSTER_PROJECT":"联邦项目","PROJECT_NAME_EXISTS_IN_HOST":"项目名称在主集群中已经存在,请输入其他项目名称。","SELECT_CLUSTER_DESC":"选择要创建项目的{type}。","CLUSTER_EMPTY_DESC":"请选择一个集群。","PROJECT_NAME_EXISTS_IN_CLUSTER":"项目名称在在 {cluster} 集群中已存在,请输入其他项目名称。","PROJECT_CLUSTER_SETTINGS_DESC":"为项目选择至少一个集群。如果选择多个集群,主集群上将创建同名项目。","FEDPROJECT_CANNOT_ADD_CLUSTER":"没有可添加的集群。","WORKSPACE_SETTINGS":"企业空间设置","WORKSPACE_BASIC_INFO_DESC":"基本信息提供企业空间的信息概览,您可以查看企业空间的基本信息。","WORKSPACE_BASE_INFO_Q1":"如何为企业空间申请更多的集群?","WORKSPACE_BASE_INFO_A1":"请联系平台管理员或集群管理员来申请更多的集群。","WORKSPACE_INFO":"企业空间信息","WORKSPACE_MEMBER_TCAP":"企业空间成员","WORKSPACE_MEMBER_TCAP_PL":"企业空间成员","WS_MEMBER_SCAP":"企业空间成员","WS_MEMBER_SCAP_PL":"企业空间成员","DEVOPS_PROJECT_TCAP":"DevOps 项目","DEVOPS_PROJECT_TCAP_PL":"DevOps 项目","DEVOPS_PROJECT_LOW":"DevOps 项目","DEVOPS_PROJECT_LOW_PL":"DevOps 项目","PROJECTS":"项目","KS_CLUSTER":" KS 集群","WORKSPACE_CLUSTER_DESC":"选择企业空间需要使用的集群类型","ON":"启用","OFF":"禁用","WS_NETWORK_ISOLATION":"企业空间网络隔离","NETWORK_POLICY_UNINSATLLED_DESC":"该集群未安装网络策略组件。","DELETE_DESC":"您确定删除该资源吗?资源删除后将无法恢复。","DELETE_WORKSPACE_PROJECTS_DESC":"删除企业空间中的项目","DELETE_WORKSPACE_DESC":"企业空间删除后将无法恢复, 企业空间下的资源也同时会被销毁。","DELETE_WORKSPACE_TIP":"确定删除企业空间 {resource} ? 删除后将无法恢复, 企业空间下的资源也同时会被销毁。","DEPARTMENT_PL":"部门","DEPARTMENT_DESC":"企业空间中的部门是用来管理权限的逻辑单元。您可以在部门中设置企业空间角色、多个项目角色以及多个 DevOps 项目角色,还可以将用户分配到部门中以批量管理用户权限。","NOT_ASSIGNED_TCAP":"未分配","ADD_MEMBER_TIP_SI":"您确定添加成员到部门 {group} 吗?","ADD_MEMBER_TIP_PL":"您确定添加成员到部门 {group} 吗?","ASSIGNED":"已分配","DEPARTMENT":"部门","SET_DEPARTMENTS":"设置部门","DEPARTMENT_EMPTY_DESC":"没有可用部门","NO_DEPARTMENT_TIP":"没有可用部门,请在右侧创建部门。","CREATE_DEPARTMENT":"创建部门","DELETE_GROUP_TIP":"确定删除子部门 {group_name}?删除该部门的同时,所有成员的授权也将被取消。","DELETE_PARENT_GROUP_TIP":"确定删除子部门 {group_name}?删除该部门的同时,其子部门也会被删除,且所有成员的授权也将被取消。","PROJECT_VALUE":"项目:{value}","PROJECT_ROLE_VALUE":"项目角色:{value}","DEVOPS_VALUE":"DevOps 项目:{value}","DEVOPS_PROJECT_ROLES_VALUE":"DevOps 项目角色:{value}","WORKSPACE_ROLE":"企业空间角色","GROUP_WORKSPACE_ROLE_DESC":"企业空间角色将授予部门中的所有用户。","MEMBER_CLUSTER_UPGRADE_TIP":"低于 {version} 版本的成员集群不支持此功能, 请将成员集群升级到 {version} 或以上版本。","PROJECT_ROLE":"项目角色","SELECT_ROLE_TIP":"请选择角色。","ADD_PROJECT":"添加项目","CLUSTER_UPGRADE_REQUIRED":"当前 KubeSphere 版本不支持此功能,请将 KubeSphere 升级到 {version} 或以上版本。","DEVOPS_PROJECT_ROLE":"DevOps 项目角色","ADD_DEVOPS_PROJECT":"添加 DevOps 项目","DEVOPS_PROJECTS":"DevOps 项目","WORKSPACE_MEMBERS":"企业空间成员","WORKSPACE_MEMBER_PL":"企业空间成员","WORKSPACE_MEMBER_DESC":"企业空间成员可以查看或管理企业空间资源。您可以管理企业空间中的成员并控制成员权限。","WORKSPACE_MEMBER_EMPTY_DESC":"请邀请一个用户到当前企业空间。","ROLE":"角色","REMOVE_MEMBER":"移除成员","REMOVE_MULTIPLE_MEMBERS":"指移除成员","REMOVE_MULTIPLE_MEMBERS_TIP":"请输入用户名 {resource} 以确认您了解此操作的风险。","INVITE_WORKSPACE_MEMBER_DESC":"邀请用户到当前企业空间。","INVITE_MEMBER":"邀请成员","INVITE":"邀请","INVITED_SUCCESSFULLY":"邀请成功。","REMOVE_MEMBER_TIP":"请输入用户名 {resource} 以确认您了解此操作的风险。","WORKSPACE_QUOTA_PL":"企业空间配额","WORKSPACE_QUOTAS_DESC":"企业空间配额用于管理企业空间中所有项目和 DevOps 项目的总资源用量。","RESOURCE_QUOTA_PL":"资源配额","USED_PERCENT":"已使用:{percent}%","RESOURCE_LIMIT":"资源上限","EDIT_WORKSPACE_QUOTAS":"编辑企业空间配额","CPU_REQUEST":"CPU 预留","CPU_LIMIT":"CPU 限制","MEMORY_REQUEST":"内存预留","MEMORY_LIMIT":"内存上限","WORKSPACE_ROLE_PL":"企业空间角色","WORKSPACE_ROLE_DESC":"企业空间角色定义了在当前企业空间下用户所拥有的权限。","WORKSPACE_ROLE_EMPTY_DESC":"请创建一个企业空间角色。","ROLE_WORKSPACE_ADMIN":"管理企业空间中的所有资源。","ROLE_WORKSPACE_REGULAR":"查看企业空间设置。","ROLE_WORKSPACE_VIEWER":"查看企业空间中的所有资源。","ROLE_WORKSPACE_SELF_PROVISIONER":"查看企业设置、管理应用模板、创建项目和 DevOps 项目。","ROLE_EDGE_WORKSPACE_SELF_PROVISIONER":"查看企业设置、管理边缘应用模板、创建项目。","CREATE_WORKSPACE_ROLE":"创建企业空间角色","WORKSPACE_ROLE_NAME_TIP":"角色的名称将作为角色的唯一标识符。","NEXT_STEP":"下一步","NEXT_STEP_DESC":"您需要进一步编辑角色的权限。","PERMIGROUP_PROJECTS_MANAGEMENT":"项目","PERMISSION_PROJECTS_VIEW":"项目查看","PERMISSION_PROJECTS_VIEW_DESC":"查看企业空间中的所有项目。","PERMISSION_PROJECTS_MANAGEMENT":"项目管理","PERMISSION_PROJECTS_MANAGEMENT_DESC":"创建、编辑和删除企业空间中的项目。","PERMISSION_PROJECTS_CREATE":"项目创建","PERMISSION_PROJECTS_CREATE_DESC":"创建项目并成为所创建的项目的管理员。","PERMIGROUP_DEVOPS_MANAGEMENT":"DevOps 项目","PERMISSION_DEVOPS_VIEW":"DevOps 项目查看","PERMISSION_DEVOPS_VIEW_DESC":"查看企业空间中的所有 DevOps 项目。","PERMISSION_DEVOPS_MANAGEMENT":"DevOps 项目管理","PERMISSION_DEVOPS_MANAGEMENT_DESC":"创建、编辑和删除企业空间中的 DevOps 项目。","PERMISSION_DEVOPS_CREATE":"DevOps 项目创建","PERMISSION_DEVOPS_CREATE_DESC":"创建 DevOps 项目并成为所创建的 DevOps 项目的管理员。","PERMISSION_APPS_MANAGEMENT":"应用管理","PERMISSION_WORKSPACE_APP_REPOS_VIEW":"应用仓库查看","PERMISSION_WORKSPACE_APP_REPOS_VIEW_DESC":"查看企业空间中的应用仓库。","PERMISSION_WORKSPACE_APP_REPOS_MANAGEMENT":"应用仓库管理","PERMISSION_WORKSPACE_APP_REPOS_MANAGEMENT_DESC":"创建、编辑和删除企业空间中的应用仓库。","PERMISSION_WORKSPACE_APP_TEMPLATES_VIEW":"应用模板查看","PERMISSION_WORKSPACE_APP_TEMPLATES_VIEW_DESC":"查看企业空间中的应用模板。","PERMISSION_WORKSPACE_APP_TEMPLATES_MANAGEMENT":"应用模板管理","PERMISSION_WORKSPACE_APP_TEMPLATES_MANAGEMENT_DESC":"上传、编辑和删除应用模板以及在平台应用商店上架和下架应用。","PERMISSION_WORKSPACE_GROUPS_VIEW":"部门查看","PERMISSION_WORKSPACE_GROUPS_VIEW_DESC":"查看企业空间部门的结构和成员。","PERMISSION_WORKSPACE_GROUPS_MANAGEMENT":"部门管理","PERMISSION_WORKSPACE_GROUPS_MANAGEMENT_DESC":"管理企业空间部门的结构、成员和权限。","PERMISSION_WORKSPACE_MEMBERS_VIEW":"成员查看","PERMISSION_WORKSPACE_MEMBERS_VIEW_DESC":"查看企业空间成员。","PERMISSION_WORKSPACE_MEMBERS_MANAGEMENT":"成员管理","PERMISSION_WORKSPACE_MEMBERS_MANAGEMENT_DESC":"邀请、编辑和移除企业空间成员。","PERMISSION_WORKSPACE_ROLES_VIEW":"角色查看","PERMISSION_WORKSPACE_ROLES_VIEW_DESC":"查看企业空间角色。","PERMISSION_WORKSPACE_ROLES_MANAGEMENT":"角色管理","PERMISSION_WORKSPACE_ROLES_MANAGEMENT_DESC":"创建、编辑和删除系统预置角色外的企业空间角色。","PERMIGROUP_WORKSPACE_SETTINGS":"企业空间设置","PERMISSION_WORKSPACE_SETTINGS_VIEW":"企业空间设置查看","PERMISSION_WORKSPACE_SETTINGS_VIEW_DESC":"查看企业空间设置。","PERMISSION_WORKSPACE_SETTINGS_MANAGEMENT":"企业空间设置管理","PERMISSION_WORKSPACE_SETTINGS_MANAGEMENT_DESC":"管理企业空间的基本信息、网络策略等设置。","PERMIGROUP_EDGE_APPS_MANAGEMENT":"边缘应用","PERMISSION_WORKSPACE_EDGE_APP_TEMPLATES_VIEW":"边缘模板查看","PERMISSION_WORKSPACE_EDGE_APP_TEMPLATES_MANAGEMENT":"边缘模板管理","NODE_GROUP":"节点组","NODE_GROUP_LIST":"节点组列表","NODE_GROUP_TREE":"节点组目录","NODE_GROUP_PL":"节点组","NODE_GROUP_DESC":"节点组(NodeGroup)用于管理物理资源,可包含一个或多个边缘节点,支持和项目的绑定来控制不同用户的资源管理权限。","NODE_GROUP_EMPTY_DESC":"请创建一个节点组。","SELECT_A_NODE_GROUP":"请选择一个节点组。","CREATE_NODE_GROUP":"创建节点组","NODE_GROUP_LOW":"节点组","BOUND_NODE_GROUP":"分配到节点组","BOUND_NODE_GROUP_TIP":"边缘节点被分配到节点组后不允许在节点组管理移除边缘节点。","NODE_GROUP_ADMINISTER":"节点组管理员","SELECT_A_NODE_GROUP_DESC":"将容器组副本分配给特定的节点组。","EDGE_NODE_COUNT":"边缘节点数量","WORKLOAD_SPECIFY_NODE_GROUP_NODE_DESC":"将容器副本分配给节点组中的特定节点。","UNBOUND_NODE_GROUP":"脱离节点组","UNBOUND_NODE_GROUP_TIP":"该边缘节点将要脱离节点组 {nodegroup}。请输入边缘节点名称 {resource} 以确认您了解此操作的风险。","UNBOUND_NODE_GROUP_SUCCESSFULLY":"脱离节点组成功","PARENT_NODE_GROUP":"上级节点组","EDGEWIZE_COMPUTING":"EdgeWize 边缘计算","EDGEWIZE_COMPUTING_DESC":"对边缘多集群以及每个边缘集群的基础资源、资源用量等的统一管理和监控。","EDGEWIZE_MANAGEMENT":"边缘集群管理","EDGEWIZE_MANAGEMENT_DESC":"对边缘多集群以及每个边缘集群的基础资源、资源用量等的统一管理和监控。","EDGEWIZE_MONITORING":"边缘集群监控","HOSTED_IN":"托管集群","HOSTED_IN_DESC":"请选择托管的 KubeSphere 集群。","HOSTED_IN_EMPTY":"","CREATE_EDGEWIZE_CLUSTER":"创建边缘集群","INPUT_EDGE_KUBECONFIG":"请填写集群的 KubeConfig","VIEW_KUBECONFIG":"查看 KubeConfig","DELETE_CLUSTER":"删除集群","REMOVE_EDGEWIZE_TIP_A":"边缘集群被删除后,边缘集群中原有的资源不会被自动清除。","REMOVE_EDGEWIZE_TIP_B":"边缘集群被删除后,边缘集群中原有的多集群配置数据不会被自动清除,卸载 KubeSphere 或删除关联资源时可能会导致用户数据丢失。","DELETE_EDGE_CLUSTER_NOTIFICATION_CONFIGURAITON":"删除该边缘集群的所有消息通知配置","EDGE_APPLICATION_WORKLOAD_PL":"边缘应用负载","EDGE_MONITORING_AND_ALERTING":"边缘资源告警","EDGE_CLUSTER_SETTINGS_PL":"边缘集群设置","EDGE_CLUSTER":"边缘集群","EDGE_CLUSTER_PL":"边缘集群","EDGE_CLUSTER_DESC":"","ADVERTISE_ADDRESS":"公开地址","ADVERTISE_ADDRESS_DESC":"设置边缘集群 KubeEdge 组件的公开地址,支持 IP 地址或域名","RESOURCE_USAGE_DESC":"您可以查看集群节点用量和项目用量的排行情况。","NODE_USAGE_RANKING":"节点用量排行","PROJECTS_USAGE_RANKING":"项目用量排行","SORT_BY_EDGE_EDGE_NAMESPACE_CPU_USAGE":"按 CPU 用量排行","SORT_BY_EDGE_NAMESPACE_CPU_USED_LIMITS_UTILISATION":"按已分配 CPU 上限(%)排行","SORT_BY_EDGE_NAMESPACE_CPU_USED_REQUESTS_UTILISATION":"按已分配 CPU 预留(%)排行","SORT_BY_EDGE_NAMESPACE_MEMORY_USAGE_WO_CACHE":"Ordenar por uso de memoria","SORT_BY_EDGE_NAMESPACE_MEMORY_USED_LIMITS_UTILISATION":"按已分配内存上限(%)排行","SORT_BY_EDGE_NAMESPACE_MEMORY_USED_REQUESTS_UTILISATION":"按已分配内存预留(%)排行","SORT_BY_EDGE_NAMESPACE_POD_COUNT":"按容器组配额用量(%)排行","SORT_BY_EDGE_NAMESPACE_NET_BYTES_RECEIVED":"按入站流量排行","SORT_BY_EDGE_NAMESPACE_NET_BYTES_TRANSMITTED":"按出站流量排行","SORT_BY_EDGE_NAMESPACE_PVC_BYTES_USED":"按持久卷用量排行","SORT_BY_EDGE_NAMESPACE_PVC_COUNT":"按容器组数量排行","SORT_BY_EDGE_NODE_CPU_USAGE":"按 CPU 用量排行","SORT_BY_EDGE_NODE_CPU_UTILISATION":"按 CPU 用量(%)排行","SORT_BY_EDGE_NODE_DISK_SIZE_UTILISATION":"按磁盘用量(%)排行","SORT_BY_EDGE_NODE_DISK_INODE_UTILISATION":"按 Inode 用量排行","SORT_BY_EDGE_NODE_LOAD1":"按 1 分钟 CPU 平均负载排行","SORT_BY_EDGE_NODE_LOAD5":"按 5 分钟 CPU 平均负载排行","SORT_BY_EDGE_NODE_LOAD15":"按 15 分钟 CPU 平均负载排行","SORT_BY_EDGE_NODE_MEMORY_UTILISATION":"按内存用量(%)排行","SORT_BY_EDGE_NODE_MEMORY_USAGE_WO_CACHE":"按内存用量排行","SORT_BY_EDGE_NODE_POD_UTILISATION":"按容器组用量排行","CONTAINER_RUNTIME_EMPTY_DESC":"请选择容器运行时","IMAGE_REPOSITORY_ADDRESS":"镜像仓库地址","IMAGE_REPOSITORY_ADDRESS_EMPTY_DESC":"请输入镜像仓库地址","NODE_ACCESS_PL":"节点接入","NODE_ADMINISTRATION_PL":"节点管理","NODE_ACCESS_DESC":"接入边缘节点的是您自己的边缘计算设备,用于运行边缘应用以处理您的数据,并安全、便捷地和云端应用进行协同。","NODE_ACCESS_EMPTY_DESC":"请注册一个边缘节点。","REGISTER":"注册","REGISTER_EDGE_NODE":"注册边缘节点","SINGLE_REGISTRATION":"单个注册","MULTIPLE_REGISTRATION":"批量注册","NODE_ACCESS_NAME":"节点名称","NODE_ACCESS_NAME_REQUIRED":"请输入节点名称","REGISTER_CENTER_ADDRESS":"注册中心地址","REGISTER_CENTER_ADDRESS_TIPS":"设置边缘节点注册的网关地址。","FILE_SERVER":"文件服务器","FILE_SERVER_TIPS":"IP:端口号或者域名,用于边缘节点从文件服务器下载安装包;如果为空,将 SCP 文件到边缘节点。","FILE_SERVER_ERROR_MESSAGE":"请填写正确的文件服务器","NODE_ACCESS_IP":"节点 IP 地址","NODE_ACCESS_IP_REQUIRED":"请输入节点 IP","NODE_ACCESS_IP_TIPS":"设置边缘节点 SSH 登录 IP 地址和端口号。","NODE_ACCESS_IPS_TIPS":"填写边缘节点 SSH 登录 IP 地址,用逗号「,」分开。","NODE_ACCESS_USERNAME_TIPS":"边缘节点的用户名","NODE_ACCESS_USERNAME_REQUIRED":"请输入边缘节点的用户名","NODE_ACCESS_PASSWORD_TIPS":"边缘节点的登录密码","NODE_ACCESS_PASSWORD_TIPS_REQUIRED":"请输入边缘节点的登录密码","NODE_ARCHITECTURE":"架构","NODE_ARCHITECTURE_REQUIRED":"请选择架构","MULTIPLE_REGISTER_TIPS":"批量注册的边缘节点名称自动填充为 hostname + mac 地址。","REGISTRY_NODE_VER_ERR":"边缘节点验证失败","REGISTRY_NODE_VER_SUCCESS":"边缘节点验证通过。","BATCH_ACCESS_NODE":"批量管理","NODE_STATUS_REGISTERING":"注册中","NODE_STATUS_REGISTERFAIL":" 注册失败","NODE_STATUS_UNMANAGED":"未纳管","ACCESS_MANAGE":"纳管","BATCH_ACTION":"批量{action}","NEXT_OP":"下一步: {action}","RE_REGISTER":"重新注册","CANCEL_MANAGED":"取消纳管","SYNC_TIME":"同步边缘节点时间","SYNC_TIME_TIPS":"您确定要同步边缘节点时间为当前云端时间吗?","EDIT_SOFTWARE_INFO":"编辑软件信息","CONTAINER_ENGINE":"容器引擎","CONTAINER_ENGINE_TIPS":"选择容器引擎配置边缘节点环境。","SOFT_INSTALLED_EMPTY":"未安装 {resource}","CONTAINER_ENGINE_EMPTY_DESC":"安装容器引擎后,您可以配置禁用、重启、修改配置文件等操作。","EDGE_SOFT":"边缘软件","EDGE_CORE_EMPTY_DESC":"安装 edgecore 后,您可以配置禁用、重启、修改配置文件等操作。","EDGE_SOFT_TIPS":"选择边缘软件配置边缘节点环境。","KUBE_EDGE":"KubeEdge","SOFT":"{value} 部署","SOFT_VERSION":"{value} 版本","UNINSTALL":"卸载","SOFT_RESTART":"重启","NODE_SOFT_STATUS_UNINSTALLED":"未安装","NODE_SOFT_STATUS_INSTALLED":"成功","ACCESS_NODE":"节点","ACCESS_NODE_PL":"节点","ACCESS_NODE_LOW":"节点名称","CANCEL_MANAGED_SUCCESSFULLY":"成功取消纳管","OTHER_SOFTS":"其他软件","CUSTOM_COMMAND":"自定义命令","NODE_STATUS_DEAD":"未运行","NODE_STATUS_UNKOWN":"未知","SOFT_SETTINGS":"{container} 设置","SOFT_SETTINGS_TIPS":"设置 {container} 配置文件 {filePath}","TASK_EXE_INFO":"任务执行信息","TASK_EXE_STATUS":"执行状态","TASK_KEY":"任务名/任务 ID","TASK_INFO":"任务内容","TASK_EXE_TIME":"执行时间","SPECIFICATION":"规格","EDGE_NODE_TIME":"边缘节点时间","SYNC_TIME_LATELY":"最近同步时间","SOFT_VERSION_DESC":"{name} 版本","PROCESSING":"任务执行中","PROCESS_WAIT":"等待中","PROCESS_END":"执行结束","SUCCEEDED":"成功","CANCEL_SELECT_ALL":"取消全选","UNINSTALL_SOFT":"卸载 {name}","UNINSTALL_SOFT_TIPS":"您确定要卸载 {name} 吗?卸载后,可能导致该边缘节点无法使用。","RESTART_SOFT":"重启 {name}","RESTART_SOFT_TIPS":"您确定要重启 {name} 吗?重启后,{type}将会更新,同时相关业务将会中断。","STOP_SOFT_TEXT":"禁用","STOP_SOFT":"禁用 {name}","STOP_SOFT_TIPS":"您确定要禁用 {name} 吗?禁用后,该边缘节点无法使用。","START_SOFT":"启用 {name}","BATCH_CONTAINER_SOFT_TIPS":"容器引擎支持 docker、containerd、nvidia-docker2。","BATCH_EDGE_SOFT_TIPS":"所选边缘软件如 kubeedge ,仅安装在有 edgecore 环境的节点;对没有环境的节点不生效。","SSH_PORT":"SSH 端口","SSH_PORT_DESC":"填写边缘节点 SSH 登录 IP 地址的端口号。","EDGE_WAY_TO_INSTALL":"安装方式","EDGE_WAY_TO_INSTALL_DESC":"可以自动安装边缘集群或者使用手工安装","NODE_GROUP_SETTINGS_PL":"节点组设置","NODE_GROUP_MEMBER_PL":"节点组成员","NODE_GROUP_ROLE_PL":"节点组角色","INVITE_EDGE_CLUSTER_MEMBER_DESC":"邀请用户加入边缘集群。","EDGE_CLUSTER_MEMBER":"边缘集群成员","EDGE_CLUSTER_ROLE":"边缘集群角色","EDGE_CLUSTER_ROLE_DESC":"节点组角色定义了在当前节点组下用户所拥有的权限。","EDGE_CLUSTER_NOT_FOUNDED":"未发现边缘节点","ADD_CLUSTER_FOR_NODE_GROUP":"请为节点组添加绑定一个边缘节点","BOUND_EDGE_NODE":"绑定边缘节点","SELECT_A_CLUSTER":"选择一个边缘节点","BOUND":"绑定","BOUND_PROJECT_PL":"绑定项目","BOUND_SUCCESSFULLY":"绑定成功","UNBOUND_SUCCESSFULLY":"解绑成功","NODE_GROUP_PROJECT_EMPTY":"没有可用项目","NODE_GROUP_PROJECT_EMPTY_DESC":"请问节点组绑定一个项目。","BOUND_A_PROJECT_FOR_NODE_GROUP":"请联系平台管理员或者集群管理员绑定项目。","NODE_GROUP_ROLE":"节点组角色","NODE_GROUP_ROLE_DESC":"节点组角色定义了在当前节点组下用户所拥有的权限。","ROLE_NODE_GROUP_VIEWER":"查看节点组中的所有资源。","ROLE_NODE_GROUP_ADMIN":"管理节点组中的所有资源。","INVITE_NODE_GROUP_MEMBER_DESC":"邀请用户加入节点组。","INVITE_NODE_GROUP_MEMBER_SEARCH_PLACEHOLDER":"输入用户名邀请节点组成员","NODE_GROUP_BASE_INFO_DESC":"基本信息提供节点组的信息概览,您可以查看节点组的基本信息。","DELETE_NODE_GROUP":"删除节点组","PERMIGROUP_NODEGROUPS_MANAGEMENT":"节点组资源","PERMISSION_NODEGROUPS_VIEW":"节点组查看","PERMISSION_NODEGROUPS_MANAGEMENT":"节点组管理","NO_EDGE_CLUSTER":"没有可用边缘节点","NO_EDGE_CLUSTER_DESC":"请联系平台管理员或者集群管理员添加边缘节点。","NO_NODE_GROUP_FOUNDED":"未发现节点组","NO_NODE_GROUP_FOUNDED_DESC":"请联系平台管理员或者集群管理员绑定节点组。","NODE_GROUP_COUNT":"节点组数量","abortPipeline":"检查结果是否影响后续任务","Absolute duration":"代码块所用的绝对时间","Add another credential":"增加一个凭证","Add conditions":"添加条件","Add nesting conditions":"添加嵌套条件","Add nesting steps":"添加嵌套步骤","Add Parallel Stage":"添加并行阶段","Add Step":"添加步骤","archiveArtifacts":"保存制品","Are you sure to close this pipeline Editor ?":"确定关闭流水线编辑?","artifacts":"制品","Authentication Token":"身份验证令牌","Automatically generated by GitHub":"由 GitHub 自动生成","bcc":"密送","BEHAVIORAL_STRATEGY":"行为策略","blocker":"阻断","BLOCKER":"阻塞","NOTICE":"提示","Branches":"分支","branch success":"分支成功","@somebody to help review":"可以@某人来帮助审核","Send messages by email":"可以通过邮件发送消息","Send messages in the build":"可以在构建中发送消息","Change Current Directory":"更改当前目录","Chinese is not allowed in the pipeline configuration":"配置中不允许含有中文","Clean when aborted":"清理失败不影响运行","Clean Workspace":"清理企业空间","Code Quality Check":"代码质量检查","COMMIT_ID":"提交 ID","Config File Path":"配置文件路径","config name":"配置名称","configs":"配置","Configuration error":"配置信息错误","container":"指定容器","Continue":"继续编辑","credential Id":"凭证 ID","Credential Id":"凭证 ID","credentialsId":"凭证 ID","critical":"严重","Current branch name must match the input value":"当前分支名需符合输入值","defaultValue -1 means not to discard":"默认值 -1: 不会丢弃记录","Delete all resources of the deployment file":"删除部署文件所对应的所有资源","Deploy resources to the Kubernetes cluster":"将资源部署到 kubernetes 集群","Didn't pass":"未通过","dir":"切换目录","Discard":"忽略","Discover branches from repository":"发现仓库上的分支","DISCOVER_PR_FROM_FORKS":"从 Fork 仓库发现 PR","DISCOVER_PR_FROM_ORIGIN":"从原仓库发现 PR","Discover pull requests from forks":"发现 Fork 存储库与目标存储库相同的 PR","Discover pull requests from origin":"发现原始存储库与目标存储库相同的 PR","Docker Container Registry Credentials":"Docker 容器仓库凭证","Docker Registry URL":"Docker 仓库 URL","dockerCredentials":"Docker 容器仓库凭证","Drag and drop tasks to sort":"可以拖拽任务进行排序","Duration":"持续时间","echo":"打印消息","Edit Config":"编辑配置","Edit Credential":"编辑凭证","Enable Variable Substitution in Config":"在配置中开启变量替换","enableConfigSubstitution":"开启变量替换","Enter an expression":"输入一个表达式","Environment name":"环境变量名","Executes the code inside the block with a determined time out limit.":"使用确定的超时限制执行块内的代码.","expression":"表达式","Failure":"失败","For accessing GitHub":"用于获取 GitHub","get token":"获取 Token","info":"提示","input":"审核","Inspection results do not affect subsequent tasks":"检查结果不影响后续任务","instance failed to match at least one schema":"至少需要一个嵌套步骤","Internal nested conditions only need to satisfy one":"内部嵌套的条件只需符合一个","Internal nesting conditions must be matched":"内部嵌套的条件需全部满足","Jenkinsfile syntax error, message":"Jenkinsfile 语法错误,消息","key File Variable":"私钥变量","keyFileVariable":"私钥变量","Kubeconfig Variable":"kubeconfig 变量","Kubernetes Namespace for Secret":"Kubernetes 密钥命名空间","Kubernetes Secrets":"Kubernetes 密钥","Line":"行","Load credentials into environment variables":"加载凭证到环境变量","Load the sonarqube configuration provided by Jenkins into the Pipeline.":"将 Jenkins 中的 sonarqube 配置加载到流水线中","mail":"邮件","major":"重要","minor":"次要","Missing one or more required properties: 'name'":"name 不能为空","Negative prefix":"否定前缀","NO_BRANCH_FOUND_TIP":"未发现分支。","No need":"不需要","Normal":"通用","Not Build":"未执行","Not fail build":"失败不影响运行","not support edit nested stage":"暂不支持编辑嵌套阶段","passphrase Variable":"密码变量","passphraseVariable":"密码变量","Password Variable":"密码变量","passwordVariable":"密码变量","PIPELINE_LOW":"流水线","Pipeline Configuration":"编辑流水线","Pipeline List":"流水线列表","pipeline syntax error":"流水线语法错误","Please add at least one step.":"至少添加一个步骤","Please input images name":"请输入镜像名称","Please input the credential name.":"请输入凭证名称。","Press enter for the next":"回车以进行下一步","Print message":"打印消息","Pull code by Git":"通过 Git 拉取代码","Pull code by SVN":"通过 SVN 拉取代码","Queue":"队列中","Recipient":"收件人","Registry Credentials":"仓库凭证","remote":"仓库地址","Run Pipeline":"运行流水线","Save Artifact":"保存制品","Repo Scanned Successfully":"Repo Scanned Successfully","WEBHOOK_PUSH":"Webhook 推送","secretName":"秘钥名称","secretNamespace":"密钥命名空间","SELECT_THIS_REPOSITORY":"选择此仓库","Sender":"发件人","sh":"shell 脚本","Shell commands can be executed in the container":"可以在容器中执行 shell 命令","Show Advanced Settings":"展示高级设置","show yaml editor":"用 YAML 编辑器编辑","sonar is the default config name.":"默认配置名称是 sonar","Sorry, you don't have the permission to do this.":"抱歉,您没有权限进行此操作","Specify a container to add nested tasks to execute inside the container":"指定容器,可添加嵌套任务在容器内执行","Start the follow-up task after the inspection":"检查通过后开始后续任务","Started By":"实施者","Subject":"主题","submitter":"审核者","submitterParameter":"提交参数","Text Variable":"文本变量","The conditions required to implement the current phase (optional).":"执行当前阶段所需要满足的条件 (可选)","The environment variable entered before running the pipeline is match the current value.":"运行流水线前输入的环境变量与当前值一致","The label on which to run the Pipeline or individual stage":"流水线或单个阶段的标签","This name has been used.":"此名称已被使用","Time Used":"用时","Timeout":"超时","timeout":"超时","Timeout after no activity in logs for this block":"此区块代码无日志输出后开始计算超时","timer":"定时器","TRIGGER_REMOTE_BUILD":"触发远程构建(例如,使用脚本)","Unnamed":"未命名","Use the following URL to remotely triggerworkbench the build":"使用以下 URL 远程触发构建","User types that can trigger builds":"可以触发构建的用户类型","username or group name, multiple values ​​used, separated":"用户名或组名,多个值使用英文逗号分隔","Username Variable":"用户名变量","usernameVariable":"用户名变量","waitForQualityGate":"代码质量检查(SonarQube)","Webhook":"Webhook","withCredentials":"添加凭证","withSonarQubeEnv":"Sonarqube 配置","Wrong Token":"Token 错误","You can execute shell commands or windows batch commands in the build.":"可以在构建中执行 shell 命令或者 windows 的 batch 命令","PIPELINE_DESC":"流水线是一组可扩展的工具,可以通过组合它们来实现持续集成和持续交付。\n 您可以在此页面创建并管理流水线。","username_password":"帐户凭证","login_Plateform":"登录平台","CREDENTIALS_DESC":"凭证是包含了一些敏感数据的对象,如用户名密码,SSH 密钥和 Token 等,\n 用于在流水线运行时, 为拉取代码、push/pull 镜像、SSH 执行脚本等过程提供认证","AUTHENTICATION_TOKEN_TIP":"如果需要通过访问预定义 URL 开触发构建,请开启此选项。\n 此功能的的一个典型用法是通过源代码管理系统的钩子脚本来进行触发。\n 您需要提供一个字符串形式的授权令牌,以便只有拥有授权令牌的人才能触发远程构建。","CRON_TIP":"This field follows the cron syntax (slightly different).\n Specifically, each line contains 5 fields separated by tabs or spaces.\n minutes: the first few minutes of an hour (0-59)\n hours: the first few hours of the day (0-23)\n the days of the month: the first few days of a month (1-31 )\n Month: The first few days of the first few days (0-12), the first few days of the week (0-12),\n 0 and 7 are Sundays. ","PIPELINES_BASEINFO_DESC":"请输入流水线的基本信息","PIPELINE_ADVANCE_SETTINGS_DESC":"\t为流水线配置复杂行为策略(可选)","CREDENTIALS_CREATE_DESC":"创建用于 DevOps 项目中的凭证","CHECKOUT_DESC":"拉取代码,常用于拉取非 Git 代码,例如 SVN 等等","PRIVATE_IMAGE_DESC":"To deploy from a private image repository,\n you need to create a mirrored repository and then pull the image. ","AUTHENTICATION_TOKEN_DESC":"使用以下 URL 远程触发构建:\n JENKINS_URL / job / JOB_NAME / build?token =TOKEN_NAME\n 或者/ buildWithParameters?token = TOKEN_NAME 可选择附加&cause =原因提供将包含在记录的构建原因中的文本。","PIPELINE_NO_CONFIG":"当前流水线中并未发现相关配置文件","EDIT_CREDENTIAL_DESC":"下列表单不会显示原有凭证信息,重新输入会将其覆盖。","pipeline_conditions":"条件","CODE_SMELL":"代码异味","BUG":"代码错误","VULNERABILITY":"代码漏洞","SECURITY_HOTSPOT":"安全","PIPELINE_CREATE_DESC":"初始化完成后将开始流水线的任务执行","PIPELINE_QUEUED_DESC":"您需要等待 agent 启动并执行流水线(注:如 agent 长时间没有启动请检查 agent 配置和集群资源情况)","waitForQualityGate_desc":"代码质量检查标准来源于SonarQube的 Quality Gate (质量阈),如果需要自定义检查标准请前往 SonarQube 设置","REVIEW_DESC":"流水线运行至此任务将会暂停,审核后可选择继续或终止","INPUT_DESC":"流水线运行至此任务将会暂停,创建者和被@的人可以选择继续或终止流水线","LoadPrevData_Desc":"检测到此流水线上次未编辑成功,是否加载上次数据继续编辑?","withSonarQubeEnv_DESC":"快速的定位代码中潜在的或者明显的错误","waitForQualityGate_DESC":"在执行代码分析后执行","script_DESC":"执行groovy脚本","pipeline_owner":"DevOps 项目的所有者,可以进行 DevOps 项目的所有操作","pipeline_maintainer":"DevOps 项目的主要维护者,可以进行项目内的凭证配置、流水线配置等操作","pipeline_developer":"DevOps 项目的开发者,可以进行流水线的触发以及查看","pipeline_reporter":"DevOps 项目的观察者,可以查看流水线的运行情况","PATTERN_PIPELINE_NAME_VALID_NAME_TIP":"名称不合法 (仅支持大小写字母、数字、_、-)","GET_GITHUB_TOKEN_DESC":"用于获取 GitHub 代码仓库\n \n 获取 Token\n ","PIPELINES_FOOTER_SEE_MORE":"前往分支详情页查看更多 →","JENKINS_LINS_ERROR":"第 {line} 行有语法错误","Invalid credential ID":"凭证 ID 格式不合法","Batch Run Fail":"批量运行失败","Run Start":"运行开始","Choose a Pipeline Template":"选择流水线模板","DEVOPS_PROJECT_DESC":"DevOps 项目用于对资源进行分组管理以及控制不同用户的资源管理权限。"} \ No newline at end of file diff --git a/packages/bootstrap/assets/v3dist/main.f31337b887e3cc29c2de.js b/packages/bootstrap/assets/v3dist/main.cc5ccce585cea39b3705.js similarity index 99% rename from packages/bootstrap/assets/v3dist/main.f31337b887e3cc29c2de.js rename to packages/bootstrap/assets/v3dist/main.cc5ccce585cea39b3705.js index 819bcfd8f4e..3cee10f093a 100644 --- a/packages/bootstrap/assets/v3dist/main.f31337b887e3cc29c2de.js +++ b/packages/bootstrap/assets/v3dist/main.cc5ccce585cea39b3705.js @@ -1,4 +1,4 @@ -!function(e){function t(t){for(var n,r,a=t[0],i=t[1],l=0,s=[];l diff --git a/packages/bootstrap/assets/v3dist/main.5fe4fa084ed8ec0c062f.css b/packages/bootstrap/assets/v3dist/main.cfe35ba6d46921f81750.css similarity index 100% rename from packages/bootstrap/assets/v3dist/main.5fe4fa084ed8ec0c062f.css rename to packages/bootstrap/assets/v3dist/main.cfe35ba6d46921f81750.css diff --git a/packages/bootstrap/assets/v3dist/manifest.json b/packages/bootstrap/assets/v3dist/manifest.json index 3532adeb024..dac144bac85 100644 --- a/packages/bootstrap/assets/v3dist/manifest.json +++ b/packages/bootstrap/assets/v3dist/manifest.json @@ -19,10 +19,10 @@ "/assets/Roboto-Regular.woff2": "/assets/73f0a88bbca1bec19fb1303c689d04c6.woff2", "abap.js": "833b242747fd7b098d46011e4289bc3f.js", "abc.js": "37e37aa178d97ffcd94eeee1e1a25967.js", - "access.css": "2.43a21c9b41731b222aad.css", - "access.js": "2.0d237af61b7ec2514e6a.js", - "actions.css": "3.1e74b28ae7425345f003.css", - "actions.js": "3.5f10ec63201a0f304fc3.js", + "access.css": "2.43bab97623f933912ac5.css", + "access.js": "2.0a10310d9063aa822c09.js", + "actions.css": "3.779af18fad42210b4f61.css", + "actions.js": "3.c77c514afa7831659cbe.js", "actionscript.js": "b4bd28ac3a7935d0c52a6cb19c89aced.js", "ada.js": "64f93b6b093bba4147485023263cf65f.js", "alda.js": "fffbc895129cdb3efeafa5b234743aa0.js", @@ -39,13 +39,13 @@ "c_cpp.js": "4474c9775d04684871043fae3501ec66.js", "cirru.js": "817d52a47a4657b8a4dab79e057f5fb0.js", "clojure.js": "86dfc095a8bb97b2b6d94b798ebcdc61.js", - "clusters.css": "4.8fe9726549e526d9b801.css", - "clusters.js": "4.3b753ca1cdc1295532f9.js", + "clusters.css": "4.c2561906266126f6e1b9.css", + "clusters.js": "4.7b51099143a5fb2d6c84.js", "cobol.js": "214a729dcea91ee8a56f8ef43e17243a.js", "coffee.js": "243d8101969c933d25388b5287bb3425.js", "coldfusion.js": "a311e02008e0f00a37305a12d479159a.js", - "common.css": "1.e5fbd8c5ea74a29c8538.css", - "common.js": "1.1bfbc68400f6e360ee5b.js", + "common.css": "1.ea5909a99053e0319168.css", + "common.js": "1.b7d30cf8de1101deb2f6.js", "console.css": "5.465ac38e2c35293a3d9f.css", "console.js": "5.f991d4f254b44ccead8a.js", "crystal.js": "e4d51c8b4202d444cb39db4e7642d7d9.js", @@ -58,15 +58,15 @@ "curly.js": "e0e2b1267a5d4acb4dda3a4a598cd8a5.js", "d.js": "ab16c1237e6e04bbf0024ee2bae42130.js", "dart.js": "e8250271e7641960341ae2ac170af4ac.js", - "devops.css": "6.f11fb9fc542cde1c5aa0.css", - "devops.js": "6.8a227655269ca86f6419.js", + "devops.css": "6.b05610b5e4adbcc67cda.css", + "devops.js": "6.cf147b3fd7cc9c45a3c4.js", "diff.js": "7af5865535fb306e7d0364a9ff81f389.js", "django.js": "4037e6d4b18e3e286dec455cc63c1d17.js", "dockerfile.js": "7f10fe526aec57bd522af77ea6ac2b62.js", "dot.js": "318f90759f2ff0d2a437350e87578172.js", "drools.js": "0dc486b4415f7cbd7ddde8f32b6f12f1.js", - "edgewize.css": "7.819266b9456d64da450e.css", - "edgewize.js": "7.689dbbf4ab981b868277.js", + "edgewize.css": "7.f9d64dac128c0f241c2c.css", + "edgewize.js": "7.5808919bbbb5f7df323c.js", "edifact.js": "294fbc5b00264d6215dd8ff838dc2999.js", "eiffel.js": "9d0f4f65be2f50ad54488089f126feda.js", "ejs.js": "d754905fe54aac6f3c350df34f51a0b6.js", @@ -75,10 +75,10 @@ "entrypoints": { "main": { "css": [ - "main.5fe4fa084ed8ec0c062f.css" + "main.cfe35ba6d46921f81750.css" ], "js": [ - "main.f31337b887e3cc29c2de.js" + "main.cc5ccce585cea39b3705.js" ] } }, @@ -104,8 +104,8 @@ "ext-textarea.js": "280ba139ff95428f262adbf81b77aeb4.js", "ext-themelist.js": "d8c239d65159c02ebd6a2afa3cdc584b.js", "ext-whitespace.js": "d08030a8f6057b63643bacf4cee162b0.js", - "fedprojects.css": "8.f1f6b5348d077ce4f022.css", - "fedprojects.js": "8.584f61b03156f14ede40.js", + "fedprojects.css": "8.d2a1af4c74f601ec9296.css", + "fedprojects.js": "8.2b84445a82c82e00efa9.js", "forth.js": "31f3f1c32b27587832d28b634351325c.js", "fortran.js": "bc26ab0797e975ba01e701683935864b.js", "fsharp.js": "7cef38946c33fa981d6d2c86c62428e0.js", @@ -157,8 +157,8 @@ "lua.js": "aa2f98073a8d9f266f3928b5d9c457d1.js", "luapage.js": "f5292be525fc36a337ce7bfb792070de.js", "lucene.js": "8833a126ef9d8892bfb372d227f7f088.js", - "main.css": "main.5fe4fa084ed8ec0c062f.css", - "main.js": "main.f31337b887e3cc29c2de.js", + "main.css": "main.cfe35ba6d46921f81750.css", + "main.js": "main.cc5ccce585cea39b3705.js", "makefile.js": "b26738d581e044c69f7a4392906e6843.js", "markdown.js": "4750f0ff62cbd59f35aac31b996194e6.js", "mask.js": "d7889907dbb51f58ceadb3e1eec03a5d.js", @@ -343,13 +343,13 @@ "nginx.js": "f2195d2eae3dbef7e3798e115209dcd7.js", "nim.js": "68cf9a0e1eaff7cc991e970a855108f8.js", "nix.js": "985b400088bf5e23fb83e70d9948eccb.js", - "nodegroup.css": "10.7af50d1a799f638e204c.css", - "nodegroup.js": "10.3c0ad89dabbdf427f9de.js", + "nodegroup.css": "10.c75c2ff9891fc11ad6f1.css", + "nodegroup.js": "10.8feb163f00c69e939227.js", "nsis.js": "acc30207efba7ab5b7b509b599f37e6f.js", "nunjucks.js": "9e357a97da26127713394684a51946b8.js", "objectivec.js": "1840080076c4078d157a5b05d0d95551.js", - "observability.css": "11.880206b6bdcc0d39f015.css", - "observability.js": "11.774e51cf1478539e2707.js", + "observability.css": "11.bf7ba605993b901bf36a.css", + "observability.js": "11.6e951778d54720f3b78c.js", "ocaml.js": "a26463d029a2515171748a1ebcca53c3.js", "pascal.js": "c6f608398c43e25821557ee65cda5e58.js", "perl.js": "c2c0e5fa8323e2c5c1f54f20afda51b8.js", @@ -362,8 +362,8 @@ "powershell.js": "4cbd6f8a4f52821c1d3476139078797d.js", "praat.js": "998c5f13555e18b42e9bf826578b2e16.js", "prisma.js": "b435aebcb57d65080cfd510e0a9d5d9d.js", - "projects.css": "12.cdecb279dd56fda8cee3.css", - "projects.js": "12.fca39111c2120037b96f.js", + "projects.css": "12.5966b5a4b14231e7fc97.css", + "projects.js": "12.f5c735059a38e95eaae3.js", "prolog.js": "3e6808cd6eefd1be1040403985581374.js", "properties.js": "dd40dfc7840568927fdef65087a233ed.js", "protobuf.js": "f61f1aaed3f32a7dabd977a6f47ecd5f.js", @@ -373,8 +373,8 @@ "r.js": "c24de6963d7d00c269db34091059e06d.js", "razor.js": "e1dbe800b2d3f5d74b2b5480ea2b897a.js", "rdoc.js": "c23b1f80ab9746b425f3848bdaacc144.js", - "react-ace.css": "13.4be18ac1ae5cf0dee180.css", - "react-ace.js": "13.3725acfdb187a10c4b9d.js", + "react-ace.css": "13.d1c5a84bad8dc4fa546a.css", + "react-ace.js": "13.0f7deefea06b245a069b.js", "red.js": "28f7c5b28bbad7b0bac0cc3cc5b89bad.js", "redshift.js": "31bcb02e59d84ce2e38b85616a0b44db.js", "rhtml.js": "6f0543453c605ea6d673a3bd31dd1090.js", @@ -386,8 +386,8 @@ "scala.js": "2031467f3d02be43b638c5e3ccba3996.js", "scheme.js": "cf0a04afa21ac9ba23a1de0416a03105.js", "scss.js": "242fb5a92733d151e9ca303fcd3ae7ff.js", - "settings.css": "14.b459dd3850fd78366a67.css", - "settings.js": "14.61b8fefb7231fe211e79.js", + "settings.css": "14.2d2149193370b185508c.css", + "settings.js": "14.7055483c65abad4a4148.js", "sh.js": "43bd62d6b50d1253f782c9ae5be1593d.js", "sjs.js": "faf460076b3383fdc3ecc224068964cf.js", "slim.js": "0dd0f45c3dde9af3fcf9706e6a2a1edd.js", @@ -402,8 +402,8 @@ "svg.js": "5bd58f2ebad7e63ff72a891fb43e2b38.js", "swift.js": "b830d88aa22a866a208be27af90526a7.js", "tcl.js": "8120c57dbca7501da3ecf702c811f16f.js", - "terminal.css": "15.7748e21713be0bd72827.css", - "terminal.js": "15.0108df8d3870ca6eb8a7.js", + "terminal.css": "15.0612fc8310c6ee0c3375.css", + "terminal.js": "15.f33a082516e18c0e02f4.js", "terraform.js": "d465c0a35c6ef244bf587b0e6bdb4019.js", "tex.js": "451c3753fb6dfc1f2de25cb7524f4bb2.js", "text.js": "2681042a598b029b51d51f7669b81c4d.js", @@ -454,7 +454,7 @@ "vala.js": "3f9e3ae9d4ee540b9fb067b6fd29d529.js", "vbscript.js": "5f6f5026d13b2a9b884a8144a119cf9e.js", "velocity.js": "be2fbe775b19bdc18e4f78de18beb433.js", - "vendor.js": "0.6bb1072332e6da640a81.js", + "vendor.js": "0.d09ea121447c172cb7bf.js", "verilog.js": "119d8ff08e82b0f391f59f1fe657130f.js", "vhdl.js": "c3b0cd15adcc12a549e7ac5d165ac1f4.js", "visualforce.js": "35dc4119f9e28cb9baba1475537460bb.js", @@ -468,8 +468,8 @@ "worker-php.js": "908119c25a234151c8c7c1a97005c866.js", "worker-xml.js": "2fe13737434324ed67582ac97d484c54.js", "worker-xquery.js": "dad7909925cdea4ce193d5c14a13abf3.js", - "workspaces.css": "16.d8c1a7baf253a5f5956e.css", - "workspaces.js": "16.89bde903811bcf8c3799.js", + "workspaces.css": "16.68363a9987904a0bf571.css", + "workspaces.js": "16.5ac01dd7fb1f3b59c25a.js", "xml.js": "40505d6c2f34fc08502d3e596573c7f8.js", "xquery.js": "646c9322233a0ba128268dee916e5719.js", "yaml.js": "3c58f68d787710c79906a2cd6d248295.js", diff --git a/packages/bootstrap/assets/v3dist/manifest.locale.json b/packages/bootstrap/assets/v3dist/manifest.locale.json index 9272a904cdd..382ea75b03e 100644 --- a/packages/bootstrap/assets/v3dist/manifest.locale.json +++ b/packages/bootstrap/assets/v3dist/manifest.locale.json @@ -2,27 +2,27 @@ "entrypoints": { "locale-en": { "json": [ - "locale-en.1838ad844cee4e01bf6a.json" + "locale-en.48d7a85f01548ffe2bf8.json" ] }, "locale-es": { "json": [ - "locale-es.2e49a7fe837be8ae631c.json" + "locale-es.de7363fe0310e94f60c9.json" ] }, "locale-tc": { "json": [ - "locale-tc.2e6ab7e8d466f08b3516.json" + "locale-tc.78b741dfdab895ebd086.json" ] }, "locale-zh": { "json": [ - "locale-zh.191f77886fd33ed39cc7.json" + "locale-zh.bcd25113c7319528f825.json" ] } }, - "locale-en.json": "locale-en.1838ad844cee4e01bf6a.json", - "locale-es.json": "locale-es.2e49a7fe837be8ae631c.json", - "locale-tc.json": "locale-tc.2e6ab7e8d466f08b3516.json", - "locale-zh.json": "locale-zh.191f77886fd33ed39cc7.json" + "locale-en.json": "locale-en.48d7a85f01548ffe2bf8.json", + "locale-es.json": "locale-es.de7363fe0310e94f60c9.json", + "locale-tc.json": "locale-tc.78b741dfdab895ebd086.json", + "locale-zh.json": "locale-zh.bcd25113c7319528f825.json" } \ No newline at end of file